@univerjs-pro/collaboration-client 0.1.15 → 0.1.16

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/umd/index.js CHANGED
@@ -1 +1 @@
1
- function _0x572c(_0x2ef492,_0x170dcc){const _0x5a71ee=_0x5a71();return _0x572c=function(_0x572c37,_0x147b96){_0x572c37=_0x572c37-0x12a;let _0x2781db=_0x5a71ee[_0x572c37];return _0x2781db;},_0x572c(_0x2ef492,_0x170dcc);}(function(_0x86d8a,_0x15c541){const _0x1b8b4e=_0x572c,_0x198681=_0x86d8a();while(!![]){try{const _0x244ff2=parseInt(_0x1b8b4e(0x257))/0x1*(-parseInt(_0x1b8b4e(0x391))/0x2)+-parseInt(_0x1b8b4e(0x240))/0x3+-parseInt(_0x1b8b4e(0x4a1))/0x4+parseInt(_0x1b8b4e(0x352))/0x5+parseInt(_0x1b8b4e(0x2ee))/0x6+-parseInt(_0x1b8b4e(0x326))/0x7+parseInt(_0x1b8b4e(0x40b))/0x8;if(_0x244ff2===_0x15c541)break;else _0x198681['push'](_0x198681['shift']());}catch(_0x51cb22){_0x198681['push'](_0x198681['shift']());}}}(_0x5a71,0x7aeb6),function(_0x15a14c,_0x9ec0ec){const _0x40436b=_0x572c;typeof exports==_0x40436b(0x38d)&&typeof module<'u'?_0x9ec0ec(exports,require(_0x40436b(0x148)),require(_0x40436b(0x47c)),require(_0x40436b(0x46b)),require('@univerjs/ui'),require(_0x40436b(0x40c)),require('@wendellhu/redi'),require(_0x40436b(0x165)),require(_0x40436b(0x18d)),require(_0x40436b(0x368)),require(_0x40436b(0x38b)),require(_0x40436b(0x1cb)),require(_0x40436b(0x2da)),require(_0x40436b(0x1d3)),require(_0x40436b(0x151)),require(_0x40436b(0x3cf)),require(_0x40436b(0x465)),require(_0x40436b(0x3ca)),require(_0x40436b(0x3a8)),require('@univerjs/rpc')):typeof define==_0x40436b(0x3e3)&&define['amd']?define([_0x40436b(0x309),_0x40436b(0x148),_0x40436b(0x47c),_0x40436b(0x46b),_0x40436b(0x187),'@univerjs-pro/collaboration',_0x40436b(0x2f8),_0x40436b(0x165),_0x40436b(0x18d),_0x40436b(0x368),_0x40436b(0x38b),'@univerjs/drawing',_0x40436b(0x2da),'lodash/debounce','@univerjs/engine-render','@univerjs/sheets-ui',_0x40436b(0x465),_0x40436b(0x3ca),_0x40436b(0x3a8),_0x40436b(0x3eb)],_0x9ec0ec):(_0x15a14c=typeof globalThis<'u'?globalThis:_0x15a14c||self,_0x9ec0ec(_0x15a14c[_0x40436b(0x359)]={},_0x15a14c[_0x40436b(0x3b6)],_0x15a14c[_0x40436b(0x32f)],_0x15a14c['UniverDesign'],_0x15a14c[_0x40436b(0x1fd)],_0x15a14c['UniverCollaboration'],_0x15a14c[_0x40436b(0x2f8)],_0x15a14c[_0x40436b(0x165)],_0x15a14c[_0x40436b(0x165)]['operators'],_0x15a14c['UniverDocs'],_0x15a14c[_0x40436b(0x28f)],_0x15a14c['UniverDrawing'],_0x15a14c[_0x40436b(0x164)],_0x15a14c[_0x40436b(0x2f1)]['debounce'],_0x15a14c[_0x40436b(0x247)],_0x15a14c[_0x40436b(0x3f3)],_0x15a14c[_0x40436b(0x465)],_0x15a14c[_0x40436b(0x2f3)],_0x15a14c['clsx'],_0x15a14c[_0x40436b(0x36d)]));}(this,function(_0x431c6f,_0x226a7e,_0x3acf4c,_0x2d5606,_0x15005b,_0x1e8c75,_0x49bc9,_0x4e5e3f,_0x4d72f4,_0x534040,_0x353e30,_0x57ff02,_0x2ca513,_0x270255,_0x5b613a,_0x1a2a28,_0x3c1409,_0x53ebe1,_0xb8caad,_0x5cea30){'use strict';const _0x228849=_0x572c;var _0x2d1587=Object[_0x228849(0x1fc)],_0x3ab982=(_0x357c9f,_0x2e3b1e,_0x4eecc0)=>_0x2e3b1e in _0x357c9f?_0x2d1587(_0x357c9f,_0x2e3b1e,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x4eecc0}):_0x357c9f[_0x2e3b1e]=_0x4eecc0,_0xaa2177=(_0x42f7fa,_0x355341,_0x38a73f)=>(_0x3ab982(_0x42f7fa,typeof _0x355341!=_0x228849(0x35b)?_0x355341+'':_0x355341,_0x38a73f),_0x38a73f);const _0x299079=_0x228849(0x229),_0x22538d=_0x228849(0x26a),_0x2e8975=_0x228849(0x23b),_0x6128a1=_0x228849(0x2ab),_0x54323b=_0x228849(0x2ce),_0x53cf5e='ws://127.0.0.1:8000/universer-api/comb/connect',_0x18051e='HEARTBEAT_INTERVAL',_0x2c7ffa=_0x228849(0x25a),_0x4c064c=_0x228849(0x3b2),_0x3dfce0=_0x228849(0x2ca),_0x109348='LOCAL_CACHE_INTERVAL',_0xe983e2=_0x228849(0x2fa),_0x3c52f6=_0x228849(0x1f2),_0x16f267=_0x228849(0x303),_0x1dc009=_0x228849(0x3f7);var _0x4a5019=(_0x58ed5e=>(_0x58ed5e[_0x58ed5e[_0x228849(0x2e9)]=0x0]=_0x228849(0x2e9),_0x58ed5e[_0x58ed5e['OK']=0x1]='OK',_0x58ed5e[_0x58ed5e[_0x228849(0x30e)]=0x2]=_0x228849(0x30e),_0x58ed5e[_0x58ed5e['PERMISSION_DENIED']=0x3]=_0x228849(0x489),_0x58ed5e[_0x58ed5e[_0x228849(0x4a0)]=0x4]='NOT_FOUND',_0x58ed5e[_0x58ed5e[_0x228849(0x205)]=0x5]='UNAUTHENTICATED',_0x58ed5e[_0x58ed5e[_0x228849(0x1dc)]=0x6]='ALREADY_EXISTS',_0x58ed5e[_0x58ed5e[_0x228849(0x287)]=0x7]=_0x228849(0x287),_0x58ed5e[_0x58ed5e[_0x228849(0x4e5)]=0x8]=_0x228849(0x4e5),_0x58ed5e[_0x58ed5e[_0x228849(0x194)]=0x9]=_0x228849(0x194),_0x58ed5e[_0x58ed5e[_0x228849(0x4f1)]=0x1389]=_0x228849(0x4f1),_0x58ed5e[_0x58ed5e[_0x228849(0x408)]=0x1771]=_0x228849(0x408),_0x58ed5e[_0x58ed5e[_0x228849(0x270)]=0x1b59]='APPLY_REJECT',_0x58ed5e[_0x58ed5e[_0x228849(0x3dc)]=0x1b5a]=_0x228849(0x3dc),_0x58ed5e[_0x58ed5e['APPLY_REVISION_CONFILICT']=0x1b5b]=_0x228849(0x2c4),_0x58ed5e[_0x58ed5e[_0x228849(0x4bd)]=0x1b5c]=_0x228849(0x4bd),_0x58ed5e[_0x58ed5e[_0x228849(0x298)]=0x1f41]=_0x228849(0x298),_0x58ed5e[_0x58ed5e[_0x228849(0x227)]=0x2329]=_0x228849(0x227),_0x58ed5e[_0x58ed5e[_0x228849(0x3e5)]=0x232a]=_0x228849(0x3e5),_0x58ed5e[_0x58ed5e[_0x228849(0x4e4)]=0x232b]=_0x228849(0x4e4),_0x58ed5e[_0x58ed5e[_0x228849(0x139)]=0x232c]=_0x228849(0x139),_0x58ed5e[_0x58ed5e[_0x228849(0x362)]=0x232d]=_0x228849(0x362),_0x58ed5e[_0x58ed5e[_0x228849(0x12f)]=0x2711]=_0x228849(0x12f),_0x58ed5e[_0x58ed5e['YUUMI_URL_COL_OUT_OF_RANGE']=0x2712]=_0x228849(0x222),_0x58ed5e[_0x58ed5e['UNRECOGNIZED']=-0x1]='UNRECOGNIZED',_0x58ed5e))(_0x4a5019||{}),_0xf0e06f=(_0x51ea28=>(_0x51ea28[_0x51ea28[_0x228849(0x376)]=0x0]=_0x228849(0x376),_0x51ea28[_0x51ea28[_0x228849(0x138)]=0x1]='UNIVER_DOC',_0x51ea28[_0x51ea28[_0x228849(0x390)]=0x2]=_0x228849(0x390),_0x51ea28[_0x51ea28[_0x228849(0x35d)]=0x3]=_0x228849(0x35d),_0x51ea28[_0x51ea28[_0x228849(0x4a8)]=-0x1]=_0x228849(0x4a8),_0x51ea28))(_0xf0e06f||{}),_0x3d5b02=(_0x2f6da7=>(_0x2f6da7[_0x2f6da7[_0x228849(0x22f)]=0x0]=_0x228849(0x22f),_0x2f6da7[_0x2f6da7[_0x228849(0x483)]=0x1]='HELLO',_0x2f6da7[_0x2f6da7['JOIN']=0x2]='JOIN',_0x2f6da7[_0x2f6da7[_0x228849(0x228)]=0x3]=_0x228849(0x228),_0x2f6da7[_0x2f6da7[_0x228849(0x14a)]=0x4]=_0x228849(0x14a),_0x2f6da7[_0x2f6da7[_0x228849(0x4a6)]=0x5]=_0x228849(0x4a6),_0x2f6da7[_0x2f6da7[_0x228849(0x290)]=0x6]='RECV',_0x2f6da7[_0x2f6da7[_0x228849(0x4a8)]=-0x1]='UNRECOGNIZED',_0x2f6da7))(_0x3d5b02||{}),_0x2e25ef=(_0x140195=>(_0x140195[_0x140195[_0x228849(0x16d)]=0x0]=_0x228849(0x16d),_0x140195[_0x140195['OK']=0x1]='OK',_0x140195[_0x140195[_0x228849(0x18e)]=0x2]=_0x228849(0x18e),_0x140195[_0x140195[_0x228849(0x4a8)]=-0x1]=_0x228849(0x4a8),_0x140195))(_0x2e25ef||{}),_0x239318=Object[_0x228849(0x1fc)],_0x5898eb=Object[_0x228849(0x1b4)],_0x595c27=(_0x252177,_0xa99a7f,_0x4e200f,_0x352a93)=>{const _0x106e83=_0x228849;for(var _0x1e0cf9=_0x352a93>0x1?void 0x0:_0x352a93?_0x5898eb(_0xa99a7f,_0x4e200f):_0xa99a7f,_0x1db8f6=_0x252177[_0x106e83(0x430)]-0x1,_0x4f07e5;_0x1db8f6>=0x0;_0x1db8f6--)(_0x4f07e5=_0x252177[_0x1db8f6])&&(_0x1e0cf9=(_0x352a93?_0x4f07e5(_0xa99a7f,_0x4e200f,_0x1e0cf9):_0x4f07e5(_0x1e0cf9))||_0x1e0cf9);return _0x352a93&&_0x1e0cf9&&_0x239318(_0xa99a7f,_0x4e200f,_0x1e0cf9),_0x1e0cf9;},_0x80eb64=(_0x5475b8,_0x5d0595)=>(_0x30f1a6,_0x2d173c)=>_0x5d0595(_0x30f1a6,_0x2d173c,_0x5475b8);let _0x2f6a5d=class extends _0x226a7e[_0x228849(0x484)]{constructor(_0x453100,_0x359275){const _0x18fb58=_0x228849;super(),_0xaa2177(this,_0x18fb58(0x487),new Map()),(this[_0x18fb58(0x1ad)]=_0x453100,this[_0x18fb58(0x255)]=_0x359275,this['disposeWithMe'](_0x226a7e[_0x18fb58(0x14b)](_0x4e5e3f[_0x18fb58(0x3d0)](this[_0x18fb58(0x1ad)]['getTypeOfUnitDisposed$'](_0x226a7e[_0x18fb58(0x27d)]['UNIVER_SHEET'])['pipe'](_0x4d72f4[_0x18fb58(0x4db)](_0x3b5bf1=>_0x3b5bf1['getUnitId']())),this[_0x18fb58(0x1ad)]['getTypeOfUnitDisposed$'](_0x226a7e['UniverInstanceType'][_0x18fb58(0x138)])[_0x18fb58(0x450)](_0x4d72f4[_0x18fb58(0x4db)](_0x385ade=>_0x385ade[_0x18fb58(0x2d1)]())),this[_0x18fb58(0x1ad)]['getTypeOfUnitDisposed$'](_0x226a7e['UniverInstanceType'][_0x18fb58(0x35d)])['pipe'](_0x4d72f4[_0x18fb58(0x4db)](_0x2a942b=>_0x2a942b[_0x18fb58(0x2d1)]())))[_0x18fb58(0x22c)](_0x1475ca=>this['_removeRoom'](_0x1475ca)))));}[_0x228849(0x48e)](_0xda2110){const _0x17cc63=_0x228849;this[_0x17cc63(0x255)][_0x17cc63(0x48e)](_0xda2110);}['getCurrentUser'](){const _0x3626d9=_0x228849;return this[_0x3626d9(0x255)]['getCurrentUser']();}[_0x228849(0x433)](_0x5cab59,_0x5e1a55){const _0x5f1dd9=_0x228849;let _0x4eec17=this['_roomMembers'][_0x5f1dd9(0x24c)](_0x5cab59);_0x4eec17||(_0x4eec17=new _0x17f5da(),this['_roomMembers'][_0x5f1dd9(0x4f3)](_0x5cab59,_0x4eec17)),_0x4eec17[_0x5f1dd9(0x433)](_0x5e1a55);}[_0x228849(0x17f)](_0x35013e,_0x16cf0d){const _0x43c86e=_0x228849,_0x4b3263=this[_0x43c86e(0x487)][_0x43c86e(0x24c)](_0x35013e);_0x4b3263&&_0x4b3263[_0x43c86e(0x17f)](_0x16cf0d);}[_0x228849(0x220)](_0xaf1673){const _0x1320a0=_0x228849;return this[_0x1320a0(0x487)]['get'](_0xaf1673);}['getMember'](_0x46d521,_0xece04e){const _0x1982db=_0x228849,_0x56dd1a=this[_0x1982db(0x487)][_0x1982db(0x24c)](_0x46d521);if(_0x56dd1a)return _0x56dd1a[_0x1982db(0x250)](_0xece04e);}[_0x228849(0x342)](_0x29724e){const _0x23439d=_0x228849,_0x12f68f=this['_roomMembers'][_0x23439d(0x24c)](_0x29724e);_0x12f68f&&(_0x12f68f[_0x23439d(0x485)](),this[_0x23439d(0x487)]['delete'](_0x29724e));}[_0x228849(0x485)](){const _0x2705f5=_0x228849;this[_0x2705f5(0x487)][_0x2705f5(0x3ad)](_0x1a6da0=>_0x1a6da0[_0x2705f5(0x485)]()),this['_roomMembers']['clear']();}};_0x2f6a5d=_0x595c27([_0x80eb64(0x0,_0x226a7e['IUniverInstanceService']),_0x80eb64(0x1,_0x49bc9['Inject'](_0x226a7e['UserManagerService']))],_0x2f6a5d);class _0x17f5da extends _0x226a7e['Disposable']{constructor(){super(...arguments),_0xaa2177(this,'_members',new Map());}['dispose'](){this['_members']['clear']();}[_0x228849(0x433)](_0x467380){const _0x5ddf92=_0x228849;this[_0x5ddf92(0x146)][_0x5ddf92(0x4f3)](_0x467380[_0x5ddf92(0x25d)],_0x467380);}[_0x228849(0x17f)](_0x590042){const _0x337d42=_0x228849;this[_0x337d42(0x146)][_0x337d42(0x2b1)](_0x590042);}['getMember'](_0x4f2ac3){const _0x9b80f7=_0x228849;return this[_0x9b80f7(0x146)][_0x9b80f7(0x24c)](_0x4f2ac3);}}function _0x37fba9(_0x1181a4){const _0x39e601=_0x228849;var _0x46b0d8,_0x1f4ea0,_0x119603,_0x366a4f;const _0x5676a4=_0x1181a4['data'],_0x3dcf58=JSON['parse'](_0x5676a4);switch(_0x3dcf58[_0x39e601(0x27c)]){case _0x3d5b02[_0x39e601(0x4a6)]:case _0x3d5b02[_0x39e601(0x483)]:{const _0x434f2d=_0x3dcf58[_0x39e601(0x2ec)];return{..._0x3dcf58,'data':_0x434f2d,'cmd':_0x3dcf58[_0x39e601(0x27c)]};}case _0x3d5b02[_0x39e601(0x424)]:{const _0x4a53c8=_0x3dcf58[_0x39e601(0x311)];return{..._0x3dcf58,'data':_0x4a53c8,'cmd':_0x3dcf58[_0x39e601(0x27c)]};}case _0x3d5b02['RECV']:{const _0x1fb0d3=_0x3dcf58[_0x39e601(0x249)];switch(_0x1fb0d3['eventID']){case _0x1e8c75[_0x39e601(0x198)][_0x39e601(0x143)]:return{..._0x3dcf58,'data':{..._0x1fb0d3,'data':(_0x46b0d8=_0x1fb0d3[_0x39e601(0x399)])==null?void 0x0:_0x46b0d8['cs']},'cmd':_0x3dcf58[_0x39e601(0x27c)]};case _0x1e8c75[_0x39e601(0x198)][_0x39e601(0x29c)]:return{..._0x3dcf58,'data':{..._0x1fb0d3,'data':(_0x1f4ea0=_0x1fb0d3[_0x39e601(0x449)])==null?void 0x0:_0x1f4ea0['cs']},'cmd':_0x3dcf58['cmd']};case _0x1e8c75[_0x39e601(0x198)][_0x39e601(0x213)]:return{..._0x3dcf58,'data':{..._0x1fb0d3,'data':(_0x119603=_0x1fb0d3[_0x39e601(0x141)])==null?void 0x0:_0x119603['cs']},'cmd':_0x3dcf58['cmd']};case _0x1e8c75['CollaborationEvent'][_0x39e601(0x4df)]:return{..._0x3dcf58,'data':{..._0x1fb0d3,'data':(_0x366a4f=_0x1fb0d3[_0x39e601(0x4c7)])==null?void 0x0:_0x366a4f['cs']},'cmd':_0x3dcf58[_0x39e601(0x27c)]};case _0x1e8c75[_0x39e601(0x198)][_0x39e601(0x253)]:return{..._0x3dcf58,'data':{..._0x1fb0d3,'data':_0x1fb0d3['updateCursorEvent']},'cmd':_0x3dcf58[_0x39e601(0x27c)]};case _0x1e8c75[_0x39e601(0x198)][_0x39e601(0x177)]:return{..._0x3dcf58,'data':{..._0x1fb0d3,'data':_0x1fb0d3[_0x39e601(0x2a3)]},'cmd':_0x3dcf58['cmd']};case _0x1e8c75[_0x39e601(0x198)][_0x39e601(0x42f)]:return{..._0x3dcf58,'data':{..._0x1fb0d3,'data':_0x1fb0d3[_0x39e601(0x4d8)]},'cmd':_0x3dcf58[_0x39e601(0x27c)]};case _0x1e8c75[_0x39e601(0x198)][_0x39e601(0x455)]:return{..._0x3dcf58,'data':{..._0x1fb0d3,'data':_0x1fb0d3['liveShareNewHost']},'cmd':_0x3dcf58[_0x39e601(0x27c)]};case _0x1e8c75[_0x39e601(0x198)][_0x39e601(0x417)]:case _0x1e8c75[_0x39e601(0x198)]['LIVESHARE_OPERATION']:return{..._0x3dcf58,'data':{..._0x1fb0d3,'data':_0x1fb0d3[_0x39e601(0x413)]},'cmd':_0x3dcf58[_0x39e601(0x27c)]};case _0x1e8c75[_0x39e601(0x198)]['LIVESHARE_TERMINATE']:return{..._0x3dcf58,'data':{..._0x1fb0d3,'data':_0x1fb0d3['liveShareNewHost']},'cmd':_0x3dcf58[_0x39e601(0x27c)]};case _0x1e8c75[_0x39e601(0x198)][_0x39e601(0x37c)]:return{..._0x3dcf58,'data':_0x1fb0d3,'cmd':_0x3dcf58[_0x39e601(0x27c)]};default:return _0x3dcf58;}}default:return _0x3dcf58;}}function _0x543e7b(_0xc86e32){const _0x580aa7=_0x228849;switch(_0xc86e32[_0x580aa7(0x27c)]){case _0x3d5b02['HEARTBEAT']:case _0x3d5b02['HELLO']:return JSON[_0x580aa7(0x1d4)]({'cmd':_0xc86e32[_0x580aa7(0x27c)],'routeKey':_0xc86e32['routeKey']});case _0x3d5b02[_0x580aa7(0x14a)]:{let _0x53c6e2;switch(_0xc86e32[_0x580aa7(0x1f8)]['eventID']){case _0x1e8c75[_0x580aa7(0x198)][_0x580aa7(0x253)]:{_0x53c6e2={'eventID':_0x1e8c75[_0x580aa7(0x198)][_0x580aa7(0x253)],'updateCursorEvent':_0xc86e32[_0x580aa7(0x1f8)][_0x580aa7(0x1f8)]};break;}case _0x1e8c75[_0x580aa7(0x198)]['USERS_LEAVE']:{_0x53c6e2={'eventID':_0x1e8c75[_0x580aa7(0x198)][_0x580aa7(0x42f)],'leaveEvent':_0xc86e32[_0x580aa7(0x1f8)][_0x580aa7(0x1f8)]};break;}case _0x1e8c75['CollaborationEvent'][_0x580aa7(0x177)]:{_0x53c6e2={'eventID':_0x1e8c75[_0x580aa7(0x198)]['USERS_ENTER'],'joinEvent':_0xc86e32[_0x580aa7(0x1f8)][_0x580aa7(0x1f8)]};break;}case _0x1e8c75[_0x580aa7(0x198)][_0x580aa7(0x455)]:{_0x53c6e2={'eventID':_0x1e8c75['CollaborationEvent'][_0x580aa7(0x455)],'liveShareNewHost':_0xc86e32[_0x580aa7(0x1f8)][_0x580aa7(0x1f8)]};break;}case _0x1e8c75[_0x580aa7(0x198)]['LIVESHARE_OPERATION']:{_0x53c6e2={'eventID':_0x1e8c75['CollaborationEvent'][_0x580aa7(0x312)],'liveShareOperation':_0xc86e32[_0x580aa7(0x1f8)][_0x580aa7(0x1f8)]};break;}case _0x1e8c75[_0x580aa7(0x198)][_0x580aa7(0x2cf)]:{_0x53c6e2={'eventID':_0x1e8c75[_0x580aa7(0x198)][_0x580aa7(0x2cf)],'liveShareTerminate':_0xc86e32[_0x580aa7(0x1f8)][_0x580aa7(0x1f8)]};break;}case _0x1e8c75[_0x580aa7(0x198)][_0x580aa7(0x2d8)]:{_0x53c6e2={'eventID':_0x1e8c75['CollaborationEvent'][_0x580aa7(0x2d8)],'liveShareRequestHost':_0xc86e32[_0x580aa7(0x1f8)][_0x580aa7(0x1f8)]};break;}case _0x1e8c75[_0x580aa7(0x198)]['LIVESHARE_FETCH_OPERATIONS']:{_0x53c6e2={'eventID':_0x1e8c75['CollaborationEvent'][_0x580aa7(0x417)]};break;}default:_0x53c6e2={'eventID':_0xc86e32[_0x580aa7(0x1f8)][_0x580aa7(0x325)]};}return JSON[_0x580aa7(0x1d4)]({'cmd':_0xc86e32[_0x580aa7(0x27c)],'routeKey':_0xc86e32[_0x580aa7(0x3e2)],'collaMsg':_0x53c6e2});}case _0x3d5b02['JOIN']:return JSON[_0x580aa7(0x1d4)]({'cmd':_0xc86e32[_0x580aa7(0x27c)],'routeKey':_0xc86e32[_0x580aa7(0x3e2)],'joinReq':_0xc86e32['data']});case _0x3d5b02[_0x580aa7(0x228)]:return JSON['stringify']({'cmd':_0xc86e32[_0x580aa7(0x27c)],'routeKey':_0xc86e32[_0x580aa7(0x3e2)],'leaveReq':_0xc86e32[_0x580aa7(0x1f8)]});default:throw new Error(_0x580aa7(0x3fa));}}var _0x39c973=Object['defineProperty'],_0x3df336=Object[_0x228849(0x1b4)],_0x5e3f76=(_0x264933,_0x4504ae,_0x10b028,_0x4d9bd9)=>{for(var _0x4cb445=_0x4d9bd9>0x1?void 0x0:_0x4d9bd9?_0x3df336(_0x4504ae,_0x10b028):_0x4504ae,_0x34529d=_0x264933['length']-0x1,_0x564b27;_0x34529d>=0x0;_0x34529d--)(_0x564b27=_0x264933[_0x34529d])&&(_0x4cb445=(_0x4d9bd9?_0x564b27(_0x4504ae,_0x10b028,_0x4cb445):_0x564b27(_0x4cb445))||_0x4cb445);return _0x4d9bd9&&_0x4cb445&&_0x39c973(_0x4504ae,_0x10b028,_0x4cb445),_0x4cb445;},_0x59d6ec=(_0x20144b,_0x2da1a2)=>(_0xd82da2,_0x1ca520)=>_0x2da1a2(_0xd82da2,_0x1ca520,_0x20144b);const _0x970e64=_0x49bc9[_0x228849(0x175)]('univer-pro.collaboration-client-socket-service');function _0x58f9a1(_0x41f4b3,_0x197aeb,_0xc06b37){const _0x2d01a4=_0x228849;return _0x41f4b3+'/'+_0x197aeb+'/unit/'+_0xc06b37+_0x2d01a4(0x4e2);}_0x431c6f[_0x228849(0x207)]=class{constructor(_0x3dd2e9,_0x36ef21,_0x5c2af1,_0x155c39,_0x54c644){const _0x50eb4c=_0x228849;this[_0x50eb4c(0x2db)]=_0x3dd2e9,this[_0x50eb4c(0x389)]=_0x36ef21,this[_0x50eb4c(0x12b)]=_0x5c2af1,this[_0x50eb4c(0x464)]=_0x155c39,this[_0x50eb4c(0x28e)]=_0x54c644;}[_0x228849(0x4c9)](_0x5dd9b2){const _0x217da6=_0x228849,_0x38f9d7=this[_0x217da6(0x389)]['createSocket'](_0x5dd9b2);if(!_0x38f9d7)throw new Error('[CollaborationSocketService]:\x20failed\x20to\x20create\x20socket!');const _0x119ea6=new _0x226a7e[(_0x217da6(0x4b3))](),_0x19576c=new _0x4e5e3f[(_0x217da6(0x4bc))]();_0x119ea6[_0x217da6(0x33d)](_0x226a7e[_0x217da6(0x14b)](_0x38f9d7[_0x217da6(0x1e7)][_0x217da6(0x22c)](_0x23823c=>_0x19576c[_0x217da6(0x488)](_0x23823c)))),_0x119ea6[_0x217da6(0x33d)](_0x226a7e[_0x217da6(0x14b)](()=>_0x19576c[_0x217da6(0x1dd)]()));const _0x1253eb=new _0x4e5e3f[(_0x217da6(0x4bc))]();_0x119ea6[_0x217da6(0x33d)](_0x226a7e['toDisposable'](_0x38f9d7['error$'][_0x217da6(0x22c)](_0x1a64b5=>_0x1253eb['next'](_0x1a64b5)))),_0x119ea6['add'](_0x226a7e[_0x217da6(0x14b)](()=>_0x1253eb[_0x217da6(0x1dd)]()));const _0x9cfd9e=new _0x4e5e3f[(_0x217da6(0x4bc))]();_0x119ea6[_0x217da6(0x33d)](_0x226a7e[_0x217da6(0x14b)](_0x38f9d7[_0x217da6(0x160)]['subscribe'](_0x5b5578=>{const _0x85ce79=_0x217da6,_0x2b44b2=_0x37fba9(_0x5b5578);_0x9cfd9e[_0x85ce79(0x488)](_0x2b44b2);}))),_0x119ea6[_0x217da6(0x33d)](_0x226a7e['toDisposable'](()=>_0x9cfd9e[_0x217da6(0x1dd)]()));const _0x330a24=()=>{const _0x409625=_0x217da6;_0x1253eb[_0x409625(0x488)](new Event(_0x409625(0x476))),_0x19576c[_0x409625(0x488)](new CloseEvent(_0x409625(0x476))),_0x30284c['close']();},_0x30284c={'memberID':'','close$':_0x19576c[_0x217da6(0x1fe)](),'error$':_0x1253eb[_0x217da6(0x1fe)](),'open$':_0x38f9d7[_0x217da6(0x24b)],'message$':_0x9cfd9e[_0x217da6(0x1fe)](),'send':_0x503705=>{const _0x2beeca=_0x217da6;if(_0x503705[_0x2beeca(0x27c)]===_0x3d5b02[_0x2beeca(0x14a)]){if(_0x503705[_0x2beeca(0x1f8)]['eventID']===_0x1e8c75['CollaborationEvent'][_0x2beeca(0x2b5)]){this[_0x2beeca(0x1f4)](_0x30284c,_0x503705[_0x2beeca(0x1f8)])['catch'](_0xbd6fcd=>{const _0x31ad66=_0x2beeca;this[_0x31ad66(0x464)][_0x31ad66(0x24e)](_0xbd6fcd),_0x330a24();});return;}if(_0x503705[_0x2beeca(0x1f8)]['eventID']===_0x1e8c75['CollaborationEvent']['FETCH_MISSING']){const _0x1440c6=_0x503705[_0x2beeca(0x1f8)];this['_fetchMissChangesets'](_0x1440c6)[_0x2beeca(0x1ae)](_0x44fbea=>{const _0x3e5836=_0x2beeca;_0x9cfd9e[_0x3e5836(0x488)]({'cmd':_0x3d5b02[_0x3e5836(0x290)],'code':_0x2e25ef['OK'],'routeKey':_0x1440c6[_0x3e5836(0x1f8)][_0x3e5836(0x340)],'routeType':'','data':{'eventID':_0x1e8c75[_0x3e5836(0x198)][_0x3e5836(0x34e)],'data':{'changesets':_0x44fbea}}});})[_0x2beeca(0x280)](_0x3e744c=>{const _0x634178=_0x2beeca;this['_logService'][_0x634178(0x24e)](_0x3e744c),_0x330a24();});return;}}_0x38f9d7['send'](_0x543e7b(_0x503705));},'close':()=>{const _0x382d17=_0x217da6;_0x38f9d7[_0x382d17(0x158)](),_0x119ea6[_0x382d17(0x485)]();}};return _0x30284c;}async[_0x228849(0x1f4)](_0x30b51c,_0x7d5a61){const _0x2248a4=_0x228849;var _0x2bce14;const {unitType:_0x19ed75,unitID:_0x103fef,changeset:_0x56934b}=_0x7d5a61[_0x2248a4(0x1f8)],_0x11b604={'unitID':_0x103fef,'memberID':_0x30b51c['memberID'],'type':_0x19ed75,'changeset':_0x1e8c75[_0x2248a4(0x15f)](_0x56934b)},_0x48dbea=_0x58f9a1((_0x2bce14=this[_0x2248a4(0x12b)][_0x2248a4(0x176)](_0xe983e2))!=null?_0x2bce14:_0x3c52f6,_0x19ed75,_0x103fef);try{await this[_0x2248a4(0x2db)][_0x2248a4(0x32b)](_0x48dbea,{'body':_0x11b604});}catch(_0x3e56ca){throw this['_logService']['error'](_0x2248a4(0x3aa),_0x2248a4(0x423)),_0x3e56ca;}}async['_fetchMissChangesets'](_0x174ebc){const _0x53b07e=_0x228849,{unitID:_0x1f4e09,from:_0x5b4342,to:_0x1ea1ee,unitType:_0x1c5496}=_0x174ebc[_0x53b07e(0x1f8)];return(await this[_0x53b07e(0x28e)][_0x53b07e(0x1c4)]({'metadata':void 0x0},{'unitID':_0x1f4e09,'type':_0x1c5496,'from':_0x5b4342,'to':_0x1ea1ee}))[_0x53b07e(0x2bf)];}},_0x431c6f[_0x228849(0x207)]=_0x5e3f76([_0x59d6ec(0x0,_0x49bc9['Inject'](_0x353e30[_0x228849(0x26c)])),_0x59d6ec(0x1,_0x49bc9[_0x228849(0x31c)](_0x353e30[_0x228849(0x174)])),_0x59d6ec(0x2,_0x226a7e['IConfigService']),_0x59d6ec(0x3,_0x226a7e['ILogService']),_0x59d6ec(0x4,_0x226a7e[_0x228849(0x2ff)])],_0x431c6f[_0x228849(0x207)]);var _0x448773=Object[_0x228849(0x1fc)],_0x1c616b=Object[_0x228849(0x1b4)],_0x47e7b2=(_0x4c841e,_0x4bcacd,_0x367d1e,_0x174a52)=>{const _0x155e93=_0x228849;for(var _0x2ffdd9=_0x174a52>0x1?void 0x0:_0x174a52?_0x1c616b(_0x4bcacd,_0x367d1e):_0x4bcacd,_0x2f8e03=_0x4c841e[_0x155e93(0x430)]-0x1,_0x4a6c11;_0x2f8e03>=0x0;_0x2f8e03--)(_0x4a6c11=_0x4c841e[_0x2f8e03])&&(_0x2ffdd9=(_0x174a52?_0x4a6c11(_0x4bcacd,_0x367d1e,_0x2ffdd9):_0x4a6c11(_0x2ffdd9))||_0x2ffdd9);return _0x174a52&&_0x2ffdd9&&_0x448773(_0x4bcacd,_0x367d1e,_0x2ffdd9),_0x2ffdd9;},_0x30544e=(_0xfe29f4,_0x42c9d2)=>(_0x1512ba,_0x38ef24)=>_0x42c9d2(_0x1512ba,_0x38ef24,_0xfe29f4),_0x2d0945=(_0x58d0b5=>(_0x58d0b5[_0x58d0b5[_0x228849(0x1f7)]=0x0]='IDLE',_0x58d0b5[_0x58d0b5[_0x228849(0x3fd)]=0x1]=_0x228849(0x3fd),_0x58d0b5[_0x58d0b5[_0x228849(0x26d)]=0x2]=_0x228849(0x26d),_0x58d0b5[_0x58d0b5['ONLINE']=0x3]=_0x228849(0x4cc),_0x58d0b5))(_0x2d0945||{});_0x431c6f[_0x228849(0x2d6)]=class extends _0x226a7e['RxDisposable']{constructor(_0x353dad,_0x28f5aa,_0x518948,_0xd96d30,_0x55e9e6,_0x3dc0d6,_0x13ece2,_0x542434){const _0x2e5fcc=_0x228849;super(),_0xaa2177(this,_0x2e5fcc(0x19b),new _0x4e5e3f['BehaviorSubject'](0x0)),_0xaa2177(this,_0x2e5fcc(0x2b7),this[_0x2e5fcc(0x19b)][_0x2e5fcc(0x1fe)]()),_0xaa2177(this,'_event$',new _0x4e5e3f[(_0x2e5fcc(0x4bc))]()),_0xaa2177(this,'event$',this['_event$'][_0x2e5fcc(0x1fe)]()),_0xaa2177(this,_0x2e5fcc(0x39b)),_0xaa2177(this,'_socketMessageSubscription'),_0xaa2177(this,_0x2e5fcc(0x2d3)),(this[_0x2e5fcc(0x3e1)]=_0x353dad,this[_0x2e5fcc(0x464)]=_0x518948,this['_beforeCloseService']=_0xd96d30,this[_0x2e5fcc(0x306)]=_0x55e9e6,this[_0x2e5fcc(0x12b)]=_0x3dc0d6,this[_0x2e5fcc(0x401)]=_0x13ece2,this[_0x2e5fcc(0x2c7)]=_0x542434,_0x28f5aa[_0x2e5fcc(0x450)](_0x4d72f4[_0x2e5fcc(0x2e4)](this['dispose$']))[_0x2e5fcc(0x22c)](_0x1d4e89=>{const _0x342df9=_0x2e5fcc;var _0x279d03;typeof _0x1d4e89>'u'||(this[_0x342df9(0x39b)]=_0x1d4e89,_0x1d4e89?(this[_0x342df9(0x3e7)](_0x1d4e89),this[_0x342df9(0x20d)]=this['_socket'][_0x342df9(0x160)][_0x342df9(0x22c)](_0x42188b=>{const _0x5ab5c1=_0x342df9;_0x42188b[_0x5ab5c1(0x3e2)]===this[_0x5ab5c1(0x3e1)]&&this[_0x5ab5c1(0x27b)](_0x42188b);})):(this[_0x342df9(0x19b)]['next'](0x2),(_0x279d03=this['_socketMessageSubscription'])==null||_0x279d03[_0x342df9(0x23d)](),this[_0x342df9(0x20d)]=null));}),this[_0x2e5fcc(0x231)](this['_beforeCloseService'][_0x2e5fcc(0x289)](()=>{const _0x32138d=_0x2e5fcc;var _0x546909;(_0x546909=this[_0x32138d(0x39b)])==null||_0x546909[_0x32138d(0x4ed)]({'cmd':_0x3d5b02[_0x32138d(0x228)],'data':{'roomID':this[_0x32138d(0x3e1)]}});})));}get[_0x228849(0x396)](){const _0x3e5e82=_0x228849;return this[_0x3e5e82(0x19b)]['getValue']();}[_0x228849(0x2e1)](){const _0x1609b0=_0x228849;var _0x423b5d,_0x2cd990;return(_0x2cd990=(_0x423b5d=this[_0x1609b0(0x39b)])==null?void 0x0:_0x423b5d[_0x1609b0(0x25d)])!=null?_0x2cd990:null;}['dispose'](){const _0x466973=_0x228849;super[_0x466973(0x485)](),this['dispose$'][_0x466973(0x488)](),this[_0x466973(0x1ec)][_0x466973(0x1dd)]();}[_0x228849(0x27b)](_0x2032c8){const _0x4a8449=_0x228849;_0x2032c8[_0x4a8449(0x27c)]===_0x3d5b02['JOIN']?this['_onJoinRoomEvent'](_0x2032c8):_0x2032c8[_0x4a8449(0x27c)]===_0x3d5b02[_0x4a8449(0x290)]&&this[_0x4a8449(0x239)](_0x2032c8);}[_0x228849(0x3e7)](_0x5d9412){const _0xc7c4f1=_0x228849;this[_0xc7c4f1(0x19b)][_0xc7c4f1(0x488)](0x1),_0x5d9412[_0xc7c4f1(0x4ed)]({'cmd':_0x3d5b02[_0xc7c4f1(0x424)],'routeKey':this[_0xc7c4f1(0x3e1)],'routeType':'','data':{'rooms':[{'roomID':this[_0xc7c4f1(0x3e1)]}]}});}[_0x228849(0x2c6)](_0x43a12a){const _0x43dac1=_0x228849;var _0x132362;if(_0x43a12a['code']===_0x2e25ef[_0x43dac1(0x18e)]){this[_0x43dac1(0x306)][_0x43dac1(0x333)]({'type':_0x2d5606[_0x43dac1(0x481)][_0x43dac1(0x14e)],'content':this['_localeService']['t'](_0x43dac1(0x2d9))}),this[_0x43dac1(0x19b)][_0x43dac1(0x488)](0x2);return;}this[_0x43dac1(0x19b)][_0x43dac1(0x488)](0x3);const _0x4ef2e9=(_0x132362=_0x43a12a[_0x43dac1(0x1f8)][_0x43dac1(0x20c)][this[_0x43dac1(0x3e1)]])==null?void 0x0:_0x132362[_0x43dac1(0x269)];_0x4ef2e9&&_0x4ef2e9[_0x43dac1(0x3ad)](_0x42177a=>this[_0x43dac1(0x2c7)][_0x43dac1(0x433)](this[_0x43dac1(0x3e1)],_0x42177a));}[_0x228849(0x239)](_0x2a259b){const _0x1fa4f8=_0x228849;try{const _0x3bc9ca=_0x2a259b[_0x1fa4f8(0x1f8)];switch(_0x3bc9ca[_0x1fa4f8(0x325)]){case _0x1e8c75['CollaborationEvent']['USERS_ENTER']:this[_0x1fa4f8(0x337)](_0x3bc9ca),this[_0x1fa4f8(0x2a2)][_0x1fa4f8(0x488)](_0x3bc9ca);break;case _0x1e8c75[_0x1fa4f8(0x198)][_0x1fa4f8(0x42f)]:this[_0x1fa4f8(0x1da)](_0x3bc9ca),this['_event$']['next'](_0x3bc9ca);break;case _0x1e8c75[_0x1fa4f8(0x198)][_0x1fa4f8(0x29c)]:this[_0x1fa4f8(0x136)](),this[_0x1fa4f8(0x2a2)][_0x1fa4f8(0x488)](_0x3bc9ca);break;case _0x1e8c75[_0x1fa4f8(0x198)][_0x1fa4f8(0x37c)]:this[_0x1fa4f8(0x464)][_0x1fa4f8(0x24e)](_0x1fa4f8(0x3f1)+JSON['stringify'](_0x3bc9ca)),this[_0x1fa4f8(0x2a2)]['next'](_0x3bc9ca);break;default:this[_0x1fa4f8(0x2a2)][_0x1fa4f8(0x488)](_0x3bc9ca);}}catch(_0x4b0b07){this[_0x1fa4f8(0x464)][_0x1fa4f8(0x24e)](_0x4b0b07,_0x2a259b);}}[_0x228849(0x337)](_0x55dab4){const _0x3beb1b=_0x228849;this[_0x3beb1b(0x2c7)]['updateMember'](this[_0x3beb1b(0x3e1)],_0x55dab4[_0x3beb1b(0x1f8)]);}[_0x228849(0x1da)](_0x44b3d0){const _0x1b0a83=_0x228849;this['_memberService'][_0x1b0a83(0x17f)](this['_unitID'],_0x44b3d0[_0x1b0a83(0x1f8)][_0x1b0a83(0x25d)]);}async[_0x228849(0x4ed)](_0x56bfcd,_0x181f54){const _0x51cdfe=_0x228849;if(this[_0x51cdfe(0x396)]!==0x3||!this[_0x51cdfe(0x39b)])throw new Error(_0x51cdfe(0x15a));try{_0x56bfcd[_0x51cdfe(0x325)]===_0x1e8c75[_0x51cdfe(0x198)]['NEW_CHANGESETS']&&this['_scheduleCollaborationTimeoutTimer'](),this[_0x51cdfe(0x39b)][_0x51cdfe(0x4ed)]({'cmd':_0x3d5b02[_0x51cdfe(0x14a)],'routeKey':_0x181f54,'routeType':'','data':_0x56bfcd});}catch(_0x3428db){this[_0x51cdfe(0x464)]['error'](_0x3428db);}}['_scheduleCollaborationTimeoutTimer'](){const _0x5a3abc=_0x228849;var _0x18723f;this[_0x5a3abc(0x2d3)]=window[_0x5a3abc(0x46a)](()=>{const _0x361875=_0x5a3abc;this[_0x361875(0x2d3)]=null,this[_0x361875(0x306)][_0x361875(0x333)]({'type':_0x2d5606[_0x361875(0x481)]['Error'],'content':this[_0x361875(0x401)]['t'](_0x361875(0x28c))});},(_0x18723f=this['_configService'][_0x5a3abc(0x176)](_0x2c7ffa))!=null?_0x18723f:0x2710);}[_0x228849(0x136)](){this['_collaborationTimeoutTimer']&&(clearTimeout(this['_collaborationTimeoutTimer']),this['_collaborationTimeoutTimer']=null);}},_0x431c6f['CollaborationSession']=_0x47e7b2([_0x30544e(0x2,_0x226a7e[_0x228849(0x212)]),_0x30544e(0x3,_0x15005b[_0x228849(0x4c2)]),_0x30544e(0x4,_0x15005b['IMessageService']),_0x30544e(0x5,_0x226a7e[_0x228849(0x26f)]),_0x30544e(0x6,_0x49bc9[_0x228849(0x31c)](_0x226a7e['LocaleService'])),_0x30544e(0x7,_0x49bc9[_0x228849(0x31c)](_0x2f6a5d))],_0x431c6f['CollaborationSession']),_0x431c6f['CollaborationSessionService']=class extends _0x226a7e[_0x228849(0x484)]{constructor(_0x44e410,_0x4aa2b0,_0x138b98,_0x5a0f35,_0x49cdf8,_0x17f301){const _0x417949=_0x228849;super(),_0xaa2177(this,'_socket$',new _0x4e5e3f[(_0x417949(0x2e7))](void 0x0)),_0xaa2177(this,_0x417949(0x1d0),new Map()),_0xaa2177(this,'_status$',new _0x4e5e3f['BehaviorSubject'](0x0)),_0xaa2177(this,'status$',this[_0x417949(0x3ee)][_0x417949(0x1fe)]()),_0xaa2177(this,_0x417949(0x1b7),!0x1),_0xaa2177(this,_0x417949(0x2be)),_0xaa2177(this,_0x417949(0x2cd)),_0xaa2177(this,_0x417949(0x1f1)),_0xaa2177(this,_0x417949(0x20f),0x0),(this[_0x417949(0x28b)]=_0x44e410,this[_0x417949(0x401)]=_0x4aa2b0,this[_0x417949(0x306)]=_0x138b98,this['_logService']=_0x5a0f35,this[_0x417949(0x12b)]=_0x49cdf8,this[_0x417949(0x3c3)]=_0x17f301);}get['_socket'](){const _0x2d1418=_0x228849;return this[_0x2d1418(0x36a)][_0x2d1418(0x181)]();}[_0x228849(0x485)](){const _0x409b1b=_0x228849;super['dispose'](),this[_0x409b1b(0x1d0)][_0x409b1b(0x3ad)](_0x438e8a=>_0x438e8a[_0x409b1b(0x485)]()),this[_0x409b1b(0x1d0)]['clear'](),this[_0x409b1b(0x3ee)][_0x409b1b(0x1dd)]();}async['requireSession'](_0x364513){const _0x7e05ae=_0x228849;if(this[_0x7e05ae(0x1d0)][_0x7e05ae(0x1b2)](_0x364513))return this[_0x7e05ae(0x1d0)][_0x7e05ae(0x24c)](_0x364513);this[_0x7e05ae(0x4b5)]();const _0x276be3=this['_injector']['createInstance'](_0x431c6f[_0x7e05ae(0x2d6)],_0x364513,this[_0x7e05ae(0x36a)][_0x7e05ae(0x1fe)]());return this[_0x7e05ae(0x1d0)]['set'](_0x364513,_0x276be3),_0x276be3;}['_createSocket'](){const _0x4f626e=_0x228849;var _0x219b58;const _0x4143bb=(_0x219b58=this[_0x4f626e(0x12b)][_0x4f626e(0x176)](_0x54323b))!=null?_0x219b58:_0x53cf5e;return this[_0x4f626e(0x3c3)][_0x4f626e(0x4c9)](_0x4143bb);}['_tryEnsureSocket'](){const _0xecc7cc=_0x228849;try{const _0x2fa52d=this[_0xecc7cc(0x472)]();if(_0x2fa52d){const _0x27a03b=_0x2fa52d['send'];_0x2fa52d[_0xecc7cc(0x4ed)]=_0x305ec0=>(this['_rescheduleHeartbeatEvent'](),_0x27a03b[_0xecc7cc(0x4eb)](_0x2fa52d,[_0x305ec0])),_0x2fa52d[_0xecc7cc(0x160)][_0xecc7cc(0x22c)](_0x125092=>this[_0xecc7cc(0x3b9)](_0x2fa52d,_0x125092)),_0x2fa52d[_0xecc7cc(0x22b)]['pipe'](_0x4d72f4[_0xecc7cc(0x1db)](0x1))[_0xecc7cc(0x22c)](_0x23239f=>this[_0xecc7cc(0x464)][_0xecc7cc(0x24e)](_0xecc7cc(0x19e),_0x23239f)),_0x2fa52d['open$'][_0xecc7cc(0x450)](_0x4d72f4[_0xecc7cc(0x1db)](0x1))[_0xecc7cc(0x22c)](()=>{const _0x52df8a=_0xecc7cc;this[_0x52df8a(0x22e)](_0x2fa52d);}),_0x2fa52d['close$'][_0xecc7cc(0x450)](_0x4d72f4[_0xecc7cc(0x1db)](0x1))[_0xecc7cc(0x22c)](_0x1e1773=>{const _0x31d687=_0xecc7cc;this[_0x31d687(0x464)]['debug'](_0x31d687(0x242),'socket\x20close',_0x1e1773),this[_0x31d687(0x3b0)]();});}}catch(_0x35a88b){this[_0xecc7cc(0x464)][_0xecc7cc(0x24e)](_0x35a88b),this['_onConnectionFailed']();}}[_0x228849(0x22e)](_0x5a2fcb){const _0xf0e5e=_0x228849;this['_logService'][_0xf0e5e(0x434)](_0xf0e5e(0x242),_0xf0e5e(0x2f6)),_0x5a2fcb['send']({'cmd':_0x3d5b02[_0xf0e5e(0x483)]}),this['_rescheduleHeartbeatEvent']();}[_0x228849(0x3b0)](){const _0x3358c5=_0x228849;var _0x33430d;this[_0x3358c5(0x3ee)]['next'](0x2),this[_0x3358c5(0x36a)][_0x3358c5(0x488)](null),this['_clearTimeoutTimer'](),this['_clearHeartbeatTimer'](),this['_socketReady']=!0x1,this[_0x3358c5(0x20f)]<((_0x33430d=this[_0x3358c5(0x12b)][_0x3358c5(0x176)](_0x3dfce0))!=null?_0x33430d:0x3)?(this[_0x3358c5(0x2ef)](this[_0x3358c5(0x20f)]),this['_retryCount']+=0x1):this['_messageService'][_0x3358c5(0x333)]({'type':_0x2d5606['MessageType'][_0x3358c5(0x45b)],'content':this['_localeService']['t'](_0x3358c5(0x304))});}[_0x228849(0x2ef)](_0x28e772){const _0x4d500c=_0x228849;var _0x517859;const _0x3f0be6=((_0x517859=this[_0x4d500c(0x12b)]['getConfig'](_0x4c064c))!=null?_0x517859:0x4e20)*0x2**_0x28e772;this['_messageService'][_0x4d500c(0x333)]({'type':_0x2d5606[_0x4d500c(0x481)]['Warning'],'content':this[_0x4d500c(0x401)]['t'](_0x4d500c(0x3e9))}),this[_0x4d500c(0x1f1)]=setTimeout(()=>{const _0x512202=_0x4d500c;this[_0x512202(0x4b5)](),clearTimeout(this[_0x512202(0x1f1)]),this[_0x512202(0x1f1)]=null;},_0x3f0be6);}['_rescheduleHeartbeatEvent'](){const _0x34cd58=_0x228849;var _0xc7ae4;this['_clearHeartbeatTimer'](),this[_0x34cd58(0x2be)]=setTimeout(()=>this[_0x34cd58(0x3b7)](),(_0xc7ae4=this['_configService'][_0x34cd58(0x176)](_0x18051e))!=null?_0xc7ae4:0x7530);}['_sendHeartbeat'](){const _0x54b2eb=_0x228849;this[_0x54b2eb(0x39b)][_0x54b2eb(0x4ed)]({'cmd':_0x3d5b02[_0x54b2eb(0x4a6)]}),this['_waitForHeartbeatResponse']();}[_0x228849(0x3c4)](){const _0x5d64f8=_0x228849;var _0x51ebb2;this['_timeoutTimer']=setTimeout(()=>this[_0x5d64f8(0x3b0)](),(_0x51ebb2=this[_0x5d64f8(0x12b)][_0x5d64f8(0x176)](_0x2c7ffa))!=null?_0x51ebb2:0x2710);}[_0x228849(0x3b9)](_0x40a3b2,_0xc5a11d){const _0x3df058=_0x228849,{cmd:_0x660b9d}=_0xc5a11d;_0x660b9d===_0x3d5b02[_0x3df058(0x483)]&&!this[_0x3df058(0x1b7)]&&(_0x40a3b2[_0x3df058(0x25d)]=_0xc5a11d[_0x3df058(0x1f8)][_0x3df058(0x25d)],this['_socket$'][_0x3df058(0x488)](_0x40a3b2),this[_0x3df058(0x3ee)][_0x3df058(0x488)](0x3),this[_0x3df058(0x1b7)]=!0x0),_0x660b9d===_0x3d5b02[_0x3df058(0x4a6)]&&this[_0x3df058(0x38a)](),this[_0x3df058(0x37d)]();}[_0x228849(0x3f5)](){const _0x3c28f0=_0x228849;this[_0x3c28f0(0x2be)]!=null&&(clearTimeout(this[_0x3c28f0(0x2be)]),this['_sendHeartbeatTimer']=null);}[_0x228849(0x38a)](){const _0x49c8ff=_0x228849;this[_0x49c8ff(0x2cd)]!=null&&(clearTimeout(this[_0x49c8ff(0x2cd)]),this[_0x49c8ff(0x2cd)]=null);}},_0x431c6f[_0x228849(0x192)]=_0x47e7b2([_0x30544e(0x0,_0x49bc9[_0x228849(0x31c)](_0x49bc9['Injector'])),_0x30544e(0x1,_0x49bc9[_0x228849(0x31c)](_0x226a7e[_0x228849(0x355)])),_0x30544e(0x2,_0x15005b[_0x228849(0x4f8)]),_0x30544e(0x3,_0x226a7e[_0x228849(0x212)]),_0x30544e(0x4,_0x226a7e[_0x228849(0x26f)]),_0x30544e(0x5,_0x970e64)],_0x431c6f[_0x228849(0x192)]);var _0x55b5d1=Object['defineProperty'],_0x5a4fcb=Object[_0x228849(0x1b4)],_0x14dad1=(_0x1e0865,_0x62f70f,_0x3f7658,_0x5dc0b9)=>{for(var _0x5dd832=_0x5dc0b9>0x1?void 0x0:_0x5dc0b9?_0x5a4fcb(_0x62f70f,_0x3f7658):_0x62f70f,_0x10ef2b=_0x1e0865['length']-0x1,_0x467203;_0x10ef2b>=0x0;_0x10ef2b--)(_0x467203=_0x1e0865[_0x10ef2b])&&(_0x5dd832=(_0x5dc0b9?_0x467203(_0x62f70f,_0x3f7658,_0x5dd832):_0x467203(_0x5dd832))||_0x5dd832);return _0x5dc0b9&&_0x5dd832&&_0x55b5d1(_0x62f70f,_0x3f7658,_0x5dd832),_0x5dd832;},_0x5bb635=(_0x47cedc,_0x197f57)=>(_0x591666,_0x5245cf)=>_0x197f57(_0x591666,_0x5245cf,_0x47cedc);_0x431c6f[_0x228849(0x361)]=class extends _0x226a7e[_0x228849(0x484)]{constructor(_0x1456eb,_0x4eb3b7,_0x45f12b,_0x24d5c4,_0x5c823b){const _0x147bf1=_0x228849;super(),_0xaa2177(this,_0x147bf1(0x217),new Map()),_0xaa2177(this,_0x147bf1(0x1c9),new Map()),_0xaa2177(this,'_disabled',!0x1),(this[_0x147bf1(0x12b)]=_0x1456eb,this['_localStorageService']=_0x4eb3b7,this[_0x147bf1(0x384)]=_0x45f12b,this['_localeService']=_0x24d5c4,this[_0x147bf1(0x230)]=_0x5c823b,this[_0x147bf1(0x37a)]());}[_0x228849(0x486)](){const _0x1d84f6=_0x228849;this[_0x1d84f6(0x2c5)]=!0x0;}[_0x228849(0x2d4)](){const _0x379cd7=_0x228849;this[_0x379cd7(0x2c5)]=!0x1;}['dispose'](){const _0x128cf9=_0x228849;this['_exhaustSavingTask']()['then'](()=>super[_0x128cf9(0x485)]());}async[_0x228849(0x33c)](_0x46449f){const _0x7d8f44=_0x228849;return this[_0x7d8f44(0x2c5)]?null:this[_0x7d8f44(0x271)][_0x7d8f44(0x416)](_0x5429d1(_0x46449f));}async['saveOfflineData'](_0x101239,_0x57baaf){const _0x409dc0=_0x228849;return!!this[_0x409dc0(0x271)][_0x409dc0(0x4ca)](_0x101239,_0x57baaf);}[_0x228849(0x323)](_0x48fbbb,_0x428bfa,_0x24629f,_0x24f414){const _0x17f096=_0x228849,_0x4ae350=this[_0x17f096(0x230)][_0x17f096(0x45e)](_0x48fbbb);this[_0x17f096(0x217)]['set'](_0x48fbbb,{'unitID':_0x48fbbb,'type':_0x428bfa,'awaitingChangeset':_0x24629f,'mutations':_0x24f414,'rev':_0x4ae350}),this[_0x17f096(0x1c9)]['has'](_0x48fbbb)||this[_0x17f096(0x29b)](_0x48fbbb);}[_0x228849(0x29b)](_0x556a80){const _0x4efdc6=_0x228849,_0xd47ea5=this[_0x4efdc6(0x35f)]();_0xd47ea5===0x0?this[_0x4efdc6(0x16a)](_0x556a80):this[_0x4efdc6(0x1c9)][_0x4efdc6(0x4f3)](_0x556a80,setTimeout(()=>this[_0x4efdc6(0x16a)](_0x556a80),_0xd47ea5));}[_0x228849(0x35f)](){const _0x2c50cf=_0x228849;var _0x4d7123;return(_0x4d7123=this[_0x2c50cf(0x12b)]['getConfig'](_0x109348))!=null?_0x4d7123:0x3e8;}['_saveCache'](_0x171731){const _0x42b488=_0x228849,_0x30232f=this[_0x42b488(0x1c9)][_0x42b488(0x24c)](_0x171731);return _0x30232f!==void 0x0&&window[_0x42b488(0x2c9)](_0x30232f),this[_0x42b488(0x271)]['setItem'](_0x5429d1(_0x171731),this[_0x42b488(0x217)]['get'](_0x171731))[_0x42b488(0x1ae)](()=>this[_0x42b488(0x1c9)][_0x42b488(0x2b1)](_0x171731));}async[_0x228849(0x3a7)](){const _0x3eed20=_0x228849,_0x173279=[];this[_0x3eed20(0x1c9)][_0x3eed20(0x3ad)]((_0x3fb521,_0xbeceb5)=>{const _0x2d6a03=_0x3eed20;window['clearTimeout'](_0x3fb521),_0x173279[_0x2d6a03(0x4cb)](this[_0x2d6a03(0x16a)](_0xbeceb5)[_0x2d6a03(0x1ae)](()=>{const _0x5968c6=_0x2d6a03;this[_0x5968c6(0x1c9)][_0x5968c6(0x2b1)](_0xbeceb5);}));}),await Promise[_0x3eed20(0x456)](_0x173279);}[_0x228849(0x37a)](){const _0x4abe93=_0x228849;this['disposeWithMe'](this[_0x4abe93(0x384)][_0x4abe93(0x317)](()=>{const _0x58cb86=_0x4abe93;if(this[_0x58cb86(0x1c9)][_0x58cb86(0x3bb)])return this[_0x58cb86(0x401)]['t'](_0x58cb86(0x41f));}));}},_0x431c6f['LocalCacheService']=_0x14dad1([_0x5bb635(0x0,_0x226a7e['IConfigService']),_0x5bb635(0x1,_0x226a7e['ILocalStorageService']),_0x5bb635(0x2,_0x15005b[_0x228849(0x4c2)]),_0x5bb635(0x3,_0x49bc9[_0x228849(0x31c)](_0x226a7e['LocaleService'])),_0x5bb635(0x4,_0x49bc9[_0x228849(0x31c)](_0x1e8c75[_0x228849(0x366)]))],_0x431c6f['LocalCacheService']);function _0x5429d1(_0x4d551e){const _0x42df8f=_0x228849;return _0x42df8f(0x283)+_0x4d551e;}const _0x53b064=_0x49bc9['createIdentifier'](_0x228849(0x2ed));var _0x46ab2b=(_0x97ce1b=>(_0x97ce1b[_0x97ce1b[_0x228849(0x2a9)]=0x0]='NO_OTHER_CLIENTS_EDITING',_0x97ce1b[_0x97ce1b['OTHER_CLIENTS_EDITING']=0x1]=_0x228849(0x243),_0x97ce1b))(_0x46ab2b||{});const _0x1eefa8=0x7530,_0xd8fae=_0x228849(0x334);class _0x5d66f4 extends _0x226a7e[_0x228849(0x484)]{constructor(){const _0x16a6b6=_0x228849;super(),_0xaa2177(this,_0x16a6b6(0x39e),_0x226a7e[_0x16a6b6(0x144)][_0x16a6b6(0x34b)]()),_0xaa2177(this,_0x16a6b6(0x388),new Set()),_0xaa2177(this,_0x16a6b6(0x1c7),new Map()),_0xaa2177(this,_0x16a6b6(0x1cd),null),_0xaa2177(this,_0x16a6b6(0x49c),new Map()),_0xaa2177(this,_0x16a6b6(0x16b),new Map()),this[_0x16a6b6(0x285)]();}[_0x228849(0x485)](){const _0xcb464=_0x228849;super[_0xcb464(0x485)](),this['_clearOtherTimers'][_0xcb464(0x3ad)]((_0x57c1eb,_0xcba5f2)=>this[_0xcb464(0x282)](_0xcba5f2)),this[_0xcb464(0x1cd)]&&window['clearInterval'](this[_0xcb464(0x1cd)]);}['getUnitStatus$'](_0x245aa4){const _0x4419d4=_0x228849;return this['_ensureSubject'](_0x245aa4)[_0x4419d4(0x450)](_0x4e5e3f[_0x4419d4(0x196)]());}[_0x228849(0x18f)](_0x4abfdb){const _0x4fe829=_0x228849;this[_0x4fe829(0x388)][_0x4fe829(0x3bb)]===0x0&&this[_0x4fe829(0x40a)](),this[_0x4fe829(0x388)]['add'](_0x4abfdb),this[_0x4fe829(0x226)]({'type':0x0,'memberID':this[_0x4fe829(0x39e)],'unitIDs':[_0x4abfdb],'isForwarded':!0x1});}[_0x228849(0x1e4)](_0x2ebfbe){const _0x1f14e3=_0x228849;this[_0x1f14e3(0x388)][_0x1f14e3(0x2b1)](_0x2ebfbe),this['_selfUnitIDs'][_0x1f14e3(0x3bb)]===0x0&&this[_0x1f14e3(0x1cd)]&&window[_0x1f14e3(0x3b8)](this[_0x1f14e3(0x1cd)]);}[_0x228849(0x285)](){const _0x546105=_0x228849;this[_0x546105(0x231)](_0x226a7e[_0x546105(0x14b)](_0x4e5e3f[_0x546105(0x324)](window,_0x546105(0x1af))[_0x546105(0x22c)](_0x373e1b=>{const _0x4b6246=_0x546105;if(_0x373e1b[_0x4b6246(0x170)]!==_0xd8fae||!_0x373e1b['newValue'])return;const _0x5e0447=JSON[_0x4b6246(0x1f9)](_0x373e1b[_0x4b6246(0x2f5)]);this['_handleEvent'](_0x5e0447);}))),window[_0x546105(0x266)](_0x546105(0x215),()=>this[_0x546105(0x226)]({'type':0x1,'memberID':this[_0x546105(0x39e)],'unitIDs':Array[_0x546105(0x41c)](this[_0x546105(0x388)])}));}[_0x228849(0x4c4)](_0x5f0bff){const _0x4330e1=_0x228849;switch(_0x5f0bff['type']){case 0x0:this[_0x4330e1(0x20e)](_0x5f0bff);break;case 0x1:this[_0x4330e1(0x2c8)](_0x5f0bff);break;case 0x2:this['_handleHeartbeatEvent'](_0x5f0bff);break;}}['_handleJoinEvent'](_0x28cb7e){const _0x103c5c=_0x228849,{unitIDs:_0x2cfc16,memberID:_0x59861b,isForwarded:_0x57ecc2}=_0x28cb7e;_0x2cfc16[_0x103c5c(0x3ad)](_0x380f7a=>{const _0x39839e=_0x103c5c;if(!_0x57ecc2&&this[_0x39839e(0x1c7)][_0x39839e(0x1b2)](_0x380f7a)&&this[_0x39839e(0x428)](_0x380f7a)['next'](0x1),!this[_0x39839e(0x1c7)][_0x39839e(0x1b2)](_0x380f7a)||!this[_0x39839e(0x1c7)][_0x39839e(0x24c)](_0x380f7a)[_0x39839e(0x1b2)](_0x59861b)){const _0x5f0d40=this[_0x39839e(0x1c7)][_0x39839e(0x24c)](_0x380f7a)||new Set();_0x5f0d40['add'](_0x59861b),this[_0x39839e(0x1c7)][_0x39839e(0x4f3)](_0x380f7a,_0x5f0d40),this['_scheduleClearOtherTimer'](_0x59861b);}}),_0x57ecc2||this[_0x103c5c(0x226)]({'type':0x0,'memberID':this['_id'],'unitIDs':[...this[_0x103c5c(0x388)]],'isForwarded':!0x0});}[_0x228849(0x321)](_0x3f2ca7){const _0x590acc=_0x228849;this[_0x590acc(0x282)](_0x3f2ca7);const _0x52eec8=window[_0x590acc(0x46a)](()=>{const _0x37768a=_0x590acc;this['_unitOnClients'][_0x37768a(0x3ad)](_0x22b565=>{const _0x19aa4e=_0x37768a;_0x22b565[_0x19aa4e(0x2b1)](_0x3f2ca7);});},_0x1eefa8*0x2);this[_0x590acc(0x49c)][_0x590acc(0x4f3)](_0x3f2ca7,_0x52eec8);}[_0x228849(0x282)](_0xa022b2){const _0x2528ac=_0x228849;if(this['_clearOtherTimers']['has'](_0xa022b2)){const _0x4fe091=this['_clearOtherTimers'][_0x2528ac(0x24c)](_0xa022b2);_0x4fe091&&window[_0x2528ac(0x2c9)](_0x4fe091),this[_0x2528ac(0x49c)][_0x2528ac(0x4f3)](_0xa022b2,null);}}[_0x228849(0x2c8)](_0x1c96d5){const _0x148fa7=_0x228849,{memberID:_0x350d15,unitIDs:_0x11ced8}=_0x1c96d5;_0x11ced8[_0x148fa7(0x3ad)](_0x320344=>{const _0x585916=_0x148fa7;var _0x23d5fe;const _0x1e31ef=this['_unitOnClients'][_0x585916(0x24c)](_0x320344);_0x1e31ef&&(_0x1e31ef[_0x585916(0x2b1)](_0x350d15),(_0x23d5fe=this['_ensureSubject'](_0x320344))==null||_0x23d5fe['next'](_0x1e31ef[_0x585916(0x3bb)]===0x0?0x0:0x1));}),this['_removeClearOtherTimer'](_0x350d15);}['_handleHeartbeatEvent'](_0x40ab8d){const _0x6aac71=_0x228849;this[_0x6aac71(0x321)](_0x40ab8d[_0x6aac71(0x25d)]);}[_0x228849(0x226)](_0x3a9731){const _0x44c912=_0x228849;localStorage[_0x44c912(0x4ca)](_0xd8fae,JSON[_0x44c912(0x1d4)](_0x3a9731));}[_0x228849(0x40a)](){const _0x41d2fc=_0x228849;this[_0x41d2fc(0x1cd)]=window[_0x41d2fc(0x4c6)](()=>{const _0xdbf3f0=_0x41d2fc;this[_0xdbf3f0(0x226)]({'type':0x2,'memberID':this[_0xdbf3f0(0x39e)]});},_0x1eefa8);}['_ensureSubject'](_0x3c3b81){const _0x51eff1=_0x228849;return this[_0x51eff1(0x16b)]['has'](_0x3c3b81)||this[_0x51eff1(0x16b)][_0x51eff1(0x4f3)](_0x3c3b81,new _0x4e5e3f[(_0x51eff1(0x2e7))](0x0)),this['_unitStatus'][_0x51eff1(0x24c)](_0x3c3b81);}}var _0x32fd2e=Object[_0x228849(0x1fc)],_0x288fea=Object[_0x228849(0x1b4)],_0x3f9188=(_0x4055aa,_0x2361cb,_0x6002a1,_0xf35d)=>{const _0xe58150=_0x228849;for(var _0x673332=_0xf35d>0x1?void 0x0:_0xf35d?_0x288fea(_0x2361cb,_0x6002a1):_0x2361cb,_0x4347f2=_0x4055aa[_0xe58150(0x430)]-0x1,_0x2cf49d;_0x4347f2>=0x0;_0x4347f2--)(_0x2cf49d=_0x4055aa[_0x4347f2])&&(_0x673332=(_0xf35d?_0x2cf49d(_0x2361cb,_0x6002a1,_0x673332):_0x2cf49d(_0x673332))||_0x673332);return _0xf35d&&_0x673332&&_0x32fd2e(_0x2361cb,_0x6002a1,_0x673332),_0x673332;},_0x1c3c0b=(_0x31e1ba,_0x1468a5)=>(_0x234faa,_0x130ad4)=>_0x1468a5(_0x234faa,_0x130ad4,_0x31e1ba);let _0x1f5fb3=class{constructor(_0x3ebc38,_0x553002){const _0x5cbca2=_0x228849;this[_0x5cbca2(0x28b)]=_0x3ebc38,this[_0x5cbca2(0x1b9)]=_0x553002;}[_0x228849(0x328)](_0x441013){const _0x17f7db=_0x228849;this['_transformUndoRedoStack'](_0x441013),this[_0x17f7db(0x48a)](_0x441013);}[_0x228849(0x440)](_0xfa0413){const _0xa838c=_0x228849,_0x55a478=this[_0xa838c(0x28b)][_0xa838c(0x24c)](_0x534040[_0xa838c(0x238)]),{redoCache:_0x15a11a}=_0x55a478[_0xa838c(0x150)]();if(_0x15a11a[_0xa838c(0x430)]===0x0)return _0xfa0413;let _0x5e6d0e=_0x226a7e[_0xa838c(0x144)][_0xa838c(0x473)](_0xfa0413['mutations'][0x0]);for(let _0xecbcde=0x0;_0xecbcde<_0x15a11a[_0xa838c(0x430)];_0xecbcde++){const _0x58ed71={'id':_0xa838c(0x15e),'params':{..._0x15a11a[_0xecbcde]}},_0x34b4c6=this[_0xa838c(0x1b9)][_0xa838c(0x278)](_0x5e6d0e,_0x58ed71,!0x1);if(_0x1e8c75[_0xa838c(0x499)](_0x34b4c6))throw _0x34b4c6[_0xa838c(0x24e)];_0x5e6d0e=_0x34b4c6[_0xa838c(0x44b)];}return{..._0x226a7e[_0xa838c(0x144)][_0xa838c(0x473)](_0xfa0413),'mutations':[_0x5e6d0e]};}[_0x228849(0x29f)](_0x1cfc18){const _0x46d1b2=_0x228849,_0x8d69e5=this['_injector'][_0x46d1b2(0x24c)](_0x534040[_0x46d1b2(0x238)]),{undoCache:_0x342091,redoCache:_0x4be1a7}=_0x8d69e5[_0x46d1b2(0x150)]();if(_0x342091[_0x46d1b2(0x430)]===0x0||_0x4be1a7['length']===0x0)return;const _0x293e69=[],_0xa74c3=[];let _0x1726b1=_0x226a7e[_0x46d1b2(0x144)]['deepClone'](_0x1cfc18[_0x46d1b2(0x357)][0x0]),_0x4e317e=_0x226a7e[_0x46d1b2(0x144)]['deepClone'](_0x1cfc18[_0x46d1b2(0x357)][0x0]);for(let _0x5f06a4=_0x342091[_0x46d1b2(0x430)]-0x1;_0x5f06a4>=0x0;_0x5f06a4--){const _0x20ae91={'id':_0x46d1b2(0x15e),'params':{..._0x342091[_0x5f06a4]}},_0x5b267e={'id':_0x46d1b2(0x15e),'params':{..._0x4be1a7[_0x5f06a4]}},_0x25713d=this[_0x46d1b2(0x1b9)][_0x46d1b2(0x278)](_0x1726b1,_0x20ae91,!0x1),_0x5a719e=this[_0x46d1b2(0x1b9)][_0x46d1b2(0x278)](_0x4e317e,_0x5b267e,!0x1);if(_0x1e8c75[_0x46d1b2(0x499)](_0x25713d))throw _0x25713d[_0x46d1b2(0x24e)];if(_0x1e8c75[_0x46d1b2(0x499)](_0x5a719e))throw _0x5a719e[_0x46d1b2(0x24e)];_0x293e69['unshift'](_0x25713d['m2Prime'][_0x46d1b2(0x2f4)]),_0xa74c3[_0x46d1b2(0x47a)](_0x5a719e[_0x46d1b2(0x260)][_0x46d1b2(0x2f4)]),_0x1726b1=_0x25713d[_0x46d1b2(0x44b)],_0x4e317e=_0x5a719e[_0x46d1b2(0x44b)];}_0x8d69e5[_0x46d1b2(0x48b)]({'undoCache':_0x293e69,'redoCache':_0xa74c3});}[_0x228849(0x48a)](_0x4c7888){const _0x57077e=_0x228849,_0x27b03b=this['_injector'][_0x57077e(0x24c)](_0x534040[_0x57077e(0x238)]),_0x38f94d=_0x27b03b[_0x57077e(0x345)]();if(_0x38f94d==null)return;const _0x1ad0b7=[{'id':_0x57077e(0x15e),'params':{'unitId':_0x4c7888[_0x57077e(0x340)],'actions':null,'textRanges':[_0x38f94d]}}],_0x41450e=this[_0x57077e(0x1b9)][_0x57077e(0x2dd)](_0x4c7888,_0x1ad0b7);if(!_0x1e8c75['isTransformMutationsWithChangesetSuccess'](_0x41450e))throw _0x41450e[_0x57077e(0x24e)];const _0x19d0fe=_0x41450e[_0x57077e(0x260)][0x0]['params']['textRanges'];Array[_0x57077e(0x441)](_0x19d0fe)&&_0x19d0fe[_0x57077e(0x430)]&&_0x27b03b['setActiveRange'](_0x19d0fe[0x0]);}};_0x1f5fb3=_0x3f9188([_0x1c3c0b(0x0,_0x49bc9[_0x228849(0x31c)](_0x49bc9[_0x228849(0x36c)])),_0x1c3c0b(0x1,_0x1e8c75[_0x228849(0x184)])],_0x1f5fb3);var _0x4a819e=Object[_0x228849(0x1fc)],_0x2dcf53=Object[_0x228849(0x1b4)],_0x465daf=(_0x4f0ecc,_0xae0fbb,_0x4ca48b,_0x10c007)=>{for(var _0x4b7ba9=_0x10c007>0x1?void 0x0:_0x10c007?_0x2dcf53(_0xae0fbb,_0x4ca48b):_0xae0fbb,_0xd77cac=_0x4f0ecc['length']-0x1,_0x167312;_0xd77cac>=0x0;_0xd77cac--)(_0x167312=_0x4f0ecc[_0xd77cac])&&(_0x4b7ba9=(_0x10c007?_0x167312(_0xae0fbb,_0x4ca48b,_0x4b7ba9):_0x167312(_0x4b7ba9))||_0x4b7ba9);return _0x10c007&&_0x4b7ba9&&_0x4a819e(_0xae0fbb,_0x4ca48b,_0x4b7ba9),_0x4b7ba9;},_0x1b760=(_0x35cbaf,_0x45f08d)=>(_0x475093,_0x1429e0)=>_0x45f08d(_0x475093,_0x1429e0,_0x35cbaf);let _0x35da09=class{constructor(_0x221f89,_0xaefbc4){const _0x5d73e8=_0x228849;this['_injector']=_0x221f89,this[_0x5d73e8(0x1b9)]=_0xaefbc4;}[_0x228849(0x23c)](_0x2ba8bd){const _0x1f7900=_0x228849;var _0x1d03fc;const _0x44a455=this[_0x1f7900(0x28b)][_0x1f7900(0x24c)](_0x534040['TextSelectionManagerService']),_0x364300=(_0x1d03fc=_0x44a455['getSelections']())!=null?_0x1d03fc:[],_0x3da2a1=_0x364300==null?void 0x0:_0x364300['map'](_0x534040[_0x1f7900(0x446)]);if(_0x3da2a1[_0x1f7900(0x430)]===0x0)return;const _0x1acd29=[{'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x2ba8bd[_0x1f7900(0x340)],'actions':null,'textRanges':_0x3da2a1}}],_0x5135ab=this[_0x1f7900(0x1b9)][_0x1f7900(0x2dd)](_0x2ba8bd,_0x1acd29);if(!_0x1e8c75[_0x1f7900(0x4f6)](_0x5135ab))throw _0x5135ab[_0x1f7900(0x24e)];const _0x3ee0af=_0x5135ab['m2Prime'][0x0][_0x1f7900(0x2f4)][_0x1f7900(0x47f)];Array['isArray'](_0x3ee0af)&&_0x3ee0af[_0x1f7900(0x430)]&&_0x44a455[_0x1f7900(0x2b4)](_0x3ee0af,!0x1);}};_0x35da09=_0x465daf([_0x1b760(0x0,_0x49bc9[_0x228849(0x31c)](_0x49bc9['Injector'])),_0x1b760(0x1,_0x1e8c75['ITransformService'])],_0x35da09);function _0x26d119(_0x42ca8e){const _0x4dd53d=_0x228849;let _0x111409='';for(const _0x3a43da of _0x42ca8e){const {startOffset:_0x5dbf8a,endOffset:_0x5e589d,isActive:_0x3bd28f}=_0x3a43da;_0x111409[_0x4dd53d(0x430)]&&(_0x111409+=','),_0x111409+=_0x5dbf8a+':'+_0x5e589d+':'+(_0x3bd28f?'1':'0');}return _0x111409;}function _0x500cfa(_0x4e1bd8){const _0xca9ff2=_0x228849,_0x5b710c=_0x4e1bd8['split'](','),_0x271912=[];for(const _0x4a6807 of _0x5b710c){const [_0x1dfe7c,_0x22e7a6,_0x2785f8]=_0x4a6807[_0xca9ff2(0x457)](':');_0x271912[_0xca9ff2(0x4cb)]({'startOffset':Number(_0x1dfe7c),'endOffset':Number(_0x22e7a6),'collapsed':_0x1dfe7c===_0x22e7a6,'isActive':_0x2785f8==='1'});}return _0x271912[_0xca9ff2(0x369)](_0x228998=>_0x228998[_0xca9ff2(0x2cc)])||(_0x271912[0x0][_0xca9ff2(0x2cc)]=!0x0),_0x271912;}class _0x372338 extends _0x226a7e[_0x228849(0x2ac)]{constructor(){const _0x3c068c=_0x228849;super(...arguments),_0xaa2177(this,_0x3c068c(0x4b1),new _0x4e5e3f[(_0x3c068c(0x2e7))](null)),_0xaa2177(this,'collabCursorState$',this[_0x3c068c(0x4b1)][_0x3c068c(0x1fe)]());}[_0x228849(0x48d)](_0x325257){const _0x22e2fc=_0x228849,{unitID:_0x5edd85,memberID:_0x3dd469,textRanges:_0x1a8fd9}=_0x325257,_0x176ef9=_0x26d119(_0x1a8fd9),_0x8a81f6={'unitID':_0x5edd85,'memberID':_0x3dd469,'selection':_0x176ef9};this[_0x22e2fc(0x4b1)][_0x22e2fc(0x488)](_0x8a81f6);}}var _0x396ed7=Object[_0x228849(0x1fc)],_0x362520=Object[_0x228849(0x1b4)],_0x432c74=(_0x543a09,_0x1abe42,_0x24acd8,_0x479441)=>{const _0x170c34=_0x228849;for(var _0x1c043f=_0x479441>0x1?void 0x0:_0x479441?_0x362520(_0x1abe42,_0x24acd8):_0x1abe42,_0x5bbd84=_0x543a09[_0x170c34(0x430)]-0x1,_0x5c7a23;_0x5bbd84>=0x0;_0x5bbd84--)(_0x5c7a23=_0x543a09[_0x5bbd84])&&(_0x1c043f=(_0x479441?_0x5c7a23(_0x1abe42,_0x24acd8,_0x1c043f):_0x5c7a23(_0x1c043f))||_0x1c043f);return _0x479441&&_0x1c043f&&_0x396ed7(_0x1abe42,_0x24acd8,_0x1c043f),_0x1c043f;},_0x46c381=(_0x3140c1,_0x43680b)=>(_0x421c45,_0x22cdcd)=>_0x43680b(_0x421c45,_0x22cdcd,_0x3140c1);let _0x362b05=class{constructor(_0x475c22,_0x536bc4){const _0x24774f=_0x228849;this[_0x24774f(0x28b)]=_0x475c22,this['_transformService']=_0x536bc4;}['transformSelections'](_0x2289a1){const _0x522c86=_0x228849;var _0x24761a,_0x2060ac,_0x385e6f,_0x5c7350;const _0x4aed9f=this[_0x522c86(0x28b)]['get'](_0x3acf4c[_0x522c86(0x35c)]),{pluginName:_0x4497a0,unitId:_0x2cc692,sheetId:_0x5adb56}=_0x4aed9f[_0x522c86(0x259)]()||{},_0x2caf72=(_0x24761a=_0x4aed9f[_0x522c86(0x2e0)]())!=null?_0x24761a:[];if(_0x2caf72[_0x522c86(0x430)]===0x0||!_0x4497a0||!_0x2cc692||!_0x5adb56)return;const _0x3e31be=[{'id':_0x3acf4c[_0x522c86(0x21b)]['id'],'params':{'unitId':_0x2cc692,'subUnitId':_0x5adb56,'pluginName':_0x4497a0,'selections':_0x226a7e[_0x522c86(0x144)][_0x522c86(0x473)](_0x2caf72)}}],_0x49826c=this[_0x522c86(0x1b9)][_0x522c86(0x2dd)](_0x2289a1,_0x3e31be);if(!_0x1e8c75[_0x522c86(0x4f6)](_0x49826c))throw _0x49826c['error'];const _0x18ef6d=(_0x5c7350=(_0x385e6f=(_0x2060ac=_0x49826c[_0x522c86(0x260)][0x0])==null?void 0x0:_0x2060ac[_0x522c86(0x2f4)])==null?void 0x0:_0x385e6f[_0x522c86(0x3a6)])!=null?_0x5c7350:_0x2caf72;Array[_0x522c86(0x441)](_0x18ef6d)&&_0x18ef6d[_0x522c86(0x430)]&&this['_injector']['get'](_0x226a7e[_0x522c86(0x48f)])[_0x522c86(0x12c)](_0x3acf4c[_0x522c86(0x21b)]['id'],{'unitId':_0x2cc692,'subUnitId':_0x5adb56,'pluginName':_0x4497a0,'selections':_0x18ef6d});}};_0x362b05=_0x432c74([_0x46c381(0x0,_0x49bc9[_0x228849(0x31c)](_0x49bc9[_0x228849(0x36c)])),_0x46c381(0x1,_0x1e8c75['ITransformService'])],_0x362b05);const _0x3756ee=new Set([_0x3acf4c['InsertSheetMutation']['id']]);function _0x2fa4c4(_0x22617b,_0x47be3e,_0x29ecdd,_0x4d5143,_0x987e1b){const _0x1cc24a=_0x228849;var _0x3132fc,_0x56389c,_0x353957,_0x33602c;const _0x100ea6=[];for(const _0x489882 of _0x22617b)if(_0x3756ee['has'](_0x489882['id'])){if(_0x100ea6[_0x1cc24a(0x430)]>0x0)break;_0x100ea6[_0x1cc24a(0x4cb)](_0x489882);break;}else _0x100ea6['push'](_0x489882);const _0x42dcaa=(_0x56389c=(_0x3132fc=_0x987e1b['getCurrentUser']())==null?void 0x0:_0x3132fc[_0x1cc24a(0x1c6)])!=null?_0x56389c:_0x1cc24a(0x1e8),_0x55415d=(_0x33602c=(_0x353957=_0x987e1b[_0x1cc24a(0x347)]())==null?void 0x0:_0x353957[_0x1cc24a(0x25d)])!=null?_0x33602c:'unknown';return{'changeset':{'unitID':_0x47be3e,'type':_0x1e8c75['mapDocumentTypeToUniverType'](_0x29ecdd[_0x1cc24a(0x156)](_0x47be3e)),'baseRev':_0x4d5143['getCurrentRevForDocument'](_0x47be3e),'revision':0x0,'userID':_0x42dcaa,'memberID':_0x55415d,'mutations':_0x100ea6},'pendingMutations':_0x22617b[_0x1cc24a(0x3c0)](_0x100ea6[_0x1cc24a(0x430)])};}function _0x22706f(_0x123f9c,_0x50d035,_0x20a6cd,_0x449d7b,_0x175ecc){const _0x30e621=_0x228849;var _0x4c3b1a,_0x5b8026,_0x3e5723,_0x2c1c7e;const _0x57c533=[_0x123f9c[_0x30e621(0x3df)]((_0x4cd5fb,_0x45fc56)=>{const _0x582772=_0x30e621;var _0x28d7ca;const {id:_0x122058}=_0x4cd5fb,{id:_0x55239a,type:_0x4b2681}=_0x45fc56,_0x2e6025=(_0x28d7ca=_0x4cd5fb[_0x582772(0x2f4)])!=null?_0x28d7ca:{'actions':null},_0x3d6749=_0x45fc56[_0x582772(0x2f4)];if(_0x122058&&_0x122058!==_0x55239a)throw new Error(_0x582772(0x41d)+_0x122058+_0x582772(0x4c8)+_0x55239a+'.');return{..._0x4cd5fb,'id':_0x55239a,'type':_0x4b2681,'params':{'unitId':_0x3d6749[_0x582772(0x3c5)],'textRanges':_0x3d6749[_0x582772(0x47f)],'actions':_0x226a7e['JSONX'][_0x582772(0x4de)](_0x2e6025[_0x582772(0x274)],_0x3d6749[_0x582772(0x274)])}};},{})],_0x276319=(_0x5b8026=(_0x4c3b1a=_0x175ecc[_0x30e621(0x347)]())==null?void 0x0:_0x4c3b1a[_0x30e621(0x1c6)])!=null?_0x5b8026:_0x30e621(0x1e8),_0x4b59f9=(_0x2c1c7e=(_0x3e5723=_0x175ecc[_0x30e621(0x347)]())==null?void 0x0:_0x3e5723[_0x30e621(0x25d)])!=null?_0x2c1c7e:_0x30e621(0x1e8);return{'changeset':{'unitID':_0x50d035,'type':_0x1e8c75['mapDocumentTypeToUniverType'](_0x20a6cd[_0x30e621(0x156)](_0x50d035)),'baseRev':_0x449d7b[_0x30e621(0x45e)](_0x50d035),'revision':0x0,'userID':_0x276319,'memberID':_0x4b59f9,'mutations':_0x57c533},'pendingMutations':[]};}var _0x238228=Object['defineProperty'],_0x4ed4b9=Object[_0x228849(0x1b4)],_0x2b9fdb=(_0x14b3ec,_0x3d0685,_0x2bb070,_0x546db2)=>{const _0x30267b=_0x228849;for(var _0x18fe4f=_0x546db2>0x1?void 0x0:_0x546db2?_0x4ed4b9(_0x3d0685,_0x2bb070):_0x3d0685,_0x24b366=_0x14b3ec[_0x30267b(0x430)]-0x1,_0x59a928;_0x24b366>=0x0;_0x24b366--)(_0x59a928=_0x14b3ec[_0x24b366])&&(_0x18fe4f=(_0x546db2?_0x59a928(_0x3d0685,_0x2bb070,_0x18fe4f):_0x59a928(_0x18fe4f))||_0x18fe4f);return _0x546db2&&_0x18fe4f&&_0x238228(_0x3d0685,_0x2bb070,_0x18fe4f),_0x18fe4f;},_0x3e73d5=(_0x3c8a3d,_0x570c5e)=>(_0x1b7611,_0x3215ab)=>_0x570c5e(_0x1b7611,_0x3215ab,_0x3c8a3d),_0x4577df=(_0x2b1ca8=>(_0x2b1ca8[_0x228849(0x4e8)]='not_collab',_0x2b1ca8[_0x228849(0x310)]=_0x228849(0x1c1),_0x2b1ca8[_0x228849(0x44f)]=_0x228849(0x350),_0x2b1ca8[_0x228849(0x1b3)]=_0x228849(0x13a),_0x2b1ca8[_0x228849(0x19c)]=_0x228849(0x4ba),_0x2b1ca8[_0x228849(0x3d5)]=_0x228849(0x218),_0x2b1ca8['CONFLICT']=_0x228849(0x1ce),_0x2b1ca8[_0x228849(0x26d)]=_0x228849(0x297),_0x2b1ca8))(_0x4577df||{});class _0x1abe13{constructor(_0x14703e,_0x48a461,_0x4a1bdd,_0x286d3b,_0x47d3f7,_0x180a77,_0x372f0d,_0x52a973,_0x13d7b3){const _0x5d2ee1=_0x228849;_0xaa2177(this,_0x5d2ee1(0x14f),null),_0xaa2177(this,_0x5d2ee1(0x454),[]),(this['unitID']=_0x14703e,this[_0x5d2ee1(0x354)]=_0x48a461,this['_handler']=_0x47d3f7,this['_commandService']=_0x180a77,this[_0x5d2ee1(0x1bd)]=_0x372f0d,this[_0x5d2ee1(0x230)]=_0x52a973,this[_0x5d2ee1(0x3ef)]=_0x13d7b3,this[_0x5d2ee1(0x14f)]=_0x4a1bdd,this[_0x5d2ee1(0x454)]=_0x286d3b);}['_checkMissing'](_0x43fe7f){const _0x31973a=_0x228849,_0x22304f=this['_revisionService'][_0x31973a(0x45e)](this[_0x31973a(0x340)]);return _0x43fe7f[_0x31973a(0x437)]>_0x22304f+0x1?(this[_0x31973a(0x3d2)][_0x31973a(0x2b0)]({'from':_0x22304f,'to':_0x43fe7f[_0x31973a(0x437)]-0x1}),!0x0):!0x1;}['_transformUndoredo'](_0x57cb5a){const _0x42093f=_0x228849;this[_0x42093f(0x1bd)]['transformUndoRedo'](this[_0x42093f(0x340)],_0x57cb5a);}['_transformSelections'](_0x4c4eb5){const _0x5079cc=_0x228849;var _0x10c064,_0x8c4b2a;(_0x8c4b2a=(_0x10c064=this[_0x5079cc(0x3d2)])[_0x5079cc(0x482)])==null||_0x8c4b2a['call'](_0x10c064,_0x4c4eb5);}[_0x228849(0x4ab)](_0x2eb867){const _0x381885=_0x228849;var _0x38321e,_0x582ac5;return(_0x582ac5=(_0x38321e=this[_0x381885(0x3d2)])['onTransformIME'])==null?void 0x0:_0x582ac5['call'](_0x38321e,_0x2eb867);}[_0x228849(0x4d1)](_0x1708e2){const _0x33179f=_0x228849;var _0x40aea5,_0x48fd91,_0x307bc3;return(_0x307bc3=(_0x48fd91=(_0x40aea5=this[_0x33179f(0x3d2)])[_0x33179f(0x3f2)])==null?void 0x0:_0x48fd91[_0x33179f(0x3d8)](_0x40aea5,_0x1708e2))!=null?_0x307bc3:_0x1708e2;}['_syncEditingCollabCursor'](_0x5cbd5f){const _0x2ad3ec=_0x228849;var _0xb50024,_0xd783c5;if(this[_0x2ad3ec(0x354)]===_0xf0e06f['UNIVER_DOC']){const {unitID:_0x2afb41,mutations:_0x5ded76,memberID:_0x5865a6}=_0x5cbd5f,_0x435a82=_0x5ded76[0x0][_0x2ad3ec(0x2f4)]['textRanges'];Array[_0x2ad3ec(0x441)](_0x435a82)&&_0x435a82[_0x2ad3ec(0x430)]>0x0&&((_0xd783c5=(_0xb50024=this[_0x2ad3ec(0x3d2)])[_0x2ad3ec(0x216)])==null||_0xd783c5[_0x2ad3ec(0x3d8)](_0xb50024,{'unitID':_0x2afb41,'memberID':_0x5865a6,'textRanges':_0x435a82}));}}[_0x228849(0x12a)](){const _0x40f81c=_0x228849;this[_0x40f81c(0x3ef)][_0x40f81c(0x323)](this[_0x40f81c(0x340)],this[_0x40f81c(0x354)],this[_0x40f81c(0x14f)],this[_0x40f81c(0x454)]);}[_0x228849(0x2e5)](){const _0x20434d=_0x228849;return this[_0x20434d(0x230)][_0x20434d(0x45e)](this['unitID']);}[_0x228849(0x4a7)](){const _0x1459a3=_0x228849;this[_0x1459a3(0x230)][_0x1459a3(0x2eb)](this[_0x1459a3(0x340)]);}[_0x228849(0x42c)](_0xf5b302){const _0x1ba692=_0x228849;var _0x47b104;const _0x834bca=this[_0x1ba692(0x4d1)](_0xf5b302),_0x323eda=_0x226a7e[_0x1ba692(0x20a)](_0x834bca['mutations'],this[_0x1ba692(0x4b6)],{'fromCollab':!0x0});if(!_0x323eda['result'])throw _0x323eda[_0x1ba692(0x24e)]instanceof Error?_0x323eda['error']:new Error((_0x47b104=_0x323eda[_0x1ba692(0x24e)])!=null?_0x47b104:'[CollaborationState]:\x20apply\x20error!');this[_0x1ba692(0x4ab)](_0x834bca),this[_0x1ba692(0x320)](_0xf5b302),this['_transformSelections'](_0x834bca),this[_0x1ba692(0x41e)](_0x834bca),this[_0x1ba692(0x4a7)]();}}let _0x3368ab=class extends _0x1abe13{constructor(_0x5e0a39,_0x5be39c,_0x138ed5,_0x380e50,_0x38b355,_0xb334fb,_0x5cc7a8,_0x20dd6e,_0x443f12){const _0x43a102=_0x228849;super(_0x5e0a39,_0x5be39c,null,[],_0x138ed5,_0x20dd6e,_0x5cc7a8,_0x380e50,_0x38b355),_0xaa2177(this,_0x43a102(0x418),_0x43a102(0x1c1)),(this[_0x43a102(0x28b)]=_0xb334fb,this[_0x43a102(0x464)]=_0x443f12);}[_0x228849(0x3dd)](_0x5b31a6){const _0x4dbf0c=_0x228849,_0x1b5f10=this[_0x4dbf0c(0x28b)][_0x4dbf0c(0x178)](_0x25c1eb,this[_0x4dbf0c(0x340)],this['type'],[_0x5b31a6],this[_0x4dbf0c(0x3d2)]);return _0x1b5f10['_schedule'](),_0x1b5f10[_0x4dbf0c(0x12a)](),_0x1b5f10;}['onRemoteChangeset'](_0x435654){const _0x3dd2bb=_0x228849;if(this[_0x3dd2bb(0x351)](_0x435654))return this[_0x3dd2bb(0x28b)]['createInstance'](_0x378adc,this[_0x3dd2bb(0x340)],this[_0x3dd2bb(0x354)],null,[],null,[_0x435654],this['_handler']);try{return this['_executeRemoteChangeset'](_0x435654),this;}catch(_0x368bdc){return this[_0x3dd2bb(0x464)][_0x3dd2bb(0x24e)](_0x3dd2bb(0x2c3),_0x368bdc),this;}}[_0x228849(0x25e)](){const _0x3c5fe9=_0x228849;throw new Error(_0x3c5fe9(0x2b6));}[_0x228849(0x4e1)](){const _0x2fb1de=_0x228849;throw new Error(_0x2fb1de(0x37b));}[_0x228849(0x147)](){const _0x340bf3=_0x228849;return this[_0x340bf3(0x28b)][_0x340bf3(0x178)](_0x424af3,this[_0x340bf3(0x340)],this[_0x340bf3(0x354)],null,[],this['_handler']);}['toggleOnline'](){return this;}[_0x228849(0x3c6)](){const _0x398117=_0x228849;throw new Error(_0x398117(0x33f));}};_0x3368ab=_0x2b9fdb([_0x3e73d5(0x3,_0x49bc9[_0x228849(0x31c)](_0x1e8c75['RevisionService'])),_0x3e73d5(0x4,_0x49bc9[_0x228849(0x31c)](_0x431c6f[_0x228849(0x361)])),_0x3e73d5(0x5,_0x49bc9[_0x228849(0x31c)](_0x49bc9[_0x228849(0x36c)])),_0x3e73d5(0x6,_0x226a7e[_0x228849(0x3af)]),_0x3e73d5(0x7,_0x226a7e[_0x228849(0x48f)]),_0x3e73d5(0x8,_0x226a7e['ILogService'])],_0x3368ab);let _0x25c1eb=class extends _0x1abe13{constructor(_0x311897,_0x706113,_0x20db0a,_0x7a80dd,_0x1349e7,_0x1c2f09,_0x407e45,_0x5db514,_0x41694c,_0x173b68,_0x1caab5,_0x1eacdc,_0x22f65f,_0x5266e8){const _0x1727d6=_0x228849;super(_0x311897,_0x706113,null,_0x20db0a,_0x7a80dd,_0x173b68,_0x5266e8,_0x1c2f09,_0x407e45),_0xaa2177(this,'status',_0x1727d6(0x350)),_0xaa2177(this,'_scheduleTimestamp',null),_0xaa2177(this,_0x1727d6(0x2e6),null),(this[_0x1727d6(0x28b)]=_0x1349e7,this[_0x1727d6(0x2c7)]=_0x5db514,this[_0x1727d6(0x464)]=_0x41694c,this['_configService']=_0x1caab5,this[_0x1727d6(0x1b9)]=_0x1eacdc,this['_univerInstanceService']=_0x22f65f);}['appendMutation'](_0x29920a){const _0xa803f3=_0x228849;return this[_0xa803f3(0x454)][_0xa803f3(0x4cb)](_0x29920a),this[_0xa803f3(0x12a)](),this;}[_0x228849(0x453)](_0x5a8fb1){const _0x3287ad=_0x228849;if(this[_0x3287ad(0x351)](_0x5a8fb1))return this['_clearScheduledTask'](),this[_0x3287ad(0x28b)][_0x3287ad(0x178)](_0x378adc,this[_0x3287ad(0x340)],this[_0x3287ad(0x354)],null,this['_pendingMutations'],null,[_0x5a8fb1],this[_0x3287ad(0x3d2)]);try{const _0x246a06=this['_transformService'][_0x3287ad(0x2dd)](_0x5a8fb1,this['_pendingMutations']);if(_0x1e8c75['isTransformMutationsWithChangesetSuccess'](_0x246a06)){const {c1Prime:_0x1d5dd2,m2Prime:_0x33ff83}=_0x246a06;this[_0x3287ad(0x42c)](_0x1d5dd2);const _0x3eca7c=this[_0x3287ad(0x28b)][_0x3287ad(0x178)](_0x25c1eb,this[_0x3287ad(0x340)],this[_0x3287ad(0x354)],_0x33ff83,this[_0x3287ad(0x3d2)]);return this[_0x3287ad(0x392)](),_0x3eca7c[_0x3287ad(0x3ff)](this['_scheduleTimestamp']?Math[_0x3287ad(0x4d7)](0x0,new Date()[_0x3287ad(0x4ce)]()-this['_scheduleTimestamp']):this[_0x3287ad(0x386)]()),_0x3eca7c;}throw _0x246a06[_0x3287ad(0x24e)];}catch(_0xe1d6df){return this[_0x3287ad(0x464)]['error'](_0xe1d6df),this[_0x3287ad(0x1a9)](!0x1);}}[_0x228849(0x25e)](){const _0x4fc6ea=_0x228849;throw new Error(_0x4fc6ea(0x398));}['onRemoteRej'](){const _0x4728e3=_0x228849;throw new Error(_0x4728e3(0x130));}['toggleOffline'](){const _0x22f4a2=_0x228849;return this[_0x22f4a2(0x392)](),this[_0x22f4a2(0x28b)][_0x22f4a2(0x178)](_0x424af3,this[_0x22f4a2(0x340)],this[_0x22f4a2(0x354)],null,this[_0x22f4a2(0x454)],this[_0x22f4a2(0x3d2)]);}[_0x228849(0x4ee)](){return this;}[_0x228849(0x3ff)](_0x584fc2){const _0x26e4f8=_0x228849;_0x584fc2=_0x584fc2!=null?_0x584fc2:this[_0x26e4f8(0x386)](),this[_0x26e4f8(0x25c)]=new Date()[_0x26e4f8(0x4ce)](),this[_0x26e4f8(0x2e6)]=setTimeout(()=>{const _0x39b717=_0x26e4f8;this[_0x39b717(0x392)]();let _0x48e86e=null;switch(this[_0x39b717(0x354)]){case _0xf0e06f[_0x39b717(0x390)]:{_0x48e86e=_0x2fa4c4(this[_0x39b717(0x454)],this[_0x39b717(0x340)],this['_univerInstanceService'],this[_0x39b717(0x230)],this[_0x39b717(0x2c7)]);break;}case _0xf0e06f[_0x39b717(0x138)]:{_0x48e86e=_0x22706f(this[_0x39b717(0x454)],this['unitID'],this[_0x39b717(0x1ad)],this[_0x39b717(0x230)],this[_0x39b717(0x2c7)]);break;}default:throw new Error(_0x39b717(0x448)+this[_0x39b717(0x354)]+_0x39b717(0x21d));}const {changeset:_0x55b543,pendingMutations:_0x4314ca}=_0x48e86e;this['_handler']['onSendChangeset'](_0x55b543);const _0x4c7787=_0x4314ca['length']?this['_injector'][_0x39b717(0x178)](_0x3f26f2,this['unitID'],this[_0x39b717(0x354)],_0x55b543,_0x4314ca,this[_0x39b717(0x3d2)]):this['_injector'][_0x39b717(0x178)](_0x190be0,this[_0x39b717(0x340)],this[_0x39b717(0x354)],_0x55b543,this[_0x39b717(0x3d2)]);_0x4c7787[_0x39b717(0x12a)](),this['_handler'][_0x39b717(0x162)](this,_0x4c7787);},_0x584fc2);}[_0x228849(0x386)](){const _0x5bb52f=_0x228849;var _0x41268d;return(_0x41268d=this[_0x5bb52f(0x12b)][_0x5bb52f(0x176)](_0x6128a1))!=null?_0x41268d:0x7d0;}[_0x228849(0x3c6)](){const _0x61fbfb=_0x228849;throw new Error(_0x61fbfb(0x4d5));}[_0x228849(0x392)](){const _0x1d160a=_0x228849;this[_0x1d160a(0x2e6)]!=null&&(clearTimeout(this[_0x1d160a(0x2e6)]),this[_0x1d160a(0x2e6)]=null);}[_0x228849(0x1a9)](_0x30aa26){const _0x1ef0f5=_0x228849;return this[_0x1ef0f5(0x392)](),this[_0x1ef0f5(0x28b)]['createInstance'](_0x493854,this[_0x1ef0f5(0x340)],this[_0x1ef0f5(0x354)],null,this[_0x1ef0f5(0x454)],this[_0x1ef0f5(0x3d2)],_0x30aa26);}};_0x25c1eb=_0x2b9fdb([_0x3e73d5(0x4,_0x49bc9['Inject'](_0x49bc9[_0x228849(0x36c)])),_0x3e73d5(0x5,_0x49bc9['Inject'](_0x1e8c75[_0x228849(0x366)])),_0x3e73d5(0x6,_0x49bc9[_0x228849(0x31c)](_0x431c6f['LocalCacheService'])),_0x3e73d5(0x7,_0x49bc9[_0x228849(0x31c)](_0x2f6a5d)),_0x3e73d5(0x8,_0x226a7e[_0x228849(0x212)]),_0x3e73d5(0x9,_0x226a7e[_0x228849(0x48f)]),_0x3e73d5(0xa,_0x226a7e[_0x228849(0x26f)]),_0x3e73d5(0xb,_0x1e8c75[_0x228849(0x184)]),_0x3e73d5(0xc,_0x226a7e[_0x228849(0x4aa)]),_0x3e73d5(0xd,_0x226a7e[_0x228849(0x3af)])],_0x25c1eb);let _0x190be0=class extends _0x1abe13{constructor(_0x45bcec,_0x285d6b,_0x286ba5,_0x13992c,_0x562064,_0x6c82cc,_0x5d0384,_0x17ba1f,_0x5be1f1,_0xa4f08e,_0x4c083b){const _0x25cd14=_0x228849;super(_0x45bcec,_0x285d6b,_0x286ba5,[],_0x13992c,_0x17ba1f,_0x4c083b,_0x6c82cc,_0x5d0384),_0xaa2177(this,_0x25cd14(0x418),_0x25cd14(0x13a)),(this['_injector']=_0x562064,this['_logService']=_0x5be1f1,this[_0x25cd14(0x1b9)]=_0xa4f08e);}[_0x228849(0x3dd)](_0x3c71f2){const _0x37e935=_0x228849,_0x5ac0c0=this[_0x37e935(0x28b)][_0x37e935(0x178)](_0x3f26f2,this[_0x37e935(0x340)],this[_0x37e935(0x354)],this[_0x37e935(0x14f)],[_0x3c71f2],this[_0x37e935(0x3d2)]);return _0x5ac0c0[_0x37e935(0x12a)](),_0x5ac0c0;}['onRemoteChangeset'](_0x349e80){const _0x299f81=_0x228849;if(this['_checkMissing'](_0x349e80))return this[_0x299f81(0x28b)][_0x299f81(0x178)](_0x378adc,this[_0x299f81(0x340)],this['type'],this[_0x299f81(0x14f)],[],null,[_0x349e80],this[_0x299f81(0x3d2)]);try{const _0x449958=this[_0x299f81(0x1b9)][_0x299f81(0x468)]([_0x349e80],[this[_0x299f81(0x14f)]],!0x1);if(_0x1e8c75[_0x299f81(0x30f)](_0x449958)){const {c1Prime:_0xd697f0,c2Prime:_0x15c2b5}=_0x449958;this[_0x299f81(0x42c)](_0xd697f0[0x0]),_0x15c2b5[0x0][_0x299f81(0x204)]=this[_0x299f81(0x2e5)]();const _0x467183=this[_0x299f81(0x28b)]['createInstance'](_0x190be0,this[_0x299f81(0x340)],this[_0x299f81(0x354)],_0x15c2b5[0x0],this['_handler']);return _0x467183[_0x299f81(0x12a)](),_0x467183;}return this[_0x299f81(0x1a9)](!0x1);}catch(_0x3ef993){return this[_0x299f81(0x464)][_0x299f81(0x24e)](_0x3ef993),this[_0x299f81(0x1a9)](!0x1);}}[_0x228849(0x25e)](_0x3d3b6f){const _0x59721a=_0x228849,_0x756c7e=this[_0x59721a(0x230)][_0x59721a(0x45e)](this[_0x59721a(0x340)]);if(_0x3d3b6f[_0x59721a(0x437)]<_0x756c7e-0x1)return this;if(this['_checkMissing'](_0x3d3b6f))return this[_0x59721a(0x28b)][_0x59721a(0x178)](_0x378adc,this[_0x59721a(0x340)],this[_0x59721a(0x354)],null,[],this['_awaitingChangeset'],[],this[_0x59721a(0x3d2)]);this[_0x59721a(0x4a7)]();const _0x3cd5de=this[_0x59721a(0x28b)][_0x59721a(0x178)](_0x3368ab,this['unitID'],this[_0x59721a(0x354)],this[_0x59721a(0x3d2)]);return _0x3cd5de['_updateLocalCache'](),_0x3cd5de;}['onRemoteRej'](_0x31d9f6){const _0x465bd3=_0x228849;return this['_onConflict'](!!(_0x31d9f6!=null&&_0x31d9f6[_0x465bd3(0x42b)]));}['toggleOffline'](){const _0x1520e1=_0x228849;return this[_0x1520e1(0x28b)][_0x1520e1(0x178)](_0x424af3,this['unitID'],this[_0x1520e1(0x354)],this[_0x1520e1(0x14f)],[],this[_0x1520e1(0x3d2)]);}[_0x228849(0x4ee)](){return this;}['resend'](){const _0x3f0959=_0x228849;this[_0x3f0959(0x3d2)][_0x3f0959(0x4d3)](this['_awaitingChangeset']);}[_0x228849(0x1a9)](_0x1735bf){const _0x6bd5f5=_0x228849;return this[_0x6bd5f5(0x28b)]['createInstance'](_0x493854,this[_0x6bd5f5(0x340)],this[_0x6bd5f5(0x354)],this['_awaitingChangeset'],[],this[_0x6bd5f5(0x3d2)],_0x1735bf);}};_0x190be0=_0x2b9fdb([_0x3e73d5(0x4,_0x49bc9[_0x228849(0x31c)](_0x49bc9[_0x228849(0x36c)])),_0x3e73d5(0x5,_0x49bc9[_0x228849(0x31c)](_0x1e8c75[_0x228849(0x366)])),_0x3e73d5(0x6,_0x49bc9[_0x228849(0x31c)](_0x431c6f[_0x228849(0x361)])),_0x3e73d5(0x7,_0x226a7e[_0x228849(0x48f)]),_0x3e73d5(0x8,_0x226a7e[_0x228849(0x212)]),_0x3e73d5(0x9,_0x1e8c75['ITransformService']),_0x3e73d5(0xa,_0x226a7e['IUndoRedoService'])],_0x190be0);let _0x3f26f2=class extends _0x1abe13{constructor(_0x36ab9f,_0x1666a5,_0x2ca1f8,_0x274071,_0x27dd62,_0x16e1b1,_0x22059c,_0x224bc2,_0x3712f1,_0x31ee9b,_0x5d2bdc,_0x2decef){const _0x3df97f=_0x228849;super(_0x36ab9f,_0x1666a5,_0x2ca1f8,_0x274071,_0x27dd62,_0x3712f1,_0x2decef,_0x22059c,_0x224bc2),_0xaa2177(this,_0x3df97f(0x418),_0x3df97f(0x4ba)),(this['_injector']=_0x16e1b1,this[_0x3df97f(0x464)]=_0x31ee9b,this[_0x3df97f(0x1b9)]=_0x5d2bdc);}[_0x228849(0x3dd)](_0x19a84f){const _0xec7d25=_0x228849;return this[_0xec7d25(0x454)][_0xec7d25(0x4cb)](_0x19a84f),this;}[_0x228849(0x453)](_0xdf0a5a){const _0x1b888b=_0x228849;if(this[_0x1b888b(0x351)](_0xdf0a5a))return this[_0x1b888b(0x28b)][_0x1b888b(0x178)](_0x378adc,this[_0x1b888b(0x340)],this[_0x1b888b(0x354)],this[_0x1b888b(0x14f)],this[_0x1b888b(0x454)],null,[_0xdf0a5a],this['_handler']);try{const _0x1499d0=this['_transformService'][_0x1b888b(0x468)]([_0xdf0a5a],[this['_awaitingChangeset']],!0x1);if(_0x1e8c75[_0x1b888b(0x30f)](_0x1499d0)){const {c1Prime:_0x39aa5c,c2Prime:_0xad01bd}=_0x1499d0,_0x75def8=this[_0x1b888b(0x1b9)][_0x1b888b(0x2dd)](_0x39aa5c[0x0],this[_0x1b888b(0x454)]);if(_0x1e8c75[_0x1b888b(0x4f6)](_0x75def8)){const {c1Prime:_0x2b9b48,m2Prime:_0x606f66}=_0x75def8;return this[_0x1b888b(0x42c)](_0x2b9b48),_0xad01bd[0x0]['baseRev']=this[_0x1b888b(0x2e5)](),this['_injector'][_0x1b888b(0x178)](_0x3f26f2,this[_0x1b888b(0x340)],this[_0x1b888b(0x354)],_0xad01bd[0x0],_0x606f66,this[_0x1b888b(0x3d2)]);}throw _0x75def8[_0x1b888b(0x24e)];}throw _0x1499d0['error'];}catch(_0x2fa5cc){return this[_0x1b888b(0x464)][_0x1b888b(0x24e)](_0x2fa5cc),this[_0x1b888b(0x1a9)](!0x1);}}[_0x228849(0x25e)](_0x50a69c){const _0x3f18cc=_0x228849;if(this[_0x3f18cc(0x351)](_0x50a69c))return this['_injector'][_0x3f18cc(0x178)](_0x378adc,this['unitID'],this[_0x3f18cc(0x354)],null,this[_0x3f18cc(0x454)],this[_0x3f18cc(0x14f)],[],this[_0x3f18cc(0x3d2)]);this[_0x3f18cc(0x4a7)]();const _0x5cea4c=this['_injector'][_0x3f18cc(0x178)](_0x25c1eb,this[_0x3f18cc(0x340)],this[_0x3f18cc(0x354)],this[_0x3f18cc(0x454)],this[_0x3f18cc(0x3d2)]);return _0x5cea4c['_schedule'](),_0x5cea4c[_0x3f18cc(0x12a)](),_0x5cea4c;}[_0x228849(0x4e1)](_0x41a898){const _0x42e002=_0x228849;return this[_0x42e002(0x1a9)](!!(_0x41a898!=null&&_0x41a898[_0x42e002(0x42b)]));}[_0x228849(0x147)](){const _0x32ee1d=_0x228849;return this[_0x32ee1d(0x28b)][_0x32ee1d(0x178)](_0x424af3,this[_0x32ee1d(0x340)],this[_0x32ee1d(0x354)],this[_0x32ee1d(0x14f)],this[_0x32ee1d(0x454)],this['_handler']);}[_0x228849(0x4ee)](){return this;}[_0x228849(0x3c6)](){const _0x36cfc7=_0x228849;this[_0x36cfc7(0x3d2)][_0x36cfc7(0x4d3)](this['_awaitingChangeset']);}[_0x228849(0x1a9)](_0x2893c6){const _0x10f92a=_0x228849;return this[_0x10f92a(0x28b)]['createInstance'](_0x493854,this[_0x10f92a(0x340)],this[_0x10f92a(0x354)],null,this[_0x10f92a(0x454)],this[_0x10f92a(0x3d2)],_0x2893c6);}};_0x3f26f2=_0x2b9fdb([_0x3e73d5(0x5,_0x49bc9[_0x228849(0x31c)](_0x49bc9[_0x228849(0x36c)])),_0x3e73d5(0x6,_0x49bc9[_0x228849(0x31c)](_0x1e8c75[_0x228849(0x366)])),_0x3e73d5(0x7,_0x49bc9[_0x228849(0x31c)](_0x431c6f[_0x228849(0x361)])),_0x3e73d5(0x8,_0x226a7e['ICommandService']),_0x3e73d5(0x9,_0x226a7e[_0x228849(0x212)]),_0x3e73d5(0xa,_0x1e8c75[_0x228849(0x184)]),_0x3e73d5(0xb,_0x226a7e[_0x228849(0x3af)])],_0x3f26f2);let _0x493854=class extends _0x1abe13{constructor(_0x5c2625,_0x5da533,_0x3203f6,_0x1447d3,_0x21be4b,_0x5db4f9=!0x1,_0x8940f0,_0x1efeb7,_0x3b9521,_0x2d39ab,_0x5f2117,_0x5a0f4b,_0x1d527e){const _0x1c7ce2=_0x228849;super(_0x5c2625,_0x5da533,_0x3203f6,_0x1447d3,_0x21be4b,_0x1efeb7,_0x3b9521,_0x5f2117,_0x2d39ab),_0xaa2177(this,'status','conflict'),(this[_0x1c7ce2(0x494)]=_0x5db4f9,this[_0x1c7ce2(0x1c8)]=_0x8940f0,this[_0x1c7ce2(0x401)]=_0x5a0f4b,this['_notificationService']=_0x1d527e,this[_0x1c7ce2(0x4e9)](),this[_0x1c7ce2(0x409)](),this[_0x1c7ce2(0x1e6)]());}['appendMutation'](){return this;}['onRemoteChangeset'](){return this;}[_0x228849(0x25e)](){return this;}[_0x228849(0x4e1)](){return this;}['toggleOffline'](){return this;}[_0x228849(0x4ee)](){return this;}['resend'](){const _0x43b21e=_0x228849;throw new Error(_0x43b21e(0x40f));}[_0x228849(0x409)](){const _0x3063ab=_0x228849;this['_localCacheService'][_0x3063ab(0x323)](this[_0x3063ab(0x340)],this[_0x3063ab(0x354)],null,[]);}[_0x228849(0x4e9)](){const _0x3a89ad=_0x228849;this[_0x3a89ad(0x494)]?this[_0x3a89ad(0x36e)]['show']({'title':this[_0x3a89ad(0x401)]['t'](_0x3a89ad(0x163)),'content':this[_0x3a89ad(0x401)]['t'](_0x3a89ad(0x3f6)),'type':'error','duration':0x0}):this[_0x3a89ad(0x36e)][_0x3a89ad(0x333)]({'title':this[_0x3a89ad(0x401)]['t']('conflict.title'),'content':this[_0x3a89ad(0x401)]['t'](_0x3a89ad(0x171)),'type':_0x3a89ad(0x24e),'duration':0x0});}[_0x228849(0x1e6)](){const _0x5cc915=_0x228849;this[_0x5cc915(0x1c8)][_0x5cc915(0x202)](new _0x3acf4c[(_0x5cc915(0x39f))](this[_0x5cc915(0x340)])['id'],!0x1);}};_0x493854=_0x2b9fdb([_0x3e73d5(0x6,_0x49bc9['Inject'](_0x226a7e[_0x228849(0x182)])),_0x3e73d5(0x7,_0x226a7e[_0x228849(0x48f)]),_0x3e73d5(0x8,_0x226a7e[_0x228849(0x3af)]),_0x3e73d5(0x9,_0x49bc9['Inject'](_0x431c6f[_0x228849(0x361)])),_0x3e73d5(0xa,_0x49bc9[_0x228849(0x31c)](_0x1e8c75[_0x228849(0x366)])),_0x3e73d5(0xb,_0x49bc9[_0x228849(0x31c)](_0x226a7e[_0x228849(0x355)])),_0x3e73d5(0xc,_0x15005b[_0x228849(0x24f)])],_0x493854);let _0x424af3=class extends _0x1abe13{constructor(_0x4081b2,_0x3651b6,_0x5199d0,_0x856941,_0x49e2b2,_0x37743d,_0x589794,_0x2d794d,_0x27adb9,_0x5af585){const _0x800af1=_0x228849;super(_0x4081b2,_0x3651b6,_0x5199d0,_0x856941,_0x49e2b2,_0x27adb9,_0x5af585,_0x589794,_0x2d794d),_0xaa2177(this,_0x800af1(0x418),_0x800af1(0x297)),this[_0x800af1(0x28b)]=_0x37743d;}[_0x228849(0x3dd)](_0xeaeccd){const _0x27151c=_0x228849;return this[_0x27151c(0x454)]['push'](_0xeaeccd),this['_updateLocalCache'](),this;}[_0x228849(0x453)](_0x172825){const _0x14283d=_0x228849;throw new Error(_0x14283d(0x133));}['onRemoteAck'](){throw new Error('[OfflineState]:\x20received\x20acknowledgement.');}[_0x228849(0x4e1)](){const _0x539794=_0x228849;throw new Error(_0x539794(0x429));}[_0x228849(0x147)](){return this;}[_0x228849(0x4ee)](){const _0x48e7fe=_0x228849,{_injector:_0x5ea738,_pendingMutations:_0x1d8272,_awaitingChangeset:_0x46be77,unitID:_0x575c76,_handler:_0x1f690f,type:_0xd69296}=this,_0x4d52cc=_0x21ef26(_0x5ea738,_0x575c76,_0xd69296,_0x46be77,_0x1d8272,_0x1f690f);return _0x4d52cc instanceof _0x25c1eb?_0x4d52cc[_0x48e7fe(0x3ff)]():(_0x4d52cc instanceof _0x3f26f2||_0x4d52cc instanceof _0x190be0)&&_0x4d52cc[_0x48e7fe(0x3c6)](),_0x4d52cc;}[_0x228849(0x3c6)](){const _0x1f877a=_0x228849;throw new Error(_0x1f877a(0x410));}};_0x424af3=_0x2b9fdb([_0x3e73d5(0x5,_0x49bc9['Inject'](_0x49bc9[_0x228849(0x36c)])),_0x3e73d5(0x6,_0x49bc9['Inject'](_0x1e8c75[_0x228849(0x366)])),_0x3e73d5(0x7,_0x49bc9[_0x228849(0x31c)](_0x431c6f[_0x228849(0x361)])),_0x3e73d5(0x8,_0x226a7e[_0x228849(0x48f)]),_0x3e73d5(0x9,_0x226a7e[_0x228849(0x3af)])],_0x424af3);let _0x378adc=class extends _0x1abe13{constructor(_0x5a32fb,_0x96944c,_0x3e3342,_0x3639d6,_0x1222b0,_0x437ee5,_0x45f310,_0x23119c,_0x1be064,_0x3ab87a,_0x18c22c,_0x1490af,_0xaf497f,_0x523ac4){const _0x1a3435=_0x228849;super(_0x5a32fb,_0x96944c,_0x3e3342,_0x3639d6,_0x45f310,_0x1490af,_0xaf497f,_0x1be064,_0x3ab87a),_0xaa2177(this,'status','fetch_missing'),(this['_acknowledgedAwaitingChangeset']=_0x1222b0,this[_0x1a3435(0x478)]=_0x437ee5,this[_0x1a3435(0x28b)]=_0x23119c,this['_logService']=_0x18c22c,this[_0x1a3435(0x1b9)]=_0x523ac4);}[_0x228849(0x1e5)](_0x40fb6b){const _0x5319fb=_0x228849;try{const _0x32ea65=[..._0x40fb6b,...this[_0x5319fb(0x478)]],_0x17260e=[this[_0x5319fb(0x14f)]||this[_0x5319fb(0x42a)]]['filter'](_0x512a2b=>!!_0x512a2b);let _0x141f01,_0x396e07;if(_0x17260e[_0x5319fb(0x430)]){const _0x5361ad=this[_0x5319fb(0x1b9)][_0x5319fb(0x468)](_0x32ea65,_0x17260e,!0x1);if(!_0x1e8c75['isTransformChangesetsSuccess'](_0x5361ad))throw _0x5361ad[_0x5319fb(0x24e)];_0x141f01=_0x5361ad[_0x5319fb(0x356)],_0x396e07=_0x5361ad[_0x5319fb(0x381)];}else _0x141f01=_0x32ea65,_0x396e07=[];let _0x47e9e8=this[_0x5319fb(0x454)];_0x141f01[_0x5319fb(0x3ad)](_0x1eaaed=>{const _0x2d4e00=_0x5319fb;let _0x326d88;if(_0x47e9e8[_0x2d4e00(0x430)]){const _0x1421b5=this['_transformService']['transformMutationsWithChangeset'](_0x1eaaed,_0x47e9e8);if(!_0x1e8c75[_0x2d4e00(0x4f6)](_0x1421b5))throw _0x1421b5[_0x2d4e00(0x24e)];_0x326d88=_0x1421b5[_0x2d4e00(0x356)],_0x47e9e8=_0x1421b5[_0x2d4e00(0x260)];}else _0x326d88=_0x1eaaed;this[_0x2d4e00(0x42c)](_0x326d88);}),this[_0x5319fb(0x42a)]&&this['_incrementRevisionNumber'](),this[_0x5319fb(0x14f)]&&_0x396e07[_0x5319fb(0x430)]&&(_0x396e07[0x0][_0x5319fb(0x204)]=this[_0x5319fb(0x2e5)]());let _0x1ad957;if(this[_0x5319fb(0x14f)]&&_0x47e9e8['length']!==0x0)_0x1ad957=this[_0x5319fb(0x28b)][_0x5319fb(0x178)](_0x3f26f2,this[_0x5319fb(0x340)],this['type'],_0x396e07[0x0],_0x47e9e8,this['_handler']);else{if(this[_0x5319fb(0x14f)]&&_0x47e9e8[_0x5319fb(0x430)]===0x0)_0x396e07[0x0][_0x5319fb(0x204)]=this['_getCurrentRevision'](),_0x1ad957=this[_0x5319fb(0x28b)][_0x5319fb(0x178)](_0x190be0,this[_0x5319fb(0x340)],this['type'],_0x396e07[0x0],this[_0x5319fb(0x3d2)]);else{if(_0x47e9e8['length']!==0x0){const _0x3f242e=this[_0x5319fb(0x28b)][_0x5319fb(0x178)](_0x25c1eb,this['unitID'],this[_0x5319fb(0x354)],_0x47e9e8,this['_handler']);_0x3f242e[_0x5319fb(0x3ff)](),_0x1ad957=_0x3f242e;}else _0x1ad957=this['_injector'][_0x5319fb(0x178)](_0x3368ab,this[_0x5319fb(0x340)],this[_0x5319fb(0x354)],this[_0x5319fb(0x3d2)]);}}return _0x1ad957[_0x5319fb(0x12a)](),_0x1ad957;}catch(_0x1dfdce){return this['_logService'][_0x5319fb(0x24e)](_0x5319fb(0x29e),_0x5319fb(0x25f),_0x1dfdce),this[_0x5319fb(0x28b)][_0x5319fb(0x178)](_0x493854,this[_0x5319fb(0x340)],this[_0x5319fb(0x354)],this[_0x5319fb(0x14f)],this[_0x5319fb(0x454)],this[_0x5319fb(0x3d2)],!0x1);}}['resend'](){const _0x40ffbc=_0x228849;throw new Error(_0x40ffbc(0x155));}['appendMutation'](_0x260d79){const _0x9104e5=_0x228849;return this[_0x9104e5(0x454)][_0x9104e5(0x4cb)](_0x260d79),this;}[_0x228849(0x453)](_0x5a3b4d){const _0x58a4a9=_0x228849;return this[_0x58a4a9(0x478)]['push'](_0x5a3b4d),this;}[_0x228849(0x25e)](_0x3fd852){const _0x234370=_0x228849;if(this[_0x234370(0x14f)])return this[_0x234370(0x42a)]=this['_awaitingChangeset'],this[_0x234370(0x14f)]=null,this;throw new Error(_0x234370(0x1ea));}['onRemoteRej'](_0x7ecfba){return this['_onConflict'](!!(_0x7ecfba!=null&&_0x7ecfba['isPermissionRej']));}['toggleOffline'](){const _0x50eea8=_0x228849;return this[_0x50eea8(0x28b)]['createInstance'](_0x424af3,this[_0x50eea8(0x340)],this[_0x50eea8(0x354)],this[_0x50eea8(0x14f)],this['_pendingMutations'],this[_0x50eea8(0x3d2)]);}['toggleOnline'](){return this;}[_0x228849(0x1a9)](_0x5a8e93){const _0x8a1753=_0x228849;return this['_injector'][_0x8a1753(0x178)](_0x493854,this[_0x8a1753(0x340)],this[_0x8a1753(0x354)],this['_awaitingChangeset'],this['_pendingMutations'],this[_0x8a1753(0x3d2)],_0x5a8e93);}};_0x378adc=_0x2b9fdb([_0x3e73d5(0x7,_0x49bc9['Inject'](_0x49bc9[_0x228849(0x36c)])),_0x3e73d5(0x8,_0x49bc9[_0x228849(0x31c)](_0x1e8c75[_0x228849(0x366)])),_0x3e73d5(0x9,_0x49bc9[_0x228849(0x31c)](_0x431c6f['LocalCacheService'])),_0x3e73d5(0xa,_0x226a7e[_0x228849(0x212)]),_0x3e73d5(0xb,_0x226a7e[_0x228849(0x48f)]),_0x3e73d5(0xc,_0x226a7e[_0x228849(0x3af)]),_0x3e73d5(0xd,_0x1e8c75[_0x228849(0x184)])],_0x378adc);function _0x21ef26(_0x3f6c8d,_0x2cb18b,_0x59b81c,_0x43bd62,_0x2a78ad,_0x316559){const _0x5848c6=_0x228849;return _0x43bd62&&_0x2a78ad['length']?_0x3f6c8d[_0x5848c6(0x178)](_0x3f26f2,_0x2cb18b,_0x59b81c,_0x43bd62,_0x2a78ad,_0x316559):_0x43bd62?_0x3f6c8d[_0x5848c6(0x178)](_0x190be0,_0x2cb18b,_0x59b81c,_0x43bd62,_0x316559):_0x2a78ad[_0x5848c6(0x430)]?_0x3f6c8d[_0x5848c6(0x178)](_0x25c1eb,_0x2cb18b,_0x59b81c,_0x2a78ad,_0x316559):_0x3f6c8d['createInstance'](_0x3368ab,_0x2cb18b,_0x59b81c,_0x316559);}var _0x21052e=Object[_0x228849(0x1fc)],_0x111717=Object['getOwnPropertyDescriptor'],_0x19eb46=(_0x3f143d,_0x5c0ad8,_0xfc27d8,_0x533ca1)=>{const _0x177dab=_0x228849;for(var _0x26ac15=_0x533ca1>0x1?void 0x0:_0x533ca1?_0x111717(_0x5c0ad8,_0xfc27d8):_0x5c0ad8,_0x29d27c=_0x3f143d[_0x177dab(0x430)]-0x1,_0x2f28ad;_0x29d27c>=0x0;_0x29d27c--)(_0x2f28ad=_0x3f143d[_0x29d27c])&&(_0x26ac15=(_0x533ca1?_0x2f28ad(_0x5c0ad8,_0xfc27d8,_0x26ac15):_0x2f28ad(_0x26ac15))||_0x26ac15);return _0x533ca1&&_0x26ac15&&_0x21052e(_0x5c0ad8,_0xfc27d8,_0x26ac15),_0x26ac15;},_0x51c041=(_0x374b79,_0x1ed2ec)=>(_0x5c599d,_0x542fd8)=>_0x1ed2ec(_0x5c599d,_0x542fd8,_0x374b79);_0x431c6f[_0x228849(0x2cb)]=class extends _0x226a7e[_0x228849(0x2ac)]{constructor(_0xeb813a,_0x16cd66,_0x1dda23){const _0x1b9e21=_0x228849;super(),_0xaa2177(this,_0x1b9e21(0x339),new Map()),_0xaa2177(this,_0x1b9e21(0x24a),new _0x4e5e3f['Subject']()),(this[_0x1b9e21(0x28b)]=_0xeb813a,this['_collabSessionService']=_0x16cd66,this[_0x1b9e21(0x1ad)]=_0x1dda23,this[_0x1b9e21(0x285)]());}[_0x228849(0x485)](){const _0x28e873=_0x228849;super[_0x28e873(0x485)](),this[_0x28e873(0x339)]['forEach'](_0x13843e=>_0x13843e[_0x28e873(0x485)]()),this['_entities'][_0x28e873(0x33b)]();}[_0x228849(0x265)](_0x4c878a){const _0x3e0460=_0x228849;var _0x3588d4;return(_0x3588d4=this[_0x3e0460(0x339)]['get'](_0x4c878a))!=null?_0x3588d4:null;}[_0x228849(0x40d)](_0x342179){const _0x264078=_0x228849,_0x2df7f9=this[_0x264078(0x265)](_0x342179);return _0x2df7f9?_0x4e5e3f['of'](_0x2df7f9):this[_0x264078(0x24a)][_0x264078(0x450)](_0x4d72f4['filter'](_0x2395a3=>_0x2395a3[_0x264078(0x340)]===_0x342179));}[_0x228849(0x285)](){const _0x1cba60=_0x228849;this['_univerInstanceService'][_0x1cba60(0x135)](_0x226a7e[_0x1cba60(0x27d)][_0x1cba60(0x390)])[_0x1cba60(0x450)](_0x4e5e3f[_0x1cba60(0x2e4)](this[_0x1cba60(0x1ec)]),_0x4d72f4[_0x1cba60(0x2f0)](0x10))[_0x1cba60(0x22c)](async _0x168ce4=>{const _0x1305b2=_0x1cba60,_0x92949=_0x168ce4[_0x1305b2(0x2d1)](),_0x44d575=await this[_0x1305b2(0x3bc)](_0x92949,_0xf0e06f['UNIVER_SHEET']);this['_entities'][_0x1305b2(0x4f3)](_0x92949,_0x44d575);}),this[_0x1cba60(0x1ad)][_0x1cba60(0x135)](_0x226a7e[_0x1cba60(0x27d)][_0x1cba60(0x138)])[_0x1cba60(0x450)](_0x4e5e3f[_0x1cba60(0x2e4)](this[_0x1cba60(0x1ec)]),_0x4d72f4[_0x1cba60(0x2f0)](0x10))[_0x1cba60(0x450)](_0x4d72f4['filter'](_0x52f6ec=>!_0x52f6ec[_0x1cba60(0x2d1)]()[_0x1cba60(0x16c)]('__')))[_0x1cba60(0x22c)](async _0x3d7dbb=>{const _0x3e8a3b=_0x1cba60,_0x39c353=_0x3d7dbb[_0x3e8a3b(0x2d1)](),_0x20852c=await this['_startCollaboration'](_0x39c353,_0xf0e06f[_0x3e8a3b(0x138)]);this[_0x3e8a3b(0x339)][_0x3e8a3b(0x4f3)](_0x39c353,_0x20852c);}),_0x4e5e3f[_0x1cba60(0x3d0)](this[_0x1cba60(0x1ad)][_0x1cba60(0x19d)](_0x226a7e[_0x1cba60(0x27d)][_0x1cba60(0x390)]),this[_0x1cba60(0x1ad)]['getTypeOfUnitDisposed$'](_0x226a7e[_0x1cba60(0x27d)][_0x1cba60(0x138)]))[_0x1cba60(0x450)](_0x4e5e3f[_0x1cba60(0x2e4)](this[_0x1cba60(0x1ec)]))[_0x1cba60(0x22c)](_0x5d7952=>{const _0x105dc6=_0x1cba60,_0x4f665c=_0x5d7952[_0x105dc6(0x2d1)](),_0x5873fd=this[_0x105dc6(0x339)][_0x105dc6(0x24c)](_0x4f665c);_0x5873fd&&(_0x5873fd[_0x105dc6(0x485)](),this[_0x105dc6(0x339)][_0x105dc6(0x2b1)](_0x4f665c));});}async[_0x228849(0x3bc)](_0x1381c3,_0x4819ec){const _0x48a54b=_0x228849,_0x264bda=await this['_collabSessionService'][_0x48a54b(0x3a3)](_0x1381c3),_0x3e6d0d=this[_0x48a54b(0x28b)][_0x48a54b(0x178)](this[_0x48a54b(0x3e8)](_0x4819ec),_0x1381c3,_0x4819ec,_0x264bda);return await _0x3e6d0d[_0x48a54b(0x3bd)](),this[_0x48a54b(0x24a)][_0x48a54b(0x488)](_0x3e6d0d),_0x3e6d0d;}[_0x228849(0x3e8)](_0x179d32){const _0x59b618=_0x228849;switch(_0x179d32){case _0xf0e06f[_0x59b618(0x138)]:return _0x289e3a;case _0xf0e06f[_0x59b618(0x390)]:return _0x332233;default:throw new Error(_0x59b618(0x39c)+_0x179d32);}}},_0x431c6f[_0x228849(0x2cb)]=_0x19eb46([_0x226a7e[_0x228849(0x4f0)](_0x226a7e[_0x228849(0x179)][_0x228849(0x31d)],_0x431c6f[_0x228849(0x2cb)]),_0x51c041(0x0,_0x49bc9[_0x228849(0x31c)](_0x49bc9[_0x228849(0x36c)])),_0x51c041(0x1,_0x49bc9[_0x228849(0x31c)](_0x431c6f[_0x228849(0x192)])),_0x51c041(0x2,_0x226a7e[_0x228849(0x4aa)])],_0x431c6f[_0x228849(0x2cb)]);let _0x3771b3=class extends _0x226a7e[_0x228849(0x2ac)]{constructor(_0xc077a4,_0x32d7b3,_0x5229dc,_0x2902fd,_0x58b35c,_0x2e6549,_0x23db4f,_0x305e12,_0x1b3921,_0x5384b7,_0x40e7fb,_0x319a9e,_0x4f4f91){const _0x24c07e=_0x228849;super(),_0xaa2177(this,'_state$',new _0x4e5e3f['BehaviorSubject'](null)),_0xaa2177(this,'state$',this[_0x24c07e(0x1d1)][_0x24c07e(0x1fe)]()),_0xaa2177(this,'_state'),_0xaa2177(this,_0x24c07e(0x372),!0x1),_0xaa2177(this,_0x24c07e(0x168),this[_0x24c07e(0x415)][_0x24c07e(0x450)](_0x4d72f4[_0x24c07e(0x4db)](_0x1ebe9f=>_0x1ebe9f?_0x1ebe9f['status']:_0x4577df[_0x24c07e(0x26d)]),_0x4d72f4[_0x24c07e(0x495)](0x1))),_0xaa2177(this,_0x24c07e(0x1ee),!0x1),_0xaa2177(this,_0x24c07e(0x172),[]),(this['unitID']=_0xc077a4,this['_type']=_0x32d7b3,this[_0x24c07e(0x3c9)]=_0x5229dc,this[_0x24c07e(0x28b)]=_0x2902fd,this[_0x24c07e(0x3ef)]=_0x58b35c,this[_0x24c07e(0x338)]=_0x2e6549,this['_localeService']=_0x23db4f,this[_0x24c07e(0x230)]=_0x305e12,this[_0x24c07e(0x464)]=_0x1b3921,this[_0x24c07e(0x4b6)]=_0x5384b7,this[_0x24c07e(0x306)]=_0x40e7fb,this['_permissionService']=_0x319a9e,this[_0x24c07e(0x1fb)]=_0x4f4f91);}get['state'](){const _0x4370c6=_0x228849;return this[_0x4370c6(0x1eb)];}async[_0x228849(0x3bd)](){const _0x40468e=_0x228849;if(this[_0x40468e(0x373)])throw new Error(_0x40468e(0x2ba));await this[_0x40468e(0x285)]();}[_0x228849(0x4f9)](){const _0x5ec076=_0x228849;return this[_0x5ec076(0x372)]=!0x0,_0x226a7e[_0x5ec076(0x14b)](()=>{const _0x45a294=_0x5ec076;this[_0x45a294(0x372)]=!0x1,this['_exhaustRemoteChangesetQueue']();});}['_updateState'](_0x1a8a95){const _0x19f061=_0x228849;this[_0x19f061(0x1eb)]=_0x1a8a95,this[_0x19f061(0x1d1)][_0x19f061(0x488)](_0x1a8a95);}async['_init'](){const _0x30118e=_0x228849;var _0x34e314;return this[_0x30118e(0x4c1)](await this[_0x30118e(0x237)]()),this['_singleActiveUnitService']&&((_0x34e314=this['_singleActiveUnitService'])==null||_0x34e314[_0x30118e(0x18f)](this['unitID']),this[_0x30118e(0x231)](_0x226a7e['toDisposable'](this['_singleActiveUnitService'][_0x30118e(0x17d)](this['unitID'])['subscribe'](_0xd4dbf8=>{const _0x49de1a=_0x30118e;this[_0x49de1a(0x464)]['debug'](_0x49de1a(0x4fc),'editing\x20status\x20changed\x20to',_0xd4dbf8),_0xd4dbf8===_0x46ab2b[_0x49de1a(0x243)]?(this[_0x49de1a(0x306)][_0x49de1a(0x333)]({'content':this[_0x49de1a(0x401)]['t']('collaboration.single-unit.warning'),'type':_0x2d5606['MessageType']['Warning']}),this[_0x49de1a(0x1c8)][_0x49de1a(0x202)](new _0x3acf4c[(_0x49de1a(0x39f))](this['unitID'])['id'],!0x1)):this[_0x49de1a(0x1c8)][_0x49de1a(0x202)](new _0x3acf4c[(_0x49de1a(0x39f))](this['unitID'])['id'],!0x0);})))),this[_0x30118e(0x231)](_0x226a7e[_0x30118e(0x14b)](this['_session'][_0x30118e(0x2b7)][_0x30118e(0x22c)](_0x1d59c2=>{const _0x587cfd=_0x30118e;_0x1d59c2===_0x2d0945['ONLINE']?this[_0x587cfd(0x49f)]():_0x1d59c2===_0x2d0945[_0x587cfd(0x26d)]&&this[_0x587cfd(0x23f)]();}))),this[_0x30118e(0x231)](_0x226a7e[_0x30118e(0x14b)](this[_0x30118e(0x3c9)][_0x30118e(0x3a4)][_0x30118e(0x22c)](_0x1b84e4=>{const _0x16aaa4=_0x30118e;try{switch(_0x1b84e4[_0x16aaa4(0x325)]){case _0x1e8c75['CollaborationEvent']['NEW_CHANGESETS']:{this[_0x16aaa4(0x419)](_0x1e8c75['parseProtocolChangeset'](_0x1b84e4['data']));break;}case _0x1e8c75[_0x16aaa4(0x198)]['CHANGESET_ACK']:{this['_onRemoteACK'](_0x1b84e4['data']);break;}case _0x1e8c75['CollaborationEvent'][_0x16aaa4(0x4df)]:{this[_0x16aaa4(0x2f9)]();break;}case _0x1e8c75[_0x16aaa4(0x198)]['PSEUDO_FETCH_MISSING_RESULT']:{this['_onFetchMissResult'](_0x1b84e4[_0x16aaa4(0x1f8)][_0x16aaa4(0x2bf)][_0x16aaa4(0x4db)](_0xe2abfa=>_0x1e8c75[_0x16aaa4(0x4dd)](_0xe2abfa)));break;}case _0x1e8c75[_0x16aaa4(0x198)][_0x16aaa4(0x143)]:this['_onRemoteRejected']({'isPermissionRej':!0x0});}}catch(_0x28a273){throw console[_0x16aaa4(0x24e)]('Error\x20on\x20receiving\x20event',_0x28a273),_0x28a273;}}))),this[_0x30118e(0x1eb)];}[_0x228849(0x210)](){const _0xb49a55=_0x228849;this[_0xb49a55(0x1ee)]=!0x1;}[_0x228849(0x193)](){const _0x293b55=_0x228849;if(this['_transitionLocked'])throw new Error(_0x293b55(0x248));this[_0x293b55(0x1ee)]=!0x0;}[_0x228849(0x2d7)](_0xe4897e){const _0x3c051b=_0x228849;this[_0x3c051b(0x193)](),this[_0x3c051b(0x4c1)](this[_0x3c051b(0x1eb)][_0x3c051b(0x3dd)](_0xe4897e)),this['_unlockTransition']();}[_0x228849(0x419)](_0x2f8006){const _0x48cfe7=_0x228849;if(!(_0x2f8006[_0x48cfe7(0x437)]<=this[_0x48cfe7(0x230)]['getCurrentRevForDocument'](this['unitID']))){if(this['_collaborationPaused']){this[_0x48cfe7(0x172)][_0x48cfe7(0x4cb)](_0x2f8006);return;}this[_0x48cfe7(0x1ff)](_0x2f8006);}}['_exhaustRemoteChangesetQueue'](){const _0x4bc153=_0x228849;this[_0x4bc153(0x172)][_0x4bc153(0x3ad)](_0x14a6cc=>this[_0x4bc153(0x1ff)](_0x14a6cc)),this[_0x4bc153(0x172)]=[];}['_applyRemoteChangeset'](_0x4b1f84){const _0x25dbb5=_0x228849,_0xb9e82d=this[_0x25dbb5(0x338)][_0x25dbb5(0x1d5)][_0x25dbb5(0x1c3)](this[_0x25dbb5(0x338)][_0x25dbb5(0x1d5)][_0x25dbb5(0x348)]()[_0x25dbb5(0x32e)])(_0x4b1f84[_0x25dbb5(0x357)],null)||_0x4b1f84[_0x25dbb5(0x357)],_0x4a8376={..._0x4b1f84,'mutations':_0xb9e82d};this['_lockTransition'](),this['_updateState'](this[_0x25dbb5(0x1eb)]['onRemoteChangeset'](_0x4a8376)),this[_0x25dbb5(0x210)]();}[_0x228849(0x189)](_0x32b1a9){const _0x321745=_0x228849;this['_lockTransition'](),this['_updateState'](this[_0x321745(0x1eb)][_0x321745(0x25e)](_0x32b1a9)),this[_0x321745(0x210)]();}[_0x228849(0x2f9)](_0x4e22da){const _0x46534e=_0x228849;this[_0x46534e(0x193)](),this['_updateState'](this[_0x46534e(0x1eb)]['onRemoteRej'](_0x4e22da)),this[_0x46534e(0x210)]();}['_onFetchMissResult'](_0x52b3c3){const _0x359a49=_0x228849;if(!(this['_state']instanceof _0x378adc))throw new TypeError(_0x359a49(0x3cb));const _0x3e20f0=_0x52b3c3[_0x359a49(0x4db)](_0x1f1b08=>{const _0x183a26=_0x359a49,_0x3899ad=this[_0x183a26(0x338)]['interceptor']['fetchThroughInterceptors'](this[_0x183a26(0x338)][_0x183a26(0x1d5)][_0x183a26(0x348)]()['COMPRESS_MUTATION_APPLY'])(_0x1f1b08[_0x183a26(0x357)],null)||_0x1f1b08[_0x183a26(0x357)];return{..._0x1f1b08,'mutations':_0x3899ad};});this[_0x359a49(0x193)](),this[_0x359a49(0x4c1)](this['_state'][_0x359a49(0x1e5)](_0x3e20f0)),this[_0x359a49(0x210)]();}[_0x228849(0x23f)](){const _0x447c29=_0x228849;this[_0x447c29(0x193)](),this[_0x447c29(0x4c1)](this['_state'][_0x447c29(0x147)]()),this['_unlockTransition']();}['_toggleOnline'](){const _0x216be1=_0x228849;this[_0x216be1(0x193)](),this['_updateState'](this['_state'][_0x216be1(0x4ee)]()),this[_0x216be1(0x210)]();}async[_0x228849(0x237)](){return new Promise(_0x441c2a=>{const _0x463c75=_0x572c;this[_0x463c75(0x3c9)]['sessionStatus$'][_0x463c75(0x450)](_0x4d72f4[_0x463c75(0x1db)](0x1))[_0x463c75(0x22c)](async _0x560697=>{const _0x1e9028=_0x463c75;_0x441c2a(await this[_0x1e9028(0x277)](_0x560697===_0x2d0945[_0x1e9028(0x4cc)]));});});}['_createHandler'](){const _0x41eb5b=this['unitID'];return{'onStateChange':(_0x3852f5,_0x4f3fc8)=>{const _0xafedfc=_0x572c;if(_0x3852f5!==this['_state'])throw new Error(_0xafedfc(0x44a)+_0x3852f5[_0xafedfc(0x418)]+'\x0aAfter:\x20'+_0x4f3fc8[_0xafedfc(0x418)]+_0xafedfc(0x360)+this[_0xafedfc(0x1eb)][_0xafedfc(0x418)]);this[_0xafedfc(0x4c1)](_0x4f3fc8);},'onSendChangeset':_0x2c1f01=>{const _0x3a8d42=_0x572c,_0xe17cb={'eventID':_0x1e8c75[_0x3a8d42(0x198)][_0x3a8d42(0x2b5)],'data':{'unitID':_0x2c1f01[_0x3a8d42(0x340)],'unitType':this[_0x3a8d42(0x403)],'changeset':_0x2c1f01,'memberID':this['_session'][_0x3a8d42(0x2e1)]()}};this[_0x3a8d42(0x3c9)][_0x3a8d42(0x4ed)](_0xe17cb,this[_0x3a8d42(0x340)]);},'onMissingChangesets':({from:_0x592169,to:_0xeff23a})=>{const _0x44ba28=_0x572c;this[_0x44ba28(0x464)]['debug']('[CollaborationEntity]',_0x44ba28(0x3ce)+_0x592169+_0x44ba28(0x3ab)+_0xeff23a);const _0x4efd8c={'eventID':_0x1e8c75[_0x44ba28(0x198)][_0x44ba28(0x2bb)],'data':{'unitID':_0x41eb5b,'unitType':this[_0x44ba28(0x403)],'from':_0x592169,'to':_0xeff23a}};this[_0x44ba28(0x3c9)][_0x44ba28(0x4ed)](_0x4efd8c,this['unitID']);}};}async['_createInitialStateImpl'](_0x7acf36){const _0x409d6a=_0x228849;var _0x125d70,_0x38e64b;const _0x204f45=await this[_0x409d6a(0x3ef)][_0x409d6a(0x33c)](this[_0x409d6a(0x340)]),_0x37d00e=(_0x125d70=_0x204f45==null?void 0x0:_0x204f45['mutations'])!=null?_0x125d70:[],_0x361f62=(_0x38e64b=_0x204f45==null?void 0x0:_0x204f45[_0x409d6a(0x27a)])!=null?_0x38e64b:null,_0x5cc68c=this[_0x409d6a(0x340)];try{this[_0x409d6a(0x18b)](_0x361f62,_0x37d00e);}catch(_0x2b772b){this['_logService']['error'](_0x2b772b);}const _0x5de8b0=this['_createHandler']();if(_0x7acf36){const _0xa7c2bf=_0x21ef26(this[_0x409d6a(0x28b)],_0x5cc68c,this[_0x409d6a(0x403)],_0x361f62,_0x37d00e,_0x5de8b0);return _0xa7c2bf instanceof _0x25c1eb?_0xa7c2bf[_0x409d6a(0x3ff)]():(_0xa7c2bf instanceof _0x3f26f2||_0xa7c2bf instanceof _0x190be0)&&_0xa7c2bf[_0x409d6a(0x3c6)](),_0xa7c2bf;}return this[_0x409d6a(0x28b)]['createInstance'](_0x424af3,_0x5cc68c,this['_type'],_0x361f62,_0x37d00e,_0x5de8b0);}[_0x228849(0x18b)](_0xdd50f2,_0x3e9a38){const _0x429a96=_0x228849;var _0x9955cc,_0x2218a1;const _0x21bfe0=this[_0x429a96(0x338)]['interceptor']['fetchThroughInterceptors'](this[_0x429a96(0x338)][_0x429a96(0x1d5)][_0x429a96(0x348)]()['COMPRESS_MUTATION_APPLY']);(_0x9955cc=_0x21bfe0((_0xdd50f2==null?void 0x0:_0xdd50f2[_0x429a96(0x357)])||[],null))==null||_0x9955cc[_0x429a96(0x3ad)](_0x4d0693=>this['_commandService'][_0x429a96(0x12c)](_0x4d0693['id'],_0x4d0693[_0x429a96(0x2f4)])),(_0x2218a1=_0x21bfe0(_0x3e9a38||[],null))==null||_0x2218a1[_0x429a96(0x3ad)](_0x2bfeb0=>this[_0x429a96(0x4b6)][_0x429a96(0x12c)](_0x2bfeb0['id'],_0x2bfeb0[_0x429a96(0x2f4)]));}};_0x3771b3=_0x19eb46([_0x51c041(0x3,_0x49bc9[_0x228849(0x31c)](_0x49bc9[_0x228849(0x36c)])),_0x51c041(0x4,_0x49bc9[_0x228849(0x31c)](_0x431c6f['LocalCacheService'])),_0x51c041(0x5,_0x49bc9['Inject'](_0x1e8c75[_0x228849(0x411)])),_0x51c041(0x6,_0x49bc9[_0x228849(0x31c)](_0x226a7e[_0x228849(0x355)])),_0x51c041(0x7,_0x49bc9[_0x228849(0x31c)](_0x1e8c75[_0x228849(0x366)])),_0x51c041(0x8,_0x226a7e[_0x228849(0x212)]),_0x51c041(0x9,_0x226a7e['ICommandService']),_0x51c041(0xa,_0x15005b[_0x228849(0x4f8)]),_0x51c041(0xb,_0x226a7e[_0x228849(0x182)]),_0x51c041(0xc,_0x49bc9[_0x228849(0x195)](_0x53b064))],_0x3771b3);let _0x289e3a=class extends _0x3771b3{constructor(_0x26b9d5,_0x4113e8,_0x389153,_0x42fbb8,_0x139b2c,_0x10dda5,_0x36e8c7,_0x3706c6,_0x299c72,_0x352828,_0x1294f2,_0x269a69,_0x13a101,_0x2ac74d,_0x2aac19,_0x12d961,_0x55eb6b){const _0x33315d=_0x228849;super(_0x26b9d5,_0x4113e8,_0x389153,_0x42fbb8,_0x139b2c,_0x10dda5,_0x36e8c7,_0x3706c6,_0x13a101,_0x2ac74d,_0x2aac19,_0x12d961,_0x55eb6b),this['unitID']=_0x26b9d5,this[_0x33315d(0x354)]=_0x4113e8,this[_0x33315d(0x159)]=_0x389153,this[_0x33315d(0x3ac)]=_0x299c72,this[_0x33315d(0x474)]=_0x352828,this[_0x33315d(0x3f8)]=_0x1294f2,this[_0x33315d(0x142)]=_0x269a69;}[_0x228849(0x2ea)](){const _0x375b16=_0x228849,_0x576c51=super[_0x375b16(0x2ea)]();return _0x576c51['onTransformIME']=_0x1ef95e=>this[_0x375b16(0x474)][_0x375b16(0x328)](_0x1ef95e),_0x576c51[_0x375b16(0x482)]=_0x4a8c96=>this[_0x375b16(0x3f8)][_0x375b16(0x23c)](_0x4a8c96),_0x576c51[_0x375b16(0x216)]=_0x3d94d3=>this[_0x375b16(0x142)][_0x375b16(0x48d)](_0x3d94d3),_0x576c51['onTransformRemoteChangesetByIMECache']=_0x4ec453=>this[_0x375b16(0x474)]['transformRemoteChangeset'](_0x4ec453),_0x576c51;}async[_0x228849(0x285)](){const _0x1dc424=_0x228849,_0x11d050=await super[_0x1dc424(0x285)]();return this[_0x1dc424(0x3ac)][_0x1dc424(0x4f2)][_0x1dc424(0x450)](_0x4e5e3f[_0x1dc424(0x2e4)](this[_0x1dc424(0x1ec)]))[_0x1dc424(0x22c)](_0x43391e=>{const _0x2dad01=_0x1dc424;if(_0x43391e==null)return;const {unitId:_0x587936,redoState:_0xda0199,commandId:_0x3b8368}=_0x43391e;if(_0x587936!==this[_0x2dad01(0x340)])return;const _0x42032b={'id':_0x3b8368,'type':_0x226a7e[_0x2dad01(0x22d)]['MUTATION'],'params':{'unitId':_0x587936,'actions':_0xda0199[_0x2dad01(0x274)],'textRanges':null}};this[_0x2dad01(0x2d7)](_0x42032b);}),_0x11d050;}};_0x289e3a=_0x19eb46([_0x51c041(0x3,_0x49bc9[_0x228849(0x31c)](_0x49bc9[_0x228849(0x36c)])),_0x51c041(0x4,_0x49bc9[_0x228849(0x31c)](_0x431c6f[_0x228849(0x361)])),_0x51c041(0x5,_0x49bc9[_0x228849(0x31c)](_0x1e8c75[_0x228849(0x411)])),_0x51c041(0x6,_0x49bc9[_0x228849(0x31c)](_0x226a7e['LocaleService'])),_0x51c041(0x7,_0x49bc9[_0x228849(0x31c)](_0x1e8c75[_0x228849(0x366)])),_0x51c041(0x8,_0x49bc9[_0x228849(0x31c)](_0x534040['DocStateChangeManagerService'])),_0x51c041(0x9,_0x49bc9[_0x228849(0x31c)](_0x1f5fb3)),_0x51c041(0xa,_0x49bc9[_0x228849(0x31c)](_0x35da09)),_0x51c041(0xb,_0x49bc9[_0x228849(0x31c)](_0x372338)),_0x51c041(0xc,_0x226a7e[_0x228849(0x212)]),_0x51c041(0xd,_0x226a7e[_0x228849(0x48f)]),_0x51c041(0xe,_0x15005b[_0x228849(0x4f8)]),_0x51c041(0xf,_0x226a7e[_0x228849(0x182)]),_0x51c041(0x10,_0x49bc9[_0x228849(0x195)](_0x53b064))],_0x289e3a);let _0x332233=class extends _0x3771b3{constructor(_0x25ffec,_0x17a15e,_0x486a6b,_0x227331,_0x45ff13,_0x1f92d3,_0x1ba972,_0x259116,_0x6185d4,_0x1fdddc,_0x698b51,_0x2d2dcc,_0x3cc1a8,_0x14c67e){const _0x80b692=_0x228849;super(_0x25ffec,_0x17a15e,_0x486a6b,_0x227331,_0x45ff13,_0x1f92d3,_0x1ba972,_0x259116,_0x1fdddc,_0x698b51,_0x2d2dcc,_0x3cc1a8,_0x14c67e),this[_0x80b692(0x340)]=_0x25ffec,this[_0x80b692(0x354)]=_0x17a15e,this[_0x80b692(0x159)]=_0x486a6b,this[_0x80b692(0x49a)]=_0x6185d4;}[_0x228849(0x2ea)](){const _0x540ea3=_0x228849,_0x151e3b=super['_createHandler']();return _0x151e3b[_0x540ea3(0x482)]=_0x4f8a6a=>this[_0x540ea3(0x49a)]['transformSelections'](_0x4f8a6a),_0x151e3b;}async[_0x228849(0x285)](){const _0xa6154d=_0x228849,_0x41bdce=await super[_0xa6154d(0x285)]();return this[_0xa6154d(0x231)](this[_0xa6154d(0x4b6)][_0xa6154d(0x4b7)]((_0x3b5251,_0x1ff249)=>{const _0x52c850=_0xa6154d;if(_0x3b5251[_0x52c850(0x354)]!==_0x226a7e[_0x52c850(0x22d)][_0x52c850(0x3e0)]||_0x1ff249!=null&&_0x1ff249[_0x52c850(0x414)]||_0x1ff249!=null&&_0x1ff249[_0x52c850(0x31b)])return;const _0x38fba4=_0x3b5251[_0x52c850(0x2f4)];if((_0x38fba4==null?void 0x0:_0x38fba4[_0x52c850(0x3c5)])!==this[_0x52c850(0x340)])return;const _0x1a36b1=_0x3b5251,_0x2f2021=this[_0x52c850(0x338)][_0x52c850(0x1d5)]['fetchThroughInterceptors'](this[_0x52c850(0x338)]['interceptor'][_0x52c850(0x348)]()[_0x52c850(0x46f)])([_0x1a36b1],null)||[_0x1a36b1];this[_0x52c850(0x2d7)](_0x2f2021[0x0]);})),_0x41bdce;}};_0x332233=_0x19eb46([_0x51c041(0x3,_0x49bc9[_0x228849(0x31c)](_0x49bc9[_0x228849(0x36c)])),_0x51c041(0x4,_0x49bc9[_0x228849(0x31c)](_0x431c6f[_0x228849(0x361)])),_0x51c041(0x5,_0x49bc9[_0x228849(0x31c)](_0x1e8c75['CompressMutationService'])),_0x51c041(0x6,_0x49bc9[_0x228849(0x31c)](_0x226a7e[_0x228849(0x355)])),_0x51c041(0x7,_0x49bc9[_0x228849(0x31c)](_0x1e8c75[_0x228849(0x366)])),_0x51c041(0x8,_0x49bc9[_0x228849(0x31c)](_0x362b05)),_0x51c041(0x9,_0x226a7e[_0x228849(0x212)]),_0x51c041(0xa,_0x226a7e[_0x228849(0x48f)]),_0x51c041(0xb,_0x15005b[_0x228849(0x4f8)]),_0x51c041(0xc,_0x226a7e[_0x228849(0x182)]),_0x51c041(0xd,_0x49bc9['Optional'](_0x53b064))],_0x332233);const _0x316fe0=[_0x228849(0x329),_0x228849(0x4ea),_0x228849(0x28a),_0x228849(0x203),'blue400',_0x228849(0x30c)];class _0x237467 extends _0x226a7e[_0x228849(0x484)]{constructor(){const _0xf17a0e=_0x228849;super(...arguments),_0xaa2177(this,'_assignedColors',new Map()),_0xaa2177(this,_0xf17a0e(0x490),0x0);}['assignAColorForMemberID'](_0x448685){const _0x195169=_0x228849;if(this['_assignedColors']['has'](_0x448685))return this[_0x195169(0x21e)][_0x195169(0x24c)](_0x448685);const _0x424f8a=_0x316fe0[this[_0x195169(0x490)]];return this[_0x195169(0x490)]=(this[_0x195169(0x490)]+0x1)%_0x316fe0['length'],this[_0x195169(0x21e)][_0x195169(0x4f3)](_0x448685,_0x424f8a),_0x424f8a;}}var _0x2d574c=Object[_0x228849(0x1fc)],_0x1f4c48=Object[_0x228849(0x1b4)],_0x58a19e=(_0x5c1b2f,_0x17ec0d,_0x43b62d,_0x2e8d9c)=>{const _0x1556e4=_0x228849;for(var _0x2e36bd=_0x2e8d9c>0x1?void 0x0:_0x2e8d9c?_0x1f4c48(_0x17ec0d,_0x43b62d):_0x17ec0d,_0x5a7e5d=_0x5c1b2f[_0x1556e4(0x430)]-0x1,_0x132f46;_0x5a7e5d>=0x0;_0x5a7e5d--)(_0x132f46=_0x5c1b2f[_0x5a7e5d])&&(_0x2e36bd=(_0x2e8d9c?_0x132f46(_0x17ec0d,_0x43b62d,_0x2e36bd):_0x132f46(_0x2e36bd))||_0x2e36bd);return _0x2e8d9c&&_0x2e36bd&&_0x2d574c(_0x17ec0d,_0x43b62d,_0x2e36bd),_0x2e36bd;},_0x3aa8b8=(_0x5d939,_0x457294)=>(_0x5ad275,_0x1e22b8)=>_0x457294(_0x5ad275,_0x1e22b8,_0x5d939);const _0x3e28a6=0x12c,_0x2ff8dd=0x64,_0x493a4d=()=>{let _0x2965bf=[],_0x14f5fb=!0x1;return _0x2c463f=>{const _0x35a789=_0x572c;_0x2965bf[_0x35a789(0x4cb)](_0x2c463f),_0x14f5fb||(_0x14f5fb=!0x0,setTimeout(()=>{const _0x36e301=_0x35a789;_0x2965bf[_0x36e301(0x3ad)](_0x40480d=>_0x40480d()),_0x2965bf=[],_0x14f5fb=!0x1;}));};};let _0x4c09e8=class extends _0x226a7e[_0x228849(0x2ac)]{constructor(_0x5a4597,_0x21442f,_0x1cf9f2,_0x1575c2,_0x376c6c,_0x217c90,_0x281f8e,_0x4f63f3){const _0x25038d=_0x228849;super(),_0xaa2177(this,_0x25038d(0x332),!0x1),_0xaa2177(this,_0x25038d(0x285),!0x1),_0xaa2177(this,_0x25038d(0x479),new _0x4e5e3f[(_0x25038d(0x2e7))](new Map())),_0xaa2177(this,_0x25038d(0x183),this[_0x25038d(0x479)][_0x25038d(0x1fe)]()),_0xaa2177(this,_0x25038d(0x45c),new _0x4e5e3f[(_0x25038d(0x2e7))]([])),_0xaa2177(this,_0x25038d(0x1e9),this['_roomMembers$'][_0x25038d(0x450)](_0x4e5e3f[_0x25038d(0x3b5)](_0x3e28a6))),_0xaa2177(this,_0x25038d(0x470),_0x270255((_0x175a95,_0x1ac8fb)=>{const _0x5de189=_0x25038d,_0x4ee9d1={'eventID':_0x1e8c75[_0x5de189(0x198)][_0x5de189(0x253)],'data':{'unitID':this[_0x5de189(0x340)],'memberID':this['_session'][_0x5de189(0x2e1)](),'selection':_0x2ca513[_0x5de189(0x273)](_0x175a95,_0x1ac8fb[_0x5de189(0x2a6)])}};this[_0x5de189(0x3c9)]['send'](_0x4ee9d1,this[_0x5de189(0x340)]);},_0x2ff8dd)),(this[_0x25038d(0x340)]=_0x5a4597,this[_0x25038d(0x3c9)]=_0x21442f,this['_injector']=_0x1cf9f2,this['_colorAssignService']=_0x1575c2,this[_0x25038d(0x2c7)]=_0x376c6c,this[_0x25038d(0x1ad)]=_0x217c90,this[_0x25038d(0x4b6)]=_0x281f8e,this[_0x25038d(0x244)]=_0x4f63f3);}get['cursorInfo'](){return this['_cursorInfo$']['getValue']();}get[_0x228849(0x402)](){const _0x4d0217=_0x228849;return this[_0x4d0217(0x45c)]['getValue']();}[_0x228849(0x485)](){const _0x38f8e6=_0x228849;super[_0x38f8e6(0x485)](),this[_0x38f8e6(0x479)][_0x38f8e6(0x488)](new Map()),this['_cursorInfo$']['complete'](),this[_0x38f8e6(0x45c)]['next']([]),this[_0x38f8e6(0x45c)][_0x38f8e6(0x1dd)]();}[_0x228849(0x3bd)](){const _0x55467e=_0x228849;this['_init']||(this[_0x55467e(0x285)]=!0x0,this[_0x55467e(0x3c9)][_0x55467e(0x2b7)][_0x55467e(0x450)](_0x4e5e3f[_0x55467e(0x2e4)](this['dispose$']))[_0x55467e(0x22c)](_0x49bfce=>{const _0x171cbf=_0x55467e;_0x49bfce===_0x2d0945[_0x171cbf(0x4cc)]?this['_toggleOnline']():this[_0x171cbf(0x23f)]();}),this[_0x55467e(0x3c9)][_0x55467e(0x3a4)][_0x55467e(0x450)](_0x4e5e3f[_0x55467e(0x2e4)](this[_0x55467e(0x1ec)]))[_0x55467e(0x22c)](_0x19f823=>{const _0x5a960d=_0x55467e,_0x281510=_0x19f823[_0x5a960d(0x325)];_0x281510===_0x1e8c75[_0x5a960d(0x198)][_0x5a960d(0x253)]&&this[_0x5a960d(0x1d6)](_0x19f823),_0x281510===_0x1e8c75['CollaborationEvent']['USERS_LEAVE']&&this[_0x5a960d(0x2d5)](_0x19f823);}),this[_0x55467e(0x1d8)](),this['disposeWithMe'](this[_0x55467e(0x4b6)][_0x55467e(0x4b7)](_0x363a8e=>{const _0x4cae10=_0x55467e;if(this[_0x4cae10(0x332)]&&_0x363a8e['id']===_0x3acf4c[_0x4cae10(0x21b)]['id']&&_0x363a8e[_0x4cae10(0x2f4)][_0x4cae10(0x3c5)]===this['unitID']){const _0xa0dc34=_0x363a8e['params'];this[_0x4cae10(0x470)](_0xa0dc34[_0x4cae10(0x4ec)],_0xa0dc34[_0x4cae10(0x3a6)][0x0]);}})));}['_onCursorUpdate'](_0x576ede){const _0x359f4f=_0x228849;var _0x5ce774,_0x255dc2;const {memberID:_0x1ab517,selection:_0x21cb80}=_0x576ede['data'],{sheetName:_0x183ce3,range:_0x251f78}=_0x2ca513[_0x359f4f(0x3ec)](_0x21cb80),_0x27a8b1={'name':(_0x255dc2=(_0x5ce774=this[_0x359f4f(0x2c7)][_0x359f4f(0x250)](this[_0x359f4f(0x340)],_0x1ab517))==null?void 0x0:_0x5ce774[_0x359f4f(0x268)])!=null?_0x255dc2:_0x359f4f(0x3c1),'range':this['_getMergeRange'](_0x183ce3,_0x251f78),'sheetID':_0x183ce3,'color':this['_colorAssignService'][_0x359f4f(0x4cf)](_0x1ab517),'selection':_0x21cb80},_0x33a157=this[_0x359f4f(0x261)];_0x33a157[_0x359f4f(0x4f3)](_0x1ab517,_0x27a8b1),this['_cursorInfo$'][_0x359f4f(0x488)](_0x33a157);}[_0x228849(0x2d5)](_0x422bb6){const _0x3014d9=_0x228849,{memberID:_0x6226ed}=_0x422bb6[_0x3014d9(0x1f8)],_0x35daf8=this[_0x3014d9(0x261)];_0x35daf8[_0x3014d9(0x2b1)](_0x6226ed),this['_cursorInfo$'][_0x3014d9(0x488)](_0x35daf8);}[_0x228849(0x493)](_0x487fcd,_0x12f6ba){const _0x14ace2=_0x228849;var _0x56f560,_0x591b21;const _0x51877c=(_0x591b21=(_0x56f560=this[_0x14ace2(0x1ad)]['getUniverSheetInstance'](this['unitID']))==null?void 0x0:_0x56f560[_0x14ace2(0x140)](_0x487fcd))==null?void 0x0:_0x591b21[_0x14ace2(0x38f)]();return(_0x51877c==null?void 0x0:_0x51877c[_0x14ace2(0x232)](_0x3d0a0a=>_0x226a7e[_0x14ace2(0x1be)]['contains'](_0x3d0a0a,_0x12f6ba)))||_0x12f6ba;}['_onRefRangeChange'](){const _0x149518=_0x228849,_0x2f9951=new _0x226a7e[(_0x149518(0x4b3))](),_0x2103d3=_0x493a4d(),_0x3f1f6c=()=>{const _0x548953=_0x149518;_0x2f9951[_0x548953(0x485)]();const _0x296519=(_0x214e30,_0xe350b5,_0x25904e,_0x2aa590)=>{const _0x244806=_0x548953;let _0x475c4f=[];switch(_0x214e30['id']){case _0x3acf4c[_0x244806(0x15d)]['DeleteRangeMoveLeftCommandId']:{_0x475c4f=_0x3acf4c[_0x244806(0x33e)](_0x214e30,_0x2aa590);break;}case _0x3acf4c[_0x244806(0x15d)][_0x244806(0x378)]:{_0x475c4f=_0x3acf4c['handleDeleteRangeMoveUp'](_0x214e30,_0x2aa590);break;}case _0x3acf4c[_0x244806(0x15d)][_0x244806(0x2fe)]:{_0x475c4f=_0x3acf4c[_0x244806(0x3c8)](_0x214e30,_0x2aa590);break;}case _0x3acf4c[_0x244806(0x15d)][_0x244806(0x166)]:{_0x475c4f=_0x3acf4c[_0x244806(0x445)](_0x214e30,_0x2aa590);break;}case _0x3acf4c[_0x244806(0x15d)][_0x244806(0x313)]:{_0x475c4f=_0x3acf4c[_0x244806(0x425)](_0x214e30,_0x2aa590);break;}case _0x3acf4c['EffectRefRangId'][_0x244806(0x2e3)]:{_0x475c4f=_0x3acf4c[_0x244806(0x2f7)](_0x214e30,_0x2aa590);break;}case _0x3acf4c['EffectRefRangId'][_0x244806(0x4b4)]:{_0x475c4f=_0x3acf4c[_0x244806(0x1b5)](_0x214e30,_0x2aa590);break;}case _0x3acf4c[_0x244806(0x15d)][_0x244806(0x15c)]:{_0x475c4f=_0x3acf4c[_0x244806(0x13b)](_0x214e30,_0x2aa590);break;}case _0x3acf4c['EffectRefRangId'][_0x244806(0x471)]:{_0x475c4f=_0x3acf4c['handleIRemoveRow'](_0x214e30,_0x2aa590);break;}}const _0x44779f=_0x3acf4c[_0x244806(0x1a5)](_0x475c4f,_0x2aa590),_0x4443cd=this['cursorInfo'][_0x244806(0x24c)](_0xe350b5);if(_0x4443cd&&_0x44779f){const _0x5a8174={..._0x4443cd,'range':_0x44779f};this[_0x244806(0x261)]['set'](_0xe350b5,_0x5a8174),_0x2103d3(()=>{const _0x4aaa42=_0x244806,_0x3ac908=this['_refRangeService'][_0x4aaa42(0x29d)](_0x44779f,_0x2b6eb0=>(_0x3ac908[_0x4aaa42(0x485)](),_0x296519(_0x2b6eb0,_0xe350b5,_0x25904e,_0x44779f)));_0x2f9951['add'](_0x3ac908);});}return{'redos':[],'undos':[]};};this[_0x548953(0x261)][_0x548953(0x3ad)]((_0x531e61,_0x14cfe6)=>{const _0x18a933=_0x548953,{range:_0x22a954,sheetID:_0x411e29}=_0x531e61,_0x1a03a8=this[_0x18a933(0x244)][_0x18a933(0x29d)](_0x22a954,_0x2700f0=>(_0x1a03a8['dispose'](),_0x296519(_0x2700f0,_0x14cfe6,_0x411e29,_0x22a954)));_0x2f9951[_0x18a933(0x33d)](_0x1a03a8);});};this[_0x149518(0x231)](_0x226a7e['toDisposable'](this[_0x149518(0x479)][_0x149518(0x22c)](()=>{_0x3f1f6c();})));}[_0x228849(0x49f)](){const _0x5d632a=_0x228849;var _0x5106c0,_0x1cfc93;if(this['_online']=!0x0,((_0x5106c0=this[_0x5d632a(0x1ad)][_0x5d632a(0x43f)]())==null?void 0x0:_0x5106c0[_0x5d632a(0x2d1)]())!==this['unitID'])return;const _0x2b114c=(_0x1cfc93=this['_injector']['get'](_0x3acf4c[_0x5d632a(0x35c)])[_0x5d632a(0x2e0)]())==null?void 0x0:_0x1cfc93[0x0];_0x2b114c&&this[_0x5d632a(0x470)](this[_0x5d632a(0x1ad)]['getCurrentUnitForType'](_0x226a7e[_0x5d632a(0x27d)][_0x5d632a(0x390)])[_0x5d632a(0x4a3)]()['getSheetId'](),_0x2b114c);}['_toggleOffline'](){this['_online']=!0x1;}};_0x4c09e8=_0x58a19e([_0x3aa8b8(0x2,_0x49bc9[_0x228849(0x31c)](_0x49bc9['Injector'])),_0x3aa8b8(0x3,_0x49bc9['Inject'](_0x237467)),_0x3aa8b8(0x4,_0x49bc9[_0x228849(0x31c)](_0x2f6a5d)),_0x3aa8b8(0x5,_0x226a7e['IUniverInstanceService']),_0x3aa8b8(0x6,_0x226a7e[_0x228849(0x48f)]),_0x3aa8b8(0x7,_0x49bc9[_0x228849(0x31c)](_0x3acf4c['RefRangeService']))],_0x4c09e8);var _0x1245ca=Object['defineProperty'],_0x229826=Object['getOwnPropertyDescriptor'],_0x1bdabf=(_0x4115d5,_0x5cc928,_0x2e7c99,_0x1408ff)=>{const _0x17b97e=_0x228849;for(var _0x22c768=_0x1408ff>0x1?void 0x0:_0x1408ff?_0x229826(_0x5cc928,_0x2e7c99):_0x5cc928,_0x12c8aa=_0x4115d5[_0x17b97e(0x430)]-0x1,_0x1b9c2f;_0x12c8aa>=0x0;_0x12c8aa--)(_0x1b9c2f=_0x4115d5[_0x12c8aa])&&(_0x22c768=(_0x1408ff?_0x1b9c2f(_0x5cc928,_0x2e7c99,_0x22c768):_0x1b9c2f(_0x22c768))||_0x22c768);return _0x1408ff&&_0x22c768&&_0x1245ca(_0x5cc928,_0x2e7c99,_0x22c768),_0x22c768;},_0x3a8e95=(_0x3f7cb4,_0x3104fd)=>(_0x3d2385,_0x5ddcfa)=>_0x3104fd(_0x3d2385,_0x5ddcfa,_0x3f7cb4);const _0x386b95=0x12c,_0x37f7d5=0x64;let _0x23d36a=class extends _0x226a7e[_0x228849(0x2ac)]{constructor(_0x5b1ee6,_0x10f02c,_0x402648,_0x2fd2da,_0x5b425d,_0x3a7a32,_0x1c0323,_0x4b7b4b,_0x2f03d7){const _0x243445=_0x228849;super(),_0xaa2177(this,_0x243445(0x332),!0x1),_0xaa2177(this,'_init',!0x1),_0xaa2177(this,_0x243445(0x479),new _0x4e5e3f['BehaviorSubject'](new Map())),_0xaa2177(this,_0x243445(0x183),this[_0x243445(0x479)][_0x243445(0x1fe)]()),_0xaa2177(this,_0x243445(0x45c),new _0x4e5e3f[(_0x243445(0x2e7))]([])),_0xaa2177(this,'roomMembers$',this[_0x243445(0x45c)][_0x243445(0x450)](_0x4e5e3f[_0x243445(0x3b5)](_0x386b95))),_0xaa2177(this,_0x243445(0x470),_0x270255(_0x32eca1=>{const _0x576e0d=_0x243445,_0x2fac59={'eventID':_0x1e8c75['CollaborationEvent'][_0x576e0d(0x253)],'data':{'unitID':this[_0x576e0d(0x340)],'memberID':this['_session'][_0x576e0d(0x2e1)](),'selection':_0x26d119(_0x32eca1)}};this['_session'][_0x576e0d(0x4ed)](_0x2fac59,this[_0x576e0d(0x340)]);},_0x37f7d5)),(this[_0x243445(0x340)]=_0x5b1ee6,this['_session']=_0x10f02c,this[_0x243445(0x28b)]=_0x402648,this[_0x243445(0x38e)]=_0x2fd2da,this['_memberService']=_0x5b425d,this[_0x243445(0x44d)]=_0x3a7a32,this[_0x243445(0x1b9)]=_0x1c0323,this[_0x243445(0x1ad)]=_0x4b7b4b,this[_0x243445(0x4b6)]=_0x2f03d7);}get[_0x228849(0x261)](){return this['_cursorInfo$']['getValue']();}get[_0x228849(0x402)](){const _0x17b4d5=_0x228849;return this[_0x17b4d5(0x45c)][_0x17b4d5(0x181)]();}[_0x228849(0x485)](){const _0x28b30b=_0x228849;super[_0x28b30b(0x485)](),this[_0x28b30b(0x479)][_0x28b30b(0x488)](new Map()),this[_0x28b30b(0x479)][_0x28b30b(0x1dd)](),this[_0x28b30b(0x45c)][_0x28b30b(0x488)]([]),this[_0x28b30b(0x45c)][_0x28b30b(0x1dd)]();}[_0x228849(0x3bd)](){const _0x44e664=_0x228849;this[_0x44e664(0x285)]||(this[_0x44e664(0x285)]=!0x0,this[_0x44e664(0x3c9)]['sessionStatus$'][_0x44e664(0x450)](_0x4e5e3f[_0x44e664(0x2e4)](this[_0x44e664(0x1ec)]))['subscribe'](_0x134824=>{const _0x15f71a=_0x44e664;_0x134824===_0x2d0945[_0x15f71a(0x4cc)]?this[_0x15f71a(0x49f)]():this[_0x15f71a(0x23f)]();}),this[_0x44e664(0x3c9)][_0x44e664(0x3a4)][_0x44e664(0x450)](_0x4e5e3f[_0x44e664(0x2e4)](this[_0x44e664(0x1ec)]))[_0x44e664(0x22c)](_0xbc0b81=>{const _0x295318=_0x44e664,_0x2957fb=_0xbc0b81[_0x295318(0x325)];_0x2957fb===_0x1e8c75['CollaborationEvent'][_0x295318(0x253)]&&this[_0x295318(0x1d6)](_0xbc0b81),_0x2957fb===_0x1e8c75[_0x295318(0x198)]['USERS_LEAVE']&&this['_onCursorDelete'](_0xbc0b81);}),this[_0x44e664(0x231)](this[_0x44e664(0x4b6)][_0x44e664(0x4b7)](_0x214718=>{const _0x566451=_0x44e664,_0x2e2a71=_0x214718[_0x566451(0x2f4)];_0x2e2a71!=null&&this['_online']&&_0x214718['id']===_0x534040[_0x566451(0x3e6)]['id']&&_0x2e2a71[_0x566451(0x3c5)]===this[_0x566451(0x340)]&&_0x2e2a71[_0x566451(0x26e)]===!0x1&&this['_updateLocalCursor'](_0x2e2a71[_0x566451(0x341)]);})),this['_syncEditingCollabCursorService'][_0x44e664(0x477)][_0x44e664(0x450)](_0x4e5e3f[_0x44e664(0x2e4)](this['dispose$']))[_0x44e664(0x22c)](_0xa5f10e=>{const _0x202b1d=_0x44e664;if((_0xa5f10e==null?void 0x0:_0xa5f10e[_0x202b1d(0x340)])!==this[_0x202b1d(0x340)])return;const _0x10cd38={'eventID':_0x1e8c75['CollaborationEvent'][_0x202b1d(0x253)],'data':_0xa5f10e};this[_0x202b1d(0x1d6)](_0x10cd38);}),this[_0x44e664(0x231)](this[_0x44e664(0x4b6)][_0x44e664(0x4b7)](_0x37845f=>{const _0x2a4e14=_0x44e664;if(_0x37845f[_0x2a4e14(0x2f4)]==null)return;const _0x5deda5=_0x37845f[_0x2a4e14(0x2f4)];if(_0x37845f['id']!==_0x534040[_0x2a4e14(0x4b8)]['id']||_0x5deda5['unitId']!==this[_0x2a4e14(0x340)])return;const _0x4538b9={'id':_0x2a4e14(0x15e),'params':_0x5deda5},_0x435acd=this[_0x2a4e14(0x261)];for(const [_0x5eb281,_0x355768]of _0x435acd){const _0x44e480={'id':_0x2a4e14(0x15e),'params':{'unitId':this[_0x2a4e14(0x340)],'actions':null,'textRanges':_0x355768[_0x2a4e14(0x341)]}},_0x4feca9=this[_0x2a4e14(0x1b9)]['transformMutation'](_0x4538b9,_0x44e480,!0x1);if(_0x1e8c75[_0x2a4e14(0x499)](_0x4feca9))throw _0x4feca9[_0x2a4e14(0x24e)];_0x435acd[_0x2a4e14(0x4f3)](_0x5eb281,{..._0x355768,'ranges':_0x4feca9['m2Prime'][_0x2a4e14(0x2f4)][_0x2a4e14(0x47f)]});}queueMicrotask(()=>{const _0x2c58cd=_0x2a4e14;this[_0x2c58cd(0x479)][_0x2c58cd(0x488)](_0x435acd);});})));}[_0x228849(0x1d6)](_0x28e4c2){const _0xe5752f=_0x228849;var _0x4e8fe0,_0x362cd3;const {memberID:_0x4445ca,selection:_0x457349}=_0x28e4c2['data'],_0x1536be=_0x500cfa(_0x457349),_0x3708de=(_0x362cd3=(_0x4e8fe0=this[_0xe5752f(0x2c7)][_0xe5752f(0x250)](this[_0xe5752f(0x340)],_0x4445ca))==null?void 0x0:_0x4e8fe0[_0xe5752f(0x268)])!=null?_0x362cd3:_0xe5752f(0x3c1),_0x5167ca={'color':this[_0xe5752f(0x38e)][_0xe5752f(0x4cf)](_0x4445ca),'name':_0x3708de,'ranges':_0x1536be},_0x4dc444=this[_0xe5752f(0x261)];_0x4dc444[_0xe5752f(0x4f3)](_0x4445ca,_0x5167ca),this[_0xe5752f(0x479)][_0xe5752f(0x488)](_0x4dc444);}[_0x228849(0x2d5)](_0x53e46a){const _0x205668=_0x228849,{memberID:_0x3b3b79}=_0x53e46a[_0x205668(0x1f8)],_0x2ded8c=this[_0x205668(0x261)];_0x2ded8c[_0x205668(0x2b1)](_0x3b3b79),this[_0x205668(0x479)][_0x205668(0x488)](_0x2ded8c);}[_0x228849(0x49f)](){const _0x584d60=_0x228849;var _0x37ed31;if(this[_0x584d60(0x332)]=!0x0,((_0x37ed31=this[_0x584d60(0x1ad)][_0x584d60(0x43f)]())==null?void 0x0:_0x37ed31[_0x584d60(0x2d1)]())!==this[_0x584d60(0x340)])return;const _0x3c3ace=this['_injector'][_0x584d60(0x24c)](_0x534040[_0x584d60(0x2f2)])['getSelections'](),_0x4d2691=_0x3c3ace==null?void 0x0:_0x3c3ace[_0x584d60(0x4db)](_0x534040[_0x584d60(0x446)]);Array[_0x584d60(0x441)](_0x4d2691)&&_0x4d2691[_0x584d60(0x430)]>0x0&&this['_updateLocalCursor'](_0x4d2691);}['_toggleOffline'](){const _0x3c48ec=_0x228849;this[_0x3c48ec(0x332)]=!0x1;}};_0x23d36a=_0x1bdabf([_0x3a8e95(0x2,_0x49bc9[_0x228849(0x31c)](_0x49bc9[_0x228849(0x36c)])),_0x3a8e95(0x3,_0x49bc9[_0x228849(0x31c)](_0x237467)),_0x3a8e95(0x4,_0x49bc9[_0x228849(0x31c)](_0x2f6a5d)),_0x3a8e95(0x5,_0x49bc9[_0x228849(0x31c)](_0x372338)),_0x3a8e95(0x6,_0x1e8c75['ITransformService']),_0x3a8e95(0x7,_0x226a7e[_0x228849(0x4aa)]),_0x3a8e95(0x8,_0x226a7e[_0x228849(0x48f)])],_0x23d36a);var _0x113942=Object[_0x228849(0x1fc)],_0x5e63f4=Object[_0x228849(0x1b4)],_0x52f132=(_0x2b1357,_0x48909d,_0x48b18d,_0x422e9a)=>{const _0x271ab2=_0x228849;for(var _0x509de8=_0x422e9a>0x1?void 0x0:_0x422e9a?_0x5e63f4(_0x48909d,_0x48b18d):_0x48909d,_0x51f39d=_0x2b1357[_0x271ab2(0x430)]-0x1,_0x5ab0e1;_0x51f39d>=0x0;_0x51f39d--)(_0x5ab0e1=_0x2b1357[_0x51f39d])&&(_0x509de8=(_0x422e9a?_0x5ab0e1(_0x48909d,_0x48b18d,_0x509de8):_0x5ab0e1(_0x509de8))||_0x509de8);return _0x422e9a&&_0x509de8&&_0x113942(_0x48909d,_0x48b18d,_0x509de8),_0x509de8;},_0x48838e=(_0x595699,_0xe6d144)=>(_0x273516,_0x2cb113)=>_0xe6d144(_0x273516,_0x2cb113,_0x595699);let _0x1ed5eb=class extends _0x226a7e[_0x228849(0x2ac)]{constructor(_0x17802c,_0xa983c9,_0x88ebdb){const _0x5145df=_0x228849;super(),_0xaa2177(this,_0x5145df(0x339),new Map()),_0xaa2177(this,_0x5145df(0x24a),new _0x4e5e3f['Subject']()),(this['_univerInstanceService']=_0x17802c,this[_0x5145df(0x28b)]=_0xa983c9,this[_0x5145df(0x1e3)]=_0x88ebdb,this['_init']());}[_0x228849(0x485)](){const _0x549e6f=_0x228849;super[_0x549e6f(0x485)](),this[_0x549e6f(0x24a)][_0x549e6f(0x1dd)](),this[_0x549e6f(0x339)][_0x549e6f(0x3ad)](_0x43031f=>_0x43031f[_0x549e6f(0x485)]());}[_0x228849(0x254)](_0x46cbaf){const _0x9cacf9=_0x228849;return this[_0x9cacf9(0x339)][_0x9cacf9(0x1b2)](_0x46cbaf)?this[_0x9cacf9(0x339)][_0x9cacf9(0x24c)](_0x46cbaf)[_0x9cacf9(0x183)]:this[_0x9cacf9(0x24a)][_0x9cacf9(0x450)](_0x4e5e3f[_0x9cacf9(0x452)](_0xe6059b=>_0xe6059b[_0x9cacf9(0x340)]===_0x46cbaf),_0x4e5e3f[_0x9cacf9(0x32d)](_0x23c3ff=>_0x23c3ff['cursorInfo$']));}[_0x228849(0x285)](){const _0x3f9af8=_0x228849;this[_0x3f9af8(0x1ad)][_0x3f9af8(0x135)](_0x226a7e[_0x3f9af8(0x27d)]['UNIVER_SHEET'])['pipe'](_0x4e5e3f[_0x3f9af8(0x2e4)](this[_0x3f9af8(0x1ec)]))['subscribe'](async _0x512d8b=>{const _0x26e40d=_0x3f9af8,_0x7853a=_0x512d8b['getUnitId'](),_0x2c6a07=await this[_0x26e40d(0x397)](_0x7853a);this[_0x26e40d(0x24a)]['next'](_0x2c6a07),this[_0x26e40d(0x339)][_0x26e40d(0x4f3)](_0x7853a,_0x2c6a07);}),this[_0x3f9af8(0x1ad)][_0x3f9af8(0x135)](_0x226a7e[_0x3f9af8(0x27d)][_0x3f9af8(0x138)])[_0x3f9af8(0x450)](_0x4e5e3f[_0x3f9af8(0x2e4)](this[_0x3f9af8(0x1ec)]))[_0x3f9af8(0x450)](_0x4e5e3f['filter'](_0x393559=>!_0x393559['getUnitId']()['startsWith']('__')))[_0x3f9af8(0x22c)](async _0xd33699=>{const _0x503412=_0x3f9af8,_0x10ff4a=_0xd33699['getUnitId'](),_0x4c7be8=await this[_0x503412(0x439)](_0x10ff4a);this['_entityInit$']['next'](_0x4c7be8),this[_0x503412(0x339)][_0x503412(0x4f3)](_0x10ff4a,_0x4c7be8);}),_0x4e5e3f[_0x3f9af8(0x3d0)](this[_0x3f9af8(0x1ad)][_0x3f9af8(0x19d)](_0x226a7e[_0x3f9af8(0x27d)][_0x3f9af8(0x138)]),this['_univerInstanceService'][_0x3f9af8(0x19d)](_0x226a7e[_0x3f9af8(0x27d)][_0x3f9af8(0x390)]))[_0x3f9af8(0x450)](_0x4e5e3f[_0x3f9af8(0x2e4)](this[_0x3f9af8(0x1ec)]))[_0x3f9af8(0x22c)](_0x2ae575=>{const _0x18e27c=_0x3f9af8,_0x2492ea=_0x2ae575[_0x18e27c(0x2d1)](),_0x21de7f=this[_0x18e27c(0x339)][_0x18e27c(0x24c)](_0x2492ea);_0x21de7f&&(_0x21de7f[_0x18e27c(0x485)](),this[_0x18e27c(0x339)][_0x18e27c(0x2b1)](_0x2492ea));});}async[_0x228849(0x397)](_0x468053){const _0x291860=_0x228849,_0x415933=await this[_0x291860(0x1e3)]['requireSession'](_0x468053),_0x1b593c=this[_0x291860(0x28b)]['createInstance'](_0x4c09e8,_0x468053,_0x415933);return _0x1b593c[_0x291860(0x3bd)](),_0x1b593c;}async[_0x228849(0x439)](_0x3f72b5){const _0x58f6d5=_0x228849,_0x3986c1=await this['_collabSessionService'][_0x58f6d5(0x3a3)](_0x3f72b5),_0xa0abeb=this[_0x58f6d5(0x28b)][_0x58f6d5(0x178)](_0x23d36a,_0x3f72b5,_0x3986c1);return _0xa0abeb[_0x58f6d5(0x3bd)](),_0xa0abeb;}};_0x1ed5eb=_0x52f132([_0x226a7e['OnLifecycle'](_0x226a7e[_0x228849(0x179)][_0x228849(0x31d)],_0x1ed5eb),_0x48838e(0x0,_0x226a7e[_0x228849(0x4aa)]),_0x48838e(0x1,_0x49bc9[_0x228849(0x31c)](_0x49bc9[_0x228849(0x36c)])),_0x48838e(0x2,_0x49bc9[_0x228849(0x31c)](_0x431c6f[_0x228849(0x192)]))],_0x1ed5eb);const _0x4a66ac=0x14,_0x4eb8eb=0xc8,_0x32ce78=0x4,_0x1db62e=0x5;function _0x1566f8(_0x36aa68,_0x56eee6){const _0x51db1d=_0x228849;let {radius:_0x9e38c0,width:_0x148e4f,height:_0x56d88e}=_0x56eee6;_0x9e38c0=_0x9e38c0!=null?_0x9e38c0:0x0,_0x148e4f=_0x148e4f!=null?_0x148e4f:0x1e,_0x56d88e=_0x56d88e!=null?_0x56d88e:0x1e;let _0xfa4394=0x0,_0x84a859=0x0,_0x37c151=0x0;_0xfa4394=_0x84a859=_0x37c151=Math[_0x51db1d(0x18a)](_0x9e38c0,_0x148e4f/0x2,_0x56d88e/0x2),_0x36aa68['beginPath'](),_0x36aa68[_0x51db1d(0x385)](_0xfa4394,0x0),_0x36aa68[_0x51db1d(0x2ad)](_0x148e4f-_0x84a859,0x0),_0x36aa68['arc'](_0x148e4f-_0x84a859,_0x84a859,_0x84a859,Math['PI']*0x3/0x2,0x0,!0x1),_0x36aa68[_0x51db1d(0x2ad)](_0x148e4f,_0x56d88e-_0x37c151),_0x36aa68['arc'](_0x148e4f-_0x37c151,_0x56d88e-_0x37c151,_0x37c151,0x0,Math['PI']/0x2,!0x1),_0x36aa68['lineTo'](0x0,_0x56d88e),_0x36aa68[_0x51db1d(0x2ad)](0x0,_0xfa4394),_0x36aa68[_0x51db1d(0x34a)](_0xfa4394,_0xfa4394,_0xfa4394,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x36aa68[_0x51db1d(0x211)](),_0x56eee6['fill']&&(_0x36aa68[_0x51db1d(0x1e0)](),_0x36aa68[_0x51db1d(0x4a9)]=_0x56eee6[_0x51db1d(0x44c)],_0x56eee6['fillRule']==='evenodd'?_0x36aa68[_0x51db1d(0x44c)](_0x51db1d(0x208)):_0x36aa68[_0x51db1d(0x44c)](),_0x36aa68[_0x51db1d(0x1a4)]());}class _0x548988 extends _0x5b613a[_0x228849(0x30a)]{constructor(_0x27a74f,_0x19bbdf){const _0x579404=_0x228849;super(_0x27a74f,_0x19bbdf),_0xaa2177(this,'color'),_0xaa2177(this,_0x579404(0x48c)),(this[_0x579404(0x4dc)]=_0x19bbdf==null?void 0x0:_0x19bbdf[_0x579404(0x4dc)],this['text']=_0x19bbdf==null?void 0x0:_0x19bbdf[_0x579404(0x48c)]);}static[_0x228849(0x322)](_0x3390e8,_0x36e0ea){const _0x4a4b0c=_0x228849,{text:_0x17c4ee,color:_0x369c17}=_0x36e0ea;_0x3390e8['save'](),_0x3390e8[_0x4a4b0c(0x305)]=_0x4a4b0c(0x3bf);const _0x4075b9=_0x3390e8[_0x4a4b0c(0x3c7)](_0x17c4ee)['width'],_0x41e0a2=Math[_0x4a4b0c(0x18a)](_0x4075b9+0x2*_0x32ce78,_0x4eb8eb);_0x1566f8(_0x3390e8,{'height':_0x4a66ac,'radius':0x4,'width':_0x41e0a2,'fill':_0x369c17,'evented':!0x1}),_0x3390e8['fillStyle']=_0x4a4b0c(0x233);const _0x210205=_0x32ce78,_0x2dc182=_0x4a66ac-_0x1db62e,_0x59b4cd=_0x4eb8eb-0x2*_0x32ce78;if(_0x4075b9>_0x59b4cd){let _0x406bc0='',_0x5d02a0=0x0;for(const _0x88d082 of _0x17c4ee){const _0x2d03a7=_0x3390e8[_0x4a4b0c(0x3c7)](_0x88d082)[_0x4a4b0c(0x20b)];if(_0x5d02a0+_0x2d03a7<=_0x59b4cd-_0x3390e8['measureText'](_0x4a4b0c(0x132))[_0x4a4b0c(0x20b)])_0x406bc0+=_0x88d082,_0x5d02a0+=_0x2d03a7;else{_0x406bc0+=_0x4a4b0c(0x132);break;}}_0x3390e8['fillText'](_0x406bc0,_0x210205,_0x2dc182);}else _0x3390e8[_0x4a4b0c(0x258)](_0x17c4ee,_0x210205,_0x2dc182);_0x3390e8[_0x4a4b0c(0x1a4)]();}[_0x228849(0x1ba)](_0x2120de){const _0x33f7c5=_0x228849;_0x548988[_0x33f7c5(0x322)](_0x2120de,this);}}const _0x21324e=0x1,_0x422286=1.5;class _0x17e6ba extends _0x5b613a[_0x228849(0x30a)]{constructor(_0x8760e9,_0x1138de){const _0x5255e6=_0x228849;super(_0x8760e9,_0x1138de),_0xaa2177(this,_0x5255e6(0x4f7)),_0xaa2177(this,'_hovered',!0x1),_0xaa2177(this,_0x5255e6(0x380)),_0xaa2177(this,'_name',''),_0xaa2177(this,'_labelPosition',_0x5255e6(0x43c)),(_0x1138de&&this[_0x5255e6(0x2fc)](_0x1138de),this['onPointerEnterObserver']['add'](()=>this['setShapeProps']({'hovered':!0x0})),this['onPointerLeaveObserver']['add'](()=>this['setShapeProps']({'hovered':!0x1})));}[_0x228849(0x2fc)](_0x348e20){const _0x443c24=_0x228849;var _0x26b8ba,_0x432efb,_0x47da9b,_0x3575f8,_0x36bc8e;this[_0x443c24(0x4f7)]=(_0x26b8ba=_0x348e20['color'])!=null?_0x26b8ba:this[_0x443c24(0x4f7)],this[_0x443c24(0x153)]=(_0x432efb=_0x348e20['hovered'])!=null?_0x432efb:this[_0x443c24(0x153)],this['_range']=(_0x47da9b=_0x348e20['range'])!=null?_0x47da9b:this[_0x443c24(0x380)],this[_0x443c24(0x27f)]=(_0x3575f8=_0x348e20[_0x443c24(0x268)])!=null?_0x3575f8:this[_0x443c24(0x27f)],this[_0x443c24(0x2bc)]=(_0x36bc8e=_0x348e20[_0x443c24(0x1bf)])!=null?_0x36bc8e:this[_0x443c24(0x2bc)],this[_0x443c24(0x267)]({'width':_0x348e20[_0x443c24(0x20b)],'height':_0x348e20[_0x443c24(0x180)]});}['onMouseMove'](_0x7089e1){const _0x230caf=_0x228849,{row:_0x890dc4,column:_0x50c9b3}=_0x7089e1;if(_0x890dc4>=this[_0x230caf(0x380)][_0x230caf(0x41b)]&&_0x890dc4<=this[_0x230caf(0x380)][_0x230caf(0x2fd)]&&_0x50c9b3>=this['_range'][_0x230caf(0x42e)]&&_0x50c9b3<=this[_0x230caf(0x380)][_0x230caf(0x492)]){this[_0x230caf(0x2fc)]({'hovered':!0x0});return;}this[_0x230caf(0x2fc)]({'hovered':!0x1});}[_0x228849(0x3de)](_0x573811){return!0x1;}[_0x228849(0x1ba)](_0x48b518){const _0x52b3ec=_0x228849;_0x5b613a[_0x52b3ec(0x47e)]['drawWith'](_0x48b518,{'width':this[_0x52b3ec(0x20b)],'height':this[_0x52b3ec(0x180)],'strokeWidth':_0x422286,'stroke':this[_0x52b3ec(0x4f7)],'evented':!0x1}),this[_0x52b3ec(0x153)]&&(_0x48b518['save'](),_0x48b518[_0x52b3ec(0x331)](0x1,0x0,0x0,0x1,this[_0x52b3ec(0x20b)],this[_0x52b3ec(0x2bc)]===_0x52b3ec(0x3fe)?0x0:-_0x4a66ac),_0x548988[_0x52b3ec(0x322)](_0x48b518,{'text':this[_0x52b3ec(0x27f)],'color':this['_color']}),_0x48b518[_0x52b3ec(0x1a4)]());}}var _0x2962f4=Object[_0x228849(0x1fc)],_0x1ed94a=Object[_0x228849(0x1b4)],_0x5a872f=(_0x3f90d0,_0x32f458,_0x956d75,_0x56c7a6)=>{const _0x525ce7=_0x228849;for(var _0x1021d3=_0x56c7a6>0x1?void 0x0:_0x56c7a6?_0x1ed94a(_0x32f458,_0x956d75):_0x32f458,_0x486d05=_0x3f90d0[_0x525ce7(0x430)]-0x1,_0x5e3ab2;_0x486d05>=0x0;_0x486d05--)(_0x5e3ab2=_0x3f90d0[_0x486d05])&&(_0x1021d3=(_0x56c7a6?_0x5e3ab2(_0x32f458,_0x956d75,_0x1021d3):_0x5e3ab2(_0x1021d3))||_0x1021d3);return _0x56c7a6&&_0x1021d3&&_0x2962f4(_0x32f458,_0x956d75,_0x1021d3),_0x1021d3;},_0x5cba14=(_0x42a66e,_0x369ae3)=>(_0x23f110,_0x3d2299)=>_0x369ae3(_0x23f110,_0x3d2299,_0x42a66e);let _0x7ed5d=class extends _0x226a7e[_0x228849(0x2ac)]{constructor(_0x5c7535,_0x28f412,_0x575157,_0x49a2a7){const _0x291253=_0x228849;super(),_0xaa2177(this,_0x291253(0x4bb),new Set()),_0xaa2177(this,_0x291253(0x3a9),null),(this[_0x291253(0x3c2)]=_0x5c7535,this[_0x291253(0x1ad)]=_0x28f412,this['_renderManagerService']=_0x575157,this['_themeService']=_0x49a2a7,this[_0x291253(0x285)]());}get[_0x228849(0x2c0)](){const _0x885a37=_0x228849;return this[_0x885a37(0x4c0)]['getRenderById'](this[_0x885a37(0x1ad)][_0x885a37(0x1e1)](_0x226a7e[_0x885a37(0x27d)][_0x885a37(0x390)])[_0x885a37(0x2d1)]())[_0x885a37(0x186)](_0x1a2a28[_0x885a37(0x3b3)]);}get[_0x228849(0x30b)](){const _0x407cf0=_0x228849;return this['_univerInstanceService']['getCurrentUnitForType'](_0x226a7e[_0x407cf0(0x27d)][_0x407cf0(0x390)])['getUnitId']();}[_0x228849(0x285)](){const _0x4baef5=_0x228849;this['_sheetSkeletonManagerService']['currentSkeleton$'][_0x4baef5(0x450)](_0x4d72f4[_0x4baef5(0x2e4)](this[_0x4baef5(0x1ec)]),_0x4d72f4[_0x4baef5(0x32d)](_0x306235=>{const _0xcbfd4c=_0x4baef5;if(_0x306235){const _0xf4e939=_0x306235['sheetId'];return _0x4e5e3f['combineLatest'](this['_collabCursorController'][_0xcbfd4c(0x254)](this[_0xcbfd4c(0x30b)]),this['_themeService'][_0xcbfd4c(0x301)])['pipe'](_0x4d72f4[_0xcbfd4c(0x4db)](([_0xacca2e,_0x1a852a])=>{const _0xf36e8a=_0xcbfd4c,_0x486021=new Map();return _0xacca2e[_0xf36e8a(0x3ad)]((_0x998205,_0x5707f9)=>{const _0x53cac0=_0xf36e8a;if(_0x998205[_0x53cac0(0x234)]===_0xf4e939){const _0x55e242={..._0x998205};_0x55e242[_0x53cac0(0x4dc)]=_0x1a852a[_0x998205[_0x53cac0(0x4dc)]],_0x486021['set'](_0x5707f9,_0x55e242);}}),{'skeleton':_0x306235,'cursors':_0x486021};}));}return _0x4e5e3f['of']({'skeleton':null,'cursors':new Map()});}))[_0x4baef5(0x22c)](({skeleton:_0x277814,cursors:_0x1b5b9b})=>{const _0x354ce9=_0x4baef5;this[_0x354ce9(0x1ed)](),_0x277814&&this['_updateCollabCursors'](_0x277814,_0x1b5b9b);}),this[_0x4baef5(0x2c0)][_0x4baef5(0x34d)][_0x4baef5(0x22c)](_0x23efbe=>{const _0x41b22c=_0x4baef5;if(_0x23efbe==null)return;const {skeleton:_0x2805fd}=_0x23efbe,_0x5841cb=this['_renderManagerService']['getRenderById'](this[_0x41b22c(0x30b)]),{scene:_0x2aeb04}=_0x5841cb;_0x2aeb04[_0x41b22c(0x4e6)]['add'](_0x270255(_0x3e79f1=>{const _0x3b7e25=_0x41b22c;var _0x2959be,_0x3c4090;const {offsetX:_0x1b3b9f,offsetY:_0x5721f9}=_0x3e79f1,{x:_0x4caf8e,y:_0x29427f}=_0x2aeb04[_0x3b7e25(0x353)](_0x5b613a[_0x3b7e25(0x2aa)][_0x3b7e25(0x3f9)]([_0x1b3b9f,_0x5721f9])),{scaleX:_0x364361,scaleY:_0x36865f}=_0x2aeb04[_0x3b7e25(0x190)](),_0x29e94c=_0x2aeb04[_0x3b7e25(0x206)](_0x1a2a28[_0x3b7e25(0x315)][_0x3b7e25(0x451)]),_0x3d1412=_0x2aeb04[_0x3b7e25(0x1a2)](_0x5b613a['Vector2'][_0x3b7e25(0x3f9)]([_0x4caf8e,_0x29427f]),_0x29e94c),_0x377c68=_0x2805fd[_0x3b7e25(0x3f0)](_0x1b3b9f,_0x5721f9,_0x364361,_0x36865f,_0x3d1412);((_0x2959be=this[_0x3b7e25(0x3a9)])==null?void 0x0:_0x2959be[_0x3b7e25(0x47d)])===_0x377c68[_0x3b7e25(0x47d)]&&((_0x3c4090=this['_lastPointer'])==null?void 0x0:_0x3c4090['row'])===_0x377c68[_0x3b7e25(0x444)]||this[_0x3b7e25(0x4bb)][_0x3b7e25(0x3ad)](_0x271b2f=>{_0x271b2f['onMouseMove'](_0x377c68);});},0x64));});}['_updateCollabCursors'](_0xca3589,_0x27a368){const _0x133963=_0x228849;var _0x307384;const _0x5cd0be=(_0x307384=this[_0x133963(0x2c0)][_0x133963(0x259)]())==null?void 0x0:_0x307384['skeleton'];if(!_0x5cd0be)return;const _0x387c5e=this[_0x133963(0x1bb)]();if(!_0x387c5e)return;this['_cursors'][_0x133963(0x3ad)](_0xa612a3=>{const _0x10b9cd=_0x133963;_0xa612a3[_0x10b9cd(0x1f3)]();});const {scene:_0xf3e0b1}=_0x387c5e,_0x6d256=_0x4d7979(Array[_0x133963(0x41c)](_0x27a368[_0x133963(0x2a5)]()))[_0x133963(0x4db)](_0x23b310=>{const _0xe21ce6=_0x133963,{color:_0x181d1f,range:_0x576e78,name:_0x184591,selection:_0x523571,sheetID:_0x22f210}=_0x23b310,{startColumn:_0x270935,startRow:_0x1049cb,endColumn:_0x5c184b,endRow:_0xbf488e}=_0x576e78,_0x5611f8=_0x1a2a28[_0xe21ce6(0x335)](_0x1049cb,_0x270935,_0xf3e0b1,_0x5cd0be),_0x2427a9=_0x1a2a28['getCoordByCell'](_0xbf488e,_0x5c184b,_0xf3e0b1,_0x5cd0be),{columnHeaderHeightAndMarginTop:_0x523f79}=_0x5cd0be,{startX:_0x10bfc6,startY:_0x196ce0}=_0x5611f8,{endX:_0xc78d04,endY:_0x2ef3a4}=_0x2427a9,_0x194040=_0xc78d04-_0x10bfc6,_0x9c917d=_0x2ef3a4-_0x196ce0,_0x21ccb4={'labelPosition':_0x196ce0-_0x523f79>=_0x4a66ac?_0xe21ce6(0x43c):_0xe21ce6(0x3fe),'sheetID':_0x22f210,'range':_0x576e78,'color':_0x181d1f,'name':_0x184591,'selection':_0x523571,'left':_0x10bfc6,'top':_0x196ce0,'width':_0x194040,'height':_0x9c917d,'evented':!0x1};return new _0x17e6ba(_0x184591,_0x21ccb4);});_0xf3e0b1[_0x133963(0x3a2)](_0x6d256,_0x21324e),this[_0x133963(0x4bb)]=new Set(_0x6d256);}[_0x228849(0x1ed)](){const _0x1482cf=_0x228849;var _0x487c61;(_0x487c61=this[_0x1482cf(0x4bb)])==null||_0x487c61[_0x1482cf(0x3ad)](_0x578e9d=>_0x578e9d[_0x1482cf(0x485)]());}[_0x228849(0x1bb)](){const _0x18a33b=_0x228849;return _0x1a2a28[_0x18a33b(0x364)](this[_0x18a33b(0x1ad)],this['_renderManagerService']);}};_0x7ed5d=_0x5a872f([_0x226a7e['OnLifecycle'](_0x226a7e[_0x228849(0x179)]['Steady'],_0x7ed5d),_0x5cba14(0x0,_0x49bc9[_0x228849(0x31c)](_0x1ed5eb)),_0x5cba14(0x1,_0x226a7e[_0x228849(0x4aa)]),_0x5cba14(0x2,_0x5b613a[_0x228849(0x4ac)]),_0x5cba14(0x3,_0x49bc9[_0x228849(0x31c)](_0x226a7e[_0x228849(0x201)]))],_0x7ed5d);function _0x4d7979(_0x4595e1){const _0x4ccf15=_0x228849,_0x550e1b=new Map();return _0x4595e1[_0x4ccf15(0x3ad)](_0x1aa886=>{const _0x1c4abc=_0x4ccf15;if(_0x550e1b['has'](_0x1aa886[_0x1c4abc(0x224)])){const _0x2dc464=_0x550e1b[_0x1c4abc(0x24c)](_0x1aa886[_0x1c4abc(0x224)]);_0x2dc464[_0x1c4abc(0x268)]+=',\x20'+_0x1aa886[_0x1c4abc(0x268)];}else _0x550e1b['set'](_0x1aa886[_0x1c4abc(0x224)],_0x1aa886);}),Array[_0x4ccf15(0x41c)](_0x550e1b[_0x4ccf15(0x2a5)]());}var _0x55a227=function(){return _0x55a227=Object['assign']||function(_0x2dfbc7){const _0x60f4a3=_0x572c;for(var _0x26da07,_0x3c95f3=0x1,_0x3bea7e=arguments[_0x60f4a3(0x430)];_0x3c95f3<_0x3bea7e;_0x3c95f3++){_0x26da07=arguments[_0x3c95f3];for(var _0x2b413d in _0x26da07)Object['prototype'][_0x60f4a3(0x223)][_0x60f4a3(0x3d8)](_0x26da07,_0x2b413d)&&(_0x2dfbc7[_0x2b413d]=_0x26da07[_0x2b413d]);}return _0x2dfbc7;},_0x55a227['apply'](this,arguments);},_0x5e9d41=function(_0x858f26,_0x1b9a70){const _0x53eebb=_0x228849;var _0x5bc732={};for(var _0x6ae6d8 in _0x858f26)Object[_0x53eebb(0x47b)]['hasOwnProperty'][_0x53eebb(0x3d8)](_0x858f26,_0x6ae6d8)&&_0x1b9a70[_0x53eebb(0x39a)](_0x6ae6d8)<0x0&&(_0x5bc732[_0x6ae6d8]=_0x858f26[_0x6ae6d8]);if(_0x858f26!=null&&typeof Object['getOwnPropertySymbols']==_0x53eebb(0x3e3)){for(var _0xc3b0cc=0x0,_0x6ae6d8=Object[_0x53eebb(0x22a)](_0x858f26);_0xc3b0cc<_0x6ae6d8[_0x53eebb(0x430)];_0xc3b0cc++)_0x1b9a70[_0x53eebb(0x39a)](_0x6ae6d8[_0xc3b0cc])<0x0&&Object[_0x53eebb(0x47b)]['propertyIsEnumerable'][_0x53eebb(0x3d8)](_0x858f26,_0x6ae6d8[_0xc3b0cc])&&(_0x5bc732[_0x6ae6d8[_0xc3b0cc]]=_0x858f26[_0x6ae6d8[_0xc3b0cc]]);}return _0x5bc732;},_0x45b96a=_0x53ebe1[_0x228849(0x235)](function(_0x3b763e,_0xb7a019){const _0x591d1c=_0x228849;var _0x2bb9b3=_0x3b763e['icon'],_0x1c5953=_0x3b763e['id'],_0x965ef=_0x3b763e['className'],_0x244b7c=_0x3b763e['extend'],_0x271e84=_0x5e9d41(_0x3b763e,['icon','id',_0x591d1c(0x219),_0x591d1c(0x480)]),_0x4e8d5a=_0x591d1c(0x236)[_0x591d1c(0x405)](_0x1c5953,'\x20')[_0x591d1c(0x405)](_0x965ef||'')[_0x591d1c(0x1ca)](),_0x1207ab=_0x53ebe1[_0x591d1c(0x15b)]('_'[_0x591d1c(0x405)](_0x296f64()));return _0x5f3d81(_0x2bb9b3,''[_0x591d1c(0x405)](_0x1c5953),{'defIds':_0x2bb9b3[_0x591d1c(0x45f)],'idSuffix':_0x1207ab[_0x591d1c(0x1f5)]},_0x55a227({'ref':_0xb7a019,'className':_0x4e8d5a},_0x271e84),_0x244b7c);});function _0x5f3d81(_0x161c2c,_0x450ed5,_0x3ef759,_0x3f4330,_0x5c464f){const _0x570343=_0x228849;return _0x53ebe1[_0x570343(0x436)](_0x161c2c[_0x570343(0x262)],_0x55a227(_0x55a227({'key':_0x450ed5},_0x5b7bb7(_0x161c2c,_0x3ef759,_0x5c464f)),_0x3f4330),(_0x37132d(_0x161c2c,_0x3ef759)['children']||[])[_0x570343(0x4db)](function(_0x248624,_0x4d2df4){const _0x479de5=_0x570343;return _0x5f3d81(_0x248624,''[_0x479de5(0x405)](_0x450ed5,'-')[_0x479de5(0x405)](_0x161c2c['tag'],'-')[_0x479de5(0x405)](_0x4d2df4),_0x3ef759,void 0x0,_0x5c464f);}));}function _0x5b7bb7(_0x57fc72,_0xd71d47,_0x4d4d99){const _0x244142=_0x228849;var _0x242cce=_0x55a227({},_0x57fc72['attrs']);_0x4d4d99!=null&&_0x4d4d99[_0x244142(0x2b8)]&&_0x242cce[_0x244142(0x44c)]===_0x244142(0x2b8)&&(_0x242cce[_0x244142(0x44c)]=_0x4d4d99['colorChannel1']);var _0x359174=_0xd71d47['defIds'];return!_0x359174||_0x359174[_0x244142(0x430)]===0x0||(_0x57fc72['tag']===_0x244142(0x149)&&_0x242cce[_0x244142(0x251)]&&(_0x242cce[_0x244142(0x251)]=_0x242cce[_0x244142(0x251)]+_0xd71d47[_0x244142(0x308)]),Object[_0x244142(0x4bf)](_0x242cce)['forEach'](function(_0xffa0ba){const _0x2c186f=_0x244142;var _0x16fa32=_0xffa0ba[0x0],_0x1f3f70=_0xffa0ba[0x1];typeof _0x1f3f70==_0x2c186f(0x1a8)&&(_0x242cce[_0x16fa32]=_0x1f3f70[_0x2c186f(0x281)](/url\(#(.*)\)/,_0x2c186f(0x25b)['concat'](_0xd71d47[_0x2c186f(0x308)],')')));})),_0x242cce;}function _0x37132d(_0x47e736,_0x249593){const _0x4fb3d9=_0x228849;var _0x9f0345,_0x575e00=_0x249593[_0x4fb3d9(0x45f)];return!_0x575e00||_0x575e00[_0x4fb3d9(0x430)]===0x0?_0x47e736:_0x47e736['tag']===_0x4fb3d9(0x1f6)&&(!((_0x9f0345=_0x47e736[_0x4fb3d9(0x46d)])===null||_0x9f0345===void 0x0)&&_0x9f0345[_0x4fb3d9(0x430)])?_0x55a227(_0x55a227({},_0x47e736),{'children':_0x47e736[_0x4fb3d9(0x46d)][_0x4fb3d9(0x4db)](function(_0x3a9333){const _0x3a37a3=_0x4fb3d9;return typeof _0x3a9333['attrs']['id']==_0x3a37a3(0x1a8)&&_0x575e00&&_0x575e00[_0x3a37a3(0x39a)](_0x3a9333[_0x3a37a3(0x252)]['id'])>-0x1?_0x55a227(_0x55a227({},_0x3a9333),{'attrs':_0x55a227(_0x55a227({},_0x3a9333['attrs']),{'id':_0x3a9333['attrs']['id']+_0x249593[_0x3a37a3(0x308)]})}):_0x3a9333;})}):_0x47e736;}function _0x296f64(){const _0x4fb737=_0x228849;return Math[_0x4fb737(0x14c)]()[_0x4fb737(0x31a)](0x24)['substring'](0x2,0x8);}_0x45b96a[_0x228849(0x4e3)]=_0x228849(0x13d);var _0x1cacce={'tag':_0x228849(0x17c),'attrs':{'fill':_0x228849(0x3ae),'viewBox':_0x228849(0x3b4),'width':_0x228849(0x245),'height':_0x228849(0x245)},'children':[{'tag':'g','attrs':{'clipPath':_0x228849(0x31f)},'children':[{'tag':'path','attrs':{'stroke':_0x228849(0x4b9),'d':_0x228849(0x37e),'strokeLinecap':_0x228849(0x314),'strokeLinejoin':_0x228849(0x314),'strokeWidth':1.2}}]},{'tag':_0x228849(0x1f6),'attrs':{},'children':[{'tag':_0x228849(0x1b8),'attrs':{'id':_0x228849(0x221)},'children':[{'tag':_0x228849(0x2d2),'attrs':{'fill':_0x228849(0x370),'d':_0x228849(0x3ba)}}]}]}],'defIds':['off-line-single_clip0_910_343']},_0x153d57=_0x53ebe1[_0x228849(0x235)](function(_0x5726b6,_0x3051ee){const _0x192473=_0x228849;return _0x53ebe1[_0x192473(0x436)](_0x45b96a,Object[_0x192473(0x2fb)]({},_0x5726b6,{'id':'off-line-single','ref':_0x3051ee,'icon':_0x1cacce}));});_0x153d57['displayName']='OffLineSingle';var _0x27b51d={'tag':'svg','attrs':{'fill':_0x228849(0x3ae),'viewBox':_0x228849(0x343),'width':_0x228849(0x245),'height':_0x228849(0x245)},'children':[{'tag':'g','attrs':{'clipPath':_0x228849(0x4b0)},'children':[{'tag':'path','attrs':{'stroke':_0x228849(0x4b9),'d':_0x228849(0x466),'strokeLinecap':_0x228849(0x314),'strokeLinejoin':_0x228849(0x314),'strokeWidth':1.2}}]},{'tag':_0x228849(0x1f6),'attrs':{},'children':[{'tag':_0x228849(0x1b8),'attrs':{'id':'on-line-single_clip0_910_349'},'children':[{'tag':_0x228849(0x2d2),'attrs':{'fill':_0x228849(0x370),'d':_0x228849(0x3ba),'transform':_0x228849(0x349)}}]}]}],'defIds':[_0x228849(0x469)]},_0x5d5fb5=_0x53ebe1[_0x228849(0x235)](function(_0x336a3c,_0x49bfba){const _0x103179=_0x228849;return _0x53ebe1[_0x103179(0x436)](_0x45b96a,Object[_0x103179(0x2fb)]({},_0x336a3c,{'id':_0x103179(0x404),'ref':_0x49bfba,'icon':_0x27b51d}));});_0x5d5fb5[_0x228849(0x4e3)]=_0x228849(0x3ea);const _0x4f39b2={'onlineStatusIcon':_0x228849(0x49e),'onlineStatusTitle':_0x228849(0x3cd),'onlineStatus':_0x228849(0x421),'online':_0x228849(0x3a5),'offline':_0x228849(0x167)};function _0x2a03b0(_0x49fda4){const _0x34ed16=_0x228849;switch(_0x49fda4){case _0x4577df['OFFLINE']:return _0x34ed16(0x4b2);case _0x4577df['CONFLICT']:return _0x34ed16(0x264);case _0x4577df[_0x34ed16(0x3d5)]:return _0x34ed16(0x426);case _0x4577df[_0x34ed16(0x4e8)]:return'collabStatus.notCollab';case _0x4577df[_0x34ed16(0x44f)]:case _0x4577df[_0x34ed16(0x1b3)]:case _0x4577df[_0x34ed16(0x19c)]:return _0x34ed16(0x28d);case _0x4577df['SYNCED']:return'collabStatus.synced';}}function _0x10b395(_0x4394da){const _0x17dfe5=_0x228849,{status$:_0x2e943b}=_0x4394da,_0x17bd3f=_0x15005b[_0x17dfe5(0x43a)](_0x2e943b,_0x4577df[_0x17dfe5(0x4e8)]),_0x3a6f8b=_0x3c1409[_0x17dfe5(0x12d)](_0x226a7e[_0x17dfe5(0x355)]),_0x5dff16=_0x17bd3f!==_0x4577df[_0x17dfe5(0x26d)],_0x3ed565=_0x3a6f8b['t'](_0x2a03b0(_0x17bd3f)),_0x5024ff=_0xb8caad(_0x4f39b2[_0x17dfe5(0x3d4)],{[_0x4f39b2[_0x17dfe5(0x4cd)]]:_0x5dff16,[_0x4f39b2[_0x17dfe5(0x297)]]:!_0x5dff16}),_0x1e25ca=_0x5dff16?_0x53ebe1[_0x17dfe5(0x436)](_0x5d5fb5,null):_0x53ebe1['createElement'](_0x153d57,null);return _0x53ebe1[_0x17dfe5(0x436)](_0x17dfe5(0x4af),{'className':_0x5024ff},_0x53ebe1[_0x17dfe5(0x436)]('div',{'className':_0x4f39b2[_0x17dfe5(0x1b0)]},_0x1e25ca),_0x53ebe1['createElement'](_0x17dfe5(0x4af),{'className':_0x4f39b2[_0x17dfe5(0x19f)]},_0x3ed565));}var _0x3574b5=Object['defineProperty'],_0x1acfd1=Object[_0x228849(0x1b4)],_0x165386=(_0x2b37db,_0x5ed972,_0x2f7e87,_0x34a6ad)=>{for(var _0x10c5fd=_0x34a6ad>0x1?void 0x0:_0x34a6ad?_0x1acfd1(_0x5ed972,_0x2f7e87):_0x5ed972,_0x2e3c15=_0x2b37db['length']-0x1,_0x597063;_0x2e3c15>=0x0;_0x2e3c15--)(_0x597063=_0x2b37db[_0x2e3c15])&&(_0x10c5fd=(_0x34a6ad?_0x597063(_0x5ed972,_0x2f7e87,_0x10c5fd):_0x597063(_0x10c5fd))||_0x10c5fd);return _0x34a6ad&&_0x10c5fd&&_0x3574b5(_0x5ed972,_0x2f7e87,_0x10c5fd),_0x10c5fd;},_0x16193c=(_0x4affc0,_0x43f8ec)=>(_0x8a5b98,_0x3318ff)=>_0x43f8ec(_0x8a5b98,_0x3318ff,_0x4affc0);_0x431c6f['DesktopCollaborationStatusDisplayController']=class extends _0x226a7e[_0x228849(0x484)]{constructor(_0x3b2da7,_0x3fef30,_0xe46040,_0x442d96){const _0x5e2f6b=_0x228849;super(),_0xaa2177(this,_0x5e2f6b(0x3ee),new _0x4e5e3f[(_0x5e2f6b(0x2e7))](_0x4577df['NOT_COLLAB'])),(this[_0x5e2f6b(0x1ad)]=_0x3b2da7,this[_0x5e2f6b(0x3d6)]=_0x3fef30,this[_0x5e2f6b(0x28b)]=_0xe46040,this[_0x5e2f6b(0x318)]=_0x442d96,this[_0x5e2f6b(0x4d0)](),this['_initStatusListener']());}[_0x228849(0x4d0)](){const _0x1bcdae=_0x228849;this[_0x1bcdae(0x231)](this[_0x1bcdae(0x3d6)][_0x1bcdae(0x3fb)](_0x15005b[_0x1bcdae(0x31e)][_0x1bcdae(0x191)],()=>_0x3c1409[_0x1bcdae(0x33a)](_0x20ec41({'status$':this['_status$'][_0x1bcdae(0x1fe)]()}),this[_0x1bcdae(0x28b)])));}[_0x228849(0x387)](){const _0xf467f5=_0x228849;this[_0xf467f5(0x231)](_0x226a7e['toDisposable'](this[_0xf467f5(0x1ad)][_0xf467f5(0x1c0)][_0xf467f5(0x450)](_0x4e5e3f['switchMap'](()=>{const _0x14a312=_0xf467f5,_0x1e2c8f=this[_0x14a312(0x1ad)]['getFocusedUnit']();return _0x1e2c8f?this[_0x14a312(0x318)][_0x14a312(0x40d)](_0x1e2c8f[_0x14a312(0x2d1)]()):_0x4e5e3f['of'](null);}),_0x4e5e3f['switchMap'](_0xa31bc0=>_0xa31bc0?_0xa31bc0[_0xf467f5(0x168)]:_0x4e5e3f['of'](_0x4577df['NOT_COLLAB'])))[_0xf467f5(0x22c)](_0x5e7fe5=>{const _0x324dd0=_0xf467f5;this[_0x324dd0(0x3ee)][_0x324dd0(0x488)](_0x5e7fe5);})));}},_0x431c6f[_0x228849(0x422)]=_0x165386([_0x226a7e[_0x228849(0x4f0)](_0x226a7e[_0x228849(0x179)][_0x228849(0x31d)],_0x431c6f[_0x228849(0x422)]),_0x16193c(0x0,_0x226a7e['IUniverInstanceService']),_0x16193c(0x1,_0x15005b[_0x228849(0x21a)]),_0x16193c(0x2,_0x49bc9[_0x228849(0x31c)](_0x49bc9[_0x228849(0x36c)])),_0x16193c(0x3,_0x49bc9[_0x228849(0x31c)](_0x431c6f[_0x228849(0x2cb)]))],_0x431c6f[_0x228849(0x422)]);function _0x20ec41(_0xe67217){const {status$:_0x4a4d0b}=_0xe67217;return function(){const _0x4a4755=_0x572c;return _0x53ebe1[_0x4a4755(0x436)](_0x10b395,{'status$':_0x4a4d0b});};}const _0x445d9f=_0x49bc9[_0x228849(0x175)](_0x228849(0x2df));var _0x5dc4d8=Object[_0x228849(0x1fc)],_0x5226f4=Object[_0x228849(0x1b4)],_0x5bdb34=(_0x3c1dbf,_0x3ec1bd,_0x42dcd7,_0x33cca7)=>{const _0x3509d8=_0x228849;for(var _0x2bc739=_0x33cca7>0x1?void 0x0:_0x33cca7?_0x5226f4(_0x3ec1bd,_0x42dcd7):_0x3ec1bd,_0x2d4220=_0x3c1dbf[_0x3509d8(0x430)]-0x1,_0x1fa549;_0x2d4220>=0x0;_0x2d4220--)(_0x1fa549=_0x3c1dbf[_0x2d4220])&&(_0x2bc739=(_0x33cca7?_0x1fa549(_0x3ec1bd,_0x42dcd7,_0x2bc739):_0x1fa549(_0x2bc739))||_0x2bc739);return _0x33cca7&&_0x2bc739&&_0x5dc4d8(_0x3ec1bd,_0x42dcd7,_0x2bc739),_0x2bc739;},_0x1baa29=(_0x344342,_0x5bbb33)=>(_0x47fc9c,_0x40f1b5)=>_0x5bbb33(_0x47fc9c,_0x40f1b5,_0x344342);_0x431c6f['DataLoaderController']=class extends _0x226a7e[_0x228849(0x2ac)]{constructor(_0x27ec9c,_0x1b712e,_0x530a33,_0x533e12,_0x332585,_0x4b5348){const _0x4f5162=_0x228849;super(),this[_0x4f5162(0x2a4)]=_0x27ec9c,this[_0x4f5162(0x464)]=_0x1b712e,this['_commandService']=_0x530a33,this[_0x4f5162(0x3ef)]=_0x533e12,this[_0x4f5162(0x4d6)]=_0x332585,_0x4b5348?_0x4b5348==null||_0x4b5348[_0x4f5162(0x358)]()[_0x4f5162(0x1ae)](()=>this['_init']()):(this['_logService'][_0x4f5162(0x434)](_0x4f5162(0x40e),_0x4f5162(0x2b2)),this[_0x4f5162(0x285)]());}async[_0x228849(0x285)](){const _0x3b11bc=_0x228849,_0x36e5a6=this[_0x3b11bc(0x2a4)][_0x3b11bc(0x1ac)](_0x3b11bc(0x43b)),_0x19c3a1=this[_0x3b11bc(0x2a4)]['getParam'](_0x3b11bc(0x354));if(!_0x36e5a6||!_0x19c3a1){this['_logService'][_0x3b11bc(0x434)]('[DataLoaderController]',_0x3b11bc(0x145));return;}switch(Number(_0x19c3a1)){case _0xf0e06f[_0x3b11bc(0x390)]:{const _0x3e82f6=await this[_0x3b11bc(0x2e2)](_0x36e5a6);this['_setupSubUnitSync'](_0x3e82f6);break;}case _0xf0e06f['UNIVER_DOC']:{await this[_0x3b11bc(0x316)](_0x36e5a6);break;}default:{this[_0x3b11bc(0x464)][_0x3b11bc(0x24e)](_0x3b11bc(0x40e),_0x3b11bc(0x4e7));break;}}}async['_setupSubUnitSync'](_0x2f0498){const _0x45945d=_0x228849;await this[_0x45945d(0x438)](_0x2f0498),_0x2f0498[_0x45945d(0x2a7)]['pipe'](_0x4e5e3f[_0x45945d(0x2e4)](this[_0x45945d(0x1ec)]))[_0x45945d(0x22c)](_0x5d96f2=>{const _0x4781dd=_0x45945d;_0x5d96f2&&this[_0x4781dd(0x2c2)](_0x5d96f2);}),this[_0x45945d(0x2a4)][_0x45945d(0x1d2)][_0x45945d(0x450)](_0x4e5e3f['takeUntil'](this[_0x45945d(0x1ec)]))[_0x45945d(0x22c)](()=>this['_updateSubUnitFromURLParams'](_0x2f0498));}[_0x228849(0x2c2)](_0x2b7dba,_0x5139ba=!0x1){const _0x2628ea=_0x228849,_0x1c23b5=this[_0x2628ea(0x2a4)]['getParam'](_0x2628ea(0x288));_0x2b7dba[_0x2628ea(0x1a6)]()!==_0x1c23b5&&this[_0x2628ea(0x2a4)]['setParam'](_0x2628ea(0x288),_0x2b7dba[_0x2628ea(0x1a6)](),_0x5139ba);}async[_0x228849(0x438)](_0x1eb3c5){const _0x5e52d2=_0x228849,_0x41e33e=this[_0x5e52d2(0x2a4)][_0x5e52d2(0x1ac)](_0x5e52d2(0x288));if(!_0x41e33e||!_0x1eb3c5[_0x5e52d2(0x140)](_0x41e33e)){this[_0x5e52d2(0x2c2)](_0x1eb3c5[_0x5e52d2(0x4a3)](),!0x0);return;}_0x1eb3c5[_0x5e52d2(0x4a3)]()[_0x5e52d2(0x1a6)]()!==_0x41e33e&&await this[_0x5e52d2(0x4b6)][_0x5e52d2(0x12c)](_0x3acf4c[_0x5e52d2(0x2dc)]['id'],{'unitId':_0x1eb3c5['getUnitId'](),'subUnitId':_0x41e33e});}async[_0x228849(0x2e2)](_0x446d35){const _0x242ae0=_0x228849;let _0x18cb66=0x0;const _0x329041=await this[_0x242ae0(0x3ef)][_0x242ae0(0x33c)](_0x446d35);return _0x329041&&(_0x329041[_0x242ae0(0x27a)]||_0x329041[_0x242ae0(0x357)][_0x242ae0(0x430)]!==0x0)&&(_0x18cb66=_0x329041['rev']),_0x18cb66===0x0&&this[_0x242ae0(0x464)][_0x242ae0(0x434)](_0x242ae0(0x40e),_0x242ae0(0x1ef)),this[_0x242ae0(0x4d6)]['loadSheet'](_0x446d35,_0x18cb66);}async['_loadDoc'](_0x4954c7){const _0x410f53=_0x228849;let _0x717872=0x0;const _0x464787=await this['_localCacheService']['loadOfflineData'](_0x4954c7);return _0x464787&&(_0x464787[_0x410f53(0x27a)]||_0x464787[_0x410f53(0x357)][_0x410f53(0x430)]!==0x0)&&(_0x717872=_0x464787[_0x410f53(0x43d)]),_0x717872===0x0&&this[_0x410f53(0x464)][_0x410f53(0x434)]('[DataLoaderController]',_0x410f53(0x1ef)),this[_0x410f53(0x4d6)]['loadDoc'](_0x4954c7,_0x717872);}},_0x431c6f['DataLoaderController']=_0x5bdb34([_0x226a7e['OnLifecycle'](_0x226a7e['LifecycleStages']['Starting'],_0x431c6f['DataLoaderController']),_0x1baa29(0x0,_0x445d9f),_0x1baa29(0x1,_0x226a7e['ILogService']),_0x1baa29(0x2,_0x226a7e[_0x228849(0x48f)]),_0x1baa29(0x3,_0x49bc9['Inject'](_0x431c6f[_0x228849(0x361)])),_0x1baa29(0x4,_0x49bc9['Inject'](_0x1e8c75[_0x228849(0x35e)])),_0x1baa29(0x5,_0x49bc9[_0x228849(0x195)](_0x5cea30['IRemoteInstanceService']))],_0x431c6f[_0x228849(0x276)]);var _0xa1ed34=Object[_0x228849(0x1fc)],_0x2e14a9=Object[_0x228849(0x1b4)],_0x392950=(_0x474cef,_0x371d18,_0xdf4b14,_0x31c5f4)=>{const _0x2b111e=_0x228849;for(var _0x1d4622=_0x31c5f4>0x1?void 0x0:_0x31c5f4?_0x2e14a9(_0x371d18,_0xdf4b14):_0x371d18,_0x3c5f4c=_0x474cef[_0x2b111e(0x430)]-0x1,_0x22faa3;_0x3c5f4c>=0x0;_0x3c5f4c--)(_0x22faa3=_0x474cef[_0x3c5f4c])&&(_0x1d4622=(_0x31c5f4?_0x22faa3(_0x371d18,_0xdf4b14,_0x1d4622):_0x22faa3(_0x1d4622))||_0x1d4622);return _0x31c5f4&&_0x1d4622&&_0xa1ed34(_0x371d18,_0xdf4b14,_0x1d4622),_0x1d4622;},_0xb3d37c=(_0x55e80d,_0x6959dd)=>(_0x1f7d22,_0x37294a)=>_0x6959dd(_0x1f7d22,_0x37294a,_0x55e80d);const _0x2e1ac0='DEFAULT_FILE_NAME',_0xec1139=_0x228849(0x1ab);let _0x46b6ae=class extends _0x226a7e[_0x228849(0x484)]{constructor(_0x4b7407,_0x4d92f5){const _0x46d9bf=_0x228849;super(),this[_0x46d9bf(0x1ad)]=_0x4b7407,this[_0x46d9bf(0x12b)]=_0x4d92f5,this[_0x46d9bf(0x285)]();}[_0x228849(0x285)](){const _0x180346=_0x228849;this[_0x180346(0x231)](_0x226a7e[_0x180346(0x14b)](this[_0x180346(0x1ad)]['focused$'][_0x180346(0x22c)](()=>{const _0x5535b0=_0x180346;var _0x12a967;const _0x4e9b5f=this[_0x5535b0(0x1ad)][_0x5535b0(0x43f)]();let _0x17bb73=(_0x12a967=this[_0x5535b0(0x12b)][_0x5535b0(0x176)](_0x2e1ac0))!=null?_0x12a967:_0xec1139;_0x4e9b5f instanceof _0x226a7e[_0x5535b0(0x131)]&&(_0x17bb73=_0x4e9b5f[_0x5535b0(0x268)]),document['title']=_0x17bb73;})));}};_0x46b6ae=_0x392950([_0x226a7e[_0x228849(0x4f0)](_0x226a7e[_0x228849(0x179)]['Ready'],_0x46b6ae),_0xb3d37c(0x0,_0x226a7e['IUniverInstanceService']),_0xb3d37c(0x1,_0x226a7e['IConfigService'])],_0x46b6ae);var _0x3ddb2b=Object[_0x228849(0x1fc)],_0x14c7b8=Object[_0x228849(0x1b4)],_0x32d0cd=(_0x3b7718,_0x479dde,_0x42e135,_0x46492c)=>{const _0x2d5bec=_0x228849;for(var _0xc4a6e5=_0x46492c>0x1?void 0x0:_0x46492c?_0x14c7b8(_0x479dde,_0x42e135):_0x479dde,_0x19b262=_0x3b7718[_0x2d5bec(0x430)]-0x1,_0x57a509;_0x19b262>=0x0;_0x19b262--)(_0x57a509=_0x3b7718[_0x19b262])&&(_0xc4a6e5=(_0x46492c?_0x57a509(_0x479dde,_0x42e135,_0xc4a6e5):_0x57a509(_0xc4a6e5))||_0xc4a6e5);return _0x46492c&&_0xc4a6e5&&_0x3ddb2b(_0x479dde,_0x42e135,_0xc4a6e5),_0xc4a6e5;},_0x368dde=(_0x7676c8,_0x8d6834)=>(_0x4e6051,_0x3d8429)=>_0x8d6834(_0x4e6051,_0x3d8429,_0x7676c8);let _0x5b8358=class{constructor(_0x158854,_0x86da64){const _0x5c492d=_0x228849;this[_0x5c492d(0x12b)]=_0x158854,this[_0x5c492d(0x412)]=_0x86da64;}async[_0x228849(0x4ae)](_0x319fc0,_0x4db211){const _0x3f9a10=_0x228849;var _0x47e176;const {unitID:_0x609245,type:_0x4de80f,revision:_0x396da3=0x0}=_0x4db211,_0x54b4c8=this[_0x3f9a10(0x16e)]()+'/'+_0x4de80f+_0x3f9a10(0x137)+_0x609245+_0x3f9a10(0x3d1)+(_0x396da3===0x1?0x0:_0x396da3),_0x36d0cf=(await this['_httpService'][_0x3f9a10(0x24c)](_0x54b4c8))[_0x3f9a10(0x161)],_0x74c8d1=(_0x47e176=_0x36d0cf[_0x3f9a10(0x3ed)])==null?void 0x0:_0x47e176[_0x3f9a10(0x46e)];if(_0x74c8d1){const _0x32fd02=_0x74c8d1==null?void 0x0:_0x74c8d1['originalMeta'],_0x1458d4=_0x226a7e[_0x3f9a10(0x467)]['encode'](_0x226a7e[_0x3f9a10(0x214)](_0x32fd02));_0x74c8d1['originalMeta']=_0x1458d4,Object['entries'](_0x74c8d1[_0x3f9a10(0x1cf)])[_0x3f9a10(0x3ad)](([,_0x391ef1])=>{const _0x1ba697=_0x3f9a10,_0x491bcd=_0x391ef1[_0x1ba697(0x21c)],_0x5ce211=_0x226a7e[_0x1ba697(0x467)][_0x1ba697(0x319)](_0x226a7e[_0x1ba697(0x214)](_0x491bcd));_0x391ef1['originalMeta']=_0x5ce211;});}return _0x36d0cf;}async[_0x228849(0x4be)](_0x5bc46e,_0x258a96){const _0x537453=_0x228849,{unitID:_0x29e896,type:_0x2bc4cb,blockID:_0x286bbd}=_0x258a96,_0x4aa6a3=this['_getAPIPrefix']()+'/'+_0x2bc4cb+_0x537453(0x137)+_0x29e896+_0x537453(0x246)+_0x286bbd;return(await this[_0x537453(0x412)][_0x537453(0x24c)](_0x4aa6a3))[_0x537453(0x161)];}async['fetchMissingChangesets'](_0x4dfd90,_0x3cb5bd){const _0x36a1df=_0x228849,{unitID:_0x328906,type:_0x962ad4,from:_0x1e0f7d,to:_0x2884f2}=_0x3cb5bd,_0x1982c1=this[_0x36a1df(0x431)]()+'/'+_0x962ad4+_0x36a1df(0x137)+_0x328906+'/fetchmissing?from='+_0x1e0f7d+_0x36a1df(0x16f)+_0x2884f2;return(await this['_httpService']['get'](_0x1982c1))[_0x36a1df(0x161)];}[_0x228849(0x16e)](){const _0x13e9ae=_0x228849;var _0x378cf2;return(_0x378cf2=this[_0x13e9ae(0x12b)][_0x13e9ae(0x176)](_0x2e8975))!=null?_0x378cf2:this[_0x13e9ae(0x431)]();}[_0x228849(0x431)](){const _0x151f8c=_0x228849;var _0x132d46;return(_0x132d46=this[_0x151f8c(0x12b)][_0x151f8c(0x176)](_0x299079))!=null?_0x132d46:_0x22538d;}async[_0x228849(0x23a)](_0x2a7c73,_0x9a29fe){const _0x56d0a9=_0x228849,_0x58acbf='/universer-api/snapshot/'+_0x9a29fe[_0x56d0a9(0x354)]+_0x56d0a9(0x137)+_0x9a29fe[_0x56d0a9(0x340)]+'/resources';return(await this[_0x56d0a9(0x412)]['get'](_0x58acbf,{'params':{'resourceId':JSON[_0x56d0a9(0x1d4)](_0x9a29fe[_0x56d0a9(0x407)])}}))[_0x56d0a9(0x161)];}['saveSnapshot'](){const _0x2142df=_0x228849;throw new Error(_0x2142df(0x37f));}[_0x228849(0x4fb)](){const _0x3d6b04=_0x228849;throw new Error(_0x3d6b04(0x37f));}[_0x228849(0x3fc)](){const _0x1a2a54=_0x228849;throw new Error(_0x1a2a54(0x37f));}};_0x5b8358=_0x32d0cd([_0x368dde(0x0,_0x226a7e[_0x228849(0x26f)]),_0x368dde(0x1,_0x49bc9[_0x228849(0x31c)](_0x353e30['HTTPService']))],_0x5b8358);var _0xd63962=Object[_0x228849(0x1fc)],_0xf263cc=Object[_0x228849(0x1b4)],_0x4a6f2b=(_0x4ed324,_0x496634,_0x470f7d,_0x201f5c)=>{const _0x3dbb5a=_0x228849;for(var _0x28f82c=_0x201f5c>0x1?void 0x0:_0x201f5c?_0xf263cc(_0x496634,_0x470f7d):_0x496634,_0x43141c=_0x4ed324[_0x3dbb5a(0x430)]-0x1,_0x1d026e;_0x43141c>=0x0;_0x43141c--)(_0x1d026e=_0x4ed324[_0x43141c])&&(_0x28f82c=(_0x201f5c?_0x1d026e(_0x496634,_0x470f7d,_0x28f82c):_0x1d026e(_0x28f82c))||_0x28f82c);return _0x201f5c&&_0x28f82c&&_0xd63962(_0x496634,_0x470f7d,_0x28f82c),_0x28f82c;},_0x2340e7=(_0x4ae0d3,_0x52e4a8)=>(_0x1d4fee,_0x3841d8)=>_0x52e4a8(_0x1d4fee,_0x3841d8,_0x4ae0d3);let _0x370e1f=class extends _0x226a7e[_0x228849(0x291)]{constructor(_0x562474,_0x5bada9,_0x255f59,_0x1c6f94,_0x1550a4){const _0x28f936=_0x228849;super(_0x562474,_0x5bada9,_0x255f59),this[_0x28f936(0x1b9)]=_0x1c6f94,this[_0x28f936(0x464)]=_0x1550a4;}[_0x228849(0x4f4)](_0x4f5608,_0x1a725c){const _0x2389a7=_0x228849,_0x47b117=this['_getUndoStack'](_0x4f5608);if(_0x47b117)try{const _0x49742a=this[_0x2389a7(0x1a3)](_0x47b117,_0x1a725c);this[_0x2389a7(0x2bd)](_0x4f5608,_0x49742a);}catch(_0x1cbd9a){this[_0x2389a7(0x464)][_0x2389a7(0x24e)](_0x2389a7(0x284),_0x1cbd9a),this[_0x2389a7(0x458)](_0x4f5608);}const _0x44751b=this[_0x2389a7(0x4d4)](_0x4f5608);if(_0x44751b)try{const _0x27dbc6=this['_transformStack'](_0x44751b,_0x1a725c);this[_0x2389a7(0x49d)](_0x4f5608,_0x27dbc6);}catch(_0x5e81eb){this[_0x2389a7(0x464)][_0x2389a7(0x24e)](_0x5e81eb),this[_0x2389a7(0x209)](_0x4f5608);}}[_0x228849(0x458)](_0x4b4a55){const _0x33115f=_0x228849,_0x520c40=this[_0x33115f(0x19a)](_0x4b4a55);_0x520c40&&(_0x520c40[_0x33115f(0x430)]=0x0,this[_0x33115f(0x1c2)]());}['_clearRedo'](_0x32464d){const _0x5606c1=_0x228849,_0x3d0c0b=this[_0x5606c1(0x4d4)](_0x32464d);_0x3d0c0b&&(_0x3d0c0b['length']=0x0,this[_0x5606c1(0x1c2)]());}[_0x228849(0x2bd)](_0x4994c6,_0x5adf79){const _0x5f2bfa=_0x228849;this[_0x5f2bfa(0x36b)]['set'](_0x4994c6,_0x5adf79),this[_0x5f2bfa(0x1c2)]();}[_0x228849(0x49d)](_0x4d99c4,_0x3d1ec8){const _0x87e07f=_0x228849;this[_0x87e07f(0x36f)][_0x87e07f(0x4f3)](_0x4d99c4,_0x3d1ec8),this['_updateStatus']();}[_0x228849(0x1a3)](_0x5207e2,_0x5ca2ed){const _0x115c8d=_0x228849,_0x32856b=[];let _0x20b436=_0x5ca2ed,_0x1227e9=_0x5ca2ed;for(let _0x46178a=_0x5207e2[_0x115c8d(0x430)]-0x1;_0x46178a>=0x0;_0x46178a--){const {unitID:_0x421c7c,undoMutations:_0x3e1e2a,redoMutations:_0x2eee45}=_0x5207e2[_0x46178a],_0x16411a=this[_0x115c8d(0x1b9)][_0x115c8d(0x2dd)](_0x20b436,_0x3e1e2a),_0x1d6e61=this[_0x115c8d(0x1b9)][_0x115c8d(0x2dd)](_0x1227e9,_0x2eee45);if(_0x1e8c75[_0x115c8d(0x307)](_0x16411a)||_0x1e8c75['isTransformMutationsWithChangesetFailure'](_0x1d6e61)){this['_logService'][_0x115c8d(0x24e)](_0x115c8d(0x284),_0x115c8d(0x463),_0x16411a,_0x1d6e61);break;}_0x20b436=_0x16411a['c1Prime'],_0x1227e9=_0x1d6e61['c1Prime'],_0x32856b[_0x115c8d(0x4cb)]({'unitID':_0x421c7c,'undoMutations':_0x16411a[_0x115c8d(0x260)],'redoMutations':_0x1d6e61['m2Prime']});}return _0x32856b['reverse']();}};_0x370e1f=_0x4a6f2b([_0x2340e7(0x0,_0x226a7e['IUniverInstanceService']),_0x2340e7(0x1,_0x226a7e[_0x228849(0x48f)]),_0x2340e7(0x2,_0x226a7e['IContextService']),_0x2340e7(0x3,_0x1e8c75[_0x228849(0x184)]),_0x2340e7(0x4,_0x226a7e[_0x228849(0x212)])],_0x370e1f);class _0x3ceb40 extends _0x226a7e[_0x228849(0x2ac)]{constructor(){const _0x3395e1=_0x228849;super(),_0xaa2177(this,_0x3395e1(0x1d2)),this['urlChange$']=_0x4e5e3f['fromEvent'](window,_0x3395e1(0x18c))[_0x3395e1(0x450)](_0x4e5e3f[_0x3395e1(0x2e4)](this[_0x3395e1(0x1ec)]),_0x4e5e3f[_0x3395e1(0x495)](0x1),_0x4e5e3f[_0x3395e1(0x13f)](void 0x0));}[_0x228849(0x4a5)](_0xfb2a83,_0x12085d,_0xc28425=!0x1){const _0x3f4ecf=_0x228849,_0x5e7b0b=new URL(window[_0x3f4ecf(0x32c)][_0x3f4ecf(0x185)]);_0x5e7b0b[_0x3f4ecf(0x24d)]['set'](_0xfb2a83,_0x12085d),_0xc28425?window[_0x3f4ecf(0x241)]['replaceState']('','',_0x5e7b0b[_0x3f4ecf(0x31a)]()):window[_0x3f4ecf(0x241)][_0x3f4ecf(0x1df)]('','',_0x5e7b0b[_0x3f4ecf(0x31a)]());}[_0x228849(0x1de)](_0x36b8ca,_0x338cea=!0x1){const _0x429b9b=_0x228849,_0x47f306=new URL(window[_0x429b9b(0x32c)][_0x429b9b(0x185)]);_0x47f306[_0x429b9b(0x24d)][_0x429b9b(0x2b1)](_0x36b8ca),_0x338cea?window[_0x429b9b(0x241)]['replaceState']('','',_0x47f306[_0x429b9b(0x31a)]()):window[_0x429b9b(0x241)][_0x429b9b(0x1df)]('','',_0x47f306[_0x429b9b(0x31a)]());}[_0x228849(0x1ac)](_0x4dd469){const _0x45ab59=_0x228849;var _0x5c54f8;return(_0x5c54f8=new URL(window[_0x45ab59(0x32c)][_0x45ab59(0x185)])['searchParams']['get'](_0x4dd469))!=null?_0x5c54f8:void 0x0;}}const _0x122028=_0x228849(0x459),_0x29f453=_0x228849(0x4d2),_0x50865c=0x6,_0x1d604b=1.5,_0x1d37d8=0x4,_0x270890=1.5,_0x104e47='rgba(255,\x20255,\x20255,\x200.01)';class _0x2cd52a{constructor(_0x9d861b,_0x33f539,_0x216b39,_0x33aec8){const _0xe7b4c4=_0x228849;_0xaa2177(this,'_shapes',[]),_0xaa2177(this,'_anchor',null),_0xaa2177(this,_0xe7b4c4(0x26b),null),_0xaa2177(this,_0xe7b4c4(0x295),null),_0xaa2177(this,_0xe7b4c4(0x491),null),_0xaa2177(this,_0xe7b4c4(0x432),null),(this[_0xe7b4c4(0x263)]=_0x9d861b,this[_0xe7b4c4(0x2af)]=_0x33f539,this[_0xe7b4c4(0x152)]=_0x216b39,this[_0xe7b4c4(0x2a8)]=_0x33aec8,this[_0xe7b4c4(0x17b)]());}set[_0x228849(0x375)](_0x17ffc3){const _0x252a41=_0x228849;_0x17ffc3?(this[_0x252a41(0x295)]&&this[_0x252a41(0x295)][_0x252a41(0x2a1)](),this[_0x252a41(0x26b)]&&this[_0x252a41(0x26b)]['show']()):(this[_0x252a41(0x295)]&&this[_0x252a41(0x295)][_0x252a41(0x333)](),this[_0x252a41(0x26b)]&&this[_0x252a41(0x26b)][_0x252a41(0x2a1)]());}[_0x228849(0x485)](){const _0xbc702=_0x228849;for(const _0x5acbd2 of this[_0xbc702(0x4da)])_0x5acbd2[_0xbc702(0x485)]();this['_textBubble']&&this[_0xbc702(0x26b)][_0xbc702(0x485)](),this[_0xbc702(0x295)]&&this[_0xbc702(0x295)][_0xbc702(0x485)](),this[_0xbc702(0x4e0)]&&this['_anchor'][_0xbc702(0x485)](),this['_eventUnsubscribe']&&this[_0xbc702(0x432)]();}['_render'](){const _0x4aaffd=_0x228849,{_docSkeleton:_0x506167,_document:_0x5c519f}=this,{color:_0x51e022,name:_0x24c42d,ranges:_0x2441f5}=this[_0x4aaffd(0x263)],_0x3505dd=_0x5c519f['getOffsetConfig'](),{docsLeft:_0x4913b0,docsTop:_0x1dc4af}=_0x3505dd,_0x274b2a=new _0x5b613a[(_0x4aaffd(0x134))](_0x3505dd,_0x506167);for(const {startOffset:_0x1fdc14,endOffset:_0xcdd81c,collapsed:_0xa57e24,isActive:_0x35544a}of _0x2441f5){const _0x521191=_0x506167[_0x4aaffd(0x200)](_0x1fdc14),_0x1b4ce3=_0x506167[_0x4aaffd(0x200)](_0xcdd81c);if(_0x35544a){const {contentBoxPointGroup:_0x269a49}=_0x274b2a[_0x4aaffd(0x475)](_0x1b4ce3,_0x1b4ce3);if(_0x269a49[_0x4aaffd(0x430)]===0x0)continue;this[_0x4aaffd(0x2b9)](_0x51e022,_0x269a49,_0x4913b0,_0x1dc4af,_0x24c42d),this[_0x4aaffd(0x432)]=this['_handleHover']();}if(!_0xa57e24){const {contentBoxPointGroup:_0x1e9f9d}=_0x274b2a['getRangePointData'](_0x521191,_0x1b4ce3);if(_0x1e9f9d[_0x4aaffd(0x430)]===0x0)continue;this[_0x4aaffd(0x300)](_0x51e022,_0x1e9f9d,_0x4913b0,_0x1dc4af);}}}['_drawAnchor'](_0x543e44,_0x29e5c9,_0x513fc7,_0x30c3c3,_0x35c8fc){const _0x1fe2d8=_0x228849,_0x253648=this[_0x1fe2d8(0x435)](_0x29e5c9),{left:_0x3178f6,top:_0x70b750,height:_0x366405}=_0x253648,_0x2371bf=this[_0x1fe2d8(0x292)](),_0x84328b=_0x270890/_0x2371bf,_0x24aabe=new _0x5b613a['Rect'](_0x122028+_0x226a7e[_0x1fe2d8(0x144)][_0x1fe2d8(0x34b)](_0x50865c),{'left':_0x3178f6+_0x513fc7-_0x84328b,'top':_0x70b750+_0x30c3c3,'height':_0x366405,'width':_0x1d604b,'fill':_0x543e44||_0x5b613a[_0x1fe2d8(0x406)](_0x226a7e[_0x1fe2d8(0x344)][_0x1fe2d8(0x1c5)],0x0),'strokeWidth':_0x84328b,'stroke':_0x104e47,'evented':!0x0});this[_0x1fe2d8(0x4e0)]=_0x24aabe,this[_0x1fe2d8(0x2af)][_0x1fe2d8(0x43e)](_0x24aabe,_0x5b613a[_0x1fe2d8(0x4ef)]);const _0xb5e32c=new _0x5b613a[(_0x1fe2d8(0x47e))](_0x122028+_0x226a7e[_0x1fe2d8(0x144)][_0x1fe2d8(0x34b)](_0x50865c),{'left':_0x3178f6+_0x513fc7-_0x84328b,'top':_0x70b750+_0x30c3c3-_0x1d37d8/0x2,'height':_0x1d37d8,'width':_0x1d37d8,'fill':_0x543e44||_0x5b613a[_0x1fe2d8(0x406)](_0x226a7e[_0x1fe2d8(0x344)][_0x1fe2d8(0x1c5)],0x0),'strokeWidth':0x0,'stroke':_0x543e44||_0x5b613a[_0x1fe2d8(0x406)](_0x226a7e['COLORS'][_0x1fe2d8(0x1c5)],0x0),'evented':!0x1});this[_0x1fe2d8(0x295)]=_0xb5e32c,this[_0x1fe2d8(0x2af)][_0x1fe2d8(0x43e)](_0xb5e32c,_0x5b613a[_0x1fe2d8(0x4ef)]);const _0x377915=new _0x548988(_0x122028+_0x226a7e['Tools']['generateRandomId'](_0x50865c),{'left':_0x3178f6+_0x513fc7-_0x84328b,'top':_0x70b750+_0x30c3c3-_0x4a66ac,'text':_0x35c8fc,'color':_0x543e44});this[_0x1fe2d8(0x26b)]=_0x377915,this[_0x1fe2d8(0x2af)][_0x1fe2d8(0x43e)](_0x377915,_0x5b613a[_0x1fe2d8(0x4ef)]),this[_0x1fe2d8(0x375)]=!0x1;}[_0x228849(0x394)](){const _0x594bf7=_0x228849,_0x12d890=this[_0x594bf7(0x4e0)][_0x594bf7(0x2b3)]['add'](()=>{const _0x4f11d3=_0x594bf7;this[_0x4f11d3(0x375)]=!0x0;}),_0x558051=this[_0x594bf7(0x4e0)][_0x594bf7(0x302)][_0x594bf7(0x33d)](()=>{const _0x366065=_0x594bf7;this[_0x366065(0x491)]&&clearTimeout(this[_0x366065(0x491)]),this[_0x366065(0x491)]=setTimeout(()=>{const _0x2c794d=_0x366065;this[_0x2c794d(0x375)]=!0x1;},0x7d0);});return()=>{const _0x433aac=_0x594bf7;var _0x15dac4,_0x461a47;(_0x15dac4=this[_0x433aac(0x4e0)])==null||_0x15dac4[_0x433aac(0x2b3)][_0x433aac(0x169)](_0x12d890),(_0x461a47=this['_anchor'])==null||_0x461a47[_0x433aac(0x302)][_0x433aac(0x169)](_0x558051);};}['_drawRange'](_0x21ebc3,_0x4affc2,_0x3bfcfa,_0x4674c8){const _0x4a3369=_0x228849,_0x337e1d=new _0x226a7e[(_0x4a3369(0x38c))](_0x21ebc3)[_0x4a3369(0x13c)](0.2)[_0x4a3369(0x371)](),_0xa0940a=new _0x5b613a[(_0x4a3369(0x279))](_0x29f453+_0x226a7e['Tools'][_0x4a3369(0x34b)](_0x50865c),{'pointsGroup':_0x4affc2,'fill':_0x337e1d||_0x5b613a[_0x4a3369(0x406)](_0x226a7e[_0x4a3369(0x344)]['black'],0.2),'left':_0x3bfcfa,'top':_0x4674c8,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x4a3369(0x4da)][_0x4a3369(0x4cb)](_0xa0940a),this[_0x4a3369(0x2af)][_0x4a3369(0x43e)](_0xa0940a,_0x5b613a['TEXT_RANGE_LAYER_INDEX']);}['_getAnchorBounding'](_0x1fda51){const _0x59c4e5=_0x1fda51[0x0],_0x16028d=_0x59c4e5[0x0],_0x6c348d=_0x59c4e5[0x2],{x:_0x3b8bd,y:_0x45f0f0}=_0x16028d,{x:_0x20ef09,y:_0x2779d7}=_0x6c348d;return{'left':_0x3b8bd,'top':_0x45f0f0,'width':_0x20ef09-_0x3b8bd,'height':_0x2779d7-_0x45f0f0};}['_getScale'](){const _0x4f4c95=_0x228849,{scaleX:_0x63c0b8,scaleY:_0x29776a}=this[_0x4f4c95(0x2af)]['getAncestorScale']();return Math[_0x4f4c95(0x4d7)](_0x63c0b8,_0x29776a);}}var _0x243c34=Object['defineProperty'],_0x4d2a7b=Object[_0x228849(0x1b4)],_0x396f09=(_0x28c3bb,_0x4e143b,_0x3913ff,_0x583189)=>{for(var _0x133601=_0x583189>0x1?void 0x0:_0x583189?_0x4d2a7b(_0x4e143b,_0x3913ff):_0x4e143b,_0x1eae96=_0x28c3bb['length']-0x1,_0xa532a1;_0x1eae96>=0x0;_0x1eae96--)(_0xa532a1=_0x28c3bb[_0x1eae96])&&(_0x133601=(_0x583189?_0xa532a1(_0x4e143b,_0x3913ff,_0x133601):_0xa532a1(_0x133601))||_0x133601);return _0x583189&&_0x133601&&_0x243c34(_0x4e143b,_0x3913ff,_0x133601),_0x133601;},_0x4ad9b1=(_0x223e21,_0xe53e22)=>(_0x5e429e,_0x13be51)=>_0xe53e22(_0x5e429e,_0x13be51,_0x223e21);let _0x2ecdf6=class extends _0x226a7e['RxDisposable']{constructor(_0x22d61e,_0x3ee36e,_0xc1ddcd,_0x3ad7ec,_0x439e6a){const _0x4256cc=_0x228849;super(),_0xaa2177(this,_0x4256cc(0x4bb),[]),(this[_0x4256cc(0x3c2)]=_0x22d61e,this['_univerInstanceService']=_0x3ee36e,this[_0x4256cc(0x4c0)]=_0xc1ddcd,this[_0x4256cc(0x1d9)]=_0x3ad7ec,this['_themeService']=_0x439e6a,this[_0x4256cc(0x285)]());}[_0x228849(0x285)](){const _0x510255=_0x228849;this['_docSkeletonManagerService'][_0x510255(0x34d)][_0x510255(0x450)](_0x4d72f4['takeUntil'](this[_0x510255(0x1ec)]),_0x4d72f4['switchMap'](_0x22ae45=>{const _0x4808dc=_0x510255;if(_0x22ae45){const {unitId:_0x497ee2}=_0x22ae45;return _0x4e5e3f['combineLatest'](this[_0x4808dc(0x3c2)]['getCollabCursors$'](_0x497ee2),this[_0x4808dc(0x363)]['currentTheme$'])[_0x4808dc(0x450)](_0x4d72f4[_0x4808dc(0x4db)](([_0x2d0854,_0x27752d])=>({'skeleton':_0x22ae45,'cursors':[..._0x2d0854[_0x4808dc(0x2a5)]()]['flatMap'](_0x3a7f44=>({..._0x3a7f44,'color':_0x27752d[_0x3a7f44[_0x4808dc(0x4dc)]]}))})));}return _0x4e5e3f['of']({'skeleton':null,'cursors':[]});}))[_0x510255(0x22c)](({skeleton:_0x239b5e,cursors:_0x5c5e77})=>{const _0x3024c2=_0x510255;this[_0x3024c2(0x1ed)](),_0x239b5e&&this[_0x3024c2(0x154)](_0x239b5e[_0x3024c2(0x3a0)],_0x5c5e77);});}[_0x228849(0x154)](_0x130a06,_0x322d4e){const _0x3d312a=_0x228849,_0x1a6a59=this[_0x3d312a(0x1aa)]();if(_0x1a6a59==null)return;const {scene:_0x90a67a,document:_0x59ea6b}=_0x1a6a59,_0x331ec9=_0x322d4e[_0x3d312a(0x4db)](_0x31b989=>new _0x2cd52a(_0x31b989,_0x90a67a,_0x130a06,_0x59ea6b));this[_0x3d312a(0x4bb)]=_0x331ec9;}[_0x228849(0x1ed)](){const _0x3fe297=_0x228849;this[_0x3fe297(0x4bb)][_0x3fe297(0x3ad)](_0x1385cb=>_0x1385cb[_0x3fe297(0x485)]()),this[_0x3fe297(0x4bb)]=[];}[_0x228849(0x1aa)](){const _0x2a47c8=_0x228849;return _0x534040[_0x2a47c8(0x3d9)](this[_0x2a47c8(0x1ad)],this[_0x2a47c8(0x4c0)]);}};_0x2ecdf6=_0x396f09([_0x226a7e[_0x228849(0x4f0)](_0x226a7e[_0x228849(0x179)][_0x228849(0x382)],_0x2ecdf6),_0x4ad9b1(0x0,_0x49bc9[_0x228849(0x31c)](_0x1ed5eb)),_0x4ad9b1(0x1,_0x226a7e['IUniverInstanceService']),_0x4ad9b1(0x2,_0x5b613a[_0x228849(0x4ac)]),_0x4ad9b1(0x3,_0x49bc9[_0x228849(0x31c)](_0x534040['DocSkeletonManagerService'])),_0x4ad9b1(0x4,_0x49bc9[_0x228849(0x31c)](_0x226a7e[_0x228849(0x201)]))],_0x2ecdf6);var _0x57846d=Object[_0x228849(0x1fc)],_0x433746=Object[_0x228849(0x1b4)],_0x28a0b0=(_0x2e9b54,_0x197379,_0x1a6b34,_0x2d65a0)=>{for(var _0xcda98f=_0x2d65a0>0x1?void 0x0:_0x2d65a0?_0x433746(_0x197379,_0x1a6b34):_0x197379,_0x5d5252=_0x2e9b54['length']-0x1,_0x1e510b;_0x5d5252>=0x0;_0x5d5252--)(_0x1e510b=_0x2e9b54[_0x5d5252])&&(_0xcda98f=(_0x2d65a0?_0x1e510b(_0x197379,_0x1a6b34,_0xcda98f):_0x1e510b(_0xcda98f))||_0xcda98f);return _0x2d65a0&&_0xcda98f&&_0x57846d(_0x197379,_0x1a6b34,_0xcda98f),_0xcda98f;},_0x31df4c=(_0xd51e03,_0x2858a2)=>(_0x396a3a,_0xf143f5)=>_0x2858a2(_0x396a3a,_0xf143f5,_0xd51e03);let _0x36b668=class{constructor(_0x245d29,_0x256212,_0x2970ee){const _0x4ae9ad=_0x228849;this[_0x4ae9ad(0x12b)]=_0x245d29,this[_0x4ae9ad(0x412)]=_0x256212,this[_0x4ae9ad(0x173)]=_0x2970ee,this[_0x4ae9ad(0x3bd)]();}[_0x228849(0x3bd)](){const _0xeb2893=_0x228849;this[_0xeb2893(0x412)][_0xeb2893(0x293)]({'priority':0x1,'interceptor':(_0xa47f4e,_0xcb0cbf)=>_0xcb0cbf(_0xa47f4e)[_0xeb2893(0x450)](_0x4e5e3f[_0xeb2893(0x2a0)](async _0x1cc661=>{const _0x6f348a=_0xeb2893,_0x20f165=_0x1cc661;if(_0x20f165['status']===0x191&&window[_0x6f348a(0x3d7)](this[_0x6f348a(0x173)]['t'](_0x6f348a(0x14d)))){const _0x2308e3=window[_0x6f348a(0x294)](window[_0x6f348a(0x32c)]['href']);window[_0x6f348a(0x32c)][_0x6f348a(0x185)]=this[_0x6f348a(0x383)]()+'?url='+_0x2308e3;}return _0x20f165;}))});}['_getLoginPath'](){const _0x170d5e=_0x228849;var _0x2be9c1;return(_0x2be9c1=this[_0x170d5e(0x12b)][_0x170d5e(0x176)](_0x16f267))!=null?_0x2be9c1:_0x1dc009;}};_0x36b668=_0x28a0b0([_0x31df4c(0x0,_0x226a7e[_0x228849(0x26f)]),_0x31df4c(0x1,_0x49bc9[_0x228849(0x31c)](_0x353e30[_0x228849(0x26c)])),_0x31df4c(0x2,_0x49bc9[_0x228849(0x31c)](_0x226a7e[_0x228849(0x355)]))],_0x36b668);var _0x1f172d=Object['defineProperty'],_0x5a7c7e=Object[_0x228849(0x1b4)],_0x3613ca=(_0xa29005,_0x2ce608,_0x5585c3,_0x3dc39f)=>{const _0x119fa5=_0x228849;for(var _0x5dd05d=_0x3dc39f>0x1?void 0x0:_0x3dc39f?_0x5a7c7e(_0x2ce608,_0x5585c3):_0x2ce608,_0x1ebe4d=_0xa29005[_0x119fa5(0x430)]-0x1,_0x2f7e5c;_0x1ebe4d>=0x0;_0x1ebe4d--)(_0x2f7e5c=_0xa29005[_0x1ebe4d])&&(_0x5dd05d=(_0x3dc39f?_0x2f7e5c(_0x2ce608,_0x5585c3,_0x5dd05d):_0x2f7e5c(_0x5dd05d))||_0x5dd05d);return _0x3dc39f&&_0x5dd05d&&_0x1f172d(_0x2ce608,_0x5585c3,_0x5dd05d),_0x5dd05d;},_0x3d7530=(_0x21ce64,_0x66a7e8)=>(_0x4790f8,_0x2fe45a)=>_0x66a7e8(_0x4790f8,_0x2fe45a,_0x21ce64);const _0x40122f=_0x228849(0x1d7),_0x322420=_0x228849(0x225);_0x431c6f[_0x228849(0x12e)]=class{constructor(_0xc4d39f,_0x259030){const _0x5a8d20=_0x228849;this[_0x5a8d20(0x461)]=_0xc4d39f,this[_0x5a8d20(0x12b)]=_0x259030;}[_0x228849(0x35a)](){const _0x4e28cd=_0x228849;var _0x186b19;return(_0x186b19=this[_0x4e28cd(0x12b)][_0x4e28cd(0x176)](_0x40122f))!=null?_0x186b19:_0x322420;}async[_0x228849(0x2c1)](_0x1a8bf6){const _0x49263e=_0x228849,_0x10633d=this['_getAPIPrefixPath']()+'/'+_0x1a8bf6['objectType']+_0x49263e(0x336);return(await this[_0x49263e(0x461)]['post'](_0x10633d,{'body':_0x1a8bf6}))[_0x49263e(0x161)][_0x49263e(0x256)]||'';}async[_0x228849(0x41a)](_0x32223a){const _0x40536c=_0x228849,_0x323022=this[_0x40536c(0x35a)]()+'/-/object/list';return(await this[_0x40536c(0x461)][_0x40536c(0x32b)](_0x323022,{'body':_0x32223a}))[_0x40536c(0x161)]['objects'];}async[_0x228849(0x4d9)](_0x6459ed){const _0x48537d=_0x228849,_0x225fe7=this[_0x48537d(0x35a)]()+'/'+_0x6459ed[_0x48537d(0x286)]+_0x48537d(0x1a1)+_0x6459ed[_0x48537d(0x256)];await this[_0x48537d(0x461)]['put'](_0x225fe7,{'body':_0x6459ed});}async[_0x228849(0x275)](_0x1459c6){const _0x233c7d=_0x228849,_0xdc806a=this[_0x233c7d(0x35a)]()+'/'+_0x1459c6['objectType']+_0x233c7d(0x1a1)+_0x1459c6[_0x233c7d(0x256)]+'/allowed';return(await this[_0x233c7d(0x461)][_0x233c7d(0x32b)](_0xdc806a,{'body':_0x1459c6}))['body'][_0x233c7d(0x274)];}async[_0x228849(0x30d)](_0x21d22e){const _0x450c08=_0x228849,_0x940021=this[_0x450c08(0x35a)]()+'/-/object/-/batch_allowed';return(await this[_0x450c08(0x461)]['post'](_0x940021,{'body':{'requests':_0x21d22e}}))[_0x450c08(0x161)][_0x450c08(0x4fa)];}async[_0x228849(0x4a4)](_0x519386){const _0xe49bd2=_0x228849,_0x5eddb8=this['_getAPIPrefixPath']()+'/'+_0x519386[_0xe49bd2(0x286)]+_0xe49bd2(0x443),_0x5bd979=await this[_0xe49bd2(0x461)][_0xe49bd2(0x32b)](_0x5eddb8,{'body':_0x519386});return{'roles':_0x5bd979[_0xe49bd2(0x161)]['roles'],'actions':_0x5bd979['body'][_0xe49bd2(0x274)]};}async[_0x228849(0x3db)](_0x17d140){const _0x7b34ea=_0x228849,_0x451abd=this[_0x7b34ea(0x35a)]()+'/collaborator';await this['_HTTPService'][_0x7b34ea(0x2b1)](_0x451abd,{'params':{'collaboratorID':_0x17d140[_0x7b34ea(0x27e)],'objectID':_0x17d140['objectID'],'unitID':_0x17d140[_0x7b34ea(0x340)]}});}async[_0x228849(0x4fd)](_0x9330f4){const _0x2fd229=_0x228849,_0x3cd1ab=this[_0x2fd229(0x35a)]()+'/collaborator';await this['_HTTPService']['patch'](_0x3cd1ab,{'body':_0x9330f4});}async['createCollaborator'](_0x18c986){const _0x414714=_0x228849,_0x37abc1=this['_getAPIPrefixPath']()+'/collaborator';await this[_0x414714(0x461)]['post'](_0x37abc1,{'body':_0x18c986});}async['listCollaborators'](_0xc00285){const _0x5e7400=_0x228849,_0x9a1228=this[_0x5e7400(0x35a)]()+'/collaborator';return(await this[_0x5e7400(0x461)][_0x5e7400(0x24c)](_0x9a1228,{'params':{'objectID':_0xc00285['objectID'],'unitID':_0xc00285[_0x5e7400(0x340)]}}))[_0x5e7400(0x161)]['collaborators'];}async[_0x228849(0x379)](_0x333a48){const _0x4e3de1=_0x228849,_0xd97ac5=this[_0x4e3de1(0x35a)]()+'/collaborator';await this[_0x4e3de1(0x461)][_0x4e3de1(0x3b1)](_0xd97ac5,{'body':_0x333a48});}},_0x431c6f['AuthzIoHttpService']=_0x3613ca([_0x3d7530(0x0,_0x49bc9[_0x228849(0x31c)](_0x353e30['HTTPService'])),_0x3d7530(0x1,_0x49bc9[_0x228849(0x31c)](_0x226a7e['IConfigService']))],_0x431c6f[_0x228849(0x12e)]);var _0x1eed85=Object['defineProperty'],_0x64705b=Object[_0x228849(0x1b4)],_0x219850=(_0x2f932d,_0x53d78c,_0x395523,_0x34061e)=>{const _0x313f84=_0x228849;for(var _0x4ebad2=_0x34061e>0x1?void 0x0:_0x34061e?_0x64705b(_0x53d78c,_0x395523):_0x53d78c,_0x3ef363=_0x2f932d[_0x313f84(0x430)]-0x1,_0x5994bb;_0x3ef363>=0x0;_0x3ef363--)(_0x5994bb=_0x2f932d[_0x3ef363])&&(_0x4ebad2=(_0x34061e?_0x5994bb(_0x53d78c,_0x395523,_0x4ebad2):_0x5994bb(_0x4ebad2))||_0x4ebad2);return _0x34061e&&_0x4ebad2&&_0x1eed85(_0x53d78c,_0x395523,_0x4ebad2),_0x4ebad2;},_0x58c2d6=(_0x41dba0,_0x3c416e)=>(_0x4cbbb6,_0x149045)=>_0x3c416e(_0x4cbbb6,_0x149045,_0x41dba0);const _0xd1969=['image/png','image/jpeg',_0x228849(0x1a0),_0x228849(0x1a7),_0x228849(0x327)],_0x2214a7=0x5*0x400*0x400,_0x64fb6a=_0x228849(0x442),_0x38f56a=_0x228849(0x2e8),_0x51e6a2='EXCHANGE_SIGN_URL_SERVER_URL_KEY',_0x5030b1=_0x228849(0x460);let _0x3002a0=class{constructor(_0x1925c3,_0x211534){const _0x390add=_0x228849;_0xaa2177(this,_0x390add(0x21f),0x0),_0xaa2177(this,_0x390add(0x4a2),new _0x4e5e3f[(_0x390add(0x4bc))]()),_0xaa2177(this,_0x390add(0x427),this[_0x390add(0x4a2)]),_0xaa2177(this,_0x390add(0x34f),new Map()),(this[_0x390add(0x412)]=_0x1925c3,this[_0x390add(0x12b)]=_0x211534);}['setWaitCount'](_0xebc4eb){const _0x1241aa=_0x228849;this[_0x1241aa(0x21f)]=_0xebc4eb,this[_0x1241aa(0x4a2)][_0x1241aa(0x488)](_0xebc4eb);}[_0x228849(0x330)](_0x471c1b,_0x374c7a){const _0xa6eaf4=_0x228849;if(_0x374c7a===_0x57ff02[_0xa6eaf4(0x1f0)]['BASE64']){const _0x1450fd=new Image();return _0x1450fd['src']=_0x471c1b,_0x1450fd;}return this['_imageSourceCache']['get'](_0x471c1b);}[_0x228849(0x420)](_0x1f0aa0,_0x458c9e,_0x1565a8){const _0xbbd060=_0x228849;_0x458c9e===_0x57ff02[_0xbbd060(0x1f0)][_0xbbd060(0x2d0)]||_0x1565a8==null||this['_imageSourceCache'][_0xbbd060(0x4f3)](_0x1f0aa0,_0x1565a8);}async[_0x228849(0x1e2)](_0x5138e1){const _0x4f3546=_0x228849;try{const _0x3005ad=this['_replaceFileID'](this[_0x4f3546(0x497)](),''+_0x5138e1),_0x3899dc=(await this[_0x4f3546(0x412)][_0x4f3546(0x24c)](_0x3005ad))['body'];return _0x3899dc[_0x4f3546(0x24e)]&&_0x3899dc[_0x4f3546(0x24e)]['code']===_0x4a5019['OK']?Promise[_0x4f3546(0x44e)](_0x3899dc[_0x4f3546(0x374)]):Promise[_0x4f3546(0x377)](_0x3899dc[_0x4f3546(0x24e)]);}catch(_0xf91542){return Promise[_0x4f3546(0x377)](_0xf91542);}}async[_0x228849(0x157)](_0xb700b1){const _0xe5c9=_0x228849;let _0x43b708='';if(!_0xd1969[_0xe5c9(0x45a)](_0xb700b1[_0xe5c9(0x354)]))return this[_0xe5c9(0x2de)](),Promise[_0xe5c9(0x377)](new Error(_0x57ff02[_0xe5c9(0x4f5)][_0xe5c9(0x23e)]));if(_0xb700b1[_0xe5c9(0x3bb)]>_0x2214a7)return this['_decreaseWaiting'](),Promise['reject'](new Error(_0x57ff02['ImageUploadStatusType'][_0xe5c9(0x496)]));try{const _0x1da24d=new FormData();_0x1da24d[_0xe5c9(0x3f4)](_0xe5c9(0x4c5),_0xb700b1);const _0x314c69=this[_0xe5c9(0x49b)]()+'?size='+_0xb700b1[_0xe5c9(0x3bb)]['toString'](),_0x30bf4f=await(await fetch(_0x314c69,{'method':_0xe5c9(0x34c),'body':_0x1da24d}))[_0xe5c9(0x3cc)]();if(typeof _0x30bf4f[_0xe5c9(0x393)]!='string')return this[_0xe5c9(0x2de)](),Promise[_0xe5c9(0x377)](new Error(_0x57ff02[_0xe5c9(0x4f5)][_0xe5c9(0x346)]));_0x43b708=_0x30bf4f[_0xe5c9(0x393)];}catch{return this[_0xe5c9(0x2de)](),Promise[_0xe5c9(0x377)](new Error(_0x57ff02[_0xe5c9(0x4f5)][_0xe5c9(0x346)]));}return new Promise((_0x46a570,_0x59b7d8)=>{const _0x56fd45=_0xe5c9,_0xcc418b=new FileReader();_0xcc418b[_0x56fd45(0x45d)](_0xb700b1),_0xcc418b['onload']=_0x5501bc=>{const _0x4edf27=_0x56fd45;var _0x4de8a4;const _0x126e6b=(_0x4de8a4=_0x5501bc[_0x4edf27(0x1fa)])==null?void 0x0:_0x4de8a4['result'];if(_0x126e6b==null){this[_0x4edf27(0x2de)](),_0x59b7d8(new Error(_0x57ff02[_0x4edf27(0x4f5)][_0x4edf27(0x346)]));return;}const _0x36362b=_0x226a7e['Tools'][_0x4edf27(0x34b)](0x6);_0x46a570({'imageId':_0x36362b,'imageSourceType':_0x57ff02['ImageSourceType']['UUID'],'source':_0x43b708,'base64Cache':_0x126e6b,'status':_0x57ff02[_0x4edf27(0x4f5)]['SUCCUSS']}),this[_0x4edf27(0x2de)]();};});}[_0x228849(0x49b)](){const _0x2ed2d7=_0x228849;var _0x54d5b9;return(_0x54d5b9=this[_0x2ed2d7(0x12b)][_0x2ed2d7(0x176)](_0x64fb6a))!=null?_0x54d5b9:_0x38f56a;}[_0x228849(0x497)](){const _0x350d34=_0x228849;var _0x2eddba;return(_0x2eddba=this[_0x350d34(0x12b)][_0x350d34(0x176)](_0x51e6a2))!=null?_0x2eddba:_0x5030b1;}[_0x228849(0x32a)](_0xe2d786,_0x2187f3){const _0x58af98=_0x228849;return _0xe2d786[_0x58af98(0x281)](_0x58af98(0x3da),_0x2187f3);}['_decreaseWaiting'](){const _0x1169b6=_0x228849;this[_0x1169b6(0x21f)]-=0x1,this[_0x1169b6(0x4a2)][_0x1169b6(0x488)](this[_0x1169b6(0x21f)]);}};_0x3002a0=_0x219850([_0x58c2d6(0x0,_0x49bc9[_0x228849(0x31c)](_0x353e30[_0x228849(0x26c)])),_0x58c2d6(0x1,_0x226a7e[_0x228849(0x26f)])],_0x3002a0);var _0x10451b=Object[_0x228849(0x1fc)],_0x4f2602=Object[_0x228849(0x1b4)],_0x477c7f=(_0x41234c,_0x1bdc2a,_0x38a6e5)=>_0x1bdc2a in _0x41234c?_0x10451b(_0x41234c,_0x1bdc2a,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x38a6e5}):_0x41234c[_0x1bdc2a]=_0x38a6e5,_0x3ad023=(_0xf269e5,_0x1fdef2,_0x16fb28,_0x47d4dc)=>{const _0xbf6d9c=_0x228849;for(var _0x3fd208=_0x47d4dc>0x1?void 0x0:_0x47d4dc?_0x4f2602(_0x1fdef2,_0x16fb28):_0x1fdef2,_0x2a3bc1=_0xf269e5[_0xbf6d9c(0x430)]-0x1,_0x4c89dd;_0x2a3bc1>=0x0;_0x2a3bc1--)(_0x4c89dd=_0xf269e5[_0x2a3bc1])&&(_0x3fd208=(_0x47d4dc?_0x4c89dd(_0x1fdef2,_0x16fb28,_0x3fd208):_0x4c89dd(_0x3fd208))||_0x3fd208);return _0x47d4dc&&_0x3fd208&&_0x10451b(_0x1fdef2,_0x16fb28,_0x3fd208),_0x3fd208;},_0x28db8f=(_0x7dda03,_0x2168f1)=>(_0x18729f,_0x150b6f)=>_0x2168f1(_0x18729f,_0x150b6f,_0x7dda03),_0x11a023=(_0x34b14f,_0x115e30,_0x4f4ff6)=>(_0x477c7f(_0x34b14f,_0x115e30+'',_0x4f4ff6),_0x4f4ff6);const _0x40bfe7=_0x228849(0x1cc);_0x431c6f[_0x228849(0x3e4)]=class extends _0x226a7e[_0x228849(0x1bc)]{constructor(_0x34b026,_0xb6f0a8,_0x37095c){const _0x4932a3=_0x228849;super(),this[_0x4932a3(0x46c)]=_0x34b026,this[_0x4932a3(0x464)]=_0xb6f0a8,this[_0x4932a3(0x28b)]=_0x37095c;}['onStarting'](_0x359884){const _0x1e917d=_0x228849;var _0x311d2b,_0x4e924a,_0x2103f2,_0x3c68ec,_0x22c6ea;_0x359884['has'](_0x226a7e[_0x1e917d(0x3af)])&&this[_0x1e917d(0x464)]['error']('[UniverCollaborationClientPlugin]',_0x1e917d(0x13e));let _0x2c87cd=[[_0x226a7e[_0x1e917d(0x3af)],{'useClass':_0x370e1f}],[_0x431c6f[_0x1e917d(0x192)]],[_0x237467],[_0x353e30['HTTPService']],[_0x445d9f,{'useClass':_0x3ceb40}],[_0x2f6a5d],[_0x431c6f[_0x1e917d(0x361)]],[_0x353e30[_0x1e917d(0x174)]],[_0x362b05],[_0x35da09],[_0x1f5fb3],[_0x372338],[_0x36b668],[_0x970e64,{'useClass':(_0x4e924a=(_0x311d2b=this[_0x1e917d(0x46c)])==null?void 0x0:_0x311d2b['socketService'])!=null?_0x4e924a:_0x431c6f[_0x1e917d(0x207)]}],[_0x353e30[_0x1e917d(0x299)],{'useClass':_0x353e30[_0x1e917d(0x29a)]}],[_0x226a7e[_0x1e917d(0x2ff)],{'useClass':_0x5b8358}],[_0x226a7e[_0x1e917d(0x1b1)],{'useClass':_0x431c6f['AuthzIoHttpService']}],[_0x57ff02[_0x1e917d(0x395)],{'useClass':_0x3002a0}],[_0x431c6f['CollaborationController']],[_0x431c6f[_0x1e917d(0x276)]],[_0x431c6f[_0x1e917d(0x422)]],[_0x46b6ae],[_0x1ed5eb]];(_0x2103f2=this[_0x1e917d(0x46c)])!=null&&_0x2103f2[_0x1e917d(0x365)]&&_0x2c87cd[_0x1e917d(0x4cb)]([_0x53b064,{'useClass':_0x5d66f4}]),((_0x3c68ec=this['_config'])==null?void 0x0:_0x3c68ec[_0x1e917d(0x42d)])==null||this[_0x1e917d(0x46c)][_0x1e917d(0x42d)]['includes'](_0x226a7e[_0x1e917d(0x27d)]['UNIVER_SHEET'])?_0x2c87cd[_0x1e917d(0x4cb)]([_0x7ed5d]):this[_0x1e917d(0x46c)][_0x1e917d(0x42d)][_0x1e917d(0x45a)](_0x226a7e[_0x1e917d(0x27d)][_0x1e917d(0x138)])&&_0x2c87cd[_0x1e917d(0x4cb)]([_0x2ecdf6]),_0x2c87cd=_0x226a7e[_0x1e917d(0x498)](_0x2c87cd,(_0x22c6ea=this['_config'])==null?void 0x0:_0x22c6ea[_0x1e917d(0x2ae)]),_0x2c87cd['forEach'](_0x34d424=>_0x359884[_0x1e917d(0x33d)](_0x34d424)),_0x359884['get'](_0x353e30[_0x1e917d(0x26c)])[_0x1e917d(0x293)]({'priority':0x14,'interceptor':_0x353e30[_0x1e917d(0x17e)]({'maxParallel':0x6})}),this[_0x1e917d(0x197)]();}[_0x228849(0x197)](){const _0x400b24=_0x228849;var _0x14ee35,_0x177838;(_0x14ee35=this[_0x400b24(0x46c)])!=null&&_0x14ee35[_0x400b24(0x462)]||this[_0x400b24(0x28b)][_0x400b24(0x24c)](_0x431c6f[_0x400b24(0x361)])['disableLocalCache'](),(_0x177838=this[_0x400b24(0x46c)])!=null&&_0x177838[_0x400b24(0x3d3)]&&this[_0x400b24(0x28b)]['get'](_0x36b668);}},_0x11a023(_0x431c6f[_0x228849(0x3e4)],_0x228849(0x272),_0x40bfe7),_0x431c6f[_0x228849(0x3e4)]=_0x3ad023([_0x226a7e[_0x228849(0x17a)](_0x1e8c75[_0x228849(0x367)]),_0x28db8f(0x1,_0x226a7e[_0x228849(0x212)]),_0x28db8f(0x2,_0x49bc9[_0x228849(0x31c)](_0x49bc9['Injector']))],_0x431c6f[_0x228849(0x3e4)]),_0x431c6f[_0x228849(0x1d7)]=_0x40122f,_0x431c6f['COLLAB_SUBMIT_CHANGESET_URL_KEY']=_0xe983e2,_0x431c6f[_0x228849(0x39d)]=_0x54323b,_0x431c6f['CollaborationStatus']=_0x4577df,_0x431c6f[_0x228849(0x4c3)]=_0x10b395,_0x431c6f[_0x228849(0x296)]=_0x18051e,_0x431c6f[_0x228849(0x4ad)]=_0x2c7ffa,_0x431c6f[_0x228849(0x400)]=_0x970e64,_0x431c6f[_0x228849(0x199)]=_0x445d9f,_0x431c6f['LOCAL_CACHE_INTERVAL_KEY']=_0x109348,_0x431c6f[_0x228849(0x303)]=_0x16f267,_0x431c6f['SEND_CHANGESET_TIMEOUT_KEY']=_0x6128a1,_0x431c6f[_0x228849(0x229)]=_0x299079,_0x431c6f[_0x228849(0x23b)]=_0x2e8975,_0x431c6f[_0x228849(0x188)]=_0x2d0945,_0x431c6f[_0x228849(0x447)]=_0x3ceb40,_0x431c6f[_0x228849(0x1b6)]=_0x37fba9,_0x431c6f[_0x228849(0x3a1)]=_0x543e7b,Object[_0x228849(0x1fc)](_0x431c6f,Symbol['toStringTag'],{'value':_0x228849(0x3be)});}));function _0x5a71(){const _0x20aa42=['merge','/rev/','_handler','enableAuthServer','onlineStatus','FETCH_MISS','_uiPartsService','confirm','call','getDocObject','{fileID}','deleteCollaborator','APPLY_NON_SEQUENTIAL_REVISION','appendMutation','triggerDblclick','reduce','MUTATION','_unitID','routeKey','function','UniverCollaborationClientPlugin','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','SetTextSelectionsOperation','_joinRoom','_getCtorByUniverType','session.will-retry','OnLineSingle','@univerjs/rpc','deserializeRangeWithSheet','snapshot','_status$','_localCacheService','getCellPositionByOffset','save\x20fail\x20reason\x20is\x20','onTransformRemoteChangesetByIMECache','UniverSheetsUi','append','_clearHeartbeatTimer','permission.content','/universer-api/oidc/authpage','_docTransformSelectionsService','FromArray','[serializeCombRequest]:\x20should\x20not\x20fall\x20into\x20default\x20branch!','registerComponent','saveChangeset','JOINING','bottom','_schedule','ICollaborationSocketService','_localeService','roomMembers','_type','on-line-single','concat','getColor','resourceIDs','SNAPSHOT_INVALID_SNAPSHOT','_clearLocalCache','_scheduleHeartbeat','3687592koGrDH','@univerjs-pro/collaboration','getCollabEntity$','[DataLoaderController]','[ConflictState]:\x20invalid\x20calling\x20to\x20`resend`.','[OfflineState]:\x20invalid\x20calling\x20to\x20`resend`.','CompressMutationService','_httpService','liveShareOperation','fromCollab','state$','getItem','LIVESHARE_FETCH_OPERATIONS','status','_onRemoteChangeset','list','startRow','from','Cannot\x20assemble\x20a\x20changeset\x20from\x20multiple\x20mutations\x20of\x20different\x20types:\x20','_syncEditingCollabCursor','collaboration-client.offline-data-not-saved','addImageSourceCache','univer-online-status','DesktopCollaborationStatusDisplayController','submit\x20changeset\x20error!','JOIN','handleInsertRangeMoveRight','collabStatus.fetchMiss','change$','_ensureSubject','[OfflineState]:\x20received\x20rejection.','_acknowledgedAwaitingChangeset','isPermissionRej','_executeRemoteChangeset','collaborationUniverTypes','startColumn','USERS_LEAVE','length','_getAPIPrefix','_eventUnsubscribe','updateMember','debug','_getAnchorBounding','createElement','revision','_updateSubUnitFromURLParams','_startDocCollabCursor','useObservable','unit','top','rev','addObject','getFocusedUnit','transformRemoteChangeset','isArray','EXCHANGE_UPLOAD_FILE_SERVER_URL_KEY','/role','row','handleInsertRangeMoveDown','serializeTextRange','WebURLService','[PendingState]:\x20unhandled\x20univer\x20type:\x20','csAckEvent','[ClientCollaborationController]:\x20invalid\x20state\x20transition!\x20State\x20transferred\x20from\x20is\x20not\x20the\x20current\x20state.\x0aBefore:\x20','m1Prime','fill','_syncEditingCollabCursorService','resolve','PENDING','pipe','VIEW_MAIN','filter','onRemoteChangeset','_pendingMutations','LIVESHARE_NEW_HOST','all','split','_clearUndo','collab-text-anchor-','includes','Error','_roomMembers$','readAsDataURL','getCurrentRevForDocument','defIds','/universer-api/file/{fileID}/sign-url','_HTTPService','enableOfflineEditing','transformStack\x20failed!','_logService','@wendellhu/redi/react-bindings','M4.5865\x2011.6499C3.36983\x2011.6499\x201.6665\x2011.1024\x201.6665\x208.9124C1.6665\x206.3574\x204.2215\x205.8099\x204.9515\x205.8099C5.3165\x204.5324\x206.0465\x202.5249\x208.9665\x202.5249C11.5215\x202.5249\x2012.6165\x203.9849\x2012.9815\x205.2624C12.9815\x205.2624\x2016.2665\x205.6274\x2016.2665\x208.7299C16.2665\x2010.9199\x2014.8065\x2011.6499\x2013.3465\x2011.6499M6.7767\x2011.6497L8.9667\x2013.4747L11.8867\x209.82466','textEncoder','transformChangesets','on-line-single_clip0_910_349','setTimeout','@univerjs/design','_config','children','workbook','COMPRESS_MUTATION_SEND','_updateLocalCursor','RemoveRowCommandId','_createSocket','deepClone','_docTransformIMECacheService','getRangePointData','connection\x20error','collabCursorState$','_queuedRemoteChangesets','_cursorInfo$','unshift','prototype','@univerjs/sheets','column','Rect','textRanges','extend','MessageType','onTransformSelections','HELLO','Disposable','dispose','disableLocalCache','_roomMembers','next','PERMISSION_DENIED','_transformPreviousActiveRange','setUndoRedoMutationParamsCache','text','syncEditingCollabCursor','setCurrentUser','ICommandService','_colorIndex','_hideTimer','endColumn','_getMergeRange','_isPermissionRej','shareReplay','ERROR_EXCEED_SIZE','_getSignURL','mergeOverrideWithDependencies','isTransformMutationFailure','_sheetTransformSelectionsService','_getUploadFileURL','_clearOtherTimers','_substituteRedoStack','univer-online-status-icon','_toggleOnline','NOT_FOUND','895380IfjYtx','_change$','getActiveSheet','listRoles','setParam','HEARTBEAT','_incrementRevisionNumber','UNRECOGNIZED','fillStyle','IUniverInstanceService','_transformIMECache','IRenderManagerService','HEARTBEAT_TIMEOUT_KEY','getUnitOnRev','div','url(#on-line-single_clip0_910_349)','_collabCursorState$','collabStatus.offline','DisposableCollection','MoveRangeCommandId','_tryEnsureSocket','_commandService','onCommandExecuted','RichTextEditingMutation','currentColor','awaiting_with_pending','_cursors','Subject','APPLY_PERMISSION_DENIED','getSheetBlock','entries','_renderManagerService','_updateState','IBeforeCloseService','CollaborationStatusDisplay','_handleEvent','file','setInterval','csRejEvent','\x20-\x20','createSocket','setItem','push','ONLINE','online','getTime','assignAColorForMemberID','_initStatusComponent','_transformRemoteChangesetByIMECache','collab-text-range-','onSendChangeset','_getRedoStack','[PendingState]:\x20invalid\x20calling\x20to\x20`resend`.','_snapshotService','max','leaveEvent','update','_shapes','map','color','parseProtocolChangeset','compose','CHANGESET_REJ','_anchor','onRemoteRej','/new_changes','displayName','LICENSE_IMPORT_SIZE_EXCEEDED','TOO_MANY_REQUESTS','onPointerMoveObserver','Unknown\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','NOT_COLLAB','_showConflictNotification','jiqing500','apply','subUnitId','send','toggleOnline','TEXT_RANGE_LAYER_INDEX','OnLifecycle','CHANGESET_REVISION_CONFILICT','docStateChange$','set','transformUndoRedo','ImageUploadStatusType','isTransformMutationsWithChangesetSuccess','_color','IMessageService','pauseCollaboration','objectActions','saveSheetBlock','[CollaborationEntity]','updateCollaborator','_updateLocalCache','_configService','executeCommand','useDependency','AuthzIoHttpService','YUUMI_UNABLE_LOAD_URL','[PendingState]:\x20received\x20rejection.','Workbook','...','[OfflineState]:\x20received\x20changeset.','NodePositionConvertToCursor','getTypeOfUnitAdded$','_clearCollaborationTimeoutTimer','/unit/','UNIVER_DOC','LICENSE_EXPORT_SIZE_EXCEEDED','awaiting','handleIRemoveCol','setAlpha','UniverIcon','you\x20should\x20override\x20\x22IUndoRedoService\x22\x20provided\x20in\x20\x22core\x22\x20package!','mapTo','getSheetBySheetId','newCsEvent','_docSyncEditingCollabCursorService','PERMISSION_REJ','Tools','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','_members','toggleOffline','@univerjs/core','use','INGEST','toDisposable','random','auth.needGotoLoginAlert','Warning','_awaitingChangeset','getUndoRedoMutationParamsCache','@univerjs/engine-render','_docSkeleton','_hovered','_updateCollabCursors','[FetchingMissState]:\x20invalid\x20calling\x20to\x20`resend`.','getUnitType','saveImage','close','session','[CollaborationSession]:\x20should\x20not\x20send\x20message\x20when\x20the\x20session\x20is\x20offline!','useRef','RemoveColCommandId','EffectRefRangId','doc.mutation.rich-text-editing','parseChangesetToProtocol','message$','body','onStateChange','permission.title','UniverEngineFormula','rxjs','InsertRangeMoveDownCommandId','univer-offline','status$','remove','_saveCache','_unitStatus','startsWith','UNKNOWN_CODE','_getSnapshotAPIPrefix','&to=','key','conflict.content','_remoteChangesetQueue','localeService','WebSocketService','createIdentifier','getConfig','USERS_ENTER','createInstance','LifecycleStages','DependentOn','_render','svg','getUnitStatus$','ThresholdInterceptorFactory','removeMember','height','getValue','IPermissionService','cursorInfo$','ITransformService','href','with','@univerjs/ui','SessionStatus','_onRemoteACK','min','_replayCachedMutations','popstate','rxjs/operators','FAIL','editingUnit','getAncestorScale','HEADER_MENU','CollaborationSessionService','_lockTransition','COMPLETION_FINISHED','Optional','distinctUntilChanged','_initModules','CollaborationEvent','IURLService','_getUndoStack','_sessionStatus$','AWAITING_WITH_PENDING','getTypeOfUnitDisposed$','[CollaborationSessionService]:\x20socket\x20error','onlineStatusTitle','image/jpg','/object/','getScrollXYByRelativeCoords','_transformStack','restore','runRefRangeMutations','getSheetId','image/gif','string','_onConflict','_getDocObject','Univer','getParam','_univerInstanceService','then','storage','onlineStatusIcon','IAuthzIoService','has','AWAITING','getOwnPropertyDescriptor','handleMoveRange','deserializeToCombResponse','_socketReady','clipPath','_transformService','_draw','_getSheetObject','Plugin','_undoRedoService','Rectangle','labelPosition','focused$','synced','_updateStatus','fetchThroughInterceptors','fetchMissingChangesets','black','userID','_unitOnClients','_permissionService','_saveTaskMap','trim','@univerjs/drawing','UNIVER_COLLABORATION_CLIENT_PLUGIN','_heartbeatTimer','conflict','sheets','_sessions','_state$','urlChange$','lodash/debounce','stringify','interceptor','_onCursorUpdate','AUTHZ_URL_KEY','_onRefRangeChange','_docSkeletonManagerService','_onUserLeave','take','ALREADY_EXISTS','complete','removeParam','pushState','save','getCurrentUnitForType','getImage','_collabSessionService','disposeUnit','onMissedChangesetFetched','_disableEditing','close$','unknown','roomMembers$','[FetchingMissState]:\x20not\x20expected\x20to\x20receive\x20ack\x20when\x20`this._awaitingChangeset`\x20is\x20null!','_state','dispose$','_removeCollabCursors','_transitionLocked','fetching\x20the\x20latest\x20document\x20from\x20the\x20server.','ImageSourceType','_retryConnectingTimer','/universer-api/comb','makeDirty','_submitChangeset','current','defs','IDLE','data','parse','target','_singleActiveUnitService','defineProperty','UniverUi','asObservable','_applyRemoteChangeset','findNodePositionByCharIndex','ThemeService','updatePermissionPoint','red300','baseRev','UNAUTHENTICATED','getViewport','CollaborationSocketService','evenodd','_clearRedo','sequenceExecute','width','roomInfos','_socketMessageSubscription','_handleJoinEvent','_retryCount','_unlockTransition','closePath','ILogService','NEW_CHANGESETS','b64DecodeUnicode','unload','onSyncEditingCollabCursor','_cachedData','fetch_missing','className','IUIPartsService','SetSelectionsOperation','originalMeta','\x20in\x20_schedule.','_assignedColors','_waitCount','getRoom','off-line-single_clip0_910_343','YUUMI_URL_COL_OUT_OF_RANGE','hasOwnProperty','selection','/universer-api/authz','_send','LICENSE_MAX_UNITS_EXCEEDED','LEAVE','SNAPSHOT_SERVER_URL_KEY','getOwnPropertySymbols','error$','subscribe','CommandType','_onConnectionOpen','UNKNOWN_CMD','_revisionService','disposeWithMe','find','#FFF','sheetID','forwardRef','univerjs-icon\x20univerjs-icon-','_createInitialState','IMEInputManagerService','_onRecvEvent','getResourcesRequest','SNAPSHOT_URL_KEY','transformSelections','unsubscribe','ERROR_IMAGE_TYPE','_toggleOffline','2012082GPsqED','history','[CollaborationSessionService]','OTHER_CLIENTS_EDITING','_refRangeService','1em','/block/','UniverEngineRender','[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.','collaMsg','_entityInit$','open$','get','searchParams','error','INotificationService','getMember','xlink:href','attrs','UPDATE_CURSOR','getCollabCursors$','_userManagerService','objectID','562931EJniKv','fillText','getCurrent','HEARTBEAT_TIMEOUT','url(#$1','_scheduleTimestamp','memberID','onRemoteAck','failed\x20to\x20apply\x20missed\x20changesets!','m2Prime','cursorInfo','tag','_cursor','collabStatus.conflict','getCollabEntity','addEventListener','transformByState','name','members','/universer-api/snapshot','_textBubble','HTTPService','OFFLINE','isEditing','IConfigService','APPLY_REJECT','_localStorageService','pluginName','serializeRangeWithSheet','actions','allowed','DataLoaderController','_createInitialStateImpl','transformMutation','RegularPolygon','awaitingChangeset','_onCombEvent','cmd','UniverInstanceType','collaboratorID','_name','catch','replace','_removeClearOtherTimer','unit-cache-','[CollaborationUndoRedoService]','_init','objectType','INVALID_ARGUMENT','subunit','registerOnClose','verdancy600','_injector','session.collaboration-timeout','collabStatus.syncing','_snapshotServerService','UniverNetwork','RECV','LocalUndoRedoService','_getScale','registerHTTPInterceptor','encodeURIComponent','_anchorDot','HEARTBEAT_INTERVAL_KEY','offline','CONNECTOR_DATA_TOO_LARGE','IHTTPImplementation','XHRHTTPImplementation','_scheduleSaving','CHANGESET_ACK','registerRefRange','[FetchMissState]','_transformUndoRedoStack','concatMap','hide','_event$','joinEvent','_urlService','values','range','activeSheet$','_document','NO_OTHER_CLIENTS_EDITING','Vector2','SEND_CHANGESET_TIMEOUT','RxDisposable','lineTo','override','_scene','onMissingChangesets','delete','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','onPointerEnterObserver','replaceTextRanges','SUBMIT_CHANGESET','[SyncedState]:\x20received\x20acknowledgement.','sessionStatus$','colorChannel1','_drawAnchor','[CollaborationEntity]:\x20initial\x20state\x20has\x20been\x20created\x20before.\x20You\x20should\x20not\x20call\x20\x22init\x22\x20twice.','FETCH_MISSING','_labelPosition','_substituteUndoStack','_sendHeartbeatTimer','changesets','_sheetSkeletonManagerService','create','_updateURLWithCurrentState','[CollaborationController]:\x20remote\x20changeset\x20applied\x20error.','APPLY_REVISION_CONFILICT','_disabled','_onJoinRoomEvent','_memberService','_handleLeaveEvent','clearTimeout','RETRY_CONNECTING_MAX_COUNT','CollaborationController','isActive','_timeoutTimer','COLLAB_WEB_SOCKET_URL','LIVESHARE_TERMINATE','BASE64','getUnitId','path','_collaborationTimeoutTimer','enableLocalCache','_onCursorDelete','CollaborationSession','_onLocalMutation','LIVESHARE_REQUEST_HOST','session.room-full','@univerjs/engine-formula','_http','SetWorksheetActivateCommand','transformMutationsWithChangeset','_decreaseWaiting','uni.network.url-service','getSelections','getMemberID','_loadSheet','InsertRowCommandId','takeUntil','_getCurrentRevision','_sendingTimer','BehaviorSubject','/universer-api/stream/file/upload','UNDEFINED','_createHandler','incrementRevForDocument','infoRsp','univer-pro.collaboration-client.single-active-unit-service','4751184OsIxXJ','_scheduleReconnection','delay','lodash','TextSelectionManagerService','React','params','newValue','socket\x20open.','handleInsertRow','@wendellhu/redi','_onRemoteRejected','COLLAB_SUBMIT_CHANGESET_URL','assign','setShapeProps','endRow','InsertColCommandId','ISnapshotServerService','_drawRange','currentTheme$','onPointerLeaveObserver','LOGIN_URL_KEY','session.connection-failed','font','_messageService','isTransformMutationsWithChangesetFailure','idSuffix','exports','Shape','_unitId','gold400','batchAllowed','INTERNAL_ERROR','isTransformChangesetsSuccess','SYNCED','joinRsp','LIVESHARE_OPERATION','InsertRangeMoveRightCommandId','round','VIEWPORT_KEY','_loadDoc','registerBeforeClose','_collaborationController','encode','toString','onlyLocal','Inject','Starting','BuiltInUIPart','url(#off-line-single_clip0_910_343)','_transformUndoredo','_scheduleClearOtherTimer','drawWith','updateOfflineData','fromEvent','eventID','1338960qTbhIA','image/bmp','transformIMECache','purple300','_replaceFileID','post','location','switchMap','COMPRESS_MUTATION_APPLY','UniverSheets','getImageSourceCache','transform','_online','show','ACTIVE_UNIT_EVENT_CHANNEL','getCoordByCell','/object','_onUserJoin','_compressMutationService','_entities','connectInjector','clear','loadOfflineData','add','handleDeleteRangeMoveLeft','[SyncedState]:\x20invalid\x20calling\x20to\x20`resend`.','unitID','ranges','_removeRoom','0\x200\x2017\x2016','COLORS','getActiveRange','ERROR_IMAGE','getCurrentUser','getInterceptPoints','translate(.97)','arc','generateRandomId','POST','currentSkeleton$','PSEUDO_FETCH_MISSING_RESULT','_imageSourceCache','pending','_checkMissing','4497075pgzvwb','getRelativeCoord','type','LocaleService','c1Prime','mutations','whenReady','UniverCollaborationClient','_getAPIPrefixPath','symbol','SelectionManagerService','UNIVER_SLIDE','SnapshotService','_getSaveTimeout','\x0aCurrent:\x20','LocalCacheService','LICENSE_DISTRO_REJECTED','_themeService','getSheetObject','enableSingleActiveInstanceLock','RevisionService','UniverCollaborationPlugin','@univerjs/docs','some','_socket$','_undoStacks','Injector','UniverRpc','_notificationService','_redoStacks','#fff','toRgbString','_collaborationPaused','state','url','_hover','UNIVER_UNKNOWN','reject','DeleteRangeMoveUpCommandId','putCollaborators','_setupBeforeClosingHandler','[SyncedState]:\x20received\x20rejection.','MSG_FOR_ERROR','_rescheduleHeartbeatEvent','M3.61971\x2011.6499C2.40304\x2011.6499\x200.699707\x2011.1024\x200.699707\x208.9124C0.699707\x206.3574\x203.25471\x205.8099\x203.98471\x205.8099C4.34971\x204.5324\x205.07971\x202.5249\x207.99971\x202.5249C10.5547\x202.5249\x2011.6497\x203.9849\x2012.0147\x205.2624C12.0147\x205.2624\x2015.2997\x205.6274\x2015.2997\x208.7299C15.2997\x2010.9199\x2013.8397\x2011.6499\x2012.3797\x2011.6499M9.82471\x209.82466L6.17471\x2013.4747M6.17471\x209.82466L9.82471\x2013.4747','This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!','_range','c2Prime','Steady','_getLoginPath','_beforeCloseService','moveTo','_getSendChangesetTimeout','_initStatusListener','_selfUnitIDs','_ws','_clearTimeoutTimer','@univerjs/network','ColorKit','object','_colorAssignService','getMergeData','UNIVER_SHEET','2PlYSUb','_clearScheduledTask','FileId','_handleHover','IImageIoService','sessionStatus','_startSheetCollabCursor','[PendingState]:\x20received\x20acknowledgement.','permissionRejEvent','indexOf','_socket','[CollaborationController]:\x20invalid\x20univer\x20type:\x20','COLLAB_WEB_SOCKET_URL_KEY','_id','WorkbookEditablePermission','skeleton','serializeCombRequest','addObjects','requireSession','event$','univer-online','selections','_exhaustSavingTask','clsx','_lastPointer','[CollaborationSession]','\x20to\x20','_docStateChangeManagerService','forEach','none','IUndoRedoService','_onConnectionFailed','put','RETRY_CONNECTING_INTERVAL','SheetSkeletonManagerService','0\x200\x2016\x2016','debounceTime','UniverCore','_sendHeartbeat','clearInterval','_onMessage','M0\x200H16V16H0z','size','_startCollaboration','init','Module','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','slice','Unknown\x20user','_collabCursorController','_socketService','_waitForHeartbeatResponse','unitId','resend','measureText','handleInsertCol','_session','react','[CollaborationEntity]:\x20cannot\x20apply\x20missing\x20results\x20on\x20other\x20states!','json','univer-online-status-title','fetching\x20missing\x20changesets\x20from\x20','@univerjs/sheets-ui'];_0x5a71=function(){return _0x20aa42;};return _0x5a71();}
1
+ function _0x23df(_0x4a6b66,_0x5535a4){const _0x23f57a=_0x23f5();return _0x23df=function(_0x23df24,_0x264471){_0x23df24=_0x23df24-0x1bc;let _0xde55b0=_0x23f57a[_0x23df24];return _0xde55b0;},_0x23df(_0x4a6b66,_0x5535a4);}(function(_0x3b5619,_0x5d0c53){const _0x4e02ed=_0x23df,_0x507801=_0x3b5619();while(!![]){try{const _0x5a64ab=parseInt(_0x4e02ed(0x39d))/0x1*(parseInt(_0x4e02ed(0x21a))/0x2)+-parseInt(_0x4e02ed(0x3ee))/0x3+parseInt(_0x4e02ed(0x27c))/0x4*(-parseInt(_0x4e02ed(0x564))/0x5)+-parseInt(_0x4e02ed(0x566))/0x6+-parseInt(_0x4e02ed(0x3e5))/0x7*(-parseInt(_0x4e02ed(0x49e))/0x8)+-parseInt(_0x4e02ed(0x47d))/0x9+parseInt(_0x4e02ed(0x272))/0xa;if(_0x5a64ab===_0x5d0c53)break;else _0x507801['push'](_0x507801['shift']());}catch(_0x453c05){_0x507801['push'](_0x507801['shift']());}}}(_0x23f5,0xa3e40),function(_0x110dca,_0x2005eb){const _0x4106a1=_0x23df;typeof exports=='object'&&typeof module<'u'?_0x2005eb(exports,require('@univerjs/core'),require(_0x4106a1(0x281)),require(_0x4106a1(0x1cc)),require(_0x4106a1(0x3e1)),require(_0x4106a1(0x296)),require('@wendellhu/redi'),require(_0x4106a1(0x25a)),require(_0x4106a1(0x201)),require(_0x4106a1(0x284)),require(_0x4106a1(0x32d)),require(_0x4106a1(0x419)),require(_0x4106a1(0x555)),require('lodash/debounce'),require('@univerjs/engine-render'),require('@univerjs/sheets-ui'),require(_0x4106a1(0x547)),require(_0x4106a1(0x562)),require(_0x4106a1(0x214)),require('@univerjs/rpc')):typeof define==_0x4106a1(0x3c4)&&define[_0x4106a1(0x1d0)]?define([_0x4106a1(0x4dd),_0x4106a1(0x41a),_0x4106a1(0x281),_0x4106a1(0x1cc),_0x4106a1(0x3e1),_0x4106a1(0x296),_0x4106a1(0x235),_0x4106a1(0x25a),'rxjs/operators',_0x4106a1(0x284),_0x4106a1(0x32d),_0x4106a1(0x419),_0x4106a1(0x555),_0x4106a1(0x2c2),_0x4106a1(0x3c1),_0x4106a1(0x394),_0x4106a1(0x547),_0x4106a1(0x562),_0x4106a1(0x214),_0x4106a1(0x4ed)],_0x2005eb):(_0x110dca=typeof globalThis<'u'?globalThis:_0x110dca||self,_0x2005eb(_0x110dca[_0x4106a1(0x254)]={},_0x110dca['UniverCore'],_0x110dca['UniverSheets'],_0x110dca['UniverDesign'],_0x110dca[_0x4106a1(0x412)],_0x110dca['UniverCollaboration'],_0x110dca[_0x4106a1(0x235)],_0x110dca['rxjs'],_0x110dca[_0x4106a1(0x25a)]['operators'],_0x110dca[_0x4106a1(0x337)],_0x110dca[_0x4106a1(0x2a2)],_0x110dca[_0x4106a1(0x50d)],_0x110dca['UniverEngineFormula'],_0x110dca[_0x4106a1(0x55d)]['debounce'],_0x110dca[_0x4106a1(0x521)],_0x110dca[_0x4106a1(0x4cb)],_0x110dca['@wendellhu/redi/react-bindings'],_0x110dca[_0x4106a1(0x1e5)],_0x110dca[_0x4106a1(0x214)],_0x110dca['UniverRpc']));}(this,function(_0x3f3314,_0x4cdaf4,_0x3a01f6,_0x4fb88a,_0x4ff465,_0x329b63,_0x12925a,_0x4bb16b,_0x4ac749,_0x3fcd1a,_0xfde0ab,_0x46f32c,_0x29b663,_0x7451ba,_0x499dcd,_0x4ad633,_0x263934,_0x48aaee,_0x504a8c,_0x10d289){'use strict';const _0x57b986=_0x23df;var _0x2d8c76=Object[_0x57b986(0x1f4)],_0x325d2c=(_0x5a168f,_0x1c3df5,_0x3ecba6)=>_0x1c3df5 in _0x5a168f?_0x2d8c76(_0x5a168f,_0x1c3df5,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x3ecba6}):_0x5a168f[_0x1c3df5]=_0x3ecba6,_0x53d09f=(_0x275205,_0x53be7a,_0x4419bc)=>_0x325d2c(_0x275205,typeof _0x53be7a!=_0x57b986(0x2ba)?_0x53be7a+'':_0x53be7a,_0x4419bc);const _0x514f86=_0x57b986(0x4ba),_0x1b973b=_0x57b986(0x4b7),_0x5cc7aa=_0x57b986(0x2b2),_0x20edc7=_0x57b986(0x2b3),_0x28607c=_0x57b986(0x38b),_0x5d6701='ws://127.0.0.1:8000/universer-api/comb/connect',_0x1e7060=_0x57b986(0x1db),_0x3287b4=_0x57b986(0x4c5),_0x192ae1=_0x57b986(0x204),_0x31e01f='RETRY_CONNECTING_MAX_COUNT',_0x1e2fa3=_0x57b986(0x2d3),_0x3050c7=_0x57b986(0x439),_0xf9a59b=_0x57b986(0x554),_0x23ca2e='LOGIN_URL_KEY',_0x1c47c8=_0x57b986(0x53d);var _0x383d49=(_0x362a53=>(_0x362a53[_0x362a53[_0x57b986(0x368)]=0x0]='UNDEFINED',_0x362a53[_0x362a53['OK']=0x1]='OK',_0x362a53[_0x362a53['INTERNAL_ERROR']=0x2]='INTERNAL_ERROR',_0x362a53[_0x362a53['PERMISSION_DENIED']=0x3]=_0x57b986(0x418),_0x362a53[_0x362a53[_0x57b986(0x565)]=0x4]=_0x57b986(0x565),_0x362a53[_0x362a53['UNAUTHENTICATED']=0x5]=_0x57b986(0x4df),_0x362a53[_0x362a53['ALREADY_EXISTS']=0x6]='ALREADY_EXISTS',_0x362a53[_0x362a53[_0x57b986(0x454)]=0x7]=_0x57b986(0x454),_0x362a53[_0x362a53[_0x57b986(0x23c)]=0x8]=_0x57b986(0x23c),_0x362a53[_0x362a53[_0x57b986(0x462)]=0x9]=_0x57b986(0x462),_0x362a53[_0x362a53[_0x57b986(0x52d)]=0x1389]='CHANGESET_REVISION_CONFILICT',_0x362a53[_0x362a53[_0x57b986(0x302)]=0x1771]=_0x57b986(0x302),_0x362a53[_0x362a53['SNAPSHOT_HAS_BEEN_REMOVED']=0x1772]=_0x57b986(0x365),_0x362a53[_0x362a53['APPLY_REJECT']=0x1b59]=_0x57b986(0x466),_0x362a53[_0x362a53['APPLY_NON_SEQUENTIAL_REVISION']=0x1b5a]=_0x57b986(0x43f),_0x362a53[_0x362a53[_0x57b986(0x54f)]=0x1b5b]='APPLY_REVISION_CONFILICT',_0x362a53[_0x362a53[_0x57b986(0x4d4)]=0x1b5c]=_0x57b986(0x4d4),_0x362a53[_0x362a53[_0x57b986(0x52c)]=0x1f41]=_0x57b986(0x52c),_0x362a53[_0x362a53[_0x57b986(0x1eb)]=0x2329]='LICENSE_MAX_UNITS_EXCEEDED',_0x362a53[_0x362a53[_0x57b986(0x324)]=0x232a]=_0x57b986(0x324),_0x362a53[_0x362a53[_0x57b986(0x379)]=0x232b]=_0x57b986(0x379),_0x362a53[_0x362a53[_0x57b986(0x3d3)]=0x232c]=_0x57b986(0x3d3),_0x362a53[_0x362a53[_0x57b986(0x500)]=0x232d]=_0x57b986(0x500),_0x362a53[_0x362a53[_0x57b986(0x216)]=0x2711]=_0x57b986(0x216),_0x362a53[_0x362a53[_0x57b986(0x551)]=0x2712]=_0x57b986(0x551),_0x362a53[_0x362a53['UNRECOGNIZED']=-0x1]=_0x57b986(0x340),_0x362a53))(_0x383d49||{}),_0x1f330d=(_0x4d2ecc=>(_0x4d2ecc[_0x4d2ecc['UNIVER_UNKNOWN']=0x0]=_0x57b986(0x518),_0x4d2ecc[_0x4d2ecc[_0x57b986(0x510)]=0x1]=_0x57b986(0x510),_0x4d2ecc[_0x4d2ecc[_0x57b986(0x1ed)]=0x2]=_0x57b986(0x1ed),_0x4d2ecc[_0x4d2ecc[_0x57b986(0x579)]=0x3]='UNIVER_SLIDE',_0x4d2ecc[_0x4d2ecc['UNRECOGNIZED']=-0x1]='UNRECOGNIZED',_0x4d2ecc))(_0x1f330d||{}),_0x1ab374=(_0x2b4c4d=>(_0x2b4c4d[_0x2b4c4d[_0x57b986(0x2e7)]=0x0]='UNKNOWN_CMD',_0x2b4c4d[_0x2b4c4d[_0x57b986(0x261)]=0x1]=_0x57b986(0x261),_0x2b4c4d[_0x2b4c4d[_0x57b986(0x2e0)]=0x2]='JOIN',_0x2b4c4d[_0x2b4c4d['LEAVE']=0x3]='LEAVE',_0x2b4c4d[_0x2b4c4d[_0x57b986(0x351)]=0x4]=_0x57b986(0x351),_0x2b4c4d[_0x2b4c4d['HEARTBEAT']=0x5]=_0x57b986(0x36f),_0x2b4c4d[_0x2b4c4d[_0x57b986(0x24d)]=0x6]=_0x57b986(0x24d),_0x2b4c4d[_0x2b4c4d['UNRECOGNIZED']=-0x1]=_0x57b986(0x340),_0x2b4c4d))(_0x1ab374||{}),_0x401f1c=(_0x3433f2=>(_0x3433f2[_0x3433f2[_0x57b986(0x303)]=0x0]=_0x57b986(0x303),_0x3433f2[_0x3433f2['OK']=0x1]='OK',_0x3433f2[_0x3433f2[_0x57b986(0x27d)]=0x2]='FAIL',_0x3433f2[_0x3433f2[_0x57b986(0x340)]=-0x1]=_0x57b986(0x340),_0x3433f2))(_0x401f1c||{}),_0x48573c=Object['defineProperty'],_0xbd8903=Object['getOwnPropertyDescriptor'],_0x3006f3=(_0x50cfc8,_0x3dfb77,_0x46fa12,_0x44e711)=>{const _0x24782d=_0x57b986;for(var _0x5bc645=_0x44e711>0x1?void 0x0:_0x44e711?_0xbd8903(_0x3dfb77,_0x46fa12):_0x3dfb77,_0x354804=_0x50cfc8[_0x24782d(0x397)]-0x1,_0x481dba;_0x354804>=0x0;_0x354804--)(_0x481dba=_0x50cfc8[_0x354804])&&(_0x5bc645=(_0x44e711?_0x481dba(_0x3dfb77,_0x46fa12,_0x5bc645):_0x481dba(_0x5bc645))||_0x5bc645);return _0x44e711&&_0x5bc645&&_0x48573c(_0x3dfb77,_0x46fa12,_0x5bc645),_0x5bc645;},_0x332ec9=(_0x2bc75f,_0x4133f4)=>(_0xe8589e,_0xa9320c)=>_0x4133f4(_0xe8589e,_0xa9320c,_0x2bc75f);let _0x4495e7=class extends _0x4cdaf4[_0x57b986(0x310)]{constructor(_0x30af3b,_0x4716ac){const _0x59005b=_0x57b986;super(),_0x53d09f(this,'_roomMembers',new Map()),(this[_0x59005b(0x3d9)]=_0x30af3b,this['_userManagerService']=_0x4716ac,this[_0x59005b(0x250)](_0x4cdaf4[_0x59005b(0x56b)](_0x4bb16b[_0x59005b(0x468)](this[_0x59005b(0x3d9)][_0x59005b(0x29d)](_0x4cdaf4[_0x59005b(0x514)][_0x59005b(0x1ed)])[_0x59005b(0x334)](_0x4ac749['map'](_0xe2da73=>_0xe2da73[_0x59005b(0x3d4)]())),this[_0x59005b(0x3d9)]['getTypeOfUnitDisposed$'](_0x4cdaf4['UniverInstanceType']['UNIVER_DOC'])[_0x59005b(0x334)](_0x4ac749[_0x59005b(0x2d2)](_0x42dbbf=>_0x42dbbf['getUnitId']())),this['_univerInstanceService']['getTypeOfUnitDisposed$'](_0x4cdaf4[_0x59005b(0x514)][_0x59005b(0x579)])['pipe'](_0x4ac749['map'](_0x4046c6=>_0x4046c6[_0x59005b(0x3d4)]())))[_0x59005b(0x29e)](_0x3569d7=>this[_0x59005b(0x557)](_0x3569d7)))));}[_0x57b986(0x51b)](_0x40c93e){const _0x2f7ce2=_0x57b986;this[_0x2f7ce2(0x2f9)][_0x2f7ce2(0x51b)](_0x40c93e);}[_0x57b986(0x227)](){const _0x539c48=_0x57b986;return this[_0x539c48(0x2f9)][_0x539c48(0x227)]();}['updateMember'](_0x2bfe64,_0x10cc25){let _0x43148f=this['_roomMembers']['get'](_0x2bfe64);_0x43148f||(_0x43148f=new _0x48b0c1(),this['_roomMembers']['set'](_0x2bfe64,_0x43148f)),_0x43148f['updateMember'](_0x10cc25);}[_0x57b986(0x570)](_0x5ad3d0,_0x20213f){const _0x1a2bc7=_0x57b986,_0x1be031=this[_0x1a2bc7(0x495)][_0x1a2bc7(0x408)](_0x5ad3d0);_0x1be031&&_0x1be031[_0x1a2bc7(0x570)](_0x20213f);}[_0x57b986(0x4ec)](_0x2444ce){const _0x2770bd=_0x57b986;return this[_0x2770bd(0x495)][_0x2770bd(0x408)](_0x2444ce);}[_0x57b986(0x44f)](_0x44b11e,_0x952636){const _0x1280fb=_0x57b986,_0x4e471a=this['_roomMembers'][_0x1280fb(0x408)](_0x44b11e);if(_0x4e471a)return _0x4e471a[_0x1280fb(0x44f)](_0x952636);}[_0x57b986(0x557)](_0x90c0f9){const _0xb3f683=_0x57b986,_0x3c6706=this[_0xb3f683(0x495)][_0xb3f683(0x408)](_0x90c0f9);_0x3c6706&&(_0x3c6706[_0xb3f683(0x46e)](),this[_0xb3f683(0x495)][_0xb3f683(0x391)](_0x90c0f9));}[_0x57b986(0x46e)](){const _0x5a897f=_0x57b986;this['_roomMembers'][_0x5a897f(0x2bc)](_0x4d938c=>_0x4d938c[_0x5a897f(0x46e)]()),this[_0x5a897f(0x495)][_0x5a897f(0x46b)]();}};_0x4495e7=_0x3006f3([_0x332ec9(0x0,_0x4cdaf4[_0x57b986(0x28e)]),_0x332ec9(0x1,_0x12925a[_0x57b986(0x42c)](_0x4cdaf4[_0x57b986(0x30a)]))],_0x4495e7);class _0x48b0c1 extends _0x4cdaf4[_0x57b986(0x310)]{constructor(){const _0x959e4e=_0x57b986;super(...arguments),_0x53d09f(this,_0x959e4e(0x3c3),new Map());}[_0x57b986(0x46e)](){const _0x5daf0a=_0x57b986;this[_0x5daf0a(0x3c3)][_0x5daf0a(0x46b)]();}['updateMember'](_0x2abb50){const _0x583848=_0x57b986;this[_0x583848(0x3c3)][_0x583848(0x2c3)](_0x2abb50[_0x583848(0x537)],_0x2abb50);}[_0x57b986(0x570)](_0x37c1c0){const _0x2fb621=_0x57b986;this[_0x2fb621(0x3c3)][_0x2fb621(0x391)](_0x37c1c0);}[_0x57b986(0x44f)](_0x4c63bc){const _0x178728=_0x57b986;return this[_0x178728(0x3c3)]['get'](_0x4c63bc);}}function _0x4e7170(_0x14928a){const _0x136503=_0x57b986;var _0x24af05,_0x472251,_0x2c3cca,_0x38f86a;const _0x15b659=_0x14928a[_0x136503(0x4a7)],_0xb5d00b=JSON[_0x136503(0x4d5)](_0x15b659);switch(_0xb5d00b[_0x136503(0x2e6)]){case _0x1ab374[_0x136503(0x36f)]:case _0x1ab374['HELLO']:{const _0x2c0445=_0xb5d00b[_0x136503(0x207)];return{..._0xb5d00b,'data':_0x2c0445,'cmd':_0xb5d00b[_0x136503(0x2e6)]};}case _0x1ab374[_0x136503(0x2e0)]:{const _0x313b55=_0xb5d00b[_0x136503(0x434)];return{..._0xb5d00b,'data':_0x313b55,'cmd':_0xb5d00b[_0x136503(0x2e6)]};}case _0x1ab374[_0x136503(0x24d)]:{const _0x3312ed=_0xb5d00b[_0x136503(0x48e)];switch(_0x3312ed[_0x136503(0x558)]){case _0x329b63[_0x136503(0x3dc)][_0x136503(0x271)]:return{..._0xb5d00b,'data':{..._0x3312ed,'data':(_0x24af05=_0x3312ed[_0x136503(0x4c3)])==null?void 0x0:_0x24af05['cs']},'cmd':_0xb5d00b[_0x136503(0x2e6)]};case _0x329b63[_0x136503(0x3dc)][_0x136503(0x396)]:return{..._0xb5d00b,'data':{..._0x3312ed,'data':(_0x472251=_0x3312ed[_0x136503(0x41d)])==null?void 0x0:_0x472251['cs']},'cmd':_0xb5d00b[_0x136503(0x2e6)]};case _0x329b63['CollaborationEvent']['NEW_CHANGESETS']:return{..._0xb5d00b,'data':{..._0x3312ed,'data':(_0x2c3cca=_0x3312ed['newCsEvent'])==null?void 0x0:_0x2c3cca['cs']},'cmd':_0xb5d00b[_0x136503(0x2e6)]};case _0x329b63[_0x136503(0x3dc)][_0x136503(0x429)]:return{..._0xb5d00b,'data':{..._0x3312ed,'data':(_0x38f86a=_0x3312ed[_0x136503(0x569)])==null?void 0x0:_0x38f86a['cs']},'cmd':_0xb5d00b[_0x136503(0x2e6)]};case _0x329b63[_0x136503(0x3dc)][_0x136503(0x2c9)]:return{..._0xb5d00b,'data':{..._0x3312ed,'data':_0x3312ed[_0x136503(0x444)]},'cmd':_0xb5d00b[_0x136503(0x2e6)]};case _0x329b63[_0x136503(0x3dc)]['USERS_ENTER']:return{..._0xb5d00b,'data':{..._0x3312ed,'data':_0x3312ed[_0x136503(0x2e5)]},'cmd':_0xb5d00b[_0x136503(0x2e6)]};case _0x329b63['CollaborationEvent']['USERS_LEAVE']:return{..._0xb5d00b,'data':{..._0x3312ed,'data':_0x3312ed[_0x136503(0x348)]},'cmd':_0xb5d00b['cmd']};case _0x329b63['CollaborationEvent'][_0x136503(0x47f)]:return{..._0xb5d00b,'data':{..._0x3312ed,'data':_0x3312ed[_0x136503(0x4c7)]},'cmd':_0xb5d00b[_0x136503(0x2e6)]};case _0x329b63[_0x136503(0x3dc)][_0x136503(0x51c)]:case _0x329b63[_0x136503(0x3dc)]['LIVESHARE_OPERATION']:return{..._0xb5d00b,'data':{..._0x3312ed,'data':_0x3312ed[_0x136503(0x3cf)]},'cmd':_0xb5d00b[_0x136503(0x2e6)]};case _0x329b63[_0x136503(0x3dc)][_0x136503(0x37c)]:return{..._0xb5d00b,'data':{..._0x3312ed,'data':_0x3312ed[_0x136503(0x4c7)]},'cmd':_0xb5d00b['cmd']};case _0x329b63[_0x136503(0x3dc)][_0x136503(0x325)]:return{..._0xb5d00b,'data':_0x3312ed,'cmd':_0xb5d00b[_0x136503(0x2e6)]};default:return _0xb5d00b;}}default:return _0xb5d00b;}}function _0x573082(_0xc3257c){const _0x326425=_0x57b986;switch(_0xc3257c[_0x326425(0x2e6)]){case _0x1ab374[_0x326425(0x36f)]:case _0x1ab374['HELLO']:return JSON[_0x326425(0x528)]({'cmd':_0xc3257c[_0x326425(0x2e6)],'routeKey':_0xc3257c[_0x326425(0x4da)]});case _0x1ab374[_0x326425(0x351)]:{let _0x4ed452;switch(_0xc3257c[_0x326425(0x4a7)][_0x326425(0x558)]){case _0x329b63[_0x326425(0x3dc)]['UPDATE_CURSOR']:{_0x4ed452={'eventID':_0x329b63[_0x326425(0x3dc)][_0x326425(0x2c9)],'updateCursorEvent':_0xc3257c[_0x326425(0x4a7)]['data']};break;}case _0x329b63['CollaborationEvent'][_0x326425(0x1f0)]:{_0x4ed452={'eventID':_0x329b63[_0x326425(0x3dc)]['USERS_LEAVE'],'leaveEvent':_0xc3257c[_0x326425(0x4a7)]['data']};break;}case _0x329b63['CollaborationEvent'][_0x326425(0x480)]:{_0x4ed452={'eventID':_0x329b63[_0x326425(0x3dc)][_0x326425(0x480)],'joinEvent':_0xc3257c[_0x326425(0x4a7)][_0x326425(0x4a7)]};break;}case _0x329b63[_0x326425(0x3dc)]['LIVESHARE_NEW_HOST']:{_0x4ed452={'eventID':_0x329b63[_0x326425(0x3dc)]['LIVESHARE_NEW_HOST'],'liveShareNewHost':_0xc3257c[_0x326425(0x4a7)][_0x326425(0x4a7)]};break;}case _0x329b63[_0x326425(0x3dc)]['LIVESHARE_OPERATION']:{_0x4ed452={'eventID':_0x329b63[_0x326425(0x3dc)][_0x326425(0x219)],'liveShareOperation':_0xc3257c[_0x326425(0x4a7)][_0x326425(0x4a7)]};break;}case _0x329b63[_0x326425(0x3dc)][_0x326425(0x37c)]:{_0x4ed452={'eventID':_0x329b63[_0x326425(0x3dc)]['LIVESHARE_TERMINATE'],'liveShareTerminate':_0xc3257c['data'][_0x326425(0x4a7)]};break;}case _0x329b63['CollaborationEvent'][_0x326425(0x376)]:{_0x4ed452={'eventID':_0x329b63['CollaborationEvent'][_0x326425(0x376)],'liveShareRequestHost':_0xc3257c['data']['data']};break;}case _0x329b63[_0x326425(0x3dc)][_0x326425(0x51c)]:{_0x4ed452={'eventID':_0x329b63[_0x326425(0x3dc)][_0x326425(0x51c)]};break;}default:_0x4ed452={'eventID':_0xc3257c[_0x326425(0x4a7)][_0x326425(0x558)]};}return JSON[_0x326425(0x528)]({'cmd':_0xc3257c[_0x326425(0x2e6)],'routeKey':_0xc3257c['routeKey'],'collaMsg':_0x4ed452});}case _0x1ab374[_0x326425(0x2e0)]:return JSON[_0x326425(0x528)]({'cmd':_0xc3257c[_0x326425(0x2e6)],'routeKey':_0xc3257c[_0x326425(0x4da)],'joinReq':_0xc3257c[_0x326425(0x4a7)]});case _0x1ab374['LEAVE']:return JSON[_0x326425(0x528)]({'cmd':_0xc3257c[_0x326425(0x2e6)],'routeKey':_0xc3257c[_0x326425(0x4da)],'leaveReq':_0xc3257c[_0x326425(0x4a7)]});default:throw new Error(_0x326425(0x43b));}}var _0x4bd5cb=Object['defineProperty'],_0x21f6e5=Object['getOwnPropertyDescriptor'],_0x4bbf72=(_0x37deef,_0x57ac4f,_0x442538,_0x3d4143)=>{const _0x32a251=_0x57b986;for(var _0x23492d=_0x3d4143>0x1?void 0x0:_0x3d4143?_0x21f6e5(_0x57ac4f,_0x442538):_0x57ac4f,_0x3dbff2=_0x37deef[_0x32a251(0x397)]-0x1,_0x5922c5;_0x3dbff2>=0x0;_0x3dbff2--)(_0x5922c5=_0x37deef[_0x3dbff2])&&(_0x23492d=(_0x3d4143?_0x5922c5(_0x57ac4f,_0x442538,_0x23492d):_0x5922c5(_0x23492d))||_0x23492d);return _0x3d4143&&_0x23492d&&_0x4bd5cb(_0x57ac4f,_0x442538,_0x23492d),_0x23492d;},_0x54ea29=(_0x51dfa7,_0x5f3abc)=>(_0x1f6d2d,_0x329aa4)=>_0x5f3abc(_0x1f6d2d,_0x329aa4,_0x51dfa7);const _0x20ab21=_0x12925a[_0x57b986(0x249)](_0x57b986(0x23a));function _0x248c50(_0x3eff7b,_0x293a23,_0x2cdca4){return _0x3eff7b+'/'+_0x293a23+'/unit/'+_0x2cdca4+'/new_changes';}_0x3f3314[_0x57b986(0x4a5)]=class{constructor(_0x22b26d,_0x157797,_0x5a49e2,_0x422464,_0xd6c2d6){const _0x237850=_0x57b986;this[_0x237850(0x38e)]=_0x22b26d,this[_0x237850(0x572)]=_0x157797,this[_0x237850(0x323)]=_0x5a49e2,this[_0x237850(0x314)]=_0x422464,this[_0x237850(0x1e8)]=_0xd6c2d6;}[_0x57b986(0x210)](_0x4cf21f){const _0x19ecad=_0x57b986,_0x3976a7=this[_0x19ecad(0x572)][_0x19ecad(0x210)](_0x4cf21f);if(!_0x3976a7)throw new Error(_0x19ecad(0x2f3));const _0x2f74a1=new _0x4cdaf4[(_0x19ecad(0x392))](),_0x2c4f27=new _0x4bb16b[(_0x19ecad(0x42d))]();_0x2f74a1[_0x19ecad(0x2b7)](_0x4cdaf4[_0x19ecad(0x56b)](_0x3976a7['close$'][_0x19ecad(0x29e)](_0x246393=>_0x2c4f27[_0x19ecad(0x1bd)](_0x246393)))),_0x2f74a1['add'](_0x4cdaf4[_0x19ecad(0x56b)](()=>_0x2c4f27[_0x19ecad(0x461)]()));const _0x1762fb=new _0x4bb16b[(_0x19ecad(0x42d))]();_0x2f74a1[_0x19ecad(0x2b7)](_0x4cdaf4[_0x19ecad(0x56b)](_0x3976a7[_0x19ecad(0x525)][_0x19ecad(0x29e)](_0x35beb5=>_0x1762fb[_0x19ecad(0x1bd)](_0x35beb5)))),_0x2f74a1[_0x19ecad(0x2b7)](_0x4cdaf4[_0x19ecad(0x56b)](()=>_0x1762fb[_0x19ecad(0x461)]()));const _0x5f35c8=new _0x4bb16b[(_0x19ecad(0x42d))]();_0x2f74a1[_0x19ecad(0x2b7)](_0x4cdaf4['toDisposable'](_0x3976a7[_0x19ecad(0x543)]['subscribe'](_0x5842c4=>{const _0x505557=_0x19ecad,_0x272667=_0x4e7170(_0x5842c4);_0x5f35c8[_0x505557(0x1bd)](_0x272667);}))),_0x2f74a1[_0x19ecad(0x2b7)](_0x4cdaf4[_0x19ecad(0x56b)](()=>_0x5f35c8[_0x19ecad(0x461)]()));const _0x20f693=()=>{const _0xae61c=_0x19ecad;_0x1762fb['next'](new Event(_0xae61c(0x283))),_0x2c4f27[_0xae61c(0x1bd)](new CloseEvent(_0xae61c(0x283))),_0x1e973e[_0xae61c(0x542)]();},_0x1e973e={'memberID':'','close$':_0x2c4f27[_0x19ecad(0x534)](),'error$':_0x1762fb[_0x19ecad(0x534)](),'open$':_0x3976a7[_0x19ecad(0x45b)],'message$':_0x5f35c8[_0x19ecad(0x534)](),'send':_0x378e67=>{const _0x17414c=_0x19ecad;if(_0x378e67[_0x17414c(0x2e6)]===_0x1ab374[_0x17414c(0x351)]){if(_0x378e67['data'][_0x17414c(0x558)]===_0x329b63[_0x17414c(0x3dc)]['SUBMIT_CHANGESET']){this[_0x17414c(0x307)](_0x1e973e,_0x378e67[_0x17414c(0x4a7)])[_0x17414c(0x383)](_0x4b7fea=>{const _0x2df088=_0x17414c;this['_logService'][_0x2df088(0x4a4)](_0x4b7fea),_0x20f693();});return;}if(_0x378e67[_0x17414c(0x4a7)][_0x17414c(0x558)]===_0x329b63[_0x17414c(0x3dc)][_0x17414c(0x355)]){const _0x2b0fac=_0x378e67[_0x17414c(0x4a7)];this['_fetchMissChangesets'](_0x2b0fac)[_0x17414c(0x4c6)](_0x23fb44=>{const _0x20e692=_0x17414c;_0x5f35c8[_0x20e692(0x1bd)]({'cmd':_0x1ab374[_0x20e692(0x24d)],'code':_0x401f1c['OK'],'routeKey':_0x2b0fac['data'][_0x20e692(0x40f)],'routeType':'','data':{'eventID':_0x329b63[_0x20e692(0x3dc)][_0x20e692(0x430)],'data':{'changesets':_0x23fb44}}});})['catch'](_0x5b8c16=>{const _0x4d3a6b=_0x17414c;this[_0x4d3a6b(0x314)]['error'](_0x5b8c16),_0x20f693();});return;}}_0x3976a7[_0x17414c(0x4aa)](_0x573082(_0x378e67));},'close':()=>{const _0x2a13e5=_0x19ecad;_0x3976a7['close'](),_0x2f74a1[_0x2a13e5(0x46e)]();}};return _0x1e973e;}async[_0x57b986(0x307)](_0x36e1b0,_0x4cbeba){const _0x4ade6a=_0x57b986;var _0x2174a8;const {unitType:_0x258de9,unitID:_0xc2c26,changeset:_0x1dae77}=_0x4cbeba['data'],_0x6fbdb3={'unitID':_0xc2c26,'memberID':_0x36e1b0[_0x4ade6a(0x537)],'type':_0x258de9,'changeset':_0x329b63[_0x4ade6a(0x298)](_0x1dae77)},_0xdc0bc=_0x248c50((_0x2174a8=this[_0x4ade6a(0x323)][_0x4ade6a(0x51f)](_0x3050c7))!=null?_0x2174a8:_0xf9a59b,_0x258de9,_0xc2c26);try{await this[_0x4ade6a(0x38e)][_0x4ade6a(0x45d)](_0xdc0bc,{'body':_0x6fbdb3});}catch(_0x1b3b96){throw this['_logService'][_0x4ade6a(0x4a4)](_0x4ade6a(0x30c),_0x4ade6a(0x375)),_0x1b3b96;}}async[_0x57b986(0x425)](_0x4c6691){const _0xe55740=_0x57b986,{unitID:_0x118e48,from:_0x4ced83,to:_0x185985,unitType:_0x286852}=_0x4c6691[_0xe55740(0x4a7)];return(await this[_0xe55740(0x1e8)][_0xe55740(0x305)]({'metadata':void 0x0},{'unitID':_0x118e48,'type':_0x286852,'from':_0x4ced83,'to':_0x185985}))[_0xe55740(0x2ce)];}},_0x3f3314[_0x57b986(0x4a5)]=_0x4bbf72([_0x54ea29(0x0,_0x12925a[_0x57b986(0x42c)](_0xfde0ab[_0x57b986(0x280)])),_0x54ea29(0x1,_0x12925a[_0x57b986(0x42c)](_0xfde0ab['WebSocketService'])),_0x54ea29(0x2,_0x4cdaf4[_0x57b986(0x4f1)]),_0x54ea29(0x3,_0x4cdaf4[_0x57b986(0x41c)]),_0x54ea29(0x4,_0x4cdaf4[_0x57b986(0x3ea)])],_0x3f3314[_0x57b986(0x4a5)]);var _0x37ac7e=Object[_0x57b986(0x1f4)],_0x49ccb3=Object[_0x57b986(0x405)],_0xc86922=(_0x65f0d1,_0x1a66a9,_0x123dd2,_0x1c22c6)=>{const _0x206d8c=_0x57b986;for(var _0x56fb3e=_0x1c22c6>0x1?void 0x0:_0x1c22c6?_0x49ccb3(_0x1a66a9,_0x123dd2):_0x1a66a9,_0x3b7a86=_0x65f0d1[_0x206d8c(0x397)]-0x1,_0xfc54b5;_0x3b7a86>=0x0;_0x3b7a86--)(_0xfc54b5=_0x65f0d1[_0x3b7a86])&&(_0x56fb3e=(_0x1c22c6?_0xfc54b5(_0x1a66a9,_0x123dd2,_0x56fb3e):_0xfc54b5(_0x56fb3e))||_0x56fb3e);return _0x1c22c6&&_0x56fb3e&&_0x37ac7e(_0x1a66a9,_0x123dd2,_0x56fb3e),_0x56fb3e;},_0x4b46e7=(_0x4e5012,_0x5dd051)=>(_0x2bcf71,_0x3d5019)=>_0x5dd051(_0x2bcf71,_0x3d5019,_0x4e5012),_0x585a5c=(_0x3dd872=>(_0x3dd872[_0x3dd872[_0x57b986(0x33b)]=0x0]=_0x57b986(0x33b),_0x3dd872[_0x3dd872[_0x57b986(0x236)]=0x1]=_0x57b986(0x236),_0x3dd872[_0x3dd872[_0x57b986(0x26f)]=0x2]=_0x57b986(0x26f),_0x3dd872[_0x3dd872[_0x57b986(0x1c1)]=0x3]='ONLINE',_0x3dd872))(_0x585a5c||{});_0x3f3314[_0x57b986(0x4d7)]=class extends _0x4cdaf4[_0x57b986(0x499)]{constructor(_0x56ee23,_0x1f192e,_0x53a19c,_0x11cdd8,_0x297276,_0x54cc25,_0x4e8ecc,_0x59b673){const _0xb51d5f=_0x57b986;super(),_0x53d09f(this,'_sessionStatus$',new _0x4bb16b[(_0xb51d5f(0x2e9))](0x0)),_0x53d09f(this,_0xb51d5f(0x46d),this['_sessionStatus$'][_0xb51d5f(0x534)]()),_0x53d09f(this,_0xb51d5f(0x259),new _0x4bb16b[(_0xb51d5f(0x42d))]()),_0x53d09f(this,_0xb51d5f(0x24c),this['_event$'][_0xb51d5f(0x534)]()),_0x53d09f(this,'_socket'),_0x53d09f(this,_0xb51d5f(0x460)),_0x53d09f(this,_0xb51d5f(0x48d)),(this[_0xb51d5f(0x456)]=_0x56ee23,this[_0xb51d5f(0x314)]=_0x53a19c,this[_0xb51d5f(0x212)]=_0x11cdd8,this['_messageService']=_0x297276,this[_0xb51d5f(0x323)]=_0x54cc25,this[_0xb51d5f(0x247)]=_0x4e8ecc,this[_0xb51d5f(0x1d3)]=_0x59b673,_0x1f192e[_0xb51d5f(0x334)](_0x4ac749['takeUntil'](this[_0xb51d5f(0x2e3)]))[_0xb51d5f(0x29e)](_0x39502a=>{const _0x13f907=_0xb51d5f;var _0xacdefa;typeof _0x39502a>'u'||(this[_0x13f907(0x453)]=_0x39502a,_0x39502a?(this[_0x13f907(0x311)](_0x39502a),this[_0x13f907(0x460)]=this[_0x13f907(0x453)][_0x13f907(0x543)][_0x13f907(0x29e)](_0x301622=>{const _0x595edd=_0x13f907;_0x301622[_0x595edd(0x4da)]===this['_unitID']&&this['_onCombEvent'](_0x301622);})):(this['_sessionStatus$'][_0x13f907(0x1bd)](0x2),(_0xacdefa=this[_0x13f907(0x460)])==null||_0xacdefa['unsubscribe'](),this['_socketMessageSubscription']=null));}),this['disposeWithMe'](this[_0xb51d5f(0x212)][_0xb51d5f(0x4d3)](()=>{const _0x3f2df8=_0xb51d5f;var _0x155a6a;(_0x155a6a=this[_0x3f2df8(0x453)])==null||_0x155a6a[_0x3f2df8(0x4aa)]({'cmd':_0x1ab374[_0x3f2df8(0x29b)],'data':{'roomID':this[_0x3f2df8(0x456)]}});})));}get[_0x57b986(0x2b1)](){const _0x16159f=_0x57b986;return this['_sessionStatus$'][_0x16159f(0x424)]();}[_0x57b986(0x46a)](){var _0x11dd7e,_0x2aa8a3;return(_0x2aa8a3=(_0x11dd7e=this['_socket'])==null?void 0x0:_0x11dd7e['memberID'])!=null?_0x2aa8a3:null;}[_0x57b986(0x46e)](){const _0x46eada=_0x57b986;super[_0x46eada(0x46e)](),this[_0x46eada(0x2e3)][_0x46eada(0x1bd)](),this[_0x46eada(0x2e3)][_0x46eada(0x461)]();}[_0x57b986(0x539)](_0x42283e){const _0x565c03=_0x57b986;_0x42283e['cmd']===_0x1ab374[_0x565c03(0x2e0)]?this[_0x565c03(0x56c)](_0x42283e):_0x42283e[_0x565c03(0x2e6)]===_0x1ab374[_0x565c03(0x24d)]&&this[_0x565c03(0x237)](_0x42283e);}[_0x57b986(0x311)](_0x3d2524){const _0x445c2a=_0x57b986;this[_0x445c2a(0x39f)][_0x445c2a(0x1bd)](0x1),_0x3d2524['send']({'cmd':_0x1ab374[_0x445c2a(0x2e0)],'routeKey':this[_0x445c2a(0x456)],'routeType':'','data':{'rooms':[{'roomID':this[_0x445c2a(0x456)]}]}});}['_onJoinRoomEvent'](_0x1d666e){const _0x46a7ec=_0x57b986;var _0x2ae3f0;if(_0x1d666e[_0x46a7ec(0x35d)]===_0x401f1c['FAIL']){this[_0x46a7ec(0x2fc)]['show']({'type':_0x4fb88a['MessageType'][_0x46a7ec(0x2bb)],'content':this[_0x46a7ec(0x247)]['t']('session.room-full')}),this[_0x46a7ec(0x39f)][_0x46a7ec(0x1bd)](0x2);return;}this[_0x46a7ec(0x39f)][_0x46a7ec(0x1bd)](0x3);const _0x4af070=(_0x2ae3f0=_0x1d666e[_0x46a7ec(0x4a7)][_0x46a7ec(0x3dd)][this[_0x46a7ec(0x456)]])==null?void 0x0:_0x2ae3f0[_0x46a7ec(0x36e)];_0x4af070&&_0x4af070['forEach'](_0x1ebbb1=>this['_memberService'][_0x46a7ec(0x3f7)](this['_unitID'],_0x1ebbb1));}[_0x57b986(0x237)](_0x19b392){const _0x1d3292=_0x57b986;try{const _0x156774=_0x19b392[_0x1d3292(0x4a7)];switch(_0x156774[_0x1d3292(0x558)]){case _0x329b63[_0x1d3292(0x3dc)]['USERS_ENTER']:this[_0x1d3292(0x3bf)](_0x156774),this['_event$'][_0x1d3292(0x1bd)](_0x156774);break;case _0x329b63[_0x1d3292(0x3dc)][_0x1d3292(0x1f0)]:this[_0x1d3292(0x486)](_0x156774),this[_0x1d3292(0x259)][_0x1d3292(0x1bd)](_0x156774);break;case _0x329b63[_0x1d3292(0x3dc)][_0x1d3292(0x396)]:this[_0x1d3292(0x37e)](),this[_0x1d3292(0x259)]['next'](_0x156774);break;case _0x329b63['CollaborationEvent']['MSG_FOR_ERROR']:this['_logService'][_0x1d3292(0x4a4)]('save\x20fail\x20reason\x20is\x20'+JSON[_0x1d3292(0x528)](_0x156774)),this[_0x1d3292(0x259)][_0x1d3292(0x1bd)](_0x156774);break;default:this[_0x1d3292(0x259)]['next'](_0x156774);}}catch(_0x54331b){this[_0x1d3292(0x314)][_0x1d3292(0x4a4)](_0x54331b,_0x19b392);}}[_0x57b986(0x3bf)](_0xeb99d2){const _0x376abd=_0x57b986;this[_0x376abd(0x1d3)]['updateMember'](this['_unitID'],_0xeb99d2['data']);}[_0x57b986(0x486)](_0x582ef0){const _0x306404=_0x57b986;this[_0x306404(0x1d3)]['removeMember'](this[_0x306404(0x456)],_0x582ef0['data'][_0x306404(0x537)]);}async[_0x57b986(0x4aa)](_0x54b42b,_0x92bc80){const _0x2002c5=_0x57b986;if(this[_0x2002c5(0x2b1)]!==0x3||!this[_0x2002c5(0x453)])throw new Error(_0x2002c5(0x25d));try{_0x54b42b['eventID']===_0x329b63['CollaborationEvent'][_0x2002c5(0x345)]&&this[_0x2002c5(0x320)](),this[_0x2002c5(0x453)]['send']({'cmd':_0x1ab374[_0x2002c5(0x351)],'routeKey':_0x92bc80,'routeType':'','data':_0x54b42b});}catch(_0x576c82){this[_0x2002c5(0x314)][_0x2002c5(0x4a4)](_0x576c82);}}[_0x57b986(0x320)](){const _0x495dbc=_0x57b986;var _0x40ac63;this[_0x495dbc(0x48d)]=window['setTimeout'](()=>{const _0x497793=_0x495dbc;this[_0x497793(0x48d)]=null,this[_0x497793(0x2fc)]['show']({'type':_0x4fb88a[_0x497793(0x2af)][_0x497793(0x4a2)],'content':this[_0x497793(0x247)]['t'](_0x497793(0x511))});},(_0x40ac63=this['_configService'][_0x495dbc(0x51f)](_0x3287b4))!=null?_0x40ac63:0x2710);}[_0x57b986(0x37e)](){const _0x12eb57=_0x57b986;this[_0x12eb57(0x48d)]&&(clearTimeout(this[_0x12eb57(0x48d)]),this['_collaborationTimeoutTimer']=null);}},_0x3f3314['CollaborationSession']=_0xc86922([_0x4b46e7(0x2,_0x4cdaf4[_0x57b986(0x41c)]),_0x4b46e7(0x3,_0x4ff465[_0x57b986(0x3d0)]),_0x4b46e7(0x4,_0x4ff465['IMessageService']),_0x4b46e7(0x5,_0x4cdaf4[_0x57b986(0x4f1)]),_0x4b46e7(0x6,_0x12925a[_0x57b986(0x42c)](_0x4cdaf4[_0x57b986(0x502)])),_0x4b46e7(0x7,_0x12925a['Inject'](_0x4495e7))],_0x3f3314[_0x57b986(0x4d7)]),_0x3f3314['CollaborationSessionService']=class extends _0x4cdaf4['Disposable']{constructor(_0x81fda5,_0x49543f,_0x2ec5fe,_0x5ccc4a,_0x325135,_0x4251d0){const _0x4608ad=_0x57b986;super(),_0x53d09f(this,_0x4608ad(0x3fe),new _0x4bb16b[(_0x4608ad(0x2e9))](void 0x0)),_0x53d09f(this,_0x4608ad(0x417),new Map()),_0x53d09f(this,_0x4608ad(0x488),new _0x4bb16b[(_0x4608ad(0x2e9))](0x0)),_0x53d09f(this,_0x4608ad(0x37b),this[_0x4608ad(0x488)]['asObservable']()),_0x53d09f(this,_0x4608ad(0x312),!0x1),_0x53d09f(this,_0x4608ad(0x2f0)),_0x53d09f(this,_0x4608ad(0x26e)),_0x53d09f(this,_0x4608ad(0x43e)),_0x53d09f(this,_0x4608ad(0x203),0x0),(this[_0x4608ad(0x260)]=_0x81fda5,this[_0x4608ad(0x247)]=_0x49543f,this['_messageService']=_0x2ec5fe,this[_0x4608ad(0x314)]=_0x5ccc4a,this['_configService']=_0x325135,this[_0x4608ad(0x1c7)]=_0x4251d0);}get[_0x57b986(0x453)](){const _0x39ec6d=_0x57b986;return this[_0x39ec6d(0x3fe)][_0x39ec6d(0x424)]();}['dispose'](){const _0x2e5119=_0x57b986;super[_0x2e5119(0x46e)](),this[_0x2e5119(0x417)][_0x2e5119(0x2bc)](_0x11f2ec=>_0x11f2ec[_0x2e5119(0x46e)]()),this['_sessions']['clear'](),this[_0x2e5119(0x488)][_0x2e5119(0x461)]();}async[_0x57b986(0x50a)](_0x883a3){const _0x3abd8e=_0x57b986;if(this[_0x3abd8e(0x417)]['has'](_0x883a3))return this[_0x3abd8e(0x417)][_0x3abd8e(0x408)](_0x883a3);this[_0x3abd8e(0x4f2)]();const _0x2ad05c=this[_0x3abd8e(0x260)][_0x3abd8e(0x545)](_0x3f3314[_0x3abd8e(0x4d7)],_0x883a3,this['_socket$'][_0x3abd8e(0x534)]());return this[_0x3abd8e(0x417)]['set'](_0x883a3,_0x2ad05c),_0x2ad05c;}[_0x57b986(0x50b)](){const _0x541765=_0x57b986;var _0x3f15f3;const _0x301468=(_0x3f15f3=this[_0x541765(0x323)][_0x541765(0x51f)](_0x28607c))!=null?_0x3f15f3:_0x5d6701;return this['_socketService']['createSocket'](_0x301468);}[_0x57b986(0x4f2)](){const _0x1976d6=_0x57b986;try{const _0x3182eb=this['_createSocket']();if(_0x3182eb){const _0x1b8b29=_0x3182eb[_0x1976d6(0x4aa)];_0x3182eb[_0x1976d6(0x4aa)]=_0x5658e8=>(this[_0x1976d6(0x2cc)](),_0x1b8b29[_0x1976d6(0x3ca)](_0x3182eb,[_0x5658e8])),_0x3182eb[_0x1976d6(0x543)][_0x1976d6(0x29e)](_0x45f96e=>this[_0x1976d6(0x1e2)](_0x3182eb,_0x45f96e)),_0x3182eb['error$']['pipe'](_0x4ac749['take'](0x1))[_0x1976d6(0x29e)](_0x31b31c=>this['_logService'][_0x1976d6(0x4a4)](_0x1976d6(0x4ca),_0x31b31c)),_0x3182eb[_0x1976d6(0x45b)]['pipe'](_0x4ac749[_0x1976d6(0x3bc)](0x1))[_0x1976d6(0x29e)](()=>{const _0x2432b0=_0x1976d6;this[_0x2432b0(0x2d4)](_0x3182eb);}),_0x3182eb[_0x1976d6(0x1e3)][_0x1976d6(0x334)](_0x4ac749[_0x1976d6(0x3bc)](0x1))[_0x1976d6(0x29e)](_0x2e49b6=>{const _0x328f8c=_0x1976d6;this[_0x328f8c(0x314)]['debug']('[CollaborationSessionService]',_0x328f8c(0x300),_0x2e49b6),this['_onConnectionFailed']();});}}catch(_0x339053){this[_0x1976d6(0x314)][_0x1976d6(0x4a4)](_0x339053),this[_0x1976d6(0x40d)]();}}[_0x57b986(0x2d4)](_0x34e106){const _0x2c129e=_0x57b986;this[_0x2c129e(0x314)][_0x2c129e(0x1fa)](_0x2c129e(0x3d1),_0x2c129e(0x1f9)),_0x34e106[_0x2c129e(0x4aa)]({'cmd':_0x1ab374[_0x2c129e(0x261)]}),this[_0x2c129e(0x2cc)]();}[_0x57b986(0x40d)](){const _0x234938=_0x57b986;var _0x287846;this[_0x234938(0x488)][_0x234938(0x1bd)](0x2),this[_0x234938(0x3fe)][_0x234938(0x1bd)](null),this[_0x234938(0x1ef)](),this[_0x234938(0x3b4)](),this[_0x234938(0x312)]=!0x1,this[_0x234938(0x203)]<((_0x287846=this[_0x234938(0x323)][_0x234938(0x51f)](_0x31e01f))!=null?_0x287846:0x3)?(this['_scheduleReconnection'](this[_0x234938(0x203)]),this[_0x234938(0x203)]+=0x1):this[_0x234938(0x2fc)]['show']({'type':_0x4fb88a[_0x234938(0x2af)]['Error'],'content':this[_0x234938(0x247)]['t'](_0x234938(0x34b))});}['_scheduleReconnection'](_0x5578c1){const _0x307108=_0x57b986;var _0x19454f;const _0x46f72d=((_0x19454f=this[_0x307108(0x323)][_0x307108(0x51f)](_0x192ae1))!=null?_0x19454f:0x4e20)*0x2**_0x5578c1;this[_0x307108(0x2fc)]['show']({'type':_0x4fb88a[_0x307108(0x2af)][_0x307108(0x2bb)],'content':this[_0x307108(0x247)]['t'](_0x307108(0x449))}),this[_0x307108(0x43e)]=setTimeout(()=>{const _0x493976=_0x307108;this[_0x493976(0x4f2)](),clearTimeout(this[_0x493976(0x43e)]),this[_0x493976(0x43e)]=null;},_0x46f72d);}['_rescheduleHeartbeatEvent'](){const _0x424977=_0x57b986;var _0x83a64;this['_clearHeartbeatTimer'](),this[_0x424977(0x2f0)]=setTimeout(()=>this[_0x424977(0x517)](),(_0x83a64=this['_configService']['getConfig'](_0x1e7060))!=null?_0x83a64:0x7530);}[_0x57b986(0x517)](){const _0x1260c3=_0x57b986;this['_socket'][_0x1260c3(0x4aa)]({'cmd':_0x1ab374[_0x1260c3(0x36f)]}),this[_0x1260c3(0x1ce)]();}[_0x57b986(0x1ce)](){const _0x2e5a8e=_0x57b986;var _0x37b658;this[_0x2e5a8e(0x26e)]=setTimeout(()=>this[_0x2e5a8e(0x40d)](),(_0x37b658=this[_0x2e5a8e(0x323)]['getConfig'](_0x3287b4))!=null?_0x37b658:0x2710);}['_onMessage'](_0x5678f0,_0x2ad5d2){const _0x2ca87f=_0x57b986,{cmd:_0x51f353}=_0x2ad5d2;_0x51f353===_0x1ab374['HELLO']&&!this[_0x2ca87f(0x312)]&&(_0x5678f0[_0x2ca87f(0x537)]=_0x2ad5d2['data'][_0x2ca87f(0x537)],this[_0x2ca87f(0x3fe)][_0x2ca87f(0x1bd)](_0x5678f0),this['_status$']['next'](0x3),this[_0x2ca87f(0x312)]=!0x0),_0x51f353===_0x1ab374[_0x2ca87f(0x36f)]&&this[_0x2ca87f(0x1ef)](),this[_0x2ca87f(0x2cc)]();}[_0x57b986(0x3b4)](){const _0x206829=_0x57b986;this[_0x206829(0x2f0)]!=null&&(clearTimeout(this[_0x206829(0x2f0)]),this['_sendHeartbeatTimer']=null);}['_clearTimeoutTimer'](){const _0x5ad763=_0x57b986;this[_0x5ad763(0x26e)]!=null&&(clearTimeout(this[_0x5ad763(0x26e)]),this[_0x5ad763(0x26e)]=null);}},_0x3f3314[_0x57b986(0x48c)]=_0xc86922([_0x4b46e7(0x0,_0x12925a['Inject'](_0x12925a[_0x57b986(0x52f)])),_0x4b46e7(0x1,_0x12925a[_0x57b986(0x42c)](_0x4cdaf4[_0x57b986(0x502)])),_0x4b46e7(0x2,_0x4ff465[_0x57b986(0x27e)]),_0x4b46e7(0x3,_0x4cdaf4[_0x57b986(0x41c)]),_0x4b46e7(0x4,_0x4cdaf4['IConfigService']),_0x4b46e7(0x5,_0x20ab21)],_0x3f3314[_0x57b986(0x48c)]);var _0x2d8902=Object[_0x57b986(0x1f4)],_0x24f805=Object['getOwnPropertyDescriptor'],_0x3aed3d=(_0x537699,_0x181060,_0x3b57a8,_0x430929)=>{const _0x420df8=_0x57b986;for(var _0x54e189=_0x430929>0x1?void 0x0:_0x430929?_0x24f805(_0x181060,_0x3b57a8):_0x181060,_0x250dba=_0x537699[_0x420df8(0x397)]-0x1,_0x2f0351;_0x250dba>=0x0;_0x250dba--)(_0x2f0351=_0x537699[_0x250dba])&&(_0x54e189=(_0x430929?_0x2f0351(_0x181060,_0x3b57a8,_0x54e189):_0x2f0351(_0x54e189))||_0x54e189);return _0x430929&&_0x54e189&&_0x2d8902(_0x181060,_0x3b57a8,_0x54e189),_0x54e189;},_0x4a91e0=(_0x1e1a91,_0xcc0740)=>(_0x2d6fb2,_0x4bdbc1)=>_0xcc0740(_0x2d6fb2,_0x4bdbc1,_0x1e1a91);_0x3f3314[_0x57b986(0x361)]=class extends _0x4cdaf4[_0x57b986(0x310)]{constructor(_0x1a0ef0,_0x7f8c94,_0x578214,_0x4d9fc9,_0x23b409){const _0x51db2b=_0x57b986;super(),_0x53d09f(this,_0x51db2b(0x541),new Map()),_0x53d09f(this,_0x51db2b(0x479),new Map()),_0x53d09f(this,'_disabled',!0x1),(this[_0x51db2b(0x323)]=_0x1a0ef0,this[_0x51db2b(0x318)]=_0x7f8c94,this['_beforeCloseService']=_0x578214,this['_localeService']=_0x4d9fc9,this[_0x51db2b(0x377)]=_0x23b409,this['_setupBeforeClosingHandler']());}[_0x57b986(0x571)](){this['_disabled']=!0x0;}[_0x57b986(0x529)](){this['_disabled']=!0x1;}['dispose'](){const _0x3d246f=_0x57b986;this[_0x3d246f(0x50c)]()[_0x3d246f(0x4c6)](()=>super[_0x3d246f(0x46e)]());}async[_0x57b986(0x1d5)](_0x511541){const _0x5f5dbd=_0x57b986;return this[_0x5f5dbd(0x496)]?null:this[_0x5f5dbd(0x318)][_0x5f5dbd(0x3f9)](_0x479938(_0x511541));}async['saveOfflineData'](_0x4001f4,_0x37a73c){const _0x3151de=_0x57b986;return!!this['_localStorageService'][_0x3151de(0x1ca)](_0x4001f4,_0x37a73c);}[_0x57b986(0x37a)](_0xe5065,_0x455a21,_0x33ba3a,_0x4b9ec7){const _0x982364=_0x57b986,_0x1193de=this[_0x982364(0x377)][_0x982364(0x577)](_0xe5065);this[_0x982364(0x541)][_0x982364(0x2c3)](_0xe5065,{'unitID':_0xe5065,'type':_0x455a21,'awaitingChangeset':_0x33ba3a,'mutations':_0x4b9ec7,'rev':_0x1193de}),this['_saveTaskMap'][_0x982364(0x458)](_0xe5065)||this[_0x982364(0x4b6)](_0xe5065);}[_0x57b986(0x4b6)](_0x4b24d0){const _0x1eb031=_0x57b986,_0x12f97c=this[_0x1eb031(0x344)]();_0x12f97c===0x0?this[_0x1eb031(0x516)](_0x4b24d0):this[_0x1eb031(0x479)]['set'](_0x4b24d0,setTimeout(()=>this[_0x1eb031(0x516)](_0x4b24d0),_0x12f97c));}['_getSaveTimeout'](){const _0xc863db=_0x57b986;var _0x2dac1e;return(_0x2dac1e=this[_0xc863db(0x323)][_0xc863db(0x51f)](_0x1e2fa3))!=null?_0x2dac1e:0x3e8;}[_0x57b986(0x516)](_0x4b9f27){const _0x1c257e=_0x57b986,_0x3fb694=this[_0x1c257e(0x479)]['get'](_0x4b9f27);return _0x3fb694!==void 0x0&&window['clearTimeout'](_0x3fb694),this[_0x1c257e(0x318)][_0x1c257e(0x1ca)](_0x479938(_0x4b9f27),this[_0x1c257e(0x541)][_0x1c257e(0x408)](_0x4b9f27))[_0x1c257e(0x4c6)](()=>this[_0x1c257e(0x479)][_0x1c257e(0x391)](_0x4b9f27));}async[_0x57b986(0x50c)](){const _0x51329e=_0x57b986,_0x8dea73=[];this['_saveTaskMap'][_0x51329e(0x2bc)]((_0x594413,_0xae74b)=>{const _0x59472c=_0x51329e;window[_0x59472c(0x404)](_0x594413),_0x8dea73[_0x59472c(0x2a8)](this[_0x59472c(0x516)](_0xae74b)['then'](()=>{const _0x5af640=_0x59472c;this[_0x5af640(0x479)][_0x5af640(0x391)](_0xae74b);}));}),await Promise[_0x51329e(0x54e)](_0x8dea73);}[_0x57b986(0x37d)](){const _0x1f572c=_0x57b986;this[_0x1f572c(0x250)](this[_0x1f572c(0x212)][_0x1f572c(0x4e4)](()=>{const _0x25ae53=_0x1f572c;if(this['_saveTaskMap'][_0x25ae53(0x349)])return this[_0x25ae53(0x247)]['t'](_0x25ae53(0x208));}));}},_0x3f3314[_0x57b986(0x361)]=_0x3aed3d([_0x4a91e0(0x0,_0x4cdaf4[_0x57b986(0x4f1)]),_0x4a91e0(0x1,_0x4cdaf4[_0x57b986(0x333)]),_0x4a91e0(0x2,_0x4ff465['IBeforeCloseService']),_0x4a91e0(0x3,_0x12925a[_0x57b986(0x42c)](_0x4cdaf4['LocaleService'])),_0x4a91e0(0x4,_0x12925a[_0x57b986(0x42c)](_0x329b63[_0x57b986(0x3a0)]))],_0x3f3314[_0x57b986(0x361)]);function _0x479938(_0x2a41a9){const _0x16190f=_0x57b986;return _0x16190f(0x515)+_0x2a41a9;}const _0x1c83f9=_0x12925a['createIdentifier'](_0x57b986(0x2cd));var _0x5e4f39=(_0xbfaa60=>(_0xbfaa60[_0xbfaa60['NO_OTHER_CLIENTS_EDITING']=0x0]=_0x57b986(0x2a7),_0xbfaa60[_0xbfaa60[_0x57b986(0x288)]=0x1]='OTHER_CLIENTS_EDITING',_0xbfaa60))(_0x5e4f39||{});const _0x17198a=0x7530,_0x265087=_0x57b986(0x3cc);class _0x1c79cd extends _0x4cdaf4['Disposable']{constructor(){const _0x2b637a=_0x57b986;super(),_0x53d09f(this,'_id',_0x4cdaf4[_0x2b637a(0x2dc)][_0x2b637a(0x4a0)]()),_0x53d09f(this,_0x2b637a(0x40c),new Set()),_0x53d09f(this,_0x2b637a(0x2d6),new Map()),_0x53d09f(this,_0x2b637a(0x4bb),null),_0x53d09f(this,_0x2b637a(0x4b2),new Map()),_0x53d09f(this,_0x2b637a(0x55e),new Map()),this[_0x2b637a(0x546)]();}[_0x57b986(0x46e)](){const _0x47f9da=_0x57b986;super[_0x47f9da(0x46e)](),this[_0x47f9da(0x4b2)]['forEach']((_0x322484,_0x468a7c)=>this['_removeClearOtherTimer'](_0x468a7c)),this['_heartbeatTimer']&&window[_0x47f9da(0x28a)](this[_0x47f9da(0x4bb)]);}[_0x57b986(0x35e)](_0x59181e){const _0x4a714e=_0x57b986;return this[_0x4a714e(0x31d)](_0x59181e)[_0x4a714e(0x334)](_0x4bb16b[_0x4a714e(0x23d)]());}[_0x57b986(0x531)](_0x1aa751){const _0x2b26a5=_0x57b986;this[_0x2b26a5(0x40c)][_0x2b26a5(0x349)]===0x0&&this[_0x2b26a5(0x31c)](),this[_0x2b26a5(0x40c)][_0x2b26a5(0x2b7)](_0x1aa751),this[_0x2b26a5(0x4a1)]({'type':0x0,'memberID':this['_id'],'unitIDs':[_0x1aa751],'isForwarded':!0x1});}['disposeUnit'](_0x4962e0){const _0x54e403=_0x57b986;this[_0x54e403(0x40c)]['delete'](_0x4962e0),this[_0x54e403(0x40c)][_0x54e403(0x349)]===0x0&&this[_0x54e403(0x4bb)]&&window[_0x54e403(0x28a)](this[_0x54e403(0x4bb)]);}['_init'](){const _0x2444e1=_0x57b986;this[_0x2444e1(0x250)](_0x4cdaf4[_0x2444e1(0x56b)](_0x4bb16b[_0x2444e1(0x228)](window,_0x2444e1(0x369))[_0x2444e1(0x29e)](_0x1a6fb6=>{const _0x3929a2=_0x2444e1;if(_0x1a6fb6['key']!==_0x265087||!_0x1a6fb6['newValue'])return;const _0x157bb3=JSON[_0x3929a2(0x4d5)](_0x1a6fb6['newValue']);this[_0x3929a2(0x481)](_0x157bb3);}))),window['addEventListener']('unload',()=>this['_send']({'type':0x1,'memberID':this[_0x2444e1(0x2ac)],'unitIDs':Array[_0x2444e1(0x1bf)](this[_0x2444e1(0x40c)])}));}[_0x57b986(0x481)](_0x517b6b){const _0x53e4fe=_0x57b986;switch(_0x517b6b[_0x53e4fe(0x239)]){case 0x0:this[_0x53e4fe(0x3bb)](_0x517b6b);break;case 0x1:this[_0x53e4fe(0x3ce)](_0x517b6b);break;case 0x2:this[_0x53e4fe(0x37f)](_0x517b6b);break;}}[_0x57b986(0x3bb)](_0x5b0736){const _0x3af383=_0x57b986,{unitIDs:_0x19869b,memberID:_0x5920a1,isForwarded:_0x222000}=_0x5b0736;_0x19869b[_0x3af383(0x2bc)](_0x563886=>{const _0x236548=_0x3af383;if(!_0x222000&&this['_unitOnClients'][_0x236548(0x458)](_0x563886)&&this[_0x236548(0x31d)](_0x563886)[_0x236548(0x1bd)](0x1),!this['_unitOnClients'][_0x236548(0x458)](_0x563886)||!this[_0x236548(0x2d6)][_0x236548(0x408)](_0x563886)[_0x236548(0x458)](_0x5920a1)){const _0x35ef57=this[_0x236548(0x2d6)]['get'](_0x563886)||new Set();_0x35ef57[_0x236548(0x2b7)](_0x5920a1),this['_unitOnClients'][_0x236548(0x2c3)](_0x563886,_0x35ef57),this[_0x236548(0x326)](_0x5920a1);}}),_0x222000||this[_0x3af383(0x4a1)]({'type':0x0,'memberID':this[_0x3af383(0x2ac)],'unitIDs':[...this[_0x3af383(0x40c)]],'isForwarded':!0x0});}[_0x57b986(0x326)](_0x41c79a){const _0x3d66b1=_0x57b986;this[_0x3d66b1(0x4cc)](_0x41c79a);const _0x3e6142=window[_0x3d66b1(0x51a)](()=>{const _0x55d9e7=_0x3d66b1;this['_unitOnClients'][_0x55d9e7(0x2bc)](_0x51cc70=>{const _0x53b720=_0x55d9e7;_0x51cc70[_0x53b720(0x391)](_0x41c79a);});},_0x17198a*0x2);this['_clearOtherTimers'][_0x3d66b1(0x2c3)](_0x41c79a,_0x3e6142);}[_0x57b986(0x4cc)](_0x51ba06){const _0x4b4cdf=_0x57b986;if(this[_0x4b4cdf(0x4b2)][_0x4b4cdf(0x458)](_0x51ba06)){const _0x822089=this[_0x4b4cdf(0x4b2)][_0x4b4cdf(0x408)](_0x51ba06);_0x822089&&window[_0x4b4cdf(0x404)](_0x822089),this[_0x4b4cdf(0x4b2)][_0x4b4cdf(0x2c3)](_0x51ba06,null);}}[_0x57b986(0x3ce)](_0x98cbf0){const _0x516ea6=_0x57b986,{memberID:_0x325e91,unitIDs:_0x2f0a89}=_0x98cbf0;_0x2f0a89['forEach'](_0xca1829=>{const _0x1eb1c8=_0x23df;var _0x5e577f;const _0x2dd82b=this[_0x1eb1c8(0x2d6)][_0x1eb1c8(0x408)](_0xca1829);_0x2dd82b&&(_0x2dd82b[_0x1eb1c8(0x391)](_0x325e91),(_0x5e577f=this[_0x1eb1c8(0x31d)](_0xca1829))==null||_0x5e577f[_0x1eb1c8(0x1bd)](_0x2dd82b[_0x1eb1c8(0x349)]===0x0?0x0:0x1));}),this[_0x516ea6(0x4cc)](_0x325e91);}[_0x57b986(0x37f)](_0x55b2bf){const _0x36e86a=_0x57b986;this[_0x36e86a(0x326)](_0x55b2bf[_0x36e86a(0x537)]);}[_0x57b986(0x4a1)](_0x144a7d){const _0x7e7d5=_0x57b986;localStorage['setItem'](_0x265087,JSON[_0x7e7d5(0x528)](_0x144a7d));}[_0x57b986(0x31c)](){const _0x390eea=_0x57b986;this[_0x390eea(0x4bb)]=window['setInterval'](()=>{const _0x523ccd=_0x390eea;this[_0x523ccd(0x4a1)]({'type':0x2,'memberID':this[_0x523ccd(0x2ac)]});},_0x17198a);}['_ensureSubject'](_0x31e02a){const _0x11d611=_0x57b986;return this[_0x11d611(0x55e)][_0x11d611(0x458)](_0x31e02a)||this[_0x11d611(0x55e)][_0x11d611(0x2c3)](_0x31e02a,new _0x4bb16b['BehaviorSubject'](0x0)),this['_unitStatus'][_0x11d611(0x408)](_0x31e02a);}}var _0x50a955=Object[_0x57b986(0x1f4)],_0x48f3f1=Object[_0x57b986(0x405)],_0x1f27fc=(_0x35d123,_0x44baf6,_0x1d6c58,_0x10542f)=>{const _0x2cd3be=_0x57b986;for(var _0x3a036e=_0x10542f>0x1?void 0x0:_0x10542f?_0x48f3f1(_0x44baf6,_0x1d6c58):_0x44baf6,_0x39677e=_0x35d123[_0x2cd3be(0x397)]-0x1,_0x40ffc8;_0x39677e>=0x0;_0x39677e--)(_0x40ffc8=_0x35d123[_0x39677e])&&(_0x3a036e=(_0x10542f?_0x40ffc8(_0x44baf6,_0x1d6c58,_0x3a036e):_0x40ffc8(_0x3a036e))||_0x3a036e);return _0x10542f&&_0x3a036e&&_0x50a955(_0x44baf6,_0x1d6c58,_0x3a036e),_0x3a036e;},_0x2e15bb=(_0x5c6ebd,_0x1e1d5e)=>(_0x4f462a,_0x1e1a9e)=>_0x1e1d5e(_0x4f462a,_0x1e1a9e,_0x5c6ebd);let _0x29ca68=class{constructor(_0x413bc5,_0x27870a){this['_injector']=_0x413bc5,this['_transformService']=_0x27870a;}[_0x57b986(0x270)](_0xdc29e7){const _0x13d96d=_0x57b986;this[_0x13d96d(0x50e)](_0xdc29e7),this['_transformPreviousActiveRange'](_0xdc29e7);}['transformRemoteChangeset'](_0x7d75c9){const _0x519bf1=_0x57b986,_0x23b9bf=this[_0x519bf1(0x260)]['get'](_0x3fcd1a[_0x519bf1(0x3de)]),{redoCache:_0x3cdf94}=_0x23b9bf[_0x519bf1(0x57c)]();if(_0x3cdf94[_0x519bf1(0x397)]===0x0)return _0x7d75c9;let _0x3c3500=_0x4cdaf4['Tools'][_0x519bf1(0x2cb)](_0x7d75c9[_0x519bf1(0x526)][0x0]);for(let _0x4160ac=0x0;_0x4160ac<_0x3cdf94[_0x519bf1(0x397)];_0x4160ac++){const _0x4d2cb2={'id':_0x519bf1(0x367),'params':{..._0x3cdf94[_0x4160ac]}},_0x28b2d0=this[_0x519bf1(0x26d)][_0x519bf1(0x347)](_0x3c3500,_0x4d2cb2,!0x1);if(_0x329b63[_0x519bf1(0x4de)](_0x28b2d0))throw _0x28b2d0['error'];_0x3c3500=_0x28b2d0['m1Prime'];}return{..._0x4cdaf4[_0x519bf1(0x2dc)]['deepClone'](_0x7d75c9),'mutations':[_0x3c3500]};}[_0x57b986(0x50e)](_0xbd1bc4){const _0x39ffab=_0x57b986,_0x5b38f2=this['_injector'][_0x39ffab(0x408)](_0x3fcd1a[_0x39ffab(0x3de)]),{undoCache:_0x1a8463,redoCache:_0x5028b7}=_0x5b38f2[_0x39ffab(0x57c)]();if(_0x1a8463[_0x39ffab(0x397)]===0x0||_0x5028b7[_0x39ffab(0x397)]===0x0)return;const _0x14aacf=[],_0x4af519=[];let _0x1c1cc6=_0x4cdaf4['Tools'][_0x39ffab(0x2cb)](_0xbd1bc4[_0x39ffab(0x526)][0x0]),_0x185e0e=_0x4cdaf4[_0x39ffab(0x2dc)][_0x39ffab(0x2cb)](_0xbd1bc4['mutations'][0x0]);for(let _0x12365e=_0x1a8463[_0x39ffab(0x397)]-0x1;_0x12365e>=0x0;_0x12365e--){const _0x5c0a9e={'id':'doc.mutation.rich-text-editing','params':{..._0x1a8463[_0x12365e]}},_0x4feba={'id':_0x39ffab(0x367),'params':{..._0x5028b7[_0x12365e]}},_0x2d33d8=this[_0x39ffab(0x26d)]['transformMutation'](_0x1c1cc6,_0x5c0a9e,!0x1),_0x1a700e=this[_0x39ffab(0x26d)]['transformMutation'](_0x185e0e,_0x4feba,!0x1);if(_0x329b63[_0x39ffab(0x4de)](_0x2d33d8))throw _0x2d33d8[_0x39ffab(0x4a4)];if(_0x329b63[_0x39ffab(0x4de)](_0x1a700e))throw _0x1a700e[_0x39ffab(0x4a4)];_0x14aacf[_0x39ffab(0x582)](_0x2d33d8[_0x39ffab(0x22e)][_0x39ffab(0x455)]),_0x4af519[_0x39ffab(0x582)](_0x1a700e[_0x39ffab(0x22e)][_0x39ffab(0x455)]),_0x1c1cc6=_0x2d33d8[_0x39ffab(0x27b)],_0x185e0e=_0x1a700e[_0x39ffab(0x27b)];}_0x5b38f2[_0x39ffab(0x536)]({'undoCache':_0x14aacf,'redoCache':_0x4af519});}[_0x57b986(0x43d)](_0x5b57e1){const _0x23b5c0=_0x57b986,_0x4329af=this['_injector'][_0x23b5c0(0x408)](_0x3fcd1a[_0x23b5c0(0x3de)]),_0x89284=_0x4329af[_0x23b5c0(0x289)]();if(_0x89284==null)return;const _0x13b863=[{'id':_0x23b5c0(0x367),'params':{'unitId':_0x5b57e1['unitID'],'actions':null,'textRanges':[_0x89284]}}],_0x3a5259=this[_0x23b5c0(0x26d)]['transformMutationsWithChangeset'](_0x5b57e1,_0x13b863);if(!_0x329b63[_0x23b5c0(0x276)](_0x3a5259))throw _0x3a5259[_0x23b5c0(0x4a4)];const _0x36416b=_0x3a5259['m2Prime'][0x0][_0x23b5c0(0x455)]['textRanges'];Array[_0x23b5c0(0x2d5)](_0x36416b)&&_0x36416b[_0x23b5c0(0x397)]&&_0x4329af[_0x23b5c0(0x353)](_0x36416b[0x0]);}};_0x29ca68=_0x1f27fc([_0x2e15bb(0x0,_0x12925a[_0x57b986(0x42c)](_0x12925a[_0x57b986(0x52f)])),_0x2e15bb(0x1,_0x329b63['ITransformService'])],_0x29ca68);var _0x4ba7de=Object['defineProperty'],_0x2494ba=Object[_0x57b986(0x405)],_0x466bd0=(_0x1af3b1,_0x347d94,_0x520353,_0x277d8c)=>{for(var _0x1bab4e=_0x277d8c>0x1?void 0x0:_0x277d8c?_0x2494ba(_0x347d94,_0x520353):_0x347d94,_0x2b89f9=_0x1af3b1['length']-0x1,_0x3874c0;_0x2b89f9>=0x0;_0x2b89f9--)(_0x3874c0=_0x1af3b1[_0x2b89f9])&&(_0x1bab4e=(_0x277d8c?_0x3874c0(_0x347d94,_0x520353,_0x1bab4e):_0x3874c0(_0x1bab4e))||_0x1bab4e);return _0x277d8c&&_0x1bab4e&&_0x4ba7de(_0x347d94,_0x520353,_0x1bab4e),_0x1bab4e;},_0x1f8ad3=(_0x2373c5,_0xcc95ab)=>(_0x5182e5,_0x3009b)=>_0xcc95ab(_0x5182e5,_0x3009b,_0x2373c5);let _0x38542b=class{constructor(_0x2ec909,_0x5b3ccc){const _0x247e4a=_0x57b986;this[_0x247e4a(0x260)]=_0x2ec909,this['_transformService']=_0x5b3ccc;}[_0x57b986(0x4c8)](_0x18add6){const _0x2316ea=_0x57b986;var _0x46382b;const _0x66638f=this[_0x2316ea(0x260)][_0x2316ea(0x408)](_0x3fcd1a[_0x2316ea(0x294)]),_0x2f70ab=(_0x46382b=_0x66638f[_0x2316ea(0x409)]())!=null?_0x46382b:[],_0x57980f=_0x2f70ab==null?void 0x0:_0x2f70ab[_0x2316ea(0x2d2)](_0x3fcd1a[_0x2316ea(0x3a6)]);if(_0x57980f[_0x2316ea(0x397)]===0x0)return;const _0x59d655=[{'id':_0x2316ea(0x367),'params':{'unitId':_0x18add6[_0x2316ea(0x40f)],'actions':null,'textRanges':_0x57980f}}],_0x2410cd=this[_0x2316ea(0x26d)]['transformMutationsWithChangeset'](_0x18add6,_0x59d655);if(!_0x329b63[_0x2316ea(0x276)](_0x2410cd))throw _0x2410cd['error'];const _0x1d344a=_0x2410cd['m2Prime'][0x0][_0x2316ea(0x455)]['textRanges'];Array['isArray'](_0x1d344a)&&_0x1d344a[_0x2316ea(0x397)]&&_0x66638f[_0x2316ea(0x39e)](_0x1d344a,!0x1);}};_0x38542b=_0x466bd0([_0x1f8ad3(0x0,_0x12925a[_0x57b986(0x42c)](_0x12925a[_0x57b986(0x52f)])),_0x1f8ad3(0x1,_0x329b63[_0x57b986(0x2a0)])],_0x38542b);function _0x313fed(_0x70e805){const _0x51749a=_0x57b986;let _0x4bfa27='';for(const _0x171082 of _0x70e805){const {startOffset:_0x49c4d5,endOffset:_0xbe1c9b,isActive:_0x2184b8}=_0x171082;_0x4bfa27[_0x51749a(0x397)]&&(_0x4bfa27+=','),_0x4bfa27+=_0x49c4d5+':'+_0xbe1c9b+':'+(_0x2184b8?'1':'0');}return _0x4bfa27;}function _0x1d44a5(_0x1bfacc){const _0xb9928a=_0x57b986,_0x31bf91=_0x1bfacc[_0xb9928a(0x548)](','),_0x4da960=[];for(const _0x12eadc of _0x31bf91){const [_0x4a262c,_0x4c5e6e,_0x43554e]=_0x12eadc[_0xb9928a(0x548)](':');_0x4da960['push']({'startOffset':Number(_0x4a262c),'endOffset':Number(_0x4c5e6e),'collapsed':_0x4a262c===_0x4c5e6e,'isActive':_0x43554e==='1'});}return _0x4da960['some'](_0x388ad3=>_0x388ad3[_0xb9928a(0x3f0)])||(_0x4da960[0x0][_0xb9928a(0x3f0)]=!0x0),_0x4da960;}class _0x2f17dc extends _0x4cdaf4[_0x57b986(0x499)]{constructor(){const _0x49a8d2=_0x57b986;super(...arguments),_0x53d09f(this,_0x49a8d2(0x248),new _0x4bb16b[(_0x49a8d2(0x2e9))](null)),_0x53d09f(this,_0x49a8d2(0x4b9),this['_collabCursorState$']['asObservable']());}['syncEditingCollabCursor'](_0x15c533){const _0x241962=_0x57b986,{unitID:_0x25600e,memberID:_0x55d5c3,textRanges:_0xd51a28}=_0x15c533,_0x1a5a9c=_0x313fed(_0xd51a28),_0x351202={'unitID':_0x25600e,'memberID':_0x55d5c3,'selection':_0x1a5a9c};this[_0x241962(0x248)][_0x241962(0x1bd)](_0x351202);}}var _0x3270d5=Object[_0x57b986(0x1f4)],_0x38f40d=Object[_0x57b986(0x405)],_0x377330=(_0x317e7c,_0x1dcfed,_0x444607,_0x2952d0)=>{for(var _0xc9500c=_0x2952d0>0x1?void 0x0:_0x2952d0?_0x38f40d(_0x1dcfed,_0x444607):_0x1dcfed,_0x2accb5=_0x317e7c['length']-0x1,_0x44c1ad;_0x2accb5>=0x0;_0x2accb5--)(_0x44c1ad=_0x317e7c[_0x2accb5])&&(_0xc9500c=(_0x2952d0?_0x44c1ad(_0x1dcfed,_0x444607,_0xc9500c):_0x44c1ad(_0xc9500c))||_0xc9500c);return _0x2952d0&&_0xc9500c&&_0x3270d5(_0x1dcfed,_0x444607,_0xc9500c),_0xc9500c;},_0xad87c3=(_0xbc0802,_0x59eabe)=>(_0x5c3212,_0xfacc74)=>_0x59eabe(_0x5c3212,_0xfacc74,_0xbc0802);let _0x4e6a4d=class{constructor(_0x11e9e7,_0x33945d){const _0x487034=_0x57b986;this['_injector']=_0x11e9e7,this[_0x487034(0x26d)]=_0x33945d;}['transformSelections'](_0x1a4831){const _0x2d2200=_0x57b986;var _0x2f177f,_0x19e7ef,_0xee6b37,_0x34aadb;const _0x13243b=this[_0x2d2200(0x260)][_0x2d2200(0x408)](_0x3a01f6[_0x2d2200(0x22f)]),{pluginName:_0x7568dd,unitId:_0x1d220a,sheetId:_0x367677}=_0x13243b[_0x2d2200(0x3a8)]()||{},_0x4b2e19=(_0x2f177f=_0x13243b[_0x2d2200(0x409)]())!=null?_0x2f177f:[];if(_0x4b2e19['length']===0x0||!_0x7568dd||!_0x1d220a||!_0x367677)return;const _0x2ccf83=[{'id':_0x3a01f6[_0x2d2200(0x467)]['id'],'params':{'unitId':_0x1d220a,'subUnitId':_0x367677,'pluginName':_0x7568dd,'selections':_0x4cdaf4[_0x2d2200(0x2dc)]['deepClone'](_0x4b2e19)}}],_0x2d6258=this[_0x2d2200(0x26d)][_0x2d2200(0x342)](_0x1a4831,_0x2ccf83);if(!_0x329b63[_0x2d2200(0x276)](_0x2d6258))throw _0x2d6258[_0x2d2200(0x4a4)];const _0x3ef79d=(_0x34aadb=(_0xee6b37=(_0x19e7ef=_0x2d6258[_0x2d2200(0x22e)][0x0])==null?void 0x0:_0x19e7ef['params'])==null?void 0x0:_0xee6b37['selections'])!=null?_0x34aadb:_0x4b2e19;Array[_0x2d2200(0x2d5)](_0x3ef79d)&&_0x3ef79d['length']&&this['_injector'][_0x2d2200(0x408)](_0x4cdaf4[_0x2d2200(0x46c)])[_0x2d2200(0x21f)](_0x3a01f6['SetSelectionsOperation']['id'],{'unitId':_0x1d220a,'subUnitId':_0x367677,'pluginName':_0x7568dd,'selections':_0x3ef79d});}};_0x4e6a4d=_0x377330([_0xad87c3(0x0,_0x12925a['Inject'](_0x12925a[_0x57b986(0x52f)])),_0xad87c3(0x1,_0x329b63[_0x57b986(0x2a0)])],_0x4e6a4d);const _0x452201=new Set([_0x3a01f6[_0x57b986(0x4b3)]['id']]);function _0x121060(_0xd537be,_0x383a39,_0x4e931b,_0x21aa36,_0x5f3fec){const _0x49fe1f=_0x57b986;var _0x47b5e9,_0x1a8a82,_0x1ad815,_0x9e9919;const _0xba4cb7=[];for(const _0x4d898b of _0xd537be)if(_0x452201[_0x49fe1f(0x458)](_0x4d898b['id'])){if(_0xba4cb7[_0x49fe1f(0x397)]>0x0)break;_0xba4cb7['push'](_0x4d898b);break;}else _0xba4cb7[_0x49fe1f(0x2a8)](_0x4d898b);const _0x381304=(_0x1a8a82=(_0x47b5e9=_0x5f3fec['getCurrentUser']())==null?void 0x0:_0x47b5e9[_0x49fe1f(0x364)])!=null?_0x1a8a82:'unknown',_0x5b84b8=(_0x9e9919=(_0x1ad815=_0x5f3fec[_0x49fe1f(0x227)]())==null?void 0x0:_0x1ad815[_0x49fe1f(0x537)])!=null?_0x9e9919:_0x49fe1f(0x233);return{'changeset':{'unitID':_0x383a39,'type':_0x329b63[_0x49fe1f(0x4b8)](_0x4e931b[_0x49fe1f(0x4ea)](_0x383a39)),'baseRev':_0x21aa36[_0x49fe1f(0x577)](_0x383a39),'revision':0x0,'userID':_0x381304,'memberID':_0x5b84b8,'mutations':_0xba4cb7},'pendingMutations':_0xd537be[_0x49fe1f(0x45a)](_0xba4cb7[_0x49fe1f(0x397)])};}function _0x52237b(_0x18a879,_0x590222,_0x2e43c0,_0x2f44ba,_0x25527b){const _0x174f5a=_0x57b986;var _0x39f768,_0x47dfa8,_0x5e7d71,_0x4b1917;const _0x4f178d=[_0x18a879[_0x174f5a(0x3d7)]((_0xc2d3e9,_0x5774f8)=>{const _0x2ce3b1=_0x174f5a;var _0x49ca4d;const {id:_0x56ae92}=_0xc2d3e9,{id:_0x196e43,type:_0x36fe5b}=_0x5774f8,_0x155402=(_0x49ca4d=_0xc2d3e9[_0x2ce3b1(0x455)])!=null?_0x49ca4d:{'actions':null},_0x4683ff=_0x5774f8[_0x2ce3b1(0x455)];if(_0x56ae92&&_0x56ae92!==_0x196e43)throw new Error(_0x2ce3b1(0x329)+_0x56ae92+'\x20-\x20'+_0x196e43+'.');return{..._0xc2d3e9,'id':_0x196e43,'type':_0x36fe5b,'params':{'unitId':_0x4683ff[_0x2ce3b1(0x2a3)],'textRanges':_0x4683ff[_0x2ce3b1(0x437)],'actions':_0x4cdaf4[_0x2ce3b1(0x225)]['compose'](_0x155402['actions'],_0x4683ff[_0x2ce3b1(0x29a)])}};},{})],_0x4cf9d6=(_0x47dfa8=(_0x39f768=_0x25527b[_0x174f5a(0x227)]())==null?void 0x0:_0x39f768[_0x174f5a(0x364)])!=null?_0x47dfa8:_0x174f5a(0x233),_0x2c70ce=(_0x4b1917=(_0x5e7d71=_0x25527b[_0x174f5a(0x227)]())==null?void 0x0:_0x5e7d71[_0x174f5a(0x537)])!=null?_0x4b1917:'unknown';return{'changeset':{'unitID':_0x590222,'type':_0x329b63[_0x174f5a(0x4b8)](_0x2e43c0[_0x174f5a(0x4ea)](_0x590222)),'baseRev':_0x2f44ba[_0x174f5a(0x577)](_0x590222),'revision':0x0,'userID':_0x4cf9d6,'memberID':_0x2c70ce,'mutations':_0x4f178d},'pendingMutations':[]};}var _0x146d69=Object[_0x57b986(0x1f4)],_0x5b1da3=Object[_0x57b986(0x405)],_0x18f1be=(_0x3a2496,_0x857b4f,_0x3d1886,_0x214164)=>{const _0x1f6cd3=_0x57b986;for(var _0x1bccce=_0x214164>0x1?void 0x0:_0x214164?_0x5b1da3(_0x857b4f,_0x3d1886):_0x857b4f,_0x5796ac=_0x3a2496[_0x1f6cd3(0x397)]-0x1,_0x79076d;_0x5796ac>=0x0;_0x5796ac--)(_0x79076d=_0x3a2496[_0x5796ac])&&(_0x1bccce=(_0x214164?_0x79076d(_0x857b4f,_0x3d1886,_0x1bccce):_0x79076d(_0x1bccce))||_0x1bccce);return _0x214164&&_0x1bccce&&_0x146d69(_0x857b4f,_0x3d1886,_0x1bccce),_0x1bccce;},_0x326931=(_0x1aff52,_0x4f1f97)=>(_0x4e2a99,_0x578c23)=>_0x4f1f97(_0x4e2a99,_0x578c23,_0x1aff52),_0x5185a4=(_0x538d2b=>(_0x538d2b['NOT_COLLAB']=_0x57b986(0x1c2),_0x538d2b['SYNCED']='synced',_0x538d2b[_0x57b986(0x2f7)]='pending',_0x538d2b[_0x57b986(0x532)]=_0x57b986(0x1fc),_0x538d2b[_0x57b986(0x30f)]='awaiting_with_pending',_0x538d2b['FETCH_MISS']=_0x57b986(0x234),_0x538d2b[_0x57b986(0x1de)]='conflict',_0x538d2b[_0x57b986(0x26f)]=_0x57b986(0x4f8),_0x538d2b))(_0x5185a4||{});class _0x41a5eb{constructor(_0xc7086c,_0xbd7aa2,_0x2de628,_0x1a37fa,_0x1a92d3,_0x186831,_0x1165d9,_0x548ba3,_0x1b5aea){const _0x26d293=_0x57b986;_0x53d09f(this,_0x26d293(0x352),null),_0x53d09f(this,_0x26d293(0x4b5),[]),(this[_0x26d293(0x40f)]=_0xc7086c,this[_0x26d293(0x239)]=_0xbd7aa2,this['_handler']=_0x1a92d3,this[_0x26d293(0x48f)]=_0x186831,this[_0x26d293(0x366)]=_0x1165d9,this[_0x26d293(0x377)]=_0x548ba3,this[_0x26d293(0x2ca)]=_0x1b5aea,this['_awaitingChangeset']=_0x2de628,this[_0x26d293(0x4b5)]=_0x1a37fa);}[_0x57b986(0x2d0)](_0x279471){const _0x4dc7f1=_0x57b986,_0x36cd2d=this[_0x4dc7f1(0x377)][_0x4dc7f1(0x577)](this['unitID']);return _0x279471[_0x4dc7f1(0x49a)]>_0x36cd2d+0x1?(this['_handler'][_0x4dc7f1(0x1e7)]({'from':_0x36cd2d,'to':_0x279471['revision']-0x1}),!0x0):!0x1;}['_transformUndoredo'](_0x32196a){const _0x17ce5a=_0x57b986;this[_0x17ce5a(0x366)][_0x17ce5a(0x39a)](this[_0x17ce5a(0x40f)],_0x32196a);}[_0x57b986(0x540)](_0x23800e){const _0x2e68d4=_0x57b986;var _0x5acccd,_0x366227;(_0x366227=(_0x5acccd=this['_handler'])[_0x2e68d4(0x31e)])==null||_0x366227[_0x2e68d4(0x42b)](_0x5acccd,_0x23800e);}[_0x57b986(0x42e)](_0x1d9d38){const _0x3c58cf=_0x57b986;var _0x4ac6a2,_0x59f7cb;return(_0x59f7cb=(_0x4ac6a2=this[_0x3c58cf(0x3ad)])['onTransformIME'])==null?void 0x0:_0x59f7cb['call'](_0x4ac6a2,_0x1d9d38);}['_transformRemoteChangesetByIMECache'](_0x27bfef){const _0x5c5fdf=_0x57b986;var _0x2c6987,_0x5b6b20,_0x3f7920;return(_0x3f7920=(_0x5b6b20=(_0x2c6987=this[_0x5c5fdf(0x3ad)])['onTransformRemoteChangesetByIMECache'])==null?void 0x0:_0x5b6b20[_0x5c5fdf(0x42b)](_0x2c6987,_0x27bfef))!=null?_0x3f7920:_0x27bfef;}[_0x57b986(0x2b0)](_0xc3714e){const _0x55a8cb=_0x57b986;var _0x52a390,_0x35764b;if(this[_0x55a8cb(0x239)]===_0x1f330d['UNIVER_DOC']){const {unitID:_0x3017ec,mutations:_0x53d7a7,memberID:_0x36497a}=_0xc3714e,_0x453140=_0x53d7a7[0x0][_0x55a8cb(0x455)][_0x55a8cb(0x437)];Array[_0x55a8cb(0x2d5)](_0x453140)&&_0x453140['length']>0x0&&((_0x35764b=(_0x52a390=this[_0x55a8cb(0x3ad)])[_0x55a8cb(0x23b)])==null||_0x35764b[_0x55a8cb(0x42b)](_0x52a390,{'unitID':_0x3017ec,'memberID':_0x36497a,'textRanges':_0x453140}));}}[_0x57b986(0x427)](){const _0x2eafef=_0x57b986;this[_0x2eafef(0x2ca)][_0x2eafef(0x37a)](this[_0x2eafef(0x40f)],this['type'],this['_awaitingChangeset'],this[_0x2eafef(0x4b5)]);}['_getCurrentRevision'](){const _0x4abeed=_0x57b986;return this[_0x4abeed(0x377)]['getCurrentRevForDocument'](this[_0x4abeed(0x40f)]);}['_incrementRevisionNumber'](){const _0x1e4cb9=_0x57b986;this[_0x1e4cb9(0x377)]['incrementRevForDocument'](this[_0x1e4cb9(0x40f)]);}[_0x57b986(0x291)](_0x2c2f06){const _0x1ece31=_0x57b986;var _0x3a9765;const _0x3d1c8d=this[_0x1ece31(0x2e4)](_0x2c2f06),_0x43766e=_0x4cdaf4[_0x1ece31(0x524)](_0x3d1c8d[_0x1ece31(0x526)],this[_0x1ece31(0x48f)],{'fromCollab':!0x0});if(!_0x43766e[_0x1ece31(0x3db)])throw _0x43766e[_0x1ece31(0x4a4)]instanceof Error?_0x43766e[_0x1ece31(0x4a4)]:new Error((_0x3a9765=_0x43766e[_0x1ece31(0x4a4)])!=null?_0x3a9765:_0x1ece31(0x2b5));this[_0x1ece31(0x42e)](_0x3d1c8d),this['_transformUndoredo'](_0x2c2f06),this[_0x1ece31(0x540)](_0x3d1c8d),this[_0x1ece31(0x2b0)](_0x3d1c8d),this[_0x1ece31(0x3af)]();}}let _0x58a1e7=class extends _0x41a5eb{constructor(_0x455865,_0x3058a3,_0x1ecc17,_0x35c9a2,_0x4fb093,_0xdce5f8,_0x5ebae9,_0x4d0beb,_0x16a7fd){const _0x2e2115=_0x57b986;super(_0x455865,_0x3058a3,null,[],_0x1ecc17,_0x4d0beb,_0x5ebae9,_0x35c9a2,_0x4fb093),_0x53d09f(this,'status','synced'),(this[_0x2e2115(0x260)]=_0xdce5f8,this[_0x2e2115(0x314)]=_0x16a7fd);}['appendMutation'](_0x44c9e8){const _0xfd3d67=_0x57b986,_0x4dd450=this[_0xfd3d67(0x260)][_0xfd3d67(0x545)](_0x56eb89,this[_0xfd3d67(0x40f)],this['type'],[_0x44c9e8],this[_0xfd3d67(0x3ad)]);return _0x4dd450[_0xfd3d67(0x451)](),_0x4dd450[_0xfd3d67(0x427)](),_0x4dd450;}[_0x57b986(0x221)](_0x403a66){const _0x426524=_0x57b986;if(this[_0x426524(0x2d0)](_0x403a66))return this[_0x426524(0x260)][_0x426524(0x545)](_0x340c05,this[_0x426524(0x40f)],this[_0x426524(0x239)],null,[],null,[_0x403a66],this[_0x426524(0x3ad)]);try{return this[_0x426524(0x291)](_0x403a66),this;}catch(_0x1249bf){return this[_0x426524(0x314)][_0x426524(0x4a4)](_0x426524(0x346),_0x1249bf),this;}}[_0x57b986(0x22b)](){const _0x4b5481=_0x57b986;throw new Error(_0x4b5481(0x398));}['onRemoteRej'](){const _0x233ff2=_0x57b986;throw new Error(_0x233ff2(0x2d1));}[_0x57b986(0x440)](){const _0x3474db=_0x57b986;return this[_0x3474db(0x260)][_0x3474db(0x545)](_0x3e4f1a,this[_0x3474db(0x40f)],this[_0x3474db(0x239)],null,[],this[_0x3474db(0x3ad)]);}[_0x57b986(0x489)](){return this;}[_0x57b986(0x4fc)](){const _0x243731=_0x57b986;throw new Error(_0x243731(0x1dc));}};_0x58a1e7=_0x18f1be([_0x326931(0x3,_0x12925a['Inject'](_0x329b63[_0x57b986(0x3a0)])),_0x326931(0x4,_0x12925a[_0x57b986(0x42c)](_0x3f3314['LocalCacheService'])),_0x326931(0x5,_0x12925a['Inject'](_0x12925a[_0x57b986(0x52f)])),_0x326931(0x6,_0x4cdaf4[_0x57b986(0x2f8)]),_0x326931(0x7,_0x4cdaf4[_0x57b986(0x46c)]),_0x326931(0x8,_0x4cdaf4[_0x57b986(0x41c)])],_0x58a1e7);let _0x56eb89=class extends _0x41a5eb{constructor(_0x588636,_0x30ac49,_0xd8ef96,_0x5bd1ba,_0x40a81f,_0x5f1bd5,_0x137181,_0x1a500b,_0x41d191,_0x1376cd,_0x21f164,_0x35399e,_0x78e7ca,_0x5848f8){const _0x51b4c5=_0x57b986;super(_0x588636,_0x30ac49,null,_0xd8ef96,_0x5bd1ba,_0x1376cd,_0x5848f8,_0x5f1bd5,_0x137181),_0x53d09f(this,_0x51b4c5(0x2aa),'pending'),_0x53d09f(this,_0x51b4c5(0x3c9),null),_0x53d09f(this,'_sendingTimer',null),(this[_0x51b4c5(0x260)]=_0x40a81f,this['_memberService']=_0x1a500b,this[_0x51b4c5(0x314)]=_0x41d191,this[_0x51b4c5(0x323)]=_0x21f164,this[_0x51b4c5(0x26d)]=_0x35399e,this['_univerInstanceService']=_0x78e7ca);}['appendMutation'](_0x4bf2ab){return this['_pendingMutations']['push'](_0x4bf2ab),this['_updateLocalCache'](),this;}['onRemoteChangeset'](_0x55cc5d){const _0x5e702f=_0x57b986;if(this[_0x5e702f(0x2d0)](_0x55cc5d))return this[_0x5e702f(0x222)](),this['_injector'][_0x5e702f(0x545)](_0x340c05,this[_0x5e702f(0x40f)],this[_0x5e702f(0x239)],null,this[_0x5e702f(0x4b5)],null,[_0x55cc5d],this[_0x5e702f(0x3ad)]);try{const _0x3a173d=this[_0x5e702f(0x26d)][_0x5e702f(0x342)](_0x55cc5d,this[_0x5e702f(0x4b5)]);if(_0x329b63['isTransformMutationsWithChangesetSuccess'](_0x3a173d)){const {c1Prime:_0x1f59c4,m2Prime:_0x39070f}=_0x3a173d;this[_0x5e702f(0x291)](_0x1f59c4);const _0x345b18=this[_0x5e702f(0x260)][_0x5e702f(0x545)](_0x56eb89,this[_0x5e702f(0x40f)],this[_0x5e702f(0x239)],_0x39070f,this['_handler']);return this['_clearScheduledTask'](),_0x345b18['_schedule'](this['_scheduleTimestamp']?Math[_0x5e702f(0x27f)](0x0,new Date()[_0x5e702f(0x47c)]()-this['_scheduleTimestamp']):this[_0x5e702f(0x363)]()),_0x345b18;}throw _0x3a173d[_0x5e702f(0x4a4)];}catch(_0x3146d6){return this['_logService']['error'](_0x3146d6),this[_0x5e702f(0x244)](!0x1);}}['onRemoteAck'](){const _0xe02429=_0x57b986;throw new Error(_0xe02429(0x4b1));}[_0x57b986(0x520)](){throw new Error('[PendingState]:\x20received\x20rejection.');}[_0x57b986(0x440)](){const _0x2cd53b=_0x57b986;return this[_0x2cd53b(0x222)](),this['_injector'][_0x2cd53b(0x545)](_0x3e4f1a,this[_0x2cd53b(0x40f)],this[_0x2cd53b(0x239)],null,this[_0x2cd53b(0x4b5)],this['_handler']);}[_0x57b986(0x489)](){return this;}[_0x57b986(0x451)](_0x5399c0){const _0x5a6357=_0x57b986;_0x5399c0=_0x5399c0!=null?_0x5399c0:this[_0x5a6357(0x363)](),this[_0x5a6357(0x3c9)]=new Date()[_0x5a6357(0x47c)](),this[_0x5a6357(0x32e)]=setTimeout(()=>{const _0x178514=_0x5a6357;this[_0x178514(0x222)]();let _0x4aa6e1=null;switch(this[_0x178514(0x239)]){case _0x1f330d[_0x178514(0x1ed)]:{_0x4aa6e1=_0x121060(this[_0x178514(0x4b5)],this[_0x178514(0x40f)],this[_0x178514(0x3d9)],this['_revisionService'],this['_memberService']);break;}case _0x1f330d[_0x178514(0x510)]:{_0x4aa6e1=_0x52237b(this['_pendingMutations'],this[_0x178514(0x40f)],this['_univerInstanceService'],this[_0x178514(0x377)],this[_0x178514(0x1d3)]);break;}default:throw new Error(_0x178514(0x253)+this['type']+_0x178514(0x3c7));}const {changeset:_0x43ecb5,pendingMutations:_0x4238c8}=_0x4aa6e1;this[_0x178514(0x3ad)][_0x178514(0x3e3)](_0x43ecb5);const _0x2ba2c3=_0x4238c8[_0x178514(0x397)]?this['_injector'][_0x178514(0x545)](_0x3a588f,this[_0x178514(0x40f)],this[_0x178514(0x239)],_0x43ecb5,_0x4238c8,this[_0x178514(0x3ad)]):this['_injector'][_0x178514(0x545)](_0x304c89,this[_0x178514(0x40f)],this[_0x178514(0x239)],_0x43ecb5,this[_0x178514(0x3ad)]);_0x2ba2c3[_0x178514(0x427)](),this[_0x178514(0x3ad)]['onStateChange'](this,_0x2ba2c3);},_0x5399c0);}[_0x57b986(0x363)](){const _0x31abe7=_0x57b986;var _0x40a16b;return(_0x40a16b=this[_0x31abe7(0x323)][_0x31abe7(0x51f)](_0x20edc7))!=null?_0x40a16b:0x7d0;}['resend'](){const _0x51388=_0x57b986;throw new Error(_0x51388(0x321));}[_0x57b986(0x222)](){const _0x5ef3bd=_0x57b986;this[_0x5ef3bd(0x32e)]!=null&&(clearTimeout(this[_0x5ef3bd(0x32e)]),this[_0x5ef3bd(0x32e)]=null);}[_0x57b986(0x244)](_0x1859d7){const _0x2a9581=_0x57b986;return this['_clearScheduledTask'](),this[_0x2a9581(0x260)][_0x2a9581(0x545)](_0x4a38e8,this[_0x2a9581(0x40f)],this[_0x2a9581(0x239)],null,this[_0x2a9581(0x4b5)],this[_0x2a9581(0x3ad)],_0x1859d7);}};_0x56eb89=_0x18f1be([_0x326931(0x4,_0x12925a['Inject'](_0x12925a[_0x57b986(0x52f)])),_0x326931(0x5,_0x12925a[_0x57b986(0x42c)](_0x329b63[_0x57b986(0x3a0)])),_0x326931(0x6,_0x12925a[_0x57b986(0x42c)](_0x3f3314[_0x57b986(0x361)])),_0x326931(0x7,_0x12925a['Inject'](_0x4495e7)),_0x326931(0x8,_0x4cdaf4['ILogService']),_0x326931(0x9,_0x4cdaf4[_0x57b986(0x46c)]),_0x326931(0xa,_0x4cdaf4[_0x57b986(0x4f1)]),_0x326931(0xb,_0x329b63[_0x57b986(0x2a0)]),_0x326931(0xc,_0x4cdaf4[_0x57b986(0x28e)]),_0x326931(0xd,_0x4cdaf4[_0x57b986(0x2f8)])],_0x56eb89);let _0x304c89=class extends _0x41a5eb{constructor(_0x130072,_0x165093,_0x1255de,_0x289749,_0x3b234a,_0x157fb3,_0xf3508d,_0x51a80a,_0x5be776,_0x497541,_0x32ad8a){const _0x191aba=_0x57b986;super(_0x130072,_0x165093,_0x1255de,[],_0x289749,_0x51a80a,_0x32ad8a,_0x157fb3,_0xf3508d),_0x53d09f(this,'status',_0x191aba(0x1fc)),(this[_0x191aba(0x260)]=_0x3b234a,this[_0x191aba(0x314)]=_0x5be776,this[_0x191aba(0x26d)]=_0x497541);}[_0x57b986(0x538)](_0x42b559){const _0x5c71c6=_0x57b986,_0x31bdef=this[_0x5c71c6(0x260)]['createInstance'](_0x3a588f,this[_0x5c71c6(0x40f)],this['type'],this[_0x5c71c6(0x352)],[_0x42b559],this[_0x5c71c6(0x3ad)]);return _0x31bdef['_updateLocalCache'](),_0x31bdef;}['onRemoteChangeset'](_0x10164d){const _0x5a21d8=_0x57b986;if(this['_checkMissing'](_0x10164d))return this[_0x5a21d8(0x260)][_0x5a21d8(0x545)](_0x340c05,this[_0x5a21d8(0x40f)],this[_0x5a21d8(0x239)],this[_0x5a21d8(0x352)],[],null,[_0x10164d],this[_0x5a21d8(0x3ad)]);try{const _0x7bf1d8=this['_transformService']['transformChangesets']([_0x10164d],[this[_0x5a21d8(0x352)]],!0x1);if(_0x329b63[_0x5a21d8(0x4ab)](_0x7bf1d8)){const {c1Prime:_0x26dd84,c2Prime:_0x28a854}=_0x7bf1d8;this[_0x5a21d8(0x291)](_0x26dd84[0x0]),_0x28a854[0x0]['baseRev']=this[_0x5a21d8(0x4f0)]();const _0x10d9d6=this[_0x5a21d8(0x260)][_0x5a21d8(0x545)](_0x304c89,this[_0x5a21d8(0x40f)],this[_0x5a21d8(0x239)],_0x28a854[0x0],this[_0x5a21d8(0x3ad)]);return _0x10d9d6[_0x5a21d8(0x427)](),_0x10d9d6;}return this['_onConflict'](!0x1);}catch(_0x46794a){return this[_0x5a21d8(0x314)]['error'](_0x46794a),this[_0x5a21d8(0x244)](!0x1);}}[_0x57b986(0x22b)](_0x64e827){const _0x20803a=_0x57b986,_0x16fefe=this[_0x20803a(0x377)][_0x20803a(0x577)](this[_0x20803a(0x40f)]);if(_0x64e827[_0x20803a(0x49a)]<_0x16fefe-0x1)return this;if(this[_0x20803a(0x2d0)](_0x64e827))return this['_injector'][_0x20803a(0x545)](_0x340c05,this['unitID'],this[_0x20803a(0x239)],null,[],this['_awaitingChangeset'],[],this['_handler']);this['_incrementRevisionNumber']();const _0x3b0673=this[_0x20803a(0x260)][_0x20803a(0x545)](_0x58a1e7,this[_0x20803a(0x40f)],this['type'],this[_0x20803a(0x3ad)]);return _0x3b0673['_updateLocalCache'](),_0x3b0673;}[_0x57b986(0x520)](_0x16627a){const _0x580cdb=_0x57b986;return this[_0x580cdb(0x244)](!!(_0x16627a!=null&&_0x16627a[_0x580cdb(0x4f4)]));}[_0x57b986(0x440)](){const _0x59d2f9=_0x57b986;return this[_0x59d2f9(0x260)]['createInstance'](_0x3e4f1a,this[_0x59d2f9(0x40f)],this[_0x59d2f9(0x239)],this[_0x59d2f9(0x352)],[],this[_0x59d2f9(0x3ad)]);}['toggleOnline'](){return this;}[_0x57b986(0x4fc)](){const _0x5243e1=_0x57b986;this[_0x5243e1(0x3ad)][_0x5243e1(0x3e3)](this[_0x5243e1(0x352)]);}[_0x57b986(0x244)](_0x73b9c8){const _0x3ec19f=_0x57b986;return this['_injector'][_0x3ec19f(0x545)](_0x4a38e8,this['unitID'],this['type'],this[_0x3ec19f(0x352)],[],this[_0x3ec19f(0x3ad)],_0x73b9c8);}};_0x304c89=_0x18f1be([_0x326931(0x4,_0x12925a[_0x57b986(0x42c)](_0x12925a[_0x57b986(0x52f)])),_0x326931(0x5,_0x12925a[_0x57b986(0x42c)](_0x329b63[_0x57b986(0x3a0)])),_0x326931(0x6,_0x12925a[_0x57b986(0x42c)](_0x3f3314[_0x57b986(0x361)])),_0x326931(0x7,_0x4cdaf4['ICommandService']),_0x326931(0x8,_0x4cdaf4[_0x57b986(0x41c)]),_0x326931(0x9,_0x329b63[_0x57b986(0x2a0)]),_0x326931(0xa,_0x4cdaf4[_0x57b986(0x2f8)])],_0x304c89);let _0x3a588f=class extends _0x41a5eb{constructor(_0x354744,_0x25f0e0,_0x346138,_0x2984ec,_0x2a1408,_0x1ce6d1,_0x20148b,_0x42e3c0,_0x3dc520,_0x1526e7,_0x560cff,_0x45e0a7){const _0x39332b=_0x57b986;super(_0x354744,_0x25f0e0,_0x346138,_0x2984ec,_0x2a1408,_0x3dc520,_0x45e0a7,_0x20148b,_0x42e3c0),_0x53d09f(this,_0x39332b(0x2aa),'awaiting_with_pending'),(this[_0x39332b(0x260)]=_0x1ce6d1,this['_logService']=_0x1526e7,this['_transformService']=_0x560cff);}[_0x57b986(0x538)](_0x3eeeca){const _0x37e556=_0x57b986;return this[_0x37e556(0x4b5)][_0x37e556(0x2a8)](_0x3eeeca),this;}['onRemoteChangeset'](_0x314e9f){const _0x179812=_0x57b986;if(this[_0x179812(0x2d0)](_0x314e9f))return this[_0x179812(0x260)][_0x179812(0x545)](_0x340c05,this[_0x179812(0x40f)],this[_0x179812(0x239)],this['_awaitingChangeset'],this['_pendingMutations'],null,[_0x314e9f],this['_handler']);try{const _0x282e6c=this[_0x179812(0x26d)][_0x179812(0x4d9)]([_0x314e9f],[this['_awaitingChangeset']],!0x1);if(_0x329b63[_0x179812(0x4ab)](_0x282e6c)){const {c1Prime:_0x5d8987,c2Prime:_0x4f8b3c}=_0x282e6c,_0x50fec8=this[_0x179812(0x26d)][_0x179812(0x342)](_0x5d8987[0x0],this['_pendingMutations']);if(_0x329b63['isTransformMutationsWithChangesetSuccess'](_0x50fec8)){const {c1Prime:_0x4fb9ce,m2Prime:_0x575b8d}=_0x50fec8;return this['_executeRemoteChangeset'](_0x4fb9ce),_0x4f8b3c[0x0][_0x179812(0x36a)]=this[_0x179812(0x4f0)](),this['_injector']['createInstance'](_0x3a588f,this[_0x179812(0x40f)],this[_0x179812(0x239)],_0x4f8b3c[0x0],_0x575b8d,this[_0x179812(0x3ad)]);}throw _0x50fec8[_0x179812(0x4a4)];}throw _0x282e6c[_0x179812(0x4a4)];}catch(_0x15b914){return this[_0x179812(0x314)][_0x179812(0x4a4)](_0x15b914),this['_onConflict'](!0x1);}}['onRemoteAck'](_0x34b6cd){const _0x5ba8a0=_0x57b986;if(this[_0x5ba8a0(0x2d0)](_0x34b6cd))return this[_0x5ba8a0(0x260)]['createInstance'](_0x340c05,this[_0x5ba8a0(0x40f)],this['type'],null,this['_pendingMutations'],this['_awaitingChangeset'],[],this[_0x5ba8a0(0x3ad)]);this['_incrementRevisionNumber']();const _0x126808=this[_0x5ba8a0(0x260)][_0x5ba8a0(0x545)](_0x56eb89,this[_0x5ba8a0(0x40f)],this['type'],this[_0x5ba8a0(0x4b5)],this[_0x5ba8a0(0x3ad)]);return _0x126808[_0x5ba8a0(0x451)](),_0x126808[_0x5ba8a0(0x427)](),_0x126808;}['onRemoteRej'](_0x17f0ce){const _0x4bf286=_0x57b986;return this[_0x4bf286(0x244)](!!(_0x17f0ce!=null&&_0x17f0ce[_0x4bf286(0x4f4)]));}['toggleOffline'](){const _0x4dc275=_0x57b986;return this[_0x4dc275(0x260)][_0x4dc275(0x545)](_0x3e4f1a,this[_0x4dc275(0x40f)],this[_0x4dc275(0x239)],this[_0x4dc275(0x352)],this['_pendingMutations'],this[_0x4dc275(0x3ad)]);}['toggleOnline'](){return this;}[_0x57b986(0x4fc)](){const _0x52e57e=_0x57b986;this[_0x52e57e(0x3ad)][_0x52e57e(0x3e3)](this[_0x52e57e(0x352)]);}[_0x57b986(0x244)](_0x1f4bb6){const _0x10ed37=_0x57b986;return this[_0x10ed37(0x260)][_0x10ed37(0x545)](_0x4a38e8,this[_0x10ed37(0x40f)],this[_0x10ed37(0x239)],null,this[_0x10ed37(0x4b5)],this[_0x10ed37(0x3ad)],_0x1f4bb6);}};_0x3a588f=_0x18f1be([_0x326931(0x5,_0x12925a['Inject'](_0x12925a['Injector'])),_0x326931(0x6,_0x12925a[_0x57b986(0x42c)](_0x329b63[_0x57b986(0x3a0)])),_0x326931(0x7,_0x12925a[_0x57b986(0x42c)](_0x3f3314[_0x57b986(0x361)])),_0x326931(0x8,_0x4cdaf4[_0x57b986(0x46c)]),_0x326931(0x9,_0x4cdaf4[_0x57b986(0x41c)]),_0x326931(0xa,_0x329b63[_0x57b986(0x2a0)]),_0x326931(0xb,_0x4cdaf4[_0x57b986(0x2f8)])],_0x3a588f);let _0x4a38e8=class extends _0x41a5eb{constructor(_0x3ac15c,_0x3ffbcf,_0x494ce2,_0x11b70c,_0x51813c,_0x587c8e=!0x1,_0x3c1638,_0x1c7d7c,_0x512cd5,_0x469914,_0x644d59,_0x284b4c,_0x513204){const _0x543abe=_0x57b986;super(_0x3ac15c,_0x3ffbcf,_0x494ce2,_0x11b70c,_0x51813c,_0x1c7d7c,_0x512cd5,_0x644d59,_0x469914),_0x53d09f(this,_0x543abe(0x2aa),'conflict'),(this[_0x543abe(0x2c8)]=_0x587c8e,this[_0x543abe(0x3a7)]=_0x3c1638,this['_localeService']=_0x284b4c,this[_0x543abe(0x493)]=_0x513204,this[_0x543abe(0x3a2)](),this['_clearLocalCache'](),this[_0x543abe(0x2f5)]());}['appendMutation'](){return this;}[_0x57b986(0x221)](){return this;}[_0x57b986(0x22b)](){return this;}[_0x57b986(0x520)](){return this;}[_0x57b986(0x440)](){return this;}[_0x57b986(0x489)](){return this;}[_0x57b986(0x4fc)](){throw new Error('[ConflictState]:\x20invalid\x20calling\x20to\x20`resend`.');}[_0x57b986(0x4fb)](){const _0x4a3278=_0x57b986;this[_0x4a3278(0x2ca)][_0x4a3278(0x37a)](this[_0x4a3278(0x40f)],this[_0x4a3278(0x239)],null,[]);}[_0x57b986(0x3a2)](){const _0x42a79e=_0x57b986;this[_0x42a79e(0x2c8)]?this[_0x42a79e(0x493)][_0x42a79e(0x560)]({'title':this[_0x42a79e(0x247)]['t'](_0x42a79e(0x473)),'content':this[_0x42a79e(0x247)]['t'](_0x42a79e(0x550)),'type':'error','duration':0x0}):this['_notificationService'][_0x42a79e(0x560)]({'title':this[_0x42a79e(0x247)]['t'](_0x42a79e(0x21b)),'content':this[_0x42a79e(0x247)]['t'](_0x42a79e(0x567)),'type':_0x42a79e(0x4a4),'duration':0x0});}[_0x57b986(0x2f5)](){const _0x4486f8=_0x57b986;this[_0x4486f8(0x3a7)][_0x4486f8(0x1be)](new _0x3a01f6[(_0x4486f8(0x373))](this[_0x4486f8(0x40f)])['id'],!0x1);}};_0x4a38e8=_0x18f1be([_0x326931(0x6,_0x12925a[_0x57b986(0x42c)](_0x4cdaf4[_0x57b986(0x413)])),_0x326931(0x7,_0x4cdaf4[_0x57b986(0x46c)]),_0x326931(0x8,_0x4cdaf4[_0x57b986(0x2f8)]),_0x326931(0x9,_0x12925a[_0x57b986(0x42c)](_0x3f3314[_0x57b986(0x361)])),_0x326931(0xa,_0x12925a['Inject'](_0x329b63[_0x57b986(0x3a0)])),_0x326931(0xb,_0x12925a[_0x57b986(0x42c)](_0x4cdaf4['LocaleService'])),_0x326931(0xc,_0x4ff465[_0x57b986(0x35c)])],_0x4a38e8);let _0x3e4f1a=class extends _0x41a5eb{constructor(_0xc49c34,_0x1c1284,_0x2efe19,_0x35ed71,_0xa863f3,_0x4baed7,_0x4a4e5c,_0xae6db4,_0x391421,_0x597c2c){const _0x58196b=_0x57b986;super(_0xc49c34,_0x1c1284,_0x2efe19,_0x35ed71,_0xa863f3,_0x391421,_0x597c2c,_0x4a4e5c,_0xae6db4),_0x53d09f(this,_0x58196b(0x2aa),_0x58196b(0x4f8)),this['_injector']=_0x4baed7;}[_0x57b986(0x538)](_0x5238c5){const _0x360d13=_0x57b986;return this[_0x360d13(0x4b5)][_0x360d13(0x2a8)](_0x5238c5),this[_0x360d13(0x427)](),this;}[_0x57b986(0x221)](_0x546bc2){const _0x50678b=_0x57b986;throw new Error(_0x50678b(0x2a4));}[_0x57b986(0x22b)](){throw new Error('[OfflineState]:\x20received\x20acknowledgement.');}[_0x57b986(0x520)](){const _0xc4aac5=_0x57b986;throw new Error(_0xc4aac5(0x49c));}['toggleOffline'](){return this;}[_0x57b986(0x489)](){const _0x3add35=_0x57b986,{_injector:_0x30905a,_pendingMutations:_0x172f20,_awaitingChangeset:_0x407440,unitID:_0x42b3ee,_handler:_0x37c736,type:_0x53369c}=this,_0x470af1=_0x644ba0(_0x30905a,_0x42b3ee,_0x53369c,_0x407440,_0x172f20,_0x37c736);return _0x470af1 instanceof _0x56eb89?_0x470af1[_0x3add35(0x451)]():(_0x470af1 instanceof _0x3a588f||_0x470af1 instanceof _0x304c89)&&_0x470af1[_0x3add35(0x4fc)](),_0x470af1;}['resend'](){throw new Error('[OfflineState]:\x20invalid\x20calling\x20to\x20`resend`.');}};_0x3e4f1a=_0x18f1be([_0x326931(0x5,_0x12925a[_0x57b986(0x42c)](_0x12925a['Injector'])),_0x326931(0x6,_0x12925a[_0x57b986(0x42c)](_0x329b63[_0x57b986(0x3a0)])),_0x326931(0x7,_0x12925a[_0x57b986(0x42c)](_0x3f3314[_0x57b986(0x361)])),_0x326931(0x8,_0x4cdaf4[_0x57b986(0x46c)]),_0x326931(0x9,_0x4cdaf4[_0x57b986(0x2f8)])],_0x3e4f1a);let _0x340c05=class extends _0x41a5eb{constructor(_0x29161f,_0x290baa,_0x47cee0,_0x1e7d70,_0x310d90,_0x162f44,_0x53edbd,_0x50118d,_0x1b851f,_0x393eea,_0x377c06,_0x52a320,_0x353961,_0x1a6305){const _0x3956fc=_0x57b986;super(_0x29161f,_0x290baa,_0x47cee0,_0x1e7d70,_0x53edbd,_0x52a320,_0x353961,_0x1b851f,_0x393eea),_0x53d09f(this,_0x3956fc(0x2aa),_0x3956fc(0x234)),(this[_0x3956fc(0x52e)]=_0x310d90,this[_0x3956fc(0x4db)]=_0x162f44,this['_injector']=_0x50118d,this[_0x3956fc(0x314)]=_0x377c06,this[_0x3956fc(0x26d)]=_0x1a6305);}['onMissedChangesetFetched'](_0x574f92){const _0x5dd548=_0x57b986;try{const _0x2d23ea=[..._0x574f92,...this['_queuedRemoteChangesets']],_0x581f9a=[this[_0x5dd548(0x352)]||this[_0x5dd548(0x52e)]][_0x5dd548(0x252)](_0x4d35ce=>!!_0x4d35ce);let _0x2f86cc,_0x252177;if(_0x581f9a['length']){const _0x3d114d=this[_0x5dd548(0x26d)][_0x5dd548(0x4d9)](_0x2d23ea,_0x581f9a,!0x1);if(!_0x329b63[_0x5dd548(0x4ab)](_0x3d114d))throw _0x3d114d[_0x5dd548(0x4a4)];_0x2f86cc=_0x3d114d['c1Prime'],_0x252177=_0x3d114d[_0x5dd548(0x3b0)];}else _0x2f86cc=_0x2d23ea,_0x252177=[];let _0x535ed0=this[_0x5dd548(0x4b5)];_0x2f86cc[_0x5dd548(0x2bc)](_0x30007e=>{const _0x50b4f1=_0x5dd548;let _0x4c1a60;if(_0x535ed0[_0x50b4f1(0x397)]){const _0x550cd2=this['_transformService']['transformMutationsWithChangeset'](_0x30007e,_0x535ed0);if(!_0x329b63[_0x50b4f1(0x276)](_0x550cd2))throw _0x550cd2[_0x50b4f1(0x4a4)];_0x4c1a60=_0x550cd2[_0x50b4f1(0x264)],_0x535ed0=_0x550cd2[_0x50b4f1(0x22e)];}else _0x4c1a60=_0x30007e;this[_0x50b4f1(0x291)](_0x4c1a60);}),this[_0x5dd548(0x52e)]&&this[_0x5dd548(0x3af)](),this['_awaitingChangeset']&&_0x252177[_0x5dd548(0x397)]&&(_0x252177[0x0][_0x5dd548(0x36a)]=this[_0x5dd548(0x4f0)]());let _0x446be0;if(this[_0x5dd548(0x352)]&&_0x535ed0[_0x5dd548(0x397)]!==0x0)_0x446be0=this['_injector'][_0x5dd548(0x545)](_0x3a588f,this[_0x5dd548(0x40f)],this[_0x5dd548(0x239)],_0x252177[0x0],_0x535ed0,this[_0x5dd548(0x3ad)]);else{if(this['_awaitingChangeset']&&_0x535ed0[_0x5dd548(0x397)]===0x0)_0x252177[0x0][_0x5dd548(0x36a)]=this[_0x5dd548(0x4f0)](),_0x446be0=this[_0x5dd548(0x260)][_0x5dd548(0x545)](_0x304c89,this[_0x5dd548(0x40f)],this[_0x5dd548(0x239)],_0x252177[0x0],this[_0x5dd548(0x3ad)]);else{if(_0x535ed0[_0x5dd548(0x397)]!==0x0){const _0x53d3ed=this['_injector']['createInstance'](_0x56eb89,this[_0x5dd548(0x40f)],this[_0x5dd548(0x239)],_0x535ed0,this['_handler']);_0x53d3ed[_0x5dd548(0x451)](),_0x446be0=_0x53d3ed;}else _0x446be0=this[_0x5dd548(0x260)][_0x5dd548(0x545)](_0x58a1e7,this['unitID'],this['type'],this[_0x5dd548(0x3ad)]);}}return _0x446be0[_0x5dd548(0x427)](),_0x446be0;}catch(_0x44f1fb){return this['_logService']['error'](_0x5dd548(0x2d8),_0x5dd548(0x38f),_0x44f1fb),this[_0x5dd548(0x260)][_0x5dd548(0x545)](_0x4a38e8,this[_0x5dd548(0x40f)],this[_0x5dd548(0x239)],this[_0x5dd548(0x352)],this['_pendingMutations'],this[_0x5dd548(0x3ad)],!0x1);}}[_0x57b986(0x4fc)](){const _0x2a1d9b=_0x57b986;throw new Error(_0x2a1d9b(0x3e0));}[_0x57b986(0x538)](_0x247461){const _0x213761=_0x57b986;return this['_pendingMutations'][_0x213761(0x2a8)](_0x247461),this;}[_0x57b986(0x221)](_0x12c06a){const _0x4d6158=_0x57b986;return this[_0x4d6158(0x4db)][_0x4d6158(0x2a8)](_0x12c06a),this;}['onRemoteAck'](_0x5dd167){const _0x41c793=_0x57b986;if(this[_0x41c793(0x352)])return this[_0x41c793(0x52e)]=this[_0x41c793(0x352)],this[_0x41c793(0x352)]=null,this;throw new Error(_0x41c793(0x505));}[_0x57b986(0x520)](_0x50f928){const _0x84bf6d=_0x57b986;return this[_0x84bf6d(0x244)](!!(_0x50f928!=null&&_0x50f928['isPermissionRej']));}['toggleOffline'](){const _0x2cc8d1=_0x57b986;return this[_0x2cc8d1(0x260)]['createInstance'](_0x3e4f1a,this[_0x2cc8d1(0x40f)],this[_0x2cc8d1(0x239)],this[_0x2cc8d1(0x352)],this[_0x2cc8d1(0x4b5)],this[_0x2cc8d1(0x3ad)]);}[_0x57b986(0x489)](){return this;}[_0x57b986(0x244)](_0x567991){const _0x1c51dd=_0x57b986;return this[_0x1c51dd(0x260)][_0x1c51dd(0x545)](_0x4a38e8,this['unitID'],this[_0x1c51dd(0x239)],this[_0x1c51dd(0x352)],this[_0x1c51dd(0x4b5)],this[_0x1c51dd(0x3ad)],_0x567991);}};_0x340c05=_0x18f1be([_0x326931(0x7,_0x12925a['Inject'](_0x12925a[_0x57b986(0x52f)])),_0x326931(0x8,_0x12925a[_0x57b986(0x42c)](_0x329b63[_0x57b986(0x3a0)])),_0x326931(0x9,_0x12925a['Inject'](_0x3f3314[_0x57b986(0x361)])),_0x326931(0xa,_0x4cdaf4['ILogService']),_0x326931(0xb,_0x4cdaf4[_0x57b986(0x46c)]),_0x326931(0xc,_0x4cdaf4['IUndoRedoService']),_0x326931(0xd,_0x329b63[_0x57b986(0x2a0)])],_0x340c05);function _0x644ba0(_0x56ca31,_0x5c1199,_0x562432,_0x4ad166,_0x1b5cd0,_0x5c52b0){const _0x3a6311=_0x57b986;return _0x4ad166&&_0x1b5cd0[_0x3a6311(0x397)]?_0x56ca31[_0x3a6311(0x545)](_0x3a588f,_0x5c1199,_0x562432,_0x4ad166,_0x1b5cd0,_0x5c52b0):_0x4ad166?_0x56ca31[_0x3a6311(0x545)](_0x304c89,_0x5c1199,_0x562432,_0x4ad166,_0x5c52b0):_0x1b5cd0[_0x3a6311(0x397)]?_0x56ca31[_0x3a6311(0x545)](_0x56eb89,_0x5c1199,_0x562432,_0x1b5cd0,_0x5c52b0):_0x56ca31[_0x3a6311(0x545)](_0x58a1e7,_0x5c1199,_0x562432,_0x5c52b0);}var _0xdc85ed=Object['defineProperty'],_0x237b72=Object[_0x57b986(0x405)],_0x23ff9f=(_0x4dd4ab,_0x34a556,_0x3ca44f,_0x1e693a)=>{const _0x1f3c63=_0x57b986;for(var _0x15a177=_0x1e693a>0x1?void 0x0:_0x1e693a?_0x237b72(_0x34a556,_0x3ca44f):_0x34a556,_0x4ac894=_0x4dd4ab[_0x1f3c63(0x397)]-0x1,_0x29f636;_0x4ac894>=0x0;_0x4ac894--)(_0x29f636=_0x4dd4ab[_0x4ac894])&&(_0x15a177=(_0x1e693a?_0x29f636(_0x34a556,_0x3ca44f,_0x15a177):_0x29f636(_0x15a177))||_0x15a177);return _0x1e693a&&_0x15a177&&_0xdc85ed(_0x34a556,_0x3ca44f,_0x15a177),_0x15a177;},_0x4aceb5=(_0x1001c0,_0x3d0816)=>(_0x1b0832,_0x49a80f)=>_0x3d0816(_0x1b0832,_0x49a80f,_0x1001c0);_0x3f3314[_0x57b986(0x33a)]=class extends _0x4cdaf4[_0x57b986(0x499)]{constructor(_0x520ece,_0x5023bc,_0x4ba865){const _0x503cb4=_0x57b986;super(),_0x53d09f(this,_0x503cb4(0x389),new Map()),_0x53d09f(this,_0x503cb4(0x386),new _0x4bb16b[(_0x503cb4(0x42d))]()),(this['_injector']=_0x520ece,this['_collabSessionService']=_0x5023bc,this[_0x503cb4(0x3d9)]=_0x4ba865,this[_0x503cb4(0x546)]());}[_0x57b986(0x46e)](){const _0x54c946=_0x57b986;super[_0x54c946(0x46e)](),this[_0x54c946(0x389)][_0x54c946(0x2bc)](_0x2051ff=>_0x2051ff[_0x54c946(0x46e)]()),this['_entities'][_0x54c946(0x46b)]();}['getCollabEntity'](_0x5730f4){const _0x1fc309=_0x57b986;var _0x3637c8;return(_0x3637c8=this['_entities'][_0x1fc309(0x408)](_0x5730f4))!=null?_0x3637c8:null;}[_0x57b986(0x2df)](_0x12e814){const _0x456e95=_0x57b986,_0x370c03=this[_0x456e95(0x530)](_0x12e814);return _0x370c03?_0x4bb16b['of'](_0x370c03):this[_0x456e95(0x386)][_0x456e95(0x334)](_0x4ac749['filter'](_0x2073c0=>_0x2073c0[_0x456e95(0x40f)]===_0x12e814));}['_init'](){const _0x56b1cb=_0x57b986;this[_0x56b1cb(0x3d9)][_0x56b1cb(0x553)](_0x4cdaf4[_0x56b1cb(0x514)][_0x56b1cb(0x1ed)])['pipe'](_0x4bb16b['takeUntil'](this[_0x56b1cb(0x2e3)]),_0x4ac749[_0x56b1cb(0x578)](0x10))[_0x56b1cb(0x29e)](async _0x37df99=>{const _0x5208d2=_0x56b1cb,_0x26c2a4=_0x37df99[_0x5208d2(0x3d4)](),_0x374710=await this[_0x5208d2(0x485)](_0x26c2a4,_0x1f330d[_0x5208d2(0x1ed)]);this[_0x5208d2(0x389)]['set'](_0x26c2a4,_0x374710);}),this[_0x56b1cb(0x3d9)][_0x56b1cb(0x553)](_0x4cdaf4[_0x56b1cb(0x514)][_0x56b1cb(0x510)])['pipe'](_0x4bb16b[_0x56b1cb(0x2e2)](this[_0x56b1cb(0x2e3)]),_0x4ac749[_0x56b1cb(0x578)](0x10))[_0x56b1cb(0x334)](_0x4ac749['filter'](_0x1f96fa=>!_0x1f96fa[_0x56b1cb(0x3d4)]()[_0x56b1cb(0x55a)]('__')))[_0x56b1cb(0x29e)](async _0x5f127b=>{const _0x5f3681=_0x56b1cb,_0x227ccd=_0x5f127b[_0x5f3681(0x3d4)](),_0xfc207d=await this['_startCollaboration'](_0x227ccd,_0x1f330d[_0x5f3681(0x510)]);this[_0x5f3681(0x389)][_0x5f3681(0x2c3)](_0x227ccd,_0xfc207d);}),_0x4bb16b[_0x56b1cb(0x468)](this[_0x56b1cb(0x3d9)][_0x56b1cb(0x29d)](_0x4cdaf4['UniverInstanceType'][_0x56b1cb(0x1ed)]),this['_univerInstanceService']['getTypeOfUnitDisposed$'](_0x4cdaf4[_0x56b1cb(0x514)][_0x56b1cb(0x510)]))['pipe'](_0x4bb16b[_0x56b1cb(0x2e2)](this[_0x56b1cb(0x2e3)]))[_0x56b1cb(0x29e)](_0xeddc12=>{const _0xf3b53e=_0x56b1cb,_0x216308=_0xeddc12[_0xf3b53e(0x3d4)](),_0x51cf9c=this[_0xf3b53e(0x389)][_0xf3b53e(0x408)](_0x216308);_0x51cf9c&&(_0x51cf9c[_0xf3b53e(0x46e)](),this[_0xf3b53e(0x389)][_0xf3b53e(0x391)](_0x216308));});}async['_startCollaboration'](_0x4357af,_0x572de3){const _0x505d45=_0x57b986,_0x1debba=await this[_0x505d45(0x31f)][_0x505d45(0x50a)](_0x4357af),_0x582bf2=this[_0x505d45(0x260)]['createInstance'](this[_0x505d45(0x433)](_0x572de3),_0x4357af,_0x572de3,_0x1debba);return await _0x582bf2[_0x505d45(0x533)](),this['_entityInit$'][_0x505d45(0x1bd)](_0x582bf2),_0x582bf2;}[_0x57b986(0x433)](_0x160e0b){const _0xf80e4f=_0x57b986;switch(_0x160e0b){case _0x1f330d[_0xf80e4f(0x510)]:return _0x246c2e;case _0x1f330d[_0xf80e4f(0x1ed)]:return _0x3c250a;default:throw new Error(_0xf80e4f(0x2db)+_0x160e0b);}}},_0x3f3314[_0x57b986(0x33a)]=_0x23ff9f([_0x4cdaf4[_0x57b986(0x4e2)](_0x4cdaf4['LifecycleStages'][_0x57b986(0x2b6)],_0x3f3314[_0x57b986(0x33a)]),_0x4aceb5(0x0,_0x12925a[_0x57b986(0x42c)](_0x12925a['Injector'])),_0x4aceb5(0x1,_0x12925a[_0x57b986(0x42c)](_0x3f3314[_0x57b986(0x48c)])),_0x4aceb5(0x2,_0x4cdaf4[_0x57b986(0x28e)])],_0x3f3314[_0x57b986(0x33a)]);let _0x4d2146=class extends _0x4cdaf4[_0x57b986(0x499)]{constructor(_0x520a20,_0x6f38a9,_0x37c361,_0x1259c4,_0x17b814,_0x18b460,_0x3c8247,_0x1a9049,_0xbcc38a,_0x2e7d5c,_0x2666db,_0x43faa1,_0x37cc4c){const _0x4286c4=_0x57b986;super(),_0x53d09f(this,_0x4286c4(0x498),new _0x4bb16b['BehaviorSubject'](null)),_0x53d09f(this,'state$',this[_0x4286c4(0x498)][_0x4286c4(0x534)]()),_0x53d09f(this,_0x4286c4(0x2bf)),_0x53d09f(this,_0x4286c4(0x428),!0x1),_0x53d09f(this,'status$',this[_0x4286c4(0x230)][_0x4286c4(0x334)](_0x4ac749[_0x4286c4(0x2d2)](_0x3df5a3=>_0x3df5a3?_0x3df5a3[_0x4286c4(0x2aa)]:_0x5185a4[_0x4286c4(0x26f)]),_0x4ac749[_0x4286c4(0x2e1)](0x1))),_0x53d09f(this,_0x4286c4(0x20f),!0x1),_0x53d09f(this,_0x4286c4(0x583),[]),(this[_0x4286c4(0x40f)]=_0x520a20,this[_0x4286c4(0x4a8)]=_0x6f38a9,this[_0x4286c4(0x51d)]=_0x37c361,this['_injector']=_0x1259c4,this[_0x4286c4(0x2ca)]=_0x17b814,this['_compressMutationService']=_0x18b460,this[_0x4286c4(0x247)]=_0x3c8247,this[_0x4286c4(0x377)]=_0x1a9049,this[_0x4286c4(0x314)]=_0xbcc38a,this[_0x4286c4(0x48f)]=_0x2e7d5c,this['_messageService']=_0x2666db,this[_0x4286c4(0x3a7)]=_0x43faa1,this[_0x4286c4(0x35b)]=_0x37cc4c);}get[_0x57b986(0x3d2)](){return this['_state'];}async[_0x57b986(0x533)](){const _0x1f0efa=_0x57b986;if(this['state'])throw new Error('[CollaborationEntity]:\x20initial\x20state\x20has\x20been\x20created\x20before.\x20You\x20should\x20not\x20call\x20\x22init\x22\x20twice.');await this[_0x1f0efa(0x546)]();}[_0x57b986(0x20d)](){const _0x342b63=_0x57b986;return this[_0x342b63(0x428)]=!0x0,_0x4cdaf4[_0x342b63(0x56b)](()=>{const _0x419654=_0x342b63;this[_0x419654(0x428)]=!0x1,this[_0x419654(0x42f)]();});}['_updateState'](_0x5062dc){const _0x24b5b5=_0x57b986;this[_0x24b5b5(0x2bf)]=_0x5062dc,this[_0x24b5b5(0x498)][_0x24b5b5(0x1bd)](_0x5062dc);}async[_0x57b986(0x546)](){const _0x3affee=_0x57b986;var _0x41957b;return this[_0x3affee(0x31a)](await this[_0x3affee(0x465)]()),this[_0x3affee(0x35b)]&&((_0x41957b=this[_0x3affee(0x35b)])==null||_0x41957b[_0x3affee(0x531)](this['unitID']),this[_0x3affee(0x250)](_0x4cdaf4[_0x3affee(0x56b)](this[_0x3affee(0x35b)]['getUnitStatus$'](this[_0x3affee(0x40f)])[_0x3affee(0x29e)](_0x14e7cc=>{const _0x5e79ff=_0x3affee;this[_0x5e79ff(0x314)][_0x5e79ff(0x1fa)](_0x5e79ff(0x2fb),_0x5e79ff(0x255),_0x14e7cc),_0x14e7cc===_0x5e4f39[_0x5e79ff(0x288)]?(this['_messageService'][_0x5e79ff(0x560)]({'content':this['_localeService']['t'](_0x5e79ff(0x487)),'type':_0x4fb88a[_0x5e79ff(0x2af)][_0x5e79ff(0x2bb)]}),this[_0x5e79ff(0x3a7)][_0x5e79ff(0x1be)](new _0x3a01f6['WorkbookEditablePermission'](this['unitID'])['id'],!0x1)):this[_0x5e79ff(0x3a7)][_0x5e79ff(0x1be)](new _0x3a01f6[(_0x5e79ff(0x373))](this[_0x5e79ff(0x40f)])['id'],!0x0);})))),this[_0x3affee(0x250)](_0x4cdaf4[_0x3affee(0x56b)](this[_0x3affee(0x51d)][_0x3affee(0x46d)][_0x3affee(0x29e)](_0x272159=>{const _0x2bfa2f=_0x3affee;_0x272159===_0x585a5c['ONLINE']?this[_0x2bfa2f(0x2b9)]():_0x272159===_0x585a5c['OFFLINE']&&this[_0x2bfa2f(0x341)]();}))),this[_0x3affee(0x250)](_0x4cdaf4[_0x3affee(0x56b)](this[_0x3affee(0x51d)][_0x3affee(0x24c)][_0x3affee(0x29e)](_0x39075b=>{const _0x4a9503=_0x3affee;try{switch(_0x39075b[_0x4a9503(0x558)]){case _0x329b63[_0x4a9503(0x3dc)][_0x4a9503(0x345)]:{this[_0x4a9503(0x285)](_0x329b63['parseProtocolChangeset'](_0x39075b[_0x4a9503(0x4a7)]));break;}case _0x329b63['CollaborationEvent'][_0x4a9503(0x396)]:{this['_onRemoteACK'](_0x39075b[_0x4a9503(0x4a7)]);break;}case _0x329b63[_0x4a9503(0x3dc)][_0x4a9503(0x429)]:{this['_onRemoteRejected']();break;}case _0x329b63[_0x4a9503(0x3dc)]['PSEUDO_FETCH_MISSING_RESULT']:{this[_0x4a9503(0x512)](_0x39075b[_0x4a9503(0x4a7)]['changesets'][_0x4a9503(0x2d2)](_0x3b4ac3=>_0x329b63[_0x4a9503(0x4a6)](_0x3b4ac3)));break;}case _0x329b63[_0x4a9503(0x3dc)][_0x4a9503(0x271)]:this[_0x4a9503(0x380)]({'isPermissionRej':!0x0});}}catch(_0x124d1e){throw console['error']('Error\x20on\x20receiving\x20event',_0x124d1e),_0x124d1e;}}))),this[_0x3affee(0x2bf)];}[_0x57b986(0x426)](){this['_transitionLocked']=!0x1;}[_0x57b986(0x20a)](){const _0x4d62b9=_0x57b986;if(this[_0x4d62b9(0x20f)])throw new Error(_0x4d62b9(0x3fd));this[_0x4d62b9(0x20f)]=!0x0;}[_0x57b986(0x335)](_0x3119ea){const _0x54e116=_0x57b986;this[_0x54e116(0x20a)](),this[_0x54e116(0x31a)](this[_0x54e116(0x2bf)][_0x54e116(0x538)](_0x3119ea)),this['_unlockTransition']();}['_onRemoteChangeset'](_0x34aca7){const _0x22a3db=_0x57b986;if(!(_0x34aca7[_0x22a3db(0x49a)]<=this[_0x22a3db(0x377)][_0x22a3db(0x577)](this['unitID']))){if(this[_0x22a3db(0x428)]){this[_0x22a3db(0x583)][_0x22a3db(0x2a8)](_0x34aca7);return;}this['_applyRemoteChangeset'](_0x34aca7);}}[_0x57b986(0x42f)](){const _0x1ebf0b=_0x57b986;this[_0x1ebf0b(0x583)][_0x1ebf0b(0x2bc)](_0x1231be=>this[_0x1ebf0b(0x42a)](_0x1231be)),this[_0x1ebf0b(0x583)]=[];}[_0x57b986(0x42a)](_0x31f8ce){const _0x50b4b2=_0x57b986,_0x38bea2=this[_0x50b4b2(0x400)]['interceptor'][_0x50b4b2(0x21c)](this[_0x50b4b2(0x400)]['interceptor']['getInterceptPoints']()['COMPRESS_MUTATION_APPLY'])(_0x31f8ce[_0x50b4b2(0x526)],null)||_0x31f8ce[_0x50b4b2(0x526)],_0x121860={..._0x31f8ce,'mutations':_0x38bea2};this['_lockTransition'](),this[_0x50b4b2(0x31a)](this['_state'][_0x50b4b2(0x221)](_0x121860)),this[_0x50b4b2(0x426)]();}['_onRemoteACK'](_0x4b3c14){const _0x47978f=_0x57b986;this['_lockTransition'](),this['_updateState'](this[_0x47978f(0x2bf)]['onRemoteAck'](_0x4b3c14)),this[_0x47978f(0x426)]();}[_0x57b986(0x380)](_0x1603e1){const _0x39f873=_0x57b986;this[_0x39f873(0x20a)](),this['_updateState'](this['_state'][_0x39f873(0x520)](_0x1603e1)),this[_0x39f873(0x426)]();}[_0x57b986(0x512)](_0x350f80){const _0x4efd71=_0x57b986;if(!(this[_0x4efd71(0x2bf)]instanceof _0x340c05))throw new TypeError(_0x4efd71(0x24f));const _0x14fcbf=_0x350f80['map'](_0x573dee=>{const _0x2391dc=_0x4efd71,_0x4e5c01=this[_0x2391dc(0x400)][_0x2391dc(0x1f5)][_0x2391dc(0x21c)](this['_compressMutationService'][_0x2391dc(0x1f5)][_0x2391dc(0x28c)]()['COMPRESS_MUTATION_APPLY'])(_0x573dee[_0x2391dc(0x526)],null)||_0x573dee[_0x2391dc(0x526)];return{..._0x573dee,'mutations':_0x4e5c01};});this[_0x4efd71(0x20a)](),this[_0x4efd71(0x31a)](this[_0x4efd71(0x2bf)][_0x4efd71(0x1cd)](_0x14fcbf)),this[_0x4efd71(0x426)]();}[_0x57b986(0x341)](){const _0x5705f7=_0x57b986;this['_lockTransition'](),this['_updateState'](this[_0x5705f7(0x2bf)]['toggleOffline']()),this[_0x5705f7(0x426)]();}[_0x57b986(0x2b9)](){const _0x452262=_0x57b986;this['_lockTransition'](),this[_0x452262(0x31a)](this[_0x452262(0x2bf)]['toggleOnline']()),this[_0x452262(0x426)]();}async[_0x57b986(0x465)](){return new Promise(_0x16b43b=>{const _0x916655=_0x23df;this[_0x916655(0x51d)]['sessionStatus$'][_0x916655(0x334)](_0x4ac749['take'](0x1))[_0x916655(0x29e)](async _0x3c008c=>{const _0xacd23=_0x916655;_0x16b43b(await this[_0xacd23(0x4bd)](_0x3c008c===_0x585a5c[_0xacd23(0x1c1)]));});});}[_0x57b986(0x215)](){const _0xf9e93b=_0x57b986,_0x156cfe=this[_0xf9e93b(0x40f)];return{'onStateChange':(_0x58dd03,_0x5d3573)=>{const _0x106815=_0xf9e93b;if(_0x58dd03!==this[_0x106815(0x2bf)])throw new Error(_0x106815(0x463)+_0x58dd03[_0x106815(0x2aa)]+_0x106815(0x4ce)+_0x5d3573['status']+_0x106815(0x3a1)+this[_0x106815(0x2bf)][_0x106815(0x2aa)]);this[_0x106815(0x31a)](_0x5d3573);},'onSendChangeset':_0x22b283=>{const _0x12a688=_0xf9e93b,_0x1585fd={'eventID':_0x329b63[_0x12a688(0x3dc)][_0x12a688(0x3b5)],'data':{'unitID':_0x22b283[_0x12a688(0x40f)],'unitType':this[_0x12a688(0x4a8)],'changeset':_0x22b283,'memberID':this[_0x12a688(0x51d)][_0x12a688(0x46a)]()}};this['_session'][_0x12a688(0x4aa)](_0x1585fd,this[_0x12a688(0x40f)]);},'onMissingChangesets':({from:_0x2e920d,to:_0x3bfd54})=>{const _0x17cbf2=_0xf9e93b;this[_0x17cbf2(0x314)][_0x17cbf2(0x1fa)](_0x17cbf2(0x2fb),_0x17cbf2(0x40e)+_0x2e920d+_0x17cbf2(0x39c)+_0x3bfd54);const _0x29b912={'eventID':_0x329b63[_0x17cbf2(0x3dc)][_0x17cbf2(0x355)],'data':{'unitID':_0x156cfe,'unitType':this['_type'],'from':_0x2e920d,'to':_0x3bfd54}};this[_0x17cbf2(0x51d)][_0x17cbf2(0x4aa)](_0x29b912,this[_0x17cbf2(0x40f)]);}};}async[_0x57b986(0x4bd)](_0x509ba1){const _0x2319c4=_0x57b986;var _0x3b4c3c,_0x129543;const _0x2537bd=await this['_localCacheService'][_0x2319c4(0x1d5)](this['unitID']),_0x31aa57=(_0x3b4c3c=_0x2537bd==null?void 0x0:_0x2537bd['mutations'])!=null?_0x3b4c3c:[],_0x263b1b=(_0x129543=_0x2537bd==null?void 0x0:_0x2537bd[_0x2319c4(0x4c9)])!=null?_0x129543:null,_0x2109c6=this[_0x2319c4(0x40f)];try{this['_replayCachedMutations'](_0x263b1b,_0x31aa57);}catch(_0x353378){this[_0x2319c4(0x314)]['error'](_0x353378);}const _0x4ad036=this[_0x2319c4(0x215)]();if(_0x509ba1){const _0x104db9=_0x644ba0(this[_0x2319c4(0x260)],_0x2109c6,this[_0x2319c4(0x4a8)],_0x263b1b,_0x31aa57,_0x4ad036);return _0x104db9 instanceof _0x56eb89?_0x104db9['_schedule']():(_0x104db9 instanceof _0x3a588f||_0x104db9 instanceof _0x304c89)&&_0x104db9[_0x2319c4(0x4fc)](),_0x104db9;}return this['_injector'][_0x2319c4(0x545)](_0x3e4f1a,_0x2109c6,this[_0x2319c4(0x4a8)],_0x263b1b,_0x31aa57,_0x4ad036);}[_0x57b986(0x2d9)](_0x4081ab,_0x49e144){const _0x3d39a6=_0x57b986;var _0x36629a,_0x82627a;const _0x21ffdb=this[_0x3d39a6(0x400)][_0x3d39a6(0x1f5)]['fetchThroughInterceptors'](this[_0x3d39a6(0x400)][_0x3d39a6(0x1f5)][_0x3d39a6(0x28c)]()[_0x3d39a6(0x1ea)]);(_0x36629a=_0x21ffdb((_0x4081ab==null?void 0x0:_0x4081ab[_0x3d39a6(0x526)])||[],null))==null||_0x36629a[_0x3d39a6(0x2bc)](_0x385555=>this['_commandService'][_0x3d39a6(0x21f)](_0x385555['id'],_0x385555[_0x3d39a6(0x455)])),(_0x82627a=_0x21ffdb(_0x49e144||[],null))==null||_0x82627a[_0x3d39a6(0x2bc)](_0x4dab94=>this[_0x3d39a6(0x48f)]['executeCommand'](_0x4dab94['id'],_0x4dab94[_0x3d39a6(0x455)]));}};_0x4d2146=_0x23ff9f([_0x4aceb5(0x3,_0x12925a[_0x57b986(0x42c)](_0x12925a[_0x57b986(0x52f)])),_0x4aceb5(0x4,_0x12925a[_0x57b986(0x42c)](_0x3f3314['LocalCacheService'])),_0x4aceb5(0x5,_0x12925a[_0x57b986(0x42c)](_0x329b63[_0x57b986(0x3bd)])),_0x4aceb5(0x6,_0x12925a[_0x57b986(0x42c)](_0x4cdaf4[_0x57b986(0x502)])),_0x4aceb5(0x7,_0x12925a['Inject'](_0x329b63[_0x57b986(0x3a0)])),_0x4aceb5(0x8,_0x4cdaf4[_0x57b986(0x41c)]),_0x4aceb5(0x9,_0x4cdaf4[_0x57b986(0x46c)]),_0x4aceb5(0xa,_0x4ff465['IMessageService']),_0x4aceb5(0xb,_0x4cdaf4['IPermissionService']),_0x4aceb5(0xc,_0x12925a[_0x57b986(0x3ec)](_0x1c83f9))],_0x4d2146);let _0x246c2e=class extends _0x4d2146{constructor(_0x2ab7e3,_0x33b89f,_0x38137a,_0x33e9a5,_0x460bce,_0x527749,_0x3ff67f,_0x54ba4f,_0x4349cd,_0x10d639,_0x1d947f,_0x2b7321,_0x3ffd7e,_0x4614a0,_0xa87363,_0x403dde,_0x1e42c7){const _0x564257=_0x57b986;super(_0x2ab7e3,_0x33b89f,_0x38137a,_0x33e9a5,_0x460bce,_0x527749,_0x3ff67f,_0x54ba4f,_0x3ffd7e,_0x4614a0,_0xa87363,_0x403dde,_0x1e42c7),this['unitID']=_0x2ab7e3,this['type']=_0x33b89f,this[_0x564257(0x469)]=_0x38137a,this[_0x564257(0x2ff)]=_0x4349cd,this[_0x564257(0x275)]=_0x10d639,this['_docTransformSelectionsService']=_0x1d947f,this[_0x564257(0x293)]=_0x2b7321;}[_0x57b986(0x215)](){const _0x2ec544=_0x57b986,_0x298a55=super[_0x2ec544(0x215)]();return _0x298a55['onTransformIME']=_0x5cd0bd=>this[_0x2ec544(0x275)]['transformIMECache'](_0x5cd0bd),_0x298a55[_0x2ec544(0x31e)]=_0x4dd0a3=>this[_0x2ec544(0x282)][_0x2ec544(0x4c8)](_0x4dd0a3),_0x298a55[_0x2ec544(0x23b)]=_0xf12eda=>this[_0x2ec544(0x293)]['syncEditingCollabCursor'](_0xf12eda),_0x298a55[_0x2ec544(0x242)]=_0x484012=>this[_0x2ec544(0x275)][_0x2ec544(0x506)](_0x484012),_0x298a55;}async[_0x57b986(0x546)](){const _0x41b208=_0x57b986,_0x1fe86c=await super[_0x41b208(0x546)]();return this['_docStateChangeManagerService']['docStateChange$'][_0x41b208(0x334)](_0x4bb16b['takeUntil'](this[_0x41b208(0x2e3)]))[_0x41b208(0x29e)](_0x5b8510=>{const _0x34685d=_0x41b208;if(_0x5b8510==null)return;const {unitId:_0x26d5aa,redoState:_0x5ac1e8,commandId:_0x522972}=_0x5b8510;if(_0x26d5aa!==this[_0x34685d(0x40f)])return;const _0x48edfe={'id':_0x522972,'type':_0x4cdaf4[_0x34685d(0x316)][_0x34685d(0x414)],'params':{'unitId':_0x26d5aa,'actions':_0x5ac1e8[_0x34685d(0x29a)],'textRanges':null}};this[_0x34685d(0x335)](_0x48edfe);}),_0x1fe86c;}};_0x246c2e=_0x23ff9f([_0x4aceb5(0x3,_0x12925a['Inject'](_0x12925a[_0x57b986(0x52f)])),_0x4aceb5(0x4,_0x12925a[_0x57b986(0x42c)](_0x3f3314['LocalCacheService'])),_0x4aceb5(0x5,_0x12925a[_0x57b986(0x42c)](_0x329b63[_0x57b986(0x3bd)])),_0x4aceb5(0x6,_0x12925a[_0x57b986(0x42c)](_0x4cdaf4[_0x57b986(0x502)])),_0x4aceb5(0x7,_0x12925a[_0x57b986(0x42c)](_0x329b63[_0x57b986(0x3a0)])),_0x4aceb5(0x8,_0x12925a[_0x57b986(0x42c)](_0x3fcd1a[_0x57b986(0x415)])),_0x4aceb5(0x9,_0x12925a[_0x57b986(0x42c)](_0x29ca68)),_0x4aceb5(0xa,_0x12925a['Inject'](_0x38542b)),_0x4aceb5(0xb,_0x12925a[_0x57b986(0x42c)](_0x2f17dc)),_0x4aceb5(0xc,_0x4cdaf4[_0x57b986(0x41c)]),_0x4aceb5(0xd,_0x4cdaf4[_0x57b986(0x46c)]),_0x4aceb5(0xe,_0x4ff465['IMessageService']),_0x4aceb5(0xf,_0x4cdaf4['IPermissionService']),_0x4aceb5(0x10,_0x12925a[_0x57b986(0x3ec)](_0x1c83f9))],_0x246c2e);let _0x3c250a=class extends _0x4d2146{constructor(_0x4c6214,_0x56f9e3,_0x4d36ce,_0x160cd4,_0x5774de,_0x584d75,_0x2b216d,_0x5b0f66,_0x49c7fb,_0xdc115a,_0x64533b,_0x39c904,_0x502a7c,_0x58ee92){const _0x3933f8=_0x57b986;super(_0x4c6214,_0x56f9e3,_0x4d36ce,_0x160cd4,_0x5774de,_0x584d75,_0x2b216d,_0x5b0f66,_0xdc115a,_0x64533b,_0x39c904,_0x502a7c,_0x58ee92),this[_0x3933f8(0x40f)]=_0x4c6214,this[_0x3933f8(0x239)]=_0x56f9e3,this[_0x3933f8(0x469)]=_0x4d36ce,this[_0x3933f8(0x55b)]=_0x49c7fb;}[_0x57b986(0x215)](){const _0x4f939e=_0x57b986,_0x46ae0d=super[_0x4f939e(0x215)]();return _0x46ae0d['onTransformSelections']=_0x418815=>this[_0x4f939e(0x55b)][_0x4f939e(0x4c8)](_0x418815),_0x46ae0d;}async[_0x57b986(0x546)](){const _0x2084c7=_0x57b986,_0x3646e1=await super[_0x2084c7(0x546)]();return this[_0x2084c7(0x250)](this[_0x2084c7(0x48f)]['onCommandExecuted']((_0x173086,_0x4f524c)=>{const _0x23d2c8=_0x2084c7;if(_0x173086['type']!==_0x4cdaf4[_0x23d2c8(0x316)][_0x23d2c8(0x414)]||_0x4f524c!=null&&_0x4f524c['fromCollab']||_0x4f524c!=null&&_0x4f524c[_0x23d2c8(0x387)])return;const _0x1b66d6=_0x173086['params'];if((_0x1b66d6==null?void 0x0:_0x1b66d6['unitId'])!==this[_0x23d2c8(0x40f)])return;const _0xe439f6=_0x173086,_0x582170=this['_compressMutationService'][_0x23d2c8(0x1f5)][_0x23d2c8(0x21c)](this[_0x23d2c8(0x400)][_0x23d2c8(0x1f5)][_0x23d2c8(0x28c)]()[_0x23d2c8(0x28f)])([_0xe439f6],null)||[_0xe439f6];this[_0x23d2c8(0x335)](_0x582170[0x0]);})),_0x3646e1;}};_0x3c250a=_0x23ff9f([_0x4aceb5(0x3,_0x12925a[_0x57b986(0x42c)](_0x12925a[_0x57b986(0x52f)])),_0x4aceb5(0x4,_0x12925a[_0x57b986(0x42c)](_0x3f3314['LocalCacheService'])),_0x4aceb5(0x5,_0x12925a[_0x57b986(0x42c)](_0x329b63[_0x57b986(0x3bd)])),_0x4aceb5(0x6,_0x12925a[_0x57b986(0x42c)](_0x4cdaf4[_0x57b986(0x502)])),_0x4aceb5(0x7,_0x12925a[_0x57b986(0x42c)](_0x329b63[_0x57b986(0x3a0)])),_0x4aceb5(0x8,_0x12925a[_0x57b986(0x42c)](_0x4e6a4d)),_0x4aceb5(0x9,_0x4cdaf4[_0x57b986(0x41c)]),_0x4aceb5(0xa,_0x4cdaf4[_0x57b986(0x46c)]),_0x4aceb5(0xb,_0x4ff465['IMessageService']),_0x4aceb5(0xc,_0x4cdaf4[_0x57b986(0x413)]),_0x4aceb5(0xd,_0x12925a[_0x57b986(0x3ec)](_0x1c83f9))],_0x3c250a);const _0x332ff8=[_0x57b986(0x306),_0x57b986(0x32c),_0x57b986(0x57f),_0x57b986(0x443),_0x57b986(0x2b4),_0x57b986(0x445)];class _0x2ba255 extends _0x4cdaf4[_0x57b986(0x310)]{constructor(){const _0x5d1349=_0x57b986;super(...arguments),_0x53d09f(this,_0x5d1349(0x328),new Map()),_0x53d09f(this,_0x5d1349(0x549),0x0);}['assignAColorForMemberID'](_0x4e0784){const _0x4aff1f=_0x57b986;if(this[_0x4aff1f(0x328)]['has'](_0x4e0784))return this[_0x4aff1f(0x328)][_0x4aff1f(0x408)](_0x4e0784);const _0x5c1b81=_0x332ff8[this['_colorIndex']];return this['_colorIndex']=(this[_0x4aff1f(0x549)]+0x1)%_0x332ff8[_0x4aff1f(0x397)],this[_0x4aff1f(0x328)][_0x4aff1f(0x2c3)](_0x4e0784,_0x5c1b81),_0x5c1b81;}}var _0x59c414=Object['defineProperty'],_0x2b80c1=Object[_0x57b986(0x405)],_0x35c062=(_0x46fe98,_0x3a9348,_0x2386af,_0x19f959)=>{const _0x5ebe01=_0x57b986;for(var _0x3d5347=_0x19f959>0x1?void 0x0:_0x19f959?_0x2b80c1(_0x3a9348,_0x2386af):_0x3a9348,_0x5cd20b=_0x46fe98[_0x5ebe01(0x397)]-0x1,_0x952162;_0x5cd20b>=0x0;_0x5cd20b--)(_0x952162=_0x46fe98[_0x5cd20b])&&(_0x3d5347=(_0x19f959?_0x952162(_0x3a9348,_0x2386af,_0x3d5347):_0x952162(_0x3d5347))||_0x3d5347);return _0x19f959&&_0x3d5347&&_0x59c414(_0x3a9348,_0x2386af,_0x3d5347),_0x3d5347;},_0x5c3b3a=(_0x2a615c,_0x423658)=>(_0x374d21,_0x3c3dab)=>_0x423658(_0x374d21,_0x3c3dab,_0x2a615c);const _0x1a870c=0x12c,_0x54922a=0x64,_0x46761=()=>{let _0x4c62d1=[],_0x5f8dd3=!0x1;return _0x3cf5d3=>{_0x4c62d1['push'](_0x3cf5d3),_0x5f8dd3||(_0x5f8dd3=!0x0,setTimeout(()=>{_0x4c62d1['forEach'](_0x31ae11=>_0x31ae11()),_0x4c62d1=[],_0x5f8dd3=!0x1;}));};};let _0x1d8604=class extends _0x4cdaf4['RxDisposable']{constructor(_0x1dc4d4,_0x5d0114,_0x452fc5,_0x18529d,_0x7cb188,_0x1edc70,_0x2db7ec,_0xf5b158){const _0x137b69=_0x57b986;super(),_0x53d09f(this,_0x137b69(0x3d8),!0x1),_0x53d09f(this,_0x137b69(0x546),!0x1),_0x53d09f(this,_0x137b69(0x1cf),new _0x4bb16b[(_0x137b69(0x2e9))](new Map())),_0x53d09f(this,_0x137b69(0x535),this[_0x137b69(0x1cf)][_0x137b69(0x534)]()),_0x53d09f(this,_0x137b69(0x51e),new _0x4bb16b[(_0x137b69(0x2e9))]([])),_0x53d09f(this,_0x137b69(0x399),this[_0x137b69(0x51e)][_0x137b69(0x334)](_0x4bb16b[_0x137b69(0x3cd)](_0x1a870c))),_0x53d09f(this,_0x137b69(0x38a),_0x7451ba((_0xaa728f,_0x3bc471)=>{const _0xc8b3f5=_0x137b69,_0x54a39d={'eventID':_0x329b63[_0xc8b3f5(0x3dc)][_0xc8b3f5(0x2c9)],'data':{'unitID':this[_0xc8b3f5(0x40f)],'memberID':this[_0xc8b3f5(0x51d)][_0xc8b3f5(0x46a)](),'selection':_0x29b663[_0xc8b3f5(0x1fd)](_0xaa728f,_0x3bc471['range'])}};this[_0xc8b3f5(0x51d)]['send'](_0x54a39d,this[_0xc8b3f5(0x40f)]);},_0x54922a)),(this[_0x137b69(0x40f)]=_0x1dc4d4,this['_session']=_0x5d0114,this['_injector']=_0x452fc5,this['_colorAssignService']=_0x18529d,this[_0x137b69(0x1d3)]=_0x7cb188,this[_0x137b69(0x3d9)]=_0x1edc70,this[_0x137b69(0x48f)]=_0x2db7ec,this[_0x137b69(0x33f)]=_0xf5b158);}get[_0x57b986(0x25b)](){const _0x521e0e=_0x57b986;return this['_cursorInfo$'][_0x521e0e(0x424)]();}get[_0x57b986(0x2c7)](){const _0x3443bb=_0x57b986;return this[_0x3443bb(0x51e)]['getValue']();}[_0x57b986(0x46e)](){const _0x4303f6=_0x57b986;super[_0x4303f6(0x46e)](),this[_0x4303f6(0x1cf)][_0x4303f6(0x1bd)](new Map()),this[_0x4303f6(0x1cf)]['complete'](),this[_0x4303f6(0x51e)]['next']([]),this['_roomMembers$'][_0x4303f6(0x461)]();}['init'](){const _0x1d87cb=_0x57b986;this['_init']||(this[_0x1d87cb(0x546)]=!0x0,this[_0x1d87cb(0x51d)][_0x1d87cb(0x46d)]['pipe'](_0x4bb16b['takeUntil'](this[_0x1d87cb(0x2e3)]))['subscribe'](_0x286323=>{const _0x49523b=_0x1d87cb;_0x286323===_0x585a5c[_0x49523b(0x1c1)]?this[_0x49523b(0x2b9)]():this['_toggleOffline']();}),this['_session'][_0x1d87cb(0x24c)][_0x1d87cb(0x334)](_0x4bb16b[_0x1d87cb(0x2e2)](this['dispose$']))[_0x1d87cb(0x29e)](_0x3a4ffa=>{const _0x5b2b54=_0x1d87cb,_0x5639ce=_0x3a4ffa['eventID'];_0x5639ce===_0x329b63[_0x5b2b54(0x3dc)][_0x5b2b54(0x2c9)]&&this[_0x5b2b54(0x3b6)](_0x3a4ffa),_0x5639ce===_0x329b63[_0x5b2b54(0x3dc)][_0x5b2b54(0x1f0)]&&this['_onCursorDelete'](_0x3a4ffa);}),this[_0x1d87cb(0x475)](),this['disposeWithMe'](this['_commandService'][_0x1d87cb(0x4eb)](_0x586412=>{const _0x55fc36=_0x1d87cb;if(this['_online']&&_0x586412['id']===_0x3a01f6[_0x55fc36(0x467)]['id']&&_0x586412[_0x55fc36(0x455)][_0x55fc36(0x2a3)]===this['unitID']){const _0x3ca72a=_0x586412[_0x55fc36(0x455)];this[_0x55fc36(0x38a)](_0x3ca72a[_0x55fc36(0x295)],_0x3ca72a['selections'][0x0]);}})));}[_0x57b986(0x3b6)](_0x1ca88f){const _0x523a48=_0x57b986;var _0x45db80,_0x191253;const {memberID:_0x333469,selection:_0x47b610}=_0x1ca88f[_0x523a48(0x4a7)],{sheetName:_0x2a4494,range:_0x23b2a0}=_0x29b663['deserializeRangeWithSheet'](_0x47b610),_0x24a0f8={'name':(_0x191253=(_0x45db80=this['_memberService'][_0x523a48(0x44f)](this[_0x523a48(0x40f)],_0x333469))==null?void 0x0:_0x45db80['name'])!=null?_0x191253:_0x523a48(0x442),'range':this[_0x523a48(0x3f4)](_0x2a4494,_0x23b2a0),'sheetID':_0x2a4494,'color':this['_colorAssignService']['assignAColorForMemberID'](_0x333469),'selection':_0x47b610},_0x56d9bb=this[_0x523a48(0x25b)];_0x56d9bb[_0x523a48(0x2c3)](_0x333469,_0x24a0f8),this['_cursorInfo$'][_0x523a48(0x1bd)](_0x56d9bb);}[_0x57b986(0x47e)](_0x100a95){const _0x426b70=_0x57b986,{memberID:_0x541719}=_0x100a95[_0x426b70(0x4a7)],_0x4a3e4d=this[_0x426b70(0x25b)];_0x4a3e4d['delete'](_0x541719),this['_cursorInfo$'][_0x426b70(0x1bd)](_0x4a3e4d);}[_0x57b986(0x3f4)](_0x3ab4c1,_0x21e4c4){const _0x9c3eda=_0x57b986;var _0x429f02,_0x1d1c70;const _0x4b24cb=(_0x1d1c70=(_0x429f02=this[_0x9c3eda(0x3d9)][_0x9c3eda(0x4d1)](this['unitID']))==null?void 0x0:_0x429f02['getSheetBySheetId'](_0x3ab4c1))==null?void 0x0:_0x1d1c70[_0x9c3eda(0x38d)]();return(_0x4b24cb==null?void 0x0:_0x4b24cb[_0x9c3eda(0x4f5)](_0x5d4adc=>_0x4cdaf4[_0x9c3eda(0x1df)][_0x9c3eda(0x384)](_0x5d4adc,_0x21e4c4)))||_0x21e4c4;}['_onRefRangeChange'](){const _0x4b529b=_0x57b986,_0x1e954a=new _0x4cdaf4['DisposableCollection'](),_0x3b76b0=_0x46761(),_0xa7b5af=()=>{const _0x51b8b5=_0x23df;_0x1e954a[_0x51b8b5(0x46e)]();const _0x2dfd80=(_0x185185,_0x5bca46,_0x5020bb,_0x31dc9a)=>{const _0x315dde=_0x51b8b5;let _0x2db0f5=[];switch(_0x185185['id']){case _0x3a01f6[_0x315dde(0x360)]['DeleteRangeMoveLeftCommandId']:{_0x2db0f5=_0x3a01f6[_0x315dde(0x3f8)](_0x185185,_0x31dc9a);break;}case _0x3a01f6[_0x315dde(0x360)][_0x315dde(0x4c1)]:{_0x2db0f5=_0x3a01f6[_0x315dde(0x420)](_0x185185,_0x31dc9a);break;}case _0x3a01f6['EffectRefRangId']['InsertColCommandId']:{_0x2db0f5=_0x3a01f6[_0x315dde(0x452)](_0x185185,_0x31dc9a);break;}case _0x3a01f6[_0x315dde(0x360)][_0x315dde(0x24e)]:{_0x2db0f5=_0x3a01f6[_0x315dde(0x269)](_0x185185,_0x31dc9a);break;}case _0x3a01f6[_0x315dde(0x360)][_0x315dde(0x2f4)]:{_0x2db0f5=_0x3a01f6['handleInsertRangeMoveRight'](_0x185185,_0x31dc9a);break;}case _0x3a01f6[_0x315dde(0x360)][_0x315dde(0x1c8)]:{_0x2db0f5=_0x3a01f6[_0x315dde(0x4f3)](_0x185185,_0x31dc9a);break;}case _0x3a01f6[_0x315dde(0x360)][_0x315dde(0x4e7)]:{_0x2db0f5=_0x3a01f6['handleMoveRange'](_0x185185,_0x31dc9a);break;}case _0x3a01f6['EffectRefRangId'][_0x315dde(0x385)]:{_0x2db0f5=_0x3a01f6['handleIRemoveCol'](_0x185185,_0x31dc9a);break;}case _0x3a01f6[_0x315dde(0x360)][_0x315dde(0x523)]:{_0x2db0f5=_0x3a01f6[_0x315dde(0x1f3)](_0x185185,_0x31dc9a);break;}}const _0x5a7ae5=_0x3a01f6[_0x315dde(0x4af)](_0x2db0f5,_0x31dc9a),_0xea2c61=this[_0x315dde(0x25b)][_0x315dde(0x408)](_0x5bca46);if(_0xea2c61&&_0x5a7ae5){const _0x52139e={..._0xea2c61,'range':_0x5a7ae5};this['cursorInfo'][_0x315dde(0x2c3)](_0x5bca46,_0x52139e),_0x3b76b0(()=>{const _0x38a40e=_0x315dde,_0x3eed8f=this[_0x38a40e(0x33f)][_0x38a40e(0x492)](_0x5a7ae5,_0x5795f0=>(_0x3eed8f[_0x38a40e(0x46e)](),_0x2dfd80(_0x5795f0,_0x5bca46,_0x5020bb,_0x5a7ae5)));_0x1e954a[_0x38a40e(0x2b7)](_0x3eed8f);});}return{'redos':[],'undos':[]};};this['cursorInfo']['forEach']((_0x5470e2,_0x35d538)=>{const _0x125774=_0x51b8b5,{range:_0x24df8c,sheetID:_0x18d628}=_0x5470e2,_0x1852b9=this['_refRangeService'][_0x125774(0x492)](_0x24df8c,_0x52ddfb=>(_0x1852b9[_0x125774(0x46e)](),_0x2dfd80(_0x52ddfb,_0x35d538,_0x18d628,_0x24df8c)));_0x1e954a[_0x125774(0x2b7)](_0x1852b9);});};this[_0x4b529b(0x250)](_0x4cdaf4[_0x4b529b(0x56b)](this[_0x4b529b(0x1cf)][_0x4b529b(0x29e)](()=>{_0xa7b5af();})));}[_0x57b986(0x2b9)](){const _0x756c8b=_0x57b986;var _0x3f0582,_0x57427b;if(this[_0x756c8b(0x3d8)]=!0x0,((_0x3f0582=this[_0x756c8b(0x3d9)][_0x756c8b(0x44d)]())==null?void 0x0:_0x3f0582[_0x756c8b(0x3d4)]())!==this[_0x756c8b(0x40f)])return;const _0x549db4=(_0x57427b=this['_injector'][_0x756c8b(0x408)](_0x3a01f6['SelectionManagerService'])[_0x756c8b(0x409)]())==null?void 0x0:_0x57427b[0x0],_0x49372e=this[_0x756c8b(0x3d9)][_0x756c8b(0x395)](_0x4cdaf4['UniverInstanceType'][_0x756c8b(0x1ed)])[_0x756c8b(0x3e6)]();_0x549db4&&_0x49372e&&this['_updateLocalCursor'](_0x49372e[_0x756c8b(0x2c5)](),_0x549db4);}[_0x57b986(0x341)](){this['_online']=!0x1;}};_0x1d8604=_0x35c062([_0x5c3b3a(0x2,_0x12925a[_0x57b986(0x42c)](_0x12925a[_0x57b986(0x52f)])),_0x5c3b3a(0x3,_0x12925a[_0x57b986(0x42c)](_0x2ba255)),_0x5c3b3a(0x4,_0x12925a[_0x57b986(0x42c)](_0x4495e7)),_0x5c3b3a(0x5,_0x4cdaf4[_0x57b986(0x28e)]),_0x5c3b3a(0x6,_0x4cdaf4['ICommandService']),_0x5c3b3a(0x7,_0x12925a[_0x57b986(0x42c)](_0x3a01f6['RefRangeService']))],_0x1d8604);var _0x2e536c=Object[_0x57b986(0x1f4)],_0x3558ec=Object[_0x57b986(0x405)],_0x8238c6=(_0x7faf12,_0x637063,_0x1b1419,_0x587426)=>{for(var _0x41ef7d=_0x587426>0x1?void 0x0:_0x587426?_0x3558ec(_0x637063,_0x1b1419):_0x637063,_0x4b5de8=_0x7faf12['length']-0x1,_0x3cee4a;_0x4b5de8>=0x0;_0x4b5de8--)(_0x3cee4a=_0x7faf12[_0x4b5de8])&&(_0x41ef7d=(_0x587426?_0x3cee4a(_0x637063,_0x1b1419,_0x41ef7d):_0x3cee4a(_0x41ef7d))||_0x41ef7d);return _0x587426&&_0x41ef7d&&_0x2e536c(_0x637063,_0x1b1419,_0x41ef7d),_0x41ef7d;},_0x1d8331=(_0x295a93,_0x5d2386)=>(_0x520b77,_0x20320e)=>_0x5d2386(_0x520b77,_0x20320e,_0x295a93);const _0xcaddc6=0x12c,_0x490937=0x64;let _0x58774d=class extends _0x4cdaf4['RxDisposable']{constructor(_0x40a9b7,_0x5c4cc7,_0x212a3f,_0x5b2773,_0x3c115f,_0x50e62d,_0x319aaf,_0x26608a,_0x15796c){const _0x2c9ac3=_0x57b986;super(),_0x53d09f(this,_0x2c9ac3(0x3d8),!0x1),_0x53d09f(this,'_init',!0x1),_0x53d09f(this,_0x2c9ac3(0x1cf),new _0x4bb16b['BehaviorSubject'](new Map())),_0x53d09f(this,_0x2c9ac3(0x535),this[_0x2c9ac3(0x1cf)][_0x2c9ac3(0x534)]()),_0x53d09f(this,_0x2c9ac3(0x51e),new _0x4bb16b[(_0x2c9ac3(0x2e9))]([])),_0x53d09f(this,'roomMembers$',this['_roomMembers$'][_0x2c9ac3(0x334)](_0x4bb16b[_0x2c9ac3(0x3cd)](_0xcaddc6))),_0x53d09f(this,'_updateLocalCursor',_0x7451ba(_0x2f2f1e=>{const _0xe17602=_0x2c9ac3,_0xef3f5f={'eventID':_0x329b63['CollaborationEvent'][_0xe17602(0x2c9)],'data':{'unitID':this['unitID'],'memberID':this['_session'][_0xe17602(0x46a)](),'selection':_0x313fed(_0x2f2f1e)}};this[_0xe17602(0x51d)][_0xe17602(0x4aa)](_0xef3f5f,this[_0xe17602(0x40f)]);},_0x490937)),(this[_0x2c9ac3(0x40f)]=_0x40a9b7,this[_0x2c9ac3(0x51d)]=_0x5c4cc7,this[_0x2c9ac3(0x260)]=_0x212a3f,this[_0x2c9ac3(0x4ae)]=_0x5b2773,this[_0x2c9ac3(0x1d3)]=_0x3c115f,this[_0x2c9ac3(0x374)]=_0x50e62d,this[_0x2c9ac3(0x26d)]=_0x319aaf,this[_0x2c9ac3(0x3d9)]=_0x26608a,this[_0x2c9ac3(0x48f)]=_0x15796c);}get[_0x57b986(0x25b)](){const _0x524fd4=_0x57b986;return this[_0x524fd4(0x1cf)]['getValue']();}get[_0x57b986(0x2c7)](){const _0x5d9875=_0x57b986;return this['_roomMembers$'][_0x5d9875(0x424)]();}[_0x57b986(0x46e)](){const _0x15e367=_0x57b986;super[_0x15e367(0x46e)](),this[_0x15e367(0x1cf)]['next'](new Map()),this['_cursorInfo$'][_0x15e367(0x461)](),this[_0x15e367(0x51e)][_0x15e367(0x1bd)]([]),this[_0x15e367(0x51e)][_0x15e367(0x461)]();}[_0x57b986(0x533)](){const _0x17da8c=_0x57b986;this[_0x17da8c(0x546)]||(this[_0x17da8c(0x546)]=!0x0,this[_0x17da8c(0x51d)][_0x17da8c(0x46d)][_0x17da8c(0x334)](_0x4bb16b[_0x17da8c(0x2e2)](this[_0x17da8c(0x2e3)]))['subscribe'](_0x1fb077=>{const _0x5a9559=_0x17da8c;_0x1fb077===_0x585a5c[_0x5a9559(0x1c1)]?this['_toggleOnline']():this['_toggleOffline']();}),this[_0x17da8c(0x51d)]['event$']['pipe'](_0x4bb16b['takeUntil'](this[_0x17da8c(0x2e3)]))[_0x17da8c(0x29e)](_0x30562b=>{const _0x394cdc=_0x17da8c,_0x6f9a5f=_0x30562b[_0x394cdc(0x558)];_0x6f9a5f===_0x329b63[_0x394cdc(0x3dc)]['UPDATE_CURSOR']&&this[_0x394cdc(0x3b6)](_0x30562b),_0x6f9a5f===_0x329b63[_0x394cdc(0x3dc)][_0x394cdc(0x1f0)]&&this['_onCursorDelete'](_0x30562b);}),this['disposeWithMe'](this[_0x17da8c(0x48f)][_0x17da8c(0x4eb)](_0x203f03=>{const _0x1dfa27=_0x17da8c,_0x2a4c8a=_0x203f03['params'];_0x2a4c8a!=null&&this['_online']&&_0x203f03['id']===_0x3fcd1a[_0x1dfa27(0x38c)]['id']&&_0x2a4c8a[_0x1dfa27(0x2a3)]===this[_0x1dfa27(0x40f)]&&_0x2a4c8a[_0x1dfa27(0x2c6)]===!0x1&&this[_0x1dfa27(0x38a)](_0x2a4c8a[_0x1dfa27(0x330)]);})),this[_0x17da8c(0x374)][_0x17da8c(0x4b9)][_0x17da8c(0x334)](_0x4bb16b[_0x17da8c(0x2e2)](this[_0x17da8c(0x2e3)]))[_0x17da8c(0x29e)](_0x1a6c50=>{const _0xc499d1=_0x17da8c;if((_0x1a6c50==null?void 0x0:_0x1a6c50['unitID'])!==this[_0xc499d1(0x40f)])return;const _0x28421d={'eventID':_0x329b63[_0xc499d1(0x3dc)][_0xc499d1(0x2c9)],'data':_0x1a6c50};this[_0xc499d1(0x3b6)](_0x28421d);}),this[_0x17da8c(0x250)](this[_0x17da8c(0x48f)][_0x17da8c(0x4eb)](_0x309464=>{const _0x2fe61c=_0x17da8c;if(_0x309464[_0x2fe61c(0x455)]==null)return;const _0xc40300=_0x309464[_0x2fe61c(0x455)];if(_0x309464['id']!==_0x3fcd1a[_0x2fe61c(0x25e)]['id']||_0xc40300[_0x2fe61c(0x2a3)]!==this['unitID'])return;const _0x546014={'id':_0x2fe61c(0x367),'params':_0xc40300},_0x2381c8=this['cursorInfo'];for(const [_0x4bd3fe,_0x6f4571]of _0x2381c8){const _0x1348a5={'id':_0x2fe61c(0x367),'params':{'unitId':this['unitID'],'actions':null,'textRanges':_0x6f4571[_0x2fe61c(0x330)]}},_0x2c1d5d=this[_0x2fe61c(0x26d)]['transformMutation'](_0x546014,_0x1348a5,!0x1);if(_0x329b63[_0x2fe61c(0x4de)](_0x2c1d5d))throw _0x2c1d5d[_0x2fe61c(0x4a4)];_0x2381c8[_0x2fe61c(0x2c3)](_0x4bd3fe,{..._0x6f4571,'ranges':_0x2c1d5d[_0x2fe61c(0x22e)][_0x2fe61c(0x455)][_0x2fe61c(0x437)]});}queueMicrotask(()=>{const _0x1e4502=_0x2fe61c;this[_0x1e4502(0x1cf)][_0x1e4502(0x1bd)](_0x2381c8);});})));}[_0x57b986(0x3b6)](_0x446c4a){const _0x48b89d=_0x57b986;var _0x54a7be,_0x5d5ff7;const {memberID:_0x513eac,selection:_0x3051ea}=_0x446c4a['data'],_0x3f9ab5=_0x1d44a5(_0x3051ea),_0x517c38=(_0x5d5ff7=(_0x54a7be=this[_0x48b89d(0x1d3)]['getMember'](this[_0x48b89d(0x40f)],_0x513eac))==null?void 0x0:_0x54a7be['name'])!=null?_0x5d5ff7:_0x48b89d(0x442),_0xf31886={'color':this[_0x48b89d(0x4ae)][_0x48b89d(0x331)](_0x513eac),'name':_0x517c38,'ranges':_0x3f9ab5},_0x1ae99f=this[_0x48b89d(0x25b)];_0x1ae99f[_0x48b89d(0x2c3)](_0x513eac,_0xf31886),this['_cursorInfo$'][_0x48b89d(0x1bd)](_0x1ae99f);}[_0x57b986(0x47e)](_0x572ef3){const _0x317d7d=_0x57b986,{memberID:_0xfebda9}=_0x572ef3['data'],_0x4ce81c=this[_0x317d7d(0x25b)];_0x4ce81c[_0x317d7d(0x391)](_0xfebda9),this[_0x317d7d(0x1cf)]['next'](_0x4ce81c);}[_0x57b986(0x2b9)](){const _0x536c78=_0x57b986;var _0x15b1e;if(this['_online']=!0x0,((_0x15b1e=this[_0x536c78(0x3d9)]['getFocusedUnit']())==null?void 0x0:_0x15b1e[_0x536c78(0x3d4)]())!==this['unitID'])return;const _0x8fc1ee=this[_0x536c78(0x260)][_0x536c78(0x408)](_0x3fcd1a[_0x536c78(0x294)])['getSelections'](),_0x438c9e=_0x8fc1ee==null?void 0x0:_0x8fc1ee['map'](_0x3fcd1a[_0x536c78(0x3a6)]);Array['isArray'](_0x438c9e)&&_0x438c9e[_0x536c78(0x397)]>0x0&&this[_0x536c78(0x38a)](_0x438c9e);}[_0x57b986(0x341)](){const _0x424bcf=_0x57b986;this[_0x424bcf(0x3d8)]=!0x1;}};_0x58774d=_0x8238c6([_0x1d8331(0x2,_0x12925a[_0x57b986(0x42c)](_0x12925a[_0x57b986(0x52f)])),_0x1d8331(0x3,_0x12925a[_0x57b986(0x42c)](_0x2ba255)),_0x1d8331(0x4,_0x12925a['Inject'](_0x4495e7)),_0x1d8331(0x5,_0x12925a[_0x57b986(0x42c)](_0x2f17dc)),_0x1d8331(0x6,_0x329b63[_0x57b986(0x2a0)]),_0x1d8331(0x7,_0x4cdaf4[_0x57b986(0x28e)]),_0x1d8331(0x8,_0x4cdaf4[_0x57b986(0x46c)])],_0x58774d);var _0x1ec62c=Object[_0x57b986(0x1f4)],_0x278236=Object['getOwnPropertyDescriptor'],_0x34b347=(_0x3f1f0e,_0x266fc6,_0x3d2c23,_0x41254f)=>{for(var _0x529959=_0x41254f>0x1?void 0x0:_0x41254f?_0x278236(_0x266fc6,_0x3d2c23):_0x266fc6,_0x34a54b=_0x3f1f0e['length']-0x1,_0x538464;_0x34a54b>=0x0;_0x34a54b--)(_0x538464=_0x3f1f0e[_0x34a54b])&&(_0x529959=(_0x41254f?_0x538464(_0x266fc6,_0x3d2c23,_0x529959):_0x538464(_0x529959))||_0x529959);return _0x41254f&&_0x529959&&_0x1ec62c(_0x266fc6,_0x3d2c23,_0x529959),_0x529959;},_0x151c3d=(_0x234aff,_0x29f9e3)=>(_0xfb2aab,_0x2aaeea)=>_0x29f9e3(_0xfb2aab,_0x2aaeea,_0x234aff);let _0xc3b139=class extends _0x4cdaf4['RxDisposable']{constructor(_0x38d780,_0x493102,_0x3e82ed){const _0x1879ac=_0x57b986;super(),_0x53d09f(this,_0x1879ac(0x389),new Map()),_0x53d09f(this,_0x1879ac(0x386),new _0x4bb16b['Subject']()),(this[_0x1879ac(0x3d9)]=_0x38d780,this[_0x1879ac(0x260)]=_0x493102,this[_0x1879ac(0x31f)]=_0x3e82ed,this['_init']());}[_0x57b986(0x46e)](){const _0x315ac6=_0x57b986;super[_0x315ac6(0x46e)](),this[_0x315ac6(0x386)][_0x315ac6(0x461)](),this[_0x315ac6(0x389)][_0x315ac6(0x2bc)](_0x373edc=>_0x373edc[_0x315ac6(0x46e)]());}['getCollabCursors$'](_0x5f2e19){const _0x377bf0=_0x57b986;return this[_0x377bf0(0x389)][_0x377bf0(0x458)](_0x5f2e19)?this[_0x377bf0(0x389)]['get'](_0x5f2e19)[_0x377bf0(0x535)]:this[_0x377bf0(0x386)]['pipe'](_0x4bb16b[_0x377bf0(0x252)](_0x35fe8b=>_0x35fe8b['unitID']===_0x5f2e19),_0x4bb16b['switchMap'](_0x187381=>_0x187381['cursorInfo$']));}[_0x57b986(0x546)](){const _0x4b09d2=_0x57b986;this['_univerInstanceService'][_0x4b09d2(0x553)](_0x4cdaf4[_0x4b09d2(0x514)][_0x4b09d2(0x1ed)])[_0x4b09d2(0x334)](_0x4bb16b['takeUntil'](this[_0x4b09d2(0x2e3)]))[_0x4b09d2(0x29e)](async _0x168cf6=>{const _0x5742a1=_0x4b09d2,_0x51e4fd=_0x168cf6[_0x5742a1(0x3d4)](),_0x34ff7a=await this[_0x5742a1(0x226)](_0x51e4fd);this[_0x5742a1(0x386)][_0x5742a1(0x1bd)](_0x34ff7a),this[_0x5742a1(0x389)][_0x5742a1(0x2c3)](_0x51e4fd,_0x34ff7a);}),this[_0x4b09d2(0x3d9)]['getTypeOfUnitAdded$'](_0x4cdaf4[_0x4b09d2(0x514)][_0x4b09d2(0x510)])['pipe'](_0x4bb16b[_0x4b09d2(0x2e2)](this['dispose$']))[_0x4b09d2(0x334)](_0x4bb16b[_0x4b09d2(0x252)](_0x1a9540=>!_0x1a9540[_0x4b09d2(0x3d4)]()[_0x4b09d2(0x55a)]('__')))['subscribe'](async _0x153b38=>{const _0x11eb91=_0x4b09d2,_0x12de4e=_0x153b38[_0x11eb91(0x3d4)](),_0xc5105c=await this['_startDocCollabCursor'](_0x12de4e);this[_0x11eb91(0x386)][_0x11eb91(0x1bd)](_0xc5105c),this[_0x11eb91(0x389)][_0x11eb91(0x2c3)](_0x12de4e,_0xc5105c);}),_0x4bb16b[_0x4b09d2(0x468)](this[_0x4b09d2(0x3d9)][_0x4b09d2(0x29d)](_0x4cdaf4[_0x4b09d2(0x514)][_0x4b09d2(0x510)]),this[_0x4b09d2(0x3d9)][_0x4b09d2(0x29d)](_0x4cdaf4['UniverInstanceType']['UNIVER_SHEET']))[_0x4b09d2(0x334)](_0x4bb16b[_0x4b09d2(0x2e2)](this['dispose$']))[_0x4b09d2(0x29e)](_0x25811e=>{const _0x101022=_0x4b09d2,_0x5b627c=_0x25811e[_0x101022(0x3d4)](),_0x45efe9=this[_0x101022(0x389)][_0x101022(0x408)](_0x5b627c);_0x45efe9&&(_0x45efe9[_0x101022(0x46e)](),this[_0x101022(0x389)]['delete'](_0x5b627c));});}async[_0x57b986(0x226)](_0x2c3a54){const _0x4820ea=_0x57b986,_0x2d9d58=await this['_collabSessionService']['requireSession'](_0x2c3a54),_0x33f334=this[_0x4820ea(0x260)][_0x4820ea(0x545)](_0x1d8604,_0x2c3a54,_0x2d9d58);return _0x33f334[_0x4820ea(0x533)](),_0x33f334;}async[_0x57b986(0x46f)](_0x3ea7e5){const _0x25aa5f=_0x57b986,_0x133ada=await this[_0x25aa5f(0x31f)][_0x25aa5f(0x50a)](_0x3ea7e5),_0x49be76=this['_injector'][_0x25aa5f(0x545)](_0x58774d,_0x3ea7e5,_0x133ada);return _0x49be76[_0x25aa5f(0x533)](),_0x49be76;}};_0xc3b139=_0x34b347([_0x4cdaf4[_0x57b986(0x4e2)](_0x4cdaf4[_0x57b986(0x575)]['Starting'],_0xc3b139),_0x151c3d(0x0,_0x4cdaf4[_0x57b986(0x28e)]),_0x151c3d(0x1,_0x12925a['Inject'](_0x12925a['Injector'])),_0x151c3d(0x2,_0x12925a[_0x57b986(0x42c)](_0x3f3314[_0x57b986(0x48c)]))],_0xc3b139);const _0x4f68cc=0x14,_0xebd68b=0xc8,_0x2a6481=0x4,_0xfbf61=0x5;function _0x3a343b(_0xb7b03f,_0x1171d6){const _0x2ac80d=_0x57b986;let {radius:_0x219f61,width:_0x3ba0fd,height:_0x478fa4}=_0x1171d6;_0x219f61=_0x219f61!=null?_0x219f61:0x0,_0x3ba0fd=_0x3ba0fd!=null?_0x3ba0fd:0x1e,_0x478fa4=_0x478fa4!=null?_0x478fa4:0x1e;let _0x47cfdc=0x0,_0x4defb8=0x0,_0x5aec84=0x0;_0x47cfdc=_0x4defb8=_0x5aec84=Math[_0x2ac80d(0x3ef)](_0x219f61,_0x3ba0fd/0x2,_0x478fa4/0x2),_0xb7b03f[_0x2ac80d(0x3e2)](),_0xb7b03f['moveTo'](_0x47cfdc,0x0),_0xb7b03f[_0x2ac80d(0x53e)](_0x3ba0fd-_0x4defb8,0x0),_0xb7b03f[_0x2ac80d(0x336)](_0x3ba0fd-_0x4defb8,_0x4defb8,_0x4defb8,Math['PI']*0x3/0x2,0x0,!0x1),_0xb7b03f[_0x2ac80d(0x53e)](_0x3ba0fd,_0x478fa4-_0x5aec84),_0xb7b03f[_0x2ac80d(0x336)](_0x3ba0fd-_0x5aec84,_0x478fa4-_0x5aec84,_0x5aec84,0x0,Math['PI']/0x2,!0x1),_0xb7b03f[_0x2ac80d(0x53e)](0x0,_0x478fa4),_0xb7b03f[_0x2ac80d(0x53e)](0x0,_0x47cfdc),_0xb7b03f[_0x2ac80d(0x336)](_0x47cfdc,_0x47cfdc,_0x47cfdc,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0xb7b03f['closePath'](),_0x1171d6[_0x2ac80d(0x218)]&&(_0xb7b03f['save'](),_0xb7b03f[_0x2ac80d(0x482)]=_0x1171d6[_0x2ac80d(0x218)],_0x1171d6[_0x2ac80d(0x24b)]===_0x2ac80d(0x362)?_0xb7b03f[_0x2ac80d(0x218)](_0x2ac80d(0x362)):_0xb7b03f[_0x2ac80d(0x218)](),_0xb7b03f[_0x2ac80d(0x200)]());}class _0x3b789e extends _0x499dcd[_0x57b986(0x238)]{constructor(_0x3ec0c6,_0x4ad8c6){const _0x195253=_0x57b986;super(_0x3ec0c6,_0x4ad8c6),_0x53d09f(this,_0x195253(0x4fe)),_0x53d09f(this,_0x195253(0x4ac)),(this[_0x195253(0x4fe)]=_0x4ad8c6==null?void 0x0:_0x4ad8c6[_0x195253(0x4fe)],this[_0x195253(0x4ac)]=_0x4ad8c6==null?void 0x0:_0x4ad8c6[_0x195253(0x4ac)]);}static[_0x57b986(0x388)](_0x538eee,_0x34981d){const _0x5d92d6=_0x57b986,{text:_0x4bd135,color:_0x1c7b93}=_0x34981d;_0x538eee[_0x5d92d6(0x41b)](),_0x538eee[_0x5d92d6(0x3d6)]='bold\x2013px\x20Source\x20Han\x20Sans\x20CN';const _0x57f619=_0x538eee[_0x5d92d6(0x556)](_0x4bd135)['width'],_0x3e6f3c=Math[_0x5d92d6(0x3ef)](_0x57f619+0x2*_0x2a6481,_0xebd68b);_0x3a343b(_0x538eee,{'height':_0x4f68cc,'radius':0x4,'width':_0x3e6f3c,'fill':_0x1c7b93,'evented':!0x1}),_0x538eee[_0x5d92d6(0x482)]=_0x5d92d6(0x57b);const _0x2e4509=_0x2a6481,_0x26d6d1=_0x4f68cc-_0xfbf61,_0x5c5883=_0xebd68b-0x2*_0x2a6481;if(_0x57f619>_0x5c5883){let _0x345f1f='',_0xe3fc43=0x0;for(const _0xa16237 of _0x4bd135){const _0x22e21a=_0x538eee[_0x5d92d6(0x556)](_0xa16237)[_0x5d92d6(0x3ae)];if(_0xe3fc43+_0x22e21a<=_0x5c5883-_0x538eee[_0x5d92d6(0x556)](_0x5d92d6(0x56a))[_0x5d92d6(0x3ae)])_0x345f1f+=_0xa16237,_0xe3fc43+=_0x22e21a;else{_0x345f1f+='...';break;}}_0x538eee[_0x5d92d6(0x265)](_0x345f1f,_0x2e4509,_0x26d6d1);}else _0x538eee[_0x5d92d6(0x265)](_0x4bd135,_0x2e4509,_0x26d6d1);_0x538eee[_0x5d92d6(0x200)]();}[_0x57b986(0x3ed)](_0x2e1907){const _0x5969cd=_0x57b986;_0x3b789e[_0x5969cd(0x388)](_0x2e1907,this);}}const _0x57b21d=0x1,_0x3bcd1e=1.5;class _0x13a5fe extends _0x499dcd['Shape']{constructor(_0x920e8d,_0x50ceb1){const _0xdcfc6e=_0x57b986;super(_0x920e8d,_0x50ceb1),_0x53d09f(this,_0xdcfc6e(0x45c)),_0x53d09f(this,_0xdcfc6e(0x2b8),!0x1),_0x53d09f(this,_0xdcfc6e(0x338)),_0x53d09f(this,_0xdcfc6e(0x581),''),_0x53d09f(this,_0xdcfc6e(0x36b),'top'),(_0x50ceb1&&this[_0xdcfc6e(0x55f)](_0x50ceb1),this[_0xdcfc6e(0x48a)][_0xdcfc6e(0x2b7)](()=>this[_0xdcfc6e(0x55f)]({'hovered':!0x0})),this['onPointerLeaveObserver'][_0xdcfc6e(0x2b7)](()=>this[_0xdcfc6e(0x55f)]({'hovered':!0x1})));}['setShapeProps'](_0x170834){const _0x5b9a2c=_0x57b986;var _0x383c95,_0x4abf05,_0x38cff7,_0x1c3ef0,_0x1cafd0;this[_0x5b9a2c(0x45c)]=(_0x383c95=_0x170834[_0x5b9a2c(0x4fe)])!=null?_0x383c95:this['_color'],this[_0x5b9a2c(0x2b8)]=(_0x4abf05=_0x170834[_0x5b9a2c(0x54a)])!=null?_0x4abf05:this[_0x5b9a2c(0x2b8)],this['_range']=(_0x38cff7=_0x170834[_0x5b9a2c(0x2f6)])!=null?_0x38cff7:this[_0x5b9a2c(0x338)],this[_0x5b9a2c(0x581)]=(_0x1c3ef0=_0x170834['name'])!=null?_0x1c3ef0:this['_name'],this[_0x5b9a2c(0x36b)]=(_0x1cafd0=_0x170834[_0x5b9a2c(0x2c4)])!=null?_0x1cafd0:this[_0x5b9a2c(0x36b)],this[_0x5b9a2c(0x406)]({'width':_0x170834[_0x5b9a2c(0x3ae)],'height':_0x170834['height']});}['onMouseMove'](_0x108ba3){const _0x373e03=_0x57b986,{row:_0x48843a,column:_0x3a4717}=_0x108ba3;if(_0x48843a>=this[_0x373e03(0x338)][_0x373e03(0x350)]&&_0x48843a<=this[_0x373e03(0x338)]['endRow']&&_0x3a4717>=this['_range'][_0x373e03(0x2c1)]&&_0x3a4717<=this[_0x373e03(0x338)][_0x373e03(0x3be)]){this[_0x373e03(0x55f)]({'hovered':!0x0});return;}this['setShapeProps']({'hovered':!0x1});}[_0x57b986(0x322)](_0x2a3bf6){return!0x1;}[_0x57b986(0x3ed)](_0x10dd98){const _0x562a62=_0x57b986;_0x499dcd[_0x562a62(0x382)][_0x562a62(0x388)](_0x10dd98,{'width':this[_0x562a62(0x3ae)],'height':this[_0x562a62(0x1d7)],'strokeWidth':_0x3bcd1e,'stroke':this[_0x562a62(0x45c)],'evented':!0x1}),this['_hovered']&&(_0x10dd98[_0x562a62(0x41b)](),_0x10dd98['transform'](0x1,0x0,0x0,0x1,this[_0x562a62(0x3ae)],this[_0x562a62(0x36b)]===_0x562a62(0x4ee)?0x0:-_0x4f68cc),_0x3b789e['drawWith'](_0x10dd98,{'text':this[_0x562a62(0x581)],'color':this[_0x562a62(0x45c)]}),_0x10dd98['restore']());}}var _0x26fc28=Object[_0x57b986(0x1f4)],_0x1de7c2=Object[_0x57b986(0x405)],_0xfa3bcb=(_0x16a51a,_0x5e4194,_0x353c3e,_0x56fd36)=>{const _0x30f06e=_0x57b986;for(var _0x1035af=_0x56fd36>0x1?void 0x0:_0x56fd36?_0x1de7c2(_0x5e4194,_0x353c3e):_0x5e4194,_0x22d84d=_0x16a51a[_0x30f06e(0x397)]-0x1,_0x4dcd34;_0x22d84d>=0x0;_0x22d84d--)(_0x4dcd34=_0x16a51a[_0x22d84d])&&(_0x1035af=(_0x56fd36?_0x4dcd34(_0x5e4194,_0x353c3e,_0x1035af):_0x4dcd34(_0x1035af))||_0x1035af);return _0x56fd36&&_0x1035af&&_0x26fc28(_0x5e4194,_0x353c3e,_0x1035af),_0x1035af;},_0x10c070=(_0x59405f,_0x28ba51)=>(_0x2490d0,_0x180237)=>_0x28ba51(_0x2490d0,_0x180237,_0x59405f);const _0x44fa1a=0x1389;let _0x662f12=class extends _0x4cdaf4[_0x57b986(0x499)]{constructor(_0x4dd6c0,_0x5c4bfa,_0x46a62f,_0x1aa387){const _0x117b01=_0x57b986;super(),_0x53d09f(this,_0x117b01(0x3a3),new Set()),_0x53d09f(this,_0x117b01(0x431),null),(this['_collabCursorController']=_0x4dd6c0,this[_0x117b01(0x3d9)]=_0x5c4bfa,this['_renderManagerService']=_0x46a62f,this[_0x117b01(0x53c)]=_0x1aa387,this[_0x117b01(0x546)]());}get[_0x57b986(0x3c5)](){const _0x4391f8=_0x57b986;return this[_0x4391f8(0x3df)][_0x4391f8(0x44c)](this['_univerInstanceService'][_0x4391f8(0x395)](_0x4cdaf4[_0x4391f8(0x514)][_0x4391f8(0x1ed)])[_0x4391f8(0x3d4)]())[_0x4391f8(0x40a)](_0x4ad633[_0x4391f8(0x292)]);}get[_0x57b986(0x402)](){const _0x6b5602=_0x57b986;return this[_0x6b5602(0x3d9)][_0x6b5602(0x395)](_0x4cdaf4[_0x6b5602(0x514)]['UNIVER_SHEET'])[_0x6b5602(0x3d4)]();}[_0x57b986(0x546)](){const _0x5303a8=_0x57b986;this[_0x5303a8(0x3c5)][_0x5303a8(0x41e)]['pipe'](_0x4ac749['takeUntil'](this['dispose$']),_0x4ac749[_0x5303a8(0x446)](_0x80139c=>{const _0x4b6b2e=_0x5303a8;if(_0x80139c){const _0x465554=_0x80139c[_0x4b6b2e(0x299)];return _0x4bb16b['combineLatest'](this['_collabCursorController']['getCollabCursors$'](this['_unitId']),this[_0x4b6b2e(0x53c)][_0x4b6b2e(0x2fd)])['pipe'](_0x4ac749[_0x4b6b2e(0x2d2)](([_0x37907d,_0x1ea7c2])=>{const _0x31f1ea=_0x4b6b2e,_0x2d0807=new Map();return _0x37907d[_0x31f1ea(0x2bc)]((_0x1534b4,_0x5732b9)=>{const _0x1ba030=_0x31f1ea;if(_0x1534b4[_0x1ba030(0x1fe)]===_0x465554){const _0x1b8791={..._0x1534b4};_0x1b8791['color']=_0x1ea7c2[_0x1534b4[_0x1ba030(0x4fe)]],_0x2d0807['set'](_0x5732b9,_0x1b8791);}}),{'skeleton':_0x80139c,'cursors':_0x2d0807};}));}return _0x4bb16b['of']({'skeleton':null,'cursors':new Map()});}))[_0x5303a8(0x29e)](({skeleton:_0x86f0bd,cursors:_0xc8f6c9})=>{this['_removeCollabCursors'](),_0x86f0bd&&this['_updateCollabCursors'](_0x86f0bd,_0xc8f6c9);}),this[_0x5303a8(0x3c5)][_0x5303a8(0x41e)][_0x5303a8(0x29e)](_0x282a6d=>{const _0x3b769b=_0x5303a8;if(_0x282a6d==null)return;const {skeleton:_0x445cfd}=_0x282a6d,_0x1c454d=this[_0x3b769b(0x3df)]['getRenderById'](this[_0x3b769b(0x402)]),{scene:_0x2108d4}=_0x1c454d;_0x2108d4[_0x3b769b(0x1c4)][_0x3b769b(0x2b7)](_0x7451ba(_0x1296ee=>{const _0x3eb568=_0x3b769b;var _0x2a13c0,_0x175dc1;const {offsetX:_0x5ee488,offsetY:_0x55a6a8}=_0x1296ee,{x:_0x27df08,y:_0x466cb8}=_0x2108d4['getRelativeCoord'](_0x499dcd[_0x3eb568(0x34a)][_0x3eb568(0x245)]([_0x5ee488,_0x55a6a8])),{scaleX:_0x35c5cd,scaleY:_0x242d74}=_0x2108d4[_0x3eb568(0x223)](),_0x383c0c=_0x2108d4[_0x3eb568(0x1e4)](_0x4ad633[_0x3eb568(0x1d2)][_0x3eb568(0x3f6)]),_0x504db9=_0x2108d4[_0x3eb568(0x20b)](_0x499dcd[_0x3eb568(0x34a)]['FromArray']([_0x27df08,_0x466cb8]),_0x383c0c),_0x36cbd5=_0x445cfd['getCellPositionByOffset'](_0x5ee488,_0x55a6a8,_0x35c5cd,_0x242d74,_0x504db9);((_0x2a13c0=this[_0x3eb568(0x431)])==null?void 0x0:_0x2a13c0[_0x3eb568(0x4be)])===_0x36cbd5[_0x3eb568(0x4be)]&&((_0x175dc1=this[_0x3eb568(0x431)])==null?void 0x0:_0x175dc1[_0x3eb568(0x22d)])===_0x36cbd5[_0x3eb568(0x22d)]||this[_0x3eb568(0x3a3)][_0x3eb568(0x2bc)](_0x5f434c=>{const _0x3b41a7=_0x3eb568;_0x5f434c[_0x3b41a7(0x32b)](_0x36cbd5);});},0x64));});}[_0x57b986(0x319)](_0x3d2864,_0x27f8f1){const _0x20960f=_0x57b986;var _0x2dec24;const _0x3921a=(_0x2dec24=this[_0x20960f(0x3c5)]['getCurrent']())==null?void 0x0:_0x2dec24['skeleton'];if(!_0x3921a)return;const _0x796cc5=this['_getSheetObject']();if(!_0x796cc5)return;this[_0x20960f(0x3a3)][_0x20960f(0x2bc)](_0x1a628=>{const _0xf6ce58=_0x20960f;_0x1a628[_0xf6ce58(0x4cd)]();});const {scene:_0x173cec}=_0x796cc5,_0x116d76=_0x5209e7(Array[_0x20960f(0x1bf)](_0x27f8f1[_0x20960f(0x2c0)]()))[_0x20960f(0x2d2)](_0xf5d97=>{const _0x13a9e8=_0x20960f,{color:_0x24a144,range:_0x442352,name:_0x3a397f,selection:_0x17ad53,sheetID:_0xbeec02}=_0xf5d97,{startColumn:_0x3697bb,startRow:_0x5243ac,endColumn:_0x20271c,endRow:_0x489d89}=_0x442352,_0x48163a=_0x4ad633[_0x13a9e8(0x423)](_0x5243ac,_0x3697bb,_0x173cec,_0x3921a),_0x5bbf5c=_0x4ad633[_0x13a9e8(0x423)](_0x489d89,_0x20271c,_0x173cec,_0x3921a),{columnHeaderHeightAndMarginTop:_0x5e693b}=_0x3921a,{startX:_0x5bd405,startY:_0xc990fc}=_0x48163a,{endX:_0xfe602c,endY:_0x5e005d}=_0x5bbf5c,_0x54ba52=_0xfe602c-_0x5bd405,_0x5c5a36=_0x5e005d-_0xc990fc,_0x4b2437={'labelPosition':_0xc990fc-_0x5e693b>=_0x4f68cc?_0x13a9e8(0x407):'bottom','sheetID':_0xbeec02,'range':_0x442352,'color':_0x24a144,'name':_0x3a397f,'selection':_0x17ad53,'left':_0x5bd405,'top':_0xc990fc,'width':_0x54ba52,'height':_0x5c5a36,'evented':!0x1,'zIndex':_0x44fa1a};return new _0x13a5fe(_0x3a397f,_0x4b2437);});_0x173cec[_0x20960f(0x4d6)](_0x116d76,_0x57b21d),this[_0x20960f(0x3a3)]=new Set(_0x116d76);}[_0x57b986(0x2ea)](){const _0x4c832c=_0x57b986;var _0x2033a9;(_0x2033a9=this[_0x4c832c(0x3a3)])==null||_0x2033a9[_0x4c832c(0x2bc)](_0x1a9456=>_0x1a9456[_0x4c832c(0x46e)]());}[_0x57b986(0x35a)](){const _0x3f079f=_0x57b986;return _0x4ad633[_0x3f079f(0x1d9)](this[_0x3f079f(0x3d9)],this[_0x3f079f(0x3df)]);}};_0x662f12=_0xfa3bcb([_0x4cdaf4[_0x57b986(0x4e2)](_0x4cdaf4[_0x57b986(0x575)][_0x57b986(0x3c2)],_0x662f12),_0x10c070(0x0,_0x12925a[_0x57b986(0x42c)](_0xc3b139)),_0x10c070(0x1,_0x4cdaf4[_0x57b986(0x28e)]),_0x10c070(0x2,_0x499dcd['IRenderManagerService']),_0x10c070(0x3,_0x12925a['Inject'](_0x4cdaf4[_0x57b986(0x3fb)]))],_0x662f12);function _0x5209e7(_0x314ead){const _0x7fd0d6=_0x57b986,_0x360e2e=new Map();return _0x314ead[_0x7fd0d6(0x2bc)](_0x521ae2=>{const _0x2a0644=_0x7fd0d6;if(_0x360e2e[_0x2a0644(0x458)](_0x521ae2['selection'])){const _0x47eb47=_0x360e2e['get'](_0x521ae2[_0x2a0644(0x3ff)]);_0x47eb47[_0x2a0644(0x4a3)]+=',\x20'+_0x521ae2[_0x2a0644(0x4a3)];}else _0x360e2e[_0x2a0644(0x2c3)](_0x521ae2[_0x2a0644(0x3ff)],_0x521ae2);}),Array['from'](_0x360e2e[_0x7fd0d6(0x2c0)]());}var _0x26bda1=function(){const _0x3531d5=_0x57b986;return _0x26bda1=Object['assign']||function(_0x2e04d7){const _0x4ba47e=_0x23df;for(var _0x521406,_0x4b2276=0x1,_0x41bd57=arguments[_0x4ba47e(0x397)];_0x4b2276<_0x41bd57;_0x4b2276++){_0x521406=arguments[_0x4b2276];for(var _0x47b208 in _0x521406)Object[_0x4ba47e(0x3e4)][_0x4ba47e(0x290)][_0x4ba47e(0x42b)](_0x521406,_0x47b208)&&(_0x2e04d7[_0x47b208]=_0x521406[_0x47b208]);}return _0x2e04d7;},_0x26bda1[_0x3531d5(0x3ca)](this,arguments);},_0x4161ba=function(_0x31e40c,_0x4ad031){const _0xa2f1ee=_0x57b986;var _0x22604d={};for(var _0x36c187 in _0x31e40c)Object[_0xa2f1ee(0x3e4)]['hasOwnProperty'][_0xa2f1ee(0x42b)](_0x31e40c,_0x36c187)&&_0x4ad031['indexOf'](_0x36c187)<0x0&&(_0x22604d[_0x36c187]=_0x31e40c[_0x36c187]);if(_0x31e40c!=null&&typeof Object[_0xa2f1ee(0x503)]==_0xa2f1ee(0x3c4)){for(var _0x54581c=0x0,_0x36c187=Object['getOwnPropertySymbols'](_0x31e40c);_0x54581c<_0x36c187[_0xa2f1ee(0x397)];_0x54581c++)_0x4ad031[_0xa2f1ee(0x472)](_0x36c187[_0x54581c])<0x0&&Object[_0xa2f1ee(0x3e4)]['propertyIsEnumerable'][_0xa2f1ee(0x42b)](_0x31e40c,_0x36c187[_0x54581c])&&(_0x22604d[_0x36c187[_0x54581c]]=_0x31e40c[_0x36c187[_0x54581c]]);}return _0x22604d;},_0x53a441=_0x48aaee['forwardRef'](function(_0x1d27d9,_0xb12e85){const _0x184bc6=_0x57b986;var _0x39d457=_0x1d27d9[_0x184bc6(0x279)],_0x325260=_0x1d27d9['id'],_0x3cd783=_0x1d27d9[_0x184bc6(0x1c3)],_0x473cac=_0x1d27d9[_0x184bc6(0x232)],_0x37c2f4=_0x4161ba(_0x1d27d9,['icon','id',_0x184bc6(0x1c3),_0x184bc6(0x232)]),_0x14c3e8='univerjs-icon\x20univerjs-icon-'['concat'](_0x325260,'\x20')[_0x184bc6(0x3ab)](_0x3cd783||'')[_0x184bc6(0x576)](),_0x408bf6=_0x48aaee['useRef']('_'[_0x184bc6(0x3ab)](_0x5b0f1a()));return _0x3db31e(_0x39d457,''[_0x184bc6(0x3ab)](_0x325260),{'defIds':_0x39d457[_0x184bc6(0x53f)],'idSuffix':_0x408bf6['current']},_0x26bda1({'ref':_0xb12e85,'className':_0x14c3e8},_0x37c2f4),_0x473cac);});function _0x3db31e(_0xbf30fd,_0x3052e0,_0x281ce4,_0x119a76,_0x53ce74){const _0x11b538=_0x57b986;return _0x48aaee[_0x11b538(0x263)](_0xbf30fd['tag'],_0x26bda1(_0x26bda1({'key':_0x3052e0},_0x1079da(_0xbf30fd,_0x281ce4,_0x53ce74)),_0x119a76),(_0x5c9037(_0xbf30fd,_0x281ce4)['children']||[])['map'](function(_0xee3b9a,_0x5a041b){const _0x5866bf=_0x11b538;return _0x3db31e(_0xee3b9a,''['concat'](_0x3052e0,'-')[_0x5866bf(0x3ab)](_0xbf30fd[_0x5866bf(0x411)],'-')['concat'](_0x5a041b),_0x281ce4,void 0x0,_0x53ce74);}));}function _0x1079da(_0x3d158f,_0x300329,_0x61fa23){const _0x15c5f6=_0x57b986;var _0x38afbb=_0x26bda1({},_0x3d158f[_0x15c5f6(0x483)]);_0x61fa23!=null&&_0x61fa23[_0x15c5f6(0x4ad)]&&_0x38afbb[_0x15c5f6(0x218)]===_0x15c5f6(0x4ad)&&(_0x38afbb[_0x15c5f6(0x218)]=_0x61fa23[_0x15c5f6(0x4ad)]);var _0x462c02=_0x300329[_0x15c5f6(0x53f)];return!_0x462c02||_0x462c02[_0x15c5f6(0x397)]===0x0||(_0x3d158f['tag']===_0x15c5f6(0x4e9)&&_0x38afbb['xlink:href']&&(_0x38afbb[_0x15c5f6(0x224)]=_0x38afbb[_0x15c5f6(0x224)]+_0x300329[_0x15c5f6(0x4c0)]),Object[_0x15c5f6(0x563)](_0x38afbb)[_0x15c5f6(0x2bc)](function(_0x5d14c8){const _0x24fb23=_0x15c5f6;var _0x1b279e=_0x5d14c8[0x0],_0x11a857=_0x5d14c8[0x1];typeof _0x11a857==_0x24fb23(0x36c)&&(_0x38afbb[_0x1b279e]=_0x11a857[_0x24fb23(0x2ae)](/url\(#(.*)\)/,'url(#$1'[_0x24fb23(0x3ab)](_0x300329[_0x24fb23(0x4c0)],')')));})),_0x38afbb;}function _0x5c9037(_0x258ea7,_0x226c1e){const _0x370e16=_0x57b986;var _0x588559,_0x4a689d=_0x226c1e[_0x370e16(0x53f)];return!_0x4a689d||_0x4a689d[_0x370e16(0x397)]===0x0?_0x258ea7:_0x258ea7['tag']===_0x370e16(0x246)&&(!((_0x588559=_0x258ea7[_0x370e16(0x3fc)])===null||_0x588559===void 0x0)&&_0x588559[_0x370e16(0x397)])?_0x26bda1(_0x26bda1({},_0x258ea7),{'children':_0x258ea7[_0x370e16(0x3fc)][_0x370e16(0x2d2)](function(_0x40003e){const _0x7eddde=_0x370e16;return typeof _0x40003e[_0x7eddde(0x483)]['id']==_0x7eddde(0x36c)&&_0x4a689d&&_0x4a689d[_0x7eddde(0x472)](_0x40003e[_0x7eddde(0x483)]['id'])>-0x1?_0x26bda1(_0x26bda1({},_0x40003e),{'attrs':_0x26bda1(_0x26bda1({},_0x40003e['attrs']),{'id':_0x40003e['attrs']['id']+_0x226c1e[_0x7eddde(0x4c0)]})}):_0x40003e;})}):_0x258ea7;}function _0x5b0f1a(){const _0xae60d9=_0x57b986;return Math['random']()[_0xae60d9(0x3cb)](0x24)[_0xae60d9(0x258)](0x2,0x8);}_0x53a441['displayName']=_0x57b986(0x2a6);var _0x33dbaa={'tag':'svg','attrs':{'fill':'none','viewBox':_0x57b986(0x31b),'width':_0x57b986(0x4b4),'height':_0x57b986(0x4b4)},'children':[{'tag':'g','attrs':{'clipPath':_0x57b986(0x2dd)},'children':[{'tag':_0x57b986(0x422),'attrs':{'stroke':_0x57b986(0x33d),'d':_0x57b986(0x52a),'strokeLinecap':_0x57b986(0x268),'strokeLinejoin':_0x57b986(0x268),'strokeWidth':1.2}}]},{'tag':_0x57b986(0x246),'attrs':{},'children':[{'tag':_0x57b986(0x2ad),'attrs':{'id':_0x57b986(0x1e9)},'children':[{'tag':_0x57b986(0x422),'attrs':{'fill':_0x57b986(0x484),'d':_0x57b986(0x304)}}]}]}],'defIds':[_0x57b986(0x1e9)]},_0x5b0903=_0x48aaee[_0x57b986(0x477)](function(_0x1843a1,_0x26a999){const _0x1e96cf=_0x57b986;return _0x48aaee[_0x1e96cf(0x263)](_0x53a441,Object['assign']({},_0x1843a1,{'id':_0x1e96cf(0x53a),'ref':_0x26a999,'icon':_0x33dbaa}));});_0x5b0903['displayName']=_0x57b986(0x57a);var _0x2eb9dd={'tag':_0x57b986(0x3b7),'attrs':{'fill':_0x57b986(0x4b0),'viewBox':_0x57b986(0x1c0),'width':_0x57b986(0x4b4),'height':_0x57b986(0x4b4)},'children':[{'tag':'g','attrs':{'clipPath':'url(#on-line-single_clip0_910_349)'},'children':[{'tag':_0x57b986(0x422),'attrs':{'stroke':'currentColor','d':_0x57b986(0x3eb),'strokeLinecap':_0x57b986(0x268),'strokeLinejoin':'round','strokeWidth':1.2}}]},{'tag':_0x57b986(0x246),'attrs':{},'children':[{'tag':_0x57b986(0x2ad),'attrs':{'id':_0x57b986(0x49f)},'children':[{'tag':_0x57b986(0x422),'attrs':{'fill':'#fff','d':_0x57b986(0x304),'transform':'translate(.97)'}}]}]}],'defIds':[_0x57b986(0x49f)]},_0x5433ca=_0x48aaee[_0x57b986(0x477)](function(_0x132b27,_0x1cb72c){const _0x34da01=_0x57b986;return _0x48aaee[_0x34da01(0x263)](_0x53a441,Object['assign']({},_0x132b27,{'id':'on-line-single','ref':_0x1cb72c,'icon':_0x2eb9dd}));});_0x5433ca[_0x57b986(0x1d8)]=_0x57b986(0x3ba);const _0x42079e={'onlineStatusIcon':_0x57b986(0x3f5),'onlineStatusTitle':_0x57b986(0x471),'onlineStatus':_0x57b986(0x30b),'online':_0x57b986(0x2a5),'offline':_0x57b986(0x544)};function _0x2e14f1(_0x27a621){const _0x27bd9a=_0x57b986;switch(_0x27a621){case _0x5185a4[_0x27bd9a(0x26f)]:return'collabStatus.offline';case _0x5185a4[_0x27bd9a(0x1de)]:return _0x27bd9a(0x509);case _0x5185a4[_0x27bd9a(0x47b)]:return _0x27bd9a(0x57e);case _0x5185a4[_0x27bd9a(0x20e)]:return _0x27bd9a(0x490);case _0x5185a4[_0x27bd9a(0x2f7)]:case _0x5185a4['AWAITING']:case _0x5185a4[_0x27bd9a(0x30f)]:return _0x27bd9a(0x2de);case _0x5185a4[_0x27bd9a(0x1c6)]:return _0x27bd9a(0x40b);}}function _0x3c74c6(_0x267031){const _0xaabfc0=_0x57b986,{status$:_0x48da3b}=_0x267031,_0x374ca1=_0x4ff465[_0xaabfc0(0x44a)](_0x48da3b,_0x5185a4[_0xaabfc0(0x20e)]),_0x48eacb=_0x263934['useDependency'](_0x4cdaf4[_0xaabfc0(0x502)]),_0xe51bd5=_0x374ca1!==_0x5185a4[_0xaabfc0(0x26f)],_0x312b27=_0x48eacb['t'](_0x2e14f1(_0x374ca1)),_0x14a81a=_0x504a8c(_0x42079e['onlineStatus'],{[_0x42079e[_0xaabfc0(0x3a4)]]:_0xe51bd5,[_0x42079e[_0xaabfc0(0x4f8)]]:!_0xe51bd5}),_0x42a758=_0xe51bd5?_0x48aaee[_0xaabfc0(0x263)](_0x5433ca,null):_0x48aaee[_0xaabfc0(0x263)](_0x5b0903,null);return _0x48aaee['createElement'](_0xaabfc0(0x4d2),{'className':_0x14a81a},_0x48aaee['createElement']('div',{'className':_0x42079e[_0xaabfc0(0x297)]},_0x42a758),_0x48aaee[_0xaabfc0(0x263)](_0xaabfc0(0x4d2),{'className':_0x42079e[_0xaabfc0(0x1e0)]},_0x312b27));}var _0x14a16f=Object[_0x57b986(0x1f4)],_0x4b60d9=Object[_0x57b986(0x405)],_0x7c8c61=(_0x298747,_0x326757,_0x3713e2,_0x5a42ea)=>{for(var _0x15fcee=_0x5a42ea>0x1?void 0x0:_0x5a42ea?_0x4b60d9(_0x326757,_0x3713e2):_0x326757,_0x4947d8=_0x298747['length']-0x1,_0x5a758a;_0x4947d8>=0x0;_0x4947d8--)(_0x5a758a=_0x298747[_0x4947d8])&&(_0x15fcee=(_0x5a42ea?_0x5a758a(_0x326757,_0x3713e2,_0x15fcee):_0x5a758a(_0x15fcee))||_0x15fcee);return _0x5a42ea&&_0x15fcee&&_0x14a16f(_0x326757,_0x3713e2,_0x15fcee),_0x15fcee;},_0x443cd5=(_0x51da91,_0x5842b3)=>(_0x1c0a52,_0x3818cf)=>_0x5842b3(_0x1c0a52,_0x3818cf,_0x51da91);_0x3f3314[_0x57b986(0x3e9)]=class extends _0x4cdaf4[_0x57b986(0x310)]{constructor(_0x20ff88,_0x28c2cd,_0x102633,_0xccfe13){const _0x449e25=_0x57b986;super(),_0x53d09f(this,_0x449e25(0x488),new _0x4bb16b[(_0x449e25(0x2e9))](_0x5185a4[_0x449e25(0x20e)])),(this[_0x449e25(0x3d9)]=_0x20ff88,this['_uiPartsService']=_0x28c2cd,this[_0x449e25(0x260)]=_0x102633,this[_0x449e25(0x1d1)]=_0xccfe13,this['_initStatusComponent'](),this[_0x449e25(0x24a)]());}['_initStatusComponent'](){const _0x528d71=_0x57b986;this[_0x528d71(0x250)](this[_0x528d71(0x213)]['registerComponent'](_0x4ff465['BuiltInUIPart']['HEADER_MENU'],()=>_0x263934[_0x528d71(0x2fa)](_0x496371({'status$':this[_0x528d71(0x488)][_0x528d71(0x534)]()}),this[_0x528d71(0x260)])));}[_0x57b986(0x24a)](){const _0x1968c3=_0x57b986;this[_0x1968c3(0x250)](_0x4cdaf4[_0x1968c3(0x56b)](this[_0x1968c3(0x3d9)]['focused$']['pipe'](_0x4bb16b['switchMap'](()=>{const _0x2f38b0=_0x1968c3,_0x3fc2ab=this[_0x2f38b0(0x3d9)][_0x2f38b0(0x44d)]();return _0x3fc2ab?this[_0x2f38b0(0x1d1)][_0x2f38b0(0x2df)](_0x3fc2ab[_0x2f38b0(0x3d4)]()):_0x4bb16b['of'](null);}),_0x4bb16b[_0x1968c3(0x446)](_0x47f028=>_0x47f028?_0x47f028[_0x1968c3(0x37b)]:_0x4bb16b['of'](_0x5185a4[_0x1968c3(0x20e)])))[_0x1968c3(0x29e)](_0xdac4cd=>{const _0x37e313=_0x1968c3;this[_0x37e313(0x488)][_0x37e313(0x1bd)](_0xdac4cd);})));}},_0x3f3314[_0x57b986(0x3e9)]=_0x7c8c61([_0x4cdaf4[_0x57b986(0x4e2)](_0x4cdaf4[_0x57b986(0x575)]['Starting'],_0x3f3314[_0x57b986(0x3e9)]),_0x443cd5(0x0,_0x4cdaf4[_0x57b986(0x28e)]),_0x443cd5(0x1,_0x4ff465[_0x57b986(0x4fd)]),_0x443cd5(0x2,_0x12925a[_0x57b986(0x42c)](_0x12925a[_0x57b986(0x52f)])),_0x443cd5(0x3,_0x12925a['Inject'](_0x3f3314['CollaborationController']))],_0x3f3314['DesktopCollaborationStatusDisplayController']);function _0x496371(_0x1a37da){const {status$:_0x3bbd27}=_0x1a37da;return function(){const _0x39898e=_0x23df;return _0x48aaee[_0x39898e(0x263)](_0x3c74c6,{'status$':_0x3bbd27});};}const _0x13d820=_0x12925a[_0x57b986(0x249)](_0x57b986(0x3a9));var _0x4b7784=Object[_0x57b986(0x1f4)],_0x4cf05e=Object[_0x57b986(0x405)],_0x44a63d=(_0x574b65,_0x4a11e4,_0x34167d,_0x51ac98)=>{for(var _0x36267b=_0x51ac98>0x1?void 0x0:_0x51ac98?_0x4cf05e(_0x4a11e4,_0x34167d):_0x4a11e4,_0x45ce81=_0x574b65['length']-0x1,_0x318438;_0x45ce81>=0x0;_0x45ce81--)(_0x318438=_0x574b65[_0x45ce81])&&(_0x36267b=(_0x51ac98?_0x318438(_0x4a11e4,_0x34167d,_0x36267b):_0x318438(_0x36267b))||_0x36267b);return _0x51ac98&&_0x36267b&&_0x4b7784(_0x4a11e4,_0x34167d,_0x36267b),_0x36267b;},_0x45c89f=(_0x29f295,_0x12b6ed)=>(_0x1cbf72,_0x52536f)=>_0x12b6ed(_0x1cbf72,_0x52536f,_0x29f295);_0x3f3314[_0x57b986(0x393)]=class extends _0x4cdaf4[_0x57b986(0x499)]{constructor(_0x7b0fae,_0x3165d6,_0x55fbfc,_0x45a134,_0x444a0d,_0x255db6){const _0x2db738=_0x57b986;super(),this[_0x2db738(0x1e6)]=_0x7b0fae,this[_0x2db738(0x314)]=_0x3165d6,this['_commandService']=_0x55fbfc,this[_0x2db738(0x2ca)]=_0x45a134,this[_0x2db738(0x508)]=_0x444a0d,_0x255db6?_0x255db6==null||_0x255db6[_0x2db738(0x447)]()['then'](()=>this['_init']()):(this[_0x2db738(0x314)][_0x2db738(0x1fa)](_0x2db738(0x580),'No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.'),this['_init']());}async[_0x57b986(0x546)](){const _0x101941=_0x57b986,_0x278cdb=this[_0x101941(0x1e6)][_0x101941(0x2d7)](_0x101941(0x4e8)),_0x4b657d=this[_0x101941(0x1e6)]['getParam'](_0x101941(0x239));if(!_0x278cdb||!_0x4b657d){this['_logService'][_0x101941(0x1fa)](_0x101941(0x580),_0x101941(0x1f1));return;}switch(Number(_0x4b657d)){case _0x1f330d[_0x101941(0x1ed)]:{const _0x55737e=await this[_0x101941(0x47a)](_0x278cdb);this['_setupSubUnitSync'](_0x55737e);break;}case _0x1f330d[_0x101941(0x510)]:{await this['_loadDoc'](_0x278cdb);break;}default:{this[_0x101941(0x314)]['error']('[DataLoaderController]',_0x101941(0x4f6));break;}}}async[_0x57b986(0x3d5)](_0x5c0987){const _0x23d69d=_0x57b986;await this[_0x23d69d(0x470)](_0x5c0987),_0x5c0987[_0x23d69d(0x497)][_0x23d69d(0x334)](_0x4bb16b[_0x23d69d(0x2e2)](this[_0x23d69d(0x2e3)]))[_0x23d69d(0x29e)](_0x27bd57=>{const _0x3bc0ba=_0x23d69d;_0x27bd57&&this[_0x3bc0ba(0x3aa)](_0x27bd57);}),this[_0x23d69d(0x1e6)][_0x23d69d(0x448)][_0x23d69d(0x334)](_0x4bb16b[_0x23d69d(0x2e2)](this[_0x23d69d(0x2e3)]))['subscribe'](()=>this['_updateSubUnitFromURLParams'](_0x5c0987));}[_0x57b986(0x3aa)](_0x8ad2ce,_0x195ed5=!0x1){const _0x26534c=_0x57b986,_0x33d50b=this['_urlService'][_0x26534c(0x2d7)](_0x26534c(0x3e7));_0x8ad2ce[_0x26534c(0x2c5)]()!==_0x33d50b&&this[_0x26534c(0x1e6)][_0x26534c(0x257)](_0x26534c(0x3e7),_0x8ad2ce[_0x26534c(0x2c5)](),_0x195ed5);}async[_0x57b986(0x470)](_0x3d101f){const _0x43c81a=_0x57b986;var _0x4cf631;const _0x27ce53=this[_0x43c81a(0x1e6)][_0x43c81a(0x2d7)](_0x43c81a(0x3e7));if(!_0x27ce53||!_0x3d101f[_0x43c81a(0x45f)](_0x27ce53)){this['_updateURLWithCurrentState'](_0x3d101f['ensureActiveSheet'](),!0x0);return;}((_0x4cf631=_0x3d101f['getActiveSheet']())==null?void 0x0:_0x4cf631[_0x43c81a(0x2c5)]())!==_0x27ce53&&await this[_0x43c81a(0x48f)][_0x43c81a(0x21f)](_0x3a01f6[_0x43c81a(0x32f)]['id'],{'unitId':_0x3d101f[_0x43c81a(0x3d4)](),'subUnitId':_0x27ce53});}async[_0x57b986(0x47a)](_0x2a1d35){const _0x41d944=_0x57b986;let _0x33e933=0x0;const _0x1cdb71=await this['_localCacheService'][_0x41d944(0x1d5)](_0x2a1d35);return _0x1cdb71&&(_0x1cdb71[_0x41d944(0x4c9)]||_0x1cdb71[_0x41d944(0x526)][_0x41d944(0x397)]!==0x0)&&(_0x33e933=_0x1cdb71[_0x41d944(0x3da)]),_0x33e933===0x0&&this[_0x41d944(0x314)][_0x41d944(0x1fa)]('[DataLoaderController]',_0x41d944(0x1ee)),this[_0x41d944(0x508)]['loadSheet'](_0x2a1d35,_0x33e933);}async[_0x57b986(0x43a)](_0x34456f){const _0x1d95b8=_0x57b986;let _0x4ae1=0x0;const _0x318d11=await this[_0x1d95b8(0x2ca)][_0x1d95b8(0x1d5)](_0x34456f);return _0x318d11&&(_0x318d11['awaitingChangeset']||_0x318d11[_0x1d95b8(0x526)][_0x1d95b8(0x397)]!==0x0)&&(_0x4ae1=_0x318d11['rev']),_0x4ae1===0x0&&this[_0x1d95b8(0x314)][_0x1d95b8(0x1fa)](_0x1d95b8(0x580),_0x1d95b8(0x1ee)),this[_0x1d95b8(0x508)][_0x1d95b8(0x416)](_0x34456f,_0x4ae1);}},_0x3f3314[_0x57b986(0x393)]=_0x44a63d([_0x4cdaf4[_0x57b986(0x4e2)](_0x4cdaf4[_0x57b986(0x575)][_0x57b986(0x2b6)],_0x3f3314[_0x57b986(0x393)]),_0x45c89f(0x0,_0x13d820),_0x45c89f(0x1,_0x4cdaf4[_0x57b986(0x41c)]),_0x45c89f(0x2,_0x4cdaf4[_0x57b986(0x46c)]),_0x45c89f(0x3,_0x12925a[_0x57b986(0x42c)](_0x3f3314[_0x57b986(0x361)])),_0x45c89f(0x4,_0x12925a[_0x57b986(0x42c)](_0x329b63[_0x57b986(0x390)])),_0x45c89f(0x5,_0x12925a[_0x57b986(0x3ec)](_0x10d289[_0x57b986(0x343)]))],_0x3f3314[_0x57b986(0x393)]);var _0x27ee64=Object['defineProperty'],_0x5a34ba=Object[_0x57b986(0x405)],_0x32b40d=(_0x19411a,_0x343946,_0x13da9c,_0x38c581)=>{const _0x53996d=_0x57b986;for(var _0x53d2c6=_0x38c581>0x1?void 0x0:_0x38c581?_0x5a34ba(_0x343946,_0x13da9c):_0x343946,_0x35bf91=_0x19411a[_0x53996d(0x397)]-0x1,_0x4c00e7;_0x35bf91>=0x0;_0x35bf91--)(_0x4c00e7=_0x19411a[_0x35bf91])&&(_0x53d2c6=(_0x38c581?_0x4c00e7(_0x343946,_0x13da9c,_0x53d2c6):_0x4c00e7(_0x53d2c6))||_0x53d2c6);return _0x38c581&&_0x53d2c6&&_0x27ee64(_0x343946,_0x13da9c,_0x53d2c6),_0x53d2c6;},_0x181d20=(_0x59f4c4,_0x8e1b01)=>(_0x55caf5,_0x2a92f8)=>_0x8e1b01(_0x55caf5,_0x2a92f8,_0x59f4c4);const _0x5bfe7c=_0x57b986(0x421),_0x262617=_0x57b986(0x44e);let _0x3d3abe=class extends _0x4cdaf4['Disposable']{constructor(_0x4024f8,_0x55bdda){const _0x439f5c=_0x57b986;super(),this[_0x439f5c(0x3d9)]=_0x4024f8,this[_0x439f5c(0x323)]=_0x55bdda,this[_0x439f5c(0x546)]();}[_0x57b986(0x546)](){const _0x60b3bb=_0x57b986;this[_0x60b3bb(0x250)](_0x4cdaf4[_0x60b3bb(0x56b)](this[_0x60b3bb(0x3d9)]['focused$'][_0x60b3bb(0x29e)](()=>{const _0x3ac3a3=_0x60b3bb;var _0x5c975f;const _0x16fbff=this[_0x3ac3a3(0x3d9)]['getFocusedUnit']();let _0x255a19=(_0x5c975f=this['_configService'][_0x3ac3a3(0x51f)](_0x5bfe7c))!=null?_0x5c975f:_0x262617;_0x16fbff instanceof _0x4cdaf4[_0x3ac3a3(0x28b)]&&(_0x255a19=_0x16fbff['name']),document[_0x3ac3a3(0x308)]=_0x255a19;})));}};_0x3d3abe=_0x32b40d([_0x4cdaf4['OnLifecycle'](_0x4cdaf4[_0x57b986(0x575)][_0x57b986(0x2da)],_0x3d3abe),_0x181d20(0x0,_0x4cdaf4[_0x57b986(0x28e)]),_0x181d20(0x1,_0x4cdaf4[_0x57b986(0x4f1)])],_0x3d3abe);var _0x317031=Object['defineProperty'],_0x334248=Object[_0x57b986(0x405)],_0x21906b=(_0x36ed9c,_0x596b6c,_0x3757eb,_0x3c1757)=>{const _0x1e449b=_0x57b986;for(var _0x5eeb79=_0x3c1757>0x1?void 0x0:_0x3c1757?_0x334248(_0x596b6c,_0x3757eb):_0x596b6c,_0x3c67ac=_0x36ed9c[_0x1e449b(0x397)]-0x1,_0x685c7;_0x3c67ac>=0x0;_0x3c67ac--)(_0x685c7=_0x36ed9c[_0x3c67ac])&&(_0x5eeb79=(_0x3c1757?_0x685c7(_0x596b6c,_0x3757eb,_0x5eeb79):_0x685c7(_0x5eeb79))||_0x5eeb79);return _0x3c1757&&_0x5eeb79&&_0x317031(_0x596b6c,_0x3757eb,_0x5eeb79),_0x5eeb79;},_0x35fd6a=(_0x148fb4,_0x1b4692)=>(_0xdcf5a7,_0x2175bf)=>_0x1b4692(_0xdcf5a7,_0x2175bf,_0x148fb4);let _0x80c624=class{constructor(_0x6eac25,_0x1e7c4a){const _0x739738=_0x57b986;this[_0x739738(0x323)]=_0x6eac25,this[_0x739738(0x522)]=_0x1e7c4a;}async['getUnitOnRev'](_0xdad24d,_0x34d01d){const _0x44ee6d=_0x57b986;var _0x237886;const {unitID:_0x151db8,type:_0x279456,revision:_0x120141=0x0}=_0x34d01d,_0x14c5d3=this[_0x44ee6d(0x54d)]()+'/'+_0x279456+_0x44ee6d(0x27a)+_0x151db8+_0x44ee6d(0x401)+(_0x120141===0x1?0x0:_0x120141),_0x4259f7=(await this['_httpService'][_0x44ee6d(0x408)](_0x14c5d3))[_0x44ee6d(0x559)],_0x6e0bff=(_0x237886=_0x4259f7[_0x44ee6d(0x33c)])==null?void 0x0:_0x237886[_0x44ee6d(0x4e5)];if(_0x6e0bff){const _0x5a3f33=_0x6e0bff==null?void 0x0:_0x6e0bff[_0x44ee6d(0x4dc)],_0x56210f=_0x4cdaf4[_0x44ee6d(0x26c)][_0x44ee6d(0x317)](_0x4cdaf4[_0x44ee6d(0x1fb)](_0x5a3f33));_0x6e0bff[_0x44ee6d(0x4dc)]=_0x56210f,Object[_0x44ee6d(0x563)](_0x6e0bff['sheets'])[_0x44ee6d(0x2bc)](([,_0x4aeacd])=>{const _0x40a37f=_0x44ee6d,_0xe95f4e=_0x4aeacd[_0x40a37f(0x4dc)],_0x47e368=_0x4cdaf4[_0x40a37f(0x26c)][_0x40a37f(0x317)](_0x4cdaf4['b64DecodeUnicode'](_0xe95f4e));_0x4aeacd[_0x40a37f(0x4dc)]=_0x47e368;});}return _0x4259f7;}async[_0x57b986(0x3b1)](_0x73ef6e,_0x566cfc){const _0x1fb946=_0x57b986,{unitID:_0x13ddfd,type:_0x268a10,blockID:_0x46a642}=_0x566cfc,_0x225308=this[_0x1fb946(0x241)]()+'/'+_0x268a10+_0x1fb946(0x27a)+_0x13ddfd+_0x1fb946(0x229)+_0x46a642;return(await this[_0x1fb946(0x522)][_0x1fb946(0x408)](_0x225308))['body'];}async['fetchMissingChangesets'](_0xda075b,_0x36a153){const _0xf48bd1=_0x57b986,{unitID:_0x447277,type:_0x533b5e,from:_0x1ade72,to:_0x31d8cf}=_0x36a153,_0x439e29=this['_getAPIPrefix']()+'/'+_0x533b5e+'/unit/'+_0x447277+_0xf48bd1(0x552)+_0x1ade72+_0xf48bd1(0x4e3)+_0x31d8cf;return(await this['_httpService'][_0xf48bd1(0x408)](_0x439e29))[_0xf48bd1(0x559)];}[_0x57b986(0x54d)](){const _0x506548=_0x57b986;var _0x31409e;return(_0x31409e=this['_configService']['getConfig'](_0x5cc7aa))!=null?_0x31409e:this[_0x506548(0x241)]();}[_0x57b986(0x241)](){const _0x12f44c=_0x57b986;var _0x3f4f8e;return(_0x3f4f8e=this[_0x12f44c(0x323)][_0x12f44c(0x51f)](_0x514f86))!=null?_0x3f4f8e:_0x1b973b;}async[_0x57b986(0x3ac)](_0x12b7b7,_0xd07893){const _0x13341c=_0x57b986,_0x136828=_0x13341c(0x262)+_0xd07893[_0x13341c(0x239)]+_0x13341c(0x27a)+_0xd07893[_0x13341c(0x40f)]+_0x13341c(0x1f2);return(await this[_0x13341c(0x522)]['get'](_0x136828,{'params':{'resourceId':JSON[_0x13341c(0x528)](_0xd07893['resourceIDs'])}}))[_0x13341c(0x559)];}[_0x57b986(0x410)](){throw new Error('This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!');}[_0x57b986(0x4f9)](){throw new Error('This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!');}[_0x57b986(0x286)](){const _0x2a0bb9=_0x57b986;throw new Error(_0x2a0bb9(0x28d));}};_0x80c624=_0x21906b([_0x35fd6a(0x0,_0x4cdaf4['IConfigService']),_0x35fd6a(0x1,_0x12925a[_0x57b986(0x42c)](_0xfde0ab[_0x57b986(0x280)]))],_0x80c624);var _0x29fc95=Object['defineProperty'],_0x49a13b=Object[_0x57b986(0x405)],_0x1661f6=(_0x49f7b8,_0x10fa6f,_0x3ac553,_0x2ca10a)=>{const _0x4f5323=_0x57b986;for(var _0x5c26ca=_0x2ca10a>0x1?void 0x0:_0x2ca10a?_0x49a13b(_0x10fa6f,_0x3ac553):_0x10fa6f,_0x372ec4=_0x49f7b8[_0x4f5323(0x397)]-0x1,_0x29df94;_0x372ec4>=0x0;_0x372ec4--)(_0x29df94=_0x49f7b8[_0x372ec4])&&(_0x5c26ca=(_0x2ca10a?_0x29df94(_0x10fa6f,_0x3ac553,_0x5c26ca):_0x29df94(_0x5c26ca))||_0x5c26ca);return _0x2ca10a&&_0x5c26ca&&_0x29fc95(_0x10fa6f,_0x3ac553,_0x5c26ca),_0x5c26ca;},_0x510b6e=(_0x18b60e,_0x3d3451)=>(_0x34d958,_0x54344c)=>_0x3d3451(_0x34d958,_0x54344c,_0x18b60e);let _0x4e679e=class extends _0x4cdaf4[_0x57b986(0x1ff)]{constructor(_0x317aa7,_0x473704,_0x190bef,_0x208cad,_0x26d0be){const _0x5e0ad6=_0x57b986;super(_0x317aa7,_0x473704,_0x190bef),this['_transformService']=_0x208cad,this[_0x5e0ad6(0x314)]=_0x26d0be;}[_0x57b986(0x39a)](_0xe90cec,_0xb46947){const _0x219a80=_0x57b986,_0x3dbd1e=this[_0x219a80(0x371)](_0xe90cec);if(_0x3dbd1e)try{const _0x5dcc4e=this['_transformStack'](_0x3dbd1e,_0xb46947);this[_0x219a80(0x356)](_0xe90cec,_0x5dcc4e);}catch(_0x496498){this[_0x219a80(0x314)]['error'](_0x219a80(0x1da),_0x496498),this[_0x219a80(0x53b)](_0xe90cec);}const _0x2ad783=this['_getRedoStack'](_0xe90cec);if(_0x2ad783)try{const _0x1744c3=this[_0x219a80(0x278)](_0x2ad783,_0xb46947);this[_0x219a80(0x3fa)](_0xe90cec,_0x1744c3);}catch(_0x13f924){this[_0x219a80(0x314)][_0x219a80(0x4a4)](_0x13f924),this['_clearRedo'](_0xe90cec);}}['_clearUndo'](_0x3bd598){const _0x3eec6d=_0x57b986,_0x98e545=this[_0x3eec6d(0x371)](_0x3bd598);_0x98e545&&(_0x98e545['length']=0x0,this[_0x3eec6d(0x4ff)]());}[_0x57b986(0x476)](_0x51a109){const _0x2d433f=_0x57b986,_0x3cf5c6=this[_0x2d433f(0x378)](_0x51a109);_0x3cf5c6&&(_0x3cf5c6[_0x2d433f(0x397)]=0x0,this[_0x2d433f(0x4ff)]());}[_0x57b986(0x356)](_0x52a277,_0x43ecee){const _0x309d76=_0x57b986;this[_0x309d76(0x22c)][_0x309d76(0x2c3)](_0x52a277,_0x43ecee),this['_updateStatus']();}[_0x57b986(0x3fa)](_0x13951b,_0x2a718e){const _0x2a2749=_0x57b986;this['_redoStacks'][_0x2a2749(0x2c3)](_0x13951b,_0x2a718e),this['_updateStatus']();}[_0x57b986(0x278)](_0x446d04,_0x9696c){const _0x29ea5f=_0x57b986,_0x31bc99=[];let _0x5408eb=_0x9696c,_0x2a37cb=_0x9696c;for(let _0x6834b1=_0x446d04[_0x29ea5f(0x397)]-0x1;_0x6834b1>=0x0;_0x6834b1--){const {unitID:_0x3c431d,undoMutations:_0x1bf441,redoMutations:_0x360bba}=_0x446d04[_0x6834b1],_0x2a8f5f=this[_0x29ea5f(0x26d)][_0x29ea5f(0x342)](_0x5408eb,_0x1bf441),_0x1334b1=this[_0x29ea5f(0x26d)][_0x29ea5f(0x342)](_0x2a37cb,_0x360bba);if(_0x329b63[_0x29ea5f(0x267)](_0x2a8f5f)||_0x329b63['isTransformMutationsWithChangesetFailure'](_0x1334b1)){this[_0x29ea5f(0x314)][_0x29ea5f(0x4a4)](_0x29ea5f(0x1da),_0x29ea5f(0x561),_0x2a8f5f,_0x1334b1);break;}_0x5408eb=_0x2a8f5f['c1Prime'],_0x2a37cb=_0x1334b1[_0x29ea5f(0x264)],_0x31bc99[_0x29ea5f(0x2a8)]({'unitID':_0x3c431d,'undoMutations':_0x2a8f5f[_0x29ea5f(0x22e)],'redoMutations':_0x1334b1['m2Prime']});}return _0x31bc99[_0x29ea5f(0x26a)]();}};_0x4e679e=_0x1661f6([_0x510b6e(0x0,_0x4cdaf4['IUniverInstanceService']),_0x510b6e(0x1,_0x4cdaf4['ICommandService']),_0x510b6e(0x2,_0x4cdaf4[_0x57b986(0x220)]),_0x510b6e(0x3,_0x329b63[_0x57b986(0x2a0)]),_0x510b6e(0x4,_0x4cdaf4[_0x57b986(0x41c)])],_0x4e679e);class _0x32732a extends _0x4cdaf4[_0x57b986(0x499)]{constructor(){const _0x4329e2=_0x57b986;super(),_0x53d09f(this,_0x4329e2(0x448)),this['urlChange$']=_0x4bb16b['fromEvent'](window,'popstate')[_0x4329e2(0x334)](_0x4bb16b[_0x4329e2(0x2e2)](this[_0x4329e2(0x2e3)]),_0x4bb16b['shareReplay'](0x1),_0x4bb16b[_0x4329e2(0x2a1)](void 0x0));}[_0x57b986(0x257)](_0x1ebc6f,_0x39b11b,_0x2b8035=!0x1){const _0x22bdbc=_0x57b986,_0x2d85d9=new URL(window['location'][_0x22bdbc(0x251)]);_0x2d85d9[_0x22bdbc(0x206)][_0x22bdbc(0x2c3)](_0x1ebc6f,_0x39b11b),_0x2b8035?window['history']['replaceState']('','',_0x2d85d9[_0x22bdbc(0x3cb)]()):window[_0x22bdbc(0x4d8)][_0x22bdbc(0x20c)]('','',_0x2d85d9[_0x22bdbc(0x3cb)]());}['removeParam'](_0x48d32d,_0x280cba=!0x1){const _0x4e4c4e=_0x57b986,_0x2c6cdd=new URL(window[_0x4e4c4e(0x519)]['href']);_0x2c6cdd['searchParams']['delete'](_0x48d32d),_0x280cba?window[_0x4e4c4e(0x4d8)]['replaceState']('','',_0x2c6cdd[_0x4e4c4e(0x3cb)]()):window['history'][_0x4e4c4e(0x20c)]('','',_0x2c6cdd[_0x4e4c4e(0x3cb)]());}['getParam'](_0x1effe6){const _0xb57d0c=_0x57b986;var _0x1f5f83;return(_0x1f5f83=new URL(window[_0xb57d0c(0x519)][_0xb57d0c(0x251)])[_0xb57d0c(0x206)][_0xb57d0c(0x408)](_0x1effe6))!=null?_0x1f5f83:void 0x0;}}const _0x833ca1=_0x57b986(0x3a5),_0x2c6a74=_0x57b986(0x438),_0x45dbc8=0x6,_0x4622cb=1.5,_0x3bb304=0x4,_0x623b59=1.5,_0x529be0='rgba(255,\x20255,\x20255,\x200.01)';class _0x51f812{constructor(_0x230f32,_0x10c685,_0x480ea1,_0x1d0c7f){const _0x670e57=_0x57b986;_0x53d09f(this,_0x670e57(0x256),[]),_0x53d09f(this,_0x670e57(0x57d),null),_0x53d09f(this,_0x670e57(0x501),null),_0x53d09f(this,'_anchorDot',null),_0x53d09f(this,_0x670e57(0x26b),null),_0x53d09f(this,_0x670e57(0x3c0),null),(this[_0x670e57(0x202)]=_0x230f32,this['_scene']=_0x10c685,this[_0x670e57(0x33e)]=_0x480ea1,this['_document']=_0x1d0c7f,this[_0x670e57(0x3b9)]());}set[_0x57b986(0x474)](_0x5a59e3){const _0x542a3a=_0x57b986;_0x5a59e3?(this['_anchorDot']&&this[_0x542a3a(0x3b2)]['hide'](),this[_0x542a3a(0x501)]&&this[_0x542a3a(0x501)]['show']()):(this[_0x542a3a(0x3b2)]&&this['_anchorDot']['show'](),this[_0x542a3a(0x501)]&&this[_0x542a3a(0x501)][_0x542a3a(0x359)]());}[_0x57b986(0x46e)](){const _0xaa0d32=_0x57b986;for(const _0x23b837 of this[_0xaa0d32(0x256)])_0x23b837[_0xaa0d32(0x46e)]();this[_0xaa0d32(0x501)]&&this[_0xaa0d32(0x501)][_0xaa0d32(0x46e)](),this[_0xaa0d32(0x3b2)]&&this['_anchorDot']['dispose'](),this[_0xaa0d32(0x57d)]&&this['_anchor'][_0xaa0d32(0x46e)](),this[_0xaa0d32(0x3c0)]&&this[_0xaa0d32(0x3c0)]();}[_0x57b986(0x3b9)](){const _0x1c44b9=_0x57b986,{_docSkeleton:_0x594689,_document:_0x3c92ea}=this,{color:_0x383712,name:_0x2cebf7,ranges:_0x54d15e}=this[_0x1c44b9(0x202)],_0x7739c3=_0x3c92ea[_0x1c44b9(0x39b)](),{docsLeft:_0x33e39e,docsTop:_0x1c7fa8}=_0x7739c3,_0x46b52c=new _0x499dcd[(_0x1c44b9(0x2fe))](_0x7739c3,_0x594689);for(const {startOffset:_0x383a0f,endOffset:_0x6d6aec,collapsed:_0x105a5f,isActive:_0x4e6bcf}of _0x54d15e){const _0x2965d8=_0x594689[_0x1c44b9(0x4bf)](_0x383a0f),_0x490c85=_0x594689[_0x1c44b9(0x4bf)](_0x6d6aec);if(_0x4e6bcf){const {contentBoxPointGroup:_0x5229c4}=_0x46b52c['getRangePointData'](_0x490c85,_0x490c85);if(_0x5229c4[_0x1c44b9(0x397)]===0x0)continue;this[_0x1c44b9(0x48b)](_0x383712,_0x5229c4,_0x33e39e,_0x1c7fa8,_0x2cebf7),this[_0x1c44b9(0x3c0)]=this[_0x1c44b9(0x3c8)]();}if(!_0x105a5f){const {contentBoxPointGroup:_0x3defc0}=_0x46b52c[_0x1c44b9(0x1e1)](_0x2965d8,_0x490c85);if(_0x3defc0[_0x1c44b9(0x397)]===0x0)continue;this['_drawRange'](_0x383712,_0x3defc0,_0x33e39e,_0x1c7fa8);}}}[_0x57b986(0x48b)](_0x4839a0,_0x2f0b65,_0x5f2b1e,_0x475714,_0x1b3209){const _0x3b5869=_0x57b986,_0x3d8baa=this[_0x3b5869(0x441)](_0x2f0b65),{left:_0x572eab,top:_0x34008f,height:_0x16a6f7}=_0x3d8baa,_0x13baf2=this[_0x3b5869(0x36d)](),_0x11a848=_0x623b59/_0x13baf2,_0xaef758=new _0x499dcd[(_0x3b5869(0x382))](_0x833ca1+_0x4cdaf4['Tools']['generateRandomId'](_0x45dbc8),{'left':_0x572eab+_0x5f2b1e-_0x11a848,'top':_0x34008f+_0x475714,'height':_0x16a6f7,'width':_0x4622cb,'fill':_0x4839a0||_0x499dcd['getColor'](_0x4cdaf4[_0x3b5869(0x209)][_0x3b5869(0x25f)],0x0),'strokeWidth':_0x11a848,'stroke':_0x529be0,'evented':!0x0});this[_0x3b5869(0x57d)]=_0xaef758,this[_0x3b5869(0x491)]['addObject'](_0xaef758,_0x499dcd[_0x3b5869(0x450)]);const _0x41b362=new _0x499dcd[(_0x3b5869(0x382))](_0x833ca1+_0x4cdaf4['Tools']['generateRandomId'](_0x45dbc8),{'left':_0x572eab+_0x5f2b1e-_0x11a848,'top':_0x34008f+_0x475714-_0x3bb304/0x2,'height':_0x3bb304,'width':_0x3bb304,'fill':_0x4839a0||_0x499dcd[_0x3b5869(0x4bc)](_0x4cdaf4[_0x3b5869(0x209)][_0x3b5869(0x25f)],0x0),'strokeWidth':0x0,'stroke':_0x4839a0||_0x499dcd[_0x3b5869(0x4bc)](_0x4cdaf4[_0x3b5869(0x209)][_0x3b5869(0x25f)],0x0),'evented':!0x1});this['_anchorDot']=_0x41b362,this[_0x3b5869(0x491)][_0x3b5869(0x266)](_0x41b362,_0x499dcd['TEXT_RANGE_LAYER_INDEX']);const _0x1e16a9=new _0x3b789e(_0x833ca1+_0x4cdaf4[_0x3b5869(0x2dc)][_0x3b5869(0x4a0)](_0x45dbc8),{'left':_0x572eab+_0x5f2b1e-_0x11a848,'top':_0x34008f+_0x475714-_0x4f68cc,'text':_0x1b3209,'color':_0x4839a0});this[_0x3b5869(0x501)]=_0x1e16a9,this[_0x3b5869(0x491)]['addObject'](_0x1e16a9,_0x499dcd[_0x3b5869(0x450)]),this[_0x3b5869(0x474)]=!0x1;}['_handleHover'](){const _0x412147=_0x57b986,_0x220802=this['_anchor'][_0x412147(0x48a)]['add'](()=>{const _0x513fa6=_0x412147;this[_0x513fa6(0x474)]=!0x0;}),_0x8b0094=this[_0x412147(0x57d)]['onPointerLeaveObserver'][_0x412147(0x2b7)](()=>{const _0x8a8905=_0x412147;this[_0x8a8905(0x26b)]&&clearTimeout(this['_hideTimer']),this['_hideTimer']=setTimeout(()=>{const _0x5c0b93=_0x8a8905;this[_0x5c0b93(0x474)]=!0x1;},0x7d0);});return()=>{const _0x11c77f=_0x412147;var _0x2561b7,_0x2ae10e;(_0x2561b7=this[_0x11c77f(0x57d)])==null||_0x2561b7[_0x11c77f(0x48a)][_0x11c77f(0x21d)](_0x220802),(_0x2ae10e=this[_0x11c77f(0x57d)])==null||_0x2ae10e[_0x11c77f(0x4cf)][_0x11c77f(0x21d)](_0x8b0094);};}[_0x57b986(0x2ed)](_0x3ff0c3,_0x4f5580,_0x95e53f,_0x4df83f){const _0x1c7168=_0x57b986,_0x3ed04f=new _0x4cdaf4[(_0x1c7168(0x568))](_0x3ff0c3)[_0x1c7168(0x1ec)](0.2)[_0x1c7168(0x34e)](),_0x192e4b=new _0x499dcd['RegularPolygon'](_0x2c6a74+_0x4cdaf4[_0x1c7168(0x2dc)][_0x1c7168(0x4a0)](_0x45dbc8),{'pointsGroup':_0x4f5580,'fill':_0x3ed04f||_0x499dcd[_0x1c7168(0x4bc)](_0x4cdaf4[_0x1c7168(0x209)][_0x1c7168(0x25f)],0.2),'left':_0x95e53f,'top':_0x4df83f,'evented':!0x1,'debounceParentDirty':!0x1});this['_shapes'][_0x1c7168(0x2a8)](_0x192e4b),this[_0x1c7168(0x491)][_0x1c7168(0x266)](_0x192e4b,_0x499dcd[_0x1c7168(0x450)]);}['_getAnchorBounding'](_0x56b9e6){const _0x12b1c4=_0x56b9e6[0x0],_0x1fc3c7=_0x12b1c4[0x0],_0x463227=_0x12b1c4[0x2],{x:_0x4cdd8f,y:_0xa81c6a}=_0x1fc3c7,{x:_0x283f26,y:_0x5d6a7a}=_0x463227;return{'left':_0x4cdd8f,'top':_0xa81c6a,'width':_0x283f26-_0x4cdd8f,'height':_0x5d6a7a-_0xa81c6a};}[_0x57b986(0x36d)](){const _0x293d74=_0x57b986,{scaleX:_0x592909,scaleY:_0x2c8a34}=this[_0x293d74(0x491)][_0x293d74(0x223)]();return Math[_0x293d74(0x27f)](_0x592909,_0x2c8a34);}}var _0x28c1bb=Object[_0x57b986(0x1f4)],_0x331dff=Object[_0x57b986(0x405)],_0x3fb450=(_0x2c1bda,_0x12ae9a,_0x294284,_0x5e25d6)=>{const _0x5db5a7=_0x57b986;for(var _0x1183d8=_0x5e25d6>0x1?void 0x0:_0x5e25d6?_0x331dff(_0x12ae9a,_0x294284):_0x12ae9a,_0x1caffb=_0x2c1bda[_0x5db5a7(0x397)]-0x1,_0x4dc922;_0x1caffb>=0x0;_0x1caffb--)(_0x4dc922=_0x2c1bda[_0x1caffb])&&(_0x1183d8=(_0x5e25d6?_0x4dc922(_0x12ae9a,_0x294284,_0x1183d8):_0x4dc922(_0x1183d8))||_0x1183d8);return _0x5e25d6&&_0x1183d8&&_0x28c1bb(_0x12ae9a,_0x294284,_0x1183d8),_0x1183d8;},_0x590769=(_0x49ba1c,_0x5e9967)=>(_0x43bbe4,_0x1edc42)=>_0x5e9967(_0x43bbe4,_0x1edc42,_0x49ba1c);let _0x4879f6=class extends _0x4cdaf4[_0x57b986(0x499)]{constructor(_0x4a5e5f,_0x4b37f1,_0x354437,_0x36c127,_0x4be252){const _0x5c0839=_0x57b986;super(),_0x53d09f(this,_0x5c0839(0x3a3),[]),(this[_0x5c0839(0x49d)]=_0x4a5e5f,this['_univerInstanceService']=_0x4b37f1,this[_0x5c0839(0x3df)]=_0x354437,this[_0x5c0839(0x30e)]=_0x36c127,this[_0x5c0839(0x53c)]=_0x4be252,this[_0x5c0839(0x546)]());}[_0x57b986(0x546)](){const _0x22920b=_0x57b986;this['_docSkeletonManagerService'][_0x22920b(0x41e)][_0x22920b(0x334)](_0x4ac749[_0x22920b(0x2e2)](this[_0x22920b(0x2e3)]),_0x4ac749['switchMap'](_0xbaf36a=>{const _0x4555ed=_0x22920b;if(_0xbaf36a){const {unitId:_0x15fda3}=_0xbaf36a;return _0x4bb16b[_0x4555ed(0x1f8)](this['_collabCursorController'][_0x4555ed(0x287)](_0x15fda3),this['_themeService'][_0x4555ed(0x2fd)])[_0x4555ed(0x334)](_0x4ac749[_0x4555ed(0x2d2)](([_0x546240,_0x360f34])=>({'skeleton':_0xbaf36a,'cursors':[..._0x546240[_0x4555ed(0x2c0)]()][_0x4555ed(0x527)](_0x41b6fa=>({..._0x41b6fa,'color':_0x360f34[_0x41b6fa[_0x4555ed(0x4fe)]]}))})));}return _0x4bb16b['of']({'skeleton':null,'cursors':[]});}))[_0x22920b(0x29e)](({skeleton:_0x78029f,cursors:_0x561a42})=>{const _0x127e99=_0x22920b;this[_0x127e99(0x2ea)](),_0x78029f&&this[_0x127e99(0x319)](_0x78029f['skeleton'],_0x561a42);});}[_0x57b986(0x319)](_0x45467b,_0x1e7a51){const _0x214c31=_0x57b986,_0x3ed259=this['_getDocObject']();if(_0x3ed259==null)return;const {scene:_0x23bea7,document:_0x5c6382}=_0x3ed259,_0x5d4a52=_0x1e7a51[_0x214c31(0x2d2)](_0x16c4bf=>new _0x51f812(_0x16c4bf,_0x23bea7,_0x45467b,_0x5c6382));this['_cursors']=_0x5d4a52;}[_0x57b986(0x2ea)](){const _0x7c4c01=_0x57b986;this[_0x7c4c01(0x3a3)][_0x7c4c01(0x2bc)](_0x495e68=>_0x495e68[_0x7c4c01(0x46e)]()),this[_0x7c4c01(0x3a3)]=[];}['_getDocObject'](){const _0x516d66=_0x57b986;return _0x3fcd1a[_0x516d66(0x2ec)](this[_0x516d66(0x3d9)],this[_0x516d66(0x3df)]);}};_0x4879f6=_0x3fb450([_0x4cdaf4[_0x57b986(0x4e2)](_0x4cdaf4[_0x57b986(0x575)]['Steady'],_0x4879f6),_0x590769(0x0,_0x12925a[_0x57b986(0x42c)](_0xc3b139)),_0x590769(0x1,_0x4cdaf4['IUniverInstanceService']),_0x590769(0x2,_0x499dcd[_0x57b986(0x43c)]),_0x590769(0x3,_0x12925a[_0x57b986(0x42c)](_0x3fcd1a[_0x57b986(0x273)])),_0x590769(0x4,_0x12925a[_0x57b986(0x42c)](_0x4cdaf4['ThemeService']))],_0x4879f6);var _0x5ac04e=Object[_0x57b986(0x1f4)],_0x238dd0=Object[_0x57b986(0x405)],_0x36e8fe=(_0x2413b4,_0x45c7c7,_0x4942b4,_0x333534)=>{const _0x350269=_0x57b986;for(var _0x1eda18=_0x333534>0x1?void 0x0:_0x333534?_0x238dd0(_0x45c7c7,_0x4942b4):_0x45c7c7,_0x54f87=_0x2413b4[_0x350269(0x397)]-0x1,_0x4cebc0;_0x54f87>=0x0;_0x54f87--)(_0x4cebc0=_0x2413b4[_0x54f87])&&(_0x1eda18=(_0x333534?_0x4cebc0(_0x45c7c7,_0x4942b4,_0x1eda18):_0x4cebc0(_0x1eda18))||_0x1eda18);return _0x333534&&_0x1eda18&&_0x5ac04e(_0x45c7c7,_0x4942b4,_0x1eda18),_0x1eda18;},_0x4da9f0=(_0x4a4f41,_0x33d5ac)=>(_0x1af021,_0x44f92b)=>_0x33d5ac(_0x1af021,_0x44f92b,_0x4a4f41);let _0x95f6c2=class{constructor(_0x5008ce,_0x2b695a,_0x549a0a){const _0x2b78a4=_0x57b986;this[_0x2b78a4(0x323)]=_0x5008ce,this[_0x2b78a4(0x522)]=_0x2b695a,this[_0x2b78a4(0x3c6)]=_0x549a0a,this[_0x2b78a4(0x533)]();}['init'](){const _0x3ee17b=_0x57b986;this['_httpService']['registerHTTPInterceptor']({'priority':0x1,'interceptor':(_0xe4d999,_0x5c2efb)=>_0x5c2efb(_0xe4d999)['pipe'](_0x4bb16b[_0x3ee17b(0x1d4)](async _0x2f473c=>{const _0x232528=_0x3ee17b,_0x157222=_0x2f473c;if(_0x157222[_0x232528(0x2aa)]===0x191&&window['confirm'](this['localeService']['t'](_0x232528(0x49b)))){const _0xea7293=window[_0x232528(0x34f)](window['location'][_0x232528(0x251)]);window[_0x232528(0x519)][_0x232528(0x251)]=this[_0x232528(0x3e8)]()+_0x232528(0x372)+_0xea7293;}return _0x157222;}))});}[_0x57b986(0x3e8)](){const _0xa8d8fc=_0x57b986;var _0x5e0cb8;return(_0x5e0cb8=this[_0xa8d8fc(0x323)][_0xa8d8fc(0x51f)](_0x23ca2e))!=null?_0x5e0cb8:_0x1c47c8;}};_0x95f6c2=_0x36e8fe([_0x4da9f0(0x0,_0x4cdaf4[_0x57b986(0x4f1)]),_0x4da9f0(0x1,_0x12925a[_0x57b986(0x42c)](_0xfde0ab['HTTPService'])),_0x4da9f0(0x2,_0x12925a[_0x57b986(0x42c)](_0x4cdaf4[_0x57b986(0x502)]))],_0x95f6c2);var _0x2ffec0=Object[_0x57b986(0x1f4)],_0x3b0a18=Object[_0x57b986(0x405)],_0x454e7a=(_0x2ac99a,_0x3ebf9a,_0x99d3f2,_0x3b8a63)=>{const _0x2cc886=_0x57b986;for(var _0x429947=_0x3b8a63>0x1?void 0x0:_0x3b8a63?_0x3b0a18(_0x3ebf9a,_0x99d3f2):_0x3ebf9a,_0x2d5299=_0x2ac99a[_0x2cc886(0x397)]-0x1,_0x532e0c;_0x2d5299>=0x0;_0x2d5299--)(_0x532e0c=_0x2ac99a[_0x2d5299])&&(_0x429947=(_0x3b8a63?_0x532e0c(_0x3ebf9a,_0x99d3f2,_0x429947):_0x532e0c(_0x429947))||_0x429947);return _0x3b8a63&&_0x429947&&_0x2ffec0(_0x3ebf9a,_0x99d3f2,_0x429947),_0x429947;},_0x545c98=(_0x3588cb,_0x578f88)=>(_0x32d699,_0x1a8a88)=>_0x578f88(_0x32d699,_0x1a8a88,_0x3588cb);const _0x113fb2=_0x57b986(0x44b),_0x46ca44='/universer-api/authz';_0x3f3314[_0x57b986(0x25c)]=class{constructor(_0x513d2c,_0x4669c1){const _0x3057e2=_0x57b986;this[_0x3057e2(0x313)]=_0x513d2c,this['_configService']=_0x4669c1;}['_getAPIPrefixPath'](){const _0x1389a0=_0x57b986;var _0xf4a2ec;return(_0xf4a2ec=this[_0x1389a0(0x323)]['getConfig'](_0x113fb2))!=null?_0xf4a2ec:_0x46ca44;}async[_0x57b986(0x494)](_0x2826d7){const _0xfc216d=_0x57b986,_0x564268=this[_0xfc216d(0x2eb)]()+'/'+_0x2826d7['objectType']+_0xfc216d(0x277);return(await this[_0xfc216d(0x313)][_0xfc216d(0x45d)](_0x564268,{'body':_0x2826d7}))[_0xfc216d(0x559)][_0xfc216d(0x4e6)]||'';}async[_0x57b986(0x1f6)](_0x294f39){const _0x3bf571=_0x57b986,_0x526f37=this[_0x3bf571(0x2eb)]()+_0x3bf571(0x3f3);return(await this[_0x3bf571(0x313)][_0x3bf571(0x45d)](_0x526f37,{'body':_0x294f39}))[_0x3bf571(0x559)][_0x3bf571(0x2ef)];}async[_0x57b986(0x21e)](_0x52c373){const _0x56ff1f=_0x57b986,_0x2498c4=this[_0x56ff1f(0x2eb)]()+'/'+_0x52c373[_0x56ff1f(0x327)]+'/object/'+_0x52c373[_0x56ff1f(0x4e6)];await this['_HTTPService'][_0x56ff1f(0x4c4)](_0x2498c4,{'body':_0x52c373});}async['allowed'](_0x2eadb6){const _0x21351f=_0x57b986,_0x5016d8=this[_0x21351f(0x2eb)]()+'/'+_0x2eadb6[_0x21351f(0x327)]+_0x21351f(0x504)+_0x2eadb6[_0x21351f(0x4e6)]+_0x21351f(0x478);return(await this[_0x21351f(0x313)][_0x21351f(0x45d)](_0x5016d8,{'body':_0x2eadb6}))['body']['actions'];}async[_0x57b986(0x370)](_0x206505){const _0x3ddde6=_0x57b986,_0x375579=this[_0x3ddde6(0x2eb)]()+'/-/object/-/batch_allowed';return(await this['_HTTPService'][_0x3ddde6(0x45d)](_0x375579,{'body':{'requests':_0x206505}}))[_0x3ddde6(0x559)]['objectActions'];}async['listRoles'](_0xb0a59b){const _0x570810=_0x57b986,_0x215d3d=this[_0x570810(0x2eb)]()+'/'+_0xb0a59b[_0x570810(0x327)]+'/role',_0x3f1de2=await this[_0x570810(0x313)][_0x570810(0x45d)](_0x215d3d,{'body':_0xb0a59b});return{'roles':_0x3f1de2['body'][_0x570810(0x45e)],'actions':_0x3f1de2[_0x570810(0x559)][_0x570810(0x29a)]};}async['deleteCollaborator'](_0x1ee1fd){const _0x467090=_0x57b986,_0xd7bf2a=this[_0x467090(0x2eb)]()+_0x467090(0x435);await this[_0x467090(0x313)][_0x467090(0x391)](_0xd7bf2a,{'params':{'collaboratorID':_0x1ee1fd[_0x467090(0x4ef)],'objectID':_0x1ee1fd[_0x467090(0x4e6)],'unitID':_0x1ee1fd[_0x467090(0x40f)]}});}async[_0x57b986(0x358)](_0x1029f5){const _0x349abd=_0x57b986,_0x3168d8=this['_getAPIPrefixPath']()+_0x349abd(0x435);await this[_0x349abd(0x313)]['patch'](_0x3168d8,{'body':_0x1029f5});}async[_0x57b986(0x309)](_0x3d97a8){const _0x1b310a=_0x57b986,_0x41c3be=this['_getAPIPrefixPath']()+_0x1b310a(0x435);await this['_HTTPService']['post'](_0x41c3be,{'body':_0x3d97a8});}async[_0x57b986(0x464)](_0x10b6b5){const _0x1155cd=_0x57b986,_0x7032f2=this[_0x1155cd(0x2eb)]()+_0x1155cd(0x435);return(await this[_0x1155cd(0x313)][_0x1155cd(0x408)](_0x7032f2,{'params':{'objectID':_0x10b6b5[_0x1155cd(0x4e6)],'unitID':_0x10b6b5[_0x1155cd(0x40f)]}}))[_0x1155cd(0x559)]['collaborators'];}async[_0x57b986(0x2ab)](_0x481753){const _0x5c2482=_0x57b986,_0x11f9e4=this[_0x5c2482(0x2eb)]()+'/collaborator';await this[_0x5c2482(0x313)][_0x5c2482(0x4c4)](_0x11f9e4,{'body':_0x481753});}},_0x3f3314[_0x57b986(0x25c)]=_0x454e7a([_0x545c98(0x0,_0x12925a[_0x57b986(0x42c)](_0xfde0ab['HTTPService'])),_0x545c98(0x1,_0x12925a[_0x57b986(0x42c)](_0x4cdaf4[_0x57b986(0x4f1)]))],_0x3f3314[_0x57b986(0x25c)]);var _0x2d3852=Object[_0x57b986(0x1f4)],_0x48648d=Object['getOwnPropertyDescriptor'],_0x24c877=(_0x582aa6,_0xb72dbb,_0x181862,_0x564827)=>{for(var _0x1c50ef=_0x564827>0x1?void 0x0:_0x564827?_0x48648d(_0xb72dbb,_0x181862):_0xb72dbb,_0x2cbc6a=_0x582aa6['length']-0x1,_0x195dcf;_0x2cbc6a>=0x0;_0x2cbc6a--)(_0x195dcf=_0x582aa6[_0x2cbc6a])&&(_0x1c50ef=(_0x564827?_0x195dcf(_0xb72dbb,_0x181862,_0x1c50ef):_0x195dcf(_0x1c50ef))||_0x1c50ef);return _0x564827&&_0x1c50ef&&_0x2d3852(_0xb72dbb,_0x181862,_0x1c50ef),_0x1c50ef;},_0x9b8e94=(_0x107cf9,_0x1f55da)=>(_0x4e09b9,_0x16076d)=>_0x1f55da(_0x4e09b9,_0x16076d,_0x107cf9);const _0x56ed7d=['image/png',_0x57b986(0x4d0),_0x57b986(0x507),_0x57b986(0x56d),_0x57b986(0x332)],_0x319ef5=0x5*0x400*0x400,_0x14d780='EXCHANGE_UPLOAD_FILE_SERVER_URL_KEY',_0x4b4ab1=_0x57b986(0x55c),_0x250f6f='EXCHANGE_SIGN_URL_SERVER_URL_KEY',_0x501632=_0x57b986(0x2f1);let _0x5888f2=class{constructor(_0x3a3d54,_0x43960d){const _0x8c0171=_0x57b986;_0x53d09f(this,_0x8c0171(0x1c5),0x0),_0x53d09f(this,_0x8c0171(0x274),new _0x4bb16b[(_0x8c0171(0x42d))]()),_0x53d09f(this,_0x8c0171(0x4e0),this[_0x8c0171(0x274)]),_0x53d09f(this,_0x8c0171(0x459),new Map()),(this[_0x8c0171(0x522)]=_0x3a3d54,this[_0x8c0171(0x323)]=_0x43960d);}['setWaitCount'](_0x2d3cf7){const _0x14d584=_0x57b986;this['_waitCount']=_0x2d3cf7,this[_0x14d584(0x274)][_0x14d584(0x1bd)](_0x2d3cf7);}[_0x57b986(0x240)](_0x261ad2,_0x51a5b5){const _0x369225=_0x57b986;if(_0x51a5b5===_0x46f32c[_0x369225(0x54b)][_0x369225(0x2be)]){const _0x2c5135=new Image();return _0x2c5135[_0x369225(0x231)]=_0x261ad2,_0x2c5135;}return this[_0x369225(0x459)][_0x369225(0x408)](_0x261ad2);}[_0x57b986(0x34d)](_0x4a18b1,_0x256537,_0x228247){const _0x274b56=_0x57b986;_0x256537===_0x46f32c[_0x274b56(0x54b)]['BASE64']||_0x228247==null||this[_0x274b56(0x459)][_0x274b56(0x2c3)](_0x4a18b1,_0x228247);}async[_0x57b986(0x1bc)](_0x1d1554){const _0x4b1c11=_0x57b986;try{const _0x203778=this[_0x4b1c11(0x573)](this[_0x4b1c11(0x354)](),''+_0x1d1554),_0x303ed9=(await this['_httpService'][_0x4b1c11(0x408)](_0x203778))[_0x4b1c11(0x559)];return _0x303ed9['error']&&_0x303ed9['error'][_0x4b1c11(0x35d)]===_0x383d49['OK']?Promise[_0x4b1c11(0x29c)](_0x303ed9[_0x4b1c11(0x30d)]):Promise['reject'](_0x303ed9[_0x4b1c11(0x4a4)]);}catch(_0x33c75e){return Promise[_0x4b1c11(0x2cf)](_0x33c75e);}}async[_0x57b986(0x2bd)](_0x2d32dd){const _0xec4dd8=_0x57b986;let _0x27da97='';if(!_0x56ed7d[_0xec4dd8(0x4c2)](_0x2d32dd[_0xec4dd8(0x239)]))return this[_0xec4dd8(0x54c)](),Promise['reject'](new Error(_0x46f32c[_0xec4dd8(0x3b3)]['ERROR_IMAGE_TYPE']));if(_0x2d32dd[_0xec4dd8(0x349)]>_0x319ef5)return this[_0xec4dd8(0x54c)](),Promise['reject'](new Error(_0x46f32c[_0xec4dd8(0x3b3)]['ERROR_EXCEED_SIZE']));try{const _0xa69463=new FormData();_0xa69463[_0xec4dd8(0x41f)](_0xec4dd8(0x574),_0x2d32dd);const _0x298ea4=this[_0xec4dd8(0x457)]()+_0xec4dd8(0x217)+_0x2d32dd[_0xec4dd8(0x349)][_0xec4dd8(0x3cb)](),_0x20a9bb=await(await fetch(_0x298ea4,{'method':_0xec4dd8(0x315),'body':_0xa69463}))[_0xec4dd8(0x4f7)]();if(typeof _0x20a9bb[_0xec4dd8(0x211)]!=_0xec4dd8(0x36c))return this[_0xec4dd8(0x54c)](),Promise[_0xec4dd8(0x2cf)](new Error(_0x46f32c['ImageUploadStatusType'][_0xec4dd8(0x205)]));_0x27da97=_0x20a9bb[_0xec4dd8(0x211)];}catch{return this[_0xec4dd8(0x54c)](),Promise['reject'](new Error(_0x46f32c[_0xec4dd8(0x3b3)][_0xec4dd8(0x205)]));}return new Promise((_0x2a72e9,_0x555cde)=>{const _0x5a8c0c=_0xec4dd8,_0x1a4152=new FileReader();_0x1a4152[_0x5a8c0c(0x436)](_0x2d32dd),_0x1a4152[_0x5a8c0c(0x2ee)]=_0x3d080d=>{const _0x365ee4=_0x5a8c0c;var _0x5d50a3;const _0x3548d7=(_0x5d50a3=_0x3d080d[_0x365ee4(0x3f2)])==null?void 0x0:_0x5d50a3['result'];if(_0x3548d7==null){this[_0x365ee4(0x54c)](),_0x555cde(new Error(_0x46f32c[_0x365ee4(0x3b3)][_0x365ee4(0x205)]));return;}const _0x24886a=_0x4cdaf4[_0x365ee4(0x2dc)][_0x365ee4(0x4a0)](0x6);_0x2a72e9({'imageId':_0x24886a,'imageSourceType':_0x46f32c[_0x365ee4(0x54b)]['UUID'],'source':_0x27da97,'base64Cache':_0x3548d7,'status':_0x46f32c[_0x365ee4(0x3b3)][_0x365ee4(0x3f1)]}),this['_decreaseWaiting']();};});}['_getUploadFileURL'](){const _0x28df65=_0x57b986;var _0x8874a8;return(_0x8874a8=this[_0x28df65(0x323)]['getConfig'](_0x14d780))!=null?_0x8874a8:_0x4b4ab1;}['_getSignURL'](){const _0x1e42f2=_0x57b986;var _0x599f13;return(_0x599f13=this[_0x1e42f2(0x323)]['getConfig'](_0x250f6f))!=null?_0x599f13:_0x501632;}[_0x57b986(0x573)](_0x292efb,_0x23fd8e){const _0x33bdab=_0x57b986;return _0x292efb[_0x33bdab(0x2ae)]('{fileID}',_0x23fd8e);}[_0x57b986(0x54c)](){const _0x141f60=_0x57b986;this[_0x141f60(0x1c5)]-=0x1,this[_0x141f60(0x274)]['next'](this[_0x141f60(0x1c5)]);}};_0x5888f2=_0x24c877([_0x9b8e94(0x0,_0x12925a[_0x57b986(0x42c)](_0xfde0ab[_0x57b986(0x280)])),_0x9b8e94(0x1,_0x4cdaf4['IConfigService'])],_0x5888f2);var _0x2f475c=Object[_0x57b986(0x1f4)],_0x40a9fd=Object['getOwnPropertyDescriptor'],_0x2a3497=(_0x33b58d,_0x3f8fc7,_0x3abb65)=>_0x3f8fc7 in _0x33b58d?_0x2f475c(_0x33b58d,_0x3f8fc7,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x3abb65}):_0x33b58d[_0x3f8fc7]=_0x3abb65,_0x531476=(_0x5928e2,_0xaa414,_0x2b1e95,_0x5639ca)=>{const _0x2bfaad=_0x57b986;for(var _0x72c47d=_0x5639ca>0x1?void 0x0:_0x5639ca?_0x40a9fd(_0xaa414,_0x2b1e95):_0xaa414,_0x1605ed=_0x5928e2[_0x2bfaad(0x397)]-0x1,_0x5711fc;_0x1605ed>=0x0;_0x1605ed--)(_0x5711fc=_0x5928e2[_0x1605ed])&&(_0x72c47d=(_0x5639ca?_0x5711fc(_0xaa414,_0x2b1e95,_0x72c47d):_0x5711fc(_0x72c47d))||_0x72c47d);return _0x5639ca&&_0x72c47d&&_0x2f475c(_0xaa414,_0x2b1e95,_0x72c47d),_0x72c47d;},_0x41924a=(_0x1f3202,_0x1730e3)=>(_0x38c54b,_0x347181)=>_0x1730e3(_0x38c54b,_0x347181,_0x1f3202),_0x4ccd34=(_0x1a5009,_0x22b259,_0x425023)=>_0x2a3497(_0x1a5009,_0x22b259+'',_0x425023);const _0x21a43a='UNIVER_COLLABORATION_CLIENT_PLUGIN';_0x3f3314['UniverCollaborationClientPlugin']=class extends _0x4cdaf4['Plugin']{constructor(_0x53eabd,_0x1e81df,_0x4011af){const _0x444e18=_0x57b986;super(),this[_0x444e18(0x2a9)]=_0x53eabd,this[_0x444e18(0x314)]=_0x1e81df,this['_injector']=_0x4011af;}['onStarting'](_0x4038a2){const _0x301509=_0x57b986;var _0x36a99f,_0xdd402a,_0x4e7ef5,_0x404e5e,_0x3e5cd1;_0x4038a2['has'](_0x4cdaf4[_0x301509(0x2f8)])&&this[_0x301509(0x314)][_0x301509(0x4a4)]('[UniverCollaborationClientPlugin]',_0x301509(0x2f2));let _0x521abc=[[_0x4cdaf4[_0x301509(0x2f8)],{'useClass':_0x4e679e}],[_0x3f3314[_0x301509(0x48c)]],[_0x2ba255],[_0xfde0ab[_0x301509(0x280)]],[_0x13d820,{'useClass':_0x32732a}],[_0x4495e7],[_0x3f3314[_0x301509(0x361)]],[_0xfde0ab[_0x301509(0x1d6)]],[_0x4e6a4d],[_0x38542b],[_0x29ca68],[_0x2f17dc],[_0x95f6c2],[_0x20ab21,{'useClass':(_0xdd402a=(_0x36a99f=this[_0x301509(0x2a9)])==null?void 0x0:_0x36a99f[_0x301509(0x35f)])!=null?_0xdd402a:_0x3f3314[_0x301509(0x4a5)]}],[_0xfde0ab[_0x301509(0x4e1)],{'useClass':_0xfde0ab[_0x301509(0x56e)]}],[_0x4cdaf4[_0x301509(0x3ea)],{'useClass':_0x80c624}],[_0x4cdaf4[_0x301509(0x4fa)],{'useClass':_0x3f3314[_0x301509(0x25c)]}],[_0x46f32c[_0x301509(0x1c9)],{'useClass':_0x5888f2}],[_0x3f3314['CollaborationController']],[_0x3f3314[_0x301509(0x393)]],[_0x3f3314[_0x301509(0x3e9)]],[_0x3d3abe],[_0xc3b139]];(_0x4e7ef5=this['_config'])!=null&&_0x4e7ef5['enableSingleActiveInstanceLock']&&_0x521abc['push']([_0x1c83f9,{'useClass':_0x1c79cd}]),((_0x404e5e=this[_0x301509(0x2a9)])==null?void 0x0:_0x404e5e[_0x301509(0x243)])==null||this[_0x301509(0x2a9)][_0x301509(0x243)][_0x301509(0x4c2)](_0x4cdaf4[_0x301509(0x514)][_0x301509(0x1ed)])?_0x521abc['push']([_0x662f12]):this['_config'][_0x301509(0x243)]['includes'](_0x4cdaf4[_0x301509(0x514)][_0x301509(0x510)])&&_0x521abc[_0x301509(0x2a8)]([_0x4879f6]),_0x521abc=_0x4cdaf4['mergeOverrideWithDependencies'](_0x521abc,(_0x3e5cd1=this[_0x301509(0x2a9)])==null?void 0x0:_0x3e5cd1[_0x301509(0x1cb)]),_0x521abc[_0x301509(0x2bc)](_0xac1bd2=>_0x4038a2[_0x301509(0x2b7)](_0xac1bd2)),_0x4038a2[_0x301509(0x408)](_0xfde0ab[_0x301509(0x280)])[_0x301509(0x357)]({'priority':0x14,'interceptor':_0xfde0ab['ThresholdInterceptorFactory']({'maxParallel':0x6})}),this[_0x301509(0x50f)]();}[_0x57b986(0x50f)](){const _0x169ce7=_0x57b986;var _0x4a471b,_0x3e4942;(_0x4a471b=this[_0x169ce7(0x2a9)])!=null&&_0x4a471b[_0x169ce7(0x22a)]||this[_0x169ce7(0x260)][_0x169ce7(0x408)](_0x3f3314[_0x169ce7(0x361)])[_0x169ce7(0x571)](),(_0x3e4942=this['_config'])!=null&&_0x3e4942[_0x169ce7(0x4a9)]&&this['_injector'][_0x169ce7(0x408)](_0x95f6c2);}},_0x4ccd34(_0x3f3314[_0x57b986(0x23f)],_0x57b986(0x56f),_0x21a43a),_0x3f3314[_0x57b986(0x23f)]=_0x531476([_0x4cdaf4[_0x57b986(0x513)](_0x329b63['UniverCollaborationPlugin']),_0x41924a(0x1,_0x4cdaf4[_0x57b986(0x41c)]),_0x41924a(0x2,_0x12925a[_0x57b986(0x42c)](_0x12925a['Injector']))],_0x3f3314['UniverCollaborationClientPlugin']),_0x3f3314[_0x57b986(0x44b)]=_0x113fb2,_0x3f3314[_0x57b986(0x23e)]=_0x3050c7,_0x3f3314[_0x57b986(0x29f)]=_0x28607c,_0x3f3314[_0x57b986(0x52b)]=_0x5185a4,_0x3f3314[_0x57b986(0x339)]=_0x3c74c6,_0x3f3314[_0x57b986(0x381)]=_0x1e7060,_0x3f3314[_0x57b986(0x3b8)]=_0x3287b4,_0x3f3314[_0x57b986(0x432)]=_0x20ab21,_0x3f3314[_0x57b986(0x34c)]=_0x13d820,_0x3f3314['LOCAL_CACHE_INTERVAL_KEY']=_0x1e2fa3,_0x3f3314['LOGIN_URL_KEY']=_0x23ca2e,_0x3f3314[_0x57b986(0x2e8)]=_0x20edc7,_0x3f3314[_0x57b986(0x4ba)]=_0x514f86,_0x3f3314[_0x57b986(0x2b2)]=_0x5cc7aa,_0x3f3314['SessionStatus']=_0x585a5c,_0x3f3314[_0x57b986(0x403)]=_0x32732a,_0x3f3314[_0x57b986(0x32a)]=_0x4e7170,_0x3f3314[_0x57b986(0x1f7)]=_0x573082,Object[_0x57b986(0x1f4)](_0x3f3314,Symbol[_0x57b986(0x1dd)],{'value':_0x57b986(0x301)});}));function _0x23f5(){const _0xea93f5=['parseProtocolChangeset','data','_type','enableAuthServer','send','isTransformChangesetsSuccess','text','colorChannel1','_colorAssignService','runRefRangeMutations','none','[PendingState]:\x20received\x20acknowledgement.','_clearOtherTimers','InsertSheetMutation','1em','_pendingMutations','_scheduleSaving','/universer-api/snapshot','mapDocumentTypeToUniverType','collabCursorState$','SNAPSHOT_SERVER_URL_KEY','_heartbeatTimer','getColor','_createInitialStateImpl','column','findNodePositionByCharIndex','idSuffix','DeleteRangeMoveUpCommandId','includes','permissionRejEvent','put','HEARTBEAT_TIMEOUT','then','liveShareNewHost','transformSelections','awaitingChangeset','[CollaborationSessionService]:\x20socket\x20error','UniverSheetsUi','_removeClearOtherTimer','makeDirty','\x0aAfter:\x20','onPointerLeaveObserver','image/jpeg','getUniverSheetInstance','div','registerOnClose','APPLY_PERMISSION_DENIED','parse','addObjects','CollaborationSession','history','transformChangesets','routeKey','_queuedRemoteChangesets','originalMeta','exports','isTransformMutationFailure','UNAUTHENTICATED','change$','IHTTPImplementation','OnLifecycle','&to=','registerBeforeClose','workbook','objectID','MoveRangeCommandId','unit','use','getUnitType','onCommandExecuted','getRoom','@univerjs/rpc','bottom','collaboratorID','_getCurrentRevision','IConfigService','_tryEnsureSocket','handleInsertRow','isPermissionRej','find','Unknown\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','json','offline','saveSheetBlock','IAuthzIoService','_clearLocalCache','resend','IUIPartsService','color','_updateStatus','LICENSE_DISTRO_REJECTED','_textBubble','LocaleService','getOwnPropertySymbols','/object/','[FetchingMissState]:\x20not\x20expected\x20to\x20receive\x20ack\x20when\x20`this._awaitingChangeset`\x20is\x20null!','transformRemoteChangeset','image/jpg','_snapshotService','collabStatus.conflict','requireSession','_createSocket','_exhaustSavingTask','UniverDrawing','_transformUndoRedoStack','_initModules','UNIVER_DOC','session.collaboration-timeout','_onFetchMissResult','DependentOn','UniverInstanceType','unit-cache-','_saveCache','_sendHeartbeat','UNIVER_UNKNOWN','location','setTimeout','setCurrentUser','LIVESHARE_FETCH_OPERATIONS','_session','_roomMembers$','getConfig','onRemoteRej','UniverEngineRender','_httpService','RemoveRowCommandId','sequenceExecute','error$','mutations','flatMap','stringify','enableLocalCache','M3.61971\x2011.6499C2.40304\x2011.6499\x200.699707\x2011.1024\x200.699707\x208.9124C0.699707\x206.3574\x203.25471\x205.8099\x203.98471\x205.8099C4.34971\x204.5324\x205.07971\x202.5249\x207.99971\x202.5249C10.5547\x202.5249\x2011.6497\x203.9849\x2012.0147\x205.2624C12.0147\x205.2624\x2015.2997\x205.6274\x2015.2997\x208.7299C15.2997\x2010.9199\x2013.8397\x2011.6499\x2012.3797\x2011.6499M9.82471\x209.82466L6.17471\x2013.4747M6.17471\x209.82466L9.82471\x2013.4747','CollaborationStatus','CONNECTOR_DATA_TOO_LARGE','CHANGESET_REVISION_CONFILICT','_acknowledgedAwaitingChangeset','Injector','getCollabEntity','editingUnit','AWAITING','init','asObservable','cursorInfo$','setUndoRedoMutationParamsCache','memberID','appendMutation','_onCombEvent','off-line-single','_clearUndo','_themeService','/universer-api/oidc/authpage','lineTo','defIds','_transformSelections','_cachedData','close','message$','univer-offline','createInstance','_init','@wendellhu/redi/react-bindings','split','_colorIndex','hovered','ImageSourceType','_decreaseWaiting','_getSnapshotAPIPrefix','all','APPLY_REVISION_CONFILICT','permission.content','YUUMI_URL_COL_OUT_OF_RANGE','/fetchmissing?from=','getTypeOfUnitAdded$','/universer-api/comb','@univerjs/engine-formula','measureText','_removeRoom','eventID','body','startsWith','_sheetTransformSelectionsService','/universer-api/stream/file/upload','lodash','_unitStatus','setShapeProps','show','transformStack\x20failed!','react','entries','2149735rcqmEg','NOT_FOUND','6228828CkcYuH','conflict.content','ColorKit','csRejEvent','...','toDisposable','_onJoinRoomEvent','image/gif','XHRHTTPImplementation','pluginName','removeMember','disableLocalCache','_ws','_replaceFileID','file','LifecycleStages','trim','getCurrentRevForDocument','delay','UNIVER_SLIDE','OffLineSingle','#FFF','getUndoRedoMutationParamsCache','_anchor','collabStatus.fetchMiss','verdancy600','[DataLoaderController]','_name','unshift','_remoteChangesetQueue','getImage','next','updatePermissionPoint','from','0\x200\x2017\x2016','ONLINE','not_collab','className','onPointerMoveObserver','_waitCount','SYNCED','_socketService','InsertRowCommandId','IImageIoService','setItem','override','@univerjs/design','onMissedChangesetFetched','_waitForHeartbeatResponse','_cursorInfo$','amd','_collaborationController','VIEWPORT_KEY','_memberService','concatMap','loadOfflineData','WebSocketService','height','displayName','getSheetObject','[CollaborationUndoRedoService]','HEARTBEAT_INTERVAL','[SyncedState]:\x20invalid\x20calling\x20to\x20`resend`.','toStringTag','CONFLICT','Rectangle','onlineStatusTitle','getRangePointData','_onMessage','close$','getViewport','React','_urlService','onMissingChangesets','_snapshotServerService','off-line-single_clip0_910_343','COMPRESS_MUTATION_APPLY','LICENSE_MAX_UNITS_EXCEEDED','setAlpha','UNIVER_SHEET','fetching\x20the\x20latest\x20document\x20from\x20the\x20server.','_clearTimeoutTimer','USERS_LEAVE','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','/resources','handleIRemoveRow','defineProperty','interceptor','list','serializeCombRequest','combineLatest','socket\x20open.','debug','b64DecodeUnicode','awaiting','serializeRangeWithSheet','sheetID','LocalUndoRedoService','restore','rxjs/operators','_cursor','_retryCount','RETRY_CONNECTING_INTERVAL','ERROR_IMAGE','searchParams','infoRsp','collaboration-client.offline-data-not-saved','COLORS','_lockTransition','getScrollXYByRelativeCoords','pushState','pauseCollaboration','NOT_COLLAB','_transitionLocked','createSocket','FileId','_beforeCloseService','_uiPartsService','clsx','_createHandler','YUUMI_UNABLE_LOAD_URL','?size=','fill','LIVESHARE_OPERATION','926062pYuBqA','conflict.title','fetchThroughInterceptors','remove','update','executeCommand','IContextService','onRemoteChangeset','_clearScheduledTask','getAncestorScale','xlink:href','JSONX','_startSheetCollabCursor','getCurrentUser','fromEvent','/block/','enableOfflineEditing','onRemoteAck','_undoStacks','row','m2Prime','SelectionManagerService','state$','src','extend','unknown','fetch_missing','@wendellhu/redi','JOINING','_onRecvEvent','Shape','type','univer-pro.collaboration-client-socket-service','onSyncEditingCollabCursor','TOO_MANY_REQUESTS','distinctUntilChanged','COLLAB_SUBMIT_CHANGESET_URL_KEY','UniverCollaborationClientPlugin','getImageSourceCache','_getAPIPrefix','onTransformRemoteChangesetByIMECache','collaborationUniverTypes','_onConflict','FromArray','defs','_localeService','_collabCursorState$','createIdentifier','_initStatusListener','fillRule','event$','RECV','InsertRangeMoveDownCommandId','[CollaborationEntity]:\x20cannot\x20apply\x20missing\x20results\x20on\x20other\x20states!','disposeWithMe','href','filter','[PendingState]:\x20unhandled\x20univer\x20type:\x20','UniverCollaborationClient','editing\x20status\x20changed\x20to','_shapes','setParam','substring','_event$','rxjs','cursorInfo','AuthzIoHttpService','[CollaborationSession]:\x20should\x20not\x20send\x20message\x20when\x20the\x20session\x20is\x20offline!','RichTextEditingMutation','black','_injector','HELLO','/universer-api/snapshot/','createElement','c1Prime','fillText','addObject','isTransformMutationsWithChangesetFailure','round','handleInsertRangeMoveDown','reverse','_hideTimer','textEncoder','_transformService','_timeoutTimer','OFFLINE','transformIMECache','PERMISSION_REJ','31716460omnWlZ','DocSkeletonManagerService','_change$','_docTransformIMECacheService','isTransformMutationsWithChangesetSuccess','/object','_transformStack','icon','/unit/','m1Prime','12hbTKOH','FAIL','IMessageService','max','HTTPService','@univerjs/sheets','_docTransformSelectionsService','connection\x20error','@univerjs/docs','_onRemoteChangeset','saveChangeset','getCollabCursors$','OTHER_CLIENTS_EDITING','getActiveRange','clearInterval','Workbook','getInterceptPoints','This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!','IUniverInstanceService','COMPRESS_MUTATION_SEND','hasOwnProperty','_executeRemoteChangeset','SheetSkeletonManagerService','_docSyncEditingCollabCursorService','TextSelectionManagerService','subUnitId','@univerjs-pro/collaboration','onlineStatusIcon','parseChangesetToProtocol','sheetId','actions','LEAVE','resolve','getTypeOfUnitDisposed$','subscribe','COLLAB_WEB_SOCKET_URL_KEY','ITransformService','mapTo','UniverNetwork','unitId','[OfflineState]:\x20received\x20changeset.','univer-online','UniverIcon','NO_OTHER_CLIENTS_EDITING','push','_config','status','putCollaborators','_id','clipPath','replace','MessageType','_syncEditingCollabCursor','sessionStatus','SNAPSHOT_URL_KEY','SEND_CHANGESET_TIMEOUT','blue400','[CollaborationState]:\x20apply\x20error!','Starting','add','_hovered','_toggleOnline','symbol','Warning','forEach','saveImage','BASE64','_state','values','startColumn','lodash/debounce','set','labelPosition','getSheetId','isEditing','roomMembers','_isPermissionRej','UPDATE_CURSOR','_localCacheService','deepClone','_rescheduleHeartbeatEvent','univer-pro.collaboration-client.single-active-unit-service','changesets','reject','_checkMissing','[SyncedState]:\x20received\x20rejection.','map','LOCAL_CACHE_INTERVAL','_onConnectionOpen','isArray','_unitOnClients','getParam','[FetchMissState]','_replayCachedMutations','Ready','[CollaborationController]:\x20invalid\x20univer\x20type:\x20','Tools','url(#off-line-single_clip0_910_343)','collabStatus.syncing','getCollabEntity$','JOIN','shareReplay','takeUntil','dispose$','_transformRemoteChangesetByIMECache','joinEvent','cmd','UNKNOWN_CMD','SEND_CHANGESET_TIMEOUT_KEY','BehaviorSubject','_removeCollabCursors','_getAPIPrefixPath','getDocObject','_drawRange','onload','objects','_sendHeartbeatTimer','/universer-api/file/{fileID}/sign-url','you\x20should\x20override\x20\x22IUndoRedoService\x22\x20provided\x20in\x20\x22core\x22\x20package!','[CollaborationSocketService]:\x20failed\x20to\x20create\x20socket!','InsertRangeMoveRightCommandId','_disableEditing','range','PENDING','IUndoRedoService','_userManagerService','connectInjector','[CollaborationEntity]','_messageService','currentTheme$','NodePositionConvertToCursor','_docStateChangeManagerService','socket\x20close','Module','SNAPSHOT_INVALID_SNAPSHOT','UNKNOWN_CODE','M0\x200H16V16H0z','fetchMissingChangesets','purple300','_submitChangeset','title','createCollaborator','UserManagerService','univer-online-status','[CollaborationSession]','url','_docSkeletonManagerService','AWAITING_WITH_PENDING','Disposable','_joinRoom','_socketReady','_HTTPService','_logService','POST','CommandType','encode','_localStorageService','_updateCollabCursors','_updateState','0\x200\x2016\x2016','_scheduleHeartbeat','_ensureSubject','onTransformSelections','_collabSessionService','_scheduleCollaborationTimeoutTimer','[PendingState]:\x20invalid\x20calling\x20to\x20`resend`.','triggerDblclick','_configService','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','MSG_FOR_ERROR','_scheduleClearOtherTimer','objectType','_assignedColors','Cannot\x20assemble\x20a\x20changeset\x20from\x20multiple\x20mutations\x20of\x20different\x20types:\x20','deserializeToCombResponse','onMouseMove','jiqing500','@univerjs/network','_sendingTimer','SetWorksheetActivateCommand','ranges','assignAColorForMemberID','image/bmp','ILocalStorageService','pipe','_onLocalMutation','arc','UniverDocs','_range','CollaborationStatusDisplay','CollaborationController','IDLE','snapshot','currentColor','_docSkeleton','_refRangeService','UNRECOGNIZED','_toggleOffline','transformMutationsWithChangeset','IRemoteInstanceService','_getSaveTimeout','NEW_CHANGESETS','[CollaborationController]:\x20remote\x20changeset\x20applied\x20error.','transformMutation','leaveEvent','size','Vector2','session.connection-failed','IURLService','addImageSourceCache','toRgbString','encodeURIComponent','startRow','INGEST','_awaitingChangeset','setActiveRange','_getSignURL','FETCH_MISSING','_substituteUndoStack','registerHTTPInterceptor','updateCollaborator','hide','_getSheetObject','_singleActiveUnitService','INotificationService','code','getUnitStatus$','socketService','EffectRefRangId','LocalCacheService','evenodd','_getSendChangesetTimeout','userID','SNAPSHOT_HAS_BEEN_REMOVED','_undoRedoService','doc.mutation.rich-text-editing','UNDEFINED','storage','baseRev','_labelPosition','string','_getScale','members','HEARTBEAT','batchAllowed','_getUndoStack','?url=','WorkbookEditablePermission','_syncEditingCollabCursorService','submit\x20changeset\x20error!','LIVESHARE_REQUEST_HOST','_revisionService','_getRedoStack','LICENSE_IMPORT_SIZE_EXCEEDED','updateOfflineData','status$','LIVESHARE_TERMINATE','_setupBeforeClosingHandler','_clearCollaborationTimeoutTimer','_handleHeartbeatEvent','_onRemoteRejected','HEARTBEAT_INTERVAL_KEY','Rect','catch','contains','RemoveColCommandId','_entityInit$','onlyLocal','drawWith','_entities','_updateLocalCursor','COLLAB_WEB_SOCKET_URL','SetTextSelectionsOperation','getMergeData','_http','failed\x20to\x20apply\x20missed\x20changesets!','SnapshotService','delete','DisposableCollection','DataLoaderController','@univerjs/sheets-ui','getCurrentUnitForType','CHANGESET_ACK','length','[SyncedState]:\x20received\x20acknowledgement.','roomMembers$','transformUndoRedo','getOffsetConfig','\x20to\x20','1rDvNvv','replaceTextRanges','_sessionStatus$','RevisionService','\x0aCurrent:\x20','_showConflictNotification','_cursors','online','collab-text-anchor-','serializeTextRange','_permissionService','getCurrent','uni.network.url-service','_updateURLWithCurrentState','concat','getResourcesRequest','_handler','width','_incrementRevisionNumber','c2Prime','getSheetBlock','_anchorDot','ImageUploadStatusType','_clearHeartbeatTimer','SUBMIT_CHANGESET','_onCursorUpdate','svg','HEARTBEAT_TIMEOUT_KEY','_render','OnLineSingle','_handleJoinEvent','take','CompressMutationService','endColumn','_onUserJoin','_eventUnsubscribe','@univerjs/engine-render','Steady','_members','function','_sheetSkeletonManagerService','localeService','\x20in\x20_schedule.','_handleHover','_scheduleTimestamp','apply','toString','ACTIVE_UNIT_EVENT_CHANNEL','debounceTime','_handleLeaveEvent','liveShareOperation','IBeforeCloseService','[CollaborationSessionService]','state','LICENSE_EXPORT_SIZE_EXCEEDED','getUnitId','_setupSubUnitSync','font','reduce','_online','_univerInstanceService','rev','result','CollaborationEvent','roomInfos','IMEInputManagerService','_renderManagerService','[FetchingMissState]:\x20invalid\x20calling\x20to\x20`resend`.','@univerjs/ui','beginPath','onSendChangeset','prototype','612514aNpFhC','getActiveSheet','subunit','_getLoginPath','DesktopCollaborationStatusDisplayController','ISnapshotServerService','M4.5865\x2011.6499C3.36983\x2011.6499\x201.6665\x2011.1024\x201.6665\x208.9124C1.6665\x206.3574\x204.2215\x205.8099\x204.9515\x205.8099C5.3165\x204.5324\x206.0465\x202.5249\x208.9665\x202.5249C11.5215\x202.5249\x2012.6165\x203.9849\x2012.9815\x205.2624C12.9815\x205.2624\x2016.2665\x205.6274\x2016.2665\x208.7299C16.2665\x2010.9199\x2014.8065\x2011.6499\x2013.3465\x2011.6499M6.7767\x2011.6497L8.9667\x2013.4747L11.8867\x209.82466','Optional','_draw','3529899vacYyS','min','isActive','SUCCUSS','target','/-/object/list','_getMergeRange','univer-online-status-icon','VIEW_MAIN','updateMember','handleDeleteRangeMoveLeft','getItem','_substituteRedoStack','ThemeService','children','[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.','_socket$','selection','_compressMutationService','/rev/','_unitId','WebURLService','clearTimeout','getOwnPropertyDescriptor','transformByState','top','get','getSelections','with','collabStatus.synced','_selfUnitIDs','_onConnectionFailed','fetching\x20missing\x20changesets\x20from\x20','unitID','saveSnapshot','tag','UniverUi','IPermissionService','MUTATION','DocStateChangeManagerService','loadDoc','_sessions','PERMISSION_DENIED','@univerjs/drawing','@univerjs/core','save','ILogService','csAckEvent','currentSkeleton$','append','handleDeleteRangeMoveUp','DEFAULT_FILE_NAME','path','getCoordByCell','getValue','_fetchMissChangesets','_unlockTransition','_updateLocalCache','_collaborationPaused','CHANGESET_REJ','_applyRemoteChangeset','call','Inject','Subject','_transformIMECache','_exhaustRemoteChangesetQueue','PSEUDO_FETCH_MISSING_RESULT','_lastPointer','ICollaborationSocketService','_getCtorByUniverType','joinRsp','/collaborator','readAsDataURL','textRanges','collab-text-range-','COLLAB_SUBMIT_CHANGESET_URL','_loadDoc','[serializeCombRequest]:\x20should\x20not\x20fall\x20into\x20default\x20branch!','IRenderManagerService','_transformPreviousActiveRange','_retryConnectingTimer','APPLY_NON_SEQUENTIAL_REVISION','toggleOffline','_getAnchorBounding','Unknown\x20user','red300','updateCursorEvent','gold400','switchMap','whenReady','urlChange$','session.will-retry','useObservable','AUTHZ_URL_KEY','getRenderById','getFocusedUnit','Univer','getMember','TEXT_RANGE_LAYER_INDEX','_schedule','handleInsertCol','_socket','INVALID_ARGUMENT','params','_unitID','_getUploadFileURL','has','_imageSourceCache','slice','open$','_color','post','roles','getSheetBySheetId','_socketMessageSubscription','complete','COMPLETION_FINISHED','[ClientCollaborationController]:\x20invalid\x20state\x20transition!\x20State\x20transferred\x20from\x20is\x20not\x20the\x20current\x20state.\x0aBefore:\x20','listCollaborators','_createInitialState','APPLY_REJECT','SetSelectionsOperation','merge','session','getMemberID','clear','ICommandService','sessionStatus$','dispose','_startDocCollabCursor','_updateSubUnitFromURLParams','univer-online-status-title','indexOf','permission.title','_hover','_onRefRangeChange','_clearRedo','forwardRef','/allowed','_saveTaskMap','_loadSheet','FETCH_MISS','getTime','6941691HdrOaE','_onCursorDelete','LIVESHARE_NEW_HOST','USERS_ENTER','_handleEvent','fillStyle','attrs','#fff','_startCollaboration','_onUserLeave','collaboration.single-unit.warning','_status$','toggleOnline','onPointerEnterObserver','_drawAnchor','CollaborationSessionService','_collaborationTimeoutTimer','collaMsg','_commandService','collabStatus.notCollab','_scene','registerRefRange','_notificationService','create','_roomMembers','_disabled','activeSheet$','_state$','RxDisposable','revision','auth.needGotoLoginAlert','[OfflineState]:\x20received\x20rejection.','_collabCursorController','120FRcCQl','on-line-single_clip0_910_349','generateRandomId','_send','Error','name','error','CollaborationSocketService'];_0x23f5=function(){return _0xea93f5;};return _0x23f5();}