@univerjs-pro/collaboration-client 0.1.15 → 0.1.17

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 _0x50f8(_0x5a0214,_0x4ec5d6){const _0x15abea=_0x15ab();return _0x50f8=function(_0x50f8ae,_0x1857fd){_0x50f8ae=_0x50f8ae-0x158;let _0x352af0=_0x15abea[_0x50f8ae];return _0x352af0;},_0x50f8(_0x5a0214,_0x4ec5d6);}(function(_0x5f52d5,_0x1feff3){const _0x35e2fc=_0x50f8,_0x1460a5=_0x5f52d5();while(!![]){try{const _0x10cfb8=parseInt(_0x35e2fc(0x466))/0x1*(-parseInt(_0x35e2fc(0x314))/0x2)+-parseInt(_0x35e2fc(0x327))/0x3+-parseInt(_0x35e2fc(0x315))/0x4+-parseInt(_0x35e2fc(0x17e))/0x5+parseInt(_0x35e2fc(0x4ea))/0x6+parseInt(_0x35e2fc(0x191))/0x7+parseInt(_0x35e2fc(0x316))/0x8*(parseInt(_0x35e2fc(0x2f9))/0x9);if(_0x10cfb8===_0x1feff3)break;else _0x1460a5['push'](_0x1460a5['shift']());}catch(_0x7b8270){_0x1460a5['push'](_0x1460a5['shift']());}}}(_0x15ab,0x52627),function(_0xbc3d2f,_0xe5602b){const _0x237761=_0x50f8;typeof exports==_0x237761(0x1d8)&&typeof module<'u'?_0xe5602b(exports,require(_0x237761(0x3ad)),require(_0x237761(0x306)),require(_0x237761(0x1ad)),require(_0x237761(0x2ad)),require(_0x237761(0x351)),require('@wendellhu/redi'),require(_0x237761(0x15c)),require(_0x237761(0x45e)),require(_0x237761(0x205)),require(_0x237761(0x310)),require('@univerjs/drawing'),require(_0x237761(0x4cb)),require('lodash/debounce'),require('@univerjs/engine-render'),require(_0x237761(0x1b3)),require(_0x237761(0x4dc)),require(_0x237761(0x31c)),require('clsx'),require(_0x237761(0x1f3))):typeof define==_0x237761(0x3b8)&&define[_0x237761(0x181)]?define(['exports',_0x237761(0x3ad),_0x237761(0x306),_0x237761(0x1ad),_0x237761(0x2ad),_0x237761(0x351),'@wendellhu/redi','rxjs',_0x237761(0x45e),_0x237761(0x205),'@univerjs/network',_0x237761(0x252),_0x237761(0x4cb),_0x237761(0x3bb),_0x237761(0x4d4),'@univerjs/sheets-ui',_0x237761(0x4dc),'react',_0x237761(0x387),'@univerjs/rpc'],_0xe5602b):(_0xbc3d2f=typeof globalThis<'u'?globalThis:_0xbc3d2f||self,_0xe5602b(_0xbc3d2f['UniverCollaborationClient']={},_0xbc3d2f[_0x237761(0x4de)],_0xbc3d2f['UniverSheets'],_0xbc3d2f[_0x237761(0x2bd)],_0xbc3d2f[_0x237761(0x34b)],_0xbc3d2f[_0x237761(0x4d3)],_0xbc3d2f[_0x237761(0x1f6)],_0xbc3d2f[_0x237761(0x15c)],_0xbc3d2f['rxjs'][_0x237761(0x1c5)],_0xbc3d2f['UniverDocs'],_0xbc3d2f['UniverNetwork'],_0xbc3d2f[_0x237761(0x401)],_0xbc3d2f['UniverEngineFormula'],_0xbc3d2f['lodash']['debounce'],_0xbc3d2f['UniverEngineRender'],_0xbc3d2f[_0x237761(0x41b)],_0xbc3d2f[_0x237761(0x4dc)],_0xbc3d2f[_0x237761(0x4d2)],_0xbc3d2f[_0x237761(0x387)],_0xbc3d2f[_0x237761(0x356)]));}(this,function(_0x575351,_0x5019cf,_0x7f012d,_0x478174,_0x5138ef,_0x38ce1a,_0x245a54,_0x54735b,_0x33876a,_0x38fb70,_0x3e6592,_0x11f56d,_0x2440ec,_0x37d11b,_0x56ae03,_0x1bea61,_0x26fb9e,_0x7a0305,_0xb3640c,_0x2cd6ae){'use strict';const _0x46a43e=_0x50f8;var _0x84a086=Object['defineProperty'],_0x5c5bd3=(_0x5822f1,_0x1da75c,_0x159939)=>_0x1da75c in _0x5822f1?_0x84a086(_0x5822f1,_0x1da75c,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x159939}):_0x5822f1[_0x1da75c]=_0x159939,_0x3a44bb=(_0x34b7c0,_0x32edf0,_0x13eb2b)=>_0x5c5bd3(_0x34b7c0,typeof _0x32edf0!=_0x46a43e(0x2f4)?_0x32edf0+'':_0x32edf0,_0x13eb2b);const _0xb4801b=_0x46a43e(0x497),_0x47a400=_0x46a43e(0x25a),_0x25d6a7=_0x46a43e(0x487),_0xb347b=_0x46a43e(0x1d2),_0x48a35f=_0x46a43e(0x159),_0x1e3b06=_0x46a43e(0x1a1),_0x2528f8=_0x46a43e(0x459),_0x405e7e=_0x46a43e(0x4ee),_0x17e5f7=_0x46a43e(0x33f),_0x3d3c7a=_0x46a43e(0x23d),_0x4a1864=_0x46a43e(0x20a),_0x3b6bea=_0x46a43e(0x42b),_0x54f928=_0x46a43e(0x1ff),_0xb62ff0=_0x46a43e(0x1e3),_0x39ceb9='/universer-api/oidc/authpage';var _0x2fd8ee=(_0x4caced=>(_0x4caced[_0x4caced[_0x46a43e(0x42e)]=0x0]='UNDEFINED',_0x4caced[_0x4caced['OK']=0x1]='OK',_0x4caced[_0x4caced[_0x46a43e(0x3df)]=0x2]='INTERNAL_ERROR',_0x4caced[_0x4caced[_0x46a43e(0x28d)]=0x3]=_0x46a43e(0x28d),_0x4caced[_0x4caced[_0x46a43e(0x23b)]=0x4]='NOT_FOUND',_0x4caced[_0x4caced[_0x46a43e(0x2f8)]=0x5]=_0x46a43e(0x2f8),_0x4caced[_0x4caced[_0x46a43e(0x342)]=0x6]=_0x46a43e(0x342),_0x4caced[_0x4caced['INVALID_ARGUMENT']=0x7]=_0x46a43e(0x270),_0x4caced[_0x4caced['TOO_MANY_REQUESTS']=0x8]='TOO_MANY_REQUESTS',_0x4caced[_0x4caced[_0x46a43e(0x37f)]=0x9]='COMPLETION_FINISHED',_0x4caced[_0x4caced[_0x46a43e(0x2df)]=0x1389]=_0x46a43e(0x2df),_0x4caced[_0x4caced['SNAPSHOT_INVALID_SNAPSHOT']=0x1771]='SNAPSHOT_INVALID_SNAPSHOT',_0x4caced[_0x4caced[_0x46a43e(0x266)]=0x1772]=_0x46a43e(0x266),_0x4caced[_0x4caced[_0x46a43e(0x326)]=0x1b59]='APPLY_REJECT',_0x4caced[_0x4caced[_0x46a43e(0x29b)]=0x1b5a]=_0x46a43e(0x29b),_0x4caced[_0x4caced[_0x46a43e(0x3d2)]=0x1b5b]=_0x46a43e(0x3d2),_0x4caced[_0x4caced[_0x46a43e(0x1e1)]=0x1b5c]=_0x46a43e(0x1e1),_0x4caced[_0x4caced[_0x46a43e(0x4d1)]=0x1f41]=_0x46a43e(0x4d1),_0x4caced[_0x4caced[_0x46a43e(0x307)]=0x2329]=_0x46a43e(0x307),_0x4caced[_0x4caced[_0x46a43e(0x4a8)]=0x232a]='LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED',_0x4caced[_0x4caced['LICENSE_IMPORT_SIZE_EXCEEDED']=0x232b]='LICENSE_IMPORT_SIZE_EXCEEDED',_0x4caced[_0x4caced[_0x46a43e(0x16f)]=0x232c]=_0x46a43e(0x16f),_0x4caced[_0x4caced[_0x46a43e(0x361)]=0x232d]='LICENSE_DISTRO_REJECTED',_0x4caced[_0x4caced[_0x46a43e(0x398)]=0x2711]='YUUMI_UNABLE_LOAD_URL',_0x4caced[_0x4caced[_0x46a43e(0x3cb)]=0x2712]=_0x46a43e(0x3cb),_0x4caced[_0x4caced[_0x46a43e(0x507)]=-0x1]=_0x46a43e(0x507),_0x4caced))(_0x2fd8ee||{}),_0x4418d5=(_0x1900b2=>(_0x1900b2[_0x1900b2['UNIVER_UNKNOWN']=0x0]=_0x46a43e(0x46e),_0x1900b2[_0x1900b2[_0x46a43e(0x27d)]=0x1]=_0x46a43e(0x27d),_0x1900b2[_0x1900b2[_0x46a43e(0x258)]=0x2]='UNIVER_SHEET',_0x1900b2[_0x1900b2['UNIVER_SLIDE']=0x3]=_0x46a43e(0x33e),_0x1900b2[_0x1900b2['UNRECOGNIZED']=-0x1]='UNRECOGNIZED',_0x1900b2))(_0x4418d5||{}),_0x2bf8f2=(_0x47c72e=>(_0x47c72e[_0x47c72e[_0x46a43e(0x441)]=0x0]=_0x46a43e(0x441),_0x47c72e[_0x47c72e[_0x46a43e(0x30e)]=0x1]=_0x46a43e(0x30e),_0x47c72e[_0x47c72e[_0x46a43e(0x188)]=0x2]=_0x46a43e(0x188),_0x47c72e[_0x47c72e['LEAVE']=0x3]='LEAVE',_0x47c72e[_0x47c72e[_0x46a43e(0x179)]=0x4]=_0x46a43e(0x179),_0x47c72e[_0x47c72e['HEARTBEAT']=0x5]='HEARTBEAT',_0x47c72e[_0x47c72e[_0x46a43e(0x453)]=0x6]=_0x46a43e(0x453),_0x47c72e[_0x47c72e[_0x46a43e(0x507)]=-0x1]='UNRECOGNIZED',_0x47c72e))(_0x2bf8f2||{}),_0x235f27=(_0xd1561e=>(_0xd1561e[_0xd1561e[_0x46a43e(0x3c5)]=0x0]=_0x46a43e(0x3c5),_0xd1561e[_0xd1561e['OK']=0x1]='OK',_0xd1561e[_0xd1561e[_0x46a43e(0x3ee)]=0x2]='FAIL',_0xd1561e[_0xd1561e[_0x46a43e(0x507)]=-0x1]=_0x46a43e(0x507),_0xd1561e))(_0x235f27||{}),_0x516fdb=Object[_0x46a43e(0x1c7)],_0xd65c03=Object[_0x46a43e(0x1e9)],_0xbe61d0=(_0x37af6b,_0xafc489,_0xac7793,_0x185101)=>{const _0x36a0ca=_0x46a43e;for(var _0x16bb78=_0x185101>0x1?void 0x0:_0x185101?_0xd65c03(_0xafc489,_0xac7793):_0xafc489,_0x5ad381=_0x37af6b[_0x36a0ca(0x1bb)]-0x1,_0xf99224;_0x5ad381>=0x0;_0x5ad381--)(_0xf99224=_0x37af6b[_0x5ad381])&&(_0x16bb78=(_0x185101?_0xf99224(_0xafc489,_0xac7793,_0x16bb78):_0xf99224(_0x16bb78))||_0x16bb78);return _0x185101&&_0x16bb78&&_0x516fdb(_0xafc489,_0xac7793,_0x16bb78),_0x16bb78;},_0x4a335c=(_0x42f0a3,_0x11095d)=>(_0x4d954d,_0x54dc12)=>_0x11095d(_0x4d954d,_0x54dc12,_0x42f0a3);let _0x4a6424=class extends _0x5019cf['Disposable']{constructor(_0x5a7b8a,_0x297c96){const _0x358d44=_0x46a43e;super(),_0x3a44bb(this,_0x358d44(0x362),new Map()),(this['_univerInstanceService']=_0x5a7b8a,this['_userManagerService']=_0x297c96,this[_0x358d44(0x3e8)](_0x5019cf[_0x358d44(0x35e)](_0x54735b[_0x358d44(0x3e1)](this[_0x358d44(0x397)][_0x358d44(0x371)](_0x5019cf[_0x358d44(0x28c)][_0x358d44(0x258)])[_0x358d44(0x4b0)](_0x33876a[_0x358d44(0x473)](_0x170250=>_0x170250[_0x358d44(0x2c6)]())),this['_univerInstanceService'][_0x358d44(0x371)](_0x5019cf[_0x358d44(0x28c)][_0x358d44(0x27d)])[_0x358d44(0x4b0)](_0x33876a[_0x358d44(0x473)](_0x3120a8=>_0x3120a8[_0x358d44(0x2c6)]())),this[_0x358d44(0x397)][_0x358d44(0x371)](_0x5019cf['UniverInstanceType']['UNIVER_SLIDE'])[_0x358d44(0x4b0)](_0x33876a[_0x358d44(0x473)](_0xa6d947=>_0xa6d947[_0x358d44(0x2c6)]())))[_0x358d44(0x324)](_0x25334b=>this[_0x358d44(0x1eb)](_0x25334b)))));}[_0x46a43e(0x16c)](_0x29a303){const _0x4f5cab=_0x46a43e;this['_userManagerService'][_0x4f5cab(0x16c)](_0x29a303);}[_0x46a43e(0x373)](){const _0x2dc9cf=_0x46a43e;return this[_0x2dc9cf(0x4a9)][_0x2dc9cf(0x373)]();}['updateMember'](_0x5fe684,_0x4acf9d){const _0x44e69e=_0x46a43e;let _0x1852c8=this['_roomMembers'][_0x44e69e(0x2db)](_0x5fe684);_0x1852c8||(_0x1852c8=new _0x18b0e4(),this['_roomMembers']['set'](_0x5fe684,_0x1852c8)),_0x1852c8[_0x44e69e(0x2f7)](_0x4acf9d);}[_0x46a43e(0x29e)](_0x2fffc3,_0x502b04){const _0x4da7d6=_0x46a43e,_0x35c6d8=this['_roomMembers'][_0x4da7d6(0x2db)](_0x2fffc3);_0x35c6d8&&_0x35c6d8[_0x4da7d6(0x29e)](_0x502b04);}[_0x46a43e(0x17c)](_0x13352e){const _0x508c6d=_0x46a43e;return this[_0x508c6d(0x362)][_0x508c6d(0x2db)](_0x13352e);}[_0x46a43e(0x4b9)](_0x442868,_0x1e56c2){const _0x3cabc6=_0x46a43e,_0xffec29=this[_0x3cabc6(0x362)][_0x3cabc6(0x2db)](_0x442868);if(_0xffec29)return _0xffec29[_0x3cabc6(0x4b9)](_0x1e56c2);}[_0x46a43e(0x1eb)](_0x5e52aa){const _0x68c86f=_0x46a43e,_0x491af1=this[_0x68c86f(0x362)][_0x68c86f(0x2db)](_0x5e52aa);_0x491af1&&(_0x491af1[_0x68c86f(0x173)](),this['_roomMembers'][_0x68c86f(0x352)](_0x5e52aa));}['dispose'](){const _0x540453=_0x46a43e;this['_roomMembers'][_0x540453(0x39a)](_0x5c98a6=>_0x5c98a6['dispose']()),this[_0x540453(0x362)][_0x540453(0x4f4)]();}};_0x4a6424=_0xbe61d0([_0x4a335c(0x0,_0x5019cf['IUniverInstanceService']),_0x4a335c(0x1,_0x245a54['Inject'](_0x5019cf[_0x46a43e(0x3e2)]))],_0x4a6424);class _0x18b0e4 extends _0x5019cf[_0x46a43e(0x32a)]{constructor(){const _0x1eb116=_0x46a43e;super(...arguments),_0x3a44bb(this,_0x1eb116(0x1fe),new Map());}['dispose'](){const _0x257f85=_0x46a43e;this[_0x257f85(0x1fe)]['clear']();}[_0x46a43e(0x2f7)](_0x4e301b){const _0x47953d=_0x46a43e;this[_0x47953d(0x1fe)][_0x47953d(0x3f3)](_0x4e301b[_0x47953d(0x257)],_0x4e301b);}[_0x46a43e(0x29e)](_0x34a7e2){const _0x17571c=_0x46a43e;this[_0x17571c(0x1fe)][_0x17571c(0x352)](_0x34a7e2);}['getMember'](_0x2ef0ca){const _0x3fe52c=_0x46a43e;return this[_0x3fe52c(0x1fe)][_0x3fe52c(0x2db)](_0x2ef0ca);}}function _0x50f340(_0x5cecad){const _0x403a14=_0x46a43e;var _0x513606,_0x29b8d4,_0x2c3bc1,_0x17848b;const _0x16ae3e=_0x5cecad[_0x403a14(0x23f)],_0x18acff=JSON[_0x403a14(0x458)](_0x16ae3e);switch(_0x18acff['cmd']){case _0x2bf8f2['HEARTBEAT']:case _0x2bf8f2[_0x403a14(0x30e)]:{const _0x215ab2=_0x18acff['infoRsp'];return{..._0x18acff,'data':_0x215ab2,'cmd':_0x18acff[_0x403a14(0x1ab)]};}case _0x2bf8f2[_0x403a14(0x188)]:{const _0x3e1520=_0x18acff[_0x403a14(0x2ca)];return{..._0x18acff,'data':_0x3e1520,'cmd':_0x18acff[_0x403a14(0x1ab)]};}case _0x2bf8f2[_0x403a14(0x453)]:{const _0x38bf5b=_0x18acff[_0x403a14(0x21d)];switch(_0x38bf5b[_0x403a14(0x24d)]){case _0x38ce1a[_0x403a14(0x4cc)]['PERMISSION_REJ']:return{..._0x18acff,'data':{..._0x38bf5b,'data':(_0x513606=_0x38bf5b[_0x403a14(0x4ce)])==null?void 0x0:_0x513606['cs']},'cmd':_0x18acff['cmd']};case _0x38ce1a[_0x403a14(0x4cc)][_0x403a14(0x4b7)]:return{..._0x18acff,'data':{..._0x38bf5b,'data':(_0x29b8d4=_0x38bf5b[_0x403a14(0x223)])==null?void 0x0:_0x29b8d4['cs']},'cmd':_0x18acff['cmd']};case _0x38ce1a[_0x403a14(0x4cc)][_0x403a14(0x38d)]:return{..._0x18acff,'data':{..._0x38bf5b,'data':(_0x2c3bc1=_0x38bf5b['newCsEvent'])==null?void 0x0:_0x2c3bc1['cs']},'cmd':_0x18acff['cmd']};case _0x38ce1a[_0x403a14(0x4cc)][_0x403a14(0x2f2)]:return{..._0x18acff,'data':{..._0x38bf5b,'data':(_0x17848b=_0x38bf5b[_0x403a14(0x1ec)])==null?void 0x0:_0x17848b['cs']},'cmd':_0x18acff['cmd']};case _0x38ce1a[_0x403a14(0x4cc)]['UPDATE_CURSOR']:return{..._0x18acff,'data':{..._0x38bf5b,'data':_0x38bf5b[_0x403a14(0x160)]},'cmd':_0x18acff[_0x403a14(0x1ab)]};case _0x38ce1a[_0x403a14(0x4cc)][_0x403a14(0x35a)]:return{..._0x18acff,'data':{..._0x38bf5b,'data':_0x38bf5b[_0x403a14(0x457)]},'cmd':_0x18acff[_0x403a14(0x1ab)]};case _0x38ce1a[_0x403a14(0x4cc)][_0x403a14(0x414)]:return{..._0x18acff,'data':{..._0x38bf5b,'data':_0x38bf5b['leaveEvent']},'cmd':_0x18acff['cmd']};case _0x38ce1a[_0x403a14(0x4cc)][_0x403a14(0x44f)]:return{..._0x18acff,'data':{..._0x38bf5b,'data':_0x38bf5b[_0x403a14(0x312)]},'cmd':_0x18acff[_0x403a14(0x1ab)]};case _0x38ce1a[_0x403a14(0x4cc)]['LIVESHARE_FETCH_OPERATIONS']:case _0x38ce1a['CollaborationEvent'][_0x403a14(0x364)]:return{..._0x18acff,'data':{..._0x38bf5b,'data':_0x38bf5b[_0x403a14(0x311)]},'cmd':_0x18acff['cmd']};case _0x38ce1a[_0x403a14(0x4cc)]['LIVESHARE_TERMINATE']:return{..._0x18acff,'data':{..._0x38bf5b,'data':_0x38bf5b['liveShareNewHost']},'cmd':_0x18acff[_0x403a14(0x1ab)]};case _0x38ce1a[_0x403a14(0x4cc)][_0x403a14(0x470)]:return{..._0x18acff,'data':_0x38bf5b,'cmd':_0x18acff['cmd']};default:return _0x18acff;}}default:return _0x18acff;}}function _0x171c24(_0x4cd27f){const _0x3777f7=_0x46a43e;switch(_0x4cd27f[_0x3777f7(0x1ab)]){case _0x2bf8f2[_0x3777f7(0x2eb)]:case _0x2bf8f2[_0x3777f7(0x30e)]:return JSON['stringify']({'cmd':_0x4cd27f[_0x3777f7(0x1ab)],'routeKey':_0x4cd27f[_0x3777f7(0x1c4)]});case _0x2bf8f2['INGEST']:{let _0x2d9e8f;switch(_0x4cd27f[_0x3777f7(0x23f)][_0x3777f7(0x24d)]){case _0x38ce1a[_0x3777f7(0x4cc)][_0x3777f7(0x403)]:{_0x2d9e8f={'eventID':_0x38ce1a[_0x3777f7(0x4cc)]['UPDATE_CURSOR'],'updateCursorEvent':_0x4cd27f[_0x3777f7(0x23f)][_0x3777f7(0x23f)]};break;}case _0x38ce1a[_0x3777f7(0x4cc)][_0x3777f7(0x414)]:{_0x2d9e8f={'eventID':_0x38ce1a['CollaborationEvent']['USERS_LEAVE'],'leaveEvent':_0x4cd27f[_0x3777f7(0x23f)]['data']};break;}case _0x38ce1a[_0x3777f7(0x4cc)][_0x3777f7(0x35a)]:{_0x2d9e8f={'eventID':_0x38ce1a[_0x3777f7(0x4cc)][_0x3777f7(0x35a)],'joinEvent':_0x4cd27f[_0x3777f7(0x23f)][_0x3777f7(0x23f)]};break;}case _0x38ce1a[_0x3777f7(0x4cc)][_0x3777f7(0x44f)]:{_0x2d9e8f={'eventID':_0x38ce1a['CollaborationEvent']['LIVESHARE_NEW_HOST'],'liveShareNewHost':_0x4cd27f[_0x3777f7(0x23f)]['data']};break;}case _0x38ce1a['CollaborationEvent'][_0x3777f7(0x364)]:{_0x2d9e8f={'eventID':_0x38ce1a['CollaborationEvent'][_0x3777f7(0x364)],'liveShareOperation':_0x4cd27f[_0x3777f7(0x23f)][_0x3777f7(0x23f)]};break;}case _0x38ce1a[_0x3777f7(0x4cc)][_0x3777f7(0x33b)]:{_0x2d9e8f={'eventID':_0x38ce1a[_0x3777f7(0x4cc)][_0x3777f7(0x33b)],'liveShareTerminate':_0x4cd27f[_0x3777f7(0x23f)]['data']};break;}case _0x38ce1a['CollaborationEvent'][_0x3777f7(0x2ef)]:{_0x2d9e8f={'eventID':_0x38ce1a[_0x3777f7(0x4cc)][_0x3777f7(0x2ef)],'liveShareRequestHost':_0x4cd27f['data'][_0x3777f7(0x23f)]};break;}case _0x38ce1a[_0x3777f7(0x4cc)][_0x3777f7(0x347)]:{_0x2d9e8f={'eventID':_0x38ce1a['CollaborationEvent']['LIVESHARE_FETCH_OPERATIONS']};break;}default:_0x2d9e8f={'eventID':_0x4cd27f[_0x3777f7(0x23f)][_0x3777f7(0x24d)]};}return JSON[_0x3777f7(0x485)]({'cmd':_0x4cd27f[_0x3777f7(0x1ab)],'routeKey':_0x4cd27f['routeKey'],'collaMsg':_0x2d9e8f});}case _0x2bf8f2[_0x3777f7(0x188)]:return JSON['stringify']({'cmd':_0x4cd27f['cmd'],'routeKey':_0x4cd27f[_0x3777f7(0x1c4)],'joinReq':_0x4cd27f[_0x3777f7(0x23f)]});case _0x2bf8f2[_0x3777f7(0x3ed)]:return JSON[_0x3777f7(0x485)]({'cmd':_0x4cd27f[_0x3777f7(0x1ab)],'routeKey':_0x4cd27f['routeKey'],'leaveReq':_0x4cd27f['data']});default:throw new Error(_0x3777f7(0x211));}}var _0x380a41=Object[_0x46a43e(0x1c7)],_0x4af88a=Object[_0x46a43e(0x1e9)],_0x58008a=(_0x34a331,_0x309072,_0x55613e,_0x46fc2f)=>{for(var _0x4174b8=_0x46fc2f>0x1?void 0x0:_0x46fc2f?_0x4af88a(_0x309072,_0x55613e):_0x309072,_0x362f8d=_0x34a331['length']-0x1,_0x5ddeed;_0x362f8d>=0x0;_0x362f8d--)(_0x5ddeed=_0x34a331[_0x362f8d])&&(_0x4174b8=(_0x46fc2f?_0x5ddeed(_0x309072,_0x55613e,_0x4174b8):_0x5ddeed(_0x4174b8))||_0x4174b8);return _0x46fc2f&&_0x4174b8&&_0x380a41(_0x309072,_0x55613e,_0x4174b8),_0x4174b8;},_0x5437d8=(_0x22043a,_0xff4eaa)=>(_0x1c0ed2,_0x336052)=>_0xff4eaa(_0x1c0ed2,_0x336052,_0x22043a);const _0x2bdb70=_0x245a54[_0x46a43e(0x46a)]('univer-pro.collaboration-client-socket-service');function _0x411259(_0x302b00,_0x2a4b6c,_0x2d6144){const _0x53f69b=_0x46a43e;return _0x302b00+'/'+_0x2a4b6c+_0x53f69b(0x1c9)+_0x2d6144+'/new_changes';}_0x575351[_0x46a43e(0x1b9)]=class{constructor(_0x54e54c,_0x55b819,_0x54de1f,_0x1de48a,_0x44bbe0){const _0x525287=_0x46a43e;this[_0x525287(0x344)]=_0x54e54c,this[_0x525287(0x287)]=_0x55b819,this['_configService']=_0x54de1f,this[_0x525287(0x433)]=_0x1de48a,this['_snapshotServerService']=_0x44bbe0;}[_0x46a43e(0x323)](_0x28cc7){const _0xc8f1e9=_0x46a43e,_0x3fd591=this[_0xc8f1e9(0x287)]['createSocket'](_0x28cc7);if(!_0x3fd591)throw new Error('[CollaborationSocketService]:\x20failed\x20to\x20create\x20socket!');const _0x434a28=new _0x5019cf[(_0xc8f1e9(0x446))](),_0x453665=new _0x54735b[(_0xc8f1e9(0x238))]();_0x434a28[_0xc8f1e9(0x43a)](_0x5019cf['toDisposable'](_0x3fd591[_0xc8f1e9(0x1a3)]['subscribe'](_0x407bc0=>_0x453665['next'](_0x407bc0)))),_0x434a28['add'](_0x5019cf[_0xc8f1e9(0x35e)](()=>_0x453665[_0xc8f1e9(0x2ae)]()));const _0xab407d=new _0x54735b['Subject']();_0x434a28[_0xc8f1e9(0x43a)](_0x5019cf['toDisposable'](_0x3fd591[_0xc8f1e9(0x274)]['subscribe'](_0x56c845=>_0xab407d['next'](_0x56c845)))),_0x434a28[_0xc8f1e9(0x43a)](_0x5019cf[_0xc8f1e9(0x35e)](()=>_0xab407d[_0xc8f1e9(0x2ae)]()));const _0x2584ca=new _0x54735b[(_0xc8f1e9(0x238))]();_0x434a28['add'](_0x5019cf[_0xc8f1e9(0x35e)](_0x3fd591[_0xc8f1e9(0x3c7)][_0xc8f1e9(0x324)](_0x40e180=>{const _0x26b76a=_0x50f340(_0x40e180);_0x2584ca['next'](_0x26b76a);}))),_0x434a28[_0xc8f1e9(0x43a)](_0x5019cf[_0xc8f1e9(0x35e)](()=>_0x2584ca['complete']()));const _0x4f6763=()=>{const _0xcf0fe8=_0xc8f1e9;_0xab407d[_0xcf0fe8(0x230)](new Event(_0xcf0fe8(0x2a1))),_0x453665[_0xcf0fe8(0x230)](new CloseEvent(_0xcf0fe8(0x2a1))),_0x1b665d[_0xcf0fe8(0x2af)]();},_0x1b665d={'memberID':'','close$':_0x453665['asObservable'](),'error$':_0xab407d[_0xc8f1e9(0x26a)](),'open$':_0x3fd591[_0xc8f1e9(0x4e1)],'message$':_0x2584ca[_0xc8f1e9(0x26a)](),'send':_0xd740a8=>{const _0x2d195b=_0xc8f1e9;if(_0xd740a8['cmd']===_0x2bf8f2['INGEST']){if(_0xd740a8[_0x2d195b(0x23f)][_0x2d195b(0x24d)]===_0x38ce1a[_0x2d195b(0x4cc)][_0x2d195b(0x399)]){this[_0x2d195b(0x4c8)](_0x1b665d,_0xd740a8[_0x2d195b(0x23f)])[_0x2d195b(0x422)](_0x51dffc=>{const _0x48e95c=_0x2d195b;this[_0x48e95c(0x433)]['error'](_0x51dffc),_0x4f6763();});return;}if(_0xd740a8['data'][_0x2d195b(0x24d)]===_0x38ce1a[_0x2d195b(0x4cc)][_0x2d195b(0x469)]){const _0xf4c977=_0xd740a8['data'];this['_fetchMissChangesets'](_0xf4c977)[_0x2d195b(0x2c5)](_0x1e4fc0=>{const _0x4fe4cf=_0x2d195b;_0x2584ca['next']({'cmd':_0x2bf8f2[_0x4fe4cf(0x453)],'code':_0x235f27['OK'],'routeKey':_0xf4c977[_0x4fe4cf(0x23f)][_0x4fe4cf(0x166)],'routeType':'','data':{'eventID':_0x38ce1a[_0x4fe4cf(0x4cc)][_0x4fe4cf(0x31d)],'data':{'changesets':_0x1e4fc0}}});})[_0x2d195b(0x422)](_0xeabcee=>{const _0x3ec59b=_0x2d195b;this[_0x3ec59b(0x433)]['error'](_0xeabcee),_0x4f6763();});return;}}_0x3fd591['send'](_0x171c24(_0xd740a8));},'close':()=>{const _0x3820d6=_0xc8f1e9;_0x3fd591[_0x3820d6(0x2af)](),_0x434a28[_0x3820d6(0x173)]();}};return _0x1b665d;}async[_0x46a43e(0x4c8)](_0x32ae3f,_0x1648af){const _0x5dc63c=_0x46a43e;var _0x3f5b79;const {unitType:_0x569efe,unitID:_0x473def,changeset:_0x132d95}=_0x1648af['data'],_0x489363={'unitID':_0x473def,'memberID':_0x32ae3f['memberID'],'type':_0x569efe,'changeset':_0x38ce1a['parseChangesetToProtocol'](_0x132d95)},_0x58f873=_0x411259((_0x3f5b79=this[_0x5dc63c(0x317)]['getConfig'](_0x3b6bea))!=null?_0x3f5b79:_0x54f928,_0x569efe,_0x473def);try{await this[_0x5dc63c(0x344)][_0x5dc63c(0x2a6)](_0x58f873,{'body':_0x489363});}catch(_0x3a57ab){throw this['_logService'][_0x5dc63c(0x3a0)](_0x5dc63c(0x284),_0x5dc63c(0x38c)),_0x3a57ab;}}async[_0x46a43e(0x2e2)](_0x4b382c){const _0x1a98dc=_0x46a43e,{unitID:_0x2821ef,from:_0x46e0f4,to:_0x10b91c,unitType:_0x3deb22}=_0x4b382c['data'];return(await this[_0x1a98dc(0x1fd)]['fetchMissingChangesets']({'metadata':void 0x0},{'unitID':_0x2821ef,'type':_0x3deb22,'from':_0x46e0f4,'to':_0x10b91c}))[_0x1a98dc(0x479)];}},_0x575351[_0x46a43e(0x1b9)]=_0x58008a([_0x5437d8(0x0,_0x245a54[_0x46a43e(0x4b5)](_0x3e6592[_0x46a43e(0x494)])),_0x5437d8(0x1,_0x245a54[_0x46a43e(0x4b5)](_0x3e6592[_0x46a43e(0x28e)])),_0x5437d8(0x2,_0x5019cf[_0x46a43e(0x460)]),_0x5437d8(0x3,_0x5019cf[_0x46a43e(0x4e6)]),_0x5437d8(0x4,_0x5019cf[_0x46a43e(0x1d1)])],_0x575351[_0x46a43e(0x1b9)]);var _0x510f94=Object[_0x46a43e(0x1c7)],_0x24778f=Object[_0x46a43e(0x1e9)],_0x1b5d85=(_0x77f713,_0x3c333e,_0x4ad1db,_0x34659c)=>{const _0x358903=_0x46a43e;for(var _0x5aa9cc=_0x34659c>0x1?void 0x0:_0x34659c?_0x24778f(_0x3c333e,_0x4ad1db):_0x3c333e,_0x155aba=_0x77f713[_0x358903(0x1bb)]-0x1,_0x3b1a35;_0x155aba>=0x0;_0x155aba--)(_0x3b1a35=_0x77f713[_0x155aba])&&(_0x5aa9cc=(_0x34659c?_0x3b1a35(_0x3c333e,_0x4ad1db,_0x5aa9cc):_0x3b1a35(_0x5aa9cc))||_0x5aa9cc);return _0x34659c&&_0x5aa9cc&&_0x510f94(_0x3c333e,_0x4ad1db,_0x5aa9cc),_0x5aa9cc;},_0xddd4c7=(_0x26b8c0,_0x15dda0)=>(_0x335738,_0x28e634)=>_0x15dda0(_0x335738,_0x28e634,_0x26b8c0),_0x1ae891=(_0x18a60c=>(_0x18a60c[_0x18a60c[_0x46a43e(0x298)]=0x0]=_0x46a43e(0x298),_0x18a60c[_0x18a60c[_0x46a43e(0x482)]=0x1]=_0x46a43e(0x482),_0x18a60c[_0x18a60c['OFFLINE']=0x2]=_0x46a43e(0x1b8),_0x18a60c[_0x18a60c[_0x46a43e(0x440)]=0x3]='ONLINE',_0x18a60c))(_0x1ae891||{});_0x575351['CollaborationSession']=class extends _0x5019cf[_0x46a43e(0x1c0)]{constructor(_0xac0a3d,_0x26d36e,_0x107036,_0x378d67,_0x25d344,_0x3c6266,_0x1d2010,_0x163a86){const _0x315024=_0x46a43e;super(),_0x3a44bb(this,_0x315024(0x21f),new _0x54735b[(_0x315024(0x413))](0x0)),_0x3a44bb(this,_0x315024(0x162),this[_0x315024(0x21f)][_0x315024(0x26a)]()),_0x3a44bb(this,_0x315024(0x41c),new _0x54735b[(_0x315024(0x238))]()),_0x3a44bb(this,_0x315024(0x204),this[_0x315024(0x41c)][_0x315024(0x26a)]()),_0x3a44bb(this,_0x315024(0x20d)),_0x3a44bb(this,_0x315024(0x1e6)),_0x3a44bb(this,'_collaborationTimeoutTimer'),(this[_0x315024(0x400)]=_0xac0a3d,this[_0x315024(0x433)]=_0x107036,this[_0x315024(0x32f)]=_0x378d67,this['_messageService']=_0x25d344,this['_configService']=_0x3c6266,this[_0x315024(0x508)]=_0x1d2010,this[_0x315024(0x39b)]=_0x163a86,_0x26d36e[_0x315024(0x4b0)](_0x33876a['takeUntil'](this['dispose$']))[_0x315024(0x324)](_0x21d5fb=>{const _0x5590dc=_0x315024;var _0xc18dee;typeof _0x21d5fb>'u'||(this[_0x5590dc(0x20d)]=_0x21d5fb,_0x21d5fb?(this[_0x5590dc(0x2ee)](_0x21d5fb),this[_0x5590dc(0x1e6)]=this[_0x5590dc(0x20d)][_0x5590dc(0x3c7)][_0x5590dc(0x324)](_0x5d588e=>{const _0x54737d=_0x5590dc;_0x5d588e[_0x54737d(0x1c4)]===this['_unitID']&&this['_onCombEvent'](_0x5d588e);})):(this[_0x5590dc(0x21f)]['next'](0x2),(_0xc18dee=this[_0x5590dc(0x1e6)])==null||_0xc18dee['unsubscribe'](),this[_0x5590dc(0x1e6)]=null));}),this['disposeWithMe'](this[_0x315024(0x32f)]['registerOnClose'](()=>{const _0xcce337=_0x315024;var _0x4ec4c2;(_0x4ec4c2=this['_socket'])==null||_0x4ec4c2[_0xcce337(0x175)]({'cmd':_0x2bf8f2[_0xcce337(0x3ed)],'data':{'roomID':this[_0xcce337(0x400)]}});})));}get['sessionStatus'](){const _0x3a92ec=_0x46a43e;return this[_0x3a92ec(0x21f)][_0x3a92ec(0x250)]();}[_0x46a43e(0x3bf)](){const _0xbbed9d=_0x46a43e;var _0x43f61d,_0xba8e79;return(_0xba8e79=(_0x43f61d=this[_0xbbed9d(0x20d)])==null?void 0x0:_0x43f61d['memberID'])!=null?_0xba8e79:null;}[_0x46a43e(0x173)](){const _0x10c56f=_0x46a43e;super[_0x10c56f(0x173)](),this[_0x10c56f(0x4a5)][_0x10c56f(0x230)](),this[_0x10c56f(0x4a5)]['complete']();}[_0x46a43e(0x47d)](_0x20360a){const _0x141db4=_0x46a43e;_0x20360a[_0x141db4(0x1ab)]===_0x2bf8f2[_0x141db4(0x188)]?this['_onJoinRoomEvent'](_0x20360a):_0x20360a['cmd']===_0x2bf8f2[_0x141db4(0x453)]&&this[_0x141db4(0x3dc)](_0x20360a);}[_0x46a43e(0x2ee)](_0x1c1b73){const _0x2a5650=_0x46a43e;this[_0x2a5650(0x21f)][_0x2a5650(0x230)](0x1),_0x1c1b73[_0x2a5650(0x175)]({'cmd':_0x2bf8f2[_0x2a5650(0x188)],'routeKey':this[_0x2a5650(0x400)],'routeType':'','data':{'rooms':[{'roomID':this['_unitID']}]}});}[_0x46a43e(0x489)](_0x2aaf88){const _0x113a7f=_0x46a43e;var _0x74fa1a;if(_0x2aaf88['code']===_0x235f27['FAIL']){this[_0x113a7f(0x206)][_0x113a7f(0x4f6)]({'type':_0x478174[_0x113a7f(0x47f)]['Warning'],'content':this['_localeService']['t']('session.room-full')}),this['_sessionStatus$'][_0x113a7f(0x230)](0x2);return;}this[_0x113a7f(0x21f)][_0x113a7f(0x230)](0x3);const _0x552fe5=(_0x74fa1a=_0x2aaf88[_0x113a7f(0x23f)][_0x113a7f(0x242)][this[_0x113a7f(0x400)]])==null?void 0x0:_0x74fa1a['members'];_0x552fe5&&_0x552fe5[_0x113a7f(0x39a)](_0xe37562=>this[_0x113a7f(0x39b)]['updateMember'](this[_0x113a7f(0x400)],_0xe37562));}[_0x46a43e(0x3dc)](_0x3b44c8){const _0x150002=_0x46a43e;try{const _0xb50816=_0x3b44c8['data'];switch(_0xb50816[_0x150002(0x24d)]){case _0x38ce1a[_0x150002(0x4cc)]['USERS_ENTER']:this[_0x150002(0x4c6)](_0xb50816),this[_0x150002(0x41c)]['next'](_0xb50816);break;case _0x38ce1a['CollaborationEvent'][_0x150002(0x414)]:this[_0x150002(0x45c)](_0xb50816),this[_0x150002(0x41c)][_0x150002(0x230)](_0xb50816);break;case _0x38ce1a['CollaborationEvent']['CHANGESET_ACK']:this[_0x150002(0x331)](),this[_0x150002(0x41c)][_0x150002(0x230)](_0xb50816);break;case _0x38ce1a[_0x150002(0x4cc)][_0x150002(0x470)]:this[_0x150002(0x433)][_0x150002(0x3a0)](_0x150002(0x185)+JSON['stringify'](_0xb50816)),this['_event$'][_0x150002(0x230)](_0xb50816);break;default:this['_event$'][_0x150002(0x230)](_0xb50816);}}catch(_0x4a1dbe){this[_0x150002(0x433)][_0x150002(0x3a0)](_0x4a1dbe,_0x3b44c8);}}[_0x46a43e(0x4c6)](_0x19bd8e){const _0x354847=_0x46a43e;this[_0x354847(0x39b)][_0x354847(0x2f7)](this[_0x354847(0x400)],_0x19bd8e[_0x354847(0x23f)]);}[_0x46a43e(0x45c)](_0x2e9c6d){const _0x34b50b=_0x46a43e;this[_0x34b50b(0x39b)][_0x34b50b(0x29e)](this['_unitID'],_0x2e9c6d[_0x34b50b(0x23f)]['memberID']);}async[_0x46a43e(0x175)](_0x5234ec,_0x167cf6){const _0x2b67f9=_0x46a43e;if(this[_0x2b67f9(0x376)]!==0x3||!this[_0x2b67f9(0x20d)])throw new Error(_0x2b67f9(0x21e));try{_0x5234ec[_0x2b67f9(0x24d)]===_0x38ce1a['CollaborationEvent'][_0x2b67f9(0x38d)]&&this[_0x2b67f9(0x277)](),this[_0x2b67f9(0x20d)][_0x2b67f9(0x175)]({'cmd':_0x2bf8f2[_0x2b67f9(0x179)],'routeKey':_0x167cf6,'routeType':'','data':_0x5234ec});}catch(_0x40a7a2){this['_logService'][_0x2b67f9(0x3a0)](_0x40a7a2);}}[_0x46a43e(0x277)](){const _0x576a77=_0x46a43e;var _0x271f50;this['_collaborationTimeoutTimer']=window[_0x576a77(0x3f5)](()=>{const _0x51d7cf=_0x576a77;this['_collaborationTimeoutTimer']=null,this['_messageService'][_0x51d7cf(0x4f6)]({'type':_0x478174['MessageType'][_0x51d7cf(0x493)],'content':this[_0x51d7cf(0x508)]['t'](_0x51d7cf(0x2de))});},(_0x271f50=this[_0x576a77(0x317)][_0x576a77(0x3ea)](_0x405e7e))!=null?_0x271f50:0x2710);}[_0x46a43e(0x331)](){const _0x580d8b=_0x46a43e;this[_0x580d8b(0x2e3)]&&(clearTimeout(this[_0x580d8b(0x2e3)]),this[_0x580d8b(0x2e3)]=null);}},_0x575351[_0x46a43e(0x1b4)]=_0x1b5d85([_0xddd4c7(0x2,_0x5019cf['ILogService']),_0xddd4c7(0x3,_0x5138ef[_0x46a43e(0x40c)]),_0xddd4c7(0x4,_0x5138ef['IMessageService']),_0xddd4c7(0x5,_0x5019cf[_0x46a43e(0x460)]),_0xddd4c7(0x6,_0x245a54[_0x46a43e(0x4b5)](_0x5019cf[_0x46a43e(0x3a5)])),_0xddd4c7(0x7,_0x245a54['Inject'](_0x4a6424))],_0x575351[_0x46a43e(0x1b4)]),_0x575351[_0x46a43e(0x4be)]=class extends _0x5019cf['Disposable']{constructor(_0x293d32,_0x1cad17,_0x52c753,_0x254da0,_0x441a01,_0x25e6b3){const _0x3479d4=_0x46a43e;super(),_0x3a44bb(this,_0x3479d4(0x199),new _0x54735b[(_0x3479d4(0x413))](void 0x0)),_0x3a44bb(this,_0x3479d4(0x1cf),new Map()),_0x3a44bb(this,_0x3479d4(0x504),new _0x54735b[(_0x3479d4(0x413))](0x0)),_0x3a44bb(this,_0x3479d4(0x1e8),this[_0x3479d4(0x504)]['asObservable']()),_0x3a44bb(this,_0x3479d4(0x49c),!0x1),_0x3a44bb(this,'_sendHeartbeatTimer'),_0x3a44bb(this,_0x3479d4(0x4b6)),_0x3a44bb(this,_0x3479d4(0x369)),_0x3a44bb(this,_0x3479d4(0x41d),0x0),(this[_0x3479d4(0x383)]=_0x293d32,this[_0x3479d4(0x508)]=_0x1cad17,this['_messageService']=_0x52c753,this[_0x3479d4(0x433)]=_0x254da0,this[_0x3479d4(0x317)]=_0x441a01,this[_0x3479d4(0x34c)]=_0x25e6b3);}get['_socket'](){const _0x4f4d5f=_0x46a43e;return this[_0x4f4d5f(0x199)][_0x4f4d5f(0x250)]();}[_0x46a43e(0x173)](){const _0x56a6ba=_0x46a43e;super[_0x56a6ba(0x173)](),this[_0x56a6ba(0x1cf)][_0x56a6ba(0x39a)](_0x1e3d1e=>_0x1e3d1e[_0x56a6ba(0x173)]()),this[_0x56a6ba(0x1cf)][_0x56a6ba(0x4f4)](),this[_0x56a6ba(0x504)]['complete']();}async[_0x46a43e(0x33d)](_0x12c44a){const _0x89753b=_0x46a43e;if(this[_0x89753b(0x1cf)][_0x89753b(0x209)](_0x12c44a))return this[_0x89753b(0x1cf)][_0x89753b(0x2db)](_0x12c44a);this[_0x89753b(0x233)]();const _0x374279=this['_injector'][_0x89753b(0x431)](_0x575351[_0x89753b(0x1b4)],_0x12c44a,this[_0x89753b(0x199)]['asObservable']());return this[_0x89753b(0x1cf)][_0x89753b(0x3f3)](_0x12c44a,_0x374279),_0x374279;}[_0x46a43e(0x4af)](){const _0x1a0529=_0x46a43e;var _0x250a78;const _0x211e73=(_0x250a78=this[_0x1a0529(0x317)][_0x1a0529(0x3ea)](_0x48a35f))!=null?_0x250a78:_0x1e3b06;return this['_socketService'][_0x1a0529(0x323)](_0x211e73);}[_0x46a43e(0x233)](){const _0x275044=_0x46a43e;try{const _0x197ac9=this['_createSocket']();if(_0x197ac9){const _0x1a6fee=_0x197ac9[_0x275044(0x175)];_0x197ac9[_0x275044(0x175)]=_0x4e551e=>(this[_0x275044(0x345)](),_0x1a6fee[_0x275044(0x47a)](_0x197ac9,[_0x4e551e])),_0x197ac9[_0x275044(0x3c7)]['subscribe'](_0x134c01=>this[_0x275044(0x374)](_0x197ac9,_0x134c01)),_0x197ac9[_0x275044(0x274)][_0x275044(0x4b0)](_0x33876a[_0x275044(0x341)](0x1))[_0x275044(0x324)](_0x5083c6=>this[_0x275044(0x433)]['error'](_0x275044(0x329),_0x5083c6)),_0x197ac9[_0x275044(0x4e1)][_0x275044(0x4b0)](_0x33876a['take'](0x1))[_0x275044(0x324)](()=>{this['_onConnectionOpen'](_0x197ac9);}),_0x197ac9[_0x275044(0x1a3)][_0x275044(0x4b0)](_0x33876a[_0x275044(0x341)](0x1))['subscribe'](_0x379657=>{const _0x3cfb2b=_0x275044;this[_0x3cfb2b(0x433)][_0x3cfb2b(0x418)]('[CollaborationSessionService]',_0x3cfb2b(0x158),_0x379657),this[_0x3cfb2b(0x15b)]();});}}catch(_0x169324){this[_0x275044(0x433)][_0x275044(0x3a0)](_0x169324),this[_0x275044(0x15b)]();}}[_0x46a43e(0x168)](_0x331437){const _0x346370=_0x46a43e;this[_0x346370(0x433)][_0x346370(0x418)](_0x346370(0x227),_0x346370(0x4fe)),_0x331437[_0x346370(0x175)]({'cmd':_0x2bf8f2[_0x346370(0x30e)]}),this['_rescheduleHeartbeatEvent']();}['_onConnectionFailed'](){const _0x2f9a8e=_0x46a43e;var _0x2dc7df;this[_0x2f9a8e(0x504)][_0x2f9a8e(0x230)](0x2),this[_0x2f9a8e(0x199)][_0x2f9a8e(0x230)](null),this[_0x2f9a8e(0x1d9)](),this[_0x2f9a8e(0x26e)](),this['_socketReady']=!0x1,this['_retryCount']<((_0x2dc7df=this[_0x2f9a8e(0x317)][_0x2f9a8e(0x3ea)](_0x3d3c7a))!=null?_0x2dc7df:0x3)?(this[_0x2f9a8e(0x37b)](this[_0x2f9a8e(0x41d)]),this['_retryCount']+=0x1):this[_0x2f9a8e(0x206)][_0x2f9a8e(0x4f6)]({'type':_0x478174[_0x2f9a8e(0x47f)][_0x2f9a8e(0x493)],'content':this[_0x2f9a8e(0x508)]['t']('session.connection-failed')});}[_0x46a43e(0x37b)](_0xf7af54){const _0x106143=_0x46a43e;var _0x1adf20;const _0x3e7834=((_0x1adf20=this[_0x106143(0x317)]['getConfig'](_0x17e5f7))!=null?_0x1adf20:0x4e20)*0x2**_0xf7af54;this[_0x106143(0x206)][_0x106143(0x4f6)]({'type':_0x478174[_0x106143(0x47f)][_0x106143(0x1da)],'content':this[_0x106143(0x508)]['t'](_0x106143(0x354))}),this[_0x106143(0x369)]=setTimeout(()=>{const _0x266261=_0x106143;this[_0x266261(0x233)](),clearTimeout(this['_retryConnectingTimer']),this['_retryConnectingTimer']=null;},_0x3e7834);}['_rescheduleHeartbeatEvent'](){const _0x51a97c=_0x46a43e;var _0x595c33;this['_clearHeartbeatTimer'](),this[_0x51a97c(0x1bd)]=setTimeout(()=>this[_0x51a97c(0x29d)](),(_0x595c33=this[_0x51a97c(0x317)][_0x51a97c(0x3ea)](_0x2528f8))!=null?_0x595c33:0x7530);}[_0x46a43e(0x29d)](){const _0x2d1710=_0x46a43e;this[_0x2d1710(0x20d)][_0x2d1710(0x175)]({'cmd':_0x2bf8f2[_0x2d1710(0x2eb)]}),this['_waitForHeartbeatResponse']();}[_0x46a43e(0x496)](){const _0x2d7e74=_0x46a43e;var _0x4035e6;this[_0x2d7e74(0x4b6)]=setTimeout(()=>this[_0x2d7e74(0x15b)](),(_0x4035e6=this[_0x2d7e74(0x317)][_0x2d7e74(0x3ea)](_0x405e7e))!=null?_0x4035e6:0x2710);}[_0x46a43e(0x374)](_0x3cf311,_0x1f004d){const _0x509f39=_0x46a43e,{cmd:_0x4fd455}=_0x1f004d;_0x4fd455===_0x2bf8f2['HELLO']&&!this['_socketReady']&&(_0x3cf311[_0x509f39(0x257)]=_0x1f004d['data'][_0x509f39(0x257)],this['_socket$'][_0x509f39(0x230)](_0x3cf311),this[_0x509f39(0x504)][_0x509f39(0x230)](0x3),this[_0x509f39(0x49c)]=!0x0),_0x4fd455===_0x2bf8f2[_0x509f39(0x2eb)]&&this[_0x509f39(0x1d9)](),this[_0x509f39(0x345)]();}[_0x46a43e(0x26e)](){const _0x23df9b=_0x46a43e;this[_0x23df9b(0x1bd)]!=null&&(clearTimeout(this['_sendHeartbeatTimer']),this[_0x23df9b(0x1bd)]=null);}[_0x46a43e(0x1d9)](){this['_timeoutTimer']!=null&&(clearTimeout(this['_timeoutTimer']),this['_timeoutTimer']=null);}},_0x575351[_0x46a43e(0x4be)]=_0x1b5d85([_0xddd4c7(0x0,_0x245a54[_0x46a43e(0x4b5)](_0x245a54[_0x46a43e(0x236)])),_0xddd4c7(0x1,_0x245a54['Inject'](_0x5019cf[_0x46a43e(0x3a5)])),_0xddd4c7(0x2,_0x5138ef['IMessageService']),_0xddd4c7(0x3,_0x5019cf[_0x46a43e(0x4e6)]),_0xddd4c7(0x4,_0x5019cf[_0x46a43e(0x460)]),_0xddd4c7(0x5,_0x2bdb70)],_0x575351[_0x46a43e(0x4be)]);var _0x556688=Object[_0x46a43e(0x1c7)],_0x22361a=Object[_0x46a43e(0x1e9)],_0x4f69c8=(_0x20d61e,_0x7c55d2,_0x517e19,_0x3b5d2f)=>{const _0x1dca7e=_0x46a43e;for(var _0x4ec653=_0x3b5d2f>0x1?void 0x0:_0x3b5d2f?_0x22361a(_0x7c55d2,_0x517e19):_0x7c55d2,_0x32983b=_0x20d61e[_0x1dca7e(0x1bb)]-0x1,_0x12024d;_0x32983b>=0x0;_0x32983b--)(_0x12024d=_0x20d61e[_0x32983b])&&(_0x4ec653=(_0x3b5d2f?_0x12024d(_0x7c55d2,_0x517e19,_0x4ec653):_0x12024d(_0x4ec653))||_0x4ec653);return _0x3b5d2f&&_0x4ec653&&_0x556688(_0x7c55d2,_0x517e19,_0x4ec653),_0x4ec653;},_0x48cd31=(_0x490f53,_0x4acec1)=>(_0x31198c,_0x2a01d8)=>_0x4acec1(_0x31198c,_0x2a01d8,_0x490f53);_0x575351[_0x46a43e(0x2d1)]=class extends _0x5019cf[_0x46a43e(0x32a)]{constructor(_0x127753,_0x338389,_0x48bec0,_0x40585b,_0x2f2c59){const _0x3fa435=_0x46a43e;super(),_0x3a44bb(this,_0x3fa435(0x3c8),new Map()),_0x3a44bb(this,_0x3fa435(0x32e),new Map()),_0x3a44bb(this,'_disabled',!0x1),(this['_configService']=_0x127753,this[_0x3fa435(0x1f8)]=_0x338389,this[_0x3fa435(0x32f)]=_0x48bec0,this[_0x3fa435(0x508)]=_0x40585b,this['_revisionService']=_0x2f2c59,this[_0x3fa435(0x319)]());}[_0x46a43e(0x4a7)](){this['_disabled']=!0x0;}[_0x46a43e(0x16a)](){this['_disabled']=!0x1;}['dispose'](){this['_exhaustSavingTask']()['then'](()=>super['dispose']());}async[_0x46a43e(0x444)](_0x770b71){const _0x2bc9c5=_0x46a43e;return this[_0x2bc9c5(0x2cd)]?null:this[_0x2bc9c5(0x1f8)][_0x2bc9c5(0x4bb)](_0x2c21a8(_0x770b71));}async[_0x46a43e(0x22c)](_0x45d8b6,_0x5d5658){const _0x5bec92=_0x46a43e;return!!this[_0x5bec92(0x1f8)][_0x5bec92(0x182)](_0x45d8b6,_0x5d5658);}['updateOfflineData'](_0x1f90dd,_0x22aa13,_0x352a13,_0x47f133){const _0x32d1de=_0x46a43e,_0x41ca24=this[_0x32d1de(0x4a3)][_0x32d1de(0x1cc)](_0x1f90dd);this[_0x32d1de(0x3c8)][_0x32d1de(0x3f3)](_0x1f90dd,{'unitID':_0x1f90dd,'type':_0x22aa13,'awaitingChangeset':_0x352a13,'mutations':_0x47f133,'rev':_0x41ca24}),this[_0x32d1de(0x32e)]['has'](_0x1f90dd)||this['_scheduleSaving'](_0x1f90dd);}[_0x46a43e(0x2e9)](_0x35f324){const _0x5491f5=_0x46a43e,_0x544695=this[_0x5491f5(0x163)]();_0x544695===0x0?this[_0x5491f5(0x225)](_0x35f324):this[_0x5491f5(0x32e)]['set'](_0x35f324,setTimeout(()=>this[_0x5491f5(0x225)](_0x35f324),_0x544695));}[_0x46a43e(0x163)](){const _0x3cffcb=_0x46a43e;var _0xc9afeb;return(_0xc9afeb=this[_0x3cffcb(0x317)]['getConfig'](_0x4a1864))!=null?_0xc9afeb:0x3e8;}[_0x46a43e(0x225)](_0x428653){const _0x555c2b=_0x46a43e,_0x1be3ba=this[_0x555c2b(0x32e)][_0x555c2b(0x2db)](_0x428653);return _0x1be3ba!==void 0x0&&window[_0x555c2b(0x25c)](_0x1be3ba),this[_0x555c2b(0x1f8)]['setItem'](_0x2c21a8(_0x428653),this[_0x555c2b(0x3c8)][_0x555c2b(0x2db)](_0x428653))['then'](()=>this[_0x555c2b(0x32e)][_0x555c2b(0x352)](_0x428653));}async[_0x46a43e(0x37a)](){const _0xeb2b91=_0x46a43e,_0x1f1b4f=[];this[_0xeb2b91(0x32e)][_0xeb2b91(0x39a)]((_0x40efac,_0x2f5e98)=>{const _0x14b5d9=_0xeb2b91;window['clearTimeout'](_0x40efac),_0x1f1b4f[_0x14b5d9(0x23e)](this['_saveCache'](_0x2f5e98)[_0x14b5d9(0x2c5)](()=>{const _0x29d27c=_0x14b5d9;this[_0x29d27c(0x32e)][_0x29d27c(0x352)](_0x2f5e98);}));}),await Promise['all'](_0x1f1b4f);}[_0x46a43e(0x319)](){this['disposeWithMe'](this['_beforeCloseService']['registerBeforeClose'](()=>{const _0x1f3811=_0x50f8;if(this[_0x1f3811(0x32e)][_0x1f3811(0x282)])return this[_0x1f3811(0x508)]['t'](_0x1f3811(0x31a));}));}},_0x575351[_0x46a43e(0x2d1)]=_0x4f69c8([_0x48cd31(0x0,_0x5019cf[_0x46a43e(0x460)]),_0x48cd31(0x1,_0x5019cf[_0x46a43e(0x1f9)]),_0x48cd31(0x2,_0x5138ef[_0x46a43e(0x40c)]),_0x48cd31(0x3,_0x245a54['Inject'](_0x5019cf[_0x46a43e(0x3a5)])),_0x48cd31(0x4,_0x245a54[_0x46a43e(0x4b5)](_0x38ce1a['RevisionService']))],_0x575351[_0x46a43e(0x2d1)]);function _0x2c21a8(_0x206fa1){const _0x143f94=_0x46a43e;return _0x143f94(0x2b5)+_0x206fa1;}const _0x235b99=_0x245a54['createIdentifier']('univer-pro.collaboration-client.single-active-unit-service');var _0x5c7c4a=(_0x4dc559=>(_0x4dc559[_0x4dc559['NO_OTHER_CLIENTS_EDITING']=0x0]=_0x46a43e(0x42f),_0x4dc559[_0x4dc559['OTHER_CLIENTS_EDITING']=0x1]=_0x46a43e(0x249),_0x4dc559))(_0x5c7c4a||{});const _0x37390f=0x7530,_0x16213c=_0x46a43e(0x357);class _0x23b11a extends _0x5019cf[_0x46a43e(0x32a)]{constructor(){const _0x4503eb=_0x46a43e;super(),_0x3a44bb(this,_0x4503eb(0x3aa),_0x5019cf[_0x4503eb(0x1f7)][_0x4503eb(0x4ae)]()),_0x3a44bb(this,_0x4503eb(0x40b),new Set()),_0x3a44bb(this,_0x4503eb(0x36b),new Map()),_0x3a44bb(this,_0x4503eb(0x18d),null),_0x3a44bb(this,_0x4503eb(0x3fd),new Map()),_0x3a44bb(this,_0x4503eb(0x40d),new Map()),this[_0x4503eb(0x336)]();}[_0x46a43e(0x173)](){const _0x17ba9c=_0x46a43e;super[_0x17ba9c(0x173)](),this[_0x17ba9c(0x3fd)][_0x17ba9c(0x39a)]((_0x230138,_0xdfe8)=>this[_0x17ba9c(0x231)](_0xdfe8)),this[_0x17ba9c(0x18d)]&&window['clearInterval'](this[_0x17ba9c(0x18d)]);}['getUnitStatus$'](_0x5420e5){const _0x4f6598=_0x46a43e;return this[_0x4f6598(0x2ab)](_0x5420e5)['pipe'](_0x54735b[_0x4f6598(0x4ca)]());}[_0x46a43e(0x4f5)](_0x16e6b2){const _0xa6f805=_0x46a43e;this[_0xa6f805(0x40b)][_0xa6f805(0x282)]===0x0&&this[_0xa6f805(0x1a7)](),this[_0xa6f805(0x40b)][_0xa6f805(0x43a)](_0x16e6b2),this[_0xa6f805(0x1cb)]({'type':0x0,'memberID':this[_0xa6f805(0x3aa)],'unitIDs':[_0x16e6b2],'isForwarded':!0x1});}[_0x46a43e(0x39c)](_0x5a3499){const _0x80e0fa=_0x46a43e;this['_selfUnitIDs']['delete'](_0x5a3499),this[_0x80e0fa(0x40b)][_0x80e0fa(0x282)]===0x0&&this[_0x80e0fa(0x18d)]&&window[_0x80e0fa(0x3cd)](this[_0x80e0fa(0x18d)]);}[_0x46a43e(0x336)](){const _0x3b50a9=_0x46a43e;this[_0x3b50a9(0x3e8)](_0x5019cf[_0x3b50a9(0x35e)](_0x54735b[_0x3b50a9(0x4e0)](window,_0x3b50a9(0x3c0))[_0x3b50a9(0x324)](_0x30568c=>{const _0x586749=_0x3b50a9;if(_0x30568c['key']!==_0x16213c||!_0x30568c[_0x586749(0x3cf)])return;const _0x459997=JSON[_0x586749(0x458)](_0x30568c[_0x586749(0x3cf)]);this[_0x586749(0x22e)](_0x459997);}))),window[_0x3b50a9(0x2a9)](_0x3b50a9(0x17b),()=>this[_0x3b50a9(0x1cb)]({'type':0x1,'memberID':this[_0x3b50a9(0x3aa)],'unitIDs':Array[_0x3b50a9(0x380)](this[_0x3b50a9(0x40b)])}));}[_0x46a43e(0x22e)](_0x50e3b9){const _0x339ca0=_0x46a43e;switch(_0x50e3b9[_0x339ca0(0x219)]){case 0x0:this[_0x339ca0(0x3b1)](_0x50e3b9);break;case 0x1:this[_0x339ca0(0x303)](_0x50e3b9);break;case 0x2:this['_handleHeartbeatEvent'](_0x50e3b9);break;}}[_0x46a43e(0x3b1)](_0x232a53){const _0x118498=_0x46a43e,{unitIDs:_0x4dac2d,memberID:_0x584d18,isForwarded:_0x4c1b23}=_0x232a53;_0x4dac2d['forEach'](_0x43512a=>{const _0x5af58f=_0x50f8;if(!_0x4c1b23&&this['_unitOnClients'][_0x5af58f(0x209)](_0x43512a)&&this[_0x5af58f(0x2ab)](_0x43512a)[_0x5af58f(0x230)](0x1),!this[_0x5af58f(0x36b)][_0x5af58f(0x209)](_0x43512a)||!this[_0x5af58f(0x36b)][_0x5af58f(0x2db)](_0x43512a)['has'](_0x584d18)){const _0x1e2504=this[_0x5af58f(0x36b)][_0x5af58f(0x2db)](_0x43512a)||new Set();_0x1e2504[_0x5af58f(0x43a)](_0x584d18),this[_0x5af58f(0x36b)][_0x5af58f(0x3f3)](_0x43512a,_0x1e2504),this[_0x5af58f(0x2b4)](_0x584d18);}}),_0x4c1b23||this[_0x118498(0x1cb)]({'type':0x0,'memberID':this[_0x118498(0x3aa)],'unitIDs':[...this[_0x118498(0x40b)]],'isForwarded':!0x0});}['_scheduleClearOtherTimer'](_0x288c53){const _0x1aba08=_0x46a43e;this[_0x1aba08(0x231)](_0x288c53);const _0x17c834=window[_0x1aba08(0x3f5)](()=>{const _0x1dbed2=_0x1aba08;this[_0x1dbed2(0x36b)][_0x1dbed2(0x39a)](_0x22214d=>{const _0x2ead55=_0x1dbed2;_0x22214d[_0x2ead55(0x352)](_0x288c53);});},_0x37390f*0x2);this[_0x1aba08(0x3fd)]['set'](_0x288c53,_0x17c834);}[_0x46a43e(0x231)](_0x444edd){const _0x187cb3=_0x46a43e;if(this[_0x187cb3(0x3fd)]['has'](_0x444edd)){const _0x441d8d=this[_0x187cb3(0x3fd)]['get'](_0x444edd);_0x441d8d&&window[_0x187cb3(0x25c)](_0x441d8d),this[_0x187cb3(0x3fd)][_0x187cb3(0x3f3)](_0x444edd,null);}}[_0x46a43e(0x303)](_0x23f504){const _0x1cd690=_0x46a43e,{memberID:_0x22810d,unitIDs:_0x153cb3}=_0x23f504;_0x153cb3[_0x1cd690(0x39a)](_0x2ee990=>{const _0x417c36=_0x1cd690;var _0x103619;const _0xa05ec7=this[_0x417c36(0x36b)][_0x417c36(0x2db)](_0x2ee990);_0xa05ec7&&(_0xa05ec7[_0x417c36(0x352)](_0x22810d),(_0x103619=this[_0x417c36(0x2ab)](_0x2ee990))==null||_0x103619['next'](_0xa05ec7[_0x417c36(0x282)]===0x0?0x0:0x1));}),this[_0x1cd690(0x231)](_0x22810d);}['_handleHeartbeatEvent'](_0x2b80b0){const _0x26f33d=_0x46a43e;this['_scheduleClearOtherTimer'](_0x2b80b0[_0x26f33d(0x257)]);}[_0x46a43e(0x1cb)](_0x56e48e){const _0x38f874=_0x46a43e;localStorage[_0x38f874(0x182)](_0x16213c,JSON[_0x38f874(0x485)](_0x56e48e));}[_0x46a43e(0x1a7)](){const _0x29e7bb=_0x46a43e;this[_0x29e7bb(0x18d)]=window['setInterval'](()=>{const _0x90fd0b=_0x29e7bb;this[_0x90fd0b(0x1cb)]({'type':0x2,'memberID':this[_0x90fd0b(0x3aa)]});},_0x37390f);}[_0x46a43e(0x2ab)](_0x305d69){const _0x25f6a5=_0x46a43e;return this[_0x25f6a5(0x40d)][_0x25f6a5(0x209)](_0x305d69)||this[_0x25f6a5(0x40d)][_0x25f6a5(0x3f3)](_0x305d69,new _0x54735b[(_0x25f6a5(0x413))](0x0)),this['_unitStatus'][_0x25f6a5(0x2db)](_0x305d69);}}var _0x5b47f2=Object[_0x46a43e(0x1c7)],_0x1ee916=Object[_0x46a43e(0x1e9)],_0x1a825a=(_0x37c05e,_0x5f4f8f,_0x4aa8a2,_0x31a879)=>{const _0x29fbeb=_0x46a43e;for(var _0x2f6303=_0x31a879>0x1?void 0x0:_0x31a879?_0x1ee916(_0x5f4f8f,_0x4aa8a2):_0x5f4f8f,_0x55584f=_0x37c05e[_0x29fbeb(0x1bb)]-0x1,_0x4b141a;_0x55584f>=0x0;_0x55584f--)(_0x4b141a=_0x37c05e[_0x55584f])&&(_0x2f6303=(_0x31a879?_0x4b141a(_0x5f4f8f,_0x4aa8a2,_0x2f6303):_0x4b141a(_0x2f6303))||_0x2f6303);return _0x31a879&&_0x2f6303&&_0x5b47f2(_0x5f4f8f,_0x4aa8a2,_0x2f6303),_0x2f6303;},_0x3980f6=(_0x5944ac,_0x14365e)=>(_0x1e7eba,_0x1696d8)=>_0x14365e(_0x1e7eba,_0x1696d8,_0x5944ac);let _0xc2ebf4=class{constructor(_0x24819d,_0xbbcef2){const _0x2cb859=_0x46a43e;this[_0x2cb859(0x383)]=_0x24819d,this[_0x2cb859(0x43f)]=_0xbbcef2;}['transformIMECache'](_0x37bcbd){const _0x434fcd=_0x46a43e;this[_0x434fcd(0x2c8)](_0x37bcbd),this['_transformPreviousActiveRange'](_0x37bcbd);}['transformRemoteChangeset'](_0x2bdd34){const _0xf1a61e=_0x46a43e,_0x371bc9=this[_0xf1a61e(0x383)][_0xf1a61e(0x2db)](_0x38fb70[_0xf1a61e(0x4c1)]),{redoCache:_0x1ee0f6}=_0x371bc9['getUndoRedoMutationParamsCache']();if(_0x1ee0f6[_0xf1a61e(0x1bb)]===0x0)return _0x2bdd34;let _0x58c349=_0x5019cf[_0xf1a61e(0x1f7)][_0xf1a61e(0x2ac)](_0x2bdd34[_0xf1a61e(0x2c2)][0x0]);for(let _0xcd909=0x0;_0xcd909<_0x1ee0f6[_0xf1a61e(0x1bb)];_0xcd909++){const _0x3b534e={'id':_0xf1a61e(0x20c),'params':{..._0x1ee0f6[_0xcd909]}},_0x27407a=this[_0xf1a61e(0x43f)]['transformMutation'](_0x58c349,_0x3b534e,!0x1);if(_0x38ce1a['isTransformMutationFailure'](_0x27407a))throw _0x27407a[_0xf1a61e(0x3a0)];_0x58c349=_0x27407a[_0xf1a61e(0x272)];}return{..._0x5019cf[_0xf1a61e(0x1f7)][_0xf1a61e(0x2ac)](_0x2bdd34),'mutations':[_0x58c349]};}[_0x46a43e(0x2c8)](_0x159bd9){const _0x41981d=_0x46a43e,_0x301093=this[_0x41981d(0x383)][_0x41981d(0x2db)](_0x38fb70[_0x41981d(0x4c1)]),{undoCache:_0x5f4aae,redoCache:_0x205fc0}=_0x301093[_0x41981d(0x31b)]();if(_0x5f4aae[_0x41981d(0x1bb)]===0x0||_0x205fc0['length']===0x0)return;const _0x17ed05=[],_0x30bb9d=[];let _0x5693c1=_0x5019cf[_0x41981d(0x1f7)][_0x41981d(0x2ac)](_0x159bd9[_0x41981d(0x2c2)][0x0]),_0x215dea=_0x5019cf['Tools'][_0x41981d(0x2ac)](_0x159bd9[_0x41981d(0x2c2)][0x0]);for(let _0x6b517a=_0x5f4aae[_0x41981d(0x1bb)]-0x1;_0x6b517a>=0x0;_0x6b517a--){const _0x55fed9={'id':'doc.mutation.rich-text-editing','params':{..._0x5f4aae[_0x6b517a]}},_0x14ba7a={'id':_0x41981d(0x20c),'params':{..._0x205fc0[_0x6b517a]}},_0x5615e5=this['_transformService']['transformMutation'](_0x5693c1,_0x55fed9,!0x1),_0xde2051=this[_0x41981d(0x43f)][_0x41981d(0x432)](_0x215dea,_0x14ba7a,!0x1);if(_0x38ce1a[_0x41981d(0x15e)](_0x5615e5))throw _0x5615e5['error'];if(_0x38ce1a['isTransformMutationFailure'](_0xde2051))throw _0xde2051[_0x41981d(0x3a0)];_0x17ed05[_0x41981d(0x442)](_0x5615e5[_0x41981d(0x35f)]['params']),_0x30bb9d[_0x41981d(0x442)](_0xde2051[_0x41981d(0x35f)][_0x41981d(0x451)]),_0x5693c1=_0x5615e5[_0x41981d(0x272)],_0x215dea=_0xde2051[_0x41981d(0x272)];}_0x301093['setUndoRedoMutationParamsCache']({'undoCache':_0x17ed05,'redoCache':_0x30bb9d});}[_0x46a43e(0x415)](_0x13e44b){const _0x12af0b=_0x46a43e,_0x16b61c=this['_injector'][_0x12af0b(0x2db)](_0x38fb70['IMEInputManagerService']),_0x219840=_0x16b61c[_0x12af0b(0x2bb)]();if(_0x219840==null)return;const _0x22751b=[{'id':_0x12af0b(0x20c),'params':{'unitId':_0x13e44b[_0x12af0b(0x166)],'actions':null,'textRanges':[_0x219840]}}],_0x52e8fe=this['_transformService']['transformMutationsWithChangeset'](_0x13e44b,_0x22751b);if(!_0x38ce1a['isTransformMutationsWithChangesetSuccess'](_0x52e8fe))throw _0x52e8fe['error'];const _0x1684db=_0x52e8fe[_0x12af0b(0x35f)][0x0][_0x12af0b(0x451)]['textRanges'];Array[_0x12af0b(0x4e9)](_0x1684db)&&_0x1684db[_0x12af0b(0x1bb)]&&_0x16b61c[_0x12af0b(0x4cd)](_0x1684db[0x0]);}};_0xc2ebf4=_0x1a825a([_0x3980f6(0x0,_0x245a54['Inject'](_0x245a54[_0x46a43e(0x236)])),_0x3980f6(0x1,_0x38ce1a[_0x46a43e(0x48b)])],_0xc2ebf4);var _0x32e5c2=Object[_0x46a43e(0x1c7)],_0xa16d29=Object[_0x46a43e(0x1e9)],_0x504577=(_0x1c50cc,_0x469024,_0x56dd1f,_0x37134b)=>{const _0xa9d341=_0x46a43e;for(var _0x57d268=_0x37134b>0x1?void 0x0:_0x37134b?_0xa16d29(_0x469024,_0x56dd1f):_0x469024,_0x23e669=_0x1c50cc[_0xa9d341(0x1bb)]-0x1,_0x34c053;_0x23e669>=0x0;_0x23e669--)(_0x34c053=_0x1c50cc[_0x23e669])&&(_0x57d268=(_0x37134b?_0x34c053(_0x469024,_0x56dd1f,_0x57d268):_0x34c053(_0x57d268))||_0x57d268);return _0x37134b&&_0x57d268&&_0x32e5c2(_0x469024,_0x56dd1f,_0x57d268),_0x57d268;},_0x1a7e36=(_0x356dad,_0x56331f)=>(_0x389fcf,_0x4743cc)=>_0x56331f(_0x389fcf,_0x4743cc,_0x356dad);let _0x5cf952=class{constructor(_0x50d1dc,_0x5da5d6){const _0x511e92=_0x46a43e;this[_0x511e92(0x383)]=_0x50d1dc,this['_transformService']=_0x5da5d6;}[_0x46a43e(0x2d6)](_0x71de9f){const _0x50a08a=_0x46a43e;var _0x1b401d;const _0x3f2a1e=this[_0x50a08a(0x383)][_0x50a08a(0x2db)](_0x38fb70['TextSelectionManagerService']),_0x22e751=(_0x1b401d=_0x3f2a1e[_0x50a08a(0x2fc)]())!=null?_0x1b401d:[],_0x33365c=_0x22e751==null?void 0x0:_0x22e751[_0x50a08a(0x473)](_0x38fb70[_0x50a08a(0x318)]);if(_0x33365c['length']===0x0)return;const _0x4fb952=[{'id':_0x50a08a(0x20c),'params':{'unitId':_0x71de9f[_0x50a08a(0x166)],'actions':null,'textRanges':_0x33365c}}],_0x533fab=this['_transformService'][_0x50a08a(0x3ba)](_0x71de9f,_0x4fb952);if(!_0x38ce1a[_0x50a08a(0x41f)](_0x533fab))throw _0x533fab[_0x50a08a(0x3a0)];const _0x34315a=_0x533fab[_0x50a08a(0x35f)][0x0][_0x50a08a(0x451)][_0x50a08a(0x44a)];Array[_0x50a08a(0x4e9)](_0x34315a)&&_0x34315a[_0x50a08a(0x1bb)]&&_0x3f2a1e['replaceTextRanges'](_0x34315a,!0x1);}};_0x5cf952=_0x504577([_0x1a7e36(0x0,_0x245a54[_0x46a43e(0x4b5)](_0x245a54[_0x46a43e(0x236)])),_0x1a7e36(0x1,_0x38ce1a[_0x46a43e(0x48b)])],_0x5cf952);function _0x4b67ea(_0x1484ec){let _0x100ba9='';for(const _0x4a0a8e of _0x1484ec){const {startOffset:_0x422db9,endOffset:_0x3f249d,isActive:_0x169856}=_0x4a0a8e;_0x100ba9['length']&&(_0x100ba9+=','),_0x100ba9+=_0x422db9+':'+_0x3f249d+':'+(_0x169856?'1':'0');}return _0x100ba9;}function _0x40ee5f(_0x31429f){const _0x587acf=_0x46a43e,_0x1bd359=_0x31429f[_0x587acf(0x269)](','),_0x421f9f=[];for(const _0x90daf7 of _0x1bd359){const [_0x10c56e,_0x18ddaa,_0x4e27b0]=_0x90daf7[_0x587acf(0x269)](':');_0x421f9f[_0x587acf(0x23e)]({'startOffset':Number(_0x10c56e),'endOffset':Number(_0x18ddaa),'collapsed':_0x10c56e===_0x18ddaa,'isActive':_0x4e27b0==='1'});}return _0x421f9f['some'](_0x40172a=>_0x40172a[_0x587acf(0x279)])||(_0x421f9f[0x0][_0x587acf(0x279)]=!0x0),_0x421f9f;}class _0x141f6f extends _0x5019cf[_0x46a43e(0x1c0)]{constructor(){const _0x560353=_0x46a43e;super(...arguments),_0x3a44bb(this,_0x560353(0x503),new _0x54735b['BehaviorSubject'](null)),_0x3a44bb(this,_0x560353(0x2a5),this[_0x560353(0x503)][_0x560353(0x26a)]());}['syncEditingCollabCursor'](_0x9ff428){const _0x261c3f=_0x46a43e,{unitID:_0x154347,memberID:_0x1c8412,textRanges:_0x309d49}=_0x9ff428,_0x84c36d=_0x4b67ea(_0x309d49),_0x4890a6={'unitID':_0x154347,'memberID':_0x1c8412,'selection':_0x84c36d};this[_0x261c3f(0x503)][_0x261c3f(0x230)](_0x4890a6);}}var _0x55ae9b=Object[_0x46a43e(0x1c7)],_0xd44df2=Object[_0x46a43e(0x1e9)],_0x953aa0=(_0x2489e0,_0x3b4fd7,_0x2fa8de,_0x136c9d)=>{const _0x42f616=_0x46a43e;for(var _0x37c91c=_0x136c9d>0x1?void 0x0:_0x136c9d?_0xd44df2(_0x3b4fd7,_0x2fa8de):_0x3b4fd7,_0x43ef1e=_0x2489e0[_0x42f616(0x1bb)]-0x1,_0x4eb0f1;_0x43ef1e>=0x0;_0x43ef1e--)(_0x4eb0f1=_0x2489e0[_0x43ef1e])&&(_0x37c91c=(_0x136c9d?_0x4eb0f1(_0x3b4fd7,_0x2fa8de,_0x37c91c):_0x4eb0f1(_0x37c91c))||_0x37c91c);return _0x136c9d&&_0x37c91c&&_0x55ae9b(_0x3b4fd7,_0x2fa8de,_0x37c91c),_0x37c91c;},_0x51a808=(_0xe4b08,_0x122740)=>(_0x155ec3,_0x5f0c57)=>_0x122740(_0x155ec3,_0x5f0c57,_0xe4b08);let _0x20cd4b=class{constructor(_0x5b6d47,_0x20e8d6){const _0x511467=_0x46a43e;this[_0x511467(0x383)]=_0x5b6d47,this[_0x511467(0x43f)]=_0x20e8d6;}['transformSelections'](_0x45bdf4){const _0xa711bc=_0x46a43e;var _0x199328,_0xa89cd3,_0x54f22a,_0x127dbf;const _0x480dce=this['_injector'][_0xa711bc(0x2db)](_0x7f012d[_0xa711bc(0x3fe)]),{pluginName:_0x52cabd,unitId:_0x34d808,sheetId:_0x5b73ab}=_0x480dce[_0xa711bc(0x4f0)]()||{},_0x467394=(_0x199328=_0x480dce['getSelections']())!=null?_0x199328:[];if(_0x467394[_0xa711bc(0x1bb)]===0x0||!_0x52cabd||!_0x34d808||!_0x5b73ab)return;const _0x426c18=[{'id':_0x7f012d['SetSelectionsOperation']['id'],'params':{'unitId':_0x34d808,'subUnitId':_0x5b73ab,'pluginName':_0x52cabd,'selections':_0x5019cf[_0xa711bc(0x1f7)][_0xa711bc(0x2ac)](_0x467394)}}],_0x4d88d1=this[_0xa711bc(0x43f)]['transformMutationsWithChangeset'](_0x45bdf4,_0x426c18);if(!_0x38ce1a[_0xa711bc(0x41f)](_0x4d88d1))throw _0x4d88d1[_0xa711bc(0x3a0)];const _0x383c3a=(_0x127dbf=(_0x54f22a=(_0xa89cd3=_0x4d88d1[_0xa711bc(0x35f)][0x0])==null?void 0x0:_0xa89cd3[_0xa711bc(0x451)])==null?void 0x0:_0x54f22a[_0xa711bc(0x4e4)])!=null?_0x127dbf:_0x467394;Array[_0xa711bc(0x4e9)](_0x383c3a)&&_0x383c3a[_0xa711bc(0x1bb)]&&this[_0xa711bc(0x383)][_0xa711bc(0x2db)](_0x5019cf[_0xa711bc(0x3b9)])[_0xa711bc(0x4ac)](_0x7f012d[_0xa711bc(0x27c)]['id'],{'unitId':_0x34d808,'subUnitId':_0x5b73ab,'pluginName':_0x52cabd,'selections':_0x383c3a});}};_0x20cd4b=_0x953aa0([_0x51a808(0x0,_0x245a54['Inject'](_0x245a54[_0x46a43e(0x236)])),_0x51a808(0x1,_0x38ce1a[_0x46a43e(0x48b)])],_0x20cd4b);const _0xe84682=new Set([_0x7f012d[_0x46a43e(0x207)]['id']]);function _0x2ced5e(_0x17e9fe,_0x50f09a,_0xb83b64,_0x1f4f72,_0x200f8d){const _0x47fc5e=_0x46a43e;var _0x1f537e,_0x13825d,_0x1f9a05,_0xb5966a;const _0x11ceb3=[];for(const _0x1a11cb of _0x17e9fe)if(_0xe84682[_0x47fc5e(0x209)](_0x1a11cb['id'])){if(_0x11ceb3[_0x47fc5e(0x1bb)]>0x0)break;_0x11ceb3[_0x47fc5e(0x23e)](_0x1a11cb);break;}else _0x11ceb3[_0x47fc5e(0x23e)](_0x1a11cb);const _0xc9d50c=(_0x13825d=(_0x1f537e=_0x200f8d[_0x47fc5e(0x373)]())==null?void 0x0:_0x1f537e['userID'])!=null?_0x13825d:_0x47fc5e(0x3f4),_0x461d3f=(_0xb5966a=(_0x1f9a05=_0x200f8d[_0x47fc5e(0x373)]())==null?void 0x0:_0x1f9a05[_0x47fc5e(0x257)])!=null?_0xb5966a:'unknown';return{'changeset':{'unitID':_0x50f09a,'type':_0x38ce1a[_0x47fc5e(0x27e)](_0xb83b64[_0x47fc5e(0x22d)](_0x50f09a)),'baseRev':_0x1f4f72[_0x47fc5e(0x1cc)](_0x50f09a),'revision':0x0,'userID':_0xc9d50c,'memberID':_0x461d3f,'mutations':_0x11ceb3},'pendingMutations':_0x17e9fe[_0x47fc5e(0x29f)](_0x11ceb3[_0x47fc5e(0x1bb)])};}function _0x2506bd(_0x50b4c1,_0x27dbe3,_0x56984c,_0x59e2ce,_0x49b961){const _0x438bcf=_0x46a43e;var _0x325ed0,_0x1296ce,_0x35c933,_0x500bcc;const _0x2c421d=[_0x50b4c1[_0x438bcf(0x2e8)]((_0x1078ad,_0x3a0e66)=>{const _0x4ff933=_0x438bcf;var _0x41e9a9;const {id:_0x49ac3d}=_0x1078ad,{id:_0x1952b1,type:_0x366384}=_0x3a0e66,_0x28cf4b=(_0x41e9a9=_0x1078ad['params'])!=null?_0x41e9a9:{'actions':null},_0xa2f835=_0x3a0e66[_0x4ff933(0x451)];if(_0x49ac3d&&_0x49ac3d!==_0x1952b1)throw new Error(_0x4ff933(0x370)+_0x49ac3d+_0x4ff933(0x462)+_0x1952b1+'.');return{..._0x1078ad,'id':_0x1952b1,'type':_0x366384,'params':{'unitId':_0xa2f835['unitId'],'textRanges':_0xa2f835['textRanges'],'actions':_0x5019cf['JSONX']['compose'](_0x28cf4b[_0x4ff933(0x25e)],_0xa2f835[_0x4ff933(0x25e)])}};},{})],_0x28925b=(_0x1296ce=(_0x325ed0=_0x49b961['getCurrentUser']())==null?void 0x0:_0x325ed0[_0x438bcf(0x2f1)])!=null?_0x1296ce:_0x438bcf(0x3f4),_0x56c6d5=(_0x500bcc=(_0x35c933=_0x49b961[_0x438bcf(0x373)]())==null?void 0x0:_0x35c933['memberID'])!=null?_0x500bcc:_0x438bcf(0x3f4);return{'changeset':{'unitID':_0x27dbe3,'type':_0x38ce1a[_0x438bcf(0x27e)](_0x56984c['getUnitType'](_0x27dbe3)),'baseRev':_0x59e2ce[_0x438bcf(0x1cc)](_0x27dbe3),'revision':0x0,'userID':_0x28925b,'memberID':_0x56c6d5,'mutations':_0x2c421d},'pendingMutations':[]};}var _0x1b297f=Object[_0x46a43e(0x1c7)],_0x4a951a=Object[_0x46a43e(0x1e9)],_0x1b88b6=(_0xa5cf6c,_0x14f823,_0x3072c2,_0xe100cb)=>{for(var _0xc34727=_0xe100cb>0x1?void 0x0:_0xe100cb?_0x4a951a(_0x14f823,_0x3072c2):_0x14f823,_0x217fcf=_0xa5cf6c['length']-0x1,_0x26e800;_0x217fcf>=0x0;_0x217fcf--)(_0x26e800=_0xa5cf6c[_0x217fcf])&&(_0xc34727=(_0xe100cb?_0x26e800(_0x14f823,_0x3072c2,_0xc34727):_0x26e800(_0xc34727))||_0xc34727);return _0xe100cb&&_0xc34727&&_0x1b297f(_0x14f823,_0x3072c2,_0xc34727),_0xc34727;},_0x48ae34=(_0x40938a,_0x3f638c)=>(_0x7e6012,_0x12d877)=>_0x3f638c(_0x7e6012,_0x12d877,_0x40938a),_0x348409=(_0x507eeb=>(_0x507eeb['NOT_COLLAB']=_0x46a43e(0x4a6),_0x507eeb[_0x46a43e(0x407)]='synced',_0x507eeb['PENDING']=_0x46a43e(0x37e),_0x507eeb[_0x46a43e(0x224)]='awaiting',_0x507eeb[_0x46a43e(0x203)]='awaiting_with_pending',_0x507eeb[_0x46a43e(0x198)]=_0x46a43e(0x1a2),_0x507eeb[_0x46a43e(0x420)]='conflict',_0x507eeb['OFFLINE']=_0x46a43e(0x4a4),_0x507eeb))(_0x348409||{});class _0x2fb10b{constructor(_0x35a259,_0x1cd84b,_0x19c5eb,_0x3bd0de,_0x281b3d,_0x23b72b,_0x3c0e67,_0x3425a0,_0x1e17c4){const _0x2f8de9=_0x46a43e;_0x3a44bb(this,_0x2f8de9(0x4e8),null),_0x3a44bb(this,'_pendingMutations',[]),(this['unitID']=_0x35a259,this[_0x2f8de9(0x219)]=_0x1cd84b,this[_0x2f8de9(0x4dd)]=_0x281b3d,this[_0x2f8de9(0x34d)]=_0x23b72b,this[_0x2f8de9(0x1d6)]=_0x3c0e67,this[_0x2f8de9(0x4a3)]=_0x3425a0,this[_0x2f8de9(0x36e)]=_0x1e17c4,this['_awaitingChangeset']=_0x19c5eb,this[_0x2f8de9(0x3b7)]=_0x3bd0de);}[_0x46a43e(0x454)](_0x5799f9){const _0x6f6eb4=_0x46a43e,_0x5f222a=this[_0x6f6eb4(0x4a3)][_0x6f6eb4(0x1cc)](this['unitID']);return _0x5799f9[_0x6f6eb4(0x1ca)]>_0x5f222a+0x1?(this[_0x6f6eb4(0x4dd)][_0x6f6eb4(0x2ea)]({'from':_0x5f222a,'to':_0x5799f9['revision']-0x1}),!0x0):!0x1;}['_transformUndoredo'](_0xd61958){const _0x2826ad=_0x46a43e;this[_0x2826ad(0x1d6)][_0x2826ad(0x4fb)](this[_0x2826ad(0x166)],_0xd61958);}[_0x46a43e(0x288)](_0xf0753d){const _0x447f1a=_0x46a43e;var _0x28f8ad,_0xacfb4d;(_0xacfb4d=(_0x28f8ad=this[_0x447f1a(0x4dd)])[_0x447f1a(0x49a)])==null||_0xacfb4d['call'](_0x28f8ad,_0xf0753d);}['_transformIMECache'](_0x283082){const _0x58a221=_0x46a43e;var _0xc6f2d4,_0x15fbf1;return(_0x15fbf1=(_0xc6f2d4=this[_0x58a221(0x4dd)])[_0x58a221(0x286)])==null?void 0x0:_0x15fbf1[_0x58a221(0x4fd)](_0xc6f2d4,_0x283082);}[_0x46a43e(0x3dd)](_0x3e640a){const _0x33586b=_0x46a43e;var _0x57262d,_0x50fd31,_0x10355c;return(_0x10355c=(_0x50fd31=(_0x57262d=this[_0x33586b(0x4dd)])[_0x33586b(0x46d)])==null?void 0x0:_0x50fd31[_0x33586b(0x4fd)](_0x57262d,_0x3e640a))!=null?_0x10355c:_0x3e640a;}['_syncEditingCollabCursor'](_0x4de3ea){const _0x111a48=_0x46a43e;var _0x14eef4,_0x2d5cef;if(this[_0x111a48(0x219)]===_0x4418d5['UNIVER_DOC']){const {unitID:_0x1848df,mutations:_0xd9fdfe,memberID:_0x257882}=_0x4de3ea,_0x5c4b72=_0xd9fdfe[0x0][_0x111a48(0x451)][_0x111a48(0x44a)];Array[_0x111a48(0x4e9)](_0x5c4b72)&&_0x5c4b72[_0x111a48(0x1bb)]>0x0&&((_0x2d5cef=(_0x14eef4=this[_0x111a48(0x4dd)])[_0x111a48(0x278)])==null||_0x2d5cef[_0x111a48(0x4fd)](_0x14eef4,{'unitID':_0x1848df,'memberID':_0x257882,'textRanges':_0x5c4b72}));}}[_0x46a43e(0x385)](){const _0x15d0ad=_0x46a43e;this[_0x15d0ad(0x36e)][_0x15d0ad(0x484)](this[_0x15d0ad(0x166)],this[_0x15d0ad(0x219)],this[_0x15d0ad(0x4e8)],this['_pendingMutations']);}[_0x46a43e(0x337)](){const _0x16b63e=_0x46a43e;return this['_revisionService']['getCurrentRevForDocument'](this[_0x16b63e(0x166)]);}[_0x46a43e(0x17d)](){const _0x2d3071=_0x46a43e;this[_0x2d3071(0x4a3)][_0x2d3071(0x4c2)](this['unitID']);}[_0x46a43e(0x408)](_0x7bcf37){const _0x2b3c73=_0x46a43e;var _0x560d87;const _0x5989c8=this[_0x2b3c73(0x3dd)](_0x7bcf37),_0x5929d4=_0x5019cf[_0x2b3c73(0x30d)](_0x5989c8[_0x2b3c73(0x2c2)],this[_0x2b3c73(0x34d)],{'fromCollab':!0x0});if(!_0x5929d4[_0x2b3c73(0x3ec)])throw _0x5929d4[_0x2b3c73(0x3a0)]instanceof Error?_0x5929d4['error']:new Error((_0x560d87=_0x5929d4[_0x2b3c73(0x3a0)])!=null?_0x560d87:_0x2b3c73(0x4fa));this[_0x2b3c73(0x456)](_0x5989c8),this[_0x2b3c73(0x30b)](_0x7bcf37),this[_0x2b3c73(0x288)](_0x5989c8),this[_0x2b3c73(0x1ae)](_0x5989c8),this[_0x2b3c73(0x17d)]();}}let _0x5a53e1=class extends _0x2fb10b{constructor(_0x24bfd8,_0x20ef6b,_0x36c629,_0x3dca71,_0x73c9f5,_0x4a4fb0,_0x4a15b3,_0x3e075b,_0x4151a9){const _0x443444=_0x46a43e;super(_0x24bfd8,_0x20ef6b,null,[],_0x36c629,_0x3e075b,_0x4a15b3,_0x3dca71,_0x73c9f5),_0x3a44bb(this,_0x443444(0x4a1),'synced'),(this[_0x443444(0x383)]=_0x4a4fb0,this[_0x443444(0x433)]=_0x4151a9);}[_0x46a43e(0x378)](_0x3ab491){const _0x137193=_0x46a43e,_0x3c54ac=this[_0x137193(0x383)][_0x137193(0x431)](_0x285dad,this[_0x137193(0x166)],this['type'],[_0x3ab491],this['_handler']);return _0x3c54ac[_0x137193(0x3f1)](),_0x3c54ac[_0x137193(0x385)](),_0x3c54ac;}[_0x46a43e(0x2dc)](_0x2cd22e){const _0x9ac248=_0x46a43e;if(this[_0x9ac248(0x454)](_0x2cd22e))return this[_0x9ac248(0x383)][_0x9ac248(0x431)](_0x28d07c,this[_0x9ac248(0x166)],this['type'],null,[],null,[_0x2cd22e],this[_0x9ac248(0x4dd)]);try{return this[_0x9ac248(0x408)](_0x2cd22e),this;}catch(_0x147a41){return this[_0x9ac248(0x433)][_0x9ac248(0x3a0)]('[CollaborationController]:\x20remote\x20changeset\x20applied\x20error.',_0x147a41),this;}}[_0x46a43e(0x452)](){const _0x1360da=_0x46a43e;throw new Error(_0x1360da(0x332));}['onRemoteRej'](){const _0x19488d=_0x46a43e;throw new Error(_0x19488d(0x3eb));}['toggleOffline'](){const _0xce9cb=_0x46a43e;return this[_0xce9cb(0x383)][_0xce9cb(0x431)](_0x3fc69e,this['unitID'],this[_0xce9cb(0x219)],null,[],this[_0xce9cb(0x4dd)]);}[_0x46a43e(0x2d8)](){return this;}['resend'](){const _0x29e2d8=_0x46a43e;throw new Error(_0x29e2d8(0x3f2));}};_0x5a53e1=_0x1b88b6([_0x48ae34(0x3,_0x245a54[_0x46a43e(0x4b5)](_0x38ce1a[_0x46a43e(0x4ad)])),_0x48ae34(0x4,_0x245a54[_0x46a43e(0x4b5)](_0x575351[_0x46a43e(0x2d1)])),_0x48ae34(0x5,_0x245a54[_0x46a43e(0x4b5)](_0x245a54[_0x46a43e(0x236)])),_0x48ae34(0x6,_0x5019cf[_0x46a43e(0x33a)]),_0x48ae34(0x7,_0x5019cf[_0x46a43e(0x3b9)]),_0x48ae34(0x8,_0x5019cf[_0x46a43e(0x4e6)])],_0x5a53e1);let _0x285dad=class extends _0x2fb10b{constructor(_0x56abdb,_0x594545,_0x337f21,_0x108bd6,_0xd71ffe,_0x27dbea,_0x238e8b,_0x420d9b,_0x187b3c,_0x1d0176,_0x316758,_0x139332,_0x3c76d9,_0x503899){const _0x214d5e=_0x46a43e;super(_0x56abdb,_0x594545,null,_0x337f21,_0x108bd6,_0x1d0176,_0x503899,_0x27dbea,_0x238e8b),_0x3a44bb(this,_0x214d5e(0x4a1),'pending'),_0x3a44bb(this,_0x214d5e(0x3ce),null),_0x3a44bb(this,_0x214d5e(0x358),null),(this[_0x214d5e(0x383)]=_0xd71ffe,this[_0x214d5e(0x39b)]=_0x420d9b,this[_0x214d5e(0x433)]=_0x187b3c,this[_0x214d5e(0x317)]=_0x316758,this[_0x214d5e(0x43f)]=_0x139332,this[_0x214d5e(0x397)]=_0x3c76d9);}[_0x46a43e(0x378)](_0x2c0c50){const _0x594359=_0x46a43e;return this['_pendingMutations'][_0x594359(0x23e)](_0x2c0c50),this[_0x594359(0x385)](),this;}[_0x46a43e(0x2dc)](_0x994003){const _0x1038e3=_0x46a43e;if(this[_0x1038e3(0x454)](_0x994003))return this[_0x1038e3(0x176)](),this[_0x1038e3(0x383)][_0x1038e3(0x431)](_0x28d07c,this[_0x1038e3(0x166)],this[_0x1038e3(0x219)],null,this[_0x1038e3(0x3b7)],null,[_0x994003],this[_0x1038e3(0x4dd)]);try{const _0xcb6a14=this[_0x1038e3(0x43f)][_0x1038e3(0x3ba)](_0x994003,this[_0x1038e3(0x3b7)]);if(_0x38ce1a[_0x1038e3(0x41f)](_0xcb6a14)){const {c1Prime:_0xd9556a,m2Prime:_0x334dc8}=_0xcb6a14;this[_0x1038e3(0x408)](_0xd9556a);const _0x362496=this[_0x1038e3(0x383)][_0x1038e3(0x431)](_0x285dad,this['unitID'],this[_0x1038e3(0x219)],_0x334dc8,this['_handler']);return this[_0x1038e3(0x176)](),_0x362496[_0x1038e3(0x3f1)](this[_0x1038e3(0x3ce)]?Math[_0x1038e3(0x492)](0x0,new Date()['getTime']()-this['_scheduleTimestamp']):this[_0x1038e3(0x417)]()),_0x362496;}throw _0xcb6a14[_0x1038e3(0x3a0)];}catch(_0x4a014c){return this[_0x1038e3(0x433)][_0x1038e3(0x3a0)](_0x4a014c),this[_0x1038e3(0x2a8)](!0x1);}}[_0x46a43e(0x452)](){const _0x287179=_0x46a43e;throw new Error(_0x287179(0x4f9));}[_0x46a43e(0x1fb)](){throw new Error('[PendingState]:\x20received\x20rejection.');}[_0x46a43e(0x2d9)](){const _0x4b22be=_0x46a43e;return this[_0x4b22be(0x176)](),this[_0x4b22be(0x383)]['createInstance'](_0x3fc69e,this[_0x4b22be(0x166)],this['type'],null,this[_0x4b22be(0x3b7)],this[_0x4b22be(0x4dd)]);}['toggleOnline'](){return this;}['_schedule'](_0x51f07e){const _0xe2d341=_0x46a43e;_0x51f07e=_0x51f07e!=null?_0x51f07e:this[_0xe2d341(0x417)](),this['_scheduleTimestamp']=new Date()[_0xe2d341(0x322)](),this['_sendingTimer']=setTimeout(()=>{const _0x241d2b=_0xe2d341;this['_clearScheduledTask']();let _0x250a7e=null;switch(this[_0x241d2b(0x219)]){case _0x4418d5[_0x241d2b(0x258)]:{_0x250a7e=_0x2ced5e(this[_0x241d2b(0x3b7)],this[_0x241d2b(0x166)],this[_0x241d2b(0x397)],this[_0x241d2b(0x4a3)],this[_0x241d2b(0x39b)]);break;}case _0x4418d5[_0x241d2b(0x27d)]:{_0x250a7e=_0x2506bd(this['_pendingMutations'],this[_0x241d2b(0x166)],this[_0x241d2b(0x397)],this['_revisionService'],this['_memberService']);break;}default:throw new Error(_0x241d2b(0x382)+this[_0x241d2b(0x219)]+'\x20in\x20_schedule.');}const {changeset:_0x1cfbe3,pendingMutations:_0x587bb7}=_0x250a7e;this['_handler'][_0x241d2b(0x3e4)](_0x1cfbe3);const _0x45a77d=_0x587bb7[_0x241d2b(0x1bb)]?this[_0x241d2b(0x383)]['createInstance'](_0xf5d66b,this[_0x241d2b(0x166)],this[_0x241d2b(0x219)],_0x1cfbe3,_0x587bb7,this[_0x241d2b(0x4dd)]):this[_0x241d2b(0x383)][_0x241d2b(0x431)](_0xdb51bd,this[_0x241d2b(0x166)],this[_0x241d2b(0x219)],_0x1cfbe3,this[_0x241d2b(0x4dd)]);_0x45a77d[_0x241d2b(0x385)](),this['_handler']['onStateChange'](this,_0x45a77d);},_0x51f07e);}[_0x46a43e(0x417)](){const _0x4e3774=_0x46a43e;var _0x20c323;return(_0x20c323=this[_0x4e3774(0x317)][_0x4e3774(0x3ea)](_0xb347b))!=null?_0x20c323:0x7d0;}[_0x46a43e(0x472)](){const _0x4fc6f4=_0x46a43e;throw new Error(_0x4fc6f4(0x1ac));}[_0x46a43e(0x176)](){const _0x3d3d2f=_0x46a43e;this[_0x3d3d2f(0x358)]!=null&&(clearTimeout(this[_0x3d3d2f(0x358)]),this['_sendingTimer']=null);}[_0x46a43e(0x2a8)](_0x3ef281){const _0x5abdeb=_0x46a43e;return this[_0x5abdeb(0x176)](),this[_0x5abdeb(0x383)][_0x5abdeb(0x431)](_0x5e1998,this['unitID'],this['type'],null,this['_pendingMutations'],this[_0x5abdeb(0x4dd)],_0x3ef281);}};_0x285dad=_0x1b88b6([_0x48ae34(0x4,_0x245a54[_0x46a43e(0x4b5)](_0x245a54[_0x46a43e(0x236)])),_0x48ae34(0x5,_0x245a54[_0x46a43e(0x4b5)](_0x38ce1a[_0x46a43e(0x4ad)])),_0x48ae34(0x6,_0x245a54[_0x46a43e(0x4b5)](_0x575351['LocalCacheService'])),_0x48ae34(0x7,_0x245a54[_0x46a43e(0x4b5)](_0x4a6424)),_0x48ae34(0x8,_0x5019cf[_0x46a43e(0x4e6)]),_0x48ae34(0x9,_0x5019cf[_0x46a43e(0x3b9)]),_0x48ae34(0xa,_0x5019cf[_0x46a43e(0x460)]),_0x48ae34(0xb,_0x38ce1a[_0x46a43e(0x48b)]),_0x48ae34(0xc,_0x5019cf[_0x46a43e(0x4e2)]),_0x48ae34(0xd,_0x5019cf['IUndoRedoService'])],_0x285dad);let _0xdb51bd=class extends _0x2fb10b{constructor(_0x5f0126,_0x1c285b,_0x5deac0,_0x207728,_0x180987,_0x411c63,_0x34c4e9,_0xe2bf9,_0xfd8327,_0x45180f,_0x340bfc){const _0x212c57=_0x46a43e;super(_0x5f0126,_0x1c285b,_0x5deac0,[],_0x207728,_0xe2bf9,_0x340bfc,_0x411c63,_0x34c4e9),_0x3a44bb(this,_0x212c57(0x4a1),_0x212c57(0x28b)),(this[_0x212c57(0x383)]=_0x180987,this[_0x212c57(0x433)]=_0xfd8327,this[_0x212c57(0x43f)]=_0x45180f);}[_0x46a43e(0x378)](_0x1b4acc){const _0x2112b7=_0x46a43e,_0x1c0874=this['_injector']['createInstance'](_0xf5d66b,this[_0x2112b7(0x166)],this[_0x2112b7(0x219)],this[_0x2112b7(0x4e8)],[_0x1b4acc],this['_handler']);return _0x1c0874[_0x2112b7(0x385)](),_0x1c0874;}[_0x46a43e(0x2dc)](_0x42c4cd){const _0x5cfaae=_0x46a43e;if(this[_0x5cfaae(0x454)](_0x42c4cd))return this[_0x5cfaae(0x383)][_0x5cfaae(0x431)](_0x28d07c,this[_0x5cfaae(0x166)],this[_0x5cfaae(0x219)],this[_0x5cfaae(0x4e8)],[],null,[_0x42c4cd],this['_handler']);try{const _0x548026=this[_0x5cfaae(0x43f)][_0x5cfaae(0x1d7)]([_0x42c4cd],[this[_0x5cfaae(0x4e8)]],!0x1);if(_0x38ce1a[_0x5cfaae(0x3f7)](_0x548026)){const {c1Prime:_0x2720de,c2Prime:_0x48448f}=_0x548026;this[_0x5cfaae(0x408)](_0x2720de[0x0]),_0x48448f[0x0][_0x5cfaae(0x167)]=this[_0x5cfaae(0x337)]();const _0xa3770e=this[_0x5cfaae(0x383)][_0x5cfaae(0x431)](_0xdb51bd,this['unitID'],this['type'],_0x48448f[0x0],this[_0x5cfaae(0x4dd)]);return _0xa3770e['_updateLocalCache'](),_0xa3770e;}return this[_0x5cfaae(0x2a8)](!0x1);}catch(_0x46a9ec){return this['_logService'][_0x5cfaae(0x3a0)](_0x46a9ec),this['_onConflict'](!0x1);}}['onRemoteAck'](_0x2c6f96){const _0x1b35b1=_0x46a43e,_0x50da41=this[_0x1b35b1(0x4a3)][_0x1b35b1(0x1cc)](this[_0x1b35b1(0x166)]);if(_0x2c6f96['revision']<_0x50da41-0x1)return this;if(this['_checkMissing'](_0x2c6f96))return this[_0x1b35b1(0x383)][_0x1b35b1(0x431)](_0x28d07c,this[_0x1b35b1(0x166)],this[_0x1b35b1(0x219)],null,[],this[_0x1b35b1(0x4e8)],[],this[_0x1b35b1(0x4dd)]);this[_0x1b35b1(0x17d)]();const _0x4dc8bf=this[_0x1b35b1(0x383)][_0x1b35b1(0x431)](_0x5a53e1,this[_0x1b35b1(0x166)],this[_0x1b35b1(0x219)],this[_0x1b35b1(0x4dd)]);return _0x4dc8bf[_0x1b35b1(0x385)](),_0x4dc8bf;}[_0x46a43e(0x1fb)](_0x383362){const _0x552457=_0x46a43e;return this['_onConflict'](!!(_0x383362!=null&&_0x383362[_0x552457(0x1b2)]));}[_0x46a43e(0x2d9)](){const _0x16ef34=_0x46a43e;return this[_0x16ef34(0x383)][_0x16ef34(0x431)](_0x3fc69e,this['unitID'],this['type'],this[_0x16ef34(0x4e8)],[],this[_0x16ef34(0x4dd)]);}[_0x46a43e(0x2d8)](){return this;}[_0x46a43e(0x472)](){const _0x4f71e8=_0x46a43e;this['_handler'][_0x4f71e8(0x3e4)](this[_0x4f71e8(0x4e8)]);}[_0x46a43e(0x2a8)](_0x6479cd){const _0x1e2a5a=_0x46a43e;return this[_0x1e2a5a(0x383)]['createInstance'](_0x5e1998,this[_0x1e2a5a(0x166)],this[_0x1e2a5a(0x219)],this[_0x1e2a5a(0x4e8)],[],this[_0x1e2a5a(0x4dd)],_0x6479cd);}};_0xdb51bd=_0x1b88b6([_0x48ae34(0x4,_0x245a54[_0x46a43e(0x4b5)](_0x245a54[_0x46a43e(0x236)])),_0x48ae34(0x5,_0x245a54['Inject'](_0x38ce1a[_0x46a43e(0x4ad)])),_0x48ae34(0x6,_0x245a54[_0x46a43e(0x4b5)](_0x575351['LocalCacheService'])),_0x48ae34(0x7,_0x5019cf[_0x46a43e(0x3b9)]),_0x48ae34(0x8,_0x5019cf['ILogService']),_0x48ae34(0x9,_0x38ce1a[_0x46a43e(0x48b)]),_0x48ae34(0xa,_0x5019cf[_0x46a43e(0x33a)])],_0xdb51bd);let _0xf5d66b=class extends _0x2fb10b{constructor(_0x5d3eab,_0x19eac0,_0x17753a,_0x4d410c,_0x1ccf8d,_0x4b2576,_0x9b7eed,_0x502ba9,_0x5a1b2d,_0x3f3608,_0x28308c,_0x55b41b){const _0x12d46a=_0x46a43e;super(_0x5d3eab,_0x19eac0,_0x17753a,_0x4d410c,_0x1ccf8d,_0x5a1b2d,_0x55b41b,_0x9b7eed,_0x502ba9),_0x3a44bb(this,_0x12d46a(0x4a1),_0x12d46a(0x3af)),(this[_0x12d46a(0x383)]=_0x4b2576,this[_0x12d46a(0x433)]=_0x3f3608,this[_0x12d46a(0x43f)]=_0x28308c);}[_0x46a43e(0x378)](_0x5e357a){return this['_pendingMutations']['push'](_0x5e357a),this;}[_0x46a43e(0x2dc)](_0x2ced1f){const _0xd6e529=_0x46a43e;if(this['_checkMissing'](_0x2ced1f))return this[_0xd6e529(0x383)]['createInstance'](_0x28d07c,this[_0xd6e529(0x166)],this[_0xd6e529(0x219)],this[_0xd6e529(0x4e8)],this[_0xd6e529(0x3b7)],null,[_0x2ced1f],this[_0xd6e529(0x4dd)]);try{const _0x2a6769=this[_0xd6e529(0x43f)]['transformChangesets']([_0x2ced1f],[this[_0xd6e529(0x4e8)]],!0x1);if(_0x38ce1a[_0xd6e529(0x3f7)](_0x2a6769)){const {c1Prime:_0x17b7b9,c2Prime:_0x50159d}=_0x2a6769,_0x5047d7=this[_0xd6e529(0x43f)]['transformMutationsWithChangeset'](_0x17b7b9[0x0],this[_0xd6e529(0x3b7)]);if(_0x38ce1a[_0xd6e529(0x41f)](_0x5047d7)){const {c1Prime:_0x30213c,m2Prime:_0x44ac86}=_0x5047d7;return this['_executeRemoteChangeset'](_0x30213c),_0x50159d[0x0][_0xd6e529(0x167)]=this[_0xd6e529(0x337)](),this['_injector'][_0xd6e529(0x431)](_0xf5d66b,this[_0xd6e529(0x166)],this[_0xd6e529(0x219)],_0x50159d[0x0],_0x44ac86,this[_0xd6e529(0x4dd)]);}throw _0x5047d7['error'];}throw _0x2a6769[_0xd6e529(0x3a0)];}catch(_0x4dcbc7){return this[_0xd6e529(0x433)]['error'](_0x4dcbc7),this[_0xd6e529(0x2a8)](!0x1);}}[_0x46a43e(0x452)](_0x2b5af8){const _0x2c262c=_0x46a43e;if(this['_checkMissing'](_0x2b5af8))return this[_0x2c262c(0x383)][_0x2c262c(0x431)](_0x28d07c,this['unitID'],this[_0x2c262c(0x219)],null,this[_0x2c262c(0x3b7)],this[_0x2c262c(0x4e8)],[],this[_0x2c262c(0x4dd)]);this[_0x2c262c(0x17d)]();const _0x1a015c=this[_0x2c262c(0x383)][_0x2c262c(0x431)](_0x285dad,this['unitID'],this[_0x2c262c(0x219)],this[_0x2c262c(0x3b7)],this['_handler']);return _0x1a015c[_0x2c262c(0x3f1)](),_0x1a015c['_updateLocalCache'](),_0x1a015c;}['onRemoteRej'](_0x32eaf4){const _0x32e132=_0x46a43e;return this[_0x32e132(0x2a8)](!!(_0x32eaf4!=null&&_0x32eaf4[_0x32e132(0x1b2)]));}[_0x46a43e(0x2d9)](){const _0x4cbdf9=_0x46a43e;return this[_0x4cbdf9(0x383)][_0x4cbdf9(0x431)](_0x3fc69e,this[_0x4cbdf9(0x166)],this['type'],this['_awaitingChangeset'],this[_0x4cbdf9(0x3b7)],this['_handler']);}[_0x46a43e(0x2d8)](){return this;}[_0x46a43e(0x472)](){const _0x6376bc=_0x46a43e;this[_0x6376bc(0x4dd)][_0x6376bc(0x3e4)](this[_0x6376bc(0x4e8)]);}[_0x46a43e(0x2a8)](_0x1bc354){const _0x404934=_0x46a43e;return this['_injector'][_0x404934(0x431)](_0x5e1998,this[_0x404934(0x166)],this[_0x404934(0x219)],null,this['_pendingMutations'],this[_0x404934(0x4dd)],_0x1bc354);}};_0xf5d66b=_0x1b88b6([_0x48ae34(0x5,_0x245a54[_0x46a43e(0x4b5)](_0x245a54['Injector'])),_0x48ae34(0x6,_0x245a54['Inject'](_0x38ce1a['RevisionService'])),_0x48ae34(0x7,_0x245a54[_0x46a43e(0x4b5)](_0x575351[_0x46a43e(0x2d1)])),_0x48ae34(0x8,_0x5019cf[_0x46a43e(0x3b9)]),_0x48ae34(0x9,_0x5019cf[_0x46a43e(0x4e6)]),_0x48ae34(0xa,_0x38ce1a[_0x46a43e(0x48b)]),_0x48ae34(0xb,_0x5019cf[_0x46a43e(0x33a)])],_0xf5d66b);let _0x5e1998=class extends _0x2fb10b{constructor(_0x240f91,_0xba7f29,_0x12bbf6,_0x143d91,_0xd3e70a,_0x239d0b=!0x1,_0x336cfa,_0x525b66,_0x46d1ee,_0x5e1cfd,_0xc080a,_0x9194e0,_0x8a1c72){const _0x2a4999=_0x46a43e;super(_0x240f91,_0xba7f29,_0x12bbf6,_0x143d91,_0xd3e70a,_0x525b66,_0x46d1ee,_0xc080a,_0x5e1cfd),_0x3a44bb(this,_0x2a4999(0x4a1),'conflict'),(this['_isPermissionRej']=_0x239d0b,this[_0x2a4999(0x1e0)]=_0x336cfa,this[_0x2a4999(0x508)]=_0x9194e0,this[_0x2a4999(0x2e1)]=_0x8a1c72,this[_0x2a4999(0x275)](),this[_0x2a4999(0x16d)](),this[_0x2a4999(0x4f1)]());}['appendMutation'](){return this;}[_0x46a43e(0x2dc)](){return this;}[_0x46a43e(0x452)](){return this;}['onRemoteRej'](){return this;}[_0x46a43e(0x2d9)](){return this;}[_0x46a43e(0x2d8)](){return this;}[_0x46a43e(0x472)](){const _0x4c433d=_0x46a43e;throw new Error(_0x4c433d(0x405));}[_0x46a43e(0x16d)](){const _0x3e61f4=_0x46a43e;this[_0x3e61f4(0x36e)][_0x3e61f4(0x484)](this[_0x3e61f4(0x166)],this[_0x3e61f4(0x219)],null,[]);}['_showConflictNotification'](){const _0x175b41=_0x46a43e;this[_0x175b41(0x3a6)]?this[_0x175b41(0x2e1)][_0x175b41(0x4f6)]({'title':this[_0x175b41(0x508)]['t'](_0x175b41(0x488)),'content':this[_0x175b41(0x508)]['t'](_0x175b41(0x1c8)),'type':_0x175b41(0x3a0),'duration':0x0}):this['_notificationService'][_0x175b41(0x4f6)]({'title':this[_0x175b41(0x508)]['t'](_0x175b41(0x23a)),'content':this[_0x175b41(0x508)]['t']('conflict.content'),'type':_0x175b41(0x3a0),'duration':0x0});}[_0x46a43e(0x4f1)](){const _0x18d0d5=_0x46a43e;this[_0x18d0d5(0x1e0)][_0x18d0d5(0x37d)](new _0x7f012d['WorkbookEditablePermission'](this[_0x18d0d5(0x166)])['id'],!0x1);}};_0x5e1998=_0x1b88b6([_0x48ae34(0x6,_0x245a54[_0x46a43e(0x4b5)](_0x5019cf[_0x46a43e(0x402)])),_0x48ae34(0x7,_0x5019cf['ICommandService']),_0x48ae34(0x8,_0x5019cf[_0x46a43e(0x33a)]),_0x48ae34(0x9,_0x245a54[_0x46a43e(0x4b5)](_0x575351[_0x46a43e(0x2d1)])),_0x48ae34(0xa,_0x245a54['Inject'](_0x38ce1a[_0x46a43e(0x4ad)])),_0x48ae34(0xb,_0x245a54['Inject'](_0x5019cf[_0x46a43e(0x3a5)])),_0x48ae34(0xc,_0x5138ef['INotificationService'])],_0x5e1998);let _0x3fc69e=class extends _0x2fb10b{constructor(_0x17437b,_0x5559ac,_0x309a89,_0x58f679,_0x138e6c,_0x372a83,_0x47483d,_0x273a6c,_0x5ad740,_0x1059b2){const _0x32a7e1=_0x46a43e;super(_0x17437b,_0x5559ac,_0x309a89,_0x58f679,_0x138e6c,_0x5ad740,_0x1059b2,_0x47483d,_0x273a6c),_0x3a44bb(this,_0x32a7e1(0x4a1),_0x32a7e1(0x4a4)),this['_injector']=_0x372a83;}[_0x46a43e(0x378)](_0xbe072e){const _0x24d2d1=_0x46a43e;return this[_0x24d2d1(0x3b7)][_0x24d2d1(0x23e)](_0xbe072e),this[_0x24d2d1(0x385)](),this;}[_0x46a43e(0x2dc)](_0x370fda){const _0x1a2679=_0x46a43e;throw new Error(_0x1a2679(0x498));}[_0x46a43e(0x452)](){throw new Error('[OfflineState]:\x20received\x20acknowledgement.');}[_0x46a43e(0x1fb)](){const _0x266269=_0x46a43e;throw new Error(_0x266269(0x235));}['toggleOffline'](){return this;}[_0x46a43e(0x2d8)](){const _0xdcc31f=_0x46a43e,{_injector:_0x346989,_pendingMutations:_0x5d1837,_awaitingChangeset:_0x7f68eb,unitID:_0x538eb8,_handler:_0x8fa594,type:_0x46fc32}=this,_0x3a12c2=_0x12ba56(_0x346989,_0x538eb8,_0x46fc32,_0x7f68eb,_0x5d1837,_0x8fa594);return _0x3a12c2 instanceof _0x285dad?_0x3a12c2['_schedule']():(_0x3a12c2 instanceof _0xf5d66b||_0x3a12c2 instanceof _0xdb51bd)&&_0x3a12c2[_0xdcc31f(0x472)](),_0x3a12c2;}['resend'](){throw new Error('[OfflineState]:\x20invalid\x20calling\x20to\x20`resend`.');}};_0x3fc69e=_0x1b88b6([_0x48ae34(0x5,_0x245a54[_0x46a43e(0x4b5)](_0x245a54['Injector'])),_0x48ae34(0x6,_0x245a54[_0x46a43e(0x4b5)](_0x38ce1a[_0x46a43e(0x4ad)])),_0x48ae34(0x7,_0x245a54[_0x46a43e(0x4b5)](_0x575351['LocalCacheService'])),_0x48ae34(0x8,_0x5019cf[_0x46a43e(0x3b9)]),_0x48ae34(0x9,_0x5019cf['IUndoRedoService'])],_0x3fc69e);let _0x28d07c=class extends _0x2fb10b{constructor(_0x176a54,_0x59fdd6,_0x64339,_0x1efd65,_0x4d7030,_0x235fd0,_0x33e3aa,_0xeb9b3c,_0x333fa1,_0x40f506,_0x5116b0,_0x176654,_0x2696e7,_0x1fb681){const _0x3ff192=_0x46a43e;super(_0x176a54,_0x59fdd6,_0x64339,_0x1efd65,_0x33e3aa,_0x176654,_0x2696e7,_0x333fa1,_0x40f506),_0x3a44bb(this,_0x3ff192(0x4a1),'fetch_missing'),(this[_0x3ff192(0x421)]=_0x4d7030,this[_0x3ff192(0x509)]=_0x235fd0,this['_injector']=_0xeb9b3c,this[_0x3ff192(0x433)]=_0x5116b0,this[_0x3ff192(0x43f)]=_0x1fb681);}[_0x46a43e(0x44e)](_0xdc6fa0){const _0x600fd=_0x46a43e;try{const _0x53ed34=[..._0xdc6fa0,...this[_0x600fd(0x509)]],_0x57b50c=[this['_awaitingChangeset']||this['_acknowledgedAwaitingChangeset']]['filter'](_0x594529=>!!_0x594529);let _0x11b7dd,_0x8f0368;if(_0x57b50c[_0x600fd(0x1bb)]){const _0xcd31b8=this[_0x600fd(0x43f)][_0x600fd(0x1d7)](_0x53ed34,_0x57b50c,!0x1);if(!_0x38ce1a[_0x600fd(0x3f7)](_0xcd31b8))throw _0xcd31b8[_0x600fd(0x3a0)];_0x11b7dd=_0xcd31b8[_0x600fd(0x2bc)],_0x8f0368=_0xcd31b8[_0x600fd(0x1e5)];}else _0x11b7dd=_0x53ed34,_0x8f0368=[];let _0x48ca56=this[_0x600fd(0x3b7)];_0x11b7dd[_0x600fd(0x39a)](_0x50d889=>{const _0x4bc919=_0x600fd;let _0xb39a6e;if(_0x48ca56[_0x4bc919(0x1bb)]){const _0x153e44=this['_transformService'][_0x4bc919(0x3ba)](_0x50d889,_0x48ca56);if(!_0x38ce1a['isTransformMutationsWithChangesetSuccess'](_0x153e44))throw _0x153e44[_0x4bc919(0x3a0)];_0xb39a6e=_0x153e44[_0x4bc919(0x2bc)],_0x48ca56=_0x153e44['m2Prime'];}else _0xb39a6e=_0x50d889;this[_0x4bc919(0x408)](_0xb39a6e);}),this[_0x600fd(0x421)]&&this[_0x600fd(0x17d)](),this[_0x600fd(0x4e8)]&&_0x8f0368['length']&&(_0x8f0368[0x0][_0x600fd(0x167)]=this[_0x600fd(0x337)]());let _0x5876d2;if(this[_0x600fd(0x4e8)]&&_0x48ca56['length']!==0x0)_0x5876d2=this[_0x600fd(0x383)][_0x600fd(0x431)](_0xf5d66b,this[_0x600fd(0x166)],this[_0x600fd(0x219)],_0x8f0368[0x0],_0x48ca56,this[_0x600fd(0x4dd)]);else{if(this[_0x600fd(0x4e8)]&&_0x48ca56[_0x600fd(0x1bb)]===0x0)_0x8f0368[0x0][_0x600fd(0x167)]=this[_0x600fd(0x337)](),_0x5876d2=this['_injector']['createInstance'](_0xdb51bd,this[_0x600fd(0x166)],this['type'],_0x8f0368[0x0],this[_0x600fd(0x4dd)]);else{if(_0x48ca56[_0x600fd(0x1bb)]!==0x0){const _0x31ae3f=this[_0x600fd(0x383)][_0x600fd(0x431)](_0x285dad,this[_0x600fd(0x166)],this[_0x600fd(0x219)],_0x48ca56,this[_0x600fd(0x4dd)]);_0x31ae3f[_0x600fd(0x3f1)](),_0x5876d2=_0x31ae3f;}else _0x5876d2=this[_0x600fd(0x383)][_0x600fd(0x431)](_0x5a53e1,this[_0x600fd(0x166)],this[_0x600fd(0x219)],this[_0x600fd(0x4dd)]);}}return _0x5876d2[_0x600fd(0x385)](),_0x5876d2;}catch(_0x7d6fb5){return this[_0x600fd(0x433)][_0x600fd(0x3a0)](_0x600fd(0x45f),_0x600fd(0x1b1),_0x7d6fb5),this[_0x600fd(0x383)][_0x600fd(0x431)](_0x5e1998,this[_0x600fd(0x166)],this[_0x600fd(0x219)],this[_0x600fd(0x4e8)],this[_0x600fd(0x3b7)],this['_handler'],!0x1);}}[_0x46a43e(0x472)](){const _0x5e817e=_0x46a43e;throw new Error(_0x5e817e(0x3f8));}[_0x46a43e(0x378)](_0x497f86){const _0x57ad2a=_0x46a43e;return this[_0x57ad2a(0x3b7)]['push'](_0x497f86),this;}[_0x46a43e(0x2dc)](_0x259b34){const _0x1d1417=_0x46a43e;return this[_0x1d1417(0x509)]['push'](_0x259b34),this;}[_0x46a43e(0x452)](_0x448ccb){const _0x19e508=_0x46a43e;if(this[_0x19e508(0x4e8)])return this[_0x19e508(0x421)]=this[_0x19e508(0x4e8)],this[_0x19e508(0x4e8)]=null,this;throw new Error('[FetchingMissState]:\x20not\x20expected\x20to\x20receive\x20ack\x20when\x20`this._awaitingChangeset`\x20is\x20null!');}[_0x46a43e(0x1fb)](_0xa4fbf7){const _0x431ec5=_0x46a43e;return this[_0x431ec5(0x2a8)](!!(_0xa4fbf7!=null&&_0xa4fbf7[_0x431ec5(0x1b2)]));}[_0x46a43e(0x2d9)](){const _0x552f2b=_0x46a43e;return this[_0x552f2b(0x383)][_0x552f2b(0x431)](_0x3fc69e,this[_0x552f2b(0x166)],this[_0x552f2b(0x219)],this[_0x552f2b(0x4e8)],this[_0x552f2b(0x3b7)],this['_handler']);}[_0x46a43e(0x2d8)](){return this;}['_onConflict'](_0x161df4){const _0x181236=_0x46a43e;return this[_0x181236(0x383)][_0x181236(0x431)](_0x5e1998,this[_0x181236(0x166)],this['type'],this['_awaitingChangeset'],this[_0x181236(0x3b7)],this['_handler'],_0x161df4);}};_0x28d07c=_0x1b88b6([_0x48ae34(0x7,_0x245a54[_0x46a43e(0x4b5)](_0x245a54['Injector'])),_0x48ae34(0x8,_0x245a54[_0x46a43e(0x4b5)](_0x38ce1a[_0x46a43e(0x4ad)])),_0x48ae34(0x9,_0x245a54[_0x46a43e(0x4b5)](_0x575351['LocalCacheService'])),_0x48ae34(0xa,_0x5019cf[_0x46a43e(0x4e6)]),_0x48ae34(0xb,_0x5019cf[_0x46a43e(0x3b9)]),_0x48ae34(0xc,_0x5019cf[_0x46a43e(0x33a)]),_0x48ae34(0xd,_0x38ce1a['ITransformService'])],_0x28d07c);function _0x12ba56(_0x1ab916,_0x1ee636,_0xe154b9,_0x54998e,_0x2975ce,_0x3db330){const _0x15a061=_0x46a43e;return _0x54998e&&_0x2975ce['length']?_0x1ab916[_0x15a061(0x431)](_0xf5d66b,_0x1ee636,_0xe154b9,_0x54998e,_0x2975ce,_0x3db330):_0x54998e?_0x1ab916[_0x15a061(0x431)](_0xdb51bd,_0x1ee636,_0xe154b9,_0x54998e,_0x3db330):_0x2975ce[_0x15a061(0x1bb)]?_0x1ab916[_0x15a061(0x431)](_0x285dad,_0x1ee636,_0xe154b9,_0x2975ce,_0x3db330):_0x1ab916[_0x15a061(0x431)](_0x5a53e1,_0x1ee636,_0xe154b9,_0x3db330);}var _0x2f88c8=Object[_0x46a43e(0x1c7)],_0x202be2=Object[_0x46a43e(0x1e9)],_0x4ee1c7=(_0x4b729e,_0x295994,_0x3c6071,_0x3667d1)=>{for(var _0x507fad=_0x3667d1>0x1?void 0x0:_0x3667d1?_0x202be2(_0x295994,_0x3c6071):_0x295994,_0x2c5a92=_0x4b729e['length']-0x1,_0x2101a8;_0x2c5a92>=0x0;_0x2c5a92--)(_0x2101a8=_0x4b729e[_0x2c5a92])&&(_0x507fad=(_0x3667d1?_0x2101a8(_0x295994,_0x3c6071,_0x507fad):_0x2101a8(_0x507fad))||_0x507fad);return _0x3667d1&&_0x507fad&&_0x2f88c8(_0x295994,_0x3c6071,_0x507fad),_0x507fad;},_0x3ecb27=(_0x47e578,_0x3bb050)=>(_0x18c67b,_0x20ed3c)=>_0x3bb050(_0x18c67b,_0x20ed3c,_0x47e578);_0x575351[_0x46a43e(0x3fb)]=class extends _0x5019cf[_0x46a43e(0x1c0)]{constructor(_0x41941e,_0x6c7de0,_0x5dc4fd){const _0x2aea6e=_0x46a43e;super(),_0x3a44bb(this,_0x2aea6e(0x4ec),new Map()),_0x3a44bb(this,'_entityInit$',new _0x54735b['Subject']()),(this['_injector']=_0x41941e,this['_collabSessionService']=_0x6c7de0,this['_univerInstanceService']=_0x5dc4fd,this['_init']());}['dispose'](){const _0x2c6f58=_0x46a43e;super['dispose'](),this[_0x2c6f58(0x4ec)][_0x2c6f58(0x39a)](_0x4fff90=>_0x4fff90[_0x2c6f58(0x173)]()),this[_0x2c6f58(0x4ec)][_0x2c6f58(0x4f4)]();}[_0x46a43e(0x4f7)](_0x18edbe){const _0x2d77e9=_0x46a43e;var _0x4e8e21;return(_0x4e8e21=this['_entities'][_0x2d77e9(0x2db)](_0x18edbe))!=null?_0x4e8e21:null;}['getCollabEntity$'](_0x15d9d4){const _0x479db1=_0x46a43e,_0x5d4f1f=this[_0x479db1(0x4f7)](_0x15d9d4);return _0x5d4f1f?_0x54735b['of'](_0x5d4f1f):this[_0x479db1(0x1be)][_0x479db1(0x4b0)](_0x33876a[_0x479db1(0x2a4)](_0x130522=>_0x130522[_0x479db1(0x166)]===_0x15d9d4));}[_0x46a43e(0x336)](){const _0x2e42f8=_0x46a43e;this[_0x2e42f8(0x397)][_0x2e42f8(0x1b5)](_0x5019cf[_0x2e42f8(0x28c)]['UNIVER_SHEET'])[_0x2e42f8(0x4b0)](_0x54735b[_0x2e42f8(0x41a)](this[_0x2e42f8(0x4a5)]),_0x33876a[_0x2e42f8(0x47b)](0x10))[_0x2e42f8(0x324)](async _0x136a95=>{const _0x4b962d=_0x2e42f8,_0x1ecf93=_0x136a95[_0x4b962d(0x2c6)](),_0x1f8ea9=await this[_0x4b962d(0x2e7)](_0x1ecf93,_0x4418d5[_0x4b962d(0x258)]);this[_0x4b962d(0x4ec)][_0x4b962d(0x3f3)](_0x1ecf93,_0x1f8ea9);}),this[_0x2e42f8(0x397)][_0x2e42f8(0x1b5)](_0x5019cf['UniverInstanceType'][_0x2e42f8(0x27d)])[_0x2e42f8(0x4b0)](_0x54735b[_0x2e42f8(0x41a)](this[_0x2e42f8(0x4a5)]),_0x33876a[_0x2e42f8(0x47b)](0x10))[_0x2e42f8(0x4b0)](_0x33876a['filter'](_0x13daaf=>!_0x13daaf[_0x2e42f8(0x2c6)]()['startsWith']('__')))['subscribe'](async _0x1e7c01=>{const _0x3da5fb=_0x2e42f8,_0x63e43e=_0x1e7c01[_0x3da5fb(0x2c6)](),_0x3971eb=await this['_startCollaboration'](_0x63e43e,_0x4418d5[_0x3da5fb(0x27d)]);this[_0x3da5fb(0x4ec)]['set'](_0x63e43e,_0x3971eb);}),_0x54735b[_0x2e42f8(0x3e1)](this[_0x2e42f8(0x397)]['getTypeOfUnitDisposed$'](_0x5019cf['UniverInstanceType'][_0x2e42f8(0x258)]),this[_0x2e42f8(0x397)][_0x2e42f8(0x371)](_0x5019cf['UniverInstanceType'][_0x2e42f8(0x27d)]))[_0x2e42f8(0x4b0)](_0x54735b['takeUntil'](this[_0x2e42f8(0x4a5)]))[_0x2e42f8(0x324)](_0x59dace=>{const _0x59bb4a=_0x2e42f8,_0xf70fc3=_0x59dace[_0x59bb4a(0x2c6)](),_0x1747c6=this[_0x59bb4a(0x4ec)][_0x59bb4a(0x2db)](_0xf70fc3);_0x1747c6&&(_0x1747c6[_0x59bb4a(0x173)](),this['_entities'][_0x59bb4a(0x352)](_0xf70fc3));});}async[_0x46a43e(0x2e7)](_0x1e7dcb,_0x2844a0){const _0x4e5c0a=_0x46a43e,_0x4815a5=await this[_0x4e5c0a(0x2b7)][_0x4e5c0a(0x33d)](_0x1e7dcb),_0x39bdca=this[_0x4e5c0a(0x383)][_0x4e5c0a(0x431)](this[_0x4e5c0a(0x19e)](_0x2844a0),_0x1e7dcb,_0x2844a0,_0x4815a5);return await _0x39bdca[_0x4e5c0a(0x3a7)](),this[_0x4e5c0a(0x1be)][_0x4e5c0a(0x230)](_0x39bdca),_0x39bdca;}[_0x46a43e(0x19e)](_0x405b5f){const _0x108b1d=_0x46a43e;switch(_0x405b5f){case _0x4418d5[_0x108b1d(0x27d)]:return _0x2b8edc;case _0x4418d5[_0x108b1d(0x258)]:return _0x21f2b6;default:throw new Error('[CollaborationController]:\x20invalid\x20univer\x20type:\x20'+_0x405b5f);}}},_0x575351[_0x46a43e(0x3fb)]=_0x4ee1c7([_0x5019cf[_0x46a43e(0x3b2)](_0x5019cf[_0x46a43e(0x2ed)][_0x46a43e(0x241)],_0x575351[_0x46a43e(0x3fb)]),_0x3ecb27(0x0,_0x245a54[_0x46a43e(0x4b5)](_0x245a54[_0x46a43e(0x236)])),_0x3ecb27(0x1,_0x245a54[_0x46a43e(0x4b5)](_0x575351[_0x46a43e(0x4be)])),_0x3ecb27(0x2,_0x5019cf['IUniverInstanceService'])],_0x575351[_0x46a43e(0x3fb)]);let _0xb2b867=class extends _0x5019cf[_0x46a43e(0x1c0)]{constructor(_0x311b57,_0x45a3e2,_0x4e2f24,_0x352ad8,_0x85cf79,_0x15b25b,_0x502d94,_0x2135e0,_0x2bff26,_0x39c2dc,_0x2f8fd4,_0x15b3ee,_0x10e6ad){const _0x21d580=_0x46a43e;super(),_0x3a44bb(this,_0x21d580(0x48e),new _0x54735b['BehaviorSubject'](null)),_0x3a44bb(this,_0x21d580(0x4a0),this[_0x21d580(0x48e)]['asObservable']()),_0x3a44bb(this,_0x21d580(0x4b4)),_0x3a44bb(this,'_collaborationPaused',!0x1),_0x3a44bb(this,_0x21d580(0x1e8),this[_0x21d580(0x4a0)]['pipe'](_0x33876a['map'](_0x30f093=>_0x30f093?_0x30f093[_0x21d580(0x4a1)]:_0x348409[_0x21d580(0x1b8)]),_0x33876a[_0x21d580(0x247)](0x1))),_0x3a44bb(this,_0x21d580(0x4eb),!0x1),_0x3a44bb(this,'_remoteChangesetQueue',[]),(this[_0x21d580(0x166)]=_0x311b57,this[_0x21d580(0x1c3)]=_0x45a3e2,this['_session']=_0x4e2f24,this['_injector']=_0x352ad8,this[_0x21d580(0x36e)]=_0x85cf79,this['_compressMutationService']=_0x15b25b,this[_0x21d580(0x508)]=_0x502d94,this[_0x21d580(0x4a3)]=_0x2135e0,this[_0x21d580(0x433)]=_0x2bff26,this[_0x21d580(0x34d)]=_0x39c2dc,this[_0x21d580(0x206)]=_0x2f8fd4,this[_0x21d580(0x1e0)]=_0x15b3ee,this['_singleActiveUnitService']=_0x10e6ad);}get['state'](){const _0x29fb0a=_0x46a43e;return this[_0x29fb0a(0x4b4)];}async[_0x46a43e(0x3a7)](){const _0x16fae9=_0x46a43e;if(this[_0x16fae9(0x468)])throw new Error(_0x16fae9(0x481));await this[_0x16fae9(0x336)]();}[_0x46a43e(0x237)](){const _0xec6f40=_0x46a43e;return this[_0xec6f40(0x2c4)]=!0x0,_0x5019cf[_0xec6f40(0x35e)](()=>{const _0x3ac7f5=_0xec6f40;this[_0x3ac7f5(0x2c4)]=!0x1,this['_exhaustRemoteChangesetQueue']();});}['_updateState'](_0x2a7852){const _0x89068e=_0x46a43e;this[_0x89068e(0x4b4)]=_0x2a7852,this[_0x89068e(0x48e)]['next'](_0x2a7852);}async[_0x46a43e(0x336)](){const _0x4734f5=_0x46a43e;var _0x1aeaad;return this['_updateState'](await this[_0x4734f5(0x1ee)]()),this[_0x4734f5(0x15a)]&&((_0x1aeaad=this[_0x4734f5(0x15a)])==null||_0x1aeaad[_0x4734f5(0x4f5)](this['unitID']),this[_0x4734f5(0x3e8)](_0x5019cf[_0x4734f5(0x35e)](this[_0x4734f5(0x15a)][_0x4734f5(0x48f)](this[_0x4734f5(0x166)])['subscribe'](_0x4949e7=>{const _0x597326=_0x4734f5;this[_0x597326(0x433)]['debug']('[CollaborationEntity]',_0x597326(0x3b0),_0x4949e7),_0x4949e7===_0x5c7c4a['OTHER_CLIENTS_EDITING']?(this[_0x597326(0x206)][_0x597326(0x4f6)]({'content':this[_0x597326(0x508)]['t'](_0x597326(0x368)),'type':_0x478174['MessageType'][_0x597326(0x1da)]}),this[_0x597326(0x1e0)]['updatePermissionPoint'](new _0x7f012d[(_0x597326(0x195))](this[_0x597326(0x166)])['id'],!0x1)):this['_permissionService'][_0x597326(0x37d)](new _0x7f012d['WorkbookEditablePermission'](this[_0x597326(0x166)])['id'],!0x0);})))),this[_0x4734f5(0x3e8)](_0x5019cf[_0x4734f5(0x35e)](this[_0x4734f5(0x2b8)]['sessionStatus$'][_0x4734f5(0x324)](_0x17d12f=>{const _0x4c07b3=_0x4734f5;_0x17d12f===_0x1ae891[_0x4c07b3(0x440)]?this[_0x4c07b3(0x1ba)]():_0x17d12f===_0x1ae891[_0x4c07b3(0x1b8)]&&this[_0x4c07b3(0x2c0)]();}))),this[_0x4734f5(0x3e8)](_0x5019cf[_0x4734f5(0x35e)](this[_0x4734f5(0x2b8)]['event$'][_0x4734f5(0x324)](_0x52b69e=>{const _0x1625d6=_0x4734f5;try{switch(_0x52b69e[_0x1625d6(0x24d)]){case _0x38ce1a['CollaborationEvent'][_0x1625d6(0x38d)]:{this[_0x1625d6(0x218)](_0x38ce1a[_0x1625d6(0x4db)](_0x52b69e[_0x1625d6(0x23f)]));break;}case _0x38ce1a[_0x1625d6(0x4cc)][_0x1625d6(0x4b7)]:{this[_0x1625d6(0x1bc)](_0x52b69e[_0x1625d6(0x23f)]);break;}case _0x38ce1a[_0x1625d6(0x4cc)][_0x1625d6(0x2f2)]:{this[_0x1625d6(0x4c5)]();break;}case _0x38ce1a[_0x1625d6(0x4cc)][_0x1625d6(0x31d)]:{this[_0x1625d6(0x245)](_0x52b69e[_0x1625d6(0x23f)]['changesets'][_0x1625d6(0x473)](_0x1aba1f=>_0x38ce1a[_0x1625d6(0x4db)](_0x1aba1f)));break;}case _0x38ce1a['CollaborationEvent']['PERMISSION_REJ']:this[_0x1625d6(0x4c5)]({'isPermissionRej':!0x0});}}catch(_0x3b0aa2){throw console[_0x1625d6(0x3a0)](_0x1625d6(0x3e6),_0x3b0aa2),_0x3b0aa2;}}))),this[_0x4734f5(0x4b4)];}[_0x46a43e(0x424)](){const _0x14a8e9=_0x46a43e;this[_0x14a8e9(0x4eb)]=!0x1;}[_0x46a43e(0x4e3)](){const _0x6ab553=_0x46a43e;if(this['_transitionLocked'])throw new Error(_0x6ab553(0x3fa));this[_0x6ab553(0x4eb)]=!0x0;}['_onLocalMutation'](_0x5174dd){const _0x1683ff=_0x46a43e;this[_0x1683ff(0x4e3)](),this[_0x1683ff(0x1af)](this[_0x1683ff(0x4b4)][_0x1683ff(0x378)](_0x5174dd)),this[_0x1683ff(0x424)]();}[_0x46a43e(0x218)](_0x1881ac){const _0xf6e133=_0x46a43e;if(!(_0x1881ac[_0xf6e133(0x1ca)]<=this['_revisionService']['getCurrentRevForDocument'](this[_0xf6e133(0x166)]))){if(this['_collaborationPaused']){this['_remoteChangesetQueue'][_0xf6e133(0x23e)](_0x1881ac);return;}this[_0xf6e133(0x192)](_0x1881ac);}}['_exhaustRemoteChangesetQueue'](){const _0x5d5f50=_0x46a43e;this[_0x5d5f50(0x281)][_0x5d5f50(0x39a)](_0x57e22f=>this['_applyRemoteChangeset'](_0x57e22f)),this[_0x5d5f50(0x281)]=[];}[_0x46a43e(0x192)](_0x91bcea){const _0x4921c1=_0x46a43e,_0x3779b3=this['_compressMutationService'][_0x4921c1(0x428)]['fetchThroughInterceptors'](this[_0x4921c1(0x261)]['interceptor']['getInterceptPoints']()[_0x4921c1(0x2a7)])(_0x91bcea[_0x4921c1(0x2c2)],null)||_0x91bcea[_0x4921c1(0x2c2)],_0x4f8b2d={..._0x91bcea,'mutations':_0x3779b3};this[_0x4921c1(0x4e3)](),this['_updateState'](this[_0x4921c1(0x4b4)]['onRemoteChangeset'](_0x4f8b2d)),this['_unlockTransition']();}[_0x46a43e(0x1bc)](_0x3cb18d){const _0x4a68c5=_0x46a43e;this[_0x4a68c5(0x4e3)](),this[_0x4a68c5(0x1af)](this['_state'][_0x4a68c5(0x452)](_0x3cb18d)),this[_0x4a68c5(0x424)]();}[_0x46a43e(0x4c5)](_0x488204){const _0x2d9948=_0x46a43e;this[_0x2d9948(0x4e3)](),this[_0x2d9948(0x1af)](this[_0x2d9948(0x4b4)][_0x2d9948(0x1fb)](_0x488204)),this['_unlockTransition']();}['_onFetchMissResult'](_0xc601fb){const _0x52fc33=_0x46a43e;if(!(this['_state']instanceof _0x28d07c))throw new TypeError(_0x52fc33(0x33c));const _0x241a20=_0xc601fb[_0x52fc33(0x473)](_0x2791b3=>{const _0x5a2121=_0x52fc33,_0xf0b90b=this[_0x5a2121(0x261)][_0x5a2121(0x428)][_0x5a2121(0x48a)](this[_0x5a2121(0x261)][_0x5a2121(0x428)][_0x5a2121(0x2c1)]()[_0x5a2121(0x2a7)])(_0x2791b3[_0x5a2121(0x2c2)],null)||_0x2791b3[_0x5a2121(0x2c2)];return{..._0x2791b3,'mutations':_0xf0b90b};});this[_0x52fc33(0x4e3)](),this['_updateState'](this[_0x52fc33(0x4b4)][_0x52fc33(0x44e)](_0x241a20)),this[_0x52fc33(0x424)]();}[_0x46a43e(0x2c0)](){const _0x3659cb=_0x46a43e;this[_0x3659cb(0x4e3)](),this[_0x3659cb(0x1af)](this[_0x3659cb(0x4b4)][_0x3659cb(0x2d9)]()),this['_unlockTransition']();}['_toggleOnline'](){const _0x309c6a=_0x46a43e;this['_lockTransition'](),this['_updateState'](this[_0x309c6a(0x4b4)][_0x309c6a(0x2d8)]()),this[_0x309c6a(0x424)]();}async[_0x46a43e(0x1ee)](){return new Promise(_0x2d6f4b=>{const _0x301457=_0x50f8;this[_0x301457(0x2b8)]['sessionStatus$']['pipe'](_0x33876a[_0x301457(0x341)](0x1))[_0x301457(0x324)](async _0x2e0876=>{const _0x4162bf=_0x301457;_0x2d6f4b(await this[_0x4162bf(0x49b)](_0x2e0876===_0x1ae891[_0x4162bf(0x440)]));});});}[_0x46a43e(0x1a0)](){const _0x360576=_0x46a43e,_0x508cb8=this[_0x360576(0x166)];return{'onStateChange':(_0xc557d8,_0x36661d)=>{const _0x3bb446=_0x360576;if(_0xc557d8!==this['_state'])throw new Error(_0x3bb446(0x325)+_0xc557d8[_0x3bb446(0x4a1)]+_0x3bb446(0x394)+_0x36661d[_0x3bb446(0x4a1)]+_0x3bb446(0x390)+this[_0x3bb446(0x4b4)][_0x3bb446(0x4a1)]);this[_0x3bb446(0x1af)](_0x36661d);},'onSendChangeset':_0x2ffcbd=>{const _0x16cb80=_0x360576,_0x2265c6={'eventID':_0x38ce1a['CollaborationEvent'][_0x16cb80(0x399)],'data':{'unitID':_0x2ffcbd['unitID'],'unitType':this[_0x16cb80(0x1c3)],'changeset':_0x2ffcbd,'memberID':this[_0x16cb80(0x2b8)][_0x16cb80(0x3bf)]()}};this[_0x16cb80(0x2b8)][_0x16cb80(0x175)](_0x2265c6,this[_0x16cb80(0x166)]);},'onMissingChangesets':({from:_0x5d8ea9,to:_0x4db7d6})=>{const _0x50ace7=_0x360576;this[_0x50ace7(0x433)][_0x50ace7(0x418)]('[CollaborationEntity]',_0x50ace7(0x465)+_0x5d8ea9+_0x50ace7(0x2c9)+_0x4db7d6);const _0x10e28c={'eventID':_0x38ce1a[_0x50ace7(0x4cc)][_0x50ace7(0x469)],'data':{'unitID':_0x508cb8,'unitType':this[_0x50ace7(0x1c3)],'from':_0x5d8ea9,'to':_0x4db7d6}};this['_session'][_0x50ace7(0x175)](_0x10e28c,this[_0x50ace7(0x166)]);}};}async[_0x46a43e(0x49b)](_0x5044d0){const _0x5023eb=_0x46a43e;var _0x4d3cc2,_0x2dda30;const _0x299ced=await this[_0x5023eb(0x36e)][_0x5023eb(0x444)](this[_0x5023eb(0x166)]),_0x4502ec=(_0x4d3cc2=_0x299ced==null?void 0x0:_0x299ced[_0x5023eb(0x2c2)])!=null?_0x4d3cc2:[],_0x880010=(_0x2dda30=_0x299ced==null?void 0x0:_0x299ced['awaitingChangeset'])!=null?_0x2dda30:null,_0x4ecec4=this[_0x5023eb(0x166)];try{this[_0x5023eb(0x416)](_0x880010,_0x4502ec);}catch(_0x14984b){this[_0x5023eb(0x433)][_0x5023eb(0x3a0)](_0x14984b);}const _0x383101=this['_createHandler']();if(_0x5044d0){const _0x17ab8d=_0x12ba56(this[_0x5023eb(0x383)],_0x4ecec4,this[_0x5023eb(0x1c3)],_0x880010,_0x4502ec,_0x383101);return _0x17ab8d instanceof _0x285dad?_0x17ab8d[_0x5023eb(0x3f1)]():(_0x17ab8d instanceof _0xf5d66b||_0x17ab8d instanceof _0xdb51bd)&&_0x17ab8d['resend'](),_0x17ab8d;}return this[_0x5023eb(0x383)][_0x5023eb(0x431)](_0x3fc69e,_0x4ecec4,this[_0x5023eb(0x1c3)],_0x880010,_0x4502ec,_0x383101);}[_0x46a43e(0x416)](_0x14963a,_0x320f07){const _0x5de30d=_0x46a43e;var _0x2280f6,_0x45824d;const _0x677580=this[_0x5de30d(0x261)][_0x5de30d(0x428)][_0x5de30d(0x48a)](this['_compressMutationService'][_0x5de30d(0x428)][_0x5de30d(0x2c1)]()[_0x5de30d(0x2a7)]);(_0x2280f6=_0x677580((_0x14963a==null?void 0x0:_0x14963a[_0x5de30d(0x2c2)])||[],null))==null||_0x2280f6[_0x5de30d(0x39a)](_0x3f93a3=>this[_0x5de30d(0x34d)][_0x5de30d(0x4ac)](_0x3f93a3['id'],_0x3f93a3[_0x5de30d(0x451)])),(_0x45824d=_0x677580(_0x320f07||[],null))==null||_0x45824d[_0x5de30d(0x39a)](_0x3a63c5=>this['_commandService']['executeCommand'](_0x3a63c5['id'],_0x3a63c5[_0x5de30d(0x451)]));}};_0xb2b867=_0x4ee1c7([_0x3ecb27(0x3,_0x245a54[_0x46a43e(0x4b5)](_0x245a54['Injector'])),_0x3ecb27(0x4,_0x245a54[_0x46a43e(0x4b5)](_0x575351['LocalCacheService'])),_0x3ecb27(0x5,_0x245a54['Inject'](_0x38ce1a[_0x46a43e(0x2b0)])),_0x3ecb27(0x6,_0x245a54[_0x46a43e(0x4b5)](_0x5019cf[_0x46a43e(0x3a5)])),_0x3ecb27(0x7,_0x245a54[_0x46a43e(0x4b5)](_0x38ce1a['RevisionService'])),_0x3ecb27(0x8,_0x5019cf[_0x46a43e(0x4e6)]),_0x3ecb27(0x9,_0x5019cf[_0x46a43e(0x3b9)]),_0x3ecb27(0xa,_0x5138ef['IMessageService']),_0x3ecb27(0xb,_0x5019cf[_0x46a43e(0x402)]),_0x3ecb27(0xc,_0x245a54[_0x46a43e(0x2b9)](_0x235b99))],_0xb2b867);let _0x2b8edc=class extends _0xb2b867{constructor(_0x7da42c,_0x3ed139,_0x250626,_0x4ecf6b,_0x4fcd2d,_0x57884c,_0x343dcc,_0x373e72,_0x434d94,_0x432f7d,_0xb31525,_0x5f04c3,_0x567d77,_0x55ee78,_0x2ea675,_0x3b578c,_0x42c482){const _0x546ce6=_0x46a43e;super(_0x7da42c,_0x3ed139,_0x250626,_0x4ecf6b,_0x4fcd2d,_0x57884c,_0x343dcc,_0x373e72,_0x567d77,_0x55ee78,_0x2ea675,_0x3b578c,_0x42c482),this['unitID']=_0x7da42c,this['type']=_0x3ed139,this[_0x546ce6(0x476)]=_0x250626,this['_docStateChangeManagerService']=_0x434d94,this[_0x546ce6(0x355)]=_0x432f7d,this[_0x546ce6(0x180)]=_0xb31525,this[_0x546ce6(0x2e6)]=_0x5f04c3;}['_createHandler'](){const _0x1589fe=_0x46a43e,_0xde91db=super[_0x1589fe(0x1a0)]();return _0xde91db['onTransformIME']=_0x5ea888=>this[_0x1589fe(0x355)][_0x1589fe(0x226)](_0x5ea888),_0xde91db[_0x1589fe(0x49a)]=_0x39e0ec=>this[_0x1589fe(0x180)][_0x1589fe(0x2d6)](_0x39e0ec),_0xde91db[_0x1589fe(0x278)]=_0x207912=>this[_0x1589fe(0x2e6)]['syncEditingCollabCursor'](_0x207912),_0xde91db[_0x1589fe(0x46d)]=_0x218b2e=>this[_0x1589fe(0x355)]['transformRemoteChangeset'](_0x218b2e),_0xde91db;}async[_0x46a43e(0x336)](){const _0x1002d1=_0x46a43e,_0xd6e270=await super['_init']();return this['_docStateChangeManagerService']['docStateChange$'][_0x1002d1(0x4b0)](_0x54735b[_0x1002d1(0x41a)](this[_0x1002d1(0x4a5)]))[_0x1002d1(0x324)](_0x1e6248=>{const _0x51e30a=_0x1002d1;if(_0x1e6248==null)return;const {unitId:_0xae51a5,redoState:_0x31217c,commandId:_0x26df89}=_0x1e6248;if(_0xae51a5!==this['unitID'])return;const _0x353bbc={'id':_0x26df89,'type':_0x5019cf[_0x51e30a(0x419)][_0x51e30a(0x483)],'params':{'unitId':_0xae51a5,'actions':_0x31217c[_0x51e30a(0x25e)],'textRanges':null}};this[_0x51e30a(0x2fb)](_0x353bbc);}),_0xd6e270;}};_0x2b8edc=_0x4ee1c7([_0x3ecb27(0x3,_0x245a54[_0x46a43e(0x4b5)](_0x245a54[_0x46a43e(0x236)])),_0x3ecb27(0x4,_0x245a54[_0x46a43e(0x4b5)](_0x575351[_0x46a43e(0x2d1)])),_0x3ecb27(0x5,_0x245a54[_0x46a43e(0x4b5)](_0x38ce1a[_0x46a43e(0x2b0)])),_0x3ecb27(0x6,_0x245a54[_0x46a43e(0x4b5)](_0x5019cf[_0x46a43e(0x3a5)])),_0x3ecb27(0x7,_0x245a54[_0x46a43e(0x4b5)](_0x38ce1a[_0x46a43e(0x4ad)])),_0x3ecb27(0x8,_0x245a54[_0x46a43e(0x4b5)](_0x38fb70[_0x46a43e(0x313)])),_0x3ecb27(0x9,_0x245a54[_0x46a43e(0x4b5)](_0xc2ebf4)),_0x3ecb27(0xa,_0x245a54[_0x46a43e(0x4b5)](_0x5cf952)),_0x3ecb27(0xb,_0x245a54[_0x46a43e(0x4b5)](_0x141f6f)),_0x3ecb27(0xc,_0x5019cf['ILogService']),_0x3ecb27(0xd,_0x5019cf[_0x46a43e(0x3b9)]),_0x3ecb27(0xe,_0x5138ef[_0x46a43e(0x434)]),_0x3ecb27(0xf,_0x5019cf['IPermissionService']),_0x3ecb27(0x10,_0x245a54[_0x46a43e(0x2b9)](_0x235b99))],_0x2b8edc);let _0x21f2b6=class extends _0xb2b867{constructor(_0x4c21e8,_0x521ed6,_0x1a7a4a,_0x42acf7,_0x12c6ed,_0x1e3f8b,_0x3d6d47,_0x58550f,_0x4e0229,_0x5975f3,_0x36122d,_0x25a065,_0x3743e0,_0x55acf1){const _0x296b19=_0x46a43e;super(_0x4c21e8,_0x521ed6,_0x1a7a4a,_0x42acf7,_0x12c6ed,_0x1e3f8b,_0x3d6d47,_0x58550f,_0x5975f3,_0x36122d,_0x25a065,_0x3743e0,_0x55acf1),this['unitID']=_0x4c21e8,this[_0x296b19(0x219)]=_0x521ed6,this[_0x296b19(0x476)]=_0x1a7a4a,this['_sheetTransformSelectionsService']=_0x4e0229;}['_createHandler'](){const _0xef58a2=_0x46a43e,_0x8f09b1=super[_0xef58a2(0x1a0)]();return _0x8f09b1[_0xef58a2(0x49a)]=_0x3f1873=>this['_sheetTransformSelectionsService'][_0xef58a2(0x2d6)](_0x3f1873),_0x8f09b1;}async['_init'](){const _0x5b028d=_0x46a43e,_0x100ad4=await super[_0x5b028d(0x336)]();return this[_0x5b028d(0x3e8)](this['_commandService']['onCommandExecuted']((_0x474124,_0x160669)=>{const _0x17b2e7=_0x5b028d;if(_0x474124[_0x17b2e7(0x219)]!==_0x5019cf[_0x17b2e7(0x419)]['MUTATION']||_0x160669!=null&&_0x160669['fromCollab']||_0x160669!=null&&_0x160669[_0x17b2e7(0x1a5)])return;const _0x582ff5=_0x474124['params'];if((_0x582ff5==null?void 0x0:_0x582ff5[_0x17b2e7(0x449)])!==this['unitID'])return;const _0x607c22=_0x474124,_0x2c325f=this[_0x17b2e7(0x261)][_0x17b2e7(0x428)][_0x17b2e7(0x48a)](this['_compressMutationService'][_0x17b2e7(0x428)][_0x17b2e7(0x2c1)]()['COMPRESS_MUTATION_SEND'])([_0x607c22],null)||[_0x607c22];this[_0x17b2e7(0x2fb)](_0x2c325f[0x0]);})),_0x100ad4;}};_0x21f2b6=_0x4ee1c7([_0x3ecb27(0x3,_0x245a54['Inject'](_0x245a54[_0x46a43e(0x236)])),_0x3ecb27(0x4,_0x245a54['Inject'](_0x575351[_0x46a43e(0x2d1)])),_0x3ecb27(0x5,_0x245a54[_0x46a43e(0x4b5)](_0x38ce1a[_0x46a43e(0x2b0)])),_0x3ecb27(0x6,_0x245a54[_0x46a43e(0x4b5)](_0x5019cf['LocaleService'])),_0x3ecb27(0x7,_0x245a54[_0x46a43e(0x4b5)](_0x38ce1a['RevisionService'])),_0x3ecb27(0x8,_0x245a54['Inject'](_0x20cd4b)),_0x3ecb27(0x9,_0x5019cf[_0x46a43e(0x4e6)]),_0x3ecb27(0xa,_0x5019cf[_0x46a43e(0x3b9)]),_0x3ecb27(0xb,_0x5138ef[_0x46a43e(0x434)]),_0x3ecb27(0xc,_0x5019cf['IPermissionService']),_0x3ecb27(0xd,_0x245a54['Optional'](_0x235b99))],_0x21f2b6);const _0x2a1de2=[_0x46a43e(0x360),_0x46a43e(0x4cf),_0x46a43e(0x194),'red300','blue400',_0x46a43e(0x47c)];class _0x10d691 extends _0x5019cf[_0x46a43e(0x32a)]{constructor(){const _0x109815=_0x46a43e;super(...arguments),_0x3a44bb(this,_0x109815(0x4bc),new Map()),_0x3a44bb(this,_0x109815(0x2a3),0x0);}['assignAColorForMemberID'](_0x3441b2){const _0x4b3c80=_0x46a43e;if(this[_0x4b3c80(0x4bc)][_0x4b3c80(0x209)](_0x3441b2))return this[_0x4b3c80(0x4bc)][_0x4b3c80(0x2db)](_0x3441b2);const _0x3a224a=_0x2a1de2[this['_colorIndex']];return this[_0x4b3c80(0x2a3)]=(this[_0x4b3c80(0x2a3)]+0x1)%_0x2a1de2[_0x4b3c80(0x1bb)],this['_assignedColors']['set'](_0x3441b2,_0x3a224a),_0x3a224a;}}var _0x55ffe6=Object[_0x46a43e(0x1c7)],_0x28d178=Object[_0x46a43e(0x1e9)],_0x5b2249=(_0x645fee,_0x3bbf07,_0x21c1eb,_0x405a60)=>{for(var _0x298205=_0x405a60>0x1?void 0x0:_0x405a60?_0x28d178(_0x3bbf07,_0x21c1eb):_0x3bbf07,_0x3bf487=_0x645fee['length']-0x1,_0x11c02d;_0x3bf487>=0x0;_0x3bf487--)(_0x11c02d=_0x645fee[_0x3bf487])&&(_0x298205=(_0x405a60?_0x11c02d(_0x3bbf07,_0x21c1eb,_0x298205):_0x11c02d(_0x298205))||_0x298205);return _0x405a60&&_0x298205&&_0x55ffe6(_0x3bbf07,_0x21c1eb,_0x298205),_0x298205;},_0x4ab804=(_0x1f6af1,_0x3b3d3d)=>(_0x2083b5,_0x2b0da9)=>_0x3b3d3d(_0x2083b5,_0x2b0da9,_0x1f6af1);const _0x1c04f8=0x12c,_0x1fab8b=0x64,_0x549eaf=()=>{let _0x26b6d6=[],_0x229417=!0x1;return _0x2bf152=>{const _0x1129f2=_0x50f8;_0x26b6d6[_0x1129f2(0x23e)](_0x2bf152),_0x229417||(_0x229417=!0x0,setTimeout(()=>{const _0x2a4d2a=_0x1129f2;_0x26b6d6[_0x2a4d2a(0x39a)](_0x8df80b=>_0x8df80b()),_0x26b6d6=[],_0x229417=!0x1;}));};};let _0x38323c=class extends _0x5019cf[_0x46a43e(0x1c0)]{constructor(_0x4b5dd1,_0x327fad,_0x398cfd,_0x587edb,_0x4f8e62,_0x1c9dcb,_0x5e827c,_0x177701){const _0xb6b79b=_0x46a43e;super(),_0x3a44bb(this,_0xb6b79b(0x248),!0x1),_0x3a44bb(this,_0xb6b79b(0x336),!0x1),_0x3a44bb(this,_0xb6b79b(0x375),new _0x54735b['BehaviorSubject'](new Map())),_0x3a44bb(this,_0xb6b79b(0x379),this[_0xb6b79b(0x375)][_0xb6b79b(0x26a)]()),_0x3a44bb(this,_0xb6b79b(0x26f),new _0x54735b[(_0xb6b79b(0x413))]([])),_0x3a44bb(this,_0xb6b79b(0x24b),this[_0xb6b79b(0x26f)]['pipe'](_0x54735b['debounceTime'](_0x1c04f8))),_0x3a44bb(this,_0xb6b79b(0x280),_0x37d11b((_0xbb66d4,_0x347754)=>{const _0x806b52=_0xb6b79b,_0x22802e={'eventID':_0x38ce1a['CollaborationEvent'][_0x806b52(0x403)],'data':{'unitID':this['unitID'],'memberID':this[_0x806b52(0x2b8)][_0x806b52(0x3bf)](),'selection':_0x2440ec[_0x806b52(0x3ac)](_0xbb66d4,_0x347754[_0x806b52(0x165)])}};this[_0x806b52(0x2b8)]['send'](_0x22802e,this[_0x806b52(0x166)]);},_0x1fab8b)),(this['unitID']=_0x4b5dd1,this[_0xb6b79b(0x2b8)]=_0x327fad,this['_injector']=_0x398cfd,this['_colorAssignService']=_0x587edb,this[_0xb6b79b(0x39b)]=_0x4f8e62,this[_0xb6b79b(0x397)]=_0x1c9dcb,this[_0xb6b79b(0x34d)]=_0x5e827c,this[_0xb6b79b(0x474)]=_0x177701);}get[_0x46a43e(0x2ce)](){const _0x30e43e=_0x46a43e;return this[_0x30e43e(0x375)][_0x30e43e(0x250)]();}get[_0x46a43e(0x3b5)](){const _0x52d149=_0x46a43e;return this[_0x52d149(0x26f)]['getValue']();}[_0x46a43e(0x173)](){const _0x3705ed=_0x46a43e;super['dispose'](),this[_0x3705ed(0x375)][_0x3705ed(0x230)](new Map()),this[_0x3705ed(0x375)]['complete'](),this[_0x3705ed(0x26f)]['next']([]),this['_roomMembers$']['complete']();}[_0x46a43e(0x3a7)](){const _0xde58ba=_0x46a43e;this[_0xde58ba(0x336)]||(this[_0xde58ba(0x336)]=!0x0,this['_session'][_0xde58ba(0x162)][_0xde58ba(0x4b0)](_0x54735b[_0xde58ba(0x41a)](this[_0xde58ba(0x4a5)]))[_0xde58ba(0x324)](_0x5cce05=>{_0x5cce05===_0x1ae891['ONLINE']?this['_toggleOnline']():this['_toggleOffline']();}),this[_0xde58ba(0x2b8)]['event$']['pipe'](_0x54735b['takeUntil'](this[_0xde58ba(0x4a5)]))[_0xde58ba(0x324)](_0x19fbe0=>{const _0x5b6268=_0xde58ba,_0x4fb546=_0x19fbe0['eventID'];_0x4fb546===_0x38ce1a[_0x5b6268(0x4cc)]['UPDATE_CURSOR']&&this['_onCursorUpdate'](_0x19fbe0),_0x4fb546===_0x38ce1a[_0x5b6268(0x4cc)]['USERS_LEAVE']&&this['_onCursorDelete'](_0x19fbe0);}),this['_onRefRangeChange'](),this[_0xde58ba(0x3e8)](this[_0xde58ba(0x34d)][_0xde58ba(0x366)](_0xe75d1=>{const _0x2fe0aa=_0xde58ba;if(this['_online']&&_0xe75d1['id']===_0x7f012d[_0x2fe0aa(0x27c)]['id']&&_0xe75d1[_0x2fe0aa(0x451)]['unitId']===this[_0x2fe0aa(0x166)]){const _0x4b9139=_0xe75d1[_0x2fe0aa(0x451)];this[_0x2fe0aa(0x280)](_0x4b9139['subUnitId'],_0x4b9139[_0x2fe0aa(0x4e4)][0x0]);}})));}[_0x46a43e(0x161)](_0x84001){const _0x38ece5=_0x46a43e;var _0x2d0dac,_0xd1b54c;const {memberID:_0x17b6ca,selection:_0x18887c}=_0x84001['data'],{sheetName:_0x166b36,range:_0x2562b1}=_0x2440ec['deserializeRangeWithSheet'](_0x18887c),_0x4c5bac={'name':(_0xd1b54c=(_0x2d0dac=this[_0x38ece5(0x39b)][_0x38ece5(0x4b9)](this['unitID'],_0x17b6ca))==null?void 0x0:_0x2d0dac['name'])!=null?_0xd1b54c:_0x38ece5(0x3ff),'range':this[_0x38ece5(0x1a4)](_0x166b36,_0x2562b1),'sheetID':_0x166b36,'color':this[_0x38ece5(0x184)][_0x38ece5(0x260)](_0x17b6ca),'selection':_0x18887c},_0x27d9bf=this[_0x38ece5(0x2ce)];_0x27d9bf[_0x38ece5(0x3f3)](_0x17b6ca,_0x4c5bac),this[_0x38ece5(0x375)]['next'](_0x27d9bf);}[_0x46a43e(0x244)](_0x138f35){const _0x4eecbb=_0x46a43e,{memberID:_0x55fddc}=_0x138f35[_0x4eecbb(0x23f)],_0x57337d=this[_0x4eecbb(0x2ce)];_0x57337d[_0x4eecbb(0x352)](_0x55fddc),this[_0x4eecbb(0x375)][_0x4eecbb(0x230)](_0x57337d);}[_0x46a43e(0x1a4)](_0x30fe82,_0x49d70f){const _0x507861=_0x46a43e;var _0x354a26,_0x433893;const _0x3003e7=(_0x433893=(_0x354a26=this['_univerInstanceService'][_0x507861(0x4e5)](this[_0x507861(0x166)]))==null?void 0x0:_0x354a26['getSheetBySheetId'](_0x30fe82))==null?void 0x0:_0x433893[_0x507861(0x437)]();return(_0x3003e7==null?void 0x0:_0x3003e7['find'](_0x18f50a=>_0x5019cf[_0x507861(0x1dd)][_0x507861(0x256)](_0x18f50a,_0x49d70f)))||_0x49d70f;}[_0x46a43e(0x28a)](){const _0x1fac22=_0x46a43e,_0x571cca=new _0x5019cf[(_0x1fac22(0x446))](),_0x2cbb32=_0x549eaf(),_0x38ee92=()=>{const _0x46d328=_0x1fac22;_0x571cca[_0x46d328(0x173)]();const _0x4e5577=(_0x3d6a33,_0x5ddefe,_0x214285,_0x11c46e)=>{const _0x25a848=_0x46d328;let _0x54c51f=[];switch(_0x3d6a33['id']){case _0x7f012d[_0x25a848(0x4b3)]['DeleteRangeMoveLeftCommandId']:{_0x54c51f=_0x7f012d[_0x25a848(0x177)](_0x3d6a33,_0x11c46e);break;}case _0x7f012d[_0x25a848(0x4b3)][_0x25a848(0x2ff)]:{_0x54c51f=_0x7f012d[_0x25a848(0x27a)](_0x3d6a33,_0x11c46e);break;}case _0x7f012d[_0x25a848(0x4b3)][_0x25a848(0x18c)]:{_0x54c51f=_0x7f012d['handleInsertCol'](_0x3d6a33,_0x11c46e);break;}case _0x7f012d[_0x25a848(0x4b3)][_0x25a848(0x4ff)]:{_0x54c51f=_0x7f012d[_0x25a848(0x328)](_0x3d6a33,_0x11c46e);break;}case _0x7f012d[_0x25a848(0x4b3)][_0x25a848(0x1e2)]:{_0x54c51f=_0x7f012d[_0x25a848(0x3a4)](_0x3d6a33,_0x11c46e);break;}case _0x7f012d[_0x25a848(0x4b3)][_0x25a848(0x228)]:{_0x54c51f=_0x7f012d[_0x25a848(0x164)](_0x3d6a33,_0x11c46e);break;}case _0x7f012d[_0x25a848(0x4b3)][_0x25a848(0x3a2)]:{_0x54c51f=_0x7f012d[_0x25a848(0x335)](_0x3d6a33,_0x11c46e);break;}case _0x7f012d[_0x25a848(0x4b3)]['RemoveColCommandId']:{_0x54c51f=_0x7f012d[_0x25a848(0x500)](_0x3d6a33,_0x11c46e);break;}case _0x7f012d[_0x25a848(0x4b3)]['RemoveRowCommandId']:{_0x54c51f=_0x7f012d[_0x25a848(0x183)](_0x3d6a33,_0x11c46e);break;}}const _0x464abb=_0x7f012d[_0x25a848(0x1e7)](_0x54c51f,_0x11c46e),_0x234110=this[_0x25a848(0x2ce)]['get'](_0x5ddefe);if(_0x234110&&_0x464abb){const _0x108900={..._0x234110,'range':_0x464abb};this[_0x25a848(0x2ce)]['set'](_0x5ddefe,_0x108900),_0x2cbb32(()=>{const _0x2bf0aa=_0x25a848,_0x15c827=this[_0x2bf0aa(0x474)]['registerRefRange'](_0x464abb,_0x231525=>(_0x15c827[_0x2bf0aa(0x173)](),_0x4e5577(_0x231525,_0x5ddefe,_0x214285,_0x464abb)));_0x571cca[_0x2bf0aa(0x43a)](_0x15c827);});}return{'redos':[],'undos':[]};};this['cursorInfo'][_0x46d328(0x39a)]((_0x5b5f13,_0xc5d206)=>{const _0x2d3a51=_0x46d328,{range:_0x2fbeed,sheetID:_0x2c08d6}=_0x5b5f13,_0x2e932e=this[_0x2d3a51(0x474)][_0x2d3a51(0x3b3)](_0x2fbeed,_0x217b2c=>(_0x2e932e[_0x2d3a51(0x173)](),_0x4e5577(_0x217b2c,_0xc5d206,_0x2c08d6,_0x2fbeed)));_0x571cca[_0x2d3a51(0x43a)](_0x2e932e);});};this[_0x1fac22(0x3e8)](_0x5019cf[_0x1fac22(0x35e)](this[_0x1fac22(0x375)][_0x1fac22(0x324)](()=>{_0x38ee92();})));}[_0x46a43e(0x1ba)](){const _0x11b0f3=_0x46a43e;var _0x5015df,_0x2e27df;if(this[_0x11b0f3(0x248)]=!0x0,((_0x5015df=this[_0x11b0f3(0x397)]['getFocusedUnit']())==null?void 0x0:_0x5015df[_0x11b0f3(0x2c6)]())!==this[_0x11b0f3(0x166)])return;const _0x45f73c=(_0x2e27df=this[_0x11b0f3(0x383)][_0x11b0f3(0x2db)](_0x7f012d[_0x11b0f3(0x3fe)])[_0x11b0f3(0x2fc)]())==null?void 0x0:_0x2e27df[0x0],_0x57517f=this[_0x11b0f3(0x397)][_0x11b0f3(0x21c)](_0x5019cf[_0x11b0f3(0x28c)][_0x11b0f3(0x258)])[_0x11b0f3(0x18a)]();_0x45f73c&&_0x57517f&&this[_0x11b0f3(0x280)](_0x57517f[_0x11b0f3(0x35b)](),_0x45f73c);}[_0x46a43e(0x2c0)](){this['_online']=!0x1;}};_0x38323c=_0x5b2249([_0x4ab804(0x2,_0x245a54[_0x46a43e(0x4b5)](_0x245a54['Injector'])),_0x4ab804(0x3,_0x245a54['Inject'](_0x10d691)),_0x4ab804(0x4,_0x245a54[_0x46a43e(0x4b5)](_0x4a6424)),_0x4ab804(0x5,_0x5019cf[_0x46a43e(0x4e2)]),_0x4ab804(0x6,_0x5019cf['ICommandService']),_0x4ab804(0x7,_0x245a54[_0x46a43e(0x4b5)](_0x7f012d[_0x46a43e(0x285)]))],_0x38323c);var _0x22a471=Object[_0x46a43e(0x1c7)],_0x32285b=Object['getOwnPropertyDescriptor'],_0x5dc2b5=(_0x212c45,_0x3bebec,_0x5e2483,_0x1108d0)=>{for(var _0x295ccf=_0x1108d0>0x1?void 0x0:_0x1108d0?_0x32285b(_0x3bebec,_0x5e2483):_0x3bebec,_0xce3802=_0x212c45['length']-0x1,_0x3de1d1;_0xce3802>=0x0;_0xce3802--)(_0x3de1d1=_0x212c45[_0xce3802])&&(_0x295ccf=(_0x1108d0?_0x3de1d1(_0x3bebec,_0x5e2483,_0x295ccf):_0x3de1d1(_0x295ccf))||_0x295ccf);return _0x1108d0&&_0x295ccf&&_0x22a471(_0x3bebec,_0x5e2483,_0x295ccf),_0x295ccf;},_0x5bf0f3=(_0x4120fc,_0x24c1c5)=>(_0x5ebe68,_0x1c169)=>_0x24c1c5(_0x5ebe68,_0x1c169,_0x4120fc);const _0x447abf=0x12c,_0x201f59=0x64;let _0x3a9f16=class extends _0x5019cf[_0x46a43e(0x1c0)]{constructor(_0x389ac5,_0x3b8b09,_0x4d8699,_0x146bf0,_0x365335,_0x3a960e,_0x182259,_0x299b7d,_0x5a85ca){const _0x297910=_0x46a43e;super(),_0x3a44bb(this,'_online',!0x1),_0x3a44bb(this,_0x297910(0x336),!0x1),_0x3a44bb(this,_0x297910(0x375),new _0x54735b[(_0x297910(0x413))](new Map())),_0x3a44bb(this,_0x297910(0x379),this[_0x297910(0x375)][_0x297910(0x26a)]()),_0x3a44bb(this,'_roomMembers$',new _0x54735b['BehaviorSubject']([])),_0x3a44bb(this,_0x297910(0x24b),this[_0x297910(0x26f)][_0x297910(0x4b0)](_0x54735b[_0x297910(0x20e)](_0x447abf))),_0x3a44bb(this,'_updateLocalCursor',_0x37d11b(_0x340d25=>{const _0x2d8748=_0x297910,_0x57f630={'eventID':_0x38ce1a[_0x2d8748(0x4cc)][_0x2d8748(0x403)],'data':{'unitID':this['unitID'],'memberID':this['_session'][_0x2d8748(0x3bf)](),'selection':_0x4b67ea(_0x340d25)}};this['_session'][_0x2d8748(0x175)](_0x57f630,this[_0x2d8748(0x166)]);},_0x201f59)),(this['unitID']=_0x389ac5,this[_0x297910(0x2b8)]=_0x3b8b09,this[_0x297910(0x383)]=_0x4d8699,this[_0x297910(0x184)]=_0x146bf0,this[_0x297910(0x39b)]=_0x365335,this[_0x297910(0x4da)]=_0x3a960e,this[_0x297910(0x43f)]=_0x182259,this['_univerInstanceService']=_0x299b7d,this[_0x297910(0x34d)]=_0x5a85ca);}get[_0x46a43e(0x2ce)](){const _0xb110ce=_0x46a43e;return this['_cursorInfo$'][_0xb110ce(0x250)]();}get[_0x46a43e(0x3b5)](){const _0x52f015=_0x46a43e;return this[_0x52f015(0x26f)]['getValue']();}[_0x46a43e(0x173)](){const _0x5e7992=_0x46a43e;super[_0x5e7992(0x173)](),this['_cursorInfo$'][_0x5e7992(0x230)](new Map()),this[_0x5e7992(0x375)]['complete'](),this['_roomMembers$'][_0x5e7992(0x230)]([]),this[_0x5e7992(0x26f)][_0x5e7992(0x2ae)]();}[_0x46a43e(0x3a7)](){const _0x574020=_0x46a43e;this[_0x574020(0x336)]||(this[_0x574020(0x336)]=!0x0,this[_0x574020(0x2b8)]['sessionStatus$']['pipe'](_0x54735b['takeUntil'](this['dispose$']))[_0x574020(0x324)](_0x2b49a3=>{const _0x54ea87=_0x574020;_0x2b49a3===_0x1ae891[_0x54ea87(0x440)]?this[_0x54ea87(0x1ba)]():this[_0x54ea87(0x2c0)]();}),this[_0x574020(0x2b8)][_0x574020(0x204)][_0x574020(0x4b0)](_0x54735b[_0x574020(0x41a)](this[_0x574020(0x4a5)]))[_0x574020(0x324)](_0x1bebc5=>{const _0x53ea21=_0x574020,_0x46cf14=_0x1bebc5['eventID'];_0x46cf14===_0x38ce1a['CollaborationEvent'][_0x53ea21(0x403)]&&this[_0x53ea21(0x161)](_0x1bebc5),_0x46cf14===_0x38ce1a[_0x53ea21(0x4cc)][_0x53ea21(0x414)]&&this['_onCursorDelete'](_0x1bebc5);}),this['disposeWithMe'](this[_0x574020(0x34d)][_0x574020(0x366)](_0x50a7eb=>{const _0x4cd807=_0x574020,_0x3f62eb=_0x50a7eb['params'];_0x3f62eb!=null&&this['_online']&&_0x50a7eb['id']===_0x38fb70['SetTextSelectionsOperation']['id']&&_0x3f62eb['unitId']===this[_0x4cd807(0x166)]&&_0x3f62eb[_0x4cd807(0x17f)]===!0x1&&this[_0x4cd807(0x280)](_0x3f62eb['ranges']);})),this[_0x574020(0x4da)]['collabCursorState$'][_0x574020(0x4b0)](_0x54735b['takeUntil'](this[_0x574020(0x4a5)]))[_0x574020(0x324)](_0x374478=>{const _0x5c4ec2=_0x574020;if((_0x374478==null?void 0x0:_0x374478[_0x5c4ec2(0x166)])!==this[_0x5c4ec2(0x166)])return;const _0xe72949={'eventID':_0x38ce1a[_0x5c4ec2(0x4cc)][_0x5c4ec2(0x403)],'data':_0x374478};this[_0x5c4ec2(0x161)](_0xe72949);}),this['disposeWithMe'](this[_0x574020(0x34d)][_0x574020(0x366)](_0x2905f7=>{const _0xa32842=_0x574020;if(_0x2905f7[_0xa32842(0x451)]==null)return;const _0x46ef0c=_0x2905f7[_0xa32842(0x451)];if(_0x2905f7['id']!==_0x38fb70[_0xa32842(0x338)]['id']||_0x46ef0c['unitId']!==this[_0xa32842(0x166)])return;const _0x184699={'id':_0xa32842(0x20c),'params':_0x46ef0c},_0x806138=this[_0xa32842(0x2ce)];for(const [_0x2a003c,_0xb125c0]of _0x806138){const _0x20688a={'id':'doc.mutation.rich-text-editing','params':{'unitId':this[_0xa32842(0x166)],'actions':null,'textRanges':_0xb125c0['ranges']}},_0x4d4380=this[_0xa32842(0x43f)][_0xa32842(0x432)](_0x184699,_0x20688a,!0x1);if(_0x38ce1a['isTransformMutationFailure'](_0x4d4380))throw _0x4d4380[_0xa32842(0x3a0)];_0x806138[_0xa32842(0x3f3)](_0x2a003c,{..._0xb125c0,'ranges':_0x4d4380[_0xa32842(0x35f)][_0xa32842(0x451)][_0xa32842(0x44a)]});}queueMicrotask(()=>{const _0x95ab68=_0xa32842;this['_cursorInfo$'][_0x95ab68(0x230)](_0x806138);});})));}['_onCursorUpdate'](_0xcfe0ff){const _0x3af8db=_0x46a43e;var _0x4b05d8,_0x1a50ea;const {memberID:_0x49d5d6,selection:_0x12d929}=_0xcfe0ff[_0x3af8db(0x23f)],_0x2560a6=_0x40ee5f(_0x12d929),_0x397615=(_0x1a50ea=(_0x4b05d8=this[_0x3af8db(0x39b)]['getMember'](this[_0x3af8db(0x166)],_0x49d5d6))==null?void 0x0:_0x4b05d8[_0x3af8db(0x450)])!=null?_0x1a50ea:'Unknown\x20user',_0xf4e222={'color':this['_colorAssignService'][_0x3af8db(0x260)](_0x49d5d6),'name':_0x397615,'ranges':_0x2560a6},_0x4dd7e3=this['cursorInfo'];_0x4dd7e3[_0x3af8db(0x3f3)](_0x49d5d6,_0xf4e222),this[_0x3af8db(0x375)][_0x3af8db(0x230)](_0x4dd7e3);}['_onCursorDelete'](_0xf31e0b){const _0x7df2bd=_0x46a43e,{memberID:_0x3c2a5e}=_0xf31e0b[_0x7df2bd(0x23f)],_0x66f05f=this[_0x7df2bd(0x2ce)];_0x66f05f[_0x7df2bd(0x352)](_0x3c2a5e),this['_cursorInfo$'][_0x7df2bd(0x230)](_0x66f05f);}[_0x46a43e(0x1ba)](){const _0x8ce593=_0x46a43e;var _0x1c0040;if(this[_0x8ce593(0x248)]=!0x0,((_0x1c0040=this[_0x8ce593(0x397)]['getFocusedUnit']())==null?void 0x0:_0x1c0040['getUnitId']())!==this[_0x8ce593(0x166)])return;const _0x4d3a8c=this['_injector'][_0x8ce593(0x2db)](_0x38fb70[_0x8ce593(0x3c2)])[_0x8ce593(0x2fc)](),_0x2115ce=_0x4d3a8c==null?void 0x0:_0x4d3a8c[_0x8ce593(0x473)](_0x38fb70[_0x8ce593(0x318)]);Array['isArray'](_0x2115ce)&&_0x2115ce[_0x8ce593(0x1bb)]>0x0&&this[_0x8ce593(0x280)](_0x2115ce);}[_0x46a43e(0x2c0)](){this['_online']=!0x1;}};_0x3a9f16=_0x5dc2b5([_0x5bf0f3(0x2,_0x245a54[_0x46a43e(0x4b5)](_0x245a54[_0x46a43e(0x236)])),_0x5bf0f3(0x3,_0x245a54['Inject'](_0x10d691)),_0x5bf0f3(0x4,_0x245a54['Inject'](_0x4a6424)),_0x5bf0f3(0x5,_0x245a54['Inject'](_0x141f6f)),_0x5bf0f3(0x6,_0x38ce1a[_0x46a43e(0x48b)]),_0x5bf0f3(0x7,_0x5019cf[_0x46a43e(0x4e2)]),_0x5bf0f3(0x8,_0x5019cf[_0x46a43e(0x3b9)])],_0x3a9f16);var _0x2c371e=Object[_0x46a43e(0x1c7)],_0x4bb99d=Object[_0x46a43e(0x1e9)],_0x555c89=(_0x5339bd,_0x3f3aa0,_0x55009e,_0x3a93b7)=>{const _0x33fca6=_0x46a43e;for(var _0x394c9d=_0x3a93b7>0x1?void 0x0:_0x3a93b7?_0x4bb99d(_0x3f3aa0,_0x55009e):_0x3f3aa0,_0x56fb12=_0x5339bd[_0x33fca6(0x1bb)]-0x1,_0x35bca4;_0x56fb12>=0x0;_0x56fb12--)(_0x35bca4=_0x5339bd[_0x56fb12])&&(_0x394c9d=(_0x3a93b7?_0x35bca4(_0x3f3aa0,_0x55009e,_0x394c9d):_0x35bca4(_0x394c9d))||_0x394c9d);return _0x3a93b7&&_0x394c9d&&_0x2c371e(_0x3f3aa0,_0x55009e,_0x394c9d),_0x394c9d;},_0x40978b=(_0x103e0b,_0x4895d5)=>(_0x488075,_0x5833d9)=>_0x4895d5(_0x488075,_0x5833d9,_0x103e0b);let _0x4a938f=class extends _0x5019cf['RxDisposable']{constructor(_0x1744ef,_0x40f5a5,_0x31cfea){const _0x542f7d=_0x46a43e;super(),_0x3a44bb(this,_0x542f7d(0x4ec),new Map()),_0x3a44bb(this,_0x542f7d(0x1be),new _0x54735b['Subject']()),(this[_0x542f7d(0x397)]=_0x1744ef,this['_injector']=_0x40f5a5,this[_0x542f7d(0x2b7)]=_0x31cfea,this['_init']());}[_0x46a43e(0x173)](){const _0x4d91e5=_0x46a43e;super[_0x4d91e5(0x173)](),this[_0x4d91e5(0x1be)]['complete'](),this[_0x4d91e5(0x4ec)][_0x4d91e5(0x39a)](_0x41d7db=>_0x41d7db[_0x4d91e5(0x173)]());}[_0x46a43e(0x3a3)](_0x25cc61){const _0x26d5c4=_0x46a43e;return this[_0x26d5c4(0x4ec)][_0x26d5c4(0x209)](_0x25cc61)?this[_0x26d5c4(0x4ec)][_0x26d5c4(0x2db)](_0x25cc61)[_0x26d5c4(0x379)]:this[_0x26d5c4(0x1be)][_0x26d5c4(0x4b0)](_0x54735b[_0x26d5c4(0x2a4)](_0x280485=>_0x280485['unitID']===_0x25cc61),_0x54735b[_0x26d5c4(0x426)](_0x1cf559=>_0x1cf559[_0x26d5c4(0x379)]));}[_0x46a43e(0x336)](){const _0x114d7b=_0x46a43e;this['_univerInstanceService']['getTypeOfUnitAdded$'](_0x5019cf['UniverInstanceType']['UNIVER_SHEET'])[_0x114d7b(0x4b0)](_0x54735b[_0x114d7b(0x41a)](this[_0x114d7b(0x4a5)]))[_0x114d7b(0x324)](async _0x18c767=>{const _0x283b4a=_0x114d7b,_0x498bea=_0x18c767[_0x283b4a(0x2c6)](),_0xedcc7e=await this[_0x283b4a(0x30a)](_0x498bea);this['_entityInit$'][_0x283b4a(0x230)](_0xedcc7e),this[_0x283b4a(0x4ec)][_0x283b4a(0x3f3)](_0x498bea,_0xedcc7e);}),this[_0x114d7b(0x397)][_0x114d7b(0x1b5)](_0x5019cf['UniverInstanceType'][_0x114d7b(0x27d)])[_0x114d7b(0x4b0)](_0x54735b[_0x114d7b(0x41a)](this[_0x114d7b(0x4a5)]))[_0x114d7b(0x4b0)](_0x54735b[_0x114d7b(0x2a4)](_0x10e632=>!_0x10e632[_0x114d7b(0x2c6)]()['startsWith']('__')))[_0x114d7b(0x324)](async _0x51d97f=>{const _0x440796=_0x114d7b,_0x1186ea=_0x51d97f[_0x440796(0x2c6)](),_0x418e14=await this['_startDocCollabCursor'](_0x1186ea);this['_entityInit$'][_0x440796(0x230)](_0x418e14),this[_0x440796(0x4ec)][_0x440796(0x3f3)](_0x1186ea,_0x418e14);}),_0x54735b[_0x114d7b(0x3e1)](this['_univerInstanceService'][_0x114d7b(0x371)](_0x5019cf[_0x114d7b(0x28c)][_0x114d7b(0x27d)]),this[_0x114d7b(0x397)][_0x114d7b(0x371)](_0x5019cf[_0x114d7b(0x28c)][_0x114d7b(0x258)]))[_0x114d7b(0x4b0)](_0x54735b[_0x114d7b(0x41a)](this[_0x114d7b(0x4a5)]))['subscribe'](_0x1b12b4=>{const _0x3c3a03=_0x114d7b,_0xf8c935=_0x1b12b4['getUnitId'](),_0x1f1b89=this[_0x3c3a03(0x4ec)]['get'](_0xf8c935);_0x1f1b89&&(_0x1f1b89[_0x3c3a03(0x173)](),this[_0x3c3a03(0x4ec)][_0x3c3a03(0x352)](_0xf8c935));});}async[_0x46a43e(0x30a)](_0x446390){const _0x5dddfd=_0x46a43e,_0x3c207c=await this['_collabSessionService'][_0x5dddfd(0x33d)](_0x446390),_0x1d0536=this[_0x5dddfd(0x383)][_0x5dddfd(0x431)](_0x38323c,_0x446390,_0x3c207c);return _0x1d0536[_0x5dddfd(0x3a7)](),_0x1d0536;}async[_0x46a43e(0x299)](_0x295fb2){const _0x7f6004=_0x46a43e,_0x370f1e=await this[_0x7f6004(0x2b7)]['requireSession'](_0x295fb2),_0x3209d5=this[_0x7f6004(0x383)][_0x7f6004(0x431)](_0x3a9f16,_0x295fb2,_0x370f1e);return _0x3209d5[_0x7f6004(0x3a7)](),_0x3209d5;}};_0x4a938f=_0x555c89([_0x5019cf[_0x46a43e(0x3b2)](_0x5019cf[_0x46a43e(0x2ed)]['Starting'],_0x4a938f),_0x40978b(0x0,_0x5019cf['IUniverInstanceService']),_0x40978b(0x1,_0x245a54[_0x46a43e(0x4b5)](_0x245a54['Injector'])),_0x40978b(0x2,_0x245a54[_0x46a43e(0x4b5)](_0x575351['CollaborationSessionService']))],_0x4a938f);const _0x4617f7=0x14,_0xd6959a=0xc8,_0x42e726=0x4,_0xee6bd7=0x5;function _0x27dfec(_0x132c88,_0x5e47e9){const _0x240c23=_0x46a43e;let {radius:_0x1e77e6,width:_0x5b38a2,height:_0x4f1eba}=_0x5e47e9;_0x1e77e6=_0x1e77e6!=null?_0x1e77e6:0x0,_0x5b38a2=_0x5b38a2!=null?_0x5b38a2:0x1e,_0x4f1eba=_0x4f1eba!=null?_0x4f1eba:0x1e;let _0x1fa0ed=0x0,_0x160a36=0x0,_0x569d29=0x0;_0x1fa0ed=_0x160a36=_0x569d29=Math[_0x240c23(0x2fd)](_0x1e77e6,_0x5b38a2/0x2,_0x4f1eba/0x2),_0x132c88['beginPath'](),_0x132c88[_0x240c23(0x4ef)](_0x1fa0ed,0x0),_0x132c88[_0x240c23(0x232)](_0x5b38a2-_0x160a36,0x0),_0x132c88['arc'](_0x5b38a2-_0x160a36,_0x160a36,_0x160a36,Math['PI']*0x3/0x2,0x0,!0x1),_0x132c88[_0x240c23(0x232)](_0x5b38a2,_0x4f1eba-_0x569d29),_0x132c88['arc'](_0x5b38a2-_0x569d29,_0x4f1eba-_0x569d29,_0x569d29,0x0,Math['PI']/0x2,!0x1),_0x132c88[_0x240c23(0x232)](0x0,_0x4f1eba),_0x132c88[_0x240c23(0x232)](0x0,_0x1fa0ed),_0x132c88[_0x240c23(0x4aa)](_0x1fa0ed,_0x1fa0ed,_0x1fa0ed,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x132c88[_0x240c23(0x19d)](),_0x5e47e9[_0x240c23(0x2d2)]&&(_0x132c88[_0x240c23(0x212)](),_0x132c88[_0x240c23(0x308)]=_0x5e47e9[_0x240c23(0x2d2)],_0x5e47e9['fillRule']===_0x240c23(0x2e5)?_0x132c88[_0x240c23(0x2d2)](_0x240c23(0x2e5)):_0x132c88[_0x240c23(0x2d2)](),_0x132c88[_0x240c23(0x36a)]());}class _0x450f66 extends _0x56ae03['Shape']{constructor(_0x370355,_0x42742a){const _0x2d9046=_0x46a43e;super(_0x370355,_0x42742a),_0x3a44bb(this,_0x2d9046(0x3c9)),_0x3a44bb(this,_0x2d9046(0x3ae)),(this['color']=_0x42742a==null?void 0x0:_0x42742a[_0x2d9046(0x3c9)],this['text']=_0x42742a==null?void 0x0:_0x42742a[_0x2d9046(0x3ae)]);}static[_0x46a43e(0x2d3)](_0x3ccb6d,_0x4a1bca){const _0x2aeda9=_0x46a43e,{text:_0x271598,color:_0x593b53}=_0x4a1bca;_0x3ccb6d[_0x2aeda9(0x212)](),_0x3ccb6d['font']=_0x2aeda9(0x262);const _0x59947=_0x3ccb6d['measureText'](_0x271598)[_0x2aeda9(0x412)],_0x307808=Math['min'](_0x59947+0x2*_0x42e726,_0xd6959a);_0x27dfec(_0x3ccb6d,{'height':_0x4617f7,'radius':0x4,'width':_0x307808,'fill':_0x593b53,'evented':!0x1}),_0x3ccb6d['fillStyle']=_0x2aeda9(0x38e);const _0x25134f=_0x42e726,_0xb3cfd5=_0x4617f7-_0xee6bd7,_0x36cc3f=_0xd6959a-0x2*_0x42e726;if(_0x59947>_0x36cc3f){let _0x5a3be6='',_0x109871=0x0;for(const _0x3844e0 of _0x271598){const _0x1ae884=_0x3ccb6d[_0x2aeda9(0x430)](_0x3844e0)[_0x2aeda9(0x412)];if(_0x109871+_0x1ae884<=_0x36cc3f-_0x3ccb6d['measureText'](_0x2aeda9(0x4c9))[_0x2aeda9(0x412)])_0x5a3be6+=_0x3844e0,_0x109871+=_0x1ae884;else{_0x5a3be6+=_0x2aeda9(0x4c9);break;}}_0x3ccb6d['fillText'](_0x5a3be6,_0x25134f,_0xb3cfd5);}else _0x3ccb6d['fillText'](_0x271598,_0x25134f,_0xb3cfd5);_0x3ccb6d[_0x2aeda9(0x36a)]();}['_draw'](_0xfc9215){const _0x2fda3e=_0x46a43e;_0x450f66[_0x2fda3e(0x2d3)](_0xfc9215,this);}}const _0xc6ca79=0x1,_0x36560e=1.5;class _0x985a81 extends _0x56ae03['Shape']{constructor(_0x2f376d,_0x7543f4){const _0x541ce3=_0x46a43e;super(_0x2f376d,_0x7543f4),_0x3a44bb(this,_0x541ce3(0x41e)),_0x3a44bb(this,_0x541ce3(0x363),!0x1),_0x3a44bb(this,_0x541ce3(0x404)),_0x3a44bb(this,_0x541ce3(0x220),''),_0x3a44bb(this,'_labelPosition',_0x541ce3(0x3da)),(_0x7543f4&&this[_0x541ce3(0x171)](_0x7543f4),this[_0x541ce3(0x32c)][_0x541ce3(0x381)](()=>this['setShapeProps']({'hovered':!0x0})),this[_0x541ce3(0x305)]['subscribeEvent'](()=>this['setShapeProps']({'hovered':!0x1})));}['setShapeProps'](_0x200e5a){const _0x234519=_0x46a43e;var _0x1d201f,_0x10055a,_0x65cee,_0x25b241,_0x143921;this[_0x234519(0x41e)]=(_0x1d201f=_0x200e5a[_0x234519(0x3c9)])!=null?_0x1d201f:this[_0x234519(0x41e)],this[_0x234519(0x363)]=(_0x10055a=_0x200e5a[_0x234519(0x499)])!=null?_0x10055a:this[_0x234519(0x363)],this[_0x234519(0x404)]=(_0x65cee=_0x200e5a['range'])!=null?_0x65cee:this[_0x234519(0x404)],this['_name']=(_0x25b241=_0x200e5a['name'])!=null?_0x25b241:this[_0x234519(0x220)],this[_0x234519(0x2f0)]=(_0x143921=_0x200e5a[_0x234519(0x27b)])!=null?_0x143921:this[_0x234519(0x2f0)],this[_0x234519(0x3d4)]({'width':_0x200e5a[_0x234519(0x412)],'height':_0x200e5a[_0x234519(0x4d8)]});}[_0x46a43e(0x291)](_0x371387){const _0x58cf7f=_0x46a43e,{row:_0x233b35,column:_0x57fd43}=_0x371387;if(_0x233b35>=this[_0x58cf7f(0x404)][_0x58cf7f(0x186)]&&_0x233b35<=this[_0x58cf7f(0x404)][_0x58cf7f(0x1a8)]&&_0x57fd43>=this['_range']['startColumn']&&_0x57fd43<=this[_0x58cf7f(0x404)][_0x58cf7f(0x389)]){this[_0x58cf7f(0x171)]({'hovered':!0x0});return;}this[_0x58cf7f(0x171)]({'hovered':!0x1});}[_0x46a43e(0x15d)](_0x2b590e){return!0x1;}['_draw'](_0x3ce0be){const _0x5d7aa6=_0x46a43e;_0x56ae03[_0x5d7aa6(0x1de)][_0x5d7aa6(0x2d3)](_0x3ce0be,{'width':this['width'],'height':this[_0x5d7aa6(0x4d8)],'strokeWidth':_0x36560e,'stroke':this[_0x5d7aa6(0x41e)],'evented':!0x1}),this[_0x5d7aa6(0x363)]&&(_0x3ce0be[_0x5d7aa6(0x212)](),_0x3ce0be[_0x5d7aa6(0x259)](0x1,0x0,0x0,0x1,this[_0x5d7aa6(0x412)],this[_0x5d7aa6(0x2f0)]===_0x5d7aa6(0x4d5)?0x0:-_0x4617f7),_0x450f66[_0x5d7aa6(0x2d3)](_0x3ce0be,{'text':this[_0x5d7aa6(0x220)],'color':this[_0x5d7aa6(0x41e)]}),_0x3ce0be[_0x5d7aa6(0x36a)]());}}var _0x3d2d47=Object[_0x46a43e(0x1c7)],_0x10bad4=Object[_0x46a43e(0x1e9)],_0x17565b=(_0x4bd1f1,_0x29ca24,_0x5a35e5,_0x2c1788)=>{const _0x161edc=_0x46a43e;for(var _0x4c7387=_0x2c1788>0x1?void 0x0:_0x2c1788?_0x10bad4(_0x29ca24,_0x5a35e5):_0x29ca24,_0x2d5a33=_0x4bd1f1[_0x161edc(0x1bb)]-0x1,_0x166280;_0x2d5a33>=0x0;_0x2d5a33--)(_0x166280=_0x4bd1f1[_0x2d5a33])&&(_0x4c7387=(_0x2c1788?_0x166280(_0x29ca24,_0x5a35e5,_0x4c7387):_0x166280(_0x4c7387))||_0x4c7387);return _0x2c1788&&_0x4c7387&&_0x3d2d47(_0x29ca24,_0x5a35e5,_0x4c7387),_0x4c7387;},_0x270bd7=(_0x5e3bb3,_0x35d0cc)=>(_0x447a28,_0x2712dc)=>_0x35d0cc(_0x447a28,_0x2712dc,_0x5e3bb3);const _0x4588a2=0x1389;let _0x22d685=class extends _0x5019cf[_0x46a43e(0x1c0)]{constructor(_0xe871a1,_0x252cb4,_0x393436,_0xdaf4c8){const _0x25f171=_0x46a43e;super(),_0x3a44bb(this,'_cursors',new Set()),_0x3a44bb(this,_0x25f171(0x221),null),(this[_0x25f171(0x3f6)]=_0xe871a1,this['_univerInstanceService']=_0x252cb4,this[_0x25f171(0x43e)]=_0x393436,this[_0x25f171(0x2da)]=_0xdaf4c8,this[_0x25f171(0x336)]());}get[_0x46a43e(0x243)](){const _0x32d5d7=_0x46a43e;return this[_0x32d5d7(0x43e)]['getRenderById'](this['_univerInstanceService'][_0x32d5d7(0x21c)](_0x5019cf['UniverInstanceType'][_0x32d5d7(0x258)])[_0x32d5d7(0x2c6)]())[_0x32d5d7(0x18f)](_0x1bea61[_0x32d5d7(0x276)]);}get[_0x46a43e(0x22f)](){const _0x13debe=_0x46a43e;return this[_0x13debe(0x397)][_0x13debe(0x21c)](_0x5019cf[_0x13debe(0x28c)][_0x13debe(0x258)])[_0x13debe(0x2c6)]();}['_init'](){const _0x5e7ef7=_0x46a43e;this['_sheetSkeletonManagerService']['currentSkeleton$']['pipe'](_0x33876a[_0x5e7ef7(0x41a)](this['dispose$']),_0x33876a[_0x5e7ef7(0x426)](_0x4e99a8=>{const _0x48f659=_0x5e7ef7;if(_0x4e99a8){const _0x119f29=_0x4e99a8[_0x48f659(0x46c)];return _0x54735b[_0x48f659(0x491)](this['_collabCursorController'][_0x48f659(0x3a3)](this[_0x48f659(0x22f)]),this[_0x48f659(0x2da)][_0x48f659(0x35d)])[_0x48f659(0x4b0)](_0x33876a['map'](([_0x56c164,_0x409689])=>{const _0x5a43ee=_0x48f659,_0x27be1c=new Map();return _0x56c164[_0x5a43ee(0x39a)]((_0x35587e,_0x182120)=>{const _0x495870=_0x5a43ee;if(_0x35587e[_0x495870(0x2cc)]===_0x119f29){const _0x4b5ed4={..._0x35587e};_0x4b5ed4[_0x495870(0x3c9)]=_0x409689[_0x35587e['color']],_0x27be1c[_0x495870(0x3f3)](_0x182120,_0x4b5ed4);}}),{'skeleton':_0x4e99a8,'cursors':_0x27be1c};}));}return _0x54735b['of']({'skeleton':null,'cursors':new Map()});}))[_0x5e7ef7(0x324)](({skeleton:_0x12ef0b,cursors:_0x13ea61})=>{const _0x5b2608=_0x5e7ef7;this[_0x5b2608(0x31e)](),_0x12ef0b&&this[_0x5b2608(0x18e)](_0x12ef0b,_0x13ea61);}),this[_0x5e7ef7(0x243)]['currentSkeleton$'][_0x5e7ef7(0x324)](_0x3cbdde=>{const _0x38b39d=_0x5e7ef7;if(_0x3cbdde==null)return;const {skeleton:_0x5b1ef4}=_0x3cbdde,_0x10afca=this[_0x38b39d(0x43e)][_0x38b39d(0x246)](this['_unitId']),{scene:_0x18f165}=_0x10afca;_0x18f165[_0x38b39d(0x300)][_0x38b39d(0x381)](_0x37d11b(_0x2baff5=>{const _0x317e81=_0x38b39d;var _0x1ac69c,_0x52256a;const {offsetX:_0x4a208e,offsetY:_0x447c20}=_0x2baff5,{x:_0x25359f,y:_0x55846b}=_0x18f165[_0x317e81(0x1b7)](_0x56ae03[_0x317e81(0x193)][_0x317e81(0x475)]([_0x4a208e,_0x447c20])),{scaleX:_0x114281,scaleY:_0x38e230}=_0x18f165[_0x317e81(0x3ef)](),_0x1e4921=_0x18f165[_0x317e81(0x425)](_0x1bea61['VIEWPORT_KEY'][_0x317e81(0x24c)]),_0x1e2e83=_0x18f165[_0x317e81(0x25b)](_0x56ae03[_0x317e81(0x193)][_0x317e81(0x475)]([_0x25359f,_0x55846b]),_0x1e4921),_0x39e104=_0x5b1ef4[_0x317e81(0x4fc)](_0x4a208e,_0x447c20,_0x114281,_0x38e230,_0x1e2e83);((_0x1ac69c=this[_0x317e81(0x221)])==null?void 0x0:_0x1ac69c['column'])===_0x39e104[_0x317e81(0x172)]&&((_0x52256a=this[_0x317e81(0x221)])==null?void 0x0:_0x52256a['row'])===_0x39e104[_0x317e81(0x304)]||this[_0x317e81(0x455)][_0x317e81(0x39a)](_0x37eaf0=>{const _0x404d1e=_0x317e81;_0x37eaf0[_0x404d1e(0x291)](_0x39e104);});},0x64));});}[_0x46a43e(0x18e)](_0x2e415e,_0x48d42e){const _0x4da7a4=_0x46a43e;var _0x2efe92;const _0xbd82d1=(_0x2efe92=this[_0x4da7a4(0x243)][_0x4da7a4(0x4f0)]())==null?void 0x0:_0x2efe92['skeleton'];if(!_0xbd82d1)return;const _0x566384=this[_0x4da7a4(0x4c0)]();if(!_0x566384)return;this[_0x4da7a4(0x455)][_0x4da7a4(0x39a)](_0xf009f6=>{const _0x13b0d2=_0x4da7a4;_0xf009f6[_0x13b0d2(0x320)]();});const {scene:_0x23b9f0}=_0x566384,_0x17f876=_0x45f265(Array[_0x4da7a4(0x380)](_0x48d42e[_0x4da7a4(0x3d8)]()))[_0x4da7a4(0x473)](_0x4ed19c=>{const _0xb09f18=_0x4da7a4,{color:_0x457625,range:_0x2085e1,name:_0x2126fa,selection:_0x15a2c6,sheetID:_0x2e26ec}=_0x4ed19c,{startColumn:_0x20d60c,startRow:_0xe56dc3,endColumn:_0x10a77e,endRow:_0x56a85e}=_0x2085e1,_0x24ef1a=_0x1bea61[_0xb09f18(0x174)](_0xe56dc3,_0x20d60c,_0x23b9f0,_0xbd82d1),_0x1cffe4=_0x1bea61[_0xb09f18(0x174)](_0x56a85e,_0x10a77e,_0x23b9f0,_0xbd82d1),{columnHeaderHeightAndMarginTop:_0x582bb6}=_0xbd82d1,{startX:_0x14b08e,startY:_0x23d188}=_0x24ef1a,{endX:_0x3dfcfb,endY:_0x32d612}=_0x1cffe4,_0x93bf67=_0x3dfcfb-_0x14b08e,_0x54c5f0=_0x32d612-_0x23d188,_0x858cfe={'labelPosition':_0x23d188-_0x582bb6>=_0x4617f7?'top':_0xb09f18(0x4d5),'sheetID':_0x2e26ec,'range':_0x2085e1,'color':_0x457625,'name':_0x2126fa,'selection':_0x15a2c6,'left':_0x14b08e,'top':_0x23d188,'width':_0x93bf67,'height':_0x54c5f0,'evented':!0x1,'zIndex':_0x4588a2};return new _0x985a81(_0x2126fa,_0x858cfe);});_0x23b9f0['addObjects'](_0x17f876,_0xc6ca79),this[_0x4da7a4(0x455)]=new Set(_0x17f876);}[_0x46a43e(0x31e)](){var _0x579fdc;(_0x579fdc=this['_cursors'])==null||_0x579fdc['forEach'](_0x5eff87=>_0x5eff87['dispose']());}[_0x46a43e(0x4c0)](){const _0x298972=_0x46a43e;return _0x1bea61['getSheetObject'](this['_univerInstanceService'],this[_0x298972(0x43e)]);}};_0x22d685=_0x17565b([_0x5019cf[_0x46a43e(0x3b2)](_0x5019cf[_0x46a43e(0x2ed)][_0x46a43e(0x3e9)],_0x22d685),_0x270bd7(0x0,_0x245a54[_0x46a43e(0x4b5)](_0x4a938f)),_0x270bd7(0x1,_0x5019cf[_0x46a43e(0x4e2)]),_0x270bd7(0x2,_0x56ae03[_0x46a43e(0x1db)]),_0x270bd7(0x3,_0x245a54[_0x46a43e(0x4b5)](_0x5019cf[_0x46a43e(0x1a6)]))],_0x22d685);function _0x45f265(_0x1f8479){const _0x3a704c=_0x46a43e,_0x13f3ea=new Map();return _0x1f8479['forEach'](_0x508a5f=>{const _0x475eb3=_0x50f8;if(_0x13f3ea[_0x475eb3(0x209)](_0x508a5f[_0x475eb3(0x348)])){const _0x17c75b=_0x13f3ea[_0x475eb3(0x2db)](_0x508a5f[_0x475eb3(0x348)]);_0x17c75b['name']+=',\x20'+_0x508a5f[_0x475eb3(0x450)];}else _0x13f3ea[_0x475eb3(0x3f3)](_0x508a5f[_0x475eb3(0x348)],_0x508a5f);}),Array[_0x3a704c(0x380)](_0x13f3ea[_0x3a704c(0x3d8)]());}var _0x4e8b30=function(){const _0x22343d=_0x46a43e;return _0x4e8b30=Object[_0x22343d(0x34f)]||function(_0x2e53cd){const _0x1122d7=_0x22343d;for(var _0xa344f1,_0x23ae1d=0x1,_0x2013ff=arguments['length'];_0x23ae1d<_0x2013ff;_0x23ae1d++){_0xa344f1=arguments[_0x23ae1d];for(var _0x123936 in _0xa344f1)Object[_0x1122d7(0x30f)][_0x1122d7(0x21b)]['call'](_0xa344f1,_0x123936)&&(_0x2e53cd[_0x123936]=_0xa344f1[_0x123936]);}return _0x2e53cd;},_0x4e8b30[_0x22343d(0x47a)](this,arguments);},_0x3f97cd=function(_0x14e6ec,_0x485a32){const _0x1fbd98=_0x46a43e;var _0x3ac617={};for(var _0x218391 in _0x14e6ec)Object['prototype'][_0x1fbd98(0x21b)]['call'](_0x14e6ec,_0x218391)&&_0x485a32[_0x1fbd98(0x3c3)](_0x218391)<0x0&&(_0x3ac617[_0x218391]=_0x14e6ec[_0x218391]);if(_0x14e6ec!=null&&typeof Object[_0x1fbd98(0x1fa)]==_0x1fbd98(0x3b8)){for(var _0x3a7ff1=0x0,_0x218391=Object['getOwnPropertySymbols'](_0x14e6ec);_0x3a7ff1<_0x218391['length'];_0x3a7ff1++)_0x485a32[_0x1fbd98(0x3c3)](_0x218391[_0x3a7ff1])<0x0&&Object[_0x1fbd98(0x30f)]['propertyIsEnumerable'][_0x1fbd98(0x4fd)](_0x14e6ec,_0x218391[_0x3a7ff1])&&(_0x3ac617[_0x218391[_0x3a7ff1]]=_0x14e6ec[_0x218391[_0x3a7ff1]]);}return _0x3ac617;},_0x2e3a68=_0x7a0305['forwardRef'](function(_0x84aee0,_0x87c578){const _0x20294e=_0x46a43e;var _0x1cf6a3=_0x84aee0[_0x20294e(0x501)],_0x5565fb=_0x84aee0['id'],_0x3fb9d2=_0x84aee0[_0x20294e(0x349)],_0x46bc87=_0x84aee0[_0x20294e(0x2fa)],_0x85a8cf=_0x3f97cd(_0x84aee0,[_0x20294e(0x501),'id',_0x20294e(0x349),_0x20294e(0x2fa)]),_0x370679=_0x20294e(0x3ca)[_0x20294e(0x3c6)](_0x5565fb,'\x20')[_0x20294e(0x3c6)](_0x3fb9d2||'')[_0x20294e(0x44c)](),_0x4f8dcb=_0x7a0305['useRef']('_'['concat'](_0x2745cd()));return _0x477768(_0x1cf6a3,''[_0x20294e(0x3c6)](_0x5565fb),{'defIds':_0x1cf6a3[_0x20294e(0x34a)],'idSuffix':_0x4f8dcb[_0x20294e(0x3d5)]},_0x4e8b30({'ref':_0x87c578,'className':_0x370679},_0x85a8cf),_0x46bc87);});function _0x477768(_0x4cf628,_0x293a8e,_0xbb7782,_0x14fa0e,_0x4bbd19){const _0x5d4cc6=_0x46a43e;return _0x7a0305[_0x5d4cc6(0x32d)](_0x4cf628[_0x5d4cc6(0x187)],_0x4e8b30(_0x4e8b30({'key':_0x293a8e},_0x257473(_0x4cf628,_0xbb7782,_0x4bbd19)),_0x14fa0e),(_0x18ac37(_0x4cf628,_0xbb7782)['children']||[])[_0x5d4cc6(0x473)](function(_0x10a0ae,_0x1b4e78){const _0x213830=_0x5d4cc6;return _0x477768(_0x10a0ae,''['concat'](_0x293a8e,'-')[_0x213830(0x3c6)](_0x4cf628[_0x213830(0x187)],'-')[_0x213830(0x3c6)](_0x1b4e78),_0xbb7782,void 0x0,_0x4bbd19);}));}function _0x257473(_0x50b684,_0x369fb6,_0x31d47e){const _0x30f832=_0x46a43e;var _0x5db1a5=_0x4e8b30({},_0x50b684['attrs']);_0x31d47e!=null&&_0x31d47e[_0x30f832(0x46b)]&&_0x5db1a5['fill']===_0x30f832(0x46b)&&(_0x5db1a5['fill']=_0x31d47e[_0x30f832(0x46b)]);var _0x1c6128=_0x369fb6['defIds'];return!_0x1c6128||_0x1c6128[_0x30f832(0x1bb)]===0x0||(_0x50b684[_0x30f832(0x187)]===_0x30f832(0x339)&&_0x5db1a5[_0x30f832(0x22a)]&&(_0x5db1a5[_0x30f832(0x22a)]=_0x5db1a5[_0x30f832(0x22a)]+_0x369fb6[_0x30f832(0x1ce)]),Object[_0x30f832(0x410)](_0x5db1a5)[_0x30f832(0x39a)](function(_0x3d3684){const _0x263f53=_0x30f832;var _0x5b1382=_0x3d3684[0x0],_0x23ccef=_0x3d3684[0x1];typeof _0x23ccef=='string'&&(_0x5db1a5[_0x5b1382]=_0x23ccef[_0x263f53(0x439)](/url\(#(.*)\)/,_0x263f53(0x2d4)['concat'](_0x369fb6[_0x263f53(0x1ce)],')')));})),_0x5db1a5;}function _0x18ac37(_0x1692d5,_0x368ecb){const _0x557752=_0x46a43e;var _0x3708f4,_0x329e17=_0x368ecb[_0x557752(0x34a)];return!_0x329e17||_0x329e17[_0x557752(0x1bb)]===0x0?_0x1692d5:_0x1692d5[_0x557752(0x187)]===_0x557752(0x45d)&&(!((_0x3708f4=_0x1692d5[_0x557752(0x264)])===null||_0x3708f4===void 0x0)&&_0x3708f4[_0x557752(0x1bb)])?_0x4e8b30(_0x4e8b30({},_0x1692d5),{'children':_0x1692d5['children']['map'](function(_0x55b8a0){const _0x387956=_0x557752;return typeof _0x55b8a0[_0x387956(0x343)]['id']==_0x387956(0x4ab)&&_0x329e17&&_0x329e17[_0x387956(0x3c3)](_0x55b8a0['attrs']['id'])>-0x1?_0x4e8b30(_0x4e8b30({},_0x55b8a0),{'attrs':_0x4e8b30(_0x4e8b30({},_0x55b8a0[_0x387956(0x343)]),{'id':_0x55b8a0[_0x387956(0x343)]['id']+_0x368ecb[_0x387956(0x1ce)]})}):_0x55b8a0;})}):_0x1692d5;}function _0x2745cd(){const _0x2ecf99=_0x46a43e;return Math['random']()[_0x2ecf99(0x1f2)](0x24)[_0x2ecf99(0x1c6)](0x2,0x8);}_0x2e3a68[_0x46a43e(0x4a2)]='UniverIcon';var _0x3ad01a={'tag':_0x46a43e(0x1d4),'attrs':{'fill':_0x46a43e(0x26c),'viewBox':'0\x200\x2016\x2016','width':'1em','height':_0x46a43e(0x1c2)},'children':[{'tag':'g','attrs':{'clipPath':'url(#off-line-single_clip0_910_343)'},'children':[{'tag':'path','attrs':{'stroke':_0x46a43e(0x283),'d':_0x46a43e(0x2b6),'strokeLinecap':'round','strokeLinejoin':_0x46a43e(0x234),'strokeWidth':1.2}}]},{'tag':_0x46a43e(0x45d),'attrs':{},'children':[{'tag':_0x46a43e(0x1cd),'attrs':{'id':_0x46a43e(0x3b4)},'children':[{'tag':'path','attrs':{'fill':'#fff','d':_0x46a43e(0x2dd)}}]}]}],'defIds':[_0x46a43e(0x3b4)]},_0x820a7=_0x7a0305[_0x46a43e(0x3a1)](function(_0x58f4bc,_0x540790){const _0xbf1464=_0x46a43e;return _0x7a0305[_0xbf1464(0x32d)](_0x2e3a68,Object[_0xbf1464(0x34f)]({},_0x58f4bc,{'id':_0xbf1464(0x4d9),'ref':_0x540790,'icon':_0x3ad01a}));});_0x820a7['displayName']='OffLineSingle';var _0x33d75b={'tag':'svg','attrs':{'fill':'none','viewBox':_0x46a43e(0x3db),'width':_0x46a43e(0x1c2),'height':_0x46a43e(0x1c2)},'children':[{'tag':'g','attrs':{'clipPath':_0x46a43e(0x20f)},'children':[{'tag':_0x46a43e(0x43b),'attrs':{'stroke':_0x46a43e(0x283),'d':_0x46a43e(0x353),'strokeLinecap':_0x46a43e(0x234),'strokeLinejoin':_0x46a43e(0x234),'strokeWidth':1.2}}]},{'tag':_0x46a43e(0x45d),'attrs':{},'children':[{'tag':_0x46a43e(0x1cd),'attrs':{'id':_0x46a43e(0x4f2)},'children':[{'tag':_0x46a43e(0x43b),'attrs':{'fill':_0x46a43e(0x200),'d':'M0\x200H16V16H0z','transform':'translate(.97)'}}]}]}],'defIds':[_0x46a43e(0x4f2)]},_0x503e40=_0x7a0305[_0x46a43e(0x3a1)](function(_0x94b92f,_0x522833){const _0x101b9f=_0x46a43e;return _0x7a0305[_0x101b9f(0x32d)](_0x2e3a68,Object[_0x101b9f(0x34f)]({},_0x94b92f,{'id':_0x101b9f(0x1f5),'ref':_0x522833,'icon':_0x33d75b}));});_0x503e40[_0x46a43e(0x4a2)]=_0x46a43e(0x35c);const _0x5623c8={'onlineStatusIcon':'univer-online-status-icon','onlineStatusTitle':_0x46a43e(0x467),'onlineStatus':_0x46a43e(0x42a),'online':'univer-online','offline':_0x46a43e(0x435)};function _0x151771(_0x58b612){const _0x136e02=_0x46a43e;switch(_0x58b612){case _0x348409[_0x136e02(0x1b8)]:return'collabStatus.offline';case _0x348409[_0x136e02(0x420)]:return _0x136e02(0x267);case _0x348409['FETCH_MISS']:return _0x136e02(0x2e4);case _0x348409[_0x136e02(0x3fc)]:return'collabStatus.notCollab';case _0x348409[_0x136e02(0x365)]:case _0x348409['AWAITING']:case _0x348409[_0x136e02(0x203)]:return _0x136e02(0x19f);case _0x348409[_0x136e02(0x407)]:return _0x136e02(0x20b);}}function _0x263e0e(_0x3cbc61){const _0xbe1f25=_0x46a43e,{status$:_0x513ebd}=_0x3cbc61,_0x4e85e7=_0x5138ef[_0xbe1f25(0x1ed)](_0x513ebd,_0x348409['NOT_COLLAB']),_0x5b46c5=_0x26fb9e[_0xbe1f25(0x321)](_0x5019cf['LocaleService']),_0x454427=_0x4e85e7!==_0x348409[_0xbe1f25(0x1b8)],_0x3bf045=_0x5b46c5['t'](_0x151771(_0x4e85e7)),_0x3ef06d=_0xb3640c(_0x5623c8[_0xbe1f25(0x214)],{[_0x5623c8['online']]:_0x454427,[_0x5623c8[_0xbe1f25(0x4a4)]]:!_0x454427}),_0x4d213e=_0x454427?_0x7a0305[_0xbe1f25(0x32d)](_0x503e40,null):_0x7a0305[_0xbe1f25(0x32d)](_0x820a7,null);return _0x7a0305[_0xbe1f25(0x32d)](_0xbe1f25(0x3ab),{'className':_0x3ef06d},_0x7a0305['createElement']('div',{'className':_0x5623c8['onlineStatusIcon']},_0x4d213e),_0x7a0305['createElement'](_0xbe1f25(0x3ab),{'className':_0x5623c8['onlineStatusTitle']},_0x3bf045));}var _0x50bdb6=Object[_0x46a43e(0x1c7)],_0x195b15=Object['getOwnPropertyDescriptor'],_0x2c5045=(_0x35a41f,_0x57b681,_0x42eff1,_0x57c05f)=>{const _0x189ab2=_0x46a43e;for(var _0x79ddbb=_0x57c05f>0x1?void 0x0:_0x57c05f?_0x195b15(_0x57b681,_0x42eff1):_0x57b681,_0x13539b=_0x35a41f[_0x189ab2(0x1bb)]-0x1,_0x1cca6d;_0x13539b>=0x0;_0x13539b--)(_0x1cca6d=_0x35a41f[_0x13539b])&&(_0x79ddbb=(_0x57c05f?_0x1cca6d(_0x57b681,_0x42eff1,_0x79ddbb):_0x1cca6d(_0x79ddbb))||_0x79ddbb);return _0x57c05f&&_0x79ddbb&&_0x50bdb6(_0x57b681,_0x42eff1,_0x79ddbb),_0x79ddbb;},_0x5da3b5=(_0x49634b,_0x3e0e5a)=>(_0x12a167,_0xf8c223)=>_0x3e0e5a(_0x12a167,_0xf8c223,_0x49634b);_0x575351['DesktopCollaborationStatusDisplayController']=class extends _0x5019cf[_0x46a43e(0x32a)]{constructor(_0x3b697d,_0x23971a,_0x3b1946,_0x1b2b94){const _0x46e5eb=_0x46a43e;super(),_0x3a44bb(this,'_status$',new _0x54735b[(_0x46e5eb(0x413))](_0x348409[_0x46e5eb(0x3fc)])),(this['_univerInstanceService']=_0x3b697d,this['_uiPartsService']=_0x23971a,this[_0x46e5eb(0x383)]=_0x3b1946,this[_0x46e5eb(0x42d)]=_0x1b2b94,this['_initStatusComponent'](),this[_0x46e5eb(0x45a)]());}['_initStatusComponent'](){const _0x138693=_0x46a43e;this['disposeWithMe'](this[_0x138693(0x38b)][_0x138693(0x4bf)](_0x5138ef[_0x138693(0x502)][_0x138693(0x2d5)],()=>_0x26fb9e[_0x138693(0x2f5)](_0x1fe680({'status$':this[_0x138693(0x504)][_0x138693(0x26a)]()}),this[_0x138693(0x383)])));}[_0x46a43e(0x45a)](){const _0x55fc7e=_0x46a43e;this['disposeWithMe'](_0x5019cf[_0x55fc7e(0x35e)](this[_0x55fc7e(0x397)][_0x55fc7e(0x4c3)][_0x55fc7e(0x4b0)](_0x54735b[_0x55fc7e(0x426)](()=>{const _0x3c68d3=_0x55fc7e,_0x326e60=this[_0x3c68d3(0x397)]['getFocusedUnit']();return _0x326e60?this[_0x3c68d3(0x42d)][_0x3c68d3(0x4ed)](_0x326e60[_0x3c68d3(0x2c6)]()):_0x54735b['of'](null);}),_0x54735b['switchMap'](_0x107452=>_0x107452?_0x107452[_0x55fc7e(0x1e8)]:_0x54735b['of'](_0x348409[_0x55fc7e(0x3fc)])))[_0x55fc7e(0x324)](_0x1342fa=>{const _0x55d297=_0x55fc7e;this[_0x55d297(0x504)][_0x55d297(0x230)](_0x1342fa);})));}},_0x575351['DesktopCollaborationStatusDisplayController']=_0x2c5045([_0x5019cf[_0x46a43e(0x3b2)](_0x5019cf[_0x46a43e(0x2ed)][_0x46a43e(0x241)],_0x575351[_0x46a43e(0x265)]),_0x5da3b5(0x0,_0x5019cf[_0x46a43e(0x4e2)]),_0x5da3b5(0x1,_0x5138ef['IUIPartsService']),_0x5da3b5(0x2,_0x245a54[_0x46a43e(0x4b5)](_0x245a54[_0x46a43e(0x236)])),_0x5da3b5(0x3,_0x245a54[_0x46a43e(0x4b5)](_0x575351['CollaborationController']))],_0x575351[_0x46a43e(0x265)]);function _0x1fe680(_0x345b0b){const {status$:_0x5e0cc8}=_0x345b0b;return function(){const _0x35c9dd=_0x50f8;return _0x7a0305[_0x35c9dd(0x32d)](_0x263e0e,{'status$':_0x5e0cc8});};}const _0x279dda=_0x245a54[_0x46a43e(0x46a)]('uni.network.url-service');var _0x4d7710=Object[_0x46a43e(0x1c7)],_0x22e76a=Object[_0x46a43e(0x1e9)],_0x36f538=(_0x55f603,_0x3e3848,_0x3b6ce,_0x3e6bd8)=>{const _0x44d01b=_0x46a43e;for(var _0x2a032f=_0x3e6bd8>0x1?void 0x0:_0x3e6bd8?_0x22e76a(_0x3e3848,_0x3b6ce):_0x3e3848,_0x9789a2=_0x55f603[_0x44d01b(0x1bb)]-0x1,_0x3328ea;_0x9789a2>=0x0;_0x9789a2--)(_0x3328ea=_0x55f603[_0x9789a2])&&(_0x2a032f=(_0x3e6bd8?_0x3328ea(_0x3e3848,_0x3b6ce,_0x2a032f):_0x3328ea(_0x2a032f))||_0x2a032f);return _0x3e6bd8&&_0x2a032f&&_0x4d7710(_0x3e3848,_0x3b6ce,_0x2a032f),_0x2a032f;},_0x437fe4=(_0x2eceb9,_0x4fe1f9)=>(_0x150b78,_0x5f3694)=>_0x4fe1f9(_0x150b78,_0x5f3694,_0x2eceb9);_0x575351['DataLoaderController']=class extends _0x5019cf[_0x46a43e(0x1c0)]{constructor(_0x4f0cc6,_0x3aabb6,_0x26583e,_0x4eebd4,_0x37f8d7,_0x545488){const _0x56806e=_0x46a43e;super(),this['_urlService']=_0x4f0cc6,this[_0x56806e(0x433)]=_0x3aabb6,this[_0x56806e(0x34d)]=_0x26583e,this[_0x56806e(0x36e)]=_0x4eebd4,this[_0x56806e(0x295)]=_0x37f8d7,_0x545488?_0x545488==null||_0x545488[_0x56806e(0x2f6)]()[_0x56806e(0x2c5)](()=>this['_init']()):(this[_0x56806e(0x433)][_0x56806e(0x418)](_0x56806e(0x16b),'No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.'),this['_init']());}async['_init'](){const _0x20ccae=_0x46a43e,_0x50b2cf=this[_0x20ccae(0x384)][_0x20ccae(0x4b8)](_0x20ccae(0x15f)),_0x3539ae=this[_0x20ccae(0x384)][_0x20ccae(0x4b8)](_0x20ccae(0x219));if(!_0x50b2cf||!_0x3539ae){this['_logService'][_0x20ccae(0x418)](_0x20ccae(0x16b),_0x20ccae(0x3c1));return;}switch(Number(_0x3539ae)){case _0x4418d5[_0x20ccae(0x258)]:{const _0x4cd324=await this['_loadSheet'](_0x50b2cf);this[_0x20ccae(0x2c7)](_0x4cd324);break;}case _0x4418d5[_0x20ccae(0x27d)]:{await this['_loadDoc'](_0x50b2cf);break;}default:{this['_logService'][_0x20ccae(0x3a0)](_0x20ccae(0x16b),'Unknown\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.');break;}}}async[_0x46a43e(0x2c7)](_0x331029){const _0x317496=_0x46a43e;await this[_0x317496(0x294)](_0x331029),_0x331029['activeSheet$']['pipe'](_0x54735b[_0x317496(0x41a)](this[_0x317496(0x4a5)]))[_0x317496(0x324)](_0x1114fc=>{_0x1114fc&&this['_updateURLWithCurrentState'](_0x1114fc);}),this['_urlService'][_0x317496(0x391)][_0x317496(0x4b0)](_0x54735b[_0x317496(0x41a)](this[_0x317496(0x4a5)]))[_0x317496(0x324)](()=>this[_0x317496(0x294)](_0x331029));}[_0x46a43e(0x1dc)](_0x5e1986,_0x316c71=!0x1){const _0x3d011a=_0x46a43e,_0x5e7845=this[_0x3d011a(0x384)][_0x3d011a(0x4b8)](_0x3d011a(0x19c));_0x5e1986['getSheetId']()!==_0x5e7845&&this[_0x3d011a(0x384)][_0x3d011a(0x43c)](_0x3d011a(0x19c),_0x5e1986[_0x3d011a(0x35b)](),_0x316c71);}async[_0x46a43e(0x294)](_0x5b18e1){const _0x4265e0=_0x46a43e;var _0x4171b7;const _0x4f5015=this['_urlService'][_0x4265e0(0x4b8)](_0x4265e0(0x19c));if(!_0x4f5015||!_0x5b18e1['getSheetBySheetId'](_0x4f5015)){const _0x56601f=_0x5b18e1[_0x4265e0(0x271)]()[0x0],_0x321069=_0x5b18e1[_0x4265e0(0x392)](_0x56601f);if(!_0x321069)return;this[_0x4265e0(0x1dc)](_0x321069,!0x0),await this[_0x4265e0(0x34d)]['executeCommand'](_0x7f012d[_0x4265e0(0x40f)]['id'],{'unitId':_0x5b18e1[_0x4265e0(0x2c6)](),'subUnitId':_0x56601f});return;}((_0x4171b7=_0x5b18e1[_0x4265e0(0x18a)]())==null?void 0x0:_0x4171b7[_0x4265e0(0x35b)]())!==_0x4f5015&&await this[_0x4265e0(0x34d)][_0x4265e0(0x4ac)](_0x7f012d['SetWorksheetActivateCommand']['id'],{'unitId':_0x5b18e1['getUnitId'](),'subUnitId':_0x4f5015});}async[_0x46a43e(0x18b)](_0xa02d31){const _0x2a7f73=_0x46a43e;let _0x398341=0x0;const _0x3b4976=await this[_0x2a7f73(0x36e)][_0x2a7f73(0x444)](_0xa02d31);return _0x3b4976&&(_0x3b4976['awaitingChangeset']||_0x3b4976[_0x2a7f73(0x2c2)][_0x2a7f73(0x1bb)]!==0x0)&&(_0x398341=_0x3b4976[_0x2a7f73(0x301)]),_0x398341===0x0&&this['_logService'][_0x2a7f73(0x418)](_0x2a7f73(0x16b),_0x2a7f73(0x386)),this[_0x2a7f73(0x295)]['loadSheet'](_0xa02d31,_0x398341);}async[_0x46a43e(0x2d7)](_0x4f8ac5){const _0x388509=_0x46a43e;let _0x4beb07=0x0;const _0x4e9596=await this[_0x388509(0x36e)][_0x388509(0x444)](_0x4f8ac5);return _0x4e9596&&(_0x4e9596[_0x388509(0x4d6)]||_0x4e9596[_0x388509(0x2c2)][_0x388509(0x1bb)]!==0x0)&&(_0x4beb07=_0x4e9596[_0x388509(0x301)]),_0x4beb07===0x0&&this[_0x388509(0x433)][_0x388509(0x418)](_0x388509(0x16b),_0x388509(0x386)),this[_0x388509(0x295)]['loadDoc'](_0x4f8ac5,_0x4beb07);}},_0x575351['DataLoaderController']=_0x36f538([_0x5019cf['OnLifecycle'](_0x5019cf[_0x46a43e(0x2ed)][_0x46a43e(0x241)],_0x575351['DataLoaderController']),_0x437fe4(0x0,_0x279dda),_0x437fe4(0x1,_0x5019cf[_0x46a43e(0x4e6)]),_0x437fe4(0x2,_0x5019cf[_0x46a43e(0x3b9)]),_0x437fe4(0x3,_0x245a54[_0x46a43e(0x4b5)](_0x575351[_0x46a43e(0x2d1)])),_0x437fe4(0x4,_0x245a54[_0x46a43e(0x4b5)](_0x38ce1a[_0x46a43e(0x406)])),_0x437fe4(0x5,_0x245a54[_0x46a43e(0x2b9)](_0x2cd6ae[_0x46a43e(0x2ec)]))],_0x575351['DataLoaderController']);var _0xdfa314=Object['defineProperty'],_0xa0eac6=Object[_0x46a43e(0x1e9)],_0x5ca0ba=(_0x852c2b,_0x3a2c2b,_0x48e147,_0x3906cb)=>{const _0x41f658=_0x46a43e;for(var _0x582fb0=_0x3906cb>0x1?void 0x0:_0x3906cb?_0xa0eac6(_0x3a2c2b,_0x48e147):_0x3a2c2b,_0x52a71c=_0x852c2b[_0x41f658(0x1bb)]-0x1,_0x3b3c5e;_0x52a71c>=0x0;_0x52a71c--)(_0x3b3c5e=_0x852c2b[_0x52a71c])&&(_0x582fb0=(_0x3906cb?_0x3b3c5e(_0x3a2c2b,_0x48e147,_0x582fb0):_0x3b3c5e(_0x582fb0))||_0x582fb0);return _0x3906cb&&_0x582fb0&&_0xdfa314(_0x3a2c2b,_0x48e147,_0x582fb0),_0x582fb0;},_0x51f38a=(_0x5b72e7,_0xf4cf5a)=>(_0x3805f3,_0x369356)=>_0xf4cf5a(_0x3805f3,_0x369356,_0x5b72e7);const _0x2c666e=_0x46a43e(0x4b1),_0x18120c=_0x46a43e(0x3d7);let _0x5bbd97=class extends _0x5019cf[_0x46a43e(0x32a)]{constructor(_0x11e2ee,_0x1bd7fb){const _0x3e4d28=_0x46a43e;super(),this['_univerInstanceService']=_0x11e2ee,this[_0x3e4d28(0x317)]=_0x1bd7fb,this[_0x3e4d28(0x336)]();}[_0x46a43e(0x336)](){const _0x477bcc=_0x46a43e;this['disposeWithMe'](_0x5019cf[_0x477bcc(0x35e)](this['_univerInstanceService'][_0x477bcc(0x4c3)]['subscribe'](()=>{const _0x259959=_0x477bcc;var _0x442ea5;const _0xeae0b7=this['_univerInstanceService'][_0x259959(0x24f)]();let _0x1b45b2=(_0x442ea5=this['_configService'][_0x259959(0x3ea)](_0x2c666e))!=null?_0x442ea5:_0x18120c;_0xeae0b7 instanceof _0x5019cf[_0x259959(0x395)]&&(_0x1b45b2=_0xeae0b7[_0x259959(0x450)]),document['title']=_0x1b45b2;})));}};_0x5bbd97=_0x5ca0ba([_0x5019cf[_0x46a43e(0x3b2)](_0x5019cf[_0x46a43e(0x2ed)][_0x46a43e(0x1b0)],_0x5bbd97),_0x51f38a(0x0,_0x5019cf[_0x46a43e(0x4e2)]),_0x51f38a(0x1,_0x5019cf[_0x46a43e(0x460)])],_0x5bbd97);var _0xe1f25a=Object[_0x46a43e(0x1c7)],_0x402875=Object['getOwnPropertyDescriptor'],_0x3f7c5b=(_0x222086,_0x3684b1,_0x229aee,_0x4b44eb)=>{for(var _0x3610ad=_0x4b44eb>0x1?void 0x0:_0x4b44eb?_0x402875(_0x3684b1,_0x229aee):_0x3684b1,_0x5acb06=_0x222086['length']-0x1,_0x2a2e34;_0x5acb06>=0x0;_0x5acb06--)(_0x2a2e34=_0x222086[_0x5acb06])&&(_0x3610ad=(_0x4b44eb?_0x2a2e34(_0x3684b1,_0x229aee,_0x3610ad):_0x2a2e34(_0x3610ad))||_0x3610ad);return _0x4b44eb&&_0x3610ad&&_0xe1f25a(_0x3684b1,_0x229aee,_0x3610ad),_0x3610ad;},_0x18c36d=(_0x30743c,_0x34982e)=>(_0x4a1ba7,_0x42dfb4)=>_0x34982e(_0x4a1ba7,_0x42dfb4,_0x30743c);let _0x201e04=class{constructor(_0xf4bee6,_0x36c13f){const _0x4f5f97=_0x46a43e;this[_0x4f5f97(0x317)]=_0xf4bee6,this[_0x4f5f97(0x463)]=_0x36c13f;}async['getUnitOnRev'](_0x4a3b16,_0x3669a0){const _0x5de6eb=_0x46a43e;var _0x46dd7e;const {unitID:_0x592387,type:_0x31bca4,revision:_0x2c0612=0x0}=_0x3669a0,_0x56b088=this[_0x5de6eb(0x2e0)]()+'/'+_0x31bca4+_0x5de6eb(0x1c9)+_0x592387+_0x5de6eb(0x464)+(_0x2c0612===0x1?0x0:_0x2c0612),_0x3cb7db=(await this[_0x5de6eb(0x463)][_0x5de6eb(0x2db)](_0x56b088))['body'],_0x3f9baa=(_0x46dd7e=_0x3cb7db['snapshot'])==null?void 0x0:_0x46dd7e[_0x5de6eb(0x42c)];if(_0x3f9baa){const _0x283ca5=_0x3f9baa==null?void 0x0:_0x3f9baa[_0x5de6eb(0x2b2)],_0x2e5f75=_0x5019cf[_0x5de6eb(0x38f)][_0x5de6eb(0x2d0)](_0x5019cf[_0x5de6eb(0x1ef)](_0x283ca5));_0x3f9baa[_0x5de6eb(0x2b2)]=_0x2e5f75,Object['entries'](_0x3f9baa['sheets'])[_0x5de6eb(0x39a)](([,_0xa75db7])=>{const _0x45e8f2=_0x5de6eb,_0x19119f=_0xa75db7[_0x45e8f2(0x2b2)],_0x12ce14=_0x5019cf[_0x45e8f2(0x38f)][_0x45e8f2(0x2d0)](_0x5019cf[_0x45e8f2(0x1ef)](_0x19119f));_0xa75db7[_0x45e8f2(0x2b2)]=_0x12ce14;});}return _0x3cb7db;}async[_0x46a43e(0x1ea)](_0x472af7,_0x49cfbc){const _0x2b7329=_0x46a43e,{unitID:_0x46c17b,type:_0x5b8934,blockID:_0x309f0f}=_0x49cfbc,_0x442ae4=this[_0x2b7329(0x302)]()+'/'+_0x5b8934+_0x2b7329(0x1c9)+_0x46c17b+'/block/'+_0x309f0f;return(await this[_0x2b7329(0x463)][_0x2b7329(0x2db)](_0x442ae4))[_0x2b7329(0x190)];}async[_0x46a43e(0x346)](_0x322ba4,_0x546504){const _0x591010=_0x46a43e,{unitID:_0x1c4cf5,type:_0x5cd815,from:_0xd0f399,to:_0x4361bf}=_0x546504,_0xf90aca=this[_0x591010(0x302)]()+'/'+_0x5cd815+_0x591010(0x1c9)+_0x1c4cf5+_0x591010(0x296)+_0xd0f399+'&to='+_0x4361bf;return(await this['_httpService'][_0x591010(0x2db)](_0xf90aca))[_0x591010(0x190)];}['_getSnapshotAPIPrefix'](){const _0x3cc7e4=_0x46a43e;var _0x4c6cfb;return(_0x4c6cfb=this[_0x3cc7e4(0x317)][_0x3cc7e4(0x3ea)](_0x25d6a7))!=null?_0x4c6cfb:this[_0x3cc7e4(0x302)]();}['_getAPIPrefix'](){const _0x43c35c=_0x46a43e;var _0x859f98;return(_0x859f98=this[_0x43c35c(0x317)][_0x43c35c(0x3ea)](_0xb4801b))!=null?_0x859f98:_0x47a400;}async[_0x46a43e(0x21a)](_0x174b52,_0x5250bd){const _0x2d9837=_0x46a43e,_0x4d7fde='/universer-api/snapshot/'+_0x5250bd[_0x2d9837(0x219)]+_0x2d9837(0x1c9)+_0x5250bd[_0x2d9837(0x166)]+'/resources';return(await this[_0x2d9837(0x463)][_0x2d9837(0x2db)](_0x4d7fde,{'params':{'resourceId':JSON[_0x2d9837(0x485)](_0x5250bd['resourceIDs'])}}))[_0x2d9837(0x190)];}['saveSnapshot'](){const _0x57ed75=_0x46a43e;throw new Error(_0x57ed75(0x229));}[_0x46a43e(0x178)](){const _0x43a04e=_0x46a43e;throw new Error(_0x43a04e(0x229));}[_0x46a43e(0x4c4)](){throw new Error('This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!');}};_0x201e04=_0x3f7c5b([_0x18c36d(0x0,_0x5019cf[_0x46a43e(0x460)]),_0x18c36d(0x1,_0x245a54[_0x46a43e(0x4b5)](_0x3e6592[_0x46a43e(0x494)]))],_0x201e04);var _0x49536f=Object[_0x46a43e(0x1c7)],_0x550c4d=Object[_0x46a43e(0x1e9)],_0x2e5bbb=(_0x20ce69,_0x307714,_0x5163df,_0x47df0f)=>{const _0x23cf58=_0x46a43e;for(var _0x3d524a=_0x47df0f>0x1?void 0x0:_0x47df0f?_0x550c4d(_0x307714,_0x5163df):_0x307714,_0x59c7a7=_0x20ce69[_0x23cf58(0x1bb)]-0x1,_0x3b922a;_0x59c7a7>=0x0;_0x59c7a7--)(_0x3b922a=_0x20ce69[_0x59c7a7])&&(_0x3d524a=(_0x47df0f?_0x3b922a(_0x307714,_0x5163df,_0x3d524a):_0x3b922a(_0x3d524a))||_0x3d524a);return _0x47df0f&&_0x3d524a&&_0x49536f(_0x307714,_0x5163df,_0x3d524a),_0x3d524a;},_0x230f1f=(_0x25c015,_0x59eed2)=>(_0x36e05b,_0x2841d0)=>_0x59eed2(_0x36e05b,_0x2841d0,_0x25c015);let _0x18c703=class extends _0x5019cf[_0x46a43e(0x3d6)]{constructor(_0xdf4f25,_0x2ef261,_0x23def7,_0x1eba96,_0x4a3a0f){const _0xfd382c=_0x46a43e;super(_0xdf4f25,_0x2ef261,_0x23def7),this[_0xfd382c(0x43f)]=_0x1eba96,this[_0xfd382c(0x433)]=_0x4a3a0f;}[_0x46a43e(0x4fb)](_0x5a8857,_0x43f20d){const _0x2baa06=_0x46a43e,_0x276e55=this[_0x2baa06(0x39e)](_0x5a8857);if(_0x276e55)try{const _0x36a822=this['_transformStack'](_0x276e55,_0x43f20d);this[_0x2baa06(0x4ba)](_0x5a8857,_0x36a822);}catch(_0x314787){this[_0x2baa06(0x433)][_0x2baa06(0x3a0)](_0x2baa06(0x480),_0x314787),this[_0x2baa06(0x1bf)](_0x5a8857);}const _0xd5710e=this[_0x2baa06(0x423)](_0x5a8857);if(_0xd5710e)try{const _0x293d1e=this[_0x2baa06(0x210)](_0xd5710e,_0x43f20d);this[_0x2baa06(0x4f8)](_0x5a8857,_0x293d1e);}catch(_0x3001e7){this[_0x2baa06(0x433)]['error'](_0x3001e7),this[_0x2baa06(0x197)](_0x5a8857);}}['_clearUndo'](_0x4d765e){const _0x326b24=_0x46a43e,_0x2827d3=this['_getUndoStack'](_0x4d765e);_0x2827d3&&(_0x2827d3[_0x326b24(0x1bb)]=0x0,this[_0x326b24(0x490)]());}[_0x46a43e(0x197)](_0x50467f){const _0x179d90=_0x46a43e,_0x121f66=this[_0x179d90(0x423)](_0x50467f);_0x121f66&&(_0x121f66[_0x179d90(0x1bb)]=0x0,this[_0x179d90(0x490)]());}['_substituteUndoStack'](_0x3e06a6,_0x5e2073){const _0x563ca7=_0x46a43e;this[_0x563ca7(0x292)][_0x563ca7(0x3f3)](_0x3e06a6,_0x5e2073),this[_0x563ca7(0x490)]();}['_substituteRedoStack'](_0x36c5b4,_0x56b688){const _0xede824=_0x46a43e;this['_redoStacks'][_0xede824(0x3f3)](_0x36c5b4,_0x56b688),this['_updateStatus']();}[_0x46a43e(0x210)](_0x5bc8ca,_0x9df9f3){const _0x3a1613=_0x46a43e,_0x46577b=[];let _0x1c2c81=_0x9df9f3,_0x110204=_0x9df9f3;for(let _0x43338f=_0x5bc8ca['length']-0x1;_0x43338f>=0x0;_0x43338f--){const {unitID:_0x1605d3,undoMutations:_0x4d26d0,redoMutations:_0x5e3158}=_0x5bc8ca[_0x43338f],_0x38b03e=this['_transformService'][_0x3a1613(0x3ba)](_0x1c2c81,_0x4d26d0),_0x21e0d7=this['_transformService'][_0x3a1613(0x3ba)](_0x110204,_0x5e3158);if(_0x38ce1a[_0x3a1613(0x396)](_0x38b03e)||_0x38ce1a['isTransformMutationsWithChangesetFailure'](_0x21e0d7)){this[_0x3a1613(0x433)]['error'](_0x3a1613(0x480),_0x3a1613(0x240),_0x38b03e,_0x21e0d7);break;}_0x1c2c81=_0x38b03e[_0x3a1613(0x2bc)],_0x110204=_0x21e0d7[_0x3a1613(0x2bc)],_0x46577b[_0x3a1613(0x23e)]({'unitID':_0x1605d3,'undoMutations':_0x38b03e['m2Prime'],'redoMutations':_0x21e0d7['m2Prime']});}return _0x46577b[_0x3a1613(0x359)]();}};_0x18c703=_0x2e5bbb([_0x230f1f(0x0,_0x5019cf[_0x46a43e(0x4e2)]),_0x230f1f(0x1,_0x5019cf['ICommandService']),_0x230f1f(0x2,_0x5019cf[_0x46a43e(0x2c3)]),_0x230f1f(0x3,_0x38ce1a[_0x46a43e(0x48b)]),_0x230f1f(0x4,_0x5019cf[_0x46a43e(0x4e6)])],_0x18c703);class _0x1fff2a extends _0x5019cf[_0x46a43e(0x1c0)]{constructor(){const _0x1c9cd5=_0x46a43e;super(),_0x3a44bb(this,_0x1c9cd5(0x391)),this[_0x1c9cd5(0x391)]=_0x54735b[_0x1c9cd5(0x4e0)](window,_0x1c9cd5(0x4e7))[_0x1c9cd5(0x4b0)](_0x54735b[_0x1c9cd5(0x41a)](this[_0x1c9cd5(0x4a5)]),_0x54735b[_0x1c9cd5(0x247)](0x1),_0x54735b['mapTo'](void 0x0));}[_0x46a43e(0x43c)](_0x112a27,_0x253f9f,_0x273066=!0x1){const _0x371a55=_0x46a43e,_0x567cf8=new URL(window['location'][_0x371a55(0x486)]);_0x567cf8[_0x371a55(0x44d)][_0x371a55(0x3f3)](_0x112a27,_0x253f9f),_0x273066?window[_0x371a55(0x293)][_0x371a55(0x40a)]('','',_0x567cf8[_0x371a55(0x1f2)]()):window['history'][_0x371a55(0x39f)]('','',_0x567cf8[_0x371a55(0x1f2)]());}['removeParam'](_0x518e1a,_0x476999=!0x1){const _0x4ca99f=_0x46a43e,_0x329d07=new URL(window['location'][_0x4ca99f(0x486)]);_0x329d07[_0x4ca99f(0x44d)]['delete'](_0x518e1a),_0x476999?window[_0x4ca99f(0x293)][_0x4ca99f(0x40a)]('','',_0x329d07[_0x4ca99f(0x1f2)]()):window[_0x4ca99f(0x293)][_0x4ca99f(0x39f)]('','',_0x329d07[_0x4ca99f(0x1f2)]());}[_0x46a43e(0x4b8)](_0x13f139){const _0x36549c=_0x46a43e;var _0x4f40a8;return(_0x4f40a8=new URL(window['location']['href'])[_0x36549c(0x44d)][_0x36549c(0x2db)](_0x13f139))!=null?_0x4f40a8:void 0x0;}}const _0x5c5b74=_0x46a43e(0x3d3),_0x18208a=_0x46a43e(0x2a0),_0x29d25=0x6,_0x1ddebf=1.5,_0x2478ef=0x4,_0x78837f=1.5,_0x37103c='rgba(255,\x20255,\x20255,\x200.01)';class _0x3e4ea2{constructor(_0x24cb5d,_0x4dc353,_0x522178,_0x1b17a1){const _0x455d15=_0x46a43e;_0x3a44bb(this,_0x455d15(0x36c),[]),_0x3a44bb(this,'_anchor',null),_0x3a44bb(this,_0x455d15(0x202),null),_0x3a44bb(this,_0x455d15(0x477),null),_0x3a44bb(this,'_hideTimer',null),_0x3a44bb(this,'_eventUnsubscribe',null),(this[_0x455d15(0x334)]=_0x24cb5d,this[_0x455d15(0x38a)]=_0x4dc353,this['_docSkeleton']=_0x522178,this[_0x455d15(0x34e)]=_0x1b17a1,this['_render']());}set[_0x46a43e(0x28f)](_0x5f5d00){const _0x2d19af=_0x46a43e;_0x5f5d00?(this['_anchorDot']&&this[_0x2d19af(0x477)][_0x2d19af(0x46f)](),this['_textBubble']&&this[_0x2d19af(0x202)][_0x2d19af(0x4f6)]()):(this[_0x2d19af(0x477)]&&this['_anchorDot']['show'](),this[_0x2d19af(0x202)]&&this[_0x2d19af(0x202)][_0x2d19af(0x46f)]());}['dispose'](){const _0x40b8d7=_0x46a43e;for(const _0x28e6fe of this[_0x40b8d7(0x36c)])_0x28e6fe[_0x40b8d7(0x173)]();this[_0x40b8d7(0x202)]&&this[_0x40b8d7(0x202)][_0x40b8d7(0x173)](),this[_0x40b8d7(0x477)]&&this[_0x40b8d7(0x477)][_0x40b8d7(0x173)](),this[_0x40b8d7(0x4f3)]&&this['_anchor'][_0x40b8d7(0x173)](),this['_eventUnsubscribe']&&this[_0x40b8d7(0x29c)]();}['_render'](){const _0x39bd2b=_0x46a43e,{_docSkeleton:_0x3665a8,_document:_0x4f62bd}=this,{color:_0x1d7345,name:_0x10df57,ranges:_0x350d9a}=this['_cursor'],_0x385633=_0x4f62bd[_0x39bd2b(0x438)](),{docsLeft:_0x1fa649,docsTop:_0x51ae81}=_0x385633,_0x4904d2=new _0x56ae03[(_0x39bd2b(0x37c))](_0x385633,_0x3665a8);for(const {startOffset:_0x3fb8ec,endOffset:_0x4a81c4,collapsed:_0x198df5,isActive:_0x377119}of _0x350d9a){const _0x23bd45=_0x3665a8[_0x39bd2b(0x3e3)](_0x3fb8ec),_0x38421b=_0x3665a8['findNodePositionByCharIndex'](_0x4a81c4);if(_0x377119){const {contentBoxPointGroup:_0x580dfe}=_0x4904d2[_0x39bd2b(0x2ba)](_0x38421b,_0x38421b);if(_0x580dfe[_0x39bd2b(0x1bb)]===0x0)continue;this[_0x39bd2b(0x1a9)](_0x1d7345,_0x580dfe,_0x1fa649,_0x51ae81,_0x10df57),this[_0x39bd2b(0x29c)]=this[_0x39bd2b(0x36f)]();}if(!_0x198df5){const {contentBoxPointGroup:_0x227b0b}=_0x4904d2[_0x39bd2b(0x2ba)](_0x23bd45,_0x38421b);if(_0x227b0b[_0x39bd2b(0x1bb)]===0x0)continue;this[_0x39bd2b(0x372)](_0x1d7345,_0x227b0b,_0x1fa649,_0x51ae81);}}}['_drawAnchor'](_0x30d7d3,_0xf146ef,_0x307605,_0x4fe1ad,_0x3e8a74){const _0x403960=_0x46a43e,_0x1b2227=this[_0x403960(0x251)](_0xf146ef),{left:_0x376185,top:_0x4ce72a,height:_0x52659b}=_0x1b2227,_0x1ab52a=this['_getScale'](),_0x1e7363=_0x78837f/_0x1ab52a,_0x14f7c7=new _0x56ae03[(_0x403960(0x1de))](_0x5c5b74+_0x5019cf[_0x403960(0x1f7)][_0x403960(0x4ae)](_0x29d25),{'left':_0x376185+_0x307605-_0x1e7363,'top':_0x4ce72a+_0x4fe1ad,'height':_0x52659b,'width':_0x1ddebf,'fill':_0x30d7d3||_0x56ae03[_0x403960(0x1f1)](_0x5019cf[_0x403960(0x367)][_0x403960(0x47e)],0x0),'strokeWidth':_0x1e7363,'stroke':_0x37103c,'evented':!0x0});this[_0x403960(0x4f3)]=_0x14f7c7,this['_scene'][_0x403960(0x4b2)](_0x14f7c7,_0x56ae03['TEXT_RANGE_LAYER_INDEX']);const _0x4f5fb6=new _0x56ae03[(_0x403960(0x1de))](_0x5c5b74+_0x5019cf['Tools'][_0x403960(0x4ae)](_0x29d25),{'left':_0x376185+_0x307605-_0x1e7363,'top':_0x4ce72a+_0x4fe1ad-_0x2478ef/0x2,'height':_0x2478ef,'width':_0x2478ef,'fill':_0x30d7d3||_0x56ae03[_0x403960(0x1f1)](_0x5019cf[_0x403960(0x367)][_0x403960(0x47e)],0x0),'strokeWidth':0x0,'stroke':_0x30d7d3||_0x56ae03[_0x403960(0x1f1)](_0x5019cf['COLORS'][_0x403960(0x47e)],0x0),'evented':!0x1});this[_0x403960(0x477)]=_0x4f5fb6,this['_scene'][_0x403960(0x4b2)](_0x4f5fb6,_0x56ae03[_0x403960(0x29a)]);const _0x234a5e=new _0x450f66(_0x5c5b74+_0x5019cf[_0x403960(0x1f7)][_0x403960(0x4ae)](_0x29d25),{'left':_0x376185+_0x307605-_0x1e7363,'top':_0x4ce72a+_0x4fe1ad-_0x4617f7,'text':_0x3e8a74,'color':_0x30d7d3});this[_0x403960(0x202)]=_0x234a5e,this['_scene']['addObject'](_0x234a5e,_0x56ae03[_0x403960(0x29a)]),this[_0x403960(0x28f)]=!0x1;}[_0x46a43e(0x36f)](){const _0x2aaeba=_0x46a43e,_0x357b8e=this['_anchor'][_0x2aaeba(0x32c)][_0x2aaeba(0x381)](()=>{const _0x35475a=_0x2aaeba;this[_0x35475a(0x28f)]=!0x0;}),_0x54a95a=this['_anchor'][_0x2aaeba(0x305)][_0x2aaeba(0x381)](()=>{const _0x4f0a45=_0x2aaeba;this[_0x4f0a45(0x461)]&&clearTimeout(this[_0x4f0a45(0x461)]),this[_0x4f0a45(0x461)]=setTimeout(()=>{const _0x2275a5=_0x4f0a45;this[_0x2275a5(0x28f)]=!0x1;},0x7d0);});return()=>{const _0x2a1c25=_0x2aaeba;_0x357b8e[_0x2a1c25(0x1d0)](),_0x54a95a[_0x2a1c25(0x1d0)]();};}[_0x46a43e(0x372)](_0x4ea770,_0x1b5164,_0x208e3e,_0x4a8d29){const _0x459548=_0x46a43e,_0x399f0a=new _0x5019cf[(_0x459548(0x170))](_0x4ea770)['setAlpha'](0.2)[_0x459548(0x2b3)](),_0x23bc50=new _0x56ae03[(_0x459548(0x189))](_0x18208a+_0x5019cf[_0x459548(0x1f7)][_0x459548(0x4ae)](_0x29d25),{'pointsGroup':_0x1b5164,'fill':_0x399f0a||_0x56ae03['getColor'](_0x5019cf['COLORS']['black'],0.2),'left':_0x208e3e,'top':_0x4a8d29,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x459548(0x36c)]['push'](_0x23bc50),this[_0x459548(0x38a)][_0x459548(0x4b2)](_0x23bc50,_0x56ae03[_0x459548(0x29a)]);}[_0x46a43e(0x251)](_0x260864){const _0x3f6dbb=_0x260864[0x0],_0x4413cd=_0x3f6dbb[0x0],_0x4b6b69=_0x3f6dbb[0x2],{x:_0x5d0531,y:_0x4adea9}=_0x4413cd,{x:_0x42d67d,y:_0x5413ff}=_0x4b6b69;return{'left':_0x5d0531,'top':_0x4adea9,'width':_0x42d67d-_0x5d0531,'height':_0x5413ff-_0x4adea9};}[_0x46a43e(0x2fe)](){const _0x1f73a0=_0x46a43e,{scaleX:_0x768e7a,scaleY:_0x3b9d42}=this[_0x1f73a0(0x38a)][_0x1f73a0(0x3ef)]();return Math[_0x1f73a0(0x492)](_0x768e7a,_0x3b9d42);}}var _0x223c74=Object[_0x46a43e(0x1c7)],_0x5538c6=Object[_0x46a43e(0x1e9)],_0x599320=(_0x2f4c99,_0x34fac1,_0x94f53f,_0x2227b5)=>{const _0x2b5482=_0x46a43e;for(var _0x51c957=_0x2227b5>0x1?void 0x0:_0x2227b5?_0x5538c6(_0x34fac1,_0x94f53f):_0x34fac1,_0x95320=_0x2f4c99[_0x2b5482(0x1bb)]-0x1,_0x3a711a;_0x95320>=0x0;_0x95320--)(_0x3a711a=_0x2f4c99[_0x95320])&&(_0x51c957=(_0x2227b5?_0x3a711a(_0x34fac1,_0x94f53f,_0x51c957):_0x3a711a(_0x51c957))||_0x51c957);return _0x2227b5&&_0x51c957&&_0x223c74(_0x34fac1,_0x94f53f,_0x51c957),_0x51c957;},_0x1c789f=(_0x4c7d91,_0x14bda2)=>(_0x24584,_0x401b49)=>_0x14bda2(_0x24584,_0x401b49,_0x4c7d91);let _0x1fd8eb=class extends _0x5019cf[_0x46a43e(0x1c0)]{constructor(_0x476f72,_0x588ca0,_0x36f4b3,_0x413c5e,_0x5a38d1){const _0x41d285=_0x46a43e;super(),_0x3a44bb(this,'_cursors',[]),(this[_0x41d285(0x3f6)]=_0x476f72,this['_univerInstanceService']=_0x588ca0,this[_0x41d285(0x43e)]=_0x36f4b3,this['_docSkeletonManagerService']=_0x413c5e,this[_0x41d285(0x2da)]=_0x5a38d1,this[_0x41d285(0x336)]());}[_0x46a43e(0x336)](){const _0x573173=_0x46a43e;this['_docSkeletonManagerService'][_0x573173(0x2cb)][_0x573173(0x4b0)](_0x33876a[_0x573173(0x41a)](this[_0x573173(0x4a5)]),_0x33876a[_0x573173(0x426)](_0x4fe09c=>{const _0x509cdb=_0x573173;if(_0x4fe09c){const _0x259760=_0x4fe09c['getViewModel']()[_0x509cdb(0x16e)]()[_0x509cdb(0x2c6)]();return _0x54735b[_0x509cdb(0x491)](this[_0x509cdb(0x3f6)][_0x509cdb(0x3a3)](_0x259760),this[_0x509cdb(0x2da)][_0x509cdb(0x35d)])['pipe'](_0x33876a[_0x509cdb(0x473)](([_0x1b9668,_0x1afa1b])=>({'skeleton':_0x4fe09c,'cursors':[..._0x1b9668['values']()][_0x509cdb(0x448)](_0x1c217d=>({..._0x1c217d,'color':_0x1afa1b[_0x1c217d[_0x509cdb(0x3c9)]]}))})));}return _0x54735b['of']({'skeleton':null,'cursors':[]});}))[_0x573173(0x324)](({skeleton:_0x8259ef,cursors:_0x9d5016})=>{const _0x51dfab=_0x573173;this[_0x51dfab(0x31e)](),_0x8259ef&&this[_0x51dfab(0x18e)](_0x8259ef,_0x9d5016);});}[_0x46a43e(0x18e)](_0x287988,_0x2443fb){const _0x3b380f=_0x46a43e,_0x559d70=this[_0x3b380f(0x22b)]();if(_0x559d70==null)return;const {scene:_0x516513,document:_0x40abed}=_0x559d70,_0xdf19cd=_0x2443fb[_0x3b380f(0x473)](_0x5ad43e=>new _0x3e4ea2(_0x5ad43e,_0x516513,_0x287988,_0x40abed));this[_0x3b380f(0x455)]=_0xdf19cd;}['_removeCollabCursors'](){const _0x101a27=_0x46a43e;this[_0x101a27(0x455)][_0x101a27(0x39a)](_0x3e2ff5=>_0x3e2ff5[_0x101a27(0x173)]()),this[_0x101a27(0x455)]=[];}[_0x46a43e(0x22b)](){const _0x1d973d=_0x46a43e;return _0x38fb70['getDocObject'](this[_0x1d973d(0x397)],this['_renderManagerService']);}};_0x1fd8eb=_0x599320([_0x5019cf[_0x46a43e(0x3b2)](_0x5019cf[_0x46a43e(0x2ed)][_0x46a43e(0x3e9)],_0x1fd8eb),_0x1c789f(0x0,_0x245a54[_0x46a43e(0x4b5)](_0x4a938f)),_0x1c789f(0x1,_0x5019cf[_0x46a43e(0x4e2)]),_0x1c789f(0x2,_0x56ae03[_0x46a43e(0x1db)]),_0x1c789f(0x3,_0x245a54[_0x46a43e(0x4b5)](_0x38fb70[_0x46a43e(0x393)])),_0x1c789f(0x4,_0x245a54[_0x46a43e(0x4b5)](_0x5019cf['ThemeService']))],_0x1fd8eb);var _0x4e8af4=Object[_0x46a43e(0x1c7)],_0x5216e7=Object[_0x46a43e(0x1e9)],_0x46a084=(_0x40b323,_0x4a5246,_0x5c4eac,_0x4ad088)=>{const _0xba398=_0x46a43e;for(var _0x50e426=_0x4ad088>0x1?void 0x0:_0x4ad088?_0x5216e7(_0x4a5246,_0x5c4eac):_0x4a5246,_0x134f38=_0x40b323[_0xba398(0x1bb)]-0x1,_0x43fd4b;_0x134f38>=0x0;_0x134f38--)(_0x43fd4b=_0x40b323[_0x134f38])&&(_0x50e426=(_0x4ad088?_0x43fd4b(_0x4a5246,_0x5c4eac,_0x50e426):_0x43fd4b(_0x50e426))||_0x50e426);return _0x4ad088&&_0x50e426&&_0x4e8af4(_0x4a5246,_0x5c4eac,_0x50e426),_0x50e426;},_0x38494e=(_0x5f5405,_0x313adf)=>(_0x53ac3a,_0x2439fa)=>_0x313adf(_0x53ac3a,_0x2439fa,_0x5f5405);let _0x58a517=class{constructor(_0x3b6dfe,_0x29b93c,_0x9e8c73){const _0x151bc5=_0x46a43e;this[_0x151bc5(0x317)]=_0x3b6dfe,this['_httpService']=_0x29b93c,this[_0x151bc5(0x44b)]=_0x9e8c73,this['init']();}['init'](){const _0x272482=_0x46a43e;this[_0x272482(0x463)][_0x272482(0x216)]({'priority':0x1,'interceptor':(_0x1eeeb4,_0x4fa1d4)=>_0x4fa1d4(_0x1eeeb4)[_0x272482(0x4b0)](_0x54735b['concatMap'](async _0x5d7567=>{const _0x1e1346=_0x272482,_0x34bba9=_0x5d7567;if(_0x34bba9[_0x1e1346(0x4a1)]===0x191&&window[_0x1e1346(0x289)](this['localeService']['t']('auth.needGotoLoginAlert'))){const _0x2da50e=window[_0x1e1346(0x24e)](window[_0x1e1346(0x217)]['href']);window['location'][_0x1e1346(0x486)]=this[_0x1e1346(0x505)]()+_0x1e1346(0x268)+_0x2da50e;}return _0x34bba9;}))});}[_0x46a43e(0x505)](){const _0x2843f6=_0x46a43e;var _0x363ad5;return(_0x363ad5=this[_0x2843f6(0x317)]['getConfig'](_0xb62ff0))!=null?_0x363ad5:_0x39ceb9;}};_0x58a517=_0x46a084([_0x38494e(0x0,_0x5019cf['IConfigService']),_0x38494e(0x1,_0x245a54[_0x46a43e(0x4b5)](_0x3e6592[_0x46a43e(0x494)])),_0x38494e(0x2,_0x245a54[_0x46a43e(0x4b5)](_0x5019cf[_0x46a43e(0x3a5)]))],_0x58a517);var _0x53e0ad=Object[_0x46a43e(0x1c7)],_0x1b61a8=Object[_0x46a43e(0x1e9)],_0x4879a6=(_0x5b1aac,_0x12b7f0,_0x573ad5,_0x38b816)=>{for(var _0x3eeb37=_0x38b816>0x1?void 0x0:_0x38b816?_0x1b61a8(_0x12b7f0,_0x573ad5):_0x12b7f0,_0x2d3173=_0x5b1aac['length']-0x1,_0x112966;_0x2d3173>=0x0;_0x2d3173--)(_0x112966=_0x5b1aac[_0x2d3173])&&(_0x3eeb37=(_0x38b816?_0x112966(_0x12b7f0,_0x573ad5,_0x3eeb37):_0x112966(_0x3eeb37))||_0x3eeb37);return _0x38b816&&_0x3eeb37&&_0x53e0ad(_0x12b7f0,_0x573ad5,_0x3eeb37),_0x3eeb37;},_0xeaa78c=(_0x456574,_0x57e697)=>(_0x5daf18,_0x16b982)=>_0x57e697(_0x5daf18,_0x16b982,_0x456574);const _0x189f40=_0x46a43e(0x377),_0x9e5796=_0x46a43e(0x254);_0x575351[_0x46a43e(0x253)]=class{constructor(_0x73fcb3,_0x13688c){const _0x5cb042=_0x46a43e;this[_0x5cb042(0x333)]=_0x73fcb3,this[_0x5cb042(0x317)]=_0x13688c;}[_0x46a43e(0x3bc)](){const _0x1c6229=_0x46a43e;var _0x2deb8c;return(_0x2deb8c=this[_0x1c6229(0x317)][_0x1c6229(0x3ea)](_0x189f40))!=null?_0x2deb8c:_0x9e5796;}async['create'](_0x131e25){const _0x556618=_0x46a43e,_0x1c7d64=this['_getAPIPrefixPath']()+'/'+_0x131e25['objectType']+'/object';return(await this[_0x556618(0x333)][_0x556618(0x2a6)](_0x1c7d64,{'body':_0x131e25}))['body']['objectID']||'';}async[_0x46a43e(0x25d)](_0x509d14){const _0x214b66=_0x46a43e,_0x12cfba=this[_0x214b66(0x3bc)]()+'/-/object/list';return(await this[_0x214b66(0x333)]['post'](_0x12cfba,{'body':_0x509d14}))[_0x214b66(0x190)][_0x214b66(0x350)];}async[_0x46a43e(0x26b)](_0x551835){const _0x2423b6=_0x46a43e,_0x2ad63b=this[_0x2423b6(0x3bc)]()+'/'+_0x551835[_0x2423b6(0x3cc)]+_0x2423b6(0x411)+_0x551835[_0x2423b6(0x3a9)];await this[_0x2423b6(0x333)][_0x2423b6(0x409)](_0x2ad63b,{'body':_0x551835});}async[_0x46a43e(0x19a)](_0x425f9a){const _0x3b438e=_0x46a43e,_0x5879dd=this[_0x3b438e(0x3bc)]()+'/'+_0x425f9a[_0x3b438e(0x3cc)]+_0x3b438e(0x411)+_0x425f9a[_0x3b438e(0x3a9)]+'/allowed';return(await this[_0x3b438e(0x333)][_0x3b438e(0x2a6)](_0x5879dd,{'body':_0x425f9a}))['body'][_0x3b438e(0x25e)];}async[_0x46a43e(0x290)](_0x3627b3){const _0x36d40a=_0x46a43e,_0x10cee1=this[_0x36d40a(0x3bc)]()+_0x36d40a(0x2be);return(await this[_0x36d40a(0x333)][_0x36d40a(0x2a6)](_0x10cee1,{'body':{'requests':_0x3627b3}}))[_0x36d40a(0x190)]['objectActions'];}async[_0x46a43e(0x1f0)](_0x1f4032){const _0x4140be=_0x46a43e,_0x55247e=this[_0x4140be(0x3bc)]()+'/'+_0x1f4032[_0x4140be(0x3cc)]+_0x4140be(0x19b),_0x4da844=await this[_0x4140be(0x333)][_0x4140be(0x2a6)](_0x55247e,{'body':_0x1f4032});return{'roles':_0x4da844['body']['roles'],'actions':_0x4da844[_0x4140be(0x190)][_0x4140be(0x25e)]};}async[_0x46a43e(0x3e5)](_0x5e011f){const _0xa53079=_0x46a43e,_0x341d70=this['_getAPIPrefixPath']()+'/collaborator';await this[_0xa53079(0x333)][_0xa53079(0x352)](_0x341d70,{'params':{'collaboratorID':_0x5e011f[_0xa53079(0x43d)],'objectID':_0x5e011f[_0xa53079(0x3a9)],'unitID':_0x5e011f[_0xa53079(0x166)]}});}async[_0x46a43e(0x309)](_0x445888){const _0x580381=_0x46a43e,_0x3d371e=this[_0x580381(0x3bc)]()+_0x580381(0x26d);await this['_HTTPService'][_0x580381(0x208)](_0x3d371e,{'body':_0x445888});}async[_0x46a43e(0x2bf)](_0x5d8b47){const _0x10aa49=_0x46a43e,_0x35bd48=this[_0x10aa49(0x3bc)]()+_0x10aa49(0x26d);await this[_0x10aa49(0x333)]['post'](_0x35bd48,{'body':_0x5d8b47});}async[_0x46a43e(0x3e7)](_0x47f645){const _0x51d0e0=_0x46a43e,_0x27bd5a=this[_0x51d0e0(0x3bc)]()+'/collaborator';return(await this[_0x51d0e0(0x333)][_0x51d0e0(0x2db)](_0x27bd5a,{'params':{'objectID':_0x47f645[_0x51d0e0(0x3a9)],'unitID':_0x47f645[_0x51d0e0(0x166)]}}))[_0x51d0e0(0x190)][_0x51d0e0(0x1df)];}async[_0x46a43e(0x2a2)](_0x1c28b7){const _0x3f4fff=_0x46a43e,_0xb3487a=this['_getAPIPrefixPath']()+_0x3f4fff(0x26d);await this[_0x3f4fff(0x333)][_0x3f4fff(0x409)](_0xb3487a,{'body':_0x1c28b7});}},_0x575351['AuthzIoHttpService']=_0x4879a6([_0xeaa78c(0x0,_0x245a54[_0x46a43e(0x4b5)](_0x3e6592[_0x46a43e(0x494)])),_0xeaa78c(0x1,_0x245a54[_0x46a43e(0x4b5)](_0x5019cf[_0x46a43e(0x460)]))],_0x575351[_0x46a43e(0x253)]);var _0x203421=Object['defineProperty'],_0x40ee38=Object[_0x46a43e(0x1e9)],_0x25045f=(_0x19478d,_0x59638b,_0x2976e9,_0x1eec1a)=>{const _0x5ea692=_0x46a43e;for(var _0x194c32=_0x1eec1a>0x1?void 0x0:_0x1eec1a?_0x40ee38(_0x59638b,_0x2976e9):_0x59638b,_0x2683b9=_0x19478d[_0x5ea692(0x1bb)]-0x1,_0x2ae328;_0x2683b9>=0x0;_0x2683b9--)(_0x2ae328=_0x19478d[_0x2683b9])&&(_0x194c32=(_0x1eec1a?_0x2ae328(_0x59638b,_0x2976e9,_0x194c32):_0x2ae328(_0x194c32))||_0x194c32);return _0x1eec1a&&_0x194c32&&_0x203421(_0x59638b,_0x2976e9,_0x194c32),_0x194c32;},_0x258a1e=(_0x54c684,_0x193bd3)=>(_0x281f2f,_0x43f9ff)=>_0x193bd3(_0x281f2f,_0x43f9ff,_0x54c684);const _0x5d7a8f=['image/png',_0x46a43e(0x263),_0x46a43e(0x3bd),_0x46a43e(0x49f),'image/bmp'],_0x14a658=0x5*0x400*0x400,_0x3842de='EXCHANGE_UPLOAD_FILE_SERVER_URL_KEY',_0x5a13d8=_0x46a43e(0x27f),_0x460fe6=_0x46a43e(0x3d0),_0x279b2b=_0x46a43e(0x330);let _0x461b27=class{constructor(_0x594e20,_0x408584){const _0x20c417=_0x46a43e;_0x3a44bb(this,_0x20c417(0x255),0x0),_0x3a44bb(this,_0x20c417(0x429),new _0x54735b[(_0x20c417(0x238))]()),_0x3a44bb(this,_0x20c417(0x49e),this[_0x20c417(0x429)]),_0x3a44bb(this,_0x20c417(0x23c),new Map()),(this['_httpService']=_0x594e20,this[_0x20c417(0x317)]=_0x408584);}[_0x46a43e(0x443)](_0x1c458f){const _0xb2d795=_0x46a43e;this[_0xb2d795(0x255)]=_0x1c458f,this[_0xb2d795(0x429)][_0xb2d795(0x230)](_0x1c458f);}[_0x46a43e(0x1aa)](_0x30dc90,_0x2ea06a){const _0x197dfa=_0x46a43e;if(_0x2ea06a===_0x11f56d[_0x197dfa(0x239)]['BASE64']){const _0x4540ca=new Image();return _0x4540ca[_0x197dfa(0x478)]=_0x30dc90,_0x4540ca;}return this[_0x197dfa(0x23c)][_0x197dfa(0x2db)](_0x30dc90);}['addImageSourceCache'](_0x269446,_0x4f5dea,_0xda7d98){const _0x1864cc=_0x46a43e;_0x4f5dea===_0x11f56d[_0x1864cc(0x239)][_0x1864cc(0x4d0)]||_0xda7d98==null||this[_0x1864cc(0x23c)][_0x1864cc(0x3f3)](_0x269446,_0xda7d98);}async['getImage'](_0x104c55){const _0x220fb8=_0x46a43e;try{const _0x467b51=this['_replaceFileID'](this[_0x220fb8(0x388)](),''+_0x104c55),_0x1a332e=(await this[_0x220fb8(0x463)][_0x220fb8(0x2db)](_0x467b51))['body'];return _0x1a332e[_0x220fb8(0x3a0)]&&_0x1a332e['error'][_0x220fb8(0x471)]===_0x2fd8ee['OK']?Promise[_0x220fb8(0x4bd)](_0x1a332e[_0x220fb8(0x3d9)]):Promise[_0x220fb8(0x3a8)](_0x1a332e[_0x220fb8(0x3a0)]);}catch(_0x2756e2){return Promise[_0x220fb8(0x3a8)](_0x2756e2);}}async[_0x46a43e(0x506)](_0xb1943c){const _0x23e377=_0x46a43e;let _0x296420='';if(!_0x5d7a8f['includes'](_0xb1943c[_0x23e377(0x219)]))return this['_decreaseWaiting'](),Promise['reject'](new Error(_0x11f56d[_0x23e377(0x196)][_0x23e377(0x447)]));if(_0xb1943c[_0x23e377(0x282)]>_0x14a658)return this['_decreaseWaiting'](),Promise['reject'](new Error(_0x11f56d['ImageUploadStatusType'][_0x23e377(0x2cf)]));try{const _0x50140f=new FormData();_0x50140f[_0x23e377(0x1f4)](_0x23e377(0x4c7),_0xb1943c);const _0x4d5790=this['_getUploadFileURL']()+_0x23e377(0x1d3)+_0xb1943c[_0x23e377(0x282)][_0x23e377(0x1f2)](),_0xad44dd=await(await fetch(_0x4d5790,{'method':_0x23e377(0x495),'body':_0x50140f}))[_0x23e377(0x3f0)]();if(typeof _0xad44dd[_0x23e377(0x30c)]!=_0x23e377(0x4ab))return this['_decreaseWaiting'](),Promise[_0x23e377(0x3a8)](new Error(_0x11f56d[_0x23e377(0x196)][_0x23e377(0x436)]));_0x296420=_0xad44dd['FileId'];}catch{return this[_0x23e377(0x48d)](),Promise[_0x23e377(0x3a8)](new Error(_0x11f56d[_0x23e377(0x196)][_0x23e377(0x436)]));}return new Promise((_0x5e5d0c,_0x44cf9a)=>{const _0x2ce6ec=_0x23e377,_0x5b9b30=new FileReader();_0x5b9b30['readAsDataURL'](_0xb1943c),_0x5b9b30[_0x2ce6ec(0x24a)]=_0x40dec2=>{const _0x4be2bf=_0x2ce6ec;var _0x100720;const _0x115ce8=(_0x100720=_0x40dec2[_0x4be2bf(0x3f9)])==null?void 0x0:_0x100720[_0x4be2bf(0x3ec)];if(_0x115ce8==null){this[_0x4be2bf(0x48d)](),_0x44cf9a(new Error(_0x11f56d[_0x4be2bf(0x196)][_0x4be2bf(0x436)]));return;}const _0x3c4357=_0x5019cf[_0x4be2bf(0x1f7)][_0x4be2bf(0x4ae)](0x6);_0x5e5d0c({'imageId':_0x3c4357,'imageSourceType':_0x11f56d[_0x4be2bf(0x239)][_0x4be2bf(0x17a)],'source':_0x296420,'base64Cache':_0x115ce8,'status':_0x11f56d[_0x4be2bf(0x196)][_0x4be2bf(0x3e0)]}),this['_decreaseWaiting']();};});}[_0x46a43e(0x215)](){const _0x4ef7de=_0x46a43e;var _0x50f127;return(_0x50f127=this[_0x4ef7de(0x317)][_0x4ef7de(0x3ea)](_0x3842de))!=null?_0x50f127:_0x5a13d8;}[_0x46a43e(0x388)](){const _0x4869bc=_0x46a43e;var _0x38126b;return(_0x38126b=this[_0x4869bc(0x317)][_0x4869bc(0x3ea)](_0x460fe6))!=null?_0x38126b:_0x279b2b;}[_0x46a43e(0x169)](_0x39a729,_0x994a58){const _0x5a527b=_0x46a43e;return _0x39a729[_0x5a527b(0x439)]('{fileID}',_0x994a58);}[_0x46a43e(0x48d)](){const _0x56e48f=_0x46a43e;this['_waitCount']-=0x1,this[_0x56e48f(0x429)][_0x56e48f(0x230)](this['_waitCount']);}};_0x461b27=_0x25045f([_0x258a1e(0x0,_0x245a54[_0x46a43e(0x4b5)](_0x3e6592[_0x46a43e(0x494)])),_0x258a1e(0x1,_0x5019cf['IConfigService'])],_0x461b27);var _0x381593=Object[_0x46a43e(0x1c7)],_0x50a92a=Object[_0x46a43e(0x1e9)],_0x4135f0=(_0x58ae09,_0x53f85c,_0x42ee5c)=>_0x53f85c in _0x58ae09?_0x381593(_0x58ae09,_0x53f85c,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x42ee5c}):_0x58ae09[_0x53f85c]=_0x42ee5c,_0x20c680=(_0x54ab19,_0xcbd57d,_0x37edd4,_0x209365)=>{for(var _0x5f0513=_0x209365>0x1?void 0x0:_0x209365?_0x50a92a(_0xcbd57d,_0x37edd4):_0xcbd57d,_0x2d5ebc=_0x54ab19['length']-0x1,_0x4669aa;_0x2d5ebc>=0x0;_0x2d5ebc--)(_0x4669aa=_0x54ab19[_0x2d5ebc])&&(_0x5f0513=(_0x209365?_0x4669aa(_0xcbd57d,_0x37edd4,_0x5f0513):_0x4669aa(_0x5f0513))||_0x5f0513);return _0x209365&&_0x5f0513&&_0x381593(_0xcbd57d,_0x37edd4,_0x5f0513),_0x5f0513;},_0x4b0e38=(_0x316b00,_0x2e9100)=>(_0x37452e,_0x2f9316)=>_0x2e9100(_0x37452e,_0x2f9316,_0x316b00),_0x4f4e18=(_0x11c77d,_0x24f845,_0x191ab9)=>_0x4135f0(_0x11c77d,_0x24f845+'',_0x191ab9);const _0x5877f9='UNIVER_COLLABORATION_CLIENT_PLUGIN';_0x575351[_0x46a43e(0x2f3)]=class extends _0x5019cf['Plugin']{constructor(_0x47f271,_0x547830,_0x1c525d){const _0x32a191=_0x46a43e;super(),this[_0x32a191(0x4d7)]=_0x47f271,this[_0x32a191(0x433)]=_0x547830,this[_0x32a191(0x383)]=_0x1c525d;}[_0x46a43e(0x1fc)](_0x4b1764){const _0x360a82=_0x46a43e;var _0x2f39f0,_0x43181e,_0x211267,_0x2c9d43,_0x15b58e;_0x4b1764[_0x360a82(0x209)](_0x5019cf['IUndoRedoService'])&&this[_0x360a82(0x433)][_0x360a82(0x3a0)](_0x360a82(0x4df),'you\x20should\x20override\x20\x22IUndoRedoService\x22\x20provided\x20in\x20\x22core\x22\x20package!');let _0x132f65=[[_0x5019cf[_0x360a82(0x33a)],{'useClass':_0x18c703}],[_0x575351[_0x360a82(0x4be)]],[_0x10d691],[_0x3e6592[_0x360a82(0x494)]],[_0x279dda,{'useClass':_0x1fff2a}],[_0x4a6424],[_0x575351[_0x360a82(0x2d1)]],[_0x3e6592[_0x360a82(0x28e)]],[_0x20cd4b],[_0x5cf952],[_0xc2ebf4],[_0x141f6f],[_0x58a517],[_0x2bdb70,{'useClass':(_0x43181e=(_0x2f39f0=this['_config'])==null?void 0x0:_0x2f39f0['socketService'])!=null?_0x43181e:_0x575351[_0x360a82(0x1b9)]}],[_0x3e6592['IHTTPImplementation'],{'useClass':_0x3e6592[_0x360a82(0x49d)]}],[_0x5019cf['ISnapshotServerService'],{'useClass':_0x201e04}],[_0x5019cf['IAuthzIoService'],{'useClass':_0x575351[_0x360a82(0x253)]}],[_0x11f56d[_0x360a82(0x427)],{'useClass':_0x461b27}],[_0x575351['CollaborationController']],[_0x575351['DataLoaderController']],[_0x575351['DesktopCollaborationStatusDisplayController']],[_0x5bbd97],[_0x4a938f]];(_0x211267=this[_0x360a82(0x4d7)])!=null&&_0x211267[_0x360a82(0x39d)]&&_0x132f65[_0x360a82(0x23e)]([_0x235b99,{'useClass':_0x23b11a}]),((_0x2c9d43=this[_0x360a82(0x4d7)])==null?void 0x0:_0x2c9d43[_0x360a82(0x340)])==null||this[_0x360a82(0x4d7)][_0x360a82(0x340)][_0x360a82(0x25f)](_0x5019cf[_0x360a82(0x28c)][_0x360a82(0x258)])?_0x132f65[_0x360a82(0x23e)]([_0x22d685]):this['_config'][_0x360a82(0x340)][_0x360a82(0x25f)](_0x5019cf[_0x360a82(0x28c)][_0x360a82(0x27d)])&&_0x132f65[_0x360a82(0x23e)]([_0x1fd8eb]),_0x132f65=_0x5019cf[_0x360a82(0x1c1)](_0x132f65,(_0x15b58e=this[_0x360a82(0x4d7)])==null?void 0x0:_0x15b58e[_0x360a82(0x1d5)]),_0x132f65[_0x360a82(0x39a)](_0x5a07aa=>_0x4b1764['add'](_0x5a07aa)),_0x4b1764[_0x360a82(0x2db)](_0x3e6592[_0x360a82(0x494)])[_0x360a82(0x216)]({'priority':0x14,'interceptor':_0x3e6592[_0x360a82(0x213)]({'maxParallel':0x6})}),this[_0x360a82(0x3d1)]();}['_initModules'](){const _0x32ac6d=_0x46a43e;var _0x1b8bf3,_0x27933a;(_0x1b8bf3=this[_0x32ac6d(0x4d7)])!=null&&_0x1b8bf3[_0x32ac6d(0x3be)]||this[_0x32ac6d(0x383)][_0x32ac6d(0x2db)](_0x575351[_0x32ac6d(0x2d1)])[_0x32ac6d(0x4a7)](),(_0x27933a=this['_config'])!=null&&_0x27933a[_0x32ac6d(0x48c)]&&this[_0x32ac6d(0x383)][_0x32ac6d(0x2db)](_0x58a517);}},_0x4f4e18(_0x575351['UniverCollaborationClientPlugin'],_0x46a43e(0x273),_0x5877f9),_0x575351['UniverCollaborationClientPlugin']=_0x20c680([_0x5019cf[_0x46a43e(0x36d)](_0x38ce1a[_0x46a43e(0x297)]),_0x4b0e38(0x1,_0x5019cf['ILogService']),_0x4b0e38(0x2,_0x245a54[_0x46a43e(0x4b5)](_0x245a54[_0x46a43e(0x236)]))],_0x575351[_0x46a43e(0x2f3)]),_0x575351[_0x46a43e(0x377)]=_0x189f40,_0x575351[_0x46a43e(0x3c4)]=_0x3b6bea,_0x575351[_0x46a43e(0x201)]=_0x48a35f,_0x575351['CollaborationStatus']=_0x348409,_0x575351[_0x46a43e(0x31f)]=_0x263e0e,_0x575351[_0x46a43e(0x2b1)]=_0x2528f8,_0x575351[_0x46a43e(0x3b6)]=_0x405e7e,_0x575351['ICollaborationSocketService']=_0x2bdb70,_0x575351[_0x46a43e(0x32b)]=_0x279dda,_0x575351[_0x46a43e(0x3de)]=_0x4a1864,_0x575351[_0x46a43e(0x1e3)]=_0xb62ff0,_0x575351[_0x46a43e(0x1e4)]=_0xb347b,_0x575351['SNAPSHOT_SERVER_URL_KEY']=_0xb4801b,_0x575351[_0x46a43e(0x487)]=_0x25d6a7,_0x575351[_0x46a43e(0x222)]=_0x1ae891,_0x575351[_0x46a43e(0x1b6)]=_0x1fff2a,_0x575351[_0x46a43e(0x2aa)]=_0x50f340,_0x575351[_0x46a43e(0x445)]=_0x171c24,Object[_0x46a43e(0x1c7)](_0x575351,Symbol[_0x46a43e(0x45b)],{'value':_0x46a43e(0x40e)});}));function _0x15ab(){const _0x3874a6=['\x0aAfter:\x20','Workbook','isTransformMutationsWithChangesetFailure','_univerInstanceService','YUUMI_UNABLE_LOAD_URL','SUBMIT_CHANGESET','forEach','_memberService','disposeUnit','enableSingleActiveInstanceLock','_getUndoStack','pushState','error','forwardRef','MoveRangeCommandId','getCollabCursors$','handleInsertRangeMoveRight','LocaleService','_isPermissionRej','init','reject','objectID','_id','div','serializeRangeWithSheet','@univerjs/core','text','awaiting_with_pending','editing\x20status\x20changed\x20to','_handleJoinEvent','OnLifecycle','registerRefRange','off-line-single_clip0_910_343','roomMembers','HEARTBEAT_TIMEOUT_KEY','_pendingMutations','function','ICommandService','transformMutationsWithChangeset','lodash/debounce','_getAPIPrefixPath','image/jpg','enableOfflineEditing','getMemberID','storage','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','TextSelectionManagerService','indexOf','COLLAB_SUBMIT_CHANGESET_URL_KEY','UNKNOWN_CODE','concat','message$','_cachedData','color','univerjs-icon\x20univerjs-icon-','YUUMI_URL_COL_OUT_OF_RANGE','objectType','clearInterval','_scheduleTimestamp','newValue','EXCHANGE_SIGN_URL_SERVER_URL_KEY','_initModules','APPLY_REVISION_CONFILICT','collab-text-anchor-','transformByState','current','LocalUndoRedoService','Univer','values','url','top','0\x200\x2017\x2016','_onRecvEvent','_transformRemoteChangesetByIMECache','LOCAL_CACHE_INTERVAL_KEY','INTERNAL_ERROR','SUCCUSS','merge','UserManagerService','findNodePositionByCharIndex','onSendChangeset','deleteCollaborator','Error\x20on\x20receiving\x20event','listCollaborators','disposeWithMe','Steady','getConfig','[SyncedState]:\x20received\x20rejection.','result','LEAVE','FAIL','getAncestorScale','json','_schedule','[SyncedState]:\x20invalid\x20calling\x20to\x20`resend`.','set','unknown','setTimeout','_collabCursorController','isTransformChangesetsSuccess','[FetchingMissState]:\x20invalid\x20calling\x20to\x20`resend`.','target','[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.','CollaborationController','NOT_COLLAB','_clearOtherTimers','SelectionManagerService','Unknown\x20user','_unitID','UniverDrawing','IPermissionService','UPDATE_CURSOR','_range','[ConflictState]:\x20invalid\x20calling\x20to\x20`resend`.','SnapshotService','SYNCED','_executeRemoteChangeset','put','replaceState','_selfUnitIDs','IBeforeCloseService','_unitStatus','Module','SetWorksheetActivateCommand','entries','/object/','width','BehaviorSubject','USERS_LEAVE','_transformPreviousActiveRange','_replayCachedMutations','_getSendChangesetTimeout','debug','CommandType','takeUntil','UniverSheetsUi','_event$','_retryCount','_color','isTransformMutationsWithChangesetSuccess','CONFLICT','_acknowledgedAwaitingChangeset','catch','_getRedoStack','_unlockTransition','getViewport','switchMap','IImageIoService','interceptor','_change$','univer-online-status','COLLAB_SUBMIT_CHANGESET_URL','workbook','_collaborationController','UNDEFINED','NO_OTHER_CLIENTS_EDITING','measureText','createInstance','transformMutation','_logService','IMessageService','univer-offline','ERROR_IMAGE','getMergeData','getOffsetConfig','replace','add','path','setParam','collaboratorID','_renderManagerService','_transformService','ONLINE','UNKNOWN_CMD','unshift','setWaitCount','loadOfflineData','serializeCombRequest','DisposableCollection','ERROR_IMAGE_TYPE','flatMap','unitId','textRanges','localeService','trim','searchParams','onMissedChangesetFetched','LIVESHARE_NEW_HOST','name','params','onRemoteAck','RECV','_checkMissing','_cursors','_transformIMECache','joinEvent','parse','HEARTBEAT_INTERVAL','_initStatusListener','toStringTag','_onUserLeave','defs','rxjs/operators','[FetchMissState]','IConfigService','_hideTimer','\x20-\x20','_httpService','/rev/','fetching\x20missing\x20changesets\x20from\x20','569046GCqvem','univer-online-status-title','state','FETCH_MISSING','createIdentifier','colorChannel1','sheetId','onTransformRemoteChangesetByIMECache','UNIVER_UNKNOWN','hide','MSG_FOR_ERROR','code','resend','map','_refRangeService','FromArray','session','_anchorDot','src','changesets','apply','delay','gold400','_onCombEvent','black','MessageType','[CollaborationUndoRedoService]','[CollaborationEntity]:\x20initial\x20state\x20has\x20been\x20created\x20before.\x20You\x20should\x20not\x20call\x20\x22init\x22\x20twice.','JOINING','MUTATION','updateOfflineData','stringify','href','SNAPSHOT_URL_KEY','permission.title','_onJoinRoomEvent','fetchThroughInterceptors','ITransformService','enableAuthServer','_decreaseWaiting','_state$','getUnitStatus$','_updateStatus','combineLatest','max','Error','HTTPService','POST','_waitForHeartbeatResponse','SNAPSHOT_SERVER_URL_KEY','[OfflineState]:\x20received\x20changeset.','hovered','onTransformSelections','_createInitialStateImpl','_socketReady','XHRHTTPImplementation','change$','image/gif','state$','status','displayName','_revisionService','offline','dispose$','not_collab','disableLocalCache','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','_userManagerService','arc','string','executeCommand','RevisionService','generateRandomId','_createSocket','pipe','DEFAULT_FILE_NAME','addObject','EffectRefRangId','_state','Inject','_timeoutTimer','CHANGESET_ACK','getParam','getMember','_substituteUndoStack','getItem','_assignedColors','resolve','CollaborationSessionService','registerComponent','_getSheetObject','IMEInputManagerService','incrementRevForDocument','focused$','saveChangeset','_onRemoteRejected','_onUserJoin','file','_submitChangeset','...','distinctUntilChanged','@univerjs/engine-formula','CollaborationEvent','setActiveRange','permissionRejEvent','jiqing500','BASE64','CONNECTOR_DATA_TOO_LARGE','React','UniverCollaboration','@univerjs/engine-render','bottom','awaitingChangeset','_config','height','off-line-single','_syncEditingCollabCursorService','parseProtocolChangeset','@wendellhu/redi/react-bindings','_handler','UniverCore','[UniverCollaborationClientPlugin]','fromEvent','open$','IUniverInstanceService','_lockTransition','selections','getUniverSheetInstance','ILogService','popstate','_awaitingChangeset','isArray','3671598gmhHQX','_transitionLocked','_entities','getCollabEntity$','HEARTBEAT_TIMEOUT','moveTo','getCurrent','_disableEditing','on-line-single_clip0_910_349','_anchor','clear','editingUnit','show','getCollabEntity','_substituteRedoStack','[PendingState]:\x20received\x20acknowledgement.','[CollaborationState]:\x20apply\x20error!','transformUndoRedo','getCellPositionByOffset','call','socket\x20open.','InsertRangeMoveDownCommandId','handleIRemoveCol','icon','BuiltInUIPart','_collabCursorState$','_status$','_getLoginPath','saveImage','UNRECOGNIZED','_localeService','_queuedRemoteChangesets','socket\x20close','COLLAB_WEB_SOCKET_URL','_singleActiveUnitService','_onConnectionFailed','rxjs','triggerDblclick','isTransformMutationFailure','unit','updateCursorEvent','_onCursorUpdate','sessionStatus$','_getSaveTimeout','handleInsertRow','range','unitID','baseRev','_onConnectionOpen','_replaceFileID','enableLocalCache','[DataLoaderController]','setCurrentUser','_clearLocalCache','getDataModel','LICENSE_EXPORT_SIZE_EXCEEDED','ColorKit','setShapeProps','column','dispose','getCoordByCell','send','_clearScheduledTask','handleDeleteRangeMoveLeft','saveSheetBlock','INGEST','UUID','unload','getRoom','_incrementRevisionNumber','833200sJkXpv','isEditing','_docTransformSelectionsService','amd','setItem','handleIRemoveRow','_colorAssignService','save\x20fail\x20reason\x20is\x20','startRow','tag','JOIN','RegularPolygon','getActiveSheet','_loadSheet','InsertColCommandId','_heartbeatTimer','_updateCollabCursors','with','body','1054025PHpwsr','_applyRemoteChangeset','Vector2','verdancy600','WorkbookEditablePermission','ImageUploadStatusType','_clearRedo','FETCH_MISS','_socket$','allowed','/role','subunit','closePath','_getCtorByUniverType','collabStatus.syncing','_createHandler','ws://127.0.0.1:8000/universer-api/comb/connect','fetch_missing','close$','_getMergeRange','onlyLocal','ThemeService','_scheduleHeartbeat','endRow','_drawAnchor','getImageSourceCache','cmd','[PendingState]:\x20invalid\x20calling\x20to\x20`resend`.','@univerjs/design','_syncEditingCollabCursor','_updateState','Ready','failed\x20to\x20apply\x20missed\x20changesets!','isPermissionRej','@univerjs/sheets-ui','CollaborationSession','getTypeOfUnitAdded$','WebURLService','getRelativeCoord','OFFLINE','CollaborationSocketService','_toggleOnline','length','_onRemoteACK','_sendHeartbeatTimer','_entityInit$','_clearUndo','RxDisposable','mergeOverrideWithDependencies','1em','_type','routeKey','operators','substring','defineProperty','permission.content','/unit/','revision','_send','getCurrentRevForDocument','clipPath','idSuffix','_sessions','unsubscribe','ISnapshotServerService','SEND_CHANGESET_TIMEOUT','?size=','svg','override','_undoRedoService','transformChangesets','object','_clearTimeoutTimer','Warning','IRenderManagerService','_updateURLWithCurrentState','Rectangle','Rect','collaborators','_permissionService','APPLY_PERMISSION_DENIED','InsertRangeMoveRightCommandId','LOGIN_URL_KEY','SEND_CHANGESET_TIMEOUT_KEY','c2Prime','_socketMessageSubscription','runRefRangeMutations','status$','getOwnPropertyDescriptor','getSheetBlock','_removeRoom','csRejEvent','useObservable','_createInitialState','b64DecodeUnicode','listRoles','getColor','toString','@univerjs/rpc','append','on-line-single','@wendellhu/redi','Tools','_localStorageService','ILocalStorageService','getOwnPropertySymbols','onRemoteRej','onStarting','_snapshotServerService','_members','/universer-api/comb','#fff','COLLAB_WEB_SOCKET_URL_KEY','_textBubble','AWAITING_WITH_PENDING','event$','@univerjs/docs','_messageService','InsertSheetMutation','patch','has','LOCAL_CACHE_INTERVAL','collabStatus.synced','doc.mutation.rich-text-editing','_socket','debounceTime','url(#on-line-single_clip0_910_349)','_transformStack','[serializeCombRequest]:\x20should\x20not\x20fall\x20into\x20default\x20branch!','save','ThresholdInterceptorFactory','onlineStatus','_getUploadFileURL','registerHTTPInterceptor','location','_onRemoteChangeset','type','getResourcesRequest','hasOwnProperty','getCurrentUnitForType','collaMsg','[CollaborationSession]:\x20should\x20not\x20send\x20message\x20when\x20the\x20session\x20is\x20offline!','_sessionStatus$','_name','_lastPointer','SessionStatus','csAckEvent','AWAITING','_saveCache','transformIMECache','[CollaborationSessionService]','InsertRowCommandId','This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!','xlink:href','_getDocObject','saveOfflineData','getUnitType','_handleEvent','_unitId','next','_removeClearOtherTimer','lineTo','_tryEnsureSocket','round','[OfflineState]:\x20received\x20rejection.','Injector','pauseCollaboration','Subject','ImageSourceType','conflict.title','NOT_FOUND','_imageSourceCache','RETRY_CONNECTING_MAX_COUNT','push','data','transformStack\x20failed!','Starting','roomInfos','_sheetSkeletonManagerService','_onCursorDelete','_onFetchMissResult','getRenderById','shareReplay','_online','OTHER_CLIENTS_EDITING','onload','roomMembers$','VIEW_MAIN','eventID','encodeURIComponent','getFocusedUnit','getValue','_getAnchorBounding','@univerjs/drawing','AuthzIoHttpService','/universer-api/authz','_waitCount','contains','memberID','UNIVER_SHEET','transform','/universer-api/snapshot','getScrollXYByRelativeCoords','clearTimeout','list','actions','includes','assignAColorForMemberID','_compressMutationService','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','image/jpeg','children','DesktopCollaborationStatusDisplayController','SNAPSHOT_HAS_BEEN_REMOVED','collabStatus.conflict','?url=','split','asObservable','update','none','/collaborator','_clearHeartbeatTimer','_roomMembers$','INVALID_ARGUMENT','getUnhiddenWorksheets','m1Prime','pluginName','error$','_showConflictNotification','SheetSkeletonManagerService','_scheduleCollaborationTimeoutTimer','onSyncEditingCollabCursor','isActive','handleDeleteRangeMoveUp','labelPosition','SetSelectionsOperation','UNIVER_DOC','mapDocumentTypeToUniverType','/universer-api/stream/file/upload','_updateLocalCursor','_remoteChangesetQueue','size','currentColor','[CollaborationSession]','RefRangeService','onTransformIME','_ws','_transformSelections','confirm','_onRefRangeChange','awaiting','UniverInstanceType','PERMISSION_DENIED','WebSocketService','_hover','batchAllowed','onMouseMove','_undoStacks','history','_updateSubUnitFromURLParams','_snapshotService','/fetchmissing?from=','UniverCollaborationPlugin','IDLE','_startDocCollabCursor','TEXT_RANGE_LAYER_INDEX','APPLY_NON_SEQUENTIAL_REVISION','_eventUnsubscribe','_sendHeartbeat','removeMember','slice','collab-text-range-','connection\x20error','putCollaborators','_colorIndex','filter','collabCursorState$','post','COMPRESS_MUTATION_APPLY','_onConflict','addEventListener','deserializeToCombResponse','_ensureSubject','deepClone','@univerjs/ui','complete','close','CompressMutationService','HEARTBEAT_INTERVAL_KEY','originalMeta','toRgbString','_scheduleClearOtherTimer','unit-cache-','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','_collabSessionService','_session','Optional','getRangePointData','getActiveRange','c1Prime','UniverDesign','/-/object/-/batch_allowed','createCollaborator','_toggleOffline','getInterceptPoints','mutations','IContextService','_collaborationPaused','then','getUnitId','_setupSubUnitSync','_transformUndoRedoStack','\x20to\x20','joinRsp','currentSkeleton$','sheetID','_disabled','cursorInfo','ERROR_EXCEED_SIZE','encode','LocalCacheService','fill','drawWith','url(#$1','HEADER_MENU','transformSelections','_loadDoc','toggleOnline','toggleOffline','_themeService','get','onRemoteChangeset','M0\x200H16V16H0z','session.collaboration-timeout','CHANGESET_REVISION_CONFILICT','_getSnapshotAPIPrefix','_notificationService','_fetchMissChangesets','_collaborationTimeoutTimer','collabStatus.fetchMiss','evenodd','_docSyncEditingCollabCursorService','_startCollaboration','reduce','_scheduleSaving','onMissingChangesets','HEARTBEAT','IRemoteInstanceService','LifecycleStages','_joinRoom','LIVESHARE_REQUEST_HOST','_labelPosition','userID','CHANGESET_REJ','UniverCollaborationClientPlugin','symbol','connectInjector','whenReady','updateMember','UNAUTHENTICATED','507807oYqnTr','extend','_onLocalMutation','getSelections','min','_getScale','DeleteRangeMoveUpCommandId','onPointerMove$','rev','_getAPIPrefix','_handleLeaveEvent','row','onPointerLeave$','@univerjs/sheets','LICENSE_MAX_UNITS_EXCEEDED','fillStyle','updateCollaborator','_startSheetCollabCursor','_transformUndoredo','FileId','sequenceExecute','HELLO','prototype','@univerjs/network','liveShareOperation','liveShareNewHost','DocStateChangeManagerService','2yyFysE','2145088ySwGpq','160LVJCAN','_configService','serializeTextRange','_setupBeforeClosingHandler','collaboration-client.offline-data-not-saved','getUndoRedoMutationParamsCache','react','PSEUDO_FETCH_MISSING_RESULT','_removeCollabCursors','CollaborationStatusDisplay','makeDirty','useDependency','getTime','createSocket','subscribe','[ClientCollaborationController]:\x20invalid\x20state\x20transition!\x20State\x20transferred\x20from\x20is\x20not\x20the\x20current\x20state.\x0aBefore:\x20','APPLY_REJECT','844689jeePbx','handleInsertRangeMoveDown','[CollaborationSessionService]:\x20socket\x20error','Disposable','IURLService','onPointerEnter$','createElement','_saveTaskMap','_beforeCloseService','/universer-api/file/{fileID}/sign-url','_clearCollaborationTimeoutTimer','[SyncedState]:\x20received\x20acknowledgement.','_HTTPService','_cursor','handleMoveRange','_init','_getCurrentRevision','RichTextEditingMutation','use','IUndoRedoService','LIVESHARE_TERMINATE','[CollaborationEntity]:\x20cannot\x20apply\x20missing\x20results\x20on\x20other\x20states!','requireSession','UNIVER_SLIDE','RETRY_CONNECTING_INTERVAL','collaborationUniverTypes','take','ALREADY_EXISTS','attrs','_http','_rescheduleHeartbeatEvent','fetchMissingChangesets','LIVESHARE_FETCH_OPERATIONS','selection','className','defIds','UniverUi','_socketService','_commandService','_document','assign','objects','@univerjs-pro/collaboration','delete','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','session.will-retry','_docTransformIMECacheService','UniverRpc','ACTIVE_UNIT_EVENT_CHANNEL','_sendingTimer','reverse','USERS_ENTER','getSheetId','OnLineSingle','currentTheme$','toDisposable','m2Prime','purple300','LICENSE_DISTRO_REJECTED','_roomMembers','_hovered','LIVESHARE_OPERATION','PENDING','onCommandExecuted','COLORS','collaboration.single-unit.warning','_retryConnectingTimer','restore','_unitOnClients','_shapes','DependentOn','_localCacheService','_handleHover','Cannot\x20assemble\x20a\x20changeset\x20from\x20multiple\x20mutations\x20of\x20different\x20types:\x20','getTypeOfUnitDisposed$','_drawRange','getCurrentUser','_onMessage','_cursorInfo$','sessionStatus','AUTHZ_URL_KEY','appendMutation','cursorInfo$','_exhaustSavingTask','_scheduleReconnection','NodePositionConvertToCursor','updatePermissionPoint','pending','COMPLETION_FINISHED','from','subscribeEvent','[PendingState]:\x20unhandled\x20univer\x20type:\x20','_injector','_urlService','_updateLocalCache','fetching\x20the\x20latest\x20document\x20from\x20the\x20server.','clsx','_getSignURL','endColumn','_scene','_uiPartsService','submit\x20changeset\x20error!','NEW_CHANGESETS','#FFF','textEncoder','\x0aCurrent:\x20','urlChange$','getSheetBySheetId','DocSkeletonManagerService'];_0x15ab=function(){return _0x3874a6;};return _0x15ab();}