@univerjs-pro/collaboration-client-ui 0.7.0-nightly.202505201607 → 0.7.0-nightly.202505211607

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/facade.js CHANGED
@@ -1 +1 @@
1
- 'use strict';function _0x294e(_0xe1ebb7,_0x55511a){const _0x48eb92=_0x48eb();return _0x294e=function(_0x294e36,_0x1ef6a9){_0x294e36=_0x294e36-0x135;let _0x3cca22=_0x48eb92[_0x294e36];return _0x3cca22;},_0x294e(_0xe1ebb7,_0x55511a);}const _0x28aea6=_0x294e;(function(_0x32a273,_0x1c79a2){const _0x9416eb=_0x294e,_0x36f8d3=_0x32a273();while(!![]){try{const _0x2ecd00=parseInt(_0x9416eb(0x13b))/0x1*(parseInt(_0x9416eb(0x145))/0x2)+-parseInt(_0x9416eb(0x144))/0x3+-parseInt(_0x9416eb(0x13f))/0x4*(parseInt(_0x9416eb(0x13e))/0x5)+-parseInt(_0x9416eb(0x140))/0x6+parseInt(_0x9416eb(0x13c))/0x7*(parseInt(_0x9416eb(0x137))/0x8)+-parseInt(_0x9416eb(0x142))/0x9+parseInt(_0x9416eb(0x139))/0xa*(parseInt(_0x9416eb(0x141))/0xb);if(_0x2ecd00===_0x1c79a2)break;else _0x36f8d3['push'](_0x36f8d3['shift']());}catch(_0x5e8a94){_0x36f8d3['push'](_0x36f8d3['shift']());}}}(_0x48eb,0x9f68d));function _0x48eb(){const _0x4a2e2b=['RemoteUniscriptService','10ZnxAIx','extend','2822OUpIrt','35917HGLNMj','_injector','15TXhdEJ','490728oYMLks','7760610hNntFa','22562276JcoVCu','772542NrDWAL','@univerjs/core/facade','3911397vSWGNl','346bbelAc','@univerjs-pro/collaboration-client-ui','FUniver','1816cjRVur'];_0x48eb=function(){return _0x4a2e2b;};return _0x48eb();}const t=require(_0x28aea6(0x135)),e=require(_0x28aea6(0x143));class c extends e[_0x28aea6(0x136)]{['runOnServer'](_0x2e06dd,_0x1e7ff5,..._0x56bc38){const _0x299c1c=_0x28aea6;return this[_0x299c1c(0x13d)]['get'](t[_0x299c1c(0x138)])['runOnServer'](_0x2e06dd,_0x1e7ff5,{},..._0x56bc38);}}e[_0x28aea6(0x136)][_0x28aea6(0x13a)](c);
1
+ 'use strict';const _0x5029fa=_0x4dbf;(function(_0x12180c,_0x40a057){const _0x27f1c7=_0x4dbf,_0x59e086=_0x12180c();while(!![]){try{const _0x1d570e=-parseInt(_0x27f1c7(0xf2))/0x1+parseInt(_0x27f1c7(0x102))/0x2*(-parseInt(_0x27f1c7(0x100))/0x3)+-parseInt(_0x27f1c7(0xf8))/0x4*(-parseInt(_0x27f1c7(0xf5))/0x5)+-parseInt(_0x27f1c7(0xf3))/0x6*(-parseInt(_0x27f1c7(0xff))/0x7)+parseInt(_0x27f1c7(0xfb))/0x8*(parseInt(_0x27f1c7(0x101))/0x9)+-parseInt(_0x27f1c7(0xfc))/0xa*(-parseInt(_0x27f1c7(0xfe))/0xb)+-parseInt(_0x27f1c7(0xf7))/0xc;if(_0x1d570e===_0x40a057)break;else _0x59e086['push'](_0x59e086['shift']());}catch(_0x39bce2){_0x59e086['push'](_0x59e086['shift']());}}}(_0xb638,0xa0d35));const t=require('@univerjs-pro/collaboration-client-ui'),e=require(_0x5029fa(0xf1));function _0x4dbf(_0x249072,_0x24b55d){const _0xb63812=_0xb638();return _0x4dbf=function(_0x4dbf51,_0x45b9b4){_0x4dbf51=_0x4dbf51-0xf1;let _0x37e176=_0xb63812[_0x4dbf51];return _0x37e176;},_0x4dbf(_0x249072,_0x24b55d);}class c extends e[_0x5029fa(0xfa)]{[_0x5029fa(0xf6)](_0x3a85e0,_0xd53dc,..._0x33626f){const _0x1bcc84=_0x5029fa;return this['_injector'][_0x1bcc84(0xf9)](t[_0x1bcc84(0xfd)])[_0x1bcc84(0xf6)](_0x3a85e0,_0xd53dc,{},..._0x33626f);}}function _0xb638(){const _0x57dab2=['FUniver','40eOfnaj','200bpaqQb','RemoteUniscriptService','610544GaeEHp','31178EyGUqK','3CRynaA','299817lPIOMq','1561054CplVcu','@univerjs/core/facade','429290poeMdy','348CzMkmq','extend','4455515kZjChn','runOnServer','6690264nQjKGT','4ARAqGd','get'];_0xb638=function(){return _0x57dab2;};return _0xb638();}e[_0x5029fa(0xfa)][_0x5029fa(0xf4)](c);
package/lib/cjs/index.js CHANGED
@@ -1 +1 @@
1
- 'use strict';const _0x340a06=_0x18a4;(function(_0xcf767e,_0x499634){const _0x24d3da=_0x18a4,_0x182689=_0xcf767e();while(!![]){try{const _0x534bec=-parseInt(_0x24d3da(0x371))/0x1+parseInt(_0x24d3da(0x226))/0x2*(-parseInt(_0x24d3da(0x201))/0x3)+parseInt(_0x24d3da(0x199))/0x4+-parseInt(_0x24d3da(0x30e))/0x5*(parseInt(_0x24d3da(0x34d))/0x6)+-parseInt(_0x24d3da(0x24d))/0x7*(parseInt(_0x24d3da(0x32d))/0x8)+parseInt(_0x24d3da(0x366))/0x9*(-parseInt(_0x24d3da(0x352))/0xa)+parseInt(_0x24d3da(0x35b))/0xb;if(_0x534bec===_0x499634)break;else _0x182689['push'](_0x182689['shift']());}catch(_0x341761){_0x182689['push'](_0x182689['shift']());}}}(_0x1d2d,0x34bfd));var Ve=Object[_0x340a06(0x2ce)],Xe=(_0x2c770e,_0x187301,_0x512a08)=>_0x187301 in _0x2c770e?Ve(_0x2c770e,_0x187301,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x512a08}):_0x2c770e[_0x187301]=_0x512a08,h=(_0x52a30e,_0x2c1a79,_0x4e8570)=>Xe(_0x52a30e,typeof _0x2c1a79!='symbol'?_0x2c1a79+'':_0x2c1a79,_0x4e8570);Object[_0x340a06(0x2ce)](exports,Symbol[_0x340a06(0x174)],{'value':_0x340a06(0x3ca)});const u=require('@univerjs-pro/collaboration-client'),a=require(_0x340a06(0x398)),p=require(_0x340a06(0x3c6)),G=require(_0x340a06(0x176)),b=require(_0x340a06(0x2c2)),Ge=require(_0x340a06(0x175)),d=require(_0x340a06(0x16e)),Y=require('@univerjs/docs'),m=require(_0x340a06(0x217)),Ee=require(_0x340a06(0x3c8)),g=require(_0x340a06(0x234)),$=require(_0x340a06(0x24e)),X=require('@univerjs/sheets-ui'),P=require(_0x340a06(0x1ad)),T=require(_0x340a06(0x255)),D=require(_0x340a06(0x195)),M=require('react'),Ke=require(_0x340a06(0x1b7));var qe=Object[_0x340a06(0x178)],ze=(_0x208008,_0x22a221,_0x2016be,_0x1d043d)=>{const _0x35254e=_0x340a06;for(var _0xcfc08a=_0x1d043d>0x1?void 0x0:_0x1d043d?qe(_0x22a221,_0x2016be):_0x22a221,_0x41f663=_0x208008[_0x35254e(0x36b)]-0x1,_0x574f55;_0x41f663>=0x0;_0x41f663--)(_0x574f55=_0x208008[_0x41f663])&&(_0xcfc08a=_0x574f55(_0xcfc08a)||_0xcfc08a);return _0xcfc08a;},Te=(_0x14a6a0,_0x59b8d5)=>(_0x3dd365,_0x47ea55)=>_0x59b8d5(_0x3dd365,_0x47ea55,_0x14a6a0);let de=class extends a[_0x340a06(0x1ba)]{constructor(_0x67154b,_0x404bd9){const _0x225cdd=_0x340a06;super(),this[_0x225cdd(0x319)]=_0x67154b,this[_0x225cdd(0x1b2)]=_0x404bd9,this[_0x225cdd(0x1e2)]();}[_0x340a06(0x1e2)](){const _0x276b41=_0x340a06,_0x198b55=this;this[_0x276b41(0x1b4)](this[_0x276b41(0x319)]['addClipboardHook']({'onBeforePasteImage':async _0x540ce5=>{const _0x1630c7=_0x276b41,_0x483c06=await _0x198b55[_0x1630c7(0x1b2)][_0x1630c7(0x3ce)](_0x540ce5);return _0x483c06?{'source':_0x483c06[_0x1630c7(0x28c)],'imageSourceType':_0x483c06[_0x1630c7(0x318)]}:null;}}));}};de=ze([Te(0x0,b[_0x340a06(0x202)]),Te(0x1,Ge[_0x340a06(0x22e)])],de);const Oe=[_0x340a06(0x156),'jiqing.500',_0x340a06(0x241),_0x340a06(0x182),_0x340a06(0x37e),_0x340a06(0x2d1)];class me extends a[_0x340a06(0x20a)]{constructor(){const _0x4e4ff2=_0x340a06;super(...arguments),h(this,_0x4e4ff2(0x3ac),new Map()),h(this,_0x4e4ff2(0x27b),0x0);}[_0x340a06(0x1d0)](_0x1a1793){const _0x5a0f1f=_0x340a06;if(this[_0x5a0f1f(0x3ac)][_0x5a0f1f(0x2c0)](_0x1a1793))return this[_0x5a0f1f(0x3ac)]['get'](_0x1a1793);const _0x4e1226=Oe[this[_0x5a0f1f(0x27b)]];return this[_0x5a0f1f(0x27b)]=(this[_0x5a0f1f(0x27b)]+0x1)%Oe[_0x5a0f1f(0x36b)],this[_0x5a0f1f(0x3ac)][_0x5a0f1f(0x2b0)](_0x1a1793,_0x4e1226),_0x4e1226;}}function Pe(_0x1e077c){const _0x47a0d5=_0x340a06;let _0xc48eca='';for(const _0x48eb97 of _0x1e077c){const {startOffset:_0x29a1ae,endOffset:_0x1a50a6,isActive:_0x3de1b8,rangeType:_0x23f24a,segmentId:_0x239814,segmentPage:_0x161b60}=_0x48eb97;_0xc48eca[_0x47a0d5(0x36b)]&&(_0xc48eca+=','),_0xc48eca+=_0x29a1ae+':'+_0x1a50a6+':'+(_0x3de1b8?'1':'0')+':'+_0x23f24a+':'+_0x239814+':'+_0x161b60;}return _0xc48eca;}function Je(_0x465a5d){const _0x74fb28=_0x340a06,_0x2aacc2=_0x465a5d['split'](','),_0x53b157=[];for(const _0x3cd86f of _0x2aacc2){const [_0x17a39c,_0x2e5ee4,_0x49ab81,_0x5ad5c0,_0xe11c0a,_0x5f106e]=_0x3cd86f[_0x74fb28(0x3cd)](':');_0x53b157['push']({'startOffset':Number(_0x17a39c),'endOffset':Number(_0x2e5ee4),'collapsed':_0x17a39c===_0x2e5ee4,'isActive':_0x49ab81==='1','rangeType':_0x5ad5c0===a['DOC_RANGE_TYPE'][_0x74fb28(0x1bf)]?a[_0x74fb28(0x1fc)]['TEXT']:a[_0x74fb28(0x1fc)][_0x74fb28(0x340)],'segmentId':typeof _0xe11c0a==_0x74fb28(0x3b2)?String(_0xe11c0a):'','segmentPage':Number(_0x5f106e!=null?_0x5f106e:-0x1)});}return _0x53b157[_0x74fb28(0x368)](_0x2433cb=>_0x2433cb[_0x74fb28(0x1ca)])||(_0x53b157[0x0][_0x74fb28(0x1ca)]=!0x0),_0x53b157;}class Ce extends a['RxDisposable']{constructor(){const _0x170813=_0x340a06;super(...arguments),h(this,_0x170813(0x2e0),new d[(_0x170813(0x1c8))](null)),h(this,'collabCursorState$',this[_0x170813(0x2e0)][_0x170813(0x205)]());}['syncEditingCollabCursor'](_0x70c8c6){const _0x1f6124=_0x340a06,{unitID:_0x77bf3f,memberID:_0x299c9d,textRanges:_0x8b7758}=_0x70c8c6,_0x3d3f6a=Pe(_0x8b7758);if(_0x3d3f6a==='')return;const _0xbb5b84={'unitID':_0x77bf3f,'memberID':_0x299c9d,'selection':_0x3d3f6a};this[_0x1f6124(0x2e0)][_0x1f6124(0x1e4)](_0xbb5b84);}}var Ze=Object['getOwnPropertyDescriptor'],Qe=(_0x59a973,_0x2b265b,_0x53b794,_0xe853aa)=>{const _0x4229c7=_0x340a06;for(var _0x34e2b3=_0xe853aa>0x1?void 0x0:_0xe853aa?Ze(_0x2b265b,_0x53b794):_0x2b265b,_0x1704db=_0x59a973[_0x4229c7(0x36b)]-0x1,_0x1eabfe;_0x1704db>=0x0;_0x1704db--)(_0x1eabfe=_0x59a973[_0x1704db])&&(_0x34e2b3=_0x1eabfe(_0x34e2b3)||_0x34e2b3);return _0x34e2b3;},L=(_0x7f22b4,_0x4bb8b6)=>(_0x214061,_0x5f468c)=>_0x4bb8b6(_0x214061,_0x5f468c,_0x7f22b4);const et=0x12c,tt=0x64;let fe=class extends a['RxDisposable']{constructor(_0x2114d4,_0x7c5c40,_0x226389,_0x436fe9,_0x134dea,_0x48d05e,_0x51e76f,_0x3babdb,_0x5216c6){const _0x37ffbf=_0x340a06;super(),h(this,_0x37ffbf(0x2ab),!0x1),h(this,_0x37ffbf(0x1e2),!0x1),h(this,_0x37ffbf(0x390),new d[(_0x37ffbf(0x1c8))](new Map())),h(this,_0x37ffbf(0x2ef),this[_0x37ffbf(0x390)]['asObservable']()),h(this,'_roomMembers$',new d[(_0x37ffbf(0x1c8))]([])),h(this,'roomMembers$',this['_roomMembers$'][_0x37ffbf(0x20b)](d[_0x37ffbf(0x14a)](et))),h(this,_0x37ffbf(0x22d),a['debounce'](_0xb704c9=>{const _0x101ef7=_0x37ffbf,_0x3da9ce={'eventID':m['CollaborationEvent']['UPDATE_CURSOR'],'data':{'unitID':this[_0x101ef7(0x30a)],'memberID':this[_0x101ef7(0x159)][_0x101ef7(0x1dc)](),'selection':Pe(_0xb704c9)}};this[_0x101ef7(0x159)]['send'](_0x3da9ce,this[_0x101ef7(0x30a)]);},tt)),(this[_0x37ffbf(0x30a)]=_0x2114d4,this[_0x37ffbf(0x159)]=_0x7c5c40,this[_0x37ffbf(0x1f4)]=_0x226389,this[_0x37ffbf(0x20e)]=_0x436fe9,this[_0x37ffbf(0x194)]=_0x134dea,this[_0x37ffbf(0x2f6)]=_0x48d05e,this[_0x37ffbf(0x17d)]=_0x51e76f,this[_0x37ffbf(0x247)]=_0x3babdb,this[_0x37ffbf(0x34c)]=_0x5216c6);}get[_0x340a06(0x327)](){const _0xd741d=_0x340a06;return this['_cursorInfo$'][_0xd741d(0x2b8)]();}get[_0x340a06(0x214)](){const _0x171ca5=_0x340a06;return this[_0x171ca5(0x170)]['getValue']();}['dispose'](){const _0xce0391=_0x340a06;super['dispose'](),this[_0xce0391(0x390)]['next'](new Map()),this['_cursorInfo$']['complete'](),this['_roomMembers$'][_0xce0391(0x1e4)]([]),this['_roomMembers$'][_0xce0391(0x367)]();}[_0x340a06(0x3aa)](){const _0x32c60b=_0x340a06;this['_init']||(this[_0x32c60b(0x1e2)]=!0x0,this[_0x32c60b(0x159)]['sessionStatus$']['pipe'](d['takeUntil'](this[_0x32c60b(0x15d)]))['subscribe'](_0x9081f7=>{const _0x4d3328=_0x32c60b;_0x9081f7===u['SessionStatus'][_0x4d3328(0x1f6)]?this[_0x4d3328(0x2a5)]():this[_0x4d3328(0x1d2)]();}),this['_session'][_0x32c60b(0x295)][_0x32c60b(0x20b)](d[_0x32c60b(0x33f)](this[_0x32c60b(0x15d)]))['subscribe'](_0x1cf219=>{const _0x4ad37e=_0x32c60b,_0x54b9d9=_0x1cf219['eventID'];_0x54b9d9===m[_0x4ad37e(0x209)][_0x4ad37e(0x1fb)]&&this[_0x4ad37e(0x146)](_0x1cf219),_0x54b9d9===m[_0x4ad37e(0x209)][_0x4ad37e(0x235)]&&this[_0x4ad37e(0x2be)](_0x1cf219);}),this[_0x32c60b(0x1b4)](this[_0x32c60b(0x34c)][_0x32c60b(0x1d9)](_0x554093=>{const _0x210b6f=_0x32c60b,_0x6f349d=_0x554093[_0x210b6f(0x258)];_0x6f349d!=null&&this[_0x210b6f(0x2ab)]&&_0x554093['id']===Y['SetTextSelectionsOperation']['id']&&_0x6f349d[_0x210b6f(0x36f)]===this[_0x210b6f(0x30a)]&&_0x6f349d['isEditing']===!0x1&&_0x6f349d[_0x210b6f(0x2b5)][_0x210b6f(0x36b)]>0x0&&this['_updateLocalCursor'](_0x6f349d['ranges']);})),this[_0x32c60b(0x2f6)][_0x32c60b(0x213)][_0x32c60b(0x20b)](d[_0x32c60b(0x33f)](this[_0x32c60b(0x15d)]))[_0x32c60b(0x17b)](_0x3dc758=>{const _0x14f86f=_0x32c60b;if((_0x3dc758==null?void 0x0:_0x3dc758['unitID'])!==this[_0x14f86f(0x30a)])return;const _0x54a4ae={'eventID':m['CollaborationEvent'][_0x14f86f(0x1fb)],'data':_0x3dc758};this[_0x14f86f(0x146)](_0x54a4ae);}),this[_0x32c60b(0x1b4)](this[_0x32c60b(0x34c)][_0x32c60b(0x1d9)](_0xf68809=>{const _0x13b477=_0x32c60b;if(_0xf68809[_0x13b477(0x258)]==null)return;const _0x3160eb=_0xf68809['params'];if(_0xf68809['id']!==Y[_0x13b477(0x38a)]['id']||_0x3160eb[_0x13b477(0x36f)]!==this[_0x13b477(0x30a)])return;const _0x4bcc62={'id':'doc.mutation.rich-text-editing','params':_0x3160eb},_0x43b259=this['cursorInfo'];for(const [_0x322529,_0x194895]of _0x43b259){const _0x524227={'id':_0x13b477(0x233),'params':{'unitId':this[_0x13b477(0x30a)],'actions':null,'textRanges':_0x194895[_0x13b477(0x2b5)]}},_0x62545a=this[_0x13b477(0x17d)]['transformMutation'](_0x4bcc62,_0x524227,!0x1);if(m[_0x13b477(0x1f0)](_0x62545a))throw _0x62545a[_0x13b477(0x18d)];_0x43b259['set'](_0x322529,{..._0x194895,'ranges':_0x62545a['m2Prime'][_0x13b477(0x258)]['textRanges']});}queueMicrotask(()=>{const _0x5881e5=_0x13b477;this[_0x5881e5(0x390)]['next'](_0x43b259);});})));}[_0x340a06(0x146)](_0x26425f){const _0x5afc4d=_0x340a06;var _0x353d92,_0x52d095;const {memberID:_0x49ab6c,selection:_0x357d6a}=_0x26425f[_0x5afc4d(0x26c)],_0x28f7a9=Je(_0x357d6a),_0x21c384=(_0x52d095=(_0x353d92=this['_memberService'][_0x5afc4d(0x144)](this[_0x5afc4d(0x30a)],_0x49ab6c))==null?void 0x0:_0x353d92['name'])!=null?_0x52d095:_0x5afc4d(0x307),_0x4d2a86={'color':this['_colorAssignService'][_0x5afc4d(0x1d0)](_0x49ab6c),'name':_0x21c384,'ranges':_0x28f7a9},_0x1f959e=this[_0x5afc4d(0x327)];_0x1f959e[_0x5afc4d(0x2b0)](_0x49ab6c,_0x4d2a86),this[_0x5afc4d(0x390)][_0x5afc4d(0x1e4)](_0x1f959e);}['_onCursorDelete'](_0x11c958){const _0x547b9b=_0x340a06,{memberID:_0x2ad6ea}=_0x11c958[_0x547b9b(0x26c)],_0x13fd39=this['cursorInfo'];_0x13fd39[_0x547b9b(0x142)](_0x2ad6ea),this[_0x547b9b(0x390)]['next'](_0x13fd39);}[_0x340a06(0x2a5)](){const _0x5f204a=_0x340a06;var _0x17395a;if(this['_online']=!0x0,((_0x17395a=this['_univerInstanceService'][_0x5f204a(0x16d)]())==null?void 0x0:_0x17395a['getUnitId']())!==this[_0x5f204a(0x30a)])return;const _0x483fea=this['_injector'][_0x5f204a(0x302)](Y[_0x5f204a(0x22b)])['getDocRanges']();Array[_0x5f204a(0x1a5)](_0x483fea)&&_0x483fea[_0x5f204a(0x36b)]>0x0&&this[_0x5f204a(0x22d)](_0x483fea);}[_0x340a06(0x1d2)](){this['_online']=!0x1;}};fe=Qe([L(0x2,a[_0x340a06(0x397)](a[_0x340a06(0x320)])),L(0x3,a[_0x340a06(0x397)](me)),L(0x4,a[_0x340a06(0x397)](u[_0x340a06(0x2a1)])),L(0x5,a[_0x340a06(0x397)](Ce)),L(0x6,m['ITransformService']),L(0x7,a[_0x340a06(0x333)]),L(0x8,a['ICommandService'])],fe);var st=Object[_0x340a06(0x178)],it=(_0x45923f,_0x389c43,_0x131e69,_0x4a7375)=>{for(var _0x12a011=_0x4a7375>0x1?void 0x0:_0x4a7375?st(_0x389c43,_0x131e69):_0x389c43,_0x5e8a73=_0x45923f['length']-0x1,_0x9392c5;_0x5e8a73>=0x0;_0x5e8a73--)(_0x9392c5=_0x45923f[_0x5e8a73])&&(_0x12a011=_0x9392c5(_0x12a011)||_0x12a011);return _0x12a011;},w=(_0x44ed6b,_0x33d635)=>(_0x59b678,_0x2f0f92)=>_0x33d635(_0x59b678,_0x2f0f92,_0x44ed6b);const nt=0x12c,rt=0x64,ot=()=>{let _0x48cc8e=[],_0x54449=!0x1;return _0xae8310=>{const _0x3aa371=_0x18a4;_0x48cc8e[_0x3aa371(0x244)](_0xae8310),_0x54449||(_0x54449=!0x0,setTimeout(()=>{const _0x478ab4=_0x3aa371;_0x48cc8e[_0x478ab4(0x31d)](_0x2208e2=>_0x2208e2()),_0x48cc8e=[],_0x54449=!0x1;}));};};let Se=class extends a[_0x340a06(0x1ba)]{constructor(_0x25f5c6,_0x4d0087,_0x1ccdf1,_0x5d5d45,_0x1b4907,_0x192098,_0x342be8,_0xae656){const _0x3bad42=_0x340a06;super(),h(this,'_online',!0x1),h(this,_0x3bad42(0x1e2),!0x1),h(this,_0x3bad42(0x390),new d[(_0x3bad42(0x1c8))](new Map())),h(this,_0x3bad42(0x2ef),this[_0x3bad42(0x390)]['asObservable']()),h(this,_0x3bad42(0x170),new d[(_0x3bad42(0x1c8))]([])),h(this,_0x3bad42(0x349),this[_0x3bad42(0x170)][_0x3bad42(0x20b)](d[_0x3bad42(0x14a)](nt))),h(this,_0x3bad42(0x22d),a['debounce']((_0x4e29ce,_0x51f469)=>{const _0x388de5=_0x3bad42,_0x4c0ad9={'eventID':m['CollaborationEvent']['UPDATE_CURSOR'],'data':{'unitID':this[_0x388de5(0x30a)],'memberID':this['_session'][_0x388de5(0x1dc)](),'selection':Ee[_0x388de5(0x2eb)](_0x4e29ce,_0x51f469[_0x388de5(0x1cb)])}};this[_0x388de5(0x159)][_0x388de5(0x248)](_0x4c0ad9,this[_0x388de5(0x30a)]);},rt)),(this[_0x3bad42(0x30a)]=_0x25f5c6,this[_0x3bad42(0x159)]=_0x4d0087,this[_0x3bad42(0x1f4)]=_0x1ccdf1,this['_colorAssignService']=_0x5d5d45,this['_memberService']=_0x1b4907,this[_0x3bad42(0x247)]=_0x192098,this[_0x3bad42(0x34c)]=_0x342be8,this[_0x3bad42(0x26f)]=_0xae656);}get['cursorInfo'](){return this['_cursorInfo$']['getValue']();}get[_0x340a06(0x214)](){const _0x586f83=_0x340a06;return this['_roomMembers$'][_0x586f83(0x2b8)]();}[_0x340a06(0x265)](){const _0xa87d5c=_0x340a06;super['dispose'](),this['_cursorInfo$'][_0xa87d5c(0x1e4)](new Map()),this[_0xa87d5c(0x390)][_0xa87d5c(0x367)](),this[_0xa87d5c(0x170)]['next']([]),this[_0xa87d5c(0x170)][_0xa87d5c(0x367)]();}[_0x340a06(0x3aa)](){const _0x45186a=_0x340a06;this[_0x45186a(0x1e2)]||(this[_0x45186a(0x1e2)]=!0x0,this[_0x45186a(0x159)]['sessionStatus$'][_0x45186a(0x20b)](d[_0x45186a(0x33f)](this[_0x45186a(0x15d)]))[_0x45186a(0x17b)](_0x12594b=>{const _0x3499db=_0x45186a;_0x12594b===u[_0x3499db(0x1c0)]['ONLINE']?this[_0x3499db(0x2a5)]():this[_0x3499db(0x1d2)]();}),this['_session']['event$'][_0x45186a(0x20b)](d['takeUntil'](this[_0x45186a(0x15d)]))[_0x45186a(0x17b)](_0x2ffe34=>{const _0x35b285=_0x45186a,_0xb89b2d=_0x2ffe34[_0x35b285(0x1f7)];_0xb89b2d===m[_0x35b285(0x209)][_0x35b285(0x1fb)]&&this[_0x35b285(0x146)](_0x2ffe34),_0xb89b2d===m[_0x35b285(0x209)]['USERS_LEAVE']&&this[_0x35b285(0x2be)](_0x2ffe34);}),this['_onRefRangeChange'](),this['disposeWithMe'](this['_commandService'][_0x45186a(0x1d9)](_0xba4623=>{const _0x27b545=_0x45186a;if(this[_0x27b545(0x2ab)]&&_0xba4623['id']===g[_0x27b545(0x20d)]['id']&&_0xba4623['params']['unitId']===this[_0x27b545(0x30a)]){const _0xa9391b=_0xba4623['params'];this[_0x27b545(0x22d)](_0xa9391b['subUnitId'],_0xa9391b[_0x27b545(0x2f4)][0x0]);}})));}[_0x340a06(0x146)](_0x4dd6cd){const _0x242f7a=_0x340a06;var _0x46741b,_0xaead8c;const {memberID:_0x9f32e4,selection:_0x1de49b}=_0x4dd6cd['data'],{sheetName:_0x13ec77,range:_0x2d327c}=Ee[_0x242f7a(0x16c)](_0x1de49b),_0x22667f={'name':(_0xaead8c=(_0x46741b=this['_memberService'][_0x242f7a(0x144)](this[_0x242f7a(0x30a)],_0x9f32e4))==null?void 0x0:_0x46741b[_0x242f7a(0x29a)])!=null?_0xaead8c:_0x242f7a(0x307),'range':this[_0x242f7a(0x2f8)](_0x13ec77,_0x2d327c),'sheetID':_0x13ec77,'color':this[_0x242f7a(0x20e)][_0x242f7a(0x1d0)](_0x9f32e4),'selection':_0x1de49b},_0x1b8a3b=this['cursorInfo'];_0x1b8a3b['set'](_0x9f32e4,_0x22667f),this[_0x242f7a(0x390)][_0x242f7a(0x1e4)](_0x1b8a3b);}[_0x340a06(0x2be)](_0x44c21f){const _0x3a6f55=_0x340a06,{memberID:_0x1d4533}=_0x44c21f[_0x3a6f55(0x26c)],_0x1a27dc=this[_0x3a6f55(0x327)];_0x1a27dc[_0x3a6f55(0x142)](_0x1d4533),this[_0x3a6f55(0x390)][_0x3a6f55(0x1e4)](_0x1a27dc);}[_0x340a06(0x2f8)](_0x50eab1,_0xe48d47){const _0x3c571e=_0x340a06;var _0x1fab35,_0x4bd2a1;const _0x574979=(_0x4bd2a1=(_0x1fab35=this[_0x3c571e(0x247)][_0x3c571e(0x197)](this[_0x3c571e(0x30a)]))==null?void 0x0:_0x1fab35['getSheetBySheetId'](_0x50eab1))==null?void 0x0:_0x4bd2a1[_0x3c571e(0x222)]();return(_0x574979==null?void 0x0:_0x574979[_0x3c571e(0x22c)](_0x3352ca=>a[_0x3c571e(0x1a7)]['contains'](_0x3352ca,_0xe48d47)))||_0xe48d47;}['_onRefRangeChange'](){const _0x59d3c7=_0x340a06,_0x499925=new a[(_0x59d3c7(0x329))](),_0x460b24=ot(),_0x22605e=()=>{const _0x2d58a9=_0x59d3c7;_0x499925[_0x2d58a9(0x265)]();const _0x173805=(_0x154d2,_0x3fb0ce,_0x2e4bc2,_0x32fca8)=>{const _0x1927c6=_0x2d58a9;let _0x2518f9=[];switch(_0x154d2['id']){case g[_0x1927c6(0x196)]['DeleteRangeMoveLeftCommandId']:{_0x2518f9=g['handleDeleteRangeMoveLeft'](_0x154d2,_0x32fca8);break;}case g['EffectRefRangId'][_0x1927c6(0x3c7)]:{_0x2518f9=g['handleDeleteRangeMoveUp'](_0x154d2,_0x32fca8);break;}case g['EffectRefRangId'][_0x1927c6(0x2f0)]:{_0x2518f9=g['handleInsertCol'](_0x154d2,_0x32fca8);break;}case g[_0x1927c6(0x196)][_0x1927c6(0x190)]:{_0x2518f9=g[_0x1927c6(0x32b)](_0x154d2,_0x32fca8);break;}case g[_0x1927c6(0x196)][_0x1927c6(0x3a3)]:{_0x2518f9=g[_0x1927c6(0x3bd)](_0x154d2,_0x32fca8);break;}case g[_0x1927c6(0x196)][_0x1927c6(0x229)]:{_0x2518f9=g['handleInsertRow'](_0x154d2,_0x32fca8);break;}case g[_0x1927c6(0x196)][_0x1927c6(0x1a2)]:{_0x2518f9=g[_0x1927c6(0x163)](_0x154d2,_0x32fca8);break;}case g[_0x1927c6(0x196)]['RemoveColCommandId']:{_0x2518f9=g['handleIRemoveCol'](_0x154d2,_0x32fca8);break;}case g[_0x1927c6(0x196)]['RemoveRowCommandId']:{_0x2518f9=g[_0x1927c6(0x34e)](_0x154d2,_0x32fca8);break;}}const _0x1e9e6b=g[_0x1927c6(0x240)](_0x2518f9,_0x32fca8),_0x5490d6=this['cursorInfo'][_0x1927c6(0x302)](_0x3fb0ce);if(_0x5490d6&&_0x1e9e6b){const _0xfda9b8={..._0x5490d6,'range':_0x1e9e6b};this[_0x1927c6(0x327)][_0x1927c6(0x2b0)](_0x3fb0ce,_0xfda9b8),_0x460b24(()=>{const _0x19b7f7=_0x1927c6,_0x3aff6d=this['_refRangeService'][_0x19b7f7(0x148)](_0x1e9e6b,_0x6dd007=>(_0x3aff6d['dispose'](),_0x173805(_0x6dd007,_0x3fb0ce,_0x2e4bc2,_0x1e9e6b)));_0x499925[_0x19b7f7(0x315)](_0x3aff6d);});}return{'redos':[],'undos':[]};};this[_0x2d58a9(0x327)]['forEach']((_0x1e5b1f,_0xa342f)=>{const _0x41b971=_0x2d58a9,{range:_0x172b8b,sheetID:_0x363b63}=_0x1e5b1f,_0x49cd4a=this['_refRangeService'][_0x41b971(0x148)](_0x172b8b,_0x276ab4=>(_0x49cd4a[_0x41b971(0x265)](),_0x173805(_0x276ab4,_0xa342f,_0x363b63,_0x172b8b)));_0x499925['add'](_0x49cd4a);});};this[_0x59d3c7(0x1b4)](a[_0x59d3c7(0x1ec)](this['_cursorInfo$']['subscribe'](()=>{_0x22605e();})));}[_0x340a06(0x2a5)](){const _0x2e3a2a=_0x340a06;var _0x18ee1e,_0x20ea96;if(this[_0x2e3a2a(0x2ab)]=!0x0,((_0x18ee1e=this[_0x2e3a2a(0x247)][_0x2e3a2a(0x16d)]())==null?void 0x0:_0x18ee1e[_0x2e3a2a(0x2e9)]())!==this[_0x2e3a2a(0x30a)])return;const _0x266a21=(_0x20ea96=this[_0x2e3a2a(0x1f4)][_0x2e3a2a(0x302)](g[_0x2e3a2a(0x3ae)])['getCurrentSelections']())==null?void 0x0:_0x20ea96[0x0],_0x287e4e=this[_0x2e3a2a(0x247)][_0x2e3a2a(0x30d)](a[_0x2e3a2a(0x2d0)]['UNIVER_SHEET'])[_0x2e3a2a(0x141)]();_0x266a21&&_0x287e4e&&this['_updateLocalCursor'](_0x287e4e[_0x2e3a2a(0x1e0)](),_0x266a21);}[_0x340a06(0x1d2)](){const _0x33765e=_0x340a06;this[_0x33765e(0x2ab)]=!0x1;}};Se=it([w(0x2,a[_0x340a06(0x397)](a['Injector'])),w(0x3,a[_0x340a06(0x397)](me)),w(0x4,a[_0x340a06(0x397)](u[_0x340a06(0x2a1)])),w(0x5,a['IUniverInstanceService']),w(0x6,a[_0x340a06(0x1f3)]),w(0x7,a[_0x340a06(0x397)](g[_0x340a06(0x39b)]))],Se);var at=Object[_0x340a06(0x178)],ct=(_0x346634,_0x2bb372,_0x343df0,_0x470cc2)=>{for(var _0x242218=_0x470cc2>0x1?void 0x0:_0x470cc2?at(_0x2bb372,_0x343df0):_0x2bb372,_0x28601f=_0x346634['length']-0x1,_0x437f88;_0x28601f>=0x0;_0x28601f--)(_0x437f88=_0x346634[_0x28601f])&&(_0x242218=_0x437f88(_0x242218)||_0x242218);return _0x242218;},ie=(_0x5043ea,_0x5ed046)=>(_0x417666,_0x475b2b)=>_0x5ed046(_0x417666,_0x475b2b,_0x5043ea);let x=class extends a[_0x340a06(0x1ba)]{constructor(_0x146f4a,_0x41d59a,_0x479c81){const _0x3d12ab=_0x340a06;super(),h(this,_0x3d12ab(0x361),new Map()),h(this,_0x3d12ab(0x2cd),new d[(_0x3d12ab(0x308))]()),(this[_0x3d12ab(0x247)]=_0x146f4a,this[_0x3d12ab(0x1f4)]=_0x41d59a,this[_0x3d12ab(0x372)]=_0x479c81,this[_0x3d12ab(0x1e2)]());}[_0x340a06(0x265)](){const _0x1d82b1=_0x340a06;super[_0x1d82b1(0x265)](),this['_entityInit$'][_0x1d82b1(0x367)](),this[_0x1d82b1(0x361)][_0x1d82b1(0x31d)](_0x32e51e=>_0x32e51e[_0x1d82b1(0x265)]());}['getCollabCursors$'](_0x3aab2c){const _0xe9e293=_0x340a06;return this['_entities'][_0xe9e293(0x2c0)](_0x3aab2c)?this[_0xe9e293(0x361)][_0xe9e293(0x302)](_0x3aab2c)[_0xe9e293(0x2ef)]:this[_0xe9e293(0x2cd)][_0xe9e293(0x20b)](d[_0xe9e293(0x296)](_0x533a76=>_0x533a76[_0xe9e293(0x30a)]===_0x3aab2c),d['switchMap'](_0x7a5a6c=>_0x7a5a6c[_0xe9e293(0x2ef)]));}[_0x340a06(0x1e2)](){const _0x528865=_0x340a06;this[_0x528865(0x247)]['getTypeOfUnitAdded$'](a[_0x528865(0x2d0)][_0x528865(0x181)])[_0x528865(0x20b)](d['takeUntil'](this['dispose$']))[_0x528865(0x17b)](async _0x3883d8=>{const _0x5b7c07=_0x528865,_0x306490=_0x3883d8[_0x5b7c07(0x2e9)](),_0x4c6d8a=await this[_0x5b7c07(0x2f9)](_0x306490);this[_0x5b7c07(0x2cd)][_0x5b7c07(0x1e4)](_0x4c6d8a),this[_0x5b7c07(0x361)][_0x5b7c07(0x2b0)](_0x306490,_0x4c6d8a);}),this[_0x528865(0x247)][_0x528865(0x2fd)](a[_0x528865(0x2d0)]['UNIVER_DOC'])[_0x528865(0x20b)](d[_0x528865(0x33f)](this['dispose$']))[_0x528865(0x20b)](d[_0x528865(0x296)](_0x3db17e=>!_0x3db17e[_0x528865(0x2e9)]()[_0x528865(0x186)]('__')))[_0x528865(0x17b)](async _0x178d01=>{const _0x5a4f15=_0x528865,_0x4e808d=_0x178d01['getUnitId'](),_0x571119=await this['_startDocCollabCursor'](_0x4e808d);this[_0x5a4f15(0x2cd)][_0x5a4f15(0x1e4)](_0x571119),this[_0x5a4f15(0x361)]['set'](_0x4e808d,_0x571119);}),d[_0x528865(0x3cc)](this[_0x528865(0x247)][_0x528865(0x162)](a[_0x528865(0x2d0)][_0x528865(0x203)]),this[_0x528865(0x247)][_0x528865(0x162)](a[_0x528865(0x2d0)][_0x528865(0x181)]))[_0x528865(0x20b)](d[_0x528865(0x33f)](this[_0x528865(0x15d)]))[_0x528865(0x17b)](_0x279fa0=>{const _0x38e705=_0x528865,_0x2b546e=_0x279fa0[_0x38e705(0x2e9)](),_0x18d54e=this['_entities'][_0x38e705(0x302)](_0x2b546e);_0x18d54e&&(_0x18d54e[_0x38e705(0x265)](),this[_0x38e705(0x361)][_0x38e705(0x142)](_0x2b546e));});}async[_0x340a06(0x2f9)](_0x537444){const _0x412ddf=_0x340a06,_0x11febd=await this['_collabSessionService'][_0x412ddf(0x184)](_0x537444),_0x111b99=this['_injector'][_0x412ddf(0x17a)](Se,_0x537444,_0x11febd);return _0x111b99[_0x412ddf(0x3aa)](),_0x111b99;}async[_0x340a06(0x2b3)](_0x51aa6f){const _0x36546a=_0x340a06,_0x1b88a2=await this[_0x36546a(0x372)][_0x36546a(0x184)](_0x51aa6f),_0x280d6c=this[_0x36546a(0x1f4)][_0x36546a(0x17a)](fe,_0x51aa6f,_0x1b88a2);return _0x280d6c['init'](),_0x280d6c;}};x=ct([ie(0x0,a[_0x340a06(0x333)]),ie(0x1,a[_0x340a06(0x397)](a['Injector'])),ie(0x2,a[_0x340a06(0x397)](u['CollaborationSessionService']))],x);const K=0x14,Re=0xc8,ne=0x4,lt=0x5;function _t(_0x3edf50,_0x51f315){const _0x25646b=_0x340a06;let {radius:_0x29ea8f,width:_0x2e4dd8,height:_0x375e73}=_0x51f315;_0x29ea8f=_0x29ea8f!=null?_0x29ea8f:0x0,_0x2e4dd8=_0x2e4dd8!=null?_0x2e4dd8:0x1e,_0x375e73=_0x375e73!=null?_0x375e73:0x1e;let _0x26d692=0x0,_0x4815bd=0x0,_0x22d80f=0x0;_0x26d692=_0x4815bd=_0x22d80f=Math['min'](_0x29ea8f,_0x2e4dd8/0x2,_0x375e73/0x2),_0x3edf50[_0x25646b(0x183)](),_0x3edf50['moveTo'](_0x26d692,0x0),_0x3edf50['lineTo'](_0x2e4dd8-_0x4815bd,0x0),_0x3edf50[_0x25646b(0x153)](_0x2e4dd8-_0x4815bd,_0x4815bd,_0x4815bd,Math['PI']*0x3/0x2,0x0,!0x1),_0x3edf50[_0x25646b(0x252)](_0x2e4dd8,_0x375e73-_0x22d80f),_0x3edf50[_0x25646b(0x153)](_0x2e4dd8-_0x22d80f,_0x375e73-_0x22d80f,_0x22d80f,0x0,Math['PI']/0x2,!0x1),_0x3edf50[_0x25646b(0x252)](0x0,_0x375e73),_0x3edf50['lineTo'](0x0,_0x26d692),_0x3edf50[_0x25646b(0x153)](_0x26d692,_0x26d692,_0x26d692,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x3edf50[_0x25646b(0x2ea)](),_0x51f315['fill']&&(_0x3edf50[_0x25646b(0x180)](),_0x3edf50[_0x25646b(0x260)]=_0x51f315[_0x25646b(0x154)],_0x51f315['fillRule']===_0x25646b(0x3a8)?_0x3edf50[_0x25646b(0x154)](_0x25646b(0x3a8)):_0x3edf50[_0x25646b(0x154)](),_0x3edf50[_0x25646b(0x1a0)]());}class ee extends p[_0x340a06(0x2ee)]{constructor(_0x21b3f4,_0x50b5d5){const _0xdacf98=_0x340a06;super(_0x21b3f4,_0x50b5d5),h(this,_0xdacf98(0x2e6)),h(this,'text'),(this[_0xdacf98(0x2e6)]=_0x50b5d5==null?void 0x0:_0x50b5d5[_0xdacf98(0x2e6)],this[_0xdacf98(0x395)]=_0x50b5d5==null?void 0x0:_0x50b5d5[_0xdacf98(0x395)]);}static[_0x340a06(0x2de)](_0x118777,_0xa3d5fb){const _0x1e707a=_0x340a06,{text:_0x35f4c8,color:_0x5bb355}=_0xa3d5fb;_0x118777[_0x1e707a(0x180)](),_0x118777['font']=_0x1e707a(0x36d);const _0x5c237c=_0x118777['measureText'](_0x35f4c8)['width'],_0x3aff69=Math[_0x1e707a(0x312)](_0x5c237c+0x2*ne,Re);_t(_0x118777,{'height':K,'radius':0x4,'width':_0x3aff69,'fill':_0x5bb355}),_0x118777['fillStyle']=_0x1e707a(0x16b);const _0x285355=ne,_0x4ee27f=K-lt,_0x82c973=Re-0x2*ne;if(_0x5c237c>_0x82c973){let _0x1d953f='',_0x5e5624=0x0;for(const _0x329483 of _0x35f4c8){const _0x13e7ee=_0x118777[_0x1e707a(0x1db)](_0x329483)[_0x1e707a(0x2b9)];if(_0x5e5624+_0x13e7ee<=_0x82c973-_0x118777['measureText']('...')[_0x1e707a(0x2b9)])_0x1d953f+=_0x329483,_0x5e5624+=_0x13e7ee;else{_0x1d953f+=_0x1e707a(0x24c);break;}}_0x118777[_0x1e707a(0x2ff)](_0x1d953f,_0x285355,_0x4ee27f);}else _0x118777[_0x1e707a(0x2ff)](_0x35f4c8,_0x285355,_0x4ee27f);_0x118777[_0x1e707a(0x1a0)]();}['_draw'](_0x5b7762){const _0x5e58c3=_0x340a06;ee[_0x5e58c3(0x2de)](_0x5b7762,this);}}const re='collab-text-anchor-',ht='collab-text-range-',ut=_0x340a06(0x28f),k=0x6,dt=1.5,oe=0x4,ft=1.5,St=_0x340a06(0x1a1);class De{constructor(_0x2998ff,_0x20c6f3,_0x19bdd5,_0x13ebb1){const _0x265ae7=_0x340a06;h(this,'_shapes',[]),h(this,_0x265ae7(0x399),null),h(this,_0x265ae7(0x31b),null),h(this,_0x265ae7(0x300),null),h(this,_0x265ae7(0x269),null),h(this,_0x265ae7(0x160),null),(this[_0x265ae7(0x30f)]=_0x2998ff,this[_0x265ae7(0x289)]=_0x20c6f3,this[_0x265ae7(0x379)]=_0x19bdd5,this[_0x265ae7(0x392)]=_0x13ebb1,this[_0x265ae7(0x3c5)]());}set['_hover'](_0x2af75a){const _0x47cf97=_0x340a06;_0x2af75a?(this[_0x47cf97(0x300)]&&this['_anchorDot'][_0x47cf97(0x39a)](),this[_0x47cf97(0x31b)]&&this[_0x47cf97(0x31b)][_0x47cf97(0x14d)]()):(this[_0x47cf97(0x300)]&&this[_0x47cf97(0x300)]['show'](),this[_0x47cf97(0x31b)]&&this[_0x47cf97(0x31b)][_0x47cf97(0x39a)]());}[_0x340a06(0x265)](){const _0x59298d=_0x340a06;for(const _0x28e5f6 of this[_0x59298d(0x161)])_0x28e5f6[_0x59298d(0x265)]();this[_0x59298d(0x31b)]&&this[_0x59298d(0x31b)]['dispose'](),this[_0x59298d(0x300)]&&this[_0x59298d(0x300)][_0x59298d(0x265)](),this[_0x59298d(0x399)]&&this[_0x59298d(0x399)]['dispose'](),this[_0x59298d(0x160)]&&this['_eventUnsubscribe']();}[_0x340a06(0x3c5)](){const _0x5dc859=_0x340a06;var _0xb1fb2d;const {_docSkeleton:_0x569d0c,_document:_0x288428}=this,{color:_0x39bf70,name:_0xaa97fa,ranges:_0x5bb2e5}=this[_0x5dc859(0x30f)],_0x4771d3=_0x288428[_0x5dc859(0x1b8)](),{docsLeft:_0x55a8dc,docsTop:_0x17ab96}=_0x4771d3,_0x83b4cb=new b[(_0x5dc859(0x242))](_0x4771d3,_0x569d0c);for(const {startOffset:_0x255940,endOffset:_0x107b24,rangeType:_0x1d5f30,segmentId:_0x3918ff,segmentPage:_0x248ff6,collapsed:_0x516a8e,isActive:_0x5cbe37}of _0x5bb2e5){const _0x92c889=_0x569d0c[_0x5dc859(0x19c)](_0x255940,!0x0,_0x3918ff,_0x248ff6);let _0x376240=_0x569d0c[_0x5dc859(0x19c)](_0x107b24,!0x0,_0x3918ff,_0x248ff6);if(_0x376240==null&&(_0x376240=_0x569d0c[_0x5dc859(0x19c)](_0x107b24-0x1,!0x1,_0x3918ff,_0x248ff6)),_0x5cbe37){const {contentBoxPointGroup:_0x32f9e1}=_0x83b4cb[_0x5dc859(0x15f)](_0x376240,_0x376240);if(_0x32f9e1['length']===0x0)continue;this[_0x5dc859(0x343)](_0x39bf70,_0x32f9e1,_0x55a8dc,_0x17ab96,_0xaa97fa),this[_0x5dc859(0x160)]=this['_handleHover']();}if(_0x92c889&&_0x376240){if(_0x1d5f30===a[_0x5dc859(0x1fc)]['RECT']){const _0x3ad42e=new b[(_0x5dc859(0x19d))](_0x4771d3,_0x569d0c),{pointGroup:_0x4e205e}=(_0xb1fb2d=_0x3ad42e[_0x5dc859(0x15f)](_0x92c889,_0x376240))!=null?_0xb1fb2d:{};if(_0x4e205e==null||_0x4e205e['length']===0x0)continue;this[_0x5dc859(0x2f3)](_0x39bf70,_0x4e205e,_0x55a8dc,_0x17ab96);}else{if(!_0x516a8e){const {borderBoxPointGroup:_0x617592}=_0x83b4cb[_0x5dc859(0x15f)](_0x92c889,_0x376240);if(_0x617592[_0x5dc859(0x36b)]===0x0)continue;this[_0x5dc859(0x18e)](_0x39bf70,_0x617592,_0x55a8dc,_0x17ab96);}}}}}[_0x340a06(0x343)](_0x3da1e4,_0x1912b9,_0x28f630,_0x339f5f,_0x5e98ff){const _0x325146=_0x340a06,_0x5c5903=this[_0x325146(0x309)](_0x1912b9),{left:_0x52e57e,top:_0x3a3ce7,height:_0xca6c57}=_0x5c5903,_0x3ad2b6=this[_0x325146(0x369)](),_0x18005e=ft/_0x3ad2b6,_0x4e6cf6=new p[(_0x325146(0x26a))](re+a[_0x325146(0x382)][_0x325146(0x172)](k),{'left':_0x52e57e+_0x28f630-_0x18005e,'top':_0x3a3ce7+_0x339f5f,'height':_0xca6c57,'width':dt,'fill':_0x3da1e4||p['getColor'](a[_0x325146(0x357)][_0x325146(0x15a)],0x0),'strokeWidth':_0x18005e,'stroke':St,'evented':!0x0});this['_anchor']=_0x4e6cf6,this[_0x325146(0x289)][_0x325146(0x39d)](_0x4e6cf6,b[_0x325146(0x1d4)]);const _0x3e8989=new p['Rect'](re+a[_0x325146(0x382)]['generateRandomId'](k),{'left':_0x52e57e+_0x28f630-_0x18005e,'top':_0x3a3ce7+_0x339f5f-oe/0x2,'height':oe,'width':oe,'fill':_0x3da1e4||p[_0x325146(0x37f)](a['COLORS']['black'],0x0),'strokeWidth':0x0,'stroke':_0x3da1e4||p[_0x325146(0x37f)](a[_0x325146(0x357)]['black'],0x0),'evented':!0x1});this[_0x325146(0x300)]=_0x3e8989,this[_0x325146(0x289)][_0x325146(0x39d)](_0x3e8989,b[_0x325146(0x1d4)]);const _0x213c6e=new ee(re+a['Tools'][_0x325146(0x172)](k),{'left':_0x52e57e+_0x28f630-_0x18005e,'top':_0x3a3ce7+_0x339f5f-K,'text':_0x5e98ff,'color':_0x3da1e4});this[_0x325146(0x31b)]=_0x213c6e,this['_scene'][_0x325146(0x39d)](_0x213c6e,b[_0x325146(0x1d4)]),this['_hover']=!0x1;}[_0x340a06(0x2d7)](){const _0x3c7be1=_0x340a06,_0x4bea01=this[_0x3c7be1(0x399)]['onPointerEnter$'][_0x3c7be1(0x3bf)](()=>{const _0x588e6b=_0x3c7be1;this[_0x588e6b(0x27a)]=!0x0;}),_0x4aa030=this[_0x3c7be1(0x399)]['onPointerLeave$']['subscribeEvent'](()=>{const _0x278df8=_0x3c7be1;this[_0x278df8(0x269)]&&clearTimeout(this['_hideTimer']),this[_0x278df8(0x269)]=setTimeout(()=>{const _0x288421=_0x278df8;this[_0x288421(0x27a)]=!0x1;},0x7d0);});return()=>{const _0x3eda69=_0x3c7be1;_0x4bea01[_0x3eda69(0x2b7)](),_0x4aa030[_0x3eda69(0x2b7)]();};}[_0x340a06(0x18e)](_0x441b4b,_0x3ad423,_0x1c602c,_0x7d3098){const _0x350683=_0x340a06,_0x5a2a7f=new a[(_0x350683(0x251))](_0x441b4b)[_0x350683(0x140)](0.2)['toRgbString'](),_0x5d9b44=new p['RegularPolygon'](ht+a['Tools']['generateRandomId'](k),{'pointsGroup':_0x3ad423,'fill':_0x5a2a7f||p[_0x350683(0x37f)](a[_0x350683(0x357)][_0x350683(0x15a)],0.2),'left':_0x1c602c,'top':_0x7d3098,'evented':!0x1,'debounceParentDirty':!0x1});this['_shapes'][_0x350683(0x244)](_0x5d9b44),this[_0x350683(0x289)][_0x350683(0x39d)](_0x5d9b44,b[_0x350683(0x1d4)]);}['_drawRectRange'](_0x4898b0,_0x20e243,_0x17f911,_0x35a47d){const _0x2acefd=_0x340a06,_0x503f01=new a[(_0x2acefd(0x251))](_0x4898b0)['setAlpha'](0.2)[_0x2acefd(0x1c1)](),_0x240a74=new p[(_0x2acefd(0x3b8))](ut+a[_0x2acefd(0x382)][_0x2acefd(0x172)](k),{'pointsGroup':_0x20e243,'fill':_0x503f01||p['getColor'](a[_0x2acefd(0x357)]['black'],0.2),'left':_0x17f911,'top':_0x35a47d,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x2acefd(0x161)][_0x2acefd(0x244)](_0x240a74),this[_0x2acefd(0x289)][_0x2acefd(0x39d)](_0x240a74,b['TEXT_RANGE_LAYER_INDEX']);}[_0x340a06(0x309)](_0x3ad71a){const _0x1a0f7b=_0x3ad71a[0x0],_0x59c6ef=_0x1a0f7b[0x0],_0x470985=_0x1a0f7b[0x2],{x:_0x50bcd7,y:_0x35ce4d}=_0x59c6ef,{x:_0x4cb906,y:_0x584989}=_0x470985;return{'left':_0x50bcd7,'top':_0x35ce4d,'width':_0x4cb906-_0x50bcd7,'height':_0x584989-_0x35ce4d};}[_0x340a06(0x369)](){const _0x24e316=_0x340a06,{scaleX:_0x4dedbd,scaleY:_0x5bd966}=this[_0x24e316(0x289)][_0x24e316(0x354)]();return Math[_0x24e316(0x208)](_0x4dedbd,_0x5bd966);}}var It=Object['getOwnPropertyDescriptor'],vt=(_0x2bff76,_0x3b4694,_0x1d77ba,_0x1252b0)=>{const _0x5e80e6=_0x340a06;for(var _0x586863=_0x1252b0>0x1?void 0x0:_0x1252b0?It(_0x3b4694,_0x1d77ba):_0x3b4694,_0x29c147=_0x2bff76[_0x5e80e6(0x36b)]-0x1,_0x12703c;_0x29c147>=0x0;_0x29c147--)(_0x12703c=_0x2bff76[_0x29c147])&&(_0x586863=_0x12703c(_0x586863)||_0x586863);return _0x586863;},W=(_0x5e14e2,_0x3053c0)=>(_0xd20c72,_0x51a988)=>_0x3053c0(_0xd20c72,_0x51a988,_0x5e14e2);let Ie=class extends a[_0x340a06(0x1ba)]{constructor(_0x619223,_0x34523a,_0x2c40ac,_0x2994d0,_0x2550d2){const _0x69c649=_0x340a06;super(),h(this,_0x69c649(0x32a),[]),h(this,_0x69c649(0x2e8),[]),(this[_0x69c649(0x288)]=_0x619223,this[_0x69c649(0x155)]=_0x34523a,this[_0x69c649(0x36a)]=_0x2c40ac,this[_0x69c649(0x34c)]=_0x2994d0,this[_0x69c649(0x169)]=_0x2550d2,this['_init']());}[_0x340a06(0x1e2)](){const _0x3a4b88=_0x340a06,_0x3cc4fe=this['_context'][_0x3a4b88(0x36f)],_0xa9bb52=this[_0x3a4b88(0x155)];this['disposeWithMe'](d[_0x3a4b88(0x2dc)]([this[_0x3a4b88(0x36a)][_0x3a4b88(0x39f)](_0x3cc4fe),this[_0x3a4b88(0x169)][_0x3a4b88(0x1c9)]])[_0x3a4b88(0x20b)]($[_0x3a4b88(0x35f)](([_0x23a803,_0x30ed16])=>({'skeleton':_0xa9bb52[_0x3a4b88(0x28d)](),'cursors':[..._0x23a803[_0x3a4b88(0x313)]()]['flatMap'](_0x41e6c2=>({..._0x41e6c2,'color':this['_themeService'][_0x3a4b88(0x272)](_0x41e6c2[_0x3a4b88(0x2e6)])}))})))['subscribe'](_0x24d07c=>{const _0x5da054=_0x3a4b88;if(this[_0x5da054(0x2c7)](),_0x24d07c){const {skeleton:_0x5c52d7,cursors:_0x4b8d7d}=_0x24d07c;this[_0x5da054(0x2c8)](_0x5c52d7,_0x4b8d7d);}})),this[_0x3a4b88(0x278)](),this[_0x3a4b88(0x1d1)]();}[_0x340a06(0x2c8)](_0x51ae5a,_0x1be846){const _0x1f3755=_0x340a06,{scene:_0x37ac83,mainComponent:_0x58c24b}=this[_0x1f3755(0x288)],_0x27e1eb=_0x1be846[_0x1f3755(0x35f)](_0x16e446=>new De(_0x16e446,_0x37ac83,_0x51ae5a,_0x58c24b));this['_cursorShapes']=_0x27e1eb,this[_0x1f3755(0x2e8)]=_0x1be846;}[_0x340a06(0x1a4)](){const _0x440f33=_0x340a06;this[_0x440f33(0x2c7)]();const {scene:_0x5076d8,mainComponent:_0x1c73a8}=this[_0x440f33(0x288)],_0x2983f1=this[_0x440f33(0x155)]['getSkeleton'](),_0x228d3b=this[_0x440f33(0x2e8)][_0x440f33(0x35f)](_0x2470f4=>new De(_0x2470f4,_0x5076d8,_0x2983f1,_0x1c73a8));this[_0x440f33(0x32a)]=_0x228d3b;}['_removeCollabCursors'](){const _0x28b77b=_0x340a06;this['_cursorShapes']['forEach'](_0xe79936=>_0xe79936[_0x28b77b(0x265)]()),this[_0x28b77b(0x32a)]=[];}[_0x340a06(0x1d1)](){const _0x494bf1=_0x340a06,_0x5e131e=[b[_0x494bf1(0x2cc)]['id']];this[_0x494bf1(0x1b4)](this['_commandService'][_0x494bf1(0x1d9)](_0x1dd83e=>{const _0x28c1c4=_0x494bf1;_0x5e131e[_0x28c1c4(0x3a0)](_0x1dd83e['id'])&&_0x1dd83e[_0x28c1c4(0x258)][_0x28c1c4(0x36f)]===this[_0x28c1c4(0x288)][_0x28c1c4(0x36f)]&&this[_0x28c1c4(0x1a4)]();}));}[_0x340a06(0x278)](){const _0x226121=_0x340a06;this[_0x226121(0x1b4)](a[_0x226121(0x1c4)](this[_0x226121(0x288)][_0x226121(0x2aa)][_0x226121(0x27d)])[_0x226121(0x20b)]($[_0x226121(0x296)](_0x5dda4f=>_0x5dda4f[_0x226121(0x1b0)]===p[_0x226121(0x14b)][_0x226121(0x2e1)]),$[_0x226121(0x20c)](0x10))[_0x226121(0x17b)](()=>{const _0x1c854b=_0x226121;this[_0x1c854b(0x1a4)]();}));}};Ie=vt([W(0x1,a[_0x340a06(0x397)](Y[_0x340a06(0x19e)])),W(0x2,a[_0x340a06(0x397)](x)),W(0x3,a[_0x340a06(0x1f3)]),W(0x4,a[_0x340a06(0x397)](a[_0x340a06(0x23b)]))],Ie);const gt=0x1,mt=1.5;class Ae extends p['Shape']{constructor(_0x5736ef,_0x36c56a){const _0x113ec7=_0x340a06;super(_0x5736ef,_0x36c56a),h(this,_0x113ec7(0x1ea)),h(this,_0x113ec7(0x152),!0x1),h(this,_0x113ec7(0x1ee)),h(this,'_name',''),h(this,_0x113ec7(0x311),_0x113ec7(0x33c)),h(this,_0x113ec7(0x23d)),(_0x36c56a&&this[_0x113ec7(0x324)](_0x36c56a),this['onPointerEnter$'][_0x113ec7(0x3bf)](()=>this['setShapeProps']({'hovered':!0x0})),this[_0x113ec7(0x3b3)]['subscribeEvent'](()=>this['setShapeProps']({'hovered':!0x1})));}[_0x340a06(0x324)](_0x28dd26){const _0x3dfd13=_0x340a06;var _0x45ab52,_0x18c81d,_0xdb840b,_0x9f762b,_0x1dbb7f,_0x3f2e8f;this[_0x3dfd13(0x1ea)]=(_0x45ab52=_0x28dd26[_0x3dfd13(0x2e6)])!=null?_0x45ab52:this[_0x3dfd13(0x1ea)],this[_0x3dfd13(0x152)]=(_0x18c81d=_0x28dd26[_0x3dfd13(0x362)])!=null?_0x18c81d:this[_0x3dfd13(0x152)],this[_0x3dfd13(0x1ee)]=(_0xdb840b=_0x28dd26[_0x3dfd13(0x1cb)])!=null?_0xdb840b:this[_0x3dfd13(0x1ee)],this['_name']=(_0x9f762b=_0x28dd26[_0x3dfd13(0x29a)])!=null?_0x9f762b:this[_0x3dfd13(0x3bc)],this[_0x3dfd13(0x311)]=(_0x1dbb7f=_0x28dd26['labelPosition'])!=null?_0x1dbb7f:this['_labelPosition'],this[_0x3dfd13(0x23d)]=(_0x3f2e8f=_0x28dd26[_0x3dfd13(0x348)])!=null?_0x3f2e8f:this['_backgroundColor'],this[_0x3dfd13(0x359)]({'width':_0x28dd26[_0x3dfd13(0x2b9)],'height':_0x28dd26[_0x3dfd13(0x243)]});}[_0x340a06(0x326)](_0x485cdc){const _0x40f928=_0x340a06,{row:_0x367576,column:_0xd1ec1b}=_0x485cdc;if(_0x367576>=this[_0x40f928(0x1ee)][_0x40f928(0x239)]&&_0x367576<=this[_0x40f928(0x1ee)][_0x40f928(0x1e9)]&&_0xd1ec1b>=this[_0x40f928(0x1ee)][_0x40f928(0x264)]&&_0xd1ec1b<=this[_0x40f928(0x1ee)][_0x40f928(0x185)]){this[_0x40f928(0x324)]({'hovered':!0x0});return;}this[_0x40f928(0x324)]({'hovered':!0x1});}[_0x340a06(0x18c)](_0x281abd){return!0x1;}[_0x340a06(0x275)](_0x390b05){const _0x20df8d=_0x340a06;p[_0x20df8d(0x26a)][_0x20df8d(0x2de)](_0x390b05,{'width':this[_0x20df8d(0x2b9)],'height':this[_0x20df8d(0x243)],'strokeWidth':mt,'stroke':this['_color'],'evented':!0x1,'fill':this[_0x20df8d(0x23d)]}),this[_0x20df8d(0x152)]&&(_0x390b05[_0x20df8d(0x180)](),_0x390b05[_0x20df8d(0x2bd)](0x1,0x0,0x0,0x1,this[_0x20df8d(0x2b9)],this[_0x20df8d(0x311)]===_0x20df8d(0x19b)?0x0:-0x14),ee[_0x20df8d(0x2de)](_0x390b05,{'text':this[_0x20df8d(0x3bc)],'color':this[_0x20df8d(0x1ea)]}),_0x390b05[_0x20df8d(0x1a0)]());}}var Ct=Object[_0x340a06(0x178)],pt=(_0x4122c4,_0x3aeb47,_0x45eed5,_0x88ce44)=>{const _0xd58b57=_0x340a06;for(var _0x1aaf51=_0x88ce44>0x1?void 0x0:_0x88ce44?Ct(_0x3aeb47,_0x45eed5):_0x3aeb47,_0x3ea808=_0x4122c4[_0xd58b57(0x36b)]-0x1,_0x10ce48;_0x3ea808>=0x0;_0x3ea808--)(_0x10ce48=_0x4122c4[_0x3ea808])&&(_0x1aaf51=_0x10ce48(_0x1aaf51)||_0x1aaf51);return _0x1aaf51;},ae=(_0x4b43f0,_0x2938f6)=>(_0x213b7c,_0x1b8312)=>_0x2938f6(_0x213b7c,_0x1b8312,_0x4b43f0);const bt=0x1389;let ve=class extends a['RxDisposable']{constructor(_0x513997,_0x13c766,_0x1b977b,_0x2e5224){const _0x4365e6=_0x340a06;super(),h(this,_0x4365e6(0x2e8),new Set()),h(this,_0x4365e6(0x3be),null),(this[_0x4365e6(0x288)]=_0x513997,this[_0x4365e6(0x290)]=_0x13c766,this[_0x4365e6(0x36a)]=_0x1b977b,this[_0x4365e6(0x169)]=_0x2e5224,this['_init']());}[_0x340a06(0x1e2)](){const _0x4d2bf3=_0x340a06;this['_sheetSkeletonManagerService'][_0x4d2bf3(0x210)][_0x4d2bf3(0x20b)]($[_0x4d2bf3(0x33f)](this[_0x4d2bf3(0x15d)]),$[_0x4d2bf3(0x1ab)](_0x4017fb=>{const _0x261d38=_0x4d2bf3;if(_0x4017fb){const _0x3e26f9=_0x4017fb['sheetId'];return d[_0x261d38(0x2dc)](this['_collabCursorController']['getCollabCursors$'](this[_0x261d38(0x288)][_0x261d38(0x36f)]),this['_themeService'][_0x261d38(0x1c9)])[_0x261d38(0x20b)]($[_0x261d38(0x35f)](([_0x426b1a,_0x33720d])=>{const _0x2542f9=_0x261d38,_0x41d338=new Map();return _0x426b1a[_0x2542f9(0x31d)]((_0x26191c,_0x439d8f)=>{const _0x2cf7e7=_0x2542f9;if(_0x26191c['sheetID']===_0x3e26f9){const _0x2e2219={..._0x26191c};_0x2e2219[_0x2cf7e7(0x2e6)]=this[_0x2cf7e7(0x169)][_0x2cf7e7(0x272)](_0x26191c[_0x2cf7e7(0x2e6)]),_0x41d338['set'](_0x439d8f,_0x2e2219);}}),{'skeleton':_0x4017fb,'cursors':_0x41d338};}));}return d['of']({'skeleton':null,'cursors':new Map()});}))[_0x4d2bf3(0x17b)](({skeleton:_0x52527f,cursors:_0x3ffb2f})=>{const _0x53f04c=_0x4d2bf3;this['_removeCollabCursors'](),_0x52527f&&this[_0x53f04c(0x2c8)](_0x52527f,_0x3ffb2f);}),this[_0x4d2bf3(0x290)][_0x4d2bf3(0x210)][_0x4d2bf3(0x17b)](_0x51f297=>{const _0x3f901f=_0x4d2bf3;if(_0x51f297==null)return;const {skeleton:_0xa9bfc0}=_0x51f297,{scene:_0x45762c}=this[_0x3f901f(0x288)];_0x45762c['onPointerMove$']['subscribeEvent'](a['debounce'](_0x574ba0=>{const _0x262259=_0x3f901f;var _0x2f503a,_0x587a34;const {offsetX:_0x1e1be6,offsetY:_0x24d66d}=_0x574ba0,{x:_0x3e1d0b,y:_0x71aead}=_0x45762c[_0x262259(0x22a)](p[_0x262259(0x257)]['FromArray']([_0x1e1be6,_0x24d66d])),{scaleX:_0x7ac698,scaleY:_0x2366e3}=_0x45762c[_0x262259(0x354)](),_0xbcd216=_0x45762c[_0x262259(0x375)](p[_0x262259(0x1a9)]['VIEW_MAIN']),_0x9ad944=_0x45762c[_0x262259(0x3b4)](p[_0x262259(0x257)][_0x262259(0x282)]([_0x3e1d0b,_0x71aead]),_0xbcd216),_0x19a9b5=_0xa9bfc0[_0x262259(0x301)](_0x1e1be6,_0x24d66d,_0x7ac698,_0x2366e3,_0x9ad944);((_0x2f503a=this[_0x262259(0x3be)])==null?void 0x0:_0x2f503a[_0x262259(0x323)])===_0x19a9b5['column']&&((_0x587a34=this[_0x262259(0x3be)])==null?void 0x0:_0x587a34[_0x262259(0x35e)])===_0x19a9b5[_0x262259(0x35e)]||this[_0x262259(0x2e8)][_0x262259(0x31d)](_0x294c86=>{const _0x3efb3a=_0x262259;_0x294c86[_0x3efb3a(0x326)](_0x19a9b5);});},0x64));});}[_0x340a06(0x2c8)](_0x7bbb57,_0x2343b4){const _0x240cc4=_0x340a06;var _0x22b0ed;const _0x538d16=(_0x22b0ed=this[_0x240cc4(0x290)][_0x240cc4(0x363)]())==null?void 0x0:_0x22b0ed[_0x240cc4(0x18f)];if(!_0x538d16)return;const _0x29b225=this['_getSheetObject']();if(!_0x29b225)return;this[_0x240cc4(0x2e8)][_0x240cc4(0x31d)](_0x2ba52c=>{const _0x4d7959=_0x240cc4;_0x2ba52c[_0x4d7959(0x2f1)]();});const {scene:_0x4897bf}=_0x29b225,_0x17426c=Et(Array['from'](_0x2343b4['values']()))[_0x240cc4(0x35f)](_0x42b50d=>{const _0x1645af=_0x240cc4,{color:_0x3feead,range:_0x44fcf7,name:_0x2144c2,selection:_0x15adfa,sheetID:_0x55daf9}=_0x42b50d,{startColumn:_0x328a91,startRow:_0x43495d,endColumn:_0x41686d,endRow:_0x4fcb8b}=_0x44fcf7,_0x2abf6a=X['getCoordByCell'](_0x43495d,_0x328a91,_0x4897bf,_0x538d16),_0x261214=X[_0x1645af(0x3c4)](_0x4fcb8b,_0x41686d,_0x4897bf,_0x538d16),{columnHeaderHeightAndMarginTop:_0x593130}=_0x538d16,{startX:_0x4d9427,startY:_0xe1395f}=_0x2abf6a,{endX:_0x2cbf2c,endY:_0x4475ca}=_0x261214,_0x42bbb6=_0x2cbf2c-_0x4d9427,_0x3d0c58=_0x4475ca-_0xe1395f,_0x3daebc={'labelPosition':_0xe1395f-_0x593130>=K?_0x1645af(0x33c):'bottom','sheetID':_0x55daf9,'range':_0x44fcf7,'color':_0x3feead,'name':_0x2144c2,'selection':_0x15adfa,'left':_0x4d9427,'top':_0xe1395f,'width':_0x42bbb6,'height':_0x3d0c58,'evented':!0x1,'zIndex':bt};return new Ae(_0x2144c2,_0x3daebc);});_0x4897bf[_0x240cc4(0x292)](_0x17426c,gt),this['_cursors']=new Set(_0x17426c);}[_0x340a06(0x2c7)](){const _0x22805c=_0x340a06;var _0x2ee3af;(_0x2ee3af=this[_0x22805c(0x2e8)])==null||_0x2ee3af['forEach'](_0x4ee70b=>_0x4ee70b[_0x22805c(0x265)]());}[_0x340a06(0x1be)](){const _0x1c461e=_0x340a06;return X[_0x1c461e(0x316)](this['_context'][_0x1c461e(0x15b)],this[_0x1c461e(0x288)]);}};ve=pt([ae(0x1,a[_0x340a06(0x397)](X[_0x340a06(0x34f)])),ae(0x2,a[_0x340a06(0x397)](x)),ae(0x3,a[_0x340a06(0x397)](a[_0x340a06(0x23b)]))],ve);function Et(_0x2a7095){const _0x25aa49=_0x340a06,_0x24362b=new Map();return _0x2a7095[_0x25aa49(0x31d)](_0x43a73f=>{const _0x4efa57=_0x25aa49;if(_0x24362b[_0x4efa57(0x2c0)](_0x43a73f[_0x4efa57(0x1af)])){const _0x32ce3b=_0x24362b[_0x4efa57(0x302)](_0x43a73f[_0x4efa57(0x1af)]);_0x32ce3b[_0x4efa57(0x29a)]+=',\x20'+_0x43a73f[_0x4efa57(0x29a)];}else _0x24362b['set'](_0x43a73f[_0x4efa57(0x1af)],_0x43a73f);}),Array[_0x25aa49(0x3ad)](_0x24362b[_0x25aa49(0x313)]());}function _0x1d2d(){const _0x52c15a=['updateOfflineData','session.collaboration-timeout','function','IUniverInstanceService','YUUMI_NO_CUBOID_FOR_QUESTION','_heartbeatTimer','INVALID_ARGUMENT','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','_saveTaskMap','getLocalCacheKey','OTHER_CLIENT_EDITING','on-line-single_clip0_910_349','top','getParam','UniverIcon','takeUntil','RECT','concat','OffLineSingle','_drawAnchor','_initStatusComponent','WebURLService','_config','searchParams','backgroundColor','roomMembers$','xlink:href','fromEvent','_commandService','2106UrqOkN','handleIRemoveRow','SheetSkeletonManagerService','CONNECTOR_DATA_TOO_LARGE','_updateURLWithCurrentState','169010bQWtxQ','collabStatus.offline','getAncestorScale','_handleHeartbeatEvent','urlChange$','COLORS','ILocalCacheService','transformByState','transformStateCache','14487022LMMQpc','memberID','transformMutation','row','map','then','_entities','hovered','getCurrent','saveTaskMap','_handleEvent','225kuhYBD','complete','some','_getScale','_collabCursorController','length','session.connection-failed','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','_renderManagerService','unitId','RevisionService','308022CKpZUa','_collabSessionService','APPLY_REVISION_CONFILICT','_transformHistoryAndStateStack','getViewport','onStarting','transformRemoteChangeset','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','_docSkeleton','setUndoRedoMutationParamsCache','LICENSE_EXPORT_SIZE_EXCEEDED','collabStatus.synced','wsSessionTicketUrl','blue.400','getColor','useDependency','MOBILE_HAS_BEEN_BOUND','Tools','CONFLICT','syncEditingCollabCursor','_handleLeaveEvent','APPLY_NON_SEQUENTIAL_REVISION','apply','mapTo','BrowserCollaborationSocketService','RichTextEditingMutation','CollaborationUIEventId','getCurrentRevOfUnit','collaboration.closeRoom','JOIN_ROOM_FAILED','search','_cursorInfo$','body','_document','_clearOtherTimers','_docTransformSelectionsService','text','className','Inject','@univerjs/core','_anchor','hide','RefRangeService','collabStatus.syncing','addObject','_configService','getCollabCursors$','includes','CommandType','IMessageService','InsertRangeMoveRightCommandId','Workbook','popstate','INotificationService','_logService','evenodd','getSheetBySheetId','init','result','_assignedColors','from','SheetsSelectionsService','ACTIVE_UNIT_EVENT_CHANNEL','CollaborationStatus','SNAPSHOT_HAS_BEEN_REMOVED','string','onPointerLeave$','getVpScrollXYInfoByPosToVp','DataLoaderService','attrs','_removeClearOtherTimer','RegularPolygon','0\x200\x2017\x2016','getUnitStatus$','ISnapshotServerService','_name','handleInsertRangeMoveRight','_lastPointer','subscribeEvent','Error','IURLService','collabStatus.notCollab','M0\x200H16V16H0z','getCoordByCell','_render','@univerjs/engine-render','DeleteRangeMoveUpCommandId','@univerjs/engine-formula','_registerDependencies','Module','newValue','merge','split','saveImage','setAlpha','getActiveSheet','delete','_getSaveTimeout','getMember','_httpService','_onCursorUpdate','jsx','registerRefRange','IRemoteInstanceService','debounceTime','TRANSFORM_CHANGE_OBSERVABLE_TYPE','WECHAT_HAS_BEEN_BOUND','show','connectInjector','_status$','Failed','CollaborationSocketService','_hovered','arc','fill','_docSkeletonManagerService','purple.300','_initEvent','OnLineSingle','_session','black','unit','_setupSubUnitSync','dispose$','/run/','getRangePointData','_eventUnsubscribe','_shapes','getTypeOfUnitDisposed$','handleMoveRange','CollaborationSessionService','getActiveRange','UniverCollaborationClientUIPlugin','undoState','APPLY_PERMISSION_DENIED','_themeService','_selfUnitIDs','#FFF','deserializeRangeWithSheet','getFocusedUnit','rxjs','DocStateChangeManagerService','_roomMembers$','debug','generateRandomId','focused$','toStringTag','@univerjs/drawing','@univerjs/network','textRanges','getOwnPropertyDescriptor','univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','createInstance','subscribe','editingUnit','_transformService','_unitOnClients','isTransformMutationsWithChangesetSuccess','save','UNIVER_SHEET','red.300','beginPath','requireSession','endColumn','startsWith','colorChannel1','clipPath','Tooltip','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','_saveCache','triggerDblclick','error','_drawTextRange','skeleton','InsertRangeMoveDownCommandId','size','_setupBeforeClosingHandler','location','_memberService','@univerjs/design','EffectRefRangId','getUniverSheetInstance','transformSelections','674880SlsMkk','redoState','bottom','findNodePositionByCharIndex','NodePositionConvertToRectRange','DocSkeletonManagerService','_initEntityListener','restore','rgba(255,\x20255,\x20255,\x200.01)','MoveRangeCommandId','getUnhiddenWorksheets','_refreshCollabCursors','isArray','addHandlerCallback','Rectangle','_docTransformStateCacheService','SHEET_VIEWPORT_KEY','DEFAULT_WS_SESSION_TICKET_URL','switchMap','CollaborationController','react/jsx-runtime','YUUMI_SUBSCRIPTION_NOT_FOUND','selection','type','executeCommand','_imageIoService','collaboration.single-unit.warning','disposeWithMe','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','url(#off-line-single_clip0_910_343)','@univerjs/rpc','getOffsetConfig','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','RxDisposable','subunit','_urlService','MUTATION','_getSheetObject','TEXT','SessionStatus','toRgbString','deepClone','OTHER_CLIENTS_EDITING','fromEventSubject','stringify','_messageService','EMAIL_HAS_BEEN_BOUND','BehaviorSubject','currentTheme$','isActive','range','pluginName','APPLY_DUPLICATED','off-line-single','replace','assignAColorForMemberID','_initCommandExecutedListener','_toggleOffline','AWAITING','TEXT_RANGE_LAYER_INDEX','registerRenderModule','div','registerBeforeClose','univer-flex\x20univer-items-center','onCommandExecuted','storage','measureText','getMemberID','Warning','unload','YUUMI_URL_COL_OUT_OF_RANGE','getSheetId','_ensureSubject','_init','SYNCED','next','LocaleService','use','LOCAL_CACHE_INTERVAL_KEY','[CollaborationDataLoaderController]','endRow','_color','PENDING','toDisposable','_docStateChangeManagerService','_range','HTTPService','isTransformMutationFailure','session.will-retry','reconnect','ICommandService','_injector','toString','ONLINE','eventID','defIds','ISocketService','Optional','UPDATE_CURSOR','DOC_RANGE_TYPE','status$','_collaborationUIEventService','onLocalMutation','call','6FFiJNA','IDocClipboardService','UNIVER_DOC','getCollabEntity$','asObservable','docStateChange$','translate(.97)','max','CollaborationEvent','Disposable','pipe','throttleTime','SetSelectionsOperation','_colorAssignService','clearTimeout','currentSkeleton$','USER_NOT_INVITED_CODE','UNRECOGNIZED','collabCursorState$','roomMembers','INVALID_INVITE_CODE','none','@univerjs-pro/collaboration','NOT_COLLAB','with','_instanceService','Plugin','runId','current','setConfig','_dataLoaderService','entries','CLOSE_ROOM','getMergeData','defs','IRenderManagerService','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','137364RFRRLB','indexOf','href','InsertRowCommandId','getRelativeToViewportCoord','DocSelectionManagerService','find','_updateLocalCursor','IImageIoService','YUUMI_PROMPT_MAX_TOKENS_EXCEEDED','LICENSE_MAX_UNITS_EXCEEDED','_docTransformIMECacheService','permission.title','doc.mutation.rich-text-editing','@univerjs/sheets','USERS_LEAVE','_beforeCloseService','IConfigService','path','startRow','url(#on-line-single_clip0_910_349)','ThemeService','_transformPreviousActiveRange','_backgroundColor','propertyIsEnumerable','assign','runRefRangeMutations','green.600','NodePositionConvertToCursor','height','push','tag','children','_univerInstanceService','send','0\x200\x2016\x2016','m2Prime','setParam','...','952301UjUBPb','rxjs/operators','_scheduleClearOtherTimer','APPLY_REJECT','ColorKit','lineTo','getStateCache','_revisionService','@univerjs/ui','hasOwnProperty','Vector2','params','exhaustSavingTask','getUndoRedoMutationParamsCache','loadUnit','RemoteUniscriptService','idSuffix','application/json','SNAPSHOT_INVALID_SNAPSHOT','fillStyle','[RemoteUniscriptService]:\x20no\x20focused\x20unit','enableLocalCache','clearInterval','startColumn','dispose','m1Prime','pushState','IBeforeCloseService','_hideTimer','Rect','createIdentifier','data','_transformUndoRedoStack','1em','_refRangeService','history','_createSocketURL','getColorFromTheme','UniverCollaborationClientPlugin','WebBrowserSingleActiveUnitService','_draw','PY_RUNTIME_SCRIPT_ERROR','TOO_MANY_REQUESTS','_initResize','currentColor','_hover','_colorIndex','extend','onTransformChange$','getItem','mask','UNIVER_COLLABORATION_CLIENT_WEB_PLUGIN','prototype','FromArray','LOGIN_FAILED','collab-client.tooltip.reconnect','createElement','YUUMI_RATE_OVER_LIMIT','univerjs-icon\x20univerjs-icon-','_context','_scene','forwardRef','CollaborationDataLoaderController','source','getSkeleton','INVITE_CODE_HAS_BEEN_UES','collab-rect-range-','_sheetSkeletonManagerService','whenReady','addObjects','univer-flex\x20univer-mr-2\x20univer-text-xl','DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT','event$','filter','OFFLINE','DesktopCollaborationStatusDisplayController','_cachedData','name','sessionTicket','YUUMI_TABLE_NOT_FOUND_IN_UNIT','round','clsx','setItem','transformMutationsWithChangeset','MemberService','collaboration-client.offline-data-not-saved','loadOfflineData','collabStatus.fetchMiss','_toggleOnline','replaceState','ILogService','all','_getSessionTicket','engine','_online','svg','_docSyncEditingCollabCursorService','displayName','replaceDocRanges','set','off-line-single_clip0_910_343','YUUMI_UNABLE_LOAD_URL','_startDocCollabCursor','onRendered','ranges','random','unsubscribe','getValue','width','executionId','_localStorageService','NO_OTHER_CLIENTS_EDITING','transform','_onCursorDelete','shareReplay','has','mutations','@univerjs/docs-ui','createSocket','_notificationService','_send','_unitStatus','_removeCollabCursors','_updateCollabCursors','SetWorksheetActivateCommand','YUUMI_ASYNCIO_CANCELLED','_collaborationController','SetDocZoomRatioOperation','_entityInit$','defineProperty','code','UniverInstanceType','yellow.400','ILocalStorageService','_updateSubUnitFromURLParams','_registerRenderDependencies','transformIMECache','NOT_FOUND','_handleHover','_doCreateSocket','UnitStatus','getRenderById','#fff','combineLatest','parse','drawWith','YUUMI_ALL_TABLES_IS_INVALID','_collabCursorState$','resize','DocIMEInputManagerService','_initDependencies','INVITE_CODE_ALREADY_BOUND','actions','color','_localeService','_cursors','getUnitId','closePath','serializeRangeWithSheet','ENSURE_SNAPSHOT_EXECUTION','ITransformService','Shape','cursorInfo$','InsertColCommandId','makeDirty','origin','_drawRectRange','selections','INVITE_CODE_REQUIRED','_syncEditingCollabCursorService','LOCAL_CACHE_INTERVAL','_getMergeRange','_startSheetCollabCursor','removeParam','UNAUTHENTICATED','unshift','getTypeOfUnitAdded$','IUIPartsService','fillText','_anchorDot','getCellPositionByOffset','get','_disabled','CollaborationStatusDisplay','LICENSE_IMPORT_SIZE_EXCEEDED','setActiveRange','Unknown\x20user','Subject','_getAnchorBounding','unitID','url(#$1','_id','getCurrentUnitForType','3785kEqwAi','_cursor','PERMISSION_DENIED','_labelPosition','min','values','CHANGESET_REVISION_CONFILICT','add','getSheetObject','MessageType','imageSourceType','_docClipboardService','DocCollaborationEntity','_textBubble','LICENSE_DISTRO_REJECTED','forEach','setStateCache','_scheduleSaving','Injector','on-line-single','_handleJoinEvent','column','setShapeProps','getConfig','onMouseMove','cursorInfo','runOnServer','DisposableCollection','_cursorShapes','handleInsertRangeMoveDown','registerDependencies','8GxWzLh','UNDEFINED','INTERNAL_ERROR'];_0x1d2d=function(){return _0x52c15a;};return _0x1d2d();}var E=function(){const _0xbfe7cd=_0x340a06;return E=Object[_0xbfe7cd(0x23f)]||function(_0x4492df){const _0x236af4=_0xbfe7cd;for(var _0x119171,_0x55abe6=0x1,_0x3aaab0=arguments['length'];_0x55abe6<_0x3aaab0;_0x55abe6++){_0x119171=arguments[_0x55abe6];for(var _0x4f0673 in _0x119171)Object[_0x236af4(0x281)][_0x236af4(0x256)][_0x236af4(0x200)](_0x119171,_0x4f0673)&&(_0x4492df[_0x4f0673]=_0x119171[_0x4f0673]);}return _0x4492df;},E[_0xbfe7cd(0x387)](this,arguments);},Tt=function(_0x286b2a,_0x3cb34b){const _0x146f41=_0x340a06;var _0x227b76={};for(var _0xf42e90 in _0x286b2a)Object[_0x146f41(0x281)]['hasOwnProperty'][_0x146f41(0x200)](_0x286b2a,_0xf42e90)&&_0x3cb34b[_0x146f41(0x227)](_0xf42e90)<0x0&&(_0x227b76[_0xf42e90]=_0x286b2a[_0xf42e90]);if(_0x286b2a!=null&&typeof Object['getOwnPropertySymbols']==_0x146f41(0x332)){for(var _0x4e5909=0x0,_0xf42e90=Object['getOwnPropertySymbols'](_0x286b2a);_0x4e5909<_0xf42e90[_0x146f41(0x36b)];_0x4e5909++)_0x3cb34b[_0x146f41(0x227)](_0xf42e90[_0x4e5909])<0x0&&Object[_0x146f41(0x281)][_0x146f41(0x23e)]['call'](_0x286b2a,_0xf42e90[_0x4e5909])&&(_0x227b76[_0xf42e90[_0x4e5909]]=_0x286b2a[_0xf42e90[_0x4e5909]]);}return _0x227b76;},pe=M[_0x340a06(0x28a)](function(_0x5563cc,_0x317231){const _0x4132fe=_0x340a06;var _0x13ce3b=_0x5563cc['icon'],_0x5b4641=_0x5563cc['id'],_0x13143e=_0x5563cc[_0x4132fe(0x396)],_0xb3bd02=_0x5563cc[_0x4132fe(0x27c)],_0x28b439=Tt(_0x5563cc,['icon','id',_0x4132fe(0x396),'extend']),_0x184c8e=_0x4132fe(0x287)[_0x4132fe(0x341)](_0x5b4641,'\x20')['concat'](_0x13143e||'')['trim'](),_0x2e32e2=M['useRef']('_'[_0x4132fe(0x341)](Dt()));return we(_0x13ce3b,''['concat'](_0x5b4641),{'defIds':_0x13ce3b[_0x4132fe(0x1f8)],'idSuffix':_0x2e32e2[_0x4132fe(0x21d)]},E({'ref':_0x317231,'className':_0x184c8e},_0x28b439),_0xb3bd02);});function we(_0x4ec30f,_0x2cc5fd,_0x3cf96e,_0x4d3146,_0x3e7d24){const _0x2f8a2f=_0x340a06;return M[_0x2f8a2f(0x285)](_0x4ec30f['tag'],E(E({'key':_0x2cc5fd},Ot(_0x4ec30f,_0x3cf96e,_0x3e7d24)),_0x4d3146),(Rt(_0x4ec30f,_0x3cf96e)[_0x2f8a2f(0x246)]||[])[_0x2f8a2f(0x35f)](function(_0xd6ad4c,_0x177941){const _0x10b227=_0x2f8a2f;return we(_0xd6ad4c,''[_0x10b227(0x341)](_0x2cc5fd,'-')['concat'](_0x4ec30f[_0x10b227(0x245)],'-')[_0x10b227(0x341)](_0x177941),_0x3cf96e,void 0x0,_0x3e7d24);}));}function Ot(_0x1d4a80,_0x2713fe,_0x52d29c){const _0x40ad7c=_0x340a06;var _0x466206=E({},_0x1d4a80[_0x40ad7c(0x3b6)]);_0x52d29c!=null&&_0x52d29c[_0x40ad7c(0x187)]&&_0x466206['fill']==='colorChannel1'&&(_0x466206[_0x40ad7c(0x154)]=_0x52d29c['colorChannel1']),_0x1d4a80[_0x40ad7c(0x245)]===_0x40ad7c(0x27f)&&_0x466206['id']&&(_0x466206['id']=_0x466206['id']+_0x2713fe[_0x40ad7c(0x25d)]),Object[_0x40ad7c(0x220)](_0x466206)['forEach'](function(_0x4a2814){const _0x125198=_0x40ad7c;var _0x577bbe=_0x4a2814[0x0],_0x2ca09a=_0x4a2814[0x1];_0x577bbe===_0x125198(0x27f)&&typeof _0x2ca09a=='string'&&(_0x466206[_0x577bbe]=_0x2ca09a[_0x125198(0x1cf)](/url\(#(.*)\)/,_0x125198(0x30b)['concat'](_0x2713fe[_0x125198(0x25d)],')')));});var _0x2e3170=_0x2713fe[_0x40ad7c(0x1f8)];return!_0x2e3170||_0x2e3170['length']===0x0||(_0x1d4a80[_0x40ad7c(0x245)]===_0x40ad7c(0x1e6)&&_0x466206[_0x40ad7c(0x34a)]&&(_0x466206['xlink:href']=_0x466206[_0x40ad7c(0x34a)]+_0x2713fe[_0x40ad7c(0x25d)]),Object[_0x40ad7c(0x220)](_0x466206)['forEach'](function(_0x50e683){const _0x396d3f=_0x40ad7c;var _0x259cdb=_0x50e683[0x0],_0x54d891=_0x50e683[0x1];typeof _0x54d891==_0x396d3f(0x3b2)&&(_0x466206[_0x259cdb]=_0x54d891[_0x396d3f(0x1cf)](/url\(#(.*)\)/,_0x396d3f(0x30b)[_0x396d3f(0x341)](_0x2713fe[_0x396d3f(0x25d)],')')));})),_0x466206;}function Rt(_0x566987,_0x16f31f){const _0xd3dc4e=_0x340a06;var _0x25bd88,_0x273a4a=_0x16f31f[_0xd3dc4e(0x1f8)];return!_0x273a4a||_0x273a4a[_0xd3dc4e(0x36b)]===0x0?_0x566987:_0x566987['tag']===_0xd3dc4e(0x223)&&(!((_0x25bd88=_0x566987[_0xd3dc4e(0x246)])===null||_0x25bd88===void 0x0)&&_0x25bd88[_0xd3dc4e(0x36b)])?E(E({},_0x566987),{'children':_0x566987['children'][_0xd3dc4e(0x35f)](function(_0x436ca9){const _0x1fa560=_0xd3dc4e;return typeof _0x436ca9[_0x1fa560(0x3b6)]['id']==_0x1fa560(0x3b2)&&_0x273a4a&&_0x273a4a[_0x1fa560(0x227)](_0x436ca9[_0x1fa560(0x3b6)]['id'])>-0x1?E(E({},_0x436ca9),{'attrs':E(E({},_0x436ca9[_0x1fa560(0x3b6)]),{'id':_0x436ca9[_0x1fa560(0x3b6)]['id']+_0x16f31f[_0x1fa560(0x25d)]})}):_0x436ca9;})}):_0x566987;}function Dt(){const _0x2d4e73=_0x340a06;return Math[_0x2d4e73(0x2b6)]()[_0x2d4e73(0x1f5)](0x24)['substring'](0x2,0x8);}pe[_0x340a06(0x2ae)]=_0x340a06(0x33e);var Ut={'tag':_0x340a06(0x2ac),'attrs':{'fill':_0x340a06(0x216),'viewBox':_0x340a06(0x249),'width':_0x340a06(0x26e),'height':'1em'},'children':[{'tag':'g','attrs':{'clipPath':_0x340a06(0x1b6)},'children':[{'tag':_0x340a06(0x238),'attrs':{'stroke':_0x340a06(0x279),'d':_0x340a06(0x225),'strokeLinecap':_0x340a06(0x29d),'strokeLinejoin':_0x340a06(0x29d),'strokeWidth':1.2}}]},{'tag':_0x340a06(0x223),'attrs':{},'children':[{'tag':_0x340a06(0x188),'attrs':{'id':_0x340a06(0x2b1)},'children':[{'tag':_0x340a06(0x238),'attrs':{'fill':_0x340a06(0x2db),'d':_0x340a06(0x3c3)}}]}]}],'defIds':[_0x340a06(0x2b1)]},ye=M[_0x340a06(0x28a)](function(_0x233a06,_0x99ad1b){const _0x41af77=_0x340a06;return M[_0x41af77(0x285)](pe,Object[_0x41af77(0x23f)]({},_0x233a06,{'id':_0x41af77(0x1ce),'ref':_0x99ad1b,'icon':Ut}));});ye['displayName']=_0x340a06(0x342);var Nt={'tag':'svg','attrs':{'fill':_0x340a06(0x216),'viewBox':_0x340a06(0x3b9),'width':_0x340a06(0x26e),'height':'1em'},'children':[{'tag':'g','attrs':{'clipPath':_0x340a06(0x23a)},'children':[{'tag':_0x340a06(0x238),'attrs':{'stroke':'currentColor','d':_0x340a06(0x18a),'strokeLinecap':'round','strokeLinejoin':_0x340a06(0x29d),'strokeWidth':1.2}}]},{'tag':_0x340a06(0x223),'attrs':{},'children':[{'tag':'clipPath','attrs':{'id':'on-line-single_clip0_910_349'},'children':[{'tag':_0x340a06(0x238),'attrs':{'fill':'#fff','d':'M0\x200H16V16H0z','transform':_0x340a06(0x207)}}]}]}],'defIds':[_0x340a06(0x33b)]},$e=M['forwardRef'](function(_0x15f32f,_0x3f2408){const _0xb208e3=_0x340a06;return M[_0xb208e3(0x285)](pe,Object[_0xb208e3(0x23f)]({},_0x15f32f,{'id':_0xb208e3(0x321),'ref':_0x3f2408,'icon':Nt}));});$e[_0x340a06(0x2ae)]=_0x340a06(0x158);function Mt(_0x4851b1){const _0x185853=_0x340a06;switch(_0x4851b1){case u['CollaborationStatus'][_0x185853(0x297)]:return _0x185853(0x353);case u[_0x185853(0x3b0)]['CONFLICT']:return'collabStatus.conflict';case u['CollaborationStatus']['FETCH_MISS']:return _0x185853(0x2a4);case u['CollaborationStatus'][_0x185853(0x218)]:return _0x185853(0x3c2);case u['CollaborationStatus'][_0x185853(0x1d3)]:case u['CollaborationStatus']['AWAITING_WITH_PENDING']:return _0x185853(0x39c);case u['CollaborationStatus'][_0x185853(0x1e3)]:case u[_0x185853(0x3b0)][_0x185853(0x1eb)]:return _0x185853(0x37c);}}function xe(_0x146200){const _0x112b03=_0x340a06,{status$:_0x2f1b3b}=_0x146200,_0x160a42=T['useObservable'](_0x2f1b3b,u[_0x112b03(0x3b0)]['NOT_COLLAB']),_0x3d757a=T['useDependency'](a[_0x112b03(0x1e5)]),_0x20b110=T[_0x112b03(0x380)](u[_0x112b03(0x164)]),_0x125a1c=_0x160a42!==u[_0x112b03(0x3b0)][_0x112b03(0x297)],_0x1a5bbb=_0x3d757a['t'](Mt(_0x160a42)),_0x3594cb=_0x125a1c?P['jsx']($e,{}):P['jsx'](ye,{}),_0x4e8e4e=M['useCallback'](()=>{const _0x90cb7d=_0x112b03;_0x125a1c||_0x20b110[_0x90cb7d(0x1f2)]();},[_0x125a1c,_0x20b110]);function _0x29e86e(){const _0x2485ca=_0x112b03;return P['jsxs'](_0x2485ca(0x1d6),{'className':_0x2485ca(0x1d8),'onClick':_0x4e8e4e,'children':[P[_0x2485ca(0x147)](_0x2485ca(0x1d6),{'className':D[_0x2485ca(0x29e)](_0x2485ca(0x293),{'univer-text-green-500':_0x125a1c,'univer-text-red-500':!_0x125a1c}),'children':_0x3594cb}),P[_0x2485ca(0x147)](_0x2485ca(0x1d6),{'className':_0x2485ca(0x179),'children':_0x1a5bbb})]});}return _0x125a1c?_0x29e86e():P['jsx'](D[_0x112b03(0x189)],{'title':_0x3d757a['t'](_0x112b03(0x284)),'children':_0x29e86e()});}var Lt=Object[_0x340a06(0x178)],Pt=(_0x2e30bc,_0x253357,_0x425186,_0x5d9e18)=>{const _0x4233e9=_0x340a06;for(var _0x350d35=_0x5d9e18>0x1?void 0x0:_0x5d9e18?Lt(_0x253357,_0x425186):_0x253357,_0x589759=_0x2e30bc[_0x4233e9(0x36b)]-0x1,_0x2760f2;_0x589759>=0x0;_0x589759--)(_0x2760f2=_0x2e30bc[_0x589759])&&(_0x350d35=_0x2760f2(_0x350d35)||_0x350d35);return _0x350d35;},V=(_0x8d2adf,_0x16e7cc)=>(_0x83898f,_0x54db30)=>_0x16e7cc(_0x83898f,_0x54db30,_0x8d2adf);exports['DesktopCollaborationStatusDisplayController']=class extends a[_0x340a06(0x20a)]{constructor(_0xd8d272,_0xe42489,_0x35ecfc,_0x2dbbdd){const _0x2ca756=_0x340a06;super(),h(this,'_status$',new d[(_0x2ca756(0x1c8))](u[_0x2ca756(0x3b0)]['NOT_COLLAB'])),(this[_0x2ca756(0x247)]=_0xd8d272,this[_0x2ca756(0x1f4)]=_0xe42489,this['_collaborationController']=_0x35ecfc,this['_uiPartsService']=_0x2dbbdd,this[_0x2ca756(0x344)](),this['_initStatusListener']());}['_initStatusListener'](){const _0x8ae84c=_0x340a06;this['disposeWithMe'](this[_0x8ae84c(0x247)][_0x8ae84c(0x173)][_0x8ae84c(0x20b)](d[_0x8ae84c(0x1ab)](()=>{const _0x401755=_0x8ae84c,_0x228a44=this['_univerInstanceService']['getFocusedUnit']();return _0x228a44?this[_0x401755(0x2cb)][_0x401755(0x204)](_0x228a44['getUnitId']()):d['of'](null);}),d[_0x8ae84c(0x1ab)](_0x18c23b=>_0x18c23b?_0x18c23b[_0x8ae84c(0x1fd)]:d['of'](u[_0x8ae84c(0x3b0)][_0x8ae84c(0x218)])))['subscribe'](_0x45edaa=>{const _0xbba23b=_0x8ae84c;this['_status$'][_0xbba23b(0x1e4)](_0x45edaa);}));}[_0x340a06(0x344)](){const _0x19940b=_0x340a06;this[_0x19940b(0x1b4)](this['_uiPartsService']['registerComponent'](T['BuiltInUIPart']['HEADER_MENU'],()=>T[_0x19940b(0x14e)](At({'status$':this[_0x19940b(0x14f)][_0x19940b(0x205)]()}),this[_0x19940b(0x1f4)])));}},exports['DesktopCollaborationStatusDisplayController']=Pt([V(0x0,a['IUniverInstanceService']),V(0x1,a[_0x340a06(0x397)](a[_0x340a06(0x320)])),V(0x2,a['Inject'](u[_0x340a06(0x1ac)])),V(0x3,T[_0x340a06(0x2fe)])],exports[_0x340a06(0x298)]);function At(_0x4e5b5b){const {status$:_0x25893d}=_0x4e5b5b;return function(){const _0x5864a2=_0x18a4;return P[_0x5864a2(0x147)](xe,{'status$':_0x25893d});};}var wt=Object[_0x340a06(0x178)],yt=(_0x406360,_0x336e3c,_0x10e216,_0x907b9b)=>{const _0x562667=_0x340a06;for(var _0x36b8d8=_0x907b9b>0x1?void 0x0:_0x907b9b?wt(_0x336e3c,_0x10e216):_0x336e3c,_0x1aa1eb=_0x406360[_0x562667(0x36b)]-0x1,_0x2922e7;_0x1aa1eb>=0x0;_0x1aa1eb--)(_0x2922e7=_0x406360[_0x1aa1eb])&&(_0x36b8d8=_0x2922e7(_0x36b8d8)||_0x36b8d8);return _0x36b8d8;},y=(_0x844e5e,_0x5e2a89)=>(_0x5960ef,_0x36f2d3)=>_0x5e2a89(_0x5960ef,_0x36f2d3,_0x844e5e);let q=class extends a[_0x340a06(0x20a)]{constructor(_0x2e9a5f,_0x493180,_0x3d9565,_0x162c60,_0x2d5593,_0x4fc207){const _0x35cd7a=_0x340a06;super(),this[_0x35cd7a(0x236)]=_0x2e9a5f,this['_localCacheService']=_0x493180,this[_0x35cd7a(0x1fe)]=_0x3d9565,this[_0x35cd7a(0x1c6)]=_0x162c60,this[_0x35cd7a(0x2c4)]=_0x2d5593,this[_0x35cd7a(0x2e7)]=_0x4fc207,this[_0x35cd7a(0x192)](),this['_initEvent']();}[_0x340a06(0x192)](){const _0x1d348c=_0x340a06;this['disposeWithMe'](this[_0x1d348c(0x236)][_0x1d348c(0x1d7)](()=>{const _0x1d4935=_0x1d348c;if(this['_localCacheService'][_0x1d4935(0x364)]['size'])return this[_0x1d4935(0x2e7)]['t'](_0x1d4935(0x2a2));}));}[_0x340a06(0x157)](){const _0xa863a2=_0x340a06;this[_0xa863a2(0x1b4)](this[_0xa863a2(0x1fe)][_0xa863a2(0x295)]['subscribe'](_0x4411b2=>{const _0x7ad112=_0xa863a2;_0x4411b2['id']===u[_0x7ad112(0x38b)][_0x7ad112(0x33a)]&&this['_messageService']['show']({'type':D['MessageType'][_0x7ad112(0x1dd)],'content':this[_0x7ad112(0x2e7)]['t'](_0x7ad112(0x1b3))}),_0x4411b2['id']===u['CollaborationUIEventId'][_0x7ad112(0x221)]&&this[_0x7ad112(0x1c6)][_0x7ad112(0x14d)]({'type':D['MessageType']['Warning'],'content':this['_localeService']['t'](_0x7ad112(0x38d))}),_0x4411b2['id']===u['CollaborationUIEventId'][_0x7ad112(0x310)]&&this[_0x7ad112(0x2c4)]['show']({'title':this['_localeService']['t'](_0x7ad112(0x232)),'content':this[_0x7ad112(0x2e7)]['t']('permission.content'),'type':'error','duration':0x0}),_0x4411b2['id']===u[_0x7ad112(0x38b)][_0x7ad112(0x383)]&&this[_0x7ad112(0x1c6)][_0x7ad112(0x14d)]({'type':D[_0x7ad112(0x317)][_0x7ad112(0x3c0)],'content':this[_0x7ad112(0x2e7)]['t']('collaboration.closeRoom')+'('+_0x4411b2[_0x7ad112(0x26c)]+')'}),_0x4411b2['id']===u[_0x7ad112(0x38b)][_0x7ad112(0x38e)]&&this[_0x7ad112(0x1c6)][_0x7ad112(0x14d)]({'type':D['MessageType'][_0x7ad112(0x1dd)],'content':this[_0x7ad112(0x2e7)]['t'](_0x4411b2[_0x7ad112(0x26c)]||'')}),_0x4411b2['id']===u[_0x7ad112(0x38b)]['SOCKET_FAILED_RETRY']&&this[_0x7ad112(0x1c6)][_0x7ad112(0x14d)]({'type':D[_0x7ad112(0x317)][_0x7ad112(0x1dd)],'content':this[_0x7ad112(0x2e7)]['t'](_0x7ad112(0x1f1))}),_0x4411b2['id']===u[_0x7ad112(0x38b)]['SOCKET_FAILED']&&this['_messageService'][_0x7ad112(0x14d)]({'type':D[_0x7ad112(0x317)]['Error'],'content':this[_0x7ad112(0x2e7)]['t'](_0x7ad112(0x36c))}),_0x4411b2['id']===u[_0x7ad112(0x38b)]['SUBMIT_CHANGESET_TIMEOUT']&&this[_0x7ad112(0x1c6)]['show']({'type':D[_0x7ad112(0x317)][_0x7ad112(0x3c0)],'content':this[_0x7ad112(0x2e7)]['t'](_0x7ad112(0x331))});}));}};q=yt([y(0x0,T[_0x340a06(0x268)]),y(0x1,u['ILocalCacheService']),y(0x2,a[_0x340a06(0x397)](u['CollaborationUIEventService'])),y(0x3,T['IMessageService']),y(0x4,T[_0x340a06(0x3a6)]),y(0x5,a[_0x340a06(0x397)](a[_0x340a06(0x1e5)]))],q);const $t='collaboration-client-ui.config',Ue={},be=a[_0x340a06(0x26b)]('uni.network.url-service');var xt=Object[_0x340a06(0x178)],jt=(_0x520c11,_0x54667d,_0x339272,_0x2d1bf8)=>{const _0x2a9d0b=_0x340a06;for(var _0x10ddb2=_0x2d1bf8>0x1?void 0x0:_0x2d1bf8?xt(_0x54667d,_0x339272):_0x54667d,_0x37f0a9=_0x520c11[_0x2a9d0b(0x36b)]-0x1,_0x28366a;_0x37f0a9>=0x0;_0x37f0a9--)(_0x28366a=_0x520c11[_0x37f0a9])&&(_0x10ddb2=_0x28366a(_0x10ddb2)||_0x10ddb2);return _0x10ddb2;},H=(_0x420133,_0x14b0f7)=>(_0x5ac78d,_0x35c719)=>_0x14b0f7(_0x5ac78d,_0x35c719,_0x420133);exports[_0x340a06(0x28b)]=class extends a[_0x340a06(0x1ba)]{constructor(_0x3a5307,_0x436e2a,_0x3ae612,_0x4ff66e,_0x1eb18d){const _0xdabd2a=_0x340a06;super(),this[_0xdabd2a(0x1bc)]=_0x3a5307,this['_logService']=_0x436e2a,this[_0xdabd2a(0x34c)]=_0x3ae612,this[_0xdabd2a(0x21f)]=_0x4ff66e,_0x1eb18d?_0x1eb18d==null||_0x1eb18d[_0xdabd2a(0x291)]()[_0xdabd2a(0x360)](()=>this[_0xdabd2a(0x1e2)]()):(this['_logService']['debug'](_0xdabd2a(0x1e8),_0xdabd2a(0x337)),this[_0xdabd2a(0x1e2)]());}async[_0x340a06(0x1e2)](){const _0x374352=_0x340a06,_0x49e8f2=this['_urlService'][_0x374352(0x33d)]('unit'),_0x357b66=this['_urlService'][_0x374352(0x33d)](_0x374352(0x1b0)),_0x25abf5=this[_0x374352(0x1bc)]['getParam']('subunit');if(!_0x49e8f2||!_0x357b66){this[_0x374352(0x3a7)][_0x374352(0x171)](_0x374352(0x1e8),_0x374352(0x378));return;}const _0x4ddf8c=await this[_0x374352(0x21f)][_0x374352(0x25b)](_0x49e8f2,Number(_0x357b66),_0x25abf5);_0x4ddf8c&&_0x4ddf8c instanceof a[_0x374352(0x3a4)]&&this[_0x374352(0x15c)](_0x4ddf8c);}async['_setupSubUnitSync'](_0x15eb5a){const _0x4738be=_0x340a06;await this[_0x4738be(0x2d3)](_0x15eb5a),_0x15eb5a['activeSheet$'][_0x4738be(0x20b)](d['takeUntil'](this['dispose$']))[_0x4738be(0x17b)](_0x37e160=>{const _0x342afa=_0x4738be;_0x37e160&&this[_0x342afa(0x351)](_0x37e160);}),this['_urlService'][_0x4738be(0x356)][_0x4738be(0x20b)](d[_0x4738be(0x33f)](this[_0x4738be(0x15d)]))['subscribe'](()=>this[_0x4738be(0x2d3)](_0x15eb5a));}['_updateURLWithCurrentState'](_0x45b3f7,_0x5c0118=!0x1){const _0x7c587e=_0x340a06,_0x554bc1=this[_0x7c587e(0x1bc)][_0x7c587e(0x33d)](_0x7c587e(0x1bb));_0x45b3f7[_0x7c587e(0x1e0)]()!==_0x554bc1&&this[_0x7c587e(0x1bc)][_0x7c587e(0x24b)](_0x7c587e(0x1bb),_0x45b3f7[_0x7c587e(0x1e0)](),_0x5c0118);}async[_0x340a06(0x2d3)](_0x55d1c8){const _0xeefb78=_0x340a06;var _0xb4d797;const _0x4d47d3=this[_0xeefb78(0x1bc)]['getParam'](_0xeefb78(0x1bb));if(!_0x4d47d3||!_0x55d1c8['getSheetBySheetId'](_0x4d47d3)){const _0x3bdeb3=_0x55d1c8[_0xeefb78(0x1a3)]()[0x0],_0x286f64=_0x55d1c8[_0xeefb78(0x3a9)](_0x3bdeb3);if(!_0x286f64)return;this[_0xeefb78(0x351)](_0x286f64,!0x0),await this[_0xeefb78(0x34c)][_0xeefb78(0x1b1)](g[_0xeefb78(0x2c9)]['id'],{'unitId':_0x55d1c8[_0xeefb78(0x2e9)](),'subUnitId':_0x3bdeb3});return;}((_0xb4d797=_0x55d1c8[_0xeefb78(0x141)]())==null?void 0x0:_0xb4d797[_0xeefb78(0x1e0)]())!==_0x4d47d3&&await this[_0xeefb78(0x34c)][_0xeefb78(0x1b1)](g[_0xeefb78(0x2c9)]['id'],{'unitId':_0x55d1c8[_0xeefb78(0x2e9)](),'subUnitId':_0x4d47d3});}},exports[_0x340a06(0x28b)]=jt([H(0x0,be),H(0x1,a[_0x340a06(0x2a7)]),H(0x2,a[_0x340a06(0x1f3)]),H(0x3,a[_0x340a06(0x397)](u[_0x340a06(0x3b5)])),H(0x4,a[_0x340a06(0x1fa)](Ke[_0x340a06(0x149)]))],exports[_0x340a06(0x28b)]);var Bt=Object[_0x340a06(0x178)],kt=(_0x3e1a4c,_0x1fbf09,_0x567279,_0x8093b6)=>{const _0x311256=_0x340a06;for(var _0xaf8d68=_0x8093b6>0x1?void 0x0:_0x8093b6?Bt(_0x1fbf09,_0x567279):_0x1fbf09,_0x1c9c39=_0x3e1a4c[_0x311256(0x36b)]-0x1,_0x38fd7c;_0x1c9c39>=0x0;_0x1c9c39--)(_0x38fd7c=_0x3e1a4c[_0x1c9c39])&&(_0xaf8d68=_0x38fd7c(_0xaf8d68)||_0xaf8d68);return _0xaf8d68;},ce=(_0xe97cdd,_0x2eea45)=>(_0x3b9363,_0x520cea)=>_0x2eea45(_0x3b9363,_0x520cea,_0xe97cdd);let z=class{constructor(_0x5e698d,_0x1dc242,_0x437497){const _0x344f91=_0x340a06;this[_0x344f91(0x1f4)]=_0x5e698d,this[_0x344f91(0x17d)]=_0x1dc242,this[_0x344f91(0x36e)]=_0x437497;}[_0x340a06(0x2d5)](_0x4fc03a){const _0x4d82f8=_0x340a06;this[_0x4d82f8(0x26d)](_0x4fc03a),this[_0x4d82f8(0x23c)](_0x4fc03a);}[_0x340a06(0x377)](_0x63d403){const _0x37aec4=_0x340a06,{unitID:_0x395d1e}=_0x63d403,_0x42b0e6=this[_0x37aec4(0x36e)][_0x37aec4(0x2da)](_0x395d1e)[_0x37aec4(0x219)](b['DocIMEInputManagerService']),{redoCache:_0xaa8a60}=_0x42b0e6[_0x37aec4(0x25a)]();if(_0xaa8a60[_0x37aec4(0x36b)]===0x0)return _0x63d403;let _0x5be9d3=a[_0x37aec4(0x382)][_0x37aec4(0x1c2)](_0x63d403[_0x37aec4(0x2c1)][0x0]);for(let _0x414a13=0x0;_0x414a13<_0xaa8a60[_0x37aec4(0x36b)];_0x414a13++){const _0x3857b4={'id':'doc.mutation.rich-text-editing','params':{..._0xaa8a60[_0x414a13]}},_0x15ff95=this[_0x37aec4(0x17d)]['transformMutation'](_0x5be9d3,_0x3857b4,!0x1);if(m['isTransformMutationFailure'](_0x15ff95))throw _0x15ff95[_0x37aec4(0x18d)];_0x5be9d3=_0x15ff95[_0x37aec4(0x266)];}return{...a[_0x37aec4(0x382)][_0x37aec4(0x1c2)](_0x63d403),'mutations':[_0x5be9d3]};}[_0x340a06(0x26d)](_0xc06d97){const _0x39cd2c=_0x340a06,{unitID:_0x54fc64}=_0xc06d97,_0x3b7b93=this['_renderManagerService'][_0x39cd2c(0x2da)](_0x54fc64)['with'](b[_0x39cd2c(0x2e2)]),{undoCache:_0x4a9b96,redoCache:_0x41fd32}=_0x3b7b93['getUndoRedoMutationParamsCache']();if(_0x4a9b96['length']===0x0||_0x41fd32[_0x39cd2c(0x36b)]===0x0)return;const _0x48f5c7=[],_0x5f2450=[];let _0x552df3=a[_0x39cd2c(0x382)][_0x39cd2c(0x1c2)](_0xc06d97['mutations'][0x0]),_0x1cc230=a['Tools'][_0x39cd2c(0x1c2)](_0xc06d97['mutations'][0x0]);for(let _0x269f75=_0x4a9b96[_0x39cd2c(0x36b)]-0x1;_0x269f75>=0x0;_0x269f75--){const _0x3129ce={'id':_0x39cd2c(0x233),'params':{..._0x4a9b96[_0x269f75]}},_0x44eb79={'id':_0x39cd2c(0x233),'params':{..._0x41fd32[_0x269f75]}},_0x5166ad=this['_transformService'][_0x39cd2c(0x35d)](_0x552df3,_0x3129ce,!0x1),_0x5ab44d=this[_0x39cd2c(0x17d)][_0x39cd2c(0x35d)](_0x1cc230,_0x44eb79,!0x1);if(m[_0x39cd2c(0x1f0)](_0x5166ad))throw _0x5166ad[_0x39cd2c(0x18d)];if(m[_0x39cd2c(0x1f0)](_0x5ab44d))throw _0x5ab44d['error'];_0x48f5c7[_0x39cd2c(0x2fc)](_0x5166ad['m2Prime'][_0x39cd2c(0x258)]),_0x5f2450[_0x39cd2c(0x2fc)](_0x5ab44d[_0x39cd2c(0x24a)][_0x39cd2c(0x258)]),_0x552df3=_0x5166ad[_0x39cd2c(0x266)],_0x1cc230=_0x5ab44d[_0x39cd2c(0x266)];}_0x3b7b93[_0x39cd2c(0x37a)]({'undoCache':_0x48f5c7,'redoCache':_0x5f2450});}[_0x340a06(0x23c)](_0x3a69d1){const _0x510562=_0x340a06,{unitID:_0x29eb2e}=_0x3a69d1,_0xf9ed30=this[_0x510562(0x36e)][_0x510562(0x2da)](_0x29eb2e)[_0x510562(0x219)](b[_0x510562(0x2e2)]),_0xf888da=_0xf9ed30[_0x510562(0x165)]();if(_0xf888da==null)return;const _0x19727d=[{'id':_0x510562(0x233),'params':{'unitId':_0x3a69d1[_0x510562(0x30a)],'actions':null,'textRanges':[_0xf888da]}}],_0x56a95b=this[_0x510562(0x17d)][_0x510562(0x2a0)](_0x3a69d1,_0x19727d);if(!m[_0x510562(0x17f)](_0x56a95b))throw _0x56a95b[_0x510562(0x18d)];const _0x35dfe7=_0x56a95b[_0x510562(0x24a)][0x0][_0x510562(0x258)][_0x510562(0x177)];Array[_0x510562(0x1a5)](_0x35dfe7)&&_0x35dfe7[_0x510562(0x36b)]&&_0xf9ed30[_0x510562(0x306)](_0x35dfe7[0x0]);}};z=kt([ce(0x0,a[_0x340a06(0x397)](a[_0x340a06(0x320)])),ce(0x1,m[_0x340a06(0x2ed)]),ce(0x2,p[_0x340a06(0x224)])],z);var Ht=Object['getOwnPropertyDescriptor'],Ft=(_0x5a101e,_0x441db9,_0x4f6a4a,_0x16efde)=>{for(var _0x452901=_0x16efde>0x1?void 0x0:_0x16efde?Ht(_0x441db9,_0x4f6a4a):_0x441db9,_0x52b77e=_0x5a101e['length']-0x1,_0x50eb07;_0x52b77e>=0x0;_0x52b77e--)(_0x50eb07=_0x5a101e[_0x52b77e])&&(_0x452901=_0x50eb07(_0x452901)||_0x452901);return _0x452901;},le=(_0x14f4ed,_0x3ce4cf)=>(_0x2cd2f2,_0x23b882)=>_0x3ce4cf(_0x2cd2f2,_0x23b882,_0x14f4ed);let J=class{constructor(_0x5b4fa2,_0x3f2405,_0x24adbf){const _0xb3ccd1=_0x340a06;this[_0xb3ccd1(0x1f4)]=_0x5b4fa2,this[_0xb3ccd1(0x17d)]=_0x3f2405,this[_0xb3ccd1(0x1ed)]=_0x24adbf;}['transformStateCache'](_0x3426ea){const _0x44c663=_0x340a06;this[_0x44c663(0x374)](_0x3426ea);}[_0x340a06(0x377)](_0xc04f4f){const _0x46fbe6=_0x340a06,{unitID:_0xf43532}=_0xc04f4f,{collaboration:_0x38c108}=this['_docStateChangeManagerService'][_0x46fbe6(0x253)](_0xf43532);if(_0x38c108[_0x46fbe6(0x36b)]===0x0)return _0xc04f4f;let _0x33c9df=a[_0x46fbe6(0x382)][_0x46fbe6(0x1c2)](_0xc04f4f[_0x46fbe6(0x2c1)][0x0]);for(let _0x4dc0e7=0x0;_0x4dc0e7<_0x38c108[_0x46fbe6(0x36b)];_0x4dc0e7++){const _0x45cb4a={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x38c108[_0x4dc0e7][_0x46fbe6(0x36f)],..._0x38c108[_0x4dc0e7][_0x46fbe6(0x19a)]}},_0x450fcf=this[_0x46fbe6(0x17d)][_0x46fbe6(0x35d)](_0x33c9df,_0x45cb4a,!0x1);if(m['isTransformMutationFailure'](_0x450fcf))throw _0x450fcf[_0x46fbe6(0x18d)];_0x33c9df=_0x450fcf[_0x46fbe6(0x266)];}return{...a['Tools'][_0x46fbe6(0x1c2)](_0xc04f4f),'mutations':[_0x33c9df]};}[_0x340a06(0x374)](_0x5bf351){const _0x328703=_0x340a06,{unitID:_0x235e4a}=_0x5bf351,{history:_0x27c9a1,collaboration:_0x50800a}=this[_0x328703(0x1ed)][_0x328703(0x253)](_0x235e4a);if(_0x27c9a1[_0x328703(0x36b)]===0x0&&_0x50800a[_0x328703(0x36b)]===0x0)return;const _0x44321f=[],_0x3a6119=[];let _0x39cc51=a[_0x328703(0x382)][_0x328703(0x1c2)](_0x5bf351[_0x328703(0x2c1)][0x0]),_0x3c39e3=a[_0x328703(0x382)][_0x328703(0x1c2)](_0x5bf351[_0x328703(0x2c1)][0x0]);for(let _0x3431af=_0x27c9a1[_0x328703(0x36b)]-0x1;_0x3431af>=0x0;_0x3431af--){const _0x17114b={'id':_0x328703(0x233),'params':{'unitId':_0x27c9a1[_0x3431af][_0x328703(0x36f)],..._0x27c9a1[_0x3431af]['undoState']}},_0x5c279f={'id':_0x328703(0x233),'params':{'unitId':_0x27c9a1[_0x3431af]['unitId'],..._0x27c9a1[_0x3431af]['redoState']}},_0x1f8f11=this[_0x328703(0x17d)][_0x328703(0x35d)](_0x39cc51,_0x17114b,!0x1),_0x447d6d=this[_0x328703(0x17d)][_0x328703(0x35d)](_0x3c39e3,_0x5c279f,!0x1);if(m['isTransformMutationFailure'](_0x1f8f11))throw _0x1f8f11[_0x328703(0x18d)];if(m['isTransformMutationFailure'](_0x447d6d))throw _0x447d6d[_0x328703(0x18d)];_0x44321f['unshift']({..._0x27c9a1[_0x3431af],'undoState':_0x1f8f11[_0x328703(0x24a)]['params'],'redoState':_0x447d6d['m2Prime']['params']}),_0x39cc51=_0x1f8f11[_0x328703(0x266)],_0x3c39e3=_0x447d6d['m1Prime'];}_0x39cc51=a[_0x328703(0x382)]['deepClone'](_0x5bf351[_0x328703(0x2c1)][0x0]),_0x3c39e3=a[_0x328703(0x382)][_0x328703(0x1c2)](_0x5bf351[_0x328703(0x2c1)][0x0]);for(let _0x48a1c5=_0x50800a[_0x328703(0x36b)]-0x1;_0x48a1c5>=0x0;_0x48a1c5--){const _0x466f52={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x50800a[_0x48a1c5][_0x328703(0x36f)],..._0x50800a[_0x48a1c5][_0x328703(0x167)]}},_0x5590dc={'id':_0x328703(0x233),'params':{'unitId':_0x50800a[_0x48a1c5]['unitId'],..._0x50800a[_0x48a1c5][_0x328703(0x19a)]}},_0x106f06=this[_0x328703(0x17d)][_0x328703(0x35d)](_0x39cc51,_0x466f52,!0x1),_0x1ac5e5=this[_0x328703(0x17d)][_0x328703(0x35d)](_0x3c39e3,_0x5590dc,!0x1);if(m['isTransformMutationFailure'](_0x106f06))throw _0x106f06[_0x328703(0x18d)];if(m[_0x328703(0x1f0)](_0x1ac5e5))throw _0x1ac5e5[_0x328703(0x18d)];_0x3a6119[_0x328703(0x2fc)]({..._0x50800a[_0x48a1c5],'undoState':_0x106f06[_0x328703(0x24a)]['params'],'redoState':_0x1ac5e5[_0x328703(0x24a)][_0x328703(0x258)]}),_0x39cc51=_0x106f06[_0x328703(0x266)],_0x3c39e3=_0x1ac5e5['m1Prime'];}this[_0x328703(0x1ed)][_0x328703(0x31e)](_0x235e4a,{'history':_0x44321f,'collaboration':_0x3a6119});}};J=Ft([le(0x0,a[_0x340a06(0x397)](a['Injector'])),le(0x1,m[_0x340a06(0x2ed)]),le(0x2,a[_0x340a06(0x397)](b[_0x340a06(0x16f)]))],J);var Yt=Object['getOwnPropertyDescriptor'],Wt=(_0x1169cc,_0x1c8231,_0x303a85,_0x23e5f3)=>{const _0xcaca8d=_0x340a06;for(var _0x4c340a=_0x23e5f3>0x1?void 0x0:_0x23e5f3?Yt(_0x1c8231,_0x303a85):_0x1c8231,_0x3adb87=_0x1169cc[_0xcaca8d(0x36b)]-0x1,_0x36c9e5;_0x3adb87>=0x0;_0x3adb87--)(_0x36c9e5=_0x1169cc[_0x3adb87])&&(_0x4c340a=_0x36c9e5(_0x4c340a)||_0x4c340a);return _0x4c340a;},Ne=(_0x2e678b,_0x27427a)=>(_0x28b16a,_0x1c1a81)=>_0x27427a(_0x28b16a,_0x1c1a81,_0x2e678b);let Z=class{constructor(_0x4b80e4,_0x3b8f9c){const _0x2e5dd8=_0x340a06;this[_0x2e5dd8(0x1f4)]=_0x4b80e4,this[_0x2e5dd8(0x17d)]=_0x3b8f9c;}[_0x340a06(0x198)](_0x55393c){const _0x4f89b9=_0x340a06;var _0x25beb2;const _0x468d31=this['_injector']['get'](Y[_0x4f89b9(0x22b)]),_0x6b0887=(_0x25beb2=_0x468d31['getDocRanges']())!=null?_0x25beb2:[];if(_0x6b0887[_0x4f89b9(0x36b)]===0x0)return;const _0x53fb05=_0x55393c[_0x4f89b9(0x30a)],_0x74110e=[{'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x53fb05,'actions':null,'textRanges':_0x6b0887}}],_0xb295b=this['_transformService'][_0x4f89b9(0x2a0)](_0x55393c,_0x74110e);if(!m[_0x4f89b9(0x17f)](_0xb295b))throw _0xb295b[_0x4f89b9(0x18d)];const _0x16ce92=_0xb295b[_0x4f89b9(0x24a)][0x0][_0x4f89b9(0x258)][_0x4f89b9(0x177)];Array[_0x4f89b9(0x1a5)](_0x16ce92)&&_0x16ce92[_0x4f89b9(0x36b)]&&_0x468d31[_0x4f89b9(0x2af)](_0x16ce92,{'unitId':_0x53fb05,'subUnitId':_0x53fb05},!0x1);}};Z=Wt([Ne(0x0,a[_0x340a06(0x397)](a[_0x340a06(0x320)])),Ne(0x1,m[_0x340a06(0x2ed)])],Z);var Vt=Object['getOwnPropertyDescriptor'],Xt=(_0x2adc70,_0x538ab9,_0x5d2bd4,_0x1022c2)=>{const _0x46530b=_0x340a06;for(var _0x521cf1=_0x1022c2>0x1?void 0x0:_0x1022c2?Vt(_0x538ab9,_0x5d2bd4):_0x538ab9,_0x256f09=_0x2adc70[_0x46530b(0x36b)]-0x1,_0x78d8a3;_0x256f09>=0x0;_0x256f09--)(_0x78d8a3=_0x2adc70[_0x256f09])&&(_0x521cf1=_0x78d8a3(_0x521cf1)||_0x521cf1);return _0x521cf1;},N=(_0x5913ac,_0x534cbc)=>(_0x589dea,_0x57f848)=>_0x534cbc(_0x589dea,_0x57f848,_0x5913ac);let Q=class extends a[_0x340a06(0x20a)]{constructor(_0x1c6f27,_0x5d32c2,_0x4a7e85,_0x4f1af6,_0x465655,_0x240539,_0x58c957,_0x1a85e2){const _0x52391f=_0x340a06;super(),h(this,'_status$',new d[(_0x52391f(0x1c8))](u['CollaborationStatus'][_0x52391f(0x218)])),(this['_docStateChangeManagerService']=_0x1c6f27,this[_0x52391f(0x2cb)]=_0x5d32c2,this[_0x52391f(0x231)]=_0x4a7e85,this[_0x52391f(0x1a8)]=_0x4f1af6,this[_0x52391f(0x394)]=_0x465655,this[_0x52391f(0x2ad)]=_0x240539,this['_messageService']=_0x58c957,this[_0x52391f(0x2e7)]=_0x1a85e2,this[_0x52391f(0x19f)]());}[_0x340a06(0x19f)](){const _0x3286dc=_0x340a06;this[_0x3286dc(0x1b4)](this[_0x3286dc(0x2cb)]['entityInit$']['subscribe'](_0x382ed3=>{const _0x15d58e=_0x3286dc,_0x1dc6eb=this[_0x15d58e(0x1ed)][_0x15d58e(0x206)][_0x15d58e(0x17b)](_0x190357=>{const _0x51bca0=_0x15d58e;if(_0x190357==null)return;const {unitId:_0x47d86a,redoState:_0x2199fa,commandId:_0x4fa9ed}=_0x190357;if(_0x47d86a!==_0x382ed3[_0x51bca0(0x30a)])return;const _0xaf53cc={'id':_0x4fa9ed,'type':a[_0x51bca0(0x3a1)][_0x51bca0(0x1bd)],'params':{'unitId':_0x47d86a,'actions':_0x2199fa[_0x51bca0(0x2e5)],'textRanges':null}};_0x382ed3[_0x51bca0(0x1ff)](_0xaf53cc);});if(_0x382ed3[_0x15d58e(0x1b4)](_0x1dc6eb),_0x382ed3 instanceof u[_0x15d58e(0x31a)]){const _0x4a8e0a={'onTransformIME':_0x2e1a76=>this[_0x15d58e(0x231)][_0x15d58e(0x2d5)](_0x2e1a76),'onTransformState':_0x236454=>this[_0x15d58e(0x1a8)][_0x15d58e(0x35a)](_0x236454),'onTransformSelections':_0x6f8bc5=>this[_0x15d58e(0x394)][_0x15d58e(0x198)](_0x6f8bc5),'onSyncEditingCollabCursor':_0x4f987f=>this[_0x15d58e(0x2ad)][_0x15d58e(0x384)](_0x4f987f),'onTransformRemoteChangesetByIMECache':_0x1fe905=>this[_0x15d58e(0x231)][_0x15d58e(0x377)](_0x1fe905),'onTransformRemoteChangesetByStateCache':_0x56266c=>this[_0x15d58e(0x1a8)][_0x15d58e(0x377)](_0x56266c)};_0x382ed3[_0x15d58e(0x1a6)](_0x4a8e0a);}}));}};Q=Xt([N(0x0,a['Inject'](b[_0x340a06(0x16f)])),N(0x1,a[_0x340a06(0x397)](u['CollaborationController'])),N(0x2,a[_0x340a06(0x397)](z)),N(0x3,a['Inject'](J)),N(0x4,a[_0x340a06(0x397)](Z)),N(0x5,a[_0x340a06(0x397)](Ce)),N(0x6,T[_0x340a06(0x3a2)]),N(0x7,a[_0x340a06(0x397)](a['LocaleService']))],Q);var Gt=Object[_0x340a06(0x178)],Kt=(_0x1d1e82,_0x10f470,_0x1b0943,_0x39dac1)=>{for(var _0x28e5e9=_0x39dac1>0x1?void 0x0:_0x39dac1?Gt(_0x10f470,_0x1b0943):_0x10f470,_0x18d9ee=_0x1d1e82['length']-0x1,_0x3b030c;_0x18d9ee>=0x0;_0x18d9ee--)(_0x3b030c=_0x1d1e82[_0x18d9ee])&&(_0x28e5e9=_0x3b030c(_0x28e5e9)||_0x28e5e9);return _0x28e5e9;},_e=(_0x38b4f3,_0x5e6958)=>(_0x1a7ea0,_0x462786)=>_0x5e6958(_0x1a7ea0,_0x462786,_0x38b4f3);let ge=class extends a[_0x340a06(0x20a)]{constructor(_0x4a2379,_0x19456b,_0xa57ccc){const _0x3f6605=_0x340a06;super(),h(this,'_cachedData',new Map()),h(this,_0x3f6605(0x338),new Map()),h(this,_0x3f6605(0x303),!0x1),(this[_0x3f6605(0x39e)]=_0x4a2379,this[_0x3f6605(0x2bb)]=_0x19456b,this[_0x3f6605(0x254)]=_0xa57ccc);}['disableLocalCache'](){const _0x48e53d=_0x340a06;this[_0x48e53d(0x303)]=!0x0;}[_0x340a06(0x262)](){const _0x518db6=_0x340a06;this[_0x518db6(0x303)]=!0x1;}get[_0x340a06(0x364)](){const _0x2f4590=_0x340a06;return this[_0x2f4590(0x338)];}[_0x340a06(0x265)](){const _0x2ef7cd=_0x340a06;this[_0x2ef7cd(0x259)]()[_0x2ef7cd(0x360)](()=>super['dispose']());}async[_0x340a06(0x2a3)](_0x20db20){const _0x18b1b6=_0x340a06;return this[_0x18b1b6(0x303)]?null:this[_0x18b1b6(0x2bb)][_0x18b1b6(0x27e)](u[_0x18b1b6(0x339)](_0x20db20));}async['saveOfflineData'](_0x3f7295,_0x4e3f6e){const _0x2ef5e4=_0x340a06;return!!this[_0x2ef5e4(0x2bb)]['setItem'](_0x3f7295,_0x4e3f6e);}[_0x340a06(0x330)](_0x449448,_0x296b09,_0x5499c2,_0x3335ce){const _0x4f0e25=_0x340a06,_0x3e2676=this[_0x4f0e25(0x254)][_0x4f0e25(0x38c)](_0x449448);this[_0x4f0e25(0x299)]['set'](_0x449448,{'unitID':_0x449448,'type':_0x296b09,'awaitingChangeset':_0x5499c2,'mutations':_0x3335ce,'rev':_0x3e2676}),this[_0x4f0e25(0x338)][_0x4f0e25(0x2c0)](_0x449448)||this[_0x4f0e25(0x31f)](_0x449448);}['_scheduleSaving'](_0x47ac7c){const _0x3822b0=_0x340a06,_0x5a32b2=this['_getSaveTimeout']();_0x5a32b2===0x0?this[_0x3822b0(0x18b)](_0x47ac7c):this[_0x3822b0(0x338)][_0x3822b0(0x2b0)](_0x47ac7c,setTimeout(()=>this['_saveCache'](_0x47ac7c),_0x5a32b2));}[_0x340a06(0x143)](){const _0x193b7f=_0x340a06;var _0x378cba;return(_0x378cba=this[_0x193b7f(0x39e)][_0x193b7f(0x325)](u[_0x193b7f(0x1e7)]))!=null?_0x378cba:u[_0x193b7f(0x2f7)];}[_0x340a06(0x18b)](_0x545f9a){const _0x6d8f75=_0x340a06,_0x12ef20=this[_0x6d8f75(0x338)][_0x6d8f75(0x302)](_0x545f9a);return _0x12ef20!==void 0x0&&window[_0x6d8f75(0x20f)](_0x12ef20),this['_localStorageService'][_0x6d8f75(0x29f)](u['getLocalCacheKey'](_0x545f9a),this[_0x6d8f75(0x299)][_0x6d8f75(0x302)](_0x545f9a))['then'](()=>this[_0x6d8f75(0x338)]['delete'](_0x545f9a));}async['exhaustSavingTask'](){const _0xb30d07=_0x340a06,_0x465c64=[];this[_0xb30d07(0x338)][_0xb30d07(0x31d)]((_0x2394bc,_0x1f8894)=>{const _0x126a08=_0xb30d07;window[_0x126a08(0x20f)](_0x2394bc),_0x465c64[_0x126a08(0x244)](this['_saveCache'](_0x1f8894)['then'](()=>{const _0x582aeb=_0x126a08;this['_saveTaskMap'][_0x582aeb(0x142)](_0x1f8894);}));}),await Promise[_0xb30d07(0x2a8)](_0x465c64);}};ge=Kt([_e(0x0,a['IConfigService']),_e(0x1,a[_0x340a06(0x2d2)]),_e(0x2,a['Inject'](m[_0x340a06(0x370)]))],ge);class je extends a[_0x340a06(0x1ba)]{constructor(){const _0x217f20=_0x340a06;super(),h(this,'urlChange$'),this[_0x217f20(0x356)]=d[_0x217f20(0x34b)](window,_0x217f20(0x3a5))[_0x217f20(0x20b)](d[_0x217f20(0x33f)](this[_0x217f20(0x15d)]),d[_0x217f20(0x2bf)](0x1),d[_0x217f20(0x388)](void 0x0));}['setParam'](_0x3b52c6,_0x513e70,_0xb39ade=!0x1){const _0x430c03=_0x340a06,_0x442e08=new URL(window[_0x430c03(0x193)][_0x430c03(0x228)]);_0x442e08[_0x430c03(0x347)][_0x430c03(0x2b0)](_0x3b52c6,_0x513e70),_0xb39ade?window[_0x430c03(0x270)]['replaceState']('','',_0x442e08[_0x430c03(0x1f5)]()):window[_0x430c03(0x270)][_0x430c03(0x267)]('','',_0x442e08[_0x430c03(0x1f5)]());}[_0x340a06(0x2fa)](_0x28dbc0,_0x34ac9b=!0x1){const _0x4ee357=_0x340a06,_0x1d2516=new URL(window[_0x4ee357(0x193)][_0x4ee357(0x228)]);_0x1d2516['searchParams']['delete'](_0x28dbc0),_0x34ac9b?window[_0x4ee357(0x270)][_0x4ee357(0x2a6)]('','',_0x1d2516[_0x4ee357(0x1f5)]()):window[_0x4ee357(0x270)]['pushState']('','',_0x1d2516[_0x4ee357(0x1f5)]());}['getParam'](_0x35d22e){const _0x184494=_0x340a06;var _0x5d6366;return(_0x5d6366=new URL(window['location']['href'])[_0x184494(0x347)]['get'](_0x35d22e))!=null?_0x5d6366:void 0x0;}}var qt=Object['defineProperty'],zt=Object[_0x340a06(0x178)],Jt=(_0x4f2cba,_0x2c9424,_0x2363cc)=>_0x2c9424 in _0x4f2cba?qt(_0x4f2cba,_0x2c9424,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x2363cc}):_0x4f2cba[_0x2c9424]=_0x2363cc,Zt=(_0x5b8e8b,_0xaf05bb,_0x10862c,_0x1c610e)=>{const _0x511209=_0x340a06;for(var _0x87a07b=_0x1c610e>0x1?void 0x0:_0x1c610e?zt(_0xaf05bb,_0x10862c):_0xaf05bb,_0x4180d7=_0x5b8e8b[_0x511209(0x36b)]-0x1,_0x7463e7;_0x4180d7>=0x0;_0x4180d7--)(_0x7463e7=_0x5b8e8b[_0x4180d7])&&(_0x87a07b=_0x7463e7(_0x87a07b)||_0x87a07b);return _0x87a07b;},he=(_0x4fb638,_0x172005)=>(_0xc07f51,_0x399446)=>_0x172005(_0xc07f51,_0x399446,_0x4fb638),Qt=(_0x384aff,_0x228a2b,_0x53d5d5)=>Jt(_0x384aff,_0x228a2b+'',_0x53d5d5);const es=_0x340a06(0x280);exports['UniverCollaborationClientUIPlugin']=class extends a[_0x340a06(0x21b)]{constructor(_0x389c0e=Ue,_0x141024,_0x2aabdd,_0x20fb48){const _0x49663f=_0x340a06;super(),this[_0x49663f(0x346)]=_0x389c0e,this[_0x49663f(0x36e)]=_0x141024,this['_injector']=_0x2aabdd,this[_0x49663f(0x39e)]=_0x20fb48;const {..._0x47c6db}=a[_0x49663f(0x3cc)]({},Ue,this[_0x49663f(0x346)]);this[_0x49663f(0x39e)][_0x49663f(0x21e)]($t,_0x47c6db);}[_0x340a06(0x376)](){const _0x20d8d9=_0x340a06;this[_0x20d8d9(0x3c9)](),this[_0x20d8d9(0x2e3)]();}[_0x340a06(0x2b4)](){this['_registerRenderDependencies']();}[_0x340a06(0x3c9)](){const _0x5f3101=_0x340a06;var _0xf02ccb;const _0x170a2b=[[me],[Z],[z],[J],[Ce],[be,{'useClass':je}],[G[_0x5f3101(0x1f9)],{'useClass':G['WebSocketService']}],[u[_0x5f3101(0x358)],{'useClass':ge}],[exports[_0x5f3101(0x298)]],[Q],[q],[x],[de],[exports[_0x5f3101(0x28b)]]];a[_0x5f3101(0x32c)](this[_0x5f3101(0x1f4)],a['mergeOverrideWithDependencies'](_0x170a2b,(_0xf02ccb=this[_0x5f3101(0x346)])==null?void 0x0:_0xf02ccb['override']));}[_0x340a06(0x2d4)](){const _0x1d54b7=_0x340a06;this['disposeWithMe'](this[_0x1d54b7(0x36e)][_0x1d54b7(0x1d5)](a['UniverInstanceType'][_0x1d54b7(0x203)],[Ie])),this[_0x1d54b7(0x1b4)](this['_renderManagerService'][_0x1d54b7(0x1d5)](a[_0x1d54b7(0x2d0)][_0x1d54b7(0x181)],[ve]));}['_initDependencies'](){const _0x31e8f7=_0x340a06;a['touchDependencies'](this[_0x31e8f7(0x1f4)],[[x],[exports[_0x31e8f7(0x298)]],[Q],[q],[exports[_0x31e8f7(0x28b)]]]);}},Qt(exports[_0x340a06(0x166)],_0x340a06(0x1cc),es),exports[_0x340a06(0x166)]=Zt([a['DependentOn'](u[_0x340a06(0x273)]),he(0x1,p[_0x340a06(0x224)]),he(0x2,a['Inject'](a[_0x340a06(0x320)])),he(0x3,a[_0x340a06(0x237)])],exports[_0x340a06(0x166)]);function _0x18a4(_0x3a33de,_0x58b2bd){const _0x1d2d12=_0x1d2d();return _0x18a4=function(_0x18a4fc,_0x52429b){_0x18a4fc=_0x18a4fc-0x140;let _0x4c8005=_0x1d2d12[_0x18a4fc];return _0x4c8005;},_0x18a4(_0x3a33de,_0x58b2bd);}var ts=Object[_0x340a06(0x178)],ss=(_0x3402a9,_0x8ec6ac,_0x25dcc2,_0xd90aef)=>{for(var _0x1334cf=_0xd90aef>0x1?void 0x0:_0xd90aef?ts(_0x8ec6ac,_0x25dcc2):_0x8ec6ac,_0x20c32c=_0x3402a9['length']-0x1,_0x36eb2a;_0x20c32c>=0x0;_0x20c32c--)(_0x36eb2a=_0x3402a9[_0x20c32c])&&(_0x1334cf=_0x36eb2a(_0x1334cf)||_0x1334cf);return _0x1334cf;},F=(_0x26b598,_0x32292a)=>(_0x2515c9,_0x53dc0d)=>_0x32292a(_0x2515c9,_0x53dc0d,_0x26b598);exports[_0x340a06(0x389)]=class extends u[_0x340a06(0x151)]{constructor(_0x5c1af5,_0x4928e8,_0x162eab,_0x5ee4f7,_0x4f2c77){super(_0x5c1af5,_0x4928e8,_0x162eab,_0x5ee4f7,_0x4f2c77);}async[_0x340a06(0x2c3)](_0x4efda3){const _0xe16b9d=_0x340a06,_0x14a852=await this[_0xe16b9d(0x2a9)](),_0x554fe2=this[_0xe16b9d(0x271)](_0x4efda3,_0x14a852);return this[_0xe16b9d(0x2d8)](_0x554fe2);}[_0x340a06(0x271)](_0x3960d4,_0x5df204){const _0x5510ca=_0x340a06,_0x52dc6f=typeof window>'u'?new URL(_0x3960d4):new URL(_0x3960d4,window[_0x5510ca(0x193)][_0x5510ca(0x2f2)]);_0x52dc6f[_0x5510ca(0x347)]['set'](_0x5510ca(0x29b),_0x5df204);const _0x37dde1=typeof window>'u'?new URLSearchParams():new URLSearchParams(window[_0x5510ca(0x193)][_0x5510ca(0x38f)]);return _0x37dde1['get'](_0x5510ca(0x21c))&&_0x52dc6f[_0x5510ca(0x347)][_0x5510ca(0x2b0)]('runId',_0x37dde1[_0x5510ca(0x302)](_0x5510ca(0x21c))),_0x52dc6f['toString']();}async[_0x340a06(0x2a9)](){const _0x5daba8=_0x340a06;var _0x48795f,_0x1874c2,_0x3ec4e4;const _0x369742=this[_0x5daba8(0x39e)][_0x5daba8(0x325)](u[_0x5daba8(0x1b5)]),_0x252f59=(_0x48795f=_0x369742==null?void 0x0:_0x369742[_0x5daba8(0x37d)])!=null?_0x48795f:u[_0x5daba8(0x1aa)];return(_0x3ec4e4=(_0x1874c2=(await this['_httpService']['get'](_0x252f59,{'headers':{'Content-Type':_0x5daba8(0x25e)}}))[_0x5daba8(0x391)])==null?void 0x0:_0x1874c2['ticket'])!=null?_0x3ec4e4:'';}},exports[_0x340a06(0x389)]=ss([F(0x0,a[_0x340a06(0x397)](a[_0x340a06(0x320)])),F(0x1,a[_0x340a06(0x397)](G['HTTPService'])),F(0x2,a['IConfigService']),F(0x3,a[_0x340a06(0x2a7)]),F(0x4,m[_0x340a06(0x3bb)])],exports[_0x340a06(0x389)]);const Me=0x7530,Le=_0x340a06(0x3af);class is extends a[_0x340a06(0x20a)]{constructor(){const _0x4afae0=_0x340a06;super(),h(this,_0x4afae0(0x30c),a['generateRandomId']()),h(this,_0x4afae0(0x16a),new Set()),h(this,_0x4afae0(0x17e),new Map()),h(this,'_heartbeatTimer',null),h(this,_0x4afae0(0x393),new Map()),h(this,'_unitStatus',new Map()),this[_0x4afae0(0x1e2)]();}['dispose'](){const _0x819c33=_0x340a06;super['dispose'](),this[_0x819c33(0x393)][_0x819c33(0x31d)]((_0x3e1888,_0x21a8f7)=>this[_0x819c33(0x3b7)](_0x21a8f7)),this[_0x819c33(0x335)]&&window['clearInterval'](this[_0x819c33(0x335)]);}[_0x340a06(0x3ba)](_0x9147c7){const _0x83633b=_0x340a06;return this[_0x83633b(0x1e1)](_0x9147c7)['pipe'](d['distinctUntilChanged']());}[_0x340a06(0x17c)](_0x466c95){const _0x3055c3=_0x340a06;this[_0x3055c3(0x16a)][_0x3055c3(0x191)]===0x0&&this['_scheduleHeartbeat'](),this[_0x3055c3(0x16a)][_0x3055c3(0x315)](_0x466c95),this[_0x3055c3(0x2c5)]({'type':0x0,'memberID':this['_id'],'unitIDs':[_0x466c95],'isForwarded':!0x1});}['disposeUnit'](_0x4d74c8){const _0x1e337b=_0x340a06;this[_0x1e337b(0x16a)][_0x1e337b(0x142)](_0x4d74c8),this['_selfUnitIDs']['size']===0x0&&this[_0x1e337b(0x335)]&&window[_0x1e337b(0x263)](this[_0x1e337b(0x335)]);}[_0x340a06(0x1e2)](){const _0x2c4034=_0x340a06;this[_0x2c4034(0x1b4)](a[_0x2c4034(0x1ec)](d['fromEvent'](window,_0x2c4034(0x1da))[_0x2c4034(0x17b)](_0x575b35=>{const _0x128ead=_0x2c4034;if(_0x575b35['key']!==Le||!_0x575b35[_0x128ead(0x3cb)])return;const _0xefa134=JSON[_0x128ead(0x2dd)](_0x575b35[_0x128ead(0x3cb)]);this[_0x128ead(0x365)](_0xefa134);}))),window['addEventListener'](_0x2c4034(0x1de),()=>this[_0x2c4034(0x2c5)]({'type':0x1,'memberID':this[_0x2c4034(0x30c)],'unitIDs':Array[_0x2c4034(0x3ad)](this[_0x2c4034(0x16a)])}));}['_handleEvent'](_0x2372cb){const _0x399e28=_0x340a06;switch(_0x2372cb[_0x399e28(0x1b0)]){case 0x0:this[_0x399e28(0x322)](_0x2372cb);break;case 0x1:this[_0x399e28(0x385)](_0x2372cb);break;case 0x2:this['_handleHeartbeatEvent'](_0x2372cb);break;}}[_0x340a06(0x322)](_0x35d633){const _0x78d3e5=_0x340a06,{unitIDs:_0x4026d8,memberID:_0x423e0f,isForwarded:_0xd60b24}=_0x35d633;_0x4026d8['forEach'](_0x1acff6=>{const _0x55d7fe=_0x18a4;if(!_0xd60b24&&this[_0x55d7fe(0x17e)]['has'](_0x1acff6)&&this[_0x55d7fe(0x1e1)](_0x1acff6)[_0x55d7fe(0x1e4)](u[_0x55d7fe(0x2d9)][_0x55d7fe(0x1c3)]),!this[_0x55d7fe(0x17e)]['has'](_0x1acff6)||!this[_0x55d7fe(0x17e)][_0x55d7fe(0x302)](_0x1acff6)[_0x55d7fe(0x2c0)](_0x423e0f)){const _0x5824b5=this['_unitOnClients']['get'](_0x1acff6)||new Set();_0x5824b5[_0x55d7fe(0x315)](_0x423e0f),this['_unitOnClients'][_0x55d7fe(0x2b0)](_0x1acff6,_0x5824b5),this[_0x55d7fe(0x24f)](_0x423e0f);}}),_0xd60b24||this[_0x78d3e5(0x2c5)]({'type':0x0,'memberID':this[_0x78d3e5(0x30c)],'unitIDs':[...this[_0x78d3e5(0x16a)]],'isForwarded':!0x0});}[_0x340a06(0x24f)](_0x77da86){const _0x55688b=_0x340a06;this[_0x55688b(0x3b7)](_0x77da86);const _0x2cf890=window['setTimeout'](()=>{const _0x33c6bc=_0x55688b;this[_0x33c6bc(0x17e)][_0x33c6bc(0x31d)](_0x102f0b=>{const _0x5eab5d=_0x33c6bc;_0x102f0b[_0x5eab5d(0x142)](_0x77da86);});},Me*0x2);this[_0x55688b(0x393)][_0x55688b(0x2b0)](_0x77da86,_0x2cf890);}[_0x340a06(0x3b7)](_0x1f6e90){const _0x54fdb2=_0x340a06;if(this[_0x54fdb2(0x393)][_0x54fdb2(0x2c0)](_0x1f6e90)){const _0x28c73c=this[_0x54fdb2(0x393)][_0x54fdb2(0x302)](_0x1f6e90);_0x28c73c&&window[_0x54fdb2(0x20f)](_0x28c73c),this['_clearOtherTimers'][_0x54fdb2(0x2b0)](_0x1f6e90,null);}}[_0x340a06(0x385)](_0x261558){const _0x5ad373=_0x340a06,{memberID:_0x44f959,unitIDs:_0x2728c6}=_0x261558;_0x2728c6[_0x5ad373(0x31d)](_0x3a5bb7=>{const _0x4c6f8=_0x5ad373;var _0x163cf7;const _0x4a703f=this[_0x4c6f8(0x17e)]['get'](_0x3a5bb7);_0x4a703f&&(_0x4a703f[_0x4c6f8(0x142)](_0x44f959),(_0x163cf7=this[_0x4c6f8(0x1e1)](_0x3a5bb7))==null||_0x163cf7[_0x4c6f8(0x1e4)](_0x4a703f[_0x4c6f8(0x191)]===0x0?u[_0x4c6f8(0x2d9)][_0x4c6f8(0x2bc)]:u[_0x4c6f8(0x2d9)][_0x4c6f8(0x1c3)]));}),this[_0x5ad373(0x3b7)](_0x44f959);}[_0x340a06(0x355)](_0x3e29f6){const _0x17c3d7=_0x340a06;this['_scheduleClearOtherTimer'](_0x3e29f6[_0x17c3d7(0x35c)]);}['_send'](_0x2cf51e){const _0x522d89=_0x340a06;localStorage[_0x522d89(0x29f)](Le,JSON[_0x522d89(0x1c5)](_0x2cf51e));}['_scheduleHeartbeat'](){const _0x4f000b=_0x340a06;this[_0x4f000b(0x335)]=window['setInterval'](()=>{const _0x1cc220=_0x4f000b;this[_0x1cc220(0x2c5)]({'type':0x2,'memberID':this[_0x1cc220(0x30c)]});},Me);}['_ensureSubject'](_0x3b0370){const _0x47467b=_0x340a06;return this['_unitStatus'][_0x47467b(0x2c0)](_0x3b0370)||this[_0x47467b(0x2c6)][_0x47467b(0x2b0)](_0x3b0370,new d[(_0x47467b(0x1c8))](u[_0x47467b(0x2d9)][_0x47467b(0x2bc)])),this[_0x47467b(0x2c6)]['get'](_0x3b0370);}}var Be=(_0xf4df12=>(_0xf4df12[_0xf4df12[_0x340a06(0x32e)]=0x0]=_0x340a06(0x32e),_0xf4df12[_0xf4df12['OK']=0x1]='OK',_0xf4df12[_0xf4df12[_0x340a06(0x32f)]=0x2]=_0x340a06(0x32f),_0xf4df12[_0xf4df12[_0x340a06(0x310)]=0x3]=_0x340a06(0x310),_0xf4df12[_0xf4df12[_0x340a06(0x2d6)]=0x4]=_0x340a06(0x2d6),_0xf4df12[_0xf4df12[_0x340a06(0x2fb)]=0x5]=_0x340a06(0x2fb),_0xf4df12[_0xf4df12['ALREADY_EXISTS']=0x6]='ALREADY_EXISTS',_0xf4df12[_0xf4df12[_0x340a06(0x336)]=0x7]=_0x340a06(0x336),_0xf4df12[_0xf4df12['TOO_MANY_REQUESTS']=0x8]=_0x340a06(0x277),_0xf4df12[_0xf4df12['COMPLETION_FINISHED']=0x9]='COMPLETION_FINISHED',_0xf4df12[_0xf4df12[_0x340a06(0x283)]=0xa]=_0x340a06(0x283),_0xf4df12[_0xf4df12[_0x340a06(0x314)]=0x1389]=_0x340a06(0x314),_0xf4df12[_0xf4df12[_0x340a06(0x25f)]=0x1771]=_0x340a06(0x25f),_0xf4df12[_0xf4df12[_0x340a06(0x3b1)]=0x1772]='SNAPSHOT_HAS_BEEN_REMOVED',_0xf4df12[_0xf4df12['ENSURE_SNAPSHOT_EXECUTION']=0x1773]=_0x340a06(0x2ec),_0xf4df12[_0xf4df12['APPLY_REJECT']=0x1b59]=_0x340a06(0x250),_0xf4df12[_0xf4df12[_0x340a06(0x386)]=0x1b5a]=_0x340a06(0x386),_0xf4df12[_0xf4df12['APPLY_REVISION_CONFILICT']=0x1b5b]=_0x340a06(0x373),_0xf4df12[_0xf4df12[_0x340a06(0x168)]=0x1b5c]='APPLY_PERMISSION_DENIED',_0xf4df12[_0xf4df12[_0x340a06(0x1cd)]=0x1b5d]=_0x340a06(0x1cd),_0xf4df12[_0xf4df12[_0x340a06(0x350)]=0x1f41]=_0x340a06(0x350),_0xf4df12[_0xf4df12[_0x340a06(0x230)]=0x2329]='LICENSE_MAX_UNITS_EXCEEDED',_0xf4df12[_0xf4df12['LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED']=0x232a]=_0x340a06(0x1b9),_0xf4df12[_0xf4df12[_0x340a06(0x305)]=0x232b]=_0x340a06(0x305),_0xf4df12[_0xf4df12[_0x340a06(0x37b)]=0x232c]=_0x340a06(0x37b),_0xf4df12[_0xf4df12[_0x340a06(0x31c)]=0x232d]=_0x340a06(0x31c),_0xf4df12[_0xf4df12[_0x340a06(0x2b2)]=0x2711]=_0x340a06(0x2b2),_0xf4df12[_0xf4df12[_0x340a06(0x1df)]=0x2712]=_0x340a06(0x1df),_0xf4df12[_0xf4df12['YUUMI_RATE_OVER_LIMIT']=0x2713]=_0x340a06(0x286),_0xf4df12[_0xf4df12[_0x340a06(0x1ae)]=0x2714]=_0x340a06(0x1ae),_0xf4df12[_0xf4df12[_0x340a06(0x334)]=0x271a]='YUUMI_NO_CUBOID_FOR_QUESTION',_0xf4df12[_0xf4df12[_0x340a06(0x2ca)]=0x271b]=_0x340a06(0x2ca),_0xf4df12[_0xf4df12[_0x340a06(0x29c)]=0x271c]='YUUMI_TABLE_NOT_FOUND_IN_UNIT',_0xf4df12[_0xf4df12[_0x340a06(0x2df)]=0x271d]=_0x340a06(0x2df),_0xf4df12[_0xf4df12[_0x340a06(0x22f)]=0x271e]='YUUMI_PROMPT_MAX_TOKENS_EXCEEDED',_0xf4df12[_0xf4df12['YUUMI_AI_RUN_FAILED']=0x271f]='YUUMI_AI_RUN_FAILED',_0xf4df12[_0xf4df12['PY_RUNTIME_SCRIPT_ERROR']=0x2af9]=_0x340a06(0x276),_0xf4df12[_0xf4df12[_0x340a06(0x28e)]=0x2ee1]=_0x340a06(0x28e),_0xf4df12[_0xf4df12[_0x340a06(0x215)]=0x2ee2]='INVALID_INVITE_CODE',_0xf4df12[_0xf4df12[_0x340a06(0x2f5)]=0x2ee3]=_0x340a06(0x2f5),_0xf4df12[_0xf4df12[_0x340a06(0x211)]=0x2ee4]=_0x340a06(0x211),_0xf4df12[_0xf4df12[_0x340a06(0x2e4)]=0x2ee5]=_0x340a06(0x2e4),_0xf4df12[_0xf4df12[_0x340a06(0x14c)]=0x32c9]=_0x340a06(0x14c),_0xf4df12[_0xf4df12[_0x340a06(0x381)]=0x32ca]=_0x340a06(0x381),_0xf4df12[_0xf4df12['EMAIL_HAS_BEEN_BOUND']=0x32cb]=_0x340a06(0x1c7),_0xf4df12[_0xf4df12[_0x340a06(0x212)]=-0x1]=_0x340a06(0x212),_0xf4df12))(Be||{}),ns=Object[_0x340a06(0x178)],rs=(_0x3d453e,_0x462f82,_0x4ccc62,_0x19dc35)=>{const _0x437007=_0x340a06;for(var _0x478afd=_0x19dc35>0x1?void 0x0:_0x19dc35?ns(_0x462f82,_0x4ccc62):_0x462f82,_0x3d3a52=_0x3d453e[_0x437007(0x36b)]-0x1,_0x56feca;_0x3d3a52>=0x0;_0x3d3a52--)(_0x56feca=_0x3d453e[_0x3d3a52])&&(_0x478afd=_0x56feca(_0x478afd)||_0x478afd);return _0x478afd;},ue=(_0x3646a0,_0x5927a7)=>(_0x190c1a,_0x4ba231)=>_0x5927a7(_0x190c1a,_0x4ba231,_0x3646a0);exports['RemoteUniscriptService']=class extends a[_0x340a06(0x20a)]{constructor(_0x157808,_0x4e4895,_0x6eee93){const _0x389175=_0x340a06;super(),this[_0x389175(0x21a)]=_0x157808,this['_httpService']=_0x4e4895,this[_0x389175(0x39e)]=_0x6eee93;}async[_0x340a06(0x328)](_0x5e3345,_0x580769,_0x55f093,..._0x1b3f13){const _0xb94145=_0x340a06;var _0x4f1741,_0x2b81d0,_0x27bc4b,_0x3df5e5;const _0x57e69f=this['_instanceService'][_0xb94145(0x16d)]();if(!_0x57e69f)throw new Error(_0xb94145(0x261));const _0x42f13a=((_0x4f1741=this['_configService']['getConfig'](u['REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY']))!=null?_0x4f1741:u[_0xb94145(0x294)])+'/'+_0x5e3345+_0xb94145(0x15e)+_0x580769,_0x204b34=new URL(window[_0xb94145(0x193)][_0xb94145(0x228)]),_0xc79c33={'scriptId':_0x5e3345,'runId':(_0x2b81d0=_0x204b34[_0xb94145(0x347)][_0xb94145(0x302)]('runId'))!=null?_0x2b81d0:'','function':_0x580769,'unitId':_0x57e69f[_0xb94145(0x2e9)](),'argsOfFunction':JSON[_0xb94145(0x1c5)](_0x1b3f13),'invokeId':(_0x27bc4b=_0x55f093['invokeId'])!=null?_0x27bc4b:'','executionId':(_0x3df5e5=_0x55f093[_0xb94145(0x2ba)])!=null?_0x3df5e5:''};try{const _0x3275bf=await this[_0xb94145(0x145)]['post'](_0x42f13a,{'body':_0xc79c33});return _0x3275bf[_0xb94145(0x391)][_0xb94145(0x18d)]&&_0x3275bf[_0xb94145(0x391)][_0xb94145(0x18d)][_0xb94145(0x2cf)]!==Be['OK']?_0xb94145(0x150):_0x3275bf[_0xb94145(0x391)][_0xb94145(0x3ab)];}catch{return'Failed';}}},exports[_0x340a06(0x25c)]=rs([ue(0x0,a[_0x340a06(0x333)]),ue(0x1,a['Inject'](G[_0x340a06(0x1ef)])),ue(0x2,a[_0x340a06(0x237)])],exports[_0x340a06(0x25c)]),exports[_0x340a06(0x304)]=xe,exports[_0x340a06(0x3c1)]=be,exports['SheetCollabCursorShape']=Ae,exports[_0x340a06(0x274)]=is,exports[_0x340a06(0x345)]=je;
1
+ 'use strict';const _0xbd72b5=_0x4dae;(function(_0x18bc9d,_0x1aff82){const _0x3a4475=_0x4dae,_0x901ec2=_0x18bc9d();while(!![]){try{const _0x38f962=-parseInt(_0x3a4475(0x246))/0x1+parseInt(_0x3a4475(0x341))/0x2+parseInt(_0x3a4475(0x387))/0x3*(parseInt(_0x3a4475(0x2be))/0x4)+parseInt(_0x3a4475(0x3ba))/0x5*(parseInt(_0x3a4475(0x21b))/0x6)+parseInt(_0x3a4475(0x302))/0x7+parseInt(_0x3a4475(0x349))/0x8*(parseInt(_0x3a4475(0x3d2))/0x9)+parseInt(_0x3a4475(0x334))/0xa*(-parseInt(_0x3a4475(0x19e))/0xb);if(_0x38f962===_0x1aff82)break;else _0x901ec2['push'](_0x901ec2['shift']());}catch(_0x36bf3b){_0x901ec2['push'](_0x901ec2['shift']());}}}(_0x3f5d,0xbc6bb));var Ve=Object[_0xbd72b5(0x377)],Xe=(_0x42c5a7,_0x2dd4f6,_0x296cc3)=>_0x2dd4f6 in _0x42c5a7?Ve(_0x42c5a7,_0x2dd4f6,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x296cc3}):_0x42c5a7[_0x2dd4f6]=_0x296cc3,h=(_0x40c544,_0x3a363e,_0x4857f4)=>Xe(_0x40c544,typeof _0x3a363e!=_0xbd72b5(0x24d)?_0x3a363e+'':_0x3a363e,_0x4857f4);Object['defineProperty'](exports,Symbol[_0xbd72b5(0x322)],{'value':_0xbd72b5(0x2ca)});const u=require(_0xbd72b5(0x1a0)),a=require(_0xbd72b5(0x1b5)),p=require(_0xbd72b5(0x331)),G=require('@univerjs/network'),b=require('@univerjs/docs-ui'),Ge=require(_0xbd72b5(0x3f3)),d=require(_0xbd72b5(0x1e8)),Y=require('@univerjs/docs'),m=require('@univerjs-pro/collaboration'),Ee=require(_0xbd72b5(0x18e)),g=require('@univerjs/sheets'),$=require(_0xbd72b5(0x332)),X=require(_0xbd72b5(0x339)),P=require(_0xbd72b5(0x2aa)),T=require(_0xbd72b5(0x3ce)),D=require('@univerjs/design'),M=require(_0xbd72b5(0x1d4)),Ke=require('@univerjs/rpc');var qe=Object[_0xbd72b5(0x402)],ze=(_0x24c695,_0x17f63d,_0x2863f0,_0x23da91)=>{const _0x4f47ce=_0xbd72b5;for(var _0x51e3d2=_0x23da91>0x1?void 0x0:_0x23da91?qe(_0x17f63d,_0x2863f0):_0x17f63d,_0x502dde=_0x24c695[_0x4f47ce(0x1cf)]-0x1,_0xda8d79;_0x502dde>=0x0;_0x502dde--)(_0xda8d79=_0x24c695[_0x502dde])&&(_0x51e3d2=_0xda8d79(_0x51e3d2)||_0x51e3d2);return _0x51e3d2;},Te=(_0xc58053,_0x158940)=>(_0x51f059,_0x32d019)=>_0x158940(_0x51f059,_0x32d019,_0xc58053);let de=class extends a[_0xbd72b5(0x283)]{constructor(_0x13f3e4,_0x1fbda3){const _0xe60bd3=_0xbd72b5;super(),this[_0xe60bd3(0x2e4)]=_0x13f3e4,this[_0xe60bd3(0x2fa)]=_0x1fbda3,this[_0xe60bd3(0x1c9)]();}[_0xbd72b5(0x1c9)](){const _0x4e0f1d=_0xbd72b5,_0x48ecab=this;this['disposeWithMe'](this['_docClipboardService'][_0x4e0f1d(0x1c4)]({'onBeforePasteImage':async _0x45d53c=>{const _0x452be0=_0x4e0f1d,_0x47b1a6=await _0x48ecab['_imageIoService'][_0x452be0(0x3c0)](_0x45d53c);return _0x47b1a6?{'source':_0x47b1a6[_0x452be0(0x30e)],'imageSourceType':_0x47b1a6[_0x452be0(0x36f)]}:null;}}));}};de=ze([Te(0x0,b[_0xbd72b5(0x1e6)]),Te(0x1,Ge[_0xbd72b5(0x204)])],de);const Oe=[_0xbd72b5(0x333),_0xbd72b5(0x29f),_0xbd72b5(0x2ea),'red.300',_0xbd72b5(0x303),_0xbd72b5(0x1e7)];class me extends a[_0xbd72b5(0x1b7)]{constructor(){const _0x454ca7=_0xbd72b5;super(...arguments),h(this,_0x454ca7(0x2c5),new Map()),h(this,'_colorIndex',0x0);}[_0xbd72b5(0x35c)](_0x171714){const _0x1fe4d5=_0xbd72b5;if(this[_0x1fe4d5(0x2c5)][_0x1fe4d5(0x3c8)](_0x171714))return this['_assignedColors'][_0x1fe4d5(0x206)](_0x171714);const _0x55dad1=Oe[this[_0x1fe4d5(0x2e7)]];return this[_0x1fe4d5(0x2e7)]=(this['_colorIndex']+0x1)%Oe[_0x1fe4d5(0x1cf)],this[_0x1fe4d5(0x2c5)]['set'](_0x171714,_0x55dad1),_0x55dad1;}}function Pe(_0x31e71a){let _0x52ca4a='';for(const _0x206064 of _0x31e71a){const {startOffset:_0x4225ee,endOffset:_0x28440e,isActive:_0x54c586,rangeType:_0xeeb01b,segmentId:_0x172d60,segmentPage:_0x8463e7}=_0x206064;_0x52ca4a['length']&&(_0x52ca4a+=','),_0x52ca4a+=_0x4225ee+':'+_0x28440e+':'+(_0x54c586?'1':'0')+':'+_0xeeb01b+':'+_0x172d60+':'+_0x8463e7;}return _0x52ca4a;}function Je(_0x5aa4ca){const _0x5b611d=_0xbd72b5,_0x318107=_0x5aa4ca[_0x5b611d(0x27d)](','),_0x29470a=[];for(const _0x172ab1 of _0x318107){const [_0x3b331c,_0x5b0801,_0x4174b4,_0x4c9f3b,_0x3861a0,_0x5010af]=_0x172ab1[_0x5b611d(0x27d)](':');_0x29470a[_0x5b611d(0x2f7)]({'startOffset':Number(_0x3b331c),'endOffset':Number(_0x5b0801),'collapsed':_0x3b331c===_0x5b0801,'isActive':_0x4174b4==='1','rangeType':_0x4c9f3b===a['DOC_RANGE_TYPE']['TEXT']?a[_0x5b611d(0x2dc)][_0x5b611d(0x1cd)]:a[_0x5b611d(0x2dc)]['RECT'],'segmentId':typeof _0x3861a0==_0x5b611d(0x2ce)?String(_0x3861a0):'','segmentPage':Number(_0x5010af!=null?_0x5010af:-0x1)});}return _0x29470a[_0x5b611d(0x1eb)](_0x3141b4=>_0x3141b4[_0x5b611d(0x18f)])||(_0x29470a[0x0]['isActive']=!0x0),_0x29470a;}class Ce extends a[_0xbd72b5(0x283)]{constructor(){const _0x2ca08b=_0xbd72b5;super(...arguments),h(this,_0x2ca08b(0x3b6),new d[(_0x2ca08b(0x257))](null)),h(this,_0x2ca08b(0x38c),this[_0x2ca08b(0x3b6)][_0x2ca08b(0x30a)]());}[_0xbd72b5(0x33c)](_0x2b9770){const _0x162ca0=_0xbd72b5,{unitID:_0x30de81,memberID:_0x42dd11,textRanges:_0x5bc4f8}=_0x2b9770,_0x251247=Pe(_0x5bc4f8);if(_0x251247==='')return;const _0x101004={'unitID':_0x30de81,'memberID':_0x42dd11,'selection':_0x251247};this[_0x162ca0(0x3b6)]['next'](_0x101004);}}var Ze=Object[_0xbd72b5(0x402)],Qe=(_0x9384d2,_0x124d6f,_0x153d28,_0x32708e)=>{const _0x6a2d94=_0xbd72b5;for(var _0x40ed06=_0x32708e>0x1?void 0x0:_0x32708e?Ze(_0x124d6f,_0x153d28):_0x124d6f,_0x4388c3=_0x9384d2[_0x6a2d94(0x1cf)]-0x1,_0x4d42c9;_0x4388c3>=0x0;_0x4388c3--)(_0x4d42c9=_0x9384d2[_0x4388c3])&&(_0x40ed06=_0x4d42c9(_0x40ed06)||_0x40ed06);return _0x40ed06;},L=(_0x1d9bd8,_0x33a386)=>(_0x286cef,_0x410771)=>_0x33a386(_0x286cef,_0x410771,_0x1d9bd8);const et=0x12c,tt=0x64;let fe=class extends a[_0xbd72b5(0x283)]{constructor(_0x515242,_0x36f661,_0x5c21da,_0x74a8cb,_0x458ecc,_0x31e070,_0x4b2e5d,_0x3b6a55,_0x217f02){const _0x1cde42=_0xbd72b5;super(),h(this,_0x1cde42(0x269),!0x1),h(this,_0x1cde42(0x1c9),!0x1),h(this,_0x1cde42(0x238),new d[(_0x1cde42(0x257))](new Map())),h(this,_0x1cde42(0x267),this[_0x1cde42(0x238)][_0x1cde42(0x30a)]()),h(this,'_roomMembers$',new d[(_0x1cde42(0x257))]([])),h(this,'roomMembers$',this[_0x1cde42(0x2fc)]['pipe'](d['debounceTime'](et))),h(this,_0x1cde42(0x32a),a[_0x1cde42(0x33a)](_0x297a3c=>{const _0x36eeea=_0x1cde42,_0x2d0224={'eventID':m['CollaborationEvent'][_0x36eeea(0x254)],'data':{'unitID':this[_0x36eeea(0x22b)],'memberID':this[_0x36eeea(0x3ee)][_0x36eeea(0x3be)](),'selection':Pe(_0x297a3c)}};this[_0x36eeea(0x3ee)][_0x36eeea(0x21c)](_0x2d0224,this[_0x36eeea(0x22b)]);},tt)),(this[_0x1cde42(0x22b)]=_0x515242,this[_0x1cde42(0x3ee)]=_0x36f661,this[_0x1cde42(0x207)]=_0x5c21da,this[_0x1cde42(0x188)]=_0x74a8cb,this['_memberService']=_0x458ecc,this[_0x1cde42(0x3aa)]=_0x31e070,this[_0x1cde42(0x203)]=_0x4b2e5d,this['_univerInstanceService']=_0x3b6a55,this['_commandService']=_0x217f02);}get[_0xbd72b5(0x3a1)](){const _0x3d3344=_0xbd72b5;return this[_0x3d3344(0x238)]['getValue']();}get[_0xbd72b5(0x1a3)](){const _0x4c0d8a=_0xbd72b5;return this[_0x4c0d8a(0x2fc)][_0x4c0d8a(0x3c2)]();}['dispose'](){const _0x3bfbdf=_0xbd72b5;super[_0x3bfbdf(0x32e)](),this[_0x3bfbdf(0x238)]['next'](new Map()),this['_cursorInfo$'][_0x3bfbdf(0x2d8)](),this['_roomMembers$'][_0x3bfbdf(0x2ad)]([]),this[_0x3bfbdf(0x2fc)]['complete']();}[_0xbd72b5(0x3c1)](){const _0x20cf32=_0xbd72b5;this[_0x20cf32(0x1c9)]||(this[_0x20cf32(0x1c9)]=!0x0,this[_0x20cf32(0x3ee)][_0x20cf32(0x3d4)][_0x20cf32(0x1db)](d['takeUntil'](this[_0x20cf32(0x1a2)]))[_0x20cf32(0x1fc)](_0x339431=>{const _0x2fb5c0=_0x20cf32;_0x339431===u[_0x2fb5c0(0x19d)]['ONLINE']?this[_0x2fb5c0(0x294)]():this[_0x2fb5c0(0x21f)]();}),this['_session'][_0x20cf32(0x3cf)][_0x20cf32(0x1db)](d[_0x20cf32(0x310)](this[_0x20cf32(0x1a2)]))[_0x20cf32(0x1fc)](_0x3a74e0=>{const _0x2f4821=_0x20cf32,_0x27f829=_0x3a74e0[_0x2f4821(0x2d7)];_0x27f829===m['CollaborationEvent'][_0x2f4821(0x254)]&&this[_0x2f4821(0x34a)](_0x3a74e0),_0x27f829===m[_0x2f4821(0x297)][_0x2f4821(0x380)]&&this['_onCursorDelete'](_0x3a74e0);}),this[_0x20cf32(0x323)](this[_0x20cf32(0x29d)][_0x20cf32(0x3eb)](_0x419892=>{const _0x52c721=_0x20cf32,_0x5508c2=_0x419892['params'];_0x5508c2!=null&&this[_0x52c721(0x269)]&&_0x419892['id']===Y[_0x52c721(0x20c)]['id']&&_0x5508c2[_0x52c721(0x1f4)]===this[_0x52c721(0x22b)]&&_0x5508c2['isEditing']===!0x1&&_0x5508c2['ranges'][_0x52c721(0x1cf)]>0x0&&this[_0x52c721(0x32a)](_0x5508c2[_0x52c721(0x25e)]);})),this['_syncEditingCollabCursorService'][_0x20cf32(0x38c)]['pipe'](d[_0x20cf32(0x310)](this[_0x20cf32(0x1a2)]))['subscribe'](_0x53a743=>{const _0x435589=_0x20cf32;if((_0x53a743==null?void 0x0:_0x53a743[_0x435589(0x22b)])!==this[_0x435589(0x22b)])return;const _0x451943={'eventID':m[_0x435589(0x297)][_0x435589(0x254)],'data':_0x53a743};this[_0x435589(0x34a)](_0x451943);}),this[_0x20cf32(0x323)](this['_commandService'][_0x20cf32(0x3eb)](_0x15b758=>{const _0x50db49=_0x20cf32;if(_0x15b758[_0x50db49(0x2ed)]==null)return;const _0x2ac60e=_0x15b758['params'];if(_0x15b758['id']!==Y[_0x50db49(0x1cc)]['id']||_0x2ac60e[_0x50db49(0x1f4)]!==this[_0x50db49(0x22b)])return;const _0x2180eb={'id':_0x50db49(0x227),'params':_0x2ac60e},_0x2ed814=this[_0x50db49(0x3a1)];for(const [_0x30b101,_0x2e1059]of _0x2ed814){const _0x31311f={'id':'doc.mutation.rich-text-editing','params':{'unitId':this[_0x50db49(0x22b)],'actions':null,'textRanges':_0x2e1059[_0x50db49(0x25e)]}},_0x4c740e=this[_0x50db49(0x203)][_0x50db49(0x28a)](_0x2180eb,_0x31311f,!0x1);if(m[_0x50db49(0x28f)](_0x4c740e))throw _0x4c740e[_0x50db49(0x3ca)];_0x2ed814[_0x50db49(0x3c7)](_0x30b101,{..._0x2e1059,'ranges':_0x4c740e[_0x50db49(0x30f)][_0x50db49(0x2ed)]['textRanges']});}queueMicrotask(()=>{const _0x9e345a=_0x50db49;this['_cursorInfo$'][_0x9e345a(0x2ad)](_0x2ed814);});})));}[_0xbd72b5(0x34a)](_0x4af71b){const _0x5854a2=_0xbd72b5;var _0x243555,_0x693176;const {memberID:_0x1ba471,selection:_0x126689}=_0x4af71b['data'],_0x3d2198=Je(_0x126689),_0x2ccff4=(_0x693176=(_0x243555=this[_0x5854a2(0x24b)]['getMember'](this[_0x5854a2(0x22b)],_0x1ba471))==null?void 0x0:_0x243555[_0x5854a2(0x1dd)])!=null?_0x693176:_0x5854a2(0x2d2),_0x363982={'color':this['_colorAssignService'][_0x5854a2(0x35c)](_0x1ba471),'name':_0x2ccff4,'ranges':_0x3d2198},_0x5040e6=this[_0x5854a2(0x3a1)];_0x5040e6['set'](_0x1ba471,_0x363982),this[_0x5854a2(0x238)]['next'](_0x5040e6);}[_0xbd72b5(0x37f)](_0x5b1909){const _0x329284=_0xbd72b5,{memberID:_0x161bd1}=_0x5b1909[_0x329284(0x2b9)],_0x485d14=this[_0x329284(0x3a1)];_0x485d14[_0x329284(0x200)](_0x161bd1),this['_cursorInfo$'][_0x329284(0x2ad)](_0x485d14);}[_0xbd72b5(0x294)](){const _0x57854f=_0xbd72b5;var _0x80ff50;if(this[_0x57854f(0x269)]=!0x0,((_0x80ff50=this[_0x57854f(0x224)]['getFocusedUnit']())==null?void 0x0:_0x80ff50['getUnitId']())!==this['unitID'])return;const _0xf4c643=this[_0x57854f(0x207)][_0x57854f(0x206)](Y[_0x57854f(0x389)])[_0x57854f(0x2a7)]();Array[_0x57854f(0x1b6)](_0xf4c643)&&_0xf4c643[_0x57854f(0x1cf)]>0x0&&this[_0x57854f(0x32a)](_0xf4c643);}['_toggleOffline'](){this['_online']=!0x1;}};fe=Qe([L(0x2,a[_0xbd72b5(0x1d6)](a[_0xbd72b5(0x338)])),L(0x3,a[_0xbd72b5(0x1d6)](me)),L(0x4,a['Inject'](u[_0xbd72b5(0x241)])),L(0x5,a['Inject'](Ce)),L(0x6,m[_0xbd72b5(0x25b)]),L(0x7,a['IUniverInstanceService']),L(0x8,a['ICommandService'])],fe);var st=Object['getOwnPropertyDescriptor'],it=(_0x5c7056,_0x3091d5,_0x4a0267,_0x1b76af)=>{const _0x2f1887=_0xbd72b5;for(var _0x5cbb2a=_0x1b76af>0x1?void 0x0:_0x1b76af?st(_0x3091d5,_0x4a0267):_0x3091d5,_0x19d3f6=_0x5c7056[_0x2f1887(0x1cf)]-0x1,_0x41b874;_0x19d3f6>=0x0;_0x19d3f6--)(_0x41b874=_0x5c7056[_0x19d3f6])&&(_0x5cbb2a=_0x41b874(_0x5cbb2a)||_0x5cbb2a);return _0x5cbb2a;},w=(_0x4bafed,_0x476636)=>(_0x3b7883,_0x5cb66e)=>_0x476636(_0x3b7883,_0x5cb66e,_0x4bafed);const nt=0x12c,rt=0x64,ot=()=>{let _0x27a2d0=[],_0x435914=!0x1;return _0x15d072=>{const _0x50e2df=_0x4dae;_0x27a2d0[_0x50e2df(0x2f7)](_0x15d072),_0x435914||(_0x435914=!0x0,setTimeout(()=>{const _0x3b93b2=_0x50e2df;_0x27a2d0[_0x3b93b2(0x276)](_0x43af1e=>_0x43af1e()),_0x27a2d0=[],_0x435914=!0x1;}));};};let Se=class extends a['RxDisposable']{constructor(_0x4d4597,_0x411861,_0x4ce397,_0x1bafc0,_0x1c93a6,_0x1e4b9b,_0x3744a8,_0x53be26){const _0x5e5388=_0xbd72b5;super(),h(this,_0x5e5388(0x269),!0x1),h(this,_0x5e5388(0x1c9),!0x1),h(this,_0x5e5388(0x238),new d[(_0x5e5388(0x257))](new Map())),h(this,_0x5e5388(0x267),this[_0x5e5388(0x238)][_0x5e5388(0x30a)]()),h(this,_0x5e5388(0x2fc),new d[(_0x5e5388(0x257))]([])),h(this,_0x5e5388(0x17f),this[_0x5e5388(0x2fc)][_0x5e5388(0x1db)](d[_0x5e5388(0x3d6)](nt))),h(this,_0x5e5388(0x32a),a['debounce']((_0x83a580,_0x312eec)=>{const _0x2a89fd=_0x5e5388,_0x5bd785={'eventID':m[_0x2a89fd(0x297)][_0x2a89fd(0x254)],'data':{'unitID':this[_0x2a89fd(0x22b)],'memberID':this[_0x2a89fd(0x3ee)][_0x2a89fd(0x3be)](),'selection':Ee[_0x2a89fd(0x1b2)](_0x83a580,_0x312eec[_0x2a89fd(0x2c6)])}};this[_0x2a89fd(0x3ee)]['send'](_0x5bd785,this[_0x2a89fd(0x22b)]);},rt)),(this[_0x5e5388(0x22b)]=_0x4d4597,this[_0x5e5388(0x3ee)]=_0x411861,this[_0x5e5388(0x207)]=_0x4ce397,this[_0x5e5388(0x188)]=_0x1bafc0,this[_0x5e5388(0x24b)]=_0x1c93a6,this[_0x5e5388(0x224)]=_0x1e4b9b,this[_0x5e5388(0x29d)]=_0x3744a8,this[_0x5e5388(0x232)]=_0x53be26);}get[_0xbd72b5(0x3a1)](){const _0x2f8984=_0xbd72b5;return this[_0x2f8984(0x238)][_0x2f8984(0x3c2)]();}get[_0xbd72b5(0x1a3)](){const _0x5a500b=_0xbd72b5;return this[_0x5a500b(0x2fc)][_0x5a500b(0x3c2)]();}['dispose'](){const _0x3390ed=_0xbd72b5;super[_0x3390ed(0x32e)](),this[_0x3390ed(0x238)][_0x3390ed(0x2ad)](new Map()),this[_0x3390ed(0x238)]['complete'](),this['_roomMembers$'][_0x3390ed(0x2ad)]([]),this[_0x3390ed(0x2fc)]['complete']();}[_0xbd72b5(0x3c1)](){const _0x432249=_0xbd72b5;this[_0x432249(0x1c9)]||(this[_0x432249(0x1c9)]=!0x0,this[_0x432249(0x3ee)][_0x432249(0x3d4)][_0x432249(0x1db)](d['takeUntil'](this[_0x432249(0x1a2)]))['subscribe'](_0x3697a3=>{const _0x2ff088=_0x432249;_0x3697a3===u['SessionStatus'][_0x2ff088(0x19a)]?this[_0x2ff088(0x294)]():this['_toggleOffline']();}),this['_session']['event$'][_0x432249(0x1db)](d[_0x432249(0x310)](this['dispose$']))['subscribe'](_0x388eb7=>{const _0x58c674=_0x432249,_0x2ac031=_0x388eb7[_0x58c674(0x2d7)];_0x2ac031===m[_0x58c674(0x297)][_0x58c674(0x254)]&&this[_0x58c674(0x34a)](_0x388eb7),_0x2ac031===m[_0x58c674(0x297)][_0x58c674(0x380)]&&this[_0x58c674(0x37f)](_0x388eb7);}),this[_0x432249(0x256)](),this[_0x432249(0x323)](this['_commandService']['onCommandExecuted'](_0x44679a=>{const _0x20c6a0=_0x432249;if(this['_online']&&_0x44679a['id']===g[_0x20c6a0(0x318)]['id']&&_0x44679a[_0x20c6a0(0x2ed)]['unitId']===this[_0x20c6a0(0x22b)]){const _0xb52787=_0x44679a[_0x20c6a0(0x2ed)];this[_0x20c6a0(0x32a)](_0xb52787[_0x20c6a0(0x225)],_0xb52787['selections'][0x0]);}})));}['_onCursorUpdate'](_0x18a7d7){const _0x277638=_0xbd72b5;var _0xd9a50d,_0xa27240;const {memberID:_0x7dcf17,selection:_0x4c11c7}=_0x18a7d7[_0x277638(0x2b9)],{sheetName:_0x1e0aa9,range:_0x5dc5ae}=Ee[_0x277638(0x31d)](_0x4c11c7),_0x388847={'name':(_0xa27240=(_0xd9a50d=this[_0x277638(0x24b)][_0x277638(0x2eb)](this[_0x277638(0x22b)],_0x7dcf17))==null?void 0x0:_0xd9a50d[_0x277638(0x1dd)])!=null?_0xa27240:_0x277638(0x2d2),'range':this['_getMergeRange'](_0x1e0aa9,_0x5dc5ae),'sheetID':_0x1e0aa9,'color':this[_0x277638(0x188)][_0x277638(0x35c)](_0x7dcf17),'selection':_0x4c11c7},_0x5f08a0=this[_0x277638(0x3a1)];_0x5f08a0[_0x277638(0x3c7)](_0x7dcf17,_0x388847),this[_0x277638(0x238)][_0x277638(0x2ad)](_0x5f08a0);}['_onCursorDelete'](_0x865328){const _0x37367b=_0xbd72b5,{memberID:_0x3423ae}=_0x865328['data'],_0x446822=this[_0x37367b(0x3a1)];_0x446822[_0x37367b(0x200)](_0x3423ae),this['_cursorInfo$'][_0x37367b(0x2ad)](_0x446822);}[_0xbd72b5(0x3bd)](_0x1330b4,_0x556b21){const _0x4343da=_0xbd72b5;var _0x3c0b2e,_0x389740;const _0x2daf98=(_0x389740=(_0x3c0b2e=this[_0x4343da(0x224)][_0x4343da(0x36a)](this['unitID']))==null?void 0x0:_0x3c0b2e[_0x4343da(0x306)](_0x1330b4))==null?void 0x0:_0x389740[_0x4343da(0x296)]();return(_0x2daf98==null?void 0x0:_0x2daf98['find'](_0x4a9244=>a['Rectangle'][_0x4343da(0x3cb)](_0x4a9244,_0x556b21)))||_0x556b21;}[_0xbd72b5(0x256)](){const _0x37e45d=_0xbd72b5,_0x4edfdd=new a[(_0x37e45d(0x23a))](),_0x5f531d=ot(),_0x20db2e=()=>{const _0x22a954=_0x37e45d;_0x4edfdd[_0x22a954(0x32e)]();const _0x34f26e=(_0x73a65,_0x3f8f93,_0x236275,_0x50358c)=>{const _0x55b3ad=_0x22a954;let _0x599ccb=[];switch(_0x73a65['id']){case g['EffectRefRangId'][_0x55b3ad(0x35d)]:{_0x599ccb=g['handleDeleteRangeMoveLeft'](_0x73a65,_0x50358c);break;}case g[_0x55b3ad(0x304)][_0x55b3ad(0x340)]:{_0x599ccb=g[_0x55b3ad(0x38e)](_0x73a65,_0x50358c);break;}case g[_0x55b3ad(0x304)][_0x55b3ad(0x21e)]:{_0x599ccb=g[_0x55b3ad(0x1f1)](_0x73a65,_0x50358c);break;}case g['EffectRefRangId'][_0x55b3ad(0x1e0)]:{_0x599ccb=g[_0x55b3ad(0x383)](_0x73a65,_0x50358c);break;}case g[_0x55b3ad(0x304)]['InsertRangeMoveRightCommandId']:{_0x599ccb=g[_0x55b3ad(0x1a6)](_0x73a65,_0x50358c);break;}case g[_0x55b3ad(0x304)]['InsertRowCommandId']:{_0x599ccb=g[_0x55b3ad(0x179)](_0x73a65,_0x50358c);break;}case g['EffectRefRangId'][_0x55b3ad(0x2f3)]:{_0x599ccb=g[_0x55b3ad(0x1d3)](_0x73a65,_0x50358c);break;}case g[_0x55b3ad(0x304)][_0x55b3ad(0x228)]:{_0x599ccb=g[_0x55b3ad(0x24e)](_0x73a65,_0x50358c);break;}case g['EffectRefRangId']['RemoveRowCommandId']:{_0x599ccb=g[_0x55b3ad(0x270)](_0x73a65,_0x50358c);break;}}const _0x228fd8=g[_0x55b3ad(0x23b)](_0x599ccb,_0x50358c),_0x587bd0=this[_0x55b3ad(0x3a1)][_0x55b3ad(0x206)](_0x3f8f93);if(_0x587bd0&&_0x228fd8){const _0x86e8a1={..._0x587bd0,'range':_0x228fd8};this['cursorInfo']['set'](_0x3f8f93,_0x86e8a1),_0x5f531d(()=>{const _0x4ef0ce=_0x55b3ad,_0x1b19c7=this[_0x4ef0ce(0x232)][_0x4ef0ce(0x18a)](_0x228fd8,_0x52a56a=>(_0x1b19c7['dispose'](),_0x34f26e(_0x52a56a,_0x3f8f93,_0x236275,_0x228fd8)));_0x4edfdd[_0x4ef0ce(0x1e5)](_0x1b19c7);});}return{'redos':[],'undos':[]};};this[_0x22a954(0x3a1)]['forEach']((_0x3ed5a8,_0x582f46)=>{const _0x48f4ff=_0x22a954,{range:_0x1015c7,sheetID:_0x5b0fde}=_0x3ed5a8,_0x35b844=this[_0x48f4ff(0x232)][_0x48f4ff(0x18a)](_0x1015c7,_0x1b561e=>(_0x35b844['dispose'](),_0x34f26e(_0x1b561e,_0x582f46,_0x5b0fde,_0x1015c7)));_0x4edfdd['add'](_0x35b844);});};this[_0x37e45d(0x323)](a[_0x37e45d(0x385)](this[_0x37e45d(0x238)]['subscribe'](()=>{_0x20db2e();})));}[_0xbd72b5(0x294)](){const _0x4e223b=_0xbd72b5;var _0x5f0ad9,_0x47e939;if(this[_0x4e223b(0x269)]=!0x0,((_0x5f0ad9=this[_0x4e223b(0x224)][_0x4e223b(0x397)]())==null?void 0x0:_0x5f0ad9[_0x4e223b(0x1e1)]())!==this[_0x4e223b(0x22b)])return;const _0x29e2a4=(_0x47e939=this['_injector'][_0x4e223b(0x206)](g[_0x4e223b(0x372)])[_0x4e223b(0x1ac)]())==null?void 0x0:_0x47e939[0x0],_0x27090e=this[_0x4e223b(0x224)][_0x4e223b(0x35a)](a['UniverInstanceType'][_0x4e223b(0x2c2)])['getActiveSheet']();_0x29e2a4&&_0x27090e&&this[_0x4e223b(0x32a)](_0x27090e[_0x4e223b(0x31e)](),_0x29e2a4);}[_0xbd72b5(0x21f)](){const _0x201fae=_0xbd72b5;this[_0x201fae(0x269)]=!0x1;}};Se=it([w(0x2,a[_0xbd72b5(0x1d6)](a[_0xbd72b5(0x338)])),w(0x3,a[_0xbd72b5(0x1d6)](me)),w(0x4,a['Inject'](u['MemberService'])),w(0x5,a[_0xbd72b5(0x3e7)]),w(0x6,a[_0xbd72b5(0x3ea)]),w(0x7,a[_0xbd72b5(0x1d6)](g['RefRangeService']))],Se);var at=Object[_0xbd72b5(0x402)],ct=(_0x3fe832,_0x3980a4,_0x4a34a4,_0x466f8f)=>{const _0xc23e09=_0xbd72b5;for(var _0x2e7671=_0x466f8f>0x1?void 0x0:_0x466f8f?at(_0x3980a4,_0x4a34a4):_0x3980a4,_0x445039=_0x3fe832[_0xc23e09(0x1cf)]-0x1,_0x22be5c;_0x445039>=0x0;_0x445039--)(_0x22be5c=_0x3fe832[_0x445039])&&(_0x2e7671=_0x22be5c(_0x2e7671)||_0x2e7671);return _0x2e7671;},ie=(_0x5a80e6,_0x4873c7)=>(_0x24a97b,_0x271541)=>_0x4873c7(_0x24a97b,_0x271541,_0x5a80e6);function _0x4dae(_0x179816,_0x4c72b6){const _0x3f5db0=_0x3f5d();return _0x4dae=function(_0x4dae14,_0x5909dd){_0x4dae14=_0x4dae14-0x175;let _0x2abaec=_0x3f5db0[_0x4dae14];return _0x2abaec;},_0x4dae(_0x179816,_0x4c72b6);}let x=class extends a[_0xbd72b5(0x283)]{constructor(_0x36d9d6,_0x2afa9f,_0x6bc408){const _0x730ca6=_0xbd72b5;super(),h(this,_0x730ca6(0x330),new Map()),h(this,_0x730ca6(0x3fe),new d[(_0x730ca6(0x342))]()),(this[_0x730ca6(0x224)]=_0x36d9d6,this[_0x730ca6(0x207)]=_0x2afa9f,this[_0x730ca6(0x248)]=_0x6bc408,this[_0x730ca6(0x1c9)]());}[_0xbd72b5(0x32e)](){const _0x6bc764=_0xbd72b5;super[_0x6bc764(0x32e)](),this[_0x6bc764(0x3fe)][_0x6bc764(0x2d8)](),this[_0x6bc764(0x330)][_0x6bc764(0x276)](_0x51bb35=>_0x51bb35[_0x6bc764(0x32e)]());}[_0xbd72b5(0x24f)](_0x94794b){const _0x3753fd=_0xbd72b5;return this[_0x3753fd(0x330)][_0x3753fd(0x3c8)](_0x94794b)?this[_0x3753fd(0x330)][_0x3753fd(0x206)](_0x94794b)[_0x3753fd(0x267)]:this['_entityInit$'][_0x3753fd(0x1db)](d[_0x3753fd(0x1d2)](_0x12a57e=>_0x12a57e[_0x3753fd(0x22b)]===_0x94794b),d['switchMap'](_0x2c4a12=>_0x2c4a12[_0x3753fd(0x267)]));}[_0xbd72b5(0x1c9)](){const _0x2c49c9=_0xbd72b5;this[_0x2c49c9(0x224)][_0x2c49c9(0x365)](a[_0x2c49c9(0x216)]['UNIVER_SHEET'])[_0x2c49c9(0x1db)](d[_0x2c49c9(0x310)](this[_0x2c49c9(0x1a2)]))[_0x2c49c9(0x1fc)](async _0x3da504=>{const _0x2ea3c6=_0x2c49c9,_0x58026a=_0x3da504[_0x2ea3c6(0x1e1)](),_0x1ad8ff=await this[_0x2ea3c6(0x231)](_0x58026a);this['_entityInit$'][_0x2ea3c6(0x2ad)](_0x1ad8ff),this[_0x2ea3c6(0x330)][_0x2ea3c6(0x3c7)](_0x58026a,_0x1ad8ff);}),this['_univerInstanceService'][_0x2c49c9(0x365)](a[_0x2c49c9(0x216)]['UNIVER_DOC'])['pipe'](d['takeUntil'](this[_0x2c49c9(0x1a2)]))[_0x2c49c9(0x1db)](d[_0x2c49c9(0x1d2)](_0x36cf9b=>!_0x36cf9b[_0x2c49c9(0x1e1)]()['startsWith']('__')))[_0x2c49c9(0x1fc)](async _0x586db4=>{const _0x442529=_0x2c49c9,_0x1373d5=_0x586db4['getUnitId'](),_0x26ca10=await this[_0x442529(0x300)](_0x1373d5);this[_0x442529(0x3fe)][_0x442529(0x2ad)](_0x26ca10),this['_entities'][_0x442529(0x3c7)](_0x1373d5,_0x26ca10);}),d[_0x2c49c9(0x1bc)](this[_0x2c49c9(0x224)][_0x2c49c9(0x30c)](a['UniverInstanceType'][_0x2c49c9(0x211)]),this[_0x2c49c9(0x224)][_0x2c49c9(0x30c)](a['UniverInstanceType'][_0x2c49c9(0x2c2)]))[_0x2c49c9(0x1db)](d[_0x2c49c9(0x310)](this[_0x2c49c9(0x1a2)]))[_0x2c49c9(0x1fc)](_0x2e984f=>{const _0x26a163=_0x2c49c9,_0x6d1dd8=_0x2e984f[_0x26a163(0x1e1)](),_0x20edff=this['_entities'][_0x26a163(0x206)](_0x6d1dd8);_0x20edff&&(_0x20edff['dispose'](),this[_0x26a163(0x330)]['delete'](_0x6d1dd8));});}async[_0xbd72b5(0x231)](_0x1b3863){const _0x280fc7=_0xbd72b5,_0x32dad6=await this[_0x280fc7(0x248)][_0x280fc7(0x2f5)](_0x1b3863),_0x351a78=this['_injector'][_0x280fc7(0x2d3)](Se,_0x1b3863,_0x32dad6);return _0x351a78[_0x280fc7(0x3c1)](),_0x351a78;}async[_0xbd72b5(0x300)](_0x1b297f){const _0x20d794=_0xbd72b5,_0x580fde=await this['_collabSessionService']['requireSession'](_0x1b297f),_0x2af670=this['_injector'][_0x20d794(0x2d3)](fe,_0x1b297f,_0x580fde);return _0x2af670[_0x20d794(0x3c1)](),_0x2af670;}};x=ct([ie(0x0,a[_0xbd72b5(0x3e7)]),ie(0x1,a['Inject'](a[_0xbd72b5(0x338)])),ie(0x2,a['Inject'](u[_0xbd72b5(0x307)]))],x);const K=0x14,Re=0xc8,ne=0x4,lt=0x5;function _t(_0x59b500,_0x503636){const _0xc5c964=_0xbd72b5;let {radius:_0x1a5ba2,width:_0x3edd45,height:_0x3f9989}=_0x503636;_0x1a5ba2=_0x1a5ba2!=null?_0x1a5ba2:0x0,_0x3edd45=_0x3edd45!=null?_0x3edd45:0x1e,_0x3f9989=_0x3f9989!=null?_0x3f9989:0x1e;let _0x1aa05c=0x0,_0x5222ac=0x0,_0x204d04=0x0;_0x1aa05c=_0x5222ac=_0x204d04=Math[_0xc5c964(0x2d4)](_0x1a5ba2,_0x3edd45/0x2,_0x3f9989/0x2),_0x59b500['beginPath'](),_0x59b500['moveTo'](_0x1aa05c,0x0),_0x59b500[_0xc5c964(0x27f)](_0x3edd45-_0x5222ac,0x0),_0x59b500[_0xc5c964(0x193)](_0x3edd45-_0x5222ac,_0x5222ac,_0x5222ac,Math['PI']*0x3/0x2,0x0,!0x1),_0x59b500[_0xc5c964(0x27f)](_0x3edd45,_0x3f9989-_0x204d04),_0x59b500[_0xc5c964(0x193)](_0x3edd45-_0x204d04,_0x3f9989-_0x204d04,_0x204d04,0x0,Math['PI']/0x2,!0x1),_0x59b500[_0xc5c964(0x27f)](0x0,_0x3f9989),_0x59b500[_0xc5c964(0x27f)](0x0,_0x1aa05c),_0x59b500[_0xc5c964(0x193)](_0x1aa05c,_0x1aa05c,_0x1aa05c,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x59b500['closePath'](),_0x503636['fill']&&(_0x59b500[_0xc5c964(0x400)](),_0x59b500[_0xc5c964(0x346)]=_0x503636[_0xc5c964(0x403)],_0x503636[_0xc5c964(0x20a)]===_0xc5c964(0x326)?_0x59b500[_0xc5c964(0x403)](_0xc5c964(0x326)):_0x59b500[_0xc5c964(0x403)](),_0x59b500['restore']());}class ee extends p[_0xbd72b5(0x3fb)]{constructor(_0x564dc5,_0x3e475a){const _0x259655=_0xbd72b5;super(_0x564dc5,_0x3e475a),h(this,_0x259655(0x329)),h(this,_0x259655(0x363)),(this[_0x259655(0x329)]=_0x3e475a==null?void 0x0:_0x3e475a[_0x259655(0x329)],this[_0x259655(0x363)]=_0x3e475a==null?void 0x0:_0x3e475a['text']);}static[_0xbd72b5(0x31b)](_0x148dea,_0x4982bf){const _0x21ea22=_0xbd72b5,{text:_0x1aa6fc,color:_0x16c853}=_0x4982bf;_0x148dea[_0x21ea22(0x400)](),_0x148dea['font']=_0x21ea22(0x2d6);const _0x3cabca=_0x148dea['measureText'](_0x1aa6fc)[_0x21ea22(0x2d9)],_0x50e772=Math[_0x21ea22(0x2d4)](_0x3cabca+0x2*ne,Re);_t(_0x148dea,{'height':K,'radius':0x4,'width':_0x50e772,'fill':_0x16c853}),_0x148dea[_0x21ea22(0x346)]=_0x21ea22(0x26b);const _0x44989b=ne,_0x1797f4=K-lt,_0x5a9ede=Re-0x2*ne;if(_0x3cabca>_0x5a9ede){let _0x216d3d='',_0x30b8b0=0x0;for(const _0x38df26 of _0x1aa6fc){const _0xa0a15b=_0x148dea[_0x21ea22(0x316)](_0x38df26)[_0x21ea22(0x2d9)];if(_0x30b8b0+_0xa0a15b<=_0x5a9ede-_0x148dea[_0x21ea22(0x316)](_0x21ea22(0x39d))[_0x21ea22(0x2d9)])_0x216d3d+=_0x38df26,_0x30b8b0+=_0xa0a15b;else{_0x216d3d+=_0x21ea22(0x39d);break;}}_0x148dea[_0x21ea22(0x3ab)](_0x216d3d,_0x44989b,_0x1797f4);}else _0x148dea[_0x21ea22(0x3ab)](_0x1aa6fc,_0x44989b,_0x1797f4);_0x148dea[_0x21ea22(0x355)]();}[_0xbd72b5(0x1a4)](_0x301572){const _0x54c667=_0xbd72b5;ee[_0x54c667(0x31b)](_0x301572,this);}}const re=_0xbd72b5(0x35f),ht='collab-text-range-',ut=_0xbd72b5(0x192),k=0x6,dt=1.5,oe=0x4,ft=1.5,St=_0xbd72b5(0x28d);class De{constructor(_0x39c466,_0x4927c4,_0x1ef832,_0x549467){const _0x2c8969=_0xbd72b5;h(this,'_shapes',[]),h(this,_0x2c8969(0x3e9),null),h(this,_0x2c8969(0x2ac),null),h(this,_0x2c8969(0x2b6),null),h(this,'_hideTimer',null),h(this,_0x2c8969(0x33e),null),(this[_0x2c8969(0x1b8)]=_0x39c466,this[_0x2c8969(0x28e)]=_0x4927c4,this[_0x2c8969(0x2c1)]=_0x1ef832,this[_0x2c8969(0x240)]=_0x549467,this['_render']());}set['_hover'](_0x57daaf){const _0x43b803=_0xbd72b5;_0x57daaf?(this[_0x43b803(0x2b6)]&&this['_anchorDot'][_0x43b803(0x25f)](),this[_0x43b803(0x2ac)]&&this[_0x43b803(0x2ac)][_0x43b803(0x17b)]()):(this[_0x43b803(0x2b6)]&&this[_0x43b803(0x2b6)][_0x43b803(0x17b)](),this[_0x43b803(0x2ac)]&&this[_0x43b803(0x2ac)]['hide']());}[_0xbd72b5(0x32e)](){const _0xf421c9=_0xbd72b5;for(const _0x29f160 of this[_0xf421c9(0x236)])_0x29f160['dispose']();this[_0xf421c9(0x2ac)]&&this['_textBubble'][_0xf421c9(0x32e)](),this[_0xf421c9(0x2b6)]&&this[_0xf421c9(0x2b6)][_0xf421c9(0x32e)](),this[_0xf421c9(0x3e9)]&&this['_anchor']['dispose'](),this['_eventUnsubscribe']&&this[_0xf421c9(0x33e)]();}['_render'](){const _0x4c5c9a=_0xbd72b5;var _0x5c16c0;const {_docSkeleton:_0x5dd94d,_document:_0x72ae8f}=this,{color:_0x15f65a,name:_0x1f1aad,ranges:_0x57b2fe}=this['_cursor'],_0x614598=_0x72ae8f[_0x4c5c9a(0x26a)](),{docsLeft:_0x49c75a,docsTop:_0x3285bd}=_0x614598,_0x1497ef=new b['NodePositionConvertToCursor'](_0x614598,_0x5dd94d);for(const {startOffset:_0x14930b,endOffset:_0x34d1a2,rangeType:_0x412881,segmentId:_0x541321,segmentPage:_0x105c86,collapsed:_0x3ae9d6,isActive:_0x564ce5}of _0x57b2fe){const _0x3e532f=_0x5dd94d[_0x4c5c9a(0x26c)](_0x14930b,!0x0,_0x541321,_0x105c86);let _0x30a5be=_0x5dd94d[_0x4c5c9a(0x26c)](_0x34d1a2,!0x0,_0x541321,_0x105c86);if(_0x30a5be==null&&(_0x30a5be=_0x5dd94d['findNodePositionByCharIndex'](_0x34d1a2-0x1,!0x1,_0x541321,_0x105c86)),_0x564ce5){const {contentBoxPointGroup:_0x5bb515}=_0x1497ef[_0x4c5c9a(0x275)](_0x30a5be,_0x30a5be);if(_0x5bb515[_0x4c5c9a(0x1cf)]===0x0)continue;this['_drawAnchor'](_0x15f65a,_0x5bb515,_0x49c75a,_0x3285bd,_0x1f1aad),this[_0x4c5c9a(0x33e)]=this['_handleHover']();}if(_0x3e532f&&_0x30a5be){if(_0x412881===a[_0x4c5c9a(0x2dc)][_0x4c5c9a(0x37a)]){const _0x17228d=new b['NodePositionConvertToRectRange'](_0x614598,_0x5dd94d),{pointGroup:_0x4de92c}=(_0x5c16c0=_0x17228d['getRangePointData'](_0x3e532f,_0x30a5be))!=null?_0x5c16c0:{};if(_0x4de92c==null||_0x4de92c['length']===0x0)continue;this[_0x4c5c9a(0x265)](_0x15f65a,_0x4de92c,_0x49c75a,_0x3285bd);}else{if(!_0x3ae9d6){const {borderBoxPointGroup:_0xe4b42}=_0x1497ef[_0x4c5c9a(0x275)](_0x3e532f,_0x30a5be);if(_0xe4b42[_0x4c5c9a(0x1cf)]===0x0)continue;this['_drawTextRange'](_0x15f65a,_0xe4b42,_0x49c75a,_0x3285bd);}}}}}[_0xbd72b5(0x3e3)](_0x259d60,_0x4c984b,_0x440d67,_0x68464,_0x2365fe){const _0x4cf9f5=_0xbd72b5,_0x6f334c=this[_0x4cf9f5(0x2b3)](_0x4c984b),{left:_0x1c8915,top:_0x135ca6,height:_0x3a7723}=_0x6f334c,_0x3d9e0b=this['_getScale'](),_0x35fa00=ft/_0x3d9e0b,_0x13a059=new p['Rect'](re+a[_0x4cf9f5(0x32f)]['generateRandomId'](k),{'left':_0x1c8915+_0x440d67-_0x35fa00,'top':_0x135ca6+_0x68464,'height':_0x3a7723,'width':dt,'fill':_0x259d60||p[_0x4cf9f5(0x3d8)](a[_0x4cf9f5(0x182)]['black'],0x0),'strokeWidth':_0x35fa00,'stroke':St,'evented':!0x0});this[_0x4cf9f5(0x3e9)]=_0x13a059,this[_0x4cf9f5(0x28e)]['addObject'](_0x13a059,b[_0x4cf9f5(0x2a3)]);const _0x568ba2=new p['Rect'](re+a[_0x4cf9f5(0x32f)][_0x4cf9f5(0x1da)](k),{'left':_0x1c8915+_0x440d67-_0x35fa00,'top':_0x135ca6+_0x68464-oe/0x2,'height':oe,'width':oe,'fill':_0x259d60||p[_0x4cf9f5(0x3d8)](a[_0x4cf9f5(0x182)][_0x4cf9f5(0x2a6)],0x0),'strokeWidth':0x0,'stroke':_0x259d60||p[_0x4cf9f5(0x3d8)](a[_0x4cf9f5(0x182)][_0x4cf9f5(0x2a6)],0x0),'evented':!0x1});this[_0x4cf9f5(0x2b6)]=_0x568ba2,this[_0x4cf9f5(0x28e)][_0x4cf9f5(0x1c0)](_0x568ba2,b['TEXT_RANGE_LAYER_INDEX']);const _0x25bb2c=new ee(re+a['Tools'][_0x4cf9f5(0x1da)](k),{'left':_0x1c8915+_0x440d67-_0x35fa00,'top':_0x135ca6+_0x68464-K,'text':_0x2365fe,'color':_0x259d60});this[_0x4cf9f5(0x2ac)]=_0x25bb2c,this[_0x4cf9f5(0x28e)][_0x4cf9f5(0x1c0)](_0x25bb2c,b[_0x4cf9f5(0x2a3)]),this[_0x4cf9f5(0x281)]=!0x1;}[_0xbd72b5(0x2b8)](){const _0x2f18e9=_0xbd72b5,_0x56421b=this[_0x2f18e9(0x3e9)][_0x2f18e9(0x1f6)][_0x2f18e9(0x209)](()=>{const _0x1ea219=_0x2f18e9;this[_0x1ea219(0x281)]=!0x0;}),_0x27154c=this['_anchor'][_0x2f18e9(0x327)][_0x2f18e9(0x209)](()=>{const _0x56d794=_0x2f18e9;this[_0x56d794(0x201)]&&clearTimeout(this['_hideTimer']),this['_hideTimer']=setTimeout(()=>{const _0x99b3a2=_0x56d794;this[_0x99b3a2(0x281)]=!0x1;},0x7d0);});return()=>{const _0x3d8790=_0x2f18e9;_0x56421b[_0x3d8790(0x2c7)](),_0x27154c['unsubscribe']();};}[_0xbd72b5(0x1c1)](_0x4e07fb,_0x337da1,_0x4dff74,_0xf0f613){const _0x807e8e=_0xbd72b5,_0x4cec70=new a['ColorKit'](_0x4e07fb)['setAlpha'](0.2)[_0x807e8e(0x32b)](),_0x41cf9c=new p[(_0x807e8e(0x39b))](ht+a[_0x807e8e(0x32f)]['generateRandomId'](k),{'pointsGroup':_0x337da1,'fill':_0x4cec70||p['getColor'](a['COLORS'][_0x807e8e(0x2a6)],0.2),'left':_0x4dff74,'top':_0xf0f613,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x807e8e(0x236)]['push'](_0x41cf9c),this[_0x807e8e(0x28e)]['addObject'](_0x41cf9c,b[_0x807e8e(0x2a3)]);}[_0xbd72b5(0x265)](_0x5a1e29,_0x423e8d,_0x30e6b3,_0x2b17f9){const _0x117dba=_0xbd72b5,_0x39f893=new a[(_0x117dba(0x2b7))](_0x5a1e29)[_0x117dba(0x23d)](0.2)[_0x117dba(0x32b)](),_0xa8338e=new p[(_0x117dba(0x39b))](ut+a['Tools'][_0x117dba(0x1da)](k),{'pointsGroup':_0x423e8d,'fill':_0x39f893||p['getColor'](a[_0x117dba(0x182)][_0x117dba(0x2a6)],0.2),'left':_0x30e6b3,'top':_0x2b17f9,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x117dba(0x236)]['push'](_0xa8338e),this[_0x117dba(0x28e)][_0x117dba(0x1c0)](_0xa8338e,b['TEXT_RANGE_LAYER_INDEX']);}[_0xbd72b5(0x2b3)](_0x2a3589){const _0x35c0b5=_0x2a3589[0x0],_0xe72882=_0x35c0b5[0x0],_0x19601c=_0x35c0b5[0x2],{x:_0x50c374,y:_0x120d1f}=_0xe72882,{x:_0x2916f9,y:_0x51a108}=_0x19601c;return{'left':_0x50c374,'top':_0x120d1f,'width':_0x2916f9-_0x50c374,'height':_0x51a108-_0x120d1f};}[_0xbd72b5(0x390)](){const _0x467b6c=_0xbd72b5,{scaleX:_0x5a9c7f,scaleY:_0x2433a0}=this[_0x467b6c(0x28e)][_0x467b6c(0x325)]();return Math[_0x467b6c(0x3a8)](_0x5a9c7f,_0x2433a0);}}var It=Object['getOwnPropertyDescriptor'],vt=(_0x347d00,_0x38b7da,_0x38e1ec,_0x4b89e9)=>{for(var _0x5b520f=_0x4b89e9>0x1?void 0x0:_0x4b89e9?It(_0x38b7da,_0x38e1ec):_0x38b7da,_0x5cd882=_0x347d00['length']-0x1,_0x505eb7;_0x5cd882>=0x0;_0x5cd882--)(_0x505eb7=_0x347d00[_0x5cd882])&&(_0x5b520f=_0x505eb7(_0x5b520f)||_0x5b520f);return _0x5b520f;},W=(_0x24d37f,_0x27c669)=>(_0x42ed43,_0x396faf)=>_0x27c669(_0x42ed43,_0x396faf,_0x24d37f);let Ie=class extends a[_0xbd72b5(0x283)]{constructor(_0x33bcb2,_0x597998,_0x39f72c,_0x4d4084,_0x58048b){const _0x4d192a=_0xbd72b5;super(),h(this,_0x4d192a(0x37b),[]),h(this,'_cursors',[]),(this[_0x4d192a(0x33b)]=_0x33bcb2,this[_0x4d192a(0x36e)]=_0x597998,this[_0x4d192a(0x17a)]=_0x39f72c,this[_0x4d192a(0x29d)]=_0x4d4084,this[_0x4d192a(0x398)]=_0x58048b,this[_0x4d192a(0x1c9)]());}[_0xbd72b5(0x1c9)](){const _0x3e798a=_0xbd72b5,_0x2f6d90=this[_0x3e798a(0x33b)][_0x3e798a(0x1f4)],_0x460e0c=this[_0x3e798a(0x36e)];this[_0x3e798a(0x323)](d[_0x3e798a(0x3f7)]([this['_collabCursorController']['getCollabCursors$'](_0x2f6d90),this[_0x3e798a(0x398)][_0x3e798a(0x3cc)]])[_0x3e798a(0x1db)]($[_0x3e798a(0x1de)](([_0xb65bad,_0x30b542])=>({'skeleton':_0x460e0c[_0x3e798a(0x19c)](),'cursors':[..._0xb65bad[_0x3e798a(0x2b1)]()][_0x3e798a(0x31f)](_0x55a3b0=>({..._0x55a3b0,'color':this['_themeService']['getColorFromTheme'](_0x55a3b0['color'])}))})))['subscribe'](_0x7b3369=>{const _0x59a960=_0x3e798a;if(this[_0x59a960(0x37c)](),_0x7b3369){const {skeleton:_0x29e8fb,cursors:_0x163891}=_0x7b3369;this[_0x59a960(0x3fc)](_0x29e8fb,_0x163891);}})),this[_0x3e798a(0x2c8)](),this['_initCommandExecutedListener']();}[_0xbd72b5(0x3fc)](_0x207d1b,_0x4dd06b){const _0x227c86=_0xbd72b5,{scene:_0x3f765a,mainComponent:_0x384c23}=this[_0x227c86(0x33b)],_0x3bfe6c=_0x4dd06b[_0x227c86(0x1de)](_0x36308c=>new De(_0x36308c,_0x3f765a,_0x207d1b,_0x384c23));this[_0x227c86(0x37b)]=_0x3bfe6c,this[_0x227c86(0x382)]=_0x4dd06b;}['_refreshCollabCursors'](){const _0x4912fb=_0xbd72b5;this['_removeCollabCursors']();const {scene:_0x2922fb,mainComponent:_0x45036a}=this['_context'],_0x76cf4c=this['_docSkeletonManagerService']['getSkeleton'](),_0x2f2201=this[_0x4912fb(0x382)]['map'](_0x1d4930=>new De(_0x1d4930,_0x2922fb,_0x76cf4c,_0x45036a));this[_0x4912fb(0x37b)]=_0x2f2201;}[_0xbd72b5(0x37c)](){const _0x1742f7=_0xbd72b5;this['_cursorShapes'][_0x1742f7(0x276)](_0x20d0c1=>_0x20d0c1[_0x1742f7(0x32e)]()),this[_0x1742f7(0x37b)]=[];}[_0xbd72b5(0x18d)](){const _0xae3eb5=_0xbd72b5,_0x274ae9=[b[_0xae3eb5(0x20e)]['id']];this[_0xae3eb5(0x323)](this[_0xae3eb5(0x29d)][_0xae3eb5(0x3eb)](_0x28b873=>{const _0x447884=_0xae3eb5;_0x274ae9[_0x447884(0x214)](_0x28b873['id'])&&_0x28b873['params'][_0x447884(0x1f4)]===this['_context'][_0x447884(0x1f4)]&&this['_refreshCollabCursors']();}));}[_0xbd72b5(0x2c8)](){const _0x3b7f4a=_0xbd72b5;this[_0x3b7f4a(0x323)](a[_0x3b7f4a(0x278)](this[_0x3b7f4a(0x33b)][_0x3b7f4a(0x366)][_0x3b7f4a(0x395)])[_0x3b7f4a(0x1db)]($['filter'](_0x238e0b=>_0x238e0b[_0x3b7f4a(0x1fa)]===p[_0x3b7f4a(0x251)][_0x3b7f4a(0x2f0)]),$[_0x3b7f4a(0x375)](0x10))[_0x3b7f4a(0x1fc)](()=>{this['_refreshCollabCursors']();}));}};Ie=vt([W(0x1,a[_0xbd72b5(0x1d6)](Y[_0xbd72b5(0x1f3)])),W(0x2,a[_0xbd72b5(0x1d6)](x)),W(0x3,a[_0xbd72b5(0x3ea)]),W(0x4,a[_0xbd72b5(0x1d6)](a[_0xbd72b5(0x1e9)]))],Ie);const gt=0x1,mt=1.5;class Ae extends p[_0xbd72b5(0x3fb)]{constructor(_0x1e4110,_0x11aeeb){const _0x10e73d=_0xbd72b5;super(_0x1e4110,_0x11aeeb),h(this,_0x10e73d(0x1c3)),h(this,_0x10e73d(0x191),!0x1),h(this,_0x10e73d(0x28b)),h(this,_0x10e73d(0x358),''),h(this,'_labelPosition',_0x10e73d(0x39c)),h(this,_0x10e73d(0x3a7)),(_0x11aeeb&&this['setShapeProps'](_0x11aeeb),this[_0x10e73d(0x1f6)]['subscribeEvent'](()=>this[_0x10e73d(0x3ff)]({'hovered':!0x0})),this[_0x10e73d(0x327)][_0x10e73d(0x209)](()=>this[_0x10e73d(0x3ff)]({'hovered':!0x1})));}[_0xbd72b5(0x3ff)](_0x4ceca2){const _0x54c72f=_0xbd72b5;var _0x3ca022,_0x87badb,_0x380f53,_0x20df35,_0x3101de,_0x1d364a;this['_color']=(_0x3ca022=_0x4ceca2[_0x54c72f(0x329)])!=null?_0x3ca022:this['_color'],this['_hovered']=(_0x87badb=_0x4ceca2[_0x54c72f(0x2d1)])!=null?_0x87badb:this['_hovered'],this[_0x54c72f(0x28b)]=(_0x380f53=_0x4ceca2[_0x54c72f(0x2c6)])!=null?_0x380f53:this['_range'],this[_0x54c72f(0x358)]=(_0x20df35=_0x4ceca2['name'])!=null?_0x20df35:this[_0x54c72f(0x358)],this[_0x54c72f(0x2e2)]=(_0x3101de=_0x4ceca2['labelPosition'])!=null?_0x3101de:this['_labelPosition'],this['_backgroundColor']=(_0x1d364a=_0x4ceca2[_0x54c72f(0x202)])!=null?_0x1d364a:this[_0x54c72f(0x3a7)],this[_0x54c72f(0x3e6)]({'width':_0x4ceca2['width'],'height':_0x4ceca2[_0x54c72f(0x27e)]});}['onMouseMove'](_0x5e4837){const _0xfa5324=_0xbd72b5,{row:_0x59ca00,column:_0x2a9957}=_0x5e4837;if(_0x59ca00>=this['_range']['startRow']&&_0x59ca00<=this[_0xfa5324(0x28b)]['endRow']&&_0x2a9957>=this[_0xfa5324(0x28b)]['startColumn']&&_0x2a9957<=this['_range']['endColumn']){this[_0xfa5324(0x3ff)]({'hovered':!0x0});return;}this[_0xfa5324(0x3ff)]({'hovered':!0x1});}[_0xbd72b5(0x3b2)](_0x597719){return!0x1;}[_0xbd72b5(0x1a4)](_0x51497d){const _0x221ae9=_0xbd72b5;p[_0x221ae9(0x354)][_0x221ae9(0x31b)](_0x51497d,{'width':this[_0x221ae9(0x2d9)],'height':this['height'],'strokeWidth':mt,'stroke':this[_0x221ae9(0x1c3)],'evented':!0x1,'fill':this[_0x221ae9(0x3a7)]}),this[_0x221ae9(0x191)]&&(_0x51497d[_0x221ae9(0x400)](),_0x51497d[_0x221ae9(0x291)](0x1,0x0,0x0,0x1,this['width'],this[_0x221ae9(0x2e2)]==='bottom'?0x0:-0x14),ee[_0x221ae9(0x31b)](_0x51497d,{'text':this[_0x221ae9(0x358)],'color':this[_0x221ae9(0x1c3)]}),_0x51497d[_0x221ae9(0x355)]());}}var Ct=Object[_0xbd72b5(0x402)],pt=(_0x38ece9,_0x3a4a6b,_0x526db5,_0x1b858f)=>{for(var _0x24baee=_0x1b858f>0x1?void 0x0:_0x1b858f?Ct(_0x3a4a6b,_0x526db5):_0x3a4a6b,_0x385ad2=_0x38ece9['length']-0x1,_0x521acb;_0x385ad2>=0x0;_0x385ad2--)(_0x521acb=_0x38ece9[_0x385ad2])&&(_0x24baee=_0x521acb(_0x24baee)||_0x24baee);return _0x24baee;},ae=(_0x3cf39f,_0x14fa7c)=>(_0x221b65,_0x5b074b)=>_0x14fa7c(_0x221b65,_0x5b074b,_0x3cf39f);const bt=0x1389;let ve=class extends a[_0xbd72b5(0x283)]{constructor(_0x43e2d6,_0x2d355,_0x15eccb,_0x4520ed){const _0x2ed856=_0xbd72b5;super(),h(this,'_cursors',new Set()),h(this,_0x2ed856(0x35e),null),(this[_0x2ed856(0x33b)]=_0x43e2d6,this[_0x2ed856(0x3d5)]=_0x2d355,this['_collabCursorController']=_0x15eccb,this[_0x2ed856(0x398)]=_0x4520ed,this[_0x2ed856(0x1c9)]());}[_0xbd72b5(0x1c9)](){const _0x2cf5ed=_0xbd72b5;this[_0x2cf5ed(0x3d5)][_0x2cf5ed(0x22c)][_0x2cf5ed(0x1db)]($['takeUntil'](this[_0x2cf5ed(0x1a2)]),$[_0x2cf5ed(0x353)](_0x4e14cf=>{const _0x2a2ca3=_0x2cf5ed;if(_0x4e14cf){const _0x3f5d3f=_0x4e14cf['sheetId'];return d['combineLatest'](this[_0x2a2ca3(0x17a)][_0x2a2ca3(0x24f)](this[_0x2a2ca3(0x33b)][_0x2a2ca3(0x1f4)]),this[_0x2a2ca3(0x398)][_0x2a2ca3(0x3cc)])['pipe']($['map'](([_0x2a1ccc,_0x39438c])=>{const _0x42db08=_0x2a2ca3,_0x6df853=new Map();return _0x2a1ccc[_0x42db08(0x276)]((_0x51d086,_0x2658df)=>{const _0x2bc2d9=_0x42db08;if(_0x51d086[_0x2bc2d9(0x2a4)]===_0x3f5d3f){const _0x2d5a36={..._0x51d086};_0x2d5a36[_0x2bc2d9(0x329)]=this[_0x2bc2d9(0x398)][_0x2bc2d9(0x2db)](_0x51d086[_0x2bc2d9(0x329)]),_0x6df853['set'](_0x2658df,_0x2d5a36);}}),{'skeleton':_0x4e14cf,'cursors':_0x6df853};}));}return d['of']({'skeleton':null,'cursors':new Map()});}))[_0x2cf5ed(0x1fc)](({skeleton:_0x2c25e5,cursors:_0x3f3ac5})=>{const _0x274334=_0x2cf5ed;this['_removeCollabCursors'](),_0x2c25e5&&this[_0x274334(0x3fc)](_0x2c25e5,_0x3f3ac5);}),this['_sheetSkeletonManagerService'][_0x2cf5ed(0x22c)]['subscribe'](_0x20a22f=>{const _0x43f3b0=_0x2cf5ed;if(_0x20a22f==null)return;const {skeleton:_0x236c77}=_0x20a22f,{scene:_0x4318e9}=this[_0x43f3b0(0x33b)];_0x4318e9[_0x43f3b0(0x180)][_0x43f3b0(0x209)](a[_0x43f3b0(0x33a)](_0x351cf4=>{const _0x234319=_0x43f3b0;var _0x5191eb,_0x4c5980;const {offsetX:_0x5093b9,offsetY:_0x773ff3}=_0x351cf4,{x:_0x335430,y:_0x3175b6}=_0x4318e9[_0x234319(0x288)](p['Vector2'][_0x234319(0x3b9)]([_0x5093b9,_0x773ff3])),{scaleX:_0x205d3b,scaleY:_0x46596f}=_0x4318e9[_0x234319(0x325)](),_0x1c3677=_0x4318e9[_0x234319(0x1e4)](p[_0x234319(0x3db)][_0x234319(0x26e)]),_0x58d4f8=_0x4318e9['getVpScrollXYInfoByPosToVp'](p[_0x234319(0x17c)][_0x234319(0x3b9)]([_0x335430,_0x3175b6]),_0x1c3677),_0x39c605=_0x236c77['getCellPositionByOffset'](_0x5093b9,_0x773ff3,_0x205d3b,_0x46596f,_0x58d4f8);((_0x5191eb=this[_0x234319(0x35e)])==null?void 0x0:_0x5191eb['column'])===_0x39c605[_0x234319(0x264)]&&((_0x4c5980=this[_0x234319(0x35e)])==null?void 0x0:_0x4c5980[_0x234319(0x210)])===_0x39c605[_0x234319(0x210)]||this['_cursors']['forEach'](_0x246333=>{const _0x5998ba=_0x234319;_0x246333[_0x5998ba(0x194)](_0x39c605);});},0x64));});}[_0xbd72b5(0x3fc)](_0x52dc60,_0x501c20){const _0x341313=_0xbd72b5;var _0x6c3aa9;const _0x2c175c=(_0x6c3aa9=this[_0x341313(0x3d5)][_0x341313(0x36d)]())==null?void 0x0:_0x6c3aa9['skeleton'];if(!_0x2c175c)return;const _0x5ce95c=this[_0x341313(0x274)]();if(!_0x5ce95c)return;this[_0x341313(0x382)]['forEach'](_0x22c12c=>{const _0x3c44f9=_0x341313;_0x22c12c[_0x3c44f9(0x286)]();});const {scene:_0x2005b1}=_0x5ce95c,_0x203419=Et(Array[_0x341313(0x20b)](_0x501c20[_0x341313(0x2b1)]()))[_0x341313(0x1de)](_0x47a532=>{const _0x23c22e=_0x341313,{color:_0xf3e76f,range:_0x9f7d1b,name:_0x2ffe95,selection:_0x38ae94,sheetID:_0x29b868}=_0x47a532,{startColumn:_0x5bf495,startRow:_0x419750,endColumn:_0xc7110b,endRow:_0x70b226}=_0x9f7d1b,_0x714fe1=X['getCoordByCell'](_0x419750,_0x5bf495,_0x2005b1,_0x2c175c),_0x4c133a=X[_0x23c22e(0x1d0)](_0x70b226,_0xc7110b,_0x2005b1,_0x2c175c),{columnHeaderHeightAndMarginTop:_0x42e855}=_0x2c175c,{startX:_0x366635,startY:_0xa4460e}=_0x714fe1,{endX:_0x2a217a,endY:_0x513788}=_0x4c133a,_0x1ee8f9=_0x2a217a-_0x366635,_0x1579d5=_0x513788-_0xa4460e,_0x3cebdc={'labelPosition':_0xa4460e-_0x42e855>=K?_0x23c22e(0x39c):_0x23c22e(0x1ce),'sheetID':_0x29b868,'range':_0x9f7d1b,'color':_0xf3e76f,'name':_0x2ffe95,'selection':_0x38ae94,'left':_0x366635,'top':_0xa4460e,'width':_0x1ee8f9,'height':_0x1579d5,'evented':!0x1,'zIndex':bt};return new Ae(_0x2ffe95,_0x3cebdc);});_0x2005b1[_0x341313(0x2cb)](_0x203419,gt),this[_0x341313(0x382)]=new Set(_0x203419);}[_0xbd72b5(0x37c)](){const _0x461b9e=_0xbd72b5;var _0x303b7a;(_0x303b7a=this['_cursors'])==null||_0x303b7a[_0x461b9e(0x276)](_0x468b31=>_0x468b31[_0x461b9e(0x32e)]());}[_0xbd72b5(0x274)](){const _0x200256=_0xbd72b5;return X['getSheetObject'](this[_0x200256(0x33b)][_0x200256(0x292)],this[_0x200256(0x33b)]);}};ve=pt([ae(0x1,a[_0xbd72b5(0x1d6)](X['SheetSkeletonManagerService'])),ae(0x2,a['Inject'](x)),ae(0x3,a[_0xbd72b5(0x1d6)](a[_0xbd72b5(0x1e9)]))],ve);function Et(_0x18902e){const _0x3d2b33=_0xbd72b5,_0x5df69a=new Map();return _0x18902e[_0x3d2b33(0x276)](_0x4b3af3=>{const _0x3e65c8=_0x3d2b33;if(_0x5df69a[_0x3e65c8(0x3c8)](_0x4b3af3['selection'])){const _0x212e95=_0x5df69a[_0x3e65c8(0x206)](_0x4b3af3[_0x3e65c8(0x391)]);_0x212e95[_0x3e65c8(0x1dd)]+=',\x20'+_0x4b3af3[_0x3e65c8(0x1dd)];}else _0x5df69a['set'](_0x4b3af3[_0x3e65c8(0x391)],_0x4b3af3);}),Array[_0x3d2b33(0x20b)](_0x5df69a[_0x3d2b33(0x2b1)]());}var E=function(){const _0x120a18=_0xbd72b5;return E=Object['assign']||function(_0x434c81){const _0x231345=_0x4dae;for(var _0x340861,_0x5a9f68=0x1,_0x5b7a4a=arguments[_0x231345(0x1cf)];_0x5a9f68<_0x5b7a4a;_0x5a9f68++){_0x340861=arguments[_0x5a9f68];for(var _0x4f05fd in _0x340861)Object['prototype'][_0x231345(0x2e9)]['call'](_0x340861,_0x4f05fd)&&(_0x434c81[_0x4f05fd]=_0x340861[_0x4f05fd]);}return _0x434c81;},E[_0x120a18(0x1d5)](this,arguments);},Tt=function(_0x573f4d,_0x33c2dc){const _0xf5082d=_0xbd72b5;var _0x1b3f1e={};for(var _0x4c1196 in _0x573f4d)Object[_0xf5082d(0x1b0)][_0xf5082d(0x2e9)][_0xf5082d(0x392)](_0x573f4d,_0x4c1196)&&_0x33c2dc[_0xf5082d(0x1c8)](_0x4c1196)<0x0&&(_0x1b3f1e[_0x4c1196]=_0x573f4d[_0x4c1196]);if(_0x573f4d!=null&&typeof Object[_0xf5082d(0x1ed)]==_0xf5082d(0x272)){for(var _0x4f86e9=0x0,_0x4c1196=Object[_0xf5082d(0x1ed)](_0x573f4d);_0x4f86e9<_0x4c1196[_0xf5082d(0x1cf)];_0x4f86e9++)_0x33c2dc[_0xf5082d(0x1c8)](_0x4c1196[_0x4f86e9])<0x0&&Object[_0xf5082d(0x1b0)][_0xf5082d(0x19b)]['call'](_0x573f4d,_0x4c1196[_0x4f86e9])&&(_0x1b3f1e[_0x4c1196[_0x4f86e9]]=_0x573f4d[_0x4c1196[_0x4f86e9]]);}return _0x1b3f1e;},pe=M['forwardRef'](function(_0x212ef7,_0x4c7b1c){const _0x5459bb=_0xbd72b5;var _0x209ca8=_0x212ef7[_0x5459bb(0x34e)],_0x556c98=_0x212ef7['id'],_0x27b6f7=_0x212ef7[_0x5459bb(0x2ba)],_0x31e485=_0x212ef7['extend'],_0x36444e=Tt(_0x212ef7,[_0x5459bb(0x34e),'id','className',_0x5459bb(0x20f)]),_0x3f23ad=_0x5459bb(0x3d7)[_0x5459bb(0x394)](_0x556c98,'\x20')[_0x5459bb(0x394)](_0x27b6f7||'')[_0x5459bb(0x379)](),_0x2381dd=M['useRef']('_'[_0x5459bb(0x394)](Dt()));return we(_0x209ca8,''[_0x5459bb(0x394)](_0x556c98),{'defIds':_0x209ca8['defIds'],'idSuffix':_0x2381dd[_0x5459bb(0x266)]},E({'ref':_0x4c7b1c,'className':_0x3f23ad},_0x36444e),_0x31e485);});function we(_0x26c4a7,_0xf7b250,_0x172c45,_0x4b991e,_0x2520ca){const _0x14d71f=_0xbd72b5;return M[_0x14d71f(0x208)](_0x26c4a7['tag'],E(E({'key':_0xf7b250},Ot(_0x26c4a7,_0x172c45,_0x2520ca)),_0x4b991e),(Rt(_0x26c4a7,_0x172c45)[_0x14d71f(0x313)]||[])[_0x14d71f(0x1de)](function(_0x146967,_0x4589be){const _0x40871e=_0x14d71f;return we(_0x146967,''[_0x40871e(0x394)](_0xf7b250,'-')[_0x40871e(0x394)](_0x26c4a7[_0x40871e(0x3e2)],'-')[_0x40871e(0x394)](_0x4589be),_0x172c45,void 0x0,_0x2520ca);}));}function Ot(_0x3d4a1a,_0x5b12d1,_0x2ad590){const _0x31c82b=_0xbd72b5;var _0xca343=E({},_0x3d4a1a[_0x31c82b(0x356)]);_0x2ad590!=null&&_0x2ad590[_0x31c82b(0x1d8)]&&_0xca343['fill']===_0x31c82b(0x1d8)&&(_0xca343[_0x31c82b(0x403)]=_0x2ad590[_0x31c82b(0x1d8)]),_0x3d4a1a[_0x31c82b(0x3e2)]===_0x31c82b(0x2dd)&&_0xca343['id']&&(_0xca343['id']=_0xca343['id']+_0x5b12d1['idSuffix']),Object[_0x31c82b(0x2bd)](_0xca343)[_0x31c82b(0x276)](function(_0x418125){const _0x1cc1ab=_0x31c82b;var _0x296683=_0x418125[0x0],_0x571be8=_0x418125[0x1];_0x296683===_0x1cc1ab(0x2dd)&&typeof _0x571be8==_0x1cc1ab(0x2ce)&&(_0xca343[_0x296683]=_0x571be8[_0x1cc1ab(0x3b4)](/url\(#(.*)\)/,'url(#$1'[_0x1cc1ab(0x394)](_0x5b12d1[_0x1cc1ab(0x3a3)],')')));});var _0x431888=_0x5b12d1[_0x31c82b(0x260)];return!_0x431888||_0x431888[_0x31c82b(0x1cf)]===0x0||(_0x3d4a1a[_0x31c82b(0x3e2)]===_0x31c82b(0x187)&&_0xca343[_0x31c82b(0x22d)]&&(_0xca343[_0x31c82b(0x22d)]=_0xca343[_0x31c82b(0x22d)]+_0x5b12d1[_0x31c82b(0x3a3)]),Object[_0x31c82b(0x2bd)](_0xca343)[_0x31c82b(0x276)](function(_0xe83910){const _0x2586e1=_0x31c82b;var _0x235a80=_0xe83910[0x0],_0x25b2d6=_0xe83910[0x1];typeof _0x25b2d6=='string'&&(_0xca343[_0x235a80]=_0x25b2d6[_0x2586e1(0x3b4)](/url\(#(.*)\)/,_0x2586e1(0x301)[_0x2586e1(0x394)](_0x5b12d1[_0x2586e1(0x3a3)],')')));})),_0xca343;}function Rt(_0x42b042,_0x10ac38){const _0x653a2d=_0xbd72b5;var _0x2cc150,_0x23b65d=_0x10ac38[_0x653a2d(0x260)];return!_0x23b65d||_0x23b65d[_0x653a2d(0x1cf)]===0x0?_0x42b042:_0x42b042[_0x653a2d(0x3e2)]===_0x653a2d(0x176)&&(!((_0x2cc150=_0x42b042['children'])===null||_0x2cc150===void 0x0)&&_0x2cc150[_0x653a2d(0x1cf)])?E(E({},_0x42b042),{'children':_0x42b042[_0x653a2d(0x313)]['map'](function(_0x4dca02){const _0x512d4f=_0x653a2d;return typeof _0x4dca02[_0x512d4f(0x356)]['id']==_0x512d4f(0x2ce)&&_0x23b65d&&_0x23b65d[_0x512d4f(0x1c8)](_0x4dca02[_0x512d4f(0x356)]['id'])>-0x1?E(E({},_0x4dca02),{'attrs':E(E({},_0x4dca02[_0x512d4f(0x356)]),{'id':_0x4dca02[_0x512d4f(0x356)]['id']+_0x10ac38['idSuffix']})}):_0x4dca02;})}):_0x42b042;}function Dt(){const _0x5275f9=_0xbd72b5;return Math[_0x5275f9(0x3ad)]()[_0x5275f9(0x352)](0x24)[_0x5275f9(0x249)](0x2,0x8);}pe[_0xbd72b5(0x17d)]=_0xbd72b5(0x374);var Ut={'tag':_0xbd72b5(0x262),'attrs':{'fill':_0xbd72b5(0x215),'viewBox':'0\x200\x2016\x2016','width':'1em','height':_0xbd72b5(0x197)},'children':[{'tag':'g','attrs':{'clipPath':_0xbd72b5(0x1b4)},'children':[{'tag':_0xbd72b5(0x337),'attrs':{'stroke':_0xbd72b5(0x295),'d':_0xbd72b5(0x3cd),'strokeLinecap':_0xbd72b5(0x27c),'strokeLinejoin':'round','strokeWidth':1.2}}]},{'tag':_0xbd72b5(0x176),'attrs':{},'children':[{'tag':_0xbd72b5(0x1e3),'attrs':{'id':'off-line-single_clip0_910_343'},'children':[{'tag':_0xbd72b5(0x337),'attrs':{'fill':'#fff','d':_0xbd72b5(0x3c6)}}]}]}],'defIds':[_0xbd72b5(0x321)]},ye=M[_0xbd72b5(0x31a)](function(_0x37738a,_0x14f08d){const _0x5691d2=_0xbd72b5;return M[_0x5691d2(0x208)](pe,Object[_0x5691d2(0x2ff)]({},_0x37738a,{'id':'off-line-single','ref':_0x14f08d,'icon':Ut}));});ye[_0xbd72b5(0x17d)]='OffLineSingle';var Nt={'tag':_0xbd72b5(0x262),'attrs':{'fill':_0xbd72b5(0x215),'viewBox':_0xbd72b5(0x2ee),'width':_0xbd72b5(0x197),'height':_0xbd72b5(0x197)},'children':[{'tag':'g','attrs':{'clipPath':_0xbd72b5(0x37e)},'children':[{'tag':'path','attrs':{'stroke':'currentColor','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':_0xbd72b5(0x27c),'strokeLinejoin':_0xbd72b5(0x27c),'strokeWidth':1.2}}]},{'tag':_0xbd72b5(0x176),'attrs':{},'children':[{'tag':'clipPath','attrs':{'id':_0xbd72b5(0x21d)},'children':[{'tag':_0xbd72b5(0x337),'attrs':{'fill':_0xbd72b5(0x3b7),'d':_0xbd72b5(0x3c6),'transform':_0xbd72b5(0x328)}}]}]}],'defIds':[_0xbd72b5(0x21d)]},$e=M[_0xbd72b5(0x31a)](function(_0x35dce7,_0x18d6ff){const _0x4c7e64=_0xbd72b5;return M[_0x4c7e64(0x208)](pe,Object[_0x4c7e64(0x2ff)]({},_0x35dce7,{'id':_0x4c7e64(0x250),'ref':_0x18d6ff,'icon':Nt}));});$e['displayName']=_0xbd72b5(0x3f8);function Mt(_0x304872){const _0x17f7f7=_0xbd72b5;switch(_0x304872){case u[_0x17f7f7(0x1a1)][_0x17f7f7(0x3dd)]:return _0x17f7f7(0x2b5);case u[_0x17f7f7(0x1a1)][_0x17f7f7(0x25a)]:return'collabStatus.conflict';case u[_0x17f7f7(0x1a1)][_0x17f7f7(0x243)]:return _0x17f7f7(0x378);case u[_0x17f7f7(0x1a1)][_0x17f7f7(0x184)]:return _0x17f7f7(0x199);case u[_0x17f7f7(0x1a1)][_0x17f7f7(0x234)]:case u[_0x17f7f7(0x1a1)][_0x17f7f7(0x3da)]:return'collabStatus.syncing';case u[_0x17f7f7(0x1a1)][_0x17f7f7(0x38f)]:case u[_0x17f7f7(0x1a1)]['PENDING']:return _0x17f7f7(0x32c);}}function xe(_0x57aae4){const _0x2d1701=_0xbd72b5,{status$:_0x15b058}=_0x57aae4,_0x4690b0=T[_0x2d1701(0x1ff)](_0x15b058,u[_0x2d1701(0x1a1)]['NOT_COLLAB']),_0x58a989=T['useDependency'](a['LocaleService']),_0x181feb=T['useDependency'](u[_0x2d1701(0x307)]),_0x98b7e1=_0x4690b0!==u[_0x2d1701(0x1a1)][_0x2d1701(0x3dd)],_0x2a3f5b=_0x58a989['t'](Mt(_0x4690b0)),_0x74fb7a=_0x98b7e1?P[_0x2d1701(0x388)]($e,{}):P[_0x2d1701(0x388)](ye,{}),_0x56ce1e=M[_0x2d1701(0x31c)](()=>{const _0x5836b4=_0x2d1701;_0x98b7e1||_0x181feb[_0x5836b4(0x2a1)]();},[_0x98b7e1,_0x181feb]);function _0x154f04(){const _0x1646a4=_0x2d1701;return P[_0x1646a4(0x189)](_0x1646a4(0x2c3),{'className':_0x1646a4(0x23e),'onClick':_0x56ce1e,'children':[P[_0x1646a4(0x388)](_0x1646a4(0x2c3),{'className':D['clsx']('univer-flex\x20univer-mr-2\x20univer-text-xl',{'univer-text-green-500':_0x98b7e1,'univer-text-red-500':!_0x98b7e1}),'children':_0x74fb7a}),P[_0x1646a4(0x388)](_0x1646a4(0x2c3),{'className':_0x1646a4(0x384),'children':_0x2a3f5b})]});}return _0x98b7e1?_0x154f04():P[_0x2d1701(0x388)](D['Tooltip'],{'title':_0x58a989['t'](_0x2d1701(0x242)),'children':_0x154f04()});}var Lt=Object['getOwnPropertyDescriptor'],Pt=(_0x28ccbf,_0x465938,_0x166a57,_0x13f29d)=>{for(var _0xad1b0d=_0x13f29d>0x1?void 0x0:_0x13f29d?Lt(_0x465938,_0x166a57):_0x465938,_0x1c85f3=_0x28ccbf['length']-0x1,_0x2b61d9;_0x1c85f3>=0x0;_0x1c85f3--)(_0x2b61d9=_0x28ccbf[_0x1c85f3])&&(_0xad1b0d=_0x2b61d9(_0xad1b0d)||_0xad1b0d);return _0xad1b0d;},V=(_0x353d6e,_0x489411)=>(_0x59baa8,_0x5655fa)=>_0x489411(_0x59baa8,_0x5655fa,_0x353d6e);exports[_0xbd72b5(0x3fa)]=class extends a[_0xbd72b5(0x1b7)]{constructor(_0x5b6274,_0x31cc5d,_0x1bdaa9,_0x3b5a57){const _0x6f7e03=_0xbd72b5;super(),h(this,_0x6f7e03(0x3bc),new d['BehaviorSubject'](u[_0x6f7e03(0x1a1)]['NOT_COLLAB'])),(this['_univerInstanceService']=_0x5b6274,this[_0x6f7e03(0x207)]=_0x31cc5d,this['_collaborationController']=_0x1bdaa9,this['_uiPartsService']=_0x3b5a57,this[_0x6f7e03(0x23f)](),this[_0x6f7e03(0x3c4)]());}[_0xbd72b5(0x3c4)](){const _0x11a000=_0xbd72b5;this[_0x11a000(0x323)](this[_0x11a000(0x224)][_0x11a000(0x218)]['pipe'](d[_0x11a000(0x353)](()=>{const _0xbf1857=_0x11a000,_0x28b51c=this[_0xbf1857(0x224)][_0xbf1857(0x397)]();return _0x28b51c?this['_collaborationController'][_0xbf1857(0x2e6)](_0x28b51c[_0xbf1857(0x1e1)]()):d['of'](null);}),d['switchMap'](_0x63fce0=>_0x63fce0?_0x63fce0['status$']:d['of'](u['CollaborationStatus'][_0x11a000(0x184)])))['subscribe'](_0x3a2ff9=>{const _0x482852=_0x11a000;this['_status$'][_0x482852(0x2ad)](_0x3a2ff9);}));}[_0xbd72b5(0x23f)](){const _0x17e0c1=_0xbd72b5;this[_0x17e0c1(0x323)](this[_0x17e0c1(0x1ba)][_0x17e0c1(0x3b8)](T[_0x17e0c1(0x22e)][_0x17e0c1(0x23c)],()=>T['connectInjector'](At({'status$':this[_0x17e0c1(0x3bc)][_0x17e0c1(0x30a)]()}),this[_0x17e0c1(0x207)])));}},exports[_0xbd72b5(0x3fa)]=Pt([V(0x0,a[_0xbd72b5(0x3e7)]),V(0x1,a[_0xbd72b5(0x1d6)](a[_0xbd72b5(0x338)])),V(0x2,a[_0xbd72b5(0x1d6)](u[_0xbd72b5(0x335)])),V(0x3,T['IUIPartsService'])],exports[_0xbd72b5(0x3fa)]);function At(_0x25835d){const {status$:_0x41d9d2}=_0x25835d;return function(){const _0x3ed237=_0x4dae;return P[_0x3ed237(0x388)](xe,{'status$':_0x41d9d2});};}var wt=Object[_0xbd72b5(0x402)],yt=(_0x3919bd,_0x108394,_0x18ceff,_0x5404c3)=>{for(var _0x1d3689=_0x5404c3>0x1?void 0x0:_0x5404c3?wt(_0x108394,_0x18ceff):_0x108394,_0x2fd311=_0x3919bd['length']-0x1,_0x1cd51d;_0x2fd311>=0x0;_0x2fd311--)(_0x1cd51d=_0x3919bd[_0x2fd311])&&(_0x1d3689=_0x1cd51d(_0x1d3689)||_0x1d3689);return _0x1d3689;},y=(_0x2d9898,_0x282748)=>(_0x2ed767,_0x54dd88)=>_0x282748(_0x2ed767,_0x54dd88,_0x2d9898);let q=class extends a['Disposable']{constructor(_0x96815d,_0x15132f,_0x4c46fa,_0x56a7ea,_0x5d7663,_0x14abfc){const _0x317ddc=_0xbd72b5;super(),this[_0x317ddc(0x282)]=_0x96815d,this['_localCacheService']=_0x15132f,this[_0x317ddc(0x344)]=_0x4c46fa,this[_0x317ddc(0x1b9)]=_0x56a7ea,this[_0x317ddc(0x1cb)]=_0x5d7663,this[_0x317ddc(0x3bf)]=_0x14abfc,this[_0x317ddc(0x293)](),this[_0x317ddc(0x28c)]();}[_0xbd72b5(0x293)](){const _0x2a9201=_0xbd72b5;this[_0x2a9201(0x323)](this[_0x2a9201(0x282)][_0x2a9201(0x362)](()=>{const _0x44d3c6=_0x2a9201;if(this[_0x44d3c6(0x2e1)][_0x44d3c6(0x289)][_0x44d3c6(0x2c9)])return this['_localeService']['t']('collaboration-client.offline-data-not-saved');}));}[_0xbd72b5(0x28c)](){const _0xdafa9a=_0xbd72b5;this[_0xdafa9a(0x323)](this[_0xdafa9a(0x344)][_0xdafa9a(0x3cf)]['subscribe'](_0x39ee0d=>{const _0x1348b1=_0xdafa9a;_0x39ee0d['id']===u[_0x1348b1(0x36c)]['OTHER_CLIENT_EDITING']&&this['_messageService'][_0x1348b1(0x17b)]({'type':D['MessageType'][_0x1348b1(0x3df)],'content':this['_localeService']['t']('collaboration.single-unit.warning')}),_0x39ee0d['id']===u[_0x1348b1(0x36c)][_0x1348b1(0x319)]&&this[_0x1348b1(0x1b9)][_0x1348b1(0x17b)]({'type':D['MessageType']['Warning'],'content':this['_localeService']['t'](_0x1348b1(0x25d))}),_0x39ee0d['id']===u[_0x1348b1(0x36c)]['PERMISSION_DENIED']&&this[_0x1348b1(0x1cb)][_0x1348b1(0x17b)]({'title':this['_localeService']['t'](_0x1348b1(0x35b)),'content':this['_localeService']['t'](_0x1348b1(0x261)),'type':_0x1348b1(0x3ca),'duration':0x0}),_0x39ee0d['id']===u[_0x1348b1(0x36c)][_0x1348b1(0x25a)]&&this['_messageService']['show']({'type':D[_0x1348b1(0x3c9)][_0x1348b1(0x3d3)],'content':this[_0x1348b1(0x3bf)]['t'](_0x1348b1(0x25d))+'('+_0x39ee0d[_0x1348b1(0x2b9)]+')'}),_0x39ee0d['id']===u['CollaborationUIEventId']['JOIN_ROOM_FAILED']&&this[_0x1348b1(0x1b9)]['show']({'type':D[_0x1348b1(0x3c9)]['Warning'],'content':this[_0x1348b1(0x3bf)]['t'](_0x39ee0d[_0x1348b1(0x2b9)]||'')}),_0x39ee0d['id']===u['CollaborationUIEventId'][_0x1348b1(0x1ab)]&&this[_0x1348b1(0x1b9)][_0x1348b1(0x17b)]({'type':D['MessageType']['Warning'],'content':this['_localeService']['t'](_0x1348b1(0x1f9))}),_0x39ee0d['id']===u[_0x1348b1(0x36c)][_0x1348b1(0x393)]&&this[_0x1348b1(0x1b9)][_0x1348b1(0x17b)]({'type':D[_0x1348b1(0x3c9)][_0x1348b1(0x3d3)],'content':this[_0x1348b1(0x3bf)]['t'](_0x1348b1(0x38d))}),_0x39ee0d['id']===u[_0x1348b1(0x36c)]['SUBMIT_CHANGESET_TIMEOUT']&&this[_0x1348b1(0x1b9)][_0x1348b1(0x17b)]({'type':D[_0x1348b1(0x3c9)][_0x1348b1(0x3d3)],'content':this['_localeService']['t']('session.collaboration-timeout')});}));}};q=yt([y(0x0,T[_0xbd72b5(0x376)]),y(0x1,u[_0xbd72b5(0x22f)]),y(0x2,a['Inject'](u['CollaborationUIEventService'])),y(0x3,T[_0xbd72b5(0x2f8)]),y(0x4,T[_0xbd72b5(0x1fd)]),y(0x5,a[_0xbd72b5(0x1d6)](a[_0xbd72b5(0x226)]))],q);const $t=_0xbd72b5(0x369),Ue={},be=a[_0xbd72b5(0x386)](_0xbd72b5(0x1fe));function _0x3f5d(){const _0xf06ba5=['_configService','_cursorInfo$','_updateURLWithCurrentState','DisposableCollection','runRefRangeMutations','HEADER_MENU','setAlpha','univer-flex\x20univer-items-center','_initStatusComponent','_document','MemberService','collab-client.tooltip.reconnect','FETCH_MISS','ILocalStorageService','setConfig','186613qUvmoJ','_scheduleClearOtherTimer','_collabSessionService','substring','IConfigService','_memberService','href','symbol','handleIRemoveCol','getCollabCursors$','on-line-single','TRANSFORM_CHANGE_OBSERVABLE_TYPE','getItem','DocIMEInputManagerService','UPDATE_CURSOR','DocCollaborationEntity','_onRefRangeChange','BehaviorSubject','YUUMI_PROMPT_MAX_TOKENS_EXCEEDED','WebBrowserSingleActiveUnitService','CONFLICT','ITransformService','_updateSubUnitFromURLParams','collaboration.closeRoom','ranges','hide','defIds','permission.content','svg','undoState','column','_drawRectRange','current','cursorInfo$','ALREADY_EXISTS','_online','getOffsetConfig','#FFF','findNodePositionByCharIndex','textRanges','VIEW_MAIN','search','handleIRemoveRow','with','function','[RemoteUniscriptService]:\x20no\x20focused\x20unit','_getSheetObject','getRangePointData','forEach','OTHER_CLIENTS_EDITING','fromEventSubject','USER_NOT_INVITED_CODE','setActiveRange','_saveCache','round','split','height','lineTo','disableLocalCache','_hover','_beforeCloseService','RxDisposable','getUnhiddenWorksheets','exhaustSavingTask','makeDirty','registerRenderModule','getRelativeToViewportCoord','saveTaskMap','transformMutation','_range','_initEvent','rgba(255,\x20255,\x20255,\x200.01)','_scene','isTransformMutationFailure','post','transform','unit','_setupBeforeClosingHandler','_toggleOnline','currentColor','getMergeData','CollaborationEvent','origin','_revisionService','shareReplay','CommandType','INVITE_CODE_REQUIRED','_commandService','_logService','jiqing.500','LOGIN_FAILED','reconnect','APPLY_DUPLICATED','TEXT_RANGE_LAYER_INDEX','sheetID','storage','black','getDocRanges','RevisionService','[CollaborationDataLoaderController]','react/jsx-runtime','editingUnit','_textBubble','next','_cachedData','getCurrentRevOfUnit','APPLY_REVISION_CONFILICT','values','_localStorageService','_getAnchorBounding','distinctUntilChanged','collabStatus.offline','_anchorDot','ColorKit','_handleHover','data','className','executeCommand','pushState','entries','12zONZsl','RemoteUniscriptService','_docStateChangeManagerService','_docSkeleton','UNIVER_SHEET','div','setItem','_assignedColors','range','unsubscribe','_initResize','size','Module','addObjects','actions','CollaborationDataLoaderController','string','wsSessionTicketUrl','transformMutationsWithChangeset','hovered','Unknown\x20user','createInstance','min','loadUnit','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','eventID','complete','width','body','getColorFromTheme','DOC_RANGE_TYPE','mask','saveOfflineData','_docTransformIMECacheService','debug','_localCacheService','_labelPosition','getParam','_docClipboardService','key','getCollabEntity$','_colorIndex','activeSheet$','hasOwnProperty','green.600','getMember','invokeId','params','0\x200\x2017\x2016','_initDependencies','resize','unshift','setUndoRedoMutationParamsCache','MoveRangeCommandId','_initEntityListener','requireSession','getLocalCacheKey','push','IMessageService','getActiveRange','_imageIoService','YUUMI_AI_RUN_FAILED','_roomMembers$','clearTimeout','newValue','assign','_startDocCollabCursor','url(#$1','8784391DPTmZW','blue.400','EffectRefRangId','LOCAL_CACHE_INTERVAL','getSheetBySheetId','CollaborationSessionService','CHANGESET_REVISION_CONFILICT','INTERNAL_ERROR','asObservable','EMAIL_HAS_BEEN_BOUND','getTypeOfUnitDisposed$','SNAPSHOT_INVALID_SNAPSHOT','source','m2Prime','takeUntil','getConfig','YUUMI_ALL_TABLES_IS_INVALID','children','WECHAT_HAS_BEEN_BOUND','DEFAULT_WS_SESSION_TICKET_URL','measureText','setInterval','SetSelectionsOperation','CLOSE_ROOM','forwardRef','drawWith','useCallback','deserializeRangeWithSheet','getSheetId','flatMap','_heartbeatTimer','off-line-single_clip0_910_343','toStringTag','disposeWithMe','history','getAncestorScale','evenodd','onPointerLeave$','translate(.97)','color','_updateLocalCursor','toRgbString','collabStatus.synced','onLocalMutation','dispose','Tools','_entities','@univerjs/engine-render','rxjs/operators','purple.300','543870FJravT','CollaborationController','UNRECOGNIZED','path','Injector','@univerjs/sheets-ui','debounce','_context','syncEditingCollabCursor','getUnitStatus$','_eventUnsubscribe','sessionTicket','DeleteRangeMoveUpCommandId','1317316VYvsRJ','Subject','LICENSE_EXPORT_SIZE_EXCEEDED','_collaborationUIEventService','addHandlerCallback','fillStyle','unload','IRemoteInstanceService','10768336NLuDEs','_onCursorUpdate','searchParams','then','HTTPService','icon','_disabled','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','_urlService','toString','switchMap','Rect','restore','attrs','setTimeout','_name','_docTransformStateCacheService','getCurrentUnitForType','permission.title','assignAColorForMemberID','DeleteRangeMoveLeftCommandId','_lastPointer','collab-text-anchor-','ILogService','_docSyncEditingCollabCursorService','registerBeforeClose','text','UNAUTHENTICATED','getTypeOfUnitAdded$','engine','_getSaveTimeout','YUUMI_RATE_OVER_LIMIT','collaboration-client-ui.config','getUniverSheetInstance','_collaborationController','CollaborationUIEventId','getCurrent','_docSkeletonManagerService','imageSourceType','parse','Optional','SheetsSelectionsService','_doCreateSocket','UniverIcon','throttleTime','IBeforeCloseService','defineProperty','collabStatus.fetchMiss','trim','RECT','_cursorShapes','_removeCollabCursors','ISnapshotServerService','url(#on-line-single_clip0_910_349)','_onCursorDelete','USERS_LEAVE','subunit','_cursors','handleInsertRangeMoveDown','univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','toDisposable','createIdentifier','576579akDiPY','jsx','DocSelectionManagerService','YUUMI_URL_COL_OUT_OF_RANGE','UnitStatus','collabCursorState$','session.connection-failed','handleDeleteRangeMoveUp','SYNCED','_getScale','selection','call','SOCKET_FAILED','concat','onTransformChange$','ticket','getFocusedUnit','_themeService','_transformUndoRedoStack','_handleEvent','RegularPolygon','top','...','_transformHistoryAndStateStack','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','onStarting','cursorInfo','mergeOverrideWithDependencies','idSuffix','NO_OTHER_CLIENTS_EDITING','getStateCache','_httpService','_backgroundColor','max','_id','_syncEditingCollabCursorService','fillText','_unitOnClients','random','_scheduleSaving','_registerDependencies','_instanceService','redoState','triggerDblclick','Failed','replace','LICENSE_DISTRO_REJECTED','_collabCursorState$','#fff','registerComponent','FromArray','115rVZuEQ','transformStateCache','_status$','_getMergeRange','getMemberID','_localeService','saveImage','init','getValue','NOT_FOUND','_initStatusListener','SheetCollabCursorShape','M0\x200H16V16H0z','set','has','MessageType','error','contains','currentTheme$','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','@univerjs/ui','event$','getRenderById','CollaborationSocketService','9bBErXg','Error','sessionStatus$','_sheetSkeletonManagerService','debounceTime','univerjs-icon\x20univerjs-icon-','getColor','ISocketService','AWAITING_WITH_PENDING','SHEET_VIEWPORT_KEY','INVITE_CODE_HAS_BEEN_UES','OFFLINE','INVALID_ARGUMENT','Warning','clearInterval','transformIMECache','tag','_drawAnchor','executionId','_registerRenderDependencies','transformByState','IUniverInstanceService','PY_RUNTIME_SCRIPT_ERROR','_anchor','ICommandService','onCommandExecuted','docStateChange$','UNIVER_COLLABORATION_CLIENT_WEB_PLUGIN','_session','ACTIVE_UNIT_EVENT_CHANNEL','_send','urlChange$','pluginName','@univerjs/drawing','LICENSE_IMPORT_SIZE_EXCEEDED','APPLY_NON_SEQUENTIAL_REVISION','CONNECTOR_DATA_TOO_LARGE','combineLatest','OnLineSingle','COMPLETION_FINISHED','DesktopCollaborationStatusDisplayController','Shape','_updateCollabCursors','_dataLoaderService','_entityInit$','setShapeProps','save','DependentOn','getOwnPropertyDescriptor','fill','m1Prime','defs','replaceState','UNDEFINED','handleInsertRow','_collabCursorController','show','Vector2','displayName','_handleLeaveEvent','roomMembers$','onPointerMove$','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','COLORS','runId','NOT_COLLAB','registerDependencies','_unitStatus','use','_colorAssignService','jsxs','registerRefRange','ENSURE_SNAPSHOT_EXECUTION','enableLocalCache','_initCommandExecutedListener','@univerjs/engine-formula','isActive','setStateCache','_hovered','collab-rect-range-','arc','onMouseMove','disposeUnit','_createSocketURL','1em','INVITE_CODE_ALREADY_BOUND','collabStatus.notCollab','ONLINE','propertyIsEnumerable','getSkeleton','SessionStatus','693OIpxgt','IRenderManagerService','@univerjs-pro/collaboration-client','CollaborationStatus','dispose$','roomMembers','_draw','_selfUnitIDs','handleInsertRangeMoveRight','createSocket','_transformPreviousActiveRange','_ensureSubject','YUUMI_ASYNCIO_CANCELLED','SOCKET_FAILED_RETRY','getCurrentSelections','_removeClearOtherTimer','SNAPSHOT_HAS_BEEN_REMOVED','deepClone','prototype','mutations','serializeRangeWithSheet','YUUMI_NO_CUBOID_FOR_QUESTION','url(#off-line-single_clip0_910_343)','@univerjs/core','isArray','Disposable','_cursor','_messageService','_uiPartsService','TOO_MANY_REQUESTS','merge','PERMISSION_DENIED','_config','location','addObject','_drawTextRange','YUUMI_UNABLE_LOAD_URL','_color','addClipboardHook','_handleHeartbeatEvent','Workbook','transformRemoteChangeset','indexOf','_init','fromEvent','_notificationService','RichTextEditingMutation','TEXT','bottom','length','getCoordByCell','INVALID_INVITE_CODE','filter','handleMoveRange','react','apply','Inject','APPLY_REJECT','colorChannel1','MOBILE_HAS_BEEN_BOUND','generateRandomId','pipe','_getSessionTicket','name','map','addEventListener','InsertRangeMoveDownCommandId','getUnitId','transformSelections','clipPath','getViewport','add','IDocClipboardService','yellow.400','rxjs','ThemeService','UniverCollaborationClientUIPlugin','some','getUndoRedoMutationParamsCache','getOwnPropertySymbols','_clearOtherTimers','popstate','_setupSubUnitSync','handleInsertCol','APPLY_PERMISSION_DENIED','DocSkeletonManagerService','unitId','_saveTaskMap','onPointerEnter$','isTransformMutationsWithChangesetSuccess','_docTransformSelectionsService','session.will-retry','type','BrowserCollaborationSocketService','subscribe','INotificationService','uni.network.url-service','useObservable','delete','_hideTimer','backgroundColor','_transformService','IImageIoService','all','get','_injector','createElement','subscribeEvent','fillRule','from','SetTextSelectionsOperation','YUUMI_TABLE_NOT_FOUND_IN_UNIT','SetDocZoomRatioOperation','extend','row','UNIVER_DOC','/run/','onRendered','includes','none','UniverInstanceType','code','focused$','DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT','_renderManagerService','143106WrSsvZ','send','on-line-single_clip0_910_349','InsertColCommandId','_toggleOffline','setParam','IURLService','touchDependencies','YUUMI_SUBSCRIPTION_NOT_FOUND','_univerInstanceService','subUnitId','LocaleService','doc.mutation.rich-text-editing','RemoveColCommandId','DataLoaderService','stringify','unitID','currentSkeleton$','xlink:href','BuiltInUIPart','ILocalCacheService','_scheduleHeartbeat','_startSheetCollabCursor','_refRangeService','_handleJoinEvent','AWAITING','getActiveSheet','_shapes'];_0x3f5d=function(){return _0xf06ba5;};return _0x3f5d();}var xt=Object[_0xbd72b5(0x402)],jt=(_0x277767,_0x4d342a,_0x20c90b,_0x1b50fa)=>{const _0x3942e1=_0xbd72b5;for(var _0x253cea=_0x1b50fa>0x1?void 0x0:_0x1b50fa?xt(_0x4d342a,_0x20c90b):_0x4d342a,_0x3543b5=_0x277767[_0x3942e1(0x1cf)]-0x1,_0x3db2d2;_0x3543b5>=0x0;_0x3543b5--)(_0x3db2d2=_0x277767[_0x3543b5])&&(_0x253cea=_0x3db2d2(_0x253cea)||_0x253cea);return _0x253cea;},H=(_0x170dd3,_0x457358)=>(_0x3641cd,_0x235d2e)=>_0x457358(_0x3641cd,_0x235d2e,_0x170dd3);exports['CollaborationDataLoaderController']=class extends a[_0xbd72b5(0x283)]{constructor(_0x543940,_0x561f71,_0xd1575c,_0x15621f,_0x50534d){const _0x38ff08=_0xbd72b5;super(),this[_0x38ff08(0x351)]=_0x543940,this[_0x38ff08(0x29e)]=_0x561f71,this['_commandService']=_0xd1575c,this[_0x38ff08(0x3fd)]=_0x15621f,_0x50534d?_0x50534d==null||_0x50534d['whenReady']()[_0x38ff08(0x34c)](()=>this['_init']()):(this[_0x38ff08(0x29e)]['debug'](_0x38ff08(0x2a9),'No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.'),this['_init']());}async[_0xbd72b5(0x1c9)](){const _0x342a06=_0xbd72b5,_0x13e363=this['_urlService'][_0x342a06(0x2e3)]('unit'),_0x4c6037=this[_0x342a06(0x351)][_0x342a06(0x2e3)](_0x342a06(0x1fa)),_0x5161d3=this[_0x342a06(0x351)][_0x342a06(0x2e3)](_0x342a06(0x381));if(!_0x13e363||!_0x4c6037){this[_0x342a06(0x29e)][_0x342a06(0x2e0)](_0x342a06(0x2a9),_0x342a06(0x181));return;}const _0x5ca0a5=await this['_dataLoaderService'][_0x342a06(0x2d5)](_0x13e363,Number(_0x4c6037),_0x5161d3);_0x5ca0a5&&_0x5ca0a5 instanceof a[_0x342a06(0x1c6)]&&this[_0x342a06(0x1f0)](_0x5ca0a5);}async[_0xbd72b5(0x1f0)](_0x2de546){const _0x3f0e13=_0xbd72b5;await this['_updateSubUnitFromURLParams'](_0x2de546),_0x2de546[_0x3f0e13(0x2e8)][_0x3f0e13(0x1db)](d[_0x3f0e13(0x310)](this[_0x3f0e13(0x1a2)]))[_0x3f0e13(0x1fc)](_0x1a602e=>{const _0x22dffa=_0x3f0e13;_0x1a602e&&this[_0x22dffa(0x239)](_0x1a602e);}),this[_0x3f0e13(0x351)][_0x3f0e13(0x3f1)][_0x3f0e13(0x1db)](d[_0x3f0e13(0x310)](this[_0x3f0e13(0x1a2)]))['subscribe'](()=>this[_0x3f0e13(0x25c)](_0x2de546));}['_updateURLWithCurrentState'](_0x2b109b,_0x6685c4=!0x1){const _0x2977eb=_0xbd72b5,_0x5a4d97=this['_urlService'][_0x2977eb(0x2e3)]('subunit');_0x2b109b[_0x2977eb(0x31e)]()!==_0x5a4d97&&this[_0x2977eb(0x351)][_0x2977eb(0x220)](_0x2977eb(0x381),_0x2b109b['getSheetId'](),_0x6685c4);}async['_updateSubUnitFromURLParams'](_0xd16c70){const _0x3f07a0=_0xbd72b5;var _0x2db716;const _0x5bb7a1=this[_0x3f07a0(0x351)][_0x3f07a0(0x2e3)](_0x3f07a0(0x381));if(!_0x5bb7a1||!_0xd16c70[_0x3f07a0(0x306)](_0x5bb7a1)){const _0x314f1e=_0xd16c70[_0x3f07a0(0x284)]()[0x0],_0x49a235=_0xd16c70[_0x3f07a0(0x306)](_0x314f1e);if(!_0x49a235)return;this[_0x3f07a0(0x239)](_0x49a235,!0x0),await this[_0x3f07a0(0x29d)][_0x3f07a0(0x2bb)](g['SetWorksheetActivateCommand']['id'],{'unitId':_0xd16c70['getUnitId'](),'subUnitId':_0x314f1e});return;}((_0x2db716=_0xd16c70[_0x3f07a0(0x235)]())==null?void 0x0:_0x2db716[_0x3f07a0(0x31e)]())!==_0x5bb7a1&&await this['_commandService'][_0x3f07a0(0x2bb)](g['SetWorksheetActivateCommand']['id'],{'unitId':_0xd16c70[_0x3f07a0(0x1e1)](),'subUnitId':_0x5bb7a1});}},exports[_0xbd72b5(0x2cd)]=jt([H(0x0,be),H(0x1,a[_0xbd72b5(0x360)]),H(0x2,a[_0xbd72b5(0x3ea)]),H(0x3,a[_0xbd72b5(0x1d6)](u[_0xbd72b5(0x229)])),H(0x4,a[_0xbd72b5(0x371)](Ke[_0xbd72b5(0x348)]))],exports[_0xbd72b5(0x2cd)]);var Bt=Object['getOwnPropertyDescriptor'],kt=(_0x4cede9,_0x3f3c89,_0x701cc0,_0x4dfab1)=>{for(var _0x56485b=_0x4dfab1>0x1?void 0x0:_0x4dfab1?Bt(_0x3f3c89,_0x701cc0):_0x3f3c89,_0x2e509c=_0x4cede9['length']-0x1,_0x3d0480;_0x2e509c>=0x0;_0x2e509c--)(_0x3d0480=_0x4cede9[_0x2e509c])&&(_0x56485b=_0x3d0480(_0x56485b)||_0x56485b);return _0x56485b;},ce=(_0x966325,_0x31a0df)=>(_0x24a56f,_0x495272)=>_0x31a0df(_0x24a56f,_0x495272,_0x966325);let z=class{constructor(_0x5d7fa7,_0x217f9d,_0x21b08d){const _0x4dc4ae=_0xbd72b5;this[_0x4dc4ae(0x207)]=_0x5d7fa7,this[_0x4dc4ae(0x203)]=_0x217f9d,this[_0x4dc4ae(0x21a)]=_0x21b08d;}['transformIMECache'](_0x50cc6b){const _0x424e78=_0xbd72b5;this[_0x424e78(0x399)](_0x50cc6b),this[_0x424e78(0x1a8)](_0x50cc6b);}[_0xbd72b5(0x1c7)](_0x40b648){const _0x525ba0=_0xbd72b5,{unitID:_0x45caa9}=_0x40b648,_0x53b2c7=this['_renderManagerService'][_0x525ba0(0x3d0)](_0x45caa9)[_0x525ba0(0x271)](b[_0x525ba0(0x253)]),{redoCache:_0x2667f9}=_0x53b2c7[_0x525ba0(0x1ec)]();if(_0x2667f9['length']===0x0)return _0x40b648;let _0x214be3=a[_0x525ba0(0x32f)][_0x525ba0(0x1af)](_0x40b648['mutations'][0x0]);for(let _0x19922a=0x0;_0x19922a<_0x2667f9[_0x525ba0(0x1cf)];_0x19922a++){const _0x26f0a6={'id':'doc.mutation.rich-text-editing','params':{..._0x2667f9[_0x19922a]}},_0x53db24=this['_transformService'][_0x525ba0(0x28a)](_0x214be3,_0x26f0a6,!0x1);if(m['isTransformMutationFailure'](_0x53db24))throw _0x53db24['error'];_0x214be3=_0x53db24['m1Prime'];}return{...a[_0x525ba0(0x32f)][_0x525ba0(0x1af)](_0x40b648),'mutations':[_0x214be3]};}[_0xbd72b5(0x399)](_0x3828c7){const _0x573043=_0xbd72b5,{unitID:_0x33ca92}=_0x3828c7,_0x3c7934=this['_renderManagerService'][_0x573043(0x3d0)](_0x33ca92)[_0x573043(0x271)](b[_0x573043(0x253)]),{undoCache:_0x1bf235,redoCache:_0x5ce001}=_0x3c7934[_0x573043(0x1ec)]();if(_0x1bf235[_0x573043(0x1cf)]===0x0||_0x5ce001['length']===0x0)return;const _0x2fce16=[],_0x1cfb64=[];let _0x127a05=a[_0x573043(0x32f)][_0x573043(0x1af)](_0x3828c7[_0x573043(0x1b1)][0x0]),_0x41dfa5=a[_0x573043(0x32f)]['deepClone'](_0x3828c7[_0x573043(0x1b1)][0x0]);for(let _0x327cf5=_0x1bf235['length']-0x1;_0x327cf5>=0x0;_0x327cf5--){const _0x3cc870={'id':_0x573043(0x227),'params':{..._0x1bf235[_0x327cf5]}},_0x845769={'id':_0x573043(0x227),'params':{..._0x5ce001[_0x327cf5]}},_0x3d12d0=this['_transformService'][_0x573043(0x28a)](_0x127a05,_0x3cc870,!0x1),_0x459665=this[_0x573043(0x203)][_0x573043(0x28a)](_0x41dfa5,_0x845769,!0x1);if(m[_0x573043(0x28f)](_0x3d12d0))throw _0x3d12d0[_0x573043(0x3ca)];if(m[_0x573043(0x28f)](_0x459665))throw _0x459665[_0x573043(0x3ca)];_0x2fce16[_0x573043(0x2f1)](_0x3d12d0[_0x573043(0x30f)][_0x573043(0x2ed)]),_0x1cfb64[_0x573043(0x2f1)](_0x459665[_0x573043(0x30f)][_0x573043(0x2ed)]),_0x127a05=_0x3d12d0[_0x573043(0x175)],_0x41dfa5=_0x459665[_0x573043(0x175)];}_0x3c7934[_0x573043(0x2f2)]({'undoCache':_0x2fce16,'redoCache':_0x1cfb64});}[_0xbd72b5(0x1a8)](_0x74b6ff){const _0x433a9e=_0xbd72b5,{unitID:_0x53bc25}=_0x74b6ff,_0x159679=this[_0x433a9e(0x21a)][_0x433a9e(0x3d0)](_0x53bc25)[_0x433a9e(0x271)](b[_0x433a9e(0x253)]),_0x301487=_0x159679[_0x433a9e(0x2f9)]();if(_0x301487==null)return;const _0x457c46=[{'id':_0x433a9e(0x227),'params':{'unitId':_0x74b6ff[_0x433a9e(0x22b)],'actions':null,'textRanges':[_0x301487]}}],_0x619a86=this[_0x433a9e(0x203)][_0x433a9e(0x2d0)](_0x74b6ff,_0x457c46);if(!m[_0x433a9e(0x1f7)](_0x619a86))throw _0x619a86[_0x433a9e(0x3ca)];const _0x2d8a96=_0x619a86['m2Prime'][0x0][_0x433a9e(0x2ed)][_0x433a9e(0x26d)];Array[_0x433a9e(0x1b6)](_0x2d8a96)&&_0x2d8a96[_0x433a9e(0x1cf)]&&_0x159679[_0x433a9e(0x27a)](_0x2d8a96[0x0]);}};z=kt([ce(0x0,a['Inject'](a['Injector'])),ce(0x1,m['ITransformService']),ce(0x2,p[_0xbd72b5(0x19f)])],z);var Ht=Object[_0xbd72b5(0x402)],Ft=(_0x1b4d1b,_0x441637,_0xebdf75,_0x366ad6)=>{for(var _0x2cc7d4=_0x366ad6>0x1?void 0x0:_0x366ad6?Ht(_0x441637,_0xebdf75):_0x441637,_0x2a4a73=_0x1b4d1b['length']-0x1,_0xd60df2;_0x2a4a73>=0x0;_0x2a4a73--)(_0xd60df2=_0x1b4d1b[_0x2a4a73])&&(_0x2cc7d4=_0xd60df2(_0x2cc7d4)||_0x2cc7d4);return _0x2cc7d4;},le=(_0x5cb184,_0x18279d)=>(_0x279fa7,_0x1bc23e)=>_0x18279d(_0x279fa7,_0x1bc23e,_0x5cb184);let J=class{constructor(_0x2708df,_0x85f291,_0x27f79f){this['_injector']=_0x2708df,this['_transformService']=_0x85f291,this['_docStateChangeManagerService']=_0x27f79f;}['transformStateCache'](_0x223a46){const _0x49612d=_0xbd72b5;this[_0x49612d(0x39e)](_0x223a46);}['transformRemoteChangeset'](_0x5892ac){const _0xf7caaf=_0xbd72b5,{unitID:_0x102b64}=_0x5892ac,{collaboration:_0x3b543e}=this[_0xf7caaf(0x2c0)][_0xf7caaf(0x3a5)](_0x102b64);if(_0x3b543e[_0xf7caaf(0x1cf)]===0x0)return _0x5892ac;let _0x2dd367=a[_0xf7caaf(0x32f)][_0xf7caaf(0x1af)](_0x5892ac[_0xf7caaf(0x1b1)][0x0]);for(let _0x5c205c=0x0;_0x5c205c<_0x3b543e['length'];_0x5c205c++){const _0x536441={'id':_0xf7caaf(0x227),'params':{'unitId':_0x3b543e[_0x5c205c][_0xf7caaf(0x1f4)],..._0x3b543e[_0x5c205c][_0xf7caaf(0x3b1)]}},_0x1b629c=this[_0xf7caaf(0x203)][_0xf7caaf(0x28a)](_0x2dd367,_0x536441,!0x1);if(m[_0xf7caaf(0x28f)](_0x1b629c))throw _0x1b629c[_0xf7caaf(0x3ca)];_0x2dd367=_0x1b629c[_0xf7caaf(0x175)];}return{...a[_0xf7caaf(0x32f)][_0xf7caaf(0x1af)](_0x5892ac),'mutations':[_0x2dd367]};}[_0xbd72b5(0x39e)](_0x55bf27){const _0x2a51ab=_0xbd72b5,{unitID:_0xd10394}=_0x55bf27,{history:_0x511a7e,collaboration:_0x51cb16}=this[_0x2a51ab(0x2c0)][_0x2a51ab(0x3a5)](_0xd10394);if(_0x511a7e[_0x2a51ab(0x1cf)]===0x0&&_0x51cb16[_0x2a51ab(0x1cf)]===0x0)return;const _0x178798=[],_0x264e0a=[];let _0x5a797d=a[_0x2a51ab(0x32f)][_0x2a51ab(0x1af)](_0x55bf27['mutations'][0x0]),_0x5d8d45=a['Tools'][_0x2a51ab(0x1af)](_0x55bf27[_0x2a51ab(0x1b1)][0x0]);for(let _0x5a8d8e=_0x511a7e[_0x2a51ab(0x1cf)]-0x1;_0x5a8d8e>=0x0;_0x5a8d8e--){const _0x1b8f00={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x511a7e[_0x5a8d8e][_0x2a51ab(0x1f4)],..._0x511a7e[_0x5a8d8e][_0x2a51ab(0x263)]}},_0x2faa6a={'id':_0x2a51ab(0x227),'params':{'unitId':_0x511a7e[_0x5a8d8e][_0x2a51ab(0x1f4)],..._0x511a7e[_0x5a8d8e]['redoState']}},_0x188930=this['_transformService']['transformMutation'](_0x5a797d,_0x1b8f00,!0x1),_0xb7ab01=this[_0x2a51ab(0x203)][_0x2a51ab(0x28a)](_0x5d8d45,_0x2faa6a,!0x1);if(m[_0x2a51ab(0x28f)](_0x188930))throw _0x188930['error'];if(m[_0x2a51ab(0x28f)](_0xb7ab01))throw _0xb7ab01[_0x2a51ab(0x3ca)];_0x178798[_0x2a51ab(0x2f1)]({..._0x511a7e[_0x5a8d8e],'undoState':_0x188930[_0x2a51ab(0x30f)][_0x2a51ab(0x2ed)],'redoState':_0xb7ab01[_0x2a51ab(0x30f)][_0x2a51ab(0x2ed)]}),_0x5a797d=_0x188930['m1Prime'],_0x5d8d45=_0xb7ab01['m1Prime'];}_0x5a797d=a[_0x2a51ab(0x32f)][_0x2a51ab(0x1af)](_0x55bf27[_0x2a51ab(0x1b1)][0x0]),_0x5d8d45=a[_0x2a51ab(0x32f)][_0x2a51ab(0x1af)](_0x55bf27[_0x2a51ab(0x1b1)][0x0]);for(let _0x177aaa=_0x51cb16[_0x2a51ab(0x1cf)]-0x1;_0x177aaa>=0x0;_0x177aaa--){const _0x2c9a7a={'id':_0x2a51ab(0x227),'params':{'unitId':_0x51cb16[_0x177aaa][_0x2a51ab(0x1f4)],..._0x51cb16[_0x177aaa][_0x2a51ab(0x263)]}},_0x1df7a2={'id':_0x2a51ab(0x227),'params':{'unitId':_0x51cb16[_0x177aaa][_0x2a51ab(0x1f4)],..._0x51cb16[_0x177aaa][_0x2a51ab(0x3b1)]}},_0x3eb97b=this[_0x2a51ab(0x203)][_0x2a51ab(0x28a)](_0x5a797d,_0x2c9a7a,!0x1),_0x4297f2=this[_0x2a51ab(0x203)][_0x2a51ab(0x28a)](_0x5d8d45,_0x1df7a2,!0x1);if(m['isTransformMutationFailure'](_0x3eb97b))throw _0x3eb97b['error'];if(m[_0x2a51ab(0x28f)](_0x4297f2))throw _0x4297f2[_0x2a51ab(0x3ca)];_0x264e0a[_0x2a51ab(0x2f1)]({..._0x51cb16[_0x177aaa],'undoState':_0x3eb97b[_0x2a51ab(0x30f)][_0x2a51ab(0x2ed)],'redoState':_0x4297f2[_0x2a51ab(0x30f)][_0x2a51ab(0x2ed)]}),_0x5a797d=_0x3eb97b[_0x2a51ab(0x175)],_0x5d8d45=_0x4297f2[_0x2a51ab(0x175)];}this[_0x2a51ab(0x2c0)][_0x2a51ab(0x190)](_0xd10394,{'history':_0x178798,'collaboration':_0x264e0a});}};J=Ft([le(0x0,a[_0xbd72b5(0x1d6)](a[_0xbd72b5(0x338)])),le(0x1,m[_0xbd72b5(0x25b)]),le(0x2,a['Inject'](b['DocStateChangeManagerService']))],J);var Yt=Object[_0xbd72b5(0x402)],Wt=(_0x19c848,_0x15e0ba,_0x27ecd8,_0x23c443)=>{const _0xc74cfb=_0xbd72b5;for(var _0x2f8f4b=_0x23c443>0x1?void 0x0:_0x23c443?Yt(_0x15e0ba,_0x27ecd8):_0x15e0ba,_0x217a24=_0x19c848[_0xc74cfb(0x1cf)]-0x1,_0x32a888;_0x217a24>=0x0;_0x217a24--)(_0x32a888=_0x19c848[_0x217a24])&&(_0x2f8f4b=_0x32a888(_0x2f8f4b)||_0x2f8f4b);return _0x2f8f4b;},Ne=(_0x541678,_0x4ee379)=>(_0xb8f157,_0x287c83)=>_0x4ee379(_0xb8f157,_0x287c83,_0x541678);let Z=class{constructor(_0x1b8d21,_0x2fe4db){const _0x5a5fc0=_0xbd72b5;this[_0x5a5fc0(0x207)]=_0x1b8d21,this[_0x5a5fc0(0x203)]=_0x2fe4db;}[_0xbd72b5(0x1e2)](_0x57ae16){const _0x2e722c=_0xbd72b5;var _0x188fae;const _0x1d5cfe=this[_0x2e722c(0x207)][_0x2e722c(0x206)](Y['DocSelectionManagerService']),_0x419fcc=(_0x188fae=_0x1d5cfe[_0x2e722c(0x2a7)]())!=null?_0x188fae:[];if(_0x419fcc['length']===0x0)return;const _0x2adc9f=_0x57ae16[_0x2e722c(0x22b)],_0x4f6e3e=[{'id':_0x2e722c(0x227),'params':{'unitId':_0x2adc9f,'actions':null,'textRanges':_0x419fcc}}],_0x5e6c6a=this[_0x2e722c(0x203)][_0x2e722c(0x2d0)](_0x57ae16,_0x4f6e3e);if(!m[_0x2e722c(0x1f7)](_0x5e6c6a))throw _0x5e6c6a[_0x2e722c(0x3ca)];const _0x599ef5=_0x5e6c6a[_0x2e722c(0x30f)][0x0]['params'][_0x2e722c(0x26d)];Array[_0x2e722c(0x1b6)](_0x599ef5)&&_0x599ef5[_0x2e722c(0x1cf)]&&_0x1d5cfe['replaceDocRanges'](_0x599ef5,{'unitId':_0x2adc9f,'subUnitId':_0x2adc9f},!0x1);}};Z=Wt([Ne(0x0,a[_0xbd72b5(0x1d6)](a['Injector'])),Ne(0x1,m[_0xbd72b5(0x25b)])],Z);var Vt=Object[_0xbd72b5(0x402)],Xt=(_0x5eb753,_0x2940be,_0x1017b4,_0x4c85cd)=>{const _0x21c348=_0xbd72b5;for(var _0x104de7=_0x4c85cd>0x1?void 0x0:_0x4c85cd?Vt(_0x2940be,_0x1017b4):_0x2940be,_0x3bb95f=_0x5eb753[_0x21c348(0x1cf)]-0x1,_0x4665c4;_0x3bb95f>=0x0;_0x3bb95f--)(_0x4665c4=_0x5eb753[_0x3bb95f])&&(_0x104de7=_0x4665c4(_0x104de7)||_0x104de7);return _0x104de7;},N=(_0x5eb51b,_0x51dec3)=>(_0x3c99b6,_0x399e4f)=>_0x51dec3(_0x3c99b6,_0x399e4f,_0x5eb51b);let Q=class extends a[_0xbd72b5(0x1b7)]{constructor(_0x38168e,_0x56135c,_0x48132f,_0xf7e644,_0x1e6d86,_0x5663cc,_0x38fafc,_0x564baf){const _0x4ecbd6=_0xbd72b5;super(),h(this,_0x4ecbd6(0x3bc),new d[(_0x4ecbd6(0x257))](u[_0x4ecbd6(0x1a1)][_0x4ecbd6(0x184)])),(this[_0x4ecbd6(0x2c0)]=_0x38168e,this[_0x4ecbd6(0x36b)]=_0x56135c,this['_docTransformIMECacheService']=_0x48132f,this[_0x4ecbd6(0x359)]=_0xf7e644,this[_0x4ecbd6(0x1f8)]=_0x1e6d86,this[_0x4ecbd6(0x361)]=_0x5663cc,this[_0x4ecbd6(0x1b9)]=_0x38fafc,this['_localeService']=_0x564baf,this[_0x4ecbd6(0x2f4)]());}[_0xbd72b5(0x2f4)](){const _0x2db305=_0xbd72b5;this[_0x2db305(0x323)](this['_collaborationController']['entityInit$'][_0x2db305(0x1fc)](_0x1c8e61=>{const _0x48d907=_0x2db305,_0x44ba48=this[_0x48d907(0x2c0)][_0x48d907(0x3ec)][_0x48d907(0x1fc)](_0x373833=>{const _0x192821=_0x48d907;if(_0x373833==null)return;const {unitId:_0x56d7b6,redoState:_0x316ea2,commandId:_0x48ca45}=_0x373833;if(_0x56d7b6!==_0x1c8e61[_0x192821(0x22b)])return;const _0x51fa29={'id':_0x48ca45,'type':a[_0x192821(0x29b)]['MUTATION'],'params':{'unitId':_0x56d7b6,'actions':_0x316ea2[_0x192821(0x2cc)],'textRanges':null}};_0x1c8e61[_0x192821(0x32d)](_0x51fa29);});if(_0x1c8e61[_0x48d907(0x323)](_0x44ba48),_0x1c8e61 instanceof u[_0x48d907(0x255)]){const _0xc80ea={'onTransformIME':_0x1dbe80=>this[_0x48d907(0x2df)][_0x48d907(0x3e1)](_0x1dbe80),'onTransformState':_0xb85cf5=>this['_docTransformStateCacheService'][_0x48d907(0x3bb)](_0xb85cf5),'onTransformSelections':_0x2792c9=>this[_0x48d907(0x1f8)][_0x48d907(0x1e2)](_0x2792c9),'onSyncEditingCollabCursor':_0xf81c27=>this[_0x48d907(0x361)][_0x48d907(0x33c)](_0xf81c27),'onTransformRemoteChangesetByIMECache':_0x5c309a=>this[_0x48d907(0x2df)][_0x48d907(0x1c7)](_0x5c309a),'onTransformRemoteChangesetByStateCache':_0x22fc2d=>this[_0x48d907(0x359)][_0x48d907(0x1c7)](_0x22fc2d)};_0x1c8e61[_0x48d907(0x345)](_0xc80ea);}}));}};Q=Xt([N(0x0,a['Inject'](b['DocStateChangeManagerService'])),N(0x1,a[_0xbd72b5(0x1d6)](u[_0xbd72b5(0x335)])),N(0x2,a[_0xbd72b5(0x1d6)](z)),N(0x3,a[_0xbd72b5(0x1d6)](J)),N(0x4,a[_0xbd72b5(0x1d6)](Z)),N(0x5,a[_0xbd72b5(0x1d6)](Ce)),N(0x6,T[_0xbd72b5(0x2f8)]),N(0x7,a[_0xbd72b5(0x1d6)](a['LocaleService']))],Q);var Gt=Object[_0xbd72b5(0x402)],Kt=(_0x7a538a,_0x2bcff4,_0x4b7e40,_0x3fa0bd)=>{const _0x2212aa=_0xbd72b5;for(var _0x10dea4=_0x3fa0bd>0x1?void 0x0:_0x3fa0bd?Gt(_0x2bcff4,_0x4b7e40):_0x2bcff4,_0x531e97=_0x7a538a[_0x2212aa(0x1cf)]-0x1,_0x4a8d9c;_0x531e97>=0x0;_0x531e97--)(_0x4a8d9c=_0x7a538a[_0x531e97])&&(_0x10dea4=_0x4a8d9c(_0x10dea4)||_0x10dea4);return _0x10dea4;},_e=(_0x4fbdcc,_0x3b6906)=>(_0x5257b4,_0x290b57)=>_0x3b6906(_0x5257b4,_0x290b57,_0x4fbdcc);let ge=class extends a[_0xbd72b5(0x1b7)]{constructor(_0xe83aa0,_0x2b1106,_0x10bee7){const _0x2c6251=_0xbd72b5;super(),h(this,_0x2c6251(0x2ae),new Map()),h(this,_0x2c6251(0x1f5),new Map()),h(this,_0x2c6251(0x34f),!0x1),(this[_0x2c6251(0x237)]=_0xe83aa0,this[_0x2c6251(0x2b2)]=_0x2b1106,this[_0x2c6251(0x299)]=_0x10bee7);}[_0xbd72b5(0x280)](){this['_disabled']=!0x0;}[_0xbd72b5(0x18c)](){const _0x249c00=_0xbd72b5;this[_0x249c00(0x34f)]=!0x1;}get[_0xbd72b5(0x289)](){const _0x2561a6=_0xbd72b5;return this[_0x2561a6(0x1f5)];}[_0xbd72b5(0x32e)](){const _0x1692ab=_0xbd72b5;this[_0x1692ab(0x285)]()[_0x1692ab(0x34c)](()=>super[_0x1692ab(0x32e)]());}async['loadOfflineData'](_0x1a52ba){const _0x59706b=_0xbd72b5;return this['_disabled']?null:this['_localStorageService'][_0x59706b(0x252)](u['getLocalCacheKey'](_0x1a52ba));}async[_0xbd72b5(0x2de)](_0x3d33a8,_0x37e29e){const _0x1265e2=_0xbd72b5;return!!this[_0x1265e2(0x2b2)][_0x1265e2(0x2c4)](_0x3d33a8,_0x37e29e);}['updateOfflineData'](_0x5617f6,_0x4474a9,_0x2b3bb1,_0x1038ad){const _0x17755=_0xbd72b5,_0x5b3925=this[_0x17755(0x299)][_0x17755(0x2af)](_0x5617f6);this['_cachedData']['set'](_0x5617f6,{'unitID':_0x5617f6,'type':_0x4474a9,'awaitingChangeset':_0x2b3bb1,'mutations':_0x1038ad,'rev':_0x5b3925}),this[_0x17755(0x1f5)][_0x17755(0x3c8)](_0x5617f6)||this[_0x17755(0x3ae)](_0x5617f6);}[_0xbd72b5(0x3ae)](_0x59dd54){const _0x42b137=_0xbd72b5,_0x4a56db=this[_0x42b137(0x367)]();_0x4a56db===0x0?this[_0x42b137(0x27b)](_0x59dd54):this[_0x42b137(0x1f5)][_0x42b137(0x3c7)](_0x59dd54,setTimeout(()=>this['_saveCache'](_0x59dd54),_0x4a56db));}[_0xbd72b5(0x367)](){const _0x471b14=_0xbd72b5;var _0x271cf3;return(_0x271cf3=this[_0x471b14(0x237)][_0x471b14(0x311)](u['LOCAL_CACHE_INTERVAL_KEY']))!=null?_0x271cf3:u[_0x471b14(0x305)];}[_0xbd72b5(0x27b)](_0x368234){const _0x504a71=_0xbd72b5,_0x1b566f=this['_saveTaskMap'][_0x504a71(0x206)](_0x368234);return _0x1b566f!==void 0x0&&window[_0x504a71(0x2fd)](_0x1b566f),this['_localStorageService'][_0x504a71(0x2c4)](u[_0x504a71(0x2f6)](_0x368234),this[_0x504a71(0x2ae)][_0x504a71(0x206)](_0x368234))['then'](()=>this[_0x504a71(0x1f5)][_0x504a71(0x200)](_0x368234));}async['exhaustSavingTask'](){const _0x1a6107=_0xbd72b5,_0x2383d3=[];this['_saveTaskMap'][_0x1a6107(0x276)]((_0x542afc,_0xd591f8)=>{const _0x5d6f0d=_0x1a6107;window[_0x5d6f0d(0x2fd)](_0x542afc),_0x2383d3['push'](this[_0x5d6f0d(0x27b)](_0xd591f8)[_0x5d6f0d(0x34c)](()=>{const _0x20fc08=_0x5d6f0d;this[_0x20fc08(0x1f5)][_0x20fc08(0x200)](_0xd591f8);}));}),await Promise[_0x1a6107(0x205)](_0x2383d3);}};ge=Kt([_e(0x0,a[_0xbd72b5(0x24a)]),_e(0x1,a[_0xbd72b5(0x244)]),_e(0x2,a[_0xbd72b5(0x1d6)](m[_0xbd72b5(0x2a8)]))],ge);class je extends a[_0xbd72b5(0x283)]{constructor(){const _0x946aba=_0xbd72b5;super(),h(this,'urlChange$'),this[_0x946aba(0x3f1)]=d[_0x946aba(0x1ca)](window,_0x946aba(0x1ef))[_0x946aba(0x1db)](d['takeUntil'](this[_0x946aba(0x1a2)]),d[_0x946aba(0x29a)](0x1),d['mapTo'](void 0x0));}[_0xbd72b5(0x220)](_0x511a5a,_0x3f2c50,_0x14fe0c=!0x1){const _0x484f23=_0xbd72b5,_0x260c51=new URL(window[_0x484f23(0x1bf)][_0x484f23(0x24c)]);_0x260c51[_0x484f23(0x34b)][_0x484f23(0x3c7)](_0x511a5a,_0x3f2c50),_0x14fe0c?window[_0x484f23(0x324)][_0x484f23(0x177)]('','',_0x260c51[_0x484f23(0x352)]()):window[_0x484f23(0x324)]['pushState']('','',_0x260c51[_0x484f23(0x352)]());}['removeParam'](_0x1ec3c9,_0x3dc0e1=!0x1){const _0x3f7cf9=_0xbd72b5,_0x2ee746=new URL(window['location'][_0x3f7cf9(0x24c)]);_0x2ee746[_0x3f7cf9(0x34b)]['delete'](_0x1ec3c9),_0x3dc0e1?window['history']['replaceState']('','',_0x2ee746['toString']()):window[_0x3f7cf9(0x324)][_0x3f7cf9(0x2bc)]('','',_0x2ee746[_0x3f7cf9(0x352)]());}[_0xbd72b5(0x2e3)](_0x3cd16b){const _0x90f177=_0xbd72b5;var _0x224e6a;return(_0x224e6a=new URL(window[_0x90f177(0x1bf)][_0x90f177(0x24c)])[_0x90f177(0x34b)][_0x90f177(0x206)](_0x3cd16b))!=null?_0x224e6a:void 0x0;}}var qt=Object[_0xbd72b5(0x377)],zt=Object[_0xbd72b5(0x402)],Jt=(_0x1eacb3,_0x465d40,_0x46bc55)=>_0x465d40 in _0x1eacb3?qt(_0x1eacb3,_0x465d40,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x46bc55}):_0x1eacb3[_0x465d40]=_0x46bc55,Zt=(_0x57ea66,_0x11cec1,_0x4c5b97,_0x3cd338)=>{const _0x3ecd49=_0xbd72b5;for(var _0xadbdd7=_0x3cd338>0x1?void 0x0:_0x3cd338?zt(_0x11cec1,_0x4c5b97):_0x11cec1,_0x58190b=_0x57ea66[_0x3ecd49(0x1cf)]-0x1,_0x5a2619;_0x58190b>=0x0;_0x58190b--)(_0x5a2619=_0x57ea66[_0x58190b])&&(_0xadbdd7=_0x5a2619(_0xadbdd7)||_0xadbdd7);return _0xadbdd7;},he=(_0x389464,_0x5941f7)=>(_0x3732f8,_0x2a992a)=>_0x5941f7(_0x3732f8,_0x2a992a,_0x389464),Qt=(_0x35d276,_0x10a76d,_0x34277d)=>Jt(_0x35d276,_0x10a76d+'',_0x34277d);const es=_0xbd72b5(0x3ed);exports[_0xbd72b5(0x1ea)]=class extends a['Plugin']{constructor(_0xd9e77e=Ue,_0xfababc,_0x241917,_0x3ac03b){const _0x300f11=_0xbd72b5;super(),this['_config']=_0xd9e77e,this[_0x300f11(0x21a)]=_0xfababc,this[_0x300f11(0x207)]=_0x241917,this[_0x300f11(0x237)]=_0x3ac03b;const {..._0x122023}=a[_0x300f11(0x1bc)]({},Ue,this[_0x300f11(0x1be)]);this[_0x300f11(0x237)][_0x300f11(0x245)]($t,_0x122023);}[_0xbd72b5(0x3a0)](){const _0x194bc8=_0xbd72b5;this['_registerDependencies'](),this[_0x194bc8(0x2ef)]();}[_0xbd72b5(0x213)](){const _0x5c1d30=_0xbd72b5;this[_0x5c1d30(0x3e5)]();}[_0xbd72b5(0x3af)](){const _0x150a48=_0xbd72b5;var _0x2ea5e7;const _0x5955ab=[[me],[Z],[z],[J],[Ce],[be,{'useClass':je}],[G[_0x150a48(0x3d9)],{'useClass':G['WebSocketService']}],[u[_0x150a48(0x22f)],{'useClass':ge}],[exports[_0x150a48(0x3fa)]],[Q],[q],[x],[de],[exports[_0x150a48(0x2cd)]]];a[_0x150a48(0x185)](this[_0x150a48(0x207)],a[_0x150a48(0x3a2)](_0x5955ab,(_0x2ea5e7=this[_0x150a48(0x1be)])==null?void 0x0:_0x2ea5e7['override']));}['_registerRenderDependencies'](){const _0x2e3fff=_0xbd72b5;this[_0x2e3fff(0x323)](this['_renderManagerService']['registerRenderModule'](a[_0x2e3fff(0x216)][_0x2e3fff(0x211)],[Ie])),this['disposeWithMe'](this['_renderManagerService'][_0x2e3fff(0x287)](a[_0x2e3fff(0x216)][_0x2e3fff(0x2c2)],[ve]));}[_0xbd72b5(0x2ef)](){const _0x1a2da7=_0xbd72b5;a[_0x1a2da7(0x222)](this[_0x1a2da7(0x207)],[[x],[exports[_0x1a2da7(0x3fa)]],[Q],[q],[exports['CollaborationDataLoaderController']]]);}},Qt(exports['UniverCollaborationClientUIPlugin'],_0xbd72b5(0x3f2),es),exports[_0xbd72b5(0x1ea)]=Zt([a[_0xbd72b5(0x401)](u['UniverCollaborationClientPlugin']),he(0x1,p[_0xbd72b5(0x19f)]),he(0x2,a['Inject'](a[_0xbd72b5(0x338)])),he(0x3,a[_0xbd72b5(0x24a)])],exports[_0xbd72b5(0x1ea)]);var ts=Object[_0xbd72b5(0x402)],ss=(_0x2dc904,_0x5c55a4,_0xfccadc,_0x16a8b9)=>{for(var _0x4c3b0e=_0x16a8b9>0x1?void 0x0:_0x16a8b9?ts(_0x5c55a4,_0xfccadc):_0x5c55a4,_0x5eaa62=_0x2dc904['length']-0x1,_0x3a6c52;_0x5eaa62>=0x0;_0x5eaa62--)(_0x3a6c52=_0x2dc904[_0x5eaa62])&&(_0x4c3b0e=_0x3a6c52(_0x4c3b0e)||_0x4c3b0e);return _0x4c3b0e;},F=(_0xf07b8,_0x1bdc46)=>(_0x23398,_0x5ad8ad)=>_0x1bdc46(_0x23398,_0x5ad8ad,_0xf07b8);exports[_0xbd72b5(0x1fb)]=class extends u[_0xbd72b5(0x3d1)]{constructor(_0x15418f,_0x458c49,_0x1285d3,_0x57d5e4,_0x4085d1){super(_0x15418f,_0x458c49,_0x1285d3,_0x57d5e4,_0x4085d1);}async[_0xbd72b5(0x1a7)](_0x24420c){const _0x5ad31c=_0xbd72b5,_0x528022=await this[_0x5ad31c(0x1dc)](),_0xff0f64=this[_0x5ad31c(0x196)](_0x24420c,_0x528022);return this[_0x5ad31c(0x373)](_0xff0f64);}[_0xbd72b5(0x196)](_0x226b37,_0x42f5b5){const _0x2e606a=_0xbd72b5,_0x13af81=typeof window>'u'?new URL(_0x226b37):new URL(_0x226b37,window[_0x2e606a(0x1bf)][_0x2e606a(0x298)]);_0x13af81['searchParams'][_0x2e606a(0x3c7)](_0x2e606a(0x33f),_0x42f5b5);const _0x50b3d0=typeof window>'u'?new URLSearchParams():new URLSearchParams(window[_0x2e606a(0x1bf)][_0x2e606a(0x26f)]);return _0x50b3d0[_0x2e606a(0x206)](_0x2e606a(0x183))&&_0x13af81[_0x2e606a(0x34b)][_0x2e606a(0x3c7)](_0x2e606a(0x183),_0x50b3d0[_0x2e606a(0x206)](_0x2e606a(0x183))),_0x13af81[_0x2e606a(0x352)]();}async[_0xbd72b5(0x1dc)](){const _0x4655ed=_0xbd72b5;var _0x250379,_0xe13ce6,_0x271aba;const _0x5cdb6c=this['_configService'][_0x4655ed(0x311)](u[_0x4655ed(0x39f)]),_0x16d704=(_0x250379=_0x5cdb6c==null?void 0x0:_0x5cdb6c[_0x4655ed(0x2cf)])!=null?_0x250379:u[_0x4655ed(0x315)];return(_0x271aba=(_0xe13ce6=(await this[_0x4655ed(0x3a6)]['get'](_0x16d704,{'headers':{'Content-Type':'application/json'}}))[_0x4655ed(0x2da)])==null?void 0x0:_0xe13ce6[_0x4655ed(0x396)])!=null?_0x271aba:'';}},exports[_0xbd72b5(0x1fb)]=ss([F(0x0,a[_0xbd72b5(0x1d6)](a['Injector'])),F(0x1,a['Inject'](G[_0xbd72b5(0x34d)])),F(0x2,a['IConfigService']),F(0x3,a[_0xbd72b5(0x360)]),F(0x4,m[_0xbd72b5(0x37d)])],exports[_0xbd72b5(0x1fb)]);const Me=0x7530,Le=_0xbd72b5(0x3ef);class is extends a[_0xbd72b5(0x1b7)]{constructor(){const _0x1c8777=_0xbd72b5;super(),h(this,'_id',a['generateRandomId']()),h(this,_0x1c8777(0x1a5),new Set()),h(this,_0x1c8777(0x3ac),new Map()),h(this,'_heartbeatTimer',null),h(this,'_clearOtherTimers',new Map()),h(this,'_unitStatus',new Map()),this[_0x1c8777(0x1c9)]();}[_0xbd72b5(0x32e)](){const _0x501cae=_0xbd72b5;super[_0x501cae(0x32e)](),this[_0x501cae(0x1ee)]['forEach']((_0x116fe5,_0x471c26)=>this[_0x501cae(0x1ad)](_0x471c26)),this[_0x501cae(0x320)]&&window[_0x501cae(0x3e0)](this[_0x501cae(0x320)]);}[_0xbd72b5(0x33d)](_0x2df41b){const _0x5eeffc=_0xbd72b5;return this[_0x5eeffc(0x1a9)](_0x2df41b)[_0x5eeffc(0x1db)](d[_0x5eeffc(0x2b4)]());}[_0xbd72b5(0x2ab)](_0x495b73){const _0x40889d=_0xbd72b5;this['_selfUnitIDs'][_0x40889d(0x2c9)]===0x0&&this['_scheduleHeartbeat'](),this['_selfUnitIDs'][_0x40889d(0x1e5)](_0x495b73),this[_0x40889d(0x3f0)]({'type':0x0,'memberID':this[_0x40889d(0x3a9)],'unitIDs':[_0x495b73],'isForwarded':!0x1});}[_0xbd72b5(0x195)](_0x396c2d){const _0x3c23ab=_0xbd72b5;this[_0x3c23ab(0x1a5)][_0x3c23ab(0x200)](_0x396c2d),this[_0x3c23ab(0x1a5)]['size']===0x0&&this[_0x3c23ab(0x320)]&&window[_0x3c23ab(0x3e0)](this[_0x3c23ab(0x320)]);}[_0xbd72b5(0x1c9)](){const _0x1db6d5=_0xbd72b5;this[_0x1db6d5(0x323)](a[_0x1db6d5(0x385)](d[_0x1db6d5(0x1ca)](window,_0x1db6d5(0x2a5))['subscribe'](_0x587f0a=>{const _0x24fa2f=_0x1db6d5;if(_0x587f0a[_0x24fa2f(0x2e5)]!==Le||!_0x587f0a[_0x24fa2f(0x2fe)])return;const _0x15f3c4=JSON[_0x24fa2f(0x370)](_0x587f0a[_0x24fa2f(0x2fe)]);this[_0x24fa2f(0x39a)](_0x15f3c4);}))),window[_0x1db6d5(0x1df)](_0x1db6d5(0x347),()=>this[_0x1db6d5(0x3f0)]({'type':0x1,'memberID':this[_0x1db6d5(0x3a9)],'unitIDs':Array[_0x1db6d5(0x20b)](this['_selfUnitIDs'])}));}[_0xbd72b5(0x39a)](_0x27c61d){const _0x5cca73=_0xbd72b5;switch(_0x27c61d[_0x5cca73(0x1fa)]){case 0x0:this['_handleJoinEvent'](_0x27c61d);break;case 0x1:this[_0x5cca73(0x17e)](_0x27c61d);break;case 0x2:this[_0x5cca73(0x1c5)](_0x27c61d);break;}}[_0xbd72b5(0x233)](_0x1aa12e){const _0x34f88f=_0xbd72b5,{unitIDs:_0x48e43c,memberID:_0x3417bb,isForwarded:_0x52f28d}=_0x1aa12e;_0x48e43c['forEach'](_0x13d791=>{const _0x365810=_0x4dae;if(!_0x52f28d&&this['_unitOnClients'][_0x365810(0x3c8)](_0x13d791)&&this['_ensureSubject'](_0x13d791)[_0x365810(0x2ad)](u[_0x365810(0x38b)]['OTHER_CLIENTS_EDITING']),!this['_unitOnClients'][_0x365810(0x3c8)](_0x13d791)||!this[_0x365810(0x3ac)][_0x365810(0x206)](_0x13d791)['has'](_0x3417bb)){const _0x43ae69=this[_0x365810(0x3ac)][_0x365810(0x206)](_0x13d791)||new Set();_0x43ae69[_0x365810(0x1e5)](_0x3417bb),this['_unitOnClients']['set'](_0x13d791,_0x43ae69),this[_0x365810(0x247)](_0x3417bb);}}),_0x52f28d||this['_send']({'type':0x0,'memberID':this[_0x34f88f(0x3a9)],'unitIDs':[...this[_0x34f88f(0x1a5)]],'isForwarded':!0x0});}[_0xbd72b5(0x247)](_0x3874af){const _0x3e96e4=_0xbd72b5;this[_0x3e96e4(0x1ad)](_0x3874af);const _0x4a11de=window[_0x3e96e4(0x357)](()=>{const _0x39fd2d=_0x3e96e4;this[_0x39fd2d(0x3ac)][_0x39fd2d(0x276)](_0x5a362d=>{const _0x57d154=_0x39fd2d;_0x5a362d[_0x57d154(0x200)](_0x3874af);});},Me*0x2);this[_0x3e96e4(0x1ee)]['set'](_0x3874af,_0x4a11de);}[_0xbd72b5(0x1ad)](_0x167b82){const _0x4ecfff=_0xbd72b5;if(this['_clearOtherTimers'][_0x4ecfff(0x3c8)](_0x167b82)){const _0x232803=this[_0x4ecfff(0x1ee)][_0x4ecfff(0x206)](_0x167b82);_0x232803&&window['clearTimeout'](_0x232803),this[_0x4ecfff(0x1ee)][_0x4ecfff(0x3c7)](_0x167b82,null);}}[_0xbd72b5(0x17e)](_0x13d506){const _0x1b243c=_0xbd72b5,{memberID:_0x588969,unitIDs:_0x1f4620}=_0x13d506;_0x1f4620[_0x1b243c(0x276)](_0x6b0de9=>{const _0x284813=_0x1b243c;var _0x5f3d3a;const _0x4a0d49=this[_0x284813(0x3ac)][_0x284813(0x206)](_0x6b0de9);_0x4a0d49&&(_0x4a0d49[_0x284813(0x200)](_0x588969),(_0x5f3d3a=this[_0x284813(0x1a9)](_0x6b0de9))==null||_0x5f3d3a[_0x284813(0x2ad)](_0x4a0d49[_0x284813(0x2c9)]===0x0?u[_0x284813(0x38b)][_0x284813(0x3a4)]:u[_0x284813(0x38b)][_0x284813(0x277)]));}),this[_0x1b243c(0x1ad)](_0x588969);}['_handleHeartbeatEvent'](_0x3a91ae){const _0x37ae13=_0xbd72b5;this[_0x37ae13(0x247)](_0x3a91ae['memberID']);}[_0xbd72b5(0x3f0)](_0x3577db){localStorage['setItem'](Le,JSON['stringify'](_0x3577db));}[_0xbd72b5(0x230)](){const _0x45b0b6=_0xbd72b5;this[_0x45b0b6(0x320)]=window[_0x45b0b6(0x317)](()=>{const _0x4c6a4a=_0x45b0b6;this[_0x4c6a4a(0x3f0)]({'type':0x2,'memberID':this['_id']});},Me);}['_ensureSubject'](_0x473c73){const _0x430cda=_0xbd72b5;return this[_0x430cda(0x186)][_0x430cda(0x3c8)](_0x473c73)||this[_0x430cda(0x186)][_0x430cda(0x3c7)](_0x473c73,new d[(_0x430cda(0x257))](u['UnitStatus'][_0x430cda(0x3a4)])),this[_0x430cda(0x186)][_0x430cda(0x206)](_0x473c73);}}var Be=(_0x387b03=>(_0x387b03[_0x387b03['UNDEFINED']=0x0]=_0xbd72b5(0x178),_0x387b03[_0x387b03['OK']=0x1]='OK',_0x387b03[_0x387b03['INTERNAL_ERROR']=0x2]=_0xbd72b5(0x309),_0x387b03[_0x387b03[_0xbd72b5(0x1bd)]=0x3]='PERMISSION_DENIED',_0x387b03[_0x387b03[_0xbd72b5(0x3c3)]=0x4]=_0xbd72b5(0x3c3),_0x387b03[_0x387b03[_0xbd72b5(0x364)]=0x5]=_0xbd72b5(0x364),_0x387b03[_0x387b03[_0xbd72b5(0x268)]=0x6]=_0xbd72b5(0x268),_0x387b03[_0x387b03[_0xbd72b5(0x3de)]=0x7]=_0xbd72b5(0x3de),_0x387b03[_0x387b03[_0xbd72b5(0x1bb)]=0x8]=_0xbd72b5(0x1bb),_0x387b03[_0x387b03[_0xbd72b5(0x3f9)]=0x9]='COMPLETION_FINISHED',_0x387b03[_0x387b03[_0xbd72b5(0x2a0)]=0xa]=_0xbd72b5(0x2a0),_0x387b03[_0x387b03[_0xbd72b5(0x308)]=0x1389]=_0xbd72b5(0x308),_0x387b03[_0x387b03['SNAPSHOT_INVALID_SNAPSHOT']=0x1771]=_0xbd72b5(0x30d),_0x387b03[_0x387b03[_0xbd72b5(0x1ae)]=0x1772]=_0xbd72b5(0x1ae),_0x387b03[_0x387b03[_0xbd72b5(0x18b)]=0x1773]='ENSURE_SNAPSHOT_EXECUTION',_0x387b03[_0x387b03[_0xbd72b5(0x1d7)]=0x1b59]=_0xbd72b5(0x1d7),_0x387b03[_0x387b03[_0xbd72b5(0x3f5)]=0x1b5a]=_0xbd72b5(0x3f5),_0x387b03[_0x387b03['APPLY_REVISION_CONFILICT']=0x1b5b]=_0xbd72b5(0x2b0),_0x387b03[_0x387b03[_0xbd72b5(0x1f2)]=0x1b5c]=_0xbd72b5(0x1f2),_0x387b03[_0x387b03[_0xbd72b5(0x2a2)]=0x1b5d]='APPLY_DUPLICATED',_0x387b03[_0x387b03[_0xbd72b5(0x3f6)]=0x1f41]=_0xbd72b5(0x3f6),_0x387b03[_0x387b03['LICENSE_MAX_UNITS_EXCEEDED']=0x2329]='LICENSE_MAX_UNITS_EXCEEDED',_0x387b03[_0x387b03[_0xbd72b5(0x350)]=0x232a]=_0xbd72b5(0x350),_0x387b03[_0x387b03[_0xbd72b5(0x3f4)]=0x232b]=_0xbd72b5(0x3f4),_0x387b03[_0x387b03[_0xbd72b5(0x343)]=0x232c]=_0xbd72b5(0x343),_0x387b03[_0x387b03[_0xbd72b5(0x3b5)]=0x232d]='LICENSE_DISTRO_REJECTED',_0x387b03[_0x387b03[_0xbd72b5(0x1c2)]=0x2711]='YUUMI_UNABLE_LOAD_URL',_0x387b03[_0x387b03[_0xbd72b5(0x38a)]=0x2712]=_0xbd72b5(0x38a),_0x387b03[_0x387b03[_0xbd72b5(0x368)]=0x2713]='YUUMI_RATE_OVER_LIMIT',_0x387b03[_0x387b03[_0xbd72b5(0x223)]=0x2714]='YUUMI_SUBSCRIPTION_NOT_FOUND',_0x387b03[_0x387b03[_0xbd72b5(0x1b3)]=0x271a]=_0xbd72b5(0x1b3),_0x387b03[_0x387b03[_0xbd72b5(0x1aa)]=0x271b]=_0xbd72b5(0x1aa),_0x387b03[_0x387b03[_0xbd72b5(0x20d)]=0x271c]=_0xbd72b5(0x20d),_0x387b03[_0x387b03[_0xbd72b5(0x312)]=0x271d]=_0xbd72b5(0x312),_0x387b03[_0x387b03[_0xbd72b5(0x258)]=0x271e]=_0xbd72b5(0x258),_0x387b03[_0x387b03[_0xbd72b5(0x2fb)]=0x271f]=_0xbd72b5(0x2fb),_0x387b03[_0x387b03[_0xbd72b5(0x3e8)]=0x2af9]='PY_RUNTIME_SCRIPT_ERROR',_0x387b03[_0x387b03['INVITE_CODE_HAS_BEEN_UES']=0x2ee1]=_0xbd72b5(0x3dc),_0x387b03[_0x387b03['INVALID_INVITE_CODE']=0x2ee2]=_0xbd72b5(0x1d1),_0x387b03[_0x387b03[_0xbd72b5(0x29c)]=0x2ee3]=_0xbd72b5(0x29c),_0x387b03[_0x387b03[_0xbd72b5(0x279)]=0x2ee4]='USER_NOT_INVITED_CODE',_0x387b03[_0x387b03[_0xbd72b5(0x198)]=0x2ee5]=_0xbd72b5(0x198),_0x387b03[_0x387b03[_0xbd72b5(0x314)]=0x32c9]=_0xbd72b5(0x314),_0x387b03[_0x387b03['MOBILE_HAS_BEEN_BOUND']=0x32ca]=_0xbd72b5(0x1d9),_0x387b03[_0x387b03[_0xbd72b5(0x30b)]=0x32cb]=_0xbd72b5(0x30b),_0x387b03[_0x387b03[_0xbd72b5(0x336)]=-0x1]=_0xbd72b5(0x336),_0x387b03))(Be||{}),ns=Object[_0xbd72b5(0x402)],rs=(_0x1859b3,_0xc6139b,_0x22b538,_0x485a05)=>{for(var _0x3ab659=_0x485a05>0x1?void 0x0:_0x485a05?ns(_0xc6139b,_0x22b538):_0xc6139b,_0x20fd55=_0x1859b3['length']-0x1,_0x64700d;_0x20fd55>=0x0;_0x20fd55--)(_0x64700d=_0x1859b3[_0x20fd55])&&(_0x3ab659=_0x64700d(_0x3ab659)||_0x3ab659);return _0x3ab659;},ue=(_0x1c03b2,_0x39602d)=>(_0x3de408,_0x1ae202)=>_0x39602d(_0x3de408,_0x1ae202,_0x1c03b2);exports[_0xbd72b5(0x2bf)]=class extends a[_0xbd72b5(0x1b7)]{constructor(_0x5f047b,_0x1ef4f6,_0x575877){const _0x101138=_0xbd72b5;super(),this[_0x101138(0x3b0)]=_0x5f047b,this[_0x101138(0x3a6)]=_0x1ef4f6,this[_0x101138(0x237)]=_0x575877;}async['runOnServer'](_0x3c1929,_0x541540,_0x1616b3,..._0x2dad51){const _0x44ac50=_0xbd72b5;var _0x34e2cc,_0x12775d,_0x2ae172,_0x2151ed;const _0x4e7751=this['_instanceService']['getFocusedUnit']();if(!_0x4e7751)throw new Error(_0x44ac50(0x273));const _0x15e64a=((_0x34e2cc=this['_configService'][_0x44ac50(0x311)](u['REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY']))!=null?_0x34e2cc:u[_0x44ac50(0x219)])+'/'+_0x3c1929+_0x44ac50(0x212)+_0x541540,_0x304bf8=new URL(window[_0x44ac50(0x1bf)][_0x44ac50(0x24c)]),_0x58a2e3={'scriptId':_0x3c1929,'runId':(_0x12775d=_0x304bf8[_0x44ac50(0x34b)][_0x44ac50(0x206)]('runId'))!=null?_0x12775d:'','function':_0x541540,'unitId':_0x4e7751[_0x44ac50(0x1e1)](),'argsOfFunction':JSON[_0x44ac50(0x22a)](_0x2dad51),'invokeId':(_0x2ae172=_0x1616b3[_0x44ac50(0x2ec)])!=null?_0x2ae172:'','executionId':(_0x2151ed=_0x1616b3[_0x44ac50(0x3e4)])!=null?_0x2151ed:''};try{const _0x3f02e0=await this['_httpService'][_0x44ac50(0x290)](_0x15e64a,{'body':_0x58a2e3});return _0x3f02e0[_0x44ac50(0x2da)]['error']&&_0x3f02e0[_0x44ac50(0x2da)][_0x44ac50(0x3ca)][_0x44ac50(0x217)]!==Be['OK']?_0x44ac50(0x3b3):_0x3f02e0[_0x44ac50(0x2da)]['result'];}catch{return _0x44ac50(0x3b3);}}},exports[_0xbd72b5(0x2bf)]=rs([ue(0x0,a[_0xbd72b5(0x3e7)]),ue(0x1,a['Inject'](G[_0xbd72b5(0x34d)])),ue(0x2,a[_0xbd72b5(0x24a)])],exports[_0xbd72b5(0x2bf)]),exports['CollaborationStatusDisplay']=xe,exports[_0xbd72b5(0x221)]=be,exports[_0xbd72b5(0x3c5)]=Ae,exports[_0xbd72b5(0x259)]=is,exports['WebURLService']=je;
@@ -1 +1 @@
1
- 'use strict';const _0x4e74c6=_0x392c;(function(_0x33480f,_0x2672c4){const _0x46b535=_0x392c,_0xe667a5=_0x33480f();while(!![]){try{const _0x2ee084=parseInt(_0x46b535(0xcf))/0x1+-parseInt(_0x46b535(0xe4))/0x2*(-parseInt(_0x46b535(0xd3))/0x3)+-parseInt(_0x46b535(0xe0))/0x4*(-parseInt(_0x46b535(0xd7))/0x5)+-parseInt(_0x46b535(0xcc))/0x6+parseInt(_0x46b535(0xcd))/0x7*(parseInt(_0x46b535(0xdc))/0x8)+-parseInt(_0x46b535(0xca))/0x9*(-parseInt(_0x46b535(0xd4))/0xa)+-parseInt(_0x46b535(0xde))/0xb;if(_0x2ee084===_0x2672c4)break;else _0xe667a5['push'](_0xe667a5['shift']());}catch(_0x264102){_0xe667a5['push'](_0xe667a5['shift']());}}}(_0xf808,0x745c4));function _0xf808(){const _0xaf0f51=['Collaboration\x20Conflict','304pNPunO','Local\x20file','22342012HTNCwK','You\x20opened\x20the\x20same\x20file\x20in\x20another\x20tab.\x20In\x20case\x20of\x20data\x20missing,\x20you\x20cannot\x20edit\x20on\x20this\x20tab.','3168040IaOQsF','Your\x20login\x20has\x20expired,\x20click\x20OK\x20to\x20re-login,\x20click\x20Cancel\x20to\x20save\x20your\x20local\x20edits.','Collaboration\x20room\x20is\x20full.\x20You\x20edits\x20would\x20be\x20saved\x20locally.','exports','42WuJeyw','36xNBMbw','Connection\x20failed,\x20please\x20check\x20your\x20network.','560448HcJIJY','154931UZKbPv','Editing\x20privileges\x20were\x20revoked\x20because\x20the\x20collaborative\x20room\x20was\x20closed.','613873HizYCG','Your\x20actions\x20are\x20conflicting\x20with\x20the\x20server\x27s\x20permissions.\x20Please\x20save\x20your\x20local\x20edits\x20elsewhere\x20as\x20they\x20will\x20be\x20discarded\x20after\x20refreshing\x20the\x20page.','Click\x20to\x20Reconnect','Connection\x20failed,\x20we\x20retry\x20in\x20a\x20while.','26109NlRHYZ','428530HKMIJJ','Synced','The\x20server\x20is\x20not\x20responding\x20to\x20your\x20collaboration\x20request.\x20Your\x20edits\x20would\x20be\x20saved\x20locally.','5zYpIHL','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.','Edit\x20conflicts','Offline,\x20edits\x20would\x20be\x20save\x20on\x20local'];_0xf808=function(){return _0xaf0f51;};return _0xf808();}function _0x392c(_0x3cdf35,_0x515c0b){const _0xf8087=_0xf808();return _0x392c=function(_0x392c67,_0x13d821){_0x392c67=_0x392c67-0xca;let _0x4b504c=_0xf8087[_0x392c67];return _0x4b504c;},_0x392c(_0x3cdf35,_0x515c0b);}const e={'collab-client':{'tooltip':{'reconnect':_0x4e74c6(0xd1)}},'collabStatus':{'fetchMiss':'Syncing\x20server\x20data...','conflict':_0x4e74c6(0xd9),'notCollab':_0x4e74c6(0xdd),'synced':_0x4e74c6(0xd5),'syncing':'Syncing...','offline':_0x4e74c6(0xda)},'session':{'connection-failed':_0x4e74c6(0xcb),'will-retry':_0x4e74c6(0xd2),'room-full':_0x4e74c6(0xe2),'collaboration-timeout':_0x4e74c6(0xd6)},'conflict':{'title':_0x4e74c6(0xdb),'content':_0x4e74c6(0xd8)},'permission':{'title':'Authentication\x20Error','content':_0x4e74c6(0xd0)},'collaboration':{'single-unit':{'warning':_0x4e74c6(0xdf)},'closeRoom':_0x4e74c6(0xce)},'auth':{'needGotoLoginAlert':_0x4e74c6(0xe1)}};module[_0x4e74c6(0xe3)]=e;
1
+ 'use strict';const _0x3c59a4=_0x27b9;function _0x27b9(_0x452bbe,_0x59837c){const _0x3ca54b=_0x3ca5();return _0x27b9=function(_0x27b9e7,_0x4f11d3){_0x27b9e7=_0x27b9e7-0xd6;let _0xed5976=_0x3ca54b[_0x27b9e7];return _0xed5976;},_0x27b9(_0x452bbe,_0x59837c);}(function(_0x3d0208,_0x1096f6){const _0xadd30b=_0x27b9,_0x4f346b=_0x3d0208();while(!![]){try{const _0x2db4cd=parseInt(_0xadd30b(0xe8))/0x1*(-parseInt(_0xadd30b(0xe5))/0x2)+parseInt(_0xadd30b(0xde))/0x3*(parseInt(_0xadd30b(0xe0))/0x4)+-parseInt(_0xadd30b(0xea))/0x5*(parseInt(_0xadd30b(0xe2))/0x6)+-parseInt(_0xadd30b(0xdb))/0x7+parseInt(_0xadd30b(0xed))/0x8+parseInt(_0xadd30b(0xec))/0x9*(-parseInt(_0xadd30b(0xf1))/0xa)+parseInt(_0xadd30b(0xda))/0xb;if(_0x2db4cd===_0x1096f6)break;else _0x4f346b['push'](_0x4f346b['shift']());}catch(_0x882e14){_0x4f346b['push'](_0x4f346b['shift']());}}}(_0x3ca5,0x3f845));const e={'collab-client':{'tooltip':{'reconnect':_0x3c59a4(0xdc)}},'collabStatus':{'fetchMiss':_0x3c59a4(0xe9),'conflict':_0x3c59a4(0xe4),'notCollab':_0x3c59a4(0xf0),'synced':_0x3c59a4(0xdf),'syncing':'Syncing...','offline':_0x3c59a4(0xd7)},'session':{'connection-failed':_0x3c59a4(0xe6),'will-retry':_0x3c59a4(0xd6),'room-full':_0x3c59a4(0xd8),'collaboration-timeout':_0x3c59a4(0xee)},'conflict':{'title':_0x3c59a4(0xd9),'content':_0x3c59a4(0xe3)},'permission':{'title':_0x3c59a4(0xeb),'content':_0x3c59a4(0xe7)},'collaboration':{'single-unit':{'warning':_0x3c59a4(0xe1)},'closeRoom':_0x3c59a4(0xdd)},'auth':{'needGotoLoginAlert':_0x3c59a4(0xef)}};module['exports']=e;function _0x3ca5(){const _0x400db5=['1251quCRgU','3133032abukHV','The\x20server\x20is\x20not\x20responding\x20to\x20your\x20collaboration\x20request.\x20Your\x20edits\x20would\x20be\x20saved\x20locally.','Your\x20login\x20has\x20expired,\x20click\x20OK\x20to\x20re-login,\x20click\x20Cancel\x20to\x20save\x20your\x20local\x20edits.','Local\x20file','860YdrQLF','Connection\x20failed,\x20we\x20retry\x20in\x20a\x20while.','Offline,\x20edits\x20would\x20be\x20save\x20on\x20local','Collaboration\x20room\x20is\x20full.\x20You\x20edits\x20would\x20be\x20saved\x20locally.','Collaboration\x20Conflict','3266219yIWWhz','2853956dkkCBY','Click\x20to\x20Reconnect','Editing\x20privileges\x20were\x20revoked\x20because\x20the\x20collaborative\x20room\x20was\x20closed.','3909NTVvHF','Synced','908OkqzbZ','You\x20opened\x20the\x20same\x20file\x20in\x20another\x20tab.\x20In\x20case\x20of\x20data\x20missing,\x20you\x20cannot\x20edit\x20on\x20this\x20tab.','81090gXtqZN','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.','Edit\x20conflicts','473874dTZiOZ','Connection\x20failed,\x20please\x20check\x20your\x20network.','Your\x20actions\x20are\x20conflicting\x20with\x20the\x20server\x27s\x20permissions.\x20Please\x20save\x20your\x20local\x20edits\x20elsewhere\x20as\x20they\x20will\x20be\x20discarded\x20after\x20refreshing\x20the\x20page.','1VSiXzd','Syncing\x20server\x20data...','25tIlrbT','Authentication\x20Error'];_0x3ca5=function(){return _0x400db5;};return _0x3ca5();}