@univerjs-pro/collaboration-client-ui 0.9.3-nightly.202507250819 → 0.9.4-nightly.202507290713

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (50) hide show
  1. package/lib/cjs/facade.js +1 -1
  2. package/lib/cjs/index.js +1 -1
  3. package/lib/cjs/locale/ca-ES.js +1 -1
  4. package/lib/cjs/locale/en-US.js +1 -1
  5. package/lib/cjs/locale/es-ES.js +1 -1
  6. package/lib/cjs/locale/fa-IR.js +1 -1
  7. package/lib/cjs/locale/fr-FR.js +1 -1
  8. package/lib/cjs/locale/ko-KR.js +1 -1
  9. package/lib/cjs/locale/ru-RU.js +1 -1
  10. package/lib/cjs/locale/vi-VN.js +1 -1
  11. package/lib/cjs/locale/zh-CN.js +1 -1
  12. package/lib/cjs/locale/zh-TW.js +1 -1
  13. package/lib/es/facade.js +1 -1
  14. package/lib/es/index.js +1 -1
  15. package/lib/es/locale/ca-ES.js +1 -1
  16. package/lib/es/locale/en-US.js +1 -1
  17. package/lib/es/locale/es-ES.js +1 -1
  18. package/lib/es/locale/fa-IR.js +1 -1
  19. package/lib/es/locale/fr-FR.js +1 -1
  20. package/lib/es/locale/ko-KR.js +1 -1
  21. package/lib/es/locale/ru-RU.js +1 -1
  22. package/lib/es/locale/vi-VN.js +1 -1
  23. package/lib/es/locale/zh-CN.js +1 -1
  24. package/lib/es/locale/zh-TW.js +1 -1
  25. package/lib/facade.js +1 -1
  26. package/lib/index.js +1 -1
  27. package/lib/locale/ca-ES.js +1 -1
  28. package/lib/locale/en-US.js +1 -1
  29. package/lib/locale/es-ES.js +1 -1
  30. package/lib/locale/fa-IR.js +1 -1
  31. package/lib/locale/fr-FR.js +1 -1
  32. package/lib/locale/ko-KR.js +1 -1
  33. package/lib/locale/ru-RU.js +1 -1
  34. package/lib/locale/vi-VN.js +1 -1
  35. package/lib/locale/zh-CN.js +1 -1
  36. package/lib/locale/zh-TW.js +1 -1
  37. package/lib/types/services/ime-cache-transform/doc-transform-ime-cache.service.d.ts +1 -3
  38. package/lib/umd/facade.js +1 -1
  39. package/lib/umd/index.js +1 -1
  40. package/lib/umd/locale/ca-ES.js +1 -1
  41. package/lib/umd/locale/en-US.js +1 -1
  42. package/lib/umd/locale/es-ES.js +1 -1
  43. package/lib/umd/locale/fa-IR.js +1 -1
  44. package/lib/umd/locale/fr-FR.js +1 -1
  45. package/lib/umd/locale/ko-KR.js +1 -1
  46. package/lib/umd/locale/ru-RU.js +1 -1
  47. package/lib/umd/locale/vi-VN.js +1 -1
  48. package/lib/umd/locale/zh-CN.js +1 -1
  49. package/lib/umd/locale/zh-TW.js +1 -1
  50. package/package.json +17 -17
package/lib/index.js CHANGED
@@ -1 +1 @@
1
- const _0x3a57f9=_0x531b;(function(_0x5ee94d,_0x259386){const _0x487b3c=_0x531b,_0x26d9de=_0x5ee94d();while(!![]){try{const _0x5ad741=-parseInt(_0x487b3c(0x1de))/0x1*(parseInt(_0x487b3c(0x1d2))/0x2)+-parseInt(_0x487b3c(0x2ae))/0x3+-parseInt(_0x487b3c(0x210))/0x4+parseInt(_0x487b3c(0x2cf))/0x5*(-parseInt(_0x487b3c(0x294))/0x6)+-parseInt(_0x487b3c(0x183))/0x7+-parseInt(_0x487b3c(0x27e))/0x8+parseInt(_0x487b3c(0x18d))/0x9;if(_0x5ad741===_0x259386)break;else _0x26d9de['push'](_0x26d9de['shift']());}catch(_0x562c9e){_0x26d9de['push'](_0x26d9de['shift']());}}}(_0x1193,0x711ea));var xt=Object[_0x3a57f9(0xef)],Bt=(_0x5cbccc,_0x43df74,_0x48ea13)=>_0x43df74 in _0x5cbccc?xt(_0x5cbccc,_0x43df74,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x48ea13}):_0x5cbccc[_0x43df74]=_0x48ea13,_=(_0x4617f8,_0x17beb8,_0x8c2276)=>Bt(_0x4617f8,typeof _0x17beb8!=_0x3a57f9(0x2a6)?_0x17beb8+'':_0x17beb8,_0x8c2276);import{MemberService as _0x1b3f61,SessionStatus as _0x3ac856,CollaborationSessionService as _0x1e8ca8,CollaborationStatus as _0x1292c5,CollaborationController as _0x1edc48,ILocalCacheService as _0x2cfad2,CollaborationUIEventService as _0x9aea63,CollaborationUIEventId as _0x4c162c,DataLoaderService as _0x4aae42,DocCollaborationEntity as _0x18bf24,getLocalCacheKey as _0x38124f,LOCAL_CACHE_INTERVAL as _0x2db360,LOCAL_CACHE_INTERVAL_KEY as _0xed578d,UniverCollaborationClientPlugin as _0x3e1b3e,CollaborationSocketService as _0x57cd60,COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY as _0x285bd1,DEFAULT_WS_SESSION_TICKET_URL as _0x25c621,UnitStatus as _0x5d87c5,REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY as _0x2d7956,DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT as _0x1cd823}from'@univerjs-pro/collaboration-client';import{RxDisposable as _0x553b56,Disposable as _0x16ac65,DOC_RANGE_TYPE as _0x5dc5fd,Inject as _0x3296bc,Injector as _0x538ee1,IUniverInstanceService as _0x1be569,ICommandService as _0x1b52c7,debounce as _0x4248fe,Rectangle as _0x1377a1,DisposableCollection as _0x30772f,toDisposable as _0x3d316a,UniverInstanceType as _0x54ea39,generateRandomId as _0x44ddb8,COLORS as _0x4ec670,ColorKit as _0x2f68e6,ThemeService as _0x2a35f5,fromEventSubject as _0x12af36,LocaleService as _0xc76249,createIdentifier as _0x3194fa,ILogService as _0x2d6f9d,Optional as _0x2ddda6,Workbook as _0x548083,Tools as _0xef5339,CommandType as _0x326c54,IConfigService as _0x2f1f09,ILocalStorageService as _0x34513f,DependentOn as _0x49e18d,Plugin as _0x273334,merge as _0x18fc6d,registerDependencies as _0x4059dc,mergeOverrideWithDependencies as _0x1dbfa7,touchDependencies as _0xafaaa7}from'@univerjs/core';import{Shape as _0x190471,Rect as _0x298a7f,getColor as _0x360fe9,RegularPolygon as _0x5b63e0,TRANSFORM_CHANGE_OBSERVABLE_TYPE as _0x7ede9f,Vector2 as _0x23205c,SHEET_VIEWPORT_KEY as _0x1c65dc,IRenderManagerService as _0x20c53d}from'@univerjs/engine-render';import{ISocketService as _0x18d2f7,WebSocketService as _0x4d0048,HTTPService as _0x1cd424}from'@univerjs/network';import{IDocClipboardService as _0x4ddbc8,NodePositionConvertToCursor as _0x378cc1,NodePositionConvertToRectRange as _0x245e8e,TEXT_RANGE_LAYER_INDEX as _0x4cd739,SetDocZoomRatioOperation as _0x4bbc50,DocIMEInputManagerService as _0x427731,DocStateChangeManagerService as _0x26fc0c}from'@univerjs/docs-ui';import{IImageIoService as _0x19a472}from'@univerjs/drawing';import{BehaviorSubject as _0x3985c9,debounceTime as _0x105dcf,takeUntil as _0x2a6b6e,Subject as _0x1a62a5,filter as _0x32a48e,switchMap as _0x2f89c3,merge as _0x511b3a,combineLatest as _0x4c37b2,of as _0x2b78f5,fromEvent as _0x5942d0,shareReplay as _0x21f060,mapTo as _0x82e8ad,distinctUntilChanged as _0x43cb2c}from'rxjs';import{ITransformService as _0x5dc57d,CollaborationEvent as _0x29005c,isTransformMutationFailure as _0x2e710a,isTransformMutationsWithChangesetSuccess as _0x503663,RevisionService as _0x51757e,ISnapshotServerService as _0x3ab256}from'@univerjs-pro/collaboration';import{SetTextSelectionsOperation as _0x5466dc,RichTextEditingMutation as _0x5a2a2a,DocSelectionManagerService as _0x5d5866,DocSkeletonManagerService as _0x11fdd8}from'@univerjs/docs';import{deserializeRangeWithSheet as _0x5d2865,serializeRangeWithSheet as _0x14aab0}from'@univerjs/engine-formula';import{RefRangeService as _0x3113c7,SetSelectionsOperation as _0x292d39,SheetsSelectionsService as _0x362350,EffectRefRangId as _0x4c62fc,handleIRemoveRow as _0x1837d3,handleIRemoveCol as _0x8c424c,handleMoveRange as _0x2d28a8,handleInsertRow as _0x36e4bb,handleInsertRangeMoveRight as _0xa51913,handleInsertRangeMoveDown as _0x3758d0,handleInsertCol as _0x2a8171,handleDeleteRangeMoveUp as _0xace0d,handleDeleteRangeMoveLeft as _0x341296,runRefRangeMutations as _0x1a66b0,SetWorksheetActivateCommand as _0xd0e3e4}from'@univerjs/sheets';import{map as _0x27e7e4,filter as _0x5ee7ee,throttleTime as _0x303e6d,takeUntil as _0x284c45,switchMap as _0x4cd0d6}from'rxjs/operators';import{SheetSkeletonManagerService as _0x17c6af,getCoordByCell as _0x35ce15,getSheetObject as _0x52c2ad}from'@univerjs/sheets-ui';import{jsx as _0x73b12f,jsxs as _0x446319}from'react/jsx-runtime';import{useObservable as _0xa6d25d,useDependency as _0x53a4d7,IUIPartsService as _0x16f3b0,BuiltInUIPart as _0x81f02a,connectInjector as _0x2ad6b2,IBeforeCloseService as _0x34768e,IMessageService as _0x2e55ff,INotificationService as _0x34afaf}from'@univerjs/ui';import{Tooltip as _0x3e4beb,clsx as _0xf70887,MessageType as _0x3ef35b}from'@univerjs/design';import{forwardRef as _0x492358,useRef as _0x16cdbc,createElement as _0x2f64f8,useCallback as _0x14d084}from'react';import{IRemoteInstanceService as _0x1bb5ff}from'@univerjs/rpc';var ci=Object[_0x3a57f9(0x179)],li=(_0x349eb3,_0x3f0e4a,_0x13d112,_0x2a6ec9)=>{const _0x33be2d=_0x3a57f9;for(var _0x5a264a=_0x2a6ec9>0x1?void 0x0:_0x2a6ec9?ci(_0x3f0e4a,_0x13d112):_0x3f0e4a,_0x2f1384=_0x349eb3[_0x33be2d(0x1f3)]-0x1,_0x1b5daa;_0x2f1384>=0x0;_0x2f1384--)(_0x1b5daa=_0x349eb3[_0x2f1384])&&(_0x5a264a=_0x1b5daa(_0x5a264a)||_0x5a264a);return _0x5a264a;},Ze=(_0x2d1373,_0x1ced96)=>(_0x22e4cf,_0x591bfc)=>_0x1ced96(_0x22e4cf,_0x591bfc,_0x2d1373);let Ue=class extends _0x553b56{constructor(_0x57287b,_0x2559e2){const _0x31c80e=_0x3a57f9;super(),this[_0x31c80e(0x1c8)]=_0x57287b,this[_0x31c80e(0x131)]=_0x2559e2,this[_0x31c80e(0x13d)]();}[_0x3a57f9(0x13d)](){const _0x4111b5=_0x3a57f9,_0x53284c=this;this[_0x4111b5(0x2b3)](this[_0x4111b5(0x1c8)][_0x4111b5(0x1b1)]({'onBeforePasteImage':async _0xfc845=>{const _0x1d48fe=_0x4111b5,_0x3a4da4=await _0x53284c['_imageIoService'][_0x1d48fe(0xdd)](_0xfc845);return _0x3a4da4?{'source':_0x3a4da4[_0x1d48fe(0x17b)],'imageSourceType':_0x3a4da4[_0x1d48fe(0x171)]}:null;}}));}};Ue=li([Ze(0x0,_0x4ddbc8),Ze(0x1,_0x19a472)],Ue);const Qe=[_0x3a57f9(0xf1),'jiqing.500',_0x3a57f9(0x24d),_0x3a57f9(0x124),'blue.400','yellow.400'];class He extends _0x16ac65{constructor(){const _0x12f3e7=_0x3a57f9;super(...arguments),_(this,_0x12f3e7(0x25d),new Map()),_(this,_0x12f3e7(0x1b9),0x0);}[_0x3a57f9(0x2c5)](_0x3ac74f){const _0x2b7ab3=_0x3a57f9;if(this[_0x2b7ab3(0x25d)][_0x2b7ab3(0x223)](_0x3ac74f))return this['_assignedColors'][_0x2b7ab3(0x147)](_0x3ac74f);const _0x5da509=Qe[this[_0x2b7ab3(0x1b9)]];return this[_0x2b7ab3(0x1b9)]=(this[_0x2b7ab3(0x1b9)]+0x1)%Qe['length'],this[_0x2b7ab3(0x25d)][_0x2b7ab3(0x22d)](_0x3ac74f,_0x5da509),_0x5da509;}}function Rt(_0x4895b3){let _0x35cea2='';for(const _0x35bd34 of _0x4895b3){const {startOffset:_0x27e418,endOffset:_0x1a4577,isActive:_0x412b9c,rangeType:_0x134075,segmentId:_0x18eb72,segmentPage:_0xb00440}=_0x35bd34;_0x35cea2['length']&&(_0x35cea2+=','),_0x35cea2+=_0x27e418+':'+_0x1a4577+':'+(_0x412b9c?'1':'0')+':'+_0x134075+':'+_0x18eb72+':'+_0xb00440;}return _0x35cea2;}function _i(_0x519978){const _0x501a90=_0x3a57f9,_0x20479f=_0x519978[_0x501a90(0x28d)](','),_0x3a0c0b=[];for(const _0x37304c of _0x20479f){const [_0x20cf3f,_0x148fa6,_0x3c0a95,_0x338859,_0xc5cd8c,_0x8feeb9]=_0x37304c['split'](':');_0x3a0c0b[_0x501a90(0x1fd)]({'startOffset':Number(_0x20cf3f),'endOffset':Number(_0x148fa6),'collapsed':_0x20cf3f===_0x148fa6,'isActive':_0x3c0a95==='1','rangeType':_0x338859===_0x5dc5fd[_0x501a90(0x15b)]?_0x5dc5fd[_0x501a90(0x15b)]:_0x5dc5fd[_0x501a90(0x1cb)],'segmentId':typeof _0xc5cd8c=='string'?String(_0xc5cd8c):'','segmentPage':Number(_0x8feeb9!=null?_0x8feeb9:-0x1)});}return _0x3a0c0b['some'](_0x273d7b=>_0x273d7b['isActive'])||(_0x3a0c0b[0x0][_0x501a90(0x218)]=!0x0),_0x3a0c0b;}class Fe extends _0x553b56{constructor(){const _0x4bdc78=_0x3a57f9;super(...arguments),_(this,'_collabCursorState$',new _0x3985c9(null)),_(this,'collabCursorState$',this[_0x4bdc78(0x160)][_0x4bdc78(0x10a)]());}[_0x3a57f9(0x129)](_0x31e2b0){const _0x49cd03=_0x3a57f9,{unitID:_0x12b900,memberID:_0x48460e,textRanges:_0x4250c3}=_0x31e2b0,_0x2d0593=Rt(_0x4250c3);if(_0x2d0593==='')return;const _0x29436a={'unitID':_0x12b900,'memberID':_0x48460e,'selection':_0x2d0593};this[_0x49cd03(0x160)]['next'](_0x29436a);}}var hi=Object['getOwnPropertyDescriptor'],ui=(_0x10ebc3,_0x36dcf9,_0x128752,_0x26236e)=>{const _0x487c79=_0x3a57f9;for(var _0xdefa8=_0x26236e>0x1?void 0x0:_0x26236e?hi(_0x36dcf9,_0x128752):_0x36dcf9,_0x38d89d=_0x10ebc3[_0x487c79(0x1f3)]-0x1,_0x9be169;_0x38d89d>=0x0;_0x38d89d--)(_0x9be169=_0x10ebc3[_0x38d89d])&&(_0xdefa8=_0x9be169(_0xdefa8)||_0xdefa8);return _0xdefa8;},P=(_0x105ce7,_0x1ec75f)=>(_0x3a47c7,_0xf0b199)=>_0x1ec75f(_0x3a47c7,_0xf0b199,_0x105ce7);const di=0x12c,fi=0x64;let Me=class extends _0x553b56{constructor(_0x2a0b76,_0x5279a6,_0x147a95,_0x2228d0,_0x11efdd,_0x4e7e6b,_0x3dba92,_0x197eb8,_0x1af7a7){const _0x3c8d7f=_0x3a57f9;super(),_(this,_0x3c8d7f(0x137),!0x1),_(this,_0x3c8d7f(0x13d),!0x1),_(this,_0x3c8d7f(0x26d),new _0x3985c9(new Map())),_(this,_0x3c8d7f(0x19c),this[_0x3c8d7f(0x26d)][_0x3c8d7f(0x10a)]()),_(this,'_roomMembers$',new _0x3985c9([])),_(this,'roomMembers$',this[_0x3c8d7f(0x12c)]['pipe'](_0x105dcf(di))),_(this,_0x3c8d7f(0x231),_0x4248fe(_0x58d791=>{const _0x26d193=_0x3c8d7f,_0x25f241={'eventID':_0x29005c[_0x26d193(0x2b7)],'data':{'unitID':this[_0x26d193(0x24e)],'memberID':this[_0x26d193(0x299)][_0x26d193(0x1c7)](),'selection':Rt(_0x58d791)}};this[_0x26d193(0x299)][_0x26d193(0x261)](_0x25f241,this[_0x26d193(0x24e)]);},fi)),(this[_0x3c8d7f(0x24e)]=_0x2a0b76,this[_0x3c8d7f(0x299)]=_0x5279a6,this[_0x3c8d7f(0x225)]=_0x147a95,this[_0x3c8d7f(0xeb)]=_0x2228d0,this['_memberService']=_0x11efdd,this[_0x3c8d7f(0x18c)]=_0x4e7e6b,this['_transformService']=_0x3dba92,this[_0x3c8d7f(0x224)]=_0x197eb8,this[_0x3c8d7f(0x29b)]=_0x1af7a7);}get[_0x3a57f9(0x18f)](){const _0x1bb99d=_0x3a57f9;return this[_0x1bb99d(0x26d)][_0x1bb99d(0x239)]();}get['roomMembers'](){const _0x2c5e51=_0x3a57f9;return this[_0x2c5e51(0x12c)][_0x2c5e51(0x239)]();}[_0x3a57f9(0x28e)](){const _0x2b8f52=_0x3a57f9;super[_0x2b8f52(0x28e)](),this[_0x2b8f52(0x26d)][_0x2b8f52(0x1c6)](new Map()),this[_0x2b8f52(0x26d)]['complete'](),this[_0x2b8f52(0x12c)][_0x2b8f52(0x1c6)]([]),this[_0x2b8f52(0x12c)][_0x2b8f52(0x154)]();}[_0x3a57f9(0x1f2)](){const _0x507a46=_0x3a57f9;this[_0x507a46(0x13d)]||(this[_0x507a46(0x13d)]=!0x0,this[_0x507a46(0x299)][_0x507a46(0x273)][_0x507a46(0x143)](_0x2a6b6e(this[_0x507a46(0x22f)]))[_0x507a46(0x175)](_0x58d6ea=>{const _0x3127d1=_0x507a46;_0x58d6ea===_0x3ac856['ONLINE']?this[_0x3127d1(0x282)]():this[_0x3127d1(0x1fc)]();}),this[_0x507a46(0x299)]['event$'][_0x507a46(0x143)](_0x2a6b6e(this['dispose$']))[_0x507a46(0x175)](_0x5e3a3e=>{const _0x398e72=_0x507a46,_0x4c8f18=_0x5e3a3e[_0x398e72(0x1b7)];_0x4c8f18===_0x29005c[_0x398e72(0x2b7)]&&this[_0x398e72(0x258)](_0x5e3a3e),_0x4c8f18===_0x29005c[_0x398e72(0x107)]&&this['_onCursorDelete'](_0x5e3a3e);}),this['disposeWithMe'](this[_0x507a46(0x29b)][_0x507a46(0x208)](_0x186900=>{const _0x286930=_0x507a46,_0x5b1343=_0x186900['params'];_0x5b1343!=null&&this[_0x286930(0x137)]&&_0x186900['id']===_0x5466dc['id']&&_0x5b1343[_0x286930(0xd4)]===this[_0x286930(0x24e)]&&_0x5b1343['isEditing']===!0x1&&_0x5b1343['ranges'][_0x286930(0x1f3)]>0x0&&this[_0x286930(0x231)](_0x5b1343[_0x286930(0x1ca)]);})),this[_0x507a46(0x18c)][_0x507a46(0xe4)][_0x507a46(0x143)](_0x2a6b6e(this[_0x507a46(0x22f)]))[_0x507a46(0x175)](_0x23437e=>{const _0x55b7cd=_0x507a46;if((_0x23437e==null?void 0x0:_0x23437e[_0x55b7cd(0x24e)])!==this[_0x55b7cd(0x24e)])return;const _0x290bcc={'eventID':_0x29005c[_0x55b7cd(0x2b7)],'data':_0x23437e};this[_0x55b7cd(0x258)](_0x290bcc);}),this['disposeWithMe'](this['_commandService'][_0x507a46(0x208)](_0x3c0914=>{const _0x5ad17d=_0x507a46;if(_0x3c0914['params']==null)return;const _0x1c653e=_0x3c0914['params'];if(_0x3c0914['id']!==_0x5a2a2a['id']||_0x1c653e[_0x5ad17d(0xd4)]!==this['unitID'])return;const _0x4cb9a5={'id':_0x5ad17d(0x29f),'params':_0x1c653e},_0x38fb3d=this['cursorInfo'];for(const [_0x465320,_0x24bc5a]of _0x38fb3d){const _0x556756={'id':_0x5ad17d(0x29f),'params':{'unitId':this['unitID'],'actions':null,'textRanges':_0x24bc5a[_0x5ad17d(0x1ca)]}},_0x8c043e=this[_0x5ad17d(0x252)]['transformMutation'](_0x4cb9a5,_0x556756,!0x1);if(_0x2e710a(_0x8c043e))throw _0x8c043e['error'];_0x38fb3d[_0x5ad17d(0x22d)](_0x465320,{..._0x24bc5a,'ranges':_0x8c043e[_0x5ad17d(0x1fa)][_0x5ad17d(0xf8)]['textRanges']});}queueMicrotask(()=>{const _0x26d68f=_0x5ad17d;this[_0x26d68f(0x26d)][_0x26d68f(0x1c6)](_0x38fb3d);});})));}[_0x3a57f9(0x258)](_0x493024){const _0x20c161=_0x3a57f9;var _0x5ac15c,_0x20c242;const {memberID:_0x47cf84,selection:_0x445bac}=_0x493024[_0x20c161(0x2a3)],_0x15be15=_i(_0x445bac),_0x1ff129=(_0x20c242=(_0x5ac15c=this[_0x20c161(0xe6)]['getMember'](this[_0x20c161(0x24e)],_0x47cf84))==null?void 0x0:_0x5ac15c['name'])!=null?_0x20c242:'Unknown\x20user',_0x2886fe={'color':this[_0x20c161(0xeb)][_0x20c161(0x2c5)](_0x47cf84),'name':_0x1ff129,'ranges':_0x15be15},_0x302feb=this[_0x20c161(0x18f)];_0x302feb[_0x20c161(0x22d)](_0x47cf84,_0x2886fe),this['_cursorInfo$'][_0x20c161(0x1c6)](_0x302feb);}['_onCursorDelete'](_0x2fe818){const _0x3bfd84=_0x3a57f9,{memberID:_0x512ec4}=_0x2fe818[_0x3bfd84(0x2a3)],_0x4fecfd=this[_0x3bfd84(0x18f)];_0x4fecfd[_0x3bfd84(0x286)](_0x512ec4),this[_0x3bfd84(0x26d)][_0x3bfd84(0x1c6)](_0x4fecfd);}[_0x3a57f9(0x282)](){const _0x2b0440=_0x3a57f9;var _0x4dd2f9;if(this['_online']=!0x0,((_0x4dd2f9=this[_0x2b0440(0x224)][_0x2b0440(0x2b4)]())==null?void 0x0:_0x4dd2f9['getUnitId']())!==this[_0x2b0440(0x24e)])return;const _0x651b0e=this[_0x2b0440(0x225)][_0x2b0440(0x147)](_0x5d5866)[_0x2b0440(0x128)]();Array[_0x2b0440(0x142)](_0x651b0e)&&_0x651b0e['length']>0x0&&this[_0x2b0440(0x231)](_0x651b0e);}[_0x3a57f9(0x1fc)](){const _0x498770=_0x3a57f9;this[_0x498770(0x137)]=!0x1;}};Me=ui([P(0x2,_0x3296bc(_0x538ee1)),P(0x3,_0x3296bc(He)),P(0x4,_0x3296bc(_0x1b3f61)),P(0x5,_0x3296bc(Fe)),P(0x6,_0x5dc57d),P(0x7,_0x1be569),P(0x8,_0x1b52c7)],Me);var Si=Object[_0x3a57f9(0x179)],mi=(_0x209abb,_0x373f38,_0x490ca3,_0xc1a498)=>{const _0x42eed6=_0x3a57f9;for(var _0x86754f=_0xc1a498>0x1?void 0x0:_0xc1a498?Si(_0x373f38,_0x490ca3):_0x373f38,_0x5aae73=_0x209abb[_0x42eed6(0x1f3)]-0x1,_0x330ede;_0x5aae73>=0x0;_0x5aae73--)(_0x330ede=_0x209abb[_0x5aae73])&&(_0x86754f=_0x330ede(_0x86754f)||_0x86754f);return _0x86754f;},x=(_0x7cc5af,_0x4d5fdb)=>(_0x7626f,_0x2ace0d)=>_0x4d5fdb(_0x7626f,_0x2ace0d,_0x7cc5af);const Ii=0x12c,vi=0x64,gi=()=>{let _0x461c6b=[],_0x255656=!0x1;return _0x1ad556=>{const _0x3fb988=_0x531b;_0x461c6b[_0x3fb988(0x1fd)](_0x1ad556),_0x255656||(_0x255656=!0x0,setTimeout(()=>{const _0x3261cb=_0x3fb988;_0x461c6b[_0x3261cb(0x1f5)](_0xabee97=>_0xabee97()),_0x461c6b=[],_0x255656=!0x1;}));};};let Le=class extends _0x553b56{constructor(_0x1d77e3,_0x329314,_0x3bc8e5,_0x138759,_0x6a5c78,_0x3b0cc4,_0x28ad7a,_0x3e71ac){const _0x5941e1=_0x3a57f9;super(),_(this,_0x5941e1(0x137),!0x1),_(this,'_init',!0x1),_(this,_0x5941e1(0x26d),new _0x3985c9(new Map())),_(this,_0x5941e1(0x19c),this[_0x5941e1(0x26d)]['asObservable']()),_(this,_0x5941e1(0x12c),new _0x3985c9([])),_(this,_0x5941e1(0x11e),this[_0x5941e1(0x12c)]['pipe'](_0x105dcf(Ii))),_(this,_0x5941e1(0x231),_0x4248fe((_0x5126dd,_0x445bf8)=>{const _0xb3acdb=_0x5941e1,_0x573a5b={'eventID':_0x29005c['UPDATE_CURSOR'],'data':{'unitID':this[_0xb3acdb(0x24e)],'memberID':this[_0xb3acdb(0x299)][_0xb3acdb(0x1c7)](),'selection':_0x14aab0(_0x5126dd,_0x445bf8[_0xb3acdb(0x21a)])}};this[_0xb3acdb(0x299)][_0xb3acdb(0x261)](_0x573a5b,this[_0xb3acdb(0x24e)]);},vi)),(this[_0x5941e1(0x24e)]=_0x1d77e3,this[_0x5941e1(0x299)]=_0x329314,this[_0x5941e1(0x225)]=_0x3bc8e5,this[_0x5941e1(0xeb)]=_0x138759,this['_memberService']=_0x6a5c78,this[_0x5941e1(0x224)]=_0x3b0cc4,this[_0x5941e1(0x29b)]=_0x28ad7a,this['_refRangeService']=_0x3e71ac);}get[_0x3a57f9(0x18f)](){return this['_cursorInfo$']['getValue']();}get[_0x3a57f9(0x1e8)](){const _0x278065=_0x3a57f9;return this[_0x278065(0x12c)]['getValue']();}[_0x3a57f9(0x28e)](){const _0x7d7ae=_0x3a57f9;super[_0x7d7ae(0x28e)](),this[_0x7d7ae(0x26d)][_0x7d7ae(0x1c6)](new Map()),this['_cursorInfo$'][_0x7d7ae(0x154)](),this[_0x7d7ae(0x12c)]['next']([]),this[_0x7d7ae(0x12c)]['complete']();}[_0x3a57f9(0x1f2)](){const _0x294dd8=_0x3a57f9;this['_init']||(this[_0x294dd8(0x13d)]=!0x0,this[_0x294dd8(0x299)][_0x294dd8(0x273)]['pipe'](_0x2a6b6e(this[_0x294dd8(0x22f)]))[_0x294dd8(0x175)](_0x28587a=>{const _0x22c22a=_0x294dd8;_0x28587a===_0x3ac856[_0x22c22a(0x1da)]?this[_0x22c22a(0x282)]():this['_toggleOffline']();}),this[_0x294dd8(0x299)][_0x294dd8(0x25b)]['pipe'](_0x2a6b6e(this['dispose$']))[_0x294dd8(0x175)](_0x1fcec1=>{const _0x112da9=_0x294dd8,_0x1d0435=_0x1fcec1['eventID'];_0x1d0435===_0x29005c[_0x112da9(0x2b7)]&&this[_0x112da9(0x258)](_0x1fcec1),_0x1d0435===_0x29005c[_0x112da9(0x107)]&&this['_onCursorDelete'](_0x1fcec1);}),this[_0x294dd8(0x1fb)](),this[_0x294dd8(0x2b3)](this[_0x294dd8(0x29b)][_0x294dd8(0x208)](_0x11e931=>{const _0x5da3ba=_0x294dd8;if(this[_0x5da3ba(0x137)]&&_0x11e931['id']===_0x292d39['id']&&_0x11e931[_0x5da3ba(0xf8)][_0x5da3ba(0xd4)]===this['unitID']){const _0x386c62=_0x11e931[_0x5da3ba(0xf8)];this[_0x5da3ba(0x231)](_0x386c62[_0x5da3ba(0x1e0)],_0x386c62[_0x5da3ba(0x22b)][0x0]);}})));}[_0x3a57f9(0x258)](_0x5c6f9c){const _0x47e12a=_0x3a57f9;var _0x2b1163,_0x44c347;const {memberID:_0x2d0e11,selection:_0x54181c}=_0x5c6f9c[_0x47e12a(0x2a3)],{sheetName:_0x5cd474,range:_0x1c0d19}=_0x5d2865(_0x54181c),_0x184e99={'name':(_0x44c347=(_0x2b1163=this['_memberService'][_0x47e12a(0x17f)](this[_0x47e12a(0x24e)],_0x2d0e11))==null?void 0x0:_0x2b1163[_0x47e12a(0xec)])!=null?_0x44c347:_0x47e12a(0x19e),'range':this['_getMergeRange'](_0x5cd474,_0x1c0d19),'sheetID':_0x5cd474,'color':this[_0x47e12a(0xeb)][_0x47e12a(0x2c5)](_0x2d0e11),'selection':_0x54181c},_0x37af3b=this['cursorInfo'];_0x37af3b[_0x47e12a(0x22d)](_0x2d0e11,_0x184e99),this[_0x47e12a(0x26d)]['next'](_0x37af3b);}['_onCursorDelete'](_0x3134c){const _0x17c5c7=_0x3a57f9,{memberID:_0x49a86e}=_0x3134c[_0x17c5c7(0x2a3)],_0x18d058=this[_0x17c5c7(0x18f)];_0x18d058['delete'](_0x49a86e),this[_0x17c5c7(0x26d)][_0x17c5c7(0x1c6)](_0x18d058);}[_0x3a57f9(0x1d6)](_0x9bdc70,_0x17139e){const _0x25eaa1=_0x3a57f9;var _0x4380df,_0x8d4af7;const _0x406759=(_0x8d4af7=(_0x4380df=this[_0x25eaa1(0x224)][_0x25eaa1(0x2c6)](this[_0x25eaa1(0x24e)]))==null?void 0x0:_0x4380df[_0x25eaa1(0x11d)](_0x9bdc70))==null?void 0x0:_0x8d4af7[_0x25eaa1(0x246)]();return(_0x406759==null?void 0x0:_0x406759[_0x25eaa1(0xf7)](_0x811e63=>_0x1377a1['contains'](_0x811e63,_0x17139e)))||_0x17139e;}[_0x3a57f9(0x1fb)](){const _0x113a9b=_0x3a57f9,_0x3321e9=new _0x30772f(),_0x569bba=gi(),_0x15cb6f=()=>{const _0x177b2b=_0x531b;_0x3321e9[_0x177b2b(0x28e)]();const _0x3d6546=(_0x49dff2,_0x1e823a,_0x5cbfbd,_0x1747d2)=>{const _0x1d0789=_0x177b2b;let _0x39f949=[];switch(_0x49dff2['id']){case _0x4c62fc[_0x1d0789(0x1d0)]:{_0x39f949=_0x341296(_0x49dff2,_0x1747d2);break;}case _0x4c62fc[_0x1d0789(0x1f6)]:{_0x39f949=_0xace0d(_0x49dff2,_0x1747d2);break;}case _0x4c62fc[_0x1d0789(0x24a)]:{_0x39f949=_0x2a8171(_0x49dff2,_0x1747d2);break;}case _0x4c62fc[_0x1d0789(0x158)]:{_0x39f949=_0x3758d0(_0x49dff2,_0x1747d2);break;}case _0x4c62fc[_0x1d0789(0x173)]:{_0x39f949=_0xa51913(_0x49dff2,_0x1747d2);break;}case _0x4c62fc[_0x1d0789(0x235)]:{_0x39f949=_0x36e4bb(_0x49dff2,_0x1747d2);break;}case _0x4c62fc['MoveRangeCommandId']:{_0x39f949=_0x2d28a8(_0x49dff2,_0x1747d2);break;}case _0x4c62fc[_0x1d0789(0x152)]:{_0x39f949=_0x8c424c(_0x49dff2,_0x1747d2);break;}case _0x4c62fc[_0x1d0789(0x1d1)]:{_0x39f949=_0x1837d3(_0x49dff2,_0x1747d2);break;}}const _0x5b8aba=_0x1a66b0(_0x39f949,_0x1747d2),_0x24f040=this[_0x1d0789(0x18f)]['get'](_0x1e823a);if(_0x24f040&&_0x5b8aba){const _0x20084a={..._0x24f040,'range':_0x5b8aba};this[_0x1d0789(0x18f)][_0x1d0789(0x22d)](_0x1e823a,_0x20084a),_0x569bba(()=>{const _0xccb160=_0x1d0789,_0x3fde6f=this['_refRangeService'][_0xccb160(0x157)](_0x5b8aba,_0x1938b0=>(_0x3fde6f[_0xccb160(0x28e)](),_0x3d6546(_0x1938b0,_0x1e823a,_0x5cbfbd,_0x5b8aba)));_0x3321e9[_0xccb160(0x28a)](_0x3fde6f);});}return{'redos':[],'undos':[]};};this[_0x177b2b(0x18f)][_0x177b2b(0x1f5)]((_0x18d10e,_0x47c183)=>{const _0x5d0167=_0x177b2b,{range:_0xd2be50,sheetID:_0x5066be}=_0x18d10e,_0x2ce934=this[_0x5d0167(0x174)][_0x5d0167(0x157)](_0xd2be50,_0x5c7b95=>(_0x2ce934[_0x5d0167(0x28e)](),_0x3d6546(_0x5c7b95,_0x47c183,_0x5066be,_0xd2be50)));_0x3321e9['add'](_0x2ce934);});};this[_0x113a9b(0x2b3)](_0x3d316a(this['_cursorInfo$'][_0x113a9b(0x175)](()=>{_0x15cb6f();})));}[_0x3a57f9(0x282)](){const _0x49e597=_0x3a57f9;var _0x207fc5,_0x31f218;if(this['_online']=!0x0,((_0x207fc5=this[_0x49e597(0x224)][_0x49e597(0x2b4)]())==null?void 0x0:_0x207fc5[_0x49e597(0x1bd)]())!==this[_0x49e597(0x24e)])return;const _0x30df03=(_0x31f218=this[_0x49e597(0x225)][_0x49e597(0x147)](_0x362350)[_0x49e597(0x215)]())==null?void 0x0:_0x31f218[0x0],_0x4ebb43=this[_0x49e597(0x224)][_0x49e597(0xfd)](_0x54ea39[_0x49e597(0x2bc)])[_0x49e597(0x135)]();_0x30df03&&_0x4ebb43&&this[_0x49e597(0x231)](_0x4ebb43[_0x49e597(0x253)](),_0x30df03);}[_0x3a57f9(0x1fc)](){const _0xb0748d=_0x3a57f9;this[_0xb0748d(0x137)]=!0x1;}};Le=mi([x(0x2,_0x3296bc(_0x538ee1)),x(0x3,_0x3296bc(He)),x(0x4,_0x3296bc(_0x1b3f61)),x(0x5,_0x1be569),x(0x6,_0x1b52c7),x(0x7,_0x3296bc(_0x3113c7))],Le);var pi=Object[_0x3a57f9(0x179)],Ci=(_0x39ecd9,_0x21507e,_0x54a706,_0x1883b3)=>{const _0x3cc46c=_0x3a57f9;for(var _0x3f9e0e=_0x1883b3>0x1?void 0x0:_0x1883b3?pi(_0x21507e,_0x54a706):_0x21507e,_0x3d266f=_0x39ecd9[_0x3cc46c(0x1f3)]-0x1,_0x2fa595;_0x3d266f>=0x0;_0x3d266f--)(_0x2fa595=_0x39ecd9[_0x3d266f])&&(_0x3f9e0e=_0x2fa595(_0x3f9e0e)||_0x3f9e0e);return _0x3f9e0e;},me=(_0x20b57e,_0x3c2484)=>(_0xd6abc9,_0x548bdc)=>_0x3c2484(_0xd6abc9,_0x548bdc,_0x20b57e);let F=class extends _0x553b56{constructor(_0x31f8c4,_0xb7be39,_0x2cfa18){const _0x2ed558=_0x3a57f9;super(),_(this,'_entities',new Map()),_(this,'_entityInit$',new _0x1a62a5()),(this[_0x2ed558(0x224)]=_0x31f8c4,this[_0x2ed558(0x225)]=_0xb7be39,this[_0x2ed558(0x10c)]=_0x2cfa18,this[_0x2ed558(0x13d)]());}[_0x3a57f9(0x28e)](){const _0x1142b2=_0x3a57f9;super[_0x1142b2(0x28e)](),this[_0x1142b2(0x2a0)][_0x1142b2(0x154)](),this['_entities'][_0x1142b2(0x1f5)](_0x20bb11=>_0x20bb11[_0x1142b2(0x28e)]());}[_0x3a57f9(0xe3)](_0x5a177a){const _0x56df7a=_0x3a57f9;return this[_0x56df7a(0x259)]['has'](_0x5a177a)?this[_0x56df7a(0x259)][_0x56df7a(0x147)](_0x5a177a)[_0x56df7a(0x19c)]:this['_entityInit$']['pipe'](_0x32a48e(_0x3cc7b5=>_0x3cc7b5[_0x56df7a(0x24e)]===_0x5a177a),_0x2f89c3(_0x7c7fc=>_0x7c7fc[_0x56df7a(0x19c)]));}[_0x3a57f9(0x13d)](){const _0x1ee66f=_0x3a57f9;this[_0x1ee66f(0x224)][_0x1ee66f(0x1c1)](_0x54ea39['UNIVER_SHEET'])['pipe'](_0x2a6b6e(this[_0x1ee66f(0x22f)]))[_0x1ee66f(0x175)](async _0x483171=>{const _0x1509ec=_0x1ee66f,_0x4d9d04=_0x483171[_0x1509ec(0x1bd)](),_0x5d9599=await this[_0x1509ec(0x203)](_0x4d9d04);this['_entityInit$'][_0x1509ec(0x1c6)](_0x5d9599),this[_0x1509ec(0x259)][_0x1509ec(0x22d)](_0x4d9d04,_0x5d9599);}),this[_0x1ee66f(0x224)][_0x1ee66f(0x1c1)](_0x54ea39['UNIVER_DOC'])[_0x1ee66f(0x143)](_0x2a6b6e(this['dispose$']))[_0x1ee66f(0x143)](_0x32a48e(_0x67585c=>!_0x67585c[_0x1ee66f(0x1bd)]()[_0x1ee66f(0x13b)]('__')))[_0x1ee66f(0x175)](async _0x496b23=>{const _0x57b59b=_0x1ee66f,_0x374a73=_0x496b23[_0x57b59b(0x1bd)](),_0x457485=await this[_0x57b59b(0x20f)](_0x374a73);this[_0x57b59b(0x2a0)]['next'](_0x457485),this[_0x57b59b(0x259)][_0x57b59b(0x22d)](_0x374a73,_0x457485);}),_0x511b3a(this[_0x1ee66f(0x224)][_0x1ee66f(0x162)](_0x54ea39['UNIVER_DOC']),this[_0x1ee66f(0x224)][_0x1ee66f(0x162)](_0x54ea39[_0x1ee66f(0x2bc)]))[_0x1ee66f(0x143)](_0x2a6b6e(this[_0x1ee66f(0x22f)]))['subscribe'](_0x55113e=>{const _0x2f63be=_0x1ee66f,_0x55cdac=_0x55113e[_0x2f63be(0x1bd)](),_0x115980=this[_0x2f63be(0x259)][_0x2f63be(0x147)](_0x55cdac);_0x115980&&(_0x115980['dispose'](),this[_0x2f63be(0x259)][_0x2f63be(0x286)](_0x55cdac));});}async[_0x3a57f9(0x203)](_0x4b007d){const _0x35f90e=_0x3a57f9,_0x15eed9=await this[_0x35f90e(0x10c)][_0x35f90e(0x2bf)](_0x4b007d),_0x68dd02=this[_0x35f90e(0x225)][_0x35f90e(0x14a)](Le,_0x4b007d,_0x15eed9);return _0x68dd02['init'](),_0x68dd02;}async[_0x3a57f9(0x20f)](_0x2a646f){const _0x1fe86e=_0x3a57f9,_0x114613=await this[_0x1fe86e(0x10c)][_0x1fe86e(0x2bf)](_0x2a646f),_0x545137=this[_0x1fe86e(0x225)][_0x1fe86e(0x14a)](Me,_0x2a646f,_0x114613);return _0x545137[_0x1fe86e(0x1f2)](),_0x545137;}};F=Ci([me(0x0,_0x1be569),me(0x1,_0x3296bc(_0x538ee1)),me(0x2,_0x3296bc(_0x1e8ca8))],F);const te=0x14,qe=0xc8,Ie=0x4,Ei=0x5;function Oi(_0x2782c3,_0x1b2167){const _0x542d05=_0x3a57f9;let {radius:_0x354188,width:_0x25a3a3,height:_0x4e5afd}=_0x1b2167;_0x354188=_0x354188!=null?_0x354188:0x0,_0x25a3a3=_0x25a3a3!=null?_0x25a3a3:0x1e,_0x4e5afd=_0x4e5afd!=null?_0x4e5afd:0x1e;let _0x7afbfc=0x0,_0x130222=0x0,_0xf99bac=0x0;_0x7afbfc=_0x130222=_0xf99bac=Math[_0x542d05(0x274)](_0x354188,_0x25a3a3/0x2,_0x4e5afd/0x2),_0x2782c3['beginPath'](),_0x2782c3[_0x542d05(0x178)](_0x7afbfc,0x0),_0x2782c3[_0x542d05(0x2c2)](_0x25a3a3-_0x130222,0x0),_0x2782c3[_0x542d05(0x26e)](_0x25a3a3-_0x130222,_0x130222,_0x130222,Math['PI']*0x3/0x2,0x0,!0x1),_0x2782c3[_0x542d05(0x2c2)](_0x25a3a3,_0x4e5afd-_0xf99bac),_0x2782c3[_0x542d05(0x26e)](_0x25a3a3-_0xf99bac,_0x4e5afd-_0xf99bac,_0xf99bac,0x0,Math['PI']/0x2,!0x1),_0x2782c3[_0x542d05(0x2c2)](0x0,_0x4e5afd),_0x2782c3['lineTo'](0x0,_0x7afbfc),_0x2782c3['arc'](_0x7afbfc,_0x7afbfc,_0x7afbfc,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x2782c3[_0x542d05(0x1ce)](),_0x1b2167[_0x542d05(0x28b)]&&(_0x2782c3[_0x542d05(0x189)](),_0x2782c3[_0x542d05(0x2c1)]=_0x1b2167[_0x542d05(0x28b)],_0x1b2167['fillRule']===_0x542d05(0x168)?_0x2782c3[_0x542d05(0x28b)](_0x542d05(0x168)):_0x2782c3[_0x542d05(0x28b)](),_0x2782c3[_0x542d05(0x172)]());}class ue extends _0x190471{constructor(_0x20f590,_0x56ec06){const _0x3dd93b=_0x3a57f9;super(_0x20f590,_0x56ec06),_(this,_0x3dd93b(0x2a5)),_(this,_0x3dd93b(0x12e)),(this['color']=_0x56ec06==null?void 0x0:_0x56ec06[_0x3dd93b(0x2a5)],this[_0x3dd93b(0x12e)]=_0x56ec06==null?void 0x0:_0x56ec06[_0x3dd93b(0x12e)]);}static[_0x3a57f9(0x205)](_0x2092b9,_0xc67bdb){const _0x5885fd=_0x3a57f9,{text:_0x1a975d,color:_0x497ba3}=_0xc67bdb;_0x2092b9[_0x5885fd(0x189)](),_0x2092b9[_0x5885fd(0x2b6)]=_0x5885fd(0x19b);const _0x3a090b=_0x2092b9[_0x5885fd(0x298)](_0x1a975d)[_0x5885fd(0x2ba)],_0xb71854=Math[_0x5885fd(0x274)](_0x3a090b+0x2*Ie,qe);Oi(_0x2092b9,{'height':te,'radius':0x4,'width':_0xb71854,'fill':_0x497ba3}),_0x2092b9[_0x5885fd(0x2c1)]=_0x5885fd(0xd1);const _0x4c50b4=Ie,_0x22e90c=te-Ei,_0x4f45bc=qe-0x2*Ie;if(_0x3a090b>_0x4f45bc){let _0x24daf8='',_0x1e7841=0x0;for(const _0x52020a of _0x1a975d){const _0x2f2b52=_0x2092b9[_0x5885fd(0x298)](_0x52020a)[_0x5885fd(0x2ba)];if(_0x1e7841+_0x2f2b52<=_0x4f45bc-_0x2092b9[_0x5885fd(0x298)](_0x5885fd(0x198))[_0x5885fd(0x2ba)])_0x24daf8+=_0x52020a,_0x1e7841+=_0x2f2b52;else{_0x24daf8+='...';break;}}_0x2092b9[_0x5885fd(0x15e)](_0x24daf8,_0x4c50b4,_0x22e90c);}else _0x2092b9[_0x5885fd(0x15e)](_0x1a975d,_0x4c50b4,_0x22e90c);_0x2092b9[_0x5885fd(0x172)]();}['_draw'](_0x4a5ac4){ue['drawWith'](_0x4a5ac4,this);}}const ve='collab-text-anchor-',bi=_0x3a57f9(0x2c4),Ti=_0x3a57f9(0xf6),G=0x6,Ri=1.5,ge=0x4,Di=1.5,Ni=_0x3a57f9(0x140);function _0x531b(_0x55be33,_0x210474){const _0x11938b=_0x1193();return _0x531b=function(_0x531b85,_0x2a7e5b){_0x531b85=_0x531b85-0xd0;let _0x242b6a=_0x11938b[_0x531b85];return _0x242b6a;},_0x531b(_0x55be33,_0x210474);}class et{constructor(_0x393e79,_0x426cc1,_0x3a8842,_0x1f6459){const _0x3dcbbb=_0x3a57f9;_(this,_0x3dcbbb(0x1ae),[]),_(this,_0x3dcbbb(0x20a),null),_(this,_0x3dcbbb(0x237),null),_(this,'_anchorDot',null),_(this,'_hideTimer',null),_(this,_0x3dcbbb(0x106),null),(this['_cursor']=_0x393e79,this[_0x3dcbbb(0x138)]=_0x426cc1,this['_docSkeleton']=_0x3a8842,this['_document']=_0x1f6459,this['_render']());}set[_0x3a57f9(0x27a)](_0xb51f90){const _0x4f48b5=_0x3a57f9;_0xb51f90?(this[_0x4f48b5(0x20b)]&&this[_0x4f48b5(0x20b)][_0x4f48b5(0x26a)](),this[_0x4f48b5(0x237)]&&this[_0x4f48b5(0x237)]['show']()):(this['_anchorDot']&&this[_0x4f48b5(0x20b)]['show'](),this[_0x4f48b5(0x237)]&&this[_0x4f48b5(0x237)][_0x4f48b5(0x26a)]());}['dispose'](){const _0x3fab58=_0x3a57f9;for(const _0x166c1d of this[_0x3fab58(0x1ae)])_0x166c1d['dispose']();this[_0x3fab58(0x237)]&&this['_textBubble'][_0x3fab58(0x28e)](),this[_0x3fab58(0x20b)]&&this[_0x3fab58(0x20b)]['dispose'](),this['_anchor']&&this[_0x3fab58(0x20a)][_0x3fab58(0x28e)](),this[_0x3fab58(0x106)]&&this[_0x3fab58(0x106)]();}[_0x3a57f9(0x275)](){const _0x37d77c=_0x3a57f9;var _0x4613f5;const {_docSkeleton:_0x4c6b52,_document:_0x260b06}=this,{color:_0x5a3a82,name:_0x31a444,ranges:_0x33bbab}=this['_cursor'],_0x31f3e2=_0x260b06['getOffsetConfig'](),{docsLeft:_0x263c8d,docsTop:_0x17441a}=_0x31f3e2,_0x1e5fdc=new _0x378cc1(_0x31f3e2,_0x4c6b52);for(const {startOffset:_0x58c899,endOffset:_0x10c547,rangeType:_0x13118b,segmentId:_0x505faf,segmentPage:_0x34b2e1,collapsed:_0xf30604,isActive:_0x43505e}of _0x33bbab){const _0x4777d3=_0x4c6b52['findNodePositionByCharIndex'](_0x58c899,!0x0,_0x505faf,_0x34b2e1);let _0x22cd1e=_0x4c6b52[_0x37d77c(0x270)](_0x10c547,!0x0,_0x505faf,_0x34b2e1);if(_0x22cd1e==null&&(_0x22cd1e=_0x4c6b52[_0x37d77c(0x270)](_0x10c547-0x1,!0x1,_0x505faf,_0x34b2e1)),_0x43505e){const {contentBoxPointGroup:_0x45ac22}=_0x1e5fdc['getRangePointData'](_0x22cd1e,_0x22cd1e);if(_0x45ac22[_0x37d77c(0x1f3)]===0x0)continue;this[_0x37d77c(0x1dd)](_0x5a3a82,_0x45ac22,_0x263c8d,_0x17441a,_0x31a444),this[_0x37d77c(0x106)]=this[_0x37d77c(0x18a)]();}if(_0x4777d3&&_0x22cd1e){if(_0x13118b===_0x5dc5fd[_0x37d77c(0x1cb)]){const _0x578d16=new _0x245e8e(_0x31f3e2,_0x4c6b52),{pointGroup:_0x482fc8}=(_0x4613f5=_0x578d16['getRangePointData'](_0x4777d3,_0x22cd1e))!=null?_0x4613f5:{};if(_0x482fc8==null||_0x482fc8[_0x37d77c(0x1f3)]===0x0)continue;this[_0x37d77c(0x103)](_0x5a3a82,_0x482fc8,_0x263c8d,_0x17441a);}else{if(!_0xf30604){const {borderBoxPointGroup:_0x249f6c}=_0x1e5fdc[_0x37d77c(0x2ab)](_0x4777d3,_0x22cd1e);if(_0x249f6c[_0x37d77c(0x1f3)]===0x0)continue;this[_0x37d77c(0x1bc)](_0x5a3a82,_0x249f6c,_0x263c8d,_0x17441a);}}}}}[_0x3a57f9(0x1dd)](_0x5caaca,_0x56aebf,_0x428b0a,_0x427d55,_0x4bf28c){const _0x136428=_0x3a57f9,_0x3597d8=this[_0x136428(0x163)](_0x56aebf),{left:_0x4e3653,top:_0x245ef2,height:_0x16e1c2}=_0x3597d8,_0x567e85=this[_0x136428(0xfb)](),_0x41f619=Di/_0x567e85,_0x3d3b75=new _0x298a7f(ve+_0x44ddb8(G),{'left':_0x4e3653+_0x428b0a-_0x41f619,'top':_0x245ef2+_0x427d55,'height':_0x16e1c2,'width':Ri,'fill':_0x5caaca||_0x360fe9(_0x4ec670[_0x136428(0x2b5)],0x0),'strokeWidth':_0x41f619,'stroke':Ni,'evented':!0x0});this[_0x136428(0x20a)]=_0x3d3b75,this[_0x136428(0x138)][_0x136428(0x193)](_0x3d3b75,_0x4cd739);const _0x592175=new _0x298a7f(ve+_0x44ddb8(G),{'left':_0x4e3653+_0x428b0a-_0x41f619,'top':_0x245ef2+_0x427d55-ge/0x2,'height':ge,'width':ge,'fill':_0x5caaca||_0x360fe9(_0x4ec670[_0x136428(0x2b5)],0x0),'strokeWidth':0x0,'stroke':_0x5caaca||_0x360fe9(_0x4ec670[_0x136428(0x2b5)],0x0),'evented':!0x1});this[_0x136428(0x20b)]=_0x592175,this[_0x136428(0x138)][_0x136428(0x193)](_0x592175,_0x4cd739);const _0x1f5411=new ue(ve+_0x44ddb8(G),{'left':_0x4e3653+_0x428b0a-_0x41f619,'top':_0x245ef2+_0x427d55-te,'text':_0x4bf28c,'color':_0x5caaca});this['_textBubble']=_0x1f5411,this[_0x136428(0x138)][_0x136428(0x193)](_0x1f5411,_0x4cd739),this[_0x136428(0x27a)]=!0x1;}[_0x3a57f9(0x18a)](){const _0x97a4a1=_0x3a57f9,_0x3b6386=this[_0x97a4a1(0x20a)][_0x97a4a1(0x28f)][_0x97a4a1(0x105)](()=>{const _0x362e67=_0x97a4a1;this[_0x362e67(0x27a)]=!0x0;}),_0x541e1b=this[_0x97a4a1(0x20a)][_0x97a4a1(0x2a8)][_0x97a4a1(0x105)](()=>{const _0x3d4c8e=_0x97a4a1;this['_hideTimer']&&clearTimeout(this[_0x3d4c8e(0x212)]),this[_0x3d4c8e(0x212)]=setTimeout(()=>{const _0x112a04=_0x3d4c8e;this[_0x112a04(0x27a)]=!0x1;},0x7d0);});return()=>{const _0xf7358e=_0x97a4a1;_0x3b6386['unsubscribe'](),_0x541e1b[_0xf7358e(0x100)]();};}[_0x3a57f9(0x1bc)](_0x7898a8,_0x4ab0b6,_0x5919ec,_0xdd1d42){const _0x571c41=_0x3a57f9,_0x3a45de=new _0x2f68e6(_0x7898a8)['setAlpha'](0.2)[_0x571c41(0x1a3)](),_0x40695a=new _0x5b63e0(bi+_0x44ddb8(G),{'pointsGroup':_0x4ab0b6,'fill':_0x3a45de||_0x360fe9(_0x4ec670[_0x571c41(0x2b5)],0.2),'left':_0x5919ec,'top':_0xdd1d42,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x571c41(0x1ae)][_0x571c41(0x1fd)](_0x40695a),this[_0x571c41(0x138)][_0x571c41(0x193)](_0x40695a,_0x4cd739);}['_drawRectRange'](_0xa17cbc,_0x5dc50c,_0x229fb9,_0x2b0408){const _0x12bab2=_0x3a57f9,_0x478b4e=new _0x2f68e6(_0xa17cbc)[_0x12bab2(0xee)](0.2)['toRgbString'](),_0x20c872=new _0x5b63e0(Ti+_0x44ddb8(G),{'pointsGroup':_0x5dc50c,'fill':_0x478b4e||_0x360fe9(_0x4ec670[_0x12bab2(0x2b5)],0.2),'left':_0x229fb9,'top':_0x2b0408,'evented':!0x1,'debounceParentDirty':!0x1});this['_shapes'][_0x12bab2(0x1fd)](_0x20c872),this['_scene']['addObject'](_0x20c872,_0x4cd739);}['_getAnchorBounding'](_0x3a7b61){const _0x2b1669=_0x3a7b61[0x0],_0x3d64bd=_0x2b1669[0x0],_0xe0bb8d=_0x2b1669[0x2],{x:_0x1b1c75,y:_0x57911f}=_0x3d64bd,{x:_0x20bd79,y:_0xe10f65}=_0xe0bb8d;return{'left':_0x1b1c75,'top':_0x57911f,'width':_0x20bd79-_0x1b1c75,'height':_0xe10f65-_0x57911f};}[_0x3a57f9(0xfb)](){const _0x3c4833=_0x3a57f9,{scaleX:_0x1f81c8,scaleY:_0x332d5e}=this[_0x3c4833(0x138)][_0x3c4833(0x1c2)]();return Math['max'](_0x1f81c8,_0x332d5e);}}var Ui=Object[_0x3a57f9(0x179)],Mi=(_0x30f4e,_0x4593cb,_0x1765d0,_0x2e8cc3)=>{const _0x269cb8=_0x3a57f9;for(var _0x4a8274=_0x2e8cc3>0x1?void 0x0:_0x2e8cc3?Ui(_0x4593cb,_0x1765d0):_0x4593cb,_0xda6527=_0x30f4e[_0x269cb8(0x1f3)]-0x1,_0x597111;_0xda6527>=0x0;_0xda6527--)(_0x597111=_0x30f4e[_0xda6527])&&(_0x4a8274=_0x597111(_0x4a8274)||_0x4a8274);return _0x4a8274;},Q=(_0x37985b,_0x200d12)=>(_0x475306,_0x12560a)=>_0x200d12(_0x475306,_0x12560a,_0x37985b);let Pe=class extends _0x553b56{constructor(_0x53a44f,_0x465761,_0x1bd240,_0x28327a,_0xcba6b5){const _0x1d38d0=_0x3a57f9;super(),_(this,_0x1d38d0(0x116),[]),_(this,_0x1d38d0(0x117),[]),(this[_0x1d38d0(0x226)]=_0x53a44f,this[_0x1d38d0(0x133)]=_0x465761,this[_0x1d38d0(0x289)]=_0x1bd240,this[_0x1d38d0(0x29b)]=_0x28327a,this[_0x1d38d0(0x27f)]=_0xcba6b5,this['_init']());}[_0x3a57f9(0x13d)](){const _0x3b2b4f=_0x3a57f9,_0x4f2be3=this[_0x3b2b4f(0x226)][_0x3b2b4f(0xd4)],_0x1a4cee=this[_0x3b2b4f(0x133)];this[_0x3b2b4f(0x2b3)](_0x4c37b2([this[_0x3b2b4f(0x289)][_0x3b2b4f(0xe3)](_0x4f2be3),this[_0x3b2b4f(0x27f)][_0x3b2b4f(0x29e)]])[_0x3b2b4f(0x143)](_0x27e7e4(([_0x28ae23,_0x23a7f3])=>({'skeleton':_0x1a4cee['getSkeleton'](),'cursors':[..._0x28ae23[_0x3b2b4f(0x170)]()][_0x3b2b4f(0x2c8)](_0x59ed42=>({..._0x59ed42,'color':this[_0x3b2b4f(0x27f)][_0x3b2b4f(0x121)](_0x59ed42['color'])}))})))[_0x3b2b4f(0x175)](_0x368e9a=>{const _0x15027a=_0x3b2b4f;if(this[_0x15027a(0x2aa)](),_0x368e9a){const {skeleton:_0x4a4990,cursors:_0x179db9}=_0x368e9a;this[_0x15027a(0x256)](_0x4a4990,_0x179db9);}})),this[_0x3b2b4f(0x242)](),this[_0x3b2b4f(0x148)]();}[_0x3a57f9(0x256)](_0xaf3cf8,_0x4ab3ec){const _0x294bb0=_0x3a57f9,{scene:_0x1dd805,mainComponent:_0x21ab26}=this[_0x294bb0(0x226)],_0x310c8d=_0x4ab3ec[_0x294bb0(0xe9)](_0x38af02=>new et(_0x38af02,_0x1dd805,_0xaf3cf8,_0x21ab26));this['_cursorShapes']=_0x310c8d,this[_0x294bb0(0x117)]=_0x4ab3ec;}[_0x3a57f9(0x265)](){const _0x50693c=_0x3a57f9;this[_0x50693c(0x2aa)]();const {scene:_0x731951,mainComponent:_0x17b1e0}=this[_0x50693c(0x226)],_0x482986=this[_0x50693c(0x133)][_0x50693c(0x297)](),_0x4cce7b=this[_0x50693c(0x117)]['map'](_0x18b7f4=>new et(_0x18b7f4,_0x731951,_0x482986,_0x17b1e0));this[_0x50693c(0x116)]=_0x4cce7b;}[_0x3a57f9(0x2aa)](){const _0x22900e=_0x3a57f9;this[_0x22900e(0x116)][_0x22900e(0x1f5)](_0x197b2a=>_0x197b2a[_0x22900e(0x28e)]()),this[_0x22900e(0x116)]=[];}[_0x3a57f9(0x148)](){const _0x1b6cfc=_0x3a57f9,_0x3dd670=[_0x4bbc50['id']];this[_0x1b6cfc(0x2b3)](this[_0x1b6cfc(0x29b)][_0x1b6cfc(0x208)](_0x1c709f=>{const _0xac70b0=_0x1b6cfc;_0x3dd670[_0xac70b0(0x2ac)](_0x1c709f['id'])&&_0x1c709f[_0xac70b0(0xf8)][_0xac70b0(0xd4)]===this['_context'][_0xac70b0(0xd4)]&&this[_0xac70b0(0x265)]();}));}[_0x3a57f9(0x242)](){const _0x25b519=_0x3a57f9;this[_0x25b519(0x2b3)](_0x12af36(this[_0x25b519(0x226)][_0x25b519(0x2b8)][_0x25b519(0x115)])[_0x25b519(0x143)](_0x5ee7ee(_0x2e35f1=>_0x2e35f1['type']===_0x7ede9f['resize']),_0x303e6d(0x10))[_0x25b519(0x175)](()=>{const _0x36e365=_0x25b519;this[_0x36e365(0x265)]();}));}};Pe=Mi([Q(0x1,_0x3296bc(_0x11fdd8)),Q(0x2,_0x3296bc(F)),Q(0x3,_0x1b52c7),Q(0x4,_0x3296bc(_0x2a35f5))],Pe);const Li=0x1,Pi=1.5;class wi extends _0x190471{constructor(_0x336e82,_0x90ee75){const _0x7fe49c=_0x3a57f9;super(_0x336e82,_0x90ee75),_(this,_0x7fe49c(0x15f)),_(this,_0x7fe49c(0x169),!0x1),_(this,'_range'),_(this,_0x7fe49c(0x120),''),_(this,_0x7fe49c(0x29a),_0x7fe49c(0x234)),_(this,_0x7fe49c(0x202)),(_0x90ee75&&this['setShapeProps'](_0x90ee75),this['onPointerEnter$']['subscribeEvent'](()=>this[_0x7fe49c(0x1e2)]({'hovered':!0x0})),this['onPointerLeave$']['subscribeEvent'](()=>this[_0x7fe49c(0x1e2)]({'hovered':!0x1})));}[_0x3a57f9(0x1e2)](_0x54ac27){const _0x5c21cc=_0x3a57f9;var _0x2703dc,_0x5195bb,_0x1a07fb,_0x314d4a,_0x2cdf37,_0x2bf2df;this[_0x5c21cc(0x15f)]=(_0x2703dc=_0x54ac27['color'])!=null?_0x2703dc:this[_0x5c21cc(0x15f)],this[_0x5c21cc(0x169)]=(_0x5195bb=_0x54ac27[_0x5c21cc(0x2cc)])!=null?_0x5195bb:this['_hovered'],this[_0x5c21cc(0xdf)]=(_0x1a07fb=_0x54ac27[_0x5c21cc(0x21a)])!=null?_0x1a07fb:this[_0x5c21cc(0xdf)],this[_0x5c21cc(0x120)]=(_0x314d4a=_0x54ac27['name'])!=null?_0x314d4a:this[_0x5c21cc(0x120)],this[_0x5c21cc(0x29a)]=(_0x2cdf37=_0x54ac27[_0x5c21cc(0x13e)])!=null?_0x2cdf37:this['_labelPosition'],this[_0x5c21cc(0x202)]=(_0x2bf2df=_0x54ac27[_0x5c21cc(0x1e6)])!=null?_0x2bf2df:this['_backgroundColor'],this[_0x5c21cc(0xd2)]({'width':_0x54ac27[_0x5c21cc(0x2ba)],'height':_0x54ac27[_0x5c21cc(0x167)]});}[_0x3a57f9(0x1a9)](_0x4897dd){const _0x1a19d1=_0x3a57f9,{row:_0x3a144b,column:_0x77afe2}=_0x4897dd;if(_0x3a144b>=this[_0x1a19d1(0xdf)][_0x1a19d1(0x222)]&&_0x3a144b<=this['_range'][_0x1a19d1(0x288)]&&_0x77afe2>=this[_0x1a19d1(0xdf)][_0x1a19d1(0x149)]&&_0x77afe2<=this[_0x1a19d1(0xdf)][_0x1a19d1(0x10d)]){this[_0x1a19d1(0x1e2)]({'hovered':!0x0});return;}this[_0x1a19d1(0x1e2)]({'hovered':!0x1});}[_0x3a57f9(0xe7)](_0x264611){return!0x1;}[_0x3a57f9(0x19f)](_0x11adb1){const _0xb13b91=_0x3a57f9;_0x298a7f[_0xb13b91(0x205)](_0x11adb1,{'width':this[_0xb13b91(0x2ba)],'height':this[_0xb13b91(0x167)],'strokeWidth':Pi,'stroke':this[_0xb13b91(0x15f)],'evented':!0x1,'fill':this[_0xb13b91(0x202)]}),this[_0xb13b91(0x169)]&&(_0x11adb1[_0xb13b91(0x189)](),_0x11adb1[_0xb13b91(0xde)](0x1,0x0,0x0,0x1,this[_0xb13b91(0x2ba)],this['_labelPosition']==='bottom'?0x0:-0x14),ue['drawWith'](_0x11adb1,{'text':this[_0xb13b91(0x120)],'color':this[_0xb13b91(0x15f)]}),_0x11adb1[_0xb13b91(0x172)]());}}var Ai=Object['getOwnPropertyDescriptor'],yi=(_0x47ed47,_0x2d3777,_0x2232e8,_0x25bcc9)=>{const _0x4c0c9f=_0x3a57f9;for(var _0x32a5c9=_0x25bcc9>0x1?void 0x0:_0x25bcc9?Ai(_0x2d3777,_0x2232e8):_0x2d3777,_0x14438b=_0x47ed47[_0x4c0c9f(0x1f3)]-0x1,_0x2e31d4;_0x14438b>=0x0;_0x14438b--)(_0x2e31d4=_0x47ed47[_0x14438b])&&(_0x32a5c9=_0x2e31d4(_0x32a5c9)||_0x32a5c9);return _0x32a5c9;},pe=(_0x26c2e9,_0x455f49)=>(_0x579f39,_0x59c520)=>_0x455f49(_0x579f39,_0x59c520,_0x26c2e9);const $i=0x1389;let we=class extends _0x553b56{constructor(_0x427a6b,_0x1ad82c,_0x47dfc4,_0xeeb22a){const _0x38eb1f=_0x3a57f9;super(),_(this,_0x38eb1f(0x117),new Set()),_(this,_0x38eb1f(0x1e9),null),(this['_context']=_0x427a6b,this[_0x38eb1f(0x281)]=_0x1ad82c,this[_0x38eb1f(0x289)]=_0x47dfc4,this['_themeService']=_0xeeb22a,this[_0x38eb1f(0x13d)]());}[_0x3a57f9(0x13d)](){const _0xc91884=_0x3a57f9;this[_0xc91884(0x281)][_0xc91884(0x264)][_0xc91884(0x143)](_0x284c45(this[_0xc91884(0x22f)]),_0x4cd0d6(_0x148fbe=>{const _0x1d0c72=_0xc91884;if(_0x148fbe){const _0x163ee7=_0x148fbe[_0x1d0c72(0x254)];return _0x4c37b2(this[_0x1d0c72(0x289)]['getCollabCursors$'](this['_context'][_0x1d0c72(0xd4)]),this[_0x1d0c72(0x27f)][_0x1d0c72(0x29e)])[_0x1d0c72(0x143)](_0x27e7e4(([_0x49d397,_0x3ee0b2])=>{const _0x3b0b10=new Map();return _0x49d397['forEach']((_0x5e4c7c,_0x2ca2d7)=>{const _0x410c98=_0x531b;if(_0x5e4c7c['sheetID']===_0x163ee7){const _0x364578={..._0x5e4c7c};_0x364578['color']=this[_0x410c98(0x27f)][_0x410c98(0x121)](_0x5e4c7c['color']),_0x3b0b10[_0x410c98(0x22d)](_0x2ca2d7,_0x364578);}}),{'skeleton':_0x148fbe,'cursors':_0x3b0b10};}));}return _0x2b78f5({'skeleton':null,'cursors':new Map()});}))['subscribe'](({skeleton:_0x59c699,cursors:_0x4a25d9})=>{const _0x3b37e8=_0xc91884;this['_removeCollabCursors'](),_0x59c699&&this[_0x3b37e8(0x256)](_0x59c699,_0x4a25d9);}),this[_0xc91884(0x281)][_0xc91884(0x264)][_0xc91884(0x175)](_0x3dcd99=>{const _0x5c3f32=_0xc91884;if(_0x3dcd99==null)return;const {skeleton:_0x5ea785}=_0x3dcd99,{scene:_0x562319}=this[_0x5c3f32(0x226)];_0x562319[_0x5c3f32(0x23c)][_0x5c3f32(0x105)](_0x4248fe(_0x32ba18=>{const _0x999d2f=_0x5c3f32;var _0x581fde,_0x2c36c2;const {offsetX:_0x5d7b3e,offsetY:_0x31667a}=_0x32ba18,{x:_0x3f52af,y:_0x3cbcb3}=_0x562319[_0x999d2f(0x241)](_0x23205c[_0x999d2f(0x263)]([_0x5d7b3e,_0x31667a])),{scaleX:_0x1d79a2,scaleY:_0x479c08}=_0x562319['getAncestorScale'](),_0x6bb804=_0x562319['getViewport'](_0x1c65dc[_0x999d2f(0x12a)]),_0x47320b=_0x562319[_0x999d2f(0x2ce)](_0x23205c[_0x999d2f(0x263)]([_0x3f52af,_0x3cbcb3]),_0x6bb804),_0x57d1f5=_0x5ea785[_0x999d2f(0xed)](_0x5d7b3e,_0x31667a,_0x1d79a2,_0x479c08,_0x47320b);((_0x581fde=this[_0x999d2f(0x1e9)])==null?void 0x0:_0x581fde[_0x999d2f(0x15d)])===_0x57d1f5['column']&&((_0x2c36c2=this[_0x999d2f(0x1e9)])==null?void 0x0:_0x2c36c2['row'])===_0x57d1f5['row']||this['_cursors']['forEach'](_0x335ca5=>{const _0x192619=_0x999d2f;_0x335ca5[_0x192619(0x1a9)](_0x57d1f5);});},0x64));});}['_updateCollabCursors'](_0xc5300f,_0x1d051b){const _0x384584=_0x3a57f9;var _0x1ad0c5;const _0x1cc145=(_0x1ad0c5=this[_0x384584(0x281)][_0x384584(0x1a0)]())==null?void 0x0:_0x1ad0c5[_0x384584(0x1f8)];if(!_0x1cc145)return;const _0x133735=this['_getSheetObject']();if(!_0x133735)return;this[_0x384584(0x117)]['forEach'](_0x1b9517=>{const _0x341f0f=_0x384584;_0x1b9517[_0x341f0f(0x14e)]();});const {scene:_0x11a36a}=_0x133735,_0x12bc1e=xi(Array[_0x384584(0x248)](_0x1d051b[_0x384584(0x170)]()))[_0x384584(0xe9)](_0x20cd0b=>{const _0x3d2688=_0x384584,{color:_0x3d4556,range:_0x4cfbf5,name:_0x5c01b6,selection:_0x4af19a,sheetID:_0x380106}=_0x20cd0b,{startColumn:_0x2c7154,startRow:_0x319973,endColumn:_0x3b6ee6,endRow:_0x3ce11d}=_0x4cfbf5,_0x164111=_0x35ce15(_0x319973,_0x2c7154,_0x11a36a,_0x1cc145),_0x97d088=_0x35ce15(_0x3ce11d,_0x3b6ee6,_0x11a36a,_0x1cc145),{columnHeaderHeightAndMarginTop:_0x280408}=_0x1cc145,{startX:_0x1b5355,startY:_0x5d5eaa}=_0x164111,{endX:_0x298cb9,endY:_0x430021}=_0x97d088,_0x16153c=_0x298cb9-_0x1b5355,_0x803d7a=_0x430021-_0x5d5eaa,_0x4d93f4={'labelPosition':_0x5d5eaa-_0x280408>=te?_0x3d2688(0x234):_0x3d2688(0xe1),'sheetID':_0x380106,'range':_0x4cfbf5,'color':_0x3d4556,'name':_0x5c01b6,'selection':_0x4af19a,'left':_0x1b5355,'top':_0x5d5eaa,'width':_0x16153c,'height':_0x803d7a,'evented':!0x1,'zIndex':$i};return new wi(_0x5c01b6,_0x4d93f4);});_0x11a36a[_0x384584(0xd8)](_0x12bc1e,Li),this[_0x384584(0x117)]=new Set(_0x12bc1e);}[_0x3a57f9(0x2aa)](){const _0x5b4e9a=_0x3a57f9;var _0x26ce7e;(_0x26ce7e=this['_cursors'])==null||_0x26ce7e[_0x5b4e9a(0x1f5)](_0x3b4df9=>_0x3b4df9[_0x5b4e9a(0x28e)]());}[_0x3a57f9(0x130)](){const _0x4f0866=_0x3a57f9;return _0x52c2ad(this[_0x4f0866(0x226)][_0x4f0866(0x150)],this[_0x4f0866(0x226)]);}};we=yi([pe(0x1,_0x3296bc(_0x17c6af)),pe(0x2,_0x3296bc(F)),pe(0x3,_0x3296bc(_0x2a35f5))],we);function xi(_0x212761){const _0x5c42a9=_0x3a57f9,_0x45c7c9=new Map();return _0x212761['forEach'](_0x552e06=>{const _0x1c869f=_0x531b;if(_0x45c7c9[_0x1c869f(0x223)](_0x552e06[_0x1c869f(0x17d)])){const _0x459c79=_0x45c7c9[_0x1c869f(0x147)](_0x552e06[_0x1c869f(0x17d)]);_0x459c79['name']+=',\x20'+_0x552e06[_0x1c869f(0xec)];}else _0x45c7c9['set'](_0x552e06[_0x1c869f(0x17d)],_0x552e06);}),Array['from'](_0x45c7c9[_0x5c42a9(0x170)]());}var v=function(){const _0x469bfa=_0x3a57f9;return v=Object[_0x469bfa(0x277)]||function(_0x49d15e){const _0x45908f=_0x469bfa;for(var _0xa28fc1,_0x945313=0x1,_0x180068=arguments['length'];_0x945313<_0x180068;_0x945313++){_0xa28fc1=arguments[_0x945313];for(var _0x36bc29 in _0xa28fc1)Object[_0x45908f(0x12f)]['hasOwnProperty'][_0x45908f(0x187)](_0xa28fc1,_0x36bc29)&&(_0x49d15e[_0x36bc29]=_0xa28fc1[_0x36bc29]);}return _0x49d15e;},v[_0x469bfa(0x280)](this,arguments);},Bi=function(_0x5dba17,_0x1393d2){const _0x50b0ff=_0x3a57f9;var _0x3d1d13={};for(var _0x4a26cb in _0x5dba17)Object[_0x50b0ff(0x12f)][_0x50b0ff(0x229)]['call'](_0x5dba17,_0x4a26cb)&&_0x1393d2[_0x50b0ff(0x17e)](_0x4a26cb)<0x0&&(_0x3d1d13[_0x4a26cb]=_0x5dba17[_0x4a26cb]);if(_0x5dba17!=null&&typeof Object[_0x50b0ff(0x1d8)]=='function'){for(var _0x237d58=0x0,_0x4a26cb=Object[_0x50b0ff(0x1d8)](_0x5dba17);_0x237d58<_0x4a26cb[_0x50b0ff(0x1f3)];_0x237d58++)_0x1393d2['indexOf'](_0x4a26cb[_0x237d58])<0x0&&Object['prototype'][_0x50b0ff(0x102)]['call'](_0x5dba17,_0x4a26cb[_0x237d58])&&(_0x3d1d13[_0x4a26cb[_0x237d58]]=_0x5dba17[_0x4a26cb[_0x237d58]]);}return _0x3d1d13;},Ye=_0x492358(function(_0xd2f06,_0x160929){const _0x37c48a=_0x3a57f9;var _0x4a2c02=_0xd2f06[_0x37c48a(0x1ac)],_0x5855a3=_0xd2f06['id'],_0x4a356c=_0xd2f06[_0x37c48a(0x12d)],_0x4a5e88=_0xd2f06[_0x37c48a(0xe0)],_0x3cb93b=Bi(_0xd2f06,[_0x37c48a(0x1ac),'id',_0x37c48a(0x12d),_0x37c48a(0xe0)]),_0x5045c0='univerjs-icon\x20univerjs-icon-'[_0x37c48a(0x2d0)](_0x5855a3,'\x20')['concat'](_0x4a356c||'')[_0x37c48a(0x262)](),_0x3cc7e2=_0x16cdbc('_'[_0x37c48a(0x2d0)](Fi()));return Dt(_0x4a2c02,''[_0x37c48a(0x2d0)](_0x5855a3),{'defIds':_0x4a2c02[_0x37c48a(0x13f)],'idSuffix':_0x3cc7e2['current']},v({'ref':_0x160929,'className':_0x5045c0},_0x3cb93b),_0x4a5e88);});function Dt(_0x1534f1,_0x3ada93,_0x2b74ac,_0xfcfae4,_0x20690f){const _0x4aa554=_0x3a57f9;return _0x2f64f8(_0x1534f1[_0x4aa554(0x219)],v(v({'key':_0x3ada93},ki(_0x1534f1,_0x2b74ac,_0x20690f)),_0xfcfae4),(Hi(_0x1534f1,_0x2b74ac)[_0x4aa554(0x155)]||[])[_0x4aa554(0xe9)](function(_0x1f7a59,_0x7adb45){const _0x166cbd=_0x4aa554;return Dt(_0x1f7a59,''[_0x166cbd(0x2d0)](_0x3ada93,'-')[_0x166cbd(0x2d0)](_0x1534f1[_0x166cbd(0x219)],'-')[_0x166cbd(0x2d0)](_0x7adb45),_0x2b74ac,void 0x0,_0x20690f);}));}function ki(_0x38f409,_0x374611,_0x247c3d){const _0x59e090=_0x3a57f9;var _0x3721e0=v({},_0x38f409[_0x59e090(0x185)]);_0x247c3d!=null&&_0x247c3d[_0x59e090(0x110)]&&_0x3721e0[_0x59e090(0x28b)]===_0x59e090(0x110)&&(_0x3721e0[_0x59e090(0x28b)]=_0x247c3d[_0x59e090(0x110)]),_0x38f409[_0x59e090(0x219)]==='mask'&&_0x3721e0['id']&&(_0x3721e0['id']=_0x3721e0['id']+_0x374611[_0x59e090(0x1e7)]),Object['entries'](_0x3721e0)[_0x59e090(0x1f5)](function(_0x212835){const _0x6a7eed=_0x59e090;var _0x50317f=_0x212835[0x0],_0x5d81a1=_0x212835[0x1];_0x50317f===_0x6a7eed(0xfa)&&typeof _0x5d81a1==_0x6a7eed(0x192)&&(_0x3721e0[_0x50317f]=_0x5d81a1['replace'](/url\(#(.*)\)/,'url(#$1'[_0x6a7eed(0x2d0)](_0x374611[_0x6a7eed(0x1e7)],')')));});var _0x57e91c=_0x374611['defIds'];return!_0x57e91c||_0x57e91c[_0x59e090(0x1f3)]===0x0||(_0x38f409[_0x59e090(0x219)]===_0x59e090(0x144)&&_0x3721e0[_0x59e090(0x213)]&&(_0x3721e0[_0x59e090(0x213)]=_0x3721e0[_0x59e090(0x213)]+_0x374611[_0x59e090(0x1e7)]),Object[_0x59e090(0x23f)](_0x3721e0)['forEach'](function(_0x39bc85){const _0x38364c=_0x59e090;var _0x20daf2=_0x39bc85[0x0],_0x393631=_0x39bc85[0x1];typeof _0x393631==_0x38364c(0x192)&&(_0x3721e0[_0x20daf2]=_0x393631[_0x38364c(0x1e5)](/url\(#(.*)\)/,_0x38364c(0x164)[_0x38364c(0x2d0)](_0x374611[_0x38364c(0x1e7)],')')));})),_0x3721e0;}function Hi(_0x161957,_0x16bb16){const _0xf2dcf5=_0x3a57f9;var _0x43fa12,_0x190d63=_0x16bb16[_0xf2dcf5(0x13f)];return!_0x190d63||_0x190d63[_0xf2dcf5(0x1f3)]===0x0?_0x161957:_0x161957[_0xf2dcf5(0x219)]==='defs'&&(!((_0x43fa12=_0x161957[_0xf2dcf5(0x155)])===null||_0x43fa12===void 0x0)&&_0x43fa12[_0xf2dcf5(0x1f3)])?v(v({},_0x161957),{'children':_0x161957[_0xf2dcf5(0x155)][_0xf2dcf5(0xe9)](function(_0x33d816){const _0x39e746=_0xf2dcf5;return typeof _0x33d816[_0x39e746(0x185)]['id']==_0x39e746(0x192)&&_0x190d63&&_0x190d63[_0x39e746(0x2ac)](_0x33d816[_0x39e746(0x185)]['id'])?v(v({},_0x33d816),{'attrs':v(v({},_0x33d816[_0x39e746(0x185)]),{'id':_0x33d816[_0x39e746(0x185)]['id']+_0x16bb16['idSuffix']})}):_0x33d816;})}):_0x161957;}function Fi(){const _0x5a9973=_0x3a57f9;return Math['random']()[_0x5a9973(0x191)](0x24)['substring'](0x2,0x8);}Ye[_0x3a57f9(0x114)]=_0x3a57f9(0x15c);var Yi={'tag':_0x3a57f9(0x279),'attrs':{'xmlns':_0x3a57f9(0x17a),'fill':_0x3a57f9(0x1ff),'viewBox':_0x3a57f9(0x16e),'width':_0x3a57f9(0x1d5),'height':'1em'},'children':[{'tag':'g','attrs':{'clipPath':_0x3a57f9(0x284)},'children':[{'tag':'path','attrs':{'stroke':'currentColor','d':_0x3a57f9(0x122),'strokeLinecap':_0x3a57f9(0x207),'strokeLinejoin':_0x3a57f9(0x207),'strokeWidth':1.2}}]},{'tag':_0x3a57f9(0x28c),'attrs':{},'children':[{'tag':'clipPath','attrs':{'id':_0x3a57f9(0x10e)},'children':[{'tag':_0x3a57f9(0x227),'attrs':{'fill':_0x3a57f9(0xf0),'d':_0x3a57f9(0x25f)}}]}]}],'defIds':['off-line-icon_clip0_910_343']},Nt=_0x492358(function(_0x1a5cf3,_0x176411){const _0x2758ee=_0x3a57f9;return _0x2f64f8(Ye,Object[_0x2758ee(0x277)]({},_0x1a5cf3,{'id':_0x2758ee(0x295),'ref':_0x176411,'icon':Yi}));});Nt['displayName']='OffLineIcon';var ji={'tag':_0x3a57f9(0x279),'attrs':{'xmlns':_0x3a57f9(0x17a),'fill':_0x3a57f9(0x1ff),'viewBox':_0x3a57f9(0xda),'width':_0x3a57f9(0x1d5),'height':'1em'},'children':[{'tag':'g','attrs':{'clipPath':_0x3a57f9(0x201)},'children':[{'tag':'path','attrs':{'stroke':_0x3a57f9(0x139),'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':_0x3a57f9(0x207),'strokeLinejoin':_0x3a57f9(0x207),'strokeWidth':1.2}}]},{'tag':_0x3a57f9(0x28c),'attrs':{},'children':[{'tag':_0x3a57f9(0x206),'attrs':{'id':_0x3a57f9(0x2b0)},'children':[{'tag':_0x3a57f9(0x227),'attrs':{'fill':_0x3a57f9(0xf0),'d':'M0\x200H16V16H0z','transform':_0x3a57f9(0x267)}}]}]}],'defIds':[_0x3a57f9(0x2b0)]},Ut=_0x492358(function(_0x412e4a,_0x4b6d90){const _0x5e5495=_0x3a57f9;return _0x2f64f8(Ye,Object['assign']({},_0x412e4a,{'id':_0x5e5495(0x1c3),'ref':_0x4b6d90,'icon':ji}));});Ut['displayName']='OnLineIcon';function Vi(_0x58c129){const _0x5ccd23=_0x3a57f9;switch(_0x58c129){case _0x1292c5['OFFLINE']:return'collabStatus.offline';case _0x1292c5[_0x5ccd23(0x221)]:return _0x5ccd23(0x165);case _0x1292c5[_0x5ccd23(0x113)]:return'collabStatus.fetchMiss';case _0x1292c5['NOT_COLLAB']:return _0x5ccd23(0x186);case _0x1292c5[_0x5ccd23(0x1e3)]:case _0x1292c5[_0x5ccd23(0xfe)]:return _0x5ccd23(0x112);case _0x1292c5[_0x5ccd23(0x1aa)]:case _0x1292c5[_0x5ccd23(0x1f0)]:return _0x5ccd23(0x220);}}function Wi(_0x40987d){const _0x3fea45=_0x3a57f9,{status$:_0x509de0}=_0x40987d,_0x44c3c3=_0xa6d25d(_0x509de0,_0x1292c5[_0x3fea45(0x1a5)]),_0x50bc17=_0x53a4d7(_0xc76249),_0x52d1bb=_0x53a4d7(_0x1e8ca8),_0x3a3922=_0x44c3c3!==_0x1292c5[_0x3fea45(0xfc)],_0x1e2cad=_0x50bc17['t'](Vi(_0x44c3c3)),_0x188018=_0x3a3922?_0x73b12f(Ut,{}):_0x73b12f(Nt,{}),_0x851370=_0x14d084(()=>{const _0x2bbd07=_0x3fea45;_0x3a3922||_0x52d1bb[_0x2bbd07(0x250)]();},[_0x3a3922,_0x52d1bb]);function _0x10434c(){const _0x1592e5=_0x3fea45;return _0x446319('div',{'className':_0x1592e5(0x2cd),'onClick':_0x851370,'children':[_0x73b12f('div',{'className':_0xf70887(_0x1592e5(0xf3),{'univer-text-green-500':_0x3a3922,'univer-text-red-500':!_0x3a3922}),'children':_0x188018}),_0x73b12f(_0x1592e5(0x27c),{'className':'univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','children':_0x1e2cad})]});}return _0x3a3922?_0x10434c():_0x73b12f(_0x3e4beb,{'title':_0x50bc17['t'](_0x3fea45(0x2af)),'children':_0x10434c()});}var Xi=Object[_0x3a57f9(0x179)],Gi=(_0x1f8458,_0x54a936,_0x58e8c4,_0xb4e38f)=>{for(var _0x3a7301=_0xb4e38f>0x1?void 0x0:_0xb4e38f?Xi(_0x54a936,_0x58e8c4):_0x54a936,_0x2d638b=_0x1f8458['length']-0x1,_0x270c72;_0x2d638b>=0x0;_0x2d638b--)(_0x270c72=_0x1f8458[_0x2d638b])&&(_0x3a7301=_0x270c72(_0x3a7301)||_0x3a7301);return _0x3a7301;},q=(_0x424680,_0x24cd69)=>(_0x112ac5,_0x4a1695)=>_0x24cd69(_0x112ac5,_0x4a1695,_0x424680);let se=class extends _0x16ac65{constructor(_0x5c48c5,_0x3ccb99,_0x3ccd3e,_0x3b6520){const _0x1935d1=_0x3a57f9;super(),_(this,_0x1935d1(0x11b),new _0x3985c9(_0x1292c5['NOT_COLLAB'])),(this[_0x1935d1(0x224)]=_0x5c48c5,this['_injector']=_0x3ccb99,this[_0x1935d1(0x260)]=_0x3ccd3e,this[_0x1935d1(0x1c0)]=_0x3b6520,this['_initStatusComponent'](),this[_0x1935d1(0x266)]());}[_0x3a57f9(0x266)](){const _0x3e61cd=_0x3a57f9;this[_0x3e61cd(0x2b3)](this[_0x3e61cd(0x224)][_0x3e61cd(0x2a2)][_0x3e61cd(0x143)](_0x2f89c3(()=>{const _0x49a5cd=_0x3e61cd,_0x36e2ac=this[_0x49a5cd(0x224)]['getFocusedUnit']();return _0x36e2ac?this[_0x49a5cd(0x260)]['getCollabEntity$'](_0x36e2ac[_0x49a5cd(0x1bd)]()):_0x2b78f5(null);}),_0x2f89c3(_0x3af893=>_0x3af893?_0x3af893[_0x3e61cd(0x182)]:_0x2b78f5(_0x1292c5[_0x3e61cd(0x1a5)])))[_0x3e61cd(0x175)](_0x29b5a1=>{this['_status$']['next'](_0x29b5a1);}));}['_initStatusComponent'](){const _0x32942f=_0x3a57f9;this[_0x32942f(0x2b3)](this[_0x32942f(0x1c0)]['registerComponent'](_0x81f02a[_0x32942f(0x153)],()=>_0x2ad6b2(Ki({'status$':this['_status$'][_0x32942f(0x10a)]()}),this[_0x32942f(0x225)])));}};se=Gi([q(0x0,_0x1be569),q(0x1,_0x3296bc(_0x538ee1)),q(0x2,_0x3296bc(_0x1edc48)),q(0x3,_0x16f3b0)],se);function Ki(_0x2ffab8){const {status$:_0x2f2edc}=_0x2ffab8;return function(){return _0x73b12f(Wi,{'status$':_0x2f2edc});};}var zi=Object[_0x3a57f9(0x179)],Ji=(_0x392098,_0x409d69,_0xa96dae,_0x3a9d1f)=>{const _0x1f7ea6=_0x3a57f9;for(var _0x5dd25d=_0x3a9d1f>0x1?void 0x0:_0x3a9d1f?zi(_0x409d69,_0xa96dae):_0x409d69,_0x48224d=_0x392098[_0x1f7ea6(0x1f3)]-0x1,_0x1e7794;_0x48224d>=0x0;_0x48224d--)(_0x1e7794=_0x392098[_0x48224d])&&(_0x5dd25d=_0x1e7794(_0x5dd25d)||_0x5dd25d);return _0x5dd25d;},B=(_0x1f2e06,_0x309b09)=>(_0x55a4cf,_0x391e9c)=>_0x309b09(_0x55a4cf,_0x391e9c,_0x1f2e06);let ie=class extends _0x16ac65{constructor(_0x30714b,_0x439a77,_0x3a7171,_0x4bcb2a,_0xf22412,_0x4414e2){const _0x5af855=_0x3a57f9;super(),this['_beforeCloseService']=_0x30714b,this['_localCacheService']=_0x439a77,this[_0x5af855(0x11f)]=_0x3a7171,this[_0x5af855(0x16b)]=_0x4bcb2a,this[_0x5af855(0x1c9)]=_0xf22412,this['_localeService']=_0x4414e2,this[_0x5af855(0x119)](),this[_0x5af855(0x243)]();}[_0x3a57f9(0x119)](){const _0x201769=_0x3a57f9;this[_0x201769(0x2b3)](this['_beforeCloseService'][_0x201769(0x13a)](()=>{const _0x4d8274=_0x201769;if(this[_0x4d8274(0x1ad)][_0x4d8274(0x27b)][_0x4d8274(0x22a)])return this[_0x4d8274(0x1b6)]['t']('collaboration-client.offline-data-not-saved');}));}[_0x3a57f9(0x243)](){const _0x32981e=_0x3a57f9;this[_0x32981e(0x2b3)](this['_collaborationUIEventService']['event$'][_0x32981e(0x175)](_0x5d02d4=>{const _0x1ea616=_0x32981e;_0x5d02d4['id']===_0x4c162c['OTHER_CLIENT_EDITING']&&this[_0x1ea616(0x16b)][_0x1ea616(0xdc)]({'type':_0x3ef35b[_0x1ea616(0x146)],'content':this[_0x1ea616(0x1b6)]['t'](_0x1ea616(0x1a7))}),_0x5d02d4['id']===_0x4c162c[_0x1ea616(0x285)]&&this['_messageService'][_0x1ea616(0xdc)]({'type':_0x3ef35b['Warning'],'content':this[_0x1ea616(0x1b6)]['t'](_0x1ea616(0x26c))}),_0x5d02d4['id']===_0x4c162c[_0x1ea616(0x1ed)]&&this[_0x1ea616(0x1c9)][_0x1ea616(0xdc)]({'title':this[_0x1ea616(0x1b6)]['t'](_0x1ea616(0x214)),'content':this[_0x1ea616(0x1b6)]['t'](_0x1ea616(0x291)),'type':_0x1ea616(0x134),'duration':0x0}),_0x5d02d4['id']===_0x4c162c['CONFLICT']&&this['_messageService']['show']({'type':_0x3ef35b[_0x1ea616(0x211)],'content':this[_0x1ea616(0x1b6)]['t'](_0x1ea616(0x26c))+'('+_0x5d02d4['data']+')'}),_0x5d02d4['id']===_0x4c162c[_0x1ea616(0x1ba)]&&this[_0x1ea616(0x16b)][_0x1ea616(0xdc)]({'type':_0x3ef35b[_0x1ea616(0x146)],'content':this[_0x1ea616(0x1b6)]['t'](_0x5d02d4['data']||'')}),_0x5d02d4['id']===_0x4c162c[_0x1ea616(0x21e)]&&this[_0x1ea616(0x16b)][_0x1ea616(0xdc)]({'type':_0x3ef35b['Warning'],'content':this[_0x1ea616(0x1b6)]['t']('session.will-retry')}),_0x5d02d4['id']===_0x4c162c[_0x1ea616(0x10b)]&&this['_messageService'][_0x1ea616(0xdc)]({'type':_0x3ef35b[_0x1ea616(0x211)],'content':this[_0x1ea616(0x1b6)]['t'](_0x1ea616(0x2bb))}),_0x5d02d4['id']===_0x4c162c[_0x1ea616(0xea)]&&this[_0x1ea616(0x16b)][_0x1ea616(0xdc)]({'type':_0x3ef35b[_0x1ea616(0x211)],'content':this['_localeService']['t'](_0x1ea616(0x194))});}));}};ie=Ji([B(0x0,_0x34768e),B(0x1,_0x2cfad2),B(0x2,_0x3296bc(_0x9aea63)),B(0x3,_0x2e55ff),B(0x4,_0x34afaf),B(0x5,_0x3296bc(_0xc76249))],ie);const Zi=_0x3a57f9(0x2b9),tt={},Mt=_0x3194fa('uni.network.url-service');var Qi=Object['getOwnPropertyDescriptor'],qi=(_0x270350,_0x320218,_0x4e6cc6,_0x1fd14b)=>{const _0x111e93=_0x3a57f9;for(var _0x3f8114=_0x1fd14b>0x1?void 0x0:_0x1fd14b?Qi(_0x320218,_0x4e6cc6):_0x320218,_0x3c3994=_0x270350[_0x111e93(0x1f3)]-0x1,_0x77a4d5;_0x3c3994>=0x0;_0x3c3994--)(_0x77a4d5=_0x270350[_0x3c3994])&&(_0x3f8114=_0x77a4d5(_0x3f8114)||_0x3f8114);return _0x3f8114;},K=(_0x4dbab6,_0x472671)=>(_0x29d2d0,_0x12be3f)=>_0x472671(_0x29d2d0,_0x12be3f,_0x4dbab6);let ne=class extends _0x553b56{constructor(_0x537768,_0x4ed24e,_0x222f1b,_0x4525c6,_0xe5058e){const _0x16f762=_0x3a57f9;super(),this[_0x16f762(0x1be)]=_0x537768,this['_logService']=_0x4ed24e,this[_0x16f762(0x29b)]=_0x222f1b,this[_0x16f762(0x145)]=_0x4525c6,_0xe5058e?_0xe5058e==null||_0xe5058e[_0x16f762(0x287)]()[_0x16f762(0x2b1)](()=>this[_0x16f762(0x13d)]()):(this['_logService']['debug'](_0x16f762(0x233),'No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.'),this[_0x16f762(0x13d)]());}async[_0x3a57f9(0x13d)](){const _0x3dde6b=_0x3a57f9,_0x1d345e=this[_0x3dde6b(0x1be)]['getParam'](_0x3dde6b(0x150)),_0x4c5cda=this['_urlService'][_0x3dde6b(0x1ea)]('type'),_0x36f0ec=this[_0x3dde6b(0x1be)][_0x3dde6b(0x1ea)]('subunit');if(!_0x1d345e||!_0x4c5cda){this[_0x3dde6b(0x11a)]['debug'](_0x3dde6b(0x233),'No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.');return;}const _0x33b910=await this[_0x3dde6b(0x145)][_0x3dde6b(0xe2)](_0x1d345e,Number(_0x4c5cda),_0x36f0ec);_0x33b910&&_0x33b910 instanceof _0x548083&&this[_0x3dde6b(0x217)](_0x33b910);}async['_setupSubUnitSync'](_0x5922d0){const _0x548ebf=_0x3a57f9;await this['_updateSubUnitFromURLParams'](_0x5922d0),_0x5922d0[_0x548ebf(0x23b)][_0x548ebf(0x143)](_0x2a6b6e(this[_0x548ebf(0x22f)]))['subscribe'](_0x40a5c6=>{_0x40a5c6&&this['_updateURLWithCurrentState'](_0x40a5c6);}),this[_0x548ebf(0x1be)][_0x548ebf(0x2ca)]['pipe'](_0x2a6b6e(this['dispose$']))[_0x548ebf(0x175)](()=>this[_0x548ebf(0x159)](_0x5922d0));}[_0x3a57f9(0x1e1)](_0x53b5cc,_0x1ec634=!0x1){const _0x17f075=_0x3a57f9,_0x5106a7=this[_0x17f075(0x1be)][_0x17f075(0x1ea)](_0x17f075(0x268));_0x53b5cc[_0x17f075(0x253)]()!==_0x5106a7&&this[_0x17f075(0x1be)][_0x17f075(0x1cc)](_0x17f075(0x268),_0x53b5cc[_0x17f075(0x253)](),_0x1ec634);}async['_updateSubUnitFromURLParams'](_0x5f5d54){const _0x4aa721=_0x3a57f9;var _0x209683;const _0x3f7d68=this[_0x4aa721(0x1be)][_0x4aa721(0x1ea)](_0x4aa721(0x268));if(!_0x3f7d68||!_0x5f5d54['getSheetBySheetId'](_0x3f7d68)){const _0x279f45=_0x5f5d54[_0x4aa721(0x161)]()[0x0],_0x31fa44=_0x5f5d54[_0x4aa721(0x11d)](_0x279f45);if(!_0x31fa44)return;this['_updateURLWithCurrentState'](_0x31fa44,!0x0),await this[_0x4aa721(0x29b)][_0x4aa721(0x2a7)](_0xd0e3e4['id'],{'unitId':_0x5f5d54[_0x4aa721(0x1bd)](),'subUnitId':_0x279f45});return;}((_0x209683=_0x5f5d54[_0x4aa721(0x135)]())==null?void 0x0:_0x209683[_0x4aa721(0x253)]())!==_0x3f7d68&&await this[_0x4aa721(0x29b)][_0x4aa721(0x2a7)](_0xd0e3e4['id'],{'unitId':_0x5f5d54[_0x4aa721(0x1bd)](),'subUnitId':_0x3f7d68});}};ne=qi([K(0x0,Mt),K(0x1,_0x2d6f9d),K(0x2,_0x1b52c7),K(0x3,_0x3296bc(_0x4aae42)),K(0x4,_0x2ddda6(_0x1bb5ff))],ne);var en=Object[_0x3a57f9(0x179)],tn=(_0x5095ce,_0x27d9a4,_0x3d5c6f,_0x5ec286)=>{const _0x432316=_0x3a57f9;for(var _0x3f1e74=_0x5ec286>0x1?void 0x0:_0x5ec286?en(_0x27d9a4,_0x3d5c6f):_0x27d9a4,_0x442b15=_0x5095ce[_0x432316(0x1f3)]-0x1,_0x30fa02;_0x442b15>=0x0;_0x442b15--)(_0x30fa02=_0x5095ce[_0x442b15])&&(_0x3f1e74=_0x30fa02(_0x3f1e74)||_0x3f1e74);return _0x3f1e74;},Ce=(_0x1e5564,_0x41cd23)=>(_0x30d3f8,_0x1edf2d)=>_0x41cd23(_0x30d3f8,_0x1edf2d,_0x1e5564);let re=class{constructor(_0x2b7d6b,_0x3a8a7c,_0x34a219){const _0x4c7bf1=_0x3a57f9;this['_injector']=_0x2b7d6b,this[_0x4c7bf1(0x252)]=_0x3a8a7c,this['_renderManagerService']=_0x34a219;}[_0x3a57f9(0x14f)](_0x253d7d){const _0x538d0f=_0x3a57f9;this[_0x538d0f(0x18b)](_0x253d7d),this[_0x538d0f(0x2c9)](_0x253d7d);}[_0x3a57f9(0x1b3)](_0x5c895d){const _0xb0dedb=_0x3a57f9,{unitID:_0x575a4e}=_0x5c895d,_0x4d3d68=this['_renderManagerService'][_0xb0dedb(0x123)](_0x575a4e)[_0xb0dedb(0x2a1)](_0x427731),{redoCache:_0x4903c7}=_0x4d3d68[_0xb0dedb(0x1f1)]();if(_0x4903c7[_0xb0dedb(0x1f3)]===0x0)return _0x5c895d;let _0x4052d=_0xef5339[_0xb0dedb(0x22c)](_0x5c895d[_0xb0dedb(0x10f)][0x0]);for(let _0x22bd56=0x0;_0x22bd56<_0x4903c7[_0xb0dedb(0x1f3)];_0x22bd56++){const _0x377760={'id':_0xb0dedb(0x29f),'params':{..._0x4903c7[_0x22bd56]}},_0x54e389=this['_transformService'][_0xb0dedb(0x244)](_0x4052d,_0x377760,!0x1);if(_0x2e710a(_0x54e389))throw _0x54e389[_0xb0dedb(0x134)];_0x4052d=_0x54e389[_0xb0dedb(0x1f4)];}return{..._0xef5339[_0xb0dedb(0x22c)](_0x5c895d),'mutations':[_0x4052d]};}[_0x3a57f9(0x18b)](_0x101a76){const _0x966b55=_0x3a57f9,{unitID:_0x410c04}=_0x101a76,_0x4064f1=this[_0x966b55(0xdb)][_0x966b55(0x123)](_0x410c04)[_0x966b55(0x2a1)](_0x427731),{undoCache:_0x496860,redoCache:_0x14d1df}=_0x4064f1[_0x966b55(0x1f1)]();if(_0x496860[_0x966b55(0x1f3)]===0x0||_0x14d1df[_0x966b55(0x1f3)]===0x0)return;const _0xff6f05=[],_0x15bae8=[];let _0x45b8f6=_0xef5339['deepClone'](_0x101a76[_0x966b55(0x10f)][0x0]),_0x584ccb=_0xef5339[_0x966b55(0x22c)](_0x101a76[_0x966b55(0x10f)][0x0]);for(let _0x28b66e=_0x496860[_0x966b55(0x1f3)]-0x1;_0x28b66e>=0x0;_0x28b66e--){const _0x43470c={'id':_0x966b55(0x29f),'params':{..._0x496860[_0x28b66e]}},_0x56aa3d={'id':_0x966b55(0x29f),'params':{..._0x14d1df[_0x28b66e]}},_0xab1f79=this[_0x966b55(0x252)]['transformMutation'](_0x45b8f6,_0x43470c,!0x1),_0x3fbedc=this[_0x966b55(0x252)][_0x966b55(0x244)](_0x584ccb,_0x56aa3d,!0x1);if(_0x2e710a(_0xab1f79))throw _0xab1f79[_0x966b55(0x134)];if(_0x2e710a(_0x3fbedc))throw _0x3fbedc['error'];_0xff6f05['unshift'](_0xab1f79[_0x966b55(0x1fa)][_0x966b55(0xf8)]),_0x15bae8[_0x966b55(0x126)](_0x3fbedc[_0x966b55(0x1fa)][_0x966b55(0xf8)]),_0x45b8f6=_0xab1f79[_0x966b55(0x1f4)],_0x584ccb=_0x3fbedc[_0x966b55(0x1f4)];}_0x4064f1[_0x966b55(0x188)]({'undoCache':_0xff6f05,'redoCache':_0x15bae8});}[_0x3a57f9(0x2c9)](_0x5dae3a){const _0x2bca8d=_0x3a57f9,{unitID:_0x1a94f6}=_0x5dae3a,_0x55ae3e=this['_renderManagerService'][_0x2bca8d(0x123)](_0x1a94f6)[_0x2bca8d(0x2a1)](_0x427731),_0x306641=_0x55ae3e[_0x2bca8d(0x204)]();if(_0x306641==null)return;const _0x3ccadc=[{'id':_0x2bca8d(0x29f),'params':{'unitId':_0x5dae3a[_0x2bca8d(0x24e)],'actions':null,'textRanges':[_0x306641]}}],_0xdb073b=this[_0x2bca8d(0x252)][_0x2bca8d(0x1a8)](_0x5dae3a,_0x3ccadc);if(!_0x503663(_0xdb073b))throw _0xdb073b[_0x2bca8d(0x134)];const _0x346bc5=_0xdb073b['m2Prime'][0x0][_0x2bca8d(0xf8)][_0x2bca8d(0x1d7)];Array['isArray'](_0x346bc5)&&_0x346bc5[_0x2bca8d(0x1f3)]&&_0x55ae3e['setActiveRange'](_0x346bc5[0x0]);}};re=tn([Ce(0x0,_0x3296bc(_0x538ee1)),Ce(0x1,_0x5dc57d),Ce(0x2,_0x20c53d)],re);var sn=Object[_0x3a57f9(0x179)],nn=(_0x18e526,_0x5178e3,_0x134d53,_0x272a12)=>{for(var _0x29d280=_0x272a12>0x1?void 0x0:_0x272a12?sn(_0x5178e3,_0x134d53):_0x5178e3,_0x13e2f4=_0x18e526['length']-0x1,_0x42b385;_0x13e2f4>=0x0;_0x13e2f4--)(_0x42b385=_0x18e526[_0x13e2f4])&&(_0x29d280=_0x42b385(_0x29d280)||_0x29d280);return _0x29d280;},Ee=(_0x2a1430,_0x49c1fa)=>(_0x3dd733,_0xbce40d)=>_0x49c1fa(_0x3dd733,_0xbce40d,_0x2a1430);let oe=class{constructor(_0x3a79f3,_0x3be434,_0x10ffd4){const _0x5330e0=_0x3a57f9;this[_0x5330e0(0x225)]=_0x3a79f3,this[_0x5330e0(0x252)]=_0x3be434,this[_0x5330e0(0xd7)]=_0x10ffd4;}['transformStateCache'](_0x49350d){this['_transformHistoryAndStateStack'](_0x49350d);}[_0x3a57f9(0x1b3)](_0x4b9bda){const _0x34ae71=_0x3a57f9,{unitID:_0x29ff62}=_0x4b9bda,{collaboration:_0xadc096}=this[_0x34ae71(0xd7)][_0x34ae71(0xd6)](_0x29ff62);if(_0xadc096[_0x34ae71(0x1f3)]===0x0)return _0x4b9bda;let _0x3c4f7e=_0xef5339['deepClone'](_0x4b9bda[_0x34ae71(0x10f)][0x0]);for(let _0x42143e=0x0;_0x42143e<_0xadc096[_0x34ae71(0x1f3)];_0x42143e++){const _0x19d2c4={'id':_0x34ae71(0x29f),'params':{'unitId':_0xadc096[_0x42143e][_0x34ae71(0xd4)],..._0xadc096[_0x42143e][_0x34ae71(0x283)]}},_0x57b42c=this[_0x34ae71(0x252)]['transformMutation'](_0x3c4f7e,_0x19d2c4,!0x1);if(_0x2e710a(_0x57b42c))throw _0x57b42c[_0x34ae71(0x134)];_0x3c4f7e=_0x57b42c[_0x34ae71(0x1f4)];}return{..._0xef5339['deepClone'](_0x4b9bda),'mutations':[_0x3c4f7e]};}['_transformHistoryAndStateStack'](_0x26371b){const _0x452da1=_0x3a57f9,{unitID:_0x129778}=_0x26371b,{history:_0x2ae675,collaboration:_0x264eef}=this[_0x452da1(0xd7)]['getStateCache'](_0x129778);if(_0x2ae675['length']===0x0&&_0x264eef[_0x452da1(0x1f3)]===0x0)return;const _0x31ebf4=[],_0x4d7b5b=[];let _0x3412b0=_0xef5339['deepClone'](_0x26371b[_0x452da1(0x10f)][0x0]),_0x54ac54=_0xef5339[_0x452da1(0x22c)](_0x26371b[_0x452da1(0x10f)][0x0]);for(let _0x53c8d6=_0x2ae675['length']-0x1;_0x53c8d6>=0x0;_0x53c8d6--){const _0x5835b1={'id':_0x452da1(0x29f),'params':{'unitId':_0x2ae675[_0x53c8d6][_0x452da1(0xd4)],..._0x2ae675[_0x53c8d6][_0x452da1(0x1d9)]}},_0x2e7dec={'id':_0x452da1(0x29f),'params':{'unitId':_0x2ae675[_0x53c8d6][_0x452da1(0xd4)],..._0x2ae675[_0x53c8d6][_0x452da1(0x283)]}},_0x5b1135=this[_0x452da1(0x252)]['transformMutation'](_0x3412b0,_0x5835b1,!0x1),_0x43d97c=this['_transformService'][_0x452da1(0x244)](_0x54ac54,_0x2e7dec,!0x1);if(_0x2e710a(_0x5b1135))throw _0x5b1135[_0x452da1(0x134)];if(_0x2e710a(_0x43d97c))throw _0x43d97c[_0x452da1(0x134)];_0x31ebf4['unshift']({..._0x2ae675[_0x53c8d6],'undoState':_0x5b1135['m2Prime'][_0x452da1(0xf8)],'redoState':_0x43d97c['m2Prime'][_0x452da1(0xf8)]}),_0x3412b0=_0x5b1135[_0x452da1(0x1f4)],_0x54ac54=_0x43d97c[_0x452da1(0x1f4)];}_0x3412b0=_0xef5339[_0x452da1(0x22c)](_0x26371b['mutations'][0x0]),_0x54ac54=_0xef5339[_0x452da1(0x22c)](_0x26371b[_0x452da1(0x10f)][0x0]);for(let _0x44b4b5=_0x264eef['length']-0x1;_0x44b4b5>=0x0;_0x44b4b5--){const _0xd9d5e4={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x264eef[_0x44b4b5]['unitId'],..._0x264eef[_0x44b4b5][_0x452da1(0x1d9)]}},_0x38281b={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x264eef[_0x44b4b5][_0x452da1(0xd4)],..._0x264eef[_0x44b4b5][_0x452da1(0x283)]}},_0x5803f0=this[_0x452da1(0x252)][_0x452da1(0x244)](_0x3412b0,_0xd9d5e4,!0x1),_0x210f89=this[_0x452da1(0x252)][_0x452da1(0x244)](_0x54ac54,_0x38281b,!0x1);if(_0x2e710a(_0x5803f0))throw _0x5803f0[_0x452da1(0x134)];if(_0x2e710a(_0x210f89))throw _0x210f89[_0x452da1(0x134)];_0x4d7b5b[_0x452da1(0x126)]({..._0x264eef[_0x44b4b5],'undoState':_0x5803f0[_0x452da1(0x1fa)][_0x452da1(0xf8)],'redoState':_0x210f89[_0x452da1(0x1fa)][_0x452da1(0xf8)]}),_0x3412b0=_0x5803f0[_0x452da1(0x1f4)],_0x54ac54=_0x210f89[_0x452da1(0x1f4)];}this['_docStateChangeManagerService'][_0x452da1(0x1b8)](_0x129778,{'history':_0x31ebf4,'collaboration':_0x4d7b5b});}};oe=nn([Ee(0x0,_0x3296bc(_0x538ee1)),Ee(0x1,_0x5dc57d),Ee(0x2,_0x3296bc(_0x26fc0c))],oe);var rn=Object[_0x3a57f9(0x179)],on=(_0x2a94f0,_0x4132b5,_0x461f86,_0x2f5bcb)=>{for(var _0x5bc8fb=_0x2f5bcb>0x1?void 0x0:_0x2f5bcb?rn(_0x4132b5,_0x461f86):_0x4132b5,_0x3f360b=_0x2a94f0['length']-0x1,_0x2d3aae;_0x3f360b>=0x0;_0x3f360b--)(_0x2d3aae=_0x2a94f0[_0x3f360b])&&(_0x5bc8fb=_0x2d3aae(_0x5bc8fb)||_0x5bc8fb);return _0x5bc8fb;},st=(_0x418efc,_0x3f88c5)=>(_0x5e8504,_0x39e37c)=>_0x3f88c5(_0x5e8504,_0x39e37c,_0x418efc);let ae=class{constructor(_0x415580,_0x912699){const _0x92be55=_0x3a57f9;this[_0x92be55(0x225)]=_0x415580,this[_0x92be55(0x252)]=_0x912699;}[_0x3a57f9(0x1bf)](_0x2ce4d9){const _0x15d62c=_0x3a57f9;var _0x202a4b;const _0x470092=this[_0x15d62c(0x225)][_0x15d62c(0x147)](_0x5d5866),_0x2287a4=(_0x202a4b=_0x470092[_0x15d62c(0x128)]())!=null?_0x202a4b:[];if(_0x2287a4[_0x15d62c(0x1f3)]===0x0)return;const _0x24e64a=_0x2ce4d9[_0x15d62c(0x24e)],_0x2eb0eb=[{'id':_0x15d62c(0x29f),'params':{'unitId':_0x24e64a,'actions':null,'textRanges':_0x2287a4}}],_0x10e25f=this[_0x15d62c(0x252)][_0x15d62c(0x1a8)](_0x2ce4d9,_0x2eb0eb);if(!_0x503663(_0x10e25f))throw _0x10e25f['error'];const _0x3f6cf2=_0x10e25f[_0x15d62c(0x1fa)][0x0][_0x15d62c(0xf8)]['textRanges'];Array[_0x15d62c(0x142)](_0x3f6cf2)&&_0x3f6cf2[_0x15d62c(0x1f3)]&&_0x470092[_0x15d62c(0x196)](_0x3f6cf2,{'unitId':_0x24e64a,'subUnitId':_0x24e64a},!0x1);}};ae=on([st(0x0,_0x3296bc(_0x538ee1)),st(0x1,_0x5dc57d)],ae);var an=Object['getOwnPropertyDescriptor'],cn=(_0x49192d,_0x272e37,_0x5d0cfa,_0x1fdf32)=>{for(var _0x3e30f5=_0x1fdf32>0x1?void 0x0:_0x1fdf32?an(_0x272e37,_0x5d0cfa):_0x272e37,_0x5a3e0d=_0x49192d['length']-0x1,_0x417b5a;_0x5a3e0d>=0x0;_0x5a3e0d--)(_0x417b5a=_0x49192d[_0x5a3e0d])&&(_0x3e30f5=_0x417b5a(_0x3e30f5)||_0x3e30f5);return _0x3e30f5;},U=(_0x3502cd,_0x33cfcc)=>(_0x2591cc,_0xcfcde9)=>_0x33cfcc(_0x2591cc,_0xcfcde9,_0x3502cd);let ce=class extends _0x16ac65{constructor(_0x163819,_0xcbe44,_0x16b00d,_0x2e3501,_0x3978d8,_0x949d3f,_0x32624c,_0x20627d){const _0x16eeae=_0x3a57f9;super(),_(this,_0x16eeae(0x11b),new _0x3985c9(_0x1292c5[_0x16eeae(0x1a5)])),(this[_0x16eeae(0xd7)]=_0x163819,this[_0x16eeae(0x260)]=_0xcbe44,this[_0x16eeae(0x1b5)]=_0x16b00d,this[_0x16eeae(0x177)]=_0x2e3501,this[_0x16eeae(0x271)]=_0x3978d8,this[_0x16eeae(0x1a2)]=_0x949d3f,this[_0x16eeae(0x16b)]=_0x32624c,this[_0x16eeae(0x1b6)]=_0x20627d,this['_initEntityListener']());}[_0x3a57f9(0x23e)](){const _0xf04e15=_0x3a57f9;this[_0xf04e15(0x2b3)](this[_0xf04e15(0x260)][_0xf04e15(0x1a1)][_0xf04e15(0x175)](_0x3e4e1d=>{const _0x23a571=_0xf04e15,_0x56aecc=this[_0x23a571(0xd7)][_0x23a571(0xff)][_0x23a571(0x175)](_0x46d9ec=>{const _0x4f5f30=_0x23a571;if(_0x46d9ec==null)return;const {unitId:_0x292345,redoState:_0x55ac08,commandId:_0x26eec7}=_0x46d9ec;if(_0x292345!==_0x3e4e1d['unitID'])return;const _0x15f24c={'id':_0x26eec7,'type':_0x326c54[_0x4f5f30(0x1c4)],'params':{'unitId':_0x292345,'actions':_0x55ac08['actions'],'textRanges':null}};_0x3e4e1d['onLocalMutation'](_0x15f24c);});if(_0x3e4e1d['disposeWithMe'](_0x56aecc),_0x3e4e1d instanceof _0x18bf24){const _0x3624d5={'onTransformIME':_0x4aac43=>this[_0x23a571(0x1b5)]['transformIMECache'](_0x4aac43),'onTransformState':_0x4587c0=>this['_docTransformStateCacheService'][_0x23a571(0x2c7)](_0x4587c0),'onTransformSelections':_0x482e06=>this[_0x23a571(0x271)]['transformSelections'](_0x482e06),'onSyncEditingCollabCursor':_0x5e74ee=>this[_0x23a571(0x1a2)]['syncEditingCollabCursor'](_0x5e74ee),'onTransformRemoteChangesetByIMECache':_0x54bdd2=>this['_docTransformIMECacheService'][_0x23a571(0x1b3)](_0x54bdd2),'onTransformRemoteChangesetByStateCache':_0x5e3cbf=>this[_0x23a571(0x177)][_0x23a571(0x1b3)](_0x5e3cbf)};_0x3e4e1d[_0x23a571(0x296)](_0x3624d5);}}));}};ce=cn([U(0x0,_0x3296bc(_0x26fc0c)),U(0x1,_0x3296bc(_0x1edc48)),U(0x2,_0x3296bc(re)),U(0x3,_0x3296bc(oe)),U(0x4,_0x3296bc(ae)),U(0x5,_0x3296bc(Fe)),U(0x6,_0x2e55ff),U(0x7,_0x3296bc(_0xc76249))],ce);var ln=Object[_0x3a57f9(0x179)],_n=(_0x1a4750,_0xd72d1c,_0x253822,_0x3c4375)=>{const _0x9acf79=_0x3a57f9;for(var _0x22d6dd=_0x3c4375>0x1?void 0x0:_0x3c4375?ln(_0xd72d1c,_0x253822):_0xd72d1c,_0x2877db=_0x1a4750[_0x9acf79(0x1f3)]-0x1,_0x499c95;_0x2877db>=0x0;_0x2877db--)(_0x499c95=_0x1a4750[_0x2877db])&&(_0x22d6dd=_0x499c95(_0x22d6dd)||_0x22d6dd);return _0x22d6dd;},Oe=(_0xa24640,_0x595f7c)=>(_0x15de3b,_0x4dc424)=>_0x595f7c(_0x15de3b,_0x4dc424,_0xa24640);let Ae=class extends _0x16ac65{constructor(_0x3fcea9,_0x53e854,_0x1675c5){const _0x477036=_0x3a57f9;super(),_(this,'_cachedData',new Map()),_(this,_0x477036(0x1b0),new Map()),_(this,_0x477036(0x278),!0x1),(this[_0x477036(0x269)]=_0x3fcea9,this[_0x477036(0x24b)]=_0x53e854,this[_0x477036(0x199)]=_0x1675c5);}[_0x3a57f9(0xd9)](){this['_disabled']=!0x0;}[_0x3a57f9(0x1ab)](){const _0xd318ed=_0x3a57f9;this[_0xd318ed(0x278)]=!0x1;}get[_0x3a57f9(0x27b)](){return this['_saveTaskMap'];}[_0x3a57f9(0x28e)](){const _0x560511=_0x3a57f9;this[_0x560511(0x29c)]()['then'](()=>super[_0x560511(0x28e)]());}async[_0x3a57f9(0x25c)](_0x2320ea){const _0x56a71a=_0x3a57f9;return this['_disabled']?null:this['_localStorageService'][_0x56a71a(0x1a6)](_0x38124f(_0x2320ea));}async[_0x3a57f9(0x151)](_0x1609e9,_0x4064c4){const _0x4cc344=_0x3a57f9;return!!this[_0x4cc344(0x24b)][_0x4cc344(0x26b)](_0x1609e9,_0x4064c4);}[_0x3a57f9(0x15a)](_0x2781e5,_0x46126a,_0x5b5da0,_0x35609a){const _0x596a9c=_0x3a57f9,_0xa1391d=this[_0x596a9c(0x199)][_0x596a9c(0x1ee)](_0x2781e5);this[_0x596a9c(0x251)][_0x596a9c(0x22d)](_0x2781e5,{'unitID':_0x2781e5,'type':_0x46126a,'awaitingChangeset':_0x5b5da0,'mutations':_0x35609a,'rev':_0xa1391d}),this[_0x596a9c(0x1b0)][_0x596a9c(0x223)](_0x2781e5)||this[_0x596a9c(0x232)](_0x2781e5);}['_scheduleSaving'](_0x51caa2){const _0x350667=_0x3a57f9,_0x1ca3e6=this[_0x350667(0x1fe)]();_0x1ca3e6===0x0?this[_0x350667(0x272)](_0x51caa2):this[_0x350667(0x1b0)][_0x350667(0x22d)](_0x51caa2,setTimeout(()=>this[_0x350667(0x272)](_0x51caa2),_0x1ca3e6));}[_0x3a57f9(0x1fe)](){const _0x2bf123=_0x3a57f9;var _0xc5901b;return(_0xc5901b=this[_0x2bf123(0x269)][_0x2bf123(0x20c)](_0xed578d))!=null?_0xc5901b:_0x2db360;}[_0x3a57f9(0x272)](_0x14fab7){const _0xea975=_0x3a57f9,_0x3786b2=this['_saveTaskMap']['get'](_0x14fab7);return _0x3786b2!==void 0x0&&window['clearTimeout'](_0x3786b2),this[_0xea975(0x24b)]['setItem'](_0x38124f(_0x14fab7),this['_cachedData'][_0xea975(0x147)](_0x14fab7))[_0xea975(0x2b1)](()=>this[_0xea975(0x1b0)][_0xea975(0x286)](_0x14fab7));}async[_0x3a57f9(0x29c)](){const _0x166a14=_0x3a57f9,_0x46fd76=[];this[_0x166a14(0x1b0)]['forEach']((_0x2fbf3d,_0x26647d)=>{const _0x288afe=_0x166a14;window['clearTimeout'](_0x2fbf3d),_0x46fd76[_0x288afe(0x1fd)](this[_0x288afe(0x272)](_0x26647d)['then'](()=>{const _0x1001bd=_0x288afe;this['_saveTaskMap'][_0x1001bd(0x286)](_0x26647d);}));}),await Promise[_0x166a14(0x24c)](_0x46fd76);}};Ae=_n([Oe(0x0,_0x2f1f09),Oe(0x1,_0x34513f),Oe(0x2,_0x3296bc(_0x51757e))],Ae);class hn extends _0x553b56{constructor(){const _0x23c30f=_0x3a57f9;super(),_(this,_0x23c30f(0x2ca)),this[_0x23c30f(0x2ca)]=_0x5942d0(window,'popstate')[_0x23c30f(0x143)](_0x2a6b6e(this[_0x23c30f(0x22f)]),_0x21f060(0x1),_0x82e8ad(void 0x0));}[_0x3a57f9(0x1cc)](_0x5b15eb,_0x134aee,_0x48a9ae=!0x1){const _0x290105=_0x3a57f9,_0x255a60=new URL(window[_0x290105(0x125)]['href']);_0x255a60[_0x290105(0x18e)][_0x290105(0x22d)](_0x5b15eb,_0x134aee),_0x48a9ae?window[_0x290105(0x1df)][_0x290105(0x245)]('','',_0x255a60['toString']()):window[_0x290105(0x1df)][_0x290105(0x1e4)]('','',_0x255a60[_0x290105(0x191)]());}[_0x3a57f9(0x249)](_0x715aab,_0xefc636=!0x1){const _0x18d7b2=_0x3a57f9,_0x5e94f6=new URL(window[_0x18d7b2(0x125)][_0x18d7b2(0x21b)]);_0x5e94f6[_0x18d7b2(0x18e)][_0x18d7b2(0x286)](_0x715aab),_0xefc636?window[_0x18d7b2(0x1df)]['replaceState']('','',_0x5e94f6[_0x18d7b2(0x191)]()):window[_0x18d7b2(0x1df)][_0x18d7b2(0x1e4)]('','',_0x5e94f6['toString']());}[_0x3a57f9(0x1ea)](_0x15df07){const _0x5c7a4a=_0x3a57f9;var _0xfa8971;return(_0xfa8971=new URL(window[_0x5c7a4a(0x125)][_0x5c7a4a(0x21b)])['searchParams'][_0x5c7a4a(0x147)](_0x15df07))!=null?_0xfa8971:void 0x0;}}var un=Object[_0x3a57f9(0xef)],dn=Object['getOwnPropertyDescriptor'],fn=(_0x59a598,_0x53831a,_0x218e10)=>_0x53831a in _0x59a598?un(_0x59a598,_0x53831a,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x218e10}):_0x59a598[_0x53831a]=_0x218e10,Sn=(_0x667dbf,_0x17bb21,_0x313be4,_0x3f28b7)=>{const _0x1f15ce=_0x3a57f9;for(var _0x15b729=_0x3f28b7>0x1?void 0x0:_0x3f28b7?dn(_0x17bb21,_0x313be4):_0x17bb21,_0x7ad47d=_0x667dbf[_0x1f15ce(0x1f3)]-0x1,_0x2cc971;_0x7ad47d>=0x0;_0x7ad47d--)(_0x2cc971=_0x667dbf[_0x7ad47d])&&(_0x15b729=_0x2cc971(_0x15b729)||_0x15b729);return _0x15b729;},be=(_0x1f5987,_0x67b5e9)=>(_0x1970e6,_0x4b8704)=>_0x67b5e9(_0x1970e6,_0x4b8704,_0x1f5987),mn=(_0x4e1cb1,_0x4dfb1d,_0x1d0162)=>fn(_0x4e1cb1,_0x4dfb1d+'',_0x1d0162);const In=_0x3a57f9(0x25a);let ye=class extends _0x273334{constructor(_0x20ab2a=tt,_0x412285,_0x40e781,_0x1a701d){const _0x57e755=_0x3a57f9;super(),this['_config']=_0x20ab2a,this['_renderManagerService']=_0x412285,this[_0x57e755(0x225)]=_0x40e781,this[_0x57e755(0x269)]=_0x1a701d;const {..._0x550ea1}=_0x18fc6d({},tt,this[_0x57e755(0x240)]);this[_0x57e755(0x269)][_0x57e755(0x2cb)](Zi,_0x550ea1);}[_0x3a57f9(0x23a)](){const _0x42e02a=_0x3a57f9;this[_0x42e02a(0x1c5)](),this[_0x42e02a(0x14b)]();}[_0x3a57f9(0x230)](){const _0x1fc169=_0x3a57f9;this[_0x1fc169(0xf4)]();}[_0x3a57f9(0x1c5)](){const _0x10e14e=_0x3a57f9;var _0x4ae62f;const _0x168d3b=[[He],[ae],[re],[oe],[Fe],[Mt,{'useClass':hn}],[_0x18d2f7,{'useClass':_0x4d0048}],[_0x2cfad2,{'useClass':Ae}],[se],[ce],[ie],[F],[Ue],[ne]];_0x4059dc(this[_0x10e14e(0x225)],_0x1dbfa7(_0x168d3b,(_0x4ae62f=this[_0x10e14e(0x240)])==null?void 0x0:_0x4ae62f['override']));}[_0x3a57f9(0xf4)](){const _0x54a76c=_0x3a57f9;this[_0x54a76c(0x2b3)](this[_0x54a76c(0xdb)][_0x54a76c(0x1bb)](_0x54ea39[_0x54a76c(0x136)],[Pe])),this[_0x54a76c(0x2b3)](this[_0x54a76c(0xdb)][_0x54a76c(0x1bb)](_0x54ea39[_0x54a76c(0x2bc)],[we]));}[_0x3a57f9(0x14b)](){const _0x4830f6=_0x3a57f9;_0xafaaa7(this[_0x4830f6(0x225)],[[F],[se],[ce],[ie],[ne]]);}};function _0x1193(){const _0xbe6487=['_localeService','eventID','setStateCache','_colorIndex','JOIN_ROOM_FAILED','registerRenderModule','_drawTextRange','getUnitId','_urlService','transformSelections','_uiPartsService','getTypeOfUnitAdded$','getAncestorScale','on-line-icon','MUTATION','_registerDependencies','next','getMemberID','_docClipboardService','_notificationService','ranges','RECT','setParam','memberID','closePath','_getSessionTicket','DeleteRangeMoveLeftCommandId','RemoveRowCommandId','414sTdLvf','origin','APPLY_NON_SEQUENTIAL_REVISION','1em','_getMergeRange','textRanges','getOwnPropertySymbols','undoState','ONLINE','newValue','_send','_drawAnchor','1636ICRifW','history','subUnitId','_updateURLWithCurrentState','setShapeProps','AWAITING','pushState','replace','backgroundColor','idSuffix','roomMembers','_lastPointer','getParam','COMPLETION_FINISHED','INVITE_CODE_REQUIRED','PERMISSION_DENIED','getCurrentRevOfUnit','INTERNAL_ERROR','PENDING','getUndoRedoMutationParamsCache','init','length','m1Prime','forEach','DeleteRangeMoveUpCommandId','disposeUnit','skeleton','_scheduleHeartbeat','m2Prime','_onRefRangeChange','_toggleOffline','push','_getSaveTimeout','none','MOBILE_VERIFY_CODE_MISMATCH','url(#on-line-icon_clip0_910_349)','_backgroundColor','_startSheetCollabCursor','getActiveRange','drawWith','clipPath','round','onCommandExecuted','YUUMI_ALL_TABLES_IS_INVALID','_anchor','_anchorDot','getConfig','CHANGESET_REVISION_CONFILICT','ALREADY_EXISTS','_startDocCollabCursor','2107980ynyHiE','Error','_hideTimer','xlink:href','permission.title','getCurrentSelections','EMAIL_VERIFY_CODE_MISMATCH','_setupSubUnitSync','isActive','tag','range','href','setInterval','_handleHeartbeatEvent','SOCKET_FAILED_RETRY','runId','collabStatus.synced','CONFLICT','startRow','has','_univerInstanceService','_injector','_context','path','_httpService','hasOwnProperty','size','selections','deepClone','set','_heartbeatTimer','dispose$','onRendered','_updateLocalCursor','_scheduleSaving','[CollaborationDataLoaderController]','top','InsertRowCommandId','[RemoteUniscriptService]:\x20no\x20focused\x20unit','_textBubble','INVITE_CODE_ALREADY_BOUND','getValue','onStarting','activeSheet$','onPointerMove$','Failed','_initEntityListener','entries','_config','getRelativeToViewportCoord','_initResize','_initEvent','transformMutation','replaceState','getMergeData','_removeClearOtherTimer','from','removeParam','InsertColCommandId','_localStorageService','all','green.600','unitID','_id','reconnect','_cachedData','_transformService','getSheetId','sheetId','LICENSE_EXPORT_SIZE_EXCEEDED','_updateCollabCursors','_ensureSubject','_onCursorUpdate','_entities','UNIVER_COLLABORATION_CLIENT_WEB_PLUGIN','event$','loadOfflineData','_assignedColors','INVALID_INVITE_CODE','M0\x200H16V16H0z','_collaborationController','send','trim','FromArray','currentSkeleton$','_refreshCollabCursors','_initStatusListener','translate(.97)','subunit','_configService','hide','setItem','collaboration.closeRoom','_cursorInfo$','arc','_selfUnitIDs','findNodePositionByCharIndex','_docTransformSelectionsService','_saveCache','sessionStatus$','min','_render','APPLY_REVISION_CONFILICT','assign','_disabled','svg','_hover','saveTaskMap','div','SNAPSHOT_HAS_BEEN_REMOVED','4347744XZEACd','_themeService','apply','_sheetSkeletonManagerService','_toggleOnline','redoState','url(#off-line-icon_clip0_910_343)','CLOSE_ROOM','delete','whenReady','endRow','_collabCursorController','add','fill','defs','split','dispose','onPointerEnter$','CONNECTOR_DATA_TOO_LARGE','permission.content','LICENSE_DISTRO_REJECTED','INVITE_CODE_HAS_BEEN_UES','431226hpPYHc','off-line-icon','addHandlerCallback','getSkeleton','measureText','_session','_labelPosition','_commandService','exhaustSavingTask','LICENSE_MAX_UNITS_EXCEEDED','currentTheme$','doc.mutation.rich-text-editing','_entityInit$','with','focused$','data','APPLY_DUPLICATED','color','symbol','executeCommand','onPointerLeave$','LICENSE_IMPORT_SIZE_EXCEEDED','_removeCollabCursors','getRangePointData','includes','NOT_FOUND','2516040ofOXrX','collab-client.tooltip.reconnect','on-line-icon_clip0_910_349','then','_handleEvent','disposeWithMe','getFocusedUnit','black','font','UPDATE_CURSOR','engine','collaboration-client-ui.config','width','session.connection-failed','UNIVER_SHEET','_handleJoinEvent','UNRECOGNIZED','requireSession','editingUnit','fillStyle','lineTo','YUUMI_CONNECTOR_URL_NOT_FOUND','collab-text-range-','assignAColorForMemberID','getUniverSheetInstance','transformStateCache','flatMap','_transformPreviousActiveRange','urlChange$','setConfig','hovered','univer-flex\x20univer-items-center','getVpScrollXYInfoByPosToVp','5wpeMix','concat','APPLY_REJECT','ACTIVE_UNIT_EVENT_CHANNEL','setTimeout','#FFF','transformByState','APPLY_PERMISSION_DENIED','unitId','MOBILE_VERIFY_CODE_NOT_FOUND_OR_EXPIRED','getStateCache','_docStateChangeManagerService','addObjects','disableLocalCache','0\x200\x2017\x2016','_renderManagerService','show','saveImage','transform','_range','extend','bottom','loadUnit','getCollabCursors$','collabCursorState$','ENSURE_SNAPSHOT_EXECUTION','_memberService','triggerDblclick','LOGIN_FAILED','map','SUBMIT_CHANGESET_TIMEOUT','_colorAssignService','name','getCellPositionByOffset','setAlpha','defineProperty','white','purple.300','YUUMI_UNABLE_LOAD_URL','univer-mr-2\x20univer-flex\x20univer-text-xl','_registerRenderDependencies','YUUMI_RATE_OVER_LIMIT','collab-rect-range-','find','params','wsSessionTicketUrl','mask','_getScale','OFFLINE','getCurrentUnitForType','AWAITING_WITH_PENDING','docStateChange$','unsubscribe','_unitStatus','propertyIsEnumerable','_drawRectRange','YUUMI_TABLE_NOT_FOUND_IN_UNIT','subscribeEvent','_eventUnsubscribe','USERS_LEAVE','OTHER_CLIENTS_EDITING','post','asObservable','SOCKET_FAILED','_collabSessionService','endColumn','off-line-icon_clip0_910_343','mutations','colorChannel1','body','collabStatus.syncing','FETCH_MISS','displayName','onTransformChange$','_cursorShapes','_cursors','YUUMI_ASYNCIO_CANCELLED','_setupBeforeClosingHandler','_logService','_status$','MOBILE_HAS_BEEN_BOUND','getSheetBySheetId','roomMembers$','_collaborationUIEventService','_name','getColorFromTheme','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','getRenderById','red.300','location','unshift','_handleLeaveEvent','getDocRanges','syncEditingCollabCursor','VIEW_MAIN','SNAPSHOT_INVALID_SNAPSHOT','_roomMembers$','className','text','prototype','_getSheetObject','_imageIoService','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','_docSkeletonManagerService','error','getActiveSheet','UNIVER_DOC','_online','_scene','currentColor','registerBeforeClose','startsWith','addEventListener','_init','labelPosition','defIds','rgba(255,\x20255,\x20255,\x200.01)','clearTimeout','isArray','pipe','use','_dataLoaderService','Warning','get','_initCommandExecutedListener','startColumn','createInstance','_initDependencies','search','_scheduleClearOtherTimer','makeDirty','transformIMECache','unit','saveOfflineData','RemoveColCommandId','HEADER_MENU','complete','children','storage','registerRefRange','InsertRangeMoveDownCommandId','_updateSubUnitFromURLParams','updateOfflineData','TEXT','UniverIcon','column','fillText','_color','_collabCursorState$','getUnhiddenWorksheets','getTypeOfUnitDisposed$','_getAnchorBounding','url(#$1','collabStatus.conflict','parse','height','evenodd','_hovered','_clearOtherTimers','_messageService','ticket','type','0\x200\x2016\x2016','code','values','imageSourceType','restore','InsertRangeMoveRightCommandId','_refRangeService','subscribe','NO_OTHER_CLIENTS_EDITING','_docTransformStateCacheService','moveTo','getOwnPropertyDescriptor','http://www.w3.org/2000/svg','source','EMAIL_HAS_BEEN_BOUND','selection','indexOf','getMember','_instanceService','YUUMI_URL_COL_OUT_OF_RANGE','status$','3741388sKuXIw','_createSocketURL','attrs','collabStatus.notCollab','call','setUndoRedoMutationParamsCache','save','_handleHover','_transformUndoRedoStack','_syncEditingCollabCursorService','29857392xGVMeo','searchParams','cursorInfo','PY_RUNTIME_SCRIPT_ERROR','toString','string','addObject','session.collaboration-timeout','_unitOnClients','replaceDocRanges','WECHAT_HAS_BEEN_BOUND','...','_revisionService','UNAUTHENTICATED','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','cursorInfo$','USER_NOT_INVITED_CODE','Unknown\x20user','_draw','getCurrent','entityInit$','_docSyncEditingCollabCursorService','toRgbString','stringify','NOT_COLLAB','getItem','collaboration.single-unit.warning','transformMutationsWithChangeset','onMouseMove','SYNCED','enableLocalCache','icon','_localCacheService','_shapes','YUUMI_PROMPT_MAX_TOKENS_EXCEEDED','_saveTaskMap','addClipboardHook','EMAIL_VERIFY_CODE_NOT_FOUND_OR_EXPIRED','transformRemoteChangeset','YUUMI_AI_RUN_FAILED','_docTransformIMECacheService'];_0x1193=function(){return _0xbe6487;};return _0x1193();}mn(ye,'pluginName',In),ye=Sn([_0x49e18d(_0x3e1b3e),be(0x1,_0x20c53d),be(0x2,_0x3296bc(_0x538ee1)),be(0x3,_0x2f1f09)],ye);var vn=Object['getOwnPropertyDescriptor'],gn=(_0x4084ad,_0x1ec871,_0x29679c,_0x281d68)=>{const _0x5bae21=_0x3a57f9;for(var _0xb25cb3=_0x281d68>0x1?void 0x0:_0x281d68?vn(_0x1ec871,_0x29679c):_0x1ec871,_0x2a0468=_0x4084ad[_0x5bae21(0x1f3)]-0x1,_0x4b52c8;_0x2a0468>=0x0;_0x2a0468--)(_0x4b52c8=_0x4084ad[_0x2a0468])&&(_0xb25cb3=_0x4b52c8(_0xb25cb3)||_0xb25cb3);return _0xb25cb3;},z=(_0x1c5b06,_0x4d182f)=>(_0x2ec8a1,_0xcbb427)=>_0x4d182f(_0x2ec8a1,_0xcbb427,_0x1c5b06);let it=class extends _0x57cd60{constructor(_0xd07d0e,_0x50041c,_0x4b14a8,_0x5a5da6,_0x51651d){super(_0xd07d0e,_0x50041c,_0x4b14a8,_0x5a5da6,_0x51651d);}async['createSocket'](_0x5b9e60){const _0x3b35f3=_0x3a57f9,_0x44717a=await this[_0x3b35f3(0x1cf)](),_0x30364f=this['_createSocketURL'](_0x5b9e60,_0x44717a);return this['_doCreateSocket'](_0x30364f);}[_0x3a57f9(0x184)](_0x5922d7,_0x39d142){const _0x553f65=_0x3a57f9,_0x4b2675=typeof window>'u'?new URL(_0x5922d7):new URL(_0x5922d7,window[_0x553f65(0x125)][_0x553f65(0x1d3)]);_0x4b2675[_0x553f65(0x18e)][_0x553f65(0x22d)]('sessionTicket',_0x39d142);const _0x5cad57=typeof window>'u'?new URLSearchParams():new URLSearchParams(window['location'][_0x553f65(0x14c)]);return _0x5cad57[_0x553f65(0x147)](_0x553f65(0x21f))&&_0x4b2675[_0x553f65(0x18e)][_0x553f65(0x22d)](_0x553f65(0x21f),_0x5cad57[_0x553f65(0x147)]('runId')),_0x4b2675[_0x553f65(0x191)]();}async['_getSessionTicket'](){const _0xe49b90=_0x3a57f9;var _0x230660,_0x5235b2,_0xd47109;const _0x125ee7=this[_0xe49b90(0x269)]['getConfig'](_0x285bd1),_0x34f0ff=(_0x230660=_0x125ee7==null?void 0x0:_0x125ee7[_0xe49b90(0xf9)])!=null?_0x230660:_0x25c621;return(_0xd47109=(_0x5235b2=(await this[_0xe49b90(0x228)][_0xe49b90(0x147)](_0x34f0ff,{'headers':{'Content-Type':'application/json'}}))['body'])==null?void 0x0:_0x5235b2[_0xe49b90(0x16c)])!=null?_0xd47109:'';}};it=gn([z(0x0,_0x3296bc(_0x538ee1)),z(0x1,_0x3296bc(_0x1cd424)),z(0x2,_0x2f1f09),z(0x3,_0x2d6f9d),z(0x4,_0x3ab256)],it);const nt=0x7530,rt=_0x3a57f9(0x2d2);class Fn extends _0x16ac65{constructor(){const _0x345cc0=_0x3a57f9;super(),_(this,'_id',_0x44ddb8()),_(this,'_selfUnitIDs',new Set()),_(this,_0x345cc0(0x195),new Map()),_(this,'_heartbeatTimer',null),_(this,_0x345cc0(0x16a),new Map()),_(this,'_unitStatus',new Map()),this[_0x345cc0(0x13d)]();}[_0x3a57f9(0x28e)](){const _0x3b30c3=_0x3a57f9;super[_0x3b30c3(0x28e)](),this[_0x3b30c3(0x16a)]['forEach']((_0x47d847,_0x48ebb3)=>this[_0x3b30c3(0x247)](_0x48ebb3)),this[_0x3b30c3(0x22e)]&&window['clearInterval'](this[_0x3b30c3(0x22e)]);}['getUnitStatus$'](_0x18ed4c){const _0x5c0b29=_0x3a57f9;return this[_0x5c0b29(0x257)](_0x18ed4c)['pipe'](_0x43cb2c());}[_0x3a57f9(0x2c0)](_0x159b42){const _0xc9a9c0=_0x3a57f9;this[_0xc9a9c0(0x26f)][_0xc9a9c0(0x22a)]===0x0&&this['_scheduleHeartbeat'](),this[_0xc9a9c0(0x26f)][_0xc9a9c0(0x28a)](_0x159b42),this[_0xc9a9c0(0x1dc)]({'type':0x0,'memberID':this[_0xc9a9c0(0x24f)],'unitIDs':[_0x159b42],'isForwarded':!0x1});}[_0x3a57f9(0x1f7)](_0x449418){const _0x4b9b5c=_0x3a57f9;this['_selfUnitIDs'][_0x4b9b5c(0x286)](_0x449418),this[_0x4b9b5c(0x26f)][_0x4b9b5c(0x22a)]===0x0&&this[_0x4b9b5c(0x22e)]&&window['clearInterval'](this['_heartbeatTimer']);}[_0x3a57f9(0x13d)](){const _0x4a52e6=_0x3a57f9;this[_0x4a52e6(0x2b3)](_0x3d316a(_0x5942d0(window,_0x4a52e6(0x156))['subscribe'](_0x48e362=>{const _0x3ed0cc=_0x4a52e6;if(_0x48e362['key']!==rt||!_0x48e362[_0x3ed0cc(0x1db)])return;const _0x225a99=JSON[_0x3ed0cc(0x166)](_0x48e362['newValue']);this[_0x3ed0cc(0x2b2)](_0x225a99);}))),window[_0x4a52e6(0x13c)]('unload',()=>this[_0x4a52e6(0x1dc)]({'type':0x1,'memberID':this['_id'],'unitIDs':Array[_0x4a52e6(0x248)](this['_selfUnitIDs'])}));}[_0x3a57f9(0x2b2)](_0x27a6ab){const _0xb563b0=_0x3a57f9;switch(_0x27a6ab[_0xb563b0(0x16d)]){case 0x0:this['_handleJoinEvent'](_0x27a6ab);break;case 0x1:this['_handleLeaveEvent'](_0x27a6ab);break;case 0x2:this[_0xb563b0(0x21d)](_0x27a6ab);break;}}[_0x3a57f9(0x2bd)](_0x17d083){const _0x5acccd=_0x3a57f9,{unitIDs:_0x531d42,memberID:_0x510f45,isForwarded:_0x211e3e}=_0x17d083;_0x531d42[_0x5acccd(0x1f5)](_0x27fc9a=>{const _0x322cc3=_0x5acccd;if(!_0x211e3e&&this[_0x322cc3(0x195)][_0x322cc3(0x223)](_0x27fc9a)&&this[_0x322cc3(0x257)](_0x27fc9a)[_0x322cc3(0x1c6)](_0x5d87c5[_0x322cc3(0x108)]),!this['_unitOnClients']['has'](_0x27fc9a)||!this[_0x322cc3(0x195)][_0x322cc3(0x147)](_0x27fc9a)[_0x322cc3(0x223)](_0x510f45)){const _0x15bfb9=this[_0x322cc3(0x195)][_0x322cc3(0x147)](_0x27fc9a)||new Set();_0x15bfb9[_0x322cc3(0x28a)](_0x510f45),this[_0x322cc3(0x195)][_0x322cc3(0x22d)](_0x27fc9a,_0x15bfb9),this['_scheduleClearOtherTimer'](_0x510f45);}}),_0x211e3e||this[_0x5acccd(0x1dc)]({'type':0x0,'memberID':this[_0x5acccd(0x24f)],'unitIDs':[...this[_0x5acccd(0x26f)]],'isForwarded':!0x0});}[_0x3a57f9(0x14d)](_0x5bbac2){const _0x380959=_0x3a57f9;this[_0x380959(0x247)](_0x5bbac2);const _0x1b3794=window[_0x380959(0xd0)](()=>{const _0x46785c=_0x380959;this[_0x46785c(0x195)]['forEach'](_0x5ac438=>{const _0x549c5d=_0x46785c;_0x5ac438[_0x549c5d(0x286)](_0x5bbac2);});},nt*0x2);this[_0x380959(0x16a)][_0x380959(0x22d)](_0x5bbac2,_0x1b3794);}[_0x3a57f9(0x247)](_0x9b6c2c){const _0x47e1ad=_0x3a57f9;if(this[_0x47e1ad(0x16a)][_0x47e1ad(0x223)](_0x9b6c2c)){const _0x16cff6=this[_0x47e1ad(0x16a)]['get'](_0x9b6c2c);_0x16cff6&&window[_0x47e1ad(0x141)](_0x16cff6),this[_0x47e1ad(0x16a)][_0x47e1ad(0x22d)](_0x9b6c2c,null);}}[_0x3a57f9(0x127)](_0x1aec57){const _0x4b8916=_0x3a57f9,{memberID:_0x2ea451,unitIDs:_0x512660}=_0x1aec57;_0x512660['forEach'](_0x421b47=>{const _0x2da71d=_0x531b;var _0xb2f336;const _0x27ff19=this[_0x2da71d(0x195)]['get'](_0x421b47);_0x27ff19&&(_0x27ff19[_0x2da71d(0x286)](_0x2ea451),(_0xb2f336=this[_0x2da71d(0x257)](_0x421b47))==null||_0xb2f336[_0x2da71d(0x1c6)](_0x27ff19[_0x2da71d(0x22a)]===0x0?_0x5d87c5[_0x2da71d(0x176)]:_0x5d87c5[_0x2da71d(0x108)]));}),this[_0x4b8916(0x247)](_0x2ea451);}['_handleHeartbeatEvent'](_0x3ff9af){const _0x65ef66=_0x3a57f9;this[_0x65ef66(0x14d)](_0x3ff9af[_0x65ef66(0x1cd)]);}[_0x3a57f9(0x1dc)](_0x5dc08e){const _0x54b7a1=_0x3a57f9;localStorage[_0x54b7a1(0x26b)](rt,JSON[_0x54b7a1(0x1a4)](_0x5dc08e));}[_0x3a57f9(0x1f9)](){const _0x48097d=_0x3a57f9;this[_0x48097d(0x22e)]=window[_0x48097d(0x21c)](()=>{const _0x455e68=_0x48097d;this[_0x455e68(0x1dc)]({'type':0x2,'memberID':this[_0x455e68(0x24f)]});},nt);}[_0x3a57f9(0x257)](_0xa8d487){const _0xa198fb=_0x3a57f9;return this[_0xa198fb(0x101)][_0xa198fb(0x223)](_0xa8d487)||this['_unitStatus'][_0xa198fb(0x22d)](_0xa8d487,new _0x3985c9(_0x5d87c5[_0xa198fb(0x176)])),this['_unitStatus'][_0xa198fb(0x147)](_0xa8d487);}}var Lt=(_0x413b2f=>(_0x413b2f[_0x413b2f['UNDEFINED']=0x0]='UNDEFINED',_0x413b2f[_0x413b2f['OK']=0x1]='OK',_0x413b2f[_0x413b2f['INTERNAL_ERROR']=0x2]=_0x3a57f9(0x1ef),_0x413b2f[_0x413b2f[_0x3a57f9(0x1ed)]=0x3]=_0x3a57f9(0x1ed),_0x413b2f[_0x413b2f[_0x3a57f9(0x2ad)]=0x4]='NOT_FOUND',_0x413b2f[_0x413b2f[_0x3a57f9(0x19a)]=0x5]='UNAUTHENTICATED',_0x413b2f[_0x413b2f[_0x3a57f9(0x20e)]=0x6]=_0x3a57f9(0x20e),_0x413b2f[_0x413b2f['INVALID_ARGUMENT']=0x7]='INVALID_ARGUMENT',_0x413b2f[_0x413b2f['TOO_MANY_REQUESTS']=0x8]='TOO_MANY_REQUESTS',_0x413b2f[_0x413b2f[_0x3a57f9(0x1eb)]=0x9]=_0x3a57f9(0x1eb),_0x413b2f[_0x413b2f[_0x3a57f9(0xe8)]=0xa]=_0x3a57f9(0xe8),_0x413b2f[_0x413b2f[_0x3a57f9(0x200)]=0xb]=_0x3a57f9(0x200),_0x413b2f[_0x413b2f['MOBILE_VERIFY_CODE_NOT_FOUND_OR_EXPIRED']=0xc]=_0x3a57f9(0xd5),_0x413b2f[_0x413b2f[_0x3a57f9(0x216)]=0xd]=_0x3a57f9(0x216),_0x413b2f[_0x413b2f[_0x3a57f9(0x1b2)]=0xe]=_0x3a57f9(0x1b2),_0x413b2f[_0x413b2f[_0x3a57f9(0x20d)]=0x1389]=_0x3a57f9(0x20d),_0x413b2f[_0x413b2f[_0x3a57f9(0x12b)]=0x1771]=_0x3a57f9(0x12b),_0x413b2f[_0x413b2f[_0x3a57f9(0x27d)]=0x1772]='SNAPSHOT_HAS_BEEN_REMOVED',_0x413b2f[_0x413b2f[_0x3a57f9(0xe5)]=0x1773]=_0x3a57f9(0xe5),_0x413b2f[_0x413b2f[_0x3a57f9(0x2d1)]=0x1b59]=_0x3a57f9(0x2d1),_0x413b2f[_0x413b2f[_0x3a57f9(0x1d4)]=0x1b5a]=_0x3a57f9(0x1d4),_0x413b2f[_0x413b2f[_0x3a57f9(0x276)]=0x1b5b]=_0x3a57f9(0x276),_0x413b2f[_0x413b2f[_0x3a57f9(0xd3)]=0x1b5c]='APPLY_PERMISSION_DENIED',_0x413b2f[_0x413b2f[_0x3a57f9(0x2a4)]=0x1b5d]='APPLY_DUPLICATED',_0x413b2f[_0x413b2f[_0x3a57f9(0x290)]=0x1f41]=_0x3a57f9(0x290),_0x413b2f[_0x413b2f['LICENSE_MAX_UNITS_EXCEEDED']=0x2329]=_0x3a57f9(0x29d),_0x413b2f[_0x413b2f[_0x3a57f9(0x132)]=0x232a]=_0x3a57f9(0x132),_0x413b2f[_0x413b2f[_0x3a57f9(0x2a9)]=0x232b]=_0x3a57f9(0x2a9),_0x413b2f[_0x413b2f['LICENSE_EXPORT_SIZE_EXCEEDED']=0x232c]=_0x3a57f9(0x255),_0x413b2f[_0x413b2f[_0x3a57f9(0x292)]=0x232d]='LICENSE_DISTRO_REJECTED',_0x413b2f[_0x413b2f[_0x3a57f9(0xf2)]=0x2711]=_0x3a57f9(0xf2),_0x413b2f[_0x413b2f[_0x3a57f9(0x181)]=0x2712]=_0x3a57f9(0x181),_0x413b2f[_0x413b2f[_0x3a57f9(0xf5)]=0x2713]=_0x3a57f9(0xf5),_0x413b2f[_0x413b2f['YUUMI_SUBSCRIPTION_NOT_FOUND']=0x2714]='YUUMI_SUBSCRIPTION_NOT_FOUND',_0x413b2f[_0x413b2f['YUUMI_NO_CUBOID_FOR_QUESTION']=0x271a]='YUUMI_NO_CUBOID_FOR_QUESTION',_0x413b2f[_0x413b2f[_0x3a57f9(0x118)]=0x271b]=_0x3a57f9(0x118),_0x413b2f[_0x413b2f[_0x3a57f9(0x104)]=0x271c]=_0x3a57f9(0x104),_0x413b2f[_0x413b2f[_0x3a57f9(0x209)]=0x271d]=_0x3a57f9(0x209),_0x413b2f[_0x413b2f['YUUMI_PROMPT_MAX_TOKENS_EXCEEDED']=0x271e]=_0x3a57f9(0x1af),_0x413b2f[_0x413b2f[_0x3a57f9(0x1b4)]=0x271f]=_0x3a57f9(0x1b4),_0x413b2f[_0x413b2f[_0x3a57f9(0x2c3)]=0x2720]=_0x3a57f9(0x2c3),_0x413b2f[_0x413b2f[_0x3a57f9(0x190)]=0x2af9]=_0x3a57f9(0x190),_0x413b2f[_0x413b2f[_0x3a57f9(0x293)]=0x2ee1]=_0x3a57f9(0x293),_0x413b2f[_0x413b2f[_0x3a57f9(0x25e)]=0x2ee2]=_0x3a57f9(0x25e),_0x413b2f[_0x413b2f[_0x3a57f9(0x1ec)]=0x2ee3]=_0x3a57f9(0x1ec),_0x413b2f[_0x413b2f[_0x3a57f9(0x19d)]=0x2ee4]=_0x3a57f9(0x19d),_0x413b2f[_0x413b2f[_0x3a57f9(0x238)]=0x2ee5]=_0x3a57f9(0x238),_0x413b2f[_0x413b2f[_0x3a57f9(0x197)]=0x32c9]=_0x3a57f9(0x197),_0x413b2f[_0x413b2f[_0x3a57f9(0x11c)]=0x32ca]=_0x3a57f9(0x11c),_0x413b2f[_0x413b2f[_0x3a57f9(0x17c)]=0x32cb]=_0x3a57f9(0x17c),_0x413b2f[_0x413b2f[_0x3a57f9(0x2be)]=-0x1]=_0x3a57f9(0x2be),_0x413b2f))(Lt||{}),pn=Object['getOwnPropertyDescriptor'],Cn=(_0x196d49,_0xba9a7d,_0x1ce143,_0x1a5fd8)=>{for(var _0x27e615=_0x1a5fd8>0x1?void 0x0:_0x1a5fd8?pn(_0xba9a7d,_0x1ce143):_0xba9a7d,_0x5dd3a6=_0x196d49['length']-0x1,_0x33ebc5;_0x5dd3a6>=0x0;_0x5dd3a6--)(_0x33ebc5=_0x196d49[_0x5dd3a6])&&(_0x27e615=_0x33ebc5(_0x27e615)||_0x27e615);return _0x27e615;},Te=(_0x4f6640,_0x147c48)=>(_0x64410b,_0x272491)=>_0x147c48(_0x64410b,_0x272491,_0x4f6640);let ot=class extends _0x16ac65{constructor(_0x3520b1,_0x4175a0,_0x4affd7){const _0x328478=_0x3a57f9;super(),this[_0x328478(0x180)]=_0x3520b1,this[_0x328478(0x228)]=_0x4175a0,this[_0x328478(0x269)]=_0x4affd7;}async['runOnServer'](_0x1b3835,_0x56654c,_0x1ff484,..._0x18e1eb){const _0x357997=_0x3a57f9;var _0x396d7a,_0x51346d,_0x424c4b,_0x31c6cc;const _0x520362=this[_0x357997(0x180)][_0x357997(0x2b4)]();if(!_0x520362)throw new Error(_0x357997(0x236));const _0x6841dc=((_0x396d7a=this['_configService'][_0x357997(0x20c)](_0x2d7956))!=null?_0x396d7a:_0x1cd823)+'/'+_0x1b3835+'/run/'+_0x56654c,_0x2834f7=new URL(window['location']['href']),_0x13098e={'scriptId':_0x1b3835,'runId':(_0x51346d=_0x2834f7['searchParams'][_0x357997(0x147)](_0x357997(0x21f)))!=null?_0x51346d:'','function':_0x56654c,'unitId':_0x520362[_0x357997(0x1bd)](),'argsOfFunction':JSON[_0x357997(0x1a4)](_0x18e1eb),'invokeId':(_0x424c4b=_0x1ff484['invokeId'])!=null?_0x424c4b:'','executionId':(_0x31c6cc=_0x1ff484['executionId'])!=null?_0x31c6cc:''};try{const _0x24af6d=await this[_0x357997(0x228)][_0x357997(0x109)](_0x6841dc,{'body':_0x13098e});return _0x24af6d['body'][_0x357997(0x134)]&&_0x24af6d[_0x357997(0x111)][_0x357997(0x134)][_0x357997(0x16f)]!==Lt['OK']?_0x357997(0x23d):_0x24af6d[_0x357997(0x111)]['result'];}catch{return'Failed';}}};ot=Cn([Te(0x0,_0x1be569),Te(0x1,_0x3296bc(_0x1cd424)),Te(0x2,_0x2f1f09)],ot);export{it as BrowserCollaborationSocketService,ne as CollaborationDataLoaderController,se as DesktopCollaborationStatusDisplayController,Mt as IURLService,ot as RemoteUniscriptService,wi as SheetCollabCursorShape,ye as UniverCollaborationClientUIPlugin,Fn as WebBrowserSingleActiveUnitService,hn as WebURLService};
1
+ const _0x1d41aa=_0x3072;(function(_0x23e105,_0x178996){const _0x28090b=_0x3072,_0x27d648=_0x23e105();while(!![]){try{const _0x59726b=-parseInt(_0x28090b(0x1da))/0x1+parseInt(_0x28090b(0x2c0))/0x2*(-parseInt(_0x28090b(0x33a))/0x3)+-parseInt(_0x28090b(0x22f))/0x4+-parseInt(_0x28090b(0x30d))/0x5+parseInt(_0x28090b(0x227))/0x6*(parseInt(_0x28090b(0x306))/0x7)+parseInt(_0x28090b(0x241))/0x8+parseInt(_0x28090b(0x2e4))/0x9*(parseInt(_0x28090b(0x33f))/0xa);if(_0x59726b===_0x178996)break;else _0x27d648['push'](_0x27d648['shift']());}catch(_0xaf3f11){_0x27d648['push'](_0x27d648['shift']());}}}(_0x2222,0xca97c));var xt=Object[_0x1d41aa(0x2b8)],Bt=(_0x3677fc,_0x2b75d8,_0x135568)=>_0x2b75d8 in _0x3677fc?xt(_0x3677fc,_0x2b75d8,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x135568}):_0x3677fc[_0x2b75d8]=_0x135568,_=(_0x1ae5ba,_0x145309,_0x266994)=>Bt(_0x1ae5ba,typeof _0x145309!=_0x1d41aa(0x1e2)?_0x145309+'':_0x145309,_0x266994);import{MemberService as _0x3cb3a0,SessionStatus as _0x1b4602,CollaborationSessionService as _0x1c2fc3,CollaborationStatus as _0x301b01,CollaborationController as _0x56d127,ILocalCacheService as _0x1255fd,CollaborationUIEventService as _0x34d2ea,CollaborationUIEventId as _0x1e0a6d,DataLoaderService as _0xd33af7,DocCollaborationEntity as _0x28706d,getLocalCacheKey as _0x2d56e6,LOCAL_CACHE_INTERVAL as _0x2f2d81,LOCAL_CACHE_INTERVAL_KEY as _0x5ae75a,UniverCollaborationClientPlugin as _0x484d9a,CollaborationSocketService as _0x305177,COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY as _0x2cd1d6,DEFAULT_WS_SESSION_TICKET_URL as _0x3fdae3,UnitStatus as _0x3edfe1,REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY as _0x47d86e,DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT as _0x5dcb76}from'@univerjs-pro/collaboration-client';import{RxDisposable as _0x85e892,Disposable as _0x2800ff,DOC_RANGE_TYPE as _0x27bd23,Inject as _0xcce005,Injector as _0x5c6f4f,IUniverInstanceService as _0x3c49dc,ICommandService as _0x268a57,debounce as _0xd88edf,Rectangle as _0x1957ac,DisposableCollection as _0x14c60b,toDisposable as _0x4e6890,UniverInstanceType as _0x357bfd,generateRandomId as _0x575d2b,COLORS as _0x212370,ColorKit as _0x1c1677,ThemeService as _0x4aa273,fromEventSubject as _0x2de1b0,LocaleService as _0x269fd9,createIdentifier as _0x41b18f,ILogService as _0x41e6cd,Optional as _0xab635a,Workbook as _0x38bdf9,Tools as _0x59fb77,CommandType as _0x1c6be8,IConfigService as _0x3022cf,ILocalStorageService as _0x42b910,DependentOn as _0x3ac0fb,Plugin as _0x3780de,merge as _0x523698,registerDependencies as _0x5c8a6a,mergeOverrideWithDependencies as _0x28a7e9,touchDependencies as _0x2857b7}from'@univerjs/core';import{Shape as _0x55a175,Rect as _0x402196,getColor as _0x16e0cb,RegularPolygon as _0x299553,TRANSFORM_CHANGE_OBSERVABLE_TYPE as _0x407e04,Vector2 as _0x4c714f,SHEET_VIEWPORT_KEY as _0x9746ba,IRenderManagerService as _0x49b12e}from'@univerjs/engine-render';import{ISocketService as _0x1794d9,WebSocketService as _0x493e8a,HTTPService as _0x2febdf}from'@univerjs/network';import{IDocClipboardService as _0x53d506,NodePositionConvertToCursor as _0x149adc,NodePositionConvertToRectRange as _0x572eb2,TEXT_RANGE_LAYER_INDEX as _0x437769,SetDocZoomRatioOperation as _0x331b82,DocIMEInputManagerService as _0x1f4fd3,DocStateChangeManagerService as _0x2b5696}from'@univerjs/docs-ui';import{IImageIoService as _0x101e9a}from'@univerjs/drawing';import{BehaviorSubject as _0x5a2de1,debounceTime as _0x18fe8d,takeUntil as _0xe2ba41,Subject as _0x1c165a,filter as _0x3d4807,switchMap as _0x61b8f7,merge as _0x501ea0,combineLatest as _0x1d7e6d,of as _0x554421,fromEvent as _0x21efab,shareReplay as _0x49522a,mapTo as _0x2771cf,distinctUntilChanged as _0x5c2efb}from'rxjs';import{ITransformService as _0x4ae50f,CollaborationEvent as _0x3c097d,isTransformMutationFailure as _0x30fa04,isTransformMutationsWithChangesetSuccess as _0x2c9078,RevisionService as _0x491b5d,ISnapshotServerService as _0x203215}from'@univerjs-pro/collaboration';import{SetTextSelectionsOperation as _0xa1f887,RichTextEditingMutation as _0x36e94a,DocSelectionManagerService as _0x27e88a,DocSkeletonManagerService as _0x1948fb}from'@univerjs/docs';import{deserializeRangeWithSheet as _0x330145,serializeRangeWithSheet as _0x15c99d}from'@univerjs/engine-formula';import{RefRangeService as _0x2ded4c,SetSelectionsOperation as _0x56a892,SheetsSelectionsService as _0x43c1b1,EffectRefRangId as _0x4b2a02,handleIRemoveRow as _0x5dd125,handleIRemoveCol as _0x2bf895,handleMoveRange as _0x20e0f0,handleInsertRow as _0xf640b4,handleInsertRangeMoveRight as _0x323e2d,handleInsertRangeMoveDown as _0x1f2ca4,handleInsertCol as _0x19ee34,handleDeleteRangeMoveUp as _0x2100d8,handleDeleteRangeMoveLeft as _0x12f3f8,runRefRangeMutations as _0x47d67b,SetWorksheetActivateCommand as _0x158419}from'@univerjs/sheets';import{map as _0x7c1c2c,filter as _0x5ce252,throttleTime as _0x3d96f3,takeUntil as _0x27174a,switchMap as _0x3ea857}from'rxjs/operators';import{SheetSkeletonManagerService as _0x380795,getCoordByCell as _0x1ffdb5,getSheetObject as _0x2629ad}from'@univerjs/sheets-ui';import{jsx as _0x56ab7c,jsxs as _0x5d53a3}from'react/jsx-runtime';import{useObservable as _0x4b86c6,useDependency as _0xd3ad5,IUIPartsService as _0x303682,BuiltInUIPart as _0x5eb0d7,connectInjector as _0x549c57,IBeforeCloseService as _0xa8c410,IMessageService as _0x41c5c4,INotificationService as _0x2555d3}from'@univerjs/ui';import{Tooltip as _0x11b0bf,clsx as _0x484ea5,MessageType as _0x445c63}from'@univerjs/design';import{forwardRef as _0x568c11,useRef as _0x38af19,createElement as _0x225279,useCallback as _0x198673}from'react';import{IRemoteInstanceService as _0x3c7901}from'@univerjs/rpc';var ci=Object[_0x1d41aa(0x248)],li=(_0x3ed819,_0x502998,_0x3c482d,_0x2f7d7f)=>{const _0x274396=_0x1d41aa;for(var _0x18e5de=_0x2f7d7f>0x1?void 0x0:_0x2f7d7f?ci(_0x502998,_0x3c482d):_0x502998,_0x5a945a=_0x3ed819[_0x274396(0x25c)]-0x1,_0x19c107;_0x5a945a>=0x0;_0x5a945a--)(_0x19c107=_0x3ed819[_0x5a945a])&&(_0x18e5de=_0x19c107(_0x18e5de)||_0x18e5de);return _0x18e5de;},Je=(_0x2b641f,_0x1194b8)=>(_0x4a5aab,_0x475f5b)=>_0x1194b8(_0x4a5aab,_0x475f5b,_0x2b641f);let Ne=class extends _0x85e892{constructor(_0x55d09a,_0x24c677){const _0x2fe574=_0x1d41aa;super(),this[_0x2fe574(0x3a5)]=_0x55d09a,this[_0x2fe574(0x23c)]=_0x24c677,this[_0x2fe574(0x2a7)]();}[_0x1d41aa(0x2a7)](){const _0xba29a3=_0x1d41aa,_0x21d074=this;this[_0xba29a3(0x34b)](this[_0xba29a3(0x3a5)][_0xba29a3(0x2d0)]({'onBeforePasteImage':async _0x16e30d=>{const _0x13ef05=_0xba29a3,_0x5e6d02=await _0x21d074[_0x13ef05(0x23c)][_0x13ef05(0x314)](_0x16e30d);return _0x5e6d02?{'source':_0x5e6d02[_0x13ef05(0x273)],'imageSourceType':_0x5e6d02[_0x13ef05(0x36c)]}:null;}}));}};Ne=li([Je(0x0,_0x53d506),Je(0x1,_0x101e9a)],Ne);const Ze=[_0x1d41aa(0x2db),_0x1d41aa(0x289),_0x1d41aa(0x1de),'red.300','blue.400','yellow.400'];class ke extends _0x2800ff{constructor(){const _0x114722=_0x1d41aa;super(...arguments),_(this,_0x114722(0x234),new Map()),_(this,'_colorIndex',0x0);}['assignAColorForMemberID'](_0x2458ed){const _0x382ae1=_0x1d41aa;if(this[_0x382ae1(0x234)]['has'](_0x2458ed))return this[_0x382ae1(0x234)][_0x382ae1(0x217)](_0x2458ed);const _0x26eacb=Ze[this[_0x382ae1(0x2e0)]];return this[_0x382ae1(0x2e0)]=(this[_0x382ae1(0x2e0)]+0x1)%Ze[_0x382ae1(0x25c)],this[_0x382ae1(0x234)][_0x382ae1(0x36a)](_0x2458ed,_0x26eacb),_0x26eacb;}}function Rt(_0x6a3881){let _0x445753='';for(const _0x3aa88b of _0x6a3881){const {startOffset:_0x332876,endOffset:_0x217053,isActive:_0x462f86,rangeType:_0x268829,segmentId:_0x10b9ec,segmentPage:_0x490cf5}=_0x3aa88b;_0x445753['length']&&(_0x445753+=','),_0x445753+=_0x332876+':'+_0x217053+':'+(_0x462f86?'1':'0')+':'+_0x268829+':'+_0x10b9ec+':'+_0x490cf5;}return _0x445753;}function _i(_0x4f9c0d){const _0x41072c=_0x1d41aa,_0x5c39b4=_0x4f9c0d[_0x41072c(0x1d7)](','),_0xd6bce1=[];for(const _0x83c195 of _0x5c39b4){const [_0x23ddbc,_0x195a12,_0x3d807f,_0x552844,_0x497b6f,_0x151611]=_0x83c195[_0x41072c(0x1d7)](':');_0xd6bce1[_0x41072c(0x37f)]({'startOffset':Number(_0x23ddbc),'endOffset':Number(_0x195a12),'collapsed':_0x23ddbc===_0x195a12,'isActive':_0x3d807f==='1','rangeType':_0x552844===_0x27bd23[_0x41072c(0x3a2)]?_0x27bd23[_0x41072c(0x3a2)]:_0x27bd23['RECT'],'segmentId':typeof _0x497b6f=='string'?String(_0x497b6f):'','segmentPage':Number(_0x151611!=null?_0x151611:-0x1)});}return _0xd6bce1[_0x41072c(0x28e)](_0x1dcb48=>_0x1dcb48[_0x41072c(0x2e9)])||(_0xd6bce1[0x0][_0x41072c(0x2e9)]=!0x0),_0xd6bce1;}class He extends _0x85e892{constructor(){const _0xc9890f=_0x1d41aa;super(...arguments),_(this,_0xc9890f(0x29a),new _0x5a2de1(null)),_(this,_0xc9890f(0x280),this['_collabCursorState$'][_0xc9890f(0x1ed)]());}[_0x1d41aa(0x343)](_0x54d05a){const {unitID:_0x2c21af,memberID:_0x3b9365,textRanges:_0x193c1a}=_0x54d05a,_0x8de9c4=Rt(_0x193c1a);if(_0x8de9c4==='')return;const _0x577fc8={'unitID':_0x2c21af,'memberID':_0x3b9365,'selection':_0x8de9c4};this['_collabCursorState$']['next'](_0x577fc8);}}var hi=Object['getOwnPropertyDescriptor'],ui=(_0xd6b34f,_0x27226b,_0x255cc2,_0x29f7b3)=>{for(var _0x45139d=_0x29f7b3>0x1?void 0x0:_0x29f7b3?hi(_0x27226b,_0x255cc2):_0x27226b,_0x2833bc=_0xd6b34f['length']-0x1,_0x3b71ee;_0x2833bc>=0x0;_0x2833bc--)(_0x3b71ee=_0xd6b34f[_0x2833bc])&&(_0x45139d=_0x3b71ee(_0x45139d)||_0x45139d);return _0x45139d;},P=(_0x25fa10,_0x457800)=>(_0x4fe10a,_0x346f33)=>_0x457800(_0x4fe10a,_0x346f33,_0x25fa10);const di=0x12c,fi=0x64;let Ue=class extends _0x85e892{constructor(_0x599eb3,_0x543edb,_0x5b1840,_0x575b0b,_0x5c57f7,_0x356b93,_0xf7ecc4,_0x47b01c,_0x3d829a){const _0x4069c0=_0x1d41aa;super(),_(this,_0x4069c0(0x304),!0x1),_(this,'_init',!0x1),_(this,_0x4069c0(0x342),new _0x5a2de1(new Map())),_(this,'cursorInfo$',this[_0x4069c0(0x342)][_0x4069c0(0x1ed)]()),_(this,_0x4069c0(0x38d),new _0x5a2de1([])),_(this,_0x4069c0(0x2f0),this[_0x4069c0(0x38d)][_0x4069c0(0x27b)](_0x18fe8d(di))),_(this,_0x4069c0(0x2b4),_0xd88edf(_0x67c601=>{const _0x6e9367=_0x4069c0,_0x220c9f={'eventID':_0x3c097d['UPDATE_CURSOR'],'data':{'unitID':this['unitID'],'memberID':this['_session']['getMemberID'](),'selection':Rt(_0x67c601)}};this['_session'][_0x6e9367(0x2be)](_0x220c9f,this['unitID']);},fi)),(this[_0x4069c0(0x249)]=_0x599eb3,this['_session']=_0x543edb,this[_0x4069c0(0x34f)]=_0x5b1840,this[_0x4069c0(0x348)]=_0x575b0b,this[_0x4069c0(0x270)]=_0x5c57f7,this['_syncEditingCollabCursorService']=_0x356b93,this[_0x4069c0(0x27f)]=_0xf7ecc4,this[_0x4069c0(0x2a5)]=_0x47b01c,this[_0x4069c0(0x354)]=_0x3d829a);}get['cursorInfo'](){return this['_cursorInfo$']['getValue']();}get[_0x1d41aa(0x2da)](){const _0x18cab1=_0x1d41aa;return this[_0x18cab1(0x38d)]['getValue']();}[_0x1d41aa(0x27e)](){const _0x2000f=_0x1d41aa;super[_0x2000f(0x27e)](),this[_0x2000f(0x342)][_0x2000f(0x3a3)](new Map()),this['_cursorInfo$'][_0x2000f(0x2ca)](),this[_0x2000f(0x38d)][_0x2000f(0x3a3)]([]),this['_roomMembers$']['complete']();}[_0x1d41aa(0x288)](){const _0x23dcbf=_0x1d41aa;this[_0x23dcbf(0x2a7)]||(this['_init']=!0x0,this[_0x23dcbf(0x1df)][_0x23dcbf(0x2c9)][_0x23dcbf(0x27b)](_0xe2ba41(this[_0x23dcbf(0x1ab)]))['subscribe'](_0x3231ea=>{const _0x18fcd0=_0x23dcbf;_0x3231ea===_0x1b4602[_0x18fcd0(0x236)]?this[_0x18fcd0(0x28f)]():this[_0x18fcd0(0x1c5)]();}),this['_session']['event$'][_0x23dcbf(0x27b)](_0xe2ba41(this[_0x23dcbf(0x1ab)]))[_0x23dcbf(0x266)](_0x57de00=>{const _0x223a40=_0x23dcbf,_0x128be8=_0x57de00[_0x223a40(0x382)];_0x128be8===_0x3c097d[_0x223a40(0x27c)]&&this[_0x223a40(0x397)](_0x57de00),_0x128be8===_0x3c097d['USERS_LEAVE']&&this[_0x223a40(0x32a)](_0x57de00);}),this['disposeWithMe'](this[_0x23dcbf(0x354)][_0x23dcbf(0x31a)](_0x4730bb=>{const _0x39f347=_0x23dcbf,_0x4f2dbd=_0x4730bb[_0x39f347(0x2f9)];_0x4f2dbd!=null&&this[_0x39f347(0x304)]&&_0x4730bb['id']===_0xa1f887['id']&&_0x4f2dbd[_0x39f347(0x1a9)]===this['unitID']&&_0x4f2dbd[_0x39f347(0x2b5)]===!0x1&&_0x4f2dbd[_0x39f347(0x34a)][_0x39f347(0x25c)]>0x0&&this[_0x39f347(0x2b4)](_0x4f2dbd[_0x39f347(0x34a)]);})),this[_0x23dcbf(0x33b)][_0x23dcbf(0x280)][_0x23dcbf(0x27b)](_0xe2ba41(this['dispose$']))['subscribe'](_0x504b88=>{const _0xf13983=_0x23dcbf;if((_0x504b88==null?void 0x0:_0x504b88[_0xf13983(0x249)])!==this[_0xf13983(0x249)])return;const _0xe166bb={'eventID':_0x3c097d[_0xf13983(0x27c)],'data':_0x504b88};this[_0xf13983(0x397)](_0xe166bb);}),this['disposeWithMe'](this[_0x23dcbf(0x354)][_0x23dcbf(0x31a)](_0x462dda=>{const _0x5dc913=_0x23dcbf;if(_0x462dda[_0x5dc913(0x2f9)]==null)return;const _0x1df0db=_0x462dda[_0x5dc913(0x2f9)];if(_0x462dda['id']!==_0x36e94a['id']||_0x1df0db[_0x5dc913(0x1a9)]!==this[_0x5dc913(0x249)])return;const _0x47a3c4={'id':'doc.mutation.rich-text-editing','params':_0x1df0db},_0x2e0948=this['cursorInfo'];for(const [_0x5ad74c,_0x5b44fe]of _0x2e0948){const _0x1ca4eb={'id':_0x5dc913(0x328),'params':{'unitId':this[_0x5dc913(0x249)],'actions':null,'textRanges':_0x5b44fe['ranges']}},_0x3a6f91=this['_transformService'][_0x5dc913(0x28b)](_0x47a3c4,_0x1ca4eb,!0x1);if(_0x30fa04(_0x3a6f91))throw _0x3a6f91[_0x5dc913(0x318)];_0x2e0948[_0x5dc913(0x36a)](_0x5ad74c,{..._0x5b44fe,'ranges':_0x3a6f91[_0x5dc913(0x39f)]['params'][_0x5dc913(0x263)]});}queueMicrotask(()=>{const _0xfa1def=_0x5dc913;this[_0xfa1def(0x342)][_0xfa1def(0x3a3)](_0x2e0948);});})));}['_onCursorUpdate'](_0x5f390d){const _0x2aa2cf=_0x1d41aa;var _0x50f94b,_0x45697a;const {memberID:_0x5450a6,selection:_0x4af5fc}=_0x5f390d[_0x2aa2cf(0x355)],_0x487abd=_i(_0x4af5fc),_0x130488=(_0x45697a=(_0x50f94b=this[_0x2aa2cf(0x270)]['getMember'](this[_0x2aa2cf(0x249)],_0x5450a6))==null?void 0x0:_0x50f94b[_0x2aa2cf(0x35e)])!=null?_0x45697a:_0x2aa2cf(0x219),_0x4f206e={'color':this['_colorAssignService'][_0x2aa2cf(0x307)](_0x5450a6),'name':_0x130488,'ranges':_0x487abd},_0x4f4054=this[_0x2aa2cf(0x2bf)];_0x4f4054[_0x2aa2cf(0x36a)](_0x5450a6,_0x4f206e),this[_0x2aa2cf(0x342)][_0x2aa2cf(0x3a3)](_0x4f4054);}[_0x1d41aa(0x32a)](_0x23427d){const _0x3b003d=_0x1d41aa,{memberID:_0x31544d}=_0x23427d[_0x3b003d(0x355)],_0x57b668=this['cursorInfo'];_0x57b668[_0x3b003d(0x375)](_0x31544d),this[_0x3b003d(0x342)][_0x3b003d(0x3a3)](_0x57b668);}[_0x1d41aa(0x28f)](){const _0x270930=_0x1d41aa;var _0x2cedf2;if(this[_0x270930(0x304)]=!0x0,((_0x2cedf2=this[_0x270930(0x2a5)][_0x270930(0x21c)]())==null?void 0x0:_0x2cedf2[_0x270930(0x25f)]())!==this[_0x270930(0x249)])return;const _0x79be31=this[_0x270930(0x34f)][_0x270930(0x217)](_0x27e88a)['getDocRanges']();Array[_0x270930(0x1ba)](_0x79be31)&&_0x79be31[_0x270930(0x25c)]>0x0&&this[_0x270930(0x2b4)](_0x79be31);}[_0x1d41aa(0x1c5)](){this['_online']=!0x1;}};Ue=ui([P(0x2,_0xcce005(_0x5c6f4f)),P(0x3,_0xcce005(ke)),P(0x4,_0xcce005(_0x3cb3a0)),P(0x5,_0xcce005(He)),P(0x6,_0x4ae50f),P(0x7,_0x3c49dc),P(0x8,_0x268a57)],Ue);var Si=Object[_0x1d41aa(0x248)],mi=(_0x278be1,_0x15a378,_0x2c2465,_0x2b3281)=>{const _0x5344d9=_0x1d41aa;for(var _0x808a75=_0x2b3281>0x1?void 0x0:_0x2b3281?Si(_0x15a378,_0x2c2465):_0x15a378,_0x48dff5=_0x278be1[_0x5344d9(0x25c)]-0x1,_0x4c1a08;_0x48dff5>=0x0;_0x48dff5--)(_0x4c1a08=_0x278be1[_0x48dff5])&&(_0x808a75=_0x4c1a08(_0x808a75)||_0x808a75);return _0x808a75;},x=(_0x4bac71,_0x15152d)=>(_0x53a589,_0x37db32)=>_0x15152d(_0x53a589,_0x37db32,_0x4bac71);const Ii=0x12c,vi=0x64,gi=()=>{let _0x4b25e5=[],_0x276944=!0x1;return _0x2de8cb=>{const _0x56dfa3=_0x3072;_0x4b25e5[_0x56dfa3(0x37f)](_0x2de8cb),_0x276944||(_0x276944=!0x0,setTimeout(()=>{const _0x41c84a=_0x56dfa3;_0x4b25e5[_0x41c84a(0x384)](_0x3616b6=>_0x3616b6()),_0x4b25e5=[],_0x276944=!0x1;}));};};let Me=class extends _0x85e892{constructor(_0x398c01,_0x16872a,_0x24749a,_0x38dd2e,_0x34b7e9,_0x27a435,_0x45eecd,_0x3fc99e){const _0x1d5f89=_0x1d41aa;super(),_(this,_0x1d5f89(0x304),!0x1),_(this,_0x1d5f89(0x2a7),!0x1),_(this,_0x1d5f89(0x342),new _0x5a2de1(new Map())),_(this,_0x1d5f89(0x204),this[_0x1d5f89(0x342)]['asObservable']()),_(this,_0x1d5f89(0x38d),new _0x5a2de1([])),_(this,_0x1d5f89(0x2f0),this['_roomMembers$'][_0x1d5f89(0x27b)](_0x18fe8d(Ii))),_(this,_0x1d5f89(0x2b4),_0xd88edf((_0x411048,_0xde71e0)=>{const _0x193955=_0x1d5f89,_0x50252a={'eventID':_0x3c097d[_0x193955(0x27c)],'data':{'unitID':this[_0x193955(0x249)],'memberID':this['_session'][_0x193955(0x2d1)](),'selection':_0x15c99d(_0x411048,_0xde71e0[_0x193955(0x298)])}};this['_session'][_0x193955(0x2be)](_0x50252a,this[_0x193955(0x249)]);},vi)),(this['unitID']=_0x398c01,this[_0x1d5f89(0x1df)]=_0x16872a,this['_injector']=_0x24749a,this[_0x1d5f89(0x348)]=_0x38dd2e,this['_memberService']=_0x34b7e9,this[_0x1d5f89(0x2a5)]=_0x27a435,this[_0x1d5f89(0x354)]=_0x45eecd,this[_0x1d5f89(0x2c6)]=_0x3fc99e);}get[_0x1d41aa(0x2bf)](){const _0x383a21=_0x1d41aa;return this['_cursorInfo$'][_0x383a21(0x327)]();}get['roomMembers'](){const _0x179c73=_0x1d41aa;return this[_0x179c73(0x38d)][_0x179c73(0x327)]();}[_0x1d41aa(0x27e)](){const _0x1d8de9=_0x1d41aa;super[_0x1d8de9(0x27e)](),this[_0x1d8de9(0x342)]['next'](new Map()),this[_0x1d8de9(0x342)]['complete'](),this[_0x1d8de9(0x38d)][_0x1d8de9(0x3a3)]([]),this['_roomMembers$'][_0x1d8de9(0x2ca)]();}[_0x1d41aa(0x288)](){const _0x5426e1=_0x1d41aa;this[_0x5426e1(0x2a7)]||(this['_init']=!0x0,this[_0x5426e1(0x1df)][_0x5426e1(0x2c9)]['pipe'](_0xe2ba41(this[_0x5426e1(0x1ab)]))[_0x5426e1(0x266)](_0x3c50a5=>{const _0x316304=_0x5426e1;_0x3c50a5===_0x1b4602['ONLINE']?this[_0x316304(0x28f)]():this[_0x316304(0x1c5)]();}),this[_0x5426e1(0x1df)][_0x5426e1(0x259)][_0x5426e1(0x27b)](_0xe2ba41(this[_0x5426e1(0x1ab)]))[_0x5426e1(0x266)](_0xfcb629=>{const _0x4b33b4=_0x5426e1,_0x3ad519=_0xfcb629[_0x4b33b4(0x382)];_0x3ad519===_0x3c097d['UPDATE_CURSOR']&&this[_0x4b33b4(0x397)](_0xfcb629),_0x3ad519===_0x3c097d[_0x4b33b4(0x32c)]&&this[_0x4b33b4(0x32a)](_0xfcb629);}),this[_0x5426e1(0x360)](),this[_0x5426e1(0x34b)](this[_0x5426e1(0x354)][_0x5426e1(0x31a)](_0x3f2479=>{const _0x5ec9e3=_0x5426e1;if(this['_online']&&_0x3f2479['id']===_0x56a892['id']&&_0x3f2479[_0x5ec9e3(0x2f9)][_0x5ec9e3(0x1a9)]===this[_0x5ec9e3(0x249)]){const _0x2b40f6=_0x3f2479['params'];this['_updateLocalCursor'](_0x2b40f6[_0x5ec9e3(0x370)],_0x2b40f6[_0x5ec9e3(0x366)][0x0]);}})));}[_0x1d41aa(0x397)](_0xee87dc){const _0x484e0a=_0x1d41aa;var _0x5d10bc,_0x2c273c;const {memberID:_0x1d655e,selection:_0x2fe20c}=_0xee87dc[_0x484e0a(0x355)],{sheetName:_0x56a53b,range:_0x349af8}=_0x330145(_0x2fe20c),_0x279c69={'name':(_0x2c273c=(_0x5d10bc=this['_memberService'][_0x484e0a(0x22d)](this['unitID'],_0x1d655e))==null?void 0x0:_0x5d10bc[_0x484e0a(0x35e)])!=null?_0x2c273c:_0x484e0a(0x219),'range':this['_getMergeRange'](_0x56a53b,_0x349af8),'sheetID':_0x56a53b,'color':this[_0x484e0a(0x348)][_0x484e0a(0x307)](_0x1d655e),'selection':_0x2fe20c},_0x13b8d8=this[_0x484e0a(0x2bf)];_0x13b8d8[_0x484e0a(0x36a)](_0x1d655e,_0x279c69),this[_0x484e0a(0x342)][_0x484e0a(0x3a3)](_0x13b8d8);}[_0x1d41aa(0x32a)](_0x33343f){const _0x2f420b=_0x1d41aa,{memberID:_0x637518}=_0x33343f[_0x2f420b(0x355)],_0x2cff47=this[_0x2f420b(0x2bf)];_0x2cff47[_0x2f420b(0x375)](_0x637518),this[_0x2f420b(0x342)][_0x2f420b(0x3a3)](_0x2cff47);}[_0x1d41aa(0x345)](_0x33f153,_0x269fc0){const _0x561adb=_0x1d41aa;var _0x18dc39,_0x3d2729;const _0x395347=(_0x3d2729=(_0x18dc39=this['_univerInstanceService'][_0x561adb(0x371)](this[_0x561adb(0x249)]))==null?void 0x0:_0x18dc39[_0x561adb(0x293)](_0x33f153))==null?void 0x0:_0x3d2729[_0x561adb(0x38e)]();return(_0x395347==null?void 0x0:_0x395347[_0x561adb(0x2ae)](_0x3eb4c1=>_0x1957ac['contains'](_0x3eb4c1,_0x269fc0)))||_0x269fc0;}[_0x1d41aa(0x360)](){const _0x427f80=_0x1d41aa,_0x6183f2=new _0x14c60b(),_0x2dd26b=gi(),_0x2263c0=()=>{const _0x4e33d9=_0x3072;_0x6183f2[_0x4e33d9(0x27e)]();const _0xb6799f=(_0x46b47d,_0x1aa2e1,_0xed922,_0x578b63)=>{const _0x5e1aab=_0x4e33d9;let _0x30d038=[];switch(_0x46b47d['id']){case _0x4b2a02['DeleteRangeMoveLeftCommandId']:{_0x30d038=_0x12f3f8(_0x46b47d,_0x578b63);break;}case _0x4b2a02[_0x5e1aab(0x2cb)]:{_0x30d038=_0x2100d8(_0x46b47d,_0x578b63);break;}case _0x4b2a02['InsertColCommandId']:{_0x30d038=_0x19ee34(_0x46b47d,_0x578b63);break;}case _0x4b2a02[_0x5e1aab(0x1f9)]:{_0x30d038=_0x1f2ca4(_0x46b47d,_0x578b63);break;}case _0x4b2a02['InsertRangeMoveRightCommandId']:{_0x30d038=_0x323e2d(_0x46b47d,_0x578b63);break;}case _0x4b2a02[_0x5e1aab(0x20e)]:{_0x30d038=_0xf640b4(_0x46b47d,_0x578b63);break;}case _0x4b2a02['MoveRangeCommandId']:{_0x30d038=_0x20e0f0(_0x46b47d,_0x578b63);break;}case _0x4b2a02[_0x5e1aab(0x21e)]:{_0x30d038=_0x2bf895(_0x46b47d,_0x578b63);break;}case _0x4b2a02['RemoveRowCommandId']:{_0x30d038=_0x5dd125(_0x46b47d,_0x578b63);break;}}const _0x5853db=_0x47d67b(_0x30d038,_0x578b63),_0x473212=this[_0x5e1aab(0x2bf)][_0x5e1aab(0x217)](_0x1aa2e1);if(_0x473212&&_0x5853db){const _0xdcba62={..._0x473212,'range':_0x5853db};this['cursorInfo'][_0x5e1aab(0x36a)](_0x1aa2e1,_0xdcba62),_0x2dd26b(()=>{const _0xc9f270=_0x5e1aab,_0x54cc93=this['_refRangeService']['registerRefRange'](_0x5853db,_0x5ab8bb=>(_0x54cc93['dispose'](),_0xb6799f(_0x5ab8bb,_0x1aa2e1,_0xed922,_0x5853db)));_0x6183f2[_0xc9f270(0x1e9)](_0x54cc93);});}return{'redos':[],'undos':[]};};this[_0x4e33d9(0x2bf)]['forEach']((_0xc3cbdd,_0x42b312)=>{const _0x16b4d8=_0x4e33d9,{range:_0x221644,sheetID:_0x184e8f}=_0xc3cbdd,_0x2d9ed2=this[_0x16b4d8(0x2c6)][_0x16b4d8(0x26f)](_0x221644,_0x57e35e=>(_0x2d9ed2['dispose'](),_0xb6799f(_0x57e35e,_0x42b312,_0x184e8f,_0x221644)));_0x6183f2[_0x16b4d8(0x1e9)](_0x2d9ed2);});};this[_0x427f80(0x34b)](_0x4e6890(this[_0x427f80(0x342)][_0x427f80(0x266)](()=>{_0x2263c0();})));}[_0x1d41aa(0x28f)](){const _0x4929f6=_0x1d41aa;var _0x464cca,_0x289ba5;if(this[_0x4929f6(0x304)]=!0x0,((_0x464cca=this['_univerInstanceService'][_0x4929f6(0x21c)]())==null?void 0x0:_0x464cca[_0x4929f6(0x25f)]())!==this['unitID'])return;const _0x3ea501=(_0x289ba5=this['_injector']['get'](_0x43c1b1)[_0x4929f6(0x35c)]())==null?void 0x0:_0x289ba5[0x0],_0x1330ca=this[_0x4929f6(0x2a5)][_0x4929f6(0x391)](_0x357bfd[_0x4929f6(0x2b1)])['getActiveSheet']();_0x3ea501&&_0x1330ca&&this[_0x4929f6(0x2b4)](_0x1330ca[_0x4929f6(0x1d9)](),_0x3ea501);}[_0x1d41aa(0x1c5)](){const _0x54ebac=_0x1d41aa;this[_0x54ebac(0x304)]=!0x1;}};Me=mi([x(0x2,_0xcce005(_0x5c6f4f)),x(0x3,_0xcce005(ke)),x(0x4,_0xcce005(_0x3cb3a0)),x(0x5,_0x3c49dc),x(0x6,_0x268a57),x(0x7,_0xcce005(_0x2ded4c))],Me);var pi=Object[_0x1d41aa(0x248)],Ci=(_0x2fd5fe,_0x32c093,_0x517bf5,_0x20a716)=>{const _0x107174=_0x1d41aa;for(var _0x42ff2b=_0x20a716>0x1?void 0x0:_0x20a716?pi(_0x32c093,_0x517bf5):_0x32c093,_0x5aa23b=_0x2fd5fe[_0x107174(0x25c)]-0x1,_0x28bae7;_0x5aa23b>=0x0;_0x5aa23b--)(_0x28bae7=_0x2fd5fe[_0x5aa23b])&&(_0x42ff2b=_0x28bae7(_0x42ff2b)||_0x42ff2b);return _0x42ff2b;},me=(_0x441f7b,_0x510068)=>(_0x2dd372,_0x289a2c)=>_0x510068(_0x2dd372,_0x289a2c,_0x441f7b);let F=class extends _0x85e892{constructor(_0x2f5d69,_0x2b29dd,_0x31bb99){const _0x44645e=_0x1d41aa;super(),_(this,'_entities',new Map()),_(this,_0x44645e(0x26b),new _0x1c165a()),(this[_0x44645e(0x2a5)]=_0x2f5d69,this[_0x44645e(0x34f)]=_0x2b29dd,this[_0x44645e(0x32b)]=_0x31bb99,this[_0x44645e(0x2a7)]());}[_0x1d41aa(0x27e)](){const _0xeef10d=_0x1d41aa;super['dispose'](),this[_0xeef10d(0x26b)][_0xeef10d(0x2ca)](),this[_0xeef10d(0x3a6)]['forEach'](_0x45aae4=>_0x45aae4['dispose']());}[_0x1d41aa(0x377)](_0x21b9bf){const _0x2edfcd=_0x1d41aa;return this[_0x2edfcd(0x3a6)][_0x2edfcd(0x1d4)](_0x21b9bf)?this[_0x2edfcd(0x3a6)][_0x2edfcd(0x217)](_0x21b9bf)[_0x2edfcd(0x204)]:this['_entityInit$']['pipe'](_0x3d4807(_0x31abd2=>_0x31abd2[_0x2edfcd(0x249)]===_0x21b9bf),_0x61b8f7(_0x5c1445=>_0x5c1445[_0x2edfcd(0x204)]));}[_0x1d41aa(0x2a7)](){const _0x53a4e7=_0x1d41aa;this[_0x53a4e7(0x2a5)]['getTypeOfUnitAdded$'](_0x357bfd['UNIVER_SHEET'])['pipe'](_0xe2ba41(this[_0x53a4e7(0x1ab)]))[_0x53a4e7(0x266)](async _0x3cac22=>{const _0xe8b91a=_0x53a4e7,_0x1c9486=_0x3cac22['getUnitId'](),_0x4b0e55=await this['_startSheetCollabCursor'](_0x1c9486);this[_0xe8b91a(0x26b)]['next'](_0x4b0e55),this['_entities'][_0xe8b91a(0x36a)](_0x1c9486,_0x4b0e55);}),this['_univerInstanceService'][_0x53a4e7(0x21d)](_0x357bfd['UNIVER_DOC'])[_0x53a4e7(0x27b)](_0xe2ba41(this[_0x53a4e7(0x1ab)]))[_0x53a4e7(0x27b)](_0x3d4807(_0x2de028=>!_0x2de028[_0x53a4e7(0x25f)]()['startsWith']('__')))[_0x53a4e7(0x266)](async _0x58df30=>{const _0x508fc0=_0x53a4e7,_0x5f4987=_0x58df30[_0x508fc0(0x25f)](),_0x1418f2=await this[_0x508fc0(0x28a)](_0x5f4987);this[_0x508fc0(0x26b)]['next'](_0x1418f2),this[_0x508fc0(0x3a6)]['set'](_0x5f4987,_0x1418f2);}),_0x501ea0(this[_0x53a4e7(0x2a5)][_0x53a4e7(0x29d)](_0x357bfd[_0x53a4e7(0x277)]),this[_0x53a4e7(0x2a5)]['getTypeOfUnitDisposed$'](_0x357bfd[_0x53a4e7(0x2b1)]))[_0x53a4e7(0x27b)](_0xe2ba41(this['dispose$']))[_0x53a4e7(0x266)](_0x47cf17=>{const _0x370cc6=_0x53a4e7,_0x5ef130=_0x47cf17[_0x370cc6(0x25f)](),_0x19d122=this[_0x370cc6(0x3a6)]['get'](_0x5ef130);_0x19d122&&(_0x19d122[_0x370cc6(0x27e)](),this['_entities'][_0x370cc6(0x375)](_0x5ef130));});}async[_0x1d41aa(0x2f8)](_0x37aa8a){const _0xed64ed=_0x1d41aa,_0x17c6f4=await this[_0xed64ed(0x32b)][_0xed64ed(0x2a1)](_0x37aa8a),_0x533015=this[_0xed64ed(0x34f)][_0xed64ed(0x32f)](Me,_0x37aa8a,_0x17c6f4);return _0x533015[_0xed64ed(0x288)](),_0x533015;}async[_0x1d41aa(0x28a)](_0x44b579){const _0x6b22b9=_0x1d41aa,_0x56b4b9=await this[_0x6b22b9(0x32b)][_0x6b22b9(0x2a1)](_0x44b579),_0x25f662=this['_injector']['createInstance'](Ue,_0x44b579,_0x56b4b9);return _0x25f662['init'](),_0x25f662;}};F=Ci([me(0x0,_0x3c49dc),me(0x1,_0xcce005(_0x5c6f4f)),me(0x2,_0xcce005(_0x1c2fc3))],F);const J=0x14,Qe=0xc8,Ie=0x4,Ei=0x5;function Oi(_0x5d4fac,_0x19f36d){const _0x1f5f41=_0x1d41aa;let {radius:_0x609e68,width:_0x17120a,height:_0x1010fb}=_0x19f36d;_0x609e68=_0x609e68!=null?_0x609e68:0x0,_0x17120a=_0x17120a!=null?_0x17120a:0x1e,_0x1010fb=_0x1010fb!=null?_0x1010fb:0x1e;let _0x42e1dc=0x0,_0x1d562a=0x0,_0x163db0=0x0;_0x42e1dc=_0x1d562a=_0x163db0=Math[_0x1f5f41(0x2e8)](_0x609e68,_0x17120a/0x2,_0x1010fb/0x2),_0x5d4fac[_0x1f5f41(0x341)](),_0x5d4fac[_0x1f5f41(0x1f8)](_0x42e1dc,0x0),_0x5d4fac[_0x1f5f41(0x1c9)](_0x17120a-_0x1d562a,0x0),_0x5d4fac[_0x1f5f41(0x26c)](_0x17120a-_0x1d562a,_0x1d562a,_0x1d562a,Math['PI']*0x3/0x2,0x0,!0x1),_0x5d4fac[_0x1f5f41(0x1c9)](_0x17120a,_0x1010fb-_0x163db0),_0x5d4fac[_0x1f5f41(0x26c)](_0x17120a-_0x163db0,_0x1010fb-_0x163db0,_0x163db0,0x0,Math['PI']/0x2,!0x1),_0x5d4fac[_0x1f5f41(0x1c9)](0x0,_0x1010fb),_0x5d4fac[_0x1f5f41(0x1c9)](0x0,_0x42e1dc),_0x5d4fac[_0x1f5f41(0x26c)](_0x42e1dc,_0x42e1dc,_0x42e1dc,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x5d4fac[_0x1f5f41(0x211)](),_0x19f36d['fill']&&(_0x5d4fac[_0x1f5f41(0x24d)](),_0x5d4fac[_0x1f5f41(0x31e)]=_0x19f36d[_0x1f5f41(0x2d5)],_0x19f36d['fillRule']===_0x1f5f41(0x24c)?_0x5d4fac[_0x1f5f41(0x2d5)]('evenodd'):_0x5d4fac[_0x1f5f41(0x2d5)](),_0x5d4fac['restore']());}class ue extends _0x55a175{constructor(_0xffcebe,_0x560573){const _0xb86e8a=_0x1d41aa;super(_0xffcebe,_0x560573),_(this,'color'),_(this,'text'),(this[_0xb86e8a(0x1e0)]=_0x560573==null?void 0x0:_0x560573[_0xb86e8a(0x1e0)],this['text']=_0x560573==null?void 0x0:_0x560573['text']);}static[_0x1d41aa(0x24e)](_0x54ff7f,_0x313427){const _0x105b38=_0x1d41aa,{text:_0x29915a,color:_0xc3b207}=_0x313427;_0x54ff7f['save'](),_0x54ff7f[_0x105b38(0x1c2)]='bold\x2013px\x20Source\x20Han\x20Sans\x20CN';const _0x3a1b15=_0x54ff7f[_0x105b38(0x30e)](_0x29915a)[_0x105b38(0x39a)],_0x30b817=Math[_0x105b38(0x2e8)](_0x3a1b15+0x2*Ie,Qe);Oi(_0x54ff7f,{'height':J,'radius':0x4,'width':_0x30b817,'fill':_0xc3b207}),_0x54ff7f[_0x105b38(0x31e)]=_0x105b38(0x334);const _0x425d6b=Ie,_0x4d5fa6=J-Ei,_0x2a0aa0=Qe-0x2*Ie;if(_0x3a1b15>_0x2a0aa0){let _0x4b1968='',_0x40fcc6=0x0;for(const _0x3a7cf0 of _0x29915a){const _0x4b9943=_0x54ff7f[_0x105b38(0x30e)](_0x3a7cf0)[_0x105b38(0x39a)];if(_0x40fcc6+_0x4b9943<=_0x2a0aa0-_0x54ff7f[_0x105b38(0x30e)](_0x105b38(0x237))[_0x105b38(0x39a)])_0x4b1968+=_0x3a7cf0,_0x40fcc6+=_0x4b9943;else{_0x4b1968+='...';break;}}_0x54ff7f['fillText'](_0x4b1968,_0x425d6b,_0x4d5fa6);}else _0x54ff7f[_0x105b38(0x2a4)](_0x29915a,_0x425d6b,_0x4d5fa6);_0x54ff7f[_0x105b38(0x2aa)]();}[_0x1d41aa(0x378)](_0x32cfd1){const _0x15b6c5=_0x1d41aa;ue[_0x15b6c5(0x24e)](_0x32cfd1,this);}}const ve=_0x1d41aa(0x24b),bi='collab-text-range-',Ti=_0x1d41aa(0x292),G=0x6,Ri=1.5,ge=0x4,Di=1.5,Ni=_0x1d41aa(0x2ad);class qe{constructor(_0x26679b,_0x45111e,_0x5af4fe,_0xf18fca){const _0x5aa4a1=_0x1d41aa;_(this,_0x5aa4a1(0x2e6),[]),_(this,_0x5aa4a1(0x325),null),_(this,_0x5aa4a1(0x1c1),null),_(this,'_anchorDot',null),_(this,_0x5aa4a1(0x336),null),_(this,_0x5aa4a1(0x2c8),null),(this['_cursor']=_0x26679b,this[_0x5aa4a1(0x2ef)]=_0x45111e,this[_0x5aa4a1(0x2eb)]=_0x5af4fe,this[_0x5aa4a1(0x1c3)]=_0xf18fca,this['_render']());}set['_hover'](_0xdbac3b){const _0x249e20=_0x1d41aa;_0xdbac3b?(this[_0x249e20(0x230)]&&this[_0x249e20(0x230)][_0x249e20(0x367)](),this['_textBubble']&&this['_textBubble'][_0x249e20(0x1be)]()):(this[_0x249e20(0x230)]&&this[_0x249e20(0x230)]['show'](),this[_0x249e20(0x1c1)]&&this[_0x249e20(0x1c1)][_0x249e20(0x367)]());}['dispose'](){const _0x4c7104=_0x1d41aa;for(const _0x54b1e9 of this[_0x4c7104(0x2e6)])_0x54b1e9[_0x4c7104(0x27e)]();this[_0x4c7104(0x1c1)]&&this[_0x4c7104(0x1c1)]['dispose'](),this[_0x4c7104(0x230)]&&this[_0x4c7104(0x230)]['dispose'](),this[_0x4c7104(0x325)]&&this[_0x4c7104(0x325)][_0x4c7104(0x27e)](),this[_0x4c7104(0x2c8)]&&this[_0x4c7104(0x2c8)]();}['_render'](){const _0x1cd5e0=_0x1d41aa;var _0x104b81;const {_docSkeleton:_0x374c47,_document:_0x2356ba}=this,{color:_0x9ca4a8,name:_0x824043,ranges:_0x383991}=this[_0x1cd5e0(0x294)],_0x19a941=_0x2356ba[_0x1cd5e0(0x1fe)](),{docsLeft:_0x1d87b8,docsTop:_0x474900}=_0x19a941,_0x1e18cd=new _0x149adc(_0x19a941,_0x374c47);for(const {startOffset:_0x7fe0ad,endOffset:_0x2e1ecd,rangeType:_0x2a9cf6,segmentId:_0x2ae871,segmentPage:_0x372704,collapsed:_0x1d7c04,isActive:_0x45c28b}of _0x383991){const _0x312652=_0x374c47['findNodePositionByCharIndex'](_0x7fe0ad,!0x0,_0x2ae871,_0x372704);let _0x1b6baf=_0x374c47[_0x1cd5e0(0x20a)](_0x2e1ecd,!0x0,_0x2ae871,_0x372704);if(_0x1b6baf==null&&(_0x1b6baf=_0x374c47[_0x1cd5e0(0x20a)](_0x2e1ecd-0x1,!0x1,_0x2ae871,_0x372704)),_0x45c28b){const {contentBoxPointGroup:_0x44215d}=_0x1e18cd[_0x1cd5e0(0x1f1)](_0x1b6baf,_0x1b6baf);if(_0x44215d[_0x1cd5e0(0x25c)]===0x0)continue;this[_0x1cd5e0(0x2b9)](_0x9ca4a8,_0x44215d,_0x1d87b8,_0x474900,_0x824043),this[_0x1cd5e0(0x2c8)]=this[_0x1cd5e0(0x269)]();}if(_0x312652&&_0x1b6baf){if(_0x2a9cf6===_0x27bd23['RECT']){const _0x10bddc=new _0x572eb2(_0x19a941,_0x374c47),{pointGroup:_0x16b046}=(_0x104b81=_0x10bddc[_0x1cd5e0(0x1f1)](_0x312652,_0x1b6baf))!=null?_0x104b81:{};if(_0x16b046==null||_0x16b046[_0x1cd5e0(0x25c)]===0x0)continue;this[_0x1cd5e0(0x2a0)](_0x9ca4a8,_0x16b046,_0x1d87b8,_0x474900);}else{if(!_0x1d7c04){const {borderBoxPointGroup:_0x3a641f}=_0x1e18cd[_0x1cd5e0(0x1f1)](_0x312652,_0x1b6baf);if(_0x3a641f[_0x1cd5e0(0x25c)]===0x0)continue;this[_0x1cd5e0(0x224)](_0x9ca4a8,_0x3a641f,_0x1d87b8,_0x474900);}}}}}[_0x1d41aa(0x2b9)](_0x462450,_0x2fd580,_0x5c0564,_0x2e91ce,_0x1eecc8){const _0x4ff942=_0x1d41aa,_0x311e17=this[_0x4ff942(0x388)](_0x2fd580),{left:_0x35f108,top:_0x44b918,height:_0x44d0c8}=_0x311e17,_0xb0f83d=this[_0x4ff942(0x1fb)](),_0x72528c=Di/_0xb0f83d,_0x5ba214=new _0x402196(ve+_0x575d2b(G),{'left':_0x35f108+_0x5c0564-_0x72528c,'top':_0x44b918+_0x2e91ce,'height':_0x44d0c8,'width':Ri,'fill':_0x462450||_0x16e0cb(_0x212370['black'],0x0),'strokeWidth':_0x72528c,'stroke':Ni,'evented':!0x0});this[_0x4ff942(0x325)]=_0x5ba214,this['_scene'][_0x4ff942(0x25a)](_0x5ba214,_0x437769);const _0x3afa62=new _0x402196(ve+_0x575d2b(G),{'left':_0x35f108+_0x5c0564-_0x72528c,'top':_0x44b918+_0x2e91ce-ge/0x2,'height':ge,'width':ge,'fill':_0x462450||_0x16e0cb(_0x212370[_0x4ff942(0x244)],0x0),'strokeWidth':0x0,'stroke':_0x462450||_0x16e0cb(_0x212370[_0x4ff942(0x244)],0x0),'evented':!0x1});this['_anchorDot']=_0x3afa62,this[_0x4ff942(0x2ef)][_0x4ff942(0x25a)](_0x3afa62,_0x437769);const _0x317807=new ue(ve+_0x575d2b(G),{'left':_0x35f108+_0x5c0564-_0x72528c,'top':_0x44b918+_0x2e91ce-J,'text':_0x1eecc8,'color':_0x462450});this['_textBubble']=_0x317807,this[_0x4ff942(0x2ef)][_0x4ff942(0x25a)](_0x317807,_0x437769),this['_hover']=!0x1;}[_0x1d41aa(0x269)](){const _0x31aece=_0x1d41aa,_0x17f52a=this['_anchor'][_0x31aece(0x257)]['subscribeEvent'](()=>{const _0x24ad0d=_0x31aece;this[_0x24ad0d(0x353)]=!0x0;}),_0x5c37a0=this['_anchor'][_0x31aece(0x2dc)]['subscribeEvent'](()=>{const _0x522b5e=_0x31aece;this['_hideTimer']&&clearTimeout(this[_0x522b5e(0x336)]),this[_0x522b5e(0x336)]=setTimeout(()=>{const _0x65233a=_0x522b5e;this[_0x65233a(0x353)]=!0x1;},0x7d0);});return()=>{const _0x105dfe=_0x31aece;_0x17f52a['unsubscribe'](),_0x5c37a0[_0x105dfe(0x347)]();};}['_drawTextRange'](_0x1c982f,_0x1474f8,_0x23d459,_0x4214b7){const _0x47c94c=_0x1d41aa,_0x1af91f=new _0x1c1677(_0x1c982f)['setAlpha'](0.2)[_0x47c94c(0x286)](),_0x1cb153=new _0x299553(bi+_0x575d2b(G),{'pointsGroup':_0x1474f8,'fill':_0x1af91f||_0x16e0cb(_0x212370['black'],0.2),'left':_0x23d459,'top':_0x4214b7,'evented':!0x1,'debounceParentDirty':!0x1});this['_shapes'][_0x47c94c(0x37f)](_0x1cb153),this[_0x47c94c(0x2ef)][_0x47c94c(0x25a)](_0x1cb153,_0x437769);}[_0x1d41aa(0x2a0)](_0x5b396c,_0x329227,_0x4a14ac,_0x12b44a){const _0x1bf290=_0x1d41aa,_0x1dac99=new _0x1c1677(_0x5b396c)[_0x1bf290(0x37e)](0.2)[_0x1bf290(0x286)](),_0x4ddeb1=new _0x299553(Ti+_0x575d2b(G),{'pointsGroup':_0x329227,'fill':_0x1dac99||_0x16e0cb(_0x212370[_0x1bf290(0x244)],0.2),'left':_0x4a14ac,'top':_0x12b44a,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x1bf290(0x2e6)][_0x1bf290(0x37f)](_0x4ddeb1),this['_scene'][_0x1bf290(0x25a)](_0x4ddeb1,_0x437769);}[_0x1d41aa(0x388)](_0x56ab95){const _0x140875=_0x56ab95[0x0],_0x2e1198=_0x140875[0x0],_0x1002cf=_0x140875[0x2],{x:_0x17a86c,y:_0x3c4c62}=_0x2e1198,{x:_0x303c0a,y:_0x4abca0}=_0x1002cf;return{'left':_0x17a86c,'top':_0x3c4c62,'width':_0x303c0a-_0x17a86c,'height':_0x4abca0-_0x3c4c62};}[_0x1d41aa(0x1fb)](){const _0x338ab0=_0x1d41aa,{scaleX:_0x454571,scaleY:_0x2d1260}=this[_0x338ab0(0x2ef)]['getAncestorScale']();return Math[_0x338ab0(0x319)](_0x454571,_0x2d1260);}}var Ui=Object[_0x1d41aa(0x248)],Mi=(_0x1ddfdc,_0x3e6a07,_0x196602,_0x7efb82)=>{const _0x201d22=_0x1d41aa;for(var _0x3e32e4=_0x7efb82>0x1?void 0x0:_0x7efb82?Ui(_0x3e6a07,_0x196602):_0x3e6a07,_0x28e31e=_0x1ddfdc[_0x201d22(0x25c)]-0x1,_0x56dcf5;_0x28e31e>=0x0;_0x28e31e--)(_0x56dcf5=_0x1ddfdc[_0x28e31e])&&(_0x3e32e4=_0x56dcf5(_0x3e32e4)||_0x3e32e4);return _0x3e32e4;},q=(_0x3901b9,_0x1887ab)=>(_0x1b1e67,_0x17d2fa)=>_0x1887ab(_0x1b1e67,_0x17d2fa,_0x3901b9);let Le=class extends _0x85e892{constructor(_0x41645e,_0x17c9ad,_0x56e4db,_0x113ae7,_0x1ec601){const _0x42573f=_0x1d41aa;super(),_(this,_0x42573f(0x1b0),[]),_(this,_0x42573f(0x321),[]),(this['_context']=_0x41645e,this[_0x42573f(0x3a4)]=_0x17c9ad,this[_0x42573f(0x33c)]=_0x56e4db,this[_0x42573f(0x354)]=_0x113ae7,this[_0x42573f(0x265)]=_0x1ec601,this[_0x42573f(0x2a7)]());}[_0x1d41aa(0x2a7)](){const _0xafed3f=_0x1d41aa,_0x4e9920=this['_context'][_0xafed3f(0x1a9)],_0x27f375=this[_0xafed3f(0x3a4)];this[_0xafed3f(0x34b)](_0x1d7e6d([this[_0xafed3f(0x33c)][_0xafed3f(0x377)](_0x4e9920),this[_0xafed3f(0x265)][_0xafed3f(0x23b)]])[_0xafed3f(0x27b)](_0x7c1c2c(([_0x571f71,_0x3bb055])=>({'skeleton':_0x27f375['getSkeleton'](),'cursors':[..._0x571f71[_0xafed3f(0x2f4)]()][_0xafed3f(0x2a8)](_0x1e1621=>({..._0x1e1621,'color':this['_themeService'][_0xafed3f(0x356)](_0x1e1621[_0xafed3f(0x1e0)])}))})))[_0xafed3f(0x266)](_0x396568=>{const _0x8b5c87=_0xafed3f;if(this['_removeCollabCursors'](),_0x396568){const {skeleton:_0x4f78ce,cursors:_0x3877bd}=_0x396568;this[_0x8b5c87(0x2d7)](_0x4f78ce,_0x3877bd);}})),this[_0xafed3f(0x1d6)](),this[_0xafed3f(0x32d)]();}['_updateCollabCursors'](_0x3462f3,_0x38e78b){const _0x481c77=_0x1d41aa,{scene:_0x2aed7f,mainComponent:_0x18029e}=this['_context'],_0x2593a1=_0x38e78b[_0x481c77(0x38b)](_0xdc9147=>new qe(_0xdc9147,_0x2aed7f,_0x3462f3,_0x18029e));this[_0x481c77(0x1b0)]=_0x2593a1,this[_0x481c77(0x321)]=_0x38e78b;}[_0x1d41aa(0x2fe)](){const _0x148a25=_0x1d41aa;this['_removeCollabCursors']();const {scene:_0x48ea48,mainComponent:_0x2fcf50}=this[_0x148a25(0x23a)],_0xdbb620=this[_0x148a25(0x3a4)][_0x148a25(0x1a4)](),_0x101a3c=this[_0x148a25(0x321)][_0x148a25(0x38b)](_0xe20957=>new qe(_0xe20957,_0x48ea48,_0xdbb620,_0x2fcf50));this['_cursorShapes']=_0x101a3c;}[_0x1d41aa(0x2a3)](){const _0x24852d=_0x1d41aa;this[_0x24852d(0x1b0)]['forEach'](_0xe2d8b2=>_0xe2d8b2[_0x24852d(0x27e)]()),this['_cursorShapes']=[];}['_initCommandExecutedListener'](){const _0x143166=_0x1d41aa,_0x2c4939=[_0x331b82['id']];this[_0x143166(0x34b)](this[_0x143166(0x354)]['onCommandExecuted'](_0x238c5d=>{const _0x98488b=_0x143166;_0x2c4939['includes'](_0x238c5d['id'])&&_0x238c5d[_0x98488b(0x2f9)]['unitId']===this[_0x98488b(0x23a)][_0x98488b(0x1a9)]&&this[_0x98488b(0x2fe)]();}));}[_0x1d41aa(0x1d6)](){const _0x101ba0=_0x1d41aa;this[_0x101ba0(0x34b)](_0x2de1b0(this[_0x101ba0(0x23a)][_0x101ba0(0x30c)][_0x101ba0(0x205)])[_0x101ba0(0x27b)](_0x5ce252(_0x3bc462=>_0x3bc462[_0x101ba0(0x1ff)]===_0x407e04['resize']),_0x3d96f3(0x10))[_0x101ba0(0x266)](()=>{const _0x3c15a1=_0x101ba0;this[_0x3c15a1(0x2fe)]();}));}};Le=Mi([q(0x1,_0xcce005(_0x1948fb)),q(0x2,_0xcce005(F)),q(0x3,_0x268a57),q(0x4,_0xcce005(_0x4aa273))],Le);const Li=0x1,Pi=1.5;class wi extends _0x55a175{constructor(_0x555d12,_0x334410){const _0xdb2fc6=_0x1d41aa;super(_0x555d12,_0x334410),_(this,'_color'),_(this,_0xdb2fc6(0x251),!0x1),_(this,_0xdb2fc6(0x2dd)),_(this,_0xdb2fc6(0x1db),''),_(this,_0xdb2fc6(0x36b),_0xdb2fc6(0x29f)),_(this,_0xdb2fc6(0x1b2)),(_0x334410&&this[_0xdb2fc6(0x313)](_0x334410),this[_0xdb2fc6(0x257)][_0xdb2fc6(0x2a2)](()=>this[_0xdb2fc6(0x313)]({'hovered':!0x0})),this[_0xdb2fc6(0x2dc)][_0xdb2fc6(0x2a2)](()=>this[_0xdb2fc6(0x313)]({'hovered':!0x1})));}[_0x1d41aa(0x313)](_0x30f191){const _0x26bf9f=_0x1d41aa;var _0x1d3a96,_0x43cf70,_0x1b2b68,_0x38ba38,_0x226d59,_0x871f91;this[_0x26bf9f(0x28c)]=(_0x1d3a96=_0x30f191[_0x26bf9f(0x1e0)])!=null?_0x1d3a96:this[_0x26bf9f(0x28c)],this[_0x26bf9f(0x251)]=(_0x43cf70=_0x30f191[_0x26bf9f(0x202)])!=null?_0x43cf70:this['_hovered'],this[_0x26bf9f(0x2dd)]=(_0x1b2b68=_0x30f191[_0x26bf9f(0x298)])!=null?_0x1b2b68:this[_0x26bf9f(0x2dd)],this['_name']=(_0x38ba38=_0x30f191[_0x26bf9f(0x35e)])!=null?_0x38ba38:this[_0x26bf9f(0x1db)],this[_0x26bf9f(0x36b)]=(_0x226d59=_0x30f191['labelPosition'])!=null?_0x226d59:this[_0x26bf9f(0x36b)],this[_0x26bf9f(0x1b2)]=(_0x871f91=_0x30f191[_0x26bf9f(0x242)])!=null?_0x871f91:this[_0x26bf9f(0x1b2)],this[_0x26bf9f(0x1ad)]({'width':_0x30f191[_0x26bf9f(0x39a)],'height':_0x30f191[_0x26bf9f(0x2d3)]});}[_0x1d41aa(0x233)](_0x53821a){const _0x1de0cd=_0x1d41aa,{row:_0x2df736,column:_0x1c5d16}=_0x53821a;if(_0x2df736>=this['_range'][_0x1de0cd(0x1f3)]&&_0x2df736<=this[_0x1de0cd(0x2dd)]['endRow']&&_0x1c5d16>=this[_0x1de0cd(0x2dd)]['startColumn']&&_0x1c5d16<=this[_0x1de0cd(0x2dd)]['endColumn']){this[_0x1de0cd(0x313)]({'hovered':!0x0});return;}this[_0x1de0cd(0x313)]({'hovered':!0x1});}[_0x1d41aa(0x2ee)](_0x4f581d){return!0x1;}[_0x1d41aa(0x378)](_0x3ecbfc){const _0x3b0515=_0x1d41aa;_0x402196[_0x3b0515(0x24e)](_0x3ecbfc,{'width':this['width'],'height':this['height'],'strokeWidth':Pi,'stroke':this[_0x3b0515(0x28c)],'evented':!0x1,'fill':this['_backgroundColor']}),this[_0x3b0515(0x251)]&&(_0x3ecbfc[_0x3b0515(0x24d)](),_0x3ecbfc[_0x3b0515(0x35b)](0x1,0x0,0x0,0x1,this[_0x3b0515(0x39a)],this[_0x3b0515(0x36b)]===_0x3b0515(0x239)?0x0:-J),ue[_0x3b0515(0x24e)](_0x3ecbfc,{'text':this[_0x3b0515(0x1db)],'color':this['_color']}),_0x3ecbfc[_0x3b0515(0x2aa)]());}}var Ai=Object[_0x1d41aa(0x248)],yi=(_0x260388,_0x41a5a0,_0x410e63,_0x3d841a)=>{for(var _0x373be9=_0x3d841a>0x1?void 0x0:_0x3d841a?Ai(_0x41a5a0,_0x410e63):_0x41a5a0,_0x2ac570=_0x260388['length']-0x1,_0x5dc64a;_0x2ac570>=0x0;_0x2ac570--)(_0x5dc64a=_0x260388[_0x2ac570])&&(_0x373be9=_0x5dc64a(_0x373be9)||_0x373be9);return _0x373be9;},pe=(_0x56d718,_0x324cb0)=>(_0x56a7b1,_0x1fa44d)=>_0x324cb0(_0x56a7b1,_0x1fa44d,_0x56d718);const $i=0x1389;let Pe=class extends _0x85e892{constructor(_0x4983a5,_0x2cf139,_0x5d5f74,_0x3b813d){const _0x18b9cf=_0x1d41aa;super(),_(this,_0x18b9cf(0x321),new Set()),_(this,'_lastPointer',null),(this['_context']=_0x4983a5,this[_0x18b9cf(0x324)]=_0x2cf139,this['_collabCursorController']=_0x5d5f74,this[_0x18b9cf(0x265)]=_0x3b813d,this[_0x18b9cf(0x2a7)]());}[_0x1d41aa(0x2a7)](){const _0x2a8d54=_0x1d41aa;this[_0x2a8d54(0x324)]['currentSkeleton$']['pipe'](_0x27174a(this[_0x2a8d54(0x1ab)]),_0x3ea857(_0x5d3750=>{const _0x122c91=_0x2a8d54;if(_0x5d3750){const _0x18c754=_0x5d3750['sheetId'];return _0x1d7e6d(this['_collabCursorController'][_0x122c91(0x377)](this[_0x122c91(0x23a)]['unitId']),this[_0x122c91(0x265)][_0x122c91(0x23b)])[_0x122c91(0x27b)](_0x7c1c2c(([_0x395b4c,_0x125245])=>{const _0x20ce91=_0x122c91,_0x5ad520=new Map();return _0x395b4c[_0x20ce91(0x384)]((_0x1d7fc8,_0x18adfd)=>{const _0x2f6f9a=_0x20ce91;if(_0x1d7fc8['sheetID']===_0x18c754){const _0x4c9ca1={..._0x1d7fc8};_0x4c9ca1[_0x2f6f9a(0x1e0)]=this[_0x2f6f9a(0x265)][_0x2f6f9a(0x356)](_0x1d7fc8[_0x2f6f9a(0x1e0)]),_0x5ad520[_0x2f6f9a(0x36a)](_0x18adfd,_0x4c9ca1);}}),{'skeleton':_0x5d3750,'cursors':_0x5ad520};}));}return _0x554421({'skeleton':null,'cursors':new Map()});}))[_0x2a8d54(0x266)](({skeleton:_0x37c720,cursors:_0x22d1a1})=>{const _0x4d17fd=_0x2a8d54;this[_0x4d17fd(0x2a3)](),_0x37c720&&this[_0x4d17fd(0x2d7)](_0x37c720,_0x22d1a1);}),this[_0x2a8d54(0x324)]['currentSkeleton$']['subscribe'](_0x35c735=>{const _0x39ff95=_0x2a8d54;if(_0x35c735==null)return;const {skeleton:_0x253246}=_0x35c735,{scene:_0x45e26f}=this[_0x39ff95(0x23a)];_0x45e26f[_0x39ff95(0x346)][_0x39ff95(0x2a2)](_0xd88edf(_0x294697=>{const _0x24b2f1=_0x39ff95;var _0x32323b,_0x451f55;const {offsetX:_0x1b1477,offsetY:_0x5812f8}=_0x294697,{x:_0xcfe86e,y:_0x5c454f}=_0x45e26f[_0x24b2f1(0x2df)](_0x4c714f['FromArray']([_0x1b1477,_0x5812f8])),{scaleX:_0x44b92f,scaleY:_0x254675}=_0x45e26f[_0x24b2f1(0x2f1)](),_0xd5cdd8=_0x45e26f[_0x24b2f1(0x210)](_0x9746ba[_0x24b2f1(0x255)]),_0x2e89c7=_0x45e26f[_0x24b2f1(0x220)](_0x4c714f[_0x24b2f1(0x34d)]([_0xcfe86e,_0x5c454f]),_0xd5cdd8),_0x3aea9c=_0x253246[_0x24b2f1(0x1f6)](_0x1b1477,_0x5812f8,_0x44b92f,_0x254675,_0x2e89c7);((_0x32323b=this[_0x24b2f1(0x303)])==null?void 0x0:_0x32323b[_0x24b2f1(0x315)])===_0x3aea9c[_0x24b2f1(0x315)]&&((_0x451f55=this[_0x24b2f1(0x303)])==null?void 0x0:_0x451f55[_0x24b2f1(0x1e7)])===_0x3aea9c[_0x24b2f1(0x1e7)]||this[_0x24b2f1(0x321)][_0x24b2f1(0x384)](_0x20402b=>{const _0x2b1c14=_0x24b2f1;_0x20402b[_0x2b1c14(0x233)](_0x3aea9c);});},0x64));});}['_updateCollabCursors'](_0x13dda4,_0x2ed68a){const _0x176a88=_0x1d41aa;var _0x129494;const _0x5f547b=(_0x129494=this[_0x176a88(0x324)][_0x176a88(0x1a3)]())==null?void 0x0:_0x129494[_0x176a88(0x1a5)];if(!_0x5f547b)return;const _0x170768=this[_0x176a88(0x2ab)]();if(!_0x170768)return;this[_0x176a88(0x321)][_0x176a88(0x384)](_0x24e79b=>{const _0x24cf9d=_0x176a88;_0x24e79b[_0x24cf9d(0x1d5)]();});const {scene:_0x26a83c}=_0x170768,_0x5a6d3a=xi(Array[_0x176a88(0x337)](_0x2ed68a[_0x176a88(0x2f4)]()))[_0x176a88(0x38b)](_0x101a4d=>{const _0x126ccb=_0x176a88,{color:_0x414477,range:_0x424c05,name:_0x379a07,selection:_0x1a5caf,sheetID:_0x43fed7}=_0x101a4d,{startColumn:_0x2ca7d0,startRow:_0x20372c,endColumn:_0x59b702,endRow:_0x2d826a}=_0x424c05,_0x367c07=_0x1ffdb5(_0x20372c,_0x2ca7d0,_0x26a83c,_0x5f547b),_0x396697=_0x1ffdb5(_0x2d826a,_0x59b702,_0x26a83c,_0x5f547b),{columnHeaderHeightAndMarginTop:_0x34f3f1}=_0x5f547b,{startX:_0xcb620c,startY:_0x49ee22}=_0x367c07,{endX:_0x3550e7,endY:_0x19b367}=_0x396697,_0x4b4722=_0x3550e7-_0xcb620c,_0x59a86a=_0x19b367-_0x49ee22,_0x334b3a={'labelPosition':_0x49ee22-_0x34f3f1>=J?_0x126ccb(0x29f):_0x126ccb(0x239),'sheetID':_0x43fed7,'range':_0x424c05,'color':_0x414477,'name':_0x379a07,'selection':_0x1a5caf,'left':_0xcb620c,'top':_0x49ee22,'width':_0x4b4722,'height':_0x59a86a,'evented':!0x1,'zIndex':$i};return new wi(_0x379a07,_0x334b3a);});_0x26a83c[_0x176a88(0x20f)](_0x5a6d3a,Li),this['_cursors']=new Set(_0x5a6d3a);}[_0x1d41aa(0x2a3)](){const _0x173cb8=_0x1d41aa;var _0x3ed16a;(_0x3ed16a=this['_cursors'])==null||_0x3ed16a[_0x173cb8(0x384)](_0x16a06e=>_0x16a06e[_0x173cb8(0x27e)]());}[_0x1d41aa(0x2ab)](){const _0x1751a8=_0x1d41aa;return _0x2629ad(this[_0x1751a8(0x23a)][_0x1751a8(0x311)],this['_context']);}};Pe=yi([pe(0x1,_0xcce005(_0x380795)),pe(0x2,_0xcce005(F)),pe(0x3,_0xcce005(_0x4aa273))],Pe);function xi(_0x13ef00){const _0x208300=_0x1d41aa,_0x5cc704=new Map();return _0x13ef00[_0x208300(0x384)](_0x28bb68=>{const _0x386f78=_0x208300;if(_0x5cc704['has'](_0x28bb68[_0x386f78(0x22c)])){const _0x48e342=_0x5cc704[_0x386f78(0x217)](_0x28bb68['selection']);_0x48e342[_0x386f78(0x35e)]+=',\x20'+_0x28bb68['name'];}else _0x5cc704[_0x386f78(0x36a)](_0x28bb68[_0x386f78(0x22c)],_0x28bb68);}),Array[_0x208300(0x337)](_0x5cc704[_0x208300(0x2f4)]());}var v=function(){const _0x3dde02=_0x1d41aa;return v=Object[_0x3dde02(0x31f)]||function(_0x303fd3){const _0x36c41b=_0x3dde02;for(var _0x1ab404,_0x2bc74a=0x1,_0x53415c=arguments[_0x36c41b(0x25c)];_0x2bc74a<_0x53415c;_0x2bc74a++){_0x1ab404=arguments[_0x2bc74a];for(var _0x5cfa17 in _0x1ab404)Object[_0x36c41b(0x385)][_0x36c41b(0x329)][_0x36c41b(0x379)](_0x1ab404,_0x5cfa17)&&(_0x303fd3[_0x5cfa17]=_0x1ab404[_0x5cfa17]);}return _0x303fd3;},v[_0x3dde02(0x39c)](this,arguments);},Bi=function(_0x51500d,_0x8415ba){const _0x43dc2b=_0x1d41aa;var _0x57fd2e={};for(var _0x9c0ff9 in _0x51500d)Object[_0x43dc2b(0x385)][_0x43dc2b(0x329)]['call'](_0x51500d,_0x9c0ff9)&&_0x8415ba[_0x43dc2b(0x1aa)](_0x9c0ff9)<0x0&&(_0x57fd2e[_0x9c0ff9]=_0x51500d[_0x9c0ff9]);if(_0x51500d!=null&&typeof Object['getOwnPropertySymbols']=='function'){for(var _0x3c2622=0x0,_0x9c0ff9=Object[_0x43dc2b(0x374)](_0x51500d);_0x3c2622<_0x9c0ff9['length'];_0x3c2622++)_0x8415ba[_0x43dc2b(0x1aa)](_0x9c0ff9[_0x3c2622])<0x0&&Object[_0x43dc2b(0x385)]['propertyIsEnumerable'][_0x43dc2b(0x379)](_0x51500d,_0x9c0ff9[_0x3c2622])&&(_0x57fd2e[_0x9c0ff9[_0x3c2622]]=_0x51500d[_0x9c0ff9[_0x3c2622]]);}return _0x57fd2e;},Fe=_0x568c11(function(_0xd5a21,_0x1f20d6){const _0x347ab4=_0x1d41aa;var _0x11ffe7=_0xd5a21['icon'],_0xe59045=_0xd5a21['id'],_0x5424ac=_0xd5a21[_0x347ab4(0x24f)],_0x1dd378=_0xd5a21[_0x347ab4(0x39e)],_0x321c9a=Bi(_0xd5a21,['icon','id',_0x347ab4(0x24f),'extend']),_0x3705ee=_0x347ab4(0x22a)[_0x347ab4(0x394)](_0xe59045,'\x20')[_0x347ab4(0x394)](_0x5424ac||'')[_0x347ab4(0x218)](),_0x4adb93=_0x38af19('_'['concat'](Fi()));return Dt(_0x11ffe7,''[_0x347ab4(0x394)](_0xe59045),{'defIds':_0x11ffe7[_0x347ab4(0x235)],'idSuffix':_0x4adb93[_0x347ab4(0x2ed)]},v({'ref':_0x1f20d6,'className':_0x3705ee},_0x321c9a),_0x1dd378);});function Dt(_0x16f12e,_0x412ddd,_0x126850,_0x291103,_0x5224cb){const _0x3076cb=_0x1d41aa;return _0x225279(_0x16f12e['tag'],v(v({'key':_0x412ddd},ki(_0x16f12e,_0x126850,_0x5224cb)),_0x291103),(Hi(_0x16f12e,_0x126850)[_0x3076cb(0x287)]||[])[_0x3076cb(0x38b)](function(_0xfdd62b,_0x354ba1){const _0x19f50b=_0x3076cb;return Dt(_0xfdd62b,''['concat'](_0x412ddd,'-')[_0x19f50b(0x394)](_0x16f12e[_0x19f50b(0x300)],'-')[_0x19f50b(0x394)](_0x354ba1),_0x126850,void 0x0,_0x5224cb);}));}function ki(_0x3ac80c,_0x28bc20,_0xd91dd){const _0x8b1780=_0x1d41aa;var _0x447d98=v({},_0x3ac80c['attrs']);_0xd91dd!=null&&_0xd91dd[_0x8b1780(0x389)]&&_0x447d98[_0x8b1780(0x2d5)]===_0x8b1780(0x389)&&(_0x447d98['fill']=_0xd91dd['colorChannel1']),_0x3ac80c[_0x8b1780(0x300)]==='mask'&&_0x447d98['id']&&(_0x447d98['id']=_0x447d98['id']+_0x28bc20[_0x8b1780(0x26a)]),Object['entries'](_0x447d98)[_0x8b1780(0x384)](function(_0x5838cb){const _0x3120ed=_0x8b1780;var _0x33656b=_0x5838cb[0x0],_0x25e429=_0x5838cb[0x1];_0x33656b===_0x3120ed(0x2ff)&&typeof _0x25e429==_0x3120ed(0x349)&&(_0x447d98[_0x33656b]=_0x25e429[_0x3120ed(0x282)](/url\(#(.*)\)/,'url(#$1'[_0x3120ed(0x394)](_0x28bc20[_0x3120ed(0x26a)],')')));});var _0x285794=_0x28bc20[_0x8b1780(0x235)];return!_0x285794||_0x285794[_0x8b1780(0x25c)]===0x0||(_0x3ac80c[_0x8b1780(0x300)]===_0x8b1780(0x2bc)&&_0x447d98[_0x8b1780(0x1d0)]&&(_0x447d98['xlink:href']=_0x447d98[_0x8b1780(0x1d0)]+_0x28bc20[_0x8b1780(0x26a)]),Object[_0x8b1780(0x390)](_0x447d98)[_0x8b1780(0x384)](function(_0x20cfc5){const _0x3b57f4=_0x8b1780;var _0x1da12a=_0x20cfc5[0x0],_0x89e729=_0x20cfc5[0x1];typeof _0x89e729==_0x3b57f4(0x349)&&(_0x447d98[_0x1da12a]=_0x89e729[_0x3b57f4(0x282)](/url\(#(.*)\)/,_0x3b57f4(0x223)[_0x3b57f4(0x394)](_0x28bc20['idSuffix'],')')));})),_0x447d98;}function Hi(_0x3c802c,_0xdc9860){const _0x3ccb10=_0x1d41aa;var _0x15e300,_0x4ce9d1=_0xdc9860[_0x3ccb10(0x235)];return!_0x4ce9d1||_0x4ce9d1[_0x3ccb10(0x25c)]===0x0?_0x3c802c:_0x3c802c['tag']===_0x3ccb10(0x212)&&(!((_0x15e300=_0x3c802c[_0x3ccb10(0x287)])===null||_0x15e300===void 0x0)&&_0x15e300[_0x3ccb10(0x25c)])?v(v({},_0x3c802c),{'children':_0x3c802c[_0x3ccb10(0x287)][_0x3ccb10(0x38b)](function(_0x33f189){const _0x2cfcb3=_0x3ccb10;return typeof _0x33f189[_0x2cfcb3(0x1ef)]['id']=='string'&&_0x4ce9d1&&_0x4ce9d1[_0x2cfcb3(0x357)](_0x33f189[_0x2cfcb3(0x1ef)]['id'])?v(v({},_0x33f189),{'attrs':v(v({},_0x33f189[_0x2cfcb3(0x1ef)]),{'id':_0x33f189[_0x2cfcb3(0x1ef)]['id']+_0xdc9860[_0x2cfcb3(0x26a)]})}):_0x33f189;})}):_0x3c802c;}function Fi(){const _0x334225=_0x1d41aa;return Math[_0x334225(0x21f)]()[_0x334225(0x2d8)](0x24)[_0x334225(0x364)](0x2,0x8);}Fe['displayName']=_0x1d41aa(0x1cd);var Yi={'tag':'svg','attrs':{'xmlns':_0x1d41aa(0x291),'fill':'none','viewBox':'0\x200\x2016\x2016','width':_0x1d41aa(0x317),'height':_0x1d41aa(0x317)},'children':[{'tag':'g','attrs':{'clipPath':_0x1d41aa(0x1cc)},'children':[{'tag':_0x1d41aa(0x2f7),'attrs':{'stroke':_0x1d41aa(0x339),'d':_0x1d41aa(0x22e),'strokeLinecap':_0x1d41aa(0x25e),'strokeLinejoin':'round','strokeWidth':1.2}}]},{'tag':_0x1d41aa(0x212),'attrs':{},'children':[{'tag':_0x1d41aa(0x351),'attrs':{'id':_0x1d41aa(0x36d)},'children':[{'tag':_0x1d41aa(0x2f7),'attrs':{'fill':_0x1d41aa(0x1e1),'d':_0x1d41aa(0x20d)}}]}]}],'defIds':[_0x1d41aa(0x36d)]},Nt=_0x568c11(function(_0xc978da,_0x1275f6){const _0x1b7bdb=_0x1d41aa;return _0x225279(Fe,Object[_0x1b7bdb(0x31f)]({},_0xc978da,{'id':_0x1b7bdb(0x396),'ref':_0x1275f6,'icon':Yi}));});Nt[_0x1d41aa(0x1b8)]=_0x1d41aa(0x1a8);var ji={'tag':_0x1d41aa(0x1c8),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0x1d41aa(0x250),'viewBox':_0x1d41aa(0x33d),'width':'1em','height':_0x1d41aa(0x317)},'children':[{'tag':'g','attrs':{'clipPath':_0x1d41aa(0x3a1)},'children':[{'tag':'path','attrs':{'stroke':_0x1d41aa(0x339),'d':'M4.5865\x2011.6499C3.36983\x2011.6499\x201.6665\x2011.1024\x201.6665\x208.9124C1.6665\x206.3574\x204.2215\x205.8099\x204.9515\x205.8099C5.3165\x204.5324\x206.0465\x202.5249\x208.9665\x202.5249C11.5215\x202.5249\x2012.6165\x203.9849\x2012.9815\x205.2624C12.9815\x205.2624\x2016.2665\x205.6274\x2016.2665\x208.7299C16.2665\x2010.9199\x2014.8065\x2011.6499\x2013.3465\x2011.6499M6.7767\x2011.6497L8.9667\x2013.4747L11.8867\x209.82466','strokeLinecap':'round','strokeLinejoin':_0x1d41aa(0x25e),'strokeWidth':1.2}}]},{'tag':'defs','attrs':{},'children':[{'tag':'clipPath','attrs':{'id':_0x1d41aa(0x1ee)},'children':[{'tag':_0x1d41aa(0x2f7),'attrs':{'fill':_0x1d41aa(0x1e1),'d':_0x1d41aa(0x20d),'transform':_0x1d41aa(0x1f4)}}]}]}],'defIds':[_0x1d41aa(0x1ee)]},Ut=_0x568c11(function(_0x4570cd,_0x471d1e){const _0x50206e=_0x1d41aa;return _0x225279(Fe,Object[_0x50206e(0x31f)]({},_0x4570cd,{'id':_0x50206e(0x1bb),'ref':_0x471d1e,'icon':ji}));});Ut[_0x1d41aa(0x1b8)]=_0x1d41aa(0x381);function Vi(_0x257ab3){const _0x5ef2ea=_0x1d41aa;switch(_0x257ab3){case _0x301b01[_0x5ef2ea(0x297)]:return'collabStatus.offline';case _0x301b01[_0x5ef2ea(0x36f)]:return'collabStatus.conflict';case _0x301b01[_0x5ef2ea(0x216)]:return _0x5ef2ea(0x1fa);case _0x301b01['NOT_COLLAB']:return _0x5ef2ea(0x2c5);case _0x301b01[_0x5ef2ea(0x1af)]:case _0x301b01[_0x5ef2ea(0x302)]:return _0x5ef2ea(0x206);case _0x301b01['SYNCED']:case _0x301b01[_0x5ef2ea(0x2fb)]:return _0x5ef2ea(0x200);}}function Wi(_0xd50b96){const _0x1769e6=_0x1d41aa,{status$:_0x23a0ba}=_0xd50b96,_0x438f66=_0x4b86c6(_0x23a0ba,_0x301b01['NOT_COLLAB']),_0x56eb6c=_0xd3ad5(_0x269fd9),_0x3b3fb8=_0xd3ad5(_0x1c2fc3),_0x12a1cc=_0x438f66!==_0x301b01[_0x1769e6(0x297)],_0x18614a=_0x56eb6c['t'](Vi(_0x438f66)),_0xd2fc98=_0x12a1cc?_0x56ab7c(Ut,{}):_0x56ab7c(Nt,{}),_0x10db1a=_0x198673(()=>{const _0x4144ee=_0x1769e6;_0x12a1cc||_0x3b3fb8[_0x4144ee(0x380)]();},[_0x12a1cc,_0x3b3fb8]);function _0x24f2b9(){const _0x4a29a5=_0x1769e6;return _0x5d53a3('div',{'className':_0x4a29a5(0x2c3),'onClick':_0x10db1a,'children':[_0x56ab7c('div',{'className':_0x484ea5(_0x4a29a5(0x2ac),{'univer-text-green-500':_0x12a1cc,'univer-text-red-500':!_0x12a1cc}),'children':_0xd2fc98}),_0x56ab7c(_0x4a29a5(0x29c),{'className':'univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','children':_0x18614a})]});}return _0x12a1cc?_0x24f2b9():_0x56ab7c(_0x11b0bf,{'title':_0x56eb6c['t'](_0x1769e6(0x1bf)),'children':_0x24f2b9()});}var Xi=Object['getOwnPropertyDescriptor'],Gi=(_0x25632e,_0x7e985,_0x55bfc1,_0x4421bf)=>{const _0x85462b=_0x1d41aa;for(var _0x7e57bd=_0x4421bf>0x1?void 0x0:_0x4421bf?Xi(_0x7e985,_0x55bfc1):_0x7e985,_0x3b1530=_0x25632e[_0x85462b(0x25c)]-0x1,_0x581364;_0x3b1530>=0x0;_0x3b1530--)(_0x581364=_0x25632e[_0x3b1530])&&(_0x7e57bd=_0x581364(_0x7e57bd)||_0x7e57bd);return _0x7e57bd;},ee=(_0x5e57ab,_0xa34b16)=>(_0x3be997,_0x1e7d0b)=>_0xa34b16(_0x3be997,_0x1e7d0b,_0x5e57ab);let se=class extends _0x2800ff{constructor(_0x45c933,_0x4fc8ae,_0x4a22c4,_0x24c1f5){const _0x29aac5=_0x1d41aa;super(),_(this,'_status$',new _0x5a2de1(_0x301b01[_0x29aac5(0x1f7)])),(this[_0x29aac5(0x2a5)]=_0x45c933,this[_0x29aac5(0x34f)]=_0x4fc8ae,this[_0x29aac5(0x1e3)]=_0x4a22c4,this[_0x29aac5(0x2d4)]=_0x24c1f5,this[_0x29aac5(0x1bd)](),this[_0x29aac5(0x3a0)]());}[_0x1d41aa(0x3a0)](){const _0x28365c=_0x1d41aa;this[_0x28365c(0x34b)](this[_0x28365c(0x2a5)][_0x28365c(0x1a1)][_0x28365c(0x27b)](_0x61b8f7(()=>{const _0x34043c=_0x28365c,_0x44ebac=this[_0x34043c(0x2a5)][_0x34043c(0x21c)]();return _0x44ebac?this['_collaborationController']['getCollabEntity$'](_0x44ebac[_0x34043c(0x25f)]()):_0x554421(null);}),_0x61b8f7(_0x5a2ec6=>_0x5a2ec6?_0x5a2ec6['status$']:_0x554421(_0x301b01[_0x28365c(0x1f7)])))[_0x28365c(0x266)](_0x5ed244=>{const _0x3b69bb=_0x28365c;this[_0x3b69bb(0x1bc)][_0x3b69bb(0x3a3)](_0x5ed244);}));}['_initStatusComponent'](){const _0x14a2a2=_0x1d41aa;this[_0x14a2a2(0x34b)](this[_0x14a2a2(0x2d4)]['registerComponent'](_0x5eb0d7[_0x14a2a2(0x31b)],()=>_0x549c57(Ki({'status$':this[_0x14a2a2(0x1bc)][_0x14a2a2(0x1ed)]()}),this[_0x14a2a2(0x34f)])));}};se=Gi([ee(0x0,_0x3c49dc),ee(0x1,_0xcce005(_0x5c6f4f)),ee(0x2,_0xcce005(_0x56d127)),ee(0x3,_0x303682)],se);function Ki(_0x496622){const {status$:_0x94d2d5}=_0x496622;return function(){return _0x56ab7c(Wi,{'status$':_0x94d2d5});};}var zi=Object['getOwnPropertyDescriptor'],Ji=(_0x4490f0,_0x553287,_0x5b1a1d,_0x52cb68)=>{const _0x736712=_0x1d41aa;for(var _0x176fa1=_0x52cb68>0x1?void 0x0:_0x52cb68?zi(_0x553287,_0x5b1a1d):_0x553287,_0x13f35d=_0x4490f0[_0x736712(0x25c)]-0x1,_0x541f52;_0x13f35d>=0x0;_0x13f35d--)(_0x541f52=_0x4490f0[_0x13f35d])&&(_0x176fa1=_0x541f52(_0x176fa1)||_0x176fa1);return _0x176fa1;},B=(_0x24519a,_0x3cdeb5)=>(_0x17797c,_0x36d478)=>_0x3cdeb5(_0x17797c,_0x36d478,_0x24519a);let ie=class extends _0x2800ff{constructor(_0x276ffc,_0x2c4f96,_0x40e16a,_0x3dbda7,_0x21427a,_0x478455){const _0x1eb75b=_0x1d41aa;super(),this['_beforeCloseService']=_0x276ffc,this[_0x1eb75b(0x2e7)]=_0x2c4f96,this[_0x1eb75b(0x213)]=_0x40e16a,this['_messageService']=_0x3dbda7,this[_0x1eb75b(0x30a)]=_0x21427a,this['_localeService']=_0x478455,this[_0x1eb75b(0x290)](),this[_0x1eb75b(0x1ea)]();}['_setupBeforeClosingHandler'](){const _0x5124c7=_0x1d41aa;this[_0x5124c7(0x34b)](this[_0x5124c7(0x38a)]['registerBeforeClose'](()=>{const _0x38e3d7=_0x5124c7;if(this['_localCacheService']['saveTaskMap'][_0x38e3d7(0x24a)])return this[_0x38e3d7(0x316)]['t'](_0x38e3d7(0x31c));}));}['_initEvent'](){const _0x39d5fc=_0x1d41aa;this[_0x39d5fc(0x34b)](this['_collaborationUIEventService'][_0x39d5fc(0x259)][_0x39d5fc(0x266)](_0x3905c2=>{const _0x4f3c2c=_0x39d5fc;_0x3905c2['id']===_0x1e0a6d[_0x4f3c2c(0x2a9)]&&this[_0x4f3c2c(0x27a)][_0x4f3c2c(0x1be)]({'type':_0x445c63[_0x4f3c2c(0x1ce)],'content':this['_localeService']['t'](_0x4f3c2c(0x386))}),_0x3905c2['id']===_0x1e0a6d[_0x4f3c2c(0x1e8)]&&this['_messageService'][_0x4f3c2c(0x1be)]({'type':_0x445c63[_0x4f3c2c(0x1ce)],'content':this[_0x4f3c2c(0x316)]['t'](_0x4f3c2c(0x2b2))}),_0x3905c2['id']===_0x1e0a6d[_0x4f3c2c(0x365)]&&this['_notificationService'][_0x4f3c2c(0x1be)]({'title':this['_localeService']['t']('permission.title'),'content':this['_localeService']['t'](_0x4f3c2c(0x279)),'type':_0x4f3c2c(0x318),'duration':0x0}),_0x3905c2['id']===_0x1e0a6d[_0x4f3c2c(0x36f)]&&this[_0x4f3c2c(0x27a)][_0x4f3c2c(0x1be)]({'type':_0x445c63['Error'],'content':this[_0x4f3c2c(0x316)]['t'](_0x4f3c2c(0x2b2))+'('+_0x3905c2[_0x4f3c2c(0x355)]+')'}),_0x3905c2['id']===_0x1e0a6d[_0x4f3c2c(0x246)]&&this['_messageService']['show']({'type':_0x445c63[_0x4f3c2c(0x1ce)],'content':this['_localeService']['t'](_0x3905c2[_0x4f3c2c(0x355)]||'')}),_0x3905c2['id']===_0x1e0a6d['SOCKET_FAILED_RETRY']&&this[_0x4f3c2c(0x27a)][_0x4f3c2c(0x1be)]({'type':_0x445c63[_0x4f3c2c(0x1ce)],'content':this[_0x4f3c2c(0x316)]['t']('session.will-retry')}),_0x3905c2['id']===_0x1e0a6d[_0x4f3c2c(0x1dc)]&&this[_0x4f3c2c(0x27a)][_0x4f3c2c(0x1be)]({'type':_0x445c63[_0x4f3c2c(0x1eb)],'content':this[_0x4f3c2c(0x316)]['t']('session.connection-failed')}),_0x3905c2['id']===_0x1e0a6d[_0x4f3c2c(0x252)]&&this[_0x4f3c2c(0x27a)]['show']({'type':_0x445c63[_0x4f3c2c(0x1eb)],'content':this[_0x4f3c2c(0x316)]['t']('session.collaboration-timeout')});}));}};ie=Ji([B(0x0,_0xa8c410),B(0x1,_0x1255fd),B(0x2,_0xcce005(_0x34d2ea)),B(0x3,_0x41c5c4),B(0x4,_0x2555d3),B(0x5,_0xcce005(_0x269fd9))],ie);const Zi=_0x1d41aa(0x1d1),et={},Mt=_0x41b18f('uni.network.url-service');var Qi=Object[_0x1d41aa(0x248)],qi=(_0x5cef0c,_0x51d604,_0x4ad948,_0x273b26)=>{for(var _0x952c4c=_0x273b26>0x1?void 0x0:_0x273b26?Qi(_0x51d604,_0x4ad948):_0x51d604,_0x22ed9=_0x5cef0c['length']-0x1,_0x32b647;_0x22ed9>=0x0;_0x22ed9--)(_0x32b647=_0x5cef0c[_0x22ed9])&&(_0x952c4c=_0x32b647(_0x952c4c)||_0x952c4c);return _0x952c4c;},K=(_0x21860a,_0x577af9)=>(_0x386d4a,_0x2dc26a)=>_0x577af9(_0x386d4a,_0x2dc26a,_0x21860a);let ne=class extends _0x85e892{constructor(_0x4bfe17,_0x3c48c5,_0x3a952d,_0x255a89,_0x121cca){const _0x4486ee=_0x1d41aa;super(),this[_0x4486ee(0x1b1)]=_0x4bfe17,this[_0x4486ee(0x32e)]=_0x3c48c5,this['_commandService']=_0x3a952d,this[_0x4486ee(0x2cd)]=_0x255a89,_0x121cca?_0x121cca==null||_0x121cca['whenReady']()[_0x4486ee(0x276)](()=>this[_0x4486ee(0x2a7)]()):(this[_0x4486ee(0x32e)]['debug'](_0x4486ee(0x2c4),_0x4486ee(0x2de)),this[_0x4486ee(0x2a7)]());}async[_0x1d41aa(0x2a7)](){const _0xc13c43=_0x1d41aa,_0x83eba5=this['_urlService'][_0xc13c43(0x229)](_0xc13c43(0x311)),_0x21ba55=this[_0xc13c43(0x1b1)][_0xc13c43(0x229)](_0xc13c43(0x1ff)),_0x1dcc88=this['_urlService']['getParam'](_0xc13c43(0x358));if(!_0x83eba5||!_0x21ba55){this['_logService'][_0xc13c43(0x21b)](_0xc13c43(0x2c4),_0xc13c43(0x1c6));return;}const _0x11808d=await this[_0xc13c43(0x2cd)][_0xc13c43(0x26d)](_0x83eba5,Number(_0x21ba55),_0x1dcc88);_0x11808d&&_0x11808d instanceof _0x38bdf9&&this[_0xc13c43(0x30f)](_0x11808d);}async[_0x1d41aa(0x30f)](_0x1cf6f1){const _0x4be13e=_0x1d41aa;await this[_0x4be13e(0x352)](_0x1cf6f1),_0x1cf6f1[_0x4be13e(0x326)][_0x4be13e(0x27b)](_0xe2ba41(this[_0x4be13e(0x1ab)]))[_0x4be13e(0x266)](_0x2a5bc5=>{_0x2a5bc5&&this['_updateURLWithCurrentState'](_0x2a5bc5);}),this['_urlService'][_0x4be13e(0x201)]['pipe'](_0xe2ba41(this[_0x4be13e(0x1ab)]))['subscribe'](()=>this['_updateSubUnitFromURLParams'](_0x1cf6f1));}[_0x1d41aa(0x299)](_0x1f8d1f,_0x2412a2=!0x1){const _0x22ac14=_0x1d41aa,_0xdb5d7b=this[_0x22ac14(0x1b1)][_0x22ac14(0x229)](_0x22ac14(0x358));_0x1f8d1f[_0x22ac14(0x1d9)]()!==_0xdb5d7b&&this[_0x22ac14(0x1b1)][_0x22ac14(0x1b3)]('subunit',_0x1f8d1f[_0x22ac14(0x1d9)](),_0x2412a2);}async[_0x1d41aa(0x352)](_0x43c7d0){const _0x352840=_0x1d41aa;var _0x4d6d3e;const _0x67cbb2=this[_0x352840(0x1b1)][_0x352840(0x229)](_0x352840(0x358));if(!_0x67cbb2||!_0x43c7d0['getSheetBySheetId'](_0x67cbb2)){const _0xbe783c=_0x43c7d0[_0x352840(0x362)]()[0x0],_0x74d7f1=_0x43c7d0[_0x352840(0x293)](_0xbe783c);if(!_0x74d7f1)return;this[_0x352840(0x299)](_0x74d7f1,!0x0),await this[_0x352840(0x354)][_0x352840(0x203)](_0x158419['id'],{'unitId':_0x43c7d0[_0x352840(0x25f)](),'subUnitId':_0xbe783c});return;}((_0x4d6d3e=_0x43c7d0[_0x352840(0x398)]())==null?void 0x0:_0x4d6d3e[_0x352840(0x1d9)]())!==_0x67cbb2&&await this[_0x352840(0x354)][_0x352840(0x203)](_0x158419['id'],{'unitId':_0x43c7d0[_0x352840(0x25f)](),'subUnitId':_0x67cbb2});}};ne=qi([K(0x0,Mt),K(0x1,_0x41e6cd),K(0x2,_0x268a57),K(0x3,_0xcce005(_0xd33af7)),K(0x4,_0xab635a(_0x3c7901))],ne);function _0x3072(_0x535a82,_0x3621fa){const _0x222279=_0x2222();return _0x3072=function(_0x30729b,_0x48118b){_0x30729b=_0x30729b-0x1a1;let _0x3661a2=_0x222279[_0x30729b];return _0x3661a2;},_0x3072(_0x535a82,_0x3621fa);}var en=Object[_0x1d41aa(0x248)],tn=(_0x4bf102,_0x43cf6e,_0x32cca2,_0x20f021)=>{const _0x2dd770=_0x1d41aa;for(var _0x4bc79a=_0x20f021>0x1?void 0x0:_0x20f021?en(_0x43cf6e,_0x32cca2):_0x43cf6e,_0x2d56d0=_0x4bf102[_0x2dd770(0x25c)]-0x1,_0x3945fd;_0x2d56d0>=0x0;_0x2d56d0--)(_0x3945fd=_0x4bf102[_0x2d56d0])&&(_0x4bc79a=_0x3945fd(_0x4bc79a)||_0x4bc79a);return _0x4bc79a;},tt=(_0x4d0605,_0x5ef928)=>(_0x2add49,_0x292244)=>_0x5ef928(_0x2add49,_0x292244,_0x4d0605);let re=class{constructor(_0x53dc9e,_0x3e36f4){const _0x537186=_0x1d41aa;this[_0x537186(0x27f)]=_0x53dc9e,this['_renderManagerService']=_0x3e36f4;}[_0x1d41aa(0x34e)](_0x21fffe){const _0x1aeb1a=_0x1d41aa;this[_0x1aeb1a(0x350)](_0x21fffe),this['_transformPreviousActiveRange'](_0x21fffe);}[_0x1d41aa(0x335)](_0x40d994){const _0x48b300=_0x1d41aa,{unitID:_0x57c323}=_0x40d994,_0x20021d=this['_renderManagerService'][_0x48b300(0x322)](_0x57c323)[_0x48b300(0x2cf)](_0x1f4fd3),{redoCache:_0x18fa1e}=_0x20021d[_0x48b300(0x268)]();if(_0x18fa1e[_0x48b300(0x25c)]===0x0)return _0x40d994;let _0x2b946f=_0x59fb77['deepClone'](_0x40d994[_0x48b300(0x23e)][0x0]);for(let _0xe9c6fc=0x0;_0xe9c6fc<_0x18fa1e[_0x48b300(0x25c)];_0xe9c6fc++){const _0x93f21e={'id':_0x48b300(0x328),'params':{..._0x18fa1e[_0xe9c6fc]}},_0x50f111=this['_transformService'][_0x48b300(0x28b)](_0x2b946f,_0x93f21e,!0x1);if(_0x30fa04(_0x50f111))throw _0x50f111['error'];_0x2b946f=_0x50f111[_0x48b300(0x22b)];}return{..._0x59fb77[_0x48b300(0x214)](_0x40d994),'mutations':[_0x2b946f]};}[_0x1d41aa(0x350)](_0x156b9e){const _0x1d307f=_0x1d41aa,{unitID:_0x5120a2}=_0x156b9e,_0x2311ea=this[_0x1d307f(0x340)][_0x1d307f(0x322)](_0x5120a2)[_0x1d307f(0x2cf)](_0x1f4fd3),{undoCache:_0x5b2c4f,redoCache:_0x5ca951}=_0x2311ea[_0x1d307f(0x268)]();if(_0x5b2c4f[_0x1d307f(0x25c)]===0x0||_0x5ca951['length']===0x0)return;const _0x4802ac=[],_0x5f1522=[];let _0x40184c=_0x59fb77['deepClone'](_0x156b9e[_0x1d307f(0x23e)][0x0]),_0x566f2e=_0x59fb77[_0x1d307f(0x214)](_0x156b9e['mutations'][0x0]);for(let _0x578bf8=_0x5b2c4f[_0x1d307f(0x25c)]-0x1;_0x578bf8>=0x0;_0x578bf8--){const _0x5e8857={'id':_0x1d307f(0x328),'params':{..._0x5b2c4f[_0x578bf8]}},_0x44e225={'id':_0x1d307f(0x328),'params':{..._0x5ca951[_0x578bf8]}},_0x3acbe6=this['_transformService'][_0x1d307f(0x28b)](_0x40184c,_0x5e8857,!0x1),_0x1d2678=this['_transformService'][_0x1d307f(0x28b)](_0x566f2e,_0x44e225,!0x1);if(_0x30fa04(_0x3acbe6))throw _0x3acbe6[_0x1d307f(0x318)];if(_0x30fa04(_0x1d2678))throw _0x1d2678[_0x1d307f(0x318)];_0x4802ac[_0x1d307f(0x37a)](_0x3acbe6[_0x1d307f(0x39f)][_0x1d307f(0x2f9)]),_0x5f1522[_0x1d307f(0x37a)](_0x1d2678[_0x1d307f(0x39f)][_0x1d307f(0x2f9)]),_0x40184c=_0x3acbe6[_0x1d307f(0x22b)],_0x566f2e=_0x1d2678[_0x1d307f(0x22b)];}_0x2311ea['setUndoRedoMutationParamsCache']({'undoCache':_0x4802ac,'redoCache':_0x5f1522});}['_transformPreviousActiveRange'](_0x4fd734){const _0x343730=_0x1d41aa,{unitID:_0x4ee389}=_0x4fd734,_0x2ac45c=this[_0x343730(0x340)][_0x343730(0x322)](_0x4ee389)['with'](_0x1f4fd3),_0x488632=_0x2ac45c[_0x343730(0x23d)]();if(_0x488632==null)return;const _0x1bcfc6=[{'id':_0x343730(0x328),'params':{'unitId':_0x4fd734[_0x343730(0x249)],'actions':null,'textRanges':[_0x488632]}}],_0x3e0457=this['_transformService'][_0x343730(0x37d)](_0x4fd734,_0x1bcfc6);if(!_0x2c9078(_0x3e0457))throw _0x3e0457[_0x343730(0x318)];const _0xe099a6=_0x3e0457['m2Prime'][0x0][_0x343730(0x2f9)][_0x343730(0x263)];Array['isArray'](_0xe099a6)&&_0xe099a6[_0x343730(0x25c)]&&_0x2ac45c[_0x343730(0x207)](_0xe099a6[0x0]);}};re=tn([tt(0x0,_0x4ae50f),tt(0x1,_0x49b12e)],re);var sn=Object[_0x1d41aa(0x248)],nn=(_0x1a2816,_0x1f3521,_0x4af95c,_0x5c57a9)=>{const _0x5a983d=_0x1d41aa;for(var _0x297e3b=_0x5c57a9>0x1?void 0x0:_0x5c57a9?sn(_0x1f3521,_0x4af95c):_0x1f3521,_0x184e25=_0x1a2816[_0x5a983d(0x25c)]-0x1,_0x1b6287;_0x184e25>=0x0;_0x184e25--)(_0x1b6287=_0x1a2816[_0x184e25])&&(_0x297e3b=_0x1b6287(_0x297e3b)||_0x297e3b);return _0x297e3b;},Ce=(_0x4f0adb,_0x3fca27)=>(_0xfd46bb,_0x4cfff4)=>_0x3fca27(_0xfd46bb,_0x4cfff4,_0x4f0adb);let oe=class{constructor(_0x42e153,_0x280900,_0xde2456){const _0x283cb5=_0x1d41aa;this[_0x283cb5(0x34f)]=_0x42e153,this[_0x283cb5(0x27f)]=_0x280900,this['_docStateChangeManagerService']=_0xde2456;}[_0x1d41aa(0x283)](_0x55a586){const _0x1a287e=_0x1d41aa;this[_0x1a287e(0x399)](_0x55a586);}[_0x1d41aa(0x335)](_0x186f96){const _0x52f3f7=_0x1d41aa,{unitID:_0x3883fd}=_0x186f96,{collaboration:_0x553fcf}=this[_0x52f3f7(0x253)][_0x52f3f7(0x285)](_0x3883fd);if(_0x553fcf['length']===0x0)return _0x186f96;let _0x3cad5a=_0x59fb77[_0x52f3f7(0x214)](_0x186f96[_0x52f3f7(0x23e)][0x0]);for(let _0xa95ac6=0x0;_0xa95ac6<_0x553fcf[_0x52f3f7(0x25c)];_0xa95ac6++){const _0x58ed83={'id':_0x52f3f7(0x328),'params':{'unitId':_0x553fcf[_0xa95ac6][_0x52f3f7(0x1a9)],..._0x553fcf[_0xa95ac6]['redoState']}},_0x587c32=this[_0x52f3f7(0x27f)][_0x52f3f7(0x28b)](_0x3cad5a,_0x58ed83,!0x1);if(_0x30fa04(_0x587c32))throw _0x587c32[_0x52f3f7(0x318)];_0x3cad5a=_0x587c32[_0x52f3f7(0x22b)];}return{..._0x59fb77['deepClone'](_0x186f96),'mutations':[_0x3cad5a]};}[_0x1d41aa(0x399)](_0x52cdfa){const _0x5d4b09=_0x1d41aa,{unitID:_0x12edcf}=_0x52cdfa,{history:_0x46442f,collaboration:_0x563c62}=this[_0x5d4b09(0x253)][_0x5d4b09(0x285)](_0x12edcf);if(_0x46442f[_0x5d4b09(0x25c)]===0x0&&_0x563c62['length']===0x0)return;const _0x5653d5=[],_0x3f0bad=[];let _0x332b8b=_0x59fb77[_0x5d4b09(0x214)](_0x52cdfa[_0x5d4b09(0x23e)][0x0]),_0x50e38d=_0x59fb77[_0x5d4b09(0x214)](_0x52cdfa[_0x5d4b09(0x23e)][0x0]);for(let _0x4cfe21=_0x46442f['length']-0x1;_0x4cfe21>=0x0;_0x4cfe21--){const _0x5a4c2f={'id':_0x5d4b09(0x328),'params':{'unitId':_0x46442f[_0x4cfe21][_0x5d4b09(0x1a9)],..._0x46442f[_0x4cfe21]['undoState']}},_0x427fa1={'id':_0x5d4b09(0x328),'params':{'unitId':_0x46442f[_0x4cfe21][_0x5d4b09(0x1a9)],..._0x46442f[_0x4cfe21]['redoState']}},_0x1c4386=this[_0x5d4b09(0x27f)][_0x5d4b09(0x28b)](_0x332b8b,_0x5a4c2f,!0x1),_0x30e35e=this['_transformService'][_0x5d4b09(0x28b)](_0x50e38d,_0x427fa1,!0x1);if(_0x30fa04(_0x1c4386))throw _0x1c4386['error'];if(_0x30fa04(_0x30e35e))throw _0x30e35e[_0x5d4b09(0x318)];_0x5653d5[_0x5d4b09(0x37a)]({..._0x46442f[_0x4cfe21],'undoState':_0x1c4386['m2Prime']['params'],'redoState':_0x30e35e[_0x5d4b09(0x39f)][_0x5d4b09(0x2f9)]}),_0x332b8b=_0x1c4386['m1Prime'],_0x50e38d=_0x30e35e[_0x5d4b09(0x22b)];}_0x332b8b=_0x59fb77[_0x5d4b09(0x214)](_0x52cdfa[_0x5d4b09(0x23e)][0x0]),_0x50e38d=_0x59fb77[_0x5d4b09(0x214)](_0x52cdfa[_0x5d4b09(0x23e)][0x0]);for(let _0x53bb1f=_0x563c62[_0x5d4b09(0x25c)]-0x1;_0x53bb1f>=0x0;_0x53bb1f--){const _0x2fdf07={'id':_0x5d4b09(0x328),'params':{'unitId':_0x563c62[_0x53bb1f][_0x5d4b09(0x1a9)],..._0x563c62[_0x53bb1f]['undoState']}},_0xb6c8fd={'id':_0x5d4b09(0x328),'params':{'unitId':_0x563c62[_0x53bb1f]['unitId'],..._0x563c62[_0x53bb1f][_0x5d4b09(0x323)]}},_0x183ca6=this['_transformService'][_0x5d4b09(0x28b)](_0x332b8b,_0x2fdf07,!0x1),_0x389f39=this[_0x5d4b09(0x27f)][_0x5d4b09(0x28b)](_0x50e38d,_0xb6c8fd,!0x1);if(_0x30fa04(_0x183ca6))throw _0x183ca6[_0x5d4b09(0x318)];if(_0x30fa04(_0x389f39))throw _0x389f39[_0x5d4b09(0x318)];_0x3f0bad[_0x5d4b09(0x37a)]({..._0x563c62[_0x53bb1f],'undoState':_0x183ca6[_0x5d4b09(0x39f)]['params'],'redoState':_0x389f39[_0x5d4b09(0x39f)]['params']}),_0x332b8b=_0x183ca6['m1Prime'],_0x50e38d=_0x389f39['m1Prime'];}this[_0x5d4b09(0x253)][_0x5d4b09(0x368)](_0x12edcf,{'history':_0x5653d5,'collaboration':_0x3f0bad});}};oe=nn([Ce(0x0,_0xcce005(_0x5c6f4f)),Ce(0x1,_0x4ae50f),Ce(0x2,_0xcce005(_0x2b5696))],oe);var rn=Object[_0x1d41aa(0x248)],on=(_0x880a6,_0x5cb858,_0x2a953b,_0x5a0b27)=>{const _0x24b7bf=_0x1d41aa;for(var _0x2e65ce=_0x5a0b27>0x1?void 0x0:_0x5a0b27?rn(_0x5cb858,_0x2a953b):_0x5cb858,_0x3ecdf1=_0x880a6[_0x24b7bf(0x25c)]-0x1,_0x3c6bbe;_0x3ecdf1>=0x0;_0x3ecdf1--)(_0x3c6bbe=_0x880a6[_0x3ecdf1])&&(_0x2e65ce=_0x3c6bbe(_0x2e65ce)||_0x2e65ce);return _0x2e65ce;},st=(_0x3893d1,_0x472c19)=>(_0x521c7a,_0x13af7e)=>_0x472c19(_0x521c7a,_0x13af7e,_0x3893d1);let ae=class{constructor(_0x1427dd,_0x55fa6e){const _0x1b976a=_0x1d41aa;this[_0x1b976a(0x34f)]=_0x1427dd,this[_0x1b976a(0x27f)]=_0x55fa6e;}[_0x1d41aa(0x2b6)](_0x639b7e){const _0x34d28e=_0x1d41aa;var _0x546959;const _0x16cd11=this['_injector'][_0x34d28e(0x217)](_0x27e88a),_0x112b8b=(_0x546959=_0x16cd11[_0x34d28e(0x2f6)]())!=null?_0x546959:[];if(_0x112b8b[_0x34d28e(0x25c)]===0x0)return;const _0x3d3317=_0x639b7e['unitID'],_0x45ef4c=[{'id':_0x34d28e(0x328),'params':{'unitId':_0x3d3317,'actions':null,'textRanges':_0x112b8b}}],_0x5365a8=this[_0x34d28e(0x27f)][_0x34d28e(0x37d)](_0x639b7e,_0x45ef4c);if(!_0x2c9078(_0x5365a8))throw _0x5365a8[_0x34d28e(0x318)];const _0x12147b=_0x5365a8['m2Prime'][0x0][_0x34d28e(0x2f9)][_0x34d28e(0x263)];Array[_0x34d28e(0x1ba)](_0x12147b)&&_0x12147b[_0x34d28e(0x25c)]&&_0x16cd11[_0x34d28e(0x1d8)](_0x12147b,{'unitId':_0x3d3317,'subUnitId':_0x3d3317},!0x1);}};ae=on([st(0x0,_0xcce005(_0x5c6f4f)),st(0x1,_0x4ae50f)],ae);var an=Object[_0x1d41aa(0x248)],cn=(_0x534b18,_0x360546,_0x3d4c15,_0x4f18a3)=>{const _0x100304=_0x1d41aa;for(var _0x25aa7a=_0x4f18a3>0x1?void 0x0:_0x4f18a3?an(_0x360546,_0x3d4c15):_0x360546,_0x3af972=_0x534b18[_0x100304(0x25c)]-0x1,_0x18e66c;_0x3af972>=0x0;_0x3af972--)(_0x18e66c=_0x534b18[_0x3af972])&&(_0x25aa7a=_0x18e66c(_0x25aa7a)||_0x25aa7a);return _0x25aa7a;},N=(_0x1fb679,_0x14dac1)=>(_0x46a7bc,_0x522f96)=>_0x14dac1(_0x46a7bc,_0x522f96,_0x1fb679);let ce=class extends _0x2800ff{constructor(_0x1746a6,_0x117f7f,_0x373b7b,_0x5d77ef,_0x1979f6,_0x589f58,_0x9052d9,_0x5c6ff6){const _0x3db6a0=_0x1d41aa;super(),_(this,_0x3db6a0(0x1bc),new _0x5a2de1(_0x301b01['NOT_COLLAB'])),(this[_0x3db6a0(0x253)]=_0x1746a6,this[_0x3db6a0(0x1e3)]=_0x117f7f,this['_docTransformIMECacheService']=_0x373b7b,this[_0x3db6a0(0x35d)]=_0x5d77ef,this[_0x3db6a0(0x26e)]=_0x1979f6,this['_docSyncEditingCollabCursorService']=_0x589f58,this[_0x3db6a0(0x27a)]=_0x9052d9,this[_0x3db6a0(0x316)]=_0x5c6ff6,this['_initEntityListener']());}[_0x1d41aa(0x361)](){const _0x4957cf=_0x1d41aa;this['disposeWithMe'](this[_0x4957cf(0x1e3)][_0x4957cf(0x38c)][_0x4957cf(0x266)](_0x1628b7=>{const _0xc3a8d5=_0x4957cf,_0x16efd0=this[_0xc3a8d5(0x253)]['docStateChange$'][_0xc3a8d5(0x266)](_0x164a64=>{const _0x199c71=_0xc3a8d5;if(_0x164a64==null)return;const {unitId:_0x375271,redoState:_0x1310ea,commandId:_0x376556}=_0x164a64;if(_0x375271!==_0x1628b7[_0x199c71(0x249)])return;const _0x4efed5={'id':_0x376556,'type':_0x1c6be8[_0x199c71(0x392)],'params':{'unitId':_0x375271,'actions':_0x1310ea[_0x199c71(0x39b)],'textRanges':null}};_0x1628b7[_0x199c71(0x271)](_0x4efed5);});if(_0x1628b7[_0xc3a8d5(0x34b)](_0x16efd0),_0x1628b7 instanceof _0x28706d){const _0x1b946d={'onTransformIME':_0x1fcf27=>this[_0xc3a8d5(0x1c4)][_0xc3a8d5(0x34e)](_0x1fcf27),'onTransformState':_0x48919b=>this[_0xc3a8d5(0x35d)][_0xc3a8d5(0x283)](_0x48919b),'onTransformSelections':_0x366a2b=>this[_0xc3a8d5(0x26e)][_0xc3a8d5(0x2b6)](_0x366a2b),'onSyncEditingCollabCursor':_0x249324=>this['_docSyncEditingCollabCursorService'][_0xc3a8d5(0x343)](_0x249324),'onTransformRemoteChangesetByIMECache':_0x57b0c1=>this[_0xc3a8d5(0x1c4)][_0xc3a8d5(0x335)](_0x57b0c1),'onTransformRemoteChangesetByStateCache':_0x12e82c=>this[_0xc3a8d5(0x35d)][_0xc3a8d5(0x335)](_0x12e82c)};_0x1628b7[_0xc3a8d5(0x308)](_0x1b946d);}}));}};ce=cn([N(0x0,_0xcce005(_0x2b5696)),N(0x1,_0xcce005(_0x56d127)),N(0x2,_0xcce005(re)),N(0x3,_0xcce005(oe)),N(0x4,_0xcce005(ae)),N(0x5,_0xcce005(He)),N(0x6,_0x41c5c4),N(0x7,_0xcce005(_0x269fd9))],ce);var ln=Object[_0x1d41aa(0x248)],_n=(_0x356d59,_0x353cf8,_0x52372f,_0x3ad1e6)=>{const _0x348c74=_0x1d41aa;for(var _0x23a8f6=_0x3ad1e6>0x1?void 0x0:_0x3ad1e6?ln(_0x353cf8,_0x52372f):_0x353cf8,_0x2ca3b6=_0x356d59[_0x348c74(0x25c)]-0x1,_0x58fa8e;_0x2ca3b6>=0x0;_0x2ca3b6--)(_0x58fa8e=_0x356d59[_0x2ca3b6])&&(_0x23a8f6=_0x58fa8e(_0x23a8f6)||_0x23a8f6);return _0x23a8f6;},Ee=(_0xf404b5,_0x1cea03)=>(_0x44e91a,_0x5a1af6)=>_0x1cea03(_0x44e91a,_0x5a1af6,_0xf404b5);let we=class extends _0x2800ff{constructor(_0x3c2850,_0x2b81c6,_0x44e37a){const _0x29b078=_0x1d41aa;super(),_(this,_0x29b078(0x359),new Map()),_(this,_0x29b078(0x2e3),new Map()),_(this,'_disabled',!0x1),(this['_configService']=_0x3c2850,this[_0x29b078(0x267)]=_0x2b81c6,this[_0x29b078(0x1f5)]=_0x44e37a);}[_0x1d41aa(0x383)](){const _0x193a39=_0x1d41aa;this[_0x193a39(0x2e5)]=!0x0;}['enableLocalCache'](){this['_disabled']=!0x1;}get[_0x1d41aa(0x1e5)](){const _0x4acaf3=_0x1d41aa;return this[_0x4acaf3(0x2e3)];}['dispose'](){const _0x583b84=_0x1d41aa;this[_0x583b84(0x1d3)]()[_0x583b84(0x276)](()=>super['dispose']());}async[_0x1d41aa(0x1fc)](_0x3cde5e){const _0x5c5f59=_0x1d41aa;return this[_0x5c5f59(0x2e5)]?null:this[_0x5c5f59(0x267)]['getItem'](_0x2d56e6(_0x3cde5e));}async[_0x1d41aa(0x208)](_0x917b80,_0x49e524){const _0x1e53f1=_0x1d41aa;return!!this[_0x1e53f1(0x267)]['setItem'](_0x917b80,_0x49e524);}[_0x1d41aa(0x228)](_0x6f9d18,_0x3247c8,_0xfbde85,_0x3b9ad4){const _0x465bd2=_0x1d41aa,_0x23b1f=this[_0x465bd2(0x1f5)][_0x465bd2(0x309)](_0x6f9d18);this[_0x465bd2(0x359)]['set'](_0x6f9d18,{'unitID':_0x6f9d18,'type':_0x3247c8,'awaitingChangeset':_0xfbde85,'mutations':_0x3b9ad4,'rev':_0x23b1f}),this[_0x465bd2(0x2e3)]['has'](_0x6f9d18)||this[_0x465bd2(0x262)](_0x6f9d18);}[_0x1d41aa(0x262)](_0x46f3e3){const _0x18f077=_0x1d41aa,_0x57afa8=this['_getSaveTimeout']();_0x57afa8===0x0?this['_saveCache'](_0x46f3e3):this['_saveTaskMap']['set'](_0x46f3e3,setTimeout(()=>this[_0x18f077(0x376)](_0x46f3e3),_0x57afa8));}['_getSaveTimeout'](){const _0x492b38=_0x1d41aa;var _0x1dd562;return(_0x1dd562=this['_configService'][_0x492b38(0x344)](_0x5ae75a))!=null?_0x1dd562:_0x2f2d81;}['_saveCache'](_0x44f832){const _0x4a08a2=_0x1d41aa,_0x2e59c8=this[_0x4a08a2(0x2e3)][_0x4a08a2(0x217)](_0x44f832);return _0x2e59c8!==void 0x0&&window[_0x4a08a2(0x1dd)](_0x2e59c8),this[_0x4a08a2(0x267)][_0x4a08a2(0x1a6)](_0x2d56e6(_0x44f832),this[_0x4a08a2(0x359)][_0x4a08a2(0x217)](_0x44f832))[_0x4a08a2(0x276)](()=>this[_0x4a08a2(0x2e3)]['delete'](_0x44f832));}async[_0x1d41aa(0x1d3)](){const _0x4b7172=_0x1d41aa,_0x155241=[];this[_0x4b7172(0x2e3)]['forEach']((_0x4d6f57,_0x5e82b7)=>{const _0x571659=_0x4b7172;window[_0x571659(0x1dd)](_0x4d6f57),_0x155241[_0x571659(0x37f)](this[_0x571659(0x376)](_0x5e82b7)['then'](()=>{const _0x596cb1=_0x571659;this[_0x596cb1(0x2e3)][_0x596cb1(0x375)](_0x5e82b7);}));}),await Promise[_0x4b7172(0x296)](_0x155241);}};we=_n([Ee(0x0,_0x3022cf),Ee(0x1,_0x42b910),Ee(0x2,_0xcce005(_0x491b5d))],we);class hn extends _0x85e892{constructor(){const _0x5710e1=_0x1d41aa;super(),_(this,_0x5710e1(0x201)),this[_0x5710e1(0x201)]=_0x21efab(window,_0x5710e1(0x1c0))[_0x5710e1(0x27b)](_0xe2ba41(this[_0x5710e1(0x1ab)]),_0x49522a(0x1),_0x2771cf(void 0x0));}[_0x1d41aa(0x1b3)](_0x2bcfa4,_0x52ee1f,_0x28632c=!0x1){const _0x64a2f1=_0x1d41aa,_0x410144=new URL(window[_0x64a2f1(0x295)][_0x64a2f1(0x1e6)]);_0x410144[_0x64a2f1(0x215)][_0x64a2f1(0x36a)](_0x2bcfa4,_0x52ee1f),_0x28632c?window[_0x64a2f1(0x225)]['replaceState']('','',_0x410144[_0x64a2f1(0x2d8)]()):window[_0x64a2f1(0x225)][_0x64a2f1(0x395)]('','',_0x410144[_0x64a2f1(0x2d8)]());}['removeParam'](_0x455013,_0x2ff62c=!0x1){const _0x38df0b=_0x1d41aa,_0x486dcd=new URL(window['location'][_0x38df0b(0x1e6)]);_0x486dcd['searchParams'][_0x38df0b(0x375)](_0x455013),_0x2ff62c?window['history'][_0x38df0b(0x1e4)]('','',_0x486dcd[_0x38df0b(0x2d8)]()):window['history'][_0x38df0b(0x395)]('','',_0x486dcd['toString']());}[_0x1d41aa(0x229)](_0x46187b){const _0x422907=_0x1d41aa;var _0x13b6fa;return(_0x13b6fa=new URL(window['location']['href'])['searchParams'][_0x422907(0x217)](_0x46187b))!=null?_0x13b6fa:void 0x0;}}var un=Object[_0x1d41aa(0x2b8)],dn=Object[_0x1d41aa(0x248)],fn=(_0x1f5882,_0x20e03b,_0x34bab7)=>_0x20e03b in _0x1f5882?un(_0x1f5882,_0x20e03b,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x34bab7}):_0x1f5882[_0x20e03b]=_0x34bab7,Sn=(_0x3cdccc,_0x41dc99,_0x45e5d3,_0x494542)=>{const _0x5c56ee=_0x1d41aa;for(var _0xac4f79=_0x494542>0x1?void 0x0:_0x494542?dn(_0x41dc99,_0x45e5d3):_0x41dc99,_0x5362b2=_0x3cdccc[_0x5c56ee(0x25c)]-0x1,_0x3d5eb5;_0x5362b2>=0x0;_0x5362b2--)(_0x3d5eb5=_0x3cdccc[_0x5362b2])&&(_0xac4f79=_0x3d5eb5(_0xac4f79)||_0xac4f79);return _0xac4f79;},Oe=(_0xda97fe,_0x117414)=>(_0x24df00,_0x34b23a)=>_0x117414(_0x24df00,_0x34b23a,_0xda97fe),mn=(_0x11b6c6,_0x44ff03,_0x2d2dcf)=>fn(_0x11b6c6,_0x44ff03+'',_0x2d2dcf);const In=_0x1d41aa(0x1b9);let Ae=class extends _0x3780de{constructor(_0x21afa8=et,_0x42c717,_0x2c756e,_0x1f26d6){const _0x2e1bd5=_0x1d41aa;super(),this[_0x2e1bd5(0x243)]=_0x21afa8,this[_0x2e1bd5(0x340)]=_0x42c717,this[_0x2e1bd5(0x34f)]=_0x2c756e,this['_configService']=_0x1f26d6;const {..._0x57d404}=_0x523698({},et,this[_0x2e1bd5(0x243)]);this[_0x2e1bd5(0x23f)][_0x2e1bd5(0x2f2)](Zi,_0x57d404);}[_0x1d41aa(0x1a7)](){const _0x378e28=_0x1d41aa;this[_0x378e28(0x25d)](),this[_0x378e28(0x38f)]();}[_0x1d41aa(0x2b0)](){const _0x1aff42=_0x1d41aa;this[_0x1aff42(0x305)]();}[_0x1d41aa(0x25d)](){const _0x37bd06=_0x1d41aa;var _0x51ee80;const _0x3ca194=[[ke],[ae],[re],[oe],[He],[Mt,{'useClass':hn}],[_0x1794d9,{'useClass':_0x493e8a}],[_0x1255fd,{'useClass':we}],[se],[ce],[ie],[F],[Ne],[ne]];_0x5c8a6a(this['_injector'],_0x28a7e9(_0x3ca194,(_0x51ee80=this[_0x37bd06(0x243)])==null?void 0x0:_0x51ee80[_0x37bd06(0x1cf)]));}[_0x1d41aa(0x305)](){const _0x443c7a=_0x1d41aa;this[_0x443c7a(0x34b)](this['_renderManagerService'][_0x443c7a(0x2ea)](_0x357bfd[_0x443c7a(0x277)],[Le])),this['disposeWithMe'](this[_0x443c7a(0x340)][_0x443c7a(0x2ea)](_0x357bfd[_0x443c7a(0x2b1)],[Pe]));}[_0x1d41aa(0x38f)](){_0x2857b7(this['_injector'],[[F],[se],[ce],[ie],[ne]]);}};mn(Ae,_0x1d41aa(0x1ae),In),Ae=Sn([_0x3ac0fb(_0x484d9a),Oe(0x1,_0x49b12e),Oe(0x2,_0xcce005(_0x5c6f4f)),Oe(0x3,_0x3022cf)],Ae);var vn=Object[_0x1d41aa(0x248)],gn=(_0x291c2b,_0x2eb399,_0x10d8a1,_0x4a8761)=>{const _0x12058c=_0x1d41aa;for(var _0x191dea=_0x4a8761>0x1?void 0x0:_0x4a8761?vn(_0x2eb399,_0x10d8a1):_0x2eb399,_0x1688f0=_0x291c2b[_0x12058c(0x25c)]-0x1,_0x1c162e;_0x1688f0>=0x0;_0x1688f0--)(_0x1c162e=_0x291c2b[_0x1688f0])&&(_0x191dea=_0x1c162e(_0x191dea)||_0x191dea);return _0x191dea;},z=(_0x1239fc,_0x1644a7)=>(_0x44f22d,_0x3977e1)=>_0x1644a7(_0x44f22d,_0x3977e1,_0x1239fc);function _0x2222(){const _0x5928fd=['_doCreateSocket','INVITE_CODE_HAS_BEEN_UES','use','LICENSE_DISTRO_REJECTED','send','cursorInfo','178mrkTdo','APPLY_REVISION_CONFILICT','LOGIN_FAILED','univer-flex\x20univer-items-center','[CollaborationDataLoaderController]','collabStatus.notCollab','_refRangeService','YUUMI_ALL_TABLES_IS_INVALID','_eventUnsubscribe','sessionStatus$','complete','DeleteRangeMoveUpCommandId','_handleEvent','_dataLoaderService','INVALID_INVITE_CODE','with','addClipboardHook','getMemberID','invokeId','height','_uiPartsService','fill','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','_updateCollabCursors','toString','YUUMI_SUBSCRIPTION_NOT_FOUND','roomMembers','purple.300','onPointerLeave$','_range','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','getRelativeToViewportCoord','_colorIndex','_ensureSubject','USER_NOT_INVITED_CODE','_saveTaskMap','30962421EEbXcK','_disabled','_shapes','_localCacheService','min','isActive','registerRenderModule','_docSkeleton','LICENSE_MAX_UNITS_EXCEEDED','current','triggerDblclick','_scene','roomMembers$','getAncestorScale','setConfig','_selfUnitIDs','values','ALREADY_EXISTS','getDocRanges','path','_startSheetCollabCursor','params','addEventListener','PENDING','_handleHeartbeatEvent','stringify','_refreshCollabCursors','mask','tag','_scheduleClearOtherTimer','AWAITING_WITH_PENDING','_lastPointer','_online','_registerRenderDependencies','721QDvZEs','assignAColorForMemberID','addHandlerCallback','getCurrentRevOfUnit','_notificationService','YUUMI_CONNECTOR_URL_NOT_FOUND','engine','7480750uuZGZf','measureText','_setupSubUnitSync','CHANGESET_REVISION_CONFILICT','unit','_removeClearOtherTimer','setShapeProps','saveImage','column','_localeService','1em','error','max','onCommandExecuted','HEADER_MENU','collaboration-client.offline-data-not-saved','code','fillStyle','assign','YUUMI_NO_CUBOID_FOR_QUESTION','_cursors','getRenderById','redoState','_sheetSkeletonManagerService','_anchor','activeSheet$','getValue','doc.mutation.rich-text-editing','hasOwnProperty','_onCursorDelete','_collabSessionService','USERS_LEAVE','_initCommandExecutedListener','_logService','createInstance','ENSURE_SNAPSHOT_EXECUTION','UNAUTHENTICATED','Failed','unload','#FFF','transformRemoteChangeset','_hideTimer','from','UNRECOGNIZED','currentColor','48309upaMNB','_syncEditingCollabCursorService','_collabCursorController','0\x200\x2017\x2016','APPLY_REJECT','10ghvQdX','_renderManagerService','beginPath','_cursorInfo$','syncEditingCollabCursor','getConfig','_getMergeRange','onPointerMove$','unsubscribe','_colorAssignService','string','ranges','disposeWithMe','EMAIL_HAS_BEEN_BOUND','FromArray','transformIMECache','_injector','_transformUndoRedoStack','clipPath','_updateSubUnitFromURLParams','_hover','_commandService','data','getColorFromTheme','includes','subunit','_cachedData','LICENSE_IMPORT_SIZE_EXCEEDED','transform','getCurrentSelections','_docTransformStateCacheService','name','clearInterval','_onRefRangeChange','_initEntityListener','getUnhiddenWorksheets','ACTIVE_UNIT_EVENT_CHANNEL','substring','PERMISSION_DENIED','selections','hide','setStateCache','newValue','set','_labelPosition','imageSourceType','off-line-icon_clip0_910_343','_handleLeaveEvent','CONFLICT','subUnitId','getUniverSheetInstance','_send','MOBILE_VERIFY_CODE_MISMATCH','getOwnPropertySymbols','delete','_saveCache','getCollabCursors$','_draw','call','unshift','storage','_unitStatus','transformMutationsWithChangeset','setAlpha','push','reconnect','OnLineIcon','eventID','disableLocalCache','forEach','prototype','collaboration.single-unit.warning','sessionTicket','_getAnchorBounding','colorChannel1','_beforeCloseService','map','entityInit$','_roomMembers$','getMergeData','_initDependencies','entries','getCurrentUnitForType','MUTATION','INVALID_ARGUMENT','concat','pushState','off-line-icon','_onCursorUpdate','getActiveSheet','_transformHistoryAndStateStack','width','actions','apply','WECHAT_HAS_BEEN_BOUND','extend','m2Prime','_initStatusListener','url(#on-line-icon_clip0_910_349)','TEXT','next','_docSkeletonManagerService','_docClipboardService','_entities','focused$','INVITE_CODE_REQUIRED','getCurrent','getSkeleton','skeleton','setItem','onStarting','OffLineIcon','unitId','indexOf','dispose$','[RemoteUniscriptService]:\x20no\x20focused\x20unit','transformByState','pluginName','AWAITING','_cursorShapes','_urlService','_backgroundColor','setParam','YUUMI_RATE_OVER_LIMIT','key','_createSocketURL','SNAPSHOT_INVALID_SNAPSHOT','displayName','UNIVER_COLLABORATION_CLIENT_WEB_PLUGIN','isArray','on-line-icon','_status$','_initStatusComponent','show','collab-client.tooltip.reconnect','popstate','_textBubble','font','_document','_docTransformIMECacheService','_toggleOffline','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','COMPLETION_FINISHED','svg','lineTo','EMAIL_VERIFY_CODE_MISMATCH','INVITE_CODE_ALREADY_BOUND','url(#off-line-icon_clip0_910_343)','UniverIcon','Warning','override','xlink:href','collaboration-client-ui.config','application/json','exhaustSavingTask','has','makeDirty','_initResize','split','replaceDocRanges','getSheetId','168514vsOsSs','_name','SOCKET_FAILED','clearTimeout','green.600','_session','color','white','symbol','_collaborationController','replaceState','saveTaskMap','href','row','CLOSE_ROOM','add','_initEvent','Error','parse','asObservable','on-line-icon_clip0_910_349','attrs','body','getRangePointData','EMAIL_VERIFY_CODE_NOT_FOUND_OR_EXPIRED','startRow','translate(.97)','_revisionService','getCellPositionByOffset','NOT_COLLAB','moveTo','InsertRangeMoveDownCommandId','collabStatus.fetchMiss','_getScale','loadOfflineData','memberID','getOffsetConfig','type','collabStatus.synced','urlChange$','hovered','executeCommand','cursorInfo$','onTransformChange$','collabStatus.syncing','setActiveRange','saveOfflineData','MOBILE_VERIFY_CODE_NOT_FOUND_OR_EXPIRED','findNodePositionByCharIndex','_instanceService','YUUMI_TABLE_NOT_FOUND_IN_UNIT','M0\x200H16V16H0z','InsertRowCommandId','addObjects','getViewport','closePath','defs','_collaborationUIEventService','deepClone','searchParams','FETCH_MISS','get','trim','Unknown\x20user','YUUMI_PROMPT_MAX_TOKENS_EXCEEDED','debug','getFocusedUnit','getTypeOfUnitAdded$','RemoveColCommandId','random','getVpScrollXYInfoByPosToVp','OTHER_CLIENTS_EDITING','APPLY_PERMISSION_DENIED','url(#$1','_drawTextRange','history','getUnitStatus$','20964GzhYMR','updateOfflineData','getParam','univerjs-icon\x20univerjs-icon-','m1Prime','selection','getMember','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','4903340XbjrBG','_anchorDot','NO_OTHER_CLIENTS_EDITING','_handleJoinEvent','onMouseMove','_assignedColors','defIds','ONLINE','...','_heartbeatTimer','bottom','_context','currentTheme$','_imageIoService','getActiveRange','mutations','_configService','origin','10826680edbykB','backgroundColor','_config','black','_clearOtherTimers','JOIN_ROOM_FAILED','_id','getOwnPropertyDescriptor','unitID','size','collab-text-anchor-','evenodd','save','drawWith','className','none','_hovered','SUBMIT_CHANGESET_TIMEOUT','_docStateChangeManagerService','PY_RUNTIME_SCRIPT_ERROR','VIEW_MAIN','_scheduleHeartbeat','onPointerEnter$','APPLY_NON_SEQUENTIAL_REVISION','event$','addObject','result','length','_registerDependencies','round','getUnitId','UNDEFINED','post','_scheduleSaving','textRanges','runId','_themeService','subscribe','_localStorageService','getUndoRedoMutationParamsCache','_handleHover','idSuffix','_entityInit$','arc','loadUnit','_docTransformSelectionsService','registerRefRange','_memberService','onLocalMutation','YUUMI_URL_COL_OUT_OF_RANGE','source','NOT_FOUND','search','then','UNIVER_DOC','TOO_MANY_REQUESTS','permission.content','_messageService','pipe','UPDATE_CURSOR','_unitOnClients','dispose','_transformService','collabCursorState$','ticket','replace','transformStateCache','_httpService','getStateCache','toRgbString','children','init','jiqing.500','_startDocCollabCursor','transformMutation','_color','/run/','some','_toggleOnline','_setupBeforeClosingHandler','http://www.w3.org/2000/svg','collab-rect-range-','getSheetBySheetId','_cursor','location','all','OFFLINE','range','_updateURLWithCurrentState','_collabCursorState$','disposeUnit','div','getTypeOfUnitDisposed$','executionId','top','_drawRectRange','requireSession','subscribeEvent','_removeCollabCursors','fillText','_univerInstanceService','YUUMI_AI_RUN_FAILED','_init','flatMap','OTHER_CLIENT_EDITING','restore','_getSheetObject','univer-mr-2\x20univer-flex\x20univer-text-xl','rgba(255,\x20255,\x20255,\x200.01)','find','YUUMI_UNABLE_LOAD_URL','onRendered','UNIVER_SHEET','collaboration.closeRoom','YUUMI_ASYNCIO_CANCELLED','_updateLocalCursor','isEditing','transformSelections','LICENSE_EXPORT_SIZE_EXCEEDED','defineProperty','_drawAnchor'];_0x2222=function(){return _0x5928fd;};return _0x2222();}let it=class extends _0x305177{constructor(_0x1968d3,_0x3478d5,_0x14333c,_0x5a2c60,_0x5d186c){super(_0x1968d3,_0x3478d5,_0x14333c,_0x5a2c60,_0x5d186c);}async['createSocket'](_0x4c0742){const _0xae711a=_0x1d41aa,_0x5773b6=await this['_getSessionTicket'](),_0x18ae60=this[_0xae711a(0x1b6)](_0x4c0742,_0x5773b6);return this[_0xae711a(0x2ba)](_0x18ae60);}['_createSocketURL'](_0x1256ad,_0x1464ec){const _0x46512d=_0x1d41aa,_0x27f71c=typeof window>'u'?new URL(_0x1256ad):new URL(_0x1256ad,window[_0x46512d(0x295)][_0x46512d(0x240)]);_0x27f71c['searchParams']['set'](_0x46512d(0x387),_0x1464ec);const _0x50fede=typeof window>'u'?new URLSearchParams():new URLSearchParams(window['location'][_0x46512d(0x275)]);return _0x50fede[_0x46512d(0x217)](_0x46512d(0x264))&&_0x27f71c['searchParams']['set'](_0x46512d(0x264),_0x50fede[_0x46512d(0x217)]('runId')),_0x27f71c['toString']();}async['_getSessionTicket'](){const _0x5c10e=_0x1d41aa;var _0x1da45f,_0x4a6214,_0x2184ec;const _0x32795e=this[_0x5c10e(0x23f)]['getConfig'](_0x2cd1d6),_0x488537=(_0x1da45f=_0x32795e==null?void 0x0:_0x32795e['wsSessionTicketUrl'])!=null?_0x1da45f:_0x3fdae3;return(_0x2184ec=(_0x4a6214=(await this[_0x5c10e(0x284)][_0x5c10e(0x217)](_0x488537,{'headers':{'Content-Type':_0x5c10e(0x1d2)}}))[_0x5c10e(0x1f0)])==null?void 0x0:_0x4a6214[_0x5c10e(0x281)])!=null?_0x2184ec:'';}};it=gn([z(0x0,_0xcce005(_0x5c6f4f)),z(0x1,_0xcce005(_0x2febdf)),z(0x2,_0x3022cf),z(0x3,_0x41e6cd),z(0x4,_0x203215)],it);const nt=0x7530,rt=_0x1d41aa(0x363);class Fn extends _0x2800ff{constructor(){const _0x13e908=_0x1d41aa;super(),_(this,_0x13e908(0x247),_0x575d2b()),_(this,_0x13e908(0x2f3),new Set()),_(this,_0x13e908(0x27d),new Map()),_(this,_0x13e908(0x238),null),_(this,_0x13e908(0x245),new Map()),_(this,_0x13e908(0x37c),new Map()),this['_init']();}[_0x1d41aa(0x27e)](){const _0x3fb4eb=_0x1d41aa;super[_0x3fb4eb(0x27e)](),this[_0x3fb4eb(0x245)][_0x3fb4eb(0x384)]((_0x577143,_0x25c08c)=>this[_0x3fb4eb(0x312)](_0x25c08c)),this[_0x3fb4eb(0x238)]&&window[_0x3fb4eb(0x35f)](this[_0x3fb4eb(0x238)]);}[_0x1d41aa(0x226)](_0x510bac){return this['_ensureSubject'](_0x510bac)['pipe'](_0x5c2efb());}['editingUnit'](_0x523aef){const _0x598d70=_0x1d41aa;this['_selfUnitIDs']['size']===0x0&&this[_0x598d70(0x256)](),this['_selfUnitIDs'][_0x598d70(0x1e9)](_0x523aef),this['_send']({'type':0x0,'memberID':this[_0x598d70(0x247)],'unitIDs':[_0x523aef],'isForwarded':!0x1});}[_0x1d41aa(0x29b)](_0x547272){const _0x29f645=_0x1d41aa;this[_0x29f645(0x2f3)][_0x29f645(0x375)](_0x547272),this[_0x29f645(0x2f3)][_0x29f645(0x24a)]===0x0&&this[_0x29f645(0x238)]&&window[_0x29f645(0x35f)](this[_0x29f645(0x238)]);}[_0x1d41aa(0x2a7)](){const _0x2a5545=_0x1d41aa;this['disposeWithMe'](_0x4e6890(_0x21efab(window,_0x2a5545(0x37b))['subscribe'](_0x559e99=>{const _0x1a9587=_0x2a5545;if(_0x559e99[_0x1a9587(0x1b5)]!==rt||!_0x559e99['newValue'])return;const _0x3a4ec2=JSON[_0x1a9587(0x1ec)](_0x559e99[_0x1a9587(0x369)]);this[_0x1a9587(0x2cc)](_0x3a4ec2);}))),window[_0x2a5545(0x2fa)](_0x2a5545(0x333),()=>this[_0x2a5545(0x372)]({'type':0x1,'memberID':this[_0x2a5545(0x247)],'unitIDs':Array[_0x2a5545(0x337)](this[_0x2a5545(0x2f3)])}));}[_0x1d41aa(0x2cc)](_0x1000a5){const _0x4df072=_0x1d41aa;switch(_0x1000a5[_0x4df072(0x1ff)]){case 0x0:this[_0x4df072(0x232)](_0x1000a5);break;case 0x1:this[_0x4df072(0x36e)](_0x1000a5);break;case 0x2:this[_0x4df072(0x2fc)](_0x1000a5);break;}}[_0x1d41aa(0x232)](_0xb06a39){const _0x17cdce=_0x1d41aa,{unitIDs:_0x2d661b,memberID:_0x14fbe5,isForwarded:_0x54459a}=_0xb06a39;_0x2d661b['forEach'](_0x152d06=>{const _0x431465=_0x3072;if(!_0x54459a&&this['_unitOnClients'][_0x431465(0x1d4)](_0x152d06)&&this[_0x431465(0x2e1)](_0x152d06)[_0x431465(0x3a3)](_0x3edfe1[_0x431465(0x221)]),!this[_0x431465(0x27d)][_0x431465(0x1d4)](_0x152d06)||!this['_unitOnClients']['get'](_0x152d06)['has'](_0x14fbe5)){const _0x420dba=this[_0x431465(0x27d)][_0x431465(0x217)](_0x152d06)||new Set();_0x420dba['add'](_0x14fbe5),this['_unitOnClients']['set'](_0x152d06,_0x420dba),this['_scheduleClearOtherTimer'](_0x14fbe5);}}),_0x54459a||this[_0x17cdce(0x372)]({'type':0x0,'memberID':this[_0x17cdce(0x247)],'unitIDs':[...this[_0x17cdce(0x2f3)]],'isForwarded':!0x0});}['_scheduleClearOtherTimer'](_0x132d71){const _0x295e64=_0x1d41aa;this['_removeClearOtherTimer'](_0x132d71);const _0x372209=window['setTimeout'](()=>{const _0x3988fe=_0x3072;this[_0x3988fe(0x27d)][_0x3988fe(0x384)](_0x1fd535=>{const _0xffd714=_0x3988fe;_0x1fd535[_0xffd714(0x375)](_0x132d71);});},nt*0x2);this[_0x295e64(0x245)][_0x295e64(0x36a)](_0x132d71,_0x372209);}[_0x1d41aa(0x312)](_0x30ce5b){const _0x2e9bf2=_0x1d41aa;if(this[_0x2e9bf2(0x245)]['has'](_0x30ce5b)){const _0x127187=this['_clearOtherTimers'][_0x2e9bf2(0x217)](_0x30ce5b);_0x127187&&window[_0x2e9bf2(0x1dd)](_0x127187),this[_0x2e9bf2(0x245)][_0x2e9bf2(0x36a)](_0x30ce5b,null);}}[_0x1d41aa(0x36e)](_0x346e94){const _0x375d52=_0x1d41aa,{memberID:_0x312605,unitIDs:_0x418318}=_0x346e94;_0x418318[_0x375d52(0x384)](_0x3e6f9d=>{const _0x58f543=_0x375d52;var _0x246510;const _0x526dcb=this['_unitOnClients']['get'](_0x3e6f9d);_0x526dcb&&(_0x526dcb[_0x58f543(0x375)](_0x312605),(_0x246510=this[_0x58f543(0x2e1)](_0x3e6f9d))==null||_0x246510[_0x58f543(0x3a3)](_0x526dcb[_0x58f543(0x24a)]===0x0?_0x3edfe1[_0x58f543(0x231)]:_0x3edfe1['OTHER_CLIENTS_EDITING']));}),this[_0x375d52(0x312)](_0x312605);}[_0x1d41aa(0x2fc)](_0x4e40c1){const _0x1fe54c=_0x1d41aa;this[_0x1fe54c(0x301)](_0x4e40c1[_0x1fe54c(0x1fd)]);}[_0x1d41aa(0x372)](_0x5a7274){const _0xca772e=_0x1d41aa;localStorage[_0xca772e(0x1a6)](rt,JSON[_0xca772e(0x2fd)](_0x5a7274));}[_0x1d41aa(0x256)](){const _0x308d1d=_0x1d41aa;this[_0x308d1d(0x238)]=window['setInterval'](()=>{const _0x53ca1f=_0x308d1d;this['_send']({'type':0x2,'memberID':this[_0x53ca1f(0x247)]});},nt);}['_ensureSubject'](_0x17746b){const _0x59831c=_0x1d41aa;return this[_0x59831c(0x37c)][_0x59831c(0x1d4)](_0x17746b)||this[_0x59831c(0x37c)][_0x59831c(0x36a)](_0x17746b,new _0x5a2de1(_0x3edfe1[_0x59831c(0x231)])),this['_unitStatus']['get'](_0x17746b);}}var Lt=(_0x3d4376=>(_0x3d4376[_0x3d4376['UNDEFINED']=0x0]=_0x1d41aa(0x260),_0x3d4376[_0x3d4376['OK']=0x1]='OK',_0x3d4376[_0x3d4376['INTERNAL_ERROR']=0x2]='INTERNAL_ERROR',_0x3d4376[_0x3d4376[_0x1d41aa(0x365)]=0x3]=_0x1d41aa(0x365),_0x3d4376[_0x3d4376[_0x1d41aa(0x274)]=0x4]=_0x1d41aa(0x274),_0x3d4376[_0x3d4376[_0x1d41aa(0x331)]=0x5]=_0x1d41aa(0x331),_0x3d4376[_0x3d4376[_0x1d41aa(0x2f5)]=0x6]=_0x1d41aa(0x2f5),_0x3d4376[_0x3d4376[_0x1d41aa(0x393)]=0x7]=_0x1d41aa(0x393),_0x3d4376[_0x3d4376[_0x1d41aa(0x278)]=0x8]=_0x1d41aa(0x278),_0x3d4376[_0x3d4376['COMPLETION_FINISHED']=0x9]=_0x1d41aa(0x1c7),_0x3d4376[_0x3d4376[_0x1d41aa(0x2c2)]=0xa]=_0x1d41aa(0x2c2),_0x3d4376[_0x3d4376[_0x1d41aa(0x373)]=0xb]=_0x1d41aa(0x373),_0x3d4376[_0x3d4376[_0x1d41aa(0x209)]=0xc]=_0x1d41aa(0x209),_0x3d4376[_0x3d4376[_0x1d41aa(0x1ca)]=0xd]=_0x1d41aa(0x1ca),_0x3d4376[_0x3d4376[_0x1d41aa(0x1f2)]=0xe]=_0x1d41aa(0x1f2),_0x3d4376[_0x3d4376[_0x1d41aa(0x310)]=0x1389]=_0x1d41aa(0x310),_0x3d4376[_0x3d4376[_0x1d41aa(0x1b7)]=0x1771]=_0x1d41aa(0x1b7),_0x3d4376[_0x3d4376['SNAPSHOT_HAS_BEEN_REMOVED']=0x1772]='SNAPSHOT_HAS_BEEN_REMOVED',_0x3d4376[_0x3d4376[_0x1d41aa(0x330)]=0x1773]=_0x1d41aa(0x330),_0x3d4376[_0x3d4376['APPLY_REJECT']=0x1b59]=_0x1d41aa(0x33e),_0x3d4376[_0x3d4376[_0x1d41aa(0x258)]=0x1b5a]='APPLY_NON_SEQUENTIAL_REVISION',_0x3d4376[_0x3d4376[_0x1d41aa(0x2c1)]=0x1b5b]='APPLY_REVISION_CONFILICT',_0x3d4376[_0x3d4376[_0x1d41aa(0x222)]=0x1b5c]='APPLY_PERMISSION_DENIED',_0x3d4376[_0x3d4376['APPLY_DUPLICATED']=0x1b5d]='APPLY_DUPLICATED',_0x3d4376[_0x3d4376['CONNECTOR_DATA_TOO_LARGE']=0x1f41]='CONNECTOR_DATA_TOO_LARGE',_0x3d4376[_0x3d4376[_0x1d41aa(0x2ec)]=0x2329]='LICENSE_MAX_UNITS_EXCEEDED',_0x3d4376[_0x3d4376[_0x1d41aa(0x2d6)]=0x232a]=_0x1d41aa(0x2d6),_0x3d4376[_0x3d4376[_0x1d41aa(0x35a)]=0x232b]=_0x1d41aa(0x35a),_0x3d4376[_0x3d4376['LICENSE_EXPORT_SIZE_EXCEEDED']=0x232c]=_0x1d41aa(0x2b7),_0x3d4376[_0x3d4376[_0x1d41aa(0x2bd)]=0x232d]=_0x1d41aa(0x2bd),_0x3d4376[_0x3d4376[_0x1d41aa(0x2af)]=0x2711]=_0x1d41aa(0x2af),_0x3d4376[_0x3d4376['YUUMI_URL_COL_OUT_OF_RANGE']=0x2712]=_0x1d41aa(0x272),_0x3d4376[_0x3d4376[_0x1d41aa(0x1b4)]=0x2713]=_0x1d41aa(0x1b4),_0x3d4376[_0x3d4376['YUUMI_SUBSCRIPTION_NOT_FOUND']=0x2714]=_0x1d41aa(0x2d9),_0x3d4376[_0x3d4376[_0x1d41aa(0x320)]=0x271a]='YUUMI_NO_CUBOID_FOR_QUESTION',_0x3d4376[_0x3d4376[_0x1d41aa(0x2b3)]=0x271b]=_0x1d41aa(0x2b3),_0x3d4376[_0x3d4376[_0x1d41aa(0x20c)]=0x271c]=_0x1d41aa(0x20c),_0x3d4376[_0x3d4376[_0x1d41aa(0x2c7)]=0x271d]='YUUMI_ALL_TABLES_IS_INVALID',_0x3d4376[_0x3d4376[_0x1d41aa(0x21a)]=0x271e]=_0x1d41aa(0x21a),_0x3d4376[_0x3d4376[_0x1d41aa(0x2a6)]=0x271f]='YUUMI_AI_RUN_FAILED',_0x3d4376[_0x3d4376['YUUMI_CONNECTOR_URL_NOT_FOUND']=0x2720]=_0x1d41aa(0x30b),_0x3d4376[_0x3d4376[_0x1d41aa(0x254)]=0x2af9]=_0x1d41aa(0x254),_0x3d4376[_0x3d4376[_0x1d41aa(0x2bb)]=0x2ee1]=_0x1d41aa(0x2bb),_0x3d4376[_0x3d4376[_0x1d41aa(0x2ce)]=0x2ee2]=_0x1d41aa(0x2ce),_0x3d4376[_0x3d4376[_0x1d41aa(0x1a2)]=0x2ee3]=_0x1d41aa(0x1a2),_0x3d4376[_0x3d4376[_0x1d41aa(0x2e2)]=0x2ee4]=_0x1d41aa(0x2e2),_0x3d4376[_0x3d4376[_0x1d41aa(0x1cb)]=0x2ee5]=_0x1d41aa(0x1cb),_0x3d4376[_0x3d4376[_0x1d41aa(0x39d)]=0x32c9]=_0x1d41aa(0x39d),_0x3d4376[_0x3d4376['MOBILE_HAS_BEEN_BOUND']=0x32ca]='MOBILE_HAS_BEEN_BOUND',_0x3d4376[_0x3d4376['EMAIL_HAS_BEEN_BOUND']=0x32cb]=_0x1d41aa(0x34c),_0x3d4376[_0x3d4376['UNRECOGNIZED']=-0x1]=_0x1d41aa(0x338),_0x3d4376))(Lt||{}),pn=Object['getOwnPropertyDescriptor'],Cn=(_0x49e0e9,_0x2b3960,_0x2a110d,_0x517fa2)=>{const _0x302117=_0x1d41aa;for(var _0x3a86f9=_0x517fa2>0x1?void 0x0:_0x517fa2?pn(_0x2b3960,_0x2a110d):_0x2b3960,_0x1f2d9f=_0x49e0e9[_0x302117(0x25c)]-0x1,_0x4dcc69;_0x1f2d9f>=0x0;_0x1f2d9f--)(_0x4dcc69=_0x49e0e9[_0x1f2d9f])&&(_0x3a86f9=_0x4dcc69(_0x3a86f9)||_0x3a86f9);return _0x3a86f9;},be=(_0x394d9c,_0x12cd14)=>(_0x588fa1,_0x222063)=>_0x12cd14(_0x588fa1,_0x222063,_0x394d9c);let ot=class extends _0x2800ff{constructor(_0x51db2b,_0x31bb5a,_0x3f0a82){const _0x3e4e0c=_0x1d41aa;super(),this[_0x3e4e0c(0x20b)]=_0x51db2b,this[_0x3e4e0c(0x284)]=_0x31bb5a,this[_0x3e4e0c(0x23f)]=_0x3f0a82;}async['runOnServer'](_0x191f39,_0x7b91c5,_0x25d0d7,..._0x461a42){const _0x1ca97d=_0x1d41aa;var _0xd7d105,_0x45f71c,_0x11acf9,_0xef770c;const _0x4728ff=this[_0x1ca97d(0x20b)]['getFocusedUnit']();if(!_0x4728ff)throw new Error(_0x1ca97d(0x1ac));const _0x22d406=((_0xd7d105=this[_0x1ca97d(0x23f)][_0x1ca97d(0x344)](_0x47d86e))!=null?_0xd7d105:_0x5dcb76)+'/'+_0x191f39+_0x1ca97d(0x28d)+_0x7b91c5,_0x25e00c=new URL(window[_0x1ca97d(0x295)][_0x1ca97d(0x1e6)]),_0x487443={'scriptId':_0x191f39,'runId':(_0x45f71c=_0x25e00c[_0x1ca97d(0x215)]['get'](_0x1ca97d(0x264)))!=null?_0x45f71c:'','function':_0x7b91c5,'unitId':_0x4728ff[_0x1ca97d(0x25f)](),'argsOfFunction':JSON[_0x1ca97d(0x2fd)](_0x461a42),'invokeId':(_0x11acf9=_0x25d0d7[_0x1ca97d(0x2d2)])!=null?_0x11acf9:'','executionId':(_0xef770c=_0x25d0d7[_0x1ca97d(0x29e)])!=null?_0xef770c:''};try{const _0x20c4c8=await this[_0x1ca97d(0x284)][_0x1ca97d(0x261)](_0x22d406,{'body':_0x487443});return _0x20c4c8[_0x1ca97d(0x1f0)][_0x1ca97d(0x318)]&&_0x20c4c8['body'][_0x1ca97d(0x318)][_0x1ca97d(0x31d)]!==Lt['OK']?_0x1ca97d(0x332):_0x20c4c8[_0x1ca97d(0x1f0)][_0x1ca97d(0x25b)];}catch{return _0x1ca97d(0x332);}}};ot=Cn([be(0x0,_0x3c49dc),be(0x1,_0xcce005(_0x2febdf)),be(0x2,_0x3022cf)],ot);export{it as BrowserCollaborationSocketService,ne as CollaborationDataLoaderController,se as DesktopCollaborationStatusDisplayController,Mt as IURLService,ot as RemoteUniscriptService,wi as SheetCollabCursorShape,Ae as UniverCollaborationClientUIPlugin,Fn as WebBrowserSingleActiveUnitService,hn as WebURLService};
@@ -1 +1 @@
1
- const _0x9e1e20=_0x5c54;(function(_0x553077,_0x5ad6a4){const _0x2c0ae3=_0x5c54,_0xa9faf1=_0x553077();while(!![]){try{const _0x1126d9=-parseInt(_0x2c0ae3(0x1bd))/0x1*(-parseInt(_0x2c0ae3(0x1c2))/0x2)+parseInt(_0x2c0ae3(0x1b9))/0x3+parseInt(_0x2c0ae3(0x1bc))/0x4+-parseInt(_0x2c0ae3(0x1b6))/0x5*(-parseInt(_0x2c0ae3(0x1b4))/0x6)+parseInt(_0x2c0ae3(0x1c8))/0x7+-parseInt(_0x2c0ae3(0x1c3))/0x8*(-parseInt(_0x2c0ae3(0x1c5))/0x9)+-parseInt(_0x2c0ae3(0x1b8))/0xa;if(_0x1126d9===_0x5ad6a4)break;else _0xa9faf1['push'](_0xa9faf1['shift']());}catch(_0x3bc835){_0xa9faf1['push'](_0xa9faf1['shift']());}}}(_0x48be,0xe04b0));function _0x5c54(_0x4ced70,_0x5c87bd){const _0x48be33=_0x48be();return _0x5c54=function(_0x5c54c9,_0x23f85a){_0x5c54c9=_0x5c54c9-0x1b4;let _0xd1035f=_0x48be33[_0x5c54c9];return _0xd1035f;},_0x5c54(_0x4ced70,_0x5c87bd);}const e={'collab-client':{'tooltip':{'reconnect':_0x9e1e20(0x1be)}},'collabStatus':{'fetchMiss':'Syncing\x20server\x20data...','conflict':_0x9e1e20(0x1bb),'notCollab':'Local\x20file','synced':_0x9e1e20(0x1c1),'syncing':_0x9e1e20(0x1c0),'offline':_0x9e1e20(0x1bf)},'session':{'connection-failed':'Connection\x20failed,\x20please\x20check\x20your\x20network.','will-retry':_0x9e1e20(0x1b5),'room-full':'Collaboration\x20room\x20is\x20full.\x20You\x20edits\x20would\x20be\x20saved\x20locally.','collaboration-timeout':_0x9e1e20(0x1c6)},'conflict':{'title':_0x9e1e20(0x1ba),'content':_0x9e1e20(0x1c9)},'permission':{'title':_0x9e1e20(0x1b7),'content':'Your\x20actions\x20are\x20conflicting\x20with\x20the\x20server\x27s\x20permissions.\x20Please\x20save\x20your\x20local\x20edits\x20elsewhere\x20as\x20they\x20will\x20be\x20discarded\x20after\x20refreshing\x20the\x20page.'},'collaboration':{'single-unit':{'warning':'You\x20opened\x20the\x20same\x20file\x20in\x20another\x20tab.\x20In\x20case\x20of\x20data\x20missing,\x20you\x20cannot\x20edit\x20on\x20this\x20tab.'},'closeRoom':_0x9e1e20(0x1c4)},'auth':{'needGotoLoginAlert':_0x9e1e20(0x1c7)}},o=e;export{o as default};function _0x48be(){const _0x2749c0=['64vMCuMG','Editing\x20privileges\x20were\x20revoked\x20because\x20the\x20collaborative\x20room\x20was\x20closed.','1393182ZZJlXx','The\x20server\x20is\x20not\x20responding\x20to\x20your\x20collaboration\x20request.\x20Your\x20edits\x20would\x20be\x20saved\x20locally.','Your\x20login\x20has\x20expired,\x20click\x20OK\x20to\x20re-login,\x20click\x20Cancel\x20to\x20save\x20your\x20local\x20edits.','3653405jSJgcY','There\x20is\x20a\x20conflict\x20between\x20your\x20local\x20copy\x20and\x20the\x20copy\x20on\x20the\x20server.\x20Please\x20save\x20your\x20local\x20edits,\x20because\x20they\x20will\x20be\x20lost\x20when\x20you\x20reload\x20the\x20page.','10008852GZMPgl','Connection\x20failed,\x20we\x20retry\x20in\x20a\x20while.','5RozZMP','Authentication\x20Error','46613430WDPFTL','5014398VsImvw','Collaboration\x20Conflict','Edit\x20conflicts','854540BWepEl','88835YVJFcu','Click\x20to\x20Reconnect','Offline,\x20edits\x20would\x20be\x20save\x20on\x20local','Syncing...','Synced','6DorMQA'];_0x48be=function(){return _0x2749c0;};return _0x48be();}
1
+ const _0x9dfed6=_0x3756;(function(_0x3a9f9a,_0x3d3f99){const _0x34e9be=_0x3756,_0x37529a=_0x3a9f9a();while(!![]){try{const _0x4ecbe1=-parseInt(_0x34e9be(0x103))/0x1+-parseInt(_0x34e9be(0xfc))/0x2*(parseInt(_0x34e9be(0x10d))/0x3)+-parseInt(_0x34e9be(0xfb))/0x4*(parseInt(_0x34e9be(0x109))/0x5)+-parseInt(_0x34e9be(0x10a))/0x6*(-parseInt(_0x34e9be(0x101))/0x7)+parseInt(_0x34e9be(0x107))/0x8+parseInt(_0x34e9be(0x104))/0x9+-parseInt(_0x34e9be(0xf9))/0xa*(-parseInt(_0x34e9be(0x10c))/0xb);if(_0x4ecbe1===_0x3d3f99)break;else _0x37529a['push'](_0x37529a['shift']());}catch(_0x5bbcf1){_0x37529a['push'](_0x37529a['shift']());}}}(_0x4523,0xaca65));function _0x3756(_0x2aae98,_0x55ae89){const _0x4523f4=_0x4523();return _0x3756=function(_0x3756df,_0x1fc407){_0x3756df=_0x3756df-0xf5;let _0x182144=_0x4523f4[_0x3756df];return _0x182144;},_0x3756(_0x2aae98,_0x55ae89);}const e={'collab-client':{'tooltip':{'reconnect':_0x9dfed6(0x108)}},'collabStatus':{'fetchMiss':'Syncing\x20server\x20data...','conflict':_0x9dfed6(0xf8),'notCollab':_0x9dfed6(0xfd),'synced':'Synced','syncing':'Syncing...','offline':_0x9dfed6(0xff)},'session':{'connection-failed':'Connection\x20failed,\x20please\x20check\x20your\x20network.','will-retry':_0x9dfed6(0xf6),'room-full':_0x9dfed6(0x100),'collaboration-timeout':_0x9dfed6(0x105)},'conflict':{'title':_0x9dfed6(0xf5),'content':_0x9dfed6(0x102)},'permission':{'title':_0x9dfed6(0xf7),'content':_0x9dfed6(0xfe)},'collaboration':{'single-unit':{'warning':_0x9dfed6(0x106)},'closeRoom':_0x9dfed6(0x10b)},'auth':{'needGotoLoginAlert':_0x9dfed6(0xfa)}},o=e;function _0x4523(){const _0xff85b6=['The\x20server\x20is\x20not\x20responding\x20to\x20your\x20collaboration\x20request.\x20Your\x20edits\x20would\x20be\x20saved\x20locally.','You\x20opened\x20the\x20same\x20file\x20in\x20another\x20tab.\x20In\x20case\x20of\x20data\x20missing,\x20you\x20cannot\x20edit\x20on\x20this\x20tab.','5759744PlbqsA','Click\x20to\x20Reconnect','2095AarxVs','18xUcdJB','Editing\x20privileges\x20were\x20revoked\x20because\x20the\x20collaborative\x20room\x20was\x20closed.','11hMMdXF','4071TOfZMa','Collaboration\x20Conflict','Connection\x20failed,\x20we\x20retry\x20in\x20a\x20while.','Authentication\x20Error','Edit\x20conflicts','14206030kDeDKv','Your\x20login\x20has\x20expired,\x20click\x20OK\x20to\x20re-login,\x20click\x20Cancel\x20to\x20save\x20your\x20local\x20edits.','6584PXqIrf','376dPYTJz','Local\x20file','Your\x20actions\x20are\x20conflicting\x20with\x20the\x20server\x27s\x20permissions.\x20Please\x20save\x20your\x20local\x20edits\x20elsewhere\x20as\x20they\x20will\x20be\x20discarded\x20after\x20refreshing\x20the\x20page.','Offline,\x20edits\x20would\x20be\x20save\x20on\x20local','Collaboration\x20room\x20is\x20full.\x20You\x20edits\x20would\x20be\x20saved\x20locally.','92183wHMDWh','There\x20is\x20a\x20conflict\x20between\x20your\x20local\x20copy\x20and\x20the\x20copy\x20on\x20the\x20server.\x20Please\x20save\x20your\x20local\x20edits,\x20because\x20they\x20will\x20be\x20lost\x20when\x20you\x20reload\x20the\x20page.','587755JwsFsS','536760tcsIYZ'];_0x4523=function(){return _0xff85b6;};return _0x4523();}export{o as default};
@@ -1 +1 @@
1
- const _0x56fba3=_0xd32f;(function(_0x1bc5cd,_0x300d1b){const _0x3efb04=_0xd32f,_0x78130a=_0x1bc5cd();while(!![]){try{const _0x15dc1f=parseInt(_0x3efb04(0x1c1))/0x1+parseInt(_0x3efb04(0x1b2))/0x2*(parseInt(_0x3efb04(0x1b4))/0x3)+parseInt(_0x3efb04(0x1c4))/0x4+-parseInt(_0x3efb04(0x1c6))/0x5*(-parseInt(_0x3efb04(0x1b6))/0x6)+parseInt(_0x3efb04(0x1c0))/0x7+-parseInt(_0x3efb04(0x1b9))/0x8*(-parseInt(_0x3efb04(0x1b3))/0x9)+parseInt(_0x3efb04(0x1b0))/0xa*(-parseInt(_0x3efb04(0x1b7))/0xb);if(_0x15dc1f===_0x300d1b)break;else _0x78130a['push'](_0x78130a['shift']());}catch(_0x397f1c){_0x78130a['push'](_0x78130a['shift']());}}}(_0xe14b,0xa9e2d));const e={'collab-client':{'tooltip':{'reconnect':_0x56fba3(0x1c3)}},'collabStatus':{'fetchMiss':_0x56fba3(0x1bf),'conflict':_0x56fba3(0x1b8),'notCollab':_0x56fba3(0x1bc),'synced':_0x56fba3(0x1ae),'syncing':_0x56fba3(0x1c2),'offline':_0x56fba3(0x1ba)},'session':{'connection-failed':_0x56fba3(0x1bb),'will-retry':'Connection\x20failed,\x20we\x20retry\x20in\x20a\x20while.','room-full':'Collaboration\x20room\x20is\x20full.\x20You\x20edits\x20would\x20be\x20saved\x20locally.','collaboration-timeout':'The\x20server\x20is\x20not\x20responding\x20to\x20your\x20collaboration\x20request.\x20Your\x20edits\x20would\x20be\x20saved\x20locally.'},'conflict':{'title':_0x56fba3(0x1af),'content':_0x56fba3(0x1c5)},'permission':{'title':_0x56fba3(0x1bd),'content':_0x56fba3(0x1b5)},'collaboration':{'single-unit':{'warning':_0x56fba3(0x1b1)},'closeRoom':_0x56fba3(0x1be)},'auth':{'needGotoLoginAlert':'Your\x20login\x20has\x20expired,\x20click\x20OK\x20to\x20re-login,\x20click\x20Cancel\x20to\x20save\x20your\x20local\x20edits.'}};function _0xe14b(){const _0x39509f=['There\x20is\x20a\x20conflict\x20between\x20your\x20local\x20copy\x20and\x20the\x20copy\x20on\x20the\x20server.\x20Please\x20save\x20your\x20local\x20edits,\x20because\x20they\x20will\x20be\x20lost\x20when\x20you\x20reload\x20the\x20page.','5cMkDtF','Synced','Collaboration\x20Conflict','40tNXRFM','You\x20opened\x20the\x20same\x20file\x20in\x20another\x20tab.\x20In\x20case\x20of\x20data\x20missing,\x20you\x20cannot\x20edit\x20on\x20this\x20tab.','738356HTsRuL','1298979WFDyca','3sRghuZ','Your\x20actions\x20are\x20conflicting\x20with\x20the\x20server\x27s\x20permissions.\x20Please\x20save\x20your\x20local\x20edits\x20elsewhere\x20as\x20they\x20will\x20be\x20discarded\x20after\x20refreshing\x20the\x20page.','5244450RXEtUH','6835642DPeggt','Edit\x20conflicts','8LkMFsB','Offline,\x20edits\x20would\x20be\x20save\x20on\x20local','Connection\x20failed,\x20please\x20check\x20your\x20network.','Local\x20file','Authentication\x20Error','Editing\x20privileges\x20were\x20revoked\x20because\x20the\x20collaborative\x20room\x20was\x20closed.','Syncing\x20server\x20data...','8149176IDWwCA','116481lzuGMP','Syncing...','Click\x20to\x20Reconnect','2053232jsLwzn'];_0xe14b=function(){return _0x39509f;};return _0xe14b();}function _0xd32f(_0x56f74c,_0x3c6325){const _0xe14b5e=_0xe14b();return _0xd32f=function(_0xd32f30,_0x3a686c){_0xd32f30=_0xd32f30-0x1ae;let _0x7f2d93=_0xe14b5e[_0xd32f30];return _0x7f2d93;},_0xd32f(_0x56f74c,_0x3c6325);}export{e as default};
1
+ const _0x1c731e=_0x2ba2;(function(_0x31666c,_0x2d8db2){const _0x1eb7e2=_0x2ba2,_0xc218b5=_0x31666c();while(!![]){try{const _0x578d83=parseInt(_0x1eb7e2(0x79))/0x1*(parseInt(_0x1eb7e2(0x6b))/0x2)+-parseInt(_0x1eb7e2(0x77))/0x3+-parseInt(_0x1eb7e2(0x75))/0x4+-parseInt(_0x1eb7e2(0x6a))/0x5+-parseInt(_0x1eb7e2(0x76))/0x6+-parseInt(_0x1eb7e2(0x6d))/0x7+parseInt(_0x1eb7e2(0x68))/0x8;if(_0x578d83===_0x2d8db2)break;else _0xc218b5['push'](_0xc218b5['shift']());}catch(_0x18f085){_0xc218b5['push'](_0xc218b5['shift']());}}}(_0x41e5,0x76924));function _0x41e5(){const _0x50afe=['Connection\x20failed,\x20please\x20check\x20your\x20network.','Collaboration\x20Conflict','The\x20server\x20is\x20not\x20responding\x20to\x20your\x20collaboration\x20request.\x20Your\x20edits\x20would\x20be\x20saved\x20locally.','Connection\x20failed,\x20we\x20retry\x20in\x20a\x20while.','Editing\x20privileges\x20were\x20revoked\x20because\x20the\x20collaborative\x20room\x20was\x20closed.','Your\x20login\x20has\x20expired,\x20click\x20OK\x20to\x20re-login,\x20click\x20Cancel\x20to\x20save\x20your\x20local\x20edits.','2697508HwwxxN','870870xXOrDJ','1277778fnEUsn','Syncing\x20server\x20data...','43RdzKRV','Collaboration\x20room\x20is\x20full.\x20You\x20edits\x20would\x20be\x20saved\x20locally.','Authentication\x20Error','10732168SsvhXw','Synced','298880tVWMJm','43302COChrV','Local\x20file','3371354OgpTdN','You\x20opened\x20the\x20same\x20file\x20in\x20another\x20tab.\x20In\x20case\x20of\x20data\x20missing,\x20you\x20cannot\x20edit\x20on\x20this\x20tab.'];_0x41e5=function(){return _0x50afe;};return _0x41e5();}function _0x2ba2(_0x27b6cc,_0x522614){const _0x41e593=_0x41e5();return _0x2ba2=function(_0x2ba26a,_0x560f73){_0x2ba26a=_0x2ba26a-0x67;let _0x154514=_0x41e593[_0x2ba26a];return _0x154514;},_0x2ba2(_0x27b6cc,_0x522614);}const e={'collab-client':{'tooltip':{'reconnect':'Click\x20to\x20Reconnect'}},'collabStatus':{'fetchMiss':_0x1c731e(0x78),'conflict':'Edit\x20conflicts','notCollab':_0x1c731e(0x6c),'synced':_0x1c731e(0x69),'syncing':'Syncing...','offline':'Offline,\x20edits\x20would\x20be\x20save\x20on\x20local'},'session':{'connection-failed':_0x1c731e(0x6f),'will-retry':_0x1c731e(0x72),'room-full':_0x1c731e(0x7a),'collaboration-timeout':_0x1c731e(0x71)},'conflict':{'title':_0x1c731e(0x70),'content':'There\x20is\x20a\x20conflict\x20between\x20your\x20local\x20copy\x20and\x20the\x20copy\x20on\x20the\x20server.\x20Please\x20save\x20your\x20local\x20edits,\x20because\x20they\x20will\x20be\x20lost\x20when\x20you\x20reload\x20the\x20page.'},'permission':{'title':_0x1c731e(0x67),'content':'Your\x20actions\x20are\x20conflicting\x20with\x20the\x20server\x27s\x20permissions.\x20Please\x20save\x20your\x20local\x20edits\x20elsewhere\x20as\x20they\x20will\x20be\x20discarded\x20after\x20refreshing\x20the\x20page.'},'collaboration':{'single-unit':{'warning':_0x1c731e(0x6e)},'closeRoom':_0x1c731e(0x73)},'auth':{'needGotoLoginAlert':_0x1c731e(0x74)}};export{e as default};