@univerjs-pro/collaboration-client 1.0.0-alpha.3 → 1.0.0-alpha.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/cjs/facade.js +1 -1
- package/lib/cjs/index.js +1 -1
- package/lib/cjs/locale/ar-SA.js +1 -1
- package/lib/cjs/locale/ca-ES.js +1 -1
- package/lib/cjs/locale/de-DE.js +1 -1
- package/lib/cjs/locale/en-US.js +1 -1
- package/lib/cjs/locale/es-ES.js +1 -1
- package/lib/cjs/locale/fa-IR.js +1 -1
- package/lib/cjs/locale/fr-FR.js +1 -1
- package/lib/cjs/locale/id-ID.js +1 -1
- package/lib/cjs/locale/it-IT.js +1 -1
- package/lib/cjs/locale/ja-JP.js +1 -1
- package/lib/cjs/locale/ko-KR.js +1 -1
- package/lib/cjs/locale/pl-PL.js +1 -1
- package/lib/cjs/locale/pt-BR.js +1 -1
- package/lib/cjs/locale/ru-RU.js +1 -1
- package/lib/cjs/locale/sk-SK.js +1 -1
- package/lib/cjs/locale/vi-VN.js +1 -1
- package/lib/cjs/locale/zh-CN.js +1 -1
- package/lib/cjs/locale/zh-HK.js +1 -1
- package/lib/cjs/locale/zh-TW.js +1 -1
- package/lib/es/facade.js +1 -1
- package/lib/es/index.js +1 -1
- package/lib/es/locale/ar-SA.js +1 -1
- package/lib/es/locale/ca-ES.js +1 -1
- package/lib/es/locale/de-DE.js +1 -1
- package/lib/es/locale/en-US.js +1 -1
- package/lib/es/locale/es-ES.js +1 -1
- package/lib/es/locale/fa-IR.js +1 -1
- package/lib/es/locale/fr-FR.js +1 -1
- package/lib/es/locale/id-ID.js +1 -1
- package/lib/es/locale/it-IT.js +1 -1
- package/lib/es/locale/ja-JP.js +1 -1
- package/lib/es/locale/ko-KR.js +1 -1
- package/lib/es/locale/pl-PL.js +1 -1
- package/lib/es/locale/pt-BR.js +1 -1
- package/lib/es/locale/ru-RU.js +1 -1
- package/lib/es/locale/sk-SK.js +1 -1
- package/lib/es/locale/vi-VN.js +1 -1
- package/lib/es/locale/zh-CN.js +1 -1
- package/lib/es/locale/zh-HK.js +1 -1
- package/lib/es/locale/zh-TW.js +1 -1
- package/lib/facade.js +1 -1
- package/lib/index.js +1 -1
- package/lib/locale/ar-SA.js +1 -1
- package/lib/locale/ca-ES.js +1 -1
- package/lib/locale/de-DE.js +1 -1
- package/lib/locale/en-US.js +1 -1
- package/lib/locale/es-ES.js +1 -1
- package/lib/locale/fa-IR.js +1 -1
- package/lib/locale/fr-FR.js +1 -1
- package/lib/locale/id-ID.js +1 -1
- package/lib/locale/it-IT.js +1 -1
- package/lib/locale/ja-JP.js +1 -1
- package/lib/locale/ko-KR.js +1 -1
- package/lib/locale/pl-PL.js +1 -1
- package/lib/locale/pt-BR.js +1 -1
- package/lib/locale/ru-RU.js +1 -1
- package/lib/locale/sk-SK.js +1 -1
- package/lib/locale/vi-VN.js +1 -1
- package/lib/locale/zh-CN.js +1 -1
- package/lib/locale/zh-HK.js +1 -1
- package/lib/locale/zh-TW.js +1 -1
- package/lib/types/controllers/collaboration/collaboration-entity.d.ts +2 -2
- package/lib/types/services/data-loader/data-loader.service.d.ts +1 -1
- package/lib/umd/facade.js +1 -1
- package/lib/umd/index.js +1 -1
- package/lib/umd/locale/ar-SA.js +1 -1
- package/lib/umd/locale/ca-ES.js +1 -1
- package/lib/umd/locale/de-DE.js +1 -1
- package/lib/umd/locale/en-US.js +1 -1
- package/lib/umd/locale/es-ES.js +1 -1
- package/lib/umd/locale/fa-IR.js +1 -1
- package/lib/umd/locale/fr-FR.js +1 -1
- package/lib/umd/locale/id-ID.js +1 -1
- package/lib/umd/locale/it-IT.js +1 -1
- package/lib/umd/locale/ja-JP.js +1 -1
- package/lib/umd/locale/ko-KR.js +1 -1
- package/lib/umd/locale/pl-PL.js +1 -1
- package/lib/umd/locale/pt-BR.js +1 -1
- package/lib/umd/locale/ru-RU.js +1 -1
- package/lib/umd/locale/sk-SK.js +1 -1
- package/lib/umd/locale/vi-VN.js +1 -1
- package/lib/umd/locale/zh-CN.js +1 -1
- package/lib/umd/locale/zh-HK.js +1 -1
- package/lib/umd/locale/zh-TW.js +1 -1
- package/package.json +14 -14
package/lib/es/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x3c69ef=_0x43c7;(function(_0x41ec24,_0x380d63){const _0x15f7a2=_0x43c7,_0x176c06=_0x41ec24();while(!![]){try{const _0x22fe91=-parseInt(_0x15f7a2(0x39c))/0x1*(-parseInt(_0x15f7a2(0x21b))/0x2)+parseInt(_0x15f7a2(0x404))/0x3*(parseInt(_0x15f7a2(0x307))/0x4)+parseInt(_0x15f7a2(0x1e6))/0x5+parseInt(_0x15f7a2(0x1aa))/0x6+parseInt(_0x15f7a2(0x264))/0x7+parseInt(_0x15f7a2(0x2dc))/0x8+-parseInt(_0x15f7a2(0x361))/0x9;if(_0x22fe91===_0x380d63)break;else _0x176c06['push'](_0x176c06['shift']());}catch(_0x576bf1){_0x176c06['push'](_0x176c06['shift']());}}}(_0x36d7,0x186d6));import{CollaborationEvent as _0x43102b,CompressMutationService as _0x4e166f,EmptyMutationInfo as _0x59ed8b,ISnapshotServerService as _0xf3e9c6,ITransformService as _0x3a995f,RevisionService as _0x2d7797,SnapshotService as _0x45d3b5,UniverCollaborationPlugin as _0x493098,b64DecodeUnicode as _0x14b14d,isTransformChangesetsSuccess as _0x23d0df,isTransformMutationsWithChangesetFailure as _0x18826e,isTransformMutationsWithChangesetSuccess as _0x30d694,mapDocumentTypeToUniverInstanceType as _0x4e1660,parseChangesetToProtocol as _0x4835ca,parseProtocolChangeset as _0x131ca5,textEncoder as _0x9afde9,uuidv4 as _0x15262c}from'@univerjs-pro/collaboration';import{CommandType as _0x537f94,DependentOn as _0x25f04d,Disposable as _0x1c670c,DisposableCollection as _0x4fc3ed,IAuthzIoService as _0x3c91dc,ICommandService as _0x4705e0,IConfigService as _0x1f37e4,IContextService as _0x6a8ee3,IImageIoService as _0x80c08d,ILogService as _0x5c3e7f,IMentionIOService as _0x3ae42a,IPermissionService as _0x36da45,IUndoRedoService as _0x4aa991,IUniverInstanceService as _0x344fe1,ImageSourceType as _0xb1e59a,ImageUploadStatusType as _0x320d1a,Inject as _0xe230cc,Injector as _0x31a56e,JSONX as _0x42c2de,LocalUndoRedoService as _0x1faad3,LocaleService as _0x9a407d,MentionType as _0x3a7b55,Optional as _0x2b3cfa,Plugin as _0x2c6762,Quantity as _0x46b617,Rectangle as _0x4038f3,RxDisposable as _0x50b38b,Tools as _0x52d975,UniverInstanceType as _0x9a8e4e,UserManagerService as _0x55a0a7,Workbook as _0x19ddfe,createIdentifier as _0x27db79,generateRandomId as _0x5c124c,isInternalEditorID as _0x5bdd45,merge as _0x507159,mergeOverrideWithDependencies as _0x23d6dd,registerDependencies as _0xa204e3,resolveWithBasePath as _0x6dad3d,sequenceExecute as _0x8d0c4b,toDisposable as _0x4a5ee8,touchDependencies as _0x17b45d}from'@univerjs/core';import{DocStateChangeManagerService as _0x4be2f8,RichTextEditingMutation as _0x386ca6}from'@univerjs/docs';import{InsertSheetMutation as _0x11df8b,SetSelectionsOperation as _0x1b5157,SheetPermissionInitController as _0x2be84a,SheetsSelectionsService as _0x173cd0,WorkbookEditablePermission as _0x1413a3}from'@univerjs/sheets';import{BehaviorSubject as _0x296086,ReplaySubject as _0x464a6c,Subject as _0x59eece,concatMap as _0x55ed4c,firstValueFrom as _0x34da10,map as _0x37ecf3,merge as _0x4802bd,of as _0x282a93,shareReplay as _0x1c2ab6,take as _0x40acda,takeUntil as _0x48361a}from'rxjs';import{CmdRspCode as _0x1d3aac,CombCmd as _0x5b7fe7,ErrorCode as _0x291ad4,FileSource as _0x316b67}from'@univerjs/protocol';import{ITelemetryService as _0x2f845e}from'@univerjs/telemetry';import{delay as _0x58575b,filter as _0x26acea,map as _0xf99eb3,take as _0x3b77de,takeUntil as _0x241cda}from'rxjs/operators';import{AddSlidePageMutation as _0x3d73f2,EnsureSlideMasterPageMutation as _0x27d579,MoveSlidePageMutation as _0x1fa40d,RemoveSlidePageMutation as _0x46d741}from'@univerjs-pro/slides';import{HTTPRequest as _0x200900,HTTPService as _0x32d10d,ISocketService as _0x313930,MergeInterceptorFactory as _0x392035,ThresholdInterceptorFactory as _0x4e8da6,UniverNetworkPlugin as _0x3667b4}from'@univerjs/network';import{UniverLicensePlugin as _0x6b7911,getGlobalObject as _0x1c22a4}from'@univerjs-pro/license';import{cbc as _0x89c1d1}from'@noble/ciphers/aes.js';import{concatBytes as _0x1ecd97,randomBytes as _0x3911d9,utf8ToBytes as _0x3329bb}from'@noble/ciphers/utils.js';import{DRAWING_IMAGE_ALLOW_IMAGE_LIST as _0x43c969,getDrawingImageAllowSize as _0x3e4b91}from'@univerjs/drawing';const L=_0x3c69ef(0x268),pt={},mt=_0x3c69ef(0x2de),ht=_0x3c69ef(0x1e1),gt=_0x3c69ef(0x37e),_t=_0x3c69ef(0x2a9),vt=0x4e20,yt=_0x3c69ef(0x317),bt=_0x3c69ef(0x23e),xt=0x3e8,St=_0x3c69ef(0x22f),Ct='/universer-api/uniscript';function wt(_0x4c1e0a){const _0x2179b1=_0x3c69ef;return JSON[_0x2179b1(0x2f7)](_0x4c1e0a)[_0x2179b1(0x3a1)];}function Tt(_0x66cb47){'@babel/helpers - typeof';const _0x25c290=_0x3c69ef;return Tt=typeof Symbol==_0x25c290(0x35a)&&typeof Symbol['iterator']==_0x25c290(0x391)?function(_0x35729d){return typeof _0x35729d;}:function(_0x4c91b6){const _0x29e11b=_0x25c290;return _0x4c91b6&&typeof Symbol==_0x29e11b(0x35a)&&_0x4c91b6[_0x29e11b(0x36a)]===Symbol&&_0x4c91b6!==Symbol[_0x29e11b(0x401)]?'symbol':typeof _0x4c91b6;},Tt(_0x66cb47);}function Et(_0x491656,_0x2e0eb1){const _0x375a4b=_0x3c69ef;if(Tt(_0x491656)!=_0x375a4b(0x1e0)||!_0x491656)return _0x491656;var _0x568cc9=_0x491656[Symbol['toPrimitive']];if(_0x568cc9!==void 0x0){var _0x5f077e=_0x568cc9[_0x375a4b(0x1db)](_0x491656,_0x2e0eb1||_0x375a4b(0x3de));if(Tt(_0x5f077e)!=_0x375a4b(0x1e0))return _0x5f077e;throw TypeError(_0x375a4b(0x22c));}return(_0x2e0eb1===_0x375a4b(0x3e7)?String:Number)(_0x491656);}function Dt(_0xdbae83){const _0x401606=_0x3c69ef;var _0x606781=Et(_0xdbae83,'string');return Tt(_0x606781)==_0x401606(0x391)?_0x606781:_0x606781+'';}function R(_0x11d019,_0x5b3cbb,_0x1f0252){const _0x130528=_0x3c69ef;return(_0x5b3cbb=Dt(_0x5b3cbb))in _0x11d019?Object[_0x130528(0x3c4)](_0x11d019,_0x5b3cbb,{'value':_0x1f0252,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x11d019[_0x5b3cbb]=_0x1f0252,_0x11d019;}let Ot=function(_0x41b070){const _0x1cb5a2=_0x3c69ef;return _0x41b070['OTHER_CLIENT_EDITING']='OTHER_CLIENT_EDITING',_0x41b070[_0x1cb5a2(0x300)]=_0x1cb5a2(0x300),_0x41b070['CONFLICT']='CONFLICT',_0x41b070[_0x1cb5a2(0x3bd)]=_0x1cb5a2(0x3bd),_0x41b070['JOIN_ROOM_FAILED']='JOIN_ROOM_FAILED',_0x41b070[_0x1cb5a2(0x18f)]='SOCKET_FAILED_RETRY',_0x41b070[_0x1cb5a2(0x343)]=_0x1cb5a2(0x343),_0x41b070[_0x1cb5a2(0x28b)]=_0x1cb5a2(0x28b),_0x41b070;}({});var z=class{constructor(){const _0x10708f=_0x3c69ef;R(this,_0x10708f(0x367),new _0x59eece()),R(this,_0x10708f(0x1b7),this[_0x10708f(0x367)][_0x10708f(0x1cc)]());}['emitEvent'](_0x360f14){const _0x2a9982=_0x3c69ef;this[_0x2a9982(0x367)]['next'](_0x360f14);}},kt=class{constructor(){const _0x5be539=_0x3c69ef;R(this,_0x5be539(0x1a9),new _0x59eece()),R(this,'commentUpdate$',this[_0x5be539(0x1a9)][_0x5be539(0x1cc)]());}[_0x3c69ef(0x38b)](_0x1f9537){const _0x2d596f=_0x3c69ef;this[_0x2d596f(0x1a9)]['next'](_0x1f9537);}};function B(_0xb7d947,_0x266c38){return function(_0x573a10,_0x11d86e){_0x266c38(_0x573a10,_0x11d86e,_0xb7d947);};}function V(_0x4ab4c4,_0x46c620,_0xf0975b,_0x14152a){const _0x19eedd=_0x3c69ef;var _0x44fe1e=arguments[_0x19eedd(0x3a1)],_0x5e52e8=_0x44fe1e<0x3?_0x46c620:_0x14152a===null?_0x14152a=Object[_0x19eedd(0x19b)](_0x46c620,_0xf0975b):_0x14152a,_0x4723a7;if(typeof Reflect==_0x19eedd(0x1e0)&&typeof Reflect[_0x19eedd(0x324)]==_0x19eedd(0x35a))_0x5e52e8=Reflect[_0x19eedd(0x324)](_0x4ab4c4,_0x46c620,_0xf0975b,_0x14152a);else{for(var _0x1c479e=_0x4ab4c4['length']-0x1;_0x1c479e>=0x0;_0x1c479e--)(_0x4723a7=_0x4ab4c4[_0x1c479e])&&(_0x5e52e8=(_0x44fe1e<0x3?_0x4723a7(_0x5e52e8):_0x44fe1e>0x3?_0x4723a7(_0x46c620,_0xf0975b,_0x5e52e8):_0x4723a7(_0x46c620,_0xf0975b))||_0x5e52e8);}return _0x44fe1e>0x3&&_0x5e52e8&&Object[_0x19eedd(0x3c4)](_0x46c620,_0xf0975b,_0x5e52e8),_0x5e52e8;}let H=class extends _0x1c670c{constructor(_0x5e2511,_0xb9129b){const _0x407ff3=_0x3c69ef;super(),this['_univerInstanceService']=_0x5e2511,this['_userManagerService']=_0xb9129b,R(this,_0x407ff3(0x38d),new Map()),R(this,_0x407ff3(0x2e9),new _0x59eece()),this[_0x407ff3(0x3b8)](_0x4802bd(this[_0x407ff3(0x1ba)][_0x407ff3(0x32a)](_0x9a8e4e[_0x407ff3(0x1a4)])['pipe'](_0xf99eb3(_0x59cf5f=>_0x59cf5f[_0x407ff3(0x270)]())),this['_univerInstanceService'][_0x407ff3(0x32a)](_0x9a8e4e[_0x407ff3(0x274)])[_0x407ff3(0x380)](_0xf99eb3(_0x320146=>_0x320146[_0x407ff3(0x270)]())),this[_0x407ff3(0x1ba)][_0x407ff3(0x32a)](_0x9a8e4e['UNIVER_BOARD'])[_0x407ff3(0x380)](_0xf99eb3(_0x2b8f37=>_0x2b8f37['getUnitId']())),this[_0x407ff3(0x1ba)][_0x407ff3(0x32a)](_0x9a8e4e[_0x407ff3(0x3b3)])[_0x407ff3(0x380)](_0xf99eb3(_0x362c29=>_0x362c29[_0x407ff3(0x270)]())))['subscribe'](_0x1e573a=>this[_0x407ff3(0x2b7)](_0x1e573a)));}[_0x3c69ef(0x2e7)](_0x5e9f80){const _0x46094e=_0x3c69ef;return this[_0x46094e(0x38d)][_0x46094e(0x387)](_0x5e9f80)?_0x282a93(this[_0x46094e(0x38d)][_0x46094e(0x20f)](_0x5e9f80)):this[_0x46094e(0x2e9)][_0x46094e(0x380)](_0xf99eb3(_0x114991=>{const _0x577174=_0x46094e;if(_0x114991===_0x5e9f80)return this['_roomMembers'][_0x577174(0x20f)](_0x114991);}));}[_0x3c69ef(0x206)](_0x4606ac){this['_userManagerService']['setCurrentUser'](_0x4606ac);}[_0x3c69ef(0x32d)](){const _0xa4aad3=_0x3c69ef;return this[_0xa4aad3(0x3b5)][_0xa4aad3(0x32d)]();}[_0x3c69ef(0x316)](_0x1e4e4a,_0x506a41){const _0xb44407=_0x3c69ef;let _0x27b869=this[_0xb44407(0x38d)]['get'](_0x1e4e4a);_0x27b869||(_0x27b869=new At(),this[_0xb44407(0x38d)]['set'](_0x1e4e4a,_0x27b869),this[_0xb44407(0x2e9)]['next'](_0x1e4e4a)),_0x27b869[_0xb44407(0x316)](_0x506a41);}['removeMember'](_0xe057d4,_0x184d73){const _0x51dc3d=_0x3c69ef;let _0x42346a=this[_0x51dc3d(0x38d)]['get'](_0xe057d4);_0x42346a&&_0x42346a[_0x51dc3d(0x266)](_0x184d73);}[_0x3c69ef(0x321)](_0x3c8f17){const _0x297ef6=_0x3c69ef;return this['_roomMembers'][_0x297ef6(0x20f)](_0x3c8f17);}[_0x3c69ef(0x331)](_0x559c39,_0x4a4007){const _0xc174c9=_0x3c69ef;let _0x195623=this[_0xc174c9(0x38d)][_0xc174c9(0x20f)](_0x559c39);if(_0x195623)return _0x195623[_0xc174c9(0x331)](_0x4a4007);}[_0x3c69ef(0x2b7)](_0x5f3fd3){const _0x3a72c5=_0x3c69ef;let _0x4af813=this[_0x3a72c5(0x38d)][_0x3a72c5(0x20f)](_0x5f3fd3);_0x4af813&&(_0x4af813[_0x3a72c5(0x20b)](),this[_0x3a72c5(0x38d)]['delete'](_0x5f3fd3));}['dispose'](){const _0x11d339=_0x3c69ef;this[_0x11d339(0x38d)][_0x11d339(0x1e5)](_0x3ce11d=>_0x3ce11d['dispose']()),this['_roomMembers'][_0x11d339(0x3bf)](),this['_roomCreated$'][_0x11d339(0x3aa)]();}};H=V([B(0x0,_0x344fe1),B(0x1,_0xe230cc(_0x55a0a7))],H);var At=class extends _0x1c670c{constructor(..._0x5b2632){const _0x2beb7a=_0x3c69ef;super(..._0x5b2632),R(this,_0x2beb7a(0x197),new Map()),R(this,_0x2beb7a(0x1f2),new _0x296086(this[_0x2beb7a(0x197)])),R(this,'members$',this[_0x2beb7a(0x1f2)]['asObservable']());}[_0x3c69ef(0x20b)](){const _0x839b85=_0x3c69ef;this['_members']['clear'](),this[_0x839b85(0x1f2)]['complete']();}[_0x3c69ef(0x316)](_0x3bb383){const _0x341dd4=_0x3c69ef;this[_0x341dd4(0x197)]['set'](_0x3bb383[_0x341dd4(0x223)],_0x3bb383),this['_emitMembers']();}[_0x3c69ef(0x266)](_0x15517b){const _0x5ea666=_0x3c69ef;this[_0x5ea666(0x197)][_0x5ea666(0x393)](_0x15517b),this[_0x5ea666(0x2b8)]();}[_0x3c69ef(0x331)](_0x32ce58){const _0x52372b=_0x3c69ef;return this[_0x52372b(0x197)][_0x52372b(0x20f)](_0x32ce58);}[_0x3c69ef(0x36b)](){const _0x557730=_0x3c69ef;return Array['from'](this[_0x557730(0x197)][_0x557730(0x1ef)]());}['_emitMembers'](){const _0x2c5e38=_0x3c69ef;this[_0x2c5e38(0x1f2)][_0x2c5e38(0x19a)](this[_0x2c5e38(0x197)]);}};function jt(_0x115230,_0x486809){const _0x536836=_0x3c69ef;if(Nt(_0x115230))return _0x486809;if(_0x486809['eventID']===_0x43102b['SUBMIT_CHANGESET']){var _0x455d28;let _0x150386=Rt(_0x115230),_0x16f05b=_0x486809;return{..._0x16f05b,'data':{..._0x16f05b[_0x536836(0x2ee)],'unitID':_0x115230[_0x536836(0x3d8)]['unitId'],'unitType':(_0x455d28=_0x115230['target']['unitType'])==null?_0x16f05b[_0x536836(0x2ee)][_0x536836(0x242)]:_0x455d28,'changeset':_0x150386['toRemote'](_0x16f05b[_0x536836(0x2ee)][_0x536836(0x2c2)],zt(_0x115230))}};}if(_0x486809[_0x536836(0x3f0)]===_0x43102b['FETCH_MISSING']){var _0x3d674d;let _0x5a19f1=_0x486809;return{..._0x5a19f1,'data':{..._0x5a19f1['data'],'unitID':_0x115230[_0x536836(0x3d8)]['unitId'],'unitType':(_0x3d674d=_0x115230[_0x536836(0x3d8)]['unitType'])==null?_0x5a19f1[_0x536836(0x2ee)][_0x536836(0x242)]:_0x3d674d}};}return _0x486809;}function Mt(_0x3d32c5,_0x10b652){const _0x33f5f1=_0x3c69ef;if(Nt(_0x3d32c5))return[_0x10b652];switch(_0x10b652['eventID']){case _0x43102b[_0x33f5f1(0x265)]:return[Pt(_0x3d32c5,_0x10b652)];case _0x43102b[_0x33f5f1(0x269)]:return[It(_0x3d32c5,_0x10b652)];case _0x43102b[_0x33f5f1(0x24b)]:return[Ft(_0x3d32c5,_0x10b652)];default:return[_0x10b652];}}function Nt(_0x8ef860){const _0x3d54b0=_0x3c69ef;return _0x8ef860['target']['endpoint']==null&&_0x8ef860[_0x3d54b0(0x3d8)][_0x3d54b0(0x296)]===_0x8ef860[_0x3d54b0(0x2e4)]&&!_0x8ef860[_0x3d54b0(0x2c2)];}function Pt(_0x4af4b9,_0x4806bd){const _0x3308ef=_0x3c69ef;return{..._0x4806bd,'data':_0x4835ca(Lt(_0x4af4b9,_0x131ca5(_0x4806bd[_0x3308ef(0x2ee)])))};}function Ft(_0x89206d,_0x32b1c4){const _0xffa229=_0x3c69ef;return{..._0x32b1c4,'data':Lt(_0x89206d,_0x32b1c4[_0xffa229(0x2ee)])};}function It(_0x3ce054,_0x48df30){const _0x40a830=_0x3c69ef;let _0x4e7908=_0x48df30[_0x40a830(0x2ee)];return{..._0x48df30,'data':{..._0x4e7908,'changesets':_0x4e7908[_0x40a830(0x23a)][_0x40a830(0x35d)](_0x3cc44d=>_0x4835ca(Lt(_0x3ce054,_0x131ca5(_0x3cc44d))))}};}function Lt(_0x1be39e,_0x17bf6f){return Rt(_0x1be39e)['toLocal'](_0x17bf6f,zt(_0x1be39e));}function Rt(_0x2ae73e){const _0x5cbd0b=_0x3c69ef;if(!_0x2ae73e['changeset'])throw Error(_0x5cbd0b(0x2b3));return _0x2ae73e[_0x5cbd0b(0x2c2)];}function zt(_0x121db5){const _0x224b7c=_0x3c69ef;return{'localUnitId':_0x121db5[_0x224b7c(0x2e4)],'unitType':_0x121db5[_0x224b7c(0x242)],'target':_0x121db5[_0x224b7c(0x3d8)]};}let Bt=function(_0x4fd693){const _0xf6e6b8=_0x3c69ef;return _0x4fd693[_0x4fd693[_0xf6e6b8(0x32c)]=0x0]=_0xf6e6b8(0x32c),_0x4fd693[_0x4fd693[_0xf6e6b8(0x344)]=0x1]=_0xf6e6b8(0x344),_0x4fd693[_0x4fd693['OFFLINE']=0x2]='OFFLINE',_0x4fd693[_0x4fd693[_0xf6e6b8(0x3cb)]=0x3]=_0xf6e6b8(0x3cb),_0x4fd693;}({});const Vt={[_0x1d3aac['FAIL']]:_0x3c69ef(0x369),[_0x1d3aac['JOIN_ROOM_FULL']]:'session.room-full',[_0x1d3aac[_0x3c69ef(0x3a4)]]:_0x3c69ef(0x34e),[_0x1d3aac['JOIN_ROOM_PERMISSION_DENIED']]:_0x3c69ef(0x30e),[_0x1d3aac['GLOBAL_ROOMS_CNT_EXCEEDS']]:_0x3c69ef(0x3f6)};let Ht=class extends _0x50b38b{get[_0x3c69ef(0x289)](){const _0x427556=_0x3c69ef;return this['_sessionStatus$'][_0x427556(0x368)]();}constructor(_0x5d27c2,_0x5011ed,_0x43bf43,_0x3d0233,_0x5ce071,_0x94d369,_0x4a4f5d,_0x3d0569){const _0x58a867=_0x3c69ef;super(),this[_0x58a867(0x2f2)]=_0x5d27c2,this[_0x58a867(0x3f4)]=_0x43bf43,this[_0x58a867(0x305)]=_0x3d0233,this[_0x58a867(0x356)]=_0x5ce071,this['_commentService']=_0x94d369,this[_0x58a867(0x290)]=_0x4a4f5d,this[_0x58a867(0x399)]=_0x3d0569,R(this,_0x58a867(0x2cb),new _0x296086(0x0)),R(this,_0x58a867(0x2ae),this[_0x58a867(0x2cb)][_0x58a867(0x1cc)]()),R(this,_0x58a867(0x367),new _0x59eece()),R(this,_0x58a867(0x1b7),this['_event$']['asObservable']()),R(this,_0x58a867(0x329),void 0x0),R(this,_0x58a867(0x1e9),void 0x0),R(this,_0x58a867(0x374),void 0x0),R(this,_0x58a867(0x414),!0x1),R(this,_0x58a867(0x29e),null),this[_0x58a867(0x414)]=!!this['_telemetryService'],_0x5011ed[_0x58a867(0x380)](_0x48361a(this['dispose$']))[_0x58a867(0x420)](_0x223710=>{const _0x2948b1=_0x58a867;if(_0x223710!==void 0x0){if(this[_0x2948b1(0x329)]=_0x223710,_0x223710)this[_0x2948b1(0x3ff)](_0x223710),this[_0x2948b1(0x1e9)]=_0x223710[_0x2948b1(0x261)][_0x2948b1(0x420)](_0x278d8b=>{const _0x30369d=_0x2948b1;_0x278d8b[_0x30369d(0x2fd)]===this[_0x30369d(0x2f2)][_0x30369d(0x3d8)][_0x30369d(0x296)]&&this[_0x30369d(0x2dd)](_0x278d8b);});else{var _0xdd7ddd;this[_0x2948b1(0x3e4)](),this[_0x2948b1(0x2cb)]['next'](0x2),(_0xdd7ddd=this[_0x2948b1(0x1e9)])==null||_0xdd7ddd[_0x2948b1(0x3c3)](),this[_0x2948b1(0x1e9)]=null;}}});}[_0x3c69ef(0x3fd)](){const _0x365524=_0x3c69ef;var _0x3f021b,_0x2fe307;return(_0x3f021b=(_0x2fe307=this[_0x365524(0x329)])==null?void 0x0:_0x2fe307[_0x365524(0x223)])==null?null:_0x3f021b;}[_0x3c69ef(0x20b)](){const _0x437e5a=_0x3c69ef;super[_0x437e5a(0x20b)](),this['close'](),this[_0x437e5a(0x294)]['next'](),this['dispose$'][_0x437e5a(0x3aa)]();}['close'](){const _0x470601=_0x3c69ef;var _0x4c07ec;this['_throwTelemetryCollaborationNewChangeset'](),(_0x4c07ec=this[_0x470601(0x329)])==null||_0x4c07ec[_0x470601(0x31a)]({'cmd':_0x5b7fe7[_0x470601(0x31b)],'data':{'roomID':this[_0x470601(0x2f2)][_0x470601(0x3d8)][_0x470601(0x296)]}}),this[_0x470601(0x367)][_0x470601(0x3aa)](),this[_0x470601(0x2cb)][_0x470601(0x3aa)]();}['_onCombEvent'](_0x39d170){const _0x173e06=_0x3c69ef;_0x39d170[_0x173e06(0x258)]===_0x5b7fe7[_0x173e06(0x3b6)]?this['_onJoinRoomEvent'](_0x39d170):_0x39d170[_0x173e06(0x258)]===_0x5b7fe7[_0x173e06(0x2f9)]&&this[_0x173e06(0x2f0)](_0x39d170);}[_0x3c69ef(0x3ff)](_0x84423e){const _0x2625a8=_0x3c69ef;this[_0x2625a8(0x2cb)][_0x2625a8(0x19a)](0x1),_0x84423e[_0x2625a8(0x31a)]({'cmd':_0x5b7fe7[_0x2625a8(0x3b6)],'routeKey':this[_0x2625a8(0x2f2)][_0x2625a8(0x3d8)][_0x2625a8(0x296)],'routeType':'','data':{'rooms':[{'roomID':this['_identity'][_0x2625a8(0x3d8)][_0x2625a8(0x296)]}]}});}[_0x3c69ef(0x38f)](_0x49a13a){const _0x3ad991=_0x3c69ef;var _0x17ab76;if(_0x49a13a[_0x3ad991(0x28a)]in Vt){this['_collaborationUIEventService'][_0x3ad991(0x377)]({'id':_0x3ad991(0x35b),'data':Vt[_0x49a13a[_0x3ad991(0x28a)]]}),this[_0x3ad991(0x2cb)][_0x3ad991(0x19a)](0x2);return;}this[_0x3ad991(0x2cb)]['next'](0x3);let _0x54709f=(_0x17ab76=_0x49a13a[_0x3ad991(0x2ee)]['roomInfos'][this[_0x3ad991(0x2f2)][_0x3ad991(0x3d8)][_0x3ad991(0x296)]])==null?void 0x0:_0x17ab76['members'];_0x54709f&&_0x54709f[_0x3ad991(0x1e5)](_0x14143b=>this[_0x3ad991(0x356)][_0x3ad991(0x316)](this[_0x3ad991(0x2f2)][_0x3ad991(0x2e4)],_0x14143b));}['_onRecvEvent'](_0x57f6fe){const _0x192121=_0x3c69ef;try{let _0x31bba4=Mt(this[_0x192121(0x2f2)],_0x57f6fe[_0x192121(0x2ee)]);for(let _0xd9798 of _0x31bba4)switch(_0xd9798['eventID']){case _0x43102b['USERS_ENTER']:this[_0x192121(0x363)](_0xd9798),this[_0x192121(0x367)][_0x192121(0x19a)](_0xd9798);break;case _0x43102b[_0x192121(0x334)]:this['_onUserLeave'](_0xd9798),this[_0x192121(0x367)][_0x192121(0x19a)](_0xd9798);break;case _0x43102b['CHANGESET_ACK']:case _0x43102b[_0x192121(0x24b)]:this[_0x192121(0x352)](),this[_0x192121(0x3eb)](),this[_0x192121(0x367)]['next'](_0xd9798);break;case _0x43102b['MSG_FOR_ERROR']:this[_0x192121(0x3f4)][_0x192121(0x199)]('save\x20fail\x20reason\x20is\x20'+JSON['stringify'](_0xd9798)),this[_0x192121(0x367)][_0x192121(0x19a)](_0xd9798);break;case _0x43102b['COMMENT_UPDATE']:this[_0x192121(0x1d9)][_0x192121(0x38b)](_0xd9798['data']),this[_0x192121(0x367)][_0x192121(0x19a)](_0xd9798);break;default:this[_0x192121(0x367)][_0x192121(0x19a)](_0xd9798);}}catch(_0x4b959d){this[_0x192121(0x3f4)][_0x192121(0x199)](_0x4b959d,_0x57f6fe);}}[_0x3c69ef(0x363)](_0x19e834){const _0x5eea61=_0x3c69ef;this[_0x5eea61(0x356)][_0x5eea61(0x316)](this[_0x5eea61(0x2f2)][_0x5eea61(0x2e4)],_0x19e834['data']);}[_0x3c69ef(0x3e9)](_0x1543f4){const _0x5774d9=_0x3c69ef;this['_memberService']['removeMember'](this[_0x5774d9(0x2f2)][_0x5774d9(0x2e4)],_0x1543f4[_0x5774d9(0x2ee)]['memberID']);}async[_0x3c69ef(0x31a)](_0x2eb573,_0x332797){const _0x427bd0=_0x3c69ef;if(this['sessionStatus']!==0x3||!this[_0x427bd0(0x329)])throw Error('[CollaborationSession]:\x20should\x20not\x20send\x20message\x20when\x20the\x20session\x20is\x20offline!');try{let _0x5baf4a=jt(this[_0x427bd0(0x2f2)],_0x2eb573);_0x5baf4a[_0x427bd0(0x3f0)]===_0x43102b[_0x427bd0(0x36c)]&&(this[_0x427bd0(0x262)](),this[_0x427bd0(0x2d6)](_0x5baf4a)),this[_0x427bd0(0x329)][_0x427bd0(0x31a)]({'cmd':_0x5b7fe7[_0x427bd0(0x3d9)],'routeKey':this[_0x427bd0(0x2f2)][_0x427bd0(0x3d8)][_0x427bd0(0x296)],'routeType':'','data':_0x5baf4a});}catch(_0x4ecdc4){this[_0x427bd0(0x3f4)][_0x427bd0(0x199)](_0x4ecdc4);}}['_scheduleCollaborationTimeoutTimer'](){const _0x2772ea=_0x3c69ef;var _0x3895e4;this[_0x2772ea(0x374)]=setTimeout(()=>{const _0x1a2f4e=_0x2772ea;this[_0x1a2f4e(0x374)]=null,this[_0x1a2f4e(0x290)][_0x1a2f4e(0x377)]({'id':_0x1a2f4e(0x28b)});},(_0x3895e4=this['_configService'][_0x2772ea(0x353)](_0x2772ea(0x2a9)))==null?vt:_0x3895e4);}[_0x3c69ef(0x3eb)](){const _0x4bb704=_0x3c69ef;this[_0x4bb704(0x374)]&&(clearTimeout(this['_collaborationTimeoutTimer']),this[_0x4bb704(0x374)]=null);}[_0x3c69ef(0x2d6)](_0x167af1){const _0xf17398=_0x3c69ef;if(!this['_shouldReportTelemetry'])return;let {data:_0x22184b}=_0x167af1,{unitID:_0x286cdc,changeset:_0x150a62}=_0x22184b,{mutations:_0x3491f3,type:_0x1fefbc}=_0x150a62;this[_0xf17398(0x29e)]={'unitId':_0x286cdc,'type':_0x1fefbc,'startTime':performance[_0xf17398(0x1ca)](),'stopTime':0x0,'duration':0x0,'size':wt(_0x3491f3)};}['_stopTelemetryCollaborationNewChangeset'](){const _0x494555=_0x3c69ef;if(this['_shouldReportTelemetry']){if(!this[_0x494555(0x29e)]){this['_logService'][_0x494555(0x199)](_0x494555(0x297),_0x494555(0x34d));return;}this[_0x494555(0x29e)][_0x494555(0x31f)]=performance[_0x494555(0x1ca)](),this[_0x494555(0x29e)][_0x494555(0x407)]=this['_telemetryInfo']['stopTime']-this[_0x494555(0x29e)]['startTime'],this[_0x494555(0x399)][_0x494555(0x27f)](_0x494555(0x28e),this[_0x494555(0x29e)]),this['_telemetryInfo']=null;}}[_0x3c69ef(0x3e4)](){const _0x54a9a5=_0x3c69ef;this[_0x54a9a5(0x29e)]=null;}};Ht=V([B(0x2,_0x5c3e7f),B(0x3,_0x1f37e4),B(0x4,_0xe230cc(H)),B(0x5,_0xe230cc(kt)),B(0x6,_0xe230cc(z)),B(0x7,_0x2b3cfa(_0x2f845e))],Ht);const U=_0x27db79('collaboration-client.local-cache-service');function Ut(_0x429a2b){const _0x3098df=_0x3c69ef;return _0x3098df(0x1dd)+_0x429a2b;}function Wt(_0x341c7a){const _0x1a6710=_0x3c69ef;let {unitID:_0x5c3c57,mutations:_0x5d930e}=_0x341c7a;return{'unitId':_0x5c3c57,'subUnitId':_0x5d930e[_0x1a6710(0x3a1)]>0x0?_0x5d930e[0x0][_0x1a6710(0x3c6)]['subUnitId']:null};}let Gt=class{constructor(_0x4ad6e9,_0x2b0d6e,_0x535944){this['_injector']=_0x4ad6e9,this['_transformService']=_0x2b0d6e,this['_instanceService']=_0x535944;}[_0x3c69ef(0x319)](_0x5b3983){const _0x4a82da=_0x3c69ef;var _0x27bc10,_0x2c3932;let _0x58e4c0=this[_0x4a82da(0x27a)]['get'](_0x173cd0),{unitId:_0x40a970,subUnitId:_0x158669}=Wt(_0x5b3983),_0x6ec3f1=_0x58e4c0==null?void 0x0:_0x58e4c0[_0x4a82da(0x3be)](_0x40a970)['getCurrentSelections'](),_0x429e14=(_0x27bc10=this[_0x4a82da(0x226)][_0x4a82da(0x1b8)](_0x40a970))==null||(_0x27bc10=_0x27bc10[_0x4a82da(0x2ad)]())==null?void 0x0:_0x27bc10[_0x4a82da(0x339)]();if(_0x6ec3f1[_0x4a82da(0x3a1)]===0x0||!_0x40a970||!_0x158669)return;let _0x29f354=[{'id':_0x1b5157['id'],'params':{'unitId':_0x40a970,'subUnitId':_0x429e14,'selections':_0x52d975['deepClone'](_0x6ec3f1)}}],_0x41d46f=this[_0x4a82da(0x1c6)][_0x4a82da(0x2f6)](_0x5b3983,_0x29f354);if(!_0x30d694(_0x41d46f))throw _0x41d46f[_0x4a82da(0x199)];let _0x2ae173=(_0x2c3932=_0x41d46f[_0x4a82da(0x3a6)][0x0])==null||(_0x2c3932=_0x2c3932[_0x4a82da(0x3c6)])==null?void 0x0:_0x2c3932['selections'];if(Array[_0x4a82da(0x3cf)](_0x2ae173)&&_0x2ae173['length']){if(_0x2ae173[_0x4a82da(0x3a1)]===_0x29f354[0x0][_0x4a82da(0x3c6)][_0x4a82da(0x1af)]['length']&&_0x2ae173[_0x4a82da(0x3fa)]((_0x4aa5f1,_0x20fb79)=>_0x4038f3[_0x4a82da(0x1b5)](_0x4aa5f1[_0x4a82da(0x22a)],_0x29f354[0x0][_0x4a82da(0x3c6)]['selections'][_0x20fb79]['range'])))return;this['_injector'][_0x4a82da(0x20f)](_0x4705e0)[_0x4a82da(0x295)](_0x1b5157['id'],{'unitId':_0x40a970,'subUnitId':_0x429e14,'selections':_0x2ae173});}}};Gt=V([B(0x0,_0xe230cc(_0x31a56e)),B(0x1,_0x3a995f),B(0x2,_0x344fe1)],Gt);const W=_0x27db79(_0x3c69ef(0x241));let Kt=function(_0x4d5603){const _0x5d848d=_0x3c69ef;return _0x4d5603[_0x4d5603['NO_OTHER_CLIENTS_EDITING']=0x0]=_0x5d848d(0x2df),_0x4d5603[_0x4d5603[_0x5d848d(0x1cf)]=0x1]=_0x5d848d(0x1cf),_0x4d5603;}({});function qt(_0x4378a9){const _0x4d31a3=_0x3c69ef;var _0x332fc1;return!!((_0x332fc1=_0x4378a9[_0x4d31a3(0x3c6)])!=null&&_0x332fc1[_0x4d31a3(0x193)]);}const Jt=new Set([_0x11df8b['id']]),Yt=new Set([_0x3d73f2['id'],_0x27d579['id'],_0x1fa40d['id'],_0x46d741['id']]);function Xt(_0xa8b655,_0x4ac0f0=Jt){const _0x2f8b39=_0x3c69ef;let _0x3cf7a8=[];for(let _0x540cc7 of _0xa8b655){if(_0x4ac0f0[_0x2f8b39(0x387)](_0x540cc7['id'])){if(_0x3cf7a8[_0x2f8b39(0x3a1)]>0x0)break;_0x3cf7a8[_0x2f8b39(0x217)](_0x540cc7);break;}if(qt(_0x540cc7)){if(_0x3cf7a8[_0x2f8b39(0x3a1)]>0x0)break;_0x3cf7a8[_0x2f8b39(0x217)](_0x540cc7);break;}_0x3cf7a8[_0x2f8b39(0x217)](_0x540cc7);}return _0x3cf7a8;}function _0x43c7(_0x340530,_0x2f37e9){_0x340530=_0x340530-0x188;const _0x36d743=_0x36d7();let _0x43c7a0=_0x36d743[_0x340530];return _0x43c7a0;}function Zt(_0x375659,_0x5bb4f5,_0x19047d,_0x3a6159,_0x47541a){const _0x588c85=_0x3c69ef;var _0xa71543,_0x16d5b6,_0x4b1848,_0x3a6a6f;let _0x33cece=Xt(_0x375659),_0x3bc432=(_0xa71543=(_0x16d5b6=_0x47541a['getCurrentUser']())==null?void 0x0:_0x16d5b6[_0x588c85(0x3c0)])==null?_0x588c85(0x263):_0xa71543,_0x24c358=(_0x4b1848=(_0x3a6a6f=_0x47541a['getCurrentUser']())==null?void 0x0:_0x3a6a6f[_0x588c85(0x223)])==null?'unknown':_0x4b1848;return{'changeset':{'unitID':_0x5bb4f5,'type':_0x4e1660(_0x19047d[_0x588c85(0x328)](_0x5bb4f5)),'baseRev':_0x3a6159[_0x588c85(0x306)](_0x5bb4f5),'revision':0x0,'userID':_0x3bc432,'memberID':_0x24c358,'mutations':_0x33cece},'pendingMutations':_0x375659['slice'](_0x33cece[_0x588c85(0x3a1)])};}function Qt(_0x3d9f05,_0x3ee736,_0x16c7e3,_0x5a7c1b,_0x1cb42d){const _0x405c81=_0x3c69ef;var _0x5bc3be,_0xcf48ad,_0x2124a7,_0x21e3f2;let _0x20223b=Xt(_0x3d9f05,Yt),_0x15e2a8=(_0x5bc3be=(_0xcf48ad=_0x1cb42d[_0x405c81(0x32d)]())==null?void 0x0:_0xcf48ad[_0x405c81(0x3c0)])==null?_0x405c81(0x263):_0x5bc3be,_0x4e3ce3=(_0x2124a7=(_0x21e3f2=_0x1cb42d[_0x405c81(0x32d)]())==null?void 0x0:_0x21e3f2['memberID'])==null?_0x405c81(0x263):_0x2124a7;return{'changeset':{'unitID':_0x3ee736,'type':_0x4e1660(_0x16c7e3[_0x405c81(0x328)](_0x3ee736)),'baseRev':_0x5a7c1b[_0x405c81(0x306)](_0x3ee736),'revision':0x0,'userID':_0x15e2a8,'memberID':_0x4e3ce3,'mutations':_0x20223b},'pendingMutations':_0x3d9f05[_0x405c81(0x335)](_0x20223b[_0x405c81(0x3a1)])};}function $t(_0x2aecce,_0xf7dbba,_0x2fe705,_0x4c59ed,_0x38883f){const _0xa0be4e=_0x3c69ef;var _0x49ac83,_0x3a80b6,_0x2a2ee2,_0x16ec91;let _0x171977=_0x2aecce[_0xa0be4e(0x225)]((_0x5ae69f,_0x167e20)=>{const _0x2d7269=_0xa0be4e;let _0x54d892=_0x5ae69f[_0x5ae69f[_0x2d7269(0x3a1)]-0x1],{id:_0x2ecb2c}=_0x54d892==null?{}:_0x54d892,{id:_0x4652ae,type:_0x49e6fd}=_0x167e20,_0x46cc68=_0x167e20[_0x2d7269(0x3c6)];if(_0x2ecb2c&&_0x2ecb2c!==_0x4652ae)throw Error(_0x2d7269(0x2a6)+_0x2ecb2c+_0x2d7269(0x1eb)+_0x4652ae+'.');if(!_0x54d892)return[{'id':_0x4652ae,'type':_0x49e6fd,'params':{'unitId':_0x46cc68['unitId'],'textRanges':_0x46cc68[_0x2d7269(0x246)],'actions':_0x46cc68[_0x2d7269(0x3ad)]}}];let _0x5288b5=_0x54d892[_0x2d7269(0x3c6)];return en(_0x5288b5,_0x46cc68)?[..._0x5ae69f[_0x2d7269(0x335)](0x0,-0x1),{..._0x54d892,'id':_0x4652ae,'type':_0x49e6fd,'params':{'unitId':_0x46cc68['unitId'],'textRanges':_0x46cc68[_0x2d7269(0x246)],'actions':_0x42c2de['compose'](_0x5288b5[_0x2d7269(0x3ad)],_0x46cc68[_0x2d7269(0x3ad)])}}]:[..._0x5ae69f,{'id':_0x4652ae,'type':_0x49e6fd,'params':{'unitId':_0x46cc68[_0x2d7269(0x296)],'textRanges':_0x46cc68[_0x2d7269(0x246)],'actions':_0x46cc68[_0x2d7269(0x3ad)]}}];},[]),_0x429922=(_0x49ac83=(_0x3a80b6=_0x38883f[_0xa0be4e(0x32d)]())==null?void 0x0:_0x3a80b6[_0xa0be4e(0x3c0)])==null?_0xa0be4e(0x263):_0x49ac83,_0x4362e6=(_0x2a2ee2=(_0x16ec91=_0x38883f[_0xa0be4e(0x32d)]())==null?void 0x0:_0x16ec91[_0xa0be4e(0x223)])==null?_0xa0be4e(0x263):_0x2a2ee2;return{'changeset':{'unitID':_0xf7dbba,'type':_0x4e1660(_0x2fe705[_0xa0be4e(0x328)](_0xf7dbba)),'baseRev':_0x4c59ed[_0xa0be4e(0x306)](_0xf7dbba),'revision':0x0,'userID':_0x429922,'memberID':_0x4362e6,'mutations':_0x171977},'pendingMutations':_0x2aecce[_0xa0be4e(0x335)](_0x2aecce[_0xa0be4e(0x3a1)])};}function en(_0x161fe0,_0x19a38f){const _0x344b87=_0x3c69ef;return!tn(_0x161fe0)&&!tn(_0x19a38f)&&nn(_0x161fe0[_0x344b87(0x3ad)],_0x19a38f[_0x344b87(0x3ad)]);}function tn(_0x17a5b5){const _0x7d1426=_0x3c69ef;return _0x17a5b5[_0x7d1426(0x22d)]!==void 0x0;}function nn(_0x3d6b99,_0x2d2bc3){return rn(_0x3d6b99)&&rn(_0x2d2bc3)&&!on(_0x3d6b99)&&!on(_0x2d2bc3)&&!an(_0x3d6b99)&&!an(_0x2d2bc3);}function rn(_0x4cea77){const _0x360d90=_0x3c69ef;return sn(_0x4cea77)[_0x360d90(0x238)](_0x3d5d94=>cn(_0x3d5d94)&&_0x3d5d94['et']===_0x360d90(0x2ab));}function an(_0x1efdd5){const _0x3f36e6=_0x3c69ef;return sn(_0x1efdd5)[_0x3f36e6(0x238)](_0x565db9=>Array[_0x3f36e6(0x3cf)](_0x565db9)||typeof _0x565db9==_0x3f36e6(0x3e7)||typeof _0x565db9==_0x3f36e6(0x2ef));}function on(_0x29e15b){const _0x4387d2=_0x3c69ef;return sn(_0x29e15b)['some'](_0x4eb3b6=>!cn(_0x4eb3b6)||_0x4eb3b6['et']!=='text-x'||!Array['isArray'](_0x4eb3b6['e'])?!0x1:_0x4eb3b6['e'][_0x4387d2(0x238)](_0x582fde=>!cn(_0x582fde)||!cn(_0x582fde[_0x4387d2(0x31c)])?!0x1:Object[_0x4387d2(0x401)]['hasOwnProperty'][_0x4387d2(0x1db)](_0x582fde[_0x4387d2(0x31c)],_0x4387d2(0x402))||Object[_0x4387d2(0x401)][_0x4387d2(0x26e)][_0x4387d2(0x1db)](_0x582fde['body'],_0x4387d2(0x376))||Object[_0x4387d2(0x401)][_0x4387d2(0x26e)][_0x4387d2(0x1db)](_0x582fde[_0x4387d2(0x31c)],_0x4387d2(0x33d))));}function sn(_0x5e1825){const _0x519fb2=_0x3c69ef;if(!Array[_0x519fb2(0x3cf)](_0x5e1825))return[];let _0x3e8194=_0x5e1825[_0x519fb2(0x24f)](_0x519fb2(0x31c))?_0x5e1825:_0x5e1825[_0x519fb2(0x3ca)](_0x459c3e=>Array[_0x519fb2(0x3cf)](_0x459c3e)&&_0x459c3e[_0x519fb2(0x24f)](_0x519fb2(0x31c)));if(!Array[_0x519fb2(0x3cf)](_0x3e8194))return[];let _0x2e6457=_0x3e8194[_0x519fb2(0x272)](_0x519fb2(0x31c));return _0x2e6457===-0x1?[]:_0x3e8194['slice'](_0x2e6457+0x1);}function cn(_0xb0fb3c){const _0x57be3b=_0x3c69ef;return typeof _0xb0fb3c=='object'&&!!_0xb0fb3c&&!Array[_0x57be3b(0x3cf)](_0xb0fb3c);}function ln(_0xba200,_0xd88a1){const _0x201ce3=_0x3c69ef;let _0x21d165=new _0x464a6c(0x1);return setTimeout(()=>_0x21d165[_0x201ce3(0x19a)](_0xd88a1),_0xba200),_0x21d165[_0x201ce3(0x1cc)]()['pipe'](_0x40acda(0x1));}var un,dn,fn;let pn=function(_0x4ff6c2){const _0x5257d3=_0x3c69ef;return _0x4ff6c2[_0x5257d3(0x3dc)]=_0x5257d3(0x209),_0x4ff6c2[_0x5257d3(0x3e3)]='synced',_0x4ff6c2[_0x5257d3(0x3c7)]=_0x5257d3(0x3b0),_0x4ff6c2[_0x5257d3(0x1b1)]='awaiting',_0x4ff6c2['AWAITING_WITH_PENDING']=_0x5257d3(0x22b),_0x4ff6c2[_0x5257d3(0x27b)]=_0x5257d3(0x302),_0x4ff6c2[_0x5257d3(0x1f0)]=_0x5257d3(0x338),_0x4ff6c2[_0x5257d3(0x342)]=_0x5257d3(0x255),_0x4ff6c2;}({});const mn=0x4e20,hn=0x2bf20;var G=class{constructor(_0x489681,_0x58776d,_0x832a14,_0x15bf60,_0xecb570,_0x28f99b,_0x19d046,_0x576b24,_0x119098){const _0x19361e=_0x3c69ef;this['unitID']=_0x489681,this[_0x19361e(0x315)]=_0x58776d,this[_0x19361e(0x194)]=_0xecb570,this['_commandService']=_0x28f99b,this[_0x19361e(0x3a3)]=_0x19d046,this[_0x19361e(0x403)]=_0x576b24,this['_localCacheService']=_0x119098,R(this,_0x19361e(0x2bd),null),R(this,_0x19361e(0x1a7),[]),this['_awaitingChangeset']=_0x832a14,this[_0x19361e(0x1a7)]=_0x15bf60;}['_checkMissing'](_0x5b4f10){const _0x3ce0f9=_0x3c69ef;let _0x1d2cf4=this[_0x3ce0f9(0x403)][_0x3ce0f9(0x306)](this[_0x3ce0f9(0x40c)]);return _0x5b4f10[_0x3ce0f9(0x2fe)]>_0x1d2cf4+0x1?(this[_0x3ce0f9(0x194)][_0x3ce0f9(0x23c)]({'from':_0x1d2cf4,'to':_0x5b4f10['revision']-0x1}),!0x0):!0x1;}[_0x3c69ef(0x309)](_0x4b6831){const _0xadc302=_0x3c69ef;this[_0xadc302(0x3a3)][_0xadc302(0x388)](this[_0xadc302(0x40c)],_0x4b6831);}['_transformSelections'](_0x101137){const _0x325300=_0x3c69ef;var _0x2b73e8,_0x375889;(_0x2b73e8=(_0x375889=this['_handler'])[_0x325300(0x218)])==null||_0x2b73e8['call'](_0x375889,_0x101137);}[_0x3c69ef(0x366)](_0x29aa69){const _0x5219a4=_0x3c69ef;var _0x58a90e,_0x26ecf0;return(_0x58a90e=(_0x26ecf0=this[_0x5219a4(0x194)])[_0x5219a4(0x2be)])==null?void 0x0:_0x58a90e['call'](_0x26ecf0,_0x29aa69);}['_transformStateCache'](_0x1517f5){const _0x233735=_0x3c69ef;var _0x57cef5,_0x34d228;return(_0x57cef5=(_0x34d228=this['_handler'])['onTransformState'])==null?void 0x0:_0x57cef5[_0x233735(0x1db)](_0x34d228,_0x1517f5);}[_0x3c69ef(0x19f)](_0x2a1a4b){const _0x268084=_0x3c69ef;var _0x4e7a70,_0xeeb1bd,_0x330f8f;return(_0x4e7a70=(_0xeeb1bd=(_0x330f8f=this[_0x268084(0x194)])[_0x268084(0x1df)])==null?void 0x0:_0xeeb1bd[_0x268084(0x1db)](_0x330f8f,_0x2a1a4b))==null?_0x2a1a4b:_0x4e7a70;}[_0x3c69ef(0x1fc)](_0x547ff1){const _0x5d3772=_0x3c69ef;var _0x516cfb,_0x33a2f6,_0x4a84e3;return(_0x516cfb=(_0x33a2f6=(_0x4a84e3=this['_handler'])[_0x5d3772(0x1d2)])==null?void 0x0:_0x33a2f6['call'](_0x4a84e3,_0x547ff1))==null?_0x547ff1:_0x516cfb;}[_0x3c69ef(0x248)](_0x4d91e4){const _0x3e1c13=_0x3c69ef;if(this[_0x3e1c13(0x315)]===_0x9a8e4e[_0x3e1c13(0x274)]){let {unitID:_0x2eb58a,mutations:_0x2f35b3,memberID:_0x4ff885}=_0x4d91e4,_0x11c768=_0x2f35b3['length']>0x0?_0x2f35b3[0x0][_0x3e1c13(0x3c6)][_0x3e1c13(0x246)]:[];if(Array[_0x3e1c13(0x3cf)](_0x11c768)&&_0x11c768[_0x3e1c13(0x3a1)]>0x0){var _0x50e3c2,_0x59d313;(_0x50e3c2=(_0x59d313=this[_0x3e1c13(0x194)])[_0x3e1c13(0x41c)])==null||_0x50e3c2[_0x3e1c13(0x1db)](_0x59d313,{'unitID':_0x2eb58a,'memberID':_0x4ff885,'textRanges':_0x11c768});}}}[_0x3c69ef(0x2bc)](){const _0x1f0211=_0x3c69ef;var _0x3a6a13;(_0x3a6a13=this[_0x1f0211(0x1f4)])==null||_0x3a6a13[_0x1f0211(0x411)](this[_0x1f0211(0x40c)],this[_0x1f0211(0x315)],this['_awaitingChangeset'],this[_0x1f0211(0x1a7)]);}[_0x3c69ef(0x312)](){const _0x5b866f=_0x3c69ef;return this['_revisionService'][_0x5b866f(0x306)](this[_0x5b866f(0x40c)]);}['_incrementRevisionNumber'](){const _0x92604e=_0x3c69ef;this['_revisionService'][_0x92604e(0x2fc)](this[_0x92604e(0x40c)]);}[_0x3c69ef(0x3ac)](_0x33422b){const _0x5f6746=_0x3c69ef;let _0x9b2b25=this[_0x5f6746(0x19f)](_0x33422b);_0x9b2b25=this[_0x5f6746(0x1fc)](_0x9b2b25);let _0x10c430=_0x8d0c4b(_0x9b2b25[_0x5f6746(0x188)],this[_0x5f6746(0x1ac)],{'fromCollab':!0x0});if(!_0x10c430[_0x5f6746(0x2bb)]){var _0x4795fc;throw _0x10c430['error']instanceof Error?_0x10c430[_0x5f6746(0x199)]:Error((_0x4795fc=_0x10c430[_0x5f6746(0x199)])==null?'[CollaborationState]:\x20apply\x20error!':_0x4795fc);}this[_0x5f6746(0x366)](_0x9b2b25),this['_transformStateCache'](_0x9b2b25),this[_0x5f6746(0x309)](_0x33422b),this[_0x5f6746(0x2ba)](_0x9b2b25),this[_0x5f6746(0x248)](_0x9b2b25),this[_0x5f6746(0x1b6)]();}};let K=class extends G{constructor(_0x1c960d,_0x156a08,_0x490e7c,_0x2306d6,_0x229927,_0x559cb4,_0x5b8a88,_0x3a7341,_0x57ec9a,_0x5ad296){const _0x4ebf35=_0x3c69ef;super(_0x1c960d,_0x156a08,null,[],_0x490e7c,_0x5b8a88,_0x559cb4,_0x2306d6,_0x5ad296),this[_0x4ebf35(0x27a)]=_0x229927,this[_0x4ebf35(0x3f4)]=_0x3a7341,this[_0x4ebf35(0x1c6)]=_0x57ec9a,this[_0x4ebf35(0x19d)]=_0x5ad296,R(this,'status',_0x4ebf35(0x2e6));}[_0x3c69ef(0x3fe)](_0x62ae8f){const _0x56f532=_0x3c69ef;let _0x53ec72=this['_injector'][_0x56f532(0x24d)](q,this['unitID'],this[_0x56f532(0x315)],[_0x62ae8f],this[_0x56f532(0x194)]);return _0x53ec72[_0x56f532(0x3dd)](),_0x53ec72['_updateLocalCache'](),_0x53ec72;}[_0x3c69ef(0x323)](_0x5605c4){const _0x25ad49=_0x3c69ef;if(this['_checkMissing'](_0x5605c4))return this['_injector'][_0x25ad49(0x24d)](Q,this['unitID'],this['type'],null,[],null,[_0x5605c4],this[_0x25ad49(0x194)]);try{let _0x9bcd62=this['_transformService'][_0x25ad49(0x2f6)](_0x5605c4,[_0x59ed8b]);if(_0x30d694(_0x9bcd62)){let {c1Prime:_0x2da469}=_0x9bcd62;return this[_0x25ad49(0x3ac)](_0x2da469),this;}throw _0x9bcd62[_0x25ad49(0x199)];}catch(_0x12b48e){return this[_0x25ad49(0x3f4)][_0x25ad49(0x199)](_0x12b48e),this[_0x25ad49(0x370)](!0x1);}}[_0x3c69ef(0x370)](_0x6d8dbf){const _0x5422ea=_0x3c69ef;return this[_0x5422ea(0x27a)][_0x5422ea(0x24d)](X,this[_0x5422ea(0x40c)],this[_0x5422ea(0x315)],null,[],this[_0x5422ea(0x194)],_0x6d8dbf);}[_0x3c69ef(0x38c)](_0x1cbb66){const _0x17f626=_0x3c69ef;if(_0x1cbb66[_0x17f626(0x2fe)]<=this[_0x17f626(0x312)]())return this;throw Error('[SyncedState]:\x20received\x20acknowledgement.');}[_0x3c69ef(0x28f)](){throw Error('[SyncedState]:\x20received\x20rejection.');}['onRemoteRetry'](){return this;}[_0x3c69ef(0x2f1)](){const _0xc35551=_0x3c69ef;return this[_0xc35551(0x27a)][_0xc35551(0x24d)](Z,this['unitID'],this['type'],null,[],this[_0xc35551(0x194)]);}[_0x3c69ef(0x2b9)](){return this;}['resend'](){const _0x5d822d=_0x3c69ef;throw Error(_0x5d822d(0x1d7));}[_0x3c69ef(0x2cd)](){const _0x18b82d=_0x3c69ef;let _0x3ad445=this[_0x18b82d(0x403)][_0x18b82d(0x306)](this[_0x18b82d(0x40c)]);return this['_handler'][_0x18b82d(0x23c)]({'from':_0x3ad445,'to':0x0}),this[_0x18b82d(0x27a)][_0x18b82d(0x24d)](Q,this[_0x18b82d(0x40c)],this[_0x18b82d(0x315)],null,[],null,[],this[_0x18b82d(0x194)]);}};K=V([B(0x3,_0xe230cc(_0x2d7797)),B(0x4,_0xe230cc(_0x31a56e)),B(0x5,_0x4aa991),B(0x6,_0x4705e0),B(0x7,_0x5c3e7f),B(0x8,_0x3a995f),B(0x9,_0x2b3cfa(U))],K);let q=un=class extends G{constructor(_0x5a72fe,_0x437d6f,_0x53d4d3,_0x18efe2,_0x4a8562,_0x21ddb6,_0x50e7de,_0x103986,_0x5bdbca,_0x181b94,_0x82ff59,_0x509e53,_0x35a88e,_0xc8d988){const _0x5e3998=_0x3c69ef;super(_0x5a72fe,_0x437d6f,null,_0x53d4d3,_0x18efe2,_0x5bdbca,_0x35a88e,_0x21ddb6,_0xc8d988),this[_0x5e3998(0x27a)]=_0x4a8562,this['_memberService']=_0x50e7de,this['_logService']=_0x103986,this['_configService']=_0x181b94,this[_0x5e3998(0x1c6)]=_0x82ff59,this[_0x5e3998(0x1ba)]=_0x509e53,R(this,_0x5e3998(0x275),_0x5e3998(0x3b0)),R(this,_0x5e3998(0x204),null),R(this,_0x5e3998(0x259),null);}['appendMutation'](_0x2850f0){const _0x4ed356=_0x3c69ef;return this['_pendingMutations'][_0x4ed356(0x217)](_0x2850f0),this[_0x4ed356(0x2bc)](),this;}[_0x3c69ef(0x323)](_0x5573ae){const _0x39b076=_0x3c69ef;if(this['_checkMissing'](_0x5573ae))return this[_0x39b076(0x2b6)](),this[_0x39b076(0x27a)]['createInstance'](Q,this[_0x39b076(0x40c)],this[_0x39b076(0x315)],null,this['_pendingMutations'],null,[_0x5573ae],this[_0x39b076(0x194)]);try{let _0xa3f5f3=this[_0x39b076(0x1c6)][_0x39b076(0x2f6)](_0x5573ae,this[_0x39b076(0x1a7)]);if(_0x30d694(_0xa3f5f3)){let {c1Prime:_0x4f120b,m2Prime:_0x26aa0c}=_0xa3f5f3;this['_executeRemoteChangeset'](_0x4f120b);let _0xfc3599=this[_0x39b076(0x27a)]['createInstance'](un,this[_0x39b076(0x40c)],this[_0x39b076(0x315)],_0x26aa0c,this['_handler']);this[_0x39b076(0x2b6)]();let _0x306b7b=new Date()[_0x39b076(0x2a3)](),_0x3eb39b=this[_0x39b076(0x204)]?Math[_0x39b076(0x19c)](this[_0x39b076(0x204)]-_0x306b7b,0x0):this[_0x39b076(0x200)]();return _0xfc3599[_0x39b076(0x3dd)](_0x3eb39b),_0xfc3599;}throw _0xa3f5f3['error'];}catch(_0x3f1a46){return this[_0x39b076(0x3f4)]['error'](_0x3f1a46),this[_0x39b076(0x370)](!0x1);}}[_0x3c69ef(0x38c)](_0x4c8732){const _0x54fa84=_0x3c69ef;if(_0x4c8732['revision']<=this['_getCurrentRevision']())return this;throw Error(_0x54fa84(0x1bb));}[_0x3c69ef(0x28f)](){throw Error('[PendingState]:\x20received\x20rejection.');}['onRemoteRetry'](){return this;}[_0x3c69ef(0x2f1)](){const _0x5265f1=_0x3c69ef;return this[_0x5265f1(0x2b6)](),this[_0x5265f1(0x27a)][_0x5265f1(0x24d)](Z,this[_0x5265f1(0x40c)],this[_0x5265f1(0x315)],null,this[_0x5265f1(0x1a7)],this['_handler']);}['toggleOnline'](){return this;}[_0x3c69ef(0x3dd)](_0xb4e244){const _0x5100d4=_0x3c69ef;let _0x4d22a6=_0xb4e244==null?this['_getSendChangesetTimeout']():_0xb4e244;this[_0x5100d4(0x204)]=new Date()[_0x5100d4(0x2a3)]()+_0x4d22a6,this[_0x5100d4(0x259)]=setTimeout(()=>{const _0x4d7caa=_0x5100d4;this[_0x4d7caa(0x2b6)]();let _0x3696fd=null;switch(this[_0x4d7caa(0x315)]){case _0x9a8e4e[_0x4d7caa(0x1a4)]:_0x3696fd=Zt(this[_0x4d7caa(0x1a7)],this[_0x4d7caa(0x40c)],this[_0x4d7caa(0x1ba)],this['_revisionService'],this['_memberService']);break;case _0x9a8e4e[_0x4d7caa(0x274)]:_0x3696fd=this[_0x4d7caa(0x1a7)][_0x4d7caa(0x3fa)](_0x449f23=>_0x449f23['id']===_0x386ca6['id'])?$t(this['_pendingMutations'],this['unitID'],this['_univerInstanceService'],this[_0x4d7caa(0x403)],this[_0x4d7caa(0x356)]):Zt(this[_0x4d7caa(0x1a7)],this[_0x4d7caa(0x40c)],this['_univerInstanceService'],this['_revisionService'],this[_0x4d7caa(0x356)]);break;case _0x9a8e4e[_0x4d7caa(0x3c8)]:_0x3696fd=Qt(this[_0x4d7caa(0x1a7)],this['unitID'],this[_0x4d7caa(0x1ba)],this[_0x4d7caa(0x403)],this['_memberService']);break;case _0x9a8e4e[_0x4d7caa(0x360)]:_0x3696fd=Zt(this[_0x4d7caa(0x1a7)],this[_0x4d7caa(0x40c)],this[_0x4d7caa(0x1ba)],this['_revisionService'],this[_0x4d7caa(0x356)]);break;case _0x9a8e4e['UNIVER_BASE']:_0x3696fd=Zt(this[_0x4d7caa(0x1a7)],this['unitID'],this[_0x4d7caa(0x1ba)],this['_revisionService'],this[_0x4d7caa(0x356)]);break;default:throw Error(_0x4d7caa(0x3db)+this[_0x4d7caa(0x315)]+'\x20in\x20_schedule.');}let {changeset:_0x3bf8c6,pendingMutations:_0x14a60c}=_0x3696fd;this[_0x4d7caa(0x194)][_0x4d7caa(0x3e8)](_0x3bf8c6);let _0x1986f9=_0x14a60c[_0x4d7caa(0x3a1)]?this['_injector'][_0x4d7caa(0x24d)](Y,this[_0x4d7caa(0x40c)],this[_0x4d7caa(0x315)],_0x3bf8c6,_0x14a60c,this[_0x4d7caa(0x194)],void 0x0):this['_injector']['createInstance'](J,this[_0x4d7caa(0x40c)],this[_0x4d7caa(0x315)],_0x3bf8c6,this[_0x4d7caa(0x194)]);_0x1986f9[_0x4d7caa(0x2bc)](),this[_0x4d7caa(0x194)][_0x4d7caa(0x190)](this,_0x1986f9);},_0x4d22a6);}[_0x3c69ef(0x200)](){const _0x174d81=_0x3c69ef;var _0x21bea1;let _0xc4bb73=this[_0x174d81(0x305)]['getConfig'](L);return(_0x21bea1=_0xc4bb73==null?void 0x0:_0xc4bb73[_0x174d81(0x281)])==null?0x7d0:_0x21bea1;}[_0x3c69ef(0x23b)](){throw Error('[PendingState]:\x20invalid\x20calling\x20to\x20`resend`.');}[_0x3c69ef(0x2b6)](){const _0x215589=_0x3c69ef;this[_0x215589(0x259)]!=null&&(clearTimeout(this[_0x215589(0x259)]),this['_sendingTimer']=null);}[_0x3c69ef(0x370)](_0x3a1030){const _0x20eb17=_0x3c69ef;return this[_0x20eb17(0x2b6)](),this[_0x20eb17(0x27a)][_0x20eb17(0x24d)](X,this[_0x20eb17(0x40c)],this['type'],null,this[_0x20eb17(0x1a7)],this[_0x20eb17(0x194)],_0x3a1030);}};q=un=V([B(0x4,_0xe230cc(_0x31a56e)),B(0x5,_0xe230cc(_0x2d7797)),B(0x6,_0xe230cc(H)),B(0x7,_0x5c3e7f),B(0x8,_0x4705e0),B(0x9,_0x1f37e4),B(0xa,_0x3a995f),B(0xb,_0x344fe1),B(0xc,_0x4aa991),B(0xd,_0x2b3cfa(U))],q);let J=dn=class extends G{constructor(_0x2217ed,_0x1620da,_0x445cff,_0x5e8461,_0x11f79e,_0x3ed9af,_0x465b50,_0x239610,_0x3498db,_0xd1a09c,_0x8922a2){const _0x1a62ef=_0x3c69ef;super(_0x2217ed,_0x1620da,_0x445cff,[],_0x5e8461,_0x465b50,_0xd1a09c,_0x3ed9af,_0x8922a2),this['_injector']=_0x11f79e,this[_0x1a62ef(0x3f4)]=_0x239610,this[_0x1a62ef(0x1c6)]=_0x3498db,R(this,'status','awaiting'),R(this,_0x1a62ef(0x1d6),0x0),R(this,_0x1a62ef(0x322),0x0),R(this,_0x1a62ef(0x318),void 0x0),R(this,_0x1a62ef(0x26f),void 0x0);}[_0x3c69ef(0x3fe)](_0x528f7f){const _0x390399=_0x3c69ef;this[_0x390399(0x2b6)]();let _0x1fcd6b=this[_0x390399(0x27a)]['createInstance'](Y,this[_0x390399(0x40c)],this[_0x390399(0x315)],this[_0x390399(0x2bd)],[_0x528f7f],this['_handler'],this[_0x390399(0x318)]);return _0x1fcd6b[_0x390399(0x2bc)](),_0x1fcd6b;}[_0x3c69ef(0x323)](_0x1a63c7){const _0x1558b6=_0x3c69ef;if(this[_0x1558b6(0x32f)](_0x1a63c7))return this['_clearScheduledTask'](),this[_0x1558b6(0x27a)][_0x1558b6(0x24d)](Q,this['unitID'],this[_0x1558b6(0x315)],this[_0x1558b6(0x2bd)],[],null,[_0x1a63c7],this[_0x1558b6(0x194)]);try{let _0x3134b3=this[_0x1558b6(0x1c6)]['transformChangesets']([_0x1a63c7],[this['_awaitingChangeset']],!0x1);if(_0x23d0df(_0x3134b3)){let {c1Prime:_0x500aee,c2Prime:_0x1436da}=_0x3134b3;this[_0x1558b6(0x3ac)](_0x500aee[0x0]),_0x1436da[0x0][_0x1558b6(0x3f1)]=this[_0x1558b6(0x312)](),this[_0x1558b6(0x2b6)]();let _0x715615=this['_injector'][_0x1558b6(0x24d)](dn,this['unitID'],this[_0x1558b6(0x315)],_0x1436da[0x0],this['_handler']);return _0x715615[_0x1558b6(0x2bc)](),_0x715615;}throw _0x3134b3[_0x1558b6(0x199)];}catch(_0x242c3a){return this[_0x1558b6(0x3f4)][_0x1558b6(0x199)](_0x242c3a),this[_0x1558b6(0x370)](!0x1);}}[_0x3c69ef(0x38c)](_0x2f5501){const _0x34e89a=_0x3c69ef;this['_clearScheduledTask']();let _0x4f44c7=this['_revisionService'][_0x34e89a(0x306)](this[_0x34e89a(0x40c)]);if(_0x2f5501[_0x34e89a(0x2fe)]<=_0x4f44c7)return this;if(this[_0x34e89a(0x32f)](_0x2f5501))return this[_0x34e89a(0x27a)][_0x34e89a(0x24d)](Q,this[_0x34e89a(0x40c)],this[_0x34e89a(0x315)],this[_0x34e89a(0x2bd)],[],_0x2f5501['revision'],[],this[_0x34e89a(0x194)]);this[_0x34e89a(0x1b6)]();let _0x527498=this[_0x34e89a(0x27a)][_0x34e89a(0x24d)](K,this[_0x34e89a(0x40c)],this[_0x34e89a(0x315)],this[_0x34e89a(0x194)]);return _0x527498[_0x34e89a(0x2bc)](),_0x527498;}[_0x3c69ef(0x28f)](_0x46564b){const _0x2dd4dc=_0x3c69ef;return this[_0x2dd4dc(0x370)](!!(_0x46564b!=null&&_0x46564b['isPermissionRej']));}[_0x3c69ef(0x20a)](_0x22711a){const _0xc8d169=_0x3c69ef;return this[_0xc8d169(0x322)]>hn?this['toggleOffline']():(this['_resendTimer']=ln(this[_0xc8d169(0x1d6)],{'timeout':this['_resendTimeout'],'reqId':_0x22711a['reqId']}),this[_0xc8d169(0x26f)]=this[_0xc8d169(0x318)][_0xc8d169(0x420)](({reqId:_0x46823a,timeout:_0xd77f47})=>{const _0x3cdbd6=_0xc8d169;this[_0x3cdbd6(0x417)](_0x46823a,_0xd77f47);}),this);}[_0x3c69ef(0x2f1)](){const _0x3a7542=_0x3c69ef;return this[_0x3a7542(0x2b6)](),this[_0x3a7542(0x27a)][_0x3a7542(0x24d)](Z,this[_0x3a7542(0x40c)],this['type'],this[_0x3a7542(0x2bd)],[],this['_handler']);}['toggleOnline'](){return this;}['resend'](){const _0x40da21=_0x3c69ef;this[_0x40da21(0x194)][_0x40da21(0x3e8)](this[_0x40da21(0x2bd)]);}[_0x3c69ef(0x370)](_0x35f37f){const _0x2d2214=_0x3c69ef;return this[_0x2d2214(0x2b6)](),this[_0x2d2214(0x27a)][_0x2d2214(0x24d)](X,this[_0x2d2214(0x40c)],this[_0x2d2214(0x315)],this['_awaitingChangeset'],[],this['_handler'],_0x35f37f);}[_0x3c69ef(0x417)](_0x8d14e1,_0x113043){const _0x33aa81=_0x3c69ef;var _0x2d1966;_0x8d14e1===((_0x2d1966=this[_0x33aa81(0x2bd)])==null?void 0x0:_0x2d1966['reqId'])&&(this[_0x33aa81(0x23b)](),this[_0x33aa81(0x1d6)]=_0x113043===0x0?0x3e8:Math[_0x33aa81(0x304)](_0x113043*0x2,mn),this[_0x33aa81(0x322)]+=this[_0x33aa81(0x1d6)]);}[_0x3c69ef(0x2b6)](){const _0x1ec1d0=_0x3c69ef;var _0x38c21c;(_0x38c21c=this[_0x1ec1d0(0x26f)])==null||_0x38c21c[_0x1ec1d0(0x3c3)](),this['_resendTimeout']=0x0,this['_maxTotalRetryTimeout']=0x0;}};J=dn=V([B(0x4,_0xe230cc(_0x31a56e)),B(0x5,_0xe230cc(_0x2d7797)),B(0x6,_0x4705e0),B(0x7,_0x5c3e7f),B(0x8,_0x3a995f),B(0x9,_0x4aa991),B(0xa,_0x2b3cfa(U))],J);let Y=fn=class extends G{constructor(_0x545bd6,_0x22c82c,_0x2b46ec,_0x172dfe,_0x2e8d62,_0x2b5225,_0xaf74c,_0x4edf9f,_0x200e6c,_0x386f23,_0x5f466e,_0x5ead60,_0x3a7c70){const _0x568eb4=_0x3c69ef;super(_0x545bd6,_0x22c82c,_0x2b46ec,_0x172dfe,_0x2e8d62,_0x200e6c,_0x5ead60,_0x4edf9f,_0x3a7c70),this['_injector']=_0xaf74c,this['_logService']=_0x386f23,this[_0x568eb4(0x1c6)]=_0x5f466e,this[_0x568eb4(0x19d)]=_0x3a7c70,R(this,_0x568eb4(0x275),_0x568eb4(0x22b)),R(this,_0x568eb4(0x1d6),0x0),R(this,_0x568eb4(0x322),0x0),R(this,_0x568eb4(0x318),void 0x0),R(this,_0x568eb4(0x26f),void 0x0),_0x2b5225&&(this['_resendTimer']=_0x2b5225,this[_0x568eb4(0x26f)]=this[_0x568eb4(0x318)][_0x568eb4(0x420)](({reqId:_0x2d1467,timeout:_0x597fd9})=>{const _0x26a66b=_0x568eb4;this[_0x26a66b(0x417)](_0x2d1467,_0x597fd9);}));}[_0x3c69ef(0x3fe)](_0x45f4de){const _0x2edacf=_0x3c69ef;return this['_pendingMutations'][_0x2edacf(0x217)](_0x45f4de),this;}[_0x3c69ef(0x323)](_0x361f3b){const _0x54f8e4=_0x3c69ef;if(this[_0x54f8e4(0x32f)](_0x361f3b))return this[_0x54f8e4(0x2b6)](),this[_0x54f8e4(0x27a)][_0x54f8e4(0x24d)](Q,this[_0x54f8e4(0x40c)],this['type'],this['_awaitingChangeset'],this[_0x54f8e4(0x1a7)],null,[_0x361f3b],this['_handler']);try{let _0x494d27=this[_0x54f8e4(0x1c6)]['transformChangesets']([_0x361f3b],[this[_0x54f8e4(0x2bd)]],!0x1);if(_0x23d0df(_0x494d27)){let {c1Prime:_0x5e6f90,c2Prime:_0xe3b286}=_0x494d27,_0x334ffa=this['_transformService'][_0x54f8e4(0x2f6)](_0x5e6f90[0x0],this['_pendingMutations']);if(_0x30d694(_0x334ffa)){let {c1Prime:_0x491569,m2Prime:_0x2e21bc}=_0x334ffa;return this['_executeRemoteChangeset'](_0x491569),_0xe3b286[0x0][_0x54f8e4(0x3f1)]=this[_0x54f8e4(0x312)](),this[_0x54f8e4(0x2b6)](),this['_injector']['createInstance'](fn,this[_0x54f8e4(0x40c)],this[_0x54f8e4(0x315)],_0xe3b286[0x0],_0x2e21bc,this[_0x54f8e4(0x194)],void 0x0);}throw _0x334ffa['error'];}throw _0x494d27[_0x54f8e4(0x199)];}catch(_0x14f25c){return this['_logService'][_0x54f8e4(0x199)](_0x14f25c),this[_0x54f8e4(0x370)](!0x1);}}['onRemoteAck'](_0x301298){const _0x24412a=_0x3c69ef;this[_0x24412a(0x2b6)]();let _0x3ff55d=this[_0x24412a(0x312)]();if(_0x301298[_0x24412a(0x2fe)]<=_0x3ff55d)return this;if(this['_checkMissing'](_0x301298))return this[_0x24412a(0x27a)][_0x24412a(0x24d)](Q,this['unitID'],this[_0x24412a(0x315)],this[_0x24412a(0x2bd)],this[_0x24412a(0x1a7)],_0x301298['revision'],[],this[_0x24412a(0x194)]);this[_0x24412a(0x1b6)]();let _0x16c874=this['_injector'][_0x24412a(0x24d)](q,this[_0x24412a(0x40c)],this['type'],this[_0x24412a(0x1a7)],this[_0x24412a(0x194)]);return _0x16c874['_schedule'](),_0x16c874['_updateLocalCache'](),_0x16c874;}[_0x3c69ef(0x28f)](_0x73e28b){const _0x4c7764=_0x3c69ef;return this[_0x4c7764(0x370)](!!(_0x73e28b!=null&&_0x73e28b[_0x4c7764(0x18e)]));}[_0x3c69ef(0x20a)](_0x20b295){const _0x14b613=_0x3c69ef;return this[_0x14b613(0x322)]>hn?this[_0x14b613(0x2f1)]():(this['_resendTimer']=ln(this[_0x14b613(0x1d6)],{'timeout':this[_0x14b613(0x1d6)],'reqId':_0x20b295[_0x14b613(0x256)]}),this[_0x14b613(0x26f)]=this['_resendTimer'][_0x14b613(0x420)](({reqId:_0x5d8979,timeout:_0x881d36})=>{const _0xf9c88a=_0x14b613;this[_0xf9c88a(0x417)](_0x5d8979,_0x881d36);}),this);}[_0x3c69ef(0x2f1)](){const _0x37fa7b=_0x3c69ef;return this[_0x37fa7b(0x2b6)](),this[_0x37fa7b(0x27a)][_0x37fa7b(0x24d)](Z,this[_0x37fa7b(0x40c)],this[_0x37fa7b(0x315)],this[_0x37fa7b(0x2bd)],this[_0x37fa7b(0x1a7)],this[_0x37fa7b(0x194)]);}[_0x3c69ef(0x2b9)](){return this;}[_0x3c69ef(0x23b)](){const _0x45f782=_0x3c69ef;this[_0x45f782(0x194)][_0x45f782(0x3e8)](this['_awaitingChangeset']);}[_0x3c69ef(0x370)](_0x28b618){const _0x5c65b2=_0x3c69ef;return this[_0x5c65b2(0x2b6)](),this[_0x5c65b2(0x27a)][_0x5c65b2(0x24d)](X,this['unitID'],this['type'],null,this[_0x5c65b2(0x1a7)],this[_0x5c65b2(0x194)],_0x28b618);}[_0x3c69ef(0x417)](_0x37bffc,_0x468a23){const _0x32824e=_0x3c69ef;var _0xd948d6;_0x37bffc===((_0xd948d6=this[_0x32824e(0x2bd)])==null?void 0x0:_0xd948d6[_0x32824e(0x256)])&&(this[_0x32824e(0x23b)](),this[_0x32824e(0x1d6)]=_0x468a23===0x0?0x3e8:Math['min'](_0x468a23*0x2,mn),this[_0x32824e(0x322)]+=this[_0x32824e(0x1d6)]);}[_0x3c69ef(0x2b6)](){const _0x5a3e31=_0x3c69ef;var _0x26f761;(_0x26f761=this['_sender'])==null||_0x26f761[_0x5a3e31(0x3c3)](),this[_0x5a3e31(0x1d6)]=0x0,this[_0x5a3e31(0x322)]=0x0;}};Y=fn=V([B(0x6,_0xe230cc(_0x31a56e)),B(0x7,_0xe230cc(_0x2d7797)),B(0x8,_0x4705e0),B(0x9,_0x5c3e7f),B(0xa,_0x3a995f),B(0xb,_0x4aa991),B(0xc,_0x2b3cfa(U))],Y);let X=class extends G{constructor(_0x935a49,_0x5b7a7b,_0x1ae170,_0x577270,_0x4d5629,_0x23d190=!0x1,_0x114832,_0x5077ef,_0x4d28a7,_0x2d17a4,_0x70ff4e,_0x19648f,_0x1d63c2){const _0x244bcb=_0x3c69ef;super(_0x935a49,_0x5b7a7b,_0x1ae170,_0x577270,_0x4d5629,_0x5077ef,_0x4d28a7,_0x2d17a4,_0x1d63c2),this[_0x244bcb(0x28c)]=_0x23d190,this['_permissionService']=_0x114832,this[_0x244bcb(0x2c0)]=_0x70ff4e,this[_0x244bcb(0x290)]=_0x19648f,this[_0x244bcb(0x19d)]=_0x1d63c2,R(this,_0x244bcb(0x275),_0x244bcb(0x338)),this['_showConflictNotification'](),this[_0x244bcb(0x2d1)](),this[_0x244bcb(0x21a)]();}['appendMutation'](){return this;}['onRemoteChangeset'](){return this;}['onRemoteAck'](){return this;}[_0x3c69ef(0x28f)](){return this;}[_0x3c69ef(0x20a)](){return this;}[_0x3c69ef(0x2f1)](){return this;}['toggleOnline'](){return this;}[_0x3c69ef(0x23b)](){const _0x47fe29=_0x3c69ef;throw Error(_0x47fe29(0x18c));}[_0x3c69ef(0x2d1)](){const _0x246258=_0x3c69ef;var _0x3180cf,_0x4a013d,_0x8e6e50;(_0x3180cf=this[_0x246258(0x1f4)])==null||(_0x4a013d=_0x3180cf[_0x246258(0x1fe)])==null||(_0x4a013d=_0x4a013d[_0x246258(0x1db)](_0x3180cf,this[_0x246258(0x40c)],'conflict'))==null||_0x4a013d[_0x246258(0x299)](()=>void 0x0),(_0x8e6e50=this[_0x246258(0x1f4)])==null||_0x8e6e50['updateOfflineData'](this[_0x246258(0x40c)],this['type'],null,[]);}[_0x3c69ef(0x2b2)](){const _0x4b2ba4=_0x3c69ef;this[_0x4b2ba4(0x28c)]?this[_0x4b2ba4(0x290)][_0x4b2ba4(0x377)]({'id':_0x4b2ba4(0x300)}):this['_collaborationUIEventService'][_0x4b2ba4(0x377)]({'id':_0x4b2ba4(0x1f0)});}[_0x3c69ef(0x21a)](){const _0x571d59=_0x3c69ef;this[_0x571d59(0x313)][_0x571d59(0x32b)](new _0x1413a3(this['unitID'])['id'],!0x1);}};X=V([B(0x6,_0xe230cc(_0x36da45)),B(0x7,_0x4705e0),B(0x8,_0x4aa991),B(0x9,_0xe230cc(_0x2d7797)),B(0xa,_0xe230cc(_0x9a407d)),B(0xb,_0xe230cc(z)),B(0xc,_0x2b3cfa(U))],X);let Z=class extends G{constructor(_0x1bc167,_0x340eee,_0x49de8c,_0x4957bd,_0x118cd9,_0xa3890b,_0x234bca,_0x2e4f8d,_0x2ce56d,_0x235b41){const _0xf9a1a2=_0x3c69ef;super(_0x1bc167,_0x340eee,_0x49de8c,_0x4957bd,_0x118cd9,_0x2e4f8d,_0x2ce56d,_0x234bca,_0x235b41),this[_0xf9a1a2(0x27a)]=_0xa3890b,R(this,_0xf9a1a2(0x275),_0xf9a1a2(0x255));}[_0x3c69ef(0x3fe)](_0x2c4e64){const _0x32859c=_0x3c69ef;return this[_0x32859c(0x1a7)][_0x32859c(0x217)](_0x2c4e64),this['_updateLocalCache'](),this;}[_0x3c69ef(0x323)](_0x2c32fb){throw Error('[OfflineState]:\x20received\x20changeset.');}[_0x3c69ef(0x38c)](){const _0x233166=_0x3c69ef;throw Error(_0x233166(0x1dc));}[_0x3c69ef(0x28f)](){const _0x15edf2=_0x3c69ef;throw Error(_0x15edf2(0x3fb));}[_0x3c69ef(0x20a)](){return this;}[_0x3c69ef(0x2f1)](){return this;}[_0x3c69ef(0x2b9)](){const _0x4c7a93=_0x3c69ef;let {_injector:_0x3ce6d2,_pendingMutations:_0x2dd51c,_awaitingChangeset:_0x425547,unitID:_0x2d8832,_handler:_0x3bb6e1,type:_0x1d4996}=this,_0x223862=gn(_0x3ce6d2,_0x2d8832,_0x1d4996,_0x425547,_0x2dd51c,_0x3bb6e1);return _0x223862 instanceof q?_0x223862['_schedule']():(_0x223862 instanceof Y||_0x223862 instanceof J)&&_0x223862[_0x4c7a93(0x23b)](),_0x223862;}[_0x3c69ef(0x23b)](){const _0x31f545=_0x3c69ef;throw Error(_0x31f545(0x1cd));}};Z=V([B(0x5,_0xe230cc(_0x31a56e)),B(0x6,_0xe230cc(_0x2d7797)),B(0x7,_0x4705e0),B(0x8,_0x4aa991),B(0x9,_0x2b3cfa(U))],Z);let Q=class extends G{constructor(_0xa4ce7,_0x57443d,_0x48415c,_0x5c66db,_0x42b46c,_0x49d572,_0x3bd616,_0x4e346a,_0x4973c2,_0xa7caba,_0x1f5a99,_0x35a90e,_0x4c2d8f,_0x4abb00){const _0x597de6=_0x3c69ef;super(_0xa4ce7,_0x57443d,_0x48415c,_0x5c66db,_0x3bd616,_0x1f5a99,_0x35a90e,_0x4973c2,_0x4abb00),this[_0x597de6(0x2d2)]=_0x42b46c,this['_queuedRemoteChangesets']=_0x49d572,this['_injector']=_0x4e346a,this[_0x597de6(0x3f4)]=_0xa7caba,this[_0x597de6(0x1c6)]=_0x4c2d8f,this[_0x597de6(0x19d)]=_0x4abb00,R(this,_0x597de6(0x275),_0x597de6(0x302));}[_0x3c69ef(0x33e)](_0x32bd77){const _0x2ace9e=_0x3c69ef;try{if(this[_0x2ace9e(0x216)](_0x32bd77)[_0x2ace9e(0x219)])throw Error(_0x2ace9e(0x20d));if(this[_0x2ace9e(0x216)]([...this[_0x2ace9e(0x25c)]]['sort']((_0x19bad8,_0x1e44fb)=>_0x19bad8['revision']-_0x1e44fb[_0x2ace9e(0x2fe)]))[_0x2ace9e(0x219)])return this[_0x2ace9e(0x25c)]=[],this[_0x2ace9e(0x2bc)](),this['_handler'][_0x2ace9e(0x23c)]({'from':this[_0x2ace9e(0x312)](),'to':0x0}),this;let _0x44fd45=this[_0x2ace9e(0x2bd)],_0x3e7454=this['_pendingMutations'],_0x3f7833;if(_0x44fd45&&_0x3e7454[_0x2ace9e(0x3a1)]!==0x0)_0x3f7833=this['_injector'][_0x2ace9e(0x24d)](Y,this['unitID'],this[_0x2ace9e(0x315)],_0x44fd45,_0x3e7454,this[_0x2ace9e(0x194)],void 0x0);else{if(_0x44fd45&&_0x3e7454[_0x2ace9e(0x3a1)]===0x0)_0x44fd45[_0x2ace9e(0x3f1)]=this[_0x2ace9e(0x312)](),_0x3f7833=this[_0x2ace9e(0x27a)][_0x2ace9e(0x24d)](J,this[_0x2ace9e(0x40c)],this[_0x2ace9e(0x315)],_0x44fd45,this['_handler']);else{if(_0x3e7454[_0x2ace9e(0x3a1)]!==0x0){let _0x1d66cd=this[_0x2ace9e(0x27a)][_0x2ace9e(0x24d)](q,this[_0x2ace9e(0x40c)],this[_0x2ace9e(0x315)],_0x3e7454,this[_0x2ace9e(0x194)]);_0x1d66cd[_0x2ace9e(0x3dd)](),_0x3f7833=_0x1d66cd;}else _0x3f7833=this['_injector'][_0x2ace9e(0x24d)](K,this[_0x2ace9e(0x40c)],this[_0x2ace9e(0x315)],this[_0x2ace9e(0x194)]);}}return _0x3f7833[_0x2ace9e(0x2bc)](),_0x3f7833;}catch(_0x33877a){return this['_logService'][_0x2ace9e(0x199)](_0x2ace9e(0x20e),_0x2ace9e(0x30c),_0x33877a),this[_0x2ace9e(0x27a)][_0x2ace9e(0x24d)](X,this[_0x2ace9e(0x40c)],this[_0x2ace9e(0x315)],this[_0x2ace9e(0x2bd)],this[_0x2ace9e(0x1a7)],this[_0x2ace9e(0x194)],!0x1);}}[_0x3c69ef(0x216)](_0x510a16){const _0x356cac=_0x3c69ef;this[_0x356cac(0x2a4)]();for(let _0x40a128=0x0;_0x40a128<_0x510a16[_0x356cac(0x3a1)];_0x40a128++){let _0x135973=_0x510a16[_0x40a128],_0x1efeed=this['_getCurrentRevision']();if(!(_0x135973['revision']<=_0x1efeed)){if(_0x135973['revision']>_0x1efeed+0x1)return{'missingChangesets':!0x0};if(this[_0x356cac(0x2db)](_0x135973)){this['_acknowledgeAwaiting']();continue;}this[_0x356cac(0x298)](_0x135973),this[_0x356cac(0x2a4)]();}}return{'missingChangesets':!0x1};}[_0x3c69ef(0x298)](_0x19404c){const _0x257c91=_0x3c69ef;let _0x183101=_0x19404c,_0x247419=this[_0x257c91(0x2bd)];if(_0x247419){let _0x5d6650=this[_0x257c91(0x1c6)][_0x257c91(0x1f8)]([_0x19404c],[_0x247419],!0x1);if(!_0x23d0df(_0x5d6650))throw _0x5d6650[_0x257c91(0x199)];_0x183101=_0x5d6650[_0x257c91(0x29c)][0x0],_0x247419=_0x5d6650[_0x257c91(0x2e3)][0x0];}let _0x54e9bc=this[_0x257c91(0x1a7)];if(_0x54e9bc[_0x257c91(0x3a1)]){let _0x65506d=this[_0x257c91(0x1c6)][_0x257c91(0x2f6)](_0x183101,_0x54e9bc);if(!_0x30d694(_0x65506d))throw _0x65506d['error'];_0x183101=_0x65506d[_0x257c91(0x29c)],_0x54e9bc=_0x65506d[_0x257c91(0x3a6)];}this['_executeRemoteChangeset'](_0x183101),_0x247419&&(_0x247419['baseRev']=this[_0x257c91(0x312)]()),this[_0x257c91(0x2bd)]=_0x247419,this[_0x257c91(0x1a7)]=_0x54e9bc;}[_0x3c69ef(0x2a4)](){const _0xaca3f4=_0x3c69ef;if(!this['_awaitingChangeset']||this[_0xaca3f4(0x2d2)]==null)return;let _0x201e20=this[_0xaca3f4(0x312)]();if(this[_0xaca3f4(0x2d2)]<=_0x201e20)throw Error(_0xaca3f4(0x286)+this['_acknowledgedAwaitingRevision']+'.');this[_0xaca3f4(0x2d2)]===_0x201e20+0x1&&this[_0xaca3f4(0x31d)]();}[_0x3c69ef(0x31d)](){const _0x1cd40f=_0x3c69ef;this[_0x1cd40f(0x1b6)](),this[_0x1cd40f(0x2bd)]=null,this[_0x1cd40f(0x2d2)]=null;}['_isEchoedAwaitingChangeset'](_0x2eacbd){const _0x25d81d=_0x3c69ef;let _0x250261=this[_0x25d81d(0x2bd)];return!_0x250261||!_0x250261['sid']||_0x250261[_0x25d81d(0x256)]===null||_0x250261[_0x25d81d(0x256)]===void 0x0?!0x1:_0x2eacbd[_0x25d81d(0x40c)]===_0x250261[_0x25d81d(0x40c)]&&_0x2eacbd[_0x25d81d(0x41d)]===_0x250261[_0x25d81d(0x41d)]&&_0x2eacbd[_0x25d81d(0x256)]===_0x250261[_0x25d81d(0x256)];}[_0x3c69ef(0x23b)](){const _0x40027=_0x3c69ef;throw Error(_0x40027(0x30b));}['appendMutation'](_0x408edb){const _0x1fc867=_0x3c69ef;return this[_0x1fc867(0x1a7)]['push'](_0x408edb),this;}['onRemoteChangeset'](_0x38791b){const _0x31fa66=_0x3c69ef;return this[_0x31fa66(0x25c)][_0x31fa66(0x217)](_0x38791b),this;}[_0x3c69ef(0x38c)](_0x57635c){const _0x128711=_0x3c69ef;if(this['_awaitingChangeset']){let _0x35d51f=this[_0x128711(0x312)]();return _0x57635c[_0x128711(0x2fe)]<=_0x35d51f||(_0x35d51f+0x1===_0x57635c[_0x128711(0x2fe)]?(this[_0x128711(0x1b6)](),this[_0x128711(0x2bd)]=null,this[_0x128711(0x2d2)]=null):this[_0x128711(0x2d2)]=_0x57635c['revision']),this;}if(_0x57635c['revision']<=this['_getCurrentRevision']())return this;throw Error(_0x128711(0x2eb));}[_0x3c69ef(0x28f)](_0x560c8c){const _0xbd1e0a=_0x3c69ef;return this[_0xbd1e0a(0x370)](!!(_0x560c8c!=null&&_0x560c8c[_0xbd1e0a(0x18e)]));}[_0x3c69ef(0x20a)](){return this;}[_0x3c69ef(0x2f1)](){const _0x5c690a=_0x3c69ef;return this['_injector']['createInstance'](Z,this[_0x5c690a(0x40c)],this[_0x5c690a(0x315)],this['_awaitingChangeset'],this[_0x5c690a(0x1a7)],this[_0x5c690a(0x194)]);}[_0x3c69ef(0x2b9)](){return this;}[_0x3c69ef(0x370)](_0x188fcb){const _0x162dc4=_0x3c69ef;return this[_0x162dc4(0x27a)]['createInstance'](X,this['unitID'],this[_0x162dc4(0x315)],this[_0x162dc4(0x2bd)],this['_pendingMutations'],this['_handler'],_0x188fcb);}};Q=V([B(0x7,_0xe230cc(_0x31a56e)),B(0x8,_0xe230cc(_0x2d7797)),B(0x9,_0x5c3e7f),B(0xa,_0x4705e0),B(0xb,_0x4aa991),B(0xc,_0x3a995f),B(0xd,_0x2b3cfa(U))],Q);function gn(_0x38ff98,_0x206b20,_0x15d397,_0x1188bc,_0x11a980,_0xb9be65){const _0x11a9a7=_0x3c69ef;return _0x1188bc&&_0x11a980[_0x11a9a7(0x3a1)]?_0x38ff98[_0x11a9a7(0x24d)](Y,_0x206b20,_0x15d397,_0x1188bc,_0x11a980,_0xb9be65,void 0x0):_0x1188bc?_0x38ff98[_0x11a9a7(0x24d)](J,_0x206b20,_0x15d397,_0x1188bc,_0xb9be65):_0x11a980[_0x11a9a7(0x3a1)]?_0x38ff98[_0x11a9a7(0x24d)](q,_0x206b20,_0x15d397,_0x11a980,_0xb9be65):_0x38ff98['createInstance'](K,_0x206b20,_0x15d397,_0xb9be65);}let $=class extends _0x50b38b{get[_0x3c69ef(0x378)](){const _0x4a11eb=_0x3c69ef;return this[_0x4a11eb(0x222)];}constructor(_0x1a9adb,_0x443d4f,_0x18c436,_0x338b41,_0x444e76,_0x2119ec,_0x56b4be,_0x187d5f,_0x42bc3c,_0x219e50,_0x5efb9d,_0x291d58,_0x367277,_0x1f1c26){const _0x438272=_0x3c69ef;super(),this[_0x438272(0x40c)]=_0x1a9adb,this[_0x438272(0x1c3)]=_0x443d4f,this[_0x438272(0x3ed)]=_0x18c436,this[_0x438272(0x27a)]=_0x338b41,this['_compressMutationService']=_0x444e76,this[_0x438272(0x2c0)]=_0x2119ec,this[_0x438272(0x403)]=_0x56b4be,this[_0x438272(0x3ef)]=_0x187d5f,this[_0x438272(0x1ba)]=_0x42bc3c,this[_0x438272(0x3f4)]=_0x219e50,this[_0x438272(0x1ac)]=_0x5efb9d,this[_0x438272(0x313)]=_0x291d58,this[_0x438272(0x2d5)]=_0x367277,this[_0x438272(0x1f4)]=_0x1f1c26,R(this,_0x438272(0x232),new _0x296086(null)),R(this,_0x438272(0x2ec),this['_state$'][_0x438272(0x1cc)]()),R(this,_0x438272(0x222),void 0x0),R(this,'_collaborationPaused',!0x1),R(this,'_changesetSessionId',''),R(this,_0x438272(0x373),0x0),R(this,'status$',this[_0x438272(0x2ec)][_0x438272(0x380)](_0x37ecf3(_0x2aec4e=>_0x2aec4e?_0x2aec4e[_0x438272(0x275)]:_0x438272(0x255)),_0x1c2ab6({'bufferSize':0x1,'refCount':!0x0}))),R(this,_0x438272(0x2c4),!0x1),R(this,_0x438272(0x1ed),[]);}async[_0x3c69ef(0x2ea)](){const _0x14929e=_0x3c69ef;if(this[_0x14929e(0x378)])throw Error(_0x14929e(0x3e5));await this[_0x14929e(0x293)]();}[_0x3c69ef(0x2ca)](){const _0x143c4b=_0x3c69ef;return this[_0x143c4b(0x2cc)]=!0x0,_0x4a5ee8(()=>{const _0x5eccf7=_0x143c4b;this[_0x5eccf7(0x2cc)]=!0x1,this[_0x5eccf7(0x3f7)]();});}[_0x3c69ef(0x1d8)](_0x122a3f){this['_onLocalMutation'](_0x122a3f);}[_0x3c69ef(0x285)](_0x1052cf){const _0xc2d14c=_0x3c69ef;this[_0xc2d14c(0x222)]=_0x1052cf,this[_0xc2d14c(0x232)]['next'](_0x1052cf);}async[_0x3c69ef(0x293)](){const _0x2e1274=_0x3c69ef;if(this[_0x2e1274(0x285)](await this[_0x2e1274(0x280)]()),this[_0x2e1274(0x2d5)]){var _0x25a336;(_0x25a336=this[_0x2e1274(0x2d5)])==null||_0x25a336[_0x2e1274(0x415)](this[_0x2e1274(0x40c)]),this[_0x2e1274(0x3b8)](this['_singleActiveUnitService']['getUnitStatus$'](this[_0x2e1274(0x40c)])[_0x2e1274(0x420)](_0x4f70bd=>{const _0x4b1639=_0x2e1274;this[_0x4b1639(0x3f4)]['debug']('[CollaborationEntity]',_0x4b1639(0x33b),_0x4f70bd),_0x4f70bd===0x1?(this[_0x4b1639(0x3ef)][_0x4b1639(0x377)]({'id':_0x4b1639(0x231)}),this[_0x4b1639(0x313)][_0x4b1639(0x32b)](new _0x1413a3(this[_0x4b1639(0x40c)])['id'],!0x1),this['_permissionService'][_0x4b1639(0x25b)](!0x1)):(this[_0x4b1639(0x313)]['updatePermissionPoint'](new _0x1413a3(this[_0x4b1639(0x40c)])['id'],!0x0),this[_0x4b1639(0x313)]['setShowComponents'](!0x0));}));}let _0xf66a36=!0x1;return this['disposeWithMe'](this[_0x2e1274(0x1c3)][_0x2e1274(0x2ae)][_0x2e1274(0x420)](_0x52f261=>{const _0x57d6c5=_0x2e1274;_0x52f261===0x3?this[_0x57d6c5(0x362)](_0xf66a36):_0x52f261===0x2&&(_0xf66a36=!0x0,this[_0x57d6c5(0x350)]());})),this[_0x2e1274(0x3b8)](this[_0x2e1274(0x1c3)][_0x2e1274(0x1b7)][_0x2e1274(0x420)](_0xd5f611=>{const _0x97877e=_0x2e1274;try{switch(_0xd5f611['eventID']){case _0x43102b['NEW_CHANGESETS']:this['_onRemoteChangeset'](_0x131ca5(_0xd5f611[_0x97877e(0x2ee)]));break;case _0x43102b['CHANGESET_ACK']:this[_0x97877e(0x394)](_0xd5f611[_0x97877e(0x2ee)]);break;case _0x43102b['CHANGESET_REJ']:this[_0x97877e(0x400)]();break;case _0x43102b['CHANGESET_SHOULD_RETRY']:this[_0x97877e(0x37d)](_0xd5f611[_0x97877e(0x2ee)]);break;case _0x43102b[_0x97877e(0x269)]:this[_0x97877e(0x3cc)](_0xd5f611[_0x97877e(0x2ee)][_0x97877e(0x23a)][_0x97877e(0x35d)](_0x4e6094=>_0x131ca5(_0x4e6094)));break;case _0x43102b[_0x97877e(0x271)]:this['_onRemoteRejected']({'isPermissionRej':!0x0});break;case _0x43102b[_0x97877e(0x251)]:break;}}catch(_0x525b19){throw console['error'](_0x97877e(0x1bf),_0x525b19),_0x525b19;}})),this[_0x2e1274(0x222)];}[_0x3c69ef(0x1a2)](){this['_transitionLocked']=!0x1;}['_lockTransition'](){const _0x539433=_0x3c69ef;if(this[_0x539433(0x2c4)])throw Error(_0x539433(0x25a));this['_transitionLocked']=!0x0;}[_0x3c69ef(0x30f)](_0x49eaef){const _0x53cf65=_0x3c69ef;this[_0x53cf65(0x3a9)](),this['_updateState'](this['_state']['appendMutation'](_0x49eaef)),this['_unlockTransition']();}[_0x3c69ef(0x205)](_0x134d74){const _0x3dc6a8=_0x3c69ef;if(!(_0x134d74[_0x3dc6a8(0x2fe)]<=this[_0x3dc6a8(0x403)][_0x3dc6a8(0x306)](this['unitID']))){if(this[_0x3dc6a8(0x2cc)]){this[_0x3dc6a8(0x1ed)][_0x3dc6a8(0x217)](_0x134d74);return;}this[_0x3dc6a8(0x3df)](_0x134d74);}}[_0x3c69ef(0x3f7)](){const _0x474efe=_0x3c69ef;this[_0x474efe(0x1ed)][_0x474efe(0x1e5)](_0x4413b8=>this[_0x474efe(0x3df)](_0x4413b8)),this[_0x474efe(0x1ed)]=[];}[_0x3c69ef(0x3df)](_0x3693c7){const _0x17f440=_0x3c69ef;let _0x32117d=this['_compressMutationService'][_0x17f440(0x1fd)][_0x17f440(0x2b1)](this['_compressMutationService'][_0x17f440(0x1fd)]['getInterceptPoints']()[_0x17f440(0x392)])(_0x3693c7['mutations'],null)||_0x3693c7['mutations'],_0xe24772={..._0x3693c7,'mutations':_0x32117d};this['_lockTransition'](),this[_0x17f440(0x285)](this[_0x17f440(0x222)]['onRemoteChangeset'](_0xe24772)),this[_0x17f440(0x1a2)]();}[_0x3c69ef(0x394)](_0x2a823b){const _0x1be608=_0x3c69ef;this[_0x1be608(0x3a9)](),this[_0x1be608(0x285)](this[_0x1be608(0x222)][_0x1be608(0x38c)](_0x2a823b)),this[_0x1be608(0x1a2)]();}[_0x3c69ef(0x400)](_0x482d60){const _0x2ef6b3=_0x3c69ef;this[_0x2ef6b3(0x3a9)](),this[_0x2ef6b3(0x285)](this['_state'][_0x2ef6b3(0x28f)](_0x482d60)),this[_0x2ef6b3(0x1a2)]();}[_0x3c69ef(0x37d)](_0x1fb3f5){const _0x316204=_0x3c69ef;this[_0x316204(0x3a9)](),this[_0x316204(0x285)](this[_0x316204(0x222)][_0x316204(0x20a)](_0x1fb3f5)),this['_unlockTransition']();}[_0x3c69ef(0x3cc)](_0x5c86bd){const _0x36c857=_0x3c69ef;if(!(this[_0x36c857(0x222)]instanceof Q))throw TypeError(_0x36c857(0x208));let _0x3b8c51=_0x5c86bd[_0x36c857(0x35d)](_0x22b9c=>{const _0x28d52c=_0x36c857;let _0x361da1=this['_compressMutationService'][_0x28d52c(0x1fd)][_0x28d52c(0x2b1)](this[_0x28d52c(0x1be)][_0x28d52c(0x1fd)]['getInterceptPoints']()[_0x28d52c(0x392)])(_0x22b9c['mutations'],null)||_0x22b9c['mutations'];return{..._0x22b9c,'mutations':_0x361da1};});this[_0x36c857(0x3a9)](),this[_0x36c857(0x285)](this['_state'][_0x36c857(0x33e)](_0x3b8c51)),this['_unlockTransition']();}[_0x3c69ef(0x350)](){const _0x1b3188=_0x3c69ef;this[_0x1b3188(0x3a9)](),this[_0x1b3188(0x285)](this[_0x1b3188(0x222)][_0x1b3188(0x2f1)]()),this[_0x1b3188(0x1a2)]();}[_0x3c69ef(0x362)](_0x424c7d=!0x1){const _0x5b6b53=_0x3c69ef;this['_lockTransition'](),this['_updateState'](this[_0x5b6b53(0x222)]['toggleOnline']()),this[_0x5b6b53(0x1a2)]();let _0x59cc1f=this[_0x5b6b53(0x222)];_0x424c7d&&_0x59cc1f instanceof K&&(this['_lockTransition'](),this[_0x5b6b53(0x285)](_0x59cc1f[_0x5b6b53(0x2cd)]()),this[_0x5b6b53(0x1a2)]());}async[_0x3c69ef(0x280)](){return new Promise(_0x20106a=>{const _0x49a8d4=_0x43c7;this['session'][_0x49a8d4(0x2ae)][_0x49a8d4(0x380)](_0x40acda(0x1))[_0x49a8d4(0x420)](async _0x5177c1=>{const _0x3d6d0f=_0x49a8d4;_0x20106a(await this[_0x3d6d0f(0x1ad)](_0x5177c1===0x3));});});}['_createHandler'](){let _0x163f03=this['unitID'];return{'onStateChange':(_0x1832a4,_0x40f3ed)=>{const _0x4a34ee=_0x43c7;if(_0x1832a4!==this[_0x4a34ee(0x222)])throw Error(_0x4a34ee(0x2f5)+_0x1832a4[_0x4a34ee(0x275)]+_0x4a34ee(0x2e1)+_0x40f3ed[_0x4a34ee(0x275)]+_0x4a34ee(0x357)+this[_0x4a34ee(0x222)]['status']);this['_updateState'](_0x40f3ed);},'onSendChangeset':_0xdca9d1=>{const _0x1511db=_0x43c7;_0xdca9d1[_0x1511db(0x41d)]||(_0xdca9d1[_0x1511db(0x41d)]=this[_0x1511db(0x191)],_0xdca9d1[_0x1511db(0x256)]=++this[_0x1511db(0x373)]);let _0xc9886c={'eventID':_0x43102b[_0x1511db(0x36c)],'data':{'unitID':_0xdca9d1[_0x1511db(0x40c)],'unitType':this[_0x1511db(0x3ed)],'changeset':_0xdca9d1,'memberID':this[_0x1511db(0x1c3)]['getMemberID']()}};this[_0x1511db(0x1c3)]['send'](_0xc9886c,this[_0x1511db(0x40c)]);},'onMissingChangesets':({from:_0x6c9298,to:_0xd3982c})=>{const _0x38b03c=_0x43c7;this[_0x38b03c(0x3f4)][_0x38b03c(0x2c6)](_0x38b03c(0x26c),_0x38b03c(0x20c)+_0x6c9298+_0x38b03c(0x234)+_0xd3982c);let _0x345002={'eventID':_0x43102b['FETCH_MISSING'],'data':{'unitID':_0x163f03,'unitType':this['_type'],'from':_0x6c9298,'to':_0xd3982c}};this[_0x38b03c(0x1c3)]['send'](_0x345002,this[_0x38b03c(0x40c)]);}};}async['_createInitialStateImpl'](_0x4e7252){const _0x2fff1a=_0x3c69ef;var _0x212162,_0x3ff504,_0x90e848;let _0x2e694e=await((_0x212162=this[_0x2fff1a(0x1f4)])==null?void 0x0:_0x212162[_0x2fff1a(0x3ce)](this[_0x2fff1a(0x40c)])),_0x4827e4=(_0x3ff504=_0x2e694e==null?void 0x0:_0x2e694e[_0x2fff1a(0x188)])==null?[]:_0x3ff504,_0x3a75e9=(_0x90e848=_0x2e694e==null?void 0x0:_0x2e694e[_0x2fff1a(0x2af)])==null?null:_0x90e848,_0x5e9c16=!!(_0x3a75e9!=null&&_0x3a75e9['sid'])&&!!(_0x3a75e9!=null&&_0x3a75e9[_0x2fff1a(0x256)]);this[_0x2fff1a(0x191)]=_0x5e9c16?_0x3a75e9['sid']:_0x15262c(),this[_0x2fff1a(0x373)]=_0x5e9c16?_0x3a75e9[_0x2fff1a(0x256)]:0x0;let _0x52638f=this[_0x2fff1a(0x40c)];try{this[_0x2fff1a(0x396)](_0x3a75e9,_0x4827e4);}catch(_0x29894e){this[_0x2fff1a(0x3f4)][_0x2fff1a(0x199)](_0x29894e);}let _0x203e8d=this[_0x2fff1a(0x39a)]();if(_0x4e7252){let _0x56df9e=gn(this[_0x2fff1a(0x27a)],_0x52638f,this[_0x2fff1a(0x3ed)],_0x3a75e9,_0x4827e4,_0x203e8d);return _0x56df9e instanceof q?_0x56df9e[_0x2fff1a(0x3dd)]():(_0x56df9e instanceof Y||_0x56df9e instanceof J)&&_0x56df9e[_0x2fff1a(0x23b)](),_0x56df9e;}return this[_0x2fff1a(0x27a)][_0x2fff1a(0x24d)](Z,_0x52638f,this['_type'],_0x3a75e9,_0x4827e4,_0x203e8d);}[_0x3c69ef(0x396)](_0x2bd800,_0xda174b){const _0x58ad1a=_0x3c69ef;var _0x50ab9a,_0x416047;let _0x1c1c31=this[_0x58ad1a(0x1be)][_0x58ad1a(0x1fd)]['fetchThroughInterceptors'](this[_0x58ad1a(0x1be)]['interceptor'][_0x58ad1a(0x29a)]()[_0x58ad1a(0x392)]);(_0x50ab9a=_0x1c1c31((_0x2bd800==null?void 0x0:_0x2bd800[_0x58ad1a(0x188)])||[],null))==null||_0x50ab9a[_0x58ad1a(0x1e5)](_0x397bfc=>this[_0x58ad1a(0x1ac)]['executeCommand'](_0x397bfc['id'],_0x397bfc['params'])),(_0x416047=_0x1c1c31(_0xda174b||[],null))==null||_0x416047[_0x58ad1a(0x1e5)](_0x2d092f=>this[_0x58ad1a(0x1ac)][_0x58ad1a(0x295)](_0x2d092f['id'],_0x2d092f[_0x58ad1a(0x3c6)]));}};$=V([B(0x3,_0xe230cc(_0x31a56e)),B(0x4,_0xe230cc(_0x4e166f)),B(0x5,_0xe230cc(_0x9a407d)),B(0x6,_0xe230cc(_0x2d7797)),B(0x7,_0xe230cc(z)),B(0x8,_0x344fe1),B(0x9,_0x5c3e7f),B(0xa,_0x4705e0),B(0xb,_0x36da45),B(0xc,_0x2b3cfa(W)),B(0xd,_0x2b3cfa(U))],$);let _n=class extends ${constructor(_0x2e8548,_0x42f376,_0xaa74ee,_0x3b47f8,_0x1dd896,_0x300aed,_0x132c2,_0x2b39e9,_0x1e398c,_0x399076,_0x1ebdc7,_0x44e95e,_0x5484ad,_0x118107,_0x464c3c){const _0x50411f=_0x3c69ef;super(_0x2e8548,_0xaa74ee,_0x42f376,_0x3b47f8,_0x1dd896,_0x300aed,_0x132c2,_0x2b39e9,_0x1e398c,_0x399076,_0x1ebdc7,_0x44e95e,_0x118107,_0x464c3c),this['unitID']=_0x2e8548,this['type']=_0x42f376,this['_docStateChangeManagerService']=_0x5484ad,R(this,_0x50411f(0x1f9),null);}[_0x3c69ef(0x310)](_0x426f7e){const _0x2a4b13=_0x3c69ef;this[_0x2a4b13(0x1f9)]=_0x426f7e;}['dispose'](){const _0x22413b=_0x3c69ef;this[_0x22413b(0x1f9)]=null,super['dispose']();}[_0x3c69ef(0x39a)](){const _0x419a31=_0x3c69ef;let _0x47120b=super[_0x419a31(0x39a)]();return _0x47120b[_0x419a31(0x2be)]=_0x2a48e9=>{const _0x4b613a=_0x419a31;var _0x3157dc,_0x3d8e1f;return(_0x3157dc=this[_0x4b613a(0x1f9)])==null||(_0x3d8e1f=_0x3157dc[_0x4b613a(0x2be)])==null?void 0x0:_0x3d8e1f[_0x4b613a(0x1db)](_0x3157dc,_0x2a48e9);},_0x47120b[_0x419a31(0x3d5)]=_0x590a14=>{const _0x5ab02c=_0x419a31;var _0x3b92ff,_0xa01130;return(_0x3b92ff=this[_0x5ab02c(0x1f9)])==null||(_0xa01130=_0x3b92ff['onTransformState'])==null?void 0x0:_0xa01130[_0x5ab02c(0x1db)](_0x3b92ff,_0x590a14);},_0x47120b[_0x419a31(0x218)]=_0x707d0b=>{const _0x4eed76=_0x419a31;var _0x1060dd,_0x6b5f6a;return(_0x1060dd=this[_0x4eed76(0x1f9)])==null||(_0x6b5f6a=_0x1060dd['onTransformSelections'])==null?void 0x0:_0x6b5f6a[_0x4eed76(0x1db)](_0x1060dd,_0x707d0b);},_0x47120b['onSyncEditingCollabCursor']=_0x400fc9=>{const _0x6cb29b=_0x419a31;var _0x52fbee,_0x14b0af;return(_0x52fbee=this[_0x6cb29b(0x1f9)])==null||(_0x14b0af=_0x52fbee[_0x6cb29b(0x41c)])==null?void 0x0:_0x14b0af[_0x6cb29b(0x1db)](_0x52fbee,_0x400fc9);},_0x47120b[_0x419a31(0x1df)]=_0x302ecc=>{const _0x542e27=_0x419a31;var _0x4d4b2d,_0x556a6b,_0x4d14ca;return(_0x4d4b2d=(_0x556a6b=this[_0x542e27(0x1f9)])==null||(_0x4d14ca=_0x556a6b[_0x542e27(0x1df)])==null?void 0x0:_0x4d14ca[_0x542e27(0x1db)](_0x556a6b,_0x302ecc))==null?_0x302ecc:_0x4d4b2d;},_0x47120b[_0x419a31(0x1d2)]=_0x18a952=>{const _0x181727=_0x419a31;var _0x5e592c,_0xb35c92,_0x570730;return(_0x5e592c=(_0xb35c92=this[_0x181727(0x1f9)])==null||(_0x570730=_0xb35c92['onTransformRemoteChangesetByStateCache'])==null?void 0x0:_0x570730['call'](_0xb35c92,_0x18a952))==null?_0x18a952:_0x5e592c;},_0x47120b;}async[_0x3c69ef(0x293)](){const _0x2c68bf=_0x3c69ef;if(this[_0x2c68bf(0x2e5)]==null)throw Error('[DocCollaborationEntity]:\x20DocStateChangeManagerService\x20is\x20required.\x20Register\x20UniverDocsPlugin\x20before\x20collaboration.');let _0x13e389=await super[_0x2c68bf(0x293)]();return this[_0x2c68bf(0x3b8)](this['_docStateChangeManagerService'][_0x2c68bf(0x383)][_0x2c68bf(0x420)](_0x13a77e=>{const _0x34df37=_0x2c68bf;if(_0x13a77e==null||_0x13a77e['unitId']!==this[_0x34df37(0x40c)])return;let {commandId:_0x4a36b6,redoState:_0x1c5ee7,unitId:_0x20d0cd}=_0x13a77e,_0x50ba65={'id':_0x4a36b6,'type':_0x537f94[_0x34df37(0x249)],'params':{'unitId':_0x20d0cd,'actions':_0x1c5ee7['actions'],'textRanges':null}};this['_onLocalMutation'](_0x50ba65);})),this[_0x2c68bf(0x3b8)](this[_0x2c68bf(0x1ac)][_0x2c68bf(0x24a)]((_0x572a8b,_0x92f048)=>{const _0x440adc=_0x2c68bf;if(_0x572a8b[_0x440adc(0x315)]!==_0x537f94[_0x440adc(0x249)]||_0x92f048!=null&&_0x92f048['fromCollab']||_0x92f048!=null&&_0x92f048[_0x440adc(0x1d4)]||_0x572a8b['id']===_0x386ca6['id'])return;let _0x32d818=_0x572a8b[_0x440adc(0x3c6)];if((_0x32d818==null?void 0x0:_0x32d818['unitId'])!==this[_0x440adc(0x40c)])return;let _0x1e0819=_0x572a8b,_0x35dfbf=this['_compressMutationService'][_0x440adc(0x1fd)][_0x440adc(0x2b1)](this[_0x440adc(0x1be)][_0x440adc(0x1fd)][_0x440adc(0x29a)]()[_0x440adc(0x291)])([_0x1e0819],this[_0x440adc(0x1ba)])||[_0x1e0819];this[_0x440adc(0x30f)](_0x35dfbf[0x0]);})),_0x13e389;}};_n=V([B(0x3,_0xe230cc(_0x31a56e)),B(0x4,_0xe230cc(_0x4e166f)),B(0x5,_0xe230cc(_0x9a407d)),B(0x6,_0xe230cc(_0x2d7797)),B(0x7,_0xe230cc(z)),B(0x8,_0x344fe1),B(0x9,_0x5c3e7f),B(0xa,_0x4705e0),B(0xb,_0x36da45),B(0xc,_0x2b3cfa(_0x4be2f8)),B(0xd,_0x2b3cfa(W)),B(0xe,_0x2b3cfa(U))],_n);let vn=class extends ${constructor(_0x46adfc,_0x3c6562,_0x3a3712,_0x5e8b84,_0xf5721b,_0x596f85,_0x54cf35,_0x460941,_0xcfbc49,_0x19084a,_0x8a67fa,_0xf1fb4b,_0x5683d3,_0x528b1d){const _0x716287=_0x3c69ef;super(_0x46adfc,_0x3a3712,_0x3c6562,_0x5e8b84,_0xf5721b,_0x596f85,_0x54cf35,_0x460941,_0xcfbc49,_0x19084a,_0x8a67fa,_0xf1fb4b,_0x5683d3,_0x528b1d),this[_0x716287(0x40c)]=_0x46adfc,this[_0x716287(0x315)]=_0x3c6562;}async[_0x3c69ef(0x293)](){const _0x445a86=_0x3c69ef;let _0x1cc503=await super['_init']();return this[_0x445a86(0x3b8)](this[_0x445a86(0x1ac)]['onMutationExecutedForCollab']((_0x2bb3ec,_0x427459)=>{const _0x201f9d=_0x445a86;if(_0x2bb3ec[_0x201f9d(0x315)]!==_0x537f94[_0x201f9d(0x249)]||_0x427459!=null&&_0x427459[_0x201f9d(0x27c)]||_0x427459!=null&&_0x427459[_0x201f9d(0x1d4)])return;let _0x553451=_0x2bb3ec[_0x201f9d(0x3c6)];if((_0x553451==null?void 0x0:_0x553451[_0x201f9d(0x296)])!==this[_0x201f9d(0x40c)])return;let _0x51bd7b=_0x2bb3ec,_0x362a8b=this[_0x201f9d(0x1be)]['interceptor'][_0x201f9d(0x2b1)](this[_0x201f9d(0x1be)]['interceptor'][_0x201f9d(0x29a)]()[_0x201f9d(0x291)])([_0x51bd7b],this[_0x201f9d(0x1ba)])||[_0x51bd7b];this['_onLocalMutation'](_0x362a8b[0x0]);})),_0x1cc503;}};vn=V([B(0x3,_0xe230cc(_0x31a56e)),B(0x4,_0xe230cc(_0x4e166f)),B(0x5,_0xe230cc(_0x9a407d)),B(0x6,_0xe230cc(_0x2d7797)),B(0x7,_0xe230cc(z)),B(0x8,_0x344fe1),B(0x9,_0x5c3e7f),B(0xa,_0x4705e0),B(0xb,_0x36da45),B(0xc,_0x2b3cfa(W)),B(0xd,_0x2b3cfa(U))],vn);let yn=class extends ${constructor(_0x1e42a9,_0x28a47f,_0x3b31ff,_0x25bc29,_0xe1f759,_0x568f05,_0x568ce7,_0x4ebd37,_0x3c31ad,_0x23510e,_0x3971bc,_0x486985,_0x1796f4,_0x2e5bb0,_0x67d82d){const _0x222c34=_0x3c69ef;super(_0x1e42a9,_0x3b31ff,_0x28a47f,_0x25bc29,_0xe1f759,_0x568f05,_0x568ce7,_0x3c31ad,_0x23510e,_0x3971bc,_0x486985,_0x1796f4,_0x2e5bb0,_0x67d82d),this[_0x222c34(0x40c)]=_0x1e42a9,this[_0x222c34(0x315)]=_0x28a47f,this['_sheetTransformSelectionsService']=_0x4ebd37;}[_0x3c69ef(0x39a)](){const _0x316007=_0x3c69ef;let _0x402261=super[_0x316007(0x39a)]();return _0x402261[_0x316007(0x218)]=_0x5a6b70=>this[_0x316007(0x1e4)][_0x316007(0x319)](_0x5a6b70),_0x402261;}async[_0x3c69ef(0x293)](){const _0x30a9c2=_0x3c69ef;let _0x486284=await super[_0x30a9c2(0x293)]();return this[_0x30a9c2(0x3b8)](this[_0x30a9c2(0x1ac)][_0x30a9c2(0x24a)]((_0x3c15c2,_0x172f28)=>{const _0x27ea99=_0x30a9c2;if(_0x3c15c2[_0x27ea99(0x315)]!==_0x537f94[_0x27ea99(0x249)]||_0x172f28!=null&&_0x172f28['fromCollab']||_0x172f28!=null&&_0x172f28['onlyLocal'])return;let _0x2fb41e=_0x3c15c2[_0x27ea99(0x3c6)];if((_0x2fb41e==null?void 0x0:_0x2fb41e['unitId'])!==this[_0x27ea99(0x40c)])return;let _0x5e6d9d=_0x3c15c2,_0x26f2c4=this[_0x27ea99(0x1be)][_0x27ea99(0x1fd)][_0x27ea99(0x2b1)](this['_compressMutationService'][_0x27ea99(0x1fd)][_0x27ea99(0x29a)]()['COMPRESS_MUTATION_SEND'])([_0x5e6d9d],this[_0x27ea99(0x1ba)])||[_0x5e6d9d];this[_0x27ea99(0x30f)](_0x26f2c4[0x0]);})),_0x486284;}};yn=V([B(0x3,_0xe230cc(_0x31a56e)),B(0x4,_0xe230cc(_0x4e166f)),B(0x5,_0xe230cc(_0x9a407d)),B(0x6,_0xe230cc(_0x2d7797)),B(0x7,_0xe230cc(Gt)),B(0x8,_0xe230cc(z)),B(0x9,_0x344fe1),B(0xa,_0x5c3e7f),B(0xb,_0x4705e0),B(0xc,_0x36da45),B(0xd,_0x2b3cfa(W)),B(0xe,_0x2b3cfa(U))],yn);let bn=class extends ${constructor(_0x35d40d,_0x54eb32,_0x9d883c,_0x245556,_0x2d53ee,_0x1c6722,_0x3f338f,_0x1ae0b4,_0x2e7cfb,_0x54e0b1,_0x411e1f,_0x5821b7,_0x45ffdf,_0x12f958){const _0x1a226f=_0x3c69ef;super(_0x35d40d,_0x9d883c,_0x54eb32,_0x245556,_0x2d53ee,_0x1c6722,_0x3f338f,_0x1ae0b4,_0x2e7cfb,_0x54e0b1,_0x411e1f,_0x5821b7,_0x45ffdf,_0x12f958),this[_0x1a226f(0x40c)]=_0x35d40d,this[_0x1a226f(0x315)]=_0x54eb32;}async[_0x3c69ef(0x293)](){const _0x4f9764=_0x3c69ef;let _0x1313a1=await super['_init']();return this[_0x4f9764(0x3b8)](this[_0x4f9764(0x1ac)][_0x4f9764(0x24a)]((_0x3d3735,_0x220789)=>{const _0x191b30=_0x4f9764;if(_0x3d3735[_0x191b30(0x315)]!==_0x537f94[_0x191b30(0x249)]||_0x220789!=null&&_0x220789[_0x191b30(0x27c)]||_0x220789!=null&&_0x220789[_0x191b30(0x1d4)])return;let _0x33cc2f=_0x3d3735[_0x191b30(0x3c6)];if((_0x33cc2f==null?void 0x0:_0x33cc2f[_0x191b30(0x296)])!==this[_0x191b30(0x40c)])return;let _0xaa6da7=_0x3d3735,_0x2e3601=this[_0x191b30(0x1be)][_0x191b30(0x1fd)]['fetchThroughInterceptors'](this[_0x191b30(0x1be)][_0x191b30(0x1fd)][_0x191b30(0x29a)]()[_0x191b30(0x291)])([_0xaa6da7],this[_0x191b30(0x1ba)])||[_0xaa6da7];this[_0x191b30(0x30f)](_0x2e3601[0x0]);})),_0x1313a1;}};bn=V([B(0x3,_0xe230cc(_0x31a56e)),B(0x4,_0xe230cc(_0x4e166f)),B(0x5,_0xe230cc(_0x9a407d)),B(0x6,_0xe230cc(_0x2d7797)),B(0x7,_0xe230cc(z)),B(0x8,_0x344fe1),B(0x9,_0x5c3e7f),B(0xa,_0x4705e0),B(0xb,_0x36da45),B(0xc,_0x2b3cfa(W)),B(0xd,_0x2b3cfa(U))],bn);let xn=class extends ${constructor(_0x44c9fc,_0x54d53b,_0x26d7ac,_0x5b9f3e,_0x219219,_0x4370aa,_0x4fe147,_0x1135bf,_0x286d73,_0x2dea4f,_0x3030ec,_0x30665,_0x47bf7f,_0x5c4a6c){const _0x36d7ed=_0x3c69ef;super(_0x44c9fc,_0x26d7ac,_0x54d53b,_0x5b9f3e,_0x219219,_0x4370aa,_0x4fe147,_0x1135bf,_0x286d73,_0x2dea4f,_0x3030ec,_0x30665,_0x47bf7f,_0x5c4a6c),this[_0x36d7ed(0x40c)]=_0x44c9fc,this[_0x36d7ed(0x315)]=_0x54d53b;}async[_0x3c69ef(0x293)](){const _0xa93250=_0x3c69ef;let _0x5f3bbf=await super['_init']();return this['disposeWithMe'](this[_0xa93250(0x1ac)]['onMutationExecutedForCollab']((_0x551932,_0x44fa3f)=>{const _0x2c0d65=_0xa93250;if(_0x551932[_0x2c0d65(0x315)]!==_0x537f94[_0x2c0d65(0x249)]||_0x44fa3f!=null&&_0x44fa3f[_0x2c0d65(0x27c)]||_0x44fa3f!=null&&_0x44fa3f[_0x2c0d65(0x1d4)])return;let _0xbaf690=_0x551932[_0x2c0d65(0x3c6)];if((_0xbaf690==null?void 0x0:_0xbaf690[_0x2c0d65(0x296)])!==this[_0x2c0d65(0x40c)])return;let _0x5ca8fb=_0x551932,_0x4e56b0=this[_0x2c0d65(0x1be)][_0x2c0d65(0x1fd)]['fetchThroughInterceptors'](this[_0x2c0d65(0x1be)][_0x2c0d65(0x1fd)][_0x2c0d65(0x29a)]()[_0x2c0d65(0x291)])([_0x5ca8fb],this[_0x2c0d65(0x1ba)])||[_0x5ca8fb];this[_0x2c0d65(0x30f)](_0x4e56b0[0x0]);})),_0x5f3bbf;}};xn=V([B(0x3,_0xe230cc(_0x31a56e)),B(0x4,_0xe230cc(_0x4e166f)),B(0x5,_0xe230cc(_0x9a407d)),B(0x6,_0xe230cc(_0x2d7797)),B(0x7,_0xe230cc(z)),B(0x8,_0x344fe1),B(0x9,_0x5c3e7f),B(0xa,_0x4705e0),B(0xb,_0x36da45),B(0xc,_0x2b3cfa(W)),B(0xd,_0x2b3cfa(U))],xn);const Sn=_0x27db79(_0x3c69ef(0x1ff));function Cn(_0x58219c){const _0x1c54b2=_0x3c69ef;let _0x2d69b6=_0x58219c[_0x1c54b2(0x2ee)],_0x38fa42=JSON[_0x1c54b2(0x26d)](_0x2d69b6);switch(_0x38fa42['cmd']){case _0x5b7fe7[_0x1c54b2(0x31e)]:case _0x5b7fe7['HELLO']:{let _0x99ca06=_0x38fa42[_0x1c54b2(0x41f)];return{..._0x38fa42,'data':_0x99ca06,'cmd':_0x38fa42[_0x1c54b2(0x258)]};}case _0x5b7fe7['JOIN']:{let _0xfcb535=_0x38fa42[_0x1c54b2(0x3ae)];return{..._0x38fa42,'data':_0xfcb535,'cmd':_0x38fa42[_0x1c54b2(0x258)]};}case _0x5b7fe7['RECV']:{let _0x32e2fb=_0x38fa42[_0x1c54b2(0x235)];switch(_0x32e2fb['eventID']){case _0x43102b['PERMISSION_REJ']:var _0x199cf0;return{..._0x38fa42,'data':{..._0x32e2fb,'data':(_0x199cf0=_0x32e2fb[_0x1c54b2(0x2c1)])==null?void 0x0:_0x199cf0['cs']},'cmd':_0x38fa42[_0x1c54b2(0x258)]};case _0x43102b[_0x1c54b2(0x348)]:var _0x27c39c;return{..._0x38fa42,'data':{..._0x32e2fb,'data':(_0x27c39c=_0x32e2fb[_0x1c54b2(0x34f)])==null?void 0x0:_0x27c39c['cs']},'cmd':_0x38fa42[_0x1c54b2(0x258)]};case _0x43102b[_0x1c54b2(0x265)]:var _0x581b2b;return{..._0x38fa42,'data':{..._0x32e2fb,'data':(_0x581b2b=_0x32e2fb['newCsEvent'])==null?void 0x0:_0x581b2b['cs']},'cmd':_0x38fa42[_0x1c54b2(0x258)]};case _0x43102b['CHANGESET_REJ']:var _0x51d227;return{..._0x38fa42,'data':{..._0x32e2fb,'data':(_0x51d227=_0x32e2fb[_0x1c54b2(0x1bd)])==null?void 0x0:_0x51d227['cs']},'cmd':_0x38fa42[_0x1c54b2(0x258)]};case _0x43102b['CHANGESET_SHOULD_RETRY']:var _0x473a5e;return{..._0x38fa42,'data':{..._0x32e2fb,'data':(_0x473a5e=_0x32e2fb[_0x1c54b2(0x21c)])==null?void 0x0:_0x473a5e['cs']},'cmd':_0x38fa42['cmd']};case _0x43102b[_0x1c54b2(0x37a)]:return{..._0x38fa42,'data':{..._0x32e2fb,'data':_0x32e2fb['updateCursorEvent']},'cmd':_0x38fa42[_0x1c54b2(0x258)]};case _0x43102b[_0x1c54b2(0x1ec)]:return{..._0x38fa42,'data':{..._0x32e2fb,'data':_0x32e2fb[_0x1c54b2(0x3b4)]},'cmd':_0x38fa42[_0x1c54b2(0x258)]};case _0x43102b[_0x1c54b2(0x334)]:return{..._0x38fa42,'data':{..._0x32e2fb,'data':_0x32e2fb[_0x1c54b2(0x22e)]},'cmd':_0x38fa42['cmd']};case _0x43102b['LIVESHARE_NEW_HOST']:return{..._0x38fa42,'data':{..._0x32e2fb,'data':_0x32e2fb[_0x1c54b2(0x224)]},'cmd':_0x38fa42[_0x1c54b2(0x258)]};case _0x43102b['LIVESHARE_FETCH_OPERATIONS']:case _0x43102b[_0x1c54b2(0x3e2)]:return{..._0x38fa42,'data':{..._0x32e2fb,'data':_0x32e2fb[_0x1c54b2(0x292)]},'cmd':_0x38fa42[_0x1c54b2(0x258)]};case _0x43102b[_0x1c54b2(0x236)]:return{..._0x38fa42,'data':{..._0x32e2fb,'data':_0x32e2fb[_0x1c54b2(0x224)]},'cmd':_0x38fa42['cmd']};case _0x43102b[_0x1c54b2(0x19e)]:return{..._0x38fa42,'data':_0x32e2fb,'cmd':_0x38fa42[_0x1c54b2(0x258)]};case _0x43102b[_0x1c54b2(0x30a)]:return{..._0x38fa42,'data':{..._0x32e2fb,'data':_0x32e2fb[_0x1c54b2(0x283)]},'cmd':_0x38fa42[_0x1c54b2(0x258)]};case _0x43102b[_0x1c54b2(0x365)]:return{..._0x38fa42,'data':{..._0x32e2fb,'data':_0x32e2fb[_0x1c54b2(0x38a)]},'cmd':_0x38fa42[_0x1c54b2(0x258)]};case _0x43102b['SHOULD_CLOSE_CONN']:return{..._0x38fa42,'data':{..._0x32e2fb,'data':_0x32e2fb[_0x1c54b2(0x379)]},'cmd':_0x38fa42[_0x1c54b2(0x258)]};case _0x43102b[_0x1c54b2(0x251)]:return{..._0x38fa42,'data':{..._0x32e2fb,'data':_0x32e2fb[_0x1c54b2(0x3ee)]},'cmd':_0x38fa42[_0x1c54b2(0x258)]};default:return _0x38fa42;}}default:return _0x38fa42;}}function wn(_0x5eac57){const _0x5d7ca4=_0x3c69ef;switch(_0x5eac57[_0x5d7ca4(0x258)]){case _0x5b7fe7['HEARTBEAT']:case _0x5b7fe7[_0x5d7ca4(0x389)]:return JSON[_0x5d7ca4(0x2f7)]({'cmd':_0x5eac57[_0x5d7ca4(0x258)],'routeKey':_0x5eac57['routeKey']});case _0x5b7fe7[_0x5d7ca4(0x3d9)]:{let _0x217462;switch(_0x5eac57[_0x5d7ca4(0x2ee)][_0x5d7ca4(0x3f0)]){case _0x43102b['UPDATE_CURSOR']:_0x217462={'eventID':_0x43102b[_0x5d7ca4(0x37a)],'updateCursorEvent':_0x5eac57[_0x5d7ca4(0x2ee)][_0x5d7ca4(0x2ee)]};break;case _0x43102b['USERS_LEAVE']:_0x217462={'eventID':_0x43102b[_0x5d7ca4(0x334)],'leaveEvent':_0x5eac57[_0x5d7ca4(0x2ee)][_0x5d7ca4(0x2ee)]};break;case _0x43102b[_0x5d7ca4(0x1ec)]:_0x217462={'eventID':_0x43102b[_0x5d7ca4(0x1ec)],'joinEvent':_0x5eac57[_0x5d7ca4(0x2ee)]['data']};break;case _0x43102b[_0x5d7ca4(0x39f)]:_0x217462={'eventID':_0x43102b[_0x5d7ca4(0x39f)],'liveShareNewHost':_0x5eac57[_0x5d7ca4(0x2ee)][_0x5d7ca4(0x2ee)]};break;case _0x43102b[_0x5d7ca4(0x3e2)]:_0x217462={'eventID':_0x43102b['LIVESHARE_OPERATION'],'liveShareOperation':_0x5eac57[_0x5d7ca4(0x2ee)][_0x5d7ca4(0x2ee)]};break;case _0x43102b['LIVESHARE_TERMINATE']:_0x217462={'eventID':_0x43102b['LIVESHARE_TERMINATE'],'liveShareTerminate':_0x5eac57[_0x5d7ca4(0x2ee)][_0x5d7ca4(0x2ee)]};break;case _0x43102b[_0x5d7ca4(0x21d)]:_0x217462={'eventID':_0x43102b[_0x5d7ca4(0x21d)],'liveShareRequestHost':_0x5eac57[_0x5d7ca4(0x2ee)][_0x5d7ca4(0x2ee)]};break;case _0x43102b['LIVESHARE_FETCH_OPERATIONS']:_0x217462={'eventID':_0x43102b['LIVESHARE_FETCH_OPERATIONS']};break;default:_0x217462={'eventID':_0x5eac57['data'][_0x5d7ca4(0x3f0)]};}return JSON[_0x5d7ca4(0x2f7)]({'cmd':_0x5eac57[_0x5d7ca4(0x258)],'routeKey':_0x5eac57[_0x5d7ca4(0x2fd)],'collaMsg':_0x217462});}case _0x5b7fe7[_0x5d7ca4(0x3b6)]:return JSON[_0x5d7ca4(0x2f7)]({'cmd':_0x5eac57['cmd'],'routeKey':_0x5eac57['routeKey'],'joinReq':_0x5eac57['data']});case _0x5b7fe7[_0x5d7ca4(0x31b)]:return JSON[_0x5d7ca4(0x2f7)]({'cmd':_0x5eac57['cmd'],'routeKey':_0x5eac57['routeKey'],'leaveReq':_0x5eac57[_0x5d7ca4(0x2ee)]});default:throw Error(_0x5d7ca4(0x2c5));}}const Tn=_0x27db79('univer-pro.collaboration-client-socket-service');function En(_0x588bae,_0x29feae,_0xf407a6){const _0x3625dd=_0x3c69ef;return _0x588bae+'/'+_0x29feae+_0x3625dd(0x203)+_0xf407a6+_0x3625dd(0x3bc);}let Dn=class extends _0x1c670c{constructor(_0x7d3a7e,_0xf34dd9,_0x3aa0cc,_0x2ee96c,_0x4d612a){const _0x393261=_0x3c69ef;super(),this['_injector']=_0x7d3a7e,this['_httpService']=_0xf34dd9,this[_0x393261(0x305)]=_0x3aa0cc,this[_0x393261(0x3f4)]=_0x2ee96c,this['_snapshotServerService']=_0x4d612a;}[_0x3c69ef(0x3fc)](_0x403a85){const _0x21503f=_0x3c69ef;let _0x53da94=this['_injector'][_0x21503f(0x20f)](_0x313930);if(!_0x53da94)throw Error('[CollaborationSocketService]:\x20failed\x20to\x20get\x20web\x20socket\x20factory!');let _0x73f2b4=_0x53da94['createSocket'](_0x403a85);if(!_0x73f2b4)throw Error(_0x21503f(0x198));let _0x2bff96=new _0x4fc3ed(),_0x57fc0c=new _0x59eece();_0x2bff96[_0x21503f(0x308)](_0x73f2b4[_0x21503f(0x1fa)]['subscribe'](_0x3b47b5=>_0x57fc0c[_0x21503f(0x19a)](_0x3b47b5))),_0x2bff96['add'](_0x4a5ee8(()=>_0x57fc0c['complete']()));let _0x26c044=new _0x59eece();_0x2bff96[_0x21503f(0x308)](_0x73f2b4[_0x21503f(0x1da)]['subscribe'](_0x3cc7a0=>_0x26c044[_0x21503f(0x19a)](_0x3cc7a0))),_0x2bff96[_0x21503f(0x308)](_0x4a5ee8(()=>_0x26c044[_0x21503f(0x3aa)]()));let _0x38ff4d=new _0x59eece();_0x2bff96[_0x21503f(0x308)](_0x73f2b4[_0x21503f(0x261)][_0x21503f(0x420)](_0x1cb854=>{const _0x5eada7=_0x21503f;let _0x3ad065=Cn(_0x1cb854);_0x38ff4d[_0x5eada7(0x19a)](_0x3ad065);})),_0x2bff96[_0x21503f(0x308)](_0x4a5ee8(()=>_0x38ff4d[_0x21503f(0x3aa)]()));let _0x1aba0f,_0x54d4ab=()=>{const _0x153e7f=_0x21503f;_0x26c044[_0x153e7f(0x19a)](new Event(_0x153e7f(0x3c2))),_0x57fc0c['next'](new Event(_0x153e7f(0x3c2))),_0x1aba0f[_0x153e7f(0x25d)]();};return _0x1aba0f={'memberID':'','close$':_0x57fc0c['asObservable'](),'error$':_0x26c044[_0x21503f(0x1cc)](),'open$':_0x73f2b4[_0x21503f(0x3e6)],'message$':_0x38ff4d[_0x21503f(0x1cc)](),'send':_0x3d790e=>{const _0x5197e8=_0x21503f;if(_0x3d790e[_0x5197e8(0x258)]===_0x5b7fe7[_0x5197e8(0x3d9)]){if(_0x3d790e['data'][_0x5197e8(0x3f0)]===_0x43102b[_0x5197e8(0x36c)]){this[_0x5197e8(0x2da)](_0x1aba0f,_0x3d790e['data'])[_0x5197e8(0x299)](_0x166cbc=>{const _0x42505d=_0x5197e8;this[_0x42505d(0x3f4)][_0x42505d(0x199)](_0x166cbc),_0x54d4ab();});return;}if(_0x3d790e[_0x5197e8(0x2ee)][_0x5197e8(0x3f0)]===_0x43102b[_0x5197e8(0x3ab)]){let _0x305ed3=_0x3d790e[_0x5197e8(0x2ee)];this[_0x5197e8(0x416)](_0x305ed3)[_0x5197e8(0x3b1)](_0x1fbdc4=>{const _0x552895=_0x5197e8;_0x38ff4d[_0x552895(0x19a)]({'cmd':_0x5b7fe7[_0x552895(0x2f9)],'code':_0x1d3aac['OK'],'routeKey':_0x305ed3[_0x552895(0x2ee)][_0x552895(0x40c)],'routeType':'','data':{'eventID':_0x43102b['PSEUDO_FETCH_MISSING_RESULT'],'data':{'changesets':_0x1fbdc4}}});})[_0x5197e8(0x299)](_0xf8ee04=>{const _0x481a76=_0x5197e8;this[_0x481a76(0x3f4)][_0x481a76(0x199)](_0xf8ee04),_0x54d4ab();});return;}}_0x73f2b4[_0x5197e8(0x31a)](wn(_0x3d790e));},'close':()=>{const _0x37152e=_0x21503f;_0x73f2b4[_0x37152e(0x25d)](),_0x2bff96[_0x37152e(0x20b)]();}},_0x1aba0f;}async[_0x3c69ef(0x2da)](_0x33c29b,_0x33205f){const _0xadac22=_0x3c69ef;var _0x6c94ca;let {unitType:_0x15eb42,unitID:_0x5197a0,changeset:_0x32b566}=_0x33205f[_0xadac22(0x2ee)],_0x50a488={'unitID':_0x5197a0,'memberID':_0x33c29b[_0xadac22(0x223)],'type':_0x15eb42,'changeset':_0x4835ca(_0x32b566)},_0x408684=this['_configService'][_0xadac22(0x353)](L),_0x3fd897=En((_0x6c94ca=_0x408684==null?void 0x0:_0x408684[_0xadac22(0x201)])==null?_0xadac22(0x23f):_0x6c94ca,_0x15eb42,_0x5197a0);try{await this['_httpService']['post'](_0x3fd897,{'body':_0x50a488});}catch(_0xb4f526){throw this[_0xadac22(0x3f4)][_0xadac22(0x199)](_0xadac22(0x297),'submit\x20changeset\x20error!'),_0xb4f526;}}async[_0x3c69ef(0x416)](_0x3fda22){const _0x3fe8ef=_0x3c69ef;let {unitID:_0x44e0bc,from:_0x343e22,to:_0x3df731,unitType:_0x4e268e}=_0x3fda22[_0x3fe8ef(0x2ee)];return(await this['_snapshotServerService'][_0x3fe8ef(0x364)]({'metadata':void 0x0},{'unitID':_0x44e0bc,'type':_0x4e268e,'from':_0x343e22,'to':_0x3df731}))[_0x3fe8ef(0x23a)][_0x3fe8ef(0x35d)](_0x41a4a3=>((_0x41a4a3[_0x3fe8ef(0x188)]===null||_0x41a4a3['mutations']===void 0x0)&&(_0x41a4a3[_0x3fe8ef(0x188)]=[]),_0x41a4a3));}};Dn=V([B(0x0,_0xe230cc(_0x31a56e)),B(0x1,_0xe230cc(_0x32d10d)),B(0x2,_0x1f37e4),B(0x3,_0x5c3e7f),B(0x4,_0xf3e9c6)],Dn);const On=_0x27db79(_0x3c69ef(0x288));function kn(_0x16b3dd={}){const _0x449158=_0x3c69ef;return _0x16b3dd[_0x449158(0x40e)]?{'resolveUnit':_0x16b3dd[_0x449158(0x40e)]}:{'resolveUnit':_0x37a10d=>({'target':{'unitId':_0x37a10d[_0x449158(0x296)],'unitType':_0x37a10d[_0x449158(0x242)]}})};}function An(_0x5657b0,_0x5df3a8,_0x2577d9){const _0x7fc8e9=_0x3c69ef;var _0x140aca;let _0x26ac17=_0x2577d9[_0x7fc8e9(0x3d8)][_0x7fc8e9(0x34a)];if(_0x26ac17!=null&&_0x26ac17['trim']()==='')throw Error('COLLABORATION_ENDPOINT_INVALID');if(!_0x2577d9['target'][_0x7fc8e9(0x296)])throw Error(_0x7fc8e9(0x1b9));return{'localUnitId':_0x5657b0,'unitType':_0x5df3a8,'target':{'endpoint':_0x26ac17,'unitId':_0x2577d9[_0x7fc8e9(0x3d8)]['unitId'],'unitType':(_0x140aca=_0x2577d9['target'][_0x7fc8e9(0x242)])==null?_0x5df3a8:_0x140aca},'changeset':_0x2577d9[_0x7fc8e9(0x2c2)]};}let jn=class extends _0x1c670c{constructor(_0x2ceeba,_0x1889d7,_0x12b760,_0x292ea8,_0x29ef4c,_0x41ef23,_0x5683d4){const _0x51c193=_0x3c69ef;super(),this[_0x51c193(0x27a)]=_0x2ceeba,this[_0x51c193(0x3f4)]=_0x1889d7,this[_0x51c193(0x305)]=_0x12b760,this['_socketService']=_0x292ea8,this[_0x51c193(0x290)]=_0x29ef4c,this[_0x51c193(0x3ec)]=_0x41ef23,this[_0x51c193(0x252)]=_0x5683d4,R(this,_0x51c193(0x2a7),new Map()),R(this,'_pendingSessions',new Map()),R(this,_0x51c193(0x2aa),new Map()),R(this,'_socketChannels',new Map()),R(this,'socket$',this[_0x51c193(0x240)](void 0x0)['socket$'][_0x51c193(0x1cc)]()),R(this,_0x51c193(0x2c8),new _0x296086(0x0)),R(this,_0x51c193(0x3d4),this[_0x51c193(0x2c8)][_0x51c193(0x1cc)]()),this[_0x51c193(0x287)]();}['_listenToNetworkCondition'](){const _0x1f90fa=_0x3c69ef;this[_0x1f90fa(0x252)]&&this[_0x1f90fa(0x3b8)](this[_0x1f90fa(0x252)][_0x1f90fa(0x1d1)][_0x1f90fa(0x420)](_0x568e52=>{const _0x44a084=_0x1f90fa;_0x568e52&&this[_0x44a084(0x35e)](),_0x568e52||this[_0x44a084(0x29f)][_0x44a084(0x1e5)](_0x56f0e2=>this[_0x44a084(0x1e8)](_0x56f0e2));}));}[_0x3c69ef(0x20b)](){const _0x311cd0=_0x3c69ef;super[_0x311cd0(0x20b)](),this[_0x311cd0(0x29f)]['forEach'](_0x417a2e=>{const _0x178e05=_0x311cd0;var _0x40cbe3,_0x10a949;(_0x40cbe3=_0x417a2e[_0x178e05(0x2f3)])==null||_0x40cbe3['unsubscribe'](),_0x417a2e[_0x178e05(0x2f3)]=null,this[_0x178e05(0x336)](_0x417a2e),this['_clearTimeoutTimer'](_0x417a2e),this['_clearHeartbeatTimer'](_0x417a2e),(_0x10a949=_0x417a2e['socket$'][_0x178e05(0x368)]())==null||_0x10a949[_0x178e05(0x25d)](),_0x417a2e[_0x178e05(0x2b5)][_0x178e05(0x3aa)]();}),this['_socketChannels'][_0x311cd0(0x3bf)](),this[_0x311cd0(0x2a7)]['forEach'](_0x850252=>_0x850252[_0x311cd0(0x20b)]()),this[_0x311cd0(0x2a7)]['clear'](),this[_0x311cd0(0x2aa)][_0x311cd0(0x3bf)](),this['_status$'][_0x311cd0(0x3aa)]();}async[_0x3c69ef(0x2d4)](_0x6cdfbd,_0x2a857a){const _0x513e4b=_0x3c69ef;if(this['_sessions']['has'](_0x6cdfbd))return this[_0x513e4b(0x2a7)][_0x513e4b(0x20f)](_0x6cdfbd);let _0x3fc363=this[_0x513e4b(0x1e3)]['get'](_0x6cdfbd);if(_0x3fc363)return _0x3fc363;let _0x376495=this[_0x513e4b(0x214)](_0x6cdfbd,_0x2a857a);this[_0x513e4b(0x1e3)]['set'](_0x6cdfbd,_0x376495);try{return await _0x376495;}finally{this[_0x513e4b(0x1e3)][_0x513e4b(0x393)](_0x6cdfbd);}}async[_0x3c69ef(0x214)](_0x5781c5,_0xfa767b){const _0x1be84f=_0x3c69ef;let _0x2c1b9d=await this[_0x1be84f(0x346)](_0x5781c5,_0xfa767b),_0x2fc305=this[_0x1be84f(0x240)](_0x2c1b9d[_0x1be84f(0x3d8)][_0x1be84f(0x34a)]);this[_0x1be84f(0x21f)](_0x2fc305);let _0x11608a=this[_0x1be84f(0x27a)][_0x1be84f(0x24d)](Ht,_0x2c1b9d,_0x2fc305['socket$'][_0x1be84f(0x1cc)]());return this['_sessions'][_0x1be84f(0x220)](_0x5781c5,_0x11608a),this[_0x1be84f(0x2aa)]['set'](_0x5781c5,_0x2fc305['endpointKey']),_0x11608a;}[_0x3c69ef(0x32e)](_0x4b33ca){const _0x3311f8=_0x3c69ef;let _0x2c7103=this[_0x3311f8(0x2a7)][_0x3311f8(0x20f)](_0x4b33ca),_0x328c9f=this[_0x3311f8(0x2aa)][_0x3311f8(0x20f)](_0x4b33ca);if(_0x2c7103&&(this[_0x3311f8(0x2a7)]['delete'](_0x4b33ca),this['_sessionChannels'][_0x3311f8(0x393)](_0x4b33ca),_0x2c7103[_0x3311f8(0x25d)]()),_0x328c9f&&!this['_hasSessionsForEndpoint'](_0x328c9f)){var _0x301975;let _0x5aece1=this['_socketChannels']['get'](_0x328c9f);_0x5aece1==null||(_0x301975=_0x5aece1['socket$'][_0x3311f8(0x368)]())==null||_0x301975['close']();}}['reconnect'](){const _0x49946e=_0x3c69ef;(this[_0x49946e(0x29f)][_0x49946e(0x229)]?[...this['_socketChannels']['values']()]:[this[_0x49946e(0x240)](void 0x0)])[_0x49946e(0x1e5)](_0x37bce1=>{const _0x255110=_0x49946e;_0x37bce1[_0x255110(0x1f3)]=0x0,this[_0x255110(0x336)](_0x37bce1),this[_0x255110(0x215)](_0x37bce1);});}[_0x3c69ef(0x336)](_0x354dcb){const _0x25ec42=_0x3c69ef;_0x354dcb[_0x25ec42(0x2d0)]!=null&&(clearTimeout(_0x354dcb[_0x25ec42(0x2d0)]),_0x354dcb[_0x25ec42(0x2d0)]=null);}async[_0x3c69ef(0x354)](_0x1213f5){const _0xae061b=_0x3c69ef;var _0x10f6bd,_0x2c2b25;let _0x1ea7f5=this[_0xae061b(0x305)][_0xae061b(0x353)](L),_0x4d8253=(_0x10f6bd=(_0x2c2b25=_0x1213f5[_0xae061b(0x34a)])==null?_0x1ea7f5==null?void 0x0:_0x1ea7f5[_0xae061b(0x23d)]:_0x2c2b25)==null?mt:_0x10f6bd,_0x1dc0f2=await this['_socketService'][_0xae061b(0x2d7)](_0x4d8253);return _0x1213f5[_0xae061b(0x3f2)]=_0x1dc0f2,_0x1dc0f2;}async[_0x3c69ef(0x21f)](_0x3a1771){const _0x1bf93e=_0x3c69ef;try{var _0x138372,_0x152d95;let _0xa67934=(_0x138372=(_0x152d95=_0x3a1771[_0x1bf93e(0x2b5)][_0x1bf93e(0x368)]())==null?_0x3a1771[_0x1bf93e(0x3f2)]:_0x152d95)==null?await this['_createSocket'](_0x3a1771):_0x138372;if(_0xa67934){var _0x508fd8;let _0x3062db=_0xa67934[_0x1bf93e(0x31a)];_0xa67934['send']=_0x208f4d=>(_0x208f4d['cmd']!==_0x5b7fe7[_0x1bf93e(0x31b)]&&this['_rescheduleHeartbeat'](_0x3a1771),_0x3062db[_0x1bf93e(0x303)](_0xa67934,[_0x208f4d])),(_0x508fd8=_0x3a1771['socketMessageSubscription'])==null||_0x508fd8['unsubscribe'](),_0x3a1771[_0x1bf93e(0x2f3)]=null,_0x3a1771['socketMessageSubscription']=_0xa67934[_0x1bf93e(0x261)]['subscribe'](_0x30a3a9=>this[_0x1bf93e(0x419)](_0x3a1771,_0xa67934,_0x30a3a9)),_0xa67934[_0x1bf93e(0x1da)][_0x1bf93e(0x380)](_0x3b77de(0x1))[_0x1bf93e(0x420)](_0x118af4=>this[_0x1bf93e(0x3f4)][_0x1bf93e(0x199)]('[CollaborationSessionService]:\x20socket\x20error',_0x118af4)),_0xa67934['open$'][_0x1bf93e(0x380)](_0x3b77de(0x1))['subscribe'](()=>{const _0x4452ae=_0x1bf93e;this[_0x4452ae(0x1d3)](_0x3a1771,_0xa67934);}),_0xa67934['close$'][_0x1bf93e(0x380)](_0x3b77de(0x1))[_0x1bf93e(0x420)](_0x64d387=>{const _0x5bf5ab=_0x1bf93e;this[_0x5bf5ab(0x3f4)][_0x5bf5ab(0x2c6)](_0x5bf5ab(0x1c1),_0x5bf5ab(0x2ed),_0x64d387),this[_0x5bf5ab(0x1a6)](_0x3a1771);});}}catch(_0x1d07bd){this[_0x1bf93e(0x3f4)][_0x1bf93e(0x199)](_0x1d07bd),this[_0x1bf93e(0x1a6)](_0x3a1771);}}[_0x3c69ef(0x1d3)](_0x532f2e,_0x55c181){const _0x3930b2=_0x3c69ef;this['_logService'][_0x3930b2(0x2c6)](_0x3930b2(0x1c1),_0x3930b2(0x1a0)),_0x55c181[_0x3930b2(0x31a)]({'cmd':_0x5b7fe7[_0x3930b2(0x389)]}),this[_0x3930b2(0x276)](_0x532f2e);}[_0x3c69ef(0x1e8)](_0x24d63c){const _0x29673f=_0x3c69ef;_0x24d63c['socketReady']=!0x1,_0x24d63c[_0x29673f(0x3f2)]=null,this[_0x29673f(0x2c8)][_0x29673f(0x19a)](0x2),_0x24d63c['socket$'][_0x29673f(0x19a)](null),this[_0x29673f(0x243)](_0x24d63c),this[_0x29673f(0x39d)](_0x24d63c);}[_0x3c69ef(0x1a6)](_0x2f6c86){const _0x3488f8=_0x3c69ef;var _0x593f2a;this[_0x3488f8(0x1e8)](_0x2f6c86),this[_0x3488f8(0x34b)](_0x2f6c86[_0x3488f8(0x1b0)])&&(_0x2f6c86[_0x3488f8(0x1f3)]<((_0x593f2a=this[_0x3488f8(0x305)][_0x3488f8(0x353)](_0x3488f8(0x317)))==null?0x3:_0x593f2a)?(this[_0x3488f8(0x290)][_0x3488f8(0x377)]({'id':_0x3488f8(0x18f)}),this[_0x3488f8(0x215)](_0x2f6c86)):this['_collaborationUIEventService'][_0x3488f8(0x377)]({'id':_0x3488f8(0x343)}));}[_0x3c69ef(0x215)](_0x209e3c){const _0x23c27e=_0x3c69ef;var _0x492eb2;let _0x59e76f=_0x209e3c[_0x23c27e(0x1f3)],_0x2a9778=this[_0x23c27e(0x305)][_0x23c27e(0x353)](L),_0x367b23=_0x59e76f===0x0?0x0:((_0x492eb2=_0x2a9778==null?void 0x0:_0x2a9778['retryConnectingInterval'])==null?0x4e20:_0x492eb2)*0x2**_0x59e76f;_0x209e3c[_0x23c27e(0x2d0)]=setTimeout(()=>{const _0x24f74d=_0x23c27e;clearTimeout(_0x209e3c[_0x24f74d(0x2d0)]),_0x209e3c[_0x24f74d(0x2d0)]=null,this[_0x24f74d(0x21f)](_0x209e3c);},_0x367b23),_0x209e3c[_0x23c27e(0x1f3)]+=0x1;}async['_resolveSessionIdentity'](_0x34dd3d,_0x419df4){const _0x2c8dac=_0x3c69ef;return An(_0x34dd3d,_0x419df4,await this[_0x2c8dac(0x3ec)]['resolveUnit']({'unitId':_0x34dd3d,'unitType':_0x419df4}));}[_0x3c69ef(0x419)](_0x3e7031,_0x5dbfa9,_0x2c3dbe){const _0x54035f=_0x3c69ef;let {cmd:_0xe61440}=_0x2c3dbe;_0xe61440===_0x5b7fe7['HELLO']&&!_0x3e7031[_0x54035f(0x212)]&&(_0x5dbfa9[_0x54035f(0x223)]=_0x2c3dbe[_0x54035f(0x2ee)][_0x54035f(0x223)],_0x3e7031[_0x54035f(0x2b5)][_0x54035f(0x19a)](_0x5dbfa9),this[_0x54035f(0x2c8)][_0x54035f(0x19a)](0x3),_0x3e7031[_0x54035f(0x212)]=!0x0,_0x3e7031[_0x54035f(0x3f2)]=null),_0xe61440===_0x5b7fe7[_0x54035f(0x31e)]&&this[_0x54035f(0x243)](_0x3e7031),this[_0x54035f(0x276)](_0x3e7031);}[_0x3c69ef(0x34b)](_0x2b3891){const _0x3c128d=_0x3c69ef;return[...this['_sessionChannels'][_0x3c128d(0x1ef)]()]['some'](_0x5c3111=>_0x5c3111===_0x2b3891);}[_0x3c69ef(0x240)](_0x5d9d66){const _0x1c2f43=_0x3c69ef;let _0x1e48c2=_0x5d9d66==null?'':_0x5d9d66,_0x5b3775=this[_0x1c2f43(0x29f)][_0x1c2f43(0x20f)](_0x1e48c2);if(_0x5b3775)return _0x5b3775;let _0x1b7d4a={'endpointKey':_0x1e48c2,'endpoint':_0x5d9d66,'socket$':new _0x296086(void 0x0),'candidateSocket':null,'socketReady':!0x1,'socketMessageSubscription':null,'retryConnectingTimer':null,'retryCount':0x0,'sendHeartbeatTimer':null,'timeoutTimer':null};return this[_0x1c2f43(0x29f)][_0x1c2f43(0x220)](_0x1e48c2,_0x1b7d4a),_0x1b7d4a;}['_rescheduleHeartbeat'](_0x207b3d){const _0x430c99=_0x3c69ef;var _0x8b346b;this['_clearHeartbeatTimer'](_0x207b3d),_0x207b3d[_0x430c99(0x28d)]=setTimeout(()=>this['_sendHeartbeat'](_0x207b3d),(_0x8b346b=this[_0x430c99(0x305)][_0x430c99(0x353)](_0x430c99(0x37e)))==null?0x7530:_0x8b346b);}['_sendHeartbeat'](_0x5acc19){const _0xfff4fa=_0x3c69ef;_0x5acc19[_0xfff4fa(0x2b5)][_0xfff4fa(0x368)]()[_0xfff4fa(0x31a)]({'cmd':_0x5b7fe7['HEARTBEAT']}),this['_waitForHeartbeatResponse'](_0x5acc19);}[_0x3c69ef(0x3f5)](_0x28b356){const _0x4902b4=_0x3c69ef;var _0x2c26fa;_0x28b356[_0x4902b4(0x408)]=setTimeout(()=>this['_onConnectionFailed'](_0x28b356),(_0x2c26fa=this['_configService'][_0x4902b4(0x353)](_0x4902b4(0x2a9)))==null?vt:_0x2c26fa);}[_0x3c69ef(0x39d)](_0x3036b5){const _0xaf34af=_0x3c69ef;_0x3036b5[_0xaf34af(0x28d)]!=null&&(clearTimeout(_0x3036b5[_0xaf34af(0x28d)]),_0x3036b5['sendHeartbeatTimer']=null);}[_0x3c69ef(0x243)](_0x4f5ea2){const _0x5a3c75=_0x3c69ef;_0x4f5ea2[_0x5a3c75(0x408)]!=null&&(clearTimeout(_0x4f5ea2[_0x5a3c75(0x408)]),_0x4f5ea2[_0x5a3c75(0x408)]=null);}};jn=V([B(0x0,_0xe230cc(_0x31a56e)),B(0x1,_0x5c3e7f),B(0x2,_0x1f37e4),B(0x3,Tn),B(0x4,_0xe230cc(z)),B(0x5,On),B(0x6,_0x2b3cfa(Sn))],jn);let Mn=class extends _0x50b38b{constructor(_0x2a843f,_0x2c1af9,_0x5ab38a,_0x14798f){const _0x18decd=_0x3c69ef;var _0x1a59db;super(),this['_injector']=_0x2a843f,this[_0x18decd(0x3d2)]=_0x2c1af9,this[_0x18decd(0x305)]=_0x5ab38a,this[_0x18decd(0x1ba)]=_0x14798f,R(this,_0x18decd(0x221),new Map()),R(this,_0x18decd(0x3af),new _0x59eece()),R(this,'entityInit$',this['_entityInit$'][_0x18decd(0x1cc)]()),((_0x1a59db=this['_configService'][_0x18decd(0x353)](_0x18decd(0x268)))==null?void 0x0:_0x1a59db[_0x18decd(0x333)])!==!0x1&&this[_0x18decd(0x293)]();}[_0x3c69ef(0x20b)](){const _0x2a08db=_0x3c69ef;super[_0x2a08db(0x20b)](),this[_0x2a08db(0x221)][_0x2a08db(0x1e5)](_0x22c463=>_0x22c463[_0x2a08db(0x20b)]()),this[_0x2a08db(0x221)][_0x2a08db(0x3bf)]();}[_0x3c69ef(0x320)](_0x4d2bba){const _0x6724f1=_0x3c69ef;var _0x47e017;return(_0x47e017=this[_0x6724f1(0x221)][_0x6724f1(0x20f)](_0x4d2bba))==null?null:_0x47e017;}[_0x3c69ef(0x3e1)](_0x2a6e3c){const _0x1052d4=_0x3c69ef;let _0x2817cb=this[_0x1052d4(0x320)](_0x2a6e3c);return _0x2817cb?_0x282a93(_0x2817cb):this[_0x1052d4(0x3af)][_0x1052d4(0x380)](_0x26acea(_0x414600=>_0x414600[_0x1052d4(0x40c)]===_0x2a6e3c));}[_0x3c69ef(0x351)](_0x46b29c){const _0x1bc659=_0x3c69ef;return _0x34da10(this[_0x1bc659(0x3e1)](_0x46b29c)['pipe'](_0xf99eb3(()=>void 0x0)));}[_0x3c69ef(0x293)](){const _0x13acd3=_0x3c69ef;this[_0x13acd3(0x1ba)][_0x13acd3(0x395)](_0x9a8e4e['UNIVER_SHEET'])[_0x13acd3(0x380)](_0x48361a(this[_0x13acd3(0x294)]),_0x58575b(0x10))['subscribe'](async _0x26eb7d=>{const _0x36d826=_0x13acd3;let _0x4c7d26=_0x26eb7d[_0x36d826(0x3d6)][_0x36d826(0x270)](),_0x4a4e7e=await this[_0x36d826(0x2a0)](_0x4c7d26,_0x9a8e4e[_0x36d826(0x1a4)]);this[_0x36d826(0x221)][_0x36d826(0x220)](_0x4c7d26,_0x4a4e7e);}),this[_0x13acd3(0x1ba)][_0x13acd3(0x395)](_0x9a8e4e[_0x13acd3(0x274)])[_0x13acd3(0x380)](_0x48361a(this['dispose$']),_0x58575b(0x10))[_0x13acd3(0x380)](_0x26acea(_0x2c05e7=>!_0x2c05e7[_0x13acd3(0x3d6)][_0x13acd3(0x270)]()[_0x13acd3(0x3cd)]('__')))['subscribe'](async _0x184a7e=>{const _0x4b5622=_0x13acd3;let _0x51ac8d=_0x184a7e[_0x4b5622(0x3d6)][_0x4b5622(0x270)](),_0x5e2227=await this[_0x4b5622(0x2a0)](_0x51ac8d,_0x9a8e4e['UNIVER_DOC']);this[_0x4b5622(0x221)]['set'](_0x51ac8d,_0x5e2227);}),this[_0x13acd3(0x1ba)][_0x13acd3(0x395)](_0x9a8e4e[_0x13acd3(0x3c8)])[_0x13acd3(0x380)](_0x48361a(this['dispose$']),_0x58575b(0x10))[_0x13acd3(0x420)](async _0x33385b=>{const _0x242424=_0x13acd3;let _0x53a715=_0x33385b[_0x242424(0x3d6)][_0x242424(0x270)](),_0xf8927d=await this[_0x242424(0x2a0)](_0x53a715,_0x9a8e4e[_0x242424(0x3c8)]);this[_0x242424(0x221)][_0x242424(0x220)](_0x53a715,_0xf8927d);}),this[_0x13acd3(0x1ba)][_0x13acd3(0x395)](_0x9a8e4e[_0x13acd3(0x360)])['pipe'](_0x48361a(this['dispose$']),_0x58575b(0x10))[_0x13acd3(0x420)](async _0x11fab8=>{const _0x7bdf0b=_0x13acd3;let _0x18f41d=_0x11fab8[_0x7bdf0b(0x3d6)][_0x7bdf0b(0x270)](),_0x21c856=await this[_0x7bdf0b(0x2a0)](_0x18f41d,_0x9a8e4e[_0x7bdf0b(0x360)]);this[_0x7bdf0b(0x221)]['set'](_0x18f41d,_0x21c856);}),this['_univerInstanceService'][_0x13acd3(0x395)](_0x9a8e4e[_0x13acd3(0x3b3)])[_0x13acd3(0x380)](_0x48361a(this[_0x13acd3(0x294)]),_0x58575b(0x10))[_0x13acd3(0x420)](async _0x5ee058=>{const _0x3f3c79=_0x13acd3;let _0x2ecc7d=_0x5ee058[_0x3f3c79(0x3d6)][_0x3f3c79(0x270)](),_0x457a07=await this[_0x3f3c79(0x2a0)](_0x2ecc7d,_0x9a8e4e[_0x3f3c79(0x3b3)]);this[_0x3f3c79(0x221)][_0x3f3c79(0x220)](_0x2ecc7d,_0x457a07);}),_0x4802bd(this[_0x13acd3(0x1ba)][_0x13acd3(0x32a)](_0x9a8e4e[_0x13acd3(0x1a4)]),this[_0x13acd3(0x1ba)]['getTypeOfUnitDisposed$'](_0x9a8e4e[_0x13acd3(0x274)]),this[_0x13acd3(0x1ba)][_0x13acd3(0x32a)](_0x9a8e4e[_0x13acd3(0x3c8)]),this[_0x13acd3(0x1ba)][_0x13acd3(0x32a)](_0x9a8e4e[_0x13acd3(0x360)]),this['_univerInstanceService']['getTypeOfUnitDisposed$'](_0x9a8e4e['UNIVER_BASE']))['pipe'](_0x48361a(this[_0x13acd3(0x294)]))[_0x13acd3(0x420)](_0x357f94=>{const _0x13c7da=_0x13acd3;let _0xb7fcd1=_0x357f94[_0x13c7da(0x270)](),_0x4ffec1=this['_entities'][_0x13c7da(0x20f)](_0xb7fcd1);_0x4ffec1&&(_0x4ffec1[_0x13c7da(0x20b)](),this[_0x13c7da(0x221)]['delete'](_0xb7fcd1));});}async[_0x3c69ef(0x2a0)](_0x34fc9b,_0x2cf927){const _0x143b7c=_0x3c69ef;let _0x4e3b86=await this['_collabSessionService'][_0x143b7c(0x2d4)](_0x34fc9b),_0x1b3008=this[_0x143b7c(0x27a)]['createInstance'](this['_getCtorByUniverInstanceType'](_0x2cf927),_0x34fc9b,_0x2cf927,_0x4e3b86);return await _0x1b3008[_0x143b7c(0x2ea)](),this['_entityInit$'][_0x143b7c(0x19a)](_0x1b3008),_0x1b3008;}['_getCtorByUniverInstanceType'](_0x5ed872){const _0x5cc8d8=_0x3c69ef;switch(_0x5ed872){case _0x9a8e4e[_0x5cc8d8(0x274)]:return _n;case _0x9a8e4e[_0x5cc8d8(0x1a4)]:return yn;case _0x9a8e4e[_0x5cc8d8(0x3c8)]:return bn;case _0x9a8e4e[_0x5cc8d8(0x360)]:return xn;case _0x9a8e4e['UNIVER_BASE']:return vn;default:throw Error('[CollaborationController]:\x20invalid\x20univer\x20type:\x20'+_0x5ed872);}}};Mn=V([B(0x0,_0xe230cc(_0x31a56e)),B(0x1,_0xe230cc(jn)),B(0x2,_0x1f37e4),B(0x3,_0x344fe1)],Mn);var Nn='@univerjs-pro/collaboration-client',Pn=_0x3c69ef(0x397);let Fn=class extends _0x1c670c{constructor(_0x3cc386,_0x253123){const _0x4a79d7=_0x3c69ef;super(),this[_0x4a79d7(0x1ba)]=_0x3cc386,this['_configService']=_0x253123,this[_0x4a79d7(0x293)]();}[_0x3c69ef(0x293)](){const _0xb303d6=_0x3c69ef;this[_0xb303d6(0x3b8)](this[_0xb303d6(0x1ba)]['focused$'][_0xb303d6(0x420)](()=>{const _0x50337b=_0xb303d6;var _0x1a7227;let _0x1caba7=this[_0x50337b(0x1ba)][_0x50337b(0x230)](),_0x1607ec=(_0x1a7227=this[_0x50337b(0x305)][_0x50337b(0x353)]('DEFAULT_FILE_NAME'))==null?_0x50337b(0x1b2):_0x1a7227;_0x1caba7 instanceof _0x19ddfe&&(_0x1607ec=_0x1caba7['name']),document[_0x50337b(0x36e)]=_0x1607ec;}));}};Fn=V([B(0x0,_0x344fe1),B(0x1,_0x1f37e4)],Fn);let In=function(_0x558325){const _0x4f938a=_0x3c69ef;return _0x558325['URL']=_0x4f938a(0x37f),_0x558325['UUID']=_0x4f938a(0x3ba),_0x558325[_0x4f938a(0x3a8)]=_0x4f938a(0x3a8),_0x558325;}({});const Ln=_0x27db79(_0x3c69ef(0x25f));let Rn=class{constructor(_0x1defb7,_0x34a251,_0x360a15){const _0x4f3add=_0x3c69ef;this[_0x4f3add(0x2e8)]=_0x1defb7,this[_0x4f3add(0x305)]=_0x34a251,this[_0x4f3add(0x1ba)]=_0x360a15;}[_0x3c69ef(0x2a2)](){const _0x30cbbc=_0x3c69ef;var _0x89618d;return(_0x89618d=this['_getConfig']()[_0x30cbbc(0x237)])==null?{}:_0x89618d;}async[_0x3c69ef(0x1bc)](_0x4dcec0){const _0x14070f=_0x3c69ef;let _0x2acbe7=this['getUploadOptions']();if(zn(_0x4dcec0,_0x2acbe7),_0x2acbe7['upload'])return _0x2acbe7['upload'](_0x4dcec0);let _0x166f02=await this[_0x14070f(0x36d)](_0x4dcec0);return{'id':_0x166f02,'name':_0x4dcec0[_0x14070f(0x245)],'mimeType':_0x4dcec0[_0x14070f(0x315)],'size':_0x4dcec0[_0x14070f(0x229)],'sourceType':_0x14070f(0x3ba),'source':_0x166f02};}async[_0x3c69ef(0x36d)](_0x4d271b){const _0x2a9a5b=_0x3c69ef;let _0x4f4cc6=this['_univerInstanceService'][_0x2a9a5b(0x230)](),_0x3fc7ea=_0x4f4cc6==null?void 0x0:_0x4f4cc6['getUnitId']();if(!_0x3fc7ea)throw Error(_0x2a9a5b(0x33c));let _0x204ae6=new FormData();_0x204ae6['append']('file',_0x4d271b);let _0x3701ac=this['_getUploadFileURL']()+_0x2a9a5b(0x2d9)+_0x4d271b['size'][_0x2a9a5b(0x2a1)]()+_0x2a9a5b(0x3d7)+_0x316b67[_0x2a9a5b(0x38e)]+_0x2a9a5b(0x29d)+encodeURIComponent(_0x3fc7ea),_0x2e72c5=(await this[_0x2a9a5b(0x2e8)]['post'](_0x3701ac,{'body':_0x204ae6}))[_0x2a9a5b(0x31c)][_0x2a9a5b(0x418)];if(typeof _0x2e72c5!=_0x2a9a5b(0x3e7)||!_0x2e72c5)throw Error(_0x2a9a5b(0x3f9));return _0x2e72c5;}[_0x3c69ef(0x35f)](){const _0x754ffb=_0x3c69ef;var _0x4f5862;return(_0x4f5862=this[_0x754ffb(0x1c7)]()[_0x754ffb(0x1fb)])==null?'/universer-api/stream/file/upload':_0x4f5862;}['_getConfig'](){const _0x408852=_0x3c69ef;var _0x5ee068;return(_0x5ee068=this['_configService'][_0x408852(0x353)](_0x408852(0x268)))==null?{}:_0x5ee068;}};Rn=V([B(0x0,_0xe230cc(_0x32d10d)),B(0x1,_0xe230cc(_0x1f37e4)),B(0x2,_0xe230cc(_0x344fe1))],Rn);function zn(_0x2a86ea,_0x1db651){const _0x378329=_0x3c69ef;var _0x468eac;if(_0x1db651[_0x378329(0x385)]!=null&&_0x2a86ea['size']>_0x1db651[_0x378329(0x385)])throw Error(_0x378329(0x340));if((_0x468eac=_0x1db651[_0x378329(0x311)])!=null&&_0x468eac[_0x378329(0x3a1)]&&!_0x1db651[_0x378329(0x311)]['some'](_0x16deef=>_0x2a86ea['type']===_0x16deef||_0x2a86ea[_0x378329(0x245)][_0x378329(0x2ac)](_0x16deef)||_0x16deef[_0x378329(0x2ac)]('/*')&&_0x2a86ea[_0x378329(0x315)]['startsWith'](_0x16deef[_0x378329(0x335)](0x0,-0x1))))throw Error(_0x378329(0x384));}let Bn=class{constructor(_0x3d09af,_0x3712c3,_0x409b6a){const _0xf359e7=_0x3c69ef;this[_0xf359e7(0x305)]=_0x3d09af,this['_httpService']=_0x3712c3,this['localeService']=_0x409b6a,this['init']();}[_0x3c69ef(0x2ea)](){const _0x242f62=_0x3c69ef;this[_0x242f62(0x2e8)][_0x242f62(0x3a5)]({'priority':0x1,'interceptor':(_0x281134,_0x1f1adc)=>_0x1f1adc(_0x281134)['pipe'](_0x55ed4c(async _0x11c3af=>{const _0x32faf7=_0x242f62;let _0x13c64e=_0x11c3af;if(_0x13c64e[_0x32faf7(0x275)]===0x191){if(typeof window>'u')throw Error(_0x32faf7(0x345));if(window['confirm'](this[_0x32faf7(0x21e)]['t'](_0x32faf7(0x3bb)))){let _0x534677=window[_0x32faf7(0x2e2)](window[_0x32faf7(0x1b4)][_0x32faf7(0x30d)]);window[_0x32faf7(0x1b4)]['href']=this[_0x32faf7(0x1a3)]()+_0x32faf7(0x3a0)+_0x534677;}}return _0x13c64e;}))});}[_0x3c69ef(0x1a3)](){const _0x5c3c45=_0x3c69ef;var _0x2d95ea;let _0x1ce58d=this[_0x5c3c45(0x305)][_0x5c3c45(0x353)](L);return(_0x2d95ea=_0x1ce58d==null?void 0x0:_0x1ce58d['loginUrlKey'])==null?'/universer-api/oidc/authpage':_0x2d95ea;}};function _0x36d7(){const _0x5059f8=['readyForCollab','_stopTelemetryCollaborationNewChangeset','getConfig','_createSocket','onload','_memberService','\x0aCurrent:\x20','getCfgEnableObjInherit','/-/object/-/batch_allowed','function','JOIN_ROOM_FAILED','subject','map','reconnect','_getUploadFileURL','UNIVER_BOARD','5636952JZFHfg','_toggleOnline','_onUserJoin','fetchMissingChangesets','UPDATE_PERMISSION_OBJ','_transformIMECache','_event$','getValue','session.join-failed','constructor','getAllMembers','SUBMIT_CHANGESET','_upload','title','allowed','_onConflict','findIndex','_getUndoStack','_changesetReqId','_collaborationTimeoutTimer','resourceIDs','columnGroups','emitEvent','state','shouldCloseConn','UPDATE_CURSOR','This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!','sheets','_onRemoteRetry','HEARTBEAT_INTERVAL','URL','pipe','/universer-api/snapshot/','_unitInfo$','docStateChange$','[CollaborationAttachmentIoService]:\x20attachment\x20type\x20is\x20not\x20accepted.','maxSize','headers','has','transformUndoRedo','HELLO','updatePermissionObjEvent','onCommentUpdate','onRemoteAck','_roomMembers','UnitEmbedded','_onJoinRoomEvent','/universer-api/stream/file/upload','symbol','COMPRESS_MUTATION_APPLY','delete','_onRemoteACK','getTypeOfUnitAdded$','_replayCachedMutations','1.0.0-alpha.3','authzUrl','_telemetryService','_createHandler','POST','8UsRIhV','_clearHeartbeatTimer','_updateStatus','LIVESHARE_NEW_HOST','?url=','length','refreshPermission','_undoRedoService','JOIN_ROOM_NOT_EXISTS','registerHTTPInterceptor','m2Prime','loadDoc','BASE64','_lockTransition','complete','FETCH_MISSING','_executeRemoteChangeset','actions','joinRsp','_entityInit$','pending','then','charCodeAt','UNIVER_BASE','joinEvent','_userManagerService','JOIN','&to=','disposeWithMe','objectActions','UUID','collaboration-client.auth.needGotoLoginAlert','/new_changes','CLOSE_ROOM','getWorkbookSelections','clear','userID','_clearRedo','connection\x20error','unsubscribe','defineProperty','_replaceFileID','params','PENDING','UNIVER_SLIDE','you\x20should\x20override\x20\x22IUndoRedoService\x22\x20provided\x20in\x20\x22core\x22\x20package!','find','ONLINE','_onFetchMissResult','startsWith','loadOfflineData','isArray','initWorkbookPermissionChange','workbook','_collabSessionService','fromCharCode','status$','onTransformState','unit','&source=','target','INGEST','resolve','[PendingState]:\x20unhandled\x20univer\x20type:\x20','NOT_COLLAB','_schedule','default','_applyRemoteChangeset','saveSnapshot','getCollabEntity$','LIVESHARE_OPERATION','SYNCED','_throwTelemetryCollaborationNewChangeset','[CollaborationEntity]:\x20initial\x20state\x20has\x20been\x20created\x20before.\x20You\x20should\x20not\x20call\x20\x22init\x22\x20twice.','open$','string','onSendChangeset','_onUserLeave','loadBoard','_clearCollaborationTimeoutTimer','_adapter','_type','uniscriptRunEvent','_eventService','eventID','baseRev','candidateSocket','_transformStack','_logService','_waitForHeartbeatResponse','session.room-cnt-exceeds','_exhaustRemoteChangesetQueue','src','[CollaborationAttachmentIoService]:\x20failed\x20to\x20upload\x20attachment.','every','[OfflineState]:\x20received\x20rejection.','_doCreateSocket','getMemberID','appendMutation','_joinRoom','_onRemoteRejected','prototype','tables','_revisionService','279246AOhUVI','_snapshotService','getSheetBlock','duration','timeoutTimer','PERSON','/resources','enableAuthServer','unitID','floor','resolveUnit','_change$','_getAPIPrefix','updateOfflineData','/allowed','_initDependencies','_shouldReportTelemetry','editingUnit','_fetchMissChangesets','_resendWithTimeout','FileId','_onMessage','_waitCount','patch','onSyncEditingCollabCursor','sid','setCfgEnableObjInherit','infoRsp','subscribe','mutations','update','_substituteUndoStack','pluginName','[ConflictState]:\x20invalid\x20calling\x20to\x20`resend`.','getSnapshotAPIPath','isPermissionRej','SOCKET_FAILED_RETRY','onStateChange','_changesetSessionId','override','__splitChunk__','_handler','_collaborationSessionService','collaborators','_members','[CollaborationSocketService]:\x20failed\x20to\x20create\x20socket!','error','next','getOwnPropertyDescriptor','max','localCacheService','MSG_FOR_ERROR','_transformRemoteChangesetByIMECache','socket\x20open.','saveChangeset','_unlockTransition','_getLoginPath','UNIVER_SHEET','enableOfflineEditing','_onConnectionFailed','_pendingMutations','originalMeta','_commentUpdate$','442842Hxjxmj','batchAllowed','_commandService','_createInitialStateImpl','encode','selections','endpointKey','AWAITING','Univer','saveImage','location','equals','_incrementRevisionNumber','event$','getUnit','COLLABORATION_SESSION_TARGET_UNIT_ID_REQUIRED','_univerInstanceService','[PendingState]:\x20received\x20acknowledgement.','saveAttachment','csRejEvent','_compressMutationService','Error\x20on\x20receiving\x20event','putCollaborators','[CollaborationSessionService]','[DataLoaderService]','session','_getRedoStack','requestParams','_transformService','_getConfig','ERROR_IMAGE_TYPE','transformStack\x20failed!','now','_imageSourceCache','asObservable','[OfflineState]:\x20invalid\x20calling\x20to\x20`resend`.','OPTIONAL','OTHER_CLIENTS_EDITING','/universer-api/authz','online$','onTransformRemoteChangesetByStateCache','_onConnectionOpen','onlyLocal','_initUnitPermissionChange','_resendTimeout','[SyncedState]:\x20invalid\x20calling\x20to\x20`resend`.','onLocalMutation','_commentService','error$','call','[OfflineState]:\x20received\x20acknowledgement.','unit-cache-','_getAPIPrefixPath','onTransformRemoteChangesetByIMECache','object','/universer-api/user/session-ticket','put','_pendingSessions','_sheetTransformSelectionsService','forEach','1000085lQjvpb','x-univer-host','_onOffline','_socketMessageSubscription','packageName','\x20-\x20','USERS_ENTER','_remoteChangesetQueue','__Key__','values','CONFLICT','socketService','_members$','retryCount','_localCacheService','/universer-api/file/{fileID}/sign-url','/collaborator','/rev/','transformChangesets','_handlerCallback','close$','uploadFileServerUrl','_transformRemoteChangesetByStateCache','interceptor','backupOfflineData','univer-pro.collaboration-client.network-condition.service','_getSendChangesetTimeout','collabSubmitChangesetUrl','rev','/unit/','_scheduleCompleteTimestamp','_onRemoteChangeset','setCurrentUser','enableSingleActiveInstanceLock','[CollaborationEntity]:\x20cannot\x20apply\x20missing\x20results\x20on\x20other\x20states!','not_collab','onRemoteRetry','dispose','fetching\x20missing\x20changesets\x20from\x20','[FetchMissState]:\x20missing\x20changesets\x20response\x20still\x20has\x20revision\x20gaps.','[FetchMissState]','get','filter','_getSignURL','socketReady','listCollaborators','_createSession','_tryReconnect','_handleRemoteChangesets','push','onTransformSelections','missingChangesets','_disableEditing','38398xxtaJV','csShouldRetryEvent','LIVESHARE_REQUEST_HOST','localeService','_tryEnsureSocket','set','_entities','_state','memberID','liveShareNewHost','reduce','_instanceService','_config','createCollaborator','size','range','awaiting_with_pending','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','isCompositionEnd','leaveEvent','REMOTE_UNISCRIPT_EXECUTION_ENDPOINT','getFocusedUnit','OTHER_CLIENT_EDITING','_state$','_HTTPService','\x20to\x20','collaMsg','LIVESHARE_TERMINATE','attachment','some','change$','changesets','resend','onMissingChangesets','collabWebSocketUrl','LOCAL_CACHE_INTERVAL','/universer-api/comb','_getSocketChannel','univer-pro.collaboration-client.single-active-unit-service','unitType','_clearTimeoutTimer','loadUnitOfRevision','name','textRanges','post','_syncEditingCollabCursor','MUTATION','onMutationExecutedForCollab','CHANGESET_SHOULD_RETRY','replace','createInstance','SUCCUSS','includes','snapshot','UNISCRIPT_RUN','_networkConditionService','create','readAsDataURL','offline','reqId','roles','cmd','_sendingTimer','[CollaborationEntity]:\x20cannot\x20lock\x20transition\x20twice!\x20This\x20is\x20an\x20implementation\x20error,\x20meaning\x20you\x20transit\x20the\x20collaboration\x20state\x20again\x20in\x20the\x20process\x20of\x20a\x20previous\x20transition.\x20This\x20should\x20never\x20happen.','setShowComponents','_queuedRemoteChangesets','close','objects','base-ui.attachment-io.service','_undoStacks','message$','_scheduleCollaborationTimeoutTimer','unknown','1353177iyuXef','NEW_CHANGESETS','removeMember','_clearUndo','collaboration-client.config','PSEUDO_FETCH_MISSING_RESULT','disableLocalCache','setWaitCount','[CollaborationEntity]','parse','hasOwnProperty','_sender','getUnitId','PERMISSION_REJ','indexOf','_decreaseWaiting','UNIVER_DOC','status','_rescheduleHeartbeat','snapshotServerUrl','saveSheetBlock','entries','_injector','FETCH_MISS','fromCollab','ERROR_IMAGE','/fetchmissing?from=','capture','_createInitialState','sendChangesetTimeout','_initCloseConn','commentUpdateEvent','fetching\x20the\x20latest\x20document\x20from\x20the\x20server.','_updateState','[FetchingMissState]:\x20received\x20stale\x20ack\x20revision:\x20','_listenToNetworkCondition','univer-pro.collaboration-client-adapter-service','sessionStatus','code','SUBMIT_CHANGESET_TIMEOUT','_isPermissionRej','sendHeartbeatTimer','collaboration_new_changeset','onRemoteRej','_collaborationUIEventService','COMPRESS_MUTATION_SEND','liveShareOperation','_init','dispose$','executeCommand','unitId','[CollaborationSession]','_transformAndApplyRemoteChangeset','catch','getInterceptPoints','ERROR_EXCEED_SIZE','c1Prime','&assign=','_telemetryInfo','_socketChannels','_startCollaboration','toString','getUploadOptions','getTime','_acknowledgeAwaitingIfReady','_initMergeInterceptor','Cannot\x20assemble\x20a\x20changeset\x20from\x20multiple\x20mutations\x20of\x20different\x20types:\x20','_sessions','/role','HEARTBEAT_TIMEOUT','_sessionChannels','text-x','endsWith','getActiveSheet','sessionStatus$','awaitingChangeset','[CollaborationUndoRedoService]','fetchThroughInterceptors','_showConflictNotification','COLLABORATION_CHANGESET_TRANSLATION_REQUIRED','_registerDependencies','socket$','_clearScheduledTask','_removeRoom','_emitMembers','toggleOnline','_transformSelections','result','_updateLocalCache','_awaitingChangeset','onTransformIME','loadSlide','_localeService','permissionRejEvent','changeset','objectType','_transitionLocked','[serializeCombRequest]:\x20should\x20not\x20fall\x20into\x20default\x20branch!','debug','encrypt','_status$','[UniverCollaborationClientPlugin]:\x20you\x20must\x20provide\x20a\x20socketService\x20implementation\x20in\x20config!','pauseCollaboration','_sessionStatus$','_collaborationPaused','fetchMiss','/object/','version','retryConnectingTimer','_clearLocalCache','_acknowledgedAwaitingRevision','_cfgEnableObjInherit','requireSession','_singleActiveUnitService','_startTelemetryCollaborationNewChangeset','createSocket','UNIVER_COLLABORATION_CLIENT_PLUGIN','?size=','_submitChangeset','_isEchoedAwaitingChangeset','100584IVWskT','_onCombEvent','ws://127.0.0.1:8000/universer-api/comb/connect','NO_OTHER_CLIENTS_EDITING','unitInfo$','\x0aAfter:\x20','encodeURIComponent','c2Prime','localUnitId','_docStateChangeManagerService','synced','waitForRoom$','_httpService','_roomCreated$','init','[FetchingMissState]:\x20not\x20expected\x20to\x20receive\x20ack\x20when\x20`this._awaitingChangeset`\x20is\x20null!','state$','socket\x20close','data','number','_onRecvEvent','toggleOffline','_identity','socketMessageSubscription','_getDownloadEndpointURL','[CollaborationEntity]:\x20invalid\x20state\x20transition!\x20State\x20transferred\x20from\x20is\x20not\x20the\x20current\x20state.\x0aBefore:\x20','transformMutationsWithChangeset','stringify','_initRequestHeader','RECV','addImageSourceCache','[UniverCollaborationClientPlugin]','incrementRevOfUnit','routeKey','revision','getUnitOnRev','PERMISSION_DENIED','Failed\x20to\x20update\x20permission\x20point','fetch_missing','apply','min','_configService','getCurrentRevOfUnit','4TnBodK','add','_transformUndoredo','COMMENT_UPDATE','[FetchingMissState]:\x20invalid\x20calling\x20to\x20`resend`.','failed\x20to\x20apply\x20missed\x20changesets!','href','session.room-permission-denied','_onLocalMutation','addHandlerCallback','accept','_getCurrentRevision','_permissionService','list','type','updateMember','RETRY_CONNECTING_MAX_COUNT','_resendTimer','transformSelections','send','LEAVE','body','_acknowledgeAwaiting','HEARTBEAT','stopTime','getCollabEntity','getRoom','_maxTotalRetryTimeout','onRemoteChangeset','decorate','listRoles','reject','Unknown\x20type.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','getUnitType','_socket','getTypeOfUnitDisposed$','updatePermissionPoint','IDLE','getCurrentUser','closeSession','_checkMissing','getImage','getMember','_unitLoaded$','enableCollaboration','USERS_LEAVE','slice','_clearRetryConnectingTimer','url','conflict','getSheetId','/block/','editing\x20status\x20changed\x20to','[CollaborationAttachmentIoService]:\x20unitId\x20is\x20not\x20found.','blockRanges','onMissedChangesetFetched','downloadEndpointUrl','[CollaborationAttachmentIoService]:\x20attachment\x20exceeds\x20max\x20size.','objectID','OFFLINE','SOCKET_FAILED','JOINING','[AuthServerService]:\x20you\x20should\x20provide\x20authentication\x20info\x20on\x20Node.js.','_resolveSessionIdentity','updateCollaborator','CHANGESET_ACK','append','endpoint','_hasSessionsForEndpoint','getDeserializedSheetBlock','telemetry\x20info\x20is\x20not\x20initialized','session.room-not-exists','csAckEvent','_toggleOffline'];_0x36d7=function(){return _0x5059f8;};return _0x36d7();}Bn=V([B(0x0,_0x1f37e4),B(0x1,_0xe230cc(_0x32d10d)),B(0x2,_0xe230cc(_0x9a407d))],Bn);let Vn=class extends _0x1c670c{constructor(_0xf145b9,_0x35395c){const _0x2ffe5b=_0x3c69ef;super(),this['_HTTPService']=_0xf145b9,this[_0x2ffe5b(0x305)]=_0x35395c,R(this,_0x2ffe5b(0x2d3),!0x1),this[_0x2ffe5b(0x2a5)]();}[_0x3c69ef(0x2a5)](){const _0x45ba3e=_0x3c69ef;let _0x4a7148=this;this[_0x45ba3e(0x3b8)](this['_HTTPService'][_0x45ba3e(0x3a5)]({'priority':0x3e7,'interceptor':_0x392035({'isMatch'(_0x226e40){const _0x117a73=_0x45ba3e;var _0x4d0b0b;if(_0x226e40['method']==='POST'&&(_0x4d0b0b=_0x226e40[_0x117a73(0x1c5)])!=null&&_0x4d0b0b['body']){let {objectID:_0x28706b,objectType:_0xa70cc1}=_0x226e40[_0x117a73(0x1c5)][_0x117a73(0x31c)]||{};if(!_0x28706b||_0xa70cc1===void 0x0)return!0x1;let _0x5636f1=_0x4a7148[_0x117a73(0x1de)]()+'/'+_0xa70cc1+_0x117a73(0x2ce)+_0x28706b+_0x117a73(0x412);if(_0x226e40[_0x117a73(0x337)]===_0x5636f1)return!0x0;}return!0x1;},'getParamsFromRequest'(_0x5c7f76){const _0x1f18ba=_0x45ba3e;var _0x3e50ff;return(_0x3e50ff=_0x5c7f76[_0x1f18ba(0x1c5)])==null?void 0x0:_0x3e50ff[_0x1f18ba(0x31c)];},'mergeParamsToRequest'(_0x2b4340,_0x5ef54b){const _0x424837=_0x45ba3e;let _0x54b521=_0x4a7148[_0x424837(0x1de)]()+_0x424837(0x359),_0x4a83f6=_0x2b4340[_0x424837(0x225)]((_0x33c370,_0x8fd0c4)=>{const _0x18666e=_0x424837;let {unitID:_0x1ad1ea,objectID:_0x585453,objectType:_0x2afa9b,actions:_0x3e6e86}=_0x8fd0c4;return _0x33c370[_0x1ad1ea]||(_0x33c370[_0x1ad1ea]={}),_0x33c370[_0x1ad1ea][_0x585453]||(_0x33c370[_0x1ad1ea][_0x585453]={'objectID':_0x585453,'objectType':_0x2afa9b,'actions':[]}),_0x33c370[_0x1ad1ea][_0x585453][_0x18666e(0x3ad)][_0x18666e(0x217)](..._0x3e6e86),_0x33c370;},{}),_0x1297df=[];for(let _0xc841dc in _0x4a83f6)for(let _0x2f8925 in _0x4a83f6[_0xc841dc]){let {actions:_0x184fa4,objectType:_0x306127}=_0x4a83f6[_0xc841dc][_0x2f8925],_0x4bebd5=[...new Set(_0x184fa4)];_0x1297df[_0x424837(0x217)]({'unitID':_0xc841dc,'objectID':_0x2f8925,'objectType':_0x306127,'actions':_0x4bebd5});}return new _0x200900(_0x424837(0x39b),_0x54b521,{'headers':_0x5ef54b[_0x424837(0x386)],'withCredentials':_0x5ef54b['withCredentials'],'responseType':_0x5ef54b['responseType'],'body':{'requests':_0x1297df}});}},{'distributeResult'(_0x375e76,_0x9df3b6){const _0x2189c7=_0x45ba3e;let {objectActions:_0x19cd7f}=_0x375e76;return _0x9df3b6[_0x2189c7(0x35d)](_0x155364=>{const _0x4b807b=_0x2189c7;let {unitID:_0x386926,objectID:_0x43687d,actions:_0x3fd73d}=_0x155364,_0x4449c8=_0x19cd7f[_0x4b807b(0x3ca)](_0x1452b4=>_0x1452b4[_0x4b807b(0x40c)]===_0x386926&&_0x1452b4[_0x4b807b(0x341)]===_0x43687d);return{'config':_0x155364,'result':{'actions':_0x3fd73d[_0x4b807b(0x35d)](_0x39e168=>_0x4449c8==null?void 0x0:_0x4449c8[_0x4b807b(0x3ad)]['find'](_0x3a0f06=>_0x3a0f06['action']===_0x39e168))[_0x4b807b(0x210)](_0x37251f=>!!_0x37251f),'error':_0x375e76['error']}};});}})}));}[_0x3c69ef(0x1de)](){const _0x2c3c47=_0x3c69ef;var _0x2de2b2;let _0x70afc3=this[_0x2c3c47(0x305)]['getConfig'](L);return(_0x2de2b2=_0x70afc3==null?void 0x0:_0x70afc3['authzUrl'])==null?'/universer-api/authz':_0x2de2b2;}async[_0x3c69ef(0x253)](_0x39fe4b){const _0xc5b793=_0x3c69ef;let _0x5dcd33=this[_0xc5b793(0x1de)]()+'/'+_0x39fe4b['objectType']+'/object';return(await this[_0xc5b793(0x233)][_0xc5b793(0x247)](_0x5dcd33,{'body':_0x39fe4b}))[_0xc5b793(0x31c)][_0xc5b793(0x341)]||'';}async[_0x3c69ef(0x314)](_0x3c7549){const _0x13301f=_0x3c69ef;let _0x3c6f63=this[_0x13301f(0x1de)]()+'/-/object/list';return(await this[_0x13301f(0x233)][_0x13301f(0x247)](_0x3c6f63,{'body':_0x3c7549}))['body'][_0x13301f(0x25e)];}async[_0x3c69ef(0x189)](_0x50dcd3){const _0x20393d=_0x3c69ef;var _0x333f2f;let _0x3fceee=this['_getAPIPrefixPath']()+'/'+_0x50dcd3[_0x20393d(0x2c3)]+'/object/'+_0x50dcd3[_0x20393d(0x341)],_0x4ea9b0=await this['_HTTPService'][_0x20393d(0x1e2)](_0x3fceee,{'body':_0x50dcd3});if((_0x4ea9b0==null||(_0x333f2f=_0x4ea9b0[_0x20393d(0x31c)])==null||(_0x333f2f=_0x333f2f[_0x20393d(0x199)])==null?void 0x0:_0x333f2f['code'])!==0x1)throw Error(_0x20393d(0x301));}async[_0x3c69ef(0x36f)](_0x177b41){const _0x5adbc7=_0x3c69ef;let _0x116b3f=this['_getAPIPrefixPath']()+'/'+_0x177b41['objectType']+_0x5adbc7(0x2ce)+_0x177b41[_0x5adbc7(0x341)]+_0x5adbc7(0x412);return(await this[_0x5adbc7(0x233)][_0x5adbc7(0x247)](_0x116b3f,{'body':_0x177b41}))['body'][_0x5adbc7(0x3ad)];}async[_0x3c69ef(0x1ab)](_0x487f93){const _0x398b30=_0x3c69ef;let _0x290746=this[_0x398b30(0x1de)]()+_0x398b30(0x359);return(await this['_HTTPService']['post'](_0x290746,{'body':{'requests':_0x487f93}}))[_0x398b30(0x31c)][_0x398b30(0x3b9)];}async[_0x3c69ef(0x325)](_0x36e0b0){const _0x457bef=_0x3c69ef;let _0x417b94=this[_0x457bef(0x1de)]()+'/'+_0x36e0b0['objectType']+_0x457bef(0x2a8),_0x34d97f=await this[_0x457bef(0x233)][_0x457bef(0x247)](_0x417b94,{'body':_0x36e0b0});return{'roles':_0x34d97f['body'][_0x457bef(0x257)],'actions':_0x34d97f['body'][_0x457bef(0x3ad)]};}async['deleteCollaborator'](_0x4f0a80){const _0x6a8231=_0x3c69ef;let _0x1b2e23=this[_0x6a8231(0x1de)]()+_0x6a8231(0x1f6);await this[_0x6a8231(0x233)][_0x6a8231(0x393)](_0x1b2e23,{'params':{'collaboratorID':_0x4f0a80['collaboratorID'],'objectID':_0x4f0a80[_0x6a8231(0x341)],'unitID':_0x4f0a80['unitID']}});}async[_0x3c69ef(0x347)](_0x1cc04e){const _0x6400d5=_0x3c69ef;let _0x219360=this['_getAPIPrefixPath']()+_0x6400d5(0x1f6);await this['_HTTPService'][_0x6400d5(0x41b)](_0x219360,{'body':_0x1cc04e});}async[_0x3c69ef(0x228)](_0x2efe19){const _0x12f089=_0x3c69ef;let _0x446cd1=this[_0x12f089(0x1de)]()+'/collaborator';await this[_0x12f089(0x233)][_0x12f089(0x247)](_0x446cd1,{'body':_0x2efe19});}async[_0x3c69ef(0x213)](_0x4aa67c){const _0x4d96a4=_0x3c69ef;var _0x3b0a1f;let _0x1be069=this[_0x4d96a4(0x1de)]()+_0x4d96a4(0x1f6),_0x5912d3=await this[_0x4d96a4(0x233)][_0x4d96a4(0x20f)](_0x1be069,{'params':{'objectID':_0x4aa67c[_0x4d96a4(0x341)],'unitID':_0x4aa67c['unitID']}});return this[_0x4d96a4(0x41e)]((_0x3b0a1f=_0x5912d3[_0x4d96a4(0x31c)]['cfgEnableObjInherit'])==null?!0x1:_0x3b0a1f),_0x5912d3['body'][_0x4d96a4(0x196)];}async[_0x3c69ef(0x1c0)](_0x33f5b2){const _0x358ad1=_0x3c69ef;let _0x212619=this[_0x358ad1(0x1de)]()+'/collaborator';await this['_HTTPService'][_0x358ad1(0x1e2)](_0x212619,{'body':_0x33f5b2});}['setCfgEnableObjInherit'](_0x2e30fa){const _0x2b2b7b=_0x3c69ef;this[_0x2b2b7b(0x2d3)]=_0x2e30fa;}[_0x3c69ef(0x358)](){const _0x15cec4=_0x3c69ef;return this[_0x15cec4(0x2d3)];}};Vn=V([B(0x0,_0xe230cc(_0x32d10d)),B(0x1,_0xe230cc(_0x1f37e4))],Vn);function Hn(_0xb1eece){const _0x1e91c7=_0x3c69ef;let _0x38e6d4=atob(_0xb1eece),_0x5b48e6=new Uint8Array(_0x38e6d4[_0x1e91c7(0x3a1)]);for(let _0x170999=0x0;_0x170999<_0x38e6d4[_0x1e91c7(0x3a1)];_0x170999++)_0x5b48e6[_0x170999]=_0x38e6d4[_0x1e91c7(0x3b2)](_0x170999);return _0x5b48e6;}function Un(_0x5ddf73){const _0x1c06d7=_0x3c69ef;let _0x11f1a3='';for(let _0x549bbc=0x0;_0x549bbc<_0x5ddf73['length'];_0x549bbc++)_0x11f1a3+=String[_0x1c06d7(0x3d3)](_0x5ddf73[_0x549bbc]);return btoa(_0x11f1a3);}function Wn(_0x4d6ad1,_0x47490e){const _0x376b30=_0x3c69ef;let _0x834fad=Hn(_0x47490e),_0x24d96c=_0x3911d9(0x10);return Un(_0x1ecd97(_0x24d96c,_0x89c1d1(_0x834fad,_0x24d96c)[_0x376b30(0x2c7)](_0x3329bb(_0x4d6ad1))));}function Gn(){const _0x39baf1=_0x3c69ef;let _0x2601df=_0x1c22a4()[_0x39baf1(0x1ee)];if(typeof window<'u'&&window[_0x39baf1(0x1b4)]!==void 0x0&&_0x2601df){let _0x3eeb62={'time':Math[_0x39baf1(0x40d)](Date[_0x39baf1(0x1ca)]()/0x3e8),'domain':location['hostname']};return Wn(JSON[_0x39baf1(0x2f7)](_0x3eeb62),_0x2601df);}}let Kn=class{constructor(_0x407fe7){const _0x4c08ac=_0x3c69ef;this[_0x4c08ac(0x2e8)]=_0x407fe7,this[_0x4c08ac(0x2f8)]();}['_initRequestHeader'](){const _0x42fe34=_0x3c69ef;this[_0x42fe34(0x2e8)][_0x42fe34(0x3a5)]({'interceptor':(_0x349100,_0x2dba32)=>{const _0x1b43e6=_0x42fe34;let _0x287c99=Gn();return _0x287c99&&_0x349100[_0x1b43e6(0x386)][_0x1b43e6(0x220)](_0x1b43e6(0x1e7),_0x287c99),_0x2dba32(_0x349100);}});}};Kn=V([B(0x0,_0xe230cc(_0x32d10d))],Kn);let qn=class extends _0x50b38b{constructor(_0x3a7507,_0x296463,_0x1446e4){const _0x35beea=_0x3c69ef;super(),this[_0x35beea(0x3f4)]=_0x3a7507,this['_snapshotService']=_0x296463,this['_localCacheService']=_0x1446e4,R(this,_0x35beea(0x382),new _0x296086(null)),R(this,_0x35beea(0x332),new _0x59eece()),R(this,_0x35beea(0x2e0),this['_unitInfo$']['asObservable']()),R(this,'unitLoaded$',this[_0x35beea(0x332)]['asObservable']());}['dispose'](){const _0x24f104=_0x3c69ef;super[_0x24f104(0x20b)](),this['_unitLoaded$'][_0x24f104(0x3aa)](),this[_0x24f104(0x382)][_0x24f104(0x3aa)]();}async[_0x3c69ef(0x244)](_0x5a7247,_0x3061dc,_0x38c803){const _0xfd0031=_0x3c69ef;this[_0xfd0031(0x382)][_0xfd0031(0x19a)]({'unitId':_0x5a7247,'type':_0x3061dc});let _0x39a964=null;switch(_0x3061dc){case _0x9a8e4e['UNIVER_SHEET']:_0x39a964=await this[_0xfd0031(0x405)]['loadSheet'](_0x5a7247,_0x38c803);break;case _0x9a8e4e[_0xfd0031(0x274)]:_0x39a964=await this[_0xfd0031(0x405)][_0xfd0031(0x3a7)](_0x5a7247,_0x38c803);break;case _0x9a8e4e[_0xfd0031(0x3c8)]:_0x39a964=await this['_snapshotService'][_0xfd0031(0x2bf)](_0x5a7247,_0x38c803);break;case _0x9a8e4e[_0xfd0031(0x360)]:_0x39a964=await this[_0xfd0031(0x405)][_0xfd0031(0x3ea)](_0x5a7247,_0x38c803);break;case _0x9a8e4e[_0xfd0031(0x3b3)]:_0x39a964=await this['_snapshotService']['loadBase'](_0x5a7247,_0x38c803);break;default:this['_logService'][_0xfd0031(0x199)]('[DataLoaderService]',_0xfd0031(0x327));break;}return _0x39a964&&this['_unitLoaded$'][_0xfd0031(0x19a)](_0x39a964),_0x39a964;}async['loadUnit'](_0x12fa3d,_0x3898b2,_0x585121){const _0x5164a9=_0x3c69ef;var _0x5edb03;this[_0x5164a9(0x382)][_0x5164a9(0x19a)]({'unitId':_0x12fa3d,'type':_0x3898b2,'subUnitId':_0x585121});let _0x3cfd91=0x0,_0x51bd38=await((_0x5edb03=this['_localCacheService'])==null?void 0x0:_0x5edb03['loadOfflineData'](_0x12fa3d));return _0x51bd38&&(_0x51bd38[_0x5164a9(0x2af)]||_0x51bd38[_0x5164a9(0x188)][_0x5164a9(0x3a1)]!==0x0)&&(_0x3cfd91=_0x51bd38[_0x5164a9(0x202)]),_0x3cfd91===0x0&&this['_logService'][_0x5164a9(0x2c6)](_0x5164a9(0x1c2),_0x5164a9(0x284)),this[_0x5164a9(0x244)](_0x12fa3d,_0x3898b2,_0x3cfd91);}};qn=V([B(0x0,_0x5c3e7f),B(0x1,_0xe230cc(_0x45d3b5)),B(0x2,_0x2b3cfa(U))],qn);let Jn=class{constructor(_0x5e7a27,_0x1ecf2e,_0x16b8fc){const _0x5de4c0=_0x3c69ef;this['_httpService']=_0x5e7a27,this[_0x5de4c0(0x305)]=_0x1ecf2e,this[_0x5de4c0(0x1ba)]=_0x16b8fc,R(this,'_waitCount',0x0),R(this,_0x5de4c0(0x40f),new _0x59eece()),R(this,_0x5de4c0(0x239),this[_0x5de4c0(0x40f)]),R(this,_0x5de4c0(0x1cb),new Map());}[_0x3c69ef(0x26b)](_0x50bd40){const _0x1372f3=_0x3c69ef;this[_0x1372f3(0x41a)]=_0x50bd40,this[_0x1372f3(0x40f)][_0x1372f3(0x19a)](_0x50bd40);}['getImageSourceCache'](_0x506a59,_0x3ab86b){const _0x153a76=_0x3c69ef;if(_0x3ab86b===_0xb1e59a['BASE64']){let _0xb36e13=new Image();return _0xb36e13[_0x153a76(0x3f8)]=_0x506a59,_0xb36e13;}return this[_0x153a76(0x1cb)]['get'](_0x506a59);}[_0x3c69ef(0x2fa)](_0x41fbff,_0x16bd38,_0x16867a){const _0x2f0481=_0x3c69ef;_0x16bd38===_0xb1e59a[_0x2f0481(0x3a8)]||_0x16867a==null||this[_0x2f0481(0x1cb)][_0x2f0481(0x220)](_0x41fbff,_0x16867a);}async[_0x3c69ef(0x330)](_0x129e8c){const _0x24f92c=_0x3c69ef;try{let _0xc08f69=this[_0x24f92c(0x3c5)](this[_0x24f92c(0x211)](),''+_0x129e8c),_0x32eb7c=(await this[_0x24f92c(0x2e8)]['get'](_0xc08f69))['body'];if(_0x32eb7c[_0x24f92c(0x199)]&&_0x32eb7c[_0x24f92c(0x199)]['code']===_0x291ad4['OK']){let _0x25f46c=_0x6dad3d(_0x32eb7c[_0x24f92c(0x337)],this[_0x24f92c(0x2f4)]());return Promise[_0x24f92c(0x3da)](_0x25f46c);}return Promise[_0x24f92c(0x326)](_0x32eb7c[_0x24f92c(0x199)]);}catch(_0x532e64){return Promise['reject'](_0x532e64);}}async[_0x3c69ef(0x1b3)](_0x567db0){const _0x14c4b7=_0x3c69ef;let _0x2f95d5='';if(!_0x43c969[_0x14c4b7(0x24f)](_0x567db0[_0x14c4b7(0x315)]))return this[_0x14c4b7(0x273)](),Promise['reject'](Error(_0x320d1a[_0x14c4b7(0x1c8)]));if(_0x567db0['size']>_0x3e4b91())return this[_0x14c4b7(0x273)](),Promise['reject'](Error(_0x320d1a[_0x14c4b7(0x29b)]));try{let _0x1f1452=new FormData();_0x1f1452[_0x14c4b7(0x349)]('file',_0x567db0);let _0x563536=this[_0x14c4b7(0x1ba)][_0x14c4b7(0x230)](),_0x5e0627=_0x563536==null?void 0x0:_0x563536[_0x14c4b7(0x270)]();if(!_0x5e0627)throw Error('unitId\x20is\x20not\x20found');let _0x54be06=this[_0x14c4b7(0x35f)]()+_0x14c4b7(0x2d9)+_0x567db0[_0x14c4b7(0x229)][_0x14c4b7(0x2a1)]()+'&source='+_0x316b67[_0x14c4b7(0x38e)]+'&assign='+encodeURIComponent(_0x5e0627),_0x49cf52={'body':_0x1f1452},_0x2d0230=(await this[_0x14c4b7(0x2e8)][_0x14c4b7(0x247)](_0x54be06,_0x49cf52))[_0x14c4b7(0x31c)];if(typeof _0x2d0230[_0x14c4b7(0x418)]!=_0x14c4b7(0x3e7))return this[_0x14c4b7(0x273)](),Promise[_0x14c4b7(0x326)](Error(_0x320d1a[_0x14c4b7(0x27d)]));_0x2f95d5=_0x2d0230[_0x14c4b7(0x418)];}catch{return this[_0x14c4b7(0x273)](),Promise[_0x14c4b7(0x326)](Error(_0x320d1a['ERROR_IMAGE']));}return new Promise((_0x33a029,_0x498b14)=>{const _0x400365=_0x14c4b7;let _0x288ed8=new FileReader();_0x288ed8[_0x400365(0x254)](_0x567db0),_0x288ed8[_0x400365(0x355)]=_0x1df57d=>{const _0x388573=_0x400365;var _0x531b2f;let _0x374f60=(_0x531b2f=_0x1df57d[_0x388573(0x3d8)])==null?void 0x0:_0x531b2f[_0x388573(0x2bb)];if(_0x374f60==null){this['_decreaseWaiting'](),_0x498b14(Error(_0x320d1a[_0x388573(0x27d)]));return;}_0x33a029({'imageId':_0x5c124c(0x6),'imageSourceType':_0xb1e59a[_0x388573(0x3ba)],'source':_0x2f95d5,'base64Cache':_0x374f60,'status':_0x320d1a[_0x388573(0x24e)]}),this[_0x388573(0x273)]();};});}[_0x3c69ef(0x35f)](){const _0x867f89=_0x3c69ef;var _0x2d4ade;let _0x37fdcd=this[_0x867f89(0x305)][_0x867f89(0x353)](L);return(_0x2d4ade=_0x37fdcd==null?void 0x0:_0x37fdcd[_0x867f89(0x1fb)])==null?_0x867f89(0x390):_0x2d4ade;}[_0x3c69ef(0x211)](){const _0x1e7eb3=_0x3c69ef;var _0x16f271;let _0x4cf3a6=this[_0x1e7eb3(0x305)][_0x1e7eb3(0x353)](L);return(_0x16f271=_0x4cf3a6==null?void 0x0:_0x4cf3a6['signUrlServerUrl'])==null?_0x1e7eb3(0x1f5):_0x16f271;}['_getDownloadEndpointURL'](){const _0x54a8f1=_0x3c69ef;var _0x3e0715;let _0x115a51=this[_0x54a8f1(0x305)][_0x54a8f1(0x353)](L);return(_0x3e0715=_0x115a51==null?void 0x0:_0x115a51[_0x54a8f1(0x33f)])==null?location['origin']:_0x3e0715;}[_0x3c69ef(0x3c5)](_0x3773e5,_0x2a5c7b){const _0x231ae9=_0x3c69ef;return _0x3773e5[_0x231ae9(0x24c)]('{fileID}',_0x2a5c7b);}['_decreaseWaiting'](){const _0x42e3ab=_0x3c69ef;--this[_0x42e3ab(0x41a)],this[_0x42e3ab(0x40f)][_0x42e3ab(0x19a)](this[_0x42e3ab(0x41a)]);}};Jn=V([B(0x0,_0xe230cc(_0x32d10d)),B(0x1,_0x1f37e4),B(0x2,_0xe230cc(_0x344fe1))],Jn);let Yn=class{constructor(_0x5284df,_0x106e52){const _0x44951c=_0x3c69ef;this[_0x44951c(0x305)]=_0x5284df,this['_HTTPService']=_0x106e52;}['_getAPIPrefixPath'](){const _0x4e8015=_0x3c69ef;var _0x1be638;let _0x8bcf85=this[_0x4e8015(0x305)][_0x4e8015(0x353)](L);return(_0x1be638=_0x8bcf85==null?void 0x0:_0x8bcf85[_0x4e8015(0x398)])==null?_0x4e8015(0x1d0):_0x1be638;}async[_0x3c69ef(0x314)](_0x3f9b2f){const _0xe59c12=_0x3c69ef;let _0x1de5e2=this[_0xe59c12(0x1de)]()+'/collaborator';return{'list':[{'title':'People','mentions':(await this['_HTTPService'][_0xe59c12(0x20f)](_0x1de5e2,{'params':{'objectID':_0x3f9b2f[_0xe59c12(0x296)],'unitID':_0x3f9b2f[_0xe59c12(0x296)]}}))[_0xe59c12(0x31c)][_0xe59c12(0x196)]['map'](_0x165193=>({'objectId':_0x165193['id'],'name':_0x165193['subject'][_0xe59c12(0x245)],'metadata':{'icon':_0x165193[_0xe59c12(0x35c)]['avatar']},'label':_0x165193['subject'][_0xe59c12(0x245)],'objectType':_0x3a7b55[_0xe59c12(0x409)]})),'metadata':{},'type':_0x3a7b55[_0xe59c12(0x409)]}]};}};Yn=V([B(0x0,_0xe230cc(_0x1f37e4)),B(0x1,_0xe230cc(_0x32d10d))],Yn);let Xn=class extends _0x50b38b{constructor(_0x4479e8,_0xe02e7d,_0x4c2bb1,_0x2d40b2,_0x15bf13){const _0x2cae6a=_0x3c69ef;super(),this['_injector']=_0x4479e8,this[_0x2cae6a(0x1ba)]=_0xe02e7d,this[_0x2cae6a(0x313)]=_0x4c2bb1,this[_0x2cae6a(0x195)]=_0x2d40b2,this['_collaborationUIEventService']=_0x15bf13,this['_initUnitPermissionChange'](),this[_0x2cae6a(0x282)]();}['_initCloseConn'](){const _0x2ba269=_0x3c69ef;let _0x3fc325=async _0x5269d9=>{const _0x3f1118=_0x43c7;(await this[_0x3f1118(0x195)][_0x3f1118(0x2d4)](_0x5269d9))[_0x3f1118(0x1b7)][_0x3f1118(0x380)](_0x26acea(_0x5b2635=>_0x5b2635[_0x3f1118(0x3f0)]===_0x43102b['SHOULD_CLOSE_CONN']),_0x241cda(this[_0x3f1118(0x294)]))['subscribe'](_0x4fc4b2=>{const _0x23a085=_0x3f1118;let {reason:_0x5257d6}=_0x4fc4b2[_0x23a085(0x2ee)];this[_0x23a085(0x290)][_0x23a085(0x377)]({'id':_0x23a085(0x3bd),'data':_0x5257d6}),this[_0x23a085(0x313)][_0x23a085(0x32b)](new _0x1413a3(_0x5269d9)['id'],!0x1),this[_0x23a085(0x195)][_0x23a085(0x32e)](_0x5269d9);});};_0x4802bd(this[_0x2ba269(0x1ba)][_0x2ba269(0x395)](_0x9a8e4e[_0x2ba269(0x1a4)]),this[_0x2ba269(0x1ba)][_0x2ba269(0x395)](_0x9a8e4e[_0x2ba269(0x274)]),this[_0x2ba269(0x1ba)][_0x2ba269(0x395)](_0x9a8e4e[_0x2ba269(0x360)]),this[_0x2ba269(0x1ba)][_0x2ba269(0x395)](_0x9a8e4e[_0x2ba269(0x3b3)]))[_0x2ba269(0x380)](_0xf99eb3(_0x51b0af=>_0x51b0af[_0x2ba269(0x3d6)][_0x2ba269(0x270)]()),_0x26acea(_0x4277b6=>!_0x5bdd45(_0x4277b6)),_0x241cda(this[_0x2ba269(0x294)]))[_0x2ba269(0x420)](_0x1c6ceb=>{_0x3fc325(_0x1c6ceb);});}[_0x3c69ef(0x1d5)](){const _0x51de51=_0x3c69ef;let _0x398920=async _0x17ea12=>{const _0x51ad69=_0x43c7;let _0x58f3a0=await this['_collaborationSessionService'][_0x51ad69(0x2d4)](_0x17ea12),_0x4ee41c=this[_0x51ad69(0x27a)]['get'](_0x2be84a);_0x58f3a0['event$'][_0x51ad69(0x380)](_0x26acea(_0x512fac=>_0x512fac['eventID']===_0x43102b[_0x51ad69(0x365)]),_0x241cda(this['dispose$']))[_0x51ad69(0x420)](_0x66912a=>{const _0x3eb264=_0x51ad69;let {objectId:_0xca0675}=_0x66912a[_0x3eb264(0x2ee)];_0xca0675===_0x17ea12?_0x4ee41c[_0x3eb264(0x3d0)](_0x17ea12):_0x4ee41c[_0x3eb264(0x3a2)](_0x17ea12,_0xca0675);});};_0x4802bd(this['_univerInstanceService'][_0x51de51(0x395)](_0x9a8e4e[_0x51de51(0x1a4)]))[_0x51de51(0x380)](_0xf99eb3(_0x415e02=>_0x415e02[_0x51de51(0x3d6)][_0x51de51(0x270)]()),_0x26acea(_0x517d5d=>!_0x5bdd45(_0x517d5d)),_0x241cda(this[_0x51de51(0x294)]))[_0x51de51(0x420)](_0x7470b6=>{_0x398920(_0x7470b6);});}};Xn=V([B(0x0,_0xe230cc(_0x31a56e)),B(0x1,_0x344fe1),B(0x2,_0x36da45),B(0x3,_0xe230cc(jn)),B(0x4,_0xe230cc(z))],Xn);let Zn=class{constructor(_0x29c7d8,_0x50f01b){const _0x48b6cc=_0x3c69ef;this[_0x48b6cc(0x305)]=_0x29c7d8,this[_0x48b6cc(0x2e8)]=_0x50f01b;}async[_0x3c69ef(0x2ff)](_0x4e5c1f,_0x4fefda){const _0xb5d4d0=_0x3c69ef;var _0x2c783a;let {unitID:_0x57e7e9,type:_0x4941a1,revision:_0x1c6f27=0x0}=_0x4fefda,_0x621f2f=this[_0xb5d4d0(0x18d)]()+'/'+_0x4941a1+_0xb5d4d0(0x203)+_0x57e7e9+_0xb5d4d0(0x1f7)+_0x1c6f27,_0x583c52=(await this[_0xb5d4d0(0x2e8)][_0xb5d4d0(0x20f)](_0x621f2f))[_0xb5d4d0(0x31c)],_0x3cc9cb=(_0x2c783a=_0x583c52[_0xb5d4d0(0x250)])==null?void 0x0:_0x2c783a[_0xb5d4d0(0x3d1)];if(_0x3cc9cb){let _0x2e8c2c=_0x3cc9cb==null?void 0x0:_0x3cc9cb[_0xb5d4d0(0x1a8)];_0x3cc9cb[_0xb5d4d0(0x1a8)]=_0x9afde9['encode'](_0x14b14d(_0x2e8c2c)),Object[_0xb5d4d0(0x279)](_0x3cc9cb[_0xb5d4d0(0x37c)])['forEach'](([,_0x4baa2f])=>{const _0x3d9dbf=_0xb5d4d0;let _0x1bf15e=_0x4baa2f[_0x3d9dbf(0x1a8)];_0x4baa2f[_0x3d9dbf(0x1a8)]=_0x9afde9[_0x3d9dbf(0x1ae)](_0x14b14d(_0x1bf15e));});}return _0x583c52;}async[_0x3c69ef(0x406)](_0x2fbacc,_0x4d29f9){const _0x1e4834=_0x3c69ef;let {unitID:_0x7b0bbd,type:_0x2497e8,blockID:_0xb385d}=_0x4d29f9,_0x4cbe18=this['_getAPIPrefix']()+'/'+_0x2497e8+_0x1e4834(0x203)+_0x7b0bbd+_0x1e4834(0x33a)+_0xb385d;return(await this['_httpService'][_0x1e4834(0x20f)](_0x4cbe18))[_0x1e4834(0x31c)];}async[_0x3c69ef(0x34c)](_0xcdf50,_0x5d7f74){const _0x3a88c7=_0x3c69ef;let {unitID:_0x55349,type:_0xcbf097,blockID:_0x58ae78}=_0x5d7f74,_0x55fcf4=this[_0x3a88c7(0x410)]()+'/block/'+_0xcbf097+_0x3a88c7(0x203)+_0x55349+_0x3a88c7(0x33a)+_0x58ae78;return(await this['_httpService'][_0x3a88c7(0x20f)](_0x55fcf4))[_0x3a88c7(0x31c)];}async['fetchMissingChangesets'](_0x12e4ed,_0x4d05f3){const _0x498d4f=_0x3c69ef;let {unitID:_0x5469fb,type:_0x123905,from:_0x3d4e94,to:_0x8eed3b}=_0x4d05f3,_0x4f8023=this[_0x498d4f(0x410)]()+'/'+_0x123905+'/unit/'+_0x5469fb+_0x498d4f(0x27e)+_0x3d4e94+_0x498d4f(0x3b7)+_0x8eed3b;return(await this[_0x498d4f(0x2e8)]['get'](_0x4f8023))[_0x498d4f(0x31c)];}['getSnapshotAPIPath'](){const _0x579e2f=_0x3c69ef;var _0x3da506;return(_0x3da506=this[_0x579e2f(0x305)][_0x579e2f(0x353)]('SNAPSHOT_URL_KEY'))==null?this[_0x579e2f(0x410)]():_0x3da506;}[_0x3c69ef(0x410)](){const _0x4ab717=_0x3c69ef;var _0x1b35dd;let _0x4d8c39=this[_0x4ab717(0x305)][_0x4ab717(0x353)](L);return(_0x1b35dd=_0x4d8c39==null?void 0x0:_0x4d8c39[_0x4ab717(0x277)])==null?'/universer-api/snapshot':_0x1b35dd;}async['getResourcesRequest'](_0x54509b,_0x1f8f2f){const _0x1dd038=_0x3c69ef;let _0x232b18=_0x1dd038(0x381)+_0x1f8f2f[_0x1dd038(0x315)]+_0x1dd038(0x203)+_0x1f8f2f['unitID']+_0x1dd038(0x40a);return(await this[_0x1dd038(0x2e8)]['get'](_0x232b18,{'params':{'resourceId':JSON['stringify'](_0x1f8f2f[_0x1dd038(0x375)])}}))[_0x1dd038(0x31c)];}[_0x3c69ef(0x3e0)](){throw Error('This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!');}['updateSnapshot'](){const _0x48bd95=_0x3c69ef;throw Error(_0x48bd95(0x37b));}[_0x3c69ef(0x278)](){const _0x4aa23e=_0x3c69ef;throw Error(_0x4aa23e(0x37b));}[_0x3c69ef(0x1a1)](){const _0x26f929=_0x3c69ef;throw Error(_0x26f929(0x37b));}['copyFileMeta'](){throw Error('This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!');}['getLatestCsReqIdBySid'](){const _0x204201=_0x3c69ef;throw Error(_0x204201(0x37b));}};Zn=V([B(0x0,_0x1f37e4),B(0x1,_0xe230cc(_0x32d10d))],Zn);let Qn=class extends _0x1faad3{constructor(_0x1c0da9,_0x3e0541,_0x55064,_0x11be9a,_0x36897a){const _0x556ce6=_0x3c69ef;super(_0x1c0da9,_0x3e0541,_0x55064),this['_transformService']=_0x11be9a,this[_0x556ce6(0x3f4)]=_0x36897a;}['transformUndoRedo'](_0x19c1b7,_0x4cebb6){const _0x444e21=_0x3c69ef;let _0x416bdd=this[_0x444e21(0x372)](_0x19c1b7);if(_0x416bdd)try{let _0x10af39=this['_transformStack'](_0x416bdd,_0x4cebb6);this[_0x444e21(0x18a)](_0x19c1b7,_0x10af39);}catch(_0xede247){this[_0x444e21(0x3f4)]['error'](_0x444e21(0x2b0),_0xede247),this['_clearUndo'](_0x19c1b7);}let _0x4f2962=this[_0x444e21(0x1c4)](_0x19c1b7);if(_0x4f2962)try{let _0x1f0b8b=this[_0x444e21(0x3f3)](_0x4f2962,_0x4cebb6);this['_substituteRedoStack'](_0x19c1b7,_0x1f0b8b);}catch(_0x38c8f0){this[_0x444e21(0x3f4)][_0x444e21(0x199)](_0x38c8f0),this[_0x444e21(0x3c1)](_0x19c1b7);}}[_0x3c69ef(0x267)](_0x354219){const _0x37271b=_0x3c69ef;let _0x5af69f=this[_0x37271b(0x372)](_0x354219);_0x5af69f&&(_0x5af69f[_0x37271b(0x3a1)]=0x0,this[_0x37271b(0x39e)]());}[_0x3c69ef(0x3c1)](_0xa4566e){const _0x10158d=_0x3c69ef;let _0xb22c2c=this[_0x10158d(0x1c4)](_0xa4566e);_0xb22c2c&&(_0xb22c2c[_0x10158d(0x3a1)]=0x0,this[_0x10158d(0x39e)]());}['_substituteUndoStack'](_0x5b8b29,_0x4ad455){const _0x43d386=_0x3c69ef;this[_0x43d386(0x260)][_0x43d386(0x220)](_0x5b8b29,_0x4ad455),this[_0x43d386(0x39e)]();}['_substituteRedoStack'](_0x5ddf33,_0x3e5093){const _0x192be9=_0x3c69ef;this['_redoStacks'][_0x192be9(0x220)](_0x5ddf33,_0x3e5093),this[_0x192be9(0x39e)]();}[_0x3c69ef(0x3f3)](_0x7058aa,_0x540b7c){const _0x4086c7=_0x3c69ef;let _0x5a787b=[],_0x57dc6d=_0x540b7c,_0x479c48=_0x540b7c;for(let _0x2b7ccc=_0x7058aa[_0x4086c7(0x3a1)]-0x1;_0x2b7ccc>=0x0;_0x2b7ccc--){let {unitID:_0xd63e37,undoMutations:_0x5e193d,redoMutations:_0x19a689}=_0x7058aa[_0x2b7ccc],_0x45e43e=this[_0x4086c7(0x1c6)][_0x4086c7(0x2f6)](_0x57dc6d,_0x5e193d),_0x44cc34=this[_0x4086c7(0x1c6)][_0x4086c7(0x2f6)](_0x479c48,_0x19a689);if(_0x18826e(_0x45e43e)||_0x18826e(_0x44cc34)){this[_0x4086c7(0x3f4)]['error'](_0x4086c7(0x2b0),_0x4086c7(0x1c9),_0x45e43e,_0x44cc34);break;}_0x57dc6d=_0x45e43e[_0x4086c7(0x29c)],_0x479c48=_0x44cc34[_0x4086c7(0x29c)],_0x5a787b[_0x4086c7(0x217)]({'unitID':_0xd63e37,'undoMutations':_0x45e43e['m2Prime'],'redoMutations':_0x44cc34[_0x4086c7(0x3a6)]});}return _0x5a787b['reverse']();}};Qn=V([B(0x0,_0x344fe1),B(0x1,_0x4705e0),B(0x2,_0x6a8ee3),B(0x3,_0x3a995f),B(0x4,_0x5c3e7f)],Qn);let $n=class extends _0x2c6762{constructor(_0x1d7772=pt,_0x25be26,_0x5b9fcb,_0xb7fbe0){const _0x3a079e=_0x3c69ef;super(),this['_config']=_0x1d7772,this[_0x3a079e(0x3f4)]=_0x25be26,this['_injector']=_0x5b9fcb,this[_0x3a079e(0x305)]=_0xb7fbe0;let {..._0x3743ad}=_0x507159({},pt,this[_0x3a079e(0x227)]);if(!_0x3743ad['socketService'])throw Error(_0x3a079e(0x2c9));this[_0x3a079e(0x227)]=_0x3743ad,this[_0x3a079e(0x305)]['setConfig'](L,_0x3743ad);}['onStarting'](){const _0x4ede1c=_0x3c69ef;this[_0x4ede1c(0x2b4)](),this[_0x4ede1c(0x413)]();}[_0x3c69ef(0x2b4)](){const _0x51d431=_0x3c69ef;var _0x570fe0,_0x4e9976;this[_0x51d431(0x27a)][_0x51d431(0x387)](_0x4aa991)&&this[_0x51d431(0x3f4)][_0x51d431(0x199)](_0x51d431(0x2fb),_0x51d431(0x3c9));let _0x2fbb12=_0x23d6dd([[_0x4aa991,{'useClass':Qn}],[On,{'useValue':kn()}],[jn],[H],[Gt],[Bn],[Kn],[kt],[Xn],[z],[qn],[Tn,{'useClass':this[_0x51d431(0x227)][_0x51d431(0x1f1)]}],[_0xf3e9c6,{'useClass':Zn}],[_0x3c91dc,{'useClass':Vn}],[_0x80c08d,{'useClass':Jn}],[Ln,{'useClass':Rn}],[_0x3ae42a,{'useClass':Yn}],[Mn],[Fn]],(_0x570fe0=this[_0x51d431(0x227)])==null?void 0x0:_0x570fe0[_0x51d431(0x192)]);if(!((_0x4e9976=this[_0x51d431(0x227)])!=null&&_0x4e9976[_0x51d431(0x207)])){let _0x2dbdbb=_0x2fbb12[_0x51d431(0x371)](([_0x398370])=>_0x398370===W);_0x2dbdbb!==-0x1&&_0x2fbb12['splice'](_0x2dbdbb,0x1);}_0xa204e3(this[_0x51d431(0x27a)],_0x2fbb12);}[_0x3c69ef(0x413)](){const _0x230659=_0x3c69ef;var _0x478194,_0x229cb3;if(this[_0x230659(0x27a)][_0x230659(0x20f)](_0x32d10d)[_0x230659(0x3a5)]({'priority':0x14,'interceptor':_0x4e8da6({'maxParallel':0x6})}),!((_0x478194=this['_config'])!=null&&_0x478194[_0x230659(0x1a5)])){var _0xbd3e0b;(_0xbd3e0b=this[_0x230659(0x27a)][_0x230659(0x20f)](U,_0x46b617[_0x230659(0x1ce)]))==null||_0xbd3e0b[_0x230659(0x26a)]();}(_0x229cb3=this[_0x230659(0x227)])!=null&&_0x229cb3[_0x230659(0x40b)]&&_0x17b45d(this['_injector'],[[Bn]]),_0x17b45d(this[_0x230659(0x27a)],[[Kn],[Mn],[Xn]]);}};R($n,_0x3c69ef(0x18b),_0x3c69ef(0x2d8)),R($n,_0x3c69ef(0x1ea),Nn),R($n,_0x3c69ef(0x2cf),Pn),$n=V([_0x25f04d(_0x6b7911,_0x493098,_0x3667b4),B(0x1,_0x5c3e7f),B(0x2,_0xe230cc(_0x31a56e)),B(0x3,_0x1f37e4)],$n);export{In as AttachmentSourceType,Vn as AuthzIoHttpService,J as AwaitingState,Y as AwaitingWithPendingState,vn as BaseCollaborationEntity,xn as BoardCollaborationEntity,L as COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY,Rn as CollaborationAttachmentIoService,Mn as CollaborationController,$ as CollaborationEntity,Jn as CollaborationImageIoService,Ht as CollaborationSession,jn as CollaborationSessionService,Dn as CollaborationSocketService,pn as CollaborationStatus,Ot as CollaborationUIEventId,z as CollaborationUIEventService,Qn as CollaborativeUndoRedoService,kt as CommentService,X as ConflictState,mt as DEFAULT_COLLAB_WEB_SOCKET_URL,Ct as DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT,ht as DEFAULT_WS_SESSION_TICKET_URL,qn as DataLoaderService,_n as DocCollaborationEntity,Q as FetchingMissState,gt as HEARTBEAT_INTERVAL_KEY,_t as HEARTBEAT_TIMEOUT_KEY,Ln as IAttachmentIoService,On as ICollaborationClientAdapterService,Tn as ICollaborationSocketService,U as ILocalCacheService,Sn as INetworkConditionService,W as ISingleActiveUnitService,xt as LOCAL_CACHE_INTERVAL,bt as LOCAL_CACHE_INTERVAL_KEY,H as MemberService,Yn as MentionIoHttpService,Z as OfflineState,q as PendingState,St as REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY,yt as RETRY_CONNECTING_MAX_COUNT_KEY,Bt as SessionStatus,yn as SheetCollaborationEntity,Gt as SheetTransformSelectionsService,bn as SlideCollaborationEntity,Zn as SnapshotServerOverHTTPService,K as SyncedState,Kt as UnitStatus,$n as UniverCollaborationClientPlugin,kn as createUniverCollaborationAdapter,Cn as deserializeToCombResponse,Ut as getLocalCacheKey,wn as serializeCombRequest};
|
|
1
|
+
function _0x1478(_0x11f4de,_0x17f767){_0x11f4de=_0x11f4de-0x13a;const _0x4225d3=_0x4225();let _0x14780a=_0x4225d3[_0x11f4de];return _0x14780a;}const _0x128a93=_0x1478;(function(_0x7fc0e6,_0xafd850){const _0x5c907c=_0x1478,_0x5dfef6=_0x7fc0e6();while(!![]){try{const _0x472f5f=-parseInt(_0x5c907c(0x1f2))/0x1*(-parseInt(_0x5c907c(0x168))/0x2)+parseInt(_0x5c907c(0x25e))/0x3*(parseInt(_0x5c907c(0x3ab))/0x4)+parseInt(_0x5c907c(0x250))/0x5*(parseInt(_0x5c907c(0x38f))/0x6)+-parseInt(_0x5c907c(0x274))/0x7*(-parseInt(_0x5c907c(0x1a3))/0x8)+-parseInt(_0x5c907c(0x16c))/0x9+parseInt(_0x5c907c(0x29d))/0xa*(-parseInt(_0x5c907c(0x19a))/0xb)+-parseInt(_0x5c907c(0x292))/0xc;if(_0x472f5f===_0xafd850)break;else _0x5dfef6['push'](_0x5dfef6['shift']());}catch(_0x426b46){_0x5dfef6['push'](_0x5dfef6['shift']());}}}(_0x4225,0x2263a));import{CollaborationEvent as _0x17c782,CompressMutationService as _0x2c8338,EmptyMutationInfo as _0x4cdf13,ISnapshotServerService as _0x308163,ITransformService as _0xa32c02,RevisionService as _0x41f50e,SnapshotService as _0x3b5530,UniverCollaborationPlugin as _0x46e417,b64DecodeUnicode as _0x4934e7,isTransformChangesetsSuccess as _0x4680e5,isTransformMutationsWithChangesetFailure as _0x23563d,isTransformMutationsWithChangesetSuccess as _0x25be66,mapDocumentTypeToUniverInstanceType as _0x1b5cee,parseChangesetToProtocol as _0x1d83e7,parseProtocolChangeset as _0x599160,textEncoder as _0xda62e4,uuidv4 as _0x48aba6}from'@univerjs-pro/collaboration';import{CommandType as _0x5ba872,DependentOn as _0x21dd03,Disposable as _0x403d15,DisposableCollection as _0x201dd7,IAuthzIoService as _0x1bfb1e,ICommandService as _0x3b4b60,IConfigService as _0x46ffbd,IContextService as _0x5422b8,IImageIoService as _0x5c8c50,ILogService as _0x470483,IMentionIOService as _0x29f169,IPermissionService as _0x511b30,IUndoRedoService as _0x3fb98b,IUniverInstanceService as _0x450b7c,ImageSourceType as _0x1a4dce,ImageUploadStatusType as _0x4b1921,Inject as _0x37b5e1,Injector as _0x56145d,JSONX as _0xeedbec,LocalUndoRedoService as _0x3f75c5,LocaleService as _0x5ae389,MentionType as _0xb97631,Optional as _0x29c9af,Plugin as _0xfc0aa6,Quantity as _0x562e14,Rectangle as _0x4aac13,RxDisposable as _0x738f09,Tools as _0x4bb715,UniverInstanceType as _0x61571e,UserManagerService as _0x5296e6,Workbook as _0x661ea8,createIdentifier as _0xd7efb5,generateRandomId as _0x5d54f0,isInternalEditorID as _0x19de86,merge as _0x3859b9,mergeOverrideWithDependencies as _0x5bf09e,registerDependencies as _0x5c219a,resolveWithBasePath as _0x1bb22f,sequenceExecute as _0x148db0,toDisposable as _0x2296ca,touchDependencies as _0x434981}from'@univerjs/core';import{DocStateChangeManagerService as _0x31c7bd,RichTextEditingMutation as _0x5e08a2}from'@univerjs/docs';import{InsertSheetMutation as _0x2a80a3,SetSelectionsOperation as _0x509da1,SheetPermissionInitController as _0x35ea61,SheetsSelectionsService as _0xbb4558,WorkbookEditablePermission as _0x1283c2}from'@univerjs/sheets';import{BehaviorSubject as _0x4e690d,ReplaySubject as _0x3c466e,Subject as _0x10b8bf,concatMap as _0x35e512,firstValueFrom as _0x23f22b,map as _0x30823e,merge as _0x1171fb,of as _0x66fadd,shareReplay as _0xa2739d,take as _0x2611e8,takeUntil as _0x138428}from'rxjs';import{CmdRspCode as _0x38a2c1,CombCmd as _0x10f422,ErrorCode as _0x15bc37,FileSource as _0xe4d98}from'@univerjs/protocol';import{ITelemetryService as _0x1f54b5}from'@univerjs/telemetry';import{delay as _0x6221fb,filter as _0x3784e6,map as _0xcf767d,take as _0x250149,takeUntil as _0x310870}from'rxjs/operators';import{AddSlidePageMutation as _0xcca844,EnsureSlideMasterPageMutation as _0x5cef66,MoveSlidePageMutation as _0xeb237e,RemoveSlidePageMutation as _0x2081e8}from'@univerjs-pro/slides';import{HTTPRequest as _0xb81b46,HTTPService as _0x1fd0e9,ISocketService as _0x4f0a93,MergeInterceptorFactory as _0x5bcb2b,ThresholdInterceptorFactory as _0x172db3,UniverNetworkPlugin as _0x20222a}from'@univerjs/network';import{UniverLicensePlugin as _0x6aad63,getGlobalObject as _0x497abb}from'@univerjs-pro/license';import{cbc as _0xd1e016}from'@noble/ciphers/aes.js';import{concatBytes as _0xe751ad,randomBytes as _0x2416e6,utf8ToBytes as _0x2947e3}from'@noble/ciphers/utils.js';import{DRAWING_IMAGE_ALLOW_IMAGE_LIST as _0x1e72e6,getDrawingImageAllowSize as _0x59aa17}from'@univerjs/drawing';const L=_0x128a93(0x14b),pt={},mt=_0x128a93(0x1b9),ht=_0x128a93(0x2b1),gt='HEARTBEAT_INTERVAL',_t='HEARTBEAT_TIMEOUT',vt=0x4e20,yt=_0x128a93(0x271),bt=_0x128a93(0x365),xt=0x3e8,St=_0x128a93(0x1be),Ct='/universer-api/uniscript';function wt(_0x2e5a5d){const _0x305a25=_0x128a93;return JSON[_0x305a25(0x297)](_0x2e5a5d)[_0x305a25(0x2c4)];}function Tt(_0x3d4e19){'@babel/helpers - typeof';const _0x5ad65c=_0x128a93;return Tt=typeof Symbol==_0x5ad65c(0x37b)&&typeof Symbol[_0x5ad65c(0x220)]==_0x5ad65c(0x1dc)?function(_0x3605d7){return typeof _0x3605d7;}:function(_0x229210){const _0x30c498=_0x5ad65c;return _0x229210&&typeof Symbol==_0x30c498(0x37b)&&_0x229210[_0x30c498(0x3cc)]===Symbol&&_0x229210!==Symbol[_0x30c498(0x32e)]?_0x30c498(0x1dc):typeof _0x229210;},Tt(_0x3d4e19);}function Et(_0x1397b0,_0x4490fc){const _0x949c77=_0x128a93;if(Tt(_0x1397b0)!=_0x949c77(0x2c1)||!_0x1397b0)return _0x1397b0;var _0x432251=_0x1397b0[Symbol['toPrimitive']];if(_0x432251!==void 0x0){var _0x4e304b=_0x432251['call'](_0x1397b0,_0x4490fc||_0x949c77(0x1f3));if(Tt(_0x4e304b)!='object')return _0x4e304b;throw TypeError(_0x949c77(0x208));}return(_0x4490fc===_0x949c77(0x39f)?String:Number)(_0x1397b0);}function Dt(_0x3ffab2){var _0x4f4f3a=Et(_0x3ffab2,'string');return Tt(_0x4f4f3a)=='symbol'?_0x4f4f3a:_0x4f4f3a+'';}function R(_0xff1f6c,_0x5151d1,_0x4604d4){return(_0x5151d1=Dt(_0x5151d1))in _0xff1f6c?Object['defineProperty'](_0xff1f6c,_0x5151d1,{'value':_0x4604d4,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0xff1f6c[_0x5151d1]=_0x4604d4,_0xff1f6c;}let Ot=function(_0x2c7d66){const _0x5c63af=_0x128a93;return _0x2c7d66['OTHER_CLIENT_EDITING']='OTHER_CLIENT_EDITING',_0x2c7d66[_0x5c63af(0x28b)]=_0x5c63af(0x28b),_0x2c7d66['CONFLICT']=_0x5c63af(0x316),_0x2c7d66[_0x5c63af(0x187)]=_0x5c63af(0x187),_0x2c7d66[_0x5c63af(0x2fe)]=_0x5c63af(0x2fe),_0x2c7d66[_0x5c63af(0x28e)]='SOCKET_FAILED_RETRY',_0x2c7d66['SOCKET_FAILED']=_0x5c63af(0x2f2),_0x2c7d66[_0x5c63af(0x28a)]='SUBMIT_CHANGESET_TIMEOUT',_0x2c7d66;}({});var z=class{constructor(){const _0xd08e62=_0x128a93;R(this,_0xd08e62(0x37f),new _0x10b8bf()),R(this,_0xd08e62(0x160),this[_0xd08e62(0x37f)][_0xd08e62(0x1a1)]());}[_0x128a93(0x173)](_0xc568b5){const _0x18e0dc=_0x128a93;this['_event$'][_0x18e0dc(0x1d9)](_0xc568b5);}},kt=class{constructor(){const _0x30579f=_0x128a93;R(this,'_commentUpdate$',new _0x10b8bf()),R(this,_0x30579f(0x309),this['_commentUpdate$'][_0x30579f(0x1a1)]());}[_0x128a93(0x3d2)](_0x315088){const _0x7a334=_0x128a93;this[_0x7a334(0x258)][_0x7a334(0x1d9)](_0x315088);}};function B(_0x55189c,_0x4825d5){return function(_0xeccd7b,_0xe2ced7){_0x4825d5(_0xeccd7b,_0xe2ced7,_0x55189c);};}function V(_0x51e7b9,_0xb470f,_0x47bb8f,_0x4f175d){const _0x345499=_0x128a93;var _0x1e3e87=arguments[_0x345499(0x2c4)],_0x21889e=_0x1e3e87<0x3?_0xb470f:_0x4f175d===null?_0x4f175d=Object[_0x345499(0x3d3)](_0xb470f,_0x47bb8f):_0x4f175d,_0x312be7;if(typeof Reflect==_0x345499(0x2c1)&&typeof Reflect[_0x345499(0x18c)]==_0x345499(0x37b))_0x21889e=Reflect[_0x345499(0x18c)](_0x51e7b9,_0xb470f,_0x47bb8f,_0x4f175d);else{for(var _0x34cd80=_0x51e7b9[_0x345499(0x2c4)]-0x1;_0x34cd80>=0x0;_0x34cd80--)(_0x312be7=_0x51e7b9[_0x34cd80])&&(_0x21889e=(_0x1e3e87<0x3?_0x312be7(_0x21889e):_0x1e3e87>0x3?_0x312be7(_0xb470f,_0x47bb8f,_0x21889e):_0x312be7(_0xb470f,_0x47bb8f))||_0x21889e);}return _0x1e3e87>0x3&&_0x21889e&&Object['defineProperty'](_0xb470f,_0x47bb8f,_0x21889e),_0x21889e;}let H=class extends _0x403d15{constructor(_0x4b490c,_0x4740bf){const _0x29e256=_0x128a93;super(),this[_0x29e256(0x312)]=_0x4b490c,this[_0x29e256(0x278)]=_0x4740bf,R(this,_0x29e256(0x161),new Map()),R(this,_0x29e256(0x2cb),new _0x10b8bf()),this[_0x29e256(0x2ef)](_0x1171fb(this[_0x29e256(0x312)][_0x29e256(0x1cc)](_0x61571e[_0x29e256(0x146)])['pipe'](_0xcf767d(_0x14d15a=>_0x14d15a[_0x29e256(0x3ac)]())),this['_univerInstanceService'][_0x29e256(0x1cc)](_0x61571e[_0x29e256(0x306)])[_0x29e256(0x190)](_0xcf767d(_0x502dc9=>_0x502dc9[_0x29e256(0x3ac)]())),this['_univerInstanceService'][_0x29e256(0x1cc)](_0x61571e[_0x29e256(0x313)])[_0x29e256(0x190)](_0xcf767d(_0x46aa66=>_0x46aa66[_0x29e256(0x3ac)]())),this[_0x29e256(0x312)]['getTypeOfUnitDisposed$'](_0x61571e[_0x29e256(0x1c5)])[_0x29e256(0x190)](_0xcf767d(_0x25a07f=>_0x25a07f[_0x29e256(0x3ac)]())))[_0x29e256(0x1eb)](_0x105758=>this['_removeRoom'](_0x105758)));}['waitForRoom$'](_0x514716){const _0x4a97a3=_0x128a93;return this[_0x4a97a3(0x161)][_0x4a97a3(0x3cd)](_0x514716)?_0x66fadd(this['_roomMembers']['get'](_0x514716)):this[_0x4a97a3(0x2cb)][_0x4a97a3(0x190)](_0xcf767d(_0x313ca2=>{const _0x1fe6b1=_0x4a97a3;if(_0x313ca2===_0x514716)return this['_roomMembers'][_0x1fe6b1(0x2f1)](_0x313ca2);}));}[_0x128a93(0x273)](_0x379e35){const _0x61c84a=_0x128a93;this[_0x61c84a(0x278)]['setCurrentUser'](_0x379e35);}[_0x128a93(0x2da)](){const _0x1c48f6=_0x128a93;return this[_0x1c48f6(0x278)][_0x1c48f6(0x2da)]();}[_0x128a93(0x35a)](_0x3a7c5a,_0x41b80b){const _0x5f4343=_0x128a93;let _0x50bebc=this[_0x5f4343(0x161)][_0x5f4343(0x2f1)](_0x3a7c5a);_0x50bebc||(_0x50bebc=new At(),this['_roomMembers'][_0x5f4343(0x225)](_0x3a7c5a,_0x50bebc),this['_roomCreated$'][_0x5f4343(0x1d9)](_0x3a7c5a)),_0x50bebc[_0x5f4343(0x35a)](_0x41b80b);}[_0x128a93(0x175)](_0x26df37,_0x126208){const _0x2ee241=_0x128a93;let _0x1a9c20=this['_roomMembers'][_0x2ee241(0x2f1)](_0x26df37);_0x1a9c20&&_0x1a9c20[_0x2ee241(0x175)](_0x126208);}[_0x128a93(0x35e)](_0x7424d){const _0x4eeb83=_0x128a93;return this[_0x4eeb83(0x161)]['get'](_0x7424d);}[_0x128a93(0x2c6)](_0x261b98,_0x42feaf){const _0x36865d=_0x128a93;let _0x5d540b=this[_0x36865d(0x161)][_0x36865d(0x2f1)](_0x261b98);if(_0x5d540b)return _0x5d540b[_0x36865d(0x2c6)](_0x42feaf);}[_0x128a93(0x240)](_0x18e5d4){const _0x14c853=_0x128a93;let _0xc3a7bb=this[_0x14c853(0x161)][_0x14c853(0x2f1)](_0x18e5d4);_0xc3a7bb&&(_0xc3a7bb['dispose'](),this[_0x14c853(0x161)][_0x14c853(0x1ff)](_0x18e5d4));}['dispose'](){const _0x3bba46=_0x128a93;this[_0x3bba46(0x161)][_0x3bba46(0x3b6)](_0xffffa4=>_0xffffa4[_0x3bba46(0x358)]()),this[_0x3bba46(0x161)]['clear'](),this[_0x3bba46(0x2cb)][_0x3bba46(0x320)]();}};H=V([B(0x0,_0x450b7c),B(0x1,_0x37b5e1(_0x5296e6))],H);var At=class extends _0x403d15{constructor(..._0x564e02){const _0x8e1706=_0x128a93;super(..._0x564e02),R(this,_0x8e1706(0x3c9),new Map()),R(this,_0x8e1706(0x286),new _0x4e690d(this['_members'])),R(this,_0x8e1706(0x1ef),this[_0x8e1706(0x286)][_0x8e1706(0x1a1)]());}[_0x128a93(0x358)](){const _0x47f679=_0x128a93;this[_0x47f679(0x3c9)][_0x47f679(0x24a)](),this['_members$']['complete']();}[_0x128a93(0x35a)](_0x3be72b){const _0x20adab=_0x128a93;this['_members'][_0x20adab(0x225)](_0x3be72b[_0x20adab(0x329)],_0x3be72b),this[_0x20adab(0x298)]();}['removeMember'](_0x5300ff){const _0x49f090=_0x128a93;this[_0x49f090(0x3c9)]['delete'](_0x5300ff),this[_0x49f090(0x298)]();}[_0x128a93(0x2c6)](_0x561662){const _0x2887b4=_0x128a93;return this[_0x2887b4(0x3c9)][_0x2887b4(0x2f1)](_0x561662);}[_0x128a93(0x198)](){const _0x13a87a=_0x128a93;return Array['from'](this[_0x13a87a(0x3c9)][_0x13a87a(0x1c7)]());}[_0x128a93(0x298)](){const _0x378eb2=_0x128a93;this['_members$'][_0x378eb2(0x1d9)](this[_0x378eb2(0x3c9)]);}};function jt(_0x3ca039,_0x209aa5){const _0x183fdc=_0x128a93;if(Nt(_0x3ca039))return _0x209aa5;if(_0x209aa5['eventID']===_0x17c782['SUBMIT_CHANGESET']){var _0x7da2d6;let _0x30b761=Rt(_0x3ca039),_0x21aee6=_0x209aa5;return{..._0x21aee6,'data':{..._0x21aee6[_0x183fdc(0x204)],'unitID':_0x3ca039[_0x183fdc(0x348)]['unitId'],'unitType':(_0x7da2d6=_0x3ca039['target']['unitType'])==null?_0x21aee6['data'][_0x183fdc(0x1ac)]:_0x7da2d6,'changeset':_0x30b761[_0x183fdc(0x33a)](_0x21aee6[_0x183fdc(0x204)][_0x183fdc(0x3b0)],zt(_0x3ca039))}};}if(_0x209aa5[_0x183fdc(0x2b7)]===_0x17c782[_0x183fdc(0x24f)]){var _0x5e67c0;let _0x28bae5=_0x209aa5;return{..._0x28bae5,'data':{..._0x28bae5[_0x183fdc(0x204)],'unitID':_0x3ca039[_0x183fdc(0x348)]['unitId'],'unitType':(_0x5e67c0=_0x3ca039[_0x183fdc(0x348)]['unitType'])==null?_0x28bae5[_0x183fdc(0x204)][_0x183fdc(0x1ac)]:_0x5e67c0}};}return _0x209aa5;}function Mt(_0x23f0a0,_0x52e0f8){const _0x1ce1a3=_0x128a93;if(Nt(_0x23f0a0))return[_0x52e0f8];switch(_0x52e0f8[_0x1ce1a3(0x2b7)]){case _0x17c782['NEW_CHANGESETS']:return[Pt(_0x23f0a0,_0x52e0f8)];case _0x17c782[_0x1ce1a3(0x16e)]:return[It(_0x23f0a0,_0x52e0f8)];case _0x17c782[_0x1ce1a3(0x377)]:return[Ft(_0x23f0a0,_0x52e0f8)];default:return[_0x52e0f8];}}function Nt(_0x1a5a26){const _0x17be33=_0x128a93;return _0x1a5a26['target'][_0x17be33(0x351)]==null&&_0x1a5a26[_0x17be33(0x348)][_0x17be33(0x285)]===_0x1a5a26['localUnitId']&&!_0x1a5a26['changeset'];}function Pt(_0x1b96a1,_0x1766c4){const _0x535a02=_0x128a93;return{..._0x1766c4,'data':_0x1d83e7(Lt(_0x1b96a1,_0x599160(_0x1766c4[_0x535a02(0x204)])))};}function Ft(_0x596d03,_0x131121){const _0x37d5a4=_0x128a93;return{..._0x131121,'data':Lt(_0x596d03,_0x131121[_0x37d5a4(0x204)])};}function It(_0x36dec0,_0x29d6c8){const _0x5581d6=_0x128a93;let _0x1dfa12=_0x29d6c8[_0x5581d6(0x204)];return{..._0x29d6c8,'data':{..._0x1dfa12,'changesets':_0x1dfa12[_0x5581d6(0x16a)][_0x5581d6(0x24e)](_0x53a30a=>_0x1d83e7(Lt(_0x36dec0,_0x599160(_0x53a30a))))}};}function Lt(_0x5c79ac,_0x18ee7e){const _0x4f8e98=_0x128a93;return Rt(_0x5c79ac)[_0x4f8e98(0x1ed)](_0x18ee7e,zt(_0x5c79ac));}function Rt(_0x4db6d4){const _0x41413d=_0x128a93;if(!_0x4db6d4[_0x41413d(0x3b0)])throw Error(_0x41413d(0x203));return _0x4db6d4['changeset'];}function zt(_0x232da1){const _0x283d10=_0x128a93;return{'localUnitId':_0x232da1['localUnitId'],'unitType':_0x232da1['unitType'],'target':_0x232da1[_0x283d10(0x348)]};}let Bt=function(_0x1a9a96){const _0x1f5e7e=_0x128a93;return _0x1a9a96[_0x1a9a96[_0x1f5e7e(0x39a)]=0x0]=_0x1f5e7e(0x39a),_0x1a9a96[_0x1a9a96['JOINING']=0x1]='JOINING',_0x1a9a96[_0x1a9a96[_0x1f5e7e(0x29a)]=0x2]=_0x1f5e7e(0x29a),_0x1a9a96[_0x1a9a96[_0x1f5e7e(0x1cb)]=0x3]=_0x1f5e7e(0x1cb),_0x1a9a96;}({});const Vt={[_0x38a2c1[_0x128a93(0x212)]]:'session.join-failed',[_0x38a2c1[_0x128a93(0x311)]]:'session.room-full',[_0x38a2c1[_0x128a93(0x193)]]:_0x128a93(0x34a),[_0x38a2c1['JOIN_ROOM_PERMISSION_DENIED']]:_0x128a93(0x368),[_0x38a2c1[_0x128a93(0x367)]]:_0x128a93(0x232)};let Ht=class extends _0x738f09{get[_0x128a93(0x3b2)](){const _0x8b2cff=_0x128a93;return this[_0x8b2cff(0x1d1)][_0x8b2cff(0x1a9)]();}constructor(_0x2d12f1,_0x583542,_0x4868d4,_0x25177a,_0x327de0,_0x8691f8,_0x3dfdbe,_0x1e94ea){const _0x108b89=_0x128a93;super(),this['_identity']=_0x2d12f1,this[_0x108b89(0x346)]=_0x4868d4,this[_0x108b89(0x280)]=_0x25177a,this[_0x108b89(0x3aa)]=_0x327de0,this[_0x108b89(0x321)]=_0x8691f8,this[_0x108b89(0x30c)]=_0x3dfdbe,this[_0x108b89(0x3b8)]=_0x1e94ea,R(this,_0x108b89(0x1d1),new _0x4e690d(0x0)),R(this,_0x108b89(0x206),this[_0x108b89(0x1d1)][_0x108b89(0x1a1)]()),R(this,_0x108b89(0x37f),new _0x10b8bf()),R(this,_0x108b89(0x160),this['_event$'][_0x108b89(0x1a1)]()),R(this,_0x108b89(0x185),void 0x0),R(this,_0x108b89(0x393),void 0x0),R(this,_0x108b89(0x154),void 0x0),R(this,_0x108b89(0x1a4),!0x1),R(this,_0x108b89(0x1e4),null),this[_0x108b89(0x1a4)]=!!this[_0x108b89(0x3b8)],_0x583542[_0x108b89(0x190)](_0x138428(this['dispose$']))[_0x108b89(0x1eb)](_0x2b555e=>{const _0x59da57=_0x108b89;if(_0x2b555e!==void 0x0){if(this[_0x59da57(0x185)]=_0x2b555e,_0x2b555e)this[_0x59da57(0x304)](_0x2b555e),this[_0x59da57(0x393)]=_0x2b555e[_0x59da57(0x3bd)][_0x59da57(0x1eb)](_0x33486e=>{const _0x1b1278=_0x59da57;_0x33486e[_0x1b1278(0x2b2)]===this[_0x1b1278(0x153)][_0x1b1278(0x348)][_0x1b1278(0x285)]&&this[_0x1b1278(0x14c)](_0x33486e);});else{var _0x121b02;this[_0x59da57(0x3c6)](),this[_0x59da57(0x1d1)][_0x59da57(0x1d9)](0x2),(_0x121b02=this[_0x59da57(0x393)])==null||_0x121b02['unsubscribe'](),this['_socketMessageSubscription']=null;}}});}[_0x128a93(0x2bb)](){const _0x373daa=_0x128a93;var _0x55b986,_0x10eba0;return(_0x55b986=(_0x10eba0=this[_0x373daa(0x185)])==null?void 0x0:_0x10eba0[_0x373daa(0x329)])==null?null:_0x55b986;}['dispose'](){const _0x22d59e=_0x128a93;super['dispose'](),this['close'](),this['dispose$']['next'](),this[_0x22d59e(0x245)][_0x22d59e(0x320)]();}['close'](){const _0x49d132=_0x128a93;var _0x48a3b6;this['_throwTelemetryCollaborationNewChangeset'](),(_0x48a3b6=this[_0x49d132(0x185)])==null||_0x48a3b6[_0x49d132(0x317)]({'cmd':_0x10f422[_0x49d132(0x237)],'data':{'roomID':this[_0x49d132(0x153)][_0x49d132(0x348)][_0x49d132(0x285)]}}),this[_0x49d132(0x37f)][_0x49d132(0x320)](),this[_0x49d132(0x1d1)][_0x49d132(0x320)]();}[_0x128a93(0x14c)](_0x34a84b){const _0x4579ba=_0x128a93;_0x34a84b[_0x4579ba(0x17b)]===_0x10f422['JOIN']?this['_onJoinRoomEvent'](_0x34a84b):_0x34a84b[_0x4579ba(0x17b)]===_0x10f422[_0x4579ba(0x1fb)]&&this[_0x4579ba(0x32a)](_0x34a84b);}['_joinRoom'](_0x4590fa){const _0x4f26dd=_0x128a93;this[_0x4f26dd(0x1d1)][_0x4f26dd(0x1d9)](0x1),_0x4590fa[_0x4f26dd(0x317)]({'cmd':_0x10f422[_0x4f26dd(0x1ea)],'routeKey':this['_identity'][_0x4f26dd(0x348)][_0x4f26dd(0x285)],'routeType':'','data':{'rooms':[{'roomID':this[_0x4f26dd(0x153)][_0x4f26dd(0x348)][_0x4f26dd(0x285)]}]}});}['_onJoinRoomEvent'](_0x5ecc9e){const _0x1539d3=_0x128a93;var _0x1441b6;if(_0x5ecc9e[_0x1539d3(0x23a)]in Vt){this['_collaborationUIEventService'][_0x1539d3(0x173)]({'id':_0x1539d3(0x2fe),'data':Vt[_0x5ecc9e[_0x1539d3(0x23a)]]}),this['_sessionStatus$'][_0x1539d3(0x1d9)](0x2);return;}this[_0x1539d3(0x1d1)][_0x1539d3(0x1d9)](0x3);let _0x552db0=(_0x1441b6=_0x5ecc9e[_0x1539d3(0x204)]['roomInfos'][this['_identity'][_0x1539d3(0x348)][_0x1539d3(0x285)]])==null?void 0x0:_0x1441b6['members'];_0x552db0&&_0x552db0['forEach'](_0x52d11a=>this['_memberService']['updateMember'](this[_0x1539d3(0x153)][_0x1539d3(0x19c)],_0x52d11a));}[_0x128a93(0x32a)](_0x5b7e2c){const _0x12d07f=_0x128a93;try{let _0x500f1e=Mt(this[_0x12d07f(0x153)],_0x5b7e2c[_0x12d07f(0x204)]);for(let _0x241793 of _0x500f1e)switch(_0x241793[_0x12d07f(0x2b7)]){case _0x17c782[_0x12d07f(0x14e)]:this[_0x12d07f(0x25a)](_0x241793),this[_0x12d07f(0x37f)][_0x12d07f(0x1d9)](_0x241793);break;case _0x17c782[_0x12d07f(0x310)]:this['_onUserLeave'](_0x241793),this[_0x12d07f(0x37f)][_0x12d07f(0x1d9)](_0x241793);break;case _0x17c782[_0x12d07f(0x3bb)]:case _0x17c782[_0x12d07f(0x377)]:this[_0x12d07f(0x27f)](),this['_clearCollaborationTimeoutTimer'](),this[_0x12d07f(0x37f)][_0x12d07f(0x1d9)](_0x241793);break;case _0x17c782['MSG_FOR_ERROR']:this[_0x12d07f(0x346)][_0x12d07f(0x22c)](_0x12d07f(0x2ff)+JSON[_0x12d07f(0x297)](_0x241793)),this['_event$'][_0x12d07f(0x1d9)](_0x241793);break;case _0x17c782[_0x12d07f(0x3be)]:this[_0x12d07f(0x321)][_0x12d07f(0x3d2)](_0x241793['data']),this[_0x12d07f(0x37f)][_0x12d07f(0x1d9)](_0x241793);break;default:this[_0x12d07f(0x37f)][_0x12d07f(0x1d9)](_0x241793);}}catch(_0x281204){this[_0x12d07f(0x346)][_0x12d07f(0x22c)](_0x281204,_0x5b7e2c);}}['_onUserJoin'](_0xe2e9b2){const _0xa7291e=_0x128a93;this[_0xa7291e(0x3aa)][_0xa7291e(0x35a)](this[_0xa7291e(0x153)][_0xa7291e(0x19c)],_0xe2e9b2[_0xa7291e(0x204)]);}['_onUserLeave'](_0x45bd5a){const _0x95d886=_0x128a93;this[_0x95d886(0x3aa)]['removeMember'](this[_0x95d886(0x153)]['localUnitId'],_0x45bd5a[_0x95d886(0x204)][_0x95d886(0x329)]);}async[_0x128a93(0x317)](_0x4e97eb,_0x45472e){const _0x4095a3=_0x128a93;if(this[_0x4095a3(0x3b2)]!==0x3||!this[_0x4095a3(0x185)])throw Error(_0x4095a3(0x2d3));try{let _0x176603=jt(this[_0x4095a3(0x153)],_0x4e97eb);_0x176603[_0x4095a3(0x2b7)]===_0x17c782[_0x4095a3(0x328)]&&(this['_scheduleCollaborationTimeoutTimer'](),this['_startTelemetryCollaborationNewChangeset'](_0x176603)),this[_0x4095a3(0x185)][_0x4095a3(0x317)]({'cmd':_0x10f422[_0x4095a3(0x31d)],'routeKey':this[_0x4095a3(0x153)][_0x4095a3(0x348)][_0x4095a3(0x285)],'routeType':'','data':_0x176603});}catch(_0x57a499){this[_0x4095a3(0x346)][_0x4095a3(0x22c)](_0x57a499);}}[_0x128a93(0x22f)](){const _0xacc8d5=_0x128a93;var _0x5138c1;this['_collaborationTimeoutTimer']=setTimeout(()=>{const _0x3f304c=_0x1478;this[_0x3f304c(0x154)]=null,this[_0x3f304c(0x30c)][_0x3f304c(0x173)]({'id':_0x3f304c(0x28a)});},(_0x5138c1=this[_0xacc8d5(0x280)][_0xacc8d5(0x1bc)](_0xacc8d5(0x1b3)))==null?vt:_0x5138c1);}['_clearCollaborationTimeoutTimer'](){const _0x507a29=_0x128a93;this[_0x507a29(0x154)]&&(clearTimeout(this[_0x507a29(0x154)]),this[_0x507a29(0x154)]=null);}[_0x128a93(0x337)](_0x2d575f){const _0x1320a2=_0x128a93;if(!this['_shouldReportTelemetry'])return;let {data:_0x2f93f8}=_0x2d575f,{unitID:_0x3d259e,changeset:_0x4b2013}=_0x2f93f8,{mutations:_0x15f9f5,type:_0x23d98e}=_0x4b2013;this['_telemetryInfo']={'unitId':_0x3d259e,'type':_0x23d98e,'startTime':performance[_0x1320a2(0x334)](),'stopTime':0x0,'duration':0x0,'size':wt(_0x15f9f5)};}['_stopTelemetryCollaborationNewChangeset'](){const _0x2e24ea=_0x128a93;if(this[_0x2e24ea(0x1a4)]){if(!this[_0x2e24ea(0x1e4)]){this['_logService'][_0x2e24ea(0x22c)]('[CollaborationSession]',_0x2e24ea(0x23c));return;}this['_telemetryInfo'][_0x2e24ea(0x2e8)]=performance[_0x2e24ea(0x334)](),this['_telemetryInfo']['duration']=this[_0x2e24ea(0x1e4)][_0x2e24ea(0x2e8)]-this[_0x2e24ea(0x1e4)][_0x2e24ea(0x1c6)],this[_0x2e24ea(0x3b8)][_0x2e24ea(0x2ed)](_0x2e24ea(0x251),this[_0x2e24ea(0x1e4)]),this[_0x2e24ea(0x1e4)]=null;}}[_0x128a93(0x3c6)](){const _0x4356ad=_0x128a93;this[_0x4356ad(0x1e4)]=null;}};Ht=V([B(0x2,_0x470483),B(0x3,_0x46ffbd),B(0x4,_0x37b5e1(H)),B(0x5,_0x37b5e1(kt)),B(0x6,_0x37b5e1(z)),B(0x7,_0x29c9af(_0x1f54b5))],Ht);const U=_0xd7efb5(_0x128a93(0x222));function Ut(_0x339e4c){const _0x230d36=_0x128a93;return _0x230d36(0x13c)+_0x339e4c;}function Wt(_0x12f057){const _0x35413c=_0x128a93;let {unitID:_0x4e019f,mutations:_0x38fb71}=_0x12f057;return{'unitId':_0x4e019f,'subUnitId':_0x38fb71[_0x35413c(0x2c4)]>0x0?_0x38fb71[0x0][_0x35413c(0x2dd)][_0x35413c(0x21d)]:null};}let Gt=class{constructor(_0x42601d,_0x1431d4,_0x32ebc2){const _0x515746=_0x128a93;this[_0x515746(0x349)]=_0x42601d,this[_0x515746(0x247)]=_0x1431d4,this[_0x515746(0x259)]=_0x32ebc2;}[_0x128a93(0x2e4)](_0x3342d7){const _0x9fd406=_0x128a93;var _0x401fb4,_0x2d65bd;let _0x3ecdd0=this[_0x9fd406(0x349)]['get'](_0xbb4558),{unitId:_0x2d7ad2,subUnitId:_0x135b53}=Wt(_0x3342d7),_0x4b9e32=_0x3ecdd0==null?void 0x0:_0x3ecdd0[_0x9fd406(0x1d8)](_0x2d7ad2)[_0x9fd406(0x224)](),_0xfc817=(_0x401fb4=this[_0x9fd406(0x259)][_0x9fd406(0x3a1)](_0x2d7ad2))==null||(_0x401fb4=_0x401fb4[_0x9fd406(0x189)]())==null?void 0x0:_0x401fb4['getSheetId']();if(_0x4b9e32[_0x9fd406(0x2c4)]===0x0||!_0x2d7ad2||!_0x135b53)return;let _0x5e9f46=[{'id':_0x509da1['id'],'params':{'unitId':_0x2d7ad2,'subUnitId':_0xfc817,'selections':_0x4bb715[_0x9fd406(0x339)](_0x4b9e32)}}],_0x2622d1=this[_0x9fd406(0x247)][_0x9fd406(0x1d7)](_0x3342d7,_0x5e9f46);if(!_0x25be66(_0x2622d1))throw _0x2622d1[_0x9fd406(0x22c)];let _0x1707d4=(_0x2d65bd=_0x2622d1['m2Prime'][0x0])==null||(_0x2d65bd=_0x2d65bd['params'])==null?void 0x0:_0x2d65bd[_0x9fd406(0x216)];if(Array[_0x9fd406(0x3b5)](_0x1707d4)&&_0x1707d4[_0x9fd406(0x2c4)]){if(_0x1707d4[_0x9fd406(0x2c4)]===_0x5e9f46[0x0]['params'][_0x9fd406(0x216)][_0x9fd406(0x2c4)]&&_0x1707d4[_0x9fd406(0x1bf)]((_0x10e75e,_0x1e8c8e)=>_0x4aac13[_0x9fd406(0x256)](_0x10e75e['range'],_0x5e9f46[0x0]['params'][_0x9fd406(0x216)][_0x1e8c8e]['range'])))return;this[_0x9fd406(0x349)]['get'](_0x3b4b60)['executeCommand'](_0x509da1['id'],{'unitId':_0x2d7ad2,'subUnitId':_0xfc817,'selections':_0x1707d4});}}};Gt=V([B(0x0,_0x37b5e1(_0x56145d)),B(0x1,_0xa32c02),B(0x2,_0x450b7c)],Gt);const W=_0xd7efb5(_0x128a93(0x362));let Kt=function(_0x543c45){const _0x297673=_0x128a93;return _0x543c45[_0x543c45[_0x297673(0x2b5)]=0x0]=_0x297673(0x2b5),_0x543c45[_0x543c45['OTHER_CLIENTS_EDITING']=0x1]=_0x297673(0x381),_0x543c45;}({});function qt(_0x221717){const _0x3d1aa3=_0x128a93;var _0x56c1da;return!!((_0x56c1da=_0x221717[_0x3d1aa3(0x2dd)])!=null&&_0x56c1da[_0x3d1aa3(0x31e)]);}const Jt=new Set([_0x2a80a3['id']]),Yt=new Set([_0xcca844['id'],_0x5cef66['id'],_0xeb237e['id'],_0x2081e8['id']]);function Xt(_0x20730a,_0xa04c43=Jt){const _0x126942=_0x128a93;let _0x5610df=[];for(let _0x268ca4 of _0x20730a){if(_0xa04c43[_0x126942(0x3cd)](_0x268ca4['id'])){if(_0x5610df['length']>0x0)break;_0x5610df[_0x126942(0x263)](_0x268ca4);break;}if(qt(_0x268ca4)){if(_0x5610df['length']>0x0)break;_0x5610df[_0x126942(0x263)](_0x268ca4);break;}_0x5610df[_0x126942(0x263)](_0x268ca4);}return _0x5610df;}function Zt(_0x5769eb,_0xc03f32,_0x4d281d,_0x1e435f,_0x565803){const _0x1fca76=_0x128a93;var _0x3cebf8,_0x5f0fbf,_0x449e17,_0xe6a6d5;let _0x2d531d=Xt(_0x5769eb),_0x2604bf=(_0x3cebf8=(_0x5f0fbf=_0x565803[_0x1fca76(0x2da)]())==null?void 0x0:_0x5f0fbf[_0x1fca76(0x33e)])==null?_0x1fca76(0x262):_0x3cebf8,_0x59804a=(_0x449e17=(_0xe6a6d5=_0x565803[_0x1fca76(0x2da)]())==null?void 0x0:_0xe6a6d5[_0x1fca76(0x329)])==null?_0x1fca76(0x262):_0x449e17;return{'changeset':{'unitID':_0xc03f32,'type':_0x1b5cee(_0x4d281d[_0x1fca76(0x1e6)](_0xc03f32)),'baseRev':_0x1e435f['getCurrentRevOfUnit'](_0xc03f32),'revision':0x0,'userID':_0x2604bf,'memberID':_0x59804a,'mutations':_0x2d531d},'pendingMutations':_0x5769eb[_0x1fca76(0x2e2)](_0x2d531d[_0x1fca76(0x2c4)])};}function Qt(_0x5e246b,_0x5cc8f2,_0x32b9e4,_0x4e9733,_0x3c7d97){const _0x51ee7f=_0x128a93;var _0x418c47,_0x564a69,_0x439104,_0x14b1ce;let _0x2bf2b0=Xt(_0x5e246b,Yt),_0x47fa27=(_0x418c47=(_0x564a69=_0x3c7d97['getCurrentUser']())==null?void 0x0:_0x564a69['userID'])==null?_0x51ee7f(0x262):_0x418c47,_0x17e6d3=(_0x439104=(_0x14b1ce=_0x3c7d97[_0x51ee7f(0x2da)]())==null?void 0x0:_0x14b1ce[_0x51ee7f(0x329)])==null?_0x51ee7f(0x262):_0x439104;return{'changeset':{'unitID':_0x5cc8f2,'type':_0x1b5cee(_0x32b9e4[_0x51ee7f(0x1e6)](_0x5cc8f2)),'baseRev':_0x4e9733[_0x51ee7f(0x235)](_0x5cc8f2),'revision':0x0,'userID':_0x47fa27,'memberID':_0x17e6d3,'mutations':_0x2bf2b0},'pendingMutations':_0x5e246b[_0x51ee7f(0x2e2)](_0x2bf2b0[_0x51ee7f(0x2c4)])};}function $t(_0x50dc11,_0x568e26,_0x9ad8df,_0x4b9096,_0x525fad){const _0x172334=_0x128a93;var _0x5cc139,_0x7e71ac,_0x3d6ada,_0xc2e918;let _0x1bc2a8=_0x50dc11[_0x172334(0x276)]((_0x4d25a,_0xb356ec)=>{const _0x934ec2=_0x172334;let _0x58aa11=_0x4d25a[_0x4d25a[_0x934ec2(0x2c4)]-0x1],{id:_0x1e39ee}=_0x58aa11==null?{}:_0x58aa11,{id:_0x4d7823,type:_0x13d7e2}=_0xb356ec,_0x538be0=_0xb356ec[_0x934ec2(0x2dd)];if(_0x1e39ee&&_0x1e39ee!==_0x4d7823)throw Error('Cannot\x20assemble\x20a\x20changeset\x20from\x20multiple\x20mutations\x20of\x20different\x20types:\x20'+_0x1e39ee+_0x934ec2(0x1c1)+_0x4d7823+'.');if(!_0x58aa11)return[{'id':_0x4d7823,'type':_0x13d7e2,'params':{'unitId':_0x538be0[_0x934ec2(0x285)],'textRanges':_0x538be0[_0x934ec2(0x1d3)],'actions':_0x538be0[_0x934ec2(0x1a2)]}}];let _0x2a9619=_0x58aa11[_0x934ec2(0x2dd)];return en(_0x2a9619,_0x538be0)?[..._0x4d25a[_0x934ec2(0x2e2)](0x0,-0x1),{..._0x58aa11,'id':_0x4d7823,'type':_0x13d7e2,'params':{'unitId':_0x538be0['unitId'],'textRanges':_0x538be0[_0x934ec2(0x1d3)],'actions':_0xeedbec[_0x934ec2(0x34d)](_0x2a9619[_0x934ec2(0x1a2)],_0x538be0[_0x934ec2(0x1a2)])}}]:[..._0x4d25a,{'id':_0x4d7823,'type':_0x13d7e2,'params':{'unitId':_0x538be0[_0x934ec2(0x285)],'textRanges':_0x538be0['textRanges'],'actions':_0x538be0[_0x934ec2(0x1a2)]}}];},[]),_0x111c24=(_0x5cc139=(_0x7e71ac=_0x525fad[_0x172334(0x2da)]())==null?void 0x0:_0x7e71ac[_0x172334(0x33e)])==null?'unknown':_0x5cc139,_0x43ab35=(_0x3d6ada=(_0xc2e918=_0x525fad[_0x172334(0x2da)]())==null?void 0x0:_0xc2e918['memberID'])==null?_0x172334(0x262):_0x3d6ada;return{'changeset':{'unitID':_0x568e26,'type':_0x1b5cee(_0x9ad8df['getUnitType'](_0x568e26)),'baseRev':_0x4b9096['getCurrentRevOfUnit'](_0x568e26),'revision':0x0,'userID':_0x111c24,'memberID':_0x43ab35,'mutations':_0x1bc2a8},'pendingMutations':_0x50dc11[_0x172334(0x2e2)](_0x50dc11[_0x172334(0x2c4)])};}function en(_0x473393,_0x1bd628){const _0x3f3b57=_0x128a93;return!tn(_0x473393)&&!tn(_0x1bd628)&&nn(_0x473393['actions'],_0x1bd628[_0x3f3b57(0x1a2)]);}function tn(_0x25380d){const _0x5ee50f=_0x128a93;return _0x25380d[_0x5ee50f(0x3a5)]!==void 0x0;}function nn(_0x53d050,_0x226019){return rn(_0x53d050)&&rn(_0x226019)&&!on(_0x53d050)&&!on(_0x226019)&&!an(_0x53d050)&&!an(_0x226019);}function rn(_0x2ef15d){const _0x59cf1a=_0x128a93;return sn(_0x2ef15d)[_0x59cf1a(0x233)](_0x46747b=>cn(_0x46747b)&&_0x46747b['et']==='text-x');}function an(_0x2c849e){const _0x2141df=_0x128a93;return sn(_0x2c849e)[_0x2141df(0x233)](_0x37af92=>Array[_0x2141df(0x3b5)](_0x37af92)||typeof _0x37af92==_0x2141df(0x39f)||typeof _0x37af92==_0x2141df(0x354));}function on(_0x5cb627){const _0x49eda5=_0x128a93;return sn(_0x5cb627)[_0x49eda5(0x233)](_0x5d62f9=>!cn(_0x5d62f9)||_0x5d62f9['et']!==_0x49eda5(0x324)||!Array[_0x49eda5(0x3b5)](_0x5d62f9['e'])?!0x1:_0x5d62f9['e']['some'](_0xcba999=>!cn(_0xcba999)||!cn(_0xcba999['body'])?!0x1:Object[_0x49eda5(0x32e)][_0x49eda5(0x176)][_0x49eda5(0x214)](_0xcba999[_0x49eda5(0x3b7)],'tables')||Object[_0x49eda5(0x32e)][_0x49eda5(0x176)][_0x49eda5(0x214)](_0xcba999[_0x49eda5(0x3b7)],'columnGroups')||Object['prototype'][_0x49eda5(0x176)][_0x49eda5(0x214)](_0xcba999[_0x49eda5(0x3b7)],_0x49eda5(0x17c))));}function sn(_0x42dd83){const _0x5bd4e8=_0x128a93;if(!Array[_0x5bd4e8(0x3b5)](_0x42dd83))return[];let _0x2839f2=_0x42dd83['includes'](_0x5bd4e8(0x3b7))?_0x42dd83:_0x42dd83[_0x5bd4e8(0x1b2)](_0x34dbea=>Array[_0x5bd4e8(0x3b5)](_0x34dbea)&&_0x34dbea['includes'](_0x5bd4e8(0x3b7)));if(!Array[_0x5bd4e8(0x3b5)](_0x2839f2))return[];let _0x34a9c3=_0x2839f2['indexOf'](_0x5bd4e8(0x3b7));return _0x34a9c3===-0x1?[]:_0x2839f2[_0x5bd4e8(0x2e2)](_0x34a9c3+0x1);}function cn(_0x186126){const _0xf7807f=_0x128a93;return typeof _0x186126=='object'&&!!_0x186126&&!Array[_0xf7807f(0x3b5)](_0x186126);}function ln(_0x2beff0,_0x2f1b91){const _0x2b8fa5=_0x128a93;let _0x551452=new _0x3c466e(0x1);return setTimeout(()=>_0x551452[_0x2b8fa5(0x1d9)](_0x2f1b91),_0x2beff0),_0x551452[_0x2b8fa5(0x1a1)]()[_0x2b8fa5(0x190)](_0x2611e8(0x1));}var un,dn,fn;let pn=function(_0x11321c){const _0x3d4e44=_0x128a93;return _0x11321c[_0x3d4e44(0x16f)]=_0x3d4e44(0x2af),_0x11321c['SYNCED']='synced',_0x11321c[_0x3d4e44(0x369)]=_0x3d4e44(0x39e),_0x11321c['AWAITING']=_0x3d4e44(0x221),_0x11321c[_0x3d4e44(0x344)]=_0x3d4e44(0x3ad),_0x11321c['FETCH_MISS']=_0x3d4e44(0x34c),_0x11321c[_0x3d4e44(0x316)]=_0x3d4e44(0x20b),_0x11321c['OFFLINE']=_0x3d4e44(0x2c7),_0x11321c;}({});const mn=0x4e20,hn=0x2bf20;var G=class{constructor(_0x1b3ca4,_0x459928,_0xeb9693,_0x2dc5f9,_0x39b328,_0xe42e9,_0x4b30ef,_0x4d9385,_0x57f226){const _0x3236e7=_0x128a93;this['unitID']=_0x1b3ca4,this[_0x3236e7(0x2b6)]=_0x459928,this[_0x3236e7(0x2e5)]=_0x39b328,this['_commandService']=_0xe42e9,this['_undoRedoService']=_0x4b30ef,this[_0x3236e7(0x2eb)]=_0x4d9385,this[_0x3236e7(0x1fe)]=_0x57f226,R(this,_0x3236e7(0x13b),null),R(this,_0x3236e7(0x1de),[]),this[_0x3236e7(0x13b)]=_0xeb9693,this['_pendingMutations']=_0x2dc5f9;}[_0x128a93(0x289)](_0x9a076){const _0x548df5=_0x128a93;let _0x2b2234=this[_0x548df5(0x2eb)][_0x548df5(0x235)](this['unitID']);return _0x9a076[_0x548df5(0x380)]>_0x2b2234+0x1?(this[_0x548df5(0x2e5)][_0x548df5(0x15c)]({'from':_0x2b2234,'to':_0x9a076[_0x548df5(0x380)]-0x1}),!0x0):!0x1;}[_0x128a93(0x20f)](_0x2560b2){const _0x371c05=_0x128a93;this[_0x371c05(0x319)][_0x371c05(0x184)](this[_0x371c05(0x2d2)],_0x2560b2);}[_0x128a93(0x326)](_0x33e23f){const _0xc9518d=_0x128a93;var _0x427f6d,_0x2871c7;(_0x427f6d=(_0x2871c7=this['_handler'])[_0xc9518d(0x35c)])==null||_0x427f6d['call'](_0x2871c7,_0x33e23f);}['_transformIMECache'](_0xfd377e){const _0x30b796=_0x128a93;var _0x45aa81,_0xf0ecaf;return(_0x45aa81=(_0xf0ecaf=this[_0x30b796(0x2e5)])[_0x30b796(0x2a1)])==null?void 0x0:_0x45aa81[_0x30b796(0x214)](_0xf0ecaf,_0xfd377e);}[_0x128a93(0x36f)](_0x4367b0){const _0x1f7083=_0x128a93;var _0x86f08e,_0x36ad24;return(_0x86f08e=(_0x36ad24=this[_0x1f7083(0x2e5)])['onTransformState'])==null?void 0x0:_0x86f08e[_0x1f7083(0x214)](_0x36ad24,_0x4367b0);}[_0x128a93(0x2a5)](_0x1b07da){const _0x265fdb=_0x128a93;var _0x3586dc,_0x26e619,_0x2a8a98;return(_0x3586dc=(_0x26e619=(_0x2a8a98=this[_0x265fdb(0x2e5)])[_0x265fdb(0x333)])==null?void 0x0:_0x26e619[_0x265fdb(0x214)](_0x2a8a98,_0x1b07da))==null?_0x1b07da:_0x3586dc;}[_0x128a93(0x3a0)](_0x41d854){var _0x313316,_0x1dc21b,_0x4d04a6;return(_0x313316=(_0x1dc21b=(_0x4d04a6=this['_handler'])['onTransformRemoteChangesetByStateCache'])==null?void 0x0:_0x1dc21b['call'](_0x4d04a6,_0x41d854))==null?_0x41d854:_0x313316;}[_0x128a93(0x191)](_0x582c58){const _0x5a3c86=_0x128a93;if(this['type']===_0x61571e[_0x5a3c86(0x306)]){let {unitID:_0x379500,mutations:_0x5338fc,memberID:_0x3cd80c}=_0x582c58,_0x11e33e=_0x5338fc['length']>0x0?_0x5338fc[0x0]['params']['textRanges']:[];if(Array[_0x5a3c86(0x3b5)](_0x11e33e)&&_0x11e33e[_0x5a3c86(0x2c4)]>0x0){var _0x29e451,_0x4972d1;(_0x29e451=(_0x4972d1=this[_0x5a3c86(0x2e5)])[_0x5a3c86(0x2df)])==null||_0x29e451[_0x5a3c86(0x214)](_0x4972d1,{'unitID':_0x379500,'memberID':_0x3cd80c,'textRanges':_0x11e33e});}}}['_updateLocalCache'](){const _0x106fda=_0x128a93;var _0x57890a;(_0x57890a=this['_localCacheService'])==null||_0x57890a['updateOfflineData'](this[_0x106fda(0x2d2)],this[_0x106fda(0x2b6)],this[_0x106fda(0x13b)],this[_0x106fda(0x1de)]);}[_0x128a93(0x2b4)](){const _0x263af2=_0x128a93;return this[_0x263af2(0x2eb)][_0x263af2(0x235)](this['unitID']);}['_incrementRevisionNumber'](){const _0x1fe170=_0x128a93;this['_revisionService'][_0x1fe170(0x199)](this[_0x1fe170(0x2d2)]);}['_executeRemoteChangeset'](_0x21ed79){const _0x10b031=_0x128a93;let _0x52374c=this[_0x10b031(0x2a5)](_0x21ed79);_0x52374c=this['_transformRemoteChangesetByStateCache'](_0x52374c);let _0x307146=_0x148db0(_0x52374c[_0x10b031(0x36c)],this['_commandService'],{'fromCollab':!0x0});if(!_0x307146[_0x10b031(0x3ce)]){var _0x3e06ae;throw _0x307146['error']instanceof Error?_0x307146[_0x10b031(0x22c)]:Error((_0x3e06ae=_0x307146['error'])==null?'[CollaborationState]:\x20apply\x20error!':_0x3e06ae);}this[_0x10b031(0x1ab)](_0x52374c),this['_transformStateCache'](_0x52374c),this[_0x10b031(0x20f)](_0x21ed79),this[_0x10b031(0x326)](_0x52374c),this[_0x10b031(0x191)](_0x52374c),this[_0x10b031(0x25b)]();}};let K=class extends G{constructor(_0x398d21,_0x520b20,_0x2747f1,_0x21c762,_0x295e07,_0x343370,_0x34076d,_0x77c346,_0x1225e7,_0x4de5f1){const _0x2e8d34=_0x128a93;super(_0x398d21,_0x520b20,null,[],_0x2747f1,_0x34076d,_0x343370,_0x21c762,_0x4de5f1),this[_0x2e8d34(0x349)]=_0x295e07,this['_logService']=_0x77c346,this[_0x2e8d34(0x247)]=_0x1225e7,this[_0x2e8d34(0x226)]=_0x4de5f1,R(this,_0x2e8d34(0x2a9),_0x2e8d34(0x2e0));}[_0x128a93(0x28c)](_0x327f70){const _0x22c8db=_0x128a93;let _0x2284df=this['_injector'][_0x22c8db(0x279)](q,this['unitID'],this['type'],[_0x327f70],this[_0x22c8db(0x2e5)]);return _0x2284df[_0x22c8db(0x1e5)](),_0x2284df['_updateLocalCache'](),_0x2284df;}['onRemoteChangeset'](_0x29820f){const _0x18b615=_0x128a93;if(this['_checkMissing'](_0x29820f))return this[_0x18b615(0x349)][_0x18b615(0x279)](Q,this[_0x18b615(0x2d2)],this[_0x18b615(0x2b6)],null,[],null,[_0x29820f],this[_0x18b615(0x2e5)]);try{let _0x3238fa=this['_transformService']['transformMutationsWithChangeset'](_0x29820f,[_0x4cdf13]);if(_0x25be66(_0x3238fa)){let {c1Prime:_0x4b310a}=_0x3238fa;return this[_0x18b615(0x2cc)](_0x4b310a),this;}throw _0x3238fa[_0x18b615(0x22c)];}catch(_0x50fa77){return this['_logService'][_0x18b615(0x22c)](_0x50fa77),this[_0x18b615(0x1c4)](!0x1);}}['_onConflict'](_0x50d338){const _0x4a7379=_0x128a93;return this[_0x4a7379(0x349)]['createInstance'](X,this[_0x4a7379(0x2d2)],this[_0x4a7379(0x2b6)],null,[],this['_handler'],_0x50d338);}[_0x128a93(0x29c)](_0x4b219f){const _0x365f97=_0x128a93;if(_0x4b219f[_0x365f97(0x380)]<=this['_getCurrentRevision']())return this;throw Error(_0x365f97(0x2ad));}['onRemoteRej'](){const _0x3c039f=_0x128a93;throw Error(_0x3c039f(0x302));}['onRemoteRetry'](){return this;}[_0x128a93(0x24c)](){const _0x50300d=_0x128a93;return this[_0x50300d(0x349)][_0x50300d(0x279)](Z,this[_0x50300d(0x2d2)],this['type'],null,[],this['_handler']);}['toggleOnline'](){return this;}['resend'](){throw Error('[SyncedState]:\x20invalid\x20calling\x20to\x20`resend`.');}['fetchMiss'](){const _0x33089a=_0x128a93;let _0x128407=this['_revisionService'][_0x33089a(0x235)](this[_0x33089a(0x2d2)]);return this[_0x33089a(0x2e5)][_0x33089a(0x15c)]({'from':_0x128407,'to':0x0}),this[_0x33089a(0x349)][_0x33089a(0x279)](Q,this['unitID'],this['type'],null,[],null,[],this['_handler']);}};K=V([B(0x3,_0x37b5e1(_0x41f50e)),B(0x4,_0x37b5e1(_0x56145d)),B(0x5,_0x3fb98b),B(0x6,_0x3b4b60),B(0x7,_0x470483),B(0x8,_0xa32c02),B(0x9,_0x29c9af(U))],K);let q=un=class extends G{constructor(_0x3f401a,_0x131fe1,_0x5cd0db,_0x4971e3,_0x441c12,_0x1b29d5,_0x481b85,_0x47a0ba,_0xe456eb,_0x2105e4,_0x1cbe20,_0x5a19ce,_0x5a2cc6,_0x3959f5){const _0xde6d35=_0x128a93;super(_0x3f401a,_0x131fe1,null,_0x5cd0db,_0x4971e3,_0xe456eb,_0x5a2cc6,_0x1b29d5,_0x3959f5),this[_0xde6d35(0x349)]=_0x441c12,this['_memberService']=_0x481b85,this['_logService']=_0x47a0ba,this[_0xde6d35(0x280)]=_0x2105e4,this[_0xde6d35(0x247)]=_0x1cbe20,this['_univerInstanceService']=_0x5a19ce,R(this,_0xde6d35(0x2a9),_0xde6d35(0x39e)),R(this,_0xde6d35(0x248),null),R(this,'_sendingTimer',null);}[_0x128a93(0x28c)](_0x4607b8){const _0x295990=_0x128a93;return this['_pendingMutations'][_0x295990(0x263)](_0x4607b8),this[_0x295990(0x275)](),this;}[_0x128a93(0x162)](_0x3e7206){const _0x167ece=_0x128a93;if(this['_checkMissing'](_0x3e7206))return this['_clearScheduledTask'](),this['_injector'][_0x167ece(0x279)](Q,this['unitID'],this['type'],null,this[_0x167ece(0x1de)],null,[_0x3e7206],this[_0x167ece(0x2e5)]);try{let _0x39df57=this[_0x167ece(0x247)][_0x167ece(0x1d7)](_0x3e7206,this[_0x167ece(0x1de)]);if(_0x25be66(_0x39df57)){let {c1Prime:_0x721e8e,m2Prime:_0x4a3f8f}=_0x39df57;this['_executeRemoteChangeset'](_0x721e8e);let _0x2e0aaa=this['_injector'][_0x167ece(0x279)](un,this[_0x167ece(0x2d2)],this[_0x167ece(0x2b6)],_0x4a3f8f,this[_0x167ece(0x2e5)]);this[_0x167ece(0x332)]();let _0x10b395=new Date()[_0x167ece(0x327)](),_0x5311aa=this[_0x167ece(0x248)]?Math['max'](this[_0x167ece(0x248)]-_0x10b395,0x0):this[_0x167ece(0x16d)]();return _0x2e0aaa[_0x167ece(0x1e5)](_0x5311aa),_0x2e0aaa;}throw _0x39df57[_0x167ece(0x22c)];}catch(_0x295e41){return this['_logService'][_0x167ece(0x22c)](_0x295e41),this[_0x167ece(0x1c4)](!0x1);}}[_0x128a93(0x29c)](_0x15a6d0){const _0x26659e=_0x128a93;if(_0x15a6d0[_0x26659e(0x380)]<=this[_0x26659e(0x2b4)]())return this;throw Error(_0x26659e(0x21e));}[_0x128a93(0x2cf)](){const _0x50c70d=_0x128a93;throw Error(_0x50c70d(0x2e9));}['onRemoteRetry'](){return this;}[_0x128a93(0x24c)](){const _0x12b6cb=_0x128a93;return this['_clearScheduledTask'](),this['_injector'][_0x12b6cb(0x279)](Z,this[_0x12b6cb(0x2d2)],this['type'],null,this[_0x12b6cb(0x1de)],this[_0x12b6cb(0x2e5)]);}['toggleOnline'](){return this;}['_schedule'](_0x2ca991){const _0x4bcdcf=_0x128a93;let _0x54da7f=_0x2ca991==null?this[_0x4bcdcf(0x16d)]():_0x2ca991;this[_0x4bcdcf(0x248)]=new Date()['getTime']()+_0x54da7f,this[_0x4bcdcf(0x20a)]=setTimeout(()=>{const _0x290cf0=_0x4bcdcf;this[_0x290cf0(0x332)]();let _0x4b68fb=null;switch(this[_0x290cf0(0x2b6)]){case _0x61571e[_0x290cf0(0x146)]:_0x4b68fb=Zt(this['_pendingMutations'],this[_0x290cf0(0x2d2)],this[_0x290cf0(0x312)],this[_0x290cf0(0x2eb)],this[_0x290cf0(0x3aa)]);break;case _0x61571e[_0x290cf0(0x306)]:_0x4b68fb=this[_0x290cf0(0x1de)][_0x290cf0(0x1bf)](_0x4bd1e0=>_0x4bd1e0['id']===_0x5e08a2['id'])?$t(this[_0x290cf0(0x1de)],this[_0x290cf0(0x2d2)],this['_univerInstanceService'],this[_0x290cf0(0x2eb)],this[_0x290cf0(0x3aa)]):Zt(this[_0x290cf0(0x1de)],this[_0x290cf0(0x2d2)],this[_0x290cf0(0x312)],this[_0x290cf0(0x2eb)],this[_0x290cf0(0x3aa)]);break;case _0x61571e[_0x290cf0(0x164)]:_0x4b68fb=Qt(this[_0x290cf0(0x1de)],this[_0x290cf0(0x2d2)],this[_0x290cf0(0x312)],this[_0x290cf0(0x2eb)],this[_0x290cf0(0x3aa)]);break;case _0x61571e['UNIVER_BOARD']:_0x4b68fb=Zt(this[_0x290cf0(0x1de)],this[_0x290cf0(0x2d2)],this[_0x290cf0(0x312)],this[_0x290cf0(0x2eb)],this[_0x290cf0(0x3aa)]);break;case _0x61571e[_0x290cf0(0x1c5)]:_0x4b68fb=Zt(this['_pendingMutations'],this[_0x290cf0(0x2d2)],this[_0x290cf0(0x312)],this['_revisionService'],this[_0x290cf0(0x3aa)]);break;default:throw Error(_0x290cf0(0x14a)+this['type']+_0x290cf0(0x205));}let {changeset:_0x1893ee,pendingMutations:_0x237c47}=_0x4b68fb;this['_handler'][_0x290cf0(0x3a4)](_0x1893ee);let _0x55163e=_0x237c47['length']?this[_0x290cf0(0x349)][_0x290cf0(0x279)](Y,this[_0x290cf0(0x2d2)],this[_0x290cf0(0x2b6)],_0x1893ee,_0x237c47,this[_0x290cf0(0x2e5)],void 0x0):this[_0x290cf0(0x349)][_0x290cf0(0x279)](J,this[_0x290cf0(0x2d2)],this[_0x290cf0(0x2b6)],_0x1893ee,this['_handler']);_0x55163e[_0x290cf0(0x275)](),this['_handler'][_0x290cf0(0x3c4)](this,_0x55163e);},_0x54da7f);}[_0x128a93(0x16d)](){const _0x415c7e=_0x128a93;var _0x13a4ef;let _0x1249f6=this['_configService'][_0x415c7e(0x1bc)](L);return(_0x13a4ef=_0x1249f6==null?void 0x0:_0x1249f6['sendChangesetTimeout'])==null?0x7d0:_0x13a4ef;}[_0x128a93(0x29f)](){const _0x26ca6c=_0x128a93;throw Error(_0x26ca6c(0x163));}[_0x128a93(0x332)](){const _0x433820=_0x128a93;this[_0x433820(0x20a)]!=null&&(clearTimeout(this[_0x433820(0x20a)]),this[_0x433820(0x20a)]=null);}[_0x128a93(0x1c4)](_0x30c98f){const _0x4c2046=_0x128a93;return this[_0x4c2046(0x332)](),this[_0x4c2046(0x349)][_0x4c2046(0x279)](X,this[_0x4c2046(0x2d2)],this[_0x4c2046(0x2b6)],null,this[_0x4c2046(0x1de)],this['_handler'],_0x30c98f);}};q=un=V([B(0x4,_0x37b5e1(_0x56145d)),B(0x5,_0x37b5e1(_0x41f50e)),B(0x6,_0x37b5e1(H)),B(0x7,_0x470483),B(0x8,_0x3b4b60),B(0x9,_0x46ffbd),B(0xa,_0xa32c02),B(0xb,_0x450b7c),B(0xc,_0x3fb98b),B(0xd,_0x29c9af(U))],q);let J=dn=class extends G{constructor(_0x354914,_0x353f76,_0x339365,_0x3dc496,_0x523401,_0x1f351e,_0x2b2837,_0x2c46e3,_0x4510b9,_0x5364eb,_0x19e27d){const _0x2944f2=_0x128a93;super(_0x354914,_0x353f76,_0x339365,[],_0x3dc496,_0x2b2837,_0x5364eb,_0x1f351e,_0x19e27d),this[_0x2944f2(0x349)]=_0x523401,this[_0x2944f2(0x346)]=_0x2c46e3,this[_0x2944f2(0x247)]=_0x4510b9,R(this,_0x2944f2(0x2a9),_0x2944f2(0x221)),R(this,_0x2944f2(0x3c8),0x0),R(this,_0x2944f2(0x1da),0x0),R(this,_0x2944f2(0x15f),void 0x0),R(this,_0x2944f2(0x2f6),void 0x0);}['appendMutation'](_0x46bb7b){const _0x3b55c1=_0x128a93;this[_0x3b55c1(0x332)]();let _0x2af83b=this['_injector'][_0x3b55c1(0x279)](Y,this[_0x3b55c1(0x2d2)],this[_0x3b55c1(0x2b6)],this[_0x3b55c1(0x13b)],[_0x46bb7b],this[_0x3b55c1(0x2e5)],this['_resendTimer']);return _0x2af83b['_updateLocalCache'](),_0x2af83b;}[_0x128a93(0x162)](_0x1eb044){const _0x570676=_0x128a93;if(this[_0x570676(0x289)](_0x1eb044))return this['_clearScheduledTask'](),this['_injector'][_0x570676(0x279)](Q,this[_0x570676(0x2d2)],this[_0x570676(0x2b6)],this['_awaitingChangeset'],[],null,[_0x1eb044],this['_handler']);try{let _0x4c8495=this['_transformService'][_0x570676(0x22a)]([_0x1eb044],[this['_awaitingChangeset']],!0x1);if(_0x4680e5(_0x4c8495)){let {c1Prime:_0x308659,c2Prime:_0xff759}=_0x4c8495;this[_0x570676(0x2cc)](_0x308659[0x0]),_0xff759[0x0]['baseRev']=this[_0x570676(0x2b4)](),this[_0x570676(0x332)]();let _0x4577d2=this[_0x570676(0x349)][_0x570676(0x279)](dn,this[_0x570676(0x2d2)],this[_0x570676(0x2b6)],_0xff759[0x0],this['_handler']);return _0x4577d2[_0x570676(0x275)](),_0x4577d2;}throw _0x4c8495['error'];}catch(_0x12a074){return this[_0x570676(0x346)]['error'](_0x12a074),this['_onConflict'](!0x1);}}[_0x128a93(0x29c)](_0x5d3f39){const _0x196d1b=_0x128a93;this[_0x196d1b(0x332)]();let _0x3fbca2=this[_0x196d1b(0x2eb)]['getCurrentRevOfUnit'](this[_0x196d1b(0x2d2)]);if(_0x5d3f39[_0x196d1b(0x380)]<=_0x3fbca2)return this;if(this['_checkMissing'](_0x5d3f39))return this[_0x196d1b(0x349)][_0x196d1b(0x279)](Q,this[_0x196d1b(0x2d2)],this[_0x196d1b(0x2b6)],this[_0x196d1b(0x13b)],[],_0x5d3f39[_0x196d1b(0x380)],[],this['_handler']);this['_incrementRevisionNumber']();let _0xaf54ea=this[_0x196d1b(0x349)][_0x196d1b(0x279)](K,this[_0x196d1b(0x2d2)],this[_0x196d1b(0x2b6)],this['_handler']);return _0xaf54ea[_0x196d1b(0x275)](),_0xaf54ea;}[_0x128a93(0x2cf)](_0x8cf242){const _0x2f4eb3=_0x128a93;return this[_0x2f4eb3(0x1c4)](!!(_0x8cf242!=null&&_0x8cf242[_0x2f4eb3(0x307)]));}[_0x128a93(0x19b)](_0x2a719a){const _0x39e28e=_0x128a93;return this['_maxTotalRetryTimeout']>hn?this[_0x39e28e(0x24c)]():(this['_resendTimer']=ln(this[_0x39e28e(0x3c8)],{'timeout':this['_resendTimeout'],'reqId':_0x2a719a[_0x39e28e(0x211)]}),this[_0x39e28e(0x2f6)]=this[_0x39e28e(0x15f)]['subscribe'](({reqId:_0x2d0643,timeout:_0x104ce3})=>{const _0x898d8b=_0x39e28e;this[_0x898d8b(0x336)](_0x2d0643,_0x104ce3);}),this);}[_0x128a93(0x24c)](){const _0x4b36a1=_0x128a93;return this[_0x4b36a1(0x332)](),this[_0x4b36a1(0x349)][_0x4b36a1(0x279)](Z,this[_0x4b36a1(0x2d2)],this[_0x4b36a1(0x2b6)],this[_0x4b36a1(0x13b)],[],this[_0x4b36a1(0x2e5)]);}[_0x128a93(0x249)](){return this;}[_0x128a93(0x29f)](){const _0x182260=_0x128a93;this[_0x182260(0x2e5)][_0x182260(0x3a4)](this[_0x182260(0x13b)]);}['_onConflict'](_0x1f2084){const _0x3131c2=_0x128a93;return this[_0x3131c2(0x332)](),this[_0x3131c2(0x349)][_0x3131c2(0x279)](X,this[_0x3131c2(0x2d2)],this[_0x3131c2(0x2b6)],this[_0x3131c2(0x13b)],[],this[_0x3131c2(0x2e5)],_0x1f2084);}[_0x128a93(0x336)](_0x4b9e21,_0x425382){const _0x5217f9=_0x128a93;var _0xa2dd01;_0x4b9e21===((_0xa2dd01=this[_0x5217f9(0x13b)])==null?void 0x0:_0xa2dd01[_0x5217f9(0x211)])&&(this[_0x5217f9(0x29f)](),this[_0x5217f9(0x3c8)]=_0x425382===0x0?0x3e8:Math[_0x5217f9(0x3c1)](_0x425382*0x2,mn),this[_0x5217f9(0x1da)]+=this[_0x5217f9(0x3c8)]);}[_0x128a93(0x332)](){const _0x26b154=_0x128a93;var _0x32cdaf;(_0x32cdaf=this['_sender'])==null||_0x32cdaf[_0x26b154(0x3b9)](),this['_resendTimeout']=0x0,this[_0x26b154(0x1da)]=0x0;}};J=dn=V([B(0x4,_0x37b5e1(_0x56145d)),B(0x5,_0x37b5e1(_0x41f50e)),B(0x6,_0x3b4b60),B(0x7,_0x470483),B(0x8,_0xa32c02),B(0x9,_0x3fb98b),B(0xa,_0x29c9af(U))],J);let Y=fn=class extends G{constructor(_0x10e5ed,_0x56045,_0x5c3d2e,_0x2effe9,_0x8d27cf,_0x386c9d,_0x519b28,_0x478df8,_0xbcf17,_0x5bc354,_0x276a71,_0x39bac2,_0x2b4bdd){const _0x4d8c1c=_0x128a93;super(_0x10e5ed,_0x56045,_0x5c3d2e,_0x2effe9,_0x8d27cf,_0xbcf17,_0x39bac2,_0x478df8,_0x2b4bdd),this[_0x4d8c1c(0x349)]=_0x519b28,this['_logService']=_0x5bc354,this['_transformService']=_0x276a71,this[_0x4d8c1c(0x226)]=_0x2b4bdd,R(this,'status',_0x4d8c1c(0x3ad)),R(this,_0x4d8c1c(0x3c8),0x0),R(this,_0x4d8c1c(0x1da),0x0),R(this,_0x4d8c1c(0x15f),void 0x0),R(this,_0x4d8c1c(0x2f6),void 0x0),_0x386c9d&&(this[_0x4d8c1c(0x15f)]=_0x386c9d,this['_sender']=this[_0x4d8c1c(0x15f)][_0x4d8c1c(0x1eb)](({reqId:_0x5aaf79,timeout:_0x85e49})=>{const _0x9ddb78=_0x4d8c1c;this[_0x9ddb78(0x336)](_0x5aaf79,_0x85e49);}));}[_0x128a93(0x28c)](_0x58f9b1){const _0x10eb75=_0x128a93;return this[_0x10eb75(0x1de)][_0x10eb75(0x263)](_0x58f9b1),this;}[_0x128a93(0x162)](_0x21fd0b){const _0x17c7bc=_0x128a93;if(this[_0x17c7bc(0x289)](_0x21fd0b))return this['_clearScheduledTask'](),this[_0x17c7bc(0x349)]['createInstance'](Q,this['unitID'],this['type'],this['_awaitingChangeset'],this[_0x17c7bc(0x1de)],null,[_0x21fd0b],this[_0x17c7bc(0x2e5)]);try{let _0x2af506=this['_transformService'][_0x17c7bc(0x22a)]([_0x21fd0b],[this['_awaitingChangeset']],!0x1);if(_0x4680e5(_0x2af506)){let {c1Prime:_0x190081,c2Prime:_0x2f34b4}=_0x2af506,_0x645cfa=this[_0x17c7bc(0x247)][_0x17c7bc(0x1d7)](_0x190081[0x0],this[_0x17c7bc(0x1de)]);if(_0x25be66(_0x645cfa)){let {c1Prime:_0x2050a9,m2Prime:_0x526bf5}=_0x645cfa;return this[_0x17c7bc(0x2cc)](_0x2050a9),_0x2f34b4[0x0][_0x17c7bc(0x2f0)]=this['_getCurrentRevision'](),this[_0x17c7bc(0x332)](),this['_injector']['createInstance'](fn,this[_0x17c7bc(0x2d2)],this[_0x17c7bc(0x2b6)],_0x2f34b4[0x0],_0x526bf5,this[_0x17c7bc(0x2e5)],void 0x0);}throw _0x645cfa['error'];}throw _0x2af506['error'];}catch(_0x57f890){return this[_0x17c7bc(0x346)][_0x17c7bc(0x22c)](_0x57f890),this[_0x17c7bc(0x1c4)](!0x1);}}[_0x128a93(0x29c)](_0x3bf594){const _0x1e2efa=_0x128a93;this[_0x1e2efa(0x332)]();let _0x10cdc2=this[_0x1e2efa(0x2b4)]();if(_0x3bf594[_0x1e2efa(0x380)]<=_0x10cdc2)return this;if(this[_0x1e2efa(0x289)](_0x3bf594))return this[_0x1e2efa(0x349)][_0x1e2efa(0x279)](Q,this[_0x1e2efa(0x2d2)],this[_0x1e2efa(0x2b6)],this[_0x1e2efa(0x13b)],this['_pendingMutations'],_0x3bf594[_0x1e2efa(0x380)],[],this['_handler']);this[_0x1e2efa(0x25b)]();let _0x33ff6b=this['_injector'][_0x1e2efa(0x279)](q,this[_0x1e2efa(0x2d2)],this[_0x1e2efa(0x2b6)],this[_0x1e2efa(0x1de)],this['_handler']);return _0x33ff6b[_0x1e2efa(0x1e5)](),_0x33ff6b['_updateLocalCache'](),_0x33ff6b;}[_0x128a93(0x2cf)](_0x5d68a1){return this['_onConflict'](!!(_0x5d68a1!=null&&_0x5d68a1['isPermissionRej']));}[_0x128a93(0x19b)](_0x5c6164){const _0x2451d7=_0x128a93;return this[_0x2451d7(0x1da)]>hn?this[_0x2451d7(0x24c)]():(this[_0x2451d7(0x15f)]=ln(this[_0x2451d7(0x3c8)],{'timeout':this[_0x2451d7(0x3c8)],'reqId':_0x5c6164[_0x2451d7(0x211)]}),this[_0x2451d7(0x2f6)]=this[_0x2451d7(0x15f)][_0x2451d7(0x1eb)](({reqId:_0x596564,timeout:_0x5219ef})=>{this['_resendWithTimeout'](_0x596564,_0x5219ef);}),this);}[_0x128a93(0x24c)](){const _0x39358e=_0x128a93;return this['_clearScheduledTask'](),this[_0x39358e(0x349)][_0x39358e(0x279)](Z,this[_0x39358e(0x2d2)],this[_0x39358e(0x2b6)],this[_0x39358e(0x13b)],this[_0x39358e(0x1de)],this['_handler']);}[_0x128a93(0x249)](){return this;}[_0x128a93(0x29f)](){const _0x1a66a5=_0x128a93;this['_handler'][_0x1a66a5(0x3a4)](this[_0x1a66a5(0x13b)]);}[_0x128a93(0x1c4)](_0x59ac9a){const _0x2bc74c=_0x128a93;return this[_0x2bc74c(0x332)](),this[_0x2bc74c(0x349)]['createInstance'](X,this['unitID'],this['type'],null,this[_0x2bc74c(0x1de)],this[_0x2bc74c(0x2e5)],_0x59ac9a);}[_0x128a93(0x336)](_0x4994e7,_0x4043d6){const _0x4b8280=_0x128a93;var _0x2d4da0;_0x4994e7===((_0x2d4da0=this['_awaitingChangeset'])==null?void 0x0:_0x2d4da0[_0x4b8280(0x211)])&&(this[_0x4b8280(0x29f)](),this['_resendTimeout']=_0x4043d6===0x0?0x3e8:Math[_0x4b8280(0x3c1)](_0x4043d6*0x2,mn),this[_0x4b8280(0x1da)]+=this[_0x4b8280(0x3c8)]);}['_clearScheduledTask'](){const _0x2f997f=_0x128a93;var _0x5c681f;(_0x5c681f=this[_0x2f997f(0x2f6)])==null||_0x5c681f[_0x2f997f(0x3b9)](),this[_0x2f997f(0x3c8)]=0x0,this[_0x2f997f(0x1da)]=0x0;}};Y=fn=V([B(0x6,_0x37b5e1(_0x56145d)),B(0x7,_0x37b5e1(_0x41f50e)),B(0x8,_0x3b4b60),B(0x9,_0x470483),B(0xa,_0xa32c02),B(0xb,_0x3fb98b),B(0xc,_0x29c9af(U))],Y);let X=class extends G{constructor(_0x15a8ec,_0x23943c,_0x3b642b,_0x2e325c,_0x13dc42,_0x185662=!0x1,_0x20a603,_0x1554b6,_0x5cf22e,_0x1b1ba3,_0x1c5d6e,_0x3f0ef8,_0x89e7c3){const _0x43b8d0=_0x128a93;super(_0x15a8ec,_0x23943c,_0x3b642b,_0x2e325c,_0x13dc42,_0x1554b6,_0x5cf22e,_0x1b1ba3,_0x89e7c3),this[_0x43b8d0(0x17d)]=_0x185662,this[_0x43b8d0(0x2be)]=_0x20a603,this[_0x43b8d0(0x35f)]=_0x1c5d6e,this['_collaborationUIEventService']=_0x3f0ef8,this[_0x43b8d0(0x226)]=_0x89e7c3,R(this,_0x43b8d0(0x2a9),_0x43b8d0(0x20b)),this[_0x43b8d0(0x1df)](),this[_0x43b8d0(0x295)](),this[_0x43b8d0(0x361)]();}[_0x128a93(0x28c)](){return this;}[_0x128a93(0x162)](){return this;}[_0x128a93(0x29c)](){return this;}[_0x128a93(0x2cf)](){return this;}[_0x128a93(0x19b)](){return this;}[_0x128a93(0x24c)](){return this;}[_0x128a93(0x249)](){return this;}[_0x128a93(0x29f)](){const _0x1a6901=_0x128a93;throw Error(_0x1a6901(0x272));}[_0x128a93(0x295)](){const _0xe36d1a=_0x128a93;var _0x351f0d,_0x3ee655,_0x1730fc;(_0x351f0d=this[_0xe36d1a(0x1fe)])==null||(_0x3ee655=_0x351f0d['backupOfflineData'])==null||(_0x3ee655=_0x3ee655[_0xe36d1a(0x214)](_0x351f0d,this[_0xe36d1a(0x2d2)],_0xe36d1a(0x20b)))==null||_0x3ee655[_0xe36d1a(0x296)](()=>void 0x0),(_0x1730fc=this[_0xe36d1a(0x1fe)])==null||_0x1730fc[_0xe36d1a(0x3cb)](this[_0xe36d1a(0x2d2)],this[_0xe36d1a(0x2b6)],null,[]);}[_0x128a93(0x1df)](){const _0xd4cdee=_0x128a93;this[_0xd4cdee(0x17d)]?this[_0xd4cdee(0x30c)][_0xd4cdee(0x173)]({'id':_0xd4cdee(0x28b)}):this[_0xd4cdee(0x30c)][_0xd4cdee(0x173)]({'id':_0xd4cdee(0x316)});}[_0x128a93(0x361)](){const _0x51b71f=_0x128a93;this[_0x51b71f(0x2be)][_0x51b71f(0x197)](new _0x1283c2(this[_0x51b71f(0x2d2)])['id'],!0x1);}};X=V([B(0x6,_0x37b5e1(_0x511b30)),B(0x7,_0x3b4b60),B(0x8,_0x3fb98b),B(0x9,_0x37b5e1(_0x41f50e)),B(0xa,_0x37b5e1(_0x5ae389)),B(0xb,_0x37b5e1(z)),B(0xc,_0x29c9af(U))],X);let Z=class extends G{constructor(_0x4e3c7c,_0x1a19e4,_0x414f4c,_0x266842,_0x5ed5e1,_0x2c1874,_0x20b4cd,_0x1c971a,_0x5187b0,_0x226550){const _0x1e2304=_0x128a93;super(_0x4e3c7c,_0x1a19e4,_0x414f4c,_0x266842,_0x5ed5e1,_0x1c971a,_0x5187b0,_0x20b4cd,_0x226550),this[_0x1e2304(0x349)]=_0x2c1874,R(this,_0x1e2304(0x2a9),_0x1e2304(0x2c7));}[_0x128a93(0x28c)](_0x4acaf6){const _0x311032=_0x128a93;return this[_0x311032(0x1de)][_0x311032(0x263)](_0x4acaf6),this[_0x311032(0x275)](),this;}[_0x128a93(0x162)](_0x12dc26){const _0x696c2d=_0x128a93;throw Error(_0x696c2d(0x391));}[_0x128a93(0x29c)](){throw Error('[OfflineState]:\x20received\x20acknowledgement.');}[_0x128a93(0x2cf)](){const _0x480d4f=_0x128a93;throw Error(_0x480d4f(0x26b));}[_0x128a93(0x19b)](){return this;}[_0x128a93(0x24c)](){return this;}['toggleOnline'](){const _0x1e322a=_0x128a93;let {_injector:_0x307a19,_pendingMutations:_0x5d8b5e,_awaitingChangeset:_0x4f76f9,unitID:_0x4fbde8,_handler:_0x5696b0,type:_0x3357af}=this,_0x143c3f=gn(_0x307a19,_0x4fbde8,_0x3357af,_0x4f76f9,_0x5d8b5e,_0x5696b0);return _0x143c3f instanceof q?_0x143c3f['_schedule']():(_0x143c3f instanceof Y||_0x143c3f instanceof J)&&_0x143c3f[_0x1e322a(0x29f)](),_0x143c3f;}['resend'](){const _0x305eb6=_0x128a93;throw Error(_0x305eb6(0x21c));}};Z=V([B(0x5,_0x37b5e1(_0x56145d)),B(0x6,_0x37b5e1(_0x41f50e)),B(0x7,_0x3b4b60),B(0x8,_0x3fb98b),B(0x9,_0x29c9af(U))],Z);let Q=class extends G{constructor(_0x49ca94,_0x22be2a,_0x183b84,_0x58fae0,_0x39f666,_0x57f7d2,_0x2afd79,_0x3f19e9,_0x233d7e,_0x53f692,_0x30fda4,_0x390545,_0x86a84,_0x2cad4e){const _0x4670bd=_0x128a93;super(_0x49ca94,_0x22be2a,_0x183b84,_0x58fae0,_0x2afd79,_0x30fda4,_0x390545,_0x233d7e,_0x2cad4e),this[_0x4670bd(0x38e)]=_0x39f666,this[_0x4670bd(0x244)]=_0x57f7d2,this[_0x4670bd(0x349)]=_0x3f19e9,this[_0x4670bd(0x346)]=_0x53f692,this['_transformService']=_0x86a84,this[_0x4670bd(0x226)]=_0x2cad4e,R(this,'status',_0x4670bd(0x34c));}['onMissedChangesetFetched'](_0xd2d819){const _0x1ac4eb=_0x128a93;try{if(this[_0x1ac4eb(0x158)](_0xd2d819)[_0x1ac4eb(0x2aa)])throw Error(_0x1ac4eb(0x2c5));if(this[_0x1ac4eb(0x158)]([...this[_0x1ac4eb(0x244)]][_0x1ac4eb(0x30d)]((_0x12cd85,_0x1e871a)=>_0x12cd85[_0x1ac4eb(0x380)]-_0x1e871a[_0x1ac4eb(0x380)]))['missingChangesets'])return this['_queuedRemoteChangesets']=[],this[_0x1ac4eb(0x275)](),this[_0x1ac4eb(0x2e5)][_0x1ac4eb(0x15c)]({'from':this[_0x1ac4eb(0x2b4)](),'to':0x0}),this;let _0x3d4ff7=this[_0x1ac4eb(0x13b)],_0x51e622=this[_0x1ac4eb(0x1de)],_0x484540;if(_0x3d4ff7&&_0x51e622[_0x1ac4eb(0x2c4)]!==0x0)_0x484540=this[_0x1ac4eb(0x349)]['createInstance'](Y,this[_0x1ac4eb(0x2d2)],this[_0x1ac4eb(0x2b6)],_0x3d4ff7,_0x51e622,this['_handler'],void 0x0);else{if(_0x3d4ff7&&_0x51e622[_0x1ac4eb(0x2c4)]===0x0)_0x3d4ff7[_0x1ac4eb(0x2f0)]=this[_0x1ac4eb(0x2b4)](),_0x484540=this['_injector'][_0x1ac4eb(0x279)](J,this[_0x1ac4eb(0x2d2)],this['type'],_0x3d4ff7,this['_handler']);else{if(_0x51e622[_0x1ac4eb(0x2c4)]!==0x0){let _0x110c74=this[_0x1ac4eb(0x349)]['createInstance'](q,this[_0x1ac4eb(0x2d2)],this['type'],_0x51e622,this['_handler']);_0x110c74['_schedule'](),_0x484540=_0x110c74;}else _0x484540=this[_0x1ac4eb(0x349)][_0x1ac4eb(0x279)](K,this['unitID'],this[_0x1ac4eb(0x2b6)],this[_0x1ac4eb(0x2e5)]);}}return _0x484540[_0x1ac4eb(0x275)](),_0x484540;}catch(_0x1b1692){return this[_0x1ac4eb(0x346)][_0x1ac4eb(0x22c)](_0x1ac4eb(0x375),_0x1ac4eb(0x3ba),_0x1b1692),this[_0x1ac4eb(0x349)][_0x1ac4eb(0x279)](X,this[_0x1ac4eb(0x2d2)],this['type'],this['_awaitingChangeset'],this[_0x1ac4eb(0x1de)],this[_0x1ac4eb(0x2e5)],!0x1);}}[_0x128a93(0x158)](_0x5eb277){const _0x41e3bd=_0x128a93;this[_0x41e3bd(0x2c3)]();for(let _0x46333a=0x0;_0x46333a<_0x5eb277['length'];_0x46333a++){let _0x37c83b=_0x5eb277[_0x46333a],_0x5ae501=this['_getCurrentRevision']();if(!(_0x37c83b[_0x41e3bd(0x380)]<=_0x5ae501)){if(_0x37c83b['revision']>_0x5ae501+0x1)return{'missingChangesets':!0x0};if(this['_isEchoedAwaitingChangeset'](_0x37c83b)){this['_acknowledgeAwaiting']();continue;}this[_0x41e3bd(0x303)](_0x37c83b),this[_0x41e3bd(0x2c3)]();}}return{'missingChangesets':!0x1};}[_0x128a93(0x303)](_0x30110d){const _0x2fc828=_0x128a93;let _0xd3b315=_0x30110d,_0x4805cc=this[_0x2fc828(0x13b)];if(_0x4805cc){let _0x565a00=this[_0x2fc828(0x247)][_0x2fc828(0x22a)]([_0x30110d],[_0x4805cc],!0x1);if(!_0x4680e5(_0x565a00))throw _0x565a00[_0x2fc828(0x22c)];_0xd3b315=_0x565a00[_0x2fc828(0x2a4)][0x0],_0x4805cc=_0x565a00['c2Prime'][0x0];}let _0x5d7f4b=this[_0x2fc828(0x1de)];if(_0x5d7f4b['length']){let _0x1d4bc1=this['_transformService'][_0x2fc828(0x1d7)](_0xd3b315,_0x5d7f4b);if(!_0x25be66(_0x1d4bc1))throw _0x1d4bc1[_0x2fc828(0x22c)];_0xd3b315=_0x1d4bc1['c1Prime'],_0x5d7f4b=_0x1d4bc1['m2Prime'];}this['_executeRemoteChangeset'](_0xd3b315),_0x4805cc&&(_0x4805cc[_0x2fc828(0x2f0)]=this[_0x2fc828(0x2b4)]()),this[_0x2fc828(0x13b)]=_0x4805cc,this['_pendingMutations']=_0x5d7f4b;}[_0x128a93(0x2c3)](){const _0x3eab8c=_0x128a93;if(!this['_awaitingChangeset']||this[_0x3eab8c(0x38e)]==null)return;let _0x7df3f5=this[_0x3eab8c(0x2b4)]();if(this[_0x3eab8c(0x38e)]<=_0x7df3f5)throw Error(_0x3eab8c(0x242)+this[_0x3eab8c(0x38e)]+'.');this[_0x3eab8c(0x38e)]===_0x7df3f5+0x1&&this[_0x3eab8c(0x3d4)]();}[_0x128a93(0x3d4)](){const _0x298401=_0x128a93;this[_0x298401(0x25b)](),this[_0x298401(0x13b)]=null,this[_0x298401(0x38e)]=null;}[_0x128a93(0x2a0)](_0x3434d3){const _0x12c39c=_0x128a93;let _0x3bedf1=this[_0x12c39c(0x13b)];return!_0x3bedf1||!_0x3bedf1[_0x12c39c(0x21f)]||_0x3bedf1[_0x12c39c(0x211)]===null||_0x3bedf1[_0x12c39c(0x211)]===void 0x0?!0x1:_0x3434d3['unitID']===_0x3bedf1[_0x12c39c(0x2d2)]&&_0x3434d3[_0x12c39c(0x21f)]===_0x3bedf1[_0x12c39c(0x21f)]&&_0x3434d3['reqId']===_0x3bedf1[_0x12c39c(0x211)];}[_0x128a93(0x29f)](){const _0x200576=_0x128a93;throw Error(_0x200576(0x392));}[_0x128a93(0x28c)](_0x111508){const _0xe2b1cd=_0x128a93;return this[_0xe2b1cd(0x1de)][_0xe2b1cd(0x263)](_0x111508),this;}[_0x128a93(0x162)](_0x157031){const _0xebe187=_0x128a93;return this[_0xebe187(0x244)][_0xebe187(0x263)](_0x157031),this;}['onRemoteAck'](_0x3bbcc2){const _0x5237fd=_0x128a93;if(this['_awaitingChangeset']){let _0x4b3c3c=this[_0x5237fd(0x2b4)]();return _0x3bbcc2[_0x5237fd(0x380)]<=_0x4b3c3c||(_0x4b3c3c+0x1===_0x3bbcc2['revision']?(this[_0x5237fd(0x25b)](),this[_0x5237fd(0x13b)]=null,this[_0x5237fd(0x38e)]=null):this[_0x5237fd(0x38e)]=_0x3bbcc2[_0x5237fd(0x380)]),this;}if(_0x3bbcc2['revision']<=this[_0x5237fd(0x2b4)]())return this;throw Error(_0x5237fd(0x1c0));}[_0x128a93(0x2cf)](_0x7795e2){const _0x1150c1=_0x128a93;return this[_0x1150c1(0x1c4)](!!(_0x7795e2!=null&&_0x7795e2['isPermissionRej']));}['onRemoteRetry'](){return this;}[_0x128a93(0x24c)](){const _0x4c01a5=_0x128a93;return this['_injector'][_0x4c01a5(0x279)](Z,this[_0x4c01a5(0x2d2)],this['type'],this['_awaitingChangeset'],this[_0x4c01a5(0x1de)],this[_0x4c01a5(0x2e5)]);}[_0x128a93(0x249)](){return this;}[_0x128a93(0x1c4)](_0x3d6651){const _0x4d6cdf=_0x128a93;return this[_0x4d6cdf(0x349)][_0x4d6cdf(0x279)](X,this[_0x4d6cdf(0x2d2)],this['type'],this['_awaitingChangeset'],this[_0x4d6cdf(0x1de)],this[_0x4d6cdf(0x2e5)],_0x3d6651);}};Q=V([B(0x7,_0x37b5e1(_0x56145d)),B(0x8,_0x37b5e1(_0x41f50e)),B(0x9,_0x470483),B(0xa,_0x3b4b60),B(0xb,_0x3fb98b),B(0xc,_0xa32c02),B(0xd,_0x29c9af(U))],Q);function gn(_0x5384fa,_0x3b1088,_0x2f2d46,_0x5ccd10,_0x562808,_0x54a2b2){const _0x420b16=_0x128a93;return _0x5ccd10&&_0x562808[_0x420b16(0x2c4)]?_0x5384fa[_0x420b16(0x279)](Y,_0x3b1088,_0x2f2d46,_0x5ccd10,_0x562808,_0x54a2b2,void 0x0):_0x5ccd10?_0x5384fa['createInstance'](J,_0x3b1088,_0x2f2d46,_0x5ccd10,_0x54a2b2):_0x562808['length']?_0x5384fa[_0x420b16(0x279)](q,_0x3b1088,_0x2f2d46,_0x562808,_0x54a2b2):_0x5384fa[_0x420b16(0x279)](K,_0x3b1088,_0x2f2d46,_0x54a2b2);}let $=class extends _0x738f09{get[_0x128a93(0x3bf)](){return this['_state'];}constructor(_0x4dc23a,_0x1eb7f8,_0x3eebaa,_0x383046,_0xbcd84a,_0x1d77e9,_0x4f688d,_0x4f9711,_0x11c3a5,_0x2247e0,_0x5a9db4,_0x4604cc,_0x300394,_0x4fd337){const _0x152e6b=_0x128a93;super(),this['unitID']=_0x4dc23a,this[_0x152e6b(0x207)]=_0x1eb7f8,this[_0x152e6b(0x166)]=_0x3eebaa,this['_injector']=_0x383046,this[_0x152e6b(0x25f)]=_0xbcd84a,this['_localeService']=_0x1d77e9,this[_0x152e6b(0x2eb)]=_0x4f688d,this[_0x152e6b(0x1c8)]=_0x4f9711,this['_univerInstanceService']=_0x11c3a5,this[_0x152e6b(0x346)]=_0x2247e0,this[_0x152e6b(0x3a7)]=_0x5a9db4,this[_0x152e6b(0x2be)]=_0x4604cc,this[_0x152e6b(0x3b3)]=_0x300394,this['_localCacheService']=_0x4fd337,R(this,_0x152e6b(0x3cf),new _0x4e690d(null)),R(this,_0x152e6b(0x241),this[_0x152e6b(0x3cf)][_0x152e6b(0x1a1)]()),R(this,_0x152e6b(0x1e8),void 0x0),R(this,_0x152e6b(0x21b),!0x1),R(this,_0x152e6b(0x18e),''),R(this,_0x152e6b(0x3a6),0x0),R(this,'status$',this[_0x152e6b(0x241)][_0x152e6b(0x190)](_0x30823e(_0x1b2800=>_0x1b2800?_0x1b2800[_0x152e6b(0x2a9)]:_0x152e6b(0x2c7)),_0xa2739d({'bufferSize':0x1,'refCount':!0x0}))),R(this,_0x152e6b(0x29b),!0x1),R(this,'_remoteChangesetQueue',[]);}async[_0x128a93(0x308)](){const _0x33c31d=_0x128a93;if(this['state'])throw Error('[CollaborationEntity]:\x20initial\x20state\x20has\x20been\x20created\x20before.\x20You\x20should\x20not\x20call\x20\x22init\x22\x20twice.');await this[_0x33c31d(0x2d4)]();}[_0x128a93(0x3d9)](){const _0x586007=_0x128a93;return this[_0x586007(0x21b)]=!0x0,_0x2296ca(()=>{const _0xaf1451=_0x586007;this[_0xaf1451(0x21b)]=!0x1,this[_0xaf1451(0x385)]();});}[_0x128a93(0x34f)](_0x123460){const _0x2de1a1=_0x128a93;this[_0x2de1a1(0x177)](_0x123460);}[_0x128a93(0x2e3)](_0x53d22f){const _0x59f920=_0x128a93;this[_0x59f920(0x1e8)]=_0x53d22f,this[_0x59f920(0x3cf)][_0x59f920(0x1d9)](_0x53d22f);}async[_0x128a93(0x2d4)](){const _0x4cae35=_0x128a93;if(this[_0x4cae35(0x2e3)](await this[_0x4cae35(0x266)]()),this[_0x4cae35(0x3b3)]){var _0x513dcb;(_0x513dcb=this[_0x4cae35(0x3b3)])==null||_0x513dcb[_0x4cae35(0x183)](this['unitID']),this[_0x4cae35(0x2ef)](this[_0x4cae35(0x3b3)][_0x4cae35(0x301)](this[_0x4cae35(0x2d2)])[_0x4cae35(0x1eb)](_0xcbb6c4=>{const _0x11c1f2=_0x4cae35;this[_0x11c1f2(0x346)][_0x11c1f2(0x284)]('[CollaborationEntity]',_0x11c1f2(0x34b),_0xcbb6c4),_0xcbb6c4===0x1?(this[_0x11c1f2(0x1c8)][_0x11c1f2(0x173)]({'id':_0x11c1f2(0x353)}),this[_0x11c1f2(0x2be)]['updatePermissionPoint'](new _0x1283c2(this[_0x11c1f2(0x2d2)])['id'],!0x1),this[_0x11c1f2(0x2be)]['setShowComponents'](!0x1)):(this['_permissionService'][_0x11c1f2(0x197)](new _0x1283c2(this['unitID'])['id'],!0x0),this['_permissionService'][_0x11c1f2(0x357)](!0x0));}));}let _0x3637d1=!0x1;return this['disposeWithMe'](this[_0x4cae35(0x207)][_0x4cae35(0x206)][_0x4cae35(0x1eb)](_0xb6b353=>{const _0x1b349c=_0x4cae35;_0xb6b353===0x3?this['_toggleOnline'](_0x3637d1):_0xb6b353===0x2&&(_0x3637d1=!0x0,this[_0x1b349c(0x1dd)]());})),this['disposeWithMe'](this['session'][_0x4cae35(0x160)][_0x4cae35(0x1eb)](_0x1b807a=>{const _0x13b890=_0x4cae35;try{switch(_0x1b807a['eventID']){case _0x17c782[_0x13b890(0x2d8)]:this[_0x13b890(0x19d)](_0x599160(_0x1b807a[_0x13b890(0x204)]));break;case _0x17c782['CHANGESET_ACK']:this[_0x13b890(0x181)](_0x1b807a[_0x13b890(0x204)]);break;case _0x17c782['CHANGESET_REJ']:this[_0x13b890(0x170)]();break;case _0x17c782['CHANGESET_SHOULD_RETRY']:this[_0x13b890(0x140)](_0x1b807a[_0x13b890(0x204)]);break;case _0x17c782[_0x13b890(0x16e)]:this[_0x13b890(0x1d6)](_0x1b807a[_0x13b890(0x204)][_0x13b890(0x16a)]['map'](_0x1d0adc=>_0x599160(_0x1d0adc)));break;case _0x17c782[_0x13b890(0x315)]:this[_0x13b890(0x170)]({'isPermissionRej':!0x0});break;case _0x17c782[_0x13b890(0x293)]:break;}}catch(_0x4c260e){throw console[_0x13b890(0x22c)](_0x13b890(0x1ec),_0x4c260e),_0x4c260e;}})),this[_0x4cae35(0x1e8)];}['_unlockTransition'](){const _0x144d00=_0x128a93;this[_0x144d00(0x29b)]=!0x1;}[_0x128a93(0x387)](){const _0x48aeef=_0x128a93;if(this[_0x48aeef(0x29b)])throw Error(_0x48aeef(0x29e));this[_0x48aeef(0x29b)]=!0x0;}[_0x128a93(0x177)](_0x206d6d){const _0x2fc839=_0x128a93;this['_lockTransition'](),this['_updateState'](this[_0x2fc839(0x1e8)]['appendMutation'](_0x206d6d)),this[_0x2fc839(0x13f)]();}[_0x128a93(0x19d)](_0x493743){const _0x26ade8=_0x128a93;if(!(_0x493743[_0x26ade8(0x380)]<=this[_0x26ade8(0x2eb)][_0x26ade8(0x235)](this['unitID']))){if(this[_0x26ade8(0x21b)]){this[_0x26ade8(0x1a7)][_0x26ade8(0x263)](_0x493743);return;}this[_0x26ade8(0x239)](_0x493743);}}['_exhaustRemoteChangesetQueue'](){const _0x6f73e3=_0x128a93;this['_remoteChangesetQueue'][_0x6f73e3(0x3b6)](_0x34232e=>this[_0x6f73e3(0x239)](_0x34232e)),this['_remoteChangesetQueue']=[];}[_0x128a93(0x239)](_0x3809b1){const _0x1a0c39=_0x128a93;let _0x180f46=this['_compressMutationService']['interceptor'][_0x1a0c39(0x38a)](this[_0x1a0c39(0x25f)][_0x1a0c39(0x1d0)][_0x1a0c39(0x223)]()[_0x1a0c39(0x268)])(_0x3809b1[_0x1a0c39(0x36c)],null)||_0x3809b1[_0x1a0c39(0x36c)],_0x335b03={..._0x3809b1,'mutations':_0x180f46};this[_0x1a0c39(0x387)](),this['_updateState'](this[_0x1a0c39(0x1e8)][_0x1a0c39(0x162)](_0x335b03)),this['_unlockTransition']();}[_0x128a93(0x181)](_0x3a76ad){const _0x30b769=_0x128a93;this[_0x30b769(0x387)](),this[_0x30b769(0x2e3)](this[_0x30b769(0x1e8)][_0x30b769(0x29c)](_0x3a76ad)),this[_0x30b769(0x13f)]();}[_0x128a93(0x170)](_0x53e57e){const _0x506c0b=_0x128a93;this['_lockTransition'](),this[_0x506c0b(0x2e3)](this[_0x506c0b(0x1e8)][_0x506c0b(0x2cf)](_0x53e57e)),this[_0x506c0b(0x13f)]();}[_0x128a93(0x140)](_0x560fff){const _0x2df15b=_0x128a93;this['_lockTransition'](),this['_updateState'](this['_state'][_0x2df15b(0x19b)](_0x560fff)),this['_unlockTransition']();}[_0x128a93(0x1d6)](_0x5b89a0){const _0x48ae01=_0x128a93;if(!(this[_0x48ae01(0x1e8)]instanceof Q))throw TypeError('[CollaborationEntity]:\x20cannot\x20apply\x20missing\x20results\x20on\x20other\x20states!');let _0x3c216b=_0x5b89a0[_0x48ae01(0x24e)](_0x10c2f5=>{const _0x1a6d99=_0x48ae01;let _0x65c3fb=this[_0x1a6d99(0x25f)]['interceptor'][_0x1a6d99(0x38a)](this[_0x1a6d99(0x25f)][_0x1a6d99(0x1d0)][_0x1a6d99(0x223)]()[_0x1a6d99(0x268)])(_0x10c2f5[_0x1a6d99(0x36c)],null)||_0x10c2f5[_0x1a6d99(0x36c)];return{..._0x10c2f5,'mutations':_0x65c3fb};});this[_0x48ae01(0x387)](),this[_0x48ae01(0x2e3)](this['_state'][_0x48ae01(0x2d0)](_0x3c216b)),this[_0x48ae01(0x13f)]();}[_0x128a93(0x1dd)](){const _0x469d3a=_0x128a93;this[_0x469d3a(0x387)](),this[_0x469d3a(0x2e3)](this[_0x469d3a(0x1e8)]['toggleOffline']()),this[_0x469d3a(0x13f)]();}[_0x128a93(0x172)](_0x41520d=!0x1){const _0x4f9e74=_0x128a93;this['_lockTransition'](),this[_0x4f9e74(0x2e3)](this[_0x4f9e74(0x1e8)][_0x4f9e74(0x249)]()),this[_0x4f9e74(0x13f)]();let _0x2703a2=this[_0x4f9e74(0x1e8)];_0x41520d&&_0x2703a2 instanceof K&&(this['_lockTransition'](),this[_0x4f9e74(0x2e3)](_0x2703a2[_0x4f9e74(0x350)]()),this['_unlockTransition']());}async[_0x128a93(0x266)](){return new Promise(_0x208946=>{const _0x43af64=_0x1478;this['session'][_0x43af64(0x206)][_0x43af64(0x190)](_0x2611e8(0x1))[_0x43af64(0x1eb)](async _0x39e560=>{const _0x5cb3b8=_0x43af64;_0x208946(await this[_0x5cb3b8(0x2d5)](_0x39e560===0x3));});});}[_0x128a93(0x157)](){const _0x71eb52=_0x128a93;let _0x27f213=this[_0x71eb52(0x2d2)];return{'onStateChange':(_0x21edf3,_0x2909ec)=>{const _0x941dba=_0x71eb52;if(_0x21edf3!==this[_0x941dba(0x1e8)])throw Error('[CollaborationEntity]:\x20invalid\x20state\x20transition!\x20State\x20transferred\x20from\x20is\x20not\x20the\x20current\x20state.\x0aBefore:\x20'+_0x21edf3[_0x941dba(0x2a9)]+_0x941dba(0x2a3)+_0x2909ec['status']+_0x941dba(0x399)+this['_state'][_0x941dba(0x2a9)]);this[_0x941dba(0x2e3)](_0x2909ec);},'onSendChangeset':_0x3e0ad7=>{const _0x24b8b3=_0x71eb52;_0x3e0ad7[_0x24b8b3(0x21f)]||(_0x3e0ad7[_0x24b8b3(0x21f)]=this[_0x24b8b3(0x18e)],_0x3e0ad7[_0x24b8b3(0x211)]=++this[_0x24b8b3(0x3a6)]);let _0x527d21={'eventID':_0x17c782[_0x24b8b3(0x328)],'data':{'unitID':_0x3e0ad7[_0x24b8b3(0x2d2)],'unitType':this['_type'],'changeset':_0x3e0ad7,'memberID':this[_0x24b8b3(0x207)][_0x24b8b3(0x2bb)]()}};this['session'][_0x24b8b3(0x317)](_0x527d21,this[_0x24b8b3(0x2d2)]);},'onMissingChangesets':({from:_0x4210a2,to:_0x467d5c})=>{const _0x5d0115=_0x71eb52;this[_0x5d0115(0x346)]['debug'](_0x5d0115(0x341),_0x5d0115(0x3c3)+_0x4210a2+'\x20to\x20'+_0x467d5c);let _0x39d958={'eventID':_0x17c782['FETCH_MISSING'],'data':{'unitID':_0x27f213,'unitType':this['_type'],'from':_0x4210a2,'to':_0x467d5c}};this[_0x5d0115(0x207)][_0x5d0115(0x317)](_0x39d958,this[_0x5d0115(0x2d2)]);}};}async[_0x128a93(0x2d5)](_0x38ec3f){const _0x2fcf20=_0x128a93;var _0x3800b5,_0x54d011,_0xabaf1f;let _0x3a50d7=await((_0x3800b5=this[_0x2fcf20(0x1fe)])==null?void 0x0:_0x3800b5[_0x2fcf20(0x1cd)](this[_0x2fcf20(0x2d2)])),_0x47a860=(_0x54d011=_0x3a50d7==null?void 0x0:_0x3a50d7['mutations'])==null?[]:_0x54d011,_0x18658b=(_0xabaf1f=_0x3a50d7==null?void 0x0:_0x3a50d7[_0x2fcf20(0x1f1)])==null?null:_0xabaf1f,_0x946a1f=!!(_0x18658b!=null&&_0x18658b[_0x2fcf20(0x21f)])&&!!(_0x18658b!=null&&_0x18658b[_0x2fcf20(0x211)]);this['_changesetSessionId']=_0x946a1f?_0x18658b[_0x2fcf20(0x21f)]:_0x48aba6(),this[_0x2fcf20(0x3a6)]=_0x946a1f?_0x18658b[_0x2fcf20(0x211)]:0x0;let _0x4400d7=this[_0x2fcf20(0x2d2)];try{this[_0x2fcf20(0x13d)](_0x18658b,_0x47a860);}catch(_0x4e06b5){this[_0x2fcf20(0x346)]['error'](_0x4e06b5);}let _0xfb21a4=this[_0x2fcf20(0x157)]();if(_0x38ec3f){let _0x443e9d=gn(this[_0x2fcf20(0x349)],_0x4400d7,this[_0x2fcf20(0x166)],_0x18658b,_0x47a860,_0xfb21a4);return _0x443e9d instanceof q?_0x443e9d['_schedule']():(_0x443e9d instanceof Y||_0x443e9d instanceof J)&&_0x443e9d[_0x2fcf20(0x29f)](),_0x443e9d;}return this[_0x2fcf20(0x349)][_0x2fcf20(0x279)](Z,_0x4400d7,this[_0x2fcf20(0x166)],_0x18658b,_0x47a860,_0xfb21a4);}['_replayCachedMutations'](_0x2f70f2,_0x52aa98){const _0x3c6a3f=_0x128a93;var _0x9f4752,_0x13d520;let _0x51016e=this['_compressMutationService'][_0x3c6a3f(0x1d0)][_0x3c6a3f(0x38a)](this[_0x3c6a3f(0x25f)]['interceptor'][_0x3c6a3f(0x223)]()['COMPRESS_MUTATION_APPLY']);(_0x9f4752=_0x51016e((_0x2f70f2==null?void 0x0:_0x2f70f2[_0x3c6a3f(0x36c)])||[],null))==null||_0x9f4752[_0x3c6a3f(0x3b6)](_0x3c9399=>this[_0x3c6a3f(0x3a7)][_0x3c6a3f(0x1e0)](_0x3c9399['id'],_0x3c9399['params'])),(_0x13d520=_0x51016e(_0x52aa98||[],null))==null||_0x13d520[_0x3c6a3f(0x3b6)](_0x496b90=>this[_0x3c6a3f(0x3a7)][_0x3c6a3f(0x1e0)](_0x496b90['id'],_0x496b90['params']));}};$=V([B(0x3,_0x37b5e1(_0x56145d)),B(0x4,_0x37b5e1(_0x2c8338)),B(0x5,_0x37b5e1(_0x5ae389)),B(0x6,_0x37b5e1(_0x41f50e)),B(0x7,_0x37b5e1(z)),B(0x8,_0x450b7c),B(0x9,_0x470483),B(0xa,_0x3b4b60),B(0xb,_0x511b30),B(0xc,_0x29c9af(W)),B(0xd,_0x29c9af(U))],$);let _n=class extends ${constructor(_0x17907a,_0x3db338,_0x50e7a0,_0x32f697,_0x59ac2d,_0x1c100d,_0x14d4ee,_0x312766,_0x4e1c4c,_0x27372e,_0x18e109,_0x232504,_0x2cc3c0,_0xada028,_0x4dc465){const _0x2aa395=_0x128a93;super(_0x17907a,_0x50e7a0,_0x3db338,_0x32f697,_0x59ac2d,_0x1c100d,_0x14d4ee,_0x312766,_0x4e1c4c,_0x27372e,_0x18e109,_0x232504,_0xada028,_0x4dc465),this[_0x2aa395(0x2d2)]=_0x17907a,this[_0x2aa395(0x2b6)]=_0x3db338,this[_0x2aa395(0x1bd)]=_0x2cc3c0,R(this,_0x2aa395(0x264),null);}['addHandlerCallback'](_0x52645b){const _0x416500=_0x128a93;this[_0x416500(0x264)]=_0x52645b;}[_0x128a93(0x358)](){const _0x40573a=_0x128a93;this[_0x40573a(0x264)]=null,super['dispose']();}[_0x128a93(0x157)](){const _0x1ec574=_0x128a93;let _0x58972d=super[_0x1ec574(0x157)]();return _0x58972d[_0x1ec574(0x2a1)]=_0xa656b9=>{const _0x903952=_0x1ec574;var _0x2f11a2,_0x46f25e;return(_0x2f11a2=this[_0x903952(0x264)])==null||(_0x46f25e=_0x2f11a2[_0x903952(0x2a1)])==null?void 0x0:_0x46f25e[_0x903952(0x214)](_0x2f11a2,_0xa656b9);},_0x58972d[_0x1ec574(0x236)]=_0xd645d2=>{const _0xb03402=_0x1ec574;var _0x3466b7,_0x2b3f5f;return(_0x3466b7=this[_0xb03402(0x264)])==null||(_0x2b3f5f=_0x3466b7[_0xb03402(0x236)])==null?void 0x0:_0x2b3f5f[_0xb03402(0x214)](_0x3466b7,_0xd645d2);},_0x58972d['onTransformSelections']=_0x893bba=>{const _0x3ec81c=_0x1ec574;var _0x326449,_0x15faf4;return(_0x326449=this[_0x3ec81c(0x264)])==null||(_0x15faf4=_0x326449['onTransformSelections'])==null?void 0x0:_0x15faf4[_0x3ec81c(0x214)](_0x326449,_0x893bba);},_0x58972d[_0x1ec574(0x2df)]=_0x4c5201=>{const _0x479b82=_0x1ec574;var _0xe44756,_0x938bbe;return(_0xe44756=this['_handlerCallback'])==null||(_0x938bbe=_0xe44756[_0x479b82(0x2df)])==null?void 0x0:_0x938bbe[_0x479b82(0x214)](_0xe44756,_0x4c5201);},_0x58972d['onTransformRemoteChangesetByIMECache']=_0x14e219=>{const _0x5c563a=_0x1ec574;var _0x273d56,_0xfb471,_0x3918f8;return(_0x273d56=(_0xfb471=this['_handlerCallback'])==null||(_0x3918f8=_0xfb471[_0x5c563a(0x333)])==null?void 0x0:_0x3918f8['call'](_0xfb471,_0x14e219))==null?_0x14e219:_0x273d56;},_0x58972d['onTransformRemoteChangesetByStateCache']=_0x40e612=>{const _0x48f606=_0x1ec574;var _0xdf972b,_0x30da03,_0xbdaaba;return(_0xdf972b=(_0x30da03=this[_0x48f606(0x264)])==null||(_0xbdaaba=_0x30da03['onTransformRemoteChangesetByStateCache'])==null?void 0x0:_0xbdaaba[_0x48f606(0x214)](_0x30da03,_0x40e612))==null?_0x40e612:_0xdf972b;},_0x58972d;}async[_0x128a93(0x2d4)](){const _0x285c15=_0x128a93;let _0x4d274c=await super[_0x285c15(0x2d4)]();return this[_0x285c15(0x2ef)](this[_0x285c15(0x1bd)]['docStateChange$'][_0x285c15(0x1eb)](_0x227eb8=>{const _0x1d7bd3=_0x285c15;if(_0x227eb8==null||_0x227eb8[_0x1d7bd3(0x285)]!==this[_0x1d7bd3(0x2d2)])return;let {commandId:_0x3ce5f3,redoState:_0x393655,unitId:_0x430beb}=_0x227eb8,_0x100ac0={'id':_0x3ce5f3,'type':_0x5ba872[_0x1d7bd3(0x2a2)],'params':{'unitId':_0x430beb,'actions':_0x393655[_0x1d7bd3(0x1a2)],'textRanges':null}};this[_0x1d7bd3(0x177)](_0x100ac0);})),this[_0x285c15(0x2ef)](this[_0x285c15(0x3a7)]['onMutationExecutedForCollab']((_0x1edf3a,_0x77e72d)=>{const _0x1f0f38=_0x285c15;if(_0x1edf3a[_0x1f0f38(0x2b6)]!==_0x5ba872[_0x1f0f38(0x2a2)]||_0x77e72d!=null&&_0x77e72d[_0x1f0f38(0x15a)]||_0x77e72d!=null&&_0x77e72d['onlyLocal']||_0x1edf3a['id']===_0x5e08a2['id'])return;let _0x1421bb=_0x1edf3a[_0x1f0f38(0x2dd)];if((_0x1421bb==null?void 0x0:_0x1421bb[_0x1f0f38(0x285)])!==this[_0x1f0f38(0x2d2)])return;let _0x37af89=_0x1edf3a,_0x16a851=this[_0x1f0f38(0x25f)][_0x1f0f38(0x1d0)]['fetchThroughInterceptors'](this[_0x1f0f38(0x25f)][_0x1f0f38(0x1d0)][_0x1f0f38(0x223)]()[_0x1f0f38(0x1e1)])([_0x37af89],this[_0x1f0f38(0x312)])||[_0x37af89];this['_onLocalMutation'](_0x16a851[0x0]);})),_0x4d274c;}};_n=V([B(0x3,_0x37b5e1(_0x56145d)),B(0x4,_0x37b5e1(_0x2c8338)),B(0x5,_0x37b5e1(_0x5ae389)),B(0x6,_0x37b5e1(_0x41f50e)),B(0x7,_0x37b5e1(z)),B(0x8,_0x450b7c),B(0x9,_0x470483),B(0xa,_0x3b4b60),B(0xb,_0x511b30),B(0xc,_0x37b5e1(_0x31c7bd)),B(0xd,_0x29c9af(W)),B(0xe,_0x29c9af(U))],_n);let vn=class extends ${constructor(_0x320539,_0x5cdb31,_0x2f3995,_0x319b5e,_0x5065cb,_0x12e364,_0x1eaca9,_0x3f5e10,_0x58a251,_0x221c39,_0x4cf8b9,_0x3cbfe8,_0x4ee8fe,_0x2dfbe5){const _0x5f007a=_0x128a93;super(_0x320539,_0x2f3995,_0x5cdb31,_0x319b5e,_0x5065cb,_0x12e364,_0x1eaca9,_0x3f5e10,_0x58a251,_0x221c39,_0x4cf8b9,_0x3cbfe8,_0x4ee8fe,_0x2dfbe5),this['unitID']=_0x320539,this[_0x5f007a(0x2b6)]=_0x5cdb31;}async['_init'](){const _0x23b09a=_0x128a93;let _0x256552=await super[_0x23b09a(0x2d4)]();return this['disposeWithMe'](this[_0x23b09a(0x3a7)][_0x23b09a(0x323)]((_0x48be5f,_0x14bfa6)=>{const _0x239839=_0x23b09a;if(_0x48be5f[_0x239839(0x2b6)]!==_0x5ba872[_0x239839(0x2a2)]||_0x14bfa6!=null&&_0x14bfa6['fromCollab']||_0x14bfa6!=null&&_0x14bfa6[_0x239839(0x283)])return;let _0x185ae3=_0x48be5f[_0x239839(0x2dd)];if((_0x185ae3==null?void 0x0:_0x185ae3[_0x239839(0x285)])!==this[_0x239839(0x2d2)])return;let _0x12e52b=_0x48be5f,_0xf7ab7e=this[_0x239839(0x25f)]['interceptor'][_0x239839(0x38a)](this[_0x239839(0x25f)][_0x239839(0x1d0)][_0x239839(0x223)]()[_0x239839(0x1e1)])([_0x12e52b],this[_0x239839(0x312)])||[_0x12e52b];this[_0x239839(0x177)](_0xf7ab7e[0x0]);})),_0x256552;}};vn=V([B(0x3,_0x37b5e1(_0x56145d)),B(0x4,_0x37b5e1(_0x2c8338)),B(0x5,_0x37b5e1(_0x5ae389)),B(0x6,_0x37b5e1(_0x41f50e)),B(0x7,_0x37b5e1(z)),B(0x8,_0x450b7c),B(0x9,_0x470483),B(0xa,_0x3b4b60),B(0xb,_0x511b30),B(0xc,_0x29c9af(W)),B(0xd,_0x29c9af(U))],vn);let yn=class extends ${constructor(_0x31a1e3,_0x13f769,_0xa8c231,_0x3e8c23,_0x1c2dd5,_0x4cfbd9,_0x353f63,_0x1912e7,_0x24d34e,_0x14e99d,_0x4ebb25,_0x568b1d,_0x37140f,_0x46d9f6,_0x4aa739){const _0xe8cc85=_0x128a93;super(_0x31a1e3,_0xa8c231,_0x13f769,_0x3e8c23,_0x1c2dd5,_0x4cfbd9,_0x353f63,_0x24d34e,_0x14e99d,_0x4ebb25,_0x568b1d,_0x37140f,_0x46d9f6,_0x4aa739),this[_0xe8cc85(0x2d2)]=_0x31a1e3,this[_0xe8cc85(0x2b6)]=_0x13f769,this[_0xe8cc85(0x2c2)]=_0x1912e7;}['_createHandler'](){const _0x295d71=_0x128a93;let _0x29784a=super[_0x295d71(0x157)]();return _0x29784a[_0x295d71(0x35c)]=_0x5b65ed=>this[_0x295d71(0x2c2)][_0x295d71(0x2e4)](_0x5b65ed),_0x29784a;}async[_0x128a93(0x2d4)](){const _0x335e7a=_0x128a93;let _0x154950=await super[_0x335e7a(0x2d4)]();return this[_0x335e7a(0x2ef)](this['_commandService'][_0x335e7a(0x323)]((_0x2dd323,_0x445c85)=>{const _0x5cfcc4=_0x335e7a;if(_0x2dd323[_0x5cfcc4(0x2b6)]!==_0x5ba872[_0x5cfcc4(0x2a2)]||_0x445c85!=null&&_0x445c85['fromCollab']||_0x445c85!=null&&_0x445c85['onlyLocal'])return;let _0x6968c5=_0x2dd323[_0x5cfcc4(0x2dd)];if((_0x6968c5==null?void 0x0:_0x6968c5['unitId'])!==this['unitID'])return;let _0x233ae7=_0x2dd323,_0x2a882d=this[_0x5cfcc4(0x25f)]['interceptor'][_0x5cfcc4(0x38a)](this[_0x5cfcc4(0x25f)]['interceptor'][_0x5cfcc4(0x223)]()[_0x5cfcc4(0x1e1)])([_0x233ae7],this[_0x5cfcc4(0x312)])||[_0x233ae7];this['_onLocalMutation'](_0x2a882d[0x0]);})),_0x154950;}};yn=V([B(0x3,_0x37b5e1(_0x56145d)),B(0x4,_0x37b5e1(_0x2c8338)),B(0x5,_0x37b5e1(_0x5ae389)),B(0x6,_0x37b5e1(_0x41f50e)),B(0x7,_0x37b5e1(Gt)),B(0x8,_0x37b5e1(z)),B(0x9,_0x450b7c),B(0xa,_0x470483),B(0xb,_0x3b4b60),B(0xc,_0x511b30),B(0xd,_0x29c9af(W)),B(0xe,_0x29c9af(U))],yn);let bn=class extends ${constructor(_0x1e5b38,_0x5ef580,_0x30e34b,_0x5d4fef,_0xc39ca5,_0x2e1940,_0x4bb279,_0x1dcb2c,_0xc955d4,_0x1d92c2,_0x31f375,_0x6c50eb,_0x5ea8e5,_0x2cd95b){const _0x1370df=_0x128a93;super(_0x1e5b38,_0x30e34b,_0x5ef580,_0x5d4fef,_0xc39ca5,_0x2e1940,_0x4bb279,_0x1dcb2c,_0xc955d4,_0x1d92c2,_0x31f375,_0x6c50eb,_0x5ea8e5,_0x2cd95b),this[_0x1370df(0x2d2)]=_0x1e5b38,this['type']=_0x5ef580;}async['_init'](){const _0x46b583=_0x128a93;let _0x242067=await super['_init']();return this[_0x46b583(0x2ef)](this[_0x46b583(0x3a7)]['onMutationExecutedForCollab']((_0x244b26,_0x34f8fb)=>{const _0x12961a=_0x46b583;if(_0x244b26['type']!==_0x5ba872[_0x12961a(0x2a2)]||_0x34f8fb!=null&&_0x34f8fb[_0x12961a(0x15a)]||_0x34f8fb!=null&&_0x34f8fb[_0x12961a(0x283)])return;let _0x5bb9e0=_0x244b26[_0x12961a(0x2dd)];if((_0x5bb9e0==null?void 0x0:_0x5bb9e0['unitId'])!==this['unitID'])return;let _0x124f70=_0x244b26,_0x30de37=this['_compressMutationService']['interceptor']['fetchThroughInterceptors'](this[_0x12961a(0x25f)][_0x12961a(0x1d0)][_0x12961a(0x223)]()[_0x12961a(0x1e1)])([_0x124f70],this[_0x12961a(0x312)])||[_0x124f70];this[_0x12961a(0x177)](_0x30de37[0x0]);})),_0x242067;}};bn=V([B(0x3,_0x37b5e1(_0x56145d)),B(0x4,_0x37b5e1(_0x2c8338)),B(0x5,_0x37b5e1(_0x5ae389)),B(0x6,_0x37b5e1(_0x41f50e)),B(0x7,_0x37b5e1(z)),B(0x8,_0x450b7c),B(0x9,_0x470483),B(0xa,_0x3b4b60),B(0xb,_0x511b30),B(0xc,_0x29c9af(W)),B(0xd,_0x29c9af(U))],bn);let xn=class extends ${constructor(_0x3370f3,_0x358c5a,_0x2f7b09,_0x3ccd87,_0x5e0221,_0x2fac49,_0x39522b,_0x5dc7ce,_0x55fa50,_0x444830,_0x252bf,_0x21b8f5,_0x3b96e3,_0x394b17){const _0xbb7f9f=_0x128a93;super(_0x3370f3,_0x2f7b09,_0x358c5a,_0x3ccd87,_0x5e0221,_0x2fac49,_0x39522b,_0x5dc7ce,_0x55fa50,_0x444830,_0x252bf,_0x21b8f5,_0x3b96e3,_0x394b17),this[_0xbb7f9f(0x2d2)]=_0x3370f3,this['type']=_0x358c5a;}async[_0x128a93(0x2d4)](){const _0x22215f=_0x128a93;let _0x3a3e40=await super['_init']();return this[_0x22215f(0x2ef)](this[_0x22215f(0x3a7)][_0x22215f(0x323)]((_0x1c1ae7,_0x4c7b7a)=>{const _0x115a68=_0x22215f;if(_0x1c1ae7['type']!==_0x5ba872['MUTATION']||_0x4c7b7a!=null&&_0x4c7b7a[_0x115a68(0x15a)]||_0x4c7b7a!=null&&_0x4c7b7a[_0x115a68(0x283)])return;let _0x1e61db=_0x1c1ae7['params'];if((_0x1e61db==null?void 0x0:_0x1e61db[_0x115a68(0x285)])!==this[_0x115a68(0x2d2)])return;let _0x508ac9=_0x1c1ae7,_0x5c31d1=this[_0x115a68(0x25f)][_0x115a68(0x1d0)][_0x115a68(0x38a)](this[_0x115a68(0x25f)][_0x115a68(0x1d0)][_0x115a68(0x223)]()[_0x115a68(0x1e1)])([_0x508ac9],this['_univerInstanceService'])||[_0x508ac9];this[_0x115a68(0x177)](_0x5c31d1[0x0]);})),_0x3a3e40;}};xn=V([B(0x3,_0x37b5e1(_0x56145d)),B(0x4,_0x37b5e1(_0x2c8338)),B(0x5,_0x37b5e1(_0x5ae389)),B(0x6,_0x37b5e1(_0x41f50e)),B(0x7,_0x37b5e1(z)),B(0x8,_0x450b7c),B(0x9,_0x470483),B(0xa,_0x3b4b60),B(0xb,_0x511b30),B(0xc,_0x29c9af(W)),B(0xd,_0x29c9af(U))],xn);const Sn=_0xd7efb5('univer-pro.collaboration-client.network-condition.service');function Cn(_0xc040d6){const _0x413fd1=_0x128a93;let _0x5a988c=_0xc040d6['data'],_0x5d6bda=JSON['parse'](_0x5a988c);switch(_0x5d6bda[_0x413fd1(0x17b)]){case _0x10f422[_0x413fd1(0x38d)]:case _0x10f422['HELLO']:{let _0x44bd6f=_0x5d6bda[_0x413fd1(0x2fc)];return{..._0x5d6bda,'data':_0x44bd6f,'cmd':_0x5d6bda['cmd']};}case _0x10f422['JOIN']:{let _0x530b8d=_0x5d6bda[_0x413fd1(0x331)];return{..._0x5d6bda,'data':_0x530b8d,'cmd':_0x5d6bda[_0x413fd1(0x17b)]};}case _0x10f422['RECV']:{let _0x4b2cfb=_0x5d6bda[_0x413fd1(0x1e9)];switch(_0x4b2cfb[_0x413fd1(0x2b7)]){case _0x17c782[_0x413fd1(0x315)]:var _0x5b414b;return{..._0x5d6bda,'data':{..._0x4b2cfb,'data':(_0x5b414b=_0x4b2cfb[_0x413fd1(0x2d9)])==null?void 0x0:_0x5b414b['cs']},'cmd':_0x5d6bda['cmd']};case _0x17c782[_0x413fd1(0x3bb)]:var _0x3e5a18;return{..._0x5d6bda,'data':{..._0x4b2cfb,'data':(_0x3e5a18=_0x4b2cfb[_0x413fd1(0x265)])==null?void 0x0:_0x3e5a18['cs']},'cmd':_0x5d6bda[_0x413fd1(0x17b)]};case _0x17c782[_0x413fd1(0x2d8)]:var _0x1c7fb2;return{..._0x5d6bda,'data':{..._0x4b2cfb,'data':(_0x1c7fb2=_0x4b2cfb[_0x413fd1(0x1f9)])==null?void 0x0:_0x1c7fb2['cs']},'cmd':_0x5d6bda[_0x413fd1(0x17b)]};case _0x17c782[_0x413fd1(0x383)]:var _0xd3958c;return{..._0x5d6bda,'data':{..._0x4b2cfb,'data':(_0xd3958c=_0x4b2cfb[_0x413fd1(0x246)])==null?void 0x0:_0xd3958c['cs']},'cmd':_0x5d6bda['cmd']};case _0x17c782[_0x413fd1(0x377)]:var _0x59876c;return{..._0x5d6bda,'data':{..._0x4b2cfb,'data':(_0x59876c=_0x4b2cfb[_0x413fd1(0x22b)])==null?void 0x0:_0x59876c['cs']},'cmd':_0x5d6bda[_0x413fd1(0x17b)]};case _0x17c782[_0x413fd1(0x22d)]:return{..._0x5d6bda,'data':{..._0x4b2cfb,'data':_0x4b2cfb[_0x413fd1(0x1f5)]},'cmd':_0x5d6bda[_0x413fd1(0x17b)]};case _0x17c782[_0x413fd1(0x14e)]:return{..._0x5d6bda,'data':{..._0x4b2cfb,'data':_0x4b2cfb[_0x413fd1(0x347)]},'cmd':_0x5d6bda[_0x413fd1(0x17b)]};case _0x17c782['USERS_LEAVE']:return{..._0x5d6bda,'data':{..._0x4b2cfb,'data':_0x4b2cfb['leaveEvent']},'cmd':_0x5d6bda[_0x413fd1(0x17b)]};case _0x17c782[_0x413fd1(0x330)]:return{..._0x5d6bda,'data':{..._0x4b2cfb,'data':_0x4b2cfb['liveShareNewHost']},'cmd':_0x5d6bda[_0x413fd1(0x17b)]};case _0x17c782[_0x413fd1(0x28d)]:case _0x17c782[_0x413fd1(0x213)]:return{..._0x5d6bda,'data':{..._0x4b2cfb,'data':_0x4b2cfb['liveShareOperation']},'cmd':_0x5d6bda[_0x413fd1(0x17b)]};case _0x17c782['LIVESHARE_TERMINATE']:return{..._0x5d6bda,'data':{..._0x4b2cfb,'data':_0x4b2cfb[_0x413fd1(0x188)]},'cmd':_0x5d6bda['cmd']};case _0x17c782['MSG_FOR_ERROR']:return{..._0x5d6bda,'data':_0x4b2cfb,'cmd':_0x5d6bda[_0x413fd1(0x17b)]};case _0x17c782[_0x413fd1(0x3be)]:return{..._0x5d6bda,'data':{..._0x4b2cfb,'data':_0x4b2cfb[_0x413fd1(0x36a)]},'cmd':_0x5d6bda[_0x413fd1(0x17b)]};case _0x17c782[_0x413fd1(0x3a8)]:return{..._0x5d6bda,'data':{..._0x4b2cfb,'data':_0x4b2cfb[_0x413fd1(0x1d4)]},'cmd':_0x5d6bda[_0x413fd1(0x17b)]};case _0x17c782['SHOULD_CLOSE_CONN']:return{..._0x5d6bda,'data':{..._0x4b2cfb,'data':_0x4b2cfb[_0x413fd1(0x18a)]},'cmd':_0x5d6bda[_0x413fd1(0x17b)]};case _0x17c782[_0x413fd1(0x293)]:return{..._0x5d6bda,'data':{..._0x4b2cfb,'data':_0x4b2cfb['uniscriptRunEvent']},'cmd':_0x5d6bda['cmd']};default:return _0x5d6bda;}}default:return _0x5d6bda;}}function wn(_0x18c91b){const _0x4fa9c7=_0x128a93;switch(_0x18c91b[_0x4fa9c7(0x17b)]){case _0x10f422[_0x4fa9c7(0x38d)]:case _0x10f422[_0x4fa9c7(0x294)]:return JSON[_0x4fa9c7(0x297)]({'cmd':_0x18c91b['cmd'],'routeKey':_0x18c91b[_0x4fa9c7(0x2b2)]});case _0x10f422[_0x4fa9c7(0x31d)]:{let _0x17e4c7;switch(_0x18c91b[_0x4fa9c7(0x204)][_0x4fa9c7(0x2b7)]){case _0x17c782['UPDATE_CURSOR']:_0x17e4c7={'eventID':_0x17c782[_0x4fa9c7(0x22d)],'updateCursorEvent':_0x18c91b[_0x4fa9c7(0x204)][_0x4fa9c7(0x204)]};break;case _0x17c782[_0x4fa9c7(0x310)]:_0x17e4c7={'eventID':_0x17c782['USERS_LEAVE'],'leaveEvent':_0x18c91b[_0x4fa9c7(0x204)]['data']};break;case _0x17c782[_0x4fa9c7(0x14e)]:_0x17e4c7={'eventID':_0x17c782[_0x4fa9c7(0x14e)],'joinEvent':_0x18c91b['data'][_0x4fa9c7(0x204)]};break;case _0x17c782[_0x4fa9c7(0x330)]:_0x17e4c7={'eventID':_0x17c782[_0x4fa9c7(0x330)],'liveShareNewHost':_0x18c91b[_0x4fa9c7(0x204)][_0x4fa9c7(0x204)]};break;case _0x17c782[_0x4fa9c7(0x213)]:_0x17e4c7={'eventID':_0x17c782[_0x4fa9c7(0x213)],'liveShareOperation':_0x18c91b['data'][_0x4fa9c7(0x204)]};break;case _0x17c782['LIVESHARE_TERMINATE']:_0x17e4c7={'eventID':_0x17c782[_0x4fa9c7(0x38c)],'liveShareTerminate':_0x18c91b[_0x4fa9c7(0x204)][_0x4fa9c7(0x204)]};break;case _0x17c782[_0x4fa9c7(0x390)]:_0x17e4c7={'eventID':_0x17c782[_0x4fa9c7(0x390)],'liveShareRequestHost':_0x18c91b[_0x4fa9c7(0x204)][_0x4fa9c7(0x204)]};break;case _0x17c782['LIVESHARE_FETCH_OPERATIONS']:_0x17e4c7={'eventID':_0x17c782[_0x4fa9c7(0x28d)]};break;default:_0x17e4c7={'eventID':_0x18c91b['data'][_0x4fa9c7(0x2b7)]};}return JSON['stringify']({'cmd':_0x18c91b[_0x4fa9c7(0x17b)],'routeKey':_0x18c91b[_0x4fa9c7(0x2b2)],'collaMsg':_0x17e4c7});}case _0x10f422[_0x4fa9c7(0x1ea)]:return JSON[_0x4fa9c7(0x297)]({'cmd':_0x18c91b['cmd'],'routeKey':_0x18c91b[_0x4fa9c7(0x2b2)],'joinReq':_0x18c91b['data']});case _0x10f422[_0x4fa9c7(0x237)]:return JSON[_0x4fa9c7(0x297)]({'cmd':_0x18c91b[_0x4fa9c7(0x17b)],'routeKey':_0x18c91b[_0x4fa9c7(0x2b2)],'leaveReq':_0x18c91b['data']});default:throw Error(_0x4fa9c7(0x243));}}const Tn=_0xd7efb5('univer-pro.collaboration-client-socket-service');function En(_0x4f8947,_0x3d42e4,_0x4ffe2a){const _0x55dea3=_0x128a93;return _0x4f8947+'/'+_0x3d42e4+'/unit/'+_0x4ffe2a+_0x55dea3(0x1c3);}let Dn=class extends _0x403d15{constructor(_0x12a24b,_0x5b5ada,_0x57432f,_0x35fbfd,_0x2234da){const _0xa3ac23=_0x128a93;super(),this['_injector']=_0x12a24b,this[_0xa3ac23(0x261)]=_0x5b5ada,this[_0xa3ac23(0x280)]=_0x57432f,this[_0xa3ac23(0x346)]=_0x35fbfd,this['_snapshotServerService']=_0x2234da;}['_doCreateSocket'](_0x1c15d0){const _0x16b3e3=_0x128a93;let _0x34ef02=this[_0x16b3e3(0x349)][_0x16b3e3(0x2f1)](_0x4f0a93);if(!_0x34ef02)throw Error(_0x16b3e3(0x144));let _0x284e49=_0x34ef02[_0x16b3e3(0x1b5)](_0x1c15d0);if(!_0x284e49)throw Error(_0x16b3e3(0x3d5));let _0x595179=new _0x201dd7(),_0x1cb4b9=new _0x10b8bf();_0x595179[_0x16b3e3(0x159)](_0x284e49[_0x16b3e3(0x148)][_0x16b3e3(0x1eb)](_0x4838fb=>_0x1cb4b9[_0x16b3e3(0x1d9)](_0x4838fb))),_0x595179[_0x16b3e3(0x159)](_0x2296ca(()=>_0x1cb4b9['complete']()));let _0x1321df=new _0x10b8bf();_0x595179[_0x16b3e3(0x159)](_0x284e49[_0x16b3e3(0x277)][_0x16b3e3(0x1eb)](_0x25d268=>_0x1321df[_0x16b3e3(0x1d9)](_0x25d268))),_0x595179['add'](_0x2296ca(()=>_0x1321df['complete']()));let _0x287592=new _0x10b8bf();_0x595179[_0x16b3e3(0x159)](_0x284e49[_0x16b3e3(0x3bd)][_0x16b3e3(0x1eb)](_0x5ee89d=>{const _0x4a116f=_0x16b3e3;let _0x277ac0=Cn(_0x5ee89d);_0x287592[_0x4a116f(0x1d9)](_0x277ac0);})),_0x595179[_0x16b3e3(0x159)](_0x2296ca(()=>_0x287592[_0x16b3e3(0x320)]()));let _0x46fc39,_0x26e562=()=>{const _0x316cec=_0x16b3e3;_0x1321df[_0x316cec(0x1d9)](new Event(_0x316cec(0x3a3))),_0x1cb4b9[_0x316cec(0x1d9)](new Event(_0x316cec(0x3a3))),_0x46fc39['close']();};return _0x46fc39={'memberID':'','close$':_0x1cb4b9[_0x16b3e3(0x1a1)](),'error$':_0x1321df['asObservable'](),'open$':_0x284e49[_0x16b3e3(0x2d7)],'message$':_0x287592[_0x16b3e3(0x1a1)](),'send':_0x326e28=>{const _0x4b396b=_0x16b3e3;if(_0x326e28[_0x4b396b(0x17b)]===_0x10f422[_0x4b396b(0x31d)]){if(_0x326e28[_0x4b396b(0x204)]['eventID']===_0x17c782[_0x4b396b(0x328)]){this[_0x4b396b(0x195)](_0x46fc39,_0x326e28[_0x4b396b(0x204)])[_0x4b396b(0x296)](_0x66e5b4=>{const _0x1272d6=_0x4b396b;this[_0x1272d6(0x346)][_0x1272d6(0x22c)](_0x66e5b4),_0x26e562();});return;}if(_0x326e28[_0x4b396b(0x204)][_0x4b396b(0x2b7)]===_0x17c782[_0x4b396b(0x24f)]){let _0x2e5766=_0x326e28[_0x4b396b(0x204)];this['_fetchMissChangesets'](_0x2e5766)[_0x4b396b(0x2fd)](_0x57bc7e=>{const _0x1c3e9b=_0x4b396b;_0x287592['next']({'cmd':_0x10f422[_0x1c3e9b(0x1fb)],'code':_0x38a2c1['OK'],'routeKey':_0x2e5766['data'][_0x1c3e9b(0x2d2)],'routeType':'','data':{'eventID':_0x17c782['PSEUDO_FETCH_MISSING_RESULT'],'data':{'changesets':_0x57bc7e}}});})[_0x4b396b(0x296)](_0x497ba6=>{const _0x2831e3=_0x4b396b;this[_0x2831e3(0x346)][_0x2831e3(0x22c)](_0x497ba6),_0x26e562();});return;}}_0x284e49[_0x4b396b(0x317)](wn(_0x326e28));},'close':()=>{const _0x39c271=_0x16b3e3;_0x284e49['close'](),_0x595179[_0x39c271(0x358)]();}},_0x46fc39;}async['_submitChangeset'](_0x218a68,_0xe13a87){const _0x261ee3=_0x128a93;var _0x699004;let {unitType:_0x4b5cab,unitID:_0x3ec13c,changeset:_0x348dd3}=_0xe13a87[_0x261ee3(0x204)],_0xab524c={'unitID':_0x3ec13c,'memberID':_0x218a68[_0x261ee3(0x329)],'type':_0x4b5cab,'changeset':_0x1d83e7(_0x348dd3)},_0x24fd8c=this[_0x261ee3(0x280)][_0x261ee3(0x1bc)](L),_0xa94225=En((_0x699004=_0x24fd8c==null?void 0x0:_0x24fd8c[_0x261ee3(0x1aa)])==null?_0x261ee3(0x3c2):_0x699004,_0x4b5cab,_0x3ec13c);try{await this[_0x261ee3(0x261)]['post'](_0xa94225,{'body':_0xab524c});}catch(_0x1e1307){throw this[_0x261ee3(0x346)][_0x261ee3(0x22c)](_0x261ee3(0x342),_0x261ee3(0x2f3)),_0x1e1307;}}async[_0x128a93(0x2f4)](_0x251b3d){const _0x2147f5=_0x128a93;let {unitID:_0x315723,from:_0x5a687d,to:_0xeb1e10,unitType:_0x392e42}=_0x251b3d[_0x2147f5(0x204)];return(await this['_snapshotServerService'][_0x2147f5(0x36d)]({'metadata':void 0x0},{'unitID':_0x315723,'type':_0x392e42,'from':_0x5a687d,'to':_0xeb1e10}))['changesets'][_0x2147f5(0x24e)](_0x33bd59=>((_0x33bd59['mutations']===null||_0x33bd59[_0x2147f5(0x36c)]===void 0x0)&&(_0x33bd59[_0x2147f5(0x36c)]=[]),_0x33bd59));}};Dn=V([B(0x0,_0x37b5e1(_0x56145d)),B(0x1,_0x37b5e1(_0x1fd0e9)),B(0x2,_0x46ffbd),B(0x3,_0x470483),B(0x4,_0x308163)],Dn);const On=_0xd7efb5(_0x128a93(0x378));function kn(_0x3befc8={}){const _0x35829f=_0x128a93;return _0x3befc8[_0x35829f(0x39c)]?{'resolveUnit':_0x3befc8['resolveUnit']}:{'resolveUnit':_0x3c53a9=>({'target':{'unitId':_0x3c53a9['unitId'],'unitType':_0x3c53a9[_0x35829f(0x1ac)]}})};}function An(_0x17e6db,_0x5adaf2,_0x4be4f5){const _0x43f334=_0x128a93;var _0x96561c;let _0x446c73=_0x4be4f5[_0x43f334(0x348)][_0x43f334(0x351)];if(_0x446c73!=null&&_0x446c73[_0x43f334(0x396)]()==='')throw Error('COLLABORATION_ENDPOINT_INVALID');if(!_0x4be4f5['target'][_0x43f334(0x285)])throw Error(_0x43f334(0x149));return{'localUnitId':_0x17e6db,'unitType':_0x5adaf2,'target':{'endpoint':_0x446c73,'unitId':_0x4be4f5[_0x43f334(0x348)][_0x43f334(0x285)],'unitType':(_0x96561c=_0x4be4f5['target'][_0x43f334(0x1ac)])==null?_0x5adaf2:_0x96561c},'changeset':_0x4be4f5[_0x43f334(0x3b0)]};}let jn=class extends _0x403d15{constructor(_0x4b3901,_0x2198f5,_0x201819,_0x4a516f,_0x4da80d,_0x3d626c,_0x3123bc){const _0x2b6d7e=_0x128a93;super(),this['_injector']=_0x4b3901,this['_logService']=_0x2198f5,this[_0x2b6d7e(0x280)]=_0x201819,this['_socketService']=_0x4a516f,this[_0x2b6d7e(0x30c)]=_0x4da80d,this[_0x2b6d7e(0x389)]=_0x3d626c,this[_0x2b6d7e(0x27c)]=_0x3123bc,R(this,_0x2b6d7e(0x3d7),new Map()),R(this,_0x2b6d7e(0x299),new Map()),R(this,_0x2b6d7e(0x37c),new Map()),R(this,'_socketChannels',new Map()),R(this,'socket$',this[_0x2b6d7e(0x3a9)](void 0x0)['socket$'][_0x2b6d7e(0x1a1)]()),R(this,_0x2b6d7e(0x2b3),new _0x4e690d(0x0)),R(this,_0x2b6d7e(0x3b1),this[_0x2b6d7e(0x2b3)]['asObservable']()),this['_listenToNetworkCondition']();}[_0x128a93(0x1f7)](){const _0x38c647=_0x128a93;this[_0x38c647(0x27c)]&&this[_0x38c647(0x2ef)](this['_networkConditionService']['online$'][_0x38c647(0x1eb)](_0x38e5ed=>{const _0x5e5d58=_0x38c647;_0x38e5ed&&this[_0x5e5d58(0x25c)](),_0x38e5ed||this[_0x5e5d58(0x1b1)][_0x5e5d58(0x3b6)](_0x162cc2=>this[_0x5e5d58(0x182)](_0x162cc2));}));}[_0x128a93(0x358)](){const _0x2f0a48=_0x128a93;super[_0x2f0a48(0x358)](),this[_0x2f0a48(0x1b1)][_0x2f0a48(0x3b6)](_0x43159b=>{const _0x3c62e4=_0x2f0a48;var _0xcfaaf5,_0x545df4;(_0xcfaaf5=_0x43159b['socketMessageSubscription'])==null||_0xcfaaf5[_0x3c62e4(0x3b9)](),_0x43159b[_0x3c62e4(0x31f)]=null,this['_clearRetryConnectingTimer'](_0x43159b),this[_0x3c62e4(0x1a0)](_0x43159b),this[_0x3c62e4(0x19e)](_0x43159b),(_0x545df4=_0x43159b[_0x3c62e4(0x2a8)][_0x3c62e4(0x1a9)]())==null||_0x545df4[_0x3c62e4(0x2b0)](),_0x43159b[_0x3c62e4(0x2a8)]['complete']();}),this[_0x2f0a48(0x1b1)][_0x2f0a48(0x24a)](),this['_sessions'][_0x2f0a48(0x3b6)](_0x3cdeb9=>_0x3cdeb9[_0x2f0a48(0x358)]()),this['_sessions'][_0x2f0a48(0x24a)](),this['_sessionChannels']['clear'](),this[_0x2f0a48(0x2b3)][_0x2f0a48(0x320)]();}async[_0x128a93(0x1b0)](_0x21dc43,_0x428f1c){const _0x2af588=_0x128a93;if(this[_0x2af588(0x3d7)][_0x2af588(0x3cd)](_0x21dc43))return this[_0x2af588(0x3d7)][_0x2af588(0x2f1)](_0x21dc43);let _0x2a355d=this[_0x2af588(0x299)][_0x2af588(0x2f1)](_0x21dc43);if(_0x2a355d)return _0x2a355d;let _0x191a23=this[_0x2af588(0x219)](_0x21dc43,_0x428f1c);this['_pendingSessions'][_0x2af588(0x225)](_0x21dc43,_0x191a23);try{return await _0x191a23;}finally{this[_0x2af588(0x299)][_0x2af588(0x1ff)](_0x21dc43);}}async[_0x128a93(0x219)](_0x3b5e20,_0x58835e){const _0x44e99a=_0x128a93;let _0x5a49b4=await this[_0x44e99a(0x15e)](_0x3b5e20,_0x58835e),_0x26f0e6=this['_getSocketChannel'](_0x5a49b4[_0x44e99a(0x348)][_0x44e99a(0x351)]);this[_0x44e99a(0x1ae)](_0x26f0e6);let _0x2b10be=this[_0x44e99a(0x349)][_0x44e99a(0x279)](Ht,_0x5a49b4,_0x26f0e6[_0x44e99a(0x2a8)][_0x44e99a(0x1a1)]());return this[_0x44e99a(0x3d7)][_0x44e99a(0x225)](_0x3b5e20,_0x2b10be),this[_0x44e99a(0x37c)][_0x44e99a(0x225)](_0x3b5e20,_0x26f0e6[_0x44e99a(0x388)]),_0x2b10be;}[_0x128a93(0x2b9)](_0x1db69a){const _0x402af4=_0x128a93;let _0x37b395=this[_0x402af4(0x3d7)]['get'](_0x1db69a),_0xfc79eb=this[_0x402af4(0x37c)][_0x402af4(0x2f1)](_0x1db69a);if(_0x37b395&&(this[_0x402af4(0x3d7)][_0x402af4(0x1ff)](_0x1db69a),this['_sessionChannels'][_0x402af4(0x1ff)](_0x1db69a),_0x37b395[_0x402af4(0x2b0)]()),_0xfc79eb&&!this[_0x402af4(0x23b)](_0xfc79eb)){var _0x51505b;let _0x426f31=this[_0x402af4(0x1b1)]['get'](_0xfc79eb);_0x426f31==null||(_0x51505b=_0x426f31[_0x402af4(0x2a8)][_0x402af4(0x1a9)]())==null||_0x51505b[_0x402af4(0x2b0)]();}}[_0x128a93(0x25c)](){const _0x3e14b3=_0x128a93;(this[_0x3e14b3(0x1b1)][_0x3e14b3(0x2d6)]?[...this['_socketChannels'][_0x3e14b3(0x1c7)]()]:[this['_getSocketChannel'](void 0x0)])[_0x3e14b3(0x3b6)](_0x1a08bb=>{const _0x501d84=_0x3e14b3;_0x1a08bb[_0x501d84(0x17f)]=0x0,this['_clearRetryConnectingTimer'](_0x1a08bb),this[_0x501d84(0x30f)](_0x1a08bb);});}[_0x128a93(0x18b)](_0x575709){const _0x13f505=_0x128a93;_0x575709[_0x13f505(0x37e)]!=null&&(clearTimeout(_0x575709[_0x13f505(0x37e)]),_0x575709[_0x13f505(0x37e)]=null);}async['_createSocket'](_0x404055){const _0x4f16ac=_0x128a93;var _0x1a81de,_0x366d14;let _0xeb0e8a=this[_0x4f16ac(0x280)][_0x4f16ac(0x1bc)](L),_0x54dcb0=(_0x1a81de=(_0x366d14=_0x404055[_0x4f16ac(0x351)])==null?_0xeb0e8a==null?void 0x0:_0xeb0e8a['collabWebSocketUrl']:_0x366d14)==null?mt:_0x1a81de,_0x2d1634=await this['_socketService'][_0x4f16ac(0x1b5)](_0x54dcb0);return _0x404055['candidateSocket']=_0x2d1634,_0x2d1634;}async[_0x128a93(0x1ae)](_0x37f35b){const _0x1f3e70=_0x128a93;try{var _0x48717a,_0x512d0d;let _0x56ff7b=(_0x48717a=(_0x512d0d=_0x37f35b[_0x1f3e70(0x2a8)][_0x1f3e70(0x1a9)]())==null?_0x37f35b['candidateSocket']:_0x512d0d)==null?await this[_0x1f3e70(0x229)](_0x37f35b):_0x48717a;if(_0x56ff7b){var _0x1808b3;let _0x5d6a88=_0x56ff7b['send'];_0x56ff7b[_0x1f3e70(0x317)]=_0x314c0b=>(_0x314c0b[_0x1f3e70(0x17b)]!==_0x10f422[_0x1f3e70(0x237)]&&this[_0x1f3e70(0x186)](_0x37f35b),_0x5d6a88['apply'](_0x56ff7b,[_0x314c0b])),(_0x1808b3=_0x37f35b[_0x1f3e70(0x31f)])==null||_0x1808b3[_0x1f3e70(0x3b9)](),_0x37f35b[_0x1f3e70(0x31f)]=null,_0x37f35b['socketMessageSubscription']=_0x56ff7b[_0x1f3e70(0x3bd)][_0x1f3e70(0x1eb)](_0x2ceb12=>this[_0x1f3e70(0x2e6)](_0x37f35b,_0x56ff7b,_0x2ceb12)),_0x56ff7b[_0x1f3e70(0x277)][_0x1f3e70(0x190)](_0x250149(0x1))[_0x1f3e70(0x1eb)](_0x180b31=>this['_logService']['error'](_0x1f3e70(0x3d1),_0x180b31)),_0x56ff7b[_0x1f3e70(0x2d7)][_0x1f3e70(0x190)](_0x250149(0x1))['subscribe'](()=>{const _0x541b48=_0x1f3e70;this[_0x541b48(0x17a)](_0x37f35b,_0x56ff7b);}),_0x56ff7b['close$']['pipe'](_0x250149(0x1))[_0x1f3e70(0x1eb)](_0xde8964=>{const _0x80aa3f=_0x1f3e70;this['_logService']['debug'](_0x80aa3f(0x17e),_0x80aa3f(0x23d),_0xde8964),this['_onConnectionFailed'](_0x37f35b);});}}catch(_0xf47468){this['_logService']['error'](_0xf47468),this[_0x1f3e70(0x15d)](_0x37f35b);}}[_0x128a93(0x17a)](_0x1c8df9,_0x4f1afc){const _0x92fa72=_0x128a93;this[_0x92fa72(0x346)]['debug'](_0x92fa72(0x17e),_0x92fa72(0x167)),_0x4f1afc['send']({'cmd':_0x10f422[_0x92fa72(0x294)]}),this[_0x92fa72(0x186)](_0x1c8df9);}[_0x128a93(0x182)](_0x5d5372){const _0x50d036=_0x128a93;_0x5d5372[_0x50d036(0x230)]=!0x1,_0x5d5372['candidateSocket']=null,this[_0x50d036(0x2b3)][_0x50d036(0x1d9)](0x2),_0x5d5372[_0x50d036(0x2a8)][_0x50d036(0x1d9)](null),this[_0x50d036(0x1a0)](_0x5d5372),this[_0x50d036(0x19e)](_0x5d5372);}[_0x128a93(0x15d)](_0x4dfb74){const _0x3657af=_0x128a93;var _0x57f136;this['_onOffline'](_0x4dfb74),this['_hasSessionsForEndpoint'](_0x4dfb74[_0x3657af(0x388)])&&(_0x4dfb74[_0x3657af(0x17f)]<((_0x57f136=this['_configService'][_0x3657af(0x1bc)](_0x3657af(0x271)))==null?0x3:_0x57f136)?(this[_0x3657af(0x30c)][_0x3657af(0x173)]({'id':'SOCKET_FAILED_RETRY'}),this[_0x3657af(0x30f)](_0x4dfb74)):this['_collaborationUIEventService'][_0x3657af(0x173)]({'id':'SOCKET_FAILED'}));}[_0x128a93(0x30f)](_0x269e7c){const _0x15c860=_0x128a93;var _0x55e4f3;let _0x2734b9=_0x269e7c[_0x15c860(0x17f)],_0x682cc6=this[_0x15c860(0x280)][_0x15c860(0x1bc)](L),_0x3807e0=_0x2734b9===0x0?0x0:((_0x55e4f3=_0x682cc6==null?void 0x0:_0x682cc6['retryConnectingInterval'])==null?0x4e20:_0x55e4f3)*0x2**_0x2734b9;_0x269e7c['retryConnectingTimer']=setTimeout(()=>{const _0xb75431=_0x15c860;clearTimeout(_0x269e7c[_0xb75431(0x37e)]),_0x269e7c['retryConnectingTimer']=null,this['_tryEnsureSocket'](_0x269e7c);},_0x3807e0),_0x269e7c['retryCount']+=0x1;}async['_resolveSessionIdentity'](_0x32e34a,_0xa437e1){const _0x41802c=_0x128a93;return An(_0x32e34a,_0xa437e1,await this[_0x41802c(0x389)][_0x41802c(0x39c)]({'unitId':_0x32e34a,'unitType':_0xa437e1}));}[_0x128a93(0x2e6)](_0x107b5a,_0x1916bd,_0x7759fe){const _0x762140=_0x128a93;let {cmd:_0x571105}=_0x7759fe;_0x571105===_0x10f422[_0x762140(0x294)]&&!_0x107b5a['socketReady']&&(_0x1916bd['memberID']=_0x7759fe['data']['memberID'],_0x107b5a['socket$'][_0x762140(0x1d9)](_0x1916bd),this[_0x762140(0x2b3)][_0x762140(0x1d9)](0x3),_0x107b5a['socketReady']=!0x0,_0x107b5a[_0x762140(0x291)]=null),_0x571105===_0x10f422[_0x762140(0x38d)]&&this[_0x762140(0x1a0)](_0x107b5a),this[_0x762140(0x186)](_0x107b5a);}[_0x128a93(0x23b)](_0x3854ca){const _0x42250f=_0x128a93;return[...this[_0x42250f(0x37c)][_0x42250f(0x1c7)]()][_0x42250f(0x233)](_0x1ae148=>_0x1ae148===_0x3854ca);}[_0x128a93(0x3a9)](_0x193740){const _0x4421e5=_0x128a93;let _0x556416=_0x193740==null?'':_0x193740,_0x382f66=this[_0x4421e5(0x1b1)][_0x4421e5(0x2f1)](_0x556416);if(_0x382f66)return _0x382f66;let _0x1932be={'endpointKey':_0x556416,'endpoint':_0x193740,'socket$':new _0x4e690d(void 0x0),'candidateSocket':null,'socketReady':!0x1,'socketMessageSubscription':null,'retryConnectingTimer':null,'retryCount':0x0,'sendHeartbeatTimer':null,'timeoutTimer':null};return this[_0x4421e5(0x1b1)][_0x4421e5(0x225)](_0x556416,_0x1932be),_0x1932be;}['_rescheduleHeartbeat'](_0x293611){const _0x50efc1=_0x128a93;var _0x4287bc;this[_0x50efc1(0x19e)](_0x293611),_0x293611[_0x50efc1(0x31c)]=setTimeout(()=>this[_0x50efc1(0x16b)](_0x293611),(_0x4287bc=this[_0x50efc1(0x280)]['getConfig'](_0x50efc1(0x257)))==null?0x7530:_0x4287bc);}['_sendHeartbeat'](_0x4ef1b9){const _0x50c985=_0x128a93;_0x4ef1b9['socket$'][_0x50c985(0x1a9)]()[_0x50c985(0x317)]({'cmd':_0x10f422[_0x50c985(0x38d)]}),this['_waitForHeartbeatResponse'](_0x4ef1b9);}[_0x128a93(0x376)](_0x546c23){const _0x2e8adc=_0x128a93;var _0x16296a;_0x546c23[_0x2e8adc(0x2b8)]=setTimeout(()=>this[_0x2e8adc(0x15d)](_0x546c23),(_0x16296a=this[_0x2e8adc(0x280)][_0x2e8adc(0x1bc)](_0x2e8adc(0x1b3)))==null?vt:_0x16296a);}[_0x128a93(0x19e)](_0x5d596f){const _0x2c9f5d=_0x128a93;_0x5d596f[_0x2c9f5d(0x31c)]!=null&&(clearTimeout(_0x5d596f['sendHeartbeatTimer']),_0x5d596f[_0x2c9f5d(0x31c)]=null);}[_0x128a93(0x1a0)](_0xfd1b3){const _0x23ecae=_0x128a93;_0xfd1b3[_0x23ecae(0x2b8)]!=null&&(clearTimeout(_0xfd1b3[_0x23ecae(0x2b8)]),_0xfd1b3[_0x23ecae(0x2b8)]=null);}};jn=V([B(0x0,_0x37b5e1(_0x56145d)),B(0x1,_0x470483),B(0x2,_0x46ffbd),B(0x3,Tn),B(0x4,_0x37b5e1(z)),B(0x5,On),B(0x6,_0x29c9af(Sn))],jn);let Mn=class extends _0x738f09{constructor(_0x439304,_0x431e39,_0xb448f6,_0x218e18){const _0x450a47=_0x128a93;var _0x1bb29a;super(),this[_0x450a47(0x349)]=_0x439304,this[_0x450a47(0x37d)]=_0x431e39,this[_0x450a47(0x280)]=_0xb448f6,this[_0x450a47(0x312)]=_0x218e18,R(this,'_entities',new Map()),R(this,_0x450a47(0x255),new _0x10b8bf()),R(this,'entityInit$',this['_entityInit$'][_0x450a47(0x1a1)]()),((_0x1bb29a=this[_0x450a47(0x280)][_0x450a47(0x1bc)](_0x450a47(0x14b)))==null?void 0x0:_0x1bb29a[_0x450a47(0x287)])!==!0x1&&this[_0x450a47(0x2d4)]();}[_0x128a93(0x358)](){const _0x51245a=_0x128a93;super['dispose'](),this['_entities']['forEach'](_0x387151=>_0x387151[_0x51245a(0x358)]()),this['_entities'][_0x51245a(0x24a)]();}[_0x128a93(0x2ba)](_0x3bd1b9){const _0x16cb50=_0x128a93;var _0x3b3612;return(_0x3b3612=this[_0x16cb50(0x1db)][_0x16cb50(0x2f1)](_0x3bd1b9))==null?null:_0x3b3612;}['getCollabEntity$'](_0x25d9cf){const _0x3df1fe=_0x128a93;let _0x4ec2f9=this['getCollabEntity'](_0x25d9cf);return _0x4ec2f9?_0x66fadd(_0x4ec2f9):this[_0x3df1fe(0x255)][_0x3df1fe(0x190)](_0x3784e6(_0x17e380=>_0x17e380[_0x3df1fe(0x2d2)]===_0x25d9cf));}[_0x128a93(0x2a7)](_0x17863f){const _0x381fd2=_0x128a93;return _0x23f22b(this[_0x381fd2(0x218)](_0x17863f)[_0x381fd2(0x190)](_0xcf767d(()=>void 0x0)));}[_0x128a93(0x2d4)](){const _0x569383=_0x128a93;this[_0x569383(0x312)][_0x569383(0x227)](_0x61571e[_0x569383(0x146)])[_0x569383(0x190)](_0x138428(this[_0x569383(0x245)]),_0x6221fb(0x10))[_0x569383(0x1eb)](async _0x5dd8ba=>{const _0x23ceab=_0x569383;let _0x11a097=_0x5dd8ba[_0x23ceab(0x24b)][_0x23ceab(0x3ac)](),_0x26660c=await this['_startCollaboration'](_0x11a097,_0x61571e[_0x23ceab(0x146)]);this[_0x23ceab(0x1db)][_0x23ceab(0x225)](_0x11a097,_0x26660c);}),this[_0x569383(0x312)][_0x569383(0x227)](_0x61571e['UNIVER_DOC'])['pipe'](_0x138428(this[_0x569383(0x245)]),_0x6221fb(0x10))[_0x569383(0x190)](_0x3784e6(_0x42a4c1=>!_0x42a4c1['unit']['getUnitId']()['startsWith']('__')))[_0x569383(0x1eb)](async _0x542aff=>{const _0x3b08a5=_0x569383;let _0x33c955=_0x542aff[_0x3b08a5(0x24b)]['getUnitId'](),_0x34e86a=await this[_0x3b08a5(0x28f)](_0x33c955,_0x61571e[_0x3b08a5(0x306)]);this[_0x3b08a5(0x1db)][_0x3b08a5(0x225)](_0x33c955,_0x34e86a);}),this[_0x569383(0x312)][_0x569383(0x227)](_0x61571e[_0x569383(0x164)])[_0x569383(0x190)](_0x138428(this[_0x569383(0x245)]),_0x6221fb(0x10))[_0x569383(0x1eb)](async _0x38f48d=>{const _0x46cb38=_0x569383;let _0x37e599=_0x38f48d[_0x46cb38(0x24b)][_0x46cb38(0x3ac)](),_0x462e43=await this[_0x46cb38(0x28f)](_0x37e599,_0x61571e[_0x46cb38(0x164)]);this[_0x46cb38(0x1db)][_0x46cb38(0x225)](_0x37e599,_0x462e43);}),this[_0x569383(0x312)][_0x569383(0x227)](_0x61571e[_0x569383(0x313)])['pipe'](_0x138428(this[_0x569383(0x245)]),_0x6221fb(0x10))[_0x569383(0x1eb)](async _0x4ae650=>{const _0x45cce7=_0x569383;let _0x196437=_0x4ae650[_0x45cce7(0x24b)][_0x45cce7(0x3ac)](),_0x15356f=await this[_0x45cce7(0x28f)](_0x196437,_0x61571e['UNIVER_BOARD']);this[_0x45cce7(0x1db)][_0x45cce7(0x225)](_0x196437,_0x15356f);}),this[_0x569383(0x312)][_0x569383(0x227)](_0x61571e[_0x569383(0x1c5)])[_0x569383(0x190)](_0x138428(this[_0x569383(0x245)]),_0x6221fb(0x10))[_0x569383(0x1eb)](async _0x2fa449=>{const _0x3af29f=_0x569383;let _0x359c32=_0x2fa449['unit'][_0x3af29f(0x3ac)](),_0x5cca79=await this[_0x3af29f(0x28f)](_0x359c32,_0x61571e[_0x3af29f(0x1c5)]);this[_0x3af29f(0x1db)][_0x3af29f(0x225)](_0x359c32,_0x5cca79);}),_0x1171fb(this[_0x569383(0x312)][_0x569383(0x1cc)](_0x61571e['UNIVER_SHEET']),this[_0x569383(0x312)][_0x569383(0x1cc)](_0x61571e[_0x569383(0x306)]),this[_0x569383(0x312)][_0x569383(0x1cc)](_0x61571e['UNIVER_SLIDE']),this['_univerInstanceService'][_0x569383(0x1cc)](_0x61571e[_0x569383(0x313)]),this[_0x569383(0x312)][_0x569383(0x1cc)](_0x61571e['UNIVER_BASE']))[_0x569383(0x190)](_0x138428(this[_0x569383(0x245)]))['subscribe'](_0x43a44f=>{const _0x2b28d8=_0x569383;let _0x3c6af8=_0x43a44f[_0x2b28d8(0x3ac)](),_0x100511=this[_0x2b28d8(0x1db)][_0x2b28d8(0x2f1)](_0x3c6af8);_0x100511&&(_0x100511[_0x2b28d8(0x358)](),this['_entities'][_0x2b28d8(0x1ff)](_0x3c6af8));});}async[_0x128a93(0x28f)](_0x51f93b,_0x292167){const _0x1a9f35=_0x128a93;let _0x285370=await this['_collabSessionService']['requireSession'](_0x51f93b),_0xcf3619=this[_0x1a9f35(0x349)][_0x1a9f35(0x279)](this[_0x1a9f35(0x352)](_0x292167),_0x51f93b,_0x292167,_0x285370);return await _0xcf3619[_0x1a9f35(0x308)](),this[_0x1a9f35(0x255)][_0x1a9f35(0x1d9)](_0xcf3619),_0xcf3619;}[_0x128a93(0x352)](_0x53ba68){const _0x37bfbe=_0x128a93;switch(_0x53ba68){case _0x61571e[_0x37bfbe(0x306)]:return _n;case _0x61571e['UNIVER_SHEET']:return yn;case _0x61571e[_0x37bfbe(0x164)]:return bn;case _0x61571e[_0x37bfbe(0x313)]:return xn;case _0x61571e[_0x37bfbe(0x1c5)]:return vn;default:throw Error(_0x37bfbe(0x238)+_0x53ba68);}}};Mn=V([B(0x0,_0x37b5e1(_0x56145d)),B(0x1,_0x37b5e1(jn)),B(0x2,_0x46ffbd),B(0x3,_0x450b7c)],Mn);var Nn=_0x128a93(0x192),Pn='1.0.0-alpha.4';let Fn=class extends _0x403d15{constructor(_0x325ff3,_0x4e3633){const _0x54353c=_0x128a93;super(),this[_0x54353c(0x312)]=_0x325ff3,this[_0x54353c(0x280)]=_0x4e3633,this[_0x54353c(0x2d4)]();}['_init'](){const _0x4d5426=_0x128a93;this[_0x4d5426(0x2ef)](this[_0x4d5426(0x312)]['focused$'][_0x4d5426(0x1eb)](()=>{const _0x57096a=_0x4d5426;var _0x55e37e;let _0x48ec81=this[_0x57096a(0x312)][_0x57096a(0x179)](),_0x56743b=(_0x55e37e=this['_configService'][_0x57096a(0x1bc)](_0x57096a(0x3a2)))==null?_0x57096a(0x209):_0x55e37e;_0x48ec81 instanceof _0x661ea8&&(_0x56743b=_0x48ec81[_0x57096a(0x1d2)]),document[_0x57096a(0x194)]=_0x56743b;}));}};Fn=V([B(0x0,_0x450b7c),B(0x1,_0x46ffbd)],Fn);let In=function(_0x2b1149){const _0x3bd25b=_0x128a93;return _0x2b1149['URL']=_0x3bd25b(0x1f6),_0x2b1149[_0x3bd25b(0x1b4)]='UUID',_0x2b1149[_0x3bd25b(0x282)]=_0x3bd25b(0x282),_0x2b1149;}({});const Ln=_0xd7efb5(_0x128a93(0x1b8));let Rn=class{constructor(_0x4d3a14,_0x666ed8,_0x1981c5){const _0x2bab84=_0x128a93;this[_0x2bab84(0x261)]=_0x4d3a14,this[_0x2bab84(0x280)]=_0x666ed8,this[_0x2bab84(0x312)]=_0x1981c5;}[_0x128a93(0x1bb)](){const _0x385ee1=_0x128a93;var _0x36b4a1;return(_0x36b4a1=this[_0x385ee1(0x150)]()[_0x385ee1(0x2fb)])==null?{}:_0x36b4a1;}async[_0x128a93(0x25d)](_0x3f60ea){const _0x344499=_0x128a93;let _0x4fbdb7=this[_0x344499(0x1bb)]();if(zn(_0x3f60ea,_0x4fbdb7),_0x4fbdb7[_0x344499(0x1a8)])return _0x4fbdb7['upload'](_0x3f60ea);let _0x1d9815=await this[_0x344499(0x151)](_0x3f60ea);return{'id':_0x1d9815,'name':_0x3f60ea[_0x344499(0x1d2)],'mimeType':_0x3f60ea['type'],'size':_0x3f60ea[_0x344499(0x2d6)],'sourceType':_0x344499(0x1b4),'source':_0x1d9815};}async['_upload'](_0x87843e){const _0x1dfcbf=_0x128a93;let _0x23b2bf=this[_0x1dfcbf(0x312)]['getFocusedUnit'](),_0x2b3d81=_0x23b2bf==null?void 0x0:_0x23b2bf[_0x1dfcbf(0x3ac)]();if(!_0x2b3d81)throw Error(_0x1dfcbf(0x217));let _0x1ec8ea=new FormData();_0x1ec8ea[_0x1dfcbf(0x2a6)](_0x1dfcbf(0x26d),_0x87843e);let _0x47c7ff=this[_0x1dfcbf(0x2ce)]()+_0x1dfcbf(0x1f0)+_0x87843e['size']['toString']()+'&source='+_0xe4d98[_0x1dfcbf(0x1e2)]+_0x1dfcbf(0x290)+encodeURIComponent(_0x2b3d81),_0xe33883=(await this[_0x1dfcbf(0x261)][_0x1dfcbf(0x21a)](_0x47c7ff,{'body':_0x1ec8ea}))[_0x1dfcbf(0x3b7)][_0x1dfcbf(0x382)];if(typeof _0xe33883!='string'||!_0xe33883)throw Error(_0x1dfcbf(0x386));return _0xe33883;}[_0x128a93(0x2ce)](){const _0x300511=_0x128a93;var _0x59b861;return(_0x59b861=this[_0x300511(0x150)]()['uploadFileServerUrl'])==null?_0x300511(0x27a):_0x59b861;}[_0x128a93(0x150)](){const _0x17ae8d=_0x128a93;var _0xe88ae5;return(_0xe88ae5=this['_configService'][_0x17ae8d(0x1bc)](_0x17ae8d(0x14b)))==null?{}:_0xe88ae5;}};Rn=V([B(0x0,_0x37b5e1(_0x1fd0e9)),B(0x1,_0x37b5e1(_0x46ffbd)),B(0x2,_0x37b5e1(_0x450b7c))],Rn);function zn(_0x181814,_0x1802ee){const _0x596ee3=_0x128a93;var _0x29074e;if(_0x1802ee[_0x596ee3(0x1af)]!=null&&_0x181814[_0x596ee3(0x2d6)]>_0x1802ee[_0x596ee3(0x1af)])throw Error(_0x596ee3(0x34e));if((_0x29074e=_0x1802ee[_0x596ee3(0x180)])!=null&&_0x29074e[_0x596ee3(0x2c4)]&&!_0x1802ee[_0x596ee3(0x180)][_0x596ee3(0x233)](_0x3e6325=>_0x181814[_0x596ee3(0x2b6)]===_0x3e6325||_0x181814[_0x596ee3(0x1d2)][_0x596ee3(0x322)](_0x3e6325)||_0x3e6325['endsWith']('/*')&&_0x181814['type'][_0x596ee3(0x3ae)](_0x3e6325[_0x596ee3(0x2e2)](0x0,-0x1))))throw Error(_0x596ee3(0x2ee));}function _0x4225(){const _0x2dd933=['/collaborator','_roomCreated$','_executeRemoteChangeset','enableAuthServer','_getUploadFileURL','onRemoteRej','onMissedChangesetFetched','location','unitID','[CollaborationSession]:\x20should\x20not\x20send\x20message\x20when\x20the\x20session\x20is\x20offline!','_init','_createInitialStateImpl','size','open$','NEW_CHANGESETS','permissionRejEvent','getCurrentUser','src','_getAPIPrefix','params','Failed\x20to\x20update\x20permission\x20point','onSyncEditingCollabCursor','synced','responseType','slice','_updateState','transformSelections','_handler','_onMessage','ERROR_IMAGE_TYPE','stopTime','[PendingState]:\x20received\x20rejection.','/allowed','_revisionService','snapshot','capture','[CollaborationAttachmentIoService]:\x20attachment\x20type\x20is\x20not\x20accepted.','disposeWithMe','baseRev','get','SOCKET_FAILED','submit\x20changeset\x20error!','_fetchMissChangesets','SUCCUSS','_sender','roles','_updateStatus','url','action','attachment','infoRsp','then','JOIN_ROOM_FAILED','save\x20fail\x20reason\x20is\x20','_initCloseConn','getUnitStatus$','[SyncedState]:\x20received\x20rejection.','_transformAndApplyRemoteChangeset','_joinRoom','/-/object/-/batch_allowed','UNIVER_DOC','isPermissionRej','init','commentUpdate$','[UniverCollaborationClientPlugin]:\x20you\x20must\x20provide\x20a\x20socketService\x20implementation\x20in\x20config!','collaboratorID','_collaborationUIEventService','sort','/role','_tryReconnect','USERS_LEAVE','JOIN_ROOM_FULL','_univerInstanceService','UNIVER_BOARD','loadSheet','PERMISSION_REJ','CONFLICT','send','fromCharCode','_undoRedoService','enableSingleActiveInstanceLock','batchAllowed','sendHeartbeatTimer','INGEST','__splitChunk__','socketMessageSubscription','complete','_commentService','endsWith','onMutationExecutedForCollab','text-x','addImageSourceCache','_transformSelections','getTime','SUBMIT_CHANGESET','memberID','_onRecvEvent','readAsDataURL','_decreaseWaiting','findIndex','prototype','charCodeAt','LIVESHARE_NEW_HOST','joinRsp','_clearScheduledTask','onTransformRemoteChangesetByIMECache','now','floor','_resendWithTimeout','_startTelemetryCollaborationNewChangeset','disableLocalCache','deepClone','toRemote','_getUndoStack','getDeserializedSheetBlock','loadSlide','userID','loadDoc','getResourcesRequest','[CollaborationEntity]','[CollaborationSession]','update','AWAITING_WITH_PENDING','_getDownloadEndpointURL','_logService','joinEvent','target','_injector','session.room-not-exists','editing\x20status\x20changed\x20to','fetch_missing','compose','[CollaborationAttachmentIoService]:\x20attachment\x20exceeds\x20max\x20size.','onLocalMutation','fetchMiss','endpoint','_getCtorByUniverInstanceType','OTHER_CLIENT_EDITING','number','getLatestCsReqIdBySid','&to=','setShowComponents','dispose','transformStack\x20failed!','updateMember','reject','onTransformSelections','setWaitCount','getRoom','_localeService','list','_disableEditing','univer-pro.collaboration-client.single-active-unit-service','encode','_snapshotService','LOCAL_CACHE_INTERVAL','put','GLOBAL_ROOMS_CNT_EXCEEDS','session.room-permission-denied','PENDING','commentUpdateEvent','workbook','mutations','fetchMissingChangesets','requestParams','_transformStateCache','_getLoginPath','/object','hostname','POST','pluginName','[FetchMissState]','_waitForHeartbeatResponse','CHANGESET_SHOULD_RETRY','univer-pro.collaboration-client-adapter-service','headers','/universer-api/oidc/authpage','function','_sessionChannels','_collabSessionService','retryConnectingTimer','_event$','revision','OTHER_CLIENTS_EDITING','FileId','CHANGESET_REJ','_undoStacks','_exhaustRemoteChangesetQueue','[CollaborationAttachmentIoService]:\x20failed\x20to\x20upload\x20attachment.','_lockTransition','endpointKey','_adapter','fetchThroughInterceptors','_unitInfo$','LIVESHARE_TERMINATE','HEARTBEAT','_acknowledgedAwaitingRevision','223752avKiOe','LIVESHARE_REQUEST_HOST','[OfflineState]:\x20received\x20changeset.','[FetchingMissState]:\x20invalid\x20calling\x20to\x20`resend`.','_socketMessageSubscription','/universer-api/snapshot','encodeURIComponent','trim','avatar','_config','\x0aCurrent:\x20','IDLE','_initDependencies','resolveUnit','This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!','pending','string','_transformRemoteChangesetByStateCache','getUnit','DEFAULT_FILE_NAME','connection\x20error','onSendChangeset','isCompositionEnd','_changesetReqId','_commandService','UPDATE_PERMISSION_OBJ','_getSocketChannel','_memberService','10868hIKYQe','getUnitId','awaiting_with_pending','startsWith','objectType','changeset','status$','sessionStatus','_singleActiveUnitService','subject','isArray','forEach','body','_telemetryService','unsubscribe','failed\x20to\x20apply\x20missed\x20changesets!','CHANGESET_ACK','deleteCollaborator','message$','COMMENT_UPDATE','state','_change$','min','/universer-api/comb','fetching\x20missing\x20changesets\x20from\x20','onStateChange','includes','_throwTelemetryCollaborationNewChangeset','_registerDependencies','_resendTimeout','_members','withCredentials','updateOfflineData','constructor','has','result','_state$','objectID','[CollaborationSessionService]:\x20socket\x20error','onCommentUpdate','getOwnPropertyDescriptor','_acknowledgeAwaiting','[CollaborationSocketService]:\x20failed\x20to\x20create\x20socket!','entries','_sessions','_getSignURL','pauseCollaboration','signUrlServerUrl','_awaitingChangeset','unit-cache-','_replayCachedMutations','allowed','_unlockTransition','_onRemoteRetry','/universer-api/snapshot/','rev','ERROR_EXCEED_SIZE','[CollaborationSocketService]:\x20failed\x20to\x20get\x20web\x20socket\x20factory!','loadBoard','UNIVER_SHEET','setConfig','close$','COLLABORATION_SESSION_TARGET_UNIT_ID_REQUIRED','[PendingState]:\x20unhandled\x20univer\x20type:\x20','collaboration-client.config','_onCombEvent','method','USERS_ENTER','fetching\x20the\x20latest\x20document\x20from\x20the\x20server.','_getConfig','_upload','cfgEnableObjInherit','_identity','_collaborationTimeoutTimer','m2Prime','_cfgEnableObjInherit','_createHandler','_handleRemoteChangesets','add','fromCollab','loadBase','onMissingChangesets','_onConnectionFailed','_resolveSessionIdentity','_resendTimer','event$','_roomMembers','onRemoteChangeset','[PendingState]:\x20invalid\x20calling\x20to\x20`resend`.','UNIVER_SLIDE','packageName','_type','socket\x20open.','1020VsiaBR','/block/','changesets','_sendHeartbeat','1546641NMqpaV','_getSendChangesetTimeout','PSEUDO_FETCH_MISSING_RESULT','NOT_COLLAB','_onRemoteRejected','loginUrlKey','_toggleOnline','emitEvent','[CollaborationUndoRedoService]','removeMember','hasOwnProperty','_onLocalMutation','Unknown\x20type.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','getFocusedUnit','_onConnectionOpen','cmd','blockRanges','_isPermissionRej','[CollaborationSessionService]','retryCount','accept','_onRemoteACK','_onOffline','editingUnit','transformUndoRedo','_socket','_rescheduleHeartbeat','CLOSE_ROOM','liveShareNewHost','getActiveSheet','shouldCloseConn','_clearRetryConnectingTimer','decorate','localeService','_changesetSessionId','_unitLoaded$','pipe','_syncEditingCollabCursor','@univerjs-pro/collaboration-client','JOIN_ROOM_NOT_EXISTS','title','_submitChangeset','_replaceFileID','updatePermissionPoint','getAllMembers','incrementRevOfUnit','45364bZcxGZ','onRemoteRetry','localUnitId','_onRemoteChangeset','_clearHeartbeatTimer','_initUnitPermissionChange','_clearTimeoutTimer','asObservable','actions','16kzPUrD','_shouldReportTelemetry','objects','saveImage','_remoteChangesetQueue','upload','getValue','collabSubmitChangesetUrl','_transformIMECache','unitType','originalMeta','_tryEnsureSocket','maxSize','requireSession','_socketChannels','find','HEARTBEAT_TIMEOUT','UUID','createSocket','toString','{fileID}','base-ui.attachment-io.service','ws://127.0.0.1:8000/universer-api/comb/connect','loadUnit','getUploadOptions','getConfig','_docStateChangeManagerService','REMOTE_UNISCRIPT_EXECUTION_ENDPOINT','every','[FetchingMissState]:\x20not\x20expected\x20to\x20receive\x20ack\x20when\x20`this._awaitingChangeset`\x20is\x20null!','\x20-\x20','downloadEndpointUrl','/new_changes','_onConflict','UNIVER_BASE','startTime','values','_eventService','ERROR_IMAGE','_imageSourceCache','ONLINE','getTypeOfUnitDisposed$','loadOfflineData','create','setCfgEnableObjInherit','interceptor','_sessionStatus$','name','textRanges','updatePermissionObjEvent','onload','_onFetchMissResult','transformMutationsWithChangeset','getWorkbookSelections','next','_maxTotalRetryTimeout','_entities','symbol','_toggleOffline','_pendingMutations','_showConflictNotification','executeCommand','COMPRESS_MUTATION_SEND','UnitEmbedded','splice','_telemetryInfo','_schedule','getUnitType','/unit/','_state','collaMsg','JOIN','subscribe','Error\x20on\x20receiving\x20event','toLocal','getSheetBlock','members$','?size=','awaitingChangeset','502hPOdkq','default','SNAPSHOT_URL_KEY','updateCursorEvent','URL','_listenToNetworkCondition','_substituteUndoStack','newCsEvent','UNIVER_COLLABORATION_CLIENT_PLUGIN','RECV','authzUrl','_initMergeInterceptor','_localCacheService','delete','saveSheetBlock','_initRequestHeader','__Key__','COLLABORATION_CHANGESET_TRANSLATION_REQUIRED','data','\x20in\x20_schedule.','sessionStatus$','session','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','Univer','_sendingTimer','conflict','listRoles','_waitCount','_getRedoStack','_transformUndoredo','origin','reqId','FAIL','LIVESHARE_OPERATION','call','/-/object/list','selections','[CollaborationAttachmentIoService]:\x20unitId\x20is\x20not\x20found.','getCollabEntity$','_createSession','post','_collaborationPaused','[OfflineState]:\x20invalid\x20calling\x20to\x20`resend`.','subUnitId','[PendingState]:\x20received\x20acknowledgement.','sid','iterator','awaiting','collaboration-client.local-cache-service','getInterceptPoints','getCurrentSelections','set','localCacheService','getTypeOfUnitAdded$','_substituteRedoStack','_createSocket','transformChangesets','csShouldRetryEvent','error','UPDATE_CURSOR','registerHTTPInterceptor','_scheduleCollaborationTimeoutTimer','socketReady','_collaborationSessionService','session.room-cnt-exceeds','some','People','getCurrentRevOfUnit','onTransformState','LEAVE','[CollaborationController]:\x20invalid\x20univer\x20type:\x20','_applyRemoteChangeset','code','_hasSessionsForEndpoint','telemetry\x20info\x20is\x20not\x20initialized','socket\x20close','getUnitOnRev','collaborators','_removeRoom','state$','[FetchingMissState]:\x20received\x20stale\x20ack\x20revision:\x20','[serializeCombRequest]:\x20should\x20not\x20fall\x20into\x20default\x20branch!','_queuedRemoteChangesets','dispose$','csRejEvent','_transformService','_scheduleCompleteTimestamp','toggleOnline','clear','unit','toggleOffline','filter','map','FETCH_MISSING','10PVUKbS','collaboration_new_changeset','[DataLoaderService]','_HTTPService','override','_entityInit$','equals','HEARTBEAT_INTERVAL','_commentUpdate$','_instanceService','_onUserJoin','_incrementRevisionNumber','reconnect','saveAttachment','285VaIOoz','_compressMutationService','confirm','_httpService','unknown','push','_handlerCallback','csAckEvent','_createInitialState','/object/','COMPRESS_MUTATION_APPLY','_redoStacks','_clearUndo','[OfflineState]:\x20received\x20rejection.','_transformStack','file','saveChangeset','you\x20should\x20override\x20\x22IUndoRedoService\x22\x20provided\x20in\x20\x22core\x22\x20package!','&source=','RETRY_CONNECTING_MAX_COUNT','[ConflictState]:\x20invalid\x20calling\x20to\x20`resend`.','setCurrentUser','703507iYgFcm','_updateLocalCache','reduce','error$','_userManagerService','createInstance','/universer-api/stream/file/upload','updateSnapshot','_networkConditionService','replace','resourceIDs','_stopTelemetryCollaborationNewChangeset','_configService','saveSnapshot','BASE64','onlyLocal','debug','unitId','_members$','enableCollaboration','uploadFileServerUrl','_checkMissing','SUBMIT_CHANGESET_TIMEOUT','PERMISSION_DENIED','appendMutation','LIVESHARE_FETCH_OPERATIONS','SOCKET_FAILED_RETRY','_startCollaboration','&assign=','candidateSocket','5526216nPVDJO','UNISCRIPT_RUN','HELLO','_clearLocalCache','catch','stringify','_emitMembers','_pendingSessions','OFFLINE','_transitionLocked','onRemoteAck','40WzUtLa','[CollaborationEntity]:\x20cannot\x20lock\x20transition\x20twice!\x20This\x20is\x20an\x20implementation\x20error,\x20meaning\x20you\x20transit\x20the\x20collaboration\x20state\x20again\x20in\x20the\x20process\x20of\x20a\x20previous\x20transition.\x20This\x20should\x20never\x20happen.','resend','_isEchoedAwaitingChangeset','onTransformIME','MUTATION','\x0aAfter:\x20','c1Prime','_transformRemoteChangesetByIMECache','append','readyForCollab','socket$','status','missingChangesets','/resources','getImage','[SyncedState]:\x20received\x20acknowledgement.','loadUnitOfRevision','not_collab','close','/universer-api/user/session-ticket','routeKey','_status$','_getCurrentRevision','NO_OTHER_CLIENTS_EDITING','type','eventID','timeoutTimer','closeSession','getCollabEntity','getMemberID','/rev/','_getAPIPrefixPath','_permissionService','/universer-api/authz','getSnapshotAPIPath','object','_sheetTransformSelectionsService','_acknowledgeAwaitingIfReady','length','[FetchMissState]:\x20missing\x20changesets\x20response\x20still\x20has\x20revision\x20gaps.','getMember','offline','copyFileMeta','resolve'];_0x4225=function(){return _0x2dd933;};return _0x4225();}let Bn=class{constructor(_0x23b1de,_0x5e928a,_0x1b2074){const _0x556517=_0x128a93;this['_configService']=_0x23b1de,this['_httpService']=_0x5e928a,this[_0x556517(0x18d)]=_0x1b2074,this[_0x556517(0x308)]();}['init'](){const _0x4fd035=_0x128a93;this[_0x4fd035(0x261)][_0x4fd035(0x22e)]({'priority':0x1,'interceptor':(_0x20fc5c,_0x2f459d)=>_0x2f459d(_0x20fc5c)[_0x4fd035(0x190)](_0x35e512(async _0x4060bb=>{const _0x3db3fa=_0x4fd035;let _0xfa75b3=_0x4060bb;if(_0xfa75b3[_0x3db3fa(0x2a9)]===0x191){if(typeof window>'u')throw Error('[AuthServerService]:\x20you\x20should\x20provide\x20authentication\x20info\x20on\x20Node.js.');if(window[_0x3db3fa(0x260)](this[_0x3db3fa(0x18d)]['t']('collaboration-client.auth.needGotoLoginAlert'))){let _0x16bc60=window[_0x3db3fa(0x395)](window['location']['href']);window[_0x3db3fa(0x2d1)]['href']=this[_0x3db3fa(0x370)]()+'?url='+_0x16bc60;}}return _0xfa75b3;}))});}[_0x128a93(0x370)](){const _0xef4d2c=_0x128a93;var _0x743675;let _0x12b6a3=this[_0xef4d2c(0x280)]['getConfig'](L);return(_0x743675=_0x12b6a3==null?void 0x0:_0x12b6a3[_0xef4d2c(0x171)])==null?_0xef4d2c(0x37a):_0x743675;}};Bn=V([B(0x0,_0x46ffbd),B(0x1,_0x37b5e1(_0x1fd0e9)),B(0x2,_0x37b5e1(_0x5ae389))],Bn);let Vn=class extends _0x403d15{constructor(_0x48b178,_0x1b9446){const _0x3fec86=_0x128a93;super(),this[_0x3fec86(0x253)]=_0x48b178,this[_0x3fec86(0x280)]=_0x1b9446,R(this,_0x3fec86(0x156),!0x1),this['_initMergeInterceptor']();}[_0x128a93(0x1fd)](){const _0x410ebd=_0x128a93;let _0x3ec484=this;this[_0x410ebd(0x2ef)](this['_HTTPService'][_0x410ebd(0x22e)]({'priority':0x3e7,'interceptor':_0x5bcb2b({'isMatch'(_0x2fc931){const _0x5094dd=_0x410ebd;var _0x56d99e;if(_0x2fc931[_0x5094dd(0x14d)]===_0x5094dd(0x373)&&(_0x56d99e=_0x2fc931[_0x5094dd(0x36e)])!=null&&_0x56d99e[_0x5094dd(0x3b7)]){let {objectID:_0x11ecef,objectType:_0xf96ca8}=_0x2fc931[_0x5094dd(0x36e)][_0x5094dd(0x3b7)]||{};if(!_0x11ecef||_0xf96ca8===void 0x0)return!0x1;let _0x34e3c4=_0x3ec484[_0x5094dd(0x2bd)]()+'/'+_0xf96ca8+_0x5094dd(0x267)+_0x11ecef+_0x5094dd(0x2ea);if(_0x2fc931[_0x5094dd(0x2f9)]===_0x34e3c4)return!0x0;}return!0x1;},'getParamsFromRequest'(_0x78b36f){const _0x1ba6b7=_0x410ebd;var _0x5afa1e;return(_0x5afa1e=_0x78b36f[_0x1ba6b7(0x36e)])==null?void 0x0:_0x5afa1e[_0x1ba6b7(0x3b7)];},'mergeParamsToRequest'(_0x295d73,_0xe1f9bc){const _0xdb152d=_0x410ebd;let _0x117012=_0x3ec484[_0xdb152d(0x2bd)]()+_0xdb152d(0x305),_0x5522b3=_0x295d73[_0xdb152d(0x276)]((_0x245e1d,_0x465815)=>{const _0x3fdee9=_0xdb152d;let {unitID:_0x3a5cd4,objectID:_0x5d985b,objectType:_0x214515,actions:_0x5bcd8c}=_0x465815;return _0x245e1d[_0x3a5cd4]||(_0x245e1d[_0x3a5cd4]={}),_0x245e1d[_0x3a5cd4][_0x5d985b]||(_0x245e1d[_0x3a5cd4][_0x5d985b]={'objectID':_0x5d985b,'objectType':_0x214515,'actions':[]}),_0x245e1d[_0x3a5cd4][_0x5d985b][_0x3fdee9(0x1a2)][_0x3fdee9(0x263)](..._0x5bcd8c),_0x245e1d;},{}),_0x419643=[];for(let _0x378e8b in _0x5522b3)for(let _0x4a22db in _0x5522b3[_0x378e8b]){let {actions:_0x13cdcf,objectType:_0x6de48c}=_0x5522b3[_0x378e8b][_0x4a22db],_0x5d1fe9=[...new Set(_0x13cdcf)];_0x419643[_0xdb152d(0x263)]({'unitID':_0x378e8b,'objectID':_0x4a22db,'objectType':_0x6de48c,'actions':_0x5d1fe9});}return new _0xb81b46(_0xdb152d(0x373),_0x117012,{'headers':_0xe1f9bc[_0xdb152d(0x379)],'withCredentials':_0xe1f9bc[_0xdb152d(0x3ca)],'responseType':_0xe1f9bc[_0xdb152d(0x2e1)],'body':{'requests':_0x419643}});}},{'distributeResult'(_0x342089,_0x2dfdf1){const _0x3df1d0=_0x410ebd;let {objectActions:_0x4ff045}=_0x342089;return _0x2dfdf1[_0x3df1d0(0x24e)](_0x236eda=>{const _0x666757=_0x3df1d0;let {unitID:_0xdaa03b,objectID:_0x5d4f60,actions:_0x233da4}=_0x236eda,_0x31f2ae=_0x4ff045['find'](_0x5f1b91=>_0x5f1b91['unitID']===_0xdaa03b&&_0x5f1b91[_0x666757(0x3d0)]===_0x5d4f60);return{'config':_0x236eda,'result':{'actions':_0x233da4[_0x666757(0x24e)](_0x56da51=>_0x31f2ae==null?void 0x0:_0x31f2ae[_0x666757(0x1a2)]['find'](_0x26dff9=>_0x26dff9[_0x666757(0x2fa)]===_0x56da51))[_0x666757(0x24d)](_0x4bddc3=>!!_0x4bddc3),'error':_0x342089[_0x666757(0x22c)]}};});}})}));}[_0x128a93(0x2bd)](){const _0x4cd5aa=_0x128a93;var _0x4669b9;let _0x14207a=this[_0x4cd5aa(0x280)][_0x4cd5aa(0x1bc)](L);return(_0x4669b9=_0x14207a==null?void 0x0:_0x14207a[_0x4cd5aa(0x1fc)])==null?_0x4cd5aa(0x2bf):_0x4669b9;}async[_0x128a93(0x1ce)](_0x254b94){const _0x26192d=_0x128a93;let _0x261d5e=this['_getAPIPrefixPath']()+'/'+_0x254b94[_0x26192d(0x3af)]+_0x26192d(0x371);return(await this[_0x26192d(0x253)]['post'](_0x261d5e,{'body':_0x254b94}))[_0x26192d(0x3b7)][_0x26192d(0x3d0)]||'';}async[_0x128a93(0x360)](_0x2d66fd){const _0x2b49cc=_0x128a93;let _0x49eceb=this['_getAPIPrefixPath']()+_0x2b49cc(0x215);return(await this['_HTTPService'][_0x2b49cc(0x21a)](_0x49eceb,{'body':_0x2d66fd}))[_0x2b49cc(0x3b7)][_0x2b49cc(0x1a5)];}async[_0x128a93(0x343)](_0x2880dc){const _0x18fdbe=_0x128a93;var _0xd267d6;let _0x57e0a6=this[_0x18fdbe(0x2bd)]()+'/'+_0x2880dc[_0x18fdbe(0x3af)]+_0x18fdbe(0x267)+_0x2880dc[_0x18fdbe(0x3d0)],_0x115bbc=await this[_0x18fdbe(0x253)][_0x18fdbe(0x366)](_0x57e0a6,{'body':_0x2880dc});if((_0x115bbc==null||(_0xd267d6=_0x115bbc['body'])==null||(_0xd267d6=_0xd267d6[_0x18fdbe(0x22c)])==null?void 0x0:_0xd267d6[_0x18fdbe(0x23a)])!==0x1)throw Error(_0x18fdbe(0x2de));}async[_0x128a93(0x13e)](_0x4b9421){const _0xf7bafe=_0x128a93;let _0x17bf20=this[_0xf7bafe(0x2bd)]()+'/'+_0x4b9421[_0xf7bafe(0x3af)]+'/object/'+_0x4b9421[_0xf7bafe(0x3d0)]+_0xf7bafe(0x2ea);return(await this['_HTTPService'][_0xf7bafe(0x21a)](_0x17bf20,{'body':_0x4b9421}))[_0xf7bafe(0x3b7)][_0xf7bafe(0x1a2)];}async[_0x128a93(0x31b)](_0x5d9573){const _0x71ac85=_0x128a93;let _0x3df77d=this['_getAPIPrefixPath']()+_0x71ac85(0x305);return(await this[_0x71ac85(0x253)]['post'](_0x3df77d,{'body':{'requests':_0x5d9573}}))[_0x71ac85(0x3b7)]['objectActions'];}async[_0x128a93(0x20c)](_0x394b67){const _0xd3113b=_0x128a93;let _0x2fec7c=this[_0xd3113b(0x2bd)]()+'/'+_0x394b67[_0xd3113b(0x3af)]+_0xd3113b(0x30e),_0x57e4d5=await this['_HTTPService'][_0xd3113b(0x21a)](_0x2fec7c,{'body':_0x394b67});return{'roles':_0x57e4d5[_0xd3113b(0x3b7)][_0xd3113b(0x2f7)],'actions':_0x57e4d5[_0xd3113b(0x3b7)]['actions']};}async[_0x128a93(0x3bc)](_0x11bf98){const _0x4ecce6=_0x128a93;let _0x4f7ea5=this['_getAPIPrefixPath']()+_0x4ecce6(0x2ca);await this[_0x4ecce6(0x253)][_0x4ecce6(0x1ff)](_0x4f7ea5,{'params':{'collaboratorID':_0x11bf98[_0x4ecce6(0x30b)],'objectID':_0x11bf98[_0x4ecce6(0x3d0)],'unitID':_0x11bf98[_0x4ecce6(0x2d2)]}});}async['updateCollaborator'](_0x92c611){const _0x383438=_0x128a93;let _0x5ad565=this[_0x383438(0x2bd)]()+_0x383438(0x2ca);await this[_0x383438(0x253)]['patch'](_0x5ad565,{'body':_0x92c611});}async['createCollaborator'](_0x1151a1){const _0x13b343=_0x128a93;let _0x4cde2b=this[_0x13b343(0x2bd)]()+_0x13b343(0x2ca);await this[_0x13b343(0x253)][_0x13b343(0x21a)](_0x4cde2b,{'body':_0x1151a1});}async['listCollaborators'](_0x23cab6){const _0x202ab4=_0x128a93;var _0x3e9da7;let _0x188dbc=this['_getAPIPrefixPath']()+_0x202ab4(0x2ca),_0x5cc3ad=await this[_0x202ab4(0x253)]['get'](_0x188dbc,{'params':{'objectID':_0x23cab6['objectID'],'unitID':_0x23cab6[_0x202ab4(0x2d2)]}});return this[_0x202ab4(0x1cf)]((_0x3e9da7=_0x5cc3ad['body'][_0x202ab4(0x152)])==null?!0x1:_0x3e9da7),_0x5cc3ad[_0x202ab4(0x3b7)][_0x202ab4(0x23f)];}async['putCollaborators'](_0xf88b3f){const _0x456b8d=_0x128a93;let _0x57c292=this['_getAPIPrefixPath']()+_0x456b8d(0x2ca);await this[_0x456b8d(0x253)][_0x456b8d(0x366)](_0x57c292,{'body':_0xf88b3f});}[_0x128a93(0x1cf)](_0x367254){const _0x142f0e=_0x128a93;this[_0x142f0e(0x156)]=_0x367254;}['getCfgEnableObjInherit'](){const _0x38bdff=_0x128a93;return this[_0x38bdff(0x156)];}};Vn=V([B(0x0,_0x37b5e1(_0x1fd0e9)),B(0x1,_0x37b5e1(_0x46ffbd))],Vn);function Hn(_0x376895){const _0x5460c1=_0x128a93;let _0x5c1e6a=atob(_0x376895),_0xb5796f=new Uint8Array(_0x5c1e6a[_0x5460c1(0x2c4)]);for(let _0x2f181d=0x0;_0x2f181d<_0x5c1e6a[_0x5460c1(0x2c4)];_0x2f181d++)_0xb5796f[_0x2f181d]=_0x5c1e6a[_0x5460c1(0x32f)](_0x2f181d);return _0xb5796f;}function Un(_0x177c14){const _0x50dcb8=_0x128a93;let _0xb5dd34='';for(let _0x159f8d=0x0;_0x159f8d<_0x177c14['length'];_0x159f8d++)_0xb5dd34+=String[_0x50dcb8(0x318)](_0x177c14[_0x159f8d]);return btoa(_0xb5dd34);}function Wn(_0x178d93,_0x3d81ce){let _0x2b3acb=Hn(_0x3d81ce),_0x2b4d35=_0x2416e6(0x10);return Un(_0xe751ad(_0x2b4d35,_0xd1e016(_0x2b3acb,_0x2b4d35)['encrypt'](_0x2947e3(_0x178d93))));}function Gn(){const _0x4e8707=_0x128a93;let _0x5df4d4=_0x497abb()[_0x4e8707(0x202)];if(typeof window<'u'&&window[_0x4e8707(0x2d1)]!==void 0x0&&_0x5df4d4){let _0x491feb={'time':Math[_0x4e8707(0x335)](Date[_0x4e8707(0x334)]()/0x3e8),'domain':location[_0x4e8707(0x372)]};return Wn(JSON[_0x4e8707(0x297)](_0x491feb),_0x5df4d4);}}let Kn=class{constructor(_0x16eaf9){const _0x36e40a=_0x128a93;this['_httpService']=_0x16eaf9,this[_0x36e40a(0x201)]();}[_0x128a93(0x201)](){this['_httpService']['registerHTTPInterceptor']({'interceptor':(_0x16d8d5,_0x295e0e)=>{const _0x422805=_0x1478;let _0x573869=Gn();return _0x573869&&_0x16d8d5[_0x422805(0x379)][_0x422805(0x225)]('x-univer-host',_0x573869),_0x295e0e(_0x16d8d5);}});}};Kn=V([B(0x0,_0x37b5e1(_0x1fd0e9))],Kn);let qn=class extends _0x738f09{constructor(_0x3d3011,_0x28dac6,_0x6b0460){const _0xf9e2ed=_0x128a93;super(),this[_0xf9e2ed(0x346)]=_0x3d3011,this['_snapshotService']=_0x28dac6,this['_localCacheService']=_0x6b0460,R(this,_0xf9e2ed(0x38b),new _0x4e690d(null)),R(this,_0xf9e2ed(0x18f),new _0x10b8bf()),R(this,'unitInfo$',this[_0xf9e2ed(0x38b)][_0xf9e2ed(0x1a1)]()),R(this,'unitLoaded$',this[_0xf9e2ed(0x18f)][_0xf9e2ed(0x1a1)]());}[_0x128a93(0x358)](){const _0x15778a=_0x128a93;super[_0x15778a(0x358)](),this[_0x15778a(0x18f)][_0x15778a(0x320)](),this[_0x15778a(0x38b)]['complete']();}async[_0x128a93(0x2ae)](_0x5b8b7c,_0x34a640,_0x2eae75,_0x269f70){const _0x3853c0=_0x128a93;this['_unitInfo$']['next']({'unitId':_0x5b8b7c,'type':_0x34a640,'subUnitId':_0x269f70});let _0x5d088a=null;switch(_0x34a640){case _0x61571e['UNIVER_SHEET']:_0x5d088a=await this[_0x3853c0(0x364)][_0x3853c0(0x314)](_0x5b8b7c,_0x2eae75,void 0x0,{'initialSubUnitId':_0x269f70});break;case _0x61571e[_0x3853c0(0x306)]:_0x5d088a=await this[_0x3853c0(0x364)][_0x3853c0(0x33f)](_0x5b8b7c,_0x2eae75);break;case _0x61571e['UNIVER_SLIDE']:_0x5d088a=await this[_0x3853c0(0x364)][_0x3853c0(0x33d)](_0x5b8b7c,_0x2eae75);break;case _0x61571e[_0x3853c0(0x313)]:_0x5d088a=await this[_0x3853c0(0x364)][_0x3853c0(0x145)](_0x5b8b7c,_0x2eae75);break;case _0x61571e[_0x3853c0(0x1c5)]:_0x5d088a=await this[_0x3853c0(0x364)][_0x3853c0(0x15b)](_0x5b8b7c,_0x2eae75);break;default:this['_logService'][_0x3853c0(0x22c)](_0x3853c0(0x252),_0x3853c0(0x178));break;}return _0x5d088a&&this[_0x3853c0(0x18f)][_0x3853c0(0x1d9)](_0x5d088a),_0x5d088a;}async[_0x128a93(0x1ba)](_0x2f9a19,_0x12c157,_0x1a1567){const _0xfb946b=_0x128a93;var _0x3310b0;this[_0xfb946b(0x38b)][_0xfb946b(0x1d9)]({'unitId':_0x2f9a19,'type':_0x12c157,'subUnitId':_0x1a1567});let _0x5c1036=0x0,_0x34e586=await((_0x3310b0=this[_0xfb946b(0x1fe)])==null?void 0x0:_0x3310b0[_0xfb946b(0x1cd)](_0x2f9a19));return _0x34e586&&(_0x34e586[_0xfb946b(0x1f1)]||_0x34e586[_0xfb946b(0x36c)][_0xfb946b(0x2c4)]!==0x0)&&(_0x5c1036=_0x34e586[_0xfb946b(0x142)]),_0x5c1036===0x0&&this['_logService'][_0xfb946b(0x284)](_0xfb946b(0x252),_0xfb946b(0x14f)),this['loadUnitOfRevision'](_0x2f9a19,_0x12c157,_0x5c1036,_0x1a1567);}};qn=V([B(0x0,_0x470483),B(0x1,_0x37b5e1(_0x3b5530)),B(0x2,_0x29c9af(U))],qn);let Jn=class{constructor(_0x46f7f2,_0x2f8467,_0x2f2714){const _0x5e91a5=_0x128a93;this['_httpService']=_0x46f7f2,this[_0x5e91a5(0x280)]=_0x2f8467,this[_0x5e91a5(0x312)]=_0x2f2714,R(this,_0x5e91a5(0x20d),0x0),R(this,_0x5e91a5(0x3c0),new _0x10b8bf()),R(this,'change$',this[_0x5e91a5(0x3c0)]),R(this,_0x5e91a5(0x1ca),new Map());}[_0x128a93(0x35d)](_0x3bf2ab){const _0x4521db=_0x128a93;this[_0x4521db(0x20d)]=_0x3bf2ab,this[_0x4521db(0x3c0)]['next'](_0x3bf2ab);}['getImageSourceCache'](_0x4eb0ff,_0x4d9bb8){const _0x4795bf=_0x128a93;if(_0x4d9bb8===_0x1a4dce[_0x4795bf(0x282)]){let _0x2356ab=new Image();return _0x2356ab[_0x4795bf(0x2db)]=_0x4eb0ff,_0x2356ab;}return this[_0x4795bf(0x1ca)][_0x4795bf(0x2f1)](_0x4eb0ff);}[_0x128a93(0x325)](_0x339479,_0x21344c,_0x169e1e){const _0x285981=_0x128a93;_0x21344c===_0x1a4dce['BASE64']||_0x169e1e==null||this['_imageSourceCache'][_0x285981(0x225)](_0x339479,_0x169e1e);}async[_0x128a93(0x2ac)](_0x28712c){const _0x15dd97=_0x128a93;try{let _0xcc59b9=this[_0x15dd97(0x196)](this[_0x15dd97(0x3d8)](),''+_0x28712c),_0x48479c=(await this[_0x15dd97(0x261)][_0x15dd97(0x2f1)](_0xcc59b9))[_0x15dd97(0x3b7)];if(_0x48479c[_0x15dd97(0x22c)]&&_0x48479c['error']['code']===_0x15bc37['OK']){let _0x12201a=_0x1bb22f(_0x48479c[_0x15dd97(0x2f9)],this[_0x15dd97(0x345)]());return Promise[_0x15dd97(0x2c9)](_0x12201a);}return Promise[_0x15dd97(0x35b)](_0x48479c[_0x15dd97(0x22c)]);}catch(_0x50e0c7){return Promise[_0x15dd97(0x35b)](_0x50e0c7);}}async[_0x128a93(0x1a6)](_0x455355){const _0xd9e8c4=_0x128a93;let _0x1626b3='';if(!_0x1e72e6[_0xd9e8c4(0x3c5)](_0x455355[_0xd9e8c4(0x2b6)]))return this[_0xd9e8c4(0x32c)](),Promise[_0xd9e8c4(0x35b)](Error(_0x4b1921[_0xd9e8c4(0x2e7)]));if(_0x455355[_0xd9e8c4(0x2d6)]>_0x59aa17())return this[_0xd9e8c4(0x32c)](),Promise[_0xd9e8c4(0x35b)](Error(_0x4b1921[_0xd9e8c4(0x143)]));try{let _0x2f7af0=new FormData();_0x2f7af0['append'](_0xd9e8c4(0x26d),_0x455355);let _0x40f9d6=this[_0xd9e8c4(0x312)][_0xd9e8c4(0x179)](),_0x1cb10e=_0x40f9d6==null?void 0x0:_0x40f9d6[_0xd9e8c4(0x3ac)]();if(!_0x1cb10e)throw Error('unitId\x20is\x20not\x20found');let _0x2566f8=this[_0xd9e8c4(0x2ce)]()+_0xd9e8c4(0x1f0)+_0x455355['size'][_0xd9e8c4(0x1b6)]()+_0xd9e8c4(0x270)+_0xe4d98[_0xd9e8c4(0x1e2)]+_0xd9e8c4(0x290)+encodeURIComponent(_0x1cb10e),_0x52f2ad={'body':_0x2f7af0},_0x31f4a3=(await this[_0xd9e8c4(0x261)]['post'](_0x2566f8,_0x52f2ad))['body'];if(typeof _0x31f4a3[_0xd9e8c4(0x382)]!=_0xd9e8c4(0x39f))return this['_decreaseWaiting'](),Promise[_0xd9e8c4(0x35b)](Error(_0x4b1921[_0xd9e8c4(0x1c9)]));_0x1626b3=_0x31f4a3[_0xd9e8c4(0x382)];}catch{return this[_0xd9e8c4(0x32c)](),Promise[_0xd9e8c4(0x35b)](Error(_0x4b1921['ERROR_IMAGE']));}return new Promise((_0x3eeff3,_0x4547b8)=>{const _0x37f185=_0xd9e8c4;let _0x2a655f=new FileReader();_0x2a655f[_0x37f185(0x32b)](_0x455355),_0x2a655f[_0x37f185(0x1d5)]=_0x29ff2a=>{const _0x1f37e6=_0x37f185;var _0x257745;let _0x20b2e7=(_0x257745=_0x29ff2a[_0x1f37e6(0x348)])==null?void 0x0:_0x257745['result'];if(_0x20b2e7==null){this[_0x1f37e6(0x32c)](),_0x4547b8(Error(_0x4b1921[_0x1f37e6(0x1c9)]));return;}_0x3eeff3({'imageId':_0x5d54f0(0x6),'imageSourceType':_0x1a4dce[_0x1f37e6(0x1b4)],'source':_0x1626b3,'base64Cache':_0x20b2e7,'status':_0x4b1921[_0x1f37e6(0x2f5)]}),this['_decreaseWaiting']();};});}[_0x128a93(0x2ce)](){const _0x2e6be2=_0x128a93;var _0x255207;let _0x196b3b=this[_0x2e6be2(0x280)][_0x2e6be2(0x1bc)](L);return(_0x255207=_0x196b3b==null?void 0x0:_0x196b3b[_0x2e6be2(0x288)])==null?_0x2e6be2(0x27a):_0x255207;}[_0x128a93(0x3d8)](){const _0x583c28=_0x128a93;var _0x4d380d;let _0x2f85e3=this['_configService'][_0x583c28(0x1bc)](L);return(_0x4d380d=_0x2f85e3==null?void 0x0:_0x2f85e3[_0x583c28(0x13a)])==null?'/universer-api/file/{fileID}/sign-url':_0x4d380d;}[_0x128a93(0x345)](){const _0x17e6da=_0x128a93;var _0x3b20cf;let _0x310a9c=this[_0x17e6da(0x280)][_0x17e6da(0x1bc)](L);return(_0x3b20cf=_0x310a9c==null?void 0x0:_0x310a9c[_0x17e6da(0x1c2)])==null?location[_0x17e6da(0x210)]:_0x3b20cf;}['_replaceFileID'](_0x463e8a,_0x79ef97){const _0x23da17=_0x128a93;return _0x463e8a[_0x23da17(0x27d)](_0x23da17(0x1b7),_0x79ef97);}[_0x128a93(0x32c)](){const _0x341f91=_0x128a93;--this[_0x341f91(0x20d)],this['_change$'][_0x341f91(0x1d9)](this[_0x341f91(0x20d)]);}};Jn=V([B(0x0,_0x37b5e1(_0x1fd0e9)),B(0x1,_0x46ffbd),B(0x2,_0x37b5e1(_0x450b7c))],Jn);let Yn=class{constructor(_0x4cb451,_0x59124b){this['_configService']=_0x4cb451,this['_HTTPService']=_0x59124b;}[_0x128a93(0x2bd)](){const _0x2864a0=_0x128a93;var _0x4e458b;let _0x461d45=this[_0x2864a0(0x280)][_0x2864a0(0x1bc)](L);return(_0x4e458b=_0x461d45==null?void 0x0:_0x461d45[_0x2864a0(0x1fc)])==null?_0x2864a0(0x2bf):_0x4e458b;}async['list'](_0x272d2c){const _0x4cd1be=_0x128a93;let _0x3a90a7=this[_0x4cd1be(0x2bd)]()+_0x4cd1be(0x2ca);return{'list':[{'title':_0x4cd1be(0x234),'mentions':(await this['_HTTPService'][_0x4cd1be(0x2f1)](_0x3a90a7,{'params':{'objectID':_0x272d2c[_0x4cd1be(0x285)],'unitID':_0x272d2c['unitId']}}))[_0x4cd1be(0x3b7)][_0x4cd1be(0x23f)][_0x4cd1be(0x24e)](_0x49d320=>({'objectId':_0x49d320['id'],'name':_0x49d320[_0x4cd1be(0x3b4)]['name'],'metadata':{'icon':_0x49d320[_0x4cd1be(0x3b4)][_0x4cd1be(0x397)]},'label':_0x49d320[_0x4cd1be(0x3b4)][_0x4cd1be(0x1d2)],'objectType':_0xb97631['PERSON']})),'metadata':{},'type':_0xb97631['PERSON']}]};}};Yn=V([B(0x0,_0x37b5e1(_0x46ffbd)),B(0x1,_0x37b5e1(_0x1fd0e9))],Yn);let Xn=class extends _0x738f09{constructor(_0x4fd83b,_0x32f63a,_0x2b16a2,_0x45ef8f,_0x2da328){const _0x4333ef=_0x128a93;super(),this[_0x4333ef(0x349)]=_0x4fd83b,this[_0x4333ef(0x312)]=_0x32f63a,this[_0x4333ef(0x2be)]=_0x2b16a2,this['_collaborationSessionService']=_0x45ef8f,this['_collaborationUIEventService']=_0x2da328,this['_initUnitPermissionChange'](),this[_0x4333ef(0x300)]();}[_0x128a93(0x300)](){const _0x13ae0d=_0x128a93;let _0x20696a=async _0x31f3b4=>{const _0x36afeb=_0x1478;(await this[_0x36afeb(0x231)][_0x36afeb(0x1b0)](_0x31f3b4))[_0x36afeb(0x160)][_0x36afeb(0x190)](_0x3784e6(_0xae04be=>_0xae04be[_0x36afeb(0x2b7)]===_0x17c782['SHOULD_CLOSE_CONN']),_0x310870(this[_0x36afeb(0x245)]))['subscribe'](_0x57eeb4=>{const _0x247b97=_0x36afeb;let {reason:_0x19088e}=_0x57eeb4[_0x247b97(0x204)];this[_0x247b97(0x30c)][_0x247b97(0x173)]({'id':_0x247b97(0x187),'data':_0x19088e}),this[_0x247b97(0x2be)][_0x247b97(0x197)](new _0x1283c2(_0x31f3b4)['id'],!0x1),this[_0x247b97(0x231)]['closeSession'](_0x31f3b4);});};_0x1171fb(this[_0x13ae0d(0x312)]['getTypeOfUnitAdded$'](_0x61571e[_0x13ae0d(0x146)]),this[_0x13ae0d(0x312)][_0x13ae0d(0x227)](_0x61571e[_0x13ae0d(0x306)]),this[_0x13ae0d(0x312)][_0x13ae0d(0x227)](_0x61571e[_0x13ae0d(0x313)]),this[_0x13ae0d(0x312)][_0x13ae0d(0x227)](_0x61571e[_0x13ae0d(0x1c5)]))['pipe'](_0xcf767d(_0x5917e7=>_0x5917e7[_0x13ae0d(0x24b)][_0x13ae0d(0x3ac)]()),_0x3784e6(_0x54b7f4=>!_0x19de86(_0x54b7f4)),_0x310870(this[_0x13ae0d(0x245)]))[_0x13ae0d(0x1eb)](_0x4d670d=>{_0x20696a(_0x4d670d);});}[_0x128a93(0x19f)](){const _0x1c6af0=_0x128a93;let _0x4ddf54=async _0x25401a=>{const _0x23790e=_0x1478;let _0x39785a=await this[_0x23790e(0x231)][_0x23790e(0x1b0)](_0x25401a),_0x4e63d2=this[_0x23790e(0x349)]['get'](_0x35ea61);_0x39785a[_0x23790e(0x160)]['pipe'](_0x3784e6(_0x508171=>_0x508171[_0x23790e(0x2b7)]===_0x17c782[_0x23790e(0x3a8)]),_0x310870(this[_0x23790e(0x245)]))['subscribe'](_0x233263=>{const _0x1cd599=_0x23790e;let {objectId:_0x11ad08}=_0x233263[_0x1cd599(0x204)];_0x11ad08===_0x25401a?_0x4e63d2['initWorkbookPermissionChange'](_0x25401a):_0x4e63d2['refreshPermission'](_0x25401a,_0x11ad08);});};_0x1171fb(this[_0x1c6af0(0x312)][_0x1c6af0(0x227)](_0x61571e[_0x1c6af0(0x146)]))['pipe'](_0xcf767d(_0x12b14a=>_0x12b14a['unit'][_0x1c6af0(0x3ac)]()),_0x3784e6(_0x210569=>!_0x19de86(_0x210569)),_0x310870(this[_0x1c6af0(0x245)]))[_0x1c6af0(0x1eb)](_0x353cf9=>{_0x4ddf54(_0x353cf9);});}};Xn=V([B(0x0,_0x37b5e1(_0x56145d)),B(0x1,_0x450b7c),B(0x2,_0x511b30),B(0x3,_0x37b5e1(jn)),B(0x4,_0x37b5e1(z))],Xn);let Zn=class{constructor(_0x19c55c,_0x4552fb){const _0x3b7023=_0x128a93;this[_0x3b7023(0x280)]=_0x19c55c,this['_httpService']=_0x4552fb;}async[_0x128a93(0x23e)](_0x4a1522,_0x5b56a6){const _0x1c038f=_0x128a93;var _0x44b861;let {unitID:_0x198fb7,type:_0x5a57d1,revision:_0x13e2f8=0x0}=_0x5b56a6,_0x432ff9=this[_0x1c038f(0x2c0)]()+'/'+_0x5a57d1+'/unit/'+_0x198fb7+_0x1c038f(0x2bc)+_0x13e2f8,_0x389118=(await this[_0x1c038f(0x261)][_0x1c038f(0x2f1)](_0x432ff9))[_0x1c038f(0x3b7)],_0x2290c8=(_0x44b861=_0x389118[_0x1c038f(0x2ec)])==null?void 0x0:_0x44b861[_0x1c038f(0x36b)];if(_0x2290c8){let _0x4134f1=_0x2290c8==null?void 0x0:_0x2290c8['originalMeta'];_0x2290c8[_0x1c038f(0x1ad)]=_0xda62e4[_0x1c038f(0x363)](_0x4934e7(_0x4134f1)),Object[_0x1c038f(0x3d6)](_0x2290c8['sheets'])['forEach'](([,_0x174e08])=>{const _0x2e46fe=_0x1c038f;let _0x4290ba=_0x174e08[_0x2e46fe(0x1ad)];_0x174e08[_0x2e46fe(0x1ad)]=_0xda62e4[_0x2e46fe(0x363)](_0x4934e7(_0x4290ba));});}return _0x389118;}async[_0x128a93(0x1ee)](_0x5cc8c5,_0x3d3106){const _0x4c992d=_0x128a93;let {unitID:_0x318e59,type:_0x50ff66,blockID:_0x15cce1}=_0x3d3106,_0x53e1c4=this[_0x4c992d(0x2dc)]()+'/'+_0x50ff66+_0x4c992d(0x1e7)+_0x318e59+_0x4c992d(0x169)+_0x15cce1;return(await this[_0x4c992d(0x261)][_0x4c992d(0x2f1)](_0x53e1c4))[_0x4c992d(0x3b7)];}async[_0x128a93(0x33c)](_0x9b2d69,_0x5744f3){const _0x3c952d=_0x128a93;let {unitID:_0x256f2d,type:_0x1c8c92,blockID:_0x39ca6c}=_0x5744f3,_0x5e928d=this[_0x3c952d(0x2dc)]()+'/block/'+_0x1c8c92+_0x3c952d(0x1e7)+_0x256f2d+_0x3c952d(0x169)+_0x39ca6c;return(await this[_0x3c952d(0x261)][_0x3c952d(0x2f1)](_0x5e928d))[_0x3c952d(0x3b7)];}async[_0x128a93(0x36d)](_0xf3fdb4,_0x535eaf){const _0x407570=_0x128a93;let {unitID:_0x25d6f7,type:_0x4bbc3b,from:_0x54b975,to:_0x4c606b}=_0x535eaf,_0x5119ae=this[_0x407570(0x2dc)]()+'/'+_0x4bbc3b+_0x407570(0x1e7)+_0x25d6f7+'/fetchmissing?from='+_0x54b975+_0x407570(0x356)+_0x4c606b;return(await this[_0x407570(0x261)]['get'](_0x5119ae))['body'];}[_0x128a93(0x2c0)](){const _0x44e5d3=_0x128a93;var _0x56191f;return(_0x56191f=this[_0x44e5d3(0x280)][_0x44e5d3(0x1bc)](_0x44e5d3(0x1f4)))==null?this[_0x44e5d3(0x2dc)]():_0x56191f;}[_0x128a93(0x2dc)](){const _0x2e5efe=_0x128a93;var _0x16b005;let _0x2e2da7=this[_0x2e5efe(0x280)][_0x2e5efe(0x1bc)](L);return(_0x16b005=_0x2e2da7==null?void 0x0:_0x2e2da7['snapshotServerUrl'])==null?_0x2e5efe(0x394):_0x16b005;}async[_0x128a93(0x340)](_0x3c7c0e,_0x37d5f0){const _0x727569=_0x128a93;let _0x508e43=_0x727569(0x141)+_0x37d5f0[_0x727569(0x2b6)]+'/unit/'+_0x37d5f0[_0x727569(0x2d2)]+_0x727569(0x2ab);return(await this[_0x727569(0x261)][_0x727569(0x2f1)](_0x508e43,{'params':{'resourceId':JSON[_0x727569(0x297)](_0x37d5f0[_0x727569(0x27e)])}}))[_0x727569(0x3b7)];}[_0x128a93(0x281)](){throw Error('This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!');}[_0x128a93(0x27b)](){const _0x168226=_0x128a93;throw Error(_0x168226(0x39d));}[_0x128a93(0x200)](){throw Error('This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!');}[_0x128a93(0x26e)](){const _0x5e94d4=_0x128a93;throw Error(_0x5e94d4(0x39d));}[_0x128a93(0x2c8)](){const _0x36bb1d=_0x128a93;throw Error(_0x36bb1d(0x39d));}[_0x128a93(0x355)](){const _0x3b3f77=_0x128a93;throw Error(_0x3b3f77(0x39d));}};Zn=V([B(0x0,_0x46ffbd),B(0x1,_0x37b5e1(_0x1fd0e9))],Zn);let Qn=class extends _0x3f75c5{constructor(_0x178ca1,_0x3bba07,_0x5d1a6a,_0x5e9629,_0x3f5835){const _0x4332d3=_0x128a93;super(_0x178ca1,_0x3bba07,_0x5d1a6a),this['_transformService']=_0x5e9629,this[_0x4332d3(0x346)]=_0x3f5835;}['transformUndoRedo'](_0x522c12,_0x3586c7){const _0x5ee0bd=_0x128a93;let _0x29aeb4=this[_0x5ee0bd(0x33b)](_0x522c12);if(_0x29aeb4)try{let _0x37a728=this[_0x5ee0bd(0x26c)](_0x29aeb4,_0x3586c7);this[_0x5ee0bd(0x1f8)](_0x522c12,_0x37a728);}catch(_0x4ce98c){this['_logService']['error'](_0x5ee0bd(0x174),_0x4ce98c),this['_clearUndo'](_0x522c12);}let _0x498923=this[_0x5ee0bd(0x20e)](_0x522c12);if(_0x498923)try{let _0x201d97=this['_transformStack'](_0x498923,_0x3586c7);this[_0x5ee0bd(0x228)](_0x522c12,_0x201d97);}catch(_0x536228){this[_0x5ee0bd(0x346)][_0x5ee0bd(0x22c)](_0x536228),this['_clearRedo'](_0x522c12);}}[_0x128a93(0x26a)](_0xa85172){const _0x2f1d63=_0x128a93;let _0x452fa7=this[_0x2f1d63(0x33b)](_0xa85172);_0x452fa7&&(_0x452fa7[_0x2f1d63(0x2c4)]=0x0,this[_0x2f1d63(0x2f8)]());}['_clearRedo'](_0x1b0381){const _0x35b2e4=_0x128a93;let _0x294470=this['_getRedoStack'](_0x1b0381);_0x294470&&(_0x294470[_0x35b2e4(0x2c4)]=0x0,this[_0x35b2e4(0x2f8)]());}['_substituteUndoStack'](_0x446de1,_0x2ba07c){const _0x5194c5=_0x128a93;this[_0x5194c5(0x384)][_0x5194c5(0x225)](_0x446de1,_0x2ba07c),this[_0x5194c5(0x2f8)]();}['_substituteRedoStack'](_0x27dcba,_0x551db4){const _0x563fe6=_0x128a93;this[_0x563fe6(0x269)][_0x563fe6(0x225)](_0x27dcba,_0x551db4),this['_updateStatus']();}[_0x128a93(0x26c)](_0x26b48e,_0x3bf120){const _0xc0f155=_0x128a93;let _0x1e5db8=[],_0x3324b2=_0x3bf120,_0x1f1b42=_0x3bf120;for(let _0x49a165=_0x26b48e['length']-0x1;_0x49a165>=0x0;_0x49a165--){let {unitID:_0x2b6069,undoMutations:_0x8aecd5,redoMutations:_0x5dea97}=_0x26b48e[_0x49a165],_0x363675=this[_0xc0f155(0x247)][_0xc0f155(0x1d7)](_0x3324b2,_0x8aecd5),_0x2ecc1a=this[_0xc0f155(0x247)][_0xc0f155(0x1d7)](_0x1f1b42,_0x5dea97);if(_0x23563d(_0x363675)||_0x23563d(_0x2ecc1a)){this[_0xc0f155(0x346)][_0xc0f155(0x22c)](_0xc0f155(0x174),_0xc0f155(0x359),_0x363675,_0x2ecc1a);break;}_0x3324b2=_0x363675[_0xc0f155(0x2a4)],_0x1f1b42=_0x2ecc1a[_0xc0f155(0x2a4)],_0x1e5db8[_0xc0f155(0x263)]({'unitID':_0x2b6069,'undoMutations':_0x363675[_0xc0f155(0x155)],'redoMutations':_0x2ecc1a[_0xc0f155(0x155)]});}return _0x1e5db8['reverse']();}};Qn=V([B(0x0,_0x450b7c),B(0x1,_0x3b4b60),B(0x2,_0x5422b8),B(0x3,_0xa32c02),B(0x4,_0x470483)],Qn);let $n=class extends _0xfc0aa6{constructor(_0x1c8749=pt,_0x30e0b3,_0x356f9b,_0x11f107){const _0x83b51f=_0x128a93;super(),this[_0x83b51f(0x398)]=_0x1c8749,this[_0x83b51f(0x346)]=_0x30e0b3,this[_0x83b51f(0x349)]=_0x356f9b,this[_0x83b51f(0x280)]=_0x11f107;let {..._0x48389f}=_0x3859b9({},pt,this[_0x83b51f(0x398)]);if(!_0x48389f['socketService'])throw Error(_0x83b51f(0x30a));this[_0x83b51f(0x398)]=_0x48389f,this['_configService'][_0x83b51f(0x147)](L,_0x48389f);}['onStarting'](){const _0x59153d=_0x128a93;this[_0x59153d(0x3c7)](),this[_0x59153d(0x39b)]();}[_0x128a93(0x3c7)](){const _0x3cb7b9=_0x128a93;var _0x50322b,_0x48d765;this[_0x3cb7b9(0x349)][_0x3cb7b9(0x3cd)](_0x3fb98b)&&this['_logService'][_0x3cb7b9(0x22c)]('[UniverCollaborationClientPlugin]',_0x3cb7b9(0x26f));let _0x41259f=_0x5bf09e([[_0x3fb98b,{'useClass':Qn}],[On,{'useValue':kn()}],[jn],[H],[Gt],[Bn],[Kn],[kt],[Xn],[z],[qn],[Tn,{'useClass':this[_0x3cb7b9(0x398)]['socketService']}],[_0x308163,{'useClass':Zn}],[_0x1bfb1e,{'useClass':Vn}],[_0x5c8c50,{'useClass':Jn}],[Ln,{'useClass':Rn}],[_0x29f169,{'useClass':Yn}],[Mn],[Fn]],(_0x50322b=this['_config'])==null?void 0x0:_0x50322b[_0x3cb7b9(0x254)]);if(!((_0x48d765=this[_0x3cb7b9(0x398)])!=null&&_0x48d765[_0x3cb7b9(0x31a)])){let _0x51d49f=_0x41259f[_0x3cb7b9(0x32d)](([_0x104c76])=>_0x104c76===W);_0x51d49f!==-0x1&&_0x41259f[_0x3cb7b9(0x1e3)](_0x51d49f,0x1);}_0x5c219a(this[_0x3cb7b9(0x349)],_0x41259f);}['_initDependencies'](){const _0x438e55=_0x128a93;var _0x448f42,_0x2d5adc;if(this['_injector']['get'](_0x1fd0e9)['registerHTTPInterceptor']({'priority':0x14,'interceptor':_0x172db3({'maxParallel':0x6})}),!((_0x448f42=this[_0x438e55(0x398)])!=null&&_0x448f42['enableOfflineEditing'])){var _0x41d889;(_0x41d889=this['_injector'][_0x438e55(0x2f1)](U,_0x562e14['OPTIONAL']))==null||_0x41d889[_0x438e55(0x338)]();}(_0x2d5adc=this[_0x438e55(0x398)])!=null&&_0x2d5adc[_0x438e55(0x2cd)]&&_0x434981(this[_0x438e55(0x349)],[[Bn]]),_0x434981(this[_0x438e55(0x349)],[[Kn],[Mn],[Xn]]);}};R($n,_0x128a93(0x374),_0x128a93(0x1fa)),R($n,_0x128a93(0x165),Nn),R($n,'version',Pn),$n=V([_0x21dd03(_0x6aad63,_0x46e417,_0x20222a),B(0x1,_0x470483),B(0x2,_0x37b5e1(_0x56145d)),B(0x3,_0x46ffbd)],$n);export{In as AttachmentSourceType,Vn as AuthzIoHttpService,J as AwaitingState,Y as AwaitingWithPendingState,vn as BaseCollaborationEntity,xn as BoardCollaborationEntity,L as COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY,Rn as CollaborationAttachmentIoService,Mn as CollaborationController,$ as CollaborationEntity,Jn as CollaborationImageIoService,Ht as CollaborationSession,jn as CollaborationSessionService,Dn as CollaborationSocketService,pn as CollaborationStatus,Ot as CollaborationUIEventId,z as CollaborationUIEventService,Qn as CollaborativeUndoRedoService,kt as CommentService,X as ConflictState,mt as DEFAULT_COLLAB_WEB_SOCKET_URL,Ct as DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT,ht as DEFAULT_WS_SESSION_TICKET_URL,qn as DataLoaderService,_n as DocCollaborationEntity,Q as FetchingMissState,gt as HEARTBEAT_INTERVAL_KEY,_t as HEARTBEAT_TIMEOUT_KEY,Ln as IAttachmentIoService,On as ICollaborationClientAdapterService,Tn as ICollaborationSocketService,U as ILocalCacheService,Sn as INetworkConditionService,W as ISingleActiveUnitService,xt as LOCAL_CACHE_INTERVAL,bt as LOCAL_CACHE_INTERVAL_KEY,H as MemberService,Yn as MentionIoHttpService,Z as OfflineState,q as PendingState,St as REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY,yt as RETRY_CONNECTING_MAX_COUNT_KEY,Bt as SessionStatus,yn as SheetCollaborationEntity,Gt as SheetTransformSelectionsService,bn as SlideCollaborationEntity,Zn as SnapshotServerOverHTTPService,K as SyncedState,Kt as UnitStatus,$n as UniverCollaborationClientPlugin,kn as createUniverCollaborationAdapter,Cn as deserializeToCombResponse,Ut as getLocalCacheKey,wn as serializeCombRequest};
|