@univerjs-pro/collaboration-client 0.1.12 → 0.1.13
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 +32 -0
- package/lib/locale/ru-RU.json +32 -0
- package/lib/locale/zh-CN.json +32 -0
- package/lib/types/controllers/collaboration/__tests__/mocks.d.ts +2 -2
- package/lib/types/controllers/collaboration/collaboration-state.d.ts +17 -8
- package/lib/types/controllers/collaboration/collaboration.controller.d.ts +5 -5
- package/lib/types/index.d.ts +1 -1
- package/lib/types/locale/ru-RU.d.ts +4 -0
- package/lib/types/locale/zh-CN.d.ts +4 -0
- package/lib/types/services/auth-server/authz-io-http.service.d.ts +29 -0
- package/lib/types/services/image-remote/image-io.service.d.ts +31 -0
- package/lib/umd/index.js +1 -1
- package/package.json +28 -25
- package/lib/types/locale/index.d.ts +0 -2
package/lib/cjs/index.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
'use strict';const _0x147aa9=_0x5bd1;(function(_0x1abd81,_0x289f83){const _0x414865=_0x5bd1,_0x3e7434=_0x1abd81();while(!![]){try{const _0x48ba20=parseInt(_0x414865(0x4c2))/0x1+-parseInt(_0x414865(0x363))/0x2*(parseInt(_0x414865(0x43a))/0x3)+parseInt(_0x414865(0x2a3))/0x4*(parseInt(_0x414865(0x455))/0x5)+parseInt(_0x414865(0x339))/0x6+parseInt(_0x414865(0x406))/0x7*(-parseInt(_0x414865(0x1fc))/0x8)+-parseInt(_0x414865(0x1fa))/0x9+-parseInt(_0x414865(0x2c3))/0xa;if(_0x48ba20===_0x289f83)break;else _0x3e7434['push'](_0x3e7434['shift']());}catch(_0x27e17a){_0x3e7434['push'](_0x3e7434['shift']());}}}(_0x35f8,0xbb3f6));var Mt=Object[_0x147aa9(0x451)],wt=(_0x2dc1da,_0x2ba325,_0x211787)=>_0x2ba325 in _0x2dc1da?Mt(_0x2dc1da,_0x2ba325,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x211787}):_0x2dc1da[_0x2ba325]=_0x211787,d=(_0x490468,_0x4e0433,_0x871621)=>(wt(_0x490468,typeof _0x4e0433!=_0x147aa9(0x422)?_0x4e0433+'':_0x4e0433,_0x871621),_0x871621);Object[_0x147aa9(0x451)](exports,Symbol[_0x147aa9(0x349)],{'value':_0x147aa9(0x273)});const a=require(_0x147aa9(0x4c4)),ae=require('@univerjs/design'),N=require('@univerjs/ui'),_=require(_0x147aa9(0x355)),h=require('@wendellhu/redi'),v=require(_0x147aa9(0x45f)),T=require('rxjs/operators'),U=require(_0x147aa9(0x495)),A=require(_0x147aa9(0x454)),p=require(_0x147aa9(0x207)),Ge=require(_0x147aa9(0x33d)),je=require(_0x147aa9(0x2b9)),R=require(_0x147aa9(0x2f5)),oe=require('@univerjs/sheets-ui'),it=require(_0x147aa9(0x2b2)),M=require(_0x147aa9(0x33c)),Lt=require('clsx'),Ut=require(_0x147aa9(0x436));var k=(_0x5be8fe=>(_0x5be8fe[_0x5be8fe[_0x147aa9(0x442)]=0x0]=_0x147aa9(0x442),_0x5be8fe[_0x5be8fe[_0x147aa9(0x374)]=0x1]=_0x147aa9(0x374),_0x5be8fe[_0x5be8fe['UNIVER_SHEET']=0x2]=_0x147aa9(0x2af),_0x5be8fe[_0x5be8fe[_0x147aa9(0x2d7)]=0x3]='UNIVER_SLIDE',_0x5be8fe[_0x5be8fe[_0x147aa9(0x3db)]=-0x1]=_0x147aa9(0x3db),_0x5be8fe))(k||{}),b=(_0x8ae74a=>(_0x8ae74a[_0x8ae74a[_0x147aa9(0x375)]=0x0]=_0x147aa9(0x375),_0x8ae74a[_0x8ae74a[_0x147aa9(0x2a7)]=0x1]=_0x147aa9(0x2a7),_0x8ae74a[_0x8ae74a['JOIN']=0x2]=_0x147aa9(0x458),_0x8ae74a[_0x8ae74a['LEAVE']=0x3]=_0x147aa9(0x3fa),_0x8ae74a[_0x8ae74a[_0x147aa9(0x217)]=0x4]='INGEST',_0x8ae74a[_0x8ae74a[_0x147aa9(0x482)]=0x5]=_0x147aa9(0x482),_0x8ae74a[_0x8ae74a[_0x147aa9(0x181)]=0x6]=_0x147aa9(0x181),_0x8ae74a[_0x8ae74a['UNRECOGNIZED']=-0x1]='UNRECOGNIZED',_0x8ae74a))(b||{}),Pe=(_0x272fa0=>(_0x272fa0[_0x272fa0[_0x147aa9(0x434)]=0x0]=_0x147aa9(0x434),_0x272fa0[_0x272fa0['OK']=0x1]='OK',_0x272fa0[_0x272fa0[_0x147aa9(0x3c3)]=0x2]=_0x147aa9(0x3c3),_0x272fa0[_0x272fa0[_0x147aa9(0x3db)]=-0x1]=_0x147aa9(0x3db),_0x272fa0))(Pe||{}),Nt=(_0x4ab877,_0x3f1cf7,_0x3e5d8c,_0x5ea778)=>{const _0x4de3f4=_0x147aa9;for(var _0x5ef9c6=_0x3f1cf7,_0x132b85=_0x4ab877[_0x4de3f4(0x3f5)]-0x1,_0x5ec20b;_0x132b85>=0x0;_0x132b85--)(_0x5ec20b=_0x4ab877[_0x132b85])&&(_0x5ef9c6=_0x5ec20b(_0x5ef9c6)||_0x5ef9c6);return _0x5ef9c6;},At=(_0x33af86,_0x2c2a62)=>(_0x57f1a7,_0x504546)=>_0x2c2a62(_0x57f1a7,_0x504546,_0x33af86);let V=class extends a['Disposable']{constructor(_0x503724){const _0x25344d=_0x147aa9;super(),d(this,'_roomMembers',new Map()),d(this,_0x25344d(0x445),null),(this[_0x25344d(0x40c)]=_0x503724,this[_0x25344d(0x305)](a[_0x25344d(0x4b3)](v[_0x25344d(0x258)](this[_0x25344d(0x40c)][_0x25344d(0x263)](a[_0x25344d(0x223)][_0x25344d(0x2af)])[_0x25344d(0x2e4)](T[_0x25344d(0x26d)](_0x27b667=>_0x27b667['getUnitId']())),this['_univerInstanceService'][_0x25344d(0x263)](a[_0x25344d(0x223)]['UNIVER_DOC'])['pipe'](T[_0x25344d(0x26d)](_0x539ed0=>_0x539ed0[_0x25344d(0x483)]())),this[_0x25344d(0x40c)][_0x25344d(0x263)](a[_0x25344d(0x223)][_0x25344d(0x2d7)])[_0x25344d(0x2e4)](T[_0x25344d(0x26d)](_0x522559=>_0x522559['getUnitId']())))[_0x25344d(0x2d2)](_0x1fef8e=>this[_0x25344d(0x358)](_0x1fef8e)))));}[_0x147aa9(0x447)](_0x25d63e){const _0x124314=_0x147aa9;this[_0x124314(0x445)]=_0x25d63e;}[_0x147aa9(0x3bf)](){const _0x2c492e=_0x147aa9;return this[_0x2c492e(0x445)];}[_0x147aa9(0x4bd)](_0x3ac8db,_0x22b906){const _0x5b3143=_0x147aa9;let _0x35ea8e=this[_0x5b3143(0x352)][_0x5b3143(0x1f9)](_0x3ac8db);_0x35ea8e||(_0x35ea8e=new kt(),this[_0x5b3143(0x352)][_0x5b3143(0x2c0)](_0x3ac8db,_0x35ea8e)),_0x35ea8e[_0x5b3143(0x4bd)](_0x22b906);}['removeMember'](_0x22584d,_0x2f2dad){const _0x3244d6=_0x147aa9,_0x50ad54=this[_0x3244d6(0x352)]['get'](_0x22584d);_0x50ad54&&_0x50ad54[_0x3244d6(0x42e)](_0x2f2dad);}[_0x147aa9(0x292)](_0x567344){const _0x38753e=_0x147aa9;return this[_0x38753e(0x352)][_0x38753e(0x1f9)](_0x567344);}[_0x147aa9(0x249)](_0x22d51b,_0x53d8af){const _0x24639f=_0x147aa9,_0x394ad5=this[_0x24639f(0x352)][_0x24639f(0x1f9)](_0x22d51b);if(_0x394ad5)return _0x394ad5[_0x24639f(0x249)](_0x53d8af);}[_0x147aa9(0x358)](_0x3a9675){const _0x472d03=_0x147aa9,_0x8197a4=this[_0x472d03(0x352)][_0x472d03(0x1f9)](_0x3a9675);_0x8197a4&&(_0x8197a4[_0x472d03(0x35b)](),this[_0x472d03(0x352)][_0x472d03(0x392)](_0x3a9675));}[_0x147aa9(0x35b)](){const _0x3fed67=_0x147aa9;this[_0x3fed67(0x352)][_0x3fed67(0x1f0)](_0x30dca1=>_0x30dca1['dispose']()),this[_0x3fed67(0x352)][_0x3fed67(0x1cf)]();}};V=Nt([At(0x0,a['IUniverInstanceService'])],V);class kt extends a[_0x147aa9(0x2a4)]{constructor(){const _0x4d0a6b=_0x147aa9;super(...arguments),d(this,_0x4d0a6b(0x412),new Map());}[_0x147aa9(0x35b)](){const _0x12667c=_0x147aa9;this[_0x12667c(0x412)][_0x12667c(0x1cf)]();}['updateMember'](_0x5c1762){const _0x4d301a=_0x147aa9;this[_0x4d301a(0x412)]['set'](_0x5c1762[_0x4d301a(0x21c)],_0x5c1762);}[_0x147aa9(0x42e)](_0x13e6ee){const _0x3b4fde=_0x147aa9;this[_0x3b4fde(0x412)][_0x3b4fde(0x392)](_0x13e6ee);}['getMember'](_0xb22c06){const _0x325f29=_0x147aa9;return this[_0x325f29(0x412)][_0x325f29(0x1f9)](_0xb22c06);}}function nt(_0x1524ec){const _0x341cf4=_0x147aa9;var _0x59ebd5,_0x598789,_0x3a5a32;const _0x1605cb=_0x1524ec[_0x341cf4(0x233)],_0x54950a=JSON[_0x341cf4(0x4cd)](_0x1605cb);switch(_0x54950a[_0x341cf4(0x3ac)]){case b['HEARTBEAT']:case b['HELLO']:{const _0x2fffb1=_0x54950a[_0x341cf4(0x28d)];return{..._0x54950a,'data':_0x2fffb1,'cmd':_0x54950a[_0x341cf4(0x3ac)]};}case b[_0x341cf4(0x458)]:{const _0xe3a7ef=_0x54950a['joinRsp'];return{..._0x54950a,'data':_0xe3a7ef,'cmd':_0x54950a[_0x341cf4(0x3ac)]};}case b[_0x341cf4(0x181)]:{const _0x27db28=_0x54950a[_0x341cf4(0x350)];switch(_0x27db28[_0x341cf4(0x450)]){case _[_0x341cf4(0x2dd)][_0x341cf4(0x3d5)]:return{..._0x54950a,'data':{..._0x27db28,'data':(_0x59ebd5=_0x27db28[_0x341cf4(0x4a9)])==null?void 0x0:_0x59ebd5['cs']},'cmd':_0x54950a['cmd']};case _[_0x341cf4(0x2dd)][_0x341cf4(0x276)]:return{..._0x54950a,'data':{..._0x27db28,'data':(_0x598789=_0x27db28['newCsEvent'])==null?void 0x0:_0x598789['cs']},'cmd':_0x54950a[_0x341cf4(0x3ac)]};case _[_0x341cf4(0x2dd)]['CHANGESET_REJ']:return{..._0x54950a,'data':{..._0x27db28,'data':(_0x3a5a32=_0x27db28[_0x341cf4(0x393)])==null?void 0x0:_0x3a5a32['cs']},'cmd':_0x54950a[_0x341cf4(0x3ac)]};case _[_0x341cf4(0x2dd)][_0x341cf4(0x47e)]:return{..._0x54950a,'data':{..._0x27db28,'data':_0x27db28[_0x341cf4(0x1ae)]},'cmd':_0x54950a[_0x341cf4(0x3ac)]};case _[_0x341cf4(0x2dd)][_0x341cf4(0x476)]:return{..._0x54950a,'data':{..._0x27db28,'data':_0x27db28[_0x341cf4(0x30c)]},'cmd':_0x54950a[_0x341cf4(0x3ac)]};case _[_0x341cf4(0x2dd)][_0x341cf4(0x24f)]:return{..._0x54950a,'data':{..._0x27db28,'data':_0x27db28[_0x341cf4(0x34e)]},'cmd':_0x54950a[_0x341cf4(0x3ac)]};case _[_0x341cf4(0x2dd)]['LIVESHARE_NEW_HOST']:return{..._0x54950a,'data':{..._0x27db28,'data':_0x27db28[_0x341cf4(0x42c)]},'cmd':_0x54950a[_0x341cf4(0x3ac)]};case _[_0x341cf4(0x2dd)][_0x341cf4(0x35c)]:case _[_0x341cf4(0x2dd)]['LIVESHARE_OPERATION']:return{..._0x54950a,'data':{..._0x27db28,'data':_0x27db28['liveShareOperation']},'cmd':_0x54950a[_0x341cf4(0x3ac)]};case _[_0x341cf4(0x2dd)]['LIVESHARE_TERMINATE']:return{..._0x54950a,'data':{..._0x27db28,'data':_0x27db28[_0x341cf4(0x42c)]},'cmd':_0x54950a['cmd']};case _[_0x341cf4(0x2dd)][_0x341cf4(0x26a)]:return{..._0x54950a,'data':_0x27db28,'cmd':_0x54950a[_0x341cf4(0x3ac)]};default:return _0x54950a;}}default:return _0x54950a;}}function rt(_0x576627){const _0x38fd8b=_0x147aa9;switch(_0x576627[_0x38fd8b(0x3ac)]){case b['HEARTBEAT']:case b[_0x38fd8b(0x2a7)]:return JSON[_0x38fd8b(0x2e6)]({'cmd':_0x576627[_0x38fd8b(0x3ac)],'routeKey':_0x576627[_0x38fd8b(0x3df)]});case b[_0x38fd8b(0x217)]:{let _0x54eadf;switch(_0x576627[_0x38fd8b(0x233)][_0x38fd8b(0x450)]){case _[_0x38fd8b(0x2dd)][_0x38fd8b(0x47e)]:{_0x54eadf={'eventID':_[_0x38fd8b(0x2dd)]['UPDATE_CURSOR'],'updateCursorEvent':_0x576627[_0x38fd8b(0x233)][_0x38fd8b(0x233)]};break;}case _[_0x38fd8b(0x2dd)][_0x38fd8b(0x24f)]:{_0x54eadf={'eventID':_[_0x38fd8b(0x2dd)][_0x38fd8b(0x24f)],'leaveEvent':_0x576627['data']['data']};break;}case _['CollaborationEvent']['USERS_ENTER']:{_0x54eadf={'eventID':_[_0x38fd8b(0x2dd)][_0x38fd8b(0x476)],'joinEvent':_0x576627[_0x38fd8b(0x233)]['data']};break;}case _['CollaborationEvent']['LIVESHARE_NEW_HOST']:{_0x54eadf={'eventID':_[_0x38fd8b(0x2dd)][_0x38fd8b(0x2c9)],'liveShareNewHost':_0x576627[_0x38fd8b(0x233)][_0x38fd8b(0x233)]};break;}case _[_0x38fd8b(0x2dd)][_0x38fd8b(0x3c0)]:{_0x54eadf={'eventID':_[_0x38fd8b(0x2dd)]['LIVESHARE_OPERATION'],'liveShareOperation':_0x576627[_0x38fd8b(0x233)][_0x38fd8b(0x233)]};break;}case _['CollaborationEvent']['LIVESHARE_TERMINATE']:{_0x54eadf={'eventID':_['CollaborationEvent'][_0x38fd8b(0x1c9)],'liveShareTerminate':_0x576627[_0x38fd8b(0x233)][_0x38fd8b(0x233)]};break;}case _['CollaborationEvent']['LIVESHARE_REQUEST_HOST']:{_0x54eadf={'eventID':_[_0x38fd8b(0x2dd)][_0x38fd8b(0x1ac)],'liveShareRequestHost':_0x576627[_0x38fd8b(0x233)][_0x38fd8b(0x233)]};break;}case _['CollaborationEvent'][_0x38fd8b(0x35c)]:{_0x54eadf={'eventID':_[_0x38fd8b(0x2dd)][_0x38fd8b(0x35c)]};break;}default:_0x54eadf={'eventID':_0x576627[_0x38fd8b(0x233)][_0x38fd8b(0x450)]};}return JSON[_0x38fd8b(0x2e6)]({'cmd':_0x576627[_0x38fd8b(0x3ac)],'routeKey':_0x576627[_0x38fd8b(0x3df)],'collaMsg':_0x54eadf});}case b[_0x38fd8b(0x458)]:return JSON[_0x38fd8b(0x2e6)]({'cmd':_0x576627[_0x38fd8b(0x3ac)],'routeKey':_0x576627['routeKey'],'joinReq':_0x576627[_0x38fd8b(0x233)]});case b['LEAVE']:return JSON[_0x38fd8b(0x2e6)]({'cmd':_0x576627[_0x38fd8b(0x3ac)],'routeKey':_0x576627[_0x38fd8b(0x3df)],'leaveReq':_0x576627[_0x38fd8b(0x233)]});default:throw new Error('[serializeCombRequest]:\x20should\x20not\x20fall\x20into\x20default\x20branch!');}}var $t=(_0x4e820d,_0x3857b1,_0x30f333,_0x34ca40)=>{const _0x2e46f6=_0x147aa9;for(var _0x4c169f=_0x3857b1,_0x2de358=_0x4e820d[_0x2e46f6(0x3f5)]-0x1,_0x344dea;_0x2de358>=0x0;_0x2de358--)(_0x344dea=_0x4e820d[_0x2de358])&&(_0x4c169f=_0x344dea(_0x4c169f)||_0x4c169f);return _0x4c169f;},ee=(_0x496f85,_0x3b3d17)=>(_0x2f4235,_0x130639)=>_0x3b3d17(_0x2f4235,_0x130639,_0x496f85);const xe=h[_0x147aa9(0x311)](_0x147aa9(0x45a)),ot='COLLAB_SUBMIT_CHANGESET_URL',jt=_0x147aa9(0x174);function Pt(_0x3adc29,_0x1a8815,_0x5421e6){const _0x590fcf=_0x147aa9;return _0x3adc29+'/'+_0x1a8815+_0x590fcf(0x3e8)+_0x5421e6+_0x590fcf(0x4c0);}exports[_0x147aa9(0x2b3)]=class{constructor(_0x178137,_0x490b50,_0x17617f,_0x36cfe7,_0x12fe43){const _0xaa693b=_0x147aa9;this[_0xaa693b(0x38a)]=_0x178137,this[_0xaa693b(0x25c)]=_0x490b50,this['_configService']=_0x17617f,this[_0xaa693b(0x17c)]=_0x36cfe7,this[_0xaa693b(0x3b6)]=_0x12fe43;}[_0x147aa9(0x1bb)](_0x1901e2){const _0x27dc4a=_0x147aa9,_0x32e09b=this['_ws'][_0x27dc4a(0x1bb)](_0x1901e2);if(!_0x32e09b)throw new Error(_0x27dc4a(0x225));const _0x2484eb=new a[(_0x27dc4a(0x230))](),_0x48c680=new v[(_0x27dc4a(0x43c))]();_0x2484eb[_0x27dc4a(0x3c1)](a[_0x27dc4a(0x4b3)](_0x32e09b[_0x27dc4a(0x1f1)][_0x27dc4a(0x2d2)](_0x102dea=>_0x48c680['next'](_0x102dea)))),_0x2484eb[_0x27dc4a(0x3c1)](a[_0x27dc4a(0x4b3)](()=>_0x48c680['complete']()));const _0x53d986=new v['Subject']();_0x2484eb[_0x27dc4a(0x3c1)](a[_0x27dc4a(0x4b3)](_0x32e09b[_0x27dc4a(0x268)][_0x27dc4a(0x2d2)](_0x360fae=>_0x53d986[_0x27dc4a(0x20f)](_0x360fae)))),_0x2484eb[_0x27dc4a(0x3c1)](a[_0x27dc4a(0x4b3)](()=>_0x53d986[_0x27dc4a(0x1d7)]()));const _0x5d9a2c=new v[(_0x27dc4a(0x43c))]();_0x2484eb['add'](a[_0x27dc4a(0x4b3)](_0x32e09b[_0x27dc4a(0x3a7)][_0x27dc4a(0x2d2)](_0x5150ae=>{const _0x1f5da0=nt(_0x5150ae);_0x5d9a2c['next'](_0x1f5da0);}))),_0x2484eb['add'](a['toDisposable'](()=>_0x5d9a2c[_0x27dc4a(0x1d7)]()));const _0x38e0e1=()=>{const _0xc90a53=_0x27dc4a;_0x53d986[_0xc90a53(0x20f)](new Event(_0xc90a53(0x404))),_0x48c680['next'](new CloseEvent(_0xc90a53(0x404))),_0x3c0c44[_0xc90a53(0x191)]();},_0x3c0c44={'memberID':'','close$':_0x48c680['asObservable'](),'error$':_0x53d986[_0x27dc4a(0x36f)](),'open$':_0x32e09b[_0x27dc4a(0x3d0)],'message$':_0x5d9a2c[_0x27dc4a(0x36f)](),'send':_0x259bfe=>{const _0x292820=_0x27dc4a;if(_0x259bfe[_0x292820(0x3ac)]===b['INGEST']){if(_0x259bfe['data'][_0x292820(0x450)]===_[_0x292820(0x2dd)][_0x292820(0x1ab)]){this[_0x292820(0x3c9)](_0x3c0c44,_0x259bfe[_0x292820(0x233)])[_0x292820(0x2ab)](_0x29de62=>{const _0x4e7153=_0x292820;this[_0x4e7153(0x17c)]['error'](_0x29de62),_0x38e0e1();});return;}if(_0x259bfe[_0x292820(0x233)][_0x292820(0x450)]===_[_0x292820(0x2dd)]['FETCH_MISSING']){const _0x557fa2=_0x259bfe[_0x292820(0x233)];this[_0x292820(0x4b2)](_0x557fa2)[_0x292820(0x41f)](_0x71d274=>{const _0x33ca53=_0x292820;_0x5d9a2c[_0x33ca53(0x20f)]({'cmd':b[_0x33ca53(0x181)],'code':Pe['OK'],'routeKey':_0x557fa2[_0x33ca53(0x233)][_0x33ca53(0x25a)],'routeType':'','data':{'eventID':_[_0x33ca53(0x2dd)][_0x33ca53(0x410)],'data':{'changesets':_0x71d274}}});})[_0x292820(0x2ab)](_0x1304e1=>{const _0x310a30=_0x292820;this[_0x310a30(0x17c)][_0x310a30(0x172)](_0x1304e1),_0x38e0e1();});return;}}_0x32e09b[_0x292820(0x35d)](rt(_0x259bfe));},'close':()=>{const _0x2b224b=_0x27dc4a;_0x32e09b[_0x2b224b(0x191)](),_0x2484eb['dispose']();}};return _0x3c0c44;}async['_submitChangeset'](_0x16b6df,_0x149543){const _0x252717=_0x147aa9;var _0x11740c;const {unitType:_0x3ea3ca,unitID:_0x3c9a41,changeset:_0x145828}=_0x149543[_0x252717(0x233)],_0x3a4d4a={'unitID':_0x3c9a41,'memberID':_0x16b6df[_0x252717(0x21c)],'type':_0x3ea3ca,'changeset':_[_0x252717(0x28b)](_0x145828)},_0xdd42c0=Pt((_0x11740c=this[_0x252717(0x266)][_0x252717(0x262)](ot))!=null?_0x11740c:jt,_0x3ea3ca,_0x3c9a41);try{await this[_0x252717(0x38a)]['post'](_0xdd42c0,{'body':_0x3a4d4a});}catch(_0x59ee89){throw this['_logService'][_0x252717(0x172)](_0x252717(0x255),_0x252717(0x323)),_0x59ee89;}}async['_fetchMissChangesets'](_0x3e4953){const _0x4d5d91=_0x147aa9,{unitID:_0x2d0797,from:_0x3ad09d,to:_0x269b48,unitType:_0x3609d5}=_0x3e4953[_0x4d5d91(0x233)];return(await this[_0x4d5d91(0x3b6)][_0x4d5d91(0x25b)]({'metadata':void 0x0},{'unitID':_0x2d0797,'type':_0x3609d5,'from':_0x3ad09d,'to':_0x269b48}))[_0x4d5d91(0x333)];}},exports[_0x147aa9(0x2b3)]=$t([ee(0x0,h[_0x147aa9(0x23d)](A[_0x147aa9(0x40b)])),ee(0x1,h[_0x147aa9(0x23d)](A[_0x147aa9(0x195)])),ee(0x2,a[_0x147aa9(0x1d5)]),ee(0x3,a[_0x147aa9(0x4be)]),ee(0x4,a[_0x147aa9(0x3a5)])],exports[_0x147aa9(0x2b3)]);var at=(_0x5c504a,_0x215229,_0x1de129,_0x40eeac)=>{const _0x3a0da6=_0x147aa9;for(var _0x4b67ec=_0x215229,_0x4497fd=_0x5c504a[_0x3a0da6(0x3f5)]-0x1,_0x586ce9;_0x4497fd>=0x0;_0x4497fd--)(_0x586ce9=_0x5c504a[_0x4497fd])&&(_0x4b67ec=_0x586ce9(_0x4b67ec)||_0x4b67ec);return _0x4b67ec;},w=(_0x2ca116,_0x32fee5)=>(_0x655a2a,_0x2db11a)=>_0x32fee5(_0x655a2a,_0x2db11a,_0x2ca116),W=(_0x1cb2d6=>(_0x1cb2d6[_0x1cb2d6[_0x147aa9(0x3f8)]=0x0]=_0x147aa9(0x3f8),_0x1cb2d6[_0x1cb2d6[_0x147aa9(0x180)]=0x1]=_0x147aa9(0x180),_0x1cb2d6[_0x1cb2d6['OFFLINE']=0x2]=_0x147aa9(0x253),_0x1cb2d6[_0x1cb2d6['ONLINE']=0x3]=_0x147aa9(0x20a),_0x1cb2d6))(W||{});const ct='COLLAB_WEB_SOCKET_URL',xt=_0x147aa9(0x48f),lt=_0x147aa9(0x212),Ht=0x7530,He=_0x147aa9(0x2b5),ht=0x2710,Bt=_0x147aa9(0x18e),Ft=0x4e20,Wt=_0x147aa9(0x452),Vt=0x3;exports['CollaborationSession']=class extends a['RxDisposable']{constructor(_0x469d5c,_0x2f680a,_0x18a6cd,_0x14fe86,_0x194871,_0x38d89a,_0x4c2195,_0x384b9a){const _0x1a04d0=_0x147aa9;super(),d(this,_0x1a04d0(0x47c),new v[(_0x1a04d0(0x470))](0x0)),d(this,_0x1a04d0(0x2ed),this[_0x1a04d0(0x47c)][_0x1a04d0(0x36f)]()),d(this,_0x1a04d0(0x46b),new v[(_0x1a04d0(0x43c))]()),d(this,'event$',this[_0x1a04d0(0x46b)][_0x1a04d0(0x36f)]()),d(this,_0x1a04d0(0x3d4)),d(this,'_socketMessageSubscription'),d(this,_0x1a04d0(0x1e9)),(this[_0x1a04d0(0x1da)]=_0x469d5c,this[_0x1a04d0(0x17c)]=_0x18a6cd,this[_0x1a04d0(0x473)]=_0x14fe86,this[_0x1a04d0(0x1dd)]=_0x194871,this[_0x1a04d0(0x266)]=_0x38d89a,this[_0x1a04d0(0x1d9)]=_0x4c2195,this[_0x1a04d0(0x293)]=_0x384b9a,_0x2f680a[_0x1a04d0(0x2e4)](T[_0x1a04d0(0x2f7)](this['dispose$']))[_0x1a04d0(0x2d2)](_0xcdd7aa=>{const _0x36dbd7=_0x1a04d0;var _0x4cb361;typeof _0xcdd7aa>'u'||(this[_0x36dbd7(0x3d4)]=_0xcdd7aa,_0xcdd7aa?(this[_0x36dbd7(0x38d)](_0xcdd7aa),this[_0x36dbd7(0x218)]=this[_0x36dbd7(0x3d4)][_0x36dbd7(0x3a7)][_0x36dbd7(0x2d2)](_0x45a9ff=>{const _0x1bf624=_0x36dbd7;_0x45a9ff[_0x1bf624(0x3df)]===this[_0x1bf624(0x1da)]&&this[_0x1bf624(0x4a2)](_0x45a9ff);})):(this['_sessionStatus$'][_0x36dbd7(0x20f)](0x2),(_0x4cb361=this[_0x36dbd7(0x218)])==null||_0x4cb361[_0x36dbd7(0x294)](),this['_socketMessageSubscription']=null));}),this['disposeWithMe'](this['_beforeCloseService'][_0x1a04d0(0x1d6)](()=>{const _0x4001d8=_0x1a04d0;var _0x797a1b;(_0x797a1b=this['_socket'])==null||_0x797a1b[_0x4001d8(0x35d)]({'cmd':b['LEAVE'],'data':{'roomID':this[_0x4001d8(0x1da)]}});})));}get[_0x147aa9(0x43e)](){const _0x39e159=_0x147aa9;return this[_0x39e159(0x47c)]['getValue']();}[_0x147aa9(0x287)](){const _0xf548b1=_0x147aa9;var _0x530209,_0x36f13e;return(_0x36f13e=(_0x530209=this[_0xf548b1(0x3d4)])==null?void 0x0:_0x530209[_0xf548b1(0x21c)])!=null?_0x36f13e:null;}['dispose'](){const _0x538dcb=_0x147aa9;super[_0x538dcb(0x35b)](),this[_0x538dcb(0x498)][_0x538dcb(0x20f)](),this['dispose$'][_0x538dcb(0x1d7)]();}[_0x147aa9(0x4a2)](_0x513b68){const _0x2a549b=_0x147aa9;_0x513b68[_0x2a549b(0x3ac)]===b[_0x2a549b(0x458)]?this[_0x2a549b(0x41d)](_0x513b68):_0x513b68[_0x2a549b(0x3ac)]===b[_0x2a549b(0x181)]&&this[_0x2a549b(0x1e1)](_0x513b68);}['_joinRoom'](_0x314f05){const _0x22c6d5=_0x147aa9;this['_sessionStatus$']['next'](0x1),_0x314f05[_0x22c6d5(0x35d)]({'cmd':b[_0x22c6d5(0x458)],'routeKey':this[_0x22c6d5(0x1da)],'routeType':'','data':{'rooms':[{'roomID':this[_0x22c6d5(0x1da)]}]}});}[_0x147aa9(0x41d)](_0x494032){const _0x317275=_0x147aa9;var _0x3a1022;if(_0x494032[_0x317275(0x466)]===Pe[_0x317275(0x3c3)]){this[_0x317275(0x1dd)]['show']({'type':ae[_0x317275(0x475)][_0x317275(0x2fd)],'content':this[_0x317275(0x1d9)]['t']('session.room-full')}),this[_0x317275(0x47c)][_0x317275(0x20f)](0x2);return;}this[_0x317275(0x47c)][_0x317275(0x20f)](0x3);const _0x50bd7e=(_0x3a1022=_0x494032['data'][_0x317275(0x407)][this[_0x317275(0x1da)]])==null?void 0x0:_0x3a1022['members'];_0x50bd7e&&_0x50bd7e[_0x317275(0x1f0)](_0x2dfde2=>this[_0x317275(0x293)][_0x317275(0x4bd)](this[_0x317275(0x1da)],_0x2dfde2));}[_0x147aa9(0x1e1)](_0x4cae00){const _0x2697e6=_0x147aa9;try{const _0x29393b=_0x4cae00[_0x2697e6(0x233)];switch(_0x29393b[_0x2697e6(0x450)]){case _[_0x2697e6(0x2dd)]['USERS_ENTER']:this[_0x2697e6(0x1b6)](_0x29393b),this[_0x2697e6(0x46b)][_0x2697e6(0x20f)](_0x29393b);break;case _['CollaborationEvent']['USERS_LEAVE']:this['_onUserLeave'](_0x29393b),this[_0x2697e6(0x46b)][_0x2697e6(0x20f)](_0x29393b);break;case _[_0x2697e6(0x2dd)]['CHANGESET_ACK']:this[_0x2697e6(0x49a)](),this[_0x2697e6(0x46b)][_0x2697e6(0x20f)](_0x29393b);break;case _[_0x2697e6(0x2dd)][_0x2697e6(0x26a)]:this[_0x2697e6(0x17c)]['error'](_0x2697e6(0x277)+JSON[_0x2697e6(0x2e6)](_0x29393b)),this[_0x2697e6(0x46b)][_0x2697e6(0x20f)](_0x29393b);break;default:this['_event$'][_0x2697e6(0x20f)](_0x29393b);}}catch(_0x7f8d78){this[_0x2697e6(0x17c)][_0x2697e6(0x172)](_0x7f8d78,_0x4cae00);}}['_onUserJoin'](_0x4f24d3){const _0x18dcd0=_0x147aa9;this['_memberService'][_0x18dcd0(0x4bd)](this[_0x18dcd0(0x1da)],_0x4f24d3[_0x18dcd0(0x233)]);}['_onUserLeave'](_0x11b146){const _0xaa13df=_0x147aa9;this[_0xaa13df(0x293)]['removeMember'](this[_0xaa13df(0x1da)],_0x11b146[_0xaa13df(0x233)]['memberID']);}async[_0x147aa9(0x35d)](_0x331b7e,_0x62f96){const _0x486c3e=_0x147aa9;if(this[_0x486c3e(0x43e)]!==0x3||!this['_socket'])throw new Error(_0x486c3e(0x22b));try{_0x331b7e[_0x486c3e(0x450)]===_['CollaborationEvent'][_0x486c3e(0x276)]&&this[_0x486c3e(0x3aa)](),this[_0x486c3e(0x3d4)][_0x486c3e(0x35d)]({'cmd':b['INGEST'],'routeKey':_0x62f96,'routeType':'','data':_0x331b7e});}catch(_0x1f8a05){this[_0x486c3e(0x17c)][_0x486c3e(0x172)](_0x1f8a05);}}[_0x147aa9(0x3aa)](){const _0x1a225f=_0x147aa9;var _0x52adda;this['_collaborationTimeoutTimer']=window[_0x1a225f(0x3ea)](()=>{const _0x599299=_0x1a225f;this[_0x599299(0x1e9)]=null,this[_0x599299(0x1dd)][_0x599299(0x1a1)]({'type':ae[_0x599299(0x475)][_0x599299(0x295)],'content':this['_localeService']['t'](_0x599299(0x20c))});},(_0x52adda=this['_configService'][_0x1a225f(0x262)](He))!=null?_0x52adda:ht);}[_0x147aa9(0x49a)](){const _0x51e97e=_0x147aa9;this['_collaborationTimeoutTimer']&&(clearTimeout(this['_collaborationTimeoutTimer']),this[_0x51e97e(0x1e9)]=null);}},exports[_0x147aa9(0x1d0)]=at([w(0x2,a[_0x147aa9(0x4be)]),w(0x3,N[_0x147aa9(0x4a5)]),w(0x4,N[_0x147aa9(0x3c5)]),w(0x5,a[_0x147aa9(0x1d5)]),w(0x6,h[_0x147aa9(0x23d)](a[_0x147aa9(0x2fc)])),w(0x7,h[_0x147aa9(0x23d)](V))],exports[_0x147aa9(0x1d0)]),exports[_0x147aa9(0x327)]=class extends a[_0x147aa9(0x2a4)]{constructor(_0x365406,_0x4a219e,_0x3f4e35,_0x6cb6b1,_0x4dc858,_0x3323f8){const _0x5b66f4=_0x147aa9;super(),d(this,'_socket$',new v['BehaviorSubject'](void 0x0)),d(this,'_sessions',new Map()),d(this,'_status$',new v[(_0x5b66f4(0x470))](0x0)),d(this,_0x5b66f4(0x209),this[_0x5b66f4(0x3bb)][_0x5b66f4(0x36f)]()),d(this,_0x5b66f4(0x284),!0x1),d(this,_0x5b66f4(0x460)),d(this,_0x5b66f4(0x332)),d(this,'_retryConnectingTimer'),d(this,_0x5b66f4(0x343),0x0),(this[_0x5b66f4(0x17d)]=_0x365406,this['_localeService']=_0x4a219e,this[_0x5b66f4(0x1dd)]=_0x3f4e35,this[_0x5b66f4(0x17c)]=_0x6cb6b1,this[_0x5b66f4(0x266)]=_0x4dc858,this['_socketService']=_0x3323f8);}get['_socket'](){const _0x4d74d9=_0x147aa9;return this['_socket$'][_0x4d74d9(0x290)]();}[_0x147aa9(0x35b)](){const _0x162b99=_0x147aa9;super[_0x162b99(0x35b)](),this[_0x162b99(0x3bc)][_0x162b99(0x1f0)](_0x5ba3e6=>_0x5ba3e6[_0x162b99(0x35b)]()),this[_0x162b99(0x3bc)][_0x162b99(0x1cf)](),this[_0x162b99(0x3bb)]['complete']();}async[_0x147aa9(0x2dc)](_0x1fe951){const _0x2aacd9=_0x147aa9;if(this['_sessions']['has'](_0x1fe951))return this[_0x2aacd9(0x3bc)][_0x2aacd9(0x1f9)](_0x1fe951);this[_0x2aacd9(0x480)]();const _0x3ff94c=this[_0x2aacd9(0x17d)]['createInstance'](exports[_0x2aacd9(0x1d0)],_0x1fe951,this[_0x2aacd9(0x27e)][_0x2aacd9(0x36f)]());return this[_0x2aacd9(0x3bc)][_0x2aacd9(0x2c0)](_0x1fe951,_0x3ff94c),_0x3ff94c;}[_0x147aa9(0x2a0)](){const _0x32cce4=_0x147aa9;var _0x17a0bb;const _0x408f27=(_0x17a0bb=this['_configService']['getConfig'](ct))!=null?_0x17a0bb:xt;return this['_socketService'][_0x32cce4(0x1bb)](_0x408f27);}[_0x147aa9(0x480)](){const _0xae8b7c=_0x147aa9;try{const _0x3bec7d=this[_0xae8b7c(0x2a0)]();if(_0x3bec7d){const _0x4ece66=_0x3bec7d[_0xae8b7c(0x35d)];_0x3bec7d['send']=_0x4440e0=>(this['_rescheduleHeartbeatEvent'](),_0x4ece66[_0xae8b7c(0x3b5)](_0x3bec7d,[_0x4440e0])),_0x3bec7d[_0xae8b7c(0x3a7)][_0xae8b7c(0x2d2)](_0x51e734=>this[_0xae8b7c(0x397)](_0x3bec7d,_0x51e734)),_0x3bec7d[_0xae8b7c(0x268)][_0xae8b7c(0x2e4)](T['take'](0x1))['subscribe'](_0x3bf16b=>this['_logService']['error'](_0xae8b7c(0x322),_0x3bf16b)),_0x3bec7d['open$']['pipe'](T[_0xae8b7c(0x3e2)](0x1))[_0xae8b7c(0x2d2)](()=>{const _0x109d2d=_0xae8b7c;this[_0x109d2d(0x17a)](_0x3bec7d);}),_0x3bec7d[_0xae8b7c(0x1f1)][_0xae8b7c(0x2e4)](T[_0xae8b7c(0x3e2)](0x1))[_0xae8b7c(0x2d2)](_0x14183f=>{const _0x4333bc=_0xae8b7c;this['_logService']['debug'](_0x4333bc(0x3e7),_0x4333bc(0x341),_0x14183f),this[_0x4333bc(0x370)]();});}}catch(_0x17c552){this[_0xae8b7c(0x17c)][_0xae8b7c(0x172)](_0x17c552),this[_0xae8b7c(0x370)]();}}[_0x147aa9(0x17a)](_0x31a1c9){const _0x43c29a=_0x147aa9;this['_logService']['debug'](_0x43c29a(0x3e7),_0x43c29a(0x3b2)),_0x31a1c9[_0x43c29a(0x35d)]({'cmd':b[_0x43c29a(0x2a7)]}),this[_0x43c29a(0x479)]();}[_0x147aa9(0x370)](){const _0xa4208b=_0x147aa9;var _0x51b753;this['_status$'][_0xa4208b(0x20f)](0x2),this[_0xa4208b(0x27e)][_0xa4208b(0x20f)](null),this[_0xa4208b(0x39c)](),this[_0xa4208b(0x2f1)](),this['_socketReady']=!0x1,this[_0xa4208b(0x343)]<((_0x51b753=this[_0xa4208b(0x266)][_0xa4208b(0x262)](Wt))!=null?_0x51b753:Vt)?(this[_0xa4208b(0x44d)](this[_0xa4208b(0x343)]),this['_retryCount']+=0x1):this[_0xa4208b(0x1dd)][_0xa4208b(0x1a1)]({'type':ae[_0xa4208b(0x475)][_0xa4208b(0x295)],'content':this[_0xa4208b(0x1d9)]['t'](_0xa4208b(0x1bc))});}[_0x147aa9(0x44d)](_0x41569b){const _0x906331=_0x147aa9;var _0x5619a3;const _0x4d0333=((_0x5619a3=this[_0x906331(0x266)][_0x906331(0x262)](Bt))!=null?_0x5619a3:Ft)*0x2**_0x41569b;this[_0x906331(0x1dd)][_0x906331(0x1a1)]({'type':ae['MessageType'][_0x906331(0x2fd)],'content':this[_0x906331(0x1d9)]['t'](_0x906331(0x1eb))}),this[_0x906331(0x178)]=setTimeout(()=>{const _0x364575=_0x906331;this['_tryEnsureSocket'](),clearTimeout(this[_0x364575(0x178)]),this[_0x364575(0x178)]=null;},_0x4d0333);}['_rescheduleHeartbeatEvent'](){const _0x1151ff=_0x147aa9;var _0x37e533;this[_0x1151ff(0x2f1)](),this['_sendHeartbeatTimer']=setTimeout(()=>this[_0x1151ff(0x385)](),(_0x37e533=this[_0x1151ff(0x266)][_0x1151ff(0x262)](lt))!=null?_0x37e533:Ht);}['_sendHeartbeat'](){const _0x545e87=_0x147aa9;this[_0x545e87(0x3d4)][_0x545e87(0x35d)]({'cmd':b[_0x545e87(0x482)]}),this['_waitForHeartbeatResponse']();}[_0x147aa9(0x2f0)](){const _0x4f6dd8=_0x147aa9;var _0x4d8167;this[_0x4f6dd8(0x332)]=setTimeout(()=>this[_0x4f6dd8(0x370)](),(_0x4d8167=this['_configService'][_0x4f6dd8(0x262)](He))!=null?_0x4d8167:ht);}['_onMessage'](_0x462964,_0x3a7d98){const _0x3dc690=_0x147aa9,{cmd:_0x5bfd49}=_0x3a7d98;_0x5bfd49===b['HELLO']&&!this[_0x3dc690(0x284)]&&(_0x462964[_0x3dc690(0x21c)]=_0x3a7d98['data'][_0x3dc690(0x21c)],this['_socket$'][_0x3dc690(0x20f)](_0x462964),this[_0x3dc690(0x3bb)][_0x3dc690(0x20f)](0x3),this[_0x3dc690(0x284)]=!0x0),_0x5bfd49===b[_0x3dc690(0x482)]&&this[_0x3dc690(0x39c)](),this[_0x3dc690(0x479)]();}[_0x147aa9(0x2f1)](){const _0x2ec323=_0x147aa9;this[_0x2ec323(0x460)]!=null&&(clearTimeout(this[_0x2ec323(0x460)]),this[_0x2ec323(0x460)]=null);}[_0x147aa9(0x39c)](){const _0x6a0485=_0x147aa9;this[_0x6a0485(0x332)]!=null&&(clearTimeout(this[_0x6a0485(0x332)]),this[_0x6a0485(0x332)]=null);}},exports[_0x147aa9(0x327)]=at([w(0x0,h[_0x147aa9(0x23d)](h[_0x147aa9(0x461)])),w(0x1,h[_0x147aa9(0x23d)](a[_0x147aa9(0x2fc)])),w(0x2,N['IMessageService']),w(0x3,a[_0x147aa9(0x4be)]),w(0x4,a[_0x147aa9(0x1d5)]),w(0x5,xe)],exports['CollaborationSessionService']);var Gt=(_0x4d16a9,_0x2ff3ad,_0xd8996,_0x12904a)=>{for(var _0x25ce19=_0x2ff3ad,_0x18fba7=_0x4d16a9['length']-0x1,_0x118d3e;_0x18fba7>=0x0;_0x18fba7--)(_0x118d3e=_0x4d16a9[_0x18fba7])&&(_0x25ce19=_0x118d3e(_0x25ce19)||_0x25ce19);return _0x25ce19;},te=(_0x1c4b38,_0x4d0cb9)=>(_0x519944,_0x5448ed)=>_0x4d0cb9(_0x519944,_0x5448ed,_0x1c4b38);const ut=_0x147aa9(0x1ca),Yt=0x3e8;exports[_0x147aa9(0x2b0)]=class extends a[_0x147aa9(0x2a4)]{constructor(_0x25a7ac,_0x39172b,_0xd9cbec,_0x177074,_0x284641){const _0x2ddb75=_0x147aa9;super(),d(this,_0x2ddb75(0x291),new Map()),d(this,_0x2ddb75(0x3da),new Map()),d(this,'_disabled',!0x1),(this[_0x2ddb75(0x266)]=_0x25a7ac,this['_localStorageService']=_0x39172b,this['_beforeCloseService']=_0xd9cbec,this[_0x2ddb75(0x1d9)]=_0x177074,this['_revisionService']=_0x284641,this[_0x2ddb75(0x4c9)]());}[_0x147aa9(0x39e)](){const _0x2231ff=_0x147aa9;this[_0x2231ff(0x19b)]=!0x0;}[_0x147aa9(0x1ea)](){this['_disabled']=!0x1;}['dispose'](){const _0x454ddc=_0x147aa9;this[_0x454ddc(0x395)]()[_0x454ddc(0x41f)](()=>super[_0x454ddc(0x35b)]());}async[_0x147aa9(0x32f)](_0x21c798){const _0x45acc9=_0x147aa9;return this[_0x45acc9(0x19b)]?null:this['_localStorageService'][_0x45acc9(0x49b)](Ye(_0x21c798));}async[_0x147aa9(0x1e2)](_0x43c51e,_0x873feb){const _0x43adb4=_0x147aa9;return!!this[_0x43adb4(0x29f)][_0x43adb4(0x4b6)](_0x43c51e,_0x873feb);}['updateOfflineData'](_0x502d29,_0x3df04b,_0x1e9d18,_0x1ecf7d){const _0x4c20ab=_0x147aa9,_0x1e14eb=this[_0x4c20ab(0x3c6)]['getCurrentRevForDocument'](_0x502d29);this[_0x4c20ab(0x291)][_0x4c20ab(0x2c0)](_0x502d29,{'unitID':_0x502d29,'type':_0x3df04b,'awaitingChangeset':_0x1e9d18,'mutations':_0x1ecf7d,'rev':_0x1e14eb}),this[_0x4c20ab(0x3da)]['has'](_0x502d29)||this[_0x4c20ab(0x2ee)](_0x502d29);}['_scheduleSaving'](_0x553f6a){const _0x17d953=_0x147aa9,_0x5a2004=this[_0x17d953(0x2de)]();_0x5a2004===0x0?this[_0x17d953(0x4b1)](_0x553f6a):this[_0x17d953(0x3da)]['set'](_0x553f6a,setTimeout(()=>this[_0x17d953(0x4b1)](_0x553f6a),_0x5a2004));}[_0x147aa9(0x2de)](){const _0x3db59c=_0x147aa9;var _0x512a57;return(_0x512a57=this[_0x3db59c(0x266)][_0x3db59c(0x262)](ut))!=null?_0x512a57:Yt;}[_0x147aa9(0x4b1)](_0x16ea02){const _0x30c98e=_0x147aa9,_0x52f5f6=this[_0x30c98e(0x3da)][_0x30c98e(0x1f9)](_0x16ea02);return _0x52f5f6!==void 0x0&&window['clearTimeout'](_0x52f5f6),this[_0x30c98e(0x29f)]['setItem'](Ye(_0x16ea02),this[_0x30c98e(0x291)][_0x30c98e(0x1f9)](_0x16ea02))[_0x30c98e(0x41f)](()=>this['_saveTaskMap'][_0x30c98e(0x392)](_0x16ea02));}async[_0x147aa9(0x395)](){const _0x296a14=_0x147aa9,_0x53a421=[];this[_0x296a14(0x3da)][_0x296a14(0x1f0)]((_0x39593f,_0x2b27d6)=>{const _0x4e3fd1=_0x296a14;window[_0x4e3fd1(0x3f9)](_0x39593f),_0x53a421[_0x4e3fd1(0x4ad)](this[_0x4e3fd1(0x4b1)](_0x2b27d6)[_0x4e3fd1(0x41f)](()=>{const _0x3c993a=_0x4e3fd1;this[_0x3c993a(0x3da)][_0x3c993a(0x392)](_0x2b27d6);}));}),await Promise[_0x296a14(0x3f1)](_0x53a421);}[_0x147aa9(0x4c9)](){const _0x395aa7=_0x147aa9;this[_0x395aa7(0x305)](this[_0x395aa7(0x473)]['registerBeforeClose'](()=>{const _0x2f0ed4=_0x395aa7;if(this[_0x2f0ed4(0x3da)][_0x2f0ed4(0x2e0)])return this[_0x2f0ed4(0x1d9)]['t'](_0x2f0ed4(0x2ce));}));}},exports['LocalCacheService']=Gt([te(0x0,a['IConfigService']),te(0x1,a[_0x147aa9(0x238)]),te(0x2,N[_0x147aa9(0x4a5)]),te(0x3,h[_0x147aa9(0x23d)](a[_0x147aa9(0x2fc)])),te(0x4,h[_0x147aa9(0x23d)](_[_0x147aa9(0x1a3)]))],exports[_0x147aa9(0x2b0)]);function Ye(_0xb40b64){return'unit-cache-'+_0xb40b64;}const Ce=h[_0x147aa9(0x311)](_0x147aa9(0x30e));var _t=(_0x1268a0=>(_0x1268a0[_0x1268a0[_0x147aa9(0x39b)]=0x0]='NO_OTHER_CLIENTS_EDITING',_0x1268a0[_0x1268a0[_0x147aa9(0x2f8)]=0x1]=_0x147aa9(0x2f8),_0x1268a0))(_t||{});const Ke=0x7530,qe=_0x147aa9(0x2b4);class Kt extends a['Disposable']{constructor(){const _0x5056e9=_0x147aa9;super(),d(this,_0x5056e9(0x1be),a['Tools'][_0x5056e9(0x214)]()),d(this,'_selfUnitIDs',new Set()),d(this,_0x5056e9(0x4b9),new Map()),d(this,'_heartbeatTimer',null),d(this,'_clearOtherTimers',new Map()),d(this,'_unitStatus',new Map()),this[_0x5056e9(0x41a)]();}[_0x147aa9(0x35b)](){const _0x1413f7=_0x147aa9;super[_0x1413f7(0x35b)](),this[_0x1413f7(0x2bf)][_0x1413f7(0x1f0)]((_0x296af3,_0x1750c7)=>this['_removeClearOtherTimer'](_0x1750c7)),this[_0x1413f7(0x175)]&&window[_0x1413f7(0x1b1)](this['_heartbeatTimer']);}['getUnitStatus$'](_0x26a2d2){const _0x5e76d0=_0x147aa9;return this[_0x5e76d0(0x220)](_0x26a2d2)['pipe'](v[_0x5e76d0(0x1c5)]());}['editingUnit'](_0x4d6558){const _0x57f8d3=_0x147aa9;this[_0x57f8d3(0x439)][_0x57f8d3(0x2e0)]===0x0&&this[_0x57f8d3(0x213)](),this[_0x57f8d3(0x439)]['add'](_0x4d6558),this[_0x57f8d3(0x3b3)]({'type':0x0,'memberID':this[_0x57f8d3(0x1be)],'unitID':_0x4d6558});}[_0x147aa9(0x16b)](_0x48ca15){const _0x1ef098=_0x147aa9;this[_0x1ef098(0x439)][_0x1ef098(0x392)](_0x48ca15),this[_0x1ef098(0x439)][_0x1ef098(0x2e0)]===0x0&&this[_0x1ef098(0x175)]&&window['clearInterval'](this['_heartbeatTimer']);}[_0x147aa9(0x41a)](){const _0x2d6d16=_0x147aa9;this[_0x2d6d16(0x305)](a[_0x2d6d16(0x4b3)](v[_0x2d6d16(0x164)](window,_0x2d6d16(0x2bd))[_0x2d6d16(0x2d2)](_0x59c121=>{const _0x239705=_0x2d6d16;if(_0x59c121['key']!==qe||!_0x59c121[_0x239705(0x49e)])return;const _0x3e6c7b=JSON[_0x239705(0x4cd)](_0x59c121[_0x239705(0x49e)]);this[_0x239705(0x29c)](_0x3e6c7b);}))),window[_0x2d6d16(0x310)](_0x2d6d16(0x2eb),()=>this[_0x2d6d16(0x3b3)]({'type':0x1,'memberID':this[_0x2d6d16(0x1be)],'unitIDs':Array[_0x2d6d16(0x160)](this[_0x2d6d16(0x439)])}));}[_0x147aa9(0x29c)](_0x552910){const _0x3636ea=_0x147aa9;switch(_0x552910['type']){case 0x0:this[_0x3636ea(0x356)](_0x552910);break;case 0x1:this[_0x3636ea(0x36b)](_0x552910);break;case 0x2:this[_0x3636ea(0x417)](_0x552910);break;}}[_0x147aa9(0x356)](_0x403837){const _0x197f47=_0x147aa9,{unitID:_0x265833,memberID:_0x599794}=_0x403837;if(!this[_0x197f47(0x4b9)][_0x197f47(0x24a)](_0x265833)||!this[_0x197f47(0x4b9)][_0x197f47(0x1f9)](_0x265833)['has'](_0x599794)){const _0x1a167c=this[_0x197f47(0x4b9)]['get'](_0x265833)||new Set();_0x1a167c['add'](_0x599794),this[_0x197f47(0x4b9)][_0x197f47(0x2c0)](_0x265833,_0x1a167c),this[_0x197f47(0x1c7)](_0x599794),this['_send']({'type':0x0,'memberID':this[_0x197f47(0x1be)],'unitID':_0x265833});}else this[_0x197f47(0x220)](_0x265833)['next'](0x1);}[_0x147aa9(0x1c7)](_0x22ac53){const _0x3eb4aa=_0x147aa9;this[_0x3eb4aa(0x1e3)](_0x22ac53);const _0x2107c5=window[_0x3eb4aa(0x3ea)](()=>{this['_unitOnClients']['forEach'](_0x4fdfa9=>{const _0x5bc834=_0x5bd1;_0x4fdfa9[_0x5bc834(0x392)](_0x22ac53);});},Ke*0x2);this[_0x3eb4aa(0x2bf)][_0x3eb4aa(0x2c0)](_0x22ac53,_0x2107c5);}[_0x147aa9(0x1e3)](_0x180997){const _0x6ef934=_0x147aa9;if(this[_0x6ef934(0x2bf)]['has'](_0x180997)){const _0x493fcf=this['_clearOtherTimers'][_0x6ef934(0x1f9)](_0x180997);_0x493fcf&&window[_0x6ef934(0x3f9)](_0x493fcf),this[_0x6ef934(0x2bf)][_0x6ef934(0x2c0)](_0x180997,null);}}['_handleLeaveEvent'](_0xc08b4a){const _0x1508cd=_0x147aa9,{memberID:_0x4cdba7,unitIDs:_0x456bd8}=_0xc08b4a;_0x456bd8[_0x1508cd(0x1f0)](_0x6d615f=>{const _0xe4256b=_0x1508cd;var _0x6cb9c8;const _0x4cf6aa=this['_unitOnClients']['get'](_0x6d615f);_0x4cf6aa&&(_0x4cf6aa[_0xe4256b(0x392)](_0x4cdba7),(_0x6cb9c8=this[_0xe4256b(0x220)](_0x6d615f))==null||_0x6cb9c8['next'](_0x4cf6aa[_0xe4256b(0x2e0)]===0x0?0x0:0x1));}),this[_0x1508cd(0x1e3)](_0x4cdba7);}[_0x147aa9(0x417)](_0x376fa7){const _0x5d7cac=_0x147aa9;this['_scheduleClearOtherTimer'](_0x376fa7[_0x5d7cac(0x21c)]);}[_0x147aa9(0x3b3)](_0x5b87ab){const _0x5bc4dd=_0x147aa9;localStorage[_0x5bc4dd(0x4b6)](qe,JSON['stringify'](_0x5b87ab));}[_0x147aa9(0x213)](){const _0x1c85f2=_0x147aa9;this[_0x1c85f2(0x175)]=window[_0x1c85f2(0x4ac)](()=>{const _0x2d9ef9=_0x1c85f2;this[_0x2d9ef9(0x3b3)]({'type':0x2,'memberID':this[_0x2d9ef9(0x1be)]});},Ke);}[_0x147aa9(0x220)](_0x98ea01){const _0x1a7d31=_0x147aa9;return this[_0x1a7d31(0x3e3)][_0x1a7d31(0x24a)](_0x98ea01)||this['_unitStatus']['set'](_0x98ea01,new v[(_0x1a7d31(0x470))](0x0)),this['_unitStatus'][_0x1a7d31(0x1f9)](_0x98ea01);}}var qt=(_0x2d258f,_0x132d20,_0x58c670,_0x46f3e8)=>{const _0x266ea8=_0x147aa9;for(var _0xfc1408=_0x132d20,_0xbdade9=_0x2d258f[_0x266ea8(0x3f5)]-0x1,_0x492aef;_0xbdade9>=0x0;_0xbdade9--)(_0x492aef=_0x2d258f[_0xbdade9])&&(_0xfc1408=_0x492aef(_0xfc1408)||_0xfc1408);return _0xfc1408;},Xe=(_0x15b2b7,_0x48bec1)=>(_0x1d96e2,_0x253651)=>_0x48bec1(_0x1d96e2,_0x253651,_0x15b2b7);let Se=class{constructor(_0x961782,_0x439ec3){const _0x18bed8=_0x147aa9;this[_0x18bed8(0x17d)]=_0x961782,this[_0x18bed8(0x306)]=_0x439ec3;}[_0x147aa9(0x485)](_0x506e71){const _0x12dedd=_0x147aa9;this['_transformUndoRedoStack'](_0x506e71),this[_0x12dedd(0x3fc)](_0x506e71);}['transformRemoteChangeset'](_0x30916b){const _0x8ebc9b=_0x147aa9,_0x3453aa=this['_injector']['get'](U[_0x8ebc9b(0x3b9)]),{redoCache:_0x470908}=_0x3453aa[_0x8ebc9b(0x250)]();if(_0x470908[_0x8ebc9b(0x3f5)]===0x0)return _0x30916b;let _0x54c9a3=a[_0x8ebc9b(0x2bb)]['deepClone'](_0x30916b[_0x8ebc9b(0x2a1)][0x0]);for(let _0x42a873=0x0;_0x42a873<_0x470908[_0x8ebc9b(0x3f5)];_0x42a873++){const _0x533e60={'id':_0x8ebc9b(0x1a6),'params':{..._0x470908[_0x42a873]}},_0x24b7d1=this['_transformService'][_0x8ebc9b(0x1ec)](_0x54c9a3,_0x533e60,!0x1);if(_[_0x8ebc9b(0x3e1)](_0x24b7d1))throw _0x24b7d1['error'];_0x54c9a3=_0x24b7d1[_0x8ebc9b(0x387)];}return{...a[_0x8ebc9b(0x2bb)][_0x8ebc9b(0x1de)](_0x30916b),'mutations':[_0x54c9a3]};}['_transformUndoRedoStack'](_0x3424d7){const _0x4dc8d6=_0x147aa9,_0x193eb9=this[_0x4dc8d6(0x17d)][_0x4dc8d6(0x1f9)](U['IMEInputManagerService']),{undoCache:_0x1176df,redoCache:_0x117a13}=_0x193eb9['getUndoRedoMutationParamsCache']();if(_0x1176df['length']===0x0||_0x117a13[_0x4dc8d6(0x3f5)]===0x0)return;const _0x424280=[],_0x320e49=[];let _0x11380d=a[_0x4dc8d6(0x2bb)][_0x4dc8d6(0x1de)](_0x3424d7[_0x4dc8d6(0x2a1)][0x0]),_0x1f686f=a[_0x4dc8d6(0x2bb)][_0x4dc8d6(0x1de)](_0x3424d7[_0x4dc8d6(0x2a1)][0x0]);for(let _0x3de008=_0x1176df[_0x4dc8d6(0x3f5)]-0x1;_0x3de008>=0x0;_0x3de008--){const _0x518a7f={'id':_0x4dc8d6(0x1a6),'params':{..._0x1176df[_0x3de008]}},_0x2b6600={'id':_0x4dc8d6(0x1a6),'params':{..._0x117a13[_0x3de008]}},_0x513dd0=this[_0x4dc8d6(0x306)][_0x4dc8d6(0x1ec)](_0x11380d,_0x518a7f,!0x1),_0x2c59f9=this[_0x4dc8d6(0x306)][_0x4dc8d6(0x1ec)](_0x1f686f,_0x2b6600,!0x1);if(_['isTransformMutationFailure'](_0x513dd0))throw _0x513dd0[_0x4dc8d6(0x172)];if(_[_0x4dc8d6(0x3e1)](_0x2c59f9))throw _0x2c59f9[_0x4dc8d6(0x172)];_0x424280[_0x4dc8d6(0x472)](_0x513dd0[_0x4dc8d6(0x1cd)][_0x4dc8d6(0x325)]),_0x320e49[_0x4dc8d6(0x472)](_0x2c59f9[_0x4dc8d6(0x1cd)]['params']),_0x11380d=_0x513dd0[_0x4dc8d6(0x387)],_0x1f686f=_0x2c59f9[_0x4dc8d6(0x387)];}_0x193eb9['setUndoRedoMutationParamsCache']({'undoCache':_0x424280,'redoCache':_0x320e49});}[_0x147aa9(0x3fc)](_0x23d8cc){const _0x50da65=_0x147aa9,_0x46def7=this[_0x50da65(0x17d)][_0x50da65(0x1f9)](U['IMEInputManagerService']),_0x37aec3=_0x46def7[_0x50da65(0x280)]();if(_0x37aec3==null)return;const _0x29212a=[{'id':_0x50da65(0x1a6),'params':{'unitId':_0x23d8cc[_0x50da65(0x25a)],'actions':[],'textRanges':[_0x37aec3]}}],_0x1b3128=this[_0x50da65(0x306)][_0x50da65(0x21a)](_0x23d8cc,_0x29212a);if(!_[_0x50da65(0x242)](_0x1b3128))throw _0x1b3128[_0x50da65(0x172)];const _0x413361=_0x1b3128[_0x50da65(0x1cd)][0x0][_0x50da65(0x325)][_0x50da65(0x25f)];Array['isArray'](_0x413361)&&_0x413361[_0x50da65(0x3f5)]&&_0x46def7['setActiveRange'](_0x413361[0x0]);}};Se=qt([Xe(0x0,h[_0x147aa9(0x23d)](h[_0x147aa9(0x461)])),Xe(0x1,_[_0x147aa9(0x2ad)])],Se);var Xt=(_0x461a30,_0x552c42,_0x6a8533,_0x164cd7)=>{const _0x12df39=_0x147aa9;for(var _0x48e63a=_0x552c42,_0x1ed685=_0x461a30[_0x12df39(0x3f5)]-0x1,_0x4ccc25;_0x1ed685>=0x0;_0x1ed685--)(_0x4ccc25=_0x461a30[_0x1ed685])&&(_0x48e63a=_0x4ccc25(_0x48e63a)||_0x48e63a);return _0x48e63a;},Je=(_0x266d4b,_0xa345a0)=>(_0x832228,_0x105282)=>_0xa345a0(_0x832228,_0x105282,_0x266d4b);let ve=class{constructor(_0x4b8fc3,_0x3cb627){const _0x78e0b2=_0x147aa9;this[_0x78e0b2(0x17d)]=_0x4b8fc3,this[_0x78e0b2(0x306)]=_0x3cb627;}[_0x147aa9(0x3f0)](_0xc35dc4){const _0x624137=_0x147aa9;var _0x30cb8b;const _0xb1e295=this[_0x624137(0x17d)][_0x624137(0x1f9)](U[_0x624137(0x216)]),_0x48f4dc=(_0x30cb8b=_0xb1e295[_0x624137(0x326)]())!=null?_0x30cb8b:[],_0x50b25d=_0x48f4dc==null?void 0x0:_0x48f4dc[_0x624137(0x26d)](U[_0x624137(0x32c)]);if(_0x50b25d[_0x624137(0x3f5)]===0x0)return;const _0x1d441e=[{'id':_0x624137(0x1a6),'params':{'unitId':_0xc35dc4[_0x624137(0x25a)],'actions':[],'textRanges':_0x50b25d}}],_0x3dace0=this[_0x624137(0x306)][_0x624137(0x21a)](_0xc35dc4,_0x1d441e);if(!_['isTransformMutationsWithChangesetSuccess'](_0x3dace0))throw _0x3dace0[_0x624137(0x172)];const _0x34ce36=_0x3dace0[_0x624137(0x1cd)][0x0][_0x624137(0x325)][_0x624137(0x25f)];Array[_0x624137(0x488)](_0x34ce36)&&_0x34ce36[_0x624137(0x3f5)]&&_0xb1e295[_0x624137(0x409)](_0x34ce36,!0x1);}};ve=Xt([Je(0x0,h[_0x147aa9(0x23d)](h[_0x147aa9(0x461)])),Je(0x1,_['ITransformService'])],ve);function dt(_0x37b34f){const _0x108070=_0x147aa9;let _0x449144='';for(const _0x2ff133 of _0x37b34f){const {startOffset:_0x3abeef,endOffset:_0x3f85ca,isActive:_0xfb93c0}=_0x2ff133;_0x449144[_0x108070(0x3f5)]&&(_0x449144+=','),_0x449144+=_0x3abeef+':'+_0x3f85ca+':'+(_0xfb93c0?'1':'0');}return _0x449144;}function Jt(_0x720155){const _0x28acfb=_0x147aa9,_0x1026f5=_0x720155[_0x28acfb(0x46f)](','),_0x1701d6=[];for(const _0x15557f of _0x1026f5){const [_0x264de7,_0x384b3c,_0x347709]=_0x15557f[_0x28acfb(0x46f)](':');_0x1701d6[_0x28acfb(0x4ad)]({'startOffset':Number(_0x264de7),'endOffset':Number(_0x384b3c),'collapsed':_0x264de7===_0x384b3c,'isActive':_0x347709==='1'});}return _0x1701d6[_0x28acfb(0x1e6)](_0x443136=>_0x443136[_0x28acfb(0x2b6)])||(_0x1701d6[0x0][_0x28acfb(0x2b6)]=!0x0),_0x1701d6;}class Be extends a[_0x147aa9(0x169)]{constructor(){const _0x4f7169=_0x147aa9;super(...arguments),d(this,_0x4f7169(0x398),new v['BehaviorSubject'](null)),d(this,'collabCursorState$',this[_0x4f7169(0x398)][_0x4f7169(0x36f)]());}[_0x147aa9(0x464)](_0x79e8c){const _0x47e223=_0x147aa9,{unitID:_0x5d7487,memberID:_0x45f84c,textRanges:_0x524649}=_0x79e8c,_0x362b16=dt(_0x524649),_0x262fa1={'unitID':_0x5d7487,'memberID':_0x45f84c,'selection':_0x362b16};this[_0x47e223(0x398)][_0x47e223(0x20f)](_0x262fa1);}}var zt=(_0x733c9,_0x5865dd,_0x197835,_0x17867f)=>{const _0x2bdf53=_0x147aa9;for(var _0x2ab696=_0x5865dd,_0x3c1bf8=_0x733c9[_0x2bdf53(0x3f5)]-0x1,_0x4333f7;_0x3c1bf8>=0x0;_0x3c1bf8--)(_0x4333f7=_0x733c9[_0x3c1bf8])&&(_0x2ab696=_0x4333f7(_0x2ab696)||_0x2ab696);return _0x2ab696;},ze=(_0x4bb1c4,_0x49c973)=>(_0x3fd01e,_0x4584fc)=>_0x49c973(_0x3fd01e,_0x4584fc,_0x4bb1c4);let fe=class{constructor(_0x4a48e0,_0x19dc73){const _0x1a5563=_0x147aa9;this['_injector']=_0x4a48e0,this[_0x1a5563(0x306)]=_0x19dc73;}[_0x147aa9(0x3f0)](_0xb721e0){const _0x35889d=_0x147aa9;var _0x4b6316,_0xc81813,_0xf55ca8,_0x11e730;const _0x275ece=this[_0x35889d(0x17d)][_0x35889d(0x1f9)](p['SelectionManagerService']),{pluginName:_0x491b08,unitId:_0x119c3e,sheetId:_0x4706bb}=_0x275ece[_0x35889d(0x44b)]()||{},_0x145edc=(_0x4b6316=_0x275ece[_0x35889d(0x326)]())!=null?_0x4b6316:[];if(_0x145edc[_0x35889d(0x3f5)]===0x0||!_0x491b08||!_0x119c3e||!_0x4706bb)return;const _0x575b4e=[{'id':p[_0x35889d(0x170)]['id'],'params':{'unitId':_0x119c3e,'subUnitId':_0x4706bb,'pluginName':_0x491b08,'selections':a[_0x35889d(0x2bb)][_0x35889d(0x1de)](_0x145edc)}}],_0x51a20d=this[_0x35889d(0x306)]['transformMutationsWithChangeset'](_0xb721e0,_0x575b4e);if(!_[_0x35889d(0x242)](_0x51a20d))throw _0x51a20d['error'];const _0x318f2e=(_0x11e730=(_0xf55ca8=(_0xc81813=_0x51a20d[_0x35889d(0x1cd)][0x0])==null?void 0x0:_0xc81813[_0x35889d(0x325)])==null?void 0x0:_0xf55ca8[_0x35889d(0x490)])!=null?_0x11e730:_0x145edc;Array[_0x35889d(0x488)](_0x318f2e)&&_0x318f2e['length']&&this['_injector'][_0x35889d(0x1f9)](a[_0x35889d(0x496)])['executeCommand'](p[_0x35889d(0x170)]['id'],{'unitId':_0x119c3e,'subUnitId':_0x4706bb,'pluginName':_0x491b08,'selections':_0x318f2e});}};fe=zt([ze(0x0,h[_0x147aa9(0x23d)](h[_0x147aa9(0x461)])),ze(0x1,_[_0x147aa9(0x2ad)])],fe);const Qt=new Set([p[_0x147aa9(0x494)]['id']]);function Zt(_0x2f26e5,_0x10096f,_0x1245b5,_0x39de17,_0x4e9e0f){const _0x130f62=_0x147aa9;var _0x5be657,_0x500221,_0x560a15,_0x4f13f6;const _0x59b608=[];for(const _0x59ff83 of _0x2f26e5)if(Qt[_0x130f62(0x24a)](_0x59ff83['id'])){if(_0x59b608['length']>0x0)break;_0x59b608[_0x130f62(0x4ad)](_0x59ff83);break;}else _0x59b608[_0x130f62(0x4ad)](_0x59ff83);const _0x1119ff=(_0x500221=(_0x5be657=_0x4e9e0f[_0x130f62(0x3bf)]())==null?void 0x0:_0x5be657[_0x130f62(0x21d)])!=null?_0x500221:'unknown',_0xee4531=(_0x4f13f6=(_0x560a15=_0x4e9e0f[_0x130f62(0x3bf)]())==null?void 0x0:_0x560a15[_0x130f62(0x21c)])!=null?_0x4f13f6:'unknown';return{'changeset':{'unitID':_0x10096f,'type':_['mapDocumentTypeToUniverType'](_0x1245b5[_0x130f62(0x16c)](_0x10096f)),'baseRev':_0x39de17[_0x130f62(0x26b)](_0x10096f),'revision':0x0,'userID':_0x1119ff,'memberID':_0xee4531,'mutations':_0x59b608},'pendingMutations':_0x2f26e5[_0x130f62(0x2e2)](_0x59b608[_0x130f62(0x3f5)])};}function es(_0xb7b21c,_0x5e472d,_0x505cb4,_0x1057bd,_0x2b287d){const _0x583c43=_0x147aa9;var _0xacf61b,_0x238231,_0x1c0810,_0x457c80;const _0x20d37e=[_0xb7b21c[_0x583c43(0x408)]((_0x1cd2cf,_0x51c8d3)=>{const _0x5780f9=_0x583c43;var _0x5ee560;const {id:_0x13d9e4}=_0x1cd2cf,{id:_0x27596a,type:_0x4fe142}=_0x51c8d3,_0x5c77e9=(_0x5ee560=_0x1cd2cf[_0x5780f9(0x325)])!=null?_0x5ee560:{'actions':[]},_0x2181ae=_0x51c8d3[_0x5780f9(0x325)];if(_0x13d9e4&&_0x13d9e4!==_0x27596a)throw new Error('Cannot\x20assemble\x20a\x20changeset\x20from\x20multiple\x20mutations\x20of\x20different\x20types:\x20'+_0x13d9e4+_0x5780f9(0x297)+_0x27596a+'.');return{..._0x1cd2cf,'id':_0x27596a,'type':_0x4fe142,'params':{'unitId':_0x2181ae['unitId'],'textRanges':_0x2181ae[_0x5780f9(0x25f)],'actions':a[_0x5780f9(0x239)]['compose'](_0x5c77e9[_0x5780f9(0x288)],_0x2181ae[_0x5780f9(0x288)])}};},{})],_0x5ff859=(_0x238231=(_0xacf61b=_0x2b287d[_0x583c43(0x3bf)]())==null?void 0x0:_0xacf61b[_0x583c43(0x21d)])!=null?_0x238231:_0x583c43(0x228),_0x20014c=(_0x457c80=(_0x1c0810=_0x2b287d[_0x583c43(0x3bf)]())==null?void 0x0:_0x1c0810['memberID'])!=null?_0x457c80:_0x583c43(0x228);return{'changeset':{'unitID':_0x5e472d,'type':_[_0x583c43(0x18f)](_0x505cb4[_0x583c43(0x16c)](_0x5e472d)),'baseRev':_0x1057bd[_0x583c43(0x26b)](_0x5e472d),'revision':0x0,'userID':_0x5ff859,'memberID':_0x20014c,'mutations':_0x20d37e},'pendingMutations':[]};}var Y=(_0x279009,_0x413142,_0x7b5ca8,_0x3ac42b)=>{const _0x56347e=_0x147aa9;for(var _0x53ced5=_0x413142,_0x233736=_0x279009[_0x56347e(0x3f5)]-0x1,_0x10d785;_0x233736>=0x0;_0x233736--)(_0x10d785=_0x279009[_0x233736])&&(_0x53ced5=_0x10d785(_0x53ced5)||_0x53ced5);return _0x53ced5;},f=(_0x5e0eb0,_0x4d5cd6)=>(_0x50f6dd,_0x39339d)=>_0x4d5cd6(_0x50f6dd,_0x39339d,_0x5e0eb0);const gt=_0x147aa9(0x22a),ts=0x7d0;var D=(_0x308009=>(_0x308009[_0x147aa9(0x449)]='not_collab',_0x308009['SYNCED']=_0x147aa9(0x247),_0x308009[_0x147aa9(0x30b)]=_0x147aa9(0x2e7),_0x308009[_0x147aa9(0x424)]='awaiting',_0x308009[_0x147aa9(0x4a7)]='awaiting_with_pending',_0x308009[_0x147aa9(0x183)]=_0x147aa9(0x3c7),_0x308009[_0x147aa9(0x283)]=_0x147aa9(0x3a9),_0x308009[_0x147aa9(0x253)]=_0x147aa9(0x1f7),_0x308009))(D||{});class K{constructor(_0x201d87,_0x407b4a,_0x353138,_0x4c810b,_0x193660,_0x358f35,_0x4ef084,_0x1e7030,_0x182e06){const _0x9f51ae=_0x147aa9;d(this,'_awaitingChangeset',null),d(this,_0x9f51ae(0x206),[]),(this[_0x9f51ae(0x25a)]=_0x201d87,this[_0x9f51ae(0x444)]=_0x407b4a,this[_0x9f51ae(0x24b)]=_0x193660,this[_0x9f51ae(0x48e)]=_0x358f35,this[_0x9f51ae(0x48d)]=_0x4ef084,this[_0x9f51ae(0x3c6)]=_0x1e7030,this['_localCacheService']=_0x182e06,this[_0x9f51ae(0x1cc)]=_0x353138,this[_0x9f51ae(0x206)]=_0x4c810b);}['_checkMissing'](_0xa92f70){const _0x5a9c83=_0x147aa9,_0x274ac7=this[_0x5a9c83(0x3c6)][_0x5a9c83(0x26b)](this[_0x5a9c83(0x25a)]);return _0xa92f70[_0x5a9c83(0x377)]>_0x274ac7+0x1?(this[_0x5a9c83(0x24b)][_0x5a9c83(0x1bd)]({'from':_0x274ac7,'to':_0xa92f70['revision']-0x1}),!0x0):!0x1;}[_0x147aa9(0x4cb)](_0x331411){const _0x36b2e7=_0x147aa9;this[_0x36b2e7(0x48d)][_0x36b2e7(0x3f3)](this[_0x36b2e7(0x25a)],_0x331411);}[_0x147aa9(0x1fe)](_0x389706){const _0x49126f=_0x147aa9;var _0x7cef44,_0x1c2ff8;(_0x1c2ff8=(_0x7cef44=this[_0x49126f(0x24b)])[_0x49126f(0x2f6)])==null||_0x1c2ff8['call'](_0x7cef44,_0x389706);}['_transformIMECache'](_0x5e905d){const _0x4bbab7=_0x147aa9;var _0x8de80b,_0x19d9bf;return(_0x19d9bf=(_0x8de80b=this[_0x4bbab7(0x24b)])['onTransformIME'])==null?void 0x0:_0x19d9bf[_0x4bbab7(0x354)](_0x8de80b,_0x5e905d);}['_transformRemoteChangesetByIMECache'](_0x5b75e7){const _0x2847a0=_0x147aa9;var _0xddbfde,_0x1be4f1,_0x849d85;return(_0x849d85=(_0x1be4f1=(_0xddbfde=this[_0x2847a0(0x24b)])['onTransformRemoteChangesetByIMECache'])==null?void 0x0:_0x1be4f1[_0x2847a0(0x354)](_0xddbfde,_0x5b75e7))!=null?_0x849d85:_0x5b75e7;}[_0x147aa9(0x384)](_0x929945){const _0x1f54b1=_0x147aa9;var _0x109659,_0x38f5c3;if(this[_0x1f54b1(0x444)]===k[_0x1f54b1(0x374)]){const {unitID:_0x5a9be7,mutations:_0x3dd28a,memberID:_0x105469}=_0x929945,_0x49fb07=_0x3dd28a[0x0][_0x1f54b1(0x325)][_0x1f54b1(0x25f)];Array[_0x1f54b1(0x488)](_0x49fb07)&&_0x49fb07[_0x1f54b1(0x3f5)]>0x0&&((_0x38f5c3=(_0x109659=this[_0x1f54b1(0x24b)])[_0x1f54b1(0x3c8)])==null||_0x38f5c3[_0x1f54b1(0x354)](_0x109659,{'unitID':_0x5a9be7,'memberID':_0x105469,'textRanges':_0x49fb07}));}}[_0x147aa9(0x265)](){const _0x3294f9=_0x147aa9;this[_0x3294f9(0x3fe)][_0x3294f9(0x35f)](this[_0x3294f9(0x25a)],this[_0x3294f9(0x444)],this[_0x3294f9(0x1cc)],this['_pendingMutations']);}['_getCurrentRevision'](){const _0x2756ff=_0x147aa9;return this['_revisionService'][_0x2756ff(0x26b)](this[_0x2756ff(0x25a)]);}[_0x147aa9(0x1ed)](){const _0x39b2cd=_0x147aa9;this[_0x39b2cd(0x3c6)][_0x39b2cd(0x224)](this[_0x39b2cd(0x25a)]);}[_0x147aa9(0x47a)](_0x367a9c){const _0x182569=_0x147aa9;var _0x684b39;const _0x2e0ac2=this[_0x182569(0x279)](_0x367a9c),_0x19171f=a[_0x182569(0x301)](_0x2e0ac2[_0x182569(0x2a1)],this[_0x182569(0x48e)],{'fromCollab':!0x0});if(!_0x19171f['result'])throw _0x19171f[_0x182569(0x172)]instanceof Error?_0x19171f[_0x182569(0x172)]:new Error((_0x684b39=_0x19171f[_0x182569(0x172)])!=null?_0x684b39:_0x182569(0x47f));this['_transformIMECache'](_0x2e0ac2),this[_0x182569(0x4cb)](_0x367a9c),this[_0x182569(0x1fe)](_0x2e0ac2),this[_0x182569(0x384)](_0x2e0ac2),this[_0x182569(0x1ed)]();}}let ce=class extends K{constructor(_0x23dcbf,_0x1893b6,_0x3525a9,_0x365b0d,_0x1c435d,_0x25bb11,_0x7d3d2d,_0xe09dc9,_0x323ab0){const _0x17dc22=_0x147aa9;super(_0x23dcbf,_0x1893b6,null,[],_0x3525a9,_0xe09dc9,_0x7d3d2d,_0x365b0d,_0x1c435d),d(this,'status','synced'),(this[_0x17dc22(0x17d)]=_0x25bb11,this['_logService']=_0x323ab0);}[_0x147aa9(0x328)](_0x1528d7){const _0x50510d=_0x147aa9,_0x5d58d0=this[_0x50510d(0x17d)][_0x50510d(0x229)]($,this[_0x50510d(0x25a)],this[_0x50510d(0x444)],[_0x1528d7],this[_0x50510d(0x24b)]);return _0x5d58d0[_0x50510d(0x2b1)](),_0x5d58d0[_0x50510d(0x265)](),_0x5d58d0;}['onRemoteChangeset'](_0x28bf25){const _0x4d81ea=_0x147aa9;if(this['_checkMissing'](_0x28bf25))return this[_0x4d81ea(0x17d)][_0x4d81ea(0x229)](P,this[_0x4d81ea(0x25a)],this[_0x4d81ea(0x444)],null,[],null,[_0x28bf25],this[_0x4d81ea(0x24b)]);try{return this[_0x4d81ea(0x47a)](_0x28bf25),this;}catch(_0x5a4d7e){return this[_0x4d81ea(0x17c)][_0x4d81ea(0x172)](_0x4d81ea(0x215),_0x5a4d7e),this;}}[_0x147aa9(0x3e9)](){const _0x2ba2f5=_0x147aa9;throw new Error(_0x2ba2f5(0x275));}['onRemoteRej'](){const _0x413ee3=_0x147aa9;throw new Error(_0x413ee3(0x383));}['toggleOffline'](){const _0x119457=_0x147aa9;return this['_injector'][_0x119457(0x229)](B,this[_0x119457(0x25a)],this[_0x119457(0x444)],null,[],this[_0x119457(0x24b)]);}[_0x147aa9(0x4aa)](){return this;}[_0x147aa9(0x165)](){const _0xab3f19=_0x147aa9;throw new Error(_0xab3f19(0x2a5));}};ce=Y([f(0x3,h['Inject'](_['RevisionService'])),f(0x4,h[_0x147aa9(0x23d)](exports[_0x147aa9(0x2b0)])),f(0x5,h[_0x147aa9(0x23d)](h[_0x147aa9(0x461)])),f(0x6,a[_0x147aa9(0x44a)]),f(0x7,a[_0x147aa9(0x496)]),f(0x8,a['ILogService'])],ce);let $=class extends K{constructor(_0x1ad463,_0x192c01,_0x1eeeb6,_0x44f6cb,_0x542e48,_0x4c0c82,_0x59970d,_0xeff609,_0x567783,_0x5119a6,_0x393a40,_0x1eda54,_0x18d1e2,_0x4df86e){const _0x1fba3e=_0x147aa9;super(_0x1ad463,_0x192c01,null,_0x1eeeb6,_0x44f6cb,_0x5119a6,_0x4df86e,_0x4c0c82,_0x59970d),d(this,_0x1fba3e(0x27f),_0x1fba3e(0x2e7)),d(this,_0x1fba3e(0x25e),null),d(this,_0x1fba3e(0x315),null),(this['_injector']=_0x542e48,this[_0x1fba3e(0x293)]=_0xeff609,this[_0x1fba3e(0x17c)]=_0x567783,this['_configService']=_0x393a40,this[_0x1fba3e(0x306)]=_0x1eda54,this[_0x1fba3e(0x40c)]=_0x18d1e2);}[_0x147aa9(0x328)](_0x51886a){const _0x1b2e8c=_0x147aa9;return this[_0x1b2e8c(0x206)][_0x1b2e8c(0x4ad)](_0x51886a),this['_updateLocalCache'](),this;}[_0x147aa9(0x2c7)](_0x104cbb){const _0x3b1bb9=_0x147aa9;if(this[_0x3b1bb9(0x18a)](_0x104cbb))return this[_0x3b1bb9(0x38e)](),this[_0x3b1bb9(0x17d)][_0x3b1bb9(0x229)](P,this[_0x3b1bb9(0x25a)],this[_0x3b1bb9(0x444)],null,this['_pendingMutations'],null,[_0x104cbb],this['_handler']);try{const _0x19f860=this[_0x3b1bb9(0x306)][_0x3b1bb9(0x21a)](_0x104cbb,this[_0x3b1bb9(0x206)]);if(_[_0x3b1bb9(0x242)](_0x19f860)){const {c1Prime:_0x18843d,m2Prime:_0x50bfcc}=_0x19f860;this[_0x3b1bb9(0x47a)](_0x18843d);const _0x5acc11=this[_0x3b1bb9(0x17d)][_0x3b1bb9(0x229)]($,this['unitID'],this[_0x3b1bb9(0x444)],_0x50bfcc,this[_0x3b1bb9(0x24b)]);return this[_0x3b1bb9(0x38e)](),_0x5acc11[_0x3b1bb9(0x2b1)](this['_scheduleTimestamp']?Math[_0x3b1bb9(0x3b0)](0x0,new Date()[_0x3b1bb9(0x33a)]()-this[_0x3b1bb9(0x25e)]):this[_0x3b1bb9(0x31e)]()),_0x5acc11;}throw _0x19f860[_0x3b1bb9(0x172)];}catch(_0x19c2c7){return this[_0x3b1bb9(0x17c)][_0x3b1bb9(0x172)](_0x19c2c7),this[_0x3b1bb9(0x27a)]();}}[_0x147aa9(0x3e9)](){const _0x3db060=_0x147aa9;throw new Error(_0x3db060(0x20d));}[_0x147aa9(0x459)](){const _0xf99c35=_0x147aa9;throw new Error(_0xf99c35(0x431));}[_0x147aa9(0x226)](){const _0x18879c=_0x147aa9;return this[_0x18879c(0x38e)](),this[_0x18879c(0x17d)][_0x18879c(0x229)](B,this['unitID'],this['type'],null,this[_0x18879c(0x206)],this[_0x18879c(0x24b)]);}['toggleOnline'](){return this;}[_0x147aa9(0x2b1)](_0x959662){const _0x161aa4=_0x147aa9;_0x959662=_0x959662!=null?_0x959662:this[_0x161aa4(0x31e)](),this[_0x161aa4(0x25e)]=new Date()['getTime'](),this['_sendingTimer']=setTimeout(()=>{const _0x56a4d6=_0x161aa4;this[_0x56a4d6(0x38e)]();let _0x4f8160=null;switch(this['type']){case k['UNIVER_SHEET']:{_0x4f8160=Zt(this[_0x56a4d6(0x206)],this['unitID'],this[_0x56a4d6(0x40c)],this['_revisionService'],this[_0x56a4d6(0x293)]);break;}case k[_0x56a4d6(0x374)]:{_0x4f8160=es(this[_0x56a4d6(0x206)],this[_0x56a4d6(0x25a)],this[_0x56a4d6(0x40c)],this[_0x56a4d6(0x3c6)],this[_0x56a4d6(0x293)]);break;}default:throw new Error('[PendingState]:\x20unhandled\x20univer\x20type:\x20'+this[_0x56a4d6(0x444)]+'\x20in\x20_schedule.');}const {changeset:_0x3dfa18,pendingMutations:_0x377e54}=_0x4f8160;this[_0x56a4d6(0x24b)][_0x56a4d6(0x3be)](_0x3dfa18);const _0x252e71=_0x377e54[_0x56a4d6(0x3f5)]?this[_0x56a4d6(0x17d)][_0x56a4d6(0x229)](j,this[_0x56a4d6(0x25a)],this[_0x56a4d6(0x444)],_0x3dfa18,_0x377e54,this[_0x56a4d6(0x24b)]):this[_0x56a4d6(0x17d)][_0x56a4d6(0x229)](H,this['unitID'],this['type'],_0x3dfa18,this[_0x56a4d6(0x24b)]);_0x252e71['_updateLocalCache'](),this[_0x56a4d6(0x24b)][_0x56a4d6(0x19c)](this,_0x252e71);},_0x959662);}[_0x147aa9(0x31e)](){const _0xd764d7=_0x147aa9;var _0x4def1d;return(_0x4def1d=this[_0xd764d7(0x266)][_0xd764d7(0x262)](gt))!=null?_0x4def1d:ts;}['resend'](){throw new Error('[PendingState]:\x20invalid\x20calling\x20to\x20`resend`.');}[_0x147aa9(0x38e)](){const _0x12db3e=_0x147aa9;this[_0x12db3e(0x315)]!=null&&(clearTimeout(this[_0x12db3e(0x315)]),this[_0x12db3e(0x315)]=null);}[_0x147aa9(0x27a)](){const _0x18dc44=_0x147aa9;return this['_clearScheduledTask'](),this['_injector'][_0x18dc44(0x229)](G,this[_0x18dc44(0x25a)],this['type'],null,this['_pendingMutations'],this[_0x18dc44(0x24b)]);}};$=Y([f(0x4,h['Inject'](h[_0x147aa9(0x461)])),f(0x5,h['Inject'](_[_0x147aa9(0x1a3)])),f(0x6,h[_0x147aa9(0x23d)](exports[_0x147aa9(0x2b0)])),f(0x7,h['Inject'](V)),f(0x8,a[_0x147aa9(0x4be)]),f(0x9,a[_0x147aa9(0x496)]),f(0xa,a[_0x147aa9(0x1d5)]),f(0xb,_[_0x147aa9(0x2ad)]),f(0xc,a[_0x147aa9(0x25d)]),f(0xd,a[_0x147aa9(0x44a)])],$);let H=class extends K{constructor(_0x4326e6,_0x73a3,_0x3659f8,_0x23aec5,_0x44e3a6,_0x2919b5,_0x11d560,_0x9188eb,_0x44750c,_0x1b14ee,_0x25ee67){const _0x26d592=_0x147aa9;super(_0x4326e6,_0x73a3,_0x3659f8,[],_0x23aec5,_0x9188eb,_0x25ee67,_0x2919b5,_0x11d560),d(this,_0x26d592(0x27f),_0x26d592(0x303)),(this['_injector']=_0x44e3a6,this[_0x26d592(0x17c)]=_0x44750c,this[_0x26d592(0x306)]=_0x1b14ee);}[_0x147aa9(0x328)](_0x53034d){const _0xf692=_0x147aa9,_0x47190a=this[_0xf692(0x17d)][_0xf692(0x229)](j,this[_0xf692(0x25a)],this[_0xf692(0x444)],this['_awaitingChangeset'],[_0x53034d],this[_0xf692(0x24b)]);return _0x47190a[_0xf692(0x265)](),_0x47190a;}[_0x147aa9(0x2c7)](_0x247d9f){const _0x926503=_0x147aa9;if(this[_0x926503(0x18a)](_0x247d9f))return this[_0x926503(0x17d)]['createInstance'](P,this[_0x926503(0x25a)],this[_0x926503(0x444)],this[_0x926503(0x1cc)],[],null,[_0x247d9f],this[_0x926503(0x24b)]);try{const _0x15cd90=this[_0x926503(0x306)][_0x926503(0x41e)]([_0x247d9f],[this[_0x926503(0x1cc)]],!0x1);if(_[_0x926503(0x37a)](_0x15cd90)){const {c1Prime:_0x31c9c6,c2Prime:_0x1e171e}=_0x15cd90;this[_0x926503(0x47a)](_0x31c9c6[0x0]),_0x1e171e[0x0][_0x926503(0x49c)]=this[_0x926503(0x367)]();const _0x55b7ee=this[_0x926503(0x17d)][_0x926503(0x229)](H,this[_0x926503(0x25a)],this['type'],_0x1e171e[0x0],this[_0x926503(0x24b)]);return _0x55b7ee[_0x926503(0x265)](),_0x55b7ee;}return this[_0x926503(0x27a)]();}catch(_0x44c4a1){return this[_0x926503(0x17c)][_0x926503(0x172)](_0x44c4a1),this[_0x926503(0x27a)]();}}[_0x147aa9(0x3e9)](_0x4a21ee){const _0x1ba233=_0x147aa9,_0x346df7=this[_0x1ba233(0x3c6)][_0x1ba233(0x26b)](this['unitID']);if(_0x4a21ee[_0x1ba233(0x377)]<_0x346df7-0x1)return this;if(this['_checkMissing'](_0x4a21ee))return this[_0x1ba233(0x17d)][_0x1ba233(0x229)](P,this[_0x1ba233(0x25a)],this[_0x1ba233(0x444)],null,[],this[_0x1ba233(0x1cc)],[],this['_handler']);this[_0x1ba233(0x1ed)]();const _0xc11292=this['_injector'][_0x1ba233(0x229)](ce,this[_0x1ba233(0x25a)],this['type'],this[_0x1ba233(0x24b)]);return _0xc11292[_0x1ba233(0x265)](),_0xc11292;}['onRemoteRej'](){const _0x3d35bd=_0x147aa9;return this[_0x3d35bd(0x27a)]();}[_0x147aa9(0x226)](){const _0x1feef2=_0x147aa9;return this['_injector'][_0x1feef2(0x229)](B,this['unitID'],this[_0x1feef2(0x444)],this[_0x1feef2(0x1cc)],[],this['_handler']);}[_0x147aa9(0x4aa)](){return this;}[_0x147aa9(0x165)](){const _0x32ee0e=_0x147aa9;this[_0x32ee0e(0x24b)][_0x32ee0e(0x3be)](this[_0x32ee0e(0x1cc)]);}[_0x147aa9(0x27a)](){const _0x498a8b=_0x147aa9;return this[_0x498a8b(0x17d)][_0x498a8b(0x229)](G,this[_0x498a8b(0x25a)],this[_0x498a8b(0x444)],this[_0x498a8b(0x1cc)],[],this[_0x498a8b(0x24b)]);}};H=Y([f(0x4,h[_0x147aa9(0x23d)](h[_0x147aa9(0x461)])),f(0x5,h[_0x147aa9(0x23d)](_[_0x147aa9(0x1a3)])),f(0x6,h['Inject'](exports[_0x147aa9(0x2b0)])),f(0x7,a[_0x147aa9(0x496)]),f(0x8,a[_0x147aa9(0x4be)]),f(0x9,_['ITransformService']),f(0xa,a[_0x147aa9(0x44a)])],H);let j=class extends K{constructor(_0x174bc8,_0x46cb29,_0x55c512,_0x117fa3,_0x5f30d4,_0x4266c2,_0x3d3775,_0x8b3aa5,_0x3dd526,_0x65bab0,_0x3a7a77,_0x1e1c8c){const _0x447294=_0x147aa9;super(_0x174bc8,_0x46cb29,_0x55c512,_0x117fa3,_0x5f30d4,_0x3dd526,_0x1e1c8c,_0x3d3775,_0x8b3aa5),d(this,_0x447294(0x27f),_0x447294(0x44e)),(this['_injector']=_0x4266c2,this['_logService']=_0x65bab0,this[_0x447294(0x306)]=_0x3a7a77);}[_0x147aa9(0x328)](_0x2107e5){const _0x1e9c90=_0x147aa9;return this['_pendingMutations'][_0x1e9c90(0x4ad)](_0x2107e5),this;}[_0x147aa9(0x2c7)](_0x25bc80){const _0x57576c=_0x147aa9;if(this[_0x57576c(0x18a)](_0x25bc80))return this[_0x57576c(0x17d)]['createInstance'](P,this[_0x57576c(0x25a)],this[_0x57576c(0x444)],this['_awaitingChangeset'],this['_pendingMutations'],null,[_0x25bc80],this[_0x57576c(0x24b)]);try{const _0x20c8c2=this['_transformService']['transformChangesets']([_0x25bc80],[this['_awaitingChangeset']],!0x1);if(_[_0x57576c(0x37a)](_0x20c8c2)){const {c1Prime:_0x47a750,c2Prime:_0x19295c}=_0x20c8c2,_0x3c5dd1=this[_0x57576c(0x306)][_0x57576c(0x21a)](_0x47a750[0x0],this['_pendingMutations']);if(_[_0x57576c(0x242)](_0x3c5dd1)){const {c1Prime:_0x1df98e,m2Prime:_0x450b58}=_0x3c5dd1;return this[_0x57576c(0x47a)](_0x1df98e),_0x19295c[0x0][_0x57576c(0x49c)]=this[_0x57576c(0x367)](),this['_injector'][_0x57576c(0x229)](j,this[_0x57576c(0x25a)],this[_0x57576c(0x444)],_0x19295c[0x0],_0x450b58,this[_0x57576c(0x24b)]);}throw _0x3c5dd1[_0x57576c(0x172)];}throw _0x20c8c2[_0x57576c(0x172)];}catch(_0x4f27de){return this['_logService'][_0x57576c(0x172)](_0x4f27de),this[_0x57576c(0x27a)]();}}['onRemoteAck'](_0x1c66ab){const _0x18dba9=_0x147aa9;if(this[_0x18dba9(0x18a)](_0x1c66ab))return this['_injector'][_0x18dba9(0x229)](P,this[_0x18dba9(0x25a)],this[_0x18dba9(0x444)],null,this[_0x18dba9(0x206)],this[_0x18dba9(0x1cc)],[],this[_0x18dba9(0x24b)]);this[_0x18dba9(0x1ed)]();const _0x2ce752=this[_0x18dba9(0x17d)][_0x18dba9(0x229)]($,this[_0x18dba9(0x25a)],this[_0x18dba9(0x444)],this[_0x18dba9(0x206)],this['_handler']);return _0x2ce752[_0x18dba9(0x2b1)](),_0x2ce752[_0x18dba9(0x265)](),_0x2ce752;}[_0x147aa9(0x459)](){return this['_onConflict']();}[_0x147aa9(0x226)](){const _0x475ea6=_0x147aa9;return this[_0x475ea6(0x17d)][_0x475ea6(0x229)](B,this[_0x475ea6(0x25a)],this['type'],this[_0x475ea6(0x1cc)],this['_pendingMutations'],this['_handler']);}['toggleOnline'](){return this;}[_0x147aa9(0x165)](){this['_handler']['onSendChangeset'](this['_awaitingChangeset']);}[_0x147aa9(0x27a)](){const _0x15c9c1=_0x147aa9;return this['_injector']['createInstance'](G,this[_0x15c9c1(0x25a)],this[_0x15c9c1(0x444)],null,this[_0x15c9c1(0x206)],this[_0x15c9c1(0x24b)]);}};j=Y([f(0x5,h['Inject'](h[_0x147aa9(0x461)])),f(0x6,h['Inject'](_[_0x147aa9(0x1a3)])),f(0x7,h[_0x147aa9(0x23d)](exports[_0x147aa9(0x2b0)])),f(0x8,a[_0x147aa9(0x496)]),f(0x9,a['ILogService']),f(0xa,_[_0x147aa9(0x2ad)]),f(0xb,a[_0x147aa9(0x44a)])],j);function _0x5bd1(_0x18603b,_0x5597f7){const _0x35f874=_0x35f8();return _0x5bd1=function(_0x5bd1d0,_0x486666){_0x5bd1d0=_0x5bd1d0-0x160;let _0x3241ac=_0x35f874[_0x5bd1d0];return _0x3241ac;},_0x5bd1(_0x18603b,_0x5597f7);}let G=class extends K{constructor(_0x39d9fc,_0x3cb9e8,_0x3ebef3,_0x38f1ec,_0x3bf4fd,_0x43b3b7,_0x130439,_0xdc04b,_0x26615f,_0x538a61,_0x45dd4e,_0x36ebdf){const _0x4028d6=_0x147aa9;super(_0x39d9fc,_0x3cb9e8,_0x3ebef3,_0x38f1ec,_0x3bf4fd,_0x130439,_0xdc04b,_0x538a61,_0x26615f),d(this,_0x4028d6(0x27f),_0x4028d6(0x3a9)),(this[_0x4028d6(0x3dd)]=_0x43b3b7,this[_0x4028d6(0x1d9)]=_0x45dd4e,this[_0x4028d6(0x1a9)]=_0x36ebdf,this[_0x4028d6(0x3ed)](),this[_0x4028d6(0x36d)](),this[_0x4028d6(0x4bc)]());}['appendMutation'](){return this;}[_0x147aa9(0x2c7)](){return this;}['onRemoteAck'](){return this;}[_0x147aa9(0x459)](){return this;}['toggleOffline'](){return this;}[_0x147aa9(0x4aa)](){return this;}[_0x147aa9(0x165)](){const _0xe46a9b=_0x147aa9;throw new Error(_0xe46a9b(0x433));}[_0x147aa9(0x36d)](){const _0x15003a=_0x147aa9;this[_0x15003a(0x3fe)][_0x15003a(0x35f)](this[_0x15003a(0x25a)],this[_0x15003a(0x444)],null,[]);}[_0x147aa9(0x3ed)](){const _0x4e6735=_0x147aa9;this[_0x4e6735(0x1a9)]['show']({'title':this[_0x4e6735(0x1d9)]['t'](_0x4e6735(0x18b)),'content':this[_0x4e6735(0x1d9)]['t'](_0x4e6735(0x435)),'type':_0x4e6735(0x172),'duration':0x0});}[_0x147aa9(0x4bc)](){this['_univerPermissionService']['setEditable'](this['unitID'],!0x1);}};G=Y([f(0x5,h[_0x147aa9(0x23d)](a[_0x147aa9(0x23b)])),f(0x6,a['ICommandService']),f(0x7,a[_0x147aa9(0x44a)]),f(0x8,h['Inject'](exports[_0x147aa9(0x2b0)])),f(0x9,h[_0x147aa9(0x23d)](_[_0x147aa9(0x1a3)])),f(0xa,h[_0x147aa9(0x23d)](a[_0x147aa9(0x2fc)])),f(0xb,N[_0x147aa9(0x1e5)])],G);let B=class extends K{constructor(_0xad197e,_0x35878e,_0x59da86,_0x47c0dd,_0x16fce8,_0x664e12,_0x218c16,_0x1ee99c,_0x562e79,_0x113485){const _0x20b1bf=_0x147aa9;super(_0xad197e,_0x35878e,_0x59da86,_0x47c0dd,_0x16fce8,_0x562e79,_0x113485,_0x218c16,_0x1ee99c),d(this,_0x20b1bf(0x27f),'offline'),this[_0x20b1bf(0x17d)]=_0x664e12;}[_0x147aa9(0x328)](_0x20d43c){const _0x3fea94=_0x147aa9;return this[_0x3fea94(0x206)][_0x3fea94(0x4ad)](_0x20d43c),this[_0x3fea94(0x265)](),this;}['onRemoteChangeset'](_0x19d661){const _0x1de15e=_0x147aa9;throw new Error(_0x1de15e(0x49d));}[_0x147aa9(0x3e9)](){const _0x2982ac=_0x147aa9;throw new Error(_0x2982ac(0x34d));}['onRemoteRej'](){const _0x46f54b=_0x147aa9;throw new Error(_0x46f54b(0x16e));}[_0x147aa9(0x226)](){return this;}['toggleOnline'](){const _0x338012=_0x147aa9,{_injector:_0x4eda24,_pendingMutations:_0x112d94,_awaitingChangeset:_0x1ba101,unitID:_0x15a1f0,_handler:_0x547a67,type:_0x46970c}=this,_0x54574f=St(_0x4eda24,_0x15a1f0,_0x46970c,_0x1ba101,_0x112d94,_0x547a67);return _0x54574f instanceof $?_0x54574f[_0x338012(0x2b1)]():(_0x54574f instanceof j||_0x54574f instanceof H)&&_0x54574f['resend'](),_0x54574f;}[_0x147aa9(0x165)](){throw new Error('[OfflineState]:\x20invalid\x20calling\x20to\x20`resend`.');}};B=Y([f(0x5,h['Inject'](h[_0x147aa9(0x461)])),f(0x6,h['Inject'](_[_0x147aa9(0x1a3)])),f(0x7,h[_0x147aa9(0x23d)](exports[_0x147aa9(0x2b0)])),f(0x8,a['ICommandService']),f(0x9,a[_0x147aa9(0x44a)])],B);let P=class extends K{constructor(_0x3beea5,_0x4cedd8,_0x447624,_0x52e282,_0x4e3e57,_0x352695,_0x53383e,_0x42a354,_0xaac615,_0x1118d6,_0x45d3ce,_0x4c426e,_0x30b59d,_0x2da13c){const _0x279126=_0x147aa9;super(_0x3beea5,_0x4cedd8,_0x447624,_0x52e282,_0x53383e,_0x4c426e,_0x30b59d,_0xaac615,_0x1118d6),d(this,'status',_0x279126(0x3c7)),(this[_0x279126(0x38b)]=_0x4e3e57,this['_queuedRemoteChangesets']=_0x352695,this[_0x279126(0x17d)]=_0x42a354,this[_0x279126(0x17c)]=_0x45d3ce,this[_0x279126(0x306)]=_0x2da13c);}['onMissedChangesetFetched'](_0x3250dc){const _0x5b0396=_0x147aa9;try{const _0x2c88ae=[..._0x3250dc,...this[_0x5b0396(0x1ef)]],_0x3dfb62=[this[_0x5b0396(0x1cc)]||this[_0x5b0396(0x38b)]]['filter'](_0x2a2756=>!!_0x2a2756);let _0x139308,_0x28d193;if(_0x3dfb62[_0x5b0396(0x3f5)]){const _0xf40063=this['_transformService'][_0x5b0396(0x41e)](_0x2c88ae,_0x3dfb62,!0x1);if(!_[_0x5b0396(0x37a)](_0xf40063))throw _0xf40063[_0x5b0396(0x172)];_0x139308=_0xf40063[_0x5b0396(0x252)],_0x28d193=_0xf40063['c2Prime'];}else _0x139308=_0x2c88ae,_0x28d193=[];let _0x2a5b57=this[_0x5b0396(0x206)];_0x139308['forEach'](_0x4d339b=>{const _0x3471fc=_0x5b0396;let _0x319389;if(_0x2a5b57[_0x3471fc(0x3f5)]){const _0x3c8ecd=this[_0x3471fc(0x306)][_0x3471fc(0x21a)](_0x4d339b,_0x2a5b57);if(!_[_0x3471fc(0x242)](_0x3c8ecd))throw _0x3c8ecd[_0x3471fc(0x172)];_0x319389=_0x3c8ecd['c1Prime'],_0x2a5b57=_0x3c8ecd[_0x3471fc(0x1cd)];}else _0x319389=_0x4d339b;this[_0x3471fc(0x47a)](_0x319389);}),this[_0x5b0396(0x38b)]&&this[_0x5b0396(0x1ed)](),this['_awaitingChangeset']&&_0x28d193[_0x5b0396(0x3f5)]&&(_0x28d193[0x0][_0x5b0396(0x49c)]=this[_0x5b0396(0x367)]());let _0x9f9c8d;if(this[_0x5b0396(0x1cc)]&&_0x2a5b57[_0x5b0396(0x3f5)]!==0x0)_0x9f9c8d=this[_0x5b0396(0x17d)][_0x5b0396(0x229)](j,this[_0x5b0396(0x25a)],this[_0x5b0396(0x444)],_0x28d193[0x0],_0x2a5b57,this[_0x5b0396(0x24b)]);else{if(this[_0x5b0396(0x1cc)]&&_0x2a5b57['length']===0x0)_0x28d193[0x0][_0x5b0396(0x49c)]=this[_0x5b0396(0x367)](),_0x9f9c8d=this[_0x5b0396(0x17d)][_0x5b0396(0x229)](H,this[_0x5b0396(0x25a)],this[_0x5b0396(0x444)],_0x28d193[0x0],this[_0x5b0396(0x24b)]);else{if(_0x2a5b57[_0x5b0396(0x3f5)]!==0x0){const _0x3ae141=this[_0x5b0396(0x17d)][_0x5b0396(0x229)]($,this['unitID'],this['type'],_0x2a5b57,this[_0x5b0396(0x24b)]);_0x3ae141[_0x5b0396(0x2b1)](),_0x9f9c8d=_0x3ae141;}else _0x9f9c8d=this[_0x5b0396(0x17d)]['createInstance'](ce,this['unitID'],this[_0x5b0396(0x444)],this['_handler']);}}return _0x9f9c8d['_updateLocalCache'](),_0x9f9c8d;}catch(_0x4fde58){return this[_0x5b0396(0x17c)][_0x5b0396(0x172)]('[FetchMissState]','failed\x20to\x20apply\x20missed\x20changesets!',_0x4fde58),this[_0x5b0396(0x17d)]['createInstance'](G,this[_0x5b0396(0x25a)],this[_0x5b0396(0x444)],this['_awaitingChangeset'],this[_0x5b0396(0x206)],this['_handler']);}}[_0x147aa9(0x165)](){const _0x11265b=_0x147aa9;throw new Error(_0x11265b(0x405));}[_0x147aa9(0x328)](_0x319ff4){const _0x3870bc=_0x147aa9;return this[_0x3870bc(0x206)][_0x3870bc(0x4ad)](_0x319ff4),this;}[_0x147aa9(0x2c7)](_0x15d1da){const _0x5a5649=_0x147aa9;return this['_queuedRemoteChangesets'][_0x5a5649(0x4ad)](_0x15d1da),this;}[_0x147aa9(0x3e9)](_0x405b2f){const _0x46bcec=_0x147aa9;if(this[_0x46bcec(0x1cc)])return this[_0x46bcec(0x38b)]=this[_0x46bcec(0x1cc)],this[_0x46bcec(0x1cc)]=null,this;throw new Error('[FetchingMissState]:\x20not\x20expected\x20to\x20receive\x20ack\x20when\x20`this._awaitingChangeset`\x20is\x20null!');}[_0x147aa9(0x459)](){const _0x59de69=_0x147aa9;return this[_0x59de69(0x27a)]();}['toggleOffline'](){const _0x5929ed=_0x147aa9;return this[_0x5929ed(0x17d)][_0x5929ed(0x229)](B,this[_0x5929ed(0x25a)],this[_0x5929ed(0x444)],this[_0x5929ed(0x1cc)],this[_0x5929ed(0x206)],this[_0x5929ed(0x24b)]);}[_0x147aa9(0x4aa)](){return this;}[_0x147aa9(0x27a)](){const _0x547362=_0x147aa9;return this[_0x547362(0x17d)][_0x547362(0x229)](G,this['unitID'],this[_0x547362(0x444)],this[_0x547362(0x1cc)],this['_pendingMutations'],this[_0x547362(0x24b)]);}};P=Y([f(0x7,h[_0x147aa9(0x23d)](h[_0x147aa9(0x461)])),f(0x8,h['Inject'](_[_0x147aa9(0x1a3)])),f(0x9,h[_0x147aa9(0x23d)](exports[_0x147aa9(0x2b0)])),f(0xa,a[_0x147aa9(0x4be)]),f(0xb,a['ICommandService']),f(0xc,a[_0x147aa9(0x44a)]),f(0xd,_['ITransformService'])],P);function St(_0x671a95,_0x2f03ec,_0x2191b2,_0x3af90e,_0x56c93c,_0x1ba7dd){const _0x28ae32=_0x147aa9;return _0x3af90e&&_0x56c93c[_0x28ae32(0x3f5)]?_0x671a95[_0x28ae32(0x229)](j,_0x2f03ec,_0x2191b2,_0x3af90e,_0x56c93c,_0x1ba7dd):_0x3af90e?_0x671a95['createInstance'](H,_0x2f03ec,_0x2191b2,_0x3af90e,_0x1ba7dd):_0x56c93c['length']?_0x671a95[_0x28ae32(0x229)]($,_0x2f03ec,_0x2191b2,_0x56c93c,_0x1ba7dd):_0x671a95[_0x28ae32(0x229)](ce,_0x2f03ec,_0x2191b2,_0x1ba7dd);}var pe=(_0x40ad1b,_0xd8a7bd,_0x3e3bc7,_0x53ca30)=>{const _0x569b6d=_0x147aa9;for(var _0x55290f=_0xd8a7bd,_0x1fed96=_0x40ad1b[_0x569b6d(0x3f5)]-0x1,_0xc43728;_0x1fed96>=0x0;_0x1fed96--)(_0xc43728=_0x40ad1b[_0x1fed96])&&(_0x55290f=_0xc43728(_0x55290f)||_0x55290f);return _0x55290f;},I=(_0x46a963,_0x5d3b5e)=>(_0x412b8d,_0xd70a28)=>_0x5d3b5e(_0x412b8d,_0xd70a28,_0x46a963);exports['CollaborationController']=class extends a[_0x147aa9(0x169)]{constructor(_0x4fc033,_0x12e862,_0x506d15){const _0xc5c133=_0x147aa9;super(),d(this,_0xc5c133(0x39f),new Map()),d(this,_0xc5c133(0x1b0),new v[(_0xc5c133(0x43c))]()),(this[_0xc5c133(0x17d)]=_0x4fc033,this['_collabSessionService']=_0x12e862,this[_0xc5c133(0x40c)]=_0x506d15,this[_0xc5c133(0x41a)]());}[_0x147aa9(0x35b)](){const _0x234bcf=_0x147aa9;super[_0x234bcf(0x35b)](),this[_0x234bcf(0x39f)][_0x234bcf(0x1f0)](_0x4be96c=>_0x4be96c[_0x234bcf(0x35b)]()),this['_entities'][_0x234bcf(0x1cf)]();}[_0x147aa9(0x296)](_0x34a2b0){const _0x7dc9ae=_0x147aa9;var _0x11ff01;return(_0x11ff01=this[_0x7dc9ae(0x39f)][_0x7dc9ae(0x1f9)](_0x34a2b0))!=null?_0x11ff01:null;}['getCollabEntity$'](_0x455fac){const _0xeca197=_0x147aa9,_0x19c855=this[_0xeca197(0x296)](_0x455fac);return _0x19c855?v['of'](_0x19c855):this['_entityInit$'][_0xeca197(0x2e4)](T[_0xeca197(0x211)](_0x192d03=>_0x192d03[_0xeca197(0x25a)]===_0x455fac));}[_0x147aa9(0x41a)](){const _0x4c8d5b=_0x147aa9;this[_0x4c8d5b(0x40c)][_0x4c8d5b(0x362)](a[_0x4c8d5b(0x223)][_0x4c8d5b(0x2af)])[_0x4c8d5b(0x2e4)](v['takeUntil'](this[_0x4c8d5b(0x498)]),T[_0x4c8d5b(0x340)](0x10))[_0x4c8d5b(0x2d2)](async _0x2206fc=>{const _0x14b457=_0x4c8d5b,_0x328cb2=_0x2206fc['getUnitId'](),_0xca8b81=await this[_0x14b457(0x31f)](_0x328cb2,k['UNIVER_SHEET']);this[_0x14b457(0x39f)]['set'](_0x328cb2,_0xca8b81);}),this[_0x4c8d5b(0x40c)][_0x4c8d5b(0x362)](a[_0x4c8d5b(0x223)][_0x4c8d5b(0x374)])['pipe'](v[_0x4c8d5b(0x2f7)](this[_0x4c8d5b(0x498)]),T[_0x4c8d5b(0x340)](0x10))[_0x4c8d5b(0x2e4)](T['filter'](_0x4d4dda=>!_0x4d4dda['getUnitId']()['startsWith']('__')))[_0x4c8d5b(0x2d2)](async _0x5c6983=>{const _0x494a8b=_0x4c8d5b,_0x37b186=_0x5c6983[_0x494a8b(0x483)](),_0x2b7ced=await this[_0x494a8b(0x31f)](_0x37b186,k['UNIVER_DOC']);this[_0x494a8b(0x39f)]['set'](_0x37b186,_0x2b7ced);}),v[_0x4c8d5b(0x258)](this[_0x4c8d5b(0x40c)][_0x4c8d5b(0x263)](a[_0x4c8d5b(0x223)][_0x4c8d5b(0x2af)]),this['_univerInstanceService'][_0x4c8d5b(0x263)](a[_0x4c8d5b(0x223)][_0x4c8d5b(0x374)]))[_0x4c8d5b(0x2e4)](v[_0x4c8d5b(0x2f7)](this[_0x4c8d5b(0x498)]))[_0x4c8d5b(0x2d2)](_0x4f381e=>{const _0x4b3867=_0x4c8d5b,_0x4ffcda=_0x4f381e['getUnitId'](),_0xd495d5=this[_0x4b3867(0x39f)][_0x4b3867(0x1f9)](_0x4ffcda);_0xd495d5&&(_0xd495d5[_0x4b3867(0x35b)](),this['_entities']['delete'](_0x4ffcda));});}async[_0x147aa9(0x31f)](_0x34173f,_0x44affb){const _0x346bd1=_0x147aa9,_0x2551dd=await this[_0x346bd1(0x3fb)][_0x346bd1(0x2dc)](_0x34173f),_0x3e640b=this['_injector']['createInstance'](this[_0x346bd1(0x168)](_0x44affb),_0x34173f,_0x44affb,_0x2551dd);return await _0x3e640b[_0x346bd1(0x24e)](),this['_entityInit$'][_0x346bd1(0x20f)](_0x3e640b),_0x3e640b;}[_0x147aa9(0x168)](_0x101a6f){const _0x21565c=_0x147aa9;switch(_0x101a6f){case k[_0x21565c(0x374)]:return Le;case k[_0x21565c(0x2af)]:return Ue;default:throw new Error(_0x21565c(0x4b4)+_0x101a6f);}}},exports[_0x147aa9(0x2d0)]=pe([a[_0x147aa9(0x4b5)](a[_0x147aa9(0x28e)][_0x147aa9(0x26c)],exports['CollaborationController']),I(0x0,h[_0x147aa9(0x23d)](h[_0x147aa9(0x461)])),I(0x1,h[_0x147aa9(0x23d)](exports['CollaborationSessionService'])),I(0x2,a[_0x147aa9(0x25d)])],exports['CollaborationController']);let me=class extends a[_0x147aa9(0x169)]{constructor(_0x287576,_0xd81b87,_0x26a541,_0x34a3ba,_0x2f8dde,_0x341474,_0x3713bd,_0x299ced,_0x3969c3,_0xd40e0f,_0x3d8e9c,_0x1ac754,_0x30ef34){const _0x42a005=_0x147aa9;super(),d(this,_0x42a005(0x1c1),new v['BehaviorSubject'](null)),d(this,_0x42a005(0x43b),this['_state$']['asObservable']()),d(this,_0x42a005(0x179)),d(this,_0x42a005(0x27d),!0x1),d(this,_0x42a005(0x209),this[_0x42a005(0x43b)][_0x42a005(0x2e4)](T[_0x42a005(0x26d)](_0x447094=>_0x447094?_0x447094[_0x42a005(0x27f)]:D['OFFLINE']),T[_0x42a005(0x428)](0x1))),d(this,_0x42a005(0x441),!0x1),d(this,_0x42a005(0x4af),[]),(this[_0x42a005(0x25a)]=_0x287576,this['_type']=_0xd81b87,this[_0x42a005(0x316)]=_0x26a541,this[_0x42a005(0x17d)]=_0x34a3ba,this['_localCacheService']=_0x2f8dde,this[_0x42a005(0x3dd)]=_0x341474,this[_0x42a005(0x37d)]=_0x3713bd,this[_0x42a005(0x1d9)]=_0x299ced,this[_0x42a005(0x3c6)]=_0x3969c3,this[_0x42a005(0x17c)]=_0xd40e0f,this[_0x42a005(0x48e)]=_0x3d8e9c,this['_messageService']=_0x1ac754,this[_0x42a005(0x2cb)]=_0x30ef34);}get[_0x147aa9(0x371)](){return this['_state'];}async['init'](){const _0xbf1746=_0x147aa9;if(this[_0xbf1746(0x371)])throw new Error('[CollaborationEntity]:\x20initial\x20state\x20has\x20been\x20created\x20before.\x20You\x20should\x20not\x20call\x20\x22init\x22\x20twice.');await this[_0xbf1746(0x41a)]();}[_0x147aa9(0x420)](){return this['_collaborationPaused']=!0x0,a['toDisposable'](()=>{const _0x5a8385=_0x5bd1;this[_0x5a8385(0x27d)]=!0x1,this[_0x5a8385(0x177)]();});}[_0x147aa9(0x188)](_0x25f77a){const _0x59dcb1=_0x147aa9;this[_0x59dcb1(0x179)]=_0x25f77a,this[_0x59dcb1(0x1c1)][_0x59dcb1(0x20f)](_0x25f77a);}async[_0x147aa9(0x41a)](){const _0x4712f6=_0x147aa9;var _0x3bddea;return this[_0x4712f6(0x188)](await this['_createInitialState']()),this[_0x4712f6(0x2cb)]&&((_0x3bddea=this[_0x4712f6(0x2cb)])==null||_0x3bddea[_0x4712f6(0x314)](this[_0x4712f6(0x25a)]),this[_0x4712f6(0x305)](a['toDisposable'](this['_singleActiveUnitService'][_0x4712f6(0x1f6)](this[_0x4712f6(0x25a)])[_0x4712f6(0x2d2)](_0x22929e=>{const _0x8d54f0=_0x4712f6;this[_0x8d54f0(0x17c)][_0x8d54f0(0x2e8)]('[CollaborationEntity]','editing\x20status\x20changed\x20to',_0x22929e),_0x22929e===_t[_0x8d54f0(0x2f8)]?(this[_0x8d54f0(0x1dd)][_0x8d54f0(0x1a1)]({'content':this['_localeService']['t'](_0x8d54f0(0x3af)),'type':ae[_0x8d54f0(0x475)][_0x8d54f0(0x2fd)]}),this[_0x8d54f0(0x3dd)][_0x8d54f0(0x308)](this[_0x8d54f0(0x25a)],!0x1)):this['_univerPermissionService']['setEditable'](this[_0x8d54f0(0x25a)],!0x0);})))),this[_0x4712f6(0x305)](a['toDisposable'](this['_session'][_0x4712f6(0x2ed)][_0x4712f6(0x2d2)](_0x5a1363=>{const _0x501c18=_0x4712f6;_0x5a1363===W['ONLINE']?this[_0x501c18(0x3e6)]():_0x5a1363===W['OFFLINE']&&this[_0x501c18(0x402)]();}))),this[_0x4712f6(0x305)](a[_0x4712f6(0x4b3)](this[_0x4712f6(0x316)][_0x4712f6(0x309)][_0x4712f6(0x2d2)](_0x59c6dd=>{const _0x3dcbbe=_0x4712f6;try{const _0xd28812=_0x59c6dd[_0x3dcbbe(0x450)];_0xd28812===_[_0x3dcbbe(0x2dd)][_0x3dcbbe(0x276)]?this[_0x3dcbbe(0x463)](_['parseProtocolChangeset'](_0x59c6dd[_0x3dcbbe(0x233)])):_0xd28812===_[_0x3dcbbe(0x2dd)][_0x3dcbbe(0x3d5)]?this[_0x3dcbbe(0x196)](_0x59c6dd[_0x3dcbbe(0x233)]):_0xd28812===_['CollaborationEvent'][_0x3dcbbe(0x348)]?this[_0x3dcbbe(0x193)]():_0xd28812===_[_0x3dcbbe(0x2dd)][_0x3dcbbe(0x410)]&&this[_0x3dcbbe(0x259)](_0x59c6dd[_0x3dcbbe(0x233)][_0x3dcbbe(0x333)][_0x3dcbbe(0x26d)](_0x545c9c=>_[_0x3dcbbe(0x1bf)](_0x545c9c)));}catch(_0x18c5c7){throw console[_0x3dcbbe(0x172)]('Error\x20on\x20receiving\x20event',_0x18c5c7),_0x18c5c7;}}))),this[_0x4712f6(0x179)];}[_0x147aa9(0x26e)](){const _0x31965d=_0x147aa9;this[_0x31965d(0x441)]=!0x1;}[_0x147aa9(0x414)](){const _0x3aa5ca=_0x147aa9;if(this[_0x3aa5ca(0x441)])throw new Error(_0x3aa5ca(0x448));this[_0x3aa5ca(0x441)]=!0x0;}['_onLocalMutation'](_0x477d9f){const _0xcd20f2=_0x147aa9;this[_0xcd20f2(0x414)](),this[_0xcd20f2(0x188)](this[_0xcd20f2(0x179)][_0xcd20f2(0x328)](_0x477d9f)),this[_0xcd20f2(0x26e)]();}[_0x147aa9(0x463)](_0x51db39){const _0x41e14e=_0x147aa9;if(!(_0x51db39[_0x41e14e(0x377)]<=this[_0x41e14e(0x3c6)][_0x41e14e(0x26b)](this[_0x41e14e(0x25a)]))){if(this[_0x41e14e(0x27d)]){this['_remoteChangesetQueue'][_0x41e14e(0x4ad)](_0x51db39);return;}this[_0x41e14e(0x3d7)](_0x51db39);}}[_0x147aa9(0x177)](){const _0x50096c=_0x147aa9;this[_0x50096c(0x4af)][_0x50096c(0x1f0)](_0x362921=>this[_0x50096c(0x3d7)](_0x362921)),this[_0x50096c(0x4af)]=[];}[_0x147aa9(0x3d7)](_0x5f3f90){const _0x5538e2=_0x147aa9,_0x4e0a81=this[_0x5538e2(0x37d)][_0x5538e2(0x1b4)][_0x5538e2(0x29b)](this['_compressMutationService'][_0x5538e2(0x1b4)][_0x5538e2(0x30d)]()['COMPRESS_MUTATION_APPLY'])(_0x5f3f90['mutations'],null)||_0x5f3f90['mutations'],_0x377949={..._0x5f3f90,'mutations':_0x4e0a81};this[_0x5538e2(0x414)](),this[_0x5538e2(0x188)](this[_0x5538e2(0x179)]['onRemoteChangeset'](_0x377949)),this[_0x5538e2(0x26e)]();}['_onRemoteACK'](_0x6c8c76){const _0x2c910f=_0x147aa9;this[_0x2c910f(0x414)](),this['_updateState'](this[_0x2c910f(0x179)][_0x2c910f(0x3e9)](_0x6c8c76)),this[_0x2c910f(0x26e)]();}['_onRemoteRejected'](){const _0x23ddf6=_0x147aa9;this[_0x23ddf6(0x414)](),this['_updateState'](this[_0x23ddf6(0x179)][_0x23ddf6(0x459)]()),this[_0x23ddf6(0x26e)]();}['_onFetchMissResult'](_0xc0dd33){const _0x7f6d38=_0x147aa9;if(!(this[_0x7f6d38(0x179)]instanceof P))throw new TypeError(_0x7f6d38(0x344));const _0x2679e1=_0xc0dd33[_0x7f6d38(0x26d)](_0x26ca20=>{const _0x3a9578=_0x7f6d38,_0x41d123=this[_0x3a9578(0x37d)]['interceptor'][_0x3a9578(0x29b)](this[_0x3a9578(0x37d)][_0x3a9578(0x1b4)][_0x3a9578(0x30d)]()[_0x3a9578(0x261)])(_0x26ca20['mutations'],null)||_0x26ca20['mutations'];return{..._0x26ca20,'mutations':_0x41d123};});this[_0x7f6d38(0x414)](),this[_0x7f6d38(0x188)](this[_0x7f6d38(0x179)]['onMissedChangesetFetched'](_0x2679e1)),this[_0x7f6d38(0x26e)]();}[_0x147aa9(0x402)](){const _0x4e86dd=_0x147aa9;this[_0x4e86dd(0x414)](),this[_0x4e86dd(0x188)](this['_state'][_0x4e86dd(0x226)]()),this[_0x4e86dd(0x26e)]();}[_0x147aa9(0x3e6)](){const _0x564a04=_0x147aa9;this['_lockTransition'](),this[_0x564a04(0x188)](this[_0x564a04(0x179)][_0x564a04(0x4aa)]()),this[_0x564a04(0x26e)]();}async[_0x147aa9(0x3ba)](){return new Promise(_0xfdfdae=>{const _0x3a50df=_0x5bd1;this[_0x3a50df(0x316)][_0x3a50df(0x2ed)][_0x3a50df(0x2e4)](T[_0x3a50df(0x3e2)](0x1))[_0x3a50df(0x2d2)](async _0x421e5f=>{const _0x2abab0=_0x3a50df;_0xfdfdae(await this[_0x2abab0(0x1d3)](_0x421e5f===W[_0x2abab0(0x20a)]));});});}[_0x147aa9(0x171)](){const _0x1010ea=this['unitID'];return{'onStateChange':(_0x2b2aaa,_0x398b37)=>{const _0x4c4471=_0x5bd1;if(_0x2b2aaa!==this[_0x4c4471(0x179)])throw new Error(_0x4c4471(0x29d)+_0x2b2aaa[_0x4c4471(0x27f)]+_0x4c4471(0x324)+_0x398b37['status']+'\x0aCurrent:\x20'+this['_state']['status']);this[_0x4c4471(0x188)](_0x398b37);},'onSendChangeset':_0x1f4362=>{const _0x2f49f8=_0x5bd1,_0xe04822={'eventID':_['CollaborationEvent'][_0x2f49f8(0x1ab)],'data':{'unitID':_0x1f4362[_0x2f49f8(0x25a)],'unitType':this['_type'],'changeset':_0x1f4362,'memberID':this['_session'][_0x2f49f8(0x287)]()}};this['_session']['send'](_0xe04822,this[_0x2f49f8(0x25a)]);},'onMissingChangesets':({from:_0x4d8592,to:_0x4aad84})=>{const _0x172790=_0x5bd1;this[_0x172790(0x17c)][_0x172790(0x2e8)](_0x172790(0x198),'fetching\x20missing\x20changesets\x20from\x20'+_0x4d8592+_0x172790(0x4c1)+_0x4aad84);const _0x184a0e={'eventID':_[_0x172790(0x2dd)][_0x172790(0x235)],'data':{'unitID':_0x1010ea,'unitType':this[_0x172790(0x2ea)],'from':_0x4d8592,'to':_0x4aad84}};this[_0x172790(0x316)][_0x172790(0x35d)](_0x184a0e,this[_0x172790(0x25a)]);}};}async[_0x147aa9(0x1d3)](_0x2a29ee){const _0x16ae2f=_0x147aa9;var _0x47d0d8,_0x8b7ddd;const _0x128cf9=await this[_0x16ae2f(0x3fe)]['loadOfflineData'](this[_0x16ae2f(0x25a)]),_0x5c37e9=(_0x47d0d8=_0x128cf9==null?void 0x0:_0x128cf9[_0x16ae2f(0x2a1)])!=null?_0x47d0d8:[],_0x375afe=(_0x8b7ddd=_0x128cf9==null?void 0x0:_0x128cf9['awaitingChangeset'])!=null?_0x8b7ddd:null,_0x4e967e=this['unitID'];try{this[_0x16ae2f(0x205)](_0x375afe,_0x5c37e9);}catch(_0x3b7930){this[_0x16ae2f(0x17c)][_0x16ae2f(0x172)](_0x3b7930);}const _0x4b1ce6=this[_0x16ae2f(0x171)]();if(_0x2a29ee){const _0x409796=St(this['_injector'],_0x4e967e,this[_0x16ae2f(0x2ea)],_0x375afe,_0x5c37e9,_0x4b1ce6);return _0x409796 instanceof $?_0x409796['_schedule']():(_0x409796 instanceof j||_0x409796 instanceof H)&&_0x409796['resend'](),_0x409796;}return this['_injector'][_0x16ae2f(0x229)](B,_0x4e967e,this['_type'],_0x375afe,_0x5c37e9,_0x4b1ce6);}[_0x147aa9(0x205)](_0x54c6a3,_0x2c7a31){const _0x31cea0=_0x147aa9;var _0x4562b5,_0x18e935;const _0x4fec37=this[_0x31cea0(0x37d)]['interceptor']['fetchThroughInterceptors'](this[_0x31cea0(0x37d)][_0x31cea0(0x1b4)][_0x31cea0(0x30d)]()[_0x31cea0(0x261)]);(_0x4562b5=_0x4fec37((_0x54c6a3==null?void 0x0:_0x54c6a3[_0x31cea0(0x2a1)])||[],null))==null||_0x4562b5[_0x31cea0(0x1f0)](_0x1c4a9f=>this['_commandService'][_0x31cea0(0x1fd)](_0x1c4a9f['id'],_0x1c4a9f[_0x31cea0(0x325)])),(_0x18e935=_0x4fec37(_0x2c7a31||[],null))==null||_0x18e935[_0x31cea0(0x1f0)](_0xa45ad9=>this['_commandService'][_0x31cea0(0x1fd)](_0xa45ad9['id'],_0xa45ad9['params']));}};me=pe([I(0x3,h[_0x147aa9(0x23d)](h[_0x147aa9(0x461)])),I(0x4,h['Inject'](exports[_0x147aa9(0x2b0)])),I(0x5,h[_0x147aa9(0x23d)](a[_0x147aa9(0x23b)])),I(0x6,h['Inject'](_[_0x147aa9(0x3f2)])),I(0x7,h[_0x147aa9(0x23d)](a[_0x147aa9(0x2fc)])),I(0x8,h[_0x147aa9(0x23d)](_[_0x147aa9(0x1a3)])),I(0x9,a[_0x147aa9(0x4be)]),I(0xa,a[_0x147aa9(0x496)]),I(0xb,N[_0x147aa9(0x3c5)]),I(0xc,h[_0x147aa9(0x2e5)](Ce))],me);let Le=class extends me{constructor(_0x1fad60,_0x25c736,_0x1453d1,_0xdeaa6d,_0x480b8a,_0x5a0ece,_0x317c78,_0x40fa41,_0x3718aa,_0x27499c,_0x3fd9e1,_0x4fbb57,_0x112cdf,_0x63ef44,_0xaa2753,_0x438b46,_0x3c327){const _0xc4a5b5=_0x147aa9;super(_0x1fad60,_0x25c736,_0x1453d1,_0xdeaa6d,_0x480b8a,_0x5a0ece,_0x317c78,_0x40fa41,_0x3718aa,_0x63ef44,_0xaa2753,_0x438b46,_0x3c327),this['unitID']=_0x1fad60,this[_0xc4a5b5(0x444)]=_0x25c736,this[_0xc4a5b5(0x4c6)]=_0x1453d1,this['_docStateChangeManagerService']=_0x27499c,this[_0xc4a5b5(0x3d9)]=_0x3fd9e1,this[_0xc4a5b5(0x28f)]=_0x4fbb57,this[_0xc4a5b5(0x379)]=_0x112cdf;}[_0x147aa9(0x171)](){const _0x5904af=_0x147aa9,_0x2406ae=super[_0x5904af(0x171)]();return _0x2406ae[_0x5904af(0x3fd)]=_0x28222c=>this[_0x5904af(0x3d9)]['transformIMECache'](_0x28222c),_0x2406ae[_0x5904af(0x2f6)]=_0x5ab8ca=>this['_docTransformSelectionsService']['transformSelections'](_0x5ab8ca),_0x2406ae[_0x5904af(0x3c8)]=_0x46daa1=>this[_0x5904af(0x379)][_0x5904af(0x464)](_0x46daa1),_0x2406ae[_0x5904af(0x497)]=_0x44f0e6=>this[_0x5904af(0x3d9)][_0x5904af(0x32a)](_0x44f0e6),_0x2406ae;}async[_0x147aa9(0x41a)](){const _0x55cea6=_0x147aa9,_0x3954a4=await super[_0x55cea6(0x41a)]();return this[_0x55cea6(0x21f)][_0x55cea6(0x29a)]['pipe'](v[_0x55cea6(0x2f7)](this[_0x55cea6(0x498)]))[_0x55cea6(0x2d2)](_0x4ce12a=>{const _0x31b1d6=_0x55cea6;if(_0x4ce12a==null)return;const {unitId:_0x427cfe,redoState:_0x462429,commandId:_0x11b2e6}=_0x4ce12a;if(_0x427cfe!==this['unitID'])return;const _0x8fc526={'id':_0x11b2e6,'type':a[_0x31b1d6(0x1ee)][_0x31b1d6(0x16d)],'params':{'unitId':_0x427cfe,'actions':_0x462429[_0x31b1d6(0x288)],'textRanges':null}};this['_onLocalMutation'](_0x8fc526);}),_0x3954a4;}};Le=pe([I(0x3,h['Inject'](h[_0x147aa9(0x461)])),I(0x4,h[_0x147aa9(0x23d)](exports[_0x147aa9(0x2b0)])),I(0x5,h[_0x147aa9(0x23d)](a['UniverPermissionService'])),I(0x6,h[_0x147aa9(0x23d)](_['CompressMutationService'])),I(0x7,h[_0x147aa9(0x23d)](a[_0x147aa9(0x2fc)])),I(0x8,h[_0x147aa9(0x23d)](_['RevisionService'])),I(0x9,h[_0x147aa9(0x23d)](U['DocStateChangeManagerService'])),I(0xa,h[_0x147aa9(0x23d)](Se)),I(0xb,h[_0x147aa9(0x23d)](ve)),I(0xc,h[_0x147aa9(0x23d)](Be)),I(0xd,a[_0x147aa9(0x4be)]),I(0xe,a[_0x147aa9(0x496)]),I(0xf,N[_0x147aa9(0x3c5)]),I(0x10,h[_0x147aa9(0x2e5)](Ce))],Le);let Ue=class extends me{constructor(_0x28ef29,_0x53c309,_0x36b3cf,_0x516710,_0x50ed64,_0x19babc,_0x5d8103,_0x4038c4,_0x407ff6,_0x57a280,_0x529c6c,_0xf9cf3d,_0x306e12,_0x535ad9){const _0x15d8e1=_0x147aa9;super(_0x28ef29,_0x53c309,_0x36b3cf,_0x516710,_0x50ed64,_0x19babc,_0x5d8103,_0x4038c4,_0x407ff6,_0x529c6c,_0xf9cf3d,_0x306e12,_0x535ad9),this[_0x15d8e1(0x25a)]=_0x28ef29,this[_0x15d8e1(0x444)]=_0x53c309,this['session']=_0x36b3cf,this[_0x15d8e1(0x31d)]=_0x57a280;}[_0x147aa9(0x171)](){const _0xcf405c=_0x147aa9,_0x5f29ab=super[_0xcf405c(0x171)]();return _0x5f29ab[_0xcf405c(0x2f6)]=_0x4fa09e=>this[_0xcf405c(0x31d)][_0xcf405c(0x3f0)](_0x4fa09e),_0x5f29ab;}async[_0x147aa9(0x41a)](){const _0x4cfc71=_0x147aa9,_0x456ddb=await super[_0x4cfc71(0x41a)]();return this[_0x4cfc71(0x305)](this['_commandService'][_0x4cfc71(0x1a4)]((_0x531bd7,_0x3cf021)=>{const _0x1972bc=_0x4cfc71;if(_0x531bd7[_0x1972bc(0x444)]!==a[_0x1972bc(0x1ee)][_0x1972bc(0x16d)]||_0x3cf021!=null&&_0x3cf021[_0x1972bc(0x42d)]||_0x3cf021!=null&&_0x3cf021['onlyLocal'])return;const _0xa55d7d=_0x531bd7['params'];if((_0xa55d7d==null?void 0x0:_0xa55d7d[_0x1972bc(0x400)])!==this[_0x1972bc(0x25a)])return;const _0x3f4635=_0x531bd7,_0x5c1643=this[_0x1972bc(0x37d)][_0x1972bc(0x1b4)][_0x1972bc(0x29b)](this[_0x1972bc(0x37d)]['interceptor']['getInterceptPoints']()[_0x1972bc(0x18d)])([_0x3f4635],null)||[_0x3f4635];this[_0x1972bc(0x307)](_0x5c1643[0x0]);})),_0x456ddb;}};Ue=pe([I(0x3,h[_0x147aa9(0x23d)](h['Injector'])),I(0x4,h[_0x147aa9(0x23d)](exports[_0x147aa9(0x2b0)])),I(0x5,h['Inject'](a[_0x147aa9(0x23b)])),I(0x6,h[_0x147aa9(0x23d)](_[_0x147aa9(0x3f2)])),I(0x7,h[_0x147aa9(0x23d)](a[_0x147aa9(0x2fc)])),I(0x8,h[_0x147aa9(0x23d)](_['RevisionService'])),I(0x9,h[_0x147aa9(0x23d)](fe)),I(0xa,a[_0x147aa9(0x4be)]),I(0xb,a[_0x147aa9(0x496)]),I(0xc,N['IMessageService']),I(0xd,h['Optional'](Ce))],Ue);const Qe=['purple300','jiqing500',_0x147aa9(0x1aa),_0x147aa9(0x462),_0x147aa9(0x1d8),_0x147aa9(0x2c8)];class Fe extends a[_0x147aa9(0x2a4)]{constructor(){const _0xcb8f4b=_0x147aa9;super(...arguments),d(this,'_assignedColors',new Map()),d(this,_0xcb8f4b(0x2bc),0x0);}[_0x147aa9(0x219)](_0x48a8a1){const _0x225e0d=_0x147aa9;if(this[_0x225e0d(0x29e)][_0x225e0d(0x24a)](_0x48a8a1))return this[_0x225e0d(0x29e)][_0x225e0d(0x1f9)](_0x48a8a1);const _0x15090a=Qe[this[_0x225e0d(0x2bc)]];return this[_0x225e0d(0x2bc)]=(this[_0x225e0d(0x2bc)]+0x1)%Qe['length'],this[_0x225e0d(0x29e)][_0x225e0d(0x2c0)](_0x48a8a1,_0x15090a),_0x15090a;}}var ss=(_0x4ab687,_0xe27b02,_0x5081e0,_0x13aea7)=>{const _0x23f877=_0x147aa9;for(var _0x3c6f32=_0xe27b02,_0xb3d67=_0x4ab687[_0x23f877(0x3f5)]-0x1,_0x522577;_0xb3d67>=0x0;_0xb3d67--)(_0x522577=_0x4ab687[_0xb3d67])&&(_0x3c6f32=_0x522577(_0x3c6f32)||_0x3c6f32);return _0x3c6f32;},q=(_0x15b2cf,_0x5f36fc)=>(_0x3ab26b,_0x19e480)=>_0x5f36fc(_0x3ab26b,_0x19e480,_0x15b2cf);const is=0x12c,ns=0x64,rs=()=>{let _0x4d9aa3=[],_0x17f100=!0x1;return _0x16a916=>{const _0x2bfeff=_0x5bd1;_0x4d9aa3[_0x2bfeff(0x4ad)](_0x16a916),_0x17f100||(_0x17f100=!0x0,setTimeout(()=>{const _0x511c34=_0x2bfeff;_0x4d9aa3[_0x511c34(0x1f0)](_0x35279a=>_0x35279a()),_0x4d9aa3=[],_0x17f100=!0x1;}));};};let Ne=class extends a[_0x147aa9(0x169)]{constructor(_0x1c1212,_0x530bb6,_0x11caad,_0xf9bcd0,_0x21c238,_0x48ef40,_0x28ba05,_0x26e498){const _0x340a09=_0x147aa9;super(),d(this,'_online',!0x1),d(this,_0x340a09(0x41a),!0x1),d(this,_0x340a09(0x336),new v[(_0x340a09(0x470))](new Map())),d(this,'cursorInfo$',this[_0x340a09(0x336)][_0x340a09(0x36f)]()),d(this,'_roomMembers$',new v[(_0x340a09(0x470))]([])),d(this,_0x340a09(0x3b4),this[_0x340a09(0x43f)][_0x340a09(0x2e4)](v[_0x340a09(0x27b)](is))),d(this,_0x340a09(0x42a),je((_0x3bfa03,_0x46868e)=>{const _0x103a24=_0x340a09,_0x2c2fbc={'eventID':_[_0x103a24(0x2dd)][_0x103a24(0x47e)],'data':{'unitID':this['unitID'],'memberID':this['_session'][_0x103a24(0x287)](),'selection':Ge[_0x103a24(0x2f4)](_0x3bfa03,_0x46868e[_0x103a24(0x4cc)])}};this['_session'][_0x103a24(0x35d)](_0x2c2fbc,this[_0x103a24(0x25a)]);},ns)),(this[_0x340a09(0x25a)]=_0x1c1212,this[_0x340a09(0x316)]=_0x530bb6,this[_0x340a09(0x17d)]=_0x11caad,this[_0x340a09(0x22d)]=_0xf9bcd0,this['_memberService']=_0x21c238,this[_0x340a09(0x40c)]=_0x48ef40,this[_0x340a09(0x48e)]=_0x28ba05,this[_0x340a09(0x260)]=_0x26e498);}get[_0x147aa9(0x23a)](){const _0x4f14c5=_0x147aa9;return this[_0x4f14c5(0x336)][_0x4f14c5(0x290)]();}get[_0x147aa9(0x182)](){const _0x55f65c=_0x147aa9;return this[_0x55f65c(0x43f)]['getValue']();}[_0x147aa9(0x35b)](){const _0x20932a=_0x147aa9;super['dispose'](),this['_cursorInfo$'][_0x20932a(0x20f)](new Map()),this[_0x20932a(0x336)]['complete'](),this[_0x20932a(0x43f)]['next']([]),this['_roomMembers$']['complete']();}[_0x147aa9(0x24e)](){const _0x3fa61f=_0x147aa9;this['_init']||(this[_0x3fa61f(0x41a)]=!0x0,this['_session'][_0x3fa61f(0x2ed)][_0x3fa61f(0x2e4)](v[_0x3fa61f(0x2f7)](this[_0x3fa61f(0x498)]))[_0x3fa61f(0x2d2)](_0x2bf341=>{const _0x1d63c0=_0x3fa61f;_0x2bf341===W[_0x1d63c0(0x20a)]?this['_toggleOnline']():this[_0x1d63c0(0x402)]();}),this[_0x3fa61f(0x316)][_0x3fa61f(0x309)][_0x3fa61f(0x2e4)](v[_0x3fa61f(0x2f7)](this[_0x3fa61f(0x498)]))[_0x3fa61f(0x2d2)](_0xed5fc1=>{const _0x189a60=_0x3fa61f,_0x58f405=_0xed5fc1[_0x189a60(0x450)];_0x58f405===_[_0x189a60(0x2dd)][_0x189a60(0x47e)]&&this[_0x189a60(0x240)](_0xed5fc1),_0x58f405===_['CollaborationEvent']['USERS_LEAVE']&&this[_0x189a60(0x256)](_0xed5fc1);}),this['_onRefRangeChange'](),this[_0x3fa61f(0x305)](this[_0x3fa61f(0x48e)][_0x3fa61f(0x1a4)](_0xaa93e2=>{const _0x410de8=_0x3fa61f;if(this[_0x410de8(0x347)]&&_0xaa93e2['id']===p[_0x410de8(0x170)]['id']&&_0xaa93e2[_0x410de8(0x325)][_0x410de8(0x400)]===this['unitID']){const _0x59ce98=_0xaa93e2[_0x410de8(0x325)];this[_0x410de8(0x42a)](_0x59ce98['subUnitId'],_0x59ce98[_0x410de8(0x490)][0x0]);}})));}[_0x147aa9(0x240)](_0x272d47){const _0x4ddcfd=_0x147aa9;var _0x55eef9,_0x2bebd1;const {memberID:_0xd9f49c,selection:_0x506cf0}=_0x272d47['data'],{sheetName:_0x36f23c,range:_0xede96a}=Ge['deserializeRangeWithSheet'](_0x506cf0),_0x1098e5={'name':(_0x2bebd1=(_0x55eef9=this[_0x4ddcfd(0x293)][_0x4ddcfd(0x249)](this[_0x4ddcfd(0x25a)],_0xd9f49c))==null?void 0x0:_0x55eef9[_0x4ddcfd(0x342)])!=null?_0x2bebd1:'Unknown\x20user','range':this['_getMergeRange'](_0x36f23c,_0xede96a),'sheetID':_0x36f23c,'color':this[_0x4ddcfd(0x22d)]['assignAColorForMemberID'](_0xd9f49c),'selection':_0x506cf0},_0x3e8d70=this[_0x4ddcfd(0x23a)];_0x3e8d70[_0x4ddcfd(0x2c0)](_0xd9f49c,_0x1098e5),this[_0x4ddcfd(0x336)][_0x4ddcfd(0x20f)](_0x3e8d70);}[_0x147aa9(0x256)](_0x4362fa){const _0x46bb90=_0x147aa9,{memberID:_0x457562}=_0x4362fa[_0x46bb90(0x233)],_0x375ea3=this['cursorInfo'];_0x375ea3[_0x46bb90(0x392)](_0x457562),this[_0x46bb90(0x336)][_0x46bb90(0x20f)](_0x375ea3);}[_0x147aa9(0x3b7)](_0x325d3e,_0x20453c){const _0x35eb82=_0x147aa9;var _0x57f073,_0x308bc0;const _0x3043e6=(_0x308bc0=(_0x57f073=this[_0x35eb82(0x40c)][_0x35eb82(0x20e)](this[_0x35eb82(0x25a)]))==null?void 0x0:_0x57f073['getSheetBySheetId'](_0x325d3e))==null?void 0x0:_0x308bc0[_0x35eb82(0x22e)]();return(_0x3043e6==null?void 0x0:_0x3043e6[_0x35eb82(0x373)](_0x2f1e99=>a[_0x35eb82(0x446)][_0x35eb82(0x257)](_0x2f1e99,_0x20453c)))||_0x20453c;}[_0x147aa9(0x37f)](){const _0x49915e=_0x147aa9,_0x3f7522=new a['DisposableCollection'](),_0x3b7cfc=rs(),_0x561ac2=()=>{const _0x184149=_0x5bd1;_0x3f7522[_0x184149(0x35b)]();const _0x404564=(_0x3d0466,_0x106a24,_0x3ace80,_0x79f075)=>{const _0x4dc081=_0x184149;let _0x48705c=[];switch(_0x3d0466['id']){case p[_0x4dc081(0x438)][_0x4dc081(0x24d)]:{_0x48705c=p[_0x4dc081(0x364)](_0x3d0466,_0x79f075);break;}case p[_0x4dc081(0x438)][_0x4dc081(0x320)]:{_0x48705c=p[_0x4dc081(0x289)](_0x3d0466,_0x79f075);break;}case p[_0x4dc081(0x438)][_0x4dc081(0x281)]:{_0x48705c=p[_0x4dc081(0x389)](_0x3d0466,_0x79f075);break;}case p['EffectRefRangId'][_0x4dc081(0x1a5)]:{_0x48705c=p[_0x4dc081(0x3ce)](_0x3d0466,_0x79f075);break;}case p[_0x4dc081(0x438)]['InsertRangeMoveRightCommandId']:{_0x48705c=p['handleInsertRangeMoveRight'](_0x3d0466,_0x79f075);break;}case p[_0x4dc081(0x438)][_0x4dc081(0x317)]:{_0x48705c=p[_0x4dc081(0x204)](_0x3d0466,_0x79f075);break;}case p[_0x4dc081(0x438)][_0x4dc081(0x33e)]:{_0x48705c=p[_0x4dc081(0x3bd)](_0x3d0466,_0x79f075);break;}case p[_0x4dc081(0x438)][_0x4dc081(0x32e)]:{_0x48705c=p[_0x4dc081(0x3d1)](_0x3d0466,_0x79f075);break;}case p['EffectRefRangId'][_0x4dc081(0x40a)]:{_0x48705c=p['handleIRemoveRow'](_0x3d0466,_0x79f075);break;}}const _0x57b5eb=p['runRefRangeMutations'](_0x48705c,_0x79f075),_0x400b92=this[_0x4dc081(0x23a)]['get'](_0x106a24);if(_0x400b92&&_0x57b5eb){const _0x30c445={..._0x400b92,'range':_0x57b5eb};this['cursorInfo']['set'](_0x106a24,_0x30c445),_0x3b7cfc(()=>{const _0x1c9437=_0x4dc081,_0x1b885a=this[_0x1c9437(0x260)]['registerRefRange'](_0x57b5eb,_0x4c7473=>(_0x1b885a[_0x1c9437(0x35b)](),_0x404564(_0x4c7473,_0x106a24,_0x3ace80,_0x57b5eb)));_0x3f7522[_0x1c9437(0x3c1)](_0x1b885a);});}return{'redos':[],'undos':[]};};this[_0x184149(0x23a)]['forEach']((_0x54a51e,_0x575729)=>{const _0x153a86=_0x184149,{range:_0x9e5b5b,sheetID:_0x53c98d}=_0x54a51e,_0x1cfcea=this['_refRangeService']['registerRefRange'](_0x9e5b5b,_0x247ece=>(_0x1cfcea[_0x153a86(0x35b)](),_0x404564(_0x247ece,_0x575729,_0x53c98d,_0x9e5b5b)));_0x3f7522[_0x153a86(0x3c1)](_0x1cfcea);});};this[_0x49915e(0x305)](a[_0x49915e(0x4b3)](this['_cursorInfo$'][_0x49915e(0x2d2)](()=>{_0x561ac2();})));}[_0x147aa9(0x3e6)](){const _0x56bfa4=_0x147aa9;var _0x568e1e,_0x2a3be5;if(this[_0x56bfa4(0x347)]=!0x0,((_0x568e1e=this[_0x56bfa4(0x40c)][_0x56bfa4(0x210)]())==null?void 0x0:_0x568e1e[_0x56bfa4(0x483)]())!==this[_0x56bfa4(0x25a)])return;const _0x5847b5=(_0x2a3be5=this[_0x56bfa4(0x17d)][_0x56bfa4(0x1f9)](p[_0x56bfa4(0x3a2)])[_0x56bfa4(0x326)]())==null?void 0x0:_0x2a3be5[0x0];_0x5847b5&&this[_0x56bfa4(0x42a)](this[_0x56bfa4(0x40c)][_0x56bfa4(0x28a)](a['UniverInstanceType'][_0x56bfa4(0x2af)])[_0x56bfa4(0x43d)]()[_0x56bfa4(0x1a2)](),_0x5847b5);}['_toggleOffline'](){const _0x2507ce=_0x147aa9;this[_0x2507ce(0x347)]=!0x1;}};Ne=ss([q(0x2,h['Inject'](h[_0x147aa9(0x461)])),q(0x3,h[_0x147aa9(0x23d)](Fe)),q(0x4,h['Inject'](V)),q(0x5,a[_0x147aa9(0x25d)]),q(0x6,a['ICommandService']),q(0x7,h['Inject'](p[_0x147aa9(0x359)]))],Ne);var os=(_0x5583c5,_0x1ea773,_0x199fb3,_0x4ad39a)=>{for(var _0x3f1918=_0x1ea773,_0x47a3a7=_0x5583c5['length']-0x1,_0x5d456f;_0x47a3a7>=0x0;_0x47a3a7--)(_0x5d456f=_0x5583c5[_0x47a3a7])&&(_0x3f1918=_0x5d456f(_0x3f1918)||_0x3f1918);return _0x3f1918;},F=(_0x5e939c,_0x5e67fb)=>(_0x5d55a4,_0x34249e)=>_0x5e67fb(_0x5d55a4,_0x34249e,_0x5e939c);const as=0x12c,cs=0x64;let Ae=class extends a['RxDisposable']{constructor(_0x51163e,_0x18d338,_0x3af592,_0x57d6d6,_0x585dba,_0x1785b8,_0x19dd03,_0xc4dab8,_0x48a524){const _0x408ebf=_0x147aa9;super(),d(this,_0x408ebf(0x347),!0x1),d(this,'_init',!0x1),d(this,_0x408ebf(0x336),new v[(_0x408ebf(0x470))](new Map())),d(this,_0x408ebf(0x467),this[_0x408ebf(0x336)][_0x408ebf(0x36f)]()),d(this,'_roomMembers$',new v['BehaviorSubject']([])),d(this,'roomMembers$',this[_0x408ebf(0x43f)][_0x408ebf(0x2e4)](v[_0x408ebf(0x27b)](as))),d(this,_0x408ebf(0x42a),je(_0x2ea601=>{const _0x5540c4=_0x408ebf,_0x519807={'eventID':_[_0x5540c4(0x2dd)][_0x5540c4(0x47e)],'data':{'unitID':this[_0x5540c4(0x25a)],'memberID':this[_0x5540c4(0x316)][_0x5540c4(0x287)](),'selection':dt(_0x2ea601)}};this[_0x5540c4(0x316)]['send'](_0x519807,this['unitID']);},cs)),(this[_0x408ebf(0x25a)]=_0x51163e,this[_0x408ebf(0x316)]=_0x18d338,this['_injector']=_0x3af592,this['_colorAssignService']=_0x57d6d6,this['_memberService']=_0x585dba,this[_0x408ebf(0x478)]=_0x1785b8,this[_0x408ebf(0x306)]=_0x19dd03,this[_0x408ebf(0x40c)]=_0xc4dab8,this[_0x408ebf(0x48e)]=_0x48a524);}get[_0x147aa9(0x23a)](){const _0x340a6c=_0x147aa9;return this[_0x340a6c(0x336)]['getValue']();}get[_0x147aa9(0x182)](){const _0x149983=_0x147aa9;return this[_0x149983(0x43f)][_0x149983(0x290)]();}['dispose'](){const _0x17f8b5=_0x147aa9;super[_0x17f8b5(0x35b)](),this[_0x17f8b5(0x336)]['next'](new Map()),this['_cursorInfo$'][_0x17f8b5(0x1d7)](),this[_0x17f8b5(0x43f)]['next']([]),this[_0x17f8b5(0x43f)]['complete']();}[_0x147aa9(0x24e)](){const _0x371c59=_0x147aa9;this[_0x371c59(0x41a)]||(this[_0x371c59(0x41a)]=!0x0,this['_session']['sessionStatus$'][_0x371c59(0x2e4)](v[_0x371c59(0x2f7)](this['dispose$']))[_0x371c59(0x2d2)](_0x371e5f=>{const _0x35441a=_0x371c59;_0x371e5f===W[_0x35441a(0x20a)]?this[_0x35441a(0x3e6)]():this[_0x35441a(0x402)]();}),this[_0x371c59(0x316)][_0x371c59(0x309)]['pipe'](v[_0x371c59(0x2f7)](this[_0x371c59(0x498)]))[_0x371c59(0x2d2)](_0xab4c35=>{const _0xeedd36=_0x371c59,_0x173e22=_0xab4c35[_0xeedd36(0x450)];_0x173e22===_['CollaborationEvent'][_0xeedd36(0x47e)]&&this[_0xeedd36(0x240)](_0xab4c35),_0x173e22===_['CollaborationEvent'][_0xeedd36(0x24f)]&&this['_onCursorDelete'](_0xab4c35);}),this[_0x371c59(0x305)](this[_0x371c59(0x48e)]['onCommandExecuted'](_0x59056c=>{const _0x40daf3=_0x371c59,_0x52caf6=_0x59056c[_0x40daf3(0x325)];_0x52caf6!=null&&this['_online']&&_0x59056c['id']===U[_0x40daf3(0x376)]['id']&&_0x52caf6[_0x40daf3(0x400)]===this[_0x40daf3(0x25a)]&&_0x52caf6[_0x40daf3(0x413)]===!0x1&&this[_0x40daf3(0x42a)](_0x52caf6[_0x40daf3(0x38c)]);})),this[_0x371c59(0x478)][_0x371c59(0x4ce)][_0x371c59(0x2e4)](v['takeUntil'](this[_0x371c59(0x498)]))[_0x371c59(0x2d2)](_0x1cc13d=>{const _0x21724f=_0x371c59;if((_0x1cc13d==null?void 0x0:_0x1cc13d['unitID'])!==this[_0x21724f(0x25a)])return;const _0x248c18={'eventID':_['CollaborationEvent']['UPDATE_CURSOR'],'data':_0x1cc13d};this[_0x21724f(0x240)](_0x248c18);}),this[_0x371c59(0x305)](this[_0x371c59(0x48e)][_0x371c59(0x1a4)](_0x2330e1=>{const _0x2278e6=_0x371c59;if(_0x2330e1[_0x2278e6(0x325)]==null)return;const _0x5f4544=_0x2330e1[_0x2278e6(0x325)];if(_0x2330e1['id']!==U[_0x2278e6(0x2a6)]['id']||_0x5f4544[_0x2278e6(0x400)]!==this[_0x2278e6(0x25a)])return;const _0x377a89={'id':_0x2278e6(0x1a6),'params':_0x5f4544},_0x1cd301=this[_0x2278e6(0x23a)];for(const [_0x2ccf66,_0x3f954c]of _0x1cd301){const _0x564a54={'id':'doc.mutation.rich-text-editing','params':{'unitId':this[_0x2278e6(0x25a)],'actions':[],'textRanges':_0x3f954c[_0x2278e6(0x38c)]}},_0x34cd89=this[_0x2278e6(0x306)][_0x2278e6(0x1ec)](_0x377a89,_0x564a54,!0x1);if(_[_0x2278e6(0x3e1)](_0x34cd89))throw _0x34cd89[_0x2278e6(0x172)];_0x1cd301['set'](_0x2ccf66,{..._0x3f954c,'ranges':_0x34cd89['m2Prime']['params'][_0x2278e6(0x25f)]});}queueMicrotask(()=>{const _0x4d0888=_0x2278e6;this[_0x4d0888(0x336)][_0x4d0888(0x20f)](_0x1cd301);});})));}['_onCursorUpdate'](_0x2d11dd){const _0x33378a=_0x147aa9;var _0x19333b,_0x76f547;const {memberID:_0x487ae6,selection:_0x48ef62}=_0x2d11dd[_0x33378a(0x233)],_0x357f59=Jt(_0x48ef62),_0x312f32=(_0x76f547=(_0x19333b=this[_0x33378a(0x293)][_0x33378a(0x249)](this[_0x33378a(0x25a)],_0x487ae6))==null?void 0x0:_0x19333b[_0x33378a(0x342)])!=null?_0x76f547:_0x33378a(0x382),_0x2d7156={'color':this[_0x33378a(0x22d)][_0x33378a(0x219)](_0x487ae6),'name':_0x312f32,'ranges':_0x357f59},_0x57fec6=this['cursorInfo'];_0x57fec6['set'](_0x487ae6,_0x2d7156),this['_cursorInfo$']['next'](_0x57fec6);}[_0x147aa9(0x256)](_0x58e2f3){const _0x25b571=_0x147aa9,{memberID:_0x4da7ec}=_0x58e2f3[_0x25b571(0x233)],_0x4be126=this[_0x25b571(0x23a)];_0x4be126[_0x25b571(0x392)](_0x4da7ec),this[_0x25b571(0x336)]['next'](_0x4be126);}[_0x147aa9(0x3e6)](){const _0x54a2a0=_0x147aa9;var _0x534d0f;if(this['_online']=!0x0,((_0x534d0f=this[_0x54a2a0(0x40c)][_0x54a2a0(0x210)]())==null?void 0x0:_0x534d0f['getUnitId']())!==this['unitID'])return;const _0x9e83b4=this['_injector'][_0x54a2a0(0x1f9)](U[_0x54a2a0(0x216)])[_0x54a2a0(0x326)](),_0x3d48db=_0x9e83b4==null?void 0x0:_0x9e83b4[_0x54a2a0(0x26d)](U[_0x54a2a0(0x32c)]);Array[_0x54a2a0(0x488)](_0x3d48db)&&_0x3d48db[_0x54a2a0(0x3f5)]>0x0&&this[_0x54a2a0(0x42a)](_0x3d48db);}['_toggleOffline'](){const _0x2fddb2=_0x147aa9;this[_0x2fddb2(0x347)]=!0x1;}};Ae=os([F(0x2,h[_0x147aa9(0x23d)](h['Injector'])),F(0x3,h[_0x147aa9(0x23d)](Fe)),F(0x4,h[_0x147aa9(0x23d)](V)),F(0x5,h['Inject'](Be)),F(0x6,_[_0x147aa9(0x2ad)]),F(0x7,a['IUniverInstanceService']),F(0x8,a[_0x147aa9(0x496)])],Ae);var ls=(_0x3eab93,_0xda8d49,_0x210b13,_0x5226d3)=>{const _0xbd3919=_0x147aa9;for(var _0x534e48=_0xda8d49,_0x1fdc8d=_0x3eab93[_0xbd3919(0x3f5)]-0x1,_0x2d5c15;_0x1fdc8d>=0x0;_0x1fdc8d--)(_0x2d5c15=_0x3eab93[_0x1fdc8d])&&(_0x534e48=_0x2d5c15(_0x534e48)||_0x534e48);return _0x534e48;},Re=(_0x19db79,_0xfb7c8b)=>(_0x3f28db,_0x418ed7)=>_0xfb7c8b(_0x3f28db,_0x418ed7,_0x19db79);let J=class extends a[_0x147aa9(0x169)]{constructor(_0x352676,_0x15a7ea,_0x2d1c03){const _0x931727=_0x147aa9;super(),d(this,_0x931727(0x39f),new Map()),d(this,_0x931727(0x1b0),new v[(_0x931727(0x43c))]()),(this[_0x931727(0x40c)]=_0x352676,this['_injector']=_0x15a7ea,this[_0x931727(0x3fb)]=_0x2d1c03,this[_0x931727(0x41a)]());}[_0x147aa9(0x35b)](){const _0x5558fa=_0x147aa9;super[_0x5558fa(0x35b)](),this[_0x5558fa(0x1b0)]['complete'](),this['_entities'][_0x5558fa(0x1f0)](_0x4353de=>_0x4353de['dispose']());}[_0x147aa9(0x353)](_0x575023){const _0x3ce4b6=_0x147aa9;return this['_entities'][_0x3ce4b6(0x24a)](_0x575023)?this[_0x3ce4b6(0x39f)][_0x3ce4b6(0x1f9)](_0x575023)[_0x3ce4b6(0x467)]:this[_0x3ce4b6(0x1b0)]['pipe'](v[_0x3ce4b6(0x211)](_0x5c42c5=>_0x5c42c5[_0x3ce4b6(0x25a)]===_0x575023),v[_0x3ce4b6(0x418)](_0x353eba=>_0x353eba[_0x3ce4b6(0x467)]));}[_0x147aa9(0x41a)](){const _0x4d6ed6=_0x147aa9;this['_univerInstanceService'][_0x4d6ed6(0x362)](a[_0x4d6ed6(0x223)][_0x4d6ed6(0x2af)])[_0x4d6ed6(0x2e4)](v['takeUntil'](this[_0x4d6ed6(0x498)]))['subscribe'](async _0x35d7e8=>{const _0x12cf0c=_0x4d6ed6,_0x34baac=_0x35d7e8['getUnitId'](),_0x2a9174=await this[_0x12cf0c(0x22f)](_0x34baac);this['_entityInit$'][_0x12cf0c(0x20f)](_0x2a9174),this[_0x12cf0c(0x39f)][_0x12cf0c(0x2c0)](_0x34baac,_0x2a9174);}),this[_0x4d6ed6(0x40c)][_0x4d6ed6(0x362)](a[_0x4d6ed6(0x223)][_0x4d6ed6(0x374)])[_0x4d6ed6(0x2e4)](v[_0x4d6ed6(0x2f7)](this[_0x4d6ed6(0x498)]))[_0x4d6ed6(0x2e4)](v[_0x4d6ed6(0x211)](_0x4a110e=>!_0x4a110e['getUnitId']()[_0x4d6ed6(0x4a3)]('__')))['subscribe'](async _0xca5fcb=>{const _0x540c58=_0x4d6ed6,_0x5910b6=_0xca5fcb['getUnitId'](),_0x5fa242=await this['_startDocCollabCursor'](_0x5910b6);this[_0x540c58(0x1b0)][_0x540c58(0x20f)](_0x5fa242),this['_entities'][_0x540c58(0x2c0)](_0x5910b6,_0x5fa242);}),v[_0x4d6ed6(0x258)](this[_0x4d6ed6(0x40c)][_0x4d6ed6(0x263)](a[_0x4d6ed6(0x223)]['UNIVER_DOC']),this[_0x4d6ed6(0x40c)]['getTypeOfUnitDisposed$'](a[_0x4d6ed6(0x223)]['UNIVER_SHEET']))[_0x4d6ed6(0x2e4)](v['takeUntil'](this[_0x4d6ed6(0x498)]))['subscribe'](_0xc2e76b=>{const _0x59ad29=_0x4d6ed6,_0x242b9f=_0xc2e76b[_0x59ad29(0x483)](),_0x1fe472=this['_entities'][_0x59ad29(0x1f9)](_0x242b9f);_0x1fe472&&(_0x1fe472[_0x59ad29(0x35b)](),this['_entities']['delete'](_0x242b9f));});}async[_0x147aa9(0x22f)](_0x52d096){const _0x560fdc=_0x147aa9,_0x42e9d4=await this[_0x560fdc(0x3fb)]['requireSession'](_0x52d096),_0x460a2c=this[_0x560fdc(0x17d)][_0x560fdc(0x229)](Ne,_0x52d096,_0x42e9d4);return _0x460a2c[_0x560fdc(0x24e)](),_0x460a2c;}async['_startDocCollabCursor'](_0x4b08ed){const _0x28838c=_0x147aa9,_0x4e71e4=await this[_0x28838c(0x3fb)]['requireSession'](_0x4b08ed),_0x5ccaea=this[_0x28838c(0x17d)][_0x28838c(0x229)](Ae,_0x4b08ed,_0x4e71e4);return _0x5ccaea['init'](),_0x5ccaea;}};J=ls([a[_0x147aa9(0x4b5)](a[_0x147aa9(0x28e)][_0x147aa9(0x26c)],J),Re(0x0,a['IUniverInstanceService']),Re(0x1,h[_0x147aa9(0x23d)](h[_0x147aa9(0x461)])),Re(0x2,h[_0x147aa9(0x23d)](exports['CollaborationSessionService']))],J);const le=0x14,Ze=0xc8,ye=0x4,hs=0x5;function us(_0x5eb330,_0x52f61d){const _0x4ab5f5=_0x147aa9;let {radius:_0x177949,width:_0x4c9824,height:_0x12f251}=_0x52f61d;_0x177949=_0x177949!=null?_0x177949:0x0,_0x4c9824=_0x4c9824!=null?_0x4c9824:0x1e,_0x12f251=_0x12f251!=null?_0x12f251:0x1e;let _0x377de8=0x0,_0x1973ed=0x0,_0x1db37a=0x0;_0x377de8=_0x1973ed=_0x1db37a=Math[_0x4ab5f5(0x2ba)](_0x177949,_0x4c9824/0x2,_0x12f251/0x2),_0x5eb330[_0x4ab5f5(0x499)](),_0x5eb330[_0x4ab5f5(0x34b)](_0x377de8,0x0),_0x5eb330['lineTo'](_0x4c9824-_0x1973ed,0x0),_0x5eb330[_0x4ab5f5(0x3ca)](_0x4c9824-_0x1973ed,_0x1973ed,_0x1973ed,Math['PI']*0x3/0x2,0x0,!0x1),_0x5eb330[_0x4ab5f5(0x40f)](_0x4c9824,_0x12f251-_0x1db37a),_0x5eb330[_0x4ab5f5(0x3ca)](_0x4c9824-_0x1db37a,_0x12f251-_0x1db37a,_0x1db37a,0x0,Math['PI']/0x2,!0x1),_0x5eb330['lineTo'](0x0,_0x12f251),_0x5eb330[_0x4ab5f5(0x40f)](0x0,_0x377de8),_0x5eb330[_0x4ab5f5(0x3ca)](_0x377de8,_0x377de8,_0x377de8,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x5eb330[_0x4ab5f5(0x2ae)](),_0x52f61d[_0x4ab5f5(0x19a)]&&(_0x5eb330[_0x4ab5f5(0x246)](),_0x5eb330[_0x4ab5f5(0x1f4)]=_0x52f61d[_0x4ab5f5(0x19a)],_0x52f61d[_0x4ab5f5(0x3b1)]===_0x4ab5f5(0x2b8)?_0x5eb330[_0x4ab5f5(0x19a)](_0x4ab5f5(0x2b8)):_0x5eb330[_0x4ab5f5(0x19a)](),_0x5eb330['restore']());}class Ee extends R[_0x147aa9(0x3d6)]{constructor(_0x11c09c,_0xb0056c){const _0x139851=_0x147aa9;super(_0x11c09c,_0xb0056c),d(this,_0x139851(0x2ec)),d(this,_0x139851(0x427)),(this[_0x139851(0x2ec)]=_0xb0056c==null?void 0x0:_0xb0056c[_0x139851(0x2ec)],this['text']=_0xb0056c==null?void 0x0:_0xb0056c[_0x139851(0x427)]);}static['drawWith'](_0x19f75f,_0x3bc343){const _0x3ca4f6=_0x147aa9,{text:_0x223d3f,color:_0x4ccaa0}=_0x3bc343;_0x19f75f[_0x3ca4f6(0x246)](),_0x19f75f[_0x3ca4f6(0x4bf)]=_0x3ca4f6(0x2cc);const _0x26c071=_0x19f75f['measureText'](_0x223d3f)[_0x3ca4f6(0x31b)],_0x18b203=Math['min'](_0x26c071+0x2*ye,Ze);us(_0x19f75f,{'height':le,'radius':0x4,'width':_0x18b203,'fill':_0x4ccaa0,'evented':!0x1}),_0x19f75f['fillStyle']='#FFF';const _0x44581d=ye,_0x479b73=le-hs,_0x3388b9=Ze-0x2*ye;if(_0x26c071>_0x3388b9){let _0x4f29d3='',_0x517ab2=0x0;for(const _0x443448 of _0x223d3f){const _0x2aa041=_0x19f75f[_0x3ca4f6(0x19d)](_0x443448)[_0x3ca4f6(0x31b)];if(_0x517ab2+_0x2aa041<=_0x3388b9-_0x19f75f[_0x3ca4f6(0x19d)](_0x3ca4f6(0x1f2))[_0x3ca4f6(0x31b)])_0x4f29d3+=_0x443448,_0x517ab2+=_0x2aa041;else{_0x4f29d3+='...';break;}}_0x19f75f['fillText'](_0x4f29d3,_0x44581d,_0x479b73);}else _0x19f75f[_0x3ca4f6(0x46d)](_0x223d3f,_0x44581d,_0x479b73);_0x19f75f[_0x3ca4f6(0x4c3)]();}[_0x147aa9(0x36a)](_0x54d89f){const _0x1f8d4a=_0x147aa9;Ee[_0x1f8d4a(0x3dc)](_0x54d89f,this);}}const _s=0x1,ds=1.5;class gs extends R['Shape']{constructor(_0xf47538,_0x21c8e4){const _0x2c6fdb=_0x147aa9;super(_0xf47538,_0x21c8e4),d(this,_0x2c6fdb(0x338)),d(this,_0x2c6fdb(0x21b),!0x1),d(this,'_range'),d(this,_0x2c6fdb(0x1c8),''),d(this,'_labelPosition',_0x2c6fdb(0x4bb)),(_0x21c8e4&&this[_0x2c6fdb(0x300)](_0x21c8e4),this[_0x2c6fdb(0x492)]['add'](()=>this[_0x2c6fdb(0x300)]({'hovered':!0x0})),this['onPointerLeaveObserver']['add'](()=>this[_0x2c6fdb(0x300)]({'hovered':!0x1})));}['setShapeProps'](_0x50c368){const _0x3c91ed=_0x147aa9;var _0x2878cd,_0x57ef15,_0x534cd3,_0x520126,_0x529ce9;this[_0x3c91ed(0x338)]=(_0x2878cd=_0x50c368['color'])!=null?_0x2878cd:this[_0x3c91ed(0x338)],this['_hovered']=(_0x57ef15=_0x50c368[_0x3c91ed(0x361)])!=null?_0x57ef15:this[_0x3c91ed(0x21b)],this[_0x3c91ed(0x41b)]=(_0x534cd3=_0x50c368[_0x3c91ed(0x4cc)])!=null?_0x534cd3:this[_0x3c91ed(0x41b)],this['_name']=(_0x520126=_0x50c368['name'])!=null?_0x520126:this[_0x3c91ed(0x1c8)],this[_0x3c91ed(0x45d)]=(_0x529ce9=_0x50c368[_0x3c91ed(0x430)])!=null?_0x529ce9:this[_0x3c91ed(0x45d)],this[_0x3c91ed(0x2c6)]({'width':_0x50c368[_0x3c91ed(0x31b)],'height':_0x50c368[_0x3c91ed(0x2d5)]});}['onMouseMove'](_0x5c8b9f){const _0x37c871=_0x147aa9,{row:_0x34489d,column:_0x49af8c}=_0x5c8b9f;if(_0x34489d>=this['_range']['startRow']&&_0x34489d<=this['_range']['endRow']&&_0x49af8c>=this[_0x37c871(0x41b)][_0x37c871(0x493)]&&_0x49af8c<=this[_0x37c871(0x41b)][_0x37c871(0x360)]){this['setShapeProps']({'hovered':!0x0});return;}this[_0x37c871(0x300)]({'hovered':!0x1});}['triggerDblclick'](_0x1f0b11){return!0x1;}[_0x147aa9(0x36a)](_0x16d371){const _0x46f1a7=_0x147aa9;R[_0x46f1a7(0x319)][_0x46f1a7(0x3dc)](_0x16d371,{'width':this['width'],'height':this['height'],'strokeWidth':ds,'stroke':this[_0x46f1a7(0x338)],'evented':!0x1}),this[_0x46f1a7(0x21b)]&&(_0x16d371[_0x46f1a7(0x246)](),_0x16d371[_0x46f1a7(0x237)](0x1,0x0,0x0,0x1,this[_0x46f1a7(0x31b)],this[_0x46f1a7(0x45d)]===_0x46f1a7(0x197)?0x0:-le),Ee[_0x46f1a7(0x3dc)](_0x16d371,{'text':this[_0x46f1a7(0x1c8)],'color':this[_0x46f1a7(0x338)]}),_0x16d371[_0x46f1a7(0x4c3)]());}}var Ss=(_0x6a2f2,_0x44debe,_0x295483,_0x4ed3c4)=>{const _0x32b8d0=_0x147aa9;for(var _0x501bc0=_0x44debe,_0xe045b2=_0x6a2f2[_0x32b8d0(0x3f5)]-0x1,_0x388207;_0xe045b2>=0x0;_0xe045b2--)(_0x388207=_0x6a2f2[_0xe045b2])&&(_0x501bc0=_0x388207(_0x501bc0)||_0x501bc0);return _0x501bc0;},se=(_0x1e056e,_0x3c8967)=>(_0x33a856,_0x53ff3f)=>_0x3c8967(_0x33a856,_0x53ff3f,_0x1e056e);let _e=class extends a['RxDisposable']{constructor(_0x1d32ef,_0x3c89e7,_0x4fd9e6,_0x23dd22,_0x4c8935){const _0x466c62=_0x147aa9;super(),d(this,_0x466c62(0x251),new Set()),d(this,'_lastPointer',null),(this['_collabCursorController']=_0x1d32ef,this[_0x466c62(0x40c)]=_0x3c89e7,this[_0x466c62(0x330)]=_0x4fd9e6,this[_0x466c62(0x3de)]=_0x23dd22,this[_0x466c62(0x245)]=_0x4c8935,this[_0x466c62(0x41a)]());}[_0x147aa9(0x41a)](){const _0x555868=_0x147aa9;this[_0x555868(0x3de)][_0x555868(0x39a)]['pipe'](T['takeUntil'](this[_0x555868(0x498)]),T['switchMap'](_0x5e41ea=>{const _0x4d79ed=_0x555868;if(_0x5e41ea){const _0x2506ae=_0x5e41ea['sheetId'];return v[_0x4d79ed(0x3f7)](this[_0x4d79ed(0x3cc)][_0x4d79ed(0x353)](_0x5e41ea['unitId']),this[_0x4d79ed(0x245)]['currentTheme$'])['pipe'](T['map'](([_0x3b089b,_0x13fdfb])=>{const _0xd63cc9=_0x4d79ed,_0x2aca64=new Map();return _0x3b089b[_0xd63cc9(0x1f0)]((_0x2cd237,_0xa020ee)=>{const _0xea2f79=_0xd63cc9;if(_0x2cd237[_0xea2f79(0x351)]===_0x2506ae){const _0x4e381a={..._0x2cd237};_0x4e381a[_0xea2f79(0x2ec)]=_0x13fdfb[_0x2cd237['color']],_0x2aca64[_0xea2f79(0x2c0)](_0xa020ee,_0x4e381a);}}),{'skeleton':_0x5e41ea,'cursors':_0x2aca64};}));}return v['of']({'skeleton':null,'cursors':new Map()});}))[_0x555868(0x2d2)](({skeleton:_0x54a6fd,cursors:_0x246182})=>{const _0x3d979e=_0x555868;this[_0x3d979e(0x3a4)](),_0x54a6fd&&this[_0x3d979e(0x2f3)](_0x54a6fd,_0x246182);}),this['_sheetSkeletonManagerService'][_0x555868(0x39a)]['subscribe'](_0x26b261=>{const _0x1b42b0=_0x555868;if(_0x26b261==null)return;const {unitId:_0x5cf002,skeleton:_0x1cc77f}=_0x26b261,_0x3d2860=this[_0x1b42b0(0x330)][_0x1b42b0(0x42f)](_0x5cf002);if(_0x3d2860==null)return;const {scene:_0x1fa04c}=_0x3d2860;_0x1fa04c[_0x1b42b0(0x366)][_0x1b42b0(0x3c1)](je(_0x5588d0=>{const _0x569f08=_0x1b42b0;var _0x2be082,_0x97b675;const {offsetX:_0x2c03bc,offsetY:_0x1d9952}=_0x5588d0,{x:_0x495516,y:_0x507138}=_0x1fa04c[_0x569f08(0x1ce)](R['Vector2'][_0x569f08(0x190)]([_0x2c03bc,_0x1d9952])),{scaleX:_0x2f7a4d,scaleY:_0x2245a5}=_0x1fa04c['getAncestorScale'](),_0x34b3eb=_0x1fa04c[_0x569f08(0x453)](oe['VIEWPORT_KEY'][_0x569f08(0x24c)]),_0x2c8f8e=_0x1fa04c[_0x569f08(0x163)](R[_0x569f08(0x17f)]['FromArray']([_0x495516,_0x507138]),_0x34b3eb),_0x2b0c80=_0x1cc77f['getCellPositionByOffset'](_0x2c03bc,_0x1d9952,_0x2f7a4d,_0x2245a5,_0x2c8f8e);((_0x2be082=this[_0x569f08(0x270)])==null?void 0x0:_0x2be082[_0x569f08(0x1f8)])===_0x2b0c80[_0x569f08(0x1f8)]&&((_0x97b675=this['_lastPointer'])==null?void 0x0:_0x97b675['row'])===_0x2b0c80['row']||this['_cursors']['forEach'](_0x5db6b9=>{_0x5db6b9['onMouseMove'](_0x2b0c80);});},0x64));});}[_0x147aa9(0x2f3)](_0x49dc51,_0x4ca142){const _0x1bcfe7=_0x147aa9;var _0x40799d;const _0x535424=(_0x40799d=this[_0x1bcfe7(0x3de)][_0x1bcfe7(0x44b)]())==null?void 0x0:_0x40799d[_0x1bcfe7(0x4a8)];if(!_0x535424)return;const _0x880dba=this['_getSheetObject']();if(!_0x880dba)return;this[_0x1bcfe7(0x251)]['forEach'](_0x40f7aa=>{const _0x4f1aec=_0x1bcfe7;_0x40f7aa[_0x4f1aec(0x429)]();});const {scene:_0x483e1c}=_0x880dba,_0x5d61f5=vs(Array[_0x1bcfe7(0x160)](_0x4ca142[_0x1bcfe7(0x274)]()))[_0x1bcfe7(0x26d)](_0x5e4720=>{const _0x1d76b2=_0x1bcfe7,{color:_0x1a8c9a,range:_0x1dbf78,name:_0x28d407,selection:_0x587ec5,sheetID:_0x268d8f}=_0x5e4720,{startColumn:_0x2b9c45,startRow:_0x27087f,endColumn:_0x540606,endRow:_0x570e9d}=_0x1dbf78,_0xc1d92d=oe[_0x1d76b2(0x1b2)](_0x27087f,_0x2b9c45,_0x483e1c,_0x535424),_0x260927=oe[_0x1d76b2(0x1b2)](_0x570e9d,_0x540606,_0x483e1c,_0x535424),{columnHeaderHeightAndMarginTop:_0x301af2}=_0x535424,{startX:_0x14465a,startY:_0x579ac2}=_0xc1d92d,{endX:_0x5f3aa8,endY:_0x40be36}=_0x260927,_0x33ecfd=_0x5f3aa8-_0x14465a,_0x5e53b8=_0x40be36-_0x579ac2,_0x126514={'labelPosition':_0x579ac2-_0x301af2>=le?'top':'bottom','sheetID':_0x268d8f,'range':_0x1dbf78,'color':_0x1a8c9a,'name':_0x28d407,'selection':_0x587ec5,'left':_0x14465a,'top':_0x579ac2,'width':_0x33ecfd,'height':_0x5e53b8,'evented':!0x1};return new gs(_0x28d407,_0x126514);});_0x483e1c[_0x1bcfe7(0x282)](_0x5d61f5,_s),this[_0x1bcfe7(0x251)]=new Set(_0x5d61f5);}[_0x147aa9(0x3a4)](){const _0x4bff8b=_0x147aa9;var _0x3d0db2;(_0x3d0db2=this[_0x4bff8b(0x251)])==null||_0x3d0db2[_0x4bff8b(0x1f0)](_0x12736b=>_0x12736b[_0x4bff8b(0x35b)]());}[_0x147aa9(0x331)](){const _0xfc001=_0x147aa9;return oe[_0xfc001(0x19f)](this[_0xfc001(0x40c)],this['_renderManagerService']);}};_e=Ss([a[_0x147aa9(0x4b5)](a['LifecycleStages'][_0x147aa9(0x48b)],_e),se(0x0,h[_0x147aa9(0x23d)](J)),se(0x1,a[_0x147aa9(0x25d)]),se(0x2,R[_0x147aa9(0x1d2)]),se(0x3,h[_0x147aa9(0x23d)](oe[_0x147aa9(0x419)])),se(0x4,h['Inject'](a[_0x147aa9(0x437)]))],_e);function vs(_0x4b9f19){const _0x571ade=_0x147aa9,_0x491372=new Map();return _0x4b9f19['forEach'](_0x3d438b=>{const _0x173a81=_0x5bd1;if(_0x491372[_0x173a81(0x24a)](_0x3d438b[_0x173a81(0x234)])){const _0x13422a=_0x491372['get'](_0x3d438b[_0x173a81(0x234)]);_0x13422a['name']+=',\x20'+_0x3d438b[_0x173a81(0x342)];}else _0x491372['set'](_0x3d438b[_0x173a81(0x234)],_0x3d438b);}),Array[_0x571ade(0x160)](_0x491372[_0x571ade(0x274)]());}var L=function(){const _0x568841=_0x147aa9;return L=Object[_0x568841(0x2b7)]||function(_0x13a252){const _0x2f1874=_0x568841;for(var _0x448627,_0x259824=0x1,_0x459f3b=arguments['length'];_0x259824<_0x459f3b;_0x259824++){_0x448627=arguments[_0x259824];for(var _0x15c74d in _0x448627)Object[_0x2f1874(0x465)][_0x2f1874(0x2cf)][_0x2f1874(0x354)](_0x448627,_0x15c74d)&&(_0x13a252[_0x15c74d]=_0x448627[_0x15c74d]);}return _0x13a252;},L[_0x568841(0x3b5)](this,arguments);},fs=function(_0x367975,_0x419ec2){const _0x5e6677=_0x147aa9;var _0x5363a1={};for(var _0x155471 in _0x367975)Object['prototype']['hasOwnProperty'][_0x5e6677(0x354)](_0x367975,_0x155471)&&_0x419ec2['indexOf'](_0x155471)<0x0&&(_0x5363a1[_0x155471]=_0x367975[_0x155471]);if(_0x367975!=null&&typeof Object[_0x5e6677(0x17b)]==_0x5e6677(0x271)){for(var _0x2725ef=0x0,_0x155471=Object[_0x5e6677(0x17b)](_0x367975);_0x2725ef<_0x155471['length'];_0x2725ef++)_0x419ec2[_0x5e6677(0x31a)](_0x155471[_0x2725ef])<0x0&&Object['prototype'][_0x5e6677(0x1ba)][_0x5e6677(0x354)](_0x367975,_0x155471[_0x2725ef])&&(_0x5363a1[_0x155471[_0x2725ef]]=_0x367975[_0x155471[_0x2725ef]]);}return _0x5363a1;},We=M[_0x147aa9(0x378)](function(_0x20688f,_0x4f82eb){const _0x4de3f6=_0x147aa9;var _0x5acf28=_0x20688f[_0x4de3f6(0x380)],_0x19256d=_0x20688f['id'],_0x44bf03=_0x20688f[_0x4de3f6(0x3f6)],_0x4ba739=_0x20688f[_0x4de3f6(0x337)],_0x560059=fs(_0x20688f,[_0x4de3f6(0x380),'id',_0x4de3f6(0x3f6),'extend']),_0x1f736d=_0x4de3f6(0x161)['concat'](_0x19256d,'\x20')[_0x4de3f6(0x3ec)](_0x44bf03||'')[_0x4de3f6(0x23e)](),_0x3d120c=M[_0x4de3f6(0x334)]('_'[_0x4de3f6(0x3ec)](Cs()));return vt(_0x5acf28,''[_0x4de3f6(0x3ec)](_0x19256d),{'defIds':_0x5acf28[_0x4de3f6(0x4ba)],'idSuffix':_0x3d120c[_0x4de3f6(0x381)]},L({'ref':_0x4f82eb,'className':_0x1f736d},_0x560059),_0x4ba739);});function vt(_0x26053b,_0x26c5be,_0x482d22,_0x5b7655,_0x49b128){const _0x5117e7=_0x147aa9;return M['createElement'](_0x26053b[_0x5117e7(0x232)],L(L({'key':_0x26c5be},ms(_0x26053b,_0x482d22,_0x49b128)),_0x5b7655),(Is(_0x26053b,_0x482d22)['children']||[])['map'](function(_0x35eae4,_0x154a10){const _0xcbaac6=_0x5117e7;return vt(_0x35eae4,''[_0xcbaac6(0x3ec)](_0x26c5be,'-')[_0xcbaac6(0x3ec)](_0x26053b[_0xcbaac6(0x232)],'-')[_0xcbaac6(0x3ec)](_0x154a10),_0x482d22,void 0x0,_0x49b128);}));}function ms(_0x55114c,_0x5e33d0,_0x1cf7a1){const _0x4c0c21=_0x147aa9;var _0x19cbaa=L({},_0x55114c[_0x4c0c21(0x2c5)]);_0x1cf7a1!=null&&_0x1cf7a1['colorChannel1']&&_0x19cbaa[_0x4c0c21(0x19a)]===_0x4c0c21(0x46c)&&(_0x19cbaa[_0x4c0c21(0x19a)]=_0x1cf7a1[_0x4c0c21(0x46c)]);var _0x5cc6ac=_0x5e33d0[_0x4c0c21(0x4ba)];return!_0x5cc6ac||_0x5cc6ac[_0x4c0c21(0x3f5)]===0x0||(_0x55114c[_0x4c0c21(0x232)]===_0x4c0c21(0x4a0)&&_0x19cbaa[_0x4c0c21(0x36c)]&&(_0x19cbaa[_0x4c0c21(0x36c)]=_0x19cbaa[_0x4c0c21(0x36c)]+_0x5e33d0['idSuffix']),Object[_0x4c0c21(0x4a6)](_0x19cbaa)[_0x4c0c21(0x1f0)](function(_0x3241c9){const _0x392df5=_0x4c0c21;var _0x104711=_0x3241c9[0x0],_0x42161b=_0x3241c9[0x1];typeof _0x42161b==_0x392df5(0x2ac)&&(_0x19cbaa[_0x104711]=_0x42161b[_0x392df5(0x47d)](/url\(#(.*)\)/,_0x392df5(0x1ad)[_0x392df5(0x3ec)](_0x5e33d0[_0x392df5(0x34a)],')')));})),_0x19cbaa;}function Is(_0x546187,_0x3979b6){const _0x585920=_0x147aa9;var _0x467776,_0x292d39=_0x3979b6['defIds'];return!_0x292d39||_0x292d39[_0x585920(0x3f5)]===0x0?_0x546187:_0x546187['tag']==='defs'&&(!((_0x467776=_0x546187[_0x585920(0x21e)])===null||_0x467776===void 0x0)&&_0x467776['length'])?L(L({},_0x546187),{'children':_0x546187[_0x585920(0x21e)][_0x585920(0x26d)](function(_0x5ad9ff){const _0x1e0e46=_0x585920;return typeof _0x5ad9ff['attrs']['id']==_0x1e0e46(0x2ac)&&_0x292d39&&_0x292d39['indexOf'](_0x5ad9ff[_0x1e0e46(0x2c5)]['id'])>-0x1?L(L({},_0x5ad9ff),{'attrs':L(L({},_0x5ad9ff[_0x1e0e46(0x2c5)]),{'id':_0x5ad9ff['attrs']['id']+_0x3979b6[_0x1e0e46(0x34a)]})}):_0x5ad9ff;})}):_0x546187;}function Cs(){const _0x322eea=_0x147aa9;return Math[_0x322eea(0x286)]()[_0x322eea(0x3a8)](0x24)[_0x322eea(0x30f)](0x2,0x8);}We[_0x147aa9(0x391)]=_0x147aa9(0x30a);var ps={'tag':_0x147aa9(0x33f),'attrs':{'fill':'none','viewBox':_0x147aa9(0x299),'width':_0x147aa9(0x4ca),'height':_0x147aa9(0x4ca)},'children':[{'tag':'g','attrs':{'clipPath':_0x147aa9(0x2d3)},'children':[{'tag':_0x147aa9(0x411),'attrs':{'stroke':_0x147aa9(0x1b8),'d':_0x147aa9(0x1c3),'strokeLinecap':_0x147aa9(0x202),'strokeLinejoin':_0x147aa9(0x202),'strokeWidth':1.2}}]},{'tag':'defs','attrs':{},'children':[{'tag':_0x147aa9(0x192),'attrs':{'id':_0x147aa9(0x167)},'children':[{'tag':'path','attrs':{'fill':_0x147aa9(0x46a),'d':_0x147aa9(0x3c4)}}]}]}],'defIds':['off-line-single_clip0_910_343']},ft=M[_0x147aa9(0x378)](function(_0x5481f9,_0x243791){const _0x5c6091=_0x147aa9;return M['createElement'](We,Object[_0x5c6091(0x2b7)]({},_0x5481f9,{'id':_0x5c6091(0x16a),'ref':_0x243791,'icon':ps}));});ft['displayName']=_0x147aa9(0x318);var Es={'tag':_0x147aa9(0x33f),'attrs':{'fill':_0x147aa9(0x396),'viewBox':_0x147aa9(0x1c4),'width':_0x147aa9(0x4ca),'height':_0x147aa9(0x4ca)},'children':[{'tag':'g','attrs':{'clipPath':_0x147aa9(0x1b5)},'children':[{'tag':_0x147aa9(0x411),'attrs':{'stroke':'currentColor','d':_0x147aa9(0x45e),'strokeLinecap':'round','strokeLinejoin':'round','strokeWidth':1.2}}]},{'tag':'defs','attrs':{},'children':[{'tag':'clipPath','attrs':{'id':'on-line-single_clip0_910_349'},'children':[{'tag':_0x147aa9(0x411),'attrs':{'fill':_0x147aa9(0x46a),'d':_0x147aa9(0x3c4),'transform':_0x147aa9(0x386)}}]}]}],'defIds':[_0x147aa9(0x1b7)]},mt=M[_0x147aa9(0x378)](function(_0x623ecd,_0x3c7e91){const _0xaf6eb3=_0x147aa9;return M[_0xaf6eb3(0x2aa)](We,Object[_0xaf6eb3(0x2b7)]({},_0x623ecd,{'id':_0xaf6eb3(0x4c7),'ref':_0x3c7e91,'icon':Es}));});mt[_0x147aa9(0x391)]=_0x147aa9(0x3cb);const bs=_0x147aa9(0x357),Ts=_0x147aa9(0x1df),Rs=_0x147aa9(0x254),ys='univer-online',Os=_0x147aa9(0x42b),ie={'onlineStatusIcon':bs,'onlineStatusTitle':Ts,'onlineStatus':Rs,'online':ys,'offline':Os};function Ds(_0x5ad2b8){const _0x29168b=_0x147aa9;switch(_0x5ad2b8){case D[_0x29168b(0x253)]:return _0x29168b(0x2a9);case D[_0x29168b(0x283)]:return _0x29168b(0x368);case D[_0x29168b(0x183)]:return _0x29168b(0x2d1);case D[_0x29168b(0x449)]:return'collabStatus.notCollab';case D[_0x29168b(0x30b)]:case D[_0x29168b(0x424)]:case D[_0x29168b(0x4a7)]:return'collabStatus.syncing';case D[_0x29168b(0x388)]:return _0x29168b(0x474);}}function It(_0x59e802){const _0x712e0b=_0x147aa9,{status$:_0x95615c}=_0x59e802,_0x9ad4ef=N[_0x712e0b(0x443)](_0x95615c,D['NOT_COLLAB']),_0x6630dd=it['useDependency'](a[_0x712e0b(0x2fc)]),_0x1632ed=_0x9ad4ef!==D[_0x712e0b(0x253)],_0x3c2f2c=_0x6630dd['t'](Ds(_0x9ad4ef)),_0x4ecd9f=Lt(ie['onlineStatus'],{[ie['online']]:_0x1632ed,[ie['offline']]:!_0x1632ed}),_0x4c53f3=_0x1632ed?M['createElement'](mt,null):M[_0x712e0b(0x2aa)](ft,null);return M[_0x712e0b(0x2aa)](_0x712e0b(0x2f9),{'className':_0x4ecd9f},M['createElement'](_0x712e0b(0x2f9),{'className':ie[_0x712e0b(0x199)]},_0x4c53f3),M[_0x712e0b(0x2aa)]('div',{'className':ie[_0x712e0b(0x3ff)]},_0x3c2f2c));}var Ms=(_0x151c2c,_0xfbb2a,_0x3c7b52,_0x1ee291)=>{const _0x2de771=_0x147aa9;for(var _0x2eaa48=_0xfbb2a,_0x58afbe=_0x151c2c[_0x2de771(0x3f5)]-0x1,_0x1a9eca;_0x58afbe>=0x0;_0x58afbe--)(_0x1a9eca=_0x151c2c[_0x58afbe])&&(_0x2eaa48=_0x1a9eca(_0x2eaa48)||_0x2eaa48);return _0x2eaa48;},he=(_0x1894e4,_0x19e855)=>(_0x5e5090,_0x51e2ab)=>_0x19e855(_0x5e5090,_0x51e2ab,_0x1894e4);exports['DesktopCollaborationStatusDisplayController']=class extends a[_0x147aa9(0x2a4)]{constructor(_0x1a7143,_0xeb6281,_0x157b0c,_0xc28edb){const _0xc293d7=_0x147aa9;super(),d(this,'_status$',new v[(_0xc293d7(0x470))](D[_0xc293d7(0x449)])),(this[_0xc293d7(0x40c)]=_0x1a7143,this['_uiPartsService']=_0xeb6281,this[_0xc293d7(0x17d)]=_0x157b0c,this[_0xc293d7(0x3a1)]=_0xc28edb,this[_0xc293d7(0x298)](),this[_0xc293d7(0x34f)]());}[_0x147aa9(0x298)](){const _0x16251e=_0x147aa9;this['disposeWithMe'](this[_0x16251e(0x365)][_0x16251e(0x486)](N[_0x16251e(0x491)][_0x16251e(0x346)],()=>it[_0x16251e(0x27c)](ws({'status$':this['_status$'][_0x16251e(0x36f)]()}),this['_injector'])));}[_0x147aa9(0x34f)](){const _0x12763b=_0x147aa9;this['disposeWithMe'](a['toDisposable'](this[_0x12763b(0x40c)][_0x12763b(0x23f)]['pipe'](v['switchMap'](()=>{const _0x4ed61b=_0x12763b,_0x4009df=this[_0x4ed61b(0x40c)][_0x4ed61b(0x210)]();return _0x4009df?this['_collaborationController'][_0x4ed61b(0x3cf)](_0x4009df[_0x4ed61b(0x483)]()):v['of'](null);}),v['switchMap'](_0x2bfb07=>_0x2bfb07?_0x2bfb07['status$']:v['of'](D[_0x12763b(0x449)])))['subscribe'](_0x254ab4=>{const _0x5c780b=_0x12763b;this[_0x5c780b(0x3bb)][_0x5c780b(0x20f)](_0x254ab4);})));}},exports[_0x147aa9(0x2df)]=Ms([a[_0x147aa9(0x4b5)](a[_0x147aa9(0x28e)]['Starting'],exports[_0x147aa9(0x2df)]),he(0x0,a[_0x147aa9(0x25d)]),he(0x1,N['IUIPartsService']),he(0x2,h[_0x147aa9(0x23d)](h[_0x147aa9(0x461)])),he(0x3,h[_0x147aa9(0x23d)](exports[_0x147aa9(0x2d0)]))],exports['DesktopCollaborationStatusDisplayController']);function ws(_0x5636d1){const {status$:_0x2970b9}=_0x5636d1;return function(){return M['createElement'](It,{'status$':_0x2970b9});};}const Ve=h[_0x147aa9(0x311)](_0x147aa9(0x401));var Ls=(_0x2d9c23,_0xa63f3,_0x4b9212,_0x40974f)=>{const _0x26c157=_0x147aa9;for(var _0x32f953=_0xa63f3,_0x2a0051=_0x2d9c23[_0x26c157(0x3f5)]-0x1,_0x3f4012;_0x2a0051>=0x0;_0x2a0051--)(_0x3f4012=_0x2d9c23[_0x2a0051])&&(_0x32f953=_0x3f4012(_0x32f953)||_0x32f953);return _0x32f953;},X=(_0x3210d8,_0x2a7502)=>(_0x444cbc,_0x24d631)=>_0x2a7502(_0x444cbc,_0x24d631,_0x3210d8);exports[_0x147aa9(0x1d1)]=class extends a[_0x147aa9(0x169)]{constructor(_0x123764,_0x3fc40d,_0x58a39b,_0x501a2a,_0x218131,_0x288f22){const _0x550d3e=_0x147aa9;super(),this[_0x550d3e(0x1f5)]=_0x123764,this[_0x550d3e(0x17c)]=_0x3fc40d,this[_0x550d3e(0x48e)]=_0x58a39b,this['_localCacheService']=_0x501a2a,this[_0x550d3e(0x3c2)]=_0x218131,_0x288f22?_0x288f22==null||_0x288f22['whenReady']()[_0x550d3e(0x41f)](()=>this[_0x550d3e(0x41a)]()):(this[_0x550d3e(0x17c)][_0x550d3e(0x2e8)]('[DataLoaderController]','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.'),this['_init']());}async[_0x147aa9(0x41a)](){const _0x3f39dd=_0x147aa9,_0x5d6364=this[_0x3f39dd(0x1f5)][_0x3f39dd(0x2db)](_0x3f39dd(0x4a4)),_0x3af820=this['_urlService']['getParam'](_0x3f39dd(0x444));if(!_0x5d6364||!_0x3af820){this[_0x3f39dd(0x17c)][_0x3f39dd(0x2e8)](_0x3f39dd(0x208),_0x3f39dd(0x16f));return;}switch(Number(_0x3af820)){case k[_0x3f39dd(0x2af)]:{const _0x197874=await this[_0x3f39dd(0x4c8)](_0x5d6364);this[_0x3f39dd(0x2ff)](_0x197874);break;}case k[_0x3f39dd(0x374)]:{await this[_0x3f39dd(0x227)](_0x5d6364);break;}default:{this[_0x3f39dd(0x17c)][_0x3f39dd(0x172)](_0x3f39dd(0x208),_0x3f39dd(0x194));break;}}}async['_setupSubUnitSync'](_0x22ecf8){const _0x358a04=_0x147aa9;await this[_0x358a04(0x44f)](_0x22ecf8),_0x22ecf8[_0x358a04(0x35e)][_0x358a04(0x2e4)](v[_0x358a04(0x2f7)](this[_0x358a04(0x498)]))[_0x358a04(0x2d2)](_0xb466f1=>{const _0x290eca=_0x358a04;_0xb466f1&&this[_0x290eca(0x2e1)](_0xb466f1);}),this[_0x358a04(0x1f5)][_0x358a04(0x28c)][_0x358a04(0x2e4)](v[_0x358a04(0x2f7)](this['dispose$']))['subscribe'](()=>this['_updateSubUnitFromURLParams'](_0x22ecf8));}['_updateURLWithCurrentState'](_0x1edec5,_0x100189=!0x1){const _0x123904=_0x147aa9,_0x5346a1=this[_0x123904(0x1f5)]['getParam'](_0x123904(0x426));_0x1edec5[_0x123904(0x1a2)]()!==_0x5346a1&&this[_0x123904(0x1f5)][_0x123904(0x2fe)](_0x123904(0x426),_0x1edec5[_0x123904(0x1a2)](),_0x100189);}async[_0x147aa9(0x44f)](_0x1d0ad4){const _0x1b4090=_0x147aa9,_0xa3bf77=this[_0x1b4090(0x1f5)][_0x1b4090(0x2db)](_0x1b4090(0x426));if(!_0xa3bf77||!_0x1d0ad4[_0x1b4090(0x37e)](_0xa3bf77)){this[_0x1b4090(0x2e1)](_0x1d0ad4['getActiveSheet'](),!0x0);return;}_0x1d0ad4[_0x1b4090(0x43d)]()[_0x1b4090(0x1a2)]()!==_0xa3bf77&&await this[_0x1b4090(0x48e)][_0x1b4090(0x1fd)](p[_0x1b4090(0x2e9)]['id'],{'unitId':_0x1d0ad4[_0x1b4090(0x483)](),'subUnitId':_0xa3bf77});}async[_0x147aa9(0x4c8)](_0x5b80a0){const _0x517bc=_0x147aa9;let _0x48bce3=0x0;const _0x1e9fd3=await this[_0x517bc(0x3fe)][_0x517bc(0x32f)](_0x5b80a0);return _0x1e9fd3&&(_0x1e9fd3[_0x517bc(0x421)]||_0x1e9fd3['mutations']['length']!==0x0)&&(_0x48bce3=_0x1e9fd3[_0x517bc(0x416)]),_0x48bce3===0x0&&this[_0x517bc(0x17c)][_0x517bc(0x2e8)]('[DataLoaderController]',_0x517bc(0x3ad)),this['_snapshotService'][_0x517bc(0x40d)](_0x5b80a0,_0x48bce3);}async[_0x147aa9(0x227)](_0x39df0f){const _0x52ef0a=_0x147aa9;let _0x2f6eae=0x0;const _0x17d3f0=await this[_0x52ef0a(0x3fe)][_0x52ef0a(0x32f)](_0x39df0f);return _0x17d3f0&&(_0x17d3f0[_0x52ef0a(0x421)]||_0x17d3f0[_0x52ef0a(0x2a1)][_0x52ef0a(0x3f5)]!==0x0)&&(_0x2f6eae=_0x17d3f0[_0x52ef0a(0x416)]),_0x2f6eae===0x0&&this['_logService']['debug'](_0x52ef0a(0x208),'fetching\x20the\x20latest\x20document\x20from\x20the\x20server.'),this[_0x52ef0a(0x3c2)][_0x52ef0a(0x248)](_0x39df0f,_0x2f6eae);}},exports[_0x147aa9(0x1d1)]=Ls([a['OnLifecycle'](a[_0x147aa9(0x28e)]['Starting'],exports['DataLoaderController']),X(0x0,Ve),X(0x1,a[_0x147aa9(0x4be)]),X(0x2,a[_0x147aa9(0x496)]),X(0x3,h[_0x147aa9(0x23d)](exports[_0x147aa9(0x2b0)])),X(0x4,h[_0x147aa9(0x23d)](_[_0x147aa9(0x48a)])),X(0x5,h[_0x147aa9(0x2e5)](Ut[_0x147aa9(0x4a1)]))],exports[_0x147aa9(0x1d1)]);var Us=(_0x528db4,_0x17e0b5,_0x378f2d,_0x2a1ce9)=>{const _0x344a23=_0x147aa9;for(var _0x3050ac=_0x17e0b5,_0x341cc9=_0x528db4[_0x344a23(0x3f5)]-0x1,_0x49bc55;_0x341cc9>=0x0;_0x341cc9--)(_0x49bc55=_0x528db4[_0x341cc9])&&(_0x3050ac=_0x49bc55(_0x3050ac)||_0x3050ac);return _0x3050ac;},et=(_0x39d2cd,_0x314aeb)=>(_0x94cefa,_0x2d6b70)=>_0x314aeb(_0x94cefa,_0x2d6b70,_0x39d2cd);const Ns=_0x147aa9(0x189),As=_0x147aa9(0x302);let de=class extends a[_0x147aa9(0x2a4)]{constructor(_0x4da59c,_0x153a78){const _0x1c130a=_0x147aa9;super(),this[_0x1c130a(0x40c)]=_0x4da59c,this['_configService']=_0x153a78,this['_init']();}[_0x147aa9(0x41a)](){const _0x1face1=_0x147aa9;this[_0x1face1(0x305)](a[_0x1face1(0x4b3)](this[_0x1face1(0x40c)][_0x1face1(0x23f)][_0x1face1(0x2d2)](()=>{const _0x431298=_0x1face1;var _0x11dec7;const _0x502392=this[_0x431298(0x40c)]['getFocusedUnit']();let _0x21c3f6=(_0x11dec7=this[_0x431298(0x266)][_0x431298(0x262)](Ns))!=null?_0x11dec7:As;_0x502392 instanceof a['Workbook']&&(_0x21c3f6=_0x502392[_0x431298(0x342)]),document[_0x431298(0x440)]=_0x21c3f6;})));}};de=Us([a[_0x147aa9(0x4b5)](a[_0x147aa9(0x28e)][_0x147aa9(0x37b)],de),et(0x0,a[_0x147aa9(0x25d)]),et(0x1,a[_0x147aa9(0x1d5)])],de);const ks={'collabStatus':{'fetchMiss':_0x147aa9(0x2c2),'conflict':_0x147aa9(0x166),'notCollab':_0x147aa9(0x456),'synced':_0x147aa9(0x1e8),'syncing':_0x147aa9(0x241),'offline':_0x147aa9(0x4ab)},'session':{'connection-failed':_0x147aa9(0x2d8),'will-retry':'连接失败,将在一会儿之后重试','room-full':_0x147aa9(0x3a3),'collaboration-timeout':'服务器未响应你的协同请求,你的编辑将在本地保存'},'conflict':{'title':_0x147aa9(0x19e),'content':'你的本地文档和服务器的文档存在冲突。请在别处保存你的本地编辑,本地编辑将在刷新页面后丢弃。'},'collaboration':{'single-unit':{'warning':_0x147aa9(0x399)}},'auth':{'needGotoLoginAlert':_0x147aa9(0x45b)}},Ct=ks;var $s=(_0x5eb3e6,_0x334bca,_0x225e31,_0x58b9ec)=>{const _0x7f79cd=_0x147aa9;for(var _0x363c1f=_0x334bca,_0x10b181=_0x5eb3e6[_0x7f79cd(0x3f5)]-0x1,_0x527d4f;_0x10b181>=0x0;_0x10b181--)(_0x527d4f=_0x5eb3e6[_0x10b181])&&(_0x363c1f=_0x527d4f(_0x363c1f)||_0x363c1f);return _0x363c1f;},tt=(_0x2e0ebe,_0x18fed2)=>(_0x3c2e0f,_0xd4e696)=>_0x18fed2(_0x3c2e0f,_0xd4e696,_0x2e0ebe);const pt=_0x147aa9(0x2fa),js='/universer-api/snapshot';let ke=class{constructor(_0x5075da,_0x9c79a4){const _0x122c88=_0x147aa9;this[_0x122c88(0x266)]=_0x5075da,this['_httpService']=_0x9c79a4;}async[_0x147aa9(0x489)](_0x351bc6,_0x3a1709){const _0x323452=_0x147aa9;var _0x2cba2b;const {unitID:_0x47c27f,type:_0x28ac19,revision:_0x2ef7b1=0x0}=_0x3a1709,_0x3af308=this[_0x323452(0x484)]()+'/'+_0x28ac19+'/unit/'+_0x47c27f+_0x323452(0x45c)+(_0x2ef7b1===0x1?0x0:_0x2ef7b1),_0x59a5a9=(await this[_0x323452(0x1c2)][_0x323452(0x1f9)](_0x3af308))['body'],_0x308a99=(_0x2cba2b=_0x59a5a9[_0x323452(0x176)])==null?void 0x0:_0x2cba2b['workbook'];if(_0x308a99){const _0x25f1b4=_0x308a99==null?void 0x0:_0x308a99[_0x323452(0x1ff)],_0x4e49af=a['textEncoder'][_0x323452(0x1e7)](a[_0x323452(0x17e)](_0x25f1b4));_0x308a99[_0x323452(0x1ff)]=_0x4e49af,Object[_0x323452(0x4a6)](_0x308a99['sheets'])[_0x323452(0x1f0)](([,_0x11f9d1])=>{const _0x4dad00=_0x323452,_0x3a7a86=_0x11f9d1[_0x4dad00(0x1ff)],_0x33caea=a['textEncoder'][_0x4dad00(0x1e7)](a[_0x4dad00(0x17e)](_0x3a7a86));_0x11f9d1[_0x4dad00(0x1ff)]=_0x33caea;});}return _0x59a5a9;}async['getSheetBlock'](_0x25e053,_0x57df7d){const _0x4265bf=_0x147aa9,{unitID:_0x1d5f88,type:_0x346887,blockID:_0x1ad482}=_0x57df7d,_0x382428=this[_0x4265bf(0x484)]()+'/'+_0x346887+'/unit/'+_0x1d5f88+'/block/'+_0x1ad482;return(await this['_httpService'][_0x4265bf(0x1f9)](_0x382428))['body'];}async[_0x147aa9(0x25b)](_0x141f22,_0x451df6){const _0x1f91fd=_0x147aa9,{unitID:_0x38c36a,type:_0x51b53d,from:_0x22495d,to:_0x36c9d6}=_0x451df6,_0xe4e65d=this[_0x1f91fd(0x484)]()+'/'+_0x51b53d+_0x1f91fd(0x3e8)+_0x38c36a+_0x1f91fd(0x3d2)+_0x22495d+'&to='+_0x36c9d6;return(await this[_0x1f91fd(0x1c2)]['get'](_0xe4e65d))[_0x1f91fd(0x44c)];}[_0x147aa9(0x484)](){const _0x157de3=_0x147aa9;var _0x44a11e;return(_0x44a11e=this[_0x157de3(0x266)][_0x157de3(0x262)](pt))!=null?_0x44a11e:js;}async[_0x147aa9(0x1db)](_0x3bd48d,_0x40601c){const _0xd63a4=_0x147aa9,_0x7973b7='/universer-api/snapshot/'+_0x40601c[_0xd63a4(0x444)]+'/unit/'+_0x40601c['unitID']+_0xd63a4(0x285);return(await this[_0xd63a4(0x1c2)]['get'](_0x7973b7,{'params':{'resourceId':JSON[_0xd63a4(0x2e6)](_0x40601c[_0xd63a4(0x2e3)])}}))[_0xd63a4(0x44c)];}['saveSnapshot'](){const _0x5a0f5f=_0x147aa9;throw new Error(_0x5a0f5f(0x38f));}[_0x147aa9(0x3b8)](){const _0x2a5c07=_0x147aa9;throw new Error(_0x2a5c07(0x38f));}['saveChangeset'](){const _0x395c2e=_0x147aa9;throw new Error(_0x395c2e(0x38f));}};ke=$s([tt(0x0,a[_0x147aa9(0x1d5)]),tt(0x1,h[_0x147aa9(0x23d)](A[_0x147aa9(0x40b)]))],ke);var Ps=(_0x49cf4a,_0x272854,_0x29fbdb,_0x80a36f)=>{const _0x3af650=_0x147aa9;for(var _0x31b00e=_0x272854,_0x4645e6=_0x49cf4a[_0x3af650(0x3f5)]-0x1,_0x3df0a0;_0x4645e6>=0x0;_0x4645e6--)(_0x3df0a0=_0x49cf4a[_0x4645e6])&&(_0x31b00e=_0x3df0a0(_0x31b00e)||_0x31b00e);return _0x31b00e;},ne=(_0x1cbb0c,_0x1c6ca6)=>(_0x421b81,_0x2d7894)=>_0x1c6ca6(_0x421b81,_0x2d7894,_0x1cbb0c);let $e=class extends a[_0x147aa9(0x2c4)]{constructor(_0x31dec1,_0xdeac58,_0x248397,_0x13f4af,_0x2eb1c7){const _0x102900=_0x147aa9;super(_0x31dec1,_0xdeac58,_0x248397),this['_transformService']=_0x13f4af,this[_0x102900(0x17c)]=_0x2eb1c7;}['transformUndoRedo'](_0x140444,_0x40abec){const _0x265f73=_0x147aa9,_0x1d8c02=this[_0x265f73(0x34c)](_0x140444);if(_0x1d8c02)try{const _0x6f7f8a=this[_0x265f73(0x415)](_0x1d8c02,_0x40abec);this[_0x265f73(0x2d6)](_0x140444,_0x6f7f8a);}catch(_0x241da9){this[_0x265f73(0x17c)][_0x265f73(0x172)](_0x265f73(0x36e),_0x241da9),this['_clearUndo'](_0x140444);}const _0x1b0627=this[_0x265f73(0x1a7)](_0x140444);if(_0x1b0627)try{const _0x1b7a0f=this['_transformStack'](_0x1b0627,_0x40abec);this[_0x265f73(0x32d)](_0x140444,_0x1b7a0f);}catch(_0x2fcdf4){this[_0x265f73(0x17c)][_0x265f73(0x172)](_0x2fcdf4),this['_clearRedo'](_0x140444);}}[_0x147aa9(0x184)](_0xe0f9f4){const _0x4f1207=_0x147aa9,_0x4c1ba4=this['_getUndoStack'](_0xe0f9f4);_0x4c1ba4&&(_0x4c1ba4['length']=0x0,this[_0x4f1207(0x18c)]());}[_0x147aa9(0x2fb)](_0x1e5799){const _0x28fbf3=_0x147aa9,_0x30cce6=this['_getRedoStack'](_0x1e5799);_0x30cce6&&(_0x30cce6[_0x28fbf3(0x3f5)]=0x0,this[_0x28fbf3(0x18c)]());}[_0x147aa9(0x2d6)](_0xa3d921,_0xa60e8a){const _0x26dd85=_0x147aa9;this[_0x26dd85(0x1dc)][_0x26dd85(0x2c0)](_0xa3d921,_0xa60e8a),this[_0x26dd85(0x18c)]();}['_substituteRedoStack'](_0x39e382,_0x5e5e24){const _0x37d196=_0x147aa9;this[_0x37d196(0x423)][_0x37d196(0x2c0)](_0x39e382,_0x5e5e24),this[_0x37d196(0x18c)]();}['_transformStack'](_0x2bbd88,_0x156eea){const _0x2eee8e=_0x147aa9,_0x21d07b=[];let _0x519385=_0x156eea,_0xdea5f7=_0x156eea;for(let _0x46d208=_0x2bbd88[_0x2eee8e(0x3f5)]-0x1;_0x46d208>=0x0;_0x46d208--){const {unitID:_0x42657e,undoMutations:_0x4519c0,redoMutations:_0x1dc8d4}=_0x2bbd88[_0x46d208],_0x32fdcb=this[_0x2eee8e(0x306)][_0x2eee8e(0x21a)](_0x519385,_0x4519c0),_0xe6d7f8=this[_0x2eee8e(0x306)]['transformMutationsWithChangeset'](_0xdea5f7,_0x1dc8d4);if(_[_0x2eee8e(0x3eb)](_0x32fdcb)||_[_0x2eee8e(0x3eb)](_0xe6d7f8)){this[_0x2eee8e(0x17c)]['error'](_0x2eee8e(0x36e),_0x2eee8e(0x3cd),_0x32fdcb,_0xe6d7f8);break;}_0x519385=_0x32fdcb[_0x2eee8e(0x252)],_0xdea5f7=_0xe6d7f8[_0x2eee8e(0x252)],_0x21d07b['push']({'unitID':_0x42657e,'undoMutations':_0x32fdcb[_0x2eee8e(0x1cd)],'redoMutations':_0xe6d7f8[_0x2eee8e(0x1cd)]});}return _0x21d07b[_0x2eee8e(0x3e0)]();}};$e=Ps([ne(0x0,a[_0x147aa9(0x25d)]),ne(0x1,a[_0x147aa9(0x496)]),ne(0x2,a[_0x147aa9(0x40e)]),ne(0x3,_['ITransformService']),ne(0x4,a[_0x147aa9(0x4be)])],$e);class Et extends a[_0x147aa9(0x169)]{constructor(){const _0x2e806f=_0x147aa9;super(),d(this,'urlChange$'),this['urlChange$']=v[_0x2e806f(0x164)](window,'popstate')[_0x2e806f(0x2e4)](v[_0x2e806f(0x2f7)](this[_0x2e806f(0x498)]),v[_0x2e806f(0x428)](0x1),v['mapTo'](void 0x0));}[_0x147aa9(0x2fe)](_0xa4e357,_0xac75d1,_0x19f111=!0x1){const _0x4691be=_0x147aa9,_0x575b79=new URL(window[_0x4691be(0x201)]['href']);_0x575b79[_0x4691be(0x39d)][_0x4691be(0x2c0)](_0xa4e357,_0xac75d1),_0x19f111?window[_0x4691be(0x203)][_0x4691be(0x390)]('','',_0x575b79[_0x4691be(0x3a8)]()):window[_0x4691be(0x203)][_0x4691be(0x3a0)]('','',_0x575b79[_0x4691be(0x3a8)]());}[_0x147aa9(0x37c)](_0x5adbc6,_0x44d1a7=!0x1){const _0x3c9214=_0x147aa9,_0x56e996=new URL(window[_0x3c9214(0x201)]['href']);_0x56e996[_0x3c9214(0x39d)]['delete'](_0x5adbc6),_0x44d1a7?window[_0x3c9214(0x203)][_0x3c9214(0x390)]('','',_0x56e996[_0x3c9214(0x3a8)]()):window['history'][_0x3c9214(0x3a0)]('','',_0x56e996[_0x3c9214(0x3a8)]());}['getParam'](_0x59f452){const _0x5a508d=_0x147aa9;var _0x9fd296;return(_0x9fd296=new URL(window['location'][_0x5a508d(0x47b)])['searchParams'][_0x5a508d(0x1f9)](_0x59f452))!=null?_0x9fd296:void 0x0;}}const Oe=_0x147aa9(0x312),xs=_0x147aa9(0x3e4),ue=0x6,Hs=1.5,De=0x4,Bs=1.5,Fs=_0x147aa9(0x4c5);class Ws{constructor(_0x439b35,_0x4fef7f,_0x34e12a,_0x1257ae){const _0x558a88=_0x147aa9;d(this,_0x558a88(0x162),[]),d(this,_0x558a88(0x173),null),d(this,_0x558a88(0x2d4),null),d(this,'_anchorDot',null),d(this,_0x558a88(0x3d3),null),d(this,'_eventUnsubscribe',null),(this['_cursor']=_0x439b35,this['_scene']=_0x4fef7f,this[_0x558a88(0x236)]=_0x34e12a,this[_0x558a88(0x1b3)]=_0x1257ae,this[_0x558a88(0x243)]());}set['_hover'](_0x216f88){const _0x32aaeb=_0x147aa9;_0x216f88?(this[_0x32aaeb(0x2d9)]&&this[_0x32aaeb(0x2d9)]['hide'](),this[_0x32aaeb(0x2d4)]&&this['_textBubble'][_0x32aaeb(0x1a1)]()):(this['_anchorDot']&&this[_0x32aaeb(0x2d9)][_0x32aaeb(0x1a1)](),this[_0x32aaeb(0x2d4)]&&this[_0x32aaeb(0x2d4)][_0x32aaeb(0x1d4)]());}[_0x147aa9(0x35b)](){const _0x58f41e=_0x147aa9;for(const _0x5662ee of this[_0x58f41e(0x162)])_0x5662ee['dispose']();this['_textBubble']&&this[_0x58f41e(0x2d4)][_0x58f41e(0x35b)](),this['_anchorDot']&&this[_0x58f41e(0x2d9)][_0x58f41e(0x35b)](),this[_0x58f41e(0x173)]&&this[_0x58f41e(0x173)][_0x58f41e(0x35b)](),this[_0x58f41e(0x187)]&&this[_0x58f41e(0x187)]();}[_0x147aa9(0x243)](){const _0x35f697=_0x147aa9,{_docSkeleton:_0x2ea5a4,_document:_0xde9d2e}=this,{color:_0x60dc1b,name:_0x103e5a,ranges:_0x1068a5}=this[_0x35f697(0x231)],_0x124617=_0xde9d2e[_0x35f697(0x1cb)](),{docsLeft:_0x3da706,docsTop:_0x37a416}=_0x124617,_0x2b77c8=new R[(_0x35f697(0x3f4))](_0x124617,_0x2ea5a4);for(const {startOffset:_0x122e14,endOffset:_0x22d68d,collapsed:_0x2aafeb,isActive:_0x4b6c7d}of _0x1068a5){const _0x433df1=_0x2ea5a4[_0x35f697(0x200)](_0x122e14),_0x1de6e5=_0x2ea5a4['findNodePositionByCharIndex'](_0x22d68d);if(_0x4b6c7d){const {contentBoxPointGroup:_0xb837c1}=_0x2b77c8[_0x35f697(0x345)](_0x1de6e5,_0x1de6e5);if(_0xb837c1['length']===0x0)continue;this['_drawAnchor'](_0x60dc1b,_0xb837c1,_0x3da706,_0x37a416,_0x103e5a),this[_0x35f697(0x187)]=this[_0x35f697(0x33b)]();}if(!_0x2aafeb){const {contentBoxPointGroup:_0x571ee6}=_0x2b77c8[_0x35f697(0x345)](_0x433df1,_0x1de6e5);if(_0x571ee6[_0x35f697(0x3f5)]===0x0)continue;this[_0x35f697(0x469)](_0x60dc1b,_0x571ee6,_0x3da706,_0x37a416);}}}[_0x147aa9(0x186)](_0x635009,_0x18653a,_0xbde413,_0x49f3de,_0x5f023d){const _0x2697b7=_0x147aa9,_0x1925d0=this['_getAnchorBounding'](_0x18653a),{left:_0x4d93f9,top:_0x53c1de,height:_0xb54a3f}=_0x1925d0,_0x4056ce=this[_0x2697b7(0x221)](),_0x41d9c9=Bs/_0x4056ce,_0x35f393=new R[(_0x2697b7(0x319))](Oe+a['Tools']['generateRandomId'](ue),{'left':_0x4d93f9+_0xbde413-_0x41d9c9,'top':_0x53c1de+_0x49f3de,'height':_0xb54a3f,'width':Hs,'fill':_0x635009||R['getColor'](a[_0x2697b7(0x321)][_0x2697b7(0x394)],0x0),'strokeWidth':_0x41d9c9,'stroke':Fs,'evented':!0x0});this['_anchor']=_0x35f393,this[_0x2697b7(0x425)]['addObject'](_0x35f393,R['TEXT_RANGE_LAYER_INDEX']);const _0x58ec05=new R[(_0x2697b7(0x319))](Oe+a[_0x2697b7(0x2bb)][_0x2697b7(0x214)](ue),{'left':_0x4d93f9+_0xbde413-_0x41d9c9,'top':_0x53c1de+_0x49f3de-De/0x2,'height':De,'width':De,'fill':_0x635009||R[_0x2697b7(0x2cd)](a['COLORS'][_0x2697b7(0x394)],0x0),'strokeWidth':0x0,'stroke':_0x635009||R[_0x2697b7(0x2cd)](a[_0x2697b7(0x321)]['black'],0x0),'evented':!0x1});this[_0x2697b7(0x2d9)]=_0x58ec05,this['_scene'][_0x2697b7(0x3e5)](_0x58ec05,R['TEXT_RANGE_LAYER_INDEX']);const _0xf5508b=new Ee(Oe+a[_0x2697b7(0x2bb)][_0x2697b7(0x214)](ue),{'left':_0x4d93f9+_0xbde413-_0x41d9c9,'top':_0x53c1de+_0x49f3de-le,'text':_0x5f023d,'color':_0x635009});this[_0x2697b7(0x2d4)]=_0xf5508b,this['_scene'][_0x2697b7(0x3e5)](_0xf5508b,R[_0x2697b7(0x4b8)]),this[_0x2697b7(0x487)]=!0x1;}[_0x147aa9(0x33b)](){const _0x3821c6=_0x147aa9,_0x3fc4bf=this['_anchor'][_0x3821c6(0x492)]['add'](()=>{this['_hover']=!0x0;}),_0x4bd6a2=this[_0x3821c6(0x173)][_0x3821c6(0x372)][_0x3821c6(0x3c1)](()=>{const _0x252e24=_0x3821c6;this['_hideTimer']&&clearTimeout(this[_0x252e24(0x3d3)]),this[_0x252e24(0x3d3)]=setTimeout(()=>{const _0x2c8485=_0x252e24;this[_0x2c8485(0x487)]=!0x1;},0x7d0);});return()=>{const _0x3bb9c8=_0x3821c6;var _0x48a1de,_0x20984a;(_0x48a1de=this['_anchor'])==null||_0x48a1de['onPointerEnterObserver'][_0x3bb9c8(0x1e4)](_0x3fc4bf),(_0x20984a=this[_0x3bb9c8(0x173)])==null||_0x20984a[_0x3bb9c8(0x372)][_0x3bb9c8(0x1e4)](_0x4bd6a2);};}[_0x147aa9(0x469)](_0x34fc0a,_0x5cb57f,_0x5f2fc3,_0x16c826){const _0xf08a06=_0x147aa9,_0x19b6b3=new a[(_0xf08a06(0x1c0))](_0x34fc0a)['setAlpha'](0.2)['toRgbString'](),_0xcde563=new R['RegularPolygon'](xs+a[_0xf08a06(0x2bb)][_0xf08a06(0x214)](ue),{'pointsGroup':_0x5cb57f,'fill':_0x19b6b3||R[_0xf08a06(0x2cd)](a['COLORS']['black'],0.2),'left':_0x5f2fc3,'top':_0x16c826,'evented':!0x1,'debounceParentDirty':!0x1});this[_0xf08a06(0x162)][_0xf08a06(0x4ad)](_0xcde563),this[_0xf08a06(0x425)][_0xf08a06(0x3e5)](_0xcde563,R[_0xf08a06(0x4b8)]);}[_0x147aa9(0x31c)](_0x3df546){const _0x36e676=_0x3df546[0x0],_0x531dc9=_0x36e676[0x0],_0x43711f=_0x36e676[0x2],{x:_0x11d101,y:_0xb9e409}=_0x531dc9,{x:_0x187e2d,y:_0x1dc806}=_0x43711f;return{'left':_0x11d101,'top':_0xb9e409,'width':_0x187e2d-_0x11d101,'height':_0x1dc806-_0xb9e409};}[_0x147aa9(0x221)](){const _0x5e20f7=_0x147aa9,{scaleX:_0x41044a,scaleY:_0x2974f6}=this[_0x5e20f7(0x425)][_0x5e20f7(0x4ae)]();return Math['max'](_0x41044a,_0x2974f6);}}function _0x35f8(){const _0x5da20e=['isTransformMutationFailure','take','_unitStatus','collab-text-range-','addObject','_toggleOnline','[CollaborationSessionService]','/unit/','onRemoteAck','setTimeout','isTransformMutationsWithChangesetFailure','concat','_showConflictNotification','ThresholdInterceptorFactory','collaboration-client','transformSelections','all','CompressMutationService','transformUndoRedo','NodePositionConvertToCursor','length','className','combineLatest','IDLE','clearTimeout','LEAVE','_collabSessionService','_transformPreviousActiveRange','onTransformIME','_localCacheService','onlineStatusTitle','unitId','uni.network.url-service','_toggleOffline','flatMap','connection\x20error','[FetchingMissState]:\x20invalid\x20calling\x20to\x20`resend`.','120316KDzRnt','roomInfos','reduce','replaceTextRanges','RemoveRowCommandId','HTTPService','_univerInstanceService','loadSheet','IContextService','lineTo','PSEUDO_FETCH_MISSING_RESULT','path','_members','isEditing','_lockTransition','_transformStack','rev','_handleHeartbeatEvent','switchMap','SheetSkeletonManagerService','_init','_range','HEARTBEAT_INTERVAL_KEY','_onJoinRoomEvent','transformChangesets','then','pauseCollaboration','awaitingChangeset','symbol','_redoStacks','AWAITING','_scene','subunit','text','shareReplay','makeDirty','_updateLocalCursor','univer-offline','liveShareNewHost','fromCollab','removeMember','getRenderById','labelPosition','[PendingState]:\x20received\x20rejection.','DocSkeletonManagerService','[ConflictState]:\x20invalid\x20calling\x20to\x20`resend`.','UNKNOWN_CODE','conflict.content','@univerjs/rpc','ThemeService','EffectRefRangId','_selfUnitIDs','2145buijql','state$','Subject','getActiveSheet','sessionStatus','_roomMembers$','title','_transitionLocked','UNIVER_UNKNOWN','useObservable','type','_currentUser','Rectangle','setCurrentUser','[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.','NOT_COLLAB','IUndoRedoService','getCurrent','body','_scheduleReconnection','awaiting_with_pending','_updateSubUnitFromURLParams','eventID','defineProperty','RETRY_CONNECTING_MAX_COUNT','getViewport','@univerjs/network','5424195qZcofI','本地文件','LOGIN_URL_KEY','JOIN','onRemoteRej','univer-pro.collaboration-client-socket-service','你的登录已过期,点击确认重新登陆,点击取消去保存你的本地编辑。','/rev/','_labelPosition','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','rxjs','_sendHeartbeatTimer','Injector','red300','_onRemoteChangeset','syncEditingCollabCursor','prototype','code','cursorInfo$','_getLoginPath','_drawRange','#fff','_event$','colorChannel1','fillText','load','split','BehaviorSubject','concatMap','unshift','_beforeCloseService','collabStatus.synced','MessageType','USERS_ENTER','_config','_syncEditingCollabCursorService','_rescheduleHeartbeatEvent','_executeRemoteChangeset','href','_sessionStatus$','replace','UPDATE_CURSOR','[CollaborationState]:\x20apply\x20error!','_tryEnsureSocket','Collaboration\x20room\x20is\x20full.\x20You\x20edits\x20would\x20be\x20saved\x20locally.','HEARTBEAT','getUnitId','_getAPIPrefixPath','transformIMECache','registerComponent','_hover','isArray','getUnitOnRev','SnapshotService','Steady','collaborationUniverTypes','_undoRedoService','_commandService','ws://127.0.0.1:8000/universer-api/comb/connect','selections','BuiltInUIPart','onPointerEnterObserver','startColumn','InsertSheetMutation','@univerjs/docs','ICommandService','onTransformRemoteChangesetByIMECache','dispose$','beginPath','_clearCollaborationTimeoutTimer','getItem','baseRev','[OfflineState]:\x20received\x20changeset.','newValue','Synced','use','IRemoteInstanceService','_onCombEvent','startsWith','unit','IBeforeCloseService','entries','AWAITING_WITH_PENDING','skeleton','csAckEvent','toggleOnline','编辑将在本地保存','setInterval','push','getAncestorScale','_remoteChangesetQueue','enUS','_saveCache','_fetchMissChangesets','toDisposable','[CollaborationController]:\x20invalid\x20univer\x20type:\x20','OnLifecycle','setItem','LOCAL_CACHE_INTERVAL_KEY','TEXT_RANGE_LAYER_INDEX','_unitOnClients','defIds','top','_disableEditing','updateMember','ILogService','font','/new_changes','\x20to\x20','1315910xLIoYj','restore','@univerjs/core','rgba(255,\x20255,\x20255,\x200.01)','session','on-line-single','_loadSheet','_setupBeforeClosingHandler','1em','_transformUndoredo','range','parse','collabCursorState$','from','univerjs-icon\x20univerjs-icon-','_shapes','getScrollXYByRelativeCoords','fromEvent','resend','编辑冲突','off-line-single_clip0_910_343','_getCtorByUniverType','RxDisposable','off-line-single','disposeUnit','getUnitType','MUTATION','[OfflineState]:\x20received\x20rejection.','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','SetSelectionsOperation','_createHandler','error','_anchor','/universer-api/comb','_heartbeatTimer','snapshot','_exhaustRemoteChangesetQueue','_retryConnectingTimer','_state','_onConnectionOpen','getOwnPropertySymbols','_logService','_injector','b64DecodeUnicode','Vector2','JOINING','RECV','roomMembers','FETCH_MISS','_clearUndo','?url=','_drawAnchor','_eventUnsubscribe','_updateState','DEFAULT_FILE_NAME','_checkMissing','conflict.title','_updateStatus','COMPRESS_MUTATION_SEND','RETRY_CONNECTING_INTERVAL','mapDocumentTypeToUniverType','FromArray','close','clipPath','_onRemoteRejected','Unknown\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','WebSocketService','_onRemoteACK','bottom','[CollaborationEntity]','onlineStatusIcon','fill','_disabled','onStateChange','measureText','协同冲突','getSheetObject','SEND_CHANGESET_TIMEOUT_KEY','show','getSheetId','RevisionService','onCommandExecuted','InsertRangeMoveDownCommandId','doc.mutation.rich-text-editing','_getRedoStack','You\x20opened\x20the\x20same\x20file\x20in\x20another\x20tab.\x20In\x20case\x20of\x20data\x20missing,\x20you\x20cannot\x20edit\x20on\x20this\x20tab.','_notificationService','verdancy600','SUBMIT_CHANGESET','LIVESHARE_REQUEST_HOST','url(#$1','updateCursorEvent','_getDocObject','_entityInit$','clearInterval','getCoordByCell','_document','interceptor','url(#on-line-single_clip0_910_349)','_onUserJoin','on-line-single_clip0_910_349','currentColor','CollaborationStatusDisplay','propertyIsEnumerable','createSocket','session.connection-failed','onMissingChangesets','_id','parseProtocolChangeset','ColorKit','_state$','_httpService','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','0\x200\x2017\x2016','distinctUntilChanged','confirm','_scheduleClearOtherTimer','_name','LIVESHARE_TERMINATE','LOCAL_CACHE_INTERVAL','getOffsetConfig','_awaitingChangeset','m2Prime','getRelativeCoord','clear','CollaborationSession','DataLoaderController','IRenderManagerService','_createInitialStateImpl','hide','IConfigService','registerOnClose','complete','blue400','_localeService','_unitID','getResourcesRequest','_undoStacks','_messageService','deepClone','univer-online-status-title','/universer-api/oidc/authpage','_onRecvEvent','saveOfflineData','_removeClearOtherTimer','remove','INotificationService','some','encode','已保存','_collaborationTimeoutTimer','enableLocalCache','session.will-retry','transformMutation','_incrementRevisionNumber','CommandType','_queuedRemoteChangesets','forEach','close$','...','There\x20is\x20a\x20conflict\x20between\x20your\x20local\x20copy\x20and\x20the\x20copy\x20on\x20the\x20server.\x20Please\x20save\x20your\x20local\x20edits,\x20because\x20they\x20will\x20be\x20lost\x20when\x20you\x20reload\x20the\x20page.','fillStyle','_urlService','getUnitStatus$','offline','column','get','280854siQPLO','invoke','464EhMFWV','executeCommand','_transformSelections','originalMeta','findNodePositionByCharIndex','location','round','history','handleInsertRow','_replayCachedMutations','_pendingMutations','@univerjs/sheets','[DataLoaderController]','status$','ONLINE','enableAuthServer','session.collaboration-timeout','[PendingState]:\x20received\x20acknowledgement.','getUniverSheetInstance','next','getFocusedUnit','filter','HEARTBEAT_INTERVAL','_scheduleHeartbeat','generateRandomId','[CollaborationController]:\x20remote\x20changeset\x20applied\x20error.','TextSelectionManagerService','INGEST','_socketMessageSubscription','assignAColorForMemberID','transformMutationsWithChangeset','_hovered','memberID','userID','children','_docStateChangeManagerService','_ensureSubject','_getScale','onStarting','UniverInstanceType','incrementRevForDocument','[CollaborationSocketService]:\x20failed\x20to\x20create\x20socket!','toggleOffline','_loadDoc','unknown','createInstance','SEND_CHANGESET_TIMEOUT','[CollaborationSession]:\x20should\x20not\x20send\x20message\x20when\x20the\x20session\x20is\x20offline!','includes','_colorAssignService','getMergeData','_startSheetCollabCursor','DisposableCollection','_cursor','tag','data','selection','FETCH_MISSING','_docSkeleton','transform','ILocalStorageService','TextX','cursorInfo','UniverPermissionService','ICollaborationSocketService','Inject','trim','focused$','_onCursorUpdate','保存中...','isTransformMutationsWithChangesetSuccess','_render','pluginName','_themeService','save','synced','loadDoc','getMember','has','_handler','VIEW_MAIN','DeleteRangeMoveLeftCommandId','init','USERS_LEAVE','getUndoRedoMutationParamsCache','_cursors','c1Prime','OFFLINE','univer-online-status','[CollaborationSession]','_onCursorDelete','contains','merge','_onFetchMissResult','unitID','fetchMissingChangesets','_ws','IUniverInstanceService','_scheduleTimestamp','textRanges','_refRangeService','COMPRESS_MUTATION_APPLY','getConfig','getTypeOfUnitDisposed$','encodeURIComponent','_updateLocalCache','_configService','IHTTPImplementation','error$','enableOfflineEditing','MSG_FOR_ERROR','getCurrentRevForDocument','Starting','map','_unlockTransition','XHRHTTPImplementation','_lastPointer','function','COLLAB_WEB_SOCKET_URL_KEY','Module','values','[SyncedState]:\x20received\x20acknowledgement.','NEW_CHANGESETS','save\x20fail\x20reason\x20is\x20','registerHTTPInterceptor','_transformRemoteChangesetByIMECache','_onConflict','debounceTime','connectInjector','_collaborationPaused','_socket$','status','getActiveRange','InsertColCommandId','addObjects','CONFLICT','_socketReady','/resources','random','getMemberID','actions','handleDeleteRangeMoveUp','getCurrentUnitForType','parseChangesetToProtocol','urlChange$','infoRsp','LifecycleStages','_docTransformSelectionsService','getValue','_cachedData','getRoom','_memberService','unsubscribe','Error','getCollabEntity','\x20-\x20','_initStatusComponent','0\x200\x2016\x2016','docStateChange$','fetchThroughInterceptors','_handleEvent','[ClientCollaborationController]:\x20invalid\x20state\x20transition!\x20State\x20transferred\x20from\x20is\x20not\x20the\x20current\x20state.\x0aBefore:\x20','_assignedColors','_localStorageService','_createSocket','mutations','HEARTBEAT_TIMEOUT_KEY','4ccWCLV','Disposable','[SyncedState]:\x20invalid\x20calling\x20to\x20`resend`.','RichTextEditingMutation','HELLO','Your\x20login\x20has\x20expired,\x20click\x20OK\x20to\x20re-login,\x20click\x20Cancel\x20to\x20save\x20your\x20local\x20edits.','collabStatus.offline','createElement','catch','string','ITransformService','closePath','UNIVER_SHEET','LocalCacheService','_schedule','@wendellhu/redi/react-bindings','CollaborationSocketService','ACTIVE_UNIT_EVENT_CHANNEL','HEARTBEAT_TIMEOUT','isActive','assign','evenodd','lodash/debounce','min','Tools','_colorIndex','storage','localeService','_clearOtherTimers','set','auth.needGotoLoginAlert','正在同步服务端数据...','2990200ajmuLh','LocalUndoRedoService','attrs','transformByState','onRemoteChangeset','gold400','LIVESHARE_NEW_HOST','Offline,\x20edits\x20would\x20be\x20save\x20on\x20local','_singleActiveUnitService','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','getColor','collaboration-client.offline-data-not-saved','hasOwnProperty','CollaborationController','collabStatus.fetchMiss','subscribe','url(#off-line-single_clip0_910_343)','_textBubble','height','_substituteUndoStack','UNIVER_SLIDE','连接失败,请检查你的网络','_anchorDot','currentTheme$','getParam','requireSession','CollaborationEvent','_getSaveTimeout','DesktopCollaborationStatusDisplayController','size','_updateURLWithCurrentState','slice','resourceIDs','pipe','Optional','stringify','pending','debug','SetWorksheetActivateCommand','_type','unload','color','sessionStatus$','_scheduleSaving','The\x20server\x20is\x20not\x20responding\x20to\x20your\x20collaboration\x20request.\x20Your\x20edits\x20would\x20be\x20saved\x20locally.','_waitForHeartbeatResponse','_clearHeartbeatTimer','serializeCombRequest','_updateCollabCursors','serializeRangeWithSheet','@univerjs/engine-render','onTransformSelections','takeUntil','OTHER_CLIENTS_EDITING','div','SNAPSHOT_SERVER_URL_KEY','_clearRedo','LocaleService','Warning','setParam','_setupSubUnitSync','setShapeProps','sequenceExecute','Univer','awaiting','Connection\x20failed,\x20please\x20check\x20your\x20network.','disposeWithMe','_transformService','_onLocalMutation','setEditable','event$','UniverIcon','PENDING','joinEvent','getInterceptPoints','univer-pro.collaboration-client.single-active-unit-service','substring','addEventListener','createIdentifier','collab-text-anchor-','WebURLService','editingUnit','_sendingTimer','_session','InsertRowCommandId','OffLineSingle','Rect','indexOf','width','_getAnchorBounding','_sheetTransformSelectionsService','_getSendChangesetTimeout','_startCollaboration','DeleteRangeMoveUpCommandId','COLORS','[CollaborationSessionService]:\x20socket\x20error','submit\x20changeset\x20error!','\x0aAfter:\x20','params','getSelections','CollaborationSessionService','appendMutation','SessionStatus','transformRemoteChangeset','CollaborationClientPlugin','serializeTextRange','_substituteRedoStack','RemoveColCommandId','loadOfflineData','_renderManagerService','_getSheetObject','_timeoutTimer','changesets','useRef','Local\x20file','_cursorInfo$','extend','_color','1922412zxeJbc','getTime','_handleHover','react','@univerjs/engine-formula','MoveRangeCommandId','svg','delay','socket\x20close','name','_retryCount','[CollaborationEntity]:\x20cannot\x20apply\x20missing\x20results\x20on\x20other\x20states!','getRangePointData','HEADER_MENU','_online','CHANGESET_REJ','toStringTag','idSuffix','moveTo','_getUndoStack','[OfflineState]:\x20received\x20acknowledgement.','leaveEvent','_initStatusListener','collaMsg','sheetID','_roomMembers','getCollabCursors$','call','@univerjs-pro/collaboration','_handleJoinEvent','univer-online-status-icon','_removeRoom','RefRangeService','CollaborationStatus','dispose','LIVESHARE_FETCH_OPERATIONS','send','activeSheet$','updateOfflineData','endColumn','hovered','getTypeOfUnitAdded$','1754sLVmor','handleDeleteRangeMoveLeft','_uiPartsService','onPointerMoveObserver','_getCurrentRevision','collabStatus.conflict','Collaboration\x20Conflict','_draw','_handleLeaveEvent','xlink:href','_clearLocalCache','[CollaborationUndoRedoService]','asObservable','_onConnectionFailed','state','onPointerLeaveObserver','find','UNIVER_DOC','UNKNOWN_CMD','SetTextSelectionsOperation','revision','forwardRef','_docSyncEditingCollabCursorService','isTransformChangesetsSuccess','Ready','removeParam','_compressMutationService','getSheetBySheetId','_onRefRangeChange','icon','current','Unknown\x20user','[SyncedState]:\x20received\x20rejection.','_syncEditingCollabCursor','_sendHeartbeat','translate(.97)','m1Prime','SYNCED','handleInsertCol','_http','_acknowledgedAwaitingChangeset','ranges','_joinRoom','_clearScheduledTask','This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!','replaceState','displayName','delete','csRejEvent','black','_exhaustSavingTask','none','_onMessage','_collabCursorState$','你在另一个标签页打开了同一个文件。为了避免数据丢失,这个标签页的编辑行为将会被限制。','currentSkeleton$','NO_OTHER_CLIENTS_EDITING','_clearTimeoutTimer','searchParams','disableLocalCache','_entities','pushState','_collaborationController','SelectionManagerService','协同房间已满,你的编辑将在本地保存','_removeCollabCursors','ISnapshotServerService','_initModules','message$','toString','conflict','_scheduleCollaborationTimeoutTimer','IURLService','cmd','fetching\x20the\x20latest\x20document\x20from\x20the\x20server.','enableSingleActiveInstanceLock','collaboration.single-unit.warning','max','fillRule','socket\x20open.','_send','roomMembers$','apply','_snapshotServerService','_getMergeRange','saveSheetBlock','IMEInputManagerService','_createInitialState','_status$','_sessions','handleMoveRange','onSendChangeset','getCurrentUser','LIVESHARE_OPERATION','add','_snapshotService','FAIL','M0\x200H16V16H0z','IMessageService','_revisionService','fetch_missing','onSyncEditingCollabCursor','_submitChangeset','arc','OnLineSingle','_collabCursorController','transformStack\x20failed!','handleInsertRangeMoveDown','getCollabEntity$','open$','handleIRemoveCol','/fetchmissing?from=','_hideTimer','_socket','CHANGESET_ACK','Shape','_applyRemoteChangeset','socketService','_docTransformIMECacheService','_saveTaskMap','UNRECOGNIZED','drawWith','_univerPermissionService','_sheetSkeletonManagerService','routeKey','reverse'];_0x35f8=function(){return _0x5da20e;};return _0x35f8();}var Vs=(_0x140d6f,_0x1e5b5e,_0x17984e,_0xe32cfc)=>{const _0x2f3f26=_0x147aa9;for(var _0x7af970=_0x1e5b5e,_0x1d26dc=_0x140d6f[_0x2f3f26(0x3f5)]-0x1,_0x2e7fb4;_0x1d26dc>=0x0;_0x1d26dc--)(_0x2e7fb4=_0x140d6f[_0x1d26dc])&&(_0x7af970=_0x2e7fb4(_0x7af970)||_0x7af970);return _0x7af970;},re=(_0x4627e2,_0x4a56c)=>(_0x178c14,_0x1d1851)=>_0x4a56c(_0x178c14,_0x1d1851,_0x4627e2);let ge=class extends a[_0x147aa9(0x169)]{constructor(_0x322962,_0x8dc3e3,_0x4aab0a,_0x5d5573,_0x1e2e92){const _0x6726d=_0x147aa9;super(),d(this,_0x6726d(0x251),[]),(this[_0x6726d(0x3cc)]=_0x322962,this['_univerInstanceService']=_0x8dc3e3,this[_0x6726d(0x330)]=_0x4aab0a,this['_docSkeletonManagerService']=_0x5d5573,this[_0x6726d(0x245)]=_0x1e2e92,this[_0x6726d(0x41a)]());}['_init'](){const _0x12675d=_0x147aa9;this['_docSkeletonManagerService']['currentSkeleton$'][_0x12675d(0x2e4)](T['takeUntil'](this['dispose$']),T[_0x12675d(0x418)](_0x2a17af=>{const _0x4b5d46=_0x12675d;if(_0x2a17af){const {unitId:_0x69514a}=_0x2a17af;return v[_0x4b5d46(0x3f7)](this[_0x4b5d46(0x3cc)][_0x4b5d46(0x353)](_0x69514a),this['_themeService'][_0x4b5d46(0x2da)])[_0x4b5d46(0x2e4)](T[_0x4b5d46(0x26d)](([_0x9123e6,_0x14a498])=>({'skeleton':_0x2a17af,'cursors':[..._0x9123e6['values']()][_0x4b5d46(0x403)](_0x1b39c7=>({..._0x1b39c7,'color':_0x14a498[_0x1b39c7['color']]}))})));}return v['of']({'skeleton':null,'cursors':[]});}))[_0x12675d(0x2d2)](({skeleton:_0x12ffb1,cursors:_0x4ebd10})=>{const _0x3b2cd5=_0x12675d;this[_0x3b2cd5(0x3a4)](),_0x12ffb1&&this[_0x3b2cd5(0x2f3)](_0x12ffb1[_0x3b2cd5(0x4a8)],_0x4ebd10);});}[_0x147aa9(0x2f3)](_0x312492,_0xd715a5){const _0x476bd4=_0x147aa9,_0x3853ea=this['_getDocObject']();if(_0x3853ea==null)return;const {scene:_0x167c0b,document:_0x21c7ad}=_0x3853ea,_0x3df628=_0xd715a5[_0x476bd4(0x26d)](_0x54754e=>new Ws(_0x54754e,_0x167c0b,_0x312492,_0x21c7ad));this['_cursors']=_0x3df628;}[_0x147aa9(0x3a4)](){const _0x1bab2f=_0x147aa9;this[_0x1bab2f(0x251)][_0x1bab2f(0x1f0)](_0x444a2e=>_0x444a2e['dispose']()),this[_0x1bab2f(0x251)]=[];}[_0x147aa9(0x1af)](){const _0x4364f1=_0x147aa9;return U['getDocObject'](this['_univerInstanceService'],this[_0x4364f1(0x330)]);}};ge=Vs([a[_0x147aa9(0x4b5)](a[_0x147aa9(0x28e)][_0x147aa9(0x48b)],ge),re(0x0,h['Inject'](J)),re(0x1,a[_0x147aa9(0x25d)]),re(0x2,R[_0x147aa9(0x1d2)]),re(0x3,h[_0x147aa9(0x23d)](U[_0x147aa9(0x432)])),re(0x4,h[_0x147aa9(0x23d)](a[_0x147aa9(0x437)]))],ge);var Gs=(_0x4f56a9,_0x3e6ef6,_0x4bd060,_0x79e924)=>{const _0x5a3831=_0x147aa9;for(var _0x3a1101=_0x3e6ef6,_0x37fc70=_0x4f56a9[_0x5a3831(0x3f5)]-0x1,_0x293f16;_0x37fc70>=0x0;_0x37fc70--)(_0x293f16=_0x4f56a9[_0x37fc70])&&(_0x3a1101=_0x293f16(_0x3a1101)||_0x3a1101);return _0x3a1101;},Me=(_0x5a8716,_0x3b89a2)=>(_0x1b7938,_0x2f1e1e)=>_0x3b89a2(_0x1b7938,_0x2f1e1e,_0x5a8716);const bt=_0x147aa9(0x457),Ys=_0x147aa9(0x1e0);let Ie=class{constructor(_0x89df00,_0x3ba93d,_0x3c7726){const _0x4397fb=_0x147aa9;this[_0x4397fb(0x266)]=_0x89df00,this['_httpService']=_0x3ba93d,this[_0x4397fb(0x2be)]=_0x3c7726,this[_0x4397fb(0x24e)]();}[_0x147aa9(0x24e)](){const _0x55764a=_0x147aa9;this['_httpService'][_0x55764a(0x278)]({'priority':0x1,'interceptor':(_0x304ca5,_0x47f93b)=>_0x47f93b(_0x304ca5)[_0x55764a(0x2e4)](v[_0x55764a(0x471)](async _0xa4cab4=>{const _0x4a84c5=_0x55764a;if(_0xa4cab4[_0x4a84c5(0x27f)]===0x191&&window[_0x4a84c5(0x1c6)](this[_0x4a84c5(0x2be)]['t'](_0x4a84c5(0x2c1)))){const _0x455d71=window[_0x4a84c5(0x264)](window['location'][_0x4a84c5(0x47b)]);window[_0x4a84c5(0x201)][_0x4a84c5(0x47b)]=this[_0x4a84c5(0x468)]()+_0x4a84c5(0x185)+_0x455d71;}return _0xa4cab4;}))});}[_0x147aa9(0x468)](){const _0xdfd46a=_0x147aa9;var _0x37f40c;return(_0x37f40c=this[_0xdfd46a(0x266)][_0xdfd46a(0x262)](bt))!=null?_0x37f40c:Ys;}};Ie=Gs([Me(0x0,a[_0x147aa9(0x1d5)]),Me(0x1,h[_0x147aa9(0x23d)](A[_0x147aa9(0x40b)])),Me(0x2,h[_0x147aa9(0x23d)](a[_0x147aa9(0x2fc)]))],Ie);var Ks=(_0x40eadc,_0x51685e,_0x1ce0e9,_0x501fb8)=>{for(var _0x46c2c2=_0x51685e,_0x51dbdd=_0x40eadc['length']-0x1,_0x517f32;_0x51dbdd>=0x0;_0x51dbdd--)(_0x517f32=_0x40eadc[_0x51dbdd])&&(_0x46c2c2=_0x517f32(_0x46c2c2)||_0x46c2c2);return _0x46c2c2;},st=(_0x388422,_0xf1a7aa)=>(_0x47d0c5,_0x5eea95)=>_0xf1a7aa(_0x47d0c5,_0x5eea95,_0x388422);const qs=_0x147aa9(0x3ef);var we;exports[_0x147aa9(0x32b)]=(we=class extends a['Plugin']{constructor(_0x38895a,_0x265122,_0x525917){const _0x11c73e=_0x147aa9;super(),this[_0x11c73e(0x477)]=_0x38895a,this[_0x11c73e(0x17d)]=_0x265122,this[_0x11c73e(0x1d9)]=_0x525917,this['_localeService'][_0x11c73e(0x46e)]({'zhCN':Ct});}[_0x147aa9(0x222)](_0x3e5026){const _0xfe5f8a=_0x147aa9;var _0x37fdee,_0x4d92c4,_0x5a989f,_0x3a57fa,_0x12ccbd;_0x3e5026[_0xfe5f8a(0x47d)]([a[_0xfe5f8a(0x44a)],{'useClass':$e}]);let _0x2ad1ca=[[exports['CollaborationSessionService']],[Fe],[A[_0xfe5f8a(0x40b)]],[Ve,{'useClass':Et}],[V],[exports[_0xfe5f8a(0x2b0)]],[A['WebSocketService']],[fe],[ve],[Se],[Be],[Ie],[xe,{'useClass':(_0x4d92c4=(_0x37fdee=this[_0xfe5f8a(0x477)])==null?void 0x0:_0x37fdee[_0xfe5f8a(0x3d8)])!=null?_0x4d92c4:exports[_0xfe5f8a(0x2b3)]}],[A[_0xfe5f8a(0x267)],{'useClass':A[_0xfe5f8a(0x26f)]}],[a['ISnapshotServerService'],{'useClass':ke}],[exports[_0xfe5f8a(0x2d0)]],[exports[_0xfe5f8a(0x1d1)]],[exports[_0xfe5f8a(0x2df)]],[de],[J]];(_0x5a989f=this[_0xfe5f8a(0x477)])!=null&&_0x5a989f[_0xfe5f8a(0x3ae)]&&_0x2ad1ca['push']([Ce,{'useClass':Kt}]),((_0x3a57fa=this[_0xfe5f8a(0x477)])==null?void 0x0:_0x3a57fa[_0xfe5f8a(0x48c)])==null||this[_0xfe5f8a(0x477)][_0xfe5f8a(0x48c)]['includes'](a[_0xfe5f8a(0x223)][_0xfe5f8a(0x2af)])?_0x2ad1ca[_0xfe5f8a(0x4ad)]([_e]):this[_0xfe5f8a(0x477)][_0xfe5f8a(0x48c)][_0xfe5f8a(0x22c)](a[_0xfe5f8a(0x223)][_0xfe5f8a(0x374)])&&_0x2ad1ca['push']([ge]),_0x2ad1ca=a['mergeOverrideWithDependencies'](_0x2ad1ca,(_0x12ccbd=this[_0xfe5f8a(0x477)])==null?void 0x0:_0x12ccbd['override']),_0x2ad1ca[_0xfe5f8a(0x1f0)](_0x43a4f3=>_0x3e5026[_0xfe5f8a(0x3c1)](_0x43a4f3)),_0x3e5026[_0xfe5f8a(0x1f9)](A[_0xfe5f8a(0x40b)])[_0xfe5f8a(0x278)]({'priority':0x14,'interceptor':_0x3e5026[_0xfe5f8a(0x1fb)](A[_0xfe5f8a(0x3ee)],{'maxParallel':0x6})}),this[_0xfe5f8a(0x3a6)]();}[_0x147aa9(0x3a6)](){const _0x583b64=_0x147aa9;var _0x5f52e9,_0x1fb0b4;(_0x5f52e9=this[_0x583b64(0x477)])!=null&&_0x5f52e9[_0x583b64(0x269)]||this['_injector'][_0x583b64(0x1f9)](exports[_0x583b64(0x2b0)])['disableLocalCache'](),(_0x1fb0b4=this[_0x583b64(0x477)])!=null&&_0x1fb0b4[_0x583b64(0x20b)]&&this[_0x583b64(0x17d)][_0x583b64(0x1f9)](Ie);}},d(we,_0x147aa9(0x244),qs),we),exports[_0x147aa9(0x32b)]=Ks([st(0x1,h[_0x147aa9(0x23d)](h[_0x147aa9(0x461)])),st(0x2,h[_0x147aa9(0x23d)](a[_0x147aa9(0x2fc)]))],exports[_0x147aa9(0x32b)]);const Xs={'collabStatus':{'fetchMiss':'Syncing\x20server\x20data...','conflict':'Edit\x20conflicts','notCollab':_0x147aa9(0x335),'synced':_0x147aa9(0x49f),'syncing':'Syncing...','offline':_0x147aa9(0x2ca)},'session':{'connection-failed':_0x147aa9(0x304),'will-retry':'Connection\x20failed,\x20we\x20retry\x20in\x20a\x20while.','room-full':_0x147aa9(0x481),'collaboration-timeout':_0x147aa9(0x2ef)},'conflict':{'title':_0x147aa9(0x369),'content':_0x147aa9(0x1f3)},'collaboration':{'single-unit':{'warning':_0x147aa9(0x1a8)}},'auth':{'needGotoLoginAlert':_0x147aa9(0x2a8)}},Js=Xs;exports['COLLAB_SUBMIT_CHANGESET_URL_KEY']=ot,exports[_0x147aa9(0x272)]=ct,exports[_0x147aa9(0x35a)]=D,exports[_0x147aa9(0x1b9)]=It,exports[_0x147aa9(0x41c)]=lt,exports[_0x147aa9(0x2a2)]=He,exports[_0x147aa9(0x23c)]=xe,exports[_0x147aa9(0x3ab)]=Ve,exports[_0x147aa9(0x4b7)]=ut,exports[_0x147aa9(0x457)]=bt,exports[_0x147aa9(0x1a0)]=gt,exports[_0x147aa9(0x2fa)]=pt,exports[_0x147aa9(0x329)]=W,exports[_0x147aa9(0x313)]=Et,exports['deserializeToCombResponse']=nt,exports[_0x147aa9(0x4b0)]=Js,exports[_0x147aa9(0x2f2)]=rt,exports['zhCN']=Ct;
|
1
|
+
'use strict';const _0x1e47ba=_0x55a2;(function(_0x18e67f,_0x3e9248){const _0x1ee9ff=_0x55a2,_0x11d6ab=_0x18e67f();while(!![]){try{const _0x161524=parseInt(_0x1ee9ff(0x28a))/0x1+parseInt(_0x1ee9ff(0x35f))/0x2+-parseInt(_0x1ee9ff(0x147))/0x3+-parseInt(_0x1ee9ff(0x442))/0x4*(-parseInt(_0x1ee9ff(0x12d))/0x5)+parseInt(_0x1ee9ff(0x16b))/0x6+parseInt(_0x1ee9ff(0x47c))/0x7+-parseInt(_0x1ee9ff(0x267))/0x8*(parseInt(_0x1ee9ff(0x29e))/0x9);if(_0x161524===_0x3e9248)break;else _0x11d6ab['push'](_0x11d6ab['shift']());}catch(_0x20d5e0){_0x11d6ab['push'](_0x11d6ab['shift']());}}}(_0x32f0,0x89eaa));var wt=Object[_0x1e47ba(0x428)],Ut=(_0x2641ea,_0x552391,_0x22a720)=>_0x552391 in _0x2641ea?wt(_0x2641ea,_0x552391,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x22a720}):_0x2641ea[_0x552391]=_0x22a720,d=(_0x36b062,_0x5041da,_0x1e1dc8)=>(Ut(_0x36b062,typeof _0x5041da!=_0x1e47ba(0x18a)?_0x5041da+'':_0x5041da,_0x1e1dc8),_0x1e1dc8);Object[_0x1e47ba(0x428)](exports,Symbol['toStringTag'],{'value':_0x1e47ba(0x1e3)});const a=require(_0x1e47ba(0x2f5)),E=require('@univerjs/sheets'),ce=require(_0x1e47ba(0x28f)),U=require(_0x1e47ba(0x17d)),u=require(_0x1e47ba(0x3cb)),h=require(_0x1e47ba(0x2d7)),v=require('rxjs'),T=require(_0x1e47ba(0x2eb)),w=require(_0x1e47ba(0x1fe)),M=require(_0x1e47ba(0x3ef)),P=require(_0x1e47ba(0x45b)),Ke=require(_0x1e47ba(0x168)),He=require(_0x1e47ba(0x236)),R=require(_0x1e47ba(0x26f)),ae=require(_0x1e47ba(0x156)),at=require('@wendellhu/redi/react-bindings'),L=require('react'),Pt=require(_0x1e47ba(0x438)),kt=require(_0x1e47ba(0x218));var ct=(_0x5748a0=>(_0x5748a0[_0x5748a0[_0x1e47ba(0x2ea)]=0x0]=_0x1e47ba(0x2ea),_0x5748a0[_0x5748a0['OK']=0x1]='OK',_0x5748a0[_0x5748a0[_0x1e47ba(0x1c6)]=0x2]=_0x1e47ba(0x1c6),_0x5748a0[_0x5748a0['PERMISSION_DENIED']=0x3]=_0x1e47ba(0x351),_0x5748a0[_0x5748a0[_0x1e47ba(0x295)]=0x4]=_0x1e47ba(0x295),_0x5748a0[_0x5748a0['UNAUTHENTICATED']=0x5]='UNAUTHENTICATED',_0x5748a0[_0x5748a0[_0x1e47ba(0x1ca)]=0x6]='ALREADY_EXISTS',_0x5748a0[_0x5748a0[_0x1e47ba(0x3fc)]=0x7]=_0x1e47ba(0x3fc),_0x5748a0[_0x5748a0[_0x1e47ba(0x3d5)]=0x8]=_0x1e47ba(0x3d5),_0x5748a0[_0x5748a0[_0x1e47ba(0x3b7)]=0x1389]=_0x1e47ba(0x3b7),_0x5748a0[_0x5748a0[_0x1e47ba(0x314)]=0x1771]=_0x1e47ba(0x314),_0x5748a0[_0x5748a0[_0x1e47ba(0x201)]=0x1b59]=_0x1e47ba(0x201),_0x5748a0[_0x5748a0['APPLY_NON_SEQUENTIAL_REVISION']=0x1b5a]=_0x1e47ba(0x323),_0x5748a0[_0x5748a0[_0x1e47ba(0x2e3)]=0x1b5b]=_0x1e47ba(0x2e3),_0x5748a0[_0x5748a0[_0x1e47ba(0x3d4)]=0x1b5c]=_0x1e47ba(0x3d4),_0x5748a0[_0x5748a0[_0x1e47ba(0x278)]=0x1f41]='CONNECTOR_DATA_TOO_LARGE',_0x5748a0[_0x5748a0[_0x1e47ba(0x2b7)]=0x2329]='LICENSE_MAX_UNITS_EXCEEDED',_0x5748a0[_0x5748a0['LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED']=0x232a]=_0x1e47ba(0x3e0),_0x5748a0[_0x5748a0[_0x1e47ba(0x42a)]=0x232b]=_0x1e47ba(0x42a),_0x5748a0[_0x5748a0[_0x1e47ba(0x379)]=0x232c]=_0x1e47ba(0x379),_0x5748a0[_0x5748a0['LICENSE_DISTRO_REJECTED']=0x232d]=_0x1e47ba(0x2b0),_0x5748a0[_0x5748a0[_0x1e47ba(0x217)]=-0x1]=_0x1e47ba(0x217),_0x5748a0))(ct||{}),k=(_0x48285a=>(_0x48285a[_0x48285a[_0x1e47ba(0x2f3)]=0x0]='UNIVER_UNKNOWN',_0x48285a[_0x48285a[_0x1e47ba(0x48c)]=0x1]=_0x1e47ba(0x48c),_0x48285a[_0x48285a[_0x1e47ba(0x342)]=0x2]=_0x1e47ba(0x342),_0x48285a[_0x48285a[_0x1e47ba(0x19d)]=0x3]='UNIVER_SLIDE',_0x48285a[_0x48285a[_0x1e47ba(0x217)]=-0x1]=_0x1e47ba(0x217),_0x48285a))(k||{}),b=(_0x56ec28=>(_0x56ec28[_0x56ec28[_0x1e47ba(0x2be)]=0x0]=_0x1e47ba(0x2be),_0x56ec28[_0x56ec28['HELLO']=0x1]=_0x1e47ba(0x3a0),_0x56ec28[_0x56ec28[_0x1e47ba(0x368)]=0x2]=_0x1e47ba(0x368),_0x56ec28[_0x56ec28[_0x1e47ba(0x226)]=0x3]=_0x1e47ba(0x226),_0x56ec28[_0x56ec28[_0x1e47ba(0x12b)]=0x4]=_0x1e47ba(0x12b),_0x56ec28[_0x56ec28[_0x1e47ba(0x44d)]=0x5]='HEARTBEAT',_0x56ec28[_0x56ec28[_0x1e47ba(0x24e)]=0x6]=_0x1e47ba(0x24e),_0x56ec28[_0x56ec28['UNRECOGNIZED']=-0x1]='UNRECOGNIZED',_0x56ec28))(b||{}),xe=(_0x3d7990=>(_0x3d7990[_0x3d7990['UNKNOWN_CODE']=0x0]=_0x1e47ba(0x431),_0x3d7990[_0x3d7990['OK']=0x1]='OK',_0x3d7990[_0x3d7990[_0x1e47ba(0x244)]=0x2]=_0x1e47ba(0x244),_0x3d7990[_0x3d7990['UNRECOGNIZED']=-0x1]='UNRECOGNIZED',_0x3d7990))(xe||{}),jt=(_0x49b995,_0x47f8bb,_0x47f43f,_0x2dd794)=>{const _0x4f7b1b=_0x1e47ba;for(var _0x25f1d6=_0x47f8bb,_0x2a1cf1=_0x49b995[_0x4f7b1b(0x3fb)]-0x1,_0x1e1ba6;_0x2a1cf1>=0x0;_0x2a1cf1--)(_0x1e1ba6=_0x49b995[_0x2a1cf1])&&(_0x25f1d6=_0x1e1ba6(_0x25f1d6)||_0x25f1d6);return _0x25f1d6;},$t=(_0x1eed42,_0x5e4903)=>(_0x3c145d,_0x3b7969)=>_0x5e4903(_0x3c145d,_0x3b7969,_0x1eed42);let G=class extends a[_0x1e47ba(0x152)]{constructor(_0x72d278){const _0x5a26c9=_0x1e47ba;super(),d(this,_0x5a26c9(0xfe),new Map()),d(this,_0x5a26c9(0x2ae),null),(this[_0x5a26c9(0x464)]=_0x72d278,this['disposeWithMe'](a[_0x5a26c9(0x251)](v[_0x5a26c9(0x19a)](this[_0x5a26c9(0x464)]['getTypeOfUnitDisposed$'](a[_0x5a26c9(0x12f)][_0x5a26c9(0x342)])['pipe'](T[_0x5a26c9(0x290)](_0x55c194=>_0x55c194[_0x5a26c9(0x231)]())),this[_0x5a26c9(0x464)][_0x5a26c9(0x27d)](a[_0x5a26c9(0x12f)]['UNIVER_DOC'])[_0x5a26c9(0x1cb)](T[_0x5a26c9(0x290)](_0x19aa5b=>_0x19aa5b[_0x5a26c9(0x231)]())),this[_0x5a26c9(0x464)][_0x5a26c9(0x27d)](a[_0x5a26c9(0x12f)][_0x5a26c9(0x19d)])['pipe'](T[_0x5a26c9(0x290)](_0x232719=>_0x232719[_0x5a26c9(0x231)]())))[_0x5a26c9(0x319)](_0x47959c=>this[_0x5a26c9(0x2c2)](_0x47959c)))));}[_0x1e47ba(0xf2)](_0x19bbc3){const _0x2d3125=_0x1e47ba;this[_0x2d3125(0x2ae)]=_0x19bbc3;}['getCurrentUser'](){return this['_currentUser'];}['updateMember'](_0x34cbb4,_0x4ef5e3){const _0x5f3a90=_0x1e47ba;let _0x164ecd=this[_0x5f3a90(0xfe)][_0x5f3a90(0x367)](_0x34cbb4);_0x164ecd||(_0x164ecd=new Ht(),this[_0x5f3a90(0xfe)][_0x5f3a90(0x204)](_0x34cbb4,_0x164ecd)),_0x164ecd[_0x5f3a90(0x3c6)](_0x4ef5e3);}[_0x1e47ba(0x1ea)](_0x292faa,_0x20033b){const _0x5bba08=_0x1e47ba,_0x3902ce=this['_roomMembers'][_0x5bba08(0x367)](_0x292faa);_0x3902ce&&_0x3902ce[_0x5bba08(0x1ea)](_0x20033b);}['getRoom'](_0x525e6c){const _0x4a7688=_0x1e47ba;return this[_0x4a7688(0xfe)][_0x4a7688(0x367)](_0x525e6c);}[_0x1e47ba(0x3d3)](_0x253f1d,_0x3499c2){const _0x59ac98=_0x1e47ba,_0x211088=this[_0x59ac98(0xfe)][_0x59ac98(0x367)](_0x253f1d);if(_0x211088)return _0x211088[_0x59ac98(0x3d3)](_0x3499c2);}[_0x1e47ba(0x2c2)](_0x182451){const _0x32eebf=_0x1e47ba,_0x11a44b=this[_0x32eebf(0xfe)][_0x32eebf(0x367)](_0x182451);_0x11a44b&&(_0x11a44b[_0x32eebf(0x36c)](),this[_0x32eebf(0xfe)]['delete'](_0x182451));}['dispose'](){const _0x2a0280=_0x1e47ba;this[_0x2a0280(0xfe)][_0x2a0280(0x1e6)](_0x3f3e12=>_0x3f3e12['dispose']()),this[_0x2a0280(0xfe)][_0x2a0280(0x465)]();}};G=jt([$t(0x0,a[_0x1e47ba(0x118)])],G);class Ht extends a[_0x1e47ba(0x152)]{constructor(){const _0x3d54f1=_0x1e47ba;super(...arguments),d(this,_0x3d54f1(0x29c),new Map());}[_0x1e47ba(0x36c)](){const _0x55b28e=_0x1e47ba;this[_0x55b28e(0x29c)]['clear']();}[_0x1e47ba(0x3c6)](_0x4b8ee7){const _0x3d414c=_0x1e47ba;this[_0x3d414c(0x29c)][_0x3d414c(0x204)](_0x4b8ee7[_0x3d414c(0x48d)],_0x4b8ee7);}[_0x1e47ba(0x1ea)](_0x5d6fc0){this['_members']['delete'](_0x5d6fc0);}[_0x1e47ba(0x3d3)](_0xaafd8e){const _0x4f54bb=_0x1e47ba;return this[_0x4f54bb(0x29c)][_0x4f54bb(0x367)](_0xaafd8e);}}function lt(_0x14177d){const _0x26581f=_0x1e47ba;var _0x25bb20,_0x19c820,_0x5bbc11,_0x5c4f16;const _0x367890=_0x14177d[_0x26581f(0x1b7)],_0x5d2cc0=JSON[_0x26581f(0x337)](_0x367890);switch(_0x5d2cc0[_0x26581f(0x39d)]){case b[_0x26581f(0x44d)]:case b[_0x26581f(0x3a0)]:{const _0x4ac599=_0x5d2cc0[_0x26581f(0x1dd)];return{..._0x5d2cc0,'data':_0x4ac599,'cmd':_0x5d2cc0[_0x26581f(0x39d)]};}case b[_0x26581f(0x368)]:{const _0x4b35e9=_0x5d2cc0[_0x26581f(0x2cc)];return{..._0x5d2cc0,'data':_0x4b35e9,'cmd':_0x5d2cc0['cmd']};}case b[_0x26581f(0x24e)]:{const _0x2f2f14=_0x5d2cc0[_0x26581f(0x270)];switch(_0x2f2f14[_0x26581f(0x2a0)]){case u['CollaborationEvent'][_0x26581f(0x3f1)]:return{..._0x5d2cc0,'data':{..._0x2f2f14,'data':(_0x25bb20=_0x2f2f14[_0x26581f(0x1db)])==null?void 0x0:_0x25bb20['cs']},'cmd':_0x5d2cc0['cmd']};case u['CollaborationEvent'][_0x26581f(0x11f)]:return{..._0x5d2cc0,'data':{..._0x2f2f14,'data':(_0x19c820=_0x2f2f14[_0x26581f(0x260)])==null?void 0x0:_0x19c820['cs']},'cmd':_0x5d2cc0[_0x26581f(0x39d)]};case u[_0x26581f(0x27c)][_0x26581f(0x45f)]:return{..._0x5d2cc0,'data':{..._0x2f2f14,'data':(_0x5bbc11=_0x2f2f14[_0x26581f(0x26b)])==null?void 0x0:_0x5bbc11['cs']},'cmd':_0x5d2cc0['cmd']};case u[_0x26581f(0x27c)][_0x26581f(0x466)]:return{..._0x5d2cc0,'data':{..._0x2f2f14,'data':(_0x5c4f16=_0x2f2f14[_0x26581f(0x21e)])==null?void 0x0:_0x5c4f16['cs']},'cmd':_0x5d2cc0[_0x26581f(0x39d)]};case u[_0x26581f(0x27c)][_0x26581f(0x1c4)]:return{..._0x5d2cc0,'data':{..._0x2f2f14,'data':_0x2f2f14[_0x26581f(0x394)]},'cmd':_0x5d2cc0[_0x26581f(0x39d)]};case u[_0x26581f(0x27c)]['USERS_ENTER']:return{..._0x5d2cc0,'data':{..._0x2f2f14,'data':_0x2f2f14[_0x26581f(0x44a)]},'cmd':_0x5d2cc0[_0x26581f(0x39d)]};case u[_0x26581f(0x27c)][_0x26581f(0x1af)]:return{..._0x5d2cc0,'data':{..._0x2f2f14,'data':_0x2f2f14[_0x26581f(0x245)]},'cmd':_0x5d2cc0[_0x26581f(0x39d)]};case u[_0x26581f(0x27c)][_0x26581f(0x157)]:return{..._0x5d2cc0,'data':{..._0x2f2f14,'data':_0x2f2f14[_0x26581f(0x3a9)]},'cmd':_0x5d2cc0[_0x26581f(0x39d)]};case u['CollaborationEvent'][_0x26581f(0x221)]:case u[_0x26581f(0x27c)]['LIVESHARE_OPERATION']:return{..._0x5d2cc0,'data':{..._0x2f2f14,'data':_0x2f2f14[_0x26581f(0x3c1)]},'cmd':_0x5d2cc0[_0x26581f(0x39d)]};case u[_0x26581f(0x27c)][_0x26581f(0x469)]:return{..._0x5d2cc0,'data':{..._0x2f2f14,'data':_0x2f2f14[_0x26581f(0x3a9)]},'cmd':_0x5d2cc0['cmd']};case u[_0x26581f(0x27c)]['MSG_FOR_ERROR']:return{..._0x5d2cc0,'data':_0x2f2f14,'cmd':_0x5d2cc0[_0x26581f(0x39d)]};default:return _0x5d2cc0;}}default:return _0x5d2cc0;}}function ht(_0x1eb2c1){const _0x169be9=_0x1e47ba;switch(_0x1eb2c1['cmd']){case b[_0x169be9(0x44d)]:case b['HELLO']:return JSON[_0x169be9(0x3f6)]({'cmd':_0x1eb2c1[_0x169be9(0x39d)],'routeKey':_0x1eb2c1['routeKey']});case b[_0x169be9(0x12b)]:{let _0x168010;switch(_0x1eb2c1[_0x169be9(0x1b7)]['eventID']){case u[_0x169be9(0x27c)][_0x169be9(0x1c4)]:{_0x168010={'eventID':u[_0x169be9(0x27c)][_0x169be9(0x1c4)],'updateCursorEvent':_0x1eb2c1[_0x169be9(0x1b7)][_0x169be9(0x1b7)]};break;}case u[_0x169be9(0x27c)][_0x169be9(0x1af)]:{_0x168010={'eventID':u[_0x169be9(0x27c)]['USERS_LEAVE'],'leaveEvent':_0x1eb2c1[_0x169be9(0x1b7)][_0x169be9(0x1b7)]};break;}case u[_0x169be9(0x27c)][_0x169be9(0x3e9)]:{_0x168010={'eventID':u[_0x169be9(0x27c)][_0x169be9(0x3e9)],'joinEvent':_0x1eb2c1[_0x169be9(0x1b7)][_0x169be9(0x1b7)]};break;}case u[_0x169be9(0x27c)][_0x169be9(0x157)]:{_0x168010={'eventID':u[_0x169be9(0x27c)][_0x169be9(0x157)],'liveShareNewHost':_0x1eb2c1['data'][_0x169be9(0x1b7)]};break;}case u[_0x169be9(0x27c)]['LIVESHARE_OPERATION']:{_0x168010={'eventID':u[_0x169be9(0x27c)]['LIVESHARE_OPERATION'],'liveShareOperation':_0x1eb2c1[_0x169be9(0x1b7)]['data']};break;}case u[_0x169be9(0x27c)][_0x169be9(0x469)]:{_0x168010={'eventID':u['CollaborationEvent'][_0x169be9(0x469)],'liveShareTerminate':_0x1eb2c1[_0x169be9(0x1b7)]['data']};break;}case u[_0x169be9(0x27c)][_0x169be9(0x172)]:{_0x168010={'eventID':u['CollaborationEvent'][_0x169be9(0x172)],'liveShareRequestHost':_0x1eb2c1[_0x169be9(0x1b7)][_0x169be9(0x1b7)]};break;}case u[_0x169be9(0x27c)]['LIVESHARE_FETCH_OPERATIONS']:{_0x168010={'eventID':u['CollaborationEvent'][_0x169be9(0x221)]};break;}default:_0x168010={'eventID':_0x1eb2c1[_0x169be9(0x1b7)][_0x169be9(0x2a0)]};}return JSON['stringify']({'cmd':_0x1eb2c1[_0x169be9(0x39d)],'routeKey':_0x1eb2c1[_0x169be9(0x402)],'collaMsg':_0x168010});}case b[_0x169be9(0x368)]:return JSON[_0x169be9(0x3f6)]({'cmd':_0x1eb2c1[_0x169be9(0x39d)],'routeKey':_0x1eb2c1[_0x169be9(0x402)],'joinReq':_0x1eb2c1[_0x169be9(0x1b7)]});case b[_0x169be9(0x226)]:return JSON[_0x169be9(0x3f6)]({'cmd':_0x1eb2c1[_0x169be9(0x39d)],'routeKey':_0x1eb2c1['routeKey'],'leaveReq':_0x1eb2c1[_0x169be9(0x1b7)]});default:throw new Error('[serializeCombRequest]:\x20should\x20not\x20fall\x20into\x20default\x20branch!');}}var xt=(_0x3c1f62,_0xe91434,_0x4ca699,_0x41d304)=>{const _0x29baf6=_0x1e47ba;for(var _0x3b26e6=_0xe91434,_0x6940a9=_0x3c1f62[_0x29baf6(0x3fb)]-0x1,_0x3f03ab;_0x6940a9>=0x0;_0x6940a9--)(_0x3f03ab=_0x3c1f62[_0x6940a9])&&(_0x3b26e6=_0x3f03ab(_0x3b26e6)||_0x3b26e6);return _0x3b26e6;},te=(_0x22686c,_0x11cef9)=>(_0x4043e5,_0x541856)=>_0x11cef9(_0x4043e5,_0x541856,_0x22686c);const Be=h[_0x1e47ba(0x227)]('univer-pro.collaboration-client-socket-service'),_t='COLLAB_SUBMIT_CHANGESET_URL',Bt=_0x1e47ba(0x1ba);function Ft(_0x4b209c,_0x266526,_0x35dd91){const _0x547e0f=_0x1e47ba;return _0x4b209c+'/'+_0x266526+_0x547e0f(0x2fa)+_0x35dd91+_0x547e0f(0x335);}exports[_0x1e47ba(0x10d)]=class{constructor(_0x5b6990,_0x1dcd0e,_0x4a1b20,_0x521c85,_0x5f0090){const _0x184dd3=_0x1e47ba;this[_0x184dd3(0x1e9)]=_0x5b6990,this[_0x184dd3(0x2d9)]=_0x1dcd0e,this[_0x184dd3(0xfd)]=_0x4a1b20,this[_0x184dd3(0x18f)]=_0x521c85,this[_0x184dd3(0x223)]=_0x5f0090;}[_0x1e47ba(0x16a)](_0x5826f7){const _0x108990=_0x1e47ba,_0x56bd68=this[_0x108990(0x2d9)][_0x108990(0x16a)](_0x5826f7);if(!_0x56bd68)throw new Error(_0x108990(0x1a3));const _0x4804ac=new a[(_0x108990(0x3a1))](),_0x154bd0=new v['Subject']();_0x4804ac[_0x108990(0x477)](a[_0x108990(0x251)](_0x56bd68[_0x108990(0x123)][_0x108990(0x319)](_0x32dbb0=>_0x154bd0[_0x108990(0x424)](_0x32dbb0)))),_0x4804ac['add'](a[_0x108990(0x251)](()=>_0x154bd0[_0x108990(0x3d6)]()));const _0x57723e=new v[(_0x108990(0x184))]();_0x4804ac[_0x108990(0x477)](a[_0x108990(0x251)](_0x56bd68[_0x108990(0x1ad)][_0x108990(0x319)](_0x2f1b42=>_0x57723e[_0x108990(0x424)](_0x2f1b42)))),_0x4804ac[_0x108990(0x477)](a['toDisposable'](()=>_0x57723e[_0x108990(0x3d6)]()));const _0x4005ce=new v[(_0x108990(0x184))]();_0x4804ac['add'](a['toDisposable'](_0x56bd68[_0x108990(0x34f)]['subscribe'](_0x3a12c2=>{const _0x1f6248=_0x108990,_0xb4a480=lt(_0x3a12c2);_0x4005ce[_0x1f6248(0x424)](_0xb4a480);}))),_0x4804ac[_0x108990(0x477)](a[_0x108990(0x251)](()=>_0x4005ce[_0x108990(0x3d6)]()));const _0xdc9da9=()=>{const _0xc66427=_0x108990;_0x57723e[_0xc66427(0x424)](new Event(_0xc66427(0x31a))),_0x154bd0['next'](new CloseEvent(_0xc66427(0x31a))),_0x2c8151[_0xc66427(0x489)]();},_0x2c8151={'memberID':'','close$':_0x154bd0['asObservable'](),'error$':_0x57723e['asObservable'](),'open$':_0x56bd68[_0x108990(0x37e)],'message$':_0x4005ce[_0x108990(0x2ad)](),'send':_0x48187e=>{const _0x558649=_0x108990;if(_0x48187e[_0x558649(0x39d)]===b['INGEST']){if(_0x48187e['data'][_0x558649(0x2a0)]===u['CollaborationEvent'][_0x558649(0x3d8)]){this['_submitChangeset'](_0x2c8151,_0x48187e[_0x558649(0x1b7)])[_0x558649(0x41d)](_0x422548=>{const _0x12d22c=_0x558649;this[_0x12d22c(0x18f)][_0x12d22c(0x343)](_0x422548),_0xdc9da9();});return;}if(_0x48187e[_0x558649(0x1b7)][_0x558649(0x2a0)]===u[_0x558649(0x27c)]['FETCH_MISSING']){const _0x55e70e=_0x48187e[_0x558649(0x1b7)];this['_fetchMissChangesets'](_0x55e70e)[_0x558649(0x3c2)](_0x28defd=>{const _0x3752bb=_0x558649;_0x4005ce['next']({'cmd':b[_0x3752bb(0x24e)],'code':xe['OK'],'routeKey':_0x55e70e[_0x3752bb(0x1b7)][_0x3752bb(0x2d2)],'routeType':'','data':{'eventID':u[_0x3752bb(0x27c)][_0x3752bb(0x28e)],'data':{'changesets':_0x28defd}}});})['catch'](_0x28778b=>{const _0x4bba67=_0x558649;this[_0x4bba67(0x18f)][_0x4bba67(0x343)](_0x28778b),_0xdc9da9();});return;}}_0x56bd68['send'](ht(_0x48187e));},'close':()=>{const _0x4ff970=_0x108990;_0x56bd68[_0x4ff970(0x489)](),_0x4804ac['dispose']();}};return _0x2c8151;}async[_0x1e47ba(0x2bb)](_0x1dcfca,_0x4496ad){const _0x27b407=_0x1e47ba;var _0x24ec55;const {unitType:_0x13bf0a,unitID:_0x2d523d,changeset:_0x5c9a41}=_0x4496ad[_0x27b407(0x1b7)],_0x258a26={'unitID':_0x2d523d,'memberID':_0x1dcfca[_0x27b407(0x48d)],'type':_0x13bf0a,'changeset':u[_0x27b407(0x265)](_0x5c9a41)},_0x527fdc=Ft((_0x24ec55=this[_0x27b407(0xfd)][_0x27b407(0x159)](_t))!=null?_0x24ec55:Bt,_0x13bf0a,_0x2d523d);try{await this['_http']['post'](_0x527fdc,{'body':_0x258a26});}catch(_0x587fa2){throw this['_logService'][_0x27b407(0x343)](_0x27b407(0x190),_0x27b407(0x134)),_0x587fa2;}}async['_fetchMissChangesets'](_0x1cf09b){const _0x1cd232=_0x1e47ba,{unitID:_0xcb70f4,from:_0x4b8be9,to:_0x4cc18a,unitType:_0x1dd9f6}=_0x1cf09b[_0x1cd232(0x1b7)];return(await this[_0x1cd232(0x223)][_0x1cd232(0x171)]({'metadata':void 0x0},{'unitID':_0xcb70f4,'type':_0x1dd9f6,'from':_0x4b8be9,'to':_0x4cc18a}))[_0x1cd232(0x2fe)];}},exports[_0x1e47ba(0x10d)]=xt([te(0x0,h[_0x1e47ba(0x443)](M['HTTPService'])),te(0x1,h[_0x1e47ba(0x443)](M[_0x1e47ba(0x372)])),te(0x2,a['IConfigService']),te(0x3,a[_0x1e47ba(0x467)]),te(0x4,a[_0x1e47ba(0x112)])],exports['CollaborationSocketService']);var ut=(_0x5d9be0,_0x363da2,_0xdb5985,_0x25e5cb)=>{const _0xbc25f1=_0x1e47ba;for(var _0x3ac497=_0x363da2,_0x51c76c=_0x5d9be0[_0xbc25f1(0x3fb)]-0x1,_0x125079;_0x51c76c>=0x0;_0x51c76c--)(_0x125079=_0x5d9be0[_0x51c76c])&&(_0x3ac497=_0x125079(_0x3ac497)||_0x3ac497);return _0x3ac497;},N=(_0x226617,_0xc05664)=>(_0x325a89,_0x2d9156)=>_0xc05664(_0x325a89,_0x2d9156,_0x226617),W=(_0x591225=>(_0x591225[_0x591225[_0x1e47ba(0x23f)]=0x0]=_0x1e47ba(0x23f),_0x591225[_0x591225['JOINING']=0x1]='JOINING',_0x591225[_0x591225['OFFLINE']=0x2]=_0x1e47ba(0x3e8),_0x591225[_0x591225[_0x1e47ba(0x256)]=0x3]='ONLINE',_0x591225))(W||{});const dt='COLLAB_WEB_SOCKET_URL',Vt='ws://127.0.0.1:8000/universer-api/comb/connect',St=_0x1e47ba(0x17b),Wt=0x7530,Fe=_0x1e47ba(0x391),gt=0x2710,Gt=_0x1e47ba(0x2a1),Yt=0x4e20,Kt=_0x1e47ba(0x2b9),Xt=0x3;exports[_0x1e47ba(0x43d)]=class extends a[_0x1e47ba(0x45e)]{constructor(_0x49d600,_0x103d05,_0x581967,_0x1338ac,_0x3e49b8,_0x537657,_0x1e3fda,_0x1ec0c5){const _0x2179c2=_0x1e47ba;super(),d(this,_0x2179c2(0x327),new v[(_0x2179c2(0x432))](0x0)),d(this,_0x2179c2(0x219),this['_sessionStatus$'][_0x2179c2(0x2ad)]()),d(this,_0x2179c2(0x292),new v['Subject']()),d(this,_0x2179c2(0x288),this[_0x2179c2(0x292)][_0x2179c2(0x2ad)]()),d(this,'_socket'),d(this,'_socketMessageSubscription'),d(this,'_collaborationTimeoutTimer'),(this['_unitID']=_0x49d600,this[_0x2179c2(0x18f)]=_0x581967,this[_0x2179c2(0x2db)]=_0x1338ac,this[_0x2179c2(0x1bd)]=_0x3e49b8,this['_configService']=_0x537657,this[_0x2179c2(0x121)]=_0x1e3fda,this['_memberService']=_0x1ec0c5,_0x103d05[_0x2179c2(0x1cb)](T['takeUntil'](this['dispose$']))[_0x2179c2(0x319)](_0x4961c7=>{const _0x354b61=_0x2179c2;var _0x1d1a86;typeof _0x4961c7>'u'||(this[_0x354b61(0x276)]=_0x4961c7,_0x4961c7?(this[_0x354b61(0x169)](_0x4961c7),this['_socketMessageSubscription']=this[_0x354b61(0x276)][_0x354b61(0x34f)][_0x354b61(0x319)](_0x1558c4=>{const _0x3aa001=_0x354b61;_0x1558c4[_0x3aa001(0x402)]===this[_0x3aa001(0x268)]&&this[_0x3aa001(0x3b1)](_0x1558c4);})):(this[_0x354b61(0x327)][_0x354b61(0x424)](0x2),(_0x1d1a86=this[_0x354b61(0x238)])==null||_0x1d1a86[_0x354b61(0x3db)](),this['_socketMessageSubscription']=null));}),this[_0x2179c2(0x2e4)](this[_0x2179c2(0x2db)][_0x2179c2(0x3b5)](()=>{const _0x294dd7=_0x2179c2;var _0x18ad7c;(_0x18ad7c=this[_0x294dd7(0x276)])==null||_0x18ad7c[_0x294dd7(0x29a)]({'cmd':b[_0x294dd7(0x226)],'data':{'roomID':this[_0x294dd7(0x268)]}});})));}get[_0x1e47ba(0x435)](){const _0x2f29e5=_0x1e47ba;return this['_sessionStatus$'][_0x2f29e5(0x192)]();}[_0x1e47ba(0x331)](){const _0x53ef32=_0x1e47ba;var _0x167055,_0x29c0eb;return(_0x29c0eb=(_0x167055=this[_0x53ef32(0x276)])==null?void 0x0:_0x167055[_0x53ef32(0x48d)])!=null?_0x29c0eb:null;}['dispose'](){const _0x16e942=_0x1e47ba;super['dispose'](),this['dispose$'][_0x16e942(0x424)](),this[_0x16e942(0x2b1)][_0x16e942(0x3d6)]();}['_onCombEvent'](_0x460244){const _0x43f8c2=_0x1e47ba;_0x460244[_0x43f8c2(0x39d)]===b[_0x43f8c2(0x368)]?this[_0x43f8c2(0x1b0)](_0x460244):_0x460244[_0x43f8c2(0x39d)]===b['RECV']&&this['_onRecvEvent'](_0x460244);}[_0x1e47ba(0x169)](_0x2429b1){const _0x5e2b64=_0x1e47ba;this[_0x5e2b64(0x327)][_0x5e2b64(0x424)](0x1),_0x2429b1[_0x5e2b64(0x29a)]({'cmd':b[_0x5e2b64(0x368)],'routeKey':this[_0x5e2b64(0x268)],'routeType':'','data':{'rooms':[{'roomID':this[_0x5e2b64(0x268)]}]}});}[_0x1e47ba(0x1b0)](_0x53a655){const _0x29eb46=_0x1e47ba;var _0x81dbf9;if(_0x53a655['code']===xe[_0x29eb46(0x244)]){this[_0x29eb46(0x1bd)][_0x29eb46(0x2e7)]({'type':ce[_0x29eb46(0x1b6)][_0x29eb46(0x1da)],'content':this[_0x29eb46(0x121)]['t'](_0x29eb46(0x418))}),this['_sessionStatus$']['next'](0x2);return;}this[_0x29eb46(0x327)]['next'](0x3);const _0xea33c6=(_0x81dbf9=_0x53a655['data']['roomInfos'][this[_0x29eb46(0x268)]])==null?void 0x0:_0x81dbf9[_0x29eb46(0x1d9)];_0xea33c6&&_0xea33c6[_0x29eb46(0x1e6)](_0x3a050a=>this['_memberService']['updateMember'](this[_0x29eb46(0x268)],_0x3a050a));}['_onRecvEvent'](_0x130792){const _0x114456=_0x1e47ba;try{const _0xee68af=_0x130792[_0x114456(0x1b7)];switch(_0xee68af[_0x114456(0x2a0)]){case u[_0x114456(0x27c)]['USERS_ENTER']:this['_onUserJoin'](_0xee68af),this[_0x114456(0x292)][_0x114456(0x424)](_0xee68af);break;case u[_0x114456(0x27c)][_0x114456(0x1af)]:this[_0x114456(0x1a4)](_0xee68af),this['_event$'][_0x114456(0x424)](_0xee68af);break;case u['CollaborationEvent']['CHANGESET_ACK']:this[_0x114456(0xf3)](),this[_0x114456(0x292)][_0x114456(0x424)](_0xee68af);break;case u['CollaborationEvent'][_0x114456(0x397)]:this[_0x114456(0x18f)][_0x114456(0x343)](_0x114456(0x312)+JSON[_0x114456(0x3f6)](_0xee68af)),this[_0x114456(0x292)][_0x114456(0x424)](_0xee68af);break;default:this[_0x114456(0x292)][_0x114456(0x424)](_0xee68af);}}catch(_0x5ac1ed){this[_0x114456(0x18f)][_0x114456(0x343)](_0x5ac1ed,_0x130792);}}[_0x1e47ba(0x271)](_0x2ab21d){const _0x3ffcad=_0x1e47ba;this[_0x3ffcad(0x29b)][_0x3ffcad(0x3c6)](this[_0x3ffcad(0x268)],_0x2ab21d[_0x3ffcad(0x1b7)]);}['_onUserLeave'](_0x175044){const _0x1c3dd0=_0x1e47ba;this[_0x1c3dd0(0x29b)]['removeMember'](this['_unitID'],_0x175044[_0x1c3dd0(0x1b7)][_0x1c3dd0(0x48d)]);}async[_0x1e47ba(0x29a)](_0x4f1e34,_0x3cee5a){const _0x4d30db=_0x1e47ba;if(this['sessionStatus']!==0x3||!this[_0x4d30db(0x276)])throw new Error(_0x4d30db(0x243));try{_0x4f1e34[_0x4d30db(0x2a0)]===u[_0x4d30db(0x27c)]['NEW_CHANGESETS']&&this['_scheduleCollaborationTimeoutTimer'](),this[_0x4d30db(0x276)][_0x4d30db(0x29a)]({'cmd':b[_0x4d30db(0x12b)],'routeKey':_0x3cee5a,'routeType':'','data':_0x4f1e34});}catch(_0x233e09){this['_logService']['error'](_0x233e09);}}['_scheduleCollaborationTimeoutTimer'](){const _0x16dd5f=_0x1e47ba;var _0x1da00c;this['_collaborationTimeoutTimer']=window[_0x16dd5f(0x393)](()=>{const _0x16803a=_0x16dd5f;this[_0x16803a(0x3e7)]=null,this['_messageService'][_0x16803a(0x2e7)]({'type':ce[_0x16803a(0x1b6)][_0x16803a(0x35a)],'content':this['_localeService']['t'](_0x16803a(0x144))});},(_0x1da00c=this[_0x16dd5f(0xfd)][_0x16dd5f(0x159)](Fe))!=null?_0x1da00c:gt);}['_clearCollaborationTimeoutTimer'](){const _0x532647=_0x1e47ba;this[_0x532647(0x3e7)]&&(clearTimeout(this['_collaborationTimeoutTimer']),this[_0x532647(0x3e7)]=null);}},exports['CollaborationSession']=ut([N(0x2,a[_0x1e47ba(0x467)]),N(0x3,U[_0x1e47ba(0x2aa)]),N(0x4,U[_0x1e47ba(0x34b)]),N(0x5,a[_0x1e47ba(0x306)]),N(0x6,h['Inject'](a[_0x1e47ba(0x37f)])),N(0x7,h['Inject'](G))],exports[_0x1e47ba(0x43d)]),exports[_0x1e47ba(0x17a)]=class extends a[_0x1e47ba(0x152)]{constructor(_0x24957c,_0x2c36c5,_0x3c8b49,_0x23e253,_0x17d68a,_0x4cdd91){const _0x4fbc50=_0x1e47ba;super(),d(this,_0x4fbc50(0x1f0),new v[(_0x4fbc50(0x432))](void 0x0)),d(this,'_sessions',new Map()),d(this,_0x4fbc50(0x170),new v[(_0x4fbc50(0x432))](0x0)),d(this,_0x4fbc50(0x1f4),this[_0x4fbc50(0x170)][_0x4fbc50(0x2ad)]()),d(this,_0x4fbc50(0x1d3),!0x1),d(this,_0x4fbc50(0x395)),d(this,'_timeoutTimer'),d(this,_0x4fbc50(0x182)),d(this,'_retryCount',0x0),(this[_0x4fbc50(0x376)]=_0x24957c,this['_localeService']=_0x2c36c5,this[_0x4fbc50(0x1bd)]=_0x3c8b49,this[_0x4fbc50(0x18f)]=_0x23e253,this['_configService']=_0x17d68a,this['_socketService']=_0x4cdd91);}get[_0x1e47ba(0x276)](){const _0xa8c6c3=_0x1e47ba;return this[_0xa8c6c3(0x1f0)][_0xa8c6c3(0x192)]();}[_0x1e47ba(0x36c)](){const _0x1581de=_0x1e47ba;super[_0x1581de(0x36c)](),this[_0x1581de(0x31e)][_0x1581de(0x1e6)](_0x343349=>_0x343349['dispose']()),this[_0x1581de(0x31e)][_0x1581de(0x465)](),this['_status$'][_0x1581de(0x3d6)]();}async[_0x1e47ba(0x3fe)](_0x35455a){const _0x2a4a06=_0x1e47ba;if(this[_0x2a4a06(0x31e)]['has'](_0x35455a))return this['_sessions']['get'](_0x35455a);this[_0x2a4a06(0x2f6)]();const _0x4626b7=this[_0x2a4a06(0x376)][_0x2a4a06(0x14f)](exports['CollaborationSession'],_0x35455a,this[_0x2a4a06(0x1f0)]['asObservable']());return this[_0x2a4a06(0x31e)]['set'](_0x35455a,_0x4626b7),_0x4626b7;}[_0x1e47ba(0x35b)](){const _0x821231=_0x1e47ba;var _0x22a16d;const _0x3ceae7=(_0x22a16d=this[_0x821231(0xfd)][_0x821231(0x159)](dt))!=null?_0x22a16d:Vt;return this[_0x821231(0x2ba)]['createSocket'](_0x3ceae7);}[_0x1e47ba(0x2f6)](){const _0x32a9a0=_0x1e47ba;try{const _0x1ab7a5=this[_0x32a9a0(0x35b)]();if(_0x1ab7a5){const _0x2cb04c=_0x1ab7a5[_0x32a9a0(0x29a)];_0x1ab7a5[_0x32a9a0(0x29a)]=_0x72ec46=>(this[_0x32a9a0(0x46a)](),_0x2cb04c['apply'](_0x1ab7a5,[_0x72ec46])),_0x1ab7a5[_0x32a9a0(0x34f)][_0x32a9a0(0x319)](_0x478c33=>this[_0x32a9a0(0x401)](_0x1ab7a5,_0x478c33)),_0x1ab7a5['error$'][_0x32a9a0(0x1cb)](T[_0x32a9a0(0x3e2)](0x1))['subscribe'](_0x37d097=>this[_0x32a9a0(0x18f)][_0x32a9a0(0x343)](_0x32a9a0(0x38f),_0x37d097)),_0x1ab7a5[_0x32a9a0(0x37e)][_0x32a9a0(0x1cb)](T[_0x32a9a0(0x3e2)](0x1))[_0x32a9a0(0x319)](()=>{this['_onConnectionOpen'](_0x1ab7a5);}),_0x1ab7a5[_0x32a9a0(0x123)][_0x32a9a0(0x1cb)](T[_0x32a9a0(0x3e2)](0x1))[_0x32a9a0(0x319)](_0x6e2990=>{const _0x29e12a=_0x32a9a0;this[_0x29e12a(0x18f)]['debug'](_0x29e12a(0x2a9),_0x29e12a(0x3f5),_0x6e2990),this['_onConnectionFailed']();});}}catch(_0x2dc038){this['_logService'][_0x32a9a0(0x343)](_0x2dc038),this[_0x32a9a0(0x305)]();}}[_0x1e47ba(0x103)](_0x27143e){const _0x3b5cf8=_0x1e47ba;this['_logService'][_0x3b5cf8(0x199)](_0x3b5cf8(0x2a9),_0x3b5cf8(0x297)),_0x27143e[_0x3b5cf8(0x29a)]({'cmd':b[_0x3b5cf8(0x3a0)]}),this[_0x3b5cf8(0x46a)]();}[_0x1e47ba(0x305)](){const _0x5122bc=_0x1e47ba;var _0x3e3cb0;this[_0x5122bc(0x170)][_0x5122bc(0x424)](0x2),this['_socket$'][_0x5122bc(0x424)](null),this[_0x5122bc(0x47e)](),this['_clearHeartbeatTimer'](),this[_0x5122bc(0x1d3)]=!0x1,this[_0x5122bc(0x2e8)]<((_0x3e3cb0=this[_0x5122bc(0xfd)]['getConfig'](Kt))!=null?_0x3e3cb0:Xt)?(this[_0x5122bc(0x26e)](this[_0x5122bc(0x2e8)]),this[_0x5122bc(0x2e8)]+=0x1):this[_0x5122bc(0x1bd)][_0x5122bc(0x2e7)]({'type':ce['MessageType'][_0x5122bc(0x35a)],'content':this[_0x5122bc(0x121)]['t'](_0x5122bc(0x31d))});}[_0x1e47ba(0x26e)](_0x449e67){const _0x482351=_0x1e47ba;var _0x205107;const _0x58d99b=((_0x205107=this[_0x482351(0xfd)][_0x482351(0x159)](Gt))!=null?_0x205107:Yt)*0x2**_0x449e67;this[_0x482351(0x1bd)][_0x482351(0x2e7)]({'type':ce['MessageType'][_0x482351(0x1da)],'content':this[_0x482351(0x121)]['t'](_0x482351(0x259))}),this['_retryConnectingTimer']=setTimeout(()=>{const _0x18d5fd=_0x482351;this[_0x18d5fd(0x2f6)](),clearTimeout(this[_0x18d5fd(0x182)]),this['_retryConnectingTimer']=null;},_0x58d99b);}[_0x1e47ba(0x46a)](){const _0x125b1e=_0x1e47ba;var _0x27d1f3;this[_0x125b1e(0x350)](),this[_0x125b1e(0x395)]=setTimeout(()=>this[_0x125b1e(0x2f9)](),(_0x27d1f3=this[_0x125b1e(0xfd)][_0x125b1e(0x159)](St))!=null?_0x27d1f3:Wt);}[_0x1e47ba(0x2f9)](){const _0xf435a4=_0x1e47ba;this[_0xf435a4(0x276)]['send']({'cmd':b['HEARTBEAT']}),this[_0xf435a4(0x40d)]();}[_0x1e47ba(0x40d)](){const _0x4df42c=_0x1e47ba;var _0x209b83;this[_0x4df42c(0x392)]=setTimeout(()=>this[_0x4df42c(0x305)](),(_0x209b83=this[_0x4df42c(0xfd)][_0x4df42c(0x159)](Fe))!=null?_0x209b83:gt);}['_onMessage'](_0x3d3388,_0x5dca7f){const _0x520e72=_0x1e47ba,{cmd:_0x18f886}=_0x5dca7f;_0x18f886===b[_0x520e72(0x3a0)]&&!this[_0x520e72(0x1d3)]&&(_0x3d3388[_0x520e72(0x48d)]=_0x5dca7f[_0x520e72(0x1b7)][_0x520e72(0x48d)],this[_0x520e72(0x1f0)][_0x520e72(0x424)](_0x3d3388),this[_0x520e72(0x170)][_0x520e72(0x424)](0x3),this[_0x520e72(0x1d3)]=!0x0),_0x18f886===b[_0x520e72(0x44d)]&&this['_clearTimeoutTimer'](),this[_0x520e72(0x46a)]();}[_0x1e47ba(0x350)](){const _0x2da032=_0x1e47ba;this[_0x2da032(0x395)]!=null&&(clearTimeout(this['_sendHeartbeatTimer']),this['_sendHeartbeatTimer']=null);}[_0x1e47ba(0x47e)](){const _0x177de6=_0x1e47ba;this[_0x177de6(0x392)]!=null&&(clearTimeout(this[_0x177de6(0x392)]),this[_0x177de6(0x392)]=null);}},exports['CollaborationSessionService']=ut([N(0x0,h[_0x1e47ba(0x443)](h['Injector'])),N(0x1,h[_0x1e47ba(0x443)](a[_0x1e47ba(0x37f)])),N(0x2,U['IMessageService']),N(0x3,a['ILogService']),N(0x4,a[_0x1e47ba(0x306)]),N(0x5,Be)],exports[_0x1e47ba(0x17a)]);function _0x32f0(){const _0x1485d=['storage','_clearOtherTimers','_handler','state','syncEditingCollabCursor','_singleActiveUnitService','_waitForHeartbeatResponse','registerBeforeClose','state$','location','getTypeOfUnitAdded$','collabCursorState$','searchParams','useDependency','none','[FetchingMissState]:\x20invalid\x20calling\x20to\x20`resend`.','_docTransformSelectionsService','session.room-full','popstate','isActive','collaboration.single-unit.warning','_collabCursorState$','catch','BuiltInUIPart','transformMutationsWithChangeset','localeService','getImage','[ConflictState]:\x20invalid\x20calling\x20to\x20`resend`.','HEADER_MENU','next','whenReady','FETCH_MISS','url(#on-line-single_clip0_910_349)','defineProperty','colorChannel1','LICENSE_IMPORT_SIZE_EXCEEDED','transform','CollaborationStatusDisplay','getViewport','_state','Starting','setAlpha','UNKNOWN_CODE','BehaviorSubject','_onLocalMutation','_assignedColors','sessionStatus','_collabCursorController','_replayCachedMutations','clsx','_onRefRangeChange','ThemeService','XHRHTTPImplementation','getRangePointData','CollaborationSession','getCurrent','executeCommand','children','push','29328GIDbSf','Inject','assignAColorForMemberID','ILocalStorageService','onSyncEditingCollabCursor','fillStyle','reject','encodeURIComponent','joinEvent','addObjects','univer-pro.collaboration-client.single-active-unit-service','HEARTBEAT','ICommandService','_getMergeRange','CollaborationController','beginPath','[OfflineState]:\x20invalid\x20calling\x20to\x20`resend`.','addImageSourceCache','transformRemoteChangeset','bottom','ERROR_IMAGE_TYPE','enableAuthServer','saveSnapshot','src','rev','@univerjs/drawing','_setupBeforeClosingHandler','history','RxDisposable','NEW_CHANGESETS','focused$','userID','textRanges','registerHTTPInterceptor','_univerInstanceService','clear','CHANGESET_REJ','ILogService','_permissionService','LIVESHARE_TERMINATE','_rescheduleHeartbeatEvent','labelPosition','_config','init','_docSyncEditingCollabCursorService','Workbook','_localStorageService','clearTimeout','batchAllowed','Unknown\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','_pendingMutations','1em','onPointerEnterObserver','add','awaitingChangeset','find','from','_handleEvent','2432591nsINSS','univer-online','_clearTimeoutTimer','[CollaborationEntity]:\x20cannot\x20apply\x20missing\x20results\x20on\x20other\x20states!','_init','\x20-\x20','_unitOnClients','_hover','debounceTime','_transformStack','clipPath','url','Injector','close','_clearScheduledTask','onSendChangeset','UNIVER_DOC','memberID','sequenceExecute','SnapshotService','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','isTransformMutationsWithChangesetFailure','saveOfflineData','actions','_labelPosition','M0\x200H16V16H0z','_updateURLWithCurrentState','/universer-api/stream/file/upload','revision','xlink:href','onRemoteAck','onlineStatusTitle','getCollabEntity','BASE64','_saveCache','_ensureSubject','DocStateChangeManagerService','setItem','setCurrentUser','_clearCollaborationTimeoutTimer','baseRev','findNodePositionByCharIndex','PENDING','/resources','delete','selections','image/png','title','getSelections','_configService','_roomMembers','split','AUTHZ_URL_KEY','Unknown\x20user','_anchor','_onConnectionOpen','Univer','pushState','roomMembers','registerRefRange','listRoles','_isPermissionRej','InsertSheetMutation','_color','SEND_CHANGESET_TIMEOUT','CollaborationSocketService','closePath','getInterceptPoints','RemoveColCommandId','propertyIsEnumerable','ISnapshotServerService','useRef','create','/object/','put','Shape','IUniverInstanceService','_name','_collaborationController','IUIPartsService','image/jpeg','ERROR_IMAGE','collaborationUniverTypes','CHANGESET_ACK','setParam','_localeService','loadOfflineData','close$','IURLService','[CollaborationUndoRedoService]','change$','collaborators','onRemoteChangeset','font','_localCacheService','INGEST','_toggleOffline','555xsRudJ','url(#off-line-single_clip0_910_343)','UniverInstanceType','WebURLService','_cursors','serializeTextRange','?size=','submit\x20changeset\x20error!','onMissingChangesets','ImageSourceType','verdancy600','_getUploadFileURL','m1Prime','COLORS','handleInsertCol','_scheduleTimestamp','awaiting','_incrementRevisionNumber','getColor','assign','/allowed','indexOf','FromArray','session.collaboration-timeout','[OfflineState]:\x20received\x20acknowledgement.','TextSelectionManagerService','3340785tbSxEF','_replaceFileID','getImageSourceCache','_lastPointer','_handleHover','interceptor','replaceState','COMPRESS_MUTATION_APPLY','createInstance','conflict','_getCtorByUniverType','Disposable','_initStatusComponent','collabStatus.offline','_exhaustSavingTask','@univerjs/sheets-ui','LIVESHARE_NEW_HOST','_checkMissing','getConfig','red300','univer-online-status-title','_toggleOnline','isArray','resourceIDs','EffectRefRangId','deserializeToCombResponse','isPermissionRej','FileId','_createHandler','_executeRemoteChangeset','isTransformMutationFailure','[OfflineState]:\x20received\x20changeset.','_acknowledgedAwaitingChangeset','@univerjs/engine-formula','_joinRoom','createSocket','5256744IsszJY','collaboratorID','result','Vector2','_id','_status$','fetchMissingChangesets','LIVESHARE_REQUEST_HOST','reduce','has','_renderManagerService','onPointerMoveObserver','_colorIndex','SNAPSHOT_SERVER_URL_KEY','fetchThroughInterceptors','CollaborationSessionService','HEARTBEAT_INTERVAL','getUniverSheetInstance','@univerjs/ui','online','toggleOnline','parseProtocolChangeset','auth.needGotoLoginAlert','_retryConnectingTimer','params','Subject','socketService','transformByState','Ready','LOGIN_URL_KEY','image/bmp','symbol','attrs','setWaitCount','#fff','fetch_missing','_logService','[CollaborationSession]','hasOwnProperty','getValue','_revisionService','univerjs-icon\x20univerjs-icon-','defIds','_updateState','getFocusedUnit','call','debug','merge','_docSkeleton','slice','UNIVER_SLIDE','IHTTPImplementation','unit-cache-','_saveTaskMap','IRenderManagerService','_handleJoinEvent','[CollaborationSocketService]:\x20failed\x20to\x20create\x20socket!','_onUserLeave','updateCollaborator','append','flatMap','_initStatusListener','defs','onTransformRemoteChangesetByIMECache','onlineStatus','_getAPIPrefixPath','error$','[PendingState]:\x20unhandled\x20univer\x20type:\x20','USERS_LEAVE','_onJoinRoomEvent','[FetchMissState]','_colorAssignService','translate(.97)','text','allowed','MessageType','data','fillRule','url(#$1','/universer-api/comb','concat','_startDocCollabCursor','_messageService','getSheetBySheetId','univer-online-status','AuthzIoHttpService','_syncEditingCollabCursorService','CompressMutationService','ITransformService','UPDATE_CURSOR','update','INTERNAL_ERROR','min','fetching\x20the\x20latest\x20document\x20from\x20the\x20server.','image/jpg','ALREADY_EXISTS','pipe','_transformUndoredo','_substituteRedoStack','[DataLoaderController]','newValue','pending','_clearUndo','_showConflictNotification','_socketReady','div','color','_getSheetObject','onStateChange','_scene','members','Warning','permissionRejEvent','SessionStatus','infoRsp','replace','_getSignURL','getDocObject','saveChangeset','_themeService','Module','docStateChange$','/-/object/list','forEach','_transformSelections','fillText','_http','removeMember','_refRangeService','collabStatus.conflict','readAsDataURL','collab-text-anchor-','_type','_socket$','handleDeleteRangeMoveUp','_scheduleSaving','getCollabEntity$','status$','registerComponent','combineLatest','RegularPolygon','[SyncedState]:\x20invalid\x20calling\x20to\x20`resend`.','_unlockTransition','objectID','serializeCombRequest','SetTextSelectionsOperation','_getDocObject','@univerjs/docs','_getRedoStack','CommandType','APPLY_REJECT','_cursor','getCurrentUser','set','getCoordByCell','_compressMutationService','trim','getActiveSheet','_onCursorUpdate','_httpService','list','urlChange$','compose','INotificationService','_updateSubUnitFromURLParams','cursorInfo$','currentSkeleton$','_heartbeatTimer','_selfUnitIDs','DeleteRangeMoveLeftCommandId','range','_range','UNRECOGNIZED','@univerjs/rpc','sessionStatus$','_online','_getLoginPath','permission.title','target','csRejEvent','InsertRangeMoveDownCommandId','getCellPositionByOffset','LIVESHARE_FETCH_OPERATIONS','resend','_snapshotServerService','_hovered','_substituteUndoStack','LEAVE','createIdentifier','_transitionLocked','_scheduleClearOtherTimer','top','className','onload','Rectangle','transformMutation','setActiveRange','black','getUnitId','ColorKit','m2Prime','ACTIVE_UNIT_EVENT_CHANNEL','_docTransformIMECacheService','lodash/debounce','_remoteChangesetQueue','_socketMessageSubscription','LifecycleStages','HEARTBEAT_INTERVAL_KEY','SEND_CHANGESET_TIMEOUT_KEY','_imageSourceCache','column','LocalCacheService','IDLE','_updateLocalCache','0\x200\x2017\x2016','_onConflict','[CollaborationSession]:\x20should\x20not\x20send\x20message\x20when\x20the\x20session\x20is\x20offline!','FAIL','leaveEvent','updatePermissionPoint','_transformRemoteChangesetByIMECache','getRenderById','getRelativeCoord','getUnitType','save','[OfflineState]:\x20received\x20rejection.','measureText','RECV','Rect','_clearRedo','toDisposable','_roomMembers$','[SyncedState]:\x20received\x20acknowledgement.','disposeUnit','getCollabCursors$','ONLINE','onTransformSelections','DeleteRangeMoveUpCommandId','session.will-retry','extend','href','mapDocumentTypeToUniverType','_getScale','addObject','_state$','csAckEvent','_undoRedoService','appendMutation','deleteCollaborator','prototype','parseChangesetToProtocol','clearInterval','108248BYDQHE','_unitID','ImageUploadStatusType','doc.mutation.rich-text-editing','newCsEvent','handleInsertRangeMoveDown','toRgbString','_scheduleReconnection','@univerjs/engine-render','collaMsg','_onUserJoin','_entities','c1Prime','_uiPartsService','NOT_COLLAB','_socket','_getAnchorBounding','CONNECTOR_DATA_TOO_LARGE','forwardRef','_getSaveTimeout','IImageIoService','CollaborationEvent','getTypeOfUnitDisposed$','_scheduleHeartbeat','Plugin','OnLifecycle','This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!','collabStatus.notCollab','currentColor','MoveRangeCommandId','_onRemoteACK','substring','c2Prime','event$','_sheetTransformSelectionsService','85891MsQDTQ','handleIRemoveCol','0\x200\x2016\x2016','collabStatus.syncing','PSEUDO_FETCH_MISSING_RESULT','@univerjs/design','map','transformUndoRedo','_event$','InsertColCommandId','_decreaseWaiting','NOT_FOUND','[CollaborationState]:\x20apply\x20error!','socket\x20open.','onStarting','getAncestorScale','send','_memberService','_members','[CollaborationController]:\x20remote\x20changeset\x20applied\x20error.','882ltjSVy','WorkbookEditablePermission','eventID','RETRY_CONNECTING_INTERVAL','ERROR_EXCEED_SIZE','_shapes','...','cursorInfo','ranges','fromCollab','snapshot','[CollaborationSessionService]','IBeforeCloseService','_render','_removeClearOtherTimer','asObservable','_currentUser','_sheetSkeletonManagerService','LICENSE_DISTRO_REJECTED','dispose$','type','unitId','OTHER_CLIENTS_EDITING','RevisionService','session','LICENSE_MAX_UNITS_EXCEEDED','_loadSheet','RETRY_CONNECTING_MAX_COUNT','_socketService','_submitChangeset','row','switchMap','UNKNOWN_CMD','onMouseMove','createCollaborator','_notificationService','_removeRoom','getUndoRedoMutationParamsCache','rgba(255,\x20255,\x20255,\x200.01)','DesktopCollaborationStatusDisplayController','disableLocalCache','IRemoteInstanceService','use','\x20in\x20_schedule.','OnLineSingle','incrementRevForDocument','joinRsp','originalMeta','_onCursorDelete','[ClientCollaborationController]:\x20invalid\x20state\x20transition!\x20State\x20transferred\x20from\x20is\x20not\x20the\x20current\x20state.\x0aBefore:\x20','univer-online-status-icon','uni.network.url-service','unitID','icon','enableOfflineEditing','includes','fetching\x20missing\x20changesets\x20from\x20','@wendellhu/redi','onPointerLeaveObserver','_ws','_exhaustRemoteChangesetQueue','_beforeCloseService','_applyRemoteChangeset','_setupSubUnitSync','onRemoteRej','_initModules','getOwnPropertySymbols','editing\x20status\x20changed\x20to','_updateCollabCursors','APPLY_REVISION_CONFILICT','disposeWithMe','objects','Steady','show','_retryCount','CONFLICT','UNDEFINED','rxjs/operators','InsertRowCommandId','apply','body','MUTATION','getUnitOnRev','runRefRangeMutations','_startSheetCollabCursor','UNIVER_UNKNOWN','TEXT_RANGE_LAYER_INDEX','@univerjs/core','_tryEnsureSocket','_session','_removeCollabCursors','_sendHeartbeat','/unit/','_getSendChangesetTimeout','round','arc','changesets','/universer-api/snapshot','_drawRange','_collaborationPaused','random','_cachedData','skeleton','_onConnectionFailed','IConfigService','_change$','takeUntil','pauseCollaboration','collabStatus.fetchMiss','isEditing','AWAITING','_onRemoteRejected','drawWith','_onRemoteChangeset','jiqing500','LOCAL_CACHE_INTERVAL_KEY','save\x20fail\x20reason\x20is\x20','_HTTPService','SNAPSHOT_INVALID_SNAPSHOT','sheets','name','activeSheet$','[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.','subscribe','connection\x20error','filter','_getUndoStack','session.connection-failed','_sessions','collabStatus.synced','IPermissionService','_anchorDot','CollaborationClientPlugin','APPLY_NON_SEQUENTIAL_REVISION','LOCAL_CACHE_INTERVAL','transformStack\x20failed!','OffLineSingle','_sessionStatus$','max','collab-text-range-','transformChangesets','/collaborator','_disabled','/universer-api/oidc/authpage','?url=','sheetId','[FetchingMissState]:\x20not\x20expected\x20to\x20receive\x20ack\x20when\x20`this._awaitingChangeset`\x20is\x20null!','getMemberID','Tools','_awaitingChangeset','subunit','/new_changes','_drawAnchor','parse','CollaborationStatus','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','post','key','unit','[CollaborationEntity]:\x20initial\x20state\x20has\x20been\x20created\x20before.\x20You\x20should\x20not\x20call\x20\x22init\x22\x20twice.','deserializeRangeWithSheet','svg','displayName','failed\x20to\x20apply\x20missed\x20changesets!','UNIVER_SHEET','error','connectInjector','_queuedRemoteChangesets','serializeRangeWithSheet','FETCH_MISSING','triggerDblclick','SheetSkeletonManagerService','toString','IMessageService','POST','path','concatMap','message$','_clearHeartbeatTimer','PERMISSION_DENIED','/block/','_getCurrentRevision','getParam','restore','_schedule','values','width','all','Error','_createSocket','_transformService','transformSelections','IAuthzIoService','1762318HkUphP','ICollaborationSocketService','_textBubble','_handleLeaveEvent','currentTheme$','function','setShapeProps','enableLocalCache','get','JOIN','HTTPService','startsWith','getSheetId','dispose','onCommandExecuted','_lockTransition','SetWorksheetActivateCommand','tag','IMEInputManagerService','WebSocketService','objectActions','getCurrentRevForDocument','idSuffix','_injector','getScrollXYByRelativeCoords','deepClone','LICENSE_EXPORT_SIZE_EXCEEDED','fromEvent','/-/object/-/batch_allowed','handleDeleteRangeMoveLeft','_updateStatus','open$','LocaleService','selection','_disableEditing','getOffsetConfig','[CollaborationController]:\x20invalid\x20univer\x20type:\x20','DEFAULT_FILE_NAME','IUndoRedoService','transformIMECache','_urlService','encode','SUCCUSS','json','collaboration-client.offline-data-not-saved','/role','onlineStatusIcon','_handleHeartbeatEvent','[CollaborationSessionService]:\x20socket\x20error','permission.content','HEARTBEAT_TIMEOUT','_timeoutTimer','setTimeout','updateCursorEvent','_sendHeartbeatTimer','_clearLocalCache','MSG_FOR_ERROR','_document','objectType','_createInitialState','unshift','gold400','cmd','_startCollaboration','_entityInit$','HELLO','DisposableCollection','getResourcesRequest','_syncEditingCollabCursor','hovered','shareReplay','JSONX','entries','_cursorInfo$','liveShareNewHost','remove','Cannot\x20assemble\x20a\x20changeset\x20from\x20multiple\x20mutations\x20of\x20different\x20types:\x20','NodePositionConvertToCursor','status','AWAITING_WITH_PENDING','offline','SelectionManagerService','_onCombEvent','_docStateChangeManagerService','addEventListener','loadDoc','registerOnClose','awaiting_with_pending','CHANGESET_REVISION_CONFILICT','size','evenodd','string','LocalUndoRedoService','_eventUnsubscribe','delay','getUnitStatus$','/universer-api/snapshot/','Optional','liveShareOperation','then','getTime','_send','unknown','updateMember','editingUnit','DataLoaderController','IContextService','roomMembers$','@univerjs-pro/collaboration','toggleOffline','_commandService','_waitCount','Error\x20on\x20receiving\x20event','isTransformMutationsWithChangesetSuccess','&to=','createElement','getMember','APPLY_PERMISSION_DENIED','TOO_MANY_REQUESTS','complete','DocSkeletonManagerService','SUBMIT_CHANGESET','SetSelectionsOperation','SYNCED','unsubscribe','_sendingTimer','distinctUntilChanged','off-line-single_clip0_910_343','mutations','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','b64DecodeUnicode','take','handleInsertRow','textEncoder','useObservable','_updateLocalCursor','_collaborationTimeoutTimer','OFFLINE','USERS_ENTER','generateRandomId','_draw','unload','invoke','\x0aAfter:\x20','@univerjs/network','_onFetchMissResult','PERMISSION_REJ','_snapshotService','_transformUndoRedoStack','getActiveRange','socket\x20close','stringify','COLLAB_WEB_SOCKET_URL_KEY','_transformPreviousActiveRange','on-line-single_clip0_910_349','_unitStatus','length','INVALID_ARGUMENT','_hideTimer','requireSession','startRow','fill','_onMessage','routeKey','lineTo','setUndoRedoMutationParamsCache','_collabSessionService','[PendingState]:\x20received\x20rejection.'];_0x32f0=function(){return _0x1485d;};return _0x32f0();}var qt=(_0xb7d5c0,_0x7ba6ad,_0x363832,_0x4d03c4)=>{for(var _0x3ad7c8=_0x7ba6ad,_0x2016e1=_0xb7d5c0['length']-0x1,_0x4a8764;_0x2016e1>=0x0;_0x2016e1--)(_0x4a8764=_0xb7d5c0[_0x2016e1])&&(_0x3ad7c8=_0x4a8764(_0x3ad7c8)||_0x3ad7c8);return _0x3ad7c8;},se=(_0xa105bc,_0x3b42c2)=>(_0x410194,_0x2284fc)=>_0x3b42c2(_0x410194,_0x2284fc,_0xa105bc);const vt=_0x1e47ba(0x324),Jt=0x3e8;exports['LocalCacheService']=class extends a[_0x1e47ba(0x152)]{constructor(_0x24940f,_0x362e81,_0x191087,_0xa18b87,_0x24ce8a){const _0x7916bd=_0x1e47ba;super(),d(this,_0x7916bd(0x303),new Map()),d(this,_0x7916bd(0x1a0),new Map()),d(this,_0x7916bd(0x32c),!0x1),(this[_0x7916bd(0xfd)]=_0x24940f,this[_0x7916bd(0x470)]=_0x362e81,this['_beforeCloseService']=_0x191087,this[_0x7916bd(0x121)]=_0xa18b87,this['_revisionService']=_0x24ce8a,this[_0x7916bd(0x45c)]());}[_0x1e47ba(0x2c6)](){const _0x42737b=_0x1e47ba;this[_0x42737b(0x32c)]=!0x0;}[_0x1e47ba(0x366)](){const _0xe0714d=_0x1e47ba;this[_0xe0714d(0x32c)]=!0x1;}['dispose'](){const _0x4e6904=_0x1e47ba;this[_0x4e6904(0x155)]()['then'](()=>super[_0x4e6904(0x36c)]());}async[_0x1e47ba(0x122)](_0x1f4c78){const _0x996abc=_0x1e47ba;return this['_disabled']?null:this[_0x996abc(0x470)]['getItem'](Xe(_0x1f4c78));}async[_0x1e47ba(0xe2)](_0x376ce8,_0xab245c){const _0x34abb6=_0x1e47ba;return!!this[_0x34abb6(0x470)]['setItem'](_0x376ce8,_0xab245c);}['updateOfflineData'](_0xdb46c0,_0x317ea5,_0x416c99,_0x9105d7){const _0x2370a1=_0x1e47ba,_0x137fc8=this['_revisionService'][_0x2370a1(0x374)](_0xdb46c0);this[_0x2370a1(0x303)][_0x2370a1(0x204)](_0xdb46c0,{'unitID':_0xdb46c0,'type':_0x317ea5,'awaitingChangeset':_0x416c99,'mutations':_0x9105d7,'rev':_0x137fc8}),this[_0x2370a1(0x1a0)]['has'](_0xdb46c0)||this[_0x2370a1(0x1f2)](_0xdb46c0);}[_0x1e47ba(0x1f2)](_0x4d5349){const _0x34b733=_0x1e47ba,_0x3a5f1c=this[_0x34b733(0x27a)]();_0x3a5f1c===0x0?this['_saveCache'](_0x4d5349):this['_saveTaskMap'][_0x34b733(0x204)](_0x4d5349,setTimeout(()=>this[_0x34b733(0xee)](_0x4d5349),_0x3a5f1c));}[_0x1e47ba(0x27a)](){const _0x567f72=_0x1e47ba;var _0x5a39d3;return(_0x5a39d3=this[_0x567f72(0xfd)][_0x567f72(0x159)](vt))!=null?_0x5a39d3:Jt;}[_0x1e47ba(0xee)](_0x38d32f){const _0x632332=_0x1e47ba,_0xe84cf5=this[_0x632332(0x1a0)][_0x632332(0x367)](_0x38d32f);return _0xe84cf5!==void 0x0&&window[_0x632332(0x471)](_0xe84cf5),this['_localStorageService'][_0x632332(0xf1)](Xe(_0x38d32f),this[_0x632332(0x303)][_0x632332(0x367)](_0x38d32f))['then'](()=>this['_saveTaskMap'][_0x632332(0xf8)](_0x38d32f));}async[_0x1e47ba(0x155)](){const _0x5aea45=_0x1e47ba,_0x2aea29=[];this[_0x5aea45(0x1a0)]['forEach']((_0x1c1d29,_0x2fe198)=>{const _0x197b83=_0x5aea45;window[_0x197b83(0x471)](_0x1c1d29),_0x2aea29[_0x197b83(0x441)](this[_0x197b83(0xee)](_0x2fe198)[_0x197b83(0x3c2)](()=>{this['_saveTaskMap']['delete'](_0x2fe198);}));}),await Promise[_0x5aea45(0x359)](_0x2aea29);}[_0x1e47ba(0x45c)](){const _0x474dbd=_0x1e47ba;this[_0x474dbd(0x2e4)](this[_0x474dbd(0x2db)][_0x474dbd(0x40e)](()=>{const _0x1159ec=_0x474dbd;if(this['_saveTaskMap'][_0x1159ec(0x3b8)])return this[_0x1159ec(0x121)]['t'](_0x1159ec(0x38b));}));}},exports['LocalCacheService']=qt([se(0x0,a[_0x1e47ba(0x306)]),se(0x1,a[_0x1e47ba(0x445)]),se(0x2,U[_0x1e47ba(0x2aa)]),se(0x3,h[_0x1e47ba(0x443)](a['LocaleService'])),se(0x4,h[_0x1e47ba(0x443)](u['RevisionService']))],exports['LocalCacheService']);function Xe(_0x44169d){const _0x2d6ef0=_0x1e47ba;return _0x2d6ef0(0x19f)+_0x44169d;}const Ee=h['createIdentifier'](_0x1e47ba(0x44c));var mt=(_0x5032d6=>(_0x5032d6[_0x5032d6['NO_OTHER_CLIENTS_EDITING']=0x0]='NO_OTHER_CLIENTS_EDITING',_0x5032d6[_0x5032d6[_0x1e47ba(0x2b4)]=0x1]=_0x1e47ba(0x2b4),_0x5032d6))(mt||{});const qe=0x7530,Je=_0x1e47ba(0x234);class zt extends a['Disposable']{constructor(){const _0x28d628=_0x1e47ba;super(),d(this,_0x28d628(0x16f),a[_0x28d628(0x332)][_0x28d628(0x3ea)]()),d(this,_0x28d628(0x213),new Set()),d(this,_0x28d628(0x482),new Map()),d(this,_0x28d628(0x212),null),d(this,_0x28d628(0x408),new Map()),d(this,_0x28d628(0x3fa),new Map()),this[_0x28d628(0x480)]();}[_0x1e47ba(0x36c)](){const _0x14b220=_0x1e47ba;super[_0x14b220(0x36c)](),this[_0x14b220(0x408)]['forEach']((_0x2d8702,_0xaed48e)=>this[_0x14b220(0x2ac)](_0xaed48e)),this[_0x14b220(0x212)]&&window[_0x14b220(0x266)](this[_0x14b220(0x212)]);}['getUnitStatus$'](_0x4dcdf7){const _0x315781=_0x1e47ba;return this[_0x315781(0xef)](_0x4dcdf7)['pipe'](v[_0x315781(0x3dd)]());}['editingUnit'](_0x38914c){const _0x3d216b=_0x1e47ba;this['_selfUnitIDs'][_0x3d216b(0x3b8)]===0x0&&this[_0x3d216b(0x27e)](),this[_0x3d216b(0x213)][_0x3d216b(0x477)](_0x38914c),this[_0x3d216b(0x3c4)]({'type':0x0,'memberID':this['_id'],'unitID':_0x38914c});}[_0x1e47ba(0x254)](_0x1beb7e){const _0x1a8eb9=_0x1e47ba;this[_0x1a8eb9(0x213)][_0x1a8eb9(0xf8)](_0x1beb7e),this[_0x1a8eb9(0x213)][_0x1a8eb9(0x3b8)]===0x0&&this[_0x1a8eb9(0x212)]&&window[_0x1a8eb9(0x266)](this[_0x1a8eb9(0x212)]);}[_0x1e47ba(0x480)](){const _0x1ae9d3=_0x1e47ba;this[_0x1ae9d3(0x2e4)](a[_0x1ae9d3(0x251)](v[_0x1ae9d3(0x37a)](window,_0x1ae9d3(0x407))['subscribe'](_0x2685b4=>{const _0x16a131=_0x1ae9d3;if(_0x2685b4[_0x16a131(0x33b)]!==Je||!_0x2685b4[_0x16a131(0x1cf)])return;const _0x43d4eb=JSON[_0x16a131(0x337)](_0x2685b4['newValue']);this[_0x16a131(0x47b)](_0x43d4eb);}))),window[_0x1ae9d3(0x3b3)](_0x1ae9d3(0x3ec),()=>this[_0x1ae9d3(0x3c4)]({'type':0x1,'memberID':this['_id'],'unitIDs':Array['from'](this[_0x1ae9d3(0x213)])}));}[_0x1e47ba(0x47b)](_0x5d729a){const _0x5beb61=_0x1e47ba;switch(_0x5d729a['type']){case 0x0:this[_0x5beb61(0x1a2)](_0x5d729a);break;case 0x1:this[_0x5beb61(0x362)](_0x5d729a);break;case 0x2:this[_0x5beb61(0x38e)](_0x5d729a);break;}}[_0x1e47ba(0x1a2)](_0x573d9c){const _0x3125c9=_0x1e47ba,{unitID:_0x1d376c,memberID:_0xf95d91}=_0x573d9c;if(!this['_unitOnClients'][_0x3125c9(0x174)](_0x1d376c)||!this[_0x3125c9(0x482)][_0x3125c9(0x367)](_0x1d376c)[_0x3125c9(0x174)](_0xf95d91)){const _0x3e1d4f=this['_unitOnClients']['get'](_0x1d376c)||new Set();_0x3e1d4f[_0x3125c9(0x477)](_0xf95d91),this[_0x3125c9(0x482)]['set'](_0x1d376c,_0x3e1d4f),this[_0x3125c9(0x229)](_0xf95d91),this[_0x3125c9(0x3c4)]({'type':0x0,'memberID':this['_id'],'unitID':_0x1d376c});}else this[_0x3125c9(0xef)](_0x1d376c)['next'](0x1);}[_0x1e47ba(0x229)](_0x459052){const _0x1883c2=_0x1e47ba;this['_removeClearOtherTimer'](_0x459052);const _0x41c4ed=window[_0x1883c2(0x393)](()=>{const _0x26046e=_0x1883c2;this[_0x26046e(0x482)][_0x26046e(0x1e6)](_0x3e484c=>{_0x3e484c['delete'](_0x459052);});},qe*0x2);this[_0x1883c2(0x408)]['set'](_0x459052,_0x41c4ed);}[_0x1e47ba(0x2ac)](_0x8c08c8){const _0x4213f6=_0x1e47ba;if(this[_0x4213f6(0x408)][_0x4213f6(0x174)](_0x8c08c8)){const _0x139a15=this[_0x4213f6(0x408)]['get'](_0x8c08c8);_0x139a15&&window[_0x4213f6(0x471)](_0x139a15),this[_0x4213f6(0x408)][_0x4213f6(0x204)](_0x8c08c8,null);}}[_0x1e47ba(0x362)](_0x59c475){const _0x191d15=_0x1e47ba,{memberID:_0x275215,unitIDs:_0x2f19fb}=_0x59c475;_0x2f19fb[_0x191d15(0x1e6)](_0x1c2f3e=>{const _0xe4157d=_0x191d15;var _0x1dad4b;const _0x1dbac3=this['_unitOnClients'][_0xe4157d(0x367)](_0x1c2f3e);_0x1dbac3&&(_0x1dbac3[_0xe4157d(0xf8)](_0x275215),(_0x1dad4b=this[_0xe4157d(0xef)](_0x1c2f3e))==null||_0x1dad4b[_0xe4157d(0x424)](_0x1dbac3[_0xe4157d(0x3b8)]===0x0?0x0:0x1));}),this['_removeClearOtherTimer'](_0x275215);}['_handleHeartbeatEvent'](_0x374aed){const _0x263fc3=_0x1e47ba;this['_scheduleClearOtherTimer'](_0x374aed[_0x263fc3(0x48d)]);}[_0x1e47ba(0x3c4)](_0x221f40){const _0x2ce5d8=_0x1e47ba;localStorage[_0x2ce5d8(0xf1)](Je,JSON[_0x2ce5d8(0x3f6)](_0x221f40));}[_0x1e47ba(0x27e)](){const _0x34faf7=_0x1e47ba;this[_0x34faf7(0x212)]=window['setInterval'](()=>{const _0x4c4288=_0x34faf7;this['_send']({'type':0x2,'memberID':this[_0x4c4288(0x16f)]});},qe);}['_ensureSubject'](_0x356384){const _0x3d1147=_0x1e47ba;return this[_0x3d1147(0x3fa)][_0x3d1147(0x174)](_0x356384)||this[_0x3d1147(0x3fa)]['set'](_0x356384,new v['BehaviorSubject'](0x0)),this[_0x3d1147(0x3fa)][_0x3d1147(0x367)](_0x356384);}}var Zt=(_0x13eda7,_0x486955,_0x103b67,_0x18c615)=>{for(var _0x3a8884=_0x486955,_0x11da8f=_0x13eda7['length']-0x1,_0x21ee55;_0x11da8f>=0x0;_0x11da8f--)(_0x21ee55=_0x13eda7[_0x11da8f])&&(_0x3a8884=_0x21ee55(_0x3a8884)||_0x3a8884);return _0x3a8884;},ze=(_0x36d181,_0x2f2100)=>(_0x384d2e,_0x1b16f5)=>_0x2f2100(_0x384d2e,_0x1b16f5,_0x36d181);let ve=class{constructor(_0x38c144,_0x254461){const _0x488040=_0x1e47ba;this[_0x488040(0x376)]=_0x38c144,this[_0x488040(0x35c)]=_0x254461;}[_0x1e47ba(0x386)](_0x3631f4){const _0x2944a6=_0x1e47ba;this[_0x2944a6(0x3f3)](_0x3631f4),this[_0x2944a6(0x3f8)](_0x3631f4);}[_0x1e47ba(0x454)](_0x1e1005){const _0x437922=_0x1e47ba,_0x4b4dfc=this['_injector'][_0x437922(0x367)](w[_0x437922(0x371)]),{redoCache:_0x8e785c}=_0x4b4dfc[_0x437922(0x2c3)]();if(_0x8e785c[_0x437922(0x3fb)]===0x0)return _0x1e1005;let _0x22ffab=a[_0x437922(0x332)][_0x437922(0x378)](_0x1e1005[_0x437922(0x3df)][0x0]);for(let _0x590050=0x0;_0x590050<_0x8e785c[_0x437922(0x3fb)];_0x590050++){const _0x2309d5={'id':'doc.mutation.rich-text-editing','params':{..._0x8e785c[_0x590050]}},_0x529603=this[_0x437922(0x35c)][_0x437922(0x22e)](_0x22ffab,_0x2309d5,!0x1);if(u[_0x437922(0x165)](_0x529603))throw _0x529603[_0x437922(0x343)];_0x22ffab=_0x529603['m1Prime'];}return{...a['Tools'][_0x437922(0x378)](_0x1e1005),'mutations':[_0x22ffab]};}['_transformUndoRedoStack'](_0x16d516){const _0x43557c=_0x1e47ba,_0xc7634f=this[_0x43557c(0x376)]['get'](w[_0x43557c(0x371)]),{undoCache:_0x3f5838,redoCache:_0x452758}=_0xc7634f[_0x43557c(0x2c3)]();if(_0x3f5838[_0x43557c(0x3fb)]===0x0||_0x452758[_0x43557c(0x3fb)]===0x0)return;const _0x14953d=[],_0x351c6d=[];let _0x56c9c8=a[_0x43557c(0x332)]['deepClone'](_0x16d516['mutations'][0x0]),_0x1aa4c3=a[_0x43557c(0x332)][_0x43557c(0x378)](_0x16d516[_0x43557c(0x3df)][0x0]);for(let _0x48b3dd=_0x3f5838[_0x43557c(0x3fb)]-0x1;_0x48b3dd>=0x0;_0x48b3dd--){const _0x212a5f={'id':_0x43557c(0x26a),'params':{..._0x3f5838[_0x48b3dd]}},_0x5e9d8d={'id':_0x43557c(0x26a),'params':{..._0x452758[_0x48b3dd]}},_0x2000e6=this[_0x43557c(0x35c)]['transformMutation'](_0x56c9c8,_0x212a5f,!0x1),_0x1847f4=this[_0x43557c(0x35c)][_0x43557c(0x22e)](_0x1aa4c3,_0x5e9d8d,!0x1);if(u[_0x43557c(0x165)](_0x2000e6))throw _0x2000e6[_0x43557c(0x343)];if(u[_0x43557c(0x165)](_0x1847f4))throw _0x1847f4[_0x43557c(0x343)];_0x14953d[_0x43557c(0x39b)](_0x2000e6[_0x43557c(0x233)][_0x43557c(0x183)]),_0x351c6d[_0x43557c(0x39b)](_0x1847f4['m2Prime'][_0x43557c(0x183)]),_0x56c9c8=_0x2000e6[_0x43557c(0x139)],_0x1aa4c3=_0x1847f4[_0x43557c(0x139)];}_0xc7634f[_0x43557c(0x404)]({'undoCache':_0x14953d,'redoCache':_0x351c6d});}[_0x1e47ba(0x3f8)](_0x26f520){const _0x5e0898=_0x1e47ba,_0x3da8da=this[_0x5e0898(0x376)][_0x5e0898(0x367)](w[_0x5e0898(0x371)]),_0x1eaae2=_0x3da8da[_0x5e0898(0x3f4)]();if(_0x1eaae2==null)return;const _0x1488a7=[{'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x26f520[_0x5e0898(0x2d2)],'actions':null,'textRanges':[_0x1eaae2]}}],_0x1c2292=this[_0x5e0898(0x35c)][_0x5e0898(0x41f)](_0x26f520,_0x1488a7);if(!u[_0x5e0898(0x3d0)](_0x1c2292))throw _0x1c2292[_0x5e0898(0x343)];const _0x285400=_0x1c2292[_0x5e0898(0x233)][0x0][_0x5e0898(0x183)][_0x5e0898(0x462)];Array[_0x5e0898(0x15d)](_0x285400)&&_0x285400[_0x5e0898(0x3fb)]&&_0x3da8da[_0x5e0898(0x22f)](_0x285400[0x0]);}};ve=Zt([ze(0x0,h[_0x1e47ba(0x443)](h[_0x1e47ba(0x488)])),ze(0x1,u[_0x1e47ba(0x1c3)])],ve);var Qt=(_0x5c01f9,_0x653bb5,_0xd20c22,_0x35686b)=>{for(var _0x4309fa=_0x653bb5,_0x20f524=_0x5c01f9['length']-0x1,_0x3462d6;_0x20f524>=0x0;_0x20f524--)(_0x3462d6=_0x5c01f9[_0x20f524])&&(_0x4309fa=_0x3462d6(_0x4309fa)||_0x4309fa);return _0x4309fa;},Ze=(_0x2c3e75,_0xd9f4ce)=>(_0x54e372,_0x46d246)=>_0xd9f4ce(_0x54e372,_0x46d246,_0x2c3e75);let me=class{constructor(_0x74999e,_0x2db295){const _0x574004=_0x1e47ba;this[_0x574004(0x376)]=_0x74999e,this['_transformService']=_0x2db295;}[_0x1e47ba(0x35d)](_0x1a991d){const _0x5a1a76=_0x1e47ba;var _0xfa5009;const _0x3b46dc=this[_0x5a1a76(0x376)][_0x5a1a76(0x367)](w[_0x5a1a76(0x146)]),_0x3b0f5d=(_0xfa5009=_0x3b46dc['getSelections']())!=null?_0xfa5009:[],_0x6ae10c=_0x3b0f5d==null?void 0x0:_0x3b0f5d[_0x5a1a76(0x290)](w[_0x5a1a76(0x132)]);if(_0x6ae10c[_0x5a1a76(0x3fb)]===0x0)return;const _0x5abea1=[{'id':_0x5a1a76(0x26a),'params':{'unitId':_0x1a991d[_0x5a1a76(0x2d2)],'actions':null,'textRanges':_0x6ae10c}}],_0xfca21f=this['_transformService'][_0x5a1a76(0x41f)](_0x1a991d,_0x5abea1);if(!u[_0x5a1a76(0x3d0)](_0xfca21f))throw _0xfca21f[_0x5a1a76(0x343)];const _0x55c7ce=_0xfca21f[_0x5a1a76(0x233)][0x0][_0x5a1a76(0x183)][_0x5a1a76(0x462)];Array[_0x5a1a76(0x15d)](_0x55c7ce)&&_0x55c7ce[_0x5a1a76(0x3fb)]&&_0x3b46dc['replaceTextRanges'](_0x55c7ce,!0x1);}};me=Qt([Ze(0x0,h[_0x1e47ba(0x443)](h['Injector'])),Ze(0x1,u[_0x1e47ba(0x1c3)])],me);function ft(_0x2c3014){let _0x4d57df='';for(const _0x425893 of _0x2c3014){const {startOffset:_0x4b9422,endOffset:_0x169574,isActive:_0x2508ee}=_0x425893;_0x4d57df['length']&&(_0x4d57df+=','),_0x4d57df+=_0x4b9422+':'+_0x169574+':'+(_0x2508ee?'1':'0');}return _0x4d57df;}function es(_0x431bb6){const _0x10568c=_0x1e47ba,_0xb1b998=_0x431bb6[_0x10568c(0xff)](','),_0x360b98=[];for(const _0x92df38 of _0xb1b998){const [_0x10ffaa,_0x46ba6c,_0x2e7896]=_0x92df38[_0x10568c(0xff)](':');_0x360b98['push']({'startOffset':Number(_0x10ffaa),'endOffset':Number(_0x46ba6c),'collapsed':_0x10ffaa===_0x46ba6c,'isActive':_0x2e7896==='1'});}return _0x360b98['some'](_0x36314d=>_0x36314d['isActive'])||(_0x360b98[0x0][_0x10568c(0x41a)]=!0x0),_0x360b98;}class Ve extends a[_0x1e47ba(0x45e)]{constructor(){const _0x75b0a7=_0x1e47ba;super(...arguments),d(this,_0x75b0a7(0x41c),new v['BehaviorSubject'](null)),d(this,_0x75b0a7(0x412),this[_0x75b0a7(0x41c)][_0x75b0a7(0x2ad)]());}[_0x1e47ba(0x40b)](_0x24689f){const _0x59ee2d=_0x1e47ba,{unitID:_0x5e725e,memberID:_0x270034,textRanges:_0x49193b}=_0x24689f,_0x2d70dc=ft(_0x49193b),_0x4ed50d={'unitID':_0x5e725e,'memberID':_0x270034,'selection':_0x2d70dc};this['_collabCursorState$'][_0x59ee2d(0x424)](_0x4ed50d);}}var ts=(_0x332274,_0x31f2e5,_0x15d298,_0x3e6c74)=>{const _0x44a98c=_0x1e47ba;for(var _0xeed362=_0x31f2e5,_0x120451=_0x332274[_0x44a98c(0x3fb)]-0x1,_0x23d3b7;_0x120451>=0x0;_0x120451--)(_0x23d3b7=_0x332274[_0x120451])&&(_0xeed362=_0x23d3b7(_0xeed362)||_0xeed362);return _0xeed362;},Qe=(_0x2305f4,_0x279afb)=>(_0x3e0610,_0x2758f4)=>_0x279afb(_0x3e0610,_0x2758f4,_0x2305f4);let fe=class{constructor(_0x58e26e,_0x5298c2){const _0x192727=_0x1e47ba;this[_0x192727(0x376)]=_0x58e26e,this['_transformService']=_0x5298c2;}['transformSelections'](_0x3bdcd9){const _0x2daa35=_0x1e47ba;var _0x423828,_0x5e270c,_0x271bc7,_0x32a385;const _0x241038=this[_0x2daa35(0x376)]['get'](E[_0x2daa35(0x3b0)]),{pluginName:_0x17a326,unitId:_0x515c69,sheetId:_0x444813}=_0x241038[_0x2daa35(0x43e)]()||{},_0x507ea1=(_0x423828=_0x241038['getSelections']())!=null?_0x423828:[];if(_0x507ea1[_0x2daa35(0x3fb)]===0x0||!_0x17a326||!_0x515c69||!_0x444813)return;const _0x4bb07d=[{'id':E['SetSelectionsOperation']['id'],'params':{'unitId':_0x515c69,'subUnitId':_0x444813,'pluginName':_0x17a326,'selections':a[_0x2daa35(0x332)][_0x2daa35(0x378)](_0x507ea1)}}],_0x206ed0=this[_0x2daa35(0x35c)][_0x2daa35(0x41f)](_0x3bdcd9,_0x4bb07d);if(!u[_0x2daa35(0x3d0)](_0x206ed0))throw _0x206ed0['error'];const _0xfdbdc0=(_0x32a385=(_0x271bc7=(_0x5e270c=_0x206ed0[_0x2daa35(0x233)][0x0])==null?void 0x0:_0x5e270c['params'])==null?void 0x0:_0x271bc7[_0x2daa35(0xf9)])!=null?_0x32a385:_0x507ea1;Array[_0x2daa35(0x15d)](_0xfdbdc0)&&_0xfdbdc0[_0x2daa35(0x3fb)]&&this[_0x2daa35(0x376)][_0x2daa35(0x367)](a['ICommandService'])[_0x2daa35(0x43f)](E['SetSelectionsOperation']['id'],{'unitId':_0x515c69,'subUnitId':_0x444813,'pluginName':_0x17a326,'selections':_0xfdbdc0});}};fe=ts([Qe(0x0,h['Inject'](h[_0x1e47ba(0x488)])),Qe(0x1,u['ITransformService'])],fe);const ss=new Set([E[_0x1e47ba(0x10a)]['id']]);function is(_0x154f51,_0x268a3b,_0x396948,_0x2399cf,_0x2ee8ee){const _0x9fdfd5=_0x1e47ba;var _0x3a1477,_0x1a36e8,_0xbd115e,_0x3e8d84;const _0x178a82=[];for(const _0x5f524d of _0x154f51)if(ss[_0x9fdfd5(0x174)](_0x5f524d['id'])){if(_0x178a82[_0x9fdfd5(0x3fb)]>0x0)break;_0x178a82[_0x9fdfd5(0x441)](_0x5f524d);break;}else _0x178a82[_0x9fdfd5(0x441)](_0x5f524d);const _0x2952db=(_0x1a36e8=(_0x3a1477=_0x2ee8ee['getCurrentUser']())==null?void 0x0:_0x3a1477['userID'])!=null?_0x1a36e8:'unknown',_0x3d8738=(_0x3e8d84=(_0xbd115e=_0x2ee8ee[_0x9fdfd5(0x203)]())==null?void 0x0:_0xbd115e['memberID'])!=null?_0x3e8d84:_0x9fdfd5(0x3c5);return{'changeset':{'unitID':_0x268a3b,'type':u['mapDocumentTypeToUniverType'](_0x396948[_0x9fdfd5(0x24a)](_0x268a3b)),'baseRev':_0x2399cf['getCurrentRevForDocument'](_0x268a3b),'revision':0x0,'userID':_0x2952db,'memberID':_0x3d8738,'mutations':_0x178a82},'pendingMutations':_0x154f51[_0x9fdfd5(0x19c)](_0x178a82[_0x9fdfd5(0x3fb)])};}function ns(_0x12392f,_0x4d1661,_0x4116e9,_0x32bb36,_0x164363){const _0xc04a0=_0x1e47ba;var _0x422779,_0x481875,_0x130994,_0x461e5a;const _0x95bc1e=[_0x12392f[_0xc04a0(0x173)]((_0x2c825a,_0x210d17)=>{const _0x458bd2=_0xc04a0;var _0x3d3f9f;const {id:_0x5033db}=_0x2c825a,{id:_0x276890,type:_0x2749f2}=_0x210d17,_0x5781cc=(_0x3d3f9f=_0x2c825a['params'])!=null?_0x3d3f9f:{'actions':null},_0x48cd5a=_0x210d17['params'];if(_0x5033db&&_0x5033db!==_0x276890)throw new Error(_0x458bd2(0x3ab)+_0x5033db+_0x458bd2(0x481)+_0x276890+'.');return{..._0x2c825a,'id':_0x276890,'type':_0x2749f2,'params':{'unitId':_0x48cd5a[_0x458bd2(0x2b3)],'textRanges':_0x48cd5a[_0x458bd2(0x462)],'actions':a[_0x458bd2(0x3a6)][_0x458bd2(0x20d)](_0x5781cc['actions'],_0x48cd5a[_0x458bd2(0xe3)])}};},{})],_0x3a5e2c=(_0x481875=(_0x422779=_0x164363['getCurrentUser']())==null?void 0x0:_0x422779[_0xc04a0(0x461)])!=null?_0x481875:_0xc04a0(0x3c5),_0x11eb66=(_0x461e5a=(_0x130994=_0x164363[_0xc04a0(0x203)]())==null?void 0x0:_0x130994['memberID'])!=null?_0x461e5a:_0xc04a0(0x3c5);return{'changeset':{'unitID':_0x4d1661,'type':u[_0xc04a0(0x25c)](_0x4116e9[_0xc04a0(0x24a)](_0x4d1661)),'baseRev':_0x32bb36[_0xc04a0(0x374)](_0x4d1661),'revision':0x0,'userID':_0x3a5e2c,'memberID':_0x11eb66,'mutations':_0x95bc1e},'pendingMutations':[]};}var K=(_0x3ed691,_0x314022,_0x4f24d6,_0x4dc3c2)=>{const _0x4d5393=_0x1e47ba;for(var _0xa1f616=_0x314022,_0x2f8f19=_0x3ed691[_0x4d5393(0x3fb)]-0x1,_0x505824;_0x2f8f19>=0x0;_0x2f8f19--)(_0x505824=_0x3ed691[_0x2f8f19])&&(_0xa1f616=_0x505824(_0xa1f616)||_0xa1f616);return _0xa1f616;},m=(_0x57a010,_0x167175)=>(_0x44c635,_0x3ef949)=>_0x167175(_0x44c635,_0x3ef949,_0x57a010);const It=_0x1e47ba(0x10c),rs=0x7d0;var y=(_0x43f69e=>(_0x43f69e[_0x1e47ba(0x275)]='not_collab',_0x43f69e['SYNCED']='synced',_0x43f69e['PENDING']=_0x1e47ba(0x1d0),_0x43f69e['AWAITING']='awaiting',_0x43f69e[_0x1e47ba(0x3ae)]='awaiting_with_pending',_0x43f69e[_0x1e47ba(0x426)]=_0x1e47ba(0x18e),_0x43f69e[_0x1e47ba(0x2e9)]=_0x1e47ba(0x150),_0x43f69e[_0x1e47ba(0x3e8)]=_0x1e47ba(0x3af),_0x43f69e))(y||{});class X{constructor(_0x4d6b62,_0x1ed934,_0x5d0fed,_0x5bb1b8,_0x3b87b7,_0xcf49d5,_0x122f3d,_0x265a70,_0x328759){const _0x3d4364=_0x1e47ba;d(this,'_awaitingChangeset',null),d(this,_0x3d4364(0x474),[]),(this[_0x3d4364(0x2d2)]=_0x4d6b62,this['type']=_0x1ed934,this[_0x3d4364(0x409)]=_0x3b87b7,this[_0x3d4364(0x3cd)]=_0xcf49d5,this[_0x3d4364(0x261)]=_0x122f3d,this[_0x3d4364(0x193)]=_0x265a70,this[_0x3d4364(0x12a)]=_0x328759,this[_0x3d4364(0x333)]=_0x5d0fed,this[_0x3d4364(0x474)]=_0x5bb1b8);}[_0x1e47ba(0x158)](_0x144063){const _0x20a259=_0x1e47ba,_0x5d7fb3=this['_revisionService']['getCurrentRevForDocument'](this['unitID']);return _0x144063[_0x20a259(0xe8)]>_0x5d7fb3+0x1?(this[_0x20a259(0x409)][_0x20a259(0x135)]({'from':_0x5d7fb3,'to':_0x144063[_0x20a259(0xe8)]-0x1}),!0x0):!0x1;}[_0x1e47ba(0x1cc)](_0xf54c56){const _0x4c3382=_0x1e47ba;this[_0x4c3382(0x261)][_0x4c3382(0x291)](this[_0x4c3382(0x2d2)],_0xf54c56);}[_0x1e47ba(0x1e7)](_0x22f68c){const _0x2aa797=_0x1e47ba;var _0x434a60,_0xcd1e07;(_0xcd1e07=(_0x434a60=this[_0x2aa797(0x409)])['onTransformSelections'])==null||_0xcd1e07[_0x2aa797(0x198)](_0x434a60,_0x22f68c);}['_transformIMECache'](_0x47445f){const _0x27c068=_0x1e47ba;var _0x32c204,_0x299216;return(_0x299216=(_0x32c204=this[_0x27c068(0x409)])['onTransformIME'])==null?void 0x0:_0x299216[_0x27c068(0x198)](_0x32c204,_0x47445f);}['_transformRemoteChangesetByIMECache'](_0x3f3e04){const _0x5b9c16=_0x1e47ba;var _0x7863a5,_0x1af069,_0x5250b8;return(_0x5250b8=(_0x1af069=(_0x7863a5=this[_0x5b9c16(0x409)])['onTransformRemoteChangesetByIMECache'])==null?void 0x0:_0x1af069[_0x5b9c16(0x198)](_0x7863a5,_0x3f3e04))!=null?_0x5250b8:_0x3f3e04;}['_syncEditingCollabCursor'](_0x1ed291){const _0x5b2b5c=_0x1e47ba;var _0x4e2bca,_0x284f88;if(this[_0x5b2b5c(0x2b2)]===k['UNIVER_DOC']){const {unitID:_0x3dbdc4,mutations:_0x46ddba,memberID:_0x2f49f0}=_0x1ed291,_0x1da422=_0x46ddba[0x0][_0x5b2b5c(0x183)][_0x5b2b5c(0x462)];Array[_0x5b2b5c(0x15d)](_0x1da422)&&_0x1da422[_0x5b2b5c(0x3fb)]>0x0&&((_0x284f88=(_0x4e2bca=this['_handler'])[_0x5b2b5c(0x446)])==null||_0x284f88[_0x5b2b5c(0x198)](_0x4e2bca,{'unitID':_0x3dbdc4,'memberID':_0x2f49f0,'textRanges':_0x1da422}));}}[_0x1e47ba(0x240)](){const _0x1422d7=_0x1e47ba;this[_0x1422d7(0x12a)]['updateOfflineData'](this[_0x1422d7(0x2d2)],this[_0x1422d7(0x2b2)],this[_0x1422d7(0x333)],this[_0x1422d7(0x474)]);}['_getCurrentRevision'](){const _0x34542e=_0x1e47ba;return this[_0x34542e(0x193)]['getCurrentRevForDocument'](this[_0x34542e(0x2d2)]);}['_incrementRevisionNumber'](){const _0x2c6b3b=_0x1e47ba;this[_0x2c6b3b(0x193)][_0x2c6b3b(0x2cb)](this[_0x2c6b3b(0x2d2)]);}[_0x1e47ba(0x164)](_0x33f6da){const _0x5cbf0e=_0x1e47ba;var _0x5c6bb4;const _0x134cae=this[_0x5cbf0e(0x247)](_0x33f6da),_0x330f8f=a[_0x5cbf0e(0xde)](_0x134cae[_0x5cbf0e(0x3df)],this[_0x5cbf0e(0x3cd)],{'fromCollab':!0x0});if(!_0x330f8f[_0x5cbf0e(0x16d)])throw _0x330f8f[_0x5cbf0e(0x343)]instanceof Error?_0x330f8f[_0x5cbf0e(0x343)]:new Error((_0x5c6bb4=_0x330f8f['error'])!=null?_0x5c6bb4:_0x5cbf0e(0x296));this['_transformIMECache'](_0x134cae),this[_0x5cbf0e(0x1cc)](_0x33f6da),this[_0x5cbf0e(0x1e7)](_0x134cae),this[_0x5cbf0e(0x3a3)](_0x134cae),this[_0x5cbf0e(0x13e)]();}}let le=class extends X{constructor(_0x2211e5,_0x42b376,_0x557636,_0x3ef5f6,_0x4e6330,_0x1f090b,_0x4cbe88,_0x20cb03,_0x4a49e2){const _0x1f9a96=_0x1e47ba;super(_0x2211e5,_0x42b376,null,[],_0x557636,_0x20cb03,_0x4cbe88,_0x3ef5f6,_0x4e6330),d(this,_0x1f9a96(0x3ad),'synced'),(this[_0x1f9a96(0x376)]=_0x1f090b,this[_0x1f9a96(0x18f)]=_0x4a49e2);}[_0x1e47ba(0x262)](_0x26dd77){const _0x4bc70a=_0x1e47ba,_0x3fbc1e=this[_0x4bc70a(0x376)][_0x4bc70a(0x14f)](j,this['unitID'],this[_0x4bc70a(0x2b2)],[_0x26dd77],this[_0x4bc70a(0x409)]);return _0x3fbc1e[_0x4bc70a(0x356)](),_0x3fbc1e[_0x4bc70a(0x240)](),_0x3fbc1e;}[_0x1e47ba(0x128)](_0x5c7afd){const _0x33a787=_0x1e47ba;if(this[_0x33a787(0x158)](_0x5c7afd))return this[_0x33a787(0x376)][_0x33a787(0x14f)](H,this[_0x33a787(0x2d2)],this['type'],null,[],null,[_0x5c7afd],this['_handler']);try{return this[_0x33a787(0x164)](_0x5c7afd),this;}catch(_0xd42dba){return this[_0x33a787(0x18f)][_0x33a787(0x343)](_0x33a787(0x29d),_0xd42dba),this;}}[_0x1e47ba(0xea)](){const _0x564a04=_0x1e47ba;throw new Error(_0x564a04(0x253));}[_0x1e47ba(0x2de)](){throw new Error('[SyncedState]:\x20received\x20rejection.');}['toggleOffline'](){const _0x2a36a0=_0x1e47ba;return this[_0x2a36a0(0x376)][_0x2a36a0(0x14f)](F,this['unitID'],this['type'],null,[],this['_handler']);}['toggleOnline'](){return this;}[_0x1e47ba(0x222)](){const _0x32985b=_0x1e47ba;throw new Error(_0x32985b(0x1f8));}};le=K([m(0x3,h[_0x1e47ba(0x443)](u[_0x1e47ba(0x2b5)])),m(0x4,h['Inject'](exports[_0x1e47ba(0x23e)])),m(0x5,h[_0x1e47ba(0x443)](h[_0x1e47ba(0x488)])),m(0x6,a[_0x1e47ba(0x385)]),m(0x7,a[_0x1e47ba(0x44e)]),m(0x8,a[_0x1e47ba(0x467)])],le);let j=class extends X{constructor(_0x18cdd5,_0x4da1fa,_0x28005f,_0x3b4e8d,_0x58455c,_0xe290a0,_0x4b454e,_0x58080d,_0xb560b4,_0x1c8317,_0x108670,_0x53e92b,_0x1add84,_0x52b34d){const _0xa1da23=_0x1e47ba;super(_0x18cdd5,_0x4da1fa,null,_0x28005f,_0x3b4e8d,_0x1c8317,_0x52b34d,_0xe290a0,_0x4b454e),d(this,_0xa1da23(0x3ad),_0xa1da23(0x1d0)),d(this,_0xa1da23(0x13c),null),d(this,_0xa1da23(0x3dc),null),(this[_0xa1da23(0x376)]=_0x58455c,this[_0xa1da23(0x29b)]=_0x58080d,this[_0xa1da23(0x18f)]=_0xb560b4,this[_0xa1da23(0xfd)]=_0x108670,this[_0xa1da23(0x35c)]=_0x53e92b,this[_0xa1da23(0x464)]=_0x1add84);}[_0x1e47ba(0x262)](_0x55376b){const _0x13f3a7=_0x1e47ba;return this[_0x13f3a7(0x474)]['push'](_0x55376b),this['_updateLocalCache'](),this;}['onRemoteChangeset'](_0x14bae1){const _0x135fbe=_0x1e47ba;if(this[_0x135fbe(0x158)](_0x14bae1))return this[_0x135fbe(0x48a)](),this[_0x135fbe(0x376)][_0x135fbe(0x14f)](H,this[_0x135fbe(0x2d2)],this[_0x135fbe(0x2b2)],null,this[_0x135fbe(0x474)],null,[_0x14bae1],this[_0x135fbe(0x409)]);try{const _0x13728c=this[_0x135fbe(0x35c)][_0x135fbe(0x41f)](_0x14bae1,this[_0x135fbe(0x474)]);if(u['isTransformMutationsWithChangesetSuccess'](_0x13728c)){const {c1Prime:_0x105e8d,m2Prime:_0x11572c}=_0x13728c;this[_0x135fbe(0x164)](_0x105e8d);const _0x65984b=this[_0x135fbe(0x376)][_0x135fbe(0x14f)](j,this[_0x135fbe(0x2d2)],this['type'],_0x11572c,this[_0x135fbe(0x409)]);return this[_0x135fbe(0x48a)](),_0x65984b['_schedule'](this[_0x135fbe(0x13c)]?Math[_0x135fbe(0x328)](0x0,new Date()[_0x135fbe(0x3c3)]()-this['_scheduleTimestamp']):this['_getSendChangesetTimeout']()),_0x65984b;}throw _0x13728c['error'];}catch(_0x2ced19){return this[_0x135fbe(0x18f)][_0x135fbe(0x343)](_0x2ced19),this['_onConflict'](!0x1);}}['onRemoteAck'](){throw new Error('[PendingState]:\x20received\x20acknowledgement.');}[_0x1e47ba(0x2de)](){const _0x40979a=_0x1e47ba;throw new Error(_0x40979a(0x406));}[_0x1e47ba(0x3cc)](){const _0x5342f4=_0x1e47ba;return this['_clearScheduledTask'](),this[_0x5342f4(0x376)][_0x5342f4(0x14f)](F,this[_0x5342f4(0x2d2)],this[_0x5342f4(0x2b2)],null,this[_0x5342f4(0x474)],this[_0x5342f4(0x409)]);}[_0x1e47ba(0x17f)](){return this;}[_0x1e47ba(0x356)](_0x266367){const _0x26f776=_0x1e47ba;_0x266367=_0x266367!=null?_0x266367:this['_getSendChangesetTimeout'](),this[_0x26f776(0x13c)]=new Date()[_0x26f776(0x3c3)](),this[_0x26f776(0x3dc)]=setTimeout(()=>{const _0x21fe21=_0x26f776;this[_0x21fe21(0x48a)]();let _0x4d8327=null;switch(this[_0x21fe21(0x2b2)]){case k[_0x21fe21(0x342)]:{_0x4d8327=is(this[_0x21fe21(0x474)],this[_0x21fe21(0x2d2)],this[_0x21fe21(0x464)],this[_0x21fe21(0x193)],this[_0x21fe21(0x29b)]);break;}case k[_0x21fe21(0x48c)]:{_0x4d8327=ns(this['_pendingMutations'],this[_0x21fe21(0x2d2)],this[_0x21fe21(0x464)],this[_0x21fe21(0x193)],this[_0x21fe21(0x29b)]);break;}default:throw new Error(_0x21fe21(0x1ae)+this[_0x21fe21(0x2b2)]+_0x21fe21(0x2c9));}const {changeset:_0xb32065,pendingMutations:_0x300bcb}=_0x4d8327;this[_0x21fe21(0x409)][_0x21fe21(0x48b)](_0xb32065);const _0x888042=_0x300bcb['length']?this['_injector']['createInstance']($,this['unitID'],this[_0x21fe21(0x2b2)],_0xb32065,_0x300bcb,this[_0x21fe21(0x409)]):this[_0x21fe21(0x376)][_0x21fe21(0x14f)](B,this[_0x21fe21(0x2d2)],this[_0x21fe21(0x2b2)],_0xb32065,this['_handler']);_0x888042['_updateLocalCache'](),this['_handler'][_0x21fe21(0x1d7)](this,_0x888042);},_0x266367);}[_0x1e47ba(0x2fb)](){const _0x3a0f88=_0x1e47ba;var _0x450622;return(_0x450622=this[_0x3a0f88(0xfd)][_0x3a0f88(0x159)](It))!=null?_0x450622:rs;}[_0x1e47ba(0x222)](){throw new Error('[PendingState]:\x20invalid\x20calling\x20to\x20`resend`.');}[_0x1e47ba(0x48a)](){const _0x4d5545=_0x1e47ba;this[_0x4d5545(0x3dc)]!=null&&(clearTimeout(this[_0x4d5545(0x3dc)]),this[_0x4d5545(0x3dc)]=null);}[_0x1e47ba(0x242)](_0x2c5100){const _0x4592c5=_0x1e47ba;return this[_0x4592c5(0x48a)](),this[_0x4592c5(0x376)]['createInstance'](Y,this['unitID'],this['type'],null,this[_0x4592c5(0x474)],this[_0x4592c5(0x409)],_0x2c5100);}};j=K([m(0x4,h[_0x1e47ba(0x443)](h['Injector'])),m(0x5,h[_0x1e47ba(0x443)](u[_0x1e47ba(0x2b5)])),m(0x6,h['Inject'](exports[_0x1e47ba(0x23e)])),m(0x7,h[_0x1e47ba(0x443)](G)),m(0x8,a[_0x1e47ba(0x467)]),m(0x9,a[_0x1e47ba(0x44e)]),m(0xa,a[_0x1e47ba(0x306)]),m(0xb,u[_0x1e47ba(0x1c3)]),m(0xc,a[_0x1e47ba(0x118)]),m(0xd,a[_0x1e47ba(0x385)])],j);let B=class extends X{constructor(_0x3eb101,_0x16ad24,_0x177346,_0x3f9aa8,_0x8d6d9e,_0x23ce9a,_0x5372f9,_0x421042,_0x33c0b3,_0x3920a0,_0x2d3101){const _0x208a98=_0x1e47ba;super(_0x3eb101,_0x16ad24,_0x177346,[],_0x3f9aa8,_0x421042,_0x2d3101,_0x23ce9a,_0x5372f9),d(this,_0x208a98(0x3ad),_0x208a98(0x13d)),(this[_0x208a98(0x376)]=_0x8d6d9e,this[_0x208a98(0x18f)]=_0x33c0b3,this[_0x208a98(0x35c)]=_0x3920a0);}[_0x1e47ba(0x262)](_0x491016){const _0x28b181=_0x1e47ba,_0x19cd63=this['_injector'][_0x28b181(0x14f)]($,this[_0x28b181(0x2d2)],this['type'],this[_0x28b181(0x333)],[_0x491016],this[_0x28b181(0x409)]);return _0x19cd63[_0x28b181(0x240)](),_0x19cd63;}[_0x1e47ba(0x128)](_0x5679f8){const _0x2b3f2f=_0x1e47ba;if(this[_0x2b3f2f(0x158)](_0x5679f8))return this[_0x2b3f2f(0x376)][_0x2b3f2f(0x14f)](H,this[_0x2b3f2f(0x2d2)],this['type'],this[_0x2b3f2f(0x333)],[],null,[_0x5679f8],this[_0x2b3f2f(0x409)]);try{const _0x16bff4=this[_0x2b3f2f(0x35c)][_0x2b3f2f(0x32a)]([_0x5679f8],[this[_0x2b3f2f(0x333)]],!0x1);if(u['isTransformChangesetsSuccess'](_0x16bff4)){const {c1Prime:_0x31a725,c2Prime:_0x51af20}=_0x16bff4;this['_executeRemoteChangeset'](_0x31a725[0x0]),_0x51af20[0x0][_0x2b3f2f(0xf4)]=this[_0x2b3f2f(0x353)]();const _0x54ea40=this[_0x2b3f2f(0x376)]['createInstance'](B,this[_0x2b3f2f(0x2d2)],this[_0x2b3f2f(0x2b2)],_0x51af20[0x0],this[_0x2b3f2f(0x409)]);return _0x54ea40[_0x2b3f2f(0x240)](),_0x54ea40;}return this[_0x2b3f2f(0x242)](!0x1);}catch(_0x1665f9){return this['_logService']['error'](_0x1665f9),this[_0x2b3f2f(0x242)](!0x1);}}[_0x1e47ba(0xea)](_0x37156a){const _0x1c8238=_0x1e47ba,_0x4ba2fd=this[_0x1c8238(0x193)][_0x1c8238(0x374)](this[_0x1c8238(0x2d2)]);if(_0x37156a['revision']<_0x4ba2fd-0x1)return this;if(this[_0x1c8238(0x158)](_0x37156a))return this[_0x1c8238(0x376)][_0x1c8238(0x14f)](H,this[_0x1c8238(0x2d2)],this[_0x1c8238(0x2b2)],null,[],this[_0x1c8238(0x333)],[],this[_0x1c8238(0x409)]);this[_0x1c8238(0x13e)]();const _0x4db01d=this[_0x1c8238(0x376)][_0x1c8238(0x14f)](le,this[_0x1c8238(0x2d2)],this['type'],this[_0x1c8238(0x409)]);return _0x4db01d[_0x1c8238(0x240)](),_0x4db01d;}[_0x1e47ba(0x2de)](_0x3707fb){const _0x158770=_0x1e47ba;return this['_onConflict'](!!(_0x3707fb!=null&&_0x3707fb[_0x158770(0x161)]));}[_0x1e47ba(0x3cc)](){const _0x414b46=_0x1e47ba;return this[_0x414b46(0x376)][_0x414b46(0x14f)](F,this[_0x414b46(0x2d2)],this[_0x414b46(0x2b2)],this[_0x414b46(0x333)],[],this[_0x414b46(0x409)]);}[_0x1e47ba(0x17f)](){return this;}[_0x1e47ba(0x222)](){const _0xeb20b9=_0x1e47ba;this[_0xeb20b9(0x409)][_0xeb20b9(0x48b)](this[_0xeb20b9(0x333)]);}[_0x1e47ba(0x242)](_0x532164){const _0x2de454=_0x1e47ba;return this['_injector']['createInstance'](Y,this[_0x2de454(0x2d2)],this[_0x2de454(0x2b2)],this[_0x2de454(0x333)],[],this[_0x2de454(0x409)],_0x532164);}};B=K([m(0x4,h[_0x1e47ba(0x443)](h['Injector'])),m(0x5,h['Inject'](u[_0x1e47ba(0x2b5)])),m(0x6,h[_0x1e47ba(0x443)](exports[_0x1e47ba(0x23e)])),m(0x7,a['ICommandService']),m(0x8,a[_0x1e47ba(0x467)]),m(0x9,u[_0x1e47ba(0x1c3)]),m(0xa,a[_0x1e47ba(0x385)])],B);let $=class extends X{constructor(_0x50f0fc,_0x35464e,_0x44adc6,_0x241a6b,_0x1b241e,_0x405cd2,_0x2067c9,_0x3cde56,_0x5ac5ac,_0x435595,_0x218dbd,_0x5b4db1){const _0xbc20a8=_0x1e47ba;super(_0x50f0fc,_0x35464e,_0x44adc6,_0x241a6b,_0x1b241e,_0x5ac5ac,_0x5b4db1,_0x2067c9,_0x3cde56),d(this,_0xbc20a8(0x3ad),_0xbc20a8(0x3b6)),(this[_0xbc20a8(0x376)]=_0x405cd2,this['_logService']=_0x435595,this['_transformService']=_0x218dbd);}['appendMutation'](_0x36666f){const _0x38d595=_0x1e47ba;return this['_pendingMutations'][_0x38d595(0x441)](_0x36666f),this;}[_0x1e47ba(0x128)](_0x55923d){const _0x1ba8dd=_0x1e47ba;if(this[_0x1ba8dd(0x158)](_0x55923d))return this[_0x1ba8dd(0x376)][_0x1ba8dd(0x14f)](H,this[_0x1ba8dd(0x2d2)],this['type'],this[_0x1ba8dd(0x333)],this['_pendingMutations'],null,[_0x55923d],this['_handler']);try{const _0x5e05f9=this[_0x1ba8dd(0x35c)][_0x1ba8dd(0x32a)]([_0x55923d],[this[_0x1ba8dd(0x333)]],!0x1);if(u['isTransformChangesetsSuccess'](_0x5e05f9)){const {c1Prime:_0x43036f,c2Prime:_0x41af83}=_0x5e05f9,_0x477675=this[_0x1ba8dd(0x35c)][_0x1ba8dd(0x41f)](_0x43036f[0x0],this[_0x1ba8dd(0x474)]);if(u['isTransformMutationsWithChangesetSuccess'](_0x477675)){const {c1Prime:_0x46935c,m2Prime:_0x38391e}=_0x477675;return this['_executeRemoteChangeset'](_0x46935c),_0x41af83[0x0][_0x1ba8dd(0xf4)]=this[_0x1ba8dd(0x353)](),this[_0x1ba8dd(0x376)][_0x1ba8dd(0x14f)]($,this['unitID'],this['type'],_0x41af83[0x0],_0x38391e,this['_handler']);}throw _0x477675[_0x1ba8dd(0x343)];}throw _0x5e05f9[_0x1ba8dd(0x343)];}catch(_0x22e0a0){return this[_0x1ba8dd(0x18f)][_0x1ba8dd(0x343)](_0x22e0a0),this[_0x1ba8dd(0x242)](!0x1);}}['onRemoteAck'](_0x55462e){const _0x1e0c4c=_0x1e47ba;if(this[_0x1e0c4c(0x158)](_0x55462e))return this['_injector'][_0x1e0c4c(0x14f)](H,this['unitID'],this[_0x1e0c4c(0x2b2)],null,this[_0x1e0c4c(0x474)],this[_0x1e0c4c(0x333)],[],this[_0x1e0c4c(0x409)]);this['_incrementRevisionNumber']();const _0x394785=this[_0x1e0c4c(0x376)][_0x1e0c4c(0x14f)](j,this[_0x1e0c4c(0x2d2)],this[_0x1e0c4c(0x2b2)],this[_0x1e0c4c(0x474)],this[_0x1e0c4c(0x409)]);return _0x394785[_0x1e0c4c(0x356)](),_0x394785['_updateLocalCache'](),_0x394785;}[_0x1e47ba(0x2de)](_0x5e725b){const _0x2b748f=_0x1e47ba;return this[_0x2b748f(0x242)](!!(_0x5e725b!=null&&_0x5e725b[_0x2b748f(0x161)]));}[_0x1e47ba(0x3cc)](){const _0x805e52=_0x1e47ba;return this['_injector'][_0x805e52(0x14f)](F,this[_0x805e52(0x2d2)],this[_0x805e52(0x2b2)],this[_0x805e52(0x333)],this[_0x805e52(0x474)],this['_handler']);}['toggleOnline'](){return this;}[_0x1e47ba(0x222)](){const _0x4b802e=_0x1e47ba;this[_0x4b802e(0x409)][_0x4b802e(0x48b)](this['_awaitingChangeset']);}[_0x1e47ba(0x242)](_0x3abdc3){const _0x1f3334=_0x1e47ba;return this[_0x1f3334(0x376)][_0x1f3334(0x14f)](Y,this['unitID'],this[_0x1f3334(0x2b2)],null,this['_pendingMutations'],this['_handler'],_0x3abdc3);}};$=K([m(0x5,h['Inject'](h['Injector'])),m(0x6,h[_0x1e47ba(0x443)](u[_0x1e47ba(0x2b5)])),m(0x7,h[_0x1e47ba(0x443)](exports[_0x1e47ba(0x23e)])),m(0x8,a['ICommandService']),m(0x9,a[_0x1e47ba(0x467)]),m(0xa,u['ITransformService']),m(0xb,a['IUndoRedoService'])],$);let Y=class extends X{constructor(_0x5dd58c,_0xcb51bf,_0x3a0305,_0x2b325d,_0x594849,_0x50e995=!0x1,_0x4621d9,_0x31a55b,_0x40c5b9,_0x4780c3,_0x54aba0,_0x5c130c,_0x207d97){const _0x16f47a=_0x1e47ba;super(_0x5dd58c,_0xcb51bf,_0x3a0305,_0x2b325d,_0x594849,_0x31a55b,_0x40c5b9,_0x54aba0,_0x4780c3),d(this,_0x16f47a(0x3ad),_0x16f47a(0x150)),(this[_0x16f47a(0x109)]=_0x50e995,this[_0x16f47a(0x468)]=_0x4621d9,this[_0x16f47a(0x121)]=_0x5c130c,this[_0x16f47a(0x2c1)]=_0x207d97,this[_0x16f47a(0x1d2)](),this[_0x16f47a(0x396)](),this['_disableEditing']());}[_0x1e47ba(0x262)](){return this;}[_0x1e47ba(0x128)](){return this;}['onRemoteAck'](){return this;}[_0x1e47ba(0x2de)](){return this;}['toggleOffline'](){return this;}['toggleOnline'](){return this;}[_0x1e47ba(0x222)](){const _0x574290=_0x1e47ba;throw new Error(_0x574290(0x422));}[_0x1e47ba(0x396)](){const _0x3e1d17=_0x1e47ba;this[_0x3e1d17(0x12a)]['updateOfflineData'](this['unitID'],this[_0x3e1d17(0x2b2)],null,[]);}[_0x1e47ba(0x1d2)](){const _0x4ce9e5=_0x1e47ba;this[_0x4ce9e5(0x109)]?this[_0x4ce9e5(0x2c1)][_0x4ce9e5(0x2e7)]({'title':this[_0x4ce9e5(0x121)]['t'](_0x4ce9e5(0x21c)),'content':this['_localeService']['t'](_0x4ce9e5(0x390)),'type':_0x4ce9e5(0x343),'duration':0x0}):this[_0x4ce9e5(0x2c1)][_0x4ce9e5(0x2e7)]({'title':this[_0x4ce9e5(0x121)]['t']('conflict.title'),'content':this[_0x4ce9e5(0x121)]['t']('conflict.content'),'type':_0x4ce9e5(0x343),'duration':0x0});}[_0x1e47ba(0x381)](){const _0x12831b=_0x1e47ba;this['_permissionService']['updatePermissionPoint'](new E[(_0x12831b(0x29f))](this[_0x12831b(0x2d2)])['id'],!0x1);}};Y=K([m(0x6,h[_0x1e47ba(0x443)](a[_0x1e47ba(0x320)])),m(0x7,a[_0x1e47ba(0x44e)]),m(0x8,a['IUndoRedoService']),m(0x9,h['Inject'](exports[_0x1e47ba(0x23e)])),m(0xa,h[_0x1e47ba(0x443)](u[_0x1e47ba(0x2b5)])),m(0xb,h[_0x1e47ba(0x443)](a[_0x1e47ba(0x37f)])),m(0xc,U[_0x1e47ba(0x20e)])],Y);let F=class extends X{constructor(_0x18a72b,_0x918673,_0x5ad261,_0x5e9832,_0x5aa080,_0x3443fa,_0x3f76ff,_0x4d3f08,_0x28c2fa,_0x26dea2){const _0x387c6f=_0x1e47ba;super(_0x18a72b,_0x918673,_0x5ad261,_0x5e9832,_0x5aa080,_0x28c2fa,_0x26dea2,_0x3f76ff,_0x4d3f08),d(this,'status',_0x387c6f(0x3af)),this[_0x387c6f(0x376)]=_0x3443fa;}['appendMutation'](_0x137373){const _0x2b2c4c=_0x1e47ba;return this[_0x2b2c4c(0x474)]['push'](_0x137373),this[_0x2b2c4c(0x240)](),this;}[_0x1e47ba(0x128)](_0x1e046d){const _0x1e617c=_0x1e47ba;throw new Error(_0x1e617c(0x166));}[_0x1e47ba(0xea)](){const _0x1711b3=_0x1e47ba;throw new Error(_0x1711b3(0x145));}[_0x1e47ba(0x2de)](){const _0xef7467=_0x1e47ba;throw new Error(_0xef7467(0x24c));}['toggleOffline'](){return this;}[_0x1e47ba(0x17f)](){const _0x445762=_0x1e47ba,{_injector:_0x556b04,_pendingMutations:_0x46e4ba,_awaitingChangeset:_0x5e32fc,unitID:_0x172be6,_handler:_0x418263,type:_0x24ade9}=this,_0x55ae1e=pt(_0x556b04,_0x172be6,_0x24ade9,_0x5e32fc,_0x46e4ba,_0x418263);return _0x55ae1e instanceof j?_0x55ae1e['_schedule']():(_0x55ae1e instanceof $||_0x55ae1e instanceof B)&&_0x55ae1e[_0x445762(0x222)](),_0x55ae1e;}['resend'](){const _0xf23c6e=_0x1e47ba;throw new Error(_0xf23c6e(0x452));}};F=K([m(0x5,h[_0x1e47ba(0x443)](h['Injector'])),m(0x6,h['Inject'](u['RevisionService'])),m(0x7,h[_0x1e47ba(0x443)](exports[_0x1e47ba(0x23e)])),m(0x8,a[_0x1e47ba(0x44e)]),m(0x9,a[_0x1e47ba(0x385)])],F);let H=class extends X{constructor(_0x333f37,_0x35176c,_0x3ef973,_0x5095a8,_0x2485b1,_0x506f6c,_0x28dde0,_0x3a007f,_0x592f7a,_0x4a5f10,_0x15fd96,_0x2c005c,_0x25ab5f,_0x305c2e){const _0x2a5772=_0x1e47ba;super(_0x333f37,_0x35176c,_0x3ef973,_0x5095a8,_0x28dde0,_0x2c005c,_0x25ab5f,_0x592f7a,_0x4a5f10),d(this,'status',_0x2a5772(0x18e)),(this[_0x2a5772(0x167)]=_0x2485b1,this[_0x2a5772(0x345)]=_0x506f6c,this[_0x2a5772(0x376)]=_0x3a007f,this[_0x2a5772(0x18f)]=_0x15fd96,this[_0x2a5772(0x35c)]=_0x305c2e);}['onMissedChangesetFetched'](_0x3808df){const _0x570125=_0x1e47ba;try{const _0x276a75=[..._0x3808df,...this[_0x570125(0x345)]],_0x57db88=[this[_0x570125(0x333)]||this[_0x570125(0x167)]][_0x570125(0x31b)](_0x154b35=>!!_0x154b35);let _0x19407a,_0x2a4f84;if(_0x57db88[_0x570125(0x3fb)]){const _0x2ab982=this['_transformService']['transformChangesets'](_0x276a75,_0x57db88,!0x1);if(!u['isTransformChangesetsSuccess'](_0x2ab982))throw _0x2ab982['error'];_0x19407a=_0x2ab982[_0x570125(0x273)],_0x2a4f84=_0x2ab982[_0x570125(0x287)];}else _0x19407a=_0x276a75,_0x2a4f84=[];let _0x86631e=this[_0x570125(0x474)];_0x19407a[_0x570125(0x1e6)](_0x2fb57a=>{const _0x4a2135=_0x570125;let _0x28b58a;if(_0x86631e[_0x4a2135(0x3fb)]){const _0x193c9d=this[_0x4a2135(0x35c)][_0x4a2135(0x41f)](_0x2fb57a,_0x86631e);if(!u[_0x4a2135(0x3d0)](_0x193c9d))throw _0x193c9d[_0x4a2135(0x343)];_0x28b58a=_0x193c9d[_0x4a2135(0x273)],_0x86631e=_0x193c9d[_0x4a2135(0x233)];}else _0x28b58a=_0x2fb57a;this[_0x4a2135(0x164)](_0x28b58a);}),this[_0x570125(0x167)]&&this[_0x570125(0x13e)](),this[_0x570125(0x333)]&&_0x2a4f84[_0x570125(0x3fb)]&&(_0x2a4f84[0x0][_0x570125(0xf4)]=this[_0x570125(0x353)]());let _0x138644;if(this[_0x570125(0x333)]&&_0x86631e[_0x570125(0x3fb)]!==0x0)_0x138644=this['_injector']['createInstance']($,this[_0x570125(0x2d2)],this[_0x570125(0x2b2)],_0x2a4f84[0x0],_0x86631e,this[_0x570125(0x409)]);else{if(this['_awaitingChangeset']&&_0x86631e[_0x570125(0x3fb)]===0x0)_0x2a4f84[0x0][_0x570125(0xf4)]=this[_0x570125(0x353)](),_0x138644=this['_injector'][_0x570125(0x14f)](B,this[_0x570125(0x2d2)],this[_0x570125(0x2b2)],_0x2a4f84[0x0],this[_0x570125(0x409)]);else{if(_0x86631e['length']!==0x0){const _0x1df3eb=this[_0x570125(0x376)][_0x570125(0x14f)](j,this[_0x570125(0x2d2)],this[_0x570125(0x2b2)],_0x86631e,this[_0x570125(0x409)]);_0x1df3eb[_0x570125(0x356)](),_0x138644=_0x1df3eb;}else _0x138644=this[_0x570125(0x376)][_0x570125(0x14f)](le,this[_0x570125(0x2d2)],this[_0x570125(0x2b2)],this[_0x570125(0x409)]);}}return _0x138644[_0x570125(0x240)](),_0x138644;}catch(_0x114f4a){return this[_0x570125(0x18f)][_0x570125(0x343)](_0x570125(0x1b1),_0x570125(0x341),_0x114f4a),this[_0x570125(0x376)]['createInstance'](Y,this[_0x570125(0x2d2)],this[_0x570125(0x2b2)],this[_0x570125(0x333)],this[_0x570125(0x474)],this[_0x570125(0x409)],!0x1);}}['resend'](){const _0x79731e=_0x1e47ba;throw new Error(_0x79731e(0x416));}[_0x1e47ba(0x262)](_0xeb8ac){const _0x2ff1ec=_0x1e47ba;return this[_0x2ff1ec(0x474)]['push'](_0xeb8ac),this;}[_0x1e47ba(0x128)](_0xd0ef06){const _0x1d01f8=_0x1e47ba;return this[_0x1d01f8(0x345)]['push'](_0xd0ef06),this;}['onRemoteAck'](_0x461b){const _0x3c467e=_0x1e47ba;if(this[_0x3c467e(0x333)])return this[_0x3c467e(0x167)]=this[_0x3c467e(0x333)],this['_awaitingChangeset']=null,this;throw new Error(_0x3c467e(0x330));}[_0x1e47ba(0x2de)](_0x5383cf){const _0x4984f5=_0x1e47ba;return this[_0x4984f5(0x242)](!!(_0x5383cf!=null&&_0x5383cf[_0x4984f5(0x161)]));}['toggleOffline'](){const _0x494fa0=_0x1e47ba;return this[_0x494fa0(0x376)][_0x494fa0(0x14f)](F,this[_0x494fa0(0x2d2)],this[_0x494fa0(0x2b2)],this[_0x494fa0(0x333)],this[_0x494fa0(0x474)],this['_handler']);}[_0x1e47ba(0x17f)](){return this;}[_0x1e47ba(0x242)](_0x1747cb){const _0x5f567a=_0x1e47ba;return this['_injector'][_0x5f567a(0x14f)](Y,this[_0x5f567a(0x2d2)],this[_0x5f567a(0x2b2)],this[_0x5f567a(0x333)],this['_pendingMutations'],this[_0x5f567a(0x409)],_0x1747cb);}};H=K([m(0x7,h[_0x1e47ba(0x443)](h['Injector'])),m(0x8,h[_0x1e47ba(0x443)](u[_0x1e47ba(0x2b5)])),m(0x9,h[_0x1e47ba(0x443)](exports[_0x1e47ba(0x23e)])),m(0xa,a[_0x1e47ba(0x467)]),m(0xb,a['ICommandService']),m(0xc,a['IUndoRedoService']),m(0xd,u[_0x1e47ba(0x1c3)])],H);function pt(_0x466929,_0x24f097,_0x5de2e5,_0x59e3cc,_0x3050c5,_0x96a8c9){const _0x232231=_0x1e47ba;return _0x59e3cc&&_0x3050c5[_0x232231(0x3fb)]?_0x466929[_0x232231(0x14f)]($,_0x24f097,_0x5de2e5,_0x59e3cc,_0x3050c5,_0x96a8c9):_0x59e3cc?_0x466929[_0x232231(0x14f)](B,_0x24f097,_0x5de2e5,_0x59e3cc,_0x96a8c9):_0x3050c5[_0x232231(0x3fb)]?_0x466929['createInstance'](j,_0x24f097,_0x5de2e5,_0x3050c5,_0x96a8c9):_0x466929[_0x232231(0x14f)](le,_0x24f097,_0x5de2e5,_0x96a8c9);}var Ce=(_0x50d623,_0x19eb53,_0x253bea,_0xd26ab8)=>{for(var _0xc61b95=_0x19eb53,_0x2fb707=_0x50d623['length']-0x1,_0x32a7cb;_0x2fb707>=0x0;_0x2fb707--)(_0x32a7cb=_0x50d623[_0x2fb707])&&(_0xc61b95=_0x32a7cb(_0xc61b95)||_0xc61b95);return _0xc61b95;},I=(_0x4dc33e,_0x4fc35a)=>(_0x327368,_0x5b2e83)=>_0x4fc35a(_0x327368,_0x5b2e83,_0x4dc33e);exports['CollaborationController']=class extends a[_0x1e47ba(0x45e)]{constructor(_0x3e9fe9,_0x45eaa0,_0x1436f9){const _0x4d14db=_0x1e47ba;super(),d(this,_0x4d14db(0x272),new Map()),d(this,_0x4d14db(0x39f),new v[(_0x4d14db(0x184))]()),(this[_0x4d14db(0x376)]=_0x3e9fe9,this[_0x4d14db(0x405)]=_0x45eaa0,this[_0x4d14db(0x464)]=_0x1436f9,this[_0x4d14db(0x480)]());}['dispose'](){const _0x44e889=_0x1e47ba;super['dispose'](),this[_0x44e889(0x272)][_0x44e889(0x1e6)](_0x42caf3=>_0x42caf3['dispose']()),this[_0x44e889(0x272)]['clear']();}['getCollabEntity'](_0x2b2411){var _0x20be69;return(_0x20be69=this['_entities']['get'](_0x2b2411))!=null?_0x20be69:null;}[_0x1e47ba(0x1f3)](_0x3f8e4f){const _0x2fff11=_0x1e47ba,_0x3df6b5=this[_0x2fff11(0xec)](_0x3f8e4f);return _0x3df6b5?v['of'](_0x3df6b5):this[_0x2fff11(0x39f)][_0x2fff11(0x1cb)](T[_0x2fff11(0x31b)](_0x27bff3=>_0x27bff3[_0x2fff11(0x2d2)]===_0x3f8e4f));}[_0x1e47ba(0x480)](){const _0x24e064=_0x1e47ba;this[_0x24e064(0x464)]['getTypeOfUnitAdded$'](a['UniverInstanceType']['UNIVER_SHEET'])['pipe'](v['takeUntil'](this[_0x24e064(0x2b1)]),T['delay'](0x10))['subscribe'](async _0x22ae11=>{const _0x4d92dc=_0x24e064,_0x155913=_0x22ae11[_0x4d92dc(0x231)](),_0x555480=await this[_0x4d92dc(0x39e)](_0x155913,k['UNIVER_SHEET']);this[_0x4d92dc(0x272)][_0x4d92dc(0x204)](_0x155913,_0x555480);}),this[_0x24e064(0x464)]['getTypeOfUnitAdded$'](a['UniverInstanceType'][_0x24e064(0x48c)])[_0x24e064(0x1cb)](v[_0x24e064(0x308)](this[_0x24e064(0x2b1)]),T[_0x24e064(0x3bd)](0x10))[_0x24e064(0x1cb)](T[_0x24e064(0x31b)](_0x3cd571=>!_0x3cd571[_0x24e064(0x231)]()['startsWith']('__')))[_0x24e064(0x319)](async _0x29c877=>{const _0x36c7fc=_0x24e064,_0x54b5d8=_0x29c877['getUnitId'](),_0x21dd07=await this[_0x36c7fc(0x39e)](_0x54b5d8,k[_0x36c7fc(0x48c)]);this['_entities']['set'](_0x54b5d8,_0x21dd07);}),v[_0x24e064(0x19a)](this[_0x24e064(0x464)][_0x24e064(0x27d)](a[_0x24e064(0x12f)][_0x24e064(0x342)]),this[_0x24e064(0x464)][_0x24e064(0x27d)](a['UniverInstanceType'][_0x24e064(0x48c)]))[_0x24e064(0x1cb)](v[_0x24e064(0x308)](this[_0x24e064(0x2b1)]))['subscribe'](_0x5008ef=>{const _0x594aca=_0x24e064,_0x47eb91=_0x5008ef[_0x594aca(0x231)](),_0x5425bb=this[_0x594aca(0x272)]['get'](_0x47eb91);_0x5425bb&&(_0x5425bb[_0x594aca(0x36c)](),this[_0x594aca(0x272)][_0x594aca(0xf8)](_0x47eb91));});}async[_0x1e47ba(0x39e)](_0x490867,_0x5c958c){const _0x1a64d0=_0x1e47ba,_0x3e9196=await this[_0x1a64d0(0x405)][_0x1a64d0(0x3fe)](_0x490867),_0x382353=this[_0x1a64d0(0x376)][_0x1a64d0(0x14f)](this[_0x1a64d0(0x151)](_0x5c958c),_0x490867,_0x5c958c,_0x3e9196);return await _0x382353[_0x1a64d0(0x46d)](),this['_entityInit$'][_0x1a64d0(0x424)](_0x382353),_0x382353;}[_0x1e47ba(0x151)](_0x30481c){const _0x14c62f=_0x1e47ba;switch(_0x30481c){case k[_0x14c62f(0x48c)]:return Ae;case k[_0x14c62f(0x342)]:return we;default:throw new Error(_0x14c62f(0x383)+_0x30481c);}}},exports[_0x1e47ba(0x450)]=Ce([a[_0x1e47ba(0x280)](a[_0x1e47ba(0x239)][_0x1e47ba(0x42f)],exports[_0x1e47ba(0x450)]),I(0x0,h[_0x1e47ba(0x443)](h['Injector'])),I(0x1,h['Inject'](exports[_0x1e47ba(0x17a)])),I(0x2,a[_0x1e47ba(0x118)])],exports[_0x1e47ba(0x450)]);let Ie=class extends a['RxDisposable']{constructor(_0x8327c8,_0x13b64a,_0x4a2b23,_0x40005a,_0x534eab,_0x352c4c,_0x132559,_0x722f36,_0x205b4e,_0x4a7c02,_0x17194c,_0x2569d2,_0x28459a){const _0x26d269=_0x1e47ba;super(),d(this,'_state$',new v['BehaviorSubject'](null)),d(this,_0x26d269(0x40f),this[_0x26d269(0x25f)][_0x26d269(0x2ad)]()),d(this,'_state'),d(this,'_collaborationPaused',!0x1),d(this,'status$',this[_0x26d269(0x40f)][_0x26d269(0x1cb)](T['map'](_0x31de48=>_0x31de48?_0x31de48['status']:y['OFFLINE']),T[_0x26d269(0x3a5)](0x1))),d(this,_0x26d269(0x228),!0x1),d(this,'_remoteChangesetQueue',[]),(this[_0x26d269(0x2d2)]=_0x8327c8,this[_0x26d269(0x1ef)]=_0x13b64a,this[_0x26d269(0x2f7)]=_0x4a2b23,this['_injector']=_0x40005a,this[_0x26d269(0x12a)]=_0x534eab,this[_0x26d269(0x206)]=_0x352c4c,this['_localeService']=_0x132559,this[_0x26d269(0x193)]=_0x722f36,this[_0x26d269(0x18f)]=_0x205b4e,this[_0x26d269(0x3cd)]=_0x4a7c02,this['_messageService']=_0x17194c,this[_0x26d269(0x468)]=_0x2569d2,this['_singleActiveUnitService']=_0x28459a);}get[_0x1e47ba(0x40a)](){const _0x5d1f10=_0x1e47ba;return this[_0x5d1f10(0x42e)];}async[_0x1e47ba(0x46d)](){const _0x4806b5=_0x1e47ba;if(this[_0x4806b5(0x40a)])throw new Error(_0x4806b5(0x33d));await this[_0x4806b5(0x480)]();}[_0x1e47ba(0x309)](){return this['_collaborationPaused']=!0x0,a['toDisposable'](()=>{const _0x1ec511=_0x55a2;this[_0x1ec511(0x301)]=!0x1,this[_0x1ec511(0x2da)]();});}[_0x1e47ba(0x196)](_0x1fab05){const _0x2fdd62=_0x1e47ba;this['_state']=_0x1fab05,this[_0x2fdd62(0x25f)][_0x2fdd62(0x424)](_0x1fab05);}async[_0x1e47ba(0x480)](){const _0x4ba58d=_0x1e47ba;var _0x443669;return this[_0x4ba58d(0x196)](await this[_0x4ba58d(0x39a)]()),this[_0x4ba58d(0x40c)]&&((_0x443669=this[_0x4ba58d(0x40c)])==null||_0x443669[_0x4ba58d(0x3c7)](this[_0x4ba58d(0x2d2)]),this[_0x4ba58d(0x2e4)](a['toDisposable'](this[_0x4ba58d(0x40c)][_0x4ba58d(0x3be)](this[_0x4ba58d(0x2d2)])[_0x4ba58d(0x319)](_0x44c806=>{const _0xa49b89=_0x4ba58d;this[_0xa49b89(0x18f)][_0xa49b89(0x199)]('[CollaborationEntity]',_0xa49b89(0x2e1),_0x44c806),_0x44c806===mt['OTHER_CLIENTS_EDITING']?(this['_messageService'][_0xa49b89(0x2e7)]({'content':this[_0xa49b89(0x121)]['t'](_0xa49b89(0x41b)),'type':ce[_0xa49b89(0x1b6)][_0xa49b89(0x1da)]}),this[_0xa49b89(0x468)][_0xa49b89(0x246)](new E['WorkbookEditablePermission'](this['unitID'])['id'],!0x1)):this[_0xa49b89(0x468)][_0xa49b89(0x246)](new E[(_0xa49b89(0x29f))](this[_0xa49b89(0x2d2)])['id'],!0x0);})))),this[_0x4ba58d(0x2e4)](a[_0x4ba58d(0x251)](this[_0x4ba58d(0x2f7)][_0x4ba58d(0x219)][_0x4ba58d(0x319)](_0x131e79=>{const _0x48d830=_0x4ba58d;_0x131e79===W[_0x48d830(0x256)]?this[_0x48d830(0x15c)]():_0x131e79===W['OFFLINE']&&this[_0x48d830(0x12c)]();}))),this[_0x4ba58d(0x2e4)](a[_0x4ba58d(0x251)](this['_session'][_0x4ba58d(0x288)][_0x4ba58d(0x319)](_0x2a170c=>{const _0x4d0fd7=_0x4ba58d;try{switch(_0x2a170c[_0x4d0fd7(0x2a0)]){case u['CollaborationEvent'][_0x4d0fd7(0x45f)]:{this[_0x4d0fd7(0x30f)](u['parseProtocolChangeset'](_0x2a170c[_0x4d0fd7(0x1b7)]));break;}case u[_0x4d0fd7(0x27c)][_0x4d0fd7(0x11f)]:{this[_0x4d0fd7(0x285)](_0x2a170c['data']);break;}case u['CollaborationEvent'][_0x4d0fd7(0x466)]:{this[_0x4d0fd7(0x30d)]();break;}case u[_0x4d0fd7(0x27c)]['PSEUDO_FETCH_MISSING_RESULT']:{this['_onFetchMissResult'](_0x2a170c['data'][_0x4d0fd7(0x2fe)][_0x4d0fd7(0x290)](_0x3abe7f=>u[_0x4d0fd7(0x180)](_0x3abe7f)));break;}case u[_0x4d0fd7(0x27c)][_0x4d0fd7(0x3f1)]:this[_0x4d0fd7(0x30d)]({'isPermissionRej':!0x0});}}catch(_0x1ccdf0){throw console['error'](_0x4d0fd7(0x3cf),_0x1ccdf0),_0x1ccdf0;}}))),this['_state'];}[_0x1e47ba(0x1f9)](){const _0x44262d=_0x1e47ba;this[_0x44262d(0x228)]=!0x1;}[_0x1e47ba(0x36e)](){const _0x48b846=_0x1e47ba;if(this[_0x48b846(0x228)])throw new Error(_0x48b846(0x318));this['_transitionLocked']=!0x0;}['_onLocalMutation'](_0x28d285){const _0x436b33=_0x1e47ba;this[_0x436b33(0x36e)](),this[_0x436b33(0x196)](this[_0x436b33(0x42e)]['appendMutation'](_0x28d285)),this['_unlockTransition']();}['_onRemoteChangeset'](_0x268915){const _0x5a6df7=_0x1e47ba;if(!(_0x268915[_0x5a6df7(0xe8)]<=this[_0x5a6df7(0x193)][_0x5a6df7(0x374)](this['unitID']))){if(this['_collaborationPaused']){this['_remoteChangesetQueue']['push'](_0x268915);return;}this[_0x5a6df7(0x2dc)](_0x268915);}}[_0x1e47ba(0x2da)](){const _0x36550a=_0x1e47ba;this['_remoteChangesetQueue']['forEach'](_0x31c70c=>this[_0x36550a(0x2dc)](_0x31c70c)),this[_0x36550a(0x237)]=[];}[_0x1e47ba(0x2dc)](_0x1a9cb4){const _0x2354db=_0x1e47ba,_0x48ca46=this[_0x2354db(0x206)][_0x2354db(0x14c)][_0x2354db(0x179)](this[_0x2354db(0x206)][_0x2354db(0x14c)][_0x2354db(0x10f)]()[_0x2354db(0x14e)])(_0x1a9cb4[_0x2354db(0x3df)],null)||_0x1a9cb4['mutations'],_0x5992fe={..._0x1a9cb4,'mutations':_0x48ca46};this[_0x2354db(0x36e)](),this[_0x2354db(0x196)](this[_0x2354db(0x42e)][_0x2354db(0x128)](_0x5992fe)),this[_0x2354db(0x1f9)]();}['_onRemoteACK'](_0x4d9001){const _0x519728=_0x1e47ba;this[_0x519728(0x36e)](),this['_updateState'](this['_state']['onRemoteAck'](_0x4d9001)),this[_0x519728(0x1f9)]();}[_0x1e47ba(0x30d)](_0x45a150){const _0x290c81=_0x1e47ba;this['_lockTransition'](),this['_updateState'](this[_0x290c81(0x42e)][_0x290c81(0x2de)](_0x45a150)),this['_unlockTransition']();}[_0x1e47ba(0x3f0)](_0x2ab24a){const _0x1b2f49=_0x1e47ba;if(!(this[_0x1b2f49(0x42e)]instanceof H))throw new TypeError(_0x1b2f49(0x47f));const _0x56998d=_0x2ab24a['map'](_0x7ee5fa=>{const _0x2e8501=_0x1b2f49,_0x2163ef=this[_0x2e8501(0x206)][_0x2e8501(0x14c)][_0x2e8501(0x179)](this[_0x2e8501(0x206)][_0x2e8501(0x14c)][_0x2e8501(0x10f)]()[_0x2e8501(0x14e)])(_0x7ee5fa[_0x2e8501(0x3df)],null)||_0x7ee5fa[_0x2e8501(0x3df)];return{..._0x7ee5fa,'mutations':_0x2163ef};});this[_0x1b2f49(0x36e)](),this[_0x1b2f49(0x196)](this[_0x1b2f49(0x42e)]['onMissedChangesetFetched'](_0x56998d)),this[_0x1b2f49(0x1f9)]();}[_0x1e47ba(0x12c)](){const _0xb17bba=_0x1e47ba;this[_0xb17bba(0x36e)](),this[_0xb17bba(0x196)](this[_0xb17bba(0x42e)][_0xb17bba(0x3cc)]()),this[_0xb17bba(0x1f9)]();}[_0x1e47ba(0x15c)](){const _0x2cfb6e=_0x1e47ba;this[_0x2cfb6e(0x36e)](),this['_updateState'](this[_0x2cfb6e(0x42e)][_0x2cfb6e(0x17f)]()),this['_unlockTransition']();}async['_createInitialState'](){return new Promise(_0x43993e=>{const _0x129375=_0x55a2;this[_0x129375(0x2f7)][_0x129375(0x219)][_0x129375(0x1cb)](T[_0x129375(0x3e2)](0x1))[_0x129375(0x319)](async _0x12acb0=>{const _0x311dca=_0x129375;_0x43993e(await this['_createInitialStateImpl'](_0x12acb0===W[_0x311dca(0x256)]));});});}[_0x1e47ba(0x163)](){const _0x5baeb7=_0x1e47ba,_0x2cc756=this[_0x5baeb7(0x2d2)];return{'onStateChange':(_0x5496d3,_0x2116e0)=>{const _0xee2ec5=_0x5baeb7;if(_0x5496d3!==this[_0xee2ec5(0x42e)])throw new Error(_0xee2ec5(0x2cf)+_0x5496d3[_0xee2ec5(0x3ad)]+_0xee2ec5(0x3ee)+_0x2116e0['status']+'\x0aCurrent:\x20'+this['_state']['status']);this[_0xee2ec5(0x196)](_0x2116e0);},'onSendChangeset':_0x23843a=>{const _0x7a4ceb=_0x5baeb7,_0x181b39={'eventID':u['CollaborationEvent'][_0x7a4ceb(0x3d8)],'data':{'unitID':_0x23843a[_0x7a4ceb(0x2d2)],'unitType':this[_0x7a4ceb(0x1ef)],'changeset':_0x23843a,'memberID':this[_0x7a4ceb(0x2f7)][_0x7a4ceb(0x331)]()}};this['_session']['send'](_0x181b39,this[_0x7a4ceb(0x2d2)]);},'onMissingChangesets':({from:_0x18959b,to:_0x21dfce})=>{const _0xc37af7=_0x5baeb7;this[_0xc37af7(0x18f)][_0xc37af7(0x199)]('[CollaborationEntity]',_0xc37af7(0x2d6)+_0x18959b+'\x20to\x20'+_0x21dfce);const _0x334652={'eventID':u[_0xc37af7(0x27c)][_0xc37af7(0x347)],'data':{'unitID':_0x2cc756,'unitType':this[_0xc37af7(0x1ef)],'from':_0x18959b,'to':_0x21dfce}};this[_0xc37af7(0x2f7)][_0xc37af7(0x29a)](_0x334652,this[_0xc37af7(0x2d2)]);}};}async['_createInitialStateImpl'](_0x29f88e){const _0x1a00a3=_0x1e47ba;var _0x32eca4,_0x1e828c;const _0x2c2212=await this[_0x1a00a3(0x12a)][_0x1a00a3(0x122)](this[_0x1a00a3(0x2d2)]),_0x42f011=(_0x32eca4=_0x2c2212==null?void 0x0:_0x2c2212[_0x1a00a3(0x3df)])!=null?_0x32eca4:[],_0x3c4f09=(_0x1e828c=_0x2c2212==null?void 0x0:_0x2c2212[_0x1a00a3(0x478)])!=null?_0x1e828c:null,_0x4e558e=this[_0x1a00a3(0x2d2)];try{this[_0x1a00a3(0x437)](_0x3c4f09,_0x42f011);}catch(_0x3b0ce6){this[_0x1a00a3(0x18f)][_0x1a00a3(0x343)](_0x3b0ce6);}const _0x280fae=this['_createHandler']();if(_0x29f88e){const _0x1ecc7e=pt(this[_0x1a00a3(0x376)],_0x4e558e,this[_0x1a00a3(0x1ef)],_0x3c4f09,_0x42f011,_0x280fae);return _0x1ecc7e instanceof j?_0x1ecc7e[_0x1a00a3(0x356)]():(_0x1ecc7e instanceof $||_0x1ecc7e instanceof B)&&_0x1ecc7e[_0x1a00a3(0x222)](),_0x1ecc7e;}return this[_0x1a00a3(0x376)]['createInstance'](F,_0x4e558e,this[_0x1a00a3(0x1ef)],_0x3c4f09,_0x42f011,_0x280fae);}[_0x1e47ba(0x437)](_0x456ec2,_0x991bba){const _0x407b09=_0x1e47ba;var _0x2ea47d,_0x167dd6;const _0x118370=this['_compressMutationService'][_0x407b09(0x14c)]['fetchThroughInterceptors'](this[_0x407b09(0x206)][_0x407b09(0x14c)][_0x407b09(0x10f)]()[_0x407b09(0x14e)]);(_0x2ea47d=_0x118370((_0x456ec2==null?void 0x0:_0x456ec2[_0x407b09(0x3df)])||[],null))==null||_0x2ea47d[_0x407b09(0x1e6)](_0x1eedc6=>this['_commandService']['executeCommand'](_0x1eedc6['id'],_0x1eedc6[_0x407b09(0x183)])),(_0x167dd6=_0x118370(_0x991bba||[],null))==null||_0x167dd6['forEach'](_0x2bb7a9=>this['_commandService']['executeCommand'](_0x2bb7a9['id'],_0x2bb7a9[_0x407b09(0x183)]));}};Ie=Ce([I(0x3,h[_0x1e47ba(0x443)](h[_0x1e47ba(0x488)])),I(0x4,h[_0x1e47ba(0x443)](exports[_0x1e47ba(0x23e)])),I(0x5,h[_0x1e47ba(0x443)](u[_0x1e47ba(0x1c2)])),I(0x6,h[_0x1e47ba(0x443)](a[_0x1e47ba(0x37f)])),I(0x7,h[_0x1e47ba(0x443)](u[_0x1e47ba(0x2b5)])),I(0x8,a[_0x1e47ba(0x467)]),I(0x9,a[_0x1e47ba(0x44e)]),I(0xa,U['IMessageService']),I(0xb,a[_0x1e47ba(0x320)]),I(0xc,h[_0x1e47ba(0x3c0)](Ee))],Ie);let Ae=class extends Ie{constructor(_0x429310,_0x23f020,_0x2ec31c,_0x19fbfc,_0x3aefc3,_0x34c929,_0x5052f8,_0x59d240,_0x200a04,_0x104095,_0x5e2b03,_0x3ef0d0,_0x33707b,_0x158f43,_0x47ffed,_0x7c19af,_0x2d0c0a){const _0x222994=_0x1e47ba;super(_0x429310,_0x23f020,_0x2ec31c,_0x19fbfc,_0x3aefc3,_0x34c929,_0x5052f8,_0x59d240,_0x33707b,_0x158f43,_0x47ffed,_0x7c19af,_0x2d0c0a),this[_0x222994(0x2d2)]=_0x429310,this[_0x222994(0x2b2)]=_0x23f020,this[_0x222994(0x2b6)]=_0x2ec31c,this[_0x222994(0x3b2)]=_0x200a04,this[_0x222994(0x235)]=_0x104095,this[_0x222994(0x417)]=_0x5e2b03,this[_0x222994(0x46e)]=_0x3ef0d0;}[_0x1e47ba(0x163)](){const _0x29c59e=_0x1e47ba,_0x5daee2=super[_0x29c59e(0x163)]();return _0x5daee2['onTransformIME']=_0x541ee0=>this[_0x29c59e(0x235)][_0x29c59e(0x386)](_0x541ee0),_0x5daee2[_0x29c59e(0x257)]=_0xbc6b10=>this[_0x29c59e(0x417)][_0x29c59e(0x35d)](_0xbc6b10),_0x5daee2[_0x29c59e(0x446)]=_0x28c955=>this['_docSyncEditingCollabCursorService']['syncEditingCollabCursor'](_0x28c955),_0x5daee2[_0x29c59e(0x1aa)]=_0x581131=>this[_0x29c59e(0x235)]['transformRemoteChangeset'](_0x581131),_0x5daee2;}async[_0x1e47ba(0x480)](){const _0x4a4a13=_0x1e47ba,_0x4f3218=await super['_init']();return this[_0x4a4a13(0x3b2)][_0x4a4a13(0x1e4)]['pipe'](v[_0x4a4a13(0x308)](this[_0x4a4a13(0x2b1)]))[_0x4a4a13(0x319)](_0x212c0d=>{const _0x5cd10=_0x4a4a13;if(_0x212c0d==null)return;const {unitId:_0x1747e5,redoState:_0x48f8bb,commandId:_0x3181ea}=_0x212c0d;if(_0x1747e5!==this['unitID'])return;const _0x10d129={'id':_0x3181ea,'type':a[_0x5cd10(0x200)][_0x5cd10(0x2ef)],'params':{'unitId':_0x1747e5,'actions':_0x48f8bb[_0x5cd10(0xe3)],'textRanges':null}};this[_0x5cd10(0x433)](_0x10d129);}),_0x4f3218;}};Ae=Ce([I(0x3,h[_0x1e47ba(0x443)](h[_0x1e47ba(0x488)])),I(0x4,h[_0x1e47ba(0x443)](exports[_0x1e47ba(0x23e)])),I(0x5,h[_0x1e47ba(0x443)](u[_0x1e47ba(0x1c2)])),I(0x6,h['Inject'](a[_0x1e47ba(0x37f)])),I(0x7,h[_0x1e47ba(0x443)](u[_0x1e47ba(0x2b5)])),I(0x8,h[_0x1e47ba(0x443)](w[_0x1e47ba(0xf0)])),I(0x9,h[_0x1e47ba(0x443)](ve)),I(0xa,h[_0x1e47ba(0x443)](me)),I(0xb,h[_0x1e47ba(0x443)](Ve)),I(0xc,a[_0x1e47ba(0x467)]),I(0xd,a[_0x1e47ba(0x44e)]),I(0xe,U[_0x1e47ba(0x34b)]),I(0xf,a[_0x1e47ba(0x320)]),I(0x10,h[_0x1e47ba(0x3c0)](Ee))],Ae);let we=class extends Ie{constructor(_0x35cd7c,_0xd64e25,_0x5010a8,_0x372460,_0x57d3e2,_0x431d70,_0x4cf08b,_0x3487c2,_0x5a2a77,_0x5b33bc,_0x38ca63,_0x3a4ec3,_0x98e482,_0x5bd89a){const _0x33b16d=_0x1e47ba;super(_0x35cd7c,_0xd64e25,_0x5010a8,_0x372460,_0x57d3e2,_0x431d70,_0x4cf08b,_0x3487c2,_0x5b33bc,_0x38ca63,_0x3a4ec3,_0x98e482,_0x5bd89a),this[_0x33b16d(0x2d2)]=_0x35cd7c,this[_0x33b16d(0x2b2)]=_0xd64e25,this[_0x33b16d(0x2b6)]=_0x5010a8,this[_0x33b16d(0x289)]=_0x5a2a77;}[_0x1e47ba(0x163)](){const _0x12b01c=_0x1e47ba,_0x4bd8eb=super[_0x12b01c(0x163)]();return _0x4bd8eb[_0x12b01c(0x257)]=_0x153118=>this[_0x12b01c(0x289)][_0x12b01c(0x35d)](_0x153118),_0x4bd8eb;}async[_0x1e47ba(0x480)](){const _0x2d8f4c=_0x1e47ba,_0x2f0f75=await super[_0x2d8f4c(0x480)]();return this[_0x2d8f4c(0x2e4)](this['_commandService'][_0x2d8f4c(0x36d)]((_0x5e9199,_0x210ab3)=>{const _0x23c3af=_0x2d8f4c;if(_0x5e9199[_0x23c3af(0x2b2)]!==a[_0x23c3af(0x200)]['MUTATION']||_0x210ab3!=null&&_0x210ab3[_0x23c3af(0x2a7)]||_0x210ab3!=null&&_0x210ab3['onlyLocal'])return;const _0x351666=_0x5e9199[_0x23c3af(0x183)];if((_0x351666==null?void 0x0:_0x351666['unitId'])!==this[_0x23c3af(0x2d2)])return;const _0x17940e=_0x5e9199,_0x52fa5c=this[_0x23c3af(0x206)]['interceptor'][_0x23c3af(0x179)](this[_0x23c3af(0x206)][_0x23c3af(0x14c)][_0x23c3af(0x10f)]()['COMPRESS_MUTATION_SEND'])([_0x17940e],null)||[_0x17940e];this[_0x23c3af(0x433)](_0x52fa5c[0x0]);})),_0x2f0f75;}};we=Ce([I(0x3,h[_0x1e47ba(0x443)](h[_0x1e47ba(0x488)])),I(0x4,h[_0x1e47ba(0x443)](exports[_0x1e47ba(0x23e)])),I(0x5,h[_0x1e47ba(0x443)](u['CompressMutationService'])),I(0x6,h[_0x1e47ba(0x443)](a['LocaleService'])),I(0x7,h[_0x1e47ba(0x443)](u[_0x1e47ba(0x2b5)])),I(0x8,h[_0x1e47ba(0x443)](fe)),I(0x9,a[_0x1e47ba(0x467)]),I(0xa,a[_0x1e47ba(0x44e)]),I(0xb,U[_0x1e47ba(0x34b)]),I(0xc,a['IPermissionService']),I(0xd,h['Optional'](Ee))],we);const et=['purple300',_0x1e47ba(0x310),_0x1e47ba(0x137),_0x1e47ba(0x15a),'blue400',_0x1e47ba(0x39c)];class We extends a[_0x1e47ba(0x152)]{constructor(){const _0x515c88=_0x1e47ba;super(...arguments),d(this,'_assignedColors',new Map()),d(this,_0x515c88(0x177),0x0);}['assignAColorForMemberID'](_0x61c2a1){const _0x3cb441=_0x1e47ba;if(this[_0x3cb441(0x434)][_0x3cb441(0x174)](_0x61c2a1))return this[_0x3cb441(0x434)][_0x3cb441(0x367)](_0x61c2a1);const _0xb2eb90=et[this[_0x3cb441(0x177)]];return this['_colorIndex']=(this[_0x3cb441(0x177)]+0x1)%et[_0x3cb441(0x3fb)],this['_assignedColors'][_0x3cb441(0x204)](_0x61c2a1,_0xb2eb90),_0xb2eb90;}}var os=(_0x391830,_0x51edc8,_0x5c8e68,_0x44b988)=>{const _0x5d9db2=_0x1e47ba;for(var _0xa504a4=_0x51edc8,_0x21ac54=_0x391830[_0x5d9db2(0x3fb)]-0x1,_0x152917;_0x21ac54>=0x0;_0x21ac54--)(_0x152917=_0x391830[_0x21ac54])&&(_0xa504a4=_0x152917(_0xa504a4)||_0xa504a4);return _0xa504a4;},q=(_0x6edf8f,_0x1981cb)=>(_0x3e4c5a,_0x2ebbea)=>_0x1981cb(_0x3e4c5a,_0x2ebbea,_0x6edf8f);const as=0x12c,cs=0x64,ls=()=>{let _0x4443f8=[],_0x32f257=!0x1;return _0x593f68=>{const _0x3050c0=_0x55a2;_0x4443f8[_0x3050c0(0x441)](_0x593f68),_0x32f257||(_0x32f257=!0x0,setTimeout(()=>{_0x4443f8['forEach'](_0x265396=>_0x265396()),_0x4443f8=[],_0x32f257=!0x1;}));};};let Ue=class extends a[_0x1e47ba(0x45e)]{constructor(_0x644fe7,_0x4cd997,_0x58cad9,_0x1b6b95,_0x3a9603,_0x64f40f,_0xf31c81,_0x1f6985){const _0x3c4a51=_0x1e47ba;super(),d(this,_0x3c4a51(0x21a),!0x1),d(this,_0x3c4a51(0x480),!0x1),d(this,'_cursorInfo$',new v[(_0x3c4a51(0x432))](new Map())),d(this,'cursorInfo$',this[_0x3c4a51(0x3a8)][_0x3c4a51(0x2ad)]()),d(this,_0x3c4a51(0x252),new v[(_0x3c4a51(0x432))]([])),d(this,_0x3c4a51(0x3ca),this['_roomMembers$'][_0x3c4a51(0x1cb)](v[_0x3c4a51(0x484)](as))),d(this,_0x3c4a51(0x3e6),He((_0x524a46,_0x414cb0)=>{const _0x2c0c24=_0x3c4a51,_0x28652e={'eventID':u['CollaborationEvent'][_0x2c0c24(0x1c4)],'data':{'unitID':this[_0x2c0c24(0x2d2)],'memberID':this['_session']['getMemberID'](),'selection':Ke[_0x2c0c24(0x346)](_0x524a46,_0x414cb0[_0x2c0c24(0x215)])}};this['_session'][_0x2c0c24(0x29a)](_0x28652e,this[_0x2c0c24(0x2d2)]);},cs)),(this['unitID']=_0x644fe7,this['_session']=_0x4cd997,this[_0x3c4a51(0x376)]=_0x58cad9,this[_0x3c4a51(0x1b2)]=_0x1b6b95,this[_0x3c4a51(0x29b)]=_0x3a9603,this[_0x3c4a51(0x464)]=_0x64f40f,this[_0x3c4a51(0x3cd)]=_0xf31c81,this[_0x3c4a51(0x1eb)]=_0x1f6985);}get['cursorInfo'](){const _0x1608bf=_0x1e47ba;return this[_0x1608bf(0x3a8)][_0x1608bf(0x192)]();}get['roomMembers'](){return this['_roomMembers$']['getValue']();}['dispose'](){const _0x307d79=_0x1e47ba;super[_0x307d79(0x36c)](),this[_0x307d79(0x3a8)][_0x307d79(0x424)](new Map()),this[_0x307d79(0x3a8)]['complete'](),this['_roomMembers$'][_0x307d79(0x424)]([]),this[_0x307d79(0x252)][_0x307d79(0x3d6)]();}[_0x1e47ba(0x46d)](){const _0x498bbf=_0x1e47ba;this[_0x498bbf(0x480)]||(this[_0x498bbf(0x480)]=!0x0,this[_0x498bbf(0x2f7)][_0x498bbf(0x219)]['pipe'](v['takeUntil'](this['dispose$']))[_0x498bbf(0x319)](_0x352352=>{_0x352352===W['ONLINE']?this['_toggleOnline']():this['_toggleOffline']();}),this[_0x498bbf(0x2f7)][_0x498bbf(0x288)]['pipe'](v[_0x498bbf(0x308)](this['dispose$']))['subscribe'](_0x54b96d=>{const _0x31745a=_0x498bbf,_0x44847e=_0x54b96d[_0x31745a(0x2a0)];_0x44847e===u['CollaborationEvent'][_0x31745a(0x1c4)]&&this[_0x31745a(0x209)](_0x54b96d),_0x44847e===u['CollaborationEvent'][_0x31745a(0x1af)]&&this[_0x31745a(0x2ce)](_0x54b96d);}),this[_0x498bbf(0x439)](),this[_0x498bbf(0x2e4)](this[_0x498bbf(0x3cd)]['onCommandExecuted'](_0x16462c=>{const _0xe39f58=_0x498bbf;if(this[_0xe39f58(0x21a)]&&_0x16462c['id']===E[_0xe39f58(0x3d9)]['id']&&_0x16462c['params'][_0xe39f58(0x2b3)]===this[_0xe39f58(0x2d2)]){const _0x502f59=_0x16462c[_0xe39f58(0x183)];this[_0xe39f58(0x3e6)](_0x502f59['subUnitId'],_0x502f59[_0xe39f58(0xf9)][0x0]);}})));}[_0x1e47ba(0x209)](_0x40e865){const _0x48193b=_0x1e47ba;var _0x51a7e8,_0x34c064;const {memberID:_0x3c45d4,selection:_0x534bc2}=_0x40e865[_0x48193b(0x1b7)],{sheetName:_0x49a89f,range:_0x167367}=Ke[_0x48193b(0x33e)](_0x534bc2),_0x432495={'name':(_0x34c064=(_0x51a7e8=this['_memberService'][_0x48193b(0x3d3)](this[_0x48193b(0x2d2)],_0x3c45d4))==null?void 0x0:_0x51a7e8[_0x48193b(0x316)])!=null?_0x34c064:'Unknown\x20user','range':this['_getMergeRange'](_0x49a89f,_0x167367),'sheetID':_0x49a89f,'color':this[_0x48193b(0x1b2)][_0x48193b(0x444)](_0x3c45d4),'selection':_0x534bc2},_0x3f7c04=this[_0x48193b(0x2a5)];_0x3f7c04[_0x48193b(0x204)](_0x3c45d4,_0x432495),this[_0x48193b(0x3a8)][_0x48193b(0x424)](_0x3f7c04);}[_0x1e47ba(0x2ce)](_0x4b794f){const _0x4d5b0d=_0x1e47ba,{memberID:_0x7680df}=_0x4b794f[_0x4d5b0d(0x1b7)],_0x57aad2=this[_0x4d5b0d(0x2a5)];_0x57aad2[_0x4d5b0d(0xf8)](_0x7680df),this[_0x4d5b0d(0x3a8)][_0x4d5b0d(0x424)](_0x57aad2);}[_0x1e47ba(0x44f)](_0x5c5ba0,_0x1bc258){const _0x27a2cc=_0x1e47ba;var _0x143e80,_0x10e6a1;const _0x2bba22=(_0x10e6a1=(_0x143e80=this[_0x27a2cc(0x464)][_0x27a2cc(0x17c)](this['unitID']))==null?void 0x0:_0x143e80[_0x27a2cc(0x1be)](_0x5c5ba0))==null?void 0x0:_0x10e6a1['getMergeData']();return(_0x2bba22==null?void 0x0:_0x2bba22[_0x27a2cc(0x479)](_0x3866cc=>a[_0x27a2cc(0x22d)]['contains'](_0x3866cc,_0x1bc258)))||_0x1bc258;}['_onRefRangeChange'](){const _0x80e7e9=_0x1e47ba,_0x29a04f=new a[(_0x80e7e9(0x3a1))](),_0x5c8467=ls(),_0x1fca73=()=>{const _0x3f7348=_0x80e7e9;_0x29a04f[_0x3f7348(0x36c)]();const _0x452225=(_0x1aadf4,_0x4f39fe,_0x59c0d1,_0x176bea)=>{const _0x211198=_0x3f7348;let _0x2edaea=[];switch(_0x1aadf4['id']){case E[_0x211198(0x15f)][_0x211198(0x214)]:{_0x2edaea=E[_0x211198(0x37c)](_0x1aadf4,_0x176bea);break;}case E[_0x211198(0x15f)][_0x211198(0x258)]:{_0x2edaea=E[_0x211198(0x1f1)](_0x1aadf4,_0x176bea);break;}case E['EffectRefRangId'][_0x211198(0x293)]:{_0x2edaea=E[_0x211198(0x13b)](_0x1aadf4,_0x176bea);break;}case E['EffectRefRangId'][_0x211198(0x21f)]:{_0x2edaea=E[_0x211198(0x26c)](_0x1aadf4,_0x176bea);break;}case E['EffectRefRangId']['InsertRangeMoveRightCommandId']:{_0x2edaea=E['handleInsertRangeMoveRight'](_0x1aadf4,_0x176bea);break;}case E[_0x211198(0x15f)][_0x211198(0x2ec)]:{_0x2edaea=E[_0x211198(0x3e3)](_0x1aadf4,_0x176bea);break;}case E[_0x211198(0x15f)][_0x211198(0x284)]:{_0x2edaea=E['handleMoveRange'](_0x1aadf4,_0x176bea);break;}case E[_0x211198(0x15f)][_0x211198(0x110)]:{_0x2edaea=E[_0x211198(0x28b)](_0x1aadf4,_0x176bea);break;}case E[_0x211198(0x15f)]['RemoveRowCommandId']:{_0x2edaea=E['handleIRemoveRow'](_0x1aadf4,_0x176bea);break;}}const _0x1aee59=E[_0x211198(0x2f1)](_0x2edaea,_0x176bea),_0x32f947=this[_0x211198(0x2a5)][_0x211198(0x367)](_0x4f39fe);if(_0x32f947&&_0x1aee59){const _0x356532={..._0x32f947,'range':_0x1aee59};this[_0x211198(0x2a5)][_0x211198(0x204)](_0x4f39fe,_0x356532),_0x5c8467(()=>{const _0x5c3910=_0x211198,_0x219bed=this['_refRangeService'][_0x5c3910(0x107)](_0x1aee59,_0x37d066=>(_0x219bed[_0x5c3910(0x36c)](),_0x452225(_0x37d066,_0x4f39fe,_0x59c0d1,_0x1aee59)));_0x29a04f[_0x5c3910(0x477)](_0x219bed);});}return{'redos':[],'undos':[]};};this[_0x3f7348(0x2a5)]['forEach']((_0x44d302,_0x464849)=>{const _0x1f0636=_0x3f7348,{range:_0x19b4fd,sheetID:_0x5bc773}=_0x44d302,_0x4f898a=this[_0x1f0636(0x1eb)]['registerRefRange'](_0x19b4fd,_0x36d70d=>(_0x4f898a[_0x1f0636(0x36c)](),_0x452225(_0x36d70d,_0x464849,_0x5bc773,_0x19b4fd)));_0x29a04f['add'](_0x4f898a);});};this[_0x80e7e9(0x2e4)](a[_0x80e7e9(0x251)](this[_0x80e7e9(0x3a8)][_0x80e7e9(0x319)](()=>{_0x1fca73();})));}['_toggleOnline'](){const _0xabfcba=_0x1e47ba;var _0x161e4b,_0x5aac6f;if(this[_0xabfcba(0x21a)]=!0x0,((_0x161e4b=this[_0xabfcba(0x464)][_0xabfcba(0x197)]())==null?void 0x0:_0x161e4b['getUnitId']())!==this[_0xabfcba(0x2d2)])return;const _0x4a778a=(_0x5aac6f=this['_injector'][_0xabfcba(0x367)](E['SelectionManagerService'])[_0xabfcba(0xfc)]())==null?void 0x0:_0x5aac6f[0x0];_0x4a778a&&this[_0xabfcba(0x3e6)](this[_0xabfcba(0x464)]['getCurrentUnitForType'](a[_0xabfcba(0x12f)]['UNIVER_SHEET'])[_0xabfcba(0x208)]()['getSheetId'](),_0x4a778a);}[_0x1e47ba(0x12c)](){const _0x1ea4e0=_0x1e47ba;this[_0x1ea4e0(0x21a)]=!0x1;}};Ue=os([q(0x2,h[_0x1e47ba(0x443)](h['Injector'])),q(0x3,h['Inject'](We)),q(0x4,h[_0x1e47ba(0x443)](G)),q(0x5,a[_0x1e47ba(0x118)]),q(0x6,a[_0x1e47ba(0x44e)]),q(0x7,h[_0x1e47ba(0x443)](E['RefRangeService']))],Ue);var hs=(_0x56e027,_0x2c9576,_0x1d7dab,_0x565730)=>{for(var _0x84f5bb=_0x2c9576,_0x176e74=_0x56e027['length']-0x1,_0x4e3e5c;_0x176e74>=0x0;_0x176e74--)(_0x4e3e5c=_0x56e027[_0x176e74])&&(_0x84f5bb=_0x4e3e5c(_0x84f5bb)||_0x84f5bb);return _0x84f5bb;},V=(_0x23deac,_0x4693c8)=>(_0x229b70,_0x119495)=>_0x4693c8(_0x229b70,_0x119495,_0x23deac);const _s=0x12c,us=0x64;let Pe=class extends a[_0x1e47ba(0x45e)]{constructor(_0x265106,_0x3f9d86,_0x13d5f7,_0x599409,_0x58edd8,_0x10cbc2,_0x3bbe61,_0xf5ae2d,_0x4ead64){const _0x2d22b7=_0x1e47ba;super(),d(this,_0x2d22b7(0x21a),!0x1),d(this,_0x2d22b7(0x480),!0x1),d(this,_0x2d22b7(0x3a8),new v[(_0x2d22b7(0x432))](new Map())),d(this,'cursorInfo$',this[_0x2d22b7(0x3a8)]['asObservable']()),d(this,_0x2d22b7(0x252),new v[(_0x2d22b7(0x432))]([])),d(this,_0x2d22b7(0x3ca),this['_roomMembers$'][_0x2d22b7(0x1cb)](v['debounceTime'](_s))),d(this,_0x2d22b7(0x3e6),He(_0x4ed716=>{const _0x167cf8=_0x2d22b7,_0x42f95e={'eventID':u[_0x167cf8(0x27c)]['UPDATE_CURSOR'],'data':{'unitID':this[_0x167cf8(0x2d2)],'memberID':this[_0x167cf8(0x2f7)][_0x167cf8(0x331)](),'selection':ft(_0x4ed716)}};this[_0x167cf8(0x2f7)][_0x167cf8(0x29a)](_0x42f95e,this['unitID']);},us)),(this[_0x2d22b7(0x2d2)]=_0x265106,this['_session']=_0x3f9d86,this[_0x2d22b7(0x376)]=_0x13d5f7,this['_colorAssignService']=_0x599409,this[_0x2d22b7(0x29b)]=_0x58edd8,this[_0x2d22b7(0x1c1)]=_0x10cbc2,this['_transformService']=_0x3bbe61,this[_0x2d22b7(0x464)]=_0xf5ae2d,this[_0x2d22b7(0x3cd)]=_0x4ead64);}get[_0x1e47ba(0x2a5)](){const _0x40e512=_0x1e47ba;return this[_0x40e512(0x3a8)][_0x40e512(0x192)]();}get[_0x1e47ba(0x106)](){const _0x2ea27c=_0x1e47ba;return this['_roomMembers$'][_0x2ea27c(0x192)]();}[_0x1e47ba(0x36c)](){const _0x457e6f=_0x1e47ba;super[_0x457e6f(0x36c)](),this[_0x457e6f(0x3a8)][_0x457e6f(0x424)](new Map()),this[_0x457e6f(0x3a8)]['complete'](),this['_roomMembers$']['next']([]),this[_0x457e6f(0x252)][_0x457e6f(0x3d6)]();}[_0x1e47ba(0x46d)](){const _0x561b49=_0x1e47ba;this[_0x561b49(0x480)]||(this[_0x561b49(0x480)]=!0x0,this[_0x561b49(0x2f7)][_0x561b49(0x219)][_0x561b49(0x1cb)](v[_0x561b49(0x308)](this['dispose$']))['subscribe'](_0x63ed4d=>{const _0x3c2ad2=_0x561b49;_0x63ed4d===W[_0x3c2ad2(0x256)]?this['_toggleOnline']():this[_0x3c2ad2(0x12c)]();}),this[_0x561b49(0x2f7)]['event$'][_0x561b49(0x1cb)](v['takeUntil'](this[_0x561b49(0x2b1)]))['subscribe'](_0x3f4725=>{const _0x26a318=_0x561b49,_0x22952c=_0x3f4725[_0x26a318(0x2a0)];_0x22952c===u[_0x26a318(0x27c)][_0x26a318(0x1c4)]&&this[_0x26a318(0x209)](_0x3f4725),_0x22952c===u[_0x26a318(0x27c)]['USERS_LEAVE']&&this[_0x26a318(0x2ce)](_0x3f4725);}),this[_0x561b49(0x2e4)](this[_0x561b49(0x3cd)][_0x561b49(0x36d)](_0x5748c2=>{const _0x4a2a63=_0x561b49,_0x565f62=_0x5748c2[_0x4a2a63(0x183)];_0x565f62!=null&&this[_0x4a2a63(0x21a)]&&_0x5748c2['id']===w[_0x4a2a63(0x1fc)]['id']&&_0x565f62[_0x4a2a63(0x2b3)]===this[_0x4a2a63(0x2d2)]&&_0x565f62[_0x4a2a63(0x30b)]===!0x1&&this['_updateLocalCursor'](_0x565f62[_0x4a2a63(0x2a6)]);})),this['_syncEditingCollabCursorService']['collabCursorState$']['pipe'](v[_0x561b49(0x308)](this[_0x561b49(0x2b1)]))['subscribe'](_0x108b90=>{const _0xb24f3b=_0x561b49;if((_0x108b90==null?void 0x0:_0x108b90['unitID'])!==this[_0xb24f3b(0x2d2)])return;const _0x3ad51f={'eventID':u[_0xb24f3b(0x27c)][_0xb24f3b(0x1c4)],'data':_0x108b90};this[_0xb24f3b(0x209)](_0x3ad51f);}),this[_0x561b49(0x2e4)](this[_0x561b49(0x3cd)][_0x561b49(0x36d)](_0x1bae3a=>{const _0x276b78=_0x561b49;if(_0x1bae3a['params']==null)return;const _0x2cf4ca=_0x1bae3a['params'];if(_0x1bae3a['id']!==w['RichTextEditingMutation']['id']||_0x2cf4ca['unitId']!==this[_0x276b78(0x2d2)])return;const _0x2f7e2f={'id':_0x276b78(0x26a),'params':_0x2cf4ca},_0x23e4c9=this[_0x276b78(0x2a5)];for(const [_0x1e83f1,_0x3f9169]of _0x23e4c9){const _0x3d0ae7={'id':'doc.mutation.rich-text-editing','params':{'unitId':this[_0x276b78(0x2d2)],'actions':null,'textRanges':_0x3f9169['ranges']}},_0x3d812c=this['_transformService']['transformMutation'](_0x2f7e2f,_0x3d0ae7,!0x1);if(u['isTransformMutationFailure'](_0x3d812c))throw _0x3d812c['error'];_0x23e4c9[_0x276b78(0x204)](_0x1e83f1,{..._0x3f9169,'ranges':_0x3d812c['m2Prime'][_0x276b78(0x183)][_0x276b78(0x462)]});}queueMicrotask(()=>{const _0x25b470=_0x276b78;this[_0x25b470(0x3a8)][_0x25b470(0x424)](_0x23e4c9);});})));}[_0x1e47ba(0x209)](_0x531241){const _0x5b876b=_0x1e47ba;var _0x18124b,_0x4205e8;const {memberID:_0x1dddeb,selection:_0x40ab58}=_0x531241['data'],_0x3aa3e9=es(_0x40ab58),_0x338635=(_0x4205e8=(_0x18124b=this[_0x5b876b(0x29b)]['getMember'](this[_0x5b876b(0x2d2)],_0x1dddeb))==null?void 0x0:_0x18124b[_0x5b876b(0x316)])!=null?_0x4205e8:_0x5b876b(0x101),_0x5845e2={'color':this['_colorAssignService'][_0x5b876b(0x444)](_0x1dddeb),'name':_0x338635,'ranges':_0x3aa3e9},_0x3bb03e=this[_0x5b876b(0x2a5)];_0x3bb03e[_0x5b876b(0x204)](_0x1dddeb,_0x5845e2),this[_0x5b876b(0x3a8)][_0x5b876b(0x424)](_0x3bb03e);}[_0x1e47ba(0x2ce)](_0x124d4d){const _0x594b97=_0x1e47ba,{memberID:_0x363428}=_0x124d4d[_0x594b97(0x1b7)],_0x5ea91c=this[_0x594b97(0x2a5)];_0x5ea91c[_0x594b97(0xf8)](_0x363428),this[_0x594b97(0x3a8)][_0x594b97(0x424)](_0x5ea91c);}[_0x1e47ba(0x15c)](){const _0x1f89b3=_0x1e47ba;var _0x475232;if(this['_online']=!0x0,((_0x475232=this[_0x1f89b3(0x464)][_0x1f89b3(0x197)]())==null?void 0x0:_0x475232[_0x1f89b3(0x231)]())!==this[_0x1f89b3(0x2d2)])return;const _0x5afce8=this[_0x1f89b3(0x376)][_0x1f89b3(0x367)](w[_0x1f89b3(0x146)])[_0x1f89b3(0xfc)](),_0x5cbeb0=_0x5afce8==null?void 0x0:_0x5afce8[_0x1f89b3(0x290)](w['serializeTextRange']);Array['isArray'](_0x5cbeb0)&&_0x5cbeb0['length']>0x0&&this[_0x1f89b3(0x3e6)](_0x5cbeb0);}[_0x1e47ba(0x12c)](){this['_online']=!0x1;}};Pe=hs([V(0x2,h[_0x1e47ba(0x443)](h[_0x1e47ba(0x488)])),V(0x3,h[_0x1e47ba(0x443)](We)),V(0x4,h[_0x1e47ba(0x443)](G)),V(0x5,h[_0x1e47ba(0x443)](Ve)),V(0x6,u[_0x1e47ba(0x1c3)]),V(0x7,a[_0x1e47ba(0x118)]),V(0x8,a[_0x1e47ba(0x44e)])],Pe);var ds=(_0x4e5778,_0x51d8fd,_0x21a92f,_0x402968)=>{const _0x3fc9b0=_0x1e47ba;for(var _0x1ca265=_0x51d8fd,_0x5a8554=_0x4e5778[_0x3fc9b0(0x3fb)]-0x1,_0x3db594;_0x5a8554>=0x0;_0x5a8554--)(_0x3db594=_0x4e5778[_0x5a8554])&&(_0x1ca265=_0x3db594(_0x1ca265)||_0x1ca265);return _0x1ca265;},De=(_0xba476d,_0x4acd5e)=>(_0x2ad9ae,_0x2ce68b)=>_0x4acd5e(_0x2ad9ae,_0x2ce68b,_0xba476d);let z=class extends a[_0x1e47ba(0x45e)]{constructor(_0x4b7ca8,_0x260c8d,_0x15cff5){const _0x2c8e9f=_0x1e47ba;super(),d(this,'_entities',new Map()),d(this,_0x2c8e9f(0x39f),new v[(_0x2c8e9f(0x184))]()),(this[_0x2c8e9f(0x464)]=_0x4b7ca8,this[_0x2c8e9f(0x376)]=_0x260c8d,this['_collabSessionService']=_0x15cff5,this[_0x2c8e9f(0x480)]());}[_0x1e47ba(0x36c)](){const _0x439bd5=_0x1e47ba;super[_0x439bd5(0x36c)](),this[_0x439bd5(0x39f)][_0x439bd5(0x3d6)](),this[_0x439bd5(0x272)]['forEach'](_0xf25bfc=>_0xf25bfc[_0x439bd5(0x36c)]());}['getCollabCursors$'](_0x5b1404){const _0x4f8b6a=_0x1e47ba;return this[_0x4f8b6a(0x272)]['has'](_0x5b1404)?this['_entities'][_0x4f8b6a(0x367)](_0x5b1404)[_0x4f8b6a(0x210)]:this['_entityInit$'][_0x4f8b6a(0x1cb)](v[_0x4f8b6a(0x31b)](_0x5c310c=>_0x5c310c['unitID']===_0x5b1404),v['switchMap'](_0x2c3aea=>_0x2c3aea[_0x4f8b6a(0x210)]));}[_0x1e47ba(0x480)](){const _0x5c78f5=_0x1e47ba;this[_0x5c78f5(0x464)][_0x5c78f5(0x411)](a[_0x5c78f5(0x12f)][_0x5c78f5(0x342)])[_0x5c78f5(0x1cb)](v[_0x5c78f5(0x308)](this['dispose$']))[_0x5c78f5(0x319)](async _0x4c155b=>{const _0x173d94=_0x5c78f5,_0x131a38=_0x4c155b[_0x173d94(0x231)](),_0x36f932=await this[_0x173d94(0x2f2)](_0x131a38);this[_0x173d94(0x39f)]['next'](_0x36f932),this['_entities']['set'](_0x131a38,_0x36f932);}),this[_0x5c78f5(0x464)][_0x5c78f5(0x411)](a[_0x5c78f5(0x12f)][_0x5c78f5(0x48c)])[_0x5c78f5(0x1cb)](v[_0x5c78f5(0x308)](this[_0x5c78f5(0x2b1)]))[_0x5c78f5(0x1cb)](v[_0x5c78f5(0x31b)](_0x1d389e=>!_0x1d389e[_0x5c78f5(0x231)]()[_0x5c78f5(0x36a)]('__')))[_0x5c78f5(0x319)](async _0x28e212=>{const _0x355f1f=_0x5c78f5,_0x36b2b6=_0x28e212[_0x355f1f(0x231)](),_0x4fa925=await this[_0x355f1f(0x1bc)](_0x36b2b6);this[_0x355f1f(0x39f)]['next'](_0x4fa925),this[_0x355f1f(0x272)][_0x355f1f(0x204)](_0x36b2b6,_0x4fa925);}),v['merge'](this[_0x5c78f5(0x464)]['getTypeOfUnitDisposed$'](a[_0x5c78f5(0x12f)][_0x5c78f5(0x48c)]),this['_univerInstanceService'][_0x5c78f5(0x27d)](a[_0x5c78f5(0x12f)]['UNIVER_SHEET']))['pipe'](v['takeUntil'](this[_0x5c78f5(0x2b1)]))[_0x5c78f5(0x319)](_0x16f537=>{const _0x558609=_0x5c78f5,_0x1c92ef=_0x16f537[_0x558609(0x231)](),_0x1776f0=this[_0x558609(0x272)][_0x558609(0x367)](_0x1c92ef);_0x1776f0&&(_0x1776f0['dispose'](),this[_0x558609(0x272)][_0x558609(0xf8)](_0x1c92ef));});}async['_startSheetCollabCursor'](_0x84598d){const _0x5dc1ac=_0x1e47ba,_0x47d87e=await this['_collabSessionService'][_0x5dc1ac(0x3fe)](_0x84598d),_0xdfacf8=this[_0x5dc1ac(0x376)][_0x5dc1ac(0x14f)](Ue,_0x84598d,_0x47d87e);return _0xdfacf8[_0x5dc1ac(0x46d)](),_0xdfacf8;}async['_startDocCollabCursor'](_0x365088){const _0x3a029a=_0x1e47ba,_0x33f7ff=await this['_collabSessionService'][_0x3a029a(0x3fe)](_0x365088),_0x5cb04d=this[_0x3a029a(0x376)][_0x3a029a(0x14f)](Pe,_0x365088,_0x33f7ff);return _0x5cb04d[_0x3a029a(0x46d)](),_0x5cb04d;}};z=ds([a[_0x1e47ba(0x280)](a[_0x1e47ba(0x239)][_0x1e47ba(0x42f)],z),De(0x0,a[_0x1e47ba(0x118)]),De(0x1,h[_0x1e47ba(0x443)](h[_0x1e47ba(0x488)])),De(0x2,h[_0x1e47ba(0x443)](exports['CollaborationSessionService']))],z);const he=0x14,tt=0xc8,Oe=0x4,Ss=0x5;function gs(_0x217802,_0x14e6a1){const _0x1465e6=_0x1e47ba;let {radius:_0x1e1450,width:_0x489637,height:_0x2685f8}=_0x14e6a1;_0x1e1450=_0x1e1450!=null?_0x1e1450:0x0,_0x489637=_0x489637!=null?_0x489637:0x1e,_0x2685f8=_0x2685f8!=null?_0x2685f8:0x1e;let _0xd1c85d=0x0,_0x11dd03=0x0,_0x1d7db6=0x0;_0xd1c85d=_0x11dd03=_0x1d7db6=Math[_0x1465e6(0x1c7)](_0x1e1450,_0x489637/0x2,_0x2685f8/0x2),_0x217802[_0x1465e6(0x451)](),_0x217802['moveTo'](_0xd1c85d,0x0),_0x217802[_0x1465e6(0x403)](_0x489637-_0x11dd03,0x0),_0x217802[_0x1465e6(0x2fd)](_0x489637-_0x11dd03,_0x11dd03,_0x11dd03,Math['PI']*0x3/0x2,0x0,!0x1),_0x217802[_0x1465e6(0x403)](_0x489637,_0x2685f8-_0x1d7db6),_0x217802[_0x1465e6(0x2fd)](_0x489637-_0x1d7db6,_0x2685f8-_0x1d7db6,_0x1d7db6,0x0,Math['PI']/0x2,!0x1),_0x217802['lineTo'](0x0,_0x2685f8),_0x217802[_0x1465e6(0x403)](0x0,_0xd1c85d),_0x217802['arc'](_0xd1c85d,_0xd1c85d,_0xd1c85d,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x217802[_0x1465e6(0x10e)](),_0x14e6a1[_0x1465e6(0x400)]&&(_0x217802['save'](),_0x217802[_0x1465e6(0x447)]=_0x14e6a1[_0x1465e6(0x400)],_0x14e6a1[_0x1465e6(0x1b8)]===_0x1465e6(0x3b9)?_0x217802[_0x1465e6(0x400)](_0x1465e6(0x3b9)):_0x217802[_0x1465e6(0x400)](),_0x217802[_0x1465e6(0x355)]());}class be extends R[_0x1e47ba(0x117)]{constructor(_0x55dec7,_0x1cf472){const _0x47910c=_0x1e47ba;super(_0x55dec7,_0x1cf472),d(this,'color'),d(this,_0x47910c(0x1b4)),(this[_0x47910c(0x1d5)]=_0x1cf472==null?void 0x0:_0x1cf472[_0x47910c(0x1d5)],this['text']=_0x1cf472==null?void 0x0:_0x1cf472['text']);}static[_0x1e47ba(0x30e)](_0x5e2612,_0x2e4c44){const _0x242e4d=_0x1e47ba,{text:_0x2c7f91,color:_0x52f39d}=_0x2e4c44;_0x5e2612[_0x242e4d(0x24b)](),_0x5e2612[_0x242e4d(0x129)]='bold\x2013px\x20Source\x20Han\x20Sans\x20CN';const _0x264cf3=_0x5e2612['measureText'](_0x2c7f91)[_0x242e4d(0x358)],_0x23959e=Math['min'](_0x264cf3+0x2*Oe,tt);gs(_0x5e2612,{'height':he,'radius':0x4,'width':_0x23959e,'fill':_0x52f39d,'evented':!0x1}),_0x5e2612[_0x242e4d(0x447)]='#FFF';const _0x4e6a76=Oe,_0x48aa35=he-Ss,_0x307975=tt-0x2*Oe;if(_0x264cf3>_0x307975){let _0x12d941='',_0x167ad7=0x0;for(const _0x422efe of _0x2c7f91){const _0x2935cb=_0x5e2612['measureText'](_0x422efe)[_0x242e4d(0x358)];if(_0x167ad7+_0x2935cb<=_0x307975-_0x5e2612[_0x242e4d(0x24d)](_0x242e4d(0x2a4))[_0x242e4d(0x358)])_0x12d941+=_0x422efe,_0x167ad7+=_0x2935cb;else{_0x12d941+=_0x242e4d(0x2a4);break;}}_0x5e2612['fillText'](_0x12d941,_0x4e6a76,_0x48aa35);}else _0x5e2612[_0x242e4d(0x1e8)](_0x2c7f91,_0x4e6a76,_0x48aa35);_0x5e2612[_0x242e4d(0x355)]();}[_0x1e47ba(0x3eb)](_0x7ccd18){be['drawWith'](_0x7ccd18,this);}}const vs=0x1,ms=1.5;class fs extends R[_0x1e47ba(0x117)]{constructor(_0x578c18,_0x540aed){const _0x30766b=_0x1e47ba;super(_0x578c18,_0x540aed),d(this,_0x30766b(0x10b)),d(this,_0x30766b(0x224),!0x1),d(this,_0x30766b(0x216)),d(this,'_name',''),d(this,_0x30766b(0xe4),_0x30766b(0x22a)),(_0x540aed&&this[_0x30766b(0x365)](_0x540aed),this['onPointerEnterObserver']['add'](()=>this[_0x30766b(0x365)]({'hovered':!0x0})),this['onPointerLeaveObserver']['add'](()=>this[_0x30766b(0x365)]({'hovered':!0x1})));}[_0x1e47ba(0x365)](_0x41d95a){const _0x32cae6=_0x1e47ba;var _0x24f8be,_0x36bb80,_0x5c33b5,_0x5b98c2,_0x21ac45;this[_0x32cae6(0x10b)]=(_0x24f8be=_0x41d95a[_0x32cae6(0x1d5)])!=null?_0x24f8be:this['_color'],this[_0x32cae6(0x224)]=(_0x36bb80=_0x41d95a[_0x32cae6(0x3a4)])!=null?_0x36bb80:this[_0x32cae6(0x224)],this[_0x32cae6(0x216)]=(_0x5c33b5=_0x41d95a[_0x32cae6(0x215)])!=null?_0x5c33b5:this[_0x32cae6(0x216)],this['_name']=(_0x5b98c2=_0x41d95a['name'])!=null?_0x5b98c2:this[_0x32cae6(0x119)],this[_0x32cae6(0xe4)]=(_0x21ac45=_0x41d95a[_0x32cae6(0x46b)])!=null?_0x21ac45:this[_0x32cae6(0xe4)],this[_0x32cae6(0x186)]({'width':_0x41d95a[_0x32cae6(0x358)],'height':_0x41d95a['height']});}['onMouseMove'](_0x421b11){const _0x232a60=_0x1e47ba,{row:_0x5d223a,column:_0x4dcf40}=_0x421b11;if(_0x5d223a>=this['_range'][_0x232a60(0x3ff)]&&_0x5d223a<=this[_0x232a60(0x216)]['endRow']&&_0x4dcf40>=this['_range']['startColumn']&&_0x4dcf40<=this['_range']['endColumn']){this[_0x232a60(0x365)]({'hovered':!0x0});return;}this[_0x232a60(0x365)]({'hovered':!0x1});}[_0x1e47ba(0x348)](_0x397247){return!0x1;}[_0x1e47ba(0x3eb)](_0x49401b){const _0x155849=_0x1e47ba;R['Rect'][_0x155849(0x30e)](_0x49401b,{'width':this[_0x155849(0x358)],'height':this['height'],'strokeWidth':ms,'stroke':this[_0x155849(0x10b)],'evented':!0x1}),this[_0x155849(0x224)]&&(_0x49401b[_0x155849(0x24b)](),_0x49401b[_0x155849(0x42b)](0x1,0x0,0x0,0x1,this[_0x155849(0x358)],this[_0x155849(0xe4)]===_0x155849(0x455)?0x0:-he),be['drawWith'](_0x49401b,{'text':this[_0x155849(0x119)],'color':this[_0x155849(0x10b)]}),_0x49401b[_0x155849(0x355)]());}}var Is=(_0x46fb48,_0x5e28e5,_0x556367,_0x18ed18)=>{for(var _0x56465a=_0x5e28e5,_0x5de9ae=_0x46fb48['length']-0x1,_0x29e9a3;_0x5de9ae>=0x0;_0x5de9ae--)(_0x29e9a3=_0x46fb48[_0x5de9ae])&&(_0x56465a=_0x29e9a3(_0x56465a)||_0x56465a);return _0x56465a;},ie=(_0x2da07f,_0xcd2493)=>(_0x3126f3,_0x527c26)=>_0xcd2493(_0x3126f3,_0x527c26,_0x2da07f);let de=class extends a[_0x1e47ba(0x45e)]{constructor(_0x431acb,_0x537106,_0x29b896,_0x140524,_0x529e60){const _0xa4b7d4=_0x1e47ba;super(),d(this,'_cursors',new Set()),d(this,_0xa4b7d4(0x14a),null),(this['_collabCursorController']=_0x431acb,this[_0xa4b7d4(0x464)]=_0x537106,this[_0xa4b7d4(0x175)]=_0x29b896,this[_0xa4b7d4(0x2af)]=_0x140524,this['_themeService']=_0x529e60,this[_0xa4b7d4(0x480)]());}['_init'](){const _0x18ee4b=_0x1e47ba;this[_0x18ee4b(0x2af)][_0x18ee4b(0x211)][_0x18ee4b(0x1cb)](T[_0x18ee4b(0x308)](this[_0x18ee4b(0x2b1)]),T[_0x18ee4b(0x2bd)](_0x1a4841=>{const _0x462ec4=_0x18ee4b;if(_0x1a4841){const _0x4f175f=_0x1a4841[_0x462ec4(0x32f)];return v[_0x462ec4(0x1f6)](this['_collabCursorController'][_0x462ec4(0x255)](_0x1a4841[_0x462ec4(0x2b3)]),this['_themeService'][_0x462ec4(0x363)])[_0x462ec4(0x1cb)](T[_0x462ec4(0x290)](([_0x5c02e8,_0x49e7bb])=>{const _0x24809b=_0x462ec4,_0x31d643=new Map();return _0x5c02e8[_0x24809b(0x1e6)]((_0x209534,_0x53eb02)=>{const _0x248ee1=_0x24809b;if(_0x209534['sheetID']===_0x4f175f){const _0x457150={..._0x209534};_0x457150['color']=_0x49e7bb[_0x209534[_0x248ee1(0x1d5)]],_0x31d643[_0x248ee1(0x204)](_0x53eb02,_0x457150);}}),{'skeleton':_0x1a4841,'cursors':_0x31d643};}));}return v['of']({'skeleton':null,'cursors':new Map()});}))[_0x18ee4b(0x319)](({skeleton:_0x49840b,cursors:_0x228910})=>{const _0x282eda=_0x18ee4b;this[_0x282eda(0x2f8)](),_0x49840b&&this[_0x282eda(0x2e2)](_0x49840b,_0x228910);}),this[_0x18ee4b(0x2af)]['currentSkeleton$'][_0x18ee4b(0x319)](_0x1db939=>{const _0x55a9a3=_0x18ee4b;if(_0x1db939==null)return;const {unitId:_0x59e159,skeleton:_0x2adfbd}=_0x1db939,_0x47fdec=this['_renderManagerService'][_0x55a9a3(0x248)](_0x59e159);if(_0x47fdec==null)return;const {scene:_0x4ed3eb}=_0x47fdec;_0x4ed3eb[_0x55a9a3(0x176)][_0x55a9a3(0x477)](He(_0x194cc0=>{const _0x554f24=_0x55a9a3;var _0x562c07,_0x177a3f;const {offsetX:_0x3a9d68,offsetY:_0x22b740}=_0x194cc0,{x:_0x46d087,y:_0x570ecf}=_0x4ed3eb[_0x554f24(0x249)](R[_0x554f24(0x16e)][_0x554f24(0x143)]([_0x3a9d68,_0x22b740])),{scaleX:_0x4172be,scaleY:_0x96a803}=_0x4ed3eb[_0x554f24(0x299)](),_0x55b55f=_0x4ed3eb[_0x554f24(0x42d)](ae['VIEWPORT_KEY']['VIEW_MAIN']),_0x45a293=_0x4ed3eb[_0x554f24(0x377)](R['Vector2'][_0x554f24(0x143)]([_0x46d087,_0x570ecf]),_0x55b55f),_0x58b2b5=_0x2adfbd[_0x554f24(0x220)](_0x3a9d68,_0x22b740,_0x4172be,_0x96a803,_0x45a293);((_0x562c07=this[_0x554f24(0x14a)])==null?void 0x0:_0x562c07[_0x554f24(0x23d)])===_0x58b2b5[_0x554f24(0x23d)]&&((_0x177a3f=this[_0x554f24(0x14a)])==null?void 0x0:_0x177a3f['row'])===_0x58b2b5[_0x554f24(0x2bc)]||this[_0x554f24(0x131)][_0x554f24(0x1e6)](_0x57a1a6=>{const _0x18fdae=_0x554f24;_0x57a1a6[_0x18fdae(0x2bf)](_0x58b2b5);});},0x64));});}[_0x1e47ba(0x2e2)](_0x27238e,_0x4ab37b){const _0x323024=_0x1e47ba;var _0x20a9c0;const _0x4d0458=(_0x20a9c0=this['_sheetSkeletonManagerService'][_0x323024(0x43e)]())==null?void 0x0:_0x20a9c0['skeleton'];if(!_0x4d0458)return;const _0xfe2a89=this[_0x323024(0x1d6)]();if(!_0xfe2a89)return;this['_cursors'][_0x323024(0x1e6)](_0x26d937=>{_0x26d937['makeDirty']();});const {scene:_0x5b2b08}=_0xfe2a89,_0x4f9b15=ps(Array[_0x323024(0x47a)](_0x4ab37b[_0x323024(0x357)]()))[_0x323024(0x290)](_0x32d475=>{const _0x2962ac=_0x323024,{color:_0x4a5139,range:_0x44c715,name:_0x216fe4,selection:_0x3716f1,sheetID:_0x5e34d8}=_0x32d475,{startColumn:_0x5258d2,startRow:_0x4a086d,endColumn:_0x364556,endRow:_0x9fe66}=_0x44c715,_0x144d2a=ae[_0x2962ac(0x205)](_0x4a086d,_0x5258d2,_0x5b2b08,_0x4d0458),_0x174b43=ae[_0x2962ac(0x205)](_0x9fe66,_0x364556,_0x5b2b08,_0x4d0458),{columnHeaderHeightAndMarginTop:_0x180f71}=_0x4d0458,{startX:_0x4211f5,startY:_0x53b00d}=_0x144d2a,{endX:_0xfd0fdc,endY:_0x507924}=_0x174b43,_0x1909c7=_0xfd0fdc-_0x4211f5,_0x248d52=_0x507924-_0x53b00d,_0x423b5a={'labelPosition':_0x53b00d-_0x180f71>=he?_0x2962ac(0x22a):_0x2962ac(0x455),'sheetID':_0x5e34d8,'range':_0x44c715,'color':_0x4a5139,'name':_0x216fe4,'selection':_0x3716f1,'left':_0x4211f5,'top':_0x53b00d,'width':_0x1909c7,'height':_0x248d52,'evented':!0x1};return new fs(_0x216fe4,_0x423b5a);});_0x5b2b08[_0x323024(0x44b)](_0x4f9b15,vs),this[_0x323024(0x131)]=new Set(_0x4f9b15);}[_0x1e47ba(0x2f8)](){const _0x5f15c0=_0x1e47ba;var _0x4cb8f5;(_0x4cb8f5=this['_cursors'])==null||_0x4cb8f5[_0x5f15c0(0x1e6)](_0x2193b3=>_0x2193b3[_0x5f15c0(0x36c)]());}[_0x1e47ba(0x1d6)](){const _0xa37479=_0x1e47ba;return ae['getSheetObject'](this[_0xa37479(0x464)],this['_renderManagerService']);}};de=Is([a[_0x1e47ba(0x280)](a[_0x1e47ba(0x239)]['Steady'],de),ie(0x0,h[_0x1e47ba(0x443)](z)),ie(0x1,a[_0x1e47ba(0x118)]),ie(0x2,R[_0x1e47ba(0x1a1)]),ie(0x3,h[_0x1e47ba(0x443)](ae[_0x1e47ba(0x349)])),ie(0x4,h[_0x1e47ba(0x443)](a[_0x1e47ba(0x43a)]))],de);function ps(_0x3683a7){const _0x10c0fa=_0x1e47ba,_0x487cd1=new Map();return _0x3683a7[_0x10c0fa(0x1e6)](_0x3c59b9=>{const _0x29d63f=_0x10c0fa;if(_0x487cd1[_0x29d63f(0x174)](_0x3c59b9[_0x29d63f(0x380)])){const _0x4da5dc=_0x487cd1[_0x29d63f(0x367)](_0x3c59b9[_0x29d63f(0x380)]);_0x4da5dc[_0x29d63f(0x316)]+=',\x20'+_0x3c59b9['name'];}else _0x487cd1['set'](_0x3c59b9[_0x29d63f(0x380)],_0x3c59b9);}),Array[_0x10c0fa(0x47a)](_0x487cd1[_0x10c0fa(0x357)]());}var A=function(){const _0x39354e=_0x1e47ba;return A=Object[_0x39354e(0x140)]||function(_0x33c4a1){const _0x322cc1=_0x39354e;for(var _0xa28966,_0x38988a=0x1,_0x3d1d86=arguments[_0x322cc1(0x3fb)];_0x38988a<_0x3d1d86;_0x38988a++){_0xa28966=arguments[_0x38988a];for(var _0x3c5738 in _0xa28966)Object[_0x322cc1(0x264)][_0x322cc1(0x191)][_0x322cc1(0x198)](_0xa28966,_0x3c5738)&&(_0x33c4a1[_0x3c5738]=_0xa28966[_0x3c5738]);}return _0x33c4a1;},A[_0x39354e(0x2ed)](this,arguments);},Es=function(_0x34a071,_0xc73870){const _0x31865f=_0x1e47ba;var _0x1bc436={};for(var _0x513ba1 in _0x34a071)Object['prototype'][_0x31865f(0x191)]['call'](_0x34a071,_0x513ba1)&&_0xc73870[_0x31865f(0x142)](_0x513ba1)<0x0&&(_0x1bc436[_0x513ba1]=_0x34a071[_0x513ba1]);if(_0x34a071!=null&&typeof Object[_0x31865f(0x2e0)]==_0x31865f(0x364)){for(var _0x3b697c=0x0,_0x513ba1=Object[_0x31865f(0x2e0)](_0x34a071);_0x3b697c<_0x513ba1[_0x31865f(0x3fb)];_0x3b697c++)_0xc73870[_0x31865f(0x142)](_0x513ba1[_0x3b697c])<0x0&&Object['prototype'][_0x31865f(0x111)][_0x31865f(0x198)](_0x34a071,_0x513ba1[_0x3b697c])&&(_0x1bc436[_0x513ba1[_0x3b697c]]=_0x34a071[_0x513ba1[_0x3b697c]]);}return _0x1bc436;},Ge=L[_0x1e47ba(0x279)](function(_0x33d2df,_0x5dcce3){const _0x349417=_0x1e47ba;var _0x5021c2=_0x33d2df['icon'],_0x248e1f=_0x33d2df['id'],_0x4cdce7=_0x33d2df[_0x349417(0x22b)],_0x4a4657=_0x33d2df[_0x349417(0x25a)],_0x50ae83=Es(_0x33d2df,[_0x349417(0x2d3),'id',_0x349417(0x22b),_0x349417(0x25a)]),_0x1dbf33=_0x349417(0x194)[_0x349417(0x1bb)](_0x248e1f,'\x20')['concat'](_0x4cdce7||'')[_0x349417(0x207)](),_0xfe9d2=L[_0x349417(0x113)]('_'[_0x349417(0x1bb)](Ts()));return Et(_0x5021c2,''['concat'](_0x248e1f),{'defIds':_0x5021c2[_0x349417(0x195)],'idSuffix':_0xfe9d2['current']},A({'ref':_0x5dcce3,'className':_0x1dbf33},_0x50ae83),_0x4a4657);});function Et(_0x29c983,_0x4cacce,_0x329b72,_0x17a537,_0x524867){const _0x3ec1bb=_0x1e47ba;return L[_0x3ec1bb(0x3d2)](_0x29c983[_0x3ec1bb(0x370)],A(A({'key':_0x4cacce},Cs(_0x29c983,_0x329b72,_0x524867)),_0x17a537),(bs(_0x29c983,_0x329b72)[_0x3ec1bb(0x440)]||[])['map'](function(_0x54c194,_0x2498f6){const _0x2cda9a=_0x3ec1bb;return Et(_0x54c194,''[_0x2cda9a(0x1bb)](_0x4cacce,'-')['concat'](_0x29c983['tag'],'-')[_0x2cda9a(0x1bb)](_0x2498f6),_0x329b72,void 0x0,_0x524867);}));}function Cs(_0x1ca092,_0x2a99a8,_0x524462){const _0x1abc51=_0x1e47ba;var _0x4b90fc=A({},_0x1ca092[_0x1abc51(0x18b)]);_0x524462!=null&&_0x524462[_0x1abc51(0x429)]&&_0x4b90fc[_0x1abc51(0x400)]==='colorChannel1'&&(_0x4b90fc[_0x1abc51(0x400)]=_0x524462[_0x1abc51(0x429)]);var _0xb95a38=_0x2a99a8[_0x1abc51(0x195)];return!_0xb95a38||_0xb95a38['length']===0x0||(_0x1ca092[_0x1abc51(0x370)]===_0x1abc51(0x2c8)&&_0x4b90fc[_0x1abc51(0xe9)]&&(_0x4b90fc[_0x1abc51(0xe9)]=_0x4b90fc['xlink:href']+_0x2a99a8[_0x1abc51(0x375)]),Object[_0x1abc51(0x3a7)](_0x4b90fc)[_0x1abc51(0x1e6)](function(_0x358515){const _0xbe75e0=_0x1abc51;var _0x59cc95=_0x358515[0x0],_0x4d217d=_0x358515[0x1];typeof _0x4d217d==_0xbe75e0(0x3ba)&&(_0x4b90fc[_0x59cc95]=_0x4d217d[_0xbe75e0(0x1de)](/url\(#(.*)\)/,_0xbe75e0(0x1b9)[_0xbe75e0(0x1bb)](_0x2a99a8[_0xbe75e0(0x375)],')')));})),_0x4b90fc;}function bs(_0x27e8dc,_0x57c9e5){const _0x47a520=_0x1e47ba;var _0x5aeb5e,_0x1c0710=_0x57c9e5['defIds'];return!_0x1c0710||_0x1c0710['length']===0x0?_0x27e8dc:_0x27e8dc['tag']===_0x47a520(0x1a9)&&(!((_0x5aeb5e=_0x27e8dc[_0x47a520(0x440)])===null||_0x5aeb5e===void 0x0)&&_0x5aeb5e[_0x47a520(0x3fb)])?A(A({},_0x27e8dc),{'children':_0x27e8dc[_0x47a520(0x440)][_0x47a520(0x290)](function(_0x1006af){const _0x4eb2a0=_0x47a520;return typeof _0x1006af['attrs']['id']==_0x4eb2a0(0x3ba)&&_0x1c0710&&_0x1c0710['indexOf'](_0x1006af[_0x4eb2a0(0x18b)]['id'])>-0x1?A(A({},_0x1006af),{'attrs':A(A({},_0x1006af[_0x4eb2a0(0x18b)]),{'id':_0x1006af['attrs']['id']+_0x57c9e5[_0x4eb2a0(0x375)]})}):_0x1006af;})}):_0x27e8dc;}function Ts(){const _0x3305b2=_0x1e47ba;return Math[_0x3305b2(0x302)]()[_0x3305b2(0x34a)](0x24)[_0x3305b2(0x286)](0x2,0x8);}Ge[_0x1e47ba(0x340)]='UniverIcon';var Rs={'tag':_0x1e47ba(0x33f),'attrs':{'fill':'none','viewBox':_0x1e47ba(0x28c),'width':_0x1e47ba(0x475),'height':_0x1e47ba(0x475)},'children':[{'tag':'g','attrs':{'clipPath':_0x1e47ba(0x12e)},'children':[{'tag':_0x1e47ba(0x34d),'attrs':{'stroke':'currentColor','d':_0x1e47ba(0x339),'strokeLinecap':_0x1e47ba(0x2fc),'strokeLinejoin':'round','strokeWidth':1.2}}]},{'tag':_0x1e47ba(0x1a9),'attrs':{},'children':[{'tag':_0x1e47ba(0x486),'attrs':{'id':_0x1e47ba(0x3de)},'children':[{'tag':'path','attrs':{'fill':_0x1e47ba(0x18d),'d':_0x1e47ba(0xe5)}}]}]}],'defIds':['off-line-single_clip0_910_343']},Ct=L[_0x1e47ba(0x279)](function(_0x13d68a,_0x136b3d){const _0x4982f0=_0x1e47ba;return L['createElement'](Ge,Object[_0x4982f0(0x140)]({},_0x13d68a,{'id':'off-line-single','ref':_0x136b3d,'icon':Rs}));});Ct['displayName']=_0x1e47ba(0x326);var Ds={'tag':_0x1e47ba(0x33f),'attrs':{'fill':_0x1e47ba(0x415),'viewBox':_0x1e47ba(0x241),'width':_0x1e47ba(0x475),'height':'1em'},'children':[{'tag':'g','attrs':{'clipPath':_0x1e47ba(0x427)},'children':[{'tag':_0x1e47ba(0x34d),'attrs':{'stroke':_0x1e47ba(0x283),'d':'M4.5865\x2011.6499C3.36983\x2011.6499\x201.6665\x2011.1024\x201.6665\x208.9124C1.6665\x206.3574\x204.2215\x205.8099\x204.9515\x205.8099C5.3165\x204.5324\x206.0465\x202.5249\x208.9665\x202.5249C11.5215\x202.5249\x2012.6165\x203.9849\x2012.9815\x205.2624C12.9815\x205.2624\x2016.2665\x205.6274\x2016.2665\x208.7299C16.2665\x2010.9199\x2014.8065\x2011.6499\x2013.3465\x2011.6499M6.7767\x2011.6497L8.9667\x2013.4747L11.8867\x209.82466','strokeLinecap':_0x1e47ba(0x2fc),'strokeLinejoin':'round','strokeWidth':1.2}}]},{'tag':'defs','attrs':{},'children':[{'tag':_0x1e47ba(0x486),'attrs':{'id':_0x1e47ba(0x3f9)},'children':[{'tag':_0x1e47ba(0x34d),'attrs':{'fill':_0x1e47ba(0x18d),'d':_0x1e47ba(0xe5),'transform':_0x1e47ba(0x1b3)}}]}]}],'defIds':['on-line-single_clip0_910_349']},bt=L[_0x1e47ba(0x279)](function(_0x265d22,_0x295de1){const _0x29180f=_0x1e47ba;return L[_0x29180f(0x3d2)](Ge,Object[_0x29180f(0x140)]({},_0x265d22,{'id':'on-line-single','ref':_0x295de1,'icon':Ds}));});bt['displayName']=_0x1e47ba(0x2ca);const Os=_0x1e47ba(0x2d0),ys=_0x1e47ba(0x15b),Ls=_0x1e47ba(0x1bf),Ms=_0x1e47ba(0x47d),Ns='univer-offline',ne={'onlineStatusIcon':Os,'onlineStatusTitle':ys,'onlineStatus':Ls,'online':Ms,'offline':Ns};function As(_0x2f2a14){const _0x21ddfa=_0x1e47ba;switch(_0x2f2a14){case y['OFFLINE']:return _0x21ddfa(0x154);case y[_0x21ddfa(0x2e9)]:return _0x21ddfa(0x1ec);case y[_0x21ddfa(0x426)]:return _0x21ddfa(0x30a);case y['NOT_COLLAB']:return _0x21ddfa(0x282);case y[_0x21ddfa(0xf6)]:case y[_0x21ddfa(0x30c)]:case y[_0x21ddfa(0x3ae)]:return _0x21ddfa(0x28d);case y[_0x21ddfa(0x3da)]:return _0x21ddfa(0x31f);}}function _0x55a2(_0x26ca15,_0xa0abb3){const _0x32f044=_0x32f0();return _0x55a2=function(_0x55a27d,_0x34a8a5){_0x55a27d=_0x55a27d-0xde;let _0x4ff963=_0x32f044[_0x55a27d];return _0x4ff963;},_0x55a2(_0x26ca15,_0xa0abb3);}function Tt(_0x64ec0e){const _0x31f626=_0x1e47ba,{status$:_0x491069}=_0x64ec0e,_0x17f0e1=U[_0x31f626(0x3e5)](_0x491069,y[_0x31f626(0x275)]),_0x4ea77f=at[_0x31f626(0x414)](a['LocaleService']),_0x588451=_0x17f0e1!==y[_0x31f626(0x3e8)],_0x55c769=_0x4ea77f['t'](As(_0x17f0e1)),_0x39390a=Pt(ne[_0x31f626(0x1ab)],{[ne[_0x31f626(0x17e)]]:_0x588451,[ne['offline']]:!_0x588451}),_0x21e104=_0x588451?L[_0x31f626(0x3d2)](bt,null):L['createElement'](Ct,null);return L[_0x31f626(0x3d2)](_0x31f626(0x1d4),{'className':_0x39390a},L[_0x31f626(0x3d2)](_0x31f626(0x1d4),{'className':ne[_0x31f626(0x38d)]},_0x21e104),L[_0x31f626(0x3d2)](_0x31f626(0x1d4),{'className':ne[_0x31f626(0xeb)]},_0x55c769));}var ws=(_0x7cad4e,_0x14becc,_0x167a49,_0x2ad978)=>{const _0x33dad7=_0x1e47ba;for(var _0x119126=_0x14becc,_0x4e12f8=_0x7cad4e[_0x33dad7(0x3fb)]-0x1,_0x538846;_0x4e12f8>=0x0;_0x4e12f8--)(_0x538846=_0x7cad4e[_0x4e12f8])&&(_0x119126=_0x538846(_0x119126)||_0x119126);return _0x119126;},_e=(_0x10eede,_0x5ec138)=>(_0x32eb2e,_0x5227fb)=>_0x5ec138(_0x32eb2e,_0x5227fb,_0x10eede);exports[_0x1e47ba(0x2c5)]=class extends a[_0x1e47ba(0x152)]{constructor(_0x193809,_0x40977e,_0x1887e1,_0x1a6d13){const _0x10aec6=_0x1e47ba;super(),d(this,'_status$',new v[(_0x10aec6(0x432))](y[_0x10aec6(0x275)])),(this['_univerInstanceService']=_0x193809,this[_0x10aec6(0x274)]=_0x40977e,this['_injector']=_0x1887e1,this[_0x10aec6(0x11a)]=_0x1a6d13,this[_0x10aec6(0x153)](),this[_0x10aec6(0x1a8)]());}[_0x1e47ba(0x153)](){const _0x2562df=_0x1e47ba;this[_0x2562df(0x2e4)](this[_0x2562df(0x274)][_0x2562df(0x1f5)](U[_0x2562df(0x41e)][_0x2562df(0x423)],()=>at[_0x2562df(0x344)](Us({'status$':this[_0x2562df(0x170)]['asObservable']()}),this[_0x2562df(0x376)])));}[_0x1e47ba(0x1a8)](){const _0x6825cc=_0x1e47ba;this[_0x6825cc(0x2e4)](a[_0x6825cc(0x251)](this['_univerInstanceService'][_0x6825cc(0x460)][_0x6825cc(0x1cb)](v[_0x6825cc(0x2bd)](()=>{const _0x3acf7f=_0x6825cc,_0x4fdcae=this['_univerInstanceService'][_0x3acf7f(0x197)]();return _0x4fdcae?this[_0x3acf7f(0x11a)][_0x3acf7f(0x1f3)](_0x4fdcae[_0x3acf7f(0x231)]()):v['of'](null);}),v[_0x6825cc(0x2bd)](_0x43aec3=>_0x43aec3?_0x43aec3[_0x6825cc(0x1f4)]:v['of'](y['NOT_COLLAB'])))[_0x6825cc(0x319)](_0x58b7f6=>{const _0x5b5a78=_0x6825cc;this[_0x5b5a78(0x170)]['next'](_0x58b7f6);})));}},exports[_0x1e47ba(0x2c5)]=ws([a[_0x1e47ba(0x280)](a['LifecycleStages']['Starting'],exports[_0x1e47ba(0x2c5)]),_e(0x0,a[_0x1e47ba(0x118)]),_e(0x1,U[_0x1e47ba(0x11b)]),_e(0x2,h['Inject'](h[_0x1e47ba(0x488)])),_e(0x3,h[_0x1e47ba(0x443)](exports[_0x1e47ba(0x450)]))],exports[_0x1e47ba(0x2c5)]);function Us(_0x295e55){const {status$:_0x15250a}=_0x295e55;return function(){return L['createElement'](Tt,{'status$':_0x15250a});};}const Ye=h[_0x1e47ba(0x227)](_0x1e47ba(0x2d1));var Ps=(_0x5a885e,_0x11f7cf,_0x3d2b68,_0x1f739f)=>{const _0x45c3ae=_0x1e47ba;for(var _0x541ff5=_0x11f7cf,_0x5cc3ac=_0x5a885e[_0x45c3ae(0x3fb)]-0x1,_0x373f9a;_0x5cc3ac>=0x0;_0x5cc3ac--)(_0x373f9a=_0x5a885e[_0x5cc3ac])&&(_0x541ff5=_0x373f9a(_0x541ff5)||_0x541ff5);return _0x541ff5;},J=(_0x1ca45e,_0x28a34e)=>(_0x5b8fc8,_0x152a85)=>_0x28a34e(_0x5b8fc8,_0x152a85,_0x1ca45e);exports[_0x1e47ba(0x3c8)]=class extends a[_0x1e47ba(0x45e)]{constructor(_0x83e10e,_0x1c4e50,_0x329916,_0x384848,_0x1b5ecb,_0x13b89d){const _0x270b3d=_0x1e47ba;super(),this[_0x270b3d(0x387)]=_0x83e10e,this[_0x270b3d(0x18f)]=_0x1c4e50,this[_0x270b3d(0x3cd)]=_0x329916,this[_0x270b3d(0x12a)]=_0x384848,this[_0x270b3d(0x3f2)]=_0x1b5ecb,_0x13b89d?_0x13b89d==null||_0x13b89d[_0x270b3d(0x425)]()['then'](()=>this[_0x270b3d(0x480)]()):(this[_0x270b3d(0x18f)][_0x270b3d(0x199)]('[DataLoaderController]',_0x270b3d(0xe0)),this[_0x270b3d(0x480)]());}async['_init'](){const _0x5a42bb=_0x1e47ba,_0x416105=this[_0x5a42bb(0x387)][_0x5a42bb(0x354)](_0x5a42bb(0x33c)),_0x109f45=this[_0x5a42bb(0x387)]['getParam']('type');if(!_0x416105||!_0x109f45){this['_logService'][_0x5a42bb(0x199)](_0x5a42bb(0x1ce),'No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.');return;}switch(Number(_0x109f45)){case k[_0x5a42bb(0x342)]:{const _0x9be6db=await this[_0x5a42bb(0x2b8)](_0x416105);this[_0x5a42bb(0x2dd)](_0x9be6db);break;}case k[_0x5a42bb(0x48c)]:{await this['_loadDoc'](_0x416105);break;}default:{this[_0x5a42bb(0x18f)]['error'](_0x5a42bb(0x1ce),_0x5a42bb(0x473));break;}}}async[_0x1e47ba(0x2dd)](_0x30afe8){const _0x53cf3b=_0x1e47ba;await this[_0x53cf3b(0x20f)](_0x30afe8),_0x30afe8[_0x53cf3b(0x317)][_0x53cf3b(0x1cb)](v[_0x53cf3b(0x308)](this[_0x53cf3b(0x2b1)]))[_0x53cf3b(0x319)](_0x3e01d2=>{const _0xf32d26=_0x53cf3b;_0x3e01d2&&this[_0xf32d26(0xe6)](_0x3e01d2);}),this[_0x53cf3b(0x387)][_0x53cf3b(0x20c)][_0x53cf3b(0x1cb)](v['takeUntil'](this[_0x53cf3b(0x2b1)]))['subscribe'](()=>this[_0x53cf3b(0x20f)](_0x30afe8));}['_updateURLWithCurrentState'](_0x47fae7,_0x784b07=!0x1){const _0x47a0a4=_0x1e47ba,_0x38e1a4=this[_0x47a0a4(0x387)][_0x47a0a4(0x354)]('subunit');_0x47fae7[_0x47a0a4(0x36b)]()!==_0x38e1a4&&this['_urlService'][_0x47a0a4(0x120)](_0x47a0a4(0x334),_0x47fae7['getSheetId'](),_0x784b07);}async[_0x1e47ba(0x20f)](_0x2e026a){const _0x2fe063=_0x1e47ba,_0x5418ad=this[_0x2fe063(0x387)][_0x2fe063(0x354)]('subunit');if(!_0x5418ad||!_0x2e026a[_0x2fe063(0x1be)](_0x5418ad)){this[_0x2fe063(0xe6)](_0x2e026a[_0x2fe063(0x208)](),!0x0);return;}_0x2e026a['getActiveSheet']()['getSheetId']()!==_0x5418ad&&await this[_0x2fe063(0x3cd)][_0x2fe063(0x43f)](E[_0x2fe063(0x36f)]['id'],{'unitId':_0x2e026a[_0x2fe063(0x231)](),'subUnitId':_0x5418ad});}async[_0x1e47ba(0x2b8)](_0x5b84f5){const _0x2e2db8=_0x1e47ba;let _0x44cf00=0x0;const _0x4c01fb=await this[_0x2e2db8(0x12a)][_0x2e2db8(0x122)](_0x5b84f5);return _0x4c01fb&&(_0x4c01fb[_0x2e2db8(0x478)]||_0x4c01fb[_0x2e2db8(0x3df)][_0x2e2db8(0x3fb)]!==0x0)&&(_0x44cf00=_0x4c01fb[_0x2e2db8(0x45a)]),_0x44cf00===0x0&&this[_0x2e2db8(0x18f)][_0x2e2db8(0x199)](_0x2e2db8(0x1ce),'fetching\x20the\x20latest\x20document\x20from\x20the\x20server.'),this[_0x2e2db8(0x3f2)]['loadSheet'](_0x5b84f5,_0x44cf00);}async['_loadDoc'](_0x2e4cc7){const _0x4a3583=_0x1e47ba;let _0x193802=0x0;const _0x5483d9=await this[_0x4a3583(0x12a)]['loadOfflineData'](_0x2e4cc7);return _0x5483d9&&(_0x5483d9[_0x4a3583(0x478)]||_0x5483d9[_0x4a3583(0x3df)][_0x4a3583(0x3fb)]!==0x0)&&(_0x193802=_0x5483d9['rev']),_0x193802===0x0&&this['_logService'][_0x4a3583(0x199)](_0x4a3583(0x1ce),_0x4a3583(0x1c8)),this[_0x4a3583(0x3f2)][_0x4a3583(0x3b4)](_0x2e4cc7,_0x193802);}},exports[_0x1e47ba(0x3c8)]=Ps([a['OnLifecycle'](a['LifecycleStages'][_0x1e47ba(0x42f)],exports[_0x1e47ba(0x3c8)]),J(0x0,Ye),J(0x1,a[_0x1e47ba(0x467)]),J(0x2,a[_0x1e47ba(0x44e)]),J(0x3,h[_0x1e47ba(0x443)](exports['LocalCacheService'])),J(0x4,h[_0x1e47ba(0x443)](u[_0x1e47ba(0xdf)])),J(0x5,h[_0x1e47ba(0x3c0)](kt[_0x1e47ba(0x2c7)]))],exports['DataLoaderController']);var ks=(_0x50e4e6,_0x385bb1,_0x236ae1,_0x4bfacb)=>{const _0x2f92d2=_0x1e47ba;for(var _0x25074a=_0x385bb1,_0x61faff=_0x50e4e6[_0x2f92d2(0x3fb)]-0x1,_0xf51634;_0x61faff>=0x0;_0x61faff--)(_0xf51634=_0x50e4e6[_0x61faff])&&(_0x25074a=_0xf51634(_0x25074a)||_0x25074a);return _0x25074a;},st=(_0x574ebc,_0x4946ef)=>(_0x763b2e,_0x460057)=>_0x4946ef(_0x763b2e,_0x460057,_0x574ebc);const js=_0x1e47ba(0x384),$s=_0x1e47ba(0x104);let Se=class extends a[_0x1e47ba(0x152)]{constructor(_0x4d120f,_0x4f0e52){const _0x265343=_0x1e47ba;super(),this[_0x265343(0x464)]=_0x4d120f,this[_0x265343(0xfd)]=_0x4f0e52,this[_0x265343(0x480)]();}['_init'](){const _0x2daf19=_0x1e47ba;this['disposeWithMe'](a[_0x2daf19(0x251)](this[_0x2daf19(0x464)]['focused$']['subscribe'](()=>{const _0x34af09=_0x2daf19;var _0x77c06a;const _0x401a8e=this[_0x34af09(0x464)][_0x34af09(0x197)]();let _0x2dce31=(_0x77c06a=this[_0x34af09(0xfd)]['getConfig'](js))!=null?_0x77c06a:$s;_0x401a8e instanceof a[_0x34af09(0x46f)]&&(_0x2dce31=_0x401a8e[_0x34af09(0x316)]),document[_0x34af09(0xfb)]=_0x2dce31;})));}};Se=ks([a['OnLifecycle'](a[_0x1e47ba(0x239)][_0x1e47ba(0x187)],Se),st(0x0,a[_0x1e47ba(0x118)]),st(0x1,a['IConfigService'])],Se);var Hs=(_0x367809,_0x5a3c31,_0x35deed,_0xb2ce29)=>{const _0x5cb96f=_0x1e47ba;for(var _0x2e8363=_0x5a3c31,_0x4516fe=_0x367809[_0x5cb96f(0x3fb)]-0x1,_0x4e3639;_0x4516fe>=0x0;_0x4516fe--)(_0x4e3639=_0x367809[_0x4516fe])&&(_0x2e8363=_0x4e3639(_0x2e8363)||_0x2e8363);return _0x2e8363;},it=(_0x1ce82b,_0x23f39b)=>(_0x3bee0d,_0x397e2b)=>_0x23f39b(_0x3bee0d,_0x397e2b,_0x1ce82b);const Rt=_0x1e47ba(0x178),xs=_0x1e47ba(0x2ff);let ke=class{constructor(_0x54220b,_0x4a9266){const _0x28a3cf=_0x1e47ba;this[_0x28a3cf(0xfd)]=_0x54220b,this['_httpService']=_0x4a9266;}async[_0x1e47ba(0x2f0)](_0x3f459c,_0x42b7d5){const _0x190715=_0x1e47ba;var _0x542e4e;const {unitID:_0x5f1db7,type:_0x34041d,revision:_0x232606=0x0}=_0x42b7d5,_0x17fef6=this['_getAPIPrefixPath']()+'/'+_0x34041d+_0x190715(0x2fa)+_0x5f1db7+'/rev/'+(_0x232606===0x1?0x0:_0x232606),_0x50f30d=(await this[_0x190715(0x20a)][_0x190715(0x367)](_0x17fef6))[_0x190715(0x2ee)],_0x269188=(_0x542e4e=_0x50f30d[_0x190715(0x2a8)])==null?void 0x0:_0x542e4e['workbook'];if(_0x269188){const _0x282f3b=_0x269188==null?void 0x0:_0x269188[_0x190715(0x2cd)],_0x5e8fa3=a[_0x190715(0x3e4)]['encode'](a[_0x190715(0x3e1)](_0x282f3b));_0x269188[_0x190715(0x2cd)]=_0x5e8fa3,Object[_0x190715(0x3a7)](_0x269188[_0x190715(0x315)])[_0x190715(0x1e6)](([,_0x2bbdf7])=>{const _0x548271=_0x190715,_0x4d06da=_0x2bbdf7[_0x548271(0x2cd)],_0x818486=a[_0x548271(0x3e4)][_0x548271(0x388)](a[_0x548271(0x3e1)](_0x4d06da));_0x2bbdf7[_0x548271(0x2cd)]=_0x818486;});}return _0x50f30d;}async['getSheetBlock'](_0x2a7df8,_0x19f124){const _0x5e4d67=_0x1e47ba,{unitID:_0x168e19,type:_0x45d5b5,blockID:_0x3ea497}=_0x19f124,_0x6d14da=this[_0x5e4d67(0x1ac)]()+'/'+_0x45d5b5+_0x5e4d67(0x2fa)+_0x168e19+_0x5e4d67(0x352)+_0x3ea497;return(await this['_httpService'][_0x5e4d67(0x367)](_0x6d14da))[_0x5e4d67(0x2ee)];}async[_0x1e47ba(0x171)](_0x12262b,_0x3d70db){const _0x26d6ca=_0x1e47ba,{unitID:_0x3b0a17,type:_0x5f3211,from:_0x12ce78,to:_0x505887}=_0x3d70db,_0x2e2988=this[_0x26d6ca(0x1ac)]()+'/'+_0x5f3211+'/unit/'+_0x3b0a17+'/fetchmissing?from='+_0x12ce78+_0x26d6ca(0x3d1)+_0x505887;return(await this[_0x26d6ca(0x20a)]['get'](_0x2e2988))['body'];}[_0x1e47ba(0x1ac)](){const _0x12f58c=_0x1e47ba;var _0x437413;return(_0x437413=this[_0x12f58c(0xfd)][_0x12f58c(0x159)](Rt))!=null?_0x437413:xs;}async[_0x1e47ba(0x3a2)](_0x1bca7e,_0x2165d3){const _0x3ad211=_0x1e47ba,_0x5b98b4=_0x3ad211(0x3bf)+_0x2165d3['type']+_0x3ad211(0x2fa)+_0x2165d3[_0x3ad211(0x2d2)]+_0x3ad211(0xf7);return(await this[_0x3ad211(0x20a)][_0x3ad211(0x367)](_0x5b98b4,{'params':{'resourceId':JSON[_0x3ad211(0x3f6)](_0x2165d3[_0x3ad211(0x15e)])}}))['body'];}[_0x1e47ba(0x458)](){throw new Error('This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!');}['saveSheetBlock'](){const _0x23da0f=_0x1e47ba;throw new Error(_0x23da0f(0x281));}[_0x1e47ba(0x1e1)](){const _0x4376ac=_0x1e47ba;throw new Error(_0x4376ac(0x281));}};ke=Hs([it(0x0,a[_0x1e47ba(0x306)]),it(0x1,h[_0x1e47ba(0x443)](M['HTTPService']))],ke);var Bs=(_0x596248,_0x5450b6,_0x53ebe9,_0x4ca0ac)=>{for(var _0x40a95e=_0x5450b6,_0x162a37=_0x596248['length']-0x1,_0x3142bc;_0x162a37>=0x0;_0x162a37--)(_0x3142bc=_0x596248[_0x162a37])&&(_0x40a95e=_0x3142bc(_0x40a95e)||_0x40a95e);return _0x40a95e;},re=(_0x369d46,_0x461d7b)=>(_0x357dd6,_0x25d7e8)=>_0x461d7b(_0x357dd6,_0x25d7e8,_0x369d46);let je=class extends a[_0x1e47ba(0x3bb)]{constructor(_0x347f50,_0x3b9300,_0x28516b,_0x4e1355,_0x4f8881){const _0x9d5f62=_0x1e47ba;super(_0x347f50,_0x3b9300,_0x28516b),this[_0x9d5f62(0x35c)]=_0x4e1355,this['_logService']=_0x4f8881;}[_0x1e47ba(0x291)](_0x4fd308,_0x56ed51){const _0x253ccd=_0x1e47ba,_0x4dc11f=this['_getUndoStack'](_0x4fd308);if(_0x4dc11f)try{const _0x1d68a2=this['_transformStack'](_0x4dc11f,_0x56ed51);this['_substituteUndoStack'](_0x4fd308,_0x1d68a2);}catch(_0x5ee97e){this[_0x253ccd(0x18f)][_0x253ccd(0x343)](_0x253ccd(0x125),_0x5ee97e),this[_0x253ccd(0x1d1)](_0x4fd308);}const _0x82301f=this[_0x253ccd(0x1ff)](_0x4fd308);if(_0x82301f)try{const _0x18c1c2=this[_0x253ccd(0x485)](_0x82301f,_0x56ed51);this['_substituteRedoStack'](_0x4fd308,_0x18c1c2);}catch(_0x5d2545){this[_0x253ccd(0x18f)][_0x253ccd(0x343)](_0x5d2545),this['_clearRedo'](_0x4fd308);}}[_0x1e47ba(0x1d1)](_0x19306f){const _0x3bc890=_0x1e47ba,_0x5b5416=this[_0x3bc890(0x31c)](_0x19306f);_0x5b5416&&(_0x5b5416['length']=0x0,this['_updateStatus']());}[_0x1e47ba(0x250)](_0x481a6d){const _0x1a6a6a=_0x1e47ba,_0x13a6c8=this[_0x1a6a6a(0x1ff)](_0x481a6d);_0x13a6c8&&(_0x13a6c8[_0x1a6a6a(0x3fb)]=0x0,this[_0x1a6a6a(0x37d)]());}[_0x1e47ba(0x225)](_0x1f3b26,_0x411e5d){const _0x561050=_0x1e47ba;this['_undoStacks'][_0x561050(0x204)](_0x1f3b26,_0x411e5d),this[_0x561050(0x37d)]();}[_0x1e47ba(0x1cd)](_0x13a2ad,_0x5d74d2){const _0x39d5eb=_0x1e47ba;this['_redoStacks'][_0x39d5eb(0x204)](_0x13a2ad,_0x5d74d2),this[_0x39d5eb(0x37d)]();}[_0x1e47ba(0x485)](_0x1a48fd,_0x13fce5){const _0x1ff305=_0x1e47ba,_0xc60188=[];let _0x1659f7=_0x13fce5,_0xe9c4f1=_0x13fce5;for(let _0x277e9d=_0x1a48fd['length']-0x1;_0x277e9d>=0x0;_0x277e9d--){const {unitID:_0x631d4e,undoMutations:_0x591d92,redoMutations:_0x3d442c}=_0x1a48fd[_0x277e9d],_0x3e6349=this['_transformService']['transformMutationsWithChangeset'](_0x1659f7,_0x591d92),_0x886bb2=this[_0x1ff305(0x35c)]['transformMutationsWithChangeset'](_0xe9c4f1,_0x3d442c);if(u[_0x1ff305(0xe1)](_0x3e6349)||u['isTransformMutationsWithChangesetFailure'](_0x886bb2)){this['_logService'][_0x1ff305(0x343)](_0x1ff305(0x125),_0x1ff305(0x325),_0x3e6349,_0x886bb2);break;}_0x1659f7=_0x3e6349['c1Prime'],_0xe9c4f1=_0x886bb2[_0x1ff305(0x273)],_0xc60188[_0x1ff305(0x441)]({'unitID':_0x631d4e,'undoMutations':_0x3e6349[_0x1ff305(0x233)],'redoMutations':_0x886bb2[_0x1ff305(0x233)]});}return _0xc60188['reverse']();}};je=Bs([re(0x0,a[_0x1e47ba(0x118)]),re(0x1,a[_0x1e47ba(0x44e)]),re(0x2,a[_0x1e47ba(0x3c9)]),re(0x3,u['ITransformService']),re(0x4,a[_0x1e47ba(0x467)])],je);class Dt extends a[_0x1e47ba(0x45e)]{constructor(){const _0x26233b=_0x1e47ba;super(),d(this,_0x26233b(0x20c)),this[_0x26233b(0x20c)]=v['fromEvent'](window,_0x26233b(0x419))[_0x26233b(0x1cb)](v[_0x26233b(0x308)](this['dispose$']),v['shareReplay'](0x1),v['mapTo'](void 0x0));}[_0x1e47ba(0x120)](_0x348fdd,_0x20289e,_0x1fe03b=!0x1){const _0x5155a3=_0x1e47ba,_0x1f0175=new URL(window['location'][_0x5155a3(0x25b)]);_0x1f0175[_0x5155a3(0x413)]['set'](_0x348fdd,_0x20289e),_0x1fe03b?window[_0x5155a3(0x45d)][_0x5155a3(0x14d)]('','',_0x1f0175[_0x5155a3(0x34a)]()):window[_0x5155a3(0x45d)][_0x5155a3(0x105)]('','',_0x1f0175['toString']());}['removeParam'](_0x315786,_0x2de59b=!0x1){const _0x168811=_0x1e47ba,_0x5687c9=new URL(window['location'][_0x168811(0x25b)]);_0x5687c9[_0x168811(0x413)]['delete'](_0x315786),_0x2de59b?window[_0x168811(0x45d)][_0x168811(0x14d)]('','',_0x5687c9[_0x168811(0x34a)]()):window[_0x168811(0x45d)][_0x168811(0x105)]('','',_0x5687c9[_0x168811(0x34a)]());}[_0x1e47ba(0x354)](_0x801368){const _0x42aecc=_0x1e47ba;var _0x1e78ee;return(_0x1e78ee=new URL(window[_0x42aecc(0x410)]['href'])[_0x42aecc(0x413)][_0x42aecc(0x367)](_0x801368))!=null?_0x1e78ee:void 0x0;}}const ye=_0x1e47ba(0x1ee),Fs=_0x1e47ba(0x329),ue=0x6,Vs=1.5,Le=0x4,Ws=1.5,Gs=_0x1e47ba(0x2c4);class Ys{constructor(_0xb6d48,_0x1bb737,_0x755804,_0x4acd3a){const _0x352d6f=_0x1e47ba;d(this,'_shapes',[]),d(this,_0x352d6f(0x102),null),d(this,_0x352d6f(0x361),null),d(this,'_anchorDot',null),d(this,'_hideTimer',null),d(this,'_eventUnsubscribe',null),(this[_0x352d6f(0x202)]=_0xb6d48,this[_0x352d6f(0x1d8)]=_0x1bb737,this[_0x352d6f(0x19b)]=_0x755804,this[_0x352d6f(0x398)]=_0x4acd3a,this[_0x352d6f(0x2ab)]());}set['_hover'](_0x53eb62){const _0x459981=_0x1e47ba;_0x53eb62?(this[_0x459981(0x321)]&&this[_0x459981(0x321)]['hide'](),this[_0x459981(0x361)]&&this[_0x459981(0x361)][_0x459981(0x2e7)]()):(this[_0x459981(0x321)]&&this['_anchorDot'][_0x459981(0x2e7)](),this['_textBubble']&&this['_textBubble']['hide']());}[_0x1e47ba(0x36c)](){const _0x5ad56c=_0x1e47ba;for(const _0x3a4f40 of this['_shapes'])_0x3a4f40[_0x5ad56c(0x36c)]();this[_0x5ad56c(0x361)]&&this['_textBubble'][_0x5ad56c(0x36c)](),this['_anchorDot']&&this['_anchorDot'][_0x5ad56c(0x36c)](),this[_0x5ad56c(0x102)]&&this['_anchor'][_0x5ad56c(0x36c)](),this[_0x5ad56c(0x3bc)]&&this[_0x5ad56c(0x3bc)]();}[_0x1e47ba(0x2ab)](){const _0x57519b=_0x1e47ba,{_docSkeleton:_0x5f23b9,_document:_0x44a865}=this,{color:_0x1cd91b,name:_0x5cf940,ranges:_0x5d36b0}=this['_cursor'],_0x11d299=_0x44a865[_0x57519b(0x382)](),{docsLeft:_0x44ed74,docsTop:_0x4f8b2f}=_0x11d299,_0x2729c0=new R[(_0x57519b(0x3ac))](_0x11d299,_0x5f23b9);for(const {startOffset:_0x25b973,endOffset:_0x3b76c6,collapsed:_0x37d634,isActive:_0x3b5c92}of _0x5d36b0){const _0x1a3ffb=_0x5f23b9[_0x57519b(0xf5)](_0x25b973),_0x5ee4b7=_0x5f23b9['findNodePositionByCharIndex'](_0x3b76c6);if(_0x3b5c92){const {contentBoxPointGroup:_0xf9e53e}=_0x2729c0[_0x57519b(0x43c)](_0x5ee4b7,_0x5ee4b7);if(_0xf9e53e[_0x57519b(0x3fb)]===0x0)continue;this[_0x57519b(0x336)](_0x1cd91b,_0xf9e53e,_0x44ed74,_0x4f8b2f,_0x5cf940),this[_0x57519b(0x3bc)]=this[_0x57519b(0x14b)]();}if(!_0x37d634){const {contentBoxPointGroup:_0x2154a9}=_0x2729c0[_0x57519b(0x43c)](_0x1a3ffb,_0x5ee4b7);if(_0x2154a9[_0x57519b(0x3fb)]===0x0)continue;this[_0x57519b(0x300)](_0x1cd91b,_0x2154a9,_0x44ed74,_0x4f8b2f);}}}[_0x1e47ba(0x336)](_0x13134d,_0x24fc52,_0x1a6467,_0x22a1b5,_0x5edc0b){const _0xffa986=_0x1e47ba,_0x47deb0=this[_0xffa986(0x277)](_0x24fc52),{left:_0x44a93e,top:_0x478347,height:_0x3d6e16}=_0x47deb0,_0x44319d=this['_getScale'](),_0x42e08c=Ws/_0x44319d,_0x2b8b89=new R[(_0xffa986(0x24f))](ye+a[_0xffa986(0x332)]['generateRandomId'](ue),{'left':_0x44a93e+_0x1a6467-_0x42e08c,'top':_0x478347+_0x22a1b5,'height':_0x3d6e16,'width':Vs,'fill':_0x13134d||R[_0xffa986(0x13f)](a[_0xffa986(0x13a)][_0xffa986(0x230)],0x0),'strokeWidth':_0x42e08c,'stroke':Gs,'evented':!0x0});this[_0xffa986(0x102)]=_0x2b8b89,this[_0xffa986(0x1d8)][_0xffa986(0x25e)](_0x2b8b89,R['TEXT_RANGE_LAYER_INDEX']);const _0x2112f0=new R[(_0xffa986(0x24f))](ye+a[_0xffa986(0x332)][_0xffa986(0x3ea)](ue),{'left':_0x44a93e+_0x1a6467-_0x42e08c,'top':_0x478347+_0x22a1b5-Le/0x2,'height':Le,'width':Le,'fill':_0x13134d||R['getColor'](a[_0xffa986(0x13a)][_0xffa986(0x230)],0x0),'strokeWidth':0x0,'stroke':_0x13134d||R[_0xffa986(0x13f)](a[_0xffa986(0x13a)][_0xffa986(0x230)],0x0),'evented':!0x1});this['_anchorDot']=_0x2112f0,this[_0xffa986(0x1d8)][_0xffa986(0x25e)](_0x2112f0,R['TEXT_RANGE_LAYER_INDEX']);const _0x5100f4=new be(ye+a['Tools']['generateRandomId'](ue),{'left':_0x44a93e+_0x1a6467-_0x42e08c,'top':_0x478347+_0x22a1b5-he,'text':_0x5edc0b,'color':_0x13134d});this[_0xffa986(0x361)]=_0x5100f4,this['_scene']['addObject'](_0x5100f4,R[_0xffa986(0x2f4)]),this[_0xffa986(0x483)]=!0x1;}[_0x1e47ba(0x14b)](){const _0x175267=_0x1e47ba,_0x42954d=this[_0x175267(0x102)][_0x175267(0x476)][_0x175267(0x477)](()=>{const _0x24fdcb=_0x175267;this[_0x24fdcb(0x483)]=!0x0;}),_0x3af9b0=this[_0x175267(0x102)][_0x175267(0x2d8)]['add'](()=>{const _0x4bea64=_0x175267;this[_0x4bea64(0x3fd)]&&clearTimeout(this['_hideTimer']),this[_0x4bea64(0x3fd)]=setTimeout(()=>{const _0x869cc9=_0x4bea64;this[_0x869cc9(0x483)]=!0x1;},0x7d0);});return()=>{const _0x268991=_0x175267;var _0x4c8aa8,_0xb387a4;(_0x4c8aa8=this['_anchor'])==null||_0x4c8aa8[_0x268991(0x476)]['remove'](_0x42954d),(_0xb387a4=this[_0x268991(0x102)])==null||_0xb387a4[_0x268991(0x2d8)][_0x268991(0x3aa)](_0x3af9b0);};}[_0x1e47ba(0x300)](_0x1c0e31,_0x1c77a5,_0x3baee7,_0xdfaf2c){const _0x63e1d=_0x1e47ba,_0x5f0d93=new a[(_0x63e1d(0x232))](_0x1c0e31)[_0x63e1d(0x430)](0.2)[_0x63e1d(0x26d)](),_0x496107=new R[(_0x63e1d(0x1f7))](Fs+a[_0x63e1d(0x332)][_0x63e1d(0x3ea)](ue),{'pointsGroup':_0x1c77a5,'fill':_0x5f0d93||R[_0x63e1d(0x13f)](a[_0x63e1d(0x13a)]['black'],0.2),'left':_0x3baee7,'top':_0xdfaf2c,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x63e1d(0x2a3)][_0x63e1d(0x441)](_0x496107),this[_0x63e1d(0x1d8)]['addObject'](_0x496107,R['TEXT_RANGE_LAYER_INDEX']);}['_getAnchorBounding'](_0xd6e053){const _0x5d4c80=_0xd6e053[0x0],_0x4647bf=_0x5d4c80[0x0],_0x19bd84=_0x5d4c80[0x2],{x:_0x20059d,y:_0x1fac1d}=_0x4647bf,{x:_0x3255a0,y:_0x53329a}=_0x19bd84;return{'left':_0x20059d,'top':_0x1fac1d,'width':_0x3255a0-_0x20059d,'height':_0x53329a-_0x1fac1d};}[_0x1e47ba(0x25d)](){const _0x52fb16=_0x1e47ba,{scaleX:_0x56e84c,scaleY:_0x4c5bc0}=this[_0x52fb16(0x1d8)]['getAncestorScale']();return Math[_0x52fb16(0x328)](_0x56e84c,_0x4c5bc0);}}var Ks=(_0x5f4555,_0x3536ae,_0x3e650f,_0x55080c)=>{const _0xdf6007=_0x1e47ba;for(var _0x15b7d6=_0x3536ae,_0x3472cb=_0x5f4555[_0xdf6007(0x3fb)]-0x1,_0x2a6f9a;_0x3472cb>=0x0;_0x3472cb--)(_0x2a6f9a=_0x5f4555[_0x3472cb])&&(_0x15b7d6=_0x2a6f9a(_0x15b7d6)||_0x15b7d6);return _0x15b7d6;},oe=(_0x4f4b15,_0x29cdf8)=>(_0x2a79c7,_0x1ad4ba)=>_0x29cdf8(_0x2a79c7,_0x1ad4ba,_0x4f4b15);let ge=class extends a['RxDisposable']{constructor(_0x50411b,_0x18f870,_0x5c9afb,_0x1a079c,_0x1d3d45){const _0x2456a7=_0x1e47ba;super(),d(this,_0x2456a7(0x131),[]),(this[_0x2456a7(0x436)]=_0x50411b,this['_univerInstanceService']=_0x18f870,this['_renderManagerService']=_0x5c9afb,this['_docSkeletonManagerService']=_0x1a079c,this[_0x2456a7(0x1e2)]=_0x1d3d45,this[_0x2456a7(0x480)]());}[_0x1e47ba(0x480)](){const _0x22d7dc=_0x1e47ba;this['_docSkeletonManagerService'][_0x22d7dc(0x211)]['pipe'](T[_0x22d7dc(0x308)](this[_0x22d7dc(0x2b1)]),T[_0x22d7dc(0x2bd)](_0x361008=>{const _0x19881f=_0x22d7dc;if(_0x361008){const {unitId:_0x4c9148}=_0x361008;return v[_0x19881f(0x1f6)](this[_0x19881f(0x436)][_0x19881f(0x255)](_0x4c9148),this[_0x19881f(0x1e2)]['currentTheme$'])[_0x19881f(0x1cb)](T[_0x19881f(0x290)](([_0x5de71e,_0x502bb6])=>({'skeleton':_0x361008,'cursors':[..._0x5de71e[_0x19881f(0x357)]()][_0x19881f(0x1a7)](_0x238798=>({..._0x238798,'color':_0x502bb6[_0x238798['color']]}))})));}return v['of']({'skeleton':null,'cursors':[]});}))[_0x22d7dc(0x319)](({skeleton:_0x9ea5b6,cursors:_0x1321d7})=>{const _0x23f5ff=_0x22d7dc;this['_removeCollabCursors'](),_0x9ea5b6&&this[_0x23f5ff(0x2e2)](_0x9ea5b6[_0x23f5ff(0x304)],_0x1321d7);});}[_0x1e47ba(0x2e2)](_0x5cc663,_0x40f362){const _0x593324=_0x1e47ba,_0x27c9e5=this[_0x593324(0x1fd)]();if(_0x27c9e5==null)return;const {scene:_0x3bfe04,document:_0xaf5cb3}=_0x27c9e5,_0x28f008=_0x40f362['map'](_0x507ca2=>new Ys(_0x507ca2,_0x3bfe04,_0x5cc663,_0xaf5cb3));this[_0x593324(0x131)]=_0x28f008;}['_removeCollabCursors'](){const _0x47e17f=_0x1e47ba;this[_0x47e17f(0x131)][_0x47e17f(0x1e6)](_0x130d6b=>_0x130d6b[_0x47e17f(0x36c)]()),this[_0x47e17f(0x131)]=[];}[_0x1e47ba(0x1fd)](){const _0x13c145=_0x1e47ba;return w[_0x13c145(0x1e0)](this[_0x13c145(0x464)],this[_0x13c145(0x175)]);}};ge=Ks([a[_0x1e47ba(0x280)](a['LifecycleStages'][_0x1e47ba(0x2e6)],ge),oe(0x0,h[_0x1e47ba(0x443)](z)),oe(0x1,a[_0x1e47ba(0x118)]),oe(0x2,R[_0x1e47ba(0x1a1)]),oe(0x3,h[_0x1e47ba(0x443)](w[_0x1e47ba(0x3d7)])),oe(0x4,h['Inject'](a[_0x1e47ba(0x43a)]))],ge);var Xs=(_0x3b724e,_0x1d77c9,_0x3bc9d1,_0x53a507)=>{const _0xec321a=_0x1e47ba;for(var _0x45884d=_0x1d77c9,_0x3b1f78=_0x3b724e[_0xec321a(0x3fb)]-0x1,_0x1a80c0;_0x3b1f78>=0x0;_0x3b1f78--)(_0x1a80c0=_0x3b724e[_0x3b1f78])&&(_0x45884d=_0x1a80c0(_0x45884d)||_0x45884d);return _0x45884d;},Me=(_0x2a8924,_0x56e27b)=>(_0x637622,_0x1e4a99)=>_0x56e27b(_0x637622,_0x1e4a99,_0x2a8924);const Ot=_0x1e47ba(0x188),qs=_0x1e47ba(0x32d);let pe=class{constructor(_0x8efe4b,_0x44cbc2,_0x3d460c){const _0x1af6bf=_0x1e47ba;this['_configService']=_0x8efe4b,this[_0x1af6bf(0x20a)]=_0x44cbc2,this[_0x1af6bf(0x420)]=_0x3d460c,this[_0x1af6bf(0x46d)]();}[_0x1e47ba(0x46d)](){const _0xe45e40=_0x1e47ba;this[_0xe45e40(0x20a)][_0xe45e40(0x463)]({'priority':0x1,'interceptor':(_0x1cf6f8,_0x4f52f1)=>_0x4f52f1(_0x1cf6f8)[_0xe45e40(0x1cb)](v[_0xe45e40(0x34e)](async _0x15507a=>{const _0x388efa=_0xe45e40;if(_0x15507a['status']===0x191&&window['confirm'](this['localeService']['t'](_0x388efa(0x181)))){const _0x4442a0=window[_0x388efa(0x449)](window[_0x388efa(0x410)][_0x388efa(0x25b)]);window[_0x388efa(0x410)][_0x388efa(0x25b)]=this[_0x388efa(0x21b)]()+_0x388efa(0x32e)+_0x4442a0;}return _0x15507a;}))});}['_getLoginPath'](){var _0x35bbd6;return(_0x35bbd6=this['_configService']['getConfig'](Ot))!=null?_0x35bbd6:qs;}};pe=Xs([Me(0x0,a['IConfigService']),Me(0x1,h[_0x1e47ba(0x443)](M[_0x1e47ba(0x369)])),Me(0x2,h[_0x1e47ba(0x443)](a[_0x1e47ba(0x37f)]))],pe);var Js=(_0xeb64e6,_0x38246f,_0x181889,_0x335326)=>{const _0x2d2d8e=_0x1e47ba;for(var _0x3c7b90=_0x38246f,_0x1b0273=_0xeb64e6[_0x2d2d8e(0x3fb)]-0x1,_0x550122;_0x1b0273>=0x0;_0x1b0273--)(_0x550122=_0xeb64e6[_0x1b0273])&&(_0x3c7b90=_0x550122(_0x3c7b90)||_0x3c7b90);return _0x3c7b90;},nt=(_0x31c82e,_0x5e3f1f)=>(_0x42d254,_0x16a533)=>_0x5e3f1f(_0x42d254,_0x16a533,_0x31c82e);const zs=_0x1e47ba(0x100),Zs='/universer-api/authz';exports[_0x1e47ba(0x1c0)]=class{constructor(_0xd6668d,_0x7b7418){const _0x468644=_0x1e47ba;this[_0x468644(0x313)]=_0xd6668d,this['_configService']=_0x7b7418;}['_getAPIPrefixPath'](){const _0x20fdeb=_0x1e47ba;var _0x5766c8;return(_0x5766c8=this[_0x20fdeb(0xfd)][_0x20fdeb(0x159)](zs))!=null?_0x5766c8:Zs;}async[_0x1e47ba(0x114)](_0x59c136){const _0x47df35=_0x1e47ba,_0xc0b260=this[_0x47df35(0x1ac)]()+'/'+_0x59c136[_0x47df35(0x399)]+'/object';return(await this[_0x47df35(0x313)][_0x47df35(0x33a)](_0xc0b260,{'body':_0x59c136}))[_0x47df35(0x2ee)][_0x47df35(0x1fa)]||'';}async[_0x1e47ba(0x20b)](_0x4b7ec4){const _0x4df317=_0x1e47ba,_0x14bcc3=this[_0x4df317(0x1ac)]()+_0x4df317(0x1e5);return(await this[_0x4df317(0x313)]['post'](_0x14bcc3,{'body':_0x4b7ec4}))[_0x4df317(0x2ee)][_0x4df317(0x2e5)];}async[_0x1e47ba(0x1c5)](_0xfbbab0){const _0xcdf69d=_0x1e47ba,_0x5c23f6=this[_0xcdf69d(0x1ac)]()+'/'+_0xfbbab0[_0xcdf69d(0x399)]+_0xcdf69d(0x115)+_0xfbbab0[_0xcdf69d(0x1fa)];await this[_0xcdf69d(0x313)][_0xcdf69d(0x116)](_0x5c23f6,{'body':_0xfbbab0});}async[_0x1e47ba(0x1b5)](_0x4f44a3){const _0x36b35d=_0x1e47ba,_0x448382=this[_0x36b35d(0x1ac)]()+'/'+_0x4f44a3[_0x36b35d(0x399)]+_0x36b35d(0x115)+_0x4f44a3[_0x36b35d(0x1fa)]+_0x36b35d(0x141);return(await this['_HTTPService'][_0x36b35d(0x33a)](_0x448382,{'body':_0x4f44a3}))[_0x36b35d(0x2ee)]['actions'];}async[_0x1e47ba(0x472)](_0x80fe28){const _0x48b35a=_0x1e47ba,_0x27cbe9=this[_0x48b35a(0x1ac)]()+_0x48b35a(0x37b);return(await this['_HTTPService'][_0x48b35a(0x33a)](_0x27cbe9,{'body':{'requests':_0x80fe28}}))[_0x48b35a(0x2ee)][_0x48b35a(0x373)];}async[_0x1e47ba(0x108)](_0x10da5e){const _0x5c21ed=_0x1e47ba,_0x5b8fb3=this['_getAPIPrefixPath']()+'/'+_0x10da5e[_0x5c21ed(0x399)]+_0x5c21ed(0x38c),_0x595e5f=(await this[_0x5c21ed(0x313)]['post'](_0x5b8fb3,{'body':_0x10da5e}))[_0x5c21ed(0x2ee)];return{'roles':_0x595e5f['roles'],'actions':_0x595e5f[_0x5c21ed(0xe3)]};}async[_0x1e47ba(0x263)](_0xc9dce7){const _0x39062e=_0x1e47ba,_0x1b2b74=this[_0x39062e(0x1ac)]()+_0x39062e(0x32b);await this['_HTTPService'][_0x39062e(0xf8)](_0x1b2b74,{'params':{'collaboratorID':_0xc9dce7[_0x39062e(0x16c)],'objectID':_0xc9dce7[_0x39062e(0x1fa)],'unitID':_0xc9dce7[_0x39062e(0x2d2)]}});}async[_0x1e47ba(0x1a5)](_0x37b0dc){const _0x5cc764=_0x1e47ba,_0x70fd70=this[_0x5cc764(0x1ac)]()+_0x5cc764(0x32b);await this[_0x5cc764(0x313)]['patch'](_0x70fd70,{'body':_0x37b0dc});}async[_0x1e47ba(0x2c0)](_0x405260){const _0x10f491=_0x1e47ba,_0x20d1b6=this[_0x10f491(0x1ac)]()+_0x10f491(0x32b);await this['_HTTPService'][_0x10f491(0x33a)](_0x20d1b6,{'body':_0x405260});}async['listCollaborators'](_0x126bde){const _0x4b4e63=_0x1e47ba,_0x442baa=this['_getAPIPrefixPath']()+_0x4b4e63(0x32b);return(await this[_0x4b4e63(0x313)][_0x4b4e63(0x367)](_0x442baa,{'params':{'objectID':_0x126bde['objectID'],'unitID':_0x126bde[_0x4b4e63(0x2d2)]}}))['body'][_0x4b4e63(0x127)];}async['putCollaborators'](_0x274770){const _0x446334=_0x1e47ba,_0x3bb261=this[_0x446334(0x1ac)]()+_0x446334(0x32b);await this['_HTTPService'][_0x446334(0x116)](_0x3bb261,{'body':_0x274770});}},exports['AuthzIoHttpService']=Js([nt(0x0,h[_0x1e47ba(0x443)](M[_0x1e47ba(0x369)])),nt(0x1,h[_0x1e47ba(0x443)](a['IConfigService']))],exports[_0x1e47ba(0x1c0)]);var Qs=(_0x1e4ea5,_0x2481f2,_0x5b4085,_0x5bbc69)=>{const _0xb435ce=_0x1e47ba;for(var _0x53f225=_0x2481f2,_0x239061=_0x1e4ea5[_0xb435ce(0x3fb)]-0x1,_0x58e769;_0x239061>=0x0;_0x239061--)(_0x58e769=_0x1e4ea5[_0x239061])&&(_0x53f225=_0x58e769(_0x53f225)||_0x53f225);return _0x53f225;},rt=(_0x5a5f84,_0x49acc4)=>(_0x2cbfaa,_0xb2f3f0)=>_0x49acc4(_0x2cbfaa,_0xb2f3f0,_0x5a5f84);const ei=[_0x1e47ba(0xfa),_0x1e47ba(0x11c),_0x1e47ba(0x1c9),'image/gif',_0x1e47ba(0x189)],ti=0x5*0x400*0x400,si='EXCHANGE_UPLOAD_FILE_SERVER_URL_KEY',ii=_0x1e47ba(0xe7),ni='EXCHANGE_SIGN_URL_SERVER_URL_KEY',ri='/universer-api/file/{fileID}/sign-url';let $e=class{constructor(_0x22f117,_0x163412){const _0x44c431=_0x1e47ba;d(this,_0x44c431(0x3ce),0x0),d(this,_0x44c431(0x307),new v['Subject']()),d(this,_0x44c431(0x126),this['_change$']),d(this,_0x44c431(0x23c),new Map()),(this['_httpService']=_0x22f117,this['_configService']=_0x163412);}[_0x1e47ba(0x18c)](_0x2e8780){const _0x1ab84d=_0x1e47ba;this[_0x1ab84d(0x3ce)]=_0x2e8780,this[_0x1ab84d(0x307)]['next'](_0x2e8780);}[_0x1e47ba(0x149)](_0x35ef26,_0x2eeec7){const _0x4ee001=_0x1e47ba;if(_0x2eeec7===P[_0x4ee001(0x136)][_0x4ee001(0xed)]){const _0x3c2137=new Image();return _0x3c2137[_0x4ee001(0x459)]=_0x35ef26,_0x3c2137;}return this[_0x4ee001(0x23c)][_0x4ee001(0x367)](_0x35ef26);}[_0x1e47ba(0x453)](_0x37e611,_0x580724,_0x55d974){const _0x12e1a8=_0x1e47ba;_0x580724===P['ImageSourceType'][_0x12e1a8(0xed)]||_0x55d974==null||this[_0x12e1a8(0x23c)][_0x12e1a8(0x204)](_0x37e611,_0x55d974);}async[_0x1e47ba(0x421)](_0x4ee23d){const _0xe5a385=_0x1e47ba;try{const _0x55ac78=this[_0xe5a385(0x148)](this[_0xe5a385(0x1df)](),''+_0x4ee23d),_0x317fca=(await this[_0xe5a385(0x20a)][_0xe5a385(0x367)](_0x55ac78))['body'];return _0x317fca[_0xe5a385(0x343)]&&_0x317fca[_0xe5a385(0x343)]['code']===ct['OK']?Promise['resolve'](_0x317fca[_0xe5a385(0x487)]):Promise[_0xe5a385(0x448)](_0x317fca[_0xe5a385(0x343)]);}catch(_0x12aa0a){return Promise[_0xe5a385(0x448)](_0x12aa0a);}}async['saveImage'](_0x19c849){const _0x48ecb1=_0x1e47ba;let _0x48d601='';if(!ei[_0x48ecb1(0x2d5)](_0x19c849[_0x48ecb1(0x2b2)]))return this[_0x48ecb1(0x294)](),Promise[_0x48ecb1(0x448)](new Error(P['ImageUploadStatusType'][_0x48ecb1(0x456)]));if(_0x19c849[_0x48ecb1(0x3b8)]>ti)return this[_0x48ecb1(0x294)](),Promise['reject'](new Error(P['ImageUploadStatusType'][_0x48ecb1(0x2a2)]));try{const _0x55da3c=new FormData();_0x55da3c[_0x48ecb1(0x1a6)]('file',_0x19c849);const _0x3ab81a=this[_0x48ecb1(0x138)]()+_0x48ecb1(0x133)+_0x19c849[_0x48ecb1(0x3b8)]['toString'](),_0x22e2cf=await(await fetch(_0x3ab81a,{'method':_0x48ecb1(0x34c),'body':_0x55da3c}))[_0x48ecb1(0x38a)]();if(typeof _0x22e2cf['FileId']!=_0x48ecb1(0x3ba))return this[_0x48ecb1(0x294)](),Promise[_0x48ecb1(0x448)](new Error(P[_0x48ecb1(0x269)]['ERROR_IMAGE']));_0x48d601=_0x22e2cf[_0x48ecb1(0x162)];}catch{return this[_0x48ecb1(0x294)](),Promise[_0x48ecb1(0x448)](new Error(P[_0x48ecb1(0x269)][_0x48ecb1(0x11d)]));}return new Promise((_0x500785,_0x22e5eb)=>{const _0x4287e0=_0x48ecb1,_0x2a849f=new FileReader();_0x2a849f[_0x4287e0(0x1ed)](_0x19c849),_0x2a849f[_0x4287e0(0x22c)]=_0x7c85ac=>{const _0x343559=_0x4287e0;var _0x4ea83f;const _0x19792f=(_0x4ea83f=_0x7c85ac[_0x343559(0x21d)])==null?void 0x0:_0x4ea83f['result'];if(_0x19792f==null){this['_decreaseWaiting'](),_0x22e5eb(new Error(P[_0x343559(0x269)]['ERROR_IMAGE']));return;}const _0x532da0=a['Tools'][_0x343559(0x3ea)](0x6);_0x500785({'imageId':_0x532da0,'imageSourceType':P['ImageSourceType']['UUID'],'source':_0x48d601,'base64Cache':_0x19792f,'status':P['ImageUploadStatusType'][_0x343559(0x389)]}),this[_0x343559(0x294)]();};});}['_getUploadFileURL'](){const _0x6dc9c9=_0x1e47ba;var _0x796448;return(_0x796448=this[_0x6dc9c9(0xfd)][_0x6dc9c9(0x159)](si))!=null?_0x796448:ii;}['_getSignURL'](){const _0x462d6b=_0x1e47ba;var _0x5c4f02;return(_0x5c4f02=this[_0x462d6b(0xfd)][_0x462d6b(0x159)](ni))!=null?_0x5c4f02:ri;}['_replaceFileID'](_0x3a96c5,_0x2ddef6){const _0x128b21=_0x1e47ba;return _0x3a96c5[_0x128b21(0x1de)]('{fileID}',_0x2ddef6);}[_0x1e47ba(0x294)](){const _0x4ba29e=_0x1e47ba;this[_0x4ba29e(0x3ce)]-=0x1,this['_change$'][_0x4ba29e(0x424)](this['_waitCount']);}};$e=Qs([rt(0x0,h[_0x1e47ba(0x443)](M[_0x1e47ba(0x369)])),rt(0x1,a[_0x1e47ba(0x306)])],$e);var oi=(_0x21fb60,_0xc7da7d,_0x1a5e82,_0x183956)=>{const _0x48e7ff=_0x1e47ba;for(var _0x4e82b9=_0xc7da7d,_0x4cc28d=_0x21fb60[_0x48e7ff(0x3fb)]-0x1,_0x48bfc9;_0x4cc28d>=0x0;_0x4cc28d--)(_0x48bfc9=_0x21fb60[_0x4cc28d])&&(_0x4e82b9=_0x48bfc9(_0x4e82b9)||_0x4e82b9);return _0x4e82b9;},ot=(_0x57e0c9,_0x562e7f)=>(_0x38e211,_0x2eb37e)=>_0x562e7f(_0x38e211,_0x2eb37e,_0x57e0c9);const ai='collaboration-client';var Ne;exports[_0x1e47ba(0x322)]=(Ne=class extends a[_0x1e47ba(0x27f)]{constructor(_0x5a9acc,_0x420986,_0x5d4015){const _0x5905ec=_0x1e47ba;super(),this[_0x5905ec(0x46c)]=_0x5a9acc,this[_0x5905ec(0x376)]=_0x420986,this['_localeService']=_0x5d4015;}[_0x1e47ba(0x298)](_0x4dbb07){const _0x405a3a=_0x1e47ba;var _0x47a9d4,_0x194afb,_0x130136,_0x27f281,_0x4a6f0e;_0x4dbb07[_0x405a3a(0x1de)]([a[_0x405a3a(0x385)],{'useClass':je}]);let _0x2f8fad=[[exports['CollaborationSessionService']],[We],[M[_0x405a3a(0x369)]],[Ye,{'useClass':Dt}],[G],[exports[_0x405a3a(0x23e)]],[M[_0x405a3a(0x372)]],[fe],[me],[ve],[Ve],[pe],[Be,{'useClass':(_0x194afb=(_0x47a9d4=this[_0x405a3a(0x46c)])==null?void 0x0:_0x47a9d4[_0x405a3a(0x185)])!=null?_0x194afb:exports[_0x405a3a(0x10d)]}],[M[_0x405a3a(0x19e)],{'useClass':M[_0x405a3a(0x43b)]}],[a[_0x405a3a(0x112)],{'useClass':ke}],[a[_0x405a3a(0x35e)],{'useClass':exports['AuthzIoHttpService']}],[P[_0x405a3a(0x27b)],{'useClass':$e}],[exports['CollaborationController']],[exports[_0x405a3a(0x3c8)]],[exports['DesktopCollaborationStatusDisplayController']],[Se],[z]];(_0x130136=this[_0x405a3a(0x46c)])!=null&&_0x130136['enableSingleActiveInstanceLock']&&_0x2f8fad[_0x405a3a(0x441)]([Ee,{'useClass':zt}]),((_0x27f281=this[_0x405a3a(0x46c)])==null?void 0x0:_0x27f281[_0x405a3a(0x11e)])==null||this[_0x405a3a(0x46c)]['collaborationUniverTypes'][_0x405a3a(0x2d5)](a['UniverInstanceType'][_0x405a3a(0x342)])?_0x2f8fad[_0x405a3a(0x441)]([de]):this[_0x405a3a(0x46c)][_0x405a3a(0x11e)][_0x405a3a(0x2d5)](a[_0x405a3a(0x12f)][_0x405a3a(0x48c)])&&_0x2f8fad['push']([ge]),_0x2f8fad=a['mergeOverrideWithDependencies'](_0x2f8fad,(_0x4a6f0e=this[_0x405a3a(0x46c)])==null?void 0x0:_0x4a6f0e['override']),_0x2f8fad['forEach'](_0x13f290=>_0x4dbb07[_0x405a3a(0x477)](_0x13f290)),_0x4dbb07[_0x405a3a(0x367)](M[_0x405a3a(0x369)])['registerHTTPInterceptor']({'priority':0x14,'interceptor':_0x4dbb07[_0x405a3a(0x3ed)](M['ThresholdInterceptorFactory'],{'maxParallel':0x6})}),this[_0x405a3a(0x2df)]();}[_0x1e47ba(0x2df)](){const _0x3cb2ee=_0x1e47ba;var _0x150d37,_0x18c8a7;(_0x150d37=this[_0x3cb2ee(0x46c)])!=null&&_0x150d37[_0x3cb2ee(0x2d4)]||this[_0x3cb2ee(0x376)]['get'](exports['LocalCacheService'])['disableLocalCache'](),(_0x18c8a7=this[_0x3cb2ee(0x46c)])!=null&&_0x18c8a7[_0x3cb2ee(0x457)]&&this[_0x3cb2ee(0x376)][_0x3cb2ee(0x367)](pe);}},d(Ne,'pluginName',ai),Ne),exports[_0x1e47ba(0x322)]=oi([ot(0x1,h[_0x1e47ba(0x443)](h[_0x1e47ba(0x488)])),ot(0x2,h['Inject'](a[_0x1e47ba(0x37f)]))],exports[_0x1e47ba(0x322)]),exports['COLLAB_SUBMIT_CHANGESET_URL_KEY']=_t,exports[_0x1e47ba(0x3f7)]=dt,exports[_0x1e47ba(0x338)]=y,exports[_0x1e47ba(0x42c)]=Tt,exports[_0x1e47ba(0x23a)]=St,exports['HEARTBEAT_TIMEOUT_KEY']=Fe,exports[_0x1e47ba(0x360)]=Be,exports[_0x1e47ba(0x124)]=Ye,exports[_0x1e47ba(0x311)]=vt,exports[_0x1e47ba(0x188)]=Ot,exports[_0x1e47ba(0x23b)]=It,exports[_0x1e47ba(0x178)]=Rt,exports[_0x1e47ba(0x1dc)]=W,exports[_0x1e47ba(0x130)]=Dt,exports[_0x1e47ba(0x160)]=lt,exports[_0x1e47ba(0x1fb)]=ht;
|