@univerjs-pro/collaboration-client 0.4.0-nightly.202410151606 → 0.4.0-nightly.202410171606

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 _0x2a06(_0x7402eb,_0x3de2a9){const _0x59d96d=_0x59d9();return _0x2a06=function(_0x2a063b,_0x2aa471){_0x2a063b=_0x2a063b-0x1a5;let _0x1b7550=_0x59d96d[_0x2a063b];return _0x1b7550;},_0x2a06(_0x7402eb,_0x3de2a9);}(function(_0x7047d1,_0x53e4bd){const _0x23ac26=_0x2a06,_0x113f0a=_0x7047d1();while(!![]){try{const _0x1d9dc3=-parseInt(_0x23ac26(0x297))/0x1+parseInt(_0x23ac26(0x46c))/0x2*(-parseInt(_0x23ac26(0x2e8))/0x3)+-parseInt(_0x23ac26(0x1d8))/0x4*(-parseInt(_0x23ac26(0x47e))/0x5)+-parseInt(_0x23ac26(0x341))/0x6*(-parseInt(_0x23ac26(0x1f7))/0x7)+parseInt(_0x23ac26(0x593))/0x8*(-parseInt(_0x23ac26(0x532))/0x9)+parseInt(_0x23ac26(0x45d))/0xa*(parseInt(_0x23ac26(0x1b5))/0xb)+parseInt(_0x23ac26(0x32f))/0xc*(parseInt(_0x23ac26(0x37e))/0xd);if(_0x1d9dc3===_0x53e4bd)break;else _0x113f0a['push'](_0x113f0a['shift']());}catch(_0x9e42db){_0x113f0a['push'](_0x113f0a['shift']());}}}(_0x59d9,0xd901d),function(_0x59c776,_0x4491b6){const _0x199181=_0x2a06;typeof exports==_0x199181(0x426)&&typeof module<'u'?_0x4491b6(exports,require('@univerjs/core'),require(_0x199181(0x466)),require(_0x199181(0x527)),require(_0x199181(0x4b3)),require(_0x199181(0x44c)),require(_0x199181(0x3e2)),require(_0x199181(0x55c)),require(_0x199181(0x2ce)),require('@univerjs/docs'),require(_0x199181(0x39f)),require(_0x199181(0x1d6)),require(_0x199181(0x36f)),require(_0x199181(0x509)),require('@univerjs/engine-formula'),require(_0x199181(0x4ff)),require('react'),require(_0x199181(0x3b1)),require('@univerjs-pro/license')):typeof define=='function'&&define['amd']?define([_0x199181(0x308),_0x199181(0x47b),_0x199181(0x466),'rxjs/operators',_0x199181(0x4b3),'@univerjs/ui',_0x199181(0x3e2),_0x199181(0x55c),_0x199181(0x2ce),'@univerjs/docs',_0x199181(0x39f),'@univerjs/sheets','@univerjs/engine-render',_0x199181(0x509),_0x199181(0x1e3),_0x199181(0x4ff),_0x199181(0x327),_0x199181(0x3b1),_0x199181(0x51f)],_0x4491b6):(_0x59c776=typeof globalThis<'u'?globalThis:_0x59c776||self,_0x4491b6(_0x59c776[_0x199181(0x39c)]={},_0x59c776[_0x199181(0x4f5)],_0x59c776[_0x199181(0x466)],_0x59c776[_0x199181(0x466)][_0x199181(0x53f)],_0x59c776[_0x199181(0x371)],_0x59c776[_0x199181(0x284)],_0x59c776[_0x199181(0x586)],_0x59c776[_0x199181(0x26d)],_0x59c776[_0x199181(0x29d)],_0x59c776[_0x199181(0x2c4)],_0x59c776['UniverDocsUi'],_0x59c776[_0x199181(0x299)],_0x59c776['UniverEngineRender'],_0x59c776['UniverDrawing'],_0x59c776[_0x199181(0x379)],_0x59c776[_0x199181(0x358)],_0x59c776[_0x199181(0x486)],_0x59c776[_0x199181(0x435)],_0x59c776[_0x199181(0x330)]));}(this,function(_0x19f7dc,_0x5ee268,_0x56990c,_0x2b56b2,_0x2e321b,_0x56f90f,_0x519640,_0x437f93,_0x28800d,_0x45fa2b,_0x2d522a,_0x149ec5,_0x454685,_0x10f0dc,_0x5cdf78,_0x2f74a8,_0x1d8717,_0x1f4649,_0x28eb5f){'use strict';const _0x1a9c4c=_0x2a06;var _0x5aaeb4=Object[_0x1a9c4c(0x340)],_0x8ef399=(_0x175c97,_0x10b721,_0x4f26e6)=>_0x10b721 in _0x175c97?_0x5aaeb4(_0x175c97,_0x10b721,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x4f26e6}):_0x175c97[_0x10b721]=_0x4f26e6,_0x1328f6=(_0x2e345f,_0x3c6c4a,_0x3f473d)=>_0x8ef399(_0x2e345f,typeof _0x3c6c4a!=_0x1a9c4c(0x353)?_0x3c6c4a+'':_0x3c6c4a,_0x3f473d);const _0x8e4b39=_0x1a9c4c(0x291),_0x549ccb=_0x1a9c4c(0x335),_0x496fb6='SNAPSHOT_URL_KEY',_0x10223c=_0x1a9c4c(0x55a),_0x4684ef='COLLAB_WEB_SOCKET_URL',_0x2db330=_0x1a9c4c(0x512),_0x41bc7c=_0x1a9c4c(0x287),_0x4d3fc9=_0x1a9c4c(0x286),_0x981892=_0x1a9c4c(0x281),_0x9bc94d=_0x1a9c4c(0x46b),_0x2d1c45=_0x1a9c4c(0x4cb),_0x240dfd=_0x1a9c4c(0x1f5),_0x2e60e8='LOGIN_URL_KEY',_0x4847b7=_0x1a9c4c(0x5aa);var _0x4ac219=(_0xc0fac9=>(_0xc0fac9[_0xc0fac9[_0x1a9c4c(0x515)]=0x0]=_0x1a9c4c(0x515),_0xc0fac9[_0xc0fac9['OK']=0x1]='OK',_0xc0fac9[_0xc0fac9[_0x1a9c4c(0x51c)]=0x2]=_0x1a9c4c(0x51c),_0xc0fac9[_0xc0fac9['PERMISSION_DENIED']=0x3]=_0x1a9c4c(0x25b),_0xc0fac9[_0xc0fac9[_0x1a9c4c(0x3d4)]=0x4]='NOT_FOUND',_0xc0fac9[_0xc0fac9[_0x1a9c4c(0x2de)]=0x5]=_0x1a9c4c(0x2de),_0xc0fac9[_0xc0fac9[_0x1a9c4c(0x375)]=0x6]=_0x1a9c4c(0x375),_0xc0fac9[_0xc0fac9[_0x1a9c4c(0x48a)]=0x7]=_0x1a9c4c(0x48a),_0xc0fac9[_0xc0fac9['TOO_MANY_REQUESTS']=0x8]=_0x1a9c4c(0x34e),_0xc0fac9[_0xc0fac9[_0x1a9c4c(0x551)]=0x9]='COMPLETION_FINISHED',_0xc0fac9[_0xc0fac9[_0x1a9c4c(0x349)]=0x1389]=_0x1a9c4c(0x349),_0xc0fac9[_0xc0fac9[_0x1a9c4c(0x1b9)]=0x1771]=_0x1a9c4c(0x1b9),_0xc0fac9[_0xc0fac9[_0x1a9c4c(0x473)]=0x1772]='SNAPSHOT_HAS_BEEN_REMOVED',_0xc0fac9[_0xc0fac9[_0x1a9c4c(0x484)]=0x1b59]=_0x1a9c4c(0x484),_0xc0fac9[_0xc0fac9[_0x1a9c4c(0x4ae)]=0x1b5a]=_0x1a9c4c(0x4ae),_0xc0fac9[_0xc0fac9[_0x1a9c4c(0x213)]=0x1b5b]='APPLY_REVISION_CONFILICT',_0xc0fac9[_0xc0fac9[_0x1a9c4c(0x522)]=0x1b5c]=_0x1a9c4c(0x522),_0xc0fac9[_0xc0fac9[_0x1a9c4c(0x460)]=0x1f41]=_0x1a9c4c(0x460),_0xc0fac9[_0xc0fac9[_0x1a9c4c(0x2be)]=0x2329]=_0x1a9c4c(0x2be),_0xc0fac9[_0xc0fac9[_0x1a9c4c(0x398)]=0x232a]=_0x1a9c4c(0x398),_0xc0fac9[_0xc0fac9[_0x1a9c4c(0x5d2)]=0x232b]=_0x1a9c4c(0x5d2),_0xc0fac9[_0xc0fac9[_0x1a9c4c(0x255)]=0x232c]=_0x1a9c4c(0x255),_0xc0fac9[_0xc0fac9['LICENSE_DISTRO_REJECTED']=0x232d]='LICENSE_DISTRO_REJECTED',_0xc0fac9[_0xc0fac9[_0x1a9c4c(0x415)]=0x2711]=_0x1a9c4c(0x415),_0xc0fac9[_0xc0fac9[_0x1a9c4c(0x47d)]=0x2712]=_0x1a9c4c(0x47d),_0xc0fac9[_0xc0fac9[_0x1a9c4c(0x4f0)]=0x2713]=_0x1a9c4c(0x4f0),_0xc0fac9[_0xc0fac9['YUUMI_SUBSCRIPTION_NOT_FOUND']=0x2714]=_0x1a9c4c(0x450),_0xc0fac9[_0xc0fac9['UNRECOGNIZED']=-0x1]=_0x1a9c4c(0x26b),_0xc0fac9))(_0x4ac219||{}),_0x69fde1=(_0x187360=>(_0x187360[_0x187360[_0x1a9c4c(0x4ee)]=0x0]=_0x1a9c4c(0x4ee),_0x187360[_0x187360['UNIVER_DOC']=0x1]=_0x1a9c4c(0x1ec),_0x187360[_0x187360[_0x1a9c4c(0x498)]=0x2]=_0x1a9c4c(0x498),_0x187360[_0x187360[_0x1a9c4c(0x24e)]=0x3]='UNIVER_SLIDE',_0x187360[_0x187360[_0x1a9c4c(0x4c7)]=0x4]=_0x1a9c4c(0x4c7),_0x187360[_0x187360[_0x1a9c4c(0x26b)]=-0x1]='UNRECOGNIZED',_0x187360))(_0x69fde1||{}),_0x4e0841=(_0x4a1e79=>(_0x4a1e79[_0x4a1e79[_0x1a9c4c(0x1d3)]=0x0]=_0x1a9c4c(0x1d3),_0x4a1e79[_0x4a1e79[_0x1a9c4c(0x24c)]=0x1]='HELLO',_0x4a1e79[_0x4a1e79['JOIN']=0x2]=_0x1a9c4c(0x271),_0x4a1e79[_0x4a1e79['LEAVE']=0x3]=_0x1a9c4c(0x2dc),_0x4a1e79[_0x4a1e79[_0x1a9c4c(0x332)]=0x4]=_0x1a9c4c(0x332),_0x4a1e79[_0x4a1e79['HEARTBEAT']=0x5]='HEARTBEAT',_0x4a1e79[_0x4a1e79['RECV']=0x6]='RECV',_0x4a1e79[_0x4a1e79['UNRECOGNIZED']=-0x1]=_0x1a9c4c(0x26b),_0x4a1e79))(_0x4e0841||{}),_0x389c04=(_0x490458=>(_0x490458[_0x490458[_0x1a9c4c(0x2ed)]=0x0]=_0x1a9c4c(0x2ed),_0x490458[_0x490458['OK']=0x1]='OK',_0x490458[_0x490458[_0x1a9c4c(0x30c)]=0x2]=_0x1a9c4c(0x30c),_0x490458[_0x490458[_0x1a9c4c(0x26b)]=-0x1]='UNRECOGNIZED',_0x490458))(_0x389c04||{}),_0x15145c=(_0x2478b1=>(_0x2478b1[_0x2478b1[_0x1a9c4c(0x30b)]=0x0]=_0x1a9c4c(0x30b),_0x2478b1[_0x2478b1[_0x1a9c4c(0x547)]=0x1]=_0x1a9c4c(0x547),_0x2478b1[_0x2478b1['HttpExport']=0x2]=_0x1a9c4c(0x4f2),_0x2478b1[_0x2478b1[_0x1a9c4c(0x4a3)]=0x3]=_0x1a9c4c(0x4a3),_0x2478b1[_0x2478b1[_0x1a9c4c(0x2e2)]=0x4]=_0x1a9c4c(0x2e2),_0x2478b1[_0x2478b1[_0x1a9c4c(0x26b)]=-0x1]=_0x1a9c4c(0x26b),_0x2478b1))(_0x15145c||{});const _0x17bae2=_0x1a9c4c(0x3e5),_0x552a85={};function _0x580925(_0x413703){const _0x47ee3f=_0x1a9c4c;var _0x4368ef,_0x45e3ac,_0x3ef452,_0x4a718e;const _0x1b2e59=_0x413703[_0x47ee3f(0x5ac)],_0x52aa59=JSON[_0x47ee3f(0x3f8)](_0x1b2e59);switch(_0x52aa59[_0x47ee3f(0x5ab)]){case _0x4e0841[_0x47ee3f(0x1f3)]:case _0x4e0841['HELLO']:{const _0x3f770d=_0x52aa59[_0x47ee3f(0x24b)];return{..._0x52aa59,'data':_0x3f770d,'cmd':_0x52aa59[_0x47ee3f(0x5ab)]};}case _0x4e0841[_0x47ee3f(0x271)]:{const _0x3f40a7=_0x52aa59['joinRsp'];return{..._0x52aa59,'data':_0x3f40a7,'cmd':_0x52aa59['cmd']};}case _0x4e0841[_0x47ee3f(0x3a3)]:{const _0x59217b=_0x52aa59['collaMsg'];switch(_0x59217b['eventID']){case _0x437f93['CollaborationEvent']['PERMISSION_REJ']:return{..._0x52aa59,'data':{..._0x59217b,'data':(_0x4368ef=_0x59217b[_0x47ee3f(0x21c)])==null?void 0x0:_0x4368ef['cs']},'cmd':_0x52aa59[_0x47ee3f(0x5ab)]};case _0x437f93['CollaborationEvent'][_0x47ee3f(0x513)]:return{..._0x52aa59,'data':{..._0x59217b,'data':(_0x45e3ac=_0x59217b[_0x47ee3f(0x448)])==null?void 0x0:_0x45e3ac['cs']},'cmd':_0x52aa59[_0x47ee3f(0x5ab)]};case _0x437f93[_0x47ee3f(0x2c5)][_0x47ee3f(0x472)]:return{..._0x52aa59,'data':{..._0x59217b,'data':(_0x3ef452=_0x59217b[_0x47ee3f(0x4eb)])==null?void 0x0:_0x3ef452['cs']},'cmd':_0x52aa59[_0x47ee3f(0x5ab)]};case _0x437f93[_0x47ee3f(0x2c5)][_0x47ee3f(0x4be)]:return{..._0x52aa59,'data':{..._0x59217b,'data':(_0x4a718e=_0x59217b['csRejEvent'])==null?void 0x0:_0x4a718e['cs']},'cmd':_0x52aa59['cmd']};case _0x437f93[_0x47ee3f(0x2c5)][_0x47ee3f(0x28d)]:return{..._0x52aa59,'data':{..._0x59217b,'data':_0x59217b['updateCursorEvent']},'cmd':_0x52aa59['cmd']};case _0x437f93['CollaborationEvent'][_0x47ee3f(0x51d)]:return{..._0x52aa59,'data':{..._0x59217b,'data':_0x59217b['joinEvent']},'cmd':_0x52aa59[_0x47ee3f(0x5ab)]};case _0x437f93[_0x47ee3f(0x2c5)]['USERS_LEAVE']:return{..._0x52aa59,'data':{..._0x59217b,'data':_0x59217b['leaveEvent']},'cmd':_0x52aa59[_0x47ee3f(0x5ab)]};case _0x437f93['CollaborationEvent'][_0x47ee3f(0x34a)]:return{..._0x52aa59,'data':{..._0x59217b,'data':_0x59217b[_0x47ee3f(0x35b)]},'cmd':_0x52aa59[_0x47ee3f(0x5ab)]};case _0x437f93[_0x47ee3f(0x2c5)][_0x47ee3f(0x5c0)]:case _0x437f93[_0x47ee3f(0x2c5)]['LIVESHARE_OPERATION']:return{..._0x52aa59,'data':{..._0x59217b,'data':_0x59217b[_0x47ee3f(0x491)]},'cmd':_0x52aa59[_0x47ee3f(0x5ab)]};case _0x437f93['CollaborationEvent'][_0x47ee3f(0x216)]:return{..._0x52aa59,'data':{..._0x59217b,'data':_0x59217b['liveShareNewHost']},'cmd':_0x52aa59[_0x47ee3f(0x5ab)]};case _0x437f93[_0x47ee3f(0x2c5)][_0x47ee3f(0x467)]:return{..._0x52aa59,'data':_0x59217b,'cmd':_0x52aa59[_0x47ee3f(0x5ab)]};case _0x437f93[_0x47ee3f(0x2c5)][_0x47ee3f(0x390)]:return{..._0x52aa59,'data':{..._0x59217b,'data':_0x59217b[_0x47ee3f(0x458)]},'cmd':_0x52aa59[_0x47ee3f(0x5ab)]};case _0x437f93[_0x47ee3f(0x2c5)][_0x47ee3f(0x54e)]:return{..._0x52aa59,'data':{..._0x59217b,'data':_0x59217b[_0x47ee3f(0x511)]},'cmd':_0x52aa59[_0x47ee3f(0x5ab)]};case _0x437f93[_0x47ee3f(0x2c5)]['SHOULD_CLOSE_CONN']:return{..._0x52aa59,'data':{..._0x59217b,'data':_0x59217b[_0x47ee3f(0x2c8)]},'cmd':_0x52aa59[_0x47ee3f(0x5ab)]};default:return _0x52aa59;}}default:return _0x52aa59;}}function _0x28244a(_0x4f5a36){const _0x474ed8=_0x1a9c4c;switch(_0x4f5a36[_0x474ed8(0x5ab)]){case _0x4e0841[_0x474ed8(0x1f3)]:case _0x4e0841[_0x474ed8(0x24c)]:return JSON[_0x474ed8(0x301)]({'cmd':_0x4f5a36['cmd'],'routeKey':_0x4f5a36[_0x474ed8(0x4e6)]});case _0x4e0841[_0x474ed8(0x332)]:{let _0x563c25;switch(_0x4f5a36['data'][_0x474ed8(0x3f9)]){case _0x437f93[_0x474ed8(0x2c5)][_0x474ed8(0x28d)]:{_0x563c25={'eventID':_0x437f93[_0x474ed8(0x2c5)][_0x474ed8(0x28d)],'updateCursorEvent':_0x4f5a36['data'][_0x474ed8(0x5ac)]};break;}case _0x437f93[_0x474ed8(0x2c5)][_0x474ed8(0x288)]:{_0x563c25={'eventID':_0x437f93[_0x474ed8(0x2c5)]['USERS_LEAVE'],'leaveEvent':_0x4f5a36[_0x474ed8(0x5ac)][_0x474ed8(0x5ac)]};break;}case _0x437f93['CollaborationEvent'][_0x474ed8(0x51d)]:{_0x563c25={'eventID':_0x437f93['CollaborationEvent']['USERS_ENTER'],'joinEvent':_0x4f5a36[_0x474ed8(0x5ac)]['data']};break;}case _0x437f93[_0x474ed8(0x2c5)][_0x474ed8(0x34a)]:{_0x563c25={'eventID':_0x437f93['CollaborationEvent'][_0x474ed8(0x34a)],'liveShareNewHost':_0x4f5a36[_0x474ed8(0x5ac)][_0x474ed8(0x5ac)]};break;}case _0x437f93[_0x474ed8(0x2c5)][_0x474ed8(0x3cc)]:{_0x563c25={'eventID':_0x437f93[_0x474ed8(0x2c5)][_0x474ed8(0x3cc)],'liveShareOperation':_0x4f5a36[_0x474ed8(0x5ac)][_0x474ed8(0x5ac)]};break;}case _0x437f93[_0x474ed8(0x2c5)]['LIVESHARE_TERMINATE']:{_0x563c25={'eventID':_0x437f93[_0x474ed8(0x2c5)]['LIVESHARE_TERMINATE'],'liveShareTerminate':_0x4f5a36[_0x474ed8(0x5ac)][_0x474ed8(0x5ac)]};break;}case _0x437f93[_0x474ed8(0x2c5)][_0x474ed8(0x434)]:{_0x563c25={'eventID':_0x437f93[_0x474ed8(0x2c5)][_0x474ed8(0x434)],'liveShareRequestHost':_0x4f5a36[_0x474ed8(0x5ac)][_0x474ed8(0x5ac)]};break;}case _0x437f93[_0x474ed8(0x2c5)][_0x474ed8(0x5c0)]:{_0x563c25={'eventID':_0x437f93[_0x474ed8(0x2c5)]['LIVESHARE_FETCH_OPERATIONS']};break;}default:_0x563c25={'eventID':_0x4f5a36[_0x474ed8(0x5ac)][_0x474ed8(0x3f9)]};}return JSON[_0x474ed8(0x301)]({'cmd':_0x4f5a36[_0x474ed8(0x5ab)],'routeKey':_0x4f5a36['routeKey'],'collaMsg':_0x563c25});}case _0x4e0841['JOIN']:return JSON[_0x474ed8(0x301)]({'cmd':_0x4f5a36[_0x474ed8(0x5ab)],'routeKey':_0x4f5a36[_0x474ed8(0x4e6)],'joinReq':_0x4f5a36[_0x474ed8(0x5ac)]});case _0x4e0841[_0x474ed8(0x2dc)]:return JSON[_0x474ed8(0x301)]({'cmd':_0x4f5a36['cmd'],'routeKey':_0x4f5a36['routeKey'],'leaveReq':_0x4f5a36['data']});default:throw new Error(_0x474ed8(0x35e));}}var _0x1a314d=Object['defineProperty'],_0x2be198=Object[_0x1a9c4c(0x541)],_0x184ffe=(_0xf97c83,_0x5d9920,_0x29764c,_0x13264f)=>{const _0xe3f7d0=_0x1a9c4c;for(var _0x3d2df0=_0x13264f>0x1?void 0x0:_0x13264f?_0x2be198(_0x5d9920,_0x29764c):_0x5d9920,_0x562d45=_0xf97c83[_0xe3f7d0(0x4d8)]-0x1,_0x243839;_0x562d45>=0x0;_0x562d45--)(_0x243839=_0xf97c83[_0x562d45])&&(_0x3d2df0=(_0x13264f?_0x243839(_0x5d9920,_0x29764c,_0x3d2df0):_0x243839(_0x3d2df0))||_0x3d2df0);return _0x13264f&&_0x3d2df0&&_0x1a314d(_0x5d9920,_0x29764c,_0x3d2df0),_0x3d2df0;},_0x412de4=(_0x190918,_0x35a2e4)=>(_0x588389,_0x45eb25)=>_0x35a2e4(_0x588389,_0x45eb25,_0x190918);const _0x411a7c=_0x5ee268[_0x1a9c4c(0x549)]('univer-pro.collaboration-client-socket-service');function _0x5aba5b(_0x28996a,_0x1c60e3,_0x486f1e){const _0x244d2d=_0x1a9c4c;return _0x28996a+'/'+_0x1c60e3+_0x244d2d(0x584)+_0x486f1e+_0x244d2d(0x298);}_0x19f7dc[_0x1a9c4c(0x362)]=class extends _0x5ee268[_0x1a9c4c(0x238)]{constructor(_0x2ecd03,_0x49b509,_0x40d18b,_0x2a30f9,_0x93c3f7){const _0x1303bf=_0x1a9c4c;super(),this[_0x1303bf(0x524)]=_0x2ecd03,this[_0x1303bf(0x27e)]=_0x49b509,this['_configService']=_0x40d18b,this[_0x1303bf(0x2a9)]=_0x2a30f9,this[_0x1303bf(0x1dd)]=_0x93c3f7;}[_0x1a9c4c(0x1c9)](_0xd205c9){const _0x5a5b36=_0x1a9c4c,_0x44d747=this[_0x5a5b36(0x27e)][_0x5a5b36(0x1c9)](_0xd205c9);if(!_0x44d747)throw new Error(_0x5a5b36(0x411));const _0x27eba5=new _0x5ee268[(_0x5a5b36(0x571))](),_0x33619f=new _0x56990c[(_0x5a5b36(0x3be))]();_0x27eba5[_0x5a5b36(0x4d0)](_0x44d747[_0x5a5b36(0x27f)][_0x5a5b36(0x3a7)](_0x1c170e=>_0x33619f[_0x5a5b36(0x42d)](_0x1c170e))),_0x27eba5[_0x5a5b36(0x4d0)](_0x5ee268[_0x5a5b36(0x4c5)](()=>_0x33619f['complete']()));const _0xd81941=new _0x56990c[(_0x5a5b36(0x3be))]();_0x27eba5[_0x5a5b36(0x4d0)](_0x44d747[_0x5a5b36(0x27c)]['subscribe'](_0x4826d7=>_0xd81941[_0x5a5b36(0x42d)](_0x4826d7))),_0x27eba5['add'](_0x5ee268[_0x5a5b36(0x4c5)](()=>_0xd81941[_0x5a5b36(0x30a)]()));const _0x21b7cf=new _0x56990c[(_0x5a5b36(0x3be))]();_0x27eba5[_0x5a5b36(0x4d0)](_0x44d747[_0x5a5b36(0x3fa)]['subscribe'](_0x1bd190=>{const _0x2c214d=_0x580925(_0x1bd190);_0x21b7cf['next'](_0x2c214d);})),_0x27eba5[_0x5a5b36(0x4d0)](_0x5ee268[_0x5a5b36(0x4c5)](()=>_0x21b7cf['complete']()));let _0x1d88d8;const _0x38f3de=()=>{const _0xfb942c=_0x5a5b36;_0xd81941[_0xfb942c(0x42d)](new Event(_0xfb942c(0x438))),_0x33619f[_0xfb942c(0x42d)](new CloseEvent(_0xfb942c(0x438))),_0x1d88d8[_0xfb942c(0x4c9)]();};return _0x1d88d8={'memberID':'','close$':_0x33619f['asObservable'](),'error$':_0xd81941[_0x5a5b36(0x560)](),'open$':_0x44d747['open$'],'message$':_0x21b7cf[_0x5a5b36(0x560)](),'send':_0x4e6c28=>{const _0x11c091=_0x5a5b36;if(_0x4e6c28['cmd']===_0x4e0841[_0x11c091(0x332)]){if(_0x4e6c28['data'][_0x11c091(0x3f9)]===_0x437f93[_0x11c091(0x2c5)][_0x11c091(0x4ed)]){this['_submitChangeset'](_0x1d88d8,_0x4e6c28['data'])['catch'](_0x1530f6=>{const _0x3bed02=_0x11c091;this[_0x3bed02(0x2a9)][_0x3bed02(0x317)](_0x1530f6),_0x38f3de();});return;}if(_0x4e6c28[_0x11c091(0x5ac)][_0x11c091(0x3f9)]===_0x437f93[_0x11c091(0x2c5)][_0x11c091(0x389)]){const _0x3a270c=_0x4e6c28[_0x11c091(0x5ac)];this[_0x11c091(0x34b)](_0x3a270c)[_0x11c091(0x29c)](_0x11e474=>{const _0x122e4b=_0x11c091;_0x21b7cf['next']({'cmd':_0x4e0841[_0x122e4b(0x3a3)],'code':_0x389c04['OK'],'routeKey':_0x3a270c[_0x122e4b(0x5ac)][_0x122e4b(0x447)],'routeType':'','data':{'eventID':_0x437f93[_0x122e4b(0x2c5)]['PSEUDO_FETCH_MISSING_RESULT'],'data':{'changesets':_0x11e474}}});})['catch'](_0x4d2603=>{const _0x4fb1fe=_0x11c091;this[_0x4fb1fe(0x2a9)][_0x4fb1fe(0x317)](_0x4d2603),_0x38f3de();});return;}}_0x44d747[_0x11c091(0x420)](_0x28244a(_0x4e6c28));},'close':()=>{const _0x174dc0=_0x5a5b36;_0x44d747[_0x174dc0(0x4c9)](),_0x27eba5[_0x174dc0(0x214)]();}},_0x1d88d8;}async[_0x1a9c4c(0x23d)](_0x503477,_0x1f7fd4){const _0x5b9b53=_0x1a9c4c;var _0x2896e3,_0x531b67;const {unitType:_0x4bc66c,unitID:_0xed4d9d,changeset:_0x4b665d}=_0x1f7fd4[_0x5b9b53(0x5ac)],_0x597dbd={'unitID':_0xed4d9d,'memberID':_0x503477[_0x5b9b53(0x2b2)],'type':_0x4bc66c,'changeset':_0x437f93['parseChangesetToProtocol'](_0x4b665d)},_0x2ae089=this[_0x5b9b53(0x208)]['getConfig'](_0x2d1c45),_0xcdccb0=this[_0x5b9b53(0x208)][_0x5b9b53(0x3a6)](_0x17bae2),_0x3ebefb=_0x5aba5b((_0x531b67=(_0x2896e3=_0xcdccb0==null?void 0x0:_0xcdccb0[_0x5b9b53(0x2f1)])!=null?_0x2896e3:_0x2ae089)!=null?_0x531b67:_0x240dfd,_0x4bc66c,_0xed4d9d);try{await this[_0x5b9b53(0x524)][_0x5b9b53(0x4f8)](_0x3ebefb,{'body':_0x597dbd});}catch(_0x118fc8){throw this[_0x5b9b53(0x2a9)][_0x5b9b53(0x317)]('[CollaborationSession]',_0x5b9b53(0x462)),_0x118fc8;}}async[_0x1a9c4c(0x34b)](_0x13ac28){const _0x2d184c=_0x1a9c4c,{unitID:_0x57f5be,from:_0xd9aaa9,to:_0x3e73dd,unitType:_0x31b063}=_0x13ac28['data'];return(await this['_snapshotServerService'][_0x2d184c(0x28c)]({'metadata':void 0x0},{'unitID':_0x57f5be,'type':_0x31b063,'from':_0xd9aaa9,'to':_0x3e73dd}))[_0x2d184c(0x534)];}},_0x19f7dc['CollaborationSocketService']=_0x184ffe([_0x412de4(0x0,_0x5ee268[_0x1a9c4c(0x4b4)](_0x519640['HTTPService'])),_0x412de4(0x1,_0x5ee268[_0x1a9c4c(0x4b4)](_0x519640[_0x1a9c4c(0x5cc)])),_0x412de4(0x2,_0x5ee268[_0x1a9c4c(0x422)]),_0x412de4(0x3,_0x5ee268[_0x1a9c4c(0x2ff)]),_0x412de4(0x4,_0x437f93[_0x1a9c4c(0x295)])],_0x19f7dc['CollaborationSocketService']);const _0x4f8f0f=_0x1a9c4c(0x345);function _0x4c6bc7(_0x24ba8b){const _0x3a64e3=_0x1a9c4c;return JSON[_0x3a64e3(0x301)](_0x24ba8b)['length'];}class _0x37f911{constructor(){const _0x487d34=_0x1a9c4c;_0x1328f6(this,_0x487d34(0x417),new _0x56990c[(_0x487d34(0x3be))]()),_0x1328f6(this,'commentUpdate$',this[_0x487d34(0x417)][_0x487d34(0x560)]());}[_0x1a9c4c(0x442)](_0x371445){const _0x919294=_0x1a9c4c;this['_commentUpdate$'][_0x919294(0x42d)](_0x371445);}}var _0x391ba3=Object[_0x1a9c4c(0x340)],_0x577b57=Object[_0x1a9c4c(0x541)],_0x247e86=(_0x5446e8,_0x2aa698,_0x569c7c,_0x3729e2)=>{for(var _0x52edd0=_0x3729e2>0x1?void 0x0:_0x3729e2?_0x577b57(_0x2aa698,_0x569c7c):_0x2aa698,_0x46f1d2=_0x5446e8['length']-0x1,_0x48410e;_0x46f1d2>=0x0;_0x46f1d2--)(_0x48410e=_0x5446e8[_0x46f1d2])&&(_0x52edd0=(_0x3729e2?_0x48410e(_0x2aa698,_0x569c7c,_0x52edd0):_0x48410e(_0x52edd0))||_0x52edd0);return _0x3729e2&&_0x52edd0&&_0x391ba3(_0x2aa698,_0x569c7c,_0x52edd0),_0x52edd0;},_0x2ceb3a=(_0x26dfa7,_0x328898)=>(_0x15f41d,_0x1cdca5)=>_0x328898(_0x15f41d,_0x1cdca5,_0x26dfa7);let _0xd4878c=class extends _0x5ee268['Disposable']{constructor(_0x332843,_0x4196e4){const _0x2e8bc1=_0x1a9c4c;super(),_0x1328f6(this,_0x2e8bc1(0x44b),new Map()),(this[_0x2e8bc1(0x535)]=_0x332843,this['_userManagerService']=_0x4196e4,this['disposeWithMe'](_0x5ee268[_0x2e8bc1(0x4c5)](_0x56990c[_0x2e8bc1(0x1fd)](this[_0x2e8bc1(0x535)][_0x2e8bc1(0x2da)](_0x5ee268[_0x2e8bc1(0x2f7)][_0x2e8bc1(0x498)])['pipe'](_0x2b56b2[_0x2e8bc1(0x42f)](_0x3413b5=>_0x3413b5[_0x2e8bc1(0x4ef)]())),this[_0x2e8bc1(0x535)][_0x2e8bc1(0x2da)](_0x5ee268[_0x2e8bc1(0x2f7)]['UNIVER_DOC'])[_0x2e8bc1(0x246)](_0x2b56b2['map'](_0x439b0a=>_0x439b0a['getUnitId']())),this[_0x2e8bc1(0x535)][_0x2e8bc1(0x2da)](_0x5ee268[_0x2e8bc1(0x2f7)]['UNIVER_SLIDE'])[_0x2e8bc1(0x246)](_0x2b56b2[_0x2e8bc1(0x42f)](_0x5e1c84=>_0x5e1c84['getUnitId']())))[_0x2e8bc1(0x3a7)](_0x45838c=>this['_removeRoom'](_0x45838c)))));}[_0x1a9c4c(0x4bc)](_0x69a272){const _0x1d56a8=_0x1a9c4c;this[_0x1d56a8(0x3f5)][_0x1d56a8(0x4bc)](_0x69a272);}['getCurrentUser'](){const _0x3c8f04=_0x1a9c4c;return this[_0x3c8f04(0x3f5)][_0x3c8f04(0x5a9)]();}[_0x1a9c4c(0x50c)](_0x343d90,_0x1ccd7d){const _0x350a4a=_0x1a9c4c;let _0x1e0ddb=this['_roomMembers'][_0x350a4a(0x54d)](_0x343d90);_0x1e0ddb||(_0x1e0ddb=new _0x1a2856(),this[_0x350a4a(0x44b)]['set'](_0x343d90,_0x1e0ddb)),_0x1e0ddb[_0x350a4a(0x50c)](_0x1ccd7d);}['removeMember'](_0x37710a,_0x371fd0){const _0x260199=_0x1a9c4c,_0x53c35f=this['_roomMembers'][_0x260199(0x54d)](_0x37710a);_0x53c35f&&_0x53c35f[_0x260199(0x310)](_0x371fd0);}['getRoom'](_0x2c68ce){const _0x12a715=_0x1a9c4c;return this[_0x12a715(0x44b)][_0x12a715(0x54d)](_0x2c68ce);}[_0x1a9c4c(0x4f1)](_0x471b83,_0x2c2f84){const _0x3da758=_0x1a9c4c,_0x25383f=this[_0x3da758(0x44b)][_0x3da758(0x54d)](_0x471b83);if(_0x25383f)return _0x25383f[_0x3da758(0x4f1)](_0x2c2f84);}[_0x1a9c4c(0x2ac)](_0x18a839){const _0x5a9ef6=_0x1a9c4c,_0x1b4321=this[_0x5a9ef6(0x44b)][_0x5a9ef6(0x54d)](_0x18a839);_0x1b4321&&(_0x1b4321[_0x5a9ef6(0x214)](),this[_0x5a9ef6(0x44b)][_0x5a9ef6(0x1c8)](_0x18a839));}[_0x1a9c4c(0x214)](){const _0x12c179=_0x1a9c4c;this[_0x12c179(0x44b)][_0x12c179(0x506)](_0x21648a=>_0x21648a[_0x12c179(0x214)]()),this['_roomMembers']['clear']();}};_0xd4878c=_0x247e86([_0x2ceb3a(0x0,_0x5ee268['IUniverInstanceService']),_0x2ceb3a(0x1,_0x5ee268[_0x1a9c4c(0x4b4)](_0x5ee268[_0x1a9c4c(0x32e)]))],_0xd4878c);class _0x1a2856 extends _0x5ee268['Disposable']{constructor(){const _0x109c39=_0x1a9c4c;super(...arguments),_0x1328f6(this,_0x109c39(0x217),new Map());}[_0x1a9c4c(0x214)](){const _0x2dcf99=_0x1a9c4c;this[_0x2dcf99(0x217)][_0x2dcf99(0x20b)]();}['updateMember'](_0x890e3d){const _0x135d5e=_0x1a9c4c;this[_0x135d5e(0x217)][_0x135d5e(0x26c)](_0x890e3d[_0x135d5e(0x2b2)],_0x890e3d);}[_0x1a9c4c(0x310)](_0x4605bd){const _0x532d68=_0x1a9c4c;this[_0x532d68(0x217)][_0x532d68(0x1c8)](_0x4605bd);}['getMember'](_0x13657c){const _0x18f737=_0x1a9c4c;return this['_members'][_0x18f737(0x54d)](_0x13657c);}}var _0x43c468=Object['defineProperty'],_0x12b17a=Object['getOwnPropertyDescriptor'],_0x2fe6b0=(_0x16d1cd,_0x351dbd,_0xacfba1,_0x44a4ae)=>{for(var _0x521077=_0x44a4ae>0x1?void 0x0:_0x44a4ae?_0x12b17a(_0x351dbd,_0xacfba1):_0x351dbd,_0x3c40d0=_0x16d1cd['length']-0x1,_0x4562ff;_0x3c40d0>=0x0;_0x3c40d0--)(_0x4562ff=_0x16d1cd[_0x3c40d0])&&(_0x521077=(_0x44a4ae?_0x4562ff(_0x351dbd,_0xacfba1,_0x521077):_0x4562ff(_0x521077))||_0x521077);return _0x44a4ae&&_0x521077&&_0x43c468(_0x351dbd,_0xacfba1,_0x521077),_0x521077;},_0x1417a2=(_0x3511e0,_0x35dc8d)=>(_0x1a414c,_0x5c0c46)=>_0x35dc8d(_0x1a414c,_0x5c0c46,_0x3511e0),_0x3477b6=(_0x332770=>(_0x332770[_0x332770[_0x1a9c4c(0x248)]=0x0]=_0x1a9c4c(0x248),_0x332770[_0x332770['JOINING']=0x1]=_0x1a9c4c(0x5bf),_0x332770[_0x332770[_0x1a9c4c(0x304)]=0x2]='OFFLINE',_0x332770[_0x332770[_0x1a9c4c(0x399)]=0x3]=_0x1a9c4c(0x399),_0x332770))(_0x3477b6||{});_0x19f7dc[_0x1a9c4c(0x384)]=class extends _0x5ee268[_0x1a9c4c(0x4b2)]{constructor(_0x20c4be,_0xff5128,_0x3cfe2b,_0x2828d4,_0x41e05f,_0xaa4f5,_0x9fac9e,_0xa39bbd,_0x5f5083,_0x5b8b45){const _0x4c02fe=_0x1a9c4c;super(),_0x1328f6(this,'_sessionStatus$',new _0x56990c[(_0x4c02fe(0x3d3))](0x0)),_0x1328f6(this,_0x4c02fe(0x539),this['_sessionStatus$']['asObservable']()),_0x1328f6(this,_0x4c02fe(0x22f),new _0x56990c[(_0x4c02fe(0x3be))]()),_0x1328f6(this,_0x4c02fe(0x540),this[_0x4c02fe(0x22f)]['asObservable']()),_0x1328f6(this,'_socket'),_0x1328f6(this,'_socketMessageSubscription'),_0x1328f6(this,_0x4c02fe(0x1aa)),_0x1328f6(this,_0x4c02fe(0x3b0),!0x1),_0x1328f6(this,'_telemetryInfo',null),(this[_0x4c02fe(0x2e1)]=_0x20c4be,this[_0x4c02fe(0x2a9)]=_0x3cfe2b,this[_0x4c02fe(0x429)]=_0x2828d4,this[_0x4c02fe(0x5b4)]=_0x41e05f,this[_0x4c02fe(0x208)]=_0xaa4f5,this[_0x4c02fe(0x243)]=_0x9fac9e,this['_memberService']=_0xa39bbd,this['_commentService']=_0x5f5083,this[_0x4c02fe(0x428)]=_0x5b8b45,this[_0x4c02fe(0x3b0)]=!!this[_0x4c02fe(0x428)],_0xff5128[_0x4c02fe(0x246)](_0x56990c[_0x4c02fe(0x1da)](this[_0x4c02fe(0x1f6)]))[_0x4c02fe(0x3a7)](_0x1a8676=>{const _0x46ca01=_0x4c02fe;var _0x1fde97;typeof _0x1a8676>'u'||(this[_0x46ca01(0x2f0)]=_0x1a8676,_0x1a8676?(this[_0x46ca01(0x374)](_0x1a8676),this['_socketMessageSubscription']=_0x1a8676[_0x46ca01(0x3fa)]['subscribe'](_0xe7287f=>{const _0x25b88c=_0x46ca01;_0xe7287f['routeKey']===this[_0x25b88c(0x2e1)]&&this[_0x25b88c(0x58a)](_0xe7287f);})):(this[_0x46ca01(0x300)](),this[_0x46ca01(0x36c)]['next'](0x2),(_0x1fde97=this[_0x46ca01(0x56a)])==null||_0x1fde97[_0x46ca01(0x45c)](),this['_socketMessageSubscription']=null));}),this[_0x4c02fe(0x337)](this[_0x4c02fe(0x429)][_0x4c02fe(0x3ec)](()=>{const _0x31d734=_0x4c02fe;var _0x52eb76;(_0x52eb76=this['_socket'])==null||_0x52eb76['send']({'cmd':_0x4e0841[_0x31d734(0x2dc)],'data':{'roomID':this[_0x31d734(0x2e1)]}});})));}get['sessionStatus'](){const _0x40e391=_0x1a9c4c;return this[_0x40e391(0x36c)]['getValue']();}['getMemberID'](){const _0x280701=_0x1a9c4c;var _0x4c8253,_0x245751;return(_0x245751=(_0x4c8253=this[_0x280701(0x2f0)])==null?void 0x0:_0x4c8253['memberID'])!=null?_0x245751:null;}[_0x1a9c4c(0x214)](){const _0x27afca=_0x1a9c4c;super[_0x27afca(0x214)](),this['dispose$'][_0x27afca(0x42d)](),this[_0x27afca(0x1f6)]['complete']();}[_0x1a9c4c(0x4c9)](){const _0x31fc1b=_0x1a9c4c;var _0x313201,_0xae3393;this['_throwTelemetryCollaborationNewChangeset'](),(_0x313201=this[_0x31fc1b(0x2f0)])==null||_0x313201['send']({'cmd':_0x4e0841[_0x31fc1b(0x2dc)],'data':{'roomID':this[_0x31fc1b(0x2e1)]}}),(_0xae3393=this[_0x31fc1b(0x2f0)])==null||_0xae3393[_0x31fc1b(0x4c9)](),this[_0x31fc1b(0x22f)][_0x31fc1b(0x30a)](),this['_sessionStatus$'][_0x31fc1b(0x30a)](),this[_0x31fc1b(0x214)]();}[_0x1a9c4c(0x58a)](_0x4cc2b1){const _0x1cf2b4=_0x1a9c4c;_0x4cc2b1['cmd']===_0x4e0841[_0x1cf2b4(0x271)]?this[_0x1cf2b4(0x3fc)](_0x4cc2b1):_0x4cc2b1[_0x1cf2b4(0x5ab)]===_0x4e0841[_0x1cf2b4(0x3a3)]&&this[_0x1cf2b4(0x34d)](_0x4cc2b1);}['_joinRoom'](_0x33d81){const _0x29ea1e=_0x1a9c4c;this['_sessionStatus$'][_0x29ea1e(0x42d)](0x1),_0x33d81[_0x29ea1e(0x420)]({'cmd':_0x4e0841[_0x29ea1e(0x271)],'routeKey':this[_0x29ea1e(0x2e1)],'routeType':'','data':{'rooms':[{'roomID':this[_0x29ea1e(0x2e1)]}]}});}[_0x1a9c4c(0x3fc)](_0x55c54a){const _0x312007=_0x1a9c4c;var _0x168257;if(_0x55c54a[_0x312007(0x38e)]===_0x389c04['FAIL']){this[_0x312007(0x5b4)][_0x312007(0x1c3)]({'type':_0x2e321b[_0x312007(0x1db)][_0x312007(0x3c5)],'content':this[_0x312007(0x243)]['t'](_0x312007(0x3c6))}),this[_0x312007(0x36c)][_0x312007(0x42d)](0x2);return;}this[_0x312007(0x36c)][_0x312007(0x42d)](0x3);const _0x38723c=(_0x168257=_0x55c54a[_0x312007(0x5ac)]['roomInfos'][this[_0x312007(0x2e1)]])==null?void 0x0:_0x168257['members'];_0x38723c&&_0x38723c[_0x312007(0x506)](_0x581305=>this[_0x312007(0x33d)][_0x312007(0x50c)](this[_0x312007(0x2e1)],_0x581305));}[_0x1a9c4c(0x34d)](_0x342f7a){const _0xb079ce=_0x1a9c4c;try{const _0x1f85b1=_0x342f7a['data'];switch(_0x1f85b1[_0xb079ce(0x3f9)]){case _0x437f93[_0xb079ce(0x2c5)]['USERS_ENTER']:this['_onUserJoin'](_0x1f85b1),this['_event$'][_0xb079ce(0x42d)](_0x1f85b1);break;case _0x437f93[_0xb079ce(0x2c5)][_0xb079ce(0x288)]:this['_onUserLeave'](_0x1f85b1),this[_0xb079ce(0x22f)][_0xb079ce(0x42d)](_0x1f85b1);break;case _0x437f93[_0xb079ce(0x2c5)][_0xb079ce(0x513)]:this[_0xb079ce(0x43a)](),this[_0xb079ce(0x4db)](),this['_event$'][_0xb079ce(0x42d)](_0x1f85b1);break;case _0x437f93[_0xb079ce(0x2c5)][_0xb079ce(0x467)]:this[_0xb079ce(0x2a9)][_0xb079ce(0x317)](_0xb079ce(0x406)+JSON['stringify'](_0x1f85b1)),this[_0xb079ce(0x22f)][_0xb079ce(0x42d)](_0x1f85b1);break;case _0x437f93[_0xb079ce(0x2c5)][_0xb079ce(0x390)]:this[_0xb079ce(0x3a1)][_0xb079ce(0x442)](_0x1f85b1['data']),this['_event$'][_0xb079ce(0x42d)](_0x1f85b1);break;default:this[_0xb079ce(0x22f)][_0xb079ce(0x42d)](_0x1f85b1);}}catch(_0x4199db){this[_0xb079ce(0x2a9)]['error'](_0x4199db,_0x342f7a);}}[_0x1a9c4c(0x385)](_0x328905){const _0x4ed8a8=_0x1a9c4c;this[_0x4ed8a8(0x33d)][_0x4ed8a8(0x50c)](this[_0x4ed8a8(0x2e1)],_0x328905[_0x4ed8a8(0x5ac)]);}[_0x1a9c4c(0x328)](_0x2536fc){const _0x2745a4=_0x1a9c4c;this[_0x2745a4(0x33d)][_0x2745a4(0x310)](this['_unitID'],_0x2536fc[_0x2745a4(0x5ac)]['memberID']);}async[_0x1a9c4c(0x420)](_0x27ca55,_0x213541){const _0x4d07d8=_0x1a9c4c;if(this[_0x4d07d8(0x2f6)]!==0x3||!this['_socket'])throw new Error(_0x4d07d8(0x552));try{_0x27ca55[_0x4d07d8(0x3f9)]===_0x437f93[_0x4d07d8(0x2c5)][_0x4d07d8(0x4ed)]&&(this[_0x4d07d8(0x1df)](),this[_0x4d07d8(0x4fe)](_0x27ca55)),this['_socket'][_0x4d07d8(0x420)]({'cmd':_0x4e0841['INGEST'],'routeKey':_0x213541,'routeType':'','data':_0x27ca55});}catch(_0x524bbf){this['_logService'][_0x4d07d8(0x317)](_0x524bbf);}}['_scheduleCollaborationTimeoutTimer'](){const _0x200e26=_0x1a9c4c;var _0xb8a4fc;this[_0x200e26(0x1aa)]=window[_0x200e26(0x557)](()=>{const _0x2f6af6=_0x200e26;this[_0x2f6af6(0x1aa)]=null,this[_0x2f6af6(0x5b4)][_0x2f6af6(0x1c3)]({'type':_0x2e321b[_0x2f6af6(0x1db)][_0x2f6af6(0x423)],'content':this[_0x2f6af6(0x243)]['t'](_0x2f6af6(0x5b3))});},(_0xb8a4fc=this[_0x200e26(0x208)][_0x200e26(0x3a6)](_0x4d3fc9))!=null?_0xb8a4fc:0x4e20);}[_0x1a9c4c(0x4db)](){const _0x500683=_0x1a9c4c;this[_0x500683(0x1aa)]&&(clearTimeout(this[_0x500683(0x1aa)]),this[_0x500683(0x1aa)]=null);}[_0x1a9c4c(0x4fe)](_0x260a18){const _0x26efb0=_0x1a9c4c;if(!this[_0x26efb0(0x3b0)])return;const {data:_0xa291ba}=_0x260a18,{unitID:_0x2e4619,changeset:_0x227cdd}=_0xa291ba,{mutations:_0x457bd6,type:_0x4439ff}=_0x227cdd;this['_telemetryInfo']={'unitId':_0x2e4619,'type':_0x4439ff,'startTime':performance[_0x26efb0(0x257)](),'stopTime':0x0,'duration':0x0,'size':_0x4c6bc7(_0x457bd6)};}[_0x1a9c4c(0x43a)](){const _0x2893ba=_0x1a9c4c;if(this['_shouldReportTelemetry']){if(!this['_telemetryInfo']){this['_logService'][_0x2893ba(0x317)](_0x2893ba(0x2ea),'telemetry\x20info\x20is\x20not\x20initialized');return;}this[_0x2893ba(0x409)][_0x2893ba(0x3de)]=performance['now'](),this[_0x2893ba(0x409)][_0x2893ba(0x283)]=this['_telemetryInfo'][_0x2893ba(0x3de)]-this[_0x2893ba(0x409)][_0x2893ba(0x470)],this[_0x2893ba(0x428)][_0x2893ba(0x1b6)](_0x4f8f0f,this['_telemetryInfo']),this['_telemetryInfo']=null;}}[_0x1a9c4c(0x300)](){const _0x3a3982=_0x1a9c4c;this[_0x3a3982(0x409)]=null;}},_0x19f7dc[_0x1a9c4c(0x384)]=_0x2fe6b0([_0x1417a2(0x2,_0x5ee268['ILogService']),_0x1417a2(0x3,_0x56f90f[_0x1a9c4c(0x1ee)]),_0x1417a2(0x4,_0x56f90f['IMessageService']),_0x1417a2(0x5,_0x5ee268[_0x1a9c4c(0x422)]),_0x1417a2(0x6,_0x5ee268[_0x1a9c4c(0x4b4)](_0x5ee268[_0x1a9c4c(0x25a)])),_0x1417a2(0x7,_0x5ee268[_0x1a9c4c(0x4b4)](_0xd4878c)),_0x1417a2(0x8,_0x5ee268[_0x1a9c4c(0x4b4)](_0x37f911)),_0x1417a2(0x9,_0x5ee268[_0x1a9c4c(0x2c1)](_0x28800d['ITelemetryService']))],_0x19f7dc[_0x1a9c4c(0x384)]);var _0x5955e8=Object[_0x1a9c4c(0x340)],_0x177629=Object['getOwnPropertyDescriptor'],_0x2f3453=(_0x20b846,_0x4ff2ae,_0x270106,_0x4314ef)=>{const _0x54aa45=_0x1a9c4c;for(var _0x226f32=_0x4314ef>0x1?void 0x0:_0x4314ef?_0x177629(_0x4ff2ae,_0x270106):_0x4ff2ae,_0x740c43=_0x20b846[_0x54aa45(0x4d8)]-0x1,_0x4cea68;_0x740c43>=0x0;_0x740c43--)(_0x4cea68=_0x20b846[_0x740c43])&&(_0x226f32=(_0x4314ef?_0x4cea68(_0x4ff2ae,_0x270106,_0x226f32):_0x4cea68(_0x226f32))||_0x226f32);return _0x4314ef&&_0x226f32&&_0x5955e8(_0x4ff2ae,_0x270106,_0x226f32),_0x226f32;},_0x5e3a84=(_0x743627,_0xc5432b)=>(_0x26bcd6,_0x2712d7)=>_0xc5432b(_0x26bcd6,_0x2712d7,_0x743627);_0x19f7dc[_0x1a9c4c(0x569)]=class extends _0x5ee268[_0x1a9c4c(0x238)]{constructor(_0xa8f8cf,_0x4f84f4,_0x4e2708,_0x29b765,_0x343f92,_0x2b599d){const _0x511df9=_0x1a9c4c;super(),_0x1328f6(this,_0x511df9(0x3e3),new _0x56990c[(_0x511df9(0x3d3))](void 0x0)),_0x1328f6(this,_0x511df9(0x4fa),this[_0x511df9(0x3e3)]['asObservable']()),_0x1328f6(this,_0x511df9(0x526),null),_0x1328f6(this,_0x511df9(0x3cd),new Map()),_0x1328f6(this,'_status$',new _0x56990c[(_0x511df9(0x3d3))](_0x3477b6[_0x511df9(0x248)])),_0x1328f6(this,_0x511df9(0x501),this['_status$']['asObservable']()),_0x1328f6(this,_0x511df9(0x32a),!0x1),_0x1328f6(this,_0x511df9(0x232)),_0x1328f6(this,_0x511df9(0x5c1),0x0),_0x1328f6(this,_0x511df9(0x280)),_0x1328f6(this,_0x511df9(0x419)),(this[_0x511df9(0x474)]=_0xa8f8cf,this[_0x511df9(0x243)]=_0x4f84f4,this['_messageService']=_0x4e2708,this['_logService']=_0x29b765,this[_0x511df9(0x208)]=_0x343f92,this[_0x511df9(0x382)]=_0x2b599d,this[_0x511df9(0x4c1)]());}get[_0x1a9c4c(0x2f0)](){const _0x483c80=_0x1a9c4c;return this[_0x483c80(0x3e3)]['getValue']();}['_initEventListeners'](){const _0x59db5e=_0x1a9c4c;this[_0x59db5e(0x4ea)](),this[_0x59db5e(0x2b8)]();}[_0x1a9c4c(0x214)](){const _0x311b48=_0x1a9c4c;super[_0x311b48(0x214)](),this[_0x311b48(0x3cd)]['forEach'](_0x5f114d=>_0x5f114d[_0x311b48(0x214)]()),this[_0x311b48(0x3cd)]['clear'](),this[_0x311b48(0x4c0)][_0x311b48(0x30a)]();}async['requireSession'](_0x64057){const _0x49e35e=_0x1a9c4c;if(this[_0x49e35e(0x3cd)][_0x49e35e(0x252)](_0x64057))return this[_0x49e35e(0x3cd)][_0x49e35e(0x54d)](_0x64057);this['_tryEnsureSocket']();const _0x2b55f0=this['_injector']['createInstance'](_0x19f7dc[_0x49e35e(0x384)],_0x64057,this[_0x49e35e(0x3e3)][_0x49e35e(0x560)]());return this['_sessions'][_0x49e35e(0x26c)](_0x64057,_0x2b55f0),_0x2b55f0;}[_0x1a9c4c(0x43c)](_0x5d9c32){const _0x277b36=_0x1a9c4c;var _0x5eddfc;const _0x50c8ad=this[_0x277b36(0x3cd)][_0x277b36(0x54d)](_0x5d9c32);_0x50c8ad&&(this[_0x277b36(0x3cd)][_0x277b36(0x1c8)](_0x5d9c32),_0x50c8ad[_0x277b36(0x4c9)]()),this[_0x277b36(0x3cd)][_0x277b36(0x3ce)]||(_0x5eddfc=this[_0x277b36(0x2f0)])==null||_0x5eddfc[_0x277b36(0x4c9)]();}[_0x1a9c4c(0x436)](){const _0x17a536=_0x1a9c4c;this[_0x17a536(0x5c1)]=0x0,this[_0x17a536(0x232)]!=null&&(clearTimeout(this[_0x17a536(0x232)]),this[_0x17a536(0x232)]=null),this['_tryReconnect']();}[_0x1a9c4c(0x33c)](){const _0x588b18=_0x1a9c4c;var _0x336566,_0x4704b8;const _0x2c0904=this['_configService']['getConfig'](_0x4684ef),_0x3fff14=this[_0x588b18(0x208)][_0x588b18(0x3a6)](_0x17bae2),_0x56ed51=(_0x4704b8=(_0x336566=_0x3fff14==null?void 0x0:_0x3fff14[_0x588b18(0x2ef)])!=null?_0x336566:_0x2c0904)!=null?_0x4704b8:_0x2db330,_0x529c2e=this['_socketService'][_0x588b18(0x1c9)](_0x56ed51);return this[_0x588b18(0x526)]=_0x529c2e,_0x529c2e;}[_0x1a9c4c(0x36b)](){const _0x5a9fb3=_0x1a9c4c;var _0x52d8ca,_0x282348;try{const _0x40e096=(_0x282348=(_0x52d8ca=this[_0x5a9fb3(0x2f0)])!=null?_0x52d8ca:this[_0x5a9fb3(0x526)])!=null?_0x282348:this[_0x5a9fb3(0x33c)]();if(_0x40e096){const _0x544c94=_0x40e096['send'];_0x40e096[_0x5a9fb3(0x420)]=_0xef5b5b=>(this[_0x5a9fb3(0x35c)](),_0x544c94[_0x5a9fb3(0x1d0)](_0x40e096,[_0xef5b5b])),_0x40e096[_0x5a9fb3(0x3fa)]['subscribe'](_0x4f7e22=>this[_0x5a9fb3(0x3f4)](_0x40e096,_0x4f7e22)),_0x40e096[_0x5a9fb3(0x27c)][_0x5a9fb3(0x246)](_0x2b56b2[_0x5a9fb3(0x46a)](0x1))[_0x5a9fb3(0x3a7)](_0x1c16a2=>this[_0x5a9fb3(0x2a9)][_0x5a9fb3(0x317)]('[CollaborationSessionService]:\x20socket\x20error',_0x1c16a2)),_0x40e096['open$'][_0x5a9fb3(0x246)](_0x2b56b2[_0x5a9fb3(0x46a)](0x1))[_0x5a9fb3(0x3a7)](()=>{const _0x5685fd=_0x5a9fb3;this[_0x5685fd(0x253)](_0x40e096);}),_0x40e096['close$'][_0x5a9fb3(0x246)](_0x2b56b2['take'](0x1))[_0x5a9fb3(0x3a7)](_0x288bad=>{const _0x100f82=_0x5a9fb3;this[_0x100f82(0x2a9)][_0x100f82(0x2d3)](_0x100f82(0x42a),_0x100f82(0x465),_0x288bad),this[_0x100f82(0x5cb)]();});}}catch(_0xa6d955){this['_logService']['error'](_0xa6d955),this['_onConnectionFailed']();}}[_0x1a9c4c(0x253)](_0x400283){const _0x53ddff=_0x1a9c4c;this['_logService'][_0x53ddff(0x2d3)](_0x53ddff(0x42a),_0x53ddff(0x587)),_0x400283[_0x53ddff(0x420)]({'cmd':_0x4e0841[_0x53ddff(0x24c)]}),this[_0x53ddff(0x35c)]();}[_0x1a9c4c(0x4ea)](){const _0x4b95b9=_0x1a9c4c;window[_0x4b95b9(0x2ba)]('offline',()=>this[_0x4b95b9(0x394)]());}['_onOffline'](){const _0x22d7cf=_0x1a9c4c;this['_socketReady']=!0x1,this[_0x22d7cf(0x526)]=null,this['_status$'][_0x22d7cf(0x42d)](_0x3477b6[_0x22d7cf(0x304)]),this[_0x22d7cf(0x3e3)][_0x22d7cf(0x42d)](null),this[_0x22d7cf(0x4e5)](),this['_clearHeartbeatTimer']();}[_0x1a9c4c(0x5cb)](){const _0x4b845d=_0x1a9c4c;var _0x19160c;this[_0x4b845d(0x394)](),this[_0x4b845d(0x5c1)]<((_0x19160c=this[_0x4b845d(0x208)][_0x4b845d(0x3a6)](_0x981892))!=null?_0x19160c:0x3)?(this[_0x4b845d(0x5b4)][_0x4b845d(0x1c3)]({'key':_0x4b845d(0x36d),'type':_0x2e321b[_0x4b845d(0x1db)][_0x4b845d(0x3c5)],'content':this[_0x4b845d(0x243)]['t'](_0x4b845d(0x2d4))}),this['_tryReconnect']()):this[_0x4b845d(0x5b4)][_0x4b845d(0x1c3)]({'key':_0x4b845d(0x36d),'type':_0x2e321b[_0x4b845d(0x1db)]['Error'],'content':this[_0x4b845d(0x243)]['t'](_0x4b845d(0x3ba))});}[_0x1a9c4c(0x2b8)](){const _0x33f3fc=_0x1a9c4c,_0x339c7c=()=>{const _0x305491=_0x2a06;this[_0x305491(0x2f0)]||this[_0x305491(0x436)]();},_0x21928e=()=>{const _0x2616a2=_0x2a06;this[_0x2616a2(0x2f0)]||document[_0x2616a2(0x2b7)]===_0x2616a2(0x4ad)||this['reconnect']();};window[_0x33f3fc(0x2ba)](_0x33f3fc(0x302),_0x339c7c),document[_0x33f3fc(0x2ba)](_0x33f3fc(0x2b0),_0x21928e);}['_tryReconnect'](){const _0x479945=_0x1a9c4c;var _0x21d7e3;const _0x44f13a=this[_0x479945(0x5c1)],_0x10e2cc=this[_0x479945(0x208)][_0x479945(0x3a6)](_0x17bae2),_0x389aee=_0x44f13a===0x0?0x0:((_0x21d7e3=_0x10e2cc==null?void 0x0:_0x10e2cc['retryConnectingInterval'])!=null?_0x21d7e3:0x4e20)*0x2**_0x44f13a;this['_retryConnectingTimer']=window[_0x479945(0x557)](()=>{const _0x49c5a6=_0x479945;clearTimeout(this[_0x49c5a6(0x232)]),this['_retryConnectingTimer']=null,this[_0x49c5a6(0x36b)]();},_0x389aee),this['_retryCount']+=0x1;}['_onMessage'](_0x3b5d27,_0x562e4b){const _0x1c66b9=_0x1a9c4c,{cmd:_0x51d018}=_0x562e4b;_0x51d018===_0x4e0841[_0x1c66b9(0x24c)]&&!this[_0x1c66b9(0x32a)]&&(_0x3b5d27['memberID']=_0x562e4b[_0x1c66b9(0x5ac)][_0x1c66b9(0x2b2)],this[_0x1c66b9(0x3e3)][_0x1c66b9(0x42d)](_0x3b5d27),this[_0x1c66b9(0x4c0)][_0x1c66b9(0x42d)](_0x3477b6['ONLINE']),this[_0x1c66b9(0x32a)]=!0x0,this[_0x1c66b9(0x526)]=null),_0x51d018===_0x4e0841[_0x1c66b9(0x1f3)]&&this['_clearTimeoutTimer'](),this['_rescheduleHeartbeat']();}['_rescheduleHeartbeat'](){const _0x171fe3=_0x1a9c4c;var _0x4fa376;this['_clearHeartbeatTimer'](),this[_0x171fe3(0x280)]=window[_0x171fe3(0x557)](()=>this[_0x171fe3(0x4d9)](),(_0x4fa376=this[_0x171fe3(0x208)][_0x171fe3(0x3a6)](_0x41bc7c))!=null?_0x4fa376:0x7530);}[_0x1a9c4c(0x4d9)](){const _0x14bb11=_0x1a9c4c;this[_0x14bb11(0x2f0)][_0x14bb11(0x420)]({'cmd':_0x4e0841[_0x14bb11(0x1f3)]}),this[_0x14bb11(0x56e)]();}[_0x1a9c4c(0x56e)](){const _0x26eb67=_0x1a9c4c;var _0x16edb4;this['_timeoutTimer']=window[_0x26eb67(0x557)](()=>this[_0x26eb67(0x5cb)](),(_0x16edb4=this['_configService'][_0x26eb67(0x3a6)](_0x4d3fc9))!=null?_0x16edb4:0x4e20);}[_0x1a9c4c(0x2a7)](){const _0x2965ce=_0x1a9c4c;this[_0x2965ce(0x280)]!=null&&(clearTimeout(this['_sendHeartbeatTimer']),this['_sendHeartbeatTimer']=null);}[_0x1a9c4c(0x4e5)](){const _0x5cffd0=_0x1a9c4c;this[_0x5cffd0(0x419)]!=null&&(clearTimeout(this[_0x5cffd0(0x419)]),this['_timeoutTimer']=null);}},_0x19f7dc[_0x1a9c4c(0x569)]=_0x2f3453([_0x5e3a84(0x0,_0x5ee268[_0x1a9c4c(0x4b4)](_0x5ee268['Injector'])),_0x5e3a84(0x1,_0x5ee268['Inject'](_0x5ee268['LocaleService'])),_0x5e3a84(0x2,_0x56f90f[_0x1a9c4c(0x2cb)]),_0x5e3a84(0x3,_0x5ee268[_0x1a9c4c(0x2ff)]),_0x5e3a84(0x4,_0x5ee268['IConfigService']),_0x5e3a84(0x5,_0x411a7c)],_0x19f7dc[_0x1a9c4c(0x569)]);var _0x38cb35=Object[_0x1a9c4c(0x340)],_0x144778=Object['getOwnPropertyDescriptor'],_0x2e132a=(_0x132783,_0x49e09e,_0x51606e,_0x1dffa1)=>{const _0x2d40c9=_0x1a9c4c;for(var _0x5c19ed=_0x1dffa1>0x1?void 0x0:_0x1dffa1?_0x144778(_0x49e09e,_0x51606e):_0x49e09e,_0x315b5f=_0x132783[_0x2d40c9(0x4d8)]-0x1,_0x274a18;_0x315b5f>=0x0;_0x315b5f--)(_0x274a18=_0x132783[_0x315b5f])&&(_0x5c19ed=(_0x1dffa1?_0x274a18(_0x49e09e,_0x51606e,_0x5c19ed):_0x274a18(_0x5c19ed))||_0x5c19ed);return _0x1dffa1&&_0x5c19ed&&_0x38cb35(_0x49e09e,_0x51606e,_0x5c19ed),_0x5c19ed;},_0xf3f679=(_0x69c49b,_0xa55ea5)=>(_0x146c3c,_0x4f2ba3)=>_0xa55ea5(_0x146c3c,_0x4f2ba3,_0x69c49b);let _0x174d0a=class{constructor(_0x667934,_0x21a581,_0x37a0be){const _0x2ccd7c=_0x1a9c4c;this[_0x2ccd7c(0x474)]=_0x667934,this[_0x2ccd7c(0x2df)]=_0x21a581,this[_0x2ccd7c(0x377)]=_0x37a0be;}[_0x1a9c4c(0x42b)](_0x9197){const _0x1d4218=_0x1a9c4c;this[_0x1d4218(0x393)](_0x9197),this[_0x1d4218(0x3b7)](_0x9197);}[_0x1a9c4c(0x355)](_0x441fa3){const _0x49f429=_0x1a9c4c,{unitID:_0x317679}=_0x441fa3,_0x435a7d=this[_0x49f429(0x377)][_0x49f429(0x48f)](_0x317679)[_0x49f429(0x205)](_0x2d522a['DocIMEInputManagerService']),{redoCache:_0x1d0566}=_0x435a7d['getUndoRedoMutationParamsCache']();if(_0x1d0566[_0x49f429(0x4d8)]===0x0)return _0x441fa3;let _0x10efac=_0x5ee268[_0x49f429(0x277)][_0x49f429(0x338)](_0x441fa3[_0x49f429(0x234)][0x0]);for(let _0x316e93=0x0;_0x316e93<_0x1d0566[_0x49f429(0x4d8)];_0x316e93++){const _0x4a22aa={'id':_0x49f429(0x220),'params':{..._0x1d0566[_0x316e93]}},_0x7de821=this[_0x49f429(0x2df)]['transformMutation'](_0x10efac,_0x4a22aa,!0x1);if(_0x437f93[_0x49f429(0x1ac)](_0x7de821))throw _0x7de821[_0x49f429(0x317)];_0x10efac=_0x7de821[_0x49f429(0x52f)];}return{..._0x5ee268[_0x49f429(0x277)][_0x49f429(0x338)](_0x441fa3),'mutations':[_0x10efac]};}['_transformUndoRedoStack'](_0x4da431){const _0xc40015=_0x1a9c4c,{unitID:_0x4c236a}=_0x4da431,_0x279253=this['_renderManagerService'][_0xc40015(0x48f)](_0x4c236a)[_0xc40015(0x205)](_0x2d522a[_0xc40015(0x4f3)]),{undoCache:_0x196da9,redoCache:_0x2f4075}=_0x279253[_0xc40015(0x303)]();if(_0x196da9[_0xc40015(0x4d8)]===0x0||_0x2f4075[_0xc40015(0x4d8)]===0x0)return;const _0x31a5b9=[],_0x305aad=[];let _0x11bfae=_0x5ee268[_0xc40015(0x277)][_0xc40015(0x338)](_0x4da431[_0xc40015(0x234)][0x0]),_0x413d8a=_0x5ee268['Tools'][_0xc40015(0x338)](_0x4da431[_0xc40015(0x234)][0x0]);for(let _0x3e6e66=_0x196da9[_0xc40015(0x4d8)]-0x1;_0x3e6e66>=0x0;_0x3e6e66--){const _0x207a9c={'id':_0xc40015(0x220),'params':{..._0x196da9[_0x3e6e66]}},_0x717b55={'id':'doc.mutation.rich-text-editing','params':{..._0x2f4075[_0x3e6e66]}},_0x1fa328=this[_0xc40015(0x2df)][_0xc40015(0x24d)](_0x11bfae,_0x207a9c,!0x1),_0x14f343=this[_0xc40015(0x2df)]['transformMutation'](_0x413d8a,_0x717b55,!0x1);if(_0x437f93[_0xc40015(0x1ac)](_0x1fa328))throw _0x1fa328[_0xc40015(0x317)];if(_0x437f93['isTransformMutationFailure'](_0x14f343))throw _0x14f343[_0xc40015(0x317)];_0x31a5b9[_0xc40015(0x550)](_0x1fa328[_0xc40015(0x2b9)][_0xc40015(0x3e7)]),_0x305aad[_0xc40015(0x550)](_0x14f343['m2Prime'][_0xc40015(0x3e7)]),_0x11bfae=_0x1fa328[_0xc40015(0x52f)],_0x413d8a=_0x14f343[_0xc40015(0x52f)];}_0x279253[_0xc40015(0x50d)]({'undoCache':_0x31a5b9,'redoCache':_0x305aad});}[_0x1a9c4c(0x3b7)](_0x423f81){const _0x2de374=_0x1a9c4c,{unitID:_0x5c7e6d}=_0x423f81,_0x5e17a2=this['_renderManagerService'][_0x2de374(0x48f)](_0x5c7e6d)[_0x2de374(0x205)](_0x2d522a[_0x2de374(0x4f3)]),_0x5c52ab=_0x5e17a2['getActiveRange']();if(_0x5c52ab==null)return;const _0x3e7c98=[{'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x423f81[_0x2de374(0x447)],'actions':null,'textRanges':[_0x5c52ab]}}],_0x255343=this[_0x2de374(0x2df)]['transformMutationsWithChangeset'](_0x423f81,_0x3e7c98);if(!_0x437f93[_0x2de374(0x1d4)](_0x255343))throw _0x255343[_0x2de374(0x317)];const _0x10718e=_0x255343[_0x2de374(0x2b9)][0x0][_0x2de374(0x3e7)][_0x2de374(0x29f)];Array[_0x2de374(0x5c9)](_0x10718e)&&_0x10718e[_0x2de374(0x4d8)]&&_0x5e17a2[_0x2de374(0x230)](_0x10718e[0x0]);}};_0x174d0a=_0x2e132a([_0xf3f679(0x0,_0x5ee268[_0x1a9c4c(0x4b4)](_0x5ee268[_0x1a9c4c(0x418)])),_0xf3f679(0x1,_0x437f93[_0x1a9c4c(0x1c7)]),_0xf3f679(0x2,_0x454685['IRenderManagerService'])],_0x174d0a);var _0x6e83e2=Object[_0x1a9c4c(0x340)],_0x345565=Object[_0x1a9c4c(0x541)],_0x356fa9=(_0x5a0aaa,_0x5e1f55,_0x5eb020,_0x25fd25)=>{for(var _0x1e8d4b=_0x25fd25>0x1?void 0x0:_0x25fd25?_0x345565(_0x5e1f55,_0x5eb020):_0x5e1f55,_0x4077ec=_0x5a0aaa['length']-0x1,_0x10389c;_0x4077ec>=0x0;_0x4077ec--)(_0x10389c=_0x5a0aaa[_0x4077ec])&&(_0x1e8d4b=(_0x25fd25?_0x10389c(_0x5e1f55,_0x5eb020,_0x1e8d4b):_0x10389c(_0x1e8d4b))||_0x1e8d4b);return _0x25fd25&&_0x1e8d4b&&_0x6e83e2(_0x5e1f55,_0x5eb020,_0x1e8d4b),_0x1e8d4b;},_0x1f4de5=(_0x357044,_0x1cfbaa)=>(_0x5ed5cc,_0x4a2953)=>_0x1cfbaa(_0x5ed5cc,_0x4a2953,_0x357044);_0x19f7dc[_0x1a9c4c(0x59e)]=class extends _0x5ee268['Disposable']{constructor(_0x42dc74,_0x2e7d1,_0x11e948,_0x2b1a77,_0x18d3a6){const _0x2fdd72=_0x1a9c4c;super(),_0x1328f6(this,_0x2fdd72(0x5a4),new Map()),_0x1328f6(this,_0x2fdd72(0x407),new Map()),_0x1328f6(this,_0x2fdd72(0x425),!0x1),(this[_0x2fdd72(0x208)]=_0x42dc74,this['_localStorageService']=_0x2e7d1,this[_0x2fdd72(0x429)]=_0x11e948,this[_0x2fdd72(0x243)]=_0x2b1a77,this['_revisionService']=_0x18d3a6,this[_0x2fdd72(0x43d)]());}[_0x1a9c4c(0x4e1)](){const _0x574e69=_0x1a9c4c;this[_0x574e69(0x425)]=!0x0;}[_0x1a9c4c(0x3ad)](){const _0x1b7dc2=_0x1a9c4c;this[_0x1b7dc2(0x425)]=!0x1;}[_0x1a9c4c(0x214)](){const _0x3331e6=_0x1a9c4c;this[_0x3331e6(0x1f2)]()[_0x3331e6(0x29c)](()=>super[_0x3331e6(0x214)]());}async[_0x1a9c4c(0x2f8)](_0x1ceb7b){const _0x1fc1c6=_0x1a9c4c;return this[_0x1fc1c6(0x425)]?null:this[_0x1fc1c6(0x1ba)][_0x1fc1c6(0x45b)](_0x71d301(_0x1ceb7b));}async[_0x1a9c4c(0x548)](_0x28f5a3,_0x58909f){const _0x189d7c=_0x1a9c4c;return!!this[_0x189d7c(0x1ba)][_0x189d7c(0x2c9)](_0x28f5a3,_0x58909f);}[_0x1a9c4c(0x57e)](_0x7ce47,_0x386313,_0x2a56e5,_0x3764af){const _0x51c4eb=_0x1a9c4c,_0xe78d08=this[_0x51c4eb(0x3af)][_0x51c4eb(0x1e9)](_0x7ce47);this['_cachedData'][_0x51c4eb(0x26c)](_0x7ce47,{'unitID':_0x7ce47,'type':_0x386313,'awaitingChangeset':_0x2a56e5,'mutations':_0x3764af,'rev':_0xe78d08}),this[_0x51c4eb(0x407)]['has'](_0x7ce47)||this[_0x51c4eb(0x22e)](_0x7ce47);}[_0x1a9c4c(0x22e)](_0x397749){const _0x1de8fc=_0x1a9c4c,_0x1a9177=this['_getSaveTimeout']();_0x1a9177===0x0?this[_0x1de8fc(0x4b6)](_0x397749):this[_0x1de8fc(0x407)][_0x1de8fc(0x26c)](_0x397749,setTimeout(()=>this[_0x1de8fc(0x4b6)](_0x397749),_0x1a9177));}[_0x1a9c4c(0x30d)](){var _0x4c5972;return(_0x4c5972=this['_configService']['getConfig'](_0x9bc94d))!=null?_0x4c5972:0x3e8;}[_0x1a9c4c(0x4b6)](_0x7d4da9){const _0x25361b=_0x1a9c4c,_0x5e128f=this[_0x25361b(0x407)][_0x25361b(0x54d)](_0x7d4da9);return _0x5e128f!==void 0x0&&window[_0x25361b(0x556)](_0x5e128f),this[_0x25361b(0x1ba)]['setItem'](_0x71d301(_0x7d4da9),this['_cachedData'][_0x25361b(0x54d)](_0x7d4da9))['then'](()=>this['_saveTaskMap'][_0x25361b(0x1c8)](_0x7d4da9));}async[_0x1a9c4c(0x1f2)](){const _0x3122b9=_0x1a9c4c,_0x416ce6=[];this[_0x3122b9(0x407)][_0x3122b9(0x506)]((_0x1852a7,_0x272cd9)=>{const _0x4f0d54=_0x3122b9;window[_0x4f0d54(0x556)](_0x1852a7),_0x416ce6[_0x4f0d54(0x2ee)](this['_saveCache'](_0x272cd9)['then'](()=>{const _0x756e4a=_0x4f0d54;this[_0x756e4a(0x407)][_0x756e4a(0x1c8)](_0x272cd9);}));}),await Promise[_0x3122b9(0x4ca)](_0x416ce6);}['_setupBeforeClosingHandler'](){const _0x3f0c0a=_0x1a9c4c;this[_0x3f0c0a(0x337)](this[_0x3f0c0a(0x429)][_0x3f0c0a(0x1bf)](()=>{const _0x3e89d7=_0x3f0c0a;if(this['_saveTaskMap'][_0x3e89d7(0x3ce)])return this[_0x3e89d7(0x243)]['t']('collaboration-client.offline-data-not-saved');}));}},_0x19f7dc[_0x1a9c4c(0x59e)]=_0x356fa9([_0x1f4de5(0x0,_0x5ee268[_0x1a9c4c(0x422)]),_0x1f4de5(0x1,_0x5ee268[_0x1a9c4c(0x5a0)]),_0x1f4de5(0x2,_0x56f90f['IBeforeCloseService']),_0x1f4de5(0x3,_0x5ee268['Inject'](_0x5ee268[_0x1a9c4c(0x25a)])),_0x1f4de5(0x4,_0x5ee268[_0x1a9c4c(0x4b4)](_0x437f93[_0x1a9c4c(0x53b)]))],_0x19f7dc[_0x1a9c4c(0x59e)]);function _0x71d301(_0x4f75ef){const _0x23d495=_0x1a9c4c;return _0x23d495(0x4e0)+_0x4f75ef;}var _0x36b3a9=Object[_0x1a9c4c(0x340)],_0x6c7386=Object[_0x1a9c4c(0x541)],_0x1218a7=(_0x5e79b5,_0x23c625,_0x53cf24,_0x217f10)=>{const _0x1f3ec4=_0x1a9c4c;for(var _0x4697c2=_0x217f10>0x1?void 0x0:_0x217f10?_0x6c7386(_0x23c625,_0x53cf24):_0x23c625,_0x3af08f=_0x5e79b5[_0x1f3ec4(0x4d8)]-0x1,_0x5cf211;_0x3af08f>=0x0;_0x3af08f--)(_0x5cf211=_0x5e79b5[_0x3af08f])&&(_0x4697c2=(_0x217f10?_0x5cf211(_0x23c625,_0x53cf24,_0x4697c2):_0x5cf211(_0x4697c2))||_0x4697c2);return _0x217f10&&_0x4697c2&&_0x36b3a9(_0x23c625,_0x53cf24,_0x4697c2),_0x4697c2;},_0x1a71ae=(_0x129bc6,_0x3119a7)=>(_0x2c1cf8,_0x586d67)=>_0x3119a7(_0x2c1cf8,_0x586d67,_0x129bc6);function _0x4452ec(_0x3067e0){const _0x58e760=_0x1a9c4c,{unitID:_0x385fe5,mutations:_0x22dac5}=_0x3067e0;return{'unitId':_0x385fe5,'subUnitId':_0x22dac5[0x0][_0x58e760(0x3e7)]['subUnitId']};}let _0x41bd09=class{constructor(_0x545a00,_0x295d0f,_0x468621){const _0x3ee7ad=_0x1a9c4c;this[_0x3ee7ad(0x474)]=_0x545a00,this[_0x3ee7ad(0x2df)]=_0x295d0f,this['_instanceService']=_0x468621;}['transformSelections'](_0x374973){const _0x197e44=_0x1a9c4c;var _0x8b11c6,_0xd34d62,_0x502377,_0x2aabc4;const _0x5b8b8e=this[_0x197e44(0x474)][_0x197e44(0x54d)](_0x149ec5[_0x197e44(0x488)]),{unitId:_0x1e8db8,subUnitId:_0x253570}=_0x4452ec(_0x374973),_0x29b7f1=_0x5b8b8e[_0x197e44(0x445)](_0x1e8db8)[_0x197e44(0x20f)](),_0x2f8eb0=(_0xd34d62=(_0x8b11c6=this[_0x197e44(0x47f)][_0x197e44(0x4e4)](_0x1e8db8))==null?void 0x0:_0x8b11c6[_0x197e44(0x267)]())==null?void 0x0:_0xd34d62['getSheetId']();if(_0x29b7f1['length']===0x0||!_0x1e8db8||!_0x253570)return;const _0x5f276d=[{'id':_0x149ec5[_0x197e44(0x408)]['id'],'params':{'unitId':_0x1e8db8,'subUnitId':_0x2f8eb0,'selections':_0x5ee268[_0x197e44(0x277)][_0x197e44(0x338)](_0x29b7f1)}}],_0x4f6c0d=this[_0x197e44(0x2df)][_0x197e44(0x250)](_0x374973,_0x5f276d);if(!_0x437f93[_0x197e44(0x1d4)](_0x4f6c0d))throw _0x4f6c0d['error'];const _0x5786af=(_0x2aabc4=(_0x502377=_0x4f6c0d[_0x197e44(0x2b9)][0x0])==null?void 0x0:_0x502377['params'])==null?void 0x0:_0x2aabc4['selections'];Array[_0x197e44(0x5c9)](_0x5786af)&&_0x5786af[_0x197e44(0x4d8)]&&this[_0x197e44(0x474)][_0x197e44(0x54d)](_0x5ee268[_0x197e44(0x386)])[_0x197e44(0x25f)](_0x149ec5[_0x197e44(0x408)]['id'],{'unitId':_0x1e8db8,'subUnitId':_0x2f8eb0,'selections':_0x5786af});}};_0x41bd09=_0x1218a7([_0x1a71ae(0x0,_0x5ee268['Inject'](_0x5ee268[_0x1a9c4c(0x418)])),_0x1a71ae(0x1,_0x437f93['ITransformService']),_0x1a71ae(0x2,_0x5ee268[_0x1a9c4c(0x39a)])],_0x41bd09);const _0x2c4a47=_0x5ee268[_0x1a9c4c(0x549)](_0x1a9c4c(0x4ab));var _0x40dedc=(_0x2a40d1=>(_0x2a40d1[_0x2a40d1['NO_OTHER_CLIENTS_EDITING']=0x0]='NO_OTHER_CLIENTS_EDITING',_0x2a40d1[_0x2a40d1[_0x1a9c4c(0x457)]=0x1]=_0x1a9c4c(0x457),_0x2a40d1))(_0x40dedc||{});const _0x1ed73f=0x7530,_0x5d84cf=_0x1a9c4c(0x381);class _0x3f784d extends _0x5ee268[_0x1a9c4c(0x238)]{constructor(){const _0x2994eb=_0x1a9c4c;super(),_0x1328f6(this,_0x2994eb(0x463),_0x5ee268[_0x2994eb(0x277)][_0x2994eb(0x58b)]()),_0x1328f6(this,_0x2994eb(0x5be),new Set()),_0x1328f6(this,'_unitOnClients',new Map()),_0x1328f6(this,'_heartbeatTimer',null),_0x1328f6(this,_0x2994eb(0x29e),new Map()),_0x1328f6(this,_0x2994eb(0x2f3),new Map()),this[_0x2994eb(0x38a)]();}['dispose'](){const _0x138a78=_0x1a9c4c;super[_0x138a78(0x214)](),this['_clearOtherTimers'][_0x138a78(0x506)]((_0x1067fd,_0x4f92df)=>this[_0x138a78(0x221)](_0x4f92df)),this[_0x138a78(0x262)]&&window['clearInterval'](this[_0x138a78(0x262)]);}['getUnitStatus$'](_0x597b86){const _0x2fc2ba=_0x1a9c4c;return this[_0x2fc2ba(0x2ca)](_0x597b86)['pipe'](_0x56990c[_0x2fc2ba(0x22a)]());}[_0x1a9c4c(0x336)](_0x233ca5){const _0xb59e29=_0x1a9c4c;this[_0xb59e29(0x5be)][_0xb59e29(0x3ce)]===0x0&&this[_0xb59e29(0x4d1)](),this[_0xb59e29(0x5be)][_0xb59e29(0x4d0)](_0x233ca5),this[_0xb59e29(0x59d)]({'type':0x0,'memberID':this[_0xb59e29(0x463)],'unitIDs':[_0x233ca5],'isForwarded':!0x1});}[_0x1a9c4c(0x3bb)](_0x37aa06){const _0x3077d2=_0x1a9c4c;this[_0x3077d2(0x5be)][_0x3077d2(0x1c8)](_0x37aa06),this[_0x3077d2(0x5be)][_0x3077d2(0x3ce)]===0x0&&this[_0x3077d2(0x262)]&&window[_0x3077d2(0x331)](this[_0x3077d2(0x262)]);}[_0x1a9c4c(0x38a)](){const _0x24b497=_0x1a9c4c;this[_0x24b497(0x337)](_0x5ee268['toDisposable'](_0x56990c['fromEvent'](window,_0x24b497(0x2a6))[_0x24b497(0x3a7)](_0x4f9e98=>{const _0x55719c=_0x24b497;if(_0x4f9e98[_0x55719c(0x53c)]!==_0x5d84cf||!_0x4f9e98[_0x55719c(0x47a)])return;const _0xd5f201=JSON[_0x55719c(0x3f8)](_0x4f9e98[_0x55719c(0x47a)]);this[_0x55719c(0x237)](_0xd5f201);}))),window['addEventListener'](_0x24b497(0x4fd),()=>this['_send']({'type':0x1,'memberID':this['_id'],'unitIDs':Array['from'](this[_0x24b497(0x5be)])}));}[_0x1a9c4c(0x237)](_0x20de5c){const _0xb47b7b=_0x1a9c4c;switch(_0x20de5c[_0xb47b7b(0x219)]){case 0x0:this[_0xb47b7b(0x537)](_0x20de5c);break;case 0x1:this[_0xb47b7b(0x365)](_0x20de5c);break;case 0x2:this[_0xb47b7b(0x505)](_0x20de5c);break;}}[_0x1a9c4c(0x537)](_0x4771b9){const _0x3b73e1=_0x1a9c4c,{unitIDs:_0x490d0c,memberID:_0x2478a8,isForwarded:_0x2b3aa6}=_0x4771b9;_0x490d0c[_0x3b73e1(0x506)](_0x4ef14b=>{const _0x4fb2b7=_0x3b73e1;if(!_0x2b3aa6&&this[_0x4fb2b7(0x2f2)][_0x4fb2b7(0x252)](_0x4ef14b)&&this['_ensureSubject'](_0x4ef14b)['next'](0x1),!this['_unitOnClients'][_0x4fb2b7(0x252)](_0x4ef14b)||!this['_unitOnClients'][_0x4fb2b7(0x54d)](_0x4ef14b)[_0x4fb2b7(0x252)](_0x2478a8)){const _0x485d69=this[_0x4fb2b7(0x2f2)][_0x4fb2b7(0x54d)](_0x4ef14b)||new Set();_0x485d69['add'](_0x2478a8),this['_unitOnClients'][_0x4fb2b7(0x26c)](_0x4ef14b,_0x485d69),this[_0x4fb2b7(0x46e)](_0x2478a8);}}),_0x2b3aa6||this[_0x3b73e1(0x59d)]({'type':0x0,'memberID':this['_id'],'unitIDs':[...this[_0x3b73e1(0x5be)]],'isForwarded':!0x0});}[_0x1a9c4c(0x46e)](_0x280061){const _0x40f817=_0x1a9c4c;this['_removeClearOtherTimer'](_0x280061);const _0x1ac0d6=window[_0x40f817(0x557)](()=>{const _0x4a4933=_0x40f817;this[_0x4a4933(0x2f2)][_0x4a4933(0x506)](_0x50a4ea=>{const _0x2ccffd=_0x4a4933;_0x50a4ea[_0x2ccffd(0x1c8)](_0x280061);});},_0x1ed73f*0x2);this[_0x40f817(0x29e)]['set'](_0x280061,_0x1ac0d6);}[_0x1a9c4c(0x221)](_0x5d7de5){const _0x2adc02=_0x1a9c4c;if(this[_0x2adc02(0x29e)][_0x2adc02(0x252)](_0x5d7de5)){const _0x4dfb1a=this[_0x2adc02(0x29e)][_0x2adc02(0x54d)](_0x5d7de5);_0x4dfb1a&&window[_0x2adc02(0x556)](_0x4dfb1a),this[_0x2adc02(0x29e)][_0x2adc02(0x26c)](_0x5d7de5,null);}}[_0x1a9c4c(0x365)](_0x502035){const _0x3f1e44=_0x1a9c4c,{memberID:_0x182647,unitIDs:_0x4d8c75}=_0x502035;_0x4d8c75[_0x3f1e44(0x506)](_0x56018a=>{const _0x10a4d8=_0x3f1e44;var _0x58f0a9;const _0x3ce678=this[_0x10a4d8(0x2f2)]['get'](_0x56018a);_0x3ce678&&(_0x3ce678[_0x10a4d8(0x1c8)](_0x182647),(_0x58f0a9=this[_0x10a4d8(0x2ca)](_0x56018a))==null||_0x58f0a9[_0x10a4d8(0x42d)](_0x3ce678['size']===0x0?0x0:0x1));}),this[_0x3f1e44(0x221)](_0x182647);}[_0x1a9c4c(0x505)](_0x480b75){const _0x327f77=_0x1a9c4c;this[_0x327f77(0x46e)](_0x480b75[_0x327f77(0x2b2)]);}[_0x1a9c4c(0x59d)](_0x380933){const _0x3cdf97=_0x1a9c4c;localStorage[_0x3cdf97(0x2c9)](_0x5d84cf,JSON[_0x3cdf97(0x301)](_0x380933));}[_0x1a9c4c(0x4d1)](){const _0x3aa856=_0x1a9c4c;this[_0x3aa856(0x262)]=window[_0x3aa856(0x518)](()=>{const _0x349759=_0x3aa856;this[_0x349759(0x59d)]({'type':0x2,'memberID':this[_0x349759(0x463)]});},_0x1ed73f);}[_0x1a9c4c(0x2ca)](_0x507fa5){const _0xb88faa=_0x1a9c4c;return this[_0xb88faa(0x2f3)]['has'](_0x507fa5)||this[_0xb88faa(0x2f3)][_0xb88faa(0x26c)](_0x507fa5,new _0x56990c[(_0xb88faa(0x3d3))](0x0)),this[_0xb88faa(0x2f3)][_0xb88faa(0x54d)](_0x507fa5);}}function _0x51fd6d(_0x5eb195){const _0x4453eb=_0x1a9c4c;let _0x2feb38='';for(const _0x2cced8 of _0x5eb195){const {startOffset:_0x2ee4ac,endOffset:_0x15bdeb,isActive:_0x8d1917}=_0x2cced8;_0x2feb38[_0x4453eb(0x4d8)]&&(_0x2feb38+=','),_0x2feb38+=_0x2ee4ac+':'+_0x15bdeb+':'+(_0x8d1917?'1':'0');}return _0x2feb38;}function _0x54df69(_0x1ba743){const _0x4ad304=_0x1a9c4c,_0x882ac6=_0x1ba743[_0x4ad304(0x2a5)](','),_0x4465e9=[];for(const _0x394aba of _0x882ac6){const [_0xd8db42,_0x3ba9bb,_0x127c9e]=_0x394aba[_0x4ad304(0x2a5)](':');_0x4465e9[_0x4ad304(0x2ee)]({'startOffset':Number(_0xd8db42),'endOffset':Number(_0x3ba9bb),'collapsed':_0xd8db42===_0x3ba9bb,'isActive':_0x127c9e==='1'});}return _0x4465e9[_0x4ad304(0x454)](_0x2d8630=>_0x2d8630[_0x4ad304(0x4bd)])||(_0x4465e9[0x0]['isActive']=!0x0),_0x4465e9;}class _0x3c54ae extends _0x5ee268[_0x1a9c4c(0x4b2)]{constructor(){const _0x4a23ef=_0x1a9c4c;super(...arguments),_0x1328f6(this,_0x4a23ef(0x1ca),new _0x56990c['BehaviorSubject'](null)),_0x1328f6(this,_0x4a23ef(0x521),this[_0x4a23ef(0x1ca)][_0x4a23ef(0x560)]());}[_0x1a9c4c(0x333)](_0x2c1694){const _0x87db2f=_0x1a9c4c,{unitID:_0x7f5905,memberID:_0x56f098,textRanges:_0x35ed46}=_0x2c1694,_0x4bf513=_0x51fd6d(_0x35ed46),_0x37fa2d={'unitID':_0x7f5905,'memberID':_0x56f098,'selection':_0x4bf513};this['_collabCursorState$'][_0x87db2f(0x42d)](_0x37fa2d);}}var _0x83aaa6=Object[_0x1a9c4c(0x340)],_0x969b83=Object[_0x1a9c4c(0x541)],_0x463953=(_0x4522fd,_0x3ec600,_0x24bb52,_0x42e03c)=>{for(var _0x972c54=_0x42e03c>0x1?void 0x0:_0x42e03c?_0x969b83(_0x3ec600,_0x24bb52):_0x3ec600,_0x2ecb81=_0x4522fd['length']-0x1,_0x31cb43;_0x2ecb81>=0x0;_0x2ecb81--)(_0x31cb43=_0x4522fd[_0x2ecb81])&&(_0x972c54=(_0x42e03c?_0x31cb43(_0x3ec600,_0x24bb52,_0x972c54):_0x31cb43(_0x972c54))||_0x972c54);return _0x42e03c&&_0x972c54&&_0x83aaa6(_0x3ec600,_0x24bb52,_0x972c54),_0x972c54;},_0x231eab=(_0x446b7c,_0x49f86d)=>(_0x389de6,_0x3478e5)=>_0x49f86d(_0x389de6,_0x3478e5,_0x446b7c);let _0x19e584=class{constructor(_0x413048,_0x48919f){this['_injector']=_0x413048,this['_transformService']=_0x48919f;}[_0x1a9c4c(0x49a)](_0x2cca1f){const _0x2a8c74=_0x1a9c4c;var _0xf22c04;const _0x13a0df=this[_0x2a8c74(0x474)]['get'](_0x45fa2b[_0x2a8c74(0x3d2)]),_0x4509b5=(_0xf22c04=_0x13a0df[_0x2a8c74(0x378)]())!=null?_0xf22c04:[];if(_0x4509b5[_0x2a8c74(0x4d8)]===0x0)return;const _0x5c7c6a=[{'id':_0x2a8c74(0x220),'params':{'unitId':_0x2cca1f['unitID'],'actions':null,'textRanges':_0x4509b5}}],_0x541350=this[_0x2a8c74(0x2df)][_0x2a8c74(0x250)](_0x2cca1f,_0x5c7c6a);if(!_0x437f93[_0x2a8c74(0x1d4)](_0x541350))throw _0x541350[_0x2a8c74(0x317)];const _0xd7842e=_0x541350[_0x2a8c74(0x2b9)][0x0][_0x2a8c74(0x3e7)][_0x2a8c74(0x29f)];Array[_0x2a8c74(0x5c9)](_0xd7842e)&&_0xd7842e['length']&&_0x13a0df['replaceTextRanges'](_0xd7842e,!0x1);}};_0x19e584=_0x463953([_0x231eab(0x0,_0x5ee268[_0x1a9c4c(0x4b4)](_0x5ee268[_0x1a9c4c(0x418)])),_0x231eab(0x1,_0x437f93['ITransformService'])],_0x19e584);const _0x39affe=new Set([_0x149ec5[_0x1a9c4c(0x50a)]['id']]);function _0x37af09(_0x4919ab,_0x3ecda7,_0x34b5a8,_0x4f4134,_0x2c68aa){const _0x271e50=_0x1a9c4c;var _0x2dc362,_0x7ea077,_0x325487,_0x4201ae;const _0xe92ef6=[];for(const _0x5412a1 of _0x4919ab)if(_0x39affe[_0x271e50(0x252)](_0x5412a1['id'])){if(_0xe92ef6[_0x271e50(0x4d8)]>0x0)break;_0xe92ef6['push'](_0x5412a1);break;}else _0xe92ef6['push'](_0x5412a1);const _0x549b07=(_0x7ea077=(_0x2dc362=_0x2c68aa[_0x271e50(0x5a9)]())==null?void 0x0:_0x2dc362[_0x271e50(0x3db)])!=null?_0x7ea077:_0x271e50(0x546),_0x33b3e5=(_0x4201ae=(_0x325487=_0x2c68aa[_0x271e50(0x5a9)]())==null?void 0x0:_0x325487[_0x271e50(0x2b2)])!=null?_0x4201ae:'unknown';return{'changeset':{'unitID':_0x3ecda7,'type':_0x437f93[_0x271e50(0x239)](_0x34b5a8[_0x271e50(0x487)](_0x3ecda7)),'baseRev':_0x4f4134['getCurrentRevOfUnit'](_0x3ecda7),'revision':0x0,'userID':_0x549b07,'memberID':_0x33b3e5,'mutations':_0xe92ef6},'pendingMutations':_0x4919ab['slice'](_0xe92ef6['length'])};}function _0x5673db(_0x4b625c,_0x6c5d99,_0x4aab21,_0x2f0b53,_0x4950f6){const _0x341454=_0x1a9c4c;var _0x5ce9be,_0x4a6642,_0x34f7e0,_0x595a6b;const _0x40b8ed=[_0x4b625c[_0x341454(0x22c)]((_0x8a021a,_0x19c1bb)=>{const _0x2a70a5=_0x341454;var _0x4ef232;const {id:_0x379145}=_0x8a021a,{id:_0x27574d,type:_0x37f6ff}=_0x19c1bb,_0x3b56dd=(_0x4ef232=_0x8a021a[_0x2a70a5(0x3e7)])!=null?_0x4ef232:{'actions':null},_0x130db4=_0x19c1bb[_0x2a70a5(0x3e7)];if(_0x379145&&_0x379145!==_0x27574d)throw new Error(_0x2a70a5(0x223)+_0x379145+_0x2a70a5(0x3ff)+_0x27574d+'.');return{..._0x8a021a,'id':_0x27574d,'type':_0x37f6ff,'params':{'unitId':_0x130db4[_0x2a70a5(0x22b)],'textRanges':_0x130db4[_0x2a70a5(0x29f)],'actions':_0x5ee268[_0x2a70a5(0x339)][_0x2a70a5(0x492)](_0x3b56dd[_0x2a70a5(0x51a)],_0x130db4['actions'])}};},{})],_0x87d3d0=(_0x4a6642=(_0x5ce9be=_0x4950f6[_0x341454(0x5a9)]())==null?void 0x0:_0x5ce9be[_0x341454(0x3db)])!=null?_0x4a6642:'unknown',_0x26fb75=(_0x595a6b=(_0x34f7e0=_0x4950f6[_0x341454(0x5a9)]())==null?void 0x0:_0x34f7e0[_0x341454(0x2b2)])!=null?_0x595a6b:_0x341454(0x546);return{'changeset':{'unitID':_0x6c5d99,'type':_0x437f93[_0x341454(0x239)](_0x4aab21[_0x341454(0x487)](_0x6c5d99)),'baseRev':_0x2f0b53[_0x341454(0x1e9)](_0x6c5d99),'revision':0x0,'userID':_0x87d3d0,'memberID':_0x26fb75,'mutations':_0x40b8ed},'pendingMutations':[]};}const _0xdcba22={'id':_0x149ec5[_0x1a9c4c(0x437)]['id'],'type':_0x5ee268['CommandType'][_0x1a9c4c(0x31d)],'params':{}};var _0x41fcf0=Object[_0x1a9c4c(0x340)],_0x5e361d=Object[_0x1a9c4c(0x541)],_0x696347=(_0x21edce,_0x5c37aa,_0x479e44,_0x797c54)=>{const _0xdbdf35=_0x1a9c4c;for(var _0x5ee33c=_0x797c54>0x1?void 0x0:_0x797c54?_0x5e361d(_0x5c37aa,_0x479e44):_0x5c37aa,_0x4cdc13=_0x21edce[_0xdbdf35(0x4d8)]-0x1,_0xf36f19;_0x4cdc13>=0x0;_0x4cdc13--)(_0xf36f19=_0x21edce[_0x4cdc13])&&(_0x5ee33c=(_0x797c54?_0xf36f19(_0x5c37aa,_0x479e44,_0x5ee33c):_0xf36f19(_0x5ee33c))||_0x5ee33c);return _0x797c54&&_0x5ee33c&&_0x41fcf0(_0x5c37aa,_0x479e44,_0x5ee33c),_0x5ee33c;},_0x1df1ed=(_0x1553f3,_0x1f54e6)=>(_0x5f15a0,_0x40d222)=>_0x1f54e6(_0x5f15a0,_0x40d222,_0x1553f3),_0x319e47=(_0x5bdc49=>(_0x5bdc49[_0x1a9c4c(0x48e)]=_0x1a9c4c(0x59f),_0x5bdc49[_0x1a9c4c(0x3d7)]=_0x1a9c4c(0x558),_0x5bdc49[_0x1a9c4c(0x50b)]=_0x1a9c4c(0x5a5),_0x5bdc49[_0x1a9c4c(0x56d)]='awaiting',_0x5bdc49[_0x1a9c4c(0x3f6)]=_0x1a9c4c(0x275),_0x5bdc49[_0x1a9c4c(0x242)]=_0x1a9c4c(0x5a2),_0x5bdc49[_0x1a9c4c(0x596)]='conflict',_0x5bdc49[_0x1a9c4c(0x304)]='offline',_0x5bdc49))(_0x319e47||{});class _0x5adb03{constructor(_0x11a0ff,_0x33c2f3,_0x136bba,_0x10ac5c,_0x3a15c5,_0x1a3c2c,_0x5529cf,_0x57e712,_0x54f35b){const _0x2ac8e8=_0x1a9c4c;_0x1328f6(this,_0x2ac8e8(0x523),null),_0x1328f6(this,_0x2ac8e8(0x1cd),[]),(this['unitID']=_0x11a0ff,this[_0x2ac8e8(0x219)]=_0x33c2f3,this[_0x2ac8e8(0x2b6)]=_0x3a15c5,this[_0x2ac8e8(0x48d)]=_0x1a3c2c,this[_0x2ac8e8(0x278)]=_0x5529cf,this[_0x2ac8e8(0x3af)]=_0x57e712,this['_localCacheService']=_0x54f35b,this[_0x2ac8e8(0x523)]=_0x136bba,this['_pendingMutations']=_0x10ac5c);}[_0x1a9c4c(0x209)](_0x1439d4){const _0x2a42a1=_0x1a9c4c,_0x5da58f=this[_0x2a42a1(0x3af)][_0x2a42a1(0x1e9)](this[_0x2a42a1(0x447)]);return _0x1439d4[_0x2a42a1(0x500)]>_0x5da58f+0x1?(this[_0x2a42a1(0x2b6)][_0x2a42a1(0x4d4)]({'from':_0x5da58f,'to':_0x1439d4['revision']-0x1}),!0x0):!0x1;}[_0x1a9c4c(0x497)](_0x42220b){const _0x5c6d36=_0x1a9c4c;this[_0x5c6d36(0x278)]['transformUndoRedo'](this['unitID'],_0x42220b);}['_transformSelections'](_0x3e5449){const _0x432160=_0x1a9c4c;var _0xf16ffe,_0x4b1345;(_0x4b1345=(_0xf16ffe=this['_handler'])[_0x432160(0x2db)])==null||_0x4b1345[_0x432160(0x451)](_0xf16ffe,_0x3e5449);}[_0x1a9c4c(0x51b)](_0x11e71c){const _0x46dde4=_0x1a9c4c;var _0x3266d1,_0x4f31b9;return(_0x4f31b9=(_0x3266d1=this[_0x46dde4(0x2b6)])[_0x46dde4(0x3b6)])==null?void 0x0:_0x4f31b9['call'](_0x3266d1,_0x11e71c);}[_0x1a9c4c(0x2e3)](_0x119bac){const _0x1540b2=_0x1a9c4c;var _0x42259a,_0x4406d7,_0x11003b;return(_0x11003b=(_0x4406d7=(_0x42259a=this[_0x1540b2(0x2b6)])[_0x1540b2(0x599)])==null?void 0x0:_0x4406d7[_0x1540b2(0x451)](_0x42259a,_0x119bac))!=null?_0x11003b:_0x119bac;}['_syncEditingCollabCursor'](_0x26aa5e){const _0x4c5c05=_0x1a9c4c;var _0x3a183d,_0x20153c;if(this[_0x4c5c05(0x219)]===_0x69fde1[_0x4c5c05(0x1ec)]){const {unitID:_0x6a0cf3,mutations:_0x24668c,memberID:_0xada3cd}=_0x26aa5e,_0x3a9c5a=_0x24668c[0x0][_0x4c5c05(0x3e7)][_0x4c5c05(0x29f)];Array[_0x4c5c05(0x5c9)](_0x3a9c5a)&&_0x3a9c5a['length']>0x0&&((_0x20153c=(_0x3a183d=this[_0x4c5c05(0x2b6)])[_0x4c5c05(0x2cf)])==null||_0x20153c['call'](_0x3a183d,{'unitID':_0x6a0cf3,'memberID':_0xada3cd,'textRanges':_0x3a9c5a}));}}[_0x1a9c4c(0x1c5)](){const _0x4b3a8a=_0x1a9c4c;this[_0x4b3a8a(0x55e)]['updateOfflineData'](this[_0x4b3a8a(0x447)],this[_0x4b3a8a(0x219)],this[_0x4b3a8a(0x523)],this[_0x4b3a8a(0x1cd)]);}[_0x1a9c4c(0x459)](){const _0x4d08ae=_0x1a9c4c;return this['_revisionService'][_0x4d08ae(0x1e9)](this[_0x4d08ae(0x447)]);}[_0x1a9c4c(0x1e7)](){const _0x2efdb2=_0x1a9c4c;this[_0x2efdb2(0x3af)]['incrementRevOfUnit'](this['unitID']);}['_executeRemoteChangeset'](_0x22e64f){const _0x34d318=_0x1a9c4c;var _0x814732;const _0x562a72=this[_0x34d318(0x2e3)](_0x22e64f),_0x2676d5=_0x5ee268[_0x34d318(0x4bb)](_0x562a72['mutations'],this[_0x34d318(0x48d)],{'fromCollab':!0x0});if(!_0x2676d5[_0x34d318(0x56f)])throw _0x2676d5[_0x34d318(0x317)]instanceof Error?_0x2676d5[_0x34d318(0x317)]:new Error((_0x814732=_0x2676d5[_0x34d318(0x317)])!=null?_0x814732:_0x34d318(0x1ae));this[_0x34d318(0x51b)](_0x562a72),this[_0x34d318(0x497)](_0x22e64f),this[_0x34d318(0x4d6)](_0x562a72),this[_0x34d318(0x561)](_0x562a72),this[_0x34d318(0x1e7)]();}}let _0x58d7fd=class extends _0x5adb03{constructor(_0x5c0950,_0x111f99,_0x10c7c8,_0x3d6cf4,_0x3b985e,_0x510384,_0x32a815,_0x35f1d9,_0x5590cb,_0x10b0fd){const _0x4d19a3=_0x1a9c4c;super(_0x5c0950,_0x111f99,null,[],_0x10c7c8,_0x35f1d9,_0x32a815,_0x3d6cf4,_0x3b985e),_0x1328f6(this,'status',_0x4d19a3(0x558)),(this[_0x4d19a3(0x474)]=_0x510384,this[_0x4d19a3(0x2a9)]=_0x5590cb,this['_transformService']=_0x10b0fd);}[_0x1a9c4c(0x5cd)](_0x10f8bc){const _0x524b2d=_0x1a9c4c,_0x4a2dd7=this[_0x524b2d(0x474)]['createInstance'](_0x324b5a,this[_0x524b2d(0x447)],this[_0x524b2d(0x219)],[_0x10f8bc],this[_0x524b2d(0x2b6)]);return _0x4a2dd7[_0x524b2d(0x53d)](),_0x4a2dd7[_0x524b2d(0x1c5)](),_0x4a2dd7;}[_0x1a9c4c(0x2ab)](_0xd7acda){const _0x550c2d=_0x1a9c4c;if(this[_0x550c2d(0x209)](_0xd7acda))return this['_injector'][_0x550c2d(0x2dd)](_0x1851e1,this[_0x550c2d(0x447)],this['type'],null,[],null,[_0xd7acda],this['_handler']);try{const _0x476f6b=this[_0x550c2d(0x2df)]['transformMutationsWithChangeset'](_0xd7acda,[_0xdcba22]);if(_0x437f93[_0x550c2d(0x1d4)](_0x476f6b)){const {c1Prime:_0x12c2d3}=_0x476f6b;return this[_0x550c2d(0x5a3)](_0x12c2d3),this;}throw _0x476f6b[_0x550c2d(0x317)];}catch(_0x3481d8){return this['_logService'][_0x550c2d(0x317)](_0x3481d8),this[_0x550c2d(0x414)](!0x1);}}[_0x1a9c4c(0x414)](_0x160de4){const _0xa9086b=_0x1a9c4c;return this['_injector'][_0xa9086b(0x2dd)](_0x3e2513,this['unitID'],this[_0xa9086b(0x219)],null,[],this[_0xa9086b(0x2b6)],_0x160de4);}['onRemoteAck'](){const _0x264efd=_0x1a9c4c;throw new Error(_0x264efd(0x274));}['onRemoteRej'](){throw new Error('[SyncedState]:\x20received\x20rejection.');}['toggleOffline'](){const _0x411984=_0x1a9c4c;return this[_0x411984(0x474)]['createInstance'](_0xc956b6,this[_0x411984(0x447)],this[_0x411984(0x219)],null,[],this[_0x411984(0x2b6)]);}['toggleOnline'](){return this;}[_0x1a9c4c(0x26f)](){const _0x501470=_0x1a9c4c;throw new Error(_0x501470(0x326));}[_0x1a9c4c(0x363)](){const _0x5f5ad1=_0x1a9c4c,_0x262be1=this[_0x5f5ad1(0x3af)][_0x5f5ad1(0x1e9)](this[_0x5f5ad1(0x447)]);return this[_0x5f5ad1(0x2b6)]['onMissingChangesets']({'from':_0x262be1,'to':0x0}),this['_injector'][_0x5f5ad1(0x2dd)](_0x1851e1,this['unitID'],this[_0x5f5ad1(0x219)],null,[],null,[],this[_0x5f5ad1(0x2b6)]);}};_0x58d7fd=_0x696347([_0x1df1ed(0x3,_0x5ee268['Inject'](_0x437f93[_0x1a9c4c(0x53b)])),_0x1df1ed(0x4,_0x5ee268[_0x1a9c4c(0x4b4)](_0x19f7dc[_0x1a9c4c(0x59e)])),_0x1df1ed(0x5,_0x5ee268[_0x1a9c4c(0x4b4)](_0x5ee268[_0x1a9c4c(0x418)])),_0x1df1ed(0x6,_0x5ee268[_0x1a9c4c(0x493)]),_0x1df1ed(0x7,_0x5ee268[_0x1a9c4c(0x386)]),_0x1df1ed(0x8,_0x5ee268[_0x1a9c4c(0x2ff)]),_0x1df1ed(0x9,_0x437f93[_0x1a9c4c(0x1c7)])],_0x58d7fd);let _0x324b5a=class extends _0x5adb03{constructor(_0x281a10,_0xa5f8ec,_0x3eddf3,_0x464bca,_0x2f9547,_0xe93274,_0x27a143,_0x1e9a93,_0x51ae57,_0x161bb7,_0x4c1b75,_0x510338,_0x5167f9,_0x4f068a){const _0x579b9b=_0x1a9c4c;super(_0x281a10,_0xa5f8ec,null,_0x3eddf3,_0x464bca,_0x161bb7,_0x4f068a,_0xe93274,_0x27a143),_0x1328f6(this,_0x579b9b(0x227),_0x579b9b(0x5a5)),_0x1328f6(this,_0x579b9b(0x20c),null),_0x1328f6(this,_0x579b9b(0x292),null),(this[_0x579b9b(0x474)]=_0x2f9547,this['_memberService']=_0x1e9a93,this[_0x579b9b(0x2a9)]=_0x51ae57,this[_0x579b9b(0x208)]=_0x4c1b75,this[_0x579b9b(0x2df)]=_0x510338,this[_0x579b9b(0x535)]=_0x5167f9);}[_0x1a9c4c(0x5cd)](_0x4a4f1f){const _0x4c9a4f=_0x1a9c4c;return this[_0x4c9a4f(0x1cd)][_0x4c9a4f(0x2ee)](_0x4a4f1f),this['_updateLocalCache'](),this;}[_0x1a9c4c(0x2ab)](_0x3fa49a){const _0x5ca136=_0x1a9c4c;if(this[_0x5ca136(0x209)](_0x3fa49a))return this[_0x5ca136(0x4e9)](),this[_0x5ca136(0x474)]['createInstance'](_0x1851e1,this['unitID'],this['type'],null,this[_0x5ca136(0x1cd)],null,[_0x3fa49a],this[_0x5ca136(0x2b6)]);try{const _0x5a31c5=this['_transformService'][_0x5ca136(0x250)](_0x3fa49a,this['_pendingMutations']);if(_0x437f93[_0x5ca136(0x1d4)](_0x5a31c5)){const {c1Prime:_0x2a0a59,m2Prime:_0xcacc8d}=_0x5a31c5;this['_executeRemoteChangeset'](_0x2a0a59);const _0x3a3983=this['_injector']['createInstance'](_0x324b5a,this[_0x5ca136(0x447)],this[_0x5ca136(0x219)],_0xcacc8d,this[_0x5ca136(0x2b6)]);return this[_0x5ca136(0x4e9)](),_0x3a3983[_0x5ca136(0x53d)](this['_scheduleTimestamp']?Math['max'](0x0,new Date()[_0x5ca136(0x1a5)]()-this[_0x5ca136(0x20c)]):this[_0x5ca136(0x318)]()),_0x3a3983;}throw _0x5a31c5[_0x5ca136(0x317)];}catch(_0x539050){return this['_logService'][_0x5ca136(0x317)](_0x539050),this[_0x5ca136(0x414)](!0x1);}}[_0x1a9c4c(0x23b)](){const _0x2d9c10=_0x1a9c4c;throw new Error(_0x2d9c10(0x391));}[_0x1a9c4c(0x38f)](){throw new Error('[PendingState]:\x20received\x20rejection.');}[_0x1a9c4c(0x5bb)](){const _0x555e40=_0x1a9c4c;return this[_0x555e40(0x4e9)](),this[_0x555e40(0x474)]['createInstance'](_0xc956b6,this[_0x555e40(0x447)],this[_0x555e40(0x219)],null,this[_0x555e40(0x1cd)],this['_handler']);}[_0x1a9c4c(0x44d)](){return this;}['_schedule'](_0xe893a6){const _0x3faac4=_0x1a9c4c,_0x30deef=_0xe893a6!=null?_0xe893a6:this[_0x3faac4(0x318)]();this[_0x3faac4(0x20c)]=new Date()[_0x3faac4(0x1a5)](),this[_0x3faac4(0x292)]=window['setTimeout'](()=>{const _0x502526=_0x3faac4;this[_0x502526(0x4e9)]();let _0x4964ed=null;switch(this[_0x502526(0x219)]){case _0x69fde1[_0x502526(0x498)]:{_0x4964ed=_0x37af09(this[_0x502526(0x1cd)],this[_0x502526(0x447)],this[_0x502526(0x535)],this[_0x502526(0x3af)],this[_0x502526(0x33d)]);break;}case _0x69fde1[_0x502526(0x1ec)]:{this[_0x502526(0x1cd)][_0x502526(0x343)](_0x542a2c=>_0x542a2c['id']===_0x45fa2b[_0x502526(0x1fb)]['id'])?_0x4964ed=_0x5673db(this['_pendingMutations'],this[_0x502526(0x447)],this[_0x502526(0x535)],this[_0x502526(0x3af)],this[_0x502526(0x33d)]):_0x4964ed=_0x37af09(this[_0x502526(0x1cd)],this[_0x502526(0x447)],this['_univerInstanceService'],this['_revisionService'],this[_0x502526(0x33d)]);break;}default:throw new Error(_0x502526(0x21a)+this[_0x502526(0x219)]+_0x502526(0x251));}const {changeset:_0x247ed4,pendingMutations:_0x5c8690}=_0x4964ed;this['_handler'][_0x502526(0x254)](_0x247ed4);const _0x37a088=_0x5c8690[_0x502526(0x4d8)]?this[_0x502526(0x474)]['createInstance'](_0x2cc3ca,this[_0x502526(0x447)],this[_0x502526(0x219)],_0x247ed4,_0x5c8690,this[_0x502526(0x2b6)]):this[_0x502526(0x474)]['createInstance'](_0x1cce27,this[_0x502526(0x447)],this['type'],_0x247ed4,this[_0x502526(0x2b6)]);_0x37a088['_updateLocalCache'](),this[_0x502526(0x2b6)][_0x502526(0x5af)](this,_0x37a088);},_0x30deef);}['_getSendChangesetTimeout'](){const _0x519436=_0x1a9c4c;var _0x2e007d;const _0x3a5e48=this[_0x519436(0x208)][_0x519436(0x3a6)](_0x17bae2);return(_0x2e007d=_0x3a5e48==null?void 0x0:_0x3a5e48[_0x519436(0x46d)])!=null?_0x2e007d:0x7d0;}[_0x1a9c4c(0x26f)](){const _0x2c5115=_0x1a9c4c;throw new Error(_0x2c5115(0x424));}[_0x1a9c4c(0x4e9)](){const _0x13e0c3=_0x1a9c4c;this['_sendingTimer']!=null&&(clearTimeout(this[_0x13e0c3(0x292)]),this['_sendingTimer']=null);}[_0x1a9c4c(0x414)](_0x2d6251){const _0x364346=_0x1a9c4c;return this[_0x364346(0x4e9)](),this[_0x364346(0x474)][_0x364346(0x2dd)](_0x3e2513,this[_0x364346(0x447)],this[_0x364346(0x219)],null,this[_0x364346(0x1cd)],this[_0x364346(0x2b6)],_0x2d6251);}};_0x324b5a=_0x696347([_0x1df1ed(0x4,_0x5ee268[_0x1a9c4c(0x4b4)](_0x5ee268[_0x1a9c4c(0x418)])),_0x1df1ed(0x5,_0x5ee268[_0x1a9c4c(0x4b4)](_0x437f93[_0x1a9c4c(0x53b)])),_0x1df1ed(0x6,_0x5ee268[_0x1a9c4c(0x4b4)](_0x19f7dc['LocalCacheService'])),_0x1df1ed(0x7,_0x5ee268[_0x1a9c4c(0x4b4)](_0xd4878c)),_0x1df1ed(0x8,_0x5ee268['ILogService']),_0x1df1ed(0x9,_0x5ee268[_0x1a9c4c(0x386)]),_0x1df1ed(0xa,_0x5ee268[_0x1a9c4c(0x422)]),_0x1df1ed(0xb,_0x437f93[_0x1a9c4c(0x1c7)]),_0x1df1ed(0xc,_0x5ee268['IUniverInstanceService']),_0x1df1ed(0xd,_0x5ee268['IUndoRedoService'])],_0x324b5a);let _0x1cce27=class extends _0x5adb03{constructor(_0x1a5e33,_0xea487c,_0x2295d4,_0x5d2c60,_0x595317,_0x52a3d4,_0x34f4b6,_0x12dc66,_0x5d8aac,_0x144631,_0x301af3){const _0x1fbf35=_0x1a9c4c;super(_0x1a5e33,_0xea487c,_0x2295d4,[],_0x5d2c60,_0x12dc66,_0x301af3,_0x52a3d4,_0x34f4b6),_0x1328f6(this,_0x1fbf35(0x227),'awaiting'),(this[_0x1fbf35(0x474)]=_0x595317,this['_logService']=_0x5d8aac,this[_0x1fbf35(0x2df)]=_0x144631);}[_0x1a9c4c(0x5cd)](_0x16b797){const _0x3e382e=_0x1a9c4c,_0x5afb8b=this[_0x3e382e(0x474)][_0x3e382e(0x2dd)](_0x2cc3ca,this[_0x3e382e(0x447)],this[_0x3e382e(0x219)],this[_0x3e382e(0x523)],[_0x16b797],this[_0x3e382e(0x2b6)]);return _0x5afb8b['_updateLocalCache'](),_0x5afb8b;}['onRemoteChangeset'](_0x8ad7f5){const _0x5eea9a=_0x1a9c4c;if(this[_0x5eea9a(0x209)](_0x8ad7f5))return this[_0x5eea9a(0x474)]['createInstance'](_0x1851e1,this['unitID'],this[_0x5eea9a(0x219)],this[_0x5eea9a(0x523)],[],null,[_0x8ad7f5],this[_0x5eea9a(0x2b6)]);try{const _0x45b9fa=this[_0x5eea9a(0x2df)]['transformChangesets']([_0x8ad7f5],[this['_awaitingChangeset']],!0x1);if(_0x437f93['isTransformChangesetsSuccess'](_0x45b9fa)){const {c1Prime:_0x1529d2,c2Prime:_0x3ab82e}=_0x45b9fa;this[_0x5eea9a(0x5a3)](_0x1529d2[0x0]),_0x3ab82e[0x0]['baseRev']=this[_0x5eea9a(0x459)]();const _0x20f198=this['_injector'][_0x5eea9a(0x2dd)](_0x1cce27,this['unitID'],this[_0x5eea9a(0x219)],_0x3ab82e[0x0],this[_0x5eea9a(0x2b6)]);return _0x20f198[_0x5eea9a(0x1c5)](),_0x20f198;}return this[_0x5eea9a(0x414)](!0x1);}catch(_0x37840e){return this[_0x5eea9a(0x2a9)][_0x5eea9a(0x317)](_0x37840e),this['_onConflict'](!0x1);}}['onRemoteAck'](_0x478c3c){const _0xc0c929=_0x1a9c4c,_0x588b2a=this['_revisionService'][_0xc0c929(0x1e9)](this[_0xc0c929(0x447)]);if(_0x478c3c[_0xc0c929(0x500)]<_0x588b2a-0x1)return this;if(this[_0xc0c929(0x209)](_0x478c3c))return this[_0xc0c929(0x474)]['createInstance'](_0x1851e1,this['unitID'],this[_0xc0c929(0x219)],null,[],this[_0xc0c929(0x523)],[],this['_handler']);this[_0xc0c929(0x1e7)]();const _0x5e3e79=this[_0xc0c929(0x474)][_0xc0c929(0x2dd)](_0x58d7fd,this[_0xc0c929(0x447)],this[_0xc0c929(0x219)],this[_0xc0c929(0x2b6)]);return _0x5e3e79[_0xc0c929(0x1c5)](),_0x5e3e79;}[_0x1a9c4c(0x38f)](_0xc5bcd8){const _0x29679c=_0x1a9c4c;return this['_onConflict'](!!(_0xc5bcd8!=null&&_0xc5bcd8[_0x29679c(0x58f)]));}['toggleOffline'](){const _0x3fce88=_0x1a9c4c;return this[_0x3fce88(0x474)]['createInstance'](_0xc956b6,this['unitID'],this[_0x3fce88(0x219)],this['_awaitingChangeset'],[],this['_handler']);}[_0x1a9c4c(0x44d)](){return this;}[_0x1a9c4c(0x26f)](){const _0xc03e1b=_0x1a9c4c;this['_handler'][_0xc03e1b(0x254)](this[_0xc03e1b(0x523)]);}[_0x1a9c4c(0x414)](_0x592fdb){const _0x471191=_0x1a9c4c;return this[_0x471191(0x474)][_0x471191(0x2dd)](_0x3e2513,this['unitID'],this[_0x471191(0x219)],this['_awaitingChangeset'],[],this['_handler'],_0x592fdb);}};_0x1cce27=_0x696347([_0x1df1ed(0x4,_0x5ee268[_0x1a9c4c(0x4b4)](_0x5ee268['Injector'])),_0x1df1ed(0x5,_0x5ee268[_0x1a9c4c(0x4b4)](_0x437f93[_0x1a9c4c(0x53b)])),_0x1df1ed(0x6,_0x5ee268[_0x1a9c4c(0x4b4)](_0x19f7dc[_0x1a9c4c(0x59e)])),_0x1df1ed(0x7,_0x5ee268[_0x1a9c4c(0x386)]),_0x1df1ed(0x8,_0x5ee268[_0x1a9c4c(0x2ff)]),_0x1df1ed(0x9,_0x437f93[_0x1a9c4c(0x1c7)]),_0x1df1ed(0xa,_0x5ee268[_0x1a9c4c(0x493)])],_0x1cce27);let _0x2cc3ca=class extends _0x5adb03{constructor(_0x4220d4,_0x4f9835,_0x54a261,_0x3c21d2,_0x413458,_0x269da8,_0x1129eb,_0x379a93,_0x27b90c,_0x4aad68,_0x3571c7,_0x469c8d){const _0x1b1eb1=_0x1a9c4c;super(_0x4220d4,_0x4f9835,_0x54a261,_0x3c21d2,_0x413458,_0x27b90c,_0x469c8d,_0x1129eb,_0x379a93),_0x1328f6(this,'status','awaiting_with_pending'),(this[_0x1b1eb1(0x474)]=_0x269da8,this[_0x1b1eb1(0x2a9)]=_0x4aad68,this[_0x1b1eb1(0x2df)]=_0x3571c7);}[_0x1a9c4c(0x5cd)](_0x544845){const _0x27da84=_0x1a9c4c;return this[_0x27da84(0x1cd)][_0x27da84(0x2ee)](_0x544845),this;}[_0x1a9c4c(0x2ab)](_0xdc9e94){const _0x2bc2e1=_0x1a9c4c;if(this[_0x2bc2e1(0x209)](_0xdc9e94))return this[_0x2bc2e1(0x474)]['createInstance'](_0x1851e1,this[_0x2bc2e1(0x447)],this['type'],this[_0x2bc2e1(0x523)],this[_0x2bc2e1(0x1cd)],null,[_0xdc9e94],this[_0x2bc2e1(0x2b6)]);try{const _0xef95b8=this[_0x2bc2e1(0x2df)][_0x2bc2e1(0x510)]([_0xdc9e94],[this['_awaitingChangeset']],!0x1);if(_0x437f93['isTransformChangesetsSuccess'](_0xef95b8)){const {c1Prime:_0x20864d,c2Prime:_0x311c5b}=_0xef95b8,_0x5da04e=this[_0x2bc2e1(0x2df)][_0x2bc2e1(0x250)](_0x20864d[0x0],this[_0x2bc2e1(0x1cd)]);if(_0x437f93['isTransformMutationsWithChangesetSuccess'](_0x5da04e)){const {c1Prime:_0x56b7f0,m2Prime:_0x5db119}=_0x5da04e;return this[_0x2bc2e1(0x5a3)](_0x56b7f0),_0x311c5b[0x0][_0x2bc2e1(0x397)]=this[_0x2bc2e1(0x459)](),this[_0x2bc2e1(0x474)][_0x2bc2e1(0x2dd)](_0x2cc3ca,this[_0x2bc2e1(0x447)],this[_0x2bc2e1(0x219)],_0x311c5b[0x0],_0x5db119,this['_handler']);}throw _0x5da04e['error'];}throw _0xef95b8[_0x2bc2e1(0x317)];}catch(_0x206b26){return this['_logService'][_0x2bc2e1(0x317)](_0x206b26),this[_0x2bc2e1(0x414)](!0x1);}}[_0x1a9c4c(0x23b)](_0x532aae){const _0x648c97=_0x1a9c4c;if(this[_0x648c97(0x209)](_0x532aae))return this['_injector'][_0x648c97(0x2dd)](_0x1851e1,this[_0x648c97(0x447)],this['type'],null,this[_0x648c97(0x1cd)],this[_0x648c97(0x523)],[],this[_0x648c97(0x2b6)]);this[_0x648c97(0x1e7)]();const _0x44007b=this[_0x648c97(0x474)][_0x648c97(0x2dd)](_0x324b5a,this[_0x648c97(0x447)],this[_0x648c97(0x219)],this[_0x648c97(0x1cd)],this[_0x648c97(0x2b6)]);return _0x44007b[_0x648c97(0x53d)](),_0x44007b['_updateLocalCache'](),_0x44007b;}[_0x1a9c4c(0x38f)](_0x40645f){const _0x5257c7=_0x1a9c4c;return this['_onConflict'](!!(_0x40645f!=null&&_0x40645f[_0x5257c7(0x58f)]));}[_0x1a9c4c(0x5bb)](){const _0x24fe0a=_0x1a9c4c;return this[_0x24fe0a(0x474)][_0x24fe0a(0x2dd)](_0xc956b6,this[_0x24fe0a(0x447)],this[_0x24fe0a(0x219)],this[_0x24fe0a(0x523)],this[_0x24fe0a(0x1cd)],this[_0x24fe0a(0x2b6)]);}[_0x1a9c4c(0x44d)](){return this;}[_0x1a9c4c(0x26f)](){const _0x5ab47c=_0x1a9c4c;this[_0x5ab47c(0x2b6)]['onSendChangeset'](this[_0x5ab47c(0x523)]);}[_0x1a9c4c(0x414)](_0x831d00){const _0xeef881=_0x1a9c4c;return this['_injector']['createInstance'](_0x3e2513,this[_0xeef881(0x447)],this[_0xeef881(0x219)],null,this[_0xeef881(0x1cd)],this[_0xeef881(0x2b6)],_0x831d00);}};_0x2cc3ca=_0x696347([_0x1df1ed(0x5,_0x5ee268[_0x1a9c4c(0x4b4)](_0x5ee268[_0x1a9c4c(0x418)])),_0x1df1ed(0x6,_0x5ee268[_0x1a9c4c(0x4b4)](_0x437f93[_0x1a9c4c(0x53b)])),_0x1df1ed(0x7,_0x5ee268[_0x1a9c4c(0x4b4)](_0x19f7dc[_0x1a9c4c(0x59e)])),_0x1df1ed(0x8,_0x5ee268['ICommandService']),_0x1df1ed(0x9,_0x5ee268[_0x1a9c4c(0x2ff)]),_0x1df1ed(0xa,_0x437f93['ITransformService']),_0x1df1ed(0xb,_0x5ee268[_0x1a9c4c(0x493)])],_0x2cc3ca);let _0x3e2513=class extends _0x5adb03{constructor(_0x224f02,_0x156f61,_0x1ce200,_0xac53a2,_0x232796,_0x3b227a=!0x1,_0x2d1b7f,_0x5b03d5,_0xd6d78,_0xd48a2f,_0x34e31c,_0x1b6f9e,_0x285ae9){const _0x2ca393=_0x1a9c4c;super(_0x224f02,_0x156f61,_0x1ce200,_0xac53a2,_0x232796,_0x5b03d5,_0xd6d78,_0x34e31c,_0xd48a2f),_0x1328f6(this,'status',_0x2ca393(0x57b)),(this[_0x2ca393(0x1d2)]=_0x3b227a,this['_permissionService']=_0x2d1b7f,this['_localeService']=_0x1b6f9e,this[_0x2ca393(0x490)]=_0x285ae9,this[_0x2ca393(0x1b8)](),this['_clearLocalCache'](),this[_0x2ca393(0x3c8)]());}[_0x1a9c4c(0x5cd)](){return this;}[_0x1a9c4c(0x2ab)](){return this;}[_0x1a9c4c(0x23b)](){return this;}[_0x1a9c4c(0x38f)](){return this;}[_0x1a9c4c(0x5bb)](){return this;}[_0x1a9c4c(0x44d)](){return this;}[_0x1a9c4c(0x26f)](){const _0x10c5a0=_0x1a9c4c;throw new Error(_0x10c5a0(0x31e));}[_0x1a9c4c(0x520)](){const _0x3e43d3=_0x1a9c4c;this[_0x3e43d3(0x55e)][_0x3e43d3(0x57e)](this['unitID'],this[_0x3e43d3(0x219)],null,[]);}[_0x1a9c4c(0x1b8)](){const _0x244c76=_0x1a9c4c;this[_0x244c76(0x1d2)]?this[_0x244c76(0x490)][_0x244c76(0x1c3)]({'title':this['_localeService']['t'](_0x244c76(0x359)),'content':this[_0x244c76(0x243)]['t'](_0x244c76(0x33b)),'type':'error','duration':0x0}):this['_notificationService'][_0x244c76(0x1c3)]({'title':this[_0x244c76(0x243)]['t'](_0x244c76(0x3c1)),'content':this[_0x244c76(0x243)]['t'](_0x244c76(0x20d)),'type':_0x244c76(0x317),'duration':0x0});}[_0x1a9c4c(0x3c8)](){const _0x375d2b=_0x1a9c4c;this[_0x375d2b(0x285)][_0x375d2b(0x222)](new _0x149ec5['WorkbookEditablePermission'](this[_0x375d2b(0x447)])['id'],!0x1);}};_0x3e2513=_0x696347([_0x1df1ed(0x6,_0x5ee268[_0x1a9c4c(0x4b4)](_0x5ee268[_0x1a9c4c(0x443)])),_0x1df1ed(0x7,_0x5ee268[_0x1a9c4c(0x386)]),_0x1df1ed(0x8,_0x5ee268[_0x1a9c4c(0x493)]),_0x1df1ed(0x9,_0x5ee268[_0x1a9c4c(0x4b4)](_0x19f7dc['LocalCacheService'])),_0x1df1ed(0xa,_0x5ee268[_0x1a9c4c(0x4b4)](_0x437f93['RevisionService'])),_0x1df1ed(0xb,_0x5ee268[_0x1a9c4c(0x4b4)](_0x5ee268['LocaleService'])),_0x1df1ed(0xc,_0x56f90f[_0x1a9c4c(0x25e)])],_0x3e2513);let _0xc956b6=class extends _0x5adb03{constructor(_0x138097,_0x9b95a8,_0x16862a,_0x4d5de2,_0x15f728,_0x262019,_0x109736,_0x48c71f,_0x4b9f37,_0x1c9dd7){const _0x21b2ac=_0x1a9c4c;super(_0x138097,_0x9b95a8,_0x16862a,_0x4d5de2,_0x15f728,_0x4b9f37,_0x1c9dd7,_0x109736,_0x48c71f),_0x1328f6(this,_0x21b2ac(0x227),_0x21b2ac(0x57c)),this[_0x21b2ac(0x474)]=_0x262019;}[_0x1a9c4c(0x5cd)](_0x1c0dd5){const _0x4a3c2d=_0x1a9c4c;return this[_0x4a3c2d(0x1cd)]['push'](_0x1c0dd5),this[_0x4a3c2d(0x1c5)](),this;}[_0x1a9c4c(0x2ab)](_0x249924){const _0x5d20c6=_0x1a9c4c;throw new Error(_0x5d20c6(0x270));}[_0x1a9c4c(0x23b)](){const _0x29a84d=_0x1a9c4c;throw new Error(_0x29a84d(0x4ac));}['onRemoteRej'](){const _0x42321f=_0x1a9c4c;throw new Error(_0x42321f(0x5b6));}['toggleOffline'](){return this;}[_0x1a9c4c(0x44d)](){const _0x30953d=_0x1a9c4c,{_injector:_0xa1413,_pendingMutations:_0x2f4202,_awaitingChangeset:_0x1a7e8b,unitID:_0x3b8123,_handler:_0x4071e7,type:_0x12f48d}=this,_0x326855=_0x4f4d24(_0xa1413,_0x3b8123,_0x12f48d,_0x1a7e8b,_0x2f4202,_0x4071e7);return _0x326855 instanceof _0x324b5a?_0x326855[_0x30953d(0x53d)]():(_0x326855 instanceof _0x2cc3ca||_0x326855 instanceof _0x1cce27)&&_0x326855[_0x30953d(0x26f)](),_0x326855;}[_0x1a9c4c(0x26f)](){throw new Error('[OfflineState]:\x20invalid\x20calling\x20to\x20`resend`.');}};_0xc956b6=_0x696347([_0x1df1ed(0x5,_0x5ee268[_0x1a9c4c(0x4b4)](_0x5ee268[_0x1a9c4c(0x418)])),_0x1df1ed(0x6,_0x5ee268[_0x1a9c4c(0x4b4)](_0x437f93[_0x1a9c4c(0x53b)])),_0x1df1ed(0x7,_0x5ee268[_0x1a9c4c(0x4b4)](_0x19f7dc['LocalCacheService'])),_0x1df1ed(0x8,_0x5ee268[_0x1a9c4c(0x386)]),_0x1df1ed(0x9,_0x5ee268['IUndoRedoService'])],_0xc956b6);let _0x1851e1=class extends _0x5adb03{constructor(_0xa953c3,_0x1bf1fb,_0x489b45,_0x45aeeb,_0x26d19b,_0x2bb63d,_0x1f13f9,_0x18a5df,_0x55c006,_0x255eb5,_0x1f3df8,_0x2549ad,_0x2a6dc7,_0x15166d){const _0x3a2402=_0x1a9c4c;super(_0xa953c3,_0x1bf1fb,_0x489b45,_0x45aeeb,_0x1f13f9,_0x2549ad,_0x2a6dc7,_0x55c006,_0x255eb5),_0x1328f6(this,_0x3a2402(0x227),_0x3a2402(0x5a2)),(this['_acknowledgedAwaitingChangeset']=_0x26d19b,this[_0x3a2402(0x508)]=_0x2bb63d,this['_injector']=_0x18a5df,this['_logService']=_0x1f3df8,this['_transformService']=_0x15166d);}['onMissedChangesetFetched'](_0x566e10){const _0x59b826=_0x1a9c4c;try{const _0x12f216=[..._0x566e10,...this[_0x59b826(0x508)]],_0x129aa2=[this['_awaitingChangeset']||this[_0x59b826(0x531)]][_0x59b826(0x2a1)](_0x2caad5=>!!_0x2caad5);let _0x2d6e58,_0x4ed409;if(_0x129aa2[_0x59b826(0x4d8)]){const _0x388f92=this[_0x59b826(0x2df)][_0x59b826(0x510)](_0x12f216,_0x129aa2,!0x1);if(!_0x437f93[_0x59b826(0x236)](_0x388f92))throw _0x388f92[_0x59b826(0x317)];_0x2d6e58=_0x388f92[_0x59b826(0x249)],_0x4ed409=_0x388f92[_0x59b826(0x215)];}else _0x2d6e58=_0x12f216,_0x4ed409=[];let _0x34f12c=this[_0x59b826(0x1cd)];_0x2d6e58[_0x59b826(0x506)](_0x3d377c=>{const _0x18f2f0=_0x59b826;let _0x28fec2;if(_0x34f12c[_0x18f2f0(0x4d8)]){const _0x32633e=this[_0x18f2f0(0x2df)][_0x18f2f0(0x250)](_0x3d377c,_0x34f12c);if(!_0x437f93[_0x18f2f0(0x1d4)](_0x32633e))throw _0x32633e['error'];_0x28fec2=_0x32633e[_0x18f2f0(0x249)],_0x34f12c=_0x32633e[_0x18f2f0(0x2b9)];}else _0x28fec2=_0x3d377c;this['_executeRemoteChangeset'](_0x28fec2);}),this[_0x59b826(0x531)]&&this[_0x59b826(0x1e7)](),this[_0x59b826(0x523)]&&_0x4ed409[_0x59b826(0x4d8)]&&(_0x4ed409[0x0][_0x59b826(0x397)]=this[_0x59b826(0x459)]());let _0x34fab7;if(this['_awaitingChangeset']&&_0x34f12c[_0x59b826(0x4d8)]!==0x0)_0x34fab7=this[_0x59b826(0x474)]['createInstance'](_0x2cc3ca,this['unitID'],this[_0x59b826(0x219)],_0x4ed409[0x0],_0x34f12c,this[_0x59b826(0x2b6)]);else{if(this[_0x59b826(0x523)]&&_0x34f12c[_0x59b826(0x4d8)]===0x0)_0x4ed409[0x0][_0x59b826(0x397)]=this[_0x59b826(0x459)](),_0x34fab7=this[_0x59b826(0x474)]['createInstance'](_0x1cce27,this['unitID'],this[_0x59b826(0x219)],_0x4ed409[0x0],this['_handler']);else{if(_0x34f12c[_0x59b826(0x4d8)]!==0x0){const _0x2c0e53=this[_0x59b826(0x474)][_0x59b826(0x2dd)](_0x324b5a,this[_0x59b826(0x447)],this[_0x59b826(0x219)],_0x34f12c,this[_0x59b826(0x2b6)]);_0x2c0e53[_0x59b826(0x53d)](),_0x34fab7=_0x2c0e53;}else _0x34fab7=this['_injector'][_0x59b826(0x2dd)](_0x58d7fd,this['unitID'],this['type'],this['_handler']);}}return _0x34fab7[_0x59b826(0x1c5)](),_0x34fab7;}catch(_0x14a663){return this['_logService']['error']('[FetchMissState]',_0x59b826(0x5ce),_0x14a663),this['_injector']['createInstance'](_0x3e2513,this[_0x59b826(0x447)],this[_0x59b826(0x219)],this[_0x59b826(0x523)],this['_pendingMutations'],this[_0x59b826(0x2b6)],!0x1);}}[_0x1a9c4c(0x26f)](){throw new Error('[FetchingMissState]:\x20invalid\x20calling\x20to\x20`resend`.');}[_0x1a9c4c(0x5cd)](_0x51b970){const _0x27bd53=_0x1a9c4c;return this[_0x27bd53(0x1cd)]['push'](_0x51b970),this;}['onRemoteChangeset'](_0x56eb99){const _0x2ea7e7=_0x1a9c4c;return this[_0x2ea7e7(0x508)][_0x2ea7e7(0x2ee)](_0x56eb99),this;}[_0x1a9c4c(0x23b)](_0x474015){const _0x3057fd=_0x1a9c4c;if(this[_0x3057fd(0x523)])return this[_0x3057fd(0x531)]=this[_0x3057fd(0x523)],this['_awaitingChangeset']=null,this;throw new Error(_0x3057fd(0x218));}[_0x1a9c4c(0x38f)](_0x270fe7){const _0x4fd5b2=_0x1a9c4c;return this[_0x4fd5b2(0x414)](!!(_0x270fe7!=null&&_0x270fe7[_0x4fd5b2(0x58f)]));}[_0x1a9c4c(0x5bb)](){const _0x60fde3=_0x1a9c4c;return this[_0x60fde3(0x474)][_0x60fde3(0x2dd)](_0xc956b6,this[_0x60fde3(0x447)],this[_0x60fde3(0x219)],this[_0x60fde3(0x523)],this[_0x60fde3(0x1cd)],this[_0x60fde3(0x2b6)]);}[_0x1a9c4c(0x44d)](){return this;}[_0x1a9c4c(0x414)](_0x411955){const _0x67a12a=_0x1a9c4c;return this['_injector'][_0x67a12a(0x2dd)](_0x3e2513,this['unitID'],this[_0x67a12a(0x219)],this['_awaitingChangeset'],this['_pendingMutations'],this['_handler'],_0x411955);}};_0x1851e1=_0x696347([_0x1df1ed(0x7,_0x5ee268[_0x1a9c4c(0x4b4)](_0x5ee268[_0x1a9c4c(0x418)])),_0x1df1ed(0x8,_0x5ee268[_0x1a9c4c(0x4b4)](_0x437f93[_0x1a9c4c(0x53b)])),_0x1df1ed(0x9,_0x5ee268[_0x1a9c4c(0x4b4)](_0x19f7dc[_0x1a9c4c(0x59e)])),_0x1df1ed(0xa,_0x5ee268[_0x1a9c4c(0x2ff)]),_0x1df1ed(0xb,_0x5ee268[_0x1a9c4c(0x386)]),_0x1df1ed(0xc,_0x5ee268[_0x1a9c4c(0x493)]),_0x1df1ed(0xd,_0x437f93[_0x1a9c4c(0x1c7)])],_0x1851e1);function _0x4f4d24(_0x1671ec,_0x3ff532,_0x45ba11,_0x318254,_0x521b99,_0x43a0af){const _0x29b218=_0x1a9c4c;return _0x318254&&_0x521b99['length']?_0x1671ec[_0x29b218(0x2dd)](_0x2cc3ca,_0x3ff532,_0x45ba11,_0x318254,_0x521b99,_0x43a0af):_0x318254?_0x1671ec['createInstance'](_0x1cce27,_0x3ff532,_0x45ba11,_0x318254,_0x43a0af):_0x521b99[_0x29b218(0x4d8)]?_0x1671ec[_0x29b218(0x2dd)](_0x324b5a,_0x3ff532,_0x45ba11,_0x521b99,_0x43a0af):_0x1671ec[_0x29b218(0x2dd)](_0x58d7fd,_0x3ff532,_0x45ba11,_0x43a0af);}var _0x427064=Object[_0x1a9c4c(0x340)],_0x497ac5=Object[_0x1a9c4c(0x541)],_0x57a706=(_0x145990,_0x422de6,_0x574e67,_0x536ec5)=>{const _0x1f0a14=_0x1a9c4c;for(var _0x507596=_0x536ec5>0x1?void 0x0:_0x536ec5?_0x497ac5(_0x422de6,_0x574e67):_0x422de6,_0x2fdfc6=_0x145990[_0x1f0a14(0x4d8)]-0x1,_0x16e813;_0x2fdfc6>=0x0;_0x2fdfc6--)(_0x16e813=_0x145990[_0x2fdfc6])&&(_0x507596=(_0x536ec5?_0x16e813(_0x422de6,_0x574e67,_0x507596):_0x16e813(_0x507596))||_0x507596);return _0x536ec5&&_0x507596&&_0x427064(_0x422de6,_0x574e67,_0x507596),_0x507596;},_0x4608b9=(_0x402734,_0x2b10b8)=>(_0x29bbfa,_0x3a2b38)=>_0x2b10b8(_0x29bbfa,_0x3a2b38,_0x402734);_0x19f7dc[_0x1a9c4c(0x256)]=class extends _0x5ee268['RxDisposable']{constructor(_0x59c536,_0x570f5e,_0x4ce779,_0x2d9d26,_0x2b1a20,_0x2100af,_0x3d9888,_0x116955,_0x34d72e,_0x5887b2,_0x37bf28,_0x964dec,_0x86a657){const _0x59b58d=_0x1a9c4c;super(),_0x1328f6(this,_0x59b58d(0x4ec),new _0x56990c[(_0x59b58d(0x3d3))](null)),_0x1328f6(this,_0x59b58d(0x1a7),this['_state$'][_0x59b58d(0x560)]()),_0x1328f6(this,_0x59b58d(0x567)),_0x1328f6(this,'_collaborationPaused',!0x1),_0x1328f6(this,'status$',this[_0x59b58d(0x1a7)][_0x59b58d(0x246)](_0x56990c[_0x59b58d(0x42f)](_0x1aed8e=>_0x1aed8e?_0x1aed8e['status']:_0x319e47[_0x59b58d(0x304)]),_0x56990c[_0x59b58d(0x54b)](0x1))),_0x1328f6(this,_0x59b58d(0x368),!0x1),_0x1328f6(this,_0x59b58d(0x3f7),[]),(this[_0x59b58d(0x447)]=_0x59c536,this[_0x59b58d(0x1f0)]=_0x570f5e,this[_0x59b58d(0x1af)]=_0x4ce779,this[_0x59b58d(0x474)]=_0x2d9d26,this[_0x59b58d(0x55e)]=_0x2b1a20,this[_0x59b58d(0x315)]=_0x2100af,this[_0x59b58d(0x243)]=_0x3d9888,this[_0x59b58d(0x3af)]=_0x116955,this['_logService']=_0x34d72e,this[_0x59b58d(0x48d)]=_0x5887b2,this['_messageService']=_0x37bf28,this[_0x59b58d(0x285)]=_0x964dec,this[_0x59b58d(0x5cf)]=_0x86a657);}get[_0x1a9c4c(0x2d6)](){return this['_state'];}async[_0x1a9c4c(0x206)](){const _0x5158f9=_0x1a9c4c;if(this[_0x5158f9(0x2d6)])throw new Error(_0x5158f9(0x350));await this[_0x5158f9(0x38a)]();}['pauseCollaboration'](){const _0x2826ed=_0x1a9c4c;return this[_0x2826ed(0x37d)]=!0x0,_0x5ee268[_0x2826ed(0x4c5)](()=>{const _0x13f4b7=_0x2826ed;this[_0x13f4b7(0x37d)]=!0x1,this[_0x13f4b7(0x432)]();});}['_updateState'](_0x44dc7b){const _0x3468a9=_0x1a9c4c;this[_0x3468a9(0x567)]=_0x44dc7b,this[_0x3468a9(0x4ec)][_0x3468a9(0x42d)](_0x44dc7b);}async[_0x1a9c4c(0x38a)](){const _0x10af76=_0x1a9c4c;var _0x3ddb70;this[_0x10af76(0x430)](await this[_0x10af76(0x453)]()),this[_0x10af76(0x5cf)]&&((_0x3ddb70=this[_0x10af76(0x5cf)])==null||_0x3ddb70[_0x10af76(0x336)](this['unitID']),this['disposeWithMe'](this[_0x10af76(0x5cf)][_0x10af76(0x543)](this[_0x10af76(0x447)])[_0x10af76(0x3a7)](_0x41d186=>{const _0x58b3eb=_0x10af76;this[_0x58b3eb(0x2a9)][_0x58b3eb(0x2d3)](_0x58b3eb(0x485),'editing\x20status\x20changed\x20to',_0x41d186),_0x41d186===_0x40dedc[_0x58b3eb(0x457)]?(this[_0x58b3eb(0x5b4)][_0x58b3eb(0x1c3)]({'content':this[_0x58b3eb(0x243)]['t']('collaboration.single-unit.warning'),'type':_0x2e321b['MessageType'][_0x58b3eb(0x3c5)]}),this[_0x58b3eb(0x285)][_0x58b3eb(0x222)](new _0x149ec5[(_0x58b3eb(0x264))](this[_0x58b3eb(0x447)])['id'],!0x1)):this[_0x58b3eb(0x285)][_0x58b3eb(0x222)](new _0x149ec5['WorkbookEditablePermission'](this['unitID'])['id'],!0x0);})));let _0x1a7b0d=!0x1;return this[_0x10af76(0x337)](this[_0x10af76(0x1f0)]['sessionStatus$'][_0x10af76(0x3a7)](_0x1d7f6d=>{const _0x3c5b33=_0x10af76;_0x1d7f6d===_0x3477b6[_0x3c5b33(0x399)]?this['_toggleOnline'](_0x1a7b0d):_0x1d7f6d===_0x3477b6['OFFLINE']&&(_0x1a7b0d=!0x0,this[_0x3c5b33(0x2a0)]());})),this[_0x10af76(0x337)](this[_0x10af76(0x1f0)][_0x10af76(0x540)][_0x10af76(0x3a7)](_0x59db5f=>{const _0x78d300=_0x10af76;try{switch(_0x59db5f['eventID']){case _0x437f93[_0x78d300(0x2c5)]['NEW_CHANGESETS']:{this['_onRemoteChangeset'](_0x437f93[_0x78d300(0x2c6)](_0x59db5f[_0x78d300(0x5ac)]));break;}case _0x437f93[_0x78d300(0x2c5)][_0x78d300(0x513)]:{this[_0x78d300(0x245)](_0x59db5f[_0x78d300(0x5ac)]);break;}case _0x437f93['CollaborationEvent']['CHANGESET_REJ']:{this[_0x78d300(0x25d)]();break;}case _0x437f93['CollaborationEvent'][_0x78d300(0x49c)]:{this[_0x78d300(0x416)](_0x59db5f[_0x78d300(0x5ac)][_0x78d300(0x534)][_0x78d300(0x42f)](_0x2b8704=>_0x437f93[_0x78d300(0x2c6)](_0x2b8704)));break;}case _0x437f93[_0x78d300(0x2c5)][_0x78d300(0x2f5)]:this[_0x78d300(0x25d)]({'isPermissionRej':!0x0});}}catch(_0x315696){throw console['error'](_0x78d300(0x1a6),_0x315696),_0x315696;}})),this['_state'];}['_unlockTransition'](){const _0x1d7cd9=_0x1a9c4c;this[_0x1d7cd9(0x368)]=!0x1;}['_lockTransition'](){const _0x20650b=_0x1a9c4c;if(this[_0x20650b(0x368)])throw new Error(_0x20650b(0x507));this[_0x20650b(0x368)]=!0x0;}[_0x1a9c4c(0x35a)](_0x1af4aa){const _0x40e7a3=_0x1a9c4c;this[_0x40e7a3(0x2b3)](),this[_0x40e7a3(0x430)](this['_state'][_0x40e7a3(0x5cd)](_0x1af4aa)),this[_0x40e7a3(0x455)]();}['_onRemoteChangeset'](_0x1e0321){const _0x51f95d=_0x1a9c4c;if(!(_0x1e0321[_0x51f95d(0x500)]<=this[_0x51f95d(0x3af)][_0x51f95d(0x1e9)](this['unitID']))){if(this[_0x51f95d(0x37d)]){this[_0x51f95d(0x3f7)][_0x51f95d(0x2ee)](_0x1e0321);return;}this[_0x51f95d(0x4e8)](_0x1e0321);}}[_0x1a9c4c(0x432)](){const _0x3c1a2d=_0x1a9c4c;this['_remoteChangesetQueue'][_0x3c1a2d(0x506)](_0x1fadad=>this[_0x3c1a2d(0x4e8)](_0x1fadad)),this[_0x3c1a2d(0x3f7)]=[];}[_0x1a9c4c(0x4e8)](_0x10a10d){const _0x50d63f=_0x1a9c4c,_0x4f251f=this[_0x50d63f(0x315)][_0x50d63f(0x1cb)][_0x50d63f(0x3c7)](this[_0x50d63f(0x315)][_0x50d63f(0x1cb)][_0x50d63f(0x4fc)]()[_0x50d63f(0x211)])(_0x10a10d[_0x50d63f(0x234)],null)||_0x10a10d[_0x50d63f(0x234)],_0x38753c={..._0x10a10d,'mutations':_0x4f251f};this['_lockTransition'](),this[_0x50d63f(0x430)](this[_0x50d63f(0x567)][_0x50d63f(0x2ab)](_0x38753c)),this[_0x50d63f(0x455)]();}[_0x1a9c4c(0x245)](_0x2b67c5){const _0x36e5b3=_0x1a9c4c;this[_0x36e5b3(0x2b3)](),this[_0x36e5b3(0x430)](this[_0x36e5b3(0x567)][_0x36e5b3(0x23b)](_0x2b67c5)),this[_0x36e5b3(0x455)]();}['_onRemoteRejected'](_0x18c20d){const _0x37b239=_0x1a9c4c;this['_lockTransition'](),this[_0x37b239(0x430)](this[_0x37b239(0x567)][_0x37b239(0x38f)](_0x18c20d)),this[_0x37b239(0x455)]();}['_onFetchMissResult'](_0x10ee8f){const _0x421bda=_0x1a9c4c;if(!(this[_0x421bda(0x567)]instanceof _0x1851e1))throw new TypeError(_0x421bda(0x3c3));const _0x3c6198=_0x10ee8f[_0x421bda(0x42f)](_0x56990f=>{const _0x87496=_0x421bda,_0xb588e0=this['_compressMutationService'][_0x87496(0x1cb)][_0x87496(0x3c7)](this[_0x87496(0x315)]['interceptor'][_0x87496(0x4fc)]()['COMPRESS_MUTATION_APPLY'])(_0x56990f[_0x87496(0x234)],null)||_0x56990f[_0x87496(0x234)];return{..._0x56990f,'mutations':_0xb588e0};});this[_0x421bda(0x2b3)](),this['_updateState'](this[_0x421bda(0x567)]['onMissedChangesetFetched'](_0x3c6198)),this[_0x421bda(0x455)]();}[_0x1a9c4c(0x2a0)](){const _0x482089=_0x1a9c4c;this[_0x482089(0x2b3)](),this['_updateState'](this[_0x482089(0x567)][_0x482089(0x5bb)]()),this[_0x482089(0x455)]();}[_0x1a9c4c(0x3d1)](_0x21303e=!0x1){const _0x22a397=_0x1a9c4c;this[_0x22a397(0x2b3)](),this[_0x22a397(0x430)](this[_0x22a397(0x567)][_0x22a397(0x44d)]()),this['_unlockTransition']();const _0x77d63a=this[_0x22a397(0x567)];_0x21303e&&_0x77d63a instanceof _0x58d7fd&&(this[_0x22a397(0x2b3)](),this[_0x22a397(0x430)](_0x77d63a[_0x22a397(0x363)]()),this['_unlockTransition']());}async[_0x1a9c4c(0x453)](){return new Promise(_0x50530a=>{const _0x31c8e5=_0x2a06;this['session']['sessionStatus$'][_0x31c8e5(0x246)](_0x56990c[_0x31c8e5(0x46a)](0x1))[_0x31c8e5(0x3a7)](async _0x2bcf74=>{const _0x306c2b=_0x31c8e5;_0x50530a(await this[_0x306c2b(0x3d0)](_0x2bcf74===_0x3477b6['ONLINE']));});});}['_createHandler'](){const _0x47fea0=this['unitID'];return{'onStateChange':(_0x2a2f8b,_0x1a7098)=>{const _0xfe8082=_0x2a06;if(_0x2a2f8b!==this[_0xfe8082(0x567)])throw new Error(_0xfe8082(0x320)+_0x2a2f8b[_0xfe8082(0x227)]+'\x0aAfter:\x20'+_0x1a7098[_0xfe8082(0x227)]+_0xfe8082(0x258)+this[_0xfe8082(0x567)][_0xfe8082(0x227)]);this[_0xfe8082(0x430)](_0x1a7098);},'onSendChangeset':_0x12251b=>{const _0x12e504=_0x2a06,_0x170d22={'eventID':_0x437f93[_0x12e504(0x2c5)][_0x12e504(0x4ed)],'data':{'unitID':_0x12251b[_0x12e504(0x447)],'unitType':this['_type'],'changeset':_0x12251b,'memberID':this[_0x12e504(0x1f0)][_0x12e504(0x3f2)]()}};this['session']['send'](_0x170d22,this[_0x12e504(0x447)]);},'onMissingChangesets':({from:_0x3bb25d,to:_0x3c6d4f})=>{const _0x2d39d1=_0x2a06;this[_0x2d39d1(0x2a9)]['debug'](_0x2d39d1(0x485),_0x2d39d1(0x33f)+_0x3bb25d+_0x2d39d1(0x276)+_0x3c6d4f);const _0x13bfa9={'eventID':_0x437f93[_0x2d39d1(0x2c5)]['FETCH_MISSING'],'data':{'unitID':_0x47fea0,'unitType':this[_0x2d39d1(0x1af)],'from':_0x3bb25d,'to':_0x3c6d4f}};this[_0x2d39d1(0x1f0)]['send'](_0x13bfa9,this[_0x2d39d1(0x447)]);}};}async[_0x1a9c4c(0x3d0)](_0x343cf2){const _0x11c706=_0x1a9c4c;var _0xb57d06,_0x16197f;const _0x36b726=await this['_localCacheService'][_0x11c706(0x2f8)](this[_0x11c706(0x447)]),_0x4a02ab=(_0xb57d06=_0x36b726==null?void 0x0:_0x36b726[_0x11c706(0x234)])!=null?_0xb57d06:[],_0xd17def=(_0x16197f=_0x36b726==null?void 0x0:_0x36b726[_0x11c706(0x1bc)])!=null?_0x16197f:null,_0x2e275f=this[_0x11c706(0x447)];try{this[_0x11c706(0x5c4)](_0xd17def,_0x4a02ab);}catch(_0x114e31){this['_logService'][_0x11c706(0x317)](_0x114e31);}const _0x3d4263=this['_createHandler']();if(_0x343cf2){const _0x30f191=_0x4f4d24(this[_0x11c706(0x474)],_0x2e275f,this[_0x11c706(0x1af)],_0xd17def,_0x4a02ab,_0x3d4263);return _0x30f191 instanceof _0x324b5a?_0x30f191[_0x11c706(0x53d)]():(_0x30f191 instanceof _0x2cc3ca||_0x30f191 instanceof _0x1cce27)&&_0x30f191[_0x11c706(0x26f)](),_0x30f191;}return this['_injector'][_0x11c706(0x2dd)](_0xc956b6,_0x2e275f,this[_0x11c706(0x1af)],_0xd17def,_0x4a02ab,_0x3d4263);}['_replayCachedMutations'](_0x161452,_0x96cd20){const _0x5080c1=_0x1a9c4c;var _0x2647a8,_0x327de7;const _0x2911e9=this[_0x5080c1(0x315)][_0x5080c1(0x1cb)][_0x5080c1(0x3c7)](this[_0x5080c1(0x315)]['interceptor'][_0x5080c1(0x4fc)]()[_0x5080c1(0x211)]);(_0x2647a8=_0x2911e9((_0x161452==null?void 0x0:_0x161452[_0x5080c1(0x234)])||[],null))==null||_0x2647a8['forEach'](_0x4df231=>this[_0x5080c1(0x48d)][_0x5080c1(0x25f)](_0x4df231['id'],_0x4df231[_0x5080c1(0x3e7)])),(_0x327de7=_0x2911e9(_0x96cd20||[],null))==null||_0x327de7[_0x5080c1(0x506)](_0x302cef=>this[_0x5080c1(0x48d)][_0x5080c1(0x25f)](_0x302cef['id'],_0x302cef['params']));}},_0x19f7dc[_0x1a9c4c(0x256)]=_0x57a706([_0x4608b9(0x3,_0x5ee268[_0x1a9c4c(0x4b4)](_0x5ee268[_0x1a9c4c(0x418)])),_0x4608b9(0x4,_0x5ee268[_0x1a9c4c(0x4b4)](_0x19f7dc[_0x1a9c4c(0x59e)])),_0x4608b9(0x5,_0x5ee268[_0x1a9c4c(0x4b4)](_0x437f93[_0x1a9c4c(0x47c)])),_0x4608b9(0x6,_0x5ee268[_0x1a9c4c(0x4b4)](_0x5ee268['LocaleService'])),_0x4608b9(0x7,_0x5ee268[_0x1a9c4c(0x4b4)](_0x437f93[_0x1a9c4c(0x53b)])),_0x4608b9(0x8,_0x5ee268['ILogService']),_0x4608b9(0x9,_0x5ee268['ICommandService']),_0x4608b9(0xa,_0x56f90f[_0x1a9c4c(0x2cb)]),_0x4608b9(0xb,_0x5ee268[_0x1a9c4c(0x443)]),_0x4608b9(0xc,_0x5ee268['Optional'](_0x2c4a47))],_0x19f7dc[_0x1a9c4c(0x256)]),_0x19f7dc[_0x1a9c4c(0x5b1)]=class extends _0x19f7dc[_0x1a9c4c(0x256)]{constructor(_0x52390c,_0x1907c7,_0x23eb0e,_0x50ba6f,_0x5f1cb4,_0xa596c7,_0x57f86c,_0x53ebc8,_0x50b4fd,_0x121efe,_0x5c4d3f,_0x4f82a2,_0x454c3d,_0x4bc2da,_0x37950d,_0x5af605,_0x3261df){const _0x3d1fdc=_0x1a9c4c;super(_0x52390c,_0x23eb0e,_0x1907c7,_0x50ba6f,_0x5f1cb4,_0xa596c7,_0x57f86c,_0x53ebc8,_0x454c3d,_0x4bc2da,_0x37950d,_0x5af605,_0x3261df),this[_0x3d1fdc(0x447)]=_0x52390c,this['type']=_0x1907c7,this[_0x3d1fdc(0x3fe)]=_0x50b4fd,this[_0x3d1fdc(0x296)]=_0x121efe,this['_docTransformSelectionsService']=_0x5c4d3f,this[_0x3d1fdc(0x413)]=_0x4f82a2;}[_0x1a9c4c(0x5bd)](){const _0x16f8fb=_0x1a9c4c,_0x27b088=super[_0x16f8fb(0x5bd)]();return _0x27b088['onTransformIME']=_0x5afa12=>this[_0x16f8fb(0x296)][_0x16f8fb(0x42b)](_0x5afa12),_0x27b088[_0x16f8fb(0x2db)]=_0x387834=>this[_0x16f8fb(0x2d1)][_0x16f8fb(0x49a)](_0x387834),_0x27b088[_0x16f8fb(0x2cf)]=_0x93f225=>this[_0x16f8fb(0x413)][_0x16f8fb(0x333)](_0x93f225),_0x27b088[_0x16f8fb(0x599)]=_0x54118d=>this[_0x16f8fb(0x296)][_0x16f8fb(0x355)](_0x54118d),_0x27b088;}async['_init'](){const _0x2a5f5f=_0x1a9c4c,_0x321052=await super[_0x2a5f5f(0x38a)]();return this[_0x2a5f5f(0x337)](this[_0x2a5f5f(0x48d)][_0x2a5f5f(0x1e6)]((_0x14c9f1,_0x2dc003)=>{const _0x5d4a33=_0x2a5f5f;if(_0x14c9f1[_0x5d4a33(0x219)]!==_0x5ee268[_0x5d4a33(0x3cb)][_0x5d4a33(0x31d)]||_0x2dc003!=null&&_0x2dc003[_0x5d4a33(0x469)]||_0x2dc003!=null&&_0x2dc003['onlyLocal'])return;const _0x50a661=_0x14c9f1[_0x5d4a33(0x3e7)];if((_0x50a661==null?void 0x0:_0x50a661[_0x5d4a33(0x22b)])!==this[_0x5d4a33(0x447)])return;let _0x4e2865=_0x14c9f1;if(_0x4e2865['id']===_0x45fa2b[_0x5d4a33(0x1fb)]['id']){const _0xa22a12=_0x4e2865[_0x5d4a33(0x3e7)];_0x4e2865={'id':_0x45fa2b['RichTextEditingMutation']['id'],'type':_0x5ee268[_0x5d4a33(0x3cb)][_0x5d4a33(0x31d)],'params':{'unitId':_0xa22a12[_0x5d4a33(0x22b)],'actions':_0xa22a12['actions'],'textRanges':null}};}const _0x3ca77f=this[_0x5d4a33(0x315)][_0x5d4a33(0x1cb)][_0x5d4a33(0x3c7)](this[_0x5d4a33(0x315)][_0x5d4a33(0x1cb)][_0x5d4a33(0x4fc)]()[_0x5d4a33(0x2b1)])([_0x4e2865],null)||[_0x4e2865];this['_onLocalMutation'](_0x3ca77f[0x0]);})),_0x321052;}},_0x19f7dc[_0x1a9c4c(0x5b1)]=_0x57a706([_0x4608b9(0x3,_0x5ee268['Inject'](_0x5ee268[_0x1a9c4c(0x418)])),_0x4608b9(0x4,_0x5ee268[_0x1a9c4c(0x4b4)](_0x19f7dc[_0x1a9c4c(0x59e)])),_0x4608b9(0x5,_0x5ee268['Inject'](_0x437f93['CompressMutationService'])),_0x4608b9(0x6,_0x5ee268['Inject'](_0x5ee268[_0x1a9c4c(0x25a)])),_0x4608b9(0x7,_0x5ee268['Inject'](_0x437f93['RevisionService'])),_0x4608b9(0x8,_0x5ee268[_0x1a9c4c(0x4b4)](_0x2d522a['DocStateChangeManagerService'])),_0x4608b9(0x9,_0x5ee268[_0x1a9c4c(0x4b4)](_0x174d0a)),_0x4608b9(0xa,_0x5ee268[_0x1a9c4c(0x4b4)](_0x19e584)),_0x4608b9(0xb,_0x5ee268[_0x1a9c4c(0x4b4)](_0x3c54ae)),_0x4608b9(0xc,_0x5ee268['ILogService']),_0x4608b9(0xd,_0x5ee268['ICommandService']),_0x4608b9(0xe,_0x56f90f['IMessageService']),_0x4608b9(0xf,_0x5ee268[_0x1a9c4c(0x443)]),_0x4608b9(0x10,_0x5ee268[_0x1a9c4c(0x2c1)](_0x2c4a47))],_0x19f7dc[_0x1a9c4c(0x5b1)]),_0x19f7dc['SheetCollaborationEntity']=class extends _0x19f7dc['CollaborationEntity']{constructor(_0x56e12b,_0x2b023e,_0x40a2e0,_0x5f4ea3,_0x56ccbd,_0x17b3dc,_0x57db83,_0x31f973,_0x2ddec3,_0x3cbd1e,_0xc559af,_0x2c826c,_0xf2f203,_0x520c14){const _0x2bde7e=_0x1a9c4c;super(_0x56e12b,_0x40a2e0,_0x2b023e,_0x5f4ea3,_0x56ccbd,_0x17b3dc,_0x57db83,_0x31f973,_0x3cbd1e,_0xc559af,_0x2c826c,_0xf2f203,_0x520c14),this[_0x2bde7e(0x447)]=_0x56e12b,this[_0x2bde7e(0x219)]=_0x2b023e,this[_0x2bde7e(0x5ba)]=_0x2ddec3;}[_0x1a9c4c(0x5bd)](){const _0x84a04=_0x1a9c4c,_0xdfa027=super[_0x84a04(0x5bd)]();return _0xdfa027[_0x84a04(0x2db)]=_0x426943=>this[_0x84a04(0x5ba)][_0x84a04(0x49a)](_0x426943),_0xdfa027;}async[_0x1a9c4c(0x38a)](){const _0x3dc8e0=_0x1a9c4c,_0x559818=await super['_init']();return this[_0x3dc8e0(0x337)](this[_0x3dc8e0(0x48d)][_0x3dc8e0(0x1e6)]((_0x17297c,_0x47d383)=>{const _0x5c2e9e=_0x3dc8e0;if(_0x17297c[_0x5c2e9e(0x219)]!==_0x5ee268[_0x5c2e9e(0x3cb)][_0x5c2e9e(0x31d)]||_0x47d383!=null&&_0x47d383[_0x5c2e9e(0x469)]||_0x47d383!=null&&_0x47d383['onlyLocal'])return;const _0x44ac56=_0x17297c[_0x5c2e9e(0x3e7)];if((_0x44ac56==null?void 0x0:_0x44ac56[_0x5c2e9e(0x22b)])!==this[_0x5c2e9e(0x447)])return;const _0x39bfac=_0x17297c,_0x2f3342=this['_compressMutationService'][_0x5c2e9e(0x1cb)]['fetchThroughInterceptors'](this['_compressMutationService'][_0x5c2e9e(0x1cb)][_0x5c2e9e(0x4fc)]()[_0x5c2e9e(0x2b1)])([_0x39bfac],null)||[_0x39bfac];this[_0x5c2e9e(0x35a)](_0x2f3342[0x0]);})),_0x559818;}},_0x19f7dc['SheetCollaborationEntity']=_0x57a706([_0x4608b9(0x3,_0x5ee268['Inject'](_0x5ee268[_0x1a9c4c(0x418)])),_0x4608b9(0x4,_0x5ee268[_0x1a9c4c(0x4b4)](_0x19f7dc[_0x1a9c4c(0x59e)])),_0x4608b9(0x5,_0x5ee268[_0x1a9c4c(0x4b4)](_0x437f93[_0x1a9c4c(0x47c)])),_0x4608b9(0x6,_0x5ee268[_0x1a9c4c(0x4b4)](_0x5ee268['LocaleService'])),_0x4608b9(0x7,_0x5ee268[_0x1a9c4c(0x4b4)](_0x437f93[_0x1a9c4c(0x53b)])),_0x4608b9(0x8,_0x5ee268[_0x1a9c4c(0x4b4)](_0x41bd09)),_0x4608b9(0x9,_0x5ee268['ILogService']),_0x4608b9(0xa,_0x5ee268[_0x1a9c4c(0x386)]),_0x4608b9(0xb,_0x56f90f[_0x1a9c4c(0x2cb)]),_0x4608b9(0xc,_0x5ee268[_0x1a9c4c(0x443)]),_0x4608b9(0xd,_0x5ee268[_0x1a9c4c(0x2c1)](_0x2c4a47))],_0x19f7dc['SheetCollaborationEntity']);var _0x595ada=Object[_0x1a9c4c(0x340)],_0x3af389=Object['getOwnPropertyDescriptor'],_0x19b861=(_0x2e0048,_0x14b717,_0x57a1f6,_0x318055)=>{const _0x232f34=_0x1a9c4c;for(var _0x310ae5=_0x318055>0x1?void 0x0:_0x318055?_0x3af389(_0x14b717,_0x57a1f6):_0x14b717,_0x2746e9=_0x2e0048[_0x232f34(0x4d8)]-0x1,_0x727711;_0x2746e9>=0x0;_0x2746e9--)(_0x727711=_0x2e0048[_0x2746e9])&&(_0x310ae5=(_0x318055?_0x727711(_0x14b717,_0x57a1f6,_0x310ae5):_0x727711(_0x310ae5))||_0x310ae5);return _0x318055&&_0x310ae5&&_0x595ada(_0x14b717,_0x57a1f6,_0x310ae5),_0x310ae5;},_0x6af9e4=(_0x171a3d,_0x3b2ded)=>(_0x3ad9b5,_0x337849)=>_0x3b2ded(_0x3ad9b5,_0x337849,_0x171a3d);_0x19f7dc['CollaborationController']=class extends _0x5ee268['RxDisposable']{constructor(_0x503604,_0x2b8897,_0x5e04f8){const _0x24c442=_0x1a9c4c;super(),_0x1328f6(this,_0x24c442(0x55b),new Map()),_0x1328f6(this,'_entityInit$',new _0x56990c[(_0x24c442(0x3be))]()),(this[_0x24c442(0x474)]=_0x503604,this[_0x24c442(0x42c)]=_0x2b8897,this[_0x24c442(0x535)]=_0x5e04f8,this[_0x24c442(0x38a)]());}[_0x1a9c4c(0x214)](){const _0x12eb36=_0x1a9c4c;super[_0x12eb36(0x214)](),this[_0x12eb36(0x55b)][_0x12eb36(0x506)](_0x389c10=>_0x389c10[_0x12eb36(0x214)]()),this['_entities']['clear']();}[_0x1a9c4c(0x372)](_0x574ab0){const _0x1fa16e=_0x1a9c4c;var _0x242dc1;return(_0x242dc1=this[_0x1fa16e(0x55b)][_0x1fa16e(0x54d)](_0x574ab0))!=null?_0x242dc1:null;}['getCollabEntity$'](_0x5c0d18){const _0x571983=_0x1a9c4c,_0x2e62a5=this[_0x571983(0x372)](_0x5c0d18);return _0x2e62a5?_0x56990c['of'](_0x2e62a5):this['_entityInit$'][_0x571983(0x246)](_0x2b56b2[_0x571983(0x2a1)](_0x3f187d=>_0x3f187d['unitID']===_0x5c0d18));}['_init'](){const _0x179dac=_0x1a9c4c;this['_univerInstanceService'][_0x179dac(0x2bb)](_0x5ee268[_0x179dac(0x2f7)][_0x179dac(0x498)])[_0x179dac(0x246)](_0x56990c['takeUntil'](this['dispose$']),_0x2b56b2[_0x179dac(0x244)](0x10))[_0x179dac(0x3a7)](async _0x5dfea6=>{const _0x5b3cfe=_0x179dac,_0x2cfade=_0x5dfea6[_0x5b3cfe(0x4ef)](),_0x1da15c=await this['_startCollaboration'](_0x2cfade,_0x69fde1[_0x5b3cfe(0x498)]);this[_0x5b3cfe(0x55b)][_0x5b3cfe(0x26c)](_0x2cfade,_0x1da15c);}),this[_0x179dac(0x535)][_0x179dac(0x2bb)](_0x5ee268['UniverInstanceType'][_0x179dac(0x1ec)])[_0x179dac(0x246)](_0x56990c[_0x179dac(0x1da)](this[_0x179dac(0x1f6)]),_0x2b56b2[_0x179dac(0x244)](0x10))[_0x179dac(0x246)](_0x2b56b2[_0x179dac(0x2a1)](_0x3cd9cd=>!_0x3cd9cd[_0x179dac(0x4ef)]()[_0x179dac(0x48b)]('__')))[_0x179dac(0x3a7)](async _0x251a7b=>{const _0x32cc07=_0x179dac,_0x45f05d=_0x251a7b[_0x32cc07(0x4ef)](),_0x55a693=await this[_0x32cc07(0x3f0)](_0x45f05d,_0x69fde1[_0x32cc07(0x1ec)]);this[_0x32cc07(0x55b)][_0x32cc07(0x26c)](_0x45f05d,_0x55a693);}),_0x56990c['merge'](this['_univerInstanceService'][_0x179dac(0x2da)](_0x5ee268['UniverInstanceType'][_0x179dac(0x498)]),this['_univerInstanceService'][_0x179dac(0x2da)](_0x5ee268[_0x179dac(0x2f7)][_0x179dac(0x1ec)]))[_0x179dac(0x246)](_0x56990c[_0x179dac(0x1da)](this[_0x179dac(0x1f6)]))[_0x179dac(0x3a7)](_0x5d532a=>{const _0x30baad=_0x179dac,_0x1b7118=_0x5d532a[_0x30baad(0x4ef)](),_0xcb9602=this['_entities'][_0x30baad(0x54d)](_0x1b7118);_0xcb9602&&(_0xcb9602[_0x30baad(0x214)](),this['_entities'][_0x30baad(0x1c8)](_0x1b7118));});}async['_startCollaboration'](_0x4f6afe,_0x5e2e9c){const _0x5931bc=_0x1a9c4c,_0x5715e3=await this[_0x5931bc(0x42c)][_0x5931bc(0x43f)](_0x4f6afe),_0x445afe=this['_injector'][_0x5931bc(0x2dd)](this['_getCtorByUniverType'](_0x5e2e9c),_0x4f6afe,_0x5e2e9c,_0x5715e3);return await _0x445afe[_0x5931bc(0x206)](),this[_0x5931bc(0x38d)][_0x5931bc(0x42d)](_0x445afe),_0x445afe;}[_0x1a9c4c(0x431)](_0x590f2a){const _0x1449d4=_0x1a9c4c;switch(_0x590f2a){case _0x69fde1[_0x1449d4(0x1ec)]:return _0x19f7dc['DocCollaborationEntity'];case _0x69fde1[_0x1449d4(0x498)]:return _0x19f7dc[_0x1449d4(0x1a8)];default:throw new Error(_0x1449d4(0x477)+_0x590f2a);}}},_0x19f7dc[_0x1a9c4c(0x554)]=_0x19b861([_0x6af9e4(0x0,_0x5ee268['Inject'](_0x5ee268['Injector'])),_0x6af9e4(0x1,_0x5ee268['Inject'](_0x19f7dc[_0x1a9c4c(0x569)])),_0x6af9e4(0x2,_0x5ee268[_0x1a9c4c(0x39a)])],_0x19f7dc['CollaborationController']);const _0x2878b5=[_0x1a9c4c(0x2e7),_0x1a9c4c(0x1ed),'verdancy600',_0x1a9c4c(0x412),'blue400',_0x1a9c4c(0x502)];class _0x94aa63 extends _0x5ee268['Disposable']{constructor(){const _0x10bd8c=_0x1a9c4c;super(...arguments),_0x1328f6(this,'_assignedColors',new Map()),_0x1328f6(this,_0x10bd8c(0x3e9),0x0);}[_0x1a9c4c(0x3ed)](_0x171816){const _0x5b900b=_0x1a9c4c;if(this[_0x5b900b(0x41e)]['has'](_0x171816))return this[_0x5b900b(0x41e)]['get'](_0x171816);const _0x25861e=_0x2878b5[this['_colorIndex']];return this[_0x5b900b(0x3e9)]=(this[_0x5b900b(0x3e9)]+0x1)%_0x2878b5[_0x5b900b(0x4d8)],this['_assignedColors'][_0x5b900b(0x26c)](_0x171816,_0x25861e),_0x25861e;}}var _0x6dc47c=Object[_0x1a9c4c(0x340)],_0x2ea146=Object['getOwnPropertyDescriptor'],_0x3a8818=(_0x5a59c5,_0x1aadca,_0x53ff4a,_0x23a133)=>{const _0x3115bf=_0x1a9c4c;for(var _0xc0bb97=_0x23a133>0x1?void 0x0:_0x23a133?_0x2ea146(_0x1aadca,_0x53ff4a):_0x1aadca,_0x192d38=_0x5a59c5[_0x3115bf(0x4d8)]-0x1,_0xa85561;_0x192d38>=0x0;_0x192d38--)(_0xa85561=_0x5a59c5[_0x192d38])&&(_0xc0bb97=(_0x23a133?_0xa85561(_0x1aadca,_0x53ff4a,_0xc0bb97):_0xa85561(_0xc0bb97))||_0xc0bb97);return _0x23a133&&_0xc0bb97&&_0x6dc47c(_0x1aadca,_0x53ff4a,_0xc0bb97),_0xc0bb97;},_0x4c485f=(_0xf03da3,_0x2f256c)=>(_0x530e90,_0x333481)=>_0x2f256c(_0x530e90,_0x333481,_0xf03da3);const _0x414a0d=0x12c,_0x510189=0x64;let _0x8070e6=class extends _0x5ee268['RxDisposable']{constructor(_0x1443df,_0x58e39a,_0x32d5a4,_0x250ef6,_0x211b53,_0x45c18b,_0x5f4642,_0x3df1d2,_0x1fce83){const _0x22fe29=_0x1a9c4c;super(),_0x1328f6(this,'_online',!0x1),_0x1328f6(this,_0x22fe29(0x38a),!0x1),_0x1328f6(this,_0x22fe29(0x49d),new _0x56990c[(_0x22fe29(0x3d3))](new Map())),_0x1328f6(this,_0x22fe29(0x2e4),this['_cursorInfo$']['asObservable']()),_0x1328f6(this,'_roomMembers$',new _0x56990c[(_0x22fe29(0x3d3))]([])),_0x1328f6(this,_0x22fe29(0x4c2),this['_roomMembers$'][_0x22fe29(0x246)](_0x56990c[_0x22fe29(0x54a)](_0x414a0d))),_0x1328f6(this,_0x22fe29(0x1d9),_0x5ee268[_0x22fe29(0x4da)](_0x302cb8=>{const _0x323bb1=_0x22fe29,_0x2062fb={'eventID':_0x437f93[_0x323bb1(0x2c5)][_0x323bb1(0x28d)],'data':{'unitID':this[_0x323bb1(0x447)],'memberID':this[_0x323bb1(0x29a)][_0x323bb1(0x3f2)](),'selection':_0x51fd6d(_0x302cb8)}};this[_0x323bb1(0x29a)][_0x323bb1(0x420)](_0x2062fb,this[_0x323bb1(0x447)]);},_0x510189)),(this['unitID']=_0x1443df,this['_session']=_0x58e39a,this[_0x22fe29(0x474)]=_0x32d5a4,this[_0x22fe29(0x4b1)]=_0x250ef6,this['_memberService']=_0x211b53,this[_0x22fe29(0x282)]=_0x45c18b,this[_0x22fe29(0x2df)]=_0x5f4642,this[_0x22fe29(0x535)]=_0x3df1d2,this[_0x22fe29(0x48d)]=_0x1fce83);}get[_0x1a9c4c(0x40a)](){const _0x1723b1=_0x1a9c4c;return this['_cursorInfo$'][_0x1723b1(0x2fc)]();}get[_0x1a9c4c(0x3a5)](){const _0x3b803c=_0x1a9c4c;return this['_roomMembers$'][_0x3b803c(0x2fc)]();}['dispose'](){const _0x3a1e2=_0x1a9c4c;super[_0x3a1e2(0x214)](),this[_0x3a1e2(0x49d)][_0x3a1e2(0x42d)](new Map()),this[_0x3a1e2(0x49d)][_0x3a1e2(0x30a)](),this[_0x3a1e2(0x3aa)][_0x3a1e2(0x42d)]([]),this[_0x3a1e2(0x3aa)]['complete']();}[_0x1a9c4c(0x206)](){const _0x2a7aa1=_0x1a9c4c;this[_0x2a7aa1(0x38a)]||(this['_init']=!0x0,this[_0x2a7aa1(0x29a)][_0x2a7aa1(0x539)][_0x2a7aa1(0x246)](_0x56990c[_0x2a7aa1(0x1da)](this['dispose$']))['subscribe'](_0x5e27c2=>{const _0x8a63ef=_0x2a7aa1;_0x5e27c2===_0x3477b6[_0x8a63ef(0x399)]?this[_0x8a63ef(0x3d1)]():this[_0x8a63ef(0x2a0)]();}),this[_0x2a7aa1(0x29a)]['event$'][_0x2a7aa1(0x246)](_0x56990c['takeUntil'](this[_0x2a7aa1(0x1f6)]))[_0x2a7aa1(0x3a7)](_0x30acb7=>{const _0x2d12a5=_0x2a7aa1,_0x5a1483=_0x30acb7[_0x2d12a5(0x3f9)];_0x5a1483===_0x437f93['CollaborationEvent']['UPDATE_CURSOR']&&this[_0x2d12a5(0x1ef)](_0x30acb7),_0x5a1483===_0x437f93[_0x2d12a5(0x2c5)][_0x2d12a5(0x288)]&&this['_onCursorDelete'](_0x30acb7);}),this['disposeWithMe'](this['_commandService'][_0x2a7aa1(0x1e6)](_0x37b69e=>{const _0x5a8531=_0x2a7aa1,_0x7a97d9=_0x37b69e['params'];_0x7a97d9!=null&&this[_0x5a8531(0x3bf)]&&_0x37b69e['id']===_0x45fa2b[_0x5a8531(0x26e)]['id']&&_0x7a97d9[_0x5a8531(0x22b)]===this[_0x5a8531(0x447)]&&_0x7a97d9[_0x5a8531(0x3b3)]===!0x1&&this['_updateLocalCursor'](_0x7a97d9['ranges']);})),this[_0x2a7aa1(0x282)]['collabCursorState$']['pipe'](_0x56990c[_0x2a7aa1(0x1da)](this['dispose$']))[_0x2a7aa1(0x3a7)](_0x4332ea=>{const _0x2ba33a=_0x2a7aa1;if((_0x4332ea==null?void 0x0:_0x4332ea[_0x2ba33a(0x447)])!==this[_0x2ba33a(0x447)])return;const _0x4802f6={'eventID':_0x437f93['CollaborationEvent'][_0x2ba33a(0x28d)],'data':_0x4332ea};this[_0x2ba33a(0x1ef)](_0x4802f6);}),this[_0x2a7aa1(0x337)](this['_commandService'][_0x2a7aa1(0x1e6)](_0x5abb7e=>{const _0x55a207=_0x2a7aa1;if(_0x5abb7e['params']==null)return;const _0x376b25=_0x5abb7e[_0x55a207(0x3e7)];if(_0x5abb7e['id']!==_0x45fa2b['RichTextEditingMutation']['id']||_0x376b25['unitId']!==this[_0x55a207(0x447)])return;const _0x263e4e={'id':_0x55a207(0x220),'params':_0x376b25},_0x16f877=this['cursorInfo'];for(const [_0x11e12b,_0x3a1b9b]of _0x16f877){const _0x1457b0={'id':_0x55a207(0x220),'params':{'unitId':this[_0x55a207(0x447)],'actions':null,'textRanges':_0x3a1b9b[_0x55a207(0x361)]}},_0x41dee6=this[_0x55a207(0x2df)][_0x55a207(0x24d)](_0x263e4e,_0x1457b0,!0x1);if(_0x437f93[_0x55a207(0x1ac)](_0x41dee6))throw _0x41dee6[_0x55a207(0x317)];_0x16f877['set'](_0x11e12b,{..._0x3a1b9b,'ranges':_0x41dee6[_0x55a207(0x2b9)][_0x55a207(0x3e7)][_0x55a207(0x29f)]});}queueMicrotask(()=>{const _0x55fbe7=_0x55a207;this[_0x55fbe7(0x49d)][_0x55fbe7(0x42d)](_0x16f877);});})));}[_0x1a9c4c(0x1ef)](_0xf4ef60){const _0x168153=_0x1a9c4c;var _0x56866d,_0x34c491;const {memberID:_0x38aad9,selection:_0x346f8a}=_0xf4ef60[_0x168153(0x5ac)],_0x22415d=_0x54df69(_0x346f8a),_0x4f75e0=(_0x34c491=(_0x56866d=this['_memberService'][_0x168153(0x4f1)](this[_0x168153(0x447)],_0x38aad9))==null?void 0x0:_0x56866d[_0x168153(0x32b)])!=null?_0x34c491:_0x168153(0x31a),_0x1e9e41={'color':this[_0x168153(0x4b1)][_0x168153(0x3ed)](_0x38aad9),'name':_0x4f75e0,'ranges':_0x22415d},_0x14b7f6=this['cursorInfo'];_0x14b7f6[_0x168153(0x26c)](_0x38aad9,_0x1e9e41),this[_0x168153(0x49d)]['next'](_0x14b7f6);}['_onCursorDelete'](_0x5ac8ba){const _0x3717d7=_0x1a9c4c,{memberID:_0x5e3416}=_0x5ac8ba[_0x3717d7(0x5ac)],_0x43d74b=this['cursorInfo'];_0x43d74b[_0x3717d7(0x1c8)](_0x5e3416),this[_0x3717d7(0x49d)]['next'](_0x43d74b);}[_0x1a9c4c(0x3d1)](){const _0x4ce580=_0x1a9c4c;var _0x3873c7;if(this['_online']=!0x0,((_0x3873c7=this[_0x4ce580(0x535)]['getFocusedUnit']())==null?void 0x0:_0x3873c7[_0x4ce580(0x4ef)]())!==this[_0x4ce580(0x447)])return;const _0x4bf9bf=this[_0x4ce580(0x474)]['get'](_0x45fa2b[_0x4ce580(0x3d2)])[_0x4ce580(0x378)]();Array['isArray'](_0x4bf9bf)&&_0x4bf9bf['length']>0x0&&this[_0x4ce580(0x1d9)](_0x4bf9bf);}[_0x1a9c4c(0x2a0)](){const _0x19b5bf=_0x1a9c4c;this[_0x19b5bf(0x3bf)]=!0x1;}};_0x8070e6=_0x3a8818([_0x4c485f(0x2,_0x5ee268[_0x1a9c4c(0x4b4)](_0x5ee268[_0x1a9c4c(0x418)])),_0x4c485f(0x3,_0x5ee268[_0x1a9c4c(0x4b4)](_0x94aa63)),_0x4c485f(0x4,_0x5ee268[_0x1a9c4c(0x4b4)](_0xd4878c)),_0x4c485f(0x5,_0x5ee268[_0x1a9c4c(0x4b4)](_0x3c54ae)),_0x4c485f(0x6,_0x437f93[_0x1a9c4c(0x1c7)]),_0x4c485f(0x7,_0x5ee268[_0x1a9c4c(0x39a)]),_0x4c485f(0x8,_0x5ee268[_0x1a9c4c(0x386)])],_0x8070e6);var _0x1b4e77=Object[_0x1a9c4c(0x340)],_0x4b8b1c=Object[_0x1a9c4c(0x541)],_0x3c3668=(_0x134244,_0x5105f6,_0x4075b3,_0x235991)=>{for(var _0x4b53f6=_0x235991>0x1?void 0x0:_0x235991?_0x4b8b1c(_0x5105f6,_0x4075b3):_0x5105f6,_0x44983d=_0x134244['length']-0x1,_0x5a8212;_0x44983d>=0x0;_0x44983d--)(_0x5a8212=_0x134244[_0x44983d])&&(_0x4b53f6=(_0x235991?_0x5a8212(_0x5105f6,_0x4075b3,_0x4b53f6):_0x5a8212(_0x4b53f6))||_0x4b53f6);return _0x235991&&_0x4b53f6&&_0x1b4e77(_0x5105f6,_0x4075b3,_0x4b53f6),_0x4b53f6;},_0x60faa2=(_0x43c1b8,_0x259500)=>(_0x5e8d28,_0x38cde2)=>_0x259500(_0x5e8d28,_0x38cde2,_0x43c1b8);const _0x13a139=0x12c,_0x1896ce=0x64,_0x12cad7=()=>{let _0x43509a=[],_0x237665=!0x1;return _0x282584=>{_0x43509a['push'](_0x282584),_0x237665||(_0x237665=!0x0,setTimeout(()=>{_0x43509a['forEach'](_0x13fa8c=>_0x13fa8c()),_0x43509a=[],_0x237665=!0x1;}));};};let _0x37929f=class extends _0x5ee268['RxDisposable']{constructor(_0x250d85,_0x220f79,_0x19e773,_0x5664ef,_0x4c16a3,_0x43f89d,_0x262712,_0xf986cb){const _0x525607=_0x1a9c4c;super(),_0x1328f6(this,_0x525607(0x3bf),!0x1),_0x1328f6(this,_0x525607(0x38a),!0x1),_0x1328f6(this,'_cursorInfo$',new _0x56990c['BehaviorSubject'](new Map())),_0x1328f6(this,_0x525607(0x2e4),this[_0x525607(0x49d)][_0x525607(0x560)]()),_0x1328f6(this,_0x525607(0x3aa),new _0x56990c[(_0x525607(0x3d3))]([])),_0x1328f6(this,_0x525607(0x4c2),this[_0x525607(0x3aa)]['pipe'](_0x56990c[_0x525607(0x54a)](_0x13a139))),_0x1328f6(this,_0x525607(0x1d9),_0x5ee268[_0x525607(0x4da)]((_0x4b528b,_0x86e066)=>{const _0x4ca481=_0x525607,_0x3fb862={'eventID':_0x437f93[_0x4ca481(0x2c5)][_0x4ca481(0x28d)],'data':{'unitID':this['unitID'],'memberID':this[_0x4ca481(0x29a)][_0x4ca481(0x3f2)](),'selection':_0x5cdf78[_0x4ca481(0x39d)](_0x4b528b,_0x86e066[_0x4ca481(0x314)])}};this[_0x4ca481(0x29a)][_0x4ca481(0x420)](_0x3fb862,this[_0x4ca481(0x447)]);},_0x1896ce)),(this[_0x525607(0x447)]=_0x250d85,this['_session']=_0x220f79,this[_0x525607(0x474)]=_0x19e773,this[_0x525607(0x4b1)]=_0x5664ef,this['_memberService']=_0x4c16a3,this[_0x525607(0x535)]=_0x43f89d,this[_0x525607(0x48d)]=_0x262712,this[_0x525607(0x36a)]=_0xf986cb);}get[_0x1a9c4c(0x40a)](){const _0x4a0bc7=_0x1a9c4c;return this['_cursorInfo$'][_0x4a0bc7(0x2fc)]();}get[_0x1a9c4c(0x3a5)](){const _0x318014=_0x1a9c4c;return this['_roomMembers$'][_0x318014(0x2fc)]();}[_0x1a9c4c(0x214)](){const _0x2c4f6d=_0x1a9c4c;super['dispose'](),this[_0x2c4f6d(0x49d)][_0x2c4f6d(0x42d)](new Map()),this[_0x2c4f6d(0x49d)][_0x2c4f6d(0x30a)](),this[_0x2c4f6d(0x3aa)][_0x2c4f6d(0x42d)]([]),this[_0x2c4f6d(0x3aa)][_0x2c4f6d(0x30a)]();}[_0x1a9c4c(0x206)](){const _0x1326f3=_0x1a9c4c;this[_0x1326f3(0x38a)]||(this[_0x1326f3(0x38a)]=!0x0,this['_session'][_0x1326f3(0x539)][_0x1326f3(0x246)](_0x56990c['takeUntil'](this[_0x1326f3(0x1f6)]))[_0x1326f3(0x3a7)](_0xa909b3=>{const _0x3c5641=_0x1326f3;_0xa909b3===_0x3477b6[_0x3c5641(0x399)]?this[_0x3c5641(0x3d1)]():this[_0x3c5641(0x2a0)]();}),this[_0x1326f3(0x29a)]['event$'][_0x1326f3(0x246)](_0x56990c[_0x1326f3(0x1da)](this[_0x1326f3(0x1f6)]))[_0x1326f3(0x3a7)](_0x159bea=>{const _0x6c6528=_0x1326f3,_0x24e48=_0x159bea[_0x6c6528(0x3f9)];_0x24e48===_0x437f93[_0x6c6528(0x2c5)][_0x6c6528(0x28d)]&&this[_0x6c6528(0x1ef)](_0x159bea),_0x24e48===_0x437f93[_0x6c6528(0x2c5)][_0x6c6528(0x288)]&&this[_0x6c6528(0x356)](_0x159bea);}),this[_0x1326f3(0x3e0)](),this[_0x1326f3(0x337)](this['_commandService']['onCommandExecuted'](_0x912258=>{const _0x2a6ef5=_0x1326f3;if(this['_online']&&_0x912258['id']===_0x149ec5['SetSelectionsOperation']['id']&&_0x912258[_0x2a6ef5(0x3e7)]['unitId']===this[_0x2a6ef5(0x447)]){const _0x534ee3=_0x912258['params'];this[_0x2a6ef5(0x1d9)](_0x534ee3['subUnitId'],_0x534ee3[_0x2a6ef5(0x496)][0x0]);}})));}['_onCursorUpdate'](_0x594347){const _0x261fb1=_0x1a9c4c;var _0xf25125,_0x3c98c1;const {memberID:_0x30ecee,selection:_0x2f44be}=_0x594347['data'],{sheetName:_0x2f746f,range:_0x2bf6e0}=_0x5cdf78[_0x261fb1(0x1bd)](_0x2f44be),_0x572e3c={'name':(_0x3c98c1=(_0xf25125=this['_memberService']['getMember'](this[_0x261fb1(0x447)],_0x30ecee))==null?void 0x0:_0xf25125[_0x261fb1(0x32b)])!=null?_0x3c98c1:_0x261fb1(0x31a),'range':this[_0x261fb1(0x1ff)](_0x2f746f,_0x2bf6e0),'sheetID':_0x2f746f,'color':this['_colorAssignService'][_0x261fb1(0x3ed)](_0x30ecee),'selection':_0x2f44be},_0x189440=this[_0x261fb1(0x40a)];_0x189440[_0x261fb1(0x26c)](_0x30ecee,_0x572e3c),this['_cursorInfo$'][_0x261fb1(0x42d)](_0x189440);}[_0x1a9c4c(0x356)](_0x58c5db){const _0x258c44=_0x1a9c4c,{memberID:_0x165077}=_0x58c5db['data'],_0x27e250=this[_0x258c44(0x40a)];_0x27e250['delete'](_0x165077),this[_0x258c44(0x49d)][_0x258c44(0x42d)](_0x27e250);}[_0x1a9c4c(0x1ff)](_0x1d5de6,_0x56ea8f){const _0x1e258e=_0x1a9c4c;var _0x3527ac,_0x3264af;const _0x65eb42=(_0x3264af=(_0x3527ac=this[_0x1e258e(0x535)]['getUniverSheetInstance'](this[_0x1e258e(0x447)]))==null?void 0x0:_0x3527ac[_0x1e258e(0x265)](_0x1d5de6))==null?void 0x0:_0x3264af[_0x1e258e(0x272)]();return(_0x65eb42==null?void 0x0:_0x65eb42[_0x1e258e(0x2bf)](_0x11df40=>_0x5ee268[_0x1e258e(0x4b9)]['contains'](_0x11df40,_0x56ea8f)))||_0x56ea8f;}[_0x1a9c4c(0x3e0)](){const _0x31cc98=_0x1a9c4c,_0x28765a=new _0x5ee268[(_0x31cc98(0x571))](),_0x1a50f7=_0x12cad7(),_0x382765=()=>{const _0x49be14=_0x31cc98;_0x28765a['dispose']();const _0x33fb9a=(_0x2b1809,_0x27382b,_0x256d35,_0x3da34b)=>{const _0x6f24c2=_0x2a06;let _0x11dc34=[];switch(_0x2b1809['id']){case _0x149ec5[_0x6f24c2(0x4df)]['DeleteRangeMoveLeftCommandId']:{_0x11dc34=_0x149ec5[_0x6f24c2(0x383)](_0x2b1809,_0x3da34b);break;}case _0x149ec5[_0x6f24c2(0x4df)][_0x6f24c2(0x294)]:{_0x11dc34=_0x149ec5['handleDeleteRangeMoveUp'](_0x2b1809,_0x3da34b);break;}case _0x149ec5[_0x6f24c2(0x4df)]['InsertColCommandId']:{_0x11dc34=_0x149ec5[_0x6f24c2(0x289)](_0x2b1809,_0x3da34b);break;}case _0x149ec5[_0x6f24c2(0x4df)]['InsertRangeMoveDownCommandId']:{_0x11dc34=_0x149ec5[_0x6f24c2(0x480)](_0x2b1809,_0x3da34b);break;}case _0x149ec5[_0x6f24c2(0x4df)]['InsertRangeMoveRightCommandId']:{_0x11dc34=_0x149ec5[_0x6f24c2(0x53a)](_0x2b1809,_0x3da34b);break;}case _0x149ec5[_0x6f24c2(0x4df)]['InsertRowCommandId']:{_0x11dc34=_0x149ec5['handleInsertRow'](_0x2b1809,_0x3da34b);break;}case _0x149ec5[_0x6f24c2(0x4df)][_0x6f24c2(0x1bb)]:{_0x11dc34=_0x149ec5[_0x6f24c2(0x4cd)](_0x2b1809,_0x3da34b);break;}case _0x149ec5['EffectRefRangId'][_0x6f24c2(0x1f1)]:{_0x11dc34=_0x149ec5[_0x6f24c2(0x323)](_0x2b1809,_0x3da34b);break;}case _0x149ec5[_0x6f24c2(0x4df)]['RemoveRowCommandId']:{_0x11dc34=_0x149ec5[_0x6f24c2(0x1e8)](_0x2b1809,_0x3da34b);break;}}const _0x5410e6=_0x149ec5[_0x6f24c2(0x41a)](_0x11dc34,_0x3da34b),_0x3a1b94=this[_0x6f24c2(0x40a)][_0x6f24c2(0x54d)](_0x27382b);if(_0x3a1b94&&_0x5410e6){const _0x15de22={..._0x3a1b94,'range':_0x5410e6};this['cursorInfo']['set'](_0x27382b,_0x15de22),_0x1a50f7(()=>{const _0x55bb0d=_0x6f24c2,_0x121b8a=this[_0x55bb0d(0x36a)][_0x55bb0d(0x40c)](_0x5410e6,_0x34ddd9=>(_0x121b8a[_0x55bb0d(0x214)](),_0x33fb9a(_0x34ddd9,_0x27382b,_0x256d35,_0x5410e6)));_0x28765a['add'](_0x121b8a);});}return{'redos':[],'undos':[]};};this[_0x49be14(0x40a)][_0x49be14(0x506)]((_0x16f081,_0x341825)=>{const _0x18b9fc=_0x49be14,{range:_0x402610,sheetID:_0x25d032}=_0x16f081,_0x31c265=this[_0x18b9fc(0x36a)][_0x18b9fc(0x40c)](_0x402610,_0x3ab112=>(_0x31c265[_0x18b9fc(0x214)](),_0x33fb9a(_0x3ab112,_0x341825,_0x25d032,_0x402610)));_0x28765a['add'](_0x31c265);});};this[_0x31cc98(0x337)](_0x5ee268[_0x31cc98(0x4c5)](this[_0x31cc98(0x49d)][_0x31cc98(0x3a7)](()=>{_0x382765();})));}[_0x1a9c4c(0x3d1)](){const _0x385bfd=_0x1a9c4c;var _0x1b55b6,_0x18d354;if(this['_online']=!0x0,((_0x1b55b6=this[_0x385bfd(0x535)][_0x385bfd(0x1b2)]())==null?void 0x0:_0x1b55b6['getUnitId']())!==this[_0x385bfd(0x447)])return;const _0x4b91ab=(_0x18d354=this['_injector'][_0x385bfd(0x54d)](_0x149ec5['SheetsSelectionsService'])[_0x385bfd(0x20f)]())==null?void 0x0:_0x18d354[0x0],_0x10c66e=this[_0x385bfd(0x535)][_0x385bfd(0x38b)](_0x5ee268[_0x385bfd(0x2f7)]['UNIVER_SHEET'])[_0x385bfd(0x267)]();_0x4b91ab&&_0x10c66e&&this[_0x385bfd(0x1d9)](_0x10c66e[_0x385bfd(0x396)](),_0x4b91ab);}[_0x1a9c4c(0x2a0)](){const _0x105a97=_0x1a9c4c;this[_0x105a97(0x3bf)]=!0x1;}};_0x37929f=_0x3c3668([_0x60faa2(0x2,_0x5ee268['Inject'](_0x5ee268[_0x1a9c4c(0x418)])),_0x60faa2(0x3,_0x5ee268['Inject'](_0x94aa63)),_0x60faa2(0x4,_0x5ee268['Inject'](_0xd4878c)),_0x60faa2(0x5,_0x5ee268[_0x1a9c4c(0x39a)]),_0x60faa2(0x6,_0x5ee268[_0x1a9c4c(0x386)]),_0x60faa2(0x7,_0x5ee268[_0x1a9c4c(0x4b4)](_0x149ec5[_0x1a9c4c(0x45a)]))],_0x37929f);var _0x11fab1=Object[_0x1a9c4c(0x340)],_0x1d54bd=Object[_0x1a9c4c(0x541)],_0x50955c=(_0x29cea2,_0x5bb5eb,_0x2e9b2e,_0x44b51c)=>{const _0x5d68d9=_0x1a9c4c;for(var _0x5535fa=_0x44b51c>0x1?void 0x0:_0x44b51c?_0x1d54bd(_0x5bb5eb,_0x2e9b2e):_0x5bb5eb,_0x2f9f1d=_0x29cea2[_0x5d68d9(0x4d8)]-0x1,_0x5b7014;_0x2f9f1d>=0x0;_0x2f9f1d--)(_0x5b7014=_0x29cea2[_0x2f9f1d])&&(_0x5535fa=(_0x44b51c?_0x5b7014(_0x5bb5eb,_0x2e9b2e,_0x5535fa):_0x5b7014(_0x5535fa))||_0x5535fa);return _0x44b51c&&_0x5535fa&&_0x11fab1(_0x5bb5eb,_0x2e9b2e,_0x5535fa),_0x5535fa;},_0x154daf=(_0x475466,_0xba8541)=>(_0x5ba3ed,_0x20673f)=>_0xba8541(_0x5ba3ed,_0x20673f,_0x475466);let _0x48a722=class extends _0x5ee268[_0x1a9c4c(0x4b2)]{constructor(_0x5299b7,_0x293a50,_0x38cc51){const _0x314e6d=_0x1a9c4c;super(),_0x1328f6(this,'_entities',new Map()),_0x1328f6(this,_0x314e6d(0x38d),new _0x56990c['Subject']()),(this[_0x314e6d(0x535)]=_0x5299b7,this['_injector']=_0x293a50,this[_0x314e6d(0x42c)]=_0x38cc51,this[_0x314e6d(0x38a)]());}['dispose'](){const _0x3fb8bd=_0x1a9c4c;super[_0x3fb8bd(0x214)](),this['_entityInit$'][_0x3fb8bd(0x30a)](),this['_entities']['forEach'](_0x116c0c=>_0x116c0c[_0x3fb8bd(0x214)]());}[_0x1a9c4c(0x5b5)](_0x567121){const _0x5c76c8=_0x1a9c4c;return this['_entities'][_0x5c76c8(0x252)](_0x567121)?this[_0x5c76c8(0x55b)][_0x5c76c8(0x54d)](_0x567121)['cursorInfo$']:this[_0x5c76c8(0x38d)][_0x5c76c8(0x246)](_0x56990c[_0x5c76c8(0x2a1)](_0x1d27ad=>_0x1d27ad[_0x5c76c8(0x447)]===_0x567121),_0x56990c['switchMap'](_0x50163f=>_0x50163f[_0x5c76c8(0x2e4)]));}['_init'](){const _0x2fc95b=_0x1a9c4c;this[_0x2fc95b(0x535)][_0x2fc95b(0x2bb)](_0x5ee268['UniverInstanceType'][_0x2fc95b(0x498)])['pipe'](_0x56990c['takeUntil'](this[_0x2fc95b(0x1f6)]))[_0x2fc95b(0x3a7)](async _0x3f4f54=>{const _0x488dd5=_0x2fc95b,_0x3ee0cc=_0x3f4f54[_0x488dd5(0x4ef)](),_0x8bacf4=await this[_0x488dd5(0x56c)](_0x3ee0cc);this[_0x488dd5(0x38d)][_0x488dd5(0x42d)](_0x8bacf4),this[_0x488dd5(0x55b)]['set'](_0x3ee0cc,_0x8bacf4);}),this[_0x2fc95b(0x535)][_0x2fc95b(0x2bb)](_0x5ee268[_0x2fc95b(0x2f7)][_0x2fc95b(0x1ec)])[_0x2fc95b(0x246)](_0x56990c[_0x2fc95b(0x1da)](this[_0x2fc95b(0x1f6)]))[_0x2fc95b(0x246)](_0x56990c[_0x2fc95b(0x2a1)](_0xbb8d1a=>!_0xbb8d1a['getUnitId']()[_0x2fc95b(0x48b)]('__')))['subscribe'](async _0x20e6cd=>{const _0x138a6a=_0x2fc95b,_0x196478=_0x20e6cd[_0x138a6a(0x4ef)](),_0x2303ed=await this[_0x138a6a(0x39b)](_0x196478);this[_0x138a6a(0x38d)][_0x138a6a(0x42d)](_0x2303ed),this['_entities'][_0x138a6a(0x26c)](_0x196478,_0x2303ed);}),_0x56990c[_0x2fc95b(0x1fd)](this[_0x2fc95b(0x535)][_0x2fc95b(0x2da)](_0x5ee268[_0x2fc95b(0x2f7)][_0x2fc95b(0x1ec)]),this['_univerInstanceService']['getTypeOfUnitDisposed$'](_0x5ee268[_0x2fc95b(0x2f7)][_0x2fc95b(0x498)]))['pipe'](_0x56990c['takeUntil'](this[_0x2fc95b(0x1f6)]))[_0x2fc95b(0x3a7)](_0x360717=>{const _0x5e1180=_0x2fc95b,_0x3772ee=_0x360717[_0x5e1180(0x4ef)](),_0xa00555=this[_0x5e1180(0x55b)][_0x5e1180(0x54d)](_0x3772ee);_0xa00555&&(_0xa00555[_0x5e1180(0x214)](),this['_entities'][_0x5e1180(0x1c8)](_0x3772ee));});}async[_0x1a9c4c(0x56c)](_0x38f76d){const _0x49886e=_0x1a9c4c,_0x5e3fc1=await this[_0x49886e(0x42c)][_0x49886e(0x43f)](_0x38f76d),_0x4d63b3=this[_0x49886e(0x474)][_0x49886e(0x2dd)](_0x37929f,_0x38f76d,_0x5e3fc1);return _0x4d63b3[_0x49886e(0x206)](),_0x4d63b3;}async[_0x1a9c4c(0x39b)](_0x576653){const _0x7e609=_0x1a9c4c,_0x41bd13=await this[_0x7e609(0x42c)]['requireSession'](_0x576653),_0x23ceca=this[_0x7e609(0x474)][_0x7e609(0x2dd)](_0x8070e6,_0x576653,_0x41bd13);return _0x23ceca['init'](),_0x23ceca;}};_0x48a722=_0x50955c([_0x154daf(0x0,_0x5ee268['IUniverInstanceService']),_0x154daf(0x1,_0x5ee268[_0x1a9c4c(0x4b4)](_0x5ee268[_0x1a9c4c(0x418)])),_0x154daf(0x2,_0x5ee268[_0x1a9c4c(0x4b4)](_0x19f7dc[_0x1a9c4c(0x569)]))],_0x48a722);const _0x7126f0=0x14,_0x4e17f6=0xc8,_0x2b09ad=0x4,_0x4742e2=0x5;function _0x38d117(_0x556550,_0x4b53a2){const _0x3f1d1b=_0x1a9c4c;let {radius:_0x1d04ae,width:_0x2ae16a,height:_0x2a390f}=_0x4b53a2;_0x1d04ae=_0x1d04ae!=null?_0x1d04ae:0x0,_0x2ae16a=_0x2ae16a!=null?_0x2ae16a:0x1e,_0x2a390f=_0x2a390f!=null?_0x2a390f:0x1e;let _0x17f8d3=0x0,_0xd4cb19=0x0,_0x2147d5=0x0;_0x17f8d3=_0xd4cb19=_0x2147d5=Math[_0x3f1d1b(0x4dd)](_0x1d04ae,_0x2ae16a/0x2,_0x2a390f/0x2),_0x556550[_0x3f1d1b(0x4ce)](),_0x556550[_0x3f1d1b(0x4dc)](_0x17f8d3,0x0),_0x556550[_0x3f1d1b(0x1f8)](_0x2ae16a-_0xd4cb19,0x0),_0x556550[_0x3f1d1b(0x1fc)](_0x2ae16a-_0xd4cb19,_0xd4cb19,_0xd4cb19,Math['PI']*0x3/0x2,0x0,!0x1),_0x556550['lineTo'](_0x2ae16a,_0x2a390f-_0x2147d5),_0x556550[_0x3f1d1b(0x1fc)](_0x2ae16a-_0x2147d5,_0x2a390f-_0x2147d5,_0x2147d5,0x0,Math['PI']/0x2,!0x1),_0x556550[_0x3f1d1b(0x1f8)](0x0,_0x2a390f),_0x556550[_0x3f1d1b(0x1f8)](0x0,_0x17f8d3),_0x556550['arc'](_0x17f8d3,_0x17f8d3,_0x17f8d3,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x556550[_0x3f1d1b(0x3cf)](),_0x4b53a2['fill']&&(_0x556550[_0x3f1d1b(0x401)](),_0x556550[_0x3f1d1b(0x3c9)]=_0x4b53a2[_0x3f1d1b(0x31c)],_0x4b53a2[_0x3f1d1b(0x25c)]===_0x3f1d1b(0x392)?_0x556550['fill'](_0x3f1d1b(0x392)):_0x556550[_0x3f1d1b(0x31c)](),_0x556550[_0x3f1d1b(0x33e)]());}class _0x201b68 extends _0x454685[_0x1a9c4c(0x588)]{constructor(_0x35ebaf,_0xae24b4){const _0x4776b1=_0x1a9c4c;super(_0x35ebaf,_0xae24b4),_0x1328f6(this,'color'),_0x1328f6(this,'text'),(this['color']=_0xae24b4==null?void 0x0:_0xae24b4[_0x4776b1(0x456)],this[_0x4776b1(0x475)]=_0xae24b4==null?void 0x0:_0xae24b4[_0x4776b1(0x475)]);}static['drawWith'](_0x477d11,_0x48d759){const _0x33c03f=_0x1a9c4c,{text:_0x1c69e9,color:_0x37b5d8}=_0x48d759;_0x477d11['save'](),_0x477d11[_0x33c03f(0x5d0)]=_0x33c03f(0x3c2);const _0x295008=_0x477d11[_0x33c03f(0x34f)](_0x1c69e9)[_0x33c03f(0x228)],_0x6828bc=Math['min'](_0x295008+0x2*_0x2b09ad,_0x4e17f6);_0x38d117(_0x477d11,{'height':_0x7126f0,'radius':0x4,'width':_0x6828bc,'fill':_0x37b5d8,'evented':!0x1}),_0x477d11[_0x33c03f(0x3c9)]=_0x33c03f(0x27b);const _0x5166dd=_0x2b09ad,_0x564324=_0x7126f0-_0x4742e2,_0x42f679=_0x4e17f6-0x2*_0x2b09ad;if(_0x295008>_0x42f679){let _0x1c29f0='',_0x471b86=0x0;for(const _0x45fb0e of _0x1c69e9){const _0x2b275b=_0x477d11[_0x33c03f(0x34f)](_0x45fb0e)['width'];if(_0x471b86+_0x2b275b<=_0x42f679-_0x477d11[_0x33c03f(0x34f)](_0x33c03f(0x38c))['width'])_0x1c29f0+=_0x45fb0e,_0x471b86+=_0x2b275b;else{_0x1c29f0+='...';break;}}_0x477d11[_0x33c03f(0x1b0)](_0x1c29f0,_0x5166dd,_0x564324);}else _0x477d11['fillText'](_0x1c69e9,_0x5166dd,_0x564324);_0x477d11[_0x33c03f(0x33e)]();}['_draw'](_0x5d6d2c){const _0x255042=_0x1a9c4c;_0x201b68[_0x255042(0x23c)](_0x5d6d2c,this);}}const _0x4c467d=_0x1a9c4c(0x1ea),_0x3c17bb=_0x1a9c4c(0x3da),_0x58a545=_0x1a9c4c(0x579),_0x3bb404=0x6,_0x49ee83=1.5,_0x628a24=0x4,_0x31bcfc=1.5,_0x5e3069='rgba(255,\x20255,\x20255,\x200.01)';class _0x5cf0e4{constructor(_0x4100d0,_0x135907,_0x38ded8,_0x46b90a){const _0x27bc64=_0x1a9c4c;_0x1328f6(this,_0x27bc64(0x3df),[]),_0x1328f6(this,_0x27bc64(0x1b4),null),_0x1328f6(this,_0x27bc64(0x5a6),null),_0x1328f6(this,'_anchorDot',null),_0x1328f6(this,_0x27bc64(0x45e),null),_0x1328f6(this,_0x27bc64(0x405),null),(this[_0x27bc64(0x403)]=_0x4100d0,this[_0x27bc64(0x1ab)]=_0x135907,this[_0x27bc64(0x44a)]=_0x38ded8,this['_document']=_0x46b90a,this['_render']());}set['_hover'](_0x1abe6b){const _0x1dcf2d=_0x1a9c4c;_0x1abe6b?(this[_0x1dcf2d(0x27d)]&&this[_0x1dcf2d(0x27d)]['hide'](),this[_0x1dcf2d(0x5a6)]&&this[_0x1dcf2d(0x5a6)][_0x1dcf2d(0x1c3)]()):(this['_anchorDot']&&this[_0x1dcf2d(0x27d)][_0x1dcf2d(0x1c3)](),this[_0x1dcf2d(0x5a6)]&&this[_0x1dcf2d(0x5a6)][_0x1dcf2d(0x479)]());}[_0x1a9c4c(0x214)](){const _0x1c8fc3=_0x1a9c4c;for(const _0x480b83 of this[_0x1c8fc3(0x3df)])_0x480b83[_0x1c8fc3(0x214)]();this['_textBubble']&&this[_0x1c8fc3(0x5a6)][_0x1c8fc3(0x214)](),this[_0x1c8fc3(0x27d)]&&this['_anchorDot'][_0x1c8fc3(0x214)](),this[_0x1c8fc3(0x1b4)]&&this['_anchor'][_0x1c8fc3(0x214)](),this['_eventUnsubscribe']&&this[_0x1c8fc3(0x405)]();}[_0x1a9c4c(0x39e)](){const _0x5a5ddc=_0x1a9c4c;var _0x302d0e;const {_docSkeleton:_0x22176d,_document:_0x29ec70}=this,{color:_0x3b0e54,name:_0x29cd19,ranges:_0xb76f1d}=this[_0x5a5ddc(0x403)],_0x1b1e71=_0x29ec70[_0x5a5ddc(0x1f4)](),{docsLeft:_0x47fede,docsTop:_0x482f99}=_0x1b1e71,_0x4fac4b=new _0x2d522a[(_0x5a5ddc(0x307))](_0x1b1e71,_0x22176d);for(const {startOffset:_0x341e91,endOffset:_0x29ae0b,collapsed:_0x4d959b,isActive:_0x20d8f0}of _0xb76f1d){const _0xda7fb=_0x22176d[_0x5a5ddc(0x3e8)](_0x341e91),_0x2e3a4e=_0x22176d['findNodePositionByCharIndex'](_0x29ae0b);if(_0x20d8f0){const {contentBoxPointGroup:_0x15fead}=_0x4fac4b[_0x5a5ddc(0x305)](_0x2e3a4e,_0x2e3a4e);if(_0x15fead[_0x5a5ddc(0x4d8)]===0x0)continue;this['_drawAnchor'](_0x3b0e54,_0x15fead,_0x47fede,_0x482f99,_0x29cd19),this[_0x5a5ddc(0x405)]=this[_0x5a5ddc(0x565)]();}if(!_0x4d959b&&_0xda7fb&&_0x2e3a4e){if(_0x2d522a[_0x5a5ddc(0x536)](_0xda7fb,_0x2e3a4e)){const _0x111a39=new _0x2d522a['NodePositionConvertToRectRange'](_0x1b1e71,_0x22176d),{pointGroup:_0x302b2b}=(_0x302d0e=_0x111a39['getRangePointData'](_0xda7fb,_0x2e3a4e))!=null?_0x302d0e:{};if(_0x302b2b==null||_0x302b2b[_0x5a5ddc(0x4d8)]===0x0)continue;this['_drawRectRange'](_0x3b0e54,_0x302b2b,_0x47fede,_0x482f99);}else{const {contentBoxPointGroup:_0x26bff9}=_0x4fac4b[_0x5a5ddc(0x305)](_0xda7fb,_0x2e3a4e);if(_0x26bff9[_0x5a5ddc(0x4d8)]===0x0)continue;this[_0x5a5ddc(0x2fd)](_0x3b0e54,_0x26bff9,_0x47fede,_0x482f99);}}}}['_drawAnchor'](_0x49774f,_0x82c8c6,_0x2f5e17,_0x1eec03,_0x4b7336){const _0x50e620=_0x1a9c4c,_0x223bc0=this[_0x50e620(0x542)](_0x82c8c6),{left:_0x3f59ac,top:_0x287838,height:_0x47ccd5}=_0x223bc0,_0x1f0269=this[_0x50e620(0x360)](),_0x27940d=_0x31bcfc/_0x1f0269,_0x25eb1a=new _0x454685['Rect'](_0x4c467d+_0x5ee268[_0x50e620(0x277)][_0x50e620(0x58b)](_0x3bb404),{'left':_0x3f59ac+_0x2f5e17-_0x27940d,'top':_0x287838+_0x1eec03,'height':_0x47ccd5,'width':_0x49ee83,'fill':_0x49774f||_0x454685[_0x50e620(0x3bc)](_0x5ee268['COLORS']['black'],0x0),'strokeWidth':_0x27940d,'stroke':_0x5e3069,'evented':!0x0});this[_0x50e620(0x1b4)]=_0x25eb1a,this[_0x50e620(0x1ab)][_0x50e620(0x4c4)](_0x25eb1a,_0x2d522a[_0x50e620(0x545)]);const _0x42c688=new _0x454685[(_0x50e620(0x59c))](_0x4c467d+_0x5ee268[_0x50e620(0x277)][_0x50e620(0x58b)](_0x3bb404),{'left':_0x3f59ac+_0x2f5e17-_0x27940d,'top':_0x287838+_0x1eec03-_0x628a24/0x2,'height':_0x628a24,'width':_0x628a24,'fill':_0x49774f||_0x454685['getColor'](_0x5ee268['COLORS']['black'],0x0),'strokeWidth':0x0,'stroke':_0x49774f||_0x454685['getColor'](_0x5ee268['COLORS'][_0x50e620(0x226)],0x0),'evented':!0x1});this[_0x50e620(0x27d)]=_0x42c688,this[_0x50e620(0x1ab)][_0x50e620(0x4c4)](_0x42c688,_0x2d522a[_0x50e620(0x545)]);const _0x4db92f=new _0x201b68(_0x4c467d+_0x5ee268['Tools']['generateRandomId'](_0x3bb404),{'left':_0x3f59ac+_0x2f5e17-_0x27940d,'top':_0x287838+_0x1eec03-_0x7126f0,'text':_0x4b7336,'color':_0x49774f});this[_0x50e620(0x5a6)]=_0x4db92f,this[_0x50e620(0x1ab)]['addObject'](_0x4db92f,_0x2d522a[_0x50e620(0x545)]),this[_0x50e620(0x3d6)]=!0x1;}[_0x1a9c4c(0x565)](){const _0x51728e=_0x1a9c4c,_0x4e48f0=this[_0x51728e(0x1b4)][_0x51728e(0x210)]['subscribeEvent'](()=>{this['_hover']=!0x0;}),_0x589b9d=this[_0x51728e(0x1b4)][_0x51728e(0x395)][_0x51728e(0x2eb)](()=>{const _0x4e0814=_0x51728e;this[_0x4e0814(0x45e)]&&clearTimeout(this[_0x4e0814(0x45e)]),this[_0x4e0814(0x45e)]=setTimeout(()=>{const _0x2c0bfd=_0x4e0814;this[_0x2c0bfd(0x3d6)]=!0x1;},0x7d0);});return()=>{const _0x37cc49=_0x51728e;_0x4e48f0[_0x37cc49(0x45c)](),_0x589b9d[_0x37cc49(0x45c)]();};}[_0x1a9c4c(0x2fd)](_0x389569,_0x4b27a7,_0x1f09d3,_0x253c3c){const _0x314b3a=_0x1a9c4c,_0x5037d2=new _0x5ee268[(_0x314b3a(0x225))](_0x389569)['setAlpha'](0.2)['toRgbString'](),_0x140729=new _0x454685[(_0x314b3a(0x233))](_0x3c17bb+_0x5ee268[_0x314b3a(0x277)][_0x314b3a(0x58b)](_0x3bb404),{'pointsGroup':_0x4b27a7,'fill':_0x5037d2||_0x454685['getColor'](_0x5ee268[_0x314b3a(0x4b0)][_0x314b3a(0x226)],0.2),'left':_0x1f09d3,'top':_0x253c3c,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x314b3a(0x3df)][_0x314b3a(0x2ee)](_0x140729),this[_0x314b3a(0x1ab)][_0x314b3a(0x4c4)](_0x140729,_0x2d522a['TEXT_RANGE_LAYER_INDEX']);}['_drawRectRange'](_0x48652f,_0x240bb6,_0x236445,_0x56adcd){const _0x284aac=_0x1a9c4c,_0x13400c=new _0x5ee268[(_0x284aac(0x225))](_0x48652f)['setAlpha'](0.2)[_0x284aac(0x364)](),_0x53ae91=new _0x454685[(_0x284aac(0x233))](_0x58a545+_0x5ee268[_0x284aac(0x277)]['generateRandomId'](_0x3bb404),{'pointsGroup':_0x240bb6,'fill':_0x13400c||_0x454685[_0x284aac(0x3bc)](_0x5ee268['COLORS'][_0x284aac(0x226)],0.2),'left':_0x236445,'top':_0x56adcd,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x284aac(0x3df)]['push'](_0x53ae91),this[_0x284aac(0x1ab)][_0x284aac(0x4c4)](_0x53ae91,_0x2d522a[_0x284aac(0x545)]);}[_0x1a9c4c(0x542)](_0x3927e7){const _0x23e81b=_0x3927e7[0x0],_0x5345ea=_0x23e81b[0x0],_0x1ff572=_0x23e81b[0x2],{x:_0x1a9f3d,y:_0x51b96}=_0x5345ea,{x:_0x2e2169,y:_0x49b52d}=_0x1ff572;return{'left':_0x1a9f3d,'top':_0x51b96,'width':_0x2e2169-_0x1a9f3d,'height':_0x49b52d-_0x51b96};}[_0x1a9c4c(0x360)](){const _0x39a14b=_0x1a9c4c,{scaleX:_0x2f23d8,scaleY:_0x3a591c}=this['_scene'][_0x39a14b(0x46f)]();return Math[_0x39a14b(0x2c2)](_0x2f23d8,_0x3a591c);}}var _0x4cca82=Object[_0x1a9c4c(0x340)],_0x50162f=Object[_0x1a9c4c(0x541)],_0x42bf14=(_0x4baed2,_0x3cd012,_0x10e628,_0x4d40da)=>{for(var _0x26790a=_0x4d40da>0x1?void 0x0:_0x4d40da?_0x50162f(_0x3cd012,_0x10e628):_0x3cd012,_0x1c7c82=_0x4baed2['length']-0x1,_0x39c8ef;_0x1c7c82>=0x0;_0x1c7c82--)(_0x39c8ef=_0x4baed2[_0x1c7c82])&&(_0x26790a=(_0x4d40da?_0x39c8ef(_0x3cd012,_0x10e628,_0x26790a):_0x39c8ef(_0x26790a))||_0x26790a);return _0x4d40da&&_0x26790a&&_0x4cca82(_0x3cd012,_0x10e628,_0x26790a),_0x26790a;},_0x13e6f7=(_0x39be07,_0x3e877d)=>(_0xc91d25,_0x403f3c)=>_0x3e877d(_0xc91d25,_0x403f3c,_0x39be07);let _0xfecd41=class extends _0x5ee268[_0x1a9c4c(0x4b2)]{constructor(_0x7fb658,_0x4ccd10,_0x54426e,_0x5da677,_0x3e879d){const _0x57ddee=_0x1a9c4c;super(),_0x1328f6(this,_0x57ddee(0x4aa),[]),_0x1328f6(this,_0x57ddee(0x352),[]),(this[_0x57ddee(0x1de)]=_0x7fb658,this[_0x57ddee(0x5c3)]=_0x4ccd10,this[_0x57ddee(0x59a)]=_0x54426e,this['_commandService']=_0x5da677,this[_0x57ddee(0x591)]=_0x3e879d,this[_0x57ddee(0x38a)]());}[_0x1a9c4c(0x38a)](){const _0x479353=_0x1a9c4c,_0x5f48e8=this[_0x479353(0x1de)][_0x479353(0x22b)],_0x2817d0=this[_0x479353(0x5c3)];this[_0x479353(0x337)](_0x56990c[_0x479353(0x44e)]([this[_0x479353(0x59a)][_0x479353(0x5b5)](_0x5f48e8),this[_0x479353(0x591)][_0x479353(0x1be)]])[_0x479353(0x246)](_0x2b56b2[_0x479353(0x42f)](([_0x513aa7,_0x34826d])=>({'skeleton':_0x2817d0[_0x479353(0x27a)](),'cursors':[..._0x513aa7[_0x479353(0x376)]()]['flatMap'](_0x2d4b92=>({..._0x2d4b92,'color':_0x34826d[_0x2d4b92[_0x479353(0x456)]]}))})))[_0x479353(0x3a7)](_0x54d669=>{if(this['_removeCollabCursors'](),_0x54d669){const {skeleton:_0x10ee07,cursors:_0x9a06ec}=_0x54d669;this['_updateCollabCursors'](_0x10ee07,_0x9a06ec);}})),this[_0x479353(0x516)](),this[_0x479353(0x342)]();}[_0x1a9c4c(0x4a8)](_0x148734,_0x3898e1){const _0x819629=_0x1a9c4c,{scene:_0x6bca2e,mainComponent:_0xaa5e00}=this[_0x819629(0x1de)],_0x2c1726=_0x3898e1['map'](_0xe14f0e=>new _0x5cf0e4(_0xe14f0e,_0x6bca2e,_0x148734,_0xaa5e00));this['_cursorShapes']=_0x2c1726,this[_0x819629(0x352)]=_0x3898e1;}['_refreshCollabCursors'](){const _0x117460=_0x1a9c4c;this['_removeCollabCursors']();const {scene:_0x34ee28,mainComponent:_0x4f024d}=this[_0x117460(0x1de)],_0x2d2027=this[_0x117460(0x5c3)][_0x117460(0x27a)](),_0x1bfccc=this['_cursors'][_0x117460(0x42f)](_0x487aae=>new _0x5cf0e4(_0x487aae,_0x34ee28,_0x2d2027,_0x4f024d));this[_0x117460(0x4aa)]=_0x1bfccc;}[_0x1a9c4c(0x387)](){const _0x3650ce=_0x1a9c4c;this[_0x3650ce(0x4aa)][_0x3650ce(0x506)](_0x59b7d7=>_0x59b7d7[_0x3650ce(0x214)]()),this[_0x3650ce(0x4aa)]=[];}[_0x1a9c4c(0x342)](){const _0x2da341=_0x1a9c4c,_0x32795c=[_0x2d522a[_0x2da341(0x1ce)]['id']];this[_0x2da341(0x337)](this[_0x2da341(0x48d)][_0x2da341(0x1e6)](_0x3b1a28=>{const _0x352a42=_0x2da341;_0x32795c[_0x352a42(0x1d1)](_0x3b1a28['id'])&&_0x3b1a28['params'][_0x352a42(0x22b)]===this[_0x352a42(0x1de)][_0x352a42(0x22b)]&&this['_refreshCollabCursors']();}));}[_0x1a9c4c(0x516)](){const _0x3eb424=_0x1a9c4c;this[_0x3eb424(0x337)](_0x5ee268[_0x3eb424(0x54c)](this[_0x3eb424(0x1de)][_0x3eb424(0x56b)][_0x3eb424(0x4b5)])[_0x3eb424(0x246)](_0x2b56b2[_0x3eb424(0x2a1)](_0x5e3b0b=>_0x5e3b0b[_0x3eb424(0x219)]===_0x454685[_0x3eb424(0x4a1)][_0x3eb424(0x3a2)]),_0x2b56b2['throttleTime'](0x10))[_0x3eb424(0x3a7)](()=>{const _0x31adf4=_0x3eb424;this[_0x31adf4(0x28f)]();}));}};_0xfecd41=_0x42bf14([_0x13e6f7(0x1,_0x5ee268['Inject'](_0x45fa2b[_0x1a9c4c(0x324)])),_0x13e6f7(0x2,_0x5ee268[_0x1a9c4c(0x4b4)](_0x48a722)),_0x13e6f7(0x3,_0x5ee268[_0x1a9c4c(0x386)]),_0x13e6f7(0x4,_0x5ee268[_0x1a9c4c(0x4b4)](_0x5ee268[_0x1a9c4c(0x1e2)]))],_0xfecd41);const _0x59b52e=0x1,_0x690f44=1.5;class _0x2d8667 extends _0x454685[_0x1a9c4c(0x588)]{constructor(_0xe10cef,_0x294465){const _0x4c7508=_0x1a9c4c;super(_0xe10cef,_0x294465),_0x1328f6(this,_0x4c7508(0x235)),_0x1328f6(this,_0x4c7508(0x577),!0x1),_0x1328f6(this,'_range'),_0x1328f6(this,_0x4c7508(0x35f),''),_0x1328f6(this,'_labelPosition',_0x4c7508(0x478)),_0x1328f6(this,_0x4c7508(0x3d5)),(_0x294465&&this[_0x4c7508(0x562)](_0x294465),this[_0x4c7508(0x210)][_0x4c7508(0x2eb)](()=>this['setShapeProps']({'hovered':!0x0})),this[_0x4c7508(0x395)]['subscribeEvent'](()=>this[_0x4c7508(0x562)]({'hovered':!0x1})));}[_0x1a9c4c(0x562)](_0x5c4862){const _0x503b6f=_0x1a9c4c;var _0x17b9c1,_0x5df4bc,_0x40dd37,_0x1d4f61,_0x2662c0,_0xe9f0d3;this[_0x503b6f(0x235)]=(_0x17b9c1=_0x5c4862[_0x503b6f(0x456)])!=null?_0x17b9c1:this[_0x503b6f(0x235)],this[_0x503b6f(0x577)]=(_0x5df4bc=_0x5c4862[_0x503b6f(0x40b)])!=null?_0x5df4bc:this[_0x503b6f(0x577)],this[_0x503b6f(0x2a3)]=(_0x40dd37=_0x5c4862['range'])!=null?_0x40dd37:this[_0x503b6f(0x2a3)],this[_0x503b6f(0x35f)]=(_0x1d4f61=_0x5c4862[_0x503b6f(0x32b)])!=null?_0x1d4f61:this[_0x503b6f(0x35f)],this['_labelPosition']=(_0x2662c0=_0x5c4862[_0x503b6f(0x5c7)])!=null?_0x2662c0:this['_labelPosition'],this['_backgroundColor']=(_0xe9f0d3=_0x5c4862['backgroundColor'])!=null?_0xe9f0d3:this[_0x503b6f(0x3d5)],this['transformByState']({'width':_0x5c4862[_0x503b6f(0x228)],'height':_0x5c4862[_0x503b6f(0x4a5)]});}[_0x1a9c4c(0x576)](_0x1417d5){const _0x53d523=_0x1a9c4c,{row:_0x34e550,column:_0x19d646}=_0x1417d5;if(_0x34e550>=this[_0x53d523(0x2a3)][_0x53d523(0x50e)]&&_0x34e550<=this['_range'][_0x53d523(0x3d8)]&&_0x19d646>=this[_0x53d523(0x2a3)][_0x53d523(0x476)]&&_0x19d646<=this[_0x53d523(0x2a3)]['endColumn']){this[_0x53d523(0x562)]({'hovered':!0x0});return;}this[_0x53d523(0x562)]({'hovered':!0x1});}[_0x1a9c4c(0x33a)](_0x7cc880){return!0x1;}[_0x1a9c4c(0x3b5)](_0x17fc68){const _0x5474ef=_0x1a9c4c;_0x454685['Rect'][_0x5474ef(0x23c)](_0x17fc68,{'width':this[_0x5474ef(0x228)],'height':this[_0x5474ef(0x4a5)],'strokeWidth':_0x690f44,'stroke':this[_0x5474ef(0x235)],'evented':!0x1,'fill':this[_0x5474ef(0x3d5)]}),this[_0x5474ef(0x577)]&&(_0x17fc68[_0x5474ef(0x401)](),_0x17fc68['transform'](0x1,0x0,0x0,0x1,this[_0x5474ef(0x228)],this['_labelPosition']===_0x5474ef(0x41c)?0x0:-_0x7126f0),_0x201b68[_0x5474ef(0x23c)](_0x17fc68,{'text':this[_0x5474ef(0x35f)],'color':this['_color']}),_0x17fc68[_0x5474ef(0x33e)]());}}var _0x275ce3=Object[_0x1a9c4c(0x340)],_0xb6252b=Object['getOwnPropertyDescriptor'],_0x70a7=(_0x3a2462,_0x2308a6,_0x2bc455,_0x35e35b)=>{const _0x536a95=_0x1a9c4c;for(var _0x5a1226=_0x35e35b>0x1?void 0x0:_0x35e35b?_0xb6252b(_0x2308a6,_0x2bc455):_0x2308a6,_0x5adcef=_0x3a2462[_0x536a95(0x4d8)]-0x1,_0x1b1047;_0x5adcef>=0x0;_0x5adcef--)(_0x1b1047=_0x3a2462[_0x5adcef])&&(_0x5a1226=(_0x35e35b?_0x1b1047(_0x2308a6,_0x2bc455,_0x5a1226):_0x1b1047(_0x5a1226))||_0x5a1226);return _0x35e35b&&_0x5a1226&&_0x275ce3(_0x2308a6,_0x2bc455,_0x5a1226),_0x5a1226;},_0x19c675=(_0x19f2c9,_0x1342ed)=>(_0x132309,_0x5daa49)=>_0x1342ed(_0x132309,_0x5daa49,_0x19f2c9);const _0x3dedf1=0x1389;let _0x173209=class extends _0x5ee268['RxDisposable']{constructor(_0x4db5bd,_0x3e5bf3,_0x426f7f,_0x39d42b){const _0x4390f7=_0x1a9c4c;super(),_0x1328f6(this,'_cursors',new Set()),_0x1328f6(this,'_lastPointer',null),(this[_0x4390f7(0x1de)]=_0x4db5bd,this[_0x4390f7(0x5ad)]=_0x3e5bf3,this[_0x4390f7(0x59a)]=_0x426f7f,this[_0x4390f7(0x591)]=_0x39d42b,this['_init']());}[_0x1a9c4c(0x38a)](){const _0x44239d=_0x1a9c4c;this[_0x44239d(0x5ad)][_0x44239d(0x1e5)][_0x44239d(0x246)](_0x2b56b2[_0x44239d(0x1da)](this[_0x44239d(0x1f6)]),_0x2b56b2[_0x44239d(0x370)](_0x47b3b8=>{const _0x271986=_0x44239d;if(_0x47b3b8){const _0x234e86=_0x47b3b8[_0x271986(0x224)];return _0x56990c['combineLatest'](this[_0x271986(0x59a)][_0x271986(0x5b5)](this['_context'][_0x271986(0x22b)]),this['_themeService'][_0x271986(0x1be)])[_0x271986(0x246)](_0x2b56b2['map'](([_0x353f28,_0x3e1ec5])=>{const _0x14b3c3=_0x271986,_0x35aab6=new Map();return _0x353f28[_0x14b3c3(0x506)]((_0x569e84,_0x3119e7)=>{const _0x47cb1e=_0x14b3c3;if(_0x569e84[_0x47cb1e(0x346)]===_0x234e86){const _0xaf43cb={..._0x569e84};_0xaf43cb[_0x47cb1e(0x456)]=_0x3e1ec5[_0x569e84[_0x47cb1e(0x456)]],_0x35aab6[_0x47cb1e(0x26c)](_0x3119e7,_0xaf43cb);}}),{'skeleton':_0x47b3b8,'cursors':_0x35aab6};}));}return _0x56990c['of']({'skeleton':null,'cursors':new Map()});}))[_0x44239d(0x3a7)](({skeleton:_0x396f6e,cursors:_0x215dc8})=>{const _0x30fd9a=_0x44239d;this[_0x30fd9a(0x387)](),_0x396f6e&&this[_0x30fd9a(0x4a8)](_0x396f6e,_0x215dc8);}),this['_sheetSkeletonManagerService'][_0x44239d(0x1e5)]['subscribe'](_0xe76af1=>{const _0x2606e4=_0x44239d;if(_0xe76af1==null)return;const {skeleton:_0x5ce906}=_0xe76af1,{scene:_0x3b95d2}=this[_0x2606e4(0x1de)];_0x3b95d2[_0x2606e4(0x574)][_0x2606e4(0x2eb)](_0x5ee268[_0x2606e4(0x4da)](_0x5330a1=>{const _0x347433=_0x2606e4;var _0x268733,_0x2060b0;const {offsetX:_0x5ee101,offsetY:_0x361d8b}=_0x5330a1,{x:_0x418fc0,y:_0x66d948}=_0x3b95d2[_0x347433(0x519)](_0x454685[_0x347433(0x4f6)][_0x347433(0x3c0)]([_0x5ee101,_0x361d8b])),{scaleX:_0x260e07,scaleY:_0x407ad3}=_0x3b95d2[_0x347433(0x46f)](),_0x3eec5b=_0x3b95d2[_0x347433(0x4f9)](_0x2f74a8['VIEWPORT_KEY'][_0x347433(0x2c3)]),_0x7ef636=_0x3b95d2['getVpScrollXYInfoByPosToVp'](_0x454685[_0x347433(0x4f6)][_0x347433(0x3c0)]([_0x418fc0,_0x66d948]),_0x3eec5b),_0x5ac671=_0x5ce906[_0x347433(0x52e)](_0x5ee101,_0x361d8b,_0x260e07,_0x407ad3,_0x7ef636);((_0x268733=this[_0x347433(0x427)])==null?void 0x0:_0x268733[_0x347433(0x3dd)])===_0x5ac671[_0x347433(0x3dd)]&&((_0x2060b0=this['_lastPointer'])==null?void 0x0:_0x2060b0['row'])===_0x5ac671[_0x347433(0x23e)]||this[_0x347433(0x352)][_0x347433(0x506)](_0x4e53a2=>{const _0x3cafc6=_0x347433;_0x4e53a2[_0x3cafc6(0x576)](_0x5ac671);});},0x64));});}[_0x1a9c4c(0x4a8)](_0x3e2685,_0x22070b){const _0x55f6a4=_0x1a9c4c;var _0x2165a9;const _0x2e58bc=(_0x2165a9=this['_sheetSkeletonManagerService'][_0x55f6a4(0x268)]())==null?void 0x0:_0x2165a9[_0x55f6a4(0x50f)];if(!_0x2e58bc)return;const _0x21ade9=this[_0x55f6a4(0x528)]();if(!_0x21ade9)return;this['_cursors'][_0x55f6a4(0x506)](_0x4851ad=>{const _0x37ecbd=_0x55f6a4;_0x4851ad[_0x37ecbd(0x49f)]();});const {scene:_0x2fd327}=_0x21ade9,_0x6b30f3=_0x4fe750(Array[_0x55f6a4(0x20a)](_0x22070b[_0x55f6a4(0x376)]()))[_0x55f6a4(0x42f)](_0x597008=>{const _0x1d56b9=_0x55f6a4,{color:_0x268f0e,range:_0x43356a,name:_0x26312e,selection:_0xf03618,sheetID:_0x38c6b4}=_0x597008,{startColumn:_0x14a4f5,startRow:_0x23339e,endColumn:_0x3f6725,endRow:_0x407789}=_0x43356a,_0x10a877=_0x2f74a8[_0x1d56b9(0x2d5)](_0x23339e,_0x14a4f5,_0x2fd327,_0x2e58bc),_0x848467=_0x2f74a8['getCoordByCell'](_0x407789,_0x3f6725,_0x2fd327,_0x2e58bc),{columnHeaderHeightAndMarginTop:_0x2a67cc}=_0x2e58bc,{startX:_0x14ae2b,startY:_0x1ee23f}=_0x10a877,{endX:_0x197f9b,endY:_0x1a4e85}=_0x848467,_0x3d1a26=_0x197f9b-_0x14ae2b,_0x44d422=_0x1a4e85-_0x1ee23f,_0x368640={'labelPosition':_0x1ee23f-_0x2a67cc>=_0x7126f0?'top':_0x1d56b9(0x41c),'sheetID':_0x38c6b4,'range':_0x43356a,'color':_0x268f0e,'name':_0x26312e,'selection':_0xf03618,'left':_0x14ae2b,'top':_0x1ee23f,'width':_0x3d1a26,'height':_0x44d422,'evented':!0x1,'zIndex':_0x3dedf1};return new _0x2d8667(_0x26312e,_0x368640);});_0x2fd327['addObjects'](_0x6b30f3,_0x59b52e),this[_0x55f6a4(0x352)]=new Set(_0x6b30f3);}['_removeCollabCursors'](){const _0x49d90c=_0x1a9c4c;var _0x911b00;(_0x911b00=this[_0x49d90c(0x352)])==null||_0x911b00[_0x49d90c(0x506)](_0x38617e=>_0x38617e[_0x49d90c(0x214)]());}[_0x1a9c4c(0x528)](){const _0x506007=_0x1a9c4c;return _0x2f74a8[_0x506007(0x3e6)](this[_0x506007(0x1de)][_0x506007(0x21e)],this['_context']);}};_0x173209=_0x70a7([_0x19c675(0x1,_0x5ee268[_0x1a9c4c(0x4b4)](_0x2f74a8['SheetSkeletonManagerService'])),_0x19c675(0x2,_0x5ee268[_0x1a9c4c(0x4b4)](_0x48a722)),_0x19c675(0x3,_0x5ee268[_0x1a9c4c(0x4b4)](_0x5ee268[_0x1a9c4c(0x1e2)]))],_0x173209);function _0x4fe750(_0x1e7aa9){const _0x14038d=_0x1a9c4c,_0x4fc82e=new Map();return _0x1e7aa9[_0x14038d(0x506)](_0x172b0f=>{const _0x3c3e39=_0x14038d;if(_0x4fc82e[_0x3c3e39(0x252)](_0x172b0f[_0x3c3e39(0x2aa)])){const _0x2e554e=_0x4fc82e[_0x3c3e39(0x54d)](_0x172b0f[_0x3c3e39(0x2aa)]);_0x2e554e[_0x3c3e39(0x32b)]+=',\x20'+_0x172b0f[_0x3c3e39(0x32b)];}else _0x4fc82e[_0x3c3e39(0x26c)](_0x172b0f['selection'],_0x172b0f);}),Array['from'](_0x4fc82e[_0x14038d(0x376)]());}var _0x5955f5=function(){const _0x4054b8=_0x1a9c4c;return _0x5955f5=Object[_0x4054b8(0x51e)]||function(_0x526287){const _0x15212b=_0x4054b8;for(var _0x13234c,_0x3d6455=0x1,_0x4a4cc2=arguments[_0x15212b(0x4d8)];_0x3d6455<_0x4a4cc2;_0x3d6455++){_0x13234c=arguments[_0x3d6455];for(var _0x5cde75 in _0x13234c)Object[_0x15212b(0x2c0)][_0x15212b(0x444)][_0x15212b(0x451)](_0x13234c,_0x5cde75)&&(_0x526287[_0x5cde75]=_0x13234c[_0x5cde75]);}return _0x526287;},_0x5955f5[_0x4054b8(0x1d0)](this,arguments);},_0x407855=function(_0x5eb89d,_0x5976bd){const _0x5edad9=_0x1a9c4c;var _0x3f4c6f={};for(var _0x3f9012 in _0x5eb89d)Object[_0x5edad9(0x2c0)][_0x5edad9(0x444)]['call'](_0x5eb89d,_0x3f9012)&&_0x5976bd[_0x5edad9(0x533)](_0x3f9012)<0x0&&(_0x3f4c6f[_0x3f9012]=_0x5eb89d[_0x3f9012]);if(_0x5eb89d!=null&&typeof Object['getOwnPropertySymbols']=='function'){for(var _0x29a0a6=0x0,_0x3f9012=Object[_0x5edad9(0x28e)](_0x5eb89d);_0x29a0a6<_0x3f9012['length'];_0x29a0a6++)_0x5976bd[_0x5edad9(0x533)](_0x3f9012[_0x29a0a6])<0x0&&Object[_0x5edad9(0x2c0)][_0x5edad9(0x260)][_0x5edad9(0x451)](_0x5eb89d,_0x3f9012[_0x29a0a6])&&(_0x3f4c6f[_0x3f9012[_0x29a0a6]]=_0x5eb89d[_0x3f9012[_0x29a0a6]]);}return _0x3f4c6f;},_0x318dac=_0x1d8717[_0x1a9c4c(0x5b9)](function(_0x11746f,_0x4fd34b){const _0x5caedb=_0x1a9c4c;var _0x5703bc=_0x11746f[_0x5caedb(0x5bc)],_0x26b875=_0x11746f['id'],_0x2063e4=_0x11746f[_0x5caedb(0x404)],_0x36c19e=_0x11746f[_0x5caedb(0x5c2)],_0x514240=_0x407855(_0x11746f,[_0x5caedb(0x5bc),'id',_0x5caedb(0x404),_0x5caedb(0x5c2)]),_0x4ec6a0=_0x5caedb(0x3ee)['concat'](_0x26b875,'\x20')[_0x5caedb(0x1ad)](_0x2063e4||'')[_0x5caedb(0x334)](),_0x256161=_0x1d8717['useRef']('_'[_0x5caedb(0x1ad)](_0x22f4d0()));return _0x139867(_0x5703bc,''[_0x5caedb(0x1ad)](_0x26b875),{'defIds':_0x5703bc[_0x5caedb(0x482)],'idSuffix':_0x256161[_0x5caedb(0x40e)]},_0x5955f5({'ref':_0x4fd34b,'className':_0x4ec6a0},_0x514240),_0x36c19e);});function _0x139867(_0xeb9e9c,_0x6c92da,_0xc220fb,_0x52eeb8,_0x138618){const _0x3974bf=_0x1a9c4c;return _0x1d8717[_0x3974bf(0x204)](_0xeb9e9c[_0x3974bf(0x595)],_0x5955f5(_0x5955f5({'key':_0x6c92da},_0x4488cf(_0xeb9e9c,_0xc220fb,_0x138618)),_0x52eeb8),(_0x5bccf2(_0xeb9e9c,_0xc220fb)[_0x3974bf(0x504)]||[])[_0x3974bf(0x42f)](function(_0x204db6,_0x7d56bd){const _0x55bec9=_0x3974bf;return _0x139867(_0x204db6,''['concat'](_0x6c92da,'-')[_0x55bec9(0x1ad)](_0xeb9e9c[_0x55bec9(0x595)],'-')[_0x55bec9(0x1ad)](_0x7d56bd),_0xc220fb,void 0x0,_0x138618);}));}function _0x4488cf(_0x402927,_0x402607,_0x31737e){const _0x2178c7=_0x1a9c4c;var _0x15f2cc=_0x5955f5({},_0x402927['attrs']);_0x31737e!=null&&_0x31737e[_0x2178c7(0x366)]&&_0x15f2cc[_0x2178c7(0x31c)]===_0x2178c7(0x366)&&(_0x15f2cc[_0x2178c7(0x31c)]=_0x31737e['colorChannel1']);var _0x14b834=_0x402607[_0x2178c7(0x482)];return!_0x14b834||_0x14b834[_0x2178c7(0x4d8)]===0x0||(_0x402927[_0x2178c7(0x595)]===_0x2178c7(0x2bd)&&_0x15f2cc[_0x2178c7(0x4cc)]&&(_0x15f2cc[_0x2178c7(0x4cc)]=_0x15f2cc[_0x2178c7(0x4cc)]+_0x402607[_0x2178c7(0x400)]),Object[_0x2178c7(0x1c0)](_0x15f2cc)[_0x2178c7(0x506)](function(_0x745228){const _0x540c47=_0x2178c7;var _0x24b010=_0x745228[0x0],_0x4d5c64=_0x745228[0x1];typeof _0x4d5c64=='string'&&(_0x15f2cc[_0x24b010]=_0x4d5c64[_0x540c47(0x329)](/url\(#(.*)\)/,'url(#$1'[_0x540c47(0x1ad)](_0x402607[_0x540c47(0x400)],')')));})),_0x15f2cc;}function _0x5bccf2(_0x1298a6,_0x463dd8){const _0x289acc=_0x1a9c4c;var _0x15f6b3,_0x7f8dad=_0x463dd8[_0x289acc(0x482)];return!_0x7f8dad||_0x7f8dad['length']===0x0?_0x1298a6:_0x1298a6[_0x289acc(0x595)]===_0x289acc(0x263)&&(!((_0x15f6b3=_0x1298a6[_0x289acc(0x504)])===null||_0x15f6b3===void 0x0)&&_0x15f6b3[_0x289acc(0x4d8)])?_0x5955f5(_0x5955f5({},_0x1298a6),{'children':_0x1298a6['children'][_0x289acc(0x42f)](function(_0x31fc3a){const _0x4366ca=_0x289acc;return typeof _0x31fc3a['attrs']['id']==_0x4366ca(0x273)&&_0x7f8dad&&_0x7f8dad['indexOf'](_0x31fc3a[_0x4366ca(0x1c1)]['id'])>-0x1?_0x5955f5(_0x5955f5({},_0x31fc3a),{'attrs':_0x5955f5(_0x5955f5({},_0x31fc3a['attrs']),{'id':_0x31fc3a[_0x4366ca(0x1c1)]['id']+_0x463dd8[_0x4366ca(0x400)]})}):_0x31fc3a;})}):_0x1298a6;}function _0x22f4d0(){const _0x4eda7c=_0x1a9c4c;return Math[_0x4eda7c(0x582)]()['toString'](0x24)[_0x4eda7c(0x203)](0x2,0x8);}_0x318dac[_0x1a9c4c(0x483)]=_0x1a9c4c(0x585);var _0x511140={'tag':_0x1a9c4c(0x1cf),'attrs':{'fill':_0x1a9c4c(0x2bc),'viewBox':'0\x200\x2016\x2016','width':'1em','height':_0x1a9c4c(0x3a9)},'children':[{'tag':'g','attrs':{'clipPath':'url(#off-line-single_clip0_910_343)'},'children':[{'tag':_0x1a9c4c(0x2cd),'attrs':{'stroke':_0x1a9c4c(0x481),'d':_0x1a9c4c(0x566),'strokeLinecap':'round','strokeLinejoin':_0x1a9c4c(0x2cc),'strokeWidth':1.2}}]},{'tag':_0x1a9c4c(0x263),'attrs':{},'children':[{'tag':_0x1a9c4c(0x44f),'attrs':{'id':'off-line-single_clip0_910_343'},'children':[{'tag':_0x1a9c4c(0x2cd),'attrs':{'fill':'#fff','d':_0x1a9c4c(0x200)}}]}]}],'defIds':[_0x1a9c4c(0x31b)]},_0x364196=_0x1d8717['forwardRef'](function(_0x4d1709,_0x101903){const _0x43703a=_0x1a9c4c;return _0x1d8717[_0x43703a(0x204)](_0x318dac,Object[_0x43703a(0x51e)]({},_0x4d1709,{'id':'off-line-single','ref':_0x101903,'icon':_0x511140}));});_0x364196[_0x1a9c4c(0x483)]='OffLineSingle';var _0x82359a={'tag':_0x1a9c4c(0x1cf),'attrs':{'fill':_0x1a9c4c(0x2bc),'viewBox':'0\x200\x2017\x2016','width':_0x1a9c4c(0x3a9),'height':_0x1a9c4c(0x3a9)},'children':[{'tag':'g','attrs':{'clipPath':_0x1a9c4c(0x4d5)},'children':[{'tag':_0x1a9c4c(0x2cd),'attrs':{'stroke':_0x1a9c4c(0x481),'d':_0x1a9c4c(0x21d),'strokeLinecap':_0x1a9c4c(0x2cc),'strokeLinejoin':_0x1a9c4c(0x2cc),'strokeWidth':1.2}}]},{'tag':_0x1a9c4c(0x263),'attrs':{},'children':[{'tag':_0x1a9c4c(0x44f),'attrs':{'id':'on-line-single_clip0_910_349'},'children':[{'tag':_0x1a9c4c(0x2cd),'attrs':{'fill':_0x1a9c4c(0x4d2),'d':_0x1a9c4c(0x200),'transform':'translate(.97)'}}]}]}],'defIds':[_0x1a9c4c(0x2fb)]},_0x18d982=_0x1d8717[_0x1a9c4c(0x5b9)](function(_0x192170,_0x321c5b){const _0xf5b8d5=_0x1a9c4c;return _0x1d8717[_0xf5b8d5(0x204)](_0x318dac,Object[_0xf5b8d5(0x51e)]({},_0x192170,{'id':_0xf5b8d5(0x2f4),'ref':_0x321c5b,'icon':_0x82359a}));});_0x18d982['displayName']='OnLineSingle';function _0xf236e5(_0x35fe4d){const _0x29e356=_0x1a9c4c;var _0x3674bc,_0x1981e3,_0x162cde='';if(typeof _0x35fe4d==_0x29e356(0x273)||typeof _0x35fe4d==_0x29e356(0x568))_0x162cde+=_0x35fe4d;else{if(typeof _0x35fe4d=='object'){if(Array[_0x29e356(0x5c9)](_0x35fe4d)){var _0x4e596e=_0x35fe4d[_0x29e356(0x4d8)];for(_0x3674bc=0x0;_0x3674bc<_0x4e596e;_0x3674bc++)_0x35fe4d[_0x3674bc]&&(_0x1981e3=_0xf236e5(_0x35fe4d[_0x3674bc]))&&(_0x162cde&&(_0x162cde+='\x20'),_0x162cde+=_0x1981e3);}else{for(_0x1981e3 in _0x35fe4d)_0x35fe4d[_0x1981e3]&&(_0x162cde&&(_0x162cde+='\x20'),_0x162cde+=_0x1981e3);}}}return _0x162cde;}function _0x528193(){const _0x23cfa4=_0x1a9c4c;for(var _0x3b086d,_0x5e4eb9,_0x1fa11c=0x0,_0x2e00b5='',_0x3f71d8=arguments[_0x23cfa4(0x4d8)];_0x1fa11c<_0x3f71d8;_0x1fa11c++)(_0x3b086d=arguments[_0x1fa11c])&&(_0x5e4eb9=_0xf236e5(_0x3b086d))&&(_0x2e00b5&&(_0x2e00b5+='\x20'),_0x2e00b5+=_0x5e4eb9);return _0x2e00b5;}const _0x164ef2={'onlineStatusIcon':_0x1a9c4c(0x259),'onlineStatusTitle':'univer-online-status-title','onlineStatus':_0x1a9c4c(0x20e),'online':_0x1a9c4c(0x2af),'offline':_0x1a9c4c(0x2d2)};function _0x58ad57(_0x792f6b){const _0xd56221=_0x1a9c4c;switch(_0x792f6b){case _0x319e47['OFFLINE']:return _0xd56221(0x240);case _0x319e47[_0xd56221(0x596)]:return _0xd56221(0x5b0);case _0x319e47[_0xd56221(0x242)]:return _0xd56221(0x5c6);case _0x319e47[_0xd56221(0x48e)]:return _0xd56221(0x3f3);case _0x319e47[_0xd56221(0x50b)]:case _0x319e47[_0xd56221(0x56d)]:case _0x319e47['AWAITING_WITH_PENDING']:return _0xd56221(0x5a7);case _0x319e47['SYNCED']:return _0xd56221(0x31f);}}function _0x2e8601(_0xe65675){const _0x4e5537=_0x1a9c4c,{status$:_0x6a7033}=_0xe65675,_0x13d771=_0x56f90f[_0x4e5537(0x563)](_0x6a7033,_0x319e47[_0x4e5537(0x48e)]),_0x43305b=_0x5ee268[_0x4e5537(0x2fe)](_0x5ee268['LocaleService']),_0x2e30e9=_0x5ee268[_0x4e5537(0x2fe)](_0x19f7dc[_0x4e5537(0x569)]),_0xcf1999=_0x13d771!==_0x319e47[_0x4e5537(0x304)],_0x2e1b6a=_0x43305b['t'](_0x58ad57(_0x13d771)),_0x165dcc=_0x528193(_0x164ef2[_0x4e5537(0x3c4)],{[_0x164ef2[_0x4e5537(0x302)]]:_0xcf1999,[_0x164ef2[_0x4e5537(0x57c)]]:!_0xcf1999}),_0x89bebf=_0xcf1999?_0x1d8717[_0x4e5537(0x204)](_0x18d982,null):_0x1d8717[_0x4e5537(0x204)](_0x364196,null),_0x3ea088=_0x1d8717[_0x4e5537(0x53e)](()=>{const _0x2d30ca=_0x4e5537;_0xcf1999||_0x2e30e9[_0x2d30ca(0x436)]();},[_0xcf1999,_0x2e30e9]);function _0x53e708(){const _0x343067=_0x4e5537;return _0x1d8717[_0x343067(0x204)](_0x343067(0x3ea),{'className':_0x165dcc,'onClick':_0x3ea088},_0x1d8717[_0x343067(0x204)](_0x343067(0x3ea),{'className':_0x164ef2[_0x343067(0x503)]},_0x89bebf),_0x1d8717['createElement'](_0x343067(0x3ea),{'className':_0x164ef2[_0x343067(0x40f)]},_0x2e1b6a));}return _0xcf1999?_0x53e708():_0x1d8717[_0x4e5537(0x204)](_0x2e321b[_0x4e5537(0x293)],{'title':_0x43305b['t'](_0x4e5537(0x21f))},_0x53e708());}var _0x106162=Object[_0x1a9c4c(0x340)],_0x29b3ae=Object[_0x1a9c4c(0x541)],_0xe7fec7=(_0x13f39d,_0x49c213,_0x5a9a89,_0x290e23)=>{for(var _0x31e29f=_0x290e23>0x1?void 0x0:_0x290e23?_0x29b3ae(_0x49c213,_0x5a9a89):_0x49c213,_0x28fff2=_0x13f39d['length']-0x1,_0x598b66;_0x28fff2>=0x0;_0x28fff2--)(_0x598b66=_0x13f39d[_0x28fff2])&&(_0x31e29f=(_0x290e23?_0x598b66(_0x49c213,_0x5a9a89,_0x31e29f):_0x598b66(_0x31e29f))||_0x31e29f);return _0x290e23&&_0x31e29f&&_0x106162(_0x49c213,_0x5a9a89,_0x31e29f),_0x31e29f;},_0x55ae22=(_0x3b7e8e,_0x742fc1)=>(_0x5e053c,_0x4508ed)=>_0x742fc1(_0x5e053c,_0x4508ed,_0x3b7e8e);_0x19f7dc[_0x1a9c4c(0x4de)]=class extends _0x5ee268[_0x1a9c4c(0x238)]{constructor(_0x44519f,_0x299252,_0x164c3a,_0x1e3f69){const _0x3b631e=_0x1a9c4c;super(),_0x1328f6(this,_0x3b631e(0x4c0),new _0x56990c[(_0x3b631e(0x3d3))](_0x319e47[_0x3b631e(0x48e)])),(this[_0x3b631e(0x535)]=_0x44519f,this['_uiPartsService']=_0x299252,this[_0x3b631e(0x474)]=_0x164c3a,this['_collaborationController']=_0x1e3f69,this['_initStatusComponent'](),this[_0x3b631e(0x52a)]());}[_0x1a9c4c(0x52a)](){const _0x112387=_0x1a9c4c;this[_0x112387(0x337)](this[_0x112387(0x535)]['focused$'][_0x112387(0x246)](_0x56990c[_0x112387(0x370)](()=>{const _0x407877=_0x112387,_0x54f03d=this['_univerInstanceService'][_0x407877(0x1b2)]();return _0x54f03d?this[_0x407877(0x1e0)][_0x407877(0x3fd)](_0x54f03d['getUnitId']()):_0x56990c['of'](null);}),_0x56990c[_0x112387(0x370)](_0x4a7057=>_0x4a7057?_0x4a7057[_0x112387(0x501)]:_0x56990c['of'](_0x319e47[_0x112387(0x48e)])))[_0x112387(0x3a7)](_0x4e6a97=>{this['_status$']['next'](_0x4e6a97);}));}[_0x1a9c4c(0x58c)](){const _0x57e31b=_0x1a9c4c;this['disposeWithMe'](this[_0x57e31b(0x2ec)][_0x57e31b(0x570)](_0x56f90f[_0x57e31b(0x369)]['HEADER_MENU'],()=>_0x5ee268[_0x57e31b(0x344)](_0x54540a({'status$':this[_0x57e31b(0x4c0)][_0x57e31b(0x560)]()}),this[_0x57e31b(0x474)])));}},_0x19f7dc[_0x1a9c4c(0x4de)]=_0xe7fec7([_0x55ae22(0x0,_0x5ee268[_0x1a9c4c(0x39a)]),_0x55ae22(0x1,_0x56f90f['IUIPartsService']),_0x55ae22(0x2,_0x5ee268[_0x1a9c4c(0x4b4)](_0x5ee268[_0x1a9c4c(0x418)])),_0x55ae22(0x3,_0x5ee268['Inject'](_0x19f7dc[_0x1a9c4c(0x554)]))],_0x19f7dc[_0x1a9c4c(0x4de)]);function _0x54540a(_0xefd01c){const {status$:_0x446aef}=_0xefd01c;return function(){const _0x36ec7a=_0x2a06;return _0x1d8717[_0x36ec7a(0x204)](_0x2e8601,{'status$':_0x446aef});};}const _0x1be3ae=_0x5ee268['createIdentifier'](_0x1a9c4c(0x58d));var _0x50b324=Object['defineProperty'],_0x116167=Object[_0x1a9c4c(0x541)],_0xe1536d=(_0x2ee16d,_0x1e7cd6,_0x376210,_0x5f3479)=>{const _0x2589ef=_0x1a9c4c;for(var _0x2b6b88=_0x5f3479>0x1?void 0x0:_0x5f3479?_0x116167(_0x1e7cd6,_0x376210):_0x1e7cd6,_0x51bbac=_0x2ee16d[_0x2589ef(0x4d8)]-0x1,_0x21726f;_0x51bbac>=0x0;_0x51bbac--)(_0x21726f=_0x2ee16d[_0x51bbac])&&(_0x2b6b88=(_0x5f3479?_0x21726f(_0x1e7cd6,_0x376210,_0x2b6b88):_0x21726f(_0x2b6b88))||_0x2b6b88);return _0x5f3479&&_0x2b6b88&&_0x50b324(_0x1e7cd6,_0x376210,_0x2b6b88),_0x2b6b88;},_0x294f5d=(_0xcb1eab,_0x4c1b7e)=>(_0x403075,_0x55f133)=>_0x4c1b7e(_0x403075,_0x55f133,_0xcb1eab);_0x19f7dc[_0x1a9c4c(0x36e)]=class extends _0x5ee268['RxDisposable']{constructor(_0x3d44a6,_0x25afe5,_0x8cd1c4,_0x1480e6,_0x33aa16,_0x509d00){const _0x129411=_0x1a9c4c;super(),this['_urlService']=_0x3d44a6,this[_0x129411(0x2a9)]=_0x25afe5,this[_0x129411(0x48d)]=_0x8cd1c4,this[_0x129411(0x55e)]=_0x1480e6,this[_0x129411(0x1fe)]=_0x33aa16,_0x509d00?_0x509d00==null||_0x509d00['whenReady']()[_0x129411(0x29c)](()=>this[_0x129411(0x38a)]()):(this[_0x129411(0x2a9)][_0x129411(0x2d3)](_0x129411(0x1c4),_0x129411(0x5a8)),this[_0x129411(0x38a)]());}async[_0x1a9c4c(0x38a)](){const _0x368aed=_0x1a9c4c,_0x3bd546=this['_urlService'][_0x368aed(0x37c)](_0x368aed(0x21e)),_0x20a99a=this[_0x368aed(0x4ba)][_0x368aed(0x37c)](_0x368aed(0x219));if(!_0x3bd546||!_0x20a99a){this[_0x368aed(0x2a9)][_0x368aed(0x2d3)](_0x368aed(0x1c4),_0x368aed(0x32c));return;}switch(Number(_0x20a99a)){case _0x69fde1[_0x368aed(0x498)]:{const _0x21c307=await this['_loadSheet'](_0x3bd546);this[_0x368aed(0x266)](_0x21c307);break;}case _0x69fde1[_0x368aed(0x1ec)]:{await this['_loadDoc'](_0x3bd546);break;}default:{this[_0x368aed(0x2a9)][_0x368aed(0x317)](_0x368aed(0x1c4),_0x368aed(0x590));break;}}}async[_0x1a9c4c(0x266)](_0x5a5d87){const _0x55ba20=_0x1a9c4c;await this[_0x55ba20(0x4c8)](_0x5a5d87),_0x5a5d87['activeSheet$']['pipe'](_0x56990c[_0x55ba20(0x1da)](this[_0x55ba20(0x1f6)]))[_0x55ba20(0x3a7)](_0x4e5006=>{const _0x33be0a=_0x55ba20;_0x4e5006&&this[_0x33be0a(0x5a1)](_0x4e5006);}),this[_0x55ba20(0x4ba)][_0x55ba20(0x499)][_0x55ba20(0x246)](_0x56990c[_0x55ba20(0x1da)](this[_0x55ba20(0x1f6)]))['subscribe'](()=>this[_0x55ba20(0x4c8)](_0x5a5d87));}[_0x1a9c4c(0x5a1)](_0x1e51c2,_0x38ccc9=!0x1){const _0x11f7a3=_0x1a9c4c,_0x3ac4a7=this['_urlService'][_0x11f7a3(0x37c)](_0x11f7a3(0x517));_0x1e51c2[_0x11f7a3(0x396)]()!==_0x3ac4a7&&this[_0x11f7a3(0x4ba)][_0x11f7a3(0x421)](_0x11f7a3(0x517),_0x1e51c2['getSheetId'](),_0x38ccc9);}async['_updateSubUnitFromURLParams'](_0x529c1b){const _0x31d60c=_0x1a9c4c;var _0x3de83d;const _0x395290=this[_0x31d60c(0x4ba)]['getParam'](_0x31d60c(0x517));if(!_0x395290||!_0x529c1b[_0x31d60c(0x265)](_0x395290)){const _0x1e72eb=_0x529c1b[_0x31d60c(0x23f)]()[0x0],_0x21e50e=_0x529c1b[_0x31d60c(0x265)](_0x1e72eb);if(!_0x21e50e)return;this['_updateURLWithCurrentState'](_0x21e50e,!0x0),await this[_0x31d60c(0x48d)][_0x31d60c(0x25f)](_0x149ec5[_0x31d60c(0x321)]['id'],{'unitId':_0x529c1b[_0x31d60c(0x4ef)](),'subUnitId':_0x1e72eb});return;}((_0x3de83d=_0x529c1b['getActiveSheet']())==null?void 0x0:_0x3de83d[_0x31d60c(0x396)]())!==_0x395290&&await this[_0x31d60c(0x48d)][_0x31d60c(0x25f)](_0x149ec5[_0x31d60c(0x321)]['id'],{'unitId':_0x529c1b['getUnitId'](),'subUnitId':_0x395290});}async[_0x1a9c4c(0x316)](_0x1cd1e5){const _0x514ebe=_0x1a9c4c;let _0x218818=0x0;const _0x325faf=await this['_localCacheService']['loadOfflineData'](_0x1cd1e5);return _0x325faf&&(_0x325faf[_0x514ebe(0x1bc)]||_0x325faf[_0x514ebe(0x234)]['length']!==0x0)&&(_0x218818=_0x325faf['rev']),_0x218818===0x0&&this['_logService']['debug']('[DataLoaderController]',_0x514ebe(0x578)),this['_snapshotService'][_0x514ebe(0x5ae)](_0x1cd1e5,_0x218818);}async[_0x1a9c4c(0x3b2)](_0x210ac5){const _0x51b167=_0x1a9c4c;let _0x15d6e2=0x0;const _0x258aa0=await this[_0x51b167(0x55e)][_0x51b167(0x2f8)](_0x210ac5);return _0x258aa0&&(_0x258aa0['awaitingChangeset']||_0x258aa0[_0x51b167(0x234)][_0x51b167(0x4d8)]!==0x0)&&(_0x15d6e2=_0x258aa0['rev']),_0x15d6e2===0x0&&this['_logService'][_0x51b167(0x2d3)]('[DataLoaderController]',_0x51b167(0x578)),this[_0x51b167(0x1fe)][_0x51b167(0x2a8)](_0x210ac5,_0x15d6e2);}},_0x19f7dc[_0x1a9c4c(0x36e)]=_0xe1536d([_0x294f5d(0x0,_0x1be3ae),_0x294f5d(0x1,_0x5ee268['ILogService']),_0x294f5d(0x2,_0x5ee268[_0x1a9c4c(0x386)]),_0x294f5d(0x3,_0x5ee268[_0x1a9c4c(0x4b4)](_0x19f7dc[_0x1a9c4c(0x59e)])),_0x294f5d(0x4,_0x5ee268['Inject'](_0x437f93[_0x1a9c4c(0x464)])),_0x294f5d(0x5,_0x5ee268['Optional'](_0x1f4649[_0x1a9c4c(0x446)]))],_0x19f7dc[_0x1a9c4c(0x36e)]);var _0xf96ef1=Object['defineProperty'],_0x47cf02=Object['getOwnPropertyDescriptor'],_0x2947b=(_0x4cde7f,_0x2e10a6,_0x5a0663,_0x5a6f76)=>{const _0x2c9b49=_0x1a9c4c;for(var _0x7e0840=_0x5a6f76>0x1?void 0x0:_0x5a6f76?_0x47cf02(_0x2e10a6,_0x5a0663):_0x2e10a6,_0x22d10d=_0x4cde7f[_0x2c9b49(0x4d8)]-0x1,_0x23ff3f;_0x22d10d>=0x0;_0x22d10d--)(_0x23ff3f=_0x4cde7f[_0x22d10d])&&(_0x7e0840=(_0x5a6f76?_0x23ff3f(_0x2e10a6,_0x5a0663,_0x7e0840):_0x23ff3f(_0x7e0840))||_0x7e0840);return _0x5a6f76&&_0x7e0840&&_0xf96ef1(_0x2e10a6,_0x5a0663,_0x7e0840),_0x7e0840;},_0x6f918a=(_0x451080,_0x5333ed)=>(_0xdac4a7,_0x2ce4f8)=>_0x5333ed(_0xdac4a7,_0x2ce4f8,_0x451080);const _0x3936c3=_0x1a9c4c(0x41d),_0x209f81='Univer';let _0x537d40=class extends _0x5ee268[_0x1a9c4c(0x238)]{constructor(_0x2148a2,_0x2df0fd){const _0x219964=_0x1a9c4c;super(),this['_univerInstanceService']=_0x2148a2,this[_0x219964(0x208)]=_0x2df0fd,this[_0x219964(0x38a)]();}[_0x1a9c4c(0x38a)](){const _0x21fb0c=_0x1a9c4c;this[_0x21fb0c(0x337)](this['_univerInstanceService']['focused$'][_0x21fb0c(0x3a7)](()=>{const _0xab3cdf=_0x21fb0c;var _0x4ea7e6;const _0x540363=this[_0xab3cdf(0x535)][_0xab3cdf(0x1b2)]();let _0x507a0b=(_0x4ea7e6=this[_0xab3cdf(0x208)][_0xab3cdf(0x3a6)](_0x3936c3))!=null?_0x4ea7e6:_0x209f81;_0x540363 instanceof _0x5ee268[_0xab3cdf(0x461)]&&(_0x507a0b=_0x540363['name']),document[_0xab3cdf(0x3dc)]=_0x507a0b;}));}};_0x537d40=_0x2947b([_0x6f918a(0x0,_0x5ee268['IUniverInstanceService']),_0x6f918a(0x1,_0x5ee268[_0x1a9c4c(0x422)])],_0x537d40);var _0x220feb=Object[_0x1a9c4c(0x340)],_0x7e7836=Object[_0x1a9c4c(0x541)],_0x30a8ce=(_0x51a880,_0x9116d3,_0xacc142,_0x4a771a)=>{const _0x3b2e69=_0x1a9c4c;for(var _0x303100=_0x4a771a>0x1?void 0x0:_0x4a771a?_0x7e7836(_0x9116d3,_0xacc142):_0x9116d3,_0x5d8983=_0x51a880[_0x3b2e69(0x4d8)]-0x1,_0x50557b;_0x5d8983>=0x0;_0x5d8983--)(_0x50557b=_0x51a880[_0x5d8983])&&(_0x303100=(_0x4a771a?_0x50557b(_0x9116d3,_0xacc142,_0x303100):_0x50557b(_0x303100))||_0x303100);return _0x4a771a&&_0x303100&&_0x220feb(_0x9116d3,_0xacc142,_0x303100),_0x303100;},_0x26e8dd=(_0x480e24,_0x189085)=>(_0x2c05bd,_0x51e8ab)=>_0x189085(_0x2c05bd,_0x51e8ab,_0x480e24);let _0x5a9cd1=class{constructor(_0x119670,_0x3279d4,_0x302d4f){const _0x17689a=_0x1a9c4c;this[_0x17689a(0x208)]=_0x119670,this[_0x17689a(0x449)]=_0x3279d4,this[_0x17689a(0x4f7)]=_0x302d4f,this[_0x17689a(0x206)]();}[_0x1a9c4c(0x206)](){const _0xd9b01f=_0x1a9c4c;this['_httpService']['registerHTTPInterceptor']({'priority':0x1,'interceptor':(_0x2f59a8,_0x2247a3)=>_0x2247a3(_0x2f59a8)[_0xd9b01f(0x246)](_0x56990c[_0xd9b01f(0x530)](async _0x3a4e67=>{const _0x495d5a=_0xd9b01f,_0x37456d=_0x3a4e67;if(_0x37456d[_0x495d5a(0x227)]===0x191&&window[_0x495d5a(0x37f)](this['localeService']['t'](_0x495d5a(0x55d)))){const _0x571567=window[_0x495d5a(0x468)](window['location'][_0x495d5a(0x572)]);window[_0x495d5a(0x367)][_0x495d5a(0x572)]=this['_getLoginPath']()+_0x495d5a(0x388)+_0x571567;}return _0x37456d;}))});}[_0x1a9c4c(0x5c8)](){const _0x4dab82=_0x1a9c4c;var _0x21475e,_0x19128a;const _0x26392c=this['_configService'][_0x4dab82(0x3a6)](_0x2e60e8),_0x369124=this['_configService']['getConfig'](_0x17bae2);return(_0x19128a=(_0x21475e=_0x369124==null?void 0x0:_0x369124['loginUrlKey'])!=null?_0x21475e:_0x26392c)!=null?_0x19128a:_0x4847b7;}};_0x5a9cd1=_0x30a8ce([_0x26e8dd(0x0,_0x5ee268[_0x1a9c4c(0x422)]),_0x26e8dd(0x1,_0x5ee268[_0x1a9c4c(0x4b4)](_0x519640[_0x1a9c4c(0x544)])),_0x26e8dd(0x2,_0x5ee268[_0x1a9c4c(0x4b4)](_0x5ee268[_0x1a9c4c(0x25a)]))],_0x5a9cd1);var _0x119c0b=Object[_0x1a9c4c(0x340)],_0x8dcbd8=Object[_0x1a9c4c(0x541)],_0x31409e=(_0x534838,_0x551b75,_0x255f38,_0x3094da)=>{const _0x3581f5=_0x1a9c4c;for(var _0x4c64fb=_0x3094da>0x1?void 0x0:_0x3094da?_0x8dcbd8(_0x551b75,_0x255f38):_0x551b75,_0xd86008=_0x534838[_0x3581f5(0x4d8)]-0x1,_0x21f5cb;_0xd86008>=0x0;_0xd86008--)(_0x21f5cb=_0x534838[_0xd86008])&&(_0x4c64fb=(_0x3094da?_0x21f5cb(_0x551b75,_0x255f38,_0x4c64fb):_0x21f5cb(_0x4c64fb))||_0x4c64fb);return _0x3094da&&_0x4c64fb&&_0x119c0b(_0x551b75,_0x255f38,_0x4c64fb),_0x4c64fb;},_0x55a88d=(_0x1873aa,_0x1a85d9)=>(_0x309bb1,_0x315b65)=>_0x1a85d9(_0x309bb1,_0x315b65,_0x1873aa);const _0x33b45d='AUTHZ_URL_KEY',_0x516ec9=_0x1a9c4c(0x52d);_0x19f7dc[_0x1a9c4c(0x41f)]=class extends _0x5ee268[_0x1a9c4c(0x238)]{constructor(_0xac5e51,_0x4e0977){const _0x54e6bb=_0x1a9c4c;super(),this[_0x54e6bb(0x3b4)]=_0xac5e51,this[_0x54e6bb(0x208)]=_0x4e0977,this[_0x54e6bb(0x312)]();}[_0x1a9c4c(0x312)](){const _0x3d5fb9=_0x1a9c4c,_0x8e2f79=this;this[_0x3d5fb9(0x337)](this[_0x3d5fb9(0x3b4)][_0x3d5fb9(0x1b7)]({'priority':0x3e7,'interceptor':_0x519640[_0x3d5fb9(0x4e2)]({'isMatch'(_0x1250bc){const _0xced400=_0x3d5fb9;var _0x5f5d6f;if(_0x1250bc[_0xced400(0x4f4)]===_0xced400(0x3ef)&&((_0x5f5d6f=_0x1250bc[_0xced400(0x583)])!=null&&_0x5f5d6f['body'])){const {objectID:_0x426a4b,objectType:_0x1979b1}=_0x1250bc[_0xced400(0x583)][_0xced400(0x402)]||{};if(!_0x426a4b||_0x1979b1===void 0x0)return!0x1;const _0x3adb34=_0x8e2f79[_0xced400(0x2fa)]()+'/'+_0x1979b1+_0xced400(0x514)+_0x426a4b+_0xced400(0x1c2);if(_0x1250bc[_0xced400(0x2e5)]===_0x3adb34)return!0x0;}return!0x1;},'getParamsFromRequest'(_0x2d431b){const _0x47c0d1=_0x3d5fb9;var _0x4d0e40;return(_0x4d0e40=_0x2d431b[_0x47c0d1(0x583)])==null?void 0x0:_0x4d0e40['body'];},'mergeParamsToRequest'(_0x5bcec0,_0x1bba62){const _0x310a7a=_0x3d5fb9,_0x5bec82=_0x8e2f79[_0x310a7a(0x2fa)]()+_0x310a7a(0x231),_0x15e811=_0x5bcec0['reduce']((_0x5bdb44,_0x230897)=>{const _0x81fd78=_0x310a7a,{unitID:_0x1024ed,objectID:_0x17dc62,objectType:_0x589bea,actions:_0x29b627}=_0x230897;return _0x5bdb44[_0x1024ed]||(_0x5bdb44[_0x1024ed]={}),_0x5bdb44[_0x1024ed][_0x17dc62]||(_0x5bdb44[_0x1024ed][_0x17dc62]={'objectID':_0x17dc62,'objectType':_0x589bea,'actions':[]}),_0x5bdb44[_0x1024ed][_0x17dc62][_0x81fd78(0x51a)][_0x81fd78(0x2ee)](..._0x29b627),_0x5bdb44;},{}),_0x522076=[];for(const _0x2fc6bd in _0x15e811)for(const _0x854537 in _0x15e811[_0x2fc6bd]){const {actions:_0x31a215,objectType:_0x42ac1a}=_0x15e811[_0x2fc6bd][_0x854537],_0x3ec56c=[...new Set(_0x31a215)];_0x522076[_0x310a7a(0x2ee)]({'unitID':_0x2fc6bd,'objectID':_0x854537,'objectType':_0x42ac1a,'actions':_0x3ec56c});}return new _0x519640[(_0x310a7a(0x3a4))]('POST',_0x5bec82,{'headers':_0x1bba62['headers'],'withCredentials':_0x1bba62['withCredentials'],'responseType':_0x1bba62['responseType'],'body':{'requests':_0x522076}});}},{'distributeResult'(_0x5955ff,_0x5a9b8a){const {objectActions:_0x531074}=_0x5955ff;return _0x5a9b8a['map'](_0x20fabb=>{const _0x5f54ff=_0x2a06,{unitID:_0x364f24,objectID:_0x17a800,actions:_0x41fab8}=_0x20fabb,_0x3b4baa=_0x531074[_0x5f54ff(0x2bf)](_0x13caea=>_0x13caea['unitID']===_0x364f24&&_0x13caea[_0x5f54ff(0x4af)]===_0x17a800),_0x42fcf1=_0x41fab8[_0x5f54ff(0x42f)](_0xbf6cae=>_0x3b4baa==null?void 0x0:_0x3b4baa['actions'][_0x5f54ff(0x2bf)](_0x40789c=>_0x40789c[_0x5f54ff(0x5d1)]===_0xbf6cae))[_0x5f54ff(0x2a1)](_0x2fa564=>!!_0x2fa564);return{'config':_0x20fabb,'result':{'actions':_0x42fcf1,'error':_0x5955ff[_0x5f54ff(0x317)]}};});}})}));}[_0x1a9c4c(0x2fa)](){const _0x1d95e8=_0x1a9c4c;var _0x389065,_0x19b81f;const _0x33bcd4=this['_configService'][_0x1d95e8(0x3a6)](_0x33b45d),_0x132af1=this[_0x1d95e8(0x208)]['getConfig'](_0x17bae2);return(_0x19b81f=(_0x389065=_0x132af1==null?void 0x0:_0x132af1['authzUrl'])!=null?_0x389065:_0x33bcd4)!=null?_0x19b81f:_0x516ec9;}async[_0x1a9c4c(0x4a6)](_0x2fede0){const _0x3148aa=_0x1a9c4c,_0x26124b=this['_getAPIPrefixPath']()+'/'+_0x2fede0['objectType']+'/object';return(await this[_0x3148aa(0x3b4)][_0x3148aa(0x4f8)](_0x26124b,{'body':_0x2fede0}))[_0x3148aa(0x402)][_0x3148aa(0x4af)]||'';}async[_0x1a9c4c(0x201)](_0x2eb74f){const _0x4e9eaa=_0x1a9c4c,_0x566e8c=this['_getAPIPrefixPath']()+'/-/object/list';return(await this['_HTTPService'][_0x4e9eaa(0x4f8)](_0x566e8c,{'body':_0x2eb74f}))[_0x4e9eaa(0x402)][_0x4e9eaa(0x3f1)];}async[_0x1a9c4c(0x439)](_0xa7efba){const _0xa53360=_0x1a9c4c,_0x4bd4fb=this[_0xa53360(0x2fa)]()+'/'+_0xa7efba[_0xa53360(0x5b2)]+_0xa53360(0x514)+_0xa7efba[_0xa53360(0x4af)];await this[_0xa53360(0x3b4)]['put'](_0x4bd4fb,{'body':_0xa7efba});}async['allowed'](_0x45daea){const _0x130c4d=_0x1a9c4c,_0x199223=this['_getAPIPrefixPath']()+'/'+_0x45daea[_0x130c4d(0x5b2)]+'/object/'+_0x45daea['objectID']+_0x130c4d(0x1c2);return(await this['_HTTPService'][_0x130c4d(0x4f8)](_0x199223,{'body':_0x45daea}))['body'][_0x130c4d(0x51a)];}async[_0x1a9c4c(0x1e1)](_0x24795e){const _0xacaef9=_0x1a9c4c,_0x4854a8=this[_0xacaef9(0x2fa)]()+_0xacaef9(0x231);return(await this[_0xacaef9(0x3b4)][_0xacaef9(0x4f8)](_0x4854a8,{'body':{'requests':_0x24795e}}))[_0xacaef9(0x402)]['objectActions'];}async[_0x1a9c4c(0x1dc)](_0x1a8cfe){const _0x564d34=_0x1a9c4c,_0xb3fe95=this[_0x564d34(0x2fa)]()+'/'+_0x1a8cfe['objectType']+'/role',_0x3a3b7e=await this[_0x564d34(0x3b4)][_0x564d34(0x4f8)](_0xb3fe95,{'body':_0x1a8cfe});return{'roles':_0x3a3b7e[_0x564d34(0x402)][_0x564d34(0x410)],'actions':_0x3a3b7e[_0x564d34(0x402)][_0x564d34(0x51a)]};}async[_0x1a9c4c(0x4b8)](_0x296fc5){const _0x115720=_0x1a9c4c,_0x27719c=this[_0x115720(0x2fa)]()+_0x115720(0x1b1);await this['_HTTPService']['delete'](_0x27719c,{'params':{'collaboratorID':_0x296fc5['collaboratorID'],'objectID':_0x296fc5['objectID'],'unitID':_0x296fc5[_0x115720(0x447)]}});}async[_0x1a9c4c(0x1f9)](_0x63a7f6){const _0x1b3c95=_0x1a9c4c,_0x2e9bee=this[_0x1b3c95(0x2fa)]()+_0x1b3c95(0x1b1);await this[_0x1b3c95(0x3b4)][_0x1b3c95(0x594)](_0x2e9bee,{'body':_0x63a7f6});}async[_0x1a9c4c(0x4a9)](_0x792cdf){const _0x2efb8b=_0x1a9c4c,_0x3da970=this[_0x2efb8b(0x2fa)]()+_0x2efb8b(0x1b1);await this[_0x2efb8b(0x3b4)][_0x2efb8b(0x4f8)](_0x3da970,{'body':_0x792cdf});}async[_0x1a9c4c(0x573)](_0x2a0e9a){const _0x5b3873=_0x1a9c4c,_0x55363f=this[_0x5b3873(0x2fa)]()+_0x5b3873(0x1b1);return(await this[_0x5b3873(0x3b4)][_0x5b3873(0x54d)](_0x55363f,{'params':{'objectID':_0x2a0e9a[_0x5b3873(0x4af)],'unitID':_0x2a0e9a['unitID']}}))['body']['collaborators'];}async['putCollaborators'](_0xe57ec4){const _0x41bcd3=_0x1a9c4c,_0x413f9b=this[_0x41bcd3(0x2fa)]()+_0x41bcd3(0x1b1);await this[_0x41bcd3(0x3b4)]['put'](_0x413f9b,{'body':_0xe57ec4});}},_0x19f7dc[_0x1a9c4c(0x41f)]=_0x31409e([_0x55a88d(0x0,_0x5ee268[_0x1a9c4c(0x4b4)](_0x519640['HTTPService'])),_0x55a88d(0x1,_0x5ee268[_0x1a9c4c(0x4b4)](_0x5ee268[_0x1a9c4c(0x422)]))],_0x19f7dc[_0x1a9c4c(0x41f)]);var _0x48b4f4=Object[_0x1a9c4c(0x340)],_0x327ac5=Object[_0x1a9c4c(0x541)],_0x164a54=(_0x50080a,_0x4a19d3,_0x4ae1be,_0x4b0830)=>{for(var _0x6ed883=_0x4b0830>0x1?void 0x0:_0x4b0830?_0x327ac5(_0x4a19d3,_0x4ae1be):_0x4a19d3,_0x275c38=_0x50080a['length']-0x1,_0x1c9d33;_0x275c38>=0x0;_0x275c38--)(_0x1c9d33=_0x50080a[_0x275c38])&&(_0x6ed883=(_0x4b0830?_0x1c9d33(_0x4a19d3,_0x4ae1be,_0x6ed883):_0x1c9d33(_0x6ed883))||_0x6ed883);return _0x4b0830&&_0x6ed883&&_0x48b4f4(_0x4a19d3,_0x4ae1be,_0x6ed883),_0x6ed883;},_0x556b96=(_0x3d3cb9,_0x2eb618)=>(_0x2d66ff,_0x24376b)=>_0x2eb618(_0x2d66ff,_0x24376b,_0x3d3cb9);let _0x50ec40=class{constructor(_0x4a385a){const _0x585348=_0x1a9c4c;this[_0x585348(0x449)]=_0x4a385a,this[_0x585348(0x3a8)]();}['_initRequestHeader'](){const _0x41e9b8=_0x1a9c4c;this['_httpService'][_0x41e9b8(0x1b7)]({'interceptor':(_0x353854,_0x42b3f5)=>{const _0x26cba9=_0x41e9b8,_0x170d84=_0x353854[_0x26cba9(0x3eb)],_0x5c0088=_0x28eb5f['getAttachHeader']();return _0x5c0088&&_0x170d84[_0x26cba9(0x26c)](_0x26cba9(0x52b),_0x5c0088),_0x42b3f5(_0x353854);}});}};_0x50ec40=_0x164a54([_0x556b96(0x0,_0x5ee268[_0x1a9c4c(0x4b4)](_0x519640[_0x1a9c4c(0x544)]))],_0x50ec40);var _0x1bce75=Object[_0x1a9c4c(0x340)],_0x5cf1cb=Object[_0x1a9c4c(0x541)],_0x42c872=(_0x5cfa39,_0x23d8cb,_0x35dd3c,_0x2fffea)=>{const _0x1fc144=_0x1a9c4c;for(var _0x581e71=_0x2fffea>0x1?void 0x0:_0x2fffea?_0x5cf1cb(_0x23d8cb,_0x35dd3c):_0x23d8cb,_0x5ffa1=_0x5cfa39[_0x1fc144(0x4d8)]-0x1,_0x431fba;_0x5ffa1>=0x0;_0x5ffa1--)(_0x431fba=_0x5cfa39[_0x5ffa1])&&(_0x581e71=(_0x2fffea?_0x431fba(_0x23d8cb,_0x35dd3c,_0x581e71):_0x431fba(_0x581e71))||_0x581e71);return _0x2fffea&&_0x581e71&&_0x1bce75(_0x23d8cb,_0x35dd3c,_0x581e71),_0x581e71;},_0x59f173=(_0x23114a,_0x5637c6)=>(_0x347b9f,_0x5de5af)=>_0x5637c6(_0x347b9f,_0x5de5af,_0x23114a);const _0x416a2a=['image/png',_0x1a9c4c(0x348),'image/jpg',_0x1a9c4c(0x49e),_0x1a9c4c(0x247)],_0x3b0751=0x5*0x400*0x400,_0x564547=_0x1a9c4c(0x309),_0x5960d6=_0x1a9c4c(0x279),_0x461efd=_0x1a9c4c(0x3fb),_0x4bb223=_0x1a9c4c(0x24a);_0x19f7dc[_0x1a9c4c(0x347)]=class{constructor(_0x549761,_0x168786,_0xd096b5){const _0x5f4911=_0x1a9c4c;_0x1328f6(this,_0x5f4911(0x2d8),0x0),_0x1328f6(this,'_change$',new _0x56990c[(_0x5f4911(0x3be))]()),_0x1328f6(this,'change$',this[_0x5f4911(0x1e4)]),_0x1328f6(this,_0x5f4911(0x2d0),new Map()),(this[_0x5f4911(0x449)]=_0x549761,this['_configService']=_0x168786,this[_0x5f4911(0x535)]=_0xd096b5);}[_0x1a9c4c(0x4d7)](_0x154088){const _0x1abfc4=_0x1a9c4c;this[_0x1abfc4(0x2d8)]=_0x154088,this[_0x1abfc4(0x1e4)][_0x1abfc4(0x42d)](_0x154088);}[_0x1a9c4c(0x5b7)](_0x3207d3,_0x4897a5){const _0x368c92=_0x1a9c4c;if(_0x4897a5===_0x10f0dc[_0x368c92(0x32d)]['BASE64']){const _0x22216f=new Image();return _0x22216f[_0x368c92(0x5b8)]=_0x3207d3,_0x22216f;}return this[_0x368c92(0x2d0)]['get'](_0x3207d3);}['addImageSourceCache'](_0xe29d06,_0x5eabe4,_0xc5f4f2){const _0x331581=_0x1a9c4c;_0x5eabe4===_0x10f0dc['ImageSourceType'][_0x331581(0x3bd)]||_0xc5f4f2==null||this[_0x331581(0x2d0)][_0x331581(0x26c)](_0xe29d06,_0xc5f4f2);}async[_0x1a9c4c(0x207)](_0x41854b){const _0x1af809=_0x1a9c4c;try{const _0x17a5de=this[_0x1af809(0x58e)](this[_0x1af809(0x3a0)](),''+_0x41854b),_0x5a151e=(await this[_0x1af809(0x449)][_0x1af809(0x54d)](_0x17a5de))[_0x1af809(0x402)];if(_0x5a151e[_0x1af809(0x317)]&&_0x5a151e[_0x1af809(0x317)][_0x1af809(0x38e)]===_0x4ac219['OK']){const _0x3bb33e=new URL(_0x5a151e[_0x1af809(0x2e5)],this[_0x1af809(0x4e7)]())['toString']();return Promise[_0x1af809(0x2b4)](_0x3bb33e);}return Promise[_0x1af809(0x1c6)](_0x5a151e['error']);}catch(_0x589ebd){return Promise[_0x1af809(0x1c6)](_0x589ebd);}}async['saveImage'](_0x7b84c6){const _0x3a96b5=_0x1a9c4c;let _0x65755f='';if(!_0x416a2a[_0x3a96b5(0x1d1)](_0x7b84c6[_0x3a96b5(0x219)]))return this[_0x3a96b5(0x553)](),Promise[_0x3a96b5(0x1c6)](new Error(_0x10f0dc[_0x3a96b5(0x269)][_0x3a96b5(0x21b)]));if(_0x7b84c6[_0x3a96b5(0x3ce)]>_0x3b0751)return this[_0x3a96b5(0x553)](),Promise['reject'](new Error(_0x10f0dc['ImageUploadStatusType'][_0x3a96b5(0x489)]));try{const _0x25a12b=new FormData();_0x25a12b['append'](_0x3a96b5(0x4b7),_0x7b84c6);const _0x133f8a=this[_0x3a96b5(0x535)][_0x3a96b5(0x1b2)](),_0x346a22=_0x133f8a==null?void 0x0:_0x133f8a['getUnitId']();if(!_0x346a22)throw new Error(_0x3a96b5(0x589));const _0x796d73=this[_0x3a96b5(0x495)]()+_0x3a96b5(0x325)+_0x7b84c6[_0x3a96b5(0x3ce)]['toString']()+'&source='+_0x15145c['UnitEmbedded']+_0x3a96b5(0x290)+encodeURIComponent(_0x346a22),_0x734830=await(await fetch(_0x796d73,{'method':_0x3a96b5(0x3ef),'body':_0x25a12b}))[_0x3a96b5(0x1d5)]();if(typeof _0x734830[_0x3a96b5(0x2ad)]!=_0x3a96b5(0x273))return this['_decreaseWaiting'](),Promise[_0x3a96b5(0x1c6)](new Error(_0x10f0dc[_0x3a96b5(0x269)]['ERROR_IMAGE']));_0x65755f=_0x734830[_0x3a96b5(0x2ad)];}catch{return this[_0x3a96b5(0x553)](),Promise[_0x3a96b5(0x1c6)](new Error(_0x10f0dc[_0x3a96b5(0x269)][_0x3a96b5(0x354)]));}return new Promise((_0x1a154e,_0x784a75)=>{const _0x37d4e7=_0x3a96b5,_0x1f8e4e=new FileReader();_0x1f8e4e[_0x37d4e7(0x538)](_0x7b84c6),_0x1f8e4e[_0x37d4e7(0x55f)]=_0x16d114=>{const _0x4bda20=_0x37d4e7;var _0x5496a6;const _0x4e9ed2=(_0x5496a6=_0x16d114[_0x4bda20(0x45f)])==null?void 0x0:_0x5496a6[_0x4bda20(0x56f)];if(_0x4e9ed2==null){this[_0x4bda20(0x553)](),_0x784a75(new Error(_0x10f0dc[_0x4bda20(0x269)]['ERROR_IMAGE']));return;}const _0x32d3c9=_0x5ee268[_0x4bda20(0x277)][_0x4bda20(0x58b)](0x6);_0x1a154e({'imageId':_0x32d3c9,'imageSourceType':_0x10f0dc[_0x4bda20(0x32d)][_0x4bda20(0x34c)],'source':_0x65755f,'base64Cache':_0x4e9ed2,'status':_0x10f0dc['ImageUploadStatusType'][_0x4bda20(0x28a)]}),this[_0x4bda20(0x553)]();};});}['_getUploadFileURL'](){const _0xba4569=_0x1a9c4c;var _0x85b39d,_0x359190;const _0x4f4457=this[_0xba4569(0x208)][_0xba4569(0x3a6)](_0x564547),_0x3a7c10=this['_configService'][_0xba4569(0x3a6)](_0x17bae2);return(_0x359190=(_0x85b39d=_0x3a7c10==null?void 0x0:_0x3a7c10[_0xba4569(0x2d9)])!=null?_0x85b39d:_0x4f4457)!=null?_0x359190:_0x5960d6;}[_0x1a9c4c(0x3a0)](){const _0x23144c=_0x1a9c4c;var _0x32101d,_0x4a1500;const _0x1f69ca=this[_0x23144c(0x208)][_0x23144c(0x3a6)](_0x461efd),_0x1d32fe=this[_0x23144c(0x208)][_0x23144c(0x3a6)](_0x17bae2);return(_0x4a1500=(_0x32101d=_0x1d32fe==null?void 0x0:_0x1d32fe[_0x23144c(0x373)])!=null?_0x32101d:_0x1f69ca)!=null?_0x4a1500:_0x4bb223;}[_0x1a9c4c(0x4e7)](){const _0x1c7ec1=_0x1a9c4c;var _0x313b7e;const _0x305dee=this[_0x1c7ec1(0x208)][_0x1c7ec1(0x3a6)](_0x17bae2);return(_0x313b7e=_0x305dee==null?void 0x0:_0x305dee[_0x1c7ec1(0x592)])!=null?_0x313b7e:location['origin'];}[_0x1a9c4c(0x58e)](_0x809c52,_0x105452){const _0x2f13eb=_0x1a9c4c;return _0x809c52[_0x2f13eb(0x329)](_0x2f13eb(0x5c5),_0x105452);}['_decreaseWaiting'](){const _0x5950a7=_0x1a9c4c;this[_0x5950a7(0x2d8)]-=0x1,this[_0x5950a7(0x1e4)][_0x5950a7(0x42d)](this[_0x5950a7(0x2d8)]);}},_0x19f7dc[_0x1a9c4c(0x347)]=_0x42c872([_0x59f173(0x0,_0x5ee268[_0x1a9c4c(0x4b4)](_0x519640[_0x1a9c4c(0x544)])),_0x59f173(0x1,_0x5ee268[_0x1a9c4c(0x422)]),_0x59f173(0x2,_0x5ee268[_0x1a9c4c(0x4b4)](_0x5ee268['IUniverInstanceService']))],_0x19f7dc[_0x1a9c4c(0x347)]);var _0x858fd7=Object[_0x1a9c4c(0x340)],_0x587bfa=Object[_0x1a9c4c(0x541)],_0x5872c7=(_0x337d9c,_0x11b199,_0x49c785,_0x5542f)=>{const _0x4e5d9e=_0x1a9c4c;for(var _0x110e35=_0x5542f>0x1?void 0x0:_0x5542f?_0x587bfa(_0x11b199,_0x49c785):_0x11b199,_0x76d66=_0x337d9c[_0x4e5d9e(0x4d8)]-0x1,_0x57b41e;_0x76d66>=0x0;_0x76d66--)(_0x57b41e=_0x337d9c[_0x76d66])&&(_0x110e35=(_0x5542f?_0x57b41e(_0x11b199,_0x49c785,_0x110e35):_0x57b41e(_0x110e35))||_0x110e35);return _0x5542f&&_0x110e35&&_0x858fd7(_0x11b199,_0x49c785,_0x110e35),_0x110e35;},_0x249bae=(_0x380a0e,_0x4e389b)=>(_0x565cb3,_0x5b186d)=>_0x4e389b(_0x565cb3,_0x5b186d,_0x380a0e);let _0x5b2f3d=class extends _0x5ee268[_0x1a9c4c(0x4b2)]{constructor(_0x3223fb,_0x4297dd,_0x45c229,_0x176f4c,_0x9a8437){const _0x1e605f=_0x1a9c4c;super(),this[_0x1e605f(0x474)]=_0x3223fb,this[_0x1e605f(0x535)]=_0x4297dd,this[_0x1e605f(0x285)]=_0x45c229,this['_collaborationSessionService']=_0x176f4c,this[_0x1e605f(0x243)]=_0x9a8437,this[_0x1e605f(0x3b9)](),this[_0x1e605f(0x494)]();}[_0x1a9c4c(0x494)](){const _0x3dee13=_0x1a9c4c,_0x2c9823=async _0x74b1cf=>{const _0x3df89e=_0x2a06;(await this[_0x3df89e(0x49b)][_0x3df89e(0x43f)](_0x74b1cf))[_0x3df89e(0x540)][_0x3df89e(0x246)](_0x2b56b2[_0x3df89e(0x2a1)](_0x320542=>_0x320542[_0x3df89e(0x3f9)]===_0x437f93[_0x3df89e(0x2c5)]['SHOULD_CLOSE_CONN']),_0x2b56b2[_0x3df89e(0x1da)](this[_0x3df89e(0x1f6)]))[_0x3df89e(0x3a7)](_0x1a333a=>{const _0x39552d=_0x3df89e,_0x2bb6e5=_0x1a333a,{reason:_0x1cc881}=_0x2bb6e5['data'];this['_injector'][_0x39552d(0x54d)](_0x56f90f[_0x39552d(0x2cb)])[_0x39552d(0x1c3)]({'type':_0x2e321b[_0x39552d(0x1db)][_0x39552d(0x423)],'content':this['_localeService']['t'](_0x39552d(0x24f))+'('+_0x1cc881+')'}),this[_0x39552d(0x285)][_0x39552d(0x222)](new _0x149ec5[(_0x39552d(0x264))](_0x74b1cf)['id'],!0x1),this[_0x39552d(0x49b)][_0x39552d(0x43c)](_0x74b1cf);});};_0x56990c[_0x3dee13(0x1fd)](this[_0x3dee13(0x535)]['getTypeOfUnitAdded$'](_0x5ee268[_0x3dee13(0x2f7)][_0x3dee13(0x498)]),this[_0x3dee13(0x535)][_0x3dee13(0x2bb)](_0x5ee268[_0x3dee13(0x2f7)][_0x3dee13(0x1ec)]))[_0x3dee13(0x246)](_0x2b56b2[_0x3dee13(0x42f)](_0x2fd810=>_0x2fd810[_0x3dee13(0x4ef)]()),_0x2b56b2[_0x3dee13(0x2a1)](_0x41f743=>!_0x5ee268[_0x3dee13(0x4a7)](_0x41f743)),_0x2b56b2[_0x3dee13(0x1da)](this[_0x3dee13(0x1f6)]))[_0x3dee13(0x3a7)](_0x1ee99b=>{_0x2c9823(_0x1ee99b);});}[_0x1a9c4c(0x3b9)](){const _0x5e39eb=_0x1a9c4c,_0x3fd041=async _0x501d76=>{const _0x56b79f=_0x2a06;(await this[_0x56b79f(0x49b)]['requireSession'](_0x501d76))[_0x56b79f(0x540)][_0x56b79f(0x246)](_0x2b56b2[_0x56b79f(0x2a1)](_0x2fe87c=>_0x2fe87c[_0x56b79f(0x3f9)]===_0x437f93['CollaborationEvent'][_0x56b79f(0x54e)]),_0x2b56b2['takeUntil'](this[_0x56b79f(0x1f6)]))[_0x56b79f(0x3a7)](_0x142837=>{const _0xd6d35e=_0x56b79f,_0x63f74f=_0x142837,{objectId:_0x10f6df}=_0x63f74f[_0xd6d35e(0x5ac)],_0x4f60b2=this[_0xd6d35e(0x474)][_0xd6d35e(0x54d)](_0x2f74a8[_0xd6d35e(0x3d9)]);_0x10f6df===_0x501d76?_0x4f60b2[_0xd6d35e(0x351)](_0x501d76):_0x4f60b2[_0xd6d35e(0x564)](_0x501d76,_0x10f6df);});};_0x56990c[_0x5e39eb(0x1fd)](this['_univerInstanceService'][_0x5e39eb(0x2bb)](_0x5ee268[_0x5e39eb(0x2f7)]['UNIVER_SHEET']),this['_univerInstanceService']['getTypeOfUnitAdded$'](_0x5ee268['UniverInstanceType'][_0x5e39eb(0x1ec)]))[_0x5e39eb(0x246)](_0x2b56b2[_0x5e39eb(0x42f)](_0x5d0d99=>_0x5d0d99[_0x5e39eb(0x4ef)]()),_0x2b56b2[_0x5e39eb(0x2a1)](_0x2fc761=>!_0x5ee268[_0x5e39eb(0x4a7)](_0x2fc761)),_0x2b56b2[_0x5e39eb(0x1da)](this[_0x5e39eb(0x1f6)]))[_0x5e39eb(0x3a7)](_0x30bb01=>{_0x3fd041(_0x30bb01);});}};_0x5b2f3d=_0x5872c7([_0x249bae(0x0,_0x5ee268['Inject'](_0x5ee268[_0x1a9c4c(0x418)])),_0x249bae(0x1,_0x5ee268[_0x1a9c4c(0x39a)]),_0x249bae(0x2,_0x5ee268[_0x1a9c4c(0x443)]),_0x249bae(0x3,_0x5ee268[_0x1a9c4c(0x4b4)](_0x19f7dc[_0x1a9c4c(0x569)])),_0x249bae(0x4,_0x5ee268[_0x1a9c4c(0x4b4)](_0x5ee268[_0x1a9c4c(0x25a)]))],_0x5b2f3d);var _0x510e38=Object[_0x1a9c4c(0x340)],_0x52385d=Object[_0x1a9c4c(0x541)],_0x45b2a9=(_0x35dbfc,_0x19b1b3,_0x1755d6,_0x17807f)=>{const _0x91c3c0=_0x1a9c4c;for(var _0x4f825c=_0x17807f>0x1?void 0x0:_0x17807f?_0x52385d(_0x19b1b3,_0x1755d6):_0x19b1b3,_0x55e599=_0x35dbfc[_0x91c3c0(0x4d8)]-0x1,_0x7fce98;_0x55e599>=0x0;_0x55e599--)(_0x7fce98=_0x35dbfc[_0x55e599])&&(_0x4f825c=(_0x17807f?_0x7fce98(_0x19b1b3,_0x1755d6,_0x4f825c):_0x7fce98(_0x4f825c))||_0x4f825c);return _0x17807f&&_0x4f825c&&_0x510e38(_0x19b1b3,_0x1755d6,_0x4f825c),_0x4f825c;},_0x2fccc7=(_0x3df7b2,_0x11520b)=>(_0x1afbbf,_0x232714)=>_0x11520b(_0x1afbbf,_0x232714,_0x3df7b2);_0x19f7dc[_0x1a9c4c(0x57a)]=class{constructor(_0x314a81,_0x42c5d4){const _0x19a1b0=_0x1a9c4c;this['_configService']=_0x314a81,this[_0x19a1b0(0x449)]=_0x42c5d4;}async[_0x1a9c4c(0x41b)](_0x41c9b4,_0x16425f){const _0x44e40a=_0x1a9c4c;var _0x1f2ac5;const {unitID:_0xfed237,type:_0x132dcf,revision:_0x5959e1=0x0}=_0x16425f,_0x3a4f89=this[_0x44e40a(0x3ca)]()+'/'+_0x132dcf+_0x44e40a(0x584)+_0xfed237+_0x44e40a(0x4a4)+_0x5959e1,_0x3d784c=(await this['_httpService']['get'](_0x3a4f89))[_0x44e40a(0x402)],_0x2aa486=(_0x1f2ac5=_0x3d784c[_0x44e40a(0x57d)])==null?void 0x0:_0x1f2ac5[_0x44e40a(0x52c)];if(_0x2aa486){const _0x3b76b2=_0x2aa486==null?void 0x0:_0x2aa486[_0x44e40a(0x261)],_0x453658=_0x437f93[_0x44e40a(0x575)]['encode'](_0x437f93[_0x44e40a(0x1d7)](_0x3b76b2));_0x2aa486[_0x44e40a(0x261)]=_0x453658,Object['entries'](_0x2aa486[_0x44e40a(0x4d3)])[_0x44e40a(0x506)](([,_0xfc28ca])=>{const _0x2dd108=_0x44e40a,_0x46cf14=_0xfc28ca[_0x2dd108(0x261)],_0x559c7c=_0x437f93['textEncoder']['encode'](_0x437f93['b64DecodeUnicode'](_0x46cf14));_0xfc28ca[_0x2dd108(0x261)]=_0x559c7c;});}return _0x3d784c;}async[_0x1a9c4c(0x1cc)](_0x3189b5,_0x79f363){const _0x34c350=_0x1a9c4c,{unitID:_0x1d2ecf,type:_0x32a783,blockID:_0x29eaba}=_0x79f363,_0x27e832=this['_getAPIPrefix']()+'/'+_0x32a783+_0x34c350(0x584)+_0x1d2ecf+_0x34c350(0x441)+_0x29eaba;return(await this['_httpService'][_0x34c350(0x54d)](_0x27e832))[_0x34c350(0x402)];}async['getDeserializedSheetBlock'](_0x545629,_0x4e0ae9){const _0x5a8d88=_0x1a9c4c,{unitID:_0x210f22,type:_0x3a5a31,blockID:_0x21bfd1}=_0x4e0ae9,_0x2933b8=this['_getAPIPrefix']()+'/block/'+_0x3a5a31+_0x5a8d88(0x584)+_0x210f22+_0x5a8d88(0x441)+_0x21bfd1;return(await this[_0x5a8d88(0x449)][_0x5a8d88(0x54d)](_0x2933b8))[_0x5a8d88(0x402)];}async[_0x1a9c4c(0x28c)](_0x48cb66,_0x254596){const _0x3de155=_0x1a9c4c,{unitID:_0x49e440,type:_0x2d1456,from:_0x41f771,to:_0x4335d5}=_0x254596,_0x21cfaa=this['_getAPIPrefix']()+'/'+_0x2d1456+_0x3de155(0x584)+_0x49e440+'/fetchmissing?from='+_0x41f771+_0x3de155(0x4a2)+_0x4335d5;return(await this[_0x3de155(0x449)][_0x3de155(0x54d)](_0x21cfaa))[_0x3de155(0x402)];}[_0x1a9c4c(0x3ca)](){const _0xac94fa=_0x1a9c4c;var _0x3f9ea8;return(_0x3f9ea8=this[_0xac94fa(0x208)][_0xac94fa(0x3a6)](_0x496fb6))!=null?_0x3f9ea8:this[_0xac94fa(0x30f)]();}[_0x1a9c4c(0x30f)](){const _0xa18c92=_0x1a9c4c;var _0x1df657,_0x2083c6;const _0x44c0c4=this['_configService'][_0xa18c92(0x3a6)](_0x8e4b39),_0x20eb9d=this[_0xa18c92(0x208)][_0xa18c92(0x3a6)](_0x17bae2);return(_0x2083c6=(_0x1df657=_0x20eb9d==null?void 0x0:_0x20eb9d[_0xa18c92(0x2f9)])!=null?_0x1df657:_0x44c0c4)!=null?_0x2083c6:_0x549ccb;}async[_0x1a9c4c(0x37b)](_0x1ccdb7,_0x432d4b){const _0x51576b=_0x1a9c4c,_0x10ea85=_0x51576b(0x433)+_0x432d4b[_0x51576b(0x219)]+_0x51576b(0x584)+_0x432d4b[_0x51576b(0x447)]+'/resources';return(await this['_httpService'][_0x51576b(0x54d)](_0x10ea85,{'params':{'resourceId':JSON[_0x51576b(0x301)](_0x432d4b['resourceIDs'])}}))[_0x51576b(0x402)];}[_0x1a9c4c(0x48c)](){const _0x2e22fb=_0x1a9c4c;throw new Error(_0x2e22fb(0x311));}['saveSheetBlock'](){throw new Error('This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!');}['saveChangeset'](){throw new Error('This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!');}[_0x1a9c4c(0x3ac)](){const _0x269200=_0x1a9c4c;throw new Error(_0x269200(0x311));}},_0x19f7dc[_0x1a9c4c(0x57a)]=_0x45b2a9([_0x2fccc7(0x0,_0x5ee268[_0x1a9c4c(0x422)]),_0x2fccc7(0x1,_0x5ee268[_0x1a9c4c(0x4b4)](_0x519640[_0x1a9c4c(0x544)]))],_0x19f7dc[_0x1a9c4c(0x57a)]);var _0x31ad34=Object[_0x1a9c4c(0x340)],_0x4d5af1=Object[_0x1a9c4c(0x541)],_0x571c93=(_0x1bc21b,_0x156c6f,_0x1baa1a,_0x5e6038)=>{const _0x17cb09=_0x1a9c4c;for(var _0x3778df=_0x5e6038>0x1?void 0x0:_0x5e6038?_0x4d5af1(_0x156c6f,_0x1baa1a):_0x156c6f,_0x15f642=_0x1bc21b[_0x17cb09(0x4d8)]-0x1,_0x188042;_0x15f642>=0x0;_0x15f642--)(_0x188042=_0x1bc21b[_0x15f642])&&(_0x3778df=(_0x5e6038?_0x188042(_0x156c6f,_0x1baa1a,_0x3778df):_0x188042(_0x3778df))||_0x3778df);return _0x5e6038&&_0x3778df&&_0x31ad34(_0x156c6f,_0x1baa1a,_0x3778df),_0x3778df;},_0x46c394=(_0x111f3f,_0x5a9ca6)=>(_0xebe18e,_0x3482d)=>_0x5a9ca6(_0xebe18e,_0x3482d,_0x111f3f);let _0x2bea9a=class extends _0x5ee268[_0x1a9c4c(0x3b8)]{constructor(_0x2394c6,_0x801de4,_0xb1a9ab,_0x28f89e,_0x304649){const _0xaa024d=_0x1a9c4c;super(_0x2394c6,_0x801de4,_0xb1a9ab),this[_0xaa024d(0x2df)]=_0x28f89e,this[_0xaa024d(0x2a9)]=_0x304649;}[_0x1a9c4c(0x1eb)](_0x4201ba,_0x50c00c){const _0x363583=_0x1a9c4c,_0x39c2a4=this['_getUndoStack'](_0x4201ba);if(_0x39c2a4)try{const _0x2af467=this[_0x363583(0x525)](_0x39c2a4,_0x50c00c);this[_0x363583(0x37a)](_0x4201ba,_0x2af467);}catch(_0x2cae0e){this[_0x363583(0x2a9)][_0x363583(0x317)](_0x363583(0x2c7),_0x2cae0e),this[_0x363583(0x43b)](_0x4201ba);}const _0x105f3d=this[_0x363583(0x2e6)](_0x4201ba);if(_0x105f3d)try{const _0xffc40c=this[_0x363583(0x525)](_0x105f3d,_0x50c00c);this[_0x363583(0x2e0)](_0x4201ba,_0xffc40c);}catch(_0x417c83){this[_0x363583(0x2a9)][_0x363583(0x317)](_0x417c83),this[_0x363583(0x54f)](_0x4201ba);}}['_clearUndo'](_0x104e88){const _0x485c06=_0x1a9c4c,_0x2d1989=this[_0x485c06(0x380)](_0x104e88);_0x2d1989&&(_0x2d1989['length']=0x0,this['_updateStatus']());}[_0x1a9c4c(0x54f)](_0x336347){const _0x2072e9=_0x1a9c4c,_0xfa5342=this[_0x2072e9(0x2e6)](_0x336347);_0xfa5342&&(_0xfa5342[_0x2072e9(0x4d8)]=0x0,this['_updateStatus']());}['_substituteUndoStack'](_0x2bcd76,_0x5cc494){const _0x5e2e5b=_0x1a9c4c;this['_undoStacks'][_0x5e2e5b(0x26c)](_0x2bcd76,_0x5cc494),this[_0x5e2e5b(0x28b)]();}['_substituteRedoStack'](_0x13a4ab,_0x56cb23){const _0x2ca270=_0x1a9c4c;this[_0x2ca270(0x440)][_0x2ca270(0x26c)](_0x13a4ab,_0x56cb23),this[_0x2ca270(0x28b)]();}[_0x1a9c4c(0x525)](_0x3a7bc5,_0x59b42e){const _0x29497e=_0x1a9c4c,_0x44cbad=[];let _0xd14426=_0x59b42e,_0x17e89f=_0x59b42e;for(let _0x11da87=_0x3a7bc5['length']-0x1;_0x11da87>=0x0;_0x11da87--){const {unitID:_0x44bf3d,undoMutations:_0x54c307,redoMutations:_0x534725}=_0x3a7bc5[_0x11da87],_0x2bca62=this[_0x29497e(0x2df)][_0x29497e(0x250)](_0xd14426,_0x54c307),_0x45158f=this[_0x29497e(0x2df)][_0x29497e(0x250)](_0x17e89f,_0x534725);if(_0x437f93[_0x29497e(0x229)](_0x2bca62)||_0x437f93['isTransformMutationsWithChangesetFailure'](_0x45158f)){this[_0x29497e(0x2a9)]['error'](_0x29497e(0x2c7),'transformStack\x20failed!',_0x2bca62,_0x45158f);break;}_0xd14426=_0x2bca62['c1Prime'],_0x17e89f=_0x45158f['c1Prime'],_0x44cbad['push']({'unitID':_0x44bf3d,'undoMutations':_0x2bca62['m2Prime'],'redoMutations':_0x45158f[_0x29497e(0x2b9)]});}return _0x44cbad[_0x29497e(0x22d)]();}};_0x2bea9a=_0x571c93([_0x46c394(0x0,_0x5ee268[_0x1a9c4c(0x39a)]),_0x46c394(0x1,_0x5ee268[_0x1a9c4c(0x386)]),_0x46c394(0x2,_0x5ee268[_0x1a9c4c(0x322)]),_0x46c394(0x3,_0x437f93[_0x1a9c4c(0x1c7)]),_0x46c394(0x4,_0x5ee268[_0x1a9c4c(0x2ff)])],_0x2bea9a);class _0x16c2fc extends _0x5ee268[_0x1a9c4c(0x4b2)]{constructor(){const _0x538bad=_0x1a9c4c;super(),_0x1328f6(this,_0x538bad(0x499)),this[_0x538bad(0x499)]=_0x56990c[_0x538bad(0x313)](window,_0x538bad(0x40d))[_0x538bad(0x246)](_0x56990c[_0x538bad(0x1da)](this[_0x538bad(0x1f6)]),_0x56990c[_0x538bad(0x54b)](0x1),_0x56990c[_0x538bad(0x23a)](void 0x0));}[_0x1a9c4c(0x421)](_0x1724a5,_0x146112,_0x1fc623=!0x1){const _0x3691fc=_0x1a9c4c,_0x44b576=new URL(window[_0x3691fc(0x367)][_0x3691fc(0x572)]);_0x44b576[_0x3691fc(0x43e)][_0x3691fc(0x26c)](_0x1724a5,_0x146112),_0x1fc623?window['history'][_0x3691fc(0x580)]('','',_0x44b576[_0x3691fc(0x2d7)]()):window['history']['pushState']('','',_0x44b576[_0x3691fc(0x2d7)]());}['removeParam'](_0x292351,_0x607492=!0x1){const _0x4c3baf=_0x1a9c4c,_0x54b1c6=new URL(window['location'][_0x4c3baf(0x572)]);_0x54b1c6['searchParams'][_0x4c3baf(0x1c8)](_0x292351),_0x607492?window[_0x4c3baf(0x1fa)][_0x4c3baf(0x580)]('','',_0x54b1c6[_0x4c3baf(0x2d7)]()):window[_0x4c3baf(0x1fa)]['pushState']('','',_0x54b1c6[_0x4c3baf(0x2d7)]());}[_0x1a9c4c(0x37c)](_0xa3717b){const _0x47a737=_0x1a9c4c;var _0x197686;return(_0x197686=new URL(window['location'][_0x47a737(0x572)])[_0x47a737(0x43e)]['get'](_0xa3717b))!=null?_0x197686:void 0x0;}}var _0x1f06d9=Object[_0x1a9c4c(0x340)],_0x18b01c=Object[_0x1a9c4c(0x541)],_0x1f1376=(_0x21da27,_0x525940,_0x1dee43)=>_0x525940 in _0x21da27?_0x1f06d9(_0x21da27,_0x525940,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x1dee43}):_0x21da27[_0x525940]=_0x1dee43,_0xbb2645=(_0x1d7063,_0x1702cf,_0x43a321,_0x44cf2a)=>{const _0x168790=_0x1a9c4c;for(var _0x330576=_0x44cf2a>0x1?void 0x0:_0x44cf2a?_0x18b01c(_0x1702cf,_0x43a321):_0x1702cf,_0x28b20b=_0x1d7063[_0x168790(0x4d8)]-0x1,_0x5cafe2;_0x28b20b>=0x0;_0x28b20b--)(_0x5cafe2=_0x1d7063[_0x28b20b])&&(_0x330576=(_0x44cf2a?_0x5cafe2(_0x1702cf,_0x43a321,_0x330576):_0x5cafe2(_0x330576))||_0x330576);return _0x44cf2a&&_0x330576&&_0x1f06d9(_0x1702cf,_0x43a321,_0x330576),_0x330576;},_0x207f3c=(_0x23e884,_0x2fe42f)=>(_0x543e99,_0x6d0b5e)=>_0x2fe42f(_0x543e99,_0x6d0b5e,_0x23e884),_0x489880=(_0x2df14c,_0x2902cf,_0x38c66c)=>_0x1f1376(_0x2df14c,_0x2902cf+'',_0x38c66c);const _0x5329fc=_0x1a9c4c(0x241);_0x19f7dc[_0x1a9c4c(0x452)]=class extends _0x5ee268[_0x1a9c4c(0x202)]{constructor(_0x3ae42f=_0x552a85,_0x36cf9b,_0x272c3,_0x3095f1,_0xb6007b){const _0x449159=_0x1a9c4c;super(),this[_0x449159(0x597)]=_0x3ae42f,this['_logService']=_0x36cf9b,this[_0x449159(0x377)]=_0x272c3,this['_injector']=_0x3095f1,this[_0x449159(0x208)]=_0xb6007b;const {..._0x15f7e9}=this[_0x449159(0x597)];this[_0x449159(0x208)][_0x449159(0x319)](_0x17bae2,_0x15f7e9);}[_0x1a9c4c(0x598)](){const _0xc05d49=_0x1a9c4c;this[_0xc05d49(0x2a2)](),_0x5ee268[_0xc05d49(0x30e)](this[_0xc05d49(0x474)],[[_0x48a722],[_0x19f7dc[_0xc05d49(0x36e)]],[_0x5b2f3d]]);}[_0x1a9c4c(0x2a4)](){const _0x115919=_0x1a9c4c;_0x5ee268[_0x115919(0x30e)](this['_injector'],[[_0x537d40]]);}[_0x1a9c4c(0x4bf)](){const _0x4c90a6=_0x1a9c4c;this[_0x4c90a6(0x4a0)]();}[_0x1a9c4c(0x2a2)](){const _0x50dab2=_0x1a9c4c;var _0x5bf613,_0x1abf29,_0x3ce188,_0x46f477;this[_0x50dab2(0x474)][_0x50dab2(0x252)](_0x5ee268[_0x50dab2(0x493)])&&this[_0x50dab2(0x2a9)][_0x50dab2(0x317)](_0x50dab2(0x2b5),_0x50dab2(0x5ca));let _0x34e937=[[_0x5ee268[_0x50dab2(0x493)],{'useClass':_0x2bea9a}],[_0x19f7dc[_0x50dab2(0x569)]],[_0x94aa63],[_0x519640['HTTPService']],[_0x1be3ae,{'useClass':_0x16c2fc}],[_0xd4878c],[_0x19f7dc[_0x50dab2(0x59e)]],[_0x519640['WebSocketService']],[_0x41bd09],[_0x19e584],[_0x174d0a],[_0x3c54ae],[_0x5a9cd1],[_0x50ec40],[_0x37f911],[_0x5b2f3d],[_0x411a7c,{'useClass':(_0x1abf29=(_0x5bf613=this[_0x50dab2(0x597)])==null?void 0x0:_0x5bf613['socketService'])!=null?_0x1abf29:_0x19f7dc['CollaborationSocketService']}],[_0x519640[_0x50dab2(0x3e4)],{'useClass':_0x519640[_0x50dab2(0x2e9)]}],[_0x437f93[_0x50dab2(0x295)],{'useClass':_0x19f7dc[_0x50dab2(0x57a)]}],[_0x5ee268['IAuthzIoService'],{'useClass':_0x19f7dc[_0x50dab2(0x41f)]}],[_0x10f0dc[_0x50dab2(0x4e3)],{'useClass':_0x19f7dc[_0x50dab2(0x347)]}],[_0x19f7dc[_0x50dab2(0x554)]],[_0x19f7dc['DataLoaderController']],[_0x19f7dc[_0x50dab2(0x4de)]],[_0x537d40],[_0x48a722]];(_0x3ce188=this[_0x50dab2(0x597)])!=null&&_0x3ce188[_0x50dab2(0x529)]&&_0x34e937[_0x50dab2(0x2ee)]([_0x2c4a47,{'useClass':_0x3f784d}]),_0x34e937=_0x5ee268['mergeOverrideWithDependencies'](_0x34e937,(_0x46f477=this[_0x50dab2(0x597)])==null?void 0x0:_0x46f477[_0x50dab2(0x306)]),_0x34e937[_0x50dab2(0x506)](_0x3a0674=>this['_injector']['add'](_0x3a0674)),this[_0x50dab2(0x4c3)]();}[_0x1a9c4c(0x4a0)](){const _0x4ee305=_0x1a9c4c;this[_0x4ee305(0x337)](this[_0x4ee305(0x377)][_0x4ee305(0x3ab)](_0x5ee268[_0x4ee305(0x2f7)]['UNIVER_DOC'],[_0xfecd41])),this[_0x4ee305(0x337)](this['_renderManagerService'][_0x4ee305(0x3ab)](_0x5ee268[_0x4ee305(0x2f7)][_0x4ee305(0x498)],[_0x173209]));}[_0x1a9c4c(0x4c3)](){const _0x446158=_0x1a9c4c;var _0x5d0fc7,_0x5e0ecd;this[_0x446158(0x474)][_0x446158(0x54d)](_0x519640[_0x446158(0x544)])[_0x446158(0x1b7)]({'priority':0x14,'interceptor':_0x519640[_0x446158(0x212)]({'maxParallel':0x6})}),this[_0x446158(0x474)][_0x446158(0x54d)](_0x50ec40),(_0x5d0fc7=this[_0x446158(0x597)])!=null&&_0x5d0fc7['enableOfflineEditing']||this[_0x446158(0x474)][_0x446158(0x54d)](_0x19f7dc[_0x446158(0x59e)])[_0x446158(0x4e1)](),(_0x5e0ecd=this[_0x446158(0x597)])!=null&&_0x5e0ecd[_0x446158(0x3ae)]&&this['_injector']['get'](_0x5a9cd1),this[_0x446158(0x474)]['get'](_0x19f7dc[_0x446158(0x554)]),this['_injector']['has'](_0x19f7dc[_0x446158(0x4de)])&&this[_0x446158(0x474)]['get'](_0x19f7dc['DesktopCollaborationStatusDisplayController']);}},_0x489880(_0x19f7dc[_0x1a9c4c(0x452)],_0x1a9c4c(0x1a9),_0x5329fc),_0x19f7dc[_0x1a9c4c(0x452)]=_0xbb2645([_0x5ee268['DependentOn'](_0x437f93[_0x1a9c4c(0x35d)]),_0x207f3c(0x1,_0x5ee268[_0x1a9c4c(0x2ff)]),_0x207f3c(0x2,_0x454685['IRenderManagerService']),_0x207f3c(0x3,_0x5ee268[_0x1a9c4c(0x4b4)](_0x5ee268['Injector'])),_0x207f3c(0x4,_0x5ee268[_0x1a9c4c(0x422)])],_0x19f7dc[_0x1a9c4c(0x452)]),_0x19f7dc['AUTHZ_URL_KEY']=_0x33b45d,_0x19f7dc['COLLAB_SUBMIT_CHANGESET_URL_KEY']=_0x2d1c45,_0x19f7dc['COLLAB_WEB_SOCKET_URL_KEY']=_0x4684ef,_0x19f7dc[_0x1a9c4c(0x3e1)]=_0x319e47,_0x19f7dc[_0x1a9c4c(0x59b)]=_0x2e8601,_0x19f7dc[_0x1a9c4c(0x581)]=_0x37f911,_0x19f7dc['HEARTBEAT_INTERVAL_KEY']=_0x41bc7c,_0x19f7dc[_0x1a9c4c(0x555)]=_0x4d3fc9,_0x19f7dc[_0x1a9c4c(0x471)]=_0x411a7c,_0x19f7dc[_0x1a9c4c(0x29b)]=_0x1be3ae,_0x19f7dc[_0x1a9c4c(0x26a)]=_0x9bc94d,_0x19f7dc[_0x1a9c4c(0x4cf)]=_0x2e60e8,_0x19f7dc[_0x1a9c4c(0x4c6)]=_0x981892,_0x19f7dc['SEND_CHANGESET_TIMEOUT_KEY']=_0x10223c,_0x19f7dc[_0x1a9c4c(0x291)]=_0x8e4b39,_0x19f7dc[_0x1a9c4c(0x4fb)]=_0x496fb6,_0x19f7dc[_0x1a9c4c(0x559)]=_0x3477b6,_0x19f7dc[_0x1a9c4c(0x357)]=_0x2d8667,_0x19f7dc['WebURLService']=_0x16c2fc,_0x19f7dc[_0x1a9c4c(0x1b3)]=_0x580925,_0x19f7dc[_0x1a9c4c(0x42e)]=_0x28244a,Object[_0x1a9c4c(0x340)](_0x19f7dc,Symbol[_0x1a9c4c(0x57f)],{'value':_0x1a9c4c(0x2ae)});}));function _0x59d9(){const _0x4d85c9=['[CollaborationSessionService]','transformIMECache','_collabSessionService','next','serializeCombRequest','map','_updateState','_getCtorByUniverType','_exhaustRemoteChangesetQueue','/universer-api/snapshot/','LIVESHARE_REQUEST_HOST','UniverRpc','reconnect','EmptyMutation','connection\x20error','update','_stopTelemetryCollaborationNewChangeset','_clearUndo','closeSession','_setupBeforeClosingHandler','searchParams','requireSession','_redoStacks','/block/','onCommentUpdate','IPermissionService','hasOwnProperty','getWorkbookSelections','IRemoteInstanceService','unitID','csAckEvent','_httpService','_docSkeleton','_roomMembers','@univerjs/ui','toggleOnline','combineLatest','clipPath','YUUMI_SUBSCRIPTION_NOT_FOUND','call','UniverCollaborationClientPlugin','_createInitialState','some','_unlockTransition','color','OTHER_CLIENTS_EDITING','commentUpdateEvent','_getCurrentRevision','RefRangeService','getItem','unsubscribe','510MyPegW','_hideTimer','target','CONNECTOR_DATA_TOO_LARGE','Workbook','submit\x20changeset\x20error!','_id','SnapshotService','socket\x20close','rxjs','MSG_FOR_ERROR','encodeURIComponent','fromCollab','take','LOCAL_CACHE_INTERVAL','35598cJnvpC','sendChangesetTimeout','_scheduleClearOtherTimer','getAncestorScale','startTime','ICollaborationSocketService','NEW_CHANGESETS','SNAPSHOT_HAS_BEEN_REMOVED','_injector','text','startColumn','[CollaborationController]:\x20invalid\x20univer\x20type:\x20','top','hide','newValue','@univerjs/core','CompressMutationService','YUUMI_URL_COL_OUT_OF_RANGE','5zofQXK','_instanceService','handleInsertRangeMoveDown','currentColor','defIds','displayName','APPLY_REJECT','[CollaborationEntity]','React','getUnitType','SheetsSelectionsService','ERROR_EXCEED_SIZE','INVALID_ARGUMENT','startsWith','saveSnapshot','_commandService','NOT_COLLAB','getRenderById','_notificationService','liveShareOperation','compose','IUndoRedoService','_initCloseConn','_getUploadFileURL','selections','_transformUndoredo','UNIVER_SHEET','urlChange$','transformSelections','_collaborationSessionService','PSEUDO_FETCH_MISSING_RESULT','_cursorInfo$','image/gif','makeDirty','_registerRenderDependencies','TRANSFORM_CHANGE_OBSERVABLE_TYPE','&to=','UnitEmbedded','/rev/','height','create','isInternalEditorID','_updateCollabCursors','createCollaborator','_cursorShapes','univer-pro.collaboration-client.single-active-unit-service','[OfflineState]:\x20received\x20acknowledgement.','hidden','APPLY_NON_SEQUENTIAL_REVISION','objectID','COLORS','_colorAssignService','RxDisposable','@univerjs/design','Inject','onTransformChange$','_saveCache','file','deleteCollaborator','Rectangle','_urlService','sequenceExecute','setCurrentUser','isActive','CHANGESET_REJ','onRendered','_status$','_initEventListeners','roomMembers$','_initModules','addObject','toDisposable','RETRY_CONNECTING_MAX_COUNT_KEY','UNIVER_PROJECT','_updateSubUnitFromURLParams','close','all','COLLAB_SUBMIT_CHANGESET_URL','xlink:href','handleMoveRange','beginPath','LOGIN_URL_KEY','add','_scheduleHeartbeat','#fff','sheets','onMissingChangesets','url(#on-line-single_clip0_910_349)','_transformSelections','setWaitCount','length','_sendHeartbeat','debounce','_clearCollaborationTimeoutTimer','moveTo','min','DesktopCollaborationStatusDisplayController','EffectRefRangId','unit-cache-','disableLocalCache','MergeInterceptorFactory','IImageIoService','getUnit','_clearTimeoutTimer','routeKey','_getDownloadEndpointURL','_applyRemoteChangeset','_clearScheduledTask','_listenToOfflineEvent','newCsEvent','_state$','SUBMIT_CHANGESET','UNIVER_UNKNOWN','getUnitId','YUUMI_RATE_OVER_LIMIT','getMember','HttpExport','DocIMEInputManagerService','method','UniverCore','Vector2','localeService','post','getViewport','socket$','SNAPSHOT_URL_KEY','getInterceptPoints','unload','_startTelemetryCollaborationNewChangeset','@univerjs/sheets-ui','revision','status$','gold400','onlineStatusIcon','children','_handleHeartbeatEvent','forEach','[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.','_queuedRemoteChangesets','@univerjs/drawing','InsertSheetMutation','PENDING','updateMember','setUndoRedoMutationParamsCache','startRow','skeleton','transformChangesets','updatePermissionObjEvent','ws://127.0.0.1:8000/universer-api/comb/connect','CHANGESET_ACK','/object/','UNDEFINED','_initResize','subunit','setInterval','getRelativeToViewportCoord','actions','_transformIMECache','INTERNAL_ERROR','USERS_ENTER','assign','@univerjs-pro/license','_clearLocalCache','collabCursorState$','APPLY_PERMISSION_DENIED','_awaitingChangeset','_http','_transformStack','_candidateSocket','rxjs/operators','_getSheetObject','enableSingleActiveInstanceLock','_initStatusListener','x-univer-host','workbook','/universer-api/authz','getCellPositionByOffset','m1Prime','concatMap','_acknowledgedAwaitingChangeset','171ApTIfP','indexOf','changesets','_univerInstanceService','isValidRectRange','_handleJoinEvent','readAsDataURL','sessionStatus$','handleInsertRangeMoveRight','RevisionService','key','_schedule','useCallback','operators','event$','getOwnPropertyDescriptor','_getAnchorBounding','getUnitStatus$','HTTPService','TEXT_RANGE_LAYER_INDEX','unknown','HttpImport','saveOfflineData','createIdentifier','debounceTime','shareReplay','fromEventSubject','get','UPDATE_PERMISSION_OBJ','_clearRedo','unshift','COMPLETION_FINISHED','[CollaborationSession]:\x20should\x20not\x20send\x20message\x20when\x20the\x20session\x20is\x20offline!','_decreaseWaiting','CollaborationController','HEARTBEAT_TIMEOUT_KEY','clearTimeout','setTimeout','synced','SessionStatus','SEND_CHANGESET_TIMEOUT','_entities','@univerjs-pro/collaboration','auth.needGotoLoginAlert','_localCacheService','onload','asObservable','_syncEditingCollabCursor','setShapeProps','useObservable','refreshPermission','_handleHover','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','_state','number','CollaborationSessionService','_socketMessageSubscription','engine','_startSheetCollabCursor','AWAITING','_waitForHeartbeatResponse','result','registerComponent','DisposableCollection','href','listCollaborators','onPointerMove$','textEncoder','onMouseMove','_hovered','fetching\x20the\x20latest\x20document\x20from\x20the\x20server.','collab-rect-range-','SnapshotServerOverHTTPService','conflict','offline','snapshot','updateOfflineData','toStringTag','replaceState','CommentService','random','requestParams','/unit/','UniverIcon','UniverNetwork','socket\x20open.','Shape','unitId\x20is\x20not\x20found','_onCombEvent','generateRandomId','_initStatusComponent','uni.network.url-service','_replaceFileID','isPermissionRej','Unknown\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','_themeService','downloadEndpointUrl','169768VqICxO','patch','tag','CONFLICT','_config','onStarting','onTransformRemoteChangesetByIMECache','_collabCursorController','CollaborationStatusDisplay','Rect','_send','LocalCacheService','not_collab','ILocalStorageService','_updateURLWithCurrentState','fetch_missing','_executeRemoteChangeset','_cachedData','pending','_textBubble','collabStatus.syncing','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','getCurrentUser','/universer-api/oidc/authpage','cmd','data','_sheetSkeletonManagerService','loadSheet','onStateChange','collabStatus.conflict','DocCollaborationEntity','objectType','session.collaboration-timeout','_messageService','getCollabCursors$','[OfflineState]:\x20received\x20rejection.','getImageSourceCache','src','forwardRef','_sheetTransformSelectionsService','toggleOffline','icon','_createHandler','_selfUnitIDs','JOINING','LIVESHARE_FETCH_OPERATIONS','_retryCount','extend','_docSkeletonManagerService','_replayCachedMutations','{fileID}','collabStatus.fetchMiss','labelPosition','_getLoginPath','isArray','you\x20should\x20override\x20\x22IUndoRedoService\x22\x20provided\x20in\x20\x22core\x22\x20package!','_onConnectionFailed','WebSocketService','appendMutation','failed\x20to\x20apply\x20missed\x20changesets!','_singleActiveUnitService','font','action','LICENSE_IMPORT_SIZE_EXCEEDED','getTime','Error\x20on\x20receiving\x20event','state$','SheetCollaborationEntity','pluginName','_collaborationTimeoutTimer','_scene','isTransformMutationFailure','concat','[CollaborationState]:\x20apply\x20error!','_type','fillText','/collaborator','getFocusedUnit','deserializeToCombResponse','_anchor','280555ImrvKv','capture','registerHTTPInterceptor','_showConflictNotification','SNAPSHOT_INVALID_SNAPSHOT','_localStorageService','MoveRangeCommandId','awaitingChangeset','deserializeRangeWithSheet','currentTheme$','registerBeforeClose','entries','attrs','/allowed','show','[DataLoaderController]','_updateLocalCache','reject','ITransformService','delete','createSocket','_collabCursorState$','interceptor','getSheetBlock','_pendingMutations','SetDocZoomRatioOperation','svg','apply','includes','_isPermissionRej','UNKNOWN_CMD','isTransformMutationsWithChangesetSuccess','json','@univerjs/sheets','b64DecodeUnicode','3861804wWhwCt','_updateLocalCursor','takeUntil','MessageType','listRoles','_snapshotServerService','_context','_scheduleCollaborationTimeoutTimer','_collaborationController','batchAllowed','ThemeService','@univerjs/engine-formula','_change$','currentSkeleton$','onCommandExecuted','_incrementRevisionNumber','handleIRemoveRow','getCurrentRevOfUnit','collab-text-anchor-','transformUndoRedo','UNIVER_DOC','jiqing500','IBeforeCloseService','_onCursorUpdate','session','RemoveColCommandId','exhaustSavingTask','HEARTBEAT','getOffsetConfig','/universer-api/comb','dispose$','1280748cTAgMK','lineTo','updateCollaborator','history','RichTextEditingMutation','arc','merge','_snapshotService','_getMergeRange','M0\x200H16V16H0z','list','Plugin','substring','createElement','with','init','getImage','_configService','_checkMissing','from','clear','_scheduleTimestamp','conflict.content','univer-online-status','getCurrentSelections','onPointerEnter$','COMPRESS_MUTATION_APPLY','ThresholdInterceptorFactory','APPLY_REVISION_CONFILICT','dispose','c2Prime','LIVESHARE_TERMINATE','_members','[FetchingMissState]:\x20not\x20expected\x20to\x20receive\x20ack\x20when\x20`this._awaitingChangeset`\x20is\x20null!','type','[PendingState]:\x20unhandled\x20univer\x20type:\x20','ERROR_IMAGE_TYPE','permissionRejEvent','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','unit','collab-client.tooltip.reconnect','doc.mutation.rich-text-editing','_removeClearOtherTimer','updatePermissionPoint','Cannot\x20assemble\x20a\x20changeset\x20from\x20multiple\x20mutations\x20of\x20different\x20types:\x20','sheetId','ColorKit','black','status','width','isTransformMutationsWithChangesetFailure','distinctUntilChanged','unitId','reduce','reverse','_scheduleSaving','_event$','setActiveRange','/-/object/-/batch_allowed','_retryConnectingTimer','RegularPolygon','mutations','_color','isTransformChangesetsSuccess','_handleEvent','Disposable','mapDocumentTypeToUniverType','mapTo','onRemoteAck','drawWith','_submitChangeset','row','getUnhiddenWorksheets','collabStatus.offline','UNIVER_COLLABORATION_CLIENT_PLUGIN','FETCH_MISS','_localeService','delay','_onRemoteACK','pipe','image/bmp','IDLE','c1Prime','/universer-api/file/{fileID}/sign-url','infoRsp','HELLO','transformMutation','UNIVER_SLIDE','collaboration.closeRoom','transformMutationsWithChangeset','\x20in\x20_schedule.','has','_onConnectionOpen','onSendChangeset','LICENSE_EXPORT_SIZE_EXCEEDED','CollaborationEntity','now','\x0aCurrent:\x20','univer-online-status-icon','LocaleService','PERMISSION_DENIED','fillRule','_onRemoteRejected','INotificationService','executeCommand','propertyIsEnumerable','originalMeta','_heartbeatTimer','defs','WorkbookEditablePermission','getSheetBySheetId','_setupSubUnitSync','getActiveSheet','getCurrent','ImageUploadStatusType','LOCAL_CACHE_INTERVAL_KEY','UNRECOGNIZED','set','UniverCollaboration','SetTextSelectionsOperation','resend','[OfflineState]:\x20received\x20changeset.','JOIN','getMergeData','string','[SyncedState]:\x20received\x20acknowledgement.','awaiting_with_pending','\x20to\x20','Tools','_undoRedoService','/universer-api/stream/file/upload','getSkeleton','#FFF','error$','_anchorDot','_ws','close$','_sendHeartbeatTimer','RETRY_CONNECTING_MAX_COUNT','_syncEditingCollabCursorService','duration','UniverUi','_permissionService','HEARTBEAT_TIMEOUT','HEARTBEAT_INTERVAL','USERS_LEAVE','handleInsertCol','SUCCUSS','_updateStatus','fetchMissingChangesets','UPDATE_CURSOR','getOwnPropertySymbols','_refreshCollabCursors','&assign=','SNAPSHOT_SERVER_URL_KEY','_sendingTimer','Tooltip','DeleteRangeMoveUpCommandId','ISnapshotServerService','_docTransformIMECacheService','749907tOhssI','/new_changes','UniverSheets','_session','IURLService','then','UniverTelemetry','_clearOtherTimers','textRanges','_toggleOffline','filter','_registerDependencies','_range','onReady','split','storage','_clearHeartbeatTimer','loadDoc','_logService','selection','onRemoteChangeset','_removeRoom','FileId','Module','univer-online','visibilitychange','COMPRESS_MUTATION_SEND','memberID','_lockTransition','resolve','[UniverCollaborationClientPlugin]','_handler','visibilityState','_listenToOnlineEvent','m2Prime','addEventListener','getTypeOfUnitAdded$','none','use','LICENSE_MAX_UNITS_EXCEEDED','find','prototype','Optional','max','VIEW_MAIN','UniverDocs','CollaborationEvent','parseProtocolChangeset','[CollaborationUndoRedoService]','shouldCloseConn','setItem','_ensureSubject','IMessageService','round','path','@univerjs/telemetry','onSyncEditingCollabCursor','_imageSourceCache','_docTransformSelectionsService','univer-offline','debug','session.will-retry','getCoordByCell','state','toString','_waitCount','uploadFileServerUrl','getTypeOfUnitDisposed$','onTransformSelections','LEAVE','createInstance','UNAUTHENTICATED','_transformService','_substituteRedoStack','_unitID','UnitSnapshot','_transformRemoteChangesetByIMECache','cursorInfo$','url','_getRedoStack','purple300','207bGvamB','XHRHTTPImplementation','[CollaborationSession]','subscribeEvent','_uiPartsService','UNKNOWN_CODE','push','collabWebSocketUrl','_socket','collabSubmitChangesetUrl','_unitOnClients','_unitStatus','on-line-single','PERMISSION_REJ','sessionStatus','UniverInstanceType','loadOfflineData','snapshotServerUrl','_getAPIPrefixPath','on-line-single_clip0_910_349','getValue','_drawTextRange','useDependency','ILogService','_throwTelemetryCollaborationNewChangeset','stringify','online','getUndoRedoMutationParamsCache','OFFLINE','getRangePointData','override','NodePositionConvertToCursor','exports','EXCHANGE_UPLOAD_FILE_SERVER_URL_KEY','complete','Undefined','FAIL','_getSaveTimeout','touchDependencies','_getAPIPrefix','removeMember','This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!','_initMergeInterceptor','fromEvent','range','_compressMutationService','_loadSheet','error','_getSendChangesetTimeout','setConfig','Unknown\x20user','off-line-single_clip0_910_343','fill','MUTATION','[ConflictState]:\x20invalid\x20calling\x20to\x20`resend`.','collabStatus.synced','[CollaborationEntity]:\x20invalid\x20state\x20transition!\x20State\x20transferred\x20from\x20is\x20not\x20the\x20current\x20state.\x0aBefore:\x20','SetWorksheetActivateCommand','IContextService','handleIRemoveCol','DocSkeletonManagerService','?size=','[SyncedState]:\x20invalid\x20calling\x20to\x20`resend`.','react','_onUserLeave','replace','_socketReady','name','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','ImageSourceType','UserManagerService','7655568NJtFNb','UniverLicense','clearInterval','INGEST','syncEditingCollabCursor','trim','/universer-api/snapshot','editingUnit','disposeWithMe','deepClone','JSONX','triggerDblclick','permission.content','_createSocket','_memberService','restore','fetching\x20missing\x20changesets\x20from\x20','defineProperty','12NPLdYA','_initCommandExecutedListener','every','connectInjector','collaboration_new_changeset','sheetID','ImageIoService','image/jpeg','CHANGESET_REVISION_CONFILICT','LIVESHARE_NEW_HOST','_fetchMissChangesets','UUID','_onRecvEvent','TOO_MANY_REQUESTS','measureText','[CollaborationEntity]:\x20initial\x20state\x20has\x20been\x20created\x20before.\x20You\x20should\x20not\x20call\x20\x22init\x22\x20twice.','initWorkbookPermissionChange','_cursors','symbol','ERROR_IMAGE','transformRemoteChangeset','_onCursorDelete','SheetCollabCursorShape','UniverSheetsUi','permission.title','_onLocalMutation','liveShareNewHost','_rescheduleHeartbeat','UniverCollaborationPlugin','[serializeCombRequest]:\x20should\x20not\x20fall\x20into\x20default\x20branch!','_name','_getScale','ranges','CollaborationSocketService','fetchMiss','toRgbString','_handleLeaveEvent','colorChannel1','location','_transitionLocked','BuiltInUIPart','_refRangeService','_tryEnsureSocket','_sessionStatus$','collaboration-session-retry','DataLoaderController','@univerjs/engine-render','switchMap','UniverDesign','getCollabEntity','signUrlServerUrl','_joinRoom','ALREADY_EXISTS','values','_renderManagerService','getDocRanges','UniverEngineFormula','_substituteUndoStack','getResourcesRequest','getParam','_collaborationPaused','13vSPLZo','confirm','_getUndoStack','ACTIVE_UNIT_EVENT_CHANNEL','_socketService','handleDeleteRangeMoveLeft','CollaborationSession','_onUserJoin','ICommandService','_removeCollabCursors','?url=','FETCH_MISSING','_init','getCurrentUnitForType','...','_entityInit$','code','onRemoteRej','COMMENT_UPDATE','[PendingState]:\x20received\x20acknowledgement.','evenodd','_transformUndoRedoStack','_onOffline','onPointerLeave$','getSheetId','baseRev','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','ONLINE','IUniverInstanceService','_startDocCollabCursor','UniverCollaborationClient','serializeRangeWithSheet','_render','@univerjs/docs-ui','_getSignURL','_commentService','resize','RECV','HTTPRequest','roomMembers','getConfig','subscribe','_initRequestHeader','1em','_roomMembers$','registerRenderModule','copyFileMeta','enableLocalCache','enableAuthServer','_revisionService','_shouldReportTelemetry','@univerjs/rpc','_loadDoc','isEditing','_HTTPService','_draw','onTransformIME','_transformPreviousActiveRange','LocalUndoRedoService','_initUnitPermissionChange','session.connection-failed','disposeUnit','getColor','BASE64','Subject','_online','FromArray','conflict.title','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','[CollaborationEntity]:\x20cannot\x20apply\x20missing\x20results\x20on\x20other\x20states!','onlineStatus','Warning','session.room-full','fetchThroughInterceptors','_disableEditing','fillStyle','_getSnapshotAPIPrefix','CommandType','LIVESHARE_OPERATION','_sessions','size','closePath','_createInitialStateImpl','_toggleOnline','DocSelectionManagerService','BehaviorSubject','NOT_FOUND','_backgroundColor','_hover','SYNCED','endRow','SheetPermissionInitController','collab-text-range-','userID','title','column','stopTime','_shapes','_onRefRangeChange','CollaborationStatus','@univerjs/network','_socket$','IHTTPImplementation','collaboration-client.config','getSheetObject','params','findNodePositionByCharIndex','_colorIndex','div','headers','registerOnClose','assignAColorForMemberID','univerjs-icon\x20univerjs-icon-','POST','_startCollaboration','objects','getMemberID','collabStatus.notCollab','_onMessage','_userManagerService','AWAITING_WITH_PENDING','_remoteChangesetQueue','parse','eventID','message$','EXCHANGE_SIGN_URL_SERVER_URL_KEY','_onJoinRoomEvent','getCollabEntity$','_docStateChangeManagerService','\x20-\x20','idSuffix','save','body','_cursor','className','_eventUnsubscribe','save\x20fail\x20reason\x20is\x20','_saveTaskMap','SetSelectionsOperation','_telemetryInfo','cursorInfo','hovered','registerRefRange','popstate','current','onlineStatusTitle','roles','[CollaborationSocketService]:\x20failed\x20to\x20create\x20socket!','red300','_docSyncEditingCollabCursorService','_onConflict','YUUMI_UNABLE_LOAD_URL','_onFetchMissResult','_commentUpdate$','Injector','_timeoutTimer','runRefRangeMutations','getUnitOnRev','bottom','DEFAULT_FILE_NAME','_assignedColors','AuthzIoHttpService','send','setParam','IConfigService','Error','[PendingState]:\x20invalid\x20calling\x20to\x20`resend`.','_disabled','object','_lastPointer','_telemetryService','_beforeCloseService'];_0x59d9=function(){return _0x4d85c9;};return _0x59d9();}
1
+ (function(_0x2c718b,_0x3475d0){const _0x3b8105=_0x2d6c,_0x2069f4=_0x2c718b();while(!![]){try{const _0x2d8bfb=parseInt(_0x3b8105(0x319))/0x1*(-parseInt(_0x3b8105(0x59b))/0x2)+-parseInt(_0x3b8105(0x3a7))/0x3*(-parseInt(_0x3b8105(0x42d))/0x4)+parseInt(_0x3b8105(0x296))/0x5+parseInt(_0x3b8105(0x189))/0x6+-parseInt(_0x3b8105(0x3b7))/0x7*(parseInt(_0x3b8105(0x1ef))/0x8)+parseInt(_0x3b8105(0x361))/0x9*(parseInt(_0x3b8105(0x2db))/0xa)+parseInt(_0x3b8105(0x183))/0xb;if(_0x2d8bfb===_0x3475d0)break;else _0x2069f4['push'](_0x2069f4['shift']());}catch(_0x599323){_0x2069f4['push'](_0x2069f4['shift']());}}}(_0x32ce,0x476f1),function(_0x5593d7,_0x324274){const _0x23fade=_0x2d6c;typeof exports==_0x23fade(0x381)&&typeof module<'u'?_0x324274(exports,require('@univerjs/core'),require(_0x23fade(0x281)),require(_0x23fade(0x1d6)),require(_0x23fade(0x1c9)),require(_0x23fade(0x3ab)),require(_0x23fade(0x20a)),require(_0x23fade(0x255)),require('@univerjs/telemetry'),require(_0x23fade(0x23a)),require('@univerjs/sheets'),require('@univerjs/engine-render'),require('@univerjs/docs'),require('@univerjs/drawing'),require('@univerjs/engine-formula'),require('@univerjs/sheets-ui'),require(_0x23fade(0x419)),require(_0x23fade(0x506)),require(_0x23fade(0x502))):typeof define==_0x23fade(0x55b)&&define[_0x23fade(0x45a)]?define([_0x23fade(0x5ab),_0x23fade(0x590),_0x23fade(0x281),_0x23fade(0x1d6),'@univerjs/design',_0x23fade(0x3ab),_0x23fade(0x20a),_0x23fade(0x255),_0x23fade(0x58a),_0x23fade(0x23a),_0x23fade(0x2c3),_0x23fade(0x1ec),_0x23fade(0x501),_0x23fade(0x19e),_0x23fade(0x2a2),'@univerjs/sheets-ui',_0x23fade(0x419),_0x23fade(0x506),_0x23fade(0x502)],_0x324274):(_0x5593d7=typeof globalThis<'u'?globalThis:_0x5593d7||self,_0x324274(_0x5593d7[_0x23fade(0x4a0)]={},_0x5593d7['UniverCore'],_0x5593d7['rxjs'],_0x5593d7['rxjs'][_0x23fade(0x4c1)],_0x5593d7[_0x23fade(0x4bc)],_0x5593d7[_0x23fade(0x21b)],_0x5593d7['UniverNetwork'],_0x5593d7[_0x23fade(0x33d)],_0x5593d7[_0x23fade(0x449)],_0x5593d7[_0x23fade(0x58e)],_0x5593d7[_0x23fade(0x535)],_0x5593d7['UniverEngineRender'],_0x5593d7[_0x23fade(0x1ab)],_0x5593d7[_0x23fade(0x588)],_0x5593d7[_0x23fade(0x3bf)],_0x5593d7['UniverSheetsUi'],_0x5593d7[_0x23fade(0x47d)],_0x5593d7[_0x23fade(0x3ea)],_0x5593d7[_0x23fade(0x57e)]));}(this,function(_0x2143a3,_0x514eda,_0x2ca9ec,_0x3757e3,_0x24f161,_0x116b36,_0x5b9e99,_0x3a5d3a,_0x2f44c5,_0x393ad9,_0x12c1fe,_0x29b5d0,_0x26ab50,_0x5277be,_0xa43e06,_0x30c556,_0x2a0491,_0x845fdd,_0xc3ea3a){'use strict';const _0x52ce28=_0x2d6c;var _0x4ee385=Object[_0x52ce28(0x1fd)],_0x5cdb35=(_0x23ef12,_0x47f8d4,_0x28da46)=>_0x47f8d4 in _0x23ef12?_0x4ee385(_0x23ef12,_0x47f8d4,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x28da46}):_0x23ef12[_0x47f8d4]=_0x28da46,_0x2406c5=(_0x264afc,_0x170e3e,_0x4c901f)=>_0x5cdb35(_0x264afc,typeof _0x170e3e!='symbol'?_0x170e3e+'':_0x170e3e,_0x4c901f);const _0x32344d=_0x52ce28(0x351),_0x4fedf2=_0x52ce28(0x583),_0x144e81=_0x52ce28(0x35b),_0x310373=_0x52ce28(0x4c6),_0x43aaf='COLLAB_WEB_SOCKET_URL',_0x15b092=_0x52ce28(0x36f),_0x2bd937=_0x52ce28(0x229),_0x2e697d=_0x52ce28(0x2a5),_0x1769f4=_0x52ce28(0x38f),_0x4329e9='LOCAL_CACHE_INTERVAL',_0x4e1123='COLLAB_SUBMIT_CHANGESET_URL',_0x307e10='/universer-api/comb',_0x33aa97='LOGIN_URL_KEY',_0x227819=_0x52ce28(0x18a);var _0x1d50de=(_0x142661=>(_0x142661[_0x142661[_0x52ce28(0x458)]=0x0]=_0x52ce28(0x458),_0x142661[_0x142661['OK']=0x1]='OK',_0x142661[_0x142661[_0x52ce28(0x409)]=0x2]='INTERNAL_ERROR',_0x142661[_0x142661[_0x52ce28(0x215)]=0x3]=_0x52ce28(0x215),_0x142661[_0x142661[_0x52ce28(0x3fc)]=0x4]=_0x52ce28(0x3fc),_0x142661[_0x142661['UNAUTHENTICATED']=0x5]=_0x52ce28(0x294),_0x142661[_0x142661[_0x52ce28(0x257)]=0x6]=_0x52ce28(0x257),_0x142661[_0x142661[_0x52ce28(0x3ef)]=0x7]=_0x52ce28(0x3ef),_0x142661[_0x142661['TOO_MANY_REQUESTS']=0x8]=_0x52ce28(0x1d8),_0x142661[_0x142661[_0x52ce28(0x31c)]=0x9]=_0x52ce28(0x31c),_0x142661[_0x142661[_0x52ce28(0x256)]=0x1389]=_0x52ce28(0x256),_0x142661[_0x142661[_0x52ce28(0x1cb)]=0x1771]=_0x52ce28(0x1cb),_0x142661[_0x142661[_0x52ce28(0x336)]=0x1772]=_0x52ce28(0x336),_0x142661[_0x142661['ENSURE_SNAPSHOT_EXECUTION']=0x1773]=_0x52ce28(0x376),_0x142661[_0x142661['APPLY_REJECT']=0x1b59]=_0x52ce28(0x564),_0x142661[_0x142661['APPLY_NON_SEQUENTIAL_REVISION']=0x1b5a]=_0x52ce28(0x5a7),_0x142661[_0x142661[_0x52ce28(0x1a1)]=0x1b5b]='APPLY_REVISION_CONFILICT',_0x142661[_0x142661[_0x52ce28(0x31f)]=0x1b5c]=_0x52ce28(0x31f),_0x142661[_0x142661[_0x52ce28(0x51e)]=0x1b5d]='APPLY_DUPLICATED',_0x142661[_0x142661[_0x52ce28(0x586)]=0x1f41]=_0x52ce28(0x586),_0x142661[_0x142661[_0x52ce28(0x298)]=0x2329]='LICENSE_MAX_UNITS_EXCEEDED',_0x142661[_0x142661[_0x52ce28(0x369)]=0x232a]='LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED',_0x142661[_0x142661[_0x52ce28(0x542)]=0x232b]=_0x52ce28(0x542),_0x142661[_0x142661[_0x52ce28(0x52e)]=0x232c]=_0x52ce28(0x52e),_0x142661[_0x142661['LICENSE_DISTRO_REJECTED']=0x232d]='LICENSE_DISTRO_REJECTED',_0x142661[_0x142661[_0x52ce28(0x513)]=0x2711]=_0x52ce28(0x513),_0x142661[_0x142661['YUUMI_URL_COL_OUT_OF_RANGE']=0x2712]=_0x52ce28(0x529),_0x142661[_0x142661[_0x52ce28(0x379)]=0x2713]=_0x52ce28(0x379),_0x142661[_0x142661[_0x52ce28(0x304)]=0x2714]=_0x52ce28(0x304),_0x142661[_0x142661[_0x52ce28(0x2e5)]=-0x1]=_0x52ce28(0x2e5),_0x142661))(_0x1d50de||{}),_0x3f5bfb=(_0x5cf865=>(_0x5cf865[_0x5cf865[_0x52ce28(0x416)]=0x0]=_0x52ce28(0x416),_0x5cf865[_0x5cf865['UNIVER_DOC']=0x1]=_0x52ce28(0x34f),_0x5cf865[_0x5cf865[_0x52ce28(0x1ac)]=0x2]=_0x52ce28(0x1ac),_0x5cf865[_0x5cf865[_0x52ce28(0x305)]=0x3]=_0x52ce28(0x305),_0x5cf865[_0x5cf865[_0x52ce28(0x18c)]=0x4]='UNIVER_PROJECT',_0x5cf865[_0x5cf865[_0x52ce28(0x2e5)]=-0x1]='UNRECOGNIZED',_0x5cf865))(_0x3f5bfb||{}),_0x3fd114=(_0x4b8041=>(_0x4b8041[_0x4b8041[_0x52ce28(0x354)]=0x0]=_0x52ce28(0x354),_0x4b8041[_0x4b8041[_0x52ce28(0x1f9)]=0x1]=_0x52ce28(0x1f9),_0x4b8041[_0x4b8041[_0x52ce28(0x504)]=0x2]=_0x52ce28(0x504),_0x4b8041[_0x4b8041[_0x52ce28(0x1b9)]=0x3]=_0x52ce28(0x1b9),_0x4b8041[_0x4b8041[_0x52ce28(0x45f)]=0x4]=_0x52ce28(0x45f),_0x4b8041[_0x4b8041[_0x52ce28(0x54a)]=0x5]=_0x52ce28(0x54a),_0x4b8041[_0x4b8041[_0x52ce28(0x17d)]=0x6]='RECV',_0x4b8041[_0x4b8041[_0x52ce28(0x2e5)]=-0x1]=_0x52ce28(0x2e5),_0x4b8041))(_0x3fd114||{}),_0x13ea02=(_0x5f01e3=>(_0x5f01e3[_0x5f01e3['UNKNOWN_CODE']=0x0]=_0x52ce28(0x1ce),_0x5f01e3[_0x5f01e3['OK']=0x1]='OK',_0x5f01e3[_0x5f01e3['FAIL']=0x2]=_0x52ce28(0x2ad),_0x5f01e3[_0x5f01e3[_0x52ce28(0x2e5)]=-0x1]=_0x52ce28(0x2e5),_0x5f01e3))(_0x13ea02||{}),_0x4ba0ba=(_0x4465d3=>(_0x4465d3[_0x4465d3['Undefined']=0x0]=_0x52ce28(0x537),_0x4465d3[_0x4465d3[_0x52ce28(0x519)]=0x1]='HttpImport',_0x4465d3[_0x4465d3['HttpExport']=0x2]='HttpExport',_0x4465d3[_0x4465d3['UnitEmbedded']=0x3]=_0x52ce28(0x438),_0x4465d3[_0x4465d3[_0x52ce28(0x3e0)]=0x4]=_0x52ce28(0x3e0),_0x4465d3[_0x4465d3[_0x52ce28(0x2e5)]=-0x1]=_0x52ce28(0x2e5),_0x4465d3))(_0x4ba0ba||{});const _0xb94ed4='collaboration-client.config',_0x1bd336={};function _0xceda9e(_0xfd3cf1){const _0x1c0591=_0x52ce28;var _0x50cedd,_0x2d637b,_0x103cd9,_0x4629fd;const _0x4e7288=_0xfd3cf1[_0x1c0591(0x527)],_0x45149d=JSON[_0x1c0591(0x325)](_0x4e7288);switch(_0x45149d['cmd']){case _0x3fd114['HEARTBEAT']:case _0x3fd114[_0x1c0591(0x1f9)]:{const _0x33bd95=_0x45149d[_0x1c0591(0x3a1)];return{..._0x45149d,'data':_0x33bd95,'cmd':_0x45149d[_0x1c0591(0x48f)]};}case _0x3fd114[_0x1c0591(0x504)]:{const _0xd49833=_0x45149d[_0x1c0591(0x39d)];return{..._0x45149d,'data':_0xd49833,'cmd':_0x45149d[_0x1c0591(0x48f)]};}case _0x3fd114[_0x1c0591(0x17d)]:{const _0x3767ef=_0x45149d[_0x1c0591(0x2d4)];switch(_0x3767ef[_0x1c0591(0x4bb)]){case _0x3a5d3a['CollaborationEvent']['PERMISSION_REJ']:return{..._0x45149d,'data':{..._0x3767ef,'data':(_0x50cedd=_0x3767ef[_0x1c0591(0x49b)])==null?void 0x0:_0x50cedd['cs']},'cmd':_0x45149d[_0x1c0591(0x48f)]};case _0x3a5d3a[_0x1c0591(0x442)][_0x1c0591(0x234)]:return{..._0x45149d,'data':{..._0x3767ef,'data':(_0x2d637b=_0x3767ef[_0x1c0591(0x3f7)])==null?void 0x0:_0x2d637b['cs']},'cmd':_0x45149d[_0x1c0591(0x48f)]};case _0x3a5d3a[_0x1c0591(0x442)]['NEW_CHANGESETS']:return{..._0x45149d,'data':{..._0x3767ef,'data':(_0x103cd9=_0x3767ef[_0x1c0591(0x3c3)])==null?void 0x0:_0x103cd9['cs']},'cmd':_0x45149d[_0x1c0591(0x48f)]};case _0x3a5d3a[_0x1c0591(0x442)][_0x1c0591(0x2b1)]:return{..._0x45149d,'data':{..._0x3767ef,'data':(_0x4629fd=_0x3767ef[_0x1c0591(0x1b4)])==null?void 0x0:_0x4629fd['cs']},'cmd':_0x45149d[_0x1c0591(0x48f)]};case _0x3a5d3a['CollaborationEvent']['UPDATE_CURSOR']:return{..._0x45149d,'data':{..._0x3767ef,'data':_0x3767ef[_0x1c0591(0x26a)]},'cmd':_0x45149d[_0x1c0591(0x48f)]};case _0x3a5d3a[_0x1c0591(0x442)][_0x1c0591(0x3dc)]:return{..._0x45149d,'data':{..._0x3767ef,'data':_0x3767ef[_0x1c0591(0x2ce)]},'cmd':_0x45149d['cmd']};case _0x3a5d3a[_0x1c0591(0x442)][_0x1c0591(0x29f)]:return{..._0x45149d,'data':{..._0x3767ef,'data':_0x3767ef[_0x1c0591(0x204)]},'cmd':_0x45149d[_0x1c0591(0x48f)]};case _0x3a5d3a[_0x1c0591(0x442)][_0x1c0591(0x44d)]:return{..._0x45149d,'data':{..._0x3767ef,'data':_0x3767ef[_0x1c0591(0x1a3)]},'cmd':_0x45149d['cmd']};case _0x3a5d3a[_0x1c0591(0x442)][_0x1c0591(0x48a)]:case _0x3a5d3a['CollaborationEvent'][_0x1c0591(0x417)]:return{..._0x45149d,'data':{..._0x3767ef,'data':_0x3767ef[_0x1c0591(0x4b1)]},'cmd':_0x45149d['cmd']};case _0x3a5d3a[_0x1c0591(0x442)][_0x1c0591(0x5a0)]:return{..._0x45149d,'data':{..._0x3767ef,'data':_0x3767ef['liveShareNewHost']},'cmd':_0x45149d[_0x1c0591(0x48f)]};case _0x3a5d3a[_0x1c0591(0x442)][_0x1c0591(0x277)]:return{..._0x45149d,'data':_0x3767ef,'cmd':_0x45149d[_0x1c0591(0x48f)]};case _0x3a5d3a[_0x1c0591(0x442)]['COMMENT_UPDATE']:return{..._0x45149d,'data':{..._0x3767ef,'data':_0x3767ef['commentUpdateEvent']},'cmd':_0x45149d['cmd']};case _0x3a5d3a['CollaborationEvent']['UPDATE_PERMISSION_OBJ']:return{..._0x45149d,'data':{..._0x3767ef,'data':_0x3767ef[_0x1c0591(0x435)]},'cmd':_0x45149d[_0x1c0591(0x48f)]};case _0x3a5d3a[_0x1c0591(0x442)][_0x1c0591(0x3cc)]:return{..._0x45149d,'data':{..._0x3767ef,'data':_0x3767ef[_0x1c0591(0x24f)]},'cmd':_0x45149d['cmd']};default:return _0x45149d;}}default:return _0x45149d;}}function _0xe4f417(_0x3888e7){const _0x287025=_0x52ce28;switch(_0x3888e7['cmd']){case _0x3fd114[_0x287025(0x54a)]:case _0x3fd114[_0x287025(0x1f9)]:return JSON[_0x287025(0x4f2)]({'cmd':_0x3888e7['cmd'],'routeKey':_0x3888e7[_0x287025(0x558)]});case _0x3fd114['INGEST']:{let _0x497dfd;switch(_0x3888e7[_0x287025(0x527)]['eventID']){case _0x3a5d3a[_0x287025(0x442)]['UPDATE_CURSOR']:{_0x497dfd={'eventID':_0x3a5d3a['CollaborationEvent'][_0x287025(0x466)],'updateCursorEvent':_0x3888e7[_0x287025(0x527)][_0x287025(0x527)]};break;}case _0x3a5d3a[_0x287025(0x442)][_0x287025(0x29f)]:{_0x497dfd={'eventID':_0x3a5d3a['CollaborationEvent'][_0x287025(0x29f)],'leaveEvent':_0x3888e7[_0x287025(0x527)][_0x287025(0x527)]};break;}case _0x3a5d3a[_0x287025(0x442)]['USERS_ENTER']:{_0x497dfd={'eventID':_0x3a5d3a[_0x287025(0x442)]['USERS_ENTER'],'joinEvent':_0x3888e7[_0x287025(0x527)][_0x287025(0x527)]};break;}case _0x3a5d3a['CollaborationEvent'][_0x287025(0x44d)]:{_0x497dfd={'eventID':_0x3a5d3a['CollaborationEvent'][_0x287025(0x44d)],'liveShareNewHost':_0x3888e7['data']['data']};break;}case _0x3a5d3a[_0x287025(0x442)][_0x287025(0x417)]:{_0x497dfd={'eventID':_0x3a5d3a[_0x287025(0x442)][_0x287025(0x417)],'liveShareOperation':_0x3888e7['data']['data']};break;}case _0x3a5d3a[_0x287025(0x442)]['LIVESHARE_TERMINATE']:{_0x497dfd={'eventID':_0x3a5d3a[_0x287025(0x442)][_0x287025(0x5a0)],'liveShareTerminate':_0x3888e7[_0x287025(0x527)][_0x287025(0x527)]};break;}case _0x3a5d3a[_0x287025(0x442)][_0x287025(0x573)]:{_0x497dfd={'eventID':_0x3a5d3a[_0x287025(0x442)][_0x287025(0x573)],'liveShareRequestHost':_0x3888e7[_0x287025(0x527)][_0x287025(0x527)]};break;}case _0x3a5d3a[_0x287025(0x442)][_0x287025(0x48a)]:{_0x497dfd={'eventID':_0x3a5d3a[_0x287025(0x442)][_0x287025(0x48a)]};break;}default:_0x497dfd={'eventID':_0x3888e7['data']['eventID']};}return JSON[_0x287025(0x4f2)]({'cmd':_0x3888e7[_0x287025(0x48f)],'routeKey':_0x3888e7[_0x287025(0x558)],'collaMsg':_0x497dfd});}case _0x3fd114['JOIN']:return JSON[_0x287025(0x4f2)]({'cmd':_0x3888e7['cmd'],'routeKey':_0x3888e7[_0x287025(0x558)],'joinReq':_0x3888e7[_0x287025(0x527)]});case _0x3fd114[_0x287025(0x1b9)]:return JSON[_0x287025(0x4f2)]({'cmd':_0x3888e7[_0x287025(0x48f)],'routeKey':_0x3888e7['routeKey'],'leaveReq':_0x3888e7[_0x287025(0x527)]});default:throw new Error(_0x287025(0x46d));}}var _0x19849e=Object[_0x52ce28(0x1fd)],_0x3d2084=Object[_0x52ce28(0x493)],_0x887684=(_0x14e3f6,_0x187daa,_0x5654e9,_0x2e2173)=>{const _0x4e1b33=_0x52ce28;for(var _0x1b2733=_0x2e2173>0x1?void 0x0:_0x2e2173?_0x3d2084(_0x187daa,_0x5654e9):_0x187daa,_0x102e03=_0x14e3f6[_0x4e1b33(0x47c)]-0x1,_0x5bf3a3;_0x102e03>=0x0;_0x102e03--)(_0x5bf3a3=_0x14e3f6[_0x102e03])&&(_0x1b2733=(_0x2e2173?_0x5bf3a3(_0x187daa,_0x5654e9,_0x1b2733):_0x5bf3a3(_0x1b2733))||_0x1b2733);return _0x2e2173&&_0x1b2733&&_0x19849e(_0x187daa,_0x5654e9,_0x1b2733),_0x1b2733;},_0x30b196=(_0x2d78bd,_0x425a27)=>(_0x397e40,_0x5aae10)=>_0x425a27(_0x397e40,_0x5aae10,_0x2d78bd);const _0x8c5f57=_0x514eda[_0x52ce28(0x1c7)]('univer-pro.collaboration-client-socket-service');function _0x4d550a(_0x2f317f,_0x44464a,_0x58cdec){const _0x1601c8=_0x52ce28;return _0x2f317f+'/'+_0x44464a+_0x1601c8(0x4e7)+_0x58cdec+_0x1601c8(0x236);}_0x2143a3['CollaborationSocketService']=class extends _0x514eda[_0x52ce28(0x4ad)]{constructor(_0xf53d87,_0x1e4f32,_0x587556,_0xaa4d22,_0x1cf79e){const _0x5cfe66=_0x52ce28;super(),this[_0x5cfe66(0x1ed)]=_0xf53d87,this[_0x5cfe66(0x34c)]=_0x1e4f32,this['_configService']=_0x587556,this[_0x5cfe66(0x307)]=_0xaa4d22,this['_snapshotServerService']=_0x1cf79e;}[_0x52ce28(0x25a)](_0x50dfdd){const _0x36bcce=_0x52ce28,_0x4cc1c7=this['_ws'][_0x36bcce(0x25a)](_0x50dfdd);if(!_0x4cc1c7)throw new Error(_0x36bcce(0x58c));const _0x4e51b2=new _0x514eda[(_0x36bcce(0x3d0))](),_0x428467=new _0x2ca9ec['Subject']();_0x4e51b2[_0x36bcce(0x24c)](_0x4cc1c7[_0x36bcce(0x2e6)]['subscribe'](_0x520958=>_0x428467[_0x36bcce(0x1df)](_0x520958))),_0x4e51b2['add'](_0x514eda['toDisposable'](()=>_0x428467[_0x36bcce(0x364)]()));const _0x4878da=new _0x2ca9ec[(_0x36bcce(0x181))]();_0x4e51b2[_0x36bcce(0x24c)](_0x4cc1c7[_0x36bcce(0x4b7)]['subscribe'](_0x5853ba=>_0x4878da['next'](_0x5853ba))),_0x4e51b2[_0x36bcce(0x24c)](_0x514eda['toDisposable'](()=>_0x4878da['complete']()));const _0x1251c1=new _0x2ca9ec['Subject']();_0x4e51b2['add'](_0x4cc1c7[_0x36bcce(0x4b0)][_0x36bcce(0x1b3)](_0x11a4f4=>{const _0x511b14=_0xceda9e(_0x11a4f4);_0x1251c1['next'](_0x511b14);})),_0x4e51b2[_0x36bcce(0x24c)](_0x514eda['toDisposable'](()=>_0x1251c1[_0x36bcce(0x364)]()));let _0x11f557;const _0x3ff75=()=>{const _0x137c6c=_0x36bcce;_0x4878da[_0x137c6c(0x1df)](new Event(_0x137c6c(0x1f5))),_0x428467['next'](new CloseEvent(_0x137c6c(0x1f5))),_0x11f557[_0x137c6c(0x553)]();};return _0x11f557={'memberID':'','close$':_0x428467['asObservable'](),'error$':_0x4878da[_0x36bcce(0x297)](),'open$':_0x4cc1c7[_0x36bcce(0x43b)],'message$':_0x1251c1['asObservable'](),'send':_0x36b1b7=>{const _0x4fa970=_0x36bcce;if(_0x36b1b7[_0x4fa970(0x48f)]===_0x3fd114[_0x4fa970(0x45f)]){if(_0x36b1b7[_0x4fa970(0x527)]['eventID']===_0x3a5d3a[_0x4fa970(0x442)][_0x4fa970(0x2d9)]){this[_0x4fa970(0x191)](_0x11f557,_0x36b1b7[_0x4fa970(0x527)])[_0x4fa970(0x33a)](_0x4cb707=>{const _0xa1da6e=_0x4fa970;this[_0xa1da6e(0x307)][_0xa1da6e(0x28b)](_0x4cb707),_0x3ff75();});return;}if(_0x36b1b7[_0x4fa970(0x527)][_0x4fa970(0x4bb)]===_0x3a5d3a[_0x4fa970(0x442)][_0x4fa970(0x593)]){const _0x15b54e=_0x36b1b7[_0x4fa970(0x527)];this[_0x4fa970(0x44f)](_0x15b54e)[_0x4fa970(0x4ac)](_0x27ffdd=>{const _0x2df96d=_0x4fa970;_0x1251c1[_0x2df96d(0x1df)]({'cmd':_0x3fd114[_0x2df96d(0x17d)],'code':_0x13ea02['OK'],'routeKey':_0x15b54e[_0x2df96d(0x527)][_0x2df96d(0x261)],'routeType':'','data':{'eventID':_0x3a5d3a['CollaborationEvent'][_0x2df96d(0x4be)],'data':{'changesets':_0x27ffdd}}});})[_0x4fa970(0x33a)](_0x453f8b=>{const _0x22af83=_0x4fa970;this[_0x22af83(0x307)]['error'](_0x453f8b),_0x3ff75();});return;}}_0x4cc1c7[_0x4fa970(0x488)](_0xe4f417(_0x36b1b7));},'close':()=>{const _0x261e07=_0x36bcce;_0x4cc1c7[_0x261e07(0x553)](),_0x4e51b2['dispose']();}},_0x11f557;}async[_0x52ce28(0x191)](_0x5a14af,_0x41a1d4){const _0x2b719c=_0x52ce28;var _0x3d46c8,_0x50f087;const {unitType:_0x471c9a,unitID:_0x1ae730,changeset:_0x576d14}=_0x41a1d4['data'],_0x4a588a={'unitID':_0x1ae730,'memberID':_0x5a14af[_0x2b719c(0x3b8)],'type':_0x471c9a,'changeset':_0x3a5d3a[_0x2b719c(0x2dc)](_0x576d14)},_0x280a66=this['_configService'][_0x2b719c(0x490)](_0x4e1123),_0x1f4f1d=this['_configService']['getConfig'](_0xb94ed4),_0x11ef70=_0x4d550a((_0x50f087=(_0x3d46c8=_0x1f4f1d==null?void 0x0:_0x1f4f1d['collabSubmitChangesetUrl'])!=null?_0x3d46c8:_0x280a66)!=null?_0x50f087:_0x307e10,_0x471c9a,_0x1ae730);try{await this['_http'][_0x2b719c(0x23c)](_0x11ef70,{'body':_0x4a588a});}catch(_0x5e8389){throw this['_logService'][_0x2b719c(0x28b)](_0x2b719c(0x2b3),_0x2b719c(0x1f7)),_0x5e8389;}}async[_0x52ce28(0x44f)](_0x4eff71){const _0x58b27c=_0x52ce28,{unitID:_0x457ac7,from:_0x29a6b9,to:_0x7412,unitType:_0x3ad6b2}=_0x4eff71[_0x58b27c(0x527)];return(await this[_0x58b27c(0x230)][_0x58b27c(0x4e4)]({'metadata':void 0x0},{'unitID':_0x457ac7,'type':_0x3ad6b2,'from':_0x29a6b9,'to':_0x7412}))['changesets'];}},_0x2143a3['CollaborationSocketService']=_0x887684([_0x30b196(0x0,_0x514eda['Inject'](_0x5b9e99[_0x52ce28(0x38e)])),_0x30b196(0x1,_0x514eda['Inject'](_0x5b9e99[_0x52ce28(0x4fa)])),_0x30b196(0x2,_0x514eda[_0x52ce28(0x480)]),_0x30b196(0x3,_0x514eda[_0x52ce28(0x1f6)]),_0x30b196(0x4,_0x3a5d3a['ISnapshotServerService'])],_0x2143a3[_0x52ce28(0x2fa)]);const _0x489594=_0x52ce28(0x208);function _0x5e2fb3(_0x20bab3){const _0x4ba8ef=_0x52ce28;return JSON['stringify'](_0x20bab3)[_0x4ba8ef(0x47c)];}class _0x31fa5b{constructor(){const _0x494af8=_0x52ce28;_0x2406c5(this,_0x494af8(0x290),new _0x2ca9ec[(_0x494af8(0x181))]()),_0x2406c5(this,_0x494af8(0x286),this[_0x494af8(0x290)][_0x494af8(0x297)]());}['onCommentUpdate'](_0x215320){const _0x2d5176=_0x52ce28;this[_0x2d5176(0x290)]['next'](_0x215320);}}var _0x175f74=Object[_0x52ce28(0x1fd)],_0x31d373=Object['getOwnPropertyDescriptor'],_0x3b23ce=(_0x318e25,_0x31a4c4,_0x1c8ff6,_0x3e5cec)=>{const _0x343927=_0x52ce28;for(var _0x83bd72=_0x3e5cec>0x1?void 0x0:_0x3e5cec?_0x31d373(_0x31a4c4,_0x1c8ff6):_0x31a4c4,_0xee8e39=_0x318e25[_0x343927(0x47c)]-0x1,_0x230ed9;_0xee8e39>=0x0;_0xee8e39--)(_0x230ed9=_0x318e25[_0xee8e39])&&(_0x83bd72=(_0x3e5cec?_0x230ed9(_0x31a4c4,_0x1c8ff6,_0x83bd72):_0x230ed9(_0x83bd72))||_0x83bd72);return _0x3e5cec&&_0x83bd72&&_0x175f74(_0x31a4c4,_0x1c8ff6,_0x83bd72),_0x83bd72;},_0x836543=(_0x30e973,_0x40ccd9)=>(_0x3318dc,_0x60779f)=>_0x40ccd9(_0x3318dc,_0x60779f,_0x30e973);let _0x5da513=class extends _0x514eda['Disposable']{constructor(_0x53b5aa,_0x4b7087){const _0x5a1446=_0x52ce28;super(),_0x2406c5(this,_0x5a1446(0x2c4),new Map()),(this[_0x5a1446(0x49d)]=_0x53b5aa,this[_0x5a1446(0x329)]=_0x4b7087,this['disposeWithMe'](_0x514eda[_0x5a1446(0x477)](_0x2ca9ec['merge'](this['_univerInstanceService'][_0x5a1446(0x44e)](_0x514eda[_0x5a1446(0x1e0)]['UNIVER_SHEET'])[_0x5a1446(0x2b9)](_0x3757e3['map'](_0x4c6a27=>_0x4c6a27[_0x5a1446(0x2da)]())),this[_0x5a1446(0x49d)][_0x5a1446(0x44e)](_0x514eda[_0x5a1446(0x1e0)][_0x5a1446(0x34f)])[_0x5a1446(0x2b9)](_0x3757e3['map'](_0x1e87fb=>_0x1e87fb[_0x5a1446(0x2da)]())),this['_univerInstanceService'][_0x5a1446(0x44e)](_0x514eda[_0x5a1446(0x1e0)]['UNIVER_SLIDE'])['pipe'](_0x3757e3['map'](_0x492c5b=>_0x492c5b[_0x5a1446(0x2da)]())))[_0x5a1446(0x1b3)](_0x18b0b2=>this[_0x5a1446(0x4b2)](_0x18b0b2)))));}['setCurrentUser'](_0x350a2f){const _0x305a44=_0x52ce28;this[_0x305a44(0x329)][_0x305a44(0x337)](_0x350a2f);}[_0x52ce28(0x1d3)](){const _0x40f41d=_0x52ce28;return this[_0x40f41d(0x329)][_0x40f41d(0x1d3)]();}[_0x52ce28(0x401)](_0x27167c,_0x1eadb7){const _0x4a06f1=_0x52ce28;let _0x258d92=this[_0x4a06f1(0x2c4)][_0x4a06f1(0x4d3)](_0x27167c);_0x258d92||(_0x258d92=new _0x2fbe85(),this[_0x4a06f1(0x2c4)][_0x4a06f1(0x485)](_0x27167c,_0x258d92)),_0x258d92['updateMember'](_0x1eadb7);}[_0x52ce28(0x4a9)](_0x2ee1d0,_0x53be69){const _0x313084=_0x52ce28,_0x9188b6=this['_roomMembers'][_0x313084(0x4d3)](_0x2ee1d0);_0x9188b6&&_0x9188b6[_0x313084(0x4a9)](_0x53be69);}[_0x52ce28(0x1dc)](_0x5b266d){const _0x305f97=_0x52ce28;return this[_0x305f97(0x2c4)][_0x305f97(0x4d3)](_0x5b266d);}[_0x52ce28(0x368)](_0x552ab0,_0x31878b){const _0xab40e7=_0x52ce28,_0x2ad941=this[_0xab40e7(0x2c4)][_0xab40e7(0x4d3)](_0x552ab0);if(_0x2ad941)return _0x2ad941[_0xab40e7(0x368)](_0x31878b);}[_0x52ce28(0x4b2)](_0xc112e7){const _0xa3c5c5=_0x52ce28,_0x3abf7f=this[_0xa3c5c5(0x2c4)]['get'](_0xc112e7);_0x3abf7f&&(_0x3abf7f['dispose'](),this[_0xa3c5c5(0x2c4)]['delete'](_0xc112e7));}[_0x52ce28(0x374)](){const _0x14b707=_0x52ce28;this['_roomMembers'][_0x14b707(0x317)](_0x36e923=>_0x36e923[_0x14b707(0x374)]()),this[_0x14b707(0x2c4)][_0x14b707(0x3a0)]();}};_0x5da513=_0x3b23ce([_0x836543(0x0,_0x514eda[_0x52ce28(0x29d)]),_0x836543(0x1,_0x514eda['Inject'](_0x514eda[_0x52ce28(0x1c3)]))],_0x5da513);class _0x2fbe85 extends _0x514eda[_0x52ce28(0x4ad)]{constructor(){super(...arguments),_0x2406c5(this,'_members',new Map());}[_0x52ce28(0x374)](){const _0x293521=_0x52ce28;this[_0x293521(0x1c0)][_0x293521(0x3a0)]();}['updateMember'](_0x3e26f7){const _0x29881d=_0x52ce28;this[_0x29881d(0x1c0)][_0x29881d(0x485)](_0x3e26f7['memberID'],_0x3e26f7);}['removeMember'](_0x13b5c6){const _0x573725=_0x52ce28;this[_0x573725(0x1c0)][_0x573725(0x3ba)](_0x13b5c6);}['getMember'](_0x3696ba){const _0xf9f872=_0x52ce28;return this[_0xf9f872(0x1c0)][_0xf9f872(0x4d3)](_0x3696ba);}}var _0xb80093=Object['defineProperty'],_0x359918=Object[_0x52ce28(0x493)],_0x21113c=(_0x11d24a,_0x1fd419,_0x263050,_0x39b73e)=>{const _0x2630ec=_0x52ce28;for(var _0x11f5c6=_0x39b73e>0x1?void 0x0:_0x39b73e?_0x359918(_0x1fd419,_0x263050):_0x1fd419,_0x2cf5cb=_0x11d24a[_0x2630ec(0x47c)]-0x1,_0x391e85;_0x2cf5cb>=0x0;_0x2cf5cb--)(_0x391e85=_0x11d24a[_0x2cf5cb])&&(_0x11f5c6=(_0x39b73e?_0x391e85(_0x1fd419,_0x263050,_0x11f5c6):_0x391e85(_0x11f5c6))||_0x11f5c6);return _0x39b73e&&_0x11f5c6&&_0xb80093(_0x1fd419,_0x263050,_0x11f5c6),_0x11f5c6;},_0x21ddeb=(_0x515acf,_0x3274f7)=>(_0x4dd091,_0x3b5314)=>_0x3274f7(_0x4dd091,_0x3b5314,_0x515acf),_0x1e45f8=(_0x18885c=>(_0x18885c[_0x18885c['IDLE']=0x0]=_0x52ce28(0x58b),_0x18885c[_0x18885c[_0x52ce28(0x182)]=0x1]=_0x52ce28(0x182),_0x18885c[_0x18885c['OFFLINE']=0x2]=_0x52ce28(0x249),_0x18885c[_0x18885c[_0x52ce28(0x494)]=0x3]=_0x52ce28(0x494),_0x18885c))(_0x1e45f8||{});_0x2143a3[_0x52ce28(0x555)]=class extends _0x514eda[_0x52ce28(0x18e)]{constructor(_0x3a50bf,_0x365776,_0x267ee9,_0x5e6258,_0x1de5d8,_0xca8e72,_0xd68447,_0x32174e,_0x4ede5a,_0x1ac128){const _0x284bc4=_0x52ce28;super(),_0x2406c5(this,_0x284bc4(0x478),new _0x2ca9ec[(_0x284bc4(0x3ff))](0x0)),_0x2406c5(this,_0x284bc4(0x3ee),this[_0x284bc4(0x478)][_0x284bc4(0x297)]()),_0x2406c5(this,_0x284bc4(0x291),new _0x2ca9ec[(_0x284bc4(0x181))]()),_0x2406c5(this,'event$',this[_0x284bc4(0x291)]['asObservable']()),_0x2406c5(this,_0x284bc4(0x3a3)),_0x2406c5(this,_0x284bc4(0x242)),_0x2406c5(this,'_collaborationTimeoutTimer'),_0x2406c5(this,_0x284bc4(0x2f2),!0x1),_0x2406c5(this,'_telemetryInfo',null),(this['_unitID']=_0x3a50bf,this['_logService']=_0x267ee9,this[_0x284bc4(0x36b)]=_0x5e6258,this[_0x284bc4(0x42e)]=_0x1de5d8,this[_0x284bc4(0x38a)]=_0xca8e72,this['_localeService']=_0xd68447,this['_memberService']=_0x32174e,this[_0x284bc4(0x280)]=_0x4ede5a,this[_0x284bc4(0x400)]=_0x1ac128,this[_0x284bc4(0x2f2)]=!!this['_telemetryService'],_0x365776[_0x284bc4(0x2b9)](_0x2ca9ec[_0x284bc4(0x218)](this[_0x284bc4(0x4af)]))['subscribe'](_0x2e2ff5=>{const _0x270a79=_0x284bc4;var _0x377f75;typeof _0x2e2ff5>'u'||(this[_0x270a79(0x3a3)]=_0x2e2ff5,_0x2e2ff5?(this[_0x270a79(0x510)](_0x2e2ff5),this[_0x270a79(0x242)]=_0x2e2ff5[_0x270a79(0x4b0)][_0x270a79(0x1b3)](_0x45bc00=>{const _0x55c7c1=_0x270a79;_0x45bc00[_0x55c7c1(0x558)]===this[_0x55c7c1(0x469)]&&this['_onCombEvent'](_0x45bc00);})):(this[_0x270a79(0x1e9)](),this[_0x270a79(0x478)]['next'](0x2),(_0x377f75=this[_0x270a79(0x242)])==null||_0x377f75[_0x270a79(0x1dd)](),this[_0x270a79(0x242)]=null));}),this[_0x284bc4(0x3ad)](this[_0x284bc4(0x36b)]['registerOnClose'](()=>{const _0x4e4ee5=_0x284bc4;var _0x1aab0e;(_0x1aab0e=this['_socket'])==null||_0x1aab0e['send']({'cmd':_0x3fd114[_0x4e4ee5(0x1b9)],'data':{'roomID':this['_unitID']}});})));}get[_0x52ce28(0x196)](){const _0x271367=_0x52ce28;return this[_0x271367(0x478)][_0x271367(0x375)]();}['getMemberID'](){const _0x45ae3f=_0x52ce28;var _0x60bae,_0x53aa07;return(_0x53aa07=(_0x60bae=this[_0x45ae3f(0x3a3)])==null?void 0x0:_0x60bae[_0x45ae3f(0x3b8)])!=null?_0x53aa07:null;}[_0x52ce28(0x374)](){const _0x195565=_0x52ce28;super[_0x195565(0x374)](),this[_0x195565(0x4af)]['next'](),this[_0x195565(0x4af)]['complete']();}[_0x52ce28(0x553)](){const _0xabb255=_0x52ce28;var _0x1e5585,_0x358be3;this[_0xabb255(0x1e9)](),(_0x1e5585=this[_0xabb255(0x3a3)])==null||_0x1e5585[_0xabb255(0x488)]({'cmd':_0x3fd114['LEAVE'],'data':{'roomID':this['_unitID']}}),(_0x358be3=this[_0xabb255(0x3a3)])==null||_0x358be3[_0xabb255(0x553)](),this[_0xabb255(0x291)][_0xabb255(0x364)](),this['_sessionStatus$'][_0xabb255(0x364)](),this['dispose']();}[_0x52ce28(0x38b)](_0x2981d1){const _0x1e25ea=_0x52ce28;_0x2981d1['cmd']===_0x3fd114[_0x1e25ea(0x504)]?this['_onJoinRoomEvent'](_0x2981d1):_0x2981d1[_0x1e25ea(0x48f)]===_0x3fd114[_0x1e25ea(0x17d)]&&this['_onRecvEvent'](_0x2981d1);}['_joinRoom'](_0x246c80){const _0x140409=_0x52ce28;this[_0x140409(0x478)][_0x140409(0x1df)](0x1),_0x246c80[_0x140409(0x488)]({'cmd':_0x3fd114['JOIN'],'routeKey':this[_0x140409(0x469)],'routeType':'','data':{'rooms':[{'roomID':this[_0x140409(0x469)]}]}});}[_0x52ce28(0x49a)](_0x5f594f){const _0x207fbe=_0x52ce28;var _0x57a506;if(_0x5f594f[_0x207fbe(0x26e)]===_0x13ea02[_0x207fbe(0x2ad)]){this['_messageService'][_0x207fbe(0x2f9)]({'type':_0x24f161[_0x207fbe(0x1aa)][_0x207fbe(0x492)],'content':this[_0x207fbe(0x17e)]['t'](_0x207fbe(0x39b))}),this['_sessionStatus$']['next'](0x2);return;}this[_0x207fbe(0x478)][_0x207fbe(0x1df)](0x3);const _0x4b990=(_0x57a506=_0x5f594f[_0x207fbe(0x527)]['roomInfos'][this[_0x207fbe(0x469)]])==null?void 0x0:_0x57a506[_0x207fbe(0x465)];_0x4b990&&_0x4b990[_0x207fbe(0x317)](_0x52f464=>this['_memberService'][_0x207fbe(0x401)](this[_0x207fbe(0x469)],_0x52f464));}[_0x52ce28(0x267)](_0x2aea61){const _0x211ace=_0x52ce28;try{const _0xaffc46=_0x2aea61[_0x211ace(0x527)];switch(_0xaffc46[_0x211ace(0x4bb)]){case _0x3a5d3a['CollaborationEvent'][_0x211ace(0x3dc)]:this[_0x211ace(0x426)](_0xaffc46),this[_0x211ace(0x291)][_0x211ace(0x1df)](_0xaffc46);break;case _0x3a5d3a[_0x211ace(0x442)][_0x211ace(0x29f)]:this[_0x211ace(0x31d)](_0xaffc46),this[_0x211ace(0x291)][_0x211ace(0x1df)](_0xaffc46);break;case _0x3a5d3a[_0x211ace(0x442)][_0x211ace(0x234)]:this['_stopTelemetryCollaborationNewChangeset'](),this[_0x211ace(0x525)](),this[_0x211ace(0x291)]['next'](_0xaffc46);break;case _0x3a5d3a[_0x211ace(0x442)][_0x211ace(0x277)]:this[_0x211ace(0x307)]['error']('save\x20fail\x20reason\x20is\x20'+JSON['stringify'](_0xaffc46)),this[_0x211ace(0x291)][_0x211ace(0x1df)](_0xaffc46);break;case _0x3a5d3a[_0x211ace(0x442)]['COMMENT_UPDATE']:this[_0x211ace(0x280)][_0x211ace(0x2ae)](_0xaffc46['data']),this[_0x211ace(0x291)][_0x211ace(0x1df)](_0xaffc46);break;default:this[_0x211ace(0x291)][_0x211ace(0x1df)](_0xaffc46);}}catch(_0x317aac){this[_0x211ace(0x307)][_0x211ace(0x28b)](_0x317aac,_0x2aea61);}}['_onUserJoin'](_0x49a359){const _0x4df3a1=_0x52ce28;this[_0x4df3a1(0x47a)][_0x4df3a1(0x401)](this[_0x4df3a1(0x469)],_0x49a359[_0x4df3a1(0x527)]);}[_0x52ce28(0x31d)](_0x26e009){const _0x11c7f9=_0x52ce28;this[_0x11c7f9(0x47a)][_0x11c7f9(0x4a9)](this[_0x11c7f9(0x469)],_0x26e009[_0x11c7f9(0x527)][_0x11c7f9(0x3b8)]);}async[_0x52ce28(0x488)](_0x3a0a4b,_0x43f1f2){const _0x5802=_0x52ce28;if(this[_0x5802(0x196)]!==0x3||!this[_0x5802(0x3a3)])throw new Error(_0x5802(0x415));try{_0x3a0a4b[_0x5802(0x4bb)]===_0x3a5d3a[_0x5802(0x442)][_0x5802(0x2d9)]&&(this[_0x5802(0x248)](),this[_0x5802(0x309)](_0x3a0a4b)),this['_socket'][_0x5802(0x488)]({'cmd':_0x3fd114[_0x5802(0x45f)],'routeKey':_0x43f1f2,'routeType':'','data':_0x3a0a4b});}catch(_0x12e16d){this['_logService']['error'](_0x12e16d);}}[_0x52ce28(0x248)](){const _0x30e4aa=_0x52ce28;var _0x33d773;this[_0x30e4aa(0x36c)]=window[_0x30e4aa(0x288)](()=>{const _0xabc6cc=_0x30e4aa;this[_0xabc6cc(0x36c)]=null,this[_0xabc6cc(0x42e)][_0xabc6cc(0x2f9)]({'type':_0x24f161[_0xabc6cc(0x1aa)][_0xabc6cc(0x1f2)],'content':this[_0xabc6cc(0x17e)]['t'](_0xabc6cc(0x560))});},(_0x33d773=this['_configService'][_0x30e4aa(0x490)](_0x2e697d))!=null?_0x33d773:0x4e20);}['_clearCollaborationTimeoutTimer'](){const _0x563569=_0x52ce28;this[_0x563569(0x36c)]&&(clearTimeout(this[_0x563569(0x36c)]),this[_0x563569(0x36c)]=null);}[_0x52ce28(0x309)](_0x2744bf){const _0x2b513c=_0x52ce28;if(!this[_0x2b513c(0x2f2)])return;const {data:_0x1f8fe8}=_0x2744bf,{unitID:_0x3a1971,changeset:_0x27abb7}=_0x1f8fe8,{mutations:_0x1074ab,type:_0x3cd904}=_0x27abb7;this['_telemetryInfo']={'unitId':_0x3a1971,'type':_0x3cd904,'startTime':performance[_0x2b513c(0x50e)](),'stopTime':0x0,'duration':0x0,'size':_0x5e2fb3(_0x1074ab)};}['_stopTelemetryCollaborationNewChangeset'](){const _0x5782f3=_0x52ce28;if(this[_0x5782f3(0x2f2)]){if(!this[_0x5782f3(0x3b3)]){this['_logService']['error']('[CollaborationSession]',_0x5782f3(0x35a));return;}this[_0x5782f3(0x3b3)][_0x5782f3(0x1d7)]=performance[_0x5782f3(0x50e)](),this[_0x5782f3(0x3b3)]['duration']=this[_0x5782f3(0x3b3)]['stopTime']-this[_0x5782f3(0x3b3)][_0x5782f3(0x497)],this[_0x5782f3(0x400)]['capture'](_0x489594,this['_telemetryInfo']),this['_telemetryInfo']=null;}}[_0x52ce28(0x1e9)](){const _0x574a4a=_0x52ce28;this[_0x574a4a(0x3b3)]=null;}},_0x2143a3[_0x52ce28(0x555)]=_0x21113c([_0x21ddeb(0x2,_0x514eda[_0x52ce28(0x1f6)]),_0x21ddeb(0x3,_0x116b36['IBeforeCloseService']),_0x21ddeb(0x4,_0x116b36[_0x52ce28(0x3f5)]),_0x21ddeb(0x5,_0x514eda[_0x52ce28(0x480)]),_0x21ddeb(0x6,_0x514eda[_0x52ce28(0x324)](_0x514eda[_0x52ce28(0x440)])),_0x21ddeb(0x7,_0x514eda['Inject'](_0x5da513)),_0x21ddeb(0x8,_0x514eda[_0x52ce28(0x324)](_0x31fa5b)),_0x21ddeb(0x9,_0x514eda[_0x52ce28(0x2d3)](_0x2f44c5['ITelemetryService']))],_0x2143a3[_0x52ce28(0x555)]);var _0x4053dd=Object['defineProperty'],_0xa23766=Object['getOwnPropertyDescriptor'],_0x50b05b=(_0x2d9fef,_0x81fb96,_0x1ef187,_0x24a202)=>{const _0x3cd816=_0x52ce28;for(var _0x52d33f=_0x24a202>0x1?void 0x0:_0x24a202?_0xa23766(_0x81fb96,_0x1ef187):_0x81fb96,_0x44e791=_0x2d9fef[_0x3cd816(0x47c)]-0x1,_0x39d4af;_0x44e791>=0x0;_0x44e791--)(_0x39d4af=_0x2d9fef[_0x44e791])&&(_0x52d33f=(_0x24a202?_0x39d4af(_0x81fb96,_0x1ef187,_0x52d33f):_0x39d4af(_0x52d33f))||_0x52d33f);return _0x24a202&&_0x52d33f&&_0x4053dd(_0x81fb96,_0x1ef187,_0x52d33f),_0x52d33f;},_0x55c248=(_0x25a2a3,_0x582365)=>(_0x11d96a,_0x10eb80)=>_0x582365(_0x11d96a,_0x10eb80,_0x25a2a3);_0x2143a3[_0x52ce28(0x3f3)]=class extends _0x514eda[_0x52ce28(0x4ad)]{constructor(_0x52f7b1,_0x40a709,_0x28c924,_0x4dd3e8,_0x52e007,_0xa6469f){const _0x55279f=_0x52ce28;super(),_0x2406c5(this,_0x55279f(0x4b3),new _0x2ca9ec[(_0x55279f(0x3ff))](void 0x0)),_0x2406c5(this,'socket$',this[_0x55279f(0x4b3)][_0x55279f(0x297)]()),_0x2406c5(this,_0x55279f(0x348),null),_0x2406c5(this,'_sessions',new Map()),_0x2406c5(this,_0x55279f(0x32f),new _0x2ca9ec[(_0x55279f(0x3ff))](_0x1e45f8[_0x55279f(0x58b)])),_0x2406c5(this,_0x55279f(0x45e),this['_status$'][_0x55279f(0x297)]()),_0x2406c5(this,_0x55279f(0x271),!0x1),_0x2406c5(this,_0x55279f(0x444)),_0x2406c5(this,_0x55279f(0x4fd),0x0),_0x2406c5(this,_0x55279f(0x2f3)),_0x2406c5(this,'_timeoutTimer'),(this[_0x55279f(0x43e)]=_0x52f7b1,this[_0x55279f(0x17e)]=_0x40a709,this[_0x55279f(0x42e)]=_0x28c924,this['_logService']=_0x4dd3e8,this[_0x55279f(0x38a)]=_0x52e007,this[_0x55279f(0x4ff)]=_0xa6469f,this[_0x55279f(0x4d6)]());}get[_0x52ce28(0x3a3)](){const _0x2bc5a5=_0x52ce28;return this[_0x2bc5a5(0x4b3)][_0x2bc5a5(0x375)]();}['_initEventListeners'](){const _0x2da307=_0x52ce28;this[_0x2da307(0x567)](),this[_0x2da307(0x2d6)]();}['dispose'](){const _0x135527=_0x52ce28;super[_0x135527(0x374)](),this[_0x135527(0x3be)][_0x135527(0x317)](_0x469643=>_0x469643[_0x135527(0x374)]()),this[_0x135527(0x3be)][_0x135527(0x3a0)](),this[_0x135527(0x32f)][_0x135527(0x364)]();}async['requireSession'](_0x448947){const _0x4a670f=_0x52ce28;if(this[_0x4a670f(0x3be)][_0x4a670f(0x2ab)](_0x448947))return this[_0x4a670f(0x3be)][_0x4a670f(0x4d3)](_0x448947);this[_0x4a670f(0x48e)]();const _0x161bc2=this['_injector']['createInstance'](_0x2143a3[_0x4a670f(0x555)],_0x448947,this[_0x4a670f(0x4b3)][_0x4a670f(0x297)]());return this[_0x4a670f(0x3be)][_0x4a670f(0x485)](_0x448947,_0x161bc2),_0x161bc2;}[_0x52ce28(0x35d)](_0x1af505){const _0x768c03=_0x52ce28;var _0x2fcc79;const _0x5b0120=this['_sessions'][_0x768c03(0x4d3)](_0x1af505);_0x5b0120&&(this[_0x768c03(0x3be)][_0x768c03(0x3ba)](_0x1af505),_0x5b0120['close']()),this['_sessions'][_0x768c03(0x50b)]||(_0x2fcc79=this[_0x768c03(0x3a3)])==null||_0x2fcc79[_0x768c03(0x553)]();}[_0x52ce28(0x4b9)](){const _0x2dd2a2=_0x52ce28;this[_0x2dd2a2(0x4fd)]=0x0,this[_0x2dd2a2(0x444)]!=null&&(clearTimeout(this[_0x2dd2a2(0x444)]),this[_0x2dd2a2(0x444)]=null),this[_0x2dd2a2(0x2bc)]();}[_0x52ce28(0x186)](){const _0x314119=_0x52ce28;var _0x4f484a,_0x325463;const _0x117ac3=this[_0x314119(0x38a)]['getConfig'](_0x43aaf),_0x5a2ae2=this[_0x314119(0x38a)][_0x314119(0x490)](_0xb94ed4),_0x3bf25e=(_0x325463=(_0x4f484a=_0x5a2ae2==null?void 0x0:_0x5a2ae2[_0x314119(0x462)])!=null?_0x4f484a:_0x117ac3)!=null?_0x325463:_0x15b092,_0x56649e=this[_0x314119(0x4ff)][_0x314119(0x25a)](_0x3bf25e);return this[_0x314119(0x348)]=_0x56649e,_0x56649e;}[_0x52ce28(0x48e)](){const _0x184ccf=_0x52ce28;var _0x56ae3e,_0x5289d0;try{const _0x314b43=(_0x5289d0=(_0x56ae3e=this[_0x184ccf(0x3a3)])!=null?_0x56ae3e:this[_0x184ccf(0x348)])!=null?_0x5289d0:this['_createSocket']();if(_0x314b43){const _0x51a9c3=_0x314b43[_0x184ccf(0x488)];_0x314b43[_0x184ccf(0x488)]=_0x204145=>(this[_0x184ccf(0x192)](),_0x51a9c3[_0x184ccf(0x3a5)](_0x314b43,[_0x204145])),_0x314b43[_0x184ccf(0x4b0)][_0x184ccf(0x1b3)](_0x5deb9a=>this['_onMessage'](_0x314b43,_0x5deb9a)),_0x314b43[_0x184ccf(0x4b7)][_0x184ccf(0x2b9)](_0x3757e3[_0x184ccf(0x4de)](0x1))[_0x184ccf(0x1b3)](_0x48ca42=>this[_0x184ccf(0x307)][_0x184ccf(0x28b)](_0x184ccf(0x315),_0x48ca42)),_0x314b43[_0x184ccf(0x43b)][_0x184ccf(0x2b9)](_0x3757e3['take'](0x1))[_0x184ccf(0x1b3)](()=>{this['_onConnectionOpen'](_0x314b43);}),_0x314b43[_0x184ccf(0x2e6)][_0x184ccf(0x2b9)](_0x3757e3[_0x184ccf(0x4de)](0x1))[_0x184ccf(0x1b3)](_0x43915a=>{const _0x562bb1=_0x184ccf;this['_logService']['debug'](_0x562bb1(0x4fc),_0x562bb1(0x4e0),_0x43915a),this[_0x562bb1(0x3db)]();});}}catch(_0x1fa617){this[_0x184ccf(0x307)]['error'](_0x1fa617),this['_onConnectionFailed']();}}['_onConnectionOpen'](_0xa1707e){const _0x48becf=_0x52ce28;this[_0x48becf(0x307)]['debug'](_0x48becf(0x4fc),_0x48becf(0x1f4)),_0xa1707e[_0x48becf(0x488)]({'cmd':_0x3fd114[_0x48becf(0x1f9)]}),this['_rescheduleHeartbeat']();}['_listenToOfflineEvent'](){const _0x483d76=_0x52ce28;window['addEventListener'](_0x483d76(0x410),()=>this[_0x483d76(0x310)]());}[_0x52ce28(0x310)](){const _0x169b1d=_0x52ce28;this[_0x169b1d(0x271)]=!0x1,this['_candidateSocket']=null,this[_0x169b1d(0x32f)]['next'](_0x1e45f8[_0x169b1d(0x249)]),this[_0x169b1d(0x4b3)]['next'](null),this[_0x169b1d(0x39a)](),this[_0x169b1d(0x17b)]();}[_0x52ce28(0x3db)](){const _0x308885=_0x52ce28;var _0xcb3894;this['_onOffline'](),this[_0x308885(0x4fd)]<((_0xcb3894=this['_configService'][_0x308885(0x490)](_0x1769f4))!=null?_0xcb3894:0x3)?(this[_0x308885(0x42e)]['show']({'key':_0x308885(0x37b),'type':_0x24f161['MessageType']['Warning'],'content':this['_localeService']['t']('session.will-retry')}),this[_0x308885(0x2bc)]()):this[_0x308885(0x42e)][_0x308885(0x2f9)]({'key':_0x308885(0x37b),'type':_0x24f161[_0x308885(0x1aa)]['Error'],'content':this[_0x308885(0x17e)]['t'](_0x308885(0x29e))});}[_0x52ce28(0x2d6)](){const _0x2239e6=_0x52ce28,_0x1cf85e=()=>{this['_socket']||this['reconnect']();},_0x54df6a=()=>{const _0x1b1c35=_0x2d6c;this[_0x1b1c35(0x3a3)]||document[_0x1b1c35(0x2a6)]===_0x1b1c35(0x496)||this[_0x1b1c35(0x4b9)]();};window[_0x2239e6(0x43d)](_0x2239e6(0x45c),_0x1cf85e),document['addEventListener'](_0x2239e6(0x2c2),_0x54df6a);}['_tryReconnect'](){const _0x224dad=_0x52ce28;var _0x5a7dee;const _0x383c6a=this[_0x224dad(0x4fd)],_0x423e7f=this[_0x224dad(0x38a)][_0x224dad(0x490)](_0xb94ed4),_0x2bb789=_0x383c6a===0x0?0x0:((_0x5a7dee=_0x423e7f==null?void 0x0:_0x423e7f[_0x224dad(0x2e9)])!=null?_0x5a7dee:0x4e20)*0x2**_0x383c6a;this[_0x224dad(0x444)]=window[_0x224dad(0x288)](()=>{const _0xda0e7d=_0x224dad;clearTimeout(this[_0xda0e7d(0x444)]),this['_retryConnectingTimer']=null,this['_tryEnsureSocket']();},_0x2bb789),this[_0x224dad(0x4fd)]+=0x1;}['_onMessage'](_0x2ea4a7,_0x213068){const _0x8f1007=_0x52ce28,{cmd:_0x1d2ebc}=_0x213068;_0x1d2ebc===_0x3fd114[_0x8f1007(0x1f9)]&&!this['_socketReady']&&(_0x2ea4a7[_0x8f1007(0x3b8)]=_0x213068[_0x8f1007(0x527)][_0x8f1007(0x3b8)],this[_0x8f1007(0x4b3)][_0x8f1007(0x1df)](_0x2ea4a7),this['_status$'][_0x8f1007(0x1df)](_0x1e45f8[_0x8f1007(0x494)]),this[_0x8f1007(0x271)]=!0x0,this[_0x8f1007(0x348)]=null),_0x1d2ebc===_0x3fd114[_0x8f1007(0x54a)]&&this[_0x8f1007(0x39a)](),this[_0x8f1007(0x192)]();}[_0x52ce28(0x192)](){const _0x2c8e92=_0x52ce28;var _0x2691df;this[_0x2c8e92(0x17b)](),this['_sendHeartbeatTimer']=window[_0x2c8e92(0x288)](()=>this[_0x2c8e92(0x303)](),(_0x2691df=this[_0x2c8e92(0x38a)][_0x2c8e92(0x490)](_0x2bd937))!=null?_0x2691df:0x7530);}[_0x52ce28(0x303)](){const _0xf05fa6=_0x52ce28;this[_0xf05fa6(0x3a3)][_0xf05fa6(0x488)]({'cmd':_0x3fd114[_0xf05fa6(0x54a)]}),this[_0xf05fa6(0x58f)]();}['_waitForHeartbeatResponse'](){const _0x303c1b=_0x52ce28;var _0x1cf9ea;this[_0x303c1b(0x2fc)]=window[_0x303c1b(0x288)](()=>this[_0x303c1b(0x3db)](),(_0x1cf9ea=this[_0x303c1b(0x38a)][_0x303c1b(0x490)](_0x2e697d))!=null?_0x1cf9ea:0x4e20);}['_clearHeartbeatTimer'](){const _0x297389=_0x52ce28;this['_sendHeartbeatTimer']!=null&&(clearTimeout(this['_sendHeartbeatTimer']),this[_0x297389(0x2f3)]=null);}[_0x52ce28(0x39a)](){const _0x3e2aa4=_0x52ce28;this['_timeoutTimer']!=null&&(clearTimeout(this['_timeoutTimer']),this[_0x3e2aa4(0x2fc)]=null);}},_0x2143a3['CollaborationSessionService']=_0x50b05b([_0x55c248(0x0,_0x514eda['Inject'](_0x514eda[_0x52ce28(0x228)])),_0x55c248(0x1,_0x514eda['Inject'](_0x514eda['LocaleService'])),_0x55c248(0x2,_0x116b36[_0x52ce28(0x3f5)]),_0x55c248(0x3,_0x514eda[_0x52ce28(0x1f6)]),_0x55c248(0x4,_0x514eda[_0x52ce28(0x480)]),_0x55c248(0x5,_0x8c5f57)],_0x2143a3[_0x52ce28(0x3f3)]);for(var _0xb31167=[],_0x3800da=0x0;_0x3800da<0x100;++_0x3800da)_0xb31167[_0x52ce28(0x47b)]((_0x3800da+0x100)[_0x52ce28(0x252)](0x10)[_0x52ce28(0x4df)](0x1));function _0x39e0b8(_0x94499,_0x452e98=0x0){const _0x543697=_0x52ce28;return(_0xb31167[_0x94499[_0x452e98+0x0]]+_0xb31167[_0x94499[_0x452e98+0x1]]+_0xb31167[_0x94499[_0x452e98+0x2]]+_0xb31167[_0x94499[_0x452e98+0x3]]+'-'+_0xb31167[_0x94499[_0x452e98+0x4]]+_0xb31167[_0x94499[_0x452e98+0x5]]+'-'+_0xb31167[_0x94499[_0x452e98+0x6]]+_0xb31167[_0x94499[_0x452e98+0x7]]+'-'+_0xb31167[_0x94499[_0x452e98+0x8]]+_0xb31167[_0x94499[_0x452e98+0x9]]+'-'+_0xb31167[_0x94499[_0x452e98+0xa]]+_0xb31167[_0x94499[_0x452e98+0xb]]+_0xb31167[_0x94499[_0x452e98+0xc]]+_0xb31167[_0x94499[_0x452e98+0xd]]+_0xb31167[_0x94499[_0x452e98+0xe]]+_0xb31167[_0x94499[_0x452e98+0xf]])[_0x543697(0x4f3)]();}var _0xbba9c,_0x2dfb70=new Uint8Array(0x10);function _0x469d44(){const _0x56ef96=_0x52ce28;if(!_0xbba9c&&(_0xbba9c=typeof crypto<'u'&&crypto[_0x56ef96(0x1d4)]&&crypto['getRandomValues'][_0x56ef96(0x511)](crypto),!_0xbba9c))throw new Error('crypto.getRandomValues()\x20not\x20supported.\x20See\x20https://github.com/uuidjs/uuid#getrandomvalues-not-supported');return _0xbba9c(_0x2dfb70);}var _0x207c03=typeof crypto<'u'&&crypto[_0x52ce28(0x392)]&&crypto[_0x52ce28(0x392)][_0x52ce28(0x511)](crypto);const _0x160106={'randomUUID':_0x207c03};function _0x2c0a08(_0x10a0f5,_0x4a4249,_0x21084e){const _0x2bb161=_0x52ce28;if(_0x160106[_0x2bb161(0x392)]&&!_0x4a4249&&!_0x10a0f5)return _0x160106[_0x2bb161(0x392)]();_0x10a0f5=_0x10a0f5||{};var _0x591ce4=_0x10a0f5[_0x2bb161(0x2a8)]||(_0x10a0f5['rng']||_0x469d44)();return _0x591ce4[0x6]=_0x591ce4[0x6]&0xf|0x40,_0x591ce4[0x8]=_0x591ce4[0x8]&0x3f|0x80,_0x39e0b8(_0x591ce4);}var _0x3bb801=Object[_0x52ce28(0x1fd)],_0x1dd239=Object[_0x52ce28(0x493)],_0x58fb94=(_0x147f55,_0x46d737,_0x5bdc8b,_0x49688f)=>{for(var _0x1e71d2=_0x49688f>0x1?void 0x0:_0x49688f?_0x1dd239(_0x46d737,_0x5bdc8b):_0x46d737,_0x1b180e=_0x147f55['length']-0x1,_0x406e4d;_0x1b180e>=0x0;_0x1b180e--)(_0x406e4d=_0x147f55[_0x1b180e])&&(_0x1e71d2=(_0x49688f?_0x406e4d(_0x46d737,_0x5bdc8b,_0x1e71d2):_0x406e4d(_0x1e71d2))||_0x1e71d2);return _0x49688f&&_0x1e71d2&&_0x3bb801(_0x46d737,_0x5bdc8b,_0x1e71d2),_0x1e71d2;},_0x13de42=(_0x31fad2,_0x2256bd)=>(_0x1a0ad4,_0x48745d)=>_0x2256bd(_0x1a0ad4,_0x48745d,_0x31fad2);let _0x11b33f=class{constructor(_0x31c786,_0x3345ae,_0x50c679){const _0x5a1583=_0x52ce28;this[_0x5a1583(0x43e)]=_0x31c786,this[_0x5a1583(0x283)]=_0x3345ae,this[_0x5a1583(0x455)]=_0x50c679;}[_0x52ce28(0x2bd)](_0x27a1eb){const _0x1f9c2f=_0x52ce28;this['_transformUndoRedoStack'](_0x27a1eb),this[_0x1f9c2f(0x524)](_0x27a1eb);}[_0x52ce28(0x1e7)](_0x12c27d){const _0x5cea66=_0x52ce28,{unitID:_0x14c55d}=_0x12c27d,_0xc0274=this[_0x5cea66(0x455)]['getRenderById'](_0x14c55d)[_0x5cea66(0x30c)](_0x393ad9['DocIMEInputManagerService']),{redoCache:_0x54a575}=_0xc0274[_0x5cea66(0x587)]();if(_0x54a575[_0x5cea66(0x47c)]===0x0)return _0x12c27d;let _0x1abab7=_0x514eda['Tools'][_0x5cea66(0x56b)](_0x12c27d['mutations'][0x0]);for(let _0x34d35c=0x0;_0x34d35c<_0x54a575['length'];_0x34d35c++){const _0x563887={'id':'doc.mutation.rich-text-editing','params':{..._0x54a575[_0x34d35c]}},_0x16e76b=this[_0x5cea66(0x283)][_0x5cea66(0x46c)](_0x1abab7,_0x563887,!0x1);if(_0x3a5d3a[_0x5cea66(0x516)](_0x16e76b))throw _0x16e76b[_0x5cea66(0x28b)];_0x1abab7=_0x16e76b[_0x5cea66(0x4c2)];}return{..._0x514eda[_0x5cea66(0x383)][_0x5cea66(0x56b)](_0x12c27d),'mutations':[_0x1abab7]};}[_0x52ce28(0x582)](_0xe40eca){const _0x390562=_0x52ce28,{unitID:_0x36ff63}=_0xe40eca,_0x436d65=this['_renderManagerService'][_0x390562(0x1a4)](_0x36ff63)[_0x390562(0x30c)](_0x393ad9[_0x390562(0x584)]),{undoCache:_0x42b842,redoCache:_0x3473a0}=_0x436d65['getUndoRedoMutationParamsCache']();if(_0x42b842[_0x390562(0x47c)]===0x0||_0x3473a0[_0x390562(0x47c)]===0x0)return;const _0x4ed7c5=[],_0x33a005=[];let _0x3a050e=_0x514eda['Tools']['deepClone'](_0xe40eca['mutations'][0x0]),_0xc99bf0=_0x514eda[_0x390562(0x383)][_0x390562(0x56b)](_0xe40eca['mutations'][0x0]);for(let _0x4d6520=_0x42b842[_0x390562(0x47c)]-0x1;_0x4d6520>=0x0;_0x4d6520--){const _0x352624={'id':'doc.mutation.rich-text-editing','params':{..._0x42b842[_0x4d6520]}},_0x43327a={'id':_0x390562(0x412),'params':{..._0x3473a0[_0x4d6520]}},_0x28d163=this[_0x390562(0x283)]['transformMutation'](_0x3a050e,_0x352624,!0x1),_0x2a51a7=this[_0x390562(0x283)][_0x390562(0x46c)](_0xc99bf0,_0x43327a,!0x1);if(_0x3a5d3a[_0x390562(0x516)](_0x28d163))throw _0x28d163['error'];if(_0x3a5d3a[_0x390562(0x516)](_0x2a51a7))throw _0x2a51a7[_0x390562(0x28b)];_0x4ed7c5[_0x390562(0x371)](_0x28d163[_0x390562(0x5a6)][_0x390562(0x2b4)]),_0x33a005[_0x390562(0x371)](_0x2a51a7[_0x390562(0x5a6)]['params']),_0x3a050e=_0x28d163[_0x390562(0x4c2)],_0xc99bf0=_0x2a51a7[_0x390562(0x4c2)];}_0x436d65[_0x390562(0x262)]({'undoCache':_0x4ed7c5,'redoCache':_0x33a005});}[_0x52ce28(0x524)](_0x30da24){const _0x2c7d99=_0x52ce28,{unitID:_0x5607eb}=_0x30da24,_0x25b982=this[_0x2c7d99(0x455)][_0x2c7d99(0x1a4)](_0x5607eb)[_0x2c7d99(0x30c)](_0x393ad9['DocIMEInputManagerService']),_0x1fae3d=_0x25b982[_0x2c7d99(0x274)]();if(_0x1fae3d==null)return;const _0x13ec99=[{'id':_0x2c7d99(0x412),'params':{'unitId':_0x30da24[_0x2c7d99(0x261)],'actions':null,'textRanges':[_0x1fae3d]}}],_0x21cb29=this[_0x2c7d99(0x283)]['transformMutationsWithChangeset'](_0x30da24,_0x13ec99);if(!_0x3a5d3a[_0x2c7d99(0x1a8)](_0x21cb29))throw _0x21cb29[_0x2c7d99(0x28b)];const _0x23ebd5=_0x21cb29[_0x2c7d99(0x5a6)][0x0][_0x2c7d99(0x2b4)][_0x2c7d99(0x275)];Array[_0x2c7d99(0x2cb)](_0x23ebd5)&&_0x23ebd5[_0x2c7d99(0x47c)]&&_0x25b982[_0x2c7d99(0x357)](_0x23ebd5[0x0]);}};_0x11b33f=_0x58fb94([_0x13de42(0x0,_0x514eda[_0x52ce28(0x324)](_0x514eda[_0x52ce28(0x228)])),_0x13de42(0x1,_0x3a5d3a[_0x52ce28(0x231)]),_0x13de42(0x2,_0x29b5d0[_0x52ce28(0x1d9)])],_0x11b33f);var _0x14a677=Object['defineProperty'],_0x1e7a5e=Object[_0x52ce28(0x493)],_0x388675=(_0x440c39,_0x65d95a,_0xd24837,_0x86bc89)=>{const _0x566495=_0x52ce28;for(var _0x30de3f=_0x86bc89>0x1?void 0x0:_0x86bc89?_0x1e7a5e(_0x65d95a,_0xd24837):_0x65d95a,_0x4b8789=_0x440c39[_0x566495(0x47c)]-0x1,_0x316474;_0x4b8789>=0x0;_0x4b8789--)(_0x316474=_0x440c39[_0x4b8789])&&(_0x30de3f=(_0x86bc89?_0x316474(_0x65d95a,_0xd24837,_0x30de3f):_0x316474(_0x30de3f))||_0x30de3f);return _0x86bc89&&_0x30de3f&&_0x14a677(_0x65d95a,_0xd24837,_0x30de3f),_0x30de3f;},_0x46c2aa=(_0x1fb67b,_0x4bc214)=>(_0x9934aa,_0x2bf90b)=>_0x4bc214(_0x9934aa,_0x2bf90b,_0x1fb67b);_0x2143a3[_0x52ce28(0x472)]=class extends _0x514eda[_0x52ce28(0x4ad)]{constructor(_0x4f0e6f,_0x118880,_0x395b11,_0xb79df2,_0x51f583){const _0x1ed592=_0x52ce28;super(),_0x2406c5(this,_0x1ed592(0x546),new Map()),_0x2406c5(this,_0x1ed592(0x328),new Map()),_0x2406c5(this,'_disabled',!0x1),(this[_0x1ed592(0x38a)]=_0x4f0e6f,this[_0x1ed592(0x22f)]=_0x118880,this[_0x1ed592(0x36b)]=_0x395b11,this['_localeService']=_0xb79df2,this[_0x1ed592(0x433)]=_0x51f583,this[_0x1ed592(0x4ca)]());}['disableLocalCache'](){const _0x5e99a4=_0x52ce28;this[_0x5e99a4(0x39c)]=!0x0;}[_0x52ce28(0x1a5)](){const _0x18b328=_0x52ce28;this[_0x18b328(0x39c)]=!0x1;}['dispose'](){const _0x3c83a2=_0x52ce28;this[_0x3c83a2(0x2ac)]()[_0x3c83a2(0x4ac)](()=>super[_0x3c83a2(0x374)]());}async['loadOfflineData'](_0xe5a15c){const _0x4ea2ca=_0x52ce28;return this[_0x4ea2ca(0x39c)]?null:this[_0x4ea2ca(0x22f)]['getItem'](_0x298578(_0xe5a15c));}async[_0x52ce28(0x3b5)](_0x4a6a39,_0x413820){const _0x20fe06=_0x52ce28;return!!this['_localStorageService'][_0x20fe06(0x468)](_0x4a6a39,_0x413820);}[_0x52ce28(0x3e3)](_0x516680,_0x291f80,_0x1b8100,_0x535113){const _0x45bfc3=_0x52ce28,_0x378185=this[_0x45bfc3(0x433)]['getCurrentRevOfUnit'](_0x516680);this['_cachedData']['set'](_0x516680,{'unitID':_0x516680,'type':_0x291f80,'awaitingChangeset':_0x1b8100,'mutations':_0x535113,'rev':_0x378185}),this[_0x45bfc3(0x328)][_0x45bfc3(0x2ab)](_0x516680)||this[_0x45bfc3(0x216)](_0x516680);}[_0x52ce28(0x216)](_0x339826){const _0xebe00f=_0x52ce28,_0x15a079=this[_0xebe00f(0x378)]();_0x15a079===0x0?this[_0xebe00f(0x2f6)](_0x339826):this[_0xebe00f(0x328)][_0xebe00f(0x485)](_0x339826,setTimeout(()=>this[_0xebe00f(0x2f6)](_0x339826),_0x15a079));}['_getSaveTimeout'](){const _0x179702=_0x52ce28;var _0x210ed6;return(_0x210ed6=this[_0x179702(0x38a)][_0x179702(0x490)](_0x4329e9))!=null?_0x210ed6:0x3e8;}['_saveCache'](_0x2571f1){const _0x3668cb=_0x52ce28,_0x4da153=this['_saveTaskMap']['get'](_0x2571f1);return _0x4da153!==void 0x0&&window['clearTimeout'](_0x4da153),this[_0x3668cb(0x22f)]['setItem'](_0x298578(_0x2571f1),this[_0x3668cb(0x546)][_0x3668cb(0x4d3)](_0x2571f1))[_0x3668cb(0x4ac)](()=>this[_0x3668cb(0x328)][_0x3668cb(0x3ba)](_0x2571f1));}async[_0x52ce28(0x2ac)](){const _0x43b549=_0x52ce28,_0x3e7f0c=[];this['_saveTaskMap'][_0x43b549(0x317)]((_0x12e9b6,_0x44d584)=>{const _0x55490c=_0x43b549;window[_0x55490c(0x387)](_0x12e9b6),_0x3e7f0c[_0x55490c(0x47b)](this[_0x55490c(0x2f6)](_0x44d584)[_0x55490c(0x4ac)](()=>{const _0x3909dd=_0x55490c;this[_0x3909dd(0x328)][_0x3909dd(0x3ba)](_0x44d584);}));}),await Promise[_0x43b549(0x2bb)](_0x3e7f0c);}['_setupBeforeClosingHandler'](){const _0x4161e4=_0x52ce28;this['disposeWithMe'](this[_0x4161e4(0x36b)][_0x4161e4(0x461)](()=>{const _0x53aa67=_0x4161e4;if(this['_saveTaskMap']['size'])return this[_0x53aa67(0x17e)]['t'](_0x53aa67(0x578));}));}},_0x2143a3[_0x52ce28(0x472)]=_0x388675([_0x46c2aa(0x0,_0x514eda[_0x52ce28(0x480)]),_0x46c2aa(0x1,_0x514eda[_0x52ce28(0x1d0)]),_0x46c2aa(0x2,_0x116b36['IBeforeCloseService']),_0x46c2aa(0x3,_0x514eda[_0x52ce28(0x324)](_0x514eda[_0x52ce28(0x440)])),_0x46c2aa(0x4,_0x514eda[_0x52ce28(0x324)](_0x3a5d3a['RevisionService']))],_0x2143a3[_0x52ce28(0x472)]);function _0x298578(_0x4a6474){const _0x5e3050=_0x52ce28;return _0x5e3050(0x1c5)+_0x4a6474;}var _0x43d281=Object[_0x52ce28(0x1fd)],_0x5548b2=Object[_0x52ce28(0x493)],_0x152335=(_0x2b51e3,_0x29c05c,_0x56981e,_0x1693f2)=>{const _0x3a9e35=_0x52ce28;for(var _0x5ed695=_0x1693f2>0x1?void 0x0:_0x1693f2?_0x5548b2(_0x29c05c,_0x56981e):_0x29c05c,_0x34653a=_0x2b51e3[_0x3a9e35(0x47c)]-0x1,_0x17b1d1;_0x34653a>=0x0;_0x34653a--)(_0x17b1d1=_0x2b51e3[_0x34653a])&&(_0x5ed695=(_0x1693f2?_0x17b1d1(_0x29c05c,_0x56981e,_0x5ed695):_0x17b1d1(_0x5ed695))||_0x5ed695);return _0x1693f2&&_0x5ed695&&_0x43d281(_0x29c05c,_0x56981e,_0x5ed695),_0x5ed695;},_0x51c979=(_0x311fdb,_0x39664b)=>(_0x1072e7,_0x95e542)=>_0x39664b(_0x1072e7,_0x95e542,_0x311fdb);function _0x464ce8(_0x47a88c){const {unitID:_0x26fb2e,mutations:_0x39ca2c}=_0x47a88c;return{'unitId':_0x26fb2e,'subUnitId':_0x39ca2c[0x0]['params']['subUnitId']};}let _0x2da596=class{constructor(_0x351224,_0x21937a,_0x54977c){const _0x6ef6be=_0x52ce28;this[_0x6ef6be(0x43e)]=_0x351224,this[_0x6ef6be(0x283)]=_0x21937a,this[_0x6ef6be(0x258)]=_0x54977c;}[_0x52ce28(0x53f)](_0x34d861){const _0x12233e=_0x52ce28;var _0x15eade,_0x4b310f,_0x312521,_0x469257;const _0x60ffed=this['_injector'][_0x12233e(0x4d3)](_0x12c1fe['SheetsSelectionsService']),{unitId:_0x33e396,subUnitId:_0x1f244d}=_0x464ce8(_0x34d861),_0x450738=_0x60ffed[_0x12233e(0x24a)](_0x33e396)[_0x12233e(0x2c7)](),_0x5e0529=(_0x4b310f=(_0x15eade=this[_0x12233e(0x258)][_0x12233e(0x4d8)](_0x33e396))==null?void 0x0:_0x15eade[_0x12233e(0x507)]())==null?void 0x0:_0x4b310f['getSheetId']();if(_0x450738['length']===0x0||!_0x33e396||!_0x1f244d)return;const _0x12f142=[{'id':_0x12c1fe[_0x12233e(0x1a2)]['id'],'params':{'unitId':_0x33e396,'subUnitId':_0x5e0529,'selections':_0x514eda[_0x12233e(0x383)][_0x12233e(0x56b)](_0x450738)}}],_0x43f31c=this[_0x12233e(0x283)]['transformMutationsWithChangeset'](_0x34d861,_0x12f142);if(!_0x3a5d3a[_0x12233e(0x1a8)](_0x43f31c))throw _0x43f31c[_0x12233e(0x28b)];const _0x3c9a30=(_0x469257=(_0x312521=_0x43f31c[_0x12233e(0x5a6)][0x0])==null?void 0x0:_0x312521['params'])==null?void 0x0:_0x469257['selections'];Array[_0x12233e(0x2cb)](_0x3c9a30)&&_0x3c9a30['length']&&this[_0x12233e(0x43e)][_0x12233e(0x4d3)](_0x514eda[_0x12233e(0x289)])[_0x12233e(0x414)](_0x12c1fe[_0x12233e(0x1a2)]['id'],{'unitId':_0x33e396,'subUnitId':_0x5e0529,'selections':_0x3c9a30});}};_0x2da596=_0x152335([_0x51c979(0x0,_0x514eda['Inject'](_0x514eda[_0x52ce28(0x228)])),_0x51c979(0x1,_0x3a5d3a[_0x52ce28(0x231)]),_0x51c979(0x2,_0x514eda[_0x52ce28(0x29d)])],_0x2da596);const _0x701040=_0x514eda[_0x52ce28(0x1c7)]('univer-pro.collaboration-client.single-active-unit-service');var _0x2b08ce=(_0x44d203=>(_0x44d203[_0x44d203[_0x52ce28(0x575)]=0x0]=_0x52ce28(0x575),_0x44d203[_0x44d203[_0x52ce28(0x200)]=0x1]=_0x52ce28(0x200),_0x44d203))(_0x2b08ce||{});const _0xa0e37f=0x7530,_0x39e68f=_0x52ce28(0x1d2);class _0x496f50 extends _0x514eda['Disposable']{constructor(){const _0x5f4e2a=_0x52ce28;super(),_0x2406c5(this,_0x5f4e2a(0x42f),_0x514eda[_0x5f4e2a(0x383)][_0x5f4e2a(0x432)]()),_0x2406c5(this,_0x5f4e2a(0x1fe),new Set()),_0x2406c5(this,_0x5f4e2a(0x2f8),new Map()),_0x2406c5(this,_0x5f4e2a(0x20d),null),_0x2406c5(this,_0x5f4e2a(0x464),new Map()),_0x2406c5(this,_0x5f4e2a(0x321),new Map()),this['_init']();}['dispose'](){const _0x58a331=_0x52ce28;super['dispose'](),this[_0x58a331(0x464)]['forEach']((_0x4f9be6,_0x512197)=>this[_0x58a331(0x3d4)](_0x512197)),this[_0x58a331(0x20d)]&&window[_0x58a331(0x3f9)](this['_heartbeatTimer']);}[_0x52ce28(0x2bf)](_0x523b13){return this['_ensureSubject'](_0x523b13)['pipe'](_0x2ca9ec['distinctUntilChanged']());}[_0x52ce28(0x3ce)](_0x1adfca){const _0x28fc2f=_0x52ce28;this[_0x28fc2f(0x1fe)]['size']===0x0&&this[_0x28fc2f(0x273)](),this[_0x28fc2f(0x1fe)][_0x28fc2f(0x24c)](_0x1adfca),this[_0x28fc2f(0x2af)]({'type':0x0,'memberID':this[_0x28fc2f(0x42f)],'unitIDs':[_0x1adfca],'isForwarded':!0x1});}['disposeUnit'](_0x50aea7){const _0x371417=_0x52ce28;this['_selfUnitIDs'][_0x371417(0x3ba)](_0x50aea7),this[_0x371417(0x1fe)][_0x371417(0x50b)]===0x0&&this[_0x371417(0x20d)]&&window[_0x371417(0x3f9)](this[_0x371417(0x20d)]);}[_0x52ce28(0x5a9)](){const _0x266612=_0x52ce28;this[_0x266612(0x3ad)](_0x514eda['toDisposable'](_0x2ca9ec[_0x266612(0x402)](window,'storage')[_0x266612(0x1b3)](_0x226489=>{const _0x3e0e29=_0x266612;if(_0x226489[_0x3e0e29(0x3cb)]!==_0x39e68f||!_0x226489[_0x3e0e29(0x3a6)])return;const _0x1a75dd=JSON[_0x3e0e29(0x325)](_0x226489[_0x3e0e29(0x3a6)]);this[_0x3e0e29(0x40f)](_0x1a75dd);}))),window['addEventListener']('unload',()=>this[_0x266612(0x2af)]({'type':0x1,'memberID':this[_0x266612(0x42f)],'unitIDs':Array['from'](this[_0x266612(0x1fe)])}));}['_handleEvent'](_0x5f462f){const _0x2ce162=_0x52ce28;switch(_0x5f462f[_0x2ce162(0x37c)]){case 0x0:this[_0x2ce162(0x57c)](_0x5f462f);break;case 0x1:this[_0x2ce162(0x37a)](_0x5f462f);break;case 0x2:this[_0x2ce162(0x232)](_0x5f462f);break;}}['_handleJoinEvent'](_0x45f459){const _0x13f708=_0x52ce28,{unitIDs:_0x2e6b04,memberID:_0x4f24d5,isForwarded:_0x200ccd}=_0x45f459;_0x2e6b04['forEach'](_0x5ead9a=>{const _0x258940=_0x2d6c;if(!_0x200ccd&&this[_0x258940(0x2f8)][_0x258940(0x2ab)](_0x5ead9a)&&this[_0x258940(0x1b8)](_0x5ead9a)[_0x258940(0x1df)](0x1),!this[_0x258940(0x2f8)]['has'](_0x5ead9a)||!this['_unitOnClients'][_0x258940(0x4d3)](_0x5ead9a)['has'](_0x4f24d5)){const _0x5238aa=this[_0x258940(0x2f8)][_0x258940(0x4d3)](_0x5ead9a)||new Set();_0x5238aa[_0x258940(0x24c)](_0x4f24d5),this[_0x258940(0x2f8)]['set'](_0x5ead9a,_0x5238aa),this[_0x258940(0x1b2)](_0x4f24d5);}}),_0x200ccd||this['_send']({'type':0x0,'memberID':this[_0x13f708(0x42f)],'unitIDs':[...this[_0x13f708(0x1fe)]],'isForwarded':!0x0});}[_0x52ce28(0x1b2)](_0x4c4662){const _0x3953f9=_0x52ce28;this[_0x3953f9(0x3d4)](_0x4c4662);const _0x844854=window[_0x3953f9(0x288)](()=>{const _0x2d27fb=_0x3953f9;this[_0x2d27fb(0x2f8)][_0x2d27fb(0x317)](_0x1fd1d2=>{const _0x44b88a=_0x2d27fb;_0x1fd1d2[_0x44b88a(0x3ba)](_0x4c4662);});},_0xa0e37f*0x2);this['_clearOtherTimers'][_0x3953f9(0x485)](_0x4c4662,_0x844854);}[_0x52ce28(0x3d4)](_0x4b0ee2){const _0x34a4b7=_0x52ce28;if(this['_clearOtherTimers'][_0x34a4b7(0x2ab)](_0x4b0ee2)){const _0x32512e=this[_0x34a4b7(0x464)][_0x34a4b7(0x4d3)](_0x4b0ee2);_0x32512e&&window[_0x34a4b7(0x387)](_0x32512e),this['_clearOtherTimers'][_0x34a4b7(0x485)](_0x4b0ee2,null);}}[_0x52ce28(0x37a)](_0x1fe55f){const _0x5b12f1=_0x52ce28,{memberID:_0x4cc3f5,unitIDs:_0x3d6197}=_0x1fe55f;_0x3d6197['forEach'](_0x955cac=>{const _0x35c878=_0x2d6c;var _0x562667;const _0x1910c8=this[_0x35c878(0x2f8)]['get'](_0x955cac);_0x1910c8&&(_0x1910c8['delete'](_0x4cc3f5),(_0x562667=this[_0x35c878(0x1b8)](_0x955cac))==null||_0x562667[_0x35c878(0x1df)](_0x1910c8[_0x35c878(0x50b)]===0x0?0x0:0x1));}),this[_0x5b12f1(0x3d4)](_0x4cc3f5);}[_0x52ce28(0x232)](_0xbc22e2){const _0x512ebb=_0x52ce28;this['_scheduleClearOtherTimer'](_0xbc22e2[_0x512ebb(0x3b8)]);}['_send'](_0x202b98){const _0x2a28b9=_0x52ce28;localStorage[_0x2a28b9(0x468)](_0x39e68f,JSON[_0x2a28b9(0x4f2)](_0x202b98));}['_scheduleHeartbeat'](){const _0x505f06=_0x52ce28;this[_0x505f06(0x20d)]=window[_0x505f06(0x1fb)](()=>{const _0x3d0c88=_0x505f06;this[_0x3d0c88(0x2af)]({'type':0x2,'memberID':this[_0x3d0c88(0x42f)]});},_0xa0e37f);}[_0x52ce28(0x1b8)](_0x19711a){const _0x43783a=_0x52ce28;return this[_0x43783a(0x321)]['has'](_0x19711a)||this[_0x43783a(0x321)][_0x43783a(0x485)](_0x19711a,new _0x2ca9ec[(_0x43783a(0x3ff))](0x0)),this[_0x43783a(0x321)][_0x43783a(0x4d3)](_0x19711a);}}function _0x2eca7a(_0x5482fa){const _0x215290=_0x52ce28;let _0xfbdfbc='';for(const _0x492f1f of _0x5482fa){const {startOffset:_0x589c04,endOffset:_0x4bf301,isActive:_0x223466}=_0x492f1f;_0xfbdfbc[_0x215290(0x47c)]&&(_0xfbdfbc+=','),_0xfbdfbc+=_0x589c04+':'+_0x4bf301+':'+(_0x223466?'1':'0');}return _0xfbdfbc;}function _0x2bdadd(_0x917758){const _0x250447=_0x52ce28,_0x4c810f=_0x917758[_0x250447(0x306)](','),_0x102d31=[];for(const _0x1fada6 of _0x4c810f){const [_0x46c1ad,_0x18eab3,_0x474e1d]=_0x1fada6[_0x250447(0x306)](':');_0x102d31[_0x250447(0x47b)]({'startOffset':Number(_0x46c1ad),'endOffset':Number(_0x18eab3),'collapsed':_0x46c1ad===_0x18eab3,'isActive':_0x474e1d==='1'});}return _0x102d31[_0x250447(0x1da)](_0x4e034b=>_0x4e034b[_0x250447(0x332)])||(_0x102d31[0x0][_0x250447(0x332)]=!0x0),_0x102d31;}class _0x8e44ac extends _0x514eda['RxDisposable']{constructor(){const _0x45b024=_0x52ce28;super(...arguments),_0x2406c5(this,_0x45b024(0x340),new _0x2ca9ec[(_0x45b024(0x3ff))](null)),_0x2406c5(this,_0x45b024(0x260),this[_0x45b024(0x340)][_0x45b024(0x297)]());}['syncEditingCollabCursor'](_0x55df21){const _0x5e0b86=_0x52ce28,{unitID:_0xd7fec,memberID:_0x44ec47,textRanges:_0xa31fb4}=_0x55df21,_0x2352b2=_0x2eca7a(_0xa31fb4),_0x2d7206={'unitID':_0xd7fec,'memberID':_0x44ec47,'selection':_0x2352b2};this[_0x5e0b86(0x340)][_0x5e0b86(0x1df)](_0x2d7206);}}var _0x5eed96=Object[_0x52ce28(0x1fd)],_0x3eb021=Object['getOwnPropertyDescriptor'],_0x2543a1=(_0x36b7a8,_0xb69421,_0x47b5d9,_0x1fc314)=>{const _0x2c8cef=_0x52ce28;for(var _0x17b77d=_0x1fc314>0x1?void 0x0:_0x1fc314?_0x3eb021(_0xb69421,_0x47b5d9):_0xb69421,_0x51c253=_0x36b7a8[_0x2c8cef(0x47c)]-0x1,_0x2f65a2;_0x51c253>=0x0;_0x51c253--)(_0x2f65a2=_0x36b7a8[_0x51c253])&&(_0x17b77d=(_0x1fc314?_0x2f65a2(_0xb69421,_0x47b5d9,_0x17b77d):_0x2f65a2(_0x17b77d))||_0x17b77d);return _0x1fc314&&_0x17b77d&&_0x5eed96(_0xb69421,_0x47b5d9,_0x17b77d),_0x17b77d;},_0x9da7b8=(_0x5cf4be,_0x4e4786)=>(_0x1485ac,_0x33bef3)=>_0x4e4786(_0x1485ac,_0x33bef3,_0x5cf4be);let _0x30b76d=class{constructor(_0x300948,_0x11f155){const _0x34cc26=_0x52ce28;this[_0x34cc26(0x43e)]=_0x300948,this['_transformService']=_0x11f155;}[_0x52ce28(0x53f)](_0x5066c8){const _0x332292=_0x52ce28;var _0x4ab27e;const _0x26bd1e=this[_0x332292(0x43e)][_0x332292(0x4d3)](_0x26ab50[_0x332292(0x1bd)]),_0x4811d6=(_0x4ab27e=_0x26bd1e[_0x332292(0x411)]())!=null?_0x4ab27e:[];if(_0x4811d6[_0x332292(0x47c)]===0x0)return;const _0x2fe2be=[{'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x5066c8[_0x332292(0x261)],'actions':null,'textRanges':_0x4811d6}}],_0x32e97e=this[_0x332292(0x283)][_0x332292(0x505)](_0x5066c8,_0x2fe2be);if(!_0x3a5d3a[_0x332292(0x1a8)](_0x32e97e))throw _0x32e97e[_0x332292(0x28b)];const _0x23b693=_0x32e97e['m2Prime'][0x0]['params'][_0x332292(0x275)];Array[_0x332292(0x2cb)](_0x23b693)&&_0x23b693[_0x332292(0x47c)]&&_0x26bd1e[_0x332292(0x59c)](_0x23b693,!0x1);}};_0x30b76d=_0x2543a1([_0x9da7b8(0x0,_0x514eda[_0x52ce28(0x324)](_0x514eda[_0x52ce28(0x228)])),_0x9da7b8(0x1,_0x3a5d3a[_0x52ce28(0x231)])],_0x30b76d);const _0x343775=new Set([_0x12c1fe[_0x52ce28(0x29b)]['id']]);function _0x13e78c(_0x340b8d,_0x59eda2,_0x7fa61f,_0x3c3210,_0x5da8c9){const _0x14a2ee=_0x52ce28;var _0x5655b8,_0x5b917a,_0x1fb7b4,_0x3365fe;const _0x45a1f5=[];for(const _0x94bc5b of _0x340b8d)if(_0x343775[_0x14a2ee(0x2ab)](_0x94bc5b['id'])){if(_0x45a1f5[_0x14a2ee(0x47c)]>0x0)break;_0x45a1f5[_0x14a2ee(0x47b)](_0x94bc5b);break;}else _0x45a1f5['push'](_0x94bc5b);const _0x2ebbe8=(_0x5b917a=(_0x5655b8=_0x5da8c9[_0x14a2ee(0x1d3)]())==null?void 0x0:_0x5655b8['userID'])!=null?_0x5b917a:'unknown',_0x557f50=(_0x3365fe=(_0x1fb7b4=_0x5da8c9[_0x14a2ee(0x1d3)]())==null?void 0x0:_0x1fb7b4[_0x14a2ee(0x3b8)])!=null?_0x3365fe:_0x14a2ee(0x342);return{'changeset':{'unitID':_0x59eda2,'type':_0x3a5d3a[_0x14a2ee(0x34a)](_0x7fa61f[_0x14a2ee(0x563)](_0x59eda2)),'baseRev':_0x3c3210[_0x14a2ee(0x424)](_0x59eda2),'revision':0x0,'userID':_0x2ebbe8,'memberID':_0x557f50,'mutations':_0x45a1f5},'pendingMutations':_0x340b8d[_0x14a2ee(0x4df)](_0x45a1f5['length'])};}function _0x5d4ca5(_0x39b32b,_0x82c94b,_0x2a993c,_0x2ec93c,_0x5ea566){const _0x1ba425=_0x52ce28;var _0x54a404,_0x134b58,_0x12ab99,_0x39376d;const _0x127321=[_0x39b32b['reduce']((_0x20b93e,_0x2684be)=>{const _0x5a34a5=_0x2d6c;var _0x5ed0a5;const {id:_0x30475c}=_0x20b93e,{id:_0x5d5f00,type:_0x4c8a36}=_0x2684be,_0x5ae9ce=(_0x5ed0a5=_0x20b93e[_0x5a34a5(0x2b4)])!=null?_0x5ed0a5:{'actions':null},_0x5d6222=_0x2684be[_0x5a34a5(0x2b4)];if(_0x30475c&&_0x30475c!==_0x5d5f00)throw new Error(_0x5a34a5(0x5a8)+_0x30475c+'\x20-\x20'+_0x5d5f00+'.');return{..._0x20b93e,'id':_0x5d5f00,'type':_0x4c8a36,'params':{'unitId':_0x5d6222['unitId'],'textRanges':_0x5d6222[_0x5a34a5(0x275)],'actions':_0x514eda[_0x5a34a5(0x19f)][_0x5a34a5(0x46a)](_0x5ae9ce[_0x5a34a5(0x408)],_0x5d6222[_0x5a34a5(0x408)])}};},{})],_0x3cc150=(_0x134b58=(_0x54a404=_0x5ea566['getCurrentUser']())==null?void 0x0:_0x54a404[_0x1ba425(0x431)])!=null?_0x134b58:_0x1ba425(0x342),_0x4d3770=(_0x39376d=(_0x12ab99=_0x5ea566[_0x1ba425(0x1d3)]())==null?void 0x0:_0x12ab99['memberID'])!=null?_0x39376d:'unknown';return{'changeset':{'unitID':_0x82c94b,'type':_0x3a5d3a[_0x1ba425(0x34a)](_0x2a993c[_0x1ba425(0x563)](_0x82c94b)),'baseRev':_0x2ec93c[_0x1ba425(0x424)](_0x82c94b),'revision':0x0,'userID':_0x3cc150,'memberID':_0x4d3770,'mutations':_0x127321},'pendingMutations':[]};}const _0x2beb30={'id':_0x12c1fe[_0x52ce28(0x2a9)]['id'],'type':_0x514eda[_0x52ce28(0x1a9)][_0x52ce28(0x284)],'params':{}};var _0x50bcaf=Object[_0x52ce28(0x1fd)],_0x2bc4aa=Object[_0x52ce28(0x493)],_0x30579a=(_0x39279d,_0x157867,_0x21a8f5,_0x5ce2cd)=>{const _0x5767fa=_0x52ce28;for(var _0x36c4ec=_0x5ce2cd>0x1?void 0x0:_0x5ce2cd?_0x2bc4aa(_0x157867,_0x21a8f5):_0x157867,_0x1fe261=_0x39279d[_0x5767fa(0x47c)]-0x1,_0x21ef90;_0x1fe261>=0x0;_0x1fe261--)(_0x21ef90=_0x39279d[_0x1fe261])&&(_0x36c4ec=(_0x5ce2cd?_0x21ef90(_0x157867,_0x21a8f5,_0x36c4ec):_0x21ef90(_0x36c4ec))||_0x36c4ec);return _0x5ce2cd&&_0x36c4ec&&_0x50bcaf(_0x157867,_0x21a8f5,_0x36c4ec),_0x36c4ec;},_0x14fb63=(_0x1c1825,_0x52e50f)=>(_0x5346ff,_0x2fad00)=>_0x52e50f(_0x5346ff,_0x2fad00,_0x1c1825),_0x23695f=(_0x21d35c=>(_0x21d35c[_0x52ce28(0x367)]='not_collab',_0x21d35c[_0x52ce28(0x59d)]=_0x52ce28(0x5a1),_0x21d35c[_0x52ce28(0x18b)]='pending',_0x21d35c['AWAITING']=_0x52ce28(0x2d7),_0x21d35c[_0x52ce28(0x1a6)]=_0x52ce28(0x4d2),_0x21d35c['FETCH_MISS']=_0x52ce28(0x28d),_0x21d35c[_0x52ce28(0x3b2)]=_0x52ce28(0x35f),_0x21d35c[_0x52ce28(0x249)]='offline',_0x21d35c))(_0x23695f||{});class _0x5c637a{constructor(_0x56258d,_0x21fbee,_0x53f4d7,_0x51d5af,_0x4b9479,_0x2982e9,_0x27a51a,_0x571f94,_0x47653d){const _0x3975c8=_0x52ce28;_0x2406c5(this,_0x3975c8(0x205),null),_0x2406c5(this,'_pendingMutations',[]),(this[_0x3975c8(0x261)]=_0x56258d,this[_0x3975c8(0x37c)]=_0x21fbee,this[_0x3975c8(0x530)]=_0x4b9479,this[_0x3975c8(0x3a8)]=_0x2982e9,this[_0x3975c8(0x4e1)]=_0x27a51a,this[_0x3975c8(0x433)]=_0x571f94,this['_localCacheService']=_0x47653d,this['_awaitingChangeset']=_0x53f4d7,this[_0x3975c8(0x302)]=_0x51d5af);}['_checkMissing'](_0x433063){const _0x18f836=_0x52ce28,_0x5026b5=this[_0x18f836(0x433)][_0x18f836(0x424)](this['unitID']);return _0x433063[_0x18f836(0x1b5)]>_0x5026b5+0x1?(this[_0x18f836(0x530)][_0x18f836(0x3f1)]({'from':_0x5026b5,'to':_0x433063['revision']-0x1}),!0x0):!0x1;}[_0x52ce28(0x38c)](_0xfd8b2b){const _0x274c3b=_0x52ce28;this[_0x274c3b(0x4e1)][_0x274c3b(0x556)](this['unitID'],_0xfd8b2b);}[_0x52ce28(0x44a)](_0x5139a5){const _0x5733f3=_0x52ce28;var _0x20fbdc,_0x5f0459;(_0x5f0459=(_0x20fbdc=this[_0x5733f3(0x530)])[_0x5733f3(0x500)])==null||_0x5f0459['call'](_0x20fbdc,_0x5139a5);}[_0x52ce28(0x28f)](_0x56e04f){const _0x1bd737=_0x52ce28;var _0xb1e0ed,_0x52c567;return(_0x52c567=(_0xb1e0ed=this[_0x1bd737(0x530)])[_0x1bd737(0x576)])==null?void 0x0:_0x52c567['call'](_0xb1e0ed,_0x56e04f);}[_0x52ce28(0x53b)](_0x4a75f1){const _0x4d1f63=_0x52ce28;var _0x4487ae,_0x4055dc,_0xf6761d;return(_0xf6761d=(_0x4055dc=(_0x4487ae=this[_0x4d1f63(0x530)])['onTransformRemoteChangesetByIMECache'])==null?void 0x0:_0x4055dc[_0x4d1f63(0x1f3)](_0x4487ae,_0x4a75f1))!=null?_0xf6761d:_0x4a75f1;}[_0x52ce28(0x53a)](_0x2e9702){const _0x21631f=_0x52ce28;var _0x1fc16b,_0x14d758;if(this[_0x21631f(0x37c)]===_0x3f5bfb[_0x21631f(0x34f)]){const {unitID:_0x3fe706,mutations:_0x4c6c06,memberID:_0x6fc13}=_0x2e9702,_0x34101a=_0x4c6c06[0x0]['params'][_0x21631f(0x275)];Array[_0x21631f(0x2cb)](_0x34101a)&&_0x34101a[_0x21631f(0x47c)]>0x0&&((_0x14d758=(_0x1fc16b=this['_handler'])[_0x21631f(0x439)])==null||_0x14d758['call'](_0x1fc16b,{'unitID':_0x3fe706,'memberID':_0x6fc13,'textRanges':_0x34101a}));}}[_0x52ce28(0x2a4)](){const _0x1df52e=_0x52ce28;this[_0x1df52e(0x50c)][_0x1df52e(0x3e3)](this[_0x1df52e(0x261)],this[_0x1df52e(0x37c)],this[_0x1df52e(0x205)],this[_0x1df52e(0x302)]);}[_0x52ce28(0x4b6)](){const _0x17f781=_0x52ce28;return this[_0x17f781(0x433)]['getCurrentRevOfUnit'](this['unitID']);}['_incrementRevisionNumber'](){const _0x173480=_0x52ce28;this[_0x173480(0x433)]['incrementRevOfUnit'](this[_0x173480(0x261)]);}['_executeRemoteChangeset'](_0x3cad0a){const _0x448abd=_0x52ce28;var _0x2aae0c;const _0x18f7d9=this[_0x448abd(0x53b)](_0x3cad0a),_0x56e18b=_0x514eda['sequenceExecute'](_0x18f7d9[_0x448abd(0x568)],this[_0x448abd(0x3a8)],{'fromCollab':!0x0});if(!_0x56e18b[_0x448abd(0x1be)])throw _0x56e18b[_0x448abd(0x28b)]instanceof Error?_0x56e18b[_0x448abd(0x28b)]:new Error((_0x2aae0c=_0x56e18b[_0x448abd(0x28b)])!=null?_0x2aae0c:_0x448abd(0x394));this[_0x448abd(0x28f)](_0x18f7d9),this['_transformUndoredo'](_0x3cad0a),this['_transformSelections'](_0x18f7d9),this[_0x448abd(0x53a)](_0x18f7d9),this[_0x448abd(0x2b0)]();}}let _0x3a9460=class extends _0x5c637a{constructor(_0x5514b5,_0x2a105e,_0x44ec0b,_0x2fa3fb,_0x3b587f,_0x586555,_0x5e6bc4,_0x2be30f,_0x5072ee,_0x2d37c9){const _0x17e15e=_0x52ce28;super(_0x5514b5,_0x2a105e,null,[],_0x44ec0b,_0x2be30f,_0x5e6bc4,_0x2fa3fb,_0x3b587f),_0x2406c5(this,_0x17e15e(0x25b),_0x17e15e(0x5a1)),(this['_injector']=_0x586555,this[_0x17e15e(0x307)]=_0x5072ee,this[_0x17e15e(0x283)]=_0x2d37c9);}[_0x52ce28(0x565)](_0x2d3322){const _0x49c92b=_0x52ce28,_0x1666c9=this[_0x49c92b(0x43e)][_0x49c92b(0x427)](_0x203335,this[_0x49c92b(0x261)],this['type'],[_0x2d3322],this[_0x49c92b(0x530)]);return _0x1666c9[_0x49c92b(0x31b)](),_0x1666c9[_0x49c92b(0x2a4)](),_0x1666c9;}[_0x52ce28(0x397)](_0x528299){const _0x471a5c=_0x52ce28;if(this[_0x471a5c(0x3de)](_0x528299))return this[_0x471a5c(0x43e)][_0x471a5c(0x427)](_0x36c837,this[_0x471a5c(0x261)],this['type'],null,[],null,[_0x528299],this['_handler']);try{const _0x3d742e=this[_0x471a5c(0x283)][_0x471a5c(0x505)](_0x528299,[_0x2beb30]);if(_0x3a5d3a[_0x471a5c(0x1a8)](_0x3d742e)){const {c1Prime:_0x34a765}=_0x3d742e;return this[_0x471a5c(0x1b0)](_0x34a765),this;}throw _0x3d742e[_0x471a5c(0x28b)];}catch(_0x264d53){return this[_0x471a5c(0x307)]['error'](_0x264d53),this[_0x471a5c(0x591)](!0x1);}}['_onConflict'](_0x1dd0ac){const _0x5cf9b3=_0x52ce28;return this[_0x5cf9b3(0x43e)][_0x5cf9b3(0x427)](_0x9ea71e,this[_0x5cf9b3(0x261)],this[_0x5cf9b3(0x37c)],null,[],this['_handler'],_0x1dd0ac);}[_0x52ce28(0x581)](){throw new Error('[SyncedState]:\x20received\x20acknowledgement.');}[_0x52ce28(0x4f6)](){const _0x27631c=_0x52ce28;throw new Error(_0x27631c(0x34b));}['toggleOffline'](){const _0xf139e4=_0x52ce28;return this[_0xf139e4(0x43e)][_0xf139e4(0x427)](_0x6c2bf3,this['unitID'],this['type'],null,[],this[_0xf139e4(0x530)]);}[_0x52ce28(0x235)](){return this;}[_0x52ce28(0x47f)](){const _0x140e06=_0x52ce28;throw new Error(_0x140e06(0x474));}[_0x52ce28(0x562)](){const _0x5f4557=_0x52ce28,_0xf253e5=this[_0x5f4557(0x433)][_0x5f4557(0x424)](this[_0x5f4557(0x261)]);return this['_handler'][_0x5f4557(0x3f1)]({'from':_0xf253e5,'to':0x0}),this[_0x5f4557(0x43e)][_0x5f4557(0x427)](_0x36c837,this[_0x5f4557(0x261)],this[_0x5f4557(0x37c)],null,[],null,[],this[_0x5f4557(0x530)]);}};_0x3a9460=_0x30579a([_0x14fb63(0x3,_0x514eda[_0x52ce28(0x324)](_0x3a5d3a[_0x52ce28(0x23b)])),_0x14fb63(0x4,_0x514eda[_0x52ce28(0x324)](_0x2143a3[_0x52ce28(0x472)])),_0x14fb63(0x5,_0x514eda[_0x52ce28(0x324)](_0x514eda['Injector'])),_0x14fb63(0x6,_0x514eda['IUndoRedoService']),_0x14fb63(0x7,_0x514eda[_0x52ce28(0x289)]),_0x14fb63(0x8,_0x514eda['ILogService']),_0x14fb63(0x9,_0x3a5d3a[_0x52ce28(0x231)])],_0x3a9460);let _0x203335=class extends _0x5c637a{constructor(_0x1734a7,_0x2600c6,_0x446400,_0x49aae4,_0x3a226a,_0x5e3411,_0x1feff0,_0x3329ba,_0x4f3bb8,_0x367457,_0x35d0a4,_0x4a2c9c,_0x399754,_0x46df2b){const _0x410b76=_0x52ce28;super(_0x1734a7,_0x2600c6,null,_0x446400,_0x49aae4,_0x367457,_0x46df2b,_0x5e3411,_0x1feff0),_0x2406c5(this,_0x410b76(0x25b),_0x410b76(0x2ba)),_0x2406c5(this,_0x410b76(0x184),null),_0x2406c5(this,_0x410b76(0x29c),null),(this[_0x410b76(0x43e)]=_0x3a226a,this[_0x410b76(0x47a)]=_0x3329ba,this[_0x410b76(0x307)]=_0x4f3bb8,this[_0x410b76(0x38a)]=_0x35d0a4,this['_transformService']=_0x4a2c9c,this[_0x410b76(0x49d)]=_0x399754);}[_0x52ce28(0x565)](_0x5838d9){const _0x413c0a=_0x52ce28;return this['_pendingMutations']['push'](_0x5838d9),this[_0x413c0a(0x2a4)](),this;}[_0x52ce28(0x397)](_0x20742e){const _0x167f24=_0x52ce28;if(this[_0x167f24(0x3de)](_0x20742e))return this['_clearScheduledTask'](),this[_0x167f24(0x43e)][_0x167f24(0x427)](_0x36c837,this[_0x167f24(0x261)],this[_0x167f24(0x37c)],null,this[_0x167f24(0x302)],null,[_0x20742e],this[_0x167f24(0x530)]);try{const _0x559160=this[_0x167f24(0x283)][_0x167f24(0x505)](_0x20742e,this[_0x167f24(0x302)]);if(_0x3a5d3a[_0x167f24(0x1a8)](_0x559160)){const {c1Prime:_0x3ce35e,m2Prime:_0x257730}=_0x559160;this['_executeRemoteChangeset'](_0x3ce35e);const _0xd64f85=this[_0x167f24(0x43e)]['createInstance'](_0x203335,this[_0x167f24(0x261)],this[_0x167f24(0x37c)],_0x257730,this['_handler']);return this[_0x167f24(0x2e7)](),_0xd64f85[_0x167f24(0x31b)](this[_0x167f24(0x184)]?Math[_0x167f24(0x1ff)](0x0,new Date()[_0x167f24(0x335)]()-this[_0x167f24(0x184)]):this[_0x167f24(0x1a0)]()),_0xd64f85;}throw _0x559160['error'];}catch(_0x505d9b){return this['_logService']['error'](_0x505d9b),this['_onConflict'](!0x1);}}[_0x52ce28(0x581)](){const _0x8a6091=_0x52ce28;throw new Error(_0x8a6091(0x43f));}['onRemoteRej'](){const _0x52e195=_0x52ce28;throw new Error(_0x52e195(0x1ad));}['toggleOffline'](){const _0x57c783=_0x52ce28;return this[_0x57c783(0x2e7)](),this[_0x57c783(0x43e)]['createInstance'](_0x6c2bf3,this[_0x57c783(0x261)],this[_0x57c783(0x37c)],null,this[_0x57c783(0x302)],this['_handler']);}[_0x52ce28(0x235)](){return this;}[_0x52ce28(0x31b)](_0xc676a4){const _0x4e89fd=_0x52ce28,_0xc42639=_0xc676a4!=null?_0xc676a4:this[_0x4e89fd(0x1a0)]();this[_0x4e89fd(0x184)]=new Date()[_0x4e89fd(0x335)](),this[_0x4e89fd(0x29c)]=window[_0x4e89fd(0x288)](()=>{const _0x371158=_0x4e89fd;this[_0x371158(0x2e7)]();let _0x1df4d2=null;switch(this[_0x371158(0x37c)]){case _0x3f5bfb[_0x371158(0x1ac)]:{_0x1df4d2=_0x13e78c(this['_pendingMutations'],this[_0x371158(0x261)],this[_0x371158(0x49d)],this[_0x371158(0x433)],this[_0x371158(0x47a)]);break;}case _0x3f5bfb[_0x371158(0x34f)]:{this[_0x371158(0x302)][_0x371158(0x428)](_0x32e32b=>_0x32e32b['id']===_0x26ab50[_0x371158(0x4f7)]['id'])?_0x1df4d2=_0x5d4ca5(this['_pendingMutations'],this[_0x371158(0x261)],this[_0x371158(0x49d)],this['_revisionService'],this['_memberService']):_0x1df4d2=_0x13e78c(this[_0x371158(0x302)],this[_0x371158(0x261)],this['_univerInstanceService'],this[_0x371158(0x433)],this[_0x371158(0x47a)]);break;}default:throw new Error(_0x371158(0x347)+this[_0x371158(0x37c)]+_0x371158(0x55a));}const {changeset:_0x4b6dca,pendingMutations:_0x2c1cbe}=_0x1df4d2;this[_0x371158(0x530)]['onSendChangeset'](_0x4b6dca);const _0x56c8b8=_0x2c1cbe[_0x371158(0x47c)]?this['_injector'][_0x371158(0x427)](_0x180bf3,this[_0x371158(0x261)],this[_0x371158(0x37c)],_0x4b6dca,_0x2c1cbe,this[_0x371158(0x530)]):this[_0x371158(0x43e)][_0x371158(0x427)](_0x76ddbd,this['unitID'],this['type'],_0x4b6dca,this[_0x371158(0x530)]);_0x56c8b8[_0x371158(0x2a4)](),this[_0x371158(0x530)][_0x371158(0x443)](this,_0x56c8b8);},_0xc42639);}[_0x52ce28(0x1a0)](){const _0xb436e1=_0x52ce28;var _0x3d30b7;const _0x4e3277=this[_0xb436e1(0x38a)][_0xb436e1(0x490)](_0xb94ed4);return(_0x3d30b7=_0x4e3277==null?void 0x0:_0x4e3277[_0xb436e1(0x55d)])!=null?_0x3d30b7:0x7d0;}[_0x52ce28(0x47f)](){const _0x4144b7=_0x52ce28;throw new Error(_0x4144b7(0x3d5));}[_0x52ce28(0x2e7)](){const _0x4dae10=_0x52ce28;this[_0x4dae10(0x29c)]!=null&&(clearTimeout(this[_0x4dae10(0x29c)]),this['_sendingTimer']=null);}[_0x52ce28(0x591)](_0x3067fb){const _0x428ac6=_0x52ce28;return this['_clearScheduledTask'](),this[_0x428ac6(0x43e)][_0x428ac6(0x427)](_0x9ea71e,this[_0x428ac6(0x261)],this[_0x428ac6(0x37c)],null,this['_pendingMutations'],this[_0x428ac6(0x530)],_0x3067fb);}};_0x203335=_0x30579a([_0x14fb63(0x4,_0x514eda[_0x52ce28(0x324)](_0x514eda[_0x52ce28(0x228)])),_0x14fb63(0x5,_0x514eda[_0x52ce28(0x324)](_0x3a5d3a['RevisionService'])),_0x14fb63(0x6,_0x514eda['Inject'](_0x2143a3[_0x52ce28(0x472)])),_0x14fb63(0x7,_0x514eda['Inject'](_0x5da513)),_0x14fb63(0x8,_0x514eda[_0x52ce28(0x1f6)]),_0x14fb63(0x9,_0x514eda['ICommandService']),_0x14fb63(0xa,_0x514eda[_0x52ce28(0x480)]),_0x14fb63(0xb,_0x3a5d3a['ITransformService']),_0x14fb63(0xc,_0x514eda[_0x52ce28(0x29d)]),_0x14fb63(0xd,_0x514eda['IUndoRedoService'])],_0x203335);let _0x76ddbd=class extends _0x5c637a{constructor(_0x5782f2,_0x5c543f,_0x3d15b4,_0x505c90,_0xb75824,_0x8f625c,_0x3d6f3f,_0x4eebe8,_0x2a8252,_0x3d097,_0x15e1d3){const _0x18f47a=_0x52ce28;super(_0x5782f2,_0x5c543f,_0x3d15b4,[],_0x505c90,_0x4eebe8,_0x15e1d3,_0x8f625c,_0x3d6f3f),_0x2406c5(this,_0x18f47a(0x25b),'awaiting'),(this[_0x18f47a(0x43e)]=_0xb75824,this['_logService']=_0x2a8252,this[_0x18f47a(0x283)]=_0x3d097);}[_0x52ce28(0x565)](_0x305278){const _0x291286=_0x52ce28,_0x205463=this[_0x291286(0x43e)][_0x291286(0x427)](_0x180bf3,this[_0x291286(0x261)],this['type'],this[_0x291286(0x205)],[_0x305278],this[_0x291286(0x530)]);return _0x205463[_0x291286(0x2a4)](),_0x205463;}[_0x52ce28(0x397)](_0x387787){const _0x14d63f=_0x52ce28;if(this[_0x14d63f(0x3de)](_0x387787))return this[_0x14d63f(0x43e)][_0x14d63f(0x427)](_0x36c837,this[_0x14d63f(0x261)],this[_0x14d63f(0x37c)],this[_0x14d63f(0x205)],[],null,[_0x387787],this[_0x14d63f(0x530)]);try{const _0x3d99d9=this['_transformService'][_0x14d63f(0x53c)]([_0x387787],[this['_awaitingChangeset']],!0x1);if(_0x3a5d3a[_0x14d63f(0x4fe)](_0x3d99d9)){const {c1Prime:_0x2d2e16,c2Prime:_0x5d0747}=_0x3d99d9;this[_0x14d63f(0x1b0)](_0x2d2e16[0x0]),_0x5d0747[0x0][_0x14d63f(0x4e9)]=this[_0x14d63f(0x4b6)]();const _0x13d5d0=this[_0x14d63f(0x43e)][_0x14d63f(0x427)](_0x76ddbd,this[_0x14d63f(0x261)],this[_0x14d63f(0x37c)],_0x5d0747[0x0],this[_0x14d63f(0x530)]);return _0x13d5d0[_0x14d63f(0x2a4)](),_0x13d5d0;}return this[_0x14d63f(0x591)](!0x1);}catch(_0x58afd3){return this[_0x14d63f(0x307)][_0x14d63f(0x28b)](_0x58afd3),this[_0x14d63f(0x591)](!0x1);}}[_0x52ce28(0x581)](_0x460d8e){const _0x222a71=_0x52ce28,_0x997cae=this[_0x222a71(0x433)][_0x222a71(0x424)](this[_0x222a71(0x261)]);if(_0x460d8e[_0x222a71(0x1b5)]<_0x997cae-0x1)return this;if(this[_0x222a71(0x3de)](_0x460d8e))return this['_injector'][_0x222a71(0x427)](_0x36c837,this[_0x222a71(0x261)],this[_0x222a71(0x37c)],null,[],this[_0x222a71(0x205)],[],this[_0x222a71(0x530)]);this[_0x222a71(0x2b0)]();const _0x13000f=this[_0x222a71(0x43e)][_0x222a71(0x427)](_0x3a9460,this[_0x222a71(0x261)],this['type'],this['_handler']);return _0x13000f[_0x222a71(0x2a4)](),_0x13000f;}[_0x52ce28(0x4f6)](_0x270375){const _0x5f4b8a=_0x52ce28;return this[_0x5f4b8a(0x591)](!!(_0x270375!=null&&_0x270375[_0x5f4b8a(0x452)]));}['toggleOffline'](){const _0x2d5348=_0x52ce28;return this[_0x2d5348(0x43e)]['createInstance'](_0x6c2bf3,this[_0x2d5348(0x261)],this[_0x2d5348(0x37c)],this[_0x2d5348(0x205)],[],this[_0x2d5348(0x530)]);}[_0x52ce28(0x235)](){return this;}[_0x52ce28(0x47f)](){const _0x108870=_0x52ce28;this[_0x108870(0x530)][_0x108870(0x557)](this[_0x108870(0x205)]);}[_0x52ce28(0x591)](_0x14ebf3){const _0x6ff2d3=_0x52ce28;return this[_0x6ff2d3(0x43e)][_0x6ff2d3(0x427)](_0x9ea71e,this[_0x6ff2d3(0x261)],this[_0x6ff2d3(0x37c)],this[_0x6ff2d3(0x205)],[],this[_0x6ff2d3(0x530)],_0x14ebf3);}};_0x76ddbd=_0x30579a([_0x14fb63(0x4,_0x514eda[_0x52ce28(0x324)](_0x514eda[_0x52ce28(0x228)])),_0x14fb63(0x5,_0x514eda[_0x52ce28(0x324)](_0x3a5d3a['RevisionService'])),_0x14fb63(0x6,_0x514eda[_0x52ce28(0x324)](_0x2143a3[_0x52ce28(0x472)])),_0x14fb63(0x7,_0x514eda[_0x52ce28(0x289)]),_0x14fb63(0x8,_0x514eda[_0x52ce28(0x1f6)]),_0x14fb63(0x9,_0x3a5d3a[_0x52ce28(0x231)]),_0x14fb63(0xa,_0x514eda[_0x52ce28(0x220)])],_0x76ddbd);let _0x180bf3=class extends _0x5c637a{constructor(_0x9ef6ad,_0x91a13a,_0x2e8dfd,_0x4f104d,_0x1e1192,_0x30749d,_0xe3b893,_0x4bace6,_0x2e7eb9,_0x48ee15,_0x37e9dd,_0x1e22de){const _0x495c6b=_0x52ce28;super(_0x9ef6ad,_0x91a13a,_0x2e8dfd,_0x4f104d,_0x1e1192,_0x2e7eb9,_0x1e22de,_0xe3b893,_0x4bace6),_0x2406c5(this,_0x495c6b(0x25b),_0x495c6b(0x4d2)),(this[_0x495c6b(0x43e)]=_0x30749d,this['_logService']=_0x48ee15,this['_transformService']=_0x37e9dd);}[_0x52ce28(0x565)](_0x13dd4a){const _0x5cf216=_0x52ce28;return this[_0x5cf216(0x302)][_0x5cf216(0x47b)](_0x13dd4a),this;}['onRemoteChangeset'](_0x3661f1){const _0x1167f4=_0x52ce28;if(this[_0x1167f4(0x3de)](_0x3661f1))return this[_0x1167f4(0x43e)][_0x1167f4(0x427)](_0x36c837,this[_0x1167f4(0x261)],this[_0x1167f4(0x37c)],this[_0x1167f4(0x205)],this[_0x1167f4(0x302)],null,[_0x3661f1],this['_handler']);try{const _0x34e23a=this['_transformService'][_0x1167f4(0x53c)]([_0x3661f1],[this[_0x1167f4(0x205)]],!0x1);if(_0x3a5d3a['isTransformChangesetsSuccess'](_0x34e23a)){const {c1Prime:_0x50d0f5,c2Prime:_0x219e6c}=_0x34e23a,_0x4a61eb=this['_transformService'][_0x1167f4(0x505)](_0x50d0f5[0x0],this[_0x1167f4(0x302)]);if(_0x3a5d3a[_0x1167f4(0x1a8)](_0x4a61eb)){const {c1Prime:_0x3c8a19,m2Prime:_0x59e940}=_0x4a61eb;return this[_0x1167f4(0x1b0)](_0x3c8a19),_0x219e6c[0x0]['baseRev']=this['_getCurrentRevision'](),this['_injector'][_0x1167f4(0x427)](_0x180bf3,this[_0x1167f4(0x261)],this['type'],_0x219e6c[0x0],_0x59e940,this[_0x1167f4(0x530)]);}throw _0x4a61eb['error'];}throw _0x34e23a[_0x1167f4(0x28b)];}catch(_0x519bcb){return this[_0x1167f4(0x307)][_0x1167f4(0x28b)](_0x519bcb),this[_0x1167f4(0x591)](!0x1);}}['onRemoteAck'](_0x5c88aa){const _0x153aac=_0x52ce28;if(this['_checkMissing'](_0x5c88aa))return this[_0x153aac(0x43e)][_0x153aac(0x427)](_0x36c837,this['unitID'],this['type'],null,this[_0x153aac(0x302)],this[_0x153aac(0x205)],[],this[_0x153aac(0x530)]);this[_0x153aac(0x2b0)]();const _0x143f74=this[_0x153aac(0x43e)][_0x153aac(0x427)](_0x203335,this['unitID'],this[_0x153aac(0x37c)],this['_pendingMutations'],this[_0x153aac(0x530)]);return _0x143f74['_schedule'](),_0x143f74[_0x153aac(0x2a4)](),_0x143f74;}[_0x52ce28(0x4f6)](_0xece642){const _0xe8ede9=_0x52ce28;return this['_onConflict'](!!(_0xece642!=null&&_0xece642[_0xe8ede9(0x452)]));}[_0x52ce28(0x451)](){const _0xef02e7=_0x52ce28;return this['_injector'][_0xef02e7(0x427)](_0x6c2bf3,this[_0xef02e7(0x261)],this[_0xef02e7(0x37c)],this[_0xef02e7(0x205)],this[_0xef02e7(0x302)],this[_0xef02e7(0x530)]);}[_0x52ce28(0x235)](){return this;}[_0x52ce28(0x47f)](){const _0x53c709=_0x52ce28;this['_handler'][_0x53c709(0x557)](this['_awaitingChangeset']);}['_onConflict'](_0x13443d){const _0x1b7acc=_0x52ce28;return this[_0x1b7acc(0x43e)]['createInstance'](_0x9ea71e,this[_0x1b7acc(0x261)],this['type'],null,this[_0x1b7acc(0x302)],this[_0x1b7acc(0x530)],_0x13443d);}};_0x180bf3=_0x30579a([_0x14fb63(0x5,_0x514eda[_0x52ce28(0x324)](_0x514eda['Injector'])),_0x14fb63(0x6,_0x514eda[_0x52ce28(0x324)](_0x3a5d3a[_0x52ce28(0x23b)])),_0x14fb63(0x7,_0x514eda[_0x52ce28(0x324)](_0x2143a3[_0x52ce28(0x472)])),_0x14fb63(0x8,_0x514eda[_0x52ce28(0x289)]),_0x14fb63(0x9,_0x514eda[_0x52ce28(0x1f6)]),_0x14fb63(0xa,_0x3a5d3a[_0x52ce28(0x231)]),_0x14fb63(0xb,_0x514eda[_0x52ce28(0x220)])],_0x180bf3);let _0x9ea71e=class extends _0x5c637a{constructor(_0x5dd4c0,_0x7d66c7,_0x13996c,_0x52c00a,_0x3b7fe1,_0x44ab6c=!0x1,_0x192bb0,_0x32c151,_0xc1d34d,_0x49a08f,_0x1c6b21,_0x200358,_0x2889de){const _0x2d4a60=_0x52ce28;super(_0x5dd4c0,_0x7d66c7,_0x13996c,_0x52c00a,_0x3b7fe1,_0x32c151,_0xc1d34d,_0x1c6b21,_0x49a08f),_0x2406c5(this,_0x2d4a60(0x25b),_0x2d4a60(0x35f)),(this[_0x2d4a60(0x350)]=_0x44ab6c,this[_0x2d4a60(0x238)]=_0x192bb0,this['_localeService']=_0x200358,this['_notificationService']=_0x2889de,this[_0x2d4a60(0x2a0)](),this[_0x2d4a60(0x2c1)](),this[_0x2d4a60(0x2d5)]());}[_0x52ce28(0x565)](){return this;}['onRemoteChangeset'](){return this;}[_0x52ce28(0x581)](){return this;}['onRemoteRej'](){return this;}[_0x52ce28(0x451)](){return this;}['toggleOnline'](){return this;}['resend'](){throw new Error('[ConflictState]:\x20invalid\x20calling\x20to\x20`resend`.');}[_0x52ce28(0x2c1)](){const _0x4d02d8=_0x52ce28;this[_0x4d02d8(0x50c)][_0x4d02d8(0x3e3)](this[_0x4d02d8(0x261)],this[_0x4d02d8(0x37c)],null,[]);}[_0x52ce28(0x2a0)](){const _0x3f7960=_0x52ce28;this[_0x3f7960(0x350)]?this[_0x3f7960(0x523)][_0x3f7960(0x2f9)]({'title':this['_localeService']['t'](_0x3f7960(0x495)),'content':this[_0x3f7960(0x17e)]['t'](_0x3f7960(0x264)),'type':'error','duration':0x0}):this[_0x3f7960(0x523)][_0x3f7960(0x2f9)]({'title':this[_0x3f7960(0x17e)]['t'](_0x3f7960(0x217)),'content':this[_0x3f7960(0x17e)]['t'](_0x3f7960(0x598)),'type':_0x3f7960(0x28b),'duration':0x0});}[_0x52ce28(0x2d5)](){const _0x127613=_0x52ce28;this[_0x127613(0x238)][_0x127613(0x515)](new _0x12c1fe[(_0x127613(0x503))](this['unitID'])['id'],!0x1);}};_0x9ea71e=_0x30579a([_0x14fb63(0x6,_0x514eda[_0x52ce28(0x324)](_0x514eda[_0x52ce28(0x41e)])),_0x14fb63(0x7,_0x514eda[_0x52ce28(0x289)]),_0x14fb63(0x8,_0x514eda[_0x52ce28(0x220)]),_0x14fb63(0x9,_0x514eda[_0x52ce28(0x324)](_0x2143a3['LocalCacheService'])),_0x14fb63(0xa,_0x514eda[_0x52ce28(0x324)](_0x3a5d3a[_0x52ce28(0x23b)])),_0x14fb63(0xb,_0x514eda[_0x52ce28(0x324)](_0x514eda[_0x52ce28(0x440)])),_0x14fb63(0xc,_0x116b36['INotificationService'])],_0x9ea71e);let _0x6c2bf3=class extends _0x5c637a{constructor(_0x5a1716,_0xab01d4,_0xc0f1ee,_0x17c928,_0xaefb97,_0x207258,_0x8c8e4d,_0x5ab946,_0x5c2ffd,_0x427e9e){const _0x33fdca=_0x52ce28;super(_0x5a1716,_0xab01d4,_0xc0f1ee,_0x17c928,_0xaefb97,_0x5c2ffd,_0x427e9e,_0x8c8e4d,_0x5ab946),_0x2406c5(this,_0x33fdca(0x25b),_0x33fdca(0x410)),this['_injector']=_0x207258;}['appendMutation'](_0xb0d0c3){const _0x71a921=_0x52ce28;return this['_pendingMutations'][_0x71a921(0x47b)](_0xb0d0c3),this[_0x71a921(0x2a4)](),this;}[_0x52ce28(0x397)](_0x1d9782){const _0x522c6c=_0x52ce28;throw new Error(_0x522c6c(0x3d1));}[_0x52ce28(0x581)](){const _0x17f046=_0x52ce28;throw new Error(_0x17f046(0x17f));}[_0x52ce28(0x4f6)](){const _0x4764aa=_0x52ce28;throw new Error(_0x4764aa(0x1bb));}['toggleOffline'](){return this;}[_0x52ce28(0x235)](){const _0x5a0f8e=_0x52ce28,{_injector:_0x53af78,_pendingMutations:_0xd5ad17,_awaitingChangeset:_0x277764,unitID:_0x2e03d6,_handler:_0x475010,type:_0x5ecb7f}=this,_0x3e73a3=_0x5cfbad(_0x53af78,_0x2e03d6,_0x5ecb7f,_0x277764,_0xd5ad17,_0x475010);return _0x3e73a3 instanceof _0x203335?_0x3e73a3[_0x5a0f8e(0x31b)]():(_0x3e73a3 instanceof _0x180bf3||_0x3e73a3 instanceof _0x76ddbd)&&_0x3e73a3[_0x5a0f8e(0x47f)](),_0x3e73a3;}[_0x52ce28(0x47f)](){throw new Error('[OfflineState]:\x20invalid\x20calling\x20to\x20`resend`.');}};_0x6c2bf3=_0x30579a([_0x14fb63(0x5,_0x514eda[_0x52ce28(0x324)](_0x514eda[_0x52ce28(0x228)])),_0x14fb63(0x6,_0x514eda['Inject'](_0x3a5d3a[_0x52ce28(0x23b)])),_0x14fb63(0x7,_0x514eda[_0x52ce28(0x324)](_0x2143a3[_0x52ce28(0x472)])),_0x14fb63(0x8,_0x514eda[_0x52ce28(0x289)]),_0x14fb63(0x9,_0x514eda['IUndoRedoService'])],_0x6c2bf3);let _0x36c837=class extends _0x5c637a{constructor(_0x1608f6,_0x4a1b88,_0x2e2233,_0xf8fecb,_0x56484e,_0x205224,_0xa1457e,_0x5c4ca7,_0x5e962a,_0x4877f4,_0x3f9304,_0x599ddc,_0x452eb1,_0x381107){const _0x556df9=_0x52ce28;super(_0x1608f6,_0x4a1b88,_0x2e2233,_0xf8fecb,_0xa1457e,_0x599ddc,_0x452eb1,_0x5e962a,_0x4877f4),_0x2406c5(this,_0x556df9(0x25b),_0x556df9(0x28d)),(this[_0x556df9(0x3dd)]=_0x56484e,this[_0x556df9(0x207)]=_0x205224,this['_injector']=_0x5c4ca7,this[_0x556df9(0x307)]=_0x3f9304,this['_transformService']=_0x381107);}['onMissedChangesetFetched'](_0x83910a){const _0x3bc7bc=_0x52ce28;try{const _0x13eacf=[..._0x83910a,...this[_0x3bc7bc(0x207)]],_0x436185=[this[_0x3bc7bc(0x205)]||this['_acknowledgedAwaitingChangeset']][_0x3bc7bc(0x56d)](_0x45cffe=>!!_0x45cffe);let _0x271bc8,_0x1340f0;if(_0x436185[_0x3bc7bc(0x47c)]){const _0x365ac9=this[_0x3bc7bc(0x283)][_0x3bc7bc(0x53c)](_0x13eacf,_0x436185,!0x1);if(!_0x3a5d3a[_0x3bc7bc(0x4fe)](_0x365ac9))throw _0x365ac9[_0x3bc7bc(0x28b)];_0x271bc8=_0x365ac9[_0x3bc7bc(0x3fa)],_0x1340f0=_0x365ac9[_0x3bc7bc(0x327)];}else _0x271bc8=_0x13eacf,_0x1340f0=[];let _0x54f1e9=this[_0x3bc7bc(0x302)];_0x271bc8['forEach'](_0x3da395=>{const _0x2f8a5a=_0x3bc7bc;let _0x3ecbc5;if(_0x54f1e9[_0x2f8a5a(0x47c)]){const _0x390d86=this[_0x2f8a5a(0x283)]['transformMutationsWithChangeset'](_0x3da395,_0x54f1e9);if(!_0x3a5d3a['isTransformMutationsWithChangesetSuccess'](_0x390d86))throw _0x390d86[_0x2f8a5a(0x28b)];_0x3ecbc5=_0x390d86['c1Prime'],_0x54f1e9=_0x390d86['m2Prime'];}else _0x3ecbc5=_0x3da395;this[_0x2f8a5a(0x1b0)](_0x3ecbc5);}),this['_acknowledgedAwaitingChangeset']&&this[_0x3bc7bc(0x2b0)](),this[_0x3bc7bc(0x205)]&&_0x1340f0['length']&&(_0x1340f0[0x0][_0x3bc7bc(0x4e9)]=this[_0x3bc7bc(0x4b6)]());let _0x4e3215;if(this[_0x3bc7bc(0x205)]&&_0x54f1e9['length']!==0x0)_0x4e3215=this[_0x3bc7bc(0x43e)][_0x3bc7bc(0x427)](_0x180bf3,this[_0x3bc7bc(0x261)],this[_0x3bc7bc(0x37c)],_0x1340f0[0x0],_0x54f1e9,this['_handler']);else{if(this[_0x3bc7bc(0x205)]&&_0x54f1e9[_0x3bc7bc(0x47c)]===0x0)_0x1340f0[0x0][_0x3bc7bc(0x4e9)]=this[_0x3bc7bc(0x4b6)](),_0x4e3215=this[_0x3bc7bc(0x43e)][_0x3bc7bc(0x427)](_0x76ddbd,this[_0x3bc7bc(0x261)],this['type'],_0x1340f0[0x0],this[_0x3bc7bc(0x530)]);else{if(_0x54f1e9['length']!==0x0){const _0x421f59=this['_injector'][_0x3bc7bc(0x427)](_0x203335,this['unitID'],this['type'],_0x54f1e9,this[_0x3bc7bc(0x530)]);_0x421f59[_0x3bc7bc(0x31b)](),_0x4e3215=_0x421f59;}else _0x4e3215=this[_0x3bc7bc(0x43e)]['createInstance'](_0x3a9460,this['unitID'],this[_0x3bc7bc(0x37c)],this[_0x3bc7bc(0x530)]);}}return _0x4e3215[_0x3bc7bc(0x2a4)](),_0x4e3215;}catch(_0x590145){return this[_0x3bc7bc(0x307)][_0x3bc7bc(0x28b)]('[FetchMissState]','failed\x20to\x20apply\x20missed\x20changesets!',_0x590145),this[_0x3bc7bc(0x43e)][_0x3bc7bc(0x427)](_0x9ea71e,this[_0x3bc7bc(0x261)],this[_0x3bc7bc(0x37c)],this[_0x3bc7bc(0x205)],this[_0x3bc7bc(0x302)],this[_0x3bc7bc(0x530)],!0x1);}}['resend'](){const _0x3ba2ea=_0x52ce28;throw new Error(_0x3ba2ea(0x253));}[_0x52ce28(0x565)](_0x168327){const _0x2954f2=_0x52ce28;return this['_pendingMutations'][_0x2954f2(0x47b)](_0x168327),this;}[_0x52ce28(0x397)](_0x43b1d0){const _0x1a8998=_0x52ce28;return this['_queuedRemoteChangesets'][_0x1a8998(0x47b)](_0x43b1d0),this;}[_0x52ce28(0x581)](_0x4568de){const _0x54deda=_0x52ce28;if(this[_0x54deda(0x205)])return this[_0x54deda(0x3dd)]=this[_0x54deda(0x205)],this['_awaitingChangeset']=null,this;throw new Error(_0x54deda(0x49e));}['onRemoteRej'](_0x19855b){const _0x3f5f4e=_0x52ce28;return this[_0x3f5f4e(0x591)](!!(_0x19855b!=null&&_0x19855b[_0x3f5f4e(0x452)]));}['toggleOffline'](){const _0x8fb61f=_0x52ce28;return this[_0x8fb61f(0x43e)][_0x8fb61f(0x427)](_0x6c2bf3,this['unitID'],this[_0x8fb61f(0x37c)],this[_0x8fb61f(0x205)],this[_0x8fb61f(0x302)],this[_0x8fb61f(0x530)]);}[_0x52ce28(0x235)](){return this;}['_onConflict'](_0x5d8944){const _0x213435=_0x52ce28;return this[_0x213435(0x43e)][_0x213435(0x427)](_0x9ea71e,this[_0x213435(0x261)],this[_0x213435(0x37c)],this[_0x213435(0x205)],this[_0x213435(0x302)],this[_0x213435(0x530)],_0x5d8944);}};_0x36c837=_0x30579a([_0x14fb63(0x7,_0x514eda[_0x52ce28(0x324)](_0x514eda['Injector'])),_0x14fb63(0x8,_0x514eda[_0x52ce28(0x324)](_0x3a5d3a[_0x52ce28(0x23b)])),_0x14fb63(0x9,_0x514eda[_0x52ce28(0x324)](_0x2143a3[_0x52ce28(0x472)])),_0x14fb63(0xa,_0x514eda['ILogService']),_0x14fb63(0xb,_0x514eda[_0x52ce28(0x289)]),_0x14fb63(0xc,_0x514eda['IUndoRedoService']),_0x14fb63(0xd,_0x3a5d3a['ITransformService'])],_0x36c837);function _0x5cfbad(_0x1da987,_0x5b75d1,_0x1a10fd,_0x198a69,_0x31095a,_0x469f59){const _0xf2d9dc=_0x52ce28;return _0x198a69&&_0x31095a[_0xf2d9dc(0x47c)]?_0x1da987[_0xf2d9dc(0x427)](_0x180bf3,_0x5b75d1,_0x1a10fd,_0x198a69,_0x31095a,_0x469f59):_0x198a69?_0x1da987['createInstance'](_0x76ddbd,_0x5b75d1,_0x1a10fd,_0x198a69,_0x469f59):_0x31095a['length']?_0x1da987[_0xf2d9dc(0x427)](_0x203335,_0x5b75d1,_0x1a10fd,_0x31095a,_0x469f59):_0x1da987[_0xf2d9dc(0x427)](_0x3a9460,_0x5b75d1,_0x1a10fd,_0x469f59);}var _0x2a440e=Object['defineProperty'],_0x51fb60=Object[_0x52ce28(0x493)],_0x27dd7b=(_0x8e3879,_0x1eb0e2,_0x299384,_0x32159c)=>{for(var _0x2bf3c2=_0x32159c>0x1?void 0x0:_0x32159c?_0x51fb60(_0x1eb0e2,_0x299384):_0x1eb0e2,_0x49b2b2=_0x8e3879['length']-0x1,_0x4c055c;_0x49b2b2>=0x0;_0x49b2b2--)(_0x4c055c=_0x8e3879[_0x49b2b2])&&(_0x2bf3c2=(_0x32159c?_0x4c055c(_0x1eb0e2,_0x299384,_0x2bf3c2):_0x4c055c(_0x2bf3c2))||_0x2bf3c2);return _0x32159c&&_0x2bf3c2&&_0x2a440e(_0x1eb0e2,_0x299384,_0x2bf3c2),_0x2bf3c2;},_0x100e46=(_0x43788b,_0x5d3099)=>(_0x48ed1d,_0x4f549d)=>_0x5d3099(_0x48ed1d,_0x4f549d,_0x43788b);_0x2143a3['CollaborationEntity']=class extends _0x514eda[_0x52ce28(0x18e)]{constructor(_0x4263f0,_0x21166b,_0x5a13cf,_0x40635b,_0x405c08,_0xe3f68a,_0x1e7559,_0x1e590d,_0x15a00a,_0x530070,_0x2cec67,_0x383d12,_0x5aefdb){const _0x6daa70=_0x52ce28;super(),_0x2406c5(this,_0x6daa70(0x300),new _0x2ca9ec[(_0x6daa70(0x3ff))](null)),_0x2406c5(this,_0x6daa70(0x399),this[_0x6daa70(0x300)][_0x6daa70(0x297)]()),_0x2406c5(this,_0x6daa70(0x30e)),_0x2406c5(this,'_collaborationPaused',!0x1),_0x2406c5(this,'_changesetSessionId',''),_0x2406c5(this,'_changesetReqId',0x0),_0x2406c5(this,'status$',this['state$'][_0x6daa70(0x2b9)](_0x2ca9ec[_0x6daa70(0x287)](_0x4bb9e9=>_0x4bb9e9?_0x4bb9e9[_0x6daa70(0x25b)]:_0x23695f[_0x6daa70(0x249)]),_0x2ca9ec[_0x6daa70(0x30b)](0x1))),_0x2406c5(this,'_transitionLocked',!0x1),_0x2406c5(this,'_remoteChangesetQueue',[]),(this[_0x6daa70(0x261)]=_0x4263f0,this[_0x6daa70(0x219)]=_0x21166b,this[_0x6daa70(0x245)]=_0x5a13cf,this[_0x6daa70(0x43e)]=_0x40635b,this[_0x6daa70(0x50c)]=_0x405c08,this[_0x6daa70(0x44b)]=_0xe3f68a,this[_0x6daa70(0x17e)]=_0x1e7559,this['_revisionService']=_0x1e590d,this[_0x6daa70(0x307)]=_0x15a00a,this[_0x6daa70(0x3a8)]=_0x530070,this[_0x6daa70(0x42e)]=_0x2cec67,this[_0x6daa70(0x238)]=_0x383d12,this[_0x6daa70(0x4ee)]=_0x5aefdb);}get[_0x52ce28(0x51d)](){return this['_state'];}async[_0x52ce28(0x2cf)](){const _0x33d093=_0x52ce28;if(this[_0x33d093(0x51d)])throw new Error(_0x33d093(0x491));await this[_0x33d093(0x5a9)]();}['pauseCollaboration'](){const _0x54095c=_0x52ce28;return this[_0x54095c(0x22a)]=!0x0,_0x514eda[_0x54095c(0x477)](()=>{const _0x576d53=_0x54095c;this[_0x576d53(0x22a)]=!0x1,this[_0x576d53(0x23e)]();});}[_0x52ce28(0x445)](_0x394119){const _0x1fd3c7=_0x52ce28;this[_0x1fd3c7(0x30e)]=_0x394119,this[_0x1fd3c7(0x300)][_0x1fd3c7(0x1df)](_0x394119);}async[_0x52ce28(0x5a9)](){const _0x3be210=_0x52ce28;var _0x2ca414;this[_0x3be210(0x445)](await this[_0x3be210(0x453)]()),this[_0x3be210(0x4ee)]&&((_0x2ca414=this[_0x3be210(0x4ee)])==null||_0x2ca414[_0x3be210(0x3ce)](this[_0x3be210(0x261)]),this[_0x3be210(0x3ad)](this[_0x3be210(0x4ee)]['getUnitStatus$'](this[_0x3be210(0x261)])[_0x3be210(0x1b3)](_0x34c0f4=>{const _0x10831b=_0x3be210;this[_0x10831b(0x307)][_0x10831b(0x1e2)](_0x10831b(0x2ea),'editing\x20status\x20changed\x20to',_0x34c0f4),_0x34c0f4===_0x2b08ce[_0x10831b(0x200)]?(this[_0x10831b(0x42e)][_0x10831b(0x2f9)]({'content':this[_0x10831b(0x17e)]['t'](_0x10831b(0x489)),'type':_0x24f161[_0x10831b(0x1aa)]['Warning']}),this[_0x10831b(0x238)][_0x10831b(0x515)](new _0x12c1fe[(_0x10831b(0x503))](this['unitID'])['id'],!0x1)):this[_0x10831b(0x238)][_0x10831b(0x515)](new _0x12c1fe[(_0x10831b(0x503))](this[_0x10831b(0x261)])['id'],!0x0);})));let _0xe2e3e3=!0x1;return this[_0x3be210(0x3ad)](this['session'][_0x3be210(0x3ee)][_0x3be210(0x1b3)](_0x1d8bfe=>{const _0x10cfe4=_0x3be210;_0x1d8bfe===_0x1e45f8[_0x10cfe4(0x494)]?this[_0x10cfe4(0x547)](_0xe2e3e3):_0x1d8bfe===_0x1e45f8['OFFLINE']&&(_0xe2e3e3=!0x0,this[_0x10cfe4(0x322)]());})),this['disposeWithMe'](this['session']['event$'][_0x3be210(0x1b3)](_0x41bc0b=>{const _0x3462ad=_0x3be210;try{switch(_0x41bc0b[_0x3462ad(0x4bb)]){case _0x3a5d3a['CollaborationEvent']['NEW_CHANGESETS']:{this[_0x3462ad(0x536)](_0x3a5d3a['parseProtocolChangeset'](_0x41bc0b[_0x3462ad(0x527)]));break;}case _0x3a5d3a[_0x3462ad(0x442)][_0x3462ad(0x234)]:{this[_0x3462ad(0x356)](_0x41bc0b[_0x3462ad(0x527)]);break;}case _0x3a5d3a['CollaborationEvent'][_0x3462ad(0x2b1)]:{this[_0x3462ad(0x34d)]();break;}case _0x3a5d3a['CollaborationEvent']['PSEUDO_FETCH_MISSING_RESULT']:{this[_0x3462ad(0x2c8)](_0x41bc0b[_0x3462ad(0x527)][_0x3462ad(0x59a)]['map'](_0x2038a1=>_0x3a5d3a[_0x3462ad(0x592)](_0x2038a1)));break;}case _0x3a5d3a[_0x3462ad(0x442)][_0x3462ad(0x3b6)]:this[_0x3462ad(0x34d)]({'isPermissionRej':!0x0});}}catch(_0x38ec4f){throw console[_0x3462ad(0x28b)]('Error\x20on\x20receiving\x20event',_0x38ec4f),_0x38ec4f;}})),this['_state'];}[_0x52ce28(0x41f)](){const _0x40287e=_0x52ce28;this[_0x40287e(0x2f4)]=!0x1;}[_0x52ce28(0x27e)](){const _0x1eae14=_0x52ce28;if(this[_0x1eae14(0x2f4)])throw new Error(_0x1eae14(0x209));this[_0x1eae14(0x2f4)]=!0x0;}[_0x52ce28(0x51f)](_0x2fc09b){const _0x1a1c8c=_0x52ce28;this['_lockTransition'](),this[_0x1a1c8c(0x445)](this[_0x1a1c8c(0x30e)][_0x1a1c8c(0x565)](_0x2fc09b)),this[_0x1a1c8c(0x41f)]();}[_0x52ce28(0x536)](_0x4fa78a){const _0x9161df=_0x52ce28;if(!(_0x4fa78a['revision']<=this[_0x9161df(0x433)][_0x9161df(0x424)](this[_0x9161df(0x261)]))){if(this[_0x9161df(0x22a)]){this['_remoteChangesetQueue']['push'](_0x4fa78a);return;}this[_0x9161df(0x226)](_0x4fa78a);}}['_exhaustRemoteChangesetQueue'](){const _0xcd5804=_0x52ce28;this[_0xcd5804(0x33e)]['forEach'](_0x1f6b69=>this[_0xcd5804(0x226)](_0x1f6b69)),this[_0xcd5804(0x33e)]=[];}[_0x52ce28(0x226)](_0xdb41ba){const _0x1c2172=_0x52ce28,_0x5c264a=this[_0x1c2172(0x44b)][_0x1c2172(0x213)][_0x1c2172(0x3a9)](this[_0x1c2172(0x44b)]['interceptor'][_0x1c2172(0x572)]()[_0x1c2172(0x512)])(_0xdb41ba['mutations'],null)||_0xdb41ba[_0x1c2172(0x568)],_0x9db587={..._0xdb41ba,'mutations':_0x5c264a};this[_0x1c2172(0x27e)](),this[_0x1c2172(0x445)](this[_0x1c2172(0x30e)][_0x1c2172(0x397)](_0x9db587)),this[_0x1c2172(0x41f)]();}[_0x52ce28(0x356)](_0x577863){const _0x378f73=_0x52ce28;this[_0x378f73(0x27e)](),this[_0x378f73(0x445)](this[_0x378f73(0x30e)][_0x378f73(0x581)](_0x577863)),this[_0x378f73(0x41f)]();}[_0x52ce28(0x34d)](_0x2b2bff){const _0x1edcf4=_0x52ce28;this[_0x1edcf4(0x27e)](),this[_0x1edcf4(0x445)](this[_0x1edcf4(0x30e)]['onRemoteRej'](_0x2b2bff)),this[_0x1edcf4(0x41f)]();}[_0x52ce28(0x2c8)](_0x88f82f){const _0x4a7c6d=_0x52ce28;if(!(this[_0x4a7c6d(0x30e)]instanceof _0x36c837))throw new TypeError(_0x4a7c6d(0x331));const _0x348091=_0x88f82f[_0x4a7c6d(0x287)](_0x185796=>{const _0x170991=_0x4a7c6d,_0x242c8f=this[_0x170991(0x44b)][_0x170991(0x213)][_0x170991(0x3a9)](this[_0x170991(0x44b)][_0x170991(0x213)][_0x170991(0x572)]()['COMPRESS_MUTATION_APPLY'])(_0x185796[_0x170991(0x568)],null)||_0x185796['mutations'];return{..._0x185796,'mutations':_0x242c8f};});this['_lockTransition'](),this['_updateState'](this['_state']['onMissedChangesetFetched'](_0x348091)),this[_0x4a7c6d(0x41f)]();}['_toggleOffline'](){const _0x2c2aa8=_0x52ce28;this[_0x2c2aa8(0x27e)](),this[_0x2c2aa8(0x445)](this[_0x2c2aa8(0x30e)][_0x2c2aa8(0x451)]()),this[_0x2c2aa8(0x41f)]();}[_0x52ce28(0x547)](_0x273d62=!0x1){const _0x50ce5d=_0x52ce28;this[_0x50ce5d(0x27e)](),this[_0x50ce5d(0x445)](this[_0x50ce5d(0x30e)]['toggleOnline']()),this[_0x50ce5d(0x41f)]();const _0x518958=this[_0x50ce5d(0x30e)];_0x273d62&&_0x518958 instanceof _0x3a9460&&(this[_0x50ce5d(0x27e)](),this[_0x50ce5d(0x445)](_0x518958[_0x50ce5d(0x562)]()),this[_0x50ce5d(0x41f)]());}async['_createInitialState'](){return new Promise(_0x55b244=>{const _0x3fb8d9=_0x2d6c;this[_0x3fb8d9(0x219)][_0x3fb8d9(0x3ee)][_0x3fb8d9(0x2b9)](_0x2ca9ec[_0x3fb8d9(0x4de)](0x1))[_0x3fb8d9(0x1b3)](async _0x5ee6ac=>{const _0x8f6cc6=_0x3fb8d9;_0x55b244(await this[_0x8f6cc6(0x499)](_0x5ee6ac===_0x1e45f8['ONLINE']));});});}[_0x52ce28(0x446)](){const _0x49e7a8=_0x52ce28,_0x1f1f0d=this[_0x49e7a8(0x261)];return{'onStateChange':(_0x4022d1,_0x521523)=>{const _0xd2ce7=_0x49e7a8;if(_0x4022d1!==this[_0xd2ce7(0x30e)])throw new Error('[CollaborationEntity]:\x20invalid\x20state\x20transition!\x20State\x20transferred\x20from\x20is\x20not\x20the\x20current\x20state.\x0aBefore:\x20'+_0x4022d1[_0xd2ce7(0x25b)]+_0xd2ce7(0x538)+_0x521523[_0xd2ce7(0x25b)]+_0xd2ce7(0x363)+this[_0xd2ce7(0x30e)]['status']);this[_0xd2ce7(0x445)](_0x521523);},'onSendChangeset':_0xf03a62=>{const _0x1072ec=_0x49e7a8;_0xf03a62[_0x1072ec(0x2ed)]||(_0xf03a62[_0x1072ec(0x2ed)]=this['_changesetSessionId'],_0xf03a62['reqId']=++this['_changesetReqId']);const _0x1600db={'eventID':_0x3a5d3a['CollaborationEvent']['SUBMIT_CHANGESET'],'data':{'unitID':_0xf03a62[_0x1072ec(0x261)],'unitType':this[_0x1072ec(0x245)],'changeset':_0xf03a62,'memberID':this[_0x1072ec(0x219)][_0x1072ec(0x1e5)]()}};this[_0x1072ec(0x219)][_0x1072ec(0x488)](_0x1600db,this[_0x1072ec(0x261)]);},'onMissingChangesets':({from:_0x461558,to:_0x111f74})=>{const _0x2bcf60=_0x49e7a8;this[_0x2bcf60(0x307)][_0x2bcf60(0x1e2)](_0x2bcf60(0x2ea),_0x2bcf60(0x266)+_0x461558+_0x2bcf60(0x550)+_0x111f74);const _0x5545cc={'eventID':_0x3a5d3a[_0x2bcf60(0x442)][_0x2bcf60(0x593)],'data':{'unitID':_0x1f1f0d,'unitType':this['_type'],'from':_0x461558,'to':_0x111f74}};this[_0x2bcf60(0x219)][_0x2bcf60(0x488)](_0x5545cc,this[_0x2bcf60(0x261)]);}};}async[_0x52ce28(0x499)](_0x4058d7){const _0x2a1744=_0x52ce28;var _0x4f9675,_0x38579b;const _0xb82972=await this['_localCacheService'][_0x2a1744(0x566)](this[_0x2a1744(0x261)]),_0x2bce17=(_0x4f9675=_0xb82972==null?void 0x0:_0xb82972[_0x2a1744(0x568)])!=null?_0x4f9675:[],_0x3f9f92=(_0x38579b=_0xb82972==null?void 0x0:_0xb82972['awaitingChangeset'])!=null?_0x38579b:null,_0x1203e3=!!(_0x3f9f92!=null&&_0x3f9f92['sid'])&&!!(_0x3f9f92!=null&&_0x3f9f92['reqId']);this[_0x2a1744(0x323)]=_0x1203e3?_0x3f9f92['sid']:_0x2c0a08(),this[_0x2a1744(0x39e)]=_0x1203e3?_0x3f9f92[_0x2a1744(0x4d7)]:0x0;const _0x1bd16e=this[_0x2a1744(0x261)];try{this[_0x2a1744(0x194)](_0x3f9f92,_0x2bce17);}catch(_0x5ca689){this['_logService']['error'](_0x5ca689);}const _0x866b2=this[_0x2a1744(0x446)]();if(_0x4058d7){const _0x54f508=_0x5cfbad(this[_0x2a1744(0x43e)],_0x1bd16e,this[_0x2a1744(0x245)],_0x3f9f92,_0x2bce17,_0x866b2);return _0x54f508 instanceof _0x203335?_0x54f508[_0x2a1744(0x31b)]():(_0x54f508 instanceof _0x180bf3||_0x54f508 instanceof _0x76ddbd)&&_0x54f508[_0x2a1744(0x47f)](),_0x54f508;}return this[_0x2a1744(0x43e)]['createInstance'](_0x6c2bf3,_0x1bd16e,this[_0x2a1744(0x245)],_0x3f9f92,_0x2bce17,_0x866b2);}['_replayCachedMutations'](_0x27712a,_0x47a9e2){const _0x4f8c43=_0x52ce28;var _0x2007a9,_0x1b0823;const _0x729c0f=this[_0x4f8c43(0x44b)][_0x4f8c43(0x213)]['fetchThroughInterceptors'](this[_0x4f8c43(0x44b)]['interceptor'][_0x4f8c43(0x572)]()['COMPRESS_MUTATION_APPLY']);(_0x2007a9=_0x729c0f((_0x27712a==null?void 0x0:_0x27712a['mutations'])||[],null))==null||_0x2007a9[_0x4f8c43(0x317)](_0x2c2dac=>this[_0x4f8c43(0x3a8)]['executeCommand'](_0x2c2dac['id'],_0x2c2dac[_0x4f8c43(0x2b4)])),(_0x1b0823=_0x729c0f(_0x47a9e2||[],null))==null||_0x1b0823[_0x4f8c43(0x317)](_0xceeb55=>this[_0x4f8c43(0x3a8)]['executeCommand'](_0xceeb55['id'],_0xceeb55['params']));}},_0x2143a3['CollaborationEntity']=_0x27dd7b([_0x100e46(0x3,_0x514eda['Inject'](_0x514eda[_0x52ce28(0x228)])),_0x100e46(0x4,_0x514eda[_0x52ce28(0x324)](_0x2143a3[_0x52ce28(0x472)])),_0x100e46(0x5,_0x514eda[_0x52ce28(0x324)](_0x3a5d3a[_0x52ce28(0x25c)])),_0x100e46(0x6,_0x514eda[_0x52ce28(0x324)](_0x514eda[_0x52ce28(0x440)])),_0x100e46(0x7,_0x514eda[_0x52ce28(0x324)](_0x3a5d3a[_0x52ce28(0x23b)])),_0x100e46(0x8,_0x514eda[_0x52ce28(0x1f6)]),_0x100e46(0x9,_0x514eda['ICommandService']),_0x100e46(0xa,_0x116b36['IMessageService']),_0x100e46(0xb,_0x514eda[_0x52ce28(0x41e)]),_0x100e46(0xc,_0x514eda[_0x52ce28(0x2d3)](_0x701040))],_0x2143a3[_0x52ce28(0x26c)]),_0x2143a3['DocCollaborationEntity']=class extends _0x2143a3[_0x52ce28(0x26c)]{constructor(_0x5b4dbc,_0x3195c3,_0x2db43a,_0x139d79,_0x42a1c0,_0x198896,_0x1ec192,_0x50cf2,_0x303316,_0x18e8fa,_0xa9675a,_0x396368,_0x454b19,_0x145e01,_0xa36746,_0x2c8db0,_0x480eec){const _0x159f3b=_0x52ce28;super(_0x5b4dbc,_0x2db43a,_0x3195c3,_0x139d79,_0x42a1c0,_0x198896,_0x1ec192,_0x50cf2,_0x454b19,_0x145e01,_0xa36746,_0x2c8db0,_0x480eec),this['unitID']=_0x5b4dbc,this[_0x159f3b(0x37c)]=_0x3195c3,this['_docStateChangeManagerService']=_0x303316,this[_0x159f3b(0x1c4)]=_0x18e8fa,this[_0x159f3b(0x311)]=_0xa9675a,this[_0x159f3b(0x40c)]=_0x396368;}[_0x52ce28(0x446)](){const _0x2ff11e=_0x52ce28,_0x3c85e7=super[_0x2ff11e(0x446)]();return _0x3c85e7['onTransformIME']=_0x4908be=>this['_docTransformIMECacheService'][_0x2ff11e(0x2bd)](_0x4908be),_0x3c85e7[_0x2ff11e(0x500)]=_0x125cfc=>this[_0x2ff11e(0x311)][_0x2ff11e(0x53f)](_0x125cfc),_0x3c85e7['onSyncEditingCollabCursor']=_0x6e4c09=>this[_0x2ff11e(0x40c)]['syncEditingCollabCursor'](_0x6e4c09),_0x3c85e7[_0x2ff11e(0x4a1)]=_0x2d8cd3=>this[_0x2ff11e(0x1c4)]['transformRemoteChangeset'](_0x2d8cd3),_0x3c85e7;}async[_0x52ce28(0x5a9)](){const _0x4bacab=_0x52ce28,_0x3257d3=await super[_0x4bacab(0x5a9)]();return this[_0x4bacab(0x57a)]['docStateChange$'][_0x4bacab(0x2b9)](_0x2ca9ec[_0x4bacab(0x218)](this[_0x4bacab(0x4af)]))['subscribe'](_0x239de3=>{const _0x295d6f=_0x4bacab;if(_0x239de3==null)return;const {unitId:_0x17950d,redoState:_0x30407b,commandId:_0x31c3ca}=_0x239de3;if(_0x17950d!==this[_0x295d6f(0x261)])return;const _0x2b33ab={'id':_0x31c3ca,'type':_0x514eda['CommandType'][_0x295d6f(0x284)],'params':{'unitId':_0x17950d,'actions':_0x30407b[_0x295d6f(0x408)],'textRanges':null}};this['_onLocalMutation'](_0x2b33ab);}),_0x3257d3;}},_0x2143a3[_0x52ce28(0x25d)]=_0x27dd7b([_0x100e46(0x3,_0x514eda[_0x52ce28(0x324)](_0x514eda[_0x52ce28(0x228)])),_0x100e46(0x4,_0x514eda[_0x52ce28(0x324)](_0x2143a3['LocalCacheService'])),_0x100e46(0x5,_0x514eda[_0x52ce28(0x324)](_0x3a5d3a[_0x52ce28(0x25c)])),_0x100e46(0x6,_0x514eda[_0x52ce28(0x324)](_0x514eda[_0x52ce28(0x440)])),_0x100e46(0x7,_0x514eda[_0x52ce28(0x324)](_0x3a5d3a[_0x52ce28(0x23b)])),_0x100e46(0x8,_0x514eda[_0x52ce28(0x324)](_0x393ad9[_0x52ce28(0x198)])),_0x100e46(0x9,_0x514eda[_0x52ce28(0x324)](_0x11b33f)),_0x100e46(0xa,_0x514eda['Inject'](_0x30b76d)),_0x100e46(0xb,_0x514eda[_0x52ce28(0x324)](_0x8e44ac)),_0x100e46(0xc,_0x514eda[_0x52ce28(0x1f6)]),_0x100e46(0xd,_0x514eda[_0x52ce28(0x289)]),_0x100e46(0xe,_0x116b36['IMessageService']),_0x100e46(0xf,_0x514eda[_0x52ce28(0x41e)]),_0x100e46(0x10,_0x514eda[_0x52ce28(0x2d3)](_0x701040))],_0x2143a3['DocCollaborationEntity']),_0x2143a3[_0x52ce28(0x22e)]=class extends _0x2143a3[_0x52ce28(0x26c)]{constructor(_0x9dec29,_0x5136a7,_0x5bae2c,_0x24f5b2,_0x5dba56,_0x411775,_0x21aa3c,_0x7bf5a2,_0xc0da05,_0x35d539,_0x11397b,_0x3536cd,_0x12ed2e,_0x3258ed){const _0x44cc90=_0x52ce28;super(_0x9dec29,_0x5bae2c,_0x5136a7,_0x24f5b2,_0x5dba56,_0x411775,_0x21aa3c,_0x7bf5a2,_0x35d539,_0x11397b,_0x3536cd,_0x12ed2e,_0x3258ed),this[_0x44cc90(0x261)]=_0x9dec29,this[_0x44cc90(0x37c)]=_0x5136a7,this[_0x44cc90(0x585)]=_0xc0da05;}[_0x52ce28(0x446)](){const _0x580789=_0x52ce28,_0x3c92bb=super['_createHandler']();return _0x3c92bb['onTransformSelections']=_0x2ceb4a=>this[_0x580789(0x585)][_0x580789(0x53f)](_0x2ceb4a),_0x3c92bb;}async[_0x52ce28(0x5a9)](){const _0x2267bb=_0x52ce28,_0x5ac847=await super[_0x2267bb(0x5a9)]();return this['disposeWithMe'](this[_0x2267bb(0x3a8)][_0x2267bb(0x2ca)]((_0x552251,_0x3fa649)=>{const _0x2e92e4=_0x2267bb;if(_0x552251['type']!==_0x514eda[_0x2e92e4(0x1a9)][_0x2e92e4(0x284)]||_0x3fa649!=null&&_0x3fa649[_0x2e92e4(0x270)]||_0x3fa649!=null&&_0x3fa649[_0x2e92e4(0x1b6)])return;const _0x21d164=_0x552251[_0x2e92e4(0x2b4)];if((_0x21d164==null?void 0x0:_0x21d164['unitId'])!==this[_0x2e92e4(0x261)])return;const _0x4826b2=_0x552251,_0x5b8951=this[_0x2e92e4(0x44b)][_0x2e92e4(0x213)][_0x2e92e4(0x3a9)](this['_compressMutationService'][_0x2e92e4(0x213)]['getInterceptPoints']()[_0x2e92e4(0x509)])([_0x4826b2],null)||[_0x4826b2];this[_0x2e92e4(0x51f)](_0x5b8951[0x0]);})),_0x5ac847;}},_0x2143a3[_0x52ce28(0x22e)]=_0x27dd7b([_0x100e46(0x3,_0x514eda[_0x52ce28(0x324)](_0x514eda['Injector'])),_0x100e46(0x4,_0x514eda[_0x52ce28(0x324)](_0x2143a3[_0x52ce28(0x472)])),_0x100e46(0x5,_0x514eda[_0x52ce28(0x324)](_0x3a5d3a[_0x52ce28(0x25c)])),_0x100e46(0x6,_0x514eda['Inject'](_0x514eda['LocaleService'])),_0x100e46(0x7,_0x514eda[_0x52ce28(0x324)](_0x3a5d3a['RevisionService'])),_0x100e46(0x8,_0x514eda[_0x52ce28(0x324)](_0x2da596)),_0x100e46(0x9,_0x514eda[_0x52ce28(0x1f6)]),_0x100e46(0xa,_0x514eda['ICommandService']),_0x100e46(0xb,_0x116b36['IMessageService']),_0x100e46(0xc,_0x514eda[_0x52ce28(0x41e)]),_0x100e46(0xd,_0x514eda[_0x52ce28(0x2d3)](_0x701040))],_0x2143a3[_0x52ce28(0x22e)]);var _0x19796c=Object[_0x52ce28(0x1fd)],_0xa03406=Object[_0x52ce28(0x493)],_0x1e89d2=(_0x2b5585,_0x3760b7,_0x2d0b07,_0x4934d2)=>{const _0x4acb1b=_0x52ce28;for(var _0x185276=_0x4934d2>0x1?void 0x0:_0x4934d2?_0xa03406(_0x3760b7,_0x2d0b07):_0x3760b7,_0x360f36=_0x2b5585[_0x4acb1b(0x47c)]-0x1,_0x4af47e;_0x360f36>=0x0;_0x360f36--)(_0x4af47e=_0x2b5585[_0x360f36])&&(_0x185276=(_0x4934d2?_0x4af47e(_0x3760b7,_0x2d0b07,_0x185276):_0x4af47e(_0x185276))||_0x185276);return _0x4934d2&&_0x185276&&_0x19796c(_0x3760b7,_0x2d0b07,_0x185276),_0x185276;},_0x9b7368=(_0x485fb1,_0x50264a)=>(_0x53b3e1,_0x321f7d)=>_0x50264a(_0x53b3e1,_0x321f7d,_0x485fb1);_0x2143a3[_0x52ce28(0x56f)]=class extends _0x514eda['RxDisposable']{constructor(_0xb511b5,_0x2fbffd,_0x302081){const _0xca08dc=_0x52ce28;super(),_0x2406c5(this,_0xca08dc(0x413),new Map()),_0x2406c5(this,'_entityInit$',new _0x2ca9ec[(_0xca08dc(0x181))]()),(this['_injector']=_0xb511b5,this['_collabSessionService']=_0x2fbffd,this[_0xca08dc(0x49d)]=_0x302081,this['_init']());}[_0x52ce28(0x374)](){const _0x57183d=_0x52ce28;super[_0x57183d(0x374)](),this[_0x57183d(0x413)]['forEach'](_0x55f8de=>_0x55f8de[_0x57183d(0x374)]()),this[_0x57183d(0x413)][_0x57183d(0x3a0)]();}['getCollabEntity'](_0x2e5622){const _0x2961b5=_0x52ce28;var _0x51175c;return(_0x51175c=this[_0x2961b5(0x413)][_0x2961b5(0x4d3)](_0x2e5622))!=null?_0x51175c:null;}['getCollabEntity$'](_0x338e61){const _0x57781f=_0x52ce28,_0x2a19d=this[_0x57781f(0x4cf)](_0x338e61);return _0x2a19d?_0x2ca9ec['of'](_0x2a19d):this[_0x57781f(0x534)][_0x57781f(0x2b9)](_0x3757e3[_0x57781f(0x56d)](_0xb25ac=>_0xb25ac[_0x57781f(0x261)]===_0x338e61));}['_init'](){const _0x2c0029=_0x52ce28;this['_univerInstanceService'][_0x2c0029(0x3f8)](_0x514eda[_0x2c0029(0x1e0)][_0x2c0029(0x1ac)])[_0x2c0029(0x2b9)](_0x2ca9ec[_0x2c0029(0x218)](this[_0x2c0029(0x4af)]),_0x3757e3[_0x2c0029(0x3c9)](0x10))[_0x2c0029(0x1b3)](async _0x32203c=>{const _0x16cf52=_0x2c0029,_0x209e47=_0x32203c[_0x16cf52(0x2da)](),_0x2d2bfb=await this[_0x16cf52(0x522)](_0x209e47,_0x3f5bfb[_0x16cf52(0x1ac)]);this['_entities'][_0x16cf52(0x485)](_0x209e47,_0x2d2bfb);}),this[_0x2c0029(0x49d)][_0x2c0029(0x3f8)](_0x514eda[_0x2c0029(0x1e0)][_0x2c0029(0x34f)])['pipe'](_0x2ca9ec[_0x2c0029(0x218)](this[_0x2c0029(0x4af)]),_0x3757e3[_0x2c0029(0x3c9)](0x10))[_0x2c0029(0x2b9)](_0x3757e3['filter'](_0x325af6=>!_0x325af6['getUnitId']()[_0x2c0029(0x539)]('__')))[_0x2c0029(0x1b3)](async _0x529f32=>{const _0x3e6ef6=_0x2c0029,_0x3bbdfa=_0x529f32[_0x3e6ef6(0x2da)](),_0x2820c1=await this[_0x3e6ef6(0x522)](_0x3bbdfa,_0x3f5bfb[_0x3e6ef6(0x34f)]);this['_entities'][_0x3e6ef6(0x485)](_0x3bbdfa,_0x2820c1);}),_0x2ca9ec[_0x2c0029(0x52d)](this[_0x2c0029(0x49d)]['getTypeOfUnitDisposed$'](_0x514eda['UniverInstanceType']['UNIVER_SHEET']),this[_0x2c0029(0x49d)][_0x2c0029(0x44e)](_0x514eda[_0x2c0029(0x1e0)][_0x2c0029(0x34f)]))[_0x2c0029(0x2b9)](_0x2ca9ec[_0x2c0029(0x218)](this['dispose$']))[_0x2c0029(0x1b3)](_0x5cbc98=>{const _0xc6da3e=_0x2c0029,_0x2f593a=_0x5cbc98[_0xc6da3e(0x2da)](),_0x56feb5=this['_entities'][_0xc6da3e(0x4d3)](_0x2f593a);_0x56feb5&&(_0x56feb5[_0xc6da3e(0x374)](),this[_0xc6da3e(0x413)][_0xc6da3e(0x3ba)](_0x2f593a));});}async['_startCollaboration'](_0x21cd12,_0x22ab27){const _0x10c48c=_0x52ce28,_0x865da1=await this[_0x10c48c(0x479)][_0x10c48c(0x295)](_0x21cd12),_0x566828=this[_0x10c48c(0x43e)]['createInstance'](this[_0x10c48c(0x4cd)](_0x22ab27),_0x21cd12,_0x22ab27,_0x865da1);return await _0x566828['init'](),this[_0x10c48c(0x534)][_0x10c48c(0x1df)](_0x566828),_0x566828;}[_0x52ce28(0x4cd)](_0x55031f){const _0x146d64=_0x52ce28;switch(_0x55031f){case _0x3f5bfb[_0x146d64(0x34f)]:return _0x2143a3[_0x146d64(0x25d)];case _0x3f5bfb[_0x146d64(0x1ac)]:return _0x2143a3[_0x146d64(0x22e)];default:throw new Error(_0x146d64(0x24b)+_0x55031f);}}},_0x2143a3['CollaborationController']=_0x1e89d2([_0x9b7368(0x0,_0x514eda[_0x52ce28(0x324)](_0x514eda['Injector'])),_0x9b7368(0x1,_0x514eda[_0x52ce28(0x324)](_0x2143a3[_0x52ce28(0x3f3)])),_0x9b7368(0x2,_0x514eda[_0x52ce28(0x29d)])],_0x2143a3['CollaborationController']);const _0x47d983=[_0x52ce28(0x4f4),_0x52ce28(0x214),_0x52ce28(0x20e),'red300',_0x52ce28(0x4ef),'gold400'];class _0x59b125 extends _0x514eda['Disposable']{constructor(){const _0x1e598d=_0x52ce28;super(...arguments),_0x2406c5(this,_0x1e598d(0x4e8),new Map()),_0x2406c5(this,'_colorIndex',0x0);}[_0x52ce28(0x42c)](_0x2dbfbb){const _0x5a5af2=_0x52ce28;if(this[_0x5a5af2(0x4e8)][_0x5a5af2(0x2ab)](_0x2dbfbb))return this[_0x5a5af2(0x4e8)][_0x5a5af2(0x4d3)](_0x2dbfbb);const _0x4c788c=_0x47d983[this[_0x5a5af2(0x179)]];return this[_0x5a5af2(0x179)]=(this['_colorIndex']+0x1)%_0x47d983[_0x5a5af2(0x47c)],this[_0x5a5af2(0x4e8)][_0x5a5af2(0x485)](_0x2dbfbb,_0x4c788c),_0x4c788c;}}var _0x3ba72d=Object[_0x52ce28(0x1fd)],_0x2ee13b=Object[_0x52ce28(0x493)],_0x5b4906=(_0x3db50d,_0x3cec75,_0x295938,_0x5dba4c)=>{const _0x3a2f4d=_0x52ce28;for(var _0x1bde31=_0x5dba4c>0x1?void 0x0:_0x5dba4c?_0x2ee13b(_0x3cec75,_0x295938):_0x3cec75,_0xb97cac=_0x3db50d[_0x3a2f4d(0x47c)]-0x1,_0x568eb5;_0xb97cac>=0x0;_0xb97cac--)(_0x568eb5=_0x3db50d[_0xb97cac])&&(_0x1bde31=(_0x5dba4c?_0x568eb5(_0x3cec75,_0x295938,_0x1bde31):_0x568eb5(_0x1bde31))||_0x1bde31);return _0x5dba4c&&_0x1bde31&&_0x3ba72d(_0x3cec75,_0x295938,_0x1bde31),_0x1bde31;},_0x5bc6d6=(_0x4bd29d,_0x151b20)=>(_0x2ac853,_0x4209fa)=>_0x151b20(_0x2ac853,_0x4209fa,_0x4bd29d);const _0x18365f=0x12c,_0x4b9436=0x64;let _0x3c3c75=class extends _0x514eda[_0x52ce28(0x18e)]{constructor(_0x206ab5,_0x15b600,_0x132934,_0x849cc1,_0x2a92be,_0x31db31,_0x228af5,_0x47ddbf,_0x527d81){const _0x15421b=_0x52ce28;super(),_0x2406c5(this,'_online',!0x1),_0x2406c5(this,_0x15421b(0x5a9),!0x1),_0x2406c5(this,'_cursorInfo$',new _0x2ca9ec[(_0x15421b(0x3ff))](new Map())),_0x2406c5(this,'cursorInfo$',this['_cursorInfo$'][_0x15421b(0x297)]()),_0x2406c5(this,_0x15421b(0x3fb),new _0x2ca9ec[(_0x15421b(0x3ff))]([])),_0x2406c5(this,_0x15421b(0x1af),this[_0x15421b(0x3fb)][_0x15421b(0x2b9)](_0x2ca9ec[_0x15421b(0x4a8)](_0x18365f))),_0x2406c5(this,_0x15421b(0x276),_0x514eda[_0x15421b(0x3b9)](_0x114549=>{const _0x584970=_0x15421b,_0x126079={'eventID':_0x3a5d3a[_0x584970(0x442)][_0x584970(0x466)],'data':{'unitID':this[_0x584970(0x261)],'memberID':this[_0x584970(0x4c8)]['getMemberID'](),'selection':_0x2eca7a(_0x114549)}};this[_0x584970(0x4c8)][_0x584970(0x488)](_0x126079,this[_0x584970(0x261)]);},_0x4b9436)),(this[_0x15421b(0x261)]=_0x206ab5,this[_0x15421b(0x4c8)]=_0x15b600,this[_0x15421b(0x43e)]=_0x132934,this[_0x15421b(0x352)]=_0x849cc1,this[_0x15421b(0x47a)]=_0x2a92be,this[_0x15421b(0x223)]=_0x31db31,this[_0x15421b(0x283)]=_0x228af5,this[_0x15421b(0x49d)]=_0x47ddbf,this[_0x15421b(0x3a8)]=_0x527d81);}get[_0x52ce28(0x3df)](){return this['_cursorInfo$']['getValue']();}get[_0x52ce28(0x447)](){const _0x5cc31e=_0x52ce28;return this['_roomMembers$'][_0x5cc31e(0x375)]();}[_0x52ce28(0x374)](){const _0xff498e=_0x52ce28;super[_0xff498e(0x374)](),this['_cursorInfo$'][_0xff498e(0x1df)](new Map()),this[_0xff498e(0x2b5)][_0xff498e(0x364)](),this['_roomMembers$'][_0xff498e(0x1df)]([]),this[_0xff498e(0x3fb)][_0xff498e(0x364)]();}[_0x52ce28(0x2cf)](){const _0x59fc4c=_0x52ce28;this[_0x59fc4c(0x5a9)]||(this[_0x59fc4c(0x5a9)]=!0x0,this[_0x59fc4c(0x4c8)][_0x59fc4c(0x3ee)]['pipe'](_0x2ca9ec[_0x59fc4c(0x218)](this[_0x59fc4c(0x4af)]))['subscribe'](_0x677987=>{const _0x46dcfc=_0x59fc4c;_0x677987===_0x1e45f8[_0x46dcfc(0x494)]?this[_0x46dcfc(0x547)]():this['_toggleOffline']();}),this['_session']['event$'][_0x59fc4c(0x2b9)](_0x2ca9ec['takeUntil'](this[_0x59fc4c(0x4af)]))[_0x59fc4c(0x1b3)](_0x332ed8=>{const _0x1b51ab=_0x59fc4c,_0x4fa70f=_0x332ed8[_0x1b51ab(0x4bb)];_0x4fa70f===_0x3a5d3a['CollaborationEvent']['UPDATE_CURSOR']&&this['_onCursorUpdate'](_0x332ed8),_0x4fa70f===_0x3a5d3a[_0x1b51ab(0x442)][_0x1b51ab(0x29f)]&&this[_0x1b51ab(0x326)](_0x332ed8);}),this[_0x59fc4c(0x3ad)](this[_0x59fc4c(0x3a8)][_0x59fc4c(0x2ca)](_0x453aba=>{const _0x17715e=_0x59fc4c,_0x39295a=_0x453aba['params'];_0x39295a!=null&&this[_0x17715e(0x18f)]&&_0x453aba['id']===_0x26ab50[_0x17715e(0x365)]['id']&&_0x39295a[_0x17715e(0x384)]===this[_0x17715e(0x261)]&&_0x39295a[_0x17715e(0x4aa)]===!0x1&&this[_0x17715e(0x276)](_0x39295a['ranges']);})),this[_0x59fc4c(0x223)][_0x59fc4c(0x260)][_0x59fc4c(0x2b9)](_0x2ca9ec[_0x59fc4c(0x218)](this[_0x59fc4c(0x4af)]))[_0x59fc4c(0x1b3)](_0x441085=>{const _0x3a13df=_0x59fc4c;if((_0x441085==null?void 0x0:_0x441085[_0x3a13df(0x261)])!==this[_0x3a13df(0x261)])return;const _0x963add={'eventID':_0x3a5d3a[_0x3a13df(0x442)][_0x3a13df(0x466)],'data':_0x441085};this[_0x3a13df(0x2e3)](_0x963add);}),this[_0x59fc4c(0x3ad)](this[_0x59fc4c(0x3a8)][_0x59fc4c(0x2ca)](_0x2eb64a=>{const _0x2d9961=_0x59fc4c;if(_0x2eb64a[_0x2d9961(0x2b4)]==null)return;const _0x1a857c=_0x2eb64a[_0x2d9961(0x2b4)];if(_0x2eb64a['id']!==_0x26ab50[_0x2d9961(0x4f7)]['id']||_0x1a857c['unitId']!==this[_0x2d9961(0x261)])return;const _0x383fed={'id':_0x2d9961(0x412),'params':_0x1a857c},_0x480954=this['cursorInfo'];for(const [_0x40b5e7,_0x25e303]of _0x480954){const _0x536049={'id':_0x2d9961(0x412),'params':{'unitId':this[_0x2d9961(0x261)],'actions':null,'textRanges':_0x25e303[_0x2d9961(0x2e8)]}},_0x20fd2d=this['_transformService'][_0x2d9961(0x46c)](_0x383fed,_0x536049,!0x1);if(_0x3a5d3a[_0x2d9961(0x516)](_0x20fd2d))throw _0x20fd2d['error'];_0x480954[_0x2d9961(0x485)](_0x40b5e7,{..._0x25e303,'ranges':_0x20fd2d[_0x2d9961(0x5a6)][_0x2d9961(0x2b4)][_0x2d9961(0x275)]});}queueMicrotask(()=>{const _0x9a69e3=_0x2d9961;this[_0x9a69e3(0x2b5)][_0x9a69e3(0x1df)](_0x480954);});})));}[_0x52ce28(0x2e3)](_0x3bee51){const _0x54e170=_0x52ce28;var _0x3693fe,_0x3b752a;const {memberID:_0x4858c8,selection:_0xf408a1}=_0x3bee51[_0x54e170(0x527)],_0x532fd6=_0x2bdadd(_0xf408a1),_0x5354bb=(_0x3b752a=(_0x3693fe=this['_memberService'][_0x54e170(0x368)](this[_0x54e170(0x261)],_0x4858c8))==null?void 0x0:_0x3693fe[_0x54e170(0x2fb)])!=null?_0x3b752a:_0x54e170(0x1e3),_0x2a595e={'color':this[_0x54e170(0x352)][_0x54e170(0x42c)](_0x4858c8),'name':_0x5354bb,'ranges':_0x532fd6},_0x48222d=this[_0x54e170(0x3df)];_0x48222d['set'](_0x4858c8,_0x2a595e),this['_cursorInfo$'][_0x54e170(0x1df)](_0x48222d);}[_0x52ce28(0x326)](_0x457d38){const _0x469b06=_0x52ce28,{memberID:_0x552ce}=_0x457d38[_0x469b06(0x527)],_0xf81e08=this[_0x469b06(0x3df)];_0xf81e08[_0x469b06(0x3ba)](_0x552ce),this['_cursorInfo$'][_0x469b06(0x1df)](_0xf81e08);}[_0x52ce28(0x547)](){const _0x338ddd=_0x52ce28;var _0x12f29c;if(this[_0x338ddd(0x18f)]=!0x0,((_0x12f29c=this[_0x338ddd(0x49d)]['getFocusedUnit']())==null?void 0x0:_0x12f29c[_0x338ddd(0x2da)]())!==this[_0x338ddd(0x261)])return;const _0x89eff8=this[_0x338ddd(0x43e)][_0x338ddd(0x4d3)](_0x26ab50[_0x338ddd(0x1bd)])[_0x338ddd(0x411)]();Array[_0x338ddd(0x2cb)](_0x89eff8)&&_0x89eff8[_0x338ddd(0x47c)]>0x0&&this[_0x338ddd(0x276)](_0x89eff8);}[_0x52ce28(0x322)](){this['_online']=!0x1;}};_0x3c3c75=_0x5b4906([_0x5bc6d6(0x2,_0x514eda[_0x52ce28(0x324)](_0x514eda[_0x52ce28(0x228)])),_0x5bc6d6(0x3,_0x514eda[_0x52ce28(0x324)](_0x59b125)),_0x5bc6d6(0x4,_0x514eda['Inject'](_0x5da513)),_0x5bc6d6(0x5,_0x514eda[_0x52ce28(0x324)](_0x8e44ac)),_0x5bc6d6(0x6,_0x3a5d3a[_0x52ce28(0x231)]),_0x5bc6d6(0x7,_0x514eda[_0x52ce28(0x29d)]),_0x5bc6d6(0x8,_0x514eda[_0x52ce28(0x289)])],_0x3c3c75);var _0x494b80=Object['defineProperty'],_0xdd06f9=Object[_0x52ce28(0x493)],_0xea33c1=(_0x4382a0,_0x59577d,_0x4ef7e7,_0x2e8fca)=>{for(var _0x192fab=_0x2e8fca>0x1?void 0x0:_0x2e8fca?_0xdd06f9(_0x59577d,_0x4ef7e7):_0x59577d,_0x248592=_0x4382a0['length']-0x1,_0x25df93;_0x248592>=0x0;_0x248592--)(_0x25df93=_0x4382a0[_0x248592])&&(_0x192fab=(_0x2e8fca?_0x25df93(_0x59577d,_0x4ef7e7,_0x192fab):_0x25df93(_0x192fab))||_0x192fab);return _0x2e8fca&&_0x192fab&&_0x494b80(_0x59577d,_0x4ef7e7,_0x192fab),_0x192fab;},_0x12183e=(_0x27df50,_0xed2e91)=>(_0x308b10,_0xf42885)=>_0xed2e91(_0x308b10,_0xf42885,_0x27df50);const _0x832f9e=0x12c,_0x594810=0x64,_0x4ac512=()=>{let _0x1d121e=[],_0x5a4c0e=!0x1;return _0x1e1ab0=>{const _0x7893b8=_0x2d6c;_0x1d121e[_0x7893b8(0x47b)](_0x1e1ab0),_0x5a4c0e||(_0x5a4c0e=!0x0,setTimeout(()=>{const _0x15cd69=_0x7893b8;_0x1d121e[_0x15cd69(0x317)](_0x58f594=>_0x58f594()),_0x1d121e=[],_0x5a4c0e=!0x1;}));};};let _0x40905f=class extends _0x514eda[_0x52ce28(0x18e)]{constructor(_0x4d5f98,_0x54505d,_0x372cc0,_0x3cfec4,_0x3b691a,_0x41e1b1,_0x1a512f,_0x397910){const _0x307110=_0x52ce28;super(),_0x2406c5(this,_0x307110(0x18f),!0x1),_0x2406c5(this,'_init',!0x1),_0x2406c5(this,_0x307110(0x2b5),new _0x2ca9ec[(_0x307110(0x3ff))](new Map())),_0x2406c5(this,_0x307110(0x246),this[_0x307110(0x2b5)][_0x307110(0x297)]()),_0x2406c5(this,_0x307110(0x3fb),new _0x2ca9ec['BehaviorSubject']([])),_0x2406c5(this,'roomMembers$',this[_0x307110(0x3fb)][_0x307110(0x2b9)](_0x2ca9ec[_0x307110(0x4a8)](_0x832f9e))),_0x2406c5(this,'_updateLocalCursor',_0x514eda[_0x307110(0x3b9)]((_0x36afe2,_0x14c93a)=>{const _0x2a96d6=_0x307110,_0x3a16b9={'eventID':_0x3a5d3a['CollaborationEvent'][_0x2a96d6(0x466)],'data':{'unitID':this[_0x2a96d6(0x261)],'memberID':this[_0x2a96d6(0x4c8)]['getMemberID'](),'selection':_0xa43e06[_0x2a96d6(0x2fd)](_0x36afe2,_0x14c93a[_0x2a96d6(0x2d8)])}};this[_0x2a96d6(0x4c8)][_0x2a96d6(0x488)](_0x3a16b9,this[_0x2a96d6(0x261)]);},_0x594810)),(this[_0x307110(0x261)]=_0x4d5f98,this[_0x307110(0x4c8)]=_0x54505d,this[_0x307110(0x43e)]=_0x372cc0,this[_0x307110(0x352)]=_0x3cfec4,this[_0x307110(0x47a)]=_0x3b691a,this[_0x307110(0x49d)]=_0x41e1b1,this['_commandService']=_0x1a512f,this[_0x307110(0x343)]=_0x397910);}get[_0x52ce28(0x3df)](){const _0x42e25c=_0x52ce28;return this[_0x42e25c(0x2b5)][_0x42e25c(0x375)]();}get['roomMembers'](){const _0xc702d4=_0x52ce28;return this[_0xc702d4(0x3fb)][_0xc702d4(0x375)]();}[_0x52ce28(0x374)](){const _0x49321e=_0x52ce28;super['dispose'](),this[_0x49321e(0x2b5)][_0x49321e(0x1df)](new Map()),this[_0x49321e(0x2b5)]['complete'](),this[_0x49321e(0x3fb)][_0x49321e(0x1df)]([]),this['_roomMembers$'][_0x49321e(0x364)]();}[_0x52ce28(0x2cf)](){const _0x24dd4a=_0x52ce28;this[_0x24dd4a(0x5a9)]||(this[_0x24dd4a(0x5a9)]=!0x0,this[_0x24dd4a(0x4c8)][_0x24dd4a(0x3ee)][_0x24dd4a(0x2b9)](_0x2ca9ec[_0x24dd4a(0x218)](this[_0x24dd4a(0x4af)]))['subscribe'](_0x47f9d8=>{const _0x285393=_0x24dd4a;_0x47f9d8===_0x1e45f8['ONLINE']?this['_toggleOnline']():this[_0x285393(0x322)]();}),this[_0x24dd4a(0x4c8)][_0x24dd4a(0x595)][_0x24dd4a(0x2b9)](_0x2ca9ec[_0x24dd4a(0x218)](this[_0x24dd4a(0x4af)]))[_0x24dd4a(0x1b3)](_0xd1f9d3=>{const _0x3f4d83=_0x24dd4a,_0x3820b9=_0xd1f9d3[_0x3f4d83(0x4bb)];_0x3820b9===_0x3a5d3a['CollaborationEvent'][_0x3f4d83(0x466)]&&this[_0x3f4d83(0x2e3)](_0xd1f9d3),_0x3820b9===_0x3a5d3a[_0x3f4d83(0x442)]['USERS_LEAVE']&&this['_onCursorDelete'](_0xd1f9d3);}),this['_onRefRangeChange'](),this[_0x24dd4a(0x3ad)](this[_0x24dd4a(0x3a8)][_0x24dd4a(0x2ca)](_0x4efe14=>{const _0x3b34a3=_0x24dd4a;if(this['_online']&&_0x4efe14['id']===_0x12c1fe['SetSelectionsOperation']['id']&&_0x4efe14[_0x3b34a3(0x2b4)][_0x3b34a3(0x384)]===this[_0x3b34a3(0x261)]){const _0x4b4251=_0x4efe14['params'];this[_0x3b34a3(0x276)](_0x4b4251[_0x3b34a3(0x39f)],_0x4b4251[_0x3b34a3(0x3da)][0x0]);}})));}[_0x52ce28(0x2e3)](_0x4b9507){const _0x10dfea=_0x52ce28;var _0x2eb7ad,_0x3f6b3c;const {memberID:_0xf4daf6,selection:_0x5015a5}=_0x4b9507['data'],{sheetName:_0x3aadff,range:_0x32ac5b}=_0xa43e06['deserializeRangeWithSheet'](_0x5015a5),_0x3cbd06={'name':(_0x3f6b3c=(_0x2eb7ad=this[_0x10dfea(0x47a)][_0x10dfea(0x368)](this['unitID'],_0xf4daf6))==null?void 0x0:_0x2eb7ad[_0x10dfea(0x2fb)])!=null?_0x3f6b3c:_0x10dfea(0x1e3),'range':this[_0x10dfea(0x4c9)](_0x3aadff,_0x32ac5b),'sheetID':_0x3aadff,'color':this[_0x10dfea(0x352)][_0x10dfea(0x42c)](_0xf4daf6),'selection':_0x5015a5},_0x488f3d=this[_0x10dfea(0x3df)];_0x488f3d[_0x10dfea(0x485)](_0xf4daf6,_0x3cbd06),this[_0x10dfea(0x2b5)][_0x10dfea(0x1df)](_0x488f3d);}['_onCursorDelete'](_0x11a339){const _0x2d91bf=_0x52ce28,{memberID:_0x23aba7}=_0x11a339[_0x2d91bf(0x527)],_0x201805=this[_0x2d91bf(0x3df)];_0x201805[_0x2d91bf(0x3ba)](_0x23aba7),this[_0x2d91bf(0x2b5)][_0x2d91bf(0x1df)](_0x201805);}[_0x52ce28(0x4c9)](_0x1f9517,_0x41294c){const _0x27fc7f=_0x52ce28;var _0x153f74,_0x1f76a4;const _0x709348=(_0x1f76a4=(_0x153f74=this['_univerInstanceService'][_0x27fc7f(0x487)](this[_0x27fc7f(0x261)]))==null?void 0x0:_0x153f74[_0x27fc7f(0x386)](_0x1f9517))==null?void 0x0:_0x1f76a4[_0x27fc7f(0x225)]();return(_0x709348==null?void 0x0:_0x709348[_0x27fc7f(0x48b)](_0x37c68f=>_0x514eda[_0x27fc7f(0x31e)][_0x27fc7f(0x1f8)](_0x37c68f,_0x41294c)))||_0x41294c;}[_0x52ce28(0x50f)](){const _0x45e96e=_0x52ce28,_0x520aee=new _0x514eda[(_0x45e96e(0x3d0))](),_0x513d02=_0x4ac512(),_0x57b20e=()=>{const _0xbd517b=_0x45e96e;_0x520aee['dispose']();const _0x47872c=(_0x138b35,_0x3d66dc,_0x359d78,_0x588189)=>{const _0x24920a=_0x2d6c;let _0x318500=[];switch(_0x138b35['id']){case _0x12c1fe[_0x24920a(0x279)][_0x24920a(0x3fe)]:{_0x318500=_0x12c1fe[_0x24920a(0x40a)](_0x138b35,_0x588189);break;}case _0x12c1fe[_0x24920a(0x279)]['DeleteRangeMoveUpCommandId']:{_0x318500=_0x12c1fe[_0x24920a(0x373)](_0x138b35,_0x588189);break;}case _0x12c1fe[_0x24920a(0x279)][_0x24920a(0x51a)]:{_0x318500=_0x12c1fe[_0x24920a(0x2fe)](_0x138b35,_0x588189);break;}case _0x12c1fe[_0x24920a(0x279)][_0x24920a(0x429)]:{_0x318500=_0x12c1fe[_0x24920a(0x4e2)](_0x138b35,_0x588189);break;}case _0x12c1fe['EffectRefRangId']['InsertRangeMoveRightCommandId']:{_0x318500=_0x12c1fe['handleInsertRangeMoveRight'](_0x138b35,_0x588189);break;}case _0x12c1fe['EffectRefRangId'][_0x24920a(0x4c3)]:{_0x318500=_0x12c1fe['handleInsertRow'](_0x138b35,_0x588189);break;}case _0x12c1fe[_0x24920a(0x279)][_0x24920a(0x19d)]:{_0x318500=_0x12c1fe['handleMoveRange'](_0x138b35,_0x588189);break;}case _0x12c1fe['EffectRefRangId'][_0x24920a(0x3f2)]:{_0x318500=_0x12c1fe[_0x24920a(0x407)](_0x138b35,_0x588189);break;}case _0x12c1fe[_0x24920a(0x279)][_0x24920a(0x389)]:{_0x318500=_0x12c1fe['handleIRemoveRow'](_0x138b35,_0x588189);break;}}const _0x53a62b=_0x12c1fe[_0x24920a(0x344)](_0x318500,_0x588189),_0x4b2281=this[_0x24920a(0x3df)][_0x24920a(0x4d3)](_0x3d66dc);if(_0x4b2281&&_0x53a62b){const _0x12d7fe={..._0x4b2281,'range':_0x53a62b};this['cursorInfo'][_0x24920a(0x485)](_0x3d66dc,_0x12d7fe),_0x513d02(()=>{const _0x1d03bc=_0x24920a,_0x25cebb=this[_0x1d03bc(0x343)]['registerRefRange'](_0x53a62b,_0x4d8326=>(_0x25cebb[_0x1d03bc(0x374)](),_0x47872c(_0x4d8326,_0x3d66dc,_0x359d78,_0x53a62b)));_0x520aee[_0x1d03bc(0x24c)](_0x25cebb);});}return{'redos':[],'undos':[]};};this[_0xbd517b(0x3df)][_0xbd517b(0x317)]((_0x92e27b,_0x5d55ec)=>{const _0x5c9b1b=_0xbd517b,{range:_0x3b72d8,sheetID:_0x519458}=_0x92e27b,_0x208f2d=this[_0x5c9b1b(0x343)][_0x5c9b1b(0x28a)](_0x3b72d8,_0x37d799=>(_0x208f2d[_0x5c9b1b(0x374)](),_0x47872c(_0x37d799,_0x5d55ec,_0x519458,_0x3b72d8)));_0x520aee['add'](_0x208f2d);});};this[_0x45e96e(0x3ad)](_0x514eda[_0x45e96e(0x477)](this[_0x45e96e(0x2b5)]['subscribe'](()=>{_0x57b20e();})));}[_0x52ce28(0x547)](){const _0x3731e9=_0x52ce28;var _0x3f6c07,_0x152983;if(this[_0x3731e9(0x18f)]=!0x0,((_0x3f6c07=this[_0x3731e9(0x49d)][_0x3731e9(0x285)]())==null?void 0x0:_0x3f6c07[_0x3731e9(0x2da)]())!==this[_0x3731e9(0x261)])return;const _0x35f71e=(_0x152983=this[_0x3731e9(0x43e)]['get'](_0x12c1fe[_0x3731e9(0x58d)])[_0x3731e9(0x2c7)]())==null?void 0x0:_0x152983[0x0],_0x4af5c7=this[_0x3731e9(0x49d)][_0x3731e9(0x391)](_0x514eda['UniverInstanceType']['UNIVER_SHEET'])[_0x3731e9(0x507)]();_0x35f71e&&_0x4af5c7&&this[_0x3731e9(0x276)](_0x4af5c7[_0x3731e9(0x59e)](),_0x35f71e);}[_0x52ce28(0x322)](){this['_online']=!0x1;}};_0x40905f=_0xea33c1([_0x12183e(0x2,_0x514eda[_0x52ce28(0x324)](_0x514eda[_0x52ce28(0x228)])),_0x12183e(0x3,_0x514eda[_0x52ce28(0x324)](_0x59b125)),_0x12183e(0x4,_0x514eda['Inject'](_0x5da513)),_0x12183e(0x5,_0x514eda[_0x52ce28(0x29d)]),_0x12183e(0x6,_0x514eda[_0x52ce28(0x289)]),_0x12183e(0x7,_0x514eda[_0x52ce28(0x324)](_0x12c1fe[_0x52ce28(0x40e)]))],_0x40905f);var _0x406df7=Object['defineProperty'],_0x3849f3=Object[_0x52ce28(0x493)],_0x5be56b=(_0x8258e5,_0x53feec,_0x1ee6c7,_0x343f78)=>{for(var _0x187590=_0x343f78>0x1?void 0x0:_0x343f78?_0x3849f3(_0x53feec,_0x1ee6c7):_0x53feec,_0x47bd44=_0x8258e5['length']-0x1,_0x85c7d;_0x47bd44>=0x0;_0x47bd44--)(_0x85c7d=_0x8258e5[_0x47bd44])&&(_0x187590=(_0x343f78?_0x85c7d(_0x53feec,_0x1ee6c7,_0x187590):_0x85c7d(_0x187590))||_0x187590);return _0x343f78&&_0x187590&&_0x406df7(_0x53feec,_0x1ee6c7,_0x187590),_0x187590;},_0x188979=(_0x47d60e,_0x9b557e)=>(_0x302361,_0x38e1ba)=>_0x9b557e(_0x302361,_0x38e1ba,_0x47d60e);let _0x1b49de=class extends _0x514eda[_0x52ce28(0x18e)]{constructor(_0x43922d,_0x5ec547,_0x17eb48){const _0xd08b9a=_0x52ce28;super(),_0x2406c5(this,_0xd08b9a(0x413),new Map()),_0x2406c5(this,'_entityInit$',new _0x2ca9ec[(_0xd08b9a(0x181))]()),(this[_0xd08b9a(0x49d)]=_0x43922d,this['_injector']=_0x5ec547,this[_0xd08b9a(0x479)]=_0x17eb48,this[_0xd08b9a(0x5a9)]());}[_0x52ce28(0x374)](){const _0xff6555=_0x52ce28;super[_0xff6555(0x374)](),this['_entityInit$'][_0xff6555(0x364)](),this[_0xff6555(0x413)][_0xff6555(0x317)](_0x3a6b3d=>_0x3a6b3d[_0xff6555(0x374)]());}[_0x52ce28(0x51b)](_0x1d2382){const _0x43f465=_0x52ce28;return this[_0x43f465(0x413)][_0x43f465(0x2ab)](_0x1d2382)?this[_0x43f465(0x413)][_0x43f465(0x4d3)](_0x1d2382)['cursorInfo$']:this[_0x43f465(0x534)][_0x43f465(0x2b9)](_0x2ca9ec[_0x43f465(0x56d)](_0x186df5=>_0x186df5[_0x43f465(0x261)]===_0x1d2382),_0x2ca9ec[_0x43f465(0x21e)](_0x4514eb=>_0x4514eb[_0x43f465(0x246)]));}['_init'](){const _0x59c6ee=_0x52ce28;this['_univerInstanceService'][_0x59c6ee(0x3f8)](_0x514eda[_0x59c6ee(0x1e0)][_0x59c6ee(0x1ac)])[_0x59c6ee(0x2b9)](_0x2ca9ec[_0x59c6ee(0x218)](this[_0x59c6ee(0x4af)]))['subscribe'](async _0x466e56=>{const _0x73d54e=_0x59c6ee,_0x524259=_0x466e56['getUnitId'](),_0x516ff6=await this[_0x73d54e(0x541)](_0x524259);this[_0x73d54e(0x534)][_0x73d54e(0x1df)](_0x516ff6),this[_0x73d54e(0x413)][_0x73d54e(0x485)](_0x524259,_0x516ff6);}),this[_0x59c6ee(0x49d)]['getTypeOfUnitAdded$'](_0x514eda[_0x59c6ee(0x1e0)]['UNIVER_DOC'])[_0x59c6ee(0x2b9)](_0x2ca9ec[_0x59c6ee(0x218)](this[_0x59c6ee(0x4af)]))[_0x59c6ee(0x2b9)](_0x2ca9ec[_0x59c6ee(0x56d)](_0xf8e231=>!_0xf8e231[_0x59c6ee(0x2da)]()['startsWith']('__')))['subscribe'](async _0x5b4d4c=>{const _0x4841f3=_0x59c6ee,_0x42721f=_0x5b4d4c[_0x4841f3(0x2da)](),_0x12782c=await this[_0x4841f3(0x2a7)](_0x42721f);this[_0x4841f3(0x534)][_0x4841f3(0x1df)](_0x12782c),this[_0x4841f3(0x413)]['set'](_0x42721f,_0x12782c);}),_0x2ca9ec[_0x59c6ee(0x52d)](this[_0x59c6ee(0x49d)]['getTypeOfUnitDisposed$'](_0x514eda[_0x59c6ee(0x1e0)][_0x59c6ee(0x34f)]),this[_0x59c6ee(0x49d)][_0x59c6ee(0x44e)](_0x514eda[_0x59c6ee(0x1e0)][_0x59c6ee(0x1ac)]))[_0x59c6ee(0x2b9)](_0x2ca9ec[_0x59c6ee(0x218)](this['dispose$']))[_0x59c6ee(0x1b3)](_0x41c0ee=>{const _0xda1309=_0x59c6ee,_0x5390da=_0x41c0ee['getUnitId'](),_0x39a662=this[_0xda1309(0x413)][_0xda1309(0x4d3)](_0x5390da);_0x39a662&&(_0x39a662[_0xda1309(0x374)](),this['_entities'][_0xda1309(0x3ba)](_0x5390da));});}async[_0x52ce28(0x541)](_0x1e2157){const _0x54dc6e=_0x52ce28,_0x3e3d8d=await this[_0x54dc6e(0x479)][_0x54dc6e(0x295)](_0x1e2157),_0x4aab7f=this[_0x54dc6e(0x43e)]['createInstance'](_0x40905f,_0x1e2157,_0x3e3d8d);return _0x4aab7f[_0x54dc6e(0x2cf)](),_0x4aab7f;}async[_0x52ce28(0x2a7)](_0x1ecbd2){const _0x9b4daf=_0x52ce28,_0x1a8e01=await this[_0x9b4daf(0x479)]['requireSession'](_0x1ecbd2),_0x537825=this[_0x9b4daf(0x43e)][_0x9b4daf(0x427)](_0x3c3c75,_0x1ecbd2,_0x1a8e01);return _0x537825[_0x9b4daf(0x2cf)](),_0x537825;}};_0x1b49de=_0x5be56b([_0x188979(0x0,_0x514eda['IUniverInstanceService']),_0x188979(0x1,_0x514eda[_0x52ce28(0x324)](_0x514eda[_0x52ce28(0x228)])),_0x188979(0x2,_0x514eda[_0x52ce28(0x324)](_0x2143a3[_0x52ce28(0x3f3)]))],_0x1b49de);const _0x53d5af=0x14,_0x27d4a1=0xc8,_0x163a7b=0x4,_0x460e6c=0x5;function _0x43a1fa(_0xe3e06f,_0x399f3b){const _0x2daa84=_0x52ce28;let {radius:_0x316d79,width:_0x29a995,height:_0x227b3e}=_0x399f3b;_0x316d79=_0x316d79!=null?_0x316d79:0x0,_0x29a995=_0x29a995!=null?_0x29a995:0x1e,_0x227b3e=_0x227b3e!=null?_0x227b3e:0x1e;let _0xe2e331=0x0,_0x34e835=0x0,_0x1f9c8d=0x0;_0xe2e331=_0x34e835=_0x1f9c8d=Math[_0x2daa84(0x56e)](_0x316d79,_0x29a995/0x2,_0x227b3e/0x2),_0xe3e06f['beginPath'](),_0xe3e06f[_0x2daa84(0x5a4)](_0xe2e331,0x0),_0xe3e06f[_0x2daa84(0x36a)](_0x29a995-_0x34e835,0x0),_0xe3e06f[_0x2daa84(0x355)](_0x29a995-_0x34e835,_0x34e835,_0x34e835,Math['PI']*0x3/0x2,0x0,!0x1),_0xe3e06f[_0x2daa84(0x36a)](_0x29a995,_0x227b3e-_0x1f9c8d),_0xe3e06f['arc'](_0x29a995-_0x1f9c8d,_0x227b3e-_0x1f9c8d,_0x1f9c8d,0x0,Math['PI']/0x2,!0x1),_0xe3e06f[_0x2daa84(0x36a)](0x0,_0x227b3e),_0xe3e06f[_0x2daa84(0x36a)](0x0,_0xe2e331),_0xe3e06f['arc'](_0xe2e331,_0xe2e331,_0xe2e331,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0xe3e06f[_0x2daa84(0x2ee)](),_0x399f3b[_0x2daa84(0x21c)]&&(_0xe3e06f[_0x2daa84(0x3ca)](),_0xe3e06f[_0x2daa84(0x551)]=_0x399f3b[_0x2daa84(0x21c)],_0x399f3b[_0x2daa84(0x528)]===_0x2daa84(0x2cd)?_0xe3e06f['fill']('evenodd'):_0xe3e06f[_0x2daa84(0x21c)](),_0xe3e06f[_0x2daa84(0x210)]());}class _0x9019d8 extends _0x29b5d0['Shape']{constructor(_0x5e35d1,_0x213ff1){const _0x1864f6=_0x52ce28;super(_0x5e35d1,_0x213ff1),_0x2406c5(this,'color'),_0x2406c5(this,_0x1864f6(0x54d)),(this[_0x1864f6(0x4db)]=_0x213ff1==null?void 0x0:_0x213ff1[_0x1864f6(0x4db)],this[_0x1864f6(0x54d)]=_0x213ff1==null?void 0x0:_0x213ff1[_0x1864f6(0x54d)]);}static[_0x52ce28(0x4ae)](_0x1d860e,_0x404b77){const _0xcb9afc=_0x52ce28,{text:_0x50a0f1,color:_0x17326b}=_0x404b77;_0x1d860e[_0xcb9afc(0x3ca)](),_0x1d860e[_0xcb9afc(0x3d2)]=_0xcb9afc(0x1bc);const _0x246e24=_0x1d860e['measureText'](_0x50a0f1)[_0xcb9afc(0x393)],_0x24dae1=Math['min'](_0x246e24+0x2*_0x163a7b,_0x27d4a1);_0x43a1fa(_0x1d860e,{'height':_0x53d5af,'radius':0x4,'width':_0x24dae1,'fill':_0x17326b,'evented':!0x1}),_0x1d860e[_0xcb9afc(0x551)]=_0xcb9afc(0x2f5);const _0x364a28=_0x163a7b,_0x215d61=_0x53d5af-_0x460e6c,_0x4333e9=_0x27d4a1-0x2*_0x163a7b;if(_0x246e24>_0x4333e9){let _0xec51f4='',_0x429d15=0x0;for(const _0x47a04b of _0x50a0f1){const _0x48e1b9=_0x1d860e['measureText'](_0x47a04b)[_0xcb9afc(0x393)];if(_0x429d15+_0x48e1b9<=_0x4333e9-_0x1d860e[_0xcb9afc(0x185)]('...')[_0xcb9afc(0x393)])_0xec51f4+=_0x47a04b,_0x429d15+=_0x48e1b9;else{_0xec51f4+=_0xcb9afc(0x544);break;}}_0x1d860e[_0xcb9afc(0x460)](_0xec51f4,_0x364a28,_0x215d61);}else _0x1d860e['fillText'](_0x50a0f1,_0x364a28,_0x215d61);_0x1d860e[_0xcb9afc(0x210)]();}[_0x52ce28(0x197)](_0x2acfad){const _0x3bcd47=_0x52ce28;_0x9019d8[_0x3bcd47(0x4ae)](_0x2acfad,this);}}const _0x379aed=_0x52ce28(0x2c5),_0x105c8e=_0x52ce28(0x299),_0x2b13b8=_0x52ce28(0x54b),_0x1f2bad=0x6,_0x2140c6=1.5,_0x222dd9=0x4,_0x552f08=1.5,_0x14b4af='rgba(255,\x20255,\x20255,\x200.01)';class _0x18a977{constructor(_0x3d94b9,_0x283070,_0x25ea66,_0xc3a72f){const _0x50d60a=_0x52ce28;_0x2406c5(this,_0x50d60a(0x221),[]),_0x2406c5(this,_0x50d60a(0x1cf),null),_0x2406c5(this,_0x50d60a(0x3cd),null),_0x2406c5(this,_0x50d60a(0x3c5),null),_0x2406c5(this,'_hideTimer',null),_0x2406c5(this,_0x50d60a(0x476),null),(this['_cursor']=_0x3d94b9,this[_0x50d60a(0x37d)]=_0x283070,this[_0x50d60a(0x30a)]=_0x25ea66,this[_0x50d60a(0x422)]=_0xc3a72f,this[_0x50d60a(0x3ed)]());}set[_0x52ce28(0x32c)](_0x30e67b){const _0x57f6a0=_0x52ce28;_0x30e67b?(this[_0x57f6a0(0x3c5)]&&this['_anchorDot'][_0x57f6a0(0x405)](),this[_0x57f6a0(0x3cd)]&&this[_0x57f6a0(0x3cd)][_0x57f6a0(0x2f9)]()):(this[_0x57f6a0(0x3c5)]&&this[_0x57f6a0(0x3c5)][_0x57f6a0(0x2f9)](),this[_0x57f6a0(0x3cd)]&&this[_0x57f6a0(0x3cd)][_0x57f6a0(0x405)]());}[_0x52ce28(0x374)](){const _0x479a15=_0x52ce28;for(const _0x9d3c1c of this[_0x479a15(0x221)])_0x9d3c1c[_0x479a15(0x374)]();this['_textBubble']&&this[_0x479a15(0x3cd)][_0x479a15(0x374)](),this[_0x479a15(0x3c5)]&&this[_0x479a15(0x3c5)][_0x479a15(0x374)](),this[_0x479a15(0x1cf)]&&this['_anchor'][_0x479a15(0x374)](),this[_0x479a15(0x476)]&&this[_0x479a15(0x476)]();}['_render'](){const _0x49c1a1=_0x52ce28;var _0x331eb0;const {_docSkeleton:_0x1d0a00,_document:_0x4cbc3a}=this,{color:_0x1a7a4a,name:_0x53eb44,ranges:_0x2d7d05}=this[_0x49c1a1(0x20b)],_0x31e50c=_0x4cbc3a[_0x49c1a1(0x22c)](),{docsLeft:_0x206bae,docsTop:_0x5bc048}=_0x31e50c,_0x21e133=new _0x393ad9[(_0x49c1a1(0x1eb))](_0x31e50c,_0x1d0a00);for(const {startOffset:_0x342ea9,endOffset:_0x2bd6f9,collapsed:_0x368286,isActive:_0x297203}of _0x2d7d05){const _0x51ded7=_0x1d0a00['findNodePositionByCharIndex'](_0x342ea9),_0x4d27f8=_0x1d0a00['findNodePositionByCharIndex'](_0x2bd6f9);if(_0x297203){const {contentBoxPointGroup:_0x496cdf}=_0x21e133['getRangePointData'](_0x4d27f8,_0x4d27f8);if(_0x496cdf[_0x49c1a1(0x47c)]===0x0)continue;this[_0x49c1a1(0x359)](_0x1a7a4a,_0x496cdf,_0x206bae,_0x5bc048,_0x53eb44),this[_0x49c1a1(0x476)]=this[_0x49c1a1(0x4cc)]();}if(!_0x368286&&_0x51ded7&&_0x4d27f8){if(_0x393ad9[_0x49c1a1(0x437)](_0x51ded7,_0x4d27f8)){const _0x19168c=new _0x393ad9[(_0x49c1a1(0x4e6))](_0x31e50c,_0x1d0a00),{pointGroup:_0x506807}=(_0x331eb0=_0x19168c[_0x49c1a1(0x561)](_0x51ded7,_0x4d27f8))!=null?_0x331eb0:{};if(_0x506807==null||_0x506807[_0x49c1a1(0x47c)]===0x0)continue;this[_0x49c1a1(0x533)](_0x1a7a4a,_0x506807,_0x206bae,_0x5bc048);}else{const {contentBoxPointGroup:_0x1f5952}=_0x21e133['getRangePointData'](_0x51ded7,_0x4d27f8);if(_0x1f5952['length']===0x0)continue;this[_0x49c1a1(0x254)](_0x1a7a4a,_0x1f5952,_0x206bae,_0x5bc048);}}}}[_0x52ce28(0x359)](_0x3db9d1,_0x30a8c2,_0x517835,_0x3172c4,_0x36b567){const _0x532de2=_0x52ce28,_0x2e1ce8=this[_0x532de2(0x21a)](_0x30a8c2),{left:_0x91892a,top:_0x32c379,height:_0x38d9d7}=_0x2e1ce8,_0x458c40=this[_0x532de2(0x2b2)](),_0x18d820=_0x552f08/_0x458c40,_0x143d05=new _0x29b5d0['Rect'](_0x379aed+_0x514eda[_0x532de2(0x383)][_0x532de2(0x432)](_0x1f2bad),{'left':_0x91892a+_0x517835-_0x18d820,'top':_0x32c379+_0x3172c4,'height':_0x38d9d7,'width':_0x2140c6,'fill':_0x3db9d1||_0x29b5d0[_0x532de2(0x521)](_0x514eda[_0x532de2(0x549)][_0x532de2(0x3bb)],0x0),'strokeWidth':_0x18d820,'stroke':_0x14b4af,'evented':!0x0});this[_0x532de2(0x1cf)]=_0x143d05,this[_0x532de2(0x37d)]['addObject'](_0x143d05,_0x393ad9[_0x532de2(0x20f)]);const _0x3bb141=new _0x29b5d0[(_0x532de2(0x41c))](_0x379aed+_0x514eda[_0x532de2(0x383)][_0x532de2(0x432)](_0x1f2bad),{'left':_0x91892a+_0x517835-_0x18d820,'top':_0x32c379+_0x3172c4-_0x222dd9/0x2,'height':_0x222dd9,'width':_0x222dd9,'fill':_0x3db9d1||_0x29b5d0[_0x532de2(0x521)](_0x514eda[_0x532de2(0x549)]['black'],0x0),'strokeWidth':0x0,'stroke':_0x3db9d1||_0x29b5d0[_0x532de2(0x521)](_0x514eda[_0x532de2(0x549)][_0x532de2(0x3bb)],0x0),'evented':!0x1});this[_0x532de2(0x3c5)]=_0x3bb141,this['_scene']['addObject'](_0x3bb141,_0x393ad9[_0x532de2(0x20f)]);const _0x337b73=new _0x9019d8(_0x379aed+_0x514eda[_0x532de2(0x383)][_0x532de2(0x432)](_0x1f2bad),{'left':_0x91892a+_0x517835-_0x18d820,'top':_0x32c379+_0x3172c4-_0x53d5af,'text':_0x36b567,'color':_0x3db9d1});this[_0x532de2(0x3cd)]=_0x337b73,this['_scene'][_0x532de2(0x574)](_0x337b73,_0x393ad9[_0x532de2(0x20f)]),this[_0x532de2(0x32c)]=!0x1;}['_handleHover'](){const _0x4c39bb=_0x52ce28,_0x5bd770=this[_0x4c39bb(0x1cf)][_0x4c39bb(0x3b4)]['subscribeEvent'](()=>{const _0x27f225=_0x4c39bb;this[_0x27f225(0x32c)]=!0x0;}),_0x355f7d=this['_anchor']['onPointerLeave$'][_0x4c39bb(0x532)](()=>{const _0x3b6375=_0x4c39bb;this[_0x3b6375(0x1d1)]&&clearTimeout(this[_0x3b6375(0x1d1)]),this[_0x3b6375(0x1d1)]=setTimeout(()=>{const _0x13be03=_0x3b6375;this[_0x13be03(0x32c)]=!0x1;},0x7d0);});return()=>{const _0x31d919=_0x4c39bb;_0x5bd770[_0x31d919(0x1dd)](),_0x355f7d[_0x31d919(0x1dd)]();};}['_drawTextRange'](_0xb6c49a,_0x20d4e3,_0x16646b,_0x1c78c0){const _0xaf17fc=_0x52ce28,_0x1c45b2=new _0x514eda[(_0xaf17fc(0x272))](_0xb6c49a)['setAlpha'](0.2)[_0xaf17fc(0x1ca)](),_0x5a2071=new _0x29b5d0[(_0xaf17fc(0x308))](_0x105c8e+_0x514eda[_0xaf17fc(0x383)][_0xaf17fc(0x432)](_0x1f2bad),{'pointsGroup':_0x20d4e3,'fill':_0x1c45b2||_0x29b5d0[_0xaf17fc(0x521)](_0x514eda['COLORS']['black'],0.2),'left':_0x16646b,'top':_0x1c78c0,'evented':!0x1,'debounceParentDirty':!0x1});this['_shapes'][_0xaf17fc(0x47b)](_0x5a2071),this['_scene'][_0xaf17fc(0x574)](_0x5a2071,_0x393ad9[_0xaf17fc(0x20f)]);}[_0x52ce28(0x533)](_0x5add79,_0x47e703,_0x73f4f1,_0x23e8b0){const _0x5e908f=_0x52ce28,_0x302f14=new _0x514eda[(_0x5e908f(0x272))](_0x5add79)[_0x5e908f(0x269)](0.2)[_0x5e908f(0x1ca)](),_0x1fb216=new _0x29b5d0[(_0x5e908f(0x308))](_0x2b13b8+_0x514eda[_0x5e908f(0x383)]['generateRandomId'](_0x1f2bad),{'pointsGroup':_0x47e703,'fill':_0x302f14||_0x29b5d0['getColor'](_0x514eda[_0x5e908f(0x549)]['black'],0.2),'left':_0x73f4f1,'top':_0x23e8b0,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x5e908f(0x221)][_0x5e908f(0x47b)](_0x1fb216),this['_scene'][_0x5e908f(0x574)](_0x1fb216,_0x393ad9['TEXT_RANGE_LAYER_INDEX']);}['_getAnchorBounding'](_0x2b4075){const _0xcb9acb=_0x2b4075[0x0],_0x5ce4e4=_0xcb9acb[0x0],_0x237f2f=_0xcb9acb[0x2],{x:_0x1b1386,y:_0x5a5b35}=_0x5ce4e4,{x:_0x47b3ef,y:_0x2ef16f}=_0x237f2f;return{'left':_0x1b1386,'top':_0x5a5b35,'width':_0x47b3ef-_0x1b1386,'height':_0x2ef16f-_0x5a5b35};}[_0x52ce28(0x2b2)](){const _0x3deeda=_0x52ce28,{scaleX:_0x485d7b,scaleY:_0x40ee58}=this[_0x3deeda(0x37d)][_0x3deeda(0x29a)]();return Math[_0x3deeda(0x1ff)](_0x485d7b,_0x40ee58);}}var _0x4eca9f=Object[_0x52ce28(0x1fd)],_0x324c0a=Object[_0x52ce28(0x493)],_0x2ec639=(_0x3051eb,_0x250f10,_0x45557a,_0x994b7c)=>{const _0x60a4ea=_0x52ce28;for(var _0xb4a9a4=_0x994b7c>0x1?void 0x0:_0x994b7c?_0x324c0a(_0x250f10,_0x45557a):_0x250f10,_0x24f830=_0x3051eb[_0x60a4ea(0x47c)]-0x1,_0x81c430;_0x24f830>=0x0;_0x24f830--)(_0x81c430=_0x3051eb[_0x24f830])&&(_0xb4a9a4=(_0x994b7c?_0x81c430(_0x250f10,_0x45557a,_0xb4a9a4):_0x81c430(_0xb4a9a4))||_0xb4a9a4);return _0x994b7c&&_0xb4a9a4&&_0x4eca9f(_0x250f10,_0x45557a,_0xb4a9a4),_0xb4a9a4;},_0x6994e6=(_0x1f5a8a,_0x4c29aa)=>(_0xf90457,_0x35383f)=>_0x4c29aa(_0xf90457,_0x35383f,_0x1f5a8a);let _0x238fa5=class extends _0x514eda[_0x52ce28(0x18e)]{constructor(_0x4e903f,_0x369751,_0x493c15,_0x783c13,_0x4102a1){const _0x4e305e=_0x52ce28;super(),_0x2406c5(this,_0x4e305e(0x22d),[]),_0x2406c5(this,_0x4e305e(0x380),[]),(this[_0x4e305e(0x2c0)]=_0x4e903f,this[_0x4e305e(0x486)]=_0x369751,this[_0x4e305e(0x56c)]=_0x493c15,this[_0x4e305e(0x3a8)]=_0x783c13,this[_0x4e305e(0x1f0)]=_0x4102a1,this['_init']());}[_0x52ce28(0x5a9)](){const _0x531e6a=_0x52ce28,_0x15a0e5=this['_context'][_0x531e6a(0x384)],_0x4a3c0b=this[_0x531e6a(0x486)];this[_0x531e6a(0x3ad)](_0x2ca9ec['combineLatest']([this[_0x531e6a(0x56c)][_0x531e6a(0x51b)](_0x15a0e5),this[_0x531e6a(0x1f0)][_0x531e6a(0x4b5)]])[_0x531e6a(0x2b9)](_0x3757e3[_0x531e6a(0x287)](([_0x468295,_0x36552c])=>({'skeleton':_0x4a3c0b[_0x531e6a(0x467)](),'cursors':[..._0x468295[_0x531e6a(0x418)]()]['flatMap'](_0x3bc629=>({..._0x3bc629,'color':_0x36552c[_0x3bc629[_0x531e6a(0x4db)]]}))})))[_0x531e6a(0x1b3)](_0x50cc62=>{const _0x59c2d9=_0x531e6a;if(this[_0x59c2d9(0x36d)](),_0x50cc62){const {skeleton:_0x3c7450,cursors:_0x2f3deb}=_0x50cc62;this['_updateCollabCursors'](_0x3c7450,_0x2f3deb);}})),this[_0x531e6a(0x372)](),this[_0x531e6a(0x2f7)]();}[_0x52ce28(0x48c)](_0x2812dc,_0x376392){const _0x318be2=_0x52ce28,{scene:_0x541b32,mainComponent:_0x1c66d7}=this[_0x318be2(0x2c0)],_0x3aa952=_0x376392[_0x318be2(0x287)](_0x251a03=>new _0x18a977(_0x251a03,_0x541b32,_0x2812dc,_0x1c66d7));this[_0x318be2(0x22d)]=_0x3aa952,this[_0x318be2(0x380)]=_0x376392;}[_0x52ce28(0x312)](){const _0x5c939f=_0x52ce28;this[_0x5c939f(0x36d)]();const {scene:_0x6e1f4,mainComponent:_0x5e509f}=this[_0x5c939f(0x2c0)],_0x139b70=this[_0x5c939f(0x486)][_0x5c939f(0x467)](),_0x4ea949=this[_0x5c939f(0x380)][_0x5c939f(0x287)](_0x3e98a1=>new _0x18a977(_0x3e98a1,_0x6e1f4,_0x139b70,_0x5e509f));this[_0x5c939f(0x22d)]=_0x4ea949;}['_removeCollabCursors'](){const _0x2e001a=_0x52ce28;this[_0x2e001a(0x22d)][_0x2e001a(0x317)](_0x55ffcd=>_0x55ffcd['dispose']()),this[_0x2e001a(0x22d)]=[];}[_0x52ce28(0x2f7)](){const _0x4dfe09=_0x52ce28,_0x2256d7=[_0x393ad9[_0x4dfe09(0x341)]['id']];this['disposeWithMe'](this[_0x4dfe09(0x3a8)][_0x4dfe09(0x2ca)](_0x1a3118=>{const _0x688f2c=_0x4dfe09;_0x2256d7['includes'](_0x1a3118['id'])&&_0x1a3118['params'][_0x688f2c(0x384)]===this[_0x688f2c(0x2c0)][_0x688f2c(0x384)]&&this[_0x688f2c(0x312)]();}));}[_0x52ce28(0x372)](){const _0x3fa4b1=_0x52ce28;this[_0x3fa4b1(0x3ad)](_0x514eda[_0x3fa4b1(0x545)](this['_context'][_0x3fa4b1(0x4a6)][_0x3fa4b1(0x313)])[_0x3fa4b1(0x2b9)](_0x3757e3[_0x3fa4b1(0x56d)](_0x3e8bb5=>_0x3e8bb5['type']===_0x29b5d0[_0x3fa4b1(0x423)][_0x3fa4b1(0x240)]),_0x3757e3['throttleTime'](0x10))[_0x3fa4b1(0x1b3)](()=>{const _0x165149=_0x3fa4b1;this[_0x165149(0x312)]();}));}};_0x238fa5=_0x2ec639([_0x6994e6(0x1,_0x514eda[_0x52ce28(0x324)](_0x26ab50[_0x52ce28(0x3e5)])),_0x6994e6(0x2,_0x514eda[_0x52ce28(0x324)](_0x1b49de)),_0x6994e6(0x3,_0x514eda[_0x52ce28(0x289)]),_0x6994e6(0x4,_0x514eda[_0x52ce28(0x324)](_0x514eda[_0x52ce28(0x2a1)]))],_0x238fa5);const _0x4a4dd6=0x1,_0x5d8d14=1.5;class _0x4b13ad extends _0x29b5d0[_0x52ce28(0x32a)]{constructor(_0x1226ce,_0x65a098){const _0xc5756b=_0x52ce28;super(_0x1226ce,_0x65a098),_0x2406c5(this,_0xc5756b(0x44c)),_0x2406c5(this,_0xc5756b(0x508),!0x1),_0x2406c5(this,_0xc5756b(0x32b)),_0x2406c5(this,_0xc5756b(0x53d),''),_0x2406c5(this,'_labelPosition',_0xc5756b(0x188)),_0x2406c5(this,_0xc5756b(0x54f)),(_0x65a098&&this['setShapeProps'](_0x65a098),this[_0xc5756b(0x3b4)]['subscribeEvent'](()=>this[_0xc5756b(0x420)]({'hovered':!0x0})),this['onPointerLeave$'][_0xc5756b(0x532)](()=>this['setShapeProps']({'hovered':!0x1})));}[_0x52ce28(0x420)](_0x171f8e){const _0x387c6b=_0x52ce28;var _0x48bb98,_0x466c2e,_0x138300,_0x1abc41,_0x5c6145,_0x446fe6;this[_0x387c6b(0x44c)]=(_0x48bb98=_0x171f8e[_0x387c6b(0x4db)])!=null?_0x48bb98:this['_color'],this[_0x387c6b(0x508)]=(_0x466c2e=_0x171f8e[_0x387c6b(0x4f8)])!=null?_0x466c2e:this[_0x387c6b(0x508)],this[_0x387c6b(0x32b)]=(_0x138300=_0x171f8e[_0x387c6b(0x2d8)])!=null?_0x138300:this[_0x387c6b(0x32b)],this[_0x387c6b(0x53d)]=(_0x1abc41=_0x171f8e[_0x387c6b(0x2fb)])!=null?_0x1abc41:this[_0x387c6b(0x53d)],this[_0x387c6b(0x241)]=(_0x5c6145=_0x171f8e[_0x387c6b(0x24e)])!=null?_0x5c6145:this['_labelPosition'],this[_0x387c6b(0x54f)]=(_0x446fe6=_0x171f8e['backgroundColor'])!=null?_0x446fe6:this['_backgroundColor'],this[_0x387c6b(0x2aa)]({'width':_0x171f8e[_0x387c6b(0x393)],'height':_0x171f8e[_0x387c6b(0x3c6)]});}[_0x52ce28(0x301)](_0x9dcf51){const _0x42484a=_0x52ce28,{row:_0x225996,column:_0x23b97e}=_0x9dcf51;if(_0x225996>=this[_0x42484a(0x32b)]['startRow']&&_0x225996<=this[_0x42484a(0x32b)]['endRow']&&_0x23b97e>=this[_0x42484a(0x32b)][_0x42484a(0x251)]&&_0x23b97e<=this['_range'][_0x42484a(0x4d5)]){this[_0x42484a(0x420)]({'hovered':!0x0});return;}this['setShapeProps']({'hovered':!0x1});}[_0x52ce28(0x596)](_0x411ecd){return!0x1;}[_0x52ce28(0x197)](_0x3300b1){const _0x194429=_0x52ce28;_0x29b5d0['Rect'][_0x194429(0x4ae)](_0x3300b1,{'width':this[_0x194429(0x393)],'height':this[_0x194429(0x3c6)],'strokeWidth':_0x5d8d14,'stroke':this[_0x194429(0x44c)],'evented':!0x1,'fill':this[_0x194429(0x54f)]}),this[_0x194429(0x508)]&&(_0x3300b1[_0x194429(0x3ca)](),_0x3300b1[_0x194429(0x40d)](0x1,0x0,0x0,0x1,this[_0x194429(0x393)],this[_0x194429(0x241)]===_0x194429(0x17a)?0x0:-_0x53d5af),_0x9019d8[_0x194429(0x4ae)](_0x3300b1,{'text':this['_name'],'color':this[_0x194429(0x44c)]}),_0x3300b1['restore']());}}var _0x4d0b74=Object[_0x52ce28(0x1fd)],_0x5cb31f=Object[_0x52ce28(0x493)],_0x25c286=(_0x277ae0,_0x1aaa20,_0x37622f,_0x205ffd)=>{const _0x3e227e=_0x52ce28;for(var _0x2dc756=_0x205ffd>0x1?void 0x0:_0x205ffd?_0x5cb31f(_0x1aaa20,_0x37622f):_0x1aaa20,_0x25fae2=_0x277ae0[_0x3e227e(0x47c)]-0x1,_0x553c18;_0x25fae2>=0x0;_0x25fae2--)(_0x553c18=_0x277ae0[_0x25fae2])&&(_0x2dc756=(_0x205ffd?_0x553c18(_0x1aaa20,_0x37622f,_0x2dc756):_0x553c18(_0x2dc756))||_0x2dc756);return _0x205ffd&&_0x2dc756&&_0x4d0b74(_0x1aaa20,_0x37622f,_0x2dc756),_0x2dc756;},_0x31d59f=(_0x4254a0,_0x5536d8)=>(_0x57f740,_0x2e9d09)=>_0x5536d8(_0x57f740,_0x2e9d09,_0x4254a0);const _0x539e76=0x1389;let _0x34520c=class extends _0x514eda['RxDisposable']{constructor(_0x48d822,_0x294f28,_0x3d06c5,_0x56527c){const _0x2839f7=_0x52ce28;super(),_0x2406c5(this,_0x2839f7(0x380),new Set()),_0x2406c5(this,_0x2839f7(0x25e),null),(this[_0x2839f7(0x2c0)]=_0x48d822,this['_sheetSkeletonManagerService']=_0x294f28,this[_0x2839f7(0x56c)]=_0x3d06c5,this['_themeService']=_0x56527c,this[_0x2839f7(0x5a9)]());}[_0x52ce28(0x5a9)](){const _0x53f84a=_0x52ce28;this[_0x53f84a(0x54c)][_0x53f84a(0x4ed)][_0x53f84a(0x2b9)](_0x3757e3[_0x53f84a(0x218)](this[_0x53f84a(0x4af)]),_0x3757e3[_0x53f84a(0x21e)](_0x5d21f1=>{const _0x19d32e=_0x53f84a;if(_0x5d21f1){const _0x3114c=_0x5d21f1[_0x19d32e(0x2d2)];return _0x2ca9ec[_0x19d32e(0x349)](this[_0x19d32e(0x56c)]['getCollabCursors$'](this[_0x19d32e(0x2c0)][_0x19d32e(0x384)]),this[_0x19d32e(0x1f0)]['currentTheme$'])[_0x19d32e(0x2b9)](_0x3757e3[_0x19d32e(0x287)](([_0x2c2ada,_0x3c1045])=>{const _0x5adcd4=_0x19d32e,_0xca5bfa=new Map();return _0x2c2ada[_0x5adcd4(0x317)]((_0x2116f4,_0x1fe361)=>{const _0x47a9ae=_0x5adcd4;if(_0x2116f4['sheetID']===_0x3114c){const _0x16d4ad={..._0x2116f4};_0x16d4ad[_0x47a9ae(0x4db)]=_0x3c1045[_0x2116f4['color']],_0xca5bfa['set'](_0x1fe361,_0x16d4ad);}}),{'skeleton':_0x5d21f1,'cursors':_0xca5bfa};}));}return _0x2ca9ec['of']({'skeleton':null,'cursors':new Map()});}))[_0x53f84a(0x1b3)](({skeleton:_0x10fb7e,cursors:_0x295e4f})=>{const _0x63763c=_0x53f84a;this['_removeCollabCursors'](),_0x10fb7e&&this[_0x63763c(0x48c)](_0x10fb7e,_0x295e4f);}),this[_0x53f84a(0x54c)]['currentSkeleton$']['subscribe'](_0x23ddf1=>{const _0x25e792=_0x53f84a;if(_0x23ddf1==null)return;const {skeleton:_0x1a040c}=_0x23ddf1,{scene:_0x20694a}=this['_context'];_0x20694a[_0x25e792(0x360)][_0x25e792(0x532)](_0x514eda['debounce'](_0x37b6ee=>{const _0x5129de=_0x25e792;var _0x1ba966,_0x108234;const {offsetX:_0x204887,offsetY:_0x4f0014}=_0x37b6ee,{x:_0x2cbc6e,y:_0x280902}=_0x20694a['getRelativeToViewportCoord'](_0x29b5d0[_0x5129de(0x27b)][_0x5129de(0x4c0)]([_0x204887,_0x4f0014])),{scaleX:_0x38eada,scaleY:_0x146f1b}=_0x20694a[_0x5129de(0x29a)](),_0x17c3e5=_0x20694a['getViewport'](_0x30c556[_0x5129de(0x1e4)][_0x5129de(0x2b7)]),_0x1be85b=_0x20694a[_0x5129de(0x23d)](_0x29b5d0[_0x5129de(0x27b)][_0x5129de(0x4c0)]([_0x2cbc6e,_0x280902]),_0x17c3e5),_0x259020=_0x1a040c['getCellPositionByOffset'](_0x204887,_0x4f0014,_0x38eada,_0x146f1b,_0x1be85b);((_0x1ba966=this[_0x5129de(0x25e)])==null?void 0x0:_0x1ba966[_0x5129de(0x56a)])===_0x259020[_0x5129de(0x56a)]&&((_0x108234=this[_0x5129de(0x25e)])==null?void 0x0:_0x108234[_0x5129de(0x403)])===_0x259020[_0x5129de(0x403)]||this[_0x5129de(0x380)][_0x5129de(0x317)](_0x3b2e90=>{const _0x36b7bd=_0x5129de;_0x3b2e90[_0x36b7bd(0x301)](_0x259020);});},0x64));});}['_updateCollabCursors'](_0xd0e66d,_0x252ed9){const _0x141d5b=_0x52ce28;var _0x460e19;const _0x397d38=(_0x460e19=this['_sheetSkeletonManagerService'][_0x141d5b(0x1fa)]())==null?void 0x0:_0x460e19[_0x141d5b(0x203)];if(!_0x397d38)return;const _0x52b8e7=this[_0x141d5b(0x484)]();if(!_0x52b8e7)return;this[_0x141d5b(0x380)][_0x141d5b(0x317)](_0x3bc6e9=>{_0x3bc6e9['makeDirty']();});const {scene:_0x42e6ee}=_0x52b8e7,_0x120cc0=_0x510da0(Array['from'](_0x252ed9[_0x141d5b(0x418)]()))[_0x141d5b(0x287)](_0x437ece=>{const _0x16807d=_0x141d5b,{color:_0x2ee3b9,range:_0x2a2995,name:_0x12f934,selection:_0x5486d6,sheetID:_0x48a341}=_0x437ece,{startColumn:_0x4753a6,startRow:_0xf745d1,endColumn:_0x7b64b9,endRow:_0x21bba4}=_0x2a2995,_0x49db9c=_0x30c556[_0x16807d(0x46e)](_0xf745d1,_0x4753a6,_0x42e6ee,_0x397d38),_0x41e7a3=_0x30c556[_0x16807d(0x46e)](_0x21bba4,_0x7b64b9,_0x42e6ee,_0x397d38),{columnHeaderHeightAndMarginTop:_0xd8de18}=_0x397d38,{startX:_0x131362,startY:_0x29d370}=_0x49db9c,{endX:_0x56ae30,endY:_0x4223c9}=_0x41e7a3,_0x2f8d4c=_0x56ae30-_0x131362,_0x9b4096=_0x4223c9-_0x29d370,_0x5f0da5={'labelPosition':_0x29d370-_0xd8de18>=_0x53d5af?_0x16807d(0x188):_0x16807d(0x17a),'sheetID':_0x48a341,'range':_0x2a2995,'color':_0x2ee3b9,'name':_0x12f934,'selection':_0x5486d6,'left':_0x131362,'top':_0x29d370,'width':_0x2f8d4c,'height':_0x9b4096,'evented':!0x1,'zIndex':_0x539e76};return new _0x4b13ad(_0x12f934,_0x5f0da5);});_0x42e6ee['addObjects'](_0x120cc0,_0x4a4dd6),this[_0x141d5b(0x380)]=new Set(_0x120cc0);}[_0x52ce28(0x36d)](){const _0x426834=_0x52ce28;var _0xd95a00;(_0xd95a00=this[_0x426834(0x380)])==null||_0xd95a00['forEach'](_0x3e4dd2=>_0x3e4dd2['dispose']());}['_getSheetObject'](){const _0x1abed8=_0x52ce28;return _0x30c556[_0x1abed8(0x554)](this[_0x1abed8(0x2c0)][_0x1abed8(0x388)],this[_0x1abed8(0x2c0)]);}};_0x34520c=_0x25c286([_0x31d59f(0x1,_0x514eda['Inject'](_0x30c556[_0x52ce28(0x4a2)])),_0x31d59f(0x2,_0x514eda[_0x52ce28(0x324)](_0x1b49de)),_0x31d59f(0x3,_0x514eda[_0x52ce28(0x324)](_0x514eda[_0x52ce28(0x2a1)]))],_0x34520c);function _0x510da0(_0x4ed5b0){const _0xbcba29=_0x52ce28,_0x336a93=new Map();return _0x4ed5b0[_0xbcba29(0x317)](_0x5bea67=>{const _0x1ac91f=_0xbcba29;if(_0x336a93[_0x1ac91f(0x2ab)](_0x5bea67[_0x1ac91f(0x49f)])){const _0x1fe845=_0x336a93[_0x1ac91f(0x4d3)](_0x5bea67[_0x1ac91f(0x49f)]);_0x1fe845[_0x1ac91f(0x2fb)]+=',\x20'+_0x5bea67['name'];}else _0x336a93[_0x1ac91f(0x485)](_0x5bea67['selection'],_0x5bea67);}),Array[_0xbcba29(0x265)](_0x336a93[_0xbcba29(0x418)]());}var _0x5603bb=function(){return _0x5603bb=Object['assign']||function(_0x495b85){const _0x3679c4=_0x2d6c;for(var _0x5dc8f3,_0x32ca11=0x1,_0x441009=arguments['length'];_0x32ca11<_0x441009;_0x32ca11++){_0x5dc8f3=arguments[_0x32ca11];for(var _0x3fe9c4 in _0x5dc8f3)Object[_0x3679c4(0x2df)][_0x3679c4(0x1cd)][_0x3679c4(0x1f3)](_0x5dc8f3,_0x3fe9c4)&&(_0x495b85[_0x3fe9c4]=_0x5dc8f3[_0x3fe9c4]);}return _0x495b85;},_0x5603bb['apply'](this,arguments);},_0x23d1c2=function(_0x29da3a,_0x237c9c){const _0x371d7d=_0x52ce28;var _0x3666bf={};for(var _0x2db9ea in _0x29da3a)Object['prototype'][_0x371d7d(0x1cd)]['call'](_0x29da3a,_0x2db9ea)&&_0x237c9c[_0x371d7d(0x244)](_0x2db9ea)<0x0&&(_0x3666bf[_0x2db9ea]=_0x29da3a[_0x2db9ea]);if(_0x29da3a!=null&&typeof Object[_0x371d7d(0x30f)]==_0x371d7d(0x55b)){for(var _0x5e5e78=0x0,_0x2db9ea=Object[_0x371d7d(0x30f)](_0x29da3a);_0x5e5e78<_0x2db9ea[_0x371d7d(0x47c)];_0x5e5e78++)_0x237c9c['indexOf'](_0x2db9ea[_0x5e5e78])<0x0&&Object[_0x371d7d(0x2df)]['propertyIsEnumerable'][_0x371d7d(0x1f3)](_0x29da3a,_0x2db9ea[_0x5e5e78])&&(_0x3666bf[_0x2db9ea[_0x5e5e78]]=_0x29da3a[_0x2db9ea[_0x5e5e78]]);}return _0x3666bf;},_0x2c50ee=_0x2a0491[_0x52ce28(0x4a3)](function(_0x3d2840,_0x85d016){const _0x24d4c6=_0x52ce28;var _0x45a862=_0x3d2840['icon'],_0x5018e7=_0x3d2840['id'],_0x5e01c9=_0x3d2840[_0x24d4c6(0x434)],_0x9c3130=_0x3d2840[_0x24d4c6(0x520)],_0xfeb05e=_0x23d1c2(_0x3d2840,[_0x24d4c6(0x2f1),'id',_0x24d4c6(0x434),'extend']),_0x423c44=_0x24d4c6(0x2f0)[_0x24d4c6(0x53e)](_0x5018e7,'\x20')[_0x24d4c6(0x53e)](_0x5e01c9||'')[_0x24d4c6(0x22b)](),_0x2ad45a=_0x2a0491['useRef']('_'['concat'](_0x4b6315()));return _0x36a693(_0x45a862,''[_0x24d4c6(0x53e)](_0x5018e7),{'defIds':_0x45a862[_0x24d4c6(0x2c9)],'idSuffix':_0x2ad45a[_0x24d4c6(0x36e)]},_0x5603bb({'ref':_0x85d016,'className':_0x423c44},_0xfeb05e),_0x9c3130);});function _0x36a693(_0x5a93e6,_0x3f4de6,_0x1d9539,_0x87304d,_0x503eaa){const _0x3e9636=_0x52ce28;return _0x2a0491[_0x3e9636(0x30d)](_0x5a93e6['tag'],_0x5603bb(_0x5603bb({'key':_0x3f4de6},_0x54dff4(_0x5a93e6,_0x1d9539,_0x503eaa)),_0x87304d),(_0x4e048c(_0x5a93e6,_0x1d9539)[_0x3e9636(0x2e1)]||[])[_0x3e9636(0x287)](function(_0x18f92c,_0x1d738d){const _0x13dc62=_0x3e9636;return _0x36a693(_0x18f92c,''[_0x13dc62(0x53e)](_0x3f4de6,'-')[_0x13dc62(0x53e)](_0x5a93e6[_0x13dc62(0x27f)],'-')['concat'](_0x1d738d),_0x1d9539,void 0x0,_0x503eaa);}));}function _0x54dff4(_0x13e32c,_0x4550fb,_0x28a73e){const _0x31fa62=_0x52ce28;var _0x36d30b=_0x5603bb({},_0x13e32c[_0x31fa62(0x40b)]);_0x28a73e!=null&&_0x28a73e[_0x31fa62(0x3e6)]&&_0x36d30b[_0x31fa62(0x21c)]===_0x31fa62(0x3e6)&&(_0x36d30b['fill']=_0x28a73e[_0x31fa62(0x3e6)]);var _0x50d0ba=_0x4550fb[_0x31fa62(0x2c9)];return!_0x50d0ba||_0x50d0ba[_0x31fa62(0x47c)]===0x0||(_0x13e32c[_0x31fa62(0x27f)]===_0x31fa62(0x4f1)&&_0x36d30b['xlink:href']&&(_0x36d30b[_0x31fa62(0x459)]=_0x36d30b[_0x31fa62(0x459)]+_0x4550fb[_0x31fa62(0x33b)]),Object[_0x31fa62(0x1c2)](_0x36d30b)['forEach'](function(_0x41407f){const _0x238304=_0x31fa62;var _0x38fc1d=_0x41407f[0x0],_0x14ac87=_0x41407f[0x1];typeof _0x14ac87==_0x238304(0x19c)&&(_0x36d30b[_0x38fc1d]=_0x14ac87[_0x238304(0x206)](/url\(#(.*)\)/,_0x238304(0x212)[_0x238304(0x53e)](_0x4550fb[_0x238304(0x33b)],')')));})),_0x36d30b;}function _0x4e048c(_0x271593,_0x3f9c6f){const _0x8307ce=_0x52ce28;var _0xd08263,_0x384c8f=_0x3f9c6f['defIds'];return!_0x384c8f||_0x384c8f[_0x8307ce(0x47c)]===0x0?_0x271593:_0x271593[_0x8307ce(0x27f)]===_0x8307ce(0x2a3)&&(!((_0xd08263=_0x271593['children'])===null||_0xd08263===void 0x0)&&_0xd08263['length'])?_0x5603bb(_0x5603bb({},_0x271593),{'children':_0x271593[_0x8307ce(0x2e1)][_0x8307ce(0x287)](function(_0x4c9d99){const _0x1632cc=_0x8307ce;return typeof _0x4c9d99[_0x1632cc(0x40b)]['id']=='string'&&_0x384c8f&&_0x384c8f[_0x1632cc(0x244)](_0x4c9d99[_0x1632cc(0x40b)]['id'])>-0x1?_0x5603bb(_0x5603bb({},_0x4c9d99),{'attrs':_0x5603bb(_0x5603bb({},_0x4c9d99['attrs']),{'id':_0x4c9d99[_0x1632cc(0x40b)]['id']+_0x3f9c6f[_0x1632cc(0x33b)]})}):_0x4c9d99;})}):_0x271593;}function _0x4b6315(){const _0x55d9e7=_0x52ce28;return Math['random']()[_0x55d9e7(0x252)](0x24)[_0x55d9e7(0x4ab)](0x2,0x8);}_0x2c50ee[_0x52ce28(0x4fb)]=_0x52ce28(0x346);var _0x3b8082={'tag':'svg','attrs':{'fill':_0x52ce28(0x579),'viewBox':_0x52ce28(0x201),'width':_0x52ce28(0x4f9),'height':_0x52ce28(0x4f9)},'children':[{'tag':'g','attrs':{'clipPath':_0x52ce28(0x3f6)},'children':[{'tag':_0x52ce28(0x448),'attrs':{'stroke':_0x52ce28(0x498),'d':'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','strokeLinecap':'round','strokeLinejoin':_0x52ce28(0x50d),'strokeWidth':1.2}}]},{'tag':_0x52ce28(0x2a3),'attrs':{},'children':[{'tag':_0x52ce28(0x358),'attrs':{'id':'off-line-single_clip0_910_343'},'children':[{'tag':_0x52ce28(0x448),'attrs':{'fill':_0x52ce28(0x26d),'d':'M0\x200H16V16H0z'}}]}]}],'defIds':['off-line-single_clip0_910_343']},_0x495989=_0x2a0491[_0x52ce28(0x4a3)](function(_0x3d245f,_0x5d7594){const _0x2dc0bb=_0x52ce28;return _0x2a0491[_0x2dc0bb(0x30d)](_0x2c50ee,Object[_0x2dc0bb(0x3a2)]({},_0x3d245f,{'id':'off-line-single','ref':_0x5d7594,'icon':_0x3b8082}));});_0x495989[_0x52ce28(0x4fb)]=_0x52ce28(0x4e3);var _0x499921={'tag':'svg','attrs':{'fill':_0x52ce28(0x579),'viewBox':_0x52ce28(0x57d),'width':_0x52ce28(0x4f9),'height':_0x52ce28(0x4f9)},'children':[{'tag':'g','attrs':{'clipPath':_0x52ce28(0x2ec)},'children':[{'tag':_0x52ce28(0x448),'attrs':{'stroke':_0x52ce28(0x498),'d':'M4.5865\x2011.6499C3.36983\x2011.6499\x201.6665\x2011.1024\x201.6665\x208.9124C1.6665\x206.3574\x204.2215\x205.8099\x204.9515\x205.8099C5.3165\x204.5324\x206.0465\x202.5249\x208.9665\x202.5249C11.5215\x202.5249\x2012.6165\x203.9849\x2012.9815\x205.2624C12.9815\x205.2624\x2016.2665\x205.6274\x2016.2665\x208.7299C16.2665\x2010.9199\x2014.8065\x2011.6499\x2013.3465\x2011.6499M6.7767\x2011.6497L8.9667\x2013.4747L11.8867\x209.82466','strokeLinecap':_0x52ce28(0x50d),'strokeLinejoin':_0x52ce28(0x50d),'strokeWidth':1.2}}]},{'tag':_0x52ce28(0x2a3),'attrs':{},'children':[{'tag':_0x52ce28(0x358),'attrs':{'id':'on-line-single_clip0_910_349'},'children':[{'tag':_0x52ce28(0x448),'attrs':{'fill':_0x52ce28(0x26d),'d':'M0\x200H16V16H0z','transform':'translate(.97)'}}]}]}],'defIds':[_0x52ce28(0x33f)]},_0x30f7b3=_0x2a0491[_0x52ce28(0x4a3)](function(_0x4de726,_0x195ffa){const _0x6254b7=_0x52ce28;return _0x2a0491[_0x6254b7(0x30d)](_0x2c50ee,Object['assign']({},_0x4de726,{'id':_0x6254b7(0x1fc),'ref':_0x195ffa,'icon':_0x499921}));});_0x30f7b3[_0x52ce28(0x4fb)]=_0x52ce28(0x580);function _0x492f6d(_0x401d7c){const _0x534679=_0x52ce28;var _0x4ee92e,_0x28f334,_0xe0dc='';if(typeof _0x401d7c==_0x534679(0x19c)||typeof _0x401d7c==_0x534679(0x26f))_0xe0dc+=_0x401d7c;else{if(typeof _0x401d7c=='object'){if(Array['isArray'](_0x401d7c)){var _0x47339e=_0x401d7c['length'];for(_0x4ee92e=0x0;_0x4ee92e<_0x47339e;_0x4ee92e++)_0x401d7c[_0x4ee92e]&&(_0x28f334=_0x492f6d(_0x401d7c[_0x4ee92e]))&&(_0xe0dc&&(_0xe0dc+='\x20'),_0xe0dc+=_0x28f334);}else{for(_0x28f334 in _0x401d7c)_0x401d7c[_0x28f334]&&(_0xe0dc&&(_0xe0dc+='\x20'),_0xe0dc+=_0x28f334);}}}return _0xe0dc;}function _0x5b432e(){for(var _0x1ab32b,_0x248c0a,_0x287855=0x0,_0x1f3c80='',_0x53bc6a=arguments['length'];_0x287855<_0x53bc6a;_0x287855++)(_0x1ab32b=arguments[_0x287855])&&(_0x248c0a=_0x492f6d(_0x1ab32b))&&(_0x1f3c80&&(_0x1f3c80+='\x20'),_0x1f3c80+=_0x248c0a);return _0x1f3c80;}const _0x36c28c={'onlineStatusIcon':'univer-online-status-icon','onlineStatusTitle':_0x52ce28(0x589),'onlineStatus':_0x52ce28(0x48d),'online':_0x52ce28(0x425),'offline':'univer-offline'};function _0x11ffcc(_0x31fef2){const _0x141493=_0x52ce28;switch(_0x31fef2){case _0x23695f[_0x141493(0x249)]:return'collabStatus.offline';case _0x23695f[_0x141493(0x3b2)]:return _0x141493(0x514);case _0x23695f[_0x141493(0x55e)]:return _0x141493(0x239);case _0x23695f[_0x141493(0x367)]:return _0x141493(0x292);case _0x23695f[_0x141493(0x18b)]:case _0x23695f['AWAITING']:case _0x23695f[_0x141493(0x1a6)]:return _0x141493(0x4cb);case _0x23695f[_0x141493(0x59d)]:return _0x141493(0x3f0);}}function _0x3f58e8(_0x5c0f3b){const _0x208522=_0x52ce28,{status$:_0x93e3cd}=_0x5c0f3b,_0x2d24a8=_0x116b36[_0x208522(0x3c8)](_0x93e3cd,_0x23695f[_0x208522(0x367)]),_0x419070=_0x514eda[_0x208522(0x559)](_0x514eda[_0x208522(0x440)]),_0x522941=_0x514eda[_0x208522(0x559)](_0x2143a3[_0x208522(0x3f3)]),_0x1341a3=_0x2d24a8!==_0x23695f['OFFLINE'],_0x957d31=_0x419070['t'](_0x11ffcc(_0x2d24a8)),_0x45f906=_0x5b432e(_0x36c28c[_0x208522(0x540)],{[_0x36c28c['online']]:_0x1341a3,[_0x36c28c[_0x208522(0x410)]]:!_0x1341a3}),_0x3e0ae9=_0x1341a3?_0x2a0491[_0x208522(0x30d)](_0x30f7b3,null):_0x2a0491[_0x208522(0x30d)](_0x495989,null),_0x3a87d6=_0x2a0491[_0x208522(0x421)](()=>{const _0x22de0f=_0x208522;_0x1341a3||_0x522941[_0x22de0f(0x4b9)]();},[_0x1341a3,_0x522941]);function _0x4d111d(){const _0x4869fc=_0x208522;return _0x2a0491[_0x4869fc(0x30d)](_0x4869fc(0x569),{'className':_0x45f906,'onClick':_0x3a87d6},_0x2a0491[_0x4869fc(0x30d)]('div',{'className':_0x36c28c[_0x4869fc(0x25f)]},_0x3e0ae9),_0x2a0491[_0x4869fc(0x30d)]('div',{'className':_0x36c28c[_0x4869fc(0x3c7)]},_0x957d31));}return _0x1341a3?_0x4d111d():_0x2a0491[_0x208522(0x30d)](_0x24f161['Tooltip'],{'title':_0x419070['t'](_0x208522(0x436))},_0x4d111d());}var _0x2c001e=Object[_0x52ce28(0x1fd)],_0x5859de=Object[_0x52ce28(0x493)],_0x204fd6=(_0x23467b,_0x319047,_0x52f96f,_0x890f08)=>{const _0xad6e33=_0x52ce28;for(var _0x10a5a5=_0x890f08>0x1?void 0x0:_0x890f08?_0x5859de(_0x319047,_0x52f96f):_0x319047,_0x27ce24=_0x23467b[_0xad6e33(0x47c)]-0x1,_0x19011a;_0x27ce24>=0x0;_0x27ce24--)(_0x19011a=_0x23467b[_0x27ce24])&&(_0x10a5a5=(_0x890f08?_0x19011a(_0x319047,_0x52f96f,_0x10a5a5):_0x19011a(_0x10a5a5))||_0x10a5a5);return _0x890f08&&_0x10a5a5&&_0x2c001e(_0x319047,_0x52f96f,_0x10a5a5),_0x10a5a5;},_0x4c9fa2=(_0x5e1d52,_0x3bc757)=>(_0x298545,_0x228bda)=>_0x3bc757(_0x298545,_0x228bda,_0x5e1d52);_0x2143a3[_0x52ce28(0x52b)]=class extends _0x514eda[_0x52ce28(0x4ad)]{constructor(_0x59130a,_0x5e76db,_0x2a9edf,_0x1c633e){const _0x3a8f18=_0x52ce28;super(),_0x2406c5(this,_0x3a8f18(0x32f),new _0x2ca9ec[(_0x3a8f18(0x3ff))](_0x23695f[_0x3a8f18(0x367)])),(this['_univerInstanceService']=_0x59130a,this[_0x3a8f18(0x370)]=_0x5e76db,this[_0x3a8f18(0x43e)]=_0x2a9edf,this[_0x3a8f18(0x20c)]=_0x1c633e,this[_0x3a8f18(0x282)](),this[_0x3a8f18(0x2cc)]());}[_0x52ce28(0x2cc)](){const _0x27f8b0=_0x52ce28;this[_0x27f8b0(0x3ad)](this[_0x27f8b0(0x49d)][_0x27f8b0(0x46b)][_0x27f8b0(0x2b9)](_0x2ca9ec[_0x27f8b0(0x21e)](()=>{const _0x18c786=_0x27f8b0,_0xbdacf6=this[_0x18c786(0x49d)][_0x18c786(0x285)]();return _0xbdacf6?this['_collaborationController'][_0x18c786(0x4da)](_0xbdacf6[_0x18c786(0x2da)]()):_0x2ca9ec['of'](null);}),_0x2ca9ec[_0x27f8b0(0x21e)](_0x565ded=>_0x565ded?_0x565ded[_0x27f8b0(0x45e)]:_0x2ca9ec['of'](_0x23695f[_0x27f8b0(0x367)])))[_0x27f8b0(0x1b3)](_0x5d5ebe=>{const _0x27d594=_0x27f8b0;this['_status$'][_0x27d594(0x1df)](_0x5d5ebe);}));}[_0x52ce28(0x282)](){const _0x8989bb=_0x52ce28;this[_0x8989bb(0x3ad)](this['_uiPartsService']['registerComponent'](_0x116b36['BuiltInUIPart'][_0x8989bb(0x3f4)],()=>_0x514eda[_0x8989bb(0x178)](_0x87e41d({'status$':this[_0x8989bb(0x32f)]['asObservable']()}),this[_0x8989bb(0x43e)])));}},_0x2143a3['DesktopCollaborationStatusDisplayController']=_0x204fd6([_0x4c9fa2(0x0,_0x514eda['IUniverInstanceService']),_0x4c9fa2(0x1,_0x116b36[_0x52ce28(0x4a7)]),_0x4c9fa2(0x2,_0x514eda[_0x52ce28(0x324)](_0x514eda['Injector'])),_0x4c9fa2(0x3,_0x514eda[_0x52ce28(0x324)](_0x2143a3[_0x52ce28(0x56f)]))],_0x2143a3['DesktopCollaborationStatusDisplayController']);function _0x87e41d(_0x45b5c4){const {status$:_0xf52a2b}=_0x45b5c4;return function(){const _0x2beb7e=_0x2d6c;return _0x2a0491[_0x2beb7e(0x30d)](_0x3f58e8,{'status$':_0xf52a2b});};}const _0x59183f=_0x514eda[_0x52ce28(0x1c7)](_0x52ce28(0x2e2));var _0x25657c=Object['defineProperty'],_0x600ac4=Object[_0x52ce28(0x493)],_0x5b9f3c=(_0x2cd4bb,_0x239868,_0x3648aa,_0x5c8b75)=>{const _0xe83fa5=_0x52ce28;for(var _0x171f8b=_0x5c8b75>0x1?void 0x0:_0x5c8b75?_0x600ac4(_0x239868,_0x3648aa):_0x239868,_0x4ce649=_0x2cd4bb[_0xe83fa5(0x47c)]-0x1,_0x525b81;_0x4ce649>=0x0;_0x4ce649--)(_0x525b81=_0x2cd4bb[_0x4ce649])&&(_0x171f8b=(_0x5c8b75?_0x525b81(_0x239868,_0x3648aa,_0x171f8b):_0x525b81(_0x171f8b))||_0x171f8b);return _0x5c8b75&&_0x171f8b&&_0x25657c(_0x239868,_0x3648aa,_0x171f8b),_0x171f8b;},_0x4d5b8d=(_0x5d5c1b,_0x2cf4f1)=>(_0x259e8a,_0x5f4f05)=>_0x2cf4f1(_0x259e8a,_0x5f4f05,_0x5d5c1b);_0x2143a3[_0x52ce28(0x526)]=class extends _0x514eda[_0x52ce28(0x18e)]{constructor(_0x322db9,_0x2636c2,_0x1f674d,_0x4dff9c,_0x2a0a3a,_0x1565ea){const _0x29aab2=_0x52ce28;super(),this[_0x29aab2(0x470)]=_0x322db9,this[_0x29aab2(0x307)]=_0x2636c2,this[_0x29aab2(0x3a8)]=_0x1f674d,this[_0x29aab2(0x50c)]=_0x4dff9c,this['_snapshotService']=_0x2a0a3a,_0x1565ea?_0x1565ea==null||_0x1565ea[_0x29aab2(0x174)]()['then'](()=>this[_0x29aab2(0x5a9)]()):(this['_logService'][_0x29aab2(0x1e2)](_0x29aab2(0x199),'No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.'),this['_init']());}async[_0x52ce28(0x5a9)](){const _0x48d047=_0x52ce28,_0x56f35b=this['_urlService'][_0x48d047(0x4c4)](_0x48d047(0x388)),_0x5a05e6=this[_0x48d047(0x470)][_0x48d047(0x4c4)]('type');if(!_0x56f35b||!_0x5a05e6){this['_logService']['debug'](_0x48d047(0x199),_0x48d047(0x599));return;}switch(Number(_0x5a05e6)){case _0x3f5bfb[_0x48d047(0x1ac)]:{const _0x54184a=await this[_0x48d047(0x334)](_0x56f35b);this[_0x48d047(0x4bd)](_0x54184a);break;}case _0x3f5bfb[_0x48d047(0x34f)]:{await this['_loadDoc'](_0x56f35b);break;}default:{this[_0x48d047(0x307)]['error'](_0x48d047(0x199),_0x48d047(0x3d7));break;}}}async[_0x52ce28(0x4bd)](_0x2f8b81){const _0x2a504d=_0x52ce28;await this[_0x2a504d(0x1e6)](_0x2f8b81),_0x2f8b81[_0x2a504d(0x314)][_0x2a504d(0x2b9)](_0x2ca9ec['takeUntil'](this[_0x2a504d(0x4af)]))['subscribe'](_0x24ced6=>{const _0x880bf0=_0x2a504d;_0x24ced6&&this[_0x880bf0(0x37e)](_0x24ced6);}),this[_0x2a504d(0x470)][_0x2a504d(0x247)][_0x2a504d(0x2b9)](_0x2ca9ec[_0x2a504d(0x218)](this[_0x2a504d(0x4af)]))[_0x2a504d(0x1b3)](()=>this[_0x2a504d(0x1e6)](_0x2f8b81));}[_0x52ce28(0x37e)](_0x5ecfe3,_0x4f891f=!0x1){const _0x2971cc=_0x52ce28,_0x2f3021=this[_0x2971cc(0x470)][_0x2971cc(0x4c4)](_0x2971cc(0x187));_0x5ecfe3[_0x2971cc(0x59e)]()!==_0x2f3021&&this[_0x2971cc(0x470)][_0x2971cc(0x27c)](_0x2971cc(0x187),_0x5ecfe3[_0x2971cc(0x59e)](),_0x4f891f);}async[_0x52ce28(0x1e6)](_0x1b258b){const _0xa26bbf=_0x52ce28;var _0x41a781;const _0x5099cf=this[_0xa26bbf(0x470)][_0xa26bbf(0x4c4)](_0xa26bbf(0x187));if(!_0x5099cf||!_0x1b258b[_0xa26bbf(0x386)](_0x5099cf)){const _0x28d7a9=_0x1b258b['getUnhiddenWorksheets']()[0x0],_0x2917c8=_0x1b258b[_0xa26bbf(0x386)](_0x28d7a9);if(!_0x2917c8)return;this[_0xa26bbf(0x37e)](_0x2917c8,!0x0),await this['_commandService'][_0xa26bbf(0x414)](_0x12c1fe[_0xa26bbf(0x19a)]['id'],{'unitId':_0x1b258b[_0xa26bbf(0x2da)](),'subUnitId':_0x28d7a9});return;}((_0x41a781=_0x1b258b[_0xa26bbf(0x507)]())==null?void 0x0:_0x41a781['getSheetId']())!==_0x5099cf&&await this['_commandService'][_0xa26bbf(0x414)](_0x12c1fe[_0xa26bbf(0x19a)]['id'],{'unitId':_0x1b258b['getUnitId'](),'subUnitId':_0x5099cf});}async['_loadSheet'](_0x30c932){const _0x58be0f=_0x52ce28;let _0x3772d2=0x0;const _0x359dcc=await this[_0x58be0f(0x50c)][_0x58be0f(0x566)](_0x30c932);return _0x359dcc&&(_0x359dcc[_0x58be0f(0x3d6)]||_0x359dcc[_0x58be0f(0x568)][_0x58be0f(0x47c)]!==0x0)&&(_0x3772d2=_0x359dcc[_0x58be0f(0x2d0)]),_0x3772d2===0x0&&this[_0x58be0f(0x307)]['debug'](_0x58be0f(0x199),_0x58be0f(0x41d)),this[_0x58be0f(0x2d1)][_0x58be0f(0x35c)](_0x30c932,_0x3772d2);}async[_0x52ce28(0x41a)](_0x239d3a){const _0xde4475=_0x52ce28;let _0x370b27=0x0;const _0x56d42c=await this[_0xde4475(0x50c)][_0xde4475(0x566)](_0x239d3a);return _0x56d42c&&(_0x56d42c['awaitingChangeset']||_0x56d42c[_0xde4475(0x568)][_0xde4475(0x47c)]!==0x0)&&(_0x370b27=_0x56d42c[_0xde4475(0x2d0)]),_0x370b27===0x0&&this['_logService'][_0xde4475(0x1e2)](_0xde4475(0x199),_0xde4475(0x41d)),this[_0xde4475(0x2d1)][_0xde4475(0x471)](_0x239d3a,_0x370b27);}},_0x2143a3[_0x52ce28(0x526)]=_0x5b9f3c([_0x4d5b8d(0x0,_0x59183f),_0x4d5b8d(0x1,_0x514eda[_0x52ce28(0x1f6)]),_0x4d5b8d(0x2,_0x514eda[_0x52ce28(0x289)]),_0x4d5b8d(0x3,_0x514eda[_0x52ce28(0x324)](_0x2143a3[_0x52ce28(0x472)])),_0x4d5b8d(0x4,_0x514eda[_0x52ce28(0x324)](_0x3a5d3a[_0x52ce28(0x2e4)])),_0x4d5b8d(0x5,_0x514eda['Optional'](_0x845fdd[_0x52ce28(0x481)]))],_0x2143a3['DataLoaderController']);var _0x4eda77=Object['defineProperty'],_0x2c2ec5=Object['getOwnPropertyDescriptor'],_0x1772c1=(_0x1bfe6f,_0x37ead3,_0x88aa4b,_0xedd161)=>{const _0x39294b=_0x52ce28;for(var _0x14c635=_0xedd161>0x1?void 0x0:_0xedd161?_0x2c2ec5(_0x37ead3,_0x88aa4b):_0x37ead3,_0x4d558f=_0x1bfe6f[_0x39294b(0x47c)]-0x1,_0x13c570;_0x4d558f>=0x0;_0x4d558f--)(_0x13c570=_0x1bfe6f[_0x4d558f])&&(_0x14c635=(_0xedd161?_0x13c570(_0x37ead3,_0x88aa4b,_0x14c635):_0x13c570(_0x14c635))||_0x14c635);return _0xedd161&&_0x14c635&&_0x4eda77(_0x37ead3,_0x88aa4b,_0x14c635),_0x14c635;},_0x5bf4bf=(_0xa73b60,_0x27d5dd)=>(_0x17c95c,_0x314d23)=>_0x27d5dd(_0x17c95c,_0x314d23,_0xa73b60);const _0x1868ce=_0x52ce28(0x543),_0x178288=_0x52ce28(0x23f);let _0x164bed=class extends _0x514eda['Disposable']{constructor(_0x460d7a,_0x2ca776){const _0x250608=_0x52ce28;super(),this[_0x250608(0x49d)]=_0x460d7a,this['_configService']=_0x2ca776,this[_0x250608(0x5a9)]();}[_0x52ce28(0x5a9)](){const _0x4de648=_0x52ce28;this[_0x4de648(0x3ad)](this[_0x4de648(0x49d)]['focused$'][_0x4de648(0x1b3)](()=>{const _0x256f6f=_0x4de648;var _0x10add5;const _0x3693c5=this[_0x256f6f(0x49d)][_0x256f6f(0x285)]();let _0x155751=(_0x10add5=this['_configService'][_0x256f6f(0x490)](_0x1868ce))!=null?_0x10add5:_0x178288;_0x3693c5 instanceof _0x514eda[_0x256f6f(0x227)]&&(_0x155751=_0x3693c5[_0x256f6f(0x2fb)]),document[_0x256f6f(0x4a4)]=_0x155751;}));}};_0x164bed=_0x1772c1([_0x5bf4bf(0x0,_0x514eda[_0x52ce28(0x29d)]),_0x5bf4bf(0x1,_0x514eda[_0x52ce28(0x480)])],_0x164bed);var _0x16ebca=Object[_0x52ce28(0x1fd)],_0x508325=Object[_0x52ce28(0x493)],_0x441aab=(_0x11321a,_0x46ccb5,_0xb61194,_0x1b5af1)=>{const _0x36a947=_0x52ce28;for(var _0x1861c3=_0x1b5af1>0x1?void 0x0:_0x1b5af1?_0x508325(_0x46ccb5,_0xb61194):_0x46ccb5,_0x423eef=_0x11321a[_0x36a947(0x47c)]-0x1,_0x3454bb;_0x423eef>=0x0;_0x423eef--)(_0x3454bb=_0x11321a[_0x423eef])&&(_0x1861c3=(_0x1b5af1?_0x3454bb(_0x46ccb5,_0xb61194,_0x1861c3):_0x3454bb(_0x1861c3))||_0x1861c3);return _0x1b5af1&&_0x1861c3&&_0x16ebca(_0x46ccb5,_0xb61194,_0x1861c3),_0x1861c3;},_0x1b5a32=(_0x3fcb64,_0x31c752)=>(_0x4b8619,_0x56b9aa)=>_0x31c752(_0x4b8619,_0x56b9aa,_0x3fcb64);let _0x112e4b=class{constructor(_0x569c28,_0x162e67,_0x263711){const _0x416efc=_0x52ce28;this[_0x416efc(0x38a)]=_0x569c28,this[_0x416efc(0x1a7)]=_0x162e67,this[_0x416efc(0x43c)]=_0x263711,this[_0x416efc(0x2cf)]();}['init'](){const _0x49311d=_0x52ce28;this[_0x49311d(0x1a7)]['registerHTTPInterceptor']({'priority':0x1,'interceptor':(_0x154ef8,_0x5e4845)=>_0x5e4845(_0x154ef8)[_0x49311d(0x2b9)](_0x2ca9ec[_0x49311d(0x4ea)](async _0xac2103=>{const _0x133d01=_0x49311d,_0x4e5963=_0xac2103;if(_0x4e5963[_0x133d01(0x25b)]===0x191&&window[_0x133d01(0x3aa)](this['localeService']['t']('auth.needGotoLoginAlert'))){const _0x467fbf=window['encodeURIComponent'](window[_0x133d01(0x4e5)][_0x133d01(0x594)]);window[_0x133d01(0x4e5)][_0x133d01(0x594)]=this[_0x133d01(0x176)]()+_0x133d01(0x1ae)+_0x467fbf;}return _0x4e5963;}))});}[_0x52ce28(0x176)](){const _0x37c506=_0x52ce28;var _0x35678b,_0x3e045a;const _0x5389a0=this[_0x37c506(0x38a)][_0x37c506(0x490)](_0x33aa97),_0x486b6a=this['_configService']['getConfig'](_0xb94ed4);return(_0x3e045a=(_0x35678b=_0x486b6a==null?void 0x0:_0x486b6a[_0x37c506(0x1c8)])!=null?_0x35678b:_0x5389a0)!=null?_0x3e045a:_0x227819;}};_0x112e4b=_0x441aab([_0x1b5a32(0x0,_0x514eda[_0x52ce28(0x480)]),_0x1b5a32(0x1,_0x514eda[_0x52ce28(0x324)](_0x5b9e99[_0x52ce28(0x38e)])),_0x1b5a32(0x2,_0x514eda[_0x52ce28(0x324)](_0x514eda['LocaleService']))],_0x112e4b);var _0x140e7c=Object[_0x52ce28(0x1fd)],_0x5cb60f=Object[_0x52ce28(0x493)],_0x9f2c35=(_0xb14d82,_0x1f0f5b,_0xb3e06b,_0x12c793)=>{const _0x4a72f6=_0x52ce28;for(var _0x35450b=_0x12c793>0x1?void 0x0:_0x12c793?_0x5cb60f(_0x1f0f5b,_0xb3e06b):_0x1f0f5b,_0x149c0e=_0xb14d82[_0x4a72f6(0x47c)]-0x1,_0x52ddba;_0x149c0e>=0x0;_0x149c0e--)(_0x52ddba=_0xb14d82[_0x149c0e])&&(_0x35450b=(_0x12c793?_0x52ddba(_0x1f0f5b,_0xb3e06b,_0x35450b):_0x52ddba(_0x35450b))||_0x35450b);return _0x12c793&&_0x35450b&&_0x140e7c(_0x1f0f5b,_0xb3e06b,_0x35450b),_0x35450b;},_0x3532b1=(_0x4d7396,_0x5992df)=>(_0x3f923b,_0x327763)=>_0x5992df(_0x3f923b,_0x327763,_0x4d7396);const _0x4a53f4='AUTHZ_URL_KEY',_0x138964='/universer-api/authz';_0x2143a3[_0x52ce28(0x193)]=class extends _0x514eda['Disposable']{constructor(_0x43ba04,_0x518f47){const _0x1f1e8c=_0x52ce28;super(),this[_0x1f1e8c(0x396)]=_0x43ba04,this['_configService']=_0x518f47,this[_0x1f1e8c(0x3af)]();}[_0x52ce28(0x3af)](){const _0x104245=_0x52ce28,_0x3a8e6e=this;this['disposeWithMe'](this[_0x104245(0x396)][_0x104245(0x4eb)]({'priority':0x3e7,'interceptor':_0x5b9e99[_0x104245(0x3b1)]({'isMatch'(_0x2486ec){const _0x271e17=_0x104245;var _0x41d88e;if(_0x2486ec[_0x271e17(0x1cc)]==='POST'&&((_0x41d88e=_0x2486ec[_0x271e17(0x3ae)])!=null&&_0x41d88e[_0x271e17(0x1ee)])){const {objectID:_0x8876e8,objectType:_0x5251f0}=_0x2486ec[_0x271e17(0x3ae)][_0x271e17(0x1ee)]||{};if(!_0x8876e8||_0x5251f0===void 0x0)return!0x1;const _0x47fa08=_0x3a8e6e[_0x271e17(0x362)]()+'/'+_0x5251f0+_0x271e17(0x32e)+_0x8876e8+_0x271e17(0x18d);if(_0x2486ec[_0x271e17(0x3d8)]===_0x47fa08)return!0x0;}return!0x1;},'getParamsFromRequest'(_0x408a25){const _0xf73e93=_0x104245;var _0x2a6e17;return(_0x2a6e17=_0x408a25[_0xf73e93(0x3ae)])==null?void 0x0:_0x2a6e17[_0xf73e93(0x1ee)];},'mergeParamsToRequest'(_0x411a8a,_0x40a75f){const _0x10a7c9=_0x104245,_0x4571fb=_0x3a8e6e[_0x10a7c9(0x362)]()+_0x10a7c9(0x278),_0x137915=_0x411a8a[_0x10a7c9(0x1db)]((_0x3e9c73,_0x3cd6bf)=>{const _0x29d510=_0x10a7c9,{unitID:_0x536228,objectID:_0x104167,objectType:_0x57475a,actions:_0x5ead09}=_0x3cd6bf;return _0x3e9c73[_0x536228]||(_0x3e9c73[_0x536228]={}),_0x3e9c73[_0x536228][_0x104167]||(_0x3e9c73[_0x536228][_0x104167]={'objectID':_0x104167,'objectType':_0x57475a,'actions':[]}),_0x3e9c73[_0x536228][_0x104167][_0x29d510(0x408)][_0x29d510(0x47b)](..._0x5ead09),_0x3e9c73;},{}),_0x1b4c31=[];for(const _0x400c05 in _0x137915)for(const _0x46ff9d in _0x137915[_0x400c05]){const {actions:_0x204fb8,objectType:_0x3dbf76}=_0x137915[_0x400c05][_0x46ff9d],_0x496773=[...new Set(_0x204fb8)];_0x1b4c31['push']({'unitID':_0x400c05,'objectID':_0x46ff9d,'objectType':_0x3dbf76,'actions':_0x496773});}return new _0x5b9e99[(_0x10a7c9(0x353))](_0x10a7c9(0x483),_0x4571fb,{'headers':_0x40a75f[_0x10a7c9(0x243)],'withCredentials':_0x40a75f[_0x10a7c9(0x3e2)],'responseType':_0x40a75f[_0x10a7c9(0x4d9)],'body':{'requests':_0x1b4c31}});}},{'distributeResult'(_0x13a66e,_0x490eda){const _0x4c8233=_0x104245,{objectActions:_0x228d90}=_0x13a66e;return _0x490eda[_0x4c8233(0x287)](_0x49e8bb=>{const _0x1a332f=_0x4c8233,{unitID:_0x775ab2,objectID:_0x1ac6c6,actions:_0x472423}=_0x49e8bb,_0x22fc27=_0x228d90['find'](_0x2864c8=>_0x2864c8[_0x1a332f(0x261)]===_0x775ab2&&_0x2864c8[_0x1a332f(0x250)]===_0x1ac6c6),_0x7b0c2b=_0x472423[_0x1a332f(0x287)](_0x609b1e=>_0x22fc27==null?void 0x0:_0x22fc27[_0x1a332f(0x408)]['find'](_0x10f1fd=>_0x10f1fd[_0x1a332f(0x1c1)]===_0x609b1e))[_0x1a332f(0x56d)](_0x285498=>!!_0x285498);return{'config':_0x49e8bb,'result':{'actions':_0x7b0c2b,'error':_0x13a66e[_0x1a332f(0x28b)]}};});}})}));}['_getAPIPrefixPath'](){const _0x1dd697=_0x52ce28;var _0x86e0df,_0x36a408;const _0x3db537=this['_configService'][_0x1dd697(0x490)](_0x4a53f4),_0x175aae=this[_0x1dd697(0x38a)][_0x1dd697(0x490)](_0xb94ed4);return(_0x36a408=(_0x86e0df=_0x175aae==null?void 0x0:_0x175aae['authzUrl'])!=null?_0x86e0df:_0x3db537)!=null?_0x36a408:_0x138964;}async['create'](_0x2699cb){const _0xb6c345=_0x52ce28,_0x2ce66a=this[_0xb6c345(0x362)]()+'/'+_0x2699cb[_0xb6c345(0x259)]+_0xb6c345(0x55f);return(await this[_0xb6c345(0x396)]['post'](_0x2ce66a,{'body':_0x2699cb}))['body'][_0xb6c345(0x250)]||'';}async['list'](_0x1f471b){const _0x57837e=_0x52ce28,_0x23b95d=this[_0x57837e(0x362)]()+_0x57837e(0x4ba);return(await this[_0x57837e(0x396)][_0x57837e(0x23c)](_0x23b95d,{'body':_0x1f471b}))[_0x57837e(0x1ee)][_0x57837e(0x318)];}async[_0x52ce28(0x398)](_0x2d486e){const _0x215583=_0x52ce28,_0x158af4=this[_0x215583(0x362)]()+'/'+_0x2d486e['objectType']+_0x215583(0x32e)+_0x2d486e['objectID'];await this[_0x215583(0x396)][_0x215583(0x338)](_0x158af4,{'body':_0x2d486e});}async[_0x52ce28(0x570)](_0x74bb26){const _0x514b2c=_0x52ce28,_0x14d6c3=this[_0x514b2c(0x362)]()+'/'+_0x74bb26[_0x514b2c(0x259)]+'/object/'+_0x74bb26[_0x514b2c(0x250)]+'/allowed';return(await this[_0x514b2c(0x396)][_0x514b2c(0x23c)](_0x14d6c3,{'body':_0x74bb26}))['body'][_0x514b2c(0x408)];}async[_0x52ce28(0x4d0)](_0x2026f1){const _0x113849=_0x52ce28,_0x221877=this[_0x113849(0x362)]()+_0x113849(0x278);return(await this['_HTTPService'][_0x113849(0x23c)](_0x221877,{'body':{'requests':_0x2026f1}}))[_0x113849(0x1ee)]['objectActions'];}async[_0x52ce28(0x3ec)](_0x3b00f4){const _0x3cd763=_0x52ce28,_0x191c6e=this[_0x3cd763(0x362)]()+'/'+_0x3b00f4[_0x3cd763(0x259)]+_0x3cd763(0x31a),_0x7deab2=await this['_HTTPService']['post'](_0x191c6e,{'body':_0x3b00f4});return{'roles':_0x7deab2[_0x3cd763(0x1ee)][_0x3cd763(0x4a5)],'actions':_0x7deab2[_0x3cd763(0x1ee)][_0x3cd763(0x408)]};}async[_0x52ce28(0x38d)](_0x101909){const _0x387553=_0x52ce28,_0x4b4521=this[_0x387553(0x362)]()+_0x387553(0x34e);await this['_HTTPService'][_0x387553(0x3ba)](_0x4b4521,{'params':{'collaboratorID':_0x101909['collaboratorID'],'objectID':_0x101909[_0x387553(0x250)],'unitID':_0x101909[_0x387553(0x261)]}});}async[_0x52ce28(0x1bf)](_0x126054){const _0x2288da=_0x52ce28,_0x505936=this[_0x2288da(0x362)]()+'/collaborator';await this[_0x2288da(0x396)]['patch'](_0x505936,{'body':_0x126054});}async[_0x52ce28(0x2ef)](_0x5b018e){const _0x44acf4=_0x52ce28,_0x9fd5b5=this[_0x44acf4(0x362)]()+'/collaborator';await this[_0x44acf4(0x396)][_0x44acf4(0x23c)](_0x9fd5b5,{'body':_0x5b018e});}async[_0x52ce28(0x57b)](_0x524406){const _0x55c5b9=_0x52ce28,_0x3c8754=this[_0x55c5b9(0x362)]()+_0x55c5b9(0x34e);return(await this['_HTTPService'][_0x55c5b9(0x4d3)](_0x3c8754,{'params':{'objectID':_0x524406['objectID'],'unitID':_0x524406['unitID']}}))['body'][_0x55c5b9(0x52f)];}async[_0x52ce28(0x45b)](_0x45a415){const _0xd47af9=_0x52ce28,_0x4a94cb=this[_0xd47af9(0x362)]()+_0xd47af9(0x34e);await this['_HTTPService'][_0xd47af9(0x338)](_0x4a94cb,{'body':_0x45a415});}},_0x2143a3[_0x52ce28(0x193)]=_0x9f2c35([_0x3532b1(0x0,_0x514eda[_0x52ce28(0x324)](_0x5b9e99[_0x52ce28(0x38e)])),_0x3532b1(0x1,_0x514eda[_0x52ce28(0x324)](_0x514eda[_0x52ce28(0x480)]))],_0x2143a3[_0x52ce28(0x193)]);var _0x9a96dd=Object[_0x52ce28(0x1fd)],_0x11e33b=Object['getOwnPropertyDescriptor'],_0x184bb6=(_0x353e90,_0x3c1f2e,_0x3e67d7,_0x192f22)=>{const _0x485c71=_0x52ce28;for(var _0x16a8fa=_0x192f22>0x1?void 0x0:_0x192f22?_0x11e33b(_0x3c1f2e,_0x3e67d7):_0x3c1f2e,_0x805cf8=_0x353e90[_0x485c71(0x47c)]-0x1,_0x338276;_0x805cf8>=0x0;_0x805cf8--)(_0x338276=_0x353e90[_0x805cf8])&&(_0x16a8fa=(_0x192f22?_0x338276(_0x3c1f2e,_0x3e67d7,_0x16a8fa):_0x338276(_0x16a8fa))||_0x16a8fa);return _0x192f22&&_0x16a8fa&&_0x9a96dd(_0x3c1f2e,_0x3e67d7,_0x16a8fa),_0x16a8fa;},_0x26dd86=(_0x4ad6d5,_0x4e66f0)=>(_0x24463d,_0x2cda2f)=>_0x4e66f0(_0x24463d,_0x2cda2f,_0x4ad6d5);let _0x43ee6d=class{constructor(_0x253599){const _0x39a309=_0x52ce28;this['_httpService']=_0x253599,this[_0x39a309(0x177)]();}['_initRequestHeader'](){const _0x1fc2aa=_0x52ce28;this[_0x1fc2aa(0x1a7)]['registerHTTPInterceptor']({'interceptor':(_0x206701,_0x459ea5)=>{const _0x170f76=_0x1fc2aa,_0x32061d=_0x206701['headers'],_0x438106=_0xc3ea3a['getAttachHeader']();return _0x438106&&_0x32061d['set'](_0x170f76(0x597),_0x438106),_0x459ea5(_0x206701);}});}};_0x43ee6d=_0x184bb6([_0x26dd86(0x0,_0x514eda[_0x52ce28(0x324)](_0x5b9e99['HTTPService']))],_0x43ee6d);var _0xfeb37c=Object[_0x52ce28(0x1fd)],_0xeb4c57=Object[_0x52ce28(0x493)],_0x453f58=(_0x538ecb,_0x1233da,_0x191fc4,_0x3ad19e)=>{const _0x475bea=_0x52ce28;for(var _0x48804c=_0x3ad19e>0x1?void 0x0:_0x3ad19e?_0xeb4c57(_0x1233da,_0x191fc4):_0x1233da,_0x4bea3f=_0x538ecb[_0x475bea(0x47c)]-0x1,_0x4c0f91;_0x4bea3f>=0x0;_0x4bea3f--)(_0x4c0f91=_0x538ecb[_0x4bea3f])&&(_0x48804c=(_0x3ad19e?_0x4c0f91(_0x1233da,_0x191fc4,_0x48804c):_0x4c0f91(_0x48804c))||_0x48804c);return _0x3ad19e&&_0x48804c&&_0xfeb37c(_0x1233da,_0x191fc4,_0x48804c),_0x48804c;},_0x5f3b60=(_0xfb2493,_0x5addb6)=>(_0x23d4a9,_0x576731)=>_0x5addb6(_0x23d4a9,_0x576731,_0xfb2493);const _0x56cd9e=[_0x52ce28(0x2e0),_0x52ce28(0x1de),_0x52ce28(0x2c6),_0x52ce28(0x233),'image/bmp'],_0x1f7aed=0x5*0x400*0x400,_0x118697=_0x52ce28(0x3e7),_0x32c481=_0x52ce28(0x195),_0x371c08=_0x52ce28(0x454),_0x1c4d8e=_0x52ce28(0x377);_0x2143a3['ImageIoService']=class{constructor(_0x831c8f,_0x274b03,_0x4ebd6c){const _0x276cbf=_0x52ce28;_0x2406c5(this,_0x276cbf(0x54e),0x0),_0x2406c5(this,_0x276cbf(0x482),new _0x2ca9ec[(_0x276cbf(0x181))]()),_0x2406c5(this,'change$',this[_0x276cbf(0x482)]),_0x2406c5(this,_0x276cbf(0x42a),new Map()),(this['_httpService']=_0x831c8f,this[_0x276cbf(0x38a)]=_0x274b03,this[_0x276cbf(0x49d)]=_0x4ebd6c);}['setWaitCount'](_0x2235c0){const _0x10d012=_0x52ce28;this[_0x10d012(0x54e)]=_0x2235c0,this[_0x10d012(0x482)]['next'](_0x2235c0);}[_0x52ce28(0x2be)](_0xb699af,_0x2403f8){const _0x286c6c=_0x52ce28;if(_0x2403f8===_0x5277be[_0x286c6c(0x1f1)][_0x286c6c(0x3c1)]){const _0x2e9a52=new Image();return _0x2e9a52[_0x286c6c(0x1b7)]=_0xb699af,_0x2e9a52;}return this[_0x286c6c(0x42a)][_0x286c6c(0x4d3)](_0xb699af);}[_0x52ce28(0x2b8)](_0x10e6a1,_0x4077e9,_0x1c14d2){const _0x58645f=_0x52ce28;_0x4077e9===_0x5277be[_0x58645f(0x1f1)][_0x58645f(0x3c1)]||_0x1c14d2==null||this[_0x58645f(0x42a)][_0x58645f(0x485)](_0x10e6a1,_0x1c14d2);}async['getImage'](_0x58ee6a){const _0x2fb914=_0x52ce28;try{const _0x10f60a=this[_0x2fb914(0x35e)](this[_0x2fb914(0x1c6)](),''+_0x58ee6a),_0x31b94a=(await this[_0x2fb914(0x1a7)][_0x2fb914(0x4d3)](_0x10f60a))[_0x2fb914(0x1ee)];if(_0x31b94a[_0x2fb914(0x28b)]&&_0x31b94a[_0x2fb914(0x28b)][_0x2fb914(0x26e)]===_0x1d50de['OK']){const _0x408d42=new URL(_0x31b94a[_0x2fb914(0x3d8)],this[_0x2fb914(0x50a)]())['toString']();return Promise[_0x2fb914(0x382)](_0x408d42);}return Promise[_0x2fb914(0x406)](_0x31b94a[_0x2fb914(0x28b)]);}catch(_0x2728de){return Promise[_0x2fb914(0x406)](_0x2728de);}}async['saveImage'](_0x58ff0c){const _0x4cd8f7=_0x52ce28;let _0x20f024='';if(!_0x56cd9e[_0x4cd8f7(0x5a2)](_0x58ff0c[_0x4cd8f7(0x37c)]))return this[_0x4cd8f7(0x2ff)](),Promise[_0x4cd8f7(0x406)](new Error(_0x5277be[_0x4cd8f7(0x52c)]['ERROR_IMAGE_TYPE']));if(_0x58ff0c[_0x4cd8f7(0x50b)]>_0x1f7aed)return this[_0x4cd8f7(0x2ff)](),Promise['reject'](new Error(_0x5277be[_0x4cd8f7(0x52c)]['ERROR_EXCEED_SIZE']));try{const _0x210e8a=new FormData();_0x210e8a[_0x4cd8f7(0x1ba)](_0x4cd8f7(0x4b8),_0x58ff0c);const _0x8e0a38=this['_univerInstanceService']['getFocusedUnit'](),_0x4d22eb=_0x8e0a38==null?void 0x0:_0x8e0a38[_0x4cd8f7(0x2da)]();if(!_0x4d22eb)throw new Error(_0x4cd8f7(0x3fd));const _0x2d2522=this[_0x4cd8f7(0x3b0)]()+'?size='+_0x58ff0c[_0x4cd8f7(0x50b)][_0x4cd8f7(0x252)]()+_0x4cd8f7(0x3e4)+_0x4ba0ba[_0x4cd8f7(0x438)]+'&assign='+encodeURIComponent(_0x4d22eb),_0x46234e=await(await fetch(_0x2d2522,{'method':'POST','body':_0x210e8a}))[_0x4cd8f7(0x3e8)]();if(typeof _0x46234e[_0x4cd8f7(0x37f)]!=_0x4cd8f7(0x19c))return this[_0x4cd8f7(0x2ff)](),Promise[_0x4cd8f7(0x406)](new Error(_0x5277be[_0x4cd8f7(0x52c)][_0x4cd8f7(0x463)]));_0x20f024=_0x46234e[_0x4cd8f7(0x37f)];}catch{return this[_0x4cd8f7(0x2ff)](),Promise[_0x4cd8f7(0x406)](new Error(_0x5277be[_0x4cd8f7(0x52c)][_0x4cd8f7(0x463)]));}return new Promise((_0x4f2b82,_0x3f5a2c)=>{const _0x300309=_0x4cd8f7,_0x4c3217=new FileReader();_0x4c3217[_0x300309(0x320)](_0x58ff0c),_0x4c3217['onload']=_0x36e08a=>{const _0x3ca589=_0x300309;var _0x471bcf;const _0x2fe7cb=(_0x471bcf=_0x36e08a[_0x3ca589(0x222)])==null?void 0x0:_0x471bcf['result'];if(_0x2fe7cb==null){this['_decreaseWaiting'](),_0x3f5a2c(new Error(_0x5277be[_0x3ca589(0x52c)][_0x3ca589(0x463)]));return;}const _0x26add8=_0x514eda[_0x3ca589(0x383)][_0x3ca589(0x432)](0x6);_0x4f2b82({'imageId':_0x26add8,'imageSourceType':_0x5277be[_0x3ca589(0x1f1)][_0x3ca589(0x450)],'source':_0x20f024,'base64Cache':_0x2fe7cb,'status':_0x5277be[_0x3ca589(0x52c)][_0x3ca589(0x28c)]}),this['_decreaseWaiting']();};});}[_0x52ce28(0x3b0)](){const _0x9e139d=_0x52ce28;var _0x63759,_0x3de2e0;const _0x56959a=this['_configService'][_0x9e139d(0x490)](_0x118697),_0x19e673=this[_0x9e139d(0x38a)][_0x9e139d(0x490)](_0xb94ed4);return(_0x3de2e0=(_0x63759=_0x19e673==null?void 0x0:_0x19e673['uploadFileServerUrl'])!=null?_0x63759:_0x56959a)!=null?_0x3de2e0:_0x32c481;}['_getSignURL'](){const _0x2567f1=_0x52ce28;var _0x2cc697,_0x2972f5;const _0x17b46e=this[_0x2567f1(0x38a)]['getConfig'](_0x371c08),_0x4bf4dd=this[_0x2567f1(0x38a)][_0x2567f1(0x490)](_0xb94ed4);return(_0x2972f5=(_0x2cc697=_0x4bf4dd==null?void 0x0:_0x4bf4dd['signUrlServerUrl'])!=null?_0x2cc697:_0x17b46e)!=null?_0x2972f5:_0x1c4d8e;}['_getDownloadEndpointURL'](){const _0x51e0f8=_0x52ce28;var _0x2b5cea;const _0x2545a2=this[_0x51e0f8(0x38a)][_0x51e0f8(0x490)](_0xb94ed4);return(_0x2b5cea=_0x2545a2==null?void 0x0:_0x2545a2[_0x51e0f8(0x19b)])!=null?_0x2b5cea:location[_0x51e0f8(0x175)];}[_0x52ce28(0x35e)](_0x3fbb0f,_0x201393){const _0x17e1b8=_0x52ce28;return _0x3fbb0f[_0x17e1b8(0x206)](_0x17e1b8(0x3bc),_0x201393);}[_0x52ce28(0x2ff)](){const _0x2cd991=_0x52ce28;this[_0x2cd991(0x54e)]-=0x1,this[_0x2cd991(0x482)][_0x2cd991(0x1df)](this[_0x2cd991(0x54e)]);}},_0x2143a3[_0x52ce28(0x4d1)]=_0x453f58([_0x5f3b60(0x0,_0x514eda[_0x52ce28(0x324)](_0x5b9e99[_0x52ce28(0x38e)])),_0x5f3b60(0x1,_0x514eda['IConfigService']),_0x5f3b60(0x2,_0x514eda[_0x52ce28(0x324)](_0x514eda['IUniverInstanceService']))],_0x2143a3[_0x52ce28(0x4d1)]);var _0x19c8c5=Object[_0x52ce28(0x1fd)],_0x3f8f43=Object[_0x52ce28(0x493)],_0x374720=(_0x80ed47,_0x2bfbb2,_0x1527a3,_0x164571)=>{const _0x5daa03=_0x52ce28;for(var _0x3f44a3=_0x164571>0x1?void 0x0:_0x164571?_0x3f8f43(_0x2bfbb2,_0x1527a3):_0x2bfbb2,_0x28f2af=_0x80ed47[_0x5daa03(0x47c)]-0x1,_0x586e94;_0x28f2af>=0x0;_0x28f2af--)(_0x586e94=_0x80ed47[_0x28f2af])&&(_0x3f44a3=(_0x164571?_0x586e94(_0x2bfbb2,_0x1527a3,_0x3f44a3):_0x586e94(_0x3f44a3))||_0x3f44a3);return _0x164571&&_0x3f44a3&&_0x19c8c5(_0x2bfbb2,_0x1527a3,_0x3f44a3),_0x3f44a3;},_0x58efd1=(_0xaa35b7,_0x20c8b0)=>(_0x491992,_0x488b58)=>_0x20c8b0(_0x491992,_0x488b58,_0xaa35b7);let _0x413ffa=class extends _0x514eda[_0x52ce28(0x18e)]{constructor(_0x422c5d,_0x4d7f33,_0x1f6d1c,_0xb4cbcc,_0x38ae6d){const _0x572db6=_0x52ce28;super(),this[_0x572db6(0x43e)]=_0x422c5d,this[_0x572db6(0x49d)]=_0x4d7f33,this['_permissionService']=_0x1f6d1c,this[_0x572db6(0x3a4)]=_0xb4cbcc,this[_0x572db6(0x17e)]=_0x38ae6d,this['_initUnitPermissionChange'](),this['_initCloseConn']();}[_0x52ce28(0x404)](){const _0x2db871=_0x52ce28,_0x3c7906=async _0x10e2e4=>{const _0x49115c=_0x2d6c;(await this[_0x49115c(0x3a4)]['requireSession'](_0x10e2e4))[_0x49115c(0x595)]['pipe'](_0x3757e3['filter'](_0x4e2e73=>_0x4e2e73[_0x49115c(0x4bb)]===_0x3a5d3a[_0x49115c(0x442)][_0x49115c(0x3cc)]),_0x3757e3[_0x49115c(0x218)](this[_0x49115c(0x4af)]))[_0x49115c(0x1b3)](_0x2d9a5f=>{const _0x5c35ad=_0x49115c,_0x22f58c=_0x2d9a5f,{reason:_0x45b2f7}=_0x22f58c[_0x5c35ad(0x527)];this[_0x5c35ad(0x43e)][_0x5c35ad(0x4d3)](_0x116b36['IMessageService'])['show']({'type':_0x24f161[_0x5c35ad(0x1aa)][_0x5c35ad(0x1f2)],'content':this[_0x5c35ad(0x17e)]['t'](_0x5c35ad(0x4ce))+'('+_0x45b2f7+')'}),this[_0x5c35ad(0x238)][_0x5c35ad(0x515)](new _0x12c1fe['WorkbookEditablePermission'](_0x10e2e4)['id'],!0x1),this[_0x5c35ad(0x3a4)]['closeSession'](_0x10e2e4);});};_0x2ca9ec[_0x2db871(0x52d)](this[_0x2db871(0x49d)][_0x2db871(0x3f8)](_0x514eda[_0x2db871(0x1e0)]['UNIVER_SHEET']),this['_univerInstanceService']['getTypeOfUnitAdded$'](_0x514eda[_0x2db871(0x1e0)][_0x2db871(0x34f)]))[_0x2db871(0x2b9)](_0x3757e3['map'](_0x2d76f2=>_0x2d76f2['getUnitId']()),_0x3757e3['filter'](_0x576bf5=>!_0x514eda[_0x2db871(0x517)](_0x576bf5)),_0x3757e3['takeUntil'](this[_0x2db871(0x4af)]))['subscribe'](_0x3a10f5=>{_0x3c7906(_0x3a10f5);});}[_0x52ce28(0x1d5)](){const _0x169d82=_0x52ce28,_0x32e1d1=async _0x5ed566=>{const _0x3ae82c=_0x2d6c;(await this['_collaborationSessionService'][_0x3ae82c(0x295)](_0x5ed566))[_0x3ae82c(0x595)][_0x3ae82c(0x2b9)](_0x3757e3[_0x3ae82c(0x56d)](_0x6d8769=>_0x6d8769[_0x3ae82c(0x4bb)]===_0x3a5d3a[_0x3ae82c(0x442)][_0x3ae82c(0x52a)]),_0x3757e3[_0x3ae82c(0x218)](this[_0x3ae82c(0x4af)]))[_0x3ae82c(0x1b3)](_0x3107f2=>{const _0x17920c=_0x3ae82c,_0x1906a0=_0x3107f2,{objectId:_0x4e95bb}=_0x1906a0[_0x17920c(0x527)],_0x4846dc=this[_0x17920c(0x43e)][_0x17920c(0x4d3)](_0x30c556[_0x17920c(0x51c)]);_0x4e95bb===_0x5ed566?_0x4846dc[_0x17920c(0x59f)](_0x5ed566):_0x4846dc['refreshPermission'](_0x5ed566,_0x4e95bb);});};_0x2ca9ec['merge'](this[_0x169d82(0x49d)][_0x169d82(0x3f8)](_0x514eda[_0x169d82(0x1e0)]['UNIVER_SHEET']),this[_0x169d82(0x49d)][_0x169d82(0x3f8)](_0x514eda[_0x169d82(0x1e0)][_0x169d82(0x34f)]))['pipe'](_0x3757e3[_0x169d82(0x287)](_0x3c45a1=>_0x3c45a1[_0x169d82(0x2da)]()),_0x3757e3['filter'](_0x501cca=>!_0x514eda[_0x169d82(0x517)](_0x501cca)),_0x3757e3['takeUntil'](this['dispose$']))[_0x169d82(0x1b3)](_0x5039b2=>{_0x32e1d1(_0x5039b2);});}};_0x413ffa=_0x374720([_0x58efd1(0x0,_0x514eda[_0x52ce28(0x324)](_0x514eda[_0x52ce28(0x228)])),_0x58efd1(0x1,_0x514eda[_0x52ce28(0x29d)]),_0x58efd1(0x2,_0x514eda['IPermissionService']),_0x58efd1(0x3,_0x514eda[_0x52ce28(0x324)](_0x2143a3[_0x52ce28(0x3f3)])),_0x58efd1(0x4,_0x514eda[_0x52ce28(0x324)](_0x514eda[_0x52ce28(0x440)]))],_0x413ffa);var _0x27ca51=Object[_0x52ce28(0x1fd)],_0x15a0d4=Object[_0x52ce28(0x493)],_0xb6e41a=(_0x4478bb,_0xb806cc,_0x418854,_0x395445)=>{const _0x3b9057=_0x52ce28;for(var _0x4f9c59=_0x395445>0x1?void 0x0:_0x395445?_0x15a0d4(_0xb806cc,_0x418854):_0xb806cc,_0x311394=_0x4478bb[_0x3b9057(0x47c)]-0x1,_0xd46fef;_0x311394>=0x0;_0x311394--)(_0xd46fef=_0x4478bb[_0x311394])&&(_0x4f9c59=(_0x395445?_0xd46fef(_0xb806cc,_0x418854,_0x4f9c59):_0xd46fef(_0x4f9c59))||_0x4f9c59);return _0x395445&&_0x4f9c59&&_0x27ca51(_0xb806cc,_0x418854,_0x4f9c59),_0x4f9c59;},_0x5d87db=(_0x2ba350,_0x4b4c95)=>(_0x357eef,_0x57ef98)=>_0x4b4c95(_0x357eef,_0x57ef98,_0x2ba350);_0x2143a3[_0x52ce28(0x456)]=class{constructor(_0x44b29c,_0x250bda){const _0x3265fb=_0x52ce28;this['_configService']=_0x44b29c,this[_0x3265fb(0x1a7)]=_0x250bda;}async[_0x52ce28(0x2b6)](_0xfadcf0,_0x4b4832){const _0x57838a=_0x52ce28;var _0x4e8cd7;const {unitID:_0x410446,type:_0x12b6e4,revision:_0x3e0985=0x0}=_0x4b4832,_0x55f91a=this[_0x57838a(0x3c2)]()+'/'+_0x12b6e4+_0x57838a(0x4e7)+_0x410446+_0x57838a(0x4dd)+_0x3e0985,_0x2712f5=(await this['_httpService'][_0x57838a(0x4d3)](_0x55f91a))[_0x57838a(0x1ee)],_0x16dd05=(_0x4e8cd7=_0x2712f5[_0x57838a(0x2eb)])==null?void 0x0:_0x4e8cd7[_0x57838a(0x333)];if(_0x16dd05){const _0x34b3cf=_0x16dd05==null?void 0x0:_0x16dd05[_0x57838a(0x3c0)],_0x2f5cb2=_0x3a5d3a[_0x57838a(0x27d)][_0x57838a(0x46f)](_0x3a5d3a[_0x57838a(0x17c)](_0x34b3cf));_0x16dd05[_0x57838a(0x3c0)]=_0x2f5cb2,Object[_0x57838a(0x1c2)](_0x16dd05[_0x57838a(0x263)])[_0x57838a(0x317)](([,_0x27ddd7])=>{const _0x4c8834=_0x57838a,_0x2419b0=_0x27ddd7[_0x4c8834(0x3c0)],_0xbf88f2=_0x3a5d3a['textEncoder']['encode'](_0x3a5d3a[_0x4c8834(0x17c)](_0x2419b0));_0x27ddd7['originalMeta']=_0xbf88f2;});}return _0x2712f5;}async['getSheetBlock'](_0x4fce31,_0x10ceb9){const _0x3484db=_0x52ce28,{unitID:_0x1f3219,type:_0x288fb8,blockID:_0x1e12e0}=_0x10ceb9,_0x10c88c=this[_0x3484db(0x2de)]()+'/'+_0x288fb8+'/unit/'+_0x1f3219+_0x3484db(0x4f0)+_0x1e12e0;return(await this[_0x3484db(0x1a7)][_0x3484db(0x4d3)](_0x10c88c))[_0x3484db(0x1ee)];}async[_0x52ce28(0x293)](_0x597954,_0x3a0f8b){const _0x20930b=_0x52ce28,{unitID:_0x47a0c2,type:_0x26278b,blockID:_0x2b712e}=_0x3a0f8b,_0x1fa87e=this[_0x20930b(0x2de)]()+_0x20930b(0x4f0)+_0x26278b+_0x20930b(0x4e7)+_0x47a0c2+_0x20930b(0x4f0)+_0x2b712e;return(await this['_httpService'][_0x20930b(0x4d3)](_0x1fa87e))[_0x20930b(0x1ee)];}async[_0x52ce28(0x4e4)](_0x5bfb0e,_0x419cf0){const _0x5b8ba6=_0x52ce28,{unitID:_0xba569,type:_0x52f518,from:_0x2c1cf2,to:_0x1839d0}=_0x419cf0,_0x3c3da9=this[_0x5b8ba6(0x2de)]()+'/'+_0x52f518+_0x5b8ba6(0x4e7)+_0xba569+'/fetchmissing?from='+_0x2c1cf2+_0x5b8ba6(0x3eb)+_0x1839d0;return(await this['_httpService'][_0x5b8ba6(0x4d3)](_0x3c3da9))[_0x5b8ba6(0x1ee)];}[_0x52ce28(0x3c2)](){const _0x3014d0=_0x52ce28;var _0x228caf;return(_0x228caf=this[_0x3014d0(0x38a)][_0x3014d0(0x490)](_0x144e81))!=null?_0x228caf:this[_0x3014d0(0x2de)]();}[_0x52ce28(0x2de)](){const _0x339520=_0x52ce28;var _0x4d4f4d,_0x27c5ff;const _0x215c7a=this[_0x339520(0x38a)]['getConfig'](_0x32344d),_0x495657=this[_0x339520(0x38a)]['getConfig'](_0xb94ed4);return(_0x27c5ff=(_0x4d4f4d=_0x495657==null?void 0x0:_0x495657['snapshotServerUrl'])!=null?_0x4d4f4d:_0x215c7a)!=null?_0x27c5ff:_0x4fedf2;}async[_0x52ce28(0x41b)](_0x1c67b7,_0x5d7cee){const _0x3e7727=_0x52ce28,_0x471a1e=_0x3e7727(0x21f)+_0x5d7cee[_0x3e7727(0x37c)]+_0x3e7727(0x4e7)+_0x5d7cee['unitID']+_0x3e7727(0x345);return(await this['_httpService'][_0x3e7727(0x4d3)](_0x471a1e,{'params':{'resourceId':JSON['stringify'](_0x5d7cee[_0x3e7727(0x4bf)])}}))['body'];}[_0x52ce28(0x531)](){const _0xd61d27=_0x52ce28;throw new Error(_0xd61d27(0x5aa));}['saveSheetBlock'](){const _0x13ea81=_0x52ce28;throw new Error(_0x13ea81(0x5aa));}[_0x52ce28(0x4f5)](){throw new Error('This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!');}['copyFileMeta'](){const _0x25170a=_0x52ce28;throw new Error(_0x25170a(0x5aa));}[_0x52ce28(0x3cf)](){throw new Error('This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!');}},_0x2143a3[_0x52ce28(0x456)]=_0xb6e41a([_0x5d87db(0x0,_0x514eda[_0x52ce28(0x480)]),_0x5d87db(0x1,_0x514eda[_0x52ce28(0x324)](_0x5b9e99[_0x52ce28(0x38e)]))],_0x2143a3['SnapshotServerOverHTTPService']);var _0x45c3b2=Object['defineProperty'],_0x361bce=Object[_0x52ce28(0x493)],_0x551077=(_0x5ddcd8,_0x494919,_0x49c662,_0x97a05d)=>{const _0x5021f7=_0x52ce28;for(var _0x450f4c=_0x97a05d>0x1?void 0x0:_0x97a05d?_0x361bce(_0x494919,_0x49c662):_0x494919,_0x51c8bf=_0x5ddcd8[_0x5021f7(0x47c)]-0x1,_0x17efe5;_0x51c8bf>=0x0;_0x51c8bf--)(_0x17efe5=_0x5ddcd8[_0x51c8bf])&&(_0x450f4c=(_0x97a05d?_0x17efe5(_0x494919,_0x49c662,_0x450f4c):_0x17efe5(_0x450f4c))||_0x450f4c);return _0x97a05d&&_0x450f4c&&_0x45c3b2(_0x494919,_0x49c662,_0x450f4c),_0x450f4c;},_0x626f20=(_0x3c0290,_0x338d99)=>(_0x225cad,_0x3f21a5)=>_0x338d99(_0x225cad,_0x3f21a5,_0x3c0290);let _0x11164c=class extends _0x514eda['LocalUndoRedoService']{constructor(_0x39cf96,_0x1793e2,_0x56ff67,_0x5a4e08,_0x50954f){const _0x11b57e=_0x52ce28;super(_0x39cf96,_0x1793e2,_0x56ff67),this[_0x11b57e(0x283)]=_0x5a4e08,this[_0x11b57e(0x307)]=_0x50954f;}[_0x52ce28(0x556)](_0x7aa491,_0xa1c79f){const _0x2ff9f6=_0x52ce28,_0xe45674=this[_0x2ff9f6(0x32d)](_0x7aa491);if(_0xe45674)try{const _0xac4e2d=this[_0x2ff9f6(0x366)](_0xe45674,_0xa1c79f);this['_substituteUndoStack'](_0x7aa491,_0xac4e2d);}catch(_0x5f2405){this[_0x2ff9f6(0x307)][_0x2ff9f6(0x28b)]('[CollaborationUndoRedoService]',_0x5f2405),this['_clearUndo'](_0x7aa491);}const _0x2eccdf=this[_0x2ff9f6(0x224)](_0x7aa491);if(_0x2eccdf)try{const _0x59d844=this[_0x2ff9f6(0x366)](_0x2eccdf,_0xa1c79f);this['_substituteRedoStack'](_0x7aa491,_0x59d844);}catch(_0xd2d987){this['_logService'][_0x2ff9f6(0x28b)](_0xd2d987),this['_clearRedo'](_0x7aa491);}}[_0x52ce28(0x430)](_0x4ab14c){const _0x212d8e=_0x52ce28,_0x4e2a17=this[_0x212d8e(0x32d)](_0x4ab14c);_0x4e2a17&&(_0x4e2a17['length']=0x0,this[_0x212d8e(0x4c7)]());}[_0x52ce28(0x190)](_0x10aadf){const _0x3cee19=_0x52ce28,_0x20a974=this[_0x3cee19(0x224)](_0x10aadf);_0x20a974&&(_0x20a974['length']=0x0,this[_0x3cee19(0x4c7)]());}['_substituteUndoStack'](_0x1cd7ff,_0x3719cd){const _0x49b426=_0x52ce28;this[_0x49b426(0x1b1)][_0x49b426(0x485)](_0x1cd7ff,_0x3719cd),this[_0x49b426(0x4c7)]();}['_substituteRedoStack'](_0x5a290d,_0x319405){const _0x1eaa91=_0x52ce28;this['_redoStacks']['set'](_0x5a290d,_0x319405),this[_0x1eaa91(0x4c7)]();}['_transformStack'](_0x5bf117,_0x2bc152){const _0x13dde6=_0x52ce28,_0x155bb6=[];let _0x223850=_0x2bc152,_0x3313ac=_0x2bc152;for(let _0x5d9736=_0x5bf117['length']-0x1;_0x5d9736>=0x0;_0x5d9736--){const {unitID:_0x4eff96,undoMutations:_0x311ae3,redoMutations:_0x260663}=_0x5bf117[_0x5d9736],_0x3b24fa=this['_transformService'][_0x13dde6(0x505)](_0x223850,_0x311ae3),_0x149c31=this[_0x13dde6(0x283)][_0x13dde6(0x505)](_0x3313ac,_0x260663);if(_0x3a5d3a[_0x13dde6(0x4ec)](_0x3b24fa)||_0x3a5d3a[_0x13dde6(0x4ec)](_0x149c31)){this[_0x13dde6(0x307)][_0x13dde6(0x28b)](_0x13dde6(0x577),'transformStack\x20failed!',_0x3b24fa,_0x149c31);break;}_0x223850=_0x3b24fa['c1Prime'],_0x3313ac=_0x149c31[_0x13dde6(0x3fa)],_0x155bb6[_0x13dde6(0x47b)]({'unitID':_0x4eff96,'undoMutations':_0x3b24fa[_0x13dde6(0x5a6)],'redoMutations':_0x149c31[_0x13dde6(0x5a6)]});}return _0x155bb6['reverse']();}};_0x11164c=_0x551077([_0x626f20(0x0,_0x514eda['IUniverInstanceService']),_0x626f20(0x1,_0x514eda[_0x52ce28(0x289)]),_0x626f20(0x2,_0x514eda['IContextService']),_0x626f20(0x3,_0x3a5d3a[_0x52ce28(0x231)]),_0x626f20(0x4,_0x514eda['ILogService'])],_0x11164c);class _0x5d9460 extends _0x514eda[_0x52ce28(0x18e)]{constructor(){const _0x39e752=_0x52ce28;super(),_0x2406c5(this,_0x39e752(0x247)),this[_0x39e752(0x247)]=_0x2ca9ec[_0x39e752(0x402)](window,'popstate')[_0x39e752(0x2b9)](_0x2ca9ec[_0x39e752(0x218)](this['dispose$']),_0x2ca9ec[_0x39e752(0x30b)](0x1),_0x2ca9ec[_0x39e752(0x26b)](void 0x0));}[_0x52ce28(0x27c)](_0x297112,_0x1e302f,_0x55c96c=!0x1){const _0x413679=_0x52ce28,_0x692920=new URL(window[_0x413679(0x4e5)]['href']);_0x692920[_0x413679(0x4dc)]['set'](_0x297112,_0x1e302f),_0x55c96c?window[_0x413679(0x475)][_0x413679(0x21d)]('','',_0x692920[_0x413679(0x252)]()):window[_0x413679(0x475)][_0x413679(0x57f)]('','',_0x692920['toString']());}[_0x52ce28(0x3bd)](_0x4583a0,_0x10a3e8=!0x1){const _0x1b082f=_0x52ce28,_0x2826ec=new URL(window[_0x1b082f(0x4e5)][_0x1b082f(0x594)]);_0x2826ec['searchParams'][_0x1b082f(0x3ba)](_0x4583a0),_0x10a3e8?window['history'][_0x1b082f(0x21d)]('','',_0x2826ec[_0x1b082f(0x252)]()):window[_0x1b082f(0x475)][_0x1b082f(0x57f)]('','',_0x2826ec['toString']());}['getParam'](_0x27710f){const _0x42b82a=_0x52ce28;var _0x2bf275;return(_0x2bf275=new URL(window[_0x42b82a(0x4e5)][_0x42b82a(0x594)])[_0x42b82a(0x4dc)][_0x42b82a(0x4d3)](_0x27710f))!=null?_0x2bf275:void 0x0;}}var _0x1b6256=Object['defineProperty'],_0x4d7901=Object[_0x52ce28(0x493)],_0x2c428b=(_0x1ae960,_0x3ccb02,_0xe26156)=>_0x3ccb02 in _0x1ae960?_0x1b6256(_0x1ae960,_0x3ccb02,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0xe26156}):_0x1ae960[_0x3ccb02]=_0xe26156,_0x6d9960=(_0x15222a,_0x2c19e3,_0x52358b,_0x452702)=>{const _0x4a67b9=_0x52ce28;for(var _0x2fd538=_0x452702>0x1?void 0x0:_0x452702?_0x4d7901(_0x2c19e3,_0x52358b):_0x2c19e3,_0x3f8dfe=_0x15222a[_0x4a67b9(0x47c)]-0x1,_0x14d9ad;_0x3f8dfe>=0x0;_0x3f8dfe--)(_0x14d9ad=_0x15222a[_0x3f8dfe])&&(_0x2fd538=(_0x452702?_0x14d9ad(_0x2c19e3,_0x52358b,_0x2fd538):_0x14d9ad(_0x2fd538))||_0x2fd538);return _0x452702&&_0x2fd538&&_0x1b6256(_0x2c19e3,_0x52358b,_0x2fd538),_0x2fd538;},_0x4c03ef=(_0x3b4329,_0x1b0598)=>(_0x19f305,_0x136fd2)=>_0x1b0598(_0x19f305,_0x136fd2,_0x3b4329),_0x2794de=(_0x224592,_0x22b998,_0x48ebe7)=>_0x2c428b(_0x224592,_0x22b998+'',_0x48ebe7);const _0x369d38=_0x52ce28(0x5a5);_0x2143a3[_0x52ce28(0x3ac)]=class extends _0x514eda[_0x52ce28(0x473)]{constructor(_0x3f6cdd=_0x1bd336,_0x1da4ee,_0x31c0a5,_0x2e702f,_0x1bf7df){const _0x1264a9=_0x52ce28;super(),this['_config']=_0x3f6cdd,this[_0x1264a9(0x307)]=_0x1da4ee,this[_0x1264a9(0x455)]=_0x31c0a5,this[_0x1264a9(0x43e)]=_0x2e702f,this['_configService']=_0x1bf7df;const {..._0x358dd1}=this[_0x1264a9(0x4c5)];this[_0x1264a9(0x38a)][_0x1264a9(0x1e8)](_0xb94ed4,_0x358dd1);}[_0x52ce28(0x571)](){const _0xac83a3=_0x52ce28;this['_registerDependencies'](),_0x514eda['touchDependencies'](this[_0xac83a3(0x43e)],[[_0x1b49de],[_0x2143a3['DataLoaderController']],[_0x413ffa]]);}[_0x52ce28(0x268)](){const _0x2066b2=_0x52ce28;_0x514eda['touchDependencies'](this[_0x2066b2(0x43e)],[[_0x164bed]]);}['onRendered'](){const _0x187975=_0x52ce28;this[_0x187975(0x548)]();}[_0x52ce28(0x27a)](){const _0x366a9e=_0x52ce28;var _0x7ed4fc,_0x3aa8d8,_0x44d0c8,_0x17b10e;this[_0x366a9e(0x43e)][_0x366a9e(0x2ab)](_0x514eda['IUndoRedoService'])&&this[_0x366a9e(0x307)][_0x366a9e(0x28b)](_0x366a9e(0x202),'you\x20should\x20override\x20\x22IUndoRedoService\x22\x20provided\x20in\x20\x22core\x22\x20package!');let _0x3795da=[[_0x514eda[_0x366a9e(0x220)],{'useClass':_0x11164c}],[_0x2143a3['CollaborationSessionService']],[_0x59b125],[_0x5b9e99[_0x366a9e(0x38e)]],[_0x59183f,{'useClass':_0x5d9460}],[_0x5da513],[_0x2143a3['LocalCacheService']],[_0x5b9e99[_0x366a9e(0x4fa)]],[_0x2da596],[_0x30b76d],[_0x11b33f],[_0x8e44ac],[_0x112e4b],[_0x43ee6d],[_0x31fa5b],[_0x413ffa],[_0x8c5f57,{'useClass':(_0x3aa8d8=(_0x7ed4fc=this[_0x366a9e(0x4c5)])==null?void 0x0:_0x7ed4fc[_0x366a9e(0x395)])!=null?_0x3aa8d8:_0x2143a3['CollaborationSocketService']}],[_0x5b9e99[_0x366a9e(0x49c)],{'useClass':_0x5b9e99['XHRHTTPImplementation']}],[_0x3a5d3a['ISnapshotServerService'],{'useClass':_0x2143a3[_0x366a9e(0x456)]}],[_0x514eda[_0x366a9e(0x4b4)],{'useClass':_0x2143a3['AuthzIoHttpService']}],[_0x5277be['IImageIoService'],{'useClass':_0x2143a3[_0x366a9e(0x4d1)]}],[_0x2143a3[_0x366a9e(0x56f)]],[_0x2143a3[_0x366a9e(0x526)]],[_0x2143a3[_0x366a9e(0x52b)]],[_0x164bed],[_0x1b49de]];(_0x44d0c8=this[_0x366a9e(0x4c5)])!=null&&_0x44d0c8[_0x366a9e(0x1e1)]&&_0x3795da[_0x366a9e(0x47b)]([_0x701040,{'useClass':_0x496f50}]),_0x3795da=_0x514eda[_0x366a9e(0x3c4)](_0x3795da,(_0x17b10e=this[_0x366a9e(0x4c5)])==null?void 0x0:_0x17b10e[_0x366a9e(0x3d9)]),_0x3795da[_0x366a9e(0x317)](_0x154857=>this['_injector'][_0x366a9e(0x24c)](_0x154857)),this[_0x366a9e(0x2dd)]();}[_0x52ce28(0x548)](){const _0xe5fabd=_0x52ce28;this[_0xe5fabd(0x3ad)](this[_0xe5fabd(0x455)]['registerRenderModule'](_0x514eda[_0xe5fabd(0x1e0)][_0xe5fabd(0x34f)],[_0x238fa5])),this[_0xe5fabd(0x3ad)](this[_0xe5fabd(0x455)][_0xe5fabd(0x211)](_0x514eda['UniverInstanceType']['UNIVER_SHEET'],[_0x34520c]));}[_0x52ce28(0x2dd)](){const _0x43c949=_0x52ce28;var _0x20b0d9,_0x34d9b9;this[_0x43c949(0x43e)]['get'](_0x5b9e99[_0x43c949(0x38e)])[_0x43c949(0x4eb)]({'priority':0x14,'interceptor':_0x5b9e99[_0x43c949(0x45d)]({'maxParallel':0x6})}),this[_0x43c949(0x43e)][_0x43c949(0x4d3)](_0x43ee6d),(_0x20b0d9=this['_config'])!=null&&_0x20b0d9[_0x43c949(0x4d4)]||this['_injector'][_0x43c949(0x4d3)](_0x2143a3[_0x43c949(0x472)])[_0x43c949(0x518)](),(_0x34d9b9=this[_0x43c949(0x4c5)])!=null&&_0x34d9b9[_0x43c949(0x33c)]&&this[_0x43c949(0x43e)][_0x43c949(0x4d3)](_0x112e4b),this[_0x43c949(0x43e)][_0x43c949(0x4d3)](_0x2143a3[_0x43c949(0x56f)]),this[_0x43c949(0x43e)][_0x43c949(0x2ab)](_0x2143a3[_0x43c949(0x52b)])&&this[_0x43c949(0x43e)][_0x43c949(0x4d3)](_0x2143a3[_0x43c949(0x52b)]);}},_0x2794de(_0x2143a3['UniverCollaborationClientPlugin'],_0x52ce28(0x3e1),_0x369d38),_0x2143a3[_0x52ce28(0x3ac)]=_0x6d9960([_0x514eda[_0x52ce28(0x3e9)](_0x3a5d3a[_0x52ce28(0x55c)]),_0x4c03ef(0x1,_0x514eda[_0x52ce28(0x1f6)]),_0x4c03ef(0x2,_0x29b5d0[_0x52ce28(0x1d9)]),_0x4c03ef(0x3,_0x514eda[_0x52ce28(0x324)](_0x514eda['Injector'])),_0x4c03ef(0x4,_0x514eda[_0x52ce28(0x480)])],_0x2143a3[_0x52ce28(0x3ac)]),_0x2143a3[_0x52ce28(0x42b)]=_0x4a53f4,_0x2143a3[_0x52ce28(0x5a3)]=_0x4e1123,_0x2143a3[_0x52ce28(0x552)]=_0x43aaf,_0x2143a3[_0x52ce28(0x339)]=_0x23695f,_0x2143a3[_0x52ce28(0x316)]=_0x3f58e8,_0x2143a3['CommentService']=_0x31fa5b,_0x2143a3[_0x52ce28(0x385)]=_0x2bd937,_0x2143a3[_0x52ce28(0x43a)]=_0x2e697d,_0x2143a3[_0x52ce28(0x441)]=_0x8c5f57,_0x2143a3[_0x52ce28(0x330)]=_0x59183f,_0x2143a3[_0x52ce28(0x3d3)]=_0x4329e9,_0x2143a3[_0x52ce28(0x1ea)]=_0x33aa97,_0x2143a3['RETRY_CONNECTING_MAX_COUNT_KEY']=_0x1769f4,_0x2143a3[_0x52ce28(0x180)]=_0x310373,_0x2143a3[_0x52ce28(0x351)]=_0x32344d,_0x2143a3[_0x52ce28(0x35b)]=_0x144e81,_0x2143a3[_0x52ce28(0x28e)]=_0x1e45f8,_0x2143a3['SheetCollabCursorShape']=_0x4b13ad,_0x2143a3[_0x52ce28(0x237)]=_0x5d9460,_0x2143a3[_0x52ce28(0x457)]=_0xceda9e,_0x2143a3[_0x52ce28(0x24d)]=_0xe4f417,Object['defineProperty'](_0x2143a3,Symbol[_0x52ce28(0x390)],{'value':_0x52ce28(0x47e)});}));function _0x2d6c(_0x9e1cbc,_0x550e0e){const _0x32ce8d=_0x32ce();return _0x2d6c=function(_0x2d6cda,_0x211e87){_0x2d6cda=_0x2d6cda-0x174;let _0x383a56=_0x32ce8d[_0x2d6cda];return _0x383a56;},_0x2d6c(_0x9e1cbc,_0x550e0e);}function _0x32ce(){const _0x5bbcf7=['registerHTTPInterceptor','isTransformMutationsWithChangesetFailure','currentSkeleton$','_singleActiveUnitService','blue400','/block/','use','stringify','toLowerCase','purple300','saveChangeset','onRemoteRej','RichTextEditingMutation','hovered','1em','WebSocketService','displayName','[CollaborationSessionService]','_retryCount','isTransformChangesetsSuccess','_socketService','onTransformSelections','@univerjs/docs','@univerjs-pro/license','WorkbookEditablePermission','JOIN','transformMutationsWithChangeset','@univerjs/rpc','getActiveSheet','_hovered','COMPRESS_MUTATION_SEND','_getDownloadEndpointURL','size','_localCacheService','round','now','_onRefRangeChange','_joinRoom','bind','COMPRESS_MUTATION_APPLY','YUUMI_UNABLE_LOAD_URL','collabStatus.conflict','updatePermissionPoint','isTransformMutationFailure','isInternalEditorID','disableLocalCache','HttpImport','InsertColCommandId','getCollabCursors$','SheetPermissionInitController','state','APPLY_DUPLICATED','_onLocalMutation','extend','getColor','_startCollaboration','_notificationService','_transformPreviousActiveRange','_clearCollaborationTimeoutTimer','DataLoaderController','data','fillRule','YUUMI_URL_COL_OUT_OF_RANGE','UPDATE_PERMISSION_OBJ','DesktopCollaborationStatusDisplayController','ImageUploadStatusType','merge','LICENSE_EXPORT_SIZE_EXCEEDED','collaborators','_handler','saveSnapshot','subscribeEvent','_drawRectRange','_entityInit$','UniverSheets','_onRemoteChangeset','Undefined','\x0aAfter:\x20','startsWith','_syncEditingCollabCursor','_transformRemoteChangesetByIMECache','transformChangesets','_name','concat','transformSelections','onlineStatus','_startSheetCollabCursor','LICENSE_IMPORT_SIZE_EXCEEDED','DEFAULT_FILE_NAME','...','fromEventSubject','_cachedData','_toggleOnline','_registerRenderDependencies','COLORS','HEARTBEAT','collab-rect-range-','_sheetSkeletonManagerService','text','_waitCount','_backgroundColor','\x20to\x20','fillStyle','COLLAB_WEB_SOCKET_URL_KEY','close','getSheetObject','CollaborationSession','transformUndoRedo','onSendChangeset','routeKey','useDependency','\x20in\x20_schedule.','function','UniverCollaborationPlugin','sendChangesetTimeout','FETCH_MISS','/object','session.collaboration-timeout','getRangePointData','fetchMiss','getUnitType','APPLY_REJECT','appendMutation','loadOfflineData','_listenToOfflineEvent','mutations','div','column','deepClone','_collabCursorController','filter','min','CollaborationController','allowed','onStarting','getInterceptPoints','LIVESHARE_REQUEST_HOST','addObject','NO_OTHER_CLIENTS_EDITING','onTransformIME','[CollaborationUndoRedoService]','collaboration-client.offline-data-not-saved','none','_docStateChangeManagerService','listCollaborators','_handleJoinEvent','0\x200\x2017\x2016','UniverLicense','pushState','OnLineSingle','onRemoteAck','_transformUndoRedoStack','/universer-api/snapshot','DocIMEInputManagerService','_sheetTransformSelectionsService','CONNECTOR_DATA_TOO_LARGE','getUndoRedoMutationParamsCache','UniverDrawing','univer-online-status-title','@univerjs/telemetry','IDLE','[CollaborationSocketService]:\x20failed\x20to\x20create\x20socket!','SheetsSelectionsService','UniverDocsUi','_waitForHeartbeatResponse','@univerjs/core','_onConflict','parseProtocolChangeset','FETCH_MISSING','href','event$','triggerDblclick','x-univer-host','conflict.content','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','changesets','83288kkiuWI','replaceTextRanges','SYNCED','getSheetId','initWorkbookPermissionChange','LIVESHARE_TERMINATE','synced','includes','COLLAB_SUBMIT_CHANGESET_URL_KEY','moveTo','UNIVER_COLLABORATION_CLIENT_PLUGIN','m2Prime','APPLY_NON_SEQUENTIAL_REVISION','Cannot\x20assemble\x20a\x20changeset\x20from\x20multiple\x20mutations\x20of\x20different\x20types:\x20','_init','This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!','exports','whenReady','origin','_getLoginPath','_initRequestHeader','connectInjector','_colorIndex','bottom','_clearHeartbeatTimer','b64DecodeUnicode','RECV','_localeService','[OfflineState]:\x20received\x20acknowledgement.','SEND_CHANGESET_TIMEOUT_KEY','Subject','JOINING','2157749BYvBMT','_scheduleTimestamp','measureText','_createSocket','subunit','top','748194YpOBHO','/universer-api/oidc/authpage','PENDING','UNIVER_PROJECT','/allowed','RxDisposable','_online','_clearRedo','_submitChangeset','_rescheduleHeartbeat','AuthzIoHttpService','_replayCachedMutations','/universer-api/stream/file/upload','sessionStatus','_draw','DocStateChangeManagerService','[DataLoaderController]','SetWorksheetActivateCommand','downloadEndpointUrl','string','MoveRangeCommandId','@univerjs/drawing','JSONX','_getSendChangesetTimeout','APPLY_REVISION_CONFILICT','SetSelectionsOperation','liveShareNewHost','getRenderById','enableLocalCache','AWAITING_WITH_PENDING','_httpService','isTransformMutationsWithChangesetSuccess','CommandType','MessageType','UniverDocs','UNIVER_SHEET','[PendingState]:\x20received\x20rejection.','?url=','roomMembers$','_executeRemoteChangeset','_undoStacks','_scheduleClearOtherTimer','subscribe','csRejEvent','revision','onlyLocal','src','_ensureSubject','LEAVE','append','[OfflineState]:\x20received\x20rejection.','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','DocSelectionManagerService','result','updateCollaborator','_members','action','entries','UserManagerService','_docTransformIMECacheService','unit-cache-','_getSignURL','createIdentifier','loginUrlKey','@univerjs/design','toRgbString','SNAPSHOT_INVALID_SNAPSHOT','method','hasOwnProperty','UNKNOWN_CODE','_anchor','ILocalStorageService','_hideTimer','ACTIVE_UNIT_EVENT_CHANNEL','getCurrentUser','getRandomValues','_initUnitPermissionChange','rxjs/operators','stopTime','TOO_MANY_REQUESTS','IRenderManagerService','some','reduce','getRoom','unsubscribe','image/jpeg','next','UniverInstanceType','enableSingleActiveInstanceLock','debug','Unknown\x20user','VIEWPORT_KEY','getMemberID','_updateSubUnitFromURLParams','transformRemoteChangeset','setConfig','_throwTelemetryCollaborationNewChangeset','LOGIN_URL_KEY','NodePositionConvertToCursor','@univerjs/engine-render','_http','body','8ZsnrtT','_themeService','ImageSourceType','Error','call','socket\x20open.','connection\x20error','ILogService','submit\x20changeset\x20error!','contains','HELLO','getCurrent','setInterval','on-line-single','defineProperty','_selfUnitIDs','max','OTHER_CLIENTS_EDITING','0\x200\x2016\x2016','[UniverCollaborationClientPlugin]','skeleton','leaveEvent','_awaitingChangeset','replace','_queuedRemoteChangesets','collaboration_new_changeset','[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.','@univerjs/network','_cursor','_collaborationController','_heartbeatTimer','verdancy600','TEXT_RANGE_LAYER_INDEX','restore','registerRenderModule','url(#$1','interceptor','jiqing500','PERMISSION_DENIED','_scheduleSaving','conflict.title','takeUntil','session','_getAnchorBounding','UniverUi','fill','replaceState','switchMap','/universer-api/snapshot/','IUndoRedoService','_shapes','target','_syncEditingCollabCursorService','_getRedoStack','getMergeData','_applyRemoteChangeset','Workbook','Injector','HEARTBEAT_INTERVAL','_collaborationPaused','trim','getOffsetConfig','_cursorShapes','SheetCollaborationEntity','_localStorageService','_snapshotServerService','ITransformService','_handleHeartbeatEvent','image/gif','CHANGESET_ACK','toggleOnline','/new_changes','WebURLService','_permissionService','collabStatus.fetchMiss','@univerjs/docs-ui','RevisionService','post','getVpScrollXYInfoByPosToVp','_exhaustRemoteChangesetQueue','Univer','resize','_labelPosition','_socketMessageSubscription','headers','indexOf','_type','cursorInfo$','urlChange$','_scheduleCollaborationTimeoutTimer','OFFLINE','getWorkbookSelections','[CollaborationController]:\x20invalid\x20univer\x20type:\x20','add','serializeCombRequest','labelPosition','shouldCloseConn','objectID','startColumn','toString','[FetchingMissState]:\x20invalid\x20calling\x20to\x20`resend`.','_drawTextRange','@univerjs-pro/collaboration','CHANGESET_REVISION_CONFILICT','ALREADY_EXISTS','_instanceService','objectType','createSocket','status','CompressMutationService','DocCollaborationEntity','_lastPointer','onlineStatusIcon','collabCursorState$','unitID','setUndoRedoMutationParamsCache','sheets','permission.content','from','fetching\x20missing\x20changesets\x20from\x20','_onRecvEvent','onReady','setAlpha','updateCursorEvent','mapTo','CollaborationEntity','#fff','code','number','fromCollab','_socketReady','ColorKit','_scheduleHeartbeat','getActiveRange','textRanges','_updateLocalCursor','MSG_FOR_ERROR','/-/object/-/batch_allowed','EffectRefRangId','_registerDependencies','Vector2','setParam','textEncoder','_lockTransition','tag','_commentService','rxjs','_initStatusComponent','_transformService','MUTATION','getFocusedUnit','commentUpdate$','map','setTimeout','ICommandService','registerRefRange','error','SUCCUSS','fetch_missing','SessionStatus','_transformIMECache','_commentUpdate$','_event$','collabStatus.notCollab','getDeserializedSheetBlock','UNAUTHENTICATED','requireSession','2394285MHHIxn','asObservable','LICENSE_MAX_UNITS_EXCEEDED','collab-text-range-','getAncestorScale','InsertSheetMutation','_sendingTimer','IUniverInstanceService','session.connection-failed','USERS_LEAVE','_showConflictNotification','ThemeService','@univerjs/engine-formula','defs','_updateLocalCache','HEARTBEAT_TIMEOUT','visibilityState','_startDocCollabCursor','random','EmptyMutation','transformByState','has','exhaustSavingTask','FAIL','onCommentUpdate','_send','_incrementRevisionNumber','CHANGESET_REJ','_getScale','[CollaborationSession]','params','_cursorInfo$','getUnitOnRev','VIEW_MAIN','addImageSourceCache','pipe','pending','all','_tryReconnect','transformIMECache','getImageSourceCache','getUnitStatus$','_context','_clearLocalCache','visibilitychange','@univerjs/sheets','_roomMembers','collab-text-anchor-','image/jpg','getCurrentSelections','_onFetchMissResult','defIds','onCommandExecuted','isArray','_initStatusListener','evenodd','joinEvent','init','rev','_snapshotService','sheetId','Optional','collaMsg','_disableEditing','_listenToOnlineEvent','awaiting','range','SUBMIT_CHANGESET','getUnitId','54580NSOZdv','parseChangesetToProtocol','_initModules','_getAPIPrefix','prototype','image/png','children','uni.network.url-service','_onCursorUpdate','SnapshotService','UNRECOGNIZED','close$','_clearScheduledTask','ranges','retryConnectingInterval','[CollaborationEntity]','snapshot','url(#on-line-single_clip0_910_349)','sid','closePath','createCollaborator','univerjs-icon\x20univerjs-icon-','icon','_shouldReportTelemetry','_sendHeartbeatTimer','_transitionLocked','#FFF','_saveCache','_initCommandExecutedListener','_unitOnClients','show','CollaborationSocketService','name','_timeoutTimer','serializeRangeWithSheet','handleInsertCol','_decreaseWaiting','_state$','onMouseMove','_pendingMutations','_sendHeartbeat','YUUMI_SUBSCRIPTION_NOT_FOUND','UNIVER_SLIDE','split','_logService','RegularPolygon','_startTelemetryCollaborationNewChangeset','_docSkeleton','shareReplay','with','createElement','_state','getOwnPropertySymbols','_onOffline','_docTransformSelectionsService','_refreshCollabCursors','onTransformChange$','activeSheet$','[CollaborationSessionService]:\x20socket\x20error','CollaborationStatusDisplay','forEach','objects','9ThaRXc','/role','_schedule','COMPLETION_FINISHED','_onUserLeave','Rectangle','APPLY_PERMISSION_DENIED','readAsDataURL','_unitStatus','_toggleOffline','_changesetSessionId','Inject','parse','_onCursorDelete','c2Prime','_saveTaskMap','_userManagerService','Shape','_range','_hover','_getUndoStack','/object/','_status$','IURLService','[CollaborationEntity]:\x20cannot\x20apply\x20missing\x20results\x20on\x20other\x20states!','isActive','workbook','_loadSheet','getTime','SNAPSHOT_HAS_BEEN_REMOVED','setCurrentUser','put','CollaborationStatus','catch','idSuffix','enableAuthServer','UniverCollaboration','_remoteChangesetQueue','on-line-single_clip0_910_349','_collabCursorState$','SetDocZoomRatioOperation','unknown','_refRangeService','runRefRangeMutations','/resources','UniverIcon','[PendingState]:\x20unhandled\x20univer\x20type:\x20','_candidateSocket','combineLatest','mapDocumentTypeToUniverType','[SyncedState]:\x20received\x20rejection.','_ws','_onRemoteRejected','/collaborator','UNIVER_DOC','_isPermissionRej','SNAPSHOT_SERVER_URL_KEY','_colorAssignService','HTTPRequest','UNKNOWN_CMD','arc','_onRemoteACK','setActiveRange','clipPath','_drawAnchor','telemetry\x20info\x20is\x20not\x20initialized','SNAPSHOT_URL_KEY','loadSheet','closeSession','_replaceFileID','conflict','onPointerMove$','369ftbxyJ','_getAPIPrefixPath','\x0aCurrent:\x20','complete','SetTextSelectionsOperation','_transformStack','NOT_COLLAB','getMember','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','lineTo','_beforeCloseService','_collaborationTimeoutTimer','_removeCollabCursors','current','ws://127.0.0.1:8000/universer-api/comb/connect','_uiPartsService','unshift','_initResize','handleDeleteRangeMoveUp','dispose','getValue','ENSURE_SNAPSHOT_EXECUTION','/universer-api/file/{fileID}/sign-url','_getSaveTimeout','YUUMI_RATE_OVER_LIMIT','_handleLeaveEvent','collaboration-session-retry','type','_scene','_updateURLWithCurrentState','FileId','_cursors','object','resolve','Tools','unitId','HEARTBEAT_INTERVAL_KEY','getSheetBySheetId','clearTimeout','unit','RemoveRowCommandId','_configService','_onCombEvent','_transformUndoredo','deleteCollaborator','HTTPService','RETRY_CONNECTING_MAX_COUNT','toStringTag','getCurrentUnitForType','randomUUID','width','[CollaborationState]:\x20apply\x20error!','socketService','_HTTPService','onRemoteChangeset','update','state$','_clearTimeoutTimer','session.room-full','_disabled','joinRsp','_changesetReqId','subUnitId','clear','infoRsp','assign','_socket','_collaborationSessionService','apply','newValue','6TvEPgU','_commandService','fetchThroughInterceptors','confirm','@univerjs/ui','UniverCollaborationClientPlugin','disposeWithMe','requestParams','_initMergeInterceptor','_getUploadFileURL','MergeInterceptorFactory','CONFLICT','_telemetryInfo','onPointerEnter$','saveOfflineData','PERMISSION_REJ','3420746dLVSBB','memberID','debounce','delete','black','{fileID}','removeParam','_sessions','UniverEngineFormula','originalMeta','BASE64','_getSnapshotAPIPrefix','newCsEvent','mergeOverrideWithDependencies','_anchorDot','height','onlineStatusTitle','useObservable','delay','save','key','SHOULD_CLOSE_CONN','_textBubble','editingUnit','getLatestCsReqIdBySid','DisposableCollection','[OfflineState]:\x20received\x20changeset.','font','LOCAL_CACHE_INTERVAL_KEY','_removeClearOtherTimer','[PendingState]:\x20invalid\x20calling\x20to\x20`resend`.','awaitingChangeset','Unknown\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','url','override','selections','_onConnectionFailed','USERS_ENTER','_acknowledgedAwaitingChangeset','_checkMissing','cursorInfo','UnitSnapshot','pluginName','withCredentials','updateOfflineData','&source=','DocSkeletonManagerService','colorChannel1','EXCHANGE_UPLOAD_FILE_SERVER_URL_KEY','json','DependentOn','UniverRpc','&to=','listRoles','_render','sessionStatus$','INVALID_ARGUMENT','collabStatus.synced','onMissingChangesets','RemoveColCommandId','CollaborationSessionService','HEADER_MENU','IMessageService','url(#off-line-single_clip0_910_343)','csAckEvent','getTypeOfUnitAdded$','clearInterval','c1Prime','_roomMembers$','NOT_FOUND','unitId\x20is\x20not\x20found','DeleteRangeMoveLeftCommandId','BehaviorSubject','_telemetryService','updateMember','fromEvent','row','_initCloseConn','hide','reject','handleIRemoveCol','actions','INTERNAL_ERROR','handleDeleteRangeMoveLeft','attrs','_docSyncEditingCollabCursorService','transform','RefRangeService','_handleEvent','offline','getDocRanges','doc.mutation.rich-text-editing','_entities','executeCommand','[CollaborationSession]:\x20should\x20not\x20send\x20message\x20when\x20the\x20session\x20is\x20offline!','UNIVER_UNKNOWN','LIVESHARE_OPERATION','values','react','_loadDoc','getResourcesRequest','Rect','fetching\x20the\x20latest\x20document\x20from\x20the\x20server.','IPermissionService','_unlockTransition','setShapeProps','useCallback','_document','TRANSFORM_CHANGE_OBSERVABLE_TYPE','getCurrentRevOfUnit','univer-online','_onUserJoin','createInstance','every','InsertRangeMoveDownCommandId','_imageSourceCache','AUTHZ_URL_KEY','assignAColorForMemberID','265148JuHvnR','_messageService','_id','_clearUndo','userID','generateRandomId','_revisionService','className','updatePermissionObjEvent','collab-client.tooltip.reconnect','isValidRectRange','UnitEmbedded','onSyncEditingCollabCursor','HEARTBEAT_TIMEOUT_KEY','open$','localeService','addEventListener','_injector','[PendingState]:\x20received\x20acknowledgement.','LocaleService','ICollaborationSocketService','CollaborationEvent','onStateChange','_retryConnectingTimer','_updateState','_createHandler','roomMembers','path','UniverTelemetry','_transformSelections','_compressMutationService','_color','LIVESHARE_NEW_HOST','getTypeOfUnitDisposed$','_fetchMissChangesets','UUID','toggleOffline','isPermissionRej','_createInitialState','EXCHANGE_SIGN_URL_SERVER_URL_KEY','_renderManagerService','SnapshotServerOverHTTPService','deserializeToCombResponse','UNDEFINED','xlink:href','amd','putCollaborators','online','ThresholdInterceptorFactory','status$','INGEST','fillText','registerBeforeClose','collabWebSocketUrl','ERROR_IMAGE','_clearOtherTimers','members','UPDATE_CURSOR','getSkeleton','setItem','_unitID','compose','focused$','transformMutation','[serializeCombRequest]:\x20should\x20not\x20fall\x20into\x20default\x20branch!','getCoordByCell','encode','_urlService','loadDoc','LocalCacheService','Plugin','[SyncedState]:\x20invalid\x20calling\x20to\x20`resend`.','history','_eventUnsubscribe','toDisposable','_sessionStatus$','_collabSessionService','_memberService','push','length','React','Module','resend','IConfigService','IRemoteInstanceService','_change$','POST','_getSheetObject','set','_docSkeletonManagerService','getUniverSheetInstance','send','collaboration.single-unit.warning','LIVESHARE_FETCH_OPERATIONS','find','_updateCollabCursors','univer-online-status','_tryEnsureSocket','cmd','getConfig','[CollaborationEntity]:\x20initial\x20state\x20has\x20been\x20created\x20before.\x20You\x20should\x20not\x20call\x20\x22init\x22\x20twice.','Warning','getOwnPropertyDescriptor','ONLINE','permission.title','hidden','startTime','currentColor','_createInitialStateImpl','_onJoinRoomEvent','permissionRejEvent','IHTTPImplementation','_univerInstanceService','[FetchingMissState]:\x20not\x20expected\x20to\x20receive\x20ack\x20when\x20`this._awaitingChangeset`\x20is\x20null!','selection','UniverCollaborationClient','onTransformRemoteChangesetByIMECache','SheetSkeletonManagerService','forwardRef','title','roles','engine','IUIPartsService','debounceTime','removeMember','isEditing','substring','then','Disposable','drawWith','dispose$','message$','liveShareOperation','_removeRoom','_socket$','IAuthzIoService','currentTheme$','_getCurrentRevision','error$','file','reconnect','/-/object/list','eventID','UniverDesign','_setupSubUnitSync','PSEUDO_FETCH_MISSING_RESULT','resourceIDs','FromArray','operators','m1Prime','InsertRowCommandId','getParam','_config','SEND_CHANGESET_TIMEOUT','_updateStatus','_session','_getMergeRange','_setupBeforeClosingHandler','collabStatus.syncing','_handleHover','_getCtorByUniverType','collaboration.closeRoom','getCollabEntity','batchAllowed','ImageIoService','awaiting_with_pending','get','enableOfflineEditing','endColumn','_initEventListeners','reqId','getUnit','responseType','getCollabEntity$','color','searchParams','/rev/','take','slice','socket\x20close','_undoRedoService','handleInsertRangeMoveDown','OffLineSingle','fetchMissingChangesets','location','NodePositionConvertToRectRange','/unit/','_assignedColors','baseRev','concatMap'];_0x32ce=function(){return _0x5bbcf7;};return _0x32ce();}