@univerjs-pro/collaboration-client 0.2.2 → 0.2.3
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 +1 -1
- package/lib/es/index.js +1 -1
- package/lib/locale/en-US.json +2 -1
- package/lib/locale/ru-RU.json +2 -1
- package/lib/locale/vi-VN.json +33 -0
- package/lib/locale/zh-CN.json +2 -1
- package/lib/locale/zh-TW.json +33 -0
- package/lib/types/locale/vi-VN.d.ts +4 -0
- package/lib/types/locale/zh-CN.d.ts +1 -0
- package/lib/types/locale/zh-TW.d.ts +4 -0
- package/lib/types/services/permission/permission.service.d.ts +14 -0
- package/lib/types/services/range-selection/sheet-transform-selections.service.d.ts +4 -0
- package/lib/umd/index.js +1 -1
- package/package.json +27 -27
package/lib/cjs/index.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
'use strict';const _0x29b95d=_0x3518;(function(_0x4cd708,_0xcfb0c8){const _0x46bed4=_0x3518,_0x3fcc44=_0x4cd708();while(!![]){try{const _0x7ccba8=parseInt(_0x46bed4(0x435))/0x1*(-parseInt(_0x46bed4(0x526))/0x2)+-parseInt(_0x46bed4(0x412))/0x3*(parseInt(_0x46bed4(0x1ef))/0x4)+parseInt(_0x46bed4(0x3c2))/0x5+parseInt(_0x46bed4(0x1c7))/0x6*(parseInt(_0x46bed4(0x370))/0x7)+-parseInt(_0x46bed4(0x1cc))/0x8*(parseInt(_0x46bed4(0x296))/0x9)+parseInt(_0x46bed4(0x29f))/0xa+parseInt(_0x46bed4(0x4bf))/0xb*(parseInt(_0x46bed4(0x364))/0xc);if(_0x7ccba8===_0xcfb0c8)break;else _0x3fcc44['push'](_0x3fcc44['shift']());}catch(_0x1c0dcc){_0x3fcc44['push'](_0x3fcc44['shift']());}}}(_0x371b,0xbb1b3));var $t=Object[_0x29b95d(0x2f8)],Ht=(_0x351fbb,_0x2d5b97,_0x27ce9f)=>_0x2d5b97 in _0x351fbb?$t(_0x351fbb,_0x2d5b97,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x27ce9f}):_0x351fbb[_0x2d5b97]=_0x27ce9f,d=(_0x300720,_0x4dae1a,_0x18b209)=>Ht(_0x300720,typeof _0x4dae1a!=_0x29b95d(0x3f9)?_0x4dae1a+'':_0x4dae1a,_0x18b209);Object['defineProperty'](exports,Symbol[_0x29b95d(0x35f)],{'value':'Module'});const a=require(_0x29b95d(0x1d1)),E=require(_0x29b95d(0x52f)),oe=require(_0x29b95d(0x410)),N=require(_0x29b95d(0x379)),u=require('@univerjs-pro/collaboration'),h=require('@wendellhu/redi'),g=require(_0x29b95d(0x3b5)),T=require(_0x29b95d(0x1e2)),y=require(_0x29b95d(0x23a)),P=require(_0x29b95d(0x475)),A=require(_0x29b95d(0x554)),Ke=require(_0x29b95d(0x2c6)),He=require(_0x29b95d(0x3e4)),R=require(_0x29b95d(0x447)),ee=require(_0x29b95d(0x536)),ct=require(_0x29b95d(0x52e)),L=require(_0x29b95d(0x206)),xt=require(_0x29b95d(0x262)),kt=require(_0x29b95d(0x2d8)),lt=_0x29b95d(0x40b),Bt=_0x29b95d(0x26c),ht='SNAPSHOT_URL_KEY',_t='SEND_CHANGESET_TIMEOUT',Ft=0x7d0,ut=_0x29b95d(0x43a),Vt=_0x29b95d(0x394),dt=_0x29b95d(0x355),Wt=0x7530,xe='HEARTBEAT_TIMEOUT',St=0x2710,Gt=_0x29b95d(0x559),Yt=0x4e20,Kt=_0x29b95d(0x2fb),Xt=0x3,vt=_0x29b95d(0x3e5),qt=0x3e8,gt='COLLAB_SUBMIT_CHANGESET_URL',zt=_0x29b95d(0x24e),ft=_0x29b95d(0x452),Jt='/universer-api/oidc/authpage';var mt=(_0x5304bd=>(_0x5304bd[_0x5304bd['UNDEFINED']=0x0]=_0x29b95d(0x453),_0x5304bd[_0x5304bd['OK']=0x1]='OK',_0x5304bd[_0x5304bd[_0x29b95d(0x368)]=0x2]='INTERNAL_ERROR',_0x5304bd[_0x5304bd['PERMISSION_DENIED']=0x3]=_0x29b95d(0x349),_0x5304bd[_0x5304bd['NOT_FOUND']=0x4]=_0x29b95d(0x398),_0x5304bd[_0x5304bd[_0x29b95d(0x30e)]=0x5]=_0x29b95d(0x30e),_0x5304bd[_0x5304bd['ALREADY_EXISTS']=0x6]=_0x29b95d(0x3ab),_0x5304bd[_0x5304bd[_0x29b95d(0x4c2)]=0x7]=_0x29b95d(0x4c2),_0x5304bd[_0x5304bd[_0x29b95d(0x4b9)]=0x8]='TOO_MANY_REQUESTS',_0x5304bd[_0x5304bd[_0x29b95d(0x425)]=0x9]=_0x29b95d(0x425),_0x5304bd[_0x5304bd[_0x29b95d(0x2c2)]=0x1389]=_0x29b95d(0x2c2),_0x5304bd[_0x5304bd[_0x29b95d(0x1d0)]=0x1771]=_0x29b95d(0x1d0),_0x5304bd[_0x5304bd[_0x29b95d(0x4a6)]=0x1772]=_0x29b95d(0x4a6),_0x5304bd[_0x5304bd[_0x29b95d(0x491)]=0x1b59]='APPLY_REJECT',_0x5304bd[_0x5304bd['APPLY_NON_SEQUENTIAL_REVISION']=0x1b5a]='APPLY_NON_SEQUENTIAL_REVISION',_0x5304bd[_0x5304bd[_0x29b95d(0x54b)]=0x1b5b]='APPLY_REVISION_CONFILICT',_0x5304bd[_0x5304bd['APPLY_PERMISSION_DENIED']=0x1b5c]=_0x29b95d(0x3e0),_0x5304bd[_0x5304bd[_0x29b95d(0x4c4)]=0x1f41]=_0x29b95d(0x4c4),_0x5304bd[_0x5304bd['LICENSE_MAX_UNITS_EXCEEDED']=0x2329]='LICENSE_MAX_UNITS_EXCEEDED',_0x5304bd[_0x5304bd[_0x29b95d(0x2f3)]=0x232a]=_0x29b95d(0x2f3),_0x5304bd[_0x5304bd['LICENSE_IMPORT_SIZE_EXCEEDED']=0x232b]=_0x29b95d(0x2f4),_0x5304bd[_0x5304bd[_0x29b95d(0x343)]=0x232c]=_0x29b95d(0x343),_0x5304bd[_0x5304bd[_0x29b95d(0x2e7)]=0x232d]=_0x29b95d(0x2e7),_0x5304bd[_0x5304bd[_0x29b95d(0x381)]=0x2711]=_0x29b95d(0x381),_0x5304bd[_0x5304bd[_0x29b95d(0x39c)]=0x2712]='YUUMI_URL_COL_OUT_OF_RANGE',_0x5304bd[_0x5304bd[_0x29b95d(0x3c4)]=-0x1]='UNRECOGNIZED',_0x5304bd))(mt||{}),j=(_0x1b8dc0=>(_0x1b8dc0[_0x1b8dc0[_0x29b95d(0x212)]=0x0]='UNIVER_UNKNOWN',_0x1b8dc0[_0x1b8dc0['UNIVER_DOC']=0x1]=_0x29b95d(0x2a2),_0x1b8dc0[_0x1b8dc0[_0x29b95d(0x272)]=0x2]=_0x29b95d(0x272),_0x1b8dc0[_0x1b8dc0[_0x29b95d(0x257)]=0x3]='UNIVER_SLIDE',_0x1b8dc0[_0x1b8dc0[_0x29b95d(0x3c4)]=-0x1]=_0x29b95d(0x3c4),_0x1b8dc0))(j||{}),b=(_0x1a2084=>(_0x1a2084[_0x1a2084[_0x29b95d(0x2fc)]=0x0]=_0x29b95d(0x2fc),_0x1a2084[_0x1a2084[_0x29b95d(0x3f6)]=0x1]=_0x29b95d(0x3f6),_0x1a2084[_0x1a2084[_0x29b95d(0x3eb)]=0x2]=_0x29b95d(0x3eb),_0x1a2084[_0x1a2084['LEAVE']=0x3]=_0x29b95d(0x34b),_0x1a2084[_0x1a2084[_0x29b95d(0x567)]=0x4]=_0x29b95d(0x567),_0x1a2084[_0x1a2084['HEARTBEAT']=0x5]=_0x29b95d(0x223),_0x1a2084[_0x1a2084['RECV']=0x6]='RECV',_0x1a2084[_0x1a2084[_0x29b95d(0x3c4)]=-0x1]=_0x29b95d(0x3c4),_0x1a2084))(b||{}),ke=(_0x570054=>(_0x570054[_0x570054['UNKNOWN_CODE']=0x0]=_0x29b95d(0x3b4),_0x570054[_0x570054['OK']=0x1]='OK',_0x570054[_0x570054[_0x29b95d(0x22d)]=0x2]='FAIL',_0x570054[_0x570054[_0x29b95d(0x3c4)]=-0x1]=_0x29b95d(0x3c4),_0x570054))(ke||{}),Zt=Object[_0x29b95d(0x2f8)],Qt=Object[_0x29b95d(0x516)],es=(_0x425a4f,_0x242794,_0x18697a,_0x31b72c)=>{for(var _0x2e2b8a=_0x31b72c>0x1?void 0x0:_0x31b72c?Qt(_0x242794,_0x18697a):_0x242794,_0x4581ec=_0x425a4f['length']-0x1,_0x374d8d;_0x4581ec>=0x0;_0x4581ec--)(_0x374d8d=_0x425a4f[_0x4581ec])&&(_0x2e2b8a=(_0x31b72c?_0x374d8d(_0x242794,_0x18697a,_0x2e2b8a):_0x374d8d(_0x2e2b8a))||_0x2e2b8a);return _0x31b72c&&_0x2e2b8a&&Zt(_0x242794,_0x18697a,_0x2e2b8a),_0x2e2b8a;},Xe=(_0x4b6c7c,_0x293332)=>(_0x2dcc08,_0x3a866f)=>_0x293332(_0x2dcc08,_0x3a866f,_0x4b6c7c);let G=class extends a[_0x29b95d(0x1dd)]{constructor(_0x24f359,_0x57fb0c){const _0x2851e3=_0x29b95d;super(),d(this,_0x2851e3(0x431),new Map()),(this[_0x2851e3(0x50a)]=_0x24f359,this[_0x2851e3(0x249)]=_0x57fb0c,this['disposeWithMe'](a[_0x2851e3(0x273)](g[_0x2851e3(0x22e)](this[_0x2851e3(0x50a)][_0x2851e3(0x4a3)](a[_0x2851e3(0x30a)][_0x2851e3(0x272)])[_0x2851e3(0x1e4)](T[_0x2851e3(0x2a0)](_0x25fb79=>_0x25fb79[_0x2851e3(0x25b)]())),this[_0x2851e3(0x50a)][_0x2851e3(0x4a3)](a['UniverInstanceType'][_0x2851e3(0x2a2)])[_0x2851e3(0x1e4)](T['map'](_0x32ef1f=>_0x32ef1f[_0x2851e3(0x25b)]())),this['_univerInstanceService'][_0x2851e3(0x4a3)](a[_0x2851e3(0x30a)][_0x2851e3(0x257)])[_0x2851e3(0x1e4)](T[_0x2851e3(0x2a0)](_0x3cbe4d=>_0x3cbe4d[_0x2851e3(0x25b)]())))[_0x2851e3(0x1e8)](_0x328a2b=>this[_0x2851e3(0x238)](_0x328a2b)))));}[_0x29b95d(0x308)](_0x2a5cfe){const _0x49f2e1=_0x29b95d;this[_0x49f2e1(0x249)][_0x49f2e1(0x308)](_0x2a5cfe);}[_0x29b95d(0x521)](){const _0x20396f=_0x29b95d;return this[_0x20396f(0x249)][_0x20396f(0x521)]();}[_0x29b95d(0x266)](_0x36aeaa,_0x4548ca){const _0x181f66=_0x29b95d;let _0x155af9=this[_0x181f66(0x431)][_0x181f66(0x2d3)](_0x36aeaa);_0x155af9||(_0x155af9=new ts(),this[_0x181f66(0x431)]['set'](_0x36aeaa,_0x155af9)),_0x155af9[_0x181f66(0x266)](_0x4548ca);}['removeMember'](_0x33269b,_0x3f4b32){const _0x38287e=_0x29b95d,_0x2b2ea5=this[_0x38287e(0x431)][_0x38287e(0x2d3)](_0x33269b);_0x2b2ea5&&_0x2b2ea5[_0x38287e(0x375)](_0x3f4b32);}['getRoom'](_0x51d315){const _0x50a6d2=_0x29b95d;return this[_0x50a6d2(0x431)][_0x50a6d2(0x2d3)](_0x51d315);}[_0x29b95d(0x43b)](_0xaeb618,_0x3d6a19){const _0x36164b=_0x29b95d,_0x35eb9f=this['_roomMembers'][_0x36164b(0x2d3)](_0xaeb618);if(_0x35eb9f)return _0x35eb9f[_0x36164b(0x43b)](_0x3d6a19);}[_0x29b95d(0x238)](_0x4a741b){const _0x29af1d=_0x29b95d,_0xc19e9=this[_0x29af1d(0x431)][_0x29af1d(0x2d3)](_0x4a741b);_0xc19e9&&(_0xc19e9[_0x29af1d(0x545)](),this[_0x29af1d(0x431)][_0x29af1d(0x485)](_0x4a741b));}[_0x29b95d(0x545)](){const _0x1bd62c=_0x29b95d;this[_0x1bd62c(0x431)][_0x1bd62c(0x3b0)](_0x2e0deb=>_0x2e0deb[_0x1bd62c(0x545)]()),this[_0x1bd62c(0x431)][_0x1bd62c(0x2a7)]();}};G=es([Xe(0x0,a[_0x29b95d(0x2e6)]),Xe(0x1,h[_0x29b95d(0x563)](a['UserManagerService']))],G);class ts extends a[_0x29b95d(0x1dd)]{constructor(){super(...arguments),d(this,'_members',new Map());}[_0x29b95d(0x545)](){const _0x1da2e0=_0x29b95d;this['_members'][_0x1da2e0(0x2a7)]();}[_0x29b95d(0x266)](_0x2c646b){const _0x477ccf=_0x29b95d;this[_0x477ccf(0x472)][_0x477ccf(0x470)](_0x2c646b[_0x477ccf(0x228)],_0x2c646b);}[_0x29b95d(0x375)](_0x2da9b7){const _0x5a8a00=_0x29b95d;this['_members'][_0x5a8a00(0x485)](_0x2da9b7);}[_0x29b95d(0x43b)](_0x270f1c){const _0x34ca2b=_0x29b95d;return this[_0x34ca2b(0x472)][_0x34ca2b(0x2d3)](_0x270f1c);}}function It(_0x160ecc){const _0x4cda82=_0x29b95d;var _0x342305,_0x570021,_0x24b118,_0x578b4f;const _0x2a2e8f=_0x160ecc[_0x4cda82(0x2eb)],_0x5b0cb1=JSON[_0x4cda82(0x457)](_0x2a2e8f);switch(_0x5b0cb1[_0x4cda82(0x36d)]){case b[_0x4cda82(0x223)]:case b[_0x4cda82(0x3f6)]:{const _0x51bd5c=_0x5b0cb1[_0x4cda82(0x1eb)];return{..._0x5b0cb1,'data':_0x51bd5c,'cmd':_0x5b0cb1[_0x4cda82(0x36d)]};}case b[_0x4cda82(0x3eb)]:{const _0x56d1e5=_0x5b0cb1[_0x4cda82(0x21b)];return{..._0x5b0cb1,'data':_0x56d1e5,'cmd':_0x5b0cb1[_0x4cda82(0x36d)]};}case b[_0x4cda82(0x426)]:{const _0xd7a10a=_0x5b0cb1['collaMsg'];switch(_0xd7a10a[_0x4cda82(0x3e1)]){case u[_0x4cda82(0x45f)][_0x4cda82(0x28a)]:return{..._0x5b0cb1,'data':{..._0xd7a10a,'data':(_0x342305=_0xd7a10a[_0x4cda82(0x41d)])==null?void 0x0:_0x342305['cs']},'cmd':_0x5b0cb1[_0x4cda82(0x36d)]};case u[_0x4cda82(0x45f)][_0x4cda82(0x45e)]:return{..._0x5b0cb1,'data':{..._0xd7a10a,'data':(_0x570021=_0xd7a10a[_0x4cda82(0x4a4)])==null?void 0x0:_0x570021['cs']},'cmd':_0x5b0cb1[_0x4cda82(0x36d)]};case u[_0x4cda82(0x45f)][_0x4cda82(0x354)]:return{..._0x5b0cb1,'data':{..._0xd7a10a,'data':(_0x24b118=_0xd7a10a[_0x4cda82(0x4a5)])==null?void 0x0:_0x24b118['cs']},'cmd':_0x5b0cb1[_0x4cda82(0x36d)]};case u[_0x4cda82(0x45f)][_0x4cda82(0x2c7)]:return{..._0x5b0cb1,'data':{..._0xd7a10a,'data':(_0x578b4f=_0xd7a10a[_0x4cda82(0x2b6)])==null?void 0x0:_0x578b4f['cs']},'cmd':_0x5b0cb1['cmd']};case u[_0x4cda82(0x45f)][_0x4cda82(0x30b)]:return{..._0x5b0cb1,'data':{..._0xd7a10a,'data':_0xd7a10a[_0x4cda82(0x50b)]},'cmd':_0x5b0cb1[_0x4cda82(0x36d)]};case u[_0x4cda82(0x45f)][_0x4cda82(0x200)]:return{..._0x5b0cb1,'data':{..._0xd7a10a,'data':_0xd7a10a['joinEvent']},'cmd':_0x5b0cb1[_0x4cda82(0x36d)]};case u['CollaborationEvent']['USERS_LEAVE']:return{..._0x5b0cb1,'data':{..._0xd7a10a,'data':_0xd7a10a[_0x4cda82(0x48e)]},'cmd':_0x5b0cb1[_0x4cda82(0x36d)]};case u[_0x4cda82(0x45f)][_0x4cda82(0x4ee)]:return{..._0x5b0cb1,'data':{..._0xd7a10a,'data':_0xd7a10a[_0x4cda82(0x1f5)]},'cmd':_0x5b0cb1[_0x4cda82(0x36d)]};case u['CollaborationEvent'][_0x4cda82(0x361)]:case u[_0x4cda82(0x45f)][_0x4cda82(0x395)]:return{..._0x5b0cb1,'data':{..._0xd7a10a,'data':_0xd7a10a[_0x4cda82(0x1d7)]},'cmd':_0x5b0cb1[_0x4cda82(0x36d)]};case u[_0x4cda82(0x45f)]['LIVESHARE_TERMINATE']:return{..._0x5b0cb1,'data':{..._0xd7a10a,'data':_0xd7a10a[_0x4cda82(0x1f5)]},'cmd':_0x5b0cb1[_0x4cda82(0x36d)]};case u[_0x4cda82(0x45f)][_0x4cda82(0x4f9)]:return{..._0x5b0cb1,'data':_0xd7a10a,'cmd':_0x5b0cb1[_0x4cda82(0x36d)]};case u[_0x4cda82(0x45f)][_0x4cda82(0x44b)]:return{..._0x5b0cb1,'data':{..._0xd7a10a,'data':_0xd7a10a[_0x4cda82(0x2cd)]},'cmd':_0x5b0cb1[_0x4cda82(0x36d)]};default:return _0x5b0cb1;}}default:return _0x5b0cb1;}}function pt(_0xb6ba28){const _0x4733e3=_0x29b95d;switch(_0xb6ba28['cmd']){case b[_0x4733e3(0x223)]:case b[_0x4733e3(0x3f6)]:return JSON[_0x4733e3(0x1e7)]({'cmd':_0xb6ba28[_0x4733e3(0x36d)],'routeKey':_0xb6ba28['routeKey']});case b[_0x4733e3(0x567)]:{let _0x5515cb;switch(_0xb6ba28[_0x4733e3(0x2eb)][_0x4733e3(0x3e1)]){case u[_0x4733e3(0x45f)][_0x4733e3(0x30b)]:{_0x5515cb={'eventID':u['CollaborationEvent'][_0x4733e3(0x30b)],'updateCursorEvent':_0xb6ba28[_0x4733e3(0x2eb)]['data']};break;}case u[_0x4733e3(0x45f)]['USERS_LEAVE']:{_0x5515cb={'eventID':u[_0x4733e3(0x45f)]['USERS_LEAVE'],'leaveEvent':_0xb6ba28[_0x4733e3(0x2eb)][_0x4733e3(0x2eb)]};break;}case u[_0x4733e3(0x45f)][_0x4733e3(0x200)]:{_0x5515cb={'eventID':u['CollaborationEvent'][_0x4733e3(0x200)],'joinEvent':_0xb6ba28[_0x4733e3(0x2eb)][_0x4733e3(0x2eb)]};break;}case u[_0x4733e3(0x45f)][_0x4733e3(0x4ee)]:{_0x5515cb={'eventID':u[_0x4733e3(0x45f)][_0x4733e3(0x4ee)],'liveShareNewHost':_0xb6ba28[_0x4733e3(0x2eb)][_0x4733e3(0x2eb)]};break;}case u['CollaborationEvent'][_0x4733e3(0x395)]:{_0x5515cb={'eventID':u['CollaborationEvent'][_0x4733e3(0x395)],'liveShareOperation':_0xb6ba28[_0x4733e3(0x2eb)][_0x4733e3(0x2eb)]};break;}case u['CollaborationEvent']['LIVESHARE_TERMINATE']:{_0x5515cb={'eventID':u['CollaborationEvent'][_0x4733e3(0x4c8)],'liveShareTerminate':_0xb6ba28[_0x4733e3(0x2eb)]['data']};break;}case u['CollaborationEvent'][_0x4733e3(0x482)]:{_0x5515cb={'eventID':u[_0x4733e3(0x45f)][_0x4733e3(0x482)],'liveShareRequestHost':_0xb6ba28[_0x4733e3(0x2eb)]['data']};break;}case u[_0x4733e3(0x45f)][_0x4733e3(0x361)]:{_0x5515cb={'eventID':u['CollaborationEvent'][_0x4733e3(0x361)]};break;}default:_0x5515cb={'eventID':_0xb6ba28[_0x4733e3(0x2eb)][_0x4733e3(0x3e1)]};}return JSON[_0x4733e3(0x1e7)]({'cmd':_0xb6ba28[_0x4733e3(0x36d)],'routeKey':_0xb6ba28[_0x4733e3(0x3fe)],'collaMsg':_0x5515cb});}case b[_0x4733e3(0x3eb)]:return JSON[_0x4733e3(0x1e7)]({'cmd':_0xb6ba28['cmd'],'routeKey':_0xb6ba28['routeKey'],'joinReq':_0xb6ba28[_0x4733e3(0x2eb)]});case b['LEAVE']:return JSON[_0x4733e3(0x1e7)]({'cmd':_0xb6ba28[_0x4733e3(0x36d)],'routeKey':_0xb6ba28['routeKey'],'leaveReq':_0xb6ba28['data']});default:throw new Error(_0x4733e3(0x32e));}}var ss=Object[_0x29b95d(0x2f8)],is=Object[_0x29b95d(0x516)],ns=(_0x56ab78,_0x50b3f2,_0x392779,_0x2c26d3)=>{const _0x14fe6a=_0x29b95d;for(var _0x253291=_0x2c26d3>0x1?void 0x0:_0x2c26d3?is(_0x50b3f2,_0x392779):_0x50b3f2,_0x442460=_0x56ab78[_0x14fe6a(0x49e)]-0x1,_0x23e653;_0x442460>=0x0;_0x442460--)(_0x23e653=_0x56ab78[_0x442460])&&(_0x253291=(_0x2c26d3?_0x23e653(_0x50b3f2,_0x392779,_0x253291):_0x23e653(_0x253291))||_0x253291);return _0x2c26d3&&_0x253291&&ss(_0x50b3f2,_0x392779,_0x253291),_0x253291;},te=(_0x4b96b6,_0x2bf114)=>(_0x528678,_0x22be93)=>_0x2bf114(_0x528678,_0x22be93,_0x4b96b6);const Be=h[_0x29b95d(0x250)](_0x29b95d(0x268));function rs(_0x18d005,_0x52b391,_0x5edd94){const _0x5a898a=_0x29b95d;return _0x18d005+'/'+_0x52b391+_0x5a898a(0x2b9)+_0x5edd94+_0x5a898a(0x4d9);}exports[_0x29b95d(0x44c)]=class{constructor(_0x5acf1e,_0x213416,_0x3b0780,_0x31291e,_0x3382b6){const _0x347e8e=_0x29b95d;this['_http']=_0x5acf1e,this[_0x347e8e(0x44e)]=_0x213416,this[_0x347e8e(0x552)]=_0x3b0780,this[_0x347e8e(0x3cb)]=_0x31291e,this[_0x347e8e(0x4f8)]=_0x3382b6;}[_0x29b95d(0x402)](_0x885db2){const _0x271389=_0x29b95d,_0x3c575e=this[_0x271389(0x44e)][_0x271389(0x402)](_0x885db2);if(!_0x3c575e)throw new Error(_0x271389(0x28c));const _0x1ae259=new a[(_0x271389(0x3a4))](),_0x3f0bcd=new g[(_0x271389(0x1c9))]();_0x1ae259['add'](a[_0x271389(0x273)](_0x3c575e[_0x271389(0x55e)][_0x271389(0x1e8)](_0x37418c=>_0x3f0bcd['next'](_0x37418c)))),_0x1ae259[_0x271389(0x3af)](a[_0x271389(0x273)](()=>_0x3f0bcd[_0x271389(0x388)]()));const _0x21f4a5=new g[(_0x271389(0x1c9))]();_0x1ae259['add'](a[_0x271389(0x273)](_0x3c575e['error$'][_0x271389(0x1e8)](_0x2152e8=>_0x21f4a5[_0x271389(0x4e8)](_0x2152e8)))),_0x1ae259[_0x271389(0x3af)](a[_0x271389(0x273)](()=>_0x21f4a5['complete']()));const _0x20305a=new g[(_0x271389(0x1c9))]();_0x1ae259[_0x271389(0x3af)](a[_0x271389(0x273)](_0x3c575e['message$'][_0x271389(0x1e8)](_0x2bfc0d=>{const _0x485b66=_0x271389,_0x2967f5=It(_0x2bfc0d);_0x20305a[_0x485b66(0x4e8)](_0x2967f5);}))),_0x1ae259[_0x271389(0x3af)](a[_0x271389(0x273)](()=>_0x20305a[_0x271389(0x388)]()));const _0x32c741=()=>{const _0x6b7d9c=_0x271389;_0x21f4a5[_0x6b7d9c(0x4e8)](new Event('connection\x20error')),_0x3f0bcd[_0x6b7d9c(0x4e8)](new CloseEvent(_0x6b7d9c(0x539))),_0x1cfc30[_0x6b7d9c(0x2bb)]();},_0x1cfc30={'memberID':'','close$':_0x3f0bcd[_0x271389(0x56a)](),'error$':_0x21f4a5[_0x271389(0x56a)](),'open$':_0x3c575e['open$'],'message$':_0x20305a['asObservable'](),'send':_0xcdd65e=>{const _0x189a9e=_0x271389;if(_0xcdd65e[_0x189a9e(0x36d)]===b[_0x189a9e(0x567)]){if(_0xcdd65e[_0x189a9e(0x2eb)][_0x189a9e(0x3e1)]===u['CollaborationEvent']['SUBMIT_CHANGESET']){this[_0x189a9e(0x22f)](_0x1cfc30,_0xcdd65e['data'])[_0x189a9e(0x247)](_0x39d278=>{const _0x47a618=_0x189a9e;this[_0x47a618(0x3cb)][_0x47a618(0x383)](_0x39d278),_0x32c741();});return;}if(_0xcdd65e['data'][_0x189a9e(0x3e1)]===u[_0x189a9e(0x45f)][_0x189a9e(0x47c)]){const _0x557bd1=_0xcdd65e[_0x189a9e(0x2eb)];this[_0x189a9e(0x2c0)](_0x557bd1)[_0x189a9e(0x27d)](_0x39c83e=>{const _0x1bce20=_0x189a9e;_0x20305a['next']({'cmd':b[_0x1bce20(0x426)],'code':ke['OK'],'routeKey':_0x557bd1['data'][_0x1bce20(0x1c8)],'routeType':'','data':{'eventID':u[_0x1bce20(0x45f)]['PSEUDO_FETCH_MISSING_RESULT'],'data':{'changesets':_0x39c83e}}});})[_0x189a9e(0x247)](_0x360e82=>{const _0x1eb95e=_0x189a9e;this[_0x1eb95e(0x3cb)][_0x1eb95e(0x383)](_0x360e82),_0x32c741();});return;}}_0x3c575e[_0x189a9e(0x434)](pt(_0xcdd65e));},'close':()=>{_0x3c575e['close'](),_0x1ae259['dispose']();}};return _0x1cfc30;}async[_0x29b95d(0x22f)](_0x5e9965,_0x36c071){const _0x240302=_0x29b95d;var _0x31c20f;const {unitType:_0x347c4b,unitID:_0x23eb85,changeset:_0x13adfe}=_0x36c071['data'],_0x54a575={'unitID':_0x23eb85,'memberID':_0x5e9965[_0x240302(0x228)],'type':_0x347c4b,'changeset':u[_0x240302(0x287)](_0x13adfe)},_0x11da27=rs((_0x31c20f=this['_configService'][_0x240302(0x2bf)](gt))!=null?_0x31c20f:zt,_0x347c4b,_0x23eb85);try{await this['_http']['post'](_0x11da27,{'body':_0x54a575});}catch(_0xf2fbff){throw this[_0x240302(0x3cb)]['error'](_0x240302(0x374),_0x240302(0x4fd)),_0xf2fbff;}}async['_fetchMissChangesets'](_0x416788){const _0x10568c=_0x29b95d,{unitID:_0x196fb,from:_0x4291f3,to:_0x21ee59,unitType:_0x2d7c40}=_0x416788['data'];return(await this[_0x10568c(0x4f8)][_0x10568c(0x29c)]({'metadata':void 0x0},{'unitID':_0x196fb,'type':_0x2d7c40,'from':_0x4291f3,'to':_0x21ee59}))[_0x10568c(0x46d)];}},exports[_0x29b95d(0x44c)]=ns([te(0x0,h['Inject'](P[_0x29b95d(0x42e)])),te(0x1,h[_0x29b95d(0x563)](P['WebSocketService'])),te(0x2,a[_0x29b95d(0x271)]),te(0x3,a[_0x29b95d(0x50d)]),te(0x4,a[_0x29b95d(0x55c)])],exports[_0x29b95d(0x44c)]);class Fe{constructor(){const _0x2a2d57=_0x29b95d;d(this,_0x2a2d57(0x217),new g[(_0x2a2d57(0x1c9))]()),d(this,_0x2a2d57(0x4a7),this[_0x2a2d57(0x217)][_0x2a2d57(0x56a)]());}[_0x29b95d(0x39b)](_0x1a2729){const _0x48d7a6=_0x29b95d;this[_0x48d7a6(0x217)][_0x48d7a6(0x4e8)](_0x1a2729);}}var os=Object[_0x29b95d(0x2f8)],as=Object[_0x29b95d(0x516)],Et=(_0x4ffce4,_0x148346,_0x470337,_0x9450e6)=>{for(var _0x2f1a6a=_0x9450e6>0x1?void 0x0:_0x9450e6?as(_0x148346,_0x470337):_0x148346,_0x37a8a2=_0x4ffce4['length']-0x1,_0x55f26a;_0x37a8a2>=0x0;_0x37a8a2--)(_0x55f26a=_0x4ffce4[_0x37a8a2])&&(_0x2f1a6a=(_0x9450e6?_0x55f26a(_0x148346,_0x470337,_0x2f1a6a):_0x55f26a(_0x2f1a6a))||_0x2f1a6a);return _0x9450e6&&_0x2f1a6a&&os(_0x148346,_0x470337,_0x2f1a6a),_0x2f1a6a;},w=(_0x76b61d,_0x58a33a)=>(_0x3a4526,_0x327013)=>_0x58a33a(_0x3a4526,_0x327013,_0x76b61d),W=(_0x27951c=>(_0x27951c[_0x27951c['IDLE']=0x0]='IDLE',_0x27951c[_0x27951c['JOINING']=0x1]=_0x29b95d(0x542),_0x27951c[_0x27951c['OFFLINE']=0x2]=_0x29b95d(0x234),_0x27951c[_0x27951c[_0x29b95d(0x391)]=0x3]='ONLINE',_0x27951c))(W||{});exports[_0x29b95d(0x25c)]=class extends a['RxDisposable']{constructor(_0x10373f,_0x36d364,_0x276cbd,_0x161da8,_0x35d03a,_0x77a504,_0x45da80,_0x3c231b,_0x522465){const _0x567561=_0x29b95d;super(),d(this,_0x567561(0x386),new g[(_0x567561(0x3cd))](0x0)),d(this,_0x567561(0x42c),this['_sessionStatus$'][_0x567561(0x56a)]()),d(this,_0x567561(0x480),new g['Subject']()),d(this,_0x567561(0x264),this['_event$'][_0x567561(0x56a)]()),d(this,_0x567561(0x442)),d(this,_0x567561(0x36f)),d(this,_0x567561(0x4c6)),(this[_0x567561(0x487)]=_0x10373f,this[_0x567561(0x3cb)]=_0x276cbd,this['_beforeCloseService']=_0x161da8,this[_0x567561(0x533)]=_0x35d03a,this['_configService']=_0x77a504,this[_0x567561(0x2df)]=_0x45da80,this['_memberService']=_0x3c231b,this[_0x567561(0x2dd)]=_0x522465,_0x36d364[_0x567561(0x1e4)](T[_0x567561(0x4d2)](this[_0x567561(0x2e1)]))[_0x567561(0x1e8)](_0x4c8e3c=>{const _0x169a43=_0x567561;var _0x48e91c;typeof _0x4c8e3c>'u'||(this[_0x169a43(0x442)]=_0x4c8e3c,_0x4c8e3c?(this[_0x169a43(0x514)](_0x4c8e3c),this['_socketMessageSubscription']=this[_0x169a43(0x442)][_0x169a43(0x40a)][_0x169a43(0x1e8)](_0x4f022e=>{const _0x4eca00=_0x169a43;_0x4f022e[_0x4eca00(0x3fe)]===this[_0x4eca00(0x487)]&&this[_0x4eca00(0x285)](_0x4f022e);})):(this['_sessionStatus$'][_0x169a43(0x4e8)](0x2),(_0x48e91c=this[_0x169a43(0x36f)])==null||_0x48e91c[_0x169a43(0x231)](),this[_0x169a43(0x36f)]=null));}),this[_0x567561(0x2f6)](this['_beforeCloseService'][_0x567561(0x492)](()=>{const _0x42ea4a=_0x567561;var _0x123a31;(_0x123a31=this[_0x42ea4a(0x442)])==null||_0x123a31[_0x42ea4a(0x434)]({'cmd':b[_0x42ea4a(0x34b)],'data':{'roomID':this[_0x42ea4a(0x487)]}});})));}get[_0x29b95d(0x36b)](){const _0x34d972=_0x29b95d;return this['_sessionStatus$'][_0x34d972(0x2e8)]();}[_0x29b95d(0x429)](){const _0x233796=_0x29b95d;var _0x2dc1f0,_0x287ead;return(_0x287ead=(_0x2dc1f0=this['_socket'])==null?void 0x0:_0x2dc1f0[_0x233796(0x228)])!=null?_0x287ead:null;}[_0x29b95d(0x545)](){const _0x294bce=_0x29b95d;super[_0x294bce(0x545)](),this['dispose$']['next'](),this[_0x294bce(0x2e1)][_0x294bce(0x388)]();}['_onCombEvent'](_0x120f71){const _0x1807fd=_0x29b95d;_0x120f71['cmd']===b[_0x1807fd(0x3eb)]?this[_0x1807fd(0x4ad)](_0x120f71):_0x120f71[_0x1807fd(0x36d)]===b[_0x1807fd(0x426)]&&this[_0x1807fd(0x279)](_0x120f71);}['_joinRoom'](_0x5401d0){const _0x11cf1a=_0x29b95d;this['_sessionStatus$']['next'](0x1),_0x5401d0[_0x11cf1a(0x434)]({'cmd':b[_0x11cf1a(0x3eb)],'routeKey':this['_unitID'],'routeType':'','data':{'rooms':[{'roomID':this['_unitID']}]}});}[_0x29b95d(0x4ad)](_0x513a24){const _0x35bbdf=_0x29b95d;var _0x45d3bd;if(_0x513a24[_0x35bbdf(0x405)]===ke['FAIL']){this['_messageService'][_0x35bbdf(0x4a2)]({'type':oe['MessageType'][_0x35bbdf(0x306)],'content':this['_localeService']['t'](_0x35bbdf(0x3ed))}),this[_0x35bbdf(0x386)]['next'](0x2);return;}this[_0x35bbdf(0x386)][_0x35bbdf(0x4e8)](0x3);const _0x83acb1=(_0x45d3bd=_0x513a24[_0x35bbdf(0x2eb)][_0x35bbdf(0x32d)][this[_0x35bbdf(0x487)]])==null?void 0x0:_0x45d3bd['members'];_0x83acb1&&_0x83acb1[_0x35bbdf(0x3b0)](_0x582f97=>this[_0x35bbdf(0x258)][_0x35bbdf(0x266)](this[_0x35bbdf(0x487)],_0x582f97));}[_0x29b95d(0x279)](_0x2ddaf0){const _0x216426=_0x29b95d;try{const _0x46b5ed=_0x2ddaf0[_0x216426(0x2eb)];switch(_0x46b5ed['eventID']){case u[_0x216426(0x45f)][_0x216426(0x200)]:this[_0x216426(0x3d2)](_0x46b5ed),this[_0x216426(0x480)][_0x216426(0x4e8)](_0x46b5ed);break;case u[_0x216426(0x45f)][_0x216426(0x274)]:this[_0x216426(0x543)](_0x46b5ed),this[_0x216426(0x480)][_0x216426(0x4e8)](_0x46b5ed);break;case u[_0x216426(0x45f)][_0x216426(0x45e)]:this[_0x216426(0x265)](),this[_0x216426(0x480)][_0x216426(0x4e8)](_0x46b5ed);break;case u[_0x216426(0x45f)][_0x216426(0x4f9)]:this[_0x216426(0x3cb)][_0x216426(0x383)](_0x216426(0x384)+JSON[_0x216426(0x1e7)](_0x46b5ed)),this[_0x216426(0x480)]['next'](_0x46b5ed);break;case u[_0x216426(0x45f)][_0x216426(0x44b)]:this[_0x216426(0x2dd)][_0x216426(0x39b)](_0x46b5ed['data']),this['_event$'][_0x216426(0x4e8)](_0x46b5ed);break;default:this[_0x216426(0x480)][_0x216426(0x4e8)](_0x46b5ed);}}catch(_0x10353e){this[_0x216426(0x3cb)][_0x216426(0x383)](_0x10353e,_0x2ddaf0);}}[_0x29b95d(0x3d2)](_0x106a35){const _0x41bdd5=_0x29b95d;this[_0x41bdd5(0x258)][_0x41bdd5(0x266)](this[_0x41bdd5(0x487)],_0x106a35[_0x41bdd5(0x2eb)]);}[_0x29b95d(0x543)](_0x48f572){const _0x3392ba=_0x29b95d;this[_0x3392ba(0x258)][_0x3392ba(0x375)](this[_0x3392ba(0x487)],_0x48f572[_0x3392ba(0x2eb)][_0x3392ba(0x228)]);}async[_0x29b95d(0x434)](_0x4b3b32,_0x4bb1fb){const _0x4bfdfa=_0x29b95d;if(this['sessionStatus']!==0x3||!this[_0x4bfdfa(0x442)])throw new Error(_0x4bfdfa(0x51a));try{_0x4b3b32[_0x4bfdfa(0x3e1)]===u[_0x4bfdfa(0x45f)][_0x4bfdfa(0x354)]&&this[_0x4bfdfa(0x251)](),this[_0x4bfdfa(0x442)][_0x4bfdfa(0x434)]({'cmd':b[_0x4bfdfa(0x567)],'routeKey':_0x4bb1fb,'routeType':'','data':_0x4b3b32});}catch(_0xa3413f){this[_0x4bfdfa(0x3cb)][_0x4bfdfa(0x383)](_0xa3413f);}}[_0x29b95d(0x251)](){const _0x5be98c=_0x29b95d;var _0x1a63ce;this[_0x5be98c(0x4c6)]=window[_0x5be98c(0x52d)](()=>{const _0xa61725=_0x5be98c;this[_0xa61725(0x4c6)]=null,this[_0xa61725(0x533)]['show']({'type':oe[_0xa61725(0x4e9)][_0xa61725(0x399)],'content':this[_0xa61725(0x2df)]['t']('session.collaboration-timeout')});},(_0x1a63ce=this[_0x5be98c(0x552)]['getConfig'](xe))!=null?_0x1a63ce:St);}[_0x29b95d(0x265)](){const _0x3fa60c=_0x29b95d;this[_0x3fa60c(0x4c6)]&&(clearTimeout(this[_0x3fa60c(0x4c6)]),this[_0x3fa60c(0x4c6)]=null);}},exports[_0x29b95d(0x25c)]=Et([w(0x2,a['ILogService']),w(0x3,N[_0x29b95d(0x31c)]),w(0x4,N[_0x29b95d(0x3e3)]),w(0x5,a[_0x29b95d(0x271)]),w(0x6,h['Inject'](a['LocaleService'])),w(0x7,h[_0x29b95d(0x563)](G)),w(0x8,h[_0x29b95d(0x563)](Fe))],exports[_0x29b95d(0x25c)]),exports['CollaborationSessionService']=class extends a['Disposable']{constructor(_0x298fa8,_0x3727f7,_0xaf261c,_0x18f4db,_0x1df169,_0x328763){const _0x653d39=_0x29b95d;super(),d(this,_0x653d39(0x488),new g[(_0x653d39(0x3cd))](void 0x0)),d(this,_0x653d39(0x3dc),new Map()),d(this,'_status$',new g['BehaviorSubject'](0x0)),d(this,_0x653d39(0x1f7),this['_status$'][_0x653d39(0x56a)]()),d(this,_0x653d39(0x25d),!0x1),d(this,'_sendHeartbeatTimer'),d(this,_0x653d39(0x1ff)),d(this,_0x653d39(0x276)),d(this,'_retryCount',0x0),(this[_0x653d39(0x42b)]=_0x298fa8,this[_0x653d39(0x2df)]=_0x3727f7,this[_0x653d39(0x533)]=_0xaf261c,this[_0x653d39(0x3cb)]=_0x18f4db,this[_0x653d39(0x552)]=_0x1df169,this[_0x653d39(0x517)]=_0x328763);}get[_0x29b95d(0x442)](){const _0x384a48=_0x29b95d;return this['_socket$'][_0x384a48(0x2e8)]();}[_0x29b95d(0x545)](){const _0x4da4d3=_0x29b95d;super[_0x4da4d3(0x545)](),this['_sessions']['forEach'](_0x3af01f=>_0x3af01f[_0x4da4d3(0x545)]()),this[_0x4da4d3(0x3dc)]['clear'](),this[_0x4da4d3(0x322)][_0x4da4d3(0x388)]();}async[_0x29b95d(0x393)](_0x39764d){const _0x5158ea=_0x29b95d;if(this[_0x5158ea(0x3dc)][_0x5158ea(0x237)](_0x39764d))return this[_0x5158ea(0x3dc)][_0x5158ea(0x2d3)](_0x39764d);this['_tryEnsureSocket']();const _0x497a09=this['_injector']['createInstance'](exports[_0x5158ea(0x25c)],_0x39764d,this['_socket$'][_0x5158ea(0x56a)]());return this[_0x5158ea(0x3dc)]['set'](_0x39764d,_0x497a09),_0x497a09;}[_0x29b95d(0x571)](){const _0x208511=_0x29b95d;var _0x237a54;const _0x18a096=(_0x237a54=this[_0x208511(0x552)][_0x208511(0x2bf)](ut))!=null?_0x237a54:Vt;return this[_0x208511(0x517)]['createSocket'](_0x18a096);}['_tryEnsureSocket'](){const _0x34fd21=_0x29b95d;try{const _0x31e3cf=this[_0x34fd21(0x571)]();if(_0x31e3cf){const _0x1f8d06=_0x31e3cf['send'];_0x31e3cf['send']=_0x33c955=>(this[_0x34fd21(0x33f)](),_0x1f8d06['apply'](_0x31e3cf,[_0x33c955])),_0x31e3cf[_0x34fd21(0x40a)][_0x34fd21(0x1e8)](_0x2c3b93=>this['_onMessage'](_0x31e3cf,_0x2c3b93)),_0x31e3cf[_0x34fd21(0x37a)][_0x34fd21(0x1e4)](T['take'](0x1))[_0x34fd21(0x1e8)](_0x2cdcdd=>this['_logService'][_0x34fd21(0x383)]('[CollaborationSessionService]:\x20socket\x20error',_0x2cdcdd)),_0x31e3cf[_0x34fd21(0x1dc)]['pipe'](T[_0x34fd21(0x4f7)](0x1))[_0x34fd21(0x1e8)](()=>{const _0x215ddd=_0x34fd21;this[_0x215ddd(0x23b)](_0x31e3cf);}),_0x31e3cf[_0x34fd21(0x55e)][_0x34fd21(0x1e4)](T[_0x34fd21(0x4f7)](0x1))[_0x34fd21(0x1e8)](_0x3a27fd=>{const _0x16c911=_0x34fd21;this[_0x16c911(0x3cb)][_0x16c911(0x270)]('[CollaborationSessionService]',_0x16c911(0x4e5),_0x3a27fd),this['_onConnectionFailed']();});}}catch(_0x281a5c){this['_logService'][_0x34fd21(0x383)](_0x281a5c),this['_onConnectionFailed']();}}[_0x29b95d(0x23b)](_0x451cb5){const _0x415835=_0x29b95d;this[_0x415835(0x3cb)]['debug'](_0x415835(0x282),_0x415835(0x560)),_0x451cb5['send']({'cmd':b['HELLO']}),this['_rescheduleHeartbeatEvent']();}[_0x29b95d(0x389)](){const _0x25549c=_0x29b95d;var _0x2c582a;this['_status$'][_0x25549c(0x4e8)](0x2),this['_socket$'][_0x25549c(0x4e8)](null),this['_clearTimeoutTimer'](),this['_clearHeartbeatTimer'](),this[_0x25549c(0x25d)]=!0x1,this[_0x25549c(0x2a8)]<((_0x2c582a=this[_0x25549c(0x552)]['getConfig'](Kt))!=null?_0x2c582a:Xt)?(this[_0x25549c(0x4a8)](this['_retryCount']),this['_retryCount']+=0x1):this[_0x25549c(0x533)][_0x25549c(0x4a2)]({'type':oe[_0x25549c(0x4e9)]['Error'],'content':this[_0x25549c(0x2df)]['t'](_0x25549c(0x481))});}[_0x29b95d(0x4a8)](_0x13902a){const _0x16ae9c=_0x29b95d;var _0x2670a5;const _0x5a0d3c=((_0x2670a5=this[_0x16ae9c(0x552)]['getConfig'](Gt))!=null?_0x2670a5:Yt)*0x2**_0x13902a;this[_0x16ae9c(0x533)][_0x16ae9c(0x4a2)]({'type':oe['MessageType']['Warning'],'content':this[_0x16ae9c(0x2df)]['t'](_0x16ae9c(0x4d3))}),this[_0x16ae9c(0x276)]=setTimeout(()=>{const _0x307244=_0x16ae9c;this[_0x307244(0x3d6)](),clearTimeout(this[_0x307244(0x276)]),this[_0x307244(0x276)]=null;},_0x5a0d3c);}[_0x29b95d(0x33f)](){const _0x44aad6=_0x29b95d;var _0x4b719c;this[_0x44aad6(0x344)](),this[_0x44aad6(0x37e)]=setTimeout(()=>this['_sendHeartbeat'](),(_0x4b719c=this[_0x44aad6(0x552)]['getConfig'](dt))!=null?_0x4b719c:Wt);}[_0x29b95d(0x320)](){const _0x5d4d35=_0x29b95d;this[_0x5d4d35(0x442)]['send']({'cmd':b[_0x5d4d35(0x223)]}),this['_waitForHeartbeatResponse']();}[_0x29b95d(0x4a1)](){const _0x412d3b=_0x29b95d;var _0x56b650;this['_timeoutTimer']=setTimeout(()=>this[_0x412d3b(0x389)](),(_0x56b650=this['_configService'][_0x412d3b(0x2bf)](xe))!=null?_0x56b650:St);}[_0x29b95d(0x39f)](_0x56c2db,_0x5d51ec){const _0x134310=_0x29b95d,{cmd:_0x42f8fd}=_0x5d51ec;_0x42f8fd===b[_0x134310(0x3f6)]&&!this['_socketReady']&&(_0x56c2db[_0x134310(0x228)]=_0x5d51ec[_0x134310(0x2eb)][_0x134310(0x228)],this[_0x134310(0x488)][_0x134310(0x4e8)](_0x56c2db),this[_0x134310(0x322)]['next'](0x3),this[_0x134310(0x25d)]=!0x0),_0x42f8fd===b[_0x134310(0x223)]&&this[_0x134310(0x1f9)](),this[_0x134310(0x33f)]();}[_0x29b95d(0x344)](){const _0x360497=_0x29b95d;this[_0x360497(0x37e)]!=null&&(clearTimeout(this[_0x360497(0x37e)]),this[_0x360497(0x37e)]=null);}[_0x29b95d(0x1f9)](){const _0x60f6ac=_0x29b95d;this['_timeoutTimer']!=null&&(clearTimeout(this['_timeoutTimer']),this[_0x60f6ac(0x1ff)]=null);}},exports[_0x29b95d(0x2cf)]=Et([w(0x0,h[_0x29b95d(0x563)](h['Injector'])),w(0x1,h[_0x29b95d(0x563)](a[_0x29b95d(0x3c8)])),w(0x2,N[_0x29b95d(0x3e3)]),w(0x3,a[_0x29b95d(0x50d)]),w(0x4,a[_0x29b95d(0x271)]),w(0x5,Be)],exports[_0x29b95d(0x2cf)]);var cs=Object[_0x29b95d(0x2f8)],ls=Object[_0x29b95d(0x516)],hs=(_0x5e363d,_0x2f137b,_0x195d48,_0x2605c9)=>{for(var _0x107685=_0x2605c9>0x1?void 0x0:_0x2605c9?ls(_0x2f137b,_0x195d48):_0x2f137b,_0x1d6886=_0x5e363d['length']-0x1,_0xf45118;_0x1d6886>=0x0;_0x1d6886--)(_0xf45118=_0x5e363d[_0x1d6886])&&(_0x107685=(_0x2605c9?_0xf45118(_0x2f137b,_0x195d48,_0x107685):_0xf45118(_0x107685))||_0x107685);return _0x2605c9&&_0x107685&&cs(_0x2f137b,_0x195d48,_0x107685),_0x107685;},se=(_0x40243a,_0x317642)=>(_0x1a20da,_0x472c98)=>_0x317642(_0x1a20da,_0x472c98,_0x40243a);exports[_0x29b95d(0x45c)]=class extends a[_0x29b95d(0x1dd)]{constructor(_0x2a9354,_0x1b1c47,_0x550043,_0x1ce1ea,_0x281d4b){const _0x5d204a=_0x29b95d;super(),d(this,'_cachedData',new Map()),d(this,_0x5d204a(0x4e4),new Map()),d(this,'_disabled',!0x1),(this[_0x5d204a(0x552)]=_0x2a9354,this[_0x5d204a(0x1ee)]=_0x1b1c47,this[_0x5d204a(0x315)]=_0x550043,this[_0x5d204a(0x2df)]=_0x1ce1ea,this['_revisionService']=_0x281d4b,this[_0x5d204a(0x37f)]());}[_0x29b95d(0x4d4)](){this['_disabled']=!0x0;}[_0x29b95d(0x310)](){const _0x37955f=_0x29b95d;this[_0x37955f(0x261)]=!0x1;}['dispose'](){const _0xab281f=_0x29b95d;this['_exhaustSavingTask']()[_0xab281f(0x27d)](()=>super['dispose']());}async['loadOfflineData'](_0x484240){const _0x296b61=_0x29b95d;return this[_0x296b61(0x261)]?null:this[_0x296b61(0x1ee)]['getItem'](qe(_0x484240));}async[_0x29b95d(0x259)](_0x102e72,_0x14058d){const _0x382f8a=_0x29b95d;return!!this[_0x382f8a(0x1ee)][_0x382f8a(0x46b)](_0x102e72,_0x14058d);}['updateOfflineData'](_0x39bae4,_0x226aba,_0x39464b,_0x659f5e){const _0x5d34d0=_0x29b95d,_0x2a5067=this[_0x5d34d0(0x2e2)][_0x5d34d0(0x372)](_0x39bae4);this[_0x5d34d0(0x31e)][_0x5d34d0(0x470)](_0x39bae4,{'unitID':_0x39bae4,'type':_0x226aba,'awaitingChangeset':_0x39464b,'mutations':_0x659f5e,'rev':_0x2a5067}),this[_0x5d34d0(0x4e4)][_0x5d34d0(0x237)](_0x39bae4)||this[_0x5d34d0(0x22a)](_0x39bae4);}[_0x29b95d(0x22a)](_0x21dd3c){const _0xb280e6=_0x29b95d,_0x50f9e9=this[_0xb280e6(0x1f1)]();_0x50f9e9===0x0?this[_0xb280e6(0x2be)](_0x21dd3c):this[_0xb280e6(0x4e4)][_0xb280e6(0x470)](_0x21dd3c,setTimeout(()=>this[_0xb280e6(0x2be)](_0x21dd3c),_0x50f9e9));}['_getSaveTimeout'](){const _0x3e044a=_0x29b95d;var _0x223566;return(_0x223566=this[_0x3e044a(0x552)][_0x3e044a(0x2bf)](vt))!=null?_0x223566:qt;}[_0x29b95d(0x2be)](_0x2af077){const _0x118d63=_0x29b95d,_0x53854b=this[_0x118d63(0x4e4)][_0x118d63(0x2d3)](_0x2af077);return _0x53854b!==void 0x0&&window[_0x118d63(0x553)](_0x53854b),this[_0x118d63(0x1ee)]['setItem'](qe(_0x2af077),this['_cachedData']['get'](_0x2af077))[_0x118d63(0x27d)](()=>this[_0x118d63(0x4e4)]['delete'](_0x2af077));}async['_exhaustSavingTask'](){const _0x23a3cb=_0x29b95d,_0x365dbb=[];this[_0x23a3cb(0x4e4)]['forEach']((_0x5230ec,_0x3e63d0)=>{const _0x3a963b=_0x23a3cb;window[_0x3a963b(0x553)](_0x5230ec),_0x365dbb[_0x3a963b(0x346)](this[_0x3a963b(0x2be)](_0x3e63d0)['then'](()=>{const _0x574d85=_0x3a963b;this[_0x574d85(0x4e4)]['delete'](_0x3e63d0);}));}),await Promise[_0x23a3cb(0x548)](_0x365dbb);}[_0x29b95d(0x37f)](){const _0x14183c=_0x29b95d;this[_0x14183c(0x2f6)](this[_0x14183c(0x315)][_0x14183c(0x3ea)](()=>{const _0x4f02a6=_0x14183c;if(this[_0x4f02a6(0x4e4)]['size'])return this[_0x4f02a6(0x2df)]['t'](_0x4f02a6(0x22c));}));}},exports['LocalCacheService']=hs([se(0x0,a['IConfigService']),se(0x1,a[_0x29b95d(0x2d7)]),se(0x2,N[_0x29b95d(0x31c)]),se(0x3,h[_0x29b95d(0x563)](a['LocaleService'])),se(0x4,h['Inject'](u['RevisionService']))],exports['LocalCacheService']);function qe(_0x541e70){const _0x2377a2=_0x29b95d;return _0x2377a2(0x1f2)+_0x541e70;}const pe=h[_0x29b95d(0x250)](_0x29b95d(0x2ce));var Ct=(_0x326b4b=>(_0x326b4b[_0x326b4b[_0x29b95d(0x1e5)]=0x0]=_0x29b95d(0x1e5),_0x326b4b[_0x326b4b[_0x29b95d(0x210)]=0x1]=_0x29b95d(0x210),_0x326b4b))(Ct||{});const ze=0x7530,Je=_0x29b95d(0x549);class _s extends a['Disposable']{constructor(){const _0x4eaf3c=_0x29b95d;super(),d(this,_0x4eaf3c(0x27c),a[_0x4eaf3c(0x4b1)]['generateRandomId']()),d(this,_0x4eaf3c(0x479),new Set()),d(this,'_unitOnClients',new Map()),d(this,_0x4eaf3c(0x256),null),d(this,_0x4eaf3c(0x360),new Map()),d(this,'_unitStatus',new Map()),this[_0x4eaf3c(0x2ec)]();}[_0x29b95d(0x545)](){const _0xe3d761=_0x29b95d;super[_0xe3d761(0x545)](),this[_0xe3d761(0x360)]['forEach']((_0x3cb87b,_0x197b2a)=>this[_0xe3d761(0x56c)](_0x197b2a)),this[_0xe3d761(0x256)]&&window['clearInterval'](this[_0xe3d761(0x256)]);}[_0x29b95d(0x340)](_0x2bbcfb){return this['_ensureSubject'](_0x2bbcfb)['pipe'](g['distinctUntilChanged']());}[_0x29b95d(0x2ee)](_0x16aefb){const _0x29fe06=_0x29b95d;this['_selfUnitIDs'][_0x29fe06(0x509)]===0x0&&this[_0x29fe06(0x420)](),this[_0x29fe06(0x479)]['add'](_0x16aefb),this[_0x29fe06(0x541)]({'type':0x0,'memberID':this[_0x29fe06(0x27c)],'unitIDs':[_0x16aefb],'isForwarded':!0x1});}[_0x29b95d(0x321)](_0xd53d68){const _0x4140f1=_0x29b95d;this[_0x4140f1(0x479)][_0x4140f1(0x485)](_0xd53d68),this[_0x4140f1(0x479)][_0x4140f1(0x509)]===0x0&&this[_0x4140f1(0x256)]&&window[_0x4140f1(0x445)](this['_heartbeatTimer']);}[_0x29b95d(0x2ec)](){const _0xfe1b15=_0x29b95d;this[_0xfe1b15(0x2f6)](a[_0xfe1b15(0x273)](g[_0xfe1b15(0x520)](window,_0xfe1b15(0x2bd))[_0xfe1b15(0x1e8)](_0x320706=>{const _0x37c440=_0xfe1b15;if(_0x320706[_0x37c440(0x530)]!==Je||!_0x320706[_0x37c440(0x2b2)])return;const _0x5bee98=JSON[_0x37c440(0x457)](_0x320706[_0x37c440(0x2b2)]);this[_0x37c440(0x2b0)](_0x5bee98);}))),window[_0xfe1b15(0x209)](_0xfe1b15(0x240),()=>this[_0xfe1b15(0x541)]({'type':0x1,'memberID':this[_0xfe1b15(0x27c)],'unitIDs':Array[_0xfe1b15(0x39a)](this[_0xfe1b15(0x479)])}));}[_0x29b95d(0x2b0)](_0x230967){const _0x5e8e4a=_0x29b95d;switch(_0x230967[_0x5e8e4a(0x46c)]){case 0x0:this[_0x5e8e4a(0x3a7)](_0x230967);break;case 0x1:this['_handleLeaveEvent'](_0x230967);break;case 0x2:this[_0x5e8e4a(0x3c9)](_0x230967);break;}}[_0x29b95d(0x3a7)](_0x345dfa){const _0x4c1d19=_0x29b95d,{unitIDs:_0x23e5ee,memberID:_0x26e620,isForwarded:_0x4ac7ef}=_0x345dfa;_0x23e5ee[_0x4c1d19(0x3b0)](_0x4359ef=>{const _0x2adaa8=_0x4c1d19;if(!_0x4ac7ef&&this[_0x2adaa8(0x4fa)]['has'](_0x4359ef)&&this[_0x2adaa8(0x1d3)](_0x4359ef)[_0x2adaa8(0x4e8)](0x1),!this['_unitOnClients']['has'](_0x4359ef)||!this[_0x2adaa8(0x4fa)][_0x2adaa8(0x2d3)](_0x4359ef)[_0x2adaa8(0x237)](_0x26e620)){const _0x343b6d=this['_unitOnClients'][_0x2adaa8(0x2d3)](_0x4359ef)||new Set();_0x343b6d['add'](_0x26e620),this['_unitOnClients']['set'](_0x4359ef,_0x343b6d),this['_scheduleClearOtherTimer'](_0x26e620);}}),_0x4ac7ef||this['_send']({'type':0x0,'memberID':this[_0x4c1d19(0x27c)],'unitIDs':[...this[_0x4c1d19(0x479)]],'isForwarded':!0x0});}[_0x29b95d(0x21a)](_0xe493d2){const _0x9f7971=_0x29b95d;this[_0x9f7971(0x56c)](_0xe493d2);const _0x23728c=window[_0x9f7971(0x52d)](()=>{const _0x454869=_0x9f7971;this[_0x454869(0x4fa)][_0x454869(0x3b0)](_0x8e1b8f=>{const _0x4acd83=_0x454869;_0x8e1b8f[_0x4acd83(0x485)](_0xe493d2);});},ze*0x2);this[_0x9f7971(0x360)][_0x9f7971(0x470)](_0xe493d2,_0x23728c);}['_removeClearOtherTimer'](_0x17a5ac){const _0x1929a1=_0x29b95d;if(this[_0x1929a1(0x360)][_0x1929a1(0x237)](_0x17a5ac)){const _0xa1bb15=this[_0x1929a1(0x360)]['get'](_0x17a5ac);_0xa1bb15&&window[_0x1929a1(0x553)](_0xa1bb15),this[_0x1929a1(0x360)][_0x1929a1(0x470)](_0x17a5ac,null);}}[_0x29b95d(0x2cb)](_0x404e47){const _0x235745=_0x29b95d,{memberID:_0xef3d52,unitIDs:_0x1c3f61}=_0x404e47;_0x1c3f61[_0x235745(0x3b0)](_0x5570b0=>{const _0x511e18=_0x235745;var _0x409393;const _0x25d0b2=this[_0x511e18(0x4fa)][_0x511e18(0x2d3)](_0x5570b0);_0x25d0b2&&(_0x25d0b2['delete'](_0xef3d52),(_0x409393=this[_0x511e18(0x1d3)](_0x5570b0))==null||_0x409393[_0x511e18(0x4e8)](_0x25d0b2[_0x511e18(0x509)]===0x0?0x0:0x1));}),this[_0x235745(0x56c)](_0xef3d52);}[_0x29b95d(0x3c9)](_0x5e52a5){const _0x4572bb=_0x29b95d;this[_0x4572bb(0x21a)](_0x5e52a5[_0x4572bb(0x228)]);}[_0x29b95d(0x541)](_0x5be49b){const _0xde0cdf=_0x29b95d;localStorage['setItem'](Je,JSON[_0xde0cdf(0x1e7)](_0x5be49b));}['_scheduleHeartbeat'](){const _0x1c0929=_0x29b95d;this[_0x1c0929(0x256)]=window[_0x1c0929(0x255)](()=>{const _0x4f3c08=_0x1c0929;this[_0x4f3c08(0x541)]({'type':0x2,'memberID':this['_id']});},ze);}[_0x29b95d(0x1d3)](_0x5b1b16){const _0x10f306=_0x29b95d;return this[_0x10f306(0x2d0)]['has'](_0x5b1b16)||this[_0x10f306(0x2d0)][_0x10f306(0x470)](_0x5b1b16,new g['BehaviorSubject'](0x0)),this[_0x10f306(0x2d0)][_0x10f306(0x2d3)](_0x5b1b16);}}var us=Object[_0x29b95d(0x2f8)],ds=Object['getOwnPropertyDescriptor'],Ss=(_0x49a350,_0x67c34b,_0x525bda,_0x55bca3)=>{const _0x55dbd0=_0x29b95d;for(var _0x520f0b=_0x55bca3>0x1?void 0x0:_0x55bca3?ds(_0x67c34b,_0x525bda):_0x67c34b,_0x303f81=_0x49a350[_0x55dbd0(0x49e)]-0x1,_0x4b478a;_0x303f81>=0x0;_0x303f81--)(_0x4b478a=_0x49a350[_0x303f81])&&(_0x520f0b=(_0x55bca3?_0x4b478a(_0x67c34b,_0x525bda,_0x520f0b):_0x4b478a(_0x520f0b))||_0x520f0b);return _0x55bca3&&_0x520f0b&&us(_0x67c34b,_0x525bda,_0x520f0b),_0x520f0b;},Ze=(_0x5ae60a,_0x2d7e3e)=>(_0x167a3c,_0xc315f7)=>_0x2d7e3e(_0x167a3c,_0xc315f7,_0x5ae60a);let ve=class{constructor(_0x4c6165,_0xee9a96){const _0x5d9837=_0x29b95d;this[_0x5d9837(0x42b)]=_0x4c6165,this[_0x5d9837(0x4ed)]=_0xee9a96;}[_0x29b95d(0x473)](_0x5191ef){const _0x176dec=_0x29b95d;this[_0x176dec(0x4db)](_0x5191ef),this[_0x176dec(0x51e)](_0x5191ef);}['transformRemoteChangeset'](_0x5255a3){const _0x20693f=_0x29b95d,_0x1113eb=this['_injector'][_0x20693f(0x2d3)](y[_0x20693f(0x558)]),{redoCache:_0x1faea8}=_0x1113eb[_0x20693f(0x461)]();if(_0x1faea8[_0x20693f(0x49e)]===0x0)return _0x5255a3;let _0x51b696=a[_0x20693f(0x4b1)]['deepClone'](_0x5255a3[_0x20693f(0x34c)][0x0]);for(let _0x1caf80=0x0;_0x1caf80<_0x1faea8[_0x20693f(0x49e)];_0x1caf80++){const _0xc3c2c5={'id':_0x20693f(0x400),'params':{..._0x1faea8[_0x1caf80]}},_0x51216d=this[_0x20693f(0x4ed)]['transformMutation'](_0x51b696,_0xc3c2c5,!0x1);if(u['isTransformMutationFailure'](_0x51216d))throw _0x51216d[_0x20693f(0x383)];_0x51b696=_0x51216d['m1Prime'];}return{...a[_0x20693f(0x4b1)]['deepClone'](_0x5255a3),'mutations':[_0x51b696]};}[_0x29b95d(0x4db)](_0x23120a){const _0x1b127c=_0x29b95d,_0x5a8283=this[_0x1b127c(0x42b)][_0x1b127c(0x2d3)](y[_0x1b127c(0x558)]),{undoCache:_0x152cb4,redoCache:_0x2a85c1}=_0x5a8283[_0x1b127c(0x461)]();if(_0x152cb4['length']===0x0||_0x2a85c1[_0x1b127c(0x49e)]===0x0)return;const _0x43050d=[],_0xd38b26=[];let _0x2aaae0=a[_0x1b127c(0x4b1)][_0x1b127c(0x419)](_0x23120a[_0x1b127c(0x34c)][0x0]),_0x12c1dd=a[_0x1b127c(0x4b1)][_0x1b127c(0x419)](_0x23120a[_0x1b127c(0x34c)][0x0]);for(let _0x27ed19=_0x152cb4[_0x1b127c(0x49e)]-0x1;_0x27ed19>=0x0;_0x27ed19--){const _0x5de519={'id':_0x1b127c(0x400),'params':{..._0x152cb4[_0x27ed19]}},_0x5dd9af={'id':_0x1b127c(0x400),'params':{..._0x2a85c1[_0x27ed19]}},_0x2a89ed=this['_transformService'][_0x1b127c(0x219)](_0x2aaae0,_0x5de519,!0x1),_0x3dc624=this[_0x1b127c(0x4ed)][_0x1b127c(0x219)](_0x12c1dd,_0x5dd9af,!0x1);if(u[_0x1b127c(0x566)](_0x2a89ed))throw _0x2a89ed['error'];if(u['isTransformMutationFailure'](_0x3dc624))throw _0x3dc624['error'];_0x43050d[_0x1b127c(0x4b5)](_0x2a89ed[_0x1b127c(0x297)][_0x1b127c(0x29d)]),_0xd38b26['unshift'](_0x3dc624[_0x1b127c(0x297)][_0x1b127c(0x29d)]),_0x2aaae0=_0x2a89ed['m1Prime'],_0x12c1dd=_0x3dc624[_0x1b127c(0x4f4)];}_0x5a8283[_0x1b127c(0x2b3)]({'undoCache':_0x43050d,'redoCache':_0xd38b26});}[_0x29b95d(0x51e)](_0x214612){const _0x1e588b=_0x29b95d,_0x4c8d2c=this[_0x1e588b(0x42b)][_0x1e588b(0x2d3)](y['IMEInputManagerService']),_0x585037=_0x4c8d2c[_0x1e588b(0x39e)]();if(_0x585037==null)return;const _0x351672=[{'id':_0x1e588b(0x400),'params':{'unitId':_0x214612['unitID'],'actions':null,'textRanges':[_0x585037]}}],_0x35630e=this[_0x1e588b(0x4ed)][_0x1e588b(0x378)](_0x214612,_0x351672);if(!u[_0x1e588b(0x35c)](_0x35630e))throw _0x35630e[_0x1e588b(0x383)];const _0x5ad740=_0x35630e[_0x1e588b(0x297)][0x0][_0x1e588b(0x29d)]['textRanges'];Array[_0x1e588b(0x4dd)](_0x5ad740)&&_0x5ad740[_0x1e588b(0x49e)]&&_0x4c8d2c[_0x1e588b(0x41c)](_0x5ad740[0x0]);}};ve=Ss([Ze(0x0,h['Inject'](h['Injector'])),Ze(0x1,u[_0x29b95d(0x551)])],ve);var vs=Object['defineProperty'],gs=Object[_0x29b95d(0x516)],fs=(_0x116e59,_0x31016e,_0x2b52b3,_0x52814a)=>{const _0x3335d8=_0x29b95d;for(var _0x41de54=_0x52814a>0x1?void 0x0:_0x52814a?gs(_0x31016e,_0x2b52b3):_0x31016e,_0x158723=_0x116e59[_0x3335d8(0x49e)]-0x1,_0x3da73c;_0x158723>=0x0;_0x158723--)(_0x3da73c=_0x116e59[_0x158723])&&(_0x41de54=(_0x52814a?_0x3da73c(_0x31016e,_0x2b52b3,_0x41de54):_0x3da73c(_0x41de54))||_0x41de54);return _0x52814a&&_0x41de54&&vs(_0x31016e,_0x2b52b3,_0x41de54),_0x41de54;},Qe=(_0x3881f8,_0x588288)=>(_0x34176b,_0x2c07f8)=>_0x588288(_0x34176b,_0x2c07f8,_0x3881f8);let ge=class{constructor(_0x31ec4e,_0x2d9eb8){this['_injector']=_0x31ec4e,this['_transformService']=_0x2d9eb8;}['transformSelections'](_0x1dfe98){const _0x41f43d=_0x29b95d;var _0x131241;const _0x1a78af=this[_0x41f43d(0x42b)][_0x41f43d(0x2d3)](y[_0x41f43d(0x2a9)]),_0x286e7f=(_0x131241=_0x1a78af[_0x41f43d(0x3e6)]())!=null?_0x131241:[],_0x3bc322=_0x286e7f==null?void 0x0:_0x286e7f[_0x41f43d(0x2a0)](y['serializeTextRange']);if(_0x3bc322[_0x41f43d(0x49e)]===0x0)return;const _0x48c432=[{'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x1dfe98[_0x41f43d(0x1c8)],'actions':null,'textRanges':_0x3bc322}}],_0x251f1e=this['_transformService'][_0x41f43d(0x378)](_0x1dfe98,_0x48c432);if(!u[_0x41f43d(0x35c)](_0x251f1e))throw _0x251f1e[_0x41f43d(0x383)];const _0x150ef1=_0x251f1e[_0x41f43d(0x297)][0x0]['params'][_0x41f43d(0x382)];Array[_0x41f43d(0x4dd)](_0x150ef1)&&_0x150ef1['length']&&_0x1a78af[_0x41f43d(0x501)](_0x150ef1,!0x1);}};ge=fs([Qe(0x0,h['Inject'](h['Injector'])),Qe(0x1,u['ITransformService'])],ge);function bt(_0x3cc960){const _0x3e0f59=_0x29b95d;let _0x29a1ee='';for(const _0x4f50a0 of _0x3cc960){const {startOffset:_0x5cd6e8,endOffset:_0x4cf604,isActive:_0x53c7ab}=_0x4f50a0;_0x29a1ee[_0x3e0f59(0x49e)]&&(_0x29a1ee+=','),_0x29a1ee+=_0x5cd6e8+':'+_0x4cf604+':'+(_0x53c7ab?'1':'0');}return _0x29a1ee;}function ms(_0x5ccf9f){const _0x3eaf22=_0x29b95d,_0x4f94c8=_0x5ccf9f[_0x3eaf22(0x291)](','),_0x2cc7db=[];for(const _0x13c22a of _0x4f94c8){const [_0x3765ad,_0x3d77d9,_0x53a77e]=_0x13c22a[_0x3eaf22(0x291)](':');_0x2cc7db['push']({'startOffset':Number(_0x3765ad),'endOffset':Number(_0x3d77d9),'collapsed':_0x3765ad===_0x3d77d9,'isActive':_0x53a77e==='1'});}return _0x2cc7db[_0x3eaf22(0x2d5)](_0x37647c=>_0x37647c['isActive'])||(_0x2cc7db[0x0][_0x3eaf22(0x351)]=!0x0),_0x2cc7db;}class Ve extends a['RxDisposable']{constructor(){const _0x5c2b3e=_0x29b95d;super(...arguments),d(this,_0x5c2b3e(0x30f),new g[(_0x5c2b3e(0x3cd))](null)),d(this,_0x5c2b3e(0x221),this['_collabCursorState$'][_0x5c2b3e(0x56a)]());}[_0x29b95d(0x338)](_0x43eb19){const _0x21d2ae=_0x29b95d,{unitID:_0x41c9ac,memberID:_0x5c0a96,textRanges:_0x3e2ae0}=_0x43eb19,_0x39a40a=bt(_0x3e2ae0),_0x47aa2a={'unitID':_0x41c9ac,'memberID':_0x5c0a96,'selection':_0x39a40a};this['_collabCursorState$'][_0x21d2ae(0x4e8)](_0x47aa2a);}}var Is=Object[_0x29b95d(0x2f8)],ps=Object[_0x29b95d(0x516)],Es=(_0x33a453,_0x558fac,_0x5465a8,_0x4c9ab6)=>{const _0x3b3100=_0x29b95d;for(var _0x2f5f09=_0x4c9ab6>0x1?void 0x0:_0x4c9ab6?ps(_0x558fac,_0x5465a8):_0x558fac,_0x388fc7=_0x33a453[_0x3b3100(0x49e)]-0x1,_0x371dda;_0x388fc7>=0x0;_0x388fc7--)(_0x371dda=_0x33a453[_0x388fc7])&&(_0x2f5f09=(_0x4c9ab6?_0x371dda(_0x558fac,_0x5465a8,_0x2f5f09):_0x371dda(_0x2f5f09))||_0x2f5f09);return _0x4c9ab6&&_0x2f5f09&&Is(_0x558fac,_0x5465a8,_0x2f5f09),_0x2f5f09;},et=(_0x5e656d,_0x377577)=>(_0x157708,_0x3d3585)=>_0x377577(_0x157708,_0x3d3585,_0x5e656d);let fe=class{constructor(_0x5ce773,_0x1ed0fd){const _0x5760b7=_0x29b95d;this[_0x5760b7(0x42b)]=_0x5ce773,this['_transformService']=_0x1ed0fd;}[_0x29b95d(0x515)](_0xdda16c){const _0x1bfda1=_0x29b95d;var _0x219409,_0x5bbc22,_0xd6803a,_0x587ccf;const _0x4ae892=this[_0x1bfda1(0x42b)][_0x1bfda1(0x2d3)](E[_0x1bfda1(0x52c)]),{pluginName:_0x1ac285,unitId:_0x1fd071,sheetId:_0x29dc5b}=_0x4ae892[_0x1bfda1(0x2f2)]()||{},_0x387b9c=(_0x219409=_0x4ae892['getSelections']())!=null?_0x219409:[];if(_0x387b9c[_0x1bfda1(0x49e)]===0x0||!_0x1ac285||!_0x1fd071||!_0x29dc5b)return;const _0x5b0afd=[{'id':E[_0x1bfda1(0x35b)]['id'],'params':{'unitId':_0x1fd071,'subUnitId':_0x29dc5b,'pluginName':_0x1ac285,'selections':a['Tools']['deepClone'](_0x387b9c)}}],_0x1413cb=this[_0x1bfda1(0x4ed)][_0x1bfda1(0x378)](_0xdda16c,_0x5b0afd);if(!u[_0x1bfda1(0x35c)](_0x1413cb))throw _0x1413cb[_0x1bfda1(0x383)];const _0x3f6a62=(_0x587ccf=(_0xd6803a=(_0x5bbc22=_0x1413cb[_0x1bfda1(0x297)][0x0])==null?void 0x0:_0x5bbc22['params'])==null?void 0x0:_0xd6803a['selections'])!=null?_0x587ccf:_0x387b9c;Array[_0x1bfda1(0x4dd)](_0x3f6a62)&&_0x3f6a62[_0x1bfda1(0x49e)]&&this[_0x1bfda1(0x42b)]['get'](a['ICommandService'])['executeCommand'](E[_0x1bfda1(0x35b)]['id'],{'unitId':_0x1fd071,'subUnitId':_0x29dc5b,'pluginName':_0x1ac285,'selections':_0x3f6a62});}};fe=Es([et(0x0,h['Inject'](h[_0x29b95d(0x380)])),et(0x1,u[_0x29b95d(0x551)])],fe);const Cs=new Set([E[_0x29b95d(0x3aa)]['id']]);function bs(_0x4fd3c3,_0x1c09f5,_0x35e2d1,_0x47ee51,_0x264c38){const _0x2c529f=_0x29b95d;var _0x3c17ef,_0xec3fc6,_0x5b2bd7,_0x5328ec;const _0x2c99af=[];for(const _0x492af4 of _0x4fd3c3)if(Cs[_0x2c529f(0x237)](_0x492af4['id'])){if(_0x2c99af[_0x2c529f(0x49e)]>0x0)break;_0x2c99af[_0x2c529f(0x346)](_0x492af4);break;}else _0x2c99af[_0x2c529f(0x346)](_0x492af4);const _0x1c5a14=(_0xec3fc6=(_0x3c17ef=_0x264c38['getCurrentUser']())==null?void 0x0:_0x3c17ef[_0x2c529f(0x512)])!=null?_0xec3fc6:_0x2c529f(0x1d4),_0x260dd5=(_0x5328ec=(_0x5b2bd7=_0x264c38[_0x2c529f(0x521)]())==null?void 0x0:_0x5b2bd7[_0x2c529f(0x228)])!=null?_0x5328ec:_0x2c529f(0x1d4);return{'changeset':{'unitID':_0x1c09f5,'type':u['mapDocumentTypeToUniverType'](_0x35e2d1['getUnitType'](_0x1c09f5)),'baseRev':_0x47ee51[_0x2c529f(0x372)](_0x1c09f5),'revision':0x0,'userID':_0x1c5a14,'memberID':_0x260dd5,'mutations':_0x2c99af},'pendingMutations':_0x4fd3c3[_0x2c529f(0x489)](_0x2c99af[_0x2c529f(0x49e)])};}function Ts(_0x461395,_0x3bf4d4,_0xfd5214,_0x59c1fc,_0x350f31){const _0x283b6e=_0x29b95d;var _0x9fcfd4,_0x39daa2,_0x2e26fd,_0x8056ca;const _0x3ced45=[_0x461395[_0x283b6e(0x2de)]((_0x5572f1,_0x1e55de)=>{const _0x211370=_0x283b6e;var _0x1a7cb2;const {id:_0x2a6214}=_0x5572f1,{id:_0x31bab0,type:_0x2467a5}=_0x1e55de,_0x18b205=(_0x1a7cb2=_0x5572f1[_0x211370(0x29d)])!=null?_0x1a7cb2:{'actions':null},_0x464009=_0x1e55de[_0x211370(0x29d)];if(_0x2a6214&&_0x2a6214!==_0x31bab0)throw new Error(_0x211370(0x227)+_0x2a6214+_0x211370(0x534)+_0x31bab0+'.');return{..._0x5572f1,'id':_0x31bab0,'type':_0x2467a5,'params':{'unitId':_0x464009[_0x211370(0x3f4)],'textRanges':_0x464009[_0x211370(0x382)],'actions':a['JSONX'][_0x211370(0x396)](_0x18b205[_0x211370(0x324)],_0x464009['actions'])}};},{})],_0x2fa915=(_0x39daa2=(_0x9fcfd4=_0x350f31[_0x283b6e(0x521)]())==null?void 0x0:_0x9fcfd4[_0x283b6e(0x512)])!=null?_0x39daa2:_0x283b6e(0x1d4),_0x38293d=(_0x8056ca=(_0x2e26fd=_0x350f31[_0x283b6e(0x521)]())==null?void 0x0:_0x2e26fd[_0x283b6e(0x228)])!=null?_0x8056ca:_0x283b6e(0x1d4);return{'changeset':{'unitID':_0x3bf4d4,'type':u[_0x283b6e(0x4bd)](_0xfd5214[_0x283b6e(0x236)](_0x3bf4d4)),'baseRev':_0x59c1fc[_0x283b6e(0x372)](_0x3bf4d4),'revision':0x0,'userID':_0x2fa915,'memberID':_0x38293d,'mutations':_0x3ced45},'pendingMutations':[]};}var Rs=Object['defineProperty'],Os=Object[_0x29b95d(0x516)],K=(_0x338633,_0x1bf5a1,_0x1af9a1,_0x12512f)=>{const _0x36abba=_0x29b95d;for(var _0xbc592e=_0x12512f>0x1?void 0x0:_0x12512f?Os(_0x1bf5a1,_0x1af9a1):_0x1bf5a1,_0x5392a8=_0x338633[_0x36abba(0x49e)]-0x1,_0x39b5ae;_0x5392a8>=0x0;_0x5392a8--)(_0x39b5ae=_0x338633[_0x5392a8])&&(_0xbc592e=(_0x12512f?_0x39b5ae(_0x1bf5a1,_0x1af9a1,_0xbc592e):_0x39b5ae(_0xbc592e))||_0xbc592e);return _0x12512f&&_0xbc592e&&Rs(_0x1bf5a1,_0x1af9a1,_0xbc592e),_0xbc592e;},f=(_0xcf84b8,_0xaf77d)=>(_0x49ef44,_0x54e8f8)=>_0xaf77d(_0x49ef44,_0x54e8f8,_0xcf84b8),U=(_0x1a5aa9=>(_0x1a5aa9[_0x29b95d(0x415)]=_0x29b95d(0x46e),_0x1a5aa9['SYNCED']=_0x29b95d(0x357),_0x1a5aa9[_0x29b95d(0x2fd)]=_0x29b95d(0x468),_0x1a5aa9[_0x29b95d(0x3d0)]=_0x29b95d(0x241),_0x1a5aa9['AWAITING_WITH_PENDING']=_0x29b95d(0x215),_0x1a5aa9['FETCH_MISS']=_0x29b95d(0x3e7),_0x1a5aa9[_0x29b95d(0x38c)]='conflict',_0x1a5aa9[_0x29b95d(0x234)]=_0x29b95d(0x35d),_0x1a5aa9))(U||{});class X{constructor(_0x4b1126,_0x1e29fc,_0xda17fa,_0x259200,_0x3409e5,_0x2e3862,_0x35f330,_0x32790c,_0x24da03){const _0xab7c38=_0x29b95d;d(this,'_awaitingChangeset',null),d(this,_0xab7c38(0x3b8),[]),(this['unitID']=_0x4b1126,this[_0xab7c38(0x46c)]=_0x1e29fc,this[_0xab7c38(0x28e)]=_0x3409e5,this[_0xab7c38(0x4c9)]=_0x2e3862,this[_0xab7c38(0x562)]=_0x35f330,this[_0xab7c38(0x2e2)]=_0x32790c,this[_0xab7c38(0x3bf)]=_0x24da03,this[_0xab7c38(0x53b)]=_0xda17fa,this[_0xab7c38(0x3b8)]=_0x259200);}['_checkMissing'](_0x11220d){const _0x4e1b3d=_0x29b95d,_0x13625e=this[_0x4e1b3d(0x2e2)]['getCurrentRevForDocument'](this['unitID']);return _0x11220d[_0x4e1b3d(0x2ef)]>_0x13625e+0x1?(this[_0x4e1b3d(0x28e)][_0x4e1b3d(0x33b)]({'from':_0x13625e,'to':_0x11220d[_0x4e1b3d(0x2ef)]-0x1}),!0x0):!0x1;}[_0x29b95d(0x20f)](_0x3ebba4){const _0x38fc79=_0x29b95d;this[_0x38fc79(0x562)][_0x38fc79(0x226)](this[_0x38fc79(0x1c8)],_0x3ebba4);}[_0x29b95d(0x527)](_0x510a80){const _0x145754=_0x29b95d;var _0x196ce8,_0x24c4e5;(_0x24c4e5=(_0x196ce8=this[_0x145754(0x28e)])[_0x145754(0x540)])==null||_0x24c4e5[_0x145754(0x3a1)](_0x196ce8,_0x510a80);}[_0x29b95d(0x211)](_0x1da076){const _0x35a3c3=_0x29b95d;var _0x2ee0e6,_0x34c98d;return(_0x34c98d=(_0x2ee0e6=this[_0x35a3c3(0x28e)])[_0x35a3c3(0x43f)])==null?void 0x0:_0x34c98d[_0x35a3c3(0x3a1)](_0x2ee0e6,_0x1da076);}[_0x29b95d(0x33a)](_0x356495){const _0x569476=_0x29b95d;var _0x584a6c,_0x2e4908,_0x3bbe46;return(_0x3bbe46=(_0x2e4908=(_0x584a6c=this[_0x569476(0x28e)])[_0x569476(0x397)])==null?void 0x0:_0x2e4908[_0x569476(0x3a1)](_0x584a6c,_0x356495))!=null?_0x3bbe46:_0x356495;}['_syncEditingCollabCursor'](_0x4c7130){const _0xd01233=_0x29b95d;var _0x4e12a5,_0x5ba6ca;if(this[_0xd01233(0x46c)]===j[_0xd01233(0x2a2)]){const {unitID:_0x3b6304,mutations:_0x37a452,memberID:_0x17effc}=_0x4c7130,_0x4ce45b=_0x37a452[0x0][_0xd01233(0x29d)][_0xd01233(0x382)];Array[_0xd01233(0x4dd)](_0x4ce45b)&&_0x4ce45b['length']>0x0&&((_0x5ba6ca=(_0x4e12a5=this[_0xd01233(0x28e)])[_0xd01233(0x377)])==null||_0x5ba6ca[_0xd01233(0x3a1)](_0x4e12a5,{'unitID':_0x3b6304,'memberID':_0x17effc,'textRanges':_0x4ce45b}));}}[_0x29b95d(0x2a4)](){const _0x52fddc=_0x29b95d;this[_0x52fddc(0x3bf)][_0x52fddc(0x483)](this[_0x52fddc(0x1c8)],this[_0x52fddc(0x46c)],this[_0x52fddc(0x53b)],this['_pendingMutations']);}[_0x29b95d(0x510)](){const _0x2f0f07=_0x29b95d;return this[_0x2f0f07(0x2e2)][_0x2f0f07(0x372)](this[_0x2f0f07(0x1c8)]);}[_0x29b95d(0x1e3)](){const _0x21f990=_0x29b95d;this[_0x21f990(0x2e2)]['incrementRevForDocument'](this[_0x21f990(0x1c8)]);}['_executeRemoteChangeset'](_0x34c1eb){const _0x1d9624=_0x29b95d;var _0x5c5d0d;const _0x3ec606=this[_0x1d9624(0x33a)](_0x34c1eb),_0x33e2a3=a[_0x1d9624(0x460)](_0x3ec606['mutations'],this[_0x1d9624(0x4c9)],{'fromCollab':!0x0});if(!_0x33e2a3[_0x1d9624(0x2c8)])throw _0x33e2a3[_0x1d9624(0x383)]instanceof Error?_0x33e2a3[_0x1d9624(0x383)]:new Error((_0x5c5d0d=_0x33e2a3[_0x1d9624(0x383)])!=null?_0x5c5d0d:_0x1d9624(0x2c4));this[_0x1d9624(0x211)](_0x3ec606),this['_transformUndoredo'](_0x34c1eb),this[_0x1d9624(0x527)](_0x3ec606),this[_0x1d9624(0x2c1)](_0x3ec606),this['_incrementRevisionNumber']();}}let ae=class extends X{constructor(_0x12b038,_0x41cca9,_0x3a1b3b,_0x151485,_0x424b83,_0x340b3e,_0x42f376,_0x563e73,_0x8ea4c5){const _0x50dc81=_0x29b95d;super(_0x12b038,_0x41cca9,null,[],_0x3a1b3b,_0x563e73,_0x42f376,_0x151485,_0x424b83),d(this,_0x50dc81(0x341),'synced'),(this[_0x50dc81(0x42b)]=_0x340b3e,this[_0x50dc81(0x3cb)]=_0x8ea4c5);}['appendMutation'](_0x2a30c7){const _0x444363=_0x29b95d,_0x1e1c36=this[_0x444363(0x42b)][_0x444363(0x1db)]($,this[_0x444363(0x1c8)],this[_0x444363(0x46c)],[_0x2a30c7],this[_0x444363(0x28e)]);return _0x1e1c36['_schedule'](),_0x1e1c36[_0x444363(0x2a4)](),_0x1e1c36;}[_0x29b95d(0x438)](_0x1e4beb){const _0x506763=_0x29b95d;if(this['_checkMissing'](_0x1e4beb))return this[_0x506763(0x42b)]['createInstance'](x,this[_0x506763(0x1c8)],this[_0x506763(0x46c)],null,[],null,[_0x1e4beb],this[_0x506763(0x28e)]);try{return this[_0x506763(0x1ce)](_0x1e4beb),this;}catch(_0x293e11){return this[_0x506763(0x3cb)][_0x506763(0x383)]('[CollaborationController]:\x20remote\x20changeset\x20applied\x20error.',_0x293e11),this;}}[_0x29b95d(0x54a)](){throw new Error('[SyncedState]:\x20received\x20acknowledgement.');}[_0x29b95d(0x532)](){throw new Error('[SyncedState]:\x20received\x20rejection.');}[_0x29b95d(0x416)](){const _0x5afec4=_0x29b95d;return this['_injector']['createInstance'](B,this[_0x5afec4(0x1c8)],this['type'],null,[],this[_0x5afec4(0x28e)]);}[_0x29b95d(0x38a)](){return this;}[_0x29b95d(0x446)](){const _0x1c0cbf=_0x29b95d;throw new Error(_0x1c0cbf(0x24a));}};ae=K([f(0x3,h['Inject'](u[_0x29b95d(0x4c3)])),f(0x4,h[_0x29b95d(0x563)](exports[_0x29b95d(0x45c)])),f(0x5,h[_0x29b95d(0x563)](h['Injector'])),f(0x6,a['IUndoRedoService']),f(0x7,a['ICommandService']),f(0x8,a[_0x29b95d(0x50d)])],ae);let $=class extends X{constructor(_0x2cbc46,_0x450285,_0x1d4cbb,_0x1107d2,_0xc06d10,_0x5d0376,_0x5dffc1,_0x342625,_0x57e48c,_0x24c6d1,_0x1d1adb,_0x2e8e16,_0x133b7f,_0x4f0488){const _0x152fdb=_0x29b95d;super(_0x2cbc46,_0x450285,null,_0x1d4cbb,_0x1107d2,_0x24c6d1,_0x4f0488,_0x5d0376,_0x5dffc1),d(this,_0x152fdb(0x341),_0x152fdb(0x468)),d(this,_0x152fdb(0x2ac),null),d(this,_0x152fdb(0x1f8),null),(this['_injector']=_0xc06d10,this[_0x152fdb(0x258)]=_0x342625,this[_0x152fdb(0x3cb)]=_0x57e48c,this['_configService']=_0x1d1adb,this[_0x152fdb(0x4ed)]=_0x2e8e16,this[_0x152fdb(0x50a)]=_0x133b7f);}[_0x29b95d(0x2ed)](_0x20c478){const _0x2297cb=_0x29b95d;return this[_0x2297cb(0x3b8)][_0x2297cb(0x346)](_0x20c478),this[_0x2297cb(0x2a4)](),this;}['onRemoteChangeset'](_0x37361b){const _0x27fac=_0x29b95d;if(this[_0x27fac(0x495)](_0x37361b))return this['_clearScheduledTask'](),this[_0x27fac(0x42b)]['createInstance'](x,this[_0x27fac(0x1c8)],this[_0x27fac(0x46c)],null,this[_0x27fac(0x3b8)],null,[_0x37361b],this[_0x27fac(0x28e)]);try{const _0x1725e6=this[_0x27fac(0x4ed)][_0x27fac(0x378)](_0x37361b,this[_0x27fac(0x3b8)]);if(u[_0x27fac(0x35c)](_0x1725e6)){const {c1Prime:_0xc51367,m2Prime:_0x2eda7}=_0x1725e6;this[_0x27fac(0x1ce)](_0xc51367);const _0x41a563=this[_0x27fac(0x42b)][_0x27fac(0x1db)]($,this[_0x27fac(0x1c8)],this[_0x27fac(0x46c)],_0x2eda7,this[_0x27fac(0x28e)]);return this[_0x27fac(0x31d)](),_0x41a563['_schedule'](this[_0x27fac(0x2ac)]?Math[_0x27fac(0x459)](0x0,new Date()['getTime']()-this[_0x27fac(0x2ac)]):this[_0x27fac(0x23c)]()),_0x41a563;}throw _0x1725e6[_0x27fac(0x383)];}catch(_0x35bbe9){return this['_logService']['error'](_0x35bbe9),this[_0x27fac(0x524)](!0x1);}}[_0x29b95d(0x54a)](){const _0x11a2ed=_0x29b95d;throw new Error(_0x11a2ed(0x1d9));}[_0x29b95d(0x532)](){throw new Error('[PendingState]:\x20received\x20rejection.');}[_0x29b95d(0x416)](){const _0x20eef0=_0x29b95d;return this[_0x20eef0(0x31d)](),this[_0x20eef0(0x42b)][_0x20eef0(0x1db)](B,this[_0x20eef0(0x1c8)],this[_0x20eef0(0x46c)],null,this[_0x20eef0(0x3b8)],this['_handler']);}[_0x29b95d(0x38a)](){return this;}[_0x29b95d(0x519)](_0x340be0){const _0x3bb283=_0x29b95d;_0x340be0=_0x340be0!=null?_0x340be0:this['_getSendChangesetTimeout'](),this[_0x3bb283(0x2ac)]=new Date()[_0x3bb283(0x4f3)](),this[_0x3bb283(0x1f8)]=setTimeout(()=>{const _0x1a1fd4=_0x3bb283;this[_0x1a1fd4(0x31d)]();let _0x40a3f4=null;switch(this[_0x1a1fd4(0x46c)]){case j[_0x1a1fd4(0x272)]:{_0x40a3f4=bs(this['_pendingMutations'],this[_0x1a1fd4(0x1c8)],this[_0x1a1fd4(0x50a)],this['_revisionService'],this[_0x1a1fd4(0x258)]);break;}case j[_0x1a1fd4(0x2a2)]:{_0x40a3f4=Ts(this[_0x1a1fd4(0x3b8)],this[_0x1a1fd4(0x1c8)],this[_0x1a1fd4(0x50a)],this['_revisionService'],this[_0x1a1fd4(0x258)]);break;}default:throw new Error('[PendingState]:\x20unhandled\x20univer\x20type:\x20'+this[_0x1a1fd4(0x46c)]+_0x1a1fd4(0x498));}const {changeset:_0x236bdb,pendingMutations:_0x3ec258}=_0x40a3f4;this['_handler'][_0x1a1fd4(0x450)](_0x236bdb);const _0x4789df=_0x3ec258[_0x1a1fd4(0x49e)]?this['_injector'][_0x1a1fd4(0x1db)](H,this[_0x1a1fd4(0x1c8)],this[_0x1a1fd4(0x46c)],_0x236bdb,_0x3ec258,this[_0x1a1fd4(0x28e)]):this[_0x1a1fd4(0x42b)][_0x1a1fd4(0x1db)](k,this['unitID'],this[_0x1a1fd4(0x46c)],_0x236bdb,this[_0x1a1fd4(0x28e)]);_0x4789df[_0x1a1fd4(0x2a4)](),this['_handler'][_0x1a1fd4(0x4d0)](this,_0x4789df);},_0x340be0);}['_getSendChangesetTimeout'](){const _0x26fcd7=_0x29b95d;var _0x2ef2ab;return(_0x2ef2ab=this[_0x26fcd7(0x552)]['getConfig'](_t))!=null?_0x2ef2ab:Ft;}[_0x29b95d(0x446)](){const _0x5efc59=_0x29b95d;throw new Error(_0x5efc59(0x20c));}['_clearScheduledTask'](){const _0x4e8de4=_0x29b95d;this[_0x4e8de4(0x1f8)]!=null&&(clearTimeout(this[_0x4e8de4(0x1f8)]),this['_sendingTimer']=null);}[_0x29b95d(0x524)](_0x1e99cb){const _0x18edd3=_0x29b95d;return this[_0x18edd3(0x31d)](),this[_0x18edd3(0x42b)]['createInstance'](Y,this['unitID'],this[_0x18edd3(0x46c)],null,this[_0x18edd3(0x3b8)],this[_0x18edd3(0x28e)],_0x1e99cb);}};$=K([f(0x4,h[_0x29b95d(0x563)](h[_0x29b95d(0x380)])),f(0x5,h['Inject'](u[_0x29b95d(0x4c3)])),f(0x6,h[_0x29b95d(0x563)](exports[_0x29b95d(0x45c)])),f(0x7,h['Inject'](G)),f(0x8,a[_0x29b95d(0x50d)]),f(0x9,a[_0x29b95d(0x471)]),f(0xa,a[_0x29b95d(0x271)]),f(0xb,u[_0x29b95d(0x551)]),f(0xc,a[_0x29b95d(0x2e6)]),f(0xd,a[_0x29b95d(0x525)])],$);function _0x371b(){const _0x5019e3=['clearInterval','resend','@univerjs/engine-render','activeSheet$','off-line-single_clip0_910_343','colorChannel1','COMMENT_UPDATE','CollaborationSocketService','onPointerMove$','_ws','_onCursorDelete','onSendChangeset','lineTo','LOGIN_URL_KEY','UNDEFINED','findNodePositionByCharIndex','svg','getImageSourceCache','parse','awaitingChangeset','max','_singleActiveUnitService','_getCtorByUniverType','LocalCacheService','children','CHANGESET_ACK','CollaborationEvent','sequenceExecute','getUndoRedoMutationParamsCache','_getAPIPrefixPath','className','SetTextSelectionsOperation','div','transformChangesets','round','pending','_createInitialStateImpl','updateCollaborator','setItem','type','changesets','not_collab','batchAllowed','set','ICommandService','_members','transformIMECache','currentTheme$','@univerjs/network','COLORS','ERROR_IMAGE_TYPE','/object/','_selfUnitIDs','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','/universer-api/file/{fileID}/sign-url','FETCH_MISSING','_uiPartsService','getFocusedUnit','COMPRESS_MUTATION_APPLY','_event$','session.connection-failed','LIVESHARE_REQUEST_HOST','updateOfflineData','_exhaustRemoteChangesetQueue','delete','[FetchMissState]','_unitID','_socket$','slice','Unknown\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','_unitId','_disableEditing','CommentService','leaveEvent','conflict.content','collaboratorID','APPLY_REJECT','registerOnClose','column','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','_checkMissing','measureText','originalMeta','\x20in\x20_schedule.','defIds','getUnhiddenWorksheets','location','_urlService','extend','length','_getAPIPrefix','_syncEditingCollabCursorService','_waitForHeartbeatResponse','show','getTypeOfUnitDisposed$','csAckEvent','newCsEvent','SNAPSHOT_HAS_BEEN_REMOVED','commentUpdate$','_scheduleReconnection','string','NodePositionConvertToCursor','COLLAB_SUBMIT_CHANGESET_URL_KEY','delay','_onJoinRoomEvent','AWAITING_WITH_PENDING','HEARTBEAT_INTERVAL_KEY','_transitionLocked','Tools','CommandType','_getUploadFileURL','_getDocObject','unshift','session','EXCHANGE_SIGN_URL_SERVER_URL_KEY','endRow','TOO_MANY_REQUESTS','Steady','collabStatus.synced','IContextService','mapDocumentTypeToUniverType','_sheetTransformSelectionsService','22VWHDtU','_type','_entityInit$','INVALID_ARGUMENT','RevisionService','CONNECTOR_DATA_TOO_LARGE','onStarting','_collaborationTimeoutTimer','filter','LIVESHARE_TERMINATE','_commandService','[CollaborationUndoRedoService]','_onCursorUpdate','image/gif','CollaborationController','name','_draw','onStateChange','_remoteChangesetQueue','takeUntil','session.will-retry','disableLocalCache','_collaborationPaused','post','_lockTransition','INotificationService','/new_changes','M0\x200H16V16H0z','_transformUndoRedoStack','isTransformChangesetsSuccess','isArray','_toggleOffline','This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!','[CollaborationController]:\x20invalid\x20univer\x20type:\x20','DependentOn','DeleteRangeMoveLeftCommandId','getCellPositionByOffset','_saveTaskMap','socket\x20close','prototype','_lastPointer','next','MessageType','_snapshotService','handleInsertRangeMoveDown','setShapeProps','_transformService','LIVESHARE_NEW_HOST','_range','state$','_isPermissionRej','CollaborationStatusDisplay','getTime','m1Prime','_getAnchorBounding','getSheetBlock','take','_snapshotServerService','MSG_FOR_ERROR','_unitOnClients','Shape','function','submit\x20changeset\x20error!','onlyLocal','onCommandExecuted','createCollaborator','replaceTextRanges','onMissedChangesetFetched','WorkbookEditablePermission','SUCCUSS','IAuthzIoService','getCoordByCell','_scene','_docSkeleton','size','_univerInstanceService','updateCursorEvent','_loadSheet','ILogService','_createInitialState','handleMoveRange','_getCurrentRevision','RemoveColCommandId','userID','online','_joinRoom','transformSelections','getOwnPropertyDescriptor','_socketService','_onRemoteACK','_schedule','[CollaborationSession]:\x20should\x20not\x20send\x20message\x20when\x20the\x20session\x20is\x20offline!','replace','LifecycleStages','getCollabCursors$','_transformPreviousActiveRange','OnLineSingle','fromEvent','getCurrentUser','generateRandomId','cursorInfo$','_onConflict','IUndoRedoService','24uXGcFX','_transformSelections','ICollaborationSocketService','DesktopCollaborationStatusDisplayController','/-/object/-/batch_allowed','height','SelectionManagerService','setTimeout','@wendellhu/redi/react-bindings','@univerjs/sheets','key','objectID','onRemoteRej','_messageService','\x20-\x20','/universer-api/stream/file/upload','@univerjs/sheets-ui','InsertRangeMoveRightCommandId','pauseCollaboration','connection\x20error','target','_awaitingChangeset','create','top','auth.needGotoLoginAlert','resourceIDs','onTransformSelections','_send','JOINING','_onUserLeave','toString','dispose','displayName','permission.content','all','ACTIVE_UNIT_EVENT_CHANNEL','onRemoteAck','APPLY_REVISION_CONFILICT','cursorInfo','collabStatus.notCollab','_state','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','reject','ITransformService','_configService','clearTimeout','@univerjs/drawing','_initStatusComponent','SNAPSHOT_URL_KEY','_docStateChangeManagerService','IMEInputManagerService','RETRY_CONNECTING_INTERVAL','collab-text-range-','_httpService','ISnapshotServerService','_notificationService','close$','debounceTime','socket\x20open.','getImage','_undoRedoService','Inject','_drawRange','fillText','isTransformMutationFailure','INGEST','onPointerLeave$','createElement','asObservable','Unknown\x20user','_removeClearOtherTimer','serializeCombRequest','_updateURLWithCurrentState','saveSheetBlock','onlineStatusTitle','_createSocket','sheetId','startRow','fetching\x20the\x20latest\x20document\x20from\x20the\x20server.','805098oSxNiX','unitID','Subject','DataLoaderController','SEND_CHANGESET_TIMEOUT_KEY','864wxnBGl','DocStateChangeManagerService','_executeRemoteChangeset','registerRefRange','SNAPSHOT_INVALID_SNAPSHOT','@univerjs/core','enableSingleActiveInstanceLock','_ensureSubject','unknown','_hovered','ImageUploadStatusType','liveShareOperation','on-line-single','[PendingState]:\x20received\x20acknowledgement.','_cursorInfo$','createInstance','open$','Disposable','color','switchMap','/universer-api/authz','transformRemoteChangeset','rxjs/operators','_incrementRevisionNumber','pipe','NO_OTHER_CLIENTS_EDITING','useDependency','stringify','subscribe','_applyRemoteChangeset','forwardRef','infoRsp','getSheetObject','serializeRangeWithSheet','_localStorageService','52276orTyYc','OffLineSingle','_getSaveTimeout','unit-cache-','row','c1Prime','liveShareNewHost','_onRemoteRejected','status$','_sendingTimer','_clearTimeoutTimer','loadSheet','history','red300','deleteCollaborator','getUniverSheetInstance','_timeoutTimer','USERS_ENTER','permission.title','...','propertyIsEnumerable','[UniverCollaborationClientPlugin]','/fetchmissing?from=','react','_themeService','fillRule','addEventListener','popstate','onPointerEnter$','[PendingState]:\x20invalid\x20calling\x20to\x20`resend`.','flatMap','listCollaborators','_transformUndoredo','OTHER_CLIENTS_EDITING','_transformIMECache','UNIVER_UNKNOWN','/resources','xlink:href','awaiting_with_pending','listRoles','_commentUpdate$','subUnitId','transformMutation','_scheduleClearOtherTimer','joinRsp','textEncoder','getCurrentUnitForType','_hideTimer','IRenderManagerService','collabStatus.offline','collabCursorState$','removeParam','HEARTBEAT','mergeOverrideWithDependencies','FromArray','transformUndoRedo','Cannot\x20assemble\x20a\x20changeset\x20from\x20multiple\x20mutations\x20of\x20different\x20types:\x20','memberID','/universer-api/snapshot/','_scheduleSaving','icon','collaboration-client.offline-data-not-saved','FAIL','merge','_submitChangeset','HEADER_MENU','unsubscribe','interceptor','SnapshotService','OFFLINE','univerjs-icon\x20univerjs-icon-','getUnitType','has','_removeRoom','tag','@univerjs/docs','_onConnectionOpen','_getSendChangesetTimeout','_onLocalMutation','_docTransformSelectionsService','POST','unload','awaiting','_getRedoStack','1em','UniverCollaborationPlugin','path','InsertColCommandId','catch','min','_userManagerService','[SyncedState]:\x20invalid\x20calling\x20to\x20`resend`.','_waitCount','_sheetSkeletonManagerService','fetching\x20missing\x20changesets\x20from\x20','/universer-api/comb','AuthzIoHttpService','createIdentifier','_scheduleCollaborationTimeoutTimer','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','_renderManagerService','SYNCED','setInterval','_heartbeatTimer','UNIVER_SLIDE','_memberService','saveOfflineData','/-/object/list','getUnitId','CollaborationSession','_socketReady','c2Prime','_updateState','TEXT_RANGE_LAYER_INDEX','_disabled','clsx','_clearUndo','event$','_clearCollaborationTimeoutTimer','updateMember','_showConflictNotification','univer-pro.collaboration-client-socket-service','_anchorDot','UniverCollaborationClientPlugin','_config','/universer-api/snapshot','_HTTPService','blue400','IPermissionService','debug','IConfigService','UNIVER_SHEET','toDisposable','USERS_LEAVE','RxDisposable','_retryConnectingTimer','_roomMembers$','SessionStatus','_onRecvEvent','_clearLocalCache','_createHandler','_id','then','bottom','isEditing','ERROR_EXCEED_SIZE','_getLoginPath','[CollaborationSessionService]','_getSnapshotAPIPrefix','readAsDataURL','_onCombEvent','image/png','parseChangesetToProtocol','transformStack\x20failed!','handleIRemoveRow','PERMISSION_REJ','[DataLoaderController]','[CollaborationSocketService]:\x20failed\x20to\x20create\x20socket!','transform','_handler','registerHTTPInterceptor','updatePermissionPoint','split','_render','isPermissionRej','IHTTPImplementation','onlineStatus','54JFVTWx','m2Prime','onload','purple300','BuiltInUIPart','registerComponent','fetchMissingChangesets','params','useRef','6096040RYxBRT','map','apply','UNIVER_DOC','LOCAL_CACHE_INTERVAL_KEY','_updateLocalCache','_handleHover','VIEWPORT_KEY','clear','_retryCount','TextSelectionManagerService','getColor','getParam','_scheduleTimestamp','encode','fill','[FetchingMissState]:\x20not\x20expected\x20to\x20receive\x20ack\x20when\x20`this._awaitingChangeset`\x20is\x20null!','_handleEvent','assign','newValue','setUndoRedoMutationParamsCache','\x0aAfter:\x20','addObject','csRejEvent','contains','_anchor','/unit/','[CollaborationEntity]','close','_replayCachedMutations','storage','_saveCache','getConfig','_fetchMissChangesets','_syncEditingCollabCursor','CHANGESET_REVISION_CONFILICT','_color','[CollaborationState]:\x20apply\x20error!','includes','@univerjs/engine-formula','CHANGESET_REJ','result','addImageSourceCache','random','_handleLeaveEvent','mapTo','commentUpdateEvent','univer-pro.collaboration-client.single-active-unit-service','CollaborationSessionService','_unitStatus','EffectRefRangId','allowed','get','#fff','some','_drawAnchor','ILocalStorageService','@univerjs/rpc','_collaborationController','ImageSourceType','[ConflictState]:\x20invalid\x20calling\x20to\x20`resend`.','selections','_commentService','reduce','_localeService','_labelPosition','dispose$','_revisionService','FETCH_MISS','unit','pushState','IUniverInstanceService','LICENSE_DISTRO_REJECTED','getValue','parseProtocolChangeset','handleIRemoveCol','data','_init','appendMutation','editingUnit','revision','ERROR_IMAGE','addObjects','getCurrent','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','LICENSE_IMPORT_SIZE_EXCEEDED','urlChange$','disposeWithMe','getCollabEntity','defineProperty','startsWith','getDocObject','RETRY_CONNECTING_MAX_COUNT','UNKNOWN_CMD','PENDING','sheets','selection','getResourcesRequest','[OfflineState]:\x20received\x20rejection.','_updateStatus','CompressMutationService','_textBubble','_startDocCollabCursor','Warning','idSuffix','setCurrentUser','labelPosition','UniverInstanceType','UPDATE_CURSOR','toRgbString','_cursor','UNAUTHENTICATED','_collabCursorState$','enableLocalCache','_shapes','src','concat','getTypeOfUnitAdded$','_beforeCloseService','none','loadOfflineData','_cursors','defs','_getScale','_document','IBeforeCloseService','_clearScheduledTask','_cachedData','objectType','_sendHeartbeat','disposeUnit','_status$','_updateCollabCursors','actions','UNIVER_COLLABORATION_CLIENT_PLUGIN','attrs','getInterceptPoints','setWaitCount','_session','snapshot','init','_loadDoc','roomInfos','[serializeCombRequest]:\x20should\x20not\x20fall\x20into\x20default\x20branch!','_startSheetCollabCursor','body','beginPath','href','_compressMutationService','getRenderById','Optional','ThemeService','pluginName','syncEditingCollabCursor','_decreaseWaiting','_transformRemoteChangesetByIMECache','onMissingChangesets','fillStyle','_docSyncEditingCollabCursorService','transformByState','_rescheduleHeartbeatEvent','getUnitStatus$','status','&to=','LICENSE_EXPORT_SIZE_EXCEEDED','_clearHeartbeatTimer','rgba(255,\x20255,\x20255,\x200.01)','push','SetWorksheetActivateCommand','_onRefRangeChange','PERMISSION_DENIED','clipPath','LEAVE','mutations','#FFF','/allowed','subscribeEvent','_removeCollabCursors','isActive','isTransformMutationsWithChangesetFailure','RemoveRowCommandId','NEW_CHANGESETS','HEARTBEAT_INTERVAL','_substituteRedoStack','synced','you\x20should\x20override\x20\x22IUndoRedoService\x22\x20provided\x20in\x20\x22core\x22\x20package!','_eventUnsubscribe','deserializeToCombResponse','SetSelectionsOperation','isTransformMutationsWithChangesetSuccess','offline','getUnitOnRev','toStringTag','_clearOtherTimers','LIVESHARE_FETCH_OPERATIONS','_name','_onFetchMissResult','5267244XYWuDB','IRemoteInstanceService','_updateSubUnitFromURLParams','evenodd','INTERNAL_ERROR','executeCommand','fetchThroughInterceptors','sessionStatus','change$','cmd','_imageSourceCache','_socketMessageSubscription','70lIUhrV','DocSkeletonManagerService','getCurrentRevForDocument','_assignedColors','[CollaborationSession]','removeMember','Starting','onSyncEditingCollabCursor','transformMutationsWithChangeset','@univerjs/ui','error$','WebURLService','_permissionService','univer-online-status-title','_sendHeartbeatTimer','_setupBeforeClosingHandler','Injector','YUUMI_UNABLE_LOAD_URL','textRanges','error','save\x20fail\x20reason\x20is\x20','Rect','_sessionStatus$','OnLifecycle','complete','_onConnectionFailed','toggleOnline','baseRev','CONFLICT','COLLAB_WEB_SOCKET_URL_KEY','handleDeleteRangeMoveLeft','searchParams','save','ONLINE','verdancy600','requireSession','ws://127.0.0.1:8000/universer-api/comb/connect','LIVESHARE_OPERATION','compose','onTransformRemoteChangesetByIMECache','NOT_FOUND','Error','from','onCommentUpdate','YUUMI_URL_COL_OUT_OF_RANGE','moveTo','getActiveRange','_onMessage','/rev/','call','list','_acknowledgedAwaitingChangeset','DisposableCollection','getSheetId','_collabSessionService','_handleJoinEvent','startColumn','_getUndoStack','InsertSheetMutation','ALREADY_EXISTS','Univer','ranges','Plugin','add','forEach','_colorAssignService','_setupSubUnitSync','_change$','UNKNOWN_CODE','rxjs','_getSheetObject','url(#on-line-single_clip0_910_349)','_pendingMutations','?url=','socketService','?size=','restore','put','roomMembers$','_localCacheService','drawWith','arc','209085mSygaU','_queuedRemoteChangesets','UNRECOGNIZED','rev','_state$','collabStatus.syncing','LocaleService','_handleHeartbeatEvent','setParam','_logService','[FetchingMissState]:\x20invalid\x20calling\x20to\x20`resend`.','BehaviorSubject','collab-text-anchor-','text','AWAITING','_online','_onUserJoin','_replaceFileID','_refRangeService','getActiveSheet','_tryEnsureSocket','COMPRESS_MUTATION_SEND','substring','PSEUDO_FETCH_MISSING_RESULT','width','_entities','_sessions','[ClientCollaborationController]:\x20invalid\x20state\x20transition!\x20State\x20transferred\x20from\x20is\x20not\x20the\x20current\x20state.\x0aBefore:\x20','BASE64','assignAColorForMemberID','APPLY_PERMISSION_DENIED','eventID','getRelativeCoord','IMessageService','lodash/debounce','LOCAL_CACHE_INTERVAL','getSelections','fetch_missing','hasOwnProperty','currentSkeleton$','registerBeforeClose','JOIN','CollaborationStatus','session.room-full','Vector2','hide','HEARTBEAT_TIMEOUT_KEY','_clearRedo','_unlockTransition','patch','unitId','getSheetBySheetId','HELLO','subunit','_substituteUndoStack','symbol','_transformStack','_colorIndex','univer-online-status','_initModules','routeKey','_collabCursorController','doc.mutation.rich-text-editing','objects','createSocket','getAncestorScale','closePath','code','failed\x20to\x20apply\x20missed\x20changesets!','EXCHANGE_UPLOAD_FILE_SERVER_URL_KEY','collaborators','XHRHTTPImplementation','message$','SNAPSHOT_SERVER_URL_KEY','/role','black','focused$','values','@univerjs/design','connectInjector','174yyRSoz','putCollaborators','localeService','NOT_COLLAB','toggleOffline','state','getOffsetConfig','deepClone','update','image/jpeg','setActiveRange','permissionRejEvent','_startCollaboration','_docSkeletonManagerService','_scheduleHeartbeat','UUID','serializeTextRange','/collaborator','indexOf','COMPLETION_FINISHED','RECV','_toggleOnline','ThresholdInterceptorFactory','getMemberID','[OfflineState]:\x20invalid\x20calling\x20to\x20`resend`.','_injector','sessionStatus$','Error\x20on\x20receiving\x20event','HTTPService','entries','font','_roomMembers','fromCollab','shareReplay','send','112174PIuegN','_updateLocalCursor','_onRemoteChangeset','onRemoteChangeset','url(#$1','COLLAB_WEB_SOCKET_URL','getMember','_docTransformIMECacheService','runRefRangeMutations','jiqing500','onTransformIME','onMouseMove','collaborationUniverTypes','_socket','getDataModel','_hover'];_0x371b=function(){return _0x5019e3;};return _0x371b();}let k=class extends X{constructor(_0x264a50,_0x2bfff7,_0x1f13e9,_0x53af32,_0x1a8f48,_0x55e9f5,_0x5c947a,_0xa7df8b,_0x4ae076,_0x54301b,_0x10d674){const _0x379db3=_0x29b95d;super(_0x264a50,_0x2bfff7,_0x1f13e9,[],_0x53af32,_0xa7df8b,_0x10d674,_0x55e9f5,_0x5c947a),d(this,_0x379db3(0x341),_0x379db3(0x241)),(this['_injector']=_0x1a8f48,this[_0x379db3(0x3cb)]=_0x4ae076,this[_0x379db3(0x4ed)]=_0x54301b);}[_0x29b95d(0x2ed)](_0x1d01a0){const _0x522df6=_0x29b95d,_0x4576cf=this['_injector']['createInstance'](H,this[_0x522df6(0x1c8)],this[_0x522df6(0x46c)],this['_awaitingChangeset'],[_0x1d01a0],this[_0x522df6(0x28e)]);return _0x4576cf[_0x522df6(0x2a4)](),_0x4576cf;}[_0x29b95d(0x438)](_0x61315b){const _0x4ec742=_0x29b95d;if(this[_0x4ec742(0x495)](_0x61315b))return this[_0x4ec742(0x42b)]['createInstance'](x,this[_0x4ec742(0x1c8)],this['type'],this[_0x4ec742(0x53b)],[],null,[_0x61315b],this[_0x4ec742(0x28e)]);try{const _0x4e745b=this[_0x4ec742(0x4ed)][_0x4ec742(0x466)]([_0x61315b],[this[_0x4ec742(0x53b)]],!0x1);if(u[_0x4ec742(0x4dc)](_0x4e745b)){const {c1Prime:_0xe4de0e,c2Prime:_0x243f2e}=_0x4e745b;this[_0x4ec742(0x1ce)](_0xe4de0e[0x0]),_0x243f2e[0x0][_0x4ec742(0x38b)]=this['_getCurrentRevision']();const _0x1d54cd=this['_injector'][_0x4ec742(0x1db)](k,this[_0x4ec742(0x1c8)],this['type'],_0x243f2e[0x0],this['_handler']);return _0x1d54cd[_0x4ec742(0x2a4)](),_0x1d54cd;}return this[_0x4ec742(0x524)](!0x1);}catch(_0x1c4be5){return this[_0x4ec742(0x3cb)][_0x4ec742(0x383)](_0x1c4be5),this[_0x4ec742(0x524)](!0x1);}}['onRemoteAck'](_0x1ee18c){const _0x6d918e=_0x29b95d,_0x4df2a0=this['_revisionService'][_0x6d918e(0x372)](this[_0x6d918e(0x1c8)]);if(_0x1ee18c['revision']<_0x4df2a0-0x1)return this;if(this['_checkMissing'](_0x1ee18c))return this[_0x6d918e(0x42b)][_0x6d918e(0x1db)](x,this[_0x6d918e(0x1c8)],this[_0x6d918e(0x46c)],null,[],this[_0x6d918e(0x53b)],[],this[_0x6d918e(0x28e)]);this[_0x6d918e(0x1e3)]();const _0x95676b=this['_injector'][_0x6d918e(0x1db)](ae,this[_0x6d918e(0x1c8)],this[_0x6d918e(0x46c)],this['_handler']);return _0x95676b['_updateLocalCache'](),_0x95676b;}[_0x29b95d(0x532)](_0x3ec172){const _0x5c3151=_0x29b95d;return this['_onConflict'](!!(_0x3ec172!=null&&_0x3ec172[_0x5c3151(0x293)]));}[_0x29b95d(0x416)](){const _0x40eb6d=_0x29b95d;return this[_0x40eb6d(0x42b)]['createInstance'](B,this[_0x40eb6d(0x1c8)],this[_0x40eb6d(0x46c)],this[_0x40eb6d(0x53b)],[],this[_0x40eb6d(0x28e)]);}[_0x29b95d(0x38a)](){return this;}[_0x29b95d(0x446)](){const _0x257152=_0x29b95d;this[_0x257152(0x28e)]['onSendChangeset'](this[_0x257152(0x53b)]);}[_0x29b95d(0x524)](_0x4b47a6){const _0x363561=_0x29b95d;return this['_injector'][_0x363561(0x1db)](Y,this[_0x363561(0x1c8)],this['type'],this['_awaitingChangeset'],[],this[_0x363561(0x28e)],_0x4b47a6);}};k=K([f(0x4,h[_0x29b95d(0x563)](h[_0x29b95d(0x380)])),f(0x5,h['Inject'](u[_0x29b95d(0x4c3)])),f(0x6,h[_0x29b95d(0x563)](exports[_0x29b95d(0x45c)])),f(0x7,a[_0x29b95d(0x471)]),f(0x8,a['ILogService']),f(0x9,u[_0x29b95d(0x551)]),f(0xa,a[_0x29b95d(0x525)])],k);let H=class extends X{constructor(_0x421411,_0x86a323,_0x56e472,_0x581f8d,_0x272478,_0x3ab8b4,_0x30a6a9,_0x4b5077,_0x93f789,_0xb908ca,_0x5756a3,_0x41748d){const _0x28bbb1=_0x29b95d;super(_0x421411,_0x86a323,_0x56e472,_0x581f8d,_0x272478,_0x93f789,_0x41748d,_0x30a6a9,_0x4b5077),d(this,_0x28bbb1(0x341),_0x28bbb1(0x215)),(this[_0x28bbb1(0x42b)]=_0x3ab8b4,this[_0x28bbb1(0x3cb)]=_0xb908ca,this[_0x28bbb1(0x4ed)]=_0x5756a3);}[_0x29b95d(0x2ed)](_0x2e8ec6){const _0x445cf4=_0x29b95d;return this[_0x445cf4(0x3b8)][_0x445cf4(0x346)](_0x2e8ec6),this;}[_0x29b95d(0x438)](_0x42a7df){const _0xfb5783=_0x29b95d;if(this[_0xfb5783(0x495)](_0x42a7df))return this[_0xfb5783(0x42b)][_0xfb5783(0x1db)](x,this[_0xfb5783(0x1c8)],this['type'],this[_0xfb5783(0x53b)],this[_0xfb5783(0x3b8)],null,[_0x42a7df],this['_handler']);try{const _0x1d047c=this['_transformService']['transformChangesets']([_0x42a7df],[this['_awaitingChangeset']],!0x1);if(u[_0xfb5783(0x4dc)](_0x1d047c)){const {c1Prime:_0xa8163e,c2Prime:_0x4517c8}=_0x1d047c,_0x13eb1b=this[_0xfb5783(0x4ed)]['transformMutationsWithChangeset'](_0xa8163e[0x0],this['_pendingMutations']);if(u[_0xfb5783(0x35c)](_0x13eb1b)){const {c1Prime:_0x356cdb,m2Prime:_0x1d64be}=_0x13eb1b;return this[_0xfb5783(0x1ce)](_0x356cdb),_0x4517c8[0x0][_0xfb5783(0x38b)]=this[_0xfb5783(0x510)](),this[_0xfb5783(0x42b)][_0xfb5783(0x1db)](H,this[_0xfb5783(0x1c8)],this[_0xfb5783(0x46c)],_0x4517c8[0x0],_0x1d64be,this[_0xfb5783(0x28e)]);}throw _0x13eb1b['error'];}throw _0x1d047c[_0xfb5783(0x383)];}catch(_0x4c63f1){return this['_logService'][_0xfb5783(0x383)](_0x4c63f1),this['_onConflict'](!0x1);}}[_0x29b95d(0x54a)](_0x4e3eb8){const _0x3c72b0=_0x29b95d;if(this[_0x3c72b0(0x495)](_0x4e3eb8))return this[_0x3c72b0(0x42b)][_0x3c72b0(0x1db)](x,this[_0x3c72b0(0x1c8)],this[_0x3c72b0(0x46c)],null,this['_pendingMutations'],this[_0x3c72b0(0x53b)],[],this['_handler']);this['_incrementRevisionNumber']();const _0x2b6be1=this[_0x3c72b0(0x42b)]['createInstance']($,this['unitID'],this[_0x3c72b0(0x46c)],this['_pendingMutations'],this[_0x3c72b0(0x28e)]);return _0x2b6be1[_0x3c72b0(0x519)](),_0x2b6be1[_0x3c72b0(0x2a4)](),_0x2b6be1;}['onRemoteRej'](_0x5e0710){const _0x1e816d=_0x29b95d;return this[_0x1e816d(0x524)](!!(_0x5e0710!=null&&_0x5e0710[_0x1e816d(0x293)]));}[_0x29b95d(0x416)](){const _0x255cb4=_0x29b95d;return this[_0x255cb4(0x42b)][_0x255cb4(0x1db)](B,this[_0x255cb4(0x1c8)],this[_0x255cb4(0x46c)],this['_awaitingChangeset'],this['_pendingMutations'],this['_handler']);}[_0x29b95d(0x38a)](){return this;}[_0x29b95d(0x446)](){const _0x722f56=_0x29b95d;this[_0x722f56(0x28e)]['onSendChangeset'](this[_0x722f56(0x53b)]);}[_0x29b95d(0x524)](_0x23680c){const _0x74d83f=_0x29b95d;return this[_0x74d83f(0x42b)][_0x74d83f(0x1db)](Y,this[_0x74d83f(0x1c8)],this[_0x74d83f(0x46c)],null,this[_0x74d83f(0x3b8)],this['_handler'],_0x23680c);}};H=K([f(0x5,h[_0x29b95d(0x563)](h[_0x29b95d(0x380)])),f(0x6,h[_0x29b95d(0x563)](u['RevisionService'])),f(0x7,h[_0x29b95d(0x563)](exports['LocalCacheService'])),f(0x8,a[_0x29b95d(0x471)]),f(0x9,a[_0x29b95d(0x50d)]),f(0xa,u['ITransformService']),f(0xb,a['IUndoRedoService'])],H);let Y=class extends X{constructor(_0x32f0e7,_0xe6e625,_0x285bef,_0x2c188f,_0x28ab06,_0x2ea55a=!0x1,_0xbc9c91,_0x35b369,_0xbcdae0,_0xf0d3dd,_0x1d56d8,_0x5a4fd3,_0x2cdd48){const _0x2a0ce3=_0x29b95d;super(_0x32f0e7,_0xe6e625,_0x285bef,_0x2c188f,_0x28ab06,_0x35b369,_0xbcdae0,_0x1d56d8,_0xf0d3dd),d(this,_0x2a0ce3(0x341),'conflict'),(this[_0x2a0ce3(0x4f1)]=_0x2ea55a,this[_0x2a0ce3(0x37c)]=_0xbc9c91,this[_0x2a0ce3(0x2df)]=_0x5a4fd3,this[_0x2a0ce3(0x55d)]=_0x2cdd48,this[_0x2a0ce3(0x267)](),this[_0x2a0ce3(0x27a)](),this[_0x2a0ce3(0x48c)]());}[_0x29b95d(0x2ed)](){return this;}[_0x29b95d(0x438)](){return this;}[_0x29b95d(0x54a)](){return this;}[_0x29b95d(0x532)](){return this;}[_0x29b95d(0x416)](){return this;}[_0x29b95d(0x38a)](){return this;}[_0x29b95d(0x446)](){const _0x2ad9ec=_0x29b95d;throw new Error(_0x2ad9ec(0x2db));}[_0x29b95d(0x27a)](){const _0xe95603=_0x29b95d;this[_0xe95603(0x3bf)]['updateOfflineData'](this[_0xe95603(0x1c8)],this[_0xe95603(0x46c)],null,[]);}[_0x29b95d(0x267)](){const _0x5ce9d2=_0x29b95d;this[_0x5ce9d2(0x4f1)]?this[_0x5ce9d2(0x55d)][_0x5ce9d2(0x4a2)]({'title':this[_0x5ce9d2(0x2df)]['t'](_0x5ce9d2(0x201)),'content':this[_0x5ce9d2(0x2df)]['t'](_0x5ce9d2(0x547)),'type':_0x5ce9d2(0x383),'duration':0x0}):this[_0x5ce9d2(0x55d)]['show']({'title':this['_localeService']['t']('conflict.title'),'content':this[_0x5ce9d2(0x2df)]['t'](_0x5ce9d2(0x48f)),'type':_0x5ce9d2(0x383),'duration':0x0});}[_0x29b95d(0x48c)](){const _0x3d462c=_0x29b95d;this[_0x3d462c(0x37c)][_0x3d462c(0x290)](new E[(_0x3d462c(0x503))](this[_0x3d462c(0x1c8)])['id'],!0x1);}};Y=K([f(0x6,h['Inject'](a[_0x29b95d(0x26f)])),f(0x7,a[_0x29b95d(0x471)]),f(0x8,a['IUndoRedoService']),f(0x9,h[_0x29b95d(0x563)](exports['LocalCacheService'])),f(0xa,h[_0x29b95d(0x563)](u[_0x29b95d(0x4c3)])),f(0xb,h[_0x29b95d(0x563)](a[_0x29b95d(0x3c8)])),f(0xc,N[_0x29b95d(0x4d8)])],Y);let B=class extends X{constructor(_0x2cac12,_0x9e0872,_0x5ab987,_0x47e901,_0x154d78,_0x4feb16,_0x11b4ab,_0x57d365,_0x32ed37,_0x33ded2){const _0x1bbb8a=_0x29b95d;super(_0x2cac12,_0x9e0872,_0x5ab987,_0x47e901,_0x154d78,_0x32ed37,_0x33ded2,_0x11b4ab,_0x57d365),d(this,_0x1bbb8a(0x341),_0x1bbb8a(0x35d)),this[_0x1bbb8a(0x42b)]=_0x4feb16;}[_0x29b95d(0x2ed)](_0x1ed1e8){const _0x1af814=_0x29b95d;return this[_0x1af814(0x3b8)][_0x1af814(0x346)](_0x1ed1e8),this['_updateLocalCache'](),this;}[_0x29b95d(0x438)](_0x243248){throw new Error('[OfflineState]:\x20received\x20changeset.');}[_0x29b95d(0x54a)](){throw new Error('[OfflineState]:\x20received\x20acknowledgement.');}[_0x29b95d(0x532)](){const _0x411db5=_0x29b95d;throw new Error(_0x411db5(0x301));}['toggleOffline'](){return this;}[_0x29b95d(0x38a)](){const _0x54bb2a=_0x29b95d,{_injector:_0x1d30c9,_pendingMutations:_0x7d03d9,_awaitingChangeset:_0x3b6da7,unitID:_0xc88814,_handler:_0x2a7ba7,type:_0x13ffed}=this,_0x1d48fe=Tt(_0x1d30c9,_0xc88814,_0x13ffed,_0x3b6da7,_0x7d03d9,_0x2a7ba7);return _0x1d48fe instanceof $?_0x1d48fe[_0x54bb2a(0x519)]():(_0x1d48fe instanceof H||_0x1d48fe instanceof k)&&_0x1d48fe[_0x54bb2a(0x446)](),_0x1d48fe;}[_0x29b95d(0x446)](){const _0x2c8b91=_0x29b95d;throw new Error(_0x2c8b91(0x42a));}};B=K([f(0x5,h[_0x29b95d(0x563)](h[_0x29b95d(0x380)])),f(0x6,h[_0x29b95d(0x563)](u[_0x29b95d(0x4c3)])),f(0x7,h[_0x29b95d(0x563)](exports[_0x29b95d(0x45c)])),f(0x8,a[_0x29b95d(0x471)]),f(0x9,a[_0x29b95d(0x525)])],B);let x=class extends X{constructor(_0x270aa3,_0x5cebb5,_0xfe5c,_0x36144f,_0x2fcda5,_0x287a55,_0x3a280d,_0x1128e6,_0xb2f4a1,_0x2bf82a,_0x29c6b3,_0x27f90a,_0x3af1e2,_0xc105ed){const _0x2dfad1=_0x29b95d;super(_0x270aa3,_0x5cebb5,_0xfe5c,_0x36144f,_0x3a280d,_0x27f90a,_0x3af1e2,_0xb2f4a1,_0x2bf82a),d(this,_0x2dfad1(0x341),_0x2dfad1(0x3e7)),(this[_0x2dfad1(0x3a3)]=_0x2fcda5,this[_0x2dfad1(0x3c3)]=_0x287a55,this[_0x2dfad1(0x42b)]=_0x1128e6,this[_0x2dfad1(0x3cb)]=_0x29c6b3,this[_0x2dfad1(0x4ed)]=_0xc105ed);}['onMissedChangesetFetched'](_0x4745c8){const _0x54a8fb=_0x29b95d;try{const _0x178ae4=[..._0x4745c8,...this[_0x54a8fb(0x3c3)]],_0x25f700=[this[_0x54a8fb(0x53b)]||this['_acknowledgedAwaitingChangeset']][_0x54a8fb(0x4c7)](_0x191514=>!!_0x191514);let _0x24601b,_0x264c50;if(_0x25f700['length']){const _0x55ae3b=this[_0x54a8fb(0x4ed)][_0x54a8fb(0x466)](_0x178ae4,_0x25f700,!0x1);if(!u[_0x54a8fb(0x4dc)](_0x55ae3b))throw _0x55ae3b[_0x54a8fb(0x383)];_0x24601b=_0x55ae3b[_0x54a8fb(0x1f4)],_0x264c50=_0x55ae3b[_0x54a8fb(0x25e)];}else _0x24601b=_0x178ae4,_0x264c50=[];let _0x236257=this['_pendingMutations'];_0x24601b[_0x54a8fb(0x3b0)](_0xf0eb1c=>{const _0x295517=_0x54a8fb;let _0x31c5fb;if(_0x236257[_0x295517(0x49e)]){const _0x5b2d52=this[_0x295517(0x4ed)][_0x295517(0x378)](_0xf0eb1c,_0x236257);if(!u[_0x295517(0x35c)](_0x5b2d52))throw _0x5b2d52['error'];_0x31c5fb=_0x5b2d52[_0x295517(0x1f4)],_0x236257=_0x5b2d52[_0x295517(0x297)];}else _0x31c5fb=_0xf0eb1c;this[_0x295517(0x1ce)](_0x31c5fb);}),this[_0x54a8fb(0x3a3)]&&this[_0x54a8fb(0x1e3)](),this[_0x54a8fb(0x53b)]&&_0x264c50['length']&&(_0x264c50[0x0][_0x54a8fb(0x38b)]=this[_0x54a8fb(0x510)]());let _0x4eb16c;if(this['_awaitingChangeset']&&_0x236257[_0x54a8fb(0x49e)]!==0x0)_0x4eb16c=this[_0x54a8fb(0x42b)][_0x54a8fb(0x1db)](H,this[_0x54a8fb(0x1c8)],this[_0x54a8fb(0x46c)],_0x264c50[0x0],_0x236257,this[_0x54a8fb(0x28e)]);else{if(this[_0x54a8fb(0x53b)]&&_0x236257['length']===0x0)_0x264c50[0x0][_0x54a8fb(0x38b)]=this[_0x54a8fb(0x510)](),_0x4eb16c=this[_0x54a8fb(0x42b)]['createInstance'](k,this[_0x54a8fb(0x1c8)],this[_0x54a8fb(0x46c)],_0x264c50[0x0],this[_0x54a8fb(0x28e)]);else{if(_0x236257[_0x54a8fb(0x49e)]!==0x0){const _0x3f2ff6=this['_injector'][_0x54a8fb(0x1db)]($,this[_0x54a8fb(0x1c8)],this[_0x54a8fb(0x46c)],_0x236257,this[_0x54a8fb(0x28e)]);_0x3f2ff6[_0x54a8fb(0x519)](),_0x4eb16c=_0x3f2ff6;}else _0x4eb16c=this[_0x54a8fb(0x42b)]['createInstance'](ae,this[_0x54a8fb(0x1c8)],this['type'],this[_0x54a8fb(0x28e)]);}}return _0x4eb16c[_0x54a8fb(0x2a4)](),_0x4eb16c;}catch(_0x114529){return this[_0x54a8fb(0x3cb)][_0x54a8fb(0x383)](_0x54a8fb(0x486),_0x54a8fb(0x406),_0x114529),this[_0x54a8fb(0x42b)][_0x54a8fb(0x1db)](Y,this[_0x54a8fb(0x1c8)],this[_0x54a8fb(0x46c)],this['_awaitingChangeset'],this['_pendingMutations'],this['_handler'],!0x1);}}[_0x29b95d(0x446)](){const _0x3e3d10=_0x29b95d;throw new Error(_0x3e3d10(0x3cc));}['appendMutation'](_0x3c2093){const _0x2b1629=_0x29b95d;return this[_0x2b1629(0x3b8)][_0x2b1629(0x346)](_0x3c2093),this;}[_0x29b95d(0x438)](_0x7c0e2){const _0x4505a9=_0x29b95d;return this['_queuedRemoteChangesets'][_0x4505a9(0x346)](_0x7c0e2),this;}[_0x29b95d(0x54a)](_0x169c97){const _0x13f75b=_0x29b95d;if(this['_awaitingChangeset'])return this[_0x13f75b(0x3a3)]=this[_0x13f75b(0x53b)],this[_0x13f75b(0x53b)]=null,this;throw new Error(_0x13f75b(0x2af));}[_0x29b95d(0x532)](_0xef1de7){const _0x43359b=_0x29b95d;return this['_onConflict'](!!(_0xef1de7!=null&&_0xef1de7[_0x43359b(0x293)]));}['toggleOffline'](){const _0x5cadad=_0x29b95d;return this['_injector']['createInstance'](B,this[_0x5cadad(0x1c8)],this[_0x5cadad(0x46c)],this[_0x5cadad(0x53b)],this[_0x5cadad(0x3b8)],this[_0x5cadad(0x28e)]);}['toggleOnline'](){return this;}['_onConflict'](_0x411c8f){const _0xd5ea4f=_0x29b95d;return this[_0xd5ea4f(0x42b)][_0xd5ea4f(0x1db)](Y,this[_0xd5ea4f(0x1c8)],this[_0xd5ea4f(0x46c)],this['_awaitingChangeset'],this[_0xd5ea4f(0x3b8)],this[_0xd5ea4f(0x28e)],_0x411c8f);}};x=K([f(0x7,h[_0x29b95d(0x563)](h['Injector'])),f(0x8,h[_0x29b95d(0x563)](u[_0x29b95d(0x4c3)])),f(0x9,h[_0x29b95d(0x563)](exports['LocalCacheService'])),f(0xa,a[_0x29b95d(0x50d)]),f(0xb,a['ICommandService']),f(0xc,a[_0x29b95d(0x525)]),f(0xd,u[_0x29b95d(0x551)])],x);function Tt(_0x5c96f2,_0x26da7b,_0xd8569b,_0x48aa34,_0xab80d1,_0x1b204b){const _0x50ddf3=_0x29b95d;return _0x48aa34&&_0xab80d1['length']?_0x5c96f2[_0x50ddf3(0x1db)](H,_0x26da7b,_0xd8569b,_0x48aa34,_0xab80d1,_0x1b204b):_0x48aa34?_0x5c96f2['createInstance'](k,_0x26da7b,_0xd8569b,_0x48aa34,_0x1b204b):_0xab80d1[_0x50ddf3(0x49e)]?_0x5c96f2[_0x50ddf3(0x1db)]($,_0x26da7b,_0xd8569b,_0xab80d1,_0x1b204b):_0x5c96f2['createInstance'](ae,_0x26da7b,_0xd8569b,_0x1b204b);}var Ds=Object[_0x29b95d(0x2f8)],Us=Object['getOwnPropertyDescriptor'],Ee=(_0x14e650,_0x50627c,_0x20050b,_0x5dd9d4)=>{const _0x1a2909=_0x29b95d;for(var _0x12526a=_0x5dd9d4>0x1?void 0x0:_0x5dd9d4?Us(_0x50627c,_0x20050b):_0x50627c,_0x25b588=_0x14e650[_0x1a2909(0x49e)]-0x1,_0x2e666e;_0x25b588>=0x0;_0x25b588--)(_0x2e666e=_0x14e650[_0x25b588])&&(_0x12526a=(_0x5dd9d4?_0x2e666e(_0x50627c,_0x20050b,_0x12526a):_0x2e666e(_0x12526a))||_0x12526a);return _0x5dd9d4&&_0x12526a&&Ds(_0x50627c,_0x20050b,_0x12526a),_0x12526a;},p=(_0x17e147,_0x18f9e5)=>(_0x2211ee,_0x139624)=>_0x18f9e5(_0x2211ee,_0x139624,_0x17e147);exports['CollaborationController']=class extends a[_0x29b95d(0x275)]{constructor(_0x1095c0,_0x1dfb4c,_0x3cefc1){const _0x2947e2=_0x29b95d;super(),d(this,_0x2947e2(0x3db),new Map()),d(this,_0x2947e2(0x4c1),new g['Subject']()),(this['_injector']=_0x1095c0,this['_collabSessionService']=_0x1dfb4c,this['_univerInstanceService']=_0x3cefc1,this[_0x2947e2(0x2ec)]());}[_0x29b95d(0x545)](){const _0x1154f6=_0x29b95d;super[_0x1154f6(0x545)](),this['_entities'][_0x1154f6(0x3b0)](_0x28559d=>_0x28559d[_0x1154f6(0x545)]()),this['_entities'][_0x1154f6(0x2a7)]();}[_0x29b95d(0x2f7)](_0x1d7e3d){const _0x3f45dc=_0x29b95d;var _0x2c0914;return(_0x2c0914=this[_0x3f45dc(0x3db)][_0x3f45dc(0x2d3)](_0x1d7e3d))!=null?_0x2c0914:null;}['getCollabEntity$'](_0x223577){const _0x4d5cff=_0x29b95d,_0x5769ac=this[_0x4d5cff(0x2f7)](_0x223577);return _0x5769ac?g['of'](_0x5769ac):this[_0x4d5cff(0x4c1)][_0x4d5cff(0x1e4)](T[_0x4d5cff(0x4c7)](_0x87e8bf=>_0x87e8bf[_0x4d5cff(0x1c8)]===_0x223577));}['_init'](){const _0x1be40b=_0x29b95d;this['_univerInstanceService'][_0x1be40b(0x314)](a[_0x1be40b(0x30a)][_0x1be40b(0x272)])[_0x1be40b(0x1e4)](g['takeUntil'](this[_0x1be40b(0x2e1)]),T['delay'](0x10))[_0x1be40b(0x1e8)](async _0x2b4d11=>{const _0x3a185b=_0x1be40b,_0x25845d=_0x2b4d11[_0x3a185b(0x25b)](),_0x2cd1c5=await this[_0x3a185b(0x41e)](_0x25845d,j[_0x3a185b(0x272)]);this[_0x3a185b(0x3db)][_0x3a185b(0x470)](_0x25845d,_0x2cd1c5);}),this[_0x1be40b(0x50a)][_0x1be40b(0x314)](a[_0x1be40b(0x30a)][_0x1be40b(0x2a2)])[_0x1be40b(0x1e4)](g['takeUntil'](this[_0x1be40b(0x2e1)]),T[_0x1be40b(0x4ac)](0x10))[_0x1be40b(0x1e4)](T[_0x1be40b(0x4c7)](_0x3cd9ea=>!_0x3cd9ea[_0x1be40b(0x25b)]()[_0x1be40b(0x2f9)]('__')))['subscribe'](async _0x1e2d41=>{const _0x3245b2=_0x1be40b,_0x43d234=_0x1e2d41[_0x3245b2(0x25b)](),_0x56cb02=await this['_startCollaboration'](_0x43d234,j[_0x3245b2(0x2a2)]);this[_0x3245b2(0x3db)][_0x3245b2(0x470)](_0x43d234,_0x56cb02);}),g[_0x1be40b(0x22e)](this['_univerInstanceService'][_0x1be40b(0x4a3)](a[_0x1be40b(0x30a)]['UNIVER_SHEET']),this[_0x1be40b(0x50a)]['getTypeOfUnitDisposed$'](a[_0x1be40b(0x30a)][_0x1be40b(0x2a2)]))[_0x1be40b(0x1e4)](g[_0x1be40b(0x4d2)](this['dispose$']))[_0x1be40b(0x1e8)](_0x4f71e5=>{const _0x53a9f5=_0x1be40b,_0x3d8209=_0x4f71e5[_0x53a9f5(0x25b)](),_0x1ca30e=this[_0x53a9f5(0x3db)][_0x53a9f5(0x2d3)](_0x3d8209);_0x1ca30e&&(_0x1ca30e[_0x53a9f5(0x545)](),this[_0x53a9f5(0x3db)][_0x53a9f5(0x485)](_0x3d8209));});}async['_startCollaboration'](_0xdd11f7,_0x3e4253){const _0x2caa67=_0x29b95d,_0x8c6cdb=await this[_0x2caa67(0x3a6)][_0x2caa67(0x393)](_0xdd11f7),_0xb12771=this[_0x2caa67(0x42b)][_0x2caa67(0x1db)](this['_getCtorByUniverType'](_0x3e4253),_0xdd11f7,_0x3e4253,_0x8c6cdb);return await _0xb12771[_0x2caa67(0x32b)](),this[_0x2caa67(0x4c1)]['next'](_0xb12771),_0xb12771;}[_0x29b95d(0x45b)](_0x13837c){const _0xf317c4=_0x29b95d;switch(_0x13837c){case j[_0xf317c4(0x2a2)]:return Pe;case j[_0xf317c4(0x272)]:return Me;default:throw new Error(_0xf317c4(0x4e0)+_0x13837c);}}},exports['CollaborationController']=Ee([a[_0x29b95d(0x387)](a[_0x29b95d(0x51c)][_0x29b95d(0x376)],exports[_0x29b95d(0x4cd)]),p(0x0,h[_0x29b95d(0x563)](h['Injector'])),p(0x1,h[_0x29b95d(0x563)](exports[_0x29b95d(0x2cf)])),p(0x2,a[_0x29b95d(0x2e6)])],exports[_0x29b95d(0x4cd)]);let me=class extends a[_0x29b95d(0x275)]{constructor(_0x3722c5,_0x495a32,_0x42a7b9,_0x47b428,_0x2141c7,_0x225c89,_0x3ee353,_0x127b44,_0x5eea69,_0x2ee825,_0x2561ad,_0x1f14ee,_0x18113a){const _0x2c07ba=_0x29b95d;super(),d(this,_0x2c07ba(0x3c6),new g['BehaviorSubject'](null)),d(this,_0x2c07ba(0x4f0),this[_0x2c07ba(0x3c6)][_0x2c07ba(0x56a)]()),d(this,_0x2c07ba(0x54e)),d(this,_0x2c07ba(0x4d5),!0x1),d(this,_0x2c07ba(0x1f7),this['state$'][_0x2c07ba(0x1e4)](T[_0x2c07ba(0x2a0)](_0x35d0ea=>_0x35d0ea?_0x35d0ea['status']:U['OFFLINE']),T[_0x2c07ba(0x433)](0x1))),d(this,_0x2c07ba(0x4b0),!0x1),d(this,'_remoteChangesetQueue',[]),(this['unitID']=_0x3722c5,this['_type']=_0x495a32,this[_0x2c07ba(0x329)]=_0x42a7b9,this[_0x2c07ba(0x42b)]=_0x47b428,this[_0x2c07ba(0x3bf)]=_0x2141c7,this['_compressMutationService']=_0x225c89,this[_0x2c07ba(0x2df)]=_0x3ee353,this[_0x2c07ba(0x2e2)]=_0x127b44,this[_0x2c07ba(0x3cb)]=_0x5eea69,this['_commandService']=_0x2ee825,this[_0x2c07ba(0x533)]=_0x2561ad,this[_0x2c07ba(0x37c)]=_0x1f14ee,this[_0x2c07ba(0x45a)]=_0x18113a);}get[_0x29b95d(0x417)](){return this['_state'];}async[_0x29b95d(0x32b)](){const _0x2ea3d7=_0x29b95d;if(this[_0x2ea3d7(0x417)])throw new Error('[CollaborationEntity]:\x20initial\x20state\x20has\x20been\x20created\x20before.\x20You\x20should\x20not\x20call\x20\x22init\x22\x20twice.');await this[_0x2ea3d7(0x2ec)]();}[_0x29b95d(0x538)](){const _0x58dff0=_0x29b95d;return this[_0x58dff0(0x4d5)]=!0x0,a['toDisposable'](()=>{const _0x3fa1ff=_0x58dff0;this[_0x3fa1ff(0x4d5)]=!0x1,this['_exhaustRemoteChangesetQueue']();});}[_0x29b95d(0x25f)](_0x2b8099){const _0x14f9a0=_0x29b95d;this[_0x14f9a0(0x54e)]=_0x2b8099,this[_0x14f9a0(0x3c6)]['next'](_0x2b8099);}async[_0x29b95d(0x2ec)](){const _0x986be4=_0x29b95d;var _0x2c3ebe;return this['_updateState'](await this[_0x986be4(0x50e)]()),this[_0x986be4(0x45a)]&&((_0x2c3ebe=this[_0x986be4(0x45a)])==null||_0x2c3ebe['editingUnit'](this[_0x986be4(0x1c8)]),this[_0x986be4(0x2f6)](a[_0x986be4(0x273)](this['_singleActiveUnitService'][_0x986be4(0x340)](this[_0x986be4(0x1c8)])['subscribe'](_0x5dfff2=>{const _0x43d79b=_0x986be4;this[_0x43d79b(0x3cb)][_0x43d79b(0x270)](_0x43d79b(0x2ba),'editing\x20status\x20changed\x20to',_0x5dfff2),_0x5dfff2===Ct[_0x43d79b(0x210)]?(this[_0x43d79b(0x533)][_0x43d79b(0x4a2)]({'content':this[_0x43d79b(0x2df)]['t']('collaboration.single-unit.warning'),'type':oe['MessageType'][_0x43d79b(0x306)]}),this[_0x43d79b(0x37c)]['updatePermissionPoint'](new E[(_0x43d79b(0x503))](this[_0x43d79b(0x1c8)])['id'],!0x1)):this[_0x43d79b(0x37c)]['updatePermissionPoint'](new E[(_0x43d79b(0x503))](this['unitID'])['id'],!0x0);})))),this['disposeWithMe'](a['toDisposable'](this['_session'][_0x986be4(0x42c)][_0x986be4(0x1e8)](_0x49d0af=>{const _0x3e5b55=_0x986be4;_0x49d0af===W[_0x3e5b55(0x391)]?this['_toggleOnline']():_0x49d0af===W[_0x3e5b55(0x234)]&&this[_0x3e5b55(0x4de)]();}))),this[_0x986be4(0x2f6)](a[_0x986be4(0x273)](this[_0x986be4(0x329)]['event$']['subscribe'](_0x5c654a=>{const _0x5a4fc4=_0x986be4;try{switch(_0x5c654a[_0x5a4fc4(0x3e1)]){case u[_0x5a4fc4(0x45f)][_0x5a4fc4(0x354)]:{this[_0x5a4fc4(0x437)](u[_0x5a4fc4(0x2e9)](_0x5c654a[_0x5a4fc4(0x2eb)]));break;}case u[_0x5a4fc4(0x45f)][_0x5a4fc4(0x45e)]:{this[_0x5a4fc4(0x518)](_0x5c654a[_0x5a4fc4(0x2eb)]);break;}case u[_0x5a4fc4(0x45f)][_0x5a4fc4(0x2c7)]:{this[_0x5a4fc4(0x1f6)]();break;}case u['CollaborationEvent'][_0x5a4fc4(0x3d9)]:{this[_0x5a4fc4(0x363)](_0x5c654a[_0x5a4fc4(0x2eb)][_0x5a4fc4(0x46d)][_0x5a4fc4(0x2a0)](_0x2e2009=>u[_0x5a4fc4(0x2e9)](_0x2e2009)));break;}case u['CollaborationEvent'][_0x5a4fc4(0x28a)]:this[_0x5a4fc4(0x1f6)]({'isPermissionRej':!0x0});}}catch(_0x1dfec5){throw console[_0x5a4fc4(0x383)](_0x5a4fc4(0x42d),_0x1dfec5),_0x1dfec5;}}))),this[_0x986be4(0x54e)];}[_0x29b95d(0x3f2)](){const _0x1a3bde=_0x29b95d;this[_0x1a3bde(0x4b0)]=!0x1;}[_0x29b95d(0x4d7)](){const _0x2383e0=_0x29b95d;if(this[_0x2383e0(0x4b0)])throw new Error('[CollaborationEntity]:\x20cannot\x20lock\x20transition\x20twice!\x20This\x20is\x20an\x20implementation\x20error,\x20meaning\x20you\x20transit\x20the\x20collaboration\x20state\x20again\x20in\x20the\x20process\x20of\x20a\x20previous\x20transition.\x20This\x20should\x20never\x20happen.');this[_0x2383e0(0x4b0)]=!0x0;}[_0x29b95d(0x23d)](_0x5b0a8a){const _0x2c7360=_0x29b95d;this[_0x2c7360(0x4d7)](),this['_updateState'](this[_0x2c7360(0x54e)]['appendMutation'](_0x5b0a8a)),this[_0x2c7360(0x3f2)]();}[_0x29b95d(0x437)](_0x241945){const _0x1875ba=_0x29b95d;if(!(_0x241945[_0x1875ba(0x2ef)]<=this[_0x1875ba(0x2e2)][_0x1875ba(0x372)](this['unitID']))){if(this[_0x1875ba(0x4d5)]){this[_0x1875ba(0x4d1)]['push'](_0x241945);return;}this[_0x1875ba(0x1e9)](_0x241945);}}[_0x29b95d(0x484)](){const _0x16b248=_0x29b95d;this[_0x16b248(0x4d1)][_0x16b248(0x3b0)](_0x302007=>this['_applyRemoteChangeset'](_0x302007)),this['_remoteChangesetQueue']=[];}[_0x29b95d(0x1e9)](_0x4ed708){const _0x26ce8e=_0x29b95d,_0x3aa312=this[_0x26ce8e(0x333)][_0x26ce8e(0x232)][_0x26ce8e(0x36a)](this[_0x26ce8e(0x333)][_0x26ce8e(0x232)]['getInterceptPoints']()[_0x26ce8e(0x47f)])(_0x4ed708[_0x26ce8e(0x34c)],null)||_0x4ed708[_0x26ce8e(0x34c)],_0x144b29={..._0x4ed708,'mutations':_0x3aa312};this[_0x26ce8e(0x4d7)](),this['_updateState'](this[_0x26ce8e(0x54e)]['onRemoteChangeset'](_0x144b29)),this[_0x26ce8e(0x3f2)]();}['_onRemoteACK'](_0x36d4e1){const _0xe8ee5b=_0x29b95d;this[_0xe8ee5b(0x4d7)](),this['_updateState'](this[_0xe8ee5b(0x54e)][_0xe8ee5b(0x54a)](_0x36d4e1)),this['_unlockTransition']();}[_0x29b95d(0x1f6)](_0x273658){const _0x563d5f=_0x29b95d;this[_0x563d5f(0x4d7)](),this['_updateState'](this[_0x563d5f(0x54e)][_0x563d5f(0x532)](_0x273658)),this[_0x563d5f(0x3f2)]();}[_0x29b95d(0x363)](_0x44dbaf){const _0x33485d=_0x29b95d;if(!(this[_0x33485d(0x54e)]instanceof x))throw new TypeError('[CollaborationEntity]:\x20cannot\x20apply\x20missing\x20results\x20on\x20other\x20states!');const _0x1a7f79=_0x44dbaf[_0x33485d(0x2a0)](_0x3e3f4a=>{const _0x53f379=_0x33485d,_0x2e2747=this['_compressMutationService'][_0x53f379(0x232)][_0x53f379(0x36a)](this[_0x53f379(0x333)]['interceptor'][_0x53f379(0x327)]()['COMPRESS_MUTATION_APPLY'])(_0x3e3f4a['mutations'],null)||_0x3e3f4a[_0x53f379(0x34c)];return{..._0x3e3f4a,'mutations':_0x2e2747};});this[_0x33485d(0x4d7)](),this[_0x33485d(0x25f)](this[_0x33485d(0x54e)][_0x33485d(0x502)](_0x1a7f79)),this[_0x33485d(0x3f2)]();}['_toggleOffline'](){const _0x32e30a=_0x29b95d;this[_0x32e30a(0x4d7)](),this[_0x32e30a(0x25f)](this['_state'][_0x32e30a(0x416)]()),this[_0x32e30a(0x3f2)]();}[_0x29b95d(0x427)](){const _0x38f2eb=_0x29b95d;this['_lockTransition'](),this[_0x38f2eb(0x25f)](this[_0x38f2eb(0x54e)][_0x38f2eb(0x38a)]()),this['_unlockTransition']();}async[_0x29b95d(0x50e)](){return new Promise(_0xf8c254=>{const _0x59d8e7=_0x3518;this[_0x59d8e7(0x329)][_0x59d8e7(0x42c)][_0x59d8e7(0x1e4)](T[_0x59d8e7(0x4f7)](0x1))['subscribe'](async _0x4c6be8=>{const _0x55a37f=_0x59d8e7;_0xf8c254(await this[_0x55a37f(0x469)](_0x4c6be8===W[_0x55a37f(0x391)]));});});}[_0x29b95d(0x27b)](){const _0x3e396b=_0x29b95d,_0xf103bf=this[_0x3e396b(0x1c8)];return{'onStateChange':(_0x2df0a3,_0x3337ac)=>{const _0x20433b=_0x3e396b;if(_0x2df0a3!==this['_state'])throw new Error(_0x20433b(0x3dd)+_0x2df0a3[_0x20433b(0x341)]+_0x20433b(0x2b4)+_0x3337ac['status']+'\x0aCurrent:\x20'+this['_state'][_0x20433b(0x341)]);this[_0x20433b(0x25f)](_0x3337ac);},'onSendChangeset':_0x39f53b=>{const _0x2c0e91=_0x3e396b,_0x1ef216={'eventID':u['CollaborationEvent']['SUBMIT_CHANGESET'],'data':{'unitID':_0x39f53b[_0x2c0e91(0x1c8)],'unitType':this['_type'],'changeset':_0x39f53b,'memberID':this[_0x2c0e91(0x329)][_0x2c0e91(0x429)]()}};this[_0x2c0e91(0x329)]['send'](_0x1ef216,this['unitID']);},'onMissingChangesets':({from:_0x1c83b9,to:_0x5efc92})=>{const _0x5622ed=_0x3e396b;this[_0x5622ed(0x3cb)]['debug']('[CollaborationEntity]',_0x5622ed(0x24d)+_0x1c83b9+'\x20to\x20'+_0x5efc92);const _0x2a815c={'eventID':u[_0x5622ed(0x45f)][_0x5622ed(0x47c)],'data':{'unitID':_0xf103bf,'unitType':this[_0x5622ed(0x4c0)],'from':_0x1c83b9,'to':_0x5efc92}};this[_0x5622ed(0x329)]['send'](_0x2a815c,this['unitID']);}};}async[_0x29b95d(0x469)](_0x1bce87){const _0xa09244=_0x29b95d;var _0x431614,_0x68024f;const _0x14a3b6=await this[_0xa09244(0x3bf)][_0xa09244(0x317)](this[_0xa09244(0x1c8)]),_0x4cba8e=(_0x431614=_0x14a3b6==null?void 0x0:_0x14a3b6[_0xa09244(0x34c)])!=null?_0x431614:[],_0x1ac73e=(_0x68024f=_0x14a3b6==null?void 0x0:_0x14a3b6[_0xa09244(0x458)])!=null?_0x68024f:null,_0x443cdb=this['unitID'];try{this[_0xa09244(0x2bc)](_0x1ac73e,_0x4cba8e);}catch(_0x5521d3){this[_0xa09244(0x3cb)][_0xa09244(0x383)](_0x5521d3);}const _0x1185e2=this[_0xa09244(0x27b)]();if(_0x1bce87){const _0x161146=Tt(this[_0xa09244(0x42b)],_0x443cdb,this[_0xa09244(0x4c0)],_0x1ac73e,_0x4cba8e,_0x1185e2);return _0x161146 instanceof $?_0x161146[_0xa09244(0x519)]():(_0x161146 instanceof H||_0x161146 instanceof k)&&_0x161146['resend'](),_0x161146;}return this[_0xa09244(0x42b)][_0xa09244(0x1db)](B,_0x443cdb,this[_0xa09244(0x4c0)],_0x1ac73e,_0x4cba8e,_0x1185e2);}[_0x29b95d(0x2bc)](_0x4b7d5c,_0x3dd8f9){const _0x38d528=_0x29b95d;var _0x155585,_0x5c6eb5;const _0x4d51d1=this['_compressMutationService'][_0x38d528(0x232)]['fetchThroughInterceptors'](this[_0x38d528(0x333)][_0x38d528(0x232)][_0x38d528(0x327)]()['COMPRESS_MUTATION_APPLY']);(_0x155585=_0x4d51d1((_0x4b7d5c==null?void 0x0:_0x4b7d5c['mutations'])||[],null))==null||_0x155585[_0x38d528(0x3b0)](_0x21430f=>this['_commandService']['executeCommand'](_0x21430f['id'],_0x21430f[_0x38d528(0x29d)])),(_0x5c6eb5=_0x4d51d1(_0x3dd8f9||[],null))==null||_0x5c6eb5['forEach'](_0x107731=>this[_0x38d528(0x4c9)]['executeCommand'](_0x107731['id'],_0x107731[_0x38d528(0x29d)]));}};me=Ee([p(0x3,h[_0x29b95d(0x563)](h[_0x29b95d(0x380)])),p(0x4,h['Inject'](exports[_0x29b95d(0x45c)])),p(0x5,h[_0x29b95d(0x563)](u['CompressMutationService'])),p(0x6,h['Inject'](a['LocaleService'])),p(0x7,h[_0x29b95d(0x563)](u['RevisionService'])),p(0x8,a[_0x29b95d(0x50d)]),p(0x9,a[_0x29b95d(0x471)]),p(0xa,N[_0x29b95d(0x3e3)]),p(0xb,a[_0x29b95d(0x26f)]),p(0xc,h['Optional'](pe))],me);let Pe=class extends me{constructor(_0x405b94,_0x1c2f81,_0x2b1ded,_0x172788,_0x1712ab,_0x465b89,_0x2390ab,_0x3391f4,_0x428ff2,_0x2c116d,_0x4f2924,_0x3df7ba,_0x50b760,_0x199b98,_0x1b05c6,_0x5a643a,_0x13cafd){const _0x2db3db=_0x29b95d;super(_0x405b94,_0x1c2f81,_0x2b1ded,_0x172788,_0x1712ab,_0x465b89,_0x2390ab,_0x3391f4,_0x50b760,_0x199b98,_0x1b05c6,_0x5a643a,_0x13cafd),this[_0x2db3db(0x1c8)]=_0x405b94,this[_0x2db3db(0x46c)]=_0x1c2f81,this[_0x2db3db(0x4b6)]=_0x2b1ded,this[_0x2db3db(0x557)]=_0x428ff2,this[_0x2db3db(0x43c)]=_0x2c116d,this['_docTransformSelectionsService']=_0x4f2924,this[_0x2db3db(0x33d)]=_0x3df7ba;}[_0x29b95d(0x27b)](){const _0x39d364=_0x29b95d,_0x294c0e=super[_0x39d364(0x27b)]();return _0x294c0e[_0x39d364(0x43f)]=_0x1d3fc8=>this[_0x39d364(0x43c)][_0x39d364(0x473)](_0x1d3fc8),_0x294c0e[_0x39d364(0x540)]=_0x1bcd7e=>this[_0x39d364(0x23e)][_0x39d364(0x515)](_0x1bcd7e),_0x294c0e[_0x39d364(0x377)]=_0x539235=>this[_0x39d364(0x33d)][_0x39d364(0x338)](_0x539235),_0x294c0e[_0x39d364(0x397)]=_0x2d47b1=>this[_0x39d364(0x43c)][_0x39d364(0x1e1)](_0x2d47b1),_0x294c0e;}async[_0x29b95d(0x2ec)](){const _0x365bd7=_0x29b95d,_0x4eb1c0=await super['_init']();return this['_docStateChangeManagerService']['docStateChange$']['pipe'](g[_0x365bd7(0x4d2)](this[_0x365bd7(0x2e1)]))[_0x365bd7(0x1e8)](_0x35c47f=>{const _0x275259=_0x365bd7;if(_0x35c47f==null)return;const {unitId:_0x3630c9,redoState:_0x231c8b,commandId:_0x48a5cc}=_0x35c47f;if(_0x3630c9!==this[_0x275259(0x1c8)])return;const _0x33ea4a={'id':_0x48a5cc,'type':a[_0x275259(0x4b2)]['MUTATION'],'params':{'unitId':_0x3630c9,'actions':_0x231c8b[_0x275259(0x324)],'textRanges':null}};this[_0x275259(0x23d)](_0x33ea4a);}),_0x4eb1c0;}};Pe=Ee([p(0x3,h[_0x29b95d(0x563)](h['Injector'])),p(0x4,h[_0x29b95d(0x563)](exports['LocalCacheService'])),p(0x5,h[_0x29b95d(0x563)](u[_0x29b95d(0x303)])),p(0x6,h[_0x29b95d(0x563)](a[_0x29b95d(0x3c8)])),p(0x7,h[_0x29b95d(0x563)](u[_0x29b95d(0x4c3)])),p(0x8,h[_0x29b95d(0x563)](y[_0x29b95d(0x1cd)])),p(0x9,h[_0x29b95d(0x563)](ve)),p(0xa,h[_0x29b95d(0x563)](ge)),p(0xb,h['Inject'](Ve)),p(0xc,a[_0x29b95d(0x50d)]),p(0xd,a['ICommandService']),p(0xe,N[_0x29b95d(0x3e3)]),p(0xf,a[_0x29b95d(0x26f)]),p(0x10,h[_0x29b95d(0x335)](pe))],Pe);let Me=class extends me{constructor(_0x264247,_0x4d72c2,_0x51b9e4,_0x2a75f1,_0x419d3a,_0x3dd3d3,_0x153c24,_0x300039,_0x36c0fa,_0x21340d,_0x5c4124,_0x10b36f,_0x4376eb,_0x4f5e67){const _0x136dba=_0x29b95d;super(_0x264247,_0x4d72c2,_0x51b9e4,_0x2a75f1,_0x419d3a,_0x3dd3d3,_0x153c24,_0x300039,_0x21340d,_0x5c4124,_0x10b36f,_0x4376eb,_0x4f5e67),this[_0x136dba(0x1c8)]=_0x264247,this[_0x136dba(0x46c)]=_0x4d72c2,this[_0x136dba(0x4b6)]=_0x51b9e4,this[_0x136dba(0x4be)]=_0x36c0fa;}[_0x29b95d(0x27b)](){const _0x5ccb20=_0x29b95d,_0x6d111c=super[_0x5ccb20(0x27b)]();return _0x6d111c[_0x5ccb20(0x540)]=_0x352591=>this['_sheetTransformSelectionsService']['transformSelections'](_0x352591),_0x6d111c;}async[_0x29b95d(0x2ec)](){const _0x18f9d0=_0x29b95d,_0x278701=await super[_0x18f9d0(0x2ec)]();return this[_0x18f9d0(0x2f6)](this[_0x18f9d0(0x4c9)][_0x18f9d0(0x4ff)]((_0x3c1344,_0x366863)=>{const _0x140b9e=_0x18f9d0;if(_0x3c1344[_0x140b9e(0x46c)]!==a['CommandType']['MUTATION']||_0x366863!=null&&_0x366863[_0x140b9e(0x432)]||_0x366863!=null&&_0x366863[_0x140b9e(0x4fe)])return;const _0x40ff4a=_0x3c1344[_0x140b9e(0x29d)];if((_0x40ff4a==null?void 0x0:_0x40ff4a[_0x140b9e(0x3f4)])!==this['unitID'])return;const _0x412649=_0x3c1344,_0x425bcb=this[_0x140b9e(0x333)][_0x140b9e(0x232)][_0x140b9e(0x36a)](this['_compressMutationService'][_0x140b9e(0x232)]['getInterceptPoints']()[_0x140b9e(0x3d7)])([_0x412649],null)||[_0x412649];this[_0x140b9e(0x23d)](_0x425bcb[0x0]);})),_0x278701;}};Me=Ee([p(0x3,h['Inject'](h[_0x29b95d(0x380)])),p(0x4,h['Inject'](exports[_0x29b95d(0x45c)])),p(0x5,h[_0x29b95d(0x563)](u['CompressMutationService'])),p(0x6,h[_0x29b95d(0x563)](a[_0x29b95d(0x3c8)])),p(0x7,h[_0x29b95d(0x563)](u[_0x29b95d(0x4c3)])),p(0x8,h['Inject'](fe)),p(0x9,a[_0x29b95d(0x50d)]),p(0xa,a['ICommandService']),p(0xb,N['IMessageService']),p(0xc,a[_0x29b95d(0x26f)]),p(0xd,h[_0x29b95d(0x335)](pe))],Me);const tt=[_0x29b95d(0x299),_0x29b95d(0x43e),_0x29b95d(0x392),_0x29b95d(0x1fc),_0x29b95d(0x26e),'gold400'];class We extends a[_0x29b95d(0x1dd)]{constructor(){const _0x398fe2=_0x29b95d;super(...arguments),d(this,_0x398fe2(0x373),new Map()),d(this,_0x398fe2(0x3fb),0x0);}[_0x29b95d(0x3df)](_0x4a9293){const _0x4182d8=_0x29b95d;if(this['_assignedColors'][_0x4182d8(0x237)](_0x4a9293))return this['_assignedColors']['get'](_0x4a9293);const _0x334511=tt[this['_colorIndex']];return this['_colorIndex']=(this[_0x4182d8(0x3fb)]+0x1)%tt['length'],this[_0x4182d8(0x373)][_0x4182d8(0x470)](_0x4a9293,_0x334511),_0x334511;}}var ws=Object[_0x29b95d(0x2f8)],Ls=Object[_0x29b95d(0x516)],Ps=(_0x58de98,_0x31a58b,_0x4a4b4c,_0x344bb3)=>{const _0x54453a=_0x29b95d;for(var _0x168ed9=_0x344bb3>0x1?void 0x0:_0x344bb3?Ls(_0x31a58b,_0x4a4b4c):_0x31a58b,_0x408121=_0x58de98[_0x54453a(0x49e)]-0x1,_0x57f8ff;_0x408121>=0x0;_0x408121--)(_0x57f8ff=_0x58de98[_0x408121])&&(_0x168ed9=(_0x344bb3?_0x57f8ff(_0x31a58b,_0x4a4b4c,_0x168ed9):_0x57f8ff(_0x168ed9))||_0x168ed9);return _0x344bb3&&_0x168ed9&&ws(_0x31a58b,_0x4a4b4c,_0x168ed9),_0x168ed9;},q=(_0xc8e14a,_0x125c07)=>(_0x224880,_0x518292)=>_0x125c07(_0x224880,_0x518292,_0xc8e14a);const Ms=0x12c,ys=0x64,Ns=()=>{let _0x48dae1=[],_0x4c07b3=!0x1;return _0xd04c0=>{_0x48dae1['push'](_0xd04c0),_0x4c07b3||(_0x4c07b3=!0x0,setTimeout(()=>{const _0x34e0b7=_0x3518;_0x48dae1[_0x34e0b7(0x3b0)](_0x5683b3=>_0x5683b3()),_0x48dae1=[],_0x4c07b3=!0x1;}));};};let ye=class extends a[_0x29b95d(0x275)]{constructor(_0x498ce9,_0x52c09c,_0x75c064,_0x1ea2a9,_0x54dc1d,_0x3f7023,_0x181e4b,_0x1b6a94){const _0x40b049=_0x29b95d;super(),d(this,_0x40b049(0x3d1),!0x1),d(this,_0x40b049(0x2ec),!0x1),d(this,'_cursorInfo$',new g[(_0x40b049(0x3cd))](new Map())),d(this,'cursorInfo$',this[_0x40b049(0x1da)][_0x40b049(0x56a)]()),d(this,'_roomMembers$',new g[(_0x40b049(0x3cd))]([])),d(this,'roomMembers$',this[_0x40b049(0x277)][_0x40b049(0x1e4)](g[_0x40b049(0x55f)](Ms))),d(this,'_updateLocalCursor',He((_0x41046b,_0x4328e5)=>{const _0x12f0f1=_0x40b049,_0xba49e0={'eventID':u[_0x12f0f1(0x45f)][_0x12f0f1(0x30b)],'data':{'unitID':this[_0x12f0f1(0x1c8)],'memberID':this['_session'][_0x12f0f1(0x429)](),'selection':Ke[_0x12f0f1(0x1ed)](_0x41046b,_0x4328e5['range'])}};this[_0x12f0f1(0x329)][_0x12f0f1(0x434)](_0xba49e0,this[_0x12f0f1(0x1c8)]);},ys)),(this[_0x40b049(0x1c8)]=_0x498ce9,this[_0x40b049(0x329)]=_0x52c09c,this[_0x40b049(0x42b)]=_0x75c064,this['_colorAssignService']=_0x1ea2a9,this[_0x40b049(0x258)]=_0x54dc1d,this['_univerInstanceService']=_0x3f7023,this[_0x40b049(0x4c9)]=_0x181e4b,this[_0x40b049(0x3d4)]=_0x1b6a94);}get[_0x29b95d(0x54c)](){return this['_cursorInfo$']['getValue']();}get['roomMembers'](){const _0x4dc989=_0x29b95d;return this[_0x4dc989(0x277)][_0x4dc989(0x2e8)]();}['dispose'](){const _0xe3a1b5=_0x29b95d;super[_0xe3a1b5(0x545)](),this['_cursorInfo$'][_0xe3a1b5(0x4e8)](new Map()),this[_0xe3a1b5(0x1da)][_0xe3a1b5(0x388)](),this[_0xe3a1b5(0x277)][_0xe3a1b5(0x4e8)]([]),this[_0xe3a1b5(0x277)][_0xe3a1b5(0x388)]();}[_0x29b95d(0x32b)](){const _0x50da2d=_0x29b95d;this['_init']||(this[_0x50da2d(0x2ec)]=!0x0,this['_session'][_0x50da2d(0x42c)][_0x50da2d(0x1e4)](g[_0x50da2d(0x4d2)](this[_0x50da2d(0x2e1)]))[_0x50da2d(0x1e8)](_0x3fc3a1=>{const _0x591123=_0x50da2d;_0x3fc3a1===W[_0x591123(0x391)]?this[_0x591123(0x427)]():this[_0x591123(0x4de)]();}),this[_0x50da2d(0x329)][_0x50da2d(0x264)][_0x50da2d(0x1e4)](g[_0x50da2d(0x4d2)](this[_0x50da2d(0x2e1)]))[_0x50da2d(0x1e8)](_0x173af1=>{const _0x130392=_0x50da2d,_0x381ac9=_0x173af1[_0x130392(0x3e1)];_0x381ac9===u[_0x130392(0x45f)][_0x130392(0x30b)]&&this[_0x130392(0x4cb)](_0x173af1),_0x381ac9===u['CollaborationEvent'][_0x130392(0x274)]&&this[_0x130392(0x44f)](_0x173af1);}),this[_0x50da2d(0x348)](),this[_0x50da2d(0x2f6)](this['_commandService']['onCommandExecuted'](_0x4b3fa6=>{const _0x56331f=_0x50da2d;if(this[_0x56331f(0x3d1)]&&_0x4b3fa6['id']===E[_0x56331f(0x35b)]['id']&&_0x4b3fa6[_0x56331f(0x29d)][_0x56331f(0x3f4)]===this[_0x56331f(0x1c8)]){const _0xfff25b=_0x4b3fa6[_0x56331f(0x29d)];this[_0x56331f(0x436)](_0xfff25b[_0x56331f(0x218)],_0xfff25b[_0x56331f(0x2dc)][0x0]);}})));}[_0x29b95d(0x4cb)](_0xd561f3){const _0x594419=_0x29b95d;var _0x4e211c,_0xe44f24;const {memberID:_0x2fc875,selection:_0x269ff7}=_0xd561f3[_0x594419(0x2eb)],{sheetName:_0x3e47ec,range:_0x13f549}=Ke['deserializeRangeWithSheet'](_0x269ff7),_0x60552b={'name':(_0xe44f24=(_0x4e211c=this[_0x594419(0x258)]['getMember'](this[_0x594419(0x1c8)],_0x2fc875))==null?void 0x0:_0x4e211c[_0x594419(0x4ce)])!=null?_0xe44f24:_0x594419(0x56b),'range':this['_getMergeRange'](_0x3e47ec,_0x13f549),'sheetID':_0x3e47ec,'color':this[_0x594419(0x3b1)][_0x594419(0x3df)](_0x2fc875),'selection':_0x269ff7},_0x232b86=this[_0x594419(0x54c)];_0x232b86[_0x594419(0x470)](_0x2fc875,_0x60552b),this[_0x594419(0x1da)][_0x594419(0x4e8)](_0x232b86);}[_0x29b95d(0x44f)](_0x56f46a){const _0x50f208=_0x29b95d,{memberID:_0x8794e9}=_0x56f46a['data'],_0x1d2b9f=this[_0x50f208(0x54c)];_0x1d2b9f['delete'](_0x8794e9),this[_0x50f208(0x1da)]['next'](_0x1d2b9f);}['_getMergeRange'](_0x52bfcb,_0x44b023){const _0x3a9806=_0x29b95d;var _0x392297,_0x2045b5;const _0x27592d=(_0x2045b5=(_0x392297=this['_univerInstanceService'][_0x3a9806(0x1fe)](this['unitID']))==null?void 0x0:_0x392297['getSheetBySheetId'](_0x52bfcb))==null?void 0x0:_0x2045b5['getMergeData']();return(_0x27592d==null?void 0x0:_0x27592d['find'](_0x51f1b0=>a['Rectangle'][_0x3a9806(0x2b7)](_0x51f1b0,_0x44b023)))||_0x44b023;}[_0x29b95d(0x348)](){const _0x19da4a=_0x29b95d,_0x9e7c8b=new a[(_0x19da4a(0x3a4))](),_0x43bdf7=Ns(),_0x51b94b=()=>{const _0x5df1b=_0x19da4a;_0x9e7c8b[_0x5df1b(0x545)]();const _0x5e164f=(_0x4fc945,_0x56613d,_0x255996,_0x3333b7)=>{const _0x1755ef=_0x5df1b;let _0x35e8bd=[];switch(_0x4fc945['id']){case E[_0x1755ef(0x2d1)][_0x1755ef(0x4e2)]:{_0x35e8bd=E[_0x1755ef(0x38e)](_0x4fc945,_0x3333b7);break;}case E[_0x1755ef(0x2d1)]['DeleteRangeMoveUpCommandId']:{_0x35e8bd=E['handleDeleteRangeMoveUp'](_0x4fc945,_0x3333b7);break;}case E[_0x1755ef(0x2d1)][_0x1755ef(0x246)]:{_0x35e8bd=E['handleInsertCol'](_0x4fc945,_0x3333b7);break;}case E['EffectRefRangId']['InsertRangeMoveDownCommandId']:{_0x35e8bd=E[_0x1755ef(0x4eb)](_0x4fc945,_0x3333b7);break;}case E[_0x1755ef(0x2d1)][_0x1755ef(0x537)]:{_0x35e8bd=E['handleInsertRangeMoveRight'](_0x4fc945,_0x3333b7);break;}case E[_0x1755ef(0x2d1)]['InsertRowCommandId']:{_0x35e8bd=E['handleInsertRow'](_0x4fc945,_0x3333b7);break;}case E['EffectRefRangId']['MoveRangeCommandId']:{_0x35e8bd=E[_0x1755ef(0x50f)](_0x4fc945,_0x3333b7);break;}case E['EffectRefRangId'][_0x1755ef(0x511)]:{_0x35e8bd=E[_0x1755ef(0x2ea)](_0x4fc945,_0x3333b7);break;}case E['EffectRefRangId'][_0x1755ef(0x353)]:{_0x35e8bd=E[_0x1755ef(0x289)](_0x4fc945,_0x3333b7);break;}}const _0x2ee369=E[_0x1755ef(0x43d)](_0x35e8bd,_0x3333b7),_0x1e2358=this[_0x1755ef(0x54c)][_0x1755ef(0x2d3)](_0x56613d);if(_0x1e2358&&_0x2ee369){const _0x4f587c={..._0x1e2358,'range':_0x2ee369};this['cursorInfo'][_0x1755ef(0x470)](_0x56613d,_0x4f587c),_0x43bdf7(()=>{const _0x4c70af=_0x1755ef,_0x86a47=this[_0x4c70af(0x3d4)][_0x4c70af(0x1cf)](_0x2ee369,_0x1215ae=>(_0x86a47[_0x4c70af(0x545)](),_0x5e164f(_0x1215ae,_0x56613d,_0x255996,_0x2ee369)));_0x9e7c8b[_0x4c70af(0x3af)](_0x86a47);});}return{'redos':[],'undos':[]};};this[_0x5df1b(0x54c)][_0x5df1b(0x3b0)]((_0x34b3e7,_0x328db1)=>{const _0x26f0cf=_0x5df1b,{range:_0x3c7b85,sheetID:_0x28cd54}=_0x34b3e7,_0x3f4b2a=this[_0x26f0cf(0x3d4)][_0x26f0cf(0x1cf)](_0x3c7b85,_0x351f1c=>(_0x3f4b2a[_0x26f0cf(0x545)](),_0x5e164f(_0x351f1c,_0x328db1,_0x28cd54,_0x3c7b85)));_0x9e7c8b[_0x26f0cf(0x3af)](_0x3f4b2a);});};this[_0x19da4a(0x2f6)](a[_0x19da4a(0x273)](this[_0x19da4a(0x1da)][_0x19da4a(0x1e8)](()=>{_0x51b94b();})));}[_0x29b95d(0x427)](){const _0x5c56c0=_0x29b95d;var _0xaaeb1c,_0x3f8191;if(this[_0x5c56c0(0x3d1)]=!0x0,((_0xaaeb1c=this['_univerInstanceService'][_0x5c56c0(0x47e)]())==null?void 0x0:_0xaaeb1c[_0x5c56c0(0x25b)]())!==this[_0x5c56c0(0x1c8)])return;const _0x1790c4=(_0x3f8191=this['_injector'][_0x5c56c0(0x2d3)](E[_0x5c56c0(0x52c)])[_0x5c56c0(0x3e6)]())==null?void 0x0:_0x3f8191[0x0],_0x35bc0e=this[_0x5c56c0(0x50a)][_0x5c56c0(0x21d)](a[_0x5c56c0(0x30a)]['UNIVER_SHEET'])[_0x5c56c0(0x3d5)]();_0x1790c4&&_0x35bc0e&&this[_0x5c56c0(0x436)](_0x35bc0e[_0x5c56c0(0x3a5)](),_0x1790c4);}[_0x29b95d(0x4de)](){const _0x324f04=_0x29b95d;this[_0x324f04(0x3d1)]=!0x1;}};ye=Ps([q(0x2,h[_0x29b95d(0x563)](h['Injector'])),q(0x3,h[_0x29b95d(0x563)](We)),q(0x4,h['Inject'](G)),q(0x5,a[_0x29b95d(0x2e6)]),q(0x6,a[_0x29b95d(0x471)]),q(0x7,h['Inject'](E['RefRangeService']))],ye);function _0x3518(_0x5bb343,_0x20f4f7){const _0x371b59=_0x371b();return _0x3518=function(_0x3518c4,_0x1ae3fb){_0x3518c4=_0x3518c4-0x1c5;let _0x2e4d39=_0x371b59[_0x3518c4];return _0x2e4d39;},_0x3518(_0x5bb343,_0x20f4f7);}var As=Object[_0x29b95d(0x2f8)],js=Object[_0x29b95d(0x516)],$s=(_0x572e60,_0x62a02f,_0x2f79f5,_0x1fed18)=>{const _0x2fc68e=_0x29b95d;for(var _0x491dce=_0x1fed18>0x1?void 0x0:_0x1fed18?js(_0x62a02f,_0x2f79f5):_0x62a02f,_0xb9d949=_0x572e60[_0x2fc68e(0x49e)]-0x1,_0x4ee01a;_0xb9d949>=0x0;_0xb9d949--)(_0x4ee01a=_0x572e60[_0xb9d949])&&(_0x491dce=(_0x1fed18?_0x4ee01a(_0x62a02f,_0x2f79f5,_0x491dce):_0x4ee01a(_0x491dce))||_0x491dce);return _0x1fed18&&_0x491dce&&As(_0x62a02f,_0x2f79f5,_0x491dce),_0x491dce;},V=(_0x2654da,_0x17a2a4)=>(_0x317042,_0x2a3397)=>_0x17a2a4(_0x317042,_0x2a3397,_0x2654da);const Hs=0x12c,xs=0x64;let Ne=class extends a[_0x29b95d(0x275)]{constructor(_0x5bb009,_0x4dbcaf,_0x40e758,_0x1b17bd,_0xf226d4,_0x2d717e,_0x950c53,_0x1fe7e2,_0x593644){const _0xdd046e=_0x29b95d;super(),d(this,_0xdd046e(0x3d1),!0x1),d(this,_0xdd046e(0x2ec),!0x1),d(this,'_cursorInfo$',new g[(_0xdd046e(0x3cd))](new Map())),d(this,_0xdd046e(0x523),this[_0xdd046e(0x1da)][_0xdd046e(0x56a)]()),d(this,_0xdd046e(0x277),new g['BehaviorSubject']([])),d(this,_0xdd046e(0x3be),this[_0xdd046e(0x277)]['pipe'](g[_0xdd046e(0x55f)](Hs))),d(this,_0xdd046e(0x436),He(_0x397e9d=>{const _0x27690e=_0xdd046e,_0x449c1c={'eventID':u['CollaborationEvent'][_0x27690e(0x30b)],'data':{'unitID':this[_0x27690e(0x1c8)],'memberID':this[_0x27690e(0x329)][_0x27690e(0x429)](),'selection':bt(_0x397e9d)}};this[_0x27690e(0x329)][_0x27690e(0x434)](_0x449c1c,this[_0x27690e(0x1c8)]);},xs)),(this[_0xdd046e(0x1c8)]=_0x5bb009,this[_0xdd046e(0x329)]=_0x4dbcaf,this[_0xdd046e(0x42b)]=_0x40e758,this['_colorAssignService']=_0x1b17bd,this[_0xdd046e(0x258)]=_0xf226d4,this[_0xdd046e(0x4a0)]=_0x2d717e,this['_transformService']=_0x950c53,this[_0xdd046e(0x50a)]=_0x1fe7e2,this[_0xdd046e(0x4c9)]=_0x593644);}get['cursorInfo'](){const _0x7618f8=_0x29b95d;return this[_0x7618f8(0x1da)]['getValue']();}get['roomMembers'](){const _0x584297=_0x29b95d;return this[_0x584297(0x277)][_0x584297(0x2e8)]();}[_0x29b95d(0x545)](){const _0x4b1a76=_0x29b95d;super['dispose'](),this[_0x4b1a76(0x1da)][_0x4b1a76(0x4e8)](new Map()),this[_0x4b1a76(0x1da)][_0x4b1a76(0x388)](),this['_roomMembers$']['next']([]),this['_roomMembers$'][_0x4b1a76(0x388)]();}[_0x29b95d(0x32b)](){const _0x59eabd=_0x29b95d;this[_0x59eabd(0x2ec)]||(this[_0x59eabd(0x2ec)]=!0x0,this[_0x59eabd(0x329)][_0x59eabd(0x42c)][_0x59eabd(0x1e4)](g[_0x59eabd(0x4d2)](this[_0x59eabd(0x2e1)]))[_0x59eabd(0x1e8)](_0x1a9963=>{const _0x37acf4=_0x59eabd;_0x1a9963===W['ONLINE']?this[_0x37acf4(0x427)]():this[_0x37acf4(0x4de)]();}),this[_0x59eabd(0x329)]['event$']['pipe'](g[_0x59eabd(0x4d2)](this['dispose$']))['subscribe'](_0x3586cb=>{const _0x1d4b6b=_0x59eabd,_0x40b94a=_0x3586cb[_0x1d4b6b(0x3e1)];_0x40b94a===u[_0x1d4b6b(0x45f)][_0x1d4b6b(0x30b)]&&this[_0x1d4b6b(0x4cb)](_0x3586cb),_0x40b94a===u['CollaborationEvent'][_0x1d4b6b(0x274)]&&this[_0x1d4b6b(0x44f)](_0x3586cb);}),this[_0x59eabd(0x2f6)](this[_0x59eabd(0x4c9)][_0x59eabd(0x4ff)](_0x50b545=>{const _0x3d8030=_0x59eabd,_0x216c44=_0x50b545['params'];_0x216c44!=null&&this[_0x3d8030(0x3d1)]&&_0x50b545['id']===y[_0x3d8030(0x464)]['id']&&_0x216c44[_0x3d8030(0x3f4)]===this[_0x3d8030(0x1c8)]&&_0x216c44[_0x3d8030(0x27f)]===!0x1&&this[_0x3d8030(0x436)](_0x216c44[_0x3d8030(0x3ad)]);})),this[_0x59eabd(0x4a0)][_0x59eabd(0x221)][_0x59eabd(0x1e4)](g[_0x59eabd(0x4d2)](this[_0x59eabd(0x2e1)]))['subscribe'](_0x50728b=>{const _0x260a67=_0x59eabd;if((_0x50728b==null?void 0x0:_0x50728b[_0x260a67(0x1c8)])!==this[_0x260a67(0x1c8)])return;const _0x570fa0={'eventID':u['CollaborationEvent'][_0x260a67(0x30b)],'data':_0x50728b};this['_onCursorUpdate'](_0x570fa0);}),this['disposeWithMe'](this['_commandService']['onCommandExecuted'](_0x4b5601=>{const _0x40cdab=_0x59eabd;if(_0x4b5601[_0x40cdab(0x29d)]==null)return;const _0x30a916=_0x4b5601['params'];if(_0x4b5601['id']!==y['RichTextEditingMutation']['id']||_0x30a916[_0x40cdab(0x3f4)]!==this[_0x40cdab(0x1c8)])return;const _0x3f0c03={'id':_0x40cdab(0x400),'params':_0x30a916},_0x3f7d40=this[_0x40cdab(0x54c)];for(const [_0x8b9528,_0x101cf3]of _0x3f7d40){const _0x27dd28={'id':_0x40cdab(0x400),'params':{'unitId':this[_0x40cdab(0x1c8)],'actions':null,'textRanges':_0x101cf3[_0x40cdab(0x3ad)]}},_0x59aa9f=this['_transformService'][_0x40cdab(0x219)](_0x3f0c03,_0x27dd28,!0x1);if(u[_0x40cdab(0x566)](_0x59aa9f))throw _0x59aa9f['error'];_0x3f7d40[_0x40cdab(0x470)](_0x8b9528,{..._0x101cf3,'ranges':_0x59aa9f['m2Prime'][_0x40cdab(0x29d)][_0x40cdab(0x382)]});}queueMicrotask(()=>{const _0x5a4a9e=_0x40cdab;this['_cursorInfo$'][_0x5a4a9e(0x4e8)](_0x3f7d40);});})));}['_onCursorUpdate'](_0x546f76){const _0x4d1e88=_0x29b95d;var _0x4f95a5,_0x28101e;const {memberID:_0xaadd5e,selection:_0xa8d149}=_0x546f76[_0x4d1e88(0x2eb)],_0x179619=ms(_0xa8d149),_0xbd50a=(_0x28101e=(_0x4f95a5=this['_memberService']['getMember'](this[_0x4d1e88(0x1c8)],_0xaadd5e))==null?void 0x0:_0x4f95a5[_0x4d1e88(0x4ce)])!=null?_0x28101e:'Unknown\x20user',_0x5efd1f={'color':this[_0x4d1e88(0x3b1)][_0x4d1e88(0x3df)](_0xaadd5e),'name':_0xbd50a,'ranges':_0x179619},_0x357094=this[_0x4d1e88(0x54c)];_0x357094[_0x4d1e88(0x470)](_0xaadd5e,_0x5efd1f),this[_0x4d1e88(0x1da)][_0x4d1e88(0x4e8)](_0x357094);}['_onCursorDelete'](_0x2e8608){const _0x466950=_0x29b95d,{memberID:_0x2aed2c}=_0x2e8608[_0x466950(0x2eb)],_0x5ba81b=this[_0x466950(0x54c)];_0x5ba81b[_0x466950(0x485)](_0x2aed2c),this['_cursorInfo$']['next'](_0x5ba81b);}[_0x29b95d(0x427)](){const _0x1ba83c=_0x29b95d;var _0x9a1eaa;if(this[_0x1ba83c(0x3d1)]=!0x0,((_0x9a1eaa=this['_univerInstanceService'][_0x1ba83c(0x47e)]())==null?void 0x0:_0x9a1eaa[_0x1ba83c(0x25b)]())!==this[_0x1ba83c(0x1c8)])return;const _0x3fe44e=this[_0x1ba83c(0x42b)]['get'](y['TextSelectionManagerService'])[_0x1ba83c(0x3e6)](),_0x52db87=_0x3fe44e==null?void 0x0:_0x3fe44e[_0x1ba83c(0x2a0)](y[_0x1ba83c(0x422)]);Array[_0x1ba83c(0x4dd)](_0x52db87)&&_0x52db87[_0x1ba83c(0x49e)]>0x0&&this['_updateLocalCursor'](_0x52db87);}[_0x29b95d(0x4de)](){const _0x4f8324=_0x29b95d;this[_0x4f8324(0x3d1)]=!0x1;}};Ne=$s([V(0x2,h[_0x29b95d(0x563)](h[_0x29b95d(0x380)])),V(0x3,h[_0x29b95d(0x563)](We)),V(0x4,h['Inject'](G)),V(0x5,h['Inject'](Ve)),V(0x6,u['ITransformService']),V(0x7,a[_0x29b95d(0x2e6)]),V(0x8,a[_0x29b95d(0x471)])],Ne);var ks=Object['defineProperty'],Bs=Object[_0x29b95d(0x516)],Fs=(_0x19000b,_0x573017,_0xae8264,_0x1323ba)=>{const _0x17e374=_0x29b95d;for(var _0x580e34=_0x1323ba>0x1?void 0x0:_0x1323ba?Bs(_0x573017,_0xae8264):_0x573017,_0x5a7144=_0x19000b[_0x17e374(0x49e)]-0x1,_0x4093d5;_0x5a7144>=0x0;_0x5a7144--)(_0x4093d5=_0x19000b[_0x5a7144])&&(_0x580e34=(_0x1323ba?_0x4093d5(_0x573017,_0xae8264,_0x580e34):_0x4093d5(_0x580e34))||_0x580e34);return _0x1323ba&&_0x580e34&&ks(_0x573017,_0xae8264,_0x580e34),_0x580e34;},Oe=(_0x3bb930,_0x5e82a9)=>(_0x40a08c,_0x3546c2)=>_0x5e82a9(_0x40a08c,_0x3546c2,_0x3bb930);let J=class extends a[_0x29b95d(0x275)]{constructor(_0x2e6e61,_0x44610a,_0x1205f3){const _0x5c6344=_0x29b95d;super(),d(this,_0x5c6344(0x3db),new Map()),d(this,'_entityInit$',new g[(_0x5c6344(0x1c9))]()),(this[_0x5c6344(0x50a)]=_0x2e6e61,this[_0x5c6344(0x42b)]=_0x44610a,this[_0x5c6344(0x3a6)]=_0x1205f3,this[_0x5c6344(0x2ec)]());}[_0x29b95d(0x545)](){const _0x139137=_0x29b95d;super[_0x139137(0x545)](),this[_0x139137(0x4c1)]['complete'](),this[_0x139137(0x3db)][_0x139137(0x3b0)](_0x14c31b=>_0x14c31b[_0x139137(0x545)]());}['getCollabCursors$'](_0x5a2a90){const _0x185f99=_0x29b95d;return this[_0x185f99(0x3db)][_0x185f99(0x237)](_0x5a2a90)?this['_entities'][_0x185f99(0x2d3)](_0x5a2a90)['cursorInfo$']:this[_0x185f99(0x4c1)][_0x185f99(0x1e4)](g[_0x185f99(0x4c7)](_0x11dc36=>_0x11dc36[_0x185f99(0x1c8)]===_0x5a2a90),g[_0x185f99(0x1df)](_0x43a734=>_0x43a734[_0x185f99(0x523)]));}[_0x29b95d(0x2ec)](){const _0x5649d5=_0x29b95d;this['_univerInstanceService'][_0x5649d5(0x314)](a[_0x5649d5(0x30a)][_0x5649d5(0x272)])['pipe'](g['takeUntil'](this[_0x5649d5(0x2e1)]))[_0x5649d5(0x1e8)](async _0x1974c0=>{const _0x4c1471=_0x5649d5,_0x10a659=_0x1974c0[_0x4c1471(0x25b)](),_0x33cba1=await this[_0x4c1471(0x32f)](_0x10a659);this[_0x4c1471(0x4c1)][_0x4c1471(0x4e8)](_0x33cba1),this['_entities']['set'](_0x10a659,_0x33cba1);}),this[_0x5649d5(0x50a)]['getTypeOfUnitAdded$'](a['UniverInstanceType'][_0x5649d5(0x2a2)])[_0x5649d5(0x1e4)](g[_0x5649d5(0x4d2)](this[_0x5649d5(0x2e1)]))['pipe'](g[_0x5649d5(0x4c7)](_0x53e627=>!_0x53e627['getUnitId']()[_0x5649d5(0x2f9)]('__')))[_0x5649d5(0x1e8)](async _0x1dcf37=>{const _0x22e861=_0x5649d5,_0x2d73a3=_0x1dcf37['getUnitId'](),_0x4d073d=await this[_0x22e861(0x305)](_0x2d73a3);this['_entityInit$']['next'](_0x4d073d),this[_0x22e861(0x3db)][_0x22e861(0x470)](_0x2d73a3,_0x4d073d);}),g[_0x5649d5(0x22e)](this[_0x5649d5(0x50a)]['getTypeOfUnitDisposed$'](a[_0x5649d5(0x30a)]['UNIVER_DOC']),this[_0x5649d5(0x50a)][_0x5649d5(0x4a3)](a[_0x5649d5(0x30a)][_0x5649d5(0x272)]))[_0x5649d5(0x1e4)](g['takeUntil'](this[_0x5649d5(0x2e1)]))[_0x5649d5(0x1e8)](_0x15e5bd=>{const _0xddcf4d=_0x5649d5,_0x4d805b=_0x15e5bd[_0xddcf4d(0x25b)](),_0x2fabf4=this['_entities'][_0xddcf4d(0x2d3)](_0x4d805b);_0x2fabf4&&(_0x2fabf4[_0xddcf4d(0x545)](),this['_entities'][_0xddcf4d(0x485)](_0x4d805b));});}async[_0x29b95d(0x32f)](_0x4044b4){const _0x53ccf8=_0x29b95d,_0x25a366=await this[_0x53ccf8(0x3a6)][_0x53ccf8(0x393)](_0x4044b4),_0x4beb95=this[_0x53ccf8(0x42b)][_0x53ccf8(0x1db)](ye,_0x4044b4,_0x25a366);return _0x4beb95[_0x53ccf8(0x32b)](),_0x4beb95;}async[_0x29b95d(0x305)](_0x25f1f0){const _0x4d4d50=_0x29b95d,_0x3169bb=await this[_0x4d4d50(0x3a6)][_0x4d4d50(0x393)](_0x25f1f0),_0xad179b=this[_0x4d4d50(0x42b)]['createInstance'](Ne,_0x25f1f0,_0x3169bb);return _0xad179b['init'](),_0xad179b;}};J=Fs([a['OnLifecycle'](a[_0x29b95d(0x51c)]['Starting'],J),Oe(0x0,a['IUniverInstanceService']),Oe(0x1,h[_0x29b95d(0x563)](h[_0x29b95d(0x380)])),Oe(0x2,h[_0x29b95d(0x563)](exports['CollaborationSessionService']))],J);const ce=0x14,st=0xc8,De=0x4,Vs=0x5;function Ws(_0x4c659a,_0x493dce){const _0x301d30=_0x29b95d;let {radius:_0x3f0920,width:_0x3a695f,height:_0x244193}=_0x493dce;_0x3f0920=_0x3f0920!=null?_0x3f0920:0x0,_0x3a695f=_0x3a695f!=null?_0x3a695f:0x1e,_0x244193=_0x244193!=null?_0x244193:0x1e;let _0x55285f=0x0,_0x2a552c=0x0,_0x1a311a=0x0;_0x55285f=_0x2a552c=_0x1a311a=Math[_0x301d30(0x248)](_0x3f0920,_0x3a695f/0x2,_0x244193/0x2),_0x4c659a[_0x301d30(0x331)](),_0x4c659a[_0x301d30(0x39d)](_0x55285f,0x0),_0x4c659a[_0x301d30(0x451)](_0x3a695f-_0x2a552c,0x0),_0x4c659a[_0x301d30(0x3c1)](_0x3a695f-_0x2a552c,_0x2a552c,_0x2a552c,Math['PI']*0x3/0x2,0x0,!0x1),_0x4c659a[_0x301d30(0x451)](_0x3a695f,_0x244193-_0x1a311a),_0x4c659a['arc'](_0x3a695f-_0x1a311a,_0x244193-_0x1a311a,_0x1a311a,0x0,Math['PI']/0x2,!0x1),_0x4c659a[_0x301d30(0x451)](0x0,_0x244193),_0x4c659a[_0x301d30(0x451)](0x0,_0x55285f),_0x4c659a[_0x301d30(0x3c1)](_0x55285f,_0x55285f,_0x55285f,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x4c659a[_0x301d30(0x404)](),_0x493dce[_0x301d30(0x2ae)]&&(_0x4c659a['save'](),_0x4c659a[_0x301d30(0x33c)]=_0x493dce[_0x301d30(0x2ae)],_0x493dce[_0x301d30(0x208)]===_0x301d30(0x367)?_0x4c659a[_0x301d30(0x2ae)](_0x301d30(0x367)):_0x4c659a[_0x301d30(0x2ae)](),_0x4c659a[_0x301d30(0x3bc)]());}class Ce extends R['Shape']{constructor(_0x384f2e,_0x355f45){const _0x56c55c=_0x29b95d;super(_0x384f2e,_0x355f45),d(this,_0x56c55c(0x1de)),d(this,_0x56c55c(0x3cf)),(this['color']=_0x355f45==null?void 0x0:_0x355f45['color'],this[_0x56c55c(0x3cf)]=_0x355f45==null?void 0x0:_0x355f45[_0x56c55c(0x3cf)]);}static[_0x29b95d(0x3c0)](_0x5577ab,_0x409354){const _0x2e3dc3=_0x29b95d,{text:_0x2d0ac8,color:_0x22cd71}=_0x409354;_0x5577ab[_0x2e3dc3(0x390)](),_0x5577ab[_0x2e3dc3(0x430)]=_0x2e3dc3(0x494);const _0x322eab=_0x5577ab[_0x2e3dc3(0x496)](_0x2d0ac8)[_0x2e3dc3(0x3da)],_0x2f73b2=Math['min'](_0x322eab+0x2*De,st);Ws(_0x5577ab,{'height':ce,'radius':0x4,'width':_0x2f73b2,'fill':_0x22cd71,'evented':!0x1}),_0x5577ab[_0x2e3dc3(0x33c)]=_0x2e3dc3(0x34d);const _0x59437f=De,_0x41badd=ce-Vs,_0x27089b=st-0x2*De;if(_0x322eab>_0x27089b){let _0x124903='',_0x4bec74=0x0;for(const _0x30b15e of _0x2d0ac8){const _0x2d8130=_0x5577ab[_0x2e3dc3(0x496)](_0x30b15e)[_0x2e3dc3(0x3da)];if(_0x4bec74+_0x2d8130<=_0x27089b-_0x5577ab['measureText'](_0x2e3dc3(0x202))[_0x2e3dc3(0x3da)])_0x124903+=_0x30b15e,_0x4bec74+=_0x2d8130;else{_0x124903+=_0x2e3dc3(0x202);break;}}_0x5577ab['fillText'](_0x124903,_0x59437f,_0x41badd);}else _0x5577ab[_0x2e3dc3(0x565)](_0x2d0ac8,_0x59437f,_0x41badd);_0x5577ab['restore']();}['_draw'](_0x487948){const _0x154868=_0x29b95d;Ce[_0x154868(0x3c0)](_0x487948,this);}}const Gs=0x1,Ys=1.5;class Ks extends R[_0x29b95d(0x4fb)]{constructor(_0x143649,_0x2a8505){const _0x3bd0f6=_0x29b95d;super(_0x143649,_0x2a8505),d(this,_0x3bd0f6(0x2c3)),d(this,_0x3bd0f6(0x1d5),!0x1),d(this,_0x3bd0f6(0x4ef)),d(this,_0x3bd0f6(0x362),''),d(this,_0x3bd0f6(0x2e0),_0x3bd0f6(0x53d)),(_0x2a8505&&this[_0x3bd0f6(0x4ec)](_0x2a8505),this[_0x3bd0f6(0x20b)]['subscribeEvent'](()=>this[_0x3bd0f6(0x4ec)]({'hovered':!0x0})),this[_0x3bd0f6(0x568)][_0x3bd0f6(0x34f)](()=>this['setShapeProps']({'hovered':!0x1})));}[_0x29b95d(0x4ec)](_0x4b1e36){const _0x5c9634=_0x29b95d;var _0x58a489,_0x2aac6b,_0x1f9b28,_0x3d87db,_0x2d54af;this[_0x5c9634(0x2c3)]=(_0x58a489=_0x4b1e36['color'])!=null?_0x58a489:this[_0x5c9634(0x2c3)],this[_0x5c9634(0x1d5)]=(_0x2aac6b=_0x4b1e36['hovered'])!=null?_0x2aac6b:this['_hovered'],this[_0x5c9634(0x4ef)]=(_0x1f9b28=_0x4b1e36['range'])!=null?_0x1f9b28:this[_0x5c9634(0x4ef)],this['_name']=(_0x3d87db=_0x4b1e36[_0x5c9634(0x4ce)])!=null?_0x3d87db:this[_0x5c9634(0x362)],this[_0x5c9634(0x2e0)]=(_0x2d54af=_0x4b1e36[_0x5c9634(0x309)])!=null?_0x2d54af:this[_0x5c9634(0x2e0)],this[_0x5c9634(0x33e)]({'width':_0x4b1e36[_0x5c9634(0x3da)],'height':_0x4b1e36[_0x5c9634(0x52b)]});}['onMouseMove'](_0x3e7401){const _0x25facc=_0x29b95d,{row:_0x1f5532,column:_0x1a8511}=_0x3e7401;if(_0x1f5532>=this[_0x25facc(0x4ef)][_0x25facc(0x1c5)]&&_0x1f5532<=this[_0x25facc(0x4ef)][_0x25facc(0x4b8)]&&_0x1a8511>=this[_0x25facc(0x4ef)][_0x25facc(0x3a8)]&&_0x1a8511<=this[_0x25facc(0x4ef)]['endColumn']){this[_0x25facc(0x4ec)]({'hovered':!0x0});return;}this['setShapeProps']({'hovered':!0x1});}['triggerDblclick'](_0x285fe5){return!0x1;}[_0x29b95d(0x4cf)](_0x43a833){const _0x230c00=_0x29b95d;R['Rect'][_0x230c00(0x3c0)](_0x43a833,{'width':this[_0x230c00(0x3da)],'height':this['height'],'strokeWidth':Ys,'stroke':this['_color'],'evented':!0x1}),this['_hovered']&&(_0x43a833[_0x230c00(0x390)](),_0x43a833[_0x230c00(0x28d)](0x1,0x0,0x0,0x1,this[_0x230c00(0x3da)],this[_0x230c00(0x2e0)]==='bottom'?0x0:-ce),Ce[_0x230c00(0x3c0)](_0x43a833,{'text':this['_name'],'color':this['_color']}),_0x43a833[_0x230c00(0x3bc)]());}}var Xs=Object[_0x29b95d(0x2f8)],qs=Object['getOwnPropertyDescriptor'],zs=(_0x5359d3,_0x5af6b8,_0x2a8141,_0x4b5105)=>{const _0x505a4f=_0x29b95d;for(var _0x36e855=_0x4b5105>0x1?void 0x0:_0x4b5105?qs(_0x5af6b8,_0x2a8141):_0x5af6b8,_0x3d2f1e=_0x5359d3[_0x505a4f(0x49e)]-0x1,_0x1f4a15;_0x3d2f1e>=0x0;_0x3d2f1e--)(_0x1f4a15=_0x5359d3[_0x3d2f1e])&&(_0x36e855=(_0x4b5105?_0x1f4a15(_0x5af6b8,_0x2a8141,_0x36e855):_0x1f4a15(_0x36e855))||_0x36e855);return _0x4b5105&&_0x36e855&&Xs(_0x5af6b8,_0x2a8141,_0x36e855),_0x36e855;},le=(_0x4a809e,_0x395078)=>(_0x3ced77,_0x233c2f)=>_0x395078(_0x3ced77,_0x233c2f,_0x4a809e);const Js=0x1389;let ue=class extends a['RxDisposable']{constructor(_0x3d5636,_0x11c043,_0x25f230,_0x36c754){const _0x307b40=_0x29b95d;super(),d(this,_0x307b40(0x318),new Set()),d(this,_0x307b40(0x4e7),null),(this['_collabCursorController']=_0x3d5636,this[_0x307b40(0x50a)]=_0x11c043,this[_0x307b40(0x253)]=_0x25f230,this[_0x307b40(0x207)]=_0x36c754,this[_0x307b40(0x2ec)]());}get[_0x29b95d(0x24c)](){const _0x4f3ca8=_0x29b95d;return this[_0x4f3ca8(0x253)]['getRenderById'](this['_univerInstanceService']['getCurrentUnitForType'](a[_0x4f3ca8(0x30a)][_0x4f3ca8(0x272)])['getUnitId']())['with'](ee['SheetSkeletonManagerService']);}get[_0x29b95d(0x48b)](){const _0x58e3c6=_0x29b95d;return this[_0x58e3c6(0x50a)][_0x58e3c6(0x21d)](a['UniverInstanceType']['UNIVER_SHEET'])[_0x58e3c6(0x25b)]();}[_0x29b95d(0x2ec)](){const _0x1d81c9=_0x29b95d;this[_0x1d81c9(0x24c)][_0x1d81c9(0x3e9)][_0x1d81c9(0x1e4)](T[_0x1d81c9(0x4d2)](this[_0x1d81c9(0x2e1)]),T[_0x1d81c9(0x1df)](_0x42e49a=>{const _0x5abea1=_0x1d81c9;if(_0x42e49a){const _0x59adf8=_0x42e49a[_0x5abea1(0x572)];return g['combineLatest'](this[_0x5abea1(0x3ff)][_0x5abea1(0x51d)](this[_0x5abea1(0x48b)]),this[_0x5abea1(0x207)][_0x5abea1(0x474)])[_0x5abea1(0x1e4)](T[_0x5abea1(0x2a0)](([_0x304ce9,_0xe794e9])=>{const _0x26e70f=_0x5abea1,_0x1dda1e=new Map();return _0x304ce9[_0x26e70f(0x3b0)]((_0x2440da,_0x426eb3)=>{const _0x1d1235=_0x26e70f;if(_0x2440da['sheetID']===_0x59adf8){const _0x499746={..._0x2440da};_0x499746[_0x1d1235(0x1de)]=_0xe794e9[_0x2440da['color']],_0x1dda1e['set'](_0x426eb3,_0x499746);}}),{'skeleton':_0x42e49a,'cursors':_0x1dda1e};}));}return g['of']({'skeleton':null,'cursors':new Map()});}))['subscribe'](({skeleton:_0xaed3c9,cursors:_0x25e2db})=>{const _0x63e4b7=_0x1d81c9;this['_removeCollabCursors'](),_0xaed3c9&&this[_0x63e4b7(0x323)](_0xaed3c9,_0x25e2db);}),this['_sheetSkeletonManagerService'][_0x1d81c9(0x3e9)][_0x1d81c9(0x1e8)](_0x340b05=>{const _0x3e9993=_0x1d81c9;if(_0x340b05==null)return;const {skeleton:_0x50d443}=_0x340b05,_0x35d48d=this[_0x3e9993(0x253)][_0x3e9993(0x334)](this[_0x3e9993(0x48b)]),{scene:_0x4b318e}=_0x35d48d;_0x4b318e[_0x3e9993(0x44d)]['subscribeEvent'](He(_0x5b1217=>{const _0x1b711d=_0x3e9993;var _0x4c04d8,_0x121054;const {offsetX:_0x2280e3,offsetY:_0x418b1c}=_0x5b1217,{x:_0x3382c9,y:_0x1797e4}=_0x4b318e[_0x1b711d(0x3e2)](R['Vector2'][_0x1b711d(0x225)]([_0x2280e3,_0x418b1c])),{scaleX:_0x4d02f0,scaleY:_0x223a21}=_0x4b318e['getAncestorScale'](),_0x45d337=_0x4b318e['getViewport'](ee[_0x1b711d(0x2a6)]['VIEW_MAIN']),_0x307afd=_0x4b318e['getScrollXYByRelativeCoords'](R[_0x1b711d(0x3ee)][_0x1b711d(0x225)]([_0x3382c9,_0x1797e4]),_0x45d337),_0x443258=_0x50d443[_0x1b711d(0x4e3)](_0x2280e3,_0x418b1c,_0x4d02f0,_0x223a21,_0x307afd);((_0x4c04d8=this[_0x1b711d(0x4e7)])==null?void 0x0:_0x4c04d8['column'])===_0x443258[_0x1b711d(0x493)]&&((_0x121054=this[_0x1b711d(0x4e7)])==null?void 0x0:_0x121054['row'])===_0x443258[_0x1b711d(0x1f3)]||this['_cursors']['forEach'](_0x5b8e0d=>{const _0x594bfb=_0x1b711d;_0x5b8e0d[_0x594bfb(0x440)](_0x443258);});},0x64));});}[_0x29b95d(0x323)](_0x184208,_0x28a40e){const _0x1b77a4=_0x29b95d;var _0x5335a1;const _0x133473=(_0x5335a1=this[_0x1b77a4(0x24c)][_0x1b77a4(0x2f2)]())==null?void 0x0:_0x5335a1['skeleton'];if(!_0x133473)return;const _0x6d9e8c=this[_0x1b77a4(0x3b6)]();if(!_0x6d9e8c)return;this[_0x1b77a4(0x318)][_0x1b77a4(0x3b0)](_0x57464f=>{_0x57464f['makeDirty']();});const {scene:_0x4febc6}=_0x6d9e8c,_0x576dff=Zs(Array['from'](_0x28a40e[_0x1b77a4(0x40f)]()))[_0x1b77a4(0x2a0)](_0x2ffb7d=>{const _0x600ffe=_0x1b77a4,{color:_0x465e9a,range:_0x1f5ede,name:_0x1e7639,selection:_0xc2b809,sheetID:_0x2e9348}=_0x2ffb7d,{startColumn:_0x44a89f,startRow:_0x3dd5aa,endColumn:_0x7e1069,endRow:_0x356b16}=_0x1f5ede,_0x48a7f1=ee[_0x600ffe(0x506)](_0x3dd5aa,_0x44a89f,_0x4febc6,_0x133473),_0x5d6676=ee[_0x600ffe(0x506)](_0x356b16,_0x7e1069,_0x4febc6,_0x133473),{columnHeaderHeightAndMarginTop:_0x37eb47}=_0x133473,{startX:_0x1cb213,startY:_0x228c79}=_0x48a7f1,{endX:_0xf62c51,endY:_0x14c7ef}=_0x5d6676,_0x430e54=_0xf62c51-_0x1cb213,_0x14d3a1=_0x14c7ef-_0x228c79,_0x50140d={'labelPosition':_0x228c79-_0x37eb47>=ce?'top':_0x600ffe(0x27e),'sheetID':_0x2e9348,'range':_0x1f5ede,'color':_0x465e9a,'name':_0x1e7639,'selection':_0xc2b809,'left':_0x1cb213,'top':_0x228c79,'width':_0x430e54,'height':_0x14d3a1,'evented':!0x1,'zIndex':Js};return new Ks(_0x1e7639,_0x50140d);});_0x4febc6[_0x1b77a4(0x2f1)](_0x576dff,Gs),this['_cursors']=new Set(_0x576dff);}[_0x29b95d(0x350)](){const _0x525332=_0x29b95d;var _0xbb02df;(_0xbb02df=this[_0x525332(0x318)])==null||_0xbb02df[_0x525332(0x3b0)](_0x4ae4c4=>_0x4ae4c4[_0x525332(0x545)]());}[_0x29b95d(0x3b6)](){const _0x20cd48=_0x29b95d;return ee[_0x20cd48(0x1ec)](this[_0x20cd48(0x50a)],this[_0x20cd48(0x253)]);}};ue=zs([a['OnLifecycle'](a[_0x29b95d(0x51c)][_0x29b95d(0x4ba)],ue),le(0x0,h['Inject'](J)),le(0x1,a[_0x29b95d(0x2e6)]),le(0x2,R[_0x29b95d(0x21f)]),le(0x3,h[_0x29b95d(0x563)](a[_0x29b95d(0x336)]))],ue);function Zs(_0x51e332){const _0x445f45=_0x29b95d,_0x1b0255=new Map();return _0x51e332[_0x445f45(0x3b0)](_0x871232=>{const _0x13fd4d=_0x445f45;if(_0x1b0255[_0x13fd4d(0x237)](_0x871232[_0x13fd4d(0x2ff)])){const _0x503d4a=_0x1b0255[_0x13fd4d(0x2d3)](_0x871232['selection']);_0x503d4a[_0x13fd4d(0x4ce)]+=',\x20'+_0x871232[_0x13fd4d(0x4ce)];}else _0x1b0255[_0x13fd4d(0x470)](_0x871232[_0x13fd4d(0x2ff)],_0x871232);}),Array[_0x445f45(0x39a)](_0x1b0255[_0x445f45(0x40f)]());}var M=function(){const _0x44d148=_0x29b95d;return M=Object[_0x44d148(0x2b1)]||function(_0x292b09){const _0x783bf7=_0x44d148;for(var _0x5330b9,_0x90e94f=0x1,_0x396c59=arguments['length'];_0x90e94f<_0x396c59;_0x90e94f++){_0x5330b9=arguments[_0x90e94f];for(var _0x39cbe8 in _0x5330b9)Object[_0x783bf7(0x4e6)][_0x783bf7(0x3e8)][_0x783bf7(0x3a1)](_0x5330b9,_0x39cbe8)&&(_0x292b09[_0x39cbe8]=_0x5330b9[_0x39cbe8]);}return _0x292b09;},M[_0x44d148(0x2a1)](this,arguments);},Qs=function(_0x3bab3e,_0x2051dd){const _0x3e9953=_0x29b95d;var _0xb6798d={};for(var _0x17ac77 in _0x3bab3e)Object[_0x3e9953(0x4e6)]['hasOwnProperty'][_0x3e9953(0x3a1)](_0x3bab3e,_0x17ac77)&&_0x2051dd[_0x3e9953(0x424)](_0x17ac77)<0x0&&(_0xb6798d[_0x17ac77]=_0x3bab3e[_0x17ac77]);if(_0x3bab3e!=null&&typeof Object['getOwnPropertySymbols']==_0x3e9953(0x4fc)){for(var _0x553c57=0x0,_0x17ac77=Object['getOwnPropertySymbols'](_0x3bab3e);_0x553c57<_0x17ac77[_0x3e9953(0x49e)];_0x553c57++)_0x2051dd[_0x3e9953(0x424)](_0x17ac77[_0x553c57])<0x0&&Object['prototype'][_0x3e9953(0x203)][_0x3e9953(0x3a1)](_0x3bab3e,_0x17ac77[_0x553c57])&&(_0xb6798d[_0x17ac77[_0x553c57]]=_0x3bab3e[_0x17ac77[_0x553c57]]);}return _0xb6798d;},Ge=L['forwardRef'](function(_0xe3934b,_0x26252d){const _0x22349e=_0x29b95d;var _0x3196cd=_0xe3934b[_0x22349e(0x22b)],_0x13a18e=_0xe3934b['id'],_0x250c6b=_0xe3934b[_0x22349e(0x463)],_0x17e64f=_0xe3934b[_0x22349e(0x49d)],_0x17e185=Qs(_0xe3934b,['icon','id',_0x22349e(0x463),_0x22349e(0x49d)]),_0x49bb76=_0x22349e(0x235)['concat'](_0x13a18e,'\x20')[_0x22349e(0x313)](_0x250c6b||'')['trim'](),_0x390b76=L[_0x22349e(0x29e)]('_'[_0x22349e(0x313)](si()));return Rt(_0x3196cd,''[_0x22349e(0x313)](_0x13a18e),{'defIds':_0x3196cd[_0x22349e(0x499)],'idSuffix':_0x390b76['current']},M({'ref':_0x26252d,'className':_0x49bb76},_0x17e185),_0x17e64f);});function Rt(_0x32be78,_0x4401dc,_0x415b88,_0x501b0b,_0x56717b){const _0x300c1c=_0x29b95d;return L[_0x300c1c(0x569)](_0x32be78[_0x300c1c(0x239)],M(M({'key':_0x4401dc},ei(_0x32be78,_0x415b88,_0x56717b)),_0x501b0b),(ti(_0x32be78,_0x415b88)[_0x300c1c(0x45d)]||[])[_0x300c1c(0x2a0)](function(_0x23247b,_0x2d5ccb){const _0x2e932f=_0x300c1c;return Rt(_0x23247b,''[_0x2e932f(0x313)](_0x4401dc,'-')[_0x2e932f(0x313)](_0x32be78[_0x2e932f(0x239)],'-')[_0x2e932f(0x313)](_0x2d5ccb),_0x415b88,void 0x0,_0x56717b);}));}function ei(_0x2c3a20,_0x24b1c8,_0x487329){const _0x1e39c1=_0x29b95d;var _0x2854ab=M({},_0x2c3a20[_0x1e39c1(0x326)]);_0x487329!=null&&_0x487329[_0x1e39c1(0x44a)]&&_0x2854ab[_0x1e39c1(0x2ae)]===_0x1e39c1(0x44a)&&(_0x2854ab['fill']=_0x487329['colorChannel1']);var _0x5a96a5=_0x24b1c8[_0x1e39c1(0x499)];return!_0x5a96a5||_0x5a96a5['length']===0x0||(_0x2c3a20['tag']==='use'&&_0x2854ab['xlink:href']&&(_0x2854ab[_0x1e39c1(0x214)]=_0x2854ab[_0x1e39c1(0x214)]+_0x24b1c8[_0x1e39c1(0x307)]),Object[_0x1e39c1(0x42f)](_0x2854ab)[_0x1e39c1(0x3b0)](function(_0x3c0253){const _0x627c40=_0x1e39c1;var _0x1de044=_0x3c0253[0x0],_0x2b8f29=_0x3c0253[0x1];typeof _0x2b8f29==_0x627c40(0x4a9)&&(_0x2854ab[_0x1de044]=_0x2b8f29[_0x627c40(0x51b)](/url\(#(.*)\)/,_0x627c40(0x439)[_0x627c40(0x313)](_0x24b1c8[_0x627c40(0x307)],')')));})),_0x2854ab;}function ti(_0x3f731f,_0x4facb0){const _0x337d79=_0x29b95d;var _0x4c00f9,_0x59152c=_0x4facb0[_0x337d79(0x499)];return!_0x59152c||_0x59152c[_0x337d79(0x49e)]===0x0?_0x3f731f:_0x3f731f[_0x337d79(0x239)]===_0x337d79(0x319)&&(!((_0x4c00f9=_0x3f731f['children'])===null||_0x4c00f9===void 0x0)&&_0x4c00f9['length'])?M(M({},_0x3f731f),{'children':_0x3f731f[_0x337d79(0x45d)][_0x337d79(0x2a0)](function(_0x5c4168){const _0x477195=_0x337d79;return typeof _0x5c4168[_0x477195(0x326)]['id']==_0x477195(0x4a9)&&_0x59152c&&_0x59152c[_0x477195(0x424)](_0x5c4168[_0x477195(0x326)]['id'])>-0x1?M(M({},_0x5c4168),{'attrs':M(M({},_0x5c4168[_0x477195(0x326)]),{'id':_0x5c4168[_0x477195(0x326)]['id']+_0x4facb0[_0x477195(0x307)]})}):_0x5c4168;})}):_0x3f731f;}function si(){const _0x4ae144=_0x29b95d;return Math[_0x4ae144(0x2ca)]()[_0x4ae144(0x544)](0x24)[_0x4ae144(0x3d8)](0x2,0x8);}Ge[_0x29b95d(0x546)]='UniverIcon';var ii={'tag':'svg','attrs':{'fill':_0x29b95d(0x316),'viewBox':'0\x200\x2016\x2016','width':_0x29b95d(0x243),'height':_0x29b95d(0x243)},'children':[{'tag':'g','attrs':{'clipPath':'url(#off-line-single_clip0_910_343)'},'children':[{'tag':'path','attrs':{'stroke':'currentColor','d':_0x29b95d(0x54f),'strokeLinecap':'round','strokeLinejoin':_0x29b95d(0x467),'strokeWidth':1.2}}]},{'tag':_0x29b95d(0x319),'attrs':{},'children':[{'tag':_0x29b95d(0x34a),'attrs':{'id':_0x29b95d(0x449)},'children':[{'tag':_0x29b95d(0x245),'attrs':{'fill':_0x29b95d(0x2d4),'d':_0x29b95d(0x4da)}}]}]}],'defIds':[_0x29b95d(0x449)]},Ot=L['forwardRef'](function(_0x4b186b,_0x17f674){const _0x3488c8=_0x29b95d;return L[_0x3488c8(0x569)](Ge,Object['assign']({},_0x4b186b,{'id':'off-line-single','ref':_0x17f674,'icon':ii}));});Ot[_0x29b95d(0x546)]=_0x29b95d(0x1f0);var ni={'tag':_0x29b95d(0x455),'attrs':{'fill':_0x29b95d(0x316),'viewBox':'0\x200\x2017\x2016','width':'1em','height':_0x29b95d(0x243)},'children':[{'tag':'g','attrs':{'clipPath':_0x29b95d(0x3b7)},'children':[{'tag':_0x29b95d(0x245),'attrs':{'stroke':'currentColor','d':_0x29b95d(0x252),'strokeLinecap':'round','strokeLinejoin':'round','strokeWidth':1.2}}]},{'tag':_0x29b95d(0x319),'attrs':{},'children':[{'tag':_0x29b95d(0x34a),'attrs':{'id':'on-line-single_clip0_910_349'},'children':[{'tag':_0x29b95d(0x245),'attrs':{'fill':'#fff','d':_0x29b95d(0x4da),'transform':'translate(.97)'}}]}]}],'defIds':['on-line-single_clip0_910_349']},Dt=L[_0x29b95d(0x1ea)](function(_0x1147f5,_0x2306b7){const _0x1ce8e9=_0x29b95d;return L[_0x1ce8e9(0x569)](Ge,Object['assign']({},_0x1147f5,{'id':_0x1ce8e9(0x1d8),'ref':_0x2306b7,'icon':ni}));});Dt[_0x29b95d(0x546)]=_0x29b95d(0x51f);const ri='univer-online-status-icon',oi=_0x29b95d(0x37d),ai=_0x29b95d(0x3fc),ci='univer-online',li='univer-offline',ie={'onlineStatusIcon':ri,'onlineStatusTitle':oi,'onlineStatus':ai,'online':ci,'offline':li};function hi(_0x8772b8){const _0x437cc8=_0x29b95d;switch(_0x8772b8){case U[_0x437cc8(0x234)]:return _0x437cc8(0x220);case U[_0x437cc8(0x38c)]:return'collabStatus.conflict';case U[_0x437cc8(0x2e3)]:return'collabStatus.fetchMiss';case U[_0x437cc8(0x415)]:return _0x437cc8(0x54d);case U['PENDING']:case U['AWAITING']:case U[_0x437cc8(0x4ae)]:return _0x437cc8(0x3c7);case U[_0x437cc8(0x254)]:return _0x437cc8(0x4bb);}}function Ut(_0x416522){const _0x2a5fea=_0x29b95d,{status$:_0x1eddb6}=_0x416522,_0x4bd887=N['useObservable'](_0x1eddb6,U[_0x2a5fea(0x415)]),_0x17d5dd=ct[_0x2a5fea(0x1e6)](a[_0x2a5fea(0x3c8)]),_0x59292d=_0x4bd887!==U[_0x2a5fea(0x234)],_0x4d4f4f=_0x17d5dd['t'](hi(_0x4bd887)),_0x52ee9d=xt(ie[_0x2a5fea(0x295)],{[ie[_0x2a5fea(0x513)]]:_0x59292d,[ie[_0x2a5fea(0x35d)]]:!_0x59292d}),_0x17f022=_0x59292d?L[_0x2a5fea(0x569)](Dt,null):L[_0x2a5fea(0x569)](Ot,null);return L[_0x2a5fea(0x569)]('div',{'className':_0x52ee9d},L['createElement'](_0x2a5fea(0x465),{'className':ie['onlineStatusIcon']},_0x17f022),L[_0x2a5fea(0x569)](_0x2a5fea(0x465),{'className':ie[_0x2a5fea(0x570)]},_0x4d4f4f));}var _i=Object[_0x29b95d(0x2f8)],ui=Object[_0x29b95d(0x516)],di=(_0x366acf,_0x54ca92,_0x5cfc46,_0x2adaf4)=>{const _0x475e6e=_0x29b95d;for(var _0xd62b76=_0x2adaf4>0x1?void 0x0:_0x2adaf4?ui(_0x54ca92,_0x5cfc46):_0x54ca92,_0x4d8a69=_0x366acf[_0x475e6e(0x49e)]-0x1,_0x33f4e0;_0x4d8a69>=0x0;_0x4d8a69--)(_0x33f4e0=_0x366acf[_0x4d8a69])&&(_0xd62b76=(_0x2adaf4?_0x33f4e0(_0x54ca92,_0x5cfc46,_0xd62b76):_0x33f4e0(_0xd62b76))||_0xd62b76);return _0x2adaf4&&_0xd62b76&&_i(_0x54ca92,_0x5cfc46,_0xd62b76),_0xd62b76;},he=(_0x5d7af8,_0x372d3c)=>(_0x15e628,_0x49ce91)=>_0x372d3c(_0x15e628,_0x49ce91,_0x5d7af8);exports[_0x29b95d(0x529)]=class extends a[_0x29b95d(0x1dd)]{constructor(_0x5837e1,_0x494ad5,_0x5018b8,_0x18dc84){const _0xf335a8=_0x29b95d;super(),d(this,_0xf335a8(0x322),new g[(_0xf335a8(0x3cd))](U[_0xf335a8(0x415)])),(this['_univerInstanceService']=_0x5837e1,this[_0xf335a8(0x47d)]=_0x494ad5,this[_0xf335a8(0x42b)]=_0x5018b8,this[_0xf335a8(0x2d9)]=_0x18dc84,this[_0xf335a8(0x555)](),this['_initStatusListener']());}[_0x29b95d(0x555)](){const _0x10799f=_0x29b95d;this[_0x10799f(0x2f6)](this[_0x10799f(0x47d)][_0x10799f(0x29b)](N[_0x10799f(0x29a)][_0x10799f(0x230)],()=>ct[_0x10799f(0x411)](Si({'status$':this[_0x10799f(0x322)][_0x10799f(0x56a)]()}),this[_0x10799f(0x42b)])));}['_initStatusListener'](){const _0x3d1d1a=_0x29b95d;this[_0x3d1d1a(0x2f6)](a[_0x3d1d1a(0x273)](this[_0x3d1d1a(0x50a)]['focused$'][_0x3d1d1a(0x1e4)](g['switchMap'](()=>{const _0x20cea9=_0x3d1d1a,_0x2937cd=this[_0x20cea9(0x50a)]['getFocusedUnit']();return _0x2937cd?this['_collaborationController']['getCollabEntity$'](_0x2937cd[_0x20cea9(0x25b)]()):g['of'](null);}),g['switchMap'](_0x13129e=>_0x13129e?_0x13129e['status$']:g['of'](U[_0x3d1d1a(0x415)])))['subscribe'](_0x56f69e=>{const _0x16a8d9=_0x3d1d1a;this['_status$'][_0x16a8d9(0x4e8)](_0x56f69e);})));}},exports[_0x29b95d(0x529)]=di([a[_0x29b95d(0x387)](a[_0x29b95d(0x51c)]['Starting'],exports['DesktopCollaborationStatusDisplayController']),he(0x0,a[_0x29b95d(0x2e6)]),he(0x1,N['IUIPartsService']),he(0x2,h[_0x29b95d(0x563)](h[_0x29b95d(0x380)])),he(0x3,h[_0x29b95d(0x563)](exports[_0x29b95d(0x4cd)]))],exports[_0x29b95d(0x529)]);function Si(_0x7529d9){const {status$:_0x3365c8}=_0x7529d9;return function(){return L['createElement'](Ut,{'status$':_0x3365c8});};}const Ye=h[_0x29b95d(0x250)]('uni.network.url-service');var vi=Object[_0x29b95d(0x2f8)],gi=Object[_0x29b95d(0x516)],fi=(_0x24112d,_0x48f14c,_0x2a6bfa,_0x5e4cd3)=>{const _0x50edf5=_0x29b95d;for(var _0x4c1843=_0x5e4cd3>0x1?void 0x0:_0x5e4cd3?gi(_0x48f14c,_0x2a6bfa):_0x48f14c,_0x5e3270=_0x24112d[_0x50edf5(0x49e)]-0x1,_0x389c97;_0x5e3270>=0x0;_0x5e3270--)(_0x389c97=_0x24112d[_0x5e3270])&&(_0x4c1843=(_0x5e4cd3?_0x389c97(_0x48f14c,_0x2a6bfa,_0x4c1843):_0x389c97(_0x4c1843))||_0x4c1843);return _0x5e4cd3&&_0x4c1843&&vi(_0x48f14c,_0x2a6bfa,_0x4c1843),_0x4c1843;},z=(_0x3b4adc,_0xee2a35)=>(_0x58b843,_0x172611)=>_0xee2a35(_0x58b843,_0x172611,_0x3b4adc);exports[_0x29b95d(0x1ca)]=class extends a[_0x29b95d(0x275)]{constructor(_0x5dfe07,_0x5e5c23,_0x220a7d,_0x5640d0,_0x5331d4,_0x71a71e){const _0x32e834=_0x29b95d;super(),this[_0x32e834(0x49c)]=_0x5dfe07,this[_0x32e834(0x3cb)]=_0x5e5c23,this[_0x32e834(0x4c9)]=_0x220a7d,this[_0x32e834(0x3bf)]=_0x5640d0,this['_snapshotService']=_0x5331d4,_0x71a71e?_0x71a71e==null||_0x71a71e['whenReady']()['then'](()=>this[_0x32e834(0x2ec)]()):(this[_0x32e834(0x3cb)]['debug'](_0x32e834(0x28b),'No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.'),this[_0x32e834(0x2ec)]());}async[_0x29b95d(0x2ec)](){const _0x43d6b5=_0x29b95d,_0x4ed25b=this[_0x43d6b5(0x49c)][_0x43d6b5(0x2ab)](_0x43d6b5(0x2e4)),_0x5ce5b4=this[_0x43d6b5(0x49c)][_0x43d6b5(0x2ab)](_0x43d6b5(0x46c));if(!_0x4ed25b||!_0x5ce5b4){this['_logService']['debug'](_0x43d6b5(0x28b),_0x43d6b5(0x47a));return;}switch(Number(_0x5ce5b4)){case j[_0x43d6b5(0x272)]:{const _0x52bee4=await this[_0x43d6b5(0x50c)](_0x4ed25b);this['_setupSubUnitSync'](_0x52bee4);break;}case j[_0x43d6b5(0x2a2)]:{await this[_0x43d6b5(0x32c)](_0x4ed25b);break;}default:{this['_logService']['error'](_0x43d6b5(0x28b),_0x43d6b5(0x48a));break;}}}async[_0x29b95d(0x3b2)](_0x26003c){const _0x5813c0=_0x29b95d;await this['_updateSubUnitFromURLParams'](_0x26003c),_0x26003c[_0x5813c0(0x448)][_0x5813c0(0x1e4)](g['takeUntil'](this[_0x5813c0(0x2e1)]))['subscribe'](_0x5f0bcc=>{const _0x53bd7e=_0x5813c0;_0x5f0bcc&&this[_0x53bd7e(0x56e)](_0x5f0bcc);}),this[_0x5813c0(0x49c)][_0x5813c0(0x2f5)][_0x5813c0(0x1e4)](g['takeUntil'](this[_0x5813c0(0x2e1)]))[_0x5813c0(0x1e8)](()=>this['_updateSubUnitFromURLParams'](_0x26003c));}[_0x29b95d(0x56e)](_0x347391,_0x53dbc4=!0x1){const _0x15db79=_0x29b95d,_0xddd787=this['_urlService'][_0x15db79(0x2ab)](_0x15db79(0x3f7));_0x347391[_0x15db79(0x3a5)]()!==_0xddd787&&this[_0x15db79(0x49c)][_0x15db79(0x3ca)](_0x15db79(0x3f7),_0x347391['getSheetId'](),_0x53dbc4);}async[_0x29b95d(0x366)](_0x5970a2){const _0x4cd995=_0x29b95d;var _0x51b454;const _0x3e284a=this[_0x4cd995(0x49c)]['getParam'](_0x4cd995(0x3f7));if(!_0x3e284a||!_0x5970a2[_0x4cd995(0x3f5)](_0x3e284a)){const _0xa54230=_0x5970a2[_0x4cd995(0x49a)]()[0x0],_0x2c4ef8=_0x5970a2[_0x4cd995(0x3f5)](_0xa54230);if(!_0x2c4ef8)return;this['_updateURLWithCurrentState'](_0x2c4ef8,!0x0),await this[_0x4cd995(0x4c9)]['executeCommand'](E[_0x4cd995(0x347)]['id'],{'unitId':_0x5970a2[_0x4cd995(0x25b)](),'subUnitId':_0xa54230});return;}((_0x51b454=_0x5970a2[_0x4cd995(0x3d5)]())==null?void 0x0:_0x51b454['getSheetId']())!==_0x3e284a&&await this[_0x4cd995(0x4c9)][_0x4cd995(0x369)](E['SetWorksheetActivateCommand']['id'],{'unitId':_0x5970a2['getUnitId'](),'subUnitId':_0x3e284a});}async[_0x29b95d(0x50c)](_0x51f289){const _0x1b4d2c=_0x29b95d;let _0x3b5988=0x0;const _0x5593d2=await this['_localCacheService'][_0x1b4d2c(0x317)](_0x51f289);return _0x5593d2&&(_0x5593d2[_0x1b4d2c(0x458)]||_0x5593d2[_0x1b4d2c(0x34c)]['length']!==0x0)&&(_0x3b5988=_0x5593d2['rev']),_0x3b5988===0x0&&this[_0x1b4d2c(0x3cb)][_0x1b4d2c(0x270)](_0x1b4d2c(0x28b),_0x1b4d2c(0x1c6)),this[_0x1b4d2c(0x4ea)][_0x1b4d2c(0x1fa)](_0x51f289,_0x3b5988);}async[_0x29b95d(0x32c)](_0x507896){const _0xabb057=_0x29b95d;let _0x14d74c=0x0;const _0x557bfe=await this[_0xabb057(0x3bf)][_0xabb057(0x317)](_0x507896);return _0x557bfe&&(_0x557bfe['awaitingChangeset']||_0x557bfe['mutations'][_0xabb057(0x49e)]!==0x0)&&(_0x14d74c=_0x557bfe[_0xabb057(0x3c5)]),_0x14d74c===0x0&&this[_0xabb057(0x3cb)][_0xabb057(0x270)](_0xabb057(0x28b),_0xabb057(0x1c6)),this[_0xabb057(0x4ea)]['loadDoc'](_0x507896,_0x14d74c);}},exports[_0x29b95d(0x1ca)]=fi([a[_0x29b95d(0x387)](a[_0x29b95d(0x51c)][_0x29b95d(0x376)],exports[_0x29b95d(0x1ca)]),z(0x0,Ye),z(0x1,a['ILogService']),z(0x2,a[_0x29b95d(0x471)]),z(0x3,h[_0x29b95d(0x563)](exports['LocalCacheService'])),z(0x4,h[_0x29b95d(0x563)](u[_0x29b95d(0x233)])),z(0x5,h['Optional'](kt[_0x29b95d(0x365)]))],exports[_0x29b95d(0x1ca)]);var mi=Object[_0x29b95d(0x2f8)],Ii=Object[_0x29b95d(0x516)],pi=(_0x58ad05,_0x5201d0,_0x1e0e88,_0x4d0840)=>{const _0x36ecf3=_0x29b95d;for(var _0xe72c56=_0x4d0840>0x1?void 0x0:_0x4d0840?Ii(_0x5201d0,_0x1e0e88):_0x5201d0,_0x13ad7b=_0x58ad05[_0x36ecf3(0x49e)]-0x1,_0x7d0a93;_0x13ad7b>=0x0;_0x13ad7b--)(_0x7d0a93=_0x58ad05[_0x13ad7b])&&(_0xe72c56=(_0x4d0840?_0x7d0a93(_0x5201d0,_0x1e0e88,_0xe72c56):_0x7d0a93(_0xe72c56))||_0xe72c56);return _0x4d0840&&_0xe72c56&&mi(_0x5201d0,_0x1e0e88,_0xe72c56),_0xe72c56;},it=(_0x16bd1b,_0x429045)=>(_0x446e44,_0x54b223)=>_0x429045(_0x446e44,_0x54b223,_0x16bd1b);const Ei='DEFAULT_FILE_NAME',Ci=_0x29b95d(0x3ac);let de=class extends a['Disposable']{constructor(_0x2411c4,_0x5aa308){const _0x2d1623=_0x29b95d;super(),this[_0x2d1623(0x50a)]=_0x2411c4,this[_0x2d1623(0x552)]=_0x5aa308,this[_0x2d1623(0x2ec)]();}[_0x29b95d(0x2ec)](){const _0x176b35=_0x29b95d;this['disposeWithMe'](a[_0x176b35(0x273)](this[_0x176b35(0x50a)][_0x176b35(0x40e)]['subscribe'](()=>{const _0x590b80=_0x176b35;var _0x47d2e8;const _0x5521ca=this[_0x590b80(0x50a)][_0x590b80(0x47e)]();let _0x5a033b=(_0x47d2e8=this[_0x590b80(0x552)][_0x590b80(0x2bf)](Ei))!=null?_0x47d2e8:Ci;_0x5521ca instanceof a['Workbook']&&(_0x5a033b=_0x5521ca[_0x590b80(0x4ce)]),document['title']=_0x5a033b;})));}};de=pi([a[_0x29b95d(0x387)](a[_0x29b95d(0x51c)]['Ready'],de),it(0x0,a['IUniverInstanceService']),it(0x1,a['IConfigService'])],de);var bi=Object[_0x29b95d(0x2f8)],Ti=Object[_0x29b95d(0x516)],Ri=(_0x34bd01,_0x296dfe,_0x23c224,_0x1a29ef)=>{const _0x485f12=_0x29b95d;for(var _0x39c193=_0x1a29ef>0x1?void 0x0:_0x1a29ef?Ti(_0x296dfe,_0x23c224):_0x296dfe,_0x3b6635=_0x34bd01[_0x485f12(0x49e)]-0x1,_0x1cc3d4;_0x3b6635>=0x0;_0x3b6635--)(_0x1cc3d4=_0x34bd01[_0x3b6635])&&(_0x39c193=(_0x1a29ef?_0x1cc3d4(_0x296dfe,_0x23c224,_0x39c193):_0x1cc3d4(_0x39c193))||_0x39c193);return _0x1a29ef&&_0x39c193&&bi(_0x296dfe,_0x23c224,_0x39c193),_0x39c193;},nt=(_0x1c0dda,_0x3f476a)=>(_0x5594f0,_0x44ef1f)=>_0x3f476a(_0x5594f0,_0x44ef1f,_0x1c0dda);let Ae=class{constructor(_0x2762a7,_0x3125a1){const _0xdb3da8=_0x29b95d;this['_configService']=_0x2762a7,this[_0xdb3da8(0x55b)]=_0x3125a1;}async[_0x29b95d(0x35e)](_0xba8081,_0x2f18ef){const _0x3308ae=_0x29b95d;var _0x1fe9db;const {unitID:_0x2bc403,type:_0x5f5cd8,revision:_0x330d2f=0x0}=_0x2f18ef,_0x45e5dc=this[_0x3308ae(0x283)]()+'/'+_0x5f5cd8+_0x3308ae(0x2b9)+_0x2bc403+_0x3308ae(0x3a0)+(_0x330d2f===0x1?0x0:_0x330d2f),_0x109b11=(await this[_0x3308ae(0x55b)]['get'](_0x45e5dc))['body'],_0x3dbaa4=(_0x1fe9db=_0x109b11[_0x3308ae(0x32a)])==null?void 0x0:_0x1fe9db['workbook'];if(_0x3dbaa4){const _0x3f0d09=_0x3dbaa4==null?void 0x0:_0x3dbaa4[_0x3308ae(0x497)],_0x1a07ea=a[_0x3308ae(0x21c)][_0x3308ae(0x2ad)](a['b64DecodeUnicode'](_0x3f0d09));_0x3dbaa4[_0x3308ae(0x497)]=_0x1a07ea,Object[_0x3308ae(0x42f)](_0x3dbaa4[_0x3308ae(0x2fe)])[_0x3308ae(0x3b0)](([,_0x590ad5])=>{const _0x324d20=_0x3308ae,_0x1371d9=_0x590ad5['originalMeta'],_0x19c6b5=a[_0x324d20(0x21c)][_0x324d20(0x2ad)](a['b64DecodeUnicode'](_0x1371d9));_0x590ad5[_0x324d20(0x497)]=_0x19c6b5;});}return _0x109b11;}async[_0x29b95d(0x4f6)](_0x2e1a08,_0x15d424){const _0x302989=_0x29b95d,{unitID:_0x476b51,type:_0x140285,blockID:_0x4b8fe0}=_0x15d424,_0x3802a4=this[_0x302989(0x49f)]()+'/'+_0x140285+'/unit/'+_0x476b51+'/block/'+_0x4b8fe0;return(await this[_0x302989(0x55b)]['get'](_0x3802a4))[_0x302989(0x330)];}async['fetchMissingChangesets'](_0x560748,_0x25ba18){const _0xa11e21=_0x29b95d,{unitID:_0x371355,type:_0x306e23,from:_0x71778a,to:_0x2f1bb9}=_0x25ba18,_0x2b4ea1=this[_0xa11e21(0x49f)]()+'/'+_0x306e23+'/unit/'+_0x371355+_0xa11e21(0x205)+_0x71778a+_0xa11e21(0x342)+_0x2f1bb9;return(await this[_0xa11e21(0x55b)]['get'](_0x2b4ea1))[_0xa11e21(0x330)];}[_0x29b95d(0x283)](){const _0x5e0de1=_0x29b95d;var _0xa0e749;return(_0xa0e749=this['_configService'][_0x5e0de1(0x2bf)](ht))!=null?_0xa0e749:this[_0x5e0de1(0x49f)]();}[_0x29b95d(0x49f)](){const _0x48feea=_0x29b95d;var _0x179bd7;return(_0x179bd7=this[_0x48feea(0x552)][_0x48feea(0x2bf)](lt))!=null?_0x179bd7:Bt;}async[_0x29b95d(0x300)](_0x3528cd,_0x5ec90b){const _0x44cd1a=_0x29b95d,_0x4555ae=_0x44cd1a(0x229)+_0x5ec90b[_0x44cd1a(0x46c)]+_0x44cd1a(0x2b9)+_0x5ec90b[_0x44cd1a(0x1c8)]+_0x44cd1a(0x213);return(await this['_httpService'][_0x44cd1a(0x2d3)](_0x4555ae,{'params':{'resourceId':JSON['stringify'](_0x5ec90b[_0x44cd1a(0x53f)])}}))[_0x44cd1a(0x330)];}['saveSnapshot'](){const _0x1b4d99=_0x29b95d;throw new Error(_0x1b4d99(0x4df));}[_0x29b95d(0x56f)](){const _0x256201=_0x29b95d;throw new Error(_0x256201(0x4df));}['saveChangeset'](){const _0x44d77f=_0x29b95d;throw new Error(_0x44d77f(0x4df));}};Ae=Ri([nt(0x0,a['IConfigService']),nt(0x1,h[_0x29b95d(0x563)](P[_0x29b95d(0x42e)]))],Ae);var Oi=Object[_0x29b95d(0x2f8)],Di=Object[_0x29b95d(0x516)],Ui=(_0x576326,_0x673272,_0x1f2a3c,_0x56b4e2)=>{const _0x5dcf00=_0x29b95d;for(var _0x35dc3b=_0x56b4e2>0x1?void 0x0:_0x56b4e2?Di(_0x673272,_0x1f2a3c):_0x673272,_0x83e5f0=_0x576326[_0x5dcf00(0x49e)]-0x1,_0xf30c44;_0x83e5f0>=0x0;_0x83e5f0--)(_0xf30c44=_0x576326[_0x83e5f0])&&(_0x35dc3b=(_0x56b4e2?_0xf30c44(_0x673272,_0x1f2a3c,_0x35dc3b):_0xf30c44(_0x35dc3b))||_0x35dc3b);return _0x56b4e2&&_0x35dc3b&&Oi(_0x673272,_0x1f2a3c,_0x35dc3b),_0x35dc3b;},ne=(_0x1a9602,_0x888867)=>(_0xe692fa,_0x44b186)=>_0x888867(_0xe692fa,_0x44b186,_0x1a9602);let je=class extends a['LocalUndoRedoService']{constructor(_0x36c576,_0x4c6a4f,_0x10c75f,_0x331002,_0x3d347a){const _0x2b97c8=_0x29b95d;super(_0x36c576,_0x4c6a4f,_0x10c75f),this[_0x2b97c8(0x4ed)]=_0x331002,this[_0x2b97c8(0x3cb)]=_0x3d347a;}['transformUndoRedo'](_0x292933,_0x337a45){const _0x17edfe=_0x29b95d,_0x171b47=this[_0x17edfe(0x3a9)](_0x292933);if(_0x171b47)try{const _0x355a38=this[_0x17edfe(0x3fa)](_0x171b47,_0x337a45);this[_0x17edfe(0x3f8)](_0x292933,_0x355a38);}catch(_0x5e5412){this['_logService'][_0x17edfe(0x383)]('[CollaborationUndoRedoService]',_0x5e5412),this[_0x17edfe(0x263)](_0x292933);}const _0x364ba0=this[_0x17edfe(0x242)](_0x292933);if(_0x364ba0)try{const _0x37d3d5=this[_0x17edfe(0x3fa)](_0x364ba0,_0x337a45);this[_0x17edfe(0x356)](_0x292933,_0x37d3d5);}catch(_0x288afa){this[_0x17edfe(0x3cb)][_0x17edfe(0x383)](_0x288afa),this[_0x17edfe(0x3f1)](_0x292933);}}[_0x29b95d(0x263)](_0x27c870){const _0x351e38=_0x29b95d,_0x51ac86=this[_0x351e38(0x3a9)](_0x27c870);_0x51ac86&&(_0x51ac86[_0x351e38(0x49e)]=0x0,this[_0x351e38(0x302)]());}[_0x29b95d(0x3f1)](_0x616df9){const _0x20f06f=_0x29b95d,_0xe4a376=this['_getRedoStack'](_0x616df9);_0xe4a376&&(_0xe4a376[_0x20f06f(0x49e)]=0x0,this[_0x20f06f(0x302)]());}[_0x29b95d(0x3f8)](_0x107561,_0x475086){const _0x482a3f=_0x29b95d;this['_undoStacks'][_0x482a3f(0x470)](_0x107561,_0x475086),this[_0x482a3f(0x302)]();}[_0x29b95d(0x356)](_0x3f956f,_0x26b648){const _0x5003d7=_0x29b95d;this['_redoStacks']['set'](_0x3f956f,_0x26b648),this[_0x5003d7(0x302)]();}[_0x29b95d(0x3fa)](_0x1bee8c,_0x39253e){const _0x409545=_0x29b95d,_0x5eba5d=[];let _0x323785=_0x39253e,_0xa4e7c1=_0x39253e;for(let _0x3e6eb=_0x1bee8c[_0x409545(0x49e)]-0x1;_0x3e6eb>=0x0;_0x3e6eb--){const {unitID:_0x32cc73,undoMutations:_0x18694b,redoMutations:_0x28107b}=_0x1bee8c[_0x3e6eb],_0x15896b=this[_0x409545(0x4ed)][_0x409545(0x378)](_0x323785,_0x18694b),_0x4989aa=this['_transformService'][_0x409545(0x378)](_0xa4e7c1,_0x28107b);if(u[_0x409545(0x352)](_0x15896b)||u[_0x409545(0x352)](_0x4989aa)){this[_0x409545(0x3cb)][_0x409545(0x383)](_0x409545(0x4ca),_0x409545(0x288),_0x15896b,_0x4989aa);break;}_0x323785=_0x15896b[_0x409545(0x1f4)],_0xa4e7c1=_0x4989aa[_0x409545(0x1f4)],_0x5eba5d[_0x409545(0x346)]({'unitID':_0x32cc73,'undoMutations':_0x15896b[_0x409545(0x297)],'redoMutations':_0x4989aa[_0x409545(0x297)]});}return _0x5eba5d['reverse']();}};je=Ui([ne(0x0,a['IUniverInstanceService']),ne(0x1,a[_0x29b95d(0x471)]),ne(0x2,a[_0x29b95d(0x4bc)]),ne(0x3,u[_0x29b95d(0x551)]),ne(0x4,a['ILogService'])],je);class wt extends a[_0x29b95d(0x275)]{constructor(){const _0x63402d=_0x29b95d;super(),d(this,'urlChange$'),this[_0x63402d(0x2f5)]=g['fromEvent'](window,_0x63402d(0x20a))[_0x63402d(0x1e4)](g['takeUntil'](this[_0x63402d(0x2e1)]),g[_0x63402d(0x433)](0x1),g[_0x63402d(0x2cc)](void 0x0));}[_0x29b95d(0x3ca)](_0x838382,_0x4dddf3,_0x2dd7f=!0x1){const _0x593ad1=_0x29b95d,_0x506e11=new URL(window['location'][_0x593ad1(0x332)]);_0x506e11['searchParams']['set'](_0x838382,_0x4dddf3),_0x2dd7f?window[_0x593ad1(0x1fb)]['replaceState']('','',_0x506e11['toString']()):window[_0x593ad1(0x1fb)][_0x593ad1(0x2e5)]('','',_0x506e11['toString']());}[_0x29b95d(0x222)](_0x4fccd5,_0x9f4fbf=!0x1){const _0x33d772=_0x29b95d,_0x188626=new URL(window[_0x33d772(0x49b)]['href']);_0x188626[_0x33d772(0x38f)]['delete'](_0x4fccd5),_0x9f4fbf?window[_0x33d772(0x1fb)]['replaceState']('','',_0x188626[_0x33d772(0x544)]()):window['history']['pushState']('','',_0x188626[_0x33d772(0x544)]());}[_0x29b95d(0x2ab)](_0xddb44e){const _0x3bc818=_0x29b95d;var _0x570668;return(_0x570668=new URL(window[_0x3bc818(0x49b)]['href'])['searchParams'][_0x3bc818(0x2d3)](_0xddb44e))!=null?_0x570668:void 0x0;}}const Ue=_0x29b95d(0x3ce),wi=_0x29b95d(0x55a),_e=0x6,Li=1.5,we=0x4,Pi=1.5,Mi=_0x29b95d(0x345);class yi{constructor(_0x3193f2,_0x258595,_0x10ceab,_0x57744d){const _0x3536db=_0x29b95d;d(this,_0x3536db(0x311),[]),d(this,_0x3536db(0x2b8),null),d(this,_0x3536db(0x304),null),d(this,_0x3536db(0x269),null),d(this,_0x3536db(0x21e),null),d(this,'_eventUnsubscribe',null),(this[_0x3536db(0x30d)]=_0x3193f2,this['_scene']=_0x258595,this[_0x3536db(0x508)]=_0x10ceab,this[_0x3536db(0x31b)]=_0x57744d,this['_render']());}set[_0x29b95d(0x444)](_0x12ec3a){const _0x15dfdb=_0x29b95d;_0x12ec3a?(this[_0x15dfdb(0x269)]&&this['_anchorDot'][_0x15dfdb(0x3ef)](),this[_0x15dfdb(0x304)]&&this['_textBubble'][_0x15dfdb(0x4a2)]()):(this['_anchorDot']&&this[_0x15dfdb(0x269)][_0x15dfdb(0x4a2)](),this[_0x15dfdb(0x304)]&&this[_0x15dfdb(0x304)]['hide']());}[_0x29b95d(0x545)](){const _0x437baf=_0x29b95d;for(const _0x1cf2cd of this[_0x437baf(0x311)])_0x1cf2cd[_0x437baf(0x545)]();this[_0x437baf(0x304)]&&this[_0x437baf(0x304)][_0x437baf(0x545)](),this['_anchorDot']&&this[_0x437baf(0x269)]['dispose'](),this[_0x437baf(0x2b8)]&&this[_0x437baf(0x2b8)][_0x437baf(0x545)](),this['_eventUnsubscribe']&&this[_0x437baf(0x359)]();}[_0x29b95d(0x292)](){const _0x52c961=_0x29b95d,{_docSkeleton:_0x3bc32e,_document:_0x5e6266}=this,{color:_0x40852b,name:_0x5a9dc6,ranges:_0xc39442}=this['_cursor'],_0x3aa77d=_0x5e6266[_0x52c961(0x418)](),{docsLeft:_0x599a87,docsTop:_0x55549c}=_0x3aa77d,_0x265d8a=new R[(_0x52c961(0x4aa))](_0x3aa77d,_0x3bc32e);for(const {startOffset:_0x1b6bcb,endOffset:_0x213167,collapsed:_0x497ecc,isActive:_0x457096}of _0xc39442){const _0x391b5c=_0x3bc32e[_0x52c961(0x454)](_0x1b6bcb),_0x4d9ebd=_0x3bc32e[_0x52c961(0x454)](_0x213167);if(_0x457096){const {contentBoxPointGroup:_0x58571d}=_0x265d8a['getRangePointData'](_0x4d9ebd,_0x4d9ebd);if(_0x58571d['length']===0x0)continue;this['_drawAnchor'](_0x40852b,_0x58571d,_0x599a87,_0x55549c,_0x5a9dc6),this['_eventUnsubscribe']=this[_0x52c961(0x2a5)]();}if(!_0x497ecc){const {contentBoxPointGroup:_0x560be2}=_0x265d8a['getRangePointData'](_0x391b5c,_0x4d9ebd);if(_0x560be2['length']===0x0)continue;this[_0x52c961(0x564)](_0x40852b,_0x560be2,_0x599a87,_0x55549c);}}}[_0x29b95d(0x2d6)](_0x566611,_0x3d736a,_0x1df1d0,_0x442b2f,_0x462312){const _0x2bff74=_0x29b95d,_0x120071=this['_getAnchorBounding'](_0x3d736a),{left:_0x3fa46e,top:_0x40a633,height:_0x521cfa}=_0x120071,_0x3bd32e=this[_0x2bff74(0x31a)](),_0x1ffda0=Pi/_0x3bd32e,_0x467a32=new R[(_0x2bff74(0x385))](Ue+a[_0x2bff74(0x4b1)][_0x2bff74(0x522)](_e),{'left':_0x3fa46e+_0x1df1d0-_0x1ffda0,'top':_0x40a633+_0x442b2f,'height':_0x521cfa,'width':Li,'fill':_0x566611||R[_0x2bff74(0x2aa)](a[_0x2bff74(0x476)]['black'],0x0),'strokeWidth':_0x1ffda0,'stroke':Mi,'evented':!0x0});this[_0x2bff74(0x2b8)]=_0x467a32,this[_0x2bff74(0x507)][_0x2bff74(0x2b5)](_0x467a32,R['TEXT_RANGE_LAYER_INDEX']);const _0x153da1=new R[(_0x2bff74(0x385))](Ue+a[_0x2bff74(0x4b1)][_0x2bff74(0x522)](_e),{'left':_0x3fa46e+_0x1df1d0-_0x1ffda0,'top':_0x40a633+_0x442b2f-we/0x2,'height':we,'width':we,'fill':_0x566611||R[_0x2bff74(0x2aa)](a['COLORS']['black'],0x0),'strokeWidth':0x0,'stroke':_0x566611||R['getColor'](a[_0x2bff74(0x476)][_0x2bff74(0x40d)],0x0),'evented':!0x1});this[_0x2bff74(0x269)]=_0x153da1,this[_0x2bff74(0x507)][_0x2bff74(0x2b5)](_0x153da1,R[_0x2bff74(0x260)]);const _0x470e47=new Ce(Ue+a[_0x2bff74(0x4b1)][_0x2bff74(0x522)](_e),{'left':_0x3fa46e+_0x1df1d0-_0x1ffda0,'top':_0x40a633+_0x442b2f-ce,'text':_0x462312,'color':_0x566611});this[_0x2bff74(0x304)]=_0x470e47,this[_0x2bff74(0x507)]['addObject'](_0x470e47,R[_0x2bff74(0x260)]),this[_0x2bff74(0x444)]=!0x1;}[_0x29b95d(0x2a5)](){const _0x24f574=_0x29b95d,_0x3dda11=this['_anchor'][_0x24f574(0x20b)][_0x24f574(0x34f)](()=>{const _0x103f1c=_0x24f574;this[_0x103f1c(0x444)]=!0x0;}),_0x49f54f=this[_0x24f574(0x2b8)]['onPointerLeave$'][_0x24f574(0x34f)](()=>{const _0x3a5c6c=_0x24f574;this['_hideTimer']&&clearTimeout(this['_hideTimer']),this[_0x3a5c6c(0x21e)]=setTimeout(()=>{const _0x499556=_0x3a5c6c;this[_0x499556(0x444)]=!0x1;},0x7d0);});return()=>{const _0x2e4398=_0x24f574;_0x3dda11[_0x2e4398(0x231)](),_0x49f54f['unsubscribe']();};}[_0x29b95d(0x564)](_0x1fea64,_0xc988d0,_0xd83b74,_0x258373){const _0x2f0f6b=_0x29b95d,_0x1dd59e=new a['ColorKit'](_0x1fea64)['setAlpha'](0.2)[_0x2f0f6b(0x30c)](),_0x33315a=new R['RegularPolygon'](wi+a[_0x2f0f6b(0x4b1)][_0x2f0f6b(0x522)](_e),{'pointsGroup':_0xc988d0,'fill':_0x1dd59e||R[_0x2f0f6b(0x2aa)](a[_0x2f0f6b(0x476)][_0x2f0f6b(0x40d)],0.2),'left':_0xd83b74,'top':_0x258373,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x2f0f6b(0x311)][_0x2f0f6b(0x346)](_0x33315a),this[_0x2f0f6b(0x507)][_0x2f0f6b(0x2b5)](_0x33315a,R[_0x2f0f6b(0x260)]);}[_0x29b95d(0x4f5)](_0x394096){const _0x557731=_0x394096[0x0],_0x324771=_0x557731[0x0],_0x5209fb=_0x557731[0x2],{x:_0x48a450,y:_0x21439f}=_0x324771,{x:_0x168819,y:_0x361746}=_0x5209fb;return{'left':_0x48a450,'top':_0x21439f,'width':_0x168819-_0x48a450,'height':_0x361746-_0x21439f};}[_0x29b95d(0x31a)](){const _0x53f216=_0x29b95d,{scaleX:_0x595669,scaleY:_0x55593b}=this[_0x53f216(0x507)][_0x53f216(0x403)]();return Math['max'](_0x595669,_0x55593b);}}var Ni=Object['defineProperty'],Ai=Object[_0x29b95d(0x516)],ji=(_0x5266e9,_0x3a0308,_0x47b00b,_0x2b9e90)=>{const _0x1bcca3=_0x29b95d;for(var _0x42bc53=_0x2b9e90>0x1?void 0x0:_0x2b9e90?Ai(_0x3a0308,_0x47b00b):_0x3a0308,_0x1469bc=_0x5266e9[_0x1bcca3(0x49e)]-0x1,_0x522535;_0x1469bc>=0x0;_0x1469bc--)(_0x522535=_0x5266e9[_0x1469bc])&&(_0x42bc53=(_0x2b9e90?_0x522535(_0x3a0308,_0x47b00b,_0x42bc53):_0x522535(_0x42bc53))||_0x42bc53);return _0x2b9e90&&_0x42bc53&&Ni(_0x3a0308,_0x47b00b,_0x42bc53),_0x42bc53;},re=(_0x447293,_0x35191)=>(_0x543be9,_0x4e2d74)=>_0x35191(_0x543be9,_0x4e2d74,_0x447293);let Se=class extends a[_0x29b95d(0x275)]{constructor(_0x280dc6,_0x2a380d,_0x32ea24,_0xad6c48,_0xe9b945){const _0xc36cc4=_0x29b95d;super(),d(this,_0xc36cc4(0x318),[]),(this[_0xc36cc4(0x3ff)]=_0x280dc6,this[_0xc36cc4(0x50a)]=_0x2a380d,this[_0xc36cc4(0x253)]=_0x32ea24,this[_0xc36cc4(0x41f)]=_0xad6c48,this[_0xc36cc4(0x207)]=_0xe9b945,this[_0xc36cc4(0x2ec)]());}[_0x29b95d(0x2ec)](){const _0x5dca16=_0x29b95d;this['_docSkeletonManagerService'][_0x5dca16(0x3e9)][_0x5dca16(0x1e4)](T['takeUntil'](this[_0x5dca16(0x2e1)]),T[_0x5dca16(0x1df)](_0x2ed7ea=>{const _0x2c39d1=_0x5dca16;if(_0x2ed7ea){const _0x2e8134=_0x2ed7ea['getViewModel']()[_0x2c39d1(0x443)]()['getUnitId']();return g['combineLatest'](this[_0x2c39d1(0x3ff)][_0x2c39d1(0x51d)](_0x2e8134),this[_0x2c39d1(0x207)]['currentTheme$'])[_0x2c39d1(0x1e4)](T[_0x2c39d1(0x2a0)](([_0x36b03d,_0x7ba128])=>({'skeleton':_0x2ed7ea,'cursors':[..._0x36b03d[_0x2c39d1(0x40f)]()][_0x2c39d1(0x20d)](_0x3fd4cb=>({..._0x3fd4cb,'color':_0x7ba128[_0x3fd4cb['color']]}))})));}return g['of']({'skeleton':null,'cursors':[]});}))[_0x5dca16(0x1e8)](({skeleton:_0x180a78,cursors:_0xd79c9e})=>{this['_removeCollabCursors'](),_0x180a78&&this['_updateCollabCursors'](_0x180a78,_0xd79c9e);});}[_0x29b95d(0x323)](_0x42da22,_0xc7ca){const _0x43bce1=_0x29b95d,_0x17245b=this['_getDocObject']();if(_0x17245b==null)return;const {scene:_0x4f0fb8,document:_0x5ebb86}=_0x17245b,_0x2cf915=_0xc7ca[_0x43bce1(0x2a0)](_0x1640f6=>new yi(_0x1640f6,_0x4f0fb8,_0x42da22,_0x5ebb86));this[_0x43bce1(0x318)]=_0x2cf915;}[_0x29b95d(0x350)](){const _0x628400=_0x29b95d;this[_0x628400(0x318)][_0x628400(0x3b0)](_0x51b2c8=>_0x51b2c8[_0x628400(0x545)]()),this[_0x628400(0x318)]=[];}[_0x29b95d(0x4b4)](){const _0x2f81a1=_0x29b95d;return y[_0x2f81a1(0x2fa)](this[_0x2f81a1(0x50a)],this[_0x2f81a1(0x253)]);}};Se=ji([a[_0x29b95d(0x387)](a['LifecycleStages'][_0x29b95d(0x4ba)],Se),re(0x0,h[_0x29b95d(0x563)](J)),re(0x1,a[_0x29b95d(0x2e6)]),re(0x2,R['IRenderManagerService']),re(0x3,h[_0x29b95d(0x563)](y[_0x29b95d(0x371)])),re(0x4,h['Inject'](a[_0x29b95d(0x336)]))],Se);var $i=Object[_0x29b95d(0x2f8)],Hi=Object[_0x29b95d(0x516)],xi=(_0x5c5195,_0x15058b,_0x24179e,_0x2f3ba4)=>{const _0x5d3003=_0x29b95d;for(var _0x2e383e=_0x2f3ba4>0x1?void 0x0:_0x2f3ba4?Hi(_0x15058b,_0x24179e):_0x15058b,_0x159a79=_0x5c5195[_0x5d3003(0x49e)]-0x1,_0x279df9;_0x159a79>=0x0;_0x159a79--)(_0x279df9=_0x5c5195[_0x159a79])&&(_0x2e383e=(_0x2f3ba4?_0x279df9(_0x15058b,_0x24179e,_0x2e383e):_0x279df9(_0x2e383e))||_0x2e383e);return _0x2f3ba4&&_0x2e383e&&$i(_0x15058b,_0x24179e,_0x2e383e),_0x2e383e;},Le=(_0x5e8e53,_0x5238ef)=>(_0x394ce1,_0x51f6a8)=>_0x5238ef(_0x394ce1,_0x51f6a8,_0x5e8e53);let Ie=class{constructor(_0xe237bc,_0x284790,_0x4ebcde){const _0x4078a2=_0x29b95d;this['_configService']=_0xe237bc,this[_0x4078a2(0x55b)]=_0x284790,this[_0x4078a2(0x414)]=_0x4ebcde,this[_0x4078a2(0x32b)]();}['init'](){const _0x388000=_0x29b95d;this[_0x388000(0x55b)][_0x388000(0x28f)]({'priority':0x1,'interceptor':(_0x4d6f4d,_0x4d92ca)=>_0x4d92ca(_0x4d6f4d)['pipe'](g['concatMap'](async _0x462e3b=>{const _0x7bf68b=_0x388000,_0x6625b5=_0x462e3b;if(_0x6625b5[_0x7bf68b(0x341)]===0x191&&window['confirm'](this['localeService']['t'](_0x7bf68b(0x53e)))){const _0x57a6e3=window['encodeURIComponent'](window[_0x7bf68b(0x49b)][_0x7bf68b(0x332)]);window[_0x7bf68b(0x49b)][_0x7bf68b(0x332)]=this[_0x7bf68b(0x281)]()+_0x7bf68b(0x3b9)+_0x57a6e3;}return _0x6625b5;}))});}[_0x29b95d(0x281)](){const _0x5533db=_0x29b95d;var _0x566eae;return(_0x566eae=this[_0x5533db(0x552)][_0x5533db(0x2bf)](ft))!=null?_0x566eae:Jt;}};Ie=xi([Le(0x0,a[_0x29b95d(0x271)]),Le(0x1,h['Inject'](P[_0x29b95d(0x42e)])),Le(0x2,h['Inject'](a[_0x29b95d(0x3c8)]))],Ie);var ki=Object['defineProperty'],Bi=Object['getOwnPropertyDescriptor'],Fi=(_0x35d86b,_0x4f0e3d,_0x544bae,_0x3e5c9b)=>{const _0x4b4206=_0x29b95d;for(var _0x465303=_0x3e5c9b>0x1?void 0x0:_0x3e5c9b?Bi(_0x4f0e3d,_0x544bae):_0x4f0e3d,_0x1d927b=_0x35d86b[_0x4b4206(0x49e)]-0x1,_0xc61c63;_0x1d927b>=0x0;_0x1d927b--)(_0xc61c63=_0x35d86b[_0x1d927b])&&(_0x465303=(_0x3e5c9b?_0xc61c63(_0x4f0e3d,_0x544bae,_0x465303):_0xc61c63(_0x465303))||_0x465303);return _0x3e5c9b&&_0x465303&&ki(_0x4f0e3d,_0x544bae,_0x465303),_0x465303;},rt=(_0x1e3cd4,_0x7dd1a0)=>(_0xa10233,_0x33eb67)=>_0x7dd1a0(_0xa10233,_0x33eb67,_0x1e3cd4);const Lt='AUTHZ_URL_KEY',Vi=_0x29b95d(0x1e0);exports[_0x29b95d(0x24f)]=class{constructor(_0x33df7e,_0x775a34){const _0x4b5de2=_0x29b95d;this[_0x4b5de2(0x26d)]=_0x33df7e,this['_configService']=_0x775a34;}[_0x29b95d(0x462)](){const _0x85812f=_0x29b95d;var _0x33addf;return(_0x33addf=this['_configService'][_0x85812f(0x2bf)](Lt))!=null?_0x33addf:Vi;}async[_0x29b95d(0x53c)](_0x389b62){const _0x3a2ab5=_0x29b95d,_0x24ac4e=this[_0x3a2ab5(0x462)]()+'/'+_0x389b62[_0x3a2ab5(0x31f)]+'/object';return(await this[_0x3a2ab5(0x26d)][_0x3a2ab5(0x4d6)](_0x24ac4e,{'body':_0x389b62}))[_0x3a2ab5(0x330)]['objectID']||'';}async[_0x29b95d(0x3a2)](_0x3cdf8a){const _0x3e82f6=_0x29b95d,_0xcf5d53=this[_0x3e82f6(0x462)]()+_0x3e82f6(0x25a);return(await this[_0x3e82f6(0x26d)]['post'](_0xcf5d53,{'body':_0x3cdf8a}))[_0x3e82f6(0x330)][_0x3e82f6(0x401)];}async[_0x29b95d(0x41a)](_0x21aa23){const _0x126fef=_0x29b95d,_0x416909=this[_0x126fef(0x462)]()+'/'+_0x21aa23[_0x126fef(0x31f)]+_0x126fef(0x478)+_0x21aa23[_0x126fef(0x531)];await this[_0x126fef(0x26d)][_0x126fef(0x3bd)](_0x416909,{'body':_0x21aa23});}async[_0x29b95d(0x2d2)](_0x2e62aa){const _0x4de40f=_0x29b95d,_0x1e16a2=this[_0x4de40f(0x462)]()+'/'+_0x2e62aa[_0x4de40f(0x31f)]+_0x4de40f(0x478)+_0x2e62aa[_0x4de40f(0x531)]+_0x4de40f(0x34e);return(await this[_0x4de40f(0x26d)]['post'](_0x1e16a2,{'body':_0x2e62aa}))[_0x4de40f(0x330)]['actions'];}async[_0x29b95d(0x46f)](_0x50f08c){const _0x13b29a=_0x29b95d,_0x409458=this['_getAPIPrefixPath']()+_0x13b29a(0x52a);return(await this[_0x13b29a(0x26d)][_0x13b29a(0x4d6)](_0x409458,{'body':{'requests':_0x50f08c}}))['body']['objectActions'];}async[_0x29b95d(0x216)](_0x37f0c8){const _0x127807=_0x29b95d,_0x5f33c0=this[_0x127807(0x462)]()+'/'+_0x37f0c8[_0x127807(0x31f)]+_0x127807(0x40c),_0x12ac3e=await this[_0x127807(0x26d)][_0x127807(0x4d6)](_0x5f33c0,{'body':_0x37f0c8});return{'roles':_0x12ac3e['body']['roles'],'actions':_0x12ac3e['body'][_0x127807(0x324)]};}async[_0x29b95d(0x1fd)](_0x497ba1){const _0x5c0a7a=_0x29b95d,_0x4540f8=this[_0x5c0a7a(0x462)]()+_0x5c0a7a(0x423);await this[_0x5c0a7a(0x26d)][_0x5c0a7a(0x485)](_0x4540f8,{'params':{'collaboratorID':_0x497ba1[_0x5c0a7a(0x490)],'objectID':_0x497ba1[_0x5c0a7a(0x531)],'unitID':_0x497ba1[_0x5c0a7a(0x1c8)]}});}async[_0x29b95d(0x46a)](_0x5d2706){const _0x397340=_0x29b95d,_0x3cf816=this[_0x397340(0x462)]()+_0x397340(0x423);await this['_HTTPService'][_0x397340(0x3f3)](_0x3cf816,{'body':_0x5d2706});}async[_0x29b95d(0x500)](_0x2bea7c){const _0x1053b4=_0x29b95d,_0x1910df=this['_getAPIPrefixPath']()+'/collaborator';await this[_0x1053b4(0x26d)]['post'](_0x1910df,{'body':_0x2bea7c});}async[_0x29b95d(0x20e)](_0xa55df2){const _0x53eb98=_0x29b95d,_0x54fab3=this[_0x53eb98(0x462)]()+_0x53eb98(0x423);return(await this[_0x53eb98(0x26d)][_0x53eb98(0x2d3)](_0x54fab3,{'params':{'objectID':_0xa55df2[_0x53eb98(0x531)],'unitID':_0xa55df2[_0x53eb98(0x1c8)]}}))['body'][_0x53eb98(0x408)];}async[_0x29b95d(0x413)](_0x2d3519){const _0x45a96b=_0x29b95d,_0x434428=this['_getAPIPrefixPath']()+'/collaborator';await this[_0x45a96b(0x26d)][_0x45a96b(0x3bd)](_0x434428,{'body':_0x2d3519});}},exports[_0x29b95d(0x24f)]=Fi([rt(0x0,h['Inject'](P['HTTPService'])),rt(0x1,h[_0x29b95d(0x563)](a['IConfigService']))],exports['AuthzIoHttpService']);var Wi=Object[_0x29b95d(0x2f8)],Gi=Object[_0x29b95d(0x516)],Yi=(_0x42256c,_0x567d71,_0x158c00,_0x38bfd2)=>{const _0x84241c=_0x29b95d;for(var _0x57a20d=_0x38bfd2>0x1?void 0x0:_0x38bfd2?Gi(_0x567d71,_0x158c00):_0x567d71,_0x13d141=_0x42256c[_0x84241c(0x49e)]-0x1,_0x3593ad;_0x13d141>=0x0;_0x13d141--)(_0x3593ad=_0x42256c[_0x13d141])&&(_0x57a20d=(_0x38bfd2?_0x3593ad(_0x567d71,_0x158c00,_0x57a20d):_0x3593ad(_0x57a20d))||_0x57a20d);return _0x38bfd2&&_0x57a20d&&Wi(_0x567d71,_0x158c00,_0x57a20d),_0x57a20d;},ot=(_0x322170,_0x52b16a)=>(_0x59cdf8,_0x260129)=>_0x52b16a(_0x59cdf8,_0x260129,_0x322170);const Ki=[_0x29b95d(0x286),_0x29b95d(0x41b),'image/jpg',_0x29b95d(0x4cc),'image/bmp'],Xi=0x5*0x400*0x400,qi=_0x29b95d(0x407),zi=_0x29b95d(0x535),Ji=_0x29b95d(0x4b7),Zi=_0x29b95d(0x47b);let $e=class{constructor(_0x5c7ffe,_0x3d3ae1){const _0x32d512=_0x29b95d;d(this,_0x32d512(0x24b),0x0),d(this,_0x32d512(0x3b3),new g[(_0x32d512(0x1c9))]()),d(this,_0x32d512(0x36c),this[_0x32d512(0x3b3)]),d(this,_0x32d512(0x36e),new Map()),(this[_0x32d512(0x55b)]=_0x5c7ffe,this['_configService']=_0x3d3ae1);}[_0x29b95d(0x328)](_0x207e91){const _0x38c76d=_0x29b95d;this['_waitCount']=_0x207e91,this[_0x38c76d(0x3b3)][_0x38c76d(0x4e8)](_0x207e91);}[_0x29b95d(0x456)](_0x21c504,_0x567b28){const _0x45e27d=_0x29b95d;if(_0x567b28===A['ImageSourceType']['BASE64']){const _0x1e3c15=new Image();return _0x1e3c15[_0x45e27d(0x312)]=_0x21c504,_0x1e3c15;}return this[_0x45e27d(0x36e)][_0x45e27d(0x2d3)](_0x21c504);}[_0x29b95d(0x2c9)](_0x178fb1,_0x2043c6,_0x12b0e0){const _0x3ca2dc=_0x29b95d;_0x2043c6===A[_0x3ca2dc(0x2da)][_0x3ca2dc(0x3de)]||_0x12b0e0==null||this[_0x3ca2dc(0x36e)]['set'](_0x178fb1,_0x12b0e0);}async[_0x29b95d(0x561)](_0x33acb5){const _0xec684a=_0x29b95d;try{const _0x499023=this[_0xec684a(0x3d3)](this['_getSignURL'](),''+_0x33acb5),_0x363aaf=(await this[_0xec684a(0x55b)][_0xec684a(0x2d3)](_0x499023))[_0xec684a(0x330)];return _0x363aaf[_0xec684a(0x383)]&&_0x363aaf['error']['code']===mt['OK']?Promise['resolve'](_0x363aaf['url']):Promise['reject'](_0x363aaf[_0xec684a(0x383)]);}catch(_0x1b8d86){return Promise[_0xec684a(0x550)](_0x1b8d86);}}async['saveImage'](_0x77a334){const _0x135329=_0x29b95d;let _0x2634ee='';if(!Ki[_0x135329(0x2c5)](_0x77a334['type']))return this[_0x135329(0x339)](),Promise[_0x135329(0x550)](new Error(A[_0x135329(0x1d6)][_0x135329(0x477)]));if(_0x77a334[_0x135329(0x509)]>Xi)return this[_0x135329(0x339)](),Promise[_0x135329(0x550)](new Error(A[_0x135329(0x1d6)][_0x135329(0x280)]));try{const _0x4d3c5c=new FormData();_0x4d3c5c['append']('file',_0x77a334);const _0x512f1e=this[_0x135329(0x4b3)]()+_0x135329(0x3bb)+_0x77a334[_0x135329(0x509)][_0x135329(0x544)](),_0x8eced8=await(await fetch(_0x512f1e,{'method':_0x135329(0x23f),'body':_0x4d3c5c}))['json']();if(typeof _0x8eced8['FileId']!=_0x135329(0x4a9))return this['_decreaseWaiting'](),Promise[_0x135329(0x550)](new Error(A[_0x135329(0x1d6)][_0x135329(0x2f0)]));_0x2634ee=_0x8eced8['FileId'];}catch{return this[_0x135329(0x339)](),Promise[_0x135329(0x550)](new Error(A[_0x135329(0x1d6)][_0x135329(0x2f0)]));}return new Promise((_0x569917,_0x46a954)=>{const _0x13fd9e=_0x135329,_0x515757=new FileReader();_0x515757[_0x13fd9e(0x284)](_0x77a334),_0x515757[_0x13fd9e(0x298)]=_0x5b4c8b=>{const _0x49105e=_0x13fd9e;var _0x136a3a;const _0x1f5b9f=(_0x136a3a=_0x5b4c8b[_0x49105e(0x53a)])==null?void 0x0:_0x136a3a['result'];if(_0x1f5b9f==null){this[_0x49105e(0x339)](),_0x46a954(new Error(A[_0x49105e(0x1d6)]['ERROR_IMAGE']));return;}const _0x427bee=a['Tools']['generateRandomId'](0x6);_0x569917({'imageId':_0x427bee,'imageSourceType':A[_0x49105e(0x2da)][_0x49105e(0x421)],'source':_0x2634ee,'base64Cache':_0x1f5b9f,'status':A[_0x49105e(0x1d6)][_0x49105e(0x504)]}),this['_decreaseWaiting']();};});}[_0x29b95d(0x4b3)](){const _0x5424cf=_0x29b95d;var _0x319d82;return(_0x319d82=this[_0x5424cf(0x552)][_0x5424cf(0x2bf)](qi))!=null?_0x319d82:zi;}['_getSignURL'](){const _0x4b51f7=_0x29b95d;var _0x110b1f;return(_0x110b1f=this[_0x4b51f7(0x552)][_0x4b51f7(0x2bf)](Ji))!=null?_0x110b1f:Zi;}[_0x29b95d(0x3d3)](_0x244057,_0x3a928f){const _0x1054de=_0x29b95d;return _0x244057[_0x1054de(0x51b)]('{fileID}',_0x3a928f);}[_0x29b95d(0x339)](){const _0x3b6fd9=_0x29b95d;this['_waitCount']-=0x1,this[_0x3b6fd9(0x3b3)]['next'](this[_0x3b6fd9(0x24b)]);}};$e=Yi([ot(0x0,h[_0x29b95d(0x563)](P[_0x29b95d(0x42e)])),ot(0x1,a[_0x29b95d(0x271)])],$e);var Pt=Object[_0x29b95d(0x2f8)],Qi=Object[_0x29b95d(0x516)],en=(_0x41a899,_0x14902b,_0x1cc6e5)=>_0x14902b in _0x41a899?Pt(_0x41a899,_0x14902b,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x1cc6e5}):_0x41a899[_0x14902b]=_0x1cc6e5,tn=(_0x3cbc3e,_0x462b30,_0x1ec5f3,_0xea8f26)=>{const _0x5f2802=_0x29b95d;for(var _0x2ff108=_0xea8f26>0x1?void 0x0:_0xea8f26?Qi(_0x462b30,_0x1ec5f3):_0x462b30,_0x28f97b=_0x3cbc3e[_0x5f2802(0x49e)]-0x1,_0x50f9d1;_0x28f97b>=0x0;_0x28f97b--)(_0x50f9d1=_0x3cbc3e[_0x28f97b])&&(_0x2ff108=(_0xea8f26?_0x50f9d1(_0x462b30,_0x1ec5f3,_0x2ff108):_0x50f9d1(_0x2ff108))||_0x2ff108);return _0xea8f26&&_0x2ff108&&Pt(_0x462b30,_0x1ec5f3,_0x2ff108),_0x2ff108;},at=(_0x329067,_0x53f084)=>(_0x964d01,_0x48e71a)=>_0x53f084(_0x964d01,_0x48e71a,_0x329067),sn=(_0x41e251,_0x4b2070,_0x2344c8)=>en(_0x41e251,_0x4b2070+'',_0x2344c8);const nn=_0x29b95d(0x325);exports['UniverCollaborationClientPlugin']=class extends a[_0x29b95d(0x3ae)]{constructor(_0x1491f3,_0x540d71,_0x44af6a){const _0x201dd4=_0x29b95d;super(),this[_0x201dd4(0x26b)]=_0x1491f3,this[_0x201dd4(0x3cb)]=_0x540d71,this['_injector']=_0x44af6a;}[_0x29b95d(0x4c5)](_0x446cd2){const _0x5732a9=_0x29b95d;var _0x31d2ca,_0x483a28,_0x3127f9,_0x49db3d,_0x1b3b33;_0x446cd2['has'](a[_0x5732a9(0x525)])&&this['_logService'][_0x5732a9(0x383)](_0x5732a9(0x204),_0x5732a9(0x358));let _0x177dd6=[[a[_0x5732a9(0x525)],{'useClass':je}],[exports[_0x5732a9(0x2cf)]],[We],[P[_0x5732a9(0x42e)]],[Ye,{'useClass':wt}],[G],[exports[_0x5732a9(0x45c)]],[P['WebSocketService']],[fe],[ge],[ve],[Ve],[Ie],[Fe],[Be,{'useClass':(_0x483a28=(_0x31d2ca=this[_0x5732a9(0x26b)])==null?void 0x0:_0x31d2ca[_0x5732a9(0x3ba)])!=null?_0x483a28:exports[_0x5732a9(0x44c)]}],[P[_0x5732a9(0x294)],{'useClass':P[_0x5732a9(0x409)]}],[a[_0x5732a9(0x55c)],{'useClass':Ae}],[a[_0x5732a9(0x505)],{'useClass':exports['AuthzIoHttpService']}],[A['IImageIoService'],{'useClass':$e}],[exports[_0x5732a9(0x4cd)]],[exports[_0x5732a9(0x1ca)]],[exports[_0x5732a9(0x529)]],[de],[J]];(_0x3127f9=this['_config'])!=null&&_0x3127f9[_0x5732a9(0x1d2)]&&_0x177dd6['push']([pe,{'useClass':_s}]),((_0x49db3d=this[_0x5732a9(0x26b)])==null?void 0x0:_0x49db3d[_0x5732a9(0x441)])==null||this['_config'][_0x5732a9(0x441)][_0x5732a9(0x2c5)](a[_0x5732a9(0x30a)][_0x5732a9(0x272)])?_0x177dd6[_0x5732a9(0x346)]([ue]):this[_0x5732a9(0x26b)][_0x5732a9(0x441)]['includes'](a[_0x5732a9(0x30a)][_0x5732a9(0x2a2)])&&_0x177dd6[_0x5732a9(0x346)]([Se]),_0x177dd6=a[_0x5732a9(0x224)](_0x177dd6,(_0x1b3b33=this[_0x5732a9(0x26b)])==null?void 0x0:_0x1b3b33['override']),_0x177dd6[_0x5732a9(0x3b0)](_0x47f8d5=>_0x446cd2[_0x5732a9(0x3af)](_0x47f8d5)),_0x446cd2[_0x5732a9(0x2d3)](P[_0x5732a9(0x42e)])['registerHTTPInterceptor']({'priority':0x14,'interceptor':P[_0x5732a9(0x428)]({'maxParallel':0x6})}),this[_0x5732a9(0x3fd)]();}[_0x29b95d(0x3fd)](){const _0x552048=_0x29b95d;var _0x838504,_0x544ddf;(_0x838504=this[_0x552048(0x26b)])!=null&&_0x838504['enableOfflineEditing']||this[_0x552048(0x42b)][_0x552048(0x2d3)](exports[_0x552048(0x45c)])[_0x552048(0x4d4)](),(_0x544ddf=this[_0x552048(0x26b)])!=null&&_0x544ddf['enableAuthServer']&&this[_0x552048(0x42b)][_0x552048(0x2d3)](Ie);}},sn(exports[_0x29b95d(0x26a)],_0x29b95d(0x337),nn),exports['UniverCollaborationClientPlugin']=tn([a[_0x29b95d(0x4e1)](u[_0x29b95d(0x244)]),at(0x1,a[_0x29b95d(0x50d)]),at(0x2,h[_0x29b95d(0x563)](h[_0x29b95d(0x380)]))],exports['UniverCollaborationClientPlugin']),exports['AUTHZ_URL_KEY']=Lt,exports[_0x29b95d(0x4ab)]=gt,exports[_0x29b95d(0x38d)]=ut,exports[_0x29b95d(0x3ec)]=U,exports[_0x29b95d(0x4f2)]=Ut,exports[_0x29b95d(0x48d)]=Fe,exports[_0x29b95d(0x4af)]=dt,exports[_0x29b95d(0x3f0)]=xe,exports[_0x29b95d(0x528)]=Be,exports['IURLService']=Ye,exports[_0x29b95d(0x2a3)]=vt,exports[_0x29b95d(0x452)]=ft,exports[_0x29b95d(0x1cb)]=_t,exports[_0x29b95d(0x40b)]=lt,exports[_0x29b95d(0x556)]=ht,exports[_0x29b95d(0x278)]=W,exports[_0x29b95d(0x37b)]=wt,exports[_0x29b95d(0x35a)]=It,exports[_0x29b95d(0x56d)]=pt;
|
1
|
+
'use strict';const _0x364156=_0x17ba;(function(_0x3dd218,_0x28d8fa){const _0x7a8709=_0x17ba,_0x2795f2=_0x3dd218();while(!![]){try{const _0x3e98d4=-parseInt(_0x7a8709(0x426))/0x1+-parseInt(_0x7a8709(0x1d0))/0x2*(-parseInt(_0x7a8709(0x4dd))/0x3)+parseInt(_0x7a8709(0x3e4))/0x4+parseInt(_0x7a8709(0x355))/0x5*(-parseInt(_0x7a8709(0x1ca))/0x6)+parseInt(_0x7a8709(0x4e7))/0x7+parseInt(_0x7a8709(0x3fb))/0x8*(parseInt(_0x7a8709(0x573))/0x9)+-parseInt(_0x7a8709(0x4ad))/0xa;if(_0x3e98d4===_0x28d8fa)break;else _0x2795f2['push'](_0x2795f2['shift']());}catch(_0x4ad49c){_0x2795f2['push'](_0x2795f2['shift']());}}}(_0x5d0e,0x36176));var xt=Object['defineProperty'],kt=(_0x11a233,_0x239ca4,_0x57e3cf)=>_0x239ca4 in _0x11a233?xt(_0x11a233,_0x239ca4,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x57e3cf}):_0x11a233[_0x239ca4]=_0x57e3cf,d=(_0x59fb74,_0x3715cf,_0x2a13b2)=>kt(_0x59fb74,typeof _0x3715cf!='symbol'?_0x3715cf+'':_0x3715cf,_0x2a13b2);Object[_0x364156(0x53c)](exports,Symbol[_0x364156(0x353)],{'value':_0x364156(0x2e5)});const a=require('@univerjs/core'),E=require(_0x364156(0x333)),Q=require('@univerjs/design'),M=require(_0x364156(0x3bb)),u=require(_0x364156(0x37f)),h=require('@wendellhu/redi'),g=require(_0x364156(0x47b)),C=require(_0x364156(0x3de)),N=require('@univerjs/docs'),y=require(_0x364156(0x437)),A=require(_0x364156(0x32e)),qe=require(_0x364156(0x45b)),ke=require('lodash/debounce'),R=require(_0x364156(0x56a)),z=require(_0x364156(0x223)),ht=require(_0x364156(0x1ed)),w=require(_0x364156(0x404)),Bt=require(_0x364156(0x586)),Ft=require(_0x364156(0x588)),_t='SNAPSHOT_SERVER_URL_KEY',Vt=_0x364156(0x1d9),ut=_0x364156(0x4ec),dt=_0x364156(0x4eb),Wt=0x7d0,St=_0x364156(0x273),Gt=_0x364156(0x52c),vt='HEARTBEAT_INTERVAL',Yt=0x7530,Be=_0x364156(0x4f4),gt=0x2710,Kt=_0x364156(0x496),Xt=0x4e20,qt=_0x364156(0x217),Jt=0x3,ft=_0x364156(0x584),zt=0x3e8,mt='COLLAB_SUBMIT_CHANGESET_URL',Zt='/universer-api/comb',It='LOGIN_URL_KEY',Qt=_0x364156(0x27e);var pt=(_0x2eb91d=>(_0x2eb91d[_0x2eb91d[_0x364156(0x556)]=0x0]=_0x364156(0x556),_0x2eb91d[_0x2eb91d['OK']=0x1]='OK',_0x2eb91d[_0x2eb91d[_0x364156(0x242)]=0x2]='INTERNAL_ERROR',_0x2eb91d[_0x2eb91d[_0x364156(0x527)]=0x3]=_0x364156(0x527),_0x2eb91d[_0x2eb91d['NOT_FOUND']=0x4]=_0x364156(0x2bf),_0x2eb91d[_0x2eb91d[_0x364156(0x1f8)]=0x5]='UNAUTHENTICATED',_0x2eb91d[_0x2eb91d[_0x364156(0x2da)]=0x6]=_0x364156(0x2da),_0x2eb91d[_0x2eb91d[_0x364156(0x43e)]=0x7]=_0x364156(0x43e),_0x2eb91d[_0x2eb91d['TOO_MANY_REQUESTS']=0x8]='TOO_MANY_REQUESTS',_0x2eb91d[_0x2eb91d[_0x364156(0x3a5)]=0x9]='COMPLETION_FINISHED',_0x2eb91d[_0x2eb91d['CHANGESET_REVISION_CONFILICT']=0x1389]=_0x364156(0x551),_0x2eb91d[_0x2eb91d[_0x364156(0x29f)]=0x1771]=_0x364156(0x29f),_0x2eb91d[_0x2eb91d['SNAPSHOT_HAS_BEEN_REMOVED']=0x1772]=_0x364156(0x35a),_0x2eb91d[_0x2eb91d[_0x364156(0x474)]=0x1b59]=_0x364156(0x474),_0x2eb91d[_0x2eb91d[_0x364156(0x416)]=0x1b5a]=_0x364156(0x416),_0x2eb91d[_0x2eb91d[_0x364156(0x376)]=0x1b5b]=_0x364156(0x376),_0x2eb91d[_0x2eb91d[_0x364156(0x235)]=0x1b5c]=_0x364156(0x235),_0x2eb91d[_0x2eb91d[_0x364156(0x248)]=0x1f41]=_0x364156(0x248),_0x2eb91d[_0x2eb91d['LICENSE_MAX_UNITS_EXCEEDED']=0x2329]=_0x364156(0x2de),_0x2eb91d[_0x2eb91d[_0x364156(0x37a)]=0x232a]=_0x364156(0x37a),_0x2eb91d[_0x2eb91d[_0x364156(0x2e9)]=0x232b]=_0x364156(0x2e9),_0x2eb91d[_0x2eb91d['LICENSE_EXPORT_SIZE_EXCEEDED']=0x232c]=_0x364156(0x504),_0x2eb91d[_0x2eb91d[_0x364156(0x50d)]=0x232d]=_0x364156(0x50d),_0x2eb91d[_0x2eb91d[_0x364156(0x4ab)]=0x2711]='YUUMI_UNABLE_LOAD_URL',_0x2eb91d[_0x2eb91d[_0x364156(0x572)]=0x2712]=_0x364156(0x572),_0x2eb91d[_0x2eb91d[_0x364156(0x519)]=-0x1]=_0x364156(0x519),_0x2eb91d))(pt||{}),$=(_0x1da7a1=>(_0x1da7a1[_0x1da7a1[_0x364156(0x462)]=0x0]='UNIVER_UNKNOWN',_0x1da7a1[_0x1da7a1['UNIVER_DOC']=0x1]='UNIVER_DOC',_0x1da7a1[_0x1da7a1[_0x364156(0x350)]=0x2]=_0x364156(0x350),_0x1da7a1[_0x1da7a1[_0x364156(0x47f)]=0x3]=_0x364156(0x47f),_0x1da7a1[_0x1da7a1['UNRECOGNIZED']=-0x1]=_0x364156(0x519),_0x1da7a1))($||{}),T=(_0xf7f543=>(_0xf7f543[_0xf7f543[_0x364156(0x46b)]=0x0]=_0x364156(0x46b),_0xf7f543[_0xf7f543[_0x364156(0x1f1)]=0x1]='HELLO',_0xf7f543[_0xf7f543['JOIN']=0x2]=_0x364156(0x335),_0xf7f543[_0xf7f543[_0x364156(0x227)]=0x3]=_0x364156(0x227),_0xf7f543[_0xf7f543[_0x364156(0x471)]=0x4]=_0x364156(0x471),_0xf7f543[_0xf7f543['HEARTBEAT']=0x5]=_0x364156(0x22d),_0xf7f543[_0xf7f543[_0x364156(0x35d)]=0x6]='RECV',_0xf7f543[_0xf7f543['UNRECOGNIZED']=-0x1]=_0x364156(0x519),_0xf7f543))(T||{}),Fe=(_0x5e37e7=>(_0x5e37e7[_0x5e37e7[_0x364156(0x23f)]=0x0]=_0x364156(0x23f),_0x5e37e7[_0x5e37e7['OK']=0x1]='OK',_0x5e37e7[_0x5e37e7['FAIL']=0x2]=_0x364156(0x3c8),_0x5e37e7[_0x5e37e7[_0x364156(0x519)]=-0x1]=_0x364156(0x519),_0x5e37e7))(Fe||{}),es=Object[_0x364156(0x53c)],ts=Object[_0x364156(0x55c)],ss=(_0x150ef6,_0x439805,_0x45fc74,_0x20047c)=>{const _0x10911d=_0x364156;for(var _0x22ed9f=_0x20047c>0x1?void 0x0:_0x20047c?ts(_0x439805,_0x45fc74):_0x439805,_0x28649d=_0x150ef6[_0x10911d(0x37d)]-0x1,_0x5b208a;_0x28649d>=0x0;_0x28649d--)(_0x5b208a=_0x150ef6[_0x28649d])&&(_0x22ed9f=(_0x20047c?_0x5b208a(_0x439805,_0x45fc74,_0x22ed9f):_0x5b208a(_0x22ed9f))||_0x22ed9f);return _0x20047c&&_0x22ed9f&&es(_0x439805,_0x45fc74,_0x22ed9f),_0x22ed9f;},Je=(_0x37a81b,_0x1e71ef)=>(_0x2a790b,_0x191d35)=>_0x1e71ef(_0x2a790b,_0x191d35,_0x37a81b);let G=class extends a[_0x364156(0x262)]{constructor(_0x4e69d8,_0x2364c1){const _0x5aaa3c=_0x364156;super(),d(this,_0x5aaa3c(0x22a),new Map()),(this[_0x5aaa3c(0x53b)]=_0x4e69d8,this[_0x5aaa3c(0x34e)]=_0x2364c1,this[_0x5aaa3c(0x1e6)](a[_0x5aaa3c(0x4a1)](g[_0x5aaa3c(0x3ba)](this[_0x5aaa3c(0x53b)]['getTypeOfUnitDisposed$'](a['UniverInstanceType'][_0x5aaa3c(0x350)])[_0x5aaa3c(0x1f5)](C[_0x5aaa3c(0x27d)](_0x4fee8e=>_0x4fee8e[_0x5aaa3c(0x38b)]())),this[_0x5aaa3c(0x53b)][_0x5aaa3c(0x2d4)](a[_0x5aaa3c(0x38c)][_0x5aaa3c(0x287)])['pipe'](C['map'](_0x5366ef=>_0x5366ef[_0x5aaa3c(0x38b)]())),this[_0x5aaa3c(0x53b)][_0x5aaa3c(0x2d4)](a['UniverInstanceType']['UNIVER_SLIDE'])['pipe'](C['map'](_0x124abb=>_0x124abb[_0x5aaa3c(0x38b)]())))[_0x5aaa3c(0x4f5)](_0x2d04ac=>this[_0x5aaa3c(0x2fd)](_0x2d04ac)))));}[_0x364156(0x57f)](_0x47ddfb){const _0x464b01=_0x364156;this[_0x464b01(0x34e)]['setCurrentUser'](_0x47ddfb);}[_0x364156(0x236)](){const _0x18cdab=_0x364156;return this[_0x18cdab(0x34e)][_0x18cdab(0x236)]();}[_0x364156(0x2c6)](_0x4e47d3,_0x234c1a){const _0x19e0c8=_0x364156;let _0x483a1e=this['_roomMembers'][_0x19e0c8(0x3f4)](_0x4e47d3);_0x483a1e||(_0x483a1e=new is(),this[_0x19e0c8(0x22a)]['set'](_0x4e47d3,_0x483a1e)),_0x483a1e['updateMember'](_0x234c1a);}[_0x364156(0x3a0)](_0x4893cd,_0x199950){const _0x5bc13f=_0x364156,_0x1e8d00=this[_0x5bc13f(0x22a)][_0x5bc13f(0x3f4)](_0x4893cd);_0x1e8d00&&_0x1e8d00[_0x5bc13f(0x3a0)](_0x199950);}['getRoom'](_0x5b62a7){const _0x33d012=_0x364156;return this[_0x33d012(0x22a)][_0x33d012(0x3f4)](_0x5b62a7);}[_0x364156(0x2b3)](_0x248652,_0x1577b9){const _0x5e62ba=_0x364156,_0xa9b0e2=this[_0x5e62ba(0x22a)]['get'](_0x248652);if(_0xa9b0e2)return _0xa9b0e2[_0x5e62ba(0x2b3)](_0x1577b9);}[_0x364156(0x2fd)](_0xe55eeb){const _0x59b5a9=_0x364156,_0x2da8ef=this[_0x59b5a9(0x22a)][_0x59b5a9(0x3f4)](_0xe55eeb);_0x2da8ef&&(_0x2da8ef['dispose'](),this[_0x59b5a9(0x22a)][_0x59b5a9(0x4b0)](_0xe55eeb));}[_0x364156(0x266)](){const _0x33a323=_0x364156;this['_roomMembers'][_0x33a323(0x2b1)](_0x37465c=>_0x37465c[_0x33a323(0x266)]()),this['_roomMembers'][_0x33a323(0x23d)]();}};G=ss([Je(0x0,a[_0x364156(0x58c)]),Je(0x1,h[_0x364156(0x24e)](a[_0x364156(0x2f3)]))],G);class is extends a[_0x364156(0x262)]{constructor(){super(...arguments),d(this,'_members',new Map());}['dispose'](){const _0x4877fb=_0x364156;this['_members'][_0x4877fb(0x23d)]();}[_0x364156(0x2c6)](_0x3149cd){const _0x52ba1f=_0x364156;this[_0x52ba1f(0x4bf)][_0x52ba1f(0x490)](_0x3149cd[_0x52ba1f(0x4a0)],_0x3149cd);}[_0x364156(0x3a0)](_0x24c814){const _0x1a02f9=_0x364156;this[_0x1a02f9(0x4bf)][_0x1a02f9(0x4b0)](_0x24c814);}['getMember'](_0x243b5d){const _0x4b61d5=_0x364156;return this[_0x4b61d5(0x4bf)][_0x4b61d5(0x3f4)](_0x243b5d);}}function Et(_0x26a622){const _0x353c38=_0x364156;var _0x39ed05,_0x52fff8,_0x10b613,_0x4da6c4;const _0x36791b=_0x26a622[_0x353c38(0x45d)],_0x6bed88=JSON[_0x353c38(0x42a)](_0x36791b);switch(_0x6bed88[_0x353c38(0x28b)]){case T[_0x353c38(0x22d)]:case T['HELLO']:{const _0x17b315=_0x6bed88[_0x353c38(0x3b4)];return{..._0x6bed88,'data':_0x17b315,'cmd':_0x6bed88['cmd']};}case T[_0x353c38(0x335)]:{const _0x5bc7b6=_0x6bed88[_0x353c38(0x373)];return{..._0x6bed88,'data':_0x5bc7b6,'cmd':_0x6bed88[_0x353c38(0x28b)]};}case T['RECV']:{const _0x4c5369=_0x6bed88['collaMsg'];switch(_0x4c5369['eventID']){case u[_0x353c38(0x3ac)][_0x353c38(0x224)]:return{..._0x6bed88,'data':{..._0x4c5369,'data':(_0x39ed05=_0x4c5369[_0x353c38(0x303)])==null?void 0x0:_0x39ed05['cs']},'cmd':_0x6bed88[_0x353c38(0x28b)]};case u['CollaborationEvent'][_0x353c38(0x3aa)]:return{..._0x6bed88,'data':{..._0x4c5369,'data':(_0x52fff8=_0x4c5369[_0x353c38(0x282)])==null?void 0x0:_0x52fff8['cs']},'cmd':_0x6bed88[_0x353c38(0x28b)]};case u['CollaborationEvent'][_0x353c38(0x410)]:return{..._0x6bed88,'data':{..._0x4c5369,'data':(_0x10b613=_0x4c5369['newCsEvent'])==null?void 0x0:_0x10b613['cs']},'cmd':_0x6bed88['cmd']};case u[_0x353c38(0x3ac)][_0x353c38(0x4da)]:return{..._0x6bed88,'data':{..._0x4c5369,'data':(_0x4da6c4=_0x4c5369[_0x353c38(0x529)])==null?void 0x0:_0x4da6c4['cs']},'cmd':_0x6bed88[_0x353c38(0x28b)]};case u[_0x353c38(0x3ac)][_0x353c38(0x2c3)]:return{..._0x6bed88,'data':{..._0x4c5369,'data':_0x4c5369[_0x353c38(0x49a)]},'cmd':_0x6bed88[_0x353c38(0x28b)]};case u[_0x353c38(0x3ac)]['USERS_ENTER']:return{..._0x6bed88,'data':{..._0x4c5369,'data':_0x4c5369[_0x353c38(0x2e8)]},'cmd':_0x6bed88['cmd']};case u[_0x353c38(0x3ac)][_0x353c38(0x41f)]:return{..._0x6bed88,'data':{..._0x4c5369,'data':_0x4c5369['leaveEvent']},'cmd':_0x6bed88[_0x353c38(0x28b)]};case u[_0x353c38(0x3ac)][_0x353c38(0x286)]:return{..._0x6bed88,'data':{..._0x4c5369,'data':_0x4c5369[_0x353c38(0x23a)]},'cmd':_0x6bed88[_0x353c38(0x28b)]};case u['CollaborationEvent'][_0x353c38(0x513)]:case u[_0x353c38(0x3ac)][_0x353c38(0x578)]:return{..._0x6bed88,'data':{..._0x4c5369,'data':_0x4c5369[_0x353c38(0x43f)]},'cmd':_0x6bed88[_0x353c38(0x28b)]};case u[_0x353c38(0x3ac)]['LIVESHARE_TERMINATE']:return{..._0x6bed88,'data':{..._0x4c5369,'data':_0x4c5369[_0x353c38(0x23a)]},'cmd':_0x6bed88[_0x353c38(0x28b)]};case u[_0x353c38(0x3ac)][_0x353c38(0x253)]:return{..._0x6bed88,'data':_0x4c5369,'cmd':_0x6bed88[_0x353c38(0x28b)]};case u[_0x353c38(0x3ac)][_0x353c38(0x33d)]:return{..._0x6bed88,'data':{..._0x4c5369,'data':_0x4c5369[_0x353c38(0x1da)]},'cmd':_0x6bed88[_0x353c38(0x28b)]};case u[_0x353c38(0x3ac)][_0x353c38(0x274)]:return{..._0x6bed88,'data':{..._0x4c5369,'data':_0x4c5369[_0x353c38(0x589)]},'cmd':_0x6bed88[_0x353c38(0x28b)]};case u['CollaborationEvent'][_0x353c38(0x2fa)]:return{..._0x6bed88,'data':{..._0x4c5369,'data':_0x4c5369[_0x353c38(0x3cd)]},'cmd':_0x6bed88[_0x353c38(0x28b)]};default:return _0x6bed88;}}default:return _0x6bed88;}}function Ct(_0x2b2346){const _0x1f2411=_0x364156;switch(_0x2b2346['cmd']){case T[_0x1f2411(0x22d)]:case T[_0x1f2411(0x1f1)]:return JSON[_0x1f2411(0x2b6)]({'cmd':_0x2b2346['cmd'],'routeKey':_0x2b2346['routeKey']});case T[_0x1f2411(0x471)]:{let _0xdec75;switch(_0x2b2346[_0x1f2411(0x45d)][_0x1f2411(0x321)]){case u['CollaborationEvent']['UPDATE_CURSOR']:{_0xdec75={'eventID':u['CollaborationEvent']['UPDATE_CURSOR'],'updateCursorEvent':_0x2b2346['data']['data']};break;}case u['CollaborationEvent'][_0x1f2411(0x41f)]:{_0xdec75={'eventID':u[_0x1f2411(0x3ac)][_0x1f2411(0x41f)],'leaveEvent':_0x2b2346[_0x1f2411(0x45d)][_0x1f2411(0x45d)]};break;}case u[_0x1f2411(0x3ac)]['USERS_ENTER']:{_0xdec75={'eventID':u[_0x1f2411(0x3ac)][_0x1f2411(0x562)],'joinEvent':_0x2b2346[_0x1f2411(0x45d)][_0x1f2411(0x45d)]};break;}case u[_0x1f2411(0x3ac)]['LIVESHARE_NEW_HOST']:{_0xdec75={'eventID':u[_0x1f2411(0x3ac)][_0x1f2411(0x286)],'liveShareNewHost':_0x2b2346[_0x1f2411(0x45d)][_0x1f2411(0x45d)]};break;}case u['CollaborationEvent'][_0x1f2411(0x578)]:{_0xdec75={'eventID':u[_0x1f2411(0x3ac)][_0x1f2411(0x578)],'liveShareOperation':_0x2b2346[_0x1f2411(0x45d)]['data']};break;}case u[_0x1f2411(0x3ac)][_0x1f2411(0x2d2)]:{_0xdec75={'eventID':u[_0x1f2411(0x3ac)][_0x1f2411(0x2d2)],'liveShareTerminate':_0x2b2346[_0x1f2411(0x45d)][_0x1f2411(0x45d)]};break;}case u[_0x1f2411(0x3ac)][_0x1f2411(0x386)]:{_0xdec75={'eventID':u[_0x1f2411(0x3ac)][_0x1f2411(0x386)],'liveShareRequestHost':_0x2b2346[_0x1f2411(0x45d)][_0x1f2411(0x45d)]};break;}case u[_0x1f2411(0x3ac)][_0x1f2411(0x513)]:{_0xdec75={'eventID':u[_0x1f2411(0x3ac)]['LIVESHARE_FETCH_OPERATIONS']};break;}default:_0xdec75={'eventID':_0x2b2346[_0x1f2411(0x45d)]['eventID']};}return JSON['stringify']({'cmd':_0x2b2346[_0x1f2411(0x28b)],'routeKey':_0x2b2346[_0x1f2411(0x4f6)],'collaMsg':_0xdec75});}case T[_0x1f2411(0x335)]:return JSON[_0x1f2411(0x2b6)]({'cmd':_0x2b2346[_0x1f2411(0x28b)],'routeKey':_0x2b2346[_0x1f2411(0x4f6)],'joinReq':_0x2b2346['data']});case T[_0x1f2411(0x227)]:return JSON[_0x1f2411(0x2b6)]({'cmd':_0x2b2346[_0x1f2411(0x28b)],'routeKey':_0x2b2346[_0x1f2411(0x4f6)],'leaveReq':_0x2b2346[_0x1f2411(0x45d)]});default:throw new Error('[serializeCombRequest]:\x20should\x20not\x20fall\x20into\x20default\x20branch!');}}var ns=Object[_0x364156(0x53c)],rs=Object[_0x364156(0x55c)],os=(_0x2d6d5e,_0x4a2e85,_0x1934eb,_0x5752d5)=>{for(var _0x55b561=_0x5752d5>0x1?void 0x0:_0x5752d5?rs(_0x4a2e85,_0x1934eb):_0x4a2e85,_0x4be7f6=_0x2d6d5e['length']-0x1,_0x1f4d53;_0x4be7f6>=0x0;_0x4be7f6--)(_0x1f4d53=_0x2d6d5e[_0x4be7f6])&&(_0x55b561=(_0x5752d5?_0x1f4d53(_0x4a2e85,_0x1934eb,_0x55b561):_0x1f4d53(_0x55b561))||_0x55b561);return _0x5752d5&&_0x55b561&&ns(_0x4a2e85,_0x1934eb,_0x55b561),_0x55b561;},se=(_0x234cfe,_0x4456dc)=>(_0x46ffd6,_0x2e3747)=>_0x4456dc(_0x46ffd6,_0x2e3747,_0x234cfe);const Ve=h[_0x364156(0x493)](_0x364156(0x4f7));function as(_0x187ede,_0x3f2554,_0x3849d8){const _0x121498=_0x364156;return _0x187ede+'/'+_0x3f2554+_0x121498(0x35f)+_0x3849d8+'/new_changes';}exports[_0x364156(0x33a)]=class{constructor(_0x591b53,_0x1f5c75,_0xacaba2,_0x1175d5,_0x3290ef){const _0x12f4ec=_0x364156;this['_http']=_0x591b53,this[_0x12f4ec(0x2e4)]=_0x1f5c75,this['_configService']=_0xacaba2,this[_0x12f4ec(0x3f3)]=_0x1175d5,this[_0x12f4ec(0x336)]=_0x3290ef;}[_0x364156(0x4d5)](_0x19ada4){const _0x569f6f=_0x364156,_0x160604=this['_ws'][_0x569f6f(0x4d5)](_0x19ada4);if(!_0x160604)throw new Error(_0x569f6f(0x389));const _0x4d08b5=new a[(_0x569f6f(0x4b8))](),_0x2b3eca=new g[(_0x569f6f(0x2c1))]();_0x4d08b5['add'](a[_0x569f6f(0x4a1)](_0x160604[_0x569f6f(0x322)][_0x569f6f(0x4f5)](_0x3188cb=>_0x2b3eca[_0x569f6f(0x1d2)](_0x3188cb)))),_0x4d08b5['add'](a[_0x569f6f(0x4a1)](()=>_0x2b3eca[_0x569f6f(0x28c)]()));const _0x506465=new g[(_0x569f6f(0x2c1))]();_0x4d08b5[_0x569f6f(0x2e0)](a[_0x569f6f(0x4a1)](_0x160604['error$'][_0x569f6f(0x4f5)](_0x1dfc0a=>_0x506465[_0x569f6f(0x1d2)](_0x1dfc0a)))),_0x4d08b5[_0x569f6f(0x2e0)](a[_0x569f6f(0x4a1)](()=>_0x506465[_0x569f6f(0x28c)]()));const _0x31be64=new g[(_0x569f6f(0x2c1))]();_0x4d08b5['add'](a[_0x569f6f(0x4a1)](_0x160604[_0x569f6f(0x254)][_0x569f6f(0x4f5)](_0x2cc4c2=>{const _0x27cef3=_0x569f6f,_0x1faa3c=Et(_0x2cc4c2);_0x31be64[_0x27cef3(0x1d2)](_0x1faa3c);}))),_0x4d08b5[_0x569f6f(0x2e0)](a[_0x569f6f(0x4a1)](()=>_0x31be64[_0x569f6f(0x28c)]()));const _0x4f8ed7=()=>{const _0x4f7259=_0x569f6f;_0x506465['next'](new Event(_0x4f7259(0x406))),_0x2b3eca[_0x4f7259(0x1d2)](new CloseEvent(_0x4f7259(0x406))),_0x56815b[_0x4f7259(0x494)]();},_0x56815b={'memberID':'','close$':_0x2b3eca[_0x569f6f(0x485)](),'error$':_0x506465['asObservable'](),'open$':_0x160604[_0x569f6f(0x3ee)],'message$':_0x31be64[_0x569f6f(0x485)](),'send':_0x4cd89a=>{const _0x309a80=_0x569f6f;if(_0x4cd89a[_0x309a80(0x28b)]===T[_0x309a80(0x471)]){if(_0x4cd89a[_0x309a80(0x45d)][_0x309a80(0x321)]===u['CollaborationEvent']['SUBMIT_CHANGESET']){this[_0x309a80(0x48b)](_0x56815b,_0x4cd89a[_0x309a80(0x45d)])['catch'](_0x20d8bd=>{const _0x2701ae=_0x309a80;this[_0x2701ae(0x3f3)][_0x2701ae(0x381)](_0x20d8bd),_0x4f8ed7();});return;}if(_0x4cd89a[_0x309a80(0x45d)][_0x309a80(0x321)]===u[_0x309a80(0x3ac)][_0x309a80(0x1d6)]){const _0x5b2b62=_0x4cd89a[_0x309a80(0x45d)];this[_0x309a80(0x464)](_0x5b2b62)[_0x309a80(0x541)](_0x2229db=>{const _0x52b68c=_0x309a80;_0x31be64[_0x52b68c(0x1d2)]({'cmd':T[_0x52b68c(0x35d)],'code':Fe['OK'],'routeKey':_0x5b2b62[_0x52b68c(0x45d)][_0x52b68c(0x1e9)],'routeType':'','data':{'eventID':u[_0x52b68c(0x3ac)]['PSEUDO_FETCH_MISSING_RESULT'],'data':{'changesets':_0x2229db}}});})['catch'](_0x326de1=>{const _0xfe03f0=_0x309a80;this[_0xfe03f0(0x3f3)]['error'](_0x326de1),_0x4f8ed7();});return;}}_0x160604[_0x309a80(0x3c4)](Ct(_0x4cd89a));},'close':()=>{const _0x245193=_0x569f6f;_0x160604[_0x245193(0x494)](),_0x4d08b5[_0x245193(0x266)]();}};return _0x56815b;}async[_0x364156(0x48b)](_0xfced0e,_0x1c84eb){const _0x1dffc6=_0x364156;var _0x1ce9fa;const {unitType:_0x3207c2,unitID:_0x644fec,changeset:_0xb98bd3}=_0x1c84eb['data'],_0x4cc174={'unitID':_0x644fec,'memberID':_0xfced0e[_0x1dffc6(0x4a0)],'type':_0x3207c2,'changeset':u[_0x1dffc6(0x327)](_0xb98bd3)},_0x46092f=as((_0x1ce9fa=this[_0x1dffc6(0x53e)][_0x1dffc6(0x58b)](mt))!=null?_0x1ce9fa:Zt,_0x3207c2,_0x644fec);try{await this[_0x1dffc6(0x525)][_0x1dffc6(0x3e1)](_0x46092f,{'body':_0x4cc174});}catch(_0x516918){throw this[_0x1dffc6(0x3f3)]['error']('[CollaborationSession]',_0x1dffc6(0x295)),_0x516918;}}async[_0x364156(0x464)](_0x298f12){const _0x2da2a3=_0x364156,{unitID:_0x206188,from:_0xae4d5d,to:_0x11fed2,unitType:_0x50951c}=_0x298f12['data'];return(await this['_snapshotServerService'][_0x2da2a3(0x299)]({'metadata':void 0x0},{'unitID':_0x206188,'type':_0x50951c,'from':_0xae4d5d,'to':_0x11fed2}))[_0x2da2a3(0x3dc)];}},exports[_0x364156(0x33a)]=os([se(0x0,h[_0x364156(0x24e)](y['HTTPService'])),se(0x1,h['Inject'](y[_0x364156(0x385)])),se(0x2,a[_0x364156(0x36a)]),se(0x3,a[_0x364156(0x476)]),se(0x4,a[_0x364156(0x324)])],exports[_0x364156(0x33a)]);class We{constructor(){const _0xad28ba=_0x364156;d(this,_0xad28ba(0x1d8),new g['Subject']()),d(this,_0xad28ba(0x265),this[_0xad28ba(0x1d8)][_0xad28ba(0x485)]());}[_0x364156(0x427)](_0x17692d){const _0x5a27b6=_0x364156;this[_0x5a27b6(0x1d8)][_0x5a27b6(0x1d2)](_0x17692d);}}var cs=Object['defineProperty'],ls=Object['getOwnPropertyDescriptor'],bt=(_0x415ff6,_0x31cee8,_0x2a4830,_0xef2ab8)=>{const _0x3159a5=_0x364156;for(var _0x1b699d=_0xef2ab8>0x1?void 0x0:_0xef2ab8?ls(_0x31cee8,_0x2a4830):_0x31cee8,_0x547eda=_0x415ff6[_0x3159a5(0x37d)]-0x1,_0x532665;_0x547eda>=0x0;_0x547eda--)(_0x532665=_0x415ff6[_0x547eda])&&(_0x1b699d=(_0xef2ab8?_0x532665(_0x31cee8,_0x2a4830,_0x1b699d):_0x532665(_0x1b699d))||_0x1b699d);return _0xef2ab8&&_0x1b699d&&cs(_0x31cee8,_0x2a4830,_0x1b699d),_0x1b699d;},P=(_0x4bb769,_0x22a0d6)=>(_0x240ed0,_0xb39b35)=>_0x22a0d6(_0x240ed0,_0xb39b35,_0x4bb769),W=(_0x142db3=>(_0x142db3[_0x142db3[_0x364156(0x2e6)]=0x0]=_0x364156(0x2e6),_0x142db3[_0x142db3[_0x364156(0x312)]=0x1]='JOINING',_0x142db3[_0x142db3[_0x364156(0x209)]=0x2]=_0x364156(0x209),_0x142db3[_0x142db3['ONLINE']=0x3]=_0x364156(0x42c),_0x142db3))(W||{});exports['CollaborationSession']=class extends a[_0x364156(0x306)]{constructor(_0x55165c,_0x39cbdf,_0x510b76,_0x449d39,_0x23ae24,_0x5a905b,_0x1e5eb6,_0x3723ab,_0x539ea3){const _0x14b5a2=_0x364156;super(),d(this,'_sessionStatus$',new g['BehaviorSubject'](0x0)),d(this,_0x14b5a2(0x582),this[_0x14b5a2(0x4e5)]['asObservable']()),d(this,_0x14b5a2(0x495),new g[(_0x14b5a2(0x2c1))]()),d(this,_0x14b5a2(0x56b),this[_0x14b5a2(0x495)]['asObservable']()),d(this,_0x14b5a2(0x36c)),d(this,_0x14b5a2(0x31c)),d(this,'_collaborationTimeoutTimer'),(this[_0x14b5a2(0x30f)]=_0x55165c,this[_0x14b5a2(0x3f3)]=_0x510b76,this[_0x14b5a2(0x4df)]=_0x449d39,this[_0x14b5a2(0x4f8)]=_0x23ae24,this['_configService']=_0x5a905b,this['_localeService']=_0x1e5eb6,this[_0x14b5a2(0x302)]=_0x3723ab,this['_commentService']=_0x539ea3,_0x39cbdf[_0x14b5a2(0x1f5)](C[_0x14b5a2(0x52b)](this[_0x14b5a2(0x55d)]))[_0x14b5a2(0x4f5)](_0x40923e=>{const _0x312a97=_0x14b5a2;var _0x5d3cac;typeof _0x40923e>'u'||(this[_0x312a97(0x36c)]=_0x40923e,_0x40923e?(this['_joinRoom'](_0x40923e),this[_0x312a97(0x31c)]=this['_socket'][_0x312a97(0x254)][_0x312a97(0x4f5)](_0x1b09c9=>{const _0x360804=_0x312a97;_0x1b09c9['routeKey']===this[_0x360804(0x30f)]&&this[_0x360804(0x4f1)](_0x1b09c9);})):(this[_0x312a97(0x4e5)][_0x312a97(0x1d2)](0x2),(_0x5d3cac=this[_0x312a97(0x31c)])==null||_0x5d3cac['unsubscribe'](),this[_0x312a97(0x31c)]=null));}),this[_0x14b5a2(0x1e6)](this[_0x14b5a2(0x4df)]['registerOnClose'](()=>{const _0x2d984c=_0x14b5a2;var _0x3bdcbc;(_0x3bdcbc=this[_0x2d984c(0x36c)])==null||_0x3bdcbc['send']({'cmd':T[_0x2d984c(0x227)],'data':{'roomID':this[_0x2d984c(0x30f)]}});})));}get['sessionStatus'](){const _0x46aafe=_0x364156;return this[_0x46aafe(0x4e5)]['getValue']();}[_0x364156(0x354)](){const _0xcd3fa3=_0x364156;var _0x3a11de,_0x51b8c4;return(_0x51b8c4=(_0x3a11de=this[_0xcd3fa3(0x36c)])==null?void 0x0:_0x3a11de[_0xcd3fa3(0x4a0)])!=null?_0x51b8c4:null;}[_0x364156(0x266)](){const _0x4f64c5=_0x364156;super[_0x4f64c5(0x266)](),this[_0x4f64c5(0x55d)][_0x4f64c5(0x1d2)](),this['dispose$'][_0x4f64c5(0x28c)]();}[_0x364156(0x4f1)](_0x10c426){const _0xb7f70f=_0x364156;_0x10c426[_0xb7f70f(0x28b)]===T['JOIN']?this[_0xb7f70f(0x444)](_0x10c426):_0x10c426[_0xb7f70f(0x28b)]===T[_0xb7f70f(0x35d)]&&this[_0xb7f70f(0x46a)](_0x10c426);}[_0x364156(0x26d)](_0x348d1c){const _0x33ab8f=_0x364156;this[_0x33ab8f(0x4e5)]['next'](0x1),_0x348d1c[_0x33ab8f(0x3c4)]({'cmd':T[_0x33ab8f(0x335)],'routeKey':this[_0x33ab8f(0x30f)],'routeType':'','data':{'rooms':[{'roomID':this[_0x33ab8f(0x30f)]}]}});}[_0x364156(0x444)](_0x28f7a2){const _0x103737=_0x364156;var _0x3ac5ec;if(_0x28f7a2[_0x103737(0x35e)]===Fe[_0x103737(0x3c8)]){this[_0x103737(0x4f8)]['show']({'type':Q['MessageType']['Warning'],'content':this[_0x103737(0x251)]['t'](_0x103737(0x1eb))}),this[_0x103737(0x4e5)][_0x103737(0x1d2)](0x2);return;}this[_0x103737(0x4e5)][_0x103737(0x1d2)](0x3);const _0x8465cc=(_0x3ac5ec=_0x28f7a2[_0x103737(0x45d)][_0x103737(0x58d)][this[_0x103737(0x30f)]])==null?void 0x0:_0x3ac5ec[_0x103737(0x45e)];_0x8465cc&&_0x8465cc[_0x103737(0x2b1)](_0x579125=>this[_0x103737(0x302)][_0x103737(0x2c6)](this[_0x103737(0x30f)],_0x579125));}[_0x364156(0x46a)](_0x1b0aac){const _0x40dce7=_0x364156;try{const _0x1c5e7c=_0x1b0aac[_0x40dce7(0x45d)];switch(_0x1c5e7c['eventID']){case u[_0x40dce7(0x3ac)]['USERS_ENTER']:this[_0x40dce7(0x2cb)](_0x1c5e7c),this[_0x40dce7(0x495)][_0x40dce7(0x1d2)](_0x1c5e7c);break;case u[_0x40dce7(0x3ac)][_0x40dce7(0x41f)]:this[_0x40dce7(0x29b)](_0x1c5e7c),this['_event$'][_0x40dce7(0x1d2)](_0x1c5e7c);break;case u['CollaborationEvent'][_0x40dce7(0x3aa)]:this[_0x40dce7(0x252)](),this[_0x40dce7(0x495)][_0x40dce7(0x1d2)](_0x1c5e7c);break;case u[_0x40dce7(0x3ac)]['MSG_FOR_ERROR']:this['_logService'][_0x40dce7(0x381)](_0x40dce7(0x2cc)+JSON[_0x40dce7(0x2b6)](_0x1c5e7c)),this[_0x40dce7(0x495)][_0x40dce7(0x1d2)](_0x1c5e7c);break;case u[_0x40dce7(0x3ac)][_0x40dce7(0x33d)]:this['_commentService']['onCommentUpdate'](_0x1c5e7c[_0x40dce7(0x45d)]),this[_0x40dce7(0x495)][_0x40dce7(0x1d2)](_0x1c5e7c);break;default:this[_0x40dce7(0x495)][_0x40dce7(0x1d2)](_0x1c5e7c);}}catch(_0x5a9599){this[_0x40dce7(0x3f3)][_0x40dce7(0x381)](_0x5a9599,_0x1b0aac);}}['_onUserJoin'](_0x655797){const _0x3cd5f4=_0x364156;this[_0x3cd5f4(0x302)]['updateMember'](this['_unitID'],_0x655797[_0x3cd5f4(0x45d)]);}['_onUserLeave'](_0x7f327d){const _0x549548=_0x364156;this[_0x549548(0x302)][_0x549548(0x3a0)](this['_unitID'],_0x7f327d[_0x549548(0x45d)][_0x549548(0x4a0)]);}async['send'](_0x171dba,_0x334904){const _0x3f9da9=_0x364156;if(this[_0x3f9da9(0x4c1)]!==0x3||!this['_socket'])throw new Error(_0x3f9da9(0x3a2));try{_0x171dba[_0x3f9da9(0x321)]===u[_0x3f9da9(0x3ac)]['NEW_CHANGESETS']&&this[_0x3f9da9(0x510)](),this[_0x3f9da9(0x36c)]['send']({'cmd':T[_0x3f9da9(0x471)],'routeKey':_0x334904,'routeType':'','data':_0x171dba});}catch(_0x125ead){this['_logService'][_0x3f9da9(0x381)](_0x125ead);}}[_0x364156(0x510)](){const _0x1b645e=_0x364156;var _0x388c70;this[_0x1b645e(0x368)]=window[_0x1b645e(0x2f0)](()=>{const _0x47bfeb=_0x1b645e;this[_0x47bfeb(0x368)]=null,this[_0x47bfeb(0x4f8)][_0x47bfeb(0x3f0)]({'type':Q[_0x47bfeb(0x23c)][_0x47bfeb(0x20d)],'content':this['_localeService']['t']('session.collaboration-timeout')});},(_0x388c70=this[_0x1b645e(0x53e)]['getConfig'](Be))!=null?_0x388c70:gt);}['_clearCollaborationTimeoutTimer'](){const _0x27b391=_0x364156;this[_0x27b391(0x368)]&&(clearTimeout(this[_0x27b391(0x368)]),this[_0x27b391(0x368)]=null);}},exports['CollaborationSession']=bt([P(0x2,a[_0x364156(0x476)]),P(0x3,M[_0x364156(0x344)]),P(0x4,M[_0x364156(0x247)]),P(0x5,a[_0x364156(0x36a)]),P(0x6,h['Inject'](a[_0x364156(0x1fb)])),P(0x7,h[_0x364156(0x24e)](G)),P(0x8,h[_0x364156(0x24e)](We))],exports[_0x364156(0x425)]),exports['CollaborationSessionService']=class extends a['Disposable']{constructor(_0x145d14,_0x1a6bac,_0x55701b,_0xf50146,_0x3ac9e2,_0x579900){const _0x41543e=_0x364156;super(),d(this,_0x41543e(0x459),new g[(_0x41543e(0x2dc))](void 0x0)),d(this,_0x41543e(0x543),new Map()),d(this,_0x41543e(0x502),new g[(_0x41543e(0x2dc))](0x0)),d(this,'status$',this['_status$']['asObservable']()),d(this,_0x41543e(0x20e),!0x1),d(this,'_sendHeartbeatTimer'),d(this,_0x41543e(0x4bc)),d(this,_0x41543e(0x320)),d(this,_0x41543e(0x483),0x0),(this['_injector']=_0x145d14,this['_localeService']=_0x1a6bac,this['_messageService']=_0x55701b,this['_logService']=_0xf50146,this[_0x41543e(0x53e)]=_0x3ac9e2,this[_0x41543e(0x3fc)]=_0x579900);}get['_socket'](){const _0x455ac8=_0x364156;return this['_socket$'][_0x455ac8(0x1de)]();}['dispose'](){const _0x12e8ae=_0x364156;super['dispose'](),this['_sessions'][_0x12e8ae(0x2b1)](_0x1de4b0=>_0x1de4b0[_0x12e8ae(0x266)]()),this['_sessions'][_0x12e8ae(0x23d)](),this['_status$'][_0x12e8ae(0x28c)]();}async[_0x364156(0x33c)](_0x579f11){const _0x96be39=_0x364156;if(this[_0x96be39(0x543)][_0x96be39(0x2bc)](_0x579f11))return this[_0x96be39(0x543)][_0x96be39(0x3f4)](_0x579f11);this[_0x96be39(0x1ef)]();const _0x229d6b=this[_0x96be39(0x34f)][_0x96be39(0x1c6)](exports[_0x96be39(0x425)],_0x579f11,this['_socket$'][_0x96be39(0x485)]());return this[_0x96be39(0x543)][_0x96be39(0x490)](_0x579f11,_0x229d6b),_0x229d6b;}[_0x364156(0x4af)](){const _0x20aa20=_0x364156;var _0x3f6c7c;const _0x2ba389=(_0x3f6c7c=this[_0x20aa20(0x53e)][_0x20aa20(0x58b)](St))!=null?_0x3f6c7c:Gt;return this['_socketService'][_0x20aa20(0x4d5)](_0x2ba389);}[_0x364156(0x1ef)](){const _0x372420=_0x364156;try{const _0x306224=this['_createSocket']();if(_0x306224){const _0x3f4856=_0x306224[_0x372420(0x3c4)];_0x306224[_0x372420(0x3c4)]=_0x406044=>(this[_0x372420(0x40a)](),_0x3f4856['apply'](_0x306224,[_0x406044])),_0x306224[_0x372420(0x254)][_0x372420(0x4f5)](_0x5d390f=>this[_0x372420(0x587)](_0x306224,_0x5d390f)),_0x306224[_0x372420(0x32d)]['pipe'](C[_0x372420(0x1c5)](0x1))[_0x372420(0x4f5)](_0x42b8b5=>this[_0x372420(0x3f3)][_0x372420(0x381)]('[CollaborationSessionService]:\x20socket\x20error',_0x42b8b5)),_0x306224[_0x372420(0x3ee)][_0x372420(0x1f5)](C[_0x372420(0x1c5)](0x1))[_0x372420(0x4f5)](()=>{this['_onConnectionOpen'](_0x306224);}),_0x306224[_0x372420(0x322)][_0x372420(0x1f5)](C[_0x372420(0x1c5)](0x1))[_0x372420(0x4f5)](_0xac8a40=>{const _0x1fff1e=_0x372420;this['_logService']['debug']('[CollaborationSessionService]',_0x1fff1e(0x488),_0xac8a40),this['_onConnectionFailed']();});}}catch(_0x8cdb90){this['_logService']['error'](_0x8cdb90),this[_0x372420(0x210)]();}}['_onConnectionOpen'](_0x4a6cfb){const _0x138918=_0x364156;this[_0x138918(0x3f3)][_0x138918(0x3b3)]('[CollaborationSessionService]',_0x138918(0x20c)),_0x4a6cfb['send']({'cmd':T[_0x138918(0x1f1)]}),this[_0x138918(0x40a)]();}[_0x364156(0x210)](){const _0x5bd2af=_0x364156;var _0x274a2a;this[_0x5bd2af(0x502)][_0x5bd2af(0x1d2)](0x2),this[_0x5bd2af(0x459)]['next'](null),this[_0x5bd2af(0x1e3)](),this[_0x5bd2af(0x57e)](),this[_0x5bd2af(0x20e)]=!0x1,this[_0x5bd2af(0x483)]<((_0x274a2a=this['_configService'][_0x5bd2af(0x58b)](qt))!=null?_0x274a2a:Jt)?(this['_scheduleReconnection'](this[_0x5bd2af(0x483)]),this[_0x5bd2af(0x483)]+=0x1):this[_0x5bd2af(0x4f8)][_0x5bd2af(0x3f0)]({'type':Q[_0x5bd2af(0x23c)][_0x5bd2af(0x20d)],'content':this[_0x5bd2af(0x251)]['t'](_0x5bd2af(0x526))});}[_0x364156(0x3ed)](_0x2f5df6){const _0x43a0d4=_0x364156;var _0x5a44e8;const _0x2e04cb=((_0x5a44e8=this[_0x43a0d4(0x53e)][_0x43a0d4(0x58b)](Kt))!=null?_0x5a44e8:Xt)*0x2**_0x2f5df6;this[_0x43a0d4(0x4f8)][_0x43a0d4(0x3f0)]({'type':Q['MessageType'][_0x43a0d4(0x3c2)],'content':this[_0x43a0d4(0x251)]['t'](_0x43a0d4(0x26e))}),this[_0x43a0d4(0x320)]=setTimeout(()=>{const _0x42cd8e=_0x43a0d4;this[_0x42cd8e(0x1ef)](),clearTimeout(this['_retryConnectingTimer']),this[_0x42cd8e(0x320)]=null;},_0x2e04cb);}[_0x364156(0x40a)](){const _0xae00b8=_0x364156;var _0xf4067a;this[_0xae00b8(0x57e)](),this[_0xae00b8(0x27a)]=setTimeout(()=>this['_sendHeartbeat'](),(_0xf4067a=this[_0xae00b8(0x53e)]['getConfig'](vt))!=null?_0xf4067a:Yt);}[_0x364156(0x276)](){const _0x4bbe1a=_0x364156;this[_0x4bbe1a(0x36c)][_0x4bbe1a(0x3c4)]({'cmd':T[_0x4bbe1a(0x22d)]}),this[_0x4bbe1a(0x2dd)]();}[_0x364156(0x2dd)](){const _0x4ab684=_0x364156;var _0x19975d;this['_timeoutTimer']=setTimeout(()=>this[_0x4ab684(0x210)](),(_0x19975d=this[_0x4ab684(0x53e)][_0x4ab684(0x58b)](Be))!=null?_0x19975d:gt);}['_onMessage'](_0x8d9f69,_0x174d52){const _0x3954f3=_0x364156,{cmd:_0x321ee9}=_0x174d52;_0x321ee9===T[_0x3954f3(0x1f1)]&&!this[_0x3954f3(0x20e)]&&(_0x8d9f69[_0x3954f3(0x4a0)]=_0x174d52[_0x3954f3(0x45d)][_0x3954f3(0x4a0)],this[_0x3954f3(0x459)][_0x3954f3(0x1d2)](_0x8d9f69),this[_0x3954f3(0x502)][_0x3954f3(0x1d2)](0x3),this[_0x3954f3(0x20e)]=!0x0),_0x321ee9===T[_0x3954f3(0x22d)]&&this[_0x3954f3(0x1e3)](),this[_0x3954f3(0x40a)]();}[_0x364156(0x57e)](){const _0x29c009=_0x364156;this['_sendHeartbeatTimer']!=null&&(clearTimeout(this[_0x29c009(0x27a)]),this[_0x29c009(0x27a)]=null);}[_0x364156(0x1e3)](){const _0x57ede7=_0x364156;this[_0x57ede7(0x4bc)]!=null&&(clearTimeout(this['_timeoutTimer']),this['_timeoutTimer']=null);}},exports[_0x364156(0x378)]=bt([P(0x0,h['Inject'](h[_0x364156(0x443)])),P(0x1,h['Inject'](a[_0x364156(0x1fb)])),P(0x2,M[_0x364156(0x247)]),P(0x3,a[_0x364156(0x476)]),P(0x4,a['IConfigService']),P(0x5,Ve)],exports[_0x364156(0x378)]);var hs=Object[_0x364156(0x53c)],_s=Object[_0x364156(0x55c)],us=(_0x4bf23b,_0x6860aa,_0x1e6e0b,_0x80d739)=>{const _0x165737=_0x364156;for(var _0xec68f5=_0x80d739>0x1?void 0x0:_0x80d739?_s(_0x6860aa,_0x1e6e0b):_0x6860aa,_0xb3a885=_0x4bf23b[_0x165737(0x37d)]-0x1,_0x4c312e;_0xb3a885>=0x0;_0xb3a885--)(_0x4c312e=_0x4bf23b[_0xb3a885])&&(_0xec68f5=(_0x80d739?_0x4c312e(_0x6860aa,_0x1e6e0b,_0xec68f5):_0x4c312e(_0xec68f5))||_0xec68f5);return _0x80d739&&_0xec68f5&&hs(_0x6860aa,_0x1e6e0b,_0xec68f5),_0xec68f5;},ie=(_0x18cf89,_0x441c1f)=>(_0xe02468,_0x2a666a)=>_0x441c1f(_0xe02468,_0x2a666a,_0x18cf89);exports['LocalCacheService']=class extends a[_0x364156(0x262)]{constructor(_0x337cb8,_0x25af69,_0x176af4,_0x3e6f8e,_0x330d6a){const _0xb526fa=_0x364156;super(),d(this,'_cachedData',new Map()),d(this,_0xb526fa(0x54e),new Map()),d(this,_0xb526fa(0x250),!0x1),(this['_configService']=_0x337cb8,this[_0xb526fa(0x201)]=_0x25af69,this[_0xb526fa(0x4df)]=_0x176af4,this['_localeService']=_0x3e6f8e,this['_revisionService']=_0x330d6a,this[_0xb526fa(0x211)]());}['disableLocalCache'](){this['_disabled']=!0x0;}[_0x364156(0x1e0)](){const _0x2b87c8=_0x364156;this[_0x2b87c8(0x250)]=!0x1;}[_0x364156(0x266)](){const _0x4e9764=_0x364156;this[_0x4e9764(0x3f7)]()[_0x4e9764(0x541)](()=>super[_0x4e9764(0x266)]());}async['loadOfflineData'](_0x297603){const _0x1be138=_0x364156;return this[_0x1be138(0x250)]?null:this[_0x1be138(0x201)][_0x1be138(0x4e4)](ze(_0x297603));}async[_0x364156(0x3f1)](_0x1f72fb,_0x59fc8d){const _0xb4212e=_0x364156;return!!this[_0xb4212e(0x201)][_0xb4212e(0x564)](_0x1f72fb,_0x59fc8d);}[_0x364156(0x2a3)](_0x4eaab8,_0x415ddd,_0x49d697,_0x5b5786){const _0x73bd1b=_0x364156,_0x2e5e4f=this['_revisionService'][_0x73bd1b(0x514)](_0x4eaab8);this[_0x73bd1b(0x2ec)][_0x73bd1b(0x490)](_0x4eaab8,{'unitID':_0x4eaab8,'type':_0x415ddd,'awaitingChangeset':_0x49d697,'mutations':_0x5b5786,'rev':_0x2e5e4f}),this['_saveTaskMap'][_0x73bd1b(0x2bc)](_0x4eaab8)||this['_scheduleSaving'](_0x4eaab8);}[_0x364156(0x228)](_0x22b1f8){const _0x41cf16=_0x364156,_0x1caa23=this[_0x41cf16(0x411)]();_0x1caa23===0x0?this[_0x41cf16(0x3f9)](_0x22b1f8):this[_0x41cf16(0x54e)][_0x41cf16(0x490)](_0x22b1f8,setTimeout(()=>this['_saveCache'](_0x22b1f8),_0x1caa23));}[_0x364156(0x411)](){const _0x5efafa=_0x364156;var _0x251daa;return(_0x251daa=this[_0x5efafa(0x53e)][_0x5efafa(0x58b)](ft))!=null?_0x251daa:zt;}[_0x364156(0x3f9)](_0x383dbc){const _0x426f0c=_0x364156,_0x4a835e=this[_0x426f0c(0x54e)][_0x426f0c(0x3f4)](_0x383dbc);return _0x4a835e!==void 0x0&&window[_0x426f0c(0x3d7)](_0x4a835e),this['_localStorageService']['setItem'](ze(_0x383dbc),this[_0x426f0c(0x2ec)][_0x426f0c(0x3f4)](_0x383dbc))[_0x426f0c(0x541)](()=>this[_0x426f0c(0x54e)]['delete'](_0x383dbc));}async[_0x364156(0x3f7)](){const _0x309f30=_0x364156,_0x13c290=[];this[_0x309f30(0x54e)][_0x309f30(0x2b1)]((_0xf404e3,_0x3b928b)=>{const _0x345d13=_0x309f30;window[_0x345d13(0x3d7)](_0xf404e3),_0x13c290['push'](this[_0x345d13(0x3f9)](_0x3b928b)[_0x345d13(0x541)](()=>{const _0x5bfe21=_0x345d13;this[_0x5bfe21(0x54e)][_0x5bfe21(0x4b0)](_0x3b928b);}));}),await Promise[_0x309f30(0x409)](_0x13c290);}['_setupBeforeClosingHandler'](){const _0x1deba9=_0x364156;this[_0x1deba9(0x1e6)](this['_beforeCloseService'][_0x1deba9(0x4be)](()=>{const _0x48bab0=_0x1deba9;if(this['_saveTaskMap']['size'])return this[_0x48bab0(0x251)]['t'](_0x48bab0(0x4c7));}));}},exports[_0x364156(0x403)]=us([ie(0x0,a[_0x364156(0x36a)]),ie(0x1,a[_0x364156(0x2f5)]),ie(0x2,M['IBeforeCloseService']),ie(0x3,h['Inject'](a['LocaleService'])),ie(0x4,h[_0x364156(0x24e)](u[_0x364156(0x549)]))],exports[_0x364156(0x403)]);function ze(_0xb19835){const _0x518dce=_0x364156;return _0x518dce(0x54a)+_0xb19835;}const Ce=h[_0x364156(0x493)](_0x364156(0x51b));var Tt=(_0x27bd17=>(_0x27bd17[_0x27bd17['NO_OTHER_CLIENTS_EDITING']=0x0]=_0x364156(0x41a),_0x27bd17[_0x27bd17[_0x364156(0x579)]=0x1]=_0x364156(0x579),_0x27bd17))(Tt||{});const Ze=0x7530,Qe='ACTIVE_UNIT_EVENT_CHANNEL';class ds extends a['Disposable']{constructor(){const _0x29a498=_0x364156;super(),d(this,_0x29a498(0x2d5),a['Tools'][_0x29a498(0x57d)]()),d(this,_0x29a498(0x4c8),new Set()),d(this,'_unitOnClients',new Map()),d(this,_0x29a498(0x418),null),d(this,_0x29a498(0x278),new Map()),d(this,_0x29a498(0x2ae),new Map()),this[_0x29a498(0x477)]();}['dispose'](){const _0x291a26=_0x364156;super[_0x291a26(0x266)](),this[_0x291a26(0x278)][_0x291a26(0x2b1)]((_0x4b988d,_0x32586c)=>this['_removeClearOtherTimer'](_0x32586c)),this[_0x291a26(0x418)]&&window['clearInterval'](this[_0x291a26(0x418)]);}['getUnitStatus$'](_0x1a505b){const _0x506920=_0x364156;return this[_0x506920(0x44d)](_0x1a505b)[_0x506920(0x1f5)](g[_0x506920(0x2df)]());}[_0x364156(0x1f7)](_0x16f010){const _0x1a02b0=_0x364156;this[_0x1a02b0(0x4c8)][_0x1a02b0(0x2a1)]===0x0&&this['_scheduleHeartbeat'](),this[_0x1a02b0(0x4c8)][_0x1a02b0(0x2e0)](_0x16f010),this['_send']({'type':0x0,'memberID':this[_0x1a02b0(0x2d5)],'unitIDs':[_0x16f010],'isForwarded':!0x1});}[_0x364156(0x4bd)](_0x35ccec){const _0x4132de=_0x364156;this['_selfUnitIDs'][_0x4132de(0x4b0)](_0x35ccec),this[_0x4132de(0x4c8)][_0x4132de(0x2a1)]===0x0&&this[_0x4132de(0x418)]&&window[_0x4132de(0x36b)](this[_0x4132de(0x418)]);}['_init'](){const _0x14c232=_0x364156;this[_0x14c232(0x1e6)](a['toDisposable'](g[_0x14c232(0x29e)](window,'storage')[_0x14c232(0x4f5)](_0x2cded0=>{const _0x511b36=_0x14c232;if(_0x2cded0[_0x511b36(0x28e)]!==Qe||!_0x2cded0[_0x511b36(0x3b9)])return;const _0x21d4c0=JSON[_0x511b36(0x42a)](_0x2cded0[_0x511b36(0x3b9)]);this[_0x511b36(0x300)](_0x21d4c0);}))),window['addEventListener'](_0x14c232(0x3cb),()=>this[_0x14c232(0x279)]({'type':0x1,'memberID':this[_0x14c232(0x2d5)],'unitIDs':Array[_0x14c232(0x259)](this[_0x14c232(0x4c8)])}));}[_0x364156(0x300)](_0x308932){const _0x1b394a=_0x364156;switch(_0x308932['type']){case 0x0:this[_0x1b394a(0x24c)](_0x308932);break;case 0x1:this[_0x1b394a(0x557)](_0x308932);break;case 0x2:this['_handleHeartbeatEvent'](_0x308932);break;}}[_0x364156(0x24c)](_0x540326){const _0x2731da=_0x364156,{unitIDs:_0x616516,memberID:_0x489fd0,isForwarded:_0x557331}=_0x540326;_0x616516[_0x2731da(0x2b1)](_0x1bc2f0=>{const _0x1f79b6=_0x2731da;if(!_0x557331&&this[_0x1f79b6(0x4ed)][_0x1f79b6(0x2bc)](_0x1bc2f0)&&this['_ensureSubject'](_0x1bc2f0)['next'](0x1),!this[_0x1f79b6(0x4ed)][_0x1f79b6(0x2bc)](_0x1bc2f0)||!this[_0x1f79b6(0x4ed)][_0x1f79b6(0x3f4)](_0x1bc2f0)[_0x1f79b6(0x2bc)](_0x489fd0)){const _0x40844a=this['_unitOnClients'][_0x1f79b6(0x3f4)](_0x1bc2f0)||new Set();_0x40844a[_0x1f79b6(0x2e0)](_0x489fd0),this[_0x1f79b6(0x4ed)]['set'](_0x1bc2f0,_0x40844a),this['_scheduleClearOtherTimer'](_0x489fd0);}}),_0x557331||this[_0x2731da(0x279)]({'type':0x0,'memberID':this['_id'],'unitIDs':[...this[_0x2731da(0x4c8)]],'isForwarded':!0x0});}[_0x364156(0x538)](_0x546cf5){const _0x3aed25=_0x364156;this['_removeClearOtherTimer'](_0x546cf5);const _0x310401=window['setTimeout'](()=>{const _0xc82add=_0x17ba;this[_0xc82add(0x4ed)][_0xc82add(0x2b1)](_0x18abb9=>{const _0x37eb5b=_0xc82add;_0x18abb9[_0x37eb5b(0x4b0)](_0x546cf5);});},Ze*0x2);this[_0x3aed25(0x278)]['set'](_0x546cf5,_0x310401);}[_0x364156(0x226)](_0x459de2){const _0x77a382=_0x364156;if(this[_0x77a382(0x278)][_0x77a382(0x2bc)](_0x459de2)){const _0x4a6651=this[_0x77a382(0x278)]['get'](_0x459de2);_0x4a6651&&window[_0x77a382(0x3d7)](_0x4a6651),this[_0x77a382(0x278)]['set'](_0x459de2,null);}}['_handleLeaveEvent'](_0x213034){const _0x253d9d=_0x364156,{memberID:_0x4485a1,unitIDs:_0xce56c7}=_0x213034;_0xce56c7[_0x253d9d(0x2b1)](_0x51074a=>{const _0x35b63a=_0x253d9d;var _0x545275;const _0x2e8740=this[_0x35b63a(0x4ed)][_0x35b63a(0x3f4)](_0x51074a);_0x2e8740&&(_0x2e8740[_0x35b63a(0x4b0)](_0x4485a1),(_0x545275=this[_0x35b63a(0x44d)](_0x51074a))==null||_0x545275[_0x35b63a(0x1d2)](_0x2e8740['size']===0x0?0x0:0x1));}),this['_removeClearOtherTimer'](_0x4485a1);}[_0x364156(0x2b2)](_0x20e319){const _0x20be3d=_0x364156;this[_0x20be3d(0x538)](_0x20e319[_0x20be3d(0x4a0)]);}['_send'](_0x5de2b0){const _0x53fc07=_0x364156;localStorage[_0x53fc07(0x564)](Qe,JSON[_0x53fc07(0x2b6)](_0x5de2b0));}[_0x364156(0x460)](){const _0x3d5e52=_0x364156;this[_0x3d5e52(0x418)]=window['setInterval'](()=>{const _0x2607de=_0x3d5e52;this[_0x2607de(0x279)]({'type':0x2,'memberID':this[_0x2607de(0x2d5)]});},Ze);}['_ensureSubject'](_0x4eb086){const _0x162b2c=_0x364156;return this['_unitStatus']['has'](_0x4eb086)||this[_0x162b2c(0x2ae)][_0x162b2c(0x490)](_0x4eb086,new g['BehaviorSubject'](0x0)),this[_0x162b2c(0x2ae)][_0x162b2c(0x3f4)](_0x4eb086);}}var Ss=Object[_0x364156(0x53c)],vs=Object[_0x364156(0x55c)],gs=(_0x3f2f8b,_0x53a1dd,_0x2039fc,_0x397113)=>{const _0x3e75b8=_0x364156;for(var _0x415089=_0x397113>0x1?void 0x0:_0x397113?vs(_0x53a1dd,_0x2039fc):_0x53a1dd,_0x30d650=_0x3f2f8b[_0x3e75b8(0x37d)]-0x1,_0x5ea6a4;_0x30d650>=0x0;_0x30d650--)(_0x5ea6a4=_0x3f2f8b[_0x30d650])&&(_0x415089=(_0x397113?_0x5ea6a4(_0x53a1dd,_0x2039fc,_0x415089):_0x5ea6a4(_0x415089))||_0x415089);return _0x397113&&_0x415089&&Ss(_0x53a1dd,_0x2039fc,_0x415089),_0x415089;},et=(_0x4f1e44,_0x410575)=>(_0x2b907c,_0x2c487e)=>_0x410575(_0x2b907c,_0x2c487e,_0x4f1e44);let fe=class{constructor(_0x20eabf,_0xf806f9){const _0x572c24=_0x364156;this[_0x572c24(0x34f)]=_0x20eabf,this['_transformService']=_0xf806f9;}[_0x364156(0x3cc)](_0x4a3a40){const _0x1f0a7a=_0x364156;this[_0x1f0a7a(0x269)](_0x4a3a40),this[_0x1f0a7a(0x4d9)](_0x4a3a40);}[_0x364156(0x405)](_0x507002){const _0x506d48=_0x364156,_0x5c4140=this['_injector'][_0x506d48(0x3f4)](N[_0x506d48(0x580)]),{redoCache:_0x305940}=_0x5c4140[_0x506d48(0x1e2)]();if(_0x305940[_0x506d48(0x37d)]===0x0)return _0x507002;let _0x38c068=a['Tools']['deepClone'](_0x507002[_0x506d48(0x480)][0x0]);for(let _0x435248=0x0;_0x435248<_0x305940['length'];_0x435248++){const _0x3f3bf3={'id':'doc.mutation.rich-text-editing','params':{..._0x305940[_0x435248]}},_0x56b21b=this['_transformService'][_0x506d48(0x43d)](_0x38c068,_0x3f3bf3,!0x1);if(u['isTransformMutationFailure'](_0x56b21b))throw _0x56b21b['error'];_0x38c068=_0x56b21b['m1Prime'];}return{...a[_0x506d48(0x2f6)][_0x506d48(0x3c3)](_0x507002),'mutations':[_0x38c068]};}[_0x364156(0x269)](_0x5bf056){const _0x1607dd=_0x364156,_0x5cd63c=this[_0x1607dd(0x34f)][_0x1607dd(0x3f4)](N[_0x1607dd(0x580)]),{undoCache:_0x550c4f,redoCache:_0x49f7c7}=_0x5cd63c[_0x1607dd(0x1e2)]();if(_0x550c4f[_0x1607dd(0x37d)]===0x0||_0x49f7c7[_0x1607dd(0x37d)]===0x0)return;const _0x448f62=[],_0x24a8a=[];let _0x301d76=a[_0x1607dd(0x2f6)][_0x1607dd(0x3c3)](_0x5bf056[_0x1607dd(0x480)][0x0]),_0x5a82a6=a[_0x1607dd(0x2f6)]['deepClone'](_0x5bf056[_0x1607dd(0x480)][0x0]);for(let _0x15177=_0x550c4f[_0x1607dd(0x37d)]-0x1;_0x15177>=0x0;_0x15177--){const _0x4ea820={'id':_0x1607dd(0x4ef),'params':{..._0x550c4f[_0x15177]}},_0x27a056={'id':_0x1607dd(0x4ef),'params':{..._0x49f7c7[_0x15177]}},_0x3a8e5d=this['_transformService']['transformMutation'](_0x301d76,_0x4ea820,!0x1),_0x50e33f=this['_transformService'][_0x1607dd(0x43d)](_0x5a82a6,_0x27a056,!0x1);if(u['isTransformMutationFailure'](_0x3a8e5d))throw _0x3a8e5d['error'];if(u[_0x1607dd(0x345)](_0x50e33f))throw _0x50e33f[_0x1607dd(0x381)];_0x448f62[_0x1607dd(0x329)](_0x3a8e5d[_0x1607dd(0x304)][_0x1607dd(0x2a0)]),_0x24a8a[_0x1607dd(0x329)](_0x50e33f[_0x1607dd(0x304)][_0x1607dd(0x2a0)]),_0x301d76=_0x3a8e5d[_0x1607dd(0x41b)],_0x5a82a6=_0x50e33f[_0x1607dd(0x41b)];}_0x5cd63c[_0x1607dd(0x470)]({'undoCache':_0x448f62,'redoCache':_0x24a8a});}[_0x364156(0x4d9)](_0xbcd2f5){const _0x301c46=_0x364156,_0x1b1241=this[_0x301c46(0x34f)][_0x301c46(0x3f4)](N[_0x301c46(0x580)]),_0x8a3594=_0x1b1241[_0x301c46(0x206)]();if(_0x8a3594==null)return;const _0x2f0e13=[{'id':'doc.mutation.rich-text-editing','params':{'unitId':_0xbcd2f5[_0x301c46(0x1e9)],'actions':null,'textRanges':[_0x8a3594]}}],_0x45dbde=this['_transformService'][_0x301c46(0x3c0)](_0xbcd2f5,_0x2f0e13);if(!u[_0x301c46(0x468)](_0x45dbde))throw _0x45dbde[_0x301c46(0x381)];const _0x5bc8bb=_0x45dbde[_0x301c46(0x304)][0x0]['params']['textRanges'];Array['isArray'](_0x5bc8bb)&&_0x5bc8bb[_0x301c46(0x37d)]&&_0x1b1241['setActiveRange'](_0x5bc8bb[0x0]);}};fe=gs([et(0x0,h['Inject'](h[_0x364156(0x443)])),et(0x1,u[_0x364156(0x3d0)])],fe);var fs=Object[_0x364156(0x53c)],ms=Object['getOwnPropertyDescriptor'],Is=(_0x7a8e5a,_0x2369d5,_0x41703a,_0x476b09)=>{for(var _0x5033fc=_0x476b09>0x1?void 0x0:_0x476b09?ms(_0x2369d5,_0x41703a):_0x2369d5,_0xaed405=_0x7a8e5a['length']-0x1,_0x16d8e6;_0xaed405>=0x0;_0xaed405--)(_0x16d8e6=_0x7a8e5a[_0xaed405])&&(_0x5033fc=(_0x476b09?_0x16d8e6(_0x2369d5,_0x41703a,_0x5033fc):_0x16d8e6(_0x5033fc))||_0x5033fc);return _0x476b09&&_0x5033fc&&fs(_0x2369d5,_0x41703a,_0x5033fc),_0x5033fc;},tt=(_0x4ebbc9,_0x4e7f44)=>(_0x26ac2a,_0x3ead9f)=>_0x4e7f44(_0x26ac2a,_0x3ead9f,_0x4ebbc9);let me=class{constructor(_0x5dc206,_0x5e99dc){const _0x19ef85=_0x364156;this[_0x19ef85(0x34f)]=_0x5dc206,this[_0x19ef85(0x456)]=_0x5e99dc;}[_0x364156(0x3fe)](_0x1151cb){const _0x254a9d=_0x364156;var _0x385809;const _0xc8152f=this[_0x254a9d(0x34f)][_0x254a9d(0x3f4)](N['TextSelectionManagerService']),_0x36e219=(_0x385809=_0xc8152f[_0x254a9d(0x25c)]())!=null?_0x385809:[],_0x58c51c=_0x36e219==null?void 0x0:_0x36e219['map'](N['serializeTextRange']);if(_0x58c51c[_0x254a9d(0x37d)]===0x0)return;const _0x2d392d=[{'id':_0x254a9d(0x4ef),'params':{'unitId':_0x1151cb[_0x254a9d(0x1e9)],'actions':null,'textRanges':_0x58c51c}}],_0x325a3e=this[_0x254a9d(0x456)]['transformMutationsWithChangeset'](_0x1151cb,_0x2d392d);if(!u['isTransformMutationsWithChangesetSuccess'](_0x325a3e))throw _0x325a3e[_0x254a9d(0x381)];const _0x32ec4c=_0x325a3e[_0x254a9d(0x304)][0x0][_0x254a9d(0x2a0)][_0x254a9d(0x2eb)];Array[_0x254a9d(0x4d8)](_0x32ec4c)&&_0x32ec4c[_0x254a9d(0x37d)]&&_0xc8152f['replaceTextRanges'](_0x32ec4c,!0x1);}};me=Is([tt(0x0,h[_0x364156(0x24e)](h[_0x364156(0x443)])),tt(0x1,u[_0x364156(0x3d0)])],me);function Rt(_0x2b447){const _0x54cf9d=_0x364156;let _0x1feabe='';for(const _0x15621c of _0x2b447){const {startOffset:_0x45c342,endOffset:_0x92fb62,isActive:_0x59e29d}=_0x15621c;_0x1feabe[_0x54cf9d(0x37d)]&&(_0x1feabe+=','),_0x1feabe+=_0x45c342+':'+_0x92fb62+':'+(_0x59e29d?'1':'0');}return _0x1feabe;}function ps(_0x46d975){const _0x3800c3=_0x364156,_0x28cde6=_0x46d975[_0x3800c3(0x2bb)](','),_0x5d698e=[];for(const _0x4baeb5 of _0x28cde6){const [_0x32dc15,_0x2af31c,_0x4bc7be]=_0x4baeb5[_0x3800c3(0x2bb)](':');_0x5d698e[_0x3800c3(0x528)]({'startOffset':Number(_0x32dc15),'endOffset':Number(_0x2af31c),'collapsed':_0x32dc15===_0x2af31c,'isActive':_0x4bc7be==='1'});}return _0x5d698e[_0x3800c3(0x363)](_0x58c8ff=>_0x58c8ff['isActive'])||(_0x5d698e[0x0][_0x3800c3(0x38a)]=!0x0),_0x5d698e;}class Ge extends a[_0x364156(0x306)]{constructor(){const _0x43ec06=_0x364156;super(...arguments),d(this,_0x43ec06(0x277),new g['BehaviorSubject'](null)),d(this,_0x43ec06(0x455),this['_collabCursorState$'][_0x43ec06(0x485)]());}[_0x364156(0x2f1)](_0x4cd350){const _0x16cabd=_0x364156,{unitID:_0x4fc678,memberID:_0x47eb18,textRanges:_0x12b090}=_0x4cd350,_0x4186bf=Rt(_0x12b090),_0x771751={'unitID':_0x4fc678,'memberID':_0x47eb18,'selection':_0x4186bf};this[_0x16cabd(0x277)][_0x16cabd(0x1d2)](_0x771751);}}var Es=Object[_0x364156(0x53c)],Cs=Object[_0x364156(0x55c)],bs=(_0x4e261e,_0x20ad90,_0x8cda8b,_0x2b0e3f)=>{const _0x421b38=_0x364156;for(var _0x590d5a=_0x2b0e3f>0x1?void 0x0:_0x2b0e3f?Cs(_0x20ad90,_0x8cda8b):_0x20ad90,_0x29a962=_0x4e261e[_0x421b38(0x37d)]-0x1,_0x25dc05;_0x29a962>=0x0;_0x29a962--)(_0x25dc05=_0x4e261e[_0x29a962])&&(_0x590d5a=(_0x2b0e3f?_0x25dc05(_0x20ad90,_0x8cda8b,_0x590d5a):_0x25dc05(_0x590d5a))||_0x590d5a);return _0x2b0e3f&&_0x590d5a&&Es(_0x20ad90,_0x8cda8b,_0x590d5a),_0x590d5a;},st=(_0x16c98e,_0x275282)=>(_0x528119,_0x662cd9)=>_0x275282(_0x528119,_0x662cd9,_0x16c98e);function Ts(_0x86c080){const _0x404abb=_0x364156,{unitID:_0xe16bc9,mutations:_0x5f30c2}=_0x86c080;return{'unitId':_0xe16bc9,'subUnitId':_0x5f30c2[0x0]['params'][_0x404abb(0x4de)]};}let Ie=class{constructor(_0x37a092,_0x16f369){const _0x4f8e77=_0x364156;this[_0x4f8e77(0x34f)]=_0x37a092,this[_0x4f8e77(0x456)]=_0x16f369;}[_0x364156(0x3fe)](_0x445c0b){const _0xe1aa56=_0x364156;var _0x29157,_0x1a6f71,_0xd48f9c;const _0x2d22b2=this[_0xe1aa56(0x34f)][_0xe1aa56(0x3f4)](E[_0xe1aa56(0x3b2)]),{unitId:_0x525aa1,subUnitId:_0x6c5325}=Ts(_0x445c0b),_0x530f33=_0x2d22b2[_0xe1aa56(0x337)](_0x525aa1)['getCurrentSelections']();if(_0x530f33[_0xe1aa56(0x37d)]===0x0||!_0x525aa1||!_0x6c5325)return;const _0x54142d=[{'id':E[_0xe1aa56(0x231)]['id'],'params':{'unitId':_0x525aa1,'subUnitId':_0x6c5325,'selections':a[_0xe1aa56(0x2f6)]['deepClone'](_0x530f33)}}],_0x210b5a=this['_transformService'][_0xe1aa56(0x3c0)](_0x445c0b,_0x54142d);if(!u[_0xe1aa56(0x468)](_0x210b5a))throw _0x210b5a['error'];const _0x1980f4=(_0xd48f9c=(_0x1a6f71=(_0x29157=_0x210b5a['m2Prime'][0x0])==null?void 0x0:_0x29157[_0xe1aa56(0x2a0)])==null?void 0x0:_0x1a6f71['selections'])!=null?_0xd48f9c:_0x530f33;Array[_0xe1aa56(0x4d8)](_0x1980f4)&&_0x1980f4['length']&&this['_injector'][_0xe1aa56(0x3f4)](a[_0xe1aa56(0x542)])[_0xe1aa56(0x291)](E[_0xe1aa56(0x231)]['id'],{'unitId':_0x525aa1,'subUnitId':_0x6c5325,'selections':_0x1980f4});}};Ie=bs([st(0x0,h[_0x364156(0x24e)](h[_0x364156(0x443)])),st(0x1,u[_0x364156(0x3d0)])],Ie);function _0x17ba(_0x59a3ce,_0x377370){const _0x5d0e91=_0x5d0e();return _0x17ba=function(_0x17ba44,_0x586e15){_0x17ba44=_0x17ba44-0x1c4;let _0x37e4e5=_0x5d0e91[_0x17ba44];return _0x37e4e5;},_0x17ba(_0x59a3ce,_0x377370);}const Rs=new Set([E[_0x364156(0x2cf)]['id']]);function Os(_0x203f7f,_0x234aff,_0xf49605,_0x29bf68,_0x285632){const _0x24e819=_0x364156;var _0x3df133,_0x4762ad,_0x17394d,_0x2af014;const _0x161132=[];for(const _0x27edad of _0x203f7f)if(Rs[_0x24e819(0x2bc)](_0x27edad['id'])){if(_0x161132['length']>0x0)break;_0x161132['push'](_0x27edad);break;}else _0x161132[_0x24e819(0x528)](_0x27edad);const _0x260698=(_0x4762ad=(_0x3df133=_0x285632[_0x24e819(0x236)]())==null?void 0x0:_0x3df133['userID'])!=null?_0x4762ad:_0x24e819(0x54c),_0xaa4006=(_0x2af014=(_0x17394d=_0x285632[_0x24e819(0x236)]())==null?void 0x0:_0x17394d['memberID'])!=null?_0x2af014:'unknown';return{'changeset':{'unitID':_0x234aff,'type':u[_0x24e819(0x2ca)](_0xf49605[_0x24e819(0x563)](_0x234aff)),'baseRev':_0x29bf68[_0x24e819(0x514)](_0x234aff),'revision':0x0,'userID':_0x260698,'memberID':_0xaa4006,'mutations':_0x161132},'pendingMutations':_0x203f7f[_0x24e819(0x48f)](_0x161132[_0x24e819(0x37d)])};}function Ds(_0xa17a59,_0x52ca2f,_0x5e4eb8,_0x5e371d,_0x36b7a0){const _0x432f6c=_0x364156;var _0x46e89d,_0x477907,_0x456279,_0x5c2f68;const _0x3f2712=[_0xa17a59[_0x432f6c(0x257)]((_0x3b2c44,_0x5240fd)=>{const _0x5c6523=_0x432f6c;var _0x30c17d;const {id:_0x3d0548}=_0x3b2c44,{id:_0x3d5d99,type:_0x3db128}=_0x5240fd,_0x51e9e5=(_0x30c17d=_0x3b2c44[_0x5c6523(0x2a0)])!=null?_0x30c17d:{'actions':null},_0x2167d2=_0x5240fd[_0x5c6523(0x2a0)];if(_0x3d0548&&_0x3d0548!==_0x3d5d99)throw new Error('Cannot\x20assemble\x20a\x20changeset\x20from\x20multiple\x20mutations\x20of\x20different\x20types:\x20'+_0x3d0548+_0x5c6523(0x4ba)+_0x3d5d99+'.');return{..._0x3b2c44,'id':_0x3d5d99,'type':_0x3db128,'params':{'unitId':_0x2167d2[_0x5c6523(0x4c9)],'textRanges':_0x2167d2[_0x5c6523(0x2eb)],'actions':a['JSONX'][_0x5c6523(0x2a6)](_0x51e9e5[_0x5c6523(0x256)],_0x2167d2[_0x5c6523(0x256)])}};},{})],_0x97b039=(_0x477907=(_0x46e89d=_0x36b7a0[_0x432f6c(0x236)]())==null?void 0x0:_0x46e89d['userID'])!=null?_0x477907:_0x432f6c(0x54c),_0x2809df=(_0x5c2f68=(_0x456279=_0x36b7a0[_0x432f6c(0x236)]())==null?void 0x0:_0x456279[_0x432f6c(0x4a0)])!=null?_0x5c2f68:_0x432f6c(0x54c);return{'changeset':{'unitID':_0x52ca2f,'type':u[_0x432f6c(0x2ca)](_0x5e4eb8['getUnitType'](_0x52ca2f)),'baseRev':_0x5e371d[_0x432f6c(0x514)](_0x52ca2f),'revision':0x0,'userID':_0x97b039,'memberID':_0x2809df,'mutations':_0x3f2712},'pendingMutations':[]};}var Us=Object[_0x364156(0x53c)],Ps=Object['getOwnPropertyDescriptor'],K=(_0x2b32c0,_0x57af63,_0x3e01b8,_0x3bebfc)=>{const _0x44e953=_0x364156;for(var _0x49c715=_0x3bebfc>0x1?void 0x0:_0x3bebfc?Ps(_0x57af63,_0x3e01b8):_0x57af63,_0x9f395f=_0x2b32c0[_0x44e953(0x37d)]-0x1,_0x113c4b;_0x9f395f>=0x0;_0x9f395f--)(_0x113c4b=_0x2b32c0[_0x9f395f])&&(_0x49c715=(_0x3bebfc?_0x113c4b(_0x57af63,_0x3e01b8,_0x49c715):_0x113c4b(_0x49c715))||_0x49c715);return _0x3bebfc&&_0x49c715&&Us(_0x57af63,_0x3e01b8,_0x49c715),_0x49c715;},f=(_0x387cc0,_0x3b3954)=>(_0x36ad75,_0x4ef799)=>_0x3b3954(_0x36ad75,_0x4ef799,_0x387cc0),U=(_0x4fd7c9=>(_0x4fd7c9[_0x364156(0x2d6)]=_0x364156(0x3a8),_0x4fd7c9[_0x364156(0x311)]='synced',_0x4fd7c9[_0x364156(0x26f)]=_0x364156(0x245),_0x4fd7c9[_0x364156(0x272)]=_0x364156(0x3c9),_0x4fd7c9[_0x364156(0x547)]=_0x364156(0x2c2),_0x4fd7c9['FETCH_MISS']=_0x364156(0x4e6),_0x4fd7c9[_0x364156(0x49d)]=_0x364156(0x398),_0x4fd7c9['OFFLINE']=_0x364156(0x241),_0x4fd7c9))(U||{});class X{constructor(_0x4da707,_0x3578fb,_0x402146,_0x14ff61,_0x399178,_0x43acf6,_0x375795,_0x3b113d,_0x43359f){const _0x4342ac=_0x364156;d(this,_0x4342ac(0x1d3),null),d(this,_0x4342ac(0x47e),[]),(this[_0x4342ac(0x1e9)]=_0x4da707,this[_0x4342ac(0x451)]=_0x3578fb,this[_0x4342ac(0x50a)]=_0x399178,this[_0x4342ac(0x1e1)]=_0x43acf6,this[_0x4342ac(0x505)]=_0x375795,this[_0x4342ac(0x53a)]=_0x3b113d,this[_0x4342ac(0x520)]=_0x43359f,this[_0x4342ac(0x1d3)]=_0x402146,this['_pendingMutations']=_0x14ff61);}[_0x364156(0x221)](_0x424aac){const _0x31cd7f=_0x364156,_0x4b6d6f=this['_revisionService'][_0x31cd7f(0x514)](this[_0x31cd7f(0x1e9)]);return _0x424aac[_0x31cd7f(0x522)]>_0x4b6d6f+0x1?(this[_0x31cd7f(0x50a)][_0x31cd7f(0x1d1)]({'from':_0x4b6d6f,'to':_0x424aac[_0x31cd7f(0x522)]-0x1}),!0x0):!0x1;}[_0x364156(0x205)](_0x240941){const _0x2b0047=_0x364156;this[_0x2b0047(0x505)][_0x2b0047(0x21a)](this[_0x2b0047(0x1e9)],_0x240941);}[_0x364156(0x423)](_0x471669){const _0x5db48e=_0x364156;var _0x33e8fc,_0x19f608;(_0x19f608=(_0x33e8fc=this[_0x5db48e(0x50a)])[_0x5db48e(0x2ab)])==null||_0x19f608[_0x5db48e(0x275)](_0x33e8fc,_0x471669);}[_0x364156(0x3d8)](_0x2d7589){const _0x3b42f9=_0x364156;var _0x2cb15e,_0x5b25b;return(_0x5b25b=(_0x2cb15e=this['_handler'])[_0x3b42f9(0x446)])==null?void 0x0:_0x5b25b[_0x3b42f9(0x275)](_0x2cb15e,_0x2d7589);}['_transformRemoteChangesetByIMECache'](_0x4164e5){const _0x539975=_0x364156;var _0x26eff3,_0x3b7ce1,_0x7d2a69;return(_0x7d2a69=(_0x3b7ce1=(_0x26eff3=this['_handler'])['onTransformRemoteChangesetByIMECache'])==null?void 0x0:_0x3b7ce1[_0x539975(0x275)](_0x26eff3,_0x4164e5))!=null?_0x7d2a69:_0x4164e5;}['_syncEditingCollabCursor'](_0x1b94fa){const _0x11edeb=_0x364156;var _0x45ced1,_0x53a607;if(this[_0x11edeb(0x451)]===$[_0x11edeb(0x287)]){const {unitID:_0x203b11,mutations:_0x4fcad7,memberID:_0x323d65}=_0x1b94fa,_0x5d5fa0=_0x4fcad7[0x0][_0x11edeb(0x2a0)]['textRanges'];Array[_0x11edeb(0x4d8)](_0x5d5fa0)&&_0x5d5fa0[_0x11edeb(0x37d)]>0x0&&((_0x53a607=(_0x45ced1=this[_0x11edeb(0x50a)])[_0x11edeb(0x2d1)])==null||_0x53a607[_0x11edeb(0x275)](_0x45ced1,{'unitID':_0x203b11,'memberID':_0x323d65,'textRanges':_0x5d5fa0}));}}['_updateLocalCache'](){const _0x4e1234=_0x364156;this['_localCacheService'][_0x4e1234(0x2a3)](this['unitID'],this[_0x4e1234(0x451)],this['_awaitingChangeset'],this[_0x4e1234(0x47e)]);}[_0x364156(0x469)](){const _0x1e9608=_0x364156;return this[_0x1e9608(0x53a)][_0x1e9608(0x514)](this[_0x1e9608(0x1e9)]);}[_0x364156(0x1dc)](){const _0x36b777=_0x364156;this[_0x36b777(0x53a)][_0x36b777(0x1f3)](this['unitID']);}[_0x364156(0x2e7)](_0x39a5d0){const _0x48e2e3=_0x364156;var _0x4dfc6b;const _0x88b9b2=this[_0x48e2e3(0x318)](_0x39a5d0),_0x4fb253=a[_0x48e2e3(0x4c5)](_0x88b9b2[_0x48e2e3(0x480)],this[_0x48e2e3(0x1e1)],{'fromCollab':!0x0});if(!_0x4fb253['result'])throw _0x4fb253[_0x48e2e3(0x381)]instanceof Error?_0x4fb253[_0x48e2e3(0x381)]:new Error((_0x4dfc6b=_0x4fb253[_0x48e2e3(0x381)])!=null?_0x4dfc6b:_0x48e2e3(0x2ee));this[_0x48e2e3(0x3d8)](_0x88b9b2),this[_0x48e2e3(0x205)](_0x39a5d0),this[_0x48e2e3(0x423)](_0x88b9b2),this[_0x48e2e3(0x4e1)](_0x88b9b2),this['_incrementRevisionNumber']();}}let ce=class extends X{constructor(_0x49e999,_0x483724,_0x5825c5,_0x4723c3,_0x20d6cf,_0x1182ef,_0x259d1c,_0x3814d1,_0xf2b96e){const _0x998c65=_0x364156;super(_0x49e999,_0x483724,null,[],_0x5825c5,_0x3814d1,_0x259d1c,_0x4723c3,_0x20d6cf),d(this,_0x998c65(0x1d4),_0x998c65(0x417)),(this['_injector']=_0x1182ef,this[_0x998c65(0x3f3)]=_0xf2b96e);}[_0x364156(0x319)](_0x1b9a40){const _0xbd51e6=_0x364156,_0x4aa477=this[_0xbd51e6(0x34f)]['createInstance'](j,this[_0xbd51e6(0x1e9)],this[_0xbd51e6(0x451)],[_0x1b9a40],this[_0xbd51e6(0x50a)]);return _0x4aa477['_schedule'](),_0x4aa477['_updateLocalCache'](),_0x4aa477;}['onRemoteChangeset'](_0x577021){const _0x329742=_0x364156;if(this[_0x329742(0x221)](_0x577021))return this[_0x329742(0x34f)]['createInstance'](x,this[_0x329742(0x1e9)],this['type'],null,[],null,[_0x577021],this[_0x329742(0x50a)]);try{return this[_0x329742(0x2e7)](_0x577021),this;}catch(_0x1e70de){return this['_logService']['error'](_0x329742(0x3d2),_0x1e70de),this;}}[_0x364156(0x2fc)](){throw new Error('[SyncedState]:\x20received\x20acknowledgement.');}[_0x364156(0x51f)](){throw new Error('[SyncedState]:\x20received\x20rejection.');}[_0x364156(0x484)](){const _0xd7aee9=_0x364156;return this['_injector']['createInstance'](B,this['unitID'],this[_0xd7aee9(0x451)],null,[],this['_handler']);}[_0x364156(0x2a5)](){return this;}['resend'](){const _0x50ce10=_0x364156;throw new Error(_0x50ce10(0x408));}};ce=K([f(0x3,h[_0x364156(0x24e)](u[_0x364156(0x549)])),f(0x4,h[_0x364156(0x24e)](exports[_0x364156(0x403)])),f(0x5,h[_0x364156(0x24e)](h[_0x364156(0x443)])),f(0x6,a[_0x364156(0x3ab)]),f(0x7,a['ICommandService']),f(0x8,a[_0x364156(0x476)])],ce);let j=class extends X{constructor(_0x885126,_0x3cb894,_0x33559c,_0x7c8dd3,_0x20d534,_0x1e5246,_0x17a1d9,_0x38a583,_0xaa6a5,_0x9a5ea2,_0x1e19a5,_0x419d63,_0x9fb8c,_0x3f9182){const _0x2560ef=_0x364156;super(_0x885126,_0x3cb894,null,_0x33559c,_0x7c8dd3,_0x9a5ea2,_0x3f9182,_0x1e5246,_0x17a1d9),d(this,'status',_0x2560ef(0x245)),d(this,_0x2560ef(0x317),null),d(this,_0x2560ef(0x568),null),(this[_0x2560ef(0x34f)]=_0x20d534,this[_0x2560ef(0x302)]=_0x38a583,this[_0x2560ef(0x3f3)]=_0xaa6a5,this['_configService']=_0x1e19a5,this['_transformService']=_0x419d63,this[_0x2560ef(0x53b)]=_0x9fb8c);}[_0x364156(0x319)](_0x353150){const _0x3e6862=_0x364156;return this[_0x3e6862(0x47e)][_0x3e6862(0x528)](_0x353150),this[_0x3e6862(0x3e6)](),this;}[_0x364156(0x220)](_0x38e518){const _0x3b34eb=_0x364156;if(this['_checkMissing'](_0x38e518))return this[_0x3b34eb(0x4ce)](),this[_0x3b34eb(0x34f)][_0x3b34eb(0x1c6)](x,this['unitID'],this['type'],null,this['_pendingMutations'],null,[_0x38e518],this[_0x3b34eb(0x50a)]);try{const _0x382b92=this[_0x3b34eb(0x456)]['transformMutationsWithChangeset'](_0x38e518,this[_0x3b34eb(0x47e)]);if(u['isTransformMutationsWithChangesetSuccess'](_0x382b92)){const {c1Prime:_0x9cf630,m2Prime:_0x27d0bc}=_0x382b92;this['_executeRemoteChangeset'](_0x9cf630);const _0x32338d=this[_0x3b34eb(0x34f)]['createInstance'](j,this['unitID'],this[_0x3b34eb(0x451)],_0x27d0bc,this[_0x3b34eb(0x50a)]);return this[_0x3b34eb(0x4ce)](),_0x32338d[_0x3b34eb(0x436)](this[_0x3b34eb(0x317)]?Math[_0x3b34eb(0x361)](0x0,new Date()[_0x3b34eb(0x1f0)]()-this[_0x3b34eb(0x317)]):this['_getSendChangesetTimeout']()),_0x32338d;}throw _0x382b92[_0x3b34eb(0x381)];}catch(_0x5dcf89){return this[_0x3b34eb(0x3f3)][_0x3b34eb(0x381)](_0x5dcf89),this['_onConflict'](!0x1);}}['onRemoteAck'](){throw new Error('[PendingState]:\x20received\x20acknowledgement.');}[_0x364156(0x51f)](){const _0xf5a90c=_0x364156;throw new Error(_0xf5a90c(0x328));}[_0x364156(0x484)](){const _0x2cac8e=_0x364156;return this[_0x2cac8e(0x4ce)](),this[_0x2cac8e(0x34f)][_0x2cac8e(0x1c6)](B,this['unitID'],this[_0x2cac8e(0x451)],null,this[_0x2cac8e(0x47e)],this[_0x2cac8e(0x50a)]);}[_0x364156(0x2a5)](){return this;}['_schedule'](_0x35d2f0){const _0xf731db=_0x364156;_0x35d2f0=_0x35d2f0!=null?_0x35d2f0:this['_getSendChangesetTimeout'](),this['_scheduleTimestamp']=new Date()['getTime'](),this[_0xf731db(0x568)]=setTimeout(()=>{const _0x74ac5e=_0xf731db;this['_clearScheduledTask']();let _0x2daf62=null;switch(this[_0x74ac5e(0x451)]){case $[_0x74ac5e(0x350)]:{_0x2daf62=Os(this[_0x74ac5e(0x47e)],this[_0x74ac5e(0x1e9)],this[_0x74ac5e(0x53b)],this[_0x74ac5e(0x53a)],this[_0x74ac5e(0x302)]);break;}case $[_0x74ac5e(0x287)]:{_0x2daf62=Ds(this[_0x74ac5e(0x47e)],this[_0x74ac5e(0x1e9)],this[_0x74ac5e(0x53b)],this[_0x74ac5e(0x53a)],this[_0x74ac5e(0x302)]);break;}default:throw new Error('[PendingState]:\x20unhandled\x20univer\x20type:\x20'+this[_0x74ac5e(0x451)]+'\x20in\x20_schedule.');}const {changeset:_0x300520,pendingMutations:_0x4dba98}=_0x2daf62;this['_handler'][_0x74ac5e(0x26a)](_0x300520);const _0x57c662=_0x4dba98['length']?this[_0x74ac5e(0x34f)][_0x74ac5e(0x1c6)](H,this[_0x74ac5e(0x1e9)],this['type'],_0x300520,_0x4dba98,this[_0x74ac5e(0x50a)]):this[_0x74ac5e(0x34f)][_0x74ac5e(0x1c6)](k,this[_0x74ac5e(0x1e9)],this[_0x74ac5e(0x451)],_0x300520,this['_handler']);_0x57c662[_0x74ac5e(0x3e6)](),this[_0x74ac5e(0x50a)][_0x74ac5e(0x1fd)](this,_0x57c662);},_0x35d2f0);}[_0x364156(0x383)](){const _0x3671b2=_0x364156;var _0x43acda;return(_0x43acda=this[_0x3671b2(0x53e)][_0x3671b2(0x58b)](dt))!=null?_0x43acda:Wt;}['resend'](){const _0x5a19ca=_0x364156;throw new Error(_0x5a19ca(0x57b));}[_0x364156(0x4ce)](){const _0x1bdb1c=_0x364156;this[_0x1bdb1c(0x568)]!=null&&(clearTimeout(this[_0x1bdb1c(0x568)]),this['_sendingTimer']=null);}['_onConflict'](_0x23160c){const _0x3f9e60=_0x364156;return this[_0x3f9e60(0x4ce)](),this[_0x3f9e60(0x34f)][_0x3f9e60(0x1c6)](Y,this[_0x3f9e60(0x1e9)],this['type'],null,this[_0x3f9e60(0x47e)],this[_0x3f9e60(0x50a)],_0x23160c);}};j=K([f(0x4,h[_0x364156(0x24e)](h['Injector'])),f(0x5,h[_0x364156(0x24e)](u[_0x364156(0x549)])),f(0x6,h[_0x364156(0x24e)](exports[_0x364156(0x403)])),f(0x7,h[_0x364156(0x24e)](G)),f(0x8,a['ILogService']),f(0x9,a[_0x364156(0x542)]),f(0xa,a[_0x364156(0x36a)]),f(0xb,u[_0x364156(0x3d0)]),f(0xc,a[_0x364156(0x58c)]),f(0xd,a[_0x364156(0x3ab)])],j);let k=class extends X{constructor(_0x1f10cb,_0x2a32fd,_0x1e0187,_0x1f1242,_0x1172a8,_0x98887f,_0x2ae24e,_0x2148c6,_0x7eb216,_0x57bb6e,_0x129659){const _0x3fe8f1=_0x364156;super(_0x1f10cb,_0x2a32fd,_0x1e0187,[],_0x1f1242,_0x2148c6,_0x129659,_0x98887f,_0x2ae24e),d(this,_0x3fe8f1(0x1d4),'awaiting'),(this[_0x3fe8f1(0x34f)]=_0x1172a8,this[_0x3fe8f1(0x3f3)]=_0x7eb216,this[_0x3fe8f1(0x456)]=_0x57bb6e);}[_0x364156(0x319)](_0xface23){const _0x130399=_0x364156,_0x413e62=this[_0x130399(0x34f)][_0x130399(0x1c6)](H,this[_0x130399(0x1e9)],this[_0x130399(0x451)],this[_0x130399(0x1d3)],[_0xface23],this['_handler']);return _0x413e62[_0x130399(0x3e6)](),_0x413e62;}[_0x364156(0x220)](_0x37abed){const _0x145783=_0x364156;if(this[_0x145783(0x221)](_0x37abed))return this[_0x145783(0x34f)][_0x145783(0x1c6)](x,this['unitID'],this[_0x145783(0x451)],this[_0x145783(0x1d3)],[],null,[_0x37abed],this[_0x145783(0x50a)]);try{const _0x153d21=this[_0x145783(0x456)][_0x145783(0x25a)]([_0x37abed],[this[_0x145783(0x1d3)]],!0x1);if(u['isTransformChangesetsSuccess'](_0x153d21)){const {c1Prime:_0x4b85b6,c2Prime:_0x4c0a08}=_0x153d21;this['_executeRemoteChangeset'](_0x4b85b6[0x0]),_0x4c0a08[0x0][_0x145783(0x447)]=this[_0x145783(0x469)]();const _0x28ee68=this[_0x145783(0x34f)][_0x145783(0x1c6)](k,this['unitID'],this[_0x145783(0x451)],_0x4c0a08[0x0],this[_0x145783(0x50a)]);return _0x28ee68['_updateLocalCache'](),_0x28ee68;}return this[_0x145783(0x46f)](!0x1);}catch(_0x3fa3b0){return this['_logService'][_0x145783(0x381)](_0x3fa3b0),this[_0x145783(0x46f)](!0x1);}}['onRemoteAck'](_0x34fa5b){const _0x4909f2=_0x364156,_0x241aaa=this[_0x4909f2(0x53a)]['getCurrentRevForDocument'](this[_0x4909f2(0x1e9)]);if(_0x34fa5b['revision']<_0x241aaa-0x1)return this;if(this[_0x4909f2(0x221)](_0x34fa5b))return this[_0x4909f2(0x34f)]['createInstance'](x,this['unitID'],this[_0x4909f2(0x451)],null,[],this[_0x4909f2(0x1d3)],[],this[_0x4909f2(0x50a)]);this[_0x4909f2(0x1dc)]();const _0x37a2bb=this[_0x4909f2(0x34f)]['createInstance'](ce,this[_0x4909f2(0x1e9)],this[_0x4909f2(0x451)],this['_handler']);return _0x37a2bb['_updateLocalCache'](),_0x37a2bb;}['onRemoteRej'](_0x12d711){const _0xad915d=_0x364156;return this[_0xad915d(0x46f)](!!(_0x12d711!=null&&_0x12d711['isPermissionRej']));}[_0x364156(0x484)](){const _0x55c6bc=_0x364156;return this['_injector']['createInstance'](B,this[_0x55c6bc(0x1e9)],this['type'],this[_0x55c6bc(0x1d3)],[],this['_handler']);}['toggleOnline'](){return this;}[_0x364156(0x1fa)](){const _0x4843fa=_0x364156;this[_0x4843fa(0x50a)]['onSendChangeset'](this[_0x4843fa(0x1d3)]);}[_0x364156(0x46f)](_0x2baa37){const _0xf37b9c=_0x364156;return this['_injector'][_0xf37b9c(0x1c6)](Y,this[_0xf37b9c(0x1e9)],this['type'],this[_0xf37b9c(0x1d3)],[],this['_handler'],_0x2baa37);}};k=K([f(0x4,h[_0x364156(0x24e)](h[_0x364156(0x443)])),f(0x5,h[_0x364156(0x24e)](u[_0x364156(0x549)])),f(0x6,h['Inject'](exports['LocalCacheService'])),f(0x7,a[_0x364156(0x542)]),f(0x8,a[_0x364156(0x476)]),f(0x9,u[_0x364156(0x3d0)]),f(0xa,a[_0x364156(0x3ab)])],k);let H=class extends X{constructor(_0x9e836d,_0x1bd637,_0x8011ee,_0x29de9b,_0x4eb24d,_0x20cbb2,_0x357ee8,_0x51aa0f,_0x1a06ef,_0x97f0e9,_0x49f2c2,_0x281220){const _0x23b224=_0x364156;super(_0x9e836d,_0x1bd637,_0x8011ee,_0x29de9b,_0x4eb24d,_0x1a06ef,_0x281220,_0x357ee8,_0x51aa0f),d(this,_0x23b224(0x1d4),_0x23b224(0x2c2)),(this[_0x23b224(0x34f)]=_0x20cbb2,this[_0x23b224(0x3f3)]=_0x97f0e9,this[_0x23b224(0x456)]=_0x49f2c2);}[_0x364156(0x319)](_0x227440){const _0x5c2cf0=_0x364156;return this['_pendingMutations'][_0x5c2cf0(0x528)](_0x227440),this;}[_0x364156(0x220)](_0x38d5bb){const _0x3b1255=_0x364156;if(this[_0x3b1255(0x221)](_0x38d5bb))return this[_0x3b1255(0x34f)][_0x3b1255(0x1c6)](x,this[_0x3b1255(0x1e9)],this[_0x3b1255(0x451)],this[_0x3b1255(0x1d3)],this[_0x3b1255(0x47e)],null,[_0x38d5bb],this[_0x3b1255(0x50a)]);try{const _0x229d28=this[_0x3b1255(0x456)]['transformChangesets']([_0x38d5bb],[this['_awaitingChangeset']],!0x1);if(u['isTransformChangesetsSuccess'](_0x229d28)){const {c1Prime:_0xbb33cf,c2Prime:_0x167ed8}=_0x229d28,_0x3e11e4=this['_transformService'][_0x3b1255(0x3c0)](_0xbb33cf[0x0],this[_0x3b1255(0x47e)]);if(u['isTransformMutationsWithChangesetSuccess'](_0x3e11e4)){const {c1Prime:_0x401452,m2Prime:_0x1a5ec0}=_0x3e11e4;return this[_0x3b1255(0x2e7)](_0x401452),_0x167ed8[0x0][_0x3b1255(0x447)]=this[_0x3b1255(0x469)](),this[_0x3b1255(0x34f)][_0x3b1255(0x1c6)](H,this['unitID'],this[_0x3b1255(0x451)],_0x167ed8[0x0],_0x1a5ec0,this['_handler']);}throw _0x3e11e4[_0x3b1255(0x381)];}throw _0x229d28[_0x3b1255(0x381)];}catch(_0x409f07){return this['_logService'][_0x3b1255(0x381)](_0x409f07),this[_0x3b1255(0x46f)](!0x1);}}[_0x364156(0x2fc)](_0xaa6fc0){const _0xc649ad=_0x364156;if(this['_checkMissing'](_0xaa6fc0))return this[_0xc649ad(0x34f)][_0xc649ad(0x1c6)](x,this['unitID'],this['type'],null,this[_0xc649ad(0x47e)],this[_0xc649ad(0x1d3)],[],this[_0xc649ad(0x50a)]);this['_incrementRevisionNumber']();const _0x4ed8b5=this[_0xc649ad(0x34f)]['createInstance'](j,this['unitID'],this[_0xc649ad(0x451)],this[_0xc649ad(0x47e)],this['_handler']);return _0x4ed8b5[_0xc649ad(0x436)](),_0x4ed8b5['_updateLocalCache'](),_0x4ed8b5;}[_0x364156(0x51f)](_0x222bda){const _0x21ac3b=_0x364156;return this['_onConflict'](!!(_0x222bda!=null&&_0x222bda[_0x21ac3b(0x3db)]));}['toggleOffline'](){const _0x467582=_0x364156;return this[_0x467582(0x34f)][_0x467582(0x1c6)](B,this['unitID'],this['type'],this['_awaitingChangeset'],this[_0x467582(0x47e)],this[_0x467582(0x50a)]);}[_0x364156(0x2a5)](){return this;}[_0x364156(0x1fa)](){const _0x279b45=_0x364156;this[_0x279b45(0x50a)][_0x279b45(0x26a)](this['_awaitingChangeset']);}[_0x364156(0x46f)](_0x48140e){const _0x3501cc=_0x364156;return this['_injector']['createInstance'](Y,this['unitID'],this[_0x3501cc(0x451)],null,this[_0x3501cc(0x47e)],this[_0x3501cc(0x50a)],_0x48140e);}};H=K([f(0x5,h[_0x364156(0x24e)](h[_0x364156(0x443)])),f(0x6,h['Inject'](u['RevisionService'])),f(0x7,h[_0x364156(0x24e)](exports['LocalCacheService'])),f(0x8,a[_0x364156(0x542)]),f(0x9,a[_0x364156(0x476)]),f(0xa,u[_0x364156(0x3d0)]),f(0xb,a[_0x364156(0x3ab)])],H);let Y=class extends X{constructor(_0x5a0904,_0x48334a,_0x12d846,_0x27aebf,_0x5518b9,_0x57ff5c=!0x1,_0x546caf,_0x2d53ff,_0x3307a0,_0x1f2b78,_0x55713c,_0x1f472d,_0x4cef72){const _0x5609fa=_0x364156;super(_0x5a0904,_0x48334a,_0x12d846,_0x27aebf,_0x5518b9,_0x2d53ff,_0x3307a0,_0x55713c,_0x1f2b78),d(this,_0x5609fa(0x1d4),_0x5609fa(0x398)),(this[_0x5609fa(0x37c)]=_0x57ff5c,this[_0x5609fa(0x1e5)]=_0x546caf,this[_0x5609fa(0x251)]=_0x1f472d,this['_notificationService']=_0x4cef72,this[_0x5609fa(0x2d9)](),this[_0x5609fa(0x2f8)](),this[_0x5609fa(0x458)]());}[_0x364156(0x319)](){return this;}[_0x364156(0x220)](){return this;}[_0x364156(0x2fc)](){return this;}[_0x364156(0x51f)](){return this;}[_0x364156(0x484)](){return this;}[_0x364156(0x2a5)](){return this;}[_0x364156(0x1fa)](){const _0x3bb83=_0x364156;throw new Error(_0x3bb83(0x501));}[_0x364156(0x2f8)](){const _0x4dda7f=_0x364156;this[_0x4dda7f(0x520)]['updateOfflineData'](this[_0x4dda7f(0x1e9)],this[_0x4dda7f(0x451)],null,[]);}['_showConflictNotification'](){const _0x42d023=_0x364156;this[_0x42d023(0x37c)]?this['_notificationService'][_0x42d023(0x3f0)]({'title':this[_0x42d023(0x251)]['t']('permission.title'),'content':this[_0x42d023(0x251)]['t']('permission.content'),'type':_0x42d023(0x381),'duration':0x0}):this[_0x42d023(0x4fb)][_0x42d023(0x3f0)]({'title':this[_0x42d023(0x251)]['t']('conflict.title'),'content':this[_0x42d023(0x251)]['t'](_0x42d023(0x4c3)),'type':_0x42d023(0x381),'duration':0x0});}[_0x364156(0x458)](){const _0x4226ef=_0x364156;this['_permissionService']['updatePermissionPoint'](new E['WorkbookEditablePermission'](this[_0x4226ef(0x1e9)])['id'],!0x1);}};Y=K([f(0x6,h[_0x364156(0x24e)](a[_0x364156(0x3f8)])),f(0x7,a[_0x364156(0x542)]),f(0x8,a[_0x364156(0x3ab)]),f(0x9,h[_0x364156(0x24e)](exports['LocalCacheService'])),f(0xa,h['Inject'](u[_0x364156(0x549)])),f(0xb,h[_0x364156(0x24e)](a[_0x364156(0x1fb)])),f(0xc,M[_0x364156(0x264)])],Y);let B=class extends X{constructor(_0x1cc7df,_0xcecc4e,_0x406b72,_0xb8461a,_0x194d82,_0x2834ba,_0x14818a,_0x4b2a77,_0x2b5323,_0x1185c2){const _0x522042=_0x364156;super(_0x1cc7df,_0xcecc4e,_0x406b72,_0xb8461a,_0x194d82,_0x2b5323,_0x1185c2,_0x14818a,_0x4b2a77),d(this,'status',_0x522042(0x241)),this['_injector']=_0x2834ba;}[_0x364156(0x319)](_0x3f48b6){const _0x1df83b=_0x364156;return this[_0x1df83b(0x47e)][_0x1df83b(0x528)](_0x3f48b6),this[_0x1df83b(0x3e6)](),this;}[_0x364156(0x220)](_0x3d56ed){const _0x6f30e3=_0x364156;throw new Error(_0x6f30e3(0x448));}['onRemoteAck'](){const _0xa7231d=_0x364156;throw new Error(_0xa7231d(0x30d));}[_0x364156(0x51f)](){const _0x5748dd=_0x364156;throw new Error(_0x5748dd(0x2d3));}['toggleOffline'](){return this;}['toggleOnline'](){const _0x288b7e=_0x364156,{_injector:_0x18bd92,_pendingMutations:_0xed6a10,_awaitingChangeset:_0x2f64f3,unitID:_0x236b24,_handler:_0x123093,type:_0x584c72}=this,_0x46647c=Ot(_0x18bd92,_0x236b24,_0x584c72,_0x2f64f3,_0xed6a10,_0x123093);return _0x46647c instanceof j?_0x46647c['_schedule']():(_0x46647c instanceof H||_0x46647c instanceof k)&&_0x46647c[_0x288b7e(0x1fa)](),_0x46647c;}[_0x364156(0x1fa)](){const _0x298705=_0x364156;throw new Error(_0x298705(0x4cb));}};B=K([f(0x5,h[_0x364156(0x24e)](h[_0x364156(0x443)])),f(0x6,h[_0x364156(0x24e)](u['RevisionService'])),f(0x7,h[_0x364156(0x24e)](exports[_0x364156(0x403)])),f(0x8,a[_0x364156(0x542)]),f(0x9,a[_0x364156(0x3ab)])],B);let x=class extends X{constructor(_0x1decbf,_0x3d5566,_0x57a680,_0x514ebc,_0x4985b7,_0x2d97ee,_0x481ea6,_0x38e614,_0x14d149,_0x4119f5,_0x4cef22,_0x409051,_0x441f1b,_0x20f2b5){const _0x210c0a=_0x364156;super(_0x1decbf,_0x3d5566,_0x57a680,_0x514ebc,_0x481ea6,_0x409051,_0x441f1b,_0x14d149,_0x4119f5),d(this,_0x210c0a(0x1d4),'fetch_missing'),(this[_0x210c0a(0x4ea)]=_0x4985b7,this[_0x210c0a(0x203)]=_0x2d97ee,this[_0x210c0a(0x34f)]=_0x38e614,this[_0x210c0a(0x3f3)]=_0x4cef22,this[_0x210c0a(0x456)]=_0x20f2b5);}[_0x364156(0x466)](_0xb92b94){const _0xca831=_0x364156;try{const _0x2be4a0=[..._0xb92b94,...this['_queuedRemoteChangesets']],_0x342682=[this[_0xca831(0x1d3)]||this['_acknowledgedAwaitingChangeset']]['filter'](_0x192a9c=>!!_0x192a9c);let _0x549428,_0x2b9f32;if(_0x342682[_0xca831(0x37d)]){const _0x38a4e6=this[_0xca831(0x456)][_0xca831(0x25a)](_0x2be4a0,_0x342682,!0x1);if(!u[_0xca831(0x46d)](_0x38a4e6))throw _0x38a4e6[_0xca831(0x381)];_0x549428=_0x38a4e6[_0xca831(0x481)],_0x2b9f32=_0x38a4e6[_0xca831(0x44c)];}else _0x549428=_0x2be4a0,_0x2b9f32=[];let _0x3b3507=this[_0xca831(0x47e)];_0x549428['forEach'](_0x36f785=>{const _0x21eff0=_0xca831;let _0x434779;if(_0x3b3507[_0x21eff0(0x37d)]){const _0x811767=this[_0x21eff0(0x456)]['transformMutationsWithChangeset'](_0x36f785,_0x3b3507);if(!u[_0x21eff0(0x468)](_0x811767))throw _0x811767[_0x21eff0(0x381)];_0x434779=_0x811767[_0x21eff0(0x481)],_0x3b3507=_0x811767['m2Prime'];}else _0x434779=_0x36f785;this[_0x21eff0(0x2e7)](_0x434779);}),this[_0xca831(0x4ea)]&&this[_0xca831(0x1dc)](),this['_awaitingChangeset']&&_0x2b9f32[_0xca831(0x37d)]&&(_0x2b9f32[0x0][_0xca831(0x447)]=this['_getCurrentRevision']());let _0x4fa79e;if(this[_0xca831(0x1d3)]&&_0x3b3507[_0xca831(0x37d)]!==0x0)_0x4fa79e=this[_0xca831(0x34f)][_0xca831(0x1c6)](H,this[_0xca831(0x1e9)],this[_0xca831(0x451)],_0x2b9f32[0x0],_0x3b3507,this[_0xca831(0x50a)]);else{if(this[_0xca831(0x1d3)]&&_0x3b3507[_0xca831(0x37d)]===0x0)_0x2b9f32[0x0][_0xca831(0x447)]=this[_0xca831(0x469)](),_0x4fa79e=this[_0xca831(0x34f)]['createInstance'](k,this[_0xca831(0x1e9)],this[_0xca831(0x451)],_0x2b9f32[0x0],this[_0xca831(0x50a)]);else{if(_0x3b3507[_0xca831(0x37d)]!==0x0){const _0x121f2d=this[_0xca831(0x34f)][_0xca831(0x1c6)](j,this[_0xca831(0x1e9)],this[_0xca831(0x451)],_0x3b3507,this[_0xca831(0x50a)]);_0x121f2d['_schedule'](),_0x4fa79e=_0x121f2d;}else _0x4fa79e=this[_0xca831(0x34f)][_0xca831(0x1c6)](ce,this[_0xca831(0x1e9)],this[_0xca831(0x451)],this[_0xca831(0x50a)]);}}return _0x4fa79e[_0xca831(0x3e6)](),_0x4fa79e;}catch(_0xc2eeed){return this[_0xca831(0x3f3)][_0xca831(0x381)](_0xca831(0x384),'failed\x20to\x20apply\x20missed\x20changesets!',_0xc2eeed),this['_injector']['createInstance'](Y,this[_0xca831(0x1e9)],this['type'],this['_awaitingChangeset'],this[_0xca831(0x47e)],this[_0xca831(0x50a)],!0x1);}}['resend'](){const _0x397304=_0x364156;throw new Error(_0x397304(0x55a));}['appendMutation'](_0x3348e2){const _0x41e34a=_0x364156;return this[_0x41e34a(0x47e)][_0x41e34a(0x528)](_0x3348e2),this;}[_0x364156(0x220)](_0x724b64){const _0x29ac15=_0x364156;return this[_0x29ac15(0x203)][_0x29ac15(0x528)](_0x724b64),this;}[_0x364156(0x2fc)](_0x1127cb){const _0x34b791=_0x364156;if(this[_0x34b791(0x1d3)])return this[_0x34b791(0x4ea)]=this[_0x34b791(0x1d3)],this[_0x34b791(0x1d3)]=null,this;throw new Error(_0x34b791(0x234));}[_0x364156(0x51f)](_0x32f273){const _0xaa9818=_0x364156;return this[_0xaa9818(0x46f)](!!(_0x32f273!=null&&_0x32f273['isPermissionRej']));}[_0x364156(0x484)](){const _0x5df259=_0x364156;return this[_0x5df259(0x34f)][_0x5df259(0x1c6)](B,this['unitID'],this[_0x5df259(0x451)],this[_0x5df259(0x1d3)],this[_0x5df259(0x47e)],this[_0x5df259(0x50a)]);}[_0x364156(0x2a5)](){return this;}[_0x364156(0x46f)](_0x1ffd0e){const _0x519161=_0x364156;return this[_0x519161(0x34f)][_0x519161(0x1c6)](Y,this[_0x519161(0x1e9)],this[_0x519161(0x451)],this[_0x519161(0x1d3)],this[_0x519161(0x47e)],this[_0x519161(0x50a)],_0x1ffd0e);}};x=K([f(0x7,h[_0x364156(0x24e)](h[_0x364156(0x443)])),f(0x8,h['Inject'](u[_0x364156(0x549)])),f(0x9,h[_0x364156(0x24e)](exports['LocalCacheService'])),f(0xa,a[_0x364156(0x476)]),f(0xb,a[_0x364156(0x542)]),f(0xc,a[_0x364156(0x3ab)]),f(0xd,u[_0x364156(0x3d0)])],x);function Ot(_0x4ec6c0,_0x18f8cc,_0x4edad3,_0x4745bf,_0x15f89c,_0x579fba){const _0x419ec2=_0x364156;return _0x4745bf&&_0x15f89c['length']?_0x4ec6c0[_0x419ec2(0x1c6)](H,_0x18f8cc,_0x4edad3,_0x4745bf,_0x15f89c,_0x579fba):_0x4745bf?_0x4ec6c0['createInstance'](k,_0x18f8cc,_0x4edad3,_0x4745bf,_0x579fba):_0x15f89c['length']?_0x4ec6c0[_0x419ec2(0x1c6)](j,_0x18f8cc,_0x4edad3,_0x15f89c,_0x579fba):_0x4ec6c0['createInstance'](ce,_0x18f8cc,_0x4edad3,_0x579fba);}var ws=Object[_0x364156(0x53c)],ys=Object[_0x364156(0x55c)],be=(_0x1d0ba9,_0x576130,_0x14af1c,_0x1255b7)=>{for(var _0xcc25c8=_0x1255b7>0x1?void 0x0:_0x1255b7?ys(_0x576130,_0x14af1c):_0x576130,_0x3b62d3=_0x1d0ba9['length']-0x1,_0x5e5855;_0x3b62d3>=0x0;_0x3b62d3--)(_0x5e5855=_0x1d0ba9[_0x3b62d3])&&(_0xcc25c8=(_0x1255b7?_0x5e5855(_0x576130,_0x14af1c,_0xcc25c8):_0x5e5855(_0xcc25c8))||_0xcc25c8);return _0x1255b7&&_0xcc25c8&&ws(_0x576130,_0x14af1c,_0xcc25c8),_0xcc25c8;},p=(_0x507e81,_0x2b1404)=>(_0x4c4d84,_0x476a3f)=>_0x2b1404(_0x4c4d84,_0x476a3f,_0x507e81);exports[_0x364156(0x3d9)]=class extends a[_0x364156(0x306)]{constructor(_0x23805c,_0xeb5ac1,_0x37f875){const _0x46f6ad=_0x364156;super(),d(this,'_entities',new Map()),d(this,_0x46f6ad(0x388),new g[(_0x46f6ad(0x2c1))]()),(this[_0x46f6ad(0x34f)]=_0x23805c,this[_0x46f6ad(0x569)]=_0xeb5ac1,this['_univerInstanceService']=_0x37f875,this[_0x46f6ad(0x477)]());}[_0x364156(0x266)](){const _0x3a3e46=_0x364156;super[_0x3a3e46(0x266)](),this['_entities'][_0x3a3e46(0x2b1)](_0x108a61=>_0x108a61['dispose']()),this['_entities'][_0x3a3e46(0x23d)]();}[_0x364156(0x482)](_0x144afd){const _0x77506c=_0x364156;var _0x759274;return(_0x759274=this['_entities'][_0x77506c(0x3f4)](_0x144afd))!=null?_0x759274:null;}[_0x364156(0x21d)](_0x36424d){const _0x249be6=_0x364156,_0x2c7eb9=this[_0x249be6(0x482)](_0x36424d);return _0x2c7eb9?g['of'](_0x2c7eb9):this[_0x249be6(0x388)]['pipe'](C[_0x249be6(0x218)](_0x456f6c=>_0x456f6c['unitID']===_0x36424d));}[_0x364156(0x477)](){const _0x18b718=_0x364156;this['_univerInstanceService'][_0x18b718(0x4e3)](a[_0x18b718(0x38c)][_0x18b718(0x350)])[_0x18b718(0x1f5)](g['takeUntil'](this[_0x18b718(0x55d)]),C[_0x18b718(0x518)](0x10))['subscribe'](async _0x15194f=>{const _0xd918bd=_0x18b718,_0x25d598=_0x15194f[_0xd918bd(0x38b)](),_0x50e17c=await this[_0xd918bd(0x434)](_0x25d598,$['UNIVER_SHEET']);this[_0xd918bd(0x552)]['set'](_0x25d598,_0x50e17c);}),this[_0x18b718(0x53b)][_0x18b718(0x4e3)](a[_0x18b718(0x38c)][_0x18b718(0x287)])['pipe'](g['takeUntil'](this[_0x18b718(0x55d)]),C['delay'](0x10))['pipe'](C['filter'](_0x3a032a=>!_0x3a032a[_0x18b718(0x38b)]()[_0x18b718(0x508)]('__')))[_0x18b718(0x4f5)](async _0x3fbf9f=>{const _0x47d880=_0x18b718,_0x1f7556=_0x3fbf9f[_0x47d880(0x38b)](),_0x3c2f15=await this[_0x47d880(0x434)](_0x1f7556,$[_0x47d880(0x287)]);this[_0x47d880(0x552)][_0x47d880(0x490)](_0x1f7556,_0x3c2f15);}),g[_0x18b718(0x3ba)](this[_0x18b718(0x53b)][_0x18b718(0x2d4)](a[_0x18b718(0x38c)][_0x18b718(0x350)]),this[_0x18b718(0x53b)]['getTypeOfUnitDisposed$'](a['UniverInstanceType'][_0x18b718(0x287)]))[_0x18b718(0x1f5)](g['takeUntil'](this[_0x18b718(0x55d)]))[_0x18b718(0x4f5)](_0x504e1e=>{const _0x5621b2=_0x18b718,_0x1b1fad=_0x504e1e['getUnitId'](),_0x531fa1=this['_entities'][_0x5621b2(0x3f4)](_0x1b1fad);_0x531fa1&&(_0x531fa1[_0x5621b2(0x266)](),this[_0x5621b2(0x552)][_0x5621b2(0x4b0)](_0x1b1fad));});}async[_0x364156(0x434)](_0x22c4f6,_0x397e0d){const _0x4a2e5d=_0x364156,_0x20e4a8=await this[_0x4a2e5d(0x569)]['requireSession'](_0x22c4f6),_0x221f31=this['_injector'][_0x4a2e5d(0x1c6)](this['_getCtorByUniverType'](_0x397e0d),_0x22c4f6,_0x397e0d,_0x20e4a8);return await _0x221f31['init'](),this[_0x4a2e5d(0x388)]['next'](_0x221f31),_0x221f31;}[_0x364156(0x1c9)](_0x385c06){const _0x58a26b=_0x364156;switch(_0x385c06){case $[_0x58a26b(0x287)]:return Ne;case $[_0x58a26b(0x350)]:return Me;default:throw new Error('[CollaborationController]:\x20invalid\x20univer\x20type:\x20'+_0x385c06);}}},exports['CollaborationController']=be([a[_0x364156(0x4a4)](a[_0x364156(0x20a)][_0x364156(0x29c)],exports[_0x364156(0x3d9)]),p(0x0,h['Inject'](h['Injector'])),p(0x1,h['Inject'](exports[_0x364156(0x378)])),p(0x2,a[_0x364156(0x58c)])],exports[_0x364156(0x3d9)]);let pe=class extends a[_0x364156(0x306)]{constructor(_0x7f3329,_0x30b663,_0x3b5ca7,_0x15e558,_0x3d7a2a,_0x28e69f,_0x5da36f,_0x415498,_0x5745e2,_0x194f4a,_0x21c2f4,_0x4490ba,_0xccc99d){const _0x3c9bec=_0x364156;super(),d(this,_0x3c9bec(0x3be),new g['BehaviorSubject'](null)),d(this,'state$',this[_0x3c9bec(0x3be)][_0x3c9bec(0x485)]()),d(this,'_state'),d(this,_0x3c9bec(0x581),!0x1),d(this,_0x3c9bec(0x48a),this[_0x3c9bec(0x362)]['pipe'](C['map'](_0xd45418=>_0xd45418?_0xd45418[_0x3c9bec(0x1d4)]:U[_0x3c9bec(0x209)]),C['shareReplay'](0x1))),d(this,_0x3c9bec(0x3b7),!0x1),d(this,'_remoteChangesetQueue',[]),(this[_0x3c9bec(0x1e9)]=_0x7f3329,this[_0x3c9bec(0x377)]=_0x30b663,this[_0x3c9bec(0x393)]=_0x3b5ca7,this[_0x3c9bec(0x34f)]=_0x15e558,this['_localCacheService']=_0x3d7a2a,this[_0x3c9bec(0x31a)]=_0x28e69f,this[_0x3c9bec(0x251)]=_0x5da36f,this[_0x3c9bec(0x53a)]=_0x415498,this[_0x3c9bec(0x3f3)]=_0x5745e2,this[_0x3c9bec(0x1e1)]=_0x194f4a,this[_0x3c9bec(0x4f8)]=_0x21c2f4,this['_permissionService']=_0x4490ba,this[_0x3c9bec(0x379)]=_0xccc99d);}get[_0x364156(0x305)](){const _0xbafaf=_0x364156;return this[_0xbafaf(0x47a)];}async[_0x364156(0x2a8)](){const _0x238838=_0x364156;if(this[_0x238838(0x305)])throw new Error(_0x238838(0x323));await this[_0x238838(0x477)]();}[_0x364156(0x560)](){const _0x3d689a=_0x364156;return this[_0x3d689a(0x581)]=!0x0,a[_0x3d689a(0x4a1)](()=>{const _0x2ec1eb=_0x3d689a;this[_0x2ec1eb(0x581)]=!0x1,this[_0x2ec1eb(0x497)]();});}[_0x364156(0x4f3)](_0x1ec06c){this['_state']=_0x1ec06c,this['_state$']['next'](_0x1ec06c);}async[_0x364156(0x477)](){const _0x38d6d2=_0x364156;var _0x1fc4a4;return this[_0x38d6d2(0x4f3)](await this[_0x38d6d2(0x3c5)]()),this[_0x38d6d2(0x379)]&&((_0x1fc4a4=this['_singleActiveUnitService'])==null||_0x1fc4a4[_0x38d6d2(0x1f7)](this['unitID']),this[_0x38d6d2(0x1e6)](a['toDisposable'](this[_0x38d6d2(0x379)][_0x38d6d2(0x280)](this[_0x38d6d2(0x1e9)])[_0x38d6d2(0x4f5)](_0x4730f8=>{const _0x18e326=_0x38d6d2;this[_0x18e326(0x3f3)][_0x18e326(0x3b3)](_0x18e326(0x43c),_0x18e326(0x4fa),_0x4730f8),_0x4730f8===Tt[_0x18e326(0x579)]?(this[_0x18e326(0x4f8)][_0x18e326(0x3f0)]({'content':this[_0x18e326(0x251)]['t'](_0x18e326(0x2b9)),'type':Q['MessageType'][_0x18e326(0x3c2)]}),this[_0x18e326(0x1e5)][_0x18e326(0x208)](new E[(_0x18e326(0x32f))](this[_0x18e326(0x1e9)])['id'],!0x1)):this[_0x18e326(0x1e5)][_0x18e326(0x208)](new E[(_0x18e326(0x32f))](this[_0x18e326(0x1e9)])['id'],!0x0);})))),this[_0x38d6d2(0x1e6)](a[_0x38d6d2(0x4a1)](this[_0x38d6d2(0x393)][_0x38d6d2(0x582)][_0x38d6d2(0x4f5)](_0x952f9a=>{const _0x58ff4a=_0x38d6d2;_0x952f9a===W[_0x58ff4a(0x42c)]?this[_0x58ff4a(0x352)]():_0x952f9a===W[_0x58ff4a(0x209)]&&this[_0x58ff4a(0x48d)]();}))),this['disposeWithMe'](a[_0x38d6d2(0x4a1)](this['_session'][_0x38d6d2(0x56b)]['subscribe'](_0x215685=>{const _0x138611=_0x38d6d2;try{switch(_0x215685['eventID']){case u[_0x138611(0x3ac)][_0x138611(0x410)]:{this[_0x138611(0x54d)](u[_0x138611(0x46e)](_0x215685[_0x138611(0x45d)]));break;}case u[_0x138611(0x3ac)][_0x138611(0x3aa)]:{this[_0x138611(0x4b1)](_0x215685[_0x138611(0x45d)]);break;}case u[_0x138611(0x3ac)][_0x138611(0x4da)]:{this[_0x138611(0x4d4)]();break;}case u[_0x138611(0x3ac)]['PSEUDO_FETCH_MISSING_RESULT']:{this[_0x138611(0x438)](_0x215685['data'][_0x138611(0x3dc)][_0x138611(0x27d)](_0x451d92=>u[_0x138611(0x46e)](_0x451d92)));break;}case u[_0x138611(0x3ac)][_0x138611(0x224)]:this[_0x138611(0x4d4)]({'isPermissionRej':!0x0});}}catch(_0x19daed){throw console['error'](_0x138611(0x1dd),_0x19daed),_0x19daed;}}))),this[_0x38d6d2(0x47a)];}[_0x364156(0x3b0)](){const _0x45fe5f=_0x364156;this[_0x45fe5f(0x3b7)]=!0x1;}['_lockTransition'](){const _0xf4c5ba=_0x364156;if(this[_0xf4c5ba(0x3b7)])throw new Error(_0xf4c5ba(0x372));this[_0xf4c5ba(0x3b7)]=!0x0;}['_onLocalMutation'](_0x508d7b){const _0x48af5a=_0x364156;this[_0x48af5a(0x2be)](),this['_updateState'](this[_0x48af5a(0x47a)][_0x48af5a(0x319)](_0x508d7b)),this['_unlockTransition']();}[_0x364156(0x54d)](_0x2555ef){const _0x3b72e9=_0x364156;if(!(_0x2555ef[_0x3b72e9(0x522)]<=this[_0x3b72e9(0x53a)][_0x3b72e9(0x514)](this[_0x3b72e9(0x1e9)]))){if(this['_collaborationPaused']){this['_remoteChangesetQueue'][_0x3b72e9(0x528)](_0x2555ef);return;}this[_0x3b72e9(0x4e0)](_0x2555ef);}}[_0x364156(0x497)](){const _0x1b18a0=_0x364156;this[_0x1b18a0(0x25e)][_0x1b18a0(0x2b1)](_0x4b456e=>this['_applyRemoteChangeset'](_0x4b456e)),this[_0x1b18a0(0x25e)]=[];}[_0x364156(0x4e0)](_0x2d371e){const _0xb03c8d=_0x364156,_0x18e5b8=this['_compressMutationService']['interceptor'][_0xb03c8d(0x45f)](this['_compressMutationService'][_0xb03c8d(0x375)][_0xb03c8d(0x454)]()[_0xb03c8d(0x4a8)])(_0x2d371e[_0xb03c8d(0x480)],null)||_0x2d371e[_0xb03c8d(0x480)],_0x440a01={..._0x2d371e,'mutations':_0x18e5b8};this[_0xb03c8d(0x2be)](),this[_0xb03c8d(0x4f3)](this[_0xb03c8d(0x47a)][_0xb03c8d(0x220)](_0x440a01)),this[_0xb03c8d(0x3b0)]();}['_onRemoteACK'](_0xbafa68){const _0x5eb5c7=_0x364156;this[_0x5eb5c7(0x2be)](),this[_0x5eb5c7(0x4f3)](this['_state']['onRemoteAck'](_0xbafa68)),this['_unlockTransition']();}[_0x364156(0x4d4)](_0x206dad){const _0x1e882f=_0x364156;this['_lockTransition'](),this[_0x1e882f(0x4f3)](this[_0x1e882f(0x47a)][_0x1e882f(0x51f)](_0x206dad)),this['_unlockTransition']();}[_0x364156(0x438)](_0xcbd7d0){const _0x3fdf73=_0x364156;if(!(this[_0x3fdf73(0x47a)]instanceof x))throw new TypeError(_0x3fdf73(0x53f));const _0xc7d349=_0xcbd7d0[_0x3fdf73(0x27d)](_0x528a47=>{const _0x37babf=_0x3fdf73,_0xc139e8=this[_0x37babf(0x31a)]['interceptor'][_0x37babf(0x45f)](this['_compressMutationService']['interceptor'][_0x37babf(0x454)]()['COMPRESS_MUTATION_APPLY'])(_0x528a47[_0x37babf(0x480)],null)||_0x528a47[_0x37babf(0x480)];return{..._0x528a47,'mutations':_0xc139e8};});this['_lockTransition'](),this[_0x3fdf73(0x4f3)](this[_0x3fdf73(0x47a)][_0x3fdf73(0x466)](_0xc7d349)),this[_0x3fdf73(0x3b0)]();}[_0x364156(0x48d)](){const _0x3bd238=_0x364156;this[_0x3bd238(0x2be)](),this['_updateState'](this[_0x3bd238(0x47a)]['toggleOffline']()),this[_0x3bd238(0x3b0)]();}[_0x364156(0x352)](){const _0x3fefbe=_0x364156;this[_0x3fefbe(0x2be)](),this['_updateState'](this['_state']['toggleOnline']()),this[_0x3fefbe(0x3b0)]();}async[_0x364156(0x3c5)](){return new Promise(_0x159730=>{const _0x38494b=_0x17ba;this[_0x38494b(0x393)]['sessionStatus$'][_0x38494b(0x1f5)](C[_0x38494b(0x1c5)](0x1))[_0x38494b(0x4f5)](async _0x286c7c=>{const _0x4e7cf7=_0x38494b;_0x159730(await this['_createInitialStateImpl'](_0x286c7c===W[_0x4e7cf7(0x42c)]));});});}[_0x364156(0x583)](){const _0x493a4b=this['unitID'];return{'onStateChange':(_0x36aceb,_0x1aea9f)=>{const _0xda8514=_0x17ba;if(_0x36aceb!==this[_0xda8514(0x47a)])throw new Error(_0xda8514(0x2aa)+_0x36aceb[_0xda8514(0x1d4)]+_0xda8514(0x4a5)+_0x1aea9f[_0xda8514(0x1d4)]+_0xda8514(0x1ee)+this['_state'][_0xda8514(0x1d4)]);this[_0xda8514(0x4f3)](_0x1aea9f);},'onSendChangeset':_0x3dd97d=>{const _0x19ab4f=_0x17ba,_0x40ce2e={'eventID':u[_0x19ab4f(0x3ac)][_0x19ab4f(0x492)],'data':{'unitID':_0x3dd97d['unitID'],'unitType':this[_0x19ab4f(0x377)],'changeset':_0x3dd97d,'memberID':this['_session'][_0x19ab4f(0x354)]()}};this['_session'][_0x19ab4f(0x3c4)](_0x40ce2e,this[_0x19ab4f(0x1e9)]);},'onMissingChangesets':({from:_0x4beddc,to:_0x4d32ba})=>{const _0x22f624=_0x17ba;this[_0x22f624(0x3f3)][_0x22f624(0x3b3)](_0x22f624(0x43c),_0x22f624(0x2c5)+_0x4beddc+'\x20to\x20'+_0x4d32ba);const _0x5d5aca={'eventID':u[_0x22f624(0x3ac)]['FETCH_MISSING'],'data':{'unitID':_0x493a4b,'unitType':this[_0x22f624(0x377)],'from':_0x4beddc,'to':_0x4d32ba}};this[_0x22f624(0x393)][_0x22f624(0x3c4)](_0x5d5aca,this[_0x22f624(0x1e9)]);}};}async[_0x364156(0x56d)](_0x21083f){const _0x2b7d11=_0x364156;var _0x230f6b,_0x282039;const _0x1df035=await this['_localCacheService']['loadOfflineData'](this['unitID']),_0x3b6933=(_0x230f6b=_0x1df035==null?void 0x0:_0x1df035['mutations'])!=null?_0x230f6b:[],_0x1b5e6d=(_0x282039=_0x1df035==null?void 0x0:_0x1df035[_0x2b7d11(0x364)])!=null?_0x282039:null,_0x5d2a68=this[_0x2b7d11(0x1e9)];try{this[_0x2b7d11(0x535)](_0x1b5e6d,_0x3b6933);}catch(_0x4e8b3f){this['_logService'][_0x2b7d11(0x381)](_0x4e8b3f);}const _0x224f94=this['_createHandler']();if(_0x21083f){const _0x181f82=Ot(this[_0x2b7d11(0x34f)],_0x5d2a68,this['_type'],_0x1b5e6d,_0x3b6933,_0x224f94);return _0x181f82 instanceof j?_0x181f82['_schedule']():(_0x181f82 instanceof H||_0x181f82 instanceof k)&&_0x181f82[_0x2b7d11(0x1fa)](),_0x181f82;}return this[_0x2b7d11(0x34f)][_0x2b7d11(0x1c6)](B,_0x5d2a68,this[_0x2b7d11(0x377)],_0x1b5e6d,_0x3b6933,_0x224f94);}['_replayCachedMutations'](_0x5f4ade,_0x3f1ea3){const _0x43288a=_0x364156;var _0x444ce9,_0x55774c;const _0x7ec208=this[_0x43288a(0x31a)]['interceptor'][_0x43288a(0x45f)](this['_compressMutationService']['interceptor'][_0x43288a(0x454)]()['COMPRESS_MUTATION_APPLY']);(_0x444ce9=_0x7ec208((_0x5f4ade==null?void 0x0:_0x5f4ade[_0x43288a(0x480)])||[],null))==null||_0x444ce9[_0x43288a(0x2b1)](_0x4d345b=>this['_commandService'][_0x43288a(0x291)](_0x4d345b['id'],_0x4d345b[_0x43288a(0x2a0)])),(_0x55774c=_0x7ec208(_0x3f1ea3||[],null))==null||_0x55774c[_0x43288a(0x2b1)](_0x2766de=>this['_commandService'][_0x43288a(0x291)](_0x2766de['id'],_0x2766de[_0x43288a(0x2a0)]));}};pe=be([p(0x3,h[_0x364156(0x24e)](h[_0x364156(0x443)])),p(0x4,h[_0x364156(0x24e)](exports[_0x364156(0x403)])),p(0x5,h['Inject'](u[_0x364156(0x4d6)])),p(0x6,h[_0x364156(0x24e)](a[_0x364156(0x1fb)])),p(0x7,h[_0x364156(0x24e)](u[_0x364156(0x549)])),p(0x8,a[_0x364156(0x476)]),p(0x9,a[_0x364156(0x542)]),p(0xa,M['IMessageService']),p(0xb,a[_0x364156(0x3f8)]),p(0xc,h['Optional'](Ce))],pe);let Ne=class extends pe{constructor(_0x422d30,_0x4ad575,_0x42dc3f,_0x32413e,_0x37c610,_0x2b82ac,_0x3d4f78,_0x59453b,_0x204f9c,_0x471068,_0x12bcc9,_0x5e27d7,_0x47e979,_0x8df4dc,_0xa47fce,_0xd6af20,_0x14cc49){const _0x4c690e=_0x364156;super(_0x422d30,_0x4ad575,_0x42dc3f,_0x32413e,_0x37c610,_0x2b82ac,_0x3d4f78,_0x59453b,_0x47e979,_0x8df4dc,_0xa47fce,_0xd6af20,_0x14cc49),this[_0x4c690e(0x1e9)]=_0x422d30,this[_0x4c690e(0x451)]=_0x4ad575,this[_0x4c690e(0x233)]=_0x42dc3f,this[_0x4c690e(0x487)]=_0x204f9c,this[_0x4c690e(0x400)]=_0x471068,this[_0x4c690e(0x316)]=_0x12bcc9,this[_0x4c690e(0x486)]=_0x5e27d7;}[_0x364156(0x583)](){const _0x305d84=_0x364156,_0x685593=super['_createHandler']();return _0x685593['onTransformIME']=_0x253caa=>this['_docTransformIMECacheService'][_0x305d84(0x3cc)](_0x253caa),_0x685593[_0x305d84(0x2ab)]=_0x557bfc=>this['_docTransformSelectionsService'][_0x305d84(0x3fe)](_0x557bfc),_0x685593[_0x305d84(0x2d1)]=_0x2a5677=>this[_0x305d84(0x486)][_0x305d84(0x2f1)](_0x2a5677),_0x685593[_0x305d84(0x58e)]=_0x215b3f=>this['_docTransformIMECacheService'][_0x305d84(0x405)](_0x215b3f),_0x685593;}async[_0x364156(0x477)](){const _0x45640e=_0x364156,_0x26bcd8=await super[_0x45640e(0x477)]();return this[_0x45640e(0x487)][_0x45640e(0x30c)]['pipe'](g['takeUntil'](this['dispose$']))[_0x45640e(0x4f5)](_0x52f8f7=>{const _0x18e1b8=_0x45640e;if(_0x52f8f7==null)return;const {unitId:_0x4d9cbc,redoState:_0x9c92c0,commandId:_0x5c7191}=_0x52f8f7;if(_0x4d9cbc!==this['unitID'])return;const _0x3a3b6e={'id':_0x5c7191,'type':a[_0x18e1b8(0x290)][_0x18e1b8(0x255)],'params':{'unitId':_0x4d9cbc,'actions':_0x9c92c0[_0x18e1b8(0x256)],'textRanges':null}};this[_0x18e1b8(0x489)](_0x3a3b6e);}),_0x26bcd8;}};Ne=be([p(0x3,h[_0x364156(0x24e)](h[_0x364156(0x443)])),p(0x4,h['Inject'](exports[_0x364156(0x403)])),p(0x5,h['Inject'](u['CompressMutationService'])),p(0x6,h[_0x364156(0x24e)](a[_0x364156(0x1fb)])),p(0x7,h[_0x364156(0x24e)](u[_0x364156(0x549)])),p(0x8,h[_0x364156(0x24e)](N[_0x364156(0x313)])),p(0x9,h[_0x364156(0x24e)](fe)),p(0xa,h[_0x364156(0x24e)](me)),p(0xb,h[_0x364156(0x24e)](Ge)),p(0xc,a['ILogService']),p(0xd,a[_0x364156(0x542)]),p(0xe,M['IMessageService']),p(0xf,a[_0x364156(0x3f8)]),p(0x10,h[_0x364156(0x3dd)](Ce))],Ne);let Me=class extends pe{constructor(_0x4e503d,_0x1ab1e1,_0x5c838c,_0x2e5594,_0x139d0a,_0x6868b5,_0x188e0e,_0x6b0828,_0x18ae7f,_0x934ac1,_0x2e4909,_0x21f165,_0x2960c1,_0x40999b){const _0x3c8ff3=_0x364156;super(_0x4e503d,_0x1ab1e1,_0x5c838c,_0x2e5594,_0x139d0a,_0x6868b5,_0x188e0e,_0x6b0828,_0x934ac1,_0x2e4909,_0x21f165,_0x2960c1,_0x40999b),this[_0x3c8ff3(0x1e9)]=_0x4e503d,this['type']=_0x1ab1e1,this[_0x3c8ff3(0x233)]=_0x5c838c,this[_0x3c8ff3(0x4b3)]=_0x18ae7f;}['_createHandler'](){const _0x33ce62=_0x364156,_0x1b66b7=super[_0x33ce62(0x583)]();return _0x1b66b7['onTransformSelections']=_0x421ad0=>this['_sheetTransformSelectionsService'][_0x33ce62(0x3fe)](_0x421ad0),_0x1b66b7;}async['_init'](){const _0x5bfff1=_0x364156,_0x1c28a1=await super[_0x5bfff1(0x477)]();return this[_0x5bfff1(0x1e6)](this[_0x5bfff1(0x1e1)][_0x5bfff1(0x44b)]((_0x459794,_0x1cc38e)=>{const _0x521340=_0x5bfff1;if(_0x459794[_0x521340(0x451)]!==a[_0x521340(0x290)][_0x521340(0x255)]||_0x1cc38e!=null&&_0x1cc38e[_0x521340(0x43a)]||_0x1cc38e!=null&&_0x1cc38e[_0x521340(0x548)])return;const _0x3dcde1=_0x459794[_0x521340(0x2a0)];if((_0x3dcde1==null?void 0x0:_0x3dcde1['unitId'])!==this[_0x521340(0x1e9)])return;const _0x2527fe=_0x459794,_0x59e8af=this[_0x521340(0x31a)][_0x521340(0x375)][_0x521340(0x45f)](this[_0x521340(0x31a)]['interceptor']['getInterceptPoints']()[_0x521340(0x30a)])([_0x2527fe],null)||[_0x2527fe];this[_0x521340(0x489)](_0x59e8af[0x0]);})),_0x1c28a1;}};Me=be([p(0x3,h[_0x364156(0x24e)](h[_0x364156(0x443)])),p(0x4,h[_0x364156(0x24e)](exports['LocalCacheService'])),p(0x5,h[_0x364156(0x24e)](u[_0x364156(0x4d6)])),p(0x6,h[_0x364156(0x24e)](a[_0x364156(0x1fb)])),p(0x7,h[_0x364156(0x24e)](u[_0x364156(0x549)])),p(0x8,h[_0x364156(0x24e)](Ie)),p(0x9,a[_0x364156(0x476)]),p(0xa,a[_0x364156(0x542)]),p(0xb,M[_0x364156(0x247)]),p(0xc,a[_0x364156(0x3f8)]),p(0xd,h['Optional'](Ce))],Me);const it=[_0x364156(0x3e2),_0x364156(0x4b9),'verdancy600',_0x364156(0x36f),_0x364156(0x42f),_0x364156(0x4d1)];class Ye extends a['Disposable']{constructor(){const _0x23b8f8=_0x364156;super(...arguments),d(this,'_assignedColors',new Map()),d(this,_0x23b8f8(0x2a4),0x0);}[_0x364156(0x4cd)](_0x32a272){const _0x270ba7=_0x364156;if(this['_assignedColors'][_0x270ba7(0x2bc)](_0x32a272))return this['_assignedColors']['get'](_0x32a272);const _0x117af8=it[this[_0x270ba7(0x2a4)]];return this[_0x270ba7(0x2a4)]=(this[_0x270ba7(0x2a4)]+0x1)%it[_0x270ba7(0x37d)],this[_0x270ba7(0x358)][_0x270ba7(0x490)](_0x32a272,_0x117af8),_0x117af8;}}var Ls=Object[_0x364156(0x53c)],Ns=Object[_0x364156(0x55c)],Ms=(_0x5e8f96,_0xee4b92,_0x3ccb7e,_0x1ada22)=>{const _0x49e9fc=_0x364156;for(var _0x50539b=_0x1ada22>0x1?void 0x0:_0x1ada22?Ns(_0xee4b92,_0x3ccb7e):_0xee4b92,_0x5d7043=_0x5e8f96[_0x49e9fc(0x37d)]-0x1,_0xbf0055;_0x5d7043>=0x0;_0x5d7043--)(_0xbf0055=_0x5e8f96[_0x5d7043])&&(_0x50539b=(_0x1ada22?_0xbf0055(_0xee4b92,_0x3ccb7e,_0x50539b):_0xbf0055(_0x50539b))||_0x50539b);return _0x1ada22&&_0x50539b&&Ls(_0xee4b92,_0x3ccb7e,_0x50539b),_0x50539b;},q=(_0x52f1d0,_0x27532e)=>(_0x35588b,_0x454510)=>_0x27532e(_0x35588b,_0x454510,_0x52f1d0);const As=0x12c,$s=0x64,js=()=>{let _0x56133f=[],_0x2622af=!0x1;return _0x41f35f=>{const _0x5b1825=_0x17ba;_0x56133f[_0x5b1825(0x528)](_0x41f35f),_0x2622af||(_0x2622af=!0x0,setTimeout(()=>{const _0x3c33f5=_0x5b1825;_0x56133f[_0x3c33f5(0x2b1)](_0x40bf1d=>_0x40bf1d()),_0x56133f=[],_0x2622af=!0x1;}));};};let Ae=class extends a[_0x364156(0x306)]{constructor(_0x505994,_0x4bf8be,_0x1b2a72,_0x27d781,_0x10a422,_0x6de5f4,_0x4d1766,_0x3071a8){const _0x74dba2=_0x364156;super(),d(this,_0x74dba2(0x50f),!0x1),d(this,_0x74dba2(0x477),!0x1),d(this,_0x74dba2(0x24d),new g[(_0x74dba2(0x2dc))](new Map())),d(this,_0x74dba2(0x270),this['_cursorInfo$']['asObservable']()),d(this,_0x74dba2(0x461),new g[(_0x74dba2(0x2dc))]([])),d(this,_0x74dba2(0x370),this['_roomMembers$'][_0x74dba2(0x1f5)](g[_0x74dba2(0x2db)](As))),d(this,'_updateLocalCursor',ke((_0x5c42dc,_0x595434)=>{const _0x3229b4=_0x74dba2,_0x2951ae={'eventID':u[_0x3229b4(0x3ac)][_0x3229b4(0x2c3)],'data':{'unitID':this[_0x3229b4(0x1e9)],'memberID':this[_0x3229b4(0x393)][_0x3229b4(0x354)](),'selection':qe['serializeRangeWithSheet'](_0x5c42dc,_0x595434['range'])}};this[_0x3229b4(0x393)][_0x3229b4(0x3c4)](_0x2951ae,this[_0x3229b4(0x1e9)]);},$s)),(this[_0x74dba2(0x1e9)]=_0x505994,this[_0x74dba2(0x393)]=_0x4bf8be,this[_0x74dba2(0x34f)]=_0x1b2a72,this['_colorAssignService']=_0x27d781,this['_memberService']=_0x10a422,this[_0x74dba2(0x53b)]=_0x6de5f4,this[_0x74dba2(0x1e1)]=_0x4d1766,this[_0x74dba2(0x3ff)]=_0x3071a8);}get['cursorInfo'](){const _0x59d27f=_0x364156;return this['_cursorInfo$'][_0x59d27f(0x1de)]();}get[_0x364156(0x214)](){const _0x4eb4a5=_0x364156;return this[_0x4eb4a5(0x461)]['getValue']();}['dispose'](){const _0x2aea1e=_0x364156;super['dispose'](),this[_0x2aea1e(0x24d)][_0x2aea1e(0x1d2)](new Map()),this[_0x2aea1e(0x24d)][_0x2aea1e(0x28c)](),this[_0x2aea1e(0x461)][_0x2aea1e(0x1d2)]([]),this[_0x2aea1e(0x461)][_0x2aea1e(0x28c)]();}[_0x364156(0x2a8)](){const _0xdd54ef=_0x364156;this[_0xdd54ef(0x477)]||(this['_init']=!0x0,this[_0xdd54ef(0x393)]['sessionStatus$'][_0xdd54ef(0x1f5)](g[_0xdd54ef(0x52b)](this[_0xdd54ef(0x55d)]))[_0xdd54ef(0x4f5)](_0x84b09d=>{const _0x15bf47=_0xdd54ef;_0x84b09d===W['ONLINE']?this[_0x15bf47(0x352)]():this['_toggleOffline']();}),this['_session'][_0xdd54ef(0x56b)]['pipe'](g['takeUntil'](this[_0xdd54ef(0x55d)]))[_0xdd54ef(0x4f5)](_0x312b04=>{const _0x31e8dc=_0xdd54ef,_0x42bcb2=_0x312b04[_0x31e8dc(0x321)];_0x42bcb2===u[_0x31e8dc(0x3ac)][_0x31e8dc(0x2c3)]&&this[_0x31e8dc(0x3b8)](_0x312b04),_0x42bcb2===u[_0x31e8dc(0x3ac)][_0x31e8dc(0x41f)]&&this['_onCursorDelete'](_0x312b04);}),this[_0xdd54ef(0x28f)](),this['disposeWithMe'](this['_commandService'][_0xdd54ef(0x44b)](_0x3ac818=>{const _0x488a49=_0xdd54ef;if(this['_online']&&_0x3ac818['id']===E[_0x488a49(0x231)]['id']&&_0x3ac818['params'][_0x488a49(0x4c9)]===this[_0x488a49(0x1e9)]){const _0xced4c7=_0x3ac818['params'];this[_0x488a49(0x246)](_0xced4c7[_0x488a49(0x4de)],_0xced4c7[_0x488a49(0x3c1)][0x0]);}})));}[_0x364156(0x3b8)](_0x144cd2){const _0x961261=_0x364156;var _0xc80e9b,_0x1e1b14;const {memberID:_0x2c19a4,selection:_0x34af99}=_0x144cd2[_0x961261(0x45d)],{sheetName:_0x4fe3f6,range:_0x1e0b63}=qe[_0x961261(0x35c)](_0x34af99),_0x30ff6a={'name':(_0x1e1b14=(_0xc80e9b=this[_0x961261(0x302)]['getMember'](this[_0x961261(0x1e9)],_0x2c19a4))==null?void 0x0:_0xc80e9b[_0x961261(0x1e8)])!=null?_0x1e1b14:_0x961261(0x46c),'range':this[_0x961261(0x213)](_0x4fe3f6,_0x1e0b63),'sheetID':_0x4fe3f6,'color':this[_0x961261(0x50b)][_0x961261(0x4cd)](_0x2c19a4),'selection':_0x34af99},_0x276213=this['cursorInfo'];_0x276213[_0x961261(0x490)](_0x2c19a4,_0x30ff6a),this['_cursorInfo$'][_0x961261(0x1d2)](_0x276213);}[_0x364156(0x3d4)](_0x1f46bc){const _0xa31fdd=_0x364156,{memberID:_0x24e601}=_0x1f46bc[_0xa31fdd(0x45d)],_0x25ea2d=this['cursorInfo'];_0x25ea2d[_0xa31fdd(0x4b0)](_0x24e601),this[_0xa31fdd(0x24d)][_0xa31fdd(0x1d2)](_0x25ea2d);}[_0x364156(0x213)](_0x2a4440,_0x40e6cb){const _0x1f5a0c=_0x364156;var _0x596b5c,_0x200370;const _0x1b8f84=(_0x200370=(_0x596b5c=this[_0x1f5a0c(0x53b)][_0x1f5a0c(0x2fe)](this[_0x1f5a0c(0x1e9)]))==null?void 0x0:_0x596b5c[_0x1f5a0c(0x31e)](_0x2a4440))==null?void 0x0:_0x200370[_0x1f5a0c(0x2ba)]();return(_0x1b8f84==null?void 0x0:_0x1b8f84['find'](_0x27049c=>a[_0x1f5a0c(0x571)][_0x1f5a0c(0x52e)](_0x27049c,_0x40e6cb)))||_0x40e6cb;}['_onRefRangeChange'](){const _0x2728fd=_0x364156,_0x36efe9=new a[(_0x2728fd(0x4b8))](),_0xdcae77=js(),_0x355cc9=()=>{const _0x1bc5da=_0x2728fd;_0x36efe9[_0x1bc5da(0x266)]();const _0xab7622=(_0x588be8,_0x1cea62,_0xe6bd29,_0x5e7854)=>{const _0x24b746=_0x1bc5da;let _0x1e90a3=[];switch(_0x588be8['id']){case E[_0x24b746(0x243)][_0x24b746(0x360)]:{_0x1e90a3=E['handleDeleteRangeMoveLeft'](_0x588be8,_0x5e7854);break;}case E[_0x24b746(0x243)][_0x24b746(0x343)]:{_0x1e90a3=E['handleDeleteRangeMoveUp'](_0x588be8,_0x5e7854);break;}case E[_0x24b746(0x243)][_0x24b746(0x4db)]:{_0x1e90a3=E[_0x24b746(0x3c7)](_0x588be8,_0x5e7854);break;}case E[_0x24b746(0x243)]['InsertRangeMoveDownCommandId']:{_0x1e90a3=E[_0x24b746(0x23b)](_0x588be8,_0x5e7854);break;}case E[_0x24b746(0x243)]['InsertRangeMoveRightCommandId']:{_0x1e90a3=E[_0x24b746(0x4fe)](_0x588be8,_0x5e7854);break;}case E[_0x24b746(0x243)][_0x24b746(0x49b)]:{_0x1e90a3=E[_0x24b746(0x249)](_0x588be8,_0x5e7854);break;}case E[_0x24b746(0x243)]['MoveRangeCommandId']:{_0x1e90a3=E[_0x24b746(0x31f)](_0x588be8,_0x5e7854);break;}case E[_0x24b746(0x243)][_0x24b746(0x523)]:{_0x1e90a3=E[_0x24b746(0x561)](_0x588be8,_0x5e7854);break;}case E['EffectRefRangId'][_0x24b746(0x20f)]:{_0x1e90a3=E['handleIRemoveRow'](_0x588be8,_0x5e7854);break;}}const _0x213cfc=E[_0x24b746(0x3d1)](_0x1e90a3,_0x5e7854),_0x13ee25=this['cursorInfo'][_0x24b746(0x3f4)](_0x1cea62);if(_0x13ee25&&_0x213cfc){const _0x5286db={..._0x13ee25,'range':_0x213cfc};this['cursorInfo']['set'](_0x1cea62,_0x5286db),_0xdcae77(()=>{const _0x139649=_0x24b746,_0x2b2deb=this[_0x139649(0x3ff)][_0x139649(0x442)](_0x213cfc,_0x2aef32=>(_0x2b2deb[_0x139649(0x266)](),_0xab7622(_0x2aef32,_0x1cea62,_0xe6bd29,_0x213cfc)));_0x36efe9[_0x139649(0x2e0)](_0x2b2deb);});}return{'redos':[],'undos':[]};};this[_0x1bc5da(0x34c)][_0x1bc5da(0x2b1)]((_0x4a193a,_0x411833)=>{const _0x526101=_0x1bc5da,{range:_0x3bacfa,sheetID:_0x3a1cd0}=_0x4a193a,_0xa1ca8=this[_0x526101(0x3ff)][_0x526101(0x442)](_0x3bacfa,_0x1b0c83=>(_0xa1ca8['dispose'](),_0xab7622(_0x1b0c83,_0x411833,_0x3a1cd0,_0x3bacfa)));_0x36efe9['add'](_0xa1ca8);});};this['disposeWithMe'](a[_0x2728fd(0x4a1)](this[_0x2728fd(0x24d)][_0x2728fd(0x4f5)](()=>{_0x355cc9();})));}[_0x364156(0x352)](){const _0x10db59=_0x364156;var _0x4b3aa6,_0x3af347;if(this[_0x10db59(0x50f)]=!0x0,((_0x4b3aa6=this[_0x10db59(0x53b)][_0x10db59(0x332)]())==null?void 0x0:_0x4b3aa6[_0x10db59(0x38b)]())!==this['unitID'])return;const _0x5d0ff8=(_0x3af347=this[_0x10db59(0x34f)]['get'](E[_0x10db59(0x3b2)])[_0x10db59(0x25c)]())==null?void 0x0:_0x3af347[0x0],_0x185a7e=this[_0x10db59(0x53b)][_0x10db59(0x31d)](a['UniverInstanceType'][_0x10db59(0x350)])[_0x10db59(0x21e)]();_0x5d0ff8&&_0x185a7e&&this[_0x10db59(0x246)](_0x185a7e['getSheetId'](),_0x5d0ff8);}[_0x364156(0x48d)](){const _0x154b1f=_0x364156;this[_0x154b1f(0x50f)]=!0x1;}};Ae=Ms([q(0x2,h[_0x364156(0x24e)](h[_0x364156(0x443)])),q(0x3,h[_0x364156(0x24e)](Ye)),q(0x4,h[_0x364156(0x24e)](G)),q(0x5,a[_0x364156(0x58c)]),q(0x6,a[_0x364156(0x542)]),q(0x7,h['Inject'](E[_0x364156(0x219)]))],Ae);var Hs=Object[_0x364156(0x53c)],xs=Object[_0x364156(0x55c)],ks=(_0x1b6a79,_0x51cf9e,_0x5bd875,_0x3644c2)=>{for(var _0x312686=_0x3644c2>0x1?void 0x0:_0x3644c2?xs(_0x51cf9e,_0x5bd875):_0x51cf9e,_0x37da4b=_0x1b6a79['length']-0x1,_0x51146e;_0x37da4b>=0x0;_0x37da4b--)(_0x51146e=_0x1b6a79[_0x37da4b])&&(_0x312686=(_0x3644c2?_0x51146e(_0x51cf9e,_0x5bd875,_0x312686):_0x51146e(_0x312686))||_0x312686);return _0x3644c2&&_0x312686&&Hs(_0x51cf9e,_0x5bd875,_0x312686),_0x312686;},V=(_0x491be0,_0x48cd8c)=>(_0x29bfdc,_0x518711)=>_0x48cd8c(_0x29bfdc,_0x518711,_0x491be0);const Bs=0x12c,Fs=0x64;let $e=class extends a[_0x364156(0x306)]{constructor(_0x4550fd,_0x250656,_0x17c57d,_0x17f5d2,_0x4f0c87,_0x4bbaa6,_0x4fcd0c,_0x559a32,_0x2cf0ee){const _0x54f436=_0x364156;super(),d(this,_0x54f436(0x50f),!0x1),d(this,_0x54f436(0x477),!0x1),d(this,_0x54f436(0x24d),new g[(_0x54f436(0x2dc))](new Map())),d(this,_0x54f436(0x270),this[_0x54f436(0x24d)][_0x54f436(0x485)]()),d(this,_0x54f436(0x461),new g['BehaviorSubject']([])),d(this,_0x54f436(0x370),this[_0x54f436(0x461)]['pipe'](g[_0x54f436(0x2db)](Bs))),d(this,_0x54f436(0x246),ke(_0x137332=>{const _0x20d26b=_0x54f436,_0x591be5={'eventID':u['CollaborationEvent'][_0x20d26b(0x2c3)],'data':{'unitID':this['unitID'],'memberID':this['_session'][_0x20d26b(0x354)](),'selection':Rt(_0x137332)}};this['_session'][_0x20d26b(0x3c4)](_0x591be5,this[_0x20d26b(0x1e9)]);},Fs)),(this[_0x54f436(0x1e9)]=_0x4550fd,this['_session']=_0x250656,this['_injector']=_0x17c57d,this['_colorAssignService']=_0x17f5d2,this['_memberService']=_0x4f0c87,this[_0x54f436(0x3da)]=_0x4bbaa6,this['_transformService']=_0x4fcd0c,this['_univerInstanceService']=_0x559a32,this['_commandService']=_0x2cf0ee);}get[_0x364156(0x34c)](){const _0x2d35cc=_0x364156;return this[_0x2d35cc(0x24d)][_0x2d35cc(0x1de)]();}get['roomMembers'](){const _0x32b848=_0x364156;return this[_0x32b848(0x461)][_0x32b848(0x1de)]();}[_0x364156(0x266)](){const _0x49cf1a=_0x364156;super['dispose'](),this[_0x49cf1a(0x24d)][_0x49cf1a(0x1d2)](new Map()),this[_0x49cf1a(0x24d)]['complete'](),this['_roomMembers$'][_0x49cf1a(0x1d2)]([]),this['_roomMembers$']['complete']();}[_0x364156(0x2a8)](){const _0x72594f=_0x364156;this['_init']||(this[_0x72594f(0x477)]=!0x0,this['_session'][_0x72594f(0x582)][_0x72594f(0x1f5)](g[_0x72594f(0x52b)](this['dispose$']))['subscribe'](_0x304dbc=>{const _0x2e7df8=_0x72594f;_0x304dbc===W['ONLINE']?this[_0x2e7df8(0x352)]():this['_toggleOffline']();}),this['_session']['event$']['pipe'](g[_0x72594f(0x52b)](this[_0x72594f(0x55d)]))['subscribe'](_0x5de292=>{const _0x52053d=_0x72594f,_0x423192=_0x5de292['eventID'];_0x423192===u[_0x52053d(0x3ac)][_0x52053d(0x2c3)]&&this['_onCursorUpdate'](_0x5de292),_0x423192===u[_0x52053d(0x3ac)][_0x52053d(0x41f)]&&this[_0x52053d(0x3d4)](_0x5de292);}),this['disposeWithMe'](this['_commandService'][_0x72594f(0x44b)](_0x38dec5=>{const _0x571e23=_0x72594f,_0x3fc5a8=_0x38dec5[_0x571e23(0x2a0)];_0x3fc5a8!=null&&this[_0x571e23(0x50f)]&&_0x38dec5['id']===N[_0x571e23(0x2ed)]['id']&&_0x3fc5a8[_0x571e23(0x4c9)]===this[_0x571e23(0x1e9)]&&_0x3fc5a8[_0x571e23(0x25d)]===!0x1&&this[_0x571e23(0x246)](_0x3fc5a8[_0x571e23(0x585)]);})),this['_syncEditingCollabCursorService'][_0x72594f(0x455)][_0x72594f(0x1f5)](g[_0x72594f(0x52b)](this[_0x72594f(0x55d)]))[_0x72594f(0x4f5)](_0x4db457=>{const _0x41ef2d=_0x72594f;if((_0x4db457==null?void 0x0:_0x4db457[_0x41ef2d(0x1e9)])!==this[_0x41ef2d(0x1e9)])return;const _0xdfcee={'eventID':u[_0x41ef2d(0x3ac)]['UPDATE_CURSOR'],'data':_0x4db457};this[_0x41ef2d(0x3b8)](_0xdfcee);}),this['disposeWithMe'](this['_commandService'][_0x72594f(0x44b)](_0x3a13fa=>{const _0x2c916f=_0x72594f;if(_0x3a13fa['params']==null)return;const _0x2ca483=_0x3a13fa[_0x2c916f(0x2a0)];if(_0x3a13fa['id']!==N[_0x2c916f(0x441)]['id']||_0x2ca483[_0x2c916f(0x4c9)]!==this[_0x2c916f(0x1e9)])return;const _0x345f44={'id':'doc.mutation.rich-text-editing','params':_0x2ca483},_0x5d8a0c=this[_0x2c916f(0x34c)];for(const [_0x11beb8,_0x3178ac]of _0x5d8a0c){const _0x1f53d3={'id':_0x2c916f(0x4ef),'params':{'unitId':this[_0x2c916f(0x1e9)],'actions':null,'textRanges':_0x3178ac[_0x2c916f(0x585)]}},_0x4e0229=this[_0x2c916f(0x456)][_0x2c916f(0x43d)](_0x345f44,_0x1f53d3,!0x1);if(u[_0x2c916f(0x345)](_0x4e0229))throw _0x4e0229[_0x2c916f(0x381)];_0x5d8a0c[_0x2c916f(0x490)](_0x11beb8,{..._0x3178ac,'ranges':_0x4e0229['m2Prime']['params']['textRanges']});}queueMicrotask(()=>{const _0x44eeee=_0x2c916f;this['_cursorInfo$'][_0x44eeee(0x1d2)](_0x5d8a0c);});})));}[_0x364156(0x3b8)](_0x5c8167){const _0x44de4d=_0x364156;var _0xfdb3b,_0x50b304;const {memberID:_0xbf3707,selection:_0x4692e1}=_0x5c8167['data'],_0x431ca9=ps(_0x4692e1),_0x343323=(_0x50b304=(_0xfdb3b=this[_0x44de4d(0x302)][_0x44de4d(0x2b3)](this[_0x44de4d(0x1e9)],_0xbf3707))==null?void 0x0:_0xfdb3b[_0x44de4d(0x1e8)])!=null?_0x50b304:'Unknown\x20user',_0x5e9d42={'color':this[_0x44de4d(0x50b)][_0x44de4d(0x4cd)](_0xbf3707),'name':_0x343323,'ranges':_0x431ca9},_0x2a1155=this[_0x44de4d(0x34c)];_0x2a1155['set'](_0xbf3707,_0x5e9d42),this[_0x44de4d(0x24d)][_0x44de4d(0x1d2)](_0x2a1155);}[_0x364156(0x3d4)](_0x19f400){const _0x5b5ca3=_0x364156,{memberID:_0x5a9c36}=_0x19f400[_0x5b5ca3(0x45d)],_0x516ff7=this['cursorInfo'];_0x516ff7[_0x5b5ca3(0x4b0)](_0x5a9c36),this[_0x5b5ca3(0x24d)]['next'](_0x516ff7);}[_0x364156(0x352)](){const _0xd4aecf=_0x364156;var _0x1ed8ae;if(this[_0xd4aecf(0x50f)]=!0x0,((_0x1ed8ae=this[_0xd4aecf(0x53b)][_0xd4aecf(0x332)]())==null?void 0x0:_0x1ed8ae[_0xd4aecf(0x38b)]())!==this[_0xd4aecf(0x1e9)])return;const _0x44b341=this[_0xd4aecf(0x34f)][_0xd4aecf(0x3f4)](N[_0xd4aecf(0x20b)])[_0xd4aecf(0x25c)](),_0x3d53e3=_0x44b341==null?void 0x0:_0x44b341['map'](N['serializeTextRange']);Array[_0xd4aecf(0x4d8)](_0x3d53e3)&&_0x3d53e3['length']>0x0&&this[_0xd4aecf(0x246)](_0x3d53e3);}['_toggleOffline'](){const _0x1a0ee8=_0x364156;this[_0x1a0ee8(0x50f)]=!0x1;}};$e=ks([V(0x2,h[_0x364156(0x24e)](h[_0x364156(0x443)])),V(0x3,h[_0x364156(0x24e)](Ye)),V(0x4,h['Inject'](G)),V(0x5,h[_0x364156(0x24e)](Ge)),V(0x6,u[_0x364156(0x3d0)]),V(0x7,a[_0x364156(0x58c)]),V(0x8,a[_0x364156(0x542)])],$e);var Vs=Object['defineProperty'],Ws=Object[_0x364156(0x55c)],Gs=(_0x4706cf,_0x25523d,_0x59b3e1,_0x2a6515)=>{const _0x39a81e=_0x364156;for(var _0x3eb06e=_0x2a6515>0x1?void 0x0:_0x2a6515?Ws(_0x25523d,_0x59b3e1):_0x25523d,_0x3fa318=_0x4706cf[_0x39a81e(0x37d)]-0x1,_0x2e521d;_0x3fa318>=0x0;_0x3fa318--)(_0x2e521d=_0x4706cf[_0x3fa318])&&(_0x3eb06e=(_0x2a6515?_0x2e521d(_0x25523d,_0x59b3e1,_0x3eb06e):_0x2e521d(_0x3eb06e))||_0x3eb06e);return _0x2a6515&&_0x3eb06e&&Vs(_0x25523d,_0x59b3e1,_0x3eb06e),_0x3eb06e;},Ue=(_0x6449ef,_0x800ee1)=>(_0x381d7a,_0xf2dbe1)=>_0x800ee1(_0x381d7a,_0xf2dbe1,_0x6449ef);let Z=class extends a[_0x364156(0x306)]{constructor(_0x4a5bfa,_0x27fc46,_0x3792d7){const _0x2eff72=_0x364156;super(),d(this,'_entities',new Map()),d(this,'_entityInit$',new g[(_0x2eff72(0x2c1))]()),(this[_0x2eff72(0x53b)]=_0x4a5bfa,this[_0x2eff72(0x34f)]=_0x27fc46,this[_0x2eff72(0x569)]=_0x3792d7,this[_0x2eff72(0x477)]());}['dispose'](){const _0x5d63da=_0x364156;super[_0x5d63da(0x266)](),this[_0x5d63da(0x388)][_0x5d63da(0x28c)](),this['_entities'][_0x5d63da(0x2b1)](_0x168085=>_0x168085[_0x5d63da(0x266)]());}['getCollabCursors$'](_0x43cf01){const _0x2fde6a=_0x364156;return this[_0x2fde6a(0x552)]['has'](_0x43cf01)?this[_0x2fde6a(0x552)]['get'](_0x43cf01)['cursorInfo$']:this[_0x2fde6a(0x388)]['pipe'](g[_0x2fde6a(0x218)](_0x5e51f2=>_0x5e51f2[_0x2fde6a(0x1e9)]===_0x43cf01),g[_0x2fde6a(0x369)](_0x397419=>_0x397419[_0x2fde6a(0x270)]));}[_0x364156(0x477)](){const _0x44f084=_0x364156;this['_univerInstanceService'][_0x44f084(0x4e3)](a['UniverInstanceType'][_0x44f084(0x350)])['pipe'](g[_0x44f084(0x52b)](this['dispose$']))[_0x44f084(0x4f5)](async _0x582580=>{const _0x44fe18=_0x44f084,_0x1cbe9c=_0x582580['getUnitId'](),_0x45a692=await this['_startSheetCollabCursor'](_0x1cbe9c);this[_0x44fe18(0x388)][_0x44fe18(0x1d2)](_0x45a692),this[_0x44fe18(0x552)][_0x44fe18(0x490)](_0x1cbe9c,_0x45a692);}),this[_0x44f084(0x53b)]['getTypeOfUnitAdded$'](a[_0x44f084(0x38c)]['UNIVER_DOC'])[_0x44f084(0x1f5)](g[_0x44f084(0x52b)](this['dispose$']))[_0x44f084(0x1f5)](g[_0x44f084(0x218)](_0x5a6baf=>!_0x5a6baf[_0x44f084(0x38b)]()[_0x44f084(0x508)]('__')))['subscribe'](async _0xd00ed8=>{const _0x762b7d=_0x44f084,_0xf00cf0=_0xd00ed8[_0x762b7d(0x38b)](),_0x498c2d=await this[_0x762b7d(0x26b)](_0xf00cf0);this[_0x762b7d(0x388)][_0x762b7d(0x1d2)](_0x498c2d),this[_0x762b7d(0x552)][_0x762b7d(0x490)](_0xf00cf0,_0x498c2d);}),g[_0x44f084(0x3ba)](this['_univerInstanceService'][_0x44f084(0x2d4)](a[_0x44f084(0x38c)][_0x44f084(0x287)]),this[_0x44f084(0x53b)]['getTypeOfUnitDisposed$'](a[_0x44f084(0x38c)][_0x44f084(0x350)]))[_0x44f084(0x1f5)](g[_0x44f084(0x52b)](this['dispose$']))[_0x44f084(0x4f5)](_0x4562d8=>{const _0x8ddc6=_0x44f084,_0x508a5c=_0x4562d8['getUnitId'](),_0x1b6907=this[_0x8ddc6(0x552)][_0x8ddc6(0x3f4)](_0x508a5c);_0x1b6907&&(_0x1b6907[_0x8ddc6(0x266)](),this[_0x8ddc6(0x552)]['delete'](_0x508a5c));});}async[_0x364156(0x4a9)](_0x2c656d){const _0x2b284d=_0x364156,_0x539dfe=await this[_0x2b284d(0x569)]['requireSession'](_0x2c656d),_0x2f9d38=this[_0x2b284d(0x34f)][_0x2b284d(0x1c6)](Ae,_0x2c656d,_0x539dfe);return _0x2f9d38['init'](),_0x2f9d38;}async[_0x364156(0x26b)](_0x4c7b69){const _0x46b788=_0x364156,_0x154914=await this['_collabSessionService'][_0x46b788(0x33c)](_0x4c7b69),_0x1e811d=this[_0x46b788(0x34f)][_0x46b788(0x1c6)]($e,_0x4c7b69,_0x154914);return _0x1e811d['init'](),_0x1e811d;}};Z=Gs([a[_0x364156(0x4a4)](a['LifecycleStages']['Starting'],Z),Ue(0x0,a[_0x364156(0x58c)]),Ue(0x1,h[_0x364156(0x24e)](h['Injector'])),Ue(0x2,h[_0x364156(0x24e)](exports[_0x364156(0x378)]))],Z);const le=0x14,nt=0xc8,Pe=0x4,Ys=0x5;function Ks(_0x233372,_0x578cc5){const _0x4fd99a=_0x364156;let {radius:_0x11a16b,width:_0x4a7e39,height:_0x44c15f}=_0x578cc5;_0x11a16b=_0x11a16b!=null?_0x11a16b:0x0,_0x4a7e39=_0x4a7e39!=null?_0x4a7e39:0x1e,_0x44c15f=_0x44c15f!=null?_0x44c15f:0x1e;let _0x507d06=0x0,_0x46459c=0x0,_0x590287=0x0;_0x507d06=_0x46459c=_0x590287=Math[_0x4fd99a(0x55f)](_0x11a16b,_0x4a7e39/0x2,_0x44c15f/0x2),_0x233372[_0x4fd99a(0x3b1)](),_0x233372['moveTo'](_0x507d06,0x0),_0x233372['lineTo'](_0x4a7e39-_0x46459c,0x0),_0x233372[_0x4fd99a(0x307)](_0x4a7e39-_0x46459c,_0x46459c,_0x46459c,Math['PI']*0x3/0x2,0x0,!0x1),_0x233372[_0x4fd99a(0x261)](_0x4a7e39,_0x44c15f-_0x590287),_0x233372[_0x4fd99a(0x307)](_0x4a7e39-_0x590287,_0x44c15f-_0x590287,_0x590287,0x0,Math['PI']/0x2,!0x1),_0x233372[_0x4fd99a(0x261)](0x0,_0x44c15f),_0x233372[_0x4fd99a(0x261)](0x0,_0x507d06),_0x233372[_0x4fd99a(0x307)](_0x507d06,_0x507d06,_0x507d06,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x233372[_0x4fd99a(0x25f)](),_0x578cc5[_0x4fd99a(0x40d)]&&(_0x233372[_0x4fd99a(0x52a)](),_0x233372['fillStyle']=_0x578cc5[_0x4fd99a(0x40d)],_0x578cc5[_0x4fd99a(0x590)]==='evenodd'?_0x233372['fill'](_0x4fd99a(0x570)):_0x233372[_0x4fd99a(0x40d)](),_0x233372[_0x4fd99a(0x36d)]());}class Te extends R[_0x364156(0x28d)]{constructor(_0x12cc2d,_0x2a8592){const _0x15917c=_0x364156;super(_0x12cc2d,_0x2a8592),d(this,_0x15917c(0x202)),d(this,_0x15917c(0x48c)),(this[_0x15917c(0x202)]=_0x2a8592==null?void 0x0:_0x2a8592[_0x15917c(0x202)],this[_0x15917c(0x48c)]=_0x2a8592==null?void 0x0:_0x2a8592[_0x15917c(0x48c)]);}static[_0x364156(0x3a1)](_0x7a7a09,_0x1ae6e4){const _0x27de31=_0x364156,{text:_0x3aaea6,color:_0x30c22c}=_0x1ae6e4;_0x7a7a09[_0x27de31(0x52a)](),_0x7a7a09['font']=_0x27de31(0x2c7);const _0x19c568=_0x7a7a09[_0x27de31(0x29d)](_0x3aaea6)[_0x27de31(0x544)],_0x487f4e=Math[_0x27de31(0x55f)](_0x19c568+0x2*Pe,nt);Ks(_0x7a7a09,{'height':le,'radius':0x4,'width':_0x487f4e,'fill':_0x30c22c,'evented':!0x1}),_0x7a7a09[_0x27de31(0x38e)]='#FFF';const _0x456e8f=Pe,_0x7f4c14=le-Ys,_0x285285=nt-0x2*Pe;if(_0x19c568>_0x285285){let _0x24470f='',_0x28b549=0x0;for(const _0x455e6e of _0x3aaea6){const _0x2035cf=_0x7a7a09[_0x27de31(0x29d)](_0x455e6e)[_0x27de31(0x544)];if(_0x28b549+_0x2035cf<=_0x285285-_0x7a7a09['measureText'](_0x27de31(0x4f0))[_0x27de31(0x544)])_0x24470f+=_0x455e6e,_0x28b549+=_0x2035cf;else{_0x24470f+=_0x27de31(0x4f0);break;}}_0x7a7a09[_0x27de31(0x574)](_0x24470f,_0x456e8f,_0x7f4c14);}else _0x7a7a09[_0x27de31(0x574)](_0x3aaea6,_0x456e8f,_0x7f4c14);_0x7a7a09[_0x27de31(0x36d)]();}[_0x364156(0x207)](_0x11a219){const _0x3c9f77=_0x364156;Te[_0x3c9f77(0x3a1)](_0x11a219,this);}}const Xs=0x1,qs=1.5;class Js extends R['Shape']{constructor(_0x3ae872,_0x3f0a94){const _0x116e09=_0x364156;super(_0x3ae872,_0x3f0a94),d(this,_0x116e09(0x23e)),d(this,'_hovered',!0x1),d(this,'_range'),d(this,_0x116e09(0x3fd),''),d(this,_0x116e09(0x517),_0x116e09(0x428)),(_0x3f0a94&&this[_0x116e09(0x4b4)](_0x3f0a94),this[_0x116e09(0x3df)][_0x116e09(0x2ef)](()=>this['setShapeProps']({'hovered':!0x0})),this['onPointerLeave$']['subscribeEvent'](()=>this[_0x116e09(0x4b4)]({'hovered':!0x1})));}[_0x364156(0x4b4)](_0x2730e4){const _0x4417c2=_0x364156;var _0x5cd4d4,_0x43bce4,_0x580835,_0x466ed9,_0x485283;this[_0x4417c2(0x23e)]=(_0x5cd4d4=_0x2730e4['color'])!=null?_0x5cd4d4:this[_0x4417c2(0x23e)],this[_0x4417c2(0x521)]=(_0x43bce4=_0x2730e4[_0x4417c2(0x326)])!=null?_0x43bce4:this[_0x4417c2(0x521)],this[_0x4417c2(0x1e7)]=(_0x580835=_0x2730e4[_0x4417c2(0x534)])!=null?_0x580835:this[_0x4417c2(0x1e7)],this[_0x4417c2(0x3fd)]=(_0x466ed9=_0x2730e4[_0x4417c2(0x1e8)])!=null?_0x466ed9:this['_name'],this[_0x4417c2(0x517)]=(_0x485283=_0x2730e4[_0x4417c2(0x30b)])!=null?_0x485283:this[_0x4417c2(0x517)],this['transformByState']({'width':_0x2730e4[_0x4417c2(0x544)],'height':_0x2730e4[_0x4417c2(0x2c8)]});}[_0x364156(0x356)](_0x4dc5df){const _0xcf6de6=_0x364156,{row:_0x1b0e1b,column:_0x3d29e1}=_0x4dc5df;if(_0x1b0e1b>=this[_0xcf6de6(0x1e7)][_0xcf6de6(0x530)]&&_0x1b0e1b<=this['_range'][_0xcf6de6(0x1cf)]&&_0x3d29e1>=this[_0xcf6de6(0x1e7)]['startColumn']&&_0x3d29e1<=this[_0xcf6de6(0x1e7)][_0xcf6de6(0x296)]){this[_0xcf6de6(0x4b4)]({'hovered':!0x0});return;}this['setShapeProps']({'hovered':!0x1});}['triggerDblclick'](_0x473bb3){return!0x1;}[_0x364156(0x207)](_0x24c5fe){const _0x490198=_0x364156;R[_0x490198(0x39e)][_0x490198(0x3a1)](_0x24c5fe,{'width':this[_0x490198(0x544)],'height':this[_0x490198(0x2c8)],'strokeWidth':qs,'stroke':this[_0x490198(0x23e)],'evented':!0x1}),this['_hovered']&&(_0x24c5fe[_0x490198(0x52a)](),_0x24c5fe['transform'](0x1,0x0,0x0,0x1,this['width'],this[_0x490198(0x517)]===_0x490198(0x39c)?0x0:-le),Te['drawWith'](_0x24c5fe,{'text':this['_name'],'color':this[_0x490198(0x23e)]}),_0x24c5fe[_0x490198(0x36d)]());}}var zs=Object[_0x364156(0x53c)],Zs=Object['getOwnPropertyDescriptor'],Qs=(_0x238ace,_0x57b91d,_0x5f038b,_0x5016ce)=>{const _0x1499c5=_0x364156;for(var _0x49c810=_0x5016ce>0x1?void 0x0:_0x5016ce?Zs(_0x57b91d,_0x5f038b):_0x57b91d,_0x58193c=_0x238ace[_0x1499c5(0x37d)]-0x1,_0x4e7842;_0x58193c>=0x0;_0x58193c--)(_0x4e7842=_0x238ace[_0x58193c])&&(_0x49c810=(_0x5016ce?_0x4e7842(_0x57b91d,_0x5f038b,_0x49c810):_0x4e7842(_0x49c810))||_0x49c810);return _0x5016ce&&_0x49c810&&zs(_0x57b91d,_0x5f038b,_0x49c810),_0x49c810;},he=(_0x4c8774,_0x13bd04)=>(_0x23f543,_0x4ef4e2)=>_0x13bd04(_0x23f543,_0x4ef4e2,_0x4c8774);const ei=0x1389;let de=class extends a[_0x364156(0x306)]{constructor(_0x396420,_0x405667,_0x34d8bc,_0x1ff816){const _0x5c2cf6=_0x364156;super(),d(this,_0x5c2cf6(0x3a7),new Set()),d(this,_0x5c2cf6(0x453),null),(this['_collabCursorController']=_0x396420,this['_univerInstanceService']=_0x405667,this['_renderManagerService']=_0x34d8bc,this[_0x5c2cf6(0x301)]=_0x1ff816,this[_0x5c2cf6(0x477)]());}get[_0x364156(0x45c)](){const _0x3d988d=_0x364156;return this['_renderManagerService'][_0x3d988d(0x1f4)](this[_0x3d988d(0x53b)][_0x3d988d(0x31d)](a['UniverInstanceType'][_0x3d988d(0x350)])['getUnitId']())[_0x3d988d(0x500)](z[_0x3d988d(0x399)]);}get[_0x364156(0x3a6)](){const _0x5854ce=_0x364156;return this[_0x5854ce(0x53b)][_0x5854ce(0x31d)](a[_0x5854ce(0x38c)][_0x5854ce(0x350)])[_0x5854ce(0x38b)]();}['_init'](){const _0x3e1eeb=_0x364156;this['_sheetSkeletonManagerService'][_0x3e1eeb(0x4a7)][_0x3e1eeb(0x1f5)](C[_0x3e1eeb(0x52b)](this[_0x3e1eeb(0x55d)]),C[_0x3e1eeb(0x369)](_0x20ad51=>{const _0x2e07d3=_0x3e1eeb;if(_0x20ad51){const _0x21d5b2=_0x20ad51['sheetId'];return g[_0x2e07d3(0x457)](this[_0x2e07d3(0x37b)][_0x2e07d3(0x45a)](this[_0x2e07d3(0x3a6)]),this[_0x2e07d3(0x301)][_0x2e07d3(0x1d7)])[_0x2e07d3(0x1f5)](C[_0x2e07d3(0x27d)](([_0x2d8283,_0x3ac477])=>{const _0x57e1b7=new Map();return _0x2d8283['forEach']((_0x16a0b8,_0xc1bf43)=>{const _0x2b0606=_0x17ba;if(_0x16a0b8['sheetID']===_0x21d5b2){const _0x55084c={..._0x16a0b8};_0x55084c['color']=_0x3ac477[_0x16a0b8['color']],_0x57e1b7[_0x2b0606(0x490)](_0xc1bf43,_0x55084c);}}),{'skeleton':_0x20ad51,'cursors':_0x57e1b7};}));}return g['of']({'skeleton':null,'cursors':new Map()});}))[_0x3e1eeb(0x4f5)](({skeleton:_0x261efd,cursors:_0x303b4f})=>{const _0xff9eb0=_0x3e1eeb;this[_0xff9eb0(0x395)](),_0x261efd&&this[_0xff9eb0(0x3cf)](_0x261efd,_0x303b4f);}),this[_0x3e1eeb(0x45c)]['currentSkeleton$'][_0x3e1eeb(0x4f5)](_0x42e571=>{const _0x50c0f1=_0x3e1eeb;if(_0x42e571==null)return;const {skeleton:_0x35bd34}=_0x42e571,_0x1edbde=this[_0x50c0f1(0x3ea)][_0x50c0f1(0x1f4)](this['_unitId']),{scene:_0x590d1b}=_0x1edbde;_0x590d1b[_0x50c0f1(0x439)][_0x50c0f1(0x2ef)](ke(_0x4d047d=>{const _0x2d705a=_0x50c0f1;var _0x445916,_0x368b83;const {offsetX:_0x362682,offsetY:_0x13860b}=_0x4d047d,{x:_0x263311,y:_0x297e20}=_0x590d1b[_0x2d705a(0x56e)](R['Vector2']['FromArray']([_0x362682,_0x13860b])),{scaleX:_0x3b6fa5,scaleY:_0x27f48f}=_0x590d1b['getAncestorScale'](),_0x12499d=_0x590d1b[_0x2d705a(0x47d)](z['VIEWPORT_KEY'][_0x2d705a(0x51d)]),_0x419386=_0x590d1b[_0x2d705a(0x4d2)](R[_0x2d705a(0x1d5)][_0x2d705a(0x1c4)]([_0x263311,_0x297e20]),_0x12499d),_0x331a6f=_0x35bd34[_0x2d705a(0x4f2)](_0x362682,_0x13860b,_0x3b6fa5,_0x27f48f,_0x419386);((_0x445916=this['_lastPointer'])==null?void 0x0:_0x445916['column'])===_0x331a6f[_0x2d705a(0x507)]&&((_0x368b83=this[_0x2d705a(0x453)])==null?void 0x0:_0x368b83[_0x2d705a(0x3e0)])===_0x331a6f[_0x2d705a(0x3e0)]||this[_0x2d705a(0x3a7)][_0x2d705a(0x2b1)](_0x4115e1=>{const _0x235ed7=_0x2d705a;_0x4115e1[_0x235ed7(0x356)](_0x331a6f);});},0x64));});}['_updateCollabCursors'](_0x240a4f,_0x30b4ec){const _0x2f1706=_0x364156;var _0x520619;const _0x4b87ac=(_0x520619=this['_sheetSkeletonManagerService'][_0x2f1706(0x4d0)]())==null?void 0x0:_0x520619[_0x2f1706(0x2b7)];if(!_0x4b87ac)return;const _0x1832c4=this[_0x2f1706(0x366)]();if(!_0x1832c4)return;this['_cursors'][_0x2f1706(0x2b1)](_0x3fe21a=>{const _0x5ea537=_0x2f1706;_0x3fe21a[_0x5ea537(0x2c0)]();});const {scene:_0x259177}=_0x1832c4,_0x4dd4cf=ti(Array[_0x2f1706(0x259)](_0x30b4ec[_0x2f1706(0x3bc)]()))[_0x2f1706(0x27d)](_0x535cd5=>{const _0x3314f0=_0x2f1706,{color:_0x22f361,range:_0x7226f8,name:_0x3cc86e,selection:_0x3bc4a8,sheetID:_0x45f478}=_0x535cd5,{startColumn:_0x34821b,startRow:_0x4f6433,endColumn:_0x56e91d,endRow:_0x2cd67d}=_0x7226f8,_0x333ddc=z[_0x3314f0(0x3bf)](_0x4f6433,_0x34821b,_0x259177,_0x4b87ac),_0x5eacbd=z[_0x3314f0(0x3bf)](_0x2cd67d,_0x56e91d,_0x259177,_0x4b87ac),{columnHeaderHeightAndMarginTop:_0x114875}=_0x4b87ac,{startX:_0x1abc05,startY:_0xd16c9}=_0x333ddc,{endX:_0x4f4438,endY:_0x1d7d7d}=_0x5eacbd,_0x38ee4f=_0x4f4438-_0x1abc05,_0x8c36d9=_0x1d7d7d-_0xd16c9,_0x46471e={'labelPosition':_0xd16c9-_0x114875>=le?'top':_0x3314f0(0x39c),'sheetID':_0x45f478,'range':_0x7226f8,'color':_0x22f361,'name':_0x3cc86e,'selection':_0x3bc4a8,'left':_0x1abc05,'top':_0xd16c9,'width':_0x38ee4f,'height':_0x8c36d9,'evented':!0x1,'zIndex':ei};return new Js(_0x3cc86e,_0x46471e);});_0x259177[_0x2f1706(0x431)](_0x4dd4cf,Xs),this['_cursors']=new Set(_0x4dd4cf);}[_0x364156(0x395)](){const _0x6d5a1e=_0x364156;var _0x49c243;(_0x49c243=this[_0x6d5a1e(0x3a7)])==null||_0x49c243[_0x6d5a1e(0x2b1)](_0x2249ae=>_0x2249ae[_0x6d5a1e(0x266)]());}[_0x364156(0x366)](){const _0x5e3323=_0x364156;return z[_0x5e3323(0x4fc)](this['_univerInstanceService'],this[_0x5e3323(0x3ea)]);}};de=Qs([a['OnLifecycle'](a[_0x364156(0x20a)][_0x364156(0x44f)],de),he(0x0,h[_0x364156(0x24e)](Z)),he(0x1,a[_0x364156(0x58c)]),he(0x2,R['IRenderManagerService']),he(0x3,h[_0x364156(0x24e)](a[_0x364156(0x3e3)]))],de);function ti(_0x4f21d7){const _0x291c10=_0x364156,_0x39a547=new Map();return _0x4f21d7[_0x291c10(0x2b1)](_0x1b7e19=>{const _0x111f0c=_0x291c10;if(_0x39a547[_0x111f0c(0x2bc)](_0x1b7e19[_0x111f0c(0x422)])){const _0x49fdb2=_0x39a547[_0x111f0c(0x3f4)](_0x1b7e19[_0x111f0c(0x422)]);_0x49fdb2[_0x111f0c(0x1e8)]+=',\x20'+_0x1b7e19['name'];}else _0x39a547[_0x111f0c(0x490)](_0x1b7e19['selection'],_0x1b7e19);}),Array[_0x291c10(0x259)](_0x39a547[_0x291c10(0x3bc)]());}var L=function(){const _0x2c325b=_0x364156;return L=Object[_0x2c325b(0x3e9)]||function(_0x543e14){const _0x695112=_0x2c325b;for(var _0xb58790,_0xd44c3a=0x1,_0x1a2142=arguments[_0x695112(0x37d)];_0xd44c3a<_0x1a2142;_0xd44c3a++){_0xb58790=arguments[_0xd44c3a];for(var _0x15d8bd in _0xb58790)Object[_0x695112(0x419)][_0x695112(0x28a)]['call'](_0xb58790,_0x15d8bd)&&(_0x543e14[_0x15d8bd]=_0xb58790[_0x15d8bd]);}return _0x543e14;},L[_0x2c325b(0x31b)](this,arguments);},si=function(_0x3997c9,_0x59a3a3){const _0x2ecd5f=_0x364156;var _0x5059b4={};for(var _0x10c504 in _0x3997c9)Object[_0x2ecd5f(0x419)][_0x2ecd5f(0x28a)][_0x2ecd5f(0x275)](_0x3997c9,_0x10c504)&&_0x59a3a3[_0x2ecd5f(0x222)](_0x10c504)<0x0&&(_0x5059b4[_0x10c504]=_0x3997c9[_0x10c504]);if(_0x3997c9!=null&&typeof Object[_0x2ecd5f(0x2e2)]==_0x2ecd5f(0x4dc)){for(var _0x4ea08e=0x0,_0x10c504=Object['getOwnPropertySymbols'](_0x3997c9);_0x4ea08e<_0x10c504[_0x2ecd5f(0x37d)];_0x4ea08e++)_0x59a3a3[_0x2ecd5f(0x222)](_0x10c504[_0x4ea08e])<0x0&&Object['prototype']['propertyIsEnumerable']['call'](_0x3997c9,_0x10c504[_0x4ea08e])&&(_0x5059b4[_0x10c504[_0x4ea08e]]=_0x3997c9[_0x10c504[_0x4ea08e]]);}return _0x5059b4;},Ke=w[_0x364156(0x1cd)](function(_0x313978,_0x30c8ee){const _0x1d72f4=_0x364156;var _0x189d9f=_0x313978[_0x1d72f4(0x414)],_0xce8df0=_0x313978['id'],_0x2bcd94=_0x313978[_0x1d72f4(0x57a)],_0x4fc37e=_0x313978[_0x1d72f4(0x440)],_0x27aade=si(_0x313978,[_0x1d72f4(0x414),'id','className',_0x1d72f4(0x440)]),_0x3e010f=_0x1d72f4(0x412)[_0x1d72f4(0x44e)](_0xce8df0,'\x20')[_0x1d72f4(0x44e)](_0x2bcd94||'')[_0x1d72f4(0x52f)](),_0x4ff895=w[_0x1d72f4(0x3e7)]('_'[_0x1d72f4(0x44e)](ri()));return Dt(_0x189d9f,''[_0x1d72f4(0x44e)](_0xce8df0),{'defIds':_0x189d9f[_0x1d72f4(0x258)],'idSuffix':_0x4ff895['current']},L({'ref':_0x30c8ee,'className':_0x3e010f},_0x27aade),_0x4fc37e);});function Dt(_0x556092,_0x29f7d3,_0x333053,_0xd07f43,_0x5ac3a0){const _0x31078c=_0x364156;return w[_0x31078c(0x402)](_0x556092[_0x31078c(0x39d)],L(L({'key':_0x29f7d3},ii(_0x556092,_0x333053,_0x5ac3a0)),_0xd07f43),(ni(_0x556092,_0x333053)[_0x31078c(0x309)]||[])['map'](function(_0x105183,_0x50f798){const _0x177ab9=_0x31078c;return Dt(_0x105183,''[_0x177ab9(0x44e)](_0x29f7d3,'-')[_0x177ab9(0x44e)](_0x556092[_0x177ab9(0x39d)],'-')[_0x177ab9(0x44e)](_0x50f798),_0x333053,void 0x0,_0x5ac3a0);}));}function ii(_0x4d3f27,_0x286c8c,_0x58b2f4){const _0x51e0f8=_0x364156;var _0x18d865=L({},_0x4d3f27[_0x51e0f8(0x50c)]);_0x58b2f4!=null&&_0x58b2f4['colorChannel1']&&_0x18d865['fill']==='colorChannel1'&&(_0x18d865[_0x51e0f8(0x40d)]=_0x58b2f4[_0x51e0f8(0x4e8)]);var _0x33cb3b=_0x286c8c[_0x51e0f8(0x258)];return!_0x33cb3b||_0x33cb3b[_0x51e0f8(0x37d)]===0x0||(_0x4d3f27['tag']===_0x51e0f8(0x1db)&&_0x18d865['xlink:href']&&(_0x18d865[_0x51e0f8(0x4c4)]=_0x18d865[_0x51e0f8(0x4c4)]+_0x286c8c['idSuffix']),Object['entries'](_0x18d865)[_0x51e0f8(0x2b1)](function(_0xad27a4){const _0x25f76a=_0x51e0f8;var _0x5b85f6=_0xad27a4[0x0],_0xf3b111=_0xad27a4[0x1];typeof _0xf3b111==_0x25f76a(0x56f)&&(_0x18d865[_0x5b85f6]=_0xf3b111[_0x25f76a(0x39b)](/url\(#(.*)\)/,_0x25f76a(0x38d)['concat'](_0x286c8c[_0x25f76a(0x4b2)],')')));})),_0x18d865;}function ni(_0x1b1d02,_0x35d621){const _0x37d7c3=_0x364156;var _0x498759,_0x93b017=_0x35d621[_0x37d7c3(0x258)];return!_0x93b017||_0x93b017[_0x37d7c3(0x37d)]===0x0?_0x1b1d02:_0x1b1d02['tag']===_0x37d7c3(0x288)&&(!((_0x498759=_0x1b1d02[_0x37d7c3(0x309)])===null||_0x498759===void 0x0)&&_0x498759[_0x37d7c3(0x37d)])?L(L({},_0x1b1d02),{'children':_0x1b1d02[_0x37d7c3(0x309)][_0x37d7c3(0x27d)](function(_0x59a75b){const _0x35e531=_0x37d7c3;return typeof _0x59a75b[_0x35e531(0x50c)]['id']==_0x35e531(0x56f)&&_0x93b017&&_0x93b017[_0x35e531(0x222)](_0x59a75b['attrs']['id'])>-0x1?L(L({},_0x59a75b),{'attrs':L(L({},_0x59a75b[_0x35e531(0x50c)]),{'id':_0x59a75b['attrs']['id']+_0x35d621[_0x35e531(0x4b2)]})}):_0x59a75b;})}):_0x1b1d02;}function ri(){return Math['random']()['toString'](0x24)['substring'](0x2,0x8);}Ke[_0x364156(0x36e)]=_0x364156(0x545);var oi={'tag':_0x364156(0x4cc),'attrs':{'fill':_0x364156(0x3ca),'viewBox':_0x364156(0x2a9),'width':'1em','height':_0x364156(0x2af)},'children':[{'tag':'g','attrs':{'clipPath':_0x364156(0x503)},'children':[{'tag':_0x364156(0x54b),'attrs':{'stroke':_0x364156(0x4b7),'d':_0x364156(0x2ac),'strokeLinecap':_0x364156(0x2bd),'strokeLinejoin':_0x364156(0x2bd),'strokeWidth':1.2}}]},{'tag':_0x364156(0x288),'attrs':{},'children':[{'tag':_0x364156(0x4aa),'attrs':{'id':'off-line-single_clip0_910_343'},'children':[{'tag':_0x364156(0x54b),'attrs':{'fill':_0x364156(0x473),'d':'M0\x200H16V16H0z'}}]}]}],'defIds':[_0x364156(0x294)]},Ut=w[_0x364156(0x1cd)](function(_0x594bf2,_0x16d3b5){const _0x2bcc52=_0x364156;return w[_0x2bcc52(0x402)](Ke,Object['assign']({},_0x594bf2,{'id':_0x2bcc52(0x449),'ref':_0x16d3b5,'icon':oi}));});Ut[_0x364156(0x36e)]='OffLineSingle';var ai={'tag':_0x364156(0x4cc),'attrs':{'fill':_0x364156(0x3ca),'viewBox':_0x364156(0x424),'width':_0x364156(0x2af),'height':_0x364156(0x2af)},'children':[{'tag':'g','attrs':{'clipPath':_0x364156(0x49c)},'children':[{'tag':_0x364156(0x54b),'attrs':{'stroke':_0x364156(0x4b7),'d':_0x364156(0x3a3),'strokeLinecap':_0x364156(0x2bd),'strokeLinejoin':_0x364156(0x2bd),'strokeWidth':1.2}}]},{'tag':_0x364156(0x288),'attrs':{},'children':[{'tag':_0x364156(0x4aa),'attrs':{'id':_0x364156(0x268)},'children':[{'tag':'path','attrs':{'fill':'#fff','d':_0x364156(0x515),'transform':_0x364156(0x3ef)}}]}]}],'defIds':[_0x364156(0x268)]},Pt=w[_0x364156(0x1cd)](function(_0x2de6bc,_0x3d614e){const _0x4b0c02=_0x364156;return w[_0x4b0c02(0x402)](Ke,Object[_0x4b0c02(0x3e9)]({},_0x2de6bc,{'id':_0x4b0c02(0x24f),'ref':_0x3d614e,'icon':ai}));});Pt[_0x364156(0x36e)]=_0x364156(0x216);const ci=_0x364156(0x34d),li=_0x364156(0x40b),hi=_0x364156(0x41c),_i=_0x364156(0x42d),ui=_0x364156(0x22e),ne={'onlineStatusIcon':ci,'onlineStatusTitle':li,'onlineStatus':hi,'online':_i,'offline':ui};function di(_0x30a66a){const _0x2bdc40=_0x364156;switch(_0x30a66a){case U['OFFLINE']:return _0x2bdc40(0x21c);case U[_0x2bdc40(0x49d)]:return _0x2bdc40(0x42e);case U[_0x2bdc40(0x380)]:return _0x2bdc40(0x3eb);case U[_0x2bdc40(0x2d6)]:return _0x2bdc40(0x351);case U[_0x2bdc40(0x26f)]:case U['AWAITING']:case U['AWAITING_WITH_PENDING']:return _0x2bdc40(0x50e);case U[_0x2bdc40(0x311)]:return _0x2bdc40(0x58a);}}function wt(_0x1ec2c3){const _0x1565d8=_0x364156,{status$:_0x17a548}=_0x1ec2c3,_0x433f6e=M['useObservable'](_0x17a548,U[_0x1565d8(0x2d6)]),_0x34100c=ht[_0x1565d8(0x244)](a[_0x1565d8(0x1fb)]),_0xf626cd=_0x433f6e!==U[_0x1565d8(0x209)],_0x33f9a6=_0x34100c['t'](di(_0x433f6e)),_0x243d81=Bt(ne[_0x1565d8(0x26c)],{[ne[_0x1565d8(0x3ec)]]:_0xf626cd,[ne['offline']]:!_0xf626cd}),_0x22f315=_0xf626cd?w[_0x1565d8(0x402)](Pt,null):w['createElement'](Ut,null);return w[_0x1565d8(0x402)](_0x1565d8(0x298),{'className':_0x243d81},w[_0x1565d8(0x402)](_0x1565d8(0x298),{'className':ne[_0x1565d8(0x212)]},_0x22f315),w[_0x1565d8(0x402)](_0x1565d8(0x298),{'className':ne[_0x1565d8(0x506)]},_0x33f9a6));}var Si=Object[_0x364156(0x53c)],vi=Object[_0x364156(0x55c)],gi=(_0x3fa320,_0x31f291,_0x520ca6,_0x586e20)=>{const _0xcf1ddf=_0x364156;for(var _0x26a1c7=_0x586e20>0x1?void 0x0:_0x586e20?vi(_0x31f291,_0x520ca6):_0x31f291,_0x4c81b0=_0x3fa320[_0xcf1ddf(0x37d)]-0x1,_0x346ff6;_0x4c81b0>=0x0;_0x4c81b0--)(_0x346ff6=_0x3fa320[_0x4c81b0])&&(_0x26a1c7=(_0x586e20?_0x346ff6(_0x31f291,_0x520ca6,_0x26a1c7):_0x346ff6(_0x26a1c7))||_0x26a1c7);return _0x586e20&&_0x26a1c7&&Si(_0x31f291,_0x520ca6,_0x26a1c7),_0x26a1c7;},_e=(_0x35e81a,_0x2d8eba)=>(_0x2937ca,_0x4854b0)=>_0x2d8eba(_0x2937ca,_0x4854b0,_0x35e81a);exports[_0x364156(0x4a3)]=class extends a[_0x364156(0x262)]{constructor(_0x1e569a,_0x2313c2,_0x1f12b8,_0x45e2d1){const _0x4838d5=_0x364156;super(),d(this,_0x4838d5(0x502),new g[(_0x4838d5(0x2dc))](U[_0x4838d5(0x2d6)])),(this['_univerInstanceService']=_0x1e569a,this[_0x4838d5(0x555)]=_0x2313c2,this[_0x4838d5(0x34f)]=_0x1f12b8,this[_0x4838d5(0x47c)]=_0x45e2d1,this['_initStatusComponent'](),this['_initStatusListener']());}['_initStatusComponent'](){const _0x566d20=_0x364156;this[_0x566d20(0x1e6)](this[_0x566d20(0x555)][_0x566d20(0x338)](M[_0x566d20(0x35b)][_0x566d20(0x225)],()=>ht[_0x566d20(0x51a)](fi({'status$':this['_status$'][_0x566d20(0x485)]()}),this[_0x566d20(0x34f)])));}[_0x364156(0x4e9)](){const _0x5c62a3=_0x364156;this[_0x5c62a3(0x1e6)](a[_0x5c62a3(0x4a1)](this[_0x5c62a3(0x53b)][_0x5c62a3(0x450)][_0x5c62a3(0x1f5)](g[_0x5c62a3(0x369)](()=>{const _0x2c2b6d=_0x5c62a3,_0x55aea7=this[_0x2c2b6d(0x53b)]['getFocusedUnit']();return _0x55aea7?this[_0x2c2b6d(0x47c)][_0x2c2b6d(0x21d)](_0x55aea7[_0x2c2b6d(0x38b)]()):g['of'](null);}),g['switchMap'](_0x1a927e=>_0x1a927e?_0x1a927e[_0x5c62a3(0x48a)]:g['of'](U[_0x5c62a3(0x2d6)])))[_0x5c62a3(0x4f5)](_0x556918=>{const _0xdd3aef=_0x5c62a3;this[_0xdd3aef(0x502)][_0xdd3aef(0x1d2)](_0x556918);})));}},exports[_0x364156(0x4a3)]=gi([a['OnLifecycle'](a['LifecycleStages'][_0x364156(0x29c)],exports[_0x364156(0x4a3)]),_e(0x0,a[_0x364156(0x58c)]),_e(0x1,M[_0x364156(0x576)]),_e(0x2,h[_0x364156(0x24e)](h[_0x364156(0x443)])),_e(0x3,h[_0x364156(0x24e)](exports['CollaborationController']))],exports[_0x364156(0x4a3)]);function fi(_0x243b9a){const {status$:_0x20acd8}=_0x243b9a;return function(){const _0x2636e3=_0x17ba;return w[_0x2636e3(0x402)](wt,{'status$':_0x20acd8});};}const Xe=h[_0x364156(0x493)](_0x364156(0x2f9));var mi=Object[_0x364156(0x53c)],Ii=Object[_0x364156(0x55c)],pi=(_0xb8b00f,_0x26edd2,_0x5a0649,_0x10ec1d)=>{const _0x421d4b=_0x364156;for(var _0x36d3da=_0x10ec1d>0x1?void 0x0:_0x10ec1d?Ii(_0x26edd2,_0x5a0649):_0x26edd2,_0x4448bd=_0xb8b00f[_0x421d4b(0x37d)]-0x1,_0x121ae0;_0x4448bd>=0x0;_0x4448bd--)(_0x121ae0=_0xb8b00f[_0x4448bd])&&(_0x36d3da=(_0x10ec1d?_0x121ae0(_0x26edd2,_0x5a0649,_0x36d3da):_0x121ae0(_0x36d3da))||_0x36d3da);return _0x10ec1d&&_0x36d3da&&mi(_0x26edd2,_0x5a0649,_0x36d3da),_0x36d3da;},J=(_0x53411a,_0x58c37c)=>(_0x1e0ca9,_0x4fc537)=>_0x58c37c(_0x1e0ca9,_0x4fc537,_0x53411a);exports['DataLoaderController']=class extends a['RxDisposable']{constructor(_0x2eef09,_0x1e2882,_0x5bbc96,_0x17d988,_0xd1926e,_0x3d799e){const _0x443d2a=_0x364156;super(),this['_urlService']=_0x2eef09,this[_0x443d2a(0x3f3)]=_0x1e2882,this[_0x443d2a(0x1e1)]=_0x5bbc96,this['_localCacheService']=_0x17d988,this[_0x443d2a(0x472)]=_0xd1926e,_0x3d799e?_0x3d799e==null||_0x3d799e[_0x443d2a(0x553)]()[_0x443d2a(0x541)](()=>this[_0x443d2a(0x477)]()):(this['_logService'][_0x443d2a(0x3b3)](_0x443d2a(0x432),'No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.'),this[_0x443d2a(0x477)]());}async[_0x364156(0x477)](){const _0xb32f48=_0x364156,_0x498689=this[_0xb32f48(0x415)][_0xb32f48(0x429)](_0xb32f48(0x1fc)),_0x530ca1=this['_urlService'][_0xb32f48(0x429)]('type');if(!_0x498689||!_0x530ca1){this[_0xb32f48(0x3f3)]['debug'](_0xb32f48(0x432),_0xb32f48(0x32a));return;}switch(Number(_0x530ca1)){case $[_0xb32f48(0x350)]:{const _0x5d9bfe=await this[_0xb32f48(0x267)](_0x498689);this[_0xb32f48(0x2ff)](_0x5d9bfe);break;}case $[_0xb32f48(0x287)]:{await this[_0xb32f48(0x21f)](_0x498689);break;}default:{this[_0xb32f48(0x3f3)]['error'](_0xb32f48(0x432),_0xb32f48(0x308));break;}}}async['_setupSubUnitSync'](_0x35c0e6){const _0x2cdd00=_0x364156;await this[_0x2cdd00(0x2f7)](_0x35c0e6),_0x35c0e6[_0x2cdd00(0x55e)][_0x2cdd00(0x1f5)](g[_0x2cdd00(0x52b)](this[_0x2cdd00(0x55d)]))[_0x2cdd00(0x4f5)](_0x2ef658=>{const _0x4b39d9=_0x2cdd00;_0x2ef658&&this[_0x4b39d9(0x565)](_0x2ef658);}),this['_urlService']['urlChange$']['pipe'](g[_0x2cdd00(0x52b)](this['dispose$']))[_0x2cdd00(0x4f5)](()=>this[_0x2cdd00(0x2f7)](_0x35c0e6));}[_0x364156(0x565)](_0x57dc11,_0x5596c9=!0x1){const _0x384084=_0x364156,_0x28fffb=this[_0x384084(0x415)]['getParam']('subunit');_0x57dc11[_0x384084(0x25b)]()!==_0x28fffb&&this[_0x384084(0x415)]['setParam'](_0x384084(0x32c),_0x57dc11[_0x384084(0x25b)](),_0x5596c9);}async[_0x364156(0x2f7)](_0x71e80f){const _0x2db0da=_0x364156;var _0x5b471d;const _0x31cff8=this[_0x2db0da(0x415)]['getParam'](_0x2db0da(0x32c));if(!_0x31cff8||!_0x71e80f[_0x2db0da(0x31e)](_0x31cff8)){const _0x259ed9=_0x71e80f[_0x2db0da(0x413)]()[0x0],_0x437616=_0x71e80f[_0x2db0da(0x31e)](_0x259ed9);if(!_0x437616)return;this[_0x2db0da(0x565)](_0x437616,!0x0),await this['_commandService']['executeCommand'](E[_0x2db0da(0x536)]['id'],{'unitId':_0x71e80f[_0x2db0da(0x38b)](),'subUnitId':_0x259ed9});return;}((_0x5b471d=_0x71e80f['getActiveSheet']())==null?void 0x0:_0x5b471d[_0x2db0da(0x25b)]())!==_0x31cff8&&await this['_commandService'][_0x2db0da(0x291)](E[_0x2db0da(0x536)]['id'],{'unitId':_0x71e80f[_0x2db0da(0x38b)](),'subUnitId':_0x31cff8});}async['_loadSheet'](_0x389703){const _0x52cf7b=_0x364156;let _0x181999=0x0;const _0x254e14=await this[_0x52cf7b(0x520)]['loadOfflineData'](_0x389703);return _0x254e14&&(_0x254e14[_0x52cf7b(0x364)]||_0x254e14[_0x52cf7b(0x480)][_0x52cf7b(0x37d)]!==0x0)&&(_0x181999=_0x254e14['rev']),_0x181999===0x0&&this[_0x52cf7b(0x3f3)][_0x52cf7b(0x3b3)]('[DataLoaderController]',_0x52cf7b(0x284)),this[_0x52cf7b(0x472)][_0x52cf7b(0x1ec)](_0x389703,_0x181999);}async['_loadDoc'](_0x4cd594){const _0x536456=_0x364156;let _0x4b8c78=0x0;const _0x17be73=await this['_localCacheService'][_0x536456(0x435)](_0x4cd594);return _0x17be73&&(_0x17be73['awaitingChangeset']||_0x17be73[_0x536456(0x480)]['length']!==0x0)&&(_0x4b8c78=_0x17be73[_0x536456(0x57c)]),_0x4b8c78===0x0&&this['_logService'][_0x536456(0x3b3)]('[DataLoaderController]',_0x536456(0x284)),this[_0x536456(0x472)][_0x536456(0x3e8)](_0x4cd594,_0x4b8c78);}},exports['DataLoaderController']=pi([a['OnLifecycle'](a['LifecycleStages']['Starting'],exports[_0x364156(0x546)]),J(0x0,Xe),J(0x1,a[_0x364156(0x476)]),J(0x2,a['ICommandService']),J(0x3,h[_0x364156(0x24e)](exports[_0x364156(0x403)])),J(0x4,h[_0x364156(0x24e)](u[_0x364156(0x3ce)])),J(0x5,h['Optional'](Ft[_0x364156(0x554)]))],exports[_0x364156(0x546)]);var Ei=Object[_0x364156(0x53c)],Ci=Object['getOwnPropertyDescriptor'],bi=(_0x40fcc4,_0x334356,_0x2b33bb,_0x1242a3)=>{const _0x2e14e8=_0x364156;for(var _0x566ab9=_0x1242a3>0x1?void 0x0:_0x1242a3?Ci(_0x334356,_0x2b33bb):_0x334356,_0x31bef1=_0x40fcc4[_0x2e14e8(0x37d)]-0x1,_0x39e423;_0x31bef1>=0x0;_0x31bef1--)(_0x39e423=_0x40fcc4[_0x31bef1])&&(_0x566ab9=(_0x1242a3?_0x39e423(_0x334356,_0x2b33bb,_0x566ab9):_0x39e423(_0x566ab9))||_0x566ab9);return _0x1242a3&&_0x566ab9&&Ei(_0x334356,_0x2b33bb,_0x566ab9),_0x566ab9;},rt=(_0x55bf33,_0x5ae342)=>(_0x10ccf6,_0x47ce11)=>_0x5ae342(_0x10ccf6,_0x47ce11,_0x55bf33);const Ti='DEFAULT_FILE_NAME',Ri=_0x364156(0x200);let Se=class extends a['Disposable']{constructor(_0x23b714,_0x3aee87){const _0x3e6784=_0x364156;super(),this[_0x3e6784(0x53b)]=_0x23b714,this[_0x3e6784(0x53e)]=_0x3aee87,this[_0x3e6784(0x477)]();}[_0x364156(0x477)](){const _0x2390bf=_0x364156;this[_0x2390bf(0x1e6)](a['toDisposable'](this[_0x2390bf(0x53b)][_0x2390bf(0x450)][_0x2390bf(0x4f5)](()=>{const _0x4e617b=_0x2390bf;var _0x22da83;const _0x11258d=this[_0x4e617b(0x53b)][_0x4e617b(0x332)]();let _0x4ef2bc=(_0x22da83=this[_0x4e617b(0x53e)][_0x4e617b(0x58b)](Ti))!=null?_0x22da83:Ri;_0x11258d instanceof a[_0x4e617b(0x2b4)]&&(_0x4ef2bc=_0x11258d[_0x4e617b(0x1e8)]),document['title']=_0x4ef2bc;})));}};Se=bi([a['OnLifecycle'](a[_0x364156(0x20a)][_0x364156(0x365)],Se),rt(0x0,a[_0x364156(0x58c)]),rt(0x1,a[_0x364156(0x36a)])],Se);var Oi=Object[_0x364156(0x53c)],Di=Object[_0x364156(0x55c)],Ui=(_0x15be15,_0x358e74,_0x52160d,_0x27e451)=>{const _0x2c48e8=_0x364156;for(var _0x573d1e=_0x27e451>0x1?void 0x0:_0x27e451?Di(_0x358e74,_0x52160d):_0x358e74,_0x3a86a9=_0x15be15[_0x2c48e8(0x37d)]-0x1,_0x433af6;_0x3a86a9>=0x0;_0x3a86a9--)(_0x433af6=_0x15be15[_0x3a86a9])&&(_0x573d1e=(_0x27e451?_0x433af6(_0x358e74,_0x52160d,_0x573d1e):_0x433af6(_0x573d1e))||_0x573d1e);return _0x27e451&&_0x573d1e&&Oi(_0x358e74,_0x52160d,_0x573d1e),_0x573d1e;},ot=(_0x487a3c,_0x5ed455)=>(_0x196256,_0x1b3968)=>_0x5ed455(_0x196256,_0x1b3968,_0x487a3c);let je=class{constructor(_0x432ba6,_0x3ef7c3){const _0x53852e=_0x364156;this[_0x53852e(0x53e)]=_0x432ba6,this[_0x53852e(0x260)]=_0x3ef7c3;}async['getUnitOnRev'](_0x3f0ab7,_0x4e1e85){const _0x1d9616=_0x364156;var _0x5ee18b;const {unitID:_0x5bf8d9,type:_0x389d06,revision:_0x2934c7=0x0}=_0x4e1e85,_0x12c35a=this[_0x1d9616(0x33f)]()+'/'+_0x389d06+_0x1d9616(0x35f)+_0x5bf8d9+_0x1d9616(0x2c9)+(_0x2934c7===0x1?0x0:_0x2934c7),_0x543ee2=(await this['_httpService'][_0x1d9616(0x3f4)](_0x12c35a))[_0x1d9616(0x1ce)],_0x1956fa=(_0x5ee18b=_0x543ee2[_0x1d9616(0x34a)])==null?void 0x0:_0x5ee18b[_0x1d9616(0x49f)];if(_0x1956fa){const _0xda9d46=_0x1956fa==null?void 0x0:_0x1956fa['originalMeta'],_0x19b538=a[_0x1d9616(0x371)][_0x1d9616(0x3f5)](a[_0x1d9616(0x465)](_0xda9d46));_0x1956fa['originalMeta']=_0x19b538,Object[_0x1d9616(0x392)](_0x1956fa[_0x1d9616(0x532)])[_0x1d9616(0x2b1)](([,_0x487240])=>{const _0x700b1c=_0x1d9616,_0x2fe56e=_0x487240['originalMeta'],_0xa1ea66=a[_0x700b1c(0x371)][_0x700b1c(0x3f5)](a[_0x700b1c(0x465)](_0x2fe56e));_0x487240[_0x700b1c(0x263)]=_0xa1ea66;});}return _0x543ee2;}async[_0x364156(0x3b5)](_0x108e12,_0x4d2b5e){const _0x4f7f13=_0x364156,{unitID:_0x35bce2,type:_0x7ea4b1,blockID:_0x591313}=_0x4d2b5e,_0x2c2828=this[_0x4f7f13(0x44a)]()+'/'+_0x7ea4b1+'/unit/'+_0x35bce2+_0x4f7f13(0x330)+_0x591313;return(await this['_httpService'][_0x4f7f13(0x3f4)](_0x2c2828))[_0x4f7f13(0x1ce)];}async[_0x364156(0x299)](_0x1db271,_0x4b9465){const _0x572348=_0x364156,{unitID:_0x332d0d,type:_0x4b6b8e,from:_0x1ade54,to:_0x547727}=_0x4b9465,_0x3443fb=this[_0x572348(0x44a)]()+'/'+_0x4b6b8e+_0x572348(0x35f)+_0x332d0d+_0x572348(0x498)+_0x1ade54+_0x572348(0x558)+_0x547727;return(await this[_0x572348(0x260)][_0x572348(0x3f4)](_0x3443fb))['body'];}[_0x364156(0x33f)](){const _0x16ec2a=_0x364156;var _0x32551c;return(_0x32551c=this[_0x16ec2a(0x53e)][_0x16ec2a(0x58b)](ut))!=null?_0x32551c:this[_0x16ec2a(0x44a)]();}[_0x364156(0x44a)](){const _0x848fb2=_0x364156;var _0x5c3916;return(_0x5c3916=this['_configService'][_0x848fb2(0x58b)](_t))!=null?_0x5c3916:Vt;}async['getResourcesRequest'](_0x78807c,_0x358e85){const _0x45e535=_0x364156,_0x176f5d='/universer-api/snapshot/'+_0x358e85[_0x45e535(0x451)]+_0x45e535(0x35f)+_0x358e85[_0x45e535(0x1e9)]+_0x45e535(0x3c6);return(await this[_0x45e535(0x260)][_0x45e535(0x3f4)](_0x176f5d,{'params':{'resourceId':JSON['stringify'](_0x358e85['resourceIDs'])}}))[_0x45e535(0x1ce)];}[_0x364156(0x512)](){const _0x3d289d=_0x364156;throw new Error(_0x3d289d(0x2b0));}[_0x364156(0x1cb)](){throw new Error('This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!');}[_0x364156(0x2d0)](){const _0x639058=_0x364156;throw new Error(_0x639058(0x2b0));}};je=Ui([ot(0x0,a[_0x364156(0x36a)]),ot(0x1,h[_0x364156(0x24e)](y[_0x364156(0x54f)]))],je);var Pi=Object[_0x364156(0x53c)],wi=Object[_0x364156(0x55c)],yi=(_0x14cc07,_0x2f6dcf,_0x25e426,_0x3ce4ca)=>{const _0x38d1c2=_0x364156;for(var _0x4150c8=_0x3ce4ca>0x1?void 0x0:_0x3ce4ca?wi(_0x2f6dcf,_0x25e426):_0x2f6dcf,_0x431041=_0x14cc07[_0x38d1c2(0x37d)]-0x1,_0x581164;_0x431041>=0x0;_0x431041--)(_0x581164=_0x14cc07[_0x431041])&&(_0x4150c8=(_0x3ce4ca?_0x581164(_0x2f6dcf,_0x25e426,_0x4150c8):_0x581164(_0x4150c8))||_0x4150c8);return _0x3ce4ca&&_0x4150c8&&Pi(_0x2f6dcf,_0x25e426,_0x4150c8),_0x4150c8;},re=(_0x51caff,_0x2ec54f)=>(_0x526e30,_0x2903d2)=>_0x2ec54f(_0x526e30,_0x2903d2,_0x51caff);let He=class extends a['LocalUndoRedoService']{constructor(_0x20ff55,_0x11d545,_0x3d3ec8,_0x4689ee,_0x323ba8){const _0x541d36=_0x364156;super(_0x20ff55,_0x11d545,_0x3d3ec8),this[_0x541d36(0x456)]=_0x4689ee,this['_logService']=_0x323ba8;}['transformUndoRedo'](_0x159726,_0x296343){const _0xcd131e=_0x364156,_0x101a73=this[_0xcd131e(0x2e1)](_0x159726);if(_0x101a73)try{const _0x415a92=this[_0xcd131e(0x27c)](_0x101a73,_0x296343);this[_0xcd131e(0x4b5)](_0x159726,_0x415a92);}catch(_0x3f0034){this[_0xcd131e(0x3f3)][_0xcd131e(0x381)](_0xcd131e(0x331),_0x3f0034),this['_clearUndo'](_0x159726);}const _0x4a0637=this[_0xcd131e(0x34b)](_0x159726);if(_0x4a0637)try{const _0x101486=this['_transformStack'](_0x4a0637,_0x296343);this[_0xcd131e(0x48e)](_0x159726,_0x101486);}catch(_0x3b7b48){this['_logService'][_0xcd131e(0x381)](_0x3b7b48),this[_0xcd131e(0x33e)](_0x159726);}}[_0x364156(0x283)](_0x3c3309){const _0x1ccea8=_0x364156,_0x527bba=this[_0x1ccea8(0x2e1)](_0x3c3309);_0x527bba&&(_0x527bba['length']=0x0,this[_0x1ccea8(0x566)]());}[_0x364156(0x33e)](_0x3d7164){const _0x27aa78=_0x364156,_0x431e21=this['_getRedoStack'](_0x3d7164);_0x431e21&&(_0x431e21[_0x27aa78(0x37d)]=0x0,this[_0x27aa78(0x566)]());}['_substituteUndoStack'](_0x2707ab,_0x20c74d){const _0x42c700=_0x364156;this[_0x42c700(0x4b6)][_0x42c700(0x490)](_0x2707ab,_0x20c74d),this[_0x42c700(0x566)]();}['_substituteRedoStack'](_0x413356,_0x167058){const _0x2160d9=_0x364156;this[_0x2160d9(0x2d8)]['set'](_0x413356,_0x167058),this[_0x2160d9(0x566)]();}[_0x364156(0x27c)](_0x476af6,_0x271330){const _0x4204e6=_0x364156,_0x61b8c3=[];let _0xb654dd=_0x271330,_0x219e04=_0x271330;for(let _0x4dbcf1=_0x476af6[_0x4204e6(0x37d)]-0x1;_0x4dbcf1>=0x0;_0x4dbcf1--){const {unitID:_0x4fe6d3,undoMutations:_0x66899f,redoMutations:_0x21c951}=_0x476af6[_0x4dbcf1],_0x397757=this[_0x4204e6(0x456)][_0x4204e6(0x3c0)](_0xb654dd,_0x66899f),_0x2d5eab=this['_transformService'][_0x4204e6(0x3c0)](_0x219e04,_0x21c951);if(u[_0x4204e6(0x4ae)](_0x397757)||u['isTransformMutationsWithChangesetFailure'](_0x2d5eab)){this[_0x4204e6(0x3f3)][_0x4204e6(0x381)]('[CollaborationUndoRedoService]','transformStack\x20failed!',_0x397757,_0x2d5eab);break;}_0xb654dd=_0x397757[_0x4204e6(0x481)],_0x219e04=_0x2d5eab[_0x4204e6(0x481)],_0x61b8c3[_0x4204e6(0x528)]({'unitID':_0x4fe6d3,'undoMutations':_0x397757[_0x4204e6(0x304)],'redoMutations':_0x2d5eab[_0x4204e6(0x304)]});}return _0x61b8c3['reverse']();}};He=yi([re(0x0,a[_0x364156(0x58c)]),re(0x1,a[_0x364156(0x542)]),re(0x2,a[_0x364156(0x49e)]),re(0x3,u[_0x364156(0x3d0)]),re(0x4,a[_0x364156(0x476)])],He);class yt extends a[_0x364156(0x306)]{constructor(){const _0x793ec2=_0x364156;super(),d(this,_0x793ec2(0x43b)),this[_0x793ec2(0x43b)]=g[_0x793ec2(0x29e)](window,_0x793ec2(0x24a))['pipe'](g[_0x793ec2(0x52b)](this[_0x793ec2(0x55d)]),g[_0x793ec2(0x4e2)](0x1),g[_0x793ec2(0x420)](void 0x0));}[_0x364156(0x293)](_0x1d081a,_0x485449,_0x14b1e1=!0x1){const _0x30a3b2=_0x364156,_0x3f8abc=new URL(window[_0x30a3b2(0x445)]['href']);_0x3f8abc[_0x30a3b2(0x341)][_0x30a3b2(0x490)](_0x1d081a,_0x485449),_0x14b1e1?window[_0x30a3b2(0x240)]['replaceState']('','',_0x3f8abc[_0x30a3b2(0x4fd)]()):window[_0x30a3b2(0x240)]['pushState']('','',_0x3f8abc[_0x30a3b2(0x4fd)]());}[_0x364156(0x374)](_0x21e68c,_0x17c1ff=!0x1){const _0x1007a8=_0x364156,_0xcdd185=new URL(window[_0x1007a8(0x445)][_0x1007a8(0x567)]);_0xcdd185[_0x1007a8(0x341)][_0x1007a8(0x4b0)](_0x21e68c),_0x17c1ff?window[_0x1007a8(0x240)][_0x1007a8(0x577)]('','',_0xcdd185[_0x1007a8(0x4fd)]()):window[_0x1007a8(0x240)][_0x1007a8(0x575)]('','',_0xcdd185[_0x1007a8(0x4fd)]());}[_0x364156(0x429)](_0x301f12){const _0x3bf491=_0x364156;var _0x2155f0;return(_0x2155f0=new URL(window[_0x3bf491(0x445)][_0x3bf491(0x567)])['searchParams']['get'](_0x301f12))!=null?_0x2155f0:void 0x0;}}const we=_0x364156(0x509),Li=_0x364156(0x38f),ue=0x6,Ni=1.5,ye=0x4,Mi=1.5,Ai=_0x364156(0x37e);class $i{constructor(_0xf16f68,_0x2ae1ea,_0x1906fb,_0x53ec89){const _0x16ec60=_0x364156;d(this,_0x16ec60(0x2cd),[]),d(this,_0x16ec60(0x467),null),d(this,_0x16ec60(0x215),null),d(this,_0x16ec60(0x347),null),d(this,_0x16ec60(0x53d),null),d(this,_0x16ec60(0x4a6),null),(this[_0x16ec60(0x27f)]=_0xf16f68,this[_0x16ec60(0x3b6)]=_0x2ae1ea,this[_0x16ec60(0x230)]=_0x1906fb,this['_document']=_0x53ec89,this[_0x16ec60(0x2b5)]());}set[_0x364156(0x387)](_0x1f69fb){const _0x99069e=_0x364156;_0x1f69fb?(this[_0x99069e(0x347)]&&this[_0x99069e(0x347)][_0x99069e(0x4f9)](),this[_0x99069e(0x215)]&&this[_0x99069e(0x215)][_0x99069e(0x3f0)]()):(this[_0x99069e(0x347)]&&this[_0x99069e(0x347)]['show'](),this[_0x99069e(0x215)]&&this['_textBubble'][_0x99069e(0x4f9)]());}[_0x364156(0x266)](){const _0x1af258=_0x364156;for(const _0x1474b5 of this[_0x1af258(0x2cd)])_0x1474b5[_0x1af258(0x266)]();this[_0x1af258(0x215)]&&this[_0x1af258(0x215)]['dispose'](),this[_0x1af258(0x347)]&&this[_0x1af258(0x347)][_0x1af258(0x266)](),this['_anchor']&&this[_0x1af258(0x467)][_0x1af258(0x266)](),this['_eventUnsubscribe']&&this[_0x1af258(0x4a6)]();}[_0x364156(0x2b5)](){const _0x7997d3=_0x364156,{_docSkeleton:_0x4e32d2,_document:_0x48371b}=this,{color:_0x436641,name:_0x39d4b2,ranges:_0x5adc83}=this['_cursor'],_0x38b493=_0x48371b[_0x7997d3(0x325)](),{docsLeft:_0x4b3309,docsTop:_0x2f3e68}=_0x38b493,_0x53f3a2=new R[(_0x7997d3(0x4bb))](_0x38b493,_0x4e32d2);for(const {startOffset:_0x5636e6,endOffset:_0x546735,collapsed:_0x2d720e,isActive:_0x244bde}of _0x5adc83){const _0x844fdf=_0x4e32d2[_0x7997d3(0x2f4)](_0x5636e6),_0x276569=_0x4e32d2['findNodePositionByCharIndex'](_0x546735);if(_0x244bde){const {contentBoxPointGroup:_0x372a6c}=_0x53f3a2[_0x7997d3(0x421)](_0x276569,_0x276569);if(_0x372a6c[_0x7997d3(0x37d)]===0x0)continue;this[_0x7997d3(0x32b)](_0x436641,_0x372a6c,_0x4b3309,_0x2f3e68,_0x39d4b2),this[_0x7997d3(0x4a6)]=this[_0x7997d3(0x21b)]();}if(!_0x2d720e){const {contentBoxPointGroup:_0x2a069e}=_0x53f3a2[_0x7997d3(0x421)](_0x844fdf,_0x276569);if(_0x2a069e[_0x7997d3(0x37d)]===0x0)continue;this[_0x7997d3(0x401)](_0x436641,_0x2a069e,_0x4b3309,_0x2f3e68);}}}[_0x364156(0x32b)](_0xe2fbd6,_0x563352,_0xc0ea27,_0x474d74,_0x236cf1){const _0x42c5ab=_0x364156,_0x3c6fe3=this['_getAnchorBounding'](_0x563352),{left:_0x388448,top:_0x412c62,height:_0x5c6524}=_0x3c6fe3,_0x1c8cdb=this['_getScale'](),_0x5147af=Mi/_0x1c8cdb,_0x3d8976=new R[(_0x42c5ab(0x39e))](we+a[_0x42c5ab(0x2f6)][_0x42c5ab(0x57d)](ue),{'left':_0x388448+_0xc0ea27-_0x5147af,'top':_0x412c62+_0x474d74,'height':_0x5c6524,'width':Ni,'fill':_0xe2fbd6||R[_0x42c5ab(0x348)](a[_0x42c5ab(0x1cc)][_0x42c5ab(0x349)],0x0),'strokeWidth':_0x5147af,'stroke':Ai,'evented':!0x0});this['_anchor']=_0x3d8976,this[_0x42c5ab(0x3b6)][_0x42c5ab(0x56c)](_0x3d8976,R['TEXT_RANGE_LAYER_INDEX']);const _0xbbfa1b=new R[(_0x42c5ab(0x39e))](we+a['Tools'][_0x42c5ab(0x57d)](ue),{'left':_0x388448+_0xc0ea27-_0x5147af,'top':_0x412c62+_0x474d74-ye/0x2,'height':ye,'width':ye,'fill':_0xe2fbd6||R[_0x42c5ab(0x348)](a[_0x42c5ab(0x1cc)]['black'],0x0),'strokeWidth':0x0,'stroke':_0xe2fbd6||R[_0x42c5ab(0x348)](a[_0x42c5ab(0x1cc)][_0x42c5ab(0x349)],0x0),'evented':!0x1});this['_anchorDot']=_0xbbfa1b,this[_0x42c5ab(0x3b6)]['addObject'](_0xbbfa1b,R[_0x42c5ab(0x281)]);const _0x160d6b=new Te(we+a[_0x42c5ab(0x2f6)][_0x42c5ab(0x57d)](ue),{'left':_0x388448+_0xc0ea27-_0x5147af,'top':_0x412c62+_0x474d74-le,'text':_0x236cf1,'color':_0xe2fbd6});this[_0x42c5ab(0x215)]=_0x160d6b,this[_0x42c5ab(0x3b6)][_0x42c5ab(0x56c)](_0x160d6b,R[_0x42c5ab(0x281)]),this[_0x42c5ab(0x387)]=!0x1;}[_0x364156(0x21b)](){const _0x4acb6d=_0x364156,_0x452493=this[_0x4acb6d(0x467)]['onPointerEnter$'][_0x4acb6d(0x2ef)](()=>{this['_hover']=!0x0;}),_0x10b8f8=this['_anchor'][_0x4acb6d(0x29a)]['subscribeEvent'](()=>{const _0x1695b0=_0x4acb6d;this[_0x1695b0(0x53d)]&&clearTimeout(this[_0x1695b0(0x53d)]),this['_hideTimer']=setTimeout(()=>{const _0x1b0a13=_0x1695b0;this[_0x1b0a13(0x387)]=!0x1;},0x7d0);});return()=>{const _0x22077c=_0x4acb6d;_0x452493[_0x22077c(0x1c8)](),_0x10b8f8['unsubscribe']();};}[_0x364156(0x401)](_0x15f401,_0x5b1497,_0x5a2df9,_0x96cdc){const _0x5e45c1=_0x364156,_0x4aad84=new a[(_0x5e45c1(0x3a4))](_0x15f401)[_0x5e45c1(0x397)](0.2)['toRgbString'](),_0x47194d=new R[(_0x5e45c1(0x430))](Li+a[_0x5e45c1(0x2f6)][_0x5e45c1(0x57d)](ue),{'pointsGroup':_0x5b1497,'fill':_0x4aad84||R[_0x5e45c1(0x348)](a['COLORS'][_0x5e45c1(0x349)],0.2),'left':_0x5a2df9,'top':_0x96cdc,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x5e45c1(0x2cd)][_0x5e45c1(0x528)](_0x47194d),this[_0x5e45c1(0x3b6)][_0x5e45c1(0x56c)](_0x47194d,R[_0x5e45c1(0x281)]);}[_0x364156(0x289)](_0x247502){const _0x5c6d0e=_0x247502[0x0],_0x578e2f=_0x5c6d0e[0x0],_0x25a6b6=_0x5c6d0e[0x2],{x:_0x44f3e0,y:_0x226e89}=_0x578e2f,{x:_0x3471fd,y:_0x122c47}=_0x25a6b6;return{'left':_0x44f3e0,'top':_0x226e89,'width':_0x3471fd-_0x44f3e0,'height':_0x122c47-_0x226e89};}['_getScale'](){const _0x5e1b30=_0x364156,{scaleX:_0xe1faae,scaleY:_0x4964b9}=this[_0x5e1b30(0x3b6)][_0x5e1b30(0x2c4)]();return Math[_0x5e1b30(0x361)](_0xe1faae,_0x4964b9);}}var ji=Object[_0x364156(0x53c)],Hi=Object[_0x364156(0x55c)],xi=(_0x411cee,_0x4535f8,_0x10f7f1,_0x3834d5)=>{const _0x32e8bb=_0x364156;for(var _0x4e401e=_0x3834d5>0x1?void 0x0:_0x3834d5?Hi(_0x4535f8,_0x10f7f1):_0x4535f8,_0x44c1da=_0x411cee[_0x32e8bb(0x37d)]-0x1,_0x8c64f;_0x44c1da>=0x0;_0x44c1da--)(_0x8c64f=_0x411cee[_0x44c1da])&&(_0x4e401e=(_0x3834d5?_0x8c64f(_0x4535f8,_0x10f7f1,_0x4e401e):_0x8c64f(_0x4e401e))||_0x4e401e);return _0x3834d5&&_0x4e401e&&ji(_0x4535f8,_0x10f7f1,_0x4e401e),_0x4e401e;},oe=(_0x10cc7a,_0x3fbd23)=>(_0x451a4f,_0x3dfd96)=>_0x3fbd23(_0x451a4f,_0x3dfd96,_0x10cc7a);let ve=class extends a[_0x364156(0x306)]{constructor(_0xdb34d9,_0x25abb6,_0x48198e,_0x40ed99,_0x2d940a){const _0x19453f=_0x364156;super(),d(this,_0x19453f(0x3a7),[]),(this[_0x19453f(0x37b)]=_0xdb34d9,this[_0x19453f(0x53b)]=_0x25abb6,this[_0x19453f(0x3ea)]=_0x48198e,this[_0x19453f(0x27b)]=_0x40ed99,this[_0x19453f(0x301)]=_0x2d940a,this['_init']());}[_0x364156(0x477)](){const _0x5ce69b=_0x364156;this['_docSkeletonManagerService'][_0x5ce69b(0x4a7)]['pipe'](C[_0x5ce69b(0x52b)](this[_0x5ce69b(0x55d)]),C[_0x5ce69b(0x369)](_0x4c6b20=>{const _0x2a69a2=_0x5ce69b;if(_0x4c6b20){const _0x34aebd=_0x4c6b20[_0x2a69a2(0x229)]()[_0x2a69a2(0x537)]()['getUnitId']();return g[_0x2a69a2(0x457)](this[_0x2a69a2(0x37b)][_0x2a69a2(0x45a)](_0x34aebd),this[_0x2a69a2(0x301)][_0x2a69a2(0x1d7)])['pipe'](C[_0x2a69a2(0x27d)](([_0x3b526a,_0x4a939f])=>({'skeleton':_0x4c6b20,'cursors':[..._0x3b526a[_0x2a69a2(0x3bc)]()][_0x2a69a2(0x40f)](_0x340b23=>({..._0x340b23,'color':_0x4a939f[_0x340b23[_0x2a69a2(0x202)]]}))})));}return g['of']({'skeleton':null,'cursors':[]});}))['subscribe'](({skeleton:_0x531811,cursors:_0x814169})=>{const _0x3f1dac=_0x5ce69b;this[_0x3f1dac(0x395)](),_0x531811&&this['_updateCollabCursors'](_0x531811,_0x814169);});}['_updateCollabCursors'](_0x2da02a,_0x1287f3){const _0x210286=_0x364156,_0x777323=this['_getDocObject']();if(_0x777323==null)return;const {scene:_0x25e75c,document:_0x1e937e}=_0x777323,_0x256989=_0x1287f3[_0x210286(0x27d)](_0x2550c5=>new $i(_0x2550c5,_0x25e75c,_0x2da02a,_0x1e937e));this['_cursors']=_0x256989;}['_removeCollabCursors'](){const _0x460784=_0x364156;this['_cursors']['forEach'](_0x2bc7b4=>_0x2bc7b4[_0x460784(0x266)]()),this[_0x460784(0x3a7)]=[];}['_getDocObject'](){const _0x1cb71f=_0x364156;return N['getDocObject'](this['_univerInstanceService'],this[_0x1cb71f(0x3ea)]);}};ve=xi([a[_0x364156(0x4a4)](a[_0x364156(0x20a)]['Steady'],ve),oe(0x0,h[_0x364156(0x24e)](Z)),oe(0x1,a[_0x364156(0x58c)]),oe(0x2,R[_0x364156(0x4ca)]),oe(0x3,h['Inject'](N['DocSkeletonManagerService'])),oe(0x4,h[_0x364156(0x24e)](a['ThemeService']))],ve);var ki=Object[_0x364156(0x53c)],Bi=Object['getOwnPropertyDescriptor'],Fi=(_0x488211,_0x19d29b,_0xb57460,_0x2b2c79)=>{const _0x45e063=_0x364156;for(var _0x4dde2e=_0x2b2c79>0x1?void 0x0:_0x2b2c79?Bi(_0x19d29b,_0xb57460):_0x19d29b,_0x547a87=_0x488211[_0x45e063(0x37d)]-0x1,_0x3f0b06;_0x547a87>=0x0;_0x547a87--)(_0x3f0b06=_0x488211[_0x547a87])&&(_0x4dde2e=(_0x2b2c79?_0x3f0b06(_0x19d29b,_0xb57460,_0x4dde2e):_0x3f0b06(_0x4dde2e))||_0x4dde2e);return _0x2b2c79&&_0x4dde2e&&ki(_0x19d29b,_0xb57460,_0x4dde2e),_0x4dde2e;},Le=(_0x149589,_0x4b7211)=>(_0x258528,_0x23ac65)=>_0x4b7211(_0x258528,_0x23ac65,_0x149589);let Ee=class{constructor(_0x430981,_0x575d94,_0x21ab3b){const _0x1a28ed=_0x364156;this[_0x1a28ed(0x53e)]=_0x430981,this[_0x1a28ed(0x260)]=_0x575d94,this[_0x1a28ed(0x3e5)]=_0x21ab3b,this[_0x1a28ed(0x2a8)]();}[_0x364156(0x2a8)](){const _0x340270=_0x364156;this['_httpService'][_0x340270(0x3f2)]({'priority':0x1,'interceptor':(_0x4cda86,_0x38801e)=>_0x38801e(_0x4cda86)[_0x340270(0x1f5)](g[_0x340270(0x297)](async _0x201181=>{const _0x53a5cb=_0x340270,_0x16f0eb=_0x201181;if(_0x16f0eb['status']===0x191&&window['confirm'](this[_0x53a5cb(0x3e5)]['t'](_0x53a5cb(0x1f9)))){const _0x1ab077=window[_0x53a5cb(0x4c2)](window['location'][_0x53a5cb(0x567)]);window['location'][_0x53a5cb(0x567)]=this['_getLoginPath']()+'?url='+_0x1ab077;}return _0x16f0eb;}))});}['_getLoginPath'](){const _0x1d171e=_0x364156;var _0x94d7fc;return(_0x94d7fc=this['_configService'][_0x1d171e(0x58b)](It))!=null?_0x94d7fc:Qt;}};Ee=Fi([Le(0x0,a[_0x364156(0x36a)]),Le(0x1,h[_0x364156(0x24e)](y[_0x364156(0x54f)])),Le(0x2,h[_0x364156(0x24e)](a[_0x364156(0x1fb)]))],Ee);var Vi=Object[_0x364156(0x53c)],Wi=Object['getOwnPropertyDescriptor'],Gi=(_0x381625,_0x1980c8,_0x14720e,_0x195f66)=>{const _0x1a7915=_0x364156;for(var _0x3c826b=_0x195f66>0x1?void 0x0:_0x195f66?Wi(_0x1980c8,_0x14720e):_0x1980c8,_0x4fbbf6=_0x381625[_0x1a7915(0x37d)]-0x1,_0x4e92d0;_0x4fbbf6>=0x0;_0x4fbbf6--)(_0x4e92d0=_0x381625[_0x4fbbf6])&&(_0x3c826b=(_0x195f66?_0x4e92d0(_0x1980c8,_0x14720e,_0x3c826b):_0x4e92d0(_0x3c826b))||_0x3c826b);return _0x195f66&&_0x3c826b&&Vi(_0x1980c8,_0x14720e,_0x3c826b),_0x3c826b;},at=(_0x44906d,_0x1afe49)=>(_0x4e209f,_0xfb8bfa)=>_0x1afe49(_0x4e209f,_0xfb8bfa,_0x44906d);const Lt=_0x364156(0x4cf),Yi=_0x364156(0x533);exports[_0x364156(0x285)]=class{constructor(_0x43beca,_0x481bc6){const _0x2b974b=_0x364156;this[_0x2b974b(0x310)]=_0x43beca,this['_configService']=_0x481bc6;}['_getAPIPrefixPath'](){const _0x47ea95=_0x364156;var _0x56a558;return(_0x56a558=this['_configService'][_0x47ea95(0x58b)](Lt))!=null?_0x56a558:Yi;}async['create'](_0x1755a5){const _0x3f8d52=_0x364156,_0x240ebb=this['_getAPIPrefixPath']()+'/'+_0x1755a5[_0x3f8d52(0x4c0)]+_0x3f8d52(0x39f);return(await this[_0x3f8d52(0x310)][_0x3f8d52(0x3e1)](_0x240ebb,{'body':_0x1755a5}))[_0x3f8d52(0x1ce)][_0x3f8d52(0x2b8)]||'';}async[_0x364156(0x433)](_0x4fcbdb){const _0x30811f=_0x364156,_0x25aa3b=this['_getAPIPrefixPath']()+_0x30811f(0x559);return(await this[_0x30811f(0x310)]['post'](_0x25aa3b,{'body':_0x4fcbdb}))[_0x30811f(0x1ce)][_0x30811f(0x3af)];}async[_0x364156(0x390)](_0x479ba1){const _0x1282a9=_0x364156,_0x3c554d=this['_getAPIPrefixPath']()+'/'+_0x479ba1[_0x1282a9(0x4c0)]+_0x1282a9(0x1df)+_0x479ba1['objectID'];await this[_0x1282a9(0x310)][_0x1282a9(0x359)](_0x3c554d,{'body':_0x479ba1});}async[_0x364156(0x3a9)](_0x10f3dc){const _0x156b00=_0x364156,_0x3e5b86=this['_getAPIPrefixPath']()+'/'+_0x10f3dc[_0x156b00(0x4c0)]+_0x156b00(0x1df)+_0x10f3dc[_0x156b00(0x2b8)]+'/allowed';return(await this[_0x156b00(0x310)]['post'](_0x3e5b86,{'body':_0x10f3dc}))[_0x156b00(0x1ce)]['actions'];}async['batchAllowed'](_0x44049d){const _0x463e14=_0x364156,_0xe3a998=this[_0x463e14(0x516)]()+_0x463e14(0x334);return(await this[_0x463e14(0x310)][_0x463e14(0x3e1)](_0xe3a998,{'body':{'requests':_0x44049d}}))[_0x463e14(0x1ce)]['objectActions'];}async[_0x364156(0x55b)](_0xdd365a){const _0x4d4343=_0x364156,_0x14d2d0=this[_0x4d4343(0x516)]()+'/'+_0xdd365a['objectType']+_0x4d4343(0x499),_0x35c040=await this[_0x4d4343(0x310)][_0x4d4343(0x3e1)](_0x14d2d0,{'body':_0xdd365a});return{'roles':_0x35c040[_0x4d4343(0x1ce)][_0x4d4343(0x4d3)],'actions':_0x35c040[_0x4d4343(0x1ce)][_0x4d4343(0x256)]};}async[_0x364156(0x3d5)](_0x2c76a5){const _0x35b96c=_0x364156,_0x4f3a3a=this['_getAPIPrefixPath']()+_0x35b96c(0x463);await this[_0x35b96c(0x310)][_0x35b96c(0x4b0)](_0x4f3a3a,{'params':{'collaboratorID':_0x2c76a5[_0x35b96c(0x4ee)],'objectID':_0x2c76a5[_0x35b96c(0x2b8)],'unitID':_0x2c76a5['unitID']}});}async[_0x364156(0x24b)](_0x5cd398){const _0x312fcc=_0x364156,_0x50a162=this[_0x312fcc(0x516)]()+_0x312fcc(0x463);await this['_HTTPService'][_0x312fcc(0x4ac)](_0x50a162,{'body':_0x5cd398});}async[_0x364156(0x2fb)](_0x57a3a8){const _0x3941dd=_0x364156,_0x1c8ea7=this[_0x3941dd(0x516)]()+_0x3941dd(0x463);await this[_0x3941dd(0x310)][_0x3941dd(0x3e1)](_0x1c8ea7,{'body':_0x57a3a8});}async[_0x364156(0x539)](_0x3b4645){const _0x4bb3e4=_0x364156,_0x4cfe22=this[_0x4bb3e4(0x516)]()+_0x4bb3e4(0x463);return(await this[_0x4bb3e4(0x310)][_0x4bb3e4(0x3f4)](_0x4cfe22,{'params':{'objectID':_0x3b4645[_0x4bb3e4(0x2b8)],'unitID':_0x3b4645[_0x4bb3e4(0x1e9)]}}))[_0x4bb3e4(0x1ce)]['collaborators'];}async[_0x364156(0x2ce)](_0x59a4a1){const _0x51e41c=_0x364156,_0x364548=this[_0x51e41c(0x516)]()+_0x51e41c(0x463);await this[_0x51e41c(0x310)][_0x51e41c(0x359)](_0x364548,{'body':_0x59a4a1});}},exports['AuthzIoHttpService']=Gi([at(0x0,h[_0x364156(0x24e)](y[_0x364156(0x54f)])),at(0x1,h[_0x364156(0x24e)](a[_0x364156(0x36a)]))],exports['AuthzIoHttpService']);var Ki=Object['defineProperty'],Xi=Object[_0x364156(0x55c)],qi=(_0x1d6d3d,_0x548a4f,_0x1b92a0,_0x5f2e8b)=>{const _0x33a272=_0x364156;for(var _0xcfd4db=_0x5f2e8b>0x1?void 0x0:_0x5f2e8b?Xi(_0x548a4f,_0x1b92a0):_0x548a4f,_0x411a12=_0x1d6d3d[_0x33a272(0x37d)]-0x1,_0x37dffa;_0x411a12>=0x0;_0x411a12--)(_0x37dffa=_0x1d6d3d[_0x411a12])&&(_0xcfd4db=(_0x5f2e8b?_0x37dffa(_0x548a4f,_0x1b92a0,_0xcfd4db):_0x37dffa(_0xcfd4db))||_0xcfd4db);return _0x5f2e8b&&_0xcfd4db&&Ki(_0x548a4f,_0x1b92a0,_0xcfd4db),_0xcfd4db;},ct=(_0x355a88,_0x53f5a4)=>(_0x1d8560,_0x4c07be)=>_0x53f5a4(_0x1d8560,_0x4c07be,_0x355a88);const Ji=[_0x364156(0x204),_0x364156(0x3ad),'image/jpg',_0x364156(0x540),'image/bmp'],zi=0x5*0x400*0x400,Zi=_0x364156(0x340),Qi=_0x364156(0x550),en=_0x364156(0x58f),tn=_0x364156(0x51e);let xe=class{constructor(_0x13823d,_0xe2068b){const _0x5b63f8=_0x364156;d(this,_0x5b63f8(0x2f2),0x0),d(this,_0x5b63f8(0x271),new g[(_0x5b63f8(0x2c1))]()),d(this,'change$',this[_0x5b63f8(0x271)]),d(this,_0x5b63f8(0x22b),new Map()),(this[_0x5b63f8(0x260)]=_0x13823d,this['_configService']=_0xe2068b);}[_0x364156(0x4ff)](_0x2d3f71){const _0x1190fc=_0x364156;this[_0x1190fc(0x2f2)]=_0x2d3f71,this['_change$'][_0x1190fc(0x1d2)](_0x2d3f71);}[_0x364156(0x1ea)](_0xa96aba,_0x3c0929){const _0x3c4273=_0x364156;if(_0x3c0929===A[_0x3c4273(0x41e)][_0x3c4273(0x1e4)]){const _0x1d1bba=new Image();return _0x1d1bba['src']=_0xa96aba,_0x1d1bba;}return this['_imageSourceCache']['get'](_0xa96aba);}['addImageSourceCache'](_0x3ff3b7,_0x5ca5cb,_0x5bde70){const _0x57867b=_0x364156;_0x5ca5cb===A[_0x57867b(0x41e)]['BASE64']||_0x5bde70==null||this[_0x57867b(0x22b)][_0x57867b(0x490)](_0x3ff3b7,_0x5bde70);}async[_0x364156(0x40c)](_0x1d0bb1){const _0x2ea4ed=_0x364156;try{const _0x34675f=this[_0x2ea4ed(0x51c)](this[_0x2ea4ed(0x4c6)](),''+_0x1d0bb1),_0x14e3c=(await this[_0x2ea4ed(0x260)]['get'](_0x34675f))[_0x2ea4ed(0x1ce)];return _0x14e3c['error']&&_0x14e3c[_0x2ea4ed(0x381)][_0x2ea4ed(0x35e)]===pt['OK']?Promise[_0x2ea4ed(0x315)](_0x14e3c[_0x2ea4ed(0x2ea)]):Promise['reject'](_0x14e3c[_0x2ea4ed(0x381)]);}catch(_0x53f60c){return Promise[_0x2ea4ed(0x237)](_0x53f60c);}}async[_0x364156(0x531)](_0x269d21){const _0x2c1ae0=_0x364156;let _0x4f6deb='';if(!Ji[_0x2c1ae0(0x394)](_0x269d21[_0x2c1ae0(0x451)]))return this[_0x2c1ae0(0x40e)](),Promise[_0x2c1ae0(0x237)](new Error(A[_0x2c1ae0(0x3bd)][_0x2c1ae0(0x2a2)]));if(_0x269d21[_0x2c1ae0(0x2a1)]>zi)return this[_0x2c1ae0(0x40e)](),Promise[_0x2c1ae0(0x237)](new Error(A[_0x2c1ae0(0x3bd)][_0x2c1ae0(0x22f)]));try{const _0x1c0cda=new FormData();_0x1c0cda[_0x2c1ae0(0x391)](_0x2c1ae0(0x491),_0x269d21);const _0x15179a=this['_getUploadFileURL']()+_0x2c1ae0(0x1fe)+_0x269d21[_0x2c1ae0(0x2a1)][_0x2c1ae0(0x4fd)](),_0x5c5f2d=await(await fetch(_0x15179a,{'method':_0x2c1ae0(0x396),'body':_0x1c0cda}))[_0x2c1ae0(0x3d6)]();if(typeof _0x5c5f2d['FileId']!='string')return this[_0x2c1ae0(0x40e)](),Promise[_0x2c1ae0(0x237)](new Error(A[_0x2c1ae0(0x3bd)]['ERROR_IMAGE']));_0x4f6deb=_0x5c5f2d[_0x2c1ae0(0x382)];}catch{return this[_0x2c1ae0(0x40e)](),Promise[_0x2c1ae0(0x237)](new Error(A['ImageUploadStatusType'][_0x2c1ae0(0x292)]));}return new Promise((_0x22ae5c,_0x56c39e)=>{const _0x502dad=_0x2c1ae0,_0x5a4d76=new FileReader();_0x5a4d76[_0x502dad(0x3fa)](_0x269d21),_0x5a4d76[_0x502dad(0x4a2)]=_0x54fe19=>{const _0x3416ca=_0x502dad;var _0x333671;const _0x28a3f6=(_0x333671=_0x54fe19[_0x3416ca(0x3f6)])==null?void 0x0:_0x333671[_0x3416ca(0x232)];if(_0x28a3f6==null){this[_0x3416ca(0x40e)](),_0x56c39e(new Error(A[_0x3416ca(0x3bd)][_0x3416ca(0x292)]));return;}const _0x8dfd7e=a[_0x3416ca(0x2f6)][_0x3416ca(0x57d)](0x6);_0x22ae5c({'imageId':_0x8dfd7e,'imageSourceType':A['ImageSourceType']['UUID'],'source':_0x4f6deb,'base64Cache':_0x28a3f6,'status':A['ImageUploadStatusType']['SUCCUSS']}),this[_0x3416ca(0x40e)]();};});}['_getUploadFileURL'](){const _0x951703=_0x364156;var _0x5d02e2;return(_0x5d02e2=this['_configService'][_0x951703(0x58b)](Zi))!=null?_0x5d02e2:Qi;}[_0x364156(0x4c6)](){const _0x3638d2=_0x364156;var _0x21666;return(_0x21666=this[_0x3638d2(0x53e)]['getConfig'](en))!=null?_0x21666:tn;}[_0x364156(0x51c)](_0x239213,_0x13909c){const _0x452ba3=_0x364156;return _0x239213['replace'](_0x452ba3(0x1f2),_0x13909c);}['_decreaseWaiting'](){const _0x476fe2=_0x364156;this['_waitCount']-=0x1,this[_0x476fe2(0x271)][_0x476fe2(0x1d2)](this[_0x476fe2(0x2f2)]);}};xe=qi([ct(0x0,h['Inject'](y[_0x364156(0x54f)])),ct(0x1,a[_0x364156(0x36a)])],xe);function _0x5d0e(){const _0x421f4b=['univer-online-status','CollaborationStatusDisplay','ImageSourceType','USERS_LEAVE','mapTo','getRangePointData','selection','_transformSelections','0\x200\x2017\x2016','CollaborationSession','77163fqeZYG','onCommentUpdate','top','getParam','parse','IHTTPImplementation','ONLINE','univer-online','collabStatus.conflict','blue400','RegularPolygon','addObjects','[DataLoaderController]','list','_startCollaboration','loadOfflineData','_schedule','@univerjs/network','_onFetchMissResult','onPointerMove$','fromCollab','urlChange$','[CollaborationEntity]','transformMutation','INVALID_ARGUMENT','liveShareOperation','extend','RichTextEditingMutation','registerRefRange','Injector','_onJoinRoomEvent','location','onTransformIME','baseRev','[OfflineState]:\x20received\x20changeset.','off-line-single','_getAPIPrefix','onCommandExecuted','c2Prime','_ensureSubject','concat','Steady','focused$','type','SEND_CHANGESET_TIMEOUT_KEY','_lastPointer','getInterceptPoints','collabCursorState$','_transformService','combineLatest','_disableEditing','_socket$','getCollabCursors$','@univerjs/engine-formula','_sheetSkeletonManagerService','data','members','fetchThroughInterceptors','_scheduleHeartbeat','_roomMembers$','UNIVER_UNKNOWN','/collaborator','_fetchMissChangesets','b64DecodeUnicode','onMissedChangesetFetched','_anchor','isTransformMutationsWithChangesetSuccess','_getCurrentRevision','_onRecvEvent','UNKNOWN_CMD','Unknown\x20user','isTransformChangesetsSuccess','parseProtocolChangeset','_onConflict','setUndoRedoMutationParamsCache','INGEST','_snapshotService','#fff','APPLY_REJECT','IURLService','ILogService','_init','SheetPermissionInitController','mergeOverrideWithDependencies','_state','rxjs','_collaborationController','getViewport','_pendingMutations','UNIVER_SLIDE','mutations','c1Prime','getCollabEntity','_retryCount','toggleOffline','asObservable','_docSyncEditingCollabCursorService','_docStateChangeManagerService','socket\x20close','_onLocalMutation','status$','_submitChangeset','text','_toggleOffline','_substituteRedoStack','slice','set','file','SUBMIT_CHANGESET','createIdentifier','close','_event$','RETRY_CONNECTING_INTERVAL','_exhaustRemoteChangesetQueue','/fetchmissing?from=','/role','updateCursorEvent','InsertRowCommandId','url(#on-line-single_clip0_910_349)','CONFLICT','IContextService','workbook','memberID','toDisposable','onload','DesktopCollaborationStatusDisplayController','OnLifecycle','\x0aAfter:\x20','_eventUnsubscribe','currentSkeleton$','COMPRESS_MUTATION_APPLY','_startSheetCollabCursor','clipPath','YUUMI_UNABLE_LOAD_URL','patch','575290dNhVYn','isTransformMutationsWithChangesetFailure','_createSocket','delete','_onRemoteACK','idSuffix','_sheetTransformSelectionsService','setShapeProps','_substituteUndoStack','_undoStacks','currentColor','DisposableCollection','jiqing500','\x20-\x20','NodePositionConvertToCursor','_timeoutTimer','disposeUnit','registerBeforeClose','_members','objectType','sessionStatus','encodeURIComponent','conflict.content','xlink:href','sequenceExecute','_getSignURL','collaboration-client.offline-data-not-saved','_selfUnitIDs','unitId','IRenderManagerService','[OfflineState]:\x20invalid\x20calling\x20to\x20`resend`.','svg','assignAColorForMemberID','_clearScheduledTask','AUTHZ_URL_KEY','getCurrent','gold400','getVpScrollXYInfoByPosToVp','roles','_onRemoteRejected','createSocket','CompressMutationService','IImageIoService','isArray','_transformPreviousActiveRange','CHANGESET_REJ','InsertColCommandId','function','186tOZgBQ','subUnitId','_beforeCloseService','_applyRemoteChangeset','_syncEditingCollabCursor','shareReplay','getTypeOfUnitAdded$','getItem','_sessionStatus$','fetch_missing','1646694UEetTX','colorChannel1','_initStatusListener','_acknowledgedAwaitingChangeset','SEND_CHANGESET_TIMEOUT','SNAPSHOT_URL_KEY','_unitOnClients','collaboratorID','doc.mutation.rich-text-editing','...','_onCombEvent','getCellPositionByOffset','_updateState','HEARTBEAT_TIMEOUT','subscribe','routeKey','univer-pro.collaboration-client-socket-service','_messageService','hide','editing\x20status\x20changed\x20to','_notificationService','getSheetObject','toString','handleInsertRangeMoveRight','setWaitCount','with','[ConflictState]:\x20invalid\x20calling\x20to\x20`resend`.','_status$','url(#off-line-single_clip0_910_343)','LICENSE_EXPORT_SIZE_EXCEEDED','_undoRedoService','onlineStatusTitle','column','startsWith','collab-text-anchor-','_handler','_colorAssignService','attrs','LICENSE_DISTRO_REJECTED','collabStatus.syncing','_online','_scheduleCollaborationTimeoutTimer','collaboration.closeRoom','saveSnapshot','LIVESHARE_FETCH_OPERATIONS','getCurrentRevForDocument','M0\x200H16V16H0z','_getAPIPrefixPath','_labelPosition','delay','UNRECOGNIZED','connectInjector','univer-pro.collaboration-client.single-active-unit-service','_replaceFileID','VIEW_MAIN','/universer-api/file/{fileID}/sign-url','onRemoteRej','_localCacheService','_hovered','revision','RemoveColCommandId','SNAPSHOT_SERVER_URL_KEY','_http','session.connection-failed','PERMISSION_DENIED','push','csRejEvent','save','takeUntil','ws://127.0.0.1:8000/universer-api/comb/connect','serializeCombRequest','contains','trim','startRow','saveImage','sheets','/universer-api/authz','range','_replayCachedMutations','SetWorksheetActivateCommand','getDataModel','_scheduleClearOtherTimer','listCollaborators','_revisionService','_univerInstanceService','defineProperty','_hideTimer','_configService','[CollaborationEntity]:\x20cannot\x20apply\x20missing\x20results\x20on\x20other\x20states!','image/gif','then','ICommandService','_sessions','width','UniverIcon','DataLoaderController','AWAITING_WITH_PENDING','onlyLocal','RevisionService','unit-cache-','path','unknown','_onRemoteChangeset','_saveTaskMap','HTTPService','/universer-api/stream/file/upload','CHANGESET_REVISION_CONFILICT','_entities','whenReady','IRemoteInstanceService','_uiPartsService','UNDEFINED','_handleLeaveEvent','&to=','/-/object/list','[FetchingMissState]:\x20invalid\x20calling\x20to\x20`resend`.','listRoles','getOwnPropertyDescriptor','dispose$','activeSheet$','min','pauseCollaboration','handleIRemoveCol','USERS_ENTER','getUnitType','setItem','_updateURLWithCurrentState','_updateStatus','href','_sendingTimer','_collabSessionService','@univerjs/engine-render','event$','addObject','_createInitialStateImpl','getRelativeToViewportCoord','string','evenodd','Rectangle','YUUMI_URL_COL_OUT_OF_RANGE','1017225LHletK','fillText','pushState','IUIPartsService','replaceState','LIVESHARE_OPERATION','OTHER_CLIENTS_EDITING','className','[PendingState]:\x20invalid\x20calling\x20to\x20`resend`.','rev','generateRandomId','_clearHeartbeatTimer','setCurrentUser','IMEInputManagerService','_collaborationPaused','sessionStatus$','_createHandler','LOCAL_CACHE_INTERVAL','ranges','clsx','_onMessage','@univerjs/rpc','updatePermissionObjEvent','collabStatus.synced','getConfig','IUniverInstanceService','roomInfos','onTransformRemoteChangesetByIMECache','EXCHANGE_SIGN_URL_SERVER_URL_KEY','fillRule','FromArray','take','createInstance','ThresholdInterceptorFactory','unsubscribe','_getCtorByUniverType','6FMBvHN','saveSheetBlock','COLORS','forwardRef','body','endRow','630OLUlzq','onMissingChangesets','next','_awaitingChangeset','status','Vector2','FETCH_MISSING','currentTheme$','_commentUpdate$','/universer-api/snapshot','commentUpdateEvent','use','_incrementRevisionNumber','Error\x20on\x20receiving\x20event','getValue','/object/','enableLocalCache','_commandService','getUndoRedoMutationParamsCache','_clearTimeoutTimer','BASE64','_permissionService','disposeWithMe','_range','name','unitID','getImageSourceCache','session.room-full','loadSheet','@wendellhu/redi/react-bindings','\x0aCurrent:\x20','_tryEnsureSocket','getTime','HELLO','{fileID}','incrementRevForDocument','getRenderById','pipe','_config','editingUnit','UNAUTHENTICATED','auth.needGotoLoginAlert','resend','LocaleService','unit','onStateChange','?size=','initWorkbookPermissionChange','Univer','_localStorageService','color','_queuedRemoteChangesets','image/png','_transformUndoredo','getActiveRange','_draw','updatePermissionPoint','OFFLINE','LifecycleStages','TextSelectionManagerService','socket\x20open.','Error','_socketReady','RemoveRowCommandId','_onConnectionFailed','_setupBeforeClosingHandler','onlineStatusIcon','_getMergeRange','roomMembers','_textBubble','OnLineSingle','RETRY_CONNECTING_MAX_COUNT','filter','RefRangeService','transformUndoRedo','_handleHover','collabStatus.offline','getCollabEntity$','getActiveSheet','_loadDoc','onRemoteChangeset','_checkMissing','indexOf','@univerjs/sheets-ui','PERMISSION_REJ','HEADER_MENU','_removeClearOtherTimer','LEAVE','_scheduleSaving','getViewModel','_roomMembers','_imageSourceCache','UniverCollaborationPlugin','HEARTBEAT','univer-offline','ERROR_EXCEED_SIZE','_docSkeleton','SetSelectionsOperation','result','session','[FetchingMissState]:\x20not\x20expected\x20to\x20receive\x20ack\x20when\x20`this._awaitingChangeset`\x20is\x20null!','APPLY_PERMISSION_DENIED','getCurrentUser','reject','WebURLService','UniverCollaborationClientPlugin','liveShareNewHost','handleInsertRangeMoveDown','MessageType','clear','_color','UNKNOWN_CODE','history','offline','INTERNAL_ERROR','EffectRefRangId','useDependency','pending','_updateLocalCursor','IMessageService','CONNECTOR_DATA_TOO_LARGE','handleInsertRow','popstate','updateCollaborator','_handleJoinEvent','_cursorInfo$','Inject','on-line-single','_disabled','_localeService','_clearCollaborationTimeoutTimer','MSG_FOR_ERROR','message$','MUTATION','actions','reduce','defIds','from','transformChangesets','getSheetId','getCurrentSelections','isEditing','_remoteChangesetQueue','closePath','_httpService','lineTo','Disposable','originalMeta','INotificationService','commentUpdate$','dispose','_loadSheet','on-line-single_clip0_910_349','_transformUndoRedoStack','onSendChangeset','_startDocCollabCursor','onlineStatus','_joinRoom','session.will-retry','PENDING','cursorInfo$','_change$','AWAITING','COLLAB_WEB_SOCKET_URL','UPDATE_PERMISSION_OBJ','call','_sendHeartbeat','_collabCursorState$','_clearOtherTimers','_send','_sendHeartbeatTimer','_docSkeletonManagerService','_transformStack','map','/universer-api/oidc/authpage','_cursor','getUnitStatus$','TEXT_RANGE_LAYER_INDEX','csAckEvent','_clearUndo','fetching\x20the\x20latest\x20document\x20from\x20the\x20server.','AuthzIoHttpService','LIVESHARE_NEW_HOST','UNIVER_DOC','defs','_getAnchorBounding','hasOwnProperty','cmd','complete','Shape','key','_onRefRangeChange','CommandType','executeCommand','ERROR_IMAGE','setParam','off-line-single_clip0_910_343','submit\x20changeset\x20error!','endColumn','concatMap','div','fetchMissingChangesets','onPointerLeave$','_onUserLeave','Starting','measureText','fromEvent','SNAPSHOT_INVALID_SNAPSHOT','params','size','ERROR_IMAGE_TYPE','updateOfflineData','_colorIndex','toggleOnline','compose','HEARTBEAT_INTERVAL_KEY','init','0\x200\x2016\x2016','[ClientCollaborationController]:\x20invalid\x20state\x20transition!\x20State\x20transferred\x20from\x20is\x20not\x20the\x20current\x20state.\x0aBefore:\x20','onTransformSelections','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','isInternalEditorID','_unitStatus','1em','This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!','forEach','_handleHeartbeatEvent','getMember','Workbook','_render','stringify','skeleton','objectID','collaboration.single-unit.warning','getMergeData','split','has','round','_lockTransition','NOT_FOUND','makeDirty','Subject','awaiting_with_pending','UPDATE_CURSOR','getAncestorScale','fetching\x20missing\x20changesets\x20from\x20','updateMember','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','height','/rev/','mapDocumentTypeToUniverType','_onUserJoin','save\x20fail\x20reason\x20is\x20','_shapes','putCollaborators','InsertSheetMutation','saveChangeset','onSyncEditingCollabCursor','LIVESHARE_TERMINATE','[OfflineState]:\x20received\x20rejection.','getTypeOfUnitDisposed$','_id','NOT_COLLAB','enableAuthServer','_redoStacks','_showConflictNotification','ALREADY_EXISTS','debounceTime','BehaviorSubject','_waitForHeartbeatResponse','LICENSE_MAX_UNITS_EXCEEDED','distinctUntilChanged','add','_getUndoStack','getOwnPropertySymbols','_collaborationSessionService','_ws','Module','IDLE','_executeRemoteChangeset','joinEvent','LICENSE_IMPORT_SIZE_EXCEEDED','url','textRanges','_cachedData','SetTextSelectionsOperation','[CollaborationState]:\x20apply\x20error!','subscribeEvent','setTimeout','syncEditingCollabCursor','_waitCount','UserManagerService','findNodePositionByCharIndex','ILocalStorageService','Tools','_updateSubUnitFromURLParams','_clearLocalCache','uni.network.url-service','SHOULD_CLOSE_CONN','createCollaborator','onRemoteAck','_removeRoom','getUniverSheetInstance','_setupSubUnitSync','_handleEvent','_themeService','_memberService','permissionRejEvent','m2Prime','state','RxDisposable','arc','Unknown\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','children','COMPRESS_MUTATION_SEND','labelPosition','docStateChange$','[OfflineState]:\x20received\x20acknowledgement.','pluginName','_unitID','_HTTPService','SYNCED','JOINING','DocStateChangeManagerService','override','resolve','_docTransformSelectionsService','_scheduleTimestamp','_transformRemoteChangesetByIMECache','appendMutation','_compressMutationService','apply','_socketMessageSubscription','getCurrentUnitForType','getSheetBySheetId','handleMoveRange','_retryConnectingTimer','eventID','close$','[CollaborationEntity]:\x20initial\x20state\x20has\x20been\x20created\x20before.\x20You\x20should\x20not\x20call\x20\x22init\x22\x20twice.','ISnapshotServerService','getOffsetConfig','hovered','parseChangesetToProtocol','[PendingState]:\x20received\x20rejection.','unshift','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','_drawAnchor','subunit','error$','@univerjs/drawing','WorkbookEditablePermission','/block/','[CollaborationUndoRedoService]','getFocusedUnit','@univerjs/sheets','/-/object/-/batch_allowed','JOIN','_snapshotServerService','getWorkbookSelections','registerComponent','enableOfflineEditing','CollaborationSocketService','onStarting','requireSession','COMMENT_UPDATE','_clearRedo','_getSnapshotAPIPrefix','EXCHANGE_UPLOAD_FILE_SERVER_URL_KEY','searchParams','XHRHTTPImplementation','DeleteRangeMoveUpCommandId','IBeforeCloseService','isTransformMutationFailure','SessionStatus','_anchorDot','getColor','black','snapshot','_getRedoStack','cursorInfo','univer-online-status-icon','_userManagerService','_injector','UNIVER_SHEET','collabStatus.notCollab','_toggleOnline','toStringTag','getMemberID','1302610iuKEar','onMouseMove','_initUnitPermissionChange','_assignedColors','put','SNAPSHOT_HAS_BEEN_REMOVED','BuiltInUIPart','deserializeRangeWithSheet','RECV','code','/unit/','DeleteRangeMoveLeftCommandId','max','state$','some','awaitingChangeset','Ready','_getSheetObject','ICollaborationSocketService','_collaborationTimeoutTimer','switchMap','IConfigService','clearInterval','_socket','restore','displayName','red300','roomMembers$','textEncoder','[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.','joinRsp','removeParam','interceptor','APPLY_REVISION_CONFILICT','_type','CollaborationSessionService','_singleActiveUnitService','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','_collabCursorController','_isPermissionRej','length','rgba(255,\x20255,\x20255,\x200.01)','@univerjs-pro/collaboration','FETCH_MISS','error','FileId','_getSendChangesetTimeout','[FetchMissState]','WebSocketService','LIVESHARE_REQUEST_HOST','_hover','_entityInit$','[CollaborationSocketService]:\x20failed\x20to\x20create\x20socket!','isActive','getUnitId','UniverInstanceType','url(#$1','fillStyle','collab-text-range-','update','append','entries','_session','includes','_removeCollabCursors','POST','setAlpha','conflict','SheetSkeletonManagerService','CommentService','replace','bottom','tag','Rect','/object','removeMember','drawWith','[CollaborationSession]:\x20should\x20not\x20send\x20message\x20when\x20the\x20session\x20is\x20offline!','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','ColorKit','COMPLETION_FINISHED','_unitId','_cursors','not_collab','allowed','CHANGESET_ACK','IUndoRedoService','CollaborationEvent','image/jpeg','UNIVER_COLLABORATION_CLIENT_PLUGIN','objects','_unlockTransition','beginPath','SheetsSelectionsService','debug','infoRsp','getSheetBlock','_scene','_transitionLocked','_onCursorUpdate','newValue','merge','@univerjs/ui','values','ImageUploadStatusType','_state$','getCoordByCell','transformMutationsWithChangeset','selections','Warning','deepClone','send','_createInitialState','/resources','handleInsertCol','FAIL','awaiting','none','unload','transformIMECache','shouldCloseConn','SnapshotService','_updateCollabCursors','ITransformService','runRefRangeMutations','[CollaborationController]:\x20remote\x20changeset\x20applied\x20error.','collaborationUniverTypes','_onCursorDelete','deleteCollaborator','json','clearTimeout','_transformIMECache','CollaborationController','_syncEditingCollabCursorService','isPermissionRej','changesets','Optional','rxjs/operators','onPointerEnter$','row','post','purple300','ThemeService','543800ryGRHt','localeService','_updateLocalCache','useRef','loadDoc','assign','_renderManagerService','collabStatus.fetchMiss','online','_scheduleReconnection','open$','translate(.97)','show','saveOfflineData','registerHTTPInterceptor','_logService','get','encode','target','_exhaustSavingTask','IPermissionService','_saveCache','readAsDataURL','16nnTIyD','_socketService','_name','transformSelections','_refRangeService','_docTransformIMECacheService','_drawRange','createElement','LocalCacheService','react','transformRemoteChangeset','connection\x20error','_initModules','[SyncedState]:\x20invalid\x20calling\x20to\x20`resend`.','all','_rescheduleHeartbeatEvent','univer-online-status-title','getImage','fill','_decreaseWaiting','flatMap','NEW_CHANGESETS','_getSaveTimeout','univerjs-icon\x20univerjs-icon-','getUnhiddenWorksheets','icon','_urlService','APPLY_NON_SEQUENTIAL_REVISION','synced','_heartbeatTimer','prototype','NO_OTHER_CLIENTS_EDITING','m1Prime'];_0x5d0e=function(){return _0x421f4b;};return _0x5d0e();}var sn=Object['defineProperty'],nn=Object[_0x364156(0x55c)],rn=(_0x17b51d,_0x56be6d,_0x408d69,_0x31827e)=>{const _0x1605af=_0x364156;for(var _0x48f4a3=_0x31827e>0x1?void 0x0:_0x31827e?nn(_0x56be6d,_0x408d69):_0x56be6d,_0x561831=_0x17b51d[_0x1605af(0x37d)]-0x1,_0x134ec3;_0x561831>=0x0;_0x561831--)(_0x134ec3=_0x17b51d[_0x561831])&&(_0x48f4a3=(_0x31827e?_0x134ec3(_0x56be6d,_0x408d69,_0x48f4a3):_0x134ec3(_0x48f4a3))||_0x48f4a3);return _0x31827e&&_0x48f4a3&&sn(_0x56be6d,_0x408d69,_0x48f4a3),_0x48f4a3;},ae=(_0x404481,_0x411b74)=>(_0x4e6814,_0x284a29)=>_0x411b74(_0x4e6814,_0x284a29,_0x404481);let ge=class extends a[_0x364156(0x306)]{constructor(_0x23edf5,_0x58a6e5,_0x26f8e2,_0x384d35,_0x1a7720){const _0xdae4e2=_0x364156;super(),this[_0xdae4e2(0x34f)]=_0x23edf5,this[_0xdae4e2(0x53b)]=_0x58a6e5,this[_0xdae4e2(0x1e5)]=_0x26f8e2,this['_collaborationSessionService']=_0x384d35,this[_0xdae4e2(0x251)]=_0x1a7720,this[_0xdae4e2(0x357)](),this['_initCloseConn']();}['_initCloseConn'](){const _0x16ec91=_0x364156,_0x3361d8=async _0x3585ea=>{const _0x5b4547=_0x17ba;(await this['_collaborationSessionService'][_0x5b4547(0x33c)](_0x3585ea))['event$'][_0x5b4547(0x1f5)](C['filter'](_0x2209c0=>_0x2209c0['eventID']===u[_0x5b4547(0x3ac)][_0x5b4547(0x2fa)]),C[_0x5b4547(0x52b)](this[_0x5b4547(0x55d)]))['subscribe'](_0x52b39c=>{const _0x39a7bd=_0x5b4547,_0x365378=_0x52b39c,{reason:_0x40bda7}=_0x365378[_0x39a7bd(0x45d)];this[_0x39a7bd(0x34f)][_0x39a7bd(0x3f4)](M[_0x39a7bd(0x247)])[_0x39a7bd(0x3f0)]({'type':Q['MessageType'][_0x39a7bd(0x20d)],'content':this[_0x39a7bd(0x251)]['t'](_0x39a7bd(0x511))+'('+_0x40bda7+')'}),this[_0x39a7bd(0x1e5)][_0x39a7bd(0x208)](new E['WorkbookEditablePermission'](_0x3585ea)['id'],!0x1);});};g['merge'](this['_univerInstanceService'][_0x16ec91(0x4e3)](a['UniverInstanceType'][_0x16ec91(0x350)]),this[_0x16ec91(0x53b)][_0x16ec91(0x4e3)](a[_0x16ec91(0x38c)][_0x16ec91(0x287)]))[_0x16ec91(0x1f5)](C[_0x16ec91(0x27d)](_0x3e61d6=>_0x3e61d6[_0x16ec91(0x38b)]()),C[_0x16ec91(0x218)](_0x493416=>!a[_0x16ec91(0x2ad)](_0x493416)),C[_0x16ec91(0x52b)](this[_0x16ec91(0x55d)]))['subscribe'](_0x4967c5=>{_0x3361d8(_0x4967c5);});}['_initUnitPermissionChange'](){const _0x462848=_0x364156,_0x2d80bc=async _0x58f154=>{const _0x37d2f9=_0x17ba;(await this[_0x37d2f9(0x2e3)][_0x37d2f9(0x33c)](_0x58f154))[_0x37d2f9(0x56b)][_0x37d2f9(0x1f5)](C['filter'](_0xaf5ea0=>_0xaf5ea0['eventID']===u['CollaborationEvent'][_0x37d2f9(0x274)]),C[_0x37d2f9(0x52b)](this[_0x37d2f9(0x55d)]))[_0x37d2f9(0x4f5)](_0x2753ab=>{const _0x2754c1=_0x37d2f9,_0x16a6ee=_0x2753ab,{objectId:_0x5385ee}=_0x16a6ee[_0x2754c1(0x45d)];_0x5385ee===_0x58f154&&this[_0x2754c1(0x34f)][_0x2754c1(0x3f4)](z[_0x2754c1(0x478)])[_0x2754c1(0x1ff)](_0x58f154);});};g[_0x462848(0x3ba)](this[_0x462848(0x53b)][_0x462848(0x4e3)](a['UniverInstanceType'][_0x462848(0x350)]),this[_0x462848(0x53b)][_0x462848(0x4e3)](a[_0x462848(0x38c)][_0x462848(0x287)]))[_0x462848(0x1f5)](C['map'](_0x4ab2ed=>_0x4ab2ed['getUnitId']()),C['filter'](_0x2fb150=>!a[_0x462848(0x2ad)](_0x2fb150)),C[_0x462848(0x52b)](this[_0x462848(0x55d)]))[_0x462848(0x4f5)](_0x1d0e25=>{_0x2d80bc(_0x1d0e25);});}};ge=rn([a[_0x364156(0x4a4)](a['LifecycleStages'][_0x364156(0x29c)],ge),ae(0x0,h[_0x364156(0x24e)](h[_0x364156(0x443)])),ae(0x1,a['IUniverInstanceService']),ae(0x2,a[_0x364156(0x3f8)]),ae(0x3,h[_0x364156(0x24e)](exports[_0x364156(0x378)])),ae(0x4,h[_0x364156(0x24e)](a['LocaleService']))],ge);var Nt=Object[_0x364156(0x53c)],on=Object[_0x364156(0x55c)],an=(_0x8ebbfa,_0x46f8d2,_0x196222)=>_0x46f8d2 in _0x8ebbfa?Nt(_0x8ebbfa,_0x46f8d2,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x196222}):_0x8ebbfa[_0x46f8d2]=_0x196222,cn=(_0x1355df,_0x49e819,_0x543e4b,_0x843e6a)=>{for(var _0x584eec=_0x843e6a>0x1?void 0x0:_0x843e6a?on(_0x49e819,_0x543e4b):_0x49e819,_0x452fe5=_0x1355df['length']-0x1,_0x64c2d6;_0x452fe5>=0x0;_0x452fe5--)(_0x64c2d6=_0x1355df[_0x452fe5])&&(_0x584eec=(_0x843e6a?_0x64c2d6(_0x49e819,_0x543e4b,_0x584eec):_0x64c2d6(_0x584eec))||_0x584eec);return _0x843e6a&&_0x584eec&&Nt(_0x49e819,_0x543e4b,_0x584eec),_0x584eec;},lt=(_0x2384bf,_0x4d2ae1)=>(_0x597736,_0x43c12d)=>_0x4d2ae1(_0x597736,_0x43c12d,_0x2384bf),ln=(_0x83cc99,_0x454c85,_0x16c3e5)=>an(_0x83cc99,_0x454c85+'',_0x16c3e5);const hn=_0x364156(0x3ae);exports[_0x364156(0x239)]=class extends a['Plugin']{constructor(_0xf6736a,_0x28026e,_0x249cca){const _0x59aba0=_0x364156;super(),this[_0x59aba0(0x1f6)]=_0xf6736a,this[_0x59aba0(0x3f3)]=_0x28026e,this[_0x59aba0(0x34f)]=_0x249cca;}[_0x364156(0x33b)](_0x2c9ffa){const _0xf3d183=_0x364156;var _0x199831,_0x22f732,_0x563fee,_0x260334,_0x46024e;_0x2c9ffa[_0xf3d183(0x2bc)](a[_0xf3d183(0x3ab)])&&this[_0xf3d183(0x3f3)]['error']('[UniverCollaborationClientPlugin]','you\x20should\x20override\x20\x22IUndoRedoService\x22\x20provided\x20in\x20\x22core\x22\x20package!');let _0x2b7f41=[[a[_0xf3d183(0x3ab)],{'useClass':He}],[exports[_0xf3d183(0x378)]],[Ye],[y[_0xf3d183(0x54f)]],[Xe,{'useClass':yt}],[G],[exports[_0xf3d183(0x403)]],[y['WebSocketService']],[Ie],[me],[fe],[Ge],[Ee],[We],[ge],[Ve,{'useClass':(_0x22f732=(_0x199831=this[_0xf3d183(0x1f6)])==null?void 0x0:_0x199831['socketService'])!=null?_0x22f732:exports[_0xf3d183(0x33a)]}],[y[_0xf3d183(0x42b)],{'useClass':y[_0xf3d183(0x342)]}],[a['ISnapshotServerService'],{'useClass':je}],[a['IAuthzIoService'],{'useClass':exports[_0xf3d183(0x285)]}],[A[_0xf3d183(0x4d7)],{'useClass':xe}],[exports['CollaborationController']],[exports['DataLoaderController']],[exports[_0xf3d183(0x4a3)]],[Se],[Z]];(_0x563fee=this[_0xf3d183(0x1f6)])!=null&&_0x563fee['enableSingleActiveInstanceLock']&&_0x2b7f41[_0xf3d183(0x528)]([Ce,{'useClass':ds}]),((_0x260334=this[_0xf3d183(0x1f6)])==null?void 0x0:_0x260334[_0xf3d183(0x3d3)])==null||this['_config'][_0xf3d183(0x3d3)][_0xf3d183(0x394)](a[_0xf3d183(0x38c)]['UNIVER_SHEET'])?_0x2b7f41['push']([de]):this[_0xf3d183(0x1f6)][_0xf3d183(0x3d3)][_0xf3d183(0x394)](a['UniverInstanceType'][_0xf3d183(0x287)])&&_0x2b7f41[_0xf3d183(0x528)]([ve]),_0x2b7f41=a[_0xf3d183(0x479)](_0x2b7f41,(_0x46024e=this[_0xf3d183(0x1f6)])==null?void 0x0:_0x46024e[_0xf3d183(0x314)]),_0x2b7f41['forEach'](_0x2030e5=>_0x2c9ffa['add'](_0x2030e5)),_0x2c9ffa[_0xf3d183(0x3f4)](y['HTTPService'])[_0xf3d183(0x3f2)]({'priority':0x14,'interceptor':y[_0xf3d183(0x1c7)]({'maxParallel':0x6})}),this[_0xf3d183(0x407)]();}[_0x364156(0x407)](){const _0x5d1fb4=_0x364156;var _0x3113eb,_0x4c359e;(_0x3113eb=this['_config'])!=null&&_0x3113eb[_0x5d1fb4(0x339)]||this['_injector'][_0x5d1fb4(0x3f4)](exports[_0x5d1fb4(0x403)])['disableLocalCache'](),(_0x4c359e=this['_config'])!=null&&_0x4c359e[_0x5d1fb4(0x2d7)]&&this[_0x5d1fb4(0x34f)]['get'](Ee);}},ln(exports[_0x364156(0x239)],_0x364156(0x30e),hn),exports[_0x364156(0x239)]=cn([a['DependentOn'](u[_0x364156(0x22c)]),lt(0x1,a[_0x364156(0x476)]),lt(0x2,h[_0x364156(0x24e)](h[_0x364156(0x443)]))],exports[_0x364156(0x239)]),exports[_0x364156(0x4cf)]=Lt,exports['COLLAB_SUBMIT_CHANGESET_URL_KEY']=mt,exports['COLLAB_WEB_SOCKET_URL_KEY']=St,exports['CollaborationStatus']=U,exports[_0x364156(0x41d)]=wt,exports[_0x364156(0x39a)]=We,exports[_0x364156(0x2a7)]=vt,exports['HEARTBEAT_TIMEOUT_KEY']=Be,exports[_0x364156(0x367)]=Ve,exports[_0x364156(0x475)]=Xe,exports['LOCAL_CACHE_INTERVAL_KEY']=ft,exports['LOGIN_URL_KEY']=It,exports[_0x364156(0x452)]=dt,exports[_0x364156(0x524)]=_t,exports['SNAPSHOT_URL_KEY']=ut,exports[_0x364156(0x346)]=W,exports[_0x364156(0x238)]=yt,exports['deserializeToCombResponse']=Et,exports[_0x364156(0x52d)]=Ct;
|