@univerjs-pro/collaboration-client 0.1.16 → 0.1.17
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/cjs/index.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
'use strict';const _0x53b42f=_0xe052;(function(_0x4a885b,_0x11f14b){const _0x236a0c=_0xe052,_0x3d3719=_0x4a885b();while(!![]){try{const _0x12a5e2=-parseInt(_0x236a0c(0x3d9))/0x1+-parseInt(_0x236a0c(0x1df))/0x2+-parseInt(_0x236a0c(0x40e))/0x3*(-parseInt(_0x236a0c(0x488))/0x4)+-parseInt(_0x236a0c(0x3a0))/0x5*(parseInt(_0x236a0c(0x43f))/0x6)+-parseInt(_0x236a0c(0x2e1))/0x7+parseInt(_0x236a0c(0x31b))/0x8*(-parseInt(_0x236a0c(0x401))/0x9)+parseInt(_0x236a0c(0x2ea))/0xa*(parseInt(_0x236a0c(0x27f))/0xb);if(_0x12a5e2===_0x11f14b)break;else _0x3d3719['push'](_0x3d3719['shift']());}catch(_0x3d86eb){_0x3d3719['push'](_0x3d3719['shift']());}}}(_0x3fcd,0xe9117));var jt=Object[_0x53b42f(0x38a)],$t=(_0x1319dc,_0xba3a36,_0x1350f5)=>_0xba3a36 in _0x1319dc?jt(_0x1319dc,_0xba3a36,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x1350f5}):_0x1319dc[_0xba3a36]=_0x1350f5,d=(_0x1f7e5b,_0x8e78f6,_0xeefd7)=>$t(_0x1f7e5b,typeof _0x8e78f6!=_0x53b42f(0x205)?_0x8e78f6+'':_0x8e78f6,_0xeefd7);Object['defineProperty'](exports,Symbol[_0x53b42f(0x325)],{'value':'Module'});const a=require(_0x53b42f(0x1dc)),E=require(_0x53b42f(0x23b)),oe=require('@univerjs/design'),N=require(_0x53b42f(0x2fd)),u=require('@univerjs-pro/collaboration'),h=require(_0x53b42f(0x225)),g=require('rxjs'),T=require('rxjs/operators'),M=require(_0x53b42f(0x302)),P=require(_0x53b42f(0x4cb)),A=require('@univerjs/drawing'),Ye=require(_0x53b42f(0x466)),He=require('lodash/debounce'),R=require(_0x53b42f(0x256)),ee=require('@univerjs/sheets-ui'),at=require(_0x53b42f(0x3e3)),L=require('react'),Ht=require('clsx'),xt=require('@univerjs/rpc'),ct='SNAPSHOT_SERVER_URL_KEY',kt=_0x53b42f(0x2ca),lt=_0x53b42f(0x44c),ht='SEND_CHANGESET_TIMEOUT',Bt=0x7d0,_t=_0x53b42f(0x4dd),Ft=_0x53b42f(0x312),ut=_0x53b42f(0x467),Vt=0x7530,xe=_0x53b42f(0x1f1),dt=0x2710,Wt='RETRY_CONNECTING_INTERVAL',Gt=0x4e20,Yt=_0x53b42f(0x1ef),Kt=0x3,St='LOCAL_CACHE_INTERVAL',Xt=0x3e8,vt=_0x53b42f(0x316),qt=_0x53b42f(0x2c4),gt=_0x53b42f(0x465),zt=_0x53b42f(0x244);var ft=(_0x2594fe=>(_0x2594fe[_0x2594fe[_0x53b42f(0x2fb)]=0x0]=_0x53b42f(0x2fb),_0x2594fe[_0x2594fe['OK']=0x1]='OK',_0x2594fe[_0x2594fe['INTERNAL_ERROR']=0x2]=_0x53b42f(0x3b2),_0x2594fe[_0x2594fe[_0x53b42f(0x257)]=0x3]=_0x53b42f(0x257),_0x2594fe[_0x2594fe[_0x53b42f(0x3d5)]=0x4]=_0x53b42f(0x3d5),_0x2594fe[_0x2594fe[_0x53b42f(0x167)]=0x5]=_0x53b42f(0x167),_0x2594fe[_0x2594fe['ALREADY_EXISTS']=0x6]='ALREADY_EXISTS',_0x2594fe[_0x2594fe[_0x53b42f(0x408)]=0x7]=_0x53b42f(0x408),_0x2594fe[_0x2594fe[_0x53b42f(0x367)]=0x8]='TOO_MANY_REQUESTS',_0x2594fe[_0x2594fe[_0x53b42f(0x218)]=0x9]=_0x53b42f(0x218),_0x2594fe[_0x2594fe[_0x53b42f(0x40f)]=0x1389]='CHANGESET_REVISION_CONFILICT',_0x2594fe[_0x2594fe[_0x53b42f(0x42d)]=0x1771]='SNAPSHOT_INVALID_SNAPSHOT',_0x2594fe[_0x2594fe[_0x53b42f(0x3da)]=0x1772]='SNAPSHOT_HAS_BEEN_REMOVED',_0x2594fe[_0x2594fe[_0x53b42f(0x2b0)]=0x1b59]='APPLY_REJECT',_0x2594fe[_0x2594fe[_0x53b42f(0x46e)]=0x1b5a]='APPLY_NON_SEQUENTIAL_REVISION',_0x2594fe[_0x2594fe[_0x53b42f(0x229)]=0x1b5b]='APPLY_REVISION_CONFILICT',_0x2594fe[_0x2594fe[_0x53b42f(0x2db)]=0x1b5c]=_0x53b42f(0x2db),_0x2594fe[_0x2594fe[_0x53b42f(0x40d)]=0x1f41]=_0x53b42f(0x40d),_0x2594fe[_0x2594fe[_0x53b42f(0x180)]=0x2329]=_0x53b42f(0x180),_0x2594fe[_0x2594fe[_0x53b42f(0x22d)]=0x232a]=_0x53b42f(0x22d),_0x2594fe[_0x2594fe[_0x53b42f(0x43c)]=0x232b]=_0x53b42f(0x43c),_0x2594fe[_0x2594fe[_0x53b42f(0x277)]=0x232c]=_0x53b42f(0x277),_0x2594fe[_0x2594fe[_0x53b42f(0x3df)]=0x232d]=_0x53b42f(0x3df),_0x2594fe[_0x2594fe[_0x53b42f(0x40c)]=0x2711]=_0x53b42f(0x40c),_0x2594fe[_0x2594fe[_0x53b42f(0x291)]=0x2712]=_0x53b42f(0x291),_0x2594fe[_0x2594fe[_0x53b42f(0x406)]=-0x1]=_0x53b42f(0x406),_0x2594fe))(ft||{}),j=(_0x515b1e=>(_0x515b1e[_0x515b1e[_0x53b42f(0x41a)]=0x0]=_0x53b42f(0x41a),_0x515b1e[_0x515b1e[_0x53b42f(0x220)]=0x1]=_0x53b42f(0x220),_0x515b1e[_0x515b1e[_0x53b42f(0x164)]=0x2]=_0x53b42f(0x164),_0x515b1e[_0x515b1e[_0x53b42f(0x26a)]=0x3]=_0x53b42f(0x26a),_0x515b1e[_0x515b1e['UNRECOGNIZED']=-0x1]=_0x53b42f(0x406),_0x515b1e))(j||{}),b=(_0x5cad4d=>(_0x5cad4d[_0x5cad4d[_0x53b42f(0x445)]=0x0]=_0x53b42f(0x445),_0x5cad4d[_0x5cad4d['HELLO']=0x1]='HELLO',_0x5cad4d[_0x5cad4d[_0x53b42f(0x442)]=0x2]=_0x53b42f(0x442),_0x5cad4d[_0x5cad4d['LEAVE']=0x3]=_0x53b42f(0x4e4),_0x5cad4d[_0x5cad4d[_0x53b42f(0x292)]=0x4]='INGEST',_0x5cad4d[_0x5cad4d[_0x53b42f(0x33f)]=0x5]=_0x53b42f(0x33f),_0x5cad4d[_0x5cad4d[_0x53b42f(0x4c4)]=0x6]=_0x53b42f(0x4c4),_0x5cad4d[_0x5cad4d[_0x53b42f(0x406)]=-0x1]=_0x53b42f(0x406),_0x5cad4d))(b||{}),ke=(_0x371321=>(_0x371321[_0x371321['UNKNOWN_CODE']=0x0]=_0x53b42f(0x294),_0x371321[_0x371321['OK']=0x1]='OK',_0x371321[_0x371321[_0x53b42f(0x202)]=0x2]='FAIL',_0x371321[_0x371321[_0x53b42f(0x406)]=-0x1]=_0x53b42f(0x406),_0x371321))(ke||{}),Jt=Object['defineProperty'],Zt=Object[_0x53b42f(0x2a8)],Qt=(_0x5f01c8,_0x35267b,_0x178ddb,_0x135042)=>{for(var _0x2422d1=_0x135042>0x1?void 0x0:_0x135042?Zt(_0x35267b,_0x178ddb):_0x35267b,_0x3196ca=_0x5f01c8['length']-0x1,_0x10d192;_0x3196ca>=0x0;_0x3196ca--)(_0x10d192=_0x5f01c8[_0x3196ca])&&(_0x2422d1=(_0x135042?_0x10d192(_0x35267b,_0x178ddb,_0x2422d1):_0x10d192(_0x2422d1))||_0x2422d1);return _0x135042&&_0x2422d1&&Jt(_0x35267b,_0x178ddb,_0x2422d1),_0x2422d1;},Ke=(_0x4fe674,_0x23e6fd)=>(_0x5e4c6d,_0x4ed765)=>_0x23e6fd(_0x5e4c6d,_0x4ed765,_0x4fe674);let G=class extends a[_0x53b42f(0x18e)]{constructor(_0x8a4e95,_0x15096e){const _0x4266a5=_0x53b42f;super(),d(this,_0x4266a5(0x272),new Map()),(this[_0x4266a5(0x49a)]=_0x8a4e95,this[_0x4266a5(0x3d7)]=_0x15096e,this[_0x4266a5(0x1e9)](a[_0x4266a5(0x1bb)](g[_0x4266a5(0x221)](this[_0x4266a5(0x49a)][_0x4266a5(0x160)](a[_0x4266a5(0x142)][_0x4266a5(0x164)])['pipe'](T[_0x4266a5(0x1af)](_0x27f9fb=>_0x27f9fb[_0x4266a5(0x1f9)]())),this[_0x4266a5(0x49a)]['getTypeOfUnitDisposed$'](a[_0x4266a5(0x142)][_0x4266a5(0x220)])[_0x4266a5(0x454)](T['map'](_0x3344f1=>_0x3344f1['getUnitId']())),this[_0x4266a5(0x49a)][_0x4266a5(0x160)](a[_0x4266a5(0x142)][_0x4266a5(0x26a)])['pipe'](T[_0x4266a5(0x1af)](_0x5f2c5d=>_0x5f2c5d[_0x4266a5(0x1f9)]())))['subscribe'](_0x2f0f91=>this[_0x4266a5(0x2f2)](_0x2f0f91)))));}['setCurrentUser'](_0x212415){const _0x32cd33=_0x53b42f;this[_0x32cd33(0x3d7)][_0x32cd33(0x273)](_0x212415);}['getCurrentUser'](){const _0x295326=_0x53b42f;return this[_0x295326(0x3d7)][_0x295326(0x341)]();}[_0x53b42f(0x4ad)](_0xf0f929,_0x5dff7e){const _0x3b5401=_0x53b42f;let _0x486fc5=this[_0x3b5401(0x272)][_0x3b5401(0x3d4)](_0xf0f929);_0x486fc5||(_0x486fc5=new es(),this[_0x3b5401(0x272)][_0x3b5401(0x2e0)](_0xf0f929,_0x486fc5)),_0x486fc5[_0x3b5401(0x4ad)](_0x5dff7e);}[_0x53b42f(0x3bf)](_0x2f36df,_0x445df6){const _0x1ac2b2=_0x53b42f,_0x3507ab=this['_roomMembers'][_0x1ac2b2(0x3d4)](_0x2f36df);_0x3507ab&&_0x3507ab['removeMember'](_0x445df6);}[_0x53b42f(0x440)](_0x560b23){const _0x1ac643=_0x53b42f;return this[_0x1ac643(0x272)][_0x1ac643(0x3d4)](_0x560b23);}['getMember'](_0x5562ab,_0x4d2266){const _0x939393=_0x53b42f,_0x4abf5c=this[_0x939393(0x272)][_0x939393(0x3d4)](_0x5562ab);if(_0x4abf5c)return _0x4abf5c[_0x939393(0x4b5)](_0x4d2266);}[_0x53b42f(0x2f2)](_0x447eab){const _0x2ffba7=_0x53b42f,_0x30b25f=this[_0x2ffba7(0x272)][_0x2ffba7(0x3d4)](_0x447eab);_0x30b25f&&(_0x30b25f[_0x2ffba7(0x4df)](),this[_0x2ffba7(0x272)][_0x2ffba7(0x35b)](_0x447eab));}[_0x53b42f(0x4df)](){const _0x8ceeee=_0x53b42f;this[_0x8ceeee(0x272)]['forEach'](_0x25b729=>_0x25b729[_0x8ceeee(0x4df)]()),this[_0x8ceeee(0x272)]['clear']();}};G=Qt([Ke(0x0,a[_0x53b42f(0x390)]),Ke(0x1,h[_0x53b42f(0x295)](a[_0x53b42f(0x2a0)]))],G);class es extends a[_0x53b42f(0x18e)]{constructor(){const _0x19e656=_0x53b42f;super(...arguments),d(this,_0x19e656(0x237),new Map());}[_0x53b42f(0x4df)](){const _0x194bed=_0x53b42f;this[_0x194bed(0x237)][_0x194bed(0x4de)]();}[_0x53b42f(0x4ad)](_0x5fa5d5){const _0xdf3657=_0x53b42f;this[_0xdf3657(0x237)]['set'](_0x5fa5d5[_0xdf3657(0x328)],_0x5fa5d5);}['removeMember'](_0x2406d7){const _0xdbe1d2=_0x53b42f;this[_0xdbe1d2(0x237)]['delete'](_0x2406d7);}[_0x53b42f(0x4b5)](_0xdeb4b){const _0x2fdef1=_0x53b42f;return this[_0x2fdef1(0x237)][_0x2fdef1(0x3d4)](_0xdeb4b);}}function mt(_0xffffa){const _0x265587=_0x53b42f;var _0x5501c6,_0x2fc012,_0x12c7d8,_0x4a8043;const _0x4fdafa=_0xffffa[_0x265587(0x169)],_0xbbbe93=JSON[_0x265587(0x4b2)](_0x4fdafa);switch(_0xbbbe93['cmd']){case b[_0x265587(0x33f)]:case b['HELLO']:{const _0x5f1534=_0xbbbe93[_0x265587(0x35d)];return{..._0xbbbe93,'data':_0x5f1534,'cmd':_0xbbbe93[_0x265587(0x242)]};}case b[_0x265587(0x442)]:{const _0x7e11d1=_0xbbbe93[_0x265587(0x1ed)];return{..._0xbbbe93,'data':_0x7e11d1,'cmd':_0xbbbe93[_0x265587(0x242)]};}case b['RECV']:{const _0x1fb352=_0xbbbe93[_0x265587(0x307)];switch(_0x1fb352['eventID']){case u['CollaborationEvent'][_0x265587(0x4ce)]:return{..._0xbbbe93,'data':{..._0x1fb352,'data':(_0x5501c6=_0x1fb352[_0x265587(0x4d1)])==null?void 0x0:_0x5501c6['cs']},'cmd':_0xbbbe93['cmd']};case u[_0x265587(0x3fe)]['CHANGESET_ACK']:return{..._0xbbbe93,'data':{..._0x1fb352,'data':(_0x2fc012=_0x1fb352[_0x265587(0x385)])==null?void 0x0:_0x2fc012['cs']},'cmd':_0xbbbe93[_0x265587(0x242)]};case u[_0x265587(0x3fe)][_0x265587(0x463)]:return{..._0xbbbe93,'data':{..._0x1fb352,'data':(_0x12c7d8=_0x1fb352[_0x265587(0x327)])==null?void 0x0:_0x12c7d8['cs']},'cmd':_0xbbbe93[_0x265587(0x242)]};case u[_0x265587(0x3fe)][_0x265587(0x2d1)]:return{..._0xbbbe93,'data':{..._0x1fb352,'data':(_0x4a8043=_0x1fb352[_0x265587(0x32f)])==null?void 0x0:_0x4a8043['cs']},'cmd':_0xbbbe93[_0x265587(0x242)]};case u[_0x265587(0x3fe)][_0x265587(0x4e1)]:return{..._0xbbbe93,'data':{..._0x1fb352,'data':_0x1fb352['updateCursorEvent']},'cmd':_0xbbbe93[_0x265587(0x242)]};case u['CollaborationEvent'][_0x265587(0x3cb)]:return{..._0xbbbe93,'data':{..._0x1fb352,'data':_0x1fb352[_0x265587(0x3e9)]},'cmd':_0xbbbe93[_0x265587(0x242)]};case u[_0x265587(0x3fe)][_0x265587(0x177)]:return{..._0xbbbe93,'data':{..._0x1fb352,'data':_0x1fb352['leaveEvent']},'cmd':_0xbbbe93['cmd']};case u['CollaborationEvent'][_0x265587(0x450)]:return{..._0xbbbe93,'data':{..._0x1fb352,'data':_0x1fb352['liveShareNewHost']},'cmd':_0xbbbe93['cmd']};case u[_0x265587(0x3fe)]['LIVESHARE_FETCH_OPERATIONS']:case u[_0x265587(0x3fe)][_0x265587(0x329)]:return{..._0xbbbe93,'data':{..._0x1fb352,'data':_0x1fb352['liveShareOperation']},'cmd':_0xbbbe93[_0x265587(0x242)]};case u[_0x265587(0x3fe)][_0x265587(0x1ce)]:return{..._0xbbbe93,'data':{..._0x1fb352,'data':_0x1fb352[_0x265587(0x285)]},'cmd':_0xbbbe93[_0x265587(0x242)]};case u['CollaborationEvent']['MSG_FOR_ERROR']:return{..._0xbbbe93,'data':_0x1fb352,'cmd':_0xbbbe93[_0x265587(0x242)]};default:return _0xbbbe93;}}default:return _0xbbbe93;}}function It(_0x12f1c6){const _0x301769=_0x53b42f;switch(_0x12f1c6['cmd']){case b[_0x301769(0x33f)]:case b['HELLO']:return JSON[_0x301769(0x339)]({'cmd':_0x12f1c6[_0x301769(0x242)],'routeKey':_0x12f1c6[_0x301769(0x31e)]});case b[_0x301769(0x292)]:{let _0x3aa62f;switch(_0x12f1c6[_0x301769(0x169)][_0x301769(0x428)]){case u['CollaborationEvent'][_0x301769(0x4e1)]:{_0x3aa62f={'eventID':u[_0x301769(0x3fe)][_0x301769(0x4e1)],'updateCursorEvent':_0x12f1c6[_0x301769(0x169)][_0x301769(0x169)]};break;}case u['CollaborationEvent'][_0x301769(0x177)]:{_0x3aa62f={'eventID':u[_0x301769(0x3fe)][_0x301769(0x177)],'leaveEvent':_0x12f1c6[_0x301769(0x169)][_0x301769(0x169)]};break;}case u[_0x301769(0x3fe)]['USERS_ENTER']:{_0x3aa62f={'eventID':u[_0x301769(0x3fe)][_0x301769(0x3cb)],'joinEvent':_0x12f1c6[_0x301769(0x169)][_0x301769(0x169)]};break;}case u[_0x301769(0x3fe)][_0x301769(0x450)]:{_0x3aa62f={'eventID':u[_0x301769(0x3fe)][_0x301769(0x450)],'liveShareNewHost':_0x12f1c6[_0x301769(0x169)][_0x301769(0x169)]};break;}case u['CollaborationEvent'][_0x301769(0x329)]:{_0x3aa62f={'eventID':u[_0x301769(0x3fe)][_0x301769(0x329)],'liveShareOperation':_0x12f1c6[_0x301769(0x169)][_0x301769(0x169)]};break;}case u[_0x301769(0x3fe)][_0x301769(0x1ce)]:{_0x3aa62f={'eventID':u[_0x301769(0x3fe)]['LIVESHARE_TERMINATE'],'liveShareTerminate':_0x12f1c6['data'][_0x301769(0x169)]};break;}case u[_0x301769(0x3fe)][_0x301769(0x27b)]:{_0x3aa62f={'eventID':u[_0x301769(0x3fe)][_0x301769(0x27b)],'liveShareRequestHost':_0x12f1c6[_0x301769(0x169)][_0x301769(0x169)]};break;}case u[_0x301769(0x3fe)][_0x301769(0x499)]:{_0x3aa62f={'eventID':u[_0x301769(0x3fe)][_0x301769(0x499)]};break;}default:_0x3aa62f={'eventID':_0x12f1c6['data'][_0x301769(0x428)]};}return JSON[_0x301769(0x339)]({'cmd':_0x12f1c6[_0x301769(0x242)],'routeKey':_0x12f1c6[_0x301769(0x31e)],'collaMsg':_0x3aa62f});}case b[_0x301769(0x442)]:return JSON[_0x301769(0x339)]({'cmd':_0x12f1c6[_0x301769(0x242)],'routeKey':_0x12f1c6[_0x301769(0x31e)],'joinReq':_0x12f1c6[_0x301769(0x169)]});case b['LEAVE']:return JSON['stringify']({'cmd':_0x12f1c6[_0x301769(0x242)],'routeKey':_0x12f1c6['routeKey'],'leaveReq':_0x12f1c6['data']});default:throw new Error(_0x301769(0x4e0));}}var ts=Object[_0x53b42f(0x38a)],ss=Object[_0x53b42f(0x2a8)],is=(_0x35e54c,_0x5d9009,_0x3702d7,_0x23840f)=>{const _0x115fc1=_0x53b42f;for(var _0x24ecb1=_0x23840f>0x1?void 0x0:_0x23840f?ss(_0x5d9009,_0x3702d7):_0x5d9009,_0x11eed9=_0x35e54c[_0x115fc1(0x419)]-0x1,_0x5226b3;_0x11eed9>=0x0;_0x11eed9--)(_0x5226b3=_0x35e54c[_0x11eed9])&&(_0x24ecb1=(_0x23840f?_0x5226b3(_0x5d9009,_0x3702d7,_0x24ecb1):_0x5226b3(_0x24ecb1))||_0x24ecb1);return _0x23840f&&_0x24ecb1&&ts(_0x5d9009,_0x3702d7,_0x24ecb1),_0x24ecb1;},te=(_0x18a0a0,_0x32ff1e)=>(_0x2632a8,_0x4aeedc)=>_0x32ff1e(_0x2632a8,_0x4aeedc,_0x18a0a0);const Be=h['createIdentifier'](_0x53b42f(0x3f9));function ns(_0x2f74f1,_0x1b4a14,_0x29db64){const _0x3dd3e6=_0x53b42f;return _0x2f74f1+'/'+_0x1b4a14+_0x3dd3e6(0x254)+_0x29db64+_0x3dd3e6(0x208);}exports[_0x53b42f(0x236)]=class{constructor(_0x2825e5,_0x215126,_0x21fee6,_0x55b26a,_0x12a2fe){const _0x261a61=_0x53b42f;this[_0x261a61(0x280)]=_0x2825e5,this[_0x261a61(0x3f2)]=_0x215126,this[_0x261a61(0x2a6)]=_0x21fee6,this[_0x261a61(0x42f)]=_0x55b26a,this[_0x261a61(0x3e0)]=_0x12a2fe;}[_0x53b42f(0x39f)](_0x58e1d4){const _0x43d24d=_0x53b42f,_0x489313=this[_0x43d24d(0x3f2)][_0x43d24d(0x39f)](_0x58e1d4);if(!_0x489313)throw new Error(_0x43d24d(0x1d4));const _0x330e71=new a[(_0x43d24d(0x4a8))](),_0x2b4ab1=new g[(_0x43d24d(0x298))]();_0x330e71[_0x43d24d(0x1e5)](a[_0x43d24d(0x1bb)](_0x489313[_0x43d24d(0x24c)][_0x43d24d(0x492)](_0xa11b65=>_0x2b4ab1['next'](_0xa11b65)))),_0x330e71[_0x43d24d(0x1e5)](a[_0x43d24d(0x1bb)](()=>_0x2b4ab1[_0x43d24d(0x146)]()));const _0x23d5c9=new g[(_0x43d24d(0x298))]();_0x330e71['add'](a['toDisposable'](_0x489313[_0x43d24d(0x3ed)][_0x43d24d(0x492)](_0x350584=>_0x23d5c9[_0x43d24d(0x414)](_0x350584)))),_0x330e71['add'](a[_0x43d24d(0x1bb)](()=>_0x23d5c9[_0x43d24d(0x146)]()));const _0xd40ff9=new g['Subject']();_0x330e71[_0x43d24d(0x1e5)](a[_0x43d24d(0x1bb)](_0x489313[_0x43d24d(0x42e)][_0x43d24d(0x492)](_0x107d7a=>{const _0x40ae9a=_0x43d24d,_0xb39a1d=mt(_0x107d7a);_0xd40ff9[_0x40ae9a(0x414)](_0xb39a1d);}))),_0x330e71[_0x43d24d(0x1e5)](a['toDisposable'](()=>_0xd40ff9[_0x43d24d(0x146)]()));const _0x3ff207=()=>{const _0x67b5a3=_0x43d24d;_0x23d5c9[_0x67b5a3(0x414)](new Event(_0x67b5a3(0x13e))),_0x2b4ab1['next'](new CloseEvent(_0x67b5a3(0x13e))),_0x149c53[_0x67b5a3(0x2ab)]();},_0x149c53={'memberID':'','close$':_0x2b4ab1['asObservable'](),'error$':_0x23d5c9['asObservable'](),'open$':_0x489313[_0x43d24d(0x13f)],'message$':_0xd40ff9[_0x43d24d(0x1d6)](),'send':_0xa45afc=>{const _0x7701af=_0x43d24d;if(_0xa45afc['cmd']===b[_0x7701af(0x292)]){if(_0xa45afc[_0x7701af(0x169)][_0x7701af(0x428)]===u['CollaborationEvent'][_0x7701af(0x315)]){this[_0x7701af(0x269)](_0x149c53,_0xa45afc['data'])[_0x7701af(0x18d)](_0x103ccb=>{const _0x26ecf7=_0x7701af;this[_0x26ecf7(0x42f)][_0x26ecf7(0x150)](_0x103ccb),_0x3ff207();});return;}if(_0xa45afc[_0x7701af(0x169)][_0x7701af(0x428)]===u[_0x7701af(0x3fe)][_0x7701af(0x2c9)]){const _0x27ed59=_0xa45afc['data'];this[_0x7701af(0x281)](_0x27ed59)[_0x7701af(0x3ab)](_0x52caaa=>{const _0x547df1=_0x7701af;_0xd40ff9[_0x547df1(0x414)]({'cmd':b['RECV'],'code':ke['OK'],'routeKey':_0x27ed59['data'][_0x547df1(0x348)],'routeType':'','data':{'eventID':u[_0x547df1(0x3fe)][_0x547df1(0x2ee)],'data':{'changesets':_0x52caaa}}});})[_0x7701af(0x18d)](_0x48fc3a=>{this['_logService']['error'](_0x48fc3a),_0x3ff207();});return;}}_0x489313[_0x7701af(0x279)](It(_0xa45afc));},'close':()=>{const _0x418716=_0x43d24d;_0x489313['close'](),_0x330e71[_0x418716(0x4df)]();}};return _0x149c53;}async[_0x53b42f(0x269)](_0x34b632,_0x4891e2){const _0x54510f=_0x53b42f;var _0x569b46;const {unitType:_0xcb2cbb,unitID:_0x4768dd,changeset:_0x184f90}=_0x4891e2['data'],_0x2ded46={'unitID':_0x4768dd,'memberID':_0x34b632[_0x54510f(0x328)],'type':_0xcb2cbb,'changeset':u[_0x54510f(0x308)](_0x184f90)},_0x3f6bdd=ns((_0x569b46=this[_0x54510f(0x2a6)][_0x54510f(0x1d8)](vt))!=null?_0x569b46:qt,_0xcb2cbb,_0x4768dd);try{await this[_0x54510f(0x280)]['post'](_0x3f6bdd,{'body':_0x2ded46});}catch(_0x2ac425){throw this[_0x54510f(0x42f)][_0x54510f(0x150)](_0x54510f(0x29b),_0x54510f(0x275)),_0x2ac425;}}async[_0x53b42f(0x281)](_0x32e552){const _0x97773c=_0x53b42f,{unitID:_0x3ba00f,from:_0x5ad2e4,to:_0x465023,unitType:_0x3208b8}=_0x32e552[_0x97773c(0x169)];return(await this[_0x97773c(0x3e0)][_0x97773c(0x25e)]({'metadata':void 0x0},{'unitID':_0x3ba00f,'type':_0x3208b8,'from':_0x5ad2e4,'to':_0x465023}))[_0x97773c(0x3d8)];}},exports[_0x53b42f(0x236)]=is([te(0x0,h['Inject'](P[_0x53b42f(0x452)])),te(0x1,h[_0x53b42f(0x295)](P[_0x53b42f(0x1c0)])),te(0x2,a['IConfigService']),te(0x3,a[_0x53b42f(0x4c8)]),te(0x4,a[_0x53b42f(0x174)])],exports[_0x53b42f(0x236)]);var rs=Object[_0x53b42f(0x38a)],os=Object[_0x53b42f(0x2a8)],pt=(_0x16b98d,_0x24b8f0,_0x5d2a79,_0x4322d4)=>{const _0x32082d=_0x53b42f;for(var _0x124a06=_0x4322d4>0x1?void 0x0:_0x4322d4?os(_0x24b8f0,_0x5d2a79):_0x24b8f0,_0x1f5b39=_0x16b98d[_0x32082d(0x419)]-0x1,_0x14de47;_0x1f5b39>=0x0;_0x1f5b39--)(_0x14de47=_0x16b98d[_0x1f5b39])&&(_0x124a06=(_0x4322d4?_0x14de47(_0x24b8f0,_0x5d2a79,_0x124a06):_0x14de47(_0x124a06))||_0x124a06);return _0x4322d4&&_0x124a06&&rs(_0x24b8f0,_0x5d2a79,_0x124a06),_0x124a06;},U=(_0x38ce21,_0x507022)=>(_0xe48096,_0x4b2ee5)=>_0x507022(_0xe48096,_0x4b2ee5,_0x38ce21),W=(_0x4e8c97=>(_0x4e8c97[_0x4e8c97[_0x53b42f(0x49f)]=0x0]=_0x53b42f(0x49f),_0x4e8c97[_0x4e8c97[_0x53b42f(0x2cc)]=0x1]=_0x53b42f(0x2cc),_0x4e8c97[_0x4e8c97[_0x53b42f(0x1b4)]=0x2]=_0x53b42f(0x1b4),_0x4e8c97[_0x4e8c97[_0x53b42f(0x4c3)]=0x3]=_0x53b42f(0x4c3),_0x4e8c97))(W||{});exports['CollaborationSession']=class extends a[_0x53b42f(0x3a5)]{constructor(_0x4c26ec,_0x420a62,_0x516747,_0x5c5c0c,_0x2468ed,_0x38c96e,_0xb94b2f,_0x35a6b9){const _0x324ceb=_0x53b42f;super(),d(this,'_sessionStatus$',new g[(_0x324ceb(0x28a))](0x0)),d(this,_0x324ceb(0x222),this[_0x324ceb(0x4bc)][_0x324ceb(0x1d6)]()),d(this,'_event$',new g[(_0x324ceb(0x298))]()),d(this,_0x324ceb(0x255),this[_0x324ceb(0x3b0)]['asObservable']()),d(this,'_socket'),d(this,_0x324ceb(0x1d5)),d(this,_0x324ceb(0x3b3)),(this[_0x324ceb(0x39d)]=_0x4c26ec,this['_logService']=_0x516747,this['_beforeCloseService']=_0x5c5c0c,this[_0x324ceb(0x23f)]=_0x2468ed,this['_configService']=_0x38c96e,this[_0x324ceb(0x2bd)]=_0xb94b2f,this[_0x324ceb(0x4ae)]=_0x35a6b9,_0x420a62[_0x324ceb(0x454)](T[_0x324ceb(0x436)](this[_0x324ceb(0x35f)]))['subscribe'](_0x6aa2ef=>{const _0x590c52=_0x324ceb;var _0x4233f7;typeof _0x6aa2ef>'u'||(this[_0x590c52(0x187)]=_0x6aa2ef,_0x6aa2ef?(this[_0x590c52(0x20e)](_0x6aa2ef),this[_0x590c52(0x1d5)]=this['_socket'][_0x590c52(0x42e)][_0x590c52(0x492)](_0x14f877=>{const _0x224cd4=_0x590c52;_0x14f877[_0x224cd4(0x31e)]===this[_0x224cd4(0x39d)]&&this['_onCombEvent'](_0x14f877);})):(this[_0x590c52(0x4bc)]['next'](0x2),(_0x4233f7=this[_0x590c52(0x1d5)])==null||_0x4233f7['unsubscribe'](),this[_0x590c52(0x1d5)]=null));}),this[_0x324ceb(0x1e9)](this[_0x324ceb(0x26f)][_0x324ceb(0x30e)](()=>{const _0x214367=_0x324ceb;var _0xc3cc20;(_0xc3cc20=this[_0x214367(0x187)])==null||_0xc3cc20[_0x214367(0x279)]({'cmd':b[_0x214367(0x4e4)],'data':{'roomID':this[_0x214367(0x39d)]}});})));}get['sessionStatus'](){const _0x57f242=_0x53b42f;return this[_0x57f242(0x4bc)][_0x57f242(0x47e)]();}['getMemberID'](){const _0x134189=_0x53b42f;var _0x4a92b5,_0x27d8b4;return(_0x27d8b4=(_0x4a92b5=this[_0x134189(0x187)])==null?void 0x0:_0x4a92b5['memberID'])!=null?_0x27d8b4:null;}[_0x53b42f(0x4df)](){const _0x39e611=_0x53b42f;super[_0x39e611(0x4df)](),this[_0x39e611(0x35f)]['next'](),this[_0x39e611(0x35f)][_0x39e611(0x146)]();}[_0x53b42f(0x31c)](_0x2af6f6){const _0x2d253b=_0x53b42f;_0x2af6f6[_0x2d253b(0x242)]===b[_0x2d253b(0x442)]?this[_0x2d253b(0x4d0)](_0x2af6f6):_0x2af6f6[_0x2d253b(0x242)]===b[_0x2d253b(0x4c4)]&&this[_0x2d253b(0x30b)](_0x2af6f6);}[_0x53b42f(0x20e)](_0x23e432){const _0x588659=_0x53b42f;this[_0x588659(0x4bc)][_0x588659(0x414)](0x1),_0x23e432['send']({'cmd':b[_0x588659(0x442)],'routeKey':this[_0x588659(0x39d)],'routeType':'','data':{'rooms':[{'roomID':this[_0x588659(0x39d)]}]}});}[_0x53b42f(0x4d0)](_0x59c460){const _0xf908b0=_0x53b42f;var _0x913316;if(_0x59c460[_0xf908b0(0x486)]===ke['FAIL']){this[_0xf908b0(0x23f)][_0xf908b0(0x138)]({'type':oe[_0xf908b0(0x3c9)][_0xf908b0(0x376)],'content':this[_0xf908b0(0x2bd)]['t']('session.room-full')}),this[_0xf908b0(0x4bc)][_0xf908b0(0x414)](0x2);return;}this[_0xf908b0(0x4bc)][_0xf908b0(0x414)](0x3);const _0x24be44=(_0x913316=_0x59c460[_0xf908b0(0x169)][_0xf908b0(0x268)][this[_0xf908b0(0x39d)]])==null?void 0x0:_0x913316['members'];_0x24be44&&_0x24be44[_0xf908b0(0x421)](_0x2d89cd=>this['_memberService'][_0xf908b0(0x4ad)](this[_0xf908b0(0x39d)],_0x2d89cd));}[_0x53b42f(0x30b)](_0x2ae5ea){const _0x42e6d8=_0x53b42f;try{const _0x650119=_0x2ae5ea[_0x42e6d8(0x169)];switch(_0x650119[_0x42e6d8(0x428)]){case u[_0x42e6d8(0x3fe)][_0x42e6d8(0x3cb)]:this[_0x42e6d8(0x154)](_0x650119),this[_0x42e6d8(0x3b0)][_0x42e6d8(0x414)](_0x650119);break;case u[_0x42e6d8(0x3fe)][_0x42e6d8(0x177)]:this[_0x42e6d8(0x173)](_0x650119),this['_event$'][_0x42e6d8(0x414)](_0x650119);break;case u[_0x42e6d8(0x3fe)][_0x42e6d8(0x45a)]:this['_clearCollaborationTimeoutTimer'](),this[_0x42e6d8(0x3b0)][_0x42e6d8(0x414)](_0x650119);break;case u[_0x42e6d8(0x3fe)][_0x42e6d8(0x190)]:this['_logService'][_0x42e6d8(0x150)](_0x42e6d8(0x4cd)+JSON[_0x42e6d8(0x339)](_0x650119)),this[_0x42e6d8(0x3b0)][_0x42e6d8(0x414)](_0x650119);break;default:this[_0x42e6d8(0x3b0)][_0x42e6d8(0x414)](_0x650119);}}catch(_0x60c2ff){this[_0x42e6d8(0x42f)][_0x42e6d8(0x150)](_0x60c2ff,_0x2ae5ea);}}['_onUserJoin'](_0x3ebc9f){const _0x3a91a7=_0x53b42f;this[_0x3a91a7(0x4ae)]['updateMember'](this[_0x3a91a7(0x39d)],_0x3ebc9f[_0x3a91a7(0x169)]);}[_0x53b42f(0x173)](_0x471a4c){const _0x3d7e20=_0x53b42f;this[_0x3d7e20(0x4ae)]['removeMember'](this[_0x3d7e20(0x39d)],_0x471a4c['data'][_0x3d7e20(0x328)]);}async[_0x53b42f(0x279)](_0x37a3f3,_0x49689d){const _0xce3d39=_0x53b42f;if(this[_0xce3d39(0x201)]!==0x3||!this['_socket'])throw new Error(_0xce3d39(0x1a6));try{_0x37a3f3[_0xce3d39(0x428)]===u['CollaborationEvent'][_0xce3d39(0x463)]&&this[_0xce3d39(0x290)](),this[_0xce3d39(0x187)]['send']({'cmd':b[_0xce3d39(0x292)],'routeKey':_0x49689d,'routeType':'','data':_0x37a3f3});}catch(_0x351f53){this[_0xce3d39(0x42f)][_0xce3d39(0x150)](_0x351f53);}}[_0x53b42f(0x290)](){const _0x54c7eb=_0x53b42f;var _0x1f3b82;this['_collaborationTimeoutTimer']=window[_0x54c7eb(0x373)](()=>{const _0x31c295=_0x54c7eb;this[_0x31c295(0x3b3)]=null,this['_messageService']['show']({'type':oe[_0x31c295(0x3c9)][_0x31c295(0x23a)],'content':this[_0x31c295(0x2bd)]['t'](_0x31c295(0x342))});},(_0x1f3b82=this[_0x54c7eb(0x2a6)][_0x54c7eb(0x1d8)](xe))!=null?_0x1f3b82:dt);}[_0x53b42f(0x3d1)](){const _0x210069=_0x53b42f;this[_0x210069(0x3b3)]&&(clearTimeout(this[_0x210069(0x3b3)]),this[_0x210069(0x3b3)]=null);}},exports[_0x53b42f(0x4b9)]=pt([U(0x2,a[_0x53b42f(0x4c8)]),U(0x3,N[_0x53b42f(0x34d)]),U(0x4,N[_0x53b42f(0x288)]),U(0x5,a[_0x53b42f(0x4a2)]),U(0x6,h['Inject'](a['LocaleService'])),U(0x7,h[_0x53b42f(0x295)](G))],exports[_0x53b42f(0x4b9)]),exports['CollaborationSessionService']=class extends a[_0x53b42f(0x18e)]{constructor(_0x4eaa85,_0x345e4d,_0x5aee16,_0x3860c6,_0x67cf99,_0x1b598b){const _0x40f657=_0x53b42f;super(),d(this,_0x40f657(0x42b),new g[(_0x40f657(0x28a))](void 0x0)),d(this,_0x40f657(0x1aa),new Map()),d(this,_0x40f657(0x41b),new g[(_0x40f657(0x28a))](0x0)),d(this,_0x40f657(0x183),this['_status$'][_0x40f657(0x1d6)]()),d(this,_0x40f657(0x2bf),!0x1),d(this,_0x40f657(0x241)),d(this,'_timeoutTimer'),d(this,_0x40f657(0x1f2)),d(this,'_retryCount',0x0),(this['_injector']=_0x4eaa85,this[_0x40f657(0x2bd)]=_0x345e4d,this['_messageService']=_0x5aee16,this['_logService']=_0x3860c6,this[_0x40f657(0x2a6)]=_0x67cf99,this[_0x40f657(0x1db)]=_0x1b598b);}get[_0x53b42f(0x187)](){const _0x4338bb=_0x53b42f;return this['_socket$'][_0x4338bb(0x47e)]();}[_0x53b42f(0x4df)](){const _0x37715f=_0x53b42f;super[_0x37715f(0x4df)](),this[_0x37715f(0x1aa)][_0x37715f(0x421)](_0x30fdad=>_0x30fdad[_0x37715f(0x4df)]()),this[_0x37715f(0x1aa)]['clear'](),this[_0x37715f(0x41b)][_0x37715f(0x146)]();}async['requireSession'](_0x1c1ef6){const _0x159203=_0x53b42f;if(this['_sessions'][_0x159203(0x378)](_0x1c1ef6))return this['_sessions'][_0x159203(0x3d4)](_0x1c1ef6);this['_tryEnsureSocket']();const _0x37ed7a=this[_0x159203(0x45d)]['createInstance'](exports[_0x159203(0x4b9)],_0x1c1ef6,this[_0x159203(0x42b)]['asObservable']());return this[_0x159203(0x1aa)]['set'](_0x1c1ef6,_0x37ed7a),_0x37ed7a;}[_0x53b42f(0x1ad)](){const _0x26316e=_0x53b42f;var _0x4174a3;const _0x524ede=(_0x4174a3=this[_0x26316e(0x2a6)]['getConfig'](_t))!=null?_0x4174a3:Ft;return this[_0x26316e(0x1db)][_0x26316e(0x39f)](_0x524ede);}[_0x53b42f(0x2df)](){const _0x56f251=_0x53b42f;try{const _0xae709b=this[_0x56f251(0x1ad)]();if(_0xae709b){const _0xd8b9a=_0xae709b['send'];_0xae709b['send']=_0x14d170=>(this[_0x56f251(0x29f)](),_0xd8b9a['apply'](_0xae709b,[_0x14d170])),_0xae709b['message$']['subscribe'](_0x48aa80=>this['_onMessage'](_0xae709b,_0x48aa80)),_0xae709b[_0x56f251(0x3ed)][_0x56f251(0x454)](T[_0x56f251(0x460)](0x1))[_0x56f251(0x492)](_0x3946c8=>this['_logService'][_0x56f251(0x150)](_0x56f251(0x4da),_0x3946c8)),_0xae709b['open$']['pipe'](T[_0x56f251(0x460)](0x1))[_0x56f251(0x492)](()=>{const _0x32f0ab=_0x56f251;this[_0x32f0ab(0x29a)](_0xae709b);}),_0xae709b[_0x56f251(0x24c)][_0x56f251(0x454)](T[_0x56f251(0x460)](0x1))[_0x56f251(0x492)](_0x2c5281=>{const _0x495f3a=_0x56f251;this['_logService'][_0x495f3a(0x240)]('[CollaborationSessionService]',_0x495f3a(0x45b),_0x2c5281),this[_0x495f3a(0x19c)]();});}}catch(_0x11ecfb){this['_logService']['error'](_0x11ecfb),this[_0x56f251(0x19c)]();}}['_onConnectionOpen'](_0x111f14){const _0x3e28c6=_0x53b42f;this[_0x3e28c6(0x42f)][_0x3e28c6(0x240)](_0x3e28c6(0x422),_0x3e28c6(0x267)),_0x111f14['send']({'cmd':b[_0x3e28c6(0x3e6)]}),this[_0x3e28c6(0x29f)]();}['_onConnectionFailed'](){const _0x243a63=_0x53b42f;var _0xbc81c7;this['_status$'][_0x243a63(0x414)](0x2),this[_0x243a63(0x42b)][_0x243a63(0x414)](null),this[_0x243a63(0x2a2)](),this[_0x243a63(0x2be)](),this['_socketReady']=!0x1,this[_0x243a63(0x196)]<((_0xbc81c7=this[_0x243a63(0x2a6)][_0x243a63(0x1d8)](Yt))!=null?_0xbc81c7:Kt)?(this[_0x243a63(0x2f7)](this[_0x243a63(0x196)]),this[_0x243a63(0x196)]+=0x1):this[_0x243a63(0x23f)][_0x243a63(0x138)]({'type':oe['MessageType'][_0x243a63(0x23a)],'content':this[_0x243a63(0x2bd)]['t'](_0x243a63(0x21f))});}[_0x53b42f(0x2f7)](_0x1e9a1f){const _0x221ef2=_0x53b42f;var _0x1bc02f;const _0x4d03ce=((_0x1bc02f=this[_0x221ef2(0x2a6)][_0x221ef2(0x1d8)](Wt))!=null?_0x1bc02f:Gt)*0x2**_0x1e9a1f;this['_messageService']['show']({'type':oe['MessageType'][_0x221ef2(0x376)],'content':this[_0x221ef2(0x2bd)]['t'](_0x221ef2(0x304))}),this[_0x221ef2(0x1f2)]=setTimeout(()=>{const _0x55ec59=_0x221ef2;this[_0x55ec59(0x2df)](),clearTimeout(this[_0x55ec59(0x1f2)]),this[_0x55ec59(0x1f2)]=null;},_0x4d03ce);}[_0x53b42f(0x29f)](){const _0x309368=_0x53b42f;var _0x387ffb;this[_0x309368(0x2be)](),this[_0x309368(0x241)]=setTimeout(()=>this[_0x309368(0x172)](),(_0x387ffb=this[_0x309368(0x2a6)]['getConfig'](ut))!=null?_0x387ffb:Vt);}[_0x53b42f(0x172)](){const _0x89c9d8=_0x53b42f;this[_0x89c9d8(0x187)]['send']({'cmd':b['HEARTBEAT']}),this['_waitForHeartbeatResponse']();}[_0x53b42f(0x479)](){const _0x15f63d=_0x53b42f;var _0x5dc0be;this[_0x15f63d(0x1cc)]=setTimeout(()=>this[_0x15f63d(0x19c)](),(_0x5dc0be=this[_0x15f63d(0x2a6)]['getConfig'](xe))!=null?_0x5dc0be:dt);}[_0x53b42f(0x409)](_0x3029cb,_0x495dc4){const _0x26c3ed=_0x53b42f,{cmd:_0xd249be}=_0x495dc4;_0xd249be===b['HELLO']&&!this[_0x26c3ed(0x2bf)]&&(_0x3029cb[_0x26c3ed(0x328)]=_0x495dc4[_0x26c3ed(0x169)][_0x26c3ed(0x328)],this[_0x26c3ed(0x42b)][_0x26c3ed(0x414)](_0x3029cb),this[_0x26c3ed(0x41b)][_0x26c3ed(0x414)](0x3),this['_socketReady']=!0x0),_0xd249be===b[_0x26c3ed(0x33f)]&&this[_0x26c3ed(0x2a2)](),this[_0x26c3ed(0x29f)]();}[_0x53b42f(0x2be)](){const _0x20988d=_0x53b42f;this[_0x20988d(0x241)]!=null&&(clearTimeout(this[_0x20988d(0x241)]),this[_0x20988d(0x241)]=null);}[_0x53b42f(0x2a2)](){const _0x2ae5bb=_0x53b42f;this[_0x2ae5bb(0x1cc)]!=null&&(clearTimeout(this['_timeoutTimer']),this[_0x2ae5bb(0x1cc)]=null);}},exports[_0x53b42f(0x14a)]=pt([U(0x0,h['Inject'](h[_0x53b42f(0x1ac)])),U(0x1,h[_0x53b42f(0x295)](a['LocaleService'])),U(0x2,N[_0x53b42f(0x288)]),U(0x3,a['ILogService']),U(0x4,a[_0x53b42f(0x4a2)]),U(0x5,Be)],exports['CollaborationSessionService']);var as=Object[_0x53b42f(0x38a)],cs=Object[_0x53b42f(0x2a8)],ls=(_0x575b20,_0x488042,_0x442f28,_0x19d784)=>{const _0x3ec1f4=_0x53b42f;for(var _0x404fa5=_0x19d784>0x1?void 0x0:_0x19d784?cs(_0x488042,_0x442f28):_0x488042,_0x437f06=_0x575b20[_0x3ec1f4(0x419)]-0x1,_0x539356;_0x437f06>=0x0;_0x437f06--)(_0x539356=_0x575b20[_0x437f06])&&(_0x404fa5=(_0x19d784?_0x539356(_0x488042,_0x442f28,_0x404fa5):_0x539356(_0x404fa5))||_0x404fa5);return _0x19d784&&_0x404fa5&&as(_0x488042,_0x442f28,_0x404fa5),_0x404fa5;},se=(_0x1b44da,_0x205f11)=>(_0x38f552,_0x5013ae)=>_0x205f11(_0x38f552,_0x5013ae,_0x1b44da);exports[_0x53b42f(0x4b3)]=class extends a[_0x53b42f(0x18e)]{constructor(_0x503b9,_0x132aba,_0x3e43cc,_0x3b592a,_0x4b5970){const _0x2278ac=_0x53b42f;super(),d(this,_0x2278ac(0x305),new Map()),d(this,_0x2278ac(0x3ef),new Map()),d(this,_0x2278ac(0x2e4),!0x1),(this[_0x2278ac(0x2a6)]=_0x503b9,this['_localStorageService']=_0x132aba,this[_0x2278ac(0x26f)]=_0x3e43cc,this['_localeService']=_0x3b592a,this[_0x2278ac(0x311)]=_0x4b5970,this['_setupBeforeClosingHandler']());}[_0x53b42f(0x3be)](){const _0x2a9cea=_0x53b42f;this[_0x2a9cea(0x2e4)]=!0x0;}[_0x53b42f(0x3bc)](){const _0x551b6d=_0x53b42f;this[_0x551b6d(0x2e4)]=!0x1;}['dispose'](){const _0x37cd8a=_0x53b42f;this['_exhaustSavingTask']()[_0x37cd8a(0x3ab)](()=>super['dispose']());}async['loadOfflineData'](_0x33a6f9){const _0x5ae105=_0x53b42f;return this[_0x5ae105(0x2e4)]?null:this['_localStorageService'][_0x5ae105(0x49e)](Xe(_0x33a6f9));}async[_0x53b42f(0x345)](_0x561d58,_0x3e86fe){const _0x24fbaa=_0x53b42f;return!!this[_0x24fbaa(0x15b)][_0x24fbaa(0x441)](_0x561d58,_0x3e86fe);}[_0x53b42f(0x319)](_0x3fa2da,_0x44d9d1,_0x4b0843,_0x21b8b3){const _0x2c7b74=_0x53b42f,_0xc90134=this[_0x2c7b74(0x311)][_0x2c7b74(0x2af)](_0x3fa2da);this['_cachedData']['set'](_0x3fa2da,{'unitID':_0x3fa2da,'type':_0x44d9d1,'awaitingChangeset':_0x4b0843,'mutations':_0x21b8b3,'rev':_0xc90134}),this[_0x2c7b74(0x3ef)][_0x2c7b74(0x378)](_0x3fa2da)||this[_0x2c7b74(0x22c)](_0x3fa2da);}['_scheduleSaving'](_0x5c4c65){const _0x3ea760=_0x53b42f,_0x496d1e=this[_0x3ea760(0x2d7)]();_0x496d1e===0x0?this[_0x3ea760(0x27e)](_0x5c4c65):this[_0x3ea760(0x3ef)][_0x3ea760(0x2e0)](_0x5c4c65,setTimeout(()=>this[_0x3ea760(0x27e)](_0x5c4c65),_0x496d1e));}[_0x53b42f(0x2d7)](){const _0x3fa9ed=_0x53b42f;var _0x4a4c25;return(_0x4a4c25=this[_0x3fa9ed(0x2a6)][_0x3fa9ed(0x1d8)](St))!=null?_0x4a4c25:Xt;}['_saveCache'](_0x2f70de){const _0x322c45=_0x53b42f,_0x349ad3=this[_0x322c45(0x3ef)][_0x322c45(0x3d4)](_0x2f70de);return _0x349ad3!==void 0x0&&window[_0x322c45(0x4c0)](_0x349ad3),this[_0x322c45(0x15b)][_0x322c45(0x441)](Xe(_0x2f70de),this[_0x322c45(0x305)][_0x322c45(0x3d4)](_0x2f70de))[_0x322c45(0x3ab)](()=>this[_0x322c45(0x3ef)]['delete'](_0x2f70de));}async['_exhaustSavingTask'](){const _0x1dc040=_0x53b42f,_0x23f10e=[];this[_0x1dc040(0x3ef)]['forEach']((_0x201814,_0x2566cc)=>{const _0x2a9168=_0x1dc040;window[_0x2a9168(0x4c0)](_0x201814),_0x23f10e[_0x2a9168(0x1d7)](this[_0x2a9168(0x27e)](_0x2566cc)[_0x2a9168(0x3ab)](()=>{const _0x4bd562=_0x2a9168;this[_0x4bd562(0x3ef)][_0x4bd562(0x35b)](_0x2566cc);}));}),await Promise['all'](_0x23f10e);}[_0x53b42f(0x3e5)](){const _0x9159f6=_0x53b42f;this[_0x9159f6(0x1e9)](this[_0x9159f6(0x26f)][_0x9159f6(0x36b)](()=>{const _0xab856c=_0x9159f6;if(this['_saveTaskMap'][_0xab856c(0x22a)])return this['_localeService']['t'](_0xab856c(0x36c));}));}},exports['LocalCacheService']=ls([se(0x0,a['IConfigService']),se(0x1,a[_0x53b42f(0x2d8)]),se(0x2,N[_0x53b42f(0x34d)]),se(0x3,h['Inject'](a[_0x53b42f(0x1ba)])),se(0x4,h[_0x53b42f(0x295)](u[_0x53b42f(0x4c6)]))],exports[_0x53b42f(0x4b3)]);function Xe(_0x34beaf){return'unit-cache-'+_0x34beaf;}const pe=h[_0x53b42f(0x195)](_0x53b42f(0x352));var Et=(_0x15c32c=>(_0x15c32c[_0x15c32c[_0x53b42f(0x2eb)]=0x0]=_0x53b42f(0x2eb),_0x15c32c[_0x15c32c[_0x53b42f(0x34a)]=0x1]=_0x53b42f(0x34a),_0x15c32c))(Et||{});const qe=0x7530,ze=_0x53b42f(0x284);class hs extends a[_0x53b42f(0x18e)]{constructor(){const _0x585a7b=_0x53b42f;super(),d(this,_0x585a7b(0x313),a[_0x585a7b(0x3a8)][_0x585a7b(0x1f7)]()),d(this,_0x585a7b(0x431),new Set()),d(this,_0x585a7b(0x4d5),new Map()),d(this,_0x585a7b(0x1fc),null),d(this,_0x585a7b(0x387),new Map()),d(this,_0x585a7b(0x47d),new Map()),this[_0x585a7b(0x243)]();}[_0x53b42f(0x4df)](){const _0x234639=_0x53b42f;super[_0x234639(0x4df)](),this[_0x234639(0x387)][_0x234639(0x421)]((_0x43ff4b,_0x2db898)=>this[_0x234639(0x480)](_0x2db898)),this['_heartbeatTimer']&&window[_0x234639(0x4be)](this['_heartbeatTimer']);}[_0x53b42f(0x37c)](_0x3c573a){const _0x54af6b=_0x53b42f;return this[_0x54af6b(0x451)](_0x3c573a)[_0x54af6b(0x454)](g[_0x54af6b(0x4dc)]());}['editingUnit'](_0x3b2339){const _0x281bce=_0x53b42f;this[_0x281bce(0x431)][_0x281bce(0x22a)]===0x0&&this['_scheduleHeartbeat'](),this['_selfUnitIDs'][_0x281bce(0x1e5)](_0x3b2339),this[_0x281bce(0x1f8)]({'type':0x0,'memberID':this[_0x281bce(0x313)],'unitIDs':[_0x3b2339],'isForwarded':!0x1});}[_0x53b42f(0x33c)](_0x595e67){const _0x447920=_0x53b42f;this['_selfUnitIDs'][_0x447920(0x35b)](_0x595e67),this['_selfUnitIDs'][_0x447920(0x22a)]===0x0&&this[_0x447920(0x1fc)]&&window[_0x447920(0x4be)](this[_0x447920(0x1fc)]);}['_init'](){const _0x4fdb16=_0x53b42f;this['disposeWithMe'](a[_0x4fdb16(0x1bb)](g[_0x4fdb16(0x474)](window,_0x4fdb16(0x2a4))[_0x4fdb16(0x492)](_0x49ad76=>{const _0x4d00a4=_0x4fdb16;if(_0x49ad76[_0x4d00a4(0x4bd)]!==ze||!_0x49ad76[_0x4d00a4(0x163)])return;const _0x34a3df=JSON[_0x4d00a4(0x4b2)](_0x49ad76[_0x4d00a4(0x163)]);this[_0x4d00a4(0x3db)](_0x34a3df);}))),window[_0x4fdb16(0x158)](_0x4fdb16(0x2e6),()=>this[_0x4fdb16(0x1f8)]({'type':0x1,'memberID':this[_0x4fdb16(0x313)],'unitIDs':Array['from'](this[_0x4fdb16(0x431)])}));}[_0x53b42f(0x3db)](_0x2a3264){const _0x5bc7ed=_0x53b42f;switch(_0x2a3264[_0x5bc7ed(0x20c)]){case 0x0:this['_handleJoinEvent'](_0x2a3264);break;case 0x1:this[_0x5bc7ed(0x2f9)](_0x2a3264);break;case 0x2:this[_0x5bc7ed(0x191)](_0x2a3264);break;}}['_handleJoinEvent'](_0x3d660b){const _0x348965=_0x53b42f,{unitIDs:_0x412fe5,memberID:_0x1fac15,isForwarded:_0x4a713b}=_0x3d660b;_0x412fe5[_0x348965(0x421)](_0x41742b=>{const _0x3567bb=_0x348965;if(!_0x4a713b&&this[_0x3567bb(0x4d5)][_0x3567bb(0x378)](_0x41742b)&&this[_0x3567bb(0x451)](_0x41742b)[_0x3567bb(0x414)](0x1),!this[_0x3567bb(0x4d5)][_0x3567bb(0x378)](_0x41742b)||!this[_0x3567bb(0x4d5)][_0x3567bb(0x3d4)](_0x41742b)[_0x3567bb(0x378)](_0x1fac15)){const _0x4b9eb2=this['_unitOnClients']['get'](_0x41742b)||new Set();_0x4b9eb2[_0x3567bb(0x1e5)](_0x1fac15),this[_0x3567bb(0x4d5)][_0x3567bb(0x2e0)](_0x41742b,_0x4b9eb2),this[_0x3567bb(0x1cf)](_0x1fac15);}}),_0x4a713b||this[_0x348965(0x1f8)]({'type':0x0,'memberID':this[_0x348965(0x313)],'unitIDs':[...this[_0x348965(0x431)]],'isForwarded':!0x0});}['_scheduleClearOtherTimer'](_0x4825d9){const _0x4fa61d=_0x53b42f;this[_0x4fa61d(0x480)](_0x4825d9);const _0xd4c7ee=window[_0x4fa61d(0x373)](()=>{const _0x32cfe9=_0x4fa61d;this['_unitOnClients'][_0x32cfe9(0x421)](_0x45ec9d=>{const _0x349afe=_0x32cfe9;_0x45ec9d[_0x349afe(0x35b)](_0x4825d9);});},qe*0x2);this[_0x4fa61d(0x387)]['set'](_0x4825d9,_0xd4c7ee);}['_removeClearOtherTimer'](_0x4e8123){const _0x4b4807=_0x53b42f;if(this[_0x4b4807(0x387)][_0x4b4807(0x378)](_0x4e8123)){const _0x13100b=this['_clearOtherTimers']['get'](_0x4e8123);_0x13100b&&window[_0x4b4807(0x4c0)](_0x13100b),this[_0x4b4807(0x387)][_0x4b4807(0x2e0)](_0x4e8123,null);}}['_handleLeaveEvent'](_0x433abd){const _0x32cbba=_0x53b42f,{memberID:_0x36b353,unitIDs:_0x45dbf9}=_0x433abd;_0x45dbf9[_0x32cbba(0x421)](_0x3bae8a=>{const _0x274b91=_0x32cbba;var _0x1936f0;const _0xb0c4a6=this[_0x274b91(0x4d5)]['get'](_0x3bae8a);_0xb0c4a6&&(_0xb0c4a6[_0x274b91(0x35b)](_0x36b353),(_0x1936f0=this[_0x274b91(0x451)](_0x3bae8a))==null||_0x1936f0[_0x274b91(0x414)](_0xb0c4a6['size']===0x0?0x0:0x1));}),this['_removeClearOtherTimer'](_0x36b353);}['_handleHeartbeatEvent'](_0x21216d){const _0xfff94c=_0x53b42f;this[_0xfff94c(0x1cf)](_0x21216d['memberID']);}[_0x53b42f(0x1f8)](_0x2da05f){const _0xc4494d=_0x53b42f;localStorage[_0xc4494d(0x441)](ze,JSON[_0xc4494d(0x339)](_0x2da05f));}[_0x53b42f(0x2b4)](){const _0x14c59f=_0x53b42f;this[_0x14c59f(0x1fc)]=window[_0x14c59f(0x143)](()=>{const _0x20ec31=_0x14c59f;this[_0x20ec31(0x1f8)]({'type':0x2,'memberID':this[_0x20ec31(0x313)]});},qe);}[_0x53b42f(0x451)](_0x40f349){const _0x5393ed=_0x53b42f;return this[_0x5393ed(0x47d)]['has'](_0x40f349)||this['_unitStatus']['set'](_0x40f349,new g[(_0x5393ed(0x28a))](0x0)),this[_0x5393ed(0x47d)]['get'](_0x40f349);}}var _s=Object[_0x53b42f(0x38a)],us=Object[_0x53b42f(0x2a8)],ds=(_0x1f025d,_0x444462,_0x4c03e6,_0xf3b913)=>{const _0x4c90bd=_0x53b42f;for(var _0x3823ea=_0xf3b913>0x1?void 0x0:_0xf3b913?us(_0x444462,_0x4c03e6):_0x444462,_0x2bccea=_0x1f025d[_0x4c90bd(0x419)]-0x1,_0x4b6eab;_0x2bccea>=0x0;_0x2bccea--)(_0x4b6eab=_0x1f025d[_0x2bccea])&&(_0x3823ea=(_0xf3b913?_0x4b6eab(_0x444462,_0x4c03e6,_0x3823ea):_0x4b6eab(_0x3823ea))||_0x3823ea);return _0xf3b913&&_0x3823ea&&_s(_0x444462,_0x4c03e6,_0x3823ea),_0x3823ea;},Je=(_0x5a9006,_0x535fa6)=>(_0x2028c9,_0xdf2bec)=>_0x535fa6(_0x2028c9,_0xdf2bec,_0x5a9006);let ve=class{constructor(_0x209a44,_0x37b7e3){const _0x1fbbb9=_0x53b42f;this[_0x1fbbb9(0x45d)]=_0x209a44,this[_0x1fbbb9(0x2f1)]=_0x37b7e3;}[_0x53b42f(0x3ec)](_0x832f5e){const _0x5d8e9a=_0x53b42f;this[_0x5d8e9a(0x2b1)](_0x832f5e),this[_0x5d8e9a(0x1fa)](_0x832f5e);}[_0x53b42f(0x168)](_0x270f03){const _0xdc3ba6=_0x53b42f,_0x478781=this[_0xdc3ba6(0x45d)][_0xdc3ba6(0x3d4)](M[_0xdc3ba6(0x3fb)]),{redoCache:_0x10052f}=_0x478781[_0xdc3ba6(0x2a1)]();if(_0x10052f[_0xdc3ba6(0x419)]===0x0)return _0x270f03;let _0x19d9f8=a[_0xdc3ba6(0x3a8)][_0xdc3ba6(0x2dc)](_0x270f03['mutations'][0x0]);for(let _0x23d4bf=0x0;_0x23d4bf<_0x10052f['length'];_0x23d4bf++){const _0x32afa4={'id':_0xdc3ba6(0x1a1),'params':{..._0x10052f[_0x23d4bf]}},_0x5ce73c=this[_0xdc3ba6(0x2f1)][_0xdc3ba6(0x412)](_0x19d9f8,_0x32afa4,!0x1);if(u[_0xdc3ba6(0x231)](_0x5ce73c))throw _0x5ce73c[_0xdc3ba6(0x150)];_0x19d9f8=_0x5ce73c[_0xdc3ba6(0x24f)];}return{...a[_0xdc3ba6(0x3a8)][_0xdc3ba6(0x2dc)](_0x270f03),'mutations':[_0x19d9f8]};}['_transformUndoRedoStack'](_0x7689cb){const _0x4d35b2=_0x53b42f,_0x288ca5=this[_0x4d35b2(0x45d)][_0x4d35b2(0x3d4)](M[_0x4d35b2(0x3fb)]),{undoCache:_0xa76a11,redoCache:_0x312624}=_0x288ca5[_0x4d35b2(0x2a1)]();if(_0xa76a11[_0x4d35b2(0x419)]===0x0||_0x312624['length']===0x0)return;const _0x3b8d9f=[],_0x2543d3=[];let _0x3a4b87=a['Tools'][_0x4d35b2(0x2dc)](_0x7689cb['mutations'][0x0]),_0x6ec935=a[_0x4d35b2(0x3a8)][_0x4d35b2(0x2dc)](_0x7689cb['mutations'][0x0]);for(let _0x4361cc=_0xa76a11[_0x4d35b2(0x419)]-0x1;_0x4361cc>=0x0;_0x4361cc--){const _0x109fc9={'id':_0x4d35b2(0x1a1),'params':{..._0xa76a11[_0x4361cc]}},_0x2324db={'id':_0x4d35b2(0x1a1),'params':{..._0x312624[_0x4361cc]}},_0x365503=this[_0x4d35b2(0x2f1)][_0x4d35b2(0x412)](_0x3a4b87,_0x109fc9,!0x1),_0xa1278=this[_0x4d35b2(0x2f1)][_0x4d35b2(0x412)](_0x6ec935,_0x2324db,!0x1);if(u[_0x4d35b2(0x231)](_0x365503))throw _0x365503[_0x4d35b2(0x150)];if(u[_0x4d35b2(0x231)](_0xa1278))throw _0xa1278['error'];_0x3b8d9f[_0x4d35b2(0x3ca)](_0x365503[_0x4d35b2(0x2c7)]['params']),_0x2543d3[_0x4d35b2(0x3ca)](_0xa1278[_0x4d35b2(0x2c7)][_0x4d35b2(0x17b)]),_0x3a4b87=_0x365503['m1Prime'],_0x6ec935=_0xa1278[_0x4d35b2(0x24f)];}_0x288ca5[_0x4d35b2(0x293)]({'undoCache':_0x3b8d9f,'redoCache':_0x2543d3});}[_0x53b42f(0x1fa)](_0x2ac7a5){const _0x41722a=_0x53b42f,_0x6b46df=this[_0x41722a(0x45d)]['get'](M['IMEInputManagerService']),_0x1f2156=_0x6b46df['getActiveRange']();if(_0x1f2156==null)return;const _0x3f2b15=[{'id':_0x41722a(0x1a1),'params':{'unitId':_0x2ac7a5[_0x41722a(0x348)],'actions':null,'textRanges':[_0x1f2156]}}],_0x74530f=this[_0x41722a(0x2f1)][_0x41722a(0x33b)](_0x2ac7a5,_0x3f2b15);if(!u[_0x41722a(0x40a)](_0x74530f))throw _0x74530f['error'];const _0x45749c=_0x74530f['m2Prime'][0x0]['params'][_0x41722a(0x461)];Array[_0x41722a(0x4af)](_0x45749c)&&_0x45749c[_0x41722a(0x419)]&&_0x6b46df['setActiveRange'](_0x45749c[0x0]);}};function _0x3fcd(){const _0x6a7245=['_docSyncEditingCollabCursorService','Optional','forEach','[CollaborationSessionService]','toString','removeParam','SheetSkeletonManagerService','EXCHANGE_UPLOAD_FILE_SERVER_URL_KEY','[OfflineState]:\x20received\x20acknowledgement.','eventID','?url=','JSONX','_socket$','SetWorksheetActivateCommand','SNAPSHOT_INVALID_SNAPSHOT','message$','_logService','SEND_CHANGESET_TIMEOUT_KEY','_selfUnitIDs','handleIRemoveRow','init','fetching\x20the\x20latest\x20document\x20from\x20the\x20server.','_toggleOffline','takeUntil','onRemoteChangeset','transformSelections','[FetchMissState]','fillStyle','onlyLocal','LICENSE_IMPORT_SIZE_EXCEEDED','url(#off-line-single_clip0_910_343)','onCommandExecuted','858810rRjLbv','getRoom','setItem','JOIN','_colorIndex','saveImage','UNKNOWN_CMD','_clearScheduledTask','off-line-single_clip0_910_343','SelectionManagerService','_initStatusListener','\x20-\x20','blue400','SNAPSHOT_URL_KEY','_entityInit$','string','_collabSessionService','LIVESHARE_NEW_HOST','_ensureSubject','HTTPService','serializeTextRange','pipe','_startSheetCollabCursor','deleteCollaborator','className','_acknowledgedAwaitingChangeset','handleDeleteRangeMoveUp','CHANGESET_ACK','socket\x20close','_lockTransition','_injector','interceptor','/universer-api/snapshot/','take','textRanges','name','NEW_CHANGESETS','_transformSelections','LOGIN_URL_KEY','@univerjs/engine-formula','HEARTBEAT_INTERVAL','popstate','loadDoc','AUTHZ_URL_KEY','_transformStack','contains','hovered','APPLY_NON_SEQUENTIAL_REVISION','_sheetSkeletonManagerService','onStarting','Rectangle','extend','bottom','fromEvent','getSheetBySheetId','IURLService','createInstance','range','_waitForHeartbeatResponse','result','_docTransformIMECacheService','_startCollaboration','_unitStatus','getValue','_drawAnchor','_removeClearOtherTimer','_config','editingUnit','getRelativeCoord','_imageSourceCache','BASE64','code','_uiPartsService','584petbQw','_onRemoteRejected','_themeService','ImageUploadStatusType','IUIPartsService','_cursor','_textBubble','state$','path','_collabCursorController','subscribe','[FetchingMissState]:\x20not\x20expected\x20to\x20receive\x20ack\x20when\x20`this._awaitingChangeset`\x20is\x20null!','on-line-single_clip0_910_349','collabCursorState$','_syncEditingCollabCursorService','resend','_getUndoStack','LIVESHARE_FETCH_OPERATIONS','_univerInstanceService','onlineStatusTitle','evenodd','remove','getItem','IDLE','flatMap','IUndoRedoService','IConfigService','patch','xlink:href','IRenderManagerService','_loadSheet','confirm','DisposableCollection','onSendChangeset','_checkMissing','getOwnPropertySymbols','gold400','updateMember','_memberService','isArray','pending','image/jpg','parse','LocalCacheService','listCollaborators','getMember','getTypeOfUnitAdded$','_onCursorUpdate','#fff','CollaborationSession','onMissingChangesets','Vector2','_sessionStatus$','key','clearInterval','_docSkeleton','clearTimeout','editing\x20status\x20changed\x20to','InsertColCommandId','ONLINE','RECV','Univer','RevisionService','DEFAULT_FILE_NAME','ILogService','RemoveColCommandId','_getLoginPath','@univerjs/network','body','save\x20fail\x20reason\x20is\x20','PERMISSION_REJ','_remoteChangesetQueue','_onJoinRoomEvent','permissionRejEvent','resolve','VIEW_MAIN','shareReplay','_unitOnClients','transformUndoRedo','values','ERROR_IMAGE_TYPE','getCollabCursors$','[CollaborationSessionService]:\x20socket\x20error','AWAITING','distinctUntilChanged','COLLAB_WEB_SOCKET_URL','clear','dispose','[serializeCombRequest]:\x20should\x20not\x20fall\x20into\x20default\x20branch!','UPDATE_CURSOR','fillRule','startColumn','LEAVE','_online','_hover','c1Prime','href','parseProtocolChangeset','prototype','updateCollaborator','1em','show','collaboration.single-unit.warning','[CollaborationState]:\x20apply\x20error!','OnLifecycle','encodeURIComponent','awaiting','connection\x20error','open$','session','_updateState','UniverInstanceType','setInterval','_transitionLocked','row','complete','handleIRemoveCol','height','_clearRedo','CollaborationSessionService','getColor','DependentOn','CollaborationStatusDisplay','_disableEditing','_document','error','getDocObject','_httpService','replace','_onUserJoin','[SyncedState]:\x20invalid\x20calling\x20to\x20`resend`.','onTransformIME','Starting','addEventListener','skeleton','concatMap','_localStorageService','_schedule','transformByState','UniverCollaborationClientPlugin','c2Prime','getTypeOfUnitDisposed$','fetch_missing','[SyncedState]:\x20received\x20acknowledgement.','newValue','UNIVER_SHEET','combineLatest','enableAuthServer','UNAUTHENTICATED','transformRemoteChangeset','data','RefRangeService','_assignedColors','handleInsertRow','_draw','_handler','_clearLocalCache','_onLocalMutation','getCurrentUnitForType','_sendHeartbeat','_onUserLeave','ISnapshotServerService','fillText','addImageSourceCache','USERS_LEAVE','switchMap','_refRangeService','some','params','_getAnchorBounding','_createHandler','registerComponent','Unknown\x20user','LICENSE_MAX_UNITS_EXCEEDED','[CollaborationUndoRedoService]','_updateStatus','status$','Rect','hasOwnProperty','url(#on-line-single_clip0_910_349)','_socket','_commandService','collabStatus.conflict','json','DeleteRangeMoveUpCommandId','deserializeToCombResponse','catch','Disposable','getCoordByCell','MSG_FOR_ERROR','_handleHeartbeatEvent','round','collaborators','pushState','createIdentifier','_retryCount','IRemoteInstanceService','_renderManagerService','cursorInfo$','awaiting_with_pending','fromCollab','_onConnectionFailed','on-line-single','startsWith','_onConflict','endRow','doc.mutation.rich-text-editing','_collaborationController','closePath','NOT_COLLAB','offline','[CollaborationSession]:\x20should\x20not\x20send\x20message\x20when\x20the\x20session\x20is\x20offline!','_substituteUndoStack','_colorAssignService','[FetchingMissState]:\x20invalid\x20calling\x20to\x20`resend`.','_sessions','defs','Injector','_createSocket','_getUploadFileURL','map','_onRefRangeChange','getMemberID','_substituteRedoStack','file','OFFLINE','/object/','baseRev','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','univerjs-icon\x20univerjs-icon-','getSheetId','LocaleService','toDisposable','_labelPosition','getUnitOnRev','Ready','reject','WebSocketService','create','focused$','defIds','_initModules','ICommandService','saveSheetBlock','collabStatus.synced','originalMeta','collab-text-range-','awaitingChangeset','getCollabEntity','_timeoutTimer','onTransformSelections','LIVESHARE_TERMINATE','_scheduleClearOtherTimer','_getCtorByUniverType','_hovered','_onRemoteChangeset','MUTATION','[CollaborationSocketService]:\x20failed\x20to\x20create\x20socket!','_socketMessageSubscription','asObservable','push','getConfig','toggleOffline','_lastPointer','_socketService','@univerjs/core','TEXT_RANGE_LAYER_INDEX','TextSelectionManagerService','1444044RqPlVv','_toggleOnline','override','Shape','\x20to\x20','NodePositionConvertToCursor','add','getAncestorScale','_urlService','ThemeService','disposeWithMe','_unitId','EXCHANGE_SIGN_URL_SERVER_URL_KEY','split','joinRsp','executeCommand','RETRY_CONNECTING_MAX_COUNT','roomMembers$','HEARTBEAT_TIMEOUT','_retryConnectingTimer','encode','[CollaborationController]:\x20invalid\x20univer\x20type:\x20','onlineStatus','/role','generateRandomId','_send','getUnitId','_transformPreviousActiveRange','lineTo','_heartbeatTimer','text','resourceIDs','_getAPIPrefixPath','[PendingState]:\x20invalid\x20calling\x20to\x20`resend`.','sessionStatus','FAIL','_change$','attrs','symbol','onPointerEnterObserver','/-/object/list','/new_changes','_pendingMutations','delay','history','type','failed\x20to\x20apply\x20missed\x20changesets!','_joinRoom','red300','_cursorInfo$','_hideTimer','_createInitialStateImpl','_onCursorDelete','_permissionService','_clearUndo','POST','_applyRemoteChangeset','COMPLETION_FINISHED','ERROR_EXCEED_SIZE','unitId','mutations','socketService','_getCurrentRevision','_sheetTransformSelectionsService','session.connection-failed','UNIVER_DOC','merge','sessionStatus$','location','purple300','@wendellhu/redi','IAuthzIoService','putCollaborators','debounceTime','APPLY_REVISION_CONFILICT','size','onMouseMove','_scheduleSaving','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','_roomMembers$','_scene','DesktopCollaborationStatusDisplayController','isTransformMutationFailure','MoveRangeCommandId','transformChangesets','allowed','0\x200\x2016\x2016','CollaborationSocketService','_members','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','_getSheetObject','Error','@univerjs/sheets','icon','with','_exhaustRemoteChangesetQueue','_messageService','debug','_sendHeartbeatTimer','cmd','_init','/universer-api/oidc/authpage','includes','_handleHover','WorkbookEditablePermission','COMPRESS_MUTATION_APPLY','ensureActiveSheet','COLLAB_WEB_SOCKET_URL_KEY','collabStatus.offline','close$','_showConflictNotification','_getSendChangesetTimeout','m1Prime','FileId','auth.needGotoLoginAlert','selections','enableOfflineEditing','/unit/','event$','@univerjs/engine-render','PERMISSION_DENIED','isActive','unit','ITransformService','tag','getImageSourceCache','displayName','fetchMissingChangesets','b64DecodeUnicode','_getAPIPrefix','ICollaborationSocketService','online','SetSelectionsOperation','clipPath','DataLoaderController','state','socket\x20open.','roomInfos','_submitChangeset','UNIVER_SLIDE','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','subunit','_anchorDot','_updateURLWithCurrentState','_beforeCloseService','width','getTime','_roomMembers','setCurrentUser','[OfflineState]:\x20received\x20changeset.','submit\x20changeset\x20error!','title','LICENSE_EXPORT_SIZE_EXCEEDED','_collabCursorState$','send','_color','LIVESHARE_REQUEST_HOST','random','selection','_saveCache','31086209xTUkgH','_http','_fetchMissChangesets','DeleteRangeMoveLeftCommandId','trim','ACTIVE_UNIT_EVENT_CHANNEL','liveShareNewHost','put','InsertRangeMoveRightCommandId','IMessageService','mapDocumentTypeToUniverType','BehaviorSubject','onRemoteAck','_getSnapshotAPIPrefix','Error\x20on\x20receiving\x20event','_drawRange','_executeRemoteChangeset','_scheduleCollaborationTimeoutTimer','YUUMI_URL_COL_OUT_OF_RANGE','INGEST','setUndoRedoMutationParamsCache','UNKNOWN_CODE','Inject','createCollaborator','getSheetObject','Subject','_decreaseWaiting','_onConnectionOpen','[CollaborationSession]','_getScale','ranges','getCurrent','_rescheduleHeartbeatEvent','UserManagerService','getUndoRedoMutationParamsCache','_clearTimeoutTimer','entries','storage','EffectRefRangId','_configService','status','getOwnPropertyDescriptor','assign','_undoRedoService','close','HEARTBEAT_TIMEOUT_KEY','_eventUnsubscribe','_docStateChangeManagerService','getCurrentRevForDocument','APPLY_REJECT','_transformUndoRedoStack','CompressMutationService','append','_scheduleHeartbeat','replaceState','handleDeleteRangeMoveLeft','div','CommandType','_name','[ClientCollaborationController]:\x20invalid\x20state\x20transition!\x20State\x20transferred\x20from\x20is\x20not\x20the\x20current\x20state.\x0aBefore:\x20','_notificationService','roles','_localeService','_clearHeartbeatTimer','_socketReady','_startDocCollabCursor','actions','updatePermissionPoint','getMergeData','/universer-api/comb','from','sequenceExecute','m2Prime','[PendingState]:\x20received\x20acknowledgement.','FETCH_MISSING','/universer-api/snapshot','syncEditingCollabCursor','JOINING','substring','serializeRangeWithSheet','restore','useObservable','CHANGESET_REJ','handleInsertRangeMoveDown','/allowed','objectType','_compressMutationService','onload','_getSaveTimeout','ILocalStorageService','UUID','BuiltInUIPart','APPLY_PERMISSION_DENIED','deepClone','InsertSheetMutation','_getMergeRange','_tryEnsureSocket','set','4794727yiSNnS','LifecycleStages','COLORS','_disabled','drawWith','unload','createElement','_scheduleTimestamp','/resources','10FyWKuL','NO_OTHER_CLIENTS_EDITING','LocalUndoRedoService','appendMutation','PSEUDO_FETCH_MISSING_RESULT','urlChange$','filter','_transformService','_removeRoom','_anchor','color','getViewport','SetTextSelectionsOperation','_scheduleReconnection','InsertRowCommandId','_handleLeaveEvent','_type','UNDEFINED','registerRefRange','@univerjs/ui','pluginName','whenReady','change$','CollaborationController','@univerjs/docs','indexOf','session.will-retry','_cachedData','revision','collaMsg','parseChangesetToProtocol','objectID','DocStateChangeManagerService','_onRecvEvent','post','_waitCount','registerOnClose','RichTextEditingMutation','[DataLoaderController]','_revisionService','ws://127.0.0.1:8000/universer-api/comb/connect','_id','_onFetchMissResult','SUBMIT_CHANGESET','COLLAB_SUBMIT_CHANGESET_URL','concat','_docSkeletonManagerService','updateOfflineData','_isPermissionRej','90216QWPhRo','_onCombEvent','setAlpha','routeKey','onTransformRemoteChangesetByIMECache','HEADER_MENU','ERROR_IMAGE','This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!','univer-online','userID','toStringTag','currentSkeleton$','newCsEvent','memberID','LIVESHARE_OPERATION','HEARTBEAT_INTERVAL_KEY','svg','currentColor','SYNCED','_awaitingChangeset','csRejEvent','toRgbString','_updateLocalCache','setWaitCount','getRangePointData','forwardRef','/fetchmissing?from=','ImageSourceType','_syncEditingCollabCursor','onlineStatusIcon','stringify','PENDING','transformMutationsWithChangeset','disposeUnit','[OfflineState]:\x20invalid\x20calling\x20to\x20`resend`.','_localCacheService','HEARTBEAT','[CollaborationEntity]:\x20initial\x20state\x20has\x20been\x20created\x20before.\x20You\x20should\x20not\x20call\x20\x22init\x22\x20twice.','getCurrentUser','session.collaboration-timeout','idSuffix','handleInsertCol','saveOfflineData','_singleActiveUnitService','fill','unitID','COMPRESS_MUTATION_SEND','OTHER_CLIENTS_EDITING','_getRedoStack','[SyncedState]:\x20received\x20rejection.','IBeforeCloseService','roomMembers','localeService','searchParams','docStateChange$','univer-pro.collaboration-client.single-active-unit-service','Steady','endColumn','fetchThroughInterceptors','CONFLICT','/-/object/-/batch_allowed','getParam','getUniverSheetInstance','arc','delete','reverse','infoRsp','replaceTextRanges','dispose$','batchAllowed','makeDirty','AuthzIoHttpService','readAsDataURL','setParam','UniverCollaborationPlugin','labelPosition','TOO_MANY_REQUESTS','isEditing','getSelections','_queuedRemoteChangesets','registerBeforeClose','collaboration-client.offline-data-not-saved','_getDocObject','_transformIMECache','INotificationService','mergeOverrideWithDependencies','/block/','_entities','setTimeout','isTransformChangesetsSuccess','M0\x200H16V16H0z','Warning','handleMoveRange','has','_state','subUnitId','cursorInfo','getUnitStatus$','UNIVER_COLLABORATION_CLIENT_PLUGIN','IPermissionService','sheetId','_removeCollabCursors','none','/collaborator','deserializeRangeWithSheet','_docTransformSelectionsService','csAckEvent','requireSession','_clearOtherTimers','_render','_transformUndoredo','defineProperty','black','Workbook','WebURLService','permission.content','objects','IUniverInstanceService','toggleOnline','_loadDoc','setShapeProps','measureText','isPermissionRej','image/bmp','getCollabEntity$','_updateCollabCursors','InsertRangeMoveDownCommandId','not_collab','ColorKit','collabStatus.syncing','_unitID','getImage','createSocket','15etyqai','incrementRevForDocument','collaborationUniverTypes','_range','you\x20should\x20override\x20\x22IUndoRedoService\x22\x20provided\x20in\x20\x22core\x22\x20package!','RxDisposable','_cursors','unknown','Tools','IHTTPImplementation','_collaborationPaused','then','?size=','image/png','url(#$1','univer-online-status-title','_event$','_onRemoteACK','INTERNAL_ERROR','_collaborationTimeoutTimer','UniverIcon','onPointerLeaveObserver','currentTheme$','_unlockTransition','SnapshotService','getInterceptPoints','enableSingleActiveInstanceLock','_state$','enableLocalCache','[UniverCollaborationClientPlugin]','disableLocalCache','removeMember','ThresholdInterceptorFactory','findNodePositionByCharIndex','_setupSubUnitSync','RegularPolygon','FromArray','getRenderById','colorChannel1','[CollaborationController]:\x20remote\x20changeset\x20applied\x20error.','_incrementRevisionNumber','MessageType','unshift','USERS_ENTER','_sendingTimer','OffLineSingle','registerHTTPInterceptor','_snapshotService','_updateLocalCursor','_clearCollaborationTimeoutTimer','saveChangeset','_replaceFileID','get','NOT_FOUND','min','_userManagerService','changesets','521295JTaTAF','SNAPSHOT_HAS_BEEN_REMOVED','_handleEvent','Cannot\x20assemble\x20a\x20changeset\x20from\x20multiple\x20mutations\x20of\x20different\x20types:\x20','_initStatusComponent','onRemoteRej','LICENSE_DISTRO_REJECTED','_snapshotServerService','#FFF','conflict','@wendellhu/redi/react-bindings','addObject','_setupBeforeClosingHandler','HELLO','\x20in\x20_schedule.','_session','joinEvent','loadOfflineData','synced','transformIMECache','error$','[CollaborationEntity]:\x20cannot\x20lock\x20transition\x20twice!\x20This\x20is\x20an\x20implementation\x20error,\x20meaning\x20you\x20transit\x20the\x20collaboration\x20state\x20again\x20in\x20the\x20process\x20of\x20a\x20previous\x20transition.\x20This\x20should\x20never\x20happen.','_saveTaskMap','univer-offline','getOffsetConfig','_ws','DocSkeletonManagerService','call','top','/universer-api/authz','onMissedChangesetFetched','listRoles','univer-pro.collaboration-client-socket-service','getResourcesRequest','IMEInputManagerService','conflict.content','\x0aAfter:\x20','CollaborationEvent','FETCH_MISS','_HTTPService','567fxzGlv','_getSignURL','current','transform','[OfflineState]:\x20received\x20rejection.','UNRECOGNIZED','useRef','INVALID_ARGUMENT','_onMessage','isTransformMutationsWithChangesetSuccess','use','YUUMI_UNABLE_LOAD_URL','CONNECTOR_DATA_TOO_LARGE','24591vQlwvx','CHANGESET_REVISION_CONFILICT','assignAColorForMemberID','rev','transformMutation','_redoStacks','next','_updateSubUnitFromURLParams','children','onSyncEditingCollabCursor','[PendingState]:\x20unhandled\x20univer\x20type:\x20','length','UNIVER_UNKNOWN','_status$','...','_shapes','getFocusedUnit'];_0x3fcd=function(){return _0x6a7245;};return _0x3fcd();}ve=ds([Je(0x0,h[_0x53b42f(0x295)](h[_0x53b42f(0x1ac)])),Je(0x1,u[_0x53b42f(0x25a)])],ve);var Ss=Object[_0x53b42f(0x38a)],vs=Object['getOwnPropertyDescriptor'],gs=(_0x523822,_0x2bf1da,_0x360861,_0x3e9b77)=>{const _0x326dcf=_0x53b42f;for(var _0x356d6f=_0x3e9b77>0x1?void 0x0:_0x3e9b77?vs(_0x2bf1da,_0x360861):_0x2bf1da,_0x1bea3a=_0x523822[_0x326dcf(0x419)]-0x1,_0x4f1a9c;_0x1bea3a>=0x0;_0x1bea3a--)(_0x4f1a9c=_0x523822[_0x1bea3a])&&(_0x356d6f=(_0x3e9b77?_0x4f1a9c(_0x2bf1da,_0x360861,_0x356d6f):_0x4f1a9c(_0x356d6f))||_0x356d6f);return _0x3e9b77&&_0x356d6f&&Ss(_0x2bf1da,_0x360861,_0x356d6f),_0x356d6f;},Ze=(_0x3fcdbd,_0x882490)=>(_0x5e73d9,_0x3fd4fa)=>_0x882490(_0x5e73d9,_0x3fd4fa,_0x3fcdbd);let ge=class{constructor(_0x445023,_0x32289c){const _0x23e425=_0x53b42f;this['_injector']=_0x445023,this[_0x23e425(0x2f1)]=_0x32289c;}[_0x53b42f(0x438)](_0x542c12){const _0x55c6aa=_0x53b42f;var _0x444159;const _0x33b767=this[_0x55c6aa(0x45d)][_0x55c6aa(0x3d4)](M[_0x55c6aa(0x1de)]),_0x4bedc0=(_0x444159=_0x33b767['getSelections']())!=null?_0x444159:[],_0x37c97c=_0x4bedc0==null?void 0x0:_0x4bedc0['map'](M[_0x55c6aa(0x453)]);if(_0x37c97c[_0x55c6aa(0x419)]===0x0)return;const _0xfcba4b=[{'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x542c12['unitID'],'actions':null,'textRanges':_0x37c97c}}],_0x4f4217=this['_transformService'][_0x55c6aa(0x33b)](_0x542c12,_0xfcba4b);if(!u[_0x55c6aa(0x40a)](_0x4f4217))throw _0x4f4217[_0x55c6aa(0x150)];const _0x5ce101=_0x4f4217[_0x55c6aa(0x2c7)][0x0][_0x55c6aa(0x17b)][_0x55c6aa(0x461)];Array[_0x55c6aa(0x4af)](_0x5ce101)&&_0x5ce101['length']&&_0x33b767[_0x55c6aa(0x35e)](_0x5ce101,!0x1);}};ge=gs([Ze(0x0,h['Inject'](h[_0x53b42f(0x1ac)])),Ze(0x1,u[_0x53b42f(0x25a)])],ge);function Ct(_0x54461e){const _0x4baa48=_0x53b42f;let _0x3c16ae='';for(const _0xdd0ea5 of _0x54461e){const {startOffset:_0x2e0c6f,endOffset:_0x20aff8,isActive:_0x49e981}=_0xdd0ea5;_0x3c16ae[_0x4baa48(0x419)]&&(_0x3c16ae+=','),_0x3c16ae+=_0x2e0c6f+':'+_0x20aff8+':'+(_0x49e981?'1':'0');}return _0x3c16ae;}function fs(_0x264340){const _0x46eb40=_0x53b42f,_0x5bb6a5=_0x264340[_0x46eb40(0x1ec)](','),_0x5839df=[];for(const _0x435927 of _0x5bb6a5){const [_0x3e4853,_0x11e4a9,_0x42c988]=_0x435927[_0x46eb40(0x1ec)](':');_0x5839df['push']({'startOffset':Number(_0x3e4853),'endOffset':Number(_0x11e4a9),'collapsed':_0x3e4853===_0x11e4a9,'isActive':_0x42c988==='1'});}return _0x5839df[_0x46eb40(0x17a)](_0x550b72=>_0x550b72[_0x46eb40(0x258)])||(_0x5839df[0x0][_0x46eb40(0x258)]=!0x0),_0x5839df;}class Fe extends a[_0x53b42f(0x3a5)]{constructor(){const _0x48c98b=_0x53b42f;super(...arguments),d(this,'_collabCursorState$',new g[(_0x48c98b(0x28a))](null)),d(this,_0x48c98b(0x495),this[_0x48c98b(0x278)]['asObservable']());}[_0x53b42f(0x2cb)](_0x250672){const _0xedc93f=_0x53b42f,{unitID:_0xab8646,memberID:_0x1c32ef,textRanges:_0x1dbd1d}=_0x250672,_0x1d49e1=Ct(_0x1dbd1d),_0x188747={'unitID':_0xab8646,'memberID':_0x1c32ef,'selection':_0x1d49e1};this[_0xedc93f(0x278)][_0xedc93f(0x414)](_0x188747);}}var ms=Object['defineProperty'],Is=Object[_0x53b42f(0x2a8)],ps=(_0x3ab337,_0x2ba9fd,_0x46ec3f,_0x3b77e4)=>{const _0x6bed23=_0x53b42f;for(var _0x3bc1da=_0x3b77e4>0x1?void 0x0:_0x3b77e4?Is(_0x2ba9fd,_0x46ec3f):_0x2ba9fd,_0x5f4c2b=_0x3ab337[_0x6bed23(0x419)]-0x1,_0x2ee611;_0x5f4c2b>=0x0;_0x5f4c2b--)(_0x2ee611=_0x3ab337[_0x5f4c2b])&&(_0x3bc1da=(_0x3b77e4?_0x2ee611(_0x2ba9fd,_0x46ec3f,_0x3bc1da):_0x2ee611(_0x3bc1da))||_0x3bc1da);return _0x3b77e4&&_0x3bc1da&&ms(_0x2ba9fd,_0x46ec3f,_0x3bc1da),_0x3bc1da;},Qe=(_0x5debe8,_0xf0f884)=>(_0x561c07,_0x4dc907)=>_0xf0f884(_0x561c07,_0x4dc907,_0x5debe8);let fe=class{constructor(_0x123cea,_0x4daf07){this['_injector']=_0x123cea,this['_transformService']=_0x4daf07;}[_0x53b42f(0x438)](_0x12788b){const _0x163f60=_0x53b42f;var _0xfd02fb,_0x327b98,_0x31cff9,_0x33e0df;const _0x370196=this[_0x163f60(0x45d)][_0x163f60(0x3d4)](E[_0x163f60(0x448)]),{pluginName:_0x4e3ac1,unitId:_0x4cd636,sheetId:_0x1450be}=_0x370196[_0x163f60(0x29e)]()||{},_0x357d5e=(_0xfd02fb=_0x370196[_0x163f60(0x369)]())!=null?_0xfd02fb:[];if(_0x357d5e[_0x163f60(0x419)]===0x0||!_0x4e3ac1||!_0x4cd636||!_0x1450be)return;const _0x3e022d=[{'id':E[_0x163f60(0x263)]['id'],'params':{'unitId':_0x4cd636,'subUnitId':_0x1450be,'pluginName':_0x4e3ac1,'selections':a[_0x163f60(0x3a8)][_0x163f60(0x2dc)](_0x357d5e)}}],_0x2ce003=this[_0x163f60(0x2f1)][_0x163f60(0x33b)](_0x12788b,_0x3e022d);if(!u[_0x163f60(0x40a)](_0x2ce003))throw _0x2ce003['error'];const _0x4cb893=(_0x33e0df=(_0x31cff9=(_0x327b98=_0x2ce003[_0x163f60(0x2c7)][0x0])==null?void 0x0:_0x327b98['params'])==null?void 0x0:_0x31cff9[_0x163f60(0x252)])!=null?_0x33e0df:_0x357d5e;Array[_0x163f60(0x4af)](_0x4cb893)&&_0x4cb893[_0x163f60(0x419)]&&this['_injector'][_0x163f60(0x3d4)](a[_0x163f60(0x1c5)])[_0x163f60(0x1ee)](E['SetSelectionsOperation']['id'],{'unitId':_0x4cd636,'subUnitId':_0x1450be,'pluginName':_0x4e3ac1,'selections':_0x4cb893});}};fe=ps([Qe(0x0,h[_0x53b42f(0x295)](h[_0x53b42f(0x1ac)])),Qe(0x1,u['ITransformService'])],fe);const Es=new Set([E[_0x53b42f(0x2dd)]['id']]);function Cs(_0x502356,_0x5f5128,_0x230671,_0x58a82c,_0x2f11c5){const _0x1d1114=_0x53b42f;var _0x1c6444,_0x2f0124,_0xcb04b8,_0x138087;const _0x43b751=[];for(const _0x564805 of _0x502356)if(Es['has'](_0x564805['id'])){if(_0x43b751[_0x1d1114(0x419)]>0x0)break;_0x43b751[_0x1d1114(0x1d7)](_0x564805);break;}else _0x43b751[_0x1d1114(0x1d7)](_0x564805);const _0x330b23=(_0x2f0124=(_0x1c6444=_0x2f11c5['getCurrentUser']())==null?void 0x0:_0x1c6444['userID'])!=null?_0x2f0124:_0x1d1114(0x3a7),_0x21b2ca=(_0x138087=(_0xcb04b8=_0x2f11c5[_0x1d1114(0x341)]())==null?void 0x0:_0xcb04b8[_0x1d1114(0x328)])!=null?_0x138087:_0x1d1114(0x3a7);return{'changeset':{'unitID':_0x5f5128,'type':u[_0x1d1114(0x289)](_0x230671['getUnitType'](_0x5f5128)),'baseRev':_0x58a82c[_0x1d1114(0x2af)](_0x5f5128),'revision':0x0,'userID':_0x330b23,'memberID':_0x21b2ca,'mutations':_0x43b751},'pendingMutations':_0x502356['slice'](_0x43b751['length'])};}function bs(_0x393bd9,_0x12f8f3,_0x5e2c90,_0x3051ed,_0x47d05a){const _0x97b1dd=_0x53b42f;var _0x5c26f3,_0x10a747,_0x23c089,_0x2445f1;const _0x35b2b6=[_0x393bd9['reduce']((_0x451d86,_0x2b7ef3)=>{const _0x3ff3a1=_0xe052;var _0x188d22;const {id:_0x49cc4d}=_0x451d86,{id:_0x4d63aa,type:_0x48cd9c}=_0x2b7ef3,_0x2ed3f6=(_0x188d22=_0x451d86['params'])!=null?_0x188d22:{'actions':null},_0x470a6a=_0x2b7ef3[_0x3ff3a1(0x17b)];if(_0x49cc4d&&_0x49cc4d!==_0x4d63aa)throw new Error(_0x3ff3a1(0x3dc)+_0x49cc4d+_0x3ff3a1(0x44a)+_0x4d63aa+'.');return{..._0x451d86,'id':_0x4d63aa,'type':_0x48cd9c,'params':{'unitId':_0x470a6a[_0x3ff3a1(0x21a)],'textRanges':_0x470a6a[_0x3ff3a1(0x461)],'actions':a[_0x3ff3a1(0x42a)]['compose'](_0x2ed3f6[_0x3ff3a1(0x2c1)],_0x470a6a['actions'])}};},{})],_0x343bdf=(_0x10a747=(_0x5c26f3=_0x47d05a[_0x97b1dd(0x341)]())==null?void 0x0:_0x5c26f3[_0x97b1dd(0x324)])!=null?_0x10a747:_0x97b1dd(0x3a7),_0xd98b74=(_0x2445f1=(_0x23c089=_0x47d05a[_0x97b1dd(0x341)]())==null?void 0x0:_0x23c089[_0x97b1dd(0x328)])!=null?_0x2445f1:_0x97b1dd(0x3a7);return{'changeset':{'unitID':_0x12f8f3,'type':u[_0x97b1dd(0x289)](_0x5e2c90['getUnitType'](_0x12f8f3)),'baseRev':_0x3051ed[_0x97b1dd(0x2af)](_0x12f8f3),'revision':0x0,'userID':_0x343bdf,'memberID':_0xd98b74,'mutations':_0x35b2b6},'pendingMutations':[]};}var Ts=Object[_0x53b42f(0x38a)],Rs=Object[_0x53b42f(0x2a8)],K=(_0x528795,_0x18e0c0,_0x3299f2,_0x290ccf)=>{const _0x1fc56a=_0x53b42f;for(var _0x2c4a26=_0x290ccf>0x1?void 0x0:_0x290ccf?Rs(_0x18e0c0,_0x3299f2):_0x18e0c0,_0x312116=_0x528795[_0x1fc56a(0x419)]-0x1,_0x4c494d;_0x312116>=0x0;_0x312116--)(_0x4c494d=_0x528795[_0x312116])&&(_0x2c4a26=(_0x290ccf?_0x4c494d(_0x18e0c0,_0x3299f2,_0x2c4a26):_0x4c494d(_0x2c4a26))||_0x2c4a26);return _0x290ccf&&_0x2c4a26&&Ts(_0x18e0c0,_0x3299f2,_0x2c4a26),_0x2c4a26;},f=(_0x10d30e,_0x1e2802)=>(_0x42b771,_0x11a0d2)=>_0x1e2802(_0x42b771,_0x11a0d2,_0x10d30e),w=(_0xe8caec=>(_0xe8caec[_0x53b42f(0x1a4)]=_0x53b42f(0x39a),_0xe8caec['SYNCED']=_0x53b42f(0x3eb),_0xe8caec[_0x53b42f(0x33a)]=_0x53b42f(0x4b0),_0xe8caec[_0x53b42f(0x4db)]=_0x53b42f(0x13d),_0xe8caec['AWAITING_WITH_PENDING']='awaiting_with_pending',_0xe8caec[_0x53b42f(0x3ff)]=_0x53b42f(0x161),_0xe8caec[_0x53b42f(0x356)]=_0x53b42f(0x3e2),_0xe8caec['OFFLINE']=_0x53b42f(0x1a5),_0xe8caec))(w||{});class X{constructor(_0x524ad8,_0x1c25ad,_0x5ca59a,_0x34df4a,_0x4ba316,_0x1dd843,_0x1144d7,_0x31e7df,_0x36e5f0){const _0x2a1971=_0x53b42f;d(this,_0x2a1971(0x32e),null),d(this,_0x2a1971(0x209),[]),(this[_0x2a1971(0x348)]=_0x524ad8,this[_0x2a1971(0x20c)]=_0x1c25ad,this['_handler']=_0x4ba316,this['_commandService']=_0x1dd843,this['_undoRedoService']=_0x1144d7,this[_0x2a1971(0x311)]=_0x31e7df,this[_0x2a1971(0x33e)]=_0x36e5f0,this['_awaitingChangeset']=_0x5ca59a,this[_0x2a1971(0x209)]=_0x34df4a);}['_checkMissing'](_0x187cf3){const _0x1a7fc7=_0x53b42f,_0x4995c8=this[_0x1a7fc7(0x311)][_0x1a7fc7(0x2af)](this[_0x1a7fc7(0x348)]);return _0x187cf3[_0x1a7fc7(0x306)]>_0x4995c8+0x1?(this[_0x1a7fc7(0x16e)][_0x1a7fc7(0x4ba)]({'from':_0x4995c8,'to':_0x187cf3[_0x1a7fc7(0x306)]-0x1}),!0x0):!0x1;}[_0x53b42f(0x389)](_0x11cef1){const _0x5510a7=_0x53b42f;this[_0x5510a7(0x2aa)]['transformUndoRedo'](this[_0x5510a7(0x348)],_0x11cef1);}[_0x53b42f(0x464)](_0x48b65b){const _0x3c168b=_0x53b42f;var _0x16f92d,_0x3fe3aa;(_0x3fe3aa=(_0x16f92d=this[_0x3c168b(0x16e)])[_0x3c168b(0x1cd)])==null||_0x3fe3aa['call'](_0x16f92d,_0x48b65b);}['_transformIMECache'](_0x3e3a29){const _0x2f94c7=_0x53b42f;var _0x5cc576,_0x4dd0a0;return(_0x4dd0a0=(_0x5cc576=this['_handler'])[_0x2f94c7(0x156)])==null?void 0x0:_0x4dd0a0[_0x2f94c7(0x3f4)](_0x5cc576,_0x3e3a29);}['_transformRemoteChangesetByIMECache'](_0x27a3ff){const _0x15cd8e=_0x53b42f;var _0x32f776,_0x421de8,_0x1f63f7;return(_0x1f63f7=(_0x421de8=(_0x32f776=this[_0x15cd8e(0x16e)])['onTransformRemoteChangesetByIMECache'])==null?void 0x0:_0x421de8[_0x15cd8e(0x3f4)](_0x32f776,_0x27a3ff))!=null?_0x1f63f7:_0x27a3ff;}['_syncEditingCollabCursor'](_0x54ddfd){const _0x4adbce=_0x53b42f;var _0x211f8f,_0x1f9550;if(this['type']===j[_0x4adbce(0x220)]){const {unitID:_0x5b8851,mutations:_0x45f150,memberID:_0x340d70}=_0x54ddfd,_0xdcbece=_0x45f150[0x0][_0x4adbce(0x17b)][_0x4adbce(0x461)];Array['isArray'](_0xdcbece)&&_0xdcbece[_0x4adbce(0x419)]>0x0&&((_0x1f9550=(_0x211f8f=this['_handler'])['onSyncEditingCollabCursor'])==null||_0x1f9550[_0x4adbce(0x3f4)](_0x211f8f,{'unitID':_0x5b8851,'memberID':_0x340d70,'textRanges':_0xdcbece}));}}[_0x53b42f(0x331)](){const _0x43a9ce=_0x53b42f;this['_localCacheService']['updateOfflineData'](this['unitID'],this[_0x43a9ce(0x20c)],this['_awaitingChangeset'],this['_pendingMutations']);}[_0x53b42f(0x21d)](){const _0x450251=_0x53b42f;return this['_revisionService']['getCurrentRevForDocument'](this[_0x450251(0x348)]);}['_incrementRevisionNumber'](){const _0x3abb1b=_0x53b42f;this[_0x3abb1b(0x311)][_0x3abb1b(0x3a1)](this[_0x3abb1b(0x348)]);}[_0x53b42f(0x28f)](_0x5e6932){const _0x25a2bb=_0x53b42f;var _0x1d4e94;const _0x2dc490=this['_transformRemoteChangesetByIMECache'](_0x5e6932),_0x4d1ec4=a[_0x25a2bb(0x2c6)](_0x2dc490[_0x25a2bb(0x21b)],this[_0x25a2bb(0x188)],{'fromCollab':!0x0});if(!_0x4d1ec4[_0x25a2bb(0x47a)])throw _0x4d1ec4[_0x25a2bb(0x150)]instanceof Error?_0x4d1ec4[_0x25a2bb(0x150)]:new Error((_0x1d4e94=_0x4d1ec4[_0x25a2bb(0x150)])!=null?_0x1d4e94:_0x25a2bb(0x13a));this[_0x25a2bb(0x36e)](_0x2dc490),this[_0x25a2bb(0x389)](_0x5e6932),this['_transformSelections'](_0x2dc490),this[_0x25a2bb(0x337)](_0x2dc490),this[_0x25a2bb(0x3c8)]();}}let ae=class extends X{constructor(_0x1fd683,_0x2a470e,_0x558353,_0x3349fa,_0x2cbc90,_0xe4e464,_0xd4e5f1,_0x127678,_0x2c12c1){const _0x156893=_0x53b42f;super(_0x1fd683,_0x2a470e,null,[],_0x558353,_0x127678,_0xd4e5f1,_0x3349fa,_0x2cbc90),d(this,_0x156893(0x2a7),_0x156893(0x3eb)),(this['_injector']=_0xe4e464,this['_logService']=_0x2c12c1);}['appendMutation'](_0x302040){const _0x4eb304=_0x53b42f,_0x140ad6=this['_injector'][_0x4eb304(0x477)]($,this[_0x4eb304(0x348)],this[_0x4eb304(0x20c)],[_0x302040],this[_0x4eb304(0x16e)]);return _0x140ad6[_0x4eb304(0x15c)](),_0x140ad6[_0x4eb304(0x331)](),_0x140ad6;}[_0x53b42f(0x437)](_0x53e2f4){const _0x4662e5=_0x53b42f;if(this['_checkMissing'](_0x53e2f4))return this[_0x4662e5(0x45d)][_0x4662e5(0x477)](x,this[_0x4662e5(0x348)],this[_0x4662e5(0x20c)],null,[],null,[_0x53e2f4],this['_handler']);try{return this[_0x4662e5(0x28f)](_0x53e2f4),this;}catch(_0x5e0b78){return this['_logService'][_0x4662e5(0x150)](_0x4662e5(0x3c7),_0x5e0b78),this;}}[_0x53b42f(0x28b)](){const _0x10e4e3=_0x53b42f;throw new Error(_0x10e4e3(0x162));}['onRemoteRej'](){const _0x1dea72=_0x53b42f;throw new Error(_0x1dea72(0x34c));}['toggleOffline'](){const _0x289b84=_0x53b42f;return this[_0x289b84(0x45d)][_0x289b84(0x477)](B,this[_0x289b84(0x348)],this[_0x289b84(0x20c)],null,[],this[_0x289b84(0x16e)]);}['toggleOnline'](){return this;}[_0x53b42f(0x497)](){const _0x312324=_0x53b42f;throw new Error(_0x312324(0x155));}};ae=K([f(0x3,h[_0x53b42f(0x295)](u[_0x53b42f(0x4c6)])),f(0x4,h[_0x53b42f(0x295)](exports[_0x53b42f(0x4b3)])),f(0x5,h[_0x53b42f(0x295)](h[_0x53b42f(0x1ac)])),f(0x6,a[_0x53b42f(0x4a1)]),f(0x7,a[_0x53b42f(0x1c5)]),f(0x8,a[_0x53b42f(0x4c8)])],ae);let $=class extends X{constructor(_0x379ef5,_0x1d3372,_0x367dce,_0x386293,_0x18aa94,_0x4ecc78,_0x31f8d4,_0x44b566,_0x356b76,_0x300f30,_0x2df54f,_0x195f19,_0x1059a7,_0x248b06){const _0x3ce29a=_0x53b42f;super(_0x379ef5,_0x1d3372,null,_0x367dce,_0x386293,_0x300f30,_0x248b06,_0x4ecc78,_0x31f8d4),d(this,_0x3ce29a(0x2a7),_0x3ce29a(0x4b0)),d(this,_0x3ce29a(0x2e8),null),d(this,_0x3ce29a(0x3cc),null),(this[_0x3ce29a(0x45d)]=_0x18aa94,this[_0x3ce29a(0x4ae)]=_0x44b566,this['_logService']=_0x356b76,this[_0x3ce29a(0x2a6)]=_0x2df54f,this[_0x3ce29a(0x2f1)]=_0x195f19,this[_0x3ce29a(0x49a)]=_0x1059a7);}[_0x53b42f(0x2ed)](_0x597df3){const _0x561c79=_0x53b42f;return this['_pendingMutations'][_0x561c79(0x1d7)](_0x597df3),this[_0x561c79(0x331)](),this;}[_0x53b42f(0x437)](_0xfc8e04){const _0x419394=_0x53b42f;if(this[_0x419394(0x4aa)](_0xfc8e04))return this[_0x419394(0x446)](),this['_injector'][_0x419394(0x477)](x,this[_0x419394(0x348)],this[_0x419394(0x20c)],null,this[_0x419394(0x209)],null,[_0xfc8e04],this['_handler']);try{const _0x309cdd=this[_0x419394(0x2f1)][_0x419394(0x33b)](_0xfc8e04,this[_0x419394(0x209)]);if(u['isTransformMutationsWithChangesetSuccess'](_0x309cdd)){const {c1Prime:_0x29ca1b,m2Prime:_0x489db4}=_0x309cdd;this['_executeRemoteChangeset'](_0x29ca1b);const _0x524538=this['_injector'][_0x419394(0x477)]($,this[_0x419394(0x348)],this[_0x419394(0x20c)],_0x489db4,this[_0x419394(0x16e)]);return this[_0x419394(0x446)](),_0x524538[_0x419394(0x15c)](this[_0x419394(0x2e8)]?Math['max'](0x0,new Date()[_0x419394(0x271)]()-this['_scheduleTimestamp']):this[_0x419394(0x24e)]()),_0x524538;}throw _0x309cdd['error'];}catch(_0x3573e6){return this['_logService'][_0x419394(0x150)](_0x3573e6),this[_0x419394(0x19f)](!0x1);}}[_0x53b42f(0x28b)](){const _0x48e932=_0x53b42f;throw new Error(_0x48e932(0x2c8));}[_0x53b42f(0x3de)](){throw new Error('[PendingState]:\x20received\x20rejection.');}[_0x53b42f(0x1d9)](){const _0x55db67=_0x53b42f;return this[_0x55db67(0x446)](),this['_injector']['createInstance'](B,this[_0x55db67(0x348)],this[_0x55db67(0x20c)],null,this['_pendingMutations'],this['_handler']);}[_0x53b42f(0x391)](){return this;}[_0x53b42f(0x15c)](_0x5bfdf8){const _0x315ead=_0x53b42f;_0x5bfdf8=_0x5bfdf8!=null?_0x5bfdf8:this[_0x315ead(0x24e)](),this[_0x315ead(0x2e8)]=new Date()[_0x315ead(0x271)](),this[_0x315ead(0x3cc)]=setTimeout(()=>{const _0x1ac6c2=_0x315ead;this[_0x1ac6c2(0x446)]();let _0x362e5d=null;switch(this[_0x1ac6c2(0x20c)]){case j[_0x1ac6c2(0x164)]:{_0x362e5d=Cs(this[_0x1ac6c2(0x209)],this[_0x1ac6c2(0x348)],this['_univerInstanceService'],this[_0x1ac6c2(0x311)],this[_0x1ac6c2(0x4ae)]);break;}case j['UNIVER_DOC']:{_0x362e5d=bs(this['_pendingMutations'],this[_0x1ac6c2(0x348)],this[_0x1ac6c2(0x49a)],this[_0x1ac6c2(0x311)],this[_0x1ac6c2(0x4ae)]);break;}default:throw new Error(_0x1ac6c2(0x418)+this[_0x1ac6c2(0x20c)]+_0x1ac6c2(0x3e7));}const {changeset:_0xf86de3,pendingMutations:_0x28ebea}=_0x362e5d;this[_0x1ac6c2(0x16e)][_0x1ac6c2(0x4a9)](_0xf86de3);const _0x4179ef=_0x28ebea[_0x1ac6c2(0x419)]?this[_0x1ac6c2(0x45d)][_0x1ac6c2(0x477)](H,this[_0x1ac6c2(0x348)],this[_0x1ac6c2(0x20c)],_0xf86de3,_0x28ebea,this['_handler']):this[_0x1ac6c2(0x45d)]['createInstance'](k,this[_0x1ac6c2(0x348)],this[_0x1ac6c2(0x20c)],_0xf86de3,this[_0x1ac6c2(0x16e)]);_0x4179ef['_updateLocalCache'](),this[_0x1ac6c2(0x16e)]['onStateChange'](this,_0x4179ef);},_0x5bfdf8);}[_0x53b42f(0x24e)](){const _0x23cfbf=_0x53b42f;var _0x4792de;return(_0x4792de=this[_0x23cfbf(0x2a6)][_0x23cfbf(0x1d8)](ht))!=null?_0x4792de:Bt;}[_0x53b42f(0x497)](){const _0x27882c=_0x53b42f;throw new Error(_0x27882c(0x200));}['_clearScheduledTask'](){const _0x36cbb4=_0x53b42f;this[_0x36cbb4(0x3cc)]!=null&&(clearTimeout(this[_0x36cbb4(0x3cc)]),this[_0x36cbb4(0x3cc)]=null);}['_onConflict'](_0x179301){const _0x926f5e=_0x53b42f;return this[_0x926f5e(0x446)](),this[_0x926f5e(0x45d)]['createInstance'](Y,this[_0x926f5e(0x348)],this['type'],null,this[_0x926f5e(0x209)],this[_0x926f5e(0x16e)],_0x179301);}};$=K([f(0x4,h[_0x53b42f(0x295)](h[_0x53b42f(0x1ac)])),f(0x5,h[_0x53b42f(0x295)](u[_0x53b42f(0x4c6)])),f(0x6,h['Inject'](exports[_0x53b42f(0x4b3)])),f(0x7,h['Inject'](G)),f(0x8,a['ILogService']),f(0x9,a[_0x53b42f(0x1c5)]),f(0xa,a[_0x53b42f(0x4a2)]),f(0xb,u['ITransformService']),f(0xc,a['IUniverInstanceService']),f(0xd,a[_0x53b42f(0x4a1)])],$);let k=class extends X{constructor(_0x24e315,_0x56b974,_0x1f4623,_0x1f74cb,_0x3d8fda,_0x3a076e,_0x130b3f,_0x367b76,_0x2d1284,_0x4fa49d,_0x25da9b){const _0x8dabb0=_0x53b42f;super(_0x24e315,_0x56b974,_0x1f4623,[],_0x1f74cb,_0x367b76,_0x25da9b,_0x3a076e,_0x130b3f),d(this,_0x8dabb0(0x2a7),_0x8dabb0(0x13d)),(this['_injector']=_0x3d8fda,this['_logService']=_0x2d1284,this['_transformService']=_0x4fa49d);}['appendMutation'](_0x84b4fa){const _0xe07a3a=_0x53b42f,_0x427b55=this[_0xe07a3a(0x45d)][_0xe07a3a(0x477)](H,this['unitID'],this[_0xe07a3a(0x20c)],this['_awaitingChangeset'],[_0x84b4fa],this[_0xe07a3a(0x16e)]);return _0x427b55[_0xe07a3a(0x331)](),_0x427b55;}[_0x53b42f(0x437)](_0x2a7869){const _0x244e4f=_0x53b42f;if(this['_checkMissing'](_0x2a7869))return this[_0x244e4f(0x45d)][_0x244e4f(0x477)](x,this[_0x244e4f(0x348)],this[_0x244e4f(0x20c)],this[_0x244e4f(0x32e)],[],null,[_0x2a7869],this[_0x244e4f(0x16e)]);try{const _0x1a5d3d=this[_0x244e4f(0x2f1)][_0x244e4f(0x233)]([_0x2a7869],[this['_awaitingChangeset']],!0x1);if(u['isTransformChangesetsSuccess'](_0x1a5d3d)){const {c1Prime:_0x9b8da4,c2Prime:_0x1df567}=_0x1a5d3d;this[_0x244e4f(0x28f)](_0x9b8da4[0x0]),_0x1df567[0x0][_0x244e4f(0x1b6)]=this['_getCurrentRevision']();const _0x468869=this[_0x244e4f(0x45d)][_0x244e4f(0x477)](k,this['unitID'],this['type'],_0x1df567[0x0],this[_0x244e4f(0x16e)]);return _0x468869[_0x244e4f(0x331)](),_0x468869;}return this[_0x244e4f(0x19f)](!0x1);}catch(_0x159c0e){return this['_logService'][_0x244e4f(0x150)](_0x159c0e),this['_onConflict'](!0x1);}}[_0x53b42f(0x28b)](_0x471d2a){const _0xe378c7=_0x53b42f,_0x220e41=this[_0xe378c7(0x311)]['getCurrentRevForDocument'](this['unitID']);if(_0x471d2a[_0xe378c7(0x306)]<_0x220e41-0x1)return this;if(this[_0xe378c7(0x4aa)](_0x471d2a))return this[_0xe378c7(0x45d)][_0xe378c7(0x477)](x,this['unitID'],this[_0xe378c7(0x20c)],null,[],this[_0xe378c7(0x32e)],[],this[_0xe378c7(0x16e)]);this[_0xe378c7(0x3c8)]();const _0x43564f=this[_0xe378c7(0x45d)][_0xe378c7(0x477)](ae,this['unitID'],this['type'],this['_handler']);return _0x43564f[_0xe378c7(0x331)](),_0x43564f;}[_0x53b42f(0x3de)](_0x58e325){const _0x23fcdd=_0x53b42f;return this[_0x23fcdd(0x19f)](!!(_0x58e325!=null&&_0x58e325[_0x23fcdd(0x395)]));}[_0x53b42f(0x1d9)](){const _0x4381a7=_0x53b42f;return this[_0x4381a7(0x45d)][_0x4381a7(0x477)](B,this[_0x4381a7(0x348)],this[_0x4381a7(0x20c)],this['_awaitingChangeset'],[],this[_0x4381a7(0x16e)]);}[_0x53b42f(0x391)](){return this;}[_0x53b42f(0x497)](){const _0x54413b=_0x53b42f;this[_0x54413b(0x16e)][_0x54413b(0x4a9)](this[_0x54413b(0x32e)]);}['_onConflict'](_0x1a5b70){const _0x11d6a4=_0x53b42f;return this[_0x11d6a4(0x45d)][_0x11d6a4(0x477)](Y,this[_0x11d6a4(0x348)],this[_0x11d6a4(0x20c)],this[_0x11d6a4(0x32e)],[],this['_handler'],_0x1a5b70);}};k=K([f(0x4,h[_0x53b42f(0x295)](h['Injector'])),f(0x5,h[_0x53b42f(0x295)](u[_0x53b42f(0x4c6)])),f(0x6,h[_0x53b42f(0x295)](exports[_0x53b42f(0x4b3)])),f(0x7,a[_0x53b42f(0x1c5)]),f(0x8,a['ILogService']),f(0x9,u[_0x53b42f(0x25a)]),f(0xa,a[_0x53b42f(0x4a1)])],k);let H=class extends X{constructor(_0x506b6e,_0x358c81,_0x3541a5,_0x557706,_0x54c1fe,_0x1b3851,_0x5ac0f2,_0x53e890,_0x34ec27,_0xf69445,_0x594f49,_0x24c4cc){const _0x325c10=_0x53b42f;super(_0x506b6e,_0x358c81,_0x3541a5,_0x557706,_0x54c1fe,_0x34ec27,_0x24c4cc,_0x5ac0f2,_0x53e890),d(this,_0x325c10(0x2a7),_0x325c10(0x19a)),(this[_0x325c10(0x45d)]=_0x1b3851,this[_0x325c10(0x42f)]=_0xf69445,this[_0x325c10(0x2f1)]=_0x594f49);}['appendMutation'](_0x50f44a){const _0x20f255=_0x53b42f;return this[_0x20f255(0x209)][_0x20f255(0x1d7)](_0x50f44a),this;}[_0x53b42f(0x437)](_0x386f67){const _0x450ffc=_0x53b42f;if(this['_checkMissing'](_0x386f67))return this['_injector'][_0x450ffc(0x477)](x,this[_0x450ffc(0x348)],this[_0x450ffc(0x20c)],this[_0x450ffc(0x32e)],this[_0x450ffc(0x209)],null,[_0x386f67],this[_0x450ffc(0x16e)]);try{const _0x1ae8e4=this[_0x450ffc(0x2f1)]['transformChangesets']([_0x386f67],[this['_awaitingChangeset']],!0x1);if(u[_0x450ffc(0x374)](_0x1ae8e4)){const {c1Prime:_0x46c3e6,c2Prime:_0x3d5646}=_0x1ae8e4,_0x1b69f0=this['_transformService']['transformMutationsWithChangeset'](_0x46c3e6[0x0],this['_pendingMutations']);if(u[_0x450ffc(0x40a)](_0x1b69f0)){const {c1Prime:_0x2b9a2b,m2Prime:_0x59cd04}=_0x1b69f0;return this['_executeRemoteChangeset'](_0x2b9a2b),_0x3d5646[0x0][_0x450ffc(0x1b6)]=this[_0x450ffc(0x21d)](),this[_0x450ffc(0x45d)][_0x450ffc(0x477)](H,this[_0x450ffc(0x348)],this[_0x450ffc(0x20c)],_0x3d5646[0x0],_0x59cd04,this[_0x450ffc(0x16e)]);}throw _0x1b69f0[_0x450ffc(0x150)];}throw _0x1ae8e4[_0x450ffc(0x150)];}catch(_0x41ac6e){return this['_logService'][_0x450ffc(0x150)](_0x41ac6e),this[_0x450ffc(0x19f)](!0x1);}}['onRemoteAck'](_0x310b5c){const _0x304578=_0x53b42f;if(this[_0x304578(0x4aa)](_0x310b5c))return this[_0x304578(0x45d)]['createInstance'](x,this[_0x304578(0x348)],this[_0x304578(0x20c)],null,this[_0x304578(0x209)],this[_0x304578(0x32e)],[],this[_0x304578(0x16e)]);this[_0x304578(0x3c8)]();const _0x5eff15=this[_0x304578(0x45d)][_0x304578(0x477)]($,this[_0x304578(0x348)],this[_0x304578(0x20c)],this[_0x304578(0x209)],this['_handler']);return _0x5eff15[_0x304578(0x15c)](),_0x5eff15[_0x304578(0x331)](),_0x5eff15;}[_0x53b42f(0x3de)](_0x45a1cb){const _0x57fa6b=_0x53b42f;return this[_0x57fa6b(0x19f)](!!(_0x45a1cb!=null&&_0x45a1cb['isPermissionRej']));}[_0x53b42f(0x1d9)](){const _0x19cdf7=_0x53b42f;return this[_0x19cdf7(0x45d)]['createInstance'](B,this[_0x19cdf7(0x348)],this[_0x19cdf7(0x20c)],this[_0x19cdf7(0x32e)],this[_0x19cdf7(0x209)],this[_0x19cdf7(0x16e)]);}[_0x53b42f(0x391)](){return this;}[_0x53b42f(0x497)](){const _0x13ddb9=_0x53b42f;this[_0x13ddb9(0x16e)][_0x13ddb9(0x4a9)](this[_0x13ddb9(0x32e)]);}[_0x53b42f(0x19f)](_0x1755d9){const _0xe38c14=_0x53b42f;return this[_0xe38c14(0x45d)][_0xe38c14(0x477)](Y,this[_0xe38c14(0x348)],this[_0xe38c14(0x20c)],null,this[_0xe38c14(0x209)],this[_0xe38c14(0x16e)],_0x1755d9);}};H=K([f(0x5,h['Inject'](h[_0x53b42f(0x1ac)])),f(0x6,h['Inject'](u['RevisionService'])),f(0x7,h[_0x53b42f(0x295)](exports[_0x53b42f(0x4b3)])),f(0x8,a[_0x53b42f(0x1c5)]),f(0x9,a[_0x53b42f(0x4c8)]),f(0xa,u['ITransformService']),f(0xb,a[_0x53b42f(0x4a1)])],H);let Y=class extends X{constructor(_0x549ed2,_0x5e696a,_0x25308e,_0x128156,_0x4a09b3,_0x18704d=!0x1,_0x53377d,_0x39edde,_0x26e0d8,_0x44dc50,_0x25f7cb,_0x394d46,_0x548a22){const _0x17d25c=_0x53b42f;super(_0x549ed2,_0x5e696a,_0x25308e,_0x128156,_0x4a09b3,_0x39edde,_0x26e0d8,_0x25f7cb,_0x44dc50),d(this,_0x17d25c(0x2a7),_0x17d25c(0x3e2)),(this[_0x17d25c(0x31a)]=_0x18704d,this[_0x17d25c(0x214)]=_0x53377d,this[_0x17d25c(0x2bd)]=_0x394d46,this[_0x17d25c(0x2bb)]=_0x548a22,this[_0x17d25c(0x24d)](),this['_clearLocalCache'](),this[_0x17d25c(0x14e)]());}[_0x53b42f(0x2ed)](){return this;}[_0x53b42f(0x437)](){return this;}[_0x53b42f(0x28b)](){return this;}[_0x53b42f(0x3de)](){return this;}[_0x53b42f(0x1d9)](){return this;}[_0x53b42f(0x391)](){return this;}[_0x53b42f(0x497)](){throw new Error('[ConflictState]:\x20invalid\x20calling\x20to\x20`resend`.');}[_0x53b42f(0x16f)](){const _0x9f25f6=_0x53b42f;this[_0x9f25f6(0x33e)][_0x9f25f6(0x319)](this['unitID'],this[_0x9f25f6(0x20c)],null,[]);}[_0x53b42f(0x24d)](){const _0x52c199=_0x53b42f;this[_0x52c199(0x31a)]?this['_notificationService'][_0x52c199(0x138)]({'title':this[_0x52c199(0x2bd)]['t']('permission.title'),'content':this[_0x52c199(0x2bd)]['t'](_0x52c199(0x38e)),'type':_0x52c199(0x150),'duration':0x0}):this['_notificationService'][_0x52c199(0x138)]({'title':this['_localeService']['t']('conflict.title'),'content':this[_0x52c199(0x2bd)]['t'](_0x52c199(0x3fc)),'type':'error','duration':0x0});}['_disableEditing'](){const _0x39e5e4=_0x53b42f;this['_permissionService'][_0x39e5e4(0x2c2)](new E['WorkbookEditablePermission'](this[_0x39e5e4(0x348)])['id'],!0x1);}};Y=K([f(0x6,h[_0x53b42f(0x295)](a[_0x53b42f(0x37e)])),f(0x7,a[_0x53b42f(0x1c5)]),f(0x8,a[_0x53b42f(0x4a1)]),f(0x9,h[_0x53b42f(0x295)](exports[_0x53b42f(0x4b3)])),f(0xa,h[_0x53b42f(0x295)](u[_0x53b42f(0x4c6)])),f(0xb,h[_0x53b42f(0x295)](a[_0x53b42f(0x1ba)])),f(0xc,N[_0x53b42f(0x36f)])],Y);let B=class extends X{constructor(_0x3ae6da,_0x261139,_0x489e26,_0x21feff,_0x28f62b,_0x566cdc,_0x353d8e,_0x274487,_0x108abd,_0x14b896){const _0x50360f=_0x53b42f;super(_0x3ae6da,_0x261139,_0x489e26,_0x21feff,_0x28f62b,_0x108abd,_0x14b896,_0x353d8e,_0x274487),d(this,'status',_0x50360f(0x1a5)),this[_0x50360f(0x45d)]=_0x566cdc;}[_0x53b42f(0x2ed)](_0x5dfe46){const _0x2b5618=_0x53b42f;return this[_0x2b5618(0x209)][_0x2b5618(0x1d7)](_0x5dfe46),this[_0x2b5618(0x331)](),this;}['onRemoteChangeset'](_0x3ab07a){const _0x36b7f9=_0x53b42f;throw new Error(_0x36b7f9(0x274));}['onRemoteAck'](){const _0x54b3cb=_0x53b42f;throw new Error(_0x54b3cb(0x427));}[_0x53b42f(0x3de)](){const _0xe875ff=_0x53b42f;throw new Error(_0xe875ff(0x405));}[_0x53b42f(0x1d9)](){return this;}[_0x53b42f(0x391)](){const _0x53a12b=_0x53b42f,{_injector:_0x4f455c,_pendingMutations:_0x6e3971,_awaitingChangeset:_0xaf74d6,unitID:_0x5c5b47,_handler:_0x194f78,type:_0x549adf}=this,_0x27edff=bt(_0x4f455c,_0x5c5b47,_0x549adf,_0xaf74d6,_0x6e3971,_0x194f78);return _0x27edff instanceof $?_0x27edff[_0x53a12b(0x15c)]():(_0x27edff instanceof H||_0x27edff instanceof k)&&_0x27edff['resend'](),_0x27edff;}['resend'](){const _0x1ba837=_0x53b42f;throw new Error(_0x1ba837(0x33d));}};B=K([f(0x5,h[_0x53b42f(0x295)](h[_0x53b42f(0x1ac)])),f(0x6,h[_0x53b42f(0x295)](u['RevisionService'])),f(0x7,h[_0x53b42f(0x295)](exports[_0x53b42f(0x4b3)])),f(0x8,a[_0x53b42f(0x1c5)]),f(0x9,a['IUndoRedoService'])],B);let x=class extends X{constructor(_0x5dc55b,_0x35850d,_0x430a51,_0x5c6234,_0x85e21,_0x3801ad,_0x1bb670,_0x5d8127,_0x18c9a3,_0xb2aaba,_0x24e03a,_0x11c02f,_0xffab4f,_0x589641){const _0x15bd38=_0x53b42f;super(_0x5dc55b,_0x35850d,_0x430a51,_0x5c6234,_0x1bb670,_0x11c02f,_0xffab4f,_0x18c9a3,_0xb2aaba),d(this,_0x15bd38(0x2a7),'fetch_missing'),(this[_0x15bd38(0x458)]=_0x85e21,this['_queuedRemoteChangesets']=_0x3801ad,this[_0x15bd38(0x45d)]=_0x5d8127,this[_0x15bd38(0x42f)]=_0x24e03a,this[_0x15bd38(0x2f1)]=_0x589641);}[_0x53b42f(0x3f7)](_0x257f06){const _0x60850=_0x53b42f;try{const _0x5afdfc=[..._0x257f06,...this[_0x60850(0x36a)]],_0x139383=[this[_0x60850(0x32e)]||this[_0x60850(0x458)]]['filter'](_0x6a5945=>!!_0x6a5945);let _0x52bb38,_0x61941d;if(_0x139383[_0x60850(0x419)]){const _0xe9651f=this['_transformService'][_0x60850(0x233)](_0x5afdfc,_0x139383,!0x1);if(!u[_0x60850(0x374)](_0xe9651f))throw _0xe9651f[_0x60850(0x150)];_0x52bb38=_0xe9651f['c1Prime'],_0x61941d=_0xe9651f[_0x60850(0x15f)];}else _0x52bb38=_0x5afdfc,_0x61941d=[];let _0x31c17f=this[_0x60850(0x209)];_0x52bb38[_0x60850(0x421)](_0x4622d5=>{const _0x2580b7=_0x60850;let _0x47f15f;if(_0x31c17f[_0x2580b7(0x419)]){const _0x25df3c=this[_0x2580b7(0x2f1)][_0x2580b7(0x33b)](_0x4622d5,_0x31c17f);if(!u[_0x2580b7(0x40a)](_0x25df3c))throw _0x25df3c['error'];_0x47f15f=_0x25df3c[_0x2580b7(0x132)],_0x31c17f=_0x25df3c['m2Prime'];}else _0x47f15f=_0x4622d5;this[_0x2580b7(0x28f)](_0x47f15f);}),this['_acknowledgedAwaitingChangeset']&&this[_0x60850(0x3c8)](),this[_0x60850(0x32e)]&&_0x61941d[_0x60850(0x419)]&&(_0x61941d[0x0]['baseRev']=this[_0x60850(0x21d)]());let _0x221b76;if(this['_awaitingChangeset']&&_0x31c17f[_0x60850(0x419)]!==0x0)_0x221b76=this['_injector'][_0x60850(0x477)](H,this[_0x60850(0x348)],this[_0x60850(0x20c)],_0x61941d[0x0],_0x31c17f,this['_handler']);else{if(this[_0x60850(0x32e)]&&_0x31c17f['length']===0x0)_0x61941d[0x0][_0x60850(0x1b6)]=this[_0x60850(0x21d)](),_0x221b76=this[_0x60850(0x45d)][_0x60850(0x477)](k,this[_0x60850(0x348)],this['type'],_0x61941d[0x0],this['_handler']);else{if(_0x31c17f[_0x60850(0x419)]!==0x0){const _0x4cde74=this[_0x60850(0x45d)][_0x60850(0x477)]($,this['unitID'],this['type'],_0x31c17f,this[_0x60850(0x16e)]);_0x4cde74[_0x60850(0x15c)](),_0x221b76=_0x4cde74;}else _0x221b76=this[_0x60850(0x45d)][_0x60850(0x477)](ae,this[_0x60850(0x348)],this['type'],this[_0x60850(0x16e)]);}}return _0x221b76[_0x60850(0x331)](),_0x221b76;}catch(_0x30708d){return this[_0x60850(0x42f)][_0x60850(0x150)](_0x60850(0x439),_0x60850(0x20d),_0x30708d),this[_0x60850(0x45d)][_0x60850(0x477)](Y,this[_0x60850(0x348)],this[_0x60850(0x20c)],this[_0x60850(0x32e)],this[_0x60850(0x209)],this['_handler'],!0x1);}}[_0x53b42f(0x497)](){const _0x243b69=_0x53b42f;throw new Error(_0x243b69(0x1a9));}[_0x53b42f(0x2ed)](_0x1e03c6){const _0x498dc5=_0x53b42f;return this[_0x498dc5(0x209)][_0x498dc5(0x1d7)](_0x1e03c6),this;}[_0x53b42f(0x437)](_0x2f867b){const _0x2c7a41=_0x53b42f;return this['_queuedRemoteChangesets'][_0x2c7a41(0x1d7)](_0x2f867b),this;}[_0x53b42f(0x28b)](_0x19225f){const _0x51273e=_0x53b42f;if(this[_0x51273e(0x32e)])return this[_0x51273e(0x458)]=this[_0x51273e(0x32e)],this[_0x51273e(0x32e)]=null,this;throw new Error(_0x51273e(0x493));}[_0x53b42f(0x3de)](_0x172024){const _0x57aae8=_0x53b42f;return this[_0x57aae8(0x19f)](!!(_0x172024!=null&&_0x172024[_0x57aae8(0x395)]));}[_0x53b42f(0x1d9)](){const _0x187cde=_0x53b42f;return this[_0x187cde(0x45d)][_0x187cde(0x477)](B,this[_0x187cde(0x348)],this[_0x187cde(0x20c)],this[_0x187cde(0x32e)],this['_pendingMutations'],this[_0x187cde(0x16e)]);}[_0x53b42f(0x391)](){return this;}[_0x53b42f(0x19f)](_0x135d4f){const _0x155fa6=_0x53b42f;return this[_0x155fa6(0x45d)][_0x155fa6(0x477)](Y,this[_0x155fa6(0x348)],this[_0x155fa6(0x20c)],this[_0x155fa6(0x32e)],this[_0x155fa6(0x209)],this[_0x155fa6(0x16e)],_0x135d4f);}};x=K([f(0x7,h['Inject'](h[_0x53b42f(0x1ac)])),f(0x8,h[_0x53b42f(0x295)](u[_0x53b42f(0x4c6)])),f(0x9,h[_0x53b42f(0x295)](exports[_0x53b42f(0x4b3)])),f(0xa,a[_0x53b42f(0x4c8)]),f(0xb,a[_0x53b42f(0x1c5)]),f(0xc,a['IUndoRedoService']),f(0xd,u['ITransformService'])],x);function bt(_0x2bbd74,_0x1ff0c6,_0x6a0732,_0x5ee26a,_0x242142,_0x3185d6){const _0x4396d2=_0x53b42f;return _0x5ee26a&&_0x242142[_0x4396d2(0x419)]?_0x2bbd74['createInstance'](H,_0x1ff0c6,_0x6a0732,_0x5ee26a,_0x242142,_0x3185d6):_0x5ee26a?_0x2bbd74['createInstance'](k,_0x1ff0c6,_0x6a0732,_0x5ee26a,_0x3185d6):_0x242142[_0x4396d2(0x419)]?_0x2bbd74[_0x4396d2(0x477)]($,_0x1ff0c6,_0x6a0732,_0x242142,_0x3185d6):_0x2bbd74[_0x4396d2(0x477)](ae,_0x1ff0c6,_0x6a0732,_0x3185d6);}var Os=Object['defineProperty'],Ds=Object['getOwnPropertyDescriptor'],Ee=(_0x17a36b,_0x98889e,_0x388dbb,_0x280c12)=>{const _0x36ad25=_0x53b42f;for(var _0x498e79=_0x280c12>0x1?void 0x0:_0x280c12?Ds(_0x98889e,_0x388dbb):_0x98889e,_0x46fe99=_0x17a36b[_0x36ad25(0x419)]-0x1,_0x3a6922;_0x46fe99>=0x0;_0x46fe99--)(_0x3a6922=_0x17a36b[_0x46fe99])&&(_0x498e79=(_0x280c12?_0x3a6922(_0x98889e,_0x388dbb,_0x498e79):_0x3a6922(_0x498e79))||_0x498e79);return _0x280c12&&_0x498e79&&Os(_0x98889e,_0x388dbb,_0x498e79),_0x498e79;},I=(_0x35fb10,_0x108bba)=>(_0x1447ab,_0x56b8bd)=>_0x108bba(_0x1447ab,_0x56b8bd,_0x35fb10);exports[_0x53b42f(0x301)]=class extends a[_0x53b42f(0x3a5)]{constructor(_0x3c628f,_0x2fc539,_0x32a2e7){const _0x5ca534=_0x53b42f;super(),d(this,_0x5ca534(0x372),new Map()),d(this,'_entityInit$',new g['Subject']()),(this['_injector']=_0x3c628f,this[_0x5ca534(0x44f)]=_0x2fc539,this[_0x5ca534(0x49a)]=_0x32a2e7,this['_init']());}[_0x53b42f(0x4df)](){const _0x3c6a05=_0x53b42f;super[_0x3c6a05(0x4df)](),this[_0x3c6a05(0x372)][_0x3c6a05(0x421)](_0x2b2d2e=>_0x2b2d2e[_0x3c6a05(0x4df)]()),this['_entities'][_0x3c6a05(0x4de)]();}[_0x53b42f(0x1cb)](_0x114565){const _0x246466=_0x53b42f;var _0x35e70b;return(_0x35e70b=this['_entities'][_0x246466(0x3d4)](_0x114565))!=null?_0x35e70b:null;}[_0x53b42f(0x397)](_0x27150a){const _0x49e314=_0x53b42f,_0x43dbf5=this['getCollabEntity'](_0x27150a);return _0x43dbf5?g['of'](_0x43dbf5):this[_0x49e314(0x44d)]['pipe'](T[_0x49e314(0x2f0)](_0x49d478=>_0x49d478['unitID']===_0x27150a));}[_0x53b42f(0x243)](){const _0x8b8849=_0x53b42f;this[_0x8b8849(0x49a)][_0x8b8849(0x4b6)](a['UniverInstanceType'][_0x8b8849(0x164)])[_0x8b8849(0x454)](g[_0x8b8849(0x436)](this[_0x8b8849(0x35f)]),T['delay'](0x10))[_0x8b8849(0x492)](async _0x530004=>{const _0x23559e=_0x8b8849,_0xfda19d=_0x530004[_0x23559e(0x1f9)](),_0x5ba5e0=await this[_0x23559e(0x47c)](_0xfda19d,j['UNIVER_SHEET']);this[_0x23559e(0x372)]['set'](_0xfda19d,_0x5ba5e0);}),this[_0x8b8849(0x49a)]['getTypeOfUnitAdded$'](a['UniverInstanceType'][_0x8b8849(0x220)])[_0x8b8849(0x454)](g[_0x8b8849(0x436)](this[_0x8b8849(0x35f)]),T[_0x8b8849(0x20a)](0x10))['pipe'](T[_0x8b8849(0x2f0)](_0x5bb6de=>!_0x5bb6de[_0x8b8849(0x1f9)]()[_0x8b8849(0x19e)]('__')))[_0x8b8849(0x492)](async _0x330d97=>{const _0x2d4560=_0x8b8849,_0x318e15=_0x330d97[_0x2d4560(0x1f9)](),_0x1caeb8=await this[_0x2d4560(0x47c)](_0x318e15,j[_0x2d4560(0x220)]);this[_0x2d4560(0x372)][_0x2d4560(0x2e0)](_0x318e15,_0x1caeb8);}),g[_0x8b8849(0x221)](this[_0x8b8849(0x49a)][_0x8b8849(0x160)](a[_0x8b8849(0x142)][_0x8b8849(0x164)]),this[_0x8b8849(0x49a)][_0x8b8849(0x160)](a[_0x8b8849(0x142)][_0x8b8849(0x220)]))[_0x8b8849(0x454)](g[_0x8b8849(0x436)](this[_0x8b8849(0x35f)]))[_0x8b8849(0x492)](_0x3d80ad=>{const _0x369f7b=_0x8b8849,_0x24fc12=_0x3d80ad['getUnitId'](),_0x23e387=this[_0x369f7b(0x372)][_0x369f7b(0x3d4)](_0x24fc12);_0x23e387&&(_0x23e387[_0x369f7b(0x4df)](),this[_0x369f7b(0x372)][_0x369f7b(0x35b)](_0x24fc12));});}async[_0x53b42f(0x47c)](_0x59c064,_0x1136ff){const _0x308638=_0x53b42f,_0x8de595=await this['_collabSessionService'][_0x308638(0x386)](_0x59c064),_0x8f926f=this[_0x308638(0x45d)][_0x308638(0x477)](this[_0x308638(0x1d0)](_0x1136ff),_0x59c064,_0x1136ff,_0x8de595);return await _0x8f926f[_0x308638(0x433)](),this[_0x308638(0x44d)]['next'](_0x8f926f),_0x8f926f;}[_0x53b42f(0x1d0)](_0x329ba8){const _0x68a1a7=_0x53b42f;switch(_0x329ba8){case j[_0x68a1a7(0x220)]:return Ue;case j['UNIVER_SHEET']:return ye;default:throw new Error(_0x68a1a7(0x1f4)+_0x329ba8);}}},exports[_0x53b42f(0x301)]=Ee([a[_0x53b42f(0x13b)](a[_0x53b42f(0x2e2)][_0x53b42f(0x157)],exports[_0x53b42f(0x301)]),I(0x0,h[_0x53b42f(0x295)](h[_0x53b42f(0x1ac)])),I(0x1,h['Inject'](exports[_0x53b42f(0x14a)])),I(0x2,a[_0x53b42f(0x390)])],exports[_0x53b42f(0x301)]);let me=class extends a[_0x53b42f(0x3a5)]{constructor(_0xc89388,_0x574aab,_0x4cd9a8,_0x3268b8,_0x7f74c0,_0xf40171,_0x2cf67f,_0xa83f96,_0x5d76b3,_0x293bad,_0x50eac3,_0x5b87bb,_0x50f5e9){const _0x2f0702=_0x53b42f;super(),d(this,'_state$',new g[(_0x2f0702(0x28a))](null)),d(this,_0x2f0702(0x48f),this[_0x2f0702(0x3bb)]['asObservable']()),d(this,_0x2f0702(0x379)),d(this,_0x2f0702(0x3aa),!0x1),d(this,_0x2f0702(0x183),this[_0x2f0702(0x48f)][_0x2f0702(0x454)](T['map'](_0x3a4c87=>_0x3a4c87?_0x3a4c87['status']:w[_0x2f0702(0x1b4)]),T['shareReplay'](0x1))),d(this,'_transitionLocked',!0x1),d(this,_0x2f0702(0x4cf),[]),(this[_0x2f0702(0x348)]=_0xc89388,this['_type']=_0x574aab,this[_0x2f0702(0x3e8)]=_0x4cd9a8,this[_0x2f0702(0x45d)]=_0x3268b8,this[_0x2f0702(0x33e)]=_0x7f74c0,this['_compressMutationService']=_0xf40171,this[_0x2f0702(0x2bd)]=_0x2cf67f,this['_revisionService']=_0xa83f96,this[_0x2f0702(0x42f)]=_0x5d76b3,this[_0x2f0702(0x188)]=_0x293bad,this[_0x2f0702(0x23f)]=_0x50eac3,this[_0x2f0702(0x214)]=_0x5b87bb,this['_singleActiveUnitService']=_0x50f5e9);}get[_0x53b42f(0x266)](){const _0x240381=_0x53b42f;return this[_0x240381(0x379)];}async[_0x53b42f(0x433)](){const _0x4285e4=_0x53b42f;if(this[_0x4285e4(0x266)])throw new Error(_0x4285e4(0x340));await this[_0x4285e4(0x243)]();}['pauseCollaboration'](){const _0x319d1c=_0x53b42f;return this[_0x319d1c(0x3aa)]=!0x0,a[_0x319d1c(0x1bb)](()=>{const _0x254400=_0x319d1c;this[_0x254400(0x3aa)]=!0x1,this['_exhaustRemoteChangesetQueue']();});}['_updateState'](_0x37a214){const _0x327180=_0x53b42f;this[_0x327180(0x379)]=_0x37a214,this[_0x327180(0x3bb)][_0x327180(0x414)](_0x37a214);}async['_init'](){const _0x44f72d=_0x53b42f;var _0x3e2cf2;return this[_0x44f72d(0x141)](await this['_createInitialState']()),this[_0x44f72d(0x346)]&&((_0x3e2cf2=this[_0x44f72d(0x346)])==null||_0x3e2cf2[_0x44f72d(0x482)](this[_0x44f72d(0x348)]),this[_0x44f72d(0x1e9)](a[_0x44f72d(0x1bb)](this['_singleActiveUnitService']['getUnitStatus$'](this[_0x44f72d(0x348)])[_0x44f72d(0x492)](_0x2ea3b9=>{const _0x408e0e=_0x44f72d;this[_0x408e0e(0x42f)][_0x408e0e(0x240)]('[CollaborationEntity]',_0x408e0e(0x4c1),_0x2ea3b9),_0x2ea3b9===Et[_0x408e0e(0x34a)]?(this[_0x408e0e(0x23f)][_0x408e0e(0x138)]({'content':this[_0x408e0e(0x2bd)]['t'](_0x408e0e(0x139)),'type':oe[_0x408e0e(0x3c9)][_0x408e0e(0x376)]}),this[_0x408e0e(0x214)][_0x408e0e(0x2c2)](new E[(_0x408e0e(0x247))](this[_0x408e0e(0x348)])['id'],!0x1)):this[_0x408e0e(0x214)][_0x408e0e(0x2c2)](new E['WorkbookEditablePermission'](this[_0x408e0e(0x348)])['id'],!0x0);})))),this[_0x44f72d(0x1e9)](a[_0x44f72d(0x1bb)](this['_session'][_0x44f72d(0x222)][_0x44f72d(0x492)](_0x35438d=>{const _0x3924b9=_0x44f72d;_0x35438d===W[_0x3924b9(0x4c3)]?this[_0x3924b9(0x1e0)]():_0x35438d===W[_0x3924b9(0x1b4)]&&this[_0x3924b9(0x435)]();}))),this[_0x44f72d(0x1e9)](a[_0x44f72d(0x1bb)](this[_0x44f72d(0x3e8)][_0x44f72d(0x255)][_0x44f72d(0x492)](_0x3bf767=>{const _0x3a7121=_0x44f72d;try{switch(_0x3bf767[_0x3a7121(0x428)]){case u[_0x3a7121(0x3fe)][_0x3a7121(0x463)]:{this[_0x3a7121(0x1d2)](u[_0x3a7121(0x134)](_0x3bf767[_0x3a7121(0x169)]));break;}case u[_0x3a7121(0x3fe)][_0x3a7121(0x45a)]:{this[_0x3a7121(0x3b1)](_0x3bf767[_0x3a7121(0x169)]);break;}case u[_0x3a7121(0x3fe)]['CHANGESET_REJ']:{this[_0x3a7121(0x489)]();break;}case u['CollaborationEvent']['PSEUDO_FETCH_MISSING_RESULT']:{this[_0x3a7121(0x314)](_0x3bf767[_0x3a7121(0x169)][_0x3a7121(0x3d8)][_0x3a7121(0x1af)](_0x50e9f6=>u[_0x3a7121(0x134)](_0x50e9f6)));break;}case u['CollaborationEvent']['PERMISSION_REJ']:this[_0x3a7121(0x489)]({'isPermissionRej':!0x0});}}catch(_0x17beba){throw console[_0x3a7121(0x150)](_0x3a7121(0x28d),_0x17beba),_0x17beba;}}))),this[_0x44f72d(0x379)];}['_unlockTransition'](){this['_transitionLocked']=!0x1;}[_0x53b42f(0x45c)](){const _0x5803f6=_0x53b42f;if(this[_0x5803f6(0x144)])throw new Error(_0x5803f6(0x3ee));this[_0x5803f6(0x144)]=!0x0;}['_onLocalMutation'](_0xc2f1df){const _0x5d0537=_0x53b42f;this[_0x5d0537(0x45c)](),this['_updateState'](this['_state'][_0x5d0537(0x2ed)](_0xc2f1df)),this[_0x5d0537(0x3b7)]();}[_0x53b42f(0x1d2)](_0x44ba8d){const _0x1aaaac=_0x53b42f;if(!(_0x44ba8d[_0x1aaaac(0x306)]<=this[_0x1aaaac(0x311)][_0x1aaaac(0x2af)](this[_0x1aaaac(0x348)]))){if(this[_0x1aaaac(0x3aa)]){this[_0x1aaaac(0x4cf)][_0x1aaaac(0x1d7)](_0x44ba8d);return;}this[_0x1aaaac(0x217)](_0x44ba8d);}}[_0x53b42f(0x23e)](){const _0x3b9d06=_0x53b42f;this['_remoteChangesetQueue'][_0x3b9d06(0x421)](_0x44e988=>this[_0x3b9d06(0x217)](_0x44e988)),this[_0x3b9d06(0x4cf)]=[];}[_0x53b42f(0x217)](_0x1be7a8){const _0x126faa=_0x53b42f,_0x46b3ec=this['_compressMutationService'][_0x126faa(0x45e)][_0x126faa(0x355)](this[_0x126faa(0x2d5)][_0x126faa(0x45e)][_0x126faa(0x3b9)]()[_0x126faa(0x248)])(_0x1be7a8[_0x126faa(0x21b)],null)||_0x1be7a8['mutations'],_0x37d790={..._0x1be7a8,'mutations':_0x46b3ec};this['_lockTransition'](),this['_updateState'](this['_state'][_0x126faa(0x437)](_0x37d790)),this['_unlockTransition']();}['_onRemoteACK'](_0xf5f13c){const _0x5fdd64=_0x53b42f;this[_0x5fdd64(0x45c)](),this[_0x5fdd64(0x141)](this[_0x5fdd64(0x379)]['onRemoteAck'](_0xf5f13c)),this['_unlockTransition']();}['_onRemoteRejected'](_0x5135b5){const _0x551ec9=_0x53b42f;this['_lockTransition'](),this[_0x551ec9(0x141)](this['_state'][_0x551ec9(0x3de)](_0x5135b5)),this[_0x551ec9(0x3b7)]();}['_onFetchMissResult'](_0x1e757b){const _0x2d912e=_0x53b42f;if(!(this[_0x2d912e(0x379)]instanceof x))throw new TypeError('[CollaborationEntity]:\x20cannot\x20apply\x20missing\x20results\x20on\x20other\x20states!');const _0x208178=_0x1e757b[_0x2d912e(0x1af)](_0x10266e=>{const _0x4c888d=_0x2d912e,_0x48710f=this[_0x4c888d(0x2d5)]['interceptor']['fetchThroughInterceptors'](this[_0x4c888d(0x2d5)][_0x4c888d(0x45e)][_0x4c888d(0x3b9)]()[_0x4c888d(0x248)])(_0x10266e['mutations'],null)||_0x10266e[_0x4c888d(0x21b)];return{..._0x10266e,'mutations':_0x48710f};});this[_0x2d912e(0x45c)](),this['_updateState'](this[_0x2d912e(0x379)]['onMissedChangesetFetched'](_0x208178)),this['_unlockTransition']();}[_0x53b42f(0x435)](){const _0x237269=_0x53b42f;this[_0x237269(0x45c)](),this[_0x237269(0x141)](this[_0x237269(0x379)][_0x237269(0x1d9)]()),this['_unlockTransition']();}[_0x53b42f(0x1e0)](){const _0x1d6327=_0x53b42f;this[_0x1d6327(0x45c)](),this[_0x1d6327(0x141)](this[_0x1d6327(0x379)]['toggleOnline']()),this['_unlockTransition']();}async['_createInitialState'](){return new Promise(_0x3d5f57=>{const _0xf129cf=_0xe052;this['_session']['sessionStatus$'][_0xf129cf(0x454)](T['take'](0x1))[_0xf129cf(0x492)](async _0x342e49=>{_0x3d5f57(await this['_createInitialStateImpl'](_0x342e49===W['ONLINE']));});});}['_createHandler'](){const _0x9ea427=_0x53b42f,_0x31722e=this[_0x9ea427(0x348)];return{'onStateChange':(_0x198bcf,_0x259feb)=>{const _0x4337e7=_0x9ea427;if(_0x198bcf!==this[_0x4337e7(0x379)])throw new Error(_0x4337e7(0x2ba)+_0x198bcf['status']+_0x4337e7(0x3fd)+_0x259feb[_0x4337e7(0x2a7)]+'\x0aCurrent:\x20'+this[_0x4337e7(0x379)][_0x4337e7(0x2a7)]);this['_updateState'](_0x259feb);},'onSendChangeset':_0x382907=>{const _0x407f92=_0x9ea427,_0xd4ffab={'eventID':u['CollaborationEvent'][_0x407f92(0x315)],'data':{'unitID':_0x382907['unitID'],'unitType':this[_0x407f92(0x2fa)],'changeset':_0x382907,'memberID':this[_0x407f92(0x3e8)][_0x407f92(0x1b1)]()}};this[_0x407f92(0x3e8)][_0x407f92(0x279)](_0xd4ffab,this['unitID']);},'onMissingChangesets':({from:_0xd7f2e6,to:_0x541a6d})=>{const _0x45a022=_0x9ea427;this[_0x45a022(0x42f)]['debug']('[CollaborationEntity]','fetching\x20missing\x20changesets\x20from\x20'+_0xd7f2e6+_0x45a022(0x1e3)+_0x541a6d);const _0x4fe19f={'eventID':u[_0x45a022(0x3fe)][_0x45a022(0x2c9)],'data':{'unitID':_0x31722e,'unitType':this['_type'],'from':_0xd7f2e6,'to':_0x541a6d}};this[_0x45a022(0x3e8)][_0x45a022(0x279)](_0x4fe19f,this['unitID']);}};}async[_0x53b42f(0x212)](_0x22df77){const _0x35b7f7=_0x53b42f;var _0x292f3b,_0xa9eb41;const _0x4a72cb=await this[_0x35b7f7(0x33e)][_0x35b7f7(0x3ea)](this[_0x35b7f7(0x348)]),_0x3a6422=(_0x292f3b=_0x4a72cb==null?void 0x0:_0x4a72cb[_0x35b7f7(0x21b)])!=null?_0x292f3b:[],_0x397dfe=(_0xa9eb41=_0x4a72cb==null?void 0x0:_0x4a72cb['awaitingChangeset'])!=null?_0xa9eb41:null,_0x53a027=this['unitID'];try{this['_replayCachedMutations'](_0x397dfe,_0x3a6422);}catch(_0x3c62f2){this['_logService'][_0x35b7f7(0x150)](_0x3c62f2);}const _0x297c5f=this['_createHandler']();if(_0x22df77){const _0x10f22e=bt(this[_0x35b7f7(0x45d)],_0x53a027,this[_0x35b7f7(0x2fa)],_0x397dfe,_0x3a6422,_0x297c5f);return _0x10f22e instanceof $?_0x10f22e[_0x35b7f7(0x15c)]():(_0x10f22e instanceof H||_0x10f22e instanceof k)&&_0x10f22e[_0x35b7f7(0x497)](),_0x10f22e;}return this[_0x35b7f7(0x45d)][_0x35b7f7(0x477)](B,_0x53a027,this[_0x35b7f7(0x2fa)],_0x397dfe,_0x3a6422,_0x297c5f);}['_replayCachedMutations'](_0x30a387,_0x13add7){const _0x3f3339=_0x53b42f;var _0x553a7e,_0x5535ef;const _0x2603dc=this[_0x3f3339(0x2d5)][_0x3f3339(0x45e)][_0x3f3339(0x355)](this['_compressMutationService'][_0x3f3339(0x45e)]['getInterceptPoints']()['COMPRESS_MUTATION_APPLY']);(_0x553a7e=_0x2603dc((_0x30a387==null?void 0x0:_0x30a387[_0x3f3339(0x21b)])||[],null))==null||_0x553a7e[_0x3f3339(0x421)](_0x51d8de=>this['_commandService'][_0x3f3339(0x1ee)](_0x51d8de['id'],_0x51d8de['params'])),(_0x5535ef=_0x2603dc(_0x13add7||[],null))==null||_0x5535ef[_0x3f3339(0x421)](_0x472e47=>this[_0x3f3339(0x188)][_0x3f3339(0x1ee)](_0x472e47['id'],_0x472e47[_0x3f3339(0x17b)]));}};me=Ee([I(0x3,h[_0x53b42f(0x295)](h['Injector'])),I(0x4,h['Inject'](exports[_0x53b42f(0x4b3)])),I(0x5,h[_0x53b42f(0x295)](u[_0x53b42f(0x2b2)])),I(0x6,h[_0x53b42f(0x295)](a[_0x53b42f(0x1ba)])),I(0x7,h[_0x53b42f(0x295)](u['RevisionService'])),I(0x8,a[_0x53b42f(0x4c8)]),I(0x9,a['ICommandService']),I(0xa,N[_0x53b42f(0x288)]),I(0xb,a[_0x53b42f(0x37e)]),I(0xc,h[_0x53b42f(0x420)](pe))],me);let Ue=class extends me{constructor(_0x1c9596,_0x5c741f,_0x1d06c9,_0x9261f9,_0x137d91,_0x1fa4dd,_0x38dbb3,_0x12f52a,_0x543a69,_0x51bf8a,_0x3dba87,_0x3c4c95,_0x7c18d7,_0x4b71ad,_0x15c8f3,_0x5cbe71,_0x2ed583){const _0x53d4b4=_0x53b42f;super(_0x1c9596,_0x5c741f,_0x1d06c9,_0x9261f9,_0x137d91,_0x1fa4dd,_0x38dbb3,_0x12f52a,_0x7c18d7,_0x4b71ad,_0x15c8f3,_0x5cbe71,_0x2ed583),this[_0x53d4b4(0x348)]=_0x1c9596,this[_0x53d4b4(0x20c)]=_0x5c741f,this[_0x53d4b4(0x140)]=_0x1d06c9,this[_0x53d4b4(0x2ae)]=_0x543a69,this[_0x53d4b4(0x47b)]=_0x51bf8a,this[_0x53d4b4(0x384)]=_0x3dba87,this[_0x53d4b4(0x41f)]=_0x3c4c95;}[_0x53b42f(0x17d)](){const _0x31bfbb=_0x53b42f,_0x81de06=super[_0x31bfbb(0x17d)]();return _0x81de06['onTransformIME']=_0x12dca2=>this[_0x31bfbb(0x47b)][_0x31bfbb(0x3ec)](_0x12dca2),_0x81de06[_0x31bfbb(0x1cd)]=_0x133f09=>this[_0x31bfbb(0x384)][_0x31bfbb(0x438)](_0x133f09),_0x81de06[_0x31bfbb(0x417)]=_0x49771c=>this[_0x31bfbb(0x41f)][_0x31bfbb(0x2cb)](_0x49771c),_0x81de06[_0x31bfbb(0x31f)]=_0x379143=>this[_0x31bfbb(0x47b)][_0x31bfbb(0x168)](_0x379143),_0x81de06;}async[_0x53b42f(0x243)](){const _0x550cf1=_0x53b42f,_0x42114a=await super['_init']();return this[_0x550cf1(0x2ae)][_0x550cf1(0x351)]['pipe'](g[_0x550cf1(0x436)](this['dispose$']))[_0x550cf1(0x492)](_0x1b4b30=>{const _0x579482=_0x550cf1;if(_0x1b4b30==null)return;const {unitId:_0x1f20cd,redoState:_0x3667c3,commandId:_0x498c1b}=_0x1b4b30;if(_0x1f20cd!==this[_0x579482(0x348)])return;const _0xf55923={'id':_0x498c1b,'type':a['CommandType'][_0x579482(0x1d3)],'params':{'unitId':_0x1f20cd,'actions':_0x3667c3[_0x579482(0x2c1)],'textRanges':null}};this[_0x579482(0x170)](_0xf55923);}),_0x42114a;}};Ue=Ee([I(0x3,h[_0x53b42f(0x295)](h[_0x53b42f(0x1ac)])),I(0x4,h['Inject'](exports[_0x53b42f(0x4b3)])),I(0x5,h[_0x53b42f(0x295)](u[_0x53b42f(0x2b2)])),I(0x6,h[_0x53b42f(0x295)](a[_0x53b42f(0x1ba)])),I(0x7,h[_0x53b42f(0x295)](u[_0x53b42f(0x4c6)])),I(0x8,h[_0x53b42f(0x295)](M[_0x53b42f(0x30a)])),I(0x9,h[_0x53b42f(0x295)](ve)),I(0xa,h['Inject'](ge)),I(0xb,h[_0x53b42f(0x295)](Fe)),I(0xc,a[_0x53b42f(0x4c8)]),I(0xd,a[_0x53b42f(0x1c5)]),I(0xe,N[_0x53b42f(0x288)]),I(0xf,a['IPermissionService']),I(0x10,h[_0x53b42f(0x420)](pe))],Ue);let ye=class extends me{constructor(_0x45f799,_0x3bdacc,_0x446359,_0x10eedc,_0x2bdcb1,_0xe0a6c2,_0x33bc32,_0xb17beb,_0x5bee76,_0xcb1c90,_0x56d450,_0x1d3694,_0x262bd8,_0x4360e0){const _0x205814=_0x53b42f;super(_0x45f799,_0x3bdacc,_0x446359,_0x10eedc,_0x2bdcb1,_0xe0a6c2,_0x33bc32,_0xb17beb,_0xcb1c90,_0x56d450,_0x1d3694,_0x262bd8,_0x4360e0),this[_0x205814(0x348)]=_0x45f799,this['type']=_0x3bdacc,this['session']=_0x446359,this[_0x205814(0x21e)]=_0x5bee76;}['_createHandler'](){const _0x7d4342=_0x53b42f,_0x2a4e99=super['_createHandler']();return _0x2a4e99['onTransformSelections']=_0xc550af=>this[_0x7d4342(0x21e)][_0x7d4342(0x438)](_0xc550af),_0x2a4e99;}async[_0x53b42f(0x243)](){const _0x39a605=_0x53b42f,_0x277a2b=await super['_init']();return this[_0x39a605(0x1e9)](this[_0x39a605(0x188)]['onCommandExecuted']((_0x5955da,_0xdb43ec)=>{const _0x4d1370=_0x39a605;if(_0x5955da[_0x4d1370(0x20c)]!==a[_0x4d1370(0x2b8)][_0x4d1370(0x1d3)]||_0xdb43ec!=null&&_0xdb43ec[_0x4d1370(0x19b)]||_0xdb43ec!=null&&_0xdb43ec[_0x4d1370(0x43b)])return;const _0x4b196a=_0x5955da[_0x4d1370(0x17b)];if((_0x4b196a==null?void 0x0:_0x4b196a[_0x4d1370(0x21a)])!==this[_0x4d1370(0x348)])return;const _0x5a7a7a=_0x5955da,_0x352fb0=this[_0x4d1370(0x2d5)][_0x4d1370(0x45e)]['fetchThroughInterceptors'](this[_0x4d1370(0x2d5)][_0x4d1370(0x45e)][_0x4d1370(0x3b9)]()[_0x4d1370(0x349)])([_0x5a7a7a],null)||[_0x5a7a7a];this[_0x4d1370(0x170)](_0x352fb0[0x0]);})),_0x277a2b;}};ye=Ee([I(0x3,h[_0x53b42f(0x295)](h[_0x53b42f(0x1ac)])),I(0x4,h[_0x53b42f(0x295)](exports[_0x53b42f(0x4b3)])),I(0x5,h[_0x53b42f(0x295)](u['CompressMutationService'])),I(0x6,h['Inject'](a[_0x53b42f(0x1ba)])),I(0x7,h[_0x53b42f(0x295)](u[_0x53b42f(0x4c6)])),I(0x8,h[_0x53b42f(0x295)](fe)),I(0x9,a['ILogService']),I(0xa,a[_0x53b42f(0x1c5)]),I(0xb,N[_0x53b42f(0x288)]),I(0xc,a[_0x53b42f(0x37e)]),I(0xd,h[_0x53b42f(0x420)](pe))],ye);const et=[_0x53b42f(0x224),'jiqing500','verdancy600',_0x53b42f(0x20f),_0x53b42f(0x44b),_0x53b42f(0x4ac)];class Ve extends a[_0x53b42f(0x18e)]{constructor(){const _0x2bda24=_0x53b42f;super(...arguments),d(this,_0x2bda24(0x16b),new Map()),d(this,'_colorIndex',0x0);}['assignAColorForMemberID'](_0xddd9ab){const _0x1e21da=_0x53b42f;if(this[_0x1e21da(0x16b)][_0x1e21da(0x378)](_0xddd9ab))return this['_assignedColors'][_0x1e21da(0x3d4)](_0xddd9ab);const _0x2f056a=et[this['_colorIndex']];return this[_0x1e21da(0x443)]=(this[_0x1e21da(0x443)]+0x1)%et[_0x1e21da(0x419)],this['_assignedColors'][_0x1e21da(0x2e0)](_0xddd9ab,_0x2f056a),_0x2f056a;}}var ws=Object[_0x53b42f(0x38a)],Ls=Object[_0x53b42f(0x2a8)],Ps=(_0x366b2a,_0x4ea6bd,_0x4124a5,_0x3fe4d1)=>{const _0x4be10b=_0x53b42f;for(var _0x5b648b=_0x3fe4d1>0x1?void 0x0:_0x3fe4d1?Ls(_0x4ea6bd,_0x4124a5):_0x4ea6bd,_0x396d48=_0x366b2a[_0x4be10b(0x419)]-0x1,_0xa368b4;_0x396d48>=0x0;_0x396d48--)(_0xa368b4=_0x366b2a[_0x396d48])&&(_0x5b648b=(_0x3fe4d1?_0xa368b4(_0x4ea6bd,_0x4124a5,_0x5b648b):_0xa368b4(_0x5b648b))||_0x5b648b);return _0x3fe4d1&&_0x5b648b&&ws(_0x4ea6bd,_0x4124a5,_0x5b648b),_0x5b648b;},q=(_0x32ad99,_0x38ef02)=>(_0x211579,_0x1dd727)=>_0x38ef02(_0x211579,_0x1dd727,_0x32ad99);function _0xe052(_0x99e822,_0x2a01ec){const _0x3fcd71=_0x3fcd();return _0xe052=function(_0xe052ad,_0x7319f3){_0xe052ad=_0xe052ad-0x131;let _0x5befef=_0x3fcd71[_0xe052ad];return _0x5befef;},_0xe052(_0x99e822,_0x2a01ec);}const Us=0x12c,ys=0x64,Ms=()=>{let _0x1fa06b=[],_0x2ff4ba=!0x1;return _0x1afa47=>{_0x1fa06b['push'](_0x1afa47),_0x2ff4ba||(_0x2ff4ba=!0x0,setTimeout(()=>{_0x1fa06b['forEach'](_0x15a0f4=>_0x15a0f4()),_0x1fa06b=[],_0x2ff4ba=!0x1;}));};};let Me=class extends a[_0x53b42f(0x3a5)]{constructor(_0x2510e6,_0x5730aa,_0x207a14,_0x2ef029,_0xa2ca54,_0x1af9cd,_0x1aff88,_0x278355){const _0x39eca4=_0x53b42f;super(),d(this,_0x39eca4(0x4e5),!0x1),d(this,_0x39eca4(0x243),!0x1),d(this,_0x39eca4(0x210),new g[(_0x39eca4(0x28a))](new Map())),d(this,_0x39eca4(0x199),this[_0x39eca4(0x210)][_0x39eca4(0x1d6)]()),d(this,_0x39eca4(0x22e),new g[(_0x39eca4(0x28a))]([])),d(this,_0x39eca4(0x1f0),this[_0x39eca4(0x22e)][_0x39eca4(0x454)](g[_0x39eca4(0x228)](Us))),d(this,'_updateLocalCursor',He((_0x258fbe,_0x1153c7)=>{const _0x4f3255=_0x39eca4,_0x2facae={'eventID':u[_0x4f3255(0x3fe)][_0x4f3255(0x4e1)],'data':{'unitID':this[_0x4f3255(0x348)],'memberID':this[_0x4f3255(0x3e8)][_0x4f3255(0x1b1)](),'selection':Ye[_0x4f3255(0x2ce)](_0x258fbe,_0x1153c7[_0x4f3255(0x478)])}};this[_0x4f3255(0x3e8)][_0x4f3255(0x279)](_0x2facae,this[_0x4f3255(0x348)]);},ys)),(this[_0x39eca4(0x348)]=_0x2510e6,this['_session']=_0x5730aa,this['_injector']=_0x207a14,this['_colorAssignService']=_0x2ef029,this['_memberService']=_0xa2ca54,this[_0x39eca4(0x49a)]=_0x1af9cd,this[_0x39eca4(0x188)]=_0x1aff88,this[_0x39eca4(0x179)]=_0x278355);}get[_0x53b42f(0x37b)](){const _0x9d66a4=_0x53b42f;return this[_0x9d66a4(0x210)][_0x9d66a4(0x47e)]();}get[_0x53b42f(0x34e)](){const _0x119a60=_0x53b42f;return this[_0x119a60(0x22e)][_0x119a60(0x47e)]();}[_0x53b42f(0x4df)](){const _0x2b3395=_0x53b42f;super[_0x2b3395(0x4df)](),this[_0x2b3395(0x210)]['next'](new Map()),this[_0x2b3395(0x210)][_0x2b3395(0x146)](),this[_0x2b3395(0x22e)][_0x2b3395(0x414)]([]),this['_roomMembers$']['complete']();}[_0x53b42f(0x433)](){const _0x1d7f32=_0x53b42f;this[_0x1d7f32(0x243)]||(this[_0x1d7f32(0x243)]=!0x0,this[_0x1d7f32(0x3e8)]['sessionStatus$'][_0x1d7f32(0x454)](g[_0x1d7f32(0x436)](this[_0x1d7f32(0x35f)]))['subscribe'](_0x1180bc=>{const _0x24fe50=_0x1d7f32;_0x1180bc===W[_0x24fe50(0x4c3)]?this[_0x24fe50(0x1e0)]():this[_0x24fe50(0x435)]();}),this['_session'][_0x1d7f32(0x255)][_0x1d7f32(0x454)](g[_0x1d7f32(0x436)](this[_0x1d7f32(0x35f)]))[_0x1d7f32(0x492)](_0x3eaf5c=>{const _0x2cc510=_0x1d7f32,_0x2d834c=_0x3eaf5c[_0x2cc510(0x428)];_0x2d834c===u[_0x2cc510(0x3fe)][_0x2cc510(0x4e1)]&&this[_0x2cc510(0x4b7)](_0x3eaf5c),_0x2d834c===u[_0x2cc510(0x3fe)][_0x2cc510(0x177)]&&this[_0x2cc510(0x213)](_0x3eaf5c);}),this[_0x1d7f32(0x1b0)](),this[_0x1d7f32(0x1e9)](this[_0x1d7f32(0x188)][_0x1d7f32(0x43e)](_0x3356ce=>{const _0x2c4235=_0x1d7f32;if(this[_0x2c4235(0x4e5)]&&_0x3356ce['id']===E[_0x2c4235(0x263)]['id']&&_0x3356ce['params']['unitId']===this[_0x2c4235(0x348)]){const _0x141e0c=_0x3356ce['params'];this['_updateLocalCursor'](_0x141e0c[_0x2c4235(0x37a)],_0x141e0c[_0x2c4235(0x252)][0x0]);}})));}[_0x53b42f(0x4b7)](_0x272c8b){const _0x16d2a7=_0x53b42f;var _0x2441ef,_0x5c689a;const {memberID:_0x1a0b5e,selection:_0x5b23d6}=_0x272c8b[_0x16d2a7(0x169)],{sheetName:_0x2df720,range:_0x155d1f}=Ye[_0x16d2a7(0x383)](_0x5b23d6),_0x3194ec={'name':(_0x5c689a=(_0x2441ef=this[_0x16d2a7(0x4ae)][_0x16d2a7(0x4b5)](this['unitID'],_0x1a0b5e))==null?void 0x0:_0x2441ef[_0x16d2a7(0x462)])!=null?_0x5c689a:_0x16d2a7(0x17f),'range':this[_0x16d2a7(0x2de)](_0x2df720,_0x155d1f),'sheetID':_0x2df720,'color':this[_0x16d2a7(0x1a8)]['assignAColorForMemberID'](_0x1a0b5e),'selection':_0x5b23d6},_0x47bd81=this[_0x16d2a7(0x37b)];_0x47bd81['set'](_0x1a0b5e,_0x3194ec),this['_cursorInfo$'][_0x16d2a7(0x414)](_0x47bd81);}['_onCursorDelete'](_0x24a2a1){const _0x1b4bf6=_0x53b42f,{memberID:_0x148b93}=_0x24a2a1[_0x1b4bf6(0x169)],_0x523150=this[_0x1b4bf6(0x37b)];_0x523150[_0x1b4bf6(0x35b)](_0x148b93),this[_0x1b4bf6(0x210)]['next'](_0x523150);}[_0x53b42f(0x2de)](_0x4fa6cb,_0x898b21){const _0x30653f=_0x53b42f;var _0x31d2e1,_0x29fa90;const _0x193861=(_0x29fa90=(_0x31d2e1=this[_0x30653f(0x49a)][_0x30653f(0x359)](this[_0x30653f(0x348)]))==null?void 0x0:_0x31d2e1[_0x30653f(0x475)](_0x4fa6cb))==null?void 0x0:_0x29fa90[_0x30653f(0x2c3)]();return(_0x193861==null?void 0x0:_0x193861['find'](_0x38fdb2=>a[_0x30653f(0x471)][_0x30653f(0x46c)](_0x38fdb2,_0x898b21)))||_0x898b21;}[_0x53b42f(0x1b0)](){const _0x88344d=_0x53b42f,_0x1a2397=new a[(_0x88344d(0x4a8))](),_0x28af22=Ms(),_0x51071a=()=>{const _0x1c1e94=_0x88344d;_0x1a2397[_0x1c1e94(0x4df)]();const _0x44bcb3=(_0xf9b00e,_0x47f5ac,_0xd0ae07,_0x3ff46a)=>{const _0x25c346=_0x1c1e94;let _0x551f77=[];switch(_0xf9b00e['id']){case E[_0x25c346(0x2a5)][_0x25c346(0x282)]:{_0x551f77=E[_0x25c346(0x2b6)](_0xf9b00e,_0x3ff46a);break;}case E['EffectRefRangId'][_0x25c346(0x18b)]:{_0x551f77=E[_0x25c346(0x459)](_0xf9b00e,_0x3ff46a);break;}case E['EffectRefRangId'][_0x25c346(0x4c2)]:{_0x551f77=E[_0x25c346(0x344)](_0xf9b00e,_0x3ff46a);break;}case E[_0x25c346(0x2a5)][_0x25c346(0x399)]:{_0x551f77=E[_0x25c346(0x2d2)](_0xf9b00e,_0x3ff46a);break;}case E[_0x25c346(0x2a5)][_0x25c346(0x287)]:{_0x551f77=E['handleInsertRangeMoveRight'](_0xf9b00e,_0x3ff46a);break;}case E['EffectRefRangId'][_0x25c346(0x2f8)]:{_0x551f77=E[_0x25c346(0x16c)](_0xf9b00e,_0x3ff46a);break;}case E[_0x25c346(0x2a5)][_0x25c346(0x232)]:{_0x551f77=E[_0x25c346(0x377)](_0xf9b00e,_0x3ff46a);break;}case E[_0x25c346(0x2a5)][_0x25c346(0x4c9)]:{_0x551f77=E[_0x25c346(0x147)](_0xf9b00e,_0x3ff46a);break;}case E[_0x25c346(0x2a5)]['RemoveRowCommandId']:{_0x551f77=E[_0x25c346(0x432)](_0xf9b00e,_0x3ff46a);break;}}const _0x5b7999=E['runRefRangeMutations'](_0x551f77,_0x3ff46a),_0x18ba8e=this[_0x25c346(0x37b)][_0x25c346(0x3d4)](_0x47f5ac);if(_0x18ba8e&&_0x5b7999){const _0x356af6={..._0x18ba8e,'range':_0x5b7999};this[_0x25c346(0x37b)][_0x25c346(0x2e0)](_0x47f5ac,_0x356af6),_0x28af22(()=>{const _0x28d0ad=_0x25c346,_0x12a5d8=this[_0x28d0ad(0x179)]['registerRefRange'](_0x5b7999,_0xd3a816=>(_0x12a5d8['dispose'](),_0x44bcb3(_0xd3a816,_0x47f5ac,_0xd0ae07,_0x5b7999)));_0x1a2397[_0x28d0ad(0x1e5)](_0x12a5d8);});}return{'redos':[],'undos':[]};};this[_0x1c1e94(0x37b)][_0x1c1e94(0x421)]((_0x2190ec,_0x77411c)=>{const _0x34045b=_0x1c1e94,{range:_0x1b5942,sheetID:_0x4a609f}=_0x2190ec,_0x54153=this[_0x34045b(0x179)][_0x34045b(0x2fc)](_0x1b5942,_0x176d22=>(_0x54153[_0x34045b(0x4df)](),_0x44bcb3(_0x176d22,_0x77411c,_0x4a609f,_0x1b5942)));_0x1a2397[_0x34045b(0x1e5)](_0x54153);});};this[_0x88344d(0x1e9)](a[_0x88344d(0x1bb)](this['_cursorInfo$'][_0x88344d(0x492)](()=>{_0x51071a();})));}[_0x53b42f(0x1e0)](){const _0x1e5bd1=_0x53b42f;var _0x476aee,_0x422403;if(this[_0x1e5bd1(0x4e5)]=!0x0,((_0x476aee=this['_univerInstanceService'][_0x1e5bd1(0x41e)]())==null?void 0x0:_0x476aee[_0x1e5bd1(0x1f9)]())!==this['unitID'])return;const _0x1fa637=(_0x422403=this[_0x1e5bd1(0x45d)]['get'](E[_0x1e5bd1(0x448)])[_0x1e5bd1(0x369)]())==null?void 0x0:_0x422403[0x0],_0x462fa6=this[_0x1e5bd1(0x49a)][_0x1e5bd1(0x171)](a[_0x1e5bd1(0x142)][_0x1e5bd1(0x164)])['getActiveSheet']();_0x1fa637&&_0x462fa6&&this['_updateLocalCursor'](_0x462fa6['getSheetId'](),_0x1fa637);}[_0x53b42f(0x435)](){const _0x3f9623=_0x53b42f;this[_0x3f9623(0x4e5)]=!0x1;}};Me=Ps([q(0x2,h[_0x53b42f(0x295)](h['Injector'])),q(0x3,h[_0x53b42f(0x295)](Ve)),q(0x4,h['Inject'](G)),q(0x5,a[_0x53b42f(0x390)]),q(0x6,a[_0x53b42f(0x1c5)]),q(0x7,h[_0x53b42f(0x295)](E[_0x53b42f(0x16a)]))],Me);var Ns=Object[_0x53b42f(0x38a)],As=Object[_0x53b42f(0x2a8)],js=(_0x361f6c,_0x328796,_0x3cd9b8,_0x4150eb)=>{const _0x1bfa5f=_0x53b42f;for(var _0x4f1179=_0x4150eb>0x1?void 0x0:_0x4150eb?As(_0x328796,_0x3cd9b8):_0x328796,_0xcb57ae=_0x361f6c[_0x1bfa5f(0x419)]-0x1,_0x2595e6;_0xcb57ae>=0x0;_0xcb57ae--)(_0x2595e6=_0x361f6c[_0xcb57ae])&&(_0x4f1179=(_0x4150eb?_0x2595e6(_0x328796,_0x3cd9b8,_0x4f1179):_0x2595e6(_0x4f1179))||_0x4f1179);return _0x4150eb&&_0x4f1179&&Ns(_0x328796,_0x3cd9b8,_0x4f1179),_0x4f1179;},V=(_0x29d5bb,_0x13b3d6)=>(_0x58c7e6,_0x34565a)=>_0x13b3d6(_0x58c7e6,_0x34565a,_0x29d5bb);const $s=0x12c,Hs=0x64;let Ne=class extends a[_0x53b42f(0x3a5)]{constructor(_0x13dbb9,_0x3790ff,_0x4f0694,_0x2b8760,_0x186c42,_0xd7f7ea,_0x220261,_0x3b9c60,_0x44847a){const _0xa6d173=_0x53b42f;super(),d(this,_0xa6d173(0x4e5),!0x1),d(this,_0xa6d173(0x243),!0x1),d(this,_0xa6d173(0x210),new g[(_0xa6d173(0x28a))](new Map())),d(this,'cursorInfo$',this[_0xa6d173(0x210)][_0xa6d173(0x1d6)]()),d(this,_0xa6d173(0x22e),new g[(_0xa6d173(0x28a))]([])),d(this,_0xa6d173(0x1f0),this[_0xa6d173(0x22e)][_0xa6d173(0x454)](g[_0xa6d173(0x228)]($s))),d(this,_0xa6d173(0x3d0),He(_0x318bbb=>{const _0x5b7d4c=_0xa6d173,_0x172b84={'eventID':u[_0x5b7d4c(0x3fe)][_0x5b7d4c(0x4e1)],'data':{'unitID':this[_0x5b7d4c(0x348)],'memberID':this['_session'][_0x5b7d4c(0x1b1)](),'selection':Ct(_0x318bbb)}};this['_session'][_0x5b7d4c(0x279)](_0x172b84,this[_0x5b7d4c(0x348)]);},Hs)),(this['unitID']=_0x13dbb9,this['_session']=_0x3790ff,this[_0xa6d173(0x45d)]=_0x4f0694,this['_colorAssignService']=_0x2b8760,this['_memberService']=_0x186c42,this['_syncEditingCollabCursorService']=_0xd7f7ea,this[_0xa6d173(0x2f1)]=_0x220261,this[_0xa6d173(0x49a)]=_0x3b9c60,this[_0xa6d173(0x188)]=_0x44847a);}get[_0x53b42f(0x37b)](){const _0x195b73=_0x53b42f;return this[_0x195b73(0x210)][_0x195b73(0x47e)]();}get['roomMembers'](){const _0x41f8d6=_0x53b42f;return this[_0x41f8d6(0x22e)][_0x41f8d6(0x47e)]();}['dispose'](){const _0x2b37f1=_0x53b42f;super[_0x2b37f1(0x4df)](),this['_cursorInfo$'][_0x2b37f1(0x414)](new Map()),this[_0x2b37f1(0x210)][_0x2b37f1(0x146)](),this['_roomMembers$'][_0x2b37f1(0x414)]([]),this[_0x2b37f1(0x22e)][_0x2b37f1(0x146)]();}[_0x53b42f(0x433)](){const _0x35fc6e=_0x53b42f;this[_0x35fc6e(0x243)]||(this[_0x35fc6e(0x243)]=!0x0,this[_0x35fc6e(0x3e8)]['sessionStatus$']['pipe'](g[_0x35fc6e(0x436)](this[_0x35fc6e(0x35f)]))[_0x35fc6e(0x492)](_0x1dfb80=>{const _0x42313b=_0x35fc6e;_0x1dfb80===W['ONLINE']?this[_0x42313b(0x1e0)]():this[_0x42313b(0x435)]();}),this[_0x35fc6e(0x3e8)][_0x35fc6e(0x255)]['pipe'](g[_0x35fc6e(0x436)](this[_0x35fc6e(0x35f)]))['subscribe'](_0x460765=>{const _0x4ce3e9=_0x35fc6e,_0x311399=_0x460765[_0x4ce3e9(0x428)];_0x311399===u[_0x4ce3e9(0x3fe)][_0x4ce3e9(0x4e1)]&&this[_0x4ce3e9(0x4b7)](_0x460765),_0x311399===u[_0x4ce3e9(0x3fe)][_0x4ce3e9(0x177)]&&this[_0x4ce3e9(0x213)](_0x460765);}),this[_0x35fc6e(0x1e9)](this['_commandService'][_0x35fc6e(0x43e)](_0x424113=>{const _0x184f97=_0x35fc6e,_0x413e97=_0x424113[_0x184f97(0x17b)];_0x413e97!=null&&this['_online']&&_0x424113['id']===M[_0x184f97(0x2f6)]['id']&&_0x413e97[_0x184f97(0x21a)]===this[_0x184f97(0x348)]&&_0x413e97[_0x184f97(0x368)]===!0x1&&this['_updateLocalCursor'](_0x413e97[_0x184f97(0x29d)]);})),this[_0x35fc6e(0x496)][_0x35fc6e(0x495)]['pipe'](g[_0x35fc6e(0x436)](this[_0x35fc6e(0x35f)]))[_0x35fc6e(0x492)](_0x43ba6d=>{const _0x3fceea=_0x35fc6e;if((_0x43ba6d==null?void 0x0:_0x43ba6d[_0x3fceea(0x348)])!==this[_0x3fceea(0x348)])return;const _0x504a78={'eventID':u[_0x3fceea(0x3fe)][_0x3fceea(0x4e1)],'data':_0x43ba6d};this['_onCursorUpdate'](_0x504a78);}),this[_0x35fc6e(0x1e9)](this[_0x35fc6e(0x188)][_0x35fc6e(0x43e)](_0x3d5029=>{const _0x3e67ad=_0x35fc6e;if(_0x3d5029[_0x3e67ad(0x17b)]==null)return;const _0x36488a=_0x3d5029['params'];if(_0x3d5029['id']!==M[_0x3e67ad(0x30f)]['id']||_0x36488a['unitId']!==this[_0x3e67ad(0x348)])return;const _0x40b55d={'id':'doc.mutation.rich-text-editing','params':_0x36488a},_0x2ecf70=this[_0x3e67ad(0x37b)];for(const [_0x35ad7b,_0x35d1a9]of _0x2ecf70){const _0xf50551={'id':_0x3e67ad(0x1a1),'params':{'unitId':this[_0x3e67ad(0x348)],'actions':null,'textRanges':_0x35d1a9[_0x3e67ad(0x29d)]}},_0x2705b0=this[_0x3e67ad(0x2f1)][_0x3e67ad(0x412)](_0x40b55d,_0xf50551,!0x1);if(u[_0x3e67ad(0x231)](_0x2705b0))throw _0x2705b0['error'];_0x2ecf70[_0x3e67ad(0x2e0)](_0x35ad7b,{..._0x35d1a9,'ranges':_0x2705b0[_0x3e67ad(0x2c7)][_0x3e67ad(0x17b)][_0x3e67ad(0x461)]});}queueMicrotask(()=>{const _0x1cdcf5=_0x3e67ad;this[_0x1cdcf5(0x210)][_0x1cdcf5(0x414)](_0x2ecf70);});})));}[_0x53b42f(0x4b7)](_0x429c70){const _0x1fa056=_0x53b42f;var _0x4c8f31,_0x358530;const {memberID:_0x1e22d7,selection:_0x3d8893}=_0x429c70['data'],_0x14672f=fs(_0x3d8893),_0x5c3e57=(_0x358530=(_0x4c8f31=this[_0x1fa056(0x4ae)][_0x1fa056(0x4b5)](this[_0x1fa056(0x348)],_0x1e22d7))==null?void 0x0:_0x4c8f31[_0x1fa056(0x462)])!=null?_0x358530:'Unknown\x20user',_0x348fb9={'color':this['_colorAssignService'][_0x1fa056(0x410)](_0x1e22d7),'name':_0x5c3e57,'ranges':_0x14672f},_0x29759b=this[_0x1fa056(0x37b)];_0x29759b[_0x1fa056(0x2e0)](_0x1e22d7,_0x348fb9),this[_0x1fa056(0x210)]['next'](_0x29759b);}[_0x53b42f(0x213)](_0x2bb035){const _0x506aec=_0x53b42f,{memberID:_0x3b26e5}=_0x2bb035[_0x506aec(0x169)],_0x5b971f=this[_0x506aec(0x37b)];_0x5b971f[_0x506aec(0x35b)](_0x3b26e5),this[_0x506aec(0x210)]['next'](_0x5b971f);}[_0x53b42f(0x1e0)](){const _0x3a9467=_0x53b42f;var _0x38280f;if(this[_0x3a9467(0x4e5)]=!0x0,((_0x38280f=this[_0x3a9467(0x49a)]['getFocusedUnit']())==null?void 0x0:_0x38280f['getUnitId']())!==this[_0x3a9467(0x348)])return;const _0xd91035=this[_0x3a9467(0x45d)][_0x3a9467(0x3d4)](M[_0x3a9467(0x1de)])[_0x3a9467(0x369)](),_0xc21f15=_0xd91035==null?void 0x0:_0xd91035['map'](M[_0x3a9467(0x453)]);Array[_0x3a9467(0x4af)](_0xc21f15)&&_0xc21f15[_0x3a9467(0x419)]>0x0&&this[_0x3a9467(0x3d0)](_0xc21f15);}[_0x53b42f(0x435)](){const _0x27a77d=_0x53b42f;this[_0x27a77d(0x4e5)]=!0x1;}};Ne=js([V(0x2,h[_0x53b42f(0x295)](h[_0x53b42f(0x1ac)])),V(0x3,h['Inject'](Ve)),V(0x4,h['Inject'](G)),V(0x5,h[_0x53b42f(0x295)](Fe)),V(0x6,u[_0x53b42f(0x25a)]),V(0x7,a[_0x53b42f(0x390)]),V(0x8,a[_0x53b42f(0x1c5)])],Ne);var xs=Object[_0x53b42f(0x38a)],ks=Object[_0x53b42f(0x2a8)],Bs=(_0x3fff50,_0x38b43b,_0x2d6049,_0x41771a)=>{const _0x4e5781=_0x53b42f;for(var _0x3346af=_0x41771a>0x1?void 0x0:_0x41771a?ks(_0x38b43b,_0x2d6049):_0x38b43b,_0x1cfaf1=_0x3fff50[_0x4e5781(0x419)]-0x1,_0x44e95e;_0x1cfaf1>=0x0;_0x1cfaf1--)(_0x44e95e=_0x3fff50[_0x1cfaf1])&&(_0x3346af=(_0x41771a?_0x44e95e(_0x38b43b,_0x2d6049,_0x3346af):_0x44e95e(_0x3346af))||_0x3346af);return _0x41771a&&_0x3346af&&xs(_0x38b43b,_0x2d6049,_0x3346af),_0x3346af;},Oe=(_0x43d041,_0x5c8043)=>(_0x4a7c65,_0x186e94)=>_0x5c8043(_0x4a7c65,_0x186e94,_0x43d041);let J=class extends a[_0x53b42f(0x3a5)]{constructor(_0x3ff22c,_0x413195,_0x2299c8){const _0x5fc640=_0x53b42f;super(),d(this,'_entities',new Map()),d(this,_0x5fc640(0x44d),new g[(_0x5fc640(0x298))]()),(this[_0x5fc640(0x49a)]=_0x3ff22c,this['_injector']=_0x413195,this[_0x5fc640(0x44f)]=_0x2299c8,this[_0x5fc640(0x243)]());}[_0x53b42f(0x4df)](){const _0x4eed34=_0x53b42f;super[_0x4eed34(0x4df)](),this[_0x4eed34(0x44d)][_0x4eed34(0x146)](),this['_entities'][_0x4eed34(0x421)](_0x3f1532=>_0x3f1532[_0x4eed34(0x4df)]());}[_0x53b42f(0x4d9)](_0x5e82a9){const _0x209fb3=_0x53b42f;return this['_entities']['has'](_0x5e82a9)?this['_entities']['get'](_0x5e82a9)[_0x209fb3(0x199)]:this['_entityInit$'][_0x209fb3(0x454)](g['filter'](_0x3aecf8=>_0x3aecf8[_0x209fb3(0x348)]===_0x5e82a9),g[_0x209fb3(0x178)](_0x7606e0=>_0x7606e0[_0x209fb3(0x199)]));}[_0x53b42f(0x243)](){const _0x5644c8=_0x53b42f;this[_0x5644c8(0x49a)][_0x5644c8(0x4b6)](a[_0x5644c8(0x142)]['UNIVER_SHEET'])[_0x5644c8(0x454)](g[_0x5644c8(0x436)](this[_0x5644c8(0x35f)]))['subscribe'](async _0x43b221=>{const _0x3ffd01=_0x5644c8,_0xd13fea=_0x43b221[_0x3ffd01(0x1f9)](),_0x14a7be=await this[_0x3ffd01(0x455)](_0xd13fea);this['_entityInit$'][_0x3ffd01(0x414)](_0x14a7be),this[_0x3ffd01(0x372)][_0x3ffd01(0x2e0)](_0xd13fea,_0x14a7be);}),this[_0x5644c8(0x49a)][_0x5644c8(0x4b6)](a['UniverInstanceType'][_0x5644c8(0x220)])[_0x5644c8(0x454)](g[_0x5644c8(0x436)](this[_0x5644c8(0x35f)]))[_0x5644c8(0x454)](g[_0x5644c8(0x2f0)](_0x359267=>!_0x359267[_0x5644c8(0x1f9)]()[_0x5644c8(0x19e)]('__')))[_0x5644c8(0x492)](async _0x2d26bd=>{const _0xd245c1=_0x5644c8,_0x10de9b=_0x2d26bd['getUnitId'](),_0x254599=await this[_0xd245c1(0x2c0)](_0x10de9b);this[_0xd245c1(0x44d)]['next'](_0x254599),this[_0xd245c1(0x372)]['set'](_0x10de9b,_0x254599);}),g[_0x5644c8(0x221)](this[_0x5644c8(0x49a)][_0x5644c8(0x160)](a[_0x5644c8(0x142)][_0x5644c8(0x220)]),this[_0x5644c8(0x49a)][_0x5644c8(0x160)](a['UniverInstanceType'][_0x5644c8(0x164)]))[_0x5644c8(0x454)](g[_0x5644c8(0x436)](this[_0x5644c8(0x35f)]))['subscribe'](_0x4e7649=>{const _0x169f25=_0x5644c8,_0x5ed61f=_0x4e7649[_0x169f25(0x1f9)](),_0x3f1864=this[_0x169f25(0x372)][_0x169f25(0x3d4)](_0x5ed61f);_0x3f1864&&(_0x3f1864[_0x169f25(0x4df)](),this[_0x169f25(0x372)][_0x169f25(0x35b)](_0x5ed61f));});}async['_startSheetCollabCursor'](_0x13f508){const _0x3eb0b3=_0x53b42f,_0x533739=await this['_collabSessionService'][_0x3eb0b3(0x386)](_0x13f508),_0x1e0d7c=this[_0x3eb0b3(0x45d)][_0x3eb0b3(0x477)](Me,_0x13f508,_0x533739);return _0x1e0d7c[_0x3eb0b3(0x433)](),_0x1e0d7c;}async[_0x53b42f(0x2c0)](_0x5afe23){const _0x1b9a8b=_0x53b42f,_0xb850bc=await this[_0x1b9a8b(0x44f)]['requireSession'](_0x5afe23),_0xe4c2cc=this[_0x1b9a8b(0x45d)][_0x1b9a8b(0x477)](Ne,_0x5afe23,_0xb850bc);return _0xe4c2cc[_0x1b9a8b(0x433)](),_0xe4c2cc;}};J=Bs([a['OnLifecycle'](a[_0x53b42f(0x2e2)][_0x53b42f(0x157)],J),Oe(0x0,a[_0x53b42f(0x390)]),Oe(0x1,h[_0x53b42f(0x295)](h[_0x53b42f(0x1ac)])),Oe(0x2,h[_0x53b42f(0x295)](exports[_0x53b42f(0x14a)]))],J);const ce=0x14,tt=0xc8,De=0x4,Fs=0x5;function Vs(_0x46a14a,_0x3839d7){const _0x265611=_0x53b42f;let {radius:_0x231f12,width:_0x572795,height:_0x3b7a39}=_0x3839d7;_0x231f12=_0x231f12!=null?_0x231f12:0x0,_0x572795=_0x572795!=null?_0x572795:0x1e,_0x3b7a39=_0x3b7a39!=null?_0x3b7a39:0x1e;let _0x221b10=0x0,_0x3a0c05=0x0,_0x4f5225=0x0;_0x221b10=_0x3a0c05=_0x4f5225=Math['min'](_0x231f12,_0x572795/0x2,_0x3b7a39/0x2),_0x46a14a['beginPath'](),_0x46a14a['moveTo'](_0x221b10,0x0),_0x46a14a['lineTo'](_0x572795-_0x3a0c05,0x0),_0x46a14a['arc'](_0x572795-_0x3a0c05,_0x3a0c05,_0x3a0c05,Math['PI']*0x3/0x2,0x0,!0x1),_0x46a14a['lineTo'](_0x572795,_0x3b7a39-_0x4f5225),_0x46a14a[_0x265611(0x35a)](_0x572795-_0x4f5225,_0x3b7a39-_0x4f5225,_0x4f5225,0x0,Math['PI']/0x2,!0x1),_0x46a14a[_0x265611(0x1fb)](0x0,_0x3b7a39),_0x46a14a[_0x265611(0x1fb)](0x0,_0x221b10),_0x46a14a[_0x265611(0x35a)](_0x221b10,_0x221b10,_0x221b10,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x46a14a[_0x265611(0x1a3)](),_0x3839d7[_0x265611(0x347)]&&(_0x46a14a['save'](),_0x46a14a['fillStyle']=_0x3839d7['fill'],_0x3839d7[_0x265611(0x4e2)]===_0x265611(0x49c)?_0x46a14a[_0x265611(0x347)](_0x265611(0x49c)):_0x46a14a[_0x265611(0x347)](),_0x46a14a[_0x265611(0x2cf)]());}class Ce extends R[_0x53b42f(0x1e2)]{constructor(_0x593c10,_0x529977){const _0x2d215d=_0x53b42f;super(_0x593c10,_0x529977),d(this,_0x2d215d(0x2f4)),d(this,_0x2d215d(0x1fd)),(this[_0x2d215d(0x2f4)]=_0x529977==null?void 0x0:_0x529977['color'],this[_0x2d215d(0x1fd)]=_0x529977==null?void 0x0:_0x529977['text']);}static[_0x53b42f(0x2e5)](_0x950eb6,_0x35a959){const _0x232ac4=_0x53b42f,{text:_0x1fc990,color:_0x29c153}=_0x35a959;_0x950eb6['save'](),_0x950eb6['font']=_0x232ac4(0x26b);const _0x183a52=_0x950eb6[_0x232ac4(0x394)](_0x1fc990)[_0x232ac4(0x270)],_0x345898=Math[_0x232ac4(0x3d6)](_0x183a52+0x2*De,tt);Vs(_0x950eb6,{'height':ce,'radius':0x4,'width':_0x345898,'fill':_0x29c153,'evented':!0x1}),_0x950eb6[_0x232ac4(0x43a)]=_0x232ac4(0x3e1);const _0x1f763f=De,_0x1c3626=ce-Fs,_0x4ec894=tt-0x2*De;if(_0x183a52>_0x4ec894){let _0x51fa75='',_0x1a30b2=0x0;for(const _0x363ba7 of _0x1fc990){const _0x265d09=_0x950eb6['measureText'](_0x363ba7)[_0x232ac4(0x270)];if(_0x1a30b2+_0x265d09<=_0x4ec894-_0x950eb6['measureText'](_0x232ac4(0x41c))[_0x232ac4(0x270)])_0x51fa75+=_0x363ba7,_0x1a30b2+=_0x265d09;else{_0x51fa75+=_0x232ac4(0x41c);break;}}_0x950eb6[_0x232ac4(0x175)](_0x51fa75,_0x1f763f,_0x1c3626);}else _0x950eb6[_0x232ac4(0x175)](_0x1fc990,_0x1f763f,_0x1c3626);_0x950eb6[_0x232ac4(0x2cf)]();}[_0x53b42f(0x16d)](_0x1e102c){Ce['drawWith'](_0x1e102c,this);}}const Ws=0x1,Gs=1.5;class Ys extends R[_0x53b42f(0x1e2)]{constructor(_0x37d48f,_0x11a8c1){const _0x1616ce=_0x53b42f;super(_0x37d48f,_0x11a8c1),d(this,_0x1616ce(0x27a)),d(this,_0x1616ce(0x1d1),!0x1),d(this,'_range'),d(this,_0x1616ce(0x2b9),''),d(this,_0x1616ce(0x1bc),_0x1616ce(0x3f5)),(_0x11a8c1&&this['setShapeProps'](_0x11a8c1),this[_0x1616ce(0x206)][_0x1616ce(0x1e5)](()=>this[_0x1616ce(0x393)]({'hovered':!0x0})),this[_0x1616ce(0x3b5)][_0x1616ce(0x1e5)](()=>this[_0x1616ce(0x393)]({'hovered':!0x1})));}[_0x53b42f(0x393)](_0x245249){const _0x551d8e=_0x53b42f;var _0xbf02c9,_0x2613b9,_0x11f465,_0x5951ed,_0x113eca;this[_0x551d8e(0x27a)]=(_0xbf02c9=_0x245249[_0x551d8e(0x2f4)])!=null?_0xbf02c9:this[_0x551d8e(0x27a)],this[_0x551d8e(0x1d1)]=(_0x2613b9=_0x245249[_0x551d8e(0x46d)])!=null?_0x2613b9:this[_0x551d8e(0x1d1)],this[_0x551d8e(0x3a3)]=(_0x11f465=_0x245249['range'])!=null?_0x11f465:this[_0x551d8e(0x3a3)],this['_name']=(_0x5951ed=_0x245249[_0x551d8e(0x462)])!=null?_0x5951ed:this[_0x551d8e(0x2b9)],this[_0x551d8e(0x1bc)]=(_0x113eca=_0x245249[_0x551d8e(0x366)])!=null?_0x113eca:this['_labelPosition'],this[_0x551d8e(0x15d)]({'width':_0x245249[_0x551d8e(0x270)],'height':_0x245249[_0x551d8e(0x148)]});}['onMouseMove'](_0x4fd0f6){const _0x58e526=_0x53b42f,{row:_0x37857d,column:_0x52776c}=_0x4fd0f6;if(_0x37857d>=this[_0x58e526(0x3a3)]['startRow']&&_0x37857d<=this[_0x58e526(0x3a3)][_0x58e526(0x1a0)]&&_0x52776c>=this[_0x58e526(0x3a3)][_0x58e526(0x4e3)]&&_0x52776c<=this[_0x58e526(0x3a3)][_0x58e526(0x354)]){this[_0x58e526(0x393)]({'hovered':!0x0});return;}this[_0x58e526(0x393)]({'hovered':!0x1});}['triggerDblclick'](_0x2d8cf2){return!0x1;}[_0x53b42f(0x16d)](_0x1682c2){const _0x123143=_0x53b42f;R[_0x123143(0x184)][_0x123143(0x2e5)](_0x1682c2,{'width':this[_0x123143(0x270)],'height':this[_0x123143(0x148)],'strokeWidth':Gs,'stroke':this['_color'],'evented':!0x1}),this[_0x123143(0x1d1)]&&(_0x1682c2['save'](),_0x1682c2[_0x123143(0x404)](0x1,0x0,0x0,0x1,this[_0x123143(0x270)],this['_labelPosition']===_0x123143(0x473)?0x0:-ce),Ce[_0x123143(0x2e5)](_0x1682c2,{'text':this[_0x123143(0x2b9)],'color':this['_color']}),_0x1682c2[_0x123143(0x2cf)]());}}var Ks=Object[_0x53b42f(0x38a)],Xs=Object[_0x53b42f(0x2a8)],qs=(_0x29b75c,_0x5b685f,_0xaa602b,_0x402353)=>{const _0x4d2173=_0x53b42f;for(var _0x14acad=_0x402353>0x1?void 0x0:_0x402353?Xs(_0x5b685f,_0xaa602b):_0x5b685f,_0x1d834a=_0x29b75c[_0x4d2173(0x419)]-0x1,_0x3f121f;_0x1d834a>=0x0;_0x1d834a--)(_0x3f121f=_0x29b75c[_0x1d834a])&&(_0x14acad=(_0x402353?_0x3f121f(_0x5b685f,_0xaa602b,_0x14acad):_0x3f121f(_0x14acad))||_0x14acad);return _0x402353&&_0x14acad&&Ks(_0x5b685f,_0xaa602b,_0x14acad),_0x14acad;},le=(_0x38104d,_0x4e6261)=>(_0x4c8c26,_0x2e7449)=>_0x4e6261(_0x4c8c26,_0x2e7449,_0x38104d);const zs=0x1389;let ue=class extends a[_0x53b42f(0x3a5)]{constructor(_0x21893e,_0x50c9a4,_0x2304f4,_0x213b0c){const _0x238d2c=_0x53b42f;super(),d(this,_0x238d2c(0x3a6),new Set()),d(this,'_lastPointer',null),(this[_0x238d2c(0x491)]=_0x21893e,this[_0x238d2c(0x49a)]=_0x50c9a4,this[_0x238d2c(0x198)]=_0x2304f4,this[_0x238d2c(0x48a)]=_0x213b0c,this['_init']());}get[_0x53b42f(0x46f)](){const _0x47bab9=_0x53b42f;return this[_0x47bab9(0x198)][_0x47bab9(0x3c5)](this['_univerInstanceService'][_0x47bab9(0x171)](a['UniverInstanceType'][_0x47bab9(0x164)])['getUnitId']())[_0x47bab9(0x23d)](ee[_0x47bab9(0x425)]);}get['_unitId'](){const _0x42d389=_0x53b42f;return this['_univerInstanceService']['getCurrentUnitForType'](a[_0x42d389(0x142)][_0x42d389(0x164)])[_0x42d389(0x1f9)]();}['_init'](){const _0x5f1029=_0x53b42f;this[_0x5f1029(0x46f)][_0x5f1029(0x326)][_0x5f1029(0x454)](T['takeUntil'](this[_0x5f1029(0x35f)]),T[_0x5f1029(0x178)](_0x1ab439=>{const _0x49cf32=_0x5f1029;if(_0x1ab439){const _0xf27e6=_0x1ab439[_0x49cf32(0x37f)];return g[_0x49cf32(0x165)](this[_0x49cf32(0x491)][_0x49cf32(0x4d9)](this['_unitId']),this[_0x49cf32(0x48a)][_0x49cf32(0x3b6)])[_0x49cf32(0x454)](T[_0x49cf32(0x1af)](([_0x55c411,_0x4bd4e8])=>{const _0x2d24fb=new Map();return _0x55c411['forEach']((_0x2c52e1,_0x491f66)=>{const _0x50ba11=_0xe052;if(_0x2c52e1['sheetID']===_0xf27e6){const _0x5e6374={..._0x2c52e1};_0x5e6374[_0x50ba11(0x2f4)]=_0x4bd4e8[_0x2c52e1[_0x50ba11(0x2f4)]],_0x2d24fb[_0x50ba11(0x2e0)](_0x491f66,_0x5e6374);}}),{'skeleton':_0x1ab439,'cursors':_0x2d24fb};}));}return g['of']({'skeleton':null,'cursors':new Map()});}))[_0x5f1029(0x492)](({skeleton:_0x4a35c6,cursors:_0x58f3f2})=>{const _0x1e0f56=_0x5f1029;this['_removeCollabCursors'](),_0x4a35c6&&this[_0x1e0f56(0x398)](_0x4a35c6,_0x58f3f2);}),this[_0x5f1029(0x46f)][_0x5f1029(0x326)]['subscribe'](_0x53d16e=>{const _0x1628a4=_0x5f1029;if(_0x53d16e==null)return;const {skeleton:_0x6e0d80}=_0x53d16e,_0x8aa9b8=this[_0x1628a4(0x198)][_0x1628a4(0x3c5)](this[_0x1628a4(0x1ea)]),{scene:_0xcabd36}=_0x8aa9b8;_0xcabd36['onPointerMoveObserver'][_0x1628a4(0x1e5)](He(_0xf6491=>{const _0x5b2f1a=_0x1628a4;var _0x1055e2,_0x3d5906;const {offsetX:_0x1bb417,offsetY:_0x59793e}=_0xf6491,{x:_0x16497b,y:_0x5a3cc7}=_0xcabd36[_0x5b2f1a(0x483)](R[_0x5b2f1a(0x4bb)]['FromArray']([_0x1bb417,_0x59793e])),{scaleX:_0x50d44c,scaleY:_0x29f600}=_0xcabd36[_0x5b2f1a(0x1e6)](),_0x439467=_0xcabd36[_0x5b2f1a(0x2f5)](ee['VIEWPORT_KEY'][_0x5b2f1a(0x4d3)]),_0x1e6c46=_0xcabd36['getScrollXYByRelativeCoords'](R[_0x5b2f1a(0x4bb)][_0x5b2f1a(0x3c4)]([_0x16497b,_0x5a3cc7]),_0x439467),_0xcf5404=_0x6e0d80['getCellPositionByOffset'](_0x1bb417,_0x59793e,_0x50d44c,_0x29f600,_0x1e6c46);((_0x1055e2=this[_0x5b2f1a(0x1da)])==null?void 0x0:_0x1055e2['column'])===_0xcf5404['column']&&((_0x3d5906=this[_0x5b2f1a(0x1da)])==null?void 0x0:_0x3d5906['row'])===_0xcf5404[_0x5b2f1a(0x145)]||this['_cursors'][_0x5b2f1a(0x421)](_0x5ea2e9=>{const _0x3a01cd=_0x5b2f1a;_0x5ea2e9[_0x3a01cd(0x22b)](_0xcf5404);});},0x64));});}[_0x53b42f(0x398)](_0x2e1cfe,_0xe0a945){const _0x36e516=_0x53b42f;var _0x40f768;const _0x4cdef1=(_0x40f768=this[_0x36e516(0x46f)]['getCurrent']())==null?void 0x0:_0x40f768[_0x36e516(0x159)];if(!_0x4cdef1)return;const _0x30dc43=this[_0x36e516(0x239)]();if(!_0x30dc43)return;this[_0x36e516(0x3a6)][_0x36e516(0x421)](_0x2a931a=>{const _0x54d90f=_0x36e516;_0x2a931a[_0x54d90f(0x361)]();});const {scene:_0x5460d7}=_0x30dc43,_0x38b998=Js(Array[_0x36e516(0x2c5)](_0xe0a945[_0x36e516(0x4d7)]()))[_0x36e516(0x1af)](_0x294a9f=>{const _0x9f26bc=_0x36e516,{color:_0x1784ed,range:_0x5c4420,name:_0x7e6bee,selection:_0x16007d,sheetID:_0x26f74a}=_0x294a9f,{startColumn:_0x30f066,startRow:_0x57629a,endColumn:_0x132ea7,endRow:_0x3faf2b}=_0x5c4420,_0x176fda=ee[_0x9f26bc(0x18f)](_0x57629a,_0x30f066,_0x5460d7,_0x4cdef1),_0x27c817=ee[_0x9f26bc(0x18f)](_0x3faf2b,_0x132ea7,_0x5460d7,_0x4cdef1),{columnHeaderHeightAndMarginTop:_0xbe28e2}=_0x4cdef1,{startX:_0x1efcaf,startY:_0x415d37}=_0x176fda,{endX:_0x3c159b,endY:_0x2282e2}=_0x27c817,_0xf406d0=_0x3c159b-_0x1efcaf,_0x436225=_0x2282e2-_0x415d37,_0x4d9851={'labelPosition':_0x415d37-_0xbe28e2>=ce?'top':_0x9f26bc(0x473),'sheetID':_0x26f74a,'range':_0x5c4420,'color':_0x1784ed,'name':_0x7e6bee,'selection':_0x16007d,'left':_0x1efcaf,'top':_0x415d37,'width':_0xf406d0,'height':_0x436225,'evented':!0x1,'zIndex':zs};return new Ys(_0x7e6bee,_0x4d9851);});_0x5460d7['addObjects'](_0x38b998,Ws),this[_0x36e516(0x3a6)]=new Set(_0x38b998);}[_0x53b42f(0x380)](){const _0x5be823=_0x53b42f;var _0x2e0874;(_0x2e0874=this['_cursors'])==null||_0x2e0874['forEach'](_0x4a85f0=>_0x4a85f0[_0x5be823(0x4df)]());}[_0x53b42f(0x239)](){const _0x32b756=_0x53b42f;return ee[_0x32b756(0x297)](this[_0x32b756(0x49a)],this[_0x32b756(0x198)]);}};ue=qs([a[_0x53b42f(0x13b)](a[_0x53b42f(0x2e2)][_0x53b42f(0x353)],ue),le(0x0,h['Inject'](J)),le(0x1,a[_0x53b42f(0x390)]),le(0x2,R[_0x53b42f(0x4a5)]),le(0x3,h[_0x53b42f(0x295)](a[_0x53b42f(0x1e8)]))],ue);function Js(_0x1d6a69){const _0x383f1f=_0x53b42f,_0x3883e3=new Map();return _0x1d6a69[_0x383f1f(0x421)](_0x163cbb=>{const _0x2fdb14=_0x383f1f;if(_0x3883e3[_0x2fdb14(0x378)](_0x163cbb['selection'])){const _0xf6c95e=_0x3883e3['get'](_0x163cbb[_0x2fdb14(0x27d)]);_0xf6c95e['name']+=',\x20'+_0x163cbb[_0x2fdb14(0x462)];}else _0x3883e3[_0x2fdb14(0x2e0)](_0x163cbb['selection'],_0x163cbb);}),Array[_0x383f1f(0x2c5)](_0x3883e3['values']());}var y=function(){const _0x380813=_0x53b42f;return y=Object[_0x380813(0x2a9)]||function(_0x1b1f7e){const _0x30a885=_0x380813;for(var _0x49504a,_0x759790=0x1,_0x35a5fa=arguments[_0x30a885(0x419)];_0x759790<_0x35a5fa;_0x759790++){_0x49504a=arguments[_0x759790];for(var _0x220f6b in _0x49504a)Object['prototype']['hasOwnProperty'][_0x30a885(0x3f4)](_0x49504a,_0x220f6b)&&(_0x1b1f7e[_0x220f6b]=_0x49504a[_0x220f6b]);}return _0x1b1f7e;},y['apply'](this,arguments);},Zs=function(_0x5ce90c,_0x1cc590){const _0xc6c34e=_0x53b42f;var _0x36d50b={};for(var _0x411d1a in _0x5ce90c)Object[_0xc6c34e(0x135)][_0xc6c34e(0x185)][_0xc6c34e(0x3f4)](_0x5ce90c,_0x411d1a)&&_0x1cc590[_0xc6c34e(0x303)](_0x411d1a)<0x0&&(_0x36d50b[_0x411d1a]=_0x5ce90c[_0x411d1a]);if(_0x5ce90c!=null&&typeof Object[_0xc6c34e(0x4ab)]=='function'){for(var _0x1893f6=0x0,_0x411d1a=Object[_0xc6c34e(0x4ab)](_0x5ce90c);_0x1893f6<_0x411d1a[_0xc6c34e(0x419)];_0x1893f6++)_0x1cc590['indexOf'](_0x411d1a[_0x1893f6])<0x0&&Object[_0xc6c34e(0x135)]['propertyIsEnumerable'][_0xc6c34e(0x3f4)](_0x5ce90c,_0x411d1a[_0x1893f6])&&(_0x36d50b[_0x411d1a[_0x1893f6]]=_0x5ce90c[_0x411d1a[_0x1893f6]]);}return _0x36d50b;},We=L['forwardRef'](function(_0x1c27b1,_0x3b9d17){const _0x2ce2b5=_0x53b42f;var _0x24af22=_0x1c27b1[_0x2ce2b5(0x23c)],_0x45400b=_0x1c27b1['id'],_0x42e6c0=_0x1c27b1['className'],_0x47d4c1=_0x1c27b1[_0x2ce2b5(0x472)],_0x515a02=Zs(_0x1c27b1,[_0x2ce2b5(0x23c),'id',_0x2ce2b5(0x457),_0x2ce2b5(0x472)]),_0x4106b3=_0x2ce2b5(0x1b8)['concat'](_0x45400b,'\x20')[_0x2ce2b5(0x317)](_0x42e6c0||'')[_0x2ce2b5(0x283)](),_0x107328=L[_0x2ce2b5(0x407)]('_'[_0x2ce2b5(0x317)](ti()));return Tt(_0x24af22,''['concat'](_0x45400b),{'defIds':_0x24af22['defIds'],'idSuffix':_0x107328[_0x2ce2b5(0x403)]},y({'ref':_0x3b9d17,'className':_0x4106b3},_0x515a02),_0x47d4c1);});function Tt(_0x3970bd,_0x472a11,_0x1a197b,_0x1583f9,_0x3c02c0){const _0x1e3582=_0x53b42f;return L['createElement'](_0x3970bd['tag'],y(y({'key':_0x472a11},Qs(_0x3970bd,_0x1a197b,_0x3c02c0)),_0x1583f9),(ei(_0x3970bd,_0x1a197b)[_0x1e3582(0x416)]||[])[_0x1e3582(0x1af)](function(_0x1c8b01,_0x1c6e45){const _0x4de65c=_0x1e3582;return Tt(_0x1c8b01,''['concat'](_0x472a11,'-')[_0x4de65c(0x317)](_0x3970bd[_0x4de65c(0x25b)],'-')[_0x4de65c(0x317)](_0x1c6e45),_0x1a197b,void 0x0,_0x3c02c0);}));}function Qs(_0x1b928d,_0x37f701,_0x37cd35){const _0x5d7b60=_0x53b42f;var _0x552c77=y({},_0x1b928d[_0x5d7b60(0x204)]);_0x37cd35!=null&&_0x37cd35[_0x5d7b60(0x3c6)]&&_0x552c77[_0x5d7b60(0x347)]===_0x5d7b60(0x3c6)&&(_0x552c77[_0x5d7b60(0x347)]=_0x37cd35[_0x5d7b60(0x3c6)]);var _0x3d860b=_0x37f701[_0x5d7b60(0x1c3)];return!_0x3d860b||_0x3d860b[_0x5d7b60(0x419)]===0x0||(_0x1b928d[_0x5d7b60(0x25b)]===_0x5d7b60(0x40b)&&_0x552c77[_0x5d7b60(0x4a4)]&&(_0x552c77[_0x5d7b60(0x4a4)]=_0x552c77[_0x5d7b60(0x4a4)]+_0x37f701[_0x5d7b60(0x343)]),Object['entries'](_0x552c77)['forEach'](function(_0x127800){const _0x2271d3=_0x5d7b60;var _0x504460=_0x127800[0x0],_0x16e39d=_0x127800[0x1];typeof _0x16e39d=='string'&&(_0x552c77[_0x504460]=_0x16e39d[_0x2271d3(0x153)](/url\(#(.*)\)/,_0x2271d3(0x3ae)[_0x2271d3(0x317)](_0x37f701[_0x2271d3(0x343)],')')));})),_0x552c77;}function ei(_0x30d538,_0x4e4c2c){const _0x5b3b0f=_0x53b42f;var _0x40713f,_0x6756bb=_0x4e4c2c[_0x5b3b0f(0x1c3)];return!_0x6756bb||_0x6756bb[_0x5b3b0f(0x419)]===0x0?_0x30d538:_0x30d538[_0x5b3b0f(0x25b)]===_0x5b3b0f(0x1ab)&&(!((_0x40713f=_0x30d538[_0x5b3b0f(0x416)])===null||_0x40713f===void 0x0)&&_0x40713f['length'])?y(y({},_0x30d538),{'children':_0x30d538[_0x5b3b0f(0x416)][_0x5b3b0f(0x1af)](function(_0x24bbc0){const _0x2251f9=_0x5b3b0f;return typeof _0x24bbc0[_0x2251f9(0x204)]['id']==_0x2251f9(0x44e)&&_0x6756bb&&_0x6756bb[_0x2251f9(0x303)](_0x24bbc0['attrs']['id'])>-0x1?y(y({},_0x24bbc0),{'attrs':y(y({},_0x24bbc0[_0x2251f9(0x204)]),{'id':_0x24bbc0[_0x2251f9(0x204)]['id']+_0x4e4c2c[_0x2251f9(0x343)]})}):_0x24bbc0;})}):_0x30d538;}function ti(){const _0x27577a=_0x53b42f;return Math[_0x27577a(0x27c)]()[_0x27577a(0x423)](0x24)[_0x27577a(0x2cd)](0x2,0x8);}We[_0x53b42f(0x25d)]=_0x53b42f(0x3b4);var si={'tag':'svg','attrs':{'fill':_0x53b42f(0x381),'viewBox':_0x53b42f(0x235),'width':_0x53b42f(0x137),'height':_0x53b42f(0x137)},'children':[{'tag':'g','attrs':{'clipPath':_0x53b42f(0x43d)},'children':[{'tag':_0x53b42f(0x490),'attrs':{'stroke':_0x53b42f(0x32c),'d':_0x53b42f(0x238),'strokeLinecap':_0x53b42f(0x192),'strokeLinejoin':_0x53b42f(0x192),'strokeWidth':1.2}}]},{'tag':_0x53b42f(0x1ab),'attrs':{},'children':[{'tag':_0x53b42f(0x264),'attrs':{'id':_0x53b42f(0x447)},'children':[{'tag':_0x53b42f(0x490),'attrs':{'fill':_0x53b42f(0x4b8),'d':_0x53b42f(0x375)}}]}]}],'defIds':['off-line-single_clip0_910_343']},Rt=L['forwardRef'](function(_0xbe4ead,_0x45c64c){const _0x1451ed=_0x53b42f;return L['createElement'](We,Object[_0x1451ed(0x2a9)]({},_0xbe4ead,{'id':'off-line-single','ref':_0x45c64c,'icon':si}));});Rt[_0x53b42f(0x25d)]=_0x53b42f(0x3cd);var ii={'tag':_0x53b42f(0x32b),'attrs':{'fill':_0x53b42f(0x381),'viewBox':'0\x200\x2017\x2016','width':_0x53b42f(0x137),'height':_0x53b42f(0x137)},'children':[{'tag':'g','attrs':{'clipPath':_0x53b42f(0x186)},'children':[{'tag':_0x53b42f(0x490),'attrs':{'stroke':_0x53b42f(0x32c),'d':_0x53b42f(0x1b7),'strokeLinecap':'round','strokeLinejoin':_0x53b42f(0x192),'strokeWidth':1.2}}]},{'tag':'defs','attrs':{},'children':[{'tag':_0x53b42f(0x264),'attrs':{'id':_0x53b42f(0x494)},'children':[{'tag':_0x53b42f(0x490),'attrs':{'fill':_0x53b42f(0x4b8),'d':'M0\x200H16V16H0z','transform':'translate(.97)'}}]}]}],'defIds':[_0x53b42f(0x494)]},Ot=L[_0x53b42f(0x334)](function(_0x2eeac2,_0x45dc5c){const _0xe9176e=_0x53b42f;return L[_0xe9176e(0x2e7)](We,Object[_0xe9176e(0x2a9)]({},_0x2eeac2,{'id':_0xe9176e(0x19d),'ref':_0x45dc5c,'icon':ii}));});Ot[_0x53b42f(0x25d)]='OnLineSingle';const ni='univer-online-status-icon',ri=_0x53b42f(0x3af),oi='univer-online-status',ai=_0x53b42f(0x323),ci=_0x53b42f(0x3f0),ie={'onlineStatusIcon':ni,'onlineStatusTitle':ri,'onlineStatus':oi,'online':ai,'offline':ci};function li(_0xaa946d){const _0x419617=_0x53b42f;switch(_0xaa946d){case w[_0x419617(0x1b4)]:return _0x419617(0x24b);case w[_0x419617(0x356)]:return _0x419617(0x189);case w['FETCH_MISS']:return'collabStatus.fetchMiss';case w['NOT_COLLAB']:return'collabStatus.notCollab';case w[_0x419617(0x33a)]:case w[_0x419617(0x4db)]:case w['AWAITING_WITH_PENDING']:return _0x419617(0x39c);case w[_0x419617(0x32d)]:return _0x419617(0x1c7);}}function Dt(_0x145fca){const _0x51bb32=_0x53b42f,{status$:_0x2cb16d}=_0x145fca,_0xbc0d36=N[_0x51bb32(0x2d0)](_0x2cb16d,w[_0x51bb32(0x1a4)]),_0x22f8a9=at['useDependency'](a['LocaleService']),_0x4753ea=_0xbc0d36!==w[_0x51bb32(0x1b4)],_0x479cf0=_0x22f8a9['t'](li(_0xbc0d36)),_0x4bb8b7=Ht(ie[_0x51bb32(0x1f5)],{[ie[_0x51bb32(0x262)]]:_0x4753ea,[ie[_0x51bb32(0x1a5)]]:!_0x4753ea}),_0x45be07=_0x4753ea?L[_0x51bb32(0x2e7)](Ot,null):L[_0x51bb32(0x2e7)](Rt,null);return L[_0x51bb32(0x2e7)](_0x51bb32(0x2b7),{'className':_0x4bb8b7},L['createElement'](_0x51bb32(0x2b7),{'className':ie[_0x51bb32(0x338)]},_0x45be07),L['createElement'](_0x51bb32(0x2b7),{'className':ie[_0x51bb32(0x49b)]},_0x479cf0));}var hi=Object[_0x53b42f(0x38a)],_i=Object[_0x53b42f(0x2a8)],ui=(_0x28a3ed,_0x4ac7ca,_0x238d3f,_0x38baea)=>{const _0x560af4=_0x53b42f;for(var _0x457e92=_0x38baea>0x1?void 0x0:_0x38baea?_i(_0x4ac7ca,_0x238d3f):_0x4ac7ca,_0x39cc5d=_0x28a3ed[_0x560af4(0x419)]-0x1,_0x14ffbf;_0x39cc5d>=0x0;_0x39cc5d--)(_0x14ffbf=_0x28a3ed[_0x39cc5d])&&(_0x457e92=(_0x38baea?_0x14ffbf(_0x4ac7ca,_0x238d3f,_0x457e92):_0x14ffbf(_0x457e92))||_0x457e92);return _0x38baea&&_0x457e92&&hi(_0x4ac7ca,_0x238d3f,_0x457e92),_0x457e92;},he=(_0x4e734b,_0x1fe480)=>(_0x2d1b46,_0x6508d5)=>_0x1fe480(_0x2d1b46,_0x6508d5,_0x4e734b);exports[_0x53b42f(0x230)]=class extends a['Disposable']{constructor(_0x489ff8,_0x3ca318,_0x4df3dc,_0xdf94f){const _0x47170b=_0x53b42f;super(),d(this,_0x47170b(0x41b),new g[(_0x47170b(0x28a))](w[_0x47170b(0x1a4)])),(this[_0x47170b(0x49a)]=_0x489ff8,this[_0x47170b(0x487)]=_0x3ca318,this[_0x47170b(0x45d)]=_0x4df3dc,this[_0x47170b(0x1a2)]=_0xdf94f,this[_0x47170b(0x3dd)](),this[_0x47170b(0x449)]());}[_0x53b42f(0x3dd)](){const _0x45d1d6=_0x53b42f;this['disposeWithMe'](this[_0x45d1d6(0x487)][_0x45d1d6(0x17e)](N[_0x45d1d6(0x2da)][_0x45d1d6(0x320)],()=>at['connectInjector'](di({'status$':this[_0x45d1d6(0x41b)][_0x45d1d6(0x1d6)]()}),this[_0x45d1d6(0x45d)])));}[_0x53b42f(0x449)](){const _0x57e870=_0x53b42f;this[_0x57e870(0x1e9)](a[_0x57e870(0x1bb)](this[_0x57e870(0x49a)][_0x57e870(0x1c2)][_0x57e870(0x454)](g[_0x57e870(0x178)](()=>{const _0x52b2e3=_0x57e870,_0x5d3b53=this[_0x52b2e3(0x49a)][_0x52b2e3(0x41e)]();return _0x5d3b53?this[_0x52b2e3(0x1a2)][_0x52b2e3(0x397)](_0x5d3b53[_0x52b2e3(0x1f9)]()):g['of'](null);}),g['switchMap'](_0x13d145=>_0x13d145?_0x13d145[_0x57e870(0x183)]:g['of'](w[_0x57e870(0x1a4)])))[_0x57e870(0x492)](_0x4c50a7=>{const _0xc2f31f=_0x57e870;this[_0xc2f31f(0x41b)][_0xc2f31f(0x414)](_0x4c50a7);})));}},exports[_0x53b42f(0x230)]=ui([a[_0x53b42f(0x13b)](a[_0x53b42f(0x2e2)][_0x53b42f(0x157)],exports[_0x53b42f(0x230)]),he(0x0,a[_0x53b42f(0x390)]),he(0x1,N[_0x53b42f(0x48c)]),he(0x2,h[_0x53b42f(0x295)](h[_0x53b42f(0x1ac)])),he(0x3,h['Inject'](exports[_0x53b42f(0x301)]))],exports[_0x53b42f(0x230)]);function di(_0x4713a6){const {status$:_0x29ad8c}=_0x4713a6;return function(){const _0x2c3b42=_0xe052;return L[_0x2c3b42(0x2e7)](Dt,{'status$':_0x29ad8c});};}const Ge=h[_0x53b42f(0x195)]('uni.network.url-service');var Si=Object[_0x53b42f(0x38a)],vi=Object['getOwnPropertyDescriptor'],gi=(_0x1deb36,_0x22d677,_0x474311,_0x29af28)=>{for(var _0x106fa9=_0x29af28>0x1?void 0x0:_0x29af28?vi(_0x22d677,_0x474311):_0x22d677,_0xd7b5fd=_0x1deb36['length']-0x1,_0x522114;_0xd7b5fd>=0x0;_0xd7b5fd--)(_0x522114=_0x1deb36[_0xd7b5fd])&&(_0x106fa9=(_0x29af28?_0x522114(_0x22d677,_0x474311,_0x106fa9):_0x522114(_0x106fa9))||_0x106fa9);return _0x29af28&&_0x106fa9&&Si(_0x22d677,_0x474311,_0x106fa9),_0x106fa9;},z=(_0x125698,_0x599f7c)=>(_0x48aeae,_0x29a301)=>_0x599f7c(_0x48aeae,_0x29a301,_0x125698);exports[_0x53b42f(0x265)]=class extends a['RxDisposable']{constructor(_0x587e2c,_0x1e74f8,_0x37e147,_0x4fc447,_0xe39c7a,_0x5e7746){const _0x2d20db=_0x53b42f;super(),this[_0x2d20db(0x1e7)]=_0x587e2c,this[_0x2d20db(0x42f)]=_0x1e74f8,this[_0x2d20db(0x188)]=_0x37e147,this['_localCacheService']=_0x4fc447,this['_snapshotService']=_0xe39c7a,_0x5e7746?_0x5e7746==null||_0x5e7746[_0x2d20db(0x2ff)]()[_0x2d20db(0x3ab)](()=>this['_init']()):(this[_0x2d20db(0x42f)]['debug'](_0x2d20db(0x310),'No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.'),this[_0x2d20db(0x243)]());}async[_0x53b42f(0x243)](){const _0x3b3bf2=_0x53b42f,_0x81570d=this[_0x3b3bf2(0x1e7)][_0x3b3bf2(0x358)](_0x3b3bf2(0x259)),_0x463100=this[_0x3b3bf2(0x1e7)]['getParam'](_0x3b3bf2(0x20c));if(!_0x81570d||!_0x463100){this[_0x3b3bf2(0x42f)]['debug']('[DataLoaderController]','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.');return;}switch(Number(_0x463100)){case j[_0x3b3bf2(0x164)]:{const _0x118609=await this[_0x3b3bf2(0x4a6)](_0x81570d);this[_0x3b3bf2(0x3c2)](_0x118609);break;}case j[_0x3b3bf2(0x220)]:{await this['_loadDoc'](_0x81570d);break;}default:{this[_0x3b3bf2(0x42f)][_0x3b3bf2(0x150)]('[DataLoaderController]','Unknown\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.');break;}}}async[_0x53b42f(0x3c2)](_0x2fa6b4){const _0x2beb03=_0x53b42f;await this['_updateSubUnitFromURLParams'](_0x2fa6b4),_0x2fa6b4['activeSheet$']['pipe'](g[_0x2beb03(0x436)](this['dispose$']))[_0x2beb03(0x492)](_0x58072f=>{const _0x1ebbbc=_0x2beb03;_0x58072f&&this[_0x1ebbbc(0x26e)](_0x58072f);}),this[_0x2beb03(0x1e7)]['urlChange$'][_0x2beb03(0x454)](g[_0x2beb03(0x436)](this['dispose$']))[_0x2beb03(0x492)](()=>this[_0x2beb03(0x415)](_0x2fa6b4));}[_0x53b42f(0x26e)](_0xbf12d,_0x41116d=!0x1){const _0x58acd1=_0x53b42f,_0x5b0d96=this[_0x58acd1(0x1e7)]['getParam'](_0x58acd1(0x26c));_0xbf12d['getSheetId']()!==_0x5b0d96&&this[_0x58acd1(0x1e7)][_0x58acd1(0x364)](_0x58acd1(0x26c),_0xbf12d['getSheetId'](),_0x41116d);}async[_0x53b42f(0x415)](_0xbc7345){const _0x267cb0=_0x53b42f;var _0x2ef8e0;const _0x2554bb=this['_urlService'][_0x267cb0(0x358)](_0x267cb0(0x26c));if(!_0x2554bb||!_0xbc7345[_0x267cb0(0x475)](_0x2554bb)){this['_updateURLWithCurrentState'](_0xbc7345[_0x267cb0(0x249)](),!0x0);return;}((_0x2ef8e0=_0xbc7345['getActiveSheet']())==null?void 0x0:_0x2ef8e0[_0x267cb0(0x1b9)]())!==_0x2554bb&&await this[_0x267cb0(0x188)][_0x267cb0(0x1ee)](E[_0x267cb0(0x42c)]['id'],{'unitId':_0xbc7345['getUnitId'](),'subUnitId':_0x2554bb});}async[_0x53b42f(0x4a6)](_0x3742d4){const _0x2d0a7c=_0x53b42f;let _0xab8d2b=0x0;const _0x364180=await this[_0x2d0a7c(0x33e)][_0x2d0a7c(0x3ea)](_0x3742d4);return _0x364180&&(_0x364180[_0x2d0a7c(0x1ca)]||_0x364180['mutations']['length']!==0x0)&&(_0xab8d2b=_0x364180[_0x2d0a7c(0x411)]),_0xab8d2b===0x0&&this[_0x2d0a7c(0x42f)][_0x2d0a7c(0x240)](_0x2d0a7c(0x310),_0x2d0a7c(0x434)),this[_0x2d0a7c(0x3cf)]['loadSheet'](_0x3742d4,_0xab8d2b);}async[_0x53b42f(0x392)](_0x1ed36f){const _0x30099c=_0x53b42f;let _0x194dc5=0x0;const _0x23c49d=await this[_0x30099c(0x33e)]['loadOfflineData'](_0x1ed36f);return _0x23c49d&&(_0x23c49d[_0x30099c(0x1ca)]||_0x23c49d[_0x30099c(0x21b)]['length']!==0x0)&&(_0x194dc5=_0x23c49d['rev']),_0x194dc5===0x0&&this[_0x30099c(0x42f)]['debug'](_0x30099c(0x310),'fetching\x20the\x20latest\x20document\x20from\x20the\x20server.'),this[_0x30099c(0x3cf)][_0x30099c(0x469)](_0x1ed36f,_0x194dc5);}},exports['DataLoaderController']=gi([a[_0x53b42f(0x13b)](a[_0x53b42f(0x2e2)]['Starting'],exports[_0x53b42f(0x265)]),z(0x0,Ge),z(0x1,a[_0x53b42f(0x4c8)]),z(0x2,a[_0x53b42f(0x1c5)]),z(0x3,h[_0x53b42f(0x295)](exports[_0x53b42f(0x4b3)])),z(0x4,h[_0x53b42f(0x295)](u[_0x53b42f(0x3b8)])),z(0x5,h[_0x53b42f(0x420)](xt[_0x53b42f(0x197)]))],exports[_0x53b42f(0x265)]);var fi=Object[_0x53b42f(0x38a)],mi=Object[_0x53b42f(0x2a8)],Ii=(_0x388630,_0xe80370,_0x2cf1a1,_0x5f1bfa)=>{const _0x407cb2=_0x53b42f;for(var _0x371b32=_0x5f1bfa>0x1?void 0x0:_0x5f1bfa?mi(_0xe80370,_0x2cf1a1):_0xe80370,_0x4525df=_0x388630[_0x407cb2(0x419)]-0x1,_0x18b30e;_0x4525df>=0x0;_0x4525df--)(_0x18b30e=_0x388630[_0x4525df])&&(_0x371b32=(_0x5f1bfa?_0x18b30e(_0xe80370,_0x2cf1a1,_0x371b32):_0x18b30e(_0x371b32))||_0x371b32);return _0x5f1bfa&&_0x371b32&&fi(_0xe80370,_0x2cf1a1,_0x371b32),_0x371b32;},st=(_0x4b3704,_0x540ffa)=>(_0x437071,_0x50c99f)=>_0x540ffa(_0x437071,_0x50c99f,_0x4b3704);const pi=_0x53b42f(0x4c7),Ei=_0x53b42f(0x4c5);let de=class extends a['Disposable']{constructor(_0x4ef975,_0x32d44e){const _0x4ecad0=_0x53b42f;super(),this[_0x4ecad0(0x49a)]=_0x4ef975,this[_0x4ecad0(0x2a6)]=_0x32d44e,this[_0x4ecad0(0x243)]();}[_0x53b42f(0x243)](){const _0x3af2f1=_0x53b42f;this[_0x3af2f1(0x1e9)](a[_0x3af2f1(0x1bb)](this[_0x3af2f1(0x49a)][_0x3af2f1(0x1c2)][_0x3af2f1(0x492)](()=>{const _0x4407ad=_0x3af2f1;var _0x3162c7;const _0x25c175=this['_univerInstanceService'][_0x4407ad(0x41e)]();let _0x395cb2=(_0x3162c7=this[_0x4407ad(0x2a6)][_0x4407ad(0x1d8)](pi))!=null?_0x3162c7:Ei;_0x25c175 instanceof a[_0x4407ad(0x38c)]&&(_0x395cb2=_0x25c175[_0x4407ad(0x462)]),document[_0x4407ad(0x276)]=_0x395cb2;})));}};de=Ii([a['OnLifecycle'](a[_0x53b42f(0x2e2)][_0x53b42f(0x1be)],de),st(0x0,a[_0x53b42f(0x390)]),st(0x1,a[_0x53b42f(0x4a2)])],de);var Ci=Object[_0x53b42f(0x38a)],bi=Object[_0x53b42f(0x2a8)],Ti=(_0x50ed97,_0x177420,_0x369d8e,_0x46c274)=>{for(var _0x1cd843=_0x46c274>0x1?void 0x0:_0x46c274?bi(_0x177420,_0x369d8e):_0x177420,_0x23b1a6=_0x50ed97['length']-0x1,_0x263a70;_0x23b1a6>=0x0;_0x23b1a6--)(_0x263a70=_0x50ed97[_0x23b1a6])&&(_0x1cd843=(_0x46c274?_0x263a70(_0x177420,_0x369d8e,_0x1cd843):_0x263a70(_0x1cd843))||_0x1cd843);return _0x46c274&&_0x1cd843&&Ci(_0x177420,_0x369d8e,_0x1cd843),_0x1cd843;},it=(_0x20338e,_0x165c84)=>(_0x5e2cc0,_0xb8ce71)=>_0x165c84(_0x5e2cc0,_0xb8ce71,_0x20338e);let Ae=class{constructor(_0x5dd6a0,_0x1dbcc0){const _0x24c823=_0x53b42f;this['_configService']=_0x5dd6a0,this[_0x24c823(0x152)]=_0x1dbcc0;}async[_0x53b42f(0x1bd)](_0x745595,_0x123dfc){const _0x16d18d=_0x53b42f;var _0x42bd5f;const {unitID:_0x357bac,type:_0x3a229d,revision:_0x2c4b62=0x0}=_0x123dfc,_0x3b55ff=this[_0x16d18d(0x28c)]()+'/'+_0x3a229d+_0x16d18d(0x254)+_0x357bac+'/rev/'+(_0x2c4b62===0x1?0x0:_0x2c4b62),_0x2e4088=(await this[_0x16d18d(0x152)][_0x16d18d(0x3d4)](_0x3b55ff))['body'],_0x1c1e01=(_0x42bd5f=_0x2e4088['snapshot'])==null?void 0x0:_0x42bd5f['workbook'];if(_0x1c1e01){const _0x309967=_0x1c1e01==null?void 0x0:_0x1c1e01[_0x16d18d(0x1c8)],_0xf9078d=a['textEncoder'][_0x16d18d(0x1f3)](a[_0x16d18d(0x25f)](_0x309967));_0x1c1e01['originalMeta']=_0xf9078d,Object[_0x16d18d(0x2a3)](_0x1c1e01['sheets'])[_0x16d18d(0x421)](([,_0x61eae2])=>{const _0x4bffb9=_0x16d18d,_0x216b9b=_0x61eae2[_0x4bffb9(0x1c8)],_0x3646fe=a['textEncoder']['encode'](a[_0x4bffb9(0x25f)](_0x216b9b));_0x61eae2[_0x4bffb9(0x1c8)]=_0x3646fe;});}return _0x2e4088;}async['getSheetBlock'](_0x219d65,_0x56ade0){const _0x2c5b24=_0x53b42f,{unitID:_0x20c053,type:_0x5e3b8f,blockID:_0x2a3c62}=_0x56ade0,_0x312c0c=this[_0x2c5b24(0x260)]()+'/'+_0x5e3b8f+'/unit/'+_0x20c053+_0x2c5b24(0x371)+_0x2a3c62;return(await this[_0x2c5b24(0x152)][_0x2c5b24(0x3d4)](_0x312c0c))[_0x2c5b24(0x4cc)];}async[_0x53b42f(0x25e)](_0x1108b1,_0x3e38d5){const _0x5cdd9a=_0x53b42f,{unitID:_0xe95d56,type:_0x45af4f,from:_0x56b4a0,to:_0x3af6c1}=_0x3e38d5,_0x4c742d=this[_0x5cdd9a(0x260)]()+'/'+_0x45af4f+'/unit/'+_0xe95d56+_0x5cdd9a(0x335)+_0x56b4a0+'&to='+_0x3af6c1;return(await this['_httpService']['get'](_0x4c742d))[_0x5cdd9a(0x4cc)];}[_0x53b42f(0x28c)](){const _0x3b3a92=_0x53b42f;var _0x1acaea;return(_0x1acaea=this[_0x3b3a92(0x2a6)][_0x3b3a92(0x1d8)](lt))!=null?_0x1acaea:this['_getAPIPrefix']();}[_0x53b42f(0x260)](){const _0x39775d=_0x53b42f;var _0x3a04b6;return(_0x3a04b6=this[_0x39775d(0x2a6)][_0x39775d(0x1d8)](ct))!=null?_0x3a04b6:kt;}async[_0x53b42f(0x3fa)](_0x301bca,_0x3e23bb){const _0x3f9514=_0x53b42f,_0x45e1d1=_0x3f9514(0x45f)+_0x3e23bb['type']+'/unit/'+_0x3e23bb[_0x3f9514(0x348)]+_0x3f9514(0x2e9);return(await this[_0x3f9514(0x152)][_0x3f9514(0x3d4)](_0x45e1d1,{'params':{'resourceId':JSON[_0x3f9514(0x339)](_0x3e23bb[_0x3f9514(0x1fe)])}}))[_0x3f9514(0x4cc)];}['saveSnapshot'](){const _0x7c87a0=_0x53b42f;throw new Error(_0x7c87a0(0x322));}[_0x53b42f(0x1c6)](){const _0xd211d=_0x53b42f;throw new Error(_0xd211d(0x322));}[_0x53b42f(0x3d2)](){throw new Error('This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!');}};Ae=Ti([it(0x0,a[_0x53b42f(0x4a2)]),it(0x1,h[_0x53b42f(0x295)](P[_0x53b42f(0x452)]))],Ae);var Ri=Object[_0x53b42f(0x38a)],Oi=Object[_0x53b42f(0x2a8)],Di=(_0x3f7870,_0x529c0e,_0x3a1985,_0x132cf8)=>{const _0x14f8ee=_0x53b42f;for(var _0x27ae7f=_0x132cf8>0x1?void 0x0:_0x132cf8?Oi(_0x529c0e,_0x3a1985):_0x529c0e,_0x36e6f5=_0x3f7870[_0x14f8ee(0x419)]-0x1,_0x373f8c;_0x36e6f5>=0x0;_0x36e6f5--)(_0x373f8c=_0x3f7870[_0x36e6f5])&&(_0x27ae7f=(_0x132cf8?_0x373f8c(_0x529c0e,_0x3a1985,_0x27ae7f):_0x373f8c(_0x27ae7f))||_0x27ae7f);return _0x132cf8&&_0x27ae7f&&Ri(_0x529c0e,_0x3a1985,_0x27ae7f),_0x27ae7f;},ne=(_0x2ae2bd,_0x1ad325)=>(_0x1ef006,_0x12578d)=>_0x1ad325(_0x1ef006,_0x12578d,_0x2ae2bd);let je=class extends a[_0x53b42f(0x2ec)]{constructor(_0x4324e3,_0x2e0513,_0x3f47fd,_0x44ddda,_0x383225){const _0x526298=_0x53b42f;super(_0x4324e3,_0x2e0513,_0x3f47fd),this[_0x526298(0x2f1)]=_0x44ddda,this[_0x526298(0x42f)]=_0x383225;}[_0x53b42f(0x4d6)](_0x39deeb,_0x537616){const _0x11b7e1=_0x53b42f,_0x3e9db5=this['_getUndoStack'](_0x39deeb);if(_0x3e9db5)try{const _0x22436a=this[_0x11b7e1(0x46b)](_0x3e9db5,_0x537616);this['_substituteUndoStack'](_0x39deeb,_0x22436a);}catch(_0x1be636){this[_0x11b7e1(0x42f)][_0x11b7e1(0x150)](_0x11b7e1(0x181),_0x1be636),this[_0x11b7e1(0x215)](_0x39deeb);}const _0x310291=this['_getRedoStack'](_0x39deeb);if(_0x310291)try{const _0x221a6c=this[_0x11b7e1(0x46b)](_0x310291,_0x537616);this['_substituteRedoStack'](_0x39deeb,_0x221a6c);}catch(_0x1a3bfd){this['_logService'][_0x11b7e1(0x150)](_0x1a3bfd),this[_0x11b7e1(0x149)](_0x39deeb);}}[_0x53b42f(0x215)](_0x2a2d15){const _0x2accda=_0x53b42f,_0x1238d3=this[_0x2accda(0x498)](_0x2a2d15);_0x1238d3&&(_0x1238d3['length']=0x0,this['_updateStatus']());}[_0x53b42f(0x149)](_0x1229bc){const _0x39f5f6=_0x53b42f,_0x37b21c=this[_0x39f5f6(0x34b)](_0x1229bc);_0x37b21c&&(_0x37b21c[_0x39f5f6(0x419)]=0x0,this['_updateStatus']());}[_0x53b42f(0x1a7)](_0x5c883a,_0x5de486){const _0xb2266=_0x53b42f;this['_undoStacks'][_0xb2266(0x2e0)](_0x5c883a,_0x5de486),this[_0xb2266(0x182)]();}[_0x53b42f(0x1b2)](_0x5ce64a,_0x422adf){const _0x3d56f8=_0x53b42f;this[_0x3d56f8(0x413)]['set'](_0x5ce64a,_0x422adf),this[_0x3d56f8(0x182)]();}['_transformStack'](_0x5c2061,_0x46f1e9){const _0x354fdb=_0x53b42f,_0x1fbfc7=[];let _0x1c4695=_0x46f1e9,_0x2f52d8=_0x46f1e9;for(let _0x3df48b=_0x5c2061[_0x354fdb(0x419)]-0x1;_0x3df48b>=0x0;_0x3df48b--){const {unitID:_0x1e74bc,undoMutations:_0x27028f,redoMutations:_0x156ef7}=_0x5c2061[_0x3df48b],_0x2f4fa3=this[_0x354fdb(0x2f1)][_0x354fdb(0x33b)](_0x1c4695,_0x27028f),_0x25af32=this[_0x354fdb(0x2f1)]['transformMutationsWithChangeset'](_0x2f52d8,_0x156ef7);if(u['isTransformMutationsWithChangesetFailure'](_0x2f4fa3)||u['isTransformMutationsWithChangesetFailure'](_0x25af32)){this[_0x354fdb(0x42f)][_0x354fdb(0x150)](_0x354fdb(0x181),'transformStack\x20failed!',_0x2f4fa3,_0x25af32);break;}_0x1c4695=_0x2f4fa3[_0x354fdb(0x132)],_0x2f52d8=_0x25af32[_0x354fdb(0x132)],_0x1fbfc7[_0x354fdb(0x1d7)]({'unitID':_0x1e74bc,'undoMutations':_0x2f4fa3[_0x354fdb(0x2c7)],'redoMutations':_0x25af32[_0x354fdb(0x2c7)]});}return _0x1fbfc7[_0x354fdb(0x35c)]();}};je=Di([ne(0x0,a[_0x53b42f(0x390)]),ne(0x1,a[_0x53b42f(0x1c5)]),ne(0x2,a['IContextService']),ne(0x3,u['ITransformService']),ne(0x4,a[_0x53b42f(0x4c8)])],je);class wt extends a[_0x53b42f(0x3a5)]{constructor(){const _0x1b4d5f=_0x53b42f;super(),d(this,_0x1b4d5f(0x2ef)),this['urlChange$']=g['fromEvent'](window,_0x1b4d5f(0x468))[_0x1b4d5f(0x454)](g[_0x1b4d5f(0x436)](this[_0x1b4d5f(0x35f)]),g[_0x1b4d5f(0x4d4)](0x1),g['mapTo'](void 0x0));}[_0x53b42f(0x364)](_0x2817f3,_0x486195,_0x46ebac=!0x1){const _0x10601b=_0x53b42f,_0x1ce138=new URL(window[_0x10601b(0x223)]['href']);_0x1ce138[_0x10601b(0x350)][_0x10601b(0x2e0)](_0x2817f3,_0x486195),_0x46ebac?window['history']['replaceState']('','',_0x1ce138[_0x10601b(0x423)]()):window[_0x10601b(0x20b)][_0x10601b(0x194)]('','',_0x1ce138[_0x10601b(0x423)]());}[_0x53b42f(0x424)](_0xe3dbf4,_0x27587a=!0x1){const _0x51926d=_0x53b42f,_0x27b561=new URL(window[_0x51926d(0x223)][_0x51926d(0x133)]);_0x27b561['searchParams'][_0x51926d(0x35b)](_0xe3dbf4),_0x27587a?window[_0x51926d(0x20b)][_0x51926d(0x2b5)]('','',_0x27b561[_0x51926d(0x423)]()):window[_0x51926d(0x20b)]['pushState']('','',_0x27b561[_0x51926d(0x423)]());}[_0x53b42f(0x358)](_0x255294){const _0x58e3f0=_0x53b42f;var _0x1d7a66;return(_0x1d7a66=new URL(window['location'][_0x58e3f0(0x133)])[_0x58e3f0(0x350)][_0x58e3f0(0x3d4)](_0x255294))!=null?_0x1d7a66:void 0x0;}}const we='collab-text-anchor-',wi=_0x53b42f(0x1c9),_e=0x6,Li=1.5,Le=0x4,Pi=1.5,Ui='rgba(255,\x20255,\x20255,\x200.01)';class yi{constructor(_0x7ff9cc,_0x2a2f20,_0x2165be,_0x518036){const _0x289522=_0x53b42f;d(this,_0x289522(0x41d),[]),d(this,_0x289522(0x2f3),null),d(this,'_textBubble',null),d(this,'_anchorDot',null),d(this,_0x289522(0x211),null),d(this,'_eventUnsubscribe',null),(this[_0x289522(0x48d)]=_0x7ff9cc,this['_scene']=_0x2a2f20,this[_0x289522(0x4bf)]=_0x2165be,this[_0x289522(0x14f)]=_0x518036,this[_0x289522(0x388)]());}set[_0x53b42f(0x131)](_0x4f164d){const _0x56026f=_0x53b42f;_0x4f164d?(this[_0x56026f(0x26d)]&&this['_anchorDot']['hide'](),this[_0x56026f(0x48e)]&&this[_0x56026f(0x48e)]['show']()):(this[_0x56026f(0x26d)]&&this['_anchorDot'][_0x56026f(0x138)](),this[_0x56026f(0x48e)]&&this[_0x56026f(0x48e)]['hide']());}[_0x53b42f(0x4df)](){const _0x10563c=_0x53b42f;for(const _0x55e2a9 of this['_shapes'])_0x55e2a9[_0x10563c(0x4df)]();this[_0x10563c(0x48e)]&&this[_0x10563c(0x48e)][_0x10563c(0x4df)](),this[_0x10563c(0x26d)]&&this[_0x10563c(0x26d)][_0x10563c(0x4df)](),this[_0x10563c(0x2f3)]&&this['_anchor'][_0x10563c(0x4df)](),this[_0x10563c(0x2ad)]&&this[_0x10563c(0x2ad)]();}[_0x53b42f(0x388)](){const _0x177379=_0x53b42f,{_docSkeleton:_0x3ae482,_document:_0x6b75b7}=this,{color:_0x1f8ded,name:_0x22e44c,ranges:_0x1a6054}=this[_0x177379(0x48d)],_0x271f22=_0x6b75b7[_0x177379(0x3f1)](),{docsLeft:_0x4f8e24,docsTop:_0x127b8f}=_0x271f22,_0x3cd0ed=new R[(_0x177379(0x1e4))](_0x271f22,_0x3ae482);for(const {startOffset:_0x4cb43f,endOffset:_0x735e1b,collapsed:_0x1c1c24,isActive:_0x56187e}of _0x1a6054){const _0x35cb50=_0x3ae482[_0x177379(0x3c1)](_0x4cb43f),_0x2d5ca8=_0x3ae482[_0x177379(0x3c1)](_0x735e1b);if(_0x56187e){const {contentBoxPointGroup:_0x45b5c6}=_0x3cd0ed[_0x177379(0x333)](_0x2d5ca8,_0x2d5ca8);if(_0x45b5c6[_0x177379(0x419)]===0x0)continue;this['_drawAnchor'](_0x1f8ded,_0x45b5c6,_0x4f8e24,_0x127b8f,_0x22e44c),this[_0x177379(0x2ad)]=this[_0x177379(0x246)]();}if(!_0x1c1c24){const {contentBoxPointGroup:_0x9aedd5}=_0x3cd0ed[_0x177379(0x333)](_0x35cb50,_0x2d5ca8);if(_0x9aedd5[_0x177379(0x419)]===0x0)continue;this[_0x177379(0x28e)](_0x1f8ded,_0x9aedd5,_0x4f8e24,_0x127b8f);}}}[_0x53b42f(0x47f)](_0x29e384,_0x56ed1d,_0x185e9e,_0x1ff77b,_0x33fa35){const _0xd7c1f2=_0x53b42f,_0x5801ca=this['_getAnchorBounding'](_0x56ed1d),{left:_0x1b44c6,top:_0x1020e5,height:_0x1f8a73}=_0x5801ca,_0x3a1386=this[_0xd7c1f2(0x29c)](),_0x4872bc=Pi/_0x3a1386,_0x110b01=new R[(_0xd7c1f2(0x184))](we+a[_0xd7c1f2(0x3a8)]['generateRandomId'](_e),{'left':_0x1b44c6+_0x185e9e-_0x4872bc,'top':_0x1020e5+_0x1ff77b,'height':_0x1f8a73,'width':Li,'fill':_0x29e384||R[_0xd7c1f2(0x14b)](a[_0xd7c1f2(0x2e3)][_0xd7c1f2(0x38b)],0x0),'strokeWidth':_0x4872bc,'stroke':Ui,'evented':!0x0});this[_0xd7c1f2(0x2f3)]=_0x110b01,this['_scene'][_0xd7c1f2(0x3e4)](_0x110b01,R[_0xd7c1f2(0x1dd)]);const _0x540212=new R[(_0xd7c1f2(0x184))](we+a[_0xd7c1f2(0x3a8)][_0xd7c1f2(0x1f7)](_e),{'left':_0x1b44c6+_0x185e9e-_0x4872bc,'top':_0x1020e5+_0x1ff77b-Le/0x2,'height':Le,'width':Le,'fill':_0x29e384||R[_0xd7c1f2(0x14b)](a[_0xd7c1f2(0x2e3)][_0xd7c1f2(0x38b)],0x0),'strokeWidth':0x0,'stroke':_0x29e384||R['getColor'](a['COLORS'][_0xd7c1f2(0x38b)],0x0),'evented':!0x1});this[_0xd7c1f2(0x26d)]=_0x540212,this[_0xd7c1f2(0x22f)]['addObject'](_0x540212,R[_0xd7c1f2(0x1dd)]);const _0x5a301a=new Ce(we+a['Tools'][_0xd7c1f2(0x1f7)](_e),{'left':_0x1b44c6+_0x185e9e-_0x4872bc,'top':_0x1020e5+_0x1ff77b-ce,'text':_0x33fa35,'color':_0x29e384});this[_0xd7c1f2(0x48e)]=_0x5a301a,this[_0xd7c1f2(0x22f)][_0xd7c1f2(0x3e4)](_0x5a301a,R[_0xd7c1f2(0x1dd)]),this[_0xd7c1f2(0x131)]=!0x1;}['_handleHover'](){const _0x32b744=_0x53b42f,_0x4b95a1=this['_anchor'][_0x32b744(0x206)][_0x32b744(0x1e5)](()=>{this['_hover']=!0x0;}),_0x4fa9f7=this['_anchor'][_0x32b744(0x3b5)][_0x32b744(0x1e5)](()=>{const _0x48447f=_0x32b744;this[_0x48447f(0x211)]&&clearTimeout(this[_0x48447f(0x211)]),this[_0x48447f(0x211)]=setTimeout(()=>{const _0x34d0ef=_0x48447f;this[_0x34d0ef(0x131)]=!0x1;},0x7d0);});return()=>{const _0x39debc=_0x32b744;var _0x53e803,_0x209275;(_0x53e803=this[_0x39debc(0x2f3)])==null||_0x53e803[_0x39debc(0x206)][_0x39debc(0x49d)](_0x4b95a1),(_0x209275=this[_0x39debc(0x2f3)])==null||_0x209275['onPointerLeaveObserver'][_0x39debc(0x49d)](_0x4fa9f7);};}[_0x53b42f(0x28e)](_0x206ce6,_0x56b60b,_0x53ca35,_0x2a92ec){const _0x2fa714=_0x53b42f,_0x5ed647=new a[(_0x2fa714(0x39b))](_0x206ce6)[_0x2fa714(0x31d)](0.2)[_0x2fa714(0x330)](),_0x1f04bd=new R[(_0x2fa714(0x3c3))](wi+a['Tools'][_0x2fa714(0x1f7)](_e),{'pointsGroup':_0x56b60b,'fill':_0x5ed647||R['getColor'](a[_0x2fa714(0x2e3)][_0x2fa714(0x38b)],0.2),'left':_0x53ca35,'top':_0x2a92ec,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x2fa714(0x41d)][_0x2fa714(0x1d7)](_0x1f04bd),this[_0x2fa714(0x22f)][_0x2fa714(0x3e4)](_0x1f04bd,R[_0x2fa714(0x1dd)]);}[_0x53b42f(0x17c)](_0x834347){const _0x5b0c0e=_0x834347[0x0],_0x50562d=_0x5b0c0e[0x0],_0x446760=_0x5b0c0e[0x2],{x:_0x293172,y:_0x327bab}=_0x50562d,{x:_0x26a5fb,y:_0x18bc27}=_0x446760;return{'left':_0x293172,'top':_0x327bab,'width':_0x26a5fb-_0x293172,'height':_0x18bc27-_0x327bab};}['_getScale'](){const {scaleX:_0x655d9,scaleY:_0xc5d0c8}=this['_scene']['getAncestorScale']();return Math['max'](_0x655d9,_0xc5d0c8);}}var Mi=Object[_0x53b42f(0x38a)],Ni=Object[_0x53b42f(0x2a8)],Ai=(_0x524988,_0x449bff,_0x51712b,_0x14f769)=>{const _0x1d50ec=_0x53b42f;for(var _0x6a5deb=_0x14f769>0x1?void 0x0:_0x14f769?Ni(_0x449bff,_0x51712b):_0x449bff,_0x16e242=_0x524988[_0x1d50ec(0x419)]-0x1,_0xed1be1;_0x16e242>=0x0;_0x16e242--)(_0xed1be1=_0x524988[_0x16e242])&&(_0x6a5deb=(_0x14f769?_0xed1be1(_0x449bff,_0x51712b,_0x6a5deb):_0xed1be1(_0x6a5deb))||_0x6a5deb);return _0x14f769&&_0x6a5deb&&Mi(_0x449bff,_0x51712b,_0x6a5deb),_0x6a5deb;},re=(_0x41d96f,_0x9c925d)=>(_0x5b6480,_0x2ef75f)=>_0x9c925d(_0x5b6480,_0x2ef75f,_0x41d96f);let Se=class extends a[_0x53b42f(0x3a5)]{constructor(_0x4d858c,_0x1b244d,_0x1f4ceb,_0x42d1c0,_0x464ca5){const _0x5e7aec=_0x53b42f;super(),d(this,_0x5e7aec(0x3a6),[]),(this[_0x5e7aec(0x491)]=_0x4d858c,this['_univerInstanceService']=_0x1b244d,this[_0x5e7aec(0x198)]=_0x1f4ceb,this[_0x5e7aec(0x318)]=_0x42d1c0,this[_0x5e7aec(0x48a)]=_0x464ca5,this[_0x5e7aec(0x243)]());}[_0x53b42f(0x243)](){const _0x30503c=_0x53b42f;this[_0x30503c(0x318)][_0x30503c(0x326)]['pipe'](T['takeUntil'](this[_0x30503c(0x35f)]),T['switchMap'](_0x3fd307=>{const _0x266e8b=_0x30503c;if(_0x3fd307){const {unitId:_0x16cba6}=_0x3fd307;return g[_0x266e8b(0x165)](this[_0x266e8b(0x491)][_0x266e8b(0x4d9)](_0x16cba6),this[_0x266e8b(0x48a)][_0x266e8b(0x3b6)])[_0x266e8b(0x454)](T[_0x266e8b(0x1af)](([_0x51e2de,_0x4fc914])=>({'skeleton':_0x3fd307,'cursors':[..._0x51e2de[_0x266e8b(0x4d7)]()][_0x266e8b(0x4a0)](_0x15c2e2=>({..._0x15c2e2,'color':_0x4fc914[_0x15c2e2[_0x266e8b(0x2f4)]]}))})));}return g['of']({'skeleton':null,'cursors':[]});}))[_0x30503c(0x492)](({skeleton:_0x2f7ec9,cursors:_0x3664b3})=>{const _0x4af0bb=_0x30503c;this[_0x4af0bb(0x380)](),_0x2f7ec9&&this['_updateCollabCursors'](_0x2f7ec9[_0x4af0bb(0x159)],_0x3664b3);});}['_updateCollabCursors'](_0x5e2031,_0x90dd6b){const _0x2c28c7=_0x53b42f,_0x49f10b=this[_0x2c28c7(0x36d)]();if(_0x49f10b==null)return;const {scene:_0x8e3dba,document:_0x4c4595}=_0x49f10b,_0x2d39dd=_0x90dd6b[_0x2c28c7(0x1af)](_0x2cbeb7=>new yi(_0x2cbeb7,_0x8e3dba,_0x5e2031,_0x4c4595));this[_0x2c28c7(0x3a6)]=_0x2d39dd;}[_0x53b42f(0x380)](){const _0x458aef=_0x53b42f;this[_0x458aef(0x3a6)][_0x458aef(0x421)](_0x2b4f6a=>_0x2b4f6a[_0x458aef(0x4df)]()),this['_cursors']=[];}[_0x53b42f(0x36d)](){const _0x36ef01=_0x53b42f;return M[_0x36ef01(0x151)](this[_0x36ef01(0x49a)],this[_0x36ef01(0x198)]);}};Se=Ai([a['OnLifecycle'](a[_0x53b42f(0x2e2)]['Steady'],Se),re(0x0,h[_0x53b42f(0x295)](J)),re(0x1,a[_0x53b42f(0x390)]),re(0x2,R['IRenderManagerService']),re(0x3,h[_0x53b42f(0x295)](M[_0x53b42f(0x3f3)])),re(0x4,h[_0x53b42f(0x295)](a[_0x53b42f(0x1e8)]))],Se);var ji=Object[_0x53b42f(0x38a)],$i=Object[_0x53b42f(0x2a8)],Hi=(_0x5f5144,_0x3f4589,_0x26ee4f,_0x2b4662)=>{const _0x38d6ba=_0x53b42f;for(var _0x45435c=_0x2b4662>0x1?void 0x0:_0x2b4662?$i(_0x3f4589,_0x26ee4f):_0x3f4589,_0x8d726a=_0x5f5144[_0x38d6ba(0x419)]-0x1,_0x19785b;_0x8d726a>=0x0;_0x8d726a--)(_0x19785b=_0x5f5144[_0x8d726a])&&(_0x45435c=(_0x2b4662?_0x19785b(_0x3f4589,_0x26ee4f,_0x45435c):_0x19785b(_0x45435c))||_0x45435c);return _0x2b4662&&_0x45435c&&ji(_0x3f4589,_0x26ee4f,_0x45435c),_0x45435c;},Pe=(_0x124949,_0x156cd5)=>(_0x5da489,_0x2f9696)=>_0x156cd5(_0x5da489,_0x2f9696,_0x124949);let Ie=class{constructor(_0x2f53f2,_0x2f38af,_0x2ea6d5){const _0x533c6d=_0x53b42f;this[_0x533c6d(0x2a6)]=_0x2f53f2,this[_0x533c6d(0x152)]=_0x2f38af,this[_0x533c6d(0x34f)]=_0x2ea6d5,this[_0x533c6d(0x433)]();}[_0x53b42f(0x433)](){const _0x2b1985=_0x53b42f;this[_0x2b1985(0x152)]['registerHTTPInterceptor']({'priority':0x1,'interceptor':(_0x3a21b7,_0x5275e9)=>_0x5275e9(_0x3a21b7)['pipe'](g[_0x2b1985(0x15a)](async _0x2bef6c=>{const _0x50eab2=_0x2b1985,_0x47e7ae=_0x2bef6c;if(_0x47e7ae[_0x50eab2(0x2a7)]===0x191&&window[_0x50eab2(0x4a7)](this[_0x50eab2(0x34f)]['t'](_0x50eab2(0x251)))){const _0xb0ebc4=window[_0x50eab2(0x13c)](window[_0x50eab2(0x223)][_0x50eab2(0x133)]);window[_0x50eab2(0x223)][_0x50eab2(0x133)]=this[_0x50eab2(0x4ca)]()+_0x50eab2(0x429)+_0xb0ebc4;}return _0x47e7ae;}))});}['_getLoginPath'](){const _0x4be8bf=_0x53b42f;var _0x4fb305;return(_0x4fb305=this[_0x4be8bf(0x2a6)][_0x4be8bf(0x1d8)](gt))!=null?_0x4fb305:zt;}};Ie=Hi([Pe(0x0,a[_0x53b42f(0x4a2)]),Pe(0x1,h[_0x53b42f(0x295)](P['HTTPService'])),Pe(0x2,h[_0x53b42f(0x295)](a['LocaleService']))],Ie);var xi=Object[_0x53b42f(0x38a)],ki=Object['getOwnPropertyDescriptor'],Bi=(_0x4bb00d,_0x4dc1ee,_0x484f5a,_0x30950b)=>{const _0x339a29=_0x53b42f;for(var _0x37085f=_0x30950b>0x1?void 0x0:_0x30950b?ki(_0x4dc1ee,_0x484f5a):_0x4dc1ee,_0x57f849=_0x4bb00d[_0x339a29(0x419)]-0x1,_0x480324;_0x57f849>=0x0;_0x57f849--)(_0x480324=_0x4bb00d[_0x57f849])&&(_0x37085f=(_0x30950b?_0x480324(_0x4dc1ee,_0x484f5a,_0x37085f):_0x480324(_0x37085f))||_0x37085f);return _0x30950b&&_0x37085f&&xi(_0x4dc1ee,_0x484f5a,_0x37085f),_0x37085f;},nt=(_0x44abb4,_0x5c947e)=>(_0x12a511,_0x3bebd1)=>_0x5c947e(_0x12a511,_0x3bebd1,_0x44abb4);const Lt='AUTHZ_URL_KEY',Fi=_0x53b42f(0x3f6);exports[_0x53b42f(0x362)]=class{constructor(_0x44c60b,_0x5ea682){const _0x10bfb8=_0x53b42f;this[_0x10bfb8(0x400)]=_0x44c60b,this[_0x10bfb8(0x2a6)]=_0x5ea682;}[_0x53b42f(0x1ff)](){const _0x1e7e73=_0x53b42f;var _0x1e6c1c;return(_0x1e6c1c=this[_0x1e7e73(0x2a6)][_0x1e7e73(0x1d8)](Lt))!=null?_0x1e6c1c:Fi;}async[_0x53b42f(0x1c1)](_0x2f0240){const _0x2ac3ca=_0x53b42f,_0x155100=this[_0x2ac3ca(0x1ff)]()+'/'+_0x2f0240[_0x2ac3ca(0x2d4)]+'/object';return(await this[_0x2ac3ca(0x400)][_0x2ac3ca(0x30c)](_0x155100,{'body':_0x2f0240}))['body'][_0x2ac3ca(0x309)]||'';}async['list'](_0x3b7180){const _0x332ee4=_0x53b42f,_0x2d31dd=this[_0x332ee4(0x1ff)]()+_0x332ee4(0x207);return(await this['_HTTPService'][_0x332ee4(0x30c)](_0x2d31dd,{'body':_0x3b7180}))['body'][_0x332ee4(0x38f)];}async['update'](_0x5e0c16){const _0x27b3d3=_0x53b42f,_0x21ca0d=this[_0x27b3d3(0x1ff)]()+'/'+_0x5e0c16[_0x27b3d3(0x2d4)]+_0x27b3d3(0x1b5)+_0x5e0c16[_0x27b3d3(0x309)];await this[_0x27b3d3(0x400)][_0x27b3d3(0x286)](_0x21ca0d,{'body':_0x5e0c16});}async[_0x53b42f(0x234)](_0x576a37){const _0x23108f=_0x53b42f,_0x300b2f=this[_0x23108f(0x1ff)]()+'/'+_0x576a37[_0x23108f(0x2d4)]+_0x23108f(0x1b5)+_0x576a37[_0x23108f(0x309)]+_0x23108f(0x2d3);return(await this[_0x23108f(0x400)][_0x23108f(0x30c)](_0x300b2f,{'body':_0x576a37}))[_0x23108f(0x4cc)]['actions'];}async[_0x53b42f(0x360)](_0x258574){const _0x5e2bf5=_0x53b42f,_0x3f598c=this[_0x5e2bf5(0x1ff)]()+_0x5e2bf5(0x357);return(await this[_0x5e2bf5(0x400)]['post'](_0x3f598c,{'body':{'requests':_0x258574}}))['body']['objectActions'];}async[_0x53b42f(0x3f8)](_0x43e0cf){const _0x556958=_0x53b42f,_0x20c563=this[_0x556958(0x1ff)]()+'/'+_0x43e0cf['objectType']+_0x556958(0x1f6),_0x423096=await this['_HTTPService'][_0x556958(0x30c)](_0x20c563,{'body':_0x43e0cf});return{'roles':_0x423096[_0x556958(0x4cc)][_0x556958(0x2bc)],'actions':_0x423096[_0x556958(0x4cc)][_0x556958(0x2c1)]};}async[_0x53b42f(0x456)](_0x12a81e){const _0x58da4e=_0x53b42f,_0x3100ca=this[_0x58da4e(0x1ff)]()+_0x58da4e(0x382);await this['_HTTPService']['delete'](_0x3100ca,{'params':{'collaboratorID':_0x12a81e['collaboratorID'],'objectID':_0x12a81e[_0x58da4e(0x309)],'unitID':_0x12a81e[_0x58da4e(0x348)]}});}async[_0x53b42f(0x136)](_0x352583){const _0x1ea35b=_0x53b42f,_0x575b47=this[_0x1ea35b(0x1ff)]()+_0x1ea35b(0x382);await this[_0x1ea35b(0x400)][_0x1ea35b(0x4a3)](_0x575b47,{'body':_0x352583});}async[_0x53b42f(0x296)](_0x100e59){const _0x35eaf5=_0x53b42f,_0x1db08f=this['_getAPIPrefixPath']()+'/collaborator';await this[_0x35eaf5(0x400)][_0x35eaf5(0x30c)](_0x1db08f,{'body':_0x100e59});}async[_0x53b42f(0x4b4)](_0x388e95){const _0x871435=_0x53b42f,_0x57e935=this[_0x871435(0x1ff)]()+'/collaborator';return(await this[_0x871435(0x400)][_0x871435(0x3d4)](_0x57e935,{'params':{'objectID':_0x388e95[_0x871435(0x309)],'unitID':_0x388e95[_0x871435(0x348)]}}))['body'][_0x871435(0x193)];}async[_0x53b42f(0x227)](_0x345fec){const _0x22acc7=_0x53b42f,_0x2ced63=this[_0x22acc7(0x1ff)]()+_0x22acc7(0x382);await this['_HTTPService'][_0x22acc7(0x286)](_0x2ced63,{'body':_0x345fec});}},exports[_0x53b42f(0x362)]=Bi([nt(0x0,h[_0x53b42f(0x295)](P['HTTPService'])),nt(0x1,h[_0x53b42f(0x295)](a[_0x53b42f(0x4a2)]))],exports[_0x53b42f(0x362)]);var Vi=Object['defineProperty'],Wi=Object['getOwnPropertyDescriptor'],Gi=(_0x4574fe,_0x4b5218,_0xe4878,_0x43c45c)=>{const _0x2f5b88=_0x53b42f;for(var _0x15ae7e=_0x43c45c>0x1?void 0x0:_0x43c45c?Wi(_0x4b5218,_0xe4878):_0x4b5218,_0x912ab5=_0x4574fe[_0x2f5b88(0x419)]-0x1,_0x22ec58;_0x912ab5>=0x0;_0x912ab5--)(_0x22ec58=_0x4574fe[_0x912ab5])&&(_0x15ae7e=(_0x43c45c?_0x22ec58(_0x4b5218,_0xe4878,_0x15ae7e):_0x22ec58(_0x15ae7e))||_0x15ae7e);return _0x43c45c&&_0x15ae7e&&Vi(_0x4b5218,_0xe4878,_0x15ae7e),_0x15ae7e;},rt=(_0x38f0a3,_0x5b8a39)=>(_0x1b008d,_0x2badb4)=>_0x5b8a39(_0x1b008d,_0x2badb4,_0x38f0a3);const Yi=[_0x53b42f(0x3ad),'image/jpeg',_0x53b42f(0x4b1),'image/gif',_0x53b42f(0x396)],Ki=0x5*0x400*0x400,Xi=_0x53b42f(0x426),qi='/universer-api/stream/file/upload',zi=_0x53b42f(0x1eb),Ji='/universer-api/file/{fileID}/sign-url';let $e=class{constructor(_0x5456e9,_0x276fb0){const _0x20207e=_0x53b42f;d(this,_0x20207e(0x30d),0x0),d(this,'_change$',new g[(_0x20207e(0x298))]()),d(this,_0x20207e(0x300),this[_0x20207e(0x203)]),d(this,_0x20207e(0x484),new Map()),(this['_httpService']=_0x5456e9,this['_configService']=_0x276fb0);}[_0x53b42f(0x332)](_0x3cad8d){const _0x4e5cc8=_0x53b42f;this[_0x4e5cc8(0x30d)]=_0x3cad8d,this['_change$'][_0x4e5cc8(0x414)](_0x3cad8d);}[_0x53b42f(0x25c)](_0x5eb06f,_0x42e398){const _0x56bac9=_0x53b42f;if(_0x42e398===A[_0x56bac9(0x336)][_0x56bac9(0x485)]){const _0x5334ec=new Image();return _0x5334ec['src']=_0x5eb06f,_0x5334ec;}return this['_imageSourceCache'][_0x56bac9(0x3d4)](_0x5eb06f);}[_0x53b42f(0x176)](_0x47995f,_0x204a0d,_0x5bc6b1){const _0x1b61ea=_0x53b42f;_0x204a0d===A[_0x1b61ea(0x336)][_0x1b61ea(0x485)]||_0x5bc6b1==null||this[_0x1b61ea(0x484)][_0x1b61ea(0x2e0)](_0x47995f,_0x5bc6b1);}async[_0x53b42f(0x39e)](_0x5329d9){const _0xcac383=_0x53b42f;try{const _0x418842=this['_replaceFileID'](this[_0xcac383(0x402)](),''+_0x5329d9),_0x30aaf0=(await this[_0xcac383(0x152)][_0xcac383(0x3d4)](_0x418842))[_0xcac383(0x4cc)];return _0x30aaf0[_0xcac383(0x150)]&&_0x30aaf0[_0xcac383(0x150)]['code']===ft['OK']?Promise[_0xcac383(0x4d2)](_0x30aaf0['url']):Promise[_0xcac383(0x1bf)](_0x30aaf0['error']);}catch(_0x1d6510){return Promise[_0xcac383(0x1bf)](_0x1d6510);}}async[_0x53b42f(0x444)](_0x53ccf2){const _0x57f71c=_0x53b42f;let _0x785b2f='';if(!Yi[_0x57f71c(0x245)](_0x53ccf2['type']))return this['_decreaseWaiting'](),Promise[_0x57f71c(0x1bf)](new Error(A['ImageUploadStatusType'][_0x57f71c(0x4d8)]));if(_0x53ccf2[_0x57f71c(0x22a)]>Ki)return this[_0x57f71c(0x299)](),Promise[_0x57f71c(0x1bf)](new Error(A[_0x57f71c(0x48b)][_0x57f71c(0x219)]));try{const _0x38b7e4=new FormData();_0x38b7e4[_0x57f71c(0x2b3)](_0x57f71c(0x1b3),_0x53ccf2);const _0x2d5c69=this[_0x57f71c(0x1ae)]()+_0x57f71c(0x3ac)+_0x53ccf2['size'][_0x57f71c(0x423)](),_0x393225=await(await fetch(_0x2d5c69,{'method':_0x57f71c(0x216),'body':_0x38b7e4}))[_0x57f71c(0x18a)]();if(typeof _0x393225[_0x57f71c(0x250)]!='string')return this[_0x57f71c(0x299)](),Promise[_0x57f71c(0x1bf)](new Error(A[_0x57f71c(0x48b)]['ERROR_IMAGE']));_0x785b2f=_0x393225[_0x57f71c(0x250)];}catch{return this[_0x57f71c(0x299)](),Promise[_0x57f71c(0x1bf)](new Error(A[_0x57f71c(0x48b)][_0x57f71c(0x321)]));}return new Promise((_0x289b0c,_0x25fceb)=>{const _0x4bc48c=_0x57f71c,_0x4374b1=new FileReader();_0x4374b1[_0x4bc48c(0x363)](_0x53ccf2),_0x4374b1[_0x4bc48c(0x2d6)]=_0x14c12c=>{const _0x287f92=_0x4bc48c;var _0x5bd074;const _0x3e907c=(_0x5bd074=_0x14c12c['target'])==null?void 0x0:_0x5bd074[_0x287f92(0x47a)];if(_0x3e907c==null){this[_0x287f92(0x299)](),_0x25fceb(new Error(A[_0x287f92(0x48b)][_0x287f92(0x321)]));return;}const _0x52f36f=a[_0x287f92(0x3a8)][_0x287f92(0x1f7)](0x6);_0x289b0c({'imageId':_0x52f36f,'imageSourceType':A[_0x287f92(0x336)][_0x287f92(0x2d9)],'source':_0x785b2f,'base64Cache':_0x3e907c,'status':A[_0x287f92(0x48b)]['SUCCUSS']}),this[_0x287f92(0x299)]();};});}[_0x53b42f(0x1ae)](){const _0x2f4f39=_0x53b42f;var _0x574443;return(_0x574443=this['_configService'][_0x2f4f39(0x1d8)](Xi))!=null?_0x574443:qi;}['_getSignURL'](){const _0x42841c=_0x53b42f;var _0x86096b;return(_0x86096b=this[_0x42841c(0x2a6)]['getConfig'](zi))!=null?_0x86096b:Ji;}[_0x53b42f(0x3d3)](_0x304ac1,_0x3d6591){const _0x448c09=_0x53b42f;return _0x304ac1[_0x448c09(0x153)]('{fileID}',_0x3d6591);}[_0x53b42f(0x299)](){const _0x383a9a=_0x53b42f;this[_0x383a9a(0x30d)]-=0x1,this['_change$'][_0x383a9a(0x414)](this[_0x383a9a(0x30d)]);}};$e=Gi([rt(0x0,h['Inject'](P[_0x53b42f(0x452)])),rt(0x1,a['IConfigService'])],$e);var Pt=Object[_0x53b42f(0x38a)],Zi=Object[_0x53b42f(0x2a8)],Qi=(_0x2df94c,_0xbcda71,_0x570200)=>_0xbcda71 in _0x2df94c?Pt(_0x2df94c,_0xbcda71,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x570200}):_0x2df94c[_0xbcda71]=_0x570200,en=(_0x1d77d4,_0x87cfd8,_0x529906,_0x5051fa)=>{for(var _0x28451f=_0x5051fa>0x1?void 0x0:_0x5051fa?Zi(_0x87cfd8,_0x529906):_0x87cfd8,_0x99e65b=_0x1d77d4['length']-0x1,_0x14518a;_0x99e65b>=0x0;_0x99e65b--)(_0x14518a=_0x1d77d4[_0x99e65b])&&(_0x28451f=(_0x5051fa?_0x14518a(_0x87cfd8,_0x529906,_0x28451f):_0x14518a(_0x28451f))||_0x28451f);return _0x5051fa&&_0x28451f&&Pt(_0x87cfd8,_0x529906,_0x28451f),_0x28451f;},ot=(_0x58d1a6,_0xb09d95)=>(_0x89e34,_0x45f6fd)=>_0xb09d95(_0x89e34,_0x45f6fd,_0x58d1a6),tn=(_0x453ef0,_0x2c3841,_0x23b17f)=>Qi(_0x453ef0,_0x2c3841+'',_0x23b17f);const sn=_0x53b42f(0x37d);exports[_0x53b42f(0x15e)]=class extends a['Plugin']{constructor(_0x1d6878,_0x24f969,_0x4eb417){const _0x137c33=_0x53b42f;super(),this[_0x137c33(0x481)]=_0x1d6878,this[_0x137c33(0x42f)]=_0x24f969,this[_0x137c33(0x45d)]=_0x4eb417;}[_0x53b42f(0x470)](_0xa32c4b){const _0x1da3ad=_0x53b42f;var _0x26f4c7,_0x24e516,_0x11fc1a,_0x45d55e,_0x374786;_0xa32c4b[_0x1da3ad(0x378)](a[_0x1da3ad(0x4a1)])&&this[_0x1da3ad(0x42f)]['error'](_0x1da3ad(0x3bd),_0x1da3ad(0x3a4));let _0x439a21=[[a[_0x1da3ad(0x4a1)],{'useClass':je}],[exports[_0x1da3ad(0x14a)]],[Ve],[P[_0x1da3ad(0x452)]],[Ge,{'useClass':wt}],[G],[exports[_0x1da3ad(0x4b3)]],[P['WebSocketService']],[fe],[ge],[ve],[Fe],[Ie],[Be,{'useClass':(_0x24e516=(_0x26f4c7=this[_0x1da3ad(0x481)])==null?void 0x0:_0x26f4c7[_0x1da3ad(0x21c)])!=null?_0x24e516:exports[_0x1da3ad(0x236)]}],[P[_0x1da3ad(0x3a9)],{'useClass':P['XHRHTTPImplementation']}],[a[_0x1da3ad(0x174)],{'useClass':Ae}],[a[_0x1da3ad(0x226)],{'useClass':exports[_0x1da3ad(0x362)]}],[A['IImageIoService'],{'useClass':$e}],[exports[_0x1da3ad(0x301)]],[exports[_0x1da3ad(0x265)]],[exports['DesktopCollaborationStatusDisplayController']],[de],[J]];(_0x11fc1a=this['_config'])!=null&&_0x11fc1a[_0x1da3ad(0x3ba)]&&_0x439a21['push']([pe,{'useClass':hs}]),((_0x45d55e=this[_0x1da3ad(0x481)])==null?void 0x0:_0x45d55e[_0x1da3ad(0x3a2)])==null||this['_config']['collaborationUniverTypes'][_0x1da3ad(0x245)](a[_0x1da3ad(0x142)]['UNIVER_SHEET'])?_0x439a21['push']([ue]):this[_0x1da3ad(0x481)][_0x1da3ad(0x3a2)]['includes'](a['UniverInstanceType']['UNIVER_DOC'])&&_0x439a21['push']([Se]),_0x439a21=a[_0x1da3ad(0x370)](_0x439a21,(_0x374786=this[_0x1da3ad(0x481)])==null?void 0x0:_0x374786[_0x1da3ad(0x1e1)]),_0x439a21[_0x1da3ad(0x421)](_0x5de78b=>_0xa32c4b[_0x1da3ad(0x1e5)](_0x5de78b)),_0xa32c4b[_0x1da3ad(0x3d4)](P[_0x1da3ad(0x452)])[_0x1da3ad(0x3ce)]({'priority':0x14,'interceptor':P[_0x1da3ad(0x3c0)]({'maxParallel':0x6})}),this[_0x1da3ad(0x1c4)]();}[_0x53b42f(0x1c4)](){const _0x4e69ab=_0x53b42f;var _0x1e96ae,_0x4d5579;(_0x1e96ae=this[_0x4e69ab(0x481)])!=null&&_0x1e96ae[_0x4e69ab(0x253)]||this[_0x4e69ab(0x45d)][_0x4e69ab(0x3d4)](exports[_0x4e69ab(0x4b3)])[_0x4e69ab(0x3be)](),(_0x4d5579=this[_0x4e69ab(0x481)])!=null&&_0x4d5579[_0x4e69ab(0x166)]&&this[_0x4e69ab(0x45d)][_0x4e69ab(0x3d4)](Ie);}},tn(exports[_0x53b42f(0x15e)],_0x53b42f(0x2fe),sn),exports[_0x53b42f(0x15e)]=en([a[_0x53b42f(0x14c)](u[_0x53b42f(0x365)]),ot(0x1,a[_0x53b42f(0x4c8)]),ot(0x2,h[_0x53b42f(0x295)](h['Injector']))],exports[_0x53b42f(0x15e)]),exports[_0x53b42f(0x46a)]=Lt,exports['COLLAB_SUBMIT_CHANGESET_URL_KEY']=vt,exports[_0x53b42f(0x24a)]=_t,exports['CollaborationStatus']=w,exports[_0x53b42f(0x14d)]=Dt,exports[_0x53b42f(0x32a)]=ut,exports[_0x53b42f(0x2ac)]=xe,exports[_0x53b42f(0x261)]=Be,exports[_0x53b42f(0x476)]=Ge,exports['LOCAL_CACHE_INTERVAL_KEY']=St,exports[_0x53b42f(0x465)]=gt,exports[_0x53b42f(0x430)]=ht,exports['SNAPSHOT_SERVER_URL_KEY']=ct,exports[_0x53b42f(0x44c)]=lt,exports['SessionStatus']=W,exports[_0x53b42f(0x38d)]=wt,exports[_0x53b42f(0x18c)]=mt,exports['serializeCombRequest']=It;
|
1
|
+
'use strict';const _0x47025c=_0x22eb;(function(_0xf45870,_0x1e8629){const _0x60705e=_0x22eb,_0x30284a=_0xf45870();while(!![]){try{const _0x191423=parseInt(_0x60705e(0x3a5))/0x1+parseInt(_0x60705e(0x2ee))/0x2*(-parseInt(_0x60705e(0x2ed))/0x3)+parseInt(_0x60705e(0x42b))/0x4+-parseInt(_0x60705e(0x576))/0x5*(parseInt(_0x60705e(0x567))/0x6)+-parseInt(_0x60705e(0x545))/0x7+-parseInt(_0x60705e(0x305))/0x8+-parseInt(_0x60705e(0x3bc))/0x9*(-parseInt(_0x60705e(0x22d))/0xa);if(_0x191423===_0x1e8629)break;else _0x30284a['push'](_0x30284a['shift']());}catch(_0x3fcf92){_0x30284a['push'](_0x30284a['shift']());}}}(_0x421b,0xe1d48));var jt=Object[_0x47025c(0x430)],$t=(_0xabca43,_0x1dfb91,_0x53fd3a)=>_0x1dfb91 in _0xabca43?jt(_0xabca43,_0x1dfb91,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x53fd3a}):_0xabca43[_0x1dfb91]=_0x53fd3a,d=(_0x617c29,_0x305de1,_0x3f9555)=>$t(_0x617c29,typeof _0x305de1!=_0x47025c(0x22c)?_0x305de1+'':_0x305de1,_0x3f9555);Object[_0x47025c(0x430)](exports,Symbol[_0x47025c(0x3af)],{'value':_0x47025c(0x3d7)});const a=require(_0x47025c(0x525)),E=require(_0x47025c(0x589)),oe=require(_0x47025c(0x21c)),N=require('@univerjs/ui'),u=require(_0x47025c(0x323)),h=require(_0x47025c(0x49c)),g=require(_0x47025c(0x4d9)),T=require(_0x47025c(0x355)),M=require('@univerjs/docs'),L=require(_0x47025c(0x1ff)),A=require(_0x47025c(0x40b)),Ye=require(_0x47025c(0x2bb)),He=require('lodash/debounce'),R=require(_0x47025c(0x1ef)),ee=require(_0x47025c(0x25a)),at=require(_0x47025c(0x425)),U=require(_0x47025c(0x3b2)),Ht=require(_0x47025c(0x526)),xt=require(_0x47025c(0x56a)),ct=_0x47025c(0x1fe),kt=_0x47025c(0x280),lt=_0x47025c(0x32f),ht=_0x47025c(0x229),Bt=0x7d0,_t=_0x47025c(0x4ab),Ft='ws://127.0.0.1:8000/universer-api/comb/connect',ut='HEARTBEAT_INTERVAL',Vt=0x7530,xe=_0x47025c(0x2df),dt=0x2710,Wt=_0x47025c(0x443),Gt=0x4e20,Yt=_0x47025c(0x325),Kt=0x3,St=_0x47025c(0x48c),Xt=0x3e8,vt=_0x47025c(0x47e),qt=_0x47025c(0x27f),gt='LOGIN_URL_KEY',zt=_0x47025c(0x457);var ft=(_0x228076=>(_0x228076[_0x228076[_0x47025c(0x546)]=0x0]=_0x47025c(0x546),_0x228076[_0x228076['OK']=0x1]='OK',_0x228076[_0x228076['INTERNAL_ERROR']=0x2]=_0x47025c(0x240),_0x228076[_0x228076['PERMISSION_DENIED']=0x3]=_0x47025c(0x35b),_0x228076[_0x228076['NOT_FOUND']=0x4]=_0x47025c(0x4d7),_0x228076[_0x228076['UNAUTHENTICATED']=0x5]='UNAUTHENTICATED',_0x228076[_0x228076['ALREADY_EXISTS']=0x6]=_0x47025c(0x1fb),_0x228076[_0x228076[_0x47025c(0x452)]=0x7]=_0x47025c(0x452),_0x228076[_0x228076[_0x47025c(0x2d4)]=0x8]='TOO_MANY_REQUESTS',_0x228076[_0x228076[_0x47025c(0x3c0)]=0x9]=_0x47025c(0x3c0),_0x228076[_0x228076[_0x47025c(0x4a9)]=0x1389]=_0x47025c(0x4a9),_0x228076[_0x228076[_0x47025c(0x59f)]=0x1771]='SNAPSHOT_INVALID_SNAPSHOT',_0x228076[_0x228076[_0x47025c(0x271)]=0x1772]='SNAPSHOT_HAS_BEEN_REMOVED',_0x228076[_0x228076['APPLY_REJECT']=0x1b59]=_0x47025c(0x3a6),_0x228076[_0x228076[_0x47025c(0x374)]=0x1b5a]=_0x47025c(0x374),_0x228076[_0x228076[_0x47025c(0x32b)]=0x1b5b]=_0x47025c(0x32b),_0x228076[_0x228076[_0x47025c(0x346)]=0x1b5c]=_0x47025c(0x346),_0x228076[_0x228076[_0x47025c(0x405)]=0x1f41]=_0x47025c(0x405),_0x228076[_0x228076[_0x47025c(0x3f3)]=0x2329]=_0x47025c(0x3f3),_0x228076[_0x228076[_0x47025c(0x3b3)]=0x232a]='LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED',_0x228076[_0x228076['LICENSE_IMPORT_SIZE_EXCEEDED']=0x232b]=_0x47025c(0x55b),_0x228076[_0x228076[_0x47025c(0x385)]=0x232c]=_0x47025c(0x385),_0x228076[_0x228076[_0x47025c(0x3a8)]=0x232d]=_0x47025c(0x3a8),_0x228076[_0x228076['YUUMI_UNABLE_LOAD_URL']=0x2711]=_0x47025c(0x2ae),_0x228076[_0x228076[_0x47025c(0x2fc)]=0x2712]='YUUMI_URL_COL_OUT_OF_RANGE',_0x228076[_0x228076[_0x47025c(0x2e1)]=-0x1]=_0x47025c(0x2e1),_0x228076))(ft||{}),j=(_0x39d642=>(_0x39d642[_0x39d642['UNIVER_UNKNOWN']=0x0]=_0x47025c(0x464),_0x39d642[_0x39d642[_0x47025c(0x324)]=0x1]=_0x47025c(0x324),_0x39d642[_0x39d642['UNIVER_SHEET']=0x2]=_0x47025c(0x379),_0x39d642[_0x39d642[_0x47025c(0x315)]=0x3]=_0x47025c(0x315),_0x39d642[_0x39d642[_0x47025c(0x2e1)]=-0x1]='UNRECOGNIZED',_0x39d642))(j||{}),b=(_0x17b019=>(_0x17b019[_0x17b019[_0x47025c(0x5a3)]=0x0]=_0x47025c(0x5a3),_0x17b019[_0x17b019[_0x47025c(0x508)]=0x1]=_0x47025c(0x508),_0x17b019[_0x17b019['JOIN']=0x2]=_0x47025c(0x37f),_0x17b019[_0x17b019['LEAVE']=0x3]=_0x47025c(0x469),_0x17b019[_0x17b019['INGEST']=0x4]='INGEST',_0x17b019[_0x17b019[_0x47025c(0x390)]=0x5]='HEARTBEAT',_0x17b019[_0x17b019['RECV']=0x6]=_0x47025c(0x2ff),_0x17b019[_0x17b019[_0x47025c(0x2e1)]=-0x1]=_0x47025c(0x2e1),_0x17b019))(b||{}),ke=(_0x1801f5=>(_0x1801f5[_0x1801f5[_0x47025c(0x445)]=0x0]=_0x47025c(0x445),_0x1801f5[_0x1801f5['OK']=0x1]='OK',_0x1801f5[_0x1801f5[_0x47025c(0x5a1)]=0x2]='FAIL',_0x1801f5[_0x1801f5[_0x47025c(0x2e1)]=-0x1]=_0x47025c(0x2e1),_0x1801f5))(ke||{}),Jt=Object[_0x47025c(0x430)],Zt=Object[_0x47025c(0x348)],Qt=(_0xb45e61,_0x4dee19,_0xbd5d1d,_0x5cf4c5)=>{for(var _0xce4f11=_0x5cf4c5>0x1?void 0x0:_0x5cf4c5?Zt(_0x4dee19,_0xbd5d1d):_0x4dee19,_0x59944b=_0xb45e61['length']-0x1,_0x4b0d04;_0x59944b>=0x0;_0x59944b--)(_0x4b0d04=_0xb45e61[_0x59944b])&&(_0xce4f11=(_0x5cf4c5?_0x4b0d04(_0x4dee19,_0xbd5d1d,_0xce4f11):_0x4b0d04(_0xce4f11))||_0xce4f11);return _0x5cf4c5&&_0xce4f11&&Jt(_0x4dee19,_0xbd5d1d,_0xce4f11),_0xce4f11;},Ke=(_0x428635,_0x30ecab)=>(_0x4c420e,_0x4f0128)=>_0x30ecab(_0x4c420e,_0x4f0128,_0x428635);let G=class extends a[_0x47025c(0x431)]{constructor(_0x3a98a8,_0x30c5d0){const _0x40c310=_0x47025c;super(),d(this,_0x40c310(0x398),new Map()),(this[_0x40c310(0x507)]=_0x3a98a8,this[_0x40c310(0x3d0)]=_0x30c5d0,this[_0x40c310(0x4dd)](a[_0x40c310(0x26c)](g[_0x40c310(0x2e0)](this[_0x40c310(0x507)][_0x40c310(0x4e3)](a[_0x40c310(0x3fb)][_0x40c310(0x379)])[_0x40c310(0x252)](T[_0x40c310(0x2ab)](_0x18b1af=>_0x18b1af[_0x40c310(0x518)]())),this[_0x40c310(0x507)]['getTypeOfUnitDisposed$'](a[_0x40c310(0x3fb)][_0x40c310(0x324)])[_0x40c310(0x252)](T['map'](_0x57dfcf=>_0x57dfcf[_0x40c310(0x518)]())),this[_0x40c310(0x507)][_0x40c310(0x4e3)](a[_0x40c310(0x3fb)][_0x40c310(0x315)])[_0x40c310(0x252)](T['map'](_0x18b164=>_0x18b164['getUnitId']())))[_0x40c310(0x588)](_0x31ac16=>this['_removeRoom'](_0x31ac16)))));}[_0x47025c(0x2c3)](_0x52e764){const _0x3076e6=_0x47025c;this[_0x3076e6(0x3d0)][_0x3076e6(0x2c3)](_0x52e764);}['getCurrentUser'](){const _0x5acdab=_0x47025c;return this[_0x5acdab(0x3d0)][_0x5acdab(0x3b0)]();}['updateMember'](_0x33d174,_0x83d8e0){const _0x344914=_0x47025c;let _0x4ad155=this['_roomMembers'][_0x344914(0x372)](_0x33d174);_0x4ad155||(_0x4ad155=new es(),this['_roomMembers'][_0x344914(0x279)](_0x33d174,_0x4ad155)),_0x4ad155[_0x344914(0x218)](_0x83d8e0);}[_0x47025c(0x329)](_0x54824b,_0x39a355){const _0x168915=_0x47025c,_0x336314=this['_roomMembers'][_0x168915(0x372)](_0x54824b);_0x336314&&_0x336314[_0x168915(0x329)](_0x39a355);}[_0x47025c(0x474)](_0x2a2679){const _0x183ae8=_0x47025c;return this[_0x183ae8(0x398)]['get'](_0x2a2679);}[_0x47025c(0x489)](_0x23dbab,_0x3f21ec){const _0x4df94a=_0x47025c,_0x3d907c=this[_0x4df94a(0x398)]['get'](_0x23dbab);if(_0x3d907c)return _0x3d907c[_0x4df94a(0x489)](_0x3f21ec);}[_0x47025c(0x23d)](_0xaf9868){const _0x402e62=_0x47025c,_0x413e16=this[_0x402e62(0x398)][_0x402e62(0x372)](_0xaf9868);_0x413e16&&(_0x413e16[_0x402e62(0x3d3)](),this[_0x402e62(0x398)][_0x402e62(0x57c)](_0xaf9868));}['dispose'](){const _0x35bbf4=_0x47025c;this['_roomMembers']['forEach'](_0x3b5af1=>_0x3b5af1[_0x35bbf4(0x3d3)]()),this['_roomMembers'][_0x35bbf4(0x4c6)]();}};G=Qt([Ke(0x0,a[_0x47025c(0x4d6)]),Ke(0x1,h[_0x47025c(0x36d)](a['UserManagerService']))],G);class es extends a['Disposable']{constructor(){super(...arguments),d(this,'_members',new Map());}[_0x47025c(0x3d3)](){const _0x59562c=_0x47025c;this[_0x59562c(0x4fe)][_0x59562c(0x4c6)]();}['updateMember'](_0x27a58d){const _0x390299=_0x47025c;this['_members'][_0x390299(0x279)](_0x27a58d['memberID'],_0x27a58d);}[_0x47025c(0x329)](_0x11f63f){const _0x197e50=_0x47025c;this[_0x197e50(0x4fe)]['delete'](_0x11f63f);}['getMember'](_0x75d0dc){return this['_members']['get'](_0x75d0dc);}}function mt(_0x2497a4){const _0x1f7004=_0x47025c;var _0x40c4a9,_0x3ff4c4,_0x2261b0,_0xb4d555;const _0xc36ddf=_0x2497a4[_0x1f7004(0x272)],_0x129f03=JSON[_0x1f7004(0x2b5)](_0xc36ddf);switch(_0x129f03['cmd']){case b['HEARTBEAT']:case b[_0x1f7004(0x508)]:{const _0x3eaa5c=_0x129f03[_0x1f7004(0x579)];return{..._0x129f03,'data':_0x3eaa5c,'cmd':_0x129f03['cmd']};}case b[_0x1f7004(0x37f)]:{const _0x2b92ad=_0x129f03['joinRsp'];return{..._0x129f03,'data':_0x2b92ad,'cmd':_0x129f03[_0x1f7004(0x4e7)]};}case b[_0x1f7004(0x2ff)]:{const _0x155796=_0x129f03[_0x1f7004(0x277)];switch(_0x155796['eventID']){case u[_0x1f7004(0x470)]['PERMISSION_REJ']:return{..._0x129f03,'data':{..._0x155796,'data':(_0x40c4a9=_0x155796[_0x1f7004(0x387)])==null?void 0x0:_0x40c4a9['cs']},'cmd':_0x129f03[_0x1f7004(0x4e7)]};case u[_0x1f7004(0x470)]['CHANGESET_ACK']:return{..._0x129f03,'data':{..._0x155796,'data':(_0x3ff4c4=_0x155796[_0x1f7004(0x219)])==null?void 0x0:_0x3ff4c4['cs']},'cmd':_0x129f03['cmd']};case u['CollaborationEvent']['NEW_CHANGESETS']:return{..._0x129f03,'data':{..._0x155796,'data':(_0x2261b0=_0x155796['newCsEvent'])==null?void 0x0:_0x2261b0['cs']},'cmd':_0x129f03[_0x1f7004(0x4e7)]};case u[_0x1f7004(0x470)]['CHANGESET_REJ']:return{..._0x129f03,'data':{..._0x155796,'data':(_0xb4d555=_0x155796['csRejEvent'])==null?void 0x0:_0xb4d555['cs']},'cmd':_0x129f03['cmd']};case u[_0x1f7004(0x470)][_0x1f7004(0x4e9)]:return{..._0x129f03,'data':{..._0x155796,'data':_0x155796['updateCursorEvent']},'cmd':_0x129f03[_0x1f7004(0x4e7)]};case u['CollaborationEvent'][_0x1f7004(0x453)]:return{..._0x129f03,'data':{..._0x155796,'data':_0x155796[_0x1f7004(0x451)]},'cmd':_0x129f03[_0x1f7004(0x4e7)]};case u['CollaborationEvent'][_0x1f7004(0x220)]:return{..._0x129f03,'data':{..._0x155796,'data':_0x155796[_0x1f7004(0x4ba)]},'cmd':_0x129f03[_0x1f7004(0x4e7)]};case u['CollaborationEvent']['LIVESHARE_NEW_HOST']:return{..._0x129f03,'data':{..._0x155796,'data':_0x155796[_0x1f7004(0x331)]},'cmd':_0x129f03[_0x1f7004(0x4e7)]};case u['CollaborationEvent']['LIVESHARE_FETCH_OPERATIONS']:case u[_0x1f7004(0x470)]['LIVESHARE_OPERATION']:return{..._0x129f03,'data':{..._0x155796,'data':_0x155796[_0x1f7004(0x499)]},'cmd':_0x129f03[_0x1f7004(0x4e7)]};case u['CollaborationEvent']['LIVESHARE_TERMINATE']:return{..._0x129f03,'data':{..._0x155796,'data':_0x155796['liveShareNewHost']},'cmd':_0x129f03[_0x1f7004(0x4e7)]};case u[_0x1f7004(0x470)][_0x1f7004(0x2e7)]:return{..._0x129f03,'data':_0x155796,'cmd':_0x129f03[_0x1f7004(0x4e7)]};default:return _0x129f03;}}default:return _0x129f03;}}function It(_0x389774){const _0x2a2932=_0x47025c;switch(_0x389774[_0x2a2932(0x4e7)]){case b['HEARTBEAT']:case b[_0x2a2932(0x508)]:return JSON[_0x2a2932(0x3a7)]({'cmd':_0x389774[_0x2a2932(0x4e7)],'routeKey':_0x389774[_0x2a2932(0x543)]});case b[_0x2a2932(0x2f0)]:{let _0x1c7f7e;switch(_0x389774[_0x2a2932(0x272)]['eventID']){case u[_0x2a2932(0x470)][_0x2a2932(0x4e9)]:{_0x1c7f7e={'eventID':u[_0x2a2932(0x470)][_0x2a2932(0x4e9)],'updateCursorEvent':_0x389774[_0x2a2932(0x272)][_0x2a2932(0x272)]};break;}case u['CollaborationEvent'][_0x2a2932(0x220)]:{_0x1c7f7e={'eventID':u[_0x2a2932(0x470)][_0x2a2932(0x220)],'leaveEvent':_0x389774[_0x2a2932(0x272)][_0x2a2932(0x272)]};break;}case u['CollaborationEvent'][_0x2a2932(0x453)]:{_0x1c7f7e={'eventID':u[_0x2a2932(0x470)][_0x2a2932(0x453)],'joinEvent':_0x389774[_0x2a2932(0x272)]['data']};break;}case u[_0x2a2932(0x470)][_0x2a2932(0x1ed)]:{_0x1c7f7e={'eventID':u[_0x2a2932(0x470)][_0x2a2932(0x1ed)],'liveShareNewHost':_0x389774[_0x2a2932(0x272)][_0x2a2932(0x272)]};break;}case u['CollaborationEvent'][_0x2a2932(0x33b)]:{_0x1c7f7e={'eventID':u[_0x2a2932(0x470)]['LIVESHARE_OPERATION'],'liveShareOperation':_0x389774[_0x2a2932(0x272)][_0x2a2932(0x272)]};break;}case u['CollaborationEvent'][_0x2a2932(0x419)]:{_0x1c7f7e={'eventID':u['CollaborationEvent']['LIVESHARE_TERMINATE'],'liveShareTerminate':_0x389774[_0x2a2932(0x272)][_0x2a2932(0x272)]};break;}case u[_0x2a2932(0x470)][_0x2a2932(0x2b1)]:{_0x1c7f7e={'eventID':u[_0x2a2932(0x470)]['LIVESHARE_REQUEST_HOST'],'liveShareRequestHost':_0x389774[_0x2a2932(0x272)][_0x2a2932(0x272)]};break;}case u[_0x2a2932(0x470)][_0x2a2932(0x58d)]:{_0x1c7f7e={'eventID':u[_0x2a2932(0x470)][_0x2a2932(0x58d)]};break;}default:_0x1c7f7e={'eventID':_0x389774[_0x2a2932(0x272)]['eventID']};}return JSON[_0x2a2932(0x3a7)]({'cmd':_0x389774[_0x2a2932(0x4e7)],'routeKey':_0x389774[_0x2a2932(0x543)],'collaMsg':_0x1c7f7e});}case b[_0x2a2932(0x37f)]:return JSON[_0x2a2932(0x3a7)]({'cmd':_0x389774['cmd'],'routeKey':_0x389774[_0x2a2932(0x543)],'joinReq':_0x389774[_0x2a2932(0x272)]});case b[_0x2a2932(0x469)]:return JSON[_0x2a2932(0x3a7)]({'cmd':_0x389774['cmd'],'routeKey':_0x389774[_0x2a2932(0x543)],'leaveReq':_0x389774['data']});default:throw new Error(_0x2a2932(0x421));}}var ts=Object[_0x47025c(0x430)],ss=Object['getOwnPropertyDescriptor'],is=(_0x201f91,_0x382e94,_0x20a2aa,_0x5150a3)=>{for(var _0x316f5a=_0x5150a3>0x1?void 0x0:_0x5150a3?ss(_0x382e94,_0x20a2aa):_0x382e94,_0x359639=_0x201f91['length']-0x1,_0x18b756;_0x359639>=0x0;_0x359639--)(_0x18b756=_0x201f91[_0x359639])&&(_0x316f5a=(_0x5150a3?_0x18b756(_0x382e94,_0x20a2aa,_0x316f5a):_0x18b756(_0x316f5a))||_0x316f5a);return _0x5150a3&&_0x316f5a&&ts(_0x382e94,_0x20a2aa,_0x316f5a),_0x316f5a;},te=(_0x4ff078,_0x709b89)=>(_0x3ee81f,_0x31dd21)=>_0x709b89(_0x3ee81f,_0x31dd21,_0x4ff078);const Be=h[_0x47025c(0x418)](_0x47025c(0x52d));function ns(_0x2f2b17,_0x5973c2,_0x1eefda){const _0x30b13f=_0x47025c;return _0x2f2b17+'/'+_0x5973c2+_0x30b13f(0x206)+_0x1eefda+_0x30b13f(0x209);}exports[_0x47025c(0x2be)]=class{constructor(_0x1c09aa,_0x39816e,_0x4ee977,_0x432e26,_0x47752f){const _0x152e47=_0x47025c;this[_0x152e47(0x441)]=_0x1c09aa,this[_0x152e47(0x23f)]=_0x39816e,this[_0x152e47(0x328)]=_0x4ee977,this[_0x152e47(0x4f9)]=_0x432e26,this[_0x152e47(0x1fa)]=_0x47752f;}[_0x47025c(0x3e7)](_0x3b0aef){const _0x1ec85a=_0x47025c,_0x13ca41=this[_0x1ec85a(0x23f)]['createSocket'](_0x3b0aef);if(!_0x13ca41)throw new Error(_0x1ec85a(0x235));const _0x2841b4=new a[(_0x1ec85a(0x2bc))](),_0x2503b2=new g[(_0x1ec85a(0x569))]();_0x2841b4[_0x1ec85a(0x563)](a[_0x1ec85a(0x26c)](_0x13ca41[_0x1ec85a(0x3d6)][_0x1ec85a(0x588)](_0x1e45b9=>_0x2503b2[_0x1ec85a(0x361)](_0x1e45b9)))),_0x2841b4[_0x1ec85a(0x563)](a[_0x1ec85a(0x26c)](()=>_0x2503b2[_0x1ec85a(0x5a5)]()));const _0xac7c45=new g[(_0x1ec85a(0x569))]();_0x2841b4[_0x1ec85a(0x563)](a[_0x1ec85a(0x26c)](_0x13ca41['error$'][_0x1ec85a(0x588)](_0x4a6f00=>_0xac7c45[_0x1ec85a(0x361)](_0x4a6f00)))),_0x2841b4[_0x1ec85a(0x563)](a[_0x1ec85a(0x26c)](()=>_0xac7c45['complete']()));const _0x14658c=new g[(_0x1ec85a(0x569))]();_0x2841b4[_0x1ec85a(0x563)](a[_0x1ec85a(0x26c)](_0x13ca41[_0x1ec85a(0x54e)][_0x1ec85a(0x588)](_0x5c41b2=>{const _0x5d3e86=_0x1ec85a,_0x2e8701=mt(_0x5c41b2);_0x14658c[_0x5d3e86(0x361)](_0x2e8701);}))),_0x2841b4[_0x1ec85a(0x563)](a[_0x1ec85a(0x26c)](()=>_0x14658c[_0x1ec85a(0x5a5)]()));const _0xf5a82d=()=>{const _0x2fbc91=_0x1ec85a;_0xac7c45[_0x2fbc91(0x361)](new Event(_0x2fbc91(0x4c2))),_0x2503b2[_0x2fbc91(0x361)](new CloseEvent('connection\x20error')),_0x4cb9f3[_0x2fbc91(0x535)]();},_0x4cb9f3={'memberID':'','close$':_0x2503b2['asObservable'](),'error$':_0xac7c45['asObservable'](),'open$':_0x13ca41[_0x1ec85a(0x393)],'message$':_0x14658c[_0x1ec85a(0x435)](),'send':_0x4301ca=>{const _0xff3399=_0x1ec85a;if(_0x4301ca[_0xff3399(0x4e7)]===b['INGEST']){if(_0x4301ca[_0xff3399(0x272)][_0xff3399(0x403)]===u[_0xff3399(0x470)][_0xff3399(0x4ad)]){this[_0xff3399(0x59d)](_0x4cb9f3,_0x4301ca['data'])[_0xff3399(0x4ff)](_0x28a4f6=>{const _0x2968fc=_0xff3399;this[_0x2968fc(0x4f9)]['error'](_0x28a4f6),_0xf5a82d();});return;}if(_0x4301ca[_0xff3399(0x272)]['eventID']===u[_0xff3399(0x470)][_0xff3399(0x4d8)]){const _0x3abd61=_0x4301ca[_0xff3399(0x272)];this['_fetchMissChangesets'](_0x3abd61)[_0xff3399(0x4ec)](_0x12a5d8=>{const _0x3210dd=_0xff3399;_0x14658c['next']({'cmd':b['RECV'],'code':ke['OK'],'routeKey':_0x3abd61[_0x3210dd(0x272)][_0x3210dd(0x20e)],'routeType':'','data':{'eventID':u['CollaborationEvent']['PSEUDO_FETCH_MISSING_RESULT'],'data':{'changesets':_0x12a5d8}}});})[_0xff3399(0x4ff)](_0x37afa1=>{const _0x1d7c95=_0xff3399;this[_0x1d7c95(0x4f9)][_0x1d7c95(0x3ce)](_0x37afa1),_0xf5a82d();});return;}}_0x13ca41[_0xff3399(0x46b)](It(_0x4301ca));},'close':()=>{const _0x444502=_0x1ec85a;_0x13ca41[_0x444502(0x535)](),_0x2841b4[_0x444502(0x3d3)]();}};return _0x4cb9f3;}async[_0x47025c(0x59d)](_0x1edf09,_0xdd52c0){const _0x5f5c7a=_0x47025c;var _0x50db4c;const {unitType:_0x54f4ce,unitID:_0x1caf2f,changeset:_0x289d1a}=_0xdd52c0[_0x5f5c7a(0x272)],_0x15cd49={'unitID':_0x1caf2f,'memberID':_0x1edf09[_0x5f5c7a(0x290)],'type':_0x54f4ce,'changeset':u[_0x5f5c7a(0x476)](_0x289d1a)},_0x57fc8b=ns((_0x50db4c=this[_0x5f5c7a(0x328)][_0x5f5c7a(0x501)](vt))!=null?_0x50db4c:qt,_0x54f4ce,_0x1caf2f);try{await this[_0x5f5c7a(0x441)][_0x5f5c7a(0x237)](_0x57fc8b,{'body':_0x15cd49});}catch(_0x2631d2){throw this['_logService'][_0x5f5c7a(0x3ce)](_0x5f5c7a(0x436),_0x5f5c7a(0x4fd)),_0x2631d2;}}async[_0x47025c(0x57b)](_0xa2842){const _0x282c48=_0x47025c,{unitID:_0x10811c,from:_0x309a4e,to:_0x5460cd,unitType:_0x45eecc}=_0xa2842[_0x282c48(0x272)];return(await this[_0x282c48(0x1fa)][_0x282c48(0x3c8)]({'metadata':void 0x0},{'unitID':_0x10811c,'type':_0x45eecc,'from':_0x309a4e,'to':_0x5460cd}))[_0x282c48(0x2f2)];}},exports[_0x47025c(0x2be)]=is([te(0x0,h[_0x47025c(0x36d)](L[_0x47025c(0x598)])),te(0x1,h[_0x47025c(0x36d)](L['WebSocketService'])),te(0x2,a['IConfigService']),te(0x3,a[_0x47025c(0x38a)]),te(0x4,a[_0x47025c(0x311)])],exports[_0x47025c(0x2be)]);var rs=Object[_0x47025c(0x430)],os=Object[_0x47025c(0x348)],pt=(_0x31c140,_0x1911fc,_0x516ef5,_0x5151b0)=>{const _0x564fb2=_0x47025c;for(var _0x18e7b4=_0x5151b0>0x1?void 0x0:_0x5151b0?os(_0x1911fc,_0x516ef5):_0x1911fc,_0x339742=_0x31c140[_0x564fb2(0x2e3)]-0x1,_0x145c74;_0x339742>=0x0;_0x339742--)(_0x145c74=_0x31c140[_0x339742])&&(_0x18e7b4=(_0x5151b0?_0x145c74(_0x1911fc,_0x516ef5,_0x18e7b4):_0x145c74(_0x18e7b4))||_0x18e7b4);return _0x5151b0&&_0x18e7b4&&rs(_0x1911fc,_0x516ef5,_0x18e7b4),_0x18e7b4;},P=(_0x5128e5,_0x8ba814)=>(_0x1267ff,_0x51b9cf)=>_0x8ba814(_0x1267ff,_0x51b9cf,_0x5128e5),W=(_0xb0602a=>(_0xb0602a[_0xb0602a['IDLE']=0x0]=_0x47025c(0x3d1),_0xb0602a[_0xb0602a[_0x47025c(0x4a5)]=0x1]=_0x47025c(0x4a5),_0xb0602a[_0xb0602a['OFFLINE']=0x2]=_0x47025c(0x2a8),_0xb0602a[_0xb0602a['ONLINE']=0x3]=_0x47025c(0x511),_0xb0602a))(W||{});exports['CollaborationSession']=class extends a[_0x47025c(0x3ff)]{constructor(_0x5cdf60,_0xe87535,_0x31dad9,_0x4bc77d,_0x1fd41f,_0x20ee62,_0x271a92,_0x18d593){const _0x54bc21=_0x47025c;super(),d(this,_0x54bc21(0x52f),new g[(_0x54bc21(0x3a1))](0x0)),d(this,_0x54bc21(0x4cc),this['_sessionStatus$'][_0x54bc21(0x435)]()),d(this,_0x54bc21(0x37b),new g[(_0x54bc21(0x569))]()),d(this,_0x54bc21(0x262),this[_0x54bc21(0x37b)]['asObservable']()),d(this,_0x54bc21(0x50e)),d(this,_0x54bc21(0x467)),d(this,'_collaborationTimeoutTimer'),(this['_unitID']=_0x5cdf60,this[_0x54bc21(0x4f9)]=_0x31dad9,this[_0x54bc21(0x4bf)]=_0x4bc77d,this[_0x54bc21(0x4a0)]=_0x1fd41f,this[_0x54bc21(0x328)]=_0x20ee62,this[_0x54bc21(0x433)]=_0x271a92,this[_0x54bc21(0x3e6)]=_0x18d593,_0xe87535['pipe'](T[_0x54bc21(0x483)](this[_0x54bc21(0x3f4)]))[_0x54bc21(0x588)](_0x19b79b=>{const _0x396b7f=_0x54bc21;var _0x303e7e;typeof _0x19b79b>'u'||(this[_0x396b7f(0x50e)]=_0x19b79b,_0x19b79b?(this[_0x396b7f(0x54c)](_0x19b79b),this[_0x396b7f(0x467)]=this[_0x396b7f(0x50e)][_0x396b7f(0x54e)][_0x396b7f(0x588)](_0x1579b9=>{const _0x2ede0c=_0x396b7f;_0x1579b9[_0x2ede0c(0x543)]===this[_0x2ede0c(0x4a2)]&&this[_0x2ede0c(0x484)](_0x1579b9);})):(this[_0x396b7f(0x52f)][_0x396b7f(0x361)](0x2),(_0x303e7e=this[_0x396b7f(0x467)])==null||_0x303e7e[_0x396b7f(0x38d)](),this[_0x396b7f(0x467)]=null));}),this['disposeWithMe'](this[_0x54bc21(0x4bf)][_0x54bc21(0x523)](()=>{const _0x26343a=_0x54bc21;var _0x1aa411;(_0x1aa411=this[_0x26343a(0x50e)])==null||_0x1aa411[_0x26343a(0x46b)]({'cmd':b[_0x26343a(0x469)],'data':{'roomID':this[_0x26343a(0x4a2)]}});})));}get[_0x47025c(0x534)](){const _0x55cf94=_0x47025c;return this[_0x55cf94(0x52f)][_0x55cf94(0x2de)]();}[_0x47025c(0x4c5)](){const _0x295d47=_0x47025c;var _0x2772a8,_0x55133f;return(_0x55133f=(_0x2772a8=this[_0x295d47(0x50e)])==null?void 0x0:_0x2772a8[_0x295d47(0x290)])!=null?_0x55133f:null;}[_0x47025c(0x3d3)](){const _0x4b8b85=_0x47025c;super[_0x4b8b85(0x3d3)](),this[_0x4b8b85(0x3f4)][_0x4b8b85(0x361)](),this['dispose$']['complete']();}[_0x47025c(0x484)](_0x14c5e6){const _0x31a547=_0x47025c;_0x14c5e6[_0x31a547(0x4e7)]===b[_0x31a547(0x37f)]?this[_0x31a547(0x59e)](_0x14c5e6):_0x14c5e6[_0x31a547(0x4e7)]===b[_0x31a547(0x2ff)]&&this['_onRecvEvent'](_0x14c5e6);}['_joinRoom'](_0x15d45d){const _0x539669=_0x47025c;this[_0x539669(0x52f)]['next'](0x1),_0x15d45d['send']({'cmd':b[_0x539669(0x37f)],'routeKey':this[_0x539669(0x4a2)],'routeType':'','data':{'rooms':[{'roomID':this[_0x539669(0x4a2)]}]}});}[_0x47025c(0x59e)](_0x525861){const _0x15dd6d=_0x47025c;var _0x41a519;if(_0x525861['code']===ke[_0x15dd6d(0x5a1)]){this[_0x15dd6d(0x4a0)][_0x15dd6d(0x278)]({'type':oe[_0x15dd6d(0x3f5)][_0x15dd6d(0x343)],'content':this['_localeService']['t'](_0x15dd6d(0x4f7))}),this[_0x15dd6d(0x52f)][_0x15dd6d(0x361)](0x2);return;}this[_0x15dd6d(0x52f)]['next'](0x3);const _0x5e63fb=(_0x41a519=_0x525861[_0x15dd6d(0x272)][_0x15dd6d(0x53d)][this[_0x15dd6d(0x4a2)]])==null?void 0x0:_0x41a519[_0x15dd6d(0x427)];_0x5e63fb&&_0x5e63fb[_0x15dd6d(0x4e0)](_0x27c06b=>this[_0x15dd6d(0x3e6)][_0x15dd6d(0x218)](this[_0x15dd6d(0x4a2)],_0x27c06b));}[_0x47025c(0x215)](_0x25e6cb){const _0x5035da=_0x47025c;try{const _0x64a0f9=_0x25e6cb[_0x5035da(0x272)];switch(_0x64a0f9[_0x5035da(0x403)]){case u['CollaborationEvent']['USERS_ENTER']:this['_onUserJoin'](_0x64a0f9),this[_0x5035da(0x37b)]['next'](_0x64a0f9);break;case u[_0x5035da(0x470)]['USERS_LEAVE']:this[_0x5035da(0x3c2)](_0x64a0f9),this[_0x5035da(0x37b)][_0x5035da(0x361)](_0x64a0f9);break;case u[_0x5035da(0x470)]['CHANGESET_ACK']:this[_0x5035da(0x34b)](),this[_0x5035da(0x37b)][_0x5035da(0x361)](_0x64a0f9);break;case u[_0x5035da(0x470)][_0x5035da(0x2e7)]:this[_0x5035da(0x4f9)][_0x5035da(0x3ce)]('save\x20fail\x20reason\x20is\x20'+JSON[_0x5035da(0x3a7)](_0x64a0f9)),this[_0x5035da(0x37b)]['next'](_0x64a0f9);break;default:this['_event$'][_0x5035da(0x361)](_0x64a0f9);}}catch(_0x4c7b77){this[_0x5035da(0x4f9)][_0x5035da(0x3ce)](_0x4c7b77,_0x25e6cb);}}[_0x47025c(0x2da)](_0x1d0741){const _0x2719d9=_0x47025c;this[_0x2719d9(0x3e6)][_0x2719d9(0x218)](this[_0x2719d9(0x4a2)],_0x1d0741[_0x2719d9(0x272)]);}[_0x47025c(0x3c2)](_0x5e68ca){const _0x311951=_0x47025c;this[_0x311951(0x3e6)]['removeMember'](this[_0x311951(0x4a2)],_0x5e68ca['data'][_0x311951(0x290)]);}async[_0x47025c(0x46b)](_0x199be8,_0x11e9f5){const _0xd4a5b9=_0x47025c;if(this['sessionStatus']!==0x3||!this[_0xd4a5b9(0x50e)])throw new Error(_0xd4a5b9(0x224));try{_0x199be8[_0xd4a5b9(0x403)]===u['CollaborationEvent']['NEW_CHANGESETS']&&this[_0xd4a5b9(0x3b9)](),this['_socket']['send']({'cmd':b[_0xd4a5b9(0x2f0)],'routeKey':_0x11e9f5,'routeType':'','data':_0x199be8});}catch(_0x4d060b){this[_0xd4a5b9(0x4f9)]['error'](_0x4d060b);}}[_0x47025c(0x3b9)](){const _0x17a250=_0x47025c;var _0x777760;this[_0x17a250(0x254)]=window['setTimeout'](()=>{const _0x1af4ad=_0x17a250;this['_collaborationTimeoutTimer']=null,this[_0x1af4ad(0x4a0)][_0x1af4ad(0x278)]({'type':oe[_0x1af4ad(0x3f5)][_0x1af4ad(0x4df)],'content':this[_0x1af4ad(0x433)]['t'](_0x1af4ad(0x4da))});},(_0x777760=this[_0x17a250(0x328)][_0x17a250(0x501)](xe))!=null?_0x777760:dt);}[_0x47025c(0x34b)](){const _0x2c8d05=_0x47025c;this[_0x2c8d05(0x254)]&&(clearTimeout(this[_0x2c8d05(0x254)]),this[_0x2c8d05(0x254)]=null);}},exports[_0x47025c(0x43c)]=pt([P(0x2,a[_0x47025c(0x38a)]),P(0x3,N[_0x47025c(0x31c)]),P(0x4,N[_0x47025c(0x367)]),P(0x5,a['IConfigService']),P(0x6,h[_0x47025c(0x36d)](a[_0x47025c(0x3f8)])),P(0x7,h[_0x47025c(0x36d)](G))],exports[_0x47025c(0x43c)]),exports[_0x47025c(0x2ad)]=class extends a[_0x47025c(0x431)]{constructor(_0x1db0a7,_0x577b38,_0x4199a2,_0x41f10b,_0x41f529,_0x307c3a){const _0xa74663=_0x47025c;super(),d(this,_0xa74663(0x336),new g[(_0xa74663(0x3a1))](void 0x0)),d(this,_0xa74663(0x39d),new Map()),d(this,_0xa74663(0x50c),new g[(_0xa74663(0x3a1))](0x0)),d(this,'status$',this['_status$']['asObservable']()),d(this,'_socketReady',!0x1),d(this,_0xa74663(0x4f0)),d(this,'_timeoutTimer'),d(this,_0xa74663(0x4cf)),d(this,_0xa74663(0x4ac),0x0),(this[_0xa74663(0x2af)]=_0x1db0a7,this[_0xa74663(0x433)]=_0x577b38,this[_0xa74663(0x4a0)]=_0x4199a2,this[_0xa74663(0x4f9)]=_0x41f10b,this[_0xa74663(0x328)]=_0x41f529,this['_socketService']=_0x307c3a);}get[_0x47025c(0x50e)](){const _0x20d5f2=_0x47025c;return this['_socket$'][_0x20d5f2(0x2de)]();}['dispose'](){const _0x815271=_0x47025c;super['dispose'](),this['_sessions'][_0x815271(0x4e0)](_0x551442=>_0x551442[_0x815271(0x3d3)]()),this['_sessions'][_0x815271(0x4c6)](),this[_0x815271(0x50c)][_0x815271(0x5a5)]();}async[_0x47025c(0x553)](_0x3e3c5c){const _0x175891=_0x47025c;if(this[_0x175891(0x39d)]['has'](_0x3e3c5c))return this['_sessions']['get'](_0x3e3c5c);this['_tryEnsureSocket']();const _0x4e9474=this[_0x175891(0x2af)][_0x175891(0x4a7)](exports['CollaborationSession'],_0x3e3c5c,this[_0x175891(0x336)][_0x175891(0x435)]());return this[_0x175891(0x39d)][_0x175891(0x279)](_0x3e3c5c,_0x4e9474),_0x4e9474;}[_0x47025c(0x479)](){const _0x402b64=_0x47025c;var _0x17f7e9;const _0x3d4012=(_0x17f7e9=this['_configService']['getConfig'](_t))!=null?_0x17f7e9:Ft;return this[_0x402b64(0x301)][_0x402b64(0x3e7)](_0x3d4012);}[_0x47025c(0x4c9)](){const _0x5874d0=_0x47025c;try{const _0x47b742=this['_createSocket']();if(_0x47b742){const _0xdf96=_0x47b742[_0x5874d0(0x46b)];_0x47b742['send']=_0x3587bd=>(this[_0x5874d0(0x29f)](),_0xdf96[_0x5874d0(0x46d)](_0x47b742,[_0x3587bd])),_0x47b742[_0x5874d0(0x54e)][_0x5874d0(0x588)](_0xb7455=>this[_0x5874d0(0x48d)](_0x47b742,_0xb7455)),_0x47b742[_0x5874d0(0x231)][_0x5874d0(0x252)](T[_0x5874d0(0x402)](0x1))[_0x5874d0(0x588)](_0x1747e5=>this[_0x5874d0(0x4f9)][_0x5874d0(0x3ce)](_0x5874d0(0x3fd),_0x1747e5)),_0x47b742[_0x5874d0(0x393)][_0x5874d0(0x252)](T[_0x5874d0(0x402)](0x1))[_0x5874d0(0x588)](()=>{this['_onConnectionOpen'](_0x47b742);}),_0x47b742['close$'][_0x5874d0(0x252)](T[_0x5874d0(0x402)](0x1))['subscribe'](_0x1662e2=>{const _0x4dd0b7=_0x5874d0;this[_0x4dd0b7(0x4f9)]['debug'](_0x4dd0b7(0x33c),'socket\x20close',_0x1662e2),this['_onConnectionFailed']();});}}catch(_0x4f07f5){this[_0x5874d0(0x4f9)][_0x5874d0(0x3ce)](_0x4f07f5),this[_0x5874d0(0x1f7)]();}}[_0x47025c(0x32a)](_0xd9ac0b){const _0x33bd88=_0x47025c;this[_0x33bd88(0x4f9)]['debug'](_0x33bd88(0x33c),'socket\x20open.'),_0xd9ac0b[_0x33bd88(0x46b)]({'cmd':b[_0x33bd88(0x508)]}),this['_rescheduleHeartbeatEvent']();}[_0x47025c(0x1f7)](){const _0x295c42=_0x47025c;var _0x4a9dd3;this['_status$'][_0x295c42(0x361)](0x2),this['_socket$']['next'](null),this[_0x295c42(0x249)](),this[_0x295c42(0x55c)](),this['_socketReady']=!0x1,this[_0x295c42(0x4ac)]<((_0x4a9dd3=this[_0x295c42(0x328)][_0x295c42(0x501)](Yt))!=null?_0x4a9dd3:Kt)?(this['_scheduleReconnection'](this['_retryCount']),this['_retryCount']+=0x1):this[_0x295c42(0x4a0)]['show']({'type':oe[_0x295c42(0x3f5)][_0x295c42(0x4df)],'content':this['_localeService']['t']('session.connection-failed')});}[_0x47025c(0x36f)](_0x4a7cfd){const _0x2862d1=_0x47025c;var _0x5c9bd8;const _0x41c380=((_0x5c9bd8=this['_configService']['getConfig'](Wt))!=null?_0x5c9bd8:Gt)*0x2**_0x4a7cfd;this[_0x2862d1(0x4a0)]['show']({'type':oe[_0x2862d1(0x3f5)]['Warning'],'content':this['_localeService']['t'](_0x2862d1(0x245))}),this[_0x2862d1(0x4cf)]=setTimeout(()=>{const _0x81ef73=_0x2862d1;this['_tryEnsureSocket'](),clearTimeout(this[_0x81ef73(0x4cf)]),this[_0x81ef73(0x4cf)]=null;},_0x41c380);}[_0x47025c(0x29f)](){const _0x4b473c=_0x47025c;var _0x2f53da;this[_0x4b473c(0x55c)](),this['_sendHeartbeatTimer']=setTimeout(()=>this[_0x4b473c(0x3e8)](),(_0x2f53da=this[_0x4b473c(0x328)]['getConfig'](ut))!=null?_0x2f53da:Vt);}[_0x47025c(0x3e8)](){const _0x405ce4=_0x47025c;this[_0x405ce4(0x50e)][_0x405ce4(0x46b)]({'cmd':b[_0x405ce4(0x390)]}),this[_0x405ce4(0x490)]();}['_waitForHeartbeatResponse'](){const _0x3d1445=_0x47025c;var _0x4c5323;this[_0x3d1445(0x584)]=setTimeout(()=>this[_0x3d1445(0x1f7)](),(_0x4c5323=this[_0x3d1445(0x328)][_0x3d1445(0x501)](xe))!=null?_0x4c5323:dt);}[_0x47025c(0x48d)](_0x374d92,_0x56bdb7){const _0x4d01fb=_0x47025c,{cmd:_0x503a4e}=_0x56bdb7;_0x503a4e===b[_0x4d01fb(0x508)]&&!this[_0x4d01fb(0x21a)]&&(_0x374d92[_0x4d01fb(0x290)]=_0x56bdb7['data']['memberID'],this[_0x4d01fb(0x336)][_0x4d01fb(0x361)](_0x374d92),this[_0x4d01fb(0x50c)][_0x4d01fb(0x361)](0x3),this['_socketReady']=!0x0),_0x503a4e===b[_0x4d01fb(0x390)]&&this[_0x4d01fb(0x249)](),this[_0x4d01fb(0x29f)]();}[_0x47025c(0x55c)](){const _0x23d1d3=_0x47025c;this[_0x23d1d3(0x4f0)]!=null&&(clearTimeout(this[_0x23d1d3(0x4f0)]),this[_0x23d1d3(0x4f0)]=null);}[_0x47025c(0x249)](){const _0x5bba20=_0x47025c;this[_0x5bba20(0x584)]!=null&&(clearTimeout(this[_0x5bba20(0x584)]),this['_timeoutTimer']=null);}},exports[_0x47025c(0x2ad)]=pt([P(0x0,h[_0x47025c(0x36d)](h[_0x47025c(0x3c4)])),P(0x1,h[_0x47025c(0x36d)](a['LocaleService'])),P(0x2,N[_0x47025c(0x367)]),P(0x3,a['ILogService']),P(0x4,a[_0x47025c(0x478)]),P(0x5,Be)],exports[_0x47025c(0x2ad)]);var as=Object['defineProperty'],cs=Object[_0x47025c(0x348)],ls=(_0x1dc636,_0x481e51,_0x1998e5,_0x2f3b52)=>{const _0x541a1a=_0x47025c;for(var _0x1c27d4=_0x2f3b52>0x1?void 0x0:_0x2f3b52?cs(_0x481e51,_0x1998e5):_0x481e51,_0x118d2b=_0x1dc636[_0x541a1a(0x2e3)]-0x1,_0xe39bcf;_0x118d2b>=0x0;_0x118d2b--)(_0xe39bcf=_0x1dc636[_0x118d2b])&&(_0x1c27d4=(_0x2f3b52?_0xe39bcf(_0x481e51,_0x1998e5,_0x1c27d4):_0xe39bcf(_0x1c27d4))||_0x1c27d4);return _0x2f3b52&&_0x1c27d4&&as(_0x481e51,_0x1998e5,_0x1c27d4),_0x1c27d4;},se=(_0x2bbff6,_0x1ddae0)=>(_0x5ea775,_0x21dd2d)=>_0x1ddae0(_0x5ea775,_0x21dd2d,_0x2bbff6);exports['LocalCacheService']=class extends a[_0x47025c(0x431)]{constructor(_0x5de1ca,_0x451180,_0xe1a8a3,_0x5a7cdb,_0x21d9ec){const _0x5d7057=_0x47025c;super(),d(this,'_cachedData',new Map()),d(this,_0x5d7057(0x4b8),new Map()),d(this,'_disabled',!0x1),(this[_0x5d7057(0x328)]=_0x5de1ca,this[_0x5d7057(0x50f)]=_0x451180,this[_0x5d7057(0x4bf)]=_0xe1a8a3,this[_0x5d7057(0x433)]=_0x5a7cdb,this[_0x5d7057(0x56c)]=_0x21d9ec,this[_0x5d7057(0x56e)]());}[_0x47025c(0x288)](){this['_disabled']=!0x0;}['enableLocalCache'](){const _0x20fad2=_0x47025c;this[_0x20fad2(0x33d)]=!0x1;}['dispose'](){const _0x568dd0=_0x47025c;this['_exhaustSavingTask']()[_0x568dd0(0x4ec)](()=>super[_0x568dd0(0x3d3)]());}async[_0x47025c(0x40f)](_0x43405d){const _0x4ffcb7=_0x47025c;return this[_0x4ffcb7(0x33d)]?null:this[_0x4ffcb7(0x50f)][_0x4ffcb7(0x260)](Xe(_0x43405d));}async['saveOfflineData'](_0x46f904,_0xa71b2b){const _0xef0883=_0x47025c;return!!this[_0xef0883(0x50f)][_0xef0883(0x29d)](_0x46f904,_0xa71b2b);}[_0x47025c(0x471)](_0x19cea5,_0x99486c,_0x240961,_0x14e9f4){const _0x1f0748=_0x47025c,_0x152a5a=this[_0x1f0748(0x56c)][_0x1f0748(0x432)](_0x19cea5);this[_0x1f0748(0x1f6)][_0x1f0748(0x279)](_0x19cea5,{'unitID':_0x19cea5,'type':_0x99486c,'awaitingChangeset':_0x240961,'mutations':_0x14e9f4,'rev':_0x152a5a}),this['_saveTaskMap'][_0x1f0748(0x49e)](_0x19cea5)||this[_0x1f0748(0x4f4)](_0x19cea5);}[_0x47025c(0x4f4)](_0xc3bd68){const _0x44838b=_0x47025c,_0x5a7d25=this['_getSaveTimeout']();_0x5a7d25===0x0?this['_saveCache'](_0xc3bd68):this['_saveTaskMap'][_0x44838b(0x279)](_0xc3bd68,setTimeout(()=>this[_0x44838b(0x37d)](_0xc3bd68),_0x5a7d25));}[_0x47025c(0x337)](){const _0xa65c77=_0x47025c;var _0x12a408;return(_0x12a408=this[_0xa65c77(0x328)]['getConfig'](St))!=null?_0x12a408:Xt;}[_0x47025c(0x37d)](_0x11fb2a){const _0x49d141=_0x47025c,_0xcd560=this[_0x49d141(0x4b8)]['get'](_0x11fb2a);return _0xcd560!==void 0x0&&window['clearTimeout'](_0xcd560),this[_0x49d141(0x50f)][_0x49d141(0x29d)](Xe(_0x11fb2a),this[_0x49d141(0x1f6)][_0x49d141(0x372)](_0x11fb2a))[_0x49d141(0x4ec)](()=>this['_saveTaskMap'][_0x49d141(0x57c)](_0x11fb2a));}async[_0x47025c(0x35e)](){const _0xc6f828=_0x47025c,_0x1774ae=[];this[_0xc6f828(0x4b8)][_0xc6f828(0x4e0)]((_0x2c5246,_0x176aea)=>{const _0x277ccb=_0xc6f828;window[_0x277ccb(0x55f)](_0x2c5246),_0x1774ae['push'](this[_0x277ccb(0x37d)](_0x176aea)['then'](()=>{const _0x2ec6d0=_0x277ccb;this[_0x2ec6d0(0x4b8)][_0x2ec6d0(0x57c)](_0x176aea);}));}),await Promise[_0xc6f828(0x268)](_0x1774ae);}[_0x47025c(0x56e)](){const _0x827c93=_0x47025c;this[_0x827c93(0x4dd)](this[_0x827c93(0x4bf)][_0x827c93(0x537)](()=>{const _0xa8d9a5=_0x827c93;if(this[_0xa8d9a5(0x4b8)][_0xa8d9a5(0x48b)])return this[_0xa8d9a5(0x433)]['t'](_0xa8d9a5(0x347));}));}},exports[_0x47025c(0x1f5)]=ls([se(0x0,a[_0x47025c(0x478)]),se(0x1,a['ILocalStorageService']),se(0x2,N[_0x47025c(0x31c)]),se(0x3,h[_0x47025c(0x36d)](a[_0x47025c(0x3f8)])),se(0x4,h['Inject'](u['RevisionService']))],exports['LocalCacheService']);function Xe(_0x17ad0d){const _0x140e94=_0x47025c;return _0x140e94(0x27c)+_0x17ad0d;}const pe=h['createIdentifier'](_0x47025c(0x5a2));var Et=(_0x3979ad=>(_0x3979ad[_0x3979ad[_0x47025c(0x391)]=0x0]=_0x47025c(0x391),_0x3979ad[_0x3979ad[_0x47025c(0x378)]=0x1]=_0x47025c(0x378),_0x3979ad))(Et||{});const qe=0x7530,ze='ACTIVE_UNIT_EVENT_CHANNEL';class hs extends a['Disposable']{constructor(){const _0xc5c47f=_0x47025c;super(),d(this,_0xc5c47f(0x3c3),a[_0xc5c47f(0x293)][_0xc5c47f(0x44e)]()),d(this,'_selfUnitIDs',new Set()),d(this,_0xc5c47f(0x4bc),new Map()),d(this,_0xc5c47f(0x439),null),d(this,_0xc5c47f(0x3c6),new Map()),d(this,_0xc5c47f(0x454),new Map()),this[_0xc5c47f(0x308)]();}[_0x47025c(0x3d3)](){const _0x57c1a7=_0x47025c;super[_0x57c1a7(0x3d3)](),this['_clearOtherTimers'][_0x57c1a7(0x4e0)]((_0x5e4985,_0x1f5e7b)=>this[_0x57c1a7(0x38b)](_0x1f5e7b)),this[_0x57c1a7(0x439)]&&window[_0x57c1a7(0x386)](this[_0x57c1a7(0x439)]);}[_0x47025c(0x216)](_0x1be5a1){const _0x125fab=_0x47025c;return this['_ensureSubject'](_0x1be5a1)[_0x125fab(0x252)](g[_0x125fab(0x43f)]());}[_0x47025c(0x5a4)](_0x41b10a){const _0x17971d=_0x47025c;this['_selfUnitIDs'][_0x17971d(0x48b)]===0x0&&this[_0x17971d(0x208)](),this[_0x17971d(0x3da)][_0x17971d(0x563)](_0x41b10a),this[_0x17971d(0x4e8)]({'type':0x0,'memberID':this[_0x17971d(0x3c3)],'unitIDs':[_0x41b10a],'isForwarded':!0x1});}[_0x47025c(0x548)](_0xa2a0dc){const _0x503d97=_0x47025c;this[_0x503d97(0x3da)][_0x503d97(0x57c)](_0xa2a0dc),this[_0x503d97(0x3da)]['size']===0x0&&this['_heartbeatTimer']&&window[_0x503d97(0x386)](this['_heartbeatTimer']);}[_0x47025c(0x308)](){const _0x356e7a=_0x47025c;this[_0x356e7a(0x4dd)](a['toDisposable'](g['fromEvent'](window,_0x356e7a(0x350))[_0x356e7a(0x588)](_0x4f01a7=>{const _0x280bbf=_0x356e7a;if(_0x4f01a7[_0x280bbf(0x3dd)]!==ze||!_0x4f01a7[_0x280bbf(0x2c7)])return;const _0x2afa17=JSON['parse'](_0x4f01a7[_0x280bbf(0x2c7)]);this[_0x280bbf(0x39f)](_0x2afa17);}))),window[_0x356e7a(0x4e1)](_0x356e7a(0x3b7),()=>this[_0x356e7a(0x4e8)]({'type':0x1,'memberID':this[_0x356e7a(0x3c3)],'unitIDs':Array[_0x356e7a(0x582)](this['_selfUnitIDs'])}));}[_0x47025c(0x39f)](_0x192d79){const _0x42f6f1=_0x47025c;switch(_0x192d79[_0x42f6f1(0x53b)]){case 0x0:this[_0x42f6f1(0x59c)](_0x192d79);break;case 0x1:this[_0x42f6f1(0x4bb)](_0x192d79);break;case 0x2:this[_0x42f6f1(0x3d9)](_0x192d79);break;}}[_0x47025c(0x59c)](_0x498ff2){const _0x24bb65=_0x47025c,{unitIDs:_0x571b4f,memberID:_0x14ee8b,isForwarded:_0x2f1825}=_0x498ff2;_0x571b4f[_0x24bb65(0x4e0)](_0x18223e=>{const _0x512262=_0x24bb65;if(!_0x2f1825&&this[_0x512262(0x4bc)][_0x512262(0x49e)](_0x18223e)&&this[_0x512262(0x586)](_0x18223e)[_0x512262(0x361)](0x1),!this['_unitOnClients'][_0x512262(0x49e)](_0x18223e)||!this[_0x512262(0x4bc)][_0x512262(0x372)](_0x18223e)[_0x512262(0x49e)](_0x14ee8b)){const _0x4c1e91=this[_0x512262(0x4bc)][_0x512262(0x372)](_0x18223e)||new Set();_0x4c1e91[_0x512262(0x563)](_0x14ee8b),this[_0x512262(0x4bc)][_0x512262(0x279)](_0x18223e,_0x4c1e91),this[_0x512262(0x52c)](_0x14ee8b);}}),_0x2f1825||this['_send']({'type':0x0,'memberID':this[_0x24bb65(0x3c3)],'unitIDs':[...this[_0x24bb65(0x3da)]],'isForwarded':!0x0});}[_0x47025c(0x52c)](_0x964ea5){const _0x4f3a8b=_0x47025c;this[_0x4f3a8b(0x38b)](_0x964ea5);const _0x2128fc=window[_0x4f3a8b(0x547)](()=>{const _0x4f0cfa=_0x4f3a8b;this[_0x4f0cfa(0x4bc)][_0x4f0cfa(0x4e0)](_0x115ae7=>{_0x115ae7['delete'](_0x964ea5);});},qe*0x2);this[_0x4f3a8b(0x3c6)][_0x4f3a8b(0x279)](_0x964ea5,_0x2128fc);}['_removeClearOtherTimer'](_0x2aa056){const _0x1f9c13=_0x47025c;if(this[_0x1f9c13(0x3c6)][_0x1f9c13(0x49e)](_0x2aa056)){const _0x15d5b2=this[_0x1f9c13(0x3c6)][_0x1f9c13(0x372)](_0x2aa056);_0x15d5b2&&window[_0x1f9c13(0x55f)](_0x15d5b2),this[_0x1f9c13(0x3c6)][_0x1f9c13(0x279)](_0x2aa056,null);}}['_handleLeaveEvent'](_0x3f86c7){const _0x4d3dd1=_0x47025c,{memberID:_0x14c392,unitIDs:_0x11efc8}=_0x3f86c7;_0x11efc8[_0x4d3dd1(0x4e0)](_0x5e6cd6=>{const _0x3c36ad=_0x4d3dd1;var _0x358d0d;const _0x1cbb50=this[_0x3c36ad(0x4bc)][_0x3c36ad(0x372)](_0x5e6cd6);_0x1cbb50&&(_0x1cbb50[_0x3c36ad(0x57c)](_0x14c392),(_0x358d0d=this[_0x3c36ad(0x586)](_0x5e6cd6))==null||_0x358d0d[_0x3c36ad(0x361)](_0x1cbb50[_0x3c36ad(0x48b)]===0x0?0x0:0x1));}),this['_removeClearOtherTimer'](_0x14c392);}[_0x47025c(0x3d9)](_0xaaab01){const _0x2dcb71=_0x47025c;this['_scheduleClearOtherTimer'](_0xaaab01[_0x2dcb71(0x290)]);}[_0x47025c(0x4e8)](_0x3e2b04){const _0x56b6a6=_0x47025c;localStorage[_0x56b6a6(0x29d)](ze,JSON[_0x56b6a6(0x3a7)](_0x3e2b04));}[_0x47025c(0x208)](){const _0x4c6c8c=_0x47025c;this[_0x4c6c8c(0x439)]=window[_0x4c6c8c(0x3cd)](()=>{const _0x20cc94=_0x4c6c8c;this[_0x20cc94(0x4e8)]({'type':0x2,'memberID':this['_id']});},qe);}[_0x47025c(0x586)](_0x3b6c38){const _0x3aeb4f=_0x47025c;return this['_unitStatus'][_0x3aeb4f(0x49e)](_0x3b6c38)||this[_0x3aeb4f(0x454)]['set'](_0x3b6c38,new g[(_0x3aeb4f(0x3a1))](0x0)),this[_0x3aeb4f(0x454)][_0x3aeb4f(0x372)](_0x3b6c38);}}var _s=Object[_0x47025c(0x430)],us=Object[_0x47025c(0x348)],ds=(_0x33679f,_0x299dce,_0xb61676,_0x590a4b)=>{const _0x5259a4=_0x47025c;for(var _0x3501d0=_0x590a4b>0x1?void 0x0:_0x590a4b?us(_0x299dce,_0xb61676):_0x299dce,_0x2f1471=_0x33679f[_0x5259a4(0x2e3)]-0x1,_0x44aac7;_0x2f1471>=0x0;_0x2f1471--)(_0x44aac7=_0x33679f[_0x2f1471])&&(_0x3501d0=(_0x590a4b?_0x44aac7(_0x299dce,_0xb61676,_0x3501d0):_0x44aac7(_0x3501d0))||_0x3501d0);return _0x590a4b&&_0x3501d0&&_s(_0x299dce,_0xb61676,_0x3501d0),_0x3501d0;},Je=(_0xa0035a,_0x350606)=>(_0x22fa9b,_0x254f25)=>_0x350606(_0x22fa9b,_0x254f25,_0xa0035a);let ve=class{constructor(_0x4c23e6,_0x388887){const _0x5c1af6=_0x47025c;this['_injector']=_0x4c23e6,this[_0x5c1af6(0x42d)]=_0x388887;}[_0x47025c(0x3ba)](_0x57fdd0){const _0x40bb6c=_0x47025c;this[_0x40bb6c(0x4e5)](_0x57fdd0),this['_transformPreviousActiveRange'](_0x57fdd0);}[_0x47025c(0x3df)](_0x4cb9c7){const _0x293b0a=_0x47025c,_0x4b35ed=this['_injector']['get'](M['IMEInputManagerService']),{redoCache:_0x4953c3}=_0x4b35ed[_0x293b0a(0x310)]();if(_0x4953c3[_0x293b0a(0x2e3)]===0x0)return _0x4cb9c7;let _0x5db74d=a[_0x293b0a(0x293)][_0x293b0a(0x2b4)](_0x4cb9c7['mutations'][0x0]);for(let _0x56a82b=0x0;_0x56a82b<_0x4953c3[_0x293b0a(0x2e3)];_0x56a82b++){const _0x22d1e2={'id':'doc.mutation.rich-text-editing','params':{..._0x4953c3[_0x56a82b]}},_0x24f5e6=this['_transformService']['transformMutation'](_0x5db74d,_0x22d1e2,!0x1);if(u[_0x293b0a(0x581)](_0x24f5e6))throw _0x24f5e6[_0x293b0a(0x3ce)];_0x5db74d=_0x24f5e6['m1Prime'];}return{...a[_0x293b0a(0x293)][_0x293b0a(0x2b4)](_0x4cb9c7),'mutations':[_0x5db74d]};}[_0x47025c(0x4e5)](_0x4b2920){const _0x2395c3=_0x47025c,_0x27b8ac=this[_0x2395c3(0x2af)][_0x2395c3(0x372)](M[_0x2395c3(0x35a)]),{undoCache:_0x3f4602,redoCache:_0x1d2f9d}=_0x27b8ac[_0x2395c3(0x310)]();if(_0x3f4602[_0x2395c3(0x2e3)]===0x0||_0x1d2f9d[_0x2395c3(0x2e3)]===0x0)return;const _0x55f75b=[],_0x1682ba=[];let _0x39b57d=a[_0x2395c3(0x293)][_0x2395c3(0x2b4)](_0x4b2920[_0x2395c3(0x2e2)][0x0]),_0x50606d=a[_0x2395c3(0x293)][_0x2395c3(0x2b4)](_0x4b2920['mutations'][0x0]);for(let _0xc0f3ef=_0x3f4602['length']-0x1;_0xc0f3ef>=0x0;_0xc0f3ef--){const _0x5a1e2c={'id':_0x2395c3(0x221),'params':{..._0x3f4602[_0xc0f3ef]}},_0x4637d9={'id':_0x2395c3(0x221),'params':{..._0x1d2f9d[_0xc0f3ef]}},_0x4bc0ad=this[_0x2395c3(0x42d)][_0x2395c3(0x4fc)](_0x39b57d,_0x5a1e2c,!0x1),_0x113761=this[_0x2395c3(0x42d)][_0x2395c3(0x4fc)](_0x50606d,_0x4637d9,!0x1);if(u[_0x2395c3(0x581)](_0x4bc0ad))throw _0x4bc0ad['error'];if(u[_0x2395c3(0x581)](_0x113761))throw _0x113761[_0x2395c3(0x3ce)];_0x55f75b[_0x2395c3(0x3db)](_0x4bc0ad[_0x2395c3(0x4c3)][_0x2395c3(0x591)]),_0x1682ba[_0x2395c3(0x3db)](_0x113761[_0x2395c3(0x4c3)][_0x2395c3(0x591)]),_0x39b57d=_0x4bc0ad[_0x2395c3(0x47f)],_0x50606d=_0x113761[_0x2395c3(0x47f)];}_0x27b8ac[_0x2395c3(0x395)]({'undoCache':_0x55f75b,'redoCache':_0x1682ba});}[_0x47025c(0x408)](_0x227e99){const _0x31d72d=_0x47025c,_0x4b408d=this[_0x31d72d(0x2af)][_0x31d72d(0x372)](M[_0x31d72d(0x35a)]),_0x5669fd=_0x4b408d['getActiveRange']();if(_0x5669fd==null)return;const _0x4a8602=[{'id':_0x31d72d(0x221),'params':{'unitId':_0x227e99[_0x31d72d(0x20e)],'actions':null,'textRanges':[_0x5669fd]}}],_0x376391=this[_0x31d72d(0x42d)]['transformMutationsWithChangeset'](_0x227e99,_0x4a8602);if(!u[_0x31d72d(0x326)](_0x376391))throw _0x376391[_0x31d72d(0x3ce)];const _0x5d108f=_0x376391[_0x31d72d(0x4c3)][0x0][_0x31d72d(0x591)][_0x31d72d(0x267)];Array['isArray'](_0x5d108f)&&_0x5d108f[_0x31d72d(0x2e3)]&&_0x4b408d['setActiveRange'](_0x5d108f[0x0]);}};ve=ds([Je(0x0,h[_0x47025c(0x36d)](h['Injector'])),Je(0x1,u['ITransformService'])],ve);var Ss=Object[_0x47025c(0x430)],vs=Object[_0x47025c(0x348)],gs=(_0x349dbd,_0x250020,_0x410d84,_0x468315)=>{for(var _0x24f3c5=_0x468315>0x1?void 0x0:_0x468315?vs(_0x250020,_0x410d84):_0x250020,_0x3fd9b0=_0x349dbd['length']-0x1,_0xd810f7;_0x3fd9b0>=0x0;_0x3fd9b0--)(_0xd810f7=_0x349dbd[_0x3fd9b0])&&(_0x24f3c5=(_0x468315?_0xd810f7(_0x250020,_0x410d84,_0x24f3c5):_0xd810f7(_0x24f3c5))||_0x24f3c5);return _0x468315&&_0x24f3c5&&Ss(_0x250020,_0x410d84,_0x24f3c5),_0x24f3c5;},Ze=(_0x350c4f,_0x3fde2c)=>(_0x3537f2,_0x4bdd46)=>_0x3fde2c(_0x3537f2,_0x4bdd46,_0x350c4f);let ge=class{constructor(_0x9187a3,_0x352b52){const _0x1b067f=_0x47025c;this[_0x1b067f(0x2af)]=_0x9187a3,this[_0x1b067f(0x42d)]=_0x352b52;}['transformSelections'](_0x56fd5b){const _0x4e7f4a=_0x47025c;var _0x146f80;const _0x382470=this[_0x4e7f4a(0x2af)][_0x4e7f4a(0x372)](M['TextSelectionManagerService']),_0x7bf6c7=(_0x146f80=_0x382470[_0x4e7f4a(0x35f)]())!=null?_0x146f80:[],_0x54e878=_0x7bf6c7==null?void 0x0:_0x7bf6c7[_0x4e7f4a(0x2ab)](M[_0x4e7f4a(0x407)]);if(_0x54e878[_0x4e7f4a(0x2e3)]===0x0)return;const _0x89e9d4=[{'id':_0x4e7f4a(0x221),'params':{'unitId':_0x56fd5b[_0x4e7f4a(0x20e)],'actions':null,'textRanges':_0x54e878}}],_0x530087=this[_0x4e7f4a(0x42d)][_0x4e7f4a(0x514)](_0x56fd5b,_0x89e9d4);if(!u[_0x4e7f4a(0x326)](_0x530087))throw _0x530087['error'];const _0x419ee8=_0x530087[_0x4e7f4a(0x4c3)][0x0][_0x4e7f4a(0x591)][_0x4e7f4a(0x267)];Array[_0x4e7f4a(0x263)](_0x419ee8)&&_0x419ee8[_0x4e7f4a(0x2e3)]&&_0x382470[_0x4e7f4a(0x2e5)](_0x419ee8,!0x1);}};ge=gs([Ze(0x0,h['Inject'](h[_0x47025c(0x3c4)])),Ze(0x1,u[_0x47025c(0x31d)])],ge);function Ct(_0x1155a8){const _0x20cd43=_0x47025c;let _0x266358='';for(const _0x32fdb0 of _0x1155a8){const {startOffset:_0x49eb42,endOffset:_0x284853,isActive:_0x311c88}=_0x32fdb0;_0x266358[_0x20cd43(0x2e3)]&&(_0x266358+=','),_0x266358+=_0x49eb42+':'+_0x284853+':'+(_0x311c88?'1':'0');}return _0x266358;}function fs(_0x3b7c3e){const _0x20271a=_0x47025c,_0x5cd2ac=_0x3b7c3e[_0x20271a(0x3e0)](','),_0x444d66=[];for(const _0x1fca2c of _0x5cd2ac){const [_0x424e86,_0x17501c,_0x32cc30]=_0x1fca2c['split'](':');_0x444d66[_0x20271a(0x28b)]({'startOffset':Number(_0x424e86),'endOffset':Number(_0x17501c),'collapsed':_0x424e86===_0x17501c,'isActive':_0x32cc30==='1'});}return _0x444d66[_0x20271a(0x37c)](_0xec9663=>_0xec9663[_0x20271a(0x3fa)])||(_0x444d66[0x0][_0x20271a(0x3fa)]=!0x0),_0x444d66;}class Fe extends a['RxDisposable']{constructor(){const _0xad126a=_0x47025c;super(...arguments),d(this,'_collabCursorState$',new g['BehaviorSubject'](null)),d(this,_0xad126a(0x4e4),this[_0xad126a(0x2c1)]['asObservable']());}[_0x47025c(0x294)](_0x13ab4c){const _0x334e07=_0x47025c,{unitID:_0x555458,memberID:_0x1ec2bf,textRanges:_0x3feaa1}=_0x13ab4c,_0x1a3142=Ct(_0x3feaa1),_0x26918f={'unitID':_0x555458,'memberID':_0x1ec2bf,'selection':_0x1a3142};this[_0x334e07(0x2c1)][_0x334e07(0x361)](_0x26918f);}}var ms=Object[_0x47025c(0x430)],Is=Object[_0x47025c(0x348)],ps=(_0x1381ef,_0x53ac4e,_0x40ddd2,_0x42b110)=>{const _0x27a69b=_0x47025c;for(var _0x1748f3=_0x42b110>0x1?void 0x0:_0x42b110?Is(_0x53ac4e,_0x40ddd2):_0x53ac4e,_0x4b497a=_0x1381ef[_0x27a69b(0x2e3)]-0x1,_0x462791;_0x4b497a>=0x0;_0x4b497a--)(_0x462791=_0x1381ef[_0x4b497a])&&(_0x1748f3=(_0x42b110?_0x462791(_0x53ac4e,_0x40ddd2,_0x1748f3):_0x462791(_0x1748f3))||_0x1748f3);return _0x42b110&&_0x1748f3&&ms(_0x53ac4e,_0x40ddd2,_0x1748f3),_0x1748f3;},Qe=(_0x86317c,_0x3a2de1)=>(_0x49aeb0,_0x1fe4b1)=>_0x3a2de1(_0x49aeb0,_0x1fe4b1,_0x86317c);let fe=class{constructor(_0x963c97,_0x10b784){const _0x5a1a87=_0x47025c;this['_injector']=_0x963c97,this[_0x5a1a87(0x42d)]=_0x10b784;}[_0x47025c(0x332)](_0x4c8780){const _0x1f0ff8=_0x47025c;var _0x20ba89,_0x309ee1,_0x40ce64,_0x26e7db;const _0x3ced0d=this[_0x1f0ff8(0x2af)]['get'](E[_0x1f0ff8(0x373)]),{pluginName:_0x183935,unitId:_0x476441,sheetId:_0x43811d}=_0x3ced0d[_0x1f0ff8(0x2f8)]()||{},_0x3d943b=(_0x20ba89=_0x3ced0d[_0x1f0ff8(0x35f)]())!=null?_0x20ba89:[];if(_0x3d943b[_0x1f0ff8(0x2e3)]===0x0||!_0x183935||!_0x476441||!_0x43811d)return;const _0x2988c4=[{'id':E[_0x1f0ff8(0x4e6)]['id'],'params':{'unitId':_0x476441,'subUnitId':_0x43811d,'pluginName':_0x183935,'selections':a[_0x1f0ff8(0x293)][_0x1f0ff8(0x2b4)](_0x3d943b)}}],_0x1dc6c9=this[_0x1f0ff8(0x42d)][_0x1f0ff8(0x514)](_0x4c8780,_0x2988c4);if(!u[_0x1f0ff8(0x326)](_0x1dc6c9))throw _0x1dc6c9[_0x1f0ff8(0x3ce)];const _0x417538=(_0x26e7db=(_0x40ce64=(_0x309ee1=_0x1dc6c9[_0x1f0ff8(0x4c3)][0x0])==null?void 0x0:_0x309ee1['params'])==null?void 0x0:_0x40ce64[_0x1f0ff8(0x2bf)])!=null?_0x26e7db:_0x3d943b;Array['isArray'](_0x417538)&&_0x417538['length']&&this[_0x1f0ff8(0x2af)][_0x1f0ff8(0x372)](a[_0x1f0ff8(0x38f)])['executeCommand'](E['SetSelectionsOperation']['id'],{'unitId':_0x476441,'subUnitId':_0x43811d,'pluginName':_0x183935,'selections':_0x417538});}};fe=ps([Qe(0x0,h[_0x47025c(0x36d)](h[_0x47025c(0x3c4)])),Qe(0x1,u[_0x47025c(0x31d)])],fe);const Es=new Set([E[_0x47025c(0x462)]['id']]);function Cs(_0x4300fc,_0xa494d4,_0xc68d3a,_0x464ca0,_0x33a5d8){const _0x5054ff=_0x47025c;var _0x2ec65f,_0x5dd0b3,_0x429abf,_0x185dbb;const _0x54357f=[];for(const _0x4172eb of _0x4300fc)if(Es[_0x5054ff(0x49e)](_0x4172eb['id'])){if(_0x54357f['length']>0x0)break;_0x54357f['push'](_0x4172eb);break;}else _0x54357f[_0x5054ff(0x28b)](_0x4172eb);const _0x3bbb58=(_0x5dd0b3=(_0x2ec65f=_0x33a5d8[_0x5054ff(0x3b0)]())==null?void 0x0:_0x2ec65f[_0x5054ff(0x48f)])!=null?_0x5dd0b3:_0x5054ff(0x4af),_0x48514d=(_0x185dbb=(_0x429abf=_0x33a5d8['getCurrentUser']())==null?void 0x0:_0x429abf[_0x5054ff(0x290)])!=null?_0x185dbb:'unknown';return{'changeset':{'unitID':_0xa494d4,'type':u[_0x5054ff(0x36b)](_0xc68d3a['getUnitType'](_0xa494d4)),'baseRev':_0x464ca0[_0x5054ff(0x432)](_0xa494d4),'revision':0x0,'userID':_0x3bbb58,'memberID':_0x48514d,'mutations':_0x54357f},'pendingMutations':_0x4300fc['slice'](_0x54357f[_0x5054ff(0x2e3)])};}function bs(_0x18b24e,_0x34fc4d,_0x45a90c,_0x19f771,_0x31667c){const _0x35d48b=_0x47025c;var _0x46bfa8,_0x1cc477,_0xcf52de,_0x455f33;const _0x143387=[_0x18b24e['reduce']((_0x49f9fc,_0x2bb7ea)=>{const _0x496a41=_0x22eb;var _0x3ea58e;const {id:_0x5ea35a}=_0x49f9fc,{id:_0x733b40,type:_0x492ff2}=_0x2bb7ea,_0x323d84=(_0x3ea58e=_0x49f9fc['params'])!=null?_0x3ea58e:{'actions':null},_0xa4107d=_0x2bb7ea[_0x496a41(0x591)];if(_0x5ea35a&&_0x5ea35a!==_0x733b40)throw new Error('Cannot\x20assemble\x20a\x20changeset\x20from\x20multiple\x20mutations\x20of\x20different\x20types:\x20'+_0x5ea35a+_0x496a41(0x538)+_0x733b40+'.');return{..._0x49f9fc,'id':_0x733b40,'type':_0x492ff2,'params':{'unitId':_0xa4107d['unitId'],'textRanges':_0xa4107d['textRanges'],'actions':a[_0x496a41(0x2a7)][_0x496a41(0x39b)](_0x323d84[_0x496a41(0x20c)],_0xa4107d[_0x496a41(0x20c)])}};},{})],_0x4bab64=(_0x1cc477=(_0x46bfa8=_0x31667c[_0x35d48b(0x3b0)]())==null?void 0x0:_0x46bfa8[_0x35d48b(0x48f)])!=null?_0x1cc477:'unknown',_0x570937=(_0x455f33=(_0xcf52de=_0x31667c['getCurrentUser']())==null?void 0x0:_0xcf52de[_0x35d48b(0x290)])!=null?_0x455f33:_0x35d48b(0x4af);return{'changeset':{'unitID':_0x34fc4d,'type':u[_0x35d48b(0x36b)](_0x45a90c[_0x35d48b(0x422)](_0x34fc4d)),'baseRev':_0x19f771['getCurrentRevForDocument'](_0x34fc4d),'revision':0x0,'userID':_0x4bab64,'memberID':_0x570937,'mutations':_0x143387},'pendingMutations':[]};}var Ts=Object[_0x47025c(0x430)],Rs=Object['getOwnPropertyDescriptor'],K=(_0x204cf9,_0x199728,_0x14a7bf,_0x2f19cb)=>{const _0x55712f=_0x47025c;for(var _0x3eb546=_0x2f19cb>0x1?void 0x0:_0x2f19cb?Rs(_0x199728,_0x14a7bf):_0x199728,_0x4164a0=_0x204cf9[_0x55712f(0x2e3)]-0x1,_0x528554;_0x4164a0>=0x0;_0x4164a0--)(_0x528554=_0x204cf9[_0x4164a0])&&(_0x3eb546=(_0x2f19cb?_0x528554(_0x199728,_0x14a7bf,_0x3eb546):_0x528554(_0x3eb546))||_0x3eb546);return _0x2f19cb&&_0x3eb546&&Ts(_0x199728,_0x14a7bf,_0x3eb546),_0x3eb546;},f=(_0x3cf728,_0xee271e)=>(_0x39adee,_0x64d3ad)=>_0xee271e(_0x39adee,_0x64d3ad,_0x3cf728),w=(_0x1e2ff8=>(_0x1e2ff8['NOT_COLLAB']=_0x47025c(0x2ac),_0x1e2ff8[_0x47025c(0x27d)]=_0x47025c(0x2a5),_0x1e2ff8[_0x47025c(0x521)]=_0x47025c(0x4d2),_0x1e2ff8[_0x47025c(0x289)]=_0x47025c(0x505),_0x1e2ff8['AWAITING_WITH_PENDING']=_0x47025c(0x522),_0x1e2ff8[_0x47025c(0x59a)]=_0x47025c(0x496),_0x1e2ff8[_0x47025c(0x286)]=_0x47025c(0x4f2),_0x1e2ff8[_0x47025c(0x2a8)]=_0x47025c(0x26a),_0x1e2ff8))(w||{});class X{constructor(_0x3461a6,_0x57c4e4,_0x5bf825,_0x2c0f39,_0x4ce9c3,_0x204f80,_0x50a422,_0x17ea7f,_0x4bda5b){const _0x109c79=_0x47025c;d(this,_0x109c79(0x428),null),d(this,_0x109c79(0x32c),[]),(this['unitID']=_0x3461a6,this[_0x109c79(0x53b)]=_0x57c4e4,this[_0x109c79(0x399)]=_0x4ce9c3,this[_0x109c79(0x270)]=_0x204f80,this[_0x109c79(0x2ce)]=_0x50a422,this[_0x109c79(0x56c)]=_0x17ea7f,this['_localCacheService']=_0x4bda5b,this[_0x109c79(0x428)]=_0x5bf825,this['_pendingMutations']=_0x2c0f39);}[_0x47025c(0x515)](_0x6f8693){const _0x4fe79a=_0x47025c,_0x4f5f81=this[_0x4fe79a(0x56c)][_0x4fe79a(0x432)](this[_0x4fe79a(0x20e)]);return _0x6f8693[_0x4fe79a(0x2d1)]>_0x4f5f81+0x1?(this[_0x4fe79a(0x399)][_0x4fe79a(0x43b)]({'from':_0x4f5f81,'to':_0x6f8693[_0x4fe79a(0x2d1)]-0x1}),!0x0):!0x1;}['_transformUndoredo'](_0x4a6d07){const _0x224a08=_0x47025c;this[_0x224a08(0x2ce)]['transformUndoRedo'](this[_0x224a08(0x20e)],_0x4a6d07);}[_0x47025c(0x246)](_0x3e701b){const _0x5c7b07=_0x47025c;var _0x57cd5a,_0x464722;(_0x464722=(_0x57cd5a=this[_0x5c7b07(0x399)])[_0x5c7b07(0x3ee)])==null||_0x464722['call'](_0x57cd5a,_0x3e701b);}[_0x47025c(0x3ed)](_0x38539d){const _0x203141=_0x47025c;var _0x184a66,_0x40d706;return(_0x40d706=(_0x184a66=this[_0x203141(0x399)])['onTransformIME'])==null?void 0x0:_0x40d706[_0x203141(0x345)](_0x184a66,_0x38539d);}[_0x47025c(0x30d)](_0x5b6b0d){const _0x5f4616=_0x47025c;var _0x51e0aa,_0x4a9214,_0x143dc0;return(_0x143dc0=(_0x4a9214=(_0x51e0aa=this[_0x5f4616(0x399)])[_0x5f4616(0x2d2)])==null?void 0x0:_0x4a9214[_0x5f4616(0x345)](_0x51e0aa,_0x5b6b0d))!=null?_0x143dc0:_0x5b6b0d;}[_0x47025c(0x416)](_0x2f7b92){const _0x25f41d=_0x47025c;var _0x252a43,_0x2c6f8d;if(this[_0x25f41d(0x53b)]===j[_0x25f41d(0x324)]){const {unitID:_0x2cfd2f,mutations:_0x575a3f,memberID:_0x466840}=_0x2f7b92,_0x4ef4f5=_0x575a3f[0x0]['params'][_0x25f41d(0x267)];Array[_0x25f41d(0x263)](_0x4ef4f5)&&_0x4ef4f5[_0x25f41d(0x2e3)]>0x0&&((_0x2c6f8d=(_0x252a43=this['_handler'])[_0x25f41d(0x2cf)])==null||_0x2c6f8d['call'](_0x252a43,{'unitID':_0x2cfd2f,'memberID':_0x466840,'textRanges':_0x4ef4f5}));}}[_0x47025c(0x39c)](){const _0x36e343=_0x47025c;this[_0x36e343(0x528)][_0x36e343(0x471)](this[_0x36e343(0x20e)],this[_0x36e343(0x53b)],this[_0x36e343(0x428)],this[_0x36e343(0x32c)]);}[_0x47025c(0x42a)](){const _0x377277=_0x47025c;return this[_0x377277(0x56c)][_0x377277(0x432)](this[_0x377277(0x20e)]);}[_0x47025c(0x389)](){const _0x16bd2d=_0x47025c;this[_0x16bd2d(0x56c)][_0x16bd2d(0x2a4)](this[_0x16bd2d(0x20e)]);}[_0x47025c(0x550)](_0x1e27d2){const _0x5e20d8=_0x47025c;var _0x806568;const _0x53b93a=this['_transformRemoteChangesetByIMECache'](_0x1e27d2),_0x105bb5=a[_0x5e20d8(0x24c)](_0x53b93a[_0x5e20d8(0x2e2)],this[_0x5e20d8(0x270)],{'fromCollab':!0x0});if(!_0x105bb5['result'])throw _0x105bb5['error']instanceof Error?_0x105bb5['error']:new Error((_0x806568=_0x105bb5[_0x5e20d8(0x3ce)])!=null?_0x806568:_0x5e20d8(0x201));this[_0x5e20d8(0x3ed)](_0x53b93a),this[_0x5e20d8(0x37e)](_0x1e27d2),this[_0x5e20d8(0x246)](_0x53b93a),this[_0x5e20d8(0x416)](_0x53b93a),this[_0x5e20d8(0x389)]();}}let ae=class extends X{constructor(_0x47013e,_0x5049d9,_0x482cf5,_0x4394a8,_0x137ffc,_0x4ed2d8,_0x49c6d7,_0x4d5e05,_0x2fe17c){const _0x556bc7=_0x47025c;super(_0x47013e,_0x5049d9,null,[],_0x482cf5,_0x4d5e05,_0x49c6d7,_0x4394a8,_0x137ffc),d(this,_0x556bc7(0x424),_0x556bc7(0x2a5)),(this[_0x556bc7(0x2af)]=_0x4ed2d8,this['_logService']=_0x2fe17c);}[_0x47025c(0x2d8)](_0x409f37){const _0x47acc0=_0x47025c,_0x42a827=this[_0x47acc0(0x2af)][_0x47acc0(0x4a7)]($,this[_0x47acc0(0x20e)],this[_0x47acc0(0x53b)],[_0x409f37],this[_0x47acc0(0x399)]);return _0x42a827[_0x47acc0(0x2c0)](),_0x42a827[_0x47acc0(0x39c)](),_0x42a827;}[_0x47025c(0x40e)](_0x500352){const _0x557e2a=_0x47025c;if(this[_0x557e2a(0x515)](_0x500352))return this[_0x557e2a(0x2af)]['createInstance'](x,this[_0x557e2a(0x20e)],this['type'],null,[],null,[_0x500352],this[_0x557e2a(0x399)]);try{return this['_executeRemoteChangeset'](_0x500352),this;}catch(_0x380262){return this[_0x557e2a(0x4f9)][_0x557e2a(0x3ce)](_0x557e2a(0x3e1),_0x380262),this;}}[_0x47025c(0x30a)](){throw new Error('[SyncedState]:\x20received\x20acknowledgement.');}[_0x47025c(0x28a)](){const _0x1a26ae=_0x47025c;throw new Error(_0x1a26ae(0x397));}[_0x47025c(0x205)](){const _0x3b4308=_0x47025c;return this['_injector'][_0x3b4308(0x4a7)](B,this['unitID'],this['type'],null,[],this[_0x3b4308(0x399)]);}['toggleOnline'](){return this;}[_0x47025c(0x314)](){const _0x4cb9a1=_0x47025c;throw new Error(_0x4cb9a1(0x4b3));}};ae=K([f(0x3,h[_0x47025c(0x36d)](u[_0x47025c(0x2d7)])),f(0x4,h[_0x47025c(0x36d)](exports[_0x47025c(0x1f5)])),f(0x5,h['Inject'](h['Injector'])),f(0x6,a['IUndoRedoService']),f(0x7,a[_0x47025c(0x38f)]),f(0x8,a[_0x47025c(0x38a)])],ae);let $=class extends X{constructor(_0x3833b8,_0x1f39fc,_0x29d28d,_0x287006,_0x5049aa,_0x4c9b19,_0xc8605e,_0x2ba093,_0x47c453,_0x1ae0b3,_0x34260e,_0x51378b,_0x42f046,_0x5db93d){const _0x38846a=_0x47025c;super(_0x3833b8,_0x1f39fc,null,_0x29d28d,_0x287006,_0x1ae0b3,_0x5db93d,_0x4c9b19,_0xc8605e),d(this,_0x38846a(0x424),_0x38846a(0x4d2)),d(this,'_scheduleTimestamp',null),d(this,_0x38846a(0x53e),null),(this[_0x38846a(0x2af)]=_0x5049aa,this[_0x38846a(0x3e6)]=_0x2ba093,this[_0x38846a(0x4f9)]=_0x47c453,this['_configService']=_0x34260e,this['_transformService']=_0x51378b,this[_0x38846a(0x507)]=_0x42f046);}['appendMutation'](_0x4ca12d){const _0x39b716=_0x47025c;return this[_0x39b716(0x32c)]['push'](_0x4ca12d),this[_0x39b716(0x39c)](),this;}[_0x47025c(0x40e)](_0x417a80){const _0x46c441=_0x47025c;if(this[_0x46c441(0x515)](_0x417a80))return this['_clearScheduledTask'](),this[_0x46c441(0x2af)][_0x46c441(0x4a7)](x,this['unitID'],this['type'],null,this[_0x46c441(0x32c)],null,[_0x417a80],this[_0x46c441(0x399)]);try{const _0x8e158=this[_0x46c441(0x42d)][_0x46c441(0x514)](_0x417a80,this['_pendingMutations']);if(u['isTransformMutationsWithChangesetSuccess'](_0x8e158)){const {c1Prime:_0x1b0ab8,m2Prime:_0x2e608c}=_0x8e158;this['_executeRemoteChangeset'](_0x1b0ab8);const _0x457774=this[_0x46c441(0x2af)]['createInstance']($,this[_0x46c441(0x20e)],this['type'],_0x2e608c,this[_0x46c441(0x399)]);return this[_0x46c441(0x1fd)](),_0x457774[_0x46c441(0x2c0)](this['_scheduleTimestamp']?Math[_0x46c441(0x3d8)](0x0,new Date()[_0x46c441(0x504)]()-this['_scheduleTimestamp']):this[_0x46c441(0x251)]()),_0x457774;}throw _0x8e158[_0x46c441(0x3ce)];}catch(_0x411447){return this['_logService'][_0x46c441(0x3ce)](_0x411447),this['_onConflict'](!0x1);}}[_0x47025c(0x30a)](){throw new Error('[PendingState]:\x20received\x20acknowledgement.');}['onRemoteRej'](){const _0x26d151=_0x47025c;throw new Error(_0x26d151(0x31f));}[_0x47025c(0x205)](){const _0x5553d6=_0x47025c;return this[_0x5553d6(0x1fd)](),this[_0x5553d6(0x2af)][_0x5553d6(0x4a7)](B,this[_0x5553d6(0x20e)],this[_0x5553d6(0x53b)],null,this['_pendingMutations'],this['_handler']);}[_0x47025c(0x222)](){return this;}[_0x47025c(0x2c0)](_0x47dfd3){const _0x30cdbe=_0x47025c;_0x47dfd3=_0x47dfd3!=null?_0x47dfd3:this['_getSendChangesetTimeout'](),this[_0x30cdbe(0x43d)]=new Date()[_0x30cdbe(0x504)](),this[_0x30cdbe(0x53e)]=setTimeout(()=>{const _0x16ce51=_0x30cdbe;this['_clearScheduledTask']();let _0x5280e4=null;switch(this[_0x16ce51(0x53b)]){case j[_0x16ce51(0x379)]:{_0x5280e4=Cs(this['_pendingMutations'],this[_0x16ce51(0x20e)],this[_0x16ce51(0x507)],this[_0x16ce51(0x56c)],this[_0x16ce51(0x3e6)]);break;}case j[_0x16ce51(0x324)]:{_0x5280e4=bs(this[_0x16ce51(0x32c)],this['unitID'],this['_univerInstanceService'],this[_0x16ce51(0x56c)],this[_0x16ce51(0x3e6)]);break;}default:throw new Error('[PendingState]:\x20unhandled\x20univer\x20type:\x20'+this['type']+'\x20in\x20_schedule.');}const {changeset:_0x1765e4,pendingMutations:_0x19e05a}=_0x5280e4;this['_handler']['onSendChangeset'](_0x1765e4);const _0x2937e9=_0x19e05a[_0x16ce51(0x2e3)]?this[_0x16ce51(0x2af)]['createInstance'](H,this[_0x16ce51(0x20e)],this[_0x16ce51(0x53b)],_0x1765e4,_0x19e05a,this['_handler']):this[_0x16ce51(0x2af)][_0x16ce51(0x4a7)](k,this[_0x16ce51(0x20e)],this[_0x16ce51(0x53b)],_0x1765e4,this[_0x16ce51(0x399)]);_0x2937e9['_updateLocalCache'](),this[_0x16ce51(0x399)]['onStateChange'](this,_0x2937e9);},_0x47dfd3);}['_getSendChangesetTimeout'](){var _0x1ea1ce;return(_0x1ea1ce=this['_configService']['getConfig'](ht))!=null?_0x1ea1ce:Bt;}['resend'](){const _0x173f9a=_0x47025c;throw new Error(_0x173f9a(0x51a));}['_clearScheduledTask'](){const _0xd5e9ec=_0x47025c;this[_0xd5e9ec(0x53e)]!=null&&(clearTimeout(this[_0xd5e9ec(0x53e)]),this[_0xd5e9ec(0x53e)]=null);}[_0x47025c(0x291)](_0x1eeed1){const _0x367467=_0x47025c;return this['_clearScheduledTask'](),this[_0x367467(0x2af)]['createInstance'](Y,this[_0x367467(0x20e)],this[_0x367467(0x53b)],null,this[_0x367467(0x32c)],this[_0x367467(0x399)],_0x1eeed1);}};$=K([f(0x4,h[_0x47025c(0x36d)](h[_0x47025c(0x3c4)])),f(0x5,h[_0x47025c(0x36d)](u[_0x47025c(0x2d7)])),f(0x6,h[_0x47025c(0x36d)](exports[_0x47025c(0x1f5)])),f(0x7,h[_0x47025c(0x36d)](G)),f(0x8,a[_0x47025c(0x38a)]),f(0x9,a[_0x47025c(0x38f)]),f(0xa,a[_0x47025c(0x478)]),f(0xb,u[_0x47025c(0x31d)]),f(0xc,a['IUniverInstanceService']),f(0xd,a['IUndoRedoService'])],$);let k=class extends X{constructor(_0x2b9574,_0x50b332,_0x20a146,_0x37ac59,_0x2a550e,_0x45abda,_0x43a0e9,_0x25d6f2,_0x198c75,_0x202dd4,_0x239431){const _0x39b703=_0x47025c;super(_0x2b9574,_0x50b332,_0x20a146,[],_0x37ac59,_0x25d6f2,_0x239431,_0x45abda,_0x43a0e9),d(this,_0x39b703(0x424),_0x39b703(0x505)),(this[_0x39b703(0x2af)]=_0x2a550e,this[_0x39b703(0x4f9)]=_0x198c75,this[_0x39b703(0x42d)]=_0x202dd4);}[_0x47025c(0x2d8)](_0x1693bc){const _0x5c3f97=_0x47025c,_0x40c722=this[_0x5c3f97(0x2af)]['createInstance'](H,this['unitID'],this[_0x5c3f97(0x53b)],this[_0x5c3f97(0x428)],[_0x1693bc],this[_0x5c3f97(0x399)]);return _0x40c722[_0x5c3f97(0x39c)](),_0x40c722;}[_0x47025c(0x40e)](_0xc0405a){const _0x271e53=_0x47025c;if(this[_0x271e53(0x515)](_0xc0405a))return this[_0x271e53(0x2af)][_0x271e53(0x4a7)](x,this[_0x271e53(0x20e)],this[_0x271e53(0x53b)],this[_0x271e53(0x428)],[],null,[_0xc0405a],this[_0x271e53(0x399)]);try{const _0xbc22c=this[_0x271e53(0x42d)][_0x271e53(0x321)]([_0xc0405a],[this['_awaitingChangeset']],!0x1);if(u['isTransformChangesetsSuccess'](_0xbc22c)){const {c1Prime:_0x11baca,c2Prime:_0x3c36a1}=_0xbc22c;this[_0x271e53(0x550)](_0x11baca[0x0]),_0x3c36a1[0x0][_0x271e53(0x316)]=this[_0x271e53(0x42a)]();const _0x22ee7a=this[_0x271e53(0x2af)][_0x271e53(0x4a7)](k,this[_0x271e53(0x20e)],this[_0x271e53(0x53b)],_0x3c36a1[0x0],this[_0x271e53(0x399)]);return _0x22ee7a[_0x271e53(0x39c)](),_0x22ee7a;}return this[_0x271e53(0x291)](!0x1);}catch(_0x45c33f){return this[_0x271e53(0x4f9)][_0x271e53(0x3ce)](_0x45c33f),this[_0x271e53(0x291)](!0x1);}}[_0x47025c(0x30a)](_0xf2c6d6){const _0x3a9a66=_0x47025c,_0x21cb3a=this[_0x3a9a66(0x56c)]['getCurrentRevForDocument'](this['unitID']);if(_0xf2c6d6[_0x3a9a66(0x2d1)]<_0x21cb3a-0x1)return this;if(this['_checkMissing'](_0xf2c6d6))return this['_injector'][_0x3a9a66(0x4a7)](x,this['unitID'],this[_0x3a9a66(0x53b)],null,[],this[_0x3a9a66(0x428)],[],this[_0x3a9a66(0x399)]);this[_0x3a9a66(0x389)]();const _0x2ab7e6=this[_0x3a9a66(0x2af)][_0x3a9a66(0x4a7)](ae,this[_0x3a9a66(0x20e)],this['type'],this['_handler']);return _0x2ab7e6[_0x3a9a66(0x39c)](),_0x2ab7e6;}[_0x47025c(0x28a)](_0x51b7ed){const _0x59a719=_0x47025c;return this['_onConflict'](!!(_0x51b7ed!=null&&_0x51b7ed[_0x59a719(0x2f5)]));}[_0x47025c(0x205)](){const _0x593371=_0x47025c;return this['_injector']['createInstance'](B,this[_0x593371(0x20e)],this['type'],this[_0x593371(0x428)],[],this[_0x593371(0x399)]);}[_0x47025c(0x222)](){return this;}[_0x47025c(0x314)](){const _0x4ee83f=_0x47025c;this[_0x4ee83f(0x399)]['onSendChangeset'](this['_awaitingChangeset']);}[_0x47025c(0x291)](_0x568e57){const _0xa5479b=_0x47025c;return this[_0xa5479b(0x2af)]['createInstance'](Y,this[_0xa5479b(0x20e)],this[_0xa5479b(0x53b)],this[_0xa5479b(0x428)],[],this[_0xa5479b(0x399)],_0x568e57);}};k=K([f(0x4,h['Inject'](h['Injector'])),f(0x5,h['Inject'](u[_0x47025c(0x2d7)])),f(0x6,h[_0x47025c(0x36d)](exports['LocalCacheService'])),f(0x7,a[_0x47025c(0x38f)]),f(0x8,a[_0x47025c(0x38a)]),f(0x9,u['ITransformService']),f(0xa,a[_0x47025c(0x447)])],k);let H=class extends X{constructor(_0x5b5914,_0x17b073,_0xb1ed95,_0x5b0049,_0x3f7b29,_0x8430bf,_0x33160c,_0x19d6ea,_0x2a1a08,_0x4e3e63,_0x1d9d52,_0x458574){const _0x421560=_0x47025c;super(_0x5b5914,_0x17b073,_0xb1ed95,_0x5b0049,_0x3f7b29,_0x2a1a08,_0x458574,_0x33160c,_0x19d6ea),d(this,_0x421560(0x424),'awaiting_with_pending'),(this[_0x421560(0x2af)]=_0x8430bf,this['_logService']=_0x4e3e63,this['_transformService']=_0x1d9d52);}['appendMutation'](_0x102e5d){const _0x5085b1=_0x47025c;return this[_0x5085b1(0x32c)][_0x5085b1(0x28b)](_0x102e5d),this;}[_0x47025c(0x40e)](_0x3249e3){const _0x4cf72d=_0x47025c;if(this[_0x4cf72d(0x515)](_0x3249e3))return this['_injector'][_0x4cf72d(0x4a7)](x,this[_0x4cf72d(0x20e)],this[_0x4cf72d(0x53b)],this[_0x4cf72d(0x428)],this[_0x4cf72d(0x32c)],null,[_0x3249e3],this[_0x4cf72d(0x399)]);try{const _0x46ce24=this['_transformService']['transformChangesets']([_0x3249e3],[this['_awaitingChangeset']],!0x1);if(u[_0x4cf72d(0x583)](_0x46ce24)){const {c1Prime:_0x31498d,c2Prime:_0x1072e5}=_0x46ce24,_0x15c108=this[_0x4cf72d(0x42d)][_0x4cf72d(0x514)](_0x31498d[0x0],this[_0x4cf72d(0x32c)]);if(u[_0x4cf72d(0x326)](_0x15c108)){const {c1Prime:_0x2a95b0,m2Prime:_0x12eacf}=_0x15c108;return this[_0x4cf72d(0x550)](_0x2a95b0),_0x1072e5[0x0][_0x4cf72d(0x316)]=this[_0x4cf72d(0x42a)](),this['_injector'][_0x4cf72d(0x4a7)](H,this[_0x4cf72d(0x20e)],this[_0x4cf72d(0x53b)],_0x1072e5[0x0],_0x12eacf,this[_0x4cf72d(0x399)]);}throw _0x15c108['error'];}throw _0x46ce24[_0x4cf72d(0x3ce)];}catch(_0x5c7a13){return this[_0x4cf72d(0x4f9)][_0x4cf72d(0x3ce)](_0x5c7a13),this[_0x4cf72d(0x291)](!0x1);}}[_0x47025c(0x30a)](_0x2660c7){const _0x3d4204=_0x47025c;if(this[_0x3d4204(0x515)](_0x2660c7))return this[_0x3d4204(0x2af)][_0x3d4204(0x4a7)](x,this[_0x3d4204(0x20e)],this[_0x3d4204(0x53b)],null,this[_0x3d4204(0x32c)],this[_0x3d4204(0x428)],[],this['_handler']);this[_0x3d4204(0x389)]();const _0x3ba229=this[_0x3d4204(0x2af)][_0x3d4204(0x4a7)]($,this['unitID'],this[_0x3d4204(0x53b)],this[_0x3d4204(0x32c)],this['_handler']);return _0x3ba229[_0x3d4204(0x2c0)](),_0x3ba229[_0x3d4204(0x39c)](),_0x3ba229;}[_0x47025c(0x28a)](_0x276cb6){const _0x100e10=_0x47025c;return this[_0x100e10(0x291)](!!(_0x276cb6!=null&&_0x276cb6[_0x100e10(0x2f5)]));}[_0x47025c(0x205)](){const _0x322f0b=_0x47025c;return this[_0x322f0b(0x2af)]['createInstance'](B,this[_0x322f0b(0x20e)],this[_0x322f0b(0x53b)],this['_awaitingChangeset'],this[_0x322f0b(0x32c)],this[_0x322f0b(0x399)]);}[_0x47025c(0x222)](){return this;}['resend'](){const _0x4a3439=_0x47025c;this[_0x4a3439(0x399)]['onSendChangeset'](this[_0x4a3439(0x428)]);}[_0x47025c(0x291)](_0x550a44){const _0x193327=_0x47025c;return this['_injector'][_0x193327(0x4a7)](Y,this[_0x193327(0x20e)],this[_0x193327(0x53b)],null,this[_0x193327(0x32c)],this['_handler'],_0x550a44);}};H=K([f(0x5,h[_0x47025c(0x36d)](h[_0x47025c(0x3c4)])),f(0x6,h['Inject'](u[_0x47025c(0x2d7)])),f(0x7,h['Inject'](exports[_0x47025c(0x1f5)])),f(0x8,a[_0x47025c(0x38f)]),f(0x9,a['ILogService']),f(0xa,u['ITransformService']),f(0xb,a[_0x47025c(0x447)])],H);let Y=class extends X{constructor(_0xf91c45,_0x518dbb,_0x1b6e64,_0x3715cb,_0x54c38d,_0x179227=!0x1,_0x32b29f,_0x1865e7,_0x1e1779,_0x1198eb,_0xe4cbfa,_0x14e04d,_0x1ef1ec){const _0x2ec60f=_0x47025c;super(_0xf91c45,_0x518dbb,_0x1b6e64,_0x3715cb,_0x54c38d,_0x1865e7,_0x1e1779,_0xe4cbfa,_0x1198eb),d(this,_0x2ec60f(0x424),_0x2ec60f(0x4f2)),(this[_0x2ec60f(0x225)]=_0x179227,this['_permissionService']=_0x32b29f,this[_0x2ec60f(0x433)]=_0x14e04d,this[_0x2ec60f(0x39a)]=_0x1ef1ec,this[_0x2ec60f(0x593)](),this[_0x2ec60f(0x42e)](),this[_0x2ec60f(0x1f4)]());}[_0x47025c(0x2d8)](){return this;}[_0x47025c(0x40e)](){return this;}['onRemoteAck'](){return this;}[_0x47025c(0x28a)](){return this;}[_0x47025c(0x205)](){return this;}[_0x47025c(0x222)](){return this;}['resend'](){const _0x4ef8f9=_0x47025c;throw new Error(_0x4ef8f9(0x236));}[_0x47025c(0x42e)](){const _0x4a5c29=_0x47025c;this['_localCacheService'][_0x4a5c29(0x471)](this[_0x4a5c29(0x20e)],this[_0x4a5c29(0x53b)],null,[]);}['_showConflictNotification'](){const _0x1bd315=_0x47025c;this[_0x1bd315(0x225)]?this[_0x1bd315(0x39a)][_0x1bd315(0x278)]({'title':this[_0x1bd315(0x433)]['t'](_0x1bd315(0x41c)),'content':this[_0x1bd315(0x433)]['t'](_0x1bd315(0x298)),'type':_0x1bd315(0x3ce),'duration':0x0}):this[_0x1bd315(0x39a)][_0x1bd315(0x278)]({'title':this['_localeService']['t'](_0x1bd315(0x4fa)),'content':this[_0x1bd315(0x433)]['t']('conflict.content'),'type':'error','duration':0x0});}[_0x47025c(0x1f4)](){const _0x3cc648=_0x47025c;this['_permissionService'][_0x3cc648(0x2cc)](new E['WorkbookEditablePermission'](this['unitID'])['id'],!0x1);}};Y=K([f(0x6,h[_0x47025c(0x36d)](a[_0x47025c(0x472)])),f(0x7,a[_0x47025c(0x38f)]),f(0x8,a['IUndoRedoService']),f(0x9,h[_0x47025c(0x36d)](exports[_0x47025c(0x1f5)])),f(0xa,h[_0x47025c(0x36d)](u[_0x47025c(0x2d7)])),f(0xb,h['Inject'](a[_0x47025c(0x3f8)])),f(0xc,N['INotificationService'])],Y);let B=class extends X{constructor(_0x5ec734,_0x220558,_0x55830a,_0x19e5fc,_0x1e8863,_0x16793d,_0x3faaa6,_0x37117f,_0x49f33b,_0x15132a){const _0x476644=_0x47025c;super(_0x5ec734,_0x220558,_0x55830a,_0x19e5fc,_0x1e8863,_0x49f33b,_0x15132a,_0x3faaa6,_0x37117f),d(this,_0x476644(0x424),'offline'),this[_0x476644(0x2af)]=_0x16793d;}[_0x47025c(0x2d8)](_0x320308){const _0x42f554=_0x47025c;return this[_0x42f554(0x32c)][_0x42f554(0x28b)](_0x320308),this[_0x42f554(0x39c)](),this;}[_0x47025c(0x40e)](_0x3525b6){const _0x4ecd23=_0x47025c;throw new Error(_0x4ecd23(0x3a9));}[_0x47025c(0x30a)](){const _0x5eccda=_0x47025c;throw new Error(_0x5eccda(0x258));}[_0x47025c(0x28a)](){const _0xf75e95=_0x47025c;throw new Error(_0xf75e95(0x404));}[_0x47025c(0x205)](){return this;}[_0x47025c(0x222)](){const _0x51e80d=_0x47025c,{_injector:_0x42d077,_pendingMutations:_0x26d4dd,_awaitingChangeset:_0x6c3f3e,unitID:_0x34d589,_handler:_0xbd8956,type:_0x30c065}=this,_0x3b7c61=bt(_0x42d077,_0x34d589,_0x30c065,_0x6c3f3e,_0x26d4dd,_0xbd8956);return _0x3b7c61 instanceof $?_0x3b7c61[_0x51e80d(0x2c0)]():(_0x3b7c61 instanceof H||_0x3b7c61 instanceof k)&&_0x3b7c61[_0x51e80d(0x314)](),_0x3b7c61;}[_0x47025c(0x314)](){const _0x1d108a=_0x47025c;throw new Error(_0x1d108a(0x32e));}};B=K([f(0x5,h[_0x47025c(0x36d)](h[_0x47025c(0x3c4)])),f(0x6,h[_0x47025c(0x36d)](u[_0x47025c(0x2d7)])),f(0x7,h[_0x47025c(0x36d)](exports[_0x47025c(0x1f5)])),f(0x8,a[_0x47025c(0x38f)]),f(0x9,a[_0x47025c(0x447)])],B);let x=class extends X{constructor(_0x220a89,_0x3241bd,_0x1d1573,_0x5de390,_0x5d0841,_0x53d70b,_0x1fffb,_0x1fff54,_0x4af344,_0x3604ac,_0x927603,_0x482e41,_0x383c7c,_0xd22d94){const _0x3bbfe0=_0x47025c;super(_0x220a89,_0x3241bd,_0x1d1573,_0x5de390,_0x1fffb,_0x482e41,_0x383c7c,_0x4af344,_0x3604ac),d(this,'status',_0x3bbfe0(0x496)),(this[_0x3bbfe0(0x227)]=_0x5d0841,this[_0x3bbfe0(0x2f4)]=_0x53d70b,this[_0x3bbfe0(0x2af)]=_0x1fff54,this[_0x3bbfe0(0x4f9)]=_0x927603,this[_0x3bbfe0(0x42d)]=_0xd22d94);}[_0x47025c(0x57e)](_0x53f3b6){const _0x2132aa=_0x47025c;try{const _0x16d073=[..._0x53f3b6,...this[_0x2132aa(0x2f4)]],_0x265679=[this['_awaitingChangeset']||this[_0x2132aa(0x227)]][_0x2132aa(0x24a)](_0x16f007=>!!_0x16f007);let _0x1fec0c,_0x508c27;if(_0x265679['length']){const _0x4a5fc8=this[_0x2132aa(0x42d)][_0x2132aa(0x321)](_0x16d073,_0x265679,!0x1);if(!u[_0x2132aa(0x583)](_0x4a5fc8))throw _0x4a5fc8[_0x2132aa(0x3ce)];_0x1fec0c=_0x4a5fc8['c1Prime'],_0x508c27=_0x4a5fc8[_0x2132aa(0x4f5)];}else _0x1fec0c=_0x16d073,_0x508c27=[];let _0x3afb82=this[_0x2132aa(0x32c)];_0x1fec0c[_0x2132aa(0x4e0)](_0x597007=>{const _0x434494=_0x2132aa;let _0x2c3f5a;if(_0x3afb82['length']){const _0x163e6c=this[_0x434494(0x42d)][_0x434494(0x514)](_0x597007,_0x3afb82);if(!u[_0x434494(0x326)](_0x163e6c))throw _0x163e6c[_0x434494(0x3ce)];_0x2c3f5a=_0x163e6c[_0x434494(0x3ae)],_0x3afb82=_0x163e6c[_0x434494(0x4c3)];}else _0x2c3f5a=_0x597007;this[_0x434494(0x550)](_0x2c3f5a);}),this[_0x2132aa(0x227)]&&this[_0x2132aa(0x389)](),this[_0x2132aa(0x428)]&&_0x508c27['length']&&(_0x508c27[0x0][_0x2132aa(0x316)]=this[_0x2132aa(0x42a)]());let _0x12c5c0;if(this['_awaitingChangeset']&&_0x3afb82['length']!==0x0)_0x12c5c0=this[_0x2132aa(0x2af)]['createInstance'](H,this[_0x2132aa(0x20e)],this['type'],_0x508c27[0x0],_0x3afb82,this[_0x2132aa(0x399)]);else{if(this[_0x2132aa(0x428)]&&_0x3afb82[_0x2132aa(0x2e3)]===0x0)_0x508c27[0x0][_0x2132aa(0x316)]=this[_0x2132aa(0x42a)](),_0x12c5c0=this['_injector'][_0x2132aa(0x4a7)](k,this['unitID'],this[_0x2132aa(0x53b)],_0x508c27[0x0],this[_0x2132aa(0x399)]);else{if(_0x3afb82[_0x2132aa(0x2e3)]!==0x0){const _0x9c83f0=this['_injector'][_0x2132aa(0x4a7)]($,this[_0x2132aa(0x20e)],this[_0x2132aa(0x53b)],_0x3afb82,this[_0x2132aa(0x399)]);_0x9c83f0[_0x2132aa(0x2c0)](),_0x12c5c0=_0x9c83f0;}else _0x12c5c0=this['_injector'][_0x2132aa(0x4a7)](ae,this[_0x2132aa(0x20e)],this['type'],this[_0x2132aa(0x399)]);}}return _0x12c5c0[_0x2132aa(0x39c)](),_0x12c5c0;}catch(_0x522b1d){return this[_0x2132aa(0x4f9)][_0x2132aa(0x3ce)](_0x2132aa(0x494),_0x2132aa(0x520),_0x522b1d),this[_0x2132aa(0x2af)][_0x2132aa(0x4a7)](Y,this[_0x2132aa(0x20e)],this['type'],this['_awaitingChangeset'],this[_0x2132aa(0x32c)],this[_0x2132aa(0x399)],!0x1);}}[_0x47025c(0x314)](){const _0x465bb0=_0x47025c;throw new Error(_0x465bb0(0x52b));}[_0x47025c(0x2d8)](_0x595bff){const _0xd0acd9=_0x47025c;return this[_0xd0acd9(0x32c)][_0xd0acd9(0x28b)](_0x595bff),this;}[_0x47025c(0x40e)](_0x20e471){const _0x23b73a=_0x47025c;return this['_queuedRemoteChangesets'][_0x23b73a(0x28b)](_0x20e471),this;}[_0x47025c(0x30a)](_0x258723){const _0x49a2ef=_0x47025c;if(this[_0x49a2ef(0x428)])return this[_0x49a2ef(0x227)]=this['_awaitingChangeset'],this[_0x49a2ef(0x428)]=null,this;throw new Error(_0x49a2ef(0x529));}['onRemoteRej'](_0x3e68ba){const _0xa40920=_0x47025c;return this[_0xa40920(0x291)](!!(_0x3e68ba!=null&&_0x3e68ba[_0xa40920(0x2f5)]));}[_0x47025c(0x205)](){const _0x38c487=_0x47025c;return this[_0x38c487(0x2af)]['createInstance'](B,this[_0x38c487(0x20e)],this[_0x38c487(0x53b)],this['_awaitingChangeset'],this[_0x38c487(0x32c)],this[_0x38c487(0x399)]);}[_0x47025c(0x222)](){return this;}[_0x47025c(0x291)](_0x46d0d8){const _0x3bc4c6=_0x47025c;return this[_0x3bc4c6(0x2af)][_0x3bc4c6(0x4a7)](Y,this[_0x3bc4c6(0x20e)],this[_0x3bc4c6(0x53b)],this['_awaitingChangeset'],this[_0x3bc4c6(0x32c)],this['_handler'],_0x46d0d8);}};x=K([f(0x7,h[_0x47025c(0x36d)](h[_0x47025c(0x3c4)])),f(0x8,h[_0x47025c(0x36d)](u[_0x47025c(0x2d7)])),f(0x9,h[_0x47025c(0x36d)](exports['LocalCacheService'])),f(0xa,a[_0x47025c(0x38a)]),f(0xb,a[_0x47025c(0x38f)]),f(0xc,a[_0x47025c(0x447)]),f(0xd,u[_0x47025c(0x31d)])],x);function bt(_0x23cb12,_0x118ee2,_0x2b7fe9,_0x350505,_0x48c786,_0x62d00c){const _0x373126=_0x47025c;return _0x350505&&_0x48c786[_0x373126(0x2e3)]?_0x23cb12[_0x373126(0x4a7)](H,_0x118ee2,_0x2b7fe9,_0x350505,_0x48c786,_0x62d00c):_0x350505?_0x23cb12[_0x373126(0x4a7)](k,_0x118ee2,_0x2b7fe9,_0x350505,_0x62d00c):_0x48c786['length']?_0x23cb12[_0x373126(0x4a7)]($,_0x118ee2,_0x2b7fe9,_0x48c786,_0x62d00c):_0x23cb12['createInstance'](ae,_0x118ee2,_0x2b7fe9,_0x62d00c);}var Os=Object[_0x47025c(0x430)],Ds=Object[_0x47025c(0x348)],Ee=(_0x36414e,_0x5a6c6e,_0xaa403d,_0x3e7fe7)=>{const _0x15e1a0=_0x47025c;for(var _0x1eacd7=_0x3e7fe7>0x1?void 0x0:_0x3e7fe7?Ds(_0x5a6c6e,_0xaa403d):_0x5a6c6e,_0x2d20cc=_0x36414e[_0x15e1a0(0x2e3)]-0x1,_0x3a1e59;_0x2d20cc>=0x0;_0x2d20cc--)(_0x3a1e59=_0x36414e[_0x2d20cc])&&(_0x1eacd7=(_0x3e7fe7?_0x3a1e59(_0x5a6c6e,_0xaa403d,_0x1eacd7):_0x3a1e59(_0x1eacd7))||_0x1eacd7);return _0x3e7fe7&&_0x1eacd7&&Os(_0x5a6c6e,_0xaa403d,_0x1eacd7),_0x1eacd7;},I=(_0x93b571,_0x3cf780)=>(_0x1c4209,_0x1357ae)=>_0x3cf780(_0x1c4209,_0x1357ae,_0x93b571);exports['CollaborationController']=class extends a['RxDisposable']{constructor(_0x4bb642,_0x4ab1ed,_0x4c2b03){const _0x13a4a2=_0x47025c;super(),d(this,_0x13a4a2(0x488),new Map()),d(this,_0x13a4a2(0x3a2),new g[(_0x13a4a2(0x569))]()),(this[_0x13a4a2(0x2af)]=_0x4bb642,this[_0x13a4a2(0x232)]=_0x4ab1ed,this['_univerInstanceService']=_0x4c2b03,this[_0x13a4a2(0x308)]());}[_0x47025c(0x3d3)](){const _0x3596bf=_0x47025c;super[_0x3596bf(0x3d3)](),this[_0x3596bf(0x488)][_0x3596bf(0x4e0)](_0x3873f9=>_0x3873f9[_0x3596bf(0x3d3)]()),this[_0x3596bf(0x488)][_0x3596bf(0x4c6)]();}[_0x47025c(0x429)](_0x28ea32){const _0x1305f5=_0x47025c;var _0x41bf6d;return(_0x41bf6d=this['_entities'][_0x1305f5(0x372)](_0x28ea32))!=null?_0x41bf6d:null;}[_0x47025c(0x57a)](_0x2a0898){const _0x393f7d=_0x47025c,_0x215948=this[_0x393f7d(0x429)](_0x2a0898);return _0x215948?g['of'](_0x215948):this[_0x393f7d(0x3a2)][_0x393f7d(0x252)](T[_0x393f7d(0x24a)](_0x595162=>_0x595162[_0x393f7d(0x20e)]===_0x2a0898));}[_0x47025c(0x308)](){const _0x19eca1=_0x47025c;this[_0x19eca1(0x507)][_0x19eca1(0x517)](a[_0x19eca1(0x3fb)][_0x19eca1(0x379)])['pipe'](g['takeUntil'](this[_0x19eca1(0x3f4)]),T['delay'](0x10))[_0x19eca1(0x588)](async _0x403a2c=>{const _0x3cd15f=_0x19eca1,_0x3fa6a6=_0x403a2c[_0x3cd15f(0x518)](),_0x417a69=await this[_0x3cd15f(0x4c1)](_0x3fa6a6,j[_0x3cd15f(0x379)]);this[_0x3cd15f(0x488)][_0x3cd15f(0x279)](_0x3fa6a6,_0x417a69);}),this[_0x19eca1(0x507)][_0x19eca1(0x517)](a[_0x19eca1(0x3fb)][_0x19eca1(0x324)])[_0x19eca1(0x252)](g[_0x19eca1(0x483)](this[_0x19eca1(0x3f4)]),T[_0x19eca1(0x25e)](0x10))[_0x19eca1(0x252)](T[_0x19eca1(0x24a)](_0x3940a1=>!_0x3940a1[_0x19eca1(0x518)]()[_0x19eca1(0x2b7)]('__')))[_0x19eca1(0x588)](async _0x20cb74=>{const _0x343c1e=_0x19eca1,_0x53a12a=_0x20cb74['getUnitId'](),_0x18d9df=await this[_0x343c1e(0x4c1)](_0x53a12a,j['UNIVER_DOC']);this[_0x343c1e(0x488)][_0x343c1e(0x279)](_0x53a12a,_0x18d9df);}),g['merge'](this[_0x19eca1(0x507)][_0x19eca1(0x4e3)](a[_0x19eca1(0x3fb)][_0x19eca1(0x379)]),this[_0x19eca1(0x507)][_0x19eca1(0x4e3)](a[_0x19eca1(0x3fb)]['UNIVER_DOC']))[_0x19eca1(0x252)](g['takeUntil'](this[_0x19eca1(0x3f4)]))['subscribe'](_0x1ee249=>{const _0xe835fc=_0x19eca1,_0x5ef6f3=_0x1ee249[_0xe835fc(0x518)](),_0x3a3da4=this[_0xe835fc(0x488)][_0xe835fc(0x372)](_0x5ef6f3);_0x3a3da4&&(_0x3a3da4[_0xe835fc(0x3d3)](),this['_entities'][_0xe835fc(0x57c)](_0x5ef6f3));});}async[_0x47025c(0x4c1)](_0x15a2fb,_0x187c72){const _0x5e819a=_0x47025c,_0x1153e9=await this[_0x5e819a(0x232)][_0x5e819a(0x553)](_0x15a2fb),_0x59d3b2=this[_0x5e819a(0x2af)][_0x5e819a(0x4a7)](this['_getCtorByUniverType'](_0x187c72),_0x15a2fb,_0x187c72,_0x1153e9);return await _0x59d3b2[_0x5e819a(0x481)](),this[_0x5e819a(0x3a2)][_0x5e819a(0x361)](_0x59d3b2),_0x59d3b2;}['_getCtorByUniverType'](_0x128dad){const _0x383040=_0x47025c;switch(_0x128dad){case j[_0x383040(0x324)]:return Pe;case j[_0x383040(0x379)]:return ye;default:throw new Error(_0x383040(0x2fd)+_0x128dad);}}},exports[_0x47025c(0x561)]=Ee([a[_0x47025c(0x21e)](a['LifecycleStages']['Starting'],exports[_0x47025c(0x561)]),I(0x0,h[_0x47025c(0x36d)](h['Injector'])),I(0x1,h[_0x47025c(0x36d)](exports[_0x47025c(0x2ad)])),I(0x2,a[_0x47025c(0x4d6)])],exports['CollaborationController']);let me=class extends a[_0x47025c(0x3ff)]{constructor(_0x4369a7,_0x92f5ee,_0x559a25,_0x469966,_0xb1fdaf,_0x3b1539,_0x19db38,_0xa7c45c,_0x26f083,_0x5ec0ac,_0x4507a2,_0x5ba441,_0x1e1bb8){const _0x12d2a0=_0x47025c;super(),d(this,'_state$',new g['BehaviorSubject'](null)),d(this,_0x12d2a0(0x376),this[_0x12d2a0(0x299)][_0x12d2a0(0x435)]()),d(this,'_state'),d(this,_0x12d2a0(0x575),!0x1),d(this,_0x12d2a0(0x243),this[_0x12d2a0(0x376)][_0x12d2a0(0x252)](T[_0x12d2a0(0x2ab)](_0x58ccd5=>_0x58ccd5?_0x58ccd5[_0x12d2a0(0x424)]:w[_0x12d2a0(0x2a8)]),T['shareReplay'](0x1))),d(this,_0x12d2a0(0x440),!0x1),d(this,_0x12d2a0(0x264),[]),(this[_0x12d2a0(0x20e)]=_0x4369a7,this['_type']=_0x92f5ee,this[_0x12d2a0(0x4ee)]=_0x559a25,this['_injector']=_0x469966,this[_0x12d2a0(0x528)]=_0xb1fdaf,this[_0x12d2a0(0x438)]=_0x3b1539,this[_0x12d2a0(0x433)]=_0x19db38,this[_0x12d2a0(0x56c)]=_0xa7c45c,this[_0x12d2a0(0x4f9)]=_0x26f083,this[_0x12d2a0(0x270)]=_0x5ec0ac,this[_0x12d2a0(0x4a0)]=_0x4507a2,this[_0x12d2a0(0x22b)]=_0x5ba441,this[_0x12d2a0(0x2fb)]=_0x1e1bb8);}get['state'](){return this['_state'];}async[_0x47025c(0x481)](){const _0x186246=_0x47025c;if(this['state'])throw new Error(_0x186246(0x282));await this['_init']();}[_0x47025c(0x4d0)](){const _0x47e6e9=_0x47025c;return this['_collaborationPaused']=!0x0,a[_0x47e6e9(0x26c)](()=>{const _0x40c837=_0x47e6e9;this[_0x40c837(0x575)]=!0x1,this[_0x40c837(0x2a2)]();});}[_0x47025c(0x2b9)](_0x3ea5d8){const _0x182336=_0x47025c;this['_state']=_0x3ea5d8,this[_0x182336(0x299)]['next'](_0x3ea5d8);}async[_0x47025c(0x308)](){const _0x7db59a=_0x47025c;var _0x361830;return this[_0x7db59a(0x2b9)](await this['_createInitialState']()),this['_singleActiveUnitService']&&((_0x361830=this[_0x7db59a(0x2fb)])==null||_0x361830['editingUnit'](this[_0x7db59a(0x20e)]),this['disposeWithMe'](a[_0x7db59a(0x26c)](this[_0x7db59a(0x2fb)][_0x7db59a(0x216)](this['unitID'])['subscribe'](_0x37b2a9=>{const _0xb41ad4=_0x7db59a;this[_0xb41ad4(0x4f9)][_0xb41ad4(0x375)](_0xb41ad4(0x3e5),_0xb41ad4(0x549),_0x37b2a9),_0x37b2a9===Et['OTHER_CLIENTS_EDITING']?(this[_0xb41ad4(0x4a0)][_0xb41ad4(0x278)]({'content':this[_0xb41ad4(0x433)]['t'](_0xb41ad4(0x2ec)),'type':oe['MessageType']['Warning']}),this[_0xb41ad4(0x22b)][_0xb41ad4(0x2cc)](new E[(_0xb41ad4(0x28f))](this[_0xb41ad4(0x20e)])['id'],!0x1)):this[_0xb41ad4(0x22b)][_0xb41ad4(0x2cc)](new E['WorkbookEditablePermission'](this[_0xb41ad4(0x20e)])['id'],!0x0);})))),this[_0x7db59a(0x4dd)](a[_0x7db59a(0x26c)](this[_0x7db59a(0x4ee)][_0x7db59a(0x4cc)][_0x7db59a(0x588)](_0x57daf7=>{const _0x421c05=_0x7db59a;_0x57daf7===W[_0x421c05(0x511)]?this['_toggleOnline']():_0x57daf7===W[_0x421c05(0x2a8)]&&this['_toggleOffline']();}))),this['disposeWithMe'](a['toDisposable'](this[_0x7db59a(0x4ee)][_0x7db59a(0x262)][_0x7db59a(0x588)](_0x2d4e70=>{const _0x54ee09=_0x7db59a;try{switch(_0x2d4e70['eventID']){case u[_0x54ee09(0x470)][_0x54ee09(0x56b)]:{this[_0x54ee09(0x2eb)](u['parseProtocolChangeset'](_0x2d4e70['data']));break;}case u[_0x54ee09(0x470)][_0x54ee09(0x51d)]:{this[_0x54ee09(0x3c7)](_0x2d4e70['data']);break;}case u[_0x54ee09(0x470)][_0x54ee09(0x49d)]:{this[_0x54ee09(0x444)]();break;}case u['CollaborationEvent'][_0x54ee09(0x48e)]:{this[_0x54ee09(0x210)](_0x2d4e70[_0x54ee09(0x272)][_0x54ee09(0x2f2)][_0x54ee09(0x2ab)](_0x39c7e8=>u['parseProtocolChangeset'](_0x39c7e8)));break;}case u[_0x54ee09(0x470)]['PERMISSION_REJ']:this[_0x54ee09(0x444)]({'isPermissionRej':!0x0});}}catch(_0x5492ae){throw console[_0x54ee09(0x3ce)](_0x54ee09(0x56f),_0x5492ae),_0x5492ae;}}))),this['_state'];}[_0x47025c(0x4b7)](){this['_transitionLocked']=!0x1;}[_0x47025c(0x351)](){const _0x3faf2c=_0x47025c;if(this[_0x3faf2c(0x440)])throw new Error(_0x3faf2c(0x2cb));this['_transitionLocked']=!0x0;}[_0x47025c(0x330)](_0x41d768){const _0x38a16e=_0x47025c;this[_0x38a16e(0x351)](),this[_0x38a16e(0x2b9)](this[_0x38a16e(0x362)]['appendMutation'](_0x41d768)),this['_unlockTransition']();}[_0x47025c(0x2eb)](_0x1ff67c){const _0x818dc2=_0x47025c;if(!(_0x1ff67c['revision']<=this[_0x818dc2(0x56c)][_0x818dc2(0x432)](this[_0x818dc2(0x20e)]))){if(this[_0x818dc2(0x575)]){this['_remoteChangesetQueue'][_0x818dc2(0x28b)](_0x1ff67c);return;}this[_0x818dc2(0x3d2)](_0x1ff67c);}}['_exhaustRemoteChangesetQueue'](){const _0x341b11=_0x47025c;this[_0x341b11(0x264)][_0x341b11(0x4e0)](_0x35f077=>this[_0x341b11(0x3d2)](_0x35f077)),this[_0x341b11(0x264)]=[];}[_0x47025c(0x3d2)](_0x59b31a){const _0x1fa371=_0x47025c,_0x4c359d=this['_compressMutationService'][_0x1fa371(0x228)][_0x1fa371(0x542)](this[_0x1fa371(0x438)]['interceptor'][_0x1fa371(0x552)]()[_0x1fa371(0x3f7)])(_0x59b31a['mutations'],null)||_0x59b31a[_0x1fa371(0x2e2)],_0x1b82a9={..._0x59b31a,'mutations':_0x4c359d};this[_0x1fa371(0x351)](),this['_updateState'](this[_0x1fa371(0x362)][_0x1fa371(0x40e)](_0x1b82a9)),this[_0x1fa371(0x4b7)]();}[_0x47025c(0x3c7)](_0xd577ce){const _0x13c123=_0x47025c;this[_0x13c123(0x351)](),this[_0x13c123(0x2b9)](this[_0x13c123(0x362)][_0x13c123(0x30a)](_0xd577ce)),this['_unlockTransition']();}[_0x47025c(0x444)](_0x2b4c8e){const _0x13e75f=_0x47025c;this[_0x13e75f(0x351)](),this[_0x13e75f(0x2b9)](this[_0x13e75f(0x362)][_0x13e75f(0x28a)](_0x2b4c8e)),this['_unlockTransition']();}[_0x47025c(0x210)](_0x559ccf){const _0x15cecc=_0x47025c;if(!(this[_0x15cecc(0x362)]instanceof x))throw new TypeError(_0x15cecc(0x4cb));const _0x2989e0=_0x559ccf[_0x15cecc(0x2ab)](_0x33d82e=>{const _0x5d7e49=_0x15cecc,_0x4057ee=this[_0x5d7e49(0x438)][_0x5d7e49(0x228)][_0x5d7e49(0x542)](this[_0x5d7e49(0x438)][_0x5d7e49(0x228)][_0x5d7e49(0x552)]()['COMPRESS_MUTATION_APPLY'])(_0x33d82e['mutations'],null)||_0x33d82e['mutations'];return{..._0x33d82e,'mutations':_0x4057ee};});this['_lockTransition'](),this[_0x15cecc(0x2b9)](this[_0x15cecc(0x362)][_0x15cecc(0x57e)](_0x2989e0)),this[_0x15cecc(0x4b7)]();}['_toggleOffline'](){const _0x24ac58=_0x47025c;this[_0x24ac58(0x351)](),this['_updateState'](this[_0x24ac58(0x362)][_0x24ac58(0x205)]()),this['_unlockTransition']();}[_0x47025c(0x46a)](){const _0x4f71bf=_0x47025c;this[_0x4f71bf(0x351)](),this[_0x4f71bf(0x2b9)](this[_0x4f71bf(0x362)][_0x4f71bf(0x222)]()),this[_0x4f71bf(0x4b7)]();}async['_createInitialState'](){return new Promise(_0x26e297=>{const _0x2c6516=_0x22eb;this[_0x2c6516(0x4ee)]['sessionStatus$'][_0x2c6516(0x252)](T[_0x2c6516(0x402)](0x1))[_0x2c6516(0x588)](async _0x3b4cd1=>{_0x26e297(await this['_createInitialStateImpl'](_0x3b4cd1===W['ONLINE']));});});}[_0x47025c(0x24b)](){const _0x571bfe=_0x47025c,_0x287170=this[_0x571bfe(0x20e)];return{'onStateChange':(_0x4d7118,_0x181673)=>{const _0x1bd88c=_0x571bfe;if(_0x4d7118!==this[_0x1bd88c(0x362)])throw new Error('[ClientCollaborationController]:\x20invalid\x20state\x20transition!\x20State\x20transferred\x20from\x20is\x20not\x20the\x20current\x20state.\x0aBefore:\x20'+_0x4d7118[_0x1bd88c(0x424)]+_0x1bd88c(0x24f)+_0x181673[_0x1bd88c(0x424)]+'\x0aCurrent:\x20'+this['_state'][_0x1bd88c(0x424)]);this[_0x1bd88c(0x2b9)](_0x181673);},'onSendChangeset':_0x2a5ffd=>{const _0x17f3f5=_0x571bfe,_0x57b298={'eventID':u[_0x17f3f5(0x470)]['SUBMIT_CHANGESET'],'data':{'unitID':_0x2a5ffd['unitID'],'unitType':this[_0x17f3f5(0x283)],'changeset':_0x2a5ffd,'memberID':this[_0x17f3f5(0x4ee)][_0x17f3f5(0x4c5)]()}};this['_session'][_0x17f3f5(0x46b)](_0x57b298,this[_0x17f3f5(0x20e)]);},'onMissingChangesets':({from:_0x8f50e4,to:_0x32c38d})=>{const _0x3848ab=_0x571bfe;this[_0x3848ab(0x4f9)][_0x3848ab(0x375)](_0x3848ab(0x3e5),_0x3848ab(0x3b6)+_0x8f50e4+_0x3848ab(0x459)+_0x32c38d);const _0x1e3967={'eventID':u[_0x3848ab(0x470)][_0x3848ab(0x4d8)],'data':{'unitID':_0x287170,'unitType':this[_0x3848ab(0x283)],'from':_0x8f50e4,'to':_0x32c38d}};this['_session'][_0x3848ab(0x46b)](_0x1e3967,this[_0x3848ab(0x20e)]);}};}async[_0x47025c(0x273)](_0x438613){const _0x450576=_0x47025c;var _0x25cffe,_0x57e90b;const _0x140bf7=await this[_0x450576(0x528)][_0x450576(0x40f)](this[_0x450576(0x20e)]),_0x37a02b=(_0x25cffe=_0x140bf7==null?void 0x0:_0x140bf7[_0x450576(0x2e2)])!=null?_0x25cffe:[],_0x5121c3=(_0x57e90b=_0x140bf7==null?void 0x0:_0x140bf7[_0x450576(0x562)])!=null?_0x57e90b:null,_0x447f0c=this[_0x450576(0x20e)];try{this[_0x450576(0x506)](_0x5121c3,_0x37a02b);}catch(_0x49fb06){this[_0x450576(0x4f9)]['error'](_0x49fb06);}const _0x5cdf28=this[_0x450576(0x24b)]();if(_0x438613){const _0x3dd9e3=bt(this[_0x450576(0x2af)],_0x447f0c,this[_0x450576(0x283)],_0x5121c3,_0x37a02b,_0x5cdf28);return _0x3dd9e3 instanceof $?_0x3dd9e3['_schedule']():(_0x3dd9e3 instanceof H||_0x3dd9e3 instanceof k)&&_0x3dd9e3[_0x450576(0x314)](),_0x3dd9e3;}return this[_0x450576(0x2af)][_0x450576(0x4a7)](B,_0x447f0c,this[_0x450576(0x283)],_0x5121c3,_0x37a02b,_0x5cdf28);}['_replayCachedMutations'](_0x7ccef9,_0x23ad62){const _0x569ddb=_0x47025c;var _0x3c9f2c,_0x3f4cd6;const _0x499c92=this[_0x569ddb(0x438)][_0x569ddb(0x228)][_0x569ddb(0x542)](this[_0x569ddb(0x438)][_0x569ddb(0x228)][_0x569ddb(0x552)]()[_0x569ddb(0x3f7)]);(_0x3c9f2c=_0x499c92((_0x7ccef9==null?void 0x0:_0x7ccef9[_0x569ddb(0x2e2)])||[],null))==null||_0x3c9f2c['forEach'](_0x221a56=>this[_0x569ddb(0x270)][_0x569ddb(0x248)](_0x221a56['id'],_0x221a56['params'])),(_0x3f4cd6=_0x499c92(_0x23ad62||[],null))==null||_0x3f4cd6[_0x569ddb(0x4e0)](_0x14c004=>this[_0x569ddb(0x270)]['executeCommand'](_0x14c004['id'],_0x14c004[_0x569ddb(0x591)]));}};me=Ee([I(0x3,h[_0x47025c(0x36d)](h[_0x47025c(0x3c4)])),I(0x4,h[_0x47025c(0x36d)](exports[_0x47025c(0x1f5)])),I(0x5,h[_0x47025c(0x36d)](u[_0x47025c(0x597)])),I(0x6,h[_0x47025c(0x36d)](a[_0x47025c(0x3f8)])),I(0x7,h[_0x47025c(0x36d)](u['RevisionService'])),I(0x8,a[_0x47025c(0x38a)]),I(0x9,a['ICommandService']),I(0xa,N[_0x47025c(0x367)]),I(0xb,a['IPermissionService']),I(0xc,h[_0x47025c(0x2c6)](pe))],me);let Pe=class extends me{constructor(_0x3013f3,_0x46a602,_0x2afdd7,_0x30f3c4,_0x3d7639,_0x33b750,_0x2f7873,_0x1b4388,_0x2e9480,_0xd601f4,_0x3d91d7,_0x2d3be3,_0x53b236,_0xc263d0,_0x575469,_0x23123d,_0x245677){const _0x59fcb6=_0x47025c;super(_0x3013f3,_0x46a602,_0x2afdd7,_0x30f3c4,_0x3d7639,_0x33b750,_0x2f7873,_0x1b4388,_0x53b236,_0xc263d0,_0x575469,_0x23123d,_0x245677),this[_0x59fcb6(0x20e)]=_0x3013f3,this['type']=_0x46a602,this[_0x59fcb6(0x21b)]=_0x2afdd7,this[_0x59fcb6(0x423)]=_0x2e9480,this[_0x59fcb6(0x4f6)]=_0xd601f4,this[_0x59fcb6(0x354)]=_0x3d91d7,this[_0x59fcb6(0x230)]=_0x2d3be3;}[_0x47025c(0x24b)](){const _0x75ed96=_0x47025c,_0x21ec52=super['_createHandler']();return _0x21ec52['onTransformIME']=_0x5f1de5=>this[_0x75ed96(0x4f6)][_0x75ed96(0x3ba)](_0x5f1de5),_0x21ec52[_0x75ed96(0x3ee)]=_0x5e18db=>this['_docTransformSelectionsService'][_0x75ed96(0x332)](_0x5e18db),_0x21ec52[_0x75ed96(0x2cf)]=_0x3b97a8=>this[_0x75ed96(0x230)]['syncEditingCollabCursor'](_0x3b97a8),_0x21ec52[_0x75ed96(0x2d2)]=_0x481dd4=>this[_0x75ed96(0x4f6)][_0x75ed96(0x3df)](_0x481dd4),_0x21ec52;}async[_0x47025c(0x308)](){const _0x4f52fe=_0x47025c,_0x3b0eb6=await super['_init']();return this['_docStateChangeManagerService'][_0x4f52fe(0x2a0)][_0x4f52fe(0x252)](g[_0x4f52fe(0x483)](this[_0x4f52fe(0x3f4)]))[_0x4f52fe(0x588)](_0x354019=>{const _0x5406a7=_0x4f52fe;if(_0x354019==null)return;const {unitId:_0x274195,redoState:_0x334b1d,commandId:_0xc9a51a}=_0x354019;if(_0x274195!==this['unitID'])return;const _0x889d6c={'id':_0xc9a51a,'type':a['CommandType'][_0x5406a7(0x276)],'params':{'unitId':_0x274195,'actions':_0x334b1d['actions'],'textRanges':null}};this[_0x5406a7(0x330)](_0x889d6c);}),_0x3b0eb6;}};Pe=Ee([I(0x3,h[_0x47025c(0x36d)](h['Injector'])),I(0x4,h[_0x47025c(0x36d)](exports[_0x47025c(0x1f5)])),I(0x5,h[_0x47025c(0x36d)](u[_0x47025c(0x597)])),I(0x6,h[_0x47025c(0x36d)](a[_0x47025c(0x3f8)])),I(0x7,h[_0x47025c(0x36d)](u[_0x47025c(0x2d7)])),I(0x8,h['Inject'](M[_0x47025c(0x1f9)])),I(0x9,h['Inject'](ve)),I(0xa,h[_0x47025c(0x36d)](ge)),I(0xb,h[_0x47025c(0x36d)](Fe)),I(0xc,a[_0x47025c(0x38a)]),I(0xd,a['ICommandService']),I(0xe,N['IMessageService']),I(0xf,a[_0x47025c(0x472)]),I(0x10,h[_0x47025c(0x2c6)](pe))],Pe);let ye=class extends me{constructor(_0x502d4e,_0x2dcc7b,_0x4842b2,_0x116220,_0x55feef,_0x5bb72c,_0x154dc6,_0x24246c,_0x5747d7,_0x50e013,_0x53dc21,_0x3c359d,_0x25917e,_0x5d39ff){const _0x4172d7=_0x47025c;super(_0x502d4e,_0x2dcc7b,_0x4842b2,_0x116220,_0x55feef,_0x5bb72c,_0x154dc6,_0x24246c,_0x50e013,_0x53dc21,_0x3c359d,_0x25917e,_0x5d39ff),this[_0x4172d7(0x20e)]=_0x502d4e,this[_0x4172d7(0x53b)]=_0x2dcc7b,this['session']=_0x4842b2,this['_sheetTransformSelectionsService']=_0x5747d7;}[_0x47025c(0x24b)](){const _0x196a22=_0x47025c,_0x5683f6=super[_0x196a22(0x24b)]();return _0x5683f6[_0x196a22(0x3ee)]=_0x2710b8=>this[_0x196a22(0x46c)][_0x196a22(0x332)](_0x2710b8),_0x5683f6;}async[_0x47025c(0x308)](){const _0x267b06=_0x47025c,_0x47df07=await super[_0x267b06(0x308)]();return this[_0x267b06(0x4dd)](this[_0x267b06(0x270)][_0x267b06(0x509)]((_0x4212d8,_0xd6761)=>{const _0x60b1c8=_0x267b06;if(_0x4212d8[_0x60b1c8(0x53b)]!==a['CommandType'][_0x60b1c8(0x276)]||_0xd6761!=null&&_0xd6761[_0x60b1c8(0x54d)]||_0xd6761!=null&&_0xd6761[_0x60b1c8(0x242)])return;const _0x40097c=_0x4212d8[_0x60b1c8(0x591)];if((_0x40097c==null?void 0x0:_0x40097c[_0x60b1c8(0x406)])!==this[_0x60b1c8(0x20e)])return;const _0x30c5b5=_0x4212d8,_0x2c3bdf=this['_compressMutationService'][_0x60b1c8(0x228)]['fetchThroughInterceptors'](this[_0x60b1c8(0x438)][_0x60b1c8(0x228)][_0x60b1c8(0x552)]()['COMPRESS_MUTATION_SEND'])([_0x30c5b5],null)||[_0x30c5b5];this[_0x60b1c8(0x330)](_0x2c3bdf[0x0]);})),_0x47df07;}};ye=Ee([I(0x3,h[_0x47025c(0x36d)](h['Injector'])),I(0x4,h[_0x47025c(0x36d)](exports[_0x47025c(0x1f5)])),I(0x5,h[_0x47025c(0x36d)](u['CompressMutationService'])),I(0x6,h[_0x47025c(0x36d)](a[_0x47025c(0x3f8)])),I(0x7,h[_0x47025c(0x36d)](u[_0x47025c(0x2d7)])),I(0x8,h[_0x47025c(0x36d)](fe)),I(0x9,a[_0x47025c(0x38a)]),I(0xa,a[_0x47025c(0x38f)]),I(0xb,N[_0x47025c(0x367)]),I(0xc,a[_0x47025c(0x472)]),I(0xd,h[_0x47025c(0x2c6)](pe))],ye);const et=[_0x47025c(0x51e),_0x47025c(0x50b),_0x47025c(0x48a),'red300',_0x47025c(0x377),_0x47025c(0x4c8)];class Ve extends a[_0x47025c(0x431)]{constructor(){const _0x55cea8=_0x47025c;super(...arguments),d(this,_0x55cea8(0x53a),new Map()),d(this,'_colorIndex',0x0);}[_0x47025c(0x558)](_0x888490){const _0x228ed2=_0x47025c;if(this[_0x228ed2(0x53a)]['has'](_0x888490))return this[_0x228ed2(0x53a)][_0x228ed2(0x372)](_0x888490);const _0x587584=et[this[_0x228ed2(0x3ec)]];return this[_0x228ed2(0x3ec)]=(this[_0x228ed2(0x3ec)]+0x1)%et[_0x228ed2(0x2e3)],this['_assignedColors'][_0x228ed2(0x279)](_0x888490,_0x587584),_0x587584;}}var ws=Object[_0x47025c(0x430)],Us=Object['getOwnPropertyDescriptor'],Ls=(_0xb8d1a9,_0x387c52,_0x551e6d,_0x3c4c0d)=>{for(var _0x174197=_0x3c4c0d>0x1?void 0x0:_0x3c4c0d?Us(_0x387c52,_0x551e6d):_0x387c52,_0x3ebb2c=_0xb8d1a9['length']-0x1,_0x3f058c;_0x3ebb2c>=0x0;_0x3ebb2c--)(_0x3f058c=_0xb8d1a9[_0x3ebb2c])&&(_0x174197=(_0x3c4c0d?_0x3f058c(_0x387c52,_0x551e6d,_0x174197):_0x3f058c(_0x174197))||_0x174197);return _0x3c4c0d&&_0x174197&&ws(_0x387c52,_0x551e6d,_0x174197),_0x174197;},q=(_0x316ae2,_0x3a7460)=>(_0x3434cf,_0x49f8bb)=>_0x3a7460(_0x3434cf,_0x49f8bb,_0x316ae2);const Ps=0x12c,ys=0x64,Ms=()=>{let _0x19b0bc=[],_0x1d8978=!0x1;return _0x35efd2=>{const _0x49ec31=_0x22eb;_0x19b0bc[_0x49ec31(0x28b)](_0x35efd2),_0x1d8978||(_0x1d8978=!0x0,setTimeout(()=>{const _0x208066=_0x49ec31;_0x19b0bc[_0x208066(0x4e0)](_0xafc697=>_0xafc697()),_0x19b0bc=[],_0x1d8978=!0x1;}));};};let Me=class extends a[_0x47025c(0x3ff)]{constructor(_0x257c0a,_0x1b0b74,_0x347491,_0x45c2ce,_0x2dfac8,_0x21382f,_0x4786c2,_0x302d84){const _0x291166=_0x47025c;super(),d(this,_0x291166(0x22e),!0x1),d(this,_0x291166(0x308),!0x1),d(this,_0x291166(0x57f),new g[(_0x291166(0x3a1))](new Map())),d(this,_0x291166(0x22a),this[_0x291166(0x57f)][_0x291166(0x435)]()),d(this,_0x291166(0x524),new g[(_0x291166(0x3a1))]([])),d(this,_0x291166(0x20b),this[_0x291166(0x524)]['pipe'](g[_0x291166(0x26f)](Ps))),d(this,'_updateLocalCursor',He((_0x747031,_0x4e4b97)=>{const _0x329992=_0x291166,_0x59fac7={'eventID':u[_0x329992(0x470)][_0x329992(0x4e9)],'data':{'unitID':this[_0x329992(0x20e)],'memberID':this[_0x329992(0x4ee)][_0x329992(0x4c5)](),'selection':Ye[_0x329992(0x38e)](_0x747031,_0x4e4b97['range'])}};this['_session'][_0x329992(0x46b)](_0x59fac7,this[_0x329992(0x20e)]);},ys)),(this[_0x291166(0x20e)]=_0x257c0a,this[_0x291166(0x4ee)]=_0x1b0b74,this[_0x291166(0x2af)]=_0x347491,this[_0x291166(0x281)]=_0x45c2ce,this[_0x291166(0x3e6)]=_0x2dfac8,this[_0x291166(0x507)]=_0x21382f,this[_0x291166(0x270)]=_0x4786c2,this[_0x291166(0x20f)]=_0x302d84);}get[_0x47025c(0x32d)](){const _0x2dc00e=_0x47025c;return this[_0x2dc00e(0x57f)][_0x2dc00e(0x2de)]();}get[_0x47025c(0x368)](){const _0x54bb55=_0x47025c;return this[_0x54bb55(0x524)][_0x54bb55(0x2de)]();}[_0x47025c(0x3d3)](){const _0x35e01b=_0x47025c;super['dispose'](),this['_cursorInfo$'][_0x35e01b(0x361)](new Map()),this[_0x35e01b(0x57f)][_0x35e01b(0x5a5)](),this[_0x35e01b(0x524)][_0x35e01b(0x361)]([]),this[_0x35e01b(0x524)][_0x35e01b(0x5a5)]();}[_0x47025c(0x481)](){const _0x4438c4=_0x47025c;this['_init']||(this[_0x4438c4(0x308)]=!0x0,this[_0x4438c4(0x4ee)][_0x4438c4(0x4cc)][_0x4438c4(0x252)](g[_0x4438c4(0x483)](this['dispose$']))[_0x4438c4(0x588)](_0x542f17=>{const _0x454dc9=_0x4438c4;_0x542f17===W['ONLINE']?this[_0x454dc9(0x46a)]():this[_0x454dc9(0x557)]();}),this[_0x4438c4(0x4ee)][_0x4438c4(0x262)][_0x4438c4(0x252)](g[_0x4438c4(0x483)](this[_0x4438c4(0x3f4)]))[_0x4438c4(0x588)](_0x320e3b=>{const _0x2b5afd=_0x4438c4,_0x5f535c=_0x320e3b[_0x2b5afd(0x403)];_0x5f535c===u[_0x2b5afd(0x470)][_0x2b5afd(0x4e9)]&&this[_0x2b5afd(0x335)](_0x320e3b),_0x5f535c===u[_0x2b5afd(0x470)][_0x2b5afd(0x220)]&&this[_0x2b5afd(0x4d3)](_0x320e3b);}),this[_0x4438c4(0x2cd)](),this[_0x4438c4(0x4dd)](this[_0x4438c4(0x270)][_0x4438c4(0x509)](_0x5e47b4=>{const _0x34042b=_0x4438c4;if(this[_0x34042b(0x22e)]&&_0x5e47b4['id']===E[_0x34042b(0x4e6)]['id']&&_0x5e47b4[_0x34042b(0x591)][_0x34042b(0x406)]===this['unitID']){const _0x151bff=_0x5e47b4[_0x34042b(0x591)];this[_0x34042b(0x4e2)](_0x151bff[_0x34042b(0x3cf)],_0x151bff[_0x34042b(0x2bf)][0x0]);}})));}[_0x47025c(0x335)](_0x4691a4){const _0x4b5945=_0x47025c;var _0x1d6495,_0x2c3bad;const {memberID:_0xfb062a,selection:_0x884fa}=_0x4691a4['data'],{sheetName:_0x5dde23,range:_0x4402aa}=Ye[_0x4b5945(0x556)](_0x884fa),_0x390c97={'name':(_0x2c3bad=(_0x1d6495=this[_0x4b5945(0x3e6)][_0x4b5945(0x489)](this[_0x4b5945(0x20e)],_0xfb062a))==null?void 0x0:_0x1d6495['name'])!=null?_0x2c3bad:_0x4b5945(0x43a),'range':this[_0x4b5945(0x51f)](_0x5dde23,_0x4402aa),'sheetID':_0x5dde23,'color':this[_0x4b5945(0x281)][_0x4b5945(0x558)](_0xfb062a),'selection':_0x884fa},_0x456bdf=this['cursorInfo'];_0x456bdf[_0x4b5945(0x279)](_0xfb062a,_0x390c97),this[_0x4b5945(0x57f)][_0x4b5945(0x361)](_0x456bdf);}[_0x47025c(0x4d3)](_0x35ef97){const _0x33ece2=_0x47025c,{memberID:_0x3f5824}=_0x35ef97[_0x33ece2(0x272)],_0x55b6be=this['cursorInfo'];_0x55b6be[_0x33ece2(0x57c)](_0x3f5824),this[_0x33ece2(0x57f)][_0x33ece2(0x361)](_0x55b6be);}['_getMergeRange'](_0xebe2f9,_0x3a8fd3){const _0x21dc10=_0x47025c;var _0x1ff019,_0xd1ce55;const _0x1e12ad=(_0xd1ce55=(_0x1ff019=this[_0x21dc10(0x507)]['getUniverSheetInstance'](this[_0x21dc10(0x20e)]))==null?void 0x0:_0x1ff019[_0x21dc10(0x297)](_0xebe2f9))==null?void 0x0:_0xd1ce55[_0x21dc10(0x34d)]();return(_0x1e12ad==null?void 0x0:_0x1e12ad[_0x21dc10(0x25d)](_0x514d5=>a[_0x21dc10(0x364)][_0x21dc10(0x45e)](_0x514d5,_0x3a8fd3)))||_0x3a8fd3;}[_0x47025c(0x2cd)](){const _0x5e9ff9=_0x47025c,_0x555082=new a['DisposableCollection'](),_0x4f4fc2=Ms(),_0x33bdca=()=>{const _0x21b5a7=_0x22eb;_0x555082[_0x21b5a7(0x3d3)]();const _0xca6b51=(_0x2ddeb9,_0x1e85db,_0x3d5639,_0x223c8d)=>{const _0xe02359=_0x21b5a7;let _0x3b42c7=[];switch(_0x2ddeb9['id']){case E[_0xe02359(0x2b6)][_0xe02359(0x50a)]:{_0x3b42c7=E[_0xe02359(0x3b1)](_0x2ddeb9,_0x223c8d);break;}case E[_0xe02359(0x2b6)]['DeleteRangeMoveUpCommandId']:{_0x3b42c7=E['handleDeleteRangeMoveUp'](_0x2ddeb9,_0x223c8d);break;}case E['EffectRefRangId']['InsertColCommandId']:{_0x3b42c7=E[_0xe02359(0x2f7)](_0x2ddeb9,_0x223c8d);break;}case E[_0xe02359(0x2b6)][_0xe02359(0x2b3)]:{_0x3b42c7=E[_0xe02359(0x3e2)](_0x2ddeb9,_0x223c8d);break;}case E[_0xe02359(0x2b6)][_0xe02359(0x341)]:{_0x3b42c7=E['handleInsertRangeMoveRight'](_0x2ddeb9,_0x223c8d);break;}case E[_0xe02359(0x2b6)]['InsertRowCommandId']:{_0x3b42c7=E[_0xe02359(0x333)](_0x2ddeb9,_0x223c8d);break;}case E[_0xe02359(0x2b6)][_0xe02359(0x1fc)]:{_0x3b42c7=E[_0xe02359(0x20a)](_0x2ddeb9,_0x223c8d);break;}case E[_0xe02359(0x2b6)][_0xe02359(0x49f)]:{_0x3b42c7=E['handleIRemoveCol'](_0x2ddeb9,_0x223c8d);break;}case E[_0xe02359(0x2b6)][_0xe02359(0x3ca)]:{_0x3b42c7=E[_0xe02359(0x2ba)](_0x2ddeb9,_0x223c8d);break;}}const _0x1830a1=E['runRefRangeMutations'](_0x3b42c7,_0x223c8d),_0x197048=this['cursorInfo']['get'](_0x1e85db);if(_0x197048&&_0x1830a1){const _0x283297={..._0x197048,'range':_0x1830a1};this[_0xe02359(0x32d)][_0xe02359(0x279)](_0x1e85db,_0x283297),_0x4f4fc2(()=>{const _0x5844c3=_0xe02359,_0x347d5f=this[_0x5844c3(0x20f)][_0x5844c3(0x2fa)](_0x1830a1,_0x10f09b=>(_0x347d5f[_0x5844c3(0x3d3)](),_0xca6b51(_0x10f09b,_0x1e85db,_0x3d5639,_0x1830a1)));_0x555082[_0x5844c3(0x563)](_0x347d5f);});}return{'redos':[],'undos':[]};};this['cursorInfo'][_0x21b5a7(0x4e0)]((_0x16619e,_0x3bfc6f)=>{const _0x1c982d=_0x21b5a7,{range:_0x1f8b22,sheetID:_0x40d172}=_0x16619e,_0x375c16=this['_refRangeService'][_0x1c982d(0x2fa)](_0x1f8b22,_0x770d36=>(_0x375c16['dispose'](),_0xca6b51(_0x770d36,_0x3bfc6f,_0x40d172,_0x1f8b22)));_0x555082[_0x1c982d(0x563)](_0x375c16);});};this[_0x5e9ff9(0x4dd)](a[_0x5e9ff9(0x26c)](this[_0x5e9ff9(0x57f)][_0x5e9ff9(0x588)](()=>{_0x33bdca();})));}[_0x47025c(0x46a)](){const _0x1102e6=_0x47025c;var _0xee13c1,_0x3f6ef6;if(this[_0x1102e6(0x22e)]=!0x0,((_0xee13c1=this['_univerInstanceService'][_0x1102e6(0x45c)]())==null?void 0x0:_0xee13c1[_0x1102e6(0x518)]())!==this[_0x1102e6(0x20e)])return;const _0x38f0b2=(_0x3f6ef6=this[_0x1102e6(0x2af)][_0x1102e6(0x372)](E[_0x1102e6(0x373)])[_0x1102e6(0x35f)]())==null?void 0x0:_0x3f6ef6[0x0],_0x5aa665=this['_univerInstanceService'][_0x1102e6(0x4b5)](a[_0x1102e6(0x3fb)][_0x1102e6(0x379)])['getActiveSheet']();_0x38f0b2&&_0x5aa665&&this[_0x1102e6(0x4e2)](_0x5aa665['getSheetId'](),_0x38f0b2);}[_0x47025c(0x557)](){const _0x332fd7=_0x47025c;this[_0x332fd7(0x22e)]=!0x1;}};Me=Ls([q(0x2,h['Inject'](h[_0x47025c(0x3c4)])),q(0x3,h[_0x47025c(0x36d)](Ve)),q(0x4,h['Inject'](G)),q(0x5,a[_0x47025c(0x4d6)]),q(0x6,a[_0x47025c(0x38f)]),q(0x7,h[_0x47025c(0x36d)](E[_0x47025c(0x3bb)]))],Me);var Ns=Object['defineProperty'],As=Object['getOwnPropertyDescriptor'],js=(_0x1d2bf6,_0x49cad4,_0x4d1bae,_0xaf4ac8)=>{const _0x3163fe=_0x47025c;for(var _0x40067e=_0xaf4ac8>0x1?void 0x0:_0xaf4ac8?As(_0x49cad4,_0x4d1bae):_0x49cad4,_0x53a984=_0x1d2bf6[_0x3163fe(0x2e3)]-0x1,_0x1e9e95;_0x53a984>=0x0;_0x53a984--)(_0x1e9e95=_0x1d2bf6[_0x53a984])&&(_0x40067e=(_0xaf4ac8?_0x1e9e95(_0x49cad4,_0x4d1bae,_0x40067e):_0x1e9e95(_0x40067e))||_0x40067e);return _0xaf4ac8&&_0x40067e&&Ns(_0x49cad4,_0x4d1bae,_0x40067e),_0x40067e;},V=(_0x5d0ee2,_0x5ba93b)=>(_0x1700e0,_0x2b88b6)=>_0x5ba93b(_0x1700e0,_0x2b88b6,_0x5d0ee2);const $s=0x12c,Hs=0x64;let Ne=class extends a['RxDisposable']{constructor(_0x2ef89f,_0x2d0eed,_0x173c45,_0x4b3127,_0x3d33b2,_0x215bb5,_0x2735f9,_0x443c6e,_0x3a191b){const _0x38fa56=_0x47025c;super(),d(this,_0x38fa56(0x22e),!0x1),d(this,_0x38fa56(0x308),!0x1),d(this,'_cursorInfo$',new g['BehaviorSubject'](new Map())),d(this,'cursorInfo$',this['_cursorInfo$'][_0x38fa56(0x435)]()),d(this,_0x38fa56(0x524),new g['BehaviorSubject']([])),d(this,'roomMembers$',this['_roomMembers$'][_0x38fa56(0x252)](g[_0x38fa56(0x26f)]($s))),d(this,_0x38fa56(0x4e2),He(_0x4f99d0=>{const _0x71c69a=_0x38fa56,_0x3fad62={'eventID':u[_0x71c69a(0x470)]['UPDATE_CURSOR'],'data':{'unitID':this[_0x71c69a(0x20e)],'memberID':this[_0x71c69a(0x4ee)]['getMemberID'](),'selection':Ct(_0x4f99d0)}};this[_0x71c69a(0x4ee)][_0x71c69a(0x46b)](_0x3fad62,this['unitID']);},Hs)),(this['unitID']=_0x2ef89f,this['_session']=_0x2d0eed,this['_injector']=_0x173c45,this['_colorAssignService']=_0x4b3127,this[_0x38fa56(0x3e6)]=_0x3d33b2,this['_syncEditingCollabCursorService']=_0x215bb5,this[_0x38fa56(0x42d)]=_0x2735f9,this[_0x38fa56(0x507)]=_0x443c6e,this[_0x38fa56(0x270)]=_0x3a191b);}get['cursorInfo'](){const _0x21325b=_0x47025c;return this['_cursorInfo$'][_0x21325b(0x2de)]();}get[_0x47025c(0x368)](){const _0x18fdbe=_0x47025c;return this['_roomMembers$'][_0x18fdbe(0x2de)]();}[_0x47025c(0x3d3)](){const _0x4eb390=_0x47025c;super['dispose'](),this[_0x4eb390(0x57f)][_0x4eb390(0x361)](new Map()),this[_0x4eb390(0x57f)][_0x4eb390(0x5a5)](),this[_0x4eb390(0x524)][_0x4eb390(0x361)]([]),this['_roomMembers$'][_0x4eb390(0x5a5)]();}[_0x47025c(0x481)](){const _0x306369=_0x47025c;this[_0x306369(0x308)]||(this['_init']=!0x0,this['_session']['sessionStatus$'][_0x306369(0x252)](g[_0x306369(0x483)](this['dispose$']))[_0x306369(0x588)](_0xb1d70=>{const _0x5314f2=_0x306369;_0xb1d70===W[_0x5314f2(0x511)]?this[_0x5314f2(0x46a)]():this['_toggleOffline']();}),this[_0x306369(0x4ee)][_0x306369(0x262)][_0x306369(0x252)](g[_0x306369(0x483)](this[_0x306369(0x3f4)]))[_0x306369(0x588)](_0x650cfb=>{const _0x1b67ee=_0x306369,_0x175902=_0x650cfb[_0x1b67ee(0x403)];_0x175902===u[_0x1b67ee(0x470)]['UPDATE_CURSOR']&&this[_0x1b67ee(0x335)](_0x650cfb),_0x175902===u[_0x1b67ee(0x470)][_0x1b67ee(0x220)]&&this['_onCursorDelete'](_0x650cfb);}),this[_0x306369(0x4dd)](this[_0x306369(0x270)][_0x306369(0x509)](_0x1daaaf=>{const _0x29b296=_0x306369,_0x2ca919=_0x1daaaf[_0x29b296(0x591)];_0x2ca919!=null&&this['_online']&&_0x1daaaf['id']===M['SetTextSelectionsOperation']['id']&&_0x2ca919[_0x29b296(0x406)]===this[_0x29b296(0x20e)]&&_0x2ca919[_0x29b296(0x487)]===!0x1&&this[_0x29b296(0x4e2)](_0x2ca919[_0x29b296(0x1f1)]);})),this[_0x306369(0x40a)][_0x306369(0x4e4)]['pipe'](g['takeUntil'](this[_0x306369(0x3f4)]))[_0x306369(0x588)](_0x3743e7=>{const _0x4756ad=_0x306369;if((_0x3743e7==null?void 0x0:_0x3743e7[_0x4756ad(0x20e)])!==this[_0x4756ad(0x20e)])return;const _0x29f081={'eventID':u[_0x4756ad(0x470)]['UPDATE_CURSOR'],'data':_0x3743e7};this[_0x4756ad(0x335)](_0x29f081);}),this['disposeWithMe'](this['_commandService']['onCommandExecuted'](_0x3b6dff=>{const _0x3e0eba=_0x306369;if(_0x3b6dff[_0x3e0eba(0x591)]==null)return;const _0x30d961=_0x3b6dff[_0x3e0eba(0x591)];if(_0x3b6dff['id']!==M[_0x3e0eba(0x320)]['id']||_0x30d961[_0x3e0eba(0x406)]!==this['unitID'])return;const _0x1213b3={'id':_0x3e0eba(0x221),'params':_0x30d961},_0x1a9709=this[_0x3e0eba(0x32d)];for(const [_0x419f36,_0x2a1c7e]of _0x1a9709){const _0x4da838={'id':'doc.mutation.rich-text-editing','params':{'unitId':this[_0x3e0eba(0x20e)],'actions':null,'textRanges':_0x2a1c7e[_0x3e0eba(0x1f1)]}},_0x3d754a=this[_0x3e0eba(0x42d)][_0x3e0eba(0x4fc)](_0x1213b3,_0x4da838,!0x1);if(u[_0x3e0eba(0x581)](_0x3d754a))throw _0x3d754a['error'];_0x1a9709['set'](_0x419f36,{..._0x2a1c7e,'ranges':_0x3d754a[_0x3e0eba(0x4c3)][_0x3e0eba(0x591)][_0x3e0eba(0x267)]});}queueMicrotask(()=>{const _0x55247f=_0x3e0eba;this[_0x55247f(0x57f)][_0x55247f(0x361)](_0x1a9709);});})));}['_onCursorUpdate'](_0x42b2ca){const _0x10ce89=_0x47025c;var _0x556ce5,_0x2d7426;const {memberID:_0x122565,selection:_0x1670dc}=_0x42b2ca['data'],_0x5e4c5a=fs(_0x1670dc),_0x313d6b=(_0x2d7426=(_0x556ce5=this[_0x10ce89(0x3e6)][_0x10ce89(0x489)](this[_0x10ce89(0x20e)],_0x122565))==null?void 0x0:_0x556ce5[_0x10ce89(0x461)])!=null?_0x2d7426:'Unknown\x20user',_0x4f30eb={'color':this['_colorAssignService']['assignAColorForMemberID'](_0x122565),'name':_0x313d6b,'ranges':_0x5e4c5a},_0x53ad07=this[_0x10ce89(0x32d)];_0x53ad07['set'](_0x122565,_0x4f30eb),this[_0x10ce89(0x57f)]['next'](_0x53ad07);}[_0x47025c(0x4d3)](_0x35202e){const _0x156d67=_0x47025c,{memberID:_0x336eaf}=_0x35202e[_0x156d67(0x272)],_0x2e07ae=this['cursorInfo'];_0x2e07ae[_0x156d67(0x57c)](_0x336eaf),this[_0x156d67(0x57f)][_0x156d67(0x361)](_0x2e07ae);}['_toggleOnline'](){const _0x3db5fa=_0x47025c;var _0x341e74;if(this[_0x3db5fa(0x22e)]=!0x0,((_0x341e74=this[_0x3db5fa(0x507)][_0x3db5fa(0x45c)]())==null?void 0x0:_0x341e74[_0x3db5fa(0x518)]())!==this[_0x3db5fa(0x20e)])return;const _0xe9b431=this[_0x3db5fa(0x2af)][_0x3db5fa(0x372)](M[_0x3db5fa(0x50d)])[_0x3db5fa(0x35f)](),_0x5abd35=_0xe9b431==null?void 0x0:_0xe9b431['map'](M[_0x3db5fa(0x407)]);Array[_0x3db5fa(0x263)](_0x5abd35)&&_0x5abd35[_0x3db5fa(0x2e3)]>0x0&&this['_updateLocalCursor'](_0x5abd35);}[_0x47025c(0x557)](){this['_online']=!0x1;}};Ne=js([V(0x2,h[_0x47025c(0x36d)](h[_0x47025c(0x3c4)])),V(0x3,h[_0x47025c(0x36d)](Ve)),V(0x4,h[_0x47025c(0x36d)](G)),V(0x5,h[_0x47025c(0x36d)](Fe)),V(0x6,u[_0x47025c(0x31d)]),V(0x7,a[_0x47025c(0x4d6)]),V(0x8,a[_0x47025c(0x38f)])],Ne);var xs=Object['defineProperty'],ks=Object[_0x47025c(0x348)],Bs=(_0x4eea9f,_0x5d147b,_0x2384d3,_0x46841d)=>{const _0x26458f=_0x47025c;for(var _0xd78a7b=_0x46841d>0x1?void 0x0:_0x46841d?ks(_0x5d147b,_0x2384d3):_0x5d147b,_0x649152=_0x4eea9f[_0x26458f(0x2e3)]-0x1,_0x47f9f0;_0x649152>=0x0;_0x649152--)(_0x47f9f0=_0x4eea9f[_0x649152])&&(_0xd78a7b=(_0x46841d?_0x47f9f0(_0x5d147b,_0x2384d3,_0xd78a7b):_0x47f9f0(_0xd78a7b))||_0xd78a7b);return _0x46841d&&_0xd78a7b&&xs(_0x5d147b,_0x2384d3,_0xd78a7b),_0xd78a7b;},Oe=(_0x48021a,_0x5e171f)=>(_0xe736a0,_0xbc252b)=>_0x5e171f(_0xe736a0,_0xbc252b,_0x48021a);let J=class extends a['RxDisposable']{constructor(_0x33cc1b,_0xd0e2e2,_0x43450b){const _0x1fe908=_0x47025c;super(),d(this,_0x1fe908(0x488),new Map()),d(this,_0x1fe908(0x3a2),new g[(_0x1fe908(0x569))]()),(this[_0x1fe908(0x507)]=_0x33cc1b,this[_0x1fe908(0x2af)]=_0xd0e2e2,this['_collabSessionService']=_0x43450b,this['_init']());}[_0x47025c(0x3d3)](){const _0x5760be=_0x47025c;super[_0x5760be(0x3d3)](),this['_entityInit$'][_0x5760be(0x5a5)](),this[_0x5760be(0x488)][_0x5760be(0x4e0)](_0x1e4652=>_0x1e4652['dispose']());}[_0x47025c(0x202)](_0x2e8029){const _0x5be806=_0x47025c;return this[_0x5be806(0x488)][_0x5be806(0x49e)](_0x2e8029)?this[_0x5be806(0x488)][_0x5be806(0x372)](_0x2e8029)['cursorInfo$']:this[_0x5be806(0x3a2)][_0x5be806(0x252)](g['filter'](_0x160701=>_0x160701[_0x5be806(0x20e)]===_0x2e8029),g[_0x5be806(0x2c5)](_0x7e3e7e=>_0x7e3e7e['cursorInfo$']));}['_init'](){const _0x5a784c=_0x47025c;this[_0x5a784c(0x507)]['getTypeOfUnitAdded$'](a['UniverInstanceType'][_0x5a784c(0x379)])[_0x5a784c(0x252)](g[_0x5a784c(0x483)](this[_0x5a784c(0x3f4)]))[_0x5a784c(0x588)](async _0x1877a8=>{const _0x587ea0=_0x5a784c,_0x9c7b54=_0x1877a8[_0x587ea0(0x518)](),_0x323e8c=await this[_0x587ea0(0x20d)](_0x9c7b54);this[_0x587ea0(0x3a2)][_0x587ea0(0x361)](_0x323e8c),this[_0x587ea0(0x488)]['set'](_0x9c7b54,_0x323e8c);}),this['_univerInstanceService'][_0x5a784c(0x517)](a[_0x5a784c(0x3fb)]['UNIVER_DOC'])[_0x5a784c(0x252)](g[_0x5a784c(0x483)](this[_0x5a784c(0x3f4)]))[_0x5a784c(0x252)](g[_0x5a784c(0x24a)](_0x18f0fe=>!_0x18f0fe[_0x5a784c(0x518)]()[_0x5a784c(0x2b7)]('__')))[_0x5a784c(0x588)](async _0x41a00e=>{const _0x16a669=_0x5a784c,_0x32ffee=_0x41a00e['getUnitId'](),_0x52c244=await this['_startDocCollabCursor'](_0x32ffee);this[_0x16a669(0x3a2)][_0x16a669(0x361)](_0x52c244),this['_entities']['set'](_0x32ffee,_0x52c244);}),g[_0x5a784c(0x2e0)](this[_0x5a784c(0x507)][_0x5a784c(0x4e3)](a[_0x5a784c(0x3fb)]['UNIVER_DOC']),this[_0x5a784c(0x507)][_0x5a784c(0x4e3)](a['UniverInstanceType']['UNIVER_SHEET']))[_0x5a784c(0x252)](g[_0x5a784c(0x483)](this[_0x5a784c(0x3f4)]))['subscribe'](_0x2d804d=>{const _0x12f1da=_0x5a784c,_0x4a66fc=_0x2d804d[_0x12f1da(0x518)](),_0x2baf11=this[_0x12f1da(0x488)][_0x12f1da(0x372)](_0x4a66fc);_0x2baf11&&(_0x2baf11['dispose'](),this[_0x12f1da(0x488)][_0x12f1da(0x57c)](_0x4a66fc));});}async[_0x47025c(0x20d)](_0x2274a0){const _0x50c252=_0x47025c,_0x422ab0=await this[_0x50c252(0x232)]['requireSession'](_0x2274a0),_0x32e9e6=this[_0x50c252(0x2af)][_0x50c252(0x4a7)](Me,_0x2274a0,_0x422ab0);return _0x32e9e6[_0x50c252(0x481)](),_0x32e9e6;}async[_0x47025c(0x512)](_0x204ea5){const _0x4d8b0f=_0x47025c,_0x1df079=await this[_0x4d8b0f(0x232)][_0x4d8b0f(0x553)](_0x204ea5),_0x3b9353=this['_injector']['createInstance'](Ne,_0x204ea5,_0x1df079);return _0x3b9353['init'](),_0x3b9353;}};J=Bs([a[_0x47025c(0x21e)](a['LifecycleStages']['Starting'],J),Oe(0x0,a[_0x47025c(0x4d6)]),Oe(0x1,h[_0x47025c(0x36d)](h[_0x47025c(0x3c4)])),Oe(0x2,h[_0x47025c(0x36d)](exports[_0x47025c(0x2ad)]))],J);const ce=0x14,tt=0xc8,De=0x4,Fs=0x5;function Vs(_0x673e6b,_0x528be4){const _0x4f1c16=_0x47025c;let {radius:_0x5da984,width:_0x585172,height:_0x52825c}=_0x528be4;_0x5da984=_0x5da984!=null?_0x5da984:0x0,_0x585172=_0x585172!=null?_0x585172:0x1e,_0x52825c=_0x52825c!=null?_0x52825c:0x1e;let _0x113463=0x0,_0x15abd9=0x0,_0xb82df5=0x0;_0x113463=_0x15abd9=_0xb82df5=Math['min'](_0x5da984,_0x585172/0x2,_0x52825c/0x2),_0x673e6b[_0x4f1c16(0x3ef)](),_0x673e6b['moveTo'](_0x113463,0x0),_0x673e6b[_0x4f1c16(0x3a0)](_0x585172-_0x15abd9,0x0),_0x673e6b['arc'](_0x585172-_0x15abd9,_0x15abd9,_0x15abd9,Math['PI']*0x3/0x2,0x0,!0x1),_0x673e6b[_0x4f1c16(0x3a0)](_0x585172,_0x52825c-_0xb82df5),_0x673e6b['arc'](_0x585172-_0xb82df5,_0x52825c-_0xb82df5,_0xb82df5,0x0,Math['PI']/0x2,!0x1),_0x673e6b[_0x4f1c16(0x3a0)](0x0,_0x52825c),_0x673e6b['lineTo'](0x0,_0x113463),_0x673e6b[_0x4f1c16(0x2e9)](_0x113463,_0x113463,_0x113463,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x673e6b[_0x4f1c16(0x334)](),_0x528be4[_0x4f1c16(0x41d)]&&(_0x673e6b[_0x4f1c16(0x585)](),_0x673e6b[_0x4f1c16(0x36a)]=_0x528be4['fill'],_0x528be4['fillRule']==='evenodd'?_0x673e6b[_0x4f1c16(0x41d)](_0x4f1c16(0x590)):_0x673e6b['fill'](),_0x673e6b[_0x4f1c16(0x565)]());}class Ce extends R[_0x47025c(0x396)]{constructor(_0x23c7bd,_0x58b798){const _0x56d41c=_0x47025c;super(_0x23c7bd,_0x58b798),d(this,_0x56d41c(0x4ea)),d(this,'text'),(this[_0x56d41c(0x4ea)]=_0x58b798==null?void 0x0:_0x58b798[_0x56d41c(0x4ea)],this[_0x56d41c(0x3c1)]=_0x58b798==null?void 0x0:_0x58b798[_0x56d41c(0x3c1)]);}static['drawWith'](_0x2df008,_0x523c96){const _0x3408a9=_0x47025c,{text:_0x85a838,color:_0x57edea}=_0x523c96;_0x2df008[_0x3408a9(0x585)](),_0x2df008[_0x3408a9(0x30e)]=_0x3408a9(0x29e);const _0x57257e=_0x2df008[_0x3408a9(0x54b)](_0x85a838)[_0x3408a9(0x442)],_0x6313c7=Math[_0x3408a9(0x5a0)](_0x57257e+0x2*De,tt);Vs(_0x2df008,{'height':ce,'radius':0x4,'width':_0x6313c7,'fill':_0x57edea,'evented':!0x1}),_0x2df008['fillStyle']=_0x3408a9(0x571);const _0x25227f=De,_0x34e052=ce-Fs,_0x38e00b=tt-0x2*De;if(_0x57257e>_0x38e00b){let _0x1b580d='',_0x3083ec=0x0;for(const _0x219c87 of _0x85a838){const _0x287251=_0x2df008[_0x3408a9(0x54b)](_0x219c87)['width'];if(_0x3083ec+_0x287251<=_0x38e00b-_0x2df008[_0x3408a9(0x54b)](_0x3408a9(0x475))['width'])_0x1b580d+=_0x219c87,_0x3083ec+=_0x287251;else{_0x1b580d+=_0x3408a9(0x475);break;}}_0x2df008[_0x3408a9(0x45b)](_0x1b580d,_0x25227f,_0x34e052);}else _0x2df008[_0x3408a9(0x45b)](_0x85a838,_0x25227f,_0x34e052);_0x2df008[_0x3408a9(0x565)]();}[_0x47025c(0x3ad)](_0x128656){const _0x10e854=_0x47025c;Ce[_0x10e854(0x458)](_0x128656,this);}}const Ws=0x1,Gs=1.5;class Ys extends R[_0x47025c(0x396)]{constructor(_0x42cbee,_0x19d4df){const _0x4d1ec2=_0x47025c;super(_0x42cbee,_0x19d4df),d(this,_0x4d1ec2(0x30c)),d(this,'_hovered',!0x1),d(this,'_range'),d(this,'_name',''),d(this,_0x4d1ec2(0x4dc),_0x4d1ec2(0x1f2)),(_0x19d4df&&this[_0x4d1ec2(0x23e)](_0x19d4df),this[_0x4d1ec2(0x257)][_0x4d1ec2(0x3cb)](()=>this['setShapeProps']({'hovered':!0x0})),this[_0x4d1ec2(0x44b)]['subscribeEvent'](()=>this[_0x4d1ec2(0x23e)]({'hovered':!0x1})));}[_0x47025c(0x23e)](_0x5a2b19){const _0x1e6002=_0x47025c;var _0x4dacdb,_0xa99620,_0x1d60e4,_0x1ccc90,_0x5c48e8;this[_0x1e6002(0x30c)]=(_0x4dacdb=_0x5a2b19[_0x1e6002(0x4ea)])!=null?_0x4dacdb:this[_0x1e6002(0x30c)],this[_0x1e6002(0x359)]=(_0xa99620=_0x5a2b19['hovered'])!=null?_0xa99620:this[_0x1e6002(0x359)],this[_0x1e6002(0x29b)]=(_0x1d60e4=_0x5a2b19[_0x1e6002(0x2b0)])!=null?_0x1d60e4:this[_0x1e6002(0x29b)],this[_0x1e6002(0x58a)]=(_0x1ccc90=_0x5a2b19[_0x1e6002(0x461)])!=null?_0x1ccc90:this[_0x1e6002(0x58a)],this[_0x1e6002(0x4dc)]=(_0x5c48e8=_0x5a2b19[_0x1e6002(0x34c)])!=null?_0x5c48e8:this['_labelPosition'],this[_0x1e6002(0x3dc)]({'width':_0x5a2b19['width'],'height':_0x5a2b19[_0x1e6002(0x437)]});}[_0x47025c(0x400)](_0x3d4a42){const _0x59c0b5=_0x47025c,{row:_0x990852,column:_0x4ce3e3}=_0x3d4a42;if(_0x990852>=this['_range'][_0x59c0b5(0x29a)]&&_0x990852<=this[_0x59c0b5(0x29b)][_0x59c0b5(0x47c)]&&_0x4ce3e3>=this[_0x59c0b5(0x29b)]['startColumn']&&_0x4ce3e3<=this[_0x59c0b5(0x29b)]['endColumn']){this[_0x59c0b5(0x23e)]({'hovered':!0x0});return;}this[_0x59c0b5(0x23e)]({'hovered':!0x1});}[_0x47025c(0x1f0)](_0x37cdf4){return!0x1;}[_0x47025c(0x3ad)](_0x404ef9){const _0xd95cc2=_0x47025c;R[_0xd95cc2(0x592)]['drawWith'](_0x404ef9,{'width':this[_0xd95cc2(0x442)],'height':this['height'],'strokeWidth':Gs,'stroke':this[_0xd95cc2(0x30c)],'evented':!0x1}),this[_0xd95cc2(0x359)]&&(_0x404ef9[_0xd95cc2(0x585)](),_0x404ef9['transform'](0x1,0x0,0x0,0x1,this[_0xd95cc2(0x442)],this['_labelPosition']==='bottom'?0x0:-ce),Ce['drawWith'](_0x404ef9,{'text':this['_name'],'color':this[_0xd95cc2(0x30c)]}),_0x404ef9[_0xd95cc2(0x565)]());}}var Ks=Object[_0x47025c(0x430)],Xs=Object[_0x47025c(0x348)],qs=(_0x1d3037,_0x49e81c,_0x13f6bb,_0x316447)=>{const _0x152411=_0x47025c;for(var _0xea1ad2=_0x316447>0x1?void 0x0:_0x316447?Xs(_0x49e81c,_0x13f6bb):_0x49e81c,_0x45b4ab=_0x1d3037[_0x152411(0x2e3)]-0x1,_0x15084b;_0x45b4ab>=0x0;_0x45b4ab--)(_0x15084b=_0x1d3037[_0x45b4ab])&&(_0xea1ad2=(_0x316447?_0x15084b(_0x49e81c,_0x13f6bb,_0xea1ad2):_0x15084b(_0xea1ad2))||_0xea1ad2);return _0x316447&&_0xea1ad2&&Ks(_0x49e81c,_0x13f6bb,_0xea1ad2),_0xea1ad2;},le=(_0x4dcd90,_0x3b8e4a)=>(_0x385d5c,_0x408810)=>_0x3b8e4a(_0x385d5c,_0x408810,_0x4dcd90);const zs=0x1389;let ue=class extends a[_0x47025c(0x3ff)]{constructor(_0xb1907a,_0x26b886,_0x3bc20b,_0x4eabce){const _0xd83e22=_0x47025c;super(),d(this,_0xd83e22(0x578),new Set()),d(this,_0xd83e22(0x53f),null),(this[_0xd83e22(0x43e)]=_0xb1907a,this['_univerInstanceService']=_0x26b886,this[_0xd83e22(0x560)]=_0x3bc20b,this[_0xd83e22(0x491)]=_0x4eabce,this['_init']());}get[_0x47025c(0x4ae)](){const _0x2ba9a3=_0x47025c;return this[_0x2ba9a3(0x560)][_0x2ba9a3(0x42f)](this[_0x2ba9a3(0x507)]['getCurrentUnitForType'](a[_0x2ba9a3(0x3fb)][_0x2ba9a3(0x379)])[_0x2ba9a3(0x518)]())[_0x2ba9a3(0x412)](ee['SheetSkeletonManagerService']);}get['_unitId'](){const _0x572f64=_0x47025c;return this[_0x572f64(0x507)][_0x572f64(0x4b5)](a['UniverInstanceType'][_0x572f64(0x379)])[_0x572f64(0x518)]();}['_init'](){const _0x2ca189=_0x47025c;this[_0x2ca189(0x4ae)]['currentSkeleton$']['pipe'](T[_0x2ca189(0x483)](this[_0x2ca189(0x3f4)]),T[_0x2ca189(0x2c5)](_0x361285=>{const _0x4229ef=_0x2ca189;if(_0x361285){const _0x2efc49=_0x361285[_0x4229ef(0x2c4)];return g[_0x4229ef(0x519)](this[_0x4229ef(0x43e)]['getCollabCursors$'](this[_0x4229ef(0x513)]),this[_0x4229ef(0x491)]['currentTheme$'])[_0x4229ef(0x252)](T[_0x4229ef(0x2ab)](([_0x3203cc,_0x5eacdc])=>{const _0x5a5db1=_0x4229ef,_0x35a7da=new Map();return _0x3203cc[_0x5a5db1(0x4e0)]((_0x1abf64,_0x253933)=>{const _0x29a06e=_0x5a5db1;if(_0x1abf64[_0x29a06e(0x52e)]===_0x2efc49){const _0x29050d={..._0x1abf64};_0x29050d[_0x29a06e(0x4ea)]=_0x5eacdc[_0x1abf64[_0x29a06e(0x4ea)]],_0x35a7da[_0x29a06e(0x279)](_0x253933,_0x29050d);}}),{'skeleton':_0x361285,'cursors':_0x35a7da};}));}return g['of']({'skeleton':null,'cursors':new Map()});}))[_0x2ca189(0x588)](({skeleton:_0x24044a,cursors:_0x14206f})=>{const _0x3a4850=_0x2ca189;this['_removeCollabCursors'](),_0x24044a&&this[_0x3a4850(0x2d6)](_0x24044a,_0x14206f);}),this[_0x2ca189(0x4ae)][_0x2ca189(0x4ef)][_0x2ca189(0x588)](_0x772aeb=>{const _0x5d49e5=_0x2ca189;if(_0x772aeb==null)return;const {skeleton:_0x1722dd}=_0x772aeb,_0x1d031d=this['_renderManagerService'][_0x5d49e5(0x42f)](this[_0x5d49e5(0x513)]),{scene:_0x1c6e13}=_0x1d031d;_0x1c6e13[_0x5d49e5(0x53c)][_0x5d49e5(0x3cb)](He(_0x13d225=>{const _0x46a54e=_0x5d49e5;var _0x71f66c,_0x51258e;const {offsetX:_0x2dfbbb,offsetY:_0x304894}=_0x13d225,{x:_0x444d97,y:_0x30d01f}=_0x1c6e13[_0x46a54e(0x344)](R[_0x46a54e(0x468)][_0x46a54e(0x3f9)]([_0x2dfbbb,_0x304894])),{scaleX:_0x414698,scaleY:_0x527346}=_0x1c6e13['getAncestorScale'](),_0x4a2e7a=_0x1c6e13[_0x46a54e(0x531)](ee[_0x46a54e(0x319)][_0x46a54e(0x300)]),_0x1e6532=_0x1c6e13['getScrollXYByRelativeCoords'](R[_0x46a54e(0x468)]['FromArray']([_0x444d97,_0x30d01f]),_0x4a2e7a),_0x44a3c3=_0x1722dd[_0x46a54e(0x420)](_0x2dfbbb,_0x304894,_0x414698,_0x527346,_0x1e6532);((_0x71f66c=this[_0x46a54e(0x53f)])==null?void 0x0:_0x71f66c[_0x46a54e(0x370)])===_0x44a3c3[_0x46a54e(0x370)]&&((_0x51258e=this[_0x46a54e(0x53f)])==null?void 0x0:_0x51258e[_0x46a54e(0x2d9)])===_0x44a3c3[_0x46a54e(0x2d9)]||this[_0x46a54e(0x578)]['forEach'](_0x2a01da=>{const _0x48e0eb=_0x46a54e;_0x2a01da[_0x48e0eb(0x400)](_0x44a3c3);});},0x64));});}[_0x47025c(0x2d6)](_0x29e80d,_0xcd1419){const _0x3ee79d=_0x47025c;var _0x5f5b78;const _0x5571da=(_0x5f5b78=this[_0x3ee79d(0x4ae)][_0x3ee79d(0x2f8)]())==null?void 0x0:_0x5f5b78[_0x3ee79d(0x2f6)];if(!_0x5571da)return;const _0x227018=this[_0x3ee79d(0x381)]();if(!_0x227018)return;this[_0x3ee79d(0x578)][_0x3ee79d(0x4e0)](_0x3e9e28=>{const _0x5ac3ed=_0x3ee79d;_0x3e9e28[_0x5ac3ed(0x296)]();});const {scene:_0x4e17ed}=_0x227018,_0x14fe1c=Js(Array[_0x3ee79d(0x582)](_0xcd1419[_0x3ee79d(0x4d5)]()))[_0x3ee79d(0x2ab)](_0x44fdb6=>{const _0x4c4bdb=_0x3ee79d,{color:_0x34fafe,range:_0x2c0f4,name:_0x2ee5d5,selection:_0x29ec8e,sheetID:_0x45cb66}=_0x44fdb6,{startColumn:_0x29af0b,startRow:_0x4947a7,endColumn:_0x228120,endRow:_0x4a7f47}=_0x2c0f4,_0x4edef4=ee['getCoordByCell'](_0x4947a7,_0x29af0b,_0x4e17ed,_0x5571da),_0x5babb3=ee[_0x4c4bdb(0x247)](_0x4a7f47,_0x228120,_0x4e17ed,_0x5571da),{columnHeaderHeightAndMarginTop:_0x34eb73}=_0x5571da,{startX:_0x1d0e90,startY:_0x26fc17}=_0x4edef4,{endX:_0xf92a11,endY:_0x336ccb}=_0x5babb3,_0x35122b=_0xf92a11-_0x1d0e90,_0x371a6c=_0x336ccb-_0x26fc17,_0x3386e2={'labelPosition':_0x26fc17-_0x34eb73>=ce?_0x4c4bdb(0x1f2):'bottom','sheetID':_0x45cb66,'range':_0x2c0f4,'color':_0x34fafe,'name':_0x2ee5d5,'selection':_0x29ec8e,'left':_0x1d0e90,'top':_0x26fc17,'width':_0x35122b,'height':_0x371a6c,'evented':!0x1,'zIndex':zs};return new Ys(_0x2ee5d5,_0x3386e2);});_0x4e17ed['addObjects'](_0x14fe1c,Ws),this[_0x3ee79d(0x578)]=new Set(_0x14fe1c);}[_0x47025c(0x30f)](){const _0xa0f490=_0x47025c;var _0x2fa45f;(_0x2fa45f=this[_0xa0f490(0x578)])==null||_0x2fa45f[_0xa0f490(0x4e0)](_0x69f06e=>_0x69f06e[_0xa0f490(0x3d3)]());}[_0x47025c(0x381)](){const _0x52ede4=_0x47025c;return ee[_0x52ede4(0x2d0)](this[_0x52ede4(0x507)],this[_0x52ede4(0x560)]);}};ue=qs([a[_0x47025c(0x21e)](a[_0x47025c(0x56d)][_0x47025c(0x2a3)],ue),le(0x0,h['Inject'](J)),le(0x1,a['IUniverInstanceService']),le(0x2,R[_0x47025c(0x577)]),le(0x3,h[_0x47025c(0x36d)](a[_0x47025c(0x1f8)]))],ue);function _0x22eb(_0x1b5645,_0x4e1926){const _0x421b7f=_0x421b();return _0x22eb=function(_0x22eb19,_0x14ec2e){_0x22eb19=_0x22eb19-0x1ec;let _0x3ada7a=_0x421b7f[_0x22eb19];return _0x3ada7a;},_0x22eb(_0x1b5645,_0x4e1926);}function Js(_0x5ec5e2){const _0x4df11f=_0x47025c,_0x181754=new Map();return _0x5ec5e2[_0x4df11f(0x4e0)](_0x42dd60=>{const _0x4fba0c=_0x4df11f;if(_0x181754[_0x4fba0c(0x49e)](_0x42dd60[_0x4fba0c(0x36e)])){const _0x40019d=_0x181754[_0x4fba0c(0x372)](_0x42dd60[_0x4fba0c(0x36e)]);_0x40019d[_0x4fba0c(0x461)]+=',\x20'+_0x42dd60[_0x4fba0c(0x461)];}else _0x181754[_0x4fba0c(0x279)](_0x42dd60['selection'],_0x42dd60);}),Array[_0x4df11f(0x582)](_0x181754[_0x4df11f(0x4d5)]());}var y=function(){const _0x5c8fde=_0x47025c;return y=Object[_0x5c8fde(0x555)]||function(_0x2fc43c){const _0x5be1fc=_0x5c8fde;for(var _0x3a8fa1,_0x78c9c=0x1,_0x2a1ef8=arguments[_0x5be1fc(0x2e3)];_0x78c9c<_0x2a1ef8;_0x78c9c++){_0x3a8fa1=arguments[_0x78c9c];for(var _0x572c8e in _0x3a8fa1)Object['prototype'][_0x5be1fc(0x203)][_0x5be1fc(0x345)](_0x3a8fa1,_0x572c8e)&&(_0x2fc43c[_0x572c8e]=_0x3a8fa1[_0x572c8e]);}return _0x2fc43c;},y['apply'](this,arguments);},Zs=function(_0x5561cc,_0x59e172){const _0x565601=_0x47025c;var _0x5ce6bc={};for(var _0x4ac5bd in _0x5561cc)Object[_0x565601(0x536)][_0x565601(0x203)][_0x565601(0x345)](_0x5561cc,_0x4ac5bd)&&_0x59e172[_0x565601(0x357)](_0x4ac5bd)<0x0&&(_0x5ce6bc[_0x4ac5bd]=_0x5561cc[_0x4ac5bd]);if(_0x5561cc!=null&&typeof Object[_0x565601(0x463)]==_0x565601(0x40d)){for(var _0x26626a=0x0,_0x4ac5bd=Object['getOwnPropertySymbols'](_0x5561cc);_0x26626a<_0x4ac5bd[_0x565601(0x2e3)];_0x26626a++)_0x59e172[_0x565601(0x357)](_0x4ac5bd[_0x26626a])<0x0&&Object[_0x565601(0x536)][_0x565601(0x4b6)][_0x565601(0x345)](_0x5561cc,_0x4ac5bd[_0x26626a])&&(_0x5ce6bc[_0x4ac5bd[_0x26626a]]=_0x5561cc[_0x4ac5bd[_0x26626a]]);}return _0x5ce6bc;},We=U[_0x47025c(0x238)](function(_0x4e3138,_0x837d6b){const _0xf33425=_0x47025c;var _0x2e3253=_0x4e3138[_0xf33425(0x34f)],_0x53f915=_0x4e3138['id'],_0x4a2bd0=_0x4e3138[_0xf33425(0x2e8)],_0x497da6=_0x4e3138[_0xf33425(0x26d)],_0x1dee19=Zs(_0x4e3138,[_0xf33425(0x34f),'id','className',_0xf33425(0x26d)]),_0x5bf77d=_0xf33425(0x312)[_0xf33425(0x3fc)](_0x53f915,'\x20')['concat'](_0x4a2bd0||'')[_0xf33425(0x303)](),_0x434ea0=U[_0xf33425(0x3f6)]('_'['concat'](ti()));return Tt(_0x2e3253,''[_0xf33425(0x3fc)](_0x53f915),{'defIds':_0x2e3253[_0xf33425(0x497)],'idSuffix':_0x434ea0['current']},y({'ref':_0x837d6b,'className':_0x5bf77d},_0x1dee19),_0x497da6);});function Tt(_0x4411e3,_0x278cb9,_0x581b60,_0x567799,_0x3b1d16){const _0x370cf3=_0x47025c;return U[_0x370cf3(0x34a)](_0x4411e3[_0x370cf3(0x46e)],y(y({'key':_0x278cb9},Qs(_0x4411e3,_0x581b60,_0x3b1d16)),_0x567799),(ei(_0x4411e3,_0x581b60)[_0x370cf3(0x28d)]||[])['map'](function(_0x341575,_0x36134c){const _0x3e3008=_0x370cf3;return Tt(_0x341575,''['concat'](_0x278cb9,'-')[_0x3e3008(0x3fc)](_0x4411e3[_0x3e3008(0x46e)],'-')[_0x3e3008(0x3fc)](_0x36134c),_0x581b60,void 0x0,_0x3b1d16);}));}function Qs(_0x27b022,_0x1230cc,_0x117b4c){const _0x574a87=_0x47025c;var _0x315393=y({},_0x27b022[_0x574a87(0x234)]);_0x117b4c!=null&&_0x117b4c[_0x574a87(0x54f)]&&_0x315393['fill']===_0x574a87(0x54f)&&(_0x315393[_0x574a87(0x41d)]=_0x117b4c[_0x574a87(0x54f)]);var _0x2b1cda=_0x1230cc[_0x574a87(0x497)];return!_0x2b1cda||_0x2b1cda[_0x574a87(0x2e3)]===0x0||(_0x27b022[_0x574a87(0x46e)]==='use'&&_0x315393[_0x574a87(0x2a6)]&&(_0x315393[_0x574a87(0x2a6)]=_0x315393[_0x574a87(0x2a6)]+_0x1230cc[_0x574a87(0x532)]),Object[_0x574a87(0x3d5)](_0x315393)[_0x574a87(0x4e0)](function(_0x4cb3e7){const _0x140773=_0x574a87;var _0x53df04=_0x4cb3e7[0x0],_0x3c45ee=_0x4cb3e7[0x1];typeof _0x3c45ee==_0x140773(0x4ca)&&(_0x315393[_0x53df04]=_0x3c45ee['replace'](/url\(#(.*)\)/,_0x140773(0x480)[_0x140773(0x3fc)](_0x1230cc[_0x140773(0x532)],')')));})),_0x315393;}function ei(_0x422f89,_0x36577f){const _0xcf4750=_0x47025c;var _0x3c3efe,_0x3c6bfb=_0x36577f['defIds'];return!_0x3c6bfb||_0x3c6bfb[_0xcf4750(0x2e3)]===0x0?_0x422f89:_0x422f89['tag']===_0xcf4750(0x46f)&&(!((_0x3c3efe=_0x422f89[_0xcf4750(0x28d)])===null||_0x3c3efe===void 0x0)&&_0x3c3efe['length'])?y(y({},_0x422f89),{'children':_0x422f89['children'][_0xcf4750(0x2ab)](function(_0x2277a8){const _0x2a6021=_0xcf4750;return typeof _0x2277a8[_0x2a6021(0x234)]['id']==_0x2a6021(0x4ca)&&_0x3c6bfb&&_0x3c6bfb[_0x2a6021(0x357)](_0x2277a8[_0x2a6021(0x234)]['id'])>-0x1?y(y({},_0x2277a8),{'attrs':y(y({},_0x2277a8[_0x2a6021(0x234)]),{'id':_0x2277a8[_0x2a6021(0x234)]['id']+_0x36577f[_0x2a6021(0x532)]})}):_0x2277a8;})}):_0x422f89;}function ti(){const _0x4f7269=_0x47025c;return Math['random']()['toString'](0x24)[_0x4f7269(0x27b)](0x2,0x8);}We[_0x47025c(0x2d5)]=_0x47025c(0x409);var si={'tag':_0x47025c(0x4a1),'attrs':{'fill':_0x47025c(0x250),'viewBox':_0x47025c(0x493),'width':_0x47025c(0x530),'height':_0x47025c(0x530)},'children':[{'tag':'g','attrs':{'clipPath':'url(#off-line-single_clip0_910_343)'},'children':[{'tag':_0x47025c(0x360),'attrs':{'stroke':_0x47025c(0x4f8),'d':_0x47025c(0x2e6),'strokeLinecap':_0x47025c(0x35c),'strokeLinejoin':_0x47025c(0x35c),'strokeWidth':1.2}}]},{'tag':_0x47025c(0x46f),'attrs':{},'children':[{'tag':'clipPath','attrs':{'id':_0x47025c(0x4b1)},'children':[{'tag':_0x47025c(0x360),'attrs':{'fill':'#fff','d':_0x47025c(0x388)}}]}]}],'defIds':[_0x47025c(0x4b1)]},Rt=U['forwardRef'](function(_0x34bc7c,_0x26d2c0){const _0x5a95c5=_0x47025c;return U['createElement'](We,Object[_0x5a95c5(0x555)]({},_0x34bc7c,{'id':_0x5a95c5(0x540),'ref':_0x26d2c0,'icon':si}));});Rt[_0x47025c(0x2d5)]=_0x47025c(0x2d3);var ii={'tag':_0x47025c(0x4a1),'attrs':{'fill':_0x47025c(0x250),'viewBox':_0x47025c(0x2a1),'width':_0x47025c(0x530),'height':_0x47025c(0x530)},'children':[{'tag':'g','attrs':{'clipPath':'url(#on-line-single_clip0_910_349)'},'children':[{'tag':_0x47025c(0x360),'attrs':{'stroke':_0x47025c(0x4f8),'d':_0x47025c(0x554),'strokeLinecap':_0x47025c(0x35c),'strokeLinejoin':'round','strokeWidth':1.2}}]},{'tag':'defs','attrs':{},'children':[{'tag':_0x47025c(0x460),'attrs':{'id':_0x47025c(0x239)},'children':[{'tag':'path','attrs':{'fill':'#fff','d':_0x47025c(0x388),'transform':_0x47025c(0x37a)}}]}]}],'defIds':['on-line-single_clip0_910_349']},Ot=U[_0x47025c(0x238)](function(_0x146649,_0x34c49b){const _0x1f010d=_0x47025c;return U[_0x1f010d(0x34a)](We,Object['assign']({},_0x146649,{'id':_0x1f010d(0x47a),'ref':_0x34c49b,'icon':ii}));});Ot[_0x47025c(0x2d5)]=_0x47025c(0x31b);const ni=_0x47025c(0x599),ri=_0x47025c(0x3c9),oi=_0x47025c(0x40c),ai=_0x47025c(0x450),ci='univer-offline',ie={'onlineStatusIcon':ni,'onlineStatusTitle':ri,'onlineStatus':oi,'online':ai,'offline':ci};function li(_0x59ff1c){const _0x325eef=_0x47025c;switch(_0x59ff1c){case w['OFFLINE']:return _0x325eef(0x482);case w[_0x325eef(0x286)]:return _0x325eef(0x212);case w[_0x325eef(0x59a)]:return _0x325eef(0x503);case w['NOT_COLLAB']:return _0x325eef(0x551);case w[_0x325eef(0x521)]:case w['AWAITING']:case w[_0x325eef(0x572)]:return _0x325eef(0x3ac);case w['SYNCED']:return _0x325eef(0x287);}}function Dt(_0x236380){const _0xf716b9=_0x47025c,{status$:_0x16d2b9}=_0x236380,_0x577c27=N[_0xf716b9(0x49a)](_0x16d2b9,w[_0xf716b9(0x38c)]),_0x509265=at['useDependency'](a[_0xf716b9(0x3f8)]),_0x550761=_0x577c27!==w[_0xf716b9(0x2a8)],_0x323929=_0x509265['t'](li(_0x577c27)),_0x3503f9=Ht(ie[_0xf716b9(0x58e)],{[ie[_0xf716b9(0x3e9)]]:_0x550761,[ie[_0xf716b9(0x26a)]]:!_0x550761}),_0x33a1a9=_0x550761?U[_0xf716b9(0x34a)](Ot,null):U[_0xf716b9(0x34a)](Rt,null);return U[_0xf716b9(0x34a)](_0xf716b9(0x226),{'className':_0x3503f9},U[_0xf716b9(0x34a)](_0xf716b9(0x226),{'className':ie['onlineStatusIcon']},_0x33a1a9),U[_0xf716b9(0x34a)](_0xf716b9(0x226),{'className':ie['onlineStatusTitle']},_0x323929));}var hi=Object['defineProperty'],_i=Object[_0x47025c(0x348)],ui=(_0x5adcdb,_0x28d2e7,_0x2c916e,_0x3a1b18)=>{const _0x39b823=_0x47025c;for(var _0xa8f762=_0x3a1b18>0x1?void 0x0:_0x3a1b18?_i(_0x28d2e7,_0x2c916e):_0x28d2e7,_0x3ca9e9=_0x5adcdb[_0x39b823(0x2e3)]-0x1,_0x5a791a;_0x3ca9e9>=0x0;_0x3ca9e9--)(_0x5a791a=_0x5adcdb[_0x3ca9e9])&&(_0xa8f762=(_0x3a1b18?_0x5a791a(_0x28d2e7,_0x2c916e,_0xa8f762):_0x5a791a(_0xa8f762))||_0xa8f762);return _0x3a1b18&&_0xa8f762&&hi(_0x28d2e7,_0x2c916e,_0xa8f762),_0xa8f762;},he=(_0x29dfa8,_0x4f0c3a)=>(_0x158bab,_0x582d40)=>_0x4f0c3a(_0x158bab,_0x582d40,_0x29dfa8);exports[_0x47025c(0x2ca)]=class extends a['Disposable']{constructor(_0x114291,_0x40956b,_0x3ff085,_0x9df00c){const _0xf2415e=_0x47025c;super(),d(this,_0xf2415e(0x50c),new g[(_0xf2415e(0x3a1))](w[_0xf2415e(0x38c)])),(this[_0xf2415e(0x507)]=_0x114291,this[_0xf2415e(0x477)]=_0x40956b,this[_0xf2415e(0x2af)]=_0x3ff085,this[_0xf2415e(0x4be)]=_0x9df00c,this[_0xf2415e(0x4ed)](),this['_initStatusListener']());}[_0x47025c(0x4ed)](){const _0x5c5dce=_0x47025c;this[_0x5c5dce(0x4dd)](this[_0x5c5dce(0x477)][_0x5c5dce(0x23b)](N['BuiltInUIPart'][_0x5c5dce(0x4c7)],()=>at[_0x5c5dce(0x455)](di({'status$':this[_0x5c5dce(0x50c)][_0x5c5dce(0x435)]()}),this[_0x5c5dce(0x2af)])));}[_0x47025c(0x309)](){const _0x275cf3=_0x47025c;this[_0x275cf3(0x4dd)](a[_0x275cf3(0x26c)](this[_0x275cf3(0x507)][_0x275cf3(0x33f)][_0x275cf3(0x252)](g[_0x275cf3(0x2c5)](()=>{const _0x14b3d7=_0x275cf3,_0x1d2887=this['_univerInstanceService']['getFocusedUnit']();return _0x1d2887?this['_collaborationController'][_0x14b3d7(0x57a)](_0x1d2887[_0x14b3d7(0x518)]()):g['of'](null);}),g[_0x275cf3(0x2c5)](_0x43ce1c=>_0x43ce1c?_0x43ce1c[_0x275cf3(0x243)]:g['of'](w[_0x275cf3(0x38c)])))[_0x275cf3(0x588)](_0x25632a=>{const _0x197bab=_0x275cf3;this[_0x197bab(0x50c)][_0x197bab(0x361)](_0x25632a);})));}},exports[_0x47025c(0x2ca)]=ui([a[_0x47025c(0x21e)](a[_0x47025c(0x56d)]['Starting'],exports['DesktopCollaborationStatusDisplayController']),he(0x0,a[_0x47025c(0x4d6)]),he(0x1,N[_0x47025c(0x4c0)]),he(0x2,h[_0x47025c(0x36d)](h[_0x47025c(0x3c4)])),he(0x3,h[_0x47025c(0x36d)](exports['CollaborationController']))],exports[_0x47025c(0x2ca)]);function di(_0x63cf){const {status$:_0x53ff26}=_0x63cf;return function(){const _0x55650b=_0x22eb;return U[_0x55650b(0x34a)](Dt,{'status$':_0x53ff26});};}const Ge=h[_0x47025c(0x418)](_0x47025c(0x3ea));var Si=Object[_0x47025c(0x430)],vi=Object[_0x47025c(0x348)],gi=(_0x47ff44,_0x51eef1,_0x315d51,_0x2642df)=>{for(var _0x670173=_0x2642df>0x1?void 0x0:_0x2642df?vi(_0x51eef1,_0x315d51):_0x51eef1,_0x1c7d74=_0x47ff44['length']-0x1,_0x4ce9c;_0x1c7d74>=0x0;_0x1c7d74--)(_0x4ce9c=_0x47ff44[_0x1c7d74])&&(_0x670173=(_0x2642df?_0x4ce9c(_0x51eef1,_0x315d51,_0x670173):_0x4ce9c(_0x670173))||_0x670173);return _0x2642df&&_0x670173&&Si(_0x51eef1,_0x315d51,_0x670173),_0x670173;},z=(_0x451391,_0x42be80)=>(_0x272595,_0xa4af27)=>_0x42be80(_0x272595,_0xa4af27,_0x451391);exports[_0x47025c(0x495)]=class extends a[_0x47025c(0x3ff)]{constructor(_0x1400d7,_0x38e761,_0x13cf97,_0x1ac1cd,_0x4dde4,_0x47803c){const _0x378dc8=_0x47025c;super(),this['_urlService']=_0x1400d7,this['_logService']=_0x38e761,this[_0x378dc8(0x270)]=_0x13cf97,this[_0x378dc8(0x528)]=_0x1ac1cd,this[_0x378dc8(0x2c2)]=_0x4dde4,_0x47803c?_0x47803c==null||_0x47803c[_0x378dc8(0x356)]()[_0x378dc8(0x4ec)](()=>this[_0x378dc8(0x308)]()):(this[_0x378dc8(0x4f9)][_0x378dc8(0x375)](_0x378dc8(0x4c4),_0x378dc8(0x47b)),this['_init']());}async['_init'](){const _0x39ed5b=_0x47025c,_0x3a7066=this[_0x39ed5b(0x295)][_0x39ed5b(0x58b)](_0x39ed5b(0x3e4)),_0x35d42e=this[_0x39ed5b(0x295)]['getParam'](_0x39ed5b(0x53b));if(!_0x3a7066||!_0x35d42e){this[_0x39ed5b(0x4f9)][_0x39ed5b(0x375)](_0x39ed5b(0x4c4),'No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.');return;}switch(Number(_0x35d42e)){case j[_0x39ed5b(0x379)]:{const _0x2a5869=await this[_0x39ed5b(0x595)](_0x3a7066);this['_setupSubUnitSync'](_0x2a5869);break;}case j[_0x39ed5b(0x324)]:{await this[_0x39ed5b(0x3d4)](_0x3a7066);break;}default:{this[_0x39ed5b(0x4f9)][_0x39ed5b(0x3ce)](_0x39ed5b(0x4c4),_0x39ed5b(0x41b));break;}}}async[_0x47025c(0x2db)](_0x38b847){const _0xd9d1ed=_0x47025c;await this[_0xd9d1ed(0x41a)](_0x38b847),_0x38b847[_0xd9d1ed(0x415)][_0xd9d1ed(0x252)](g['takeUntil'](this['dispose$']))[_0xd9d1ed(0x588)](_0x3694c4=>{_0x3694c4&&this['_updateURLWithCurrentState'](_0x3694c4);}),this[_0xd9d1ed(0x295)]['urlChange$'][_0xd9d1ed(0x252)](g[_0xd9d1ed(0x483)](this[_0xd9d1ed(0x3f4)]))[_0xd9d1ed(0x588)](()=>this['_updateSubUnitFromURLParams'](_0x38b847));}[_0x47025c(0x2dc)](_0x185e06,_0xddf8a0=!0x1){const _0x29a767=_0x47025c,_0x34f8f9=this['_urlService']['getParam'](_0x29a767(0x492));_0x185e06[_0x29a767(0x411)]()!==_0x34f8f9&&this[_0x29a767(0x295)][_0x29a767(0x2f1)]('subunit',_0x185e06[_0x29a767(0x411)](),_0xddf8a0);}async[_0x47025c(0x41a)](_0x51b824){const _0x4c3ce8=_0x47025c;var _0x185eff;const _0x31e7b4=this[_0x4c3ce8(0x295)][_0x4c3ce8(0x58b)]('subunit');if(!_0x31e7b4||!_0x51b824['getSheetBySheetId'](_0x31e7b4)){const _0x46f141=_0x51b824[_0x4c3ce8(0x394)]()[0x0],_0x4888ee=_0x51b824[_0x4c3ce8(0x297)](_0x46f141);if(!_0x4888ee)return;this[_0x4c3ce8(0x2dc)](_0x4888ee,!0x0),await this[_0x4c3ce8(0x270)][_0x4c3ce8(0x248)](E[_0x4c3ce8(0x4b9)]['id'],{'unitId':_0x51b824[_0x4c3ce8(0x518)](),'subUnitId':_0x46f141});return;}((_0x185eff=_0x51b824[_0x4c3ce8(0x473)]())==null?void 0x0:_0x185eff[_0x4c3ce8(0x411)]())!==_0x31e7b4&&await this[_0x4c3ce8(0x270)]['executeCommand'](E[_0x4c3ce8(0x4b9)]['id'],{'unitId':_0x51b824[_0x4c3ce8(0x518)](),'subUnitId':_0x31e7b4});}async[_0x47025c(0x595)](_0x4ab993){const _0x22cb02=_0x47025c;let _0x447c56=0x0;const _0x3b293c=await this[_0x22cb02(0x528)][_0x22cb02(0x40f)](_0x4ab993);return _0x3b293c&&(_0x3b293c[_0x22cb02(0x562)]||_0x3b293c[_0x22cb02(0x2e2)][_0x22cb02(0x2e3)]!==0x0)&&(_0x447c56=_0x3b293c[_0x22cb02(0x2e4)]),_0x447c56===0x0&&this[_0x22cb02(0x4f9)][_0x22cb02(0x375)](_0x22cb02(0x4c4),_0x22cb02(0x285)),this[_0x22cb02(0x2c2)]['loadSheet'](_0x4ab993,_0x447c56);}async[_0x47025c(0x3d4)](_0x4c25c2){const _0x3b8fc6=_0x47025c;let _0x108e74=0x0;const _0x486f82=await this['_localCacheService']['loadOfflineData'](_0x4c25c2);return _0x486f82&&(_0x486f82[_0x3b8fc6(0x562)]||_0x486f82[_0x3b8fc6(0x2e2)][_0x3b8fc6(0x2e3)]!==0x0)&&(_0x108e74=_0x486f82[_0x3b8fc6(0x2e4)]),_0x108e74===0x0&&this[_0x3b8fc6(0x4f9)][_0x3b8fc6(0x375)](_0x3b8fc6(0x4c4),_0x3b8fc6(0x285)),this[_0x3b8fc6(0x2c2)][_0x3b8fc6(0x21d)](_0x4c25c2,_0x108e74);}},exports[_0x47025c(0x495)]=gi([a[_0x47025c(0x21e)](a[_0x47025c(0x56d)][_0x47025c(0x2a9)],exports[_0x47025c(0x495)]),z(0x0,Ge),z(0x1,a[_0x47025c(0x38a)]),z(0x2,a['ICommandService']),z(0x3,h[_0x47025c(0x36d)](exports[_0x47025c(0x1f5)])),z(0x4,h['Inject'](u[_0x47025c(0x241)])),z(0x5,h[_0x47025c(0x2c6)](xt['IRemoteInstanceService']))],exports[_0x47025c(0x495)]);function _0x421b(){const _0x3b4d07=['init','collabStatus.offline','takeUntil','_onCombEvent','NodePositionConvertToCursor','_undoStacks','isEditing','_entities','getMember','verdancy600','size','LOCAL_CACHE_INTERVAL','_onMessage','PSEUDO_FETCH_MISSING_RESULT','userID','_waitForHeartbeatResponse','_themeService','subunit','0\x200\x2016\x2016','[FetchMissState]','DataLoaderController','fetch_missing','defIds','json','liveShareOperation','useObservable','removeParam','@wendellhu/redi','CHANGESET_REJ','has','RemoveColCommandId','_messageService','svg','_unitID','encodeURIComponent','currentTheme$','JOINING','put','createInstance','getDocObject','CHANGESET_REVISION_CONFILICT','_substituteRedoStack','COLLAB_WEB_SOCKET_URL','_retryCount','SUBMIT_CHANGESET','_sheetSkeletonManagerService','unknown','/collaborator','off-line-single_clip0_910_343','setWaitCount','[SyncedState]:\x20invalid\x20calling\x20to\x20`resend`.','addObject','getCurrentUnitForType','propertyIsEnumerable','_unlockTransition','_saveTaskMap','SetWorksheetActivateCommand','leaveEvent','_handleLeaveEvent','_unitOnClients','Univer','_collaborationController','_beforeCloseService','IUIPartsService','_startCollaboration','connection\x20error','m2Prime','[DataLoaderController]','getMemberID','clear','HEADER_MENU','gold400','_tryEnsureSocket','string','[CollaborationEntity]:\x20cannot\x20apply\x20missing\x20results\x20on\x20other\x20states!','sessionStatus$','pluginName','snapshot','_retryConnectingTimer','pauseCollaboration','&to=','pending','_onCursorDelete','roles','values','IUniverInstanceService','NOT_FOUND','FETCH_MISSING','rxjs','session.collaboration-timeout','image/png','_labelPosition','disposeWithMe','_config','Error','forEach','addEventListener','_updateLocalCursor','getTypeOfUnitDisposed$','collabCursorState$','_transformUndoRedoStack','SetSelectionsOperation','cmd','_send','UPDATE_CURSOR','color','popstate','then','_initStatusComponent','_session','currentSkeleton$','_sendHeartbeatTimer','HEARTBEAT_INTERVAL_KEY','conflict','SessionStatus','_scheduleSaving','c2Prime','_docTransformIMECacheService','session.room-full','currentColor','_logService','conflict.title','ICollaborationSocketService','transformMutation','submit\x20changeset\x20error!','_members','catch','collaboratorID','getConfig','_getRedoStack','collabStatus.fetchMiss','getTime','awaiting','_replayCachedMutations','_univerInstanceService','HELLO','onCommandExecuted','DeleteRangeMoveLeftCommandId','jiqing500','_status$','TextSelectionManagerService','_socket','_localStorageService','history','ONLINE','_startDocCollabCursor','_unitId','transformMutationsWithChangeset','_checkMissing','_hideTimer','getTypeOfUnitAdded$','getUnitId','combineLatest','[PendingState]:\x20invalid\x20calling\x20to\x20`resend`.','getImage','LOGIN_URL_KEY','CHANGESET_ACK','purple300','_getMergeRange','failed\x20to\x20apply\x20missed\x20changesets!','PENDING','awaiting_with_pending','registerOnClose','_roomMembers$','@univerjs/core','clsx','LocalUndoRedoService','_localCacheService','[FetchingMissState]:\x20not\x20expected\x20to\x20receive\x20ack\x20when\x20`this._awaitingChangeset`\x20is\x20null!','b64DecodeUnicode','[FetchingMissState]:\x20invalid\x20calling\x20to\x20`resend`.','_scheduleClearOtherTimer','univer-pro.collaboration-client-socket-service','sheetID','_sessionStatus$','1em','getViewport','idSuffix','_getSignURL','sessionStatus','close','prototype','registerBeforeClose','\x20-\x20','transformUndoRedo','_assignedColors','type','onPointerMove$','roomInfos','_sendingTimer','_lastPointer','off-line-single','_imageSourceCache','fetchThroughInterceptors','routeKey','flatMap','7453446AUoLNs','UNDEFINED','setTimeout','disposeUnit','editing\x20status\x20changed\x20to','DEFAULT_FILE_NAME','measureText','_joinRoom','fromCollab','message$','colorChannel1','_executeRemoteChangeset','collabStatus.notCollab','getInterceptPoints','requireSession','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','assign','deserializeRangeWithSheet','_toggleOffline','assignAColorForMemberID','result','_HTTPService','LICENSE_IMPORT_SIZE_EXCEEDED','_clearHeartbeatTimer','WebURLService','saveImage','clearTimeout','_renderManagerService','CollaborationController','awaitingChangeset','add','reverse','restore','UNIVER_COLLABORATION_CLIENT_PLUGIN','834oBgnSq','getResourcesRequest','Subject','@univerjs/rpc','NEW_CHANGESETS','_revisionService','LifecycleStages','_setupBeforeClosingHandler','Error\x20on\x20receiving\x20event','_getUploadFileURL','#FFF','AWAITING_WITH_PENDING','serializeCombRequest','_getAPIPrefix','_collaborationPaused','32235SPTQHP','IRenderManagerService','_cursors','infoRsp','getCollabEntity$','_fetchMissChangesets','delete','{fileID}','onMissedChangesetFetched','_cursorInfo$','?size=','isTransformMutationFailure','from','isTransformChangesetsSuccess','_timeoutTimer','save','_ensureSubject','_hover','subscribe','@univerjs/sheets','_name','getParam','_transformStack','LIVESHARE_FETCH_OPERATIONS','onlineStatus','/-/object/-/batch_allowed','evenodd','params','Rect','_showConflictNotification','getOffsetConfig','_loadSheet','image/gif','CompressMutationService','HTTPService','univer-online-status-icon','FETCH_MISS','batchAllowed','_handleJoinEvent','_submitChangeset','_onJoinRoomEvent','SNAPSHOT_INVALID_SNAPSHOT','min','FAIL','univer-pro.collaboration-client.single-active-unit-service','UNKNOWN_CMD','editingUnit','complete','localeService','LIVESHARE_NEW_HOST','objectType','@univerjs/engine-render','triggerDblclick','ranges','top','UniverCollaborationPlugin','_disableEditing','LocalCacheService','_cachedData','_onConnectionFailed','ThemeService','DocStateChangeManagerService','_snapshotServerService','ALREADY_EXISTS','MoveRangeCommandId','_clearScheduledTask','SNAPSHOT_SERVER_URL_KEY','@univerjs/network','ImageSourceType','[CollaborationState]:\x20apply\x20error!','getCollabCursors$','hasOwnProperty','_drawRange','toggleOffline','/unit/','putCollaborators','_scheduleHeartbeat','/new_changes','handleMoveRange','roomMembers$','actions','_startSheetCollabCursor','unitID','_refRangeService','_onFetchMissResult','replace','collabStatus.conflict','_getAnchorBounding','replaceState','_onRecvEvent','getUnitStatus$','patch','updateMember','csAckEvent','_socketReady','session','@univerjs/design','loadDoc','OnLifecycle','deleteCollaborator','USERS_LEAVE','doc.mutation.rich-text-editing','toggleOnline','Plugin','[CollaborationSession]:\x20should\x20not\x20send\x20message\x20when\x20the\x20session\x20is\x20offline!','_isPermissionRej','div','_acknowledgedAwaitingChangeset','interceptor','SEND_CHANGESET_TIMEOUT','cursorInfo$','_permissionService','symbol','20mkTiKo','_online','SUCCUSS','_docSyncEditingCollabCursorService','error$','_collabSessionService','_waitCount','attrs','[CollaborationSocketService]:\x20failed\x20to\x20create\x20socket!','[ConflictState]:\x20invalid\x20calling\x20to\x20`resend`.','post','forwardRef','on-line-single_clip0_910_349','TEXT_RANGE_LAYER_INDEX','registerComponent','COLLAB_WEB_SOCKET_URL_KEY','_removeRoom','setShapeProps','_ws','INTERNAL_ERROR','SnapshotService','onlyLocal','status$','_change$','session.will-retry','_transformSelections','getCoordByCell','executeCommand','_clearTimeoutTimer','filter','_createHandler','sequenceExecute','_handleHover','Workbook','\x0aAfter:\x20','none','_getSendChangesetTimeout','pipe','registerHTTPInterceptor','_collaborationTimeoutTimer','href','COLLAB_SUBMIT_CHANGESET_URL_KEY','onPointerEnter$','[OfflineState]:\x20received\x20acknowledgement.','_anchorDot','@univerjs/sheets-ui','_render','This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!','find','delay','fromEvent','getItem','allowed','event$','isArray','_remoteChangesetQueue','ERROR_IMAGE','_substituteUndoStack','textRanges','all','/object/','offline','deserializeToCombResponse','toDisposable','extend','/resources','debounceTime','_commandService','SNAPSHOT_HAS_BEEN_REMOVED','data','_createInitialStateImpl','shareReplay','AuthzIoHttpService','MUTATION','collaMsg','show','set','rgba(255,\x20255,\x20255,\x200.01)','substring','unit-cache-','SYNCED','UniverCollaborationClientPlugin','/universer-api/comb','/universer-api/snapshot','_colorAssignService','[CollaborationEntity]:\x20initial\x20state\x20has\x20been\x20created\x20before.\x20You\x20should\x20not\x20call\x20\x22init\x22\x20twice.','_type','black','fetching\x20the\x20latest\x20document\x20from\x20the\x20server.','CONFLICT','collabStatus.synced','disableLocalCache','AWAITING','onRemoteRej','push','_updateStatus','children','/allowed','WorkbookEditablePermission','memberID','_onConflict','?url=','Tools','syncEditingCollabCursor','_urlService','makeDirty','getSheetBySheetId','permission.content','_state$','startRow','_range','toRgbString','setItem','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','_rescheduleHeartbeatEvent','docStateChange$','0\x200\x2017\x2016','_exhaustRemoteChangesetQueue','Steady','incrementRevForDocument','synced','xlink:href','JSONX','OFFLINE','Starting','_clearRedo','map','not_collab','CollaborationSessionService','YUUMI_UNABLE_LOAD_URL','_injector','range','LIVESHARE_REQUEST_HOST','/role','InsertRangeMoveDownCommandId','deepClone','parse','EffectRefRangId','startsWith','list','_updateState','handleIRemoveRow','@univerjs/engine-formula','DisposableCollection','_getAPIPrefixPath','CollaborationSocketService','selections','_schedule','_collabCursorState$','_snapshotService','setCurrentUser','sheetId','switchMap','Optional','newValue','encode','/-/object/list','DesktopCollaborationStatusDisplayController','[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.','updatePermissionPoint','_onRefRangeChange','_undoRedoService','onSyncEditingCollabCursor','getSheetObject','revision','onTransformRemoteChangesetByIMECache','OffLineSingle','TOO_MANY_REQUESTS','displayName','_updateCollabCursors','RevisionService','appendMutation','row','_onUserJoin','_setupSubUnitSync','_updateURLWithCurrentState','_getLoginPath','getValue','HEARTBEAT_TIMEOUT','merge','UNRECOGNIZED','mutations','length','rev','replaceTextRanges','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','MSG_FOR_ERROR','className','arc','SEND_CHANGESET_TIMEOUT_KEY','_onRemoteChangeset','collaboration.single-unit.warning','36KbDvli','146366xoGIaG','append','INGEST','setParam','changesets','resolve','_queuedRemoteChangesets','isPermissionRej','skeleton','handleInsertCol','getCurrent','/universer-api/stream/file/upload','registerRefRange','_singleActiveUnitService','YUUMI_URL_COL_OUT_OF_RANGE','[CollaborationController]:\x20invalid\x20univer\x20type:\x20','/universer-api/authz','RECV','VIEW_MAIN','_socketService','sheets','trim','DependentOn','13433264qBtwCG','_getDocObject','WebSocketService','_init','_initStatusListener','onRemoteAck','_getUndoStack','_color','_transformRemoteChangesetByIMECache','font','_removeCollabCursors','getUndoRedoMutationParamsCache','ISnapshotServerService','univerjs-icon\x20univerjs-icon-','RegularPolygon','resend','UNIVER_SLIDE','baseRev','_replaceFileID','listCollaborators','VIEWPORT_KEY','urlChange$','OnLineSingle','IBeforeCloseService','ITransformService','/fetchmissing?from=','[PendingState]:\x20received\x20rejection.','RichTextEditingMutation','transformChangesets','src','@univerjs-pro/collaboration','UNIVER_DOC','RETRY_CONNECTING_MAX_COUNT','isTransformMutationsWithChangesetSuccess','getUnitOnRev','_configService','removeMember','_onConnectionOpen','APPLY_REVISION_CONFILICT','_pendingMutations','cursorInfo','[OfflineState]:\x20invalid\x20calling\x20to\x20`resend`.','SNAPSHOT_URL_KEY','_onLocalMutation','liveShareNewHost','transformSelections','handleInsertRow','closePath','_onCursorUpdate','_socket$','_getSaveTimeout','objects','textEncoder','title','LIVESHARE_OPERATION','[CollaborationSessionService]','_disabled','update','focused$','updateCollaborator','InsertRangeMoveRightCommandId','create','Warning','getRelativeCoord','call','APPLY_PERMISSION_DENIED','collaboration-client.offline-data-not-saved','getOwnPropertyDescriptor','_eventUnsubscribe','createElement','_clearCollaborationTimeoutTimer','labelPosition','getMergeData','_scene','icon','storage','_lockTransition','objectActions','reject','_docTransformSelectionsService','rxjs/operators','whenReady','indexOf','_getSnapshotAPIPrefix','_hovered','IMEInputManagerService','PERMISSION_DENIED','round','_cursor','_exhaustSavingTask','getSelections','path','next','_state','_clearUndo','Rectangle','_initModules','objectID','IMessageService','roomMembers','EXCHANGE_SIGN_URL_SERVER_URL_KEY','fillStyle','mapDocumentTypeToUniverType','isTransformMutationsWithChangesetFailure','Inject','selection','_scheduleReconnection','column','getColor','get','SelectionManagerService','APPLY_NON_SEQUENTIAL_REVISION','debug','state$','blue400','OTHER_CLIENTS_EDITING','UNIVER_SHEET','translate(.97)','_event$','some','_saveCache','_transformUndoredo','JOIN','_httpService','_getSheetObject','COLORS','image/jpeg','BASE64','LICENSE_EXPORT_SIZE_EXCEEDED','clearInterval','permissionRejEvent','M0\x200H16V16H0z','_incrementRevisionNumber','ILogService','_removeClearOtherTimer','NOT_COLLAB','unsubscribe','serializeRangeWithSheet','ICommandService','HEARTBEAT','NO_OTHER_CLIENTS_EDITING','searchParams','open$','getUnhiddenWorksheets','setUndoRedoMutationParamsCache','Shape','[SyncedState]:\x20received\x20rejection.','_roomMembers','_handler','_notificationService','compose','_updateLocalCache','_sessions','_getScale','_handleEvent','lineTo','BehaviorSubject','_entityInit$','setAlpha','_drawAnchor','291626xUNehe','APPLY_REJECT','stringify','LICENSE_DISTRO_REJECTED','[OfflineState]:\x20received\x20changeset.','IImageIoService','workbook','collabStatus.syncing','_draw','c1Prime','toStringTag','getCurrentUser','handleDeleteRangeMoveLeft','react','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','readAsDataURL','image/bmp','fetching\x20missing\x20changesets\x20from\x20','unload','target','_scheduleCollaborationTimeoutTimer','transformIMECache','RefRangeService','18988965CKKtaX','getRangePointData','ThresholdInterceptorFactory','EXCHANGE_UPLOAD_FILE_SERVER_URL_KEY','COMPLETION_FINISHED','text','_onUserLeave','_id','Injector','_anchor','_clearOtherTimers','_onRemoteACK','fetchMissingChangesets','univer-online-status-title','RemoveRowCommandId','subscribeEvent','/universer-api/file/{fileID}/sign-url','setInterval','error','subUnitId','_userManagerService','IDLE','_applyRemoteChangeset','dispose','_loadDoc','entries','close$','Module','max','_handleHeartbeatEvent','_selfUnitIDs','unshift','transformByState','key','collaborators','transformRemoteChangeset','split','[CollaborationController]:\x20remote\x20changeset\x20applied\x20error.','handleInsertRangeMoveDown','_shapes','unit','[CollaborationEntity]','_memberService','createSocket','_sendHeartbeat','online','uni.network.url-service','enableOfflineEditing','_colorIndex','_transformIMECache','onTransformSelections','beginPath','/universer-api/snapshot/','location','createCollaborator','LICENSE_MAX_UNITS_EXCEEDED','dispose$','MessageType','useRef','COMPRESS_MUTATION_APPLY','LocaleService','FromArray','isActive','UniverInstanceType','concat','[CollaborationSessionService]:\x20socket\x20error','_decreaseWaiting','RxDisposable','onMouseMove','AUTHZ_URL_KEY','take','eventID','[OfflineState]:\x20received\x20rejection.','CONNECTOR_DATA_TOO_LARGE','unitId','serializeTextRange','_transformPreviousActiveRange','UniverIcon','_syncEditingCollabCursorService','@univerjs/drawing','univer-online-status','function','onRemoteChangeset','loadOfflineData','ERROR_EXCEED_SIZE','getSheetId','with','collab-text-range-','confirm','activeSheet$','_syncEditingCollabCursor','_textBubble','createIdentifier','LIVESHARE_TERMINATE','_updateSubUnitFromURLParams','Unknown\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','permission.title','fill','ImageUploadStatusType','LOCAL_CACHE_INTERVAL_KEY','getCellPositionByOffset','[serializeCombRequest]:\x20should\x20not\x20fall\x20into\x20default\x20branch!','getUnitType','_docStateChangeManagerService','status','@wendellhu/redi/react-bindings','mergeOverrideWithDependencies','members','_awaitingChangeset','getCollabEntity','_getCurrentRevision','3727476unVmQI','body','_transformService','_clearLocalCache','getRenderById','defineProperty','Disposable','getCurrentRevForDocument','_localeService','FileId','asObservable','[CollaborationSession]','height','_compressMutationService','_heartbeatTimer','Unknown\x20user','onMissingChangesets','CollaborationSession','_scheduleTimestamp','_collabCursorController','distinctUntilChanged','_transitionLocked','_http','width','RETRY_CONNECTING_INTERVAL','_onRemoteRejected','UNKNOWN_CODE','auth.needGotoLoginAlert','IUndoRedoService','CollaborationStatusDisplay','collab-text-anchor-','toString','onPointerLeave$','[CollaborationUndoRedoService]','collaborationUniverTypes','generateRandomId','originalMeta','univer-online','joinEvent','INVALID_ARGUMENT','USERS_ENTER','_unitStatus','connectInjector','pushState','/universer-api/oidc/authpage','drawWith','\x20to\x20','[UniverCollaborationClientPlugin]','fillText','getFocusedUnit','_docSkeletonManagerService','contains','/rev/','clipPath','name','InsertSheetMutation','getOwnPropertySymbols','UNIVER_UNKNOWN','includes','hide','_socketMessageSubscription','Vector2','LEAVE','_toggleOnline','send','_sheetTransformSelectionsService','apply','tag','defs','CollaborationEvent','updateOfflineData','IPermissionService','getActiveSheet','getRoom','...','parseChangesetToProtocol','_uiPartsService','IConfigService','_createSocket','on-line-single','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','endRow','saveSnapshot','COLLAB_SUBMIT_CHANGESET_URL','m1Prime','url(#$1'];_0x421b=function(){return _0x3b4d07;};return _0x421b();}var fi=Object[_0x47025c(0x430)],mi=Object[_0x47025c(0x348)],Ii=(_0x67ac03,_0x487891,_0x15e908,_0x24d647)=>{for(var _0x5c6e77=_0x24d647>0x1?void 0x0:_0x24d647?mi(_0x487891,_0x15e908):_0x487891,_0xef98cf=_0x67ac03['length']-0x1,_0x493932;_0xef98cf>=0x0;_0xef98cf--)(_0x493932=_0x67ac03[_0xef98cf])&&(_0x5c6e77=(_0x24d647?_0x493932(_0x487891,_0x15e908,_0x5c6e77):_0x493932(_0x5c6e77))||_0x5c6e77);return _0x24d647&&_0x5c6e77&&fi(_0x487891,_0x15e908,_0x5c6e77),_0x5c6e77;},st=(_0x350069,_0xbcccc5)=>(_0x97c932,_0x1e8589)=>_0xbcccc5(_0x97c932,_0x1e8589,_0x350069);const pi=_0x47025c(0x54a),Ei=_0x47025c(0x4bd);let de=class extends a['Disposable']{constructor(_0x1218ad,_0x2fdedd){const _0x2f995b=_0x47025c;super(),this[_0x2f995b(0x507)]=_0x1218ad,this[_0x2f995b(0x328)]=_0x2fdedd,this[_0x2f995b(0x308)]();}[_0x47025c(0x308)](){const _0x48704d=_0x47025c;this['disposeWithMe'](a[_0x48704d(0x26c)](this['_univerInstanceService'][_0x48704d(0x33f)]['subscribe'](()=>{const _0x5dcf3a=_0x48704d;var _0x56c0ee;const _0x149f7f=this[_0x5dcf3a(0x507)][_0x5dcf3a(0x45c)]();let _0x606584=(_0x56c0ee=this[_0x5dcf3a(0x328)][_0x5dcf3a(0x501)](pi))!=null?_0x56c0ee:Ei;_0x149f7f instanceof a[_0x5dcf3a(0x24e)]&&(_0x606584=_0x149f7f[_0x5dcf3a(0x461)]),document[_0x5dcf3a(0x33a)]=_0x606584;})));}};de=Ii([a['OnLifecycle'](a[_0x47025c(0x56d)]['Ready'],de),st(0x0,a[_0x47025c(0x4d6)]),st(0x1,a[_0x47025c(0x478)])],de);var Ci=Object[_0x47025c(0x430)],bi=Object[_0x47025c(0x348)],Ti=(_0x28f9bf,_0x5da5e2,_0x27e2cc,_0x336732)=>{const _0x28dabc=_0x47025c;for(var _0x39f3ad=_0x336732>0x1?void 0x0:_0x336732?bi(_0x5da5e2,_0x27e2cc):_0x5da5e2,_0x2ff467=_0x28f9bf[_0x28dabc(0x2e3)]-0x1,_0x354797;_0x2ff467>=0x0;_0x2ff467--)(_0x354797=_0x28f9bf[_0x2ff467])&&(_0x39f3ad=(_0x336732?_0x354797(_0x5da5e2,_0x27e2cc,_0x39f3ad):_0x354797(_0x39f3ad))||_0x39f3ad);return _0x336732&&_0x39f3ad&&Ci(_0x5da5e2,_0x27e2cc,_0x39f3ad),_0x39f3ad;},it=(_0x7d5d86,_0x2537dd)=>(_0x11fab1,_0x3ec091)=>_0x2537dd(_0x11fab1,_0x3ec091,_0x7d5d86);let Ae=class{constructor(_0x217001,_0x21ff64){const _0x4bdac5=_0x47025c;this['_configService']=_0x217001,this[_0x4bdac5(0x380)]=_0x21ff64;}async[_0x47025c(0x327)](_0x39f8ab,_0x2e1219){const _0x401d3f=_0x47025c;var _0x57e108;const {unitID:_0x4c0f63,type:_0x31aed0,revision:_0x5d9631=0x0}=_0x2e1219,_0x3f3772=this['_getSnapshotAPIPrefix']()+'/'+_0x31aed0+_0x401d3f(0x206)+_0x4c0f63+_0x401d3f(0x45f)+(_0x5d9631===0x1?0x0:_0x5d9631),_0x5ebc7e=(await this[_0x401d3f(0x380)][_0x401d3f(0x372)](_0x3f3772))[_0x401d3f(0x42c)],_0x3ef8ab=(_0x57e108=_0x5ebc7e[_0x401d3f(0x4ce)])==null?void 0x0:_0x57e108[_0x401d3f(0x3ab)];if(_0x3ef8ab){const _0x40ad5c=_0x3ef8ab==null?void 0x0:_0x3ef8ab['originalMeta'],_0xb8469e=a['textEncoder'][_0x401d3f(0x2c8)](a[_0x401d3f(0x52a)](_0x40ad5c));_0x3ef8ab[_0x401d3f(0x44f)]=_0xb8469e,Object[_0x401d3f(0x3d5)](_0x3ef8ab[_0x401d3f(0x302)])[_0x401d3f(0x4e0)](([,_0x3bd1e8])=>{const _0x12560f=_0x401d3f,_0x60f1f3=_0x3bd1e8['originalMeta'],_0x34f631=a[_0x12560f(0x339)][_0x12560f(0x2c8)](a[_0x12560f(0x52a)](_0x60f1f3));_0x3bd1e8[_0x12560f(0x44f)]=_0x34f631;});}return _0x5ebc7e;}async['getSheetBlock'](_0x4cac37,_0x15ccf9){const _0x44b50d=_0x47025c,{unitID:_0xb41004,type:_0x467932,blockID:_0x9a361b}=_0x15ccf9,_0xa34000=this[_0x44b50d(0x574)]()+'/'+_0x467932+_0x44b50d(0x206)+_0xb41004+'/block/'+_0x9a361b;return(await this[_0x44b50d(0x380)][_0x44b50d(0x372)](_0xa34000))[_0x44b50d(0x42c)];}async[_0x47025c(0x3c8)](_0x577113,_0x3d9cde){const _0x54efab=_0x47025c,{unitID:_0x50365d,type:_0x123660,from:_0x1fec40,to:_0x3677d5}=_0x3d9cde,_0x1f960c=this['_getAPIPrefix']()+'/'+_0x123660+_0x54efab(0x206)+_0x50365d+_0x54efab(0x31e)+_0x1fec40+_0x54efab(0x4d1)+_0x3677d5;return(await this[_0x54efab(0x380)][_0x54efab(0x372)](_0x1f960c))[_0x54efab(0x42c)];}[_0x47025c(0x358)](){const _0x4ca323=_0x47025c;var _0x250be8;return(_0x250be8=this['_configService'][_0x4ca323(0x501)](lt))!=null?_0x250be8:this[_0x4ca323(0x574)]();}['_getAPIPrefix'](){const _0x313dd2=_0x47025c;var _0x4b014d;return(_0x4b014d=this['_configService'][_0x313dd2(0x501)](ct))!=null?_0x4b014d:kt;}async[_0x47025c(0x568)](_0x3588ac,_0x1efc1a){const _0x2e6c8e=_0x47025c,_0x4629a8=_0x2e6c8e(0x3f0)+_0x1efc1a['type']+'/unit/'+_0x1efc1a[_0x2e6c8e(0x20e)]+_0x2e6c8e(0x26e);return(await this[_0x2e6c8e(0x380)][_0x2e6c8e(0x372)](_0x4629a8,{'params':{'resourceId':JSON['stringify'](_0x1efc1a['resourceIDs'])}}))['body'];}[_0x47025c(0x47d)](){throw new Error('This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!');}['saveSheetBlock'](){const _0x4422d5=_0x47025c;throw new Error(_0x4422d5(0x25c));}['saveChangeset'](){const _0x417a54=_0x47025c;throw new Error(_0x417a54(0x25c));}};Ae=Ti([it(0x0,a['IConfigService']),it(0x1,h[_0x47025c(0x36d)](L[_0x47025c(0x598)]))],Ae);var Ri=Object[_0x47025c(0x430)],Oi=Object[_0x47025c(0x348)],Di=(_0x52bea2,_0x3b0957,_0x499ac7,_0x59bc3a)=>{const _0x22aeb8=_0x47025c;for(var _0x4383b2=_0x59bc3a>0x1?void 0x0:_0x59bc3a?Oi(_0x3b0957,_0x499ac7):_0x3b0957,_0x661ac4=_0x52bea2[_0x22aeb8(0x2e3)]-0x1,_0x5167c3;_0x661ac4>=0x0;_0x661ac4--)(_0x5167c3=_0x52bea2[_0x661ac4])&&(_0x4383b2=(_0x59bc3a?_0x5167c3(_0x3b0957,_0x499ac7,_0x4383b2):_0x5167c3(_0x4383b2))||_0x4383b2);return _0x59bc3a&&_0x4383b2&&Ri(_0x3b0957,_0x499ac7,_0x4383b2),_0x4383b2;},ne=(_0x2a18b3,_0x119b46)=>(_0x42058c,_0x723671)=>_0x119b46(_0x42058c,_0x723671,_0x2a18b3);let je=class extends a[_0x47025c(0x527)]{constructor(_0x4fdd40,_0x436a79,_0x53cd2a,_0x382552,_0xa8cfe2){const _0x4e66a3=_0x47025c;super(_0x4fdd40,_0x436a79,_0x53cd2a),this[_0x4e66a3(0x42d)]=_0x382552,this[_0x4e66a3(0x4f9)]=_0xa8cfe2;}[_0x47025c(0x539)](_0x30bdbd,_0xd5844){const _0x217c03=_0x47025c,_0x31a92d=this[_0x217c03(0x30b)](_0x30bdbd);if(_0x31a92d)try{const _0x2ae696=this[_0x217c03(0x58c)](_0x31a92d,_0xd5844);this[_0x217c03(0x266)](_0x30bdbd,_0x2ae696);}catch(_0x5a5b0a){this[_0x217c03(0x4f9)]['error'](_0x217c03(0x44c),_0x5a5b0a),this['_clearUndo'](_0x30bdbd);}const _0x44a6b4=this['_getRedoStack'](_0x30bdbd);if(_0x44a6b4)try{const _0x21a6ee=this[_0x217c03(0x58c)](_0x44a6b4,_0xd5844);this['_substituteRedoStack'](_0x30bdbd,_0x21a6ee);}catch(_0xddf1c4){this['_logService'][_0x217c03(0x3ce)](_0xddf1c4),this[_0x217c03(0x2aa)](_0x30bdbd);}}[_0x47025c(0x363)](_0x350d6f){const _0x324941=_0x47025c,_0x2e57cb=this[_0x324941(0x30b)](_0x350d6f);_0x2e57cb&&(_0x2e57cb[_0x324941(0x2e3)]=0x0,this['_updateStatus']());}['_clearRedo'](_0x800219){const _0x5aa039=_0x47025c,_0x2c853d=this[_0x5aa039(0x502)](_0x800219);_0x2c853d&&(_0x2c853d[_0x5aa039(0x2e3)]=0x0,this[_0x5aa039(0x28c)]());}[_0x47025c(0x266)](_0x52c54b,_0xbd9d07){const _0x370ffe=_0x47025c;this[_0x370ffe(0x486)][_0x370ffe(0x279)](_0x52c54b,_0xbd9d07),this[_0x370ffe(0x28c)]();}[_0x47025c(0x4aa)](_0x126a8c,_0xc719ae){const _0x229db3=_0x47025c;this['_redoStacks']['set'](_0x126a8c,_0xc719ae),this[_0x229db3(0x28c)]();}[_0x47025c(0x58c)](_0x5e85e0,_0x5bb193){const _0x3ddaab=_0x47025c,_0x268d67=[];let _0x1a0ab3=_0x5bb193,_0x6b3861=_0x5bb193;for(let _0x358fef=_0x5e85e0[_0x3ddaab(0x2e3)]-0x1;_0x358fef>=0x0;_0x358fef--){const {unitID:_0x14d56b,undoMutations:_0x44669d,redoMutations:_0x23f254}=_0x5e85e0[_0x358fef],_0x1e054b=this[_0x3ddaab(0x42d)][_0x3ddaab(0x514)](_0x1a0ab3,_0x44669d),_0x1508ef=this['_transformService'][_0x3ddaab(0x514)](_0x6b3861,_0x23f254);if(u[_0x3ddaab(0x36c)](_0x1e054b)||u[_0x3ddaab(0x36c)](_0x1508ef)){this[_0x3ddaab(0x4f9)][_0x3ddaab(0x3ce)]('[CollaborationUndoRedoService]','transformStack\x20failed!',_0x1e054b,_0x1508ef);break;}_0x1a0ab3=_0x1e054b['c1Prime'],_0x6b3861=_0x1508ef[_0x3ddaab(0x3ae)],_0x268d67[_0x3ddaab(0x28b)]({'unitID':_0x14d56b,'undoMutations':_0x1e054b['m2Prime'],'redoMutations':_0x1508ef['m2Prime']});}return _0x268d67[_0x3ddaab(0x564)]();}};je=Di([ne(0x0,a['IUniverInstanceService']),ne(0x1,a[_0x47025c(0x38f)]),ne(0x2,a['IContextService']),ne(0x3,u[_0x47025c(0x31d)]),ne(0x4,a[_0x47025c(0x38a)])],je);class wt extends a[_0x47025c(0x3ff)]{constructor(){const _0x3f14ef=_0x47025c;super(),d(this,_0x3f14ef(0x31a)),this['urlChange$']=g[_0x3f14ef(0x25f)](window,_0x3f14ef(0x4eb))[_0x3f14ef(0x252)](g[_0x3f14ef(0x483)](this[_0x3f14ef(0x3f4)]),g[_0x3f14ef(0x274)](0x1),g['mapTo'](void 0x0));}[_0x47025c(0x2f1)](_0x222396,_0xc50fdf,_0x4d1434=!0x1){const _0x1d9e3a=_0x47025c,_0x3165df=new URL(window[_0x1d9e3a(0x3f1)][_0x1d9e3a(0x255)]);_0x3165df[_0x1d9e3a(0x392)][_0x1d9e3a(0x279)](_0x222396,_0xc50fdf),_0x4d1434?window['history'][_0x1d9e3a(0x214)]('','',_0x3165df[_0x1d9e3a(0x44a)]()):window['history']['pushState']('','',_0x3165df[_0x1d9e3a(0x44a)]());}[_0x47025c(0x49b)](_0x195e85,_0x24c763=!0x1){const _0x3f5848=_0x47025c,_0x2a4b6f=new URL(window[_0x3f5848(0x3f1)]['href']);_0x2a4b6f[_0x3f5848(0x392)][_0x3f5848(0x57c)](_0x195e85),_0x24c763?window[_0x3f5848(0x510)][_0x3f5848(0x214)]('','',_0x2a4b6f[_0x3f5848(0x44a)]()):window['history'][_0x3f5848(0x456)]('','',_0x2a4b6f[_0x3f5848(0x44a)]());}[_0x47025c(0x58b)](_0x5f2d1a){const _0x4fea49=_0x47025c;var _0x4a12cc;return(_0x4a12cc=new URL(window[_0x4fea49(0x3f1)][_0x4fea49(0x255)])['searchParams'][_0x4fea49(0x372)](_0x5f2d1a))!=null?_0x4a12cc:void 0x0;}}const we=_0x47025c(0x449),wi=_0x47025c(0x413),_e=0x6,Ui=1.5,Ue=0x4,Li=1.5,Pi=_0x47025c(0x27a);class yi{constructor(_0x52b8d8,_0x5dcbc9,_0x4dab2d,_0x558667){const _0x545aa6=_0x47025c;d(this,'_shapes',[]),d(this,_0x545aa6(0x3c5),null),d(this,_0x545aa6(0x417),null),d(this,_0x545aa6(0x259),null),d(this,_0x545aa6(0x516),null),d(this,'_eventUnsubscribe',null),(this['_cursor']=_0x52b8d8,this[_0x545aa6(0x34e)]=_0x5dcbc9,this['_docSkeleton']=_0x4dab2d,this['_document']=_0x558667,this[_0x545aa6(0x25b)]());}set[_0x47025c(0x587)](_0x48d50b){const _0x108aae=_0x47025c;_0x48d50b?(this['_anchorDot']&&this[_0x108aae(0x259)][_0x108aae(0x466)](),this['_textBubble']&&this['_textBubble'][_0x108aae(0x278)]()):(this[_0x108aae(0x259)]&&this['_anchorDot'][_0x108aae(0x278)](),this[_0x108aae(0x417)]&&this['_textBubble'][_0x108aae(0x466)]());}[_0x47025c(0x3d3)](){const _0x44510c=_0x47025c;for(const _0x174289 of this[_0x44510c(0x3e3)])_0x174289[_0x44510c(0x3d3)]();this[_0x44510c(0x417)]&&this['_textBubble']['dispose'](),this['_anchorDot']&&this['_anchorDot']['dispose'](),this[_0x44510c(0x3c5)]&&this[_0x44510c(0x3c5)][_0x44510c(0x3d3)](),this[_0x44510c(0x349)]&&this['_eventUnsubscribe']();}[_0x47025c(0x25b)](){const _0x37ae2f=_0x47025c,{_docSkeleton:_0xa391ca,_document:_0x150979}=this,{color:_0xa1e5fe,name:_0x1a77c1,ranges:_0xe18736}=this[_0x37ae2f(0x35d)],_0x20b154=_0x150979[_0x37ae2f(0x594)](),{docsLeft:_0x7d0c5a,docsTop:_0x487bb5}=_0x20b154,_0x42ec75=new R[(_0x37ae2f(0x485))](_0x20b154,_0xa391ca);for(const {startOffset:_0x6a1e6,endOffset:_0xbd5ad8,collapsed:_0x1b769e,isActive:_0x239e53}of _0xe18736){const _0x3daea7=_0xa391ca['findNodePositionByCharIndex'](_0x6a1e6),_0x3ee170=_0xa391ca['findNodePositionByCharIndex'](_0xbd5ad8);if(_0x239e53){const {contentBoxPointGroup:_0x230152}=_0x42ec75[_0x37ae2f(0x3bd)](_0x3ee170,_0x3ee170);if(_0x230152[_0x37ae2f(0x2e3)]===0x0)continue;this[_0x37ae2f(0x3a4)](_0xa1e5fe,_0x230152,_0x7d0c5a,_0x487bb5,_0x1a77c1),this['_eventUnsubscribe']=this[_0x37ae2f(0x24d)]();}if(!_0x1b769e){const {contentBoxPointGroup:_0x385e8a}=_0x42ec75[_0x37ae2f(0x3bd)](_0x3daea7,_0x3ee170);if(_0x385e8a[_0x37ae2f(0x2e3)]===0x0)continue;this[_0x37ae2f(0x204)](_0xa1e5fe,_0x385e8a,_0x7d0c5a,_0x487bb5);}}}[_0x47025c(0x3a4)](_0x39df3f,_0x1352be,_0x30fbc4,_0x39b8fc,_0x21cbf5){const _0x413243=_0x47025c,_0x36e04f=this[_0x413243(0x213)](_0x1352be),{left:_0x44bbfb,top:_0x488fc0,height:_0x251cad}=_0x36e04f,_0x5bcb77=this[_0x413243(0x39e)](),_0x585a35=Li/_0x5bcb77,_0x457195=new R[(_0x413243(0x592))](we+a[_0x413243(0x293)][_0x413243(0x44e)](_e),{'left':_0x44bbfb+_0x30fbc4-_0x585a35,'top':_0x488fc0+_0x39b8fc,'height':_0x251cad,'width':Ui,'fill':_0x39df3f||R[_0x413243(0x371)](a[_0x413243(0x382)][_0x413243(0x284)],0x0),'strokeWidth':_0x585a35,'stroke':Pi,'evented':!0x0});this[_0x413243(0x3c5)]=_0x457195,this[_0x413243(0x34e)][_0x413243(0x4b4)](_0x457195,R['TEXT_RANGE_LAYER_INDEX']);const _0x157976=new R[(_0x413243(0x592))](we+a[_0x413243(0x293)][_0x413243(0x44e)](_e),{'left':_0x44bbfb+_0x30fbc4-_0x585a35,'top':_0x488fc0+_0x39b8fc-Ue/0x2,'height':Ue,'width':Ue,'fill':_0x39df3f||R['getColor'](a['COLORS'][_0x413243(0x284)],0x0),'strokeWidth':0x0,'stroke':_0x39df3f||R[_0x413243(0x371)](a[_0x413243(0x382)]['black'],0x0),'evented':!0x1});this[_0x413243(0x259)]=_0x157976,this['_scene'][_0x413243(0x4b4)](_0x157976,R[_0x413243(0x23a)]);const _0x31516f=new Ce(we+a['Tools'][_0x413243(0x44e)](_e),{'left':_0x44bbfb+_0x30fbc4-_0x585a35,'top':_0x488fc0+_0x39b8fc-ce,'text':_0x21cbf5,'color':_0x39df3f});this['_textBubble']=_0x31516f,this[_0x413243(0x34e)][_0x413243(0x4b4)](_0x31516f,R[_0x413243(0x23a)]),this[_0x413243(0x587)]=!0x1;}[_0x47025c(0x24d)](){const _0x5efe72=_0x47025c,_0x4a6e96=this[_0x5efe72(0x3c5)][_0x5efe72(0x257)][_0x5efe72(0x3cb)](()=>{this['_hover']=!0x0;}),_0x488c84=this['_anchor']['onPointerLeave$']['subscribeEvent'](()=>{const _0x56cff6=_0x5efe72;this[_0x56cff6(0x516)]&&clearTimeout(this[_0x56cff6(0x516)]),this[_0x56cff6(0x516)]=setTimeout(()=>{this['_hover']=!0x1;},0x7d0);});return()=>{const _0x5d5160=_0x5efe72;_0x4a6e96[_0x5d5160(0x38d)](),_0x488c84[_0x5d5160(0x38d)]();};}[_0x47025c(0x204)](_0x282630,_0x38d152,_0x9ce316,_0x38043e){const _0x584d17=_0x47025c,_0x2734c2=new a['ColorKit'](_0x282630)[_0x584d17(0x3a3)](0.2)[_0x584d17(0x29c)](),_0x10de67=new R[(_0x584d17(0x313))](wi+a['Tools'][_0x584d17(0x44e)](_e),{'pointsGroup':_0x38d152,'fill':_0x2734c2||R[_0x584d17(0x371)](a[_0x584d17(0x382)]['black'],0.2),'left':_0x9ce316,'top':_0x38043e,'evented':!0x1,'debounceParentDirty':!0x1});this['_shapes'][_0x584d17(0x28b)](_0x10de67),this[_0x584d17(0x34e)]['addObject'](_0x10de67,R[_0x584d17(0x23a)]);}[_0x47025c(0x213)](_0x28516e){const _0xf2c7ed=_0x28516e[0x0],_0x4a85d0=_0xf2c7ed[0x0],_0x2b5296=_0xf2c7ed[0x2],{x:_0x452ee6,y:_0x3e7c90}=_0x4a85d0,{x:_0x3dc04f,y:_0x46b81c}=_0x2b5296;return{'left':_0x452ee6,'top':_0x3e7c90,'width':_0x3dc04f-_0x452ee6,'height':_0x46b81c-_0x3e7c90};}[_0x47025c(0x39e)](){const _0x2bbd2f=_0x47025c,{scaleX:_0x3a5fde,scaleY:_0x93c6ee}=this[_0x2bbd2f(0x34e)]['getAncestorScale']();return Math['max'](_0x3a5fde,_0x93c6ee);}}var Mi=Object['defineProperty'],Ni=Object[_0x47025c(0x348)],Ai=(_0x535140,_0x353b3a,_0xec26c6,_0x209f6e)=>{const _0x1dc32c=_0x47025c;for(var _0x2b4aad=_0x209f6e>0x1?void 0x0:_0x209f6e?Ni(_0x353b3a,_0xec26c6):_0x353b3a,_0x254447=_0x535140[_0x1dc32c(0x2e3)]-0x1,_0x472d07;_0x254447>=0x0;_0x254447--)(_0x472d07=_0x535140[_0x254447])&&(_0x2b4aad=(_0x209f6e?_0x472d07(_0x353b3a,_0xec26c6,_0x2b4aad):_0x472d07(_0x2b4aad))||_0x2b4aad);return _0x209f6e&&_0x2b4aad&&Mi(_0x353b3a,_0xec26c6,_0x2b4aad),_0x2b4aad;},re=(_0x5e0815,_0x16c7a4)=>(_0x24b458,_0x7e8296)=>_0x16c7a4(_0x24b458,_0x7e8296,_0x5e0815);let Se=class extends a[_0x47025c(0x3ff)]{constructor(_0x11c27d,_0x111c07,_0x560c83,_0x283dd,_0x1b38a9){const _0xa9d48=_0x47025c;super(),d(this,'_cursors',[]),(this[_0xa9d48(0x43e)]=_0x11c27d,this[_0xa9d48(0x507)]=_0x111c07,this['_renderManagerService']=_0x560c83,this['_docSkeletonManagerService']=_0x283dd,this[_0xa9d48(0x491)]=_0x1b38a9,this[_0xa9d48(0x308)]());}['_init'](){const _0x2f6a4a=_0x47025c;this[_0x2f6a4a(0x45d)][_0x2f6a4a(0x4ef)][_0x2f6a4a(0x252)](T[_0x2f6a4a(0x483)](this[_0x2f6a4a(0x3f4)]),T['switchMap'](_0x518938=>{const _0x96c5f3=_0x2f6a4a;if(_0x518938){const _0x3a963c=_0x518938['getViewModel']()['getDataModel']()[_0x96c5f3(0x518)]();return g[_0x96c5f3(0x519)](this['_collabCursorController'][_0x96c5f3(0x202)](_0x3a963c),this[_0x96c5f3(0x491)][_0x96c5f3(0x4a4)])[_0x96c5f3(0x252)](T[_0x96c5f3(0x2ab)](([_0x4fdf4d,_0x122653])=>({'skeleton':_0x518938,'cursors':[..._0x4fdf4d[_0x96c5f3(0x4d5)]()][_0x96c5f3(0x544)](_0x25550d=>({..._0x25550d,'color':_0x122653[_0x25550d[_0x96c5f3(0x4ea)]]}))})));}return g['of']({'skeleton':null,'cursors':[]});}))[_0x2f6a4a(0x588)](({skeleton:_0x1d1bd0,cursors:_0x3b2e68})=>{const _0x5a5c92=_0x2f6a4a;this[_0x5a5c92(0x30f)](),_0x1d1bd0&&this[_0x5a5c92(0x2d6)](_0x1d1bd0,_0x3b2e68);});}['_updateCollabCursors'](_0x40bfd6,_0x3f40c1){const _0x176c74=_0x47025c,_0x576f71=this[_0x176c74(0x306)]();if(_0x576f71==null)return;const {scene:_0x5bb62a,document:_0x209934}=_0x576f71,_0x417ada=_0x3f40c1[_0x176c74(0x2ab)](_0x29655a=>new yi(_0x29655a,_0x5bb62a,_0x40bfd6,_0x209934));this['_cursors']=_0x417ada;}[_0x47025c(0x30f)](){const _0x3cc73b=_0x47025c;this[_0x3cc73b(0x578)][_0x3cc73b(0x4e0)](_0x66e624=>_0x66e624[_0x3cc73b(0x3d3)]()),this[_0x3cc73b(0x578)]=[];}[_0x47025c(0x306)](){const _0x2be934=_0x47025c;return M[_0x2be934(0x4a8)](this[_0x2be934(0x507)],this[_0x2be934(0x560)]);}};Se=Ai([a[_0x47025c(0x21e)](a[_0x47025c(0x56d)][_0x47025c(0x2a3)],Se),re(0x0,h[_0x47025c(0x36d)](J)),re(0x1,a[_0x47025c(0x4d6)]),re(0x2,R['IRenderManagerService']),re(0x3,h['Inject'](M['DocSkeletonManagerService'])),re(0x4,h[_0x47025c(0x36d)](a[_0x47025c(0x1f8)]))],Se);var ji=Object[_0x47025c(0x430)],$i=Object[_0x47025c(0x348)],Hi=(_0x23a1b8,_0xdc3b94,_0x47e3f7,_0x531497)=>{const _0x15d5a0=_0x47025c;for(var _0x4b99b5=_0x531497>0x1?void 0x0:_0x531497?$i(_0xdc3b94,_0x47e3f7):_0xdc3b94,_0x193ef7=_0x23a1b8[_0x15d5a0(0x2e3)]-0x1,_0x384b3a;_0x193ef7>=0x0;_0x193ef7--)(_0x384b3a=_0x23a1b8[_0x193ef7])&&(_0x4b99b5=(_0x531497?_0x384b3a(_0xdc3b94,_0x47e3f7,_0x4b99b5):_0x384b3a(_0x4b99b5))||_0x4b99b5);return _0x531497&&_0x4b99b5&&ji(_0xdc3b94,_0x47e3f7,_0x4b99b5),_0x4b99b5;},Le=(_0x22d3b5,_0x423acd)=>(_0x5ca9db,_0xbe0f1b)=>_0x423acd(_0x5ca9db,_0xbe0f1b,_0x22d3b5);let Ie=class{constructor(_0x1ef114,_0x5d7fc8,_0x435bd6){const _0xa7ac42=_0x47025c;this['_configService']=_0x1ef114,this[_0xa7ac42(0x380)]=_0x5d7fc8,this[_0xa7ac42(0x1ec)]=_0x435bd6,this['init']();}[_0x47025c(0x481)](){const _0x5a03e9=_0x47025c;this[_0x5a03e9(0x380)][_0x5a03e9(0x253)]({'priority':0x1,'interceptor':(_0x21522a,_0x2207be)=>_0x2207be(_0x21522a)[_0x5a03e9(0x252)](g['concatMap'](async _0x19666f=>{const _0x532500=_0x5a03e9,_0x257885=_0x19666f;if(_0x257885['status']===0x191&&window[_0x532500(0x414)](this['localeService']['t'](_0x532500(0x446)))){const _0x495e08=window[_0x532500(0x4a3)](window['location']['href']);window[_0x532500(0x3f1)][_0x532500(0x255)]=this[_0x532500(0x2dd)]()+_0x532500(0x292)+_0x495e08;}return _0x257885;}))});}[_0x47025c(0x2dd)](){const _0x235762=_0x47025c;var _0x47bb2e;return(_0x47bb2e=this[_0x235762(0x328)][_0x235762(0x501)](gt))!=null?_0x47bb2e:zt;}};Ie=Hi([Le(0x0,a[_0x47025c(0x478)]),Le(0x1,h[_0x47025c(0x36d)](L[_0x47025c(0x598)])),Le(0x2,h[_0x47025c(0x36d)](a[_0x47025c(0x3f8)]))],Ie);var xi=Object['defineProperty'],ki=Object[_0x47025c(0x348)],Bi=(_0x138313,_0x394e08,_0x539496,_0x526723)=>{const _0x45cf73=_0x47025c;for(var _0x402bdf=_0x526723>0x1?void 0x0:_0x526723?ki(_0x394e08,_0x539496):_0x394e08,_0x2ce422=_0x138313[_0x45cf73(0x2e3)]-0x1,_0x399c5a;_0x2ce422>=0x0;_0x2ce422--)(_0x399c5a=_0x138313[_0x2ce422])&&(_0x402bdf=(_0x526723?_0x399c5a(_0x394e08,_0x539496,_0x402bdf):_0x399c5a(_0x402bdf))||_0x402bdf);return _0x526723&&_0x402bdf&&xi(_0x394e08,_0x539496,_0x402bdf),_0x402bdf;},nt=(_0x1a1716,_0x30f420)=>(_0x10a496,_0x207784)=>_0x30f420(_0x10a496,_0x207784,_0x1a1716);const Ut=_0x47025c(0x401),Fi=_0x47025c(0x2fe);exports[_0x47025c(0x275)]=class{constructor(_0x15b6d5,_0x3d1f2f){const _0x5412a8=_0x47025c;this['_HTTPService']=_0x15b6d5,this[_0x5412a8(0x328)]=_0x3d1f2f;}[_0x47025c(0x2bd)](){const _0x2359b5=_0x47025c;var _0x3a5a86;return(_0x3a5a86=this['_configService'][_0x2359b5(0x501)](Ut))!=null?_0x3a5a86:Fi;}async[_0x47025c(0x342)](_0x5b4119){const _0x4d74e4=_0x47025c,_0x3e1d15=this[_0x4d74e4(0x2bd)]()+'/'+_0x5b4119[_0x4d74e4(0x1ee)]+'/object';return(await this[_0x4d74e4(0x55a)][_0x4d74e4(0x237)](_0x3e1d15,{'body':_0x5b4119}))[_0x4d74e4(0x42c)][_0x4d74e4(0x366)]||'';}async[_0x47025c(0x2b8)](_0x56d8b0){const _0xa5b9fd=_0x47025c,_0x4e12c0=this[_0xa5b9fd(0x2bd)]()+_0xa5b9fd(0x2c9);return(await this[_0xa5b9fd(0x55a)]['post'](_0x4e12c0,{'body':_0x56d8b0}))[_0xa5b9fd(0x42c)][_0xa5b9fd(0x338)];}async[_0x47025c(0x33e)](_0x15f99f){const _0x2acbec=_0x47025c,_0x5c57e3=this[_0x2acbec(0x2bd)]()+'/'+_0x15f99f['objectType']+_0x2acbec(0x269)+_0x15f99f[_0x2acbec(0x366)];await this[_0x2acbec(0x55a)][_0x2acbec(0x4a6)](_0x5c57e3,{'body':_0x15f99f});}async[_0x47025c(0x261)](_0x546c10){const _0x2f5aa6=_0x47025c,_0x4d5616=this[_0x2f5aa6(0x2bd)]()+'/'+_0x546c10[_0x2f5aa6(0x1ee)]+'/object/'+_0x546c10[_0x2f5aa6(0x366)]+_0x2f5aa6(0x28e);return(await this[_0x2f5aa6(0x55a)][_0x2f5aa6(0x237)](_0x4d5616,{'body':_0x546c10}))[_0x2f5aa6(0x42c)][_0x2f5aa6(0x20c)];}async[_0x47025c(0x59b)](_0x5c2f34){const _0x469191=_0x47025c,_0x58a22f=this[_0x469191(0x2bd)]()+_0x469191(0x58f);return(await this[_0x469191(0x55a)]['post'](_0x58a22f,{'body':{'requests':_0x5c2f34}}))['body'][_0x469191(0x352)];}async['listRoles'](_0x2fd07e){const _0x43b709=_0x47025c,_0x333863=this[_0x43b709(0x2bd)]()+'/'+_0x2fd07e[_0x43b709(0x1ee)]+_0x43b709(0x2b2),_0x3aa80e=await this[_0x43b709(0x55a)][_0x43b709(0x237)](_0x333863,{'body':_0x2fd07e});return{'roles':_0x3aa80e[_0x43b709(0x42c)][_0x43b709(0x4d4)],'actions':_0x3aa80e[_0x43b709(0x42c)][_0x43b709(0x20c)]};}async[_0x47025c(0x21f)](_0x4dff05){const _0x16b5ca=_0x47025c,_0x420baf=this[_0x16b5ca(0x2bd)]()+_0x16b5ca(0x4b0);await this[_0x16b5ca(0x55a)]['delete'](_0x420baf,{'params':{'collaboratorID':_0x4dff05[_0x16b5ca(0x500)],'objectID':_0x4dff05['objectID'],'unitID':_0x4dff05[_0x16b5ca(0x20e)]}});}async[_0x47025c(0x340)](_0x5e7234){const _0x345f9b=_0x47025c,_0x50c551=this[_0x345f9b(0x2bd)]()+_0x345f9b(0x4b0);await this['_HTTPService'][_0x345f9b(0x217)](_0x50c551,{'body':_0x5e7234});}async[_0x47025c(0x3f2)](_0x31347e){const _0x6add2e=_0x47025c,_0x5c648e=this[_0x6add2e(0x2bd)]()+_0x6add2e(0x4b0);await this['_HTTPService'][_0x6add2e(0x237)](_0x5c648e,{'body':_0x31347e});}async[_0x47025c(0x318)](_0x353e33){const _0x39976e=_0x47025c,_0x376812=this[_0x39976e(0x2bd)]()+_0x39976e(0x4b0);return(await this[_0x39976e(0x55a)]['get'](_0x376812,{'params':{'objectID':_0x353e33['objectID'],'unitID':_0x353e33[_0x39976e(0x20e)]}}))[_0x39976e(0x42c)][_0x39976e(0x3de)];}async[_0x47025c(0x207)](_0x5a54bb){const _0x2ece80=_0x47025c,_0x59a768=this[_0x2ece80(0x2bd)]()+_0x2ece80(0x4b0);await this[_0x2ece80(0x55a)][_0x2ece80(0x4a6)](_0x59a768,{'body':_0x5a54bb});}},exports[_0x47025c(0x275)]=Bi([nt(0x0,h[_0x47025c(0x36d)](L['HTTPService'])),nt(0x1,h[_0x47025c(0x36d)](a[_0x47025c(0x478)]))],exports[_0x47025c(0x275)]);var Vi=Object[_0x47025c(0x430)],Wi=Object[_0x47025c(0x348)],Gi=(_0x303d70,_0xb92f0,_0x1f9b91,_0x27fdaf)=>{const _0x2fbff5=_0x47025c;for(var _0x4dbdb5=_0x27fdaf>0x1?void 0x0:_0x27fdaf?Wi(_0xb92f0,_0x1f9b91):_0xb92f0,_0x532c47=_0x303d70[_0x2fbff5(0x2e3)]-0x1,_0x316214;_0x532c47>=0x0;_0x532c47--)(_0x316214=_0x303d70[_0x532c47])&&(_0x4dbdb5=(_0x27fdaf?_0x316214(_0xb92f0,_0x1f9b91,_0x4dbdb5):_0x316214(_0x4dbdb5))||_0x4dbdb5);return _0x27fdaf&&_0x4dbdb5&&Vi(_0xb92f0,_0x1f9b91,_0x4dbdb5),_0x4dbdb5;},rt=(_0x553dee,_0x507500)=>(_0x55e29d,_0x256af9)=>_0x507500(_0x55e29d,_0x256af9,_0x553dee);const Yi=[_0x47025c(0x4db),_0x47025c(0x383),'image/jpg',_0x47025c(0x596),_0x47025c(0x3b5)],Ki=0x5*0x400*0x400,Xi=_0x47025c(0x3bf),qi=_0x47025c(0x2f9),zi=_0x47025c(0x369),Ji=_0x47025c(0x3cc);let $e=class{constructor(_0x47dac0,_0x22306e){const _0xaba454=_0x47025c;d(this,'_waitCount',0x0),d(this,_0xaba454(0x244),new g[(_0xaba454(0x569))]()),d(this,'change$',this[_0xaba454(0x244)]),d(this,_0xaba454(0x541),new Map()),(this[_0xaba454(0x380)]=_0x47dac0,this[_0xaba454(0x328)]=_0x22306e);}[_0x47025c(0x4b2)](_0x151636){const _0x378c69=_0x47025c;this[_0x378c69(0x233)]=_0x151636,this[_0x378c69(0x244)][_0x378c69(0x361)](_0x151636);}['getImageSourceCache'](_0x24ccce,_0x483dff){const _0xaebb75=_0x47025c;if(_0x483dff===A['ImageSourceType']['BASE64']){const _0x404f0a=new Image();return _0x404f0a[_0xaebb75(0x322)]=_0x24ccce,_0x404f0a;}return this[_0xaebb75(0x541)][_0xaebb75(0x372)](_0x24ccce);}['addImageSourceCache'](_0x25ee22,_0x36f2aa,_0x80a968){const _0x48168c=_0x47025c;_0x36f2aa===A[_0x48168c(0x200)][_0x48168c(0x384)]||_0x80a968==null||this['_imageSourceCache']['set'](_0x25ee22,_0x80a968);}async[_0x47025c(0x51b)](_0x15d5e8){const _0x58cfb5=_0x47025c;try{const _0xd1e259=this[_0x58cfb5(0x317)](this['_getSignURL'](),''+_0x15d5e8),_0x4ee595=(await this[_0x58cfb5(0x380)][_0x58cfb5(0x372)](_0xd1e259))['body'];return _0x4ee595[_0x58cfb5(0x3ce)]&&_0x4ee595['error']['code']===ft['OK']?Promise[_0x58cfb5(0x2f3)](_0x4ee595['url']):Promise[_0x58cfb5(0x353)](_0x4ee595[_0x58cfb5(0x3ce)]);}catch(_0x214a4d){return Promise[_0x58cfb5(0x353)](_0x214a4d);}}async[_0x47025c(0x55e)](_0x5bb9a4){const _0xff8209=_0x47025c;let _0x363de5='';if(!Yi[_0xff8209(0x465)](_0x5bb9a4[_0xff8209(0x53b)]))return this['_decreaseWaiting'](),Promise[_0xff8209(0x353)](new Error(A[_0xff8209(0x41e)]['ERROR_IMAGE_TYPE']));if(_0x5bb9a4[_0xff8209(0x48b)]>Ki)return this['_decreaseWaiting'](),Promise[_0xff8209(0x353)](new Error(A[_0xff8209(0x41e)][_0xff8209(0x410)]));try{const _0x9d27f8=new FormData();_0x9d27f8[_0xff8209(0x2ef)]('file',_0x5bb9a4);const _0x3c3730=this[_0xff8209(0x570)]()+_0xff8209(0x580)+_0x5bb9a4[_0xff8209(0x48b)][_0xff8209(0x44a)](),_0x1a0774=await(await fetch(_0x3c3730,{'method':'POST','body':_0x9d27f8}))[_0xff8209(0x498)]();if(typeof _0x1a0774[_0xff8209(0x434)]!='string')return this[_0xff8209(0x3fe)](),Promise[_0xff8209(0x353)](new Error(A['ImageUploadStatusType'][_0xff8209(0x265)]));_0x363de5=_0x1a0774[_0xff8209(0x434)];}catch{return this['_decreaseWaiting'](),Promise[_0xff8209(0x353)](new Error(A['ImageUploadStatusType'][_0xff8209(0x265)]));}return new Promise((_0x1279bf,_0x1ad7b6)=>{const _0xc7cdd7=_0xff8209,_0x1efe51=new FileReader();_0x1efe51[_0xc7cdd7(0x3b4)](_0x5bb9a4),_0x1efe51['onload']=_0x3e493e=>{const _0x362bfd=_0xc7cdd7;var _0x33f9d6;const _0x48ec69=(_0x33f9d6=_0x3e493e[_0x362bfd(0x3b8)])==null?void 0x0:_0x33f9d6[_0x362bfd(0x559)];if(_0x48ec69==null){this['_decreaseWaiting'](),_0x1ad7b6(new Error(A[_0x362bfd(0x41e)][_0x362bfd(0x265)]));return;}const _0xefcd9c=a['Tools'][_0x362bfd(0x44e)](0x6);_0x1279bf({'imageId':_0xefcd9c,'imageSourceType':A[_0x362bfd(0x200)]['UUID'],'source':_0x363de5,'base64Cache':_0x48ec69,'status':A[_0x362bfd(0x41e)][_0x362bfd(0x22f)]}),this[_0x362bfd(0x3fe)]();};});}[_0x47025c(0x570)](){const _0x49f46f=_0x47025c;var _0x2690c5;return(_0x2690c5=this['_configService'][_0x49f46f(0x501)](Xi))!=null?_0x2690c5:qi;}[_0x47025c(0x533)](){var _0x57824c;return(_0x57824c=this['_configService']['getConfig'](zi))!=null?_0x57824c:Ji;}['_replaceFileID'](_0x29860a,_0x515246){const _0x21729d=_0x47025c;return _0x29860a[_0x21729d(0x211)](_0x21729d(0x57d),_0x515246);}[_0x47025c(0x3fe)](){const _0x1fd724=_0x47025c;this[_0x1fd724(0x233)]-=0x1,this[_0x1fd724(0x244)][_0x1fd724(0x361)](this[_0x1fd724(0x233)]);}};$e=Gi([rt(0x0,h[_0x47025c(0x36d)](L[_0x47025c(0x598)])),rt(0x1,a[_0x47025c(0x478)])],$e);var Lt=Object[_0x47025c(0x430)],Zi=Object['getOwnPropertyDescriptor'],Qi=(_0x52a3fb,_0x1c7f6e,_0x2feeb0)=>_0x1c7f6e in _0x52a3fb?Lt(_0x52a3fb,_0x1c7f6e,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x2feeb0}):_0x52a3fb[_0x1c7f6e]=_0x2feeb0,en=(_0x29f319,_0x2129bc,_0x5c8831,_0x16a3f9)=>{const _0xdb4b0d=_0x47025c;for(var _0x4d87f5=_0x16a3f9>0x1?void 0x0:_0x16a3f9?Zi(_0x2129bc,_0x5c8831):_0x2129bc,_0x2509e9=_0x29f319[_0xdb4b0d(0x2e3)]-0x1,_0x2abf8b;_0x2509e9>=0x0;_0x2509e9--)(_0x2abf8b=_0x29f319[_0x2509e9])&&(_0x4d87f5=(_0x16a3f9?_0x2abf8b(_0x2129bc,_0x5c8831,_0x4d87f5):_0x2abf8b(_0x4d87f5))||_0x4d87f5);return _0x16a3f9&&_0x4d87f5&&Lt(_0x2129bc,_0x5c8831,_0x4d87f5),_0x4d87f5;},ot=(_0x2b3ef6,_0x34be9e)=>(_0x303030,_0x3a62e5)=>_0x34be9e(_0x303030,_0x3a62e5,_0x2b3ef6),tn=(_0x4a4922,_0x5d6307,_0x25039a)=>Qi(_0x4a4922,_0x5d6307+'',_0x25039a);const sn=_0x47025c(0x566);exports[_0x47025c(0x27e)]=class extends a[_0x47025c(0x223)]{constructor(_0x4b0dcc,_0x8e4801,_0x2d9821){const _0x3fc150=_0x47025c;super(),this[_0x3fc150(0x4de)]=_0x4b0dcc,this[_0x3fc150(0x4f9)]=_0x8e4801,this[_0x3fc150(0x2af)]=_0x2d9821;}['onStarting'](_0x2dcabf){const _0x33867c=_0x47025c;var _0x38d230,_0x2cafc6,_0x4bcbed,_0x333ccb,_0x1b4874;_0x2dcabf[_0x33867c(0x49e)](a[_0x33867c(0x447)])&&this['_logService'][_0x33867c(0x3ce)](_0x33867c(0x45a),'you\x20should\x20override\x20\x22IUndoRedoService\x22\x20provided\x20in\x20\x22core\x22\x20package!');let _0x22fd36=[[a[_0x33867c(0x447)],{'useClass':je}],[exports[_0x33867c(0x2ad)]],[Ve],[L[_0x33867c(0x598)]],[Ge,{'useClass':wt}],[G],[exports[_0x33867c(0x1f5)]],[L[_0x33867c(0x307)]],[fe],[ge],[ve],[Fe],[Ie],[Be,{'useClass':(_0x2cafc6=(_0x38d230=this['_config'])==null?void 0x0:_0x38d230['socketService'])!=null?_0x2cafc6:exports[_0x33867c(0x2be)]}],[L['IHTTPImplementation'],{'useClass':L['XHRHTTPImplementation']}],[a[_0x33867c(0x311)],{'useClass':Ae}],[a['IAuthzIoService'],{'useClass':exports[_0x33867c(0x275)]}],[A[_0x33867c(0x3aa)],{'useClass':$e}],[exports['CollaborationController']],[exports[_0x33867c(0x495)]],[exports[_0x33867c(0x2ca)]],[de],[J]];(_0x4bcbed=this[_0x33867c(0x4de)])!=null&&_0x4bcbed['enableSingleActiveInstanceLock']&&_0x22fd36['push']([pe,{'useClass':hs}]),((_0x333ccb=this[_0x33867c(0x4de)])==null?void 0x0:_0x333ccb['collaborationUniverTypes'])==null||this[_0x33867c(0x4de)][_0x33867c(0x44d)][_0x33867c(0x465)](a[_0x33867c(0x3fb)][_0x33867c(0x379)])?_0x22fd36[_0x33867c(0x28b)]([ue]):this[_0x33867c(0x4de)][_0x33867c(0x44d)][_0x33867c(0x465)](a[_0x33867c(0x3fb)][_0x33867c(0x324)])&&_0x22fd36['push']([Se]),_0x22fd36=a[_0x33867c(0x426)](_0x22fd36,(_0x1b4874=this[_0x33867c(0x4de)])==null?void 0x0:_0x1b4874['override']),_0x22fd36[_0x33867c(0x4e0)](_0x54365a=>_0x2dcabf[_0x33867c(0x563)](_0x54365a)),_0x2dcabf['get'](L[_0x33867c(0x598)])[_0x33867c(0x253)]({'priority':0x14,'interceptor':L[_0x33867c(0x3be)]({'maxParallel':0x6})}),this[_0x33867c(0x365)]();}['_initModules'](){const _0x594fc5=_0x47025c;var _0x427ec1,_0x1dc6b8;(_0x427ec1=this['_config'])!=null&&_0x427ec1[_0x594fc5(0x3eb)]||this['_injector'][_0x594fc5(0x372)](exports['LocalCacheService'])[_0x594fc5(0x288)](),(_0x1dc6b8=this[_0x594fc5(0x4de)])!=null&&_0x1dc6b8['enableAuthServer']&&this['_injector'][_0x594fc5(0x372)](Ie);}},tn(exports[_0x47025c(0x27e)],_0x47025c(0x4cd),sn),exports[_0x47025c(0x27e)]=en([a[_0x47025c(0x304)](u[_0x47025c(0x1f3)]),ot(0x1,a[_0x47025c(0x38a)]),ot(0x2,h[_0x47025c(0x36d)](h['Injector']))],exports[_0x47025c(0x27e)]),exports['AUTHZ_URL_KEY']=Ut,exports[_0x47025c(0x256)]=vt,exports[_0x47025c(0x23c)]=_t,exports['CollaborationStatus']=w,exports[_0x47025c(0x448)]=Dt,exports[_0x47025c(0x4f1)]=ut,exports['HEARTBEAT_TIMEOUT_KEY']=xe,exports[_0x47025c(0x4fb)]=Be,exports['IURLService']=Ge,exports[_0x47025c(0x41f)]=St,exports[_0x47025c(0x51c)]=gt,exports[_0x47025c(0x2ea)]=ht,exports['SNAPSHOT_SERVER_URL_KEY']=ct,exports['SNAPSHOT_URL_KEY']=lt,exports[_0x47025c(0x4f3)]=W,exports[_0x47025c(0x55d)]=wt,exports[_0x47025c(0x26b)]=mt,exports[_0x47025c(0x573)]=It;
|