@univerjs-pro/collaboration-client 0.25.0 → 1.0.0-alpha.0
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/config/config.d.ts +70 -0
- package/lib/types/controllers/collaboration/collaboration-entity.d.ts +15 -1
- package/lib/types/controllers/collaboration/utils/changeset-utils.d.ts +6 -14
- package/lib/types/facade/f-collaboration.d.ts +38 -25
- package/lib/types/index.d.ts +11 -7
- package/lib/types/locale/types.d.ts +3 -0
- package/lib/types/plugin.d.ts +1 -1
- package/lib/types/services/attachment-remote/attachment-io.service.d.ts +22 -0
- package/lib/types/services/attachment-remote/types.d.ts +23 -0
- package/lib/types/services/data-loader/data-loader.service.d.ts +3 -0
- package/lib/types/services/local-cache/local-cache.service.d.ts +1 -0
- 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 +16 -14
- package/lib/types/controllers/config.schema.d.ts +0 -64
package/lib/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x1f8522=_0x249d;(function(_0xa10574,_0x2f0337){const _0x26b575=_0x249d,_0x3ab8c7=_0xa10574();while(!![]){try{const _0x29c06c=parseInt(_0x26b575(0x2a4))/0x1+-parseInt(_0x26b575(0xc9))/0x2*(-parseInt(_0x26b575(0x16a))/0x3)+parseInt(_0x26b575(0x191))/0x4+-parseInt(_0x26b575(0x193))/0x5+-parseInt(_0x26b575(0x145))/0x6+parseInt(_0x26b575(0xf9))/0x7+parseInt(_0x26b575(0x147))/0x8;if(_0x29c06c===_0x2f0337)break;else _0x3ab8c7['push'](_0x3ab8c7['shift']());}catch(_0x5a14e0){_0x3ab8c7['push'](_0x3ab8c7['shift']());}}}(_0x21a6,0xb24a8));import{CollaborationEvent as _0x27e67f,CompressMutationService as _0x4f4878,EmptyMutationInfo as _0x3b7ae1,ISnapshotServerService as _0x72942,ITransformService as _0x4f7ff9,RevisionService as _0x3c5693,SnapshotService as _0x5662c6,UniverCollaborationPlugin as _0x2fd190,b64DecodeUnicode as _0x376bcd,isTransformChangesetsSuccess as _0x1dbd0e,isTransformMutationsWithChangesetFailure as _0x17dd41,isTransformMutationsWithChangesetSuccess as _0x534268,mapDocumentTypeToUniverInstanceType as _0x6f4221,parseChangesetToProtocol as _0x12da55,parseProtocolChangeset as _0x13b02b,textEncoder as _0x2c7657,uuidv4 as _0x45dc0c}from'@univerjs-pro/collaboration';import{CommandType as _0x40b89a,DependentOn as _0x576a62,Disposable as _0x555def,DisposableCollection as _0x3e23a9,IAuthzIoService as _0xb4867c,ICommandService as _0x3a76f7,IConfigService as _0x3ba9f8,IContextService as _0x3ed1aa,ILogService as _0x1443cf,IMentionIOService as _0x5dc0a9,IPermissionService as _0x439c61,IUndoRedoService as _0x3b54de,IUniverInstanceService as _0x3a738f,Inject as _0x4f07a4,Injector as _0x44d080,JSONX as _0x329bf1,LocalUndoRedoService as _0x38014a,LocaleService as _0x220418,MentionType as _0x39f40b,Optional as _0x1cfc4d,Plugin as _0x2c42b9,Quantity as _0x2afa53,Rectangle as _0x522a87,RxDisposable as _0x3498fe,Tools as _0x49bc12,UniverInstanceType as _0x292cef,UserManagerService as _0x1e899d,Workbook as _0x1d942e,createIdentifier as _0x4bcee9,generateRandomId as _0x4fa431,isInternalEditorID as _0x2a8699,merge as _0x1b8645,mergeOverrideWithDependencies as _0x415d5a,registerDependencies as _0x2046a5,resolveWithBasePath as _0x4fcdae,sequenceExecute as _0x3bd5c0,toDisposable as _0x224a5f,touchDependencies as _0x156eb2}from'@univerjs/core';import{RichTextEditingMutation as _0x234ae8}from'@univerjs/docs';import{InsertSheetMutation as _0x5c656f,SetSelectionsOperation as _0x30f1f3,SheetPermissionInitController as _0x5e8e29,SheetsSelectionsService as _0x24181c,WorkbookEditablePermission as _0x14cd38}from'@univerjs/sheets';import{BehaviorSubject as _0x2acfcb,ReplaySubject as _0x40aa8b,Subject as _0x147a88,concatMap as _0x1d0115,firstValueFrom as _0x128fbd,map as _0x4d141e,merge as _0x340907,of as _0x3a835d,shareReplay as _0x60bd5a,take as _0x4abdb0,takeUntil as _0x56cc03}from'rxjs';import{CmdRspCode as _0x28282a,CombCmd as _0x15766e,ErrorCode as _0x5637ab,FileSource as _0x25f37b}from'@univerjs/protocol';import{ITelemetryService as _0x4f515e}from'@univerjs/telemetry';import{delay as _0x196d30,filter as _0x18abe6,map as _0x279c8c,take as _0x15baed,takeUntil as _0x328e45}from'rxjs/operators';import{HTTPRequest as _0x1b125d,HTTPService as _0x2e99a4,ISocketService as _0x1dbaaf,MergeInterceptorFactory as _0x5e53e1,ThresholdInterceptorFactory as _0x258eba,UniverNetworkPlugin as _0x4df7af}from'@univerjs/network';import{UniverLicensePlugin as _0xc5155e,getGlobalObject as _0x494156}from'@univerjs-pro/license';import{DRAWING_IMAGE_ALLOW_IMAGE_LIST as _0xf4198a,IImageIoService as _0x33c502,ImageSourceType as _0x570c35,ImageUploadStatusType as _0x528a72,getDrawingImageAllowSize as _0x487da1}from'@univerjs/drawing';import{cbc as _0xd0e4b3}from'@noble/ciphers/aes.js';import{concatBytes as _0x5b3153,randomBytes as _0x24b9a3,utf8ToBytes as _0x1fa3b3}from'@noble/ciphers/utils.js';const ut=_0x1f8522(0x28b),dt='/universer-api/user/session-ticket',ft='HEARTBEAT_INTERVAL',pt=_0x1f8522(0x13e),mt=0x4e20,ht=_0x1f8522(0x1af),gt='LOCAL_CACHE_INTERVAL',_t=0x3e8,vt='REMOTE_UNISCRIPT_EXECUTION_ENDPOINT',yt=_0x1f8522(0xca);function bt(_0x4ac622){const _0x1adbbd=_0x1f8522;return JSON[_0x1adbbd(0x2fc)](_0x4ac622)[_0x1adbbd(0x10a)];}function F(_0x2166cc){'@babel/helpers - typeof';const _0x36bd4d=_0x1f8522;return F=typeof Symbol==_0x36bd4d(0x1aa)&&typeof Symbol[_0x36bd4d(0x20f)]==_0x36bd4d(0x19e)?function(_0x93310a){return typeof _0x93310a;}:function(_0x5a4ba3){const _0x2e5a5c=_0x36bd4d;return _0x5a4ba3&&typeof Symbol==_0x2e5a5c(0x1aa)&&_0x5a4ba3['constructor']===Symbol&&_0x5a4ba3!==Symbol[_0x2e5a5c(0x2b7)]?_0x2e5a5c(0x19e):typeof _0x5a4ba3;},F(_0x2166cc);}function xt(_0x3a4ad6,_0x10e2a8){const _0x3259c2=_0x1f8522;if(F(_0x3a4ad6)!=_0x3259c2(0xe8)||!_0x3a4ad6)return _0x3a4ad6;var _0x1b1eed=_0x3a4ad6[Symbol[_0x3259c2(0x290)]];if(_0x1b1eed!==void 0x0){var _0x3c9a9c=_0x1b1eed[_0x3259c2(0x292)](_0x3a4ad6,_0x10e2a8||'default');if(F(_0x3c9a9c)!=_0x3259c2(0xe8))return _0x3c9a9c;throw TypeError(_0x3259c2(0xea));}return(_0x10e2a8===_0x3259c2(0x2e8)?String:Number)(_0x3a4ad6);}function St(_0x2a4e58){const _0x5be487=_0x1f8522;var _0x8d78fe=xt(_0x2a4e58,_0x5be487(0x2e8));return F(_0x8d78fe)==_0x5be487(0x19e)?_0x8d78fe:_0x8d78fe+'';}function I(_0x295721,_0x1865e9,_0xd2f6b){return(_0x1865e9=St(_0x1865e9))in _0x295721?Object['defineProperty'](_0x295721,_0x1865e9,{'value':_0xd2f6b,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x295721[_0x1865e9]=_0xd2f6b,_0x295721;}let Ct=function(_0x9713b){const _0x8c26dd=_0x1f8522;return _0x9713b[_0x8c26dd(0x167)]=_0x8c26dd(0x167),_0x9713b['PERMISSION_DENIED']=_0x8c26dd(0x26c),_0x9713b[_0x8c26dd(0x148)]=_0x8c26dd(0x148),_0x9713b['CLOSE_ROOM']=_0x8c26dd(0x26a),_0x9713b[_0x8c26dd(0x274)]=_0x8c26dd(0x274),_0x9713b[_0x8c26dd(0x1d9)]='SOCKET_FAILED_RETRY',_0x9713b[_0x8c26dd(0x29c)]=_0x8c26dd(0x29c),_0x9713b[_0x8c26dd(0x2c8)]=_0x8c26dd(0x2c8),_0x9713b;}({});var L=class{constructor(){const _0x1fc729=_0x1f8522;I(this,_0x1fc729(0x17d),new _0x147a88()),I(this,_0x1fc729(0xfa),this[_0x1fc729(0x17d)][_0x1fc729(0x2b0)]());}[_0x1f8522(0x15d)](_0xd3811f){const _0x1f3650=_0x1f8522;this['_event$'][_0x1f3650(0xc4)](_0xd3811f);}},wt=class{constructor(){const _0x458949=_0x1f8522;I(this,_0x458949(0xd5),new _0x147a88()),I(this,_0x458949(0x114),this[_0x458949(0xd5)][_0x458949(0x2b0)]());}[_0x1f8522(0x1d8)](_0x591063){const _0x3e5ddf=_0x1f8522;this[_0x3e5ddf(0xd5)][_0x3e5ddf(0xc4)](_0x591063);}};function R(_0x300dac,_0x10e73a){return function(_0x202be9,_0x510259){_0x10e73a(_0x202be9,_0x510259,_0x300dac);};}function z(_0x319983,_0x2dc3fe,_0x5c448a,_0x348b3c){const _0x39ec9f=_0x1f8522;var _0xcb2f36=arguments[_0x39ec9f(0x10a)],_0x542e26=_0xcb2f36<0x3?_0x2dc3fe:_0x348b3c===null?_0x348b3c=Object[_0x39ec9f(0x23f)](_0x2dc3fe,_0x5c448a):_0x348b3c,_0x20cd5f;if(typeof Reflect==_0x39ec9f(0xe8)&&typeof Reflect[_0x39ec9f(0x21c)]==_0x39ec9f(0x1aa))_0x542e26=Reflect[_0x39ec9f(0x21c)](_0x319983,_0x2dc3fe,_0x5c448a,_0x348b3c);else{for(var _0x469237=_0x319983[_0x39ec9f(0x10a)]-0x1;_0x469237>=0x0;_0x469237--)(_0x20cd5f=_0x319983[_0x469237])&&(_0x542e26=(_0xcb2f36<0x3?_0x20cd5f(_0x542e26):_0xcb2f36>0x3?_0x20cd5f(_0x2dc3fe,_0x5c448a,_0x542e26):_0x20cd5f(_0x2dc3fe,_0x5c448a))||_0x542e26);}return _0xcb2f36>0x3&&_0x542e26&&Object[_0x39ec9f(0x2d8)](_0x2dc3fe,_0x5c448a,_0x542e26),_0x542e26;}let B=class extends _0x555def{constructor(_0x24e45b,_0x1ce7b8){const _0x3e2b02=_0x1f8522;super(),this[_0x3e2b02(0xf7)]=_0x24e45b,this['_userManagerService']=_0x1ce7b8,I(this,_0x3e2b02(0x121),new Map()),I(this,'_roomCreated$',new _0x147a88()),this['disposeWithMe'](_0x340907(this['_univerInstanceService']['getTypeOfUnitDisposed$'](_0x292cef[_0x3e2b02(0x107)])[_0x3e2b02(0x27e)](_0x279c8c(_0x277bb7=>_0x277bb7[_0x3e2b02(0xdc)]())),this[_0x3e2b02(0xf7)][_0x3e2b02(0xe1)](_0x292cef[_0x3e2b02(0x23a)])[_0x3e2b02(0x27e)](_0x279c8c(_0x1872f3=>_0x1872f3['getUnitId']())))['subscribe'](_0x4b8e25=>this[_0x3e2b02(0x2bd)](_0x4b8e25)));}['waitForRoom$'](_0x4954ea){const _0x31600c=_0x1f8522;return this[_0x31600c(0x121)][_0x31600c(0x309)](_0x4954ea)?_0x3a835d(this[_0x31600c(0x121)][_0x31600c(0x315)](_0x4954ea)):this[_0x31600c(0x241)][_0x31600c(0x27e)](_0x279c8c(_0x1a98b9=>{const _0x48c6af=_0x31600c;if(_0x1a98b9===_0x4954ea)return this[_0x48c6af(0x121)][_0x48c6af(0x315)](_0x1a98b9);}));}['setCurrentUser'](_0x55b352){const _0x17f9e9=_0x1f8522;this['_userManagerService'][_0x17f9e9(0x311)](_0x55b352);}[_0x1f8522(0x30f)](){const _0x25a9bb=_0x1f8522;return this['_userManagerService'][_0x25a9bb(0x30f)]();}[_0x1f8522(0x205)](_0x33e8fb,_0x2e5cd7){const _0x26838e=_0x1f8522;let _0x5f1dde=this[_0x26838e(0x121)]['get'](_0x33e8fb);_0x5f1dde||(_0x5f1dde=new Tt(),this[_0x26838e(0x121)][_0x26838e(0x27d)](_0x33e8fb,_0x5f1dde),this[_0x26838e(0x241)][_0x26838e(0xc4)](_0x33e8fb)),_0x5f1dde[_0x26838e(0x205)](_0x2e5cd7);}[_0x1f8522(0x16d)](_0x5e22fe,_0x52fcaf){const _0x4e4344=_0x1f8522;let _0x369126=this[_0x4e4344(0x121)][_0x4e4344(0x315)](_0x5e22fe);_0x369126&&_0x369126[_0x4e4344(0x16d)](_0x52fcaf);}[_0x1f8522(0x1b5)](_0x1e4482){const _0x24e9c8=_0x1f8522;return this[_0x24e9c8(0x121)]['get'](_0x1e4482);}[_0x1f8522(0x2d2)](_0x2ad602,_0x4558b3){const _0x172520=_0x1f8522;let _0x49bccb=this[_0x172520(0x121)][_0x172520(0x315)](_0x2ad602);if(_0x49bccb)return _0x49bccb['getMember'](_0x4558b3);}[_0x1f8522(0x2bd)](_0x49ff93){const _0x3a8aef=_0x1f8522;let _0x3a61fd=this['_roomMembers']['get'](_0x49ff93);_0x3a61fd&&(_0x3a61fd[_0x3a8aef(0x282)](),this['_roomMembers']['delete'](_0x49ff93));}[_0x1f8522(0x282)](){const _0x19689f=_0x1f8522;this[_0x19689f(0x121)][_0x19689f(0x1b0)](_0x564236=>_0x564236[_0x19689f(0x282)]()),this[_0x19689f(0x121)][_0x19689f(0x217)](),this[_0x19689f(0x241)][_0x19689f(0x318)]();}};B=z([R(0x0,_0x3a738f),R(0x1,_0x4f07a4(_0x1e899d))],B);var Tt=class extends _0x555def{constructor(..._0x1e243d){const _0x2fcc82=_0x1f8522;super(..._0x1e243d),I(this,_0x2fcc82(0x2d3),new Map()),I(this,_0x2fcc82(0x25f),new _0x2acfcb(this[_0x2fcc82(0x2d3)])),I(this,_0x2fcc82(0x29b),this[_0x2fcc82(0x25f)][_0x2fcc82(0x2b0)]());}['dispose'](){const _0x34db13=_0x1f8522;this[_0x34db13(0x2d3)]['clear'](),this[_0x34db13(0x25f)][_0x34db13(0x318)]();}['updateMember'](_0xa75de9){const _0x4d3361=_0x1f8522;this['_members']['set'](_0xa75de9[_0x4d3361(0x184)],_0xa75de9),this[_0x4d3361(0x18d)]();}[_0x1f8522(0x16d)](_0x5aa15d){const _0x28d371=_0x1f8522;this[_0x28d371(0x2d3)][_0x28d371(0x319)](_0x5aa15d),this[_0x28d371(0x18d)]();}[_0x1f8522(0x2d2)](_0x563b23){const _0x26ff88=_0x1f8522;return this[_0x26ff88(0x2d3)][_0x26ff88(0x315)](_0x563b23);}[_0x1f8522(0x255)](){const _0x17de6a=_0x1f8522;return Array[_0x17de6a(0x21f)](this[_0x17de6a(0x2d3)][_0x17de6a(0x1eb)]());}[_0x1f8522(0x18d)](){const _0x32af59=_0x1f8522;this[_0x32af59(0x25f)][_0x32af59(0xc4)](this[_0x32af59(0x2d3)]);}};let Et=function(_0x2c674f){const _0x19d743=_0x1f8522;return _0x2c674f[_0x2c674f['IDLE']=0x0]=_0x19d743(0x1f6),_0x2c674f[_0x2c674f[_0x19d743(0x1f9)]=0x1]=_0x19d743(0x1f9),_0x2c674f[_0x2c674f[_0x19d743(0x262)]=0x2]='OFFLINE',_0x2c674f[_0x2c674f['ONLINE']=0x3]=_0x19d743(0x1ce),_0x2c674f;}({});const Dt={[_0x28282a['FAIL']]:_0x1f8522(0x177),[_0x28282a['JOIN_ROOM_FULL']]:_0x1f8522(0x1e2),[_0x28282a['JOIN_ROOM_NOT_EXISTS']]:_0x1f8522(0x14b),[_0x28282a[_0x1f8522(0x142)]]:'session.room-permission-denied',[_0x28282a['GLOBAL_ROOMS_CNT_EXCEEDS']]:_0x1f8522(0x1c0)};function _0x21a6(){const _0x56ecfd=['startTime','JOIN_ROOM_PERMISSION_DENIED','COMPRESS_MUTATION_APPLY','createCollaborator','5759724xtxXzq','onTransformIME','194576dkHoAp','CONFLICT','fromCollab','liveShareNewHost','session.room-not-exists','/allowed','actions','putCollaborators','_transformUndoredo','_transformAndApplyRemoteChangeset','[FetchMissState]','_httpService','failed\x20to\x20apply\x20missed\x20changesets!','uniscriptRunEvent','_socket$','downloadEndpointUrl','permissionRejEvent','_socketReady','_disableEditing','_doCreateSocket','_startCollaboration','onSyncEditingCollabCursor','emitEvent','requestParams','_undoRedoService','\x20in\x20_schedule.','/object/','_getSignURL','FileId','createInstance','PERMISSION_REJ','csShouldRetryEvent','OTHER_CLIENT_EDITING','now','_initUnitPermissionChange','33828IyPHmw','/universer-api/snapshot','_getAPIPrefixPath','removeMember','_telemetryInfo','UPDATE_CURSOR','fromCharCode','_initMergeInterceptor','action','responseType','avatar','_cfgEnableObjInherit','SUCCUSS','session.join-failed','_telemetryService','UNIVER_COLLABORATION_CLIENT_PLUGIN','sid','_collaborationSessionService','UNISCRIPT_RUN','_event$','_type','readAsDataURL','HEARTBEAT','_createInitialStateImpl','_init','getImage','memberID','loadUnit','_snapshotService','MUTATION','subUnitId','unit','indexOf','setShowComponents','NOT_COLLAB','_emitMembers','copyFileMeta','baseRev','version','1572316qhNJRL','_showConflictNotification','6549565dQVfWD','data','executeCommand','_onRemoteRetry','originalMeta','[CollaborationUndoRedoService]','_networkConditionService','_onConnectionFailed','workbook','_sessions','_getAPIPrefix','symbol','\x20-\x20','_sender','CHANGESET_REJ','_updateState','\x0aAfter:\x20','_entities','method','/-/object/-/batch_allowed','conflict','_updateStatus','_socketService','function','_getCtorByUniverInstanceType','\x20to\x20','getResourcesRequest','/universer-api/authz','RETRY_CONNECTING_MAX_COUNT','forEach','CHANGESET_SHOULD_RETRY','getActiveSheet','_collaborationPaused','transformSelections','getRoom','LEAVE','[PendingState]:\x20received\x20acknowledgement.','_clearUndo','MSG_FOR_ERROR','\x0aCurrent:\x20','retryConnectingInterval','_startTelemetryCollaborationNewChangeset','collaboration-client.config','_transformSelections','onMutationExecutedForCollab','session.room-cnt-exceeds','getFocusedUnit','confirm','_lockTransition','/resources','_replaceFileID','LIVESHARE_REQUEST_HOST','getUnitType','userID','addHandlerCallback','includes','NO_OTHER_CLIENTS_EDITING','state$','/new_changes','ONLINE','_toggleOnline','/universer-api/stream/file/upload','_clearRedo','_onConnectionOpen','infoRsp','setCfgEnableObjInherit','sheets','uploadFileServerUrl','_clearHeartbeatTimer','onCommentUpdate','SOCKET_FAILED_RETRY','updateCursorEvent','[SyncedState]:\x20received\x20acknowledgement.','params','toggleOffline','closeSession','sessionStatus$','_initCloseConn','_checkMissing','session.room-full','disableLocalCache','_state','HELLO','_candidateSocket','snapshot','_remoteChangesetQueue','change$','_listenToNetworkCondition','values','@univerjs-pro/collaboration-client','objectType','isPermissionRej','getUnitStatus$','unsubscribe','map','_getSendChangesetTimeout','_revisionService','enableSingleActiveInstanceLock','entityInit$','IDLE','_sheetTransformSelectionsService','_schedule','JOINING','_fetchMissChangesets','_incrementRevisionNumber','packageName','socket\x20open.','FETCH_MISS','_onJoinRoomEvent','_imageSourceCache','onRemoteAck','deepClone','_getUndoStack','_waitCount','updateMember','loginUrlKey','_transitionLocked','_sendHeartbeat','loadDoc','onload','univer-pro.collaboration-client.single-active-unit-service','joinRsp','&to=','onRemoteChangeset','iterator','updateOfflineData','_pendingMutations','_submitChangeset','_createHandler','status','name','_instanceService','clear','_resendTimer','_toggleOffline','collaboration_new_changeset','_applyRemoteChangeset','decorate','transformChangesets','number','from','objectID','_exhaustRemoteChangesetQueue','getUnit','replace','&source=','resolve','_handler','[PendingState]:\x20received\x20rejection.','_isEchoedAwaitingChangeset','LIVESHARE_FETCH_OPERATIONS','reconnect','onTransformSelections','_resendWithTimeout','entries','close','cmd','getCollabEntity','resend','initWorkbookPermissionChange','isArray','size','getTime','mutations','getLatestCsReqIdBySid','collabWebSocketUrl','patch','UNIVER_DOC','_onRemoteRejected','This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!','Cannot\x20assemble\x20a\x20changeset\x20from\x20multiple\x20mutations\x20of\x20different\x20types:\x20','[FetchMissState]:\x20missing\x20changesets\x20response\x20still\x20has\x20revision\x20gaps.','getOwnPropertyDescriptor','registerHTTPInterceptor','_roomCreated$','UnitEmbedded','collaboration-client.local-cache-service','onLocalMutation','every','[OfflineState]:\x20invalid\x20calling\x20to\x20`resend`.','INGEST','textRanges','telemetry\x20info\x20is\x20not\x20initialized','close$','_onRemoteACK','dispose$','loadSheet','_sendHeartbeatTimer','[SyncedState]:\x20invalid\x20calling\x20to\x20`resend`.','_collabSessionService','_throwTelemetryCollaborationNewChangeset','_getLoginPath','roomInfos','onRemoteRej','getAllMembers','unknown','saveImage','getMemberID','createSocket','PSEUDO_FETCH_MISSING_RESULT','stopTime','encrypt','_acknowledgeAwaitingIfReady','_updateLocalCache','_members$','min','target','OFFLINE','__Key__','_sendingTimer','catch','init','getCurrentSelections','Failed\x20to\x20update\x20permission\x20point','/block/','CLOSE_ROOM','objects','PERMISSION_DENIED','online$','save\x20fail\x20reason\x20is\x20','UUID','revision','you\x20should\x20override\x20\x22IUndoRedoService\x22\x20provided\x20in\x20\x22core\x22\x20package!','onStateChange','_getRedoStack','JOIN_ROOM_FAILED','_getCurrentRevision','/-/object/list','requireSession','_createSocket','_resendTimeout','_changesetReqId','_eventService','_socketMessageSubscription','set','pipe','saveSnapshot','transformMutationsWithChangeset','eventID','dispose','_socket','editingUnit','[CollaborationSession]:\x20should\x20not\x20send\x20message\x20when\x20the\x20session\x20is\x20offline!','range','_onLocalMutation','_shouldReportTelemetry','_scheduleCollaborationTimeoutTimer','_registerDependencies','ws://127.0.0.1:8000/universer-api/comb/connect','leaveEvent','_onFetchMissResult','_change$','getTypeOfUnitAdded$','toPrimitive','_clearCollaborationTimeoutTimer','call','LIVESHARE_OPERATION','text-x','appendMutation','?url=','LIVESHARE_NEW_HOST','/collaborator','ERROR_EXCEED_SIZE','getDeserializedSheetBlock','members$','SOCKET_FAILED','_retryCount','NEW_CHANGESETS','fetchThroughInterceptors','[CollaborationSession]','add','_clearScheduledTask','JOIN','807617bgCtol','_decreaseWaiting','update','readyForCollab','joinEvent','reduce','error$','onTransformState','_acknowledgeAwaiting','saveSheetBlock','onMissingChangesets','fetchMiss','asObservable','getCollabEntity$','_logService','_collaborationUIEventService','sendChangesetTimeout','_substituteRedoStack','roles','prototype','equals','_createInitialState','getSnapshotAPIPath','c1Prime','compose','_removeRoom','_state$','_compressMutationService','PERSON','m2Prime','unitId','[OfflineState]:\x20received\x20rejection.','reqId','toggleOnline','selections','awaitingChangeset','SUBMIT_CHANGESET_TIMEOUT','max','getInterceptPoints','/role','session','/universer-api/file/{fileID}/sign-url','FETCH_MISSING','_unitInfo$','_transformIMECache','AWAITING','getMember','_members','getCurrentRevOfUnit','_transformRemoteChangesetByStateCache','onSendChangeset','pending','defineProperty','_commentService','src','_transformRemoteChangesetByIMECache','href','[CollaborationEntity]','_waitForHeartbeatResponse','LIVESHARE_TERMINATE','disposeWithMe','subject','_handleRemoteChangesets','collaborators','some','override','[CollaborationEntity]:\x20cannot\x20apply\x20missing\x20results\x20on\x20other\x20states!','_clearRetryConnectingTimer','string','_localeService','_memberService','file','_acknowledgedAwaitingRevision','_changesetSessionId','RECV','_sessionStatus$','onTransformRemoteChangesetByIMECache','[SyncedState]:\x20received\x20rejection.','loadOfflineData','changesets','USERS_LEAVE','find','_initDependencies','_getDownloadEndpointURL','_onUserJoin','state','ERROR_IMAGE_TYPE','_redoStacks','stringify','_status$','_replayCachedMutations','[CollaborationSocketService]:\x20failed\x20to\x20get\x20web\x20socket\x20factory!','[PendingState]:\x20invalid\x20calling\x20to\x20`resend`.','shouldCloseConn','capture','loadUnitOfRevision','updatePermissionObjEvent','debug','_timeoutTimer','_onRecvEvent','getSheetBlock','has','newCsEvent','_onMessage','onRemoteRetry','onTransformRemoteChangesetByStateCache','toString','getCurrentUser','duration','setCurrentUser','focused$','_queuedRemoteChangesets','univer-pro.collaboration-client-socket-service','get','_maxTotalRetryTimeout','enableAuthServer','complete','delete','_commandService','SUBMIT_CHANGESET','unit-cache-','[AuthServerService]:\x20you\x20should\x20provide\x20authentication\x20info\x20on\x20Node.js.','awaiting','_singleActiveUnitService','_configService','encode','members','allowed','then','_joinRoom','HEARTBEAT_INTERVAL','push','_getUploadFileURL','_transformStack','next','_snapshotServerService','post','_onConflict','unitId\x20is\x20not\x20found','136wkzsMG','/universer-api/uniscript','_config','refreshPermission','/universer-api/snapshot/','CHANGESET_ACK','connection\x20error','_syncEditingCollabCursor','synced','error','socketService','/universer-api/oidc/authpage','_commentUpdate$','missingChangesets','setWaitCount','OTHER_CLIENTS_EDITING','message$','result','append','getUnitId','_localCacheService','_executeRemoteChangeset','_initRequestHeader','slice','getTypeOfUnitDisposed$','getConfig','_tryEnsureSocket','_clearTimeoutTimer','reject','put','cfgEnableObjInherit','object','_injector','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','Univer','authzUrl','startsWith','/unit/','localeService','_transformService','listRoles','_entityInit$','_collaborationTimeoutTimer','ERROR_IMAGE','SHOULD_CLOSE_CONN','localCacheService','_univerInstanceService','0.25.0','7058527veVwHr','event$','subscribe','resourceIDs','_isPermissionRej','_permissionService','_undoStacks','_unitID','_onUserLeave','_unlockTransition','list','USERS_ENTER','reverse','code','UNIVER_SHEET','unitID','routeKey','length','getValue','[CollaborationSocketService]:\x20failed\x20to\x20create\x20socket!','headers','PENDING','_retryConnectingTimer','location','COMMENT_UPDATE','socket$','_transformStateCache','commentUpdate$','onlyLocal','fetching\x20missing\x20changesets\x20from\x20','_HTTPService','url','updateCollaborator','_awaitingChangeset','_onRemoteChangeset','send','[UniverCollaborationClientPlugin]','_handlerCallback','floor','offline','_roomMembers','_substituteUndoStack','body','POST','[CollaborationSessionService]','type','transformUndoRedo','[CollaborationState]:\x20apply\x20error!','hostname','open$','/object','onTransformRemoteChangesetByIMECache\x20callback\x20is\x20not\x20added\x20yet.','[DataLoaderService]','sessionStatus','_rescheduleHeartbeat','_onOffline','_scheduleCompleteTimestamp','_clearLocalCache','fetching\x20the\x20latest\x20document\x20from\x20the\x20server.','updatePermissionPoint','getImageSourceCache','BASE64','interceptor','_tryReconnect','UPDATE_PERMISSION_OBJ','fetch_missing','awaiting_with_pending','title','onMissedChangesetFetched','HEARTBEAT_TIMEOUT','status$','[CollaborationController]:\x20invalid\x20univer\x20type:\x20'];_0x21a6=function(){return _0x56ecfd;};return _0x21a6();}let Ot=class extends _0x3498fe{get[_0x1f8522(0x12e)](){const _0x1f6792=_0x1f8522;return this[_0x1f6792(0x2ef)][_0x1f6792(0x10b)]();}constructor(_0xf91ce1,_0x52f9a7,_0x128d6f,_0x5573d0,_0x51ea7b,_0x505d02,_0x555571,_0x26d183){const _0x36d464=_0x1f8522;super(),this[_0x36d464(0x100)]=_0xf91ce1,this['_logService']=_0x128d6f,this['_configService']=_0x5573d0,this[_0x36d464(0x2ea)]=_0x51ea7b,this[_0x36d464(0x2d9)]=_0x505d02,this[_0x36d464(0x2b3)]=_0x555571,this['_telemetryService']=_0x26d183,I(this,'_sessionStatus$',new _0x2acfcb(0x0)),I(this,_0x36d464(0x1df),this[_0x36d464(0x2ef)][_0x36d464(0x2b0)]()),I(this,_0x36d464(0x17d),new _0x147a88()),I(this,'event$',this[_0x36d464(0x17d)][_0x36d464(0x2b0)]()),I(this,_0x36d464(0x283),void 0x0),I(this,_0x36d464(0x27c),void 0x0),I(this,_0x36d464(0xf3),void 0x0),I(this,'_shouldReportTelemetry',!0x1),I(this,_0x36d464(0x16e),null),this[_0x36d464(0x288)]=!!this[_0x36d464(0x178)],_0x52f9a7['pipe'](_0x56cc03(this[_0x36d464(0x24c)]))[_0x36d464(0xfb)](_0x40bf71=>{const _0x1fabb6=_0x36d464;if(_0x40bf71!==void 0x0){if(this['_socket']=_0x40bf71,_0x40bf71)this[_0x1fabb6(0xbf)](_0x40bf71),this[_0x1fabb6(0x27c)]=_0x40bf71[_0x1fabb6(0xd9)][_0x1fabb6(0xfb)](_0x278f15=>{const _0x1854a2=_0x1fabb6;_0x278f15['routeKey']===this[_0x1854a2(0x100)]&&this['_onCombEvent'](_0x278f15);});else{var _0x2817de;this[_0x1fabb6(0x251)](),this['_sessionStatus$'][_0x1fabb6(0xc4)](0x2),(_0x2817de=this[_0x1fabb6(0x27c)])==null||_0x2817de[_0x1fabb6(0x1f0)](),this[_0x1fabb6(0x27c)]=null;}}});}['getMemberID'](){const _0xba0525=_0x1f8522;var _0x15674d,_0x401eb3;return(_0x15674d=(_0x401eb3=this[_0xba0525(0x283)])==null?void 0x0:_0x401eb3[_0xba0525(0x184)])==null?null:_0x15674d;}[_0x1f8522(0x282)](){const _0x218c13=_0x1f8522;super['dispose'](),this[_0x218c13(0x22e)](),this[_0x218c13(0x24c)]['next'](),this[_0x218c13(0x24c)][_0x218c13(0x318)]();}[_0x1f8522(0x22e)](){const _0x4209c8=_0x1f8522;var _0x36c920,_0x29440b;this[_0x4209c8(0x251)](),(_0x36c920=this['_socket'])==null||_0x36c920['send']({'cmd':_0x15766e['LEAVE'],'data':{'roomID':this[_0x4209c8(0x100)]}}),(_0x29440b=this[_0x4209c8(0x283)])==null||_0x29440b['close'](),this[_0x4209c8(0x17d)][_0x4209c8(0x318)](),this[_0x4209c8(0x2ef)][_0x4209c8(0x318)]();}['_onCombEvent'](_0x4bc91f){const _0x43782b=_0x1f8522;_0x4bc91f[_0x43782b(0x22f)]===_0x15766e['JOIN']?this[_0x43782b(0x1ff)](_0x4bc91f):_0x4bc91f[_0x43782b(0x22f)]===_0x15766e[_0x43782b(0x2ee)]&&this[_0x43782b(0x307)](_0x4bc91f);}[_0x1f8522(0xbf)](_0x3fc5da){const _0x3fe085=_0x1f8522;this[_0x3fe085(0x2ef)][_0x3fe085(0xc4)](0x1),_0x3fc5da[_0x3fe085(0x11c)]({'cmd':_0x15766e[_0x3fe085(0x2a3)],'routeKey':this[_0x3fe085(0x100)],'routeType':'','data':{'rooms':[{'roomID':this[_0x3fe085(0x100)]}]}});}[_0x1f8522(0x1ff)](_0x3e9f4d){const _0x3a1785=_0x1f8522;var _0x3d5bcd;if(_0x3e9f4d['code']in Dt){this[_0x3a1785(0x2b3)][_0x3a1785(0x15d)]({'id':_0x3a1785(0x274),'data':Dt[_0x3e9f4d['code']]}),this['_sessionStatus$'][_0x3a1785(0xc4)](0x2);return;}this['_sessionStatus$'][_0x3a1785(0xc4)](0x3);let _0x16c0d1=(_0x3d5bcd=_0x3e9f4d[_0x3a1785(0x194)][_0x3a1785(0x253)][this[_0x3a1785(0x100)]])==null?void 0x0:_0x3d5bcd[_0x3a1785(0xbc)];_0x16c0d1&&_0x16c0d1[_0x3a1785(0x1b0)](_0x26e6e2=>this[_0x3a1785(0x2ea)][_0x3a1785(0x205)](this[_0x3a1785(0x100)],_0x26e6e2));}[_0x1f8522(0x307)](_0x46852e){const _0x28f97f=_0x1f8522;try{let _0x587967=_0x46852e[_0x28f97f(0x194)];switch(_0x587967[_0x28f97f(0x281)]){case _0x27e67f[_0x28f97f(0x104)]:this[_0x28f97f(0x2f8)](_0x587967),this['_event$'][_0x28f97f(0xc4)](_0x587967);break;case _0x27e67f[_0x28f97f(0x2f4)]:this[_0x28f97f(0x101)](_0x587967),this[_0x28f97f(0x17d)]['next'](_0x587967);break;case _0x27e67f[_0x28f97f(0xce)]:case _0x27e67f[_0x28f97f(0x1b1)]:this['_stopTelemetryCollaborationNewChangeset'](),this[_0x28f97f(0x291)](),this['_event$'][_0x28f97f(0xc4)](_0x587967);break;case _0x27e67f[_0x28f97f(0x1b9)]:this[_0x28f97f(0x2b2)][_0x28f97f(0xd2)](_0x28f97f(0x26e)+JSON[_0x28f97f(0x2fc)](_0x587967)),this[_0x28f97f(0x17d)]['next'](_0x587967);break;case _0x27e67f[_0x28f97f(0x111)]:this[_0x28f97f(0x2d9)][_0x28f97f(0x1d8)](_0x587967[_0x28f97f(0x194)]),this[_0x28f97f(0x17d)][_0x28f97f(0xc4)](_0x587967);break;default:this[_0x28f97f(0x17d)][_0x28f97f(0xc4)](_0x587967);}}catch(_0xa9a435){this[_0x28f97f(0x2b2)][_0x28f97f(0xd2)](_0xa9a435,_0x46852e);}}[_0x1f8522(0x2f8)](_0x3f8939){const _0x12453a=_0x1f8522;this[_0x12453a(0x2ea)]['updateMember'](this[_0x12453a(0x100)],_0x3f8939[_0x12453a(0x194)]);}[_0x1f8522(0x101)](_0x2a2d94){const _0x26fd1c=_0x1f8522;this[_0x26fd1c(0x2ea)][_0x26fd1c(0x16d)](this[_0x26fd1c(0x100)],_0x2a2d94[_0x26fd1c(0x194)][_0x26fd1c(0x184)]);}async[_0x1f8522(0x11c)](_0x23c25e,_0x361323){const _0x1d1ad8=_0x1f8522;if(this[_0x1d1ad8(0x12e)]!==0x3||!this[_0x1d1ad8(0x283)])throw Error(_0x1d1ad8(0x285));try{_0x23c25e[_0x1d1ad8(0x281)]===_0x27e67f[_0x1d1ad8(0x31b)]&&(this[_0x1d1ad8(0x289)](),this[_0x1d1ad8(0x1bc)](_0x23c25e)),this[_0x1d1ad8(0x283)]['send']({'cmd':_0x15766e[_0x1d1ad8(0x247)],'routeKey':_0x361323,'routeType':'','data':_0x23c25e});}catch(_0x443a2d){this[_0x1d1ad8(0x2b2)][_0x1d1ad8(0xd2)](_0x443a2d);}}[_0x1f8522(0x289)](){const _0x187bb6=_0x1f8522;var _0x33ca80;this[_0x187bb6(0xf3)]=setTimeout(()=>{const _0xa0f5a1=_0x187bb6;this[_0xa0f5a1(0xf3)]=null,this['_collaborationUIEventService']['emitEvent']({'id':_0xa0f5a1(0x2c8)});},(_0x33ca80=this[_0x187bb6(0xba)][_0x187bb6(0xe2)](_0x187bb6(0x13e)))==null?mt:_0x33ca80);}['_clearCollaborationTimeoutTimer'](){const _0x1a578f=_0x1f8522;this['_collaborationTimeoutTimer']&&(clearTimeout(this[_0x1a578f(0xf3)]),this[_0x1a578f(0xf3)]=null);}[_0x1f8522(0x1bc)](_0x5766a3){const _0x2d0d62=_0x1f8522;if(!this[_0x2d0d62(0x288)])return;let {data:_0x2026f2}=_0x5766a3,{unitID:_0x3d3b45,changeset:_0x1b7cf2}=_0x2026f2,{mutations:_0x54d272,type:_0x8bdbc5}=_0x1b7cf2;this['_telemetryInfo']={'unitId':_0x3d3b45,'type':_0x8bdbc5,'startTime':performance[_0x2d0d62(0x168)](),'stopTime':0x0,'duration':0x0,'size':bt(_0x54d272)};}['_stopTelemetryCollaborationNewChangeset'](){const _0x424553=_0x1f8522;if(this[_0x424553(0x288)]){if(!this[_0x424553(0x16e)]){this['_logService']['error'](_0x424553(0x2a0),_0x424553(0x249));return;}this[_0x424553(0x16e)]['stopTime']=performance[_0x424553(0x168)](),this[_0x424553(0x16e)][_0x424553(0x310)]=this[_0x424553(0x16e)][_0x424553(0x25b)]-this['_telemetryInfo'][_0x424553(0x141)],this[_0x424553(0x178)][_0x424553(0x302)](_0x424553(0x21a),this[_0x424553(0x16e)]),this['_telemetryInfo']=null;}}[_0x1f8522(0x251)](){const _0x42e2b0=_0x1f8522;this[_0x42e2b0(0x16e)]=null;}};Ot=z([R(0x2,_0x1443cf),R(0x3,_0x3ba9f8),R(0x4,_0x4f07a4(B)),R(0x5,_0x4f07a4(wt)),R(0x6,_0x4f07a4(L)),R(0x7,_0x1cfc4d(_0x4f515e))],Ot);const V=_0x4bcee9(_0x1f8522(0x243));function kt(_0x4fca18){const _0x4c97c1=_0x1f8522;return _0x4c97c1(0x31c)+_0x4fca18;}function At(_0x1f0f96){const _0xa2f116=_0x1f8522;let {unitID:_0x3bda8b,mutations:_0x599451}=_0x1f0f96;return{'unitId':_0x3bda8b,'subUnitId':_0x599451[_0xa2f116(0x10a)]>0x0?_0x599451[0x0][_0xa2f116(0x1dc)][_0xa2f116(0x188)]:null};}let H=class{constructor(_0x36e93a,_0xca7fd3,_0x53819d){const _0x16695f=_0x1f8522;this[_0x16695f(0xe9)]=_0x36e93a,this[_0x16695f(0xf0)]=_0xca7fd3,this['_instanceService']=_0x53819d;}['transformSelections'](_0xe34856){const _0x56e55a=_0x1f8522;var _0x5be139,_0x176987;let _0x1d8cee=this[_0x56e55a(0xe9)][_0x56e55a(0x315)](_0x24181c),{unitId:_0x424661,subUnitId:_0x220be8}=At(_0xe34856),_0x51baeb=_0x1d8cee==null?void 0x0:_0x1d8cee['getWorkbookSelections'](_0x424661)[_0x56e55a(0x267)](),_0x4803f8=(_0x5be139=this[_0x56e55a(0x216)][_0x56e55a(0x222)](_0x424661))==null||(_0x5be139=_0x5be139[_0x56e55a(0x1b2)]())==null?void 0x0:_0x5be139['getSheetId']();if(_0x51baeb[_0x56e55a(0x10a)]===0x0||!_0x424661||!_0x220be8)return;let _0x1b0c92=[{'id':_0x30f1f3['id'],'params':{'unitId':_0x424661,'subUnitId':_0x4803f8,'selections':_0x49bc12[_0x56e55a(0x202)](_0x51baeb)}}],_0x57f044=this[_0x56e55a(0xf0)][_0x56e55a(0x280)](_0xe34856,_0x1b0c92);if(!_0x534268(_0x57f044))throw _0x57f044['error'];let _0x326816=(_0x176987=_0x57f044[_0x56e55a(0x2c1)][0x0])==null||(_0x176987=_0x176987['params'])==null?void 0x0:_0x176987[_0x56e55a(0x2c6)];if(Array[_0x56e55a(0x233)](_0x326816)&&_0x326816[_0x56e55a(0x10a)]){if(_0x326816[_0x56e55a(0x10a)]===_0x1b0c92[0x0][_0x56e55a(0x1dc)][_0x56e55a(0x2c6)]['length']&&_0x326816['every']((_0x12d3ca,_0x2404b1)=>_0x522a87[_0x56e55a(0x2b8)](_0x12d3ca[_0x56e55a(0x286)],_0x1b0c92[0x0]['params'][_0x56e55a(0x2c6)][_0x2404b1][_0x56e55a(0x286)])))return;this[_0x56e55a(0xe9)][_0x56e55a(0x315)](_0x3a76f7)[_0x56e55a(0x195)](_0x30f1f3['id'],{'unitId':_0x424661,'subUnitId':_0x4803f8,'selections':_0x326816});}}};H=z([R(0x0,_0x4f07a4(_0x44d080)),R(0x1,_0x4f7ff9),R(0x2,_0x3a738f)],H);const jt=_0x4bcee9(_0x1f8522(0x20b));let Mt=function(_0x452f4e){const _0x52526d=_0x1f8522;return _0x452f4e[_0x452f4e[_0x52526d(0x1cb)]=0x0]=_0x52526d(0x1cb),_0x452f4e[_0x452f4e[_0x52526d(0xd8)]=0x1]=_0x52526d(0xd8),_0x452f4e;}({});const U=_0x1f8522(0x1bd),Nt={};function Pt(_0xc5efc8){const _0x2edfec=_0x1f8522;var _0x264952;return!!((_0x264952=_0xc5efc8[_0x2edfec(0x1dc)])!=null&&_0x264952['__splitChunk__']);}const Ft=new Set([_0x5c656f['id']]);function It(_0x35f748,_0x297b18,_0x316b34,_0xc56ab5,_0x43ef2a){const _0x1c7c10=_0x1f8522;var _0x2216fd,_0x21900b,_0x436261,_0x3cecbc;let _0x1b7454=[];for(let _0x4057f7 of _0x35f748){if(Ft[_0x1c7c10(0x309)](_0x4057f7['id'])){if(_0x1b7454[_0x1c7c10(0x10a)]>0x0)break;_0x1b7454['push'](_0x4057f7);break;}if(Pt(_0x4057f7)){if(_0x1b7454[_0x1c7c10(0x10a)]>0x0)break;_0x1b7454[_0x1c7c10(0xc1)](_0x4057f7);break;}_0x1b7454[_0x1c7c10(0xc1)](_0x4057f7);}let _0x55e6b8=(_0x2216fd=(_0x21900b=_0x43ef2a[_0x1c7c10(0x30f)]())==null?void 0x0:_0x21900b['userID'])==null?'unknown':_0x2216fd,_0x3e7f60=(_0x436261=(_0x3cecbc=_0x43ef2a[_0x1c7c10(0x30f)]())==null?void 0x0:_0x3cecbc[_0x1c7c10(0x184)])==null?'unknown':_0x436261;return{'changeset':{'unitID':_0x297b18,'type':_0x6f4221(_0x316b34[_0x1c7c10(0x1c7)](_0x297b18)),'baseRev':_0xc56ab5[_0x1c7c10(0x2d4)](_0x297b18),'revision':0x0,'userID':_0x55e6b8,'memberID':_0x3e7f60,'mutations':_0x1b7454},'pendingMutations':_0x35f748['slice'](_0x1b7454[_0x1c7c10(0x10a)])};}function Lt(_0x362555,_0x24dffa,_0x353dda,_0x366e25,_0x4a94da){const _0x193fb9=_0x1f8522;var _0x417348,_0x75641b,_0x7ddd48,_0x5a4285;let _0x102900=_0x362555['reduce']((_0x1a89bd,_0x4a06f3)=>{const _0x24ac48=_0x249d;let _0x4bf16f=_0x1a89bd[_0x1a89bd[_0x24ac48(0x10a)]-0x1],{id:_0x46e5bb}=_0x4bf16f==null?{}:_0x4bf16f,{id:_0x547dec,type:_0x46d582}=_0x4a06f3,_0x21e611=_0x4a06f3[_0x24ac48(0x1dc)];if(_0x46e5bb&&_0x46e5bb!==_0x547dec)throw Error(_0x24ac48(0x23d)+_0x46e5bb+_0x24ac48(0x19f)+_0x547dec+'.');if(!_0x4bf16f)return[{'id':_0x547dec,'type':_0x46d582,'params':{'unitId':_0x21e611[_0x24ac48(0x2c2)],'textRanges':_0x21e611[_0x24ac48(0x248)],'actions':_0x21e611[_0x24ac48(0x14d)]}}];let _0x3989f1=_0x4bf16f['params'];return Rt(_0x3989f1['actions'],_0x21e611['actions'])?[..._0x1a89bd['slice'](0x0,-0x1),{..._0x4bf16f,'id':_0x547dec,'type':_0x46d582,'params':{'unitId':_0x21e611[_0x24ac48(0x2c2)],'textRanges':_0x21e611[_0x24ac48(0x248)],'actions':_0x329bf1[_0x24ac48(0x2bc)](_0x3989f1[_0x24ac48(0x14d)],_0x21e611[_0x24ac48(0x14d)])}}]:[..._0x1a89bd,{'id':_0x547dec,'type':_0x46d582,'params':{'unitId':_0x21e611[_0x24ac48(0x2c2)],'textRanges':_0x21e611[_0x24ac48(0x248)],'actions':_0x21e611['actions']}}];},[]),_0x14b1d1=(_0x417348=(_0x75641b=_0x4a94da['getCurrentUser']())==null?void 0x0:_0x75641b[_0x193fb9(0x1c8)])==null?_0x193fb9(0x256):_0x417348,_0x216f25=(_0x7ddd48=(_0x5a4285=_0x4a94da['getCurrentUser']())==null?void 0x0:_0x5a4285[_0x193fb9(0x184)])==null?_0x193fb9(0x256):_0x7ddd48;return{'changeset':{'unitID':_0x24dffa,'type':_0x6f4221(_0x353dda[_0x193fb9(0x1c7)](_0x24dffa)),'baseRev':_0x366e25['getCurrentRevOfUnit'](_0x24dffa),'revision':0x0,'userID':_0x14b1d1,'memberID':_0x216f25,'mutations':_0x102900},'pendingMutations':_0x362555[_0x193fb9(0xe0)](_0x362555[_0x193fb9(0x10a)])};}function Rt(_0x67f21c,_0x523b7d){return!(zt(_0x67f21c)&&Bt(_0x523b7d)||Bt(_0x67f21c)&&zt(_0x523b7d));}function zt(_0x1f4b3f){const _0x43828a=_0x1f8522;return Vt(_0x1f4b3f)['some'](_0x38f738=>Ht(_0x38f738)&&_0x38f738['et']===_0x43828a(0x294));}function Bt(_0x7add0){const _0x337311=_0x1f8522;return Vt(_0x7add0)[_0x337311(0x2e4)](_0x1a4f62=>Array['isArray'](_0x1a4f62)||typeof _0x1a4f62==_0x337311(0x2e8)||typeof _0x1a4f62==_0x337311(0x21e));}function Vt(_0x14c1ab){const _0x3e3949=_0x1f8522;if(!Array[_0x3e3949(0x233)](_0x14c1ab))return[];let _0xe59f7=_0x14c1ab[_0x3e3949(0x1ca)](_0x3e3949(0x123))?_0x14c1ab:_0x14c1ab[_0x3e3949(0x2f5)](_0x140e8d=>Array['isArray'](_0x140e8d)&&_0x140e8d['includes'](_0x3e3949(0x123)));if(!Array[_0x3e3949(0x233)](_0xe59f7))return[];let _0x533bc9=_0xe59f7[_0x3e3949(0x18a)](_0x3e3949(0x123));return _0x533bc9===-0x1?[]:_0xe59f7['slice'](_0x533bc9+0x1);}function Ht(_0x28a155){const _0x327d4f=_0x1f8522;return typeof _0x28a155=='object'&&!!_0x28a155&&!Array[_0x327d4f(0x233)](_0x28a155);}function Ut(_0xe84b2e,_0x5cfa29){const _0x50643d=_0x1f8522;let _0x3904d1=new _0x40aa8b(0x1);return setTimeout(()=>_0x3904d1[_0x50643d(0xc4)](_0x5cfa29),_0xe84b2e),_0x3904d1[_0x50643d(0x2b0)]()['pipe'](_0x4abdb0(0x1));}var Wt,Gt,Kt;let qt=function(_0x1742b1){const _0x5b825a=_0x1f8522;return _0x1742b1[_0x5b825a(0x18c)]='not_collab',_0x1742b1['SYNCED']=_0x5b825a(0xd1),_0x1742b1[_0x5b825a(0x10e)]=_0x5b825a(0x2d7),_0x1742b1[_0x5b825a(0x2d1)]=_0x5b825a(0x31e),_0x1742b1['AWAITING_WITH_PENDING']=_0x5b825a(0x13b),_0x1742b1[_0x5b825a(0x1fe)]=_0x5b825a(0x13a),_0x1742b1[_0x5b825a(0x148)]=_0x5b825a(0x1a7),_0x1742b1[_0x5b825a(0x262)]=_0x5b825a(0x120),_0x1742b1;}({});const Jt=0x4e20,Yt=0x2bf20;var W=class{constructor(_0xaa93de,_0x29f5e1,_0x229c8e,_0x2dda0f,_0x396927,_0x414332,_0x4548fc,_0x1329c8,_0x2706cc){const _0x513e7d=_0x1f8522;this[_0x513e7d(0x108)]=_0xaa93de,this[_0x513e7d(0x126)]=_0x29f5e1,this[_0x513e7d(0x226)]=_0x396927,this[_0x513e7d(0x31a)]=_0x414332,this[_0x513e7d(0x15f)]=_0x4548fc,this[_0x513e7d(0x1f3)]=_0x1329c8,this[_0x513e7d(0xdd)]=_0x2706cc,I(this,_0x513e7d(0x11a),null),I(this,_0x513e7d(0x211),[]),this[_0x513e7d(0x11a)]=_0x229c8e,this[_0x513e7d(0x211)]=_0x2dda0f;}[_0x1f8522(0x1e1)](_0x194b3e){const _0x47cf5d=_0x1f8522;let _0x346278=this[_0x47cf5d(0x1f3)]['getCurrentRevOfUnit'](this[_0x47cf5d(0x108)]);return _0x194b3e[_0x47cf5d(0x270)]>_0x346278+0x1?(this[_0x47cf5d(0x226)][_0x47cf5d(0x2ae)]({'from':_0x346278,'to':_0x194b3e[_0x47cf5d(0x270)]-0x1}),!0x0):!0x1;}['_transformUndoredo'](_0x55c070){const _0x35e7cf=_0x1f8522;this[_0x35e7cf(0x15f)][_0x35e7cf(0x127)](this[_0x35e7cf(0x108)],_0x55c070);}[_0x1f8522(0x1be)](_0x50a932){const _0x17e7a4=_0x1f8522;var _0x521fb8,_0x2457af;(_0x521fb8=(_0x2457af=this[_0x17e7a4(0x226)])[_0x17e7a4(0x22b)])==null||_0x521fb8[_0x17e7a4(0x292)](_0x2457af,_0x50a932);}[_0x1f8522(0x2d0)](_0x115cc2){const _0x11c95a=_0x1f8522;var _0x534674,_0x238bec;return(_0x534674=(_0x238bec=this[_0x11c95a(0x226)])[_0x11c95a(0x146)])==null?void 0x0:_0x534674[_0x11c95a(0x292)](_0x238bec,_0x115cc2);}['_transformStateCache'](_0x488e93){const _0x525fe9=_0x1f8522;var _0xe14041,_0x43e096;return(_0xe14041=(_0x43e096=this[_0x525fe9(0x226)])[_0x525fe9(0x2ab)])==null?void 0x0:_0xe14041['call'](_0x43e096,_0x488e93);}[_0x1f8522(0x2db)](_0x36f004){const _0x11f9f0=_0x1f8522;var _0xe08f35,_0x2293f9,_0x106e9c;return(_0xe08f35=(_0x2293f9=(_0x106e9c=this[_0x11f9f0(0x226)])[_0x11f9f0(0x2f0)])==null?void 0x0:_0x2293f9[_0x11f9f0(0x292)](_0x106e9c,_0x36f004))==null?_0x36f004:_0xe08f35;}[_0x1f8522(0x2d5)](_0x48cae5){const _0x1428c4=_0x1f8522;var _0x57b6d7,_0x2f3a96,_0xd48bb3;return(_0x57b6d7=(_0x2f3a96=(_0xd48bb3=this['_handler'])[_0x1428c4(0x30d)])==null?void 0x0:_0x2f3a96['call'](_0xd48bb3,_0x48cae5))==null?_0x48cae5:_0x57b6d7;}[_0x1f8522(0xd0)](_0x3e822a){const _0x1c18b3=_0x1f8522;if(this[_0x1c18b3(0x126)]===_0x292cef[_0x1c18b3(0x23a)]){let {unitID:_0x6b8771,mutations:_0x3ce39a,memberID:_0x141ca4}=_0x3e822a,_0x5c5ef4=_0x3ce39a[_0x1c18b3(0x10a)]>0x0?_0x3ce39a[0x0][_0x1c18b3(0x1dc)][_0x1c18b3(0x248)]:[];if(Array[_0x1c18b3(0x233)](_0x5c5ef4)&&_0x5c5ef4[_0x1c18b3(0x10a)]>0x0){var _0x41c253,_0x3e5cfa;(_0x41c253=(_0x3e5cfa=this['_handler'])[_0x1c18b3(0x15c)])==null||_0x41c253[_0x1c18b3(0x292)](_0x3e5cfa,{'unitID':_0x6b8771,'memberID':_0x141ca4,'textRanges':_0x5c5ef4});}}}[_0x1f8522(0x25e)](){const _0x202d7a=_0x1f8522;var _0x25def;(_0x25def=this[_0x202d7a(0xdd)])==null||_0x25def[_0x202d7a(0x210)](this['unitID'],this[_0x202d7a(0x126)],this[_0x202d7a(0x11a)],this[_0x202d7a(0x211)]);}[_0x1f8522(0x275)](){const _0x54ea9c=_0x1f8522;return this[_0x54ea9c(0x1f3)][_0x54ea9c(0x2d4)](this['unitID']);}[_0x1f8522(0x1fb)](){const _0x21bf8b=_0x1f8522;this['_revisionService']['incrementRevOfUnit'](this[_0x21bf8b(0x108)]);}[_0x1f8522(0xde)](_0x5c797b){const _0x2e3105=_0x1f8522;let _0x655ae8=this['_transformRemoteChangesetByIMECache'](_0x5c797b);_0x655ae8=this[_0x2e3105(0x2d5)](_0x655ae8);let _0x509ae8=_0x3bd5c0(_0x655ae8['mutations'],this[_0x2e3105(0x31a)],{'fromCollab':!0x0});if(!_0x509ae8['result']){var _0x3eb164;throw _0x509ae8[_0x2e3105(0xd2)]instanceof Error?_0x509ae8['error']:Error((_0x3eb164=_0x509ae8[_0x2e3105(0xd2)])==null?_0x2e3105(0x128):_0x3eb164);}this[_0x2e3105(0x2d0)](_0x655ae8),this[_0x2e3105(0x113)](_0x655ae8),this[_0x2e3105(0x14f)](_0x5c797b),this['_transformSelections'](_0x655ae8),this[_0x2e3105(0xd0)](_0x655ae8),this[_0x2e3105(0x1fb)]();}};let G=class extends W{constructor(_0x4f6306,_0x340626,_0x5b4b33,_0x3d8c13,_0x4157b4,_0x525fa1,_0x40c40a,_0x38e3a0,_0x4fe3b1,_0x35b7ef){const _0x5d129b=_0x1f8522;super(_0x4f6306,_0x340626,null,[],_0x5b4b33,_0x40c40a,_0x525fa1,_0x3d8c13,_0x35b7ef),this[_0x5d129b(0xe9)]=_0x4157b4,this[_0x5d129b(0x2b2)]=_0x38e3a0,this[_0x5d129b(0xf0)]=_0x4fe3b1,this[_0x5d129b(0xf6)]=_0x35b7ef,I(this,_0x5d129b(0x214),_0x5d129b(0xd1));}[_0x1f8522(0x295)](_0x54dd3b){const _0x28bea9=_0x1f8522;let _0x4b0dab=this[_0x28bea9(0xe9)][_0x28bea9(0x164)](K,this[_0x28bea9(0x108)],this[_0x28bea9(0x126)],[_0x54dd3b],this[_0x28bea9(0x226)]);return _0x4b0dab[_0x28bea9(0x1f8)](),_0x4b0dab[_0x28bea9(0x25e)](),_0x4b0dab;}[_0x1f8522(0x20e)](_0x49a264){const _0x58ebee=_0x1f8522;if(this[_0x58ebee(0x1e1)](_0x49a264))return this[_0x58ebee(0xe9)][_0x58ebee(0x164)](Z,this['unitID'],this[_0x58ebee(0x126)],null,[],null,[_0x49a264],this['_handler']);try{let _0x174282=this[_0x58ebee(0xf0)]['transformMutationsWithChangeset'](_0x49a264,[_0x3b7ae1]);if(_0x534268(_0x174282)){let {c1Prime:_0x3169be}=_0x174282;return this[_0x58ebee(0xde)](_0x3169be),this;}throw _0x174282[_0x58ebee(0xd2)];}catch(_0x5ba14f){return this[_0x58ebee(0x2b2)][_0x58ebee(0xd2)](_0x5ba14f),this[_0x58ebee(0xc7)](!0x1);}}[_0x1f8522(0xc7)](_0x5aee3f){const _0x2a44cf=_0x1f8522;return this[_0x2a44cf(0xe9)][_0x2a44cf(0x164)](Y,this[_0x2a44cf(0x108)],this['type'],null,[],this[_0x2a44cf(0x226)],_0x5aee3f);}[_0x1f8522(0x201)](_0x17decb){const _0x26fa92=_0x1f8522;if(_0x17decb[_0x26fa92(0x270)]<=this[_0x26fa92(0x275)]())return this;throw Error(_0x26fa92(0x1db));}[_0x1f8522(0x254)](){const _0x4ff1da=_0x1f8522;throw Error(_0x4ff1da(0x2f1));}[_0x1f8522(0x30c)](){return this;}[_0x1f8522(0x1dd)](){const _0x5c8db9=_0x1f8522;return this['_injector'][_0x5c8db9(0x164)](X,this['unitID'],this[_0x5c8db9(0x126)],null,[],this[_0x5c8db9(0x226)]);}[_0x1f8522(0x2c5)](){return this;}['resend'](){const _0x58e322=_0x1f8522;throw Error(_0x58e322(0x24f));}[_0x1f8522(0x2af)](){const _0x3452dc=_0x1f8522;let _0x235825=this[_0x3452dc(0x1f3)][_0x3452dc(0x2d4)](this[_0x3452dc(0x108)]);return this[_0x3452dc(0x226)][_0x3452dc(0x2ae)]({'from':_0x235825,'to':0x0}),this[_0x3452dc(0xe9)][_0x3452dc(0x164)](Z,this[_0x3452dc(0x108)],this[_0x3452dc(0x126)],null,[],null,[],this[_0x3452dc(0x226)]);}};G=z([R(0x3,_0x4f07a4(_0x3c5693)),R(0x4,_0x4f07a4(_0x44d080)),R(0x5,_0x3b54de),R(0x6,_0x3a76f7),R(0x7,_0x1443cf),R(0x8,_0x4f7ff9),R(0x9,_0x1cfc4d(V))],G);let K=Wt=class extends W{constructor(_0x2ae961,_0x1701da,_0x4ec414,_0x402bb8,_0x937210,_0x2f14e0,_0x3462f3,_0x1a14c0,_0x2a8495,_0x2b98a7,_0x2a56a0,_0x40d1ca,_0x4525c4,_0x497b51){const _0x419ab1=_0x1f8522;super(_0x2ae961,_0x1701da,null,_0x4ec414,_0x402bb8,_0x2a8495,_0x4525c4,_0x2f14e0,_0x497b51),this[_0x419ab1(0xe9)]=_0x937210,this['_memberService']=_0x3462f3,this['_logService']=_0x1a14c0,this[_0x419ab1(0xba)]=_0x2b98a7,this[_0x419ab1(0xf0)]=_0x2a56a0,this[_0x419ab1(0xf7)]=_0x40d1ca,I(this,_0x419ab1(0x214),'pending'),I(this,_0x419ab1(0x131),null),I(this,'_sendingTimer',null);}[_0x1f8522(0x295)](_0x36efd7){const _0x3f7d74=_0x1f8522;return this[_0x3f7d74(0x211)][_0x3f7d74(0xc1)](_0x36efd7),this[_0x3f7d74(0x25e)](),this;}[_0x1f8522(0x20e)](_0x178c1a){const _0x200961=_0x1f8522;if(this[_0x200961(0x1e1)](_0x178c1a))return this[_0x200961(0x2a2)](),this[_0x200961(0xe9)][_0x200961(0x164)](Z,this[_0x200961(0x108)],this[_0x200961(0x126)],null,this['_pendingMutations'],null,[_0x178c1a],this[_0x200961(0x226)]);try{let _0x106fdb=this[_0x200961(0xf0)][_0x200961(0x280)](_0x178c1a,this[_0x200961(0x211)]);if(_0x534268(_0x106fdb)){let {c1Prime:_0x35a985,m2Prime:_0x24c3c7}=_0x106fdb;this['_executeRemoteChangeset'](_0x35a985);let _0x10f376=this[_0x200961(0xe9)][_0x200961(0x164)](Wt,this[_0x200961(0x108)],this[_0x200961(0x126)],_0x24c3c7,this['_handler']);this[_0x200961(0x2a2)]();let _0x2cc4ab=new Date()[_0x200961(0x235)](),_0x104f3d=this[_0x200961(0x131)]?Math[_0x200961(0x2c9)](this['_scheduleCompleteTimestamp']-_0x2cc4ab,0x0):this['_getSendChangesetTimeout']();return _0x10f376[_0x200961(0x1f8)](_0x104f3d),_0x10f376;}throw _0x106fdb[_0x200961(0xd2)];}catch(_0x3ab9ad){return this[_0x200961(0x2b2)][_0x200961(0xd2)](_0x3ab9ad),this[_0x200961(0xc7)](!0x1);}}[_0x1f8522(0x201)](_0x481ee2){const _0x4c206e=_0x1f8522;if(_0x481ee2[_0x4c206e(0x270)]<=this[_0x4c206e(0x275)]())return this;throw Error(_0x4c206e(0x1b7));}[_0x1f8522(0x254)](){const _0x48e976=_0x1f8522;throw Error(_0x48e976(0x227));}[_0x1f8522(0x30c)](){return this;}[_0x1f8522(0x1dd)](){const _0x4a3af4=_0x1f8522;return this[_0x4a3af4(0x2a2)](),this[_0x4a3af4(0xe9)][_0x4a3af4(0x164)](X,this[_0x4a3af4(0x108)],this[_0x4a3af4(0x126)],null,this[_0x4a3af4(0x211)],this[_0x4a3af4(0x226)]);}[_0x1f8522(0x2c5)](){return this;}[_0x1f8522(0x1f8)](_0x56487b){const _0x34339f=_0x1f8522;let _0x508ee6=_0x56487b==null?this[_0x34339f(0x1f2)]():_0x56487b;this[_0x34339f(0x131)]=new Date()[_0x34339f(0x235)]()+_0x508ee6,this['_sendingTimer']=setTimeout(()=>{const _0x96f910=_0x34339f;this[_0x96f910(0x2a2)]();let _0xa3f195=null;switch(this[_0x96f910(0x126)]){case _0x292cef['UNIVER_SHEET']:_0xa3f195=It(this[_0x96f910(0x211)],this[_0x96f910(0x108)],this[_0x96f910(0xf7)],this[_0x96f910(0x1f3)],this[_0x96f910(0x2ea)]);break;case _0x292cef[_0x96f910(0x23a)]:_0xa3f195=this['_pendingMutations'][_0x96f910(0x245)](_0x227aa7=>_0x227aa7['id']===_0x234ae8['id'])?Lt(this[_0x96f910(0x211)],this['unitID'],this[_0x96f910(0xf7)],this[_0x96f910(0x1f3)],this[_0x96f910(0x2ea)]):It(this['_pendingMutations'],this[_0x96f910(0x108)],this[_0x96f910(0xf7)],this[_0x96f910(0x1f3)],this['_memberService']);break;default:throw Error('[PendingState]:\x20unhandled\x20univer\x20type:\x20'+this['type']+_0x96f910(0x160));}let {changeset:_0x8b5d43,pendingMutations:_0x33c876}=_0xa3f195;this[_0x96f910(0x226)][_0x96f910(0x2d6)](_0x8b5d43);let _0x1346cc=_0x33c876[_0x96f910(0x10a)]?this['_injector'][_0x96f910(0x164)](J,this['unitID'],this['type'],_0x8b5d43,_0x33c876,this[_0x96f910(0x226)],void 0x0):this[_0x96f910(0xe9)][_0x96f910(0x164)](q,this[_0x96f910(0x108)],this['type'],_0x8b5d43,this['_handler']);_0x1346cc[_0x96f910(0x25e)](),this[_0x96f910(0x226)][_0x96f910(0x272)](this,_0x1346cc);},_0x508ee6);}['_getSendChangesetTimeout'](){const _0x5062b8=_0x1f8522;var _0x2631ab;let _0x4e86d2=this[_0x5062b8(0xba)][_0x5062b8(0xe2)](U);return(_0x2631ab=_0x4e86d2==null?void 0x0:_0x4e86d2[_0x5062b8(0x2b4)])==null?0x7d0:_0x2631ab;}['resend'](){const _0x3eed3f=_0x1f8522;throw Error(_0x3eed3f(0x300));}[_0x1f8522(0x2a2)](){const _0x331dfa=_0x1f8522;this['_sendingTimer']!=null&&(clearTimeout(this['_sendingTimer']),this[_0x331dfa(0x264)]=null);}['_onConflict'](_0x11965f){const _0xb9f45=_0x1f8522;return this[_0xb9f45(0x2a2)](),this[_0xb9f45(0xe9)][_0xb9f45(0x164)](Y,this[_0xb9f45(0x108)],this[_0xb9f45(0x126)],null,this[_0xb9f45(0x211)],this['_handler'],_0x11965f);}};K=Wt=z([R(0x4,_0x4f07a4(_0x44d080)),R(0x5,_0x4f07a4(_0x3c5693)),R(0x6,_0x4f07a4(B)),R(0x7,_0x1443cf),R(0x8,_0x3a76f7),R(0x9,_0x3ba9f8),R(0xa,_0x4f7ff9),R(0xb,_0x3a738f),R(0xc,_0x3b54de),R(0xd,_0x1cfc4d(V))],K);let q=Gt=class extends W{constructor(_0x3c71d7,_0x52950a,_0x398247,_0x51a625,_0x376c34,_0x48c528,_0x1f45d1,_0xcb1d3f,_0x1405fb,_0x5e140d,_0x4b3534){const _0x13f268=_0x1f8522;super(_0x3c71d7,_0x52950a,_0x398247,[],_0x51a625,_0x1f45d1,_0x5e140d,_0x48c528,_0x4b3534),this[_0x13f268(0xe9)]=_0x376c34,this[_0x13f268(0x2b2)]=_0xcb1d3f,this[_0x13f268(0xf0)]=_0x1405fb,I(this,_0x13f268(0x214),_0x13f268(0x31e)),I(this,_0x13f268(0x279),0x0),I(this,_0x13f268(0x316),0x0),I(this,'_resendTimer',void 0x0),I(this,'_sender',void 0x0);}[_0x1f8522(0x295)](_0x5f164b){const _0x2f9740=_0x1f8522;this[_0x2f9740(0x2a2)]();let _0x19d4d3=this[_0x2f9740(0xe9)][_0x2f9740(0x164)](J,this[_0x2f9740(0x108)],this[_0x2f9740(0x126)],this['_awaitingChangeset'],[_0x5f164b],this[_0x2f9740(0x226)],this[_0x2f9740(0x218)]);return _0x19d4d3[_0x2f9740(0x25e)](),_0x19d4d3;}[_0x1f8522(0x20e)](_0x4a1941){const _0x1cacc9=_0x1f8522;if(this['_checkMissing'](_0x4a1941))return this[_0x1cacc9(0x2a2)](),this[_0x1cacc9(0xe9)][_0x1cacc9(0x164)](Z,this['unitID'],this[_0x1cacc9(0x126)],this['_awaitingChangeset'],[],null,[_0x4a1941],this[_0x1cacc9(0x226)]);try{let _0x245001=this['_transformService'][_0x1cacc9(0x21d)]([_0x4a1941],[this['_awaitingChangeset']],!0x1);if(_0x1dbd0e(_0x245001)){let {c1Prime:_0x634538,c2Prime:_0x353fdb}=_0x245001;this[_0x1cacc9(0xde)](_0x634538[0x0]),_0x353fdb[0x0][_0x1cacc9(0x18f)]=this['_getCurrentRevision'](),this[_0x1cacc9(0x2a2)]();let _0x1df3c1=this['_injector'][_0x1cacc9(0x164)](Gt,this['unitID'],this[_0x1cacc9(0x126)],_0x353fdb[0x0],this[_0x1cacc9(0x226)]);return _0x1df3c1['_updateLocalCache'](),_0x1df3c1;}throw _0x245001[_0x1cacc9(0xd2)];}catch(_0x48086f){return this[_0x1cacc9(0x2b2)][_0x1cacc9(0xd2)](_0x48086f),this[_0x1cacc9(0xc7)](!0x1);}}['onRemoteAck'](_0x5e44cd){const _0x449336=_0x1f8522;this[_0x449336(0x2a2)]();let _0x42773a=this[_0x449336(0x1f3)]['getCurrentRevOfUnit'](this['unitID']);if(_0x5e44cd['revision']<=_0x42773a)return this;if(this[_0x449336(0x1e1)](_0x5e44cd))return this[_0x449336(0xe9)][_0x449336(0x164)](Z,this[_0x449336(0x108)],this['type'],this[_0x449336(0x11a)],[],_0x5e44cd[_0x449336(0x270)],[],this[_0x449336(0x226)]);this[_0x449336(0x1fb)]();let _0x5cdb53=this[_0x449336(0xe9)][_0x449336(0x164)](G,this[_0x449336(0x108)],this['type'],this[_0x449336(0x226)]);return _0x5cdb53[_0x449336(0x25e)](),_0x5cdb53;}[_0x1f8522(0x254)](_0x1f582f){const _0xed8a37=_0x1f8522;return this['_onConflict'](!!(_0x1f582f!=null&&_0x1f582f[_0xed8a37(0x1ee)]));}[_0x1f8522(0x30c)](_0x1bf0a2){const _0xc8249=_0x1f8522;return this[_0xc8249(0x316)]>Yt?this[_0xc8249(0x1dd)]():(this[_0xc8249(0x218)]=Ut(this[_0xc8249(0x279)],{'timeout':this['_resendTimeout'],'reqId':_0x1bf0a2[_0xc8249(0x2c4)]}),this['_sender']=this[_0xc8249(0x218)][_0xc8249(0xfb)](({reqId:_0x42654b,timeout:_0x4ee5ec})=>{const _0x4665bc=_0xc8249;this[_0x4665bc(0x22c)](_0x42654b,_0x4ee5ec);}),this);}[_0x1f8522(0x1dd)](){const _0x5e0522=_0x1f8522;return this[_0x5e0522(0x2a2)](),this['_injector'][_0x5e0522(0x164)](X,this[_0x5e0522(0x108)],this[_0x5e0522(0x126)],this['_awaitingChangeset'],[],this['_handler']);}[_0x1f8522(0x2c5)](){return this;}[_0x1f8522(0x231)](){const _0x4a5bf5=_0x1f8522;this[_0x4a5bf5(0x226)][_0x4a5bf5(0x2d6)](this[_0x4a5bf5(0x11a)]);}[_0x1f8522(0xc7)](_0x1b040a){const _0x3f5785=_0x1f8522;return this['_clearScheduledTask'](),this[_0x3f5785(0xe9)]['createInstance'](Y,this[_0x3f5785(0x108)],this[_0x3f5785(0x126)],this[_0x3f5785(0x11a)],[],this[_0x3f5785(0x226)],_0x1b040a);}['_resendWithTimeout'](_0x33ce1a,_0x1f720f){const _0x5c2152=_0x1f8522;var _0x12e494;_0x33ce1a===((_0x12e494=this[_0x5c2152(0x11a)])==null?void 0x0:_0x12e494[_0x5c2152(0x2c4)])&&(this[_0x5c2152(0x231)](),this[_0x5c2152(0x279)]=_0x1f720f===0x0?0x3e8:Math[_0x5c2152(0x260)](_0x1f720f*0x2,Jt),this['_maxTotalRetryTimeout']+=this[_0x5c2152(0x279)]);}[_0x1f8522(0x2a2)](){const _0x227242=_0x1f8522;var _0xdeb42;(_0xdeb42=this[_0x227242(0x1a0)])==null||_0xdeb42[_0x227242(0x1f0)](),this[_0x227242(0x279)]=0x0,this[_0x227242(0x316)]=0x0;}};q=Gt=z([R(0x4,_0x4f07a4(_0x44d080)),R(0x5,_0x4f07a4(_0x3c5693)),R(0x6,_0x3a76f7),R(0x7,_0x1443cf),R(0x8,_0x4f7ff9),R(0x9,_0x3b54de),R(0xa,_0x1cfc4d(V))],q);let J=Kt=class extends W{constructor(_0x2280b4,_0x1a847f,_0x4cdf77,_0x299908,_0x1d1f49,_0x1047fc,_0x7b4165,_0x3c7001,_0x48036e,_0x378ff1,_0x3cf563,_0x691293,_0x19b2c6){const _0x4c9003=_0x1f8522;super(_0x2280b4,_0x1a847f,_0x4cdf77,_0x299908,_0x1d1f49,_0x48036e,_0x691293,_0x3c7001,_0x19b2c6),this[_0x4c9003(0xe9)]=_0x7b4165,this['_logService']=_0x378ff1,this[_0x4c9003(0xf0)]=_0x3cf563,this['localCacheService']=_0x19b2c6,I(this,_0x4c9003(0x214),_0x4c9003(0x13b)),I(this,_0x4c9003(0x279),0x0),I(this,_0x4c9003(0x316),0x0),I(this,_0x4c9003(0x218),void 0x0),I(this,_0x4c9003(0x1a0),void 0x0),_0x1047fc&&(this[_0x4c9003(0x218)]=_0x1047fc,this['_sender']=this[_0x4c9003(0x218)][_0x4c9003(0xfb)](({reqId:_0x174e77,timeout:_0x5a2088})=>{const _0x20b82b=_0x4c9003;this[_0x20b82b(0x22c)](_0x174e77,_0x5a2088);}));}[_0x1f8522(0x295)](_0x2bd7a8){const _0x1915c1=_0x1f8522;return this[_0x1915c1(0x211)][_0x1915c1(0xc1)](_0x2bd7a8),this;}[_0x1f8522(0x20e)](_0x104df6){const _0x2c009c=_0x1f8522;if(this[_0x2c009c(0x1e1)](_0x104df6))return this['_clearScheduledTask'](),this[_0x2c009c(0xe9)]['createInstance'](Z,this['unitID'],this[_0x2c009c(0x126)],this[_0x2c009c(0x11a)],this[_0x2c009c(0x211)],null,[_0x104df6],this[_0x2c009c(0x226)]);try{let _0x185662=this[_0x2c009c(0xf0)][_0x2c009c(0x21d)]([_0x104df6],[this[_0x2c009c(0x11a)]],!0x1);if(_0x1dbd0e(_0x185662)){let {c1Prime:_0x2c4202,c2Prime:_0x26da7f}=_0x185662,_0x2d03c2=this['_transformService'][_0x2c009c(0x280)](_0x2c4202[0x0],this['_pendingMutations']);if(_0x534268(_0x2d03c2)){let {c1Prime:_0x2bb486,m2Prime:_0x57f4cc}=_0x2d03c2;return this['_executeRemoteChangeset'](_0x2bb486),_0x26da7f[0x0]['baseRev']=this[_0x2c009c(0x275)](),this[_0x2c009c(0x2a2)](),this[_0x2c009c(0xe9)][_0x2c009c(0x164)](Kt,this['unitID'],this[_0x2c009c(0x126)],_0x26da7f[0x0],_0x57f4cc,this[_0x2c009c(0x226)],void 0x0);}throw _0x2d03c2[_0x2c009c(0xd2)];}throw _0x185662[_0x2c009c(0xd2)];}catch(_0x356356){return this[_0x2c009c(0x2b2)]['error'](_0x356356),this[_0x2c009c(0xc7)](!0x1);}}[_0x1f8522(0x201)](_0x538cb6){const _0x5411f4=_0x1f8522;this[_0x5411f4(0x2a2)]();let _0xa41dd0=this[_0x5411f4(0x275)]();if(_0x538cb6[_0x5411f4(0x270)]<=_0xa41dd0)return this;if(this['_checkMissing'](_0x538cb6))return this[_0x5411f4(0xe9)][_0x5411f4(0x164)](Z,this[_0x5411f4(0x108)],this['type'],this[_0x5411f4(0x11a)],this[_0x5411f4(0x211)],_0x538cb6['revision'],[],this['_handler']);this[_0x5411f4(0x1fb)]();let _0xbcbcbd=this[_0x5411f4(0xe9)][_0x5411f4(0x164)](K,this[_0x5411f4(0x108)],this[_0x5411f4(0x126)],this[_0x5411f4(0x211)],this['_handler']);return _0xbcbcbd[_0x5411f4(0x1f8)](),_0xbcbcbd[_0x5411f4(0x25e)](),_0xbcbcbd;}[_0x1f8522(0x254)](_0x627f12){const _0x1cff9a=_0x1f8522;return this[_0x1cff9a(0xc7)](!!(_0x627f12!=null&&_0x627f12[_0x1cff9a(0x1ee)]));}[_0x1f8522(0x30c)](_0x37b66b){const _0x583e7a=_0x1f8522;return this[_0x583e7a(0x316)]>Yt?this[_0x583e7a(0x1dd)]():(this['_resendTimer']=Ut(this[_0x583e7a(0x279)],{'timeout':this[_0x583e7a(0x279)],'reqId':_0x37b66b[_0x583e7a(0x2c4)]}),this[_0x583e7a(0x1a0)]=this[_0x583e7a(0x218)][_0x583e7a(0xfb)](({reqId:_0x360178,timeout:_0x242788})=>{const _0x4a7deb=_0x583e7a;this[_0x4a7deb(0x22c)](_0x360178,_0x242788);}),this);}['toggleOffline'](){const _0x3080df=_0x1f8522;return this[_0x3080df(0x2a2)](),this['_injector'][_0x3080df(0x164)](X,this[_0x3080df(0x108)],this[_0x3080df(0x126)],this[_0x3080df(0x11a)],this[_0x3080df(0x211)],this[_0x3080df(0x226)]);}['toggleOnline'](){return this;}[_0x1f8522(0x231)](){const _0x2d9100=_0x1f8522;this[_0x2d9100(0x226)][_0x2d9100(0x2d6)](this[_0x2d9100(0x11a)]);}[_0x1f8522(0xc7)](_0x1de8cc){const _0x46e68a=_0x1f8522;return this['_clearScheduledTask'](),this[_0x46e68a(0xe9)][_0x46e68a(0x164)](Y,this[_0x46e68a(0x108)],this['type'],null,this[_0x46e68a(0x211)],this['_handler'],_0x1de8cc);}[_0x1f8522(0x22c)](_0x42aaa2,_0x56c085){const _0xcfb75c=_0x1f8522;var _0x226185;_0x42aaa2===((_0x226185=this['_awaitingChangeset'])==null?void 0x0:_0x226185[_0xcfb75c(0x2c4)])&&(this['resend'](),this[_0xcfb75c(0x279)]=_0x56c085===0x0?0x3e8:Math[_0xcfb75c(0x260)](_0x56c085*0x2,Jt),this[_0xcfb75c(0x316)]+=this['_resendTimeout']);}[_0x1f8522(0x2a2)](){const _0x1c0b64=_0x1f8522;var _0x4873f0;(_0x4873f0=this[_0x1c0b64(0x1a0)])==null||_0x4873f0['unsubscribe'](),this[_0x1c0b64(0x279)]=0x0,this[_0x1c0b64(0x316)]=0x0;}};J=Kt=z([R(0x6,_0x4f07a4(_0x44d080)),R(0x7,_0x4f07a4(_0x3c5693)),R(0x8,_0x3a76f7),R(0x9,_0x1443cf),R(0xa,_0x4f7ff9),R(0xb,_0x3b54de),R(0xc,_0x1cfc4d(V))],J);let Y=class extends W{constructor(_0x4229aa,_0x3dad61,_0x1e6007,_0x5d7352,_0x42aafb,_0x4ff9a4=!0x1,_0x5117b4,_0x1a4961,_0x3954a9,_0x2b49db,_0x10ea81,_0x5c84e6,_0xaf5064){const _0x612f8a=_0x1f8522;super(_0x4229aa,_0x3dad61,_0x1e6007,_0x5d7352,_0x42aafb,_0x1a4961,_0x3954a9,_0x2b49db,_0xaf5064),this[_0x612f8a(0xfd)]=_0x4ff9a4,this[_0x612f8a(0xfe)]=_0x5117b4,this[_0x612f8a(0x2e9)]=_0x10ea81,this[_0x612f8a(0x2b3)]=_0x5c84e6,this[_0x612f8a(0xf6)]=_0xaf5064,I(this,_0x612f8a(0x214),'conflict'),this[_0x612f8a(0x192)](),this[_0x612f8a(0x132)](),this['_disableEditing']();}[_0x1f8522(0x295)](){return this;}[_0x1f8522(0x20e)](){return this;}['onRemoteAck'](){return this;}[_0x1f8522(0x254)](){return this;}[_0x1f8522(0x30c)](){return this;}[_0x1f8522(0x1dd)](){return this;}[_0x1f8522(0x2c5)](){return this;}[_0x1f8522(0x231)](){throw Error('[ConflictState]:\x20invalid\x20calling\x20to\x20`resend`.');}[_0x1f8522(0x132)](){const _0x185077=_0x1f8522;var _0x49075a;(_0x49075a=this[_0x185077(0xdd)])==null||_0x49075a[_0x185077(0x210)](this['unitID'],this[_0x185077(0x126)],null,[]);}[_0x1f8522(0x192)](){const _0x2bed19=_0x1f8522;this['_isPermissionRej']?this[_0x2bed19(0x2b3)]['emitEvent']({'id':'PERMISSION_DENIED'}):this[_0x2bed19(0x2b3)]['emitEvent']({'id':_0x2bed19(0x148)});}[_0x1f8522(0x159)](){const _0x3ee634=_0x1f8522;this[_0x3ee634(0xfe)]['updatePermissionPoint'](new _0x14cd38(this[_0x3ee634(0x108)])['id'],!0x1);}};Y=z([R(0x6,_0x4f07a4(_0x439c61)),R(0x7,_0x3a76f7),R(0x8,_0x3b54de),R(0x9,_0x4f07a4(_0x3c5693)),R(0xa,_0x4f07a4(_0x220418)),R(0xb,_0x4f07a4(L)),R(0xc,_0x1cfc4d(V))],Y);let X=class extends W{constructor(_0x5ea880,_0x4b0d77,_0x434d6d,_0xea1bd1,_0x5b8042,_0x32afab,_0x3df5df,_0x5aa707,_0x16ea4a,_0xfc10d5){const _0x5a57a3=_0x1f8522;super(_0x5ea880,_0x4b0d77,_0x434d6d,_0xea1bd1,_0x5b8042,_0x5aa707,_0x16ea4a,_0x3df5df,_0xfc10d5),this['_injector']=_0x32afab,I(this,_0x5a57a3(0x214),_0x5a57a3(0x120));}[_0x1f8522(0x295)](_0x1a4fd7){const _0x4e4299=_0x1f8522;return this[_0x4e4299(0x211)][_0x4e4299(0xc1)](_0x1a4fd7),this[_0x4e4299(0x25e)](),this;}[_0x1f8522(0x20e)](_0x14aa7c){throw Error('[OfflineState]:\x20received\x20changeset.');}['onRemoteAck'](){throw Error('[OfflineState]:\x20received\x20acknowledgement.');}[_0x1f8522(0x254)](){const _0x3a65b8=_0x1f8522;throw Error(_0x3a65b8(0x2c3));}[_0x1f8522(0x30c)](){return this;}['toggleOffline'](){return this;}[_0x1f8522(0x2c5)](){let {_injector:_0x511dcc,_pendingMutations:_0x59914c,_awaitingChangeset:_0x26ecd1,unitID:_0x5e06f2,_handler:_0x5f42aa,type:_0x19c584}=this,_0x17e334=Xt(_0x511dcc,_0x5e06f2,_0x19c584,_0x26ecd1,_0x59914c,_0x5f42aa);return _0x17e334 instanceof K?_0x17e334['_schedule']():(_0x17e334 instanceof J||_0x17e334 instanceof q)&&_0x17e334['resend'](),_0x17e334;}[_0x1f8522(0x231)](){const _0x3d3ad9=_0x1f8522;throw Error(_0x3d3ad9(0x246));}};X=z([R(0x5,_0x4f07a4(_0x44d080)),R(0x6,_0x4f07a4(_0x3c5693)),R(0x7,_0x3a76f7),R(0x8,_0x3b54de),R(0x9,_0x1cfc4d(V))],X);let Z=class extends W{constructor(_0x4e9c6d,_0x516c79,_0x18fc74,_0x4c7c34,_0x129c54,_0x517ead,_0xea15d5,_0x4253fd,_0x45a491,_0x1b4f97,_0x2a5b2a,_0x3d7bb7,_0x2ecc8d,_0x3b2599){const _0x1f57e6=_0x1f8522;super(_0x4e9c6d,_0x516c79,_0x18fc74,_0x4c7c34,_0xea15d5,_0x2a5b2a,_0x3d7bb7,_0x45a491,_0x3b2599),this[_0x1f57e6(0x2ec)]=_0x129c54,this[_0x1f57e6(0x313)]=_0x517ead,this[_0x1f57e6(0xe9)]=_0x4253fd,this[_0x1f57e6(0x2b2)]=_0x1b4f97,this[_0x1f57e6(0xf0)]=_0x2ecc8d,this[_0x1f57e6(0xf6)]=_0x3b2599,I(this,'status',_0x1f57e6(0x13a));}[_0x1f8522(0x13d)](_0x45dadc){const _0x56082b=_0x1f8522;try{if(this[_0x56082b(0x2e2)](_0x45dadc)['missingChangesets'])throw Error(_0x56082b(0x23e));if(this[_0x56082b(0x2e2)]([...this[_0x56082b(0x313)]]['sort']((_0x271072,_0x2b90bb)=>_0x271072[_0x56082b(0x270)]-_0x2b90bb[_0x56082b(0x270)]))[_0x56082b(0xd6)])return this[_0x56082b(0x313)]=[],this['_updateLocalCache'](),this['_handler'][_0x56082b(0x2ae)]({'from':this[_0x56082b(0x275)](),'to':0x0}),this;let _0x2b7a4e=this[_0x56082b(0x11a)],_0x290072=this[_0x56082b(0x211)],_0x6b1a90;if(_0x2b7a4e&&_0x290072[_0x56082b(0x10a)]!==0x0)_0x6b1a90=this[_0x56082b(0xe9)][_0x56082b(0x164)](J,this['unitID'],this[_0x56082b(0x126)],_0x2b7a4e,_0x290072,this[_0x56082b(0x226)],void 0x0);else{if(_0x2b7a4e&&_0x290072[_0x56082b(0x10a)]===0x0)_0x2b7a4e[_0x56082b(0x18f)]=this['_getCurrentRevision'](),_0x6b1a90=this[_0x56082b(0xe9)][_0x56082b(0x164)](q,this[_0x56082b(0x108)],this[_0x56082b(0x126)],_0x2b7a4e,this[_0x56082b(0x226)]);else{if(_0x290072[_0x56082b(0x10a)]!==0x0){let _0xe99909=this[_0x56082b(0xe9)][_0x56082b(0x164)](K,this[_0x56082b(0x108)],this[_0x56082b(0x126)],_0x290072,this['_handler']);_0xe99909[_0x56082b(0x1f8)](),_0x6b1a90=_0xe99909;}else _0x6b1a90=this[_0x56082b(0xe9)]['createInstance'](G,this['unitID'],this['type'],this['_handler']);}}return _0x6b1a90[_0x56082b(0x25e)](),_0x6b1a90;}catch(_0x5a8ee9){return this[_0x56082b(0x2b2)][_0x56082b(0xd2)](_0x56082b(0x151),_0x56082b(0x153),_0x5a8ee9),this['_injector'][_0x56082b(0x164)](Y,this[_0x56082b(0x108)],this[_0x56082b(0x126)],this[_0x56082b(0x11a)],this[_0x56082b(0x211)],this['_handler'],!0x1);}}[_0x1f8522(0x2e2)](_0x77c894){const _0x707c6f=_0x1f8522;this[_0x707c6f(0x25d)]();for(let _0x37c25e=0x0;_0x37c25e<_0x77c894['length'];_0x37c25e++){let _0x478e09=_0x77c894[_0x37c25e],_0x3b8112=this['_getCurrentRevision']();if(!(_0x478e09['revision']<=_0x3b8112)){if(_0x478e09[_0x707c6f(0x270)]>_0x3b8112+0x1)return{'missingChangesets':!0x0};if(this[_0x707c6f(0x228)](_0x478e09)){this[_0x707c6f(0x2ac)]();continue;}this[_0x707c6f(0x150)](_0x478e09),this[_0x707c6f(0x25d)]();}}return{'missingChangesets':!0x1};}[_0x1f8522(0x150)](_0x4217a8){const _0x4ad48a=_0x1f8522;let _0x7ff1dd=_0x4217a8,_0x4ad5ea=this[_0x4ad48a(0x11a)];if(_0x4ad5ea){let _0x14bf67=this['_transformService']['transformChangesets']([_0x4217a8],[_0x4ad5ea],!0x1);if(!_0x1dbd0e(_0x14bf67))throw _0x14bf67['error'];_0x7ff1dd=_0x14bf67[_0x4ad48a(0x2bb)][0x0],_0x4ad5ea=_0x14bf67['c2Prime'][0x0];}let _0x39ec82=this[_0x4ad48a(0x211)];if(_0x39ec82['length']){let _0x3a5dd7=this['_transformService'][_0x4ad48a(0x280)](_0x7ff1dd,_0x39ec82);if(!_0x534268(_0x3a5dd7))throw _0x3a5dd7[_0x4ad48a(0xd2)];_0x7ff1dd=_0x3a5dd7[_0x4ad48a(0x2bb)],_0x39ec82=_0x3a5dd7[_0x4ad48a(0x2c1)];}this[_0x4ad48a(0xde)](_0x7ff1dd),_0x4ad5ea&&(_0x4ad5ea[_0x4ad48a(0x18f)]=this[_0x4ad48a(0x275)]()),this['_awaitingChangeset']=_0x4ad5ea,this[_0x4ad48a(0x211)]=_0x39ec82;}[_0x1f8522(0x25d)](){const _0xd19d6a=_0x1f8522;if(!this[_0xd19d6a(0x11a)]||this['_acknowledgedAwaitingRevision']==null)return;let _0x11da8d=this[_0xd19d6a(0x275)]();if(this['_acknowledgedAwaitingRevision']<=_0x11da8d)throw Error('[FetchingMissState]:\x20received\x20stale\x20ack\x20revision:\x20'+this['_acknowledgedAwaitingRevision']+'.');this['_acknowledgedAwaitingRevision']===_0x11da8d+0x1&&this[_0xd19d6a(0x2ac)]();}[_0x1f8522(0x2ac)](){const _0x69e9b5=_0x1f8522;this[_0x69e9b5(0x1fb)](),this[_0x69e9b5(0x11a)]=null,this[_0x69e9b5(0x2ec)]=null;}[_0x1f8522(0x228)](_0x36790e){const _0x170550=_0x1f8522;let _0x3c5db9=this[_0x170550(0x11a)];return!_0x3c5db9||!_0x3c5db9[_0x170550(0x17a)]||_0x3c5db9[_0x170550(0x2c4)]===null||_0x3c5db9[_0x170550(0x2c4)]===void 0x0?!0x1:_0x36790e[_0x170550(0x108)]===_0x3c5db9[_0x170550(0x108)]&&_0x36790e[_0x170550(0x17a)]===_0x3c5db9[_0x170550(0x17a)]&&_0x36790e[_0x170550(0x2c4)]===_0x3c5db9[_0x170550(0x2c4)];}[_0x1f8522(0x231)](){throw Error('[FetchingMissState]:\x20invalid\x20calling\x20to\x20`resend`.');}[_0x1f8522(0x295)](_0x46ffc1){const _0x8ec60f=_0x1f8522;return this[_0x8ec60f(0x211)][_0x8ec60f(0xc1)](_0x46ffc1),this;}['onRemoteChangeset'](_0x7b03d9){const _0x58c532=_0x1f8522;return this[_0x58c532(0x313)][_0x58c532(0xc1)](_0x7b03d9),this;}[_0x1f8522(0x201)](_0x3c7156){const _0x252d65=_0x1f8522;if(this[_0x252d65(0x11a)]){let _0x51bf4c=this['_getCurrentRevision']();return _0x3c7156['revision']<=_0x51bf4c||(_0x51bf4c+0x1===_0x3c7156[_0x252d65(0x270)]?(this[_0x252d65(0x1fb)](),this['_awaitingChangeset']=null,this[_0x252d65(0x2ec)]=null):this[_0x252d65(0x2ec)]=_0x3c7156[_0x252d65(0x270)]),this;}if(_0x3c7156[_0x252d65(0x270)]<=this['_getCurrentRevision']())return this;throw Error('[FetchingMissState]:\x20not\x20expected\x20to\x20receive\x20ack\x20when\x20`this._awaitingChangeset`\x20is\x20null!');}[_0x1f8522(0x254)](_0x2bb381){const _0x48ddff=_0x1f8522;return this[_0x48ddff(0xc7)](!!(_0x2bb381!=null&&_0x2bb381[_0x48ddff(0x1ee)]));}[_0x1f8522(0x30c)](){return this;}['toggleOffline'](){const _0x2f1434=_0x1f8522;return this[_0x2f1434(0xe9)][_0x2f1434(0x164)](X,this[_0x2f1434(0x108)],this[_0x2f1434(0x126)],this['_awaitingChangeset'],this[_0x2f1434(0x211)],this['_handler']);}[_0x1f8522(0x2c5)](){return this;}[_0x1f8522(0xc7)](_0x4e0b91){const _0x513cba=_0x1f8522;return this[_0x513cba(0xe9)]['createInstance'](Y,this[_0x513cba(0x108)],this[_0x513cba(0x126)],this[_0x513cba(0x11a)],this[_0x513cba(0x211)],this[_0x513cba(0x226)],_0x4e0b91);}};Z=z([R(0x7,_0x4f07a4(_0x44d080)),R(0x8,_0x4f07a4(_0x3c5693)),R(0x9,_0x1443cf),R(0xa,_0x3a76f7),R(0xb,_0x3b54de),R(0xc,_0x4f7ff9),R(0xd,_0x1cfc4d(V))],Z);function Xt(_0x51f83e,_0x29392c,_0x18277c,_0x113912,_0x4d413e,_0x5ed183){const _0x5a25e3=_0x1f8522;return _0x113912&&_0x4d413e[_0x5a25e3(0x10a)]?_0x51f83e[_0x5a25e3(0x164)](J,_0x29392c,_0x18277c,_0x113912,_0x4d413e,_0x5ed183,void 0x0):_0x113912?_0x51f83e[_0x5a25e3(0x164)](q,_0x29392c,_0x18277c,_0x113912,_0x5ed183):_0x4d413e[_0x5a25e3(0x10a)]?_0x51f83e[_0x5a25e3(0x164)](K,_0x29392c,_0x18277c,_0x4d413e,_0x5ed183):_0x51f83e[_0x5a25e3(0x164)](G,_0x29392c,_0x18277c,_0x5ed183);}let Zt=class extends _0x3498fe{get[_0x1f8522(0x2f9)](){const _0x290277=_0x1f8522;return this[_0x290277(0x1e4)];}constructor(_0x593983,_0x36e38d,_0x373c9f,_0x4250b9,_0x523a96,_0x249b9f,_0x222072,_0x1991a1,_0x1620da,_0x16b52a,_0x5e5c5a,_0xe2e312,_0x374675,_0x2dcfab){const _0x11a89e=_0x1f8522;super(),this[_0x11a89e(0x108)]=_0x593983,this[_0x11a89e(0x2cc)]=_0x36e38d,this[_0x11a89e(0x17e)]=_0x373c9f,this['_injector']=_0x4250b9,this['_compressMutationService']=_0x523a96,this[_0x11a89e(0x2e9)]=_0x249b9f,this[_0x11a89e(0x1f3)]=_0x222072,this[_0x11a89e(0x27b)]=_0x1991a1,this[_0x11a89e(0xf7)]=_0x1620da,this['_logService']=_0x16b52a,this[_0x11a89e(0x31a)]=_0x5e5c5a,this['_permissionService']=_0xe2e312,this[_0x11a89e(0xb9)]=_0x374675,this[_0x11a89e(0xdd)]=_0x2dcfab,I(this,'_state$',new _0x2acfcb(null)),I(this,_0x11a89e(0x1cc),this[_0x11a89e(0x2be)][_0x11a89e(0x2b0)]()),I(this,_0x11a89e(0x1e4),void 0x0),I(this,_0x11a89e(0x1b3),!0x1),I(this,_0x11a89e(0x2ed),''),I(this,'_changesetReqId',0x0),I(this,'status$',this[_0x11a89e(0x1cc)][_0x11a89e(0x27e)](_0x4d141e(_0x2ee0fb=>_0x2ee0fb?_0x2ee0fb[_0x11a89e(0x214)]:'offline'),_0x60bd5a({'bufferSize':0x1,'refCount':!0x0}))),I(this,'_transitionLocked',!0x1),I(this,'_remoteChangesetQueue',[]);}async[_0x1f8522(0x266)](){const _0x4903f1=_0x1f8522;if(this[_0x4903f1(0x2f9)])throw Error('[CollaborationEntity]:\x20initial\x20state\x20has\x20been\x20created\x20before.\x20You\x20should\x20not\x20call\x20\x22init\x22\x20twice.');await this[_0x4903f1(0x182)]();}['pauseCollaboration'](){return this['_collaborationPaused']=!0x0,_0x224a5f(()=>{const _0x3fed4b=_0x249d;this[_0x3fed4b(0x1b3)]=!0x1,this[_0x3fed4b(0x221)]();});}[_0x1f8522(0x244)](_0x3d5eee){const _0x227c48=_0x1f8522;this[_0x227c48(0x287)](_0x3d5eee);}[_0x1f8522(0x1a2)](_0x2ea5f2){const _0x5c5dda=_0x1f8522;this[_0x5c5dda(0x1e4)]=_0x2ea5f2,this[_0x5c5dda(0x2be)][_0x5c5dda(0xc4)](_0x2ea5f2);}async[_0x1f8522(0x182)](){const _0x8f40c3=_0x1f8522;if(this['_updateState'](await this[_0x8f40c3(0x2b9)]()),this[_0x8f40c3(0xb9)]){var _0xd8307d;(_0xd8307d=this[_0x8f40c3(0xb9)])==null||_0xd8307d[_0x8f40c3(0x284)](this[_0x8f40c3(0x108)]),this[_0x8f40c3(0x2e0)](this[_0x8f40c3(0xb9)][_0x8f40c3(0x1ef)](this['unitID'])[_0x8f40c3(0xfb)](_0x88ec84=>{const _0xe481c4=_0x8f40c3;this[_0xe481c4(0x2b2)][_0xe481c4(0x305)](_0xe481c4(0x2dd),'editing\x20status\x20changed\x20to',_0x88ec84),_0x88ec84===0x1?(this[_0xe481c4(0x27b)][_0xe481c4(0x15d)]({'id':_0xe481c4(0x167)}),this[_0xe481c4(0xfe)]['updatePermissionPoint'](new _0x14cd38(this[_0xe481c4(0x108)])['id'],!0x1),this[_0xe481c4(0xfe)][_0xe481c4(0x18b)](!0x1)):(this[_0xe481c4(0xfe)][_0xe481c4(0x134)](new _0x14cd38(this[_0xe481c4(0x108)])['id'],!0x0),this[_0xe481c4(0xfe)][_0xe481c4(0x18b)](!0x0));}));}let _0x1225ee=!0x1;return this[_0x8f40c3(0x2e0)](this[_0x8f40c3(0x2cc)]['sessionStatus$'][_0x8f40c3(0xfb)](_0x3e845f=>{const _0x14ceed=_0x8f40c3;_0x3e845f===0x3?this[_0x14ceed(0x1cf)](_0x1225ee):_0x3e845f===0x2&&(_0x1225ee=!0x0,this['_toggleOffline']());})),this[_0x8f40c3(0x2e0)](this[_0x8f40c3(0x2cc)][_0x8f40c3(0xfa)][_0x8f40c3(0xfb)](_0x3755a8=>{const _0x4b3979=_0x8f40c3;try{switch(_0x3755a8[_0x4b3979(0x281)]){case _0x27e67f[_0x4b3979(0x29e)]:this[_0x4b3979(0x11b)](_0x13b02b(_0x3755a8[_0x4b3979(0x194)]));break;case _0x27e67f[_0x4b3979(0xce)]:this['_onRemoteACK'](_0x3755a8[_0x4b3979(0x194)]);break;case _0x27e67f[_0x4b3979(0x1a1)]:this[_0x4b3979(0x23b)]();break;case _0x27e67f[_0x4b3979(0x1b1)]:this[_0x4b3979(0x196)](_0x3755a8[_0x4b3979(0x194)]);break;case _0x27e67f[_0x4b3979(0x25a)]:this[_0x4b3979(0x28d)](_0x3755a8['data'][_0x4b3979(0x2f3)][_0x4b3979(0x1f1)](_0x1d143e=>_0x13b02b(_0x1d143e)));break;case _0x27e67f['PERMISSION_REJ']:this[_0x4b3979(0x23b)]({'isPermissionRej':!0x0});break;case _0x27e67f[_0x4b3979(0x17c)]:break;}}catch(_0x3861e2){throw console[_0x4b3979(0xd2)]('Error\x20on\x20receiving\x20event',_0x3861e2),_0x3861e2;}})),this[_0x8f40c3(0x1e4)];}[_0x1f8522(0x102)](){const _0x53896f=_0x1f8522;this[_0x53896f(0x207)]=!0x1;}[_0x1f8522(0x1c3)](){const _0x30130d=_0x1f8522;if(this[_0x30130d(0x207)])throw Error('[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.');this[_0x30130d(0x207)]=!0x0;}[_0x1f8522(0x287)](_0x38fa17){const _0x5269b5=_0x1f8522;this['_lockTransition'](),this[_0x5269b5(0x1a2)](this['_state'][_0x5269b5(0x295)](_0x38fa17)),this[_0x5269b5(0x102)]();}[_0x1f8522(0x11b)](_0x496bba){const _0x2a8e1b=_0x1f8522;if(!(_0x496bba[_0x2a8e1b(0x270)]<=this[_0x2a8e1b(0x1f3)][_0x2a8e1b(0x2d4)](this[_0x2a8e1b(0x108)]))){if(this[_0x2a8e1b(0x1b3)]){this[_0x2a8e1b(0x1e8)][_0x2a8e1b(0xc1)](_0x496bba);return;}this[_0x2a8e1b(0x21b)](_0x496bba);}}[_0x1f8522(0x221)](){const _0x3832a4=_0x1f8522;this[_0x3832a4(0x1e8)][_0x3832a4(0x1b0)](_0x12eae2=>this[_0x3832a4(0x21b)](_0x12eae2)),this['_remoteChangesetQueue']=[];}['_applyRemoteChangeset'](_0x5ad90f){const _0x39730a=_0x1f8522;let _0x4efbf9=this[_0x39730a(0x2bf)]['interceptor'][_0x39730a(0x29f)](this['_compressMutationService'][_0x39730a(0x137)]['getInterceptPoints']()[_0x39730a(0x143)])(_0x5ad90f[_0x39730a(0x236)],null)||_0x5ad90f['mutations'],_0x3eccee={..._0x5ad90f,'mutations':_0x4efbf9};this[_0x39730a(0x1c3)](),this[_0x39730a(0x1a2)](this[_0x39730a(0x1e4)][_0x39730a(0x20e)](_0x3eccee)),this[_0x39730a(0x102)]();}[_0x1f8522(0x24b)](_0x3eb4f6){const _0x5ec0b1=_0x1f8522;this['_lockTransition'](),this[_0x5ec0b1(0x1a2)](this['_state'][_0x5ec0b1(0x201)](_0x3eb4f6)),this[_0x5ec0b1(0x102)]();}[_0x1f8522(0x23b)](_0x3b07cc){const _0x4e680a=_0x1f8522;this['_lockTransition'](),this[_0x4e680a(0x1a2)](this[_0x4e680a(0x1e4)][_0x4e680a(0x254)](_0x3b07cc)),this[_0x4e680a(0x102)]();}['_onRemoteRetry'](_0x16bc87){const _0x1b2b12=_0x1f8522;this['_lockTransition'](),this['_updateState'](this[_0x1b2b12(0x1e4)][_0x1b2b12(0x30c)](_0x16bc87)),this['_unlockTransition']();}[_0x1f8522(0x28d)](_0x4bf113){const _0x57b502=_0x1f8522;if(!(this[_0x57b502(0x1e4)]instanceof Z))throw TypeError(_0x57b502(0x2e6));let _0xc46752=_0x4bf113['map'](_0x210f91=>{const _0x257918=_0x57b502;let _0x5b9756=this[_0x257918(0x2bf)]['interceptor'][_0x257918(0x29f)](this[_0x257918(0x2bf)][_0x257918(0x137)][_0x257918(0x2ca)]()[_0x257918(0x143)])(_0x210f91[_0x257918(0x236)],null)||_0x210f91[_0x257918(0x236)];return{..._0x210f91,'mutations':_0x5b9756};});this[_0x57b502(0x1c3)](),this[_0x57b502(0x1a2)](this[_0x57b502(0x1e4)][_0x57b502(0x13d)](_0xc46752)),this['_unlockTransition']();}[_0x1f8522(0x219)](){const _0x49de96=_0x1f8522;this[_0x49de96(0x1c3)](),this['_updateState'](this[_0x49de96(0x1e4)][_0x49de96(0x1dd)]()),this[_0x49de96(0x102)]();}[_0x1f8522(0x1cf)](_0x12b0d4=!0x1){const _0x68138c=_0x1f8522;this[_0x68138c(0x1c3)](),this[_0x68138c(0x1a2)](this['_state'][_0x68138c(0x2c5)]()),this['_unlockTransition']();let _0x3e911b=this[_0x68138c(0x1e4)];_0x12b0d4&&_0x3e911b instanceof G&&(this['_lockTransition'](),this[_0x68138c(0x1a2)](_0x3e911b[_0x68138c(0x2af)]()),this[_0x68138c(0x102)]());}async['_createInitialState'](){return new Promise(_0xf94634=>{const _0x49ab5b=_0x249d;this[_0x49ab5b(0x2cc)][_0x49ab5b(0x1df)][_0x49ab5b(0x27e)](_0x4abdb0(0x1))[_0x49ab5b(0xfb)](async _0x319e9f=>{const _0x42e995=_0x49ab5b;_0xf94634(await this[_0x42e995(0x181)](_0x319e9f===0x3));});});}[_0x1f8522(0x213)](){const _0x3b36fd=_0x1f8522;let _0xca1f0d=this[_0x3b36fd(0x108)];return{'onStateChange':(_0x435062,_0x264a67)=>{const _0x58a147=_0x3b36fd;if(_0x435062!==this['_state'])throw Error('[CollaborationEntity]:\x20invalid\x20state\x20transition!\x20State\x20transferred\x20from\x20is\x20not\x20the\x20current\x20state.\x0aBefore:\x20'+_0x435062[_0x58a147(0x214)]+_0x58a147(0x1a3)+_0x264a67['status']+_0x58a147(0x1ba)+this['_state']['status']);this['_updateState'](_0x264a67);},'onSendChangeset':_0x5eede3=>{const _0x17033d=_0x3b36fd;_0x5eede3[_0x17033d(0x17a)]||(_0x5eede3[_0x17033d(0x17a)]=this[_0x17033d(0x2ed)],_0x5eede3[_0x17033d(0x2c4)]=++this[_0x17033d(0x27a)]);let _0x19a92e={'eventID':_0x27e67f[_0x17033d(0x31b)],'data':{'unitID':_0x5eede3[_0x17033d(0x108)],'unitType':this[_0x17033d(0x17e)],'changeset':_0x5eede3,'memberID':this['session'][_0x17033d(0x258)]()}};this[_0x17033d(0x2cc)][_0x17033d(0x11c)](_0x19a92e,this[_0x17033d(0x108)]);},'onMissingChangesets':({from:_0x3996b3,to:_0x4aa8fd})=>{const _0x42503f=_0x3b36fd;this[_0x42503f(0x2b2)][_0x42503f(0x305)](_0x42503f(0x2dd),_0x42503f(0x116)+_0x3996b3+_0x42503f(0x1ac)+_0x4aa8fd);let _0x4597f4={'eventID':_0x27e67f[_0x42503f(0x2ce)],'data':{'unitID':_0xca1f0d,'unitType':this['_type'],'from':_0x3996b3,'to':_0x4aa8fd}};this[_0x42503f(0x2cc)]['send'](_0x4597f4,this[_0x42503f(0x108)]);}};}async[_0x1f8522(0x181)](_0xd95873){const _0xb33f8=_0x1f8522;var _0x49bb46,_0x40eb41,_0x13d63b;let _0x10fe74=await((_0x49bb46=this[_0xb33f8(0xdd)])==null?void 0x0:_0x49bb46[_0xb33f8(0x2f2)](this[_0xb33f8(0x108)])),_0x5c8876=(_0x40eb41=_0x10fe74==null?void 0x0:_0x10fe74[_0xb33f8(0x236)])==null?[]:_0x40eb41,_0x4e67a6=(_0x13d63b=_0x10fe74==null?void 0x0:_0x10fe74['awaitingChangeset'])==null?null:_0x13d63b,_0x3fa104=!!(_0x4e67a6!=null&&_0x4e67a6[_0xb33f8(0x17a)])&&!!(_0x4e67a6!=null&&_0x4e67a6['reqId']);this[_0xb33f8(0x2ed)]=_0x3fa104?_0x4e67a6[_0xb33f8(0x17a)]:_0x45dc0c(),this[_0xb33f8(0x27a)]=_0x3fa104?_0x4e67a6[_0xb33f8(0x2c4)]:0x0;let _0x415e9a=this[_0xb33f8(0x108)];try{this[_0xb33f8(0x2fe)](_0x4e67a6,_0x5c8876);}catch(_0x5070f2){this[_0xb33f8(0x2b2)][_0xb33f8(0xd2)](_0x5070f2);}let _0x47c192=this[_0xb33f8(0x213)]();if(_0xd95873){let _0x4c9c2b=Xt(this[_0xb33f8(0xe9)],_0x415e9a,this['_type'],_0x4e67a6,_0x5c8876,_0x47c192);return _0x4c9c2b instanceof K?_0x4c9c2b[_0xb33f8(0x1f8)]():(_0x4c9c2b instanceof J||_0x4c9c2b instanceof q)&&_0x4c9c2b[_0xb33f8(0x231)](),_0x4c9c2b;}return this[_0xb33f8(0xe9)][_0xb33f8(0x164)](X,_0x415e9a,this[_0xb33f8(0x17e)],_0x4e67a6,_0x5c8876,_0x47c192);}[_0x1f8522(0x2fe)](_0x1552ea,_0x5e5dd6){const _0x128149=_0x1f8522;var _0x463965,_0x15a28c;let _0x44329d=this[_0x128149(0x2bf)]['interceptor']['fetchThroughInterceptors'](this[_0x128149(0x2bf)][_0x128149(0x137)][_0x128149(0x2ca)]()[_0x128149(0x143)]);(_0x463965=_0x44329d((_0x1552ea==null?void 0x0:_0x1552ea['mutations'])||[],null))==null||_0x463965[_0x128149(0x1b0)](_0x3b4148=>this[_0x128149(0x31a)][_0x128149(0x195)](_0x3b4148['id'],_0x3b4148[_0x128149(0x1dc)])),(_0x15a28c=_0x44329d(_0x5e5dd6||[],null))==null||_0x15a28c[_0x128149(0x1b0)](_0x2900fc=>this[_0x128149(0x31a)][_0x128149(0x195)](_0x2900fc['id'],_0x2900fc[_0x128149(0x1dc)]));}};Zt=z([R(0x3,_0x4f07a4(_0x44d080)),R(0x4,_0x4f07a4(_0x4f4878)),R(0x5,_0x4f07a4(_0x220418)),R(0x6,_0x4f07a4(_0x3c5693)),R(0x7,_0x4f07a4(L)),R(0x8,_0x3a738f),R(0x9,_0x1443cf),R(0xa,_0x3a76f7),R(0xb,_0x439c61),R(0xc,_0x1cfc4d(jt)),R(0xd,_0x1cfc4d(V))],Zt);let Qt=class extends Zt{constructor(_0x58ee30,_0xfa0bcb,_0x5f12d6,_0x4248a0,_0x517c81,_0x37d33c,_0x1ca483,_0xe22b28,_0x1e32c7,_0x5b63b0,_0x1ebf41,_0x3ce53c,_0x5dba19,_0x45d457){const _0x208c70=_0x1f8522;super(_0x58ee30,_0x5f12d6,_0xfa0bcb,_0x4248a0,_0x517c81,_0x37d33c,_0x1ca483,_0xe22b28,_0x1e32c7,_0x5b63b0,_0x1ebf41,_0x3ce53c,_0x5dba19,_0x45d457),this['unitID']=_0x58ee30,this[_0x208c70(0x126)]=_0xfa0bcb,I(this,_0x208c70(0x11e),null);}[_0x1f8522(0x1c9)](_0x4eae01){const _0x46b946=_0x1f8522;this[_0x46b946(0x11e)]=_0x4eae01;}[_0x1f8522(0x282)](){const _0x4977c=_0x1f8522;this['_handlerCallback']=null,super[_0x4977c(0x282)]();}[_0x1f8522(0x213)](){const _0x17c7df=_0x1f8522;let _0xb3a6f6=super['_createHandler']();return _0xb3a6f6['onTransformIME']=_0xe96c17=>{const _0xef5678=_0x249d;var _0x79e628,_0x5c3f5d;return(_0x79e628=this['_handlerCallback'])==null||(_0x5c3f5d=_0x79e628[_0xef5678(0x146)])==null?void 0x0:_0x5c3f5d[_0xef5678(0x292)](_0x79e628,_0xe96c17);},_0xb3a6f6[_0x17c7df(0x2ab)]=_0x3d7b9d=>{const _0x429427=_0x17c7df;var _0x454f75,_0x435381;return(_0x454f75=this[_0x429427(0x11e)])==null||(_0x435381=_0x454f75['onTransformState'])==null?void 0x0:_0x435381['call'](_0x454f75,_0x3d7b9d);},_0xb3a6f6[_0x17c7df(0x22b)]=_0x2090fe=>{const _0x29bcb5=_0x17c7df;var _0x347939,_0x46f060;return(_0x347939=this[_0x29bcb5(0x11e)])==null||(_0x46f060=_0x347939['onTransformSelections'])==null?void 0x0:_0x46f060[_0x29bcb5(0x292)](_0x347939,_0x2090fe);},_0xb3a6f6[_0x17c7df(0x15c)]=_0x4ad9b6=>{const _0x5488af=_0x17c7df;var _0x1e1a07,_0x3c4270;return(_0x1e1a07=this['_handlerCallback'])==null||(_0x3c4270=_0x1e1a07[_0x5488af(0x15c)])==null?void 0x0:_0x3c4270['call'](_0x1e1a07,_0x4ad9b6);},_0xb3a6f6[_0x17c7df(0x2f0)]=_0x36aa28=>{const _0x2a5009=_0x17c7df;var _0x124526,_0x2e114c,_0x5c6dfd;if(!((_0x124526=this[_0x2a5009(0x11e)])!=null&&_0x124526[_0x2a5009(0x2f0)]))throw Error(_0x2a5009(0x12c));return(_0x2e114c=this['_handlerCallback'])==null||(_0x5c6dfd=_0x2e114c[_0x2a5009(0x2f0)])==null?void 0x0:_0x5c6dfd[_0x2a5009(0x292)](_0x2e114c,_0x36aa28);},_0xb3a6f6['onTransformRemoteChangesetByStateCache']=_0x1397d5=>{const _0x4bbcb3=_0x17c7df;var _0x2ad24d,_0xabc3f8,_0x31bb60;if(!((_0x2ad24d=this[_0x4bbcb3(0x11e)])!=null&&_0x2ad24d[_0x4bbcb3(0x30d)]))throw Error('onTransformRemoteChangesetByStateCache\x20callback\x20is\x20not\x20added\x20yet.');return(_0xabc3f8=this[_0x4bbcb3(0x11e)])==null||(_0x31bb60=_0xabc3f8['onTransformRemoteChangesetByStateCache'])==null?void 0x0:_0x31bb60['call'](_0xabc3f8,_0x1397d5);},_0xb3a6f6;}async[_0x1f8522(0x182)](){const _0x1c9d58=_0x1f8522;let _0x750301=await super[_0x1c9d58(0x182)]();return this['disposeWithMe'](this['_commandService'][_0x1c9d58(0x1bf)]((_0x219770,_0x14628d)=>{const _0x440883=_0x1c9d58;if(_0x219770[_0x440883(0x126)]!==_0x40b89a[_0x440883(0x187)]||_0x14628d!=null&&_0x14628d[_0x440883(0x149)]||_0x14628d!=null&&_0x14628d[_0x440883(0x115)]||_0x219770['id']===_0x234ae8['id'])return;let _0x10fe06=_0x219770['params'];if((_0x10fe06==null?void 0x0:_0x10fe06['unitId'])!==this[_0x440883(0x108)])return;let _0x50421a=_0x219770,_0x5da7f5=this[_0x440883(0x2bf)][_0x440883(0x137)]['fetchThroughInterceptors'](this[_0x440883(0x2bf)][_0x440883(0x137)][_0x440883(0x2ca)]()['COMPRESS_MUTATION_SEND'])([_0x50421a],this['_univerInstanceService'])||[_0x50421a];this[_0x440883(0x287)](_0x5da7f5[0x0]);})),_0x750301;}};Qt=z([R(0x3,_0x4f07a4(_0x44d080)),R(0x4,_0x4f07a4(_0x4f4878)),R(0x5,_0x4f07a4(_0x220418)),R(0x6,_0x4f07a4(_0x3c5693)),R(0x7,_0x4f07a4(L)),R(0x8,_0x3a738f),R(0x9,_0x1443cf),R(0xa,_0x3a76f7),R(0xb,_0x439c61),R(0xc,_0x1cfc4d(jt)),R(0xd,_0x1cfc4d(V))],Qt);let $t=class extends Zt{constructor(_0x7c9b10,_0x4cbefb,_0x499588,_0x5e22e8,_0x2334fd,_0x966535,_0x49150f,_0x2eb0cb,_0x457187,_0xe59979,_0x4f039a,_0x3fd87a,_0x5ad0ad,_0x164fad,_0x1ad9db){const _0x558c13=_0x1f8522;super(_0x7c9b10,_0x499588,_0x4cbefb,_0x5e22e8,_0x2334fd,_0x966535,_0x49150f,_0x457187,_0xe59979,_0x4f039a,_0x3fd87a,_0x5ad0ad,_0x164fad,_0x1ad9db),this[_0x558c13(0x108)]=_0x7c9b10,this[_0x558c13(0x126)]=_0x4cbefb,this[_0x558c13(0x1f7)]=_0x2eb0cb;}['_createHandler'](){const _0x5afccf=_0x1f8522;let _0x4967e7=super['_createHandler']();return _0x4967e7[_0x5afccf(0x22b)]=_0x3e6f4f=>this[_0x5afccf(0x1f7)][_0x5afccf(0x1b4)](_0x3e6f4f),_0x4967e7;}async[_0x1f8522(0x182)](){const _0x4c7165=_0x1f8522;let _0x1a098f=await super[_0x4c7165(0x182)]();return this[_0x4c7165(0x2e0)](this[_0x4c7165(0x31a)]['onMutationExecutedForCollab']((_0x2586f6,_0x378e09)=>{const _0x5772a0=_0x4c7165;if(_0x2586f6['type']!==_0x40b89a['MUTATION']||_0x378e09!=null&&_0x378e09[_0x5772a0(0x149)]||_0x378e09!=null&&_0x378e09['onlyLocal'])return;let _0x292254=_0x2586f6[_0x5772a0(0x1dc)];if((_0x292254==null?void 0x0:_0x292254[_0x5772a0(0x2c2)])!==this['unitID'])return;let _0x2734ae=_0x2586f6,_0x2a1fba=this[_0x5772a0(0x2bf)]['interceptor'][_0x5772a0(0x29f)](this[_0x5772a0(0x2bf)][_0x5772a0(0x137)][_0x5772a0(0x2ca)]()['COMPRESS_MUTATION_SEND'])([_0x2734ae],this[_0x5772a0(0xf7)])||[_0x2734ae];this[_0x5772a0(0x287)](_0x2a1fba[0x0]);})),_0x1a098f;}};$t=z([R(0x3,_0x4f07a4(_0x44d080)),R(0x4,_0x4f07a4(_0x4f4878)),R(0x5,_0x4f07a4(_0x220418)),R(0x6,_0x4f07a4(_0x3c5693)),R(0x7,_0x4f07a4(H)),R(0x8,_0x4f07a4(L)),R(0x9,_0x3a738f),R(0xa,_0x1443cf),R(0xb,_0x3a76f7),R(0xc,_0x439c61),R(0xd,_0x1cfc4d(jt)),R(0xe,_0x1cfc4d(V))],$t);const en=_0x4bcee9('univer-pro.collaboration-client.network-condition.service');function tn(_0x55e9f3){const _0xa4f3c6=_0x1f8522;let _0x3e6b04=_0x55e9f3[_0xa4f3c6(0x194)],_0x49c1cc=JSON['parse'](_0x3e6b04);switch(_0x49c1cc[_0xa4f3c6(0x22f)]){case _0x15766e[_0xa4f3c6(0x180)]:case _0x15766e[_0xa4f3c6(0x1e5)]:{let _0x41c395=_0x49c1cc[_0xa4f3c6(0x1d3)];return{..._0x49c1cc,'data':_0x41c395,'cmd':_0x49c1cc['cmd']};}case _0x15766e[_0xa4f3c6(0x2a3)]:{let _0x222c88=_0x49c1cc[_0xa4f3c6(0x20c)];return{..._0x49c1cc,'data':_0x222c88,'cmd':_0x49c1cc[_0xa4f3c6(0x22f)]};}case _0x15766e['RECV']:{let _0x376fc5=_0x49c1cc['collaMsg'];switch(_0x376fc5[_0xa4f3c6(0x281)]){case _0x27e67f[_0xa4f3c6(0x165)]:var _0xf96b7a;return{..._0x49c1cc,'data':{..._0x376fc5,'data':(_0xf96b7a=_0x376fc5[_0xa4f3c6(0x157)])==null?void 0x0:_0xf96b7a['cs']},'cmd':_0x49c1cc['cmd']};case _0x27e67f[_0xa4f3c6(0xce)]:var _0x3f39e2;return{..._0x49c1cc,'data':{..._0x376fc5,'data':(_0x3f39e2=_0x376fc5['csAckEvent'])==null?void 0x0:_0x3f39e2['cs']},'cmd':_0x49c1cc[_0xa4f3c6(0x22f)]};case _0x27e67f[_0xa4f3c6(0x29e)]:var _0x6e52c6;return{..._0x49c1cc,'data':{..._0x376fc5,'data':(_0x6e52c6=_0x376fc5[_0xa4f3c6(0x30a)])==null?void 0x0:_0x6e52c6['cs']},'cmd':_0x49c1cc[_0xa4f3c6(0x22f)]};case _0x27e67f[_0xa4f3c6(0x1a1)]:var _0x5bff88;return{..._0x49c1cc,'data':{..._0x376fc5,'data':(_0x5bff88=_0x376fc5['csRejEvent'])==null?void 0x0:_0x5bff88['cs']},'cmd':_0x49c1cc[_0xa4f3c6(0x22f)]};case _0x27e67f[_0xa4f3c6(0x1b1)]:var _0x235bc3;return{..._0x49c1cc,'data':{..._0x376fc5,'data':(_0x235bc3=_0x376fc5[_0xa4f3c6(0x166)])==null?void 0x0:_0x235bc3['cs']},'cmd':_0x49c1cc[_0xa4f3c6(0x22f)]};case _0x27e67f[_0xa4f3c6(0x16f)]:return{..._0x49c1cc,'data':{..._0x376fc5,'data':_0x376fc5[_0xa4f3c6(0x1da)]},'cmd':_0x49c1cc['cmd']};case _0x27e67f['USERS_ENTER']:return{..._0x49c1cc,'data':{..._0x376fc5,'data':_0x376fc5[_0xa4f3c6(0x2a8)]},'cmd':_0x49c1cc[_0xa4f3c6(0x22f)]};case _0x27e67f[_0xa4f3c6(0x2f4)]:return{..._0x49c1cc,'data':{..._0x376fc5,'data':_0x376fc5[_0xa4f3c6(0x28c)]},'cmd':_0x49c1cc[_0xa4f3c6(0x22f)]};case _0x27e67f[_0xa4f3c6(0x297)]:return{..._0x49c1cc,'data':{..._0x376fc5,'data':_0x376fc5[_0xa4f3c6(0x14a)]},'cmd':_0x49c1cc['cmd']};case _0x27e67f[_0xa4f3c6(0x229)]:case _0x27e67f[_0xa4f3c6(0x293)]:return{..._0x49c1cc,'data':{..._0x376fc5,'data':_0x376fc5['liveShareOperation']},'cmd':_0x49c1cc[_0xa4f3c6(0x22f)]};case _0x27e67f['LIVESHARE_TERMINATE']:return{..._0x49c1cc,'data':{..._0x376fc5,'data':_0x376fc5[_0xa4f3c6(0x14a)]},'cmd':_0x49c1cc[_0xa4f3c6(0x22f)]};case _0x27e67f[_0xa4f3c6(0x1b9)]:return{..._0x49c1cc,'data':_0x376fc5,'cmd':_0x49c1cc[_0xa4f3c6(0x22f)]};case _0x27e67f[_0xa4f3c6(0x111)]:return{..._0x49c1cc,'data':{..._0x376fc5,'data':_0x376fc5['commentUpdateEvent']},'cmd':_0x49c1cc[_0xa4f3c6(0x22f)]};case _0x27e67f[_0xa4f3c6(0x139)]:return{..._0x49c1cc,'data':{..._0x376fc5,'data':_0x376fc5[_0xa4f3c6(0x304)]},'cmd':_0x49c1cc[_0xa4f3c6(0x22f)]};case _0x27e67f[_0xa4f3c6(0xf5)]:return{..._0x49c1cc,'data':{..._0x376fc5,'data':_0x376fc5[_0xa4f3c6(0x301)]},'cmd':_0x49c1cc[_0xa4f3c6(0x22f)]};case _0x27e67f['UNISCRIPT_RUN']:return{..._0x49c1cc,'data':{..._0x376fc5,'data':_0x376fc5[_0xa4f3c6(0x154)]},'cmd':_0x49c1cc[_0xa4f3c6(0x22f)]};default:return _0x49c1cc;}}default:return _0x49c1cc;}}function nn(_0x111916){const _0x2c2e3f=_0x1f8522;switch(_0x111916['cmd']){case _0x15766e[_0x2c2e3f(0x180)]:case _0x15766e[_0x2c2e3f(0x1e5)]:return JSON[_0x2c2e3f(0x2fc)]({'cmd':_0x111916[_0x2c2e3f(0x22f)],'routeKey':_0x111916['routeKey']});case _0x15766e['INGEST']:{let _0x13ccbd;switch(_0x111916[_0x2c2e3f(0x194)][_0x2c2e3f(0x281)]){case _0x27e67f[_0x2c2e3f(0x16f)]:_0x13ccbd={'eventID':_0x27e67f[_0x2c2e3f(0x16f)],'updateCursorEvent':_0x111916[_0x2c2e3f(0x194)][_0x2c2e3f(0x194)]};break;case _0x27e67f['USERS_LEAVE']:_0x13ccbd={'eventID':_0x27e67f['USERS_LEAVE'],'leaveEvent':_0x111916[_0x2c2e3f(0x194)][_0x2c2e3f(0x194)]};break;case _0x27e67f[_0x2c2e3f(0x104)]:_0x13ccbd={'eventID':_0x27e67f[_0x2c2e3f(0x104)],'joinEvent':_0x111916['data'][_0x2c2e3f(0x194)]};break;case _0x27e67f[_0x2c2e3f(0x297)]:_0x13ccbd={'eventID':_0x27e67f[_0x2c2e3f(0x297)],'liveShareNewHost':_0x111916[_0x2c2e3f(0x194)][_0x2c2e3f(0x194)]};break;case _0x27e67f[_0x2c2e3f(0x293)]:_0x13ccbd={'eventID':_0x27e67f[_0x2c2e3f(0x293)],'liveShareOperation':_0x111916[_0x2c2e3f(0x194)]['data']};break;case _0x27e67f[_0x2c2e3f(0x2df)]:_0x13ccbd={'eventID':_0x27e67f[_0x2c2e3f(0x2df)],'liveShareTerminate':_0x111916[_0x2c2e3f(0x194)][_0x2c2e3f(0x194)]};break;case _0x27e67f[_0x2c2e3f(0x1c6)]:_0x13ccbd={'eventID':_0x27e67f[_0x2c2e3f(0x1c6)],'liveShareRequestHost':_0x111916[_0x2c2e3f(0x194)][_0x2c2e3f(0x194)]};break;case _0x27e67f[_0x2c2e3f(0x229)]:_0x13ccbd={'eventID':_0x27e67f[_0x2c2e3f(0x229)]};break;default:_0x13ccbd={'eventID':_0x111916[_0x2c2e3f(0x194)][_0x2c2e3f(0x281)]};}return JSON[_0x2c2e3f(0x2fc)]({'cmd':_0x111916['cmd'],'routeKey':_0x111916['routeKey'],'collaMsg':_0x13ccbd});}case _0x15766e[_0x2c2e3f(0x2a3)]:return JSON[_0x2c2e3f(0x2fc)]({'cmd':_0x111916[_0x2c2e3f(0x22f)],'routeKey':_0x111916[_0x2c2e3f(0x109)],'joinReq':_0x111916[_0x2c2e3f(0x194)]});case _0x15766e[_0x2c2e3f(0x1b6)]:return JSON['stringify']({'cmd':_0x111916[_0x2c2e3f(0x22f)],'routeKey':_0x111916['routeKey'],'leaveReq':_0x111916[_0x2c2e3f(0x194)]});default:throw Error('[serializeCombRequest]:\x20should\x20not\x20fall\x20into\x20default\x20branch!');}}const rn=_0x4bcee9(_0x1f8522(0x314));function an(_0x1fb23a,_0x2e53ec,_0x5dbfed){const _0x1f8d68=_0x1f8522;return _0x1fb23a+'/'+_0x2e53ec+_0x1f8d68(0xee)+_0x5dbfed+_0x1f8d68(0x1cd);}let on=class extends _0x555def{constructor(_0xf38020,_0x2002a2,_0x5e1301,_0x1b82b5,_0x2fcbf1){const _0x2da528=_0x1f8522;super(),this['_injector']=_0xf38020,this[_0x2da528(0x152)]=_0x2002a2,this['_configService']=_0x5e1301,this[_0x2da528(0x2b2)]=_0x1b82b5,this[_0x2da528(0xc5)]=_0x2fcbf1;}[_0x1f8522(0x15a)](_0x5b864d){const _0x18aa5f=_0x1f8522;let _0x568426=this[_0x18aa5f(0xe9)][_0x18aa5f(0x315)](_0x1dbaaf);if(!_0x568426)throw Error(_0x18aa5f(0x2ff));let _0xce9a27=_0x568426[_0x18aa5f(0x259)](_0x5b864d);if(!_0xce9a27)throw Error(_0x18aa5f(0x10c));let _0x2e9092=new _0x3e23a9(),_0x3a9f0e=new _0x147a88();_0x2e9092[_0x18aa5f(0x2a1)](_0xce9a27['close$'][_0x18aa5f(0xfb)](_0xe66b47=>_0x3a9f0e['next'](_0xe66b47))),_0x2e9092[_0x18aa5f(0x2a1)](_0x224a5f(()=>_0x3a9f0e[_0x18aa5f(0x318)]()));let _0x2cdfec=new _0x147a88();_0x2e9092[_0x18aa5f(0x2a1)](_0xce9a27['error$'][_0x18aa5f(0xfb)](_0x4af798=>_0x2cdfec[_0x18aa5f(0xc4)](_0x4af798))),_0x2e9092[_0x18aa5f(0x2a1)](_0x224a5f(()=>_0x2cdfec[_0x18aa5f(0x318)]()));let _0x142cc5=new _0x147a88();_0x2e9092['add'](_0xce9a27['message$']['subscribe'](_0x5da463=>{let _0x4620a7=tn(_0x5da463);_0x142cc5['next'](_0x4620a7);})),_0x2e9092['add'](_0x224a5f(()=>_0x142cc5[_0x18aa5f(0x318)]()));let _0x55d1df,_0x2a1f11=()=>{const _0x3675f3=_0x18aa5f;_0x2cdfec[_0x3675f3(0xc4)](new Event(_0x3675f3(0xcf))),_0x3a9f0e[_0x3675f3(0xc4)](new Event(_0x3675f3(0xcf))),_0x55d1df[_0x3675f3(0x22e)]();};return _0x55d1df={'memberID':'','close$':_0x3a9f0e[_0x18aa5f(0x2b0)](),'error$':_0x2cdfec['asObservable'](),'open$':_0xce9a27[_0x18aa5f(0x12a)],'message$':_0x142cc5[_0x18aa5f(0x2b0)](),'send':_0x1a5a48=>{const _0x4fce1e=_0x18aa5f;if(_0x1a5a48[_0x4fce1e(0x22f)]===_0x15766e[_0x4fce1e(0x247)]){if(_0x1a5a48[_0x4fce1e(0x194)][_0x4fce1e(0x281)]===_0x27e67f[_0x4fce1e(0x31b)]){this[_0x4fce1e(0x212)](_0x55d1df,_0x1a5a48[_0x4fce1e(0x194)])[_0x4fce1e(0x265)](_0x36f13f=>{const _0x3750a7=_0x4fce1e;this[_0x3750a7(0x2b2)][_0x3750a7(0xd2)](_0x36f13f),_0x2a1f11();});return;}if(_0x1a5a48[_0x4fce1e(0x194)][_0x4fce1e(0x281)]===_0x27e67f[_0x4fce1e(0x2ce)]){let _0x3a48fa=_0x1a5a48[_0x4fce1e(0x194)];this[_0x4fce1e(0x1fa)](_0x3a48fa)[_0x4fce1e(0xbe)](_0x1b0686=>{const _0x4396e3=_0x4fce1e;_0x142cc5['next']({'cmd':_0x15766e[_0x4396e3(0x2ee)],'code':_0x28282a['OK'],'routeKey':_0x3a48fa[_0x4396e3(0x194)][_0x4396e3(0x108)],'routeType':'','data':{'eventID':_0x27e67f['PSEUDO_FETCH_MISSING_RESULT'],'data':{'changesets':_0x1b0686}}});})[_0x4fce1e(0x265)](_0x3c4f39=>{const _0x1f7922=_0x4fce1e;this[_0x1f7922(0x2b2)][_0x1f7922(0xd2)](_0x3c4f39),_0x2a1f11();});return;}}_0xce9a27[_0x4fce1e(0x11c)](nn(_0x1a5a48));},'close':()=>{const _0x30db9d=_0x18aa5f;_0xce9a27[_0x30db9d(0x22e)](),_0x2e9092[_0x30db9d(0x282)]();}},_0x55d1df;}async[_0x1f8522(0x212)](_0x141a75,_0x3c1794){const _0x5ab881=_0x1f8522;var _0x419ad7;let {unitType:_0x5155cf,unitID:_0x49b6ad,changeset:_0x153822}=_0x3c1794[_0x5ab881(0x194)],_0x39ff1f={'unitID':_0x49b6ad,'memberID':_0x141a75[_0x5ab881(0x184)],'type':_0x5155cf,'changeset':_0x12da55(_0x153822)},_0x5d7853=this['_configService'][_0x5ab881(0xe2)](U),_0x2d2d9d=an((_0x419ad7=_0x5d7853==null?void 0x0:_0x5d7853['collabSubmitChangesetUrl'])==null?'/universer-api/comb':_0x419ad7,_0x5155cf,_0x49b6ad);try{await this[_0x5ab881(0x152)][_0x5ab881(0xc6)](_0x2d2d9d,{'body':_0x39ff1f});}catch(_0x4d6ac9){throw this[_0x5ab881(0x2b2)][_0x5ab881(0xd2)](_0x5ab881(0x2a0),'submit\x20changeset\x20error!'),_0x4d6ac9;}}async['_fetchMissChangesets'](_0xa244e9){const _0x542f6c=_0x1f8522;let {unitID:_0x1aaa91,from:_0x4cf239,to:_0x1b1760,unitType:_0x4cb578}=_0xa244e9[_0x542f6c(0x194)];return(await this[_0x542f6c(0xc5)]['fetchMissingChangesets']({'metadata':void 0x0},{'unitID':_0x1aaa91,'type':_0x4cb578,'from':_0x4cf239,'to':_0x1b1760}))[_0x542f6c(0x2f3)]['map'](_0x775ff0=>((_0x775ff0['mutations']===null||_0x775ff0[_0x542f6c(0x236)]===void 0x0)&&(_0x775ff0['mutations']=[]),_0x775ff0));}};on=z([R(0x0,_0x4f07a4(_0x44d080)),R(0x1,_0x4f07a4(_0x2e99a4)),R(0x2,_0x3ba9f8),R(0x3,_0x1443cf),R(0x4,_0x72942)],on);let Q=class extends _0x555def{get['_socket'](){const _0x3dafee=_0x1f8522;return this['_socket$'][_0x3dafee(0x10b)]();}constructor(_0x4a5439,_0x2e6aab,_0x11f92a,_0x42425c,_0x4769c7,_0x159839){const _0x3d823d=_0x1f8522;super(),this['_injector']=_0x4a5439,this[_0x3d823d(0x2b2)]=_0x2e6aab,this['_configService']=_0x11f92a,this[_0x3d823d(0x1a9)]=_0x42425c,this[_0x3d823d(0x2b3)]=_0x4769c7,this[_0x3d823d(0x199)]=_0x159839,I(this,_0x3d823d(0x155),new _0x2acfcb(void 0x0)),I(this,_0x3d823d(0x112),this[_0x3d823d(0x155)][_0x3d823d(0x2b0)]()),I(this,_0x3d823d(0x1e6),null),I(this,_0x3d823d(0x19c),new Map()),I(this,_0x3d823d(0x2fd),new _0x2acfcb(0x0)),I(this,_0x3d823d(0x13f),this['_status$'][_0x3d823d(0x2b0)]()),I(this,_0x3d823d(0x158),!0x1),I(this,'_retryConnectingTimer',void 0x0),I(this,_0x3d823d(0x29d),0x0),I(this,_0x3d823d(0x27c),null),I(this,_0x3d823d(0x24e),void 0x0),I(this,_0x3d823d(0x306),void 0x0),this[_0x3d823d(0x1ea)]();}[_0x1f8522(0x1ea)](){const _0x9c1006=_0x1f8522;this[_0x9c1006(0x199)]&&this[_0x9c1006(0x2e0)](this[_0x9c1006(0x199)][_0x9c1006(0x26d)]['subscribe'](_0x578348=>{const _0x30004e=_0x9c1006;_0x578348&&!this[_0x30004e(0x283)]&&this[_0x30004e(0x22a)](),_0x578348||this[_0x30004e(0x130)]();}));}[_0x1f8522(0x282)](){const _0x1a570f=_0x1f8522;var _0x24ec3d;super[_0x1a570f(0x282)](),(_0x24ec3d=this[_0x1a570f(0x27c)])==null||_0x24ec3d[_0x1a570f(0x1f0)](),this[_0x1a570f(0x27c)]=null,this[_0x1a570f(0x2e7)](),this[_0x1a570f(0xe4)](),this[_0x1a570f(0x1d7)](),this[_0x1a570f(0x19c)][_0x1a570f(0x1b0)](_0xfa668b=>_0xfa668b['dispose']()),this[_0x1a570f(0x19c)][_0x1a570f(0x217)](),this[_0x1a570f(0x2fd)]['complete']();}async[_0x1f8522(0x277)](_0x3c79a6){const _0x515afe=_0x1f8522;if(this[_0x515afe(0x19c)][_0x515afe(0x309)](_0x3c79a6))return this['_sessions'][_0x515afe(0x315)](_0x3c79a6);this[_0x515afe(0xe3)]();let _0xd19931=this[_0x515afe(0xe9)]['createInstance'](Ot,_0x3c79a6,this[_0x515afe(0x155)][_0x515afe(0x2b0)]());return this[_0x515afe(0x19c)][_0x515afe(0x27d)](_0x3c79a6,_0xd19931),_0xd19931;}[_0x1f8522(0x1de)](_0x35e785){const _0x32b74e=_0x1f8522;let _0x1d2971=this[_0x32b74e(0x19c)][_0x32b74e(0x315)](_0x35e785);if(_0x1d2971&&(this[_0x32b74e(0x19c)][_0x32b74e(0x319)](_0x35e785),_0x1d2971[_0x32b74e(0x22e)]()),!this[_0x32b74e(0x19c)]['size']){var _0x204d45;(_0x204d45=this[_0x32b74e(0x283)])==null||_0x204d45[_0x32b74e(0x22e)]();}}['reconnect'](){const _0xdcd5db=_0x1f8522;this['_retryCount']=0x0,this['_clearRetryConnectingTimer'](),this[_0xdcd5db(0x138)]();}[_0x1f8522(0x2e7)](){const _0x44547a=_0x1f8522;this[_0x44547a(0x10f)]!=null&&(clearTimeout(this[_0x44547a(0x10f)]),this[_0x44547a(0x10f)]=null);}async[_0x1f8522(0x278)](){const _0xd1e613=_0x1f8522;var _0x51d548;let _0x224aaf=this[_0xd1e613(0xba)][_0xd1e613(0xe2)](U),_0x293175=(_0x51d548=_0x224aaf==null?void 0x0:_0x224aaf[_0xd1e613(0x238)])==null?ut:_0x51d548,_0x2b23b9=await this['_socketService'][_0xd1e613(0x259)](_0x293175);return this[_0xd1e613(0x1e6)]=_0x2b23b9,_0x2b23b9;}async[_0x1f8522(0xe3)](){const _0x3a3a1d=_0x1f8522;try{var _0x103394,_0x104e40;let _0x318d0c=(_0x103394=(_0x104e40=this[_0x3a3a1d(0x283)])==null?this['_candidateSocket']:_0x104e40)==null?await this[_0x3a3a1d(0x278)]():_0x103394;if(_0x318d0c){var _0x2f686d;let _0x52a2b1=_0x318d0c['send'];_0x318d0c['send']=_0x4472ad=>(_0x4472ad['cmd']!==_0x15766e[_0x3a3a1d(0x1b6)]&&this['_rescheduleHeartbeat'](),_0x52a2b1['apply'](_0x318d0c,[_0x4472ad])),(_0x2f686d=this[_0x3a3a1d(0x27c)])==null||_0x2f686d[_0x3a3a1d(0x1f0)](),this[_0x3a3a1d(0x27c)]=null,this[_0x3a3a1d(0x27c)]=_0x318d0c['message$'][_0x3a3a1d(0xfb)](_0x3ef4e4=>this[_0x3a3a1d(0x30b)](_0x318d0c,_0x3ef4e4)),_0x318d0c[_0x3a3a1d(0x2aa)][_0x3a3a1d(0x27e)](_0x15baed(0x1))[_0x3a3a1d(0xfb)](_0x49941c=>this['_logService'][_0x3a3a1d(0xd2)]('[CollaborationSessionService]:\x20socket\x20error',_0x49941c)),_0x318d0c[_0x3a3a1d(0x12a)][_0x3a3a1d(0x27e)](_0x15baed(0x1))[_0x3a3a1d(0xfb)](()=>{this['_onConnectionOpen'](_0x318d0c);}),_0x318d0c[_0x3a3a1d(0x24a)][_0x3a3a1d(0x27e)](_0x15baed(0x1))['subscribe'](_0xa09a8=>{const _0x5f2dc2=_0x3a3a1d;this[_0x5f2dc2(0x2b2)]['debug'](_0x5f2dc2(0x125),'socket\x20close',_0xa09a8),this['_onConnectionFailed']();});}}catch(_0x303705){this[_0x3a3a1d(0x2b2)]['error'](_0x303705),this[_0x3a3a1d(0x19a)]();}}[_0x1f8522(0x1d2)](_0x1cf426){const _0x3abbfc=_0x1f8522;this[_0x3abbfc(0x2b2)][_0x3abbfc(0x305)]('[CollaborationSessionService]',_0x3abbfc(0x1fd)),_0x1cf426[_0x3abbfc(0x11c)]({'cmd':_0x15766e[_0x3abbfc(0x1e5)]}),this['_rescheduleHeartbeat']();}[_0x1f8522(0x130)](){const _0x5ef46a=_0x1f8522;this['_socketReady']=!0x1,this[_0x5ef46a(0x1e6)]=null,this['_status$']['next'](0x2),this[_0x5ef46a(0x155)]['next'](null),this[_0x5ef46a(0xe4)](),this[_0x5ef46a(0x1d7)]();}[_0x1f8522(0x19a)](){const _0x302787=_0x1f8522;var _0x9210e;this[_0x302787(0x130)](),this[_0x302787(0x29d)]<((_0x9210e=this[_0x302787(0xba)][_0x302787(0xe2)](_0x302787(0x1af)))==null?0x3:_0x9210e)?(this[_0x302787(0x2b3)][_0x302787(0x15d)]({'id':'SOCKET_FAILED_RETRY'}),this[_0x302787(0x138)]()):this['_collaborationUIEventService']['emitEvent']({'id':_0x302787(0x29c)});}[_0x1f8522(0x138)](){const _0x19f96e=_0x1f8522;var _0x81ba15;let _0x339734=this[_0x19f96e(0x29d)],_0x472b9c=this[_0x19f96e(0xba)]['getConfig'](U),_0x32bbf5=_0x339734===0x0?0x0:((_0x81ba15=_0x472b9c==null?void 0x0:_0x472b9c[_0x19f96e(0x1bb)])==null?0x4e20:_0x81ba15)*0x2**_0x339734;this[_0x19f96e(0x10f)]=setTimeout(()=>{const _0x35a6b0=_0x19f96e;clearTimeout(this[_0x35a6b0(0x10f)]),this[_0x35a6b0(0x10f)]=null,this[_0x35a6b0(0xe3)]();},_0x32bbf5),this['_retryCount']+=0x1;}[_0x1f8522(0x30b)](_0xc43264,_0x25b553){const _0x4772ba=_0x1f8522;let {cmd:_0x50e9ff}=_0x25b553;_0x50e9ff===_0x15766e['HELLO']&&!this[_0x4772ba(0x158)]&&(_0xc43264[_0x4772ba(0x184)]=_0x25b553[_0x4772ba(0x194)][_0x4772ba(0x184)],this[_0x4772ba(0x155)]['next'](_0xc43264),this['_status$'][_0x4772ba(0xc4)](0x3),this[_0x4772ba(0x158)]=!0x0,this[_0x4772ba(0x1e6)]=null),_0x50e9ff===_0x15766e[_0x4772ba(0x180)]&&this[_0x4772ba(0xe4)](),this['_rescheduleHeartbeat']();}[_0x1f8522(0x12f)](){const _0x2337b2=_0x1f8522;var _0x3d9ca2;this[_0x2337b2(0x1d7)](),this[_0x2337b2(0x24e)]=setTimeout(()=>this[_0x2337b2(0x208)](),(_0x3d9ca2=this['_configService']['getConfig'](_0x2337b2(0xc0)))==null?0x7530:_0x3d9ca2);}[_0x1f8522(0x208)](){const _0x32077e=_0x1f8522;this[_0x32077e(0x283)][_0x32077e(0x11c)]({'cmd':_0x15766e[_0x32077e(0x180)]}),this[_0x32077e(0x2de)]();}['_waitForHeartbeatResponse'](){const _0x3d654a=_0x1f8522;var _0x5e5582;this['_timeoutTimer']=setTimeout(()=>this[_0x3d654a(0x19a)](),(_0x5e5582=this['_configService'][_0x3d654a(0xe2)](_0x3d654a(0x13e)))==null?mt:_0x5e5582);}[_0x1f8522(0x1d7)](){const _0x4be253=_0x1f8522;this[_0x4be253(0x24e)]!=null&&(clearTimeout(this[_0x4be253(0x24e)]),this['_sendHeartbeatTimer']=null);}['_clearTimeoutTimer'](){const _0x3a85d0=_0x1f8522;this['_timeoutTimer']!=null&&(clearTimeout(this['_timeoutTimer']),this[_0x3a85d0(0x306)]=null);}};Q=z([R(0x0,_0x4f07a4(_0x44d080)),R(0x1,_0x1443cf),R(0x2,_0x3ba9f8),R(0x3,rn),R(0x4,_0x4f07a4(L)),R(0x5,_0x1cfc4d(en))],Q);let sn=class extends _0x3498fe{constructor(_0x3784db,_0x3e5b79,_0x2662bf,_0x348707){const _0x4a1ec3=_0x1f8522;var _0x24e813;super(),this[_0x4a1ec3(0xe9)]=_0x3784db,this[_0x4a1ec3(0x250)]=_0x3e5b79,this[_0x4a1ec3(0xba)]=_0x2662bf,this[_0x4a1ec3(0xf7)]=_0x348707,I(this,_0x4a1ec3(0x1a4),new Map()),I(this,_0x4a1ec3(0xf2),new _0x147a88()),I(this,_0x4a1ec3(0x1f5),this[_0x4a1ec3(0xf2)][_0x4a1ec3(0x2b0)]()),((_0x24e813=this[_0x4a1ec3(0xba)][_0x4a1ec3(0xe2)](_0x4a1ec3(0x1bd)))==null?void 0x0:_0x24e813['enableCollaboration'])!==!0x1&&this[_0x4a1ec3(0x182)]();}['dispose'](){const _0x4828aa=_0x1f8522;super['dispose'](),this[_0x4828aa(0x1a4)]['forEach'](_0x5115f7=>_0x5115f7[_0x4828aa(0x282)]()),this['_entities'][_0x4828aa(0x217)]();}[_0x1f8522(0x230)](_0x331d1c){const _0x3c586e=_0x1f8522;var _0x6526f;return(_0x6526f=this[_0x3c586e(0x1a4)][_0x3c586e(0x315)](_0x331d1c))==null?null:_0x6526f;}[_0x1f8522(0x2b1)](_0x1d29a8){const _0x25af7f=_0x1f8522;let _0x52d845=this[_0x25af7f(0x230)](_0x1d29a8);return _0x52d845?_0x3a835d(_0x52d845):this[_0x25af7f(0xf2)][_0x25af7f(0x27e)](_0x18abe6(_0x2d4918=>_0x2d4918['unitID']===_0x1d29a8));}[_0x1f8522(0x2a7)](_0x271e3b){const _0x2cbe9c=_0x1f8522;return _0x128fbd(this[_0x2cbe9c(0x2b1)](_0x271e3b)['pipe'](_0x279c8c(()=>void 0x0)));}[_0x1f8522(0x182)](){const _0x5e7f24=_0x1f8522;this['_univerInstanceService'][_0x5e7f24(0x28f)](_0x292cef[_0x5e7f24(0x107)])['pipe'](_0x56cc03(this[_0x5e7f24(0x24c)]),_0x196d30(0x10))['subscribe'](async _0x4ca380=>{const _0x2fa530=_0x5e7f24;let _0x5e8a52=_0x4ca380[_0x2fa530(0x189)][_0x2fa530(0xdc)](),_0x588441=await this['_startCollaboration'](_0x5e8a52,_0x292cef[_0x2fa530(0x107)]);this[_0x2fa530(0x1a4)][_0x2fa530(0x27d)](_0x5e8a52,_0x588441);}),this[_0x5e7f24(0xf7)][_0x5e7f24(0x28f)](_0x292cef['UNIVER_DOC'])[_0x5e7f24(0x27e)](_0x56cc03(this[_0x5e7f24(0x24c)]),_0x196d30(0x10))[_0x5e7f24(0x27e)](_0x18abe6(_0x5aa806=>!_0x5aa806[_0x5e7f24(0x189)][_0x5e7f24(0xdc)]()[_0x5e7f24(0xed)]('__')))[_0x5e7f24(0xfb)](async _0x4736d5=>{const _0x396aa1=_0x5e7f24;let _0x359c3c=_0x4736d5[_0x396aa1(0x189)][_0x396aa1(0xdc)](),_0x235b09=await this[_0x396aa1(0x15b)](_0x359c3c,_0x292cef['UNIVER_DOC']);this[_0x396aa1(0x1a4)][_0x396aa1(0x27d)](_0x359c3c,_0x235b09);}),_0x340907(this['_univerInstanceService'][_0x5e7f24(0xe1)](_0x292cef[_0x5e7f24(0x107)]),this['_univerInstanceService'][_0x5e7f24(0xe1)](_0x292cef[_0x5e7f24(0x23a)]))[_0x5e7f24(0x27e)](_0x56cc03(this['dispose$']))['subscribe'](_0x255558=>{const _0x130c01=_0x5e7f24;let _0x495fd2=_0x255558[_0x130c01(0xdc)](),_0x1808f8=this['_entities']['get'](_0x495fd2);_0x1808f8&&(_0x1808f8[_0x130c01(0x282)](),this[_0x130c01(0x1a4)][_0x130c01(0x319)](_0x495fd2));});}async[_0x1f8522(0x15b)](_0x28eb22,_0x57c62f){const _0x208b9a=_0x1f8522;let _0x549958=await this[_0x208b9a(0x250)][_0x208b9a(0x277)](_0x28eb22),_0x56338a=this[_0x208b9a(0xe9)][_0x208b9a(0x164)](this[_0x208b9a(0x1ab)](_0x57c62f),_0x28eb22,_0x57c62f,_0x549958);return await _0x56338a[_0x208b9a(0x266)](),this[_0x208b9a(0xf2)][_0x208b9a(0xc4)](_0x56338a),_0x56338a;}[_0x1f8522(0x1ab)](_0x283fdf){const _0x2c0b37=_0x1f8522;switch(_0x283fdf){case _0x292cef[_0x2c0b37(0x23a)]:return Qt;case _0x292cef[_0x2c0b37(0x107)]:return $t;default:throw Error(_0x2c0b37(0x140)+_0x283fdf);}}};sn=z([R(0x0,_0x4f07a4(_0x44d080)),R(0x1,_0x4f07a4(Q)),R(0x2,_0x3ba9f8),R(0x3,_0x3a738f)],sn);var cn=_0x1f8522(0x1ec),ln=_0x1f8522(0xf8);let un=class extends _0x555def{constructor(_0x5df8d0,_0x27700d){const _0xa5afd9=_0x1f8522;super(),this[_0xa5afd9(0xf7)]=_0x5df8d0,this[_0xa5afd9(0xba)]=_0x27700d,this[_0xa5afd9(0x182)]();}['_init'](){const _0x2fdb17=_0x1f8522;this[_0x2fdb17(0x2e0)](this[_0x2fdb17(0xf7)][_0x2fdb17(0x312)]['subscribe'](()=>{const _0x1c20a2=_0x2fdb17;var _0x1c5f58;let _0x27cf9a=this[_0x1c20a2(0xf7)][_0x1c20a2(0x1c1)](),_0x2c18eb=(_0x1c5f58=this[_0x1c20a2(0xba)]['getConfig']('DEFAULT_FILE_NAME'))==null?_0x1c20a2(0xeb):_0x1c5f58;_0x27cf9a instanceof _0x1d942e&&(_0x2c18eb=_0x27cf9a[_0x1c20a2(0x215)]),document[_0x1c20a2(0x13c)]=_0x2c18eb;}));}};un=z([R(0x0,_0x3a738f),R(0x1,_0x3ba9f8)],un);let dn=class{constructor(_0x10e89b,_0x5e1983,_0x3536e5){const _0xd90de0=_0x1f8522;this['_configService']=_0x10e89b,this[_0xd90de0(0x152)]=_0x5e1983,this['localeService']=_0x3536e5,this[_0xd90de0(0x266)]();}[_0x1f8522(0x266)](){const _0x12bfc2=_0x1f8522;this['_httpService'][_0x12bfc2(0x240)]({'priority':0x1,'interceptor':(_0x213510,_0xe7a4a)=>_0xe7a4a(_0x213510)[_0x12bfc2(0x27e)](_0x1d0115(async _0x57f830=>{const _0x2a1cf0=_0x12bfc2;let _0x221d8b=_0x57f830;if(_0x221d8b[_0x2a1cf0(0x214)]===0x191){if(typeof window>'u')throw Error(_0x2a1cf0(0x31d));if(window[_0x2a1cf0(0x1c2)](this[_0x2a1cf0(0xef)]['t']('collaboration-client.auth.needGotoLoginAlert'))){let _0x45a5a0=window['encodeURIComponent'](window[_0x2a1cf0(0x110)][_0x2a1cf0(0x2dc)]);window[_0x2a1cf0(0x110)][_0x2a1cf0(0x2dc)]=this[_0x2a1cf0(0x252)]()+_0x2a1cf0(0x296)+_0x45a5a0;}}return _0x221d8b;}))});}[_0x1f8522(0x252)](){const _0x58c1ae=_0x1f8522;var _0x488a66;let _0x3d214e=this[_0x58c1ae(0xba)][_0x58c1ae(0xe2)](U);return(_0x488a66=_0x3d214e==null?void 0x0:_0x3d214e[_0x58c1ae(0x206)])==null?_0x58c1ae(0xd4):_0x488a66;}};dn=z([R(0x0,_0x3ba9f8),R(0x1,_0x4f07a4(_0x2e99a4)),R(0x2,_0x4f07a4(_0x220418))],dn);let fn=class extends _0x555def{constructor(_0x5485f1,_0x562902){const _0x207343=_0x1f8522;super(),this['_HTTPService']=_0x5485f1,this[_0x207343(0xba)]=_0x562902,I(this,'_cfgEnableObjInherit',!0x1),this[_0x207343(0x171)]();}[_0x1f8522(0x171)](){const _0x19db52=_0x1f8522;let _0x510152=this;this[_0x19db52(0x2e0)](this['_HTTPService'][_0x19db52(0x240)]({'priority':0x3e7,'interceptor':_0x5e53e1({'isMatch'(_0x5db38e){const _0x4b4865=_0x19db52;var _0x1402ba;if(_0x5db38e[_0x4b4865(0x1a5)]===_0x4b4865(0x124)&&(_0x1402ba=_0x5db38e[_0x4b4865(0x15e)])!=null&&_0x1402ba[_0x4b4865(0x123)]){let {objectID:_0x363b8c,objectType:_0x2ebc64}=_0x5db38e[_0x4b4865(0x15e)][_0x4b4865(0x123)]||{};if(!_0x363b8c||_0x2ebc64===void 0x0)return!0x1;let _0x154860=_0x510152[_0x4b4865(0x16c)]()+'/'+_0x2ebc64+'/object/'+_0x363b8c+_0x4b4865(0x14c);if(_0x5db38e[_0x4b4865(0x118)]===_0x154860)return!0x0;}return!0x1;},'getParamsFromRequest'(_0x1b2b76){const _0x3f00b5=_0x19db52;var _0x4c88ec;return(_0x4c88ec=_0x1b2b76[_0x3f00b5(0x15e)])==null?void 0x0:_0x4c88ec[_0x3f00b5(0x123)];},'mergeParamsToRequest'(_0x5e706f,_0x2582d8){const _0x4f0ccc=_0x19db52;let _0x528279=_0x510152[_0x4f0ccc(0x16c)]()+'/-/object/-/batch_allowed',_0x3f1683=_0x5e706f[_0x4f0ccc(0x2a9)]((_0x49ab73,_0x57fef7)=>{const _0x28b66f=_0x4f0ccc;let {unitID:_0x12ecab,objectID:_0x506169,objectType:_0x2e6c9d,actions:_0x1ec5cd}=_0x57fef7;return _0x49ab73[_0x12ecab]||(_0x49ab73[_0x12ecab]={}),_0x49ab73[_0x12ecab][_0x506169]||(_0x49ab73[_0x12ecab][_0x506169]={'objectID':_0x506169,'objectType':_0x2e6c9d,'actions':[]}),_0x49ab73[_0x12ecab][_0x506169]['actions'][_0x28b66f(0xc1)](..._0x1ec5cd),_0x49ab73;},{}),_0x502283=[];for(let _0x5dedc7 in _0x3f1683)for(let _0x2edf1f in _0x3f1683[_0x5dedc7]){let {actions:_0x2d6b49,objectType:_0x498c79}=_0x3f1683[_0x5dedc7][_0x2edf1f],_0x1933a3=[...new Set(_0x2d6b49)];_0x502283['push']({'unitID':_0x5dedc7,'objectID':_0x2edf1f,'objectType':_0x498c79,'actions':_0x1933a3});}return new _0x1b125d(_0x4f0ccc(0x124),_0x528279,{'headers':_0x2582d8[_0x4f0ccc(0x10d)],'withCredentials':_0x2582d8['withCredentials'],'responseType':_0x2582d8[_0x4f0ccc(0x173)],'body':{'requests':_0x502283}});}},{'distributeResult'(_0x1ca702,_0x1f9b18){const _0x2497b1=_0x19db52;let {objectActions:_0xfee2}=_0x1ca702;return _0x1f9b18[_0x2497b1(0x1f1)](_0x434ecd=>{const _0x19a728=_0x2497b1;let {unitID:_0x2d2cdf,objectID:_0x192a2e,actions:_0x44e3fa}=_0x434ecd,_0x364c15=_0xfee2[_0x19a728(0x2f5)](_0x5c55f2=>_0x5c55f2['unitID']===_0x2d2cdf&&_0x5c55f2[_0x19a728(0x220)]===_0x192a2e);return{'config':_0x434ecd,'result':{'actions':_0x44e3fa[_0x19a728(0x1f1)](_0x11ee75=>_0x364c15==null?void 0x0:_0x364c15[_0x19a728(0x14d)]['find'](_0x5396e3=>_0x5396e3[_0x19a728(0x172)]===_0x11ee75))['filter'](_0x544593=>!!_0x544593),'error':_0x1ca702[_0x19a728(0xd2)]}};});}})}));}[_0x1f8522(0x16c)](){const _0x4d02d8=_0x1f8522;var _0x18838c;let _0x5f00e1=this[_0x4d02d8(0xba)][_0x4d02d8(0xe2)](U);return(_0x18838c=_0x5f00e1==null?void 0x0:_0x5f00e1[_0x4d02d8(0xec)])==null?_0x4d02d8(0x1ae):_0x18838c;}async['create'](_0x9c80ff){const _0x561871=_0x1f8522;let _0x2aa4e1=this[_0x561871(0x16c)]()+'/'+_0x9c80ff[_0x561871(0x1ed)]+_0x561871(0x12b);return(await this[_0x561871(0x117)][_0x561871(0xc6)](_0x2aa4e1,{'body':_0x9c80ff}))[_0x561871(0x123)]['objectID']||'';}async['list'](_0x54f3c1){const _0x136659=_0x1f8522;let _0x3c1035=this[_0x136659(0x16c)]()+_0x136659(0x276);return(await this[_0x136659(0x117)][_0x136659(0xc6)](_0x3c1035,{'body':_0x54f3c1}))[_0x136659(0x123)][_0x136659(0x26b)];}async[_0x1f8522(0x2a6)](_0x4e16df){const _0x1d6f3f=_0x1f8522;var _0x4997ad;let _0x42e48a=this[_0x1d6f3f(0x16c)]()+'/'+_0x4e16df[_0x1d6f3f(0x1ed)]+_0x1d6f3f(0x161)+_0x4e16df[_0x1d6f3f(0x220)],_0x1d2fd0=await this['_HTTPService'][_0x1d6f3f(0xe6)](_0x42e48a,{'body':_0x4e16df});if((_0x1d2fd0==null||(_0x4997ad=_0x1d2fd0[_0x1d6f3f(0x123)])==null||(_0x4997ad=_0x4997ad[_0x1d6f3f(0xd2)])==null?void 0x0:_0x4997ad[_0x1d6f3f(0x106)])!==0x1)throw Error(_0x1d6f3f(0x268));}async[_0x1f8522(0xbd)](_0x28f4a6){const _0x7a3496=_0x1f8522;let _0x33021d=this[_0x7a3496(0x16c)]()+'/'+_0x28f4a6[_0x7a3496(0x1ed)]+_0x7a3496(0x161)+_0x28f4a6[_0x7a3496(0x220)]+_0x7a3496(0x14c);return(await this[_0x7a3496(0x117)][_0x7a3496(0xc6)](_0x33021d,{'body':_0x28f4a6}))['body'][_0x7a3496(0x14d)];}async['batchAllowed'](_0xf693d8){const _0x40120f=_0x1f8522;let _0x4b6cf8=this[_0x40120f(0x16c)]()+_0x40120f(0x1a6);return(await this['_HTTPService'][_0x40120f(0xc6)](_0x4b6cf8,{'body':{'requests':_0xf693d8}}))[_0x40120f(0x123)]['objectActions'];}async[_0x1f8522(0xf1)](_0x54d469){const _0x11f12c=_0x1f8522;let _0x476e1d=this[_0x11f12c(0x16c)]()+'/'+_0x54d469[_0x11f12c(0x1ed)]+_0x11f12c(0x2cb),_0x4e4523=await this[_0x11f12c(0x117)][_0x11f12c(0xc6)](_0x476e1d,{'body':_0x54d469});return{'roles':_0x4e4523[_0x11f12c(0x123)][_0x11f12c(0x2b6)],'actions':_0x4e4523[_0x11f12c(0x123)][_0x11f12c(0x14d)]};}async['deleteCollaborator'](_0x210d99){const _0x23bf69=_0x1f8522;let _0x2b97e2=this[_0x23bf69(0x16c)]()+_0x23bf69(0x298);await this[_0x23bf69(0x117)][_0x23bf69(0x319)](_0x2b97e2,{'params':{'collaboratorID':_0x210d99['collaboratorID'],'objectID':_0x210d99[_0x23bf69(0x220)],'unitID':_0x210d99[_0x23bf69(0x108)]}});}async[_0x1f8522(0x119)](_0x58f946){const _0x393e16=_0x1f8522;let _0xb03346=this[_0x393e16(0x16c)]()+'/collaborator';await this['_HTTPService'][_0x393e16(0x239)](_0xb03346,{'body':_0x58f946});}async[_0x1f8522(0x144)](_0x575e9b){const _0xb81a6a=_0x1f8522;let _0x7e6f3c=this[_0xb81a6a(0x16c)]()+'/collaborator';await this[_0xb81a6a(0x117)][_0xb81a6a(0xc6)](_0x7e6f3c,{'body':_0x575e9b});}async['listCollaborators'](_0x3da650){const _0x26218b=_0x1f8522;var _0x4e4ad6;let _0x57f326=this[_0x26218b(0x16c)]()+'/collaborator',_0x3223a8=await this['_HTTPService']['get'](_0x57f326,{'params':{'objectID':_0x3da650[_0x26218b(0x220)],'unitID':_0x3da650['unitID']}});return this[_0x26218b(0x1d4)]((_0x4e4ad6=_0x3223a8[_0x26218b(0x123)][_0x26218b(0xe7)])==null?!0x1:_0x4e4ad6),_0x3223a8[_0x26218b(0x123)][_0x26218b(0x2e3)];}async[_0x1f8522(0x14e)](_0x48177a){const _0x1be86d=_0x1f8522;let _0x50418f=this[_0x1be86d(0x16c)]()+_0x1be86d(0x298);await this[_0x1be86d(0x117)][_0x1be86d(0xe6)](_0x50418f,{'body':_0x48177a});}[_0x1f8522(0x1d4)](_0x4ec648){const _0x276224=_0x1f8522;this[_0x276224(0x175)]=_0x4ec648;}['getCfgEnableObjInherit'](){const _0x5580c3=_0x1f8522;return this[_0x5580c3(0x175)];}};fn=z([R(0x0,_0x4f07a4(_0x2e99a4)),R(0x1,_0x4f07a4(_0x3ba9f8))],fn);function pn(_0x56d61e){const _0x22b420=_0x1f8522;let _0x3d0578=atob(_0x56d61e),_0xf683f6=new Uint8Array(_0x3d0578[_0x22b420(0x10a)]);for(let _0x4875b5=0x0;_0x4875b5<_0x3d0578[_0x22b420(0x10a)];_0x4875b5++)_0xf683f6[_0x4875b5]=_0x3d0578['charCodeAt'](_0x4875b5);return _0xf683f6;}function mn(_0xe09e45){const _0xd98024=_0x1f8522;let _0x53594d='';for(let _0x4169ae=0x0;_0x4169ae<_0xe09e45[_0xd98024(0x10a)];_0x4169ae++)_0x53594d+=String[_0xd98024(0x170)](_0xe09e45[_0x4169ae]);return btoa(_0x53594d);}function hn(_0x2532d3,_0x4bfff9){const _0x3dbf72=_0x1f8522;let _0x3771b3=pn(_0x4bfff9),_0x3aeacb=_0x24b9a3(0x10);return mn(_0x5b3153(_0x3aeacb,_0xd0e4b3(_0x3771b3,_0x3aeacb)[_0x3dbf72(0x25c)](_0x1fa3b3(_0x2532d3))));}function gn(){const _0x1b45f3=_0x1f8522;let _0x320356=_0x494156()[_0x1b45f3(0x263)];if(typeof window<'u'&&window[_0x1b45f3(0x110)]!==void 0x0&&_0x320356){let _0x4c6dd7={'time':Math[_0x1b45f3(0x11f)](Date[_0x1b45f3(0x168)]()/0x3e8),'domain':location[_0x1b45f3(0x129)]};return hn(JSON[_0x1b45f3(0x2fc)](_0x4c6dd7),_0x320356);}}let _n=class{constructor(_0x190fd7){const _0x537620=_0x1f8522;this[_0x537620(0x152)]=_0x190fd7,this[_0x537620(0xdf)]();}[_0x1f8522(0xdf)](){const _0x482177=_0x1f8522;this[_0x482177(0x152)][_0x482177(0x240)]({'interceptor':(_0x123e6f,_0x5bc066)=>{let _0x145b7d=gn();return _0x145b7d&&_0x123e6f['headers']['set']('x-univer-host',_0x145b7d),_0x5bc066(_0x123e6f);}});}};_n=z([R(0x0,_0x4f07a4(_0x2e99a4))],_n);let vn=class extends _0x3498fe{constructor(_0x31e210,_0x51d2ed,_0x48bf1a){const _0x26c7af=_0x1f8522;super(),this[_0x26c7af(0x2b2)]=_0x31e210,this[_0x26c7af(0x186)]=_0x51d2ed,this['_localCacheService']=_0x48bf1a,I(this,_0x26c7af(0x2cf),new _0x2acfcb(null)),I(this,'unitInfo$',this[_0x26c7af(0x2cf)][_0x26c7af(0x2b0)]());}async[_0x1f8522(0x303)](_0x1e98c8,_0xa9d955,_0x3ca342){const _0x6b00bf=_0x1f8522;this['_unitInfo$'][_0x6b00bf(0xc4)]({'unitId':_0x1e98c8,'type':_0xa9d955});let _0x1e9c6b=null;switch(_0xa9d955){case _0x292cef['UNIVER_SHEET']:_0x1e9c6b=await this[_0x6b00bf(0x186)][_0x6b00bf(0x24d)](_0x1e98c8,_0x3ca342);break;case _0x292cef[_0x6b00bf(0x23a)]:_0x1e9c6b=await this[_0x6b00bf(0x186)][_0x6b00bf(0x209)](_0x1e98c8,_0x3ca342);break;default:this[_0x6b00bf(0x2b2)]['error']('[DataLoaderService]','Unknown\x20type.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.');break;}return _0x1e9c6b;}async[_0x1f8522(0x185)](_0x1ff517,_0x41bfd0,_0x396930){const _0x54656d=_0x1f8522;var _0x11092e;this['_unitInfo$'][_0x54656d(0xc4)]({'unitId':_0x1ff517,'type':_0x41bfd0,'subUnitId':_0x396930});let _0x52def5=0x0,_0x5ab00b=await((_0x11092e=this['_localCacheService'])==null?void 0x0:_0x11092e['loadOfflineData'](_0x1ff517));return _0x5ab00b&&(_0x5ab00b[_0x54656d(0x2c7)]||_0x5ab00b[_0x54656d(0x236)][_0x54656d(0x10a)]!==0x0)&&(_0x52def5=_0x5ab00b['rev']),_0x52def5===0x0&&this['_logService'][_0x54656d(0x305)](_0x54656d(0x12d),_0x54656d(0x133)),this['loadUnitOfRevision'](_0x1ff517,_0x41bfd0,_0x52def5);}};vn=z([R(0x0,_0x1443cf),R(0x1,_0x4f07a4(_0x5662c6)),R(0x2,_0x1cfc4d(V))],vn);let yn=class{constructor(_0x21de09,_0x33e44f,_0x5a96f0){const _0x18ed11=_0x1f8522;this['_httpService']=_0x21de09,this[_0x18ed11(0xba)]=_0x33e44f,this[_0x18ed11(0xf7)]=_0x5a96f0,I(this,_0x18ed11(0x204),0x0),I(this,'_change$',new _0x147a88()),I(this,_0x18ed11(0x1e9),this['_change$']),I(this,'_imageSourceCache',new Map());}[_0x1f8522(0xd7)](_0x56a78b){const _0x110e24=_0x1f8522;this['_waitCount']=_0x56a78b,this[_0x110e24(0x28e)][_0x110e24(0xc4)](_0x56a78b);}[_0x1f8522(0x135)](_0x42fa06,_0x304ecf){const _0x7a3fbe=_0x1f8522;if(_0x304ecf===_0x570c35[_0x7a3fbe(0x136)]){let _0x460cfb=new Image();return _0x460cfb[_0x7a3fbe(0x2da)]=_0x42fa06,_0x460cfb;}return this[_0x7a3fbe(0x200)][_0x7a3fbe(0x315)](_0x42fa06);}['addImageSourceCache'](_0x467878,_0x18bf02,_0x18c29e){const _0x504aaa=_0x1f8522;_0x18bf02===_0x570c35[_0x504aaa(0x136)]||_0x18c29e==null||this[_0x504aaa(0x200)][_0x504aaa(0x27d)](_0x467878,_0x18c29e);}async[_0x1f8522(0x183)](_0x8bb9f7){const _0x55ec46=_0x1f8522;try{let _0x30de94=this[_0x55ec46(0x1c5)](this[_0x55ec46(0x162)](),''+_0x8bb9f7),_0x53a5de=(await this[_0x55ec46(0x152)][_0x55ec46(0x315)](_0x30de94))[_0x55ec46(0x123)];if(_0x53a5de[_0x55ec46(0xd2)]&&_0x53a5de[_0x55ec46(0xd2)][_0x55ec46(0x106)]===_0x5637ab['OK']){let _0x21214a=_0x4fcdae(_0x53a5de[_0x55ec46(0x118)],this[_0x55ec46(0x2f7)]());return Promise[_0x55ec46(0x225)](_0x21214a);}return Promise[_0x55ec46(0xe5)](_0x53a5de[_0x55ec46(0xd2)]);}catch(_0x43f234){return Promise[_0x55ec46(0xe5)](_0x43f234);}}async[_0x1f8522(0x257)](_0x5c9705){const _0x5207f0=_0x1f8522;let _0x2e3825='';if(!_0xf4198a[_0x5207f0(0x1ca)](_0x5c9705[_0x5207f0(0x126)]))return this[_0x5207f0(0x2a5)](),Promise[_0x5207f0(0xe5)](Error(_0x528a72[_0x5207f0(0x2fa)]));if(_0x5c9705[_0x5207f0(0x234)]>_0x487da1())return this[_0x5207f0(0x2a5)](),Promise['reject'](Error(_0x528a72[_0x5207f0(0x299)]));try{let _0xde2874=new FormData();_0xde2874[_0x5207f0(0xdb)](_0x5207f0(0x2eb),_0x5c9705);let _0x5e2036=this[_0x5207f0(0xf7)]['getFocusedUnit'](),_0x10e79d=_0x5e2036==null?void 0x0:_0x5e2036[_0x5207f0(0xdc)]();if(!_0x10e79d)throw Error(_0x5207f0(0xc8));let _0x18964f=this['_getUploadFileURL']()+'?size='+_0x5c9705['size'][_0x5207f0(0x30e)]()+_0x5207f0(0x224)+_0x25f37b[_0x5207f0(0x242)]+'&assign='+encodeURIComponent(_0x10e79d),_0x2333cf={'body':_0xde2874},_0x39b3f9=(await this['_httpService'][_0x5207f0(0xc6)](_0x18964f,_0x2333cf))[_0x5207f0(0x123)];if(typeof _0x39b3f9[_0x5207f0(0x163)]!=_0x5207f0(0x2e8))return this[_0x5207f0(0x2a5)](),Promise[_0x5207f0(0xe5)](Error(_0x528a72[_0x5207f0(0xf4)]));_0x2e3825=_0x39b3f9[_0x5207f0(0x163)];}catch{return this['_decreaseWaiting'](),Promise['reject'](Error(_0x528a72[_0x5207f0(0xf4)]));}return new Promise((_0x280c52,_0x24be66)=>{const _0x52612f=_0x5207f0;let _0x980007=new FileReader();_0x980007[_0x52612f(0x17f)](_0x5c9705),_0x980007[_0x52612f(0x20a)]=_0x47117b=>{const _0x21411d=_0x52612f;var _0x173d1c;let _0x46f305=(_0x173d1c=_0x47117b[_0x21411d(0x261)])==null?void 0x0:_0x173d1c[_0x21411d(0xda)];if(_0x46f305==null){this[_0x21411d(0x2a5)](),_0x24be66(Error(_0x528a72['ERROR_IMAGE']));return;}_0x280c52({'imageId':_0x4fa431(0x6),'imageSourceType':_0x570c35[_0x21411d(0x26f)],'source':_0x2e3825,'base64Cache':_0x46f305,'status':_0x528a72[_0x21411d(0x176)]}),this['_decreaseWaiting']();};});}[_0x1f8522(0xc2)](){const _0x53b0b0=_0x1f8522;var _0x1e8b26;let _0x4896e1=this[_0x53b0b0(0xba)][_0x53b0b0(0xe2)](U);return(_0x1e8b26=_0x4896e1==null?void 0x0:_0x4896e1[_0x53b0b0(0x1d6)])==null?_0x53b0b0(0x1d0):_0x1e8b26;}[_0x1f8522(0x162)](){const _0x3bf7bb=_0x1f8522;var _0xe1be61;let _0x4465e7=this['_configService']['getConfig'](U);return(_0xe1be61=_0x4465e7==null?void 0x0:_0x4465e7['signUrlServerUrl'])==null?_0x3bf7bb(0x2cd):_0xe1be61;}['_getDownloadEndpointURL'](){const _0x55cf3f=_0x1f8522;var _0x1d06ed;let _0x4ade9a=this[_0x55cf3f(0xba)][_0x55cf3f(0xe2)](U);return(_0x1d06ed=_0x4ade9a==null?void 0x0:_0x4ade9a[_0x55cf3f(0x156)])==null?location['origin']:_0x1d06ed;}[_0x1f8522(0x1c5)](_0x2e792a,_0x29df86){const _0x40a313=_0x1f8522;return _0x2e792a[_0x40a313(0x223)]('{fileID}',_0x29df86);}['_decreaseWaiting'](){const _0x3f415d=_0x1f8522;--this[_0x3f415d(0x204)],this['_change$']['next'](this[_0x3f415d(0x204)]);}};yn=z([R(0x0,_0x4f07a4(_0x2e99a4)),R(0x1,_0x3ba9f8),R(0x2,_0x4f07a4(_0x3a738f))],yn);let bn=class{constructor(_0x199a5e,_0x17dbaa){const _0x5b24f0=_0x1f8522;this[_0x5b24f0(0xba)]=_0x199a5e,this[_0x5b24f0(0x117)]=_0x17dbaa;}[_0x1f8522(0x16c)](){const _0x1b5921=_0x1f8522;var _0x40b879;let _0x35769a=this[_0x1b5921(0xba)][_0x1b5921(0xe2)](U);return(_0x40b879=_0x35769a==null?void 0x0:_0x35769a['authzUrl'])==null?'/universer-api/authz':_0x40b879;}async[_0x1f8522(0x103)](_0x2163dd){const _0x2bb701=_0x1f8522;let _0x122938=this[_0x2bb701(0x16c)]()+_0x2bb701(0x298);return{'list':[{'title':'People','mentions':(await this[_0x2bb701(0x117)][_0x2bb701(0x315)](_0x122938,{'params':{'objectID':_0x2163dd[_0x2bb701(0x2c2)],'unitID':_0x2163dd[_0x2bb701(0x2c2)]}}))[_0x2bb701(0x123)][_0x2bb701(0x2e3)][_0x2bb701(0x1f1)](_0xdda401=>({'objectId':_0xdda401['id'],'name':_0xdda401[_0x2bb701(0x2e1)][_0x2bb701(0x215)],'metadata':{'icon':_0xdda401[_0x2bb701(0x2e1)][_0x2bb701(0x174)]},'label':_0xdda401[_0x2bb701(0x2e1)][_0x2bb701(0x215)],'objectType':_0x39f40b[_0x2bb701(0x2c0)]})),'metadata':{},'type':_0x39f40b[_0x2bb701(0x2c0)]}]};}};bn=z([R(0x0,_0x4f07a4(_0x3ba9f8)),R(0x1,_0x4f07a4(_0x2e99a4))],bn);let xn=class extends _0x3498fe{constructor(_0x29731a,_0x55c132,_0x32925f,_0x58cd53,_0x1f4500){const _0xc87407=_0x1f8522;super(),this[_0xc87407(0xe9)]=_0x29731a,this[_0xc87407(0xf7)]=_0x55c132,this[_0xc87407(0xfe)]=_0x32925f,this[_0xc87407(0x17b)]=_0x58cd53,this[_0xc87407(0x2b3)]=_0x1f4500,this[_0xc87407(0x169)](),this['_initCloseConn']();}[_0x1f8522(0x1e0)](){const _0x3ee57c=_0x1f8522;let _0x1be3d8=async _0x42d036=>{const _0x38c898=_0x249d;(await this['_collaborationSessionService']['requireSession'](_0x42d036))[_0x38c898(0xfa)][_0x38c898(0x27e)](_0x18abe6(_0x5c2825=>_0x5c2825[_0x38c898(0x281)]===_0x27e67f[_0x38c898(0xf5)]),_0x328e45(this[_0x38c898(0x24c)]))[_0x38c898(0xfb)](_0x1680a4=>{const _0x1dcf5c=_0x38c898;let {reason:_0x4dc419}=_0x1680a4['data'];this['_collaborationUIEventService']['emitEvent']({'id':_0x1dcf5c(0x26a),'data':_0x4dc419}),this['_permissionService'][_0x1dcf5c(0x134)](new _0x14cd38(_0x42d036)['id'],!0x1),this['_collaborationSessionService']['closeSession'](_0x42d036);});};_0x340907(this[_0x3ee57c(0xf7)][_0x3ee57c(0x28f)](_0x292cef['UNIVER_SHEET']),this[_0x3ee57c(0xf7)]['getTypeOfUnitAdded$'](_0x292cef[_0x3ee57c(0x23a)]))['pipe'](_0x279c8c(_0x5a2100=>_0x5a2100['unit'][_0x3ee57c(0xdc)]()),_0x18abe6(_0x24105a=>!_0x2a8699(_0x24105a)),_0x328e45(this[_0x3ee57c(0x24c)]))[_0x3ee57c(0xfb)](_0x5f217b=>{_0x1be3d8(_0x5f217b);});}[_0x1f8522(0x169)](){const _0x2f2fda=_0x1f8522;let _0x3ce0e9=async _0x4533dc=>{const _0x287c89=_0x249d;let _0x49bf61=await this[_0x287c89(0x17b)][_0x287c89(0x277)](_0x4533dc),_0x1e8469=this[_0x287c89(0xe9)][_0x287c89(0x315)](_0x5e8e29);_0x49bf61[_0x287c89(0xfa)]['pipe'](_0x18abe6(_0x2a674b=>_0x2a674b[_0x287c89(0x281)]===_0x27e67f[_0x287c89(0x139)]),_0x328e45(this['dispose$']))[_0x287c89(0xfb)](_0x3c6cde=>{const _0x257e67=_0x287c89;let {objectId:_0x1700cf}=_0x3c6cde['data'];_0x1700cf===_0x4533dc?_0x1e8469[_0x257e67(0x232)](_0x4533dc):_0x1e8469[_0x257e67(0xcc)](_0x4533dc,_0x1700cf);});};_0x340907(this[_0x2f2fda(0xf7)][_0x2f2fda(0x28f)](_0x292cef[_0x2f2fda(0x107)]))[_0x2f2fda(0x27e)](_0x279c8c(_0x212031=>_0x212031[_0x2f2fda(0x189)]['getUnitId']()),_0x18abe6(_0x3475fc=>!_0x2a8699(_0x3475fc)),_0x328e45(this[_0x2f2fda(0x24c)]))[_0x2f2fda(0xfb)](_0xb97957=>{_0x3ce0e9(_0xb97957);});}};xn=z([R(0x0,_0x4f07a4(_0x44d080)),R(0x1,_0x3a738f),R(0x2,_0x439c61),R(0x3,_0x4f07a4(Q)),R(0x4,_0x4f07a4(L))],xn);let Sn=class{constructor(_0x237f23,_0x3e3f10){const _0x41a427=_0x1f8522;this[_0x41a427(0xba)]=_0x237f23,this[_0x41a427(0x152)]=_0x3e3f10;}async['getUnitOnRev'](_0xb02917,_0x1e78a2){const _0x422885=_0x1f8522;var _0x4f9e85;let {unitID:_0x2b0e84,type:_0x181e4a,revision:_0x599d47=0x0}=_0x1e78a2,_0x4fde90=this['getSnapshotAPIPath']()+'/'+_0x181e4a+_0x422885(0xee)+_0x2b0e84+'/rev/'+_0x599d47,_0x38a581=(await this[_0x422885(0x152)]['get'](_0x4fde90))[_0x422885(0x123)],_0x5f4cc8=(_0x4f9e85=_0x38a581[_0x422885(0x1e7)])==null?void 0x0:_0x4f9e85[_0x422885(0x19b)];if(_0x5f4cc8){let _0x223a1a=_0x5f4cc8==null?void 0x0:_0x5f4cc8['originalMeta'];_0x5f4cc8[_0x422885(0x197)]=_0x2c7657[_0x422885(0xbb)](_0x376bcd(_0x223a1a)),Object[_0x422885(0x22d)](_0x5f4cc8[_0x422885(0x1d5)])[_0x422885(0x1b0)](([,_0x1bdac3])=>{const _0x597675=_0x422885;let _0x3e5d5d=_0x1bdac3[_0x597675(0x197)];_0x1bdac3[_0x597675(0x197)]=_0x2c7657[_0x597675(0xbb)](_0x376bcd(_0x3e5d5d));});}return _0x38a581;}async[_0x1f8522(0x308)](_0x492e0f,_0x1d58c1){const _0x38306b=_0x1f8522;let {unitID:_0x1f60b3,type:_0x11d5b1,blockID:_0x16885d}=_0x1d58c1,_0x3792d3=this[_0x38306b(0x19d)]()+'/'+_0x11d5b1+_0x38306b(0xee)+_0x1f60b3+_0x38306b(0x269)+_0x16885d;return(await this[_0x38306b(0x152)][_0x38306b(0x315)](_0x3792d3))[_0x38306b(0x123)];}async[_0x1f8522(0x29a)](_0x160c21,_0x567646){const _0x52b72a=_0x1f8522;let {unitID:_0x4c0f89,type:_0x571b22,blockID:_0x364564}=_0x567646,_0x5e35cc=this['_getAPIPrefix']()+'/block/'+_0x571b22+_0x52b72a(0xee)+_0x4c0f89+_0x52b72a(0x269)+_0x364564;return(await this[_0x52b72a(0x152)][_0x52b72a(0x315)](_0x5e35cc))[_0x52b72a(0x123)];}async['fetchMissingChangesets'](_0x3393cb,_0x3a74d7){const _0x139bad=_0x1f8522;let {unitID:_0x502aa3,type:_0x4087c4,from:_0x143fb5,to:_0x45ebad}=_0x3a74d7,_0x5b3c77=this[_0x139bad(0x19d)]()+'/'+_0x4087c4+_0x139bad(0xee)+_0x502aa3+'/fetchmissing?from='+_0x143fb5+_0x139bad(0x20d)+_0x45ebad;return(await this[_0x139bad(0x152)]['get'](_0x5b3c77))['body'];}[_0x1f8522(0x2ba)](){const _0x3789b4=_0x1f8522;var _0x4df878;return(_0x4df878=this['_configService'][_0x3789b4(0xe2)]('SNAPSHOT_URL_KEY'))==null?this['_getAPIPrefix']():_0x4df878;}[_0x1f8522(0x19d)](){const _0xd566e0=_0x1f8522;var _0x17892f;let _0x1af13a=this[_0xd566e0(0xba)][_0xd566e0(0xe2)](U);return(_0x17892f=_0x1af13a==null?void 0x0:_0x1af13a['snapshotServerUrl'])==null?_0xd566e0(0x16b):_0x17892f;}async[_0x1f8522(0x1ad)](_0x36af11,_0x1cfc09){const _0x169fb1=_0x1f8522;let _0x4a366c=_0x169fb1(0xcd)+_0x1cfc09[_0x169fb1(0x126)]+_0x169fb1(0xee)+_0x1cfc09[_0x169fb1(0x108)]+_0x169fb1(0x1c4);return(await this[_0x169fb1(0x152)][_0x169fb1(0x315)](_0x4a366c,{'params':{'resourceId':JSON['stringify'](_0x1cfc09[_0x169fb1(0xfc)])}}))[_0x169fb1(0x123)];}[_0x1f8522(0x27f)](){const _0x5562e7=_0x1f8522;throw Error(_0x5562e7(0x23c));}['updateSnapshot'](){throw Error('This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!');}[_0x1f8522(0x2ad)](){const _0x54193a=_0x1f8522;throw Error(_0x54193a(0x23c));}['saveChangeset'](){const _0x21fcca=_0x1f8522;throw Error(_0x21fcca(0x23c));}[_0x1f8522(0x18e)](){const _0x1e3e9f=_0x1f8522;throw Error(_0x1e3e9f(0x23c));}[_0x1f8522(0x237)](){const _0x2b2cbb=_0x1f8522;throw Error(_0x2b2cbb(0x23c));}};function _0x249d(_0x381240,_0x587947){_0x381240=_0x381240-0xb9;const _0x21a64c=_0x21a6();let _0x249ddb=_0x21a64c[_0x381240];return _0x249ddb;}Sn=z([R(0x0,_0x3ba9f8),R(0x1,_0x4f07a4(_0x2e99a4))],Sn);let Cn=class extends _0x38014a{constructor(_0x179c32,_0xa8a5a1,_0x4d6965,_0x5d95b7,_0x229f2b){const _0x4c749b=_0x1f8522;super(_0x179c32,_0xa8a5a1,_0x4d6965),this[_0x4c749b(0xf0)]=_0x5d95b7,this[_0x4c749b(0x2b2)]=_0x229f2b;}[_0x1f8522(0x127)](_0x3a32a5,_0x2cb0e4){const _0x5c9f38=_0x1f8522;let _0x542eaf=this[_0x5c9f38(0x203)](_0x3a32a5);if(_0x542eaf)try{let _0x561c20=this['_transformStack'](_0x542eaf,_0x2cb0e4);this[_0x5c9f38(0x122)](_0x3a32a5,_0x561c20);}catch(_0x398c23){this[_0x5c9f38(0x2b2)]['error']('[CollaborationUndoRedoService]',_0x398c23),this['_clearUndo'](_0x3a32a5);}let _0x35c8fb=this[_0x5c9f38(0x273)](_0x3a32a5);if(_0x35c8fb)try{let _0x32e2d3=this['_transformStack'](_0x35c8fb,_0x2cb0e4);this[_0x5c9f38(0x2b5)](_0x3a32a5,_0x32e2d3);}catch(_0x3aaee6){this['_logService'][_0x5c9f38(0xd2)](_0x3aaee6),this['_clearRedo'](_0x3a32a5);}}[_0x1f8522(0x1b8)](_0x856dd5){const _0x5e1ead=_0x1f8522;let _0x4f9e73=this[_0x5e1ead(0x203)](_0x856dd5);_0x4f9e73&&(_0x4f9e73['length']=0x0,this[_0x5e1ead(0x1a8)]());}[_0x1f8522(0x1d1)](_0xc75be5){const _0x147a6b=_0x1f8522;let _0x35d234=this[_0x147a6b(0x273)](_0xc75be5);_0x35d234&&(_0x35d234[_0x147a6b(0x10a)]=0x0,this[_0x147a6b(0x1a8)]());}[_0x1f8522(0x122)](_0xcf2cb2,_0x4ac7f5){const _0x4719a3=_0x1f8522;this[_0x4719a3(0xff)][_0x4719a3(0x27d)](_0xcf2cb2,_0x4ac7f5),this[_0x4719a3(0x1a8)]();}[_0x1f8522(0x2b5)](_0x128ccc,_0xc758d5){const _0xa04913=_0x1f8522;this[_0xa04913(0x2fb)]['set'](_0x128ccc,_0xc758d5),this[_0xa04913(0x1a8)]();}[_0x1f8522(0xc3)](_0x1ab1ad,_0x1771db){const _0x252927=_0x1f8522;let _0x3cd6bf=[],_0xa1f522=_0x1771db,_0xc6dbac=_0x1771db;for(let _0x3e638d=_0x1ab1ad[_0x252927(0x10a)]-0x1;_0x3e638d>=0x0;_0x3e638d--){let {unitID:_0x1dd778,undoMutations:_0x2e8d34,redoMutations:_0x50476e}=_0x1ab1ad[_0x3e638d],_0x464723=this[_0x252927(0xf0)][_0x252927(0x280)](_0xa1f522,_0x2e8d34),_0x53a1a2=this['_transformService'][_0x252927(0x280)](_0xc6dbac,_0x50476e);if(_0x17dd41(_0x464723)||_0x17dd41(_0x53a1a2)){this['_logService'][_0x252927(0xd2)](_0x252927(0x198),'transformStack\x20failed!',_0x464723,_0x53a1a2);break;}_0xa1f522=_0x464723[_0x252927(0x2bb)],_0xc6dbac=_0x53a1a2[_0x252927(0x2bb)],_0x3cd6bf['push']({'unitID':_0x1dd778,'undoMutations':_0x464723['m2Prime'],'redoMutations':_0x53a1a2[_0x252927(0x2c1)]});}return _0x3cd6bf[_0x252927(0x105)]();}};Cn=z([R(0x0,_0x3a738f),R(0x1,_0x3a76f7),R(0x2,_0x3ed1aa),R(0x3,_0x4f7ff9),R(0x4,_0x1443cf)],Cn);let $=class extends _0x2c42b9{constructor(_0x4f9dad={},_0x47bf66,_0x318c05,_0x533263){const _0x1de3b0=_0x1f8522;super(),this[_0x1de3b0(0xcb)]=_0x4f9dad,this['_logService']=_0x47bf66,this[_0x1de3b0(0xe9)]=_0x318c05,this[_0x1de3b0(0xba)]=_0x533263;let {..._0x5ec13f}=_0x1b8645({},Nt,_0x4f9dad);if(!_0x5ec13f[_0x1de3b0(0xd3)])throw Error('[UniverCollaborationClientPlugin]:\x20you\x20must\x20provide\x20a\x20socketService\x20implementation\x20in\x20config!');this[_0x1de3b0(0xcb)]=_0x5ec13f,this[_0x1de3b0(0xba)]['setConfig'](U,_0x5ec13f);}['onStarting'](){const _0x4b3d66=_0x1f8522;this[_0x4b3d66(0x28a)](),this[_0x4b3d66(0x2f6)]();}['_registerDependencies'](){const _0x34d18f=_0x1f8522;var _0x1ae3fd,_0x1b6ccf;this[_0x34d18f(0xe9)][_0x34d18f(0x309)](_0x3b54de)&&this[_0x34d18f(0x2b2)][_0x34d18f(0xd2)](_0x34d18f(0x11d),_0x34d18f(0x271));let _0x398b12=_0x415d5a([[_0x3b54de,{'useClass':Cn}],[Q],[B],[H],[dn],[_n],[wt],[xn],[L],[vn],[rn,{'useClass':this[_0x34d18f(0xcb)][_0x34d18f(0xd3)]}],[_0x72942,{'useClass':Sn}],[_0xb4867c,{'useClass':fn}],[_0x33c502,{'useClass':yn}],[_0x5dc0a9,{'useClass':bn}],[sn],[un]],(_0x1ae3fd=this[_0x34d18f(0xcb)])==null?void 0x0:_0x1ae3fd[_0x34d18f(0x2e5)]);if(!((_0x1b6ccf=this[_0x34d18f(0xcb)])!=null&&_0x1b6ccf[_0x34d18f(0x1f4)])){let _0x1a3b16=_0x398b12['findIndex'](([_0x3aa29b])=>_0x3aa29b===jt);_0x1a3b16!==-0x1&&_0x398b12['splice'](_0x1a3b16,0x1);}_0x2046a5(this[_0x34d18f(0xe9)],_0x398b12);}[_0x1f8522(0x2f6)](){const _0x73e0f6=_0x1f8522;var _0x4b66e9,_0x42e7fc;if(this[_0x73e0f6(0xe9)][_0x73e0f6(0x315)](_0x2e99a4)[_0x73e0f6(0x240)]({'priority':0x14,'interceptor':_0x258eba({'maxParallel':0x6})}),!((_0x4b66e9=this[_0x73e0f6(0xcb)])!=null&&_0x4b66e9['enableOfflineEditing'])){var _0x3d446b;(_0x3d446b=this[_0x73e0f6(0xe9)][_0x73e0f6(0x315)](V,_0x2afa53['OPTIONAL']))==null||_0x3d446b[_0x73e0f6(0x1e3)]();}(_0x42e7fc=this[_0x73e0f6(0xcb)])!=null&&_0x42e7fc[_0x73e0f6(0x317)]&&_0x156eb2(this['_injector'],[[dn]]),_0x156eb2(this[_0x73e0f6(0xe9)],[[_n],[sn],[xn]]);}};I($,'pluginName',_0x1f8522(0x179)),I($,_0x1f8522(0x1fc),cn),I($,_0x1f8522(0x190),ln),$=z([_0x576a62(_0xc5155e,_0x2fd190,_0x4df7af),R(0x1,_0x1443cf),R(0x2,_0x4f07a4(_0x44d080)),R(0x3,_0x3ba9f8)],$);export{fn as AuthzIoHttpService,q as AwaitingState,J as AwaitingWithPendingState,U as COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY,sn as CollaborationController,Zt as CollaborationEntity,yn as CollaborationImageIoService,Ot as CollaborationSession,Q as CollaborationSessionService,on as CollaborationSocketService,qt as CollaborationStatus,Ct as CollaborationUIEventId,L as CollaborationUIEventService,Cn as CollaborativeUndoRedoService,wt as CommentService,Y as ConflictState,ut as DEFAULT_COLLAB_WEB_SOCKET_URL,yt as DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT,dt as DEFAULT_WS_SESSION_TICKET_URL,vn as DataLoaderService,Qt as DocCollaborationEntity,Z as FetchingMissState,ft as HEARTBEAT_INTERVAL_KEY,pt as HEARTBEAT_TIMEOUT_KEY,rn as ICollaborationSocketService,V as ILocalCacheService,en as INetworkConditionService,jt as ISingleActiveUnitService,_t as LOCAL_CACHE_INTERVAL,gt as LOCAL_CACHE_INTERVAL_KEY,B as MemberService,bn as MentionIoHttpService,X as OfflineState,K as PendingState,vt as REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY,ht as RETRY_CONNECTING_MAX_COUNT_KEY,Et as SessionStatus,$t as SheetCollaborationEntity,H as SheetTransformSelectionsService,Sn as SnapshotServerOverHTTPService,G as SyncedState,Mt as UnitStatus,$ as UniverCollaborationClientPlugin,tn as deserializeToCombResponse,kt as getLocalCacheKey,nn as serializeCombRequest};
|
|
1
|
+
const _0x1fd9ed=_0x3c02;(function(_0x2f407b,_0x1c1425){const _0x3e4209=_0x3c02,_0x2c869c=_0x2f407b();while(!![]){try{const _0x26f881=-parseInt(_0x3e4209(0x43b))/0x1*(-parseInt(_0x3e4209(0x472))/0x2)+-parseInt(_0x3e4209(0x43d))/0x3*(-parseInt(_0x3e4209(0x2c0))/0x4)+parseInt(_0x3e4209(0x446))/0x5+parseInt(_0x3e4209(0x266))/0x6+parseInt(_0x3e4209(0x259))/0x7*(-parseInt(_0x3e4209(0x437))/0x8)+parseInt(_0x3e4209(0x22f))/0x9+-parseInt(_0x3e4209(0x327))/0xa*(parseInt(_0x3e4209(0x24e))/0xb);if(_0x26f881===_0x1c1425)break;else _0x2c869c['push'](_0x2c869c['shift']());}catch(_0x805251){_0x2c869c['push'](_0x2c869c['shift']());}}}(_0x4a5d,0xc9d30));import{ApplyBaseJson1Mutation as _0x5e3e51}from'@univerjs-pro/bases';import{CollaborationEvent as _0x59a8f1,CompressMutationService as _0x525c70,EmptyMutationInfo as _0x46916c,ISnapshotServerService as _0x30cc59,ITransformService as _0xd875ea,RevisionService as _0x351861,SnapshotService as _0x3e478c,UniverCollaborationPlugin as _0xc697b4,b64DecodeUnicode as _0xb21ad1,isTransformChangesetsSuccess as _0x7e6bf8,isTransformMutationsWithChangesetFailure as _0x315511,isTransformMutationsWithChangesetSuccess as _0x4b59ef,mapDocumentTypeToUniverInstanceType as _0x3a24d5,parseChangesetToProtocol as _0x395269,parseProtocolChangeset as _0x4367c5,textEncoder as _0x579706,uuidv4 as _0x24d38f}from'@univerjs-pro/collaboration';import{CommandType as _0x446ee0,DependentOn as _0x1362c5,Disposable as _0x3a77f3,DisposableCollection as _0x51e9ca,IAuthzIoService as _0xc1a7f4,ICommandService as _0x5bccb0,IConfigService as _0x9f4c9b,IContextService as _0x1aa7c3,ILogService as _0x43229d,IMentionIOService as _0x301593,IPermissionService as _0x147673,IUndoRedoService as _0x12e59b,IUniverInstanceService as _0x1efd8f,Inject as _0x567a44,Injector as _0x129a14,JSONX as _0x13dd73,LocalUndoRedoService as _0x177857,LocaleService as _0x45f63e,MentionType as _0x335e28,Optional as _0x8f0001,Plugin as _0x4048a0,Quantity as _0x4b0393,Rectangle as _0x815938,RxDisposable as _0x3431d7,Tools as _0x45c3d8,UniverInstanceType as _0x10286b,UserManagerService as _0x1c4dd4,Workbook as _0x3e3fbf,createIdentifier as _0x2d6602,generateRandomId as _0xe17c8d,isInternalEditorID as _0x15b1a2,merge as _0x29dc2a,mergeOverrideWithDependencies as _0x56fddf,registerDependencies as _0x4c42ef,resolveWithBasePath as _0x5b4e40,sequenceExecute as _0x1aab5f,toDisposable as _0x418282,touchDependencies as _0x5932ea}from'@univerjs/core';import{DocStateChangeManagerService as _0x2bfe83,RichTextEditingMutation as _0x40b38f}from'@univerjs/docs';import{InsertSheetMutation as _0x532c8d,SetSelectionsOperation as _0x40956a,SheetPermissionInitController as _0x2d32af,SheetsSelectionsService as _0x5da292,WorkbookEditablePermission as _0x12e445}from'@univerjs/sheets';import{BehaviorSubject as _0x32f5fb,ReplaySubject as _0x27c1fd,Subject as _0x284279,concatMap as _0x413ce1,firstValueFrom as _0x4a2f1b,map as _0x55288a,merge as _0x5a212e,of as _0x563880,shareReplay as _0x4a973b,take as _0x213f84,takeUntil as _0x1223c0}from'rxjs';import{CmdRspCode as _0x404851,CombCmd as _0x525d5f,ErrorCode as _0x1051fa,FileSource as _0x5576ff}from'@univerjs/protocol';import{ITelemetryService as _0x3588a3}from'@univerjs/telemetry';import{delay as _0x3c3ccd,filter as _0x2fe858,map as _0x354970,take as _0x2d672e,takeUntil as _0x13c980}from'rxjs/operators';import{AddSlidePageMutation as _0x17c9d0,EnsureSlideMasterPageMutation as _0xcdf1e6,MoveSlidePageMutation as _0x59576f,RemoveSlidePageMutation as _0x5252ae}from'@univerjs-pro/slides';import{HTTPRequest as _0x59267e,HTTPService as _0x2d05b0,ISocketService as _0x2e768a,MergeInterceptorFactory as _0x351ef0,ThresholdInterceptorFactory as _0x58a7f6,UniverNetworkPlugin as _0x5efa0f}from'@univerjs/network';import{UniverLicensePlugin as _0x222516,getGlobalObject as _0x227b9f}from'@univerjs-pro/license';import{DRAWING_IMAGE_ALLOW_IMAGE_LIST as _0x508447,IImageIoService as _0x53d0e5,ImageSourceType as _0x1eb97a,ImageUploadStatusType as _0xe5e0e,getDrawingImageAllowSize as _0x2a9018}from'@univerjs/drawing';import{cbc as _0x80038a}from'@noble/ciphers/aes.js';import{concatBytes as _0x48a0cd,randomBytes as _0x430a06,utf8ToBytes as _0x4d385c}from'@noble/ciphers/utils.js';const F=_0x1fd9ed(0x2cb),gt={},_t=_0x1fd9ed(0x399),vt=_0x1fd9ed(0x2b8),yt='HEARTBEAT_INTERVAL',bt='HEARTBEAT_TIMEOUT',xt=0x4e20,St='RETRY_CONNECTING_MAX_COUNT',Ct='LOCAL_CACHE_INTERVAL',wt=0x3e8,Tt=_0x1fd9ed(0x461),Et=_0x1fd9ed(0x3fd);function Dt(_0x13df0e){const _0x1c238c=_0x1fd9ed;return JSON[_0x1c238c(0x2b9)](_0x13df0e)[_0x1c238c(0x3a1)];}function Ot(_0x4a3456){'@babel/helpers - typeof';const _0x52d341=_0x1fd9ed;return Ot=typeof Symbol=='function'&&typeof Symbol[_0x52d341(0x2c2)]==_0x52d341(0x290)?function(_0x5dade5){return typeof _0x5dade5;}:function(_0x25baf3){const _0x3f0861=_0x52d341;return _0x25baf3&&typeof Symbol==_0x3f0861(0x275)&&_0x25baf3[_0x3f0861(0x3d3)]===Symbol&&_0x25baf3!==Symbol[_0x3f0861(0x402)]?'symbol':typeof _0x25baf3;},Ot(_0x4a3456);}function kt(_0x5d215a,_0x1ee2d6){const _0x29d5ec=_0x1fd9ed;if(Ot(_0x5d215a)!=_0x29d5ec(0x201)||!_0x5d215a)return _0x5d215a;var _0x4713b6=_0x5d215a[Symbol[_0x29d5ec(0x25c)]];if(_0x4713b6!==void 0x0){var _0x1ac576=_0x4713b6['call'](_0x5d215a,_0x1ee2d6||_0x29d5ec(0x397));if(Ot(_0x1ac576)!=_0x29d5ec(0x201))return _0x1ac576;throw TypeError(_0x29d5ec(0x393));}return(_0x1ee2d6==='string'?String:Number)(_0x5d215a);}function At(_0x5c7970){const _0x16bd9d=_0x1fd9ed;var _0x15f797=kt(_0x5c7970,_0x16bd9d(0x321));return Ot(_0x15f797)==_0x16bd9d(0x290)?_0x15f797:_0x15f797+'';}function I(_0x25aaba,_0x12b228,_0x5719f0){const _0x10a6bc=_0x1fd9ed;return(_0x12b228=At(_0x12b228))in _0x25aaba?Object[_0x10a6bc(0x3a6)](_0x25aaba,_0x12b228,{'value':_0x5719f0,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x25aaba[_0x12b228]=_0x5719f0,_0x25aaba;}let jt=function(_0x3037d5){const _0x3e3adf=_0x1fd9ed;return _0x3037d5[_0x3e3adf(0x3d0)]=_0x3e3adf(0x3d0),_0x3037d5[_0x3e3adf(0x367)]=_0x3e3adf(0x367),_0x3037d5[_0x3e3adf(0x442)]='CONFLICT',_0x3037d5[_0x3e3adf(0x3f7)]=_0x3e3adf(0x3f7),_0x3037d5['JOIN_ROOM_FAILED']=_0x3e3adf(0x34f),_0x3037d5['SOCKET_FAILED_RETRY']=_0x3e3adf(0x326),_0x3037d5['SOCKET_FAILED']='SOCKET_FAILED',_0x3037d5['SUBMIT_CHANGESET_TIMEOUT']=_0x3e3adf(0x421),_0x3037d5;}({});var L=class{constructor(){const _0x158ee4=_0x1fd9ed;I(this,_0x158ee4(0x350),new _0x284279()),I(this,_0x158ee4(0x33f),this[_0x158ee4(0x350)][_0x158ee4(0x2bb)]());}[_0x1fd9ed(0x3e1)](_0x1c225b){const _0x347541=_0x1fd9ed;this[_0x347541(0x350)]['next'](_0x1c225b);}},Mt=class{constructor(){const _0x1de67b=_0x1fd9ed;I(this,_0x1de67b(0x227),new _0x284279()),I(this,'commentUpdate$',this[_0x1de67b(0x227)][_0x1de67b(0x2bb)]());}[_0x1fd9ed(0x375)](_0x1c79c){const _0x4a03bd=_0x1fd9ed;this['_commentUpdate$'][_0x4a03bd(0x3a7)](_0x1c79c);}};function R(_0x309f21,_0x665028){return function(_0xa66ceb,_0x40aa1d){_0x665028(_0xa66ceb,_0x40aa1d,_0x309f21);};}function z(_0x5d3c3b,_0x36388c,_0x76146e,_0x4022b2){const _0x6ecd9a=_0x1fd9ed;var _0x16dea1=arguments[_0x6ecd9a(0x3a1)],_0x443f2c=_0x16dea1<0x3?_0x36388c:_0x4022b2===null?_0x4022b2=Object[_0x6ecd9a(0x2be)](_0x36388c,_0x76146e):_0x4022b2,_0x2479ce;if(typeof Reflect==_0x6ecd9a(0x201)&&typeof Reflect[_0x6ecd9a(0x431)]==_0x6ecd9a(0x275))_0x443f2c=Reflect[_0x6ecd9a(0x431)](_0x5d3c3b,_0x36388c,_0x76146e,_0x4022b2);else{for(var _0x4161a5=_0x5d3c3b[_0x6ecd9a(0x3a1)]-0x1;_0x4161a5>=0x0;_0x4161a5--)(_0x2479ce=_0x5d3c3b[_0x4161a5])&&(_0x443f2c=(_0x16dea1<0x3?_0x2479ce(_0x443f2c):_0x16dea1>0x3?_0x2479ce(_0x36388c,_0x76146e,_0x443f2c):_0x2479ce(_0x36388c,_0x76146e))||_0x443f2c);}return _0x16dea1>0x3&&_0x443f2c&&Object[_0x6ecd9a(0x3a6)](_0x36388c,_0x76146e,_0x443f2c),_0x443f2c;}let B=class extends _0x3a77f3{constructor(_0x4186d3,_0x4dd268){const _0x4f3d2f=_0x1fd9ed;super(),this[_0x4f3d2f(0x250)]=_0x4186d3,this[_0x4f3d2f(0x3fe)]=_0x4dd268,I(this,'_roomMembers',new Map()),I(this,'_roomCreated$',new _0x284279()),this[_0x4f3d2f(0x203)](_0x5a212e(this[_0x4f3d2f(0x250)]['getTypeOfUnitDisposed$'](_0x10286b['UNIVER_SHEET'])[_0x4f3d2f(0x355)](_0x354970(_0x2dc030=>_0x2dc030[_0x4f3d2f(0x3c3)]())),this[_0x4f3d2f(0x250)]['getTypeOfUnitDisposed$'](_0x10286b[_0x4f3d2f(0x1ff)])[_0x4f3d2f(0x355)](_0x354970(_0x2abda1=>_0x2abda1[_0x4f3d2f(0x3c3)]())),this[_0x4f3d2f(0x250)][_0x4f3d2f(0x40c)](_0x10286b['UNIVER_BASE'])['pipe'](_0x354970(_0x2f2bdd=>_0x2f2bdd[_0x4f3d2f(0x3c3)]())))[_0x4f3d2f(0x3f9)](_0x31c915=>this['_removeRoom'](_0x31c915)));}[_0x1fd9ed(0x468)](_0x35c9c6){const _0x5b1e19=_0x1fd9ed;return this['_roomMembers'][_0x5b1e19(0x302)](_0x35c9c6)?_0x563880(this['_roomMembers'][_0x5b1e19(0x45a)](_0x35c9c6)):this[_0x5b1e19(0x22a)][_0x5b1e19(0x355)](_0x354970(_0x12a6fe=>{const _0x4a43a1=_0x5b1e19;if(_0x12a6fe===_0x35c9c6)return this[_0x4a43a1(0x2a8)][_0x4a43a1(0x45a)](_0x12a6fe);}));}['setCurrentUser'](_0x1ed8d4){const _0x195dee=_0x1fd9ed;this[_0x195dee(0x3fe)][_0x195dee(0x260)](_0x1ed8d4);}['getCurrentUser'](){const _0x52b7ff=_0x1fd9ed;return this[_0x52b7ff(0x3fe)][_0x52b7ff(0x415)]();}['updateMember'](_0xaec1c9,_0x112c4e){const _0x52bc7c=_0x1fd9ed;let _0x28f784=this[_0x52bc7c(0x2a8)][_0x52bc7c(0x45a)](_0xaec1c9);_0x28f784||(_0x28f784=new Nt(),this['_roomMembers'][_0x52bc7c(0x23d)](_0xaec1c9,_0x28f784),this[_0x52bc7c(0x22a)][_0x52bc7c(0x3a7)](_0xaec1c9)),_0x28f784[_0x52bc7c(0x411)](_0x112c4e);}[_0x1fd9ed(0x239)](_0x362780,_0x682eeb){const _0x4f4e86=_0x1fd9ed;let _0x3011ae=this['_roomMembers'][_0x4f4e86(0x45a)](_0x362780);_0x3011ae&&_0x3011ae[_0x4f4e86(0x239)](_0x682eeb);}[_0x1fd9ed(0x2c1)](_0x46b00a){const _0x59bd4f=_0x1fd9ed;return this[_0x59bd4f(0x2a8)][_0x59bd4f(0x45a)](_0x46b00a);}[_0x1fd9ed(0x342)](_0x48df52,_0x1eeb9f){const _0x47f4a4=_0x1fd9ed;let _0x98ab99=this[_0x47f4a4(0x2a8)][_0x47f4a4(0x45a)](_0x48df52);if(_0x98ab99)return _0x98ab99['getMember'](_0x1eeb9f);}['_removeRoom'](_0x2f5b25){const _0x2c3652=_0x1fd9ed;let _0x634c96=this[_0x2c3652(0x2a8)]['get'](_0x2f5b25);_0x634c96&&(_0x634c96[_0x2c3652(0x3b9)](),this[_0x2c3652(0x2a8)][_0x2c3652(0x359)](_0x2f5b25));}[_0x1fd9ed(0x3b9)](){const _0x271759=_0x1fd9ed;this[_0x271759(0x2a8)][_0x271759(0x365)](_0x11dbbd=>_0x11dbbd['dispose']()),this[_0x271759(0x2a8)][_0x271759(0x244)](),this[_0x271759(0x22a)][_0x271759(0x394)]();}};B=z([R(0x0,_0x1efd8f),R(0x1,_0x567a44(_0x1c4dd4))],B);var Nt=class extends _0x3a77f3{constructor(..._0x2e41e1){const _0xc07991=_0x1fd9ed;super(..._0x2e41e1),I(this,_0xc07991(0x202),new Map()),I(this,_0xc07991(0x414),new _0x32f5fb(this[_0xc07991(0x202)])),I(this,_0xc07991(0x208),this[_0xc07991(0x414)][_0xc07991(0x2bb)]());}[_0x1fd9ed(0x3b9)](){const _0x16ca87=_0x1fd9ed;this[_0x16ca87(0x202)][_0x16ca87(0x244)](),this[_0x16ca87(0x414)][_0x16ca87(0x394)]();}[_0x1fd9ed(0x411)](_0x3eb8b4){const _0x2809ee=_0x1fd9ed;this[_0x2809ee(0x202)][_0x2809ee(0x23d)](_0x3eb8b4['memberID'],_0x3eb8b4),this[_0x2809ee(0x312)]();}[_0x1fd9ed(0x239)](_0xdd6c88){const _0x8cb16=_0x1fd9ed;this[_0x8cb16(0x202)][_0x8cb16(0x359)](_0xdd6c88),this[_0x8cb16(0x312)]();}[_0x1fd9ed(0x342)](_0x27d9cb){const _0x197dee=_0x1fd9ed;return this[_0x197dee(0x202)][_0x197dee(0x45a)](_0x27d9cb);}['getAllMembers'](){const _0x50857f=_0x1fd9ed;return Array[_0x50857f(0x457)](this[_0x50857f(0x202)][_0x50857f(0x39e)]());}['_emitMembers'](){const _0x5f4e9e=_0x1fd9ed;this[_0x5f4e9e(0x414)][_0x5f4e9e(0x3a7)](this[_0x5f4e9e(0x202)]);}};let Pt=function(_0x1e6ee6){const _0x15edf2=_0x1fd9ed;return _0x1e6ee6[_0x1e6ee6[_0x15edf2(0x26b)]=0x0]=_0x15edf2(0x26b),_0x1e6ee6[_0x1e6ee6[_0x15edf2(0x440)]=0x1]=_0x15edf2(0x440),_0x1e6ee6[_0x1e6ee6[_0x15edf2(0x2e9)]=0x2]='OFFLINE',_0x1e6ee6[_0x1e6ee6[_0x15edf2(0x2d2)]=0x3]=_0x15edf2(0x2d2),_0x1e6ee6;}({});const Ft={[_0x404851['FAIL']]:_0x1fd9ed(0x235),[_0x404851[_0x1fd9ed(0x373)]]:'session.room-full',[_0x404851[_0x1fd9ed(0x272)]]:_0x1fd9ed(0x35e),[_0x404851['JOIN_ROOM_PERMISSION_DENIED']]:_0x1fd9ed(0x34c),[_0x404851[_0x1fd9ed(0x41c)]]:_0x1fd9ed(0x455)};let It=class extends _0x3431d7{get[_0x1fd9ed(0x34b)](){const _0x2fd306=_0x1fd9ed;return this[_0x2fd306(0x238)]['getValue']();}constructor(_0x35061d,_0xbb04b8,_0x384715,_0xc16b74,_0x248a37,_0x7ddb2,_0x5698ae,_0x82f96e){const _0x1f164a=_0x1fd9ed;super(),this['_unitID']=_0x35061d,this[_0x1f164a(0x42c)]=_0x384715,this[_0x1f164a(0x3b0)]=_0xc16b74,this['_memberService']=_0x248a37,this[_0x1f164a(0x3b7)]=_0x7ddb2,this['_collaborationUIEventService']=_0x5698ae,this[_0x1f164a(0x391)]=_0x82f96e,I(this,_0x1f164a(0x238),new _0x32f5fb(0x0)),I(this,_0x1f164a(0x434),this[_0x1f164a(0x238)]['asObservable']()),I(this,_0x1f164a(0x350),new _0x284279()),I(this,_0x1f164a(0x33f),this[_0x1f164a(0x350)][_0x1f164a(0x2bb)]()),I(this,_0x1f164a(0x39b),void 0x0),I(this,'_socketMessageSubscription',void 0x0),I(this,_0x1f164a(0x3a3),void 0x0),I(this,_0x1f164a(0x39d),!0x1),I(this,_0x1f164a(0x3d5),null),this[_0x1f164a(0x39d)]=!!this[_0x1f164a(0x391)],_0xbb04b8['pipe'](_0x1223c0(this[_0x1f164a(0x31e)]))[_0x1f164a(0x3f9)](_0x6c0d95=>{const _0x203e3d=_0x1f164a;if(_0x6c0d95!==void 0x0){if(this[_0x203e3d(0x39b)]=_0x6c0d95,_0x6c0d95)this['_joinRoom'](_0x6c0d95),this[_0x203e3d(0x33a)]=_0x6c0d95[_0x203e3d(0x474)]['subscribe'](_0x508c4d=>{const _0x496eb8=_0x203e3d;_0x508c4d[_0x496eb8(0x291)]===this[_0x496eb8(0x297)]&&this['_onCombEvent'](_0x508c4d);});else{var _0x2590cc;this[_0x203e3d(0x42f)](),this['_sessionStatus$']['next'](0x2),(_0x2590cc=this[_0x203e3d(0x33a)])==null||_0x2590cc[_0x203e3d(0x20d)](),this['_socketMessageSubscription']=null;}}});}[_0x1fd9ed(0x3df)](){const _0x3f26c2=_0x1fd9ed;var _0x5f312d,_0xc53af4;return(_0x5f312d=(_0xc53af4=this[_0x3f26c2(0x39b)])==null?void 0x0:_0xc53af4[_0x3f26c2(0x378)])==null?null:_0x5f312d;}['dispose'](){const _0xd56eab=_0x1fd9ed;super[_0xd56eab(0x3b9)](),this['close'](),this[_0xd56eab(0x31e)][_0xd56eab(0x3a7)](),this[_0xd56eab(0x31e)]['complete']();}['close'](){const _0x5a4f60=_0x1fd9ed;var _0x2e3f25,_0x18dee2;this[_0x5a4f60(0x42f)](),(_0x2e3f25=this[_0x5a4f60(0x39b)])==null||_0x2e3f25['send']({'cmd':_0x525d5f[_0x5a4f60(0x32a)],'data':{'roomID':this[_0x5a4f60(0x297)]}}),(_0x18dee2=this['_socket'])==null||_0x18dee2['close'](),this[_0x5a4f60(0x350)][_0x5a4f60(0x394)](),this[_0x5a4f60(0x238)][_0x5a4f60(0x394)]();}[_0x1fd9ed(0x240)](_0x2532ac){const _0x4efe92=_0x1fd9ed;_0x2532ac['cmd']===_0x525d5f[_0x4efe92(0x31c)]?this[_0x4efe92(0x464)](_0x2532ac):_0x2532ac['cmd']===_0x525d5f['RECV']&&this[_0x4efe92(0x3bd)](_0x2532ac);}[_0x1fd9ed(0x274)](_0x5d1f6c){const _0x143761=_0x1fd9ed;this[_0x143761(0x238)][_0x143761(0x3a7)](0x1),_0x5d1f6c[_0x143761(0x3e4)]({'cmd':_0x525d5f[_0x143761(0x31c)],'routeKey':this['_unitID'],'routeType':'','data':{'rooms':[{'roomID':this[_0x143761(0x297)]}]}});}['_onJoinRoomEvent'](_0x53c4c9){const _0xdcabb6=_0x1fd9ed;var _0x10fbd9;if(_0x53c4c9['code']in Ft){this[_0xdcabb6(0x33b)]['emitEvent']({'id':_0xdcabb6(0x34f),'data':Ft[_0x53c4c9[_0xdcabb6(0x3d9)]]}),this['_sessionStatus$'][_0xdcabb6(0x3a7)](0x2);return;}this[_0xdcabb6(0x238)][_0xdcabb6(0x3a7)](0x3);let _0x51ced2=(_0x10fbd9=_0x53c4c9[_0xdcabb6(0x215)][_0xdcabb6(0x217)][this[_0xdcabb6(0x297)]])==null?void 0x0:_0x10fbd9[_0xdcabb6(0x3ca)];_0x51ced2&&_0x51ced2[_0xdcabb6(0x365)](_0x158a30=>this[_0xdcabb6(0x40e)][_0xdcabb6(0x411)](this[_0xdcabb6(0x297)],_0x158a30));}[_0x1fd9ed(0x3bd)](_0x516b43){const _0x54c5a6=_0x1fd9ed;try{let _0x2d4053=_0x516b43[_0x54c5a6(0x215)];switch(_0x2d4053[_0x54c5a6(0x2b3)]){case _0x59a8f1[_0x54c5a6(0x3ba)]:this[_0x54c5a6(0x2d9)](_0x2d4053),this[_0x54c5a6(0x350)][_0x54c5a6(0x3a7)](_0x2d4053);break;case _0x59a8f1[_0x54c5a6(0x20e)]:this['_onUserLeave'](_0x2d4053),this[_0x54c5a6(0x350)]['next'](_0x2d4053);break;case _0x59a8f1[_0x54c5a6(0x28e)]:case _0x59a8f1['CHANGESET_SHOULD_RETRY']:this['_stopTelemetryCollaborationNewChangeset'](),this[_0x54c5a6(0x257)](),this[_0x54c5a6(0x350)][_0x54c5a6(0x3a7)](_0x2d4053);break;case _0x59a8f1[_0x54c5a6(0x277)]:this[_0x54c5a6(0x42c)][_0x54c5a6(0x32c)](_0x54c5a6(0x46b)+JSON[_0x54c5a6(0x2b9)](_0x2d4053)),this[_0x54c5a6(0x350)][_0x54c5a6(0x3a7)](_0x2d4053);break;case _0x59a8f1['COMMENT_UPDATE']:this[_0x54c5a6(0x3b7)]['onCommentUpdate'](_0x2d4053[_0x54c5a6(0x215)]),this[_0x54c5a6(0x350)][_0x54c5a6(0x3a7)](_0x2d4053);break;default:this['_event$']['next'](_0x2d4053);}}catch(_0x9f8c75){this[_0x54c5a6(0x42c)]['error'](_0x9f8c75,_0x516b43);}}[_0x1fd9ed(0x2d9)](_0xd93c52){const _0x1db6bd=_0x1fd9ed;this[_0x1db6bd(0x40e)][_0x1db6bd(0x411)](this[_0x1db6bd(0x297)],_0xd93c52[_0x1db6bd(0x215)]);}[_0x1fd9ed(0x253)](_0x13a20e){const _0x4d8d57=_0x1fd9ed;this[_0x4d8d57(0x40e)]['removeMember'](this[_0x4d8d57(0x297)],_0x13a20e[_0x4d8d57(0x215)][_0x4d8d57(0x378)]);}async[_0x1fd9ed(0x3e4)](_0x47eee0,_0xbc852c){const _0x11b0b2=_0x1fd9ed;if(this[_0x11b0b2(0x34b)]!==0x3||!this['_socket'])throw Error(_0x11b0b2(0x2dd));try{_0x47eee0['eventID']===_0x59a8f1[_0x11b0b2(0x3b8)]&&(this['_scheduleCollaborationTimeoutTimer'](),this[_0x11b0b2(0x344)](_0x47eee0)),this[_0x11b0b2(0x39b)][_0x11b0b2(0x3e4)]({'cmd':_0x525d5f[_0x11b0b2(0x38b)],'routeKey':_0xbc852c,'routeType':'','data':_0x47eee0});}catch(_0x57fc1c){this[_0x11b0b2(0x42c)][_0x11b0b2(0x32c)](_0x57fc1c);}}[_0x1fd9ed(0x346)](){const _0x174eb3=_0x1fd9ed;var _0x592ddf;this[_0x174eb3(0x3a3)]=setTimeout(()=>{const _0x53e7f7=_0x174eb3;this[_0x53e7f7(0x3a3)]=null,this[_0x53e7f7(0x33b)][_0x53e7f7(0x3e1)]({'id':_0x53e7f7(0x421)});},(_0x592ddf=this[_0x174eb3(0x3b0)]['getConfig'](_0x174eb3(0x263)))==null?xt:_0x592ddf);}[_0x1fd9ed(0x257)](){const _0x17cca8=_0x1fd9ed;this[_0x17cca8(0x3a3)]&&(clearTimeout(this['_collaborationTimeoutTimer']),this[_0x17cca8(0x3a3)]=null);}[_0x1fd9ed(0x344)](_0x35f2f5){const _0x20b69e=_0x1fd9ed;if(!this[_0x20b69e(0x39d)])return;let {data:_0x3c0871}=_0x35f2f5,{unitID:_0x4f0e3c,changeset:_0x5318a5}=_0x3c0871,{mutations:_0x374f99,type:_0x492bdf}=_0x5318a5;this[_0x20b69e(0x3d5)]={'unitId':_0x4f0e3c,'type':_0x492bdf,'startTime':performance['now'](),'stopTime':0x0,'duration':0x0,'size':Dt(_0x374f99)};}[_0x1fd9ed(0x479)](){const _0x41c218=_0x1fd9ed;if(this[_0x41c218(0x39d)]){if(!this['_telemetryInfo']){this[_0x41c218(0x42c)]['error'](_0x41c218(0x21a),_0x41c218(0x220));return;}this[_0x41c218(0x3d5)][_0x41c218(0x3f3)]=performance['now'](),this[_0x41c218(0x3d5)][_0x41c218(0x3f5)]=this['_telemetryInfo'][_0x41c218(0x3f3)]-this[_0x41c218(0x3d5)][_0x41c218(0x245)],this[_0x41c218(0x391)]['capture']('collaboration_new_changeset',this['_telemetryInfo']),this[_0x41c218(0x3d5)]=null;}}[_0x1fd9ed(0x42f)](){const _0x1c82a0=_0x1fd9ed;this[_0x1c82a0(0x3d5)]=null;}};It=z([R(0x2,_0x43229d),R(0x3,_0x9f4c9b),R(0x4,_0x567a44(B)),R(0x5,_0x567a44(Mt)),R(0x6,_0x567a44(L)),R(0x7,_0x8f0001(_0x3588a3))],It);const V=_0x2d6602(_0x1fd9ed(0x36c));function Lt(_0x3ddec3){const _0x209b95=_0x1fd9ed;return _0x209b95(0x41e)+_0x3ddec3;}function Rt(_0x5089db){const _0x4aae03=_0x1fd9ed;let {unitID:_0x397d24,mutations:_0x4c21c5}=_0x5089db;return{'unitId':_0x397d24,'subUnitId':_0x4c21c5[_0x4aae03(0x3a1)]>0x0?_0x4c21c5[0x0][_0x4aae03(0x296)][_0x4aae03(0x3e6)]:null};}let zt=class{constructor(_0x384ff1,_0x1a0b7e,_0x58790e){const _0x97ef19=_0x1fd9ed;this[_0x97ef19(0x25d)]=_0x384ff1,this[_0x97ef19(0x387)]=_0x1a0b7e,this[_0x97ef19(0x44d)]=_0x58790e;}[_0x1fd9ed(0x371)](_0x4b1ad0){const _0x1289d2=_0x1fd9ed;var _0x32dced,_0x1d30d1;let _0x413352=this[_0x1289d2(0x25d)][_0x1289d2(0x45a)](_0x5da292),{unitId:_0x263452,subUnitId:_0x168586}=Rt(_0x4b1ad0),_0x39f898=_0x413352==null?void 0x0:_0x413352['getWorkbookSelections'](_0x263452)[_0x1289d2(0x1f6)](),_0x13963e=(_0x32dced=this[_0x1289d2(0x44d)][_0x1289d2(0x356)](_0x263452))==null||(_0x32dced=_0x32dced[_0x1289d2(0x2d5)]())==null?void 0x0:_0x32dced[_0x1289d2(0x322)]();if(_0x39f898[_0x1289d2(0x3a1)]===0x0||!_0x263452||!_0x168586)return;let _0x26d652=[{'id':_0x40956a['id'],'params':{'unitId':_0x263452,'subUnitId':_0x13963e,'selections':_0x45c3d8[_0x1289d2(0x3c0)](_0x39f898)}}],_0x4c1d85=this['_transformService'][_0x1289d2(0x309)](_0x4b1ad0,_0x26d652);if(!_0x4b59ef(_0x4c1d85))throw _0x4c1d85['error'];let _0xd5a153=(_0x1d30d1=_0x4c1d85[_0x1289d2(0x31d)][0x0])==null||(_0x1d30d1=_0x1d30d1[_0x1289d2(0x296)])==null?void 0x0:_0x1d30d1[_0x1289d2(0x405)];if(Array[_0x1289d2(0x23c)](_0xd5a153)&&_0xd5a153[_0x1289d2(0x3a1)]){if(_0xd5a153[_0x1289d2(0x3a1)]===_0x26d652[0x0]['params'][_0x1289d2(0x405)]['length']&&_0xd5a153[_0x1289d2(0x2d1)]((_0x1f52c2,_0x4cbcd0)=>_0x815938[_0x1289d2(0x377)](_0x1f52c2[_0x1289d2(0x456)],_0x26d652[0x0][_0x1289d2(0x296)]['selections'][_0x4cbcd0]['range'])))return;this[_0x1289d2(0x25d)][_0x1289d2(0x45a)](_0x5bccb0)[_0x1289d2(0x311)](_0x40956a['id'],{'unitId':_0x263452,'subUnitId':_0x13963e,'selections':_0xd5a153});}}};zt=z([R(0x0,_0x567a44(_0x129a14)),R(0x1,_0xd875ea),R(0x2,_0x1efd8f)],zt);const H=_0x2d6602(_0x1fd9ed(0x3ce));let Bt=function(_0xf751ee){const _0x2b40b4=_0x1fd9ed;return _0xf751ee[_0xf751ee[_0x2b40b4(0x2e6)]=0x0]=_0x2b40b4(0x2e6),_0xf751ee[_0xf751ee[_0x2b40b4(0x2f6)]=0x1]=_0x2b40b4(0x2f6),_0xf751ee;}({});function Vt(_0x85a1e5){const _0x1309e0=_0x1fd9ed;var _0xfb8257;return!!((_0xfb8257=_0x85a1e5[_0x1309e0(0x296)])!=null&&_0xfb8257[_0x1309e0(0x357)]);}const Ht=new Set([_0x532c8d['id']]),Ut=new Set([_0x17c9d0['id'],_0xcdf1e6['id'],_0x59576f['id'],_0x5252ae['id']]);function Wt(_0x3ad997,_0x42424a=Ht){const _0x4a4b94=_0x1fd9ed;let _0x50c32a=[];for(let _0x2b1314 of _0x3ad997){if(_0x42424a[_0x4a4b94(0x302)](_0x2b1314['id'])){if(_0x50c32a[_0x4a4b94(0x3a1)]>0x0)break;_0x50c32a[_0x4a4b94(0x28a)](_0x2b1314);break;}if(Vt(_0x2b1314)){if(_0x50c32a[_0x4a4b94(0x3a1)]>0x0)break;_0x50c32a[_0x4a4b94(0x28a)](_0x2b1314);break;}_0x50c32a[_0x4a4b94(0x28a)](_0x2b1314);}return _0x50c32a;}function Gt(_0x4b57e5,_0x249b65,_0x17cfe8,_0x3b366b,_0xbde492){const _0x1f9042=_0x1fd9ed;var _0x541674,_0xa2e56e,_0x1b1126,_0x59a3cd;let _0x2b9da6=Wt(_0x4b57e5),_0x24d7c1=(_0x541674=(_0xa2e56e=_0xbde492[_0x1f9042(0x415)]())==null?void 0x0:_0xa2e56e[_0x1f9042(0x269)])==null?_0x1f9042(0x341):_0x541674,_0x3aaffc=(_0x1b1126=(_0x59a3cd=_0xbde492[_0x1f9042(0x415)]())==null?void 0x0:_0x59a3cd['memberID'])==null?_0x1f9042(0x341):_0x1b1126;return{'changeset':{'unitID':_0x249b65,'type':_0x3a24d5(_0x17cfe8[_0x1f9042(0x21b)](_0x249b65)),'baseRev':_0x3b366b[_0x1f9042(0x305)](_0x249b65),'revision':0x0,'userID':_0x24d7c1,'memberID':_0x3aaffc,'mutations':_0x2b9da6},'pendingMutations':_0x4b57e5[_0x1f9042(0x287)](_0x2b9da6[_0x1f9042(0x3a1)])};}const Kt=Gt;function qt(_0x3fb254,_0x296f0d,_0x338d8b,_0x4476dc,_0x5e7d0c){return Gt(_0x3fb254,_0x296f0d,_0x338d8b,_0x4476dc,_0x5e7d0c);}function Jt(_0x2e9d0e,_0x5d4056,_0x4a0029,_0x3deffa,_0xf54b95){const _0x2f700d=_0x1fd9ed;var _0xf6b7b8,_0x2b54ca,_0x44c811,_0x2d4e58;let _0x4a92c3=Wt(_0x2e9d0e,Ut),_0x3ea7e4=(_0xf6b7b8=(_0x2b54ca=_0xf54b95[_0x2f700d(0x415)]())==null?void 0x0:_0x2b54ca[_0x2f700d(0x269)])==null?_0x2f700d(0x341):_0xf6b7b8,_0x16d130=(_0x44c811=(_0x2d4e58=_0xf54b95[_0x2f700d(0x415)]())==null?void 0x0:_0x2d4e58['memberID'])==null?_0x2f700d(0x341):_0x44c811;return{'changeset':{'unitID':_0x5d4056,'type':_0x3a24d5(_0x4a0029[_0x2f700d(0x21b)](_0x5d4056)),'baseRev':_0x3deffa[_0x2f700d(0x305)](_0x5d4056),'revision':0x0,'userID':_0x3ea7e4,'memberID':_0x16d130,'mutations':_0x4a92c3},'pendingMutations':_0x2e9d0e[_0x2f700d(0x287)](_0x4a92c3['length'])};}function Yt(_0x553260,_0x206fa3,_0x76bc4b,_0x6b8f3a,_0x4d5c57){const _0x50b57=_0x1fd9ed;var _0x4e031b,_0x34e8de,_0x14e541,_0x585bec;let _0x13334d=_0x553260[_0x50b57(0x2bd)]((_0x590680,_0xfab273)=>{const _0x33c0ab=_0x50b57;let _0x13bfd0=_0x590680[_0x590680[_0x33c0ab(0x3a1)]-0x1],{id:_0x555cdf}=_0x13bfd0==null?{}:_0x13bfd0,{id:_0x2f7b90,type:_0xb55e77}=_0xfab273,_0x279d08=_0xfab273[_0x33c0ab(0x296)];if(_0x555cdf&&_0x555cdf!==_0x2f7b90)throw Error('Cannot\x20assemble\x20a\x20changeset\x20from\x20multiple\x20mutations\x20of\x20different\x20types:\x20'+_0x555cdf+_0x33c0ab(0x386)+_0x2f7b90+'.');if(!_0x13bfd0)return[{'id':_0x2f7b90,'type':_0xb55e77,'params':{'unitId':_0x279d08[_0x33c0ab(0x3ec)],'textRanges':_0x279d08['textRanges'],'actions':_0x279d08[_0x33c0ab(0x282)]}}];let _0x1eb4b9=_0x13bfd0[_0x33c0ab(0x296)];return Xt(_0x1eb4b9['actions'],_0x279d08[_0x33c0ab(0x282)])?[..._0x590680[_0x33c0ab(0x287)](0x0,-0x1),{..._0x13bfd0,'id':_0x2f7b90,'type':_0xb55e77,'params':{'unitId':_0x279d08[_0x33c0ab(0x3ec)],'textRanges':_0x279d08[_0x33c0ab(0x2fa)],'actions':_0x13dd73['compose'](_0x1eb4b9[_0x33c0ab(0x282)],_0x279d08[_0x33c0ab(0x282)])}}]:[..._0x590680,{'id':_0x2f7b90,'type':_0xb55e77,'params':{'unitId':_0x279d08['unitId'],'textRanges':_0x279d08[_0x33c0ab(0x2fa)],'actions':_0x279d08['actions']}}];},[]),_0x26293a=(_0x4e031b=(_0x34e8de=_0x4d5c57[_0x50b57(0x415)]())==null?void 0x0:_0x34e8de['userID'])==null?_0x50b57(0x341):_0x4e031b,_0x34d0d3=(_0x14e541=(_0x585bec=_0x4d5c57[_0x50b57(0x415)]())==null?void 0x0:_0x585bec[_0x50b57(0x378)])==null?'unknown':_0x14e541;return{'changeset':{'unitID':_0x206fa3,'type':_0x3a24d5(_0x76bc4b[_0x50b57(0x21b)](_0x206fa3)),'baseRev':_0x6b8f3a['getCurrentRevOfUnit'](_0x206fa3),'revision':0x0,'userID':_0x26293a,'memberID':_0x34d0d3,'mutations':_0x13334d},'pendingMutations':_0x553260[_0x50b57(0x287)](_0x553260[_0x50b57(0x3a1)])};}function Xt(_0x119bfb,_0x5821c6){return Zt(_0x119bfb)&&Zt(_0x5821c6)&&!Qt(_0x119bfb)&&!Qt(_0x5821c6);}function Zt(_0x248656){const _0x23d269=_0x1fd9ed;return $t(_0x248656)[_0x23d269(0x27c)](_0x56491c=>en(_0x56491c)&&_0x56491c['et']===_0x23d269(0x26c));}function Qt(_0x9550a3){const _0x1b2dec=_0x1fd9ed;return $t(_0x9550a3)[_0x1b2dec(0x27c)](_0x4da3bc=>Array['isArray'](_0x4da3bc)||typeof _0x4da3bc==_0x1b2dec(0x321)||typeof _0x4da3bc==_0x1b2dec(0x20a));}function $t(_0x596f1c){const _0x15feac=_0x1fd9ed;if(!Array[_0x15feac(0x23c)](_0x596f1c))return[];let _0x1e7262=_0x596f1c[_0x15feac(0x412)]('body')?_0x596f1c:_0x596f1c['find'](_0x3e75b0=>Array[_0x15feac(0x23c)](_0x3e75b0)&&_0x3e75b0[_0x15feac(0x412)](_0x15feac(0x264)));if(!Array[_0x15feac(0x23c)](_0x1e7262))return[];let _0x3e8da2=_0x1e7262[_0x15feac(0x310)](_0x15feac(0x264));return _0x3e8da2===-0x1?[]:_0x1e7262[_0x15feac(0x287)](_0x3e8da2+0x1);}function en(_0x5ccebc){const _0x392d24=_0x1fd9ed;return typeof _0x5ccebc==_0x392d24(0x201)&&!!_0x5ccebc&&!Array['isArray'](_0x5ccebc);}function tn(_0x361ff6,_0xd015af){const _0x117679=_0x1fd9ed;let _0x3d2fe0=new _0x27c1fd(0x1);return setTimeout(()=>_0x3d2fe0['next'](_0xd015af),_0x361ff6),_0x3d2fe0[_0x117679(0x2bb)]()['pipe'](_0x213f84(0x1));}var nn,rn,an;let on=function(_0x4eb146){const _0x2113ba=_0x1fd9ed;return _0x4eb146[_0x2113ba(0x478)]=_0x2113ba(0x2b4),_0x4eb146[_0x2113ba(0x3ad)]='synced',_0x4eb146[_0x2113ba(0x35d)]='pending',_0x4eb146[_0x2113ba(0x3c4)]=_0x2113ba(0x205),_0x4eb146[_0x2113ba(0x2f4)]=_0x2113ba(0x1fd),_0x4eb146[_0x2113ba(0x42b)]=_0x2113ba(0x466),_0x4eb146[_0x2113ba(0x442)]=_0x2113ba(0x46c),_0x4eb146['OFFLINE']=_0x2113ba(0x3dc),_0x4eb146;}({});const sn=0x4e20,cn=0x2bf20;var U=class{constructor(_0x3826e4,_0x3bdd5b,_0x301b45,_0x28c0f3,_0x407bc5,_0x107ff8,_0x284680,_0x5476e2,_0x3f545b){const _0x25ede6=_0x1fd9ed;this['unitID']=_0x3826e4,this['type']=_0x3bdd5b,this['_handler']=_0x407bc5,this[_0x25ede6(0x2dc)]=_0x107ff8,this[_0x25ede6(0x1f9)]=_0x284680,this[_0x25ede6(0x210)]=_0x5476e2,this[_0x25ede6(0x45f)]=_0x3f545b,I(this,_0x25ede6(0x2b1),null),I(this,_0x25ede6(0x34d),[]),this['_awaitingChangeset']=_0x301b45,this[_0x25ede6(0x34d)]=_0x28c0f3;}[_0x1fd9ed(0x376)](_0x22b491){const _0x262bdc=_0x1fd9ed;let _0x344cc9=this['_revisionService']['getCurrentRevOfUnit'](this[_0x262bdc(0x216)]);return _0x22b491[_0x262bdc(0x449)]>_0x344cc9+0x1?(this[_0x262bdc(0x3c9)]['onMissingChangesets']({'from':_0x344cc9,'to':_0x22b491['revision']-0x1}),!0x0):!0x1;}[_0x1fd9ed(0x398)](_0x1dbf17){const _0x2973d1=_0x1fd9ed;this[_0x2973d1(0x1f9)][_0x2973d1(0x352)](this[_0x2973d1(0x216)],_0x1dbf17);}['_transformSelections'](_0x3df670){const _0xf68b9b=_0x1fd9ed;var _0x58dd66,_0x41f821;(_0x58dd66=(_0x41f821=this['_handler'])['onTransformSelections'])==null||_0x58dd66[_0xf68b9b(0x420)](_0x41f821,_0x3df670);}[_0x1fd9ed(0x221)](_0x59c39c){const _0x583003=_0x1fd9ed;var _0x2d2cf9,_0x28ea5b;return(_0x2d2cf9=(_0x28ea5b=this['_handler'])[_0x583003(0x32f)])==null?void 0x0:_0x2d2cf9[_0x583003(0x420)](_0x28ea5b,_0x59c39c);}[_0x1fd9ed(0x436)](_0x3e26da){const _0x4fcf9f=_0x1fd9ed;var _0x55c14e,_0x509e1c;return(_0x55c14e=(_0x509e1c=this['_handler'])[_0x4fcf9f(0x2c7)])==null?void 0x0:_0x55c14e[_0x4fcf9f(0x420)](_0x509e1c,_0x3e26da);}[_0x1fd9ed(0x2d3)](_0x3a42d0){const _0x7c47c4=_0x1fd9ed;var _0x3fe215,_0x38c520,_0x278ede;return(_0x3fe215=(_0x38c520=(_0x278ede=this[_0x7c47c4(0x3c9)])[_0x7c47c4(0x2e0)])==null?void 0x0:_0x38c520['call'](_0x278ede,_0x3a42d0))==null?_0x3a42d0:_0x3fe215;}['_transformRemoteChangesetByStateCache'](_0x146654){const _0x34d515=_0x1fd9ed;var _0x1ba97b,_0xc9af1f,_0x13a12f;return(_0x1ba97b=(_0xc9af1f=(_0x13a12f=this[_0x34d515(0x3c9)])[_0x34d515(0x223)])==null?void 0x0:_0xc9af1f['call'](_0x13a12f,_0x146654))==null?_0x146654:_0x1ba97b;}['_syncEditingCollabCursor'](_0x467911){const _0x264a25=_0x1fd9ed;if(this['type']===_0x10286b[_0x264a25(0x1ff)]){let {unitID:_0x55467d,mutations:_0x352ca4,memberID:_0x38b3c8}=_0x467911,_0x5339a1=_0x352ca4[_0x264a25(0x3a1)]>0x0?_0x352ca4[0x0][_0x264a25(0x296)]['textRanges']:[];if(Array['isArray'](_0x5339a1)&&_0x5339a1['length']>0x0){var _0x409c15,_0x940052;(_0x409c15=(_0x940052=this[_0x264a25(0x3c9)])['onSyncEditingCollabCursor'])==null||_0x409c15[_0x264a25(0x420)](_0x940052,{'unitID':_0x55467d,'memberID':_0x38b3c8,'textRanges':_0x5339a1});}}}[_0x1fd9ed(0x3f6)](){const _0x17aa55=_0x1fd9ed;var _0x5475c7;(_0x5475c7=this['_localCacheService'])==null||_0x5475c7[_0x17aa55(0x2cc)](this[_0x17aa55(0x216)],this[_0x17aa55(0x247)],this[_0x17aa55(0x2b1)],this[_0x17aa55(0x34d)]);}[_0x1fd9ed(0x43c)](){const _0x42da8a=_0x1fd9ed;return this['_revisionService'][_0x42da8a(0x305)](this[_0x42da8a(0x216)]);}[_0x1fd9ed(0x406)](){const _0x180dd1=_0x1fd9ed;this[_0x180dd1(0x210)]['incrementRevOfUnit'](this[_0x180dd1(0x216)]);}[_0x1fd9ed(0x3fb)](_0x36e419){const _0x51950c=_0x1fd9ed;let _0x4b1838=this['_transformRemoteChangesetByIMECache'](_0x36e419);_0x4b1838=this[_0x51950c(0x3b4)](_0x4b1838);let _0x464235=_0x1aab5f(_0x4b1838[_0x51950c(0x3b2)],this[_0x51950c(0x2dc)],{'fromCollab':!0x0});if(!_0x464235[_0x51950c(0x24a)]){var _0x5c05f1;throw _0x464235[_0x51950c(0x32c)]instanceof Error?_0x464235[_0x51950c(0x32c)]:Error((_0x5c05f1=_0x464235[_0x51950c(0x32c)])==null?'[CollaborationState]:\x20apply\x20error!':_0x5c05f1);}this[_0x51950c(0x221)](_0x4b1838),this['_transformStateCache'](_0x4b1838),this[_0x51950c(0x398)](_0x36e419),this[_0x51950c(0x283)](_0x4b1838),this[_0x51950c(0x212)](_0x4b1838),this['_incrementRevisionNumber']();}};let W=class extends U{constructor(_0x297432,_0x551234,_0x23402d,_0x279a10,_0x380167,_0x283982,_0x2e47c3,_0x494fe2,_0x18de06,_0x2d74fb){const _0x5bda67=_0x1fd9ed;super(_0x297432,_0x551234,null,[],_0x23402d,_0x2e47c3,_0x283982,_0x279a10,_0x2d74fb),this[_0x5bda67(0x25d)]=_0x380167,this['_logService']=_0x494fe2,this[_0x5bda67(0x387)]=_0x18de06,this[_0x5bda67(0x2ee)]=_0x2d74fb,I(this,_0x5bda67(0x276),_0x5bda67(0x2da));}['appendMutation'](_0x470fba){const _0x433ff5=_0x1fd9ed;let _0x4ca453=this['_injector'][_0x433ff5(0x2de)](G,this[_0x433ff5(0x216)],this[_0x433ff5(0x247)],[_0x470fba],this[_0x433ff5(0x3c9)]);return _0x4ca453[_0x433ff5(0x3d6)](),_0x4ca453[_0x433ff5(0x3f6)](),_0x4ca453;}[_0x1fd9ed(0x2e2)](_0x2db972){const _0x35eeeb=_0x1fd9ed;if(this[_0x35eeeb(0x376)](_0x2db972))return this['_injector'][_0x35eeeb(0x2de)](X,this['unitID'],this[_0x35eeeb(0x247)],null,[],null,[_0x2db972],this['_handler']);try{let _0x4f0409=this[_0x35eeeb(0x387)][_0x35eeeb(0x309)](_0x2db972,[_0x46916c]);if(_0x4b59ef(_0x4f0409)){let {c1Prime:_0x3d2654}=_0x4f0409;return this['_executeRemoteChangeset'](_0x3d2654),this;}throw _0x4f0409['error'];}catch(_0x4a4af2){return this[_0x35eeeb(0x42c)]['error'](_0x4a4af2),this[_0x35eeeb(0x2c9)](!0x1);}}[_0x1fd9ed(0x2c9)](_0x1f3868){const _0x108f65=_0x1fd9ed;return this[_0x108f65(0x25d)][_0x108f65(0x2de)](J,this[_0x108f65(0x216)],this[_0x108f65(0x247)],null,[],this[_0x108f65(0x3c9)],_0x1f3868);}['onRemoteAck'](_0x57a426){const _0x4073a1=_0x1fd9ed;if(_0x57a426[_0x4073a1(0x449)]<=this['_getCurrentRevision']())return this;throw Error(_0x4073a1(0x38e));}[_0x1fd9ed(0x2db)](){const _0x5c99f5=_0x1fd9ed;throw Error(_0x5c99f5(0x407));}[_0x1fd9ed(0x23b)](){return this;}[_0x1fd9ed(0x1f2)](){const _0x19aa1d=_0x1fd9ed;return this['_injector'][_0x19aa1d(0x2de)](Y,this[_0x19aa1d(0x216)],this[_0x19aa1d(0x247)],null,[],this[_0x19aa1d(0x3c9)]);}[_0x1fd9ed(0x37f)](){return this;}[_0x1fd9ed(0x258)](){const _0xf5bf82=_0x1fd9ed;throw Error(_0xf5bf82(0x22e));}[_0x1fd9ed(0x28d)](){const _0x172fad=_0x1fd9ed;let _0x262b9e=this[_0x172fad(0x210)][_0x172fad(0x305)](this[_0x172fad(0x216)]);return this['_handler'][_0x172fad(0x20f)]({'from':_0x262b9e,'to':0x0}),this['_injector']['createInstance'](X,this['unitID'],this['type'],null,[],null,[],this[_0x172fad(0x3c9)]);}};W=z([R(0x3,_0x567a44(_0x351861)),R(0x4,_0x567a44(_0x129a14)),R(0x5,_0x12e59b),R(0x6,_0x5bccb0),R(0x7,_0x43229d),R(0x8,_0xd875ea),R(0x9,_0x8f0001(V))],W);let G=nn=class extends U{constructor(_0x212f8d,_0x273a88,_0x25eab3,_0x315185,_0x4d1812,_0x4c4203,_0x53b0b5,_0x5a20d8,_0x434e67,_0x39566c,_0x345258,_0x3ec99a,_0x2c0c04,_0xb50ded){const _0x145e1e=_0x1fd9ed;super(_0x212f8d,_0x273a88,null,_0x25eab3,_0x315185,_0x434e67,_0x2c0c04,_0x4c4203,_0xb50ded),this[_0x145e1e(0x25d)]=_0x4d1812,this[_0x145e1e(0x40e)]=_0x53b0b5,this[_0x145e1e(0x42c)]=_0x5a20d8,this['_configService']=_0x39566c,this[_0x145e1e(0x387)]=_0x345258,this[_0x145e1e(0x250)]=_0x3ec99a,I(this,_0x145e1e(0x276),_0x145e1e(0x333)),I(this,_0x145e1e(0x3bf),null),I(this,_0x145e1e(0x299),null);}[_0x1fd9ed(0x2ed)](_0x492646){const _0x5af45e=_0x1fd9ed;return this[_0x5af45e(0x34d)]['push'](_0x492646),this['_updateLocalCache'](),this;}['onRemoteChangeset'](_0x14661e){const _0x51594=_0x1fd9ed;if(this[_0x51594(0x376)](_0x14661e))return this[_0x51594(0x37a)](),this[_0x51594(0x25d)][_0x51594(0x2de)](X,this[_0x51594(0x216)],this[_0x51594(0x247)],null,this['_pendingMutations'],null,[_0x14661e],this['_handler']);try{let _0x2980ee=this['_transformService']['transformMutationsWithChangeset'](_0x14661e,this[_0x51594(0x34d)]);if(_0x4b59ef(_0x2980ee)){let {c1Prime:_0x3a562d,m2Prime:_0x15fdaa}=_0x2980ee;this[_0x51594(0x3fb)](_0x3a562d);let _0x33120f=this[_0x51594(0x25d)]['createInstance'](nn,this[_0x51594(0x216)],this[_0x51594(0x247)],_0x15fdaa,this['_handler']);this[_0x51594(0x37a)]();let _0x4de303=new Date()[_0x51594(0x294)](),_0x4d1fe4=this[_0x51594(0x3bf)]?Math[_0x51594(0x392)](this[_0x51594(0x3bf)]-_0x4de303,0x0):this[_0x51594(0x444)]();return _0x33120f[_0x51594(0x3d6)](_0x4d1fe4),_0x33120f;}throw _0x2980ee[_0x51594(0x32c)];}catch(_0x41e037){return this['_logService'][_0x51594(0x32c)](_0x41e037),this['_onConflict'](!0x1);}}[_0x1fd9ed(0x20c)](_0x4389e3){const _0x57b6bc=_0x1fd9ed;if(_0x4389e3[_0x57b6bc(0x449)]<=this['_getCurrentRevision']())return this;throw Error('[PendingState]:\x20received\x20acknowledgement.');}[_0x1fd9ed(0x2db)](){const _0x18fad7=_0x1fd9ed;throw Error(_0x18fad7(0x268));}['onRemoteRetry'](){return this;}[_0x1fd9ed(0x1f2)](){const _0x10dea4=_0x1fd9ed;return this[_0x10dea4(0x37a)](),this[_0x10dea4(0x25d)][_0x10dea4(0x2de)](Y,this[_0x10dea4(0x216)],this[_0x10dea4(0x247)],null,this['_pendingMutations'],this['_handler']);}[_0x1fd9ed(0x37f)](){return this;}[_0x1fd9ed(0x3d6)](_0x3eae0b){const _0x2d79c9=_0x1fd9ed;let _0x356ae3=_0x3eae0b==null?this[_0x2d79c9(0x444)]():_0x3eae0b;this[_0x2d79c9(0x3bf)]=new Date()[_0x2d79c9(0x294)]()+_0x356ae3,this['_sendingTimer']=setTimeout(()=>{const _0x1e86a3=_0x2d79c9;this[_0x1e86a3(0x37a)]();let _0x2e23a2=null;switch(this[_0x1e86a3(0x247)]){case _0x10286b['UNIVER_SHEET']:_0x2e23a2=Kt(this[_0x1e86a3(0x34d)],this[_0x1e86a3(0x216)],this[_0x1e86a3(0x250)],this[_0x1e86a3(0x210)],this['_memberService']);break;case _0x10286b[_0x1e86a3(0x1ff)]:_0x2e23a2=this[_0x1e86a3(0x34d)][_0x1e86a3(0x2d1)](_0x388db6=>_0x388db6['id']===_0x40b38f['id'])?Yt(this['_pendingMutations'],this['unitID'],this[_0x1e86a3(0x250)],this[_0x1e86a3(0x210)],this['_memberService']):Kt(this[_0x1e86a3(0x34d)],this[_0x1e86a3(0x216)],this[_0x1e86a3(0x250)],this['_revisionService'],this[_0x1e86a3(0x40e)]);break;case _0x10286b[_0x1e86a3(0x2b0)]:_0x2e23a2=Jt(this['_pendingMutations'],this[_0x1e86a3(0x216)],this[_0x1e86a3(0x250)],this[_0x1e86a3(0x210)],this[_0x1e86a3(0x40e)]);break;case _0x10286b['UNIVER_BASE']:_0x2e23a2=qt(this['_pendingMutations'],this[_0x1e86a3(0x216)],this[_0x1e86a3(0x250)],this[_0x1e86a3(0x210)],this[_0x1e86a3(0x40e)]);break;default:throw Error(_0x1e86a3(0x23e)+this['type']+_0x1e86a3(0x345));}let {changeset:_0x584b4d,pendingMutations:_0x3ff3a9}=_0x2e23a2;this[_0x1e86a3(0x3c9)]['onSendChangeset'](_0x584b4d);let _0xec1f01=_0x3ff3a9[_0x1e86a3(0x3a1)]?this[_0x1e86a3(0x25d)]['createInstance'](q,this[_0x1e86a3(0x216)],this[_0x1e86a3(0x247)],_0x584b4d,_0x3ff3a9,this['_handler'],void 0x0):this['_injector'][_0x1e86a3(0x2de)](K,this[_0x1e86a3(0x216)],this['type'],_0x584b4d,this[_0x1e86a3(0x3c9)]);_0xec1f01[_0x1e86a3(0x3f6)](),this[_0x1e86a3(0x3c9)]['onStateChange'](this,_0xec1f01);},_0x356ae3);}[_0x1fd9ed(0x444)](){const _0x534040=_0x1fd9ed;var _0x42e61c;let _0x566b32=this[_0x534040(0x3b0)][_0x534040(0x349)](F);return(_0x42e61c=_0x566b32==null?void 0x0:_0x566b32[_0x534040(0x43a)])==null?0x7d0:_0x42e61c;}['resend'](){throw Error('[PendingState]:\x20invalid\x20calling\x20to\x20`resend`.');}[_0x1fd9ed(0x37a)](){const _0x3859c6=_0x1fd9ed;this[_0x3859c6(0x299)]!=null&&(clearTimeout(this[_0x3859c6(0x299)]),this[_0x3859c6(0x299)]=null);}[_0x1fd9ed(0x2c9)](_0x50910f){const _0x485331=_0x1fd9ed;return this[_0x485331(0x37a)](),this[_0x485331(0x25d)][_0x485331(0x2de)](J,this[_0x485331(0x216)],this['type'],null,this[_0x485331(0x34d)],this['_handler'],_0x50910f);}};G=nn=z([R(0x4,_0x567a44(_0x129a14)),R(0x5,_0x567a44(_0x351861)),R(0x6,_0x567a44(B)),R(0x7,_0x43229d),R(0x8,_0x5bccb0),R(0x9,_0x9f4c9b),R(0xa,_0xd875ea),R(0xb,_0x1efd8f),R(0xc,_0x12e59b),R(0xd,_0x8f0001(V))],G);let K=rn=class extends U{constructor(_0x571673,_0x4972dd,_0x10f907,_0xb058b7,_0x559346,_0x4b24f9,_0x2a1bf1,_0x5e5fcd,_0xf62d60,_0x33066b,_0xb4f077){const _0x17d009=_0x1fd9ed;super(_0x571673,_0x4972dd,_0x10f907,[],_0xb058b7,_0x2a1bf1,_0x33066b,_0x4b24f9,_0xb4f077),this[_0x17d009(0x25d)]=_0x559346,this[_0x17d009(0x42c)]=_0x5e5fcd,this[_0x17d009(0x387)]=_0xf62d60,I(this,'status','awaiting'),I(this,_0x17d009(0x2e8),0x0),I(this,_0x17d009(0x25a),0x0),I(this,_0x17d009(0x368),void 0x0),I(this,_0x17d009(0x3bb),void 0x0);}[_0x1fd9ed(0x2ed)](_0x54d2b7){const _0x7ca0bd=_0x1fd9ed;this[_0x7ca0bd(0x37a)]();let _0x2e9960=this[_0x7ca0bd(0x25d)][_0x7ca0bd(0x2de)](q,this[_0x7ca0bd(0x216)],this['type'],this[_0x7ca0bd(0x2b1)],[_0x54d2b7],this[_0x7ca0bd(0x3c9)],this['_resendTimer']);return _0x2e9960[_0x7ca0bd(0x3f6)](),_0x2e9960;}[_0x1fd9ed(0x2e2)](_0x58d314){const _0x4fbdbd=_0x1fd9ed;if(this[_0x4fbdbd(0x376)](_0x58d314))return this['_clearScheduledTask'](),this[_0x4fbdbd(0x25d)][_0x4fbdbd(0x2de)](X,this[_0x4fbdbd(0x216)],this[_0x4fbdbd(0x247)],this[_0x4fbdbd(0x2b1)],[],null,[_0x58d314],this[_0x4fbdbd(0x3c9)]);try{let _0x293427=this[_0x4fbdbd(0x387)][_0x4fbdbd(0x20b)]([_0x58d314],[this[_0x4fbdbd(0x2b1)]],!0x1);if(_0x7e6bf8(_0x293427)){let {c1Prime:_0x2faf3a,c2Prime:_0x119729}=_0x293427;this[_0x4fbdbd(0x3fb)](_0x2faf3a[0x0]),_0x119729[0x0][_0x4fbdbd(0x41b)]=this['_getCurrentRevision'](),this[_0x4fbdbd(0x37a)]();let _0x2a96a0=this['_injector'][_0x4fbdbd(0x2de)](rn,this[_0x4fbdbd(0x216)],this[_0x4fbdbd(0x247)],_0x119729[0x0],this[_0x4fbdbd(0x3c9)]);return _0x2a96a0[_0x4fbdbd(0x3f6)](),_0x2a96a0;}throw _0x293427[_0x4fbdbd(0x32c)];}catch(_0x385638){return this[_0x4fbdbd(0x42c)][_0x4fbdbd(0x32c)](_0x385638),this[_0x4fbdbd(0x2c9)](!0x1);}}[_0x1fd9ed(0x20c)](_0x90bf90){const _0x4b3f20=_0x1fd9ed;this['_clearScheduledTask']();let _0x2c40b4=this[_0x4b3f20(0x210)][_0x4b3f20(0x305)](this['unitID']);if(_0x90bf90[_0x4b3f20(0x449)]<=_0x2c40b4)return this;if(this[_0x4b3f20(0x376)](_0x90bf90))return this[_0x4b3f20(0x25d)][_0x4b3f20(0x2de)](X,this[_0x4b3f20(0x216)],this['type'],this[_0x4b3f20(0x2b1)],[],_0x90bf90[_0x4b3f20(0x449)],[],this['_handler']);this[_0x4b3f20(0x406)]();let _0x84d306=this[_0x4b3f20(0x25d)][_0x4b3f20(0x2de)](W,this[_0x4b3f20(0x216)],this['type'],this['_handler']);return _0x84d306[_0x4b3f20(0x3f6)](),_0x84d306;}[_0x1fd9ed(0x2db)](_0xa9f7a0){const _0x54a1db=_0x1fd9ed;return this[_0x54a1db(0x2c9)](!!(_0xa9f7a0!=null&&_0xa9f7a0[_0x54a1db(0x3a5)]));}[_0x1fd9ed(0x23b)](_0x21b344){const _0x46fdf8=_0x1fd9ed;return this[_0x46fdf8(0x25a)]>cn?this[_0x46fdf8(0x1f2)]():(this[_0x46fdf8(0x368)]=tn(this['_resendTimeout'],{'timeout':this[_0x46fdf8(0x2e8)],'reqId':_0x21b344[_0x46fdf8(0x29d)]}),this[_0x46fdf8(0x3bb)]=this[_0x46fdf8(0x368)][_0x46fdf8(0x3f9)](({reqId:_0x5bcf8f,timeout:_0x484fa3})=>{const _0x2d0619=_0x46fdf8;this[_0x2d0619(0x3f8)](_0x5bcf8f,_0x484fa3);}),this);}['toggleOffline'](){const _0x4d793f=_0x1fd9ed;return this[_0x4d793f(0x37a)](),this['_injector']['createInstance'](Y,this[_0x4d793f(0x216)],this[_0x4d793f(0x247)],this['_awaitingChangeset'],[],this['_handler']);}['toggleOnline'](){return this;}['resend'](){const _0x564de0=_0x1fd9ed;this[_0x564de0(0x3c9)][_0x564de0(0x32d)](this['_awaitingChangeset']);}[_0x1fd9ed(0x2c9)](_0x47a441){const _0x344614=_0x1fd9ed;return this[_0x344614(0x37a)](),this[_0x344614(0x25d)][_0x344614(0x2de)](J,this[_0x344614(0x216)],this[_0x344614(0x247)],this[_0x344614(0x2b1)],[],this[_0x344614(0x3c9)],_0x47a441);}[_0x1fd9ed(0x3f8)](_0x46736e,_0x9afa5e){const _0x687a55=_0x1fd9ed;var _0x500fc0;_0x46736e===((_0x500fc0=this[_0x687a55(0x2b1)])==null?void 0x0:_0x500fc0['reqId'])&&(this[_0x687a55(0x258)](),this[_0x687a55(0x2e8)]=_0x9afa5e===0x0?0x3e8:Math['min'](_0x9afa5e*0x2,sn),this['_maxTotalRetryTimeout']+=this[_0x687a55(0x2e8)]);}[_0x1fd9ed(0x37a)](){const _0x2472d1=_0x1fd9ed;var _0x5e70b2;(_0x5e70b2=this[_0x2472d1(0x3bb)])==null||_0x5e70b2[_0x2472d1(0x20d)](),this['_resendTimeout']=0x0,this[_0x2472d1(0x25a)]=0x0;}};K=rn=z([R(0x4,_0x567a44(_0x129a14)),R(0x5,_0x567a44(_0x351861)),R(0x6,_0x5bccb0),R(0x7,_0x43229d),R(0x8,_0xd875ea),R(0x9,_0x12e59b),R(0xa,_0x8f0001(V))],K);let q=an=class extends U{constructor(_0xcd0c92,_0x6ff6ba,_0x481595,_0x3e0ece,_0x349582,_0x575598,_0x47b432,_0x288143,_0x4474d8,_0x1f45a6,_0x2c61b7,_0x266357,_0x593d9e){const _0x354d1e=_0x1fd9ed;super(_0xcd0c92,_0x6ff6ba,_0x481595,_0x3e0ece,_0x349582,_0x4474d8,_0x266357,_0x288143,_0x593d9e),this[_0x354d1e(0x25d)]=_0x47b432,this[_0x354d1e(0x42c)]=_0x1f45a6,this['_transformService']=_0x2c61b7,this['localCacheService']=_0x593d9e,I(this,'status',_0x354d1e(0x1fd)),I(this,_0x354d1e(0x2e8),0x0),I(this,_0x354d1e(0x25a),0x0),I(this,_0x354d1e(0x368),void 0x0),I(this,_0x354d1e(0x3bb),void 0x0),_0x575598&&(this[_0x354d1e(0x368)]=_0x575598,this[_0x354d1e(0x3bb)]=this['_resendTimer'][_0x354d1e(0x3f9)](({reqId:_0x1e11b2,timeout:_0x2a1b08})=>{const _0x232fdc=_0x354d1e;this[_0x232fdc(0x3f8)](_0x1e11b2,_0x2a1b08);}));}[_0x1fd9ed(0x2ed)](_0x5450e8){const _0x7721be=_0x1fd9ed;return this[_0x7721be(0x34d)][_0x7721be(0x28a)](_0x5450e8),this;}[_0x1fd9ed(0x2e2)](_0x2edfbe){const _0x67348c=_0x1fd9ed;if(this['_checkMissing'](_0x2edfbe))return this[_0x67348c(0x37a)](),this[_0x67348c(0x25d)][_0x67348c(0x2de)](X,this[_0x67348c(0x216)],this['type'],this[_0x67348c(0x2b1)],this['_pendingMutations'],null,[_0x2edfbe],this[_0x67348c(0x3c9)]);try{let _0x4c3459=this[_0x67348c(0x387)][_0x67348c(0x20b)]([_0x2edfbe],[this[_0x67348c(0x2b1)]],!0x1);if(_0x7e6bf8(_0x4c3459)){let {c1Prime:_0x41f25a,c2Prime:_0x2e70da}=_0x4c3459,_0x2e9f7a=this[_0x67348c(0x387)]['transformMutationsWithChangeset'](_0x41f25a[0x0],this[_0x67348c(0x34d)]);if(_0x4b59ef(_0x2e9f7a)){let {c1Prime:_0x569427,m2Prime:_0x4eeac1}=_0x2e9f7a;return this[_0x67348c(0x3fb)](_0x569427),_0x2e70da[0x0][_0x67348c(0x41b)]=this['_getCurrentRevision'](),this[_0x67348c(0x37a)](),this[_0x67348c(0x25d)][_0x67348c(0x2de)](an,this[_0x67348c(0x216)],this[_0x67348c(0x247)],_0x2e70da[0x0],_0x4eeac1,this[_0x67348c(0x3c9)],void 0x0);}throw _0x2e9f7a[_0x67348c(0x32c)];}throw _0x4c3459[_0x67348c(0x32c)];}catch(_0x23301d){return this['_logService']['error'](_0x23301d),this[_0x67348c(0x2c9)](!0x1);}}[_0x1fd9ed(0x20c)](_0x544aca){const _0x5e2f28=_0x1fd9ed;this[_0x5e2f28(0x37a)]();let _0x5560a2=this[_0x5e2f28(0x43c)]();if(_0x544aca[_0x5e2f28(0x449)]<=_0x5560a2)return this;if(this[_0x5e2f28(0x376)](_0x544aca))return this[_0x5e2f28(0x25d)][_0x5e2f28(0x2de)](X,this[_0x5e2f28(0x216)],this[_0x5e2f28(0x247)],this[_0x5e2f28(0x2b1)],this[_0x5e2f28(0x34d)],_0x544aca[_0x5e2f28(0x449)],[],this[_0x5e2f28(0x3c9)]);this[_0x5e2f28(0x406)]();let _0x1a89ef=this[_0x5e2f28(0x25d)][_0x5e2f28(0x2de)](G,this[_0x5e2f28(0x216)],this[_0x5e2f28(0x247)],this[_0x5e2f28(0x34d)],this[_0x5e2f28(0x3c9)]);return _0x1a89ef[_0x5e2f28(0x3d6)](),_0x1a89ef[_0x5e2f28(0x3f6)](),_0x1a89ef;}[_0x1fd9ed(0x2db)](_0x7d8e6e){const _0x2f55d3=_0x1fd9ed;return this[_0x2f55d3(0x2c9)](!!(_0x7d8e6e!=null&&_0x7d8e6e['isPermissionRej']));}['onRemoteRetry'](_0x2edc14){const _0x104276=_0x1fd9ed;return this[_0x104276(0x25a)]>cn?this[_0x104276(0x1f2)]():(this[_0x104276(0x368)]=tn(this['_resendTimeout'],{'timeout':this[_0x104276(0x2e8)],'reqId':_0x2edc14[_0x104276(0x29d)]}),this[_0x104276(0x3bb)]=this[_0x104276(0x368)]['subscribe'](({reqId:_0x4051ef,timeout:_0x1f58d3})=>{const _0x504a2d=_0x104276;this[_0x504a2d(0x3f8)](_0x4051ef,_0x1f58d3);}),this);}[_0x1fd9ed(0x1f2)](){const _0x2794cc=_0x1fd9ed;return this['_clearScheduledTask'](),this[_0x2794cc(0x25d)]['createInstance'](Y,this[_0x2794cc(0x216)],this['type'],this[_0x2794cc(0x2b1)],this[_0x2794cc(0x34d)],this['_handler']);}[_0x1fd9ed(0x37f)](){return this;}[_0x1fd9ed(0x258)](){this['_handler']['onSendChangeset'](this['_awaitingChangeset']);}['_onConflict'](_0x3409f7){const _0x3bc447=_0x1fd9ed;return this[_0x3bc447(0x37a)](),this['_injector']['createInstance'](J,this[_0x3bc447(0x216)],this[_0x3bc447(0x247)],null,this[_0x3bc447(0x34d)],this[_0x3bc447(0x3c9)],_0x3409f7);}[_0x1fd9ed(0x3f8)](_0x2f8ee5,_0x58baa3){const _0x1f2460=_0x1fd9ed;var _0x14f802;_0x2f8ee5===((_0x14f802=this[_0x1f2460(0x2b1)])==null?void 0x0:_0x14f802[_0x1f2460(0x29d)])&&(this[_0x1f2460(0x258)](),this['_resendTimeout']=_0x58baa3===0x0?0x3e8:Math[_0x1f2460(0x255)](_0x58baa3*0x2,sn),this[_0x1f2460(0x25a)]+=this['_resendTimeout']);}[_0x1fd9ed(0x37a)](){const _0x5a5d36=_0x1fd9ed;var _0x11906d;(_0x11906d=this[_0x5a5d36(0x3bb)])==null||_0x11906d[_0x5a5d36(0x20d)](),this['_resendTimeout']=0x0,this[_0x5a5d36(0x25a)]=0x0;}};q=an=z([R(0x6,_0x567a44(_0x129a14)),R(0x7,_0x567a44(_0x351861)),R(0x8,_0x5bccb0),R(0x9,_0x43229d),R(0xa,_0xd875ea),R(0xb,_0x12e59b),R(0xc,_0x8f0001(V))],q);let J=class extends U{constructor(_0x40da28,_0x32944c,_0x5a3722,_0x23d961,_0x3c48d4,_0x1f05a0=!0x1,_0x5e1032,_0x2bec3a,_0x4939be,_0x357334,_0x2a1a8d,_0x32ff69,_0x3164a7){const _0x1f0dae=_0x1fd9ed;super(_0x40da28,_0x32944c,_0x5a3722,_0x23d961,_0x3c48d4,_0x2bec3a,_0x4939be,_0x357334,_0x3164a7),this[_0x1f0dae(0x403)]=_0x1f05a0,this['_permissionService']=_0x5e1032,this[_0x1f0dae(0x2f3)]=_0x2a1a8d,this[_0x1f0dae(0x33b)]=_0x32ff69,this[_0x1f0dae(0x2ee)]=_0x3164a7,I(this,_0x1f0dae(0x276),_0x1f0dae(0x46c)),this[_0x1f0dae(0x473)](),this['_clearLocalCache'](),this[_0x1f0dae(0x200)]();}[_0x1fd9ed(0x2ed)](){return this;}[_0x1fd9ed(0x2e2)](){return this;}['onRemoteAck'](){return this;}[_0x1fd9ed(0x2db)](){return this;}[_0x1fd9ed(0x23b)](){return this;}[_0x1fd9ed(0x1f2)](){return this;}['toggleOnline'](){return this;}['resend'](){throw Error('[ConflictState]:\x20invalid\x20calling\x20to\x20`resend`.');}['_clearLocalCache'](){const _0x23a66b=_0x1fd9ed;var _0x58ceb0,_0x17a940,_0x61eb9d;(_0x58ceb0=this[_0x23a66b(0x45f)])==null||(_0x17a940=_0x58ceb0[_0x23a66b(0x206)])==null||(_0x17a940=_0x17a940[_0x23a66b(0x420)](_0x58ceb0,this[_0x23a66b(0x216)],_0x23a66b(0x46c)))==null||_0x17a940[_0x23a66b(0x3f0)](()=>void 0x0),(_0x61eb9d=this['_localCacheService'])==null||_0x61eb9d[_0x23a66b(0x2cc)](this['unitID'],this[_0x23a66b(0x247)],null,[]);}['_showConflictNotification'](){const _0x52555b=_0x1fd9ed;this['_isPermissionRej']?this[_0x52555b(0x33b)][_0x52555b(0x3e1)]({'id':_0x52555b(0x367)}):this[_0x52555b(0x33b)]['emitEvent']({'id':_0x52555b(0x442)});}[_0x1fd9ed(0x200)](){const _0x3148e2=_0x1fd9ed;this[_0x3148e2(0x381)]['updatePermissionPoint'](new _0x12e445(this['unitID'])['id'],!0x1);}};J=z([R(0x6,_0x567a44(_0x147673)),R(0x7,_0x5bccb0),R(0x8,_0x12e59b),R(0x9,_0x567a44(_0x351861)),R(0xa,_0x567a44(_0x45f63e)),R(0xb,_0x567a44(L)),R(0xc,_0x8f0001(V))],J);let Y=class extends U{constructor(_0x54203e,_0x553c85,_0x3133b5,_0x2d7dae,_0x77b96b,_0x41c448,_0x4f961c,_0x2371f2,_0x596972,_0x586d61){const _0x23bb57=_0x1fd9ed;super(_0x54203e,_0x553c85,_0x3133b5,_0x2d7dae,_0x77b96b,_0x2371f2,_0x596972,_0x4f961c,_0x586d61),this[_0x23bb57(0x25d)]=_0x41c448,I(this,_0x23bb57(0x276),_0x23bb57(0x3dc));}[_0x1fd9ed(0x2ed)](_0x48ca66){const _0x2c4429=_0x1fd9ed;return this[_0x2c4429(0x34d)]['push'](_0x48ca66),this[_0x2c4429(0x3f6)](),this;}[_0x1fd9ed(0x2e2)](_0x125920){throw Error('[OfflineState]:\x20received\x20changeset.');}[_0x1fd9ed(0x20c)](){throw Error('[OfflineState]:\x20received\x20acknowledgement.');}[_0x1fd9ed(0x2db)](){throw Error('[OfflineState]:\x20received\x20rejection.');}['onRemoteRetry'](){return this;}[_0x1fd9ed(0x1f2)](){return this;}[_0x1fd9ed(0x37f)](){const _0x587e13=_0x1fd9ed;let {_injector:_0x2d4330,_pendingMutations:_0x3c35b5,_awaitingChangeset:_0x2163f1,unitID:_0x3bcd28,_handler:_0x183a38,type:_0x376339}=this,_0x1c62c6=ln(_0x2d4330,_0x3bcd28,_0x376339,_0x2163f1,_0x3c35b5,_0x183a38);return _0x1c62c6 instanceof G?_0x1c62c6['_schedule']():(_0x1c62c6 instanceof q||_0x1c62c6 instanceof K)&&_0x1c62c6[_0x587e13(0x258)](),_0x1c62c6;}[_0x1fd9ed(0x258)](){const _0x23f779=_0x1fd9ed;throw Error(_0x23f779(0x2e1));}};Y=z([R(0x5,_0x567a44(_0x129a14)),R(0x6,_0x567a44(_0x351861)),R(0x7,_0x5bccb0),R(0x8,_0x12e59b),R(0x9,_0x8f0001(V))],Y);let X=class extends U{constructor(_0x227a90,_0x1ae366,_0x3c4dca,_0x4fcf3e,_0x107631,_0x300c4b,_0x49a44b,_0x47bbad,_0x446220,_0x445321,_0x3cdf31,_0x501417,_0x3ac5b9,_0xba3642){const _0x2a194d=_0x1fd9ed;super(_0x227a90,_0x1ae366,_0x3c4dca,_0x4fcf3e,_0x49a44b,_0x3cdf31,_0x501417,_0x446220,_0xba3642),this[_0x2a194d(0x33e)]=_0x107631,this[_0x2a194d(0x3aa)]=_0x300c4b,this[_0x2a194d(0x25d)]=_0x47bbad,this[_0x2a194d(0x42c)]=_0x445321,this['_transformService']=_0x3ac5b9,this['localCacheService']=_0xba3642,I(this,_0x2a194d(0x276),_0x2a194d(0x466));}[_0x1fd9ed(0x23a)](_0x22e143){const _0x3a13b6=_0x1fd9ed;try{if(this[_0x3a13b6(0x425)](_0x22e143)[_0x3a13b6(0x40a)])throw Error(_0x3a13b6(0x303));if(this[_0x3a13b6(0x425)]([...this[_0x3a13b6(0x3aa)]][_0x3a13b6(0x41d)]((_0x5dafeb,_0x5dbabb)=>_0x5dafeb['revision']-_0x5dbabb['revision']))[_0x3a13b6(0x40a)])return this[_0x3a13b6(0x3aa)]=[],this[_0x3a13b6(0x3f6)](),this['_handler'][_0x3a13b6(0x20f)]({'from':this[_0x3a13b6(0x43c)](),'to':0x0}),this;let _0x4613f3=this[_0x3a13b6(0x2b1)],_0x47e33f=this[_0x3a13b6(0x34d)],_0x1a24f5;if(_0x4613f3&&_0x47e33f['length']!==0x0)_0x1a24f5=this[_0x3a13b6(0x25d)][_0x3a13b6(0x2de)](q,this[_0x3a13b6(0x216)],this[_0x3a13b6(0x247)],_0x4613f3,_0x47e33f,this['_handler'],void 0x0);else{if(_0x4613f3&&_0x47e33f[_0x3a13b6(0x3a1)]===0x0)_0x4613f3[_0x3a13b6(0x41b)]=this[_0x3a13b6(0x43c)](),_0x1a24f5=this[_0x3a13b6(0x25d)][_0x3a13b6(0x2de)](K,this['unitID'],this['type'],_0x4613f3,this['_handler']);else{if(_0x47e33f['length']!==0x0){let _0xf83731=this[_0x3a13b6(0x25d)]['createInstance'](G,this[_0x3a13b6(0x216)],this[_0x3a13b6(0x247)],_0x47e33f,this[_0x3a13b6(0x3c9)]);_0xf83731[_0x3a13b6(0x3d6)](),_0x1a24f5=_0xf83731;}else _0x1a24f5=this[_0x3a13b6(0x25d)][_0x3a13b6(0x2de)](W,this[_0x3a13b6(0x216)],this[_0x3a13b6(0x247)],this[_0x3a13b6(0x3c9)]);}}return _0x1a24f5[_0x3a13b6(0x3f6)](),_0x1a24f5;}catch(_0x5508bc){return this[_0x3a13b6(0x42c)][_0x3a13b6(0x32c)](_0x3a13b6(0x1fa),_0x3a13b6(0x423),_0x5508bc),this[_0x3a13b6(0x25d)][_0x3a13b6(0x2de)](J,this[_0x3a13b6(0x216)],this['type'],this['_awaitingChangeset'],this[_0x3a13b6(0x34d)],this[_0x3a13b6(0x3c9)],!0x1);}}['_handleRemoteChangesets'](_0x3fbf33){const _0x23841e=_0x1fd9ed;this[_0x23841e(0x44c)]();for(let _0x366b13=0x0;_0x366b13<_0x3fbf33[_0x23841e(0x3a1)];_0x366b13++){let _0x3f07f3=_0x3fbf33[_0x366b13],_0x45d2f3=this['_getCurrentRevision']();if(!(_0x3f07f3['revision']<=_0x45d2f3)){if(_0x3f07f3[_0x23841e(0x449)]>_0x45d2f3+0x1)return{'missingChangesets':!0x0};if(this[_0x23841e(0x3d8)](_0x3f07f3)){this[_0x23841e(0x204)]();continue;}this[_0x23841e(0x2ab)](_0x3f07f3),this[_0x23841e(0x44c)]();}}return{'missingChangesets':!0x1};}['_transformAndApplyRemoteChangeset'](_0x253a50){const _0x189eb9=_0x1fd9ed;let _0x529e1f=_0x253a50,_0x195fc3=this[_0x189eb9(0x2b1)];if(_0x195fc3){let _0x2cb458=this['_transformService'][_0x189eb9(0x20b)]([_0x253a50],[_0x195fc3],!0x1);if(!_0x7e6bf8(_0x2cb458))throw _0x2cb458[_0x189eb9(0x32c)];_0x529e1f=_0x2cb458[_0x189eb9(0x25b)][0x0],_0x195fc3=_0x2cb458['c2Prime'][0x0];}let _0x88f921=this[_0x189eb9(0x34d)];if(_0x88f921[_0x189eb9(0x3a1)]){let _0x34508e=this[_0x189eb9(0x387)][_0x189eb9(0x309)](_0x529e1f,_0x88f921);if(!_0x4b59ef(_0x34508e))throw _0x34508e[_0x189eb9(0x32c)];_0x529e1f=_0x34508e[_0x189eb9(0x25b)],_0x88f921=_0x34508e[_0x189eb9(0x31d)];}this[_0x189eb9(0x3fb)](_0x529e1f),_0x195fc3&&(_0x195fc3[_0x189eb9(0x41b)]=this[_0x189eb9(0x43c)]()),this[_0x189eb9(0x2b1)]=_0x195fc3,this[_0x189eb9(0x34d)]=_0x88f921;}[_0x1fd9ed(0x44c)](){const _0x582b8b=_0x1fd9ed;if(!this['_awaitingChangeset']||this[_0x582b8b(0x33e)]==null)return;let _0x118300=this['_getCurrentRevision']();if(this[_0x582b8b(0x33e)]<=_0x118300)throw Error('[FetchingMissState]:\x20received\x20stale\x20ack\x20revision:\x20'+this[_0x582b8b(0x33e)]+'.');this[_0x582b8b(0x33e)]===_0x118300+0x1&&this[_0x582b8b(0x204)]();}[_0x1fd9ed(0x204)](){const _0x125eda=_0x1fd9ed;this[_0x125eda(0x406)](),this[_0x125eda(0x2b1)]=null,this[_0x125eda(0x33e)]=null;}['_isEchoedAwaitingChangeset'](_0x52b10b){const _0x465346=_0x1fd9ed;let _0x563ad9=this['_awaitingChangeset'];return!_0x563ad9||!_0x563ad9[_0x465346(0x3b5)]||_0x563ad9['reqId']===null||_0x563ad9[_0x465346(0x29d)]===void 0x0?!0x1:_0x52b10b[_0x465346(0x216)]===_0x563ad9['unitID']&&_0x52b10b['sid']===_0x563ad9[_0x465346(0x3b5)]&&_0x52b10b['reqId']===_0x563ad9['reqId'];}[_0x1fd9ed(0x258)](){throw Error('[FetchingMissState]:\x20invalid\x20calling\x20to\x20`resend`.');}[_0x1fd9ed(0x2ed)](_0x52481b){const _0x2f1554=_0x1fd9ed;return this[_0x2f1554(0x34d)][_0x2f1554(0x28a)](_0x52481b),this;}[_0x1fd9ed(0x2e2)](_0x15acc8){const _0x194d38=_0x1fd9ed;return this[_0x194d38(0x3aa)][_0x194d38(0x28a)](_0x15acc8),this;}[_0x1fd9ed(0x20c)](_0x3bf7ef){const _0x1d40d6=_0x1fd9ed;if(this[_0x1d40d6(0x2b1)]){let _0x460afc=this[_0x1d40d6(0x43c)]();return _0x3bf7ef['revision']<=_0x460afc||(_0x460afc+0x1===_0x3bf7ef[_0x1d40d6(0x449)]?(this[_0x1d40d6(0x406)](),this[_0x1d40d6(0x2b1)]=null,this[_0x1d40d6(0x33e)]=null):this['_acknowledgedAwaitingRevision']=_0x3bf7ef[_0x1d40d6(0x449)]),this;}if(_0x3bf7ef[_0x1d40d6(0x449)]<=this[_0x1d40d6(0x43c)]())return this;throw Error(_0x1d40d6(0x443));}[_0x1fd9ed(0x2db)](_0x59b502){const _0x271213=_0x1fd9ed;return this[_0x271213(0x2c9)](!!(_0x59b502!=null&&_0x59b502['isPermissionRej']));}['onRemoteRetry'](){return this;}[_0x1fd9ed(0x1f2)](){const _0x2960a2=_0x1fd9ed;return this[_0x2960a2(0x25d)][_0x2960a2(0x2de)](Y,this['unitID'],this[_0x2960a2(0x247)],this[_0x2960a2(0x2b1)],this[_0x2960a2(0x34d)],this[_0x2960a2(0x3c9)]);}[_0x1fd9ed(0x37f)](){return this;}[_0x1fd9ed(0x2c9)](_0x3e538b){const _0x43ca5f=_0x1fd9ed;return this[_0x43ca5f(0x25d)][_0x43ca5f(0x2de)](J,this[_0x43ca5f(0x216)],this[_0x43ca5f(0x247)],this['_awaitingChangeset'],this[_0x43ca5f(0x34d)],this['_handler'],_0x3e538b);}};X=z([R(0x7,_0x567a44(_0x129a14)),R(0x8,_0x567a44(_0x351861)),R(0x9,_0x43229d),R(0xa,_0x5bccb0),R(0xb,_0x12e59b),R(0xc,_0xd875ea),R(0xd,_0x8f0001(V))],X);function ln(_0x2f869a,_0x4a9693,_0x1b4865,_0x21883a,_0x2469c0,_0x3456d7){const _0x484bf9=_0x1fd9ed;return _0x21883a&&_0x2469c0['length']?_0x2f869a['createInstance'](q,_0x4a9693,_0x1b4865,_0x21883a,_0x2469c0,_0x3456d7,void 0x0):_0x21883a?_0x2f869a['createInstance'](K,_0x4a9693,_0x1b4865,_0x21883a,_0x3456d7):_0x2469c0['length']?_0x2f869a['createInstance'](G,_0x4a9693,_0x1b4865,_0x2469c0,_0x3456d7):_0x2f869a[_0x484bf9(0x2de)](W,_0x4a9693,_0x1b4865,_0x3456d7);}let Z=class extends _0x3431d7{get[_0x1fd9ed(0x232)](){const _0x49e1e4=_0x1fd9ed;return this[_0x49e1e4(0x44e)];}constructor(_0x1692b7,_0x2732ec,_0x30d7dc,_0x9c64a6,_0x21f23a,_0x2b8390,_0x59dc8e,_0x27d244,_0x42ce4d,_0xf33f85,_0x422b83,_0x383b8b,_0x5589ff,_0x5d7b30){const _0x15cd03=_0x1fd9ed;super(),this[_0x15cd03(0x216)]=_0x1692b7,this[_0x15cd03(0x30d)]=_0x2732ec,this[_0x15cd03(0x319)]=_0x30d7dc,this[_0x15cd03(0x25d)]=_0x9c64a6,this['_compressMutationService']=_0x21f23a,this[_0x15cd03(0x2f3)]=_0x2b8390,this['_revisionService']=_0x59dc8e,this[_0x15cd03(0x1f7)]=_0x27d244,this[_0x15cd03(0x250)]=_0x42ce4d,this[_0x15cd03(0x42c)]=_0xf33f85,this[_0x15cd03(0x2dc)]=_0x422b83,this[_0x15cd03(0x381)]=_0x383b8b,this[_0x15cd03(0x2af)]=_0x5589ff,this[_0x15cd03(0x45f)]=_0x5d7b30,I(this,_0x15cd03(0x280),new _0x32f5fb(null)),I(this,_0x15cd03(0x382),this[_0x15cd03(0x280)][_0x15cd03(0x2bb)]()),I(this,_0x15cd03(0x44e),void 0x0),I(this,_0x15cd03(0x44a),!0x1),I(this,_0x15cd03(0x3db),''),I(this,'_changesetReqId',0x0),I(this,'status$',this['state$'][_0x15cd03(0x355)](_0x55288a(_0x50ca65=>_0x50ca65?_0x50ca65[_0x15cd03(0x276)]:_0x15cd03(0x3dc)),_0x4a973b({'bufferSize':0x1,'refCount':!0x0}))),I(this,_0x15cd03(0x207),!0x1),I(this,_0x15cd03(0x460),[]);}async['init'](){const _0x226fec=_0x1fd9ed;if(this[_0x226fec(0x232)])throw Error(_0x226fec(0x2ac));await this[_0x226fec(0x451)]();}['pauseCollaboration'](){const _0x1695e9=_0x1fd9ed;return this[_0x1695e9(0x44a)]=!0x0,_0x418282(()=>{const _0x1b1973=_0x1695e9;this['_collaborationPaused']=!0x1,this[_0x1b1973(0x435)]();});}[_0x1fd9ed(0x404)](_0x478fba){const _0x4429ab=_0x1fd9ed;this[_0x4429ab(0x29c)](_0x478fba);}[_0x1fd9ed(0x3d2)](_0x222663){const _0x28e174=_0x1fd9ed;this[_0x28e174(0x44e)]=_0x222663,this[_0x28e174(0x280)][_0x28e174(0x3a7)](_0x222663);}async[_0x1fd9ed(0x451)](){const _0x2202b8=_0x1fd9ed;if(this[_0x2202b8(0x3d2)](await this[_0x2202b8(0x30f)]()),this[_0x2202b8(0x2af)]){var _0x4a3542;(_0x4a3542=this['_singleActiveUnitService'])==null||_0x4a3542[_0x2202b8(0x427)](this[_0x2202b8(0x216)]),this[_0x2202b8(0x203)](this[_0x2202b8(0x2af)][_0x2202b8(0x2f2)](this['unitID'])[_0x2202b8(0x3f9)](_0x2a7d66=>{const _0x5ecf4d=_0x2202b8;this[_0x5ecf4d(0x42c)][_0x5ecf4d(0x35b)](_0x5ecf4d(0x347),_0x5ecf4d(0x2b5),_0x2a7d66),_0x2a7d66===0x1?(this[_0x5ecf4d(0x1f7)][_0x5ecf4d(0x3e1)]({'id':'OTHER_CLIENT_EDITING'}),this[_0x5ecf4d(0x381)][_0x5ecf4d(0x25e)](new _0x12e445(this['unitID'])['id'],!0x1),this[_0x5ecf4d(0x381)]['setShowComponents'](!0x1)):(this['_permissionService'][_0x5ecf4d(0x25e)](new _0x12e445(this[_0x5ecf4d(0x216)])['id'],!0x0),this[_0x5ecf4d(0x381)][_0x5ecf4d(0x2ca)](!0x0));}));}let _0x81aac3=!0x1;return this['disposeWithMe'](this[_0x2202b8(0x30d)][_0x2202b8(0x434)][_0x2202b8(0x3f9)](_0x405fdb=>{const _0x1dc8d4=_0x2202b8;_0x405fdb===0x3?this['_toggleOnline'](_0x81aac3):_0x405fdb===0x2&&(_0x81aac3=!0x0,this[_0x1dc8d4(0x289)]());})),this['disposeWithMe'](this[_0x2202b8(0x30d)][_0x2202b8(0x33f)][_0x2202b8(0x3f9)](_0x26add6=>{const _0x57dc3f=_0x2202b8;try{switch(_0x26add6[_0x57dc3f(0x2b3)]){case _0x59a8f1['NEW_CHANGESETS']:this[_0x57dc3f(0x2a0)](_0x4367c5(_0x26add6['data']));break;case _0x59a8f1[_0x57dc3f(0x28e)]:this[_0x57dc3f(0x234)](_0x26add6[_0x57dc3f(0x215)]);break;case _0x59a8f1[_0x57dc3f(0x45e)]:this[_0x57dc3f(0x46a)]();break;case _0x59a8f1[_0x57dc3f(0x476)]:this[_0x57dc3f(0x1fb)](_0x26add6['data']);break;case _0x59a8f1[_0x57dc3f(0x233)]:this['_onFetchMissResult'](_0x26add6['data'][_0x57dc3f(0x383)][_0x57dc3f(0x2a2)](_0x41839b=>_0x4367c5(_0x41839b)));break;case _0x59a8f1['PERMISSION_REJ']:this[_0x57dc3f(0x46a)]({'isPermissionRej':!0x0});break;case _0x59a8f1[_0x57dc3f(0x38a)]:break;}}catch(_0x5d92de){throw console[_0x57dc3f(0x32c)]('Error\x20on\x20receiving\x20event',_0x5d92de),_0x5d92de;}})),this[_0x2202b8(0x44e)];}['_unlockTransition'](){const _0x1f69f3=_0x1fd9ed;this[_0x1f69f3(0x207)]=!0x1;}['_lockTransition'](){const _0x5344d1=_0x1fd9ed;if(this[_0x5344d1(0x207)])throw Error(_0x5344d1(0x3b1));this[_0x5344d1(0x207)]=!0x0;}['_onLocalMutation'](_0xf97e5f){const _0x329dba=_0x1fd9ed;this[_0x329dba(0x332)](),this[_0x329dba(0x3d2)](this['_state'][_0x329dba(0x2ed)](_0xf97e5f)),this[_0x329dba(0x2fe)]();}[_0x1fd9ed(0x2a0)](_0x2b4414){const _0x455da=_0x1fd9ed;if(!(_0x2b4414[_0x455da(0x449)]<=this['_revisionService'][_0x455da(0x305)](this[_0x455da(0x216)]))){if(this[_0x455da(0x44a)]){this[_0x455da(0x460)][_0x455da(0x28a)](_0x2b4414);return;}this[_0x455da(0x27b)](_0x2b4414);}}[_0x1fd9ed(0x435)](){const _0x1a349a=_0x1fd9ed;this['_remoteChangesetQueue'][_0x1a349a(0x365)](_0x28f942=>this[_0x1a349a(0x27b)](_0x28f942)),this[_0x1a349a(0x460)]=[];}[_0x1fd9ed(0x27b)](_0x33e546){const _0xa0500e=_0x1fd9ed;let _0x351137=this[_0xa0500e(0x47d)][_0xa0500e(0x2e7)][_0xa0500e(0x300)](this[_0xa0500e(0x47d)]['interceptor']['getInterceptPoints']()[_0xa0500e(0x27e)])(_0x33e546[_0xa0500e(0x3b2)],null)||_0x33e546[_0xa0500e(0x3b2)],_0x272e61={..._0x33e546,'mutations':_0x351137};this['_lockTransition'](),this[_0xa0500e(0x3d2)](this['_state'][_0xa0500e(0x2e2)](_0x272e61)),this['_unlockTransition']();}[_0x1fd9ed(0x234)](_0x23f0f0){const _0x5010d3=_0x1fd9ed;this[_0x5010d3(0x332)](),this['_updateState'](this[_0x5010d3(0x44e)]['onRemoteAck'](_0x23f0f0)),this['_unlockTransition']();}[_0x1fd9ed(0x46a)](_0x9e51){const _0x97cbc8=_0x1fd9ed;this['_lockTransition'](),this[_0x97cbc8(0x3d2)](this['_state'][_0x97cbc8(0x2db)](_0x9e51)),this[_0x97cbc8(0x2fe)]();}[_0x1fd9ed(0x1fb)](_0x148c23){const _0x5ebfb1=_0x1fd9ed;this[_0x5ebfb1(0x332)](),this[_0x5ebfb1(0x3d2)](this[_0x5ebfb1(0x44e)][_0x5ebfb1(0x23b)](_0x148c23)),this[_0x5ebfb1(0x2fe)]();}[_0x1fd9ed(0x459)](_0x3e1218){const _0x4298fd=_0x1fd9ed;if(!(this[_0x4298fd(0x44e)]instanceof X))throw TypeError(_0x4298fd(0x313));let _0x1416f3=_0x3e1218[_0x4298fd(0x2a2)](_0xa25ece=>{const _0x23a93f=_0x4298fd;let _0x215e02=this[_0x23a93f(0x47d)][_0x23a93f(0x2e7)][_0x23a93f(0x300)](this[_0x23a93f(0x47d)][_0x23a93f(0x2e7)]['getInterceptPoints']()[_0x23a93f(0x27e)])(_0xa25ece['mutations'],null)||_0xa25ece['mutations'];return{..._0xa25ece,'mutations':_0x215e02};});this[_0x4298fd(0x332)](),this['_updateState'](this[_0x4298fd(0x44e)][_0x4298fd(0x23a)](_0x1416f3)),this[_0x4298fd(0x2fe)]();}['_toggleOffline'](){const _0x18de24=_0x1fd9ed;this[_0x18de24(0x332)](),this[_0x18de24(0x3d2)](this[_0x18de24(0x44e)][_0x18de24(0x1f2)]()),this[_0x18de24(0x2fe)]();}[_0x1fd9ed(0x3a4)](_0x398b49=!0x1){const _0x115924=_0x1fd9ed;this[_0x115924(0x332)](),this[_0x115924(0x3d2)](this[_0x115924(0x44e)]['toggleOnline']()),this[_0x115924(0x2fe)]();let _0x3cfd39=this['_state'];_0x398b49&&_0x3cfd39 instanceof W&&(this[_0x115924(0x332)](),this[_0x115924(0x3d2)](_0x3cfd39[_0x115924(0x28d)]()),this['_unlockTransition']());}async[_0x1fd9ed(0x30f)](){return new Promise(_0x35cf35=>{const _0x515f0a=_0x3c02;this['session'][_0x515f0a(0x434)]['pipe'](_0x213f84(0x1))['subscribe'](async _0x46371d=>{const _0x392810=_0x515f0a;_0x35cf35(await this[_0x392810(0x35c)](_0x46371d===0x3));});});}[_0x1fd9ed(0x24d)](){let _0x2c2f9e=this['unitID'];return{'onStateChange':(_0xa32aec,_0x4706e0)=>{const _0x4c1342=_0x3c02;if(_0xa32aec!==this[_0x4c1342(0x44e)])throw Error(_0x4c1342(0x33c)+_0xa32aec['status']+_0x4c1342(0x454)+_0x4706e0[_0x4c1342(0x276)]+_0x4c1342(0x447)+this[_0x4c1342(0x44e)][_0x4c1342(0x276)]);this[_0x4c1342(0x3d2)](_0x4706e0);},'onSendChangeset':_0x599f75=>{const _0xfc17a4=_0x3c02;_0x599f75[_0xfc17a4(0x3b5)]||(_0x599f75[_0xfc17a4(0x3b5)]=this[_0xfc17a4(0x3db)],_0x599f75[_0xfc17a4(0x29d)]=++this[_0xfc17a4(0x25f)]);let _0x1cf42b={'eventID':_0x59a8f1[_0xfc17a4(0x3b8)],'data':{'unitID':_0x599f75[_0xfc17a4(0x216)],'unitType':this[_0xfc17a4(0x319)],'changeset':_0x599f75,'memberID':this['session'][_0xfc17a4(0x3df)]()}};this[_0xfc17a4(0x30d)][_0xfc17a4(0x3e4)](_0x1cf42b,this[_0xfc17a4(0x216)]);},'onMissingChangesets':({from:_0x59075c,to:_0x28c8be})=>{const _0x5d8a4f=_0x3c02;this[_0x5d8a4f(0x42c)][_0x5d8a4f(0x35b)](_0x5d8a4f(0x347),_0x5d8a4f(0x38d)+_0x59075c+_0x5d8a4f(0x301)+_0x28c8be);let _0x15d578={'eventID':_0x59a8f1[_0x5d8a4f(0x39f)],'data':{'unitID':_0x2c2f9e,'unitType':this[_0x5d8a4f(0x319)],'from':_0x59075c,'to':_0x28c8be}};this[_0x5d8a4f(0x30d)][_0x5d8a4f(0x3e4)](_0x15d578,this[_0x5d8a4f(0x216)]);}};}async[_0x1fd9ed(0x35c)](_0x257720){const _0x140fdf=_0x1fd9ed;var _0x1f0a17,_0x1ab39f,_0x40e9af;let _0x422e85=await((_0x1f0a17=this[_0x140fdf(0x45f)])==null?void 0x0:_0x1f0a17[_0x140fdf(0x3d4)](this[_0x140fdf(0x216)])),_0x1b25ec=(_0x1ab39f=_0x422e85==null?void 0x0:_0x422e85['mutations'])==null?[]:_0x1ab39f,_0x595ed8=(_0x40e9af=_0x422e85==null?void 0x0:_0x422e85[_0x140fdf(0x315)])==null?null:_0x40e9af,_0x463368=!!(_0x595ed8!=null&&_0x595ed8[_0x140fdf(0x3b5)])&&!!(_0x595ed8!=null&&_0x595ed8[_0x140fdf(0x29d)]);this[_0x140fdf(0x3db)]=_0x463368?_0x595ed8[_0x140fdf(0x3b5)]:_0x24d38f(),this[_0x140fdf(0x25f)]=_0x463368?_0x595ed8['reqId']:0x0;let _0x26f0ce=this[_0x140fdf(0x216)];try{this['_replayCachedMutations'](_0x595ed8,_0x1b25ec);}catch(_0x31e4b3){this['_logService'][_0x140fdf(0x32c)](_0x31e4b3);}let _0x29dc22=this[_0x140fdf(0x24d)]();if(_0x257720){let _0x25da5c=ln(this[_0x140fdf(0x25d)],_0x26f0ce,this[_0x140fdf(0x319)],_0x595ed8,_0x1b25ec,_0x29dc22);return _0x25da5c instanceof G?_0x25da5c[_0x140fdf(0x3d6)]():(_0x25da5c instanceof q||_0x25da5c instanceof K)&&_0x25da5c[_0x140fdf(0x258)](),_0x25da5c;}return this[_0x140fdf(0x25d)]['createInstance'](Y,_0x26f0ce,this['_type'],_0x595ed8,_0x1b25ec,_0x29dc22);}[_0x1fd9ed(0x44b)](_0x317c2d,_0x429ec3){const _0x110b1f=_0x1fd9ed;var _0x64448,_0x4d5413;let _0x1b101e=this[_0x110b1f(0x47d)][_0x110b1f(0x2e7)][_0x110b1f(0x300)](this['_compressMutationService'][_0x110b1f(0x2e7)][_0x110b1f(0x338)]()[_0x110b1f(0x27e)]);(_0x64448=_0x1b101e((_0x317c2d==null?void 0x0:_0x317c2d[_0x110b1f(0x3b2)])||[],null))==null||_0x64448['forEach'](_0x600509=>this[_0x110b1f(0x2dc)][_0x110b1f(0x311)](_0x600509['id'],_0x600509['params'])),(_0x4d5413=_0x1b101e(_0x429ec3||[],null))==null||_0x4d5413[_0x110b1f(0x365)](_0x17ba95=>this[_0x110b1f(0x2dc)]['executeCommand'](_0x17ba95['id'],_0x17ba95[_0x110b1f(0x296)]));}};Z=z([R(0x3,_0x567a44(_0x129a14)),R(0x4,_0x567a44(_0x525c70)),R(0x5,_0x567a44(_0x45f63e)),R(0x6,_0x567a44(_0x351861)),R(0x7,_0x567a44(L)),R(0x8,_0x1efd8f),R(0x9,_0x43229d),R(0xa,_0x5bccb0),R(0xb,_0x147673),R(0xc,_0x8f0001(H)),R(0xd,_0x8f0001(V))],Z);let un=class extends Z{constructor(_0x4fcf2f,_0x33a5a6,_0x1f753d,_0xc41056,_0x128c8a,_0x66e3cd,_0x52053a,_0x2e3ed8,_0x366f91,_0x1ed833,_0x208b29,_0x3ba515,_0x364143,_0x497093,_0x3380e4){const _0x3e55c0=_0x1fd9ed;super(_0x4fcf2f,_0x1f753d,_0x33a5a6,_0xc41056,_0x128c8a,_0x66e3cd,_0x52053a,_0x2e3ed8,_0x366f91,_0x1ed833,_0x208b29,_0x3ba515,_0x497093,_0x3380e4),this['unitID']=_0x4fcf2f,this[_0x3e55c0(0x247)]=_0x33a5a6,this[_0x3e55c0(0x29b)]=_0x364143,I(this,'_handlerCallback',null);}[_0x1fd9ed(0x419)](_0x2e466d){const _0x4832fa=_0x1fd9ed;this[_0x4832fa(0x39c)]=_0x2e466d;}[_0x1fd9ed(0x3b9)](){const _0x3d086b=_0x1fd9ed;this[_0x3d086b(0x39c)]=null,super[_0x3d086b(0x3b9)]();}['_createHandler'](){const _0x2090da=_0x1fd9ed;let _0x1661a1=super[_0x2090da(0x24d)]();return _0x1661a1['onTransformIME']=_0x6fed3f=>{const _0xbeea42=_0x2090da;var _0x5b456f,_0x516942;return(_0x5b456f=this[_0xbeea42(0x39c)])==null||(_0x516942=_0x5b456f[_0xbeea42(0x32f)])==null?void 0x0:_0x516942[_0xbeea42(0x420)](_0x5b456f,_0x6fed3f);},_0x1661a1[_0x2090da(0x2c7)]=_0x41c66b=>{const _0x16485b=_0x2090da;var _0x47b374,_0x4b80cf;return(_0x47b374=this[_0x16485b(0x39c)])==null||(_0x4b80cf=_0x47b374[_0x16485b(0x2c7)])==null?void 0x0:_0x4b80cf[_0x16485b(0x420)](_0x47b374,_0x41c66b);},_0x1661a1[_0x2090da(0x3d7)]=_0x115f1d=>{const _0x440f7f=_0x2090da;var _0x4c25a1,_0xb010cf;return(_0x4c25a1=this[_0x440f7f(0x39c)])==null||(_0xb010cf=_0x4c25a1[_0x440f7f(0x3d7)])==null?void 0x0:_0xb010cf[_0x440f7f(0x420)](_0x4c25a1,_0x115f1d);},_0x1661a1[_0x2090da(0x388)]=_0x2d1a84=>{const _0x3552d2=_0x2090da;var _0x265475,_0x4515f2;return(_0x265475=this[_0x3552d2(0x39c)])==null||(_0x4515f2=_0x265475[_0x3552d2(0x388)])==null?void 0x0:_0x4515f2['call'](_0x265475,_0x2d1a84);},_0x1661a1[_0x2090da(0x2e0)]=_0x4b120b=>{const _0x31ebf5=_0x2090da;var _0x468391,_0x47df85,_0x140209;return(_0x468391=(_0x47df85=this['_handlerCallback'])==null||(_0x140209=_0x47df85[_0x31ebf5(0x2e0)])==null?void 0x0:_0x140209[_0x31ebf5(0x420)](_0x47df85,_0x4b120b))==null?_0x4b120b:_0x468391;},_0x1661a1[_0x2090da(0x223)]=_0xdf57cf=>{const _0x1165a=_0x2090da;var _0xbbae82,_0x3aac70,_0x5f2129;return(_0xbbae82=(_0x3aac70=this['_handlerCallback'])==null||(_0x5f2129=_0x3aac70['onTransformRemoteChangesetByStateCache'])==null?void 0x0:_0x5f2129[_0x1165a(0x420)](_0x3aac70,_0xdf57cf))==null?_0xdf57cf:_0xbbae82;},_0x1661a1;}async['_init'](){const _0xfbaa13=_0x1fd9ed;if(this[_0xfbaa13(0x29b)]==null)throw Error(_0xfbaa13(0x37d));let _0x46a771=await super[_0xfbaa13(0x451)]();return this[_0xfbaa13(0x203)](this['_docStateChangeManagerService'][_0xfbaa13(0x340)][_0xfbaa13(0x3f9)](_0x443ba5=>{const _0xb2638f=_0xfbaa13;if(_0x443ba5==null||_0x443ba5['unitId']!==this['unitID'])return;let {commandId:_0x2c9b19,redoState:_0x5e9f9d,unitId:_0x53b104}=_0x443ba5,_0x2b8a6c={'id':_0x2c9b19,'type':_0x446ee0[_0xb2638f(0x28b)],'params':{'unitId':_0x53b104,'actions':_0x5e9f9d[_0xb2638f(0x282)],'textRanges':null}};this[_0xb2638f(0x29c)](_0x2b8a6c);})),this[_0xfbaa13(0x203)](this['_commandService'][_0xfbaa13(0x2f0)]((_0x25ef42,_0x454f8a)=>{const _0x167eed=_0xfbaa13;if(_0x25ef42[_0x167eed(0x247)]!==_0x446ee0[_0x167eed(0x28b)]||_0x454f8a!=null&&_0x454f8a['fromCollab']||_0x454f8a!=null&&_0x454f8a[_0x167eed(0x413)]||_0x25ef42['id']===_0x40b38f['id'])return;let _0x15f75f=_0x25ef42[_0x167eed(0x296)];if((_0x15f75f==null?void 0x0:_0x15f75f[_0x167eed(0x3ec)])!==this[_0x167eed(0x216)])return;let _0x482fba=_0x25ef42,_0x35894c=this['_compressMutationService'][_0x167eed(0x2e7)][_0x167eed(0x300)](this['_compressMutationService'][_0x167eed(0x2e7)][_0x167eed(0x338)]()[_0x167eed(0x2ff)])([_0x482fba],this[_0x167eed(0x250)])||[_0x482fba];this[_0x167eed(0x29c)](_0x35894c[0x0]);})),_0x46a771;}};un=z([R(0x3,_0x567a44(_0x129a14)),R(0x4,_0x567a44(_0x525c70)),R(0x5,_0x567a44(_0x45f63e)),R(0x6,_0x567a44(_0x351861)),R(0x7,_0x567a44(L)),R(0x8,_0x1efd8f),R(0x9,_0x43229d),R(0xa,_0x5bccb0),R(0xb,_0x147673),R(0xc,_0x8f0001(_0x2bfe83)),R(0xd,_0x8f0001(H)),R(0xe,_0x8f0001(V))],un);function _0x3c02(_0x1cd3ba,_0x133da1){_0x1cd3ba=_0x1cd3ba-0x1f2;const _0x4a5dbc=_0x4a5d();let _0x3c020c=_0x4a5dbc[_0x1cd3ba];return _0x3c020c;}function _0x4a5d(){const _0x327b76=['Unknown\x20type.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','symbol','routeKey','/object/','localeService','getTime','uniscriptRunEvent','params','_unitID','DEFAULT_FILE_NAME','_sendingTimer','_retryConnectingTimer','_docStateChangeManagerService','_onLocalMutation','reqId','fetching\x20the\x20latest\x20document\x20from\x20the\x20server.','headers','_onRemoteChangeset','/universer-api/authz','map','_upload','_collabSessionService','_clearRetryConnectingTimer','UUID','focused$','_roomMembers','post','readAsDataURL','_transformAndApplyRemoteChangeset','[CollaborationEntity]:\x20initial\x20state\x20has\x20been\x20created\x20before.\x20You\x20should\x20not\x20call\x20\x22init\x22\x20twice.','saveSheetBlock','[CollaborationSocketService]:\x20failed\x20to\x20get\x20web\x20socket\x20factory!','_singleActiveUnitService','UNIVER_SLIDE','_awaitingChangeset','_socket$','eventID','not_collab','editing\x20status\x20changed\x20to','UNIVER_BASE','listCollaborators','/universer-api/user/session-ticket','stringify','[UniverCollaborationClientPlugin]:\x20you\x20must\x20provide\x20a\x20socketService\x20implementation\x20in\x20config!','asObservable','univer-pro.collaboration-client-socket-service','reduce','getOwnPropertyDescriptor','resourceIDs','17456yCbAme','getRoom','iterator','workbook','This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!','collabWebSocketUrl','UnitEmbedded','onTransformState','_getUploadFileURL','_onConflict','setShowComponents','collaboration-client.config','updateOfflineData','ERROR_EXCEED_SIZE','LIVESHARE_REQUEST_HOST','SHOULD_CLOSE_CONN','_initDependencies','every','ONLINE','_transformRemoteChangesetByIMECache','setWaitCount','getActiveSheet','enableOfflineEditing','getCollabEntity','[CollaborationAttachmentIoService]:\x20attachment\x20type\x20is\x20not\x20accepted.','_onUserJoin','synced','onRemoteRej','_commandService','[CollaborationSession]:\x20should\x20not\x20send\x20message\x20when\x20the\x20session\x20is\x20offline!','createInstance','avatar','onTransformRemoteChangesetByIMECache','[OfflineState]:\x20invalid\x20calling\x20to\x20`resend`.','onRemoteChangeset','_snapshotService','_getLoginPath','LIVESHARE_NEW_HOST','NO_OTHER_CLIENTS_EDITING','interceptor','_resendTimeout','OFFLINE','_sessions','maxSize','permissionRejEvent','appendMutation','localCacheService','add','onMutationExecutedForCollab','_onMessage','getUnitStatus$','_localeService','AWAITING_WITH_PENDING','_initCloseConn','OTHER_CLIENTS_EDITING','/rev/','url','_cfgEnableObjInherit','textRanges','encodeURIComponent','collaborators','[CollaborationAttachmentIoService]:\x20failed\x20to\x20upload\x20attachment.','_unlockTransition','COMPRESS_MUTATION_SEND','fetchThroughInterceptors','\x20to\x20','has','[FetchMissState]:\x20missing\x20changesets\x20response\x20still\x20has\x20revision\x20gaps.','getTypeOfUnitAdded$','getCurrentRevOfUnit','_getAPIPrefixPath','_getRedoStack','splice','transformMutationsWithChangeset','SOCKET_FAILED','/-/object/-/batch_allowed','subject','session','open$','_createInitialState','indexOf','executeCommand','_emitMembers','[CollaborationEntity]:\x20cannot\x20apply\x20missing\x20results\x20on\x20other\x20states!','saveChangeset','awaitingChangeset','FileId','&source=','csRejEvent','_type','findIndex','infoRsp','JOIN','m2Prime','dispose$','append','replace','string','getSheetId','_getAPIPrefix','fetchMissingChangesets','leaveEvent','SOCKET_FAILED_RETRY','261070KSQcdz','updatePermissionObjEvent','PERSON','LEAVE','endsWith','error','onSendChangeset','_createSocket','onTransformIME','_socketService','file','_lockTransition','pending','HELLO','[UniverCollaborationClientPlugin]','objectActions','cfgEnableObjInherit','getInterceptPoints','ERROR_IMAGE','_socketMessageSubscription','_collaborationUIEventService','[CollaborationEntity]:\x20invalid\x20state\x20transition!\x20State\x20transferred\x20from\x20is\x20not\x20the\x20current\x20state.\x0aBefore:\x20','RETRY_CONNECTING_MAX_COUNT','_acknowledgedAwaitingRevision','event$','docStateChange$','unknown','getMember','_clearHeartbeatTimer','_startTelemetryCollaborationNewChangeset','\x20in\x20_schedule.','_scheduleCollaborationTimeoutTimer','[CollaborationEntity]','getFocusedUnit','getConfig','downloadEndpointUrl','sessionStatus','session.room-permission-denied','_pendingMutations','getUnitOnRev','JOIN_ROOM_FAILED','_event$','_transformStack','transformUndoRedo','upload','_updateStatus','pipe','getUnit','__splitChunk__','_submitChangeset','delete','UNIVER_COLLABORATION_CLIENT_PLUGIN','debug','_createInitialStateImpl','PENDING','session.room-not-exists','_status$','retryConnectingInterval','objects','loginUrlKey','roles','socket$','forEach','@univerjs-pro/collaboration-client','PERMISSION_DENIED','_resendTimer','unit','initWorkbookPermissionChange','OPTIONAL','collaboration-client.local-cache-service','_unitInfo$','toString','readyForCollab','_clearRedo','transformSelections','SUCCUSS','JOIN_ROOM_FULL','onload','onCommentUpdate','_checkMissing','equals','memberID','_replaceFileID','_clearScheduledTask','registerHTTPInterceptor','_initUnitPermissionChange','[DocCollaborationEntity]:\x20DocStateChangeManagerService\x20is\x20required.\x20Register\x20UniverDocsPlugin\x20before\x20collaboration.','ERROR_IMAGE_TYPE','toggleOnline','action','_permissionService','state$','changesets','_snapshotServerService','onStarting','\x20-\x20','_transformService','onSyncEditingCollabCursor','init','UNISCRIPT_RUN','INGEST','size','fetching\x20missing\x20changesets\x20from\x20','[SyncedState]:\x20received\x20acknowledgement.','LIVESHARE_OPERATION','?url=','_telemetryService','max','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','complete','newCsEvent','close','default','_transformUndoredo','ws://127.0.0.1:8000/universer-api/comb/connect','withCredentials','_socket','_handlerCallback','_shouldReportTelemetry','values','FETCH_MISSING','_change$','length','objectID','_collaborationTimeoutTimer','_toggleOnline','isPermissionRej','defineProperty','next','_retryCount','confirm','_queuedRemoteChangesets','_clearUndo','HEARTBEAT','SYNCED','pluginName','/block/','_configService','[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.','mutations','_tryReconnect','_transformRemoteChangesetByStateCache','sid','floor','_commentService','SUBMIT_CHANGESET','dispose','USERS_ENTER','_sender','_clearTimeoutTimer','_onRecvEvent','you\x20should\x20override\x20\x22IUndoRedoService\x22\x20provided\x20in\x20\x22core\x22\x20package!','_scheduleCompleteTimestamp','deepClone','loadSlide','_substituteRedoStack','getUnitId','AWAITING','_initRequestHeader','?size=','_collaborationSessionService','/universer-api/stream/file/upload','_handler','members','_imageSourceCache','/-/object/list','UPDATE_PERMISSION_OBJ','univer-pro.collaboration-client.single-active-unit-service','getValue','OTHER_CLIENT_EDITING','origin','_updateState','constructor','loadOfflineData','_telemetryInfo','_schedule','onTransformSelections','_isEchoedAwaitingChangeset','code','createCollaborator','_changesetSessionId','offline','src','getSnapshotAPIPath','getMemberID','location','emitEvent','_registerDependencies','_substituteUndoStack','send','_entities','subUnitId','status$','_getConfig','change$','_getCtorByUniverInstanceType','submit\x20changeset\x20error!','unitId','_tryEnsureSocket','socket\x20open.','error$','catch','_sendHeartbeat','getLatestCsReqIdBySid','stopTime','UNIVER_SHEET','duration','_updateLocalCache','CLOSE_ROOM','_resendWithTimeout','subscribe','title','_executeRemoteChangeset','HEARTBEAT_INTERVAL','/universer-api/uniscript','_userManagerService','_startCollaboration','override','saveAttachment','prototype','_isPermissionRej','onLocalMutation','selections','_incrementRevisionNumber','[SyncedState]:\x20received\x20rejection.','createSocket','unitId\x20is\x20not\x20found','missingChangesets','encode','getTypeOfUnitDisposed$','COMMENT_UPDATE','_memberService','packageName','[CollaborationSessionService]:\x20socket\x20error','updateMember','includes','onlyLocal','_members$','getCurrentUser','parse','_initMergeInterceptor','cmd','addHandlerCallback','originalMeta','baseRev','GLOBAL_ROOMS_CNT_EXCEEDS','sort','unit-cache-','_onOffline','call','SUBMIT_CHANGESET_TIMEOUT','liveShareNewHost','failed\x20to\x20apply\x20missed\x20changesets!','enableCollaboration','_handleRemoteChangesets','Univer','editingUnit','1.0.0-alpha.0','attachment','LIVESHARE_FETCH_OPERATIONS','FETCH_MISS','_logService','create','_getSignURL','_throwTelemetryCollaborationNewChangeset','filter','decorate','_config','startsWith','sessionStatus$','_exhaustRemoteChangesetQueue','_transformStateCache','16EHGelY','_onConnectionOpen','unitInfo$','sendChangesetTimeout','14tNPNQk','_getCurrentRevision','3fYbYct','getCollabEntity$','/universer-api/snapshot/','JOINING','/fetchmissing?from=','CONFLICT','[FetchingMissState]:\x20not\x20expected\x20to\x20receive\x20ack\x20when\x20`this._awaitingChangeset`\x20is\x20null!','_getSendChangesetTimeout','href','4090670faEnoX','\x0aCurrent:\x20','LIVESHARE_TERMINATE','revision','_collaborationPaused','_replayCachedMutations','_acknowledgeAwaitingIfReady','_instanceService','_state','_timeoutTimer','listRoles','_init','reject','_getUndoStack','\x0aAfter:\x20','session.room-cnt-exceeds','range','from','UPDATE_CURSOR','_onFetchMissResult','get','copyFileMeta','[CollaborationSessionService]','_undoStacks','CHANGESET_REJ','_localCacheService','_remoteChangesetQueue','REMOTE_UNISCRIPT_EXECUTION_ENDPOINT','BASE64','&assign=','_onJoinRoomEvent','[CollaborationSocketService]:\x20failed\x20to\x20create\x20socket!','fetch_missing','requireSession','waitForRoom$','/new_changes','_onRemoteRejected','save\x20fail\x20reason\x20is\x20','conflict','_decreaseWaiting','entries','_unitLoaded$','_getDownloadEndpointURL','__Key__','151978AtjpkB','_showConflictNotification','message$','accept','CHANGESET_SHOULD_RETRY','_sendHeartbeatTimer','NOT_COLLAB','_stopTelemetryCollaborationNewChangeset','snapshot','loadSheet','charCodeAt','_compressMutationService','disableLocalCache','toggleOffline','batchAllowed','requestParams','_waitForHeartbeatResponse','getCurrentSelections','_eventService','updateSnapshot','_undoRedoService','[FetchMissState]','_onRemoteRetry','_httpService','awaiting_with_pending','&to=','UNIVER_DOC','_disableEditing','object','_members','disposeWithMe','_acknowledgeAwaiting','awaiting','backupOfflineData','_transitionLocked','members$','_HTTPService','number','transformChangesets','onRemoteAck','unsubscribe','USERS_LEAVE','onMissingChangesets','_revisionService','_onConnectionFailed','_syncEditingCollabCursor','refreshPermission','uploadFileServerUrl','data','unitID','roomInfos','getImage','_redoStacks','[CollaborationSession]','getUnitType','_networkConditionService','_socketReady','[CollaborationUndoRedoService]','deleteCollaborator','telemetry\x20info\x20is\x20not\x20initialized','_transformIMECache','_entityInit$','onTransformRemoteChangesetByStateCache','getCfgEnableObjInherit','socket\x20close','collaboration-client.auth.needGotoLoginAlert','_commentUpdate$','objectType','reverse','_roomCreated$','URL','[CollaborationController]:\x20invalid\x20univer\x20type:\x20','loadBase','[SyncedState]:\x20invalid\x20calling\x20to\x20`resend`.','6902991phwYOY','unitLoaded$','now','state','PSEUDO_FETCH_MISSING_RESULT','_onRemoteACK','session.join-failed','apply','resolve','_sessionStatus$','removeMember','onMissedChangesetFetched','onRemoteRetry','isArray','set','[PendingState]:\x20unhandled\x20univer\x20type:\x20','/universer-api/oidc/authpage','_onCombEvent','closeSession','putCollaborators','_rescheduleHeartbeat','clear','startTime','/universer-api/file/{fileID}/sign-url','type','patch','connection\x20error','result','online$','find','_createHandler','737tREflX','entityInit$','_univerInstanceService','target','put','_onUserLeave','hostname','min','_candidateSocket','_clearCollaborationTimeoutTimer','resend','1168531rUpIBK','_maxTotalRetryTimeout','c1Prime','toPrimitive','_injector','updatePermissionPoint','_changesetReqId','setCurrentUser','version','getSheetBlock','HEARTBEAT_TIMEOUT','body','/universer-api/comb','1538184rLRsfR','RECV','[PendingState]:\x20received\x20rejection.','userID','allowed','IDLE','text-x','_waitCount','POST','signUrlServerUrl','_fetchMissChangesets','updateCursorEvent','JOIN_ROOM_NOT_EXISTS','/unit/','_joinRoom','function','status','MSG_FOR_ERROR','name','enableAuthServer','[DataLoaderService]','_applyRemoteChangeset','some','fromCollab','COMPRESS_MUTATION_APPLY','People','_state$','close$','actions','_transformSelections','NEW_CHANGESETS','x-univer-host','setConfig','slice','/collaborator','_toggleOffline','push','MUTATION','getImageSourceCache','fetchMiss','CHANGESET_ACK'];_0x4a5d=function(){return _0x327b76;};return _0x4a5d();}let dn=class extends Z{constructor(_0x2e7cea,_0x26f6eb,_0x48f2cb,_0x1cd4a5,_0x88ae93,_0x2ba0d9,_0x506c70,_0x10a2ad,_0x1d3cd8,_0x367aec,_0x43b447,_0x187e37,_0x3494dc,_0x46fe5f){const _0x40a0e9=_0x1fd9ed;super(_0x2e7cea,_0x48f2cb,_0x26f6eb,_0x1cd4a5,_0x88ae93,_0x2ba0d9,_0x506c70,_0x10a2ad,_0x1d3cd8,_0x367aec,_0x43b447,_0x187e37,_0x3494dc,_0x46fe5f),this[_0x40a0e9(0x216)]=_0x2e7cea,this[_0x40a0e9(0x247)]=_0x26f6eb;}async['_init'](){const _0x1bef6d=_0x1fd9ed;let _0x5b0167=await super[_0x1bef6d(0x451)]();return this[_0x1bef6d(0x203)](this['_commandService'][_0x1bef6d(0x2f0)]((_0x5054c1,_0x457283)=>{const _0x426704=_0x1bef6d;if(_0x5054c1[_0x426704(0x247)]!==_0x446ee0[_0x426704(0x28b)]||_0x457283!=null&&_0x457283['fromCollab']||_0x457283!=null&&_0x457283[_0x426704(0x413)]||_0x5054c1['id']!==_0x5e3e51['id'])return;let _0x4e71ce=_0x5054c1['params'];if((_0x4e71ce==null?void 0x0:_0x4e71ce[_0x426704(0x3ec)])!==this[_0x426704(0x216)])return;let _0x42daf8=_0x5054c1,_0x2f266d=this[_0x426704(0x47d)][_0x426704(0x2e7)][_0x426704(0x300)](this[_0x426704(0x47d)][_0x426704(0x2e7)][_0x426704(0x338)]()[_0x426704(0x2ff)])([_0x42daf8],this[_0x426704(0x250)])||[_0x42daf8];this[_0x426704(0x29c)](_0x2f266d[0x0]);})),_0x5b0167;}};dn=z([R(0x3,_0x567a44(_0x129a14)),R(0x4,_0x567a44(_0x525c70)),R(0x5,_0x567a44(_0x45f63e)),R(0x6,_0x567a44(_0x351861)),R(0x7,_0x567a44(L)),R(0x8,_0x1efd8f),R(0x9,_0x43229d),R(0xa,_0x5bccb0),R(0xb,_0x147673),R(0xc,_0x8f0001(H)),R(0xd,_0x8f0001(V))],dn);let fn=class extends Z{constructor(_0x53b926,_0x4895a9,_0x161bba,_0x4d9ca9,_0xc82d42,_0x2a5976,_0x17f37b,_0xf6edac,_0x230a95,_0x32dc33,_0x61eb28,_0x38055b,_0x2857e9,_0x734774,_0x20fd8b){const _0x2fd84c=_0x1fd9ed;super(_0x53b926,_0x161bba,_0x4895a9,_0x4d9ca9,_0xc82d42,_0x2a5976,_0x17f37b,_0x230a95,_0x32dc33,_0x61eb28,_0x38055b,_0x2857e9,_0x734774,_0x20fd8b),this[_0x2fd84c(0x216)]=_0x53b926,this['type']=_0x4895a9,this['_sheetTransformSelectionsService']=_0xf6edac;}['_createHandler'](){const _0x4bc010=_0x1fd9ed;let _0x4b3942=super[_0x4bc010(0x24d)]();return _0x4b3942[_0x4bc010(0x3d7)]=_0x51fa45=>this['_sheetTransformSelectionsService'][_0x4bc010(0x371)](_0x51fa45),_0x4b3942;}async['_init'](){const _0x592958=_0x1fd9ed;let _0x297c38=await super[_0x592958(0x451)]();return this[_0x592958(0x203)](this[_0x592958(0x2dc)][_0x592958(0x2f0)]((_0x3e7f45,_0x183cdf)=>{const _0x404b6d=_0x592958;if(_0x3e7f45['type']!==_0x446ee0[_0x404b6d(0x28b)]||_0x183cdf!=null&&_0x183cdf[_0x404b6d(0x27d)]||_0x183cdf!=null&&_0x183cdf[_0x404b6d(0x413)])return;let _0x3ba612=_0x3e7f45[_0x404b6d(0x296)];if((_0x3ba612==null?void 0x0:_0x3ba612[_0x404b6d(0x3ec)])!==this[_0x404b6d(0x216)])return;let _0xa1bc4d=_0x3e7f45,_0x160b96=this[_0x404b6d(0x47d)]['interceptor'][_0x404b6d(0x300)](this[_0x404b6d(0x47d)]['interceptor'][_0x404b6d(0x338)]()[_0x404b6d(0x2ff)])([_0xa1bc4d],this['_univerInstanceService'])||[_0xa1bc4d];this[_0x404b6d(0x29c)](_0x160b96[0x0]);})),_0x297c38;}};fn=z([R(0x3,_0x567a44(_0x129a14)),R(0x4,_0x567a44(_0x525c70)),R(0x5,_0x567a44(_0x45f63e)),R(0x6,_0x567a44(_0x351861)),R(0x7,_0x567a44(zt)),R(0x8,_0x567a44(L)),R(0x9,_0x1efd8f),R(0xa,_0x43229d),R(0xb,_0x5bccb0),R(0xc,_0x147673),R(0xd,_0x8f0001(H)),R(0xe,_0x8f0001(V))],fn);let pn=class extends Z{constructor(_0x7bc68,_0x4022a7,_0x2298bc,_0x25099e,_0x358458,_0x3bb250,_0x312945,_0x47fbe8,_0x1d9534,_0x116015,_0x450243,_0x4e33a1,_0x181868,_0x381637){const _0x5a6c59=_0x1fd9ed;super(_0x7bc68,_0x2298bc,_0x4022a7,_0x25099e,_0x358458,_0x3bb250,_0x312945,_0x47fbe8,_0x1d9534,_0x116015,_0x450243,_0x4e33a1,_0x181868,_0x381637),this[_0x5a6c59(0x216)]=_0x7bc68,this[_0x5a6c59(0x247)]=_0x4022a7;}async['_init'](){const _0x513ad8=_0x1fd9ed;let _0x29619d=await super[_0x513ad8(0x451)]();return this[_0x513ad8(0x203)](this['_commandService'][_0x513ad8(0x2f0)]((_0x45d419,_0x567a45)=>{const _0x40267f=_0x513ad8;if(_0x45d419['type']!==_0x446ee0['MUTATION']||_0x567a45!=null&&_0x567a45['fromCollab']||_0x567a45!=null&&_0x567a45[_0x40267f(0x413)])return;let _0x38f0ee=_0x45d419[_0x40267f(0x296)];if((_0x38f0ee==null?void 0x0:_0x38f0ee['unitId'])!==this[_0x40267f(0x216)])return;let _0x5cd99e=_0x45d419,_0x43a04e=this[_0x40267f(0x47d)]['interceptor'][_0x40267f(0x300)](this[_0x40267f(0x47d)]['interceptor'][_0x40267f(0x338)]()[_0x40267f(0x2ff)])([_0x5cd99e],this['_univerInstanceService'])||[_0x5cd99e];this[_0x40267f(0x29c)](_0x43a04e[0x0]);})),_0x29619d;}};pn=z([R(0x3,_0x567a44(_0x129a14)),R(0x4,_0x567a44(_0x525c70)),R(0x5,_0x567a44(_0x45f63e)),R(0x6,_0x567a44(_0x351861)),R(0x7,_0x567a44(L)),R(0x8,_0x1efd8f),R(0x9,_0x43229d),R(0xa,_0x5bccb0),R(0xb,_0x147673),R(0xc,_0x8f0001(H)),R(0xd,_0x8f0001(V))],pn);const mn=_0x2d6602('univer-pro.collaboration-client.network-condition.service');function hn(_0x1cfa20){const _0x22f318=_0x1fd9ed;let _0x1b5ae1=_0x1cfa20[_0x22f318(0x215)],_0x411502=JSON[_0x22f318(0x416)](_0x1b5ae1);switch(_0x411502[_0x22f318(0x418)]){case _0x525d5f[_0x22f318(0x3ac)]:case _0x525d5f[_0x22f318(0x334)]:{let _0x35af38=_0x411502[_0x22f318(0x31b)];return{..._0x411502,'data':_0x35af38,'cmd':_0x411502[_0x22f318(0x418)]};}case _0x525d5f[_0x22f318(0x31c)]:{let _0x59dff4=_0x411502['joinRsp'];return{..._0x411502,'data':_0x59dff4,'cmd':_0x411502[_0x22f318(0x418)]};}case _0x525d5f[_0x22f318(0x267)]:{let _0x3849cc=_0x411502['collaMsg'];switch(_0x3849cc['eventID']){case _0x59a8f1['PERMISSION_REJ']:var _0x3be04f;return{..._0x411502,'data':{..._0x3849cc,'data':(_0x3be04f=_0x3849cc[_0x22f318(0x2ec)])==null?void 0x0:_0x3be04f['cs']},'cmd':_0x411502[_0x22f318(0x418)]};case _0x59a8f1[_0x22f318(0x28e)]:var _0x329f0e;return{..._0x411502,'data':{..._0x3849cc,'data':(_0x329f0e=_0x3849cc['csAckEvent'])==null?void 0x0:_0x329f0e['cs']},'cmd':_0x411502['cmd']};case _0x59a8f1[_0x22f318(0x284)]:var _0xabd0c6;return{..._0x411502,'data':{..._0x3849cc,'data':(_0xabd0c6=_0x3849cc[_0x22f318(0x395)])==null?void 0x0:_0xabd0c6['cs']},'cmd':_0x411502[_0x22f318(0x418)]};case _0x59a8f1['CHANGESET_REJ']:var _0x358928;return{..._0x411502,'data':{..._0x3849cc,'data':(_0x358928=_0x3849cc[_0x22f318(0x318)])==null?void 0x0:_0x358928['cs']},'cmd':_0x411502[_0x22f318(0x418)]};case _0x59a8f1[_0x22f318(0x476)]:var _0x75c8c7;return{..._0x411502,'data':{..._0x3849cc,'data':(_0x75c8c7=_0x3849cc['csShouldRetryEvent'])==null?void 0x0:_0x75c8c7['cs']},'cmd':_0x411502[_0x22f318(0x418)]};case _0x59a8f1[_0x22f318(0x458)]:return{..._0x411502,'data':{..._0x3849cc,'data':_0x3849cc[_0x22f318(0x271)]},'cmd':_0x411502['cmd']};case _0x59a8f1[_0x22f318(0x3ba)]:return{..._0x411502,'data':{..._0x3849cc,'data':_0x3849cc['joinEvent']},'cmd':_0x411502[_0x22f318(0x418)]};case _0x59a8f1[_0x22f318(0x20e)]:return{..._0x411502,'data':{..._0x3849cc,'data':_0x3849cc[_0x22f318(0x325)]},'cmd':_0x411502[_0x22f318(0x418)]};case _0x59a8f1['LIVESHARE_NEW_HOST']:return{..._0x411502,'data':{..._0x3849cc,'data':_0x3849cc[_0x22f318(0x422)]},'cmd':_0x411502['cmd']};case _0x59a8f1[_0x22f318(0x42a)]:case _0x59a8f1[_0x22f318(0x38f)]:return{..._0x411502,'data':{..._0x3849cc,'data':_0x3849cc['liveShareOperation']},'cmd':_0x411502[_0x22f318(0x418)]};case _0x59a8f1[_0x22f318(0x448)]:return{..._0x411502,'data':{..._0x3849cc,'data':_0x3849cc[_0x22f318(0x422)]},'cmd':_0x411502[_0x22f318(0x418)]};case _0x59a8f1['MSG_FOR_ERROR']:return{..._0x411502,'data':_0x3849cc,'cmd':_0x411502[_0x22f318(0x418)]};case _0x59a8f1[_0x22f318(0x40d)]:return{..._0x411502,'data':{..._0x3849cc,'data':_0x3849cc['commentUpdateEvent']},'cmd':_0x411502[_0x22f318(0x418)]};case _0x59a8f1[_0x22f318(0x3cd)]:return{..._0x411502,'data':{..._0x3849cc,'data':_0x3849cc[_0x22f318(0x328)]},'cmd':_0x411502[_0x22f318(0x418)]};case _0x59a8f1[_0x22f318(0x2cf)]:return{..._0x411502,'data':{..._0x3849cc,'data':_0x3849cc['shouldCloseConn']},'cmd':_0x411502[_0x22f318(0x418)]};case _0x59a8f1[_0x22f318(0x38a)]:return{..._0x411502,'data':{..._0x3849cc,'data':_0x3849cc[_0x22f318(0x295)]},'cmd':_0x411502[_0x22f318(0x418)]};default:return _0x411502;}}default:return _0x411502;}}function gn(_0xcaf1c0){const _0x45e4d4=_0x1fd9ed;switch(_0xcaf1c0[_0x45e4d4(0x418)]){case _0x525d5f[_0x45e4d4(0x3ac)]:case _0x525d5f[_0x45e4d4(0x334)]:return JSON[_0x45e4d4(0x2b9)]({'cmd':_0xcaf1c0[_0x45e4d4(0x418)],'routeKey':_0xcaf1c0['routeKey']});case _0x525d5f[_0x45e4d4(0x38b)]:{let _0x4265ec;switch(_0xcaf1c0[_0x45e4d4(0x215)][_0x45e4d4(0x2b3)]){case _0x59a8f1['UPDATE_CURSOR']:_0x4265ec={'eventID':_0x59a8f1[_0x45e4d4(0x458)],'updateCursorEvent':_0xcaf1c0['data']['data']};break;case _0x59a8f1[_0x45e4d4(0x20e)]:_0x4265ec={'eventID':_0x59a8f1['USERS_LEAVE'],'leaveEvent':_0xcaf1c0[_0x45e4d4(0x215)][_0x45e4d4(0x215)]};break;case _0x59a8f1['USERS_ENTER']:_0x4265ec={'eventID':_0x59a8f1['USERS_ENTER'],'joinEvent':_0xcaf1c0['data'][_0x45e4d4(0x215)]};break;case _0x59a8f1[_0x45e4d4(0x2e5)]:_0x4265ec={'eventID':_0x59a8f1['LIVESHARE_NEW_HOST'],'liveShareNewHost':_0xcaf1c0[_0x45e4d4(0x215)][_0x45e4d4(0x215)]};break;case _0x59a8f1[_0x45e4d4(0x38f)]:_0x4265ec={'eventID':_0x59a8f1['LIVESHARE_OPERATION'],'liveShareOperation':_0xcaf1c0['data'][_0x45e4d4(0x215)]};break;case _0x59a8f1[_0x45e4d4(0x448)]:_0x4265ec={'eventID':_0x59a8f1[_0x45e4d4(0x448)],'liveShareTerminate':_0xcaf1c0[_0x45e4d4(0x215)][_0x45e4d4(0x215)]};break;case _0x59a8f1['LIVESHARE_REQUEST_HOST']:_0x4265ec={'eventID':_0x59a8f1[_0x45e4d4(0x2ce)],'liveShareRequestHost':_0xcaf1c0[_0x45e4d4(0x215)][_0x45e4d4(0x215)]};break;case _0x59a8f1[_0x45e4d4(0x42a)]:_0x4265ec={'eventID':_0x59a8f1[_0x45e4d4(0x42a)]};break;default:_0x4265ec={'eventID':_0xcaf1c0[_0x45e4d4(0x215)][_0x45e4d4(0x2b3)]};}return JSON[_0x45e4d4(0x2b9)]({'cmd':_0xcaf1c0[_0x45e4d4(0x418)],'routeKey':_0xcaf1c0[_0x45e4d4(0x291)],'collaMsg':_0x4265ec});}case _0x525d5f[_0x45e4d4(0x31c)]:return JSON[_0x45e4d4(0x2b9)]({'cmd':_0xcaf1c0[_0x45e4d4(0x418)],'routeKey':_0xcaf1c0['routeKey'],'joinReq':_0xcaf1c0[_0x45e4d4(0x215)]});case _0x525d5f[_0x45e4d4(0x32a)]:return JSON[_0x45e4d4(0x2b9)]({'cmd':_0xcaf1c0[_0x45e4d4(0x418)],'routeKey':_0xcaf1c0['routeKey'],'leaveReq':_0xcaf1c0[_0x45e4d4(0x215)]});default:throw Error('[serializeCombRequest]:\x20should\x20not\x20fall\x20into\x20default\x20branch!');}}const _n=_0x2d6602(_0x1fd9ed(0x2bc));function vn(_0x5eb05f,_0x25637a,_0x219140){const _0x355a67=_0x1fd9ed;return _0x5eb05f+'/'+_0x25637a+_0x355a67(0x273)+_0x219140+_0x355a67(0x469);}let yn=class extends _0x3a77f3{constructor(_0x236649,_0x1f0744,_0x203eea,_0x2278d3,_0x179d13){const _0x1ddcef=_0x1fd9ed;super(),this[_0x1ddcef(0x25d)]=_0x236649,this[_0x1ddcef(0x1fc)]=_0x1f0744,this[_0x1ddcef(0x3b0)]=_0x203eea,this[_0x1ddcef(0x42c)]=_0x2278d3,this[_0x1ddcef(0x384)]=_0x179d13;}['_doCreateSocket'](_0x14b3ef){const _0x1cfa55=_0x1fd9ed;let _0x33e43d=this[_0x1cfa55(0x25d)][_0x1cfa55(0x45a)](_0x2e768a);if(!_0x33e43d)throw Error(_0x1cfa55(0x2ae));let _0x903347=_0x33e43d[_0x1cfa55(0x408)](_0x14b3ef);if(!_0x903347)throw Error(_0x1cfa55(0x465));let _0xc891df=new _0x51e9ca(),_0x2755e4=new _0x284279();_0xc891df[_0x1cfa55(0x2ef)](_0x903347['close$'][_0x1cfa55(0x3f9)](_0x259df4=>_0x2755e4[_0x1cfa55(0x3a7)](_0x259df4))),_0xc891df['add'](_0x418282(()=>_0x2755e4[_0x1cfa55(0x394)]()));let _0x34287c=new _0x284279();_0xc891df[_0x1cfa55(0x2ef)](_0x903347[_0x1cfa55(0x3ef)][_0x1cfa55(0x3f9)](_0xc70c10=>_0x34287c[_0x1cfa55(0x3a7)](_0xc70c10))),_0xc891df[_0x1cfa55(0x2ef)](_0x418282(()=>_0x34287c[_0x1cfa55(0x394)]()));let _0x30dca0=new _0x284279();_0xc891df[_0x1cfa55(0x2ef)](_0x903347['message$'][_0x1cfa55(0x3f9)](_0xaeef8=>{let _0xe1b19e=hn(_0xaeef8);_0x30dca0['next'](_0xe1b19e);})),_0xc891df[_0x1cfa55(0x2ef)](_0x418282(()=>_0x30dca0[_0x1cfa55(0x394)]()));let _0x374076,_0x40882f=()=>{const _0x1f1b7b=_0x1cfa55;_0x34287c[_0x1f1b7b(0x3a7)](new Event(_0x1f1b7b(0x249))),_0x2755e4[_0x1f1b7b(0x3a7)](new Event(_0x1f1b7b(0x249))),_0x374076[_0x1f1b7b(0x396)]();};return _0x374076={'memberID':'','close$':_0x2755e4[_0x1cfa55(0x2bb)](),'error$':_0x34287c[_0x1cfa55(0x2bb)](),'open$':_0x903347[_0x1cfa55(0x30e)],'message$':_0x30dca0[_0x1cfa55(0x2bb)](),'send':_0x44aa9b=>{const _0x527a7f=_0x1cfa55;if(_0x44aa9b[_0x527a7f(0x418)]===_0x525d5f[_0x527a7f(0x38b)]){if(_0x44aa9b['data']['eventID']===_0x59a8f1[_0x527a7f(0x3b8)]){this['_submitChangeset'](_0x374076,_0x44aa9b['data'])[_0x527a7f(0x3f0)](_0xc32705=>{const _0x1a30b3=_0x527a7f;this[_0x1a30b3(0x42c)][_0x1a30b3(0x32c)](_0xc32705),_0x40882f();});return;}if(_0x44aa9b['data']['eventID']===_0x59a8f1['FETCH_MISSING']){let _0x34ba33=_0x44aa9b[_0x527a7f(0x215)];this['_fetchMissChangesets'](_0x34ba33)['then'](_0x4d72e8=>{const _0x4c2793=_0x527a7f;_0x30dca0['next']({'cmd':_0x525d5f[_0x4c2793(0x267)],'code':_0x404851['OK'],'routeKey':_0x34ba33['data'][_0x4c2793(0x216)],'routeType':'','data':{'eventID':_0x59a8f1['PSEUDO_FETCH_MISSING_RESULT'],'data':{'changesets':_0x4d72e8}}});})[_0x527a7f(0x3f0)](_0x2db87a=>{const _0x233c17=_0x527a7f;this['_logService'][_0x233c17(0x32c)](_0x2db87a),_0x40882f();});return;}}_0x903347['send'](gn(_0x44aa9b));},'close':()=>{const _0x406e0a=_0x1cfa55;_0x903347[_0x406e0a(0x396)](),_0xc891df[_0x406e0a(0x3b9)]();}},_0x374076;}async[_0x1fd9ed(0x358)](_0x459375,_0x302a18){const _0x23cf82=_0x1fd9ed;var _0x399286;let {unitType:_0x34abf5,unitID:_0x4df021,changeset:_0x40f93a}=_0x302a18[_0x23cf82(0x215)],_0xcf582e={'unitID':_0x4df021,'memberID':_0x459375[_0x23cf82(0x378)],'type':_0x34abf5,'changeset':_0x395269(_0x40f93a)},_0xf0553c=this['_configService'][_0x23cf82(0x349)](F),_0x31dbae=vn((_0x399286=_0xf0553c==null?void 0x0:_0xf0553c['collabSubmitChangesetUrl'])==null?_0x23cf82(0x265):_0x399286,_0x34abf5,_0x4df021);try{await this[_0x23cf82(0x1fc)][_0x23cf82(0x2a9)](_0x31dbae,{'body':_0xcf582e});}catch(_0xfcb490){throw this[_0x23cf82(0x42c)][_0x23cf82(0x32c)](_0x23cf82(0x21a),_0x23cf82(0x3eb)),_0xfcb490;}}async[_0x1fd9ed(0x270)](_0x13794c){const _0xf07a7=_0x1fd9ed;let {unitID:_0x184953,from:_0x11869e,to:_0x36753c,unitType:_0x157432}=_0x13794c['data'];return(await this[_0xf07a7(0x384)][_0xf07a7(0x324)]({'metadata':void 0x0},{'unitID':_0x184953,'type':_0x157432,'from':_0x11869e,'to':_0x36753c}))[_0xf07a7(0x383)][_0xf07a7(0x2a2)](_0x1d08c9=>((_0x1d08c9[_0xf07a7(0x3b2)]===null||_0x1d08c9[_0xf07a7(0x3b2)]===void 0x0)&&(_0x1d08c9[_0xf07a7(0x3b2)]=[]),_0x1d08c9));}};yn=z([R(0x0,_0x567a44(_0x129a14)),R(0x1,_0x567a44(_0x2d05b0)),R(0x2,_0x9f4c9b),R(0x3,_0x43229d),R(0x4,_0x30cc59)],yn);let Q=class extends _0x3a77f3{get[_0x1fd9ed(0x39b)](){const _0x266597=_0x1fd9ed;return this[_0x266597(0x2b2)][_0x266597(0x3cf)]();}constructor(_0xc7359b,_0x587548,_0x6d41e6,_0x35fb4a,_0x3c68de,_0x2a947d){const _0x6e0dae=_0x1fd9ed;super(),this[_0x6e0dae(0x25d)]=_0xc7359b,this[_0x6e0dae(0x42c)]=_0x587548,this[_0x6e0dae(0x3b0)]=_0x6d41e6,this[_0x6e0dae(0x330)]=_0x35fb4a,this[_0x6e0dae(0x33b)]=_0x3c68de,this['_networkConditionService']=_0x2a947d,I(this,_0x6e0dae(0x2b2),new _0x32f5fb(void 0x0)),I(this,_0x6e0dae(0x364),this[_0x6e0dae(0x2b2)][_0x6e0dae(0x2bb)]()),I(this,_0x6e0dae(0x256),null),I(this,_0x6e0dae(0x2ea),new Map()),I(this,_0x6e0dae(0x35f),new _0x32f5fb(0x0)),I(this,_0x6e0dae(0x3e7),this[_0x6e0dae(0x35f)][_0x6e0dae(0x2bb)]()),I(this,'_socketReady',!0x1),I(this,_0x6e0dae(0x29a),void 0x0),I(this,_0x6e0dae(0x3a8),0x0),I(this,_0x6e0dae(0x33a),null),I(this,_0x6e0dae(0x477),void 0x0),I(this,'_timeoutTimer',void 0x0),this['_listenToNetworkCondition']();}['_listenToNetworkCondition'](){const _0x49a958=_0x1fd9ed;this[_0x49a958(0x21c)]&&this[_0x49a958(0x203)](this[_0x49a958(0x21c)][_0x49a958(0x24b)][_0x49a958(0x3f9)](_0x274e77=>{const _0x16fca0=_0x49a958;_0x274e77&&!this[_0x16fca0(0x39b)]&&this['reconnect'](),_0x274e77||this[_0x16fca0(0x41f)]();}));}['dispose'](){const _0x1bd33f=_0x1fd9ed;var _0x217c5b;super['dispose'](),(_0x217c5b=this['_socketMessageSubscription'])==null||_0x217c5b['unsubscribe'](),this['_socketMessageSubscription']=null,this[_0x1bd33f(0x2a5)](),this[_0x1bd33f(0x3bc)](),this[_0x1bd33f(0x343)](),this['_sessions'][_0x1bd33f(0x365)](_0x59d92b=>_0x59d92b[_0x1bd33f(0x3b9)]()),this[_0x1bd33f(0x2ea)][_0x1bd33f(0x244)](),this['_status$'][_0x1bd33f(0x394)]();}async[_0x1fd9ed(0x467)](_0x42213a){const _0x524144=_0x1fd9ed;if(this[_0x524144(0x2ea)]['has'](_0x42213a))return this['_sessions'][_0x524144(0x45a)](_0x42213a);this[_0x524144(0x3ed)]();let _0x34d561=this[_0x524144(0x25d)][_0x524144(0x2de)](It,_0x42213a,this[_0x524144(0x2b2)]['asObservable']());return this[_0x524144(0x2ea)]['set'](_0x42213a,_0x34d561),_0x34d561;}[_0x1fd9ed(0x241)](_0x1ecc91){const _0x3de308=_0x1fd9ed;let _0xa67ed7=this[_0x3de308(0x2ea)][_0x3de308(0x45a)](_0x1ecc91);if(_0xa67ed7&&(this[_0x3de308(0x2ea)][_0x3de308(0x359)](_0x1ecc91),_0xa67ed7[_0x3de308(0x396)]()),!this['_sessions'][_0x3de308(0x38c)]){var _0x1648e4;(_0x1648e4=this[_0x3de308(0x39b)])==null||_0x1648e4[_0x3de308(0x396)]();}}['reconnect'](){const _0x46bab1=_0x1fd9ed;this[_0x46bab1(0x3a8)]=0x0,this[_0x46bab1(0x2a5)](),this[_0x46bab1(0x3b3)]();}[_0x1fd9ed(0x2a5)](){const _0x93a83a=_0x1fd9ed;this[_0x93a83a(0x29a)]!=null&&(clearTimeout(this[_0x93a83a(0x29a)]),this[_0x93a83a(0x29a)]=null);}async[_0x1fd9ed(0x32e)](){const _0x33e38c=_0x1fd9ed;var _0x5d8c85;let _0x1e0a45=this[_0x33e38c(0x3b0)][_0x33e38c(0x349)](F),_0xb30f7b=(_0x5d8c85=_0x1e0a45==null?void 0x0:_0x1e0a45[_0x33e38c(0x2c5)])==null?_t:_0x5d8c85,_0x1677fb=await this[_0x33e38c(0x330)][_0x33e38c(0x408)](_0xb30f7b);return this[_0x33e38c(0x256)]=_0x1677fb,_0x1677fb;}async[_0x1fd9ed(0x3ed)](){const _0x4d177e=_0x1fd9ed;try{var _0x3da57e,_0x45f060;let _0x267140=(_0x3da57e=(_0x45f060=this[_0x4d177e(0x39b)])==null?this[_0x4d177e(0x256)]:_0x45f060)==null?await this[_0x4d177e(0x32e)]():_0x3da57e;if(_0x267140){var _0x2f365c;let _0x20ab56=_0x267140[_0x4d177e(0x3e4)];_0x267140['send']=_0x477447=>(_0x477447[_0x4d177e(0x418)]!==_0x525d5f[_0x4d177e(0x32a)]&&this[_0x4d177e(0x243)](),_0x20ab56[_0x4d177e(0x236)](_0x267140,[_0x477447])),(_0x2f365c=this[_0x4d177e(0x33a)])==null||_0x2f365c['unsubscribe'](),this['_socketMessageSubscription']=null,this[_0x4d177e(0x33a)]=_0x267140['message$'][_0x4d177e(0x3f9)](_0x45aa1c=>this[_0x4d177e(0x2f1)](_0x267140,_0x45aa1c)),_0x267140[_0x4d177e(0x3ef)]['pipe'](_0x2d672e(0x1))[_0x4d177e(0x3f9)](_0x52d322=>this[_0x4d177e(0x42c)][_0x4d177e(0x32c)](_0x4d177e(0x410),_0x52d322)),_0x267140[_0x4d177e(0x30e)][_0x4d177e(0x355)](_0x2d672e(0x1))['subscribe'](()=>{const _0x846e9=_0x4d177e;this[_0x846e9(0x438)](_0x267140);}),_0x267140[_0x4d177e(0x281)][_0x4d177e(0x355)](_0x2d672e(0x1))[_0x4d177e(0x3f9)](_0x5e08a2=>{const _0x58794d=_0x4d177e;this[_0x58794d(0x42c)][_0x58794d(0x35b)](_0x58794d(0x45c),_0x58794d(0x225),_0x5e08a2),this[_0x58794d(0x211)]();});}}catch(_0x217c46){this['_logService']['error'](_0x217c46),this['_onConnectionFailed']();}}[_0x1fd9ed(0x438)](_0xae645a){const _0x279812=_0x1fd9ed;this['_logService'][_0x279812(0x35b)]('[CollaborationSessionService]',_0x279812(0x3ee)),_0xae645a[_0x279812(0x3e4)]({'cmd':_0x525d5f[_0x279812(0x334)]}),this[_0x279812(0x243)]();}[_0x1fd9ed(0x41f)](){const _0x4399d8=_0x1fd9ed;this[_0x4399d8(0x21d)]=!0x1,this[_0x4399d8(0x256)]=null,this[_0x4399d8(0x35f)][_0x4399d8(0x3a7)](0x2),this[_0x4399d8(0x2b2)]['next'](null),this[_0x4399d8(0x3bc)](),this[_0x4399d8(0x343)]();}[_0x1fd9ed(0x211)](){const _0x109ea1=_0x1fd9ed;var _0x80aecc;this['_onOffline'](),this['_retryCount']<((_0x80aecc=this['_configService']['getConfig'](_0x109ea1(0x33d)))==null?0x3:_0x80aecc)?(this[_0x109ea1(0x33b)][_0x109ea1(0x3e1)]({'id':'SOCKET_FAILED_RETRY'}),this[_0x109ea1(0x3b3)]()):this[_0x109ea1(0x33b)][_0x109ea1(0x3e1)]({'id':_0x109ea1(0x30a)});}[_0x1fd9ed(0x3b3)](){const _0x323203=_0x1fd9ed;var _0x4514f3;let _0x1c21f5=this[_0x323203(0x3a8)],_0x13556f=this[_0x323203(0x3b0)][_0x323203(0x349)](F),_0x55bf3c=_0x1c21f5===0x0?0x0:((_0x4514f3=_0x13556f==null?void 0x0:_0x13556f[_0x323203(0x360)])==null?0x4e20:_0x4514f3)*0x2**_0x1c21f5;this[_0x323203(0x29a)]=setTimeout(()=>{const _0x413560=_0x323203;clearTimeout(this['_retryConnectingTimer']),this[_0x413560(0x29a)]=null,this['_tryEnsureSocket']();},_0x55bf3c),this[_0x323203(0x3a8)]+=0x1;}[_0x1fd9ed(0x2f1)](_0x4503e0,_0x447c23){const _0x310b9b=_0x1fd9ed;let {cmd:_0x382580}=_0x447c23;_0x382580===_0x525d5f[_0x310b9b(0x334)]&&!this[_0x310b9b(0x21d)]&&(_0x4503e0['memberID']=_0x447c23[_0x310b9b(0x215)][_0x310b9b(0x378)],this[_0x310b9b(0x2b2)][_0x310b9b(0x3a7)](_0x4503e0),this[_0x310b9b(0x35f)]['next'](0x3),this[_0x310b9b(0x21d)]=!0x0,this[_0x310b9b(0x256)]=null),_0x382580===_0x525d5f[_0x310b9b(0x3ac)]&&this[_0x310b9b(0x3bc)](),this[_0x310b9b(0x243)]();}[_0x1fd9ed(0x243)](){const _0x1b3b6a=_0x1fd9ed;var _0x133041;this[_0x1b3b6a(0x343)](),this['_sendHeartbeatTimer']=setTimeout(()=>this['_sendHeartbeat'](),(_0x133041=this['_configService'][_0x1b3b6a(0x349)](_0x1b3b6a(0x3fc)))==null?0x7530:_0x133041);}[_0x1fd9ed(0x3f1)](){const _0x484208=_0x1fd9ed;this['_socket']['send']({'cmd':_0x525d5f[_0x484208(0x3ac)]}),this[_0x484208(0x1f5)]();}[_0x1fd9ed(0x1f5)](){const _0x233a65=_0x1fd9ed;var _0x41fb8e;this[_0x233a65(0x44f)]=setTimeout(()=>this['_onConnectionFailed'](),(_0x41fb8e=this[_0x233a65(0x3b0)]['getConfig'](_0x233a65(0x263)))==null?xt:_0x41fb8e);}['_clearHeartbeatTimer'](){const _0x1ba61d=_0x1fd9ed;this['_sendHeartbeatTimer']!=null&&(clearTimeout(this[_0x1ba61d(0x477)]),this['_sendHeartbeatTimer']=null);}[_0x1fd9ed(0x3bc)](){const _0x21ee3b=_0x1fd9ed;this['_timeoutTimer']!=null&&(clearTimeout(this[_0x21ee3b(0x44f)]),this[_0x21ee3b(0x44f)]=null);}};Q=z([R(0x0,_0x567a44(_0x129a14)),R(0x1,_0x43229d),R(0x2,_0x9f4c9b),R(0x3,_n),R(0x4,_0x567a44(L)),R(0x5,_0x8f0001(mn))],Q);let bn=class extends _0x3431d7{constructor(_0x11faa6,_0x23fa09,_0xfc8a27,_0x320032){const _0x2e0639=_0x1fd9ed;var _0x2c7595;super(),this[_0x2e0639(0x25d)]=_0x11faa6,this[_0x2e0639(0x2a4)]=_0x23fa09,this[_0x2e0639(0x3b0)]=_0xfc8a27,this[_0x2e0639(0x250)]=_0x320032,I(this,_0x2e0639(0x3e5),new Map()),I(this,'_entityInit$',new _0x284279()),I(this,_0x2e0639(0x24f),this[_0x2e0639(0x222)]['asObservable']()),((_0x2c7595=this[_0x2e0639(0x3b0)]['getConfig'](_0x2e0639(0x2cb)))==null?void 0x0:_0x2c7595[_0x2e0639(0x424)])!==!0x1&&this['_init']();}[_0x1fd9ed(0x3b9)](){const _0x38a044=_0x1fd9ed;super[_0x38a044(0x3b9)](),this['_entities'][_0x38a044(0x365)](_0xfccfe7=>_0xfccfe7[_0x38a044(0x3b9)]()),this[_0x38a044(0x3e5)]['clear']();}[_0x1fd9ed(0x2d7)](_0x39d09e){const _0x53f6f0=_0x1fd9ed;var _0xf19f3f;return(_0xf19f3f=this[_0x53f6f0(0x3e5)][_0x53f6f0(0x45a)](_0x39d09e))==null?null:_0xf19f3f;}[_0x1fd9ed(0x43e)](_0x138024){const _0x3f2939=_0x1fd9ed;let _0x5b46eb=this[_0x3f2939(0x2d7)](_0x138024);return _0x5b46eb?_0x563880(_0x5b46eb):this[_0x3f2939(0x222)]['pipe'](_0x2fe858(_0x2ac217=>_0x2ac217[_0x3f2939(0x216)]===_0x138024));}[_0x1fd9ed(0x36f)](_0x328cb5){return _0x4a2f1b(this['getCollabEntity$'](_0x328cb5)['pipe'](_0x354970(()=>void 0x0)));}[_0x1fd9ed(0x451)](){const _0x43f62f=_0x1fd9ed;this['_univerInstanceService'][_0x43f62f(0x304)](_0x10286b['UNIVER_SHEET'])[_0x43f62f(0x355)](_0x1223c0(this[_0x43f62f(0x31e)]),_0x3c3ccd(0x10))[_0x43f62f(0x3f9)](async _0x324466=>{const _0x561986=_0x43f62f;let _0x2a3502=_0x324466[_0x561986(0x369)][_0x561986(0x3c3)](),_0x1a4072=await this[_0x561986(0x3ff)](_0x2a3502,_0x10286b[_0x561986(0x3f4)]);this[_0x561986(0x3e5)][_0x561986(0x23d)](_0x2a3502,_0x1a4072);}),this[_0x43f62f(0x250)][_0x43f62f(0x304)](_0x10286b[_0x43f62f(0x1ff)])[_0x43f62f(0x355)](_0x1223c0(this['dispose$']),_0x3c3ccd(0x10))[_0x43f62f(0x355)](_0x2fe858(_0xe62bd9=>!_0xe62bd9[_0x43f62f(0x369)][_0x43f62f(0x3c3)]()[_0x43f62f(0x433)]('__')))[_0x43f62f(0x3f9)](async _0x196afc=>{const _0x55b9ff=_0x43f62f;let _0x4f751d=_0x196afc[_0x55b9ff(0x369)][_0x55b9ff(0x3c3)](),_0x4e7a5a=await this['_startCollaboration'](_0x4f751d,_0x10286b['UNIVER_DOC']);this['_entities'][_0x55b9ff(0x23d)](_0x4f751d,_0x4e7a5a);}),this['_univerInstanceService']['getTypeOfUnitAdded$'](_0x10286b[_0x43f62f(0x2b0)])[_0x43f62f(0x355)](_0x1223c0(this[_0x43f62f(0x31e)]),_0x3c3ccd(0x10))[_0x43f62f(0x3f9)](async _0x48b01a=>{const _0x1f005a=_0x43f62f;let _0x27325a=_0x48b01a[_0x1f005a(0x369)][_0x1f005a(0x3c3)](),_0x5f26d6=await this[_0x1f005a(0x3ff)](_0x27325a,_0x10286b['UNIVER_SLIDE']);this[_0x1f005a(0x3e5)][_0x1f005a(0x23d)](_0x27325a,_0x5f26d6);}),this[_0x43f62f(0x250)][_0x43f62f(0x304)](_0x10286b[_0x43f62f(0x2b6)])[_0x43f62f(0x355)](_0x1223c0(this['dispose$']),_0x3c3ccd(0x10))[_0x43f62f(0x3f9)](async _0x12f88=>{const _0x192ae7=_0x43f62f;let _0x2544dd=_0x12f88[_0x192ae7(0x369)][_0x192ae7(0x3c3)](),_0x7d19dd=await this[_0x192ae7(0x3ff)](_0x2544dd,_0x10286b[_0x192ae7(0x2b6)]);this['_entities'][_0x192ae7(0x23d)](_0x2544dd,_0x7d19dd);}),_0x5a212e(this['_univerInstanceService'][_0x43f62f(0x40c)](_0x10286b[_0x43f62f(0x3f4)]),this[_0x43f62f(0x250)][_0x43f62f(0x40c)](_0x10286b[_0x43f62f(0x1ff)]),this[_0x43f62f(0x250)][_0x43f62f(0x40c)](_0x10286b['UNIVER_SLIDE']),this[_0x43f62f(0x250)][_0x43f62f(0x40c)](_0x10286b[_0x43f62f(0x2b6)]))[_0x43f62f(0x355)](_0x1223c0(this[_0x43f62f(0x31e)]))[_0x43f62f(0x3f9)](_0x1bf750=>{const _0x50f576=_0x43f62f;let _0x2b1301=_0x1bf750[_0x50f576(0x3c3)](),_0x395924=this[_0x50f576(0x3e5)][_0x50f576(0x45a)](_0x2b1301);_0x395924&&(_0x395924['dispose'](),this[_0x50f576(0x3e5)][_0x50f576(0x359)](_0x2b1301));});}async[_0x1fd9ed(0x3ff)](_0x594466,_0x117f17){const _0x65e7ab=_0x1fd9ed;let _0x1c25d6=await this[_0x65e7ab(0x2a4)][_0x65e7ab(0x467)](_0x594466),_0x1d3d3d=this[_0x65e7ab(0x25d)][_0x65e7ab(0x2de)](this[_0x65e7ab(0x3ea)](_0x117f17),_0x594466,_0x117f17,_0x1c25d6);return await _0x1d3d3d[_0x65e7ab(0x389)](),this['_entityInit$'][_0x65e7ab(0x3a7)](_0x1d3d3d),_0x1d3d3d;}[_0x1fd9ed(0x3ea)](_0x53ce80){const _0x151fa0=_0x1fd9ed;switch(_0x53ce80){case _0x10286b['UNIVER_DOC']:return un;case _0x10286b['UNIVER_SHEET']:return fn;case _0x10286b['UNIVER_SLIDE']:return pn;case _0x10286b[_0x151fa0(0x2b6)]:return dn;default:throw Error(_0x151fa0(0x22c)+_0x53ce80);}}};bn=z([R(0x0,_0x567a44(_0x129a14)),R(0x1,_0x567a44(Q)),R(0x2,_0x9f4c9b),R(0x3,_0x1efd8f)],bn);var xn=_0x1fd9ed(0x366),Sn=_0x1fd9ed(0x428);let Cn=class extends _0x3a77f3{constructor(_0x19a6b8,_0x5bcb66){const _0xccb5d8=_0x1fd9ed;super(),this['_univerInstanceService']=_0x19a6b8,this[_0xccb5d8(0x3b0)]=_0x5bcb66,this['_init']();}[_0x1fd9ed(0x451)](){const _0x487a35=_0x1fd9ed;this[_0x487a35(0x203)](this[_0x487a35(0x250)][_0x487a35(0x2a7)][_0x487a35(0x3f9)](()=>{const _0x3a5cbc=_0x487a35;var _0x33337f;let _0x19a83b=this['_univerInstanceService'][_0x3a5cbc(0x348)](),_0x59440c=(_0x33337f=this[_0x3a5cbc(0x3b0)][_0x3a5cbc(0x349)](_0x3a5cbc(0x298)))==null?_0x3a5cbc(0x426):_0x33337f;_0x19a83b instanceof _0x3e3fbf&&(_0x59440c=_0x19a83b[_0x3a5cbc(0x278)]),document[_0x3a5cbc(0x3fa)]=_0x59440c;}));}};Cn=z([R(0x0,_0x1efd8f),R(0x1,_0x9f4c9b)],Cn);let wn=function(_0x32ceae){const _0x25f5c6=_0x1fd9ed;return _0x32ceae[_0x25f5c6(0x22b)]=_0x25f5c6(0x22b),_0x32ceae[_0x25f5c6(0x2a6)]=_0x25f5c6(0x2a6),_0x32ceae[_0x25f5c6(0x462)]=_0x25f5c6(0x462),_0x32ceae;}({});const Tn=_0x2d6602('base-ui.attachment-io.service');let En=class{constructor(_0x3dd488,_0x1f96ba,_0x472146){const _0x303ed2=_0x1fd9ed;this[_0x303ed2(0x1fc)]=_0x3dd488,this[_0x303ed2(0x3b0)]=_0x1f96ba,this['_univerInstanceService']=_0x472146;}['getUploadOptions'](){const _0x1e8d79=_0x1fd9ed;var _0x1e5826;return(_0x1e5826=this['_getConfig']()[_0x1e8d79(0x429)])==null?{}:_0x1e5826;}async[_0x1fd9ed(0x401)](_0x67c1f3){const _0x555993=_0x1fd9ed;let _0x22e8c2=this['getUploadOptions']();if(Dn(_0x67c1f3,_0x22e8c2),_0x22e8c2[_0x555993(0x353)])return _0x22e8c2['upload'](_0x67c1f3);let _0x1991d0=await this[_0x555993(0x2a3)](_0x67c1f3);return{'id':_0x1991d0,'name':_0x67c1f3[_0x555993(0x278)],'mimeType':_0x67c1f3[_0x555993(0x247)],'size':_0x67c1f3['size'],'sourceType':'UUID','source':_0x1991d0};}async[_0x1fd9ed(0x2a3)](_0x4230de){const _0x4fb739=_0x1fd9ed;let _0xaf902d=this[_0x4fb739(0x250)][_0x4fb739(0x348)](),_0x3b6ea7=_0xaf902d==null?void 0x0:_0xaf902d['getUnitId']();if(!_0x3b6ea7)throw Error('[CollaborationAttachmentIoService]:\x20unitId\x20is\x20not\x20found.');let _0x9179b=new FormData();_0x9179b[_0x4fb739(0x31f)](_0x4fb739(0x331),_0x4230de);let _0x4694db=this[_0x4fb739(0x2c8)]()+_0x4fb739(0x3c6)+_0x4230de[_0x4fb739(0x38c)][_0x4fb739(0x36e)]()+_0x4fb739(0x317)+_0x5576ff['UnitEmbedded']+_0x4fb739(0x463)+encodeURIComponent(_0x3b6ea7),_0x18942a=(await this[_0x4fb739(0x1fc)]['post'](_0x4694db,{'body':_0x9179b}))[_0x4fb739(0x264)][_0x4fb739(0x316)];if(typeof _0x18942a!=_0x4fb739(0x321)||!_0x18942a)throw Error(_0x4fb739(0x2fd));return _0x18942a;}[_0x1fd9ed(0x2c8)](){const _0xbec487=_0x1fd9ed;var _0x15e3e7;return(_0x15e3e7=this['_getConfig']()[_0xbec487(0x214)])==null?_0xbec487(0x3c8):_0x15e3e7;}[_0x1fd9ed(0x3e8)](){const _0x340803=_0x1fd9ed;var _0xd7506e;return(_0xd7506e=this[_0x340803(0x3b0)][_0x340803(0x349)]('collaboration-client.config'))==null?{}:_0xd7506e;}};En=z([R(0x0,_0x567a44(_0x2d05b0)),R(0x1,_0x567a44(_0x9f4c9b)),R(0x2,_0x567a44(_0x1efd8f))],En);function Dn(_0x2bef6e,_0x53aff5){const _0x55f67b=_0x1fd9ed;var _0x52b5da;if(_0x53aff5[_0x55f67b(0x2eb)]!=null&&_0x2bef6e[_0x55f67b(0x38c)]>_0x53aff5['maxSize'])throw Error('[CollaborationAttachmentIoService]:\x20attachment\x20exceeds\x20max\x20size.');if((_0x52b5da=_0x53aff5[_0x55f67b(0x475)])!=null&&_0x52b5da[_0x55f67b(0x3a1)]&&!_0x53aff5[_0x55f67b(0x475)][_0x55f67b(0x27c)](_0x1c77f5=>_0x2bef6e[_0x55f67b(0x247)]===_0x1c77f5||_0x2bef6e[_0x55f67b(0x278)]['endsWith'](_0x1c77f5)||_0x1c77f5[_0x55f67b(0x32b)]('/*')&&_0x2bef6e[_0x55f67b(0x247)][_0x55f67b(0x433)](_0x1c77f5[_0x55f67b(0x287)](0x0,-0x1))))throw Error(_0x55f67b(0x2d8));}let On=class{constructor(_0x4ab4ea,_0x1d8c08,_0x35059b){const _0x5a034e=_0x1fd9ed;this[_0x5a034e(0x3b0)]=_0x4ab4ea,this[_0x5a034e(0x1fc)]=_0x1d8c08,this[_0x5a034e(0x293)]=_0x35059b,this[_0x5a034e(0x389)]();}[_0x1fd9ed(0x389)](){const _0x2240ca=_0x1fd9ed;this['_httpService'][_0x2240ca(0x37b)]({'priority':0x1,'interceptor':(_0x151e36,_0x53e0d6)=>_0x53e0d6(_0x151e36)[_0x2240ca(0x355)](_0x413ce1(async _0x40a148=>{const _0x2b92df=_0x2240ca;let _0x2c31f7=_0x40a148;if(_0x2c31f7[_0x2b92df(0x276)]===0x191){if(typeof window>'u')throw Error('[AuthServerService]:\x20you\x20should\x20provide\x20authentication\x20info\x20on\x20Node.js.');if(window[_0x2b92df(0x3a9)](this[_0x2b92df(0x293)]['t'](_0x2b92df(0x226)))){let _0x24dbbf=window[_0x2b92df(0x2fb)](window['location'][_0x2b92df(0x445)]);window['location'][_0x2b92df(0x445)]=this['_getLoginPath']()+_0x2b92df(0x390)+_0x24dbbf;}}return _0x2c31f7;}))});}[_0x1fd9ed(0x2e4)](){const _0x19f19d=_0x1fd9ed;var _0xbc4692;let _0x9498b2=this[_0x19f19d(0x3b0)][_0x19f19d(0x349)](F);return(_0xbc4692=_0x9498b2==null?void 0x0:_0x9498b2[_0x19f19d(0x362)])==null?_0x19f19d(0x23f):_0xbc4692;}};On=z([R(0x0,_0x9f4c9b),R(0x1,_0x567a44(_0x2d05b0)),R(0x2,_0x567a44(_0x45f63e))],On);let kn=class extends _0x3a77f3{constructor(_0x5b4e93,_0x1ebb78){const _0x166c6c=_0x1fd9ed;super(),this['_HTTPService']=_0x5b4e93,this['_configService']=_0x1ebb78,I(this,_0x166c6c(0x2f9),!0x1),this['_initMergeInterceptor']();}[_0x1fd9ed(0x417)](){const _0x3be2d4=_0x1fd9ed;let _0x3de4c4=this;this[_0x3be2d4(0x203)](this['_HTTPService']['registerHTTPInterceptor']({'priority':0x3e7,'interceptor':_0x351ef0({'isMatch'(_0x35ca65){const _0x5c39b6=_0x3be2d4;var _0x29fdce;if(_0x35ca65['method']===_0x5c39b6(0x26e)&&(_0x29fdce=_0x35ca65['requestParams'])!=null&&_0x29fdce['body']){let {objectID:_0x21d7ac,objectType:_0x5400d7}=_0x35ca65[_0x5c39b6(0x1f4)][_0x5c39b6(0x264)]||{};if(!_0x21d7ac||_0x5400d7===void 0x0)return!0x1;let _0x263f14=_0x3de4c4[_0x5c39b6(0x306)]()+'/'+_0x5400d7+_0x5c39b6(0x292)+_0x21d7ac+'/allowed';if(_0x35ca65[_0x5c39b6(0x2f8)]===_0x263f14)return!0x0;}return!0x1;},'getParamsFromRequest'(_0x582467){const _0x5788dd=_0x3be2d4;var _0x5db1e6;return(_0x5db1e6=_0x582467[_0x5788dd(0x1f4)])==null?void 0x0:_0x5db1e6['body'];},'mergeParamsToRequest'(_0x26a3eb,_0x3c4115){const _0x4693ff=_0x3be2d4;let _0x450b0c=_0x3de4c4['_getAPIPrefixPath']()+_0x4693ff(0x30b),_0x242a97=_0x26a3eb[_0x4693ff(0x2bd)]((_0x25ab7a,_0x5f0a98)=>{const _0x1e05cd=_0x4693ff;let {unitID:_0x58a140,objectID:_0x2c1199,objectType:_0x13d1cd,actions:_0x438231}=_0x5f0a98;return _0x25ab7a[_0x58a140]||(_0x25ab7a[_0x58a140]={}),_0x25ab7a[_0x58a140][_0x2c1199]||(_0x25ab7a[_0x58a140][_0x2c1199]={'objectID':_0x2c1199,'objectType':_0x13d1cd,'actions':[]}),_0x25ab7a[_0x58a140][_0x2c1199][_0x1e05cd(0x282)][_0x1e05cd(0x28a)](..._0x438231),_0x25ab7a;},{}),_0x16cf9f=[];for(let _0x501f95 in _0x242a97)for(let _0x210cf7 in _0x242a97[_0x501f95]){let {actions:_0x68f7c1,objectType:_0x188603}=_0x242a97[_0x501f95][_0x210cf7],_0x121876=[...new Set(_0x68f7c1)];_0x16cf9f[_0x4693ff(0x28a)]({'unitID':_0x501f95,'objectID':_0x210cf7,'objectType':_0x188603,'actions':_0x121876});}return new _0x59267e('POST',_0x450b0c,{'headers':_0x3c4115[_0x4693ff(0x29f)],'withCredentials':_0x3c4115[_0x4693ff(0x39a)],'responseType':_0x3c4115['responseType'],'body':{'requests':_0x16cf9f}});}},{'distributeResult'(_0x3617fd,_0x558320){let {objectActions:_0x5f2cdb}=_0x3617fd;return _0x558320['map'](_0x29b35c=>{const _0xbfa5a8=_0x3c02;let {unitID:_0xc3f877,objectID:_0x5dad02,actions:_0x2d3fcf}=_0x29b35c,_0x50b5f0=_0x5f2cdb['find'](_0x301cab=>_0x301cab[_0xbfa5a8(0x216)]===_0xc3f877&&_0x301cab[_0xbfa5a8(0x3a2)]===_0x5dad02);return{'config':_0x29b35c,'result':{'actions':_0x2d3fcf['map'](_0x3469bc=>_0x50b5f0==null?void 0x0:_0x50b5f0['actions'][_0xbfa5a8(0x24c)](_0x50f68a=>_0x50f68a[_0xbfa5a8(0x380)]===_0x3469bc))[_0xbfa5a8(0x430)](_0x2a980d=>!!_0x2a980d),'error':_0x3617fd[_0xbfa5a8(0x32c)]}};});}})}));}[_0x1fd9ed(0x306)](){const _0x5d330d=_0x1fd9ed;var _0x1a8a79;let _0x5970e1=this[_0x5d330d(0x3b0)]['getConfig'](F);return(_0x1a8a79=_0x5970e1==null?void 0x0:_0x5970e1['authzUrl'])==null?_0x5d330d(0x2a1):_0x1a8a79;}async[_0x1fd9ed(0x42d)](_0x53a985){const _0x41ab4d=_0x1fd9ed;let _0x249505=this[_0x41ab4d(0x306)]()+'/'+_0x53a985['objectType']+'/object';return(await this[_0x41ab4d(0x209)]['post'](_0x249505,{'body':_0x53a985}))[_0x41ab4d(0x264)][_0x41ab4d(0x3a2)]||'';}async['list'](_0x8c48e5){const _0x5f5339=_0x1fd9ed;let _0x59c7ed=this[_0x5f5339(0x306)]()+_0x5f5339(0x3cc);return(await this[_0x5f5339(0x209)][_0x5f5339(0x2a9)](_0x59c7ed,{'body':_0x8c48e5}))['body'][_0x5f5339(0x361)];}async['update'](_0x116c9b){const _0x54cc1c=_0x1fd9ed;var _0xe2cb9a;let _0x48dace=this[_0x54cc1c(0x306)]()+'/'+_0x116c9b[_0x54cc1c(0x228)]+_0x54cc1c(0x292)+_0x116c9b['objectID'],_0x45e975=await this['_HTTPService']['put'](_0x48dace,{'body':_0x116c9b});if((_0x45e975==null||(_0xe2cb9a=_0x45e975[_0x54cc1c(0x264)])==null||(_0xe2cb9a=_0xe2cb9a[_0x54cc1c(0x32c)])==null?void 0x0:_0xe2cb9a[_0x54cc1c(0x3d9)])!==0x1)throw Error('Failed\x20to\x20update\x20permission\x20point');}async[_0x1fd9ed(0x26a)](_0x5dca90){const _0x328699=_0x1fd9ed;let _0x21e7f7=this['_getAPIPrefixPath']()+'/'+_0x5dca90[_0x328699(0x228)]+'/object/'+_0x5dca90[_0x328699(0x3a2)]+'/allowed';return(await this[_0x328699(0x209)][_0x328699(0x2a9)](_0x21e7f7,{'body':_0x5dca90}))['body'][_0x328699(0x282)];}async[_0x1fd9ed(0x1f3)](_0x3d93ab){const _0x3be177=_0x1fd9ed;let _0x3b46c3=this[_0x3be177(0x306)]()+_0x3be177(0x30b);return(await this[_0x3be177(0x209)][_0x3be177(0x2a9)](_0x3b46c3,{'body':{'requests':_0x3d93ab}}))[_0x3be177(0x264)][_0x3be177(0x336)];}async[_0x1fd9ed(0x450)](_0x1a859e){const _0x94ce44=_0x1fd9ed;let _0x5079a1=this['_getAPIPrefixPath']()+'/'+_0x1a859e[_0x94ce44(0x228)]+'/role',_0x1d8ef2=await this[_0x94ce44(0x209)][_0x94ce44(0x2a9)](_0x5079a1,{'body':_0x1a859e});return{'roles':_0x1d8ef2['body'][_0x94ce44(0x363)],'actions':_0x1d8ef2[_0x94ce44(0x264)][_0x94ce44(0x282)]};}async[_0x1fd9ed(0x21f)](_0x48fa8a){const _0x4b1969=_0x1fd9ed;let _0x1a80f2=this['_getAPIPrefixPath']()+_0x4b1969(0x288);await this[_0x4b1969(0x209)][_0x4b1969(0x359)](_0x1a80f2,{'params':{'collaboratorID':_0x48fa8a['collaboratorID'],'objectID':_0x48fa8a[_0x4b1969(0x3a2)],'unitID':_0x48fa8a[_0x4b1969(0x216)]}});}async['updateCollaborator'](_0x1e0e20){const _0x4fc9ec=_0x1fd9ed;let _0x24fb59=this[_0x4fc9ec(0x306)]()+_0x4fc9ec(0x288);await this[_0x4fc9ec(0x209)][_0x4fc9ec(0x248)](_0x24fb59,{'body':_0x1e0e20});}async[_0x1fd9ed(0x3da)](_0xcd93f1){const _0x504003=_0x1fd9ed;let _0x2c1334=this[_0x504003(0x306)]()+_0x504003(0x288);await this['_HTTPService']['post'](_0x2c1334,{'body':_0xcd93f1});}async[_0x1fd9ed(0x2b7)](_0x4a6861){const _0x27b267=_0x1fd9ed;var _0x1b5ff1;let _0x3e5421=this[_0x27b267(0x306)]()+_0x27b267(0x288),_0x39ef2f=await this['_HTTPService'][_0x27b267(0x45a)](_0x3e5421,{'params':{'objectID':_0x4a6861[_0x27b267(0x3a2)],'unitID':_0x4a6861[_0x27b267(0x216)]}});return this['setCfgEnableObjInherit']((_0x1b5ff1=_0x39ef2f[_0x27b267(0x264)][_0x27b267(0x337)])==null?!0x1:_0x1b5ff1),_0x39ef2f[_0x27b267(0x264)][_0x27b267(0x2fc)];}async[_0x1fd9ed(0x242)](_0xf25e81){const _0x4dbe9f=_0x1fd9ed;let _0x2f9b37=this[_0x4dbe9f(0x306)]()+_0x4dbe9f(0x288);await this['_HTTPService'][_0x4dbe9f(0x252)](_0x2f9b37,{'body':_0xf25e81});}['setCfgEnableObjInherit'](_0x1b42eb){const _0x5a7c81=_0x1fd9ed;this[_0x5a7c81(0x2f9)]=_0x1b42eb;}[_0x1fd9ed(0x224)](){const _0x5aaa13=_0x1fd9ed;return this[_0x5aaa13(0x2f9)];}};kn=z([R(0x0,_0x567a44(_0x2d05b0)),R(0x1,_0x567a44(_0x9f4c9b))],kn);function An(_0x5920cd){const _0xd000ea=_0x1fd9ed;let _0x111fa0=atob(_0x5920cd),_0x13ccee=new Uint8Array(_0x111fa0[_0xd000ea(0x3a1)]);for(let _0x48b260=0x0;_0x48b260<_0x111fa0[_0xd000ea(0x3a1)];_0x48b260++)_0x13ccee[_0x48b260]=_0x111fa0[_0xd000ea(0x47c)](_0x48b260);return _0x13ccee;}function jn(_0x3d5123){const _0x20ec8f=_0x1fd9ed;let _0x4f2005='';for(let _0x2d1f75=0x0;_0x2d1f75<_0x3d5123[_0x20ec8f(0x3a1)];_0x2d1f75++)_0x4f2005+=String['fromCharCode'](_0x3d5123[_0x2d1f75]);return btoa(_0x4f2005);}function Mn(_0x395927,_0x269eed){let _0x2e9605=An(_0x269eed),_0x2f1537=_0x430a06(0x10);return jn(_0x48a0cd(_0x2f1537,_0x80038a(_0x2e9605,_0x2f1537)['encrypt'](_0x4d385c(_0x395927))));}function Nn(){const _0x3faafc=_0x1fd9ed;let _0x3a374e=_0x227b9f()[_0x3faafc(0x471)];if(typeof window<'u'&&window[_0x3faafc(0x3e0)]!==void 0x0&&_0x3a374e){let _0x4e73f3={'time':Math[_0x3faafc(0x3b6)](Date[_0x3faafc(0x231)]()/0x3e8),'domain':location[_0x3faafc(0x254)]};return Mn(JSON[_0x3faafc(0x2b9)](_0x4e73f3),_0x3a374e);}}let Pn=class{constructor(_0x5cf6f1){const _0x53433a=_0x1fd9ed;this['_httpService']=_0x5cf6f1,this[_0x53433a(0x3c5)]();}[_0x1fd9ed(0x3c5)](){const _0x16317e=_0x1fd9ed;this[_0x16317e(0x1fc)]['registerHTTPInterceptor']({'interceptor':(_0x2c4595,_0x198d8a)=>{const _0x2dc97f=_0x16317e;let _0x24d2c8=Nn();return _0x24d2c8&&_0x2c4595[_0x2dc97f(0x29f)][_0x2dc97f(0x23d)](_0x2dc97f(0x285),_0x24d2c8),_0x198d8a(_0x2c4595);}});}};Pn=z([R(0x0,_0x567a44(_0x2d05b0))],Pn);let Fn=class extends _0x3431d7{constructor(_0x936b83,_0x43b367,_0x4ad311){const _0x724fee=_0x1fd9ed;super(),this[_0x724fee(0x42c)]=_0x936b83,this[_0x724fee(0x2e3)]=_0x43b367,this[_0x724fee(0x45f)]=_0x4ad311,I(this,_0x724fee(0x36d),new _0x32f5fb(null)),I(this,_0x724fee(0x46f),new _0x284279()),I(this,_0x724fee(0x439),this[_0x724fee(0x36d)][_0x724fee(0x2bb)]()),I(this,_0x724fee(0x230),this[_0x724fee(0x46f)]['asObservable']());}[_0x1fd9ed(0x3b9)](){const _0x37906b=_0x1fd9ed;super['dispose'](),this['_unitLoaded$'][_0x37906b(0x394)](),this[_0x37906b(0x36d)][_0x37906b(0x394)]();}async['loadUnitOfRevision'](_0x426cda,_0x22c931,_0x47c0ed){const _0x3c993f=_0x1fd9ed;this[_0x3c993f(0x36d)][_0x3c993f(0x3a7)]({'unitId':_0x426cda,'type':_0x22c931});let _0x2f4cfc=null;switch(_0x22c931){case _0x10286b[_0x3c993f(0x3f4)]:_0x2f4cfc=await this[_0x3c993f(0x2e3)][_0x3c993f(0x47b)](_0x426cda,_0x47c0ed);break;case _0x10286b[_0x3c993f(0x1ff)]:_0x2f4cfc=await this[_0x3c993f(0x2e3)]['loadDoc'](_0x426cda,_0x47c0ed);break;case _0x10286b['UNIVER_SLIDE']:_0x2f4cfc=await this[_0x3c993f(0x2e3)][_0x3c993f(0x3c1)](_0x426cda,_0x47c0ed);break;case _0x10286b[_0x3c993f(0x2b6)]:_0x2f4cfc=await this[_0x3c993f(0x2e3)][_0x3c993f(0x22d)](_0x426cda,_0x47c0ed);break;default:this['_logService'][_0x3c993f(0x32c)](_0x3c993f(0x27a),_0x3c993f(0x28f));break;}return _0x2f4cfc&&this[_0x3c993f(0x46f)][_0x3c993f(0x3a7)](_0x2f4cfc),_0x2f4cfc;}async['loadUnit'](_0x15e05e,_0x401a21,_0x1e1f3a){const _0x1da71c=_0x1fd9ed;var _0x2ee920;this[_0x1da71c(0x36d)][_0x1da71c(0x3a7)]({'unitId':_0x15e05e,'type':_0x401a21,'subUnitId':_0x1e1f3a});let _0xeaa37b=0x0,_0x9a41fd=await((_0x2ee920=this['_localCacheService'])==null?void 0x0:_0x2ee920[_0x1da71c(0x3d4)](_0x15e05e));return _0x9a41fd&&(_0x9a41fd[_0x1da71c(0x315)]||_0x9a41fd['mutations']['length']!==0x0)&&(_0xeaa37b=_0x9a41fd['rev']),_0xeaa37b===0x0&&this[_0x1da71c(0x42c)]['debug'](_0x1da71c(0x27a),_0x1da71c(0x29e)),this['loadUnitOfRevision'](_0x15e05e,_0x401a21,_0xeaa37b);}};Fn=z([R(0x0,_0x43229d),R(0x1,_0x567a44(_0x3e478c)),R(0x2,_0x8f0001(V))],Fn);let In=class{constructor(_0x1d91cc,_0x1d0b27,_0x266af3){const _0x502e8b=_0x1fd9ed;this[_0x502e8b(0x1fc)]=_0x1d91cc,this[_0x502e8b(0x3b0)]=_0x1d0b27,this['_univerInstanceService']=_0x266af3,I(this,'_waitCount',0x0),I(this,_0x502e8b(0x3a0),new _0x284279()),I(this,_0x502e8b(0x3e9),this[_0x502e8b(0x3a0)]),I(this,_0x502e8b(0x3cb),new Map());}[_0x1fd9ed(0x2d4)](_0x1b78d6){const _0x2a35f0=_0x1fd9ed;this[_0x2a35f0(0x26d)]=_0x1b78d6,this[_0x2a35f0(0x3a0)][_0x2a35f0(0x3a7)](_0x1b78d6);}[_0x1fd9ed(0x28c)](_0x9249ec,_0x84a837){const _0x9f869f=_0x1fd9ed;if(_0x84a837===_0x1eb97a[_0x9f869f(0x462)]){let _0x14327e=new Image();return _0x14327e[_0x9f869f(0x3dd)]=_0x9249ec,_0x14327e;}return this[_0x9f869f(0x3cb)][_0x9f869f(0x45a)](_0x9249ec);}['addImageSourceCache'](_0x551593,_0x1185b7,_0x2e9ea1){const _0xae71d0=_0x1fd9ed;_0x1185b7===_0x1eb97a['BASE64']||_0x2e9ea1==null||this[_0xae71d0(0x3cb)][_0xae71d0(0x23d)](_0x551593,_0x2e9ea1);}async[_0x1fd9ed(0x218)](_0x2a7fda){const _0x3a818c=_0x1fd9ed;try{let _0x2628f1=this[_0x3a818c(0x379)](this[_0x3a818c(0x42e)](),''+_0x2a7fda),_0x3fe0ff=(await this[_0x3a818c(0x1fc)][_0x3a818c(0x45a)](_0x2628f1))[_0x3a818c(0x264)];if(_0x3fe0ff[_0x3a818c(0x32c)]&&_0x3fe0ff[_0x3a818c(0x32c)][_0x3a818c(0x3d9)]===_0x1051fa['OK']){let _0x27b8fe=_0x5b4e40(_0x3fe0ff['url'],this[_0x3a818c(0x470)]());return Promise[_0x3a818c(0x237)](_0x27b8fe);}return Promise[_0x3a818c(0x452)](_0x3fe0ff[_0x3a818c(0x32c)]);}catch(_0x2f4cb8){return Promise[_0x3a818c(0x452)](_0x2f4cb8);}}async['saveImage'](_0x58744b){const _0x271008=_0x1fd9ed;let _0x2aa0e4='';if(!_0x508447[_0x271008(0x412)](_0x58744b[_0x271008(0x247)]))return this['_decreaseWaiting'](),Promise[_0x271008(0x452)](Error(_0xe5e0e[_0x271008(0x37e)]));if(_0x58744b[_0x271008(0x38c)]>_0x2a9018())return this[_0x271008(0x46d)](),Promise[_0x271008(0x452)](Error(_0xe5e0e[_0x271008(0x2cd)]));try{let _0x1f7fb6=new FormData();_0x1f7fb6[_0x271008(0x31f)](_0x271008(0x331),_0x58744b);let _0x1b28fb=this['_univerInstanceService'][_0x271008(0x348)](),_0x274dc3=_0x1b28fb==null?void 0x0:_0x1b28fb[_0x271008(0x3c3)]();if(!_0x274dc3)throw Error(_0x271008(0x409));let _0x301aa2=this[_0x271008(0x2c8)]()+_0x271008(0x3c6)+_0x58744b[_0x271008(0x38c)][_0x271008(0x36e)]()+_0x271008(0x317)+_0x5576ff[_0x271008(0x2c6)]+_0x271008(0x463)+encodeURIComponent(_0x274dc3),_0x476224={'body':_0x1f7fb6},_0x350004=(await this[_0x271008(0x1fc)]['post'](_0x301aa2,_0x476224))['body'];if(typeof _0x350004[_0x271008(0x316)]!=_0x271008(0x321))return this[_0x271008(0x46d)](),Promise[_0x271008(0x452)](Error(_0xe5e0e[_0x271008(0x339)]));_0x2aa0e4=_0x350004[_0x271008(0x316)];}catch{return this[_0x271008(0x46d)](),Promise[_0x271008(0x452)](Error(_0xe5e0e[_0x271008(0x339)]));}return new Promise((_0x52ecdb,_0x89cb85)=>{const _0x24dc66=_0x271008;let _0x16beee=new FileReader();_0x16beee[_0x24dc66(0x2aa)](_0x58744b),_0x16beee[_0x24dc66(0x374)]=_0x4c46e6=>{const _0x16d620=_0x24dc66;var _0x45e1ff;let _0x5d8068=(_0x45e1ff=_0x4c46e6[_0x16d620(0x251)])==null?void 0x0:_0x45e1ff['result'];if(_0x5d8068==null){this[_0x16d620(0x46d)](),_0x89cb85(Error(_0xe5e0e[_0x16d620(0x339)]));return;}_0x52ecdb({'imageId':_0xe17c8d(0x6),'imageSourceType':_0x1eb97a['UUID'],'source':_0x2aa0e4,'base64Cache':_0x5d8068,'status':_0xe5e0e[_0x16d620(0x372)]}),this['_decreaseWaiting']();};});}[_0x1fd9ed(0x2c8)](){const _0x518a27=_0x1fd9ed;var _0x21ca4e;let _0x3804e3=this[_0x518a27(0x3b0)][_0x518a27(0x349)](F);return(_0x21ca4e=_0x3804e3==null?void 0x0:_0x3804e3[_0x518a27(0x214)])==null?_0x518a27(0x3c8):_0x21ca4e;}[_0x1fd9ed(0x42e)](){const _0x157aac=_0x1fd9ed;var _0x58c973;let _0x15b52f=this[_0x157aac(0x3b0)][_0x157aac(0x349)](F);return(_0x58c973=_0x15b52f==null?void 0x0:_0x15b52f[_0x157aac(0x26f)])==null?_0x157aac(0x246):_0x58c973;}[_0x1fd9ed(0x470)](){const _0x2f7517=_0x1fd9ed;var _0x3259f3;let _0x2c6599=this['_configService'][_0x2f7517(0x349)](F);return(_0x3259f3=_0x2c6599==null?void 0x0:_0x2c6599[_0x2f7517(0x34a)])==null?location[_0x2f7517(0x3d1)]:_0x3259f3;}[_0x1fd9ed(0x379)](_0x45e88a,_0x365338){const _0x3065b4=_0x1fd9ed;return _0x45e88a[_0x3065b4(0x320)]('{fileID}',_0x365338);}[_0x1fd9ed(0x46d)](){const _0x1f7e57=_0x1fd9ed;--this['_waitCount'],this['_change$'][_0x1f7e57(0x3a7)](this['_waitCount']);}};In=z([R(0x0,_0x567a44(_0x2d05b0)),R(0x1,_0x9f4c9b),R(0x2,_0x567a44(_0x1efd8f))],In);let Ln=class{constructor(_0x31be90,_0x37f725){const _0x17802d=_0x1fd9ed;this[_0x17802d(0x3b0)]=_0x31be90,this[_0x17802d(0x209)]=_0x37f725;}[_0x1fd9ed(0x306)](){const _0x5448a9=_0x1fd9ed;var _0x542dd3;let _0x3c3583=this[_0x5448a9(0x3b0)][_0x5448a9(0x349)](F);return(_0x542dd3=_0x3c3583==null?void 0x0:_0x3c3583['authzUrl'])==null?_0x5448a9(0x2a1):_0x542dd3;}async['list'](_0x3db7ce){const _0x74047b=_0x1fd9ed;let _0x20104b=this[_0x74047b(0x306)]()+_0x74047b(0x288);return{'list':[{'title':_0x74047b(0x27f),'mentions':(await this[_0x74047b(0x209)][_0x74047b(0x45a)](_0x20104b,{'params':{'objectID':_0x3db7ce['unitId'],'unitID':_0x3db7ce[_0x74047b(0x3ec)]}}))['body'][_0x74047b(0x2fc)][_0x74047b(0x2a2)](_0x2734d3=>({'objectId':_0x2734d3['id'],'name':_0x2734d3[_0x74047b(0x30c)][_0x74047b(0x278)],'metadata':{'icon':_0x2734d3[_0x74047b(0x30c)][_0x74047b(0x2df)]},'label':_0x2734d3[_0x74047b(0x30c)][_0x74047b(0x278)],'objectType':_0x335e28[_0x74047b(0x329)]})),'metadata':{},'type':_0x335e28[_0x74047b(0x329)]}]};}};Ln=z([R(0x0,_0x567a44(_0x9f4c9b)),R(0x1,_0x567a44(_0x2d05b0))],Ln);let Rn=class extends _0x3431d7{constructor(_0x1bba1e,_0x8d947f,_0x45eb99,_0x595bff,_0x214af6){const _0x42cb47=_0x1fd9ed;super(),this['_injector']=_0x1bba1e,this[_0x42cb47(0x250)]=_0x8d947f,this[_0x42cb47(0x381)]=_0x45eb99,this[_0x42cb47(0x3c7)]=_0x595bff,this['_collaborationUIEventService']=_0x214af6,this['_initUnitPermissionChange'](),this[_0x42cb47(0x2f5)]();}[_0x1fd9ed(0x2f5)](){const _0x11dfe8=_0x1fd9ed;let _0x1343f6=async _0x69ad3d=>{const _0x476042=_0x3c02;(await this['_collaborationSessionService'][_0x476042(0x467)](_0x69ad3d))[_0x476042(0x33f)][_0x476042(0x355)](_0x2fe858(_0x5b904c=>_0x5b904c[_0x476042(0x2b3)]===_0x59a8f1[_0x476042(0x2cf)]),_0x13c980(this[_0x476042(0x31e)]))[_0x476042(0x3f9)](_0x14b633=>{const _0x9f7295=_0x476042;let {reason:_0x123a1c}=_0x14b633['data'];this[_0x9f7295(0x33b)][_0x9f7295(0x3e1)]({'id':_0x9f7295(0x3f7),'data':_0x123a1c}),this[_0x9f7295(0x381)][_0x9f7295(0x25e)](new _0x12e445(_0x69ad3d)['id'],!0x1),this[_0x9f7295(0x3c7)][_0x9f7295(0x241)](_0x69ad3d);});};_0x5a212e(this['_univerInstanceService'][_0x11dfe8(0x304)](_0x10286b[_0x11dfe8(0x3f4)]),this[_0x11dfe8(0x250)][_0x11dfe8(0x304)](_0x10286b[_0x11dfe8(0x1ff)]),this[_0x11dfe8(0x250)][_0x11dfe8(0x304)](_0x10286b[_0x11dfe8(0x2b6)]))[_0x11dfe8(0x355)](_0x354970(_0x31493d=>_0x31493d['unit'][_0x11dfe8(0x3c3)]()),_0x2fe858(_0x427ef7=>!_0x15b1a2(_0x427ef7)),_0x13c980(this[_0x11dfe8(0x31e)]))['subscribe'](_0x2461cb=>{_0x1343f6(_0x2461cb);});}[_0x1fd9ed(0x37c)](){const _0x43dec0=_0x1fd9ed;let _0xb7432d=async _0x513093=>{const _0x5bec17=_0x3c02;let _0x3977e1=await this['_collaborationSessionService'][_0x5bec17(0x467)](_0x513093),_0x45ca58=this['_injector'][_0x5bec17(0x45a)](_0x2d32af);_0x3977e1[_0x5bec17(0x33f)][_0x5bec17(0x355)](_0x2fe858(_0x50bd04=>_0x50bd04[_0x5bec17(0x2b3)]===_0x59a8f1['UPDATE_PERMISSION_OBJ']),_0x13c980(this[_0x5bec17(0x31e)]))[_0x5bec17(0x3f9)](_0x3bf3fd=>{const _0x4c8bf0=_0x5bec17;let {objectId:_0x26b2d9}=_0x3bf3fd[_0x4c8bf0(0x215)];_0x26b2d9===_0x513093?_0x45ca58[_0x4c8bf0(0x36a)](_0x513093):_0x45ca58[_0x4c8bf0(0x213)](_0x513093,_0x26b2d9);});};_0x5a212e(this['_univerInstanceService']['getTypeOfUnitAdded$'](_0x10286b['UNIVER_SHEET']))[_0x43dec0(0x355)](_0x354970(_0x1ea5a1=>_0x1ea5a1['unit']['getUnitId']()),_0x2fe858(_0x4f298b=>!_0x15b1a2(_0x4f298b)),_0x13c980(this[_0x43dec0(0x31e)]))[_0x43dec0(0x3f9)](_0x33c02e=>{_0xb7432d(_0x33c02e);});}};Rn=z([R(0x0,_0x567a44(_0x129a14)),R(0x1,_0x1efd8f),R(0x2,_0x147673),R(0x3,_0x567a44(Q)),R(0x4,_0x567a44(L))],Rn);let zn=class{constructor(_0x38d3d0,_0x20b40a){const _0x5148ec=_0x1fd9ed;this[_0x5148ec(0x3b0)]=_0x38d3d0,this[_0x5148ec(0x1fc)]=_0x20b40a;}async[_0x1fd9ed(0x34e)](_0x92c95e,_0x182aea){const _0x49610e=_0x1fd9ed;var _0x79de42;let {unitID:_0x53430a,type:_0x26b65d,revision:_0x17992f=0x0}=_0x182aea,_0x35a797=this[_0x49610e(0x3de)]()+'/'+_0x26b65d+_0x49610e(0x273)+_0x53430a+_0x49610e(0x2f7)+_0x17992f,_0x3578cf=(await this[_0x49610e(0x1fc)][_0x49610e(0x45a)](_0x35a797))['body'],_0x5314a9=(_0x79de42=_0x3578cf[_0x49610e(0x47a)])==null?void 0x0:_0x79de42[_0x49610e(0x2c3)];if(_0x5314a9){let _0x29dfa7=_0x5314a9==null?void 0x0:_0x5314a9[_0x49610e(0x41a)];_0x5314a9[_0x49610e(0x41a)]=_0x579706['encode'](_0xb21ad1(_0x29dfa7)),Object[_0x49610e(0x46e)](_0x5314a9['sheets'])['forEach'](([,_0x29d082])=>{const _0x10b36e=_0x49610e;let _0xc94c7e=_0x29d082['originalMeta'];_0x29d082[_0x10b36e(0x41a)]=_0x579706[_0x10b36e(0x40b)](_0xb21ad1(_0xc94c7e));});}return _0x3578cf;}async[_0x1fd9ed(0x262)](_0x4f6c25,_0x398b36){const _0x57a92c=_0x1fd9ed;let {unitID:_0x2aab54,type:_0xc4b79d,blockID:_0x4f8c26}=_0x398b36,_0x57e3d0=this[_0x57a92c(0x323)]()+'/'+_0xc4b79d+'/unit/'+_0x2aab54+_0x57a92c(0x3af)+_0x4f8c26;return(await this[_0x57a92c(0x1fc)][_0x57a92c(0x45a)](_0x57e3d0))['body'];}async['getDeserializedSheetBlock'](_0x2c2268,_0x4e3dbe){const _0x48542d=_0x1fd9ed;let {unitID:_0x4155e2,type:_0x3b274e,blockID:_0x1dc3f6}=_0x4e3dbe,_0x1b6bee=this[_0x48542d(0x323)]()+_0x48542d(0x3af)+_0x3b274e+_0x48542d(0x273)+_0x4155e2+_0x48542d(0x3af)+_0x1dc3f6;return(await this['_httpService']['get'](_0x1b6bee))[_0x48542d(0x264)];}async[_0x1fd9ed(0x324)](_0x23fed0,_0x59c99f){const _0x48965a=_0x1fd9ed;let {unitID:_0x574c7e,type:_0x3a29d1,from:_0x51ba71,to:_0x361d99}=_0x59c99f,_0x5aaf45=this[_0x48965a(0x323)]()+'/'+_0x3a29d1+_0x48965a(0x273)+_0x574c7e+_0x48965a(0x441)+_0x51ba71+_0x48965a(0x1fe)+_0x361d99;return(await this[_0x48965a(0x1fc)][_0x48965a(0x45a)](_0x5aaf45))[_0x48965a(0x264)];}[_0x1fd9ed(0x3de)](){const _0x3a8ef5=_0x1fd9ed;var _0x4e634f;return(_0x4e634f=this['_configService'][_0x3a8ef5(0x349)]('SNAPSHOT_URL_KEY'))==null?this[_0x3a8ef5(0x323)]():_0x4e634f;}[_0x1fd9ed(0x323)](){const _0x3f6864=_0x1fd9ed;var _0x72171f;let _0x23c071=this['_configService'][_0x3f6864(0x349)](F);return(_0x72171f=_0x23c071==null?void 0x0:_0x23c071['snapshotServerUrl'])==null?'/universer-api/snapshot':_0x72171f;}async['getResourcesRequest'](_0x173931,_0x4a2d45){const _0x577e7e=_0x1fd9ed;let _0x1ca7bf=_0x577e7e(0x43f)+_0x4a2d45[_0x577e7e(0x247)]+_0x577e7e(0x273)+_0x4a2d45[_0x577e7e(0x216)]+'/resources';return(await this['_httpService']['get'](_0x1ca7bf,{'params':{'resourceId':JSON[_0x577e7e(0x2b9)](_0x4a2d45[_0x577e7e(0x2bf)])}}))[_0x577e7e(0x264)];}['saveSnapshot'](){const _0x5530b0=_0x1fd9ed;throw Error(_0x5530b0(0x2c4));}[_0x1fd9ed(0x1f8)](){const _0x371dff=_0x1fd9ed;throw Error(_0x371dff(0x2c4));}[_0x1fd9ed(0x2ad)](){const _0x1c5fdd=_0x1fd9ed;throw Error(_0x1c5fdd(0x2c4));}[_0x1fd9ed(0x314)](){const _0x23bd51=_0x1fd9ed;throw Error(_0x23bd51(0x2c4));}[_0x1fd9ed(0x45b)](){const _0xe191e3=_0x1fd9ed;throw Error(_0xe191e3(0x2c4));}[_0x1fd9ed(0x3f2)](){throw Error('This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!');}};zn=z([R(0x0,_0x9f4c9b),R(0x1,_0x567a44(_0x2d05b0))],zn);let Bn=class extends _0x177857{constructor(_0x529d5d,_0x592f2e,_0x530e1f,_0x223ba8,_0x38c102){const _0xa8c0c6=_0x1fd9ed;super(_0x529d5d,_0x592f2e,_0x530e1f),this[_0xa8c0c6(0x387)]=_0x223ba8,this['_logService']=_0x38c102;}[_0x1fd9ed(0x352)](_0x44a5a0,_0x546e65){const _0x10ff62=_0x1fd9ed;let _0x282cd6=this[_0x10ff62(0x453)](_0x44a5a0);if(_0x282cd6)try{let _0x31120e=this[_0x10ff62(0x351)](_0x282cd6,_0x546e65);this['_substituteUndoStack'](_0x44a5a0,_0x31120e);}catch(_0x2f5224){this[_0x10ff62(0x42c)][_0x10ff62(0x32c)](_0x10ff62(0x21e),_0x2f5224),this[_0x10ff62(0x3ab)](_0x44a5a0);}let _0x4279fa=this[_0x10ff62(0x307)](_0x44a5a0);if(_0x4279fa)try{let _0x339095=this['_transformStack'](_0x4279fa,_0x546e65);this[_0x10ff62(0x3c2)](_0x44a5a0,_0x339095);}catch(_0x2f5d7d){this[_0x10ff62(0x42c)]['error'](_0x2f5d7d),this['_clearRedo'](_0x44a5a0);}}[_0x1fd9ed(0x3ab)](_0x5e6142){const _0x580481=_0x1fd9ed;let _0x363030=this['_getUndoStack'](_0x5e6142);_0x363030&&(_0x363030[_0x580481(0x3a1)]=0x0,this[_0x580481(0x354)]());}[_0x1fd9ed(0x370)](_0x35cc48){const _0x252b3e=_0x1fd9ed;let _0x27c633=this[_0x252b3e(0x307)](_0x35cc48);_0x27c633&&(_0x27c633[_0x252b3e(0x3a1)]=0x0,this[_0x252b3e(0x354)]());}[_0x1fd9ed(0x3e3)](_0x2a2495,_0x366b2a){const _0x314504=_0x1fd9ed;this[_0x314504(0x45d)]['set'](_0x2a2495,_0x366b2a),this[_0x314504(0x354)]();}[_0x1fd9ed(0x3c2)](_0x1e404c,_0x229781){const _0x51dbc7=_0x1fd9ed;this[_0x51dbc7(0x219)][_0x51dbc7(0x23d)](_0x1e404c,_0x229781),this[_0x51dbc7(0x354)]();}['_transformStack'](_0x25bc16,_0x37fa26){const _0x295fdb=_0x1fd9ed;let _0x4dbd62=[],_0x1a06d1=_0x37fa26,_0x35cb83=_0x37fa26;for(let _0x58b460=_0x25bc16[_0x295fdb(0x3a1)]-0x1;_0x58b460>=0x0;_0x58b460--){let {unitID:_0x22f763,undoMutations:_0x46c796,redoMutations:_0x349db6}=_0x25bc16[_0x58b460],_0x94618e=this[_0x295fdb(0x387)]['transformMutationsWithChangeset'](_0x1a06d1,_0x46c796),_0x231227=this['_transformService'][_0x295fdb(0x309)](_0x35cb83,_0x349db6);if(_0x315511(_0x94618e)||_0x315511(_0x231227)){this[_0x295fdb(0x42c)]['error']('[CollaborationUndoRedoService]','transformStack\x20failed!',_0x94618e,_0x231227);break;}_0x1a06d1=_0x94618e['c1Prime'],_0x35cb83=_0x231227[_0x295fdb(0x25b)],_0x4dbd62['push']({'unitID':_0x22f763,'undoMutations':_0x94618e['m2Prime'],'redoMutations':_0x231227['m2Prime']});}return _0x4dbd62[_0x295fdb(0x229)]();}};Bn=z([R(0x0,_0x1efd8f),R(0x1,_0x5bccb0),R(0x2,_0x1aa7c3),R(0x3,_0xd875ea),R(0x4,_0x43229d)],Bn);let $=class extends _0x4048a0{constructor(_0x407542={},_0xc7ac50,_0x5663b8,_0x13db76){const _0x4dc82e=_0x1fd9ed;super(),this[_0x4dc82e(0x432)]=_0x407542,this[_0x4dc82e(0x42c)]=_0xc7ac50,this[_0x4dc82e(0x25d)]=_0x5663b8,this['_configService']=_0x13db76;let {..._0x338fd8}=_0x29dc2a({},gt,_0x407542);if(!_0x338fd8['socketService'])throw Error(_0x4dc82e(0x2ba));this[_0x4dc82e(0x432)]=_0x338fd8,this[_0x4dc82e(0x3b0)][_0x4dc82e(0x286)](F,_0x338fd8);}[_0x1fd9ed(0x385)](){const _0x5a702e=_0x1fd9ed;this['_registerDependencies'](),this[_0x5a702e(0x2d0)]();}[_0x1fd9ed(0x3e2)](){const _0x4a124d=_0x1fd9ed;var _0x46decb,_0x4809df;this[_0x4a124d(0x25d)]['has'](_0x12e59b)&&this[_0x4a124d(0x42c)][_0x4a124d(0x32c)](_0x4a124d(0x335),_0x4a124d(0x3be));let _0x3cf635=_0x56fddf([[_0x12e59b,{'useClass':Bn}],[Q],[B],[zt],[On],[Pn],[Mt],[Rn],[L],[Fn],[_n,{'useClass':this[_0x4a124d(0x432)]['socketService']}],[_0x30cc59,{'useClass':zn}],[_0xc1a7f4,{'useClass':kn}],[_0x53d0e5,{'useClass':In}],[Tn,{'useClass':En}],[_0x301593,{'useClass':Ln}],[bn],[Cn]],(_0x46decb=this[_0x4a124d(0x432)])==null?void 0x0:_0x46decb[_0x4a124d(0x400)]);if(!((_0x4809df=this[_0x4a124d(0x432)])!=null&&_0x4809df['enableSingleActiveInstanceLock'])){let _0x3428ed=_0x3cf635[_0x4a124d(0x31a)](([_0x330e71])=>_0x330e71===H);_0x3428ed!==-0x1&&_0x3cf635[_0x4a124d(0x308)](_0x3428ed,0x1);}_0x4c42ef(this['_injector'],_0x3cf635);}['_initDependencies'](){const _0x48c54d=_0x1fd9ed;var _0x2fdba8,_0x55f428;if(this['_injector']['get'](_0x2d05b0)[_0x48c54d(0x37b)]({'priority':0x14,'interceptor':_0x58a7f6({'maxParallel':0x6})}),!((_0x2fdba8=this['_config'])!=null&&_0x2fdba8[_0x48c54d(0x2d6)])){var _0x3bc202;(_0x3bc202=this['_injector']['get'](V,_0x4b0393[_0x48c54d(0x36b)]))==null||_0x3bc202[_0x48c54d(0x47e)]();}(_0x55f428=this[_0x48c54d(0x432)])!=null&&_0x55f428[_0x48c54d(0x279)]&&_0x5932ea(this[_0x48c54d(0x25d)],[[On]]),_0x5932ea(this[_0x48c54d(0x25d)],[[Pn],[bn],[Rn]]);}};I($,_0x1fd9ed(0x3ae),_0x1fd9ed(0x35a)),I($,_0x1fd9ed(0x40f),xn),I($,_0x1fd9ed(0x261),Sn),$=z([_0x1362c5(_0x222516,_0xc697b4,_0x5efa0f),R(0x1,_0x43229d),R(0x2,_0x567a44(_0x129a14)),R(0x3,_0x9f4c9b)],$);export{wn as AttachmentSourceType,kn as AuthzIoHttpService,K as AwaitingState,q as AwaitingWithPendingState,F as COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY,En as CollaborationAttachmentIoService,bn as CollaborationController,Z as CollaborationEntity,In as CollaborationImageIoService,It as CollaborationSession,Q as CollaborationSessionService,yn as CollaborationSocketService,on as CollaborationStatus,jt as CollaborationUIEventId,L as CollaborationUIEventService,Bn as CollaborativeUndoRedoService,Mt as CommentService,J as ConflictState,_t as DEFAULT_COLLAB_WEB_SOCKET_URL,Et as DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT,vt as DEFAULT_WS_SESSION_TICKET_URL,Fn as DataLoaderService,un as DocCollaborationEntity,X as FetchingMissState,yt as HEARTBEAT_INTERVAL_KEY,bt as HEARTBEAT_TIMEOUT_KEY,Tn as IAttachmentIoService,_n as ICollaborationSocketService,V as ILocalCacheService,mn as INetworkConditionService,H as ISingleActiveUnitService,wt as LOCAL_CACHE_INTERVAL,Ct as LOCAL_CACHE_INTERVAL_KEY,B as MemberService,Ln as MentionIoHttpService,Y as OfflineState,G as PendingState,Tt as REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY,St as RETRY_CONNECTING_MAX_COUNT_KEY,Pt as SessionStatus,fn as SheetCollaborationEntity,zt as SheetTransformSelectionsService,zn as SnapshotServerOverHTTPService,W as SyncedState,Bt as UnitStatus,$ as UniverCollaborationClientPlugin,hn as deserializeToCombResponse,Lt as getLocalCacheKey,gn as serializeCombRequest};
|