@univerjs-pro/collaboration-client-ui 0.8.0-nightly.202506071606 → 0.8.0-nightly.202506081606

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';const _0x43fc02=_0x23fc;(function(_0x5314c5,_0x4a5d51){const _0x5b94c3=_0x23fc,_0x4f65b0=_0x5314c5();while(!![]){try{const _0x328087=-parseInt(_0x5b94c3(0x77))/0x1+parseInt(_0x5b94c3(0x85))/0x2*(parseInt(_0x5b94c3(0x79))/0x3)+parseInt(_0x5b94c3(0x87))/0x4+parseInt(_0x5b94c3(0x81))/0x5*(parseInt(_0x5b94c3(0x78))/0x6)+parseInt(_0x5b94c3(0x83))/0x7+-parseInt(_0x5b94c3(0x86))/0x8*(parseInt(_0x5b94c3(0x88))/0x9)+parseInt(_0x5b94c3(0x82))/0xa*(-parseInt(_0x5b94c3(0x7a))/0xb);if(_0x328087===_0x4a5d51)break;else _0x4f65b0['push'](_0x4f65b0['shift']());}catch(_0x298a98){_0x4f65b0['push'](_0x4f65b0['shift']());}}}(_0x26d8,0x61ef1));function _0x23fc(_0x4ac78d,_0x4f450a){const _0x26d8a4=_0x26d8();return _0x23fc=function(_0x23fc31,_0x20d2e9){_0x23fc31=_0x23fc31-0x76;let _0x34dcd1=_0x26d8a4[_0x23fc31];return _0x34dcd1;},_0x23fc(_0x4ac78d,_0x4f450a);}const t=require(_0x43fc02(0x7f)),e=require(_0x43fc02(0x7c));class c extends e[_0x43fc02(0x76)]{[_0x43fc02(0x84)](_0x12ef28,_0x343248,..._0x9f2649){const _0x16ebd8=_0x43fc02;return this[_0x16ebd8(0x80)][_0x16ebd8(0x7b)](t[_0x16ebd8(0x7d)])['runOnServer'](_0x12ef28,_0x343248,{},..._0x9f2649);}}function _0x26d8(){const _0x348ab4=['FUniver','737737IvQxjJ','10050RbNOGj','2304507MnvXYS','4494446UVSqZa','get','@univerjs/core/facade','RemoteUniscriptService','extend','@univerjs-pro/collaboration-client-ui','_injector','1445PRBkXO','20uRZqfs','4618299xrNIfU','runOnServer','2MTApDv','422424UUAjoX','809816VMJphK','27bWOWcX'];_0x26d8=function(){return _0x348ab4;};return _0x26d8();}e[_0x43fc02(0x76)][_0x43fc02(0x7e)](c);
1
+ 'use strict';const _0x4d72bd=_0x47d4;function _0x47d4(_0x1f4668,_0x3c69f1){const _0x1c2399=_0x1c23();return _0x47d4=function(_0x47d409,_0x11ea45){_0x47d409=_0x47d409-0x16b;let _0x269a95=_0x1c2399[_0x47d409];return _0x269a95;},_0x47d4(_0x1f4668,_0x3c69f1);}(function(_0x19dc2b,_0x11b3e9){const _0x1a25d6=_0x47d4,_0x5e71c6=_0x19dc2b();while(!![]){try{const _0x27da2f=parseInt(_0x1a25d6(0x179))/0x1*(-parseInt(_0x1a25d6(0x176))/0x2)+parseInt(_0x1a25d6(0x16c))/0x3+parseInt(_0x1a25d6(0x16b))/0x4+-parseInt(_0x1a25d6(0x16e))/0x5*(parseInt(_0x1a25d6(0x16d))/0x6)+parseInt(_0x1a25d6(0x177))/0x7*(-parseInt(_0x1a25d6(0x171))/0x8)+parseInt(_0x1a25d6(0x170))/0x9*(parseInt(_0x1a25d6(0x174))/0xa)+-parseInt(_0x1a25d6(0x178))/0xb;if(_0x27da2f===_0x11b3e9)break;else _0x5e71c6['push'](_0x5e71c6['shift']());}catch(_0x2b4b20){_0x5e71c6['push'](_0x5e71c6['shift']());}}}(_0x1c23,0xb6421));const t=require(_0x4d72bd(0x175)),e=require('@univerjs/core/facade');class c extends e[_0x4d72bd(0x17a)]{[_0x4d72bd(0x16f)](_0x467af7,_0x177678,..._0x1d3aa2){const _0x29035e=_0x4d72bd;return this[_0x29035e(0x172)][_0x29035e(0x17b)](t[_0x29035e(0x17c)])[_0x29035e(0x16f)](_0x467af7,_0x177678,{},..._0x1d3aa2);}}function _0x1c23(){const _0x28a6c3=['2774590dENPGd','14956799enmUqd','1fvYdmr','FUniver','get','RemoteUniscriptService','3648652nWPyEB','1635834kglkit','6QznuHR','1553310LCzxhF','runOnServer','3303081LHXweZ','8UhTRLs','_injector','extend','40wYYFgp','@univerjs-pro/collaboration-client-ui','224414dPYPoo'];_0x1c23=function(){return _0x28a6c3;};return _0x1c23();}e[_0x4d72bd(0x17a)][_0x4d72bd(0x173)](c);
package/lib/cjs/index.js CHANGED
@@ -1 +1 @@
1
- 'use strict';const _0x18db4e=_0x4661;(function(_0x17a3f0,_0x42b343){const _0x2987ac=_0x4661,_0x36624d=_0x17a3f0();while(!![]){try{const _0xb7a280=parseInt(_0x2987ac(0x3a4))/0x1*(-parseInt(_0x2987ac(0x2a2))/0x2)+parseInt(_0x2987ac(0x373))/0x3+parseInt(_0x2987ac(0x1ac))/0x4*(parseInt(_0x2987ac(0x247))/0x5)+-parseInt(_0x2987ac(0x2fe))/0x6*(parseInt(_0x2987ac(0x3ed))/0x7)+-parseInt(_0x2987ac(0x33c))/0x8*(-parseInt(_0x2987ac(0x3e6))/0x9)+-parseInt(_0x2987ac(0x2c2))/0xa+parseInt(_0x2987ac(0x28b))/0xb;if(_0xb7a280===_0x42b343)break;else _0x36624d['push'](_0x36624d['shift']());}catch(_0x15b9ac){_0x36624d['push'](_0x36624d['shift']());}}}(_0x4111,0x37a88));var Ve=Object['defineProperty'],Xe=(_0x201740,_0x414215,_0x478009)=>_0x414215 in _0x201740?Ve(_0x201740,_0x414215,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x478009}):_0x201740[_0x414215]=_0x478009,h=(_0x35208c,_0x32e97f,_0x455963)=>Xe(_0x35208c,typeof _0x32e97f!=_0x18db4e(0x1bb)?_0x32e97f+'':_0x32e97f,_0x455963);Object[_0x18db4e(0x33e)](exports,Symbol[_0x18db4e(0x252)],{'value':_0x18db4e(0x35a)});const u=require(_0x18db4e(0x3eb)),a=require(_0x18db4e(0x2bb)),p=require(_0x18db4e(0x37f)),G=require(_0x18db4e(0x1a2)),b=require('@univerjs/docs-ui'),Ge=require(_0x18db4e(0x401)),d=require('rxjs'),Y=require('@univerjs/docs'),m=require('@univerjs-pro/collaboration'),Ee=require(_0x18db4e(0x331)),g=require(_0x18db4e(0x1e1)),$=require(_0x18db4e(0x31a)),X=require(_0x18db4e(0x210)),w=require(_0x18db4e(0x34c)),T=require(_0x18db4e(0x1f1)),D=require(_0x18db4e(0x1bc)),M=require('react'),Ke=require(_0x18db4e(0x18d));var qe=Object[_0x18db4e(0x25b)],ze=(_0x371f99,_0xdc9bd6,_0x55db40,_0x3dbdd2)=>{const _0x3c5791=_0x18db4e;for(var _0x56ca92=_0x3dbdd2>0x1?void 0x0:_0x3dbdd2?qe(_0xdc9bd6,_0x55db40):_0xdc9bd6,_0x32e224=_0x371f99[_0x3c5791(0x3f7)]-0x1,_0x2fecf6;_0x32e224>=0x0;_0x32e224--)(_0x2fecf6=_0x371f99[_0x32e224])&&(_0x56ca92=_0x2fecf6(_0x56ca92)||_0x56ca92);return _0x56ca92;},Te=(_0x47d8f4,_0x55fa3c)=>(_0x13d6c3,_0x1ce40b)=>_0x55fa3c(_0x13d6c3,_0x1ce40b,_0x47d8f4);let de=class extends a[_0x18db4e(0x387)]{constructor(_0x1257d7,_0x3a5db7){const _0x170813=_0x18db4e;super(),this[_0x170813(0x329)]=_0x1257d7,this[_0x170813(0x1c0)]=_0x3a5db7,this[_0x170813(0x35e)]();}['_init'](){const _0x3a4253=_0x18db4e,_0x20656b=this;this[_0x3a4253(0x3ae)](this[_0x3a4253(0x329)][_0x3a4253(0x3c0)]({'onBeforePasteImage':async _0x39ada7=>{const _0x250491=_0x3a4253,_0x2aa6cc=await _0x20656b[_0x250491(0x1c0)][_0x250491(0x345)](_0x39ada7);return _0x2aa6cc?{'source':_0x2aa6cc[_0x250491(0x19f)],'imageSourceType':_0x2aa6cc[_0x250491(0x2ff)]}:null;}}));}};de=ze([Te(0x0,b[_0x18db4e(0x3d7)]),Te(0x1,Ge[_0x18db4e(0x366)])],de);const Oe=[_0x18db4e(0x232),_0x18db4e(0x2a3),_0x18db4e(0x2b3),_0x18db4e(0x285),_0x18db4e(0x3b5),_0x18db4e(0x1a8)];class me extends a[_0x18db4e(0x378)]{constructor(){const _0x47fed7=_0x18db4e;super(...arguments),h(this,_0x47fed7(0x323),new Map()),h(this,_0x47fed7(0x346),0x0);}[_0x18db4e(0x286)](_0x1a06c5){const _0x280ac7=_0x18db4e;if(this[_0x280ac7(0x323)][_0x280ac7(0x3f3)](_0x1a06c5))return this[_0x280ac7(0x323)][_0x280ac7(0x3b3)](_0x1a06c5);const _0x5dc3ba=Oe[this['_colorIndex']];return this[_0x280ac7(0x346)]=(this[_0x280ac7(0x346)]+0x1)%Oe[_0x280ac7(0x3f7)],this['_assignedColors'][_0x280ac7(0x26b)](_0x1a06c5,_0x5dc3ba),_0x5dc3ba;}}function we(_0x159733){const _0x1b4d68=_0x18db4e;let _0x5e92db='';for(const _0x42d7d4 of _0x159733){const {startOffset:_0x523e7d,endOffset:_0x33e51f,isActive:_0x5c905c,rangeType:_0x1aef89,segmentId:_0x92099b,segmentPage:_0x307881}=_0x42d7d4;_0x5e92db[_0x1b4d68(0x3f7)]&&(_0x5e92db+=','),_0x5e92db+=_0x523e7d+':'+_0x33e51f+':'+(_0x5c905c?'1':'0')+':'+_0x1aef89+':'+_0x92099b+':'+_0x307881;}return _0x5e92db;}function Je(_0x30aef8){const _0x7beecc=_0x18db4e,_0x2fc80b=_0x30aef8['split'](','),_0x5d3177=[];for(const _0x2b71cd of _0x2fc80b){const [_0x4e4329,_0x1e2397,_0x495b7a,_0x467754,_0x2c6857,_0x434179]=_0x2b71cd[_0x7beecc(0x337)](':');_0x5d3177[_0x7beecc(0x342)]({'startOffset':Number(_0x4e4329),'endOffset':Number(_0x1e2397),'collapsed':_0x4e4329===_0x1e2397,'isActive':_0x495b7a==='1','rangeType':_0x467754===a[_0x7beecc(0x383)][_0x7beecc(0x3c8)]?a[_0x7beecc(0x383)][_0x7beecc(0x3c8)]:a[_0x7beecc(0x383)][_0x7beecc(0x222)],'segmentId':typeof _0x2c6857==_0x7beecc(0x3b1)?String(_0x2c6857):'','segmentPage':Number(_0x434179!=null?_0x434179:-0x1)});}return _0x5d3177[_0x7beecc(0x2d7)](_0x217cc4=>_0x217cc4['isActive'])||(_0x5d3177[0x0][_0x7beecc(0x319)]=!0x0),_0x5d3177;}class Ce extends a['RxDisposable']{constructor(){const _0x12c34d=_0x18db4e;super(...arguments),h(this,'_collabCursorState$',new d['BehaviorSubject'](null)),h(this,_0x12c34d(0x3cf),this[_0x12c34d(0x300)][_0x12c34d(0x369)]());}[_0x18db4e(0x28d)](_0x1d38fa){const _0x1e0a9b=_0x18db4e,{unitID:_0x210f36,memberID:_0x269a9e,textRanges:_0x4f3ae7}=_0x1d38fa,_0x4ebbfd=we(_0x4f3ae7);if(_0x4ebbfd==='')return;const _0x54983e={'unitID':_0x210f36,'memberID':_0x269a9e,'selection':_0x4ebbfd};this['_collabCursorState$'][_0x1e0a9b(0x187)](_0x54983e);}}var Ze=Object[_0x18db4e(0x25b)],Qe=(_0x4b545b,_0x57d3a9,_0x12f200,_0x59e363)=>{const _0x19ee17=_0x18db4e;for(var _0x355a72=_0x59e363>0x1?void 0x0:_0x59e363?Ze(_0x57d3a9,_0x12f200):_0x57d3a9,_0x472794=_0x4b545b[_0x19ee17(0x3f7)]-0x1,_0x5f1786;_0x472794>=0x0;_0x472794--)(_0x5f1786=_0x4b545b[_0x472794])&&(_0x355a72=_0x5f1786(_0x355a72)||_0x355a72);return _0x355a72;},L=(_0x369ddd,_0x3999bc)=>(_0x2e5815,_0x4bc18b)=>_0x3999bc(_0x2e5815,_0x4bc18b,_0x369ddd);const et=0x12c,tt=0x64;let fe=class extends a[_0x18db4e(0x387)]{constructor(_0x596d02,_0x2c5130,_0x252e28,_0x2778b0,_0x5d09db,_0x1f990b,_0x453873,_0x1530ba,_0x509a76){const _0x2ea437=_0x18db4e;super(),h(this,_0x2ea437(0x1a9),!0x1),h(this,'_init',!0x1),h(this,_0x2ea437(0x2ba),new d['BehaviorSubject'](new Map())),h(this,_0x2ea437(0x22c),this[_0x2ea437(0x2ba)][_0x2ea437(0x369)]()),h(this,'_roomMembers$',new d[(_0x2ea437(0x2bd))]([])),h(this,_0x2ea437(0x36e),this[_0x2ea437(0x2c0)][_0x2ea437(0x376)](d[_0x2ea437(0x2ed)](et))),h(this,_0x2ea437(0x18b),a[_0x2ea437(0x251)](_0x1cb40d=>{const _0x2dbf44=_0x2ea437,_0x38f6cb={'eventID':m[_0x2dbf44(0x233)]['UPDATE_CURSOR'],'data':{'unitID':this[_0x2dbf44(0x208)],'memberID':this['_session'][_0x2dbf44(0x29d)](),'selection':we(_0x1cb40d)}};this[_0x2dbf44(0x390)]['send'](_0x38f6cb,this['unitID']);},tt)),(this[_0x2ea437(0x208)]=_0x596d02,this[_0x2ea437(0x390)]=_0x2c5130,this[_0x2ea437(0x1d3)]=_0x252e28,this[_0x2ea437(0x3b8)]=_0x2778b0,this[_0x2ea437(0x3e0)]=_0x5d09db,this[_0x2ea437(0x408)]=_0x1f990b,this[_0x2ea437(0x33d)]=_0x453873,this[_0x2ea437(0x184)]=_0x1530ba,this['_commandService']=_0x509a76);}get[_0x18db4e(0x347)](){const _0x20a0b0=_0x18db4e;return this[_0x20a0b0(0x2ba)][_0x20a0b0(0x197)]();}get[_0x18db4e(0x1ea)](){const _0x20622f=_0x18db4e;return this[_0x20622f(0x2c0)]['getValue']();}[_0x18db4e(0x2d3)](){const _0x35333b=_0x18db4e;super[_0x35333b(0x2d3)](),this[_0x35333b(0x2ba)][_0x35333b(0x187)](new Map()),this[_0x35333b(0x2ba)][_0x35333b(0x29f)](),this[_0x35333b(0x2c0)]['next']([]),this[_0x35333b(0x2c0)][_0x35333b(0x29f)]();}['init'](){const _0x51d3ce=_0x18db4e;this[_0x51d3ce(0x35e)]||(this[_0x51d3ce(0x35e)]=!0x0,this[_0x51d3ce(0x390)][_0x51d3ce(0x338)][_0x51d3ce(0x376)](d['takeUntil'](this['dispose$']))[_0x51d3ce(0x3d8)](_0x564660=>{const _0x4e4d30=_0x51d3ce;_0x564660===u[_0x4e4d30(0x1ee)][_0x4e4d30(0x2de)]?this[_0x4e4d30(0x321)]():this[_0x4e4d30(0x328)]();}),this['_session'][_0x51d3ce(0x1c4)][_0x51d3ce(0x376)](d[_0x51d3ce(0x36a)](this[_0x51d3ce(0x20c)]))[_0x51d3ce(0x3d8)](_0x3d5c26=>{const _0x5e3e1c=_0x51d3ce,_0x15703b=_0x3d5c26[_0x5e3e1c(0x32f)];_0x15703b===m[_0x5e3e1c(0x233)]['UPDATE_CURSOR']&&this[_0x5e3e1c(0x27c)](_0x3d5c26),_0x15703b===m[_0x5e3e1c(0x233)]['USERS_LEAVE']&&this[_0x5e3e1c(0x29b)](_0x3d5c26);}),this[_0x51d3ce(0x3ae)](this['_commandService'][_0x51d3ce(0x1d5)](_0xada8=>{const _0x408daa=_0x51d3ce,_0x56bcb4=_0xada8['params'];_0x56bcb4!=null&&this[_0x408daa(0x1a9)]&&_0xada8['id']===Y[_0x408daa(0x3d6)]['id']&&_0x56bcb4[_0x408daa(0x356)]===this['unitID']&&_0x56bcb4[_0x408daa(0x1ad)]===!0x1&&_0x56bcb4[_0x408daa(0x40f)][_0x408daa(0x3f7)]>0x0&&this['_updateLocalCursor'](_0x56bcb4[_0x408daa(0x40f)]);})),this['_syncEditingCollabCursorService'][_0x51d3ce(0x3cf)][_0x51d3ce(0x376)](d[_0x51d3ce(0x36a)](this[_0x51d3ce(0x20c)]))['subscribe'](_0x1ccda0=>{const _0x240ac7=_0x51d3ce;if((_0x1ccda0==null?void 0x0:_0x1ccda0[_0x240ac7(0x208)])!==this[_0x240ac7(0x208)])return;const _0x2632e7={'eventID':m[_0x240ac7(0x233)][_0x240ac7(0x2cd)],'data':_0x1ccda0};this[_0x240ac7(0x27c)](_0x2632e7);}),this[_0x51d3ce(0x3ae)](this[_0x51d3ce(0x17f)][_0x51d3ce(0x1d5)](_0x3bcc15=>{const _0x49b871=_0x51d3ce;if(_0x3bcc15[_0x49b871(0x223)]==null)return;const _0x5bc618=_0x3bcc15[_0x49b871(0x223)];if(_0x3bcc15['id']!==Y['RichTextEditingMutation']['id']||_0x5bc618[_0x49b871(0x356)]!==this[_0x49b871(0x208)])return;const _0x262318={'id':_0x49b871(0x2d6),'params':_0x5bc618},_0x37c09c=this[_0x49b871(0x347)];for(const [_0x36b8b8,_0x4d5cbf]of _0x37c09c){const _0x36d09f={'id':_0x49b871(0x2d6),'params':{'unitId':this[_0x49b871(0x208)],'actions':null,'textRanges':_0x4d5cbf['ranges']}},_0x34e6b2=this['_transformService'][_0x49b871(0x340)](_0x262318,_0x36d09f,!0x1);if(m[_0x49b871(0x2fc)](_0x34e6b2))throw _0x34e6b2['error'];_0x37c09c['set'](_0x36b8b8,{..._0x4d5cbf,'ranges':_0x34e6b2[_0x49b871(0x1c5)][_0x49b871(0x223)][_0x49b871(0x3b9)]});}queueMicrotask(()=>{const _0x25bdc5=_0x49b871;this[_0x25bdc5(0x2ba)][_0x25bdc5(0x187)](_0x37c09c);});})));}[_0x18db4e(0x27c)](_0x2f0ca4){const _0x218754=_0x18db4e;var _0x1dc702,_0x1b75a5;const {memberID:_0x1eda33,selection:_0xc658db}=_0x2f0ca4['data'],_0x2ece01=Je(_0xc658db),_0x41e4dc=(_0x1b75a5=(_0x1dc702=this[_0x218754(0x3e0)][_0x218754(0x1b3)](this[_0x218754(0x208)],_0x1eda33))==null?void 0x0:_0x1dc702[_0x218754(0x276)])!=null?_0x1b75a5:_0x218754(0x400),_0x32ab44={'color':this[_0x218754(0x3b8)][_0x218754(0x286)](_0x1eda33),'name':_0x41e4dc,'ranges':_0x2ece01},_0x349c57=this[_0x218754(0x347)];_0x349c57[_0x218754(0x26b)](_0x1eda33,_0x32ab44),this[_0x218754(0x2ba)][_0x218754(0x187)](_0x349c57);}[_0x18db4e(0x29b)](_0x1084fe){const _0x12d745=_0x18db4e,{memberID:_0x449d30}=_0x1084fe['data'],_0x32b014=this[_0x12d745(0x347)];_0x32b014[_0x12d745(0x3c6)](_0x449d30),this[_0x12d745(0x2ba)][_0x12d745(0x187)](_0x32b014);}[_0x18db4e(0x321)](){const _0x2fc67a=_0x18db4e;var _0x349162;if(this[_0x2fc67a(0x1a9)]=!0x0,((_0x349162=this['_univerInstanceService'][_0x2fc67a(0x3a3)]())==null?void 0x0:_0x349162[_0x2fc67a(0x2ce)]())!==this[_0x2fc67a(0x208)])return;const _0x9d8cf9=this[_0x2fc67a(0x1d3)][_0x2fc67a(0x3b3)](Y[_0x2fc67a(0x392)])[_0x2fc67a(0x336)]();Array[_0x2fc67a(0x246)](_0x9d8cf9)&&_0x9d8cf9[_0x2fc67a(0x3f7)]>0x0&&this[_0x2fc67a(0x18b)](_0x9d8cf9);}[_0x18db4e(0x328)](){const _0x47bb10=_0x18db4e;this[_0x47bb10(0x1a9)]=!0x1;}};fe=Qe([L(0x2,a[_0x18db4e(0x1ff)](a[_0x18db4e(0x20e)])),L(0x3,a[_0x18db4e(0x1ff)](me)),L(0x4,a[_0x18db4e(0x1ff)](u['MemberService'])),L(0x5,a['Inject'](Ce)),L(0x6,m['ITransformService']),L(0x7,a[_0x18db4e(0x324)]),L(0x8,a[_0x18db4e(0x39d)])],fe);var st=Object[_0x18db4e(0x25b)],it=(_0x2e76ff,_0x14b090,_0x4a66b9,_0xddae35)=>{for(var _0x2b864a=_0xddae35>0x1?void 0x0:_0xddae35?st(_0x14b090,_0x4a66b9):_0x14b090,_0x568471=_0x2e76ff['length']-0x1,_0x3cbd3b;_0x568471>=0x0;_0x568471--)(_0x3cbd3b=_0x2e76ff[_0x568471])&&(_0x2b864a=_0x3cbd3b(_0x2b864a)||_0x2b864a);return _0x2b864a;},A=(_0x211eb8,_0x22039d)=>(_0x22c41c,_0x2d73ed)=>_0x22039d(_0x22c41c,_0x2d73ed,_0x211eb8);const nt=0x12c,rt=0x64,ot=()=>{let _0x5884b1=[],_0x1f66e0=!0x1;return _0x42ff67=>{const _0x207768=_0x4661;_0x5884b1[_0x207768(0x342)](_0x42ff67),_0x1f66e0||(_0x1f66e0=!0x0,setTimeout(()=>{const _0x4f6f43=_0x207768;_0x5884b1[_0x4f6f43(0x281)](_0x209151=>_0x209151()),_0x5884b1=[],_0x1f66e0=!0x1;}));};};let Se=class extends a[_0x18db4e(0x387)]{constructor(_0xb84588,_0x1c7f65,_0x1aba3f,_0x21c7e0,_0x367c1f,_0x427d0e,_0x461866,_0x68f5bf){const _0x552074=_0x18db4e;super(),h(this,_0x552074(0x1a9),!0x1),h(this,'_init',!0x1),h(this,'_cursorInfo$',new d[(_0x552074(0x2bd))](new Map())),h(this,'cursorInfo$',this[_0x552074(0x2ba)]['asObservable']()),h(this,_0x552074(0x2c0),new d['BehaviorSubject']([])),h(this,'roomMembers$',this['_roomMembers$'][_0x552074(0x376)](d[_0x552074(0x2ed)](nt))),h(this,_0x552074(0x18b),a[_0x552074(0x251)]((_0x3549fa,_0x309fd9)=>{const _0x1ed8b9=_0x552074,_0x361fb3={'eventID':m[_0x1ed8b9(0x233)][_0x1ed8b9(0x2cd)],'data':{'unitID':this['unitID'],'memberID':this[_0x1ed8b9(0x390)]['getMemberID'](),'selection':Ee[_0x1ed8b9(0x3e4)](_0x3549fa,_0x309fd9['range'])}};this[_0x1ed8b9(0x390)][_0x1ed8b9(0x192)](_0x361fb3,this[_0x1ed8b9(0x208)]);},rt)),(this[_0x552074(0x208)]=_0xb84588,this[_0x552074(0x390)]=_0x1c7f65,this[_0x552074(0x1d3)]=_0x1aba3f,this[_0x552074(0x3b8)]=_0x21c7e0,this[_0x552074(0x3e0)]=_0x367c1f,this['_univerInstanceService']=_0x427d0e,this['_commandService']=_0x461866,this[_0x552074(0x279)]=_0x68f5bf);}get[_0x18db4e(0x347)](){const _0x44bff1=_0x18db4e;return this[_0x44bff1(0x2ba)]['getValue']();}get['roomMembers'](){const _0x295f1d=_0x18db4e;return this[_0x295f1d(0x2c0)][_0x295f1d(0x197)]();}[_0x18db4e(0x2d3)](){const _0x5d58e7=_0x18db4e;super['dispose'](),this['_cursorInfo$'][_0x5d58e7(0x187)](new Map()),this[_0x5d58e7(0x2ba)][_0x5d58e7(0x29f)](),this[_0x5d58e7(0x2c0)][_0x5d58e7(0x187)]([]),this[_0x5d58e7(0x2c0)][_0x5d58e7(0x29f)]();}[_0x18db4e(0x258)](){const _0x342793=_0x18db4e;this[_0x342793(0x35e)]||(this[_0x342793(0x35e)]=!0x0,this['_session'][_0x342793(0x338)][_0x342793(0x376)](d['takeUntil'](this[_0x342793(0x20c)]))['subscribe'](_0x5d6bf7=>{const _0xfcfa4d=_0x342793;_0x5d6bf7===u[_0xfcfa4d(0x1ee)]['ONLINE']?this['_toggleOnline']():this[_0xfcfa4d(0x328)]();}),this['_session'][_0x342793(0x1c4)]['pipe'](d['takeUntil'](this['dispose$']))['subscribe'](_0x29baf7=>{const _0x1afc68=_0x342793,_0x306b67=_0x29baf7[_0x1afc68(0x32f)];_0x306b67===m['CollaborationEvent']['UPDATE_CURSOR']&&this[_0x1afc68(0x27c)](_0x29baf7),_0x306b67===m[_0x1afc68(0x233)][_0x1afc68(0x242)]&&this['_onCursorDelete'](_0x29baf7);}),this[_0x342793(0x3bd)](),this[_0x342793(0x3ae)](this['_commandService']['onCommandExecuted'](_0x2d057f=>{const _0x7b543f=_0x342793;if(this['_online']&&_0x2d057f['id']===g[_0x7b543f(0x403)]['id']&&_0x2d057f[_0x7b543f(0x223)][_0x7b543f(0x356)]===this['unitID']){const _0x253027=_0x2d057f[_0x7b543f(0x223)];this[_0x7b543f(0x18b)](_0x253027['subUnitId'],_0x253027[_0x7b543f(0x396)][0x0]);}})));}[_0x18db4e(0x27c)](_0x40b620){const _0x581aae=_0x18db4e;var _0x5a1a30,_0x528c9b;const {memberID:_0x3c81c2,selection:_0x2bce5c}=_0x40b620['data'],{sheetName:_0x193529,range:_0x45caec}=Ee[_0x581aae(0x314)](_0x2bce5c),_0x246a65={'name':(_0x528c9b=(_0x5a1a30=this[_0x581aae(0x3e0)][_0x581aae(0x1b3)](this[_0x581aae(0x208)],_0x3c81c2))==null?void 0x0:_0x5a1a30[_0x581aae(0x276)])!=null?_0x528c9b:_0x581aae(0x400),'range':this['_getMergeRange'](_0x193529,_0x45caec),'sheetID':_0x193529,'color':this[_0x581aae(0x3b8)][_0x581aae(0x286)](_0x3c81c2),'selection':_0x2bce5c},_0x38d0a1=this[_0x581aae(0x347)];_0x38d0a1[_0x581aae(0x26b)](_0x3c81c2,_0x246a65),this[_0x581aae(0x2ba)][_0x581aae(0x187)](_0x38d0a1);}[_0x18db4e(0x29b)](_0x543436){const _0x10c130=_0x18db4e,{memberID:_0x10c4ee}=_0x543436[_0x10c130(0x318)],_0x1fbbe0=this['cursorInfo'];_0x1fbbe0[_0x10c130(0x3c6)](_0x10c4ee),this[_0x10c130(0x2ba)]['next'](_0x1fbbe0);}[_0x18db4e(0x3cc)](_0x14f0ab,_0x5f4d0a){const _0x4fb994=_0x18db4e;var _0x301b8e,_0x188521;const _0x5c4d98=(_0x188521=(_0x301b8e=this['_univerInstanceService'][_0x4fb994(0x3df)](this[_0x4fb994(0x208)]))==null?void 0x0:_0x301b8e[_0x4fb994(0x1af)](_0x14f0ab))==null?void 0x0:_0x188521['getMergeData']();return(_0x5c4d98==null?void 0x0:_0x5c4d98[_0x4fb994(0x3fd)](_0x38847c=>a[_0x4fb994(0x1ca)][_0x4fb994(0x275)](_0x38847c,_0x5f4d0a)))||_0x5f4d0a;}[_0x18db4e(0x3bd)](){const _0x55a603=_0x18db4e,_0x45e894=new a[(_0x55a603(0x216))](),_0x39dbd6=ot(),_0x4119fa=()=>{const _0x420278=_0x55a603;_0x45e894['dispose']();const _0x48750b=(_0x54496b,_0x5398cd,_0x4dd1e3,_0x5589ab)=>{const _0x53c3a0=_0x4661;let _0x447b94=[];switch(_0x54496b['id']){case g[_0x53c3a0(0x30d)][_0x53c3a0(0x316)]:{_0x447b94=g['handleDeleteRangeMoveLeft'](_0x54496b,_0x5589ab);break;}case g[_0x53c3a0(0x30d)][_0x53c3a0(0x406)]:{_0x447b94=g[_0x53c3a0(0x307)](_0x54496b,_0x5589ab);break;}case g[_0x53c3a0(0x30d)]['InsertColCommandId']:{_0x447b94=g[_0x53c3a0(0x23e)](_0x54496b,_0x5589ab);break;}case g[_0x53c3a0(0x30d)][_0x53c3a0(0x3c3)]:{_0x447b94=g[_0x53c3a0(0x2b2)](_0x54496b,_0x5589ab);break;}case g[_0x53c3a0(0x30d)][_0x53c3a0(0x257)]:{_0x447b94=g[_0x53c3a0(0x385)](_0x54496b,_0x5589ab);break;}case g['EffectRefRangId'][_0x53c3a0(0x37b)]:{_0x447b94=g[_0x53c3a0(0x1fa)](_0x54496b,_0x5589ab);break;}case g['EffectRefRangId'][_0x53c3a0(0x294)]:{_0x447b94=g[_0x53c3a0(0x3be)](_0x54496b,_0x5589ab);break;}case g['EffectRefRangId'][_0x53c3a0(0x354)]:{_0x447b94=g[_0x53c3a0(0x3f5)](_0x54496b,_0x5589ab);break;}case g[_0x53c3a0(0x30d)]['RemoveRowCommandId']:{_0x447b94=g[_0x53c3a0(0x3b0)](_0x54496b,_0x5589ab);break;}}const _0x54853c=g['runRefRangeMutations'](_0x447b94,_0x5589ab),_0x4a3416=this[_0x53c3a0(0x347)][_0x53c3a0(0x3b3)](_0x5398cd);if(_0x4a3416&&_0x54853c){const _0x204d5e={..._0x4a3416,'range':_0x54853c};this['cursorInfo'][_0x53c3a0(0x26b)](_0x5398cd,_0x204d5e),_0x39dbd6(()=>{const _0x2303c9=_0x53c3a0,_0x3ca361=this[_0x2303c9(0x279)][_0x2303c9(0x362)](_0x54853c,_0x21076c=>(_0x3ca361[_0x2303c9(0x2d3)](),_0x48750b(_0x21076c,_0x5398cd,_0x4dd1e3,_0x54853c)));_0x45e894[_0x2303c9(0x245)](_0x3ca361);});}return{'redos':[],'undos':[]};};this[_0x420278(0x347)][_0x420278(0x281)]((_0x2a2ec4,_0x18b417)=>{const _0x5d0b86=_0x420278,{range:_0x5b1f6a,sheetID:_0x10fb49}=_0x2a2ec4,_0x1d2a7e=this['_refRangeService']['registerRefRange'](_0x5b1f6a,_0x23985c=>(_0x1d2a7e[_0x5d0b86(0x2d3)](),_0x48750b(_0x23985c,_0x18b417,_0x10fb49,_0x5b1f6a)));_0x45e894[_0x5d0b86(0x245)](_0x1d2a7e);});};this['disposeWithMe'](a[_0x55a603(0x3e7)](this[_0x55a603(0x2ba)][_0x55a603(0x3d8)](()=>{_0x4119fa();})));}['_toggleOnline'](){const _0x1743ff=_0x18db4e;var _0x237f1a,_0x5e72a6;if(this[_0x1743ff(0x1a9)]=!0x0,((_0x237f1a=this[_0x1743ff(0x184)]['getFocusedUnit']())==null?void 0x0:_0x237f1a[_0x1743ff(0x2ce)]())!==this[_0x1743ff(0x208)])return;const _0x468bab=(_0x5e72a6=this[_0x1743ff(0x1d3)][_0x1743ff(0x3b3)](g[_0x1743ff(0x2a9)])['getCurrentSelections']())==null?void 0x0:_0x5e72a6[0x0],_0x1d2414=this[_0x1743ff(0x184)][_0x1743ff(0x3fe)](a[_0x1743ff(0x1b7)][_0x1743ff(0x2c8)])[_0x1743ff(0x24b)]();_0x468bab&&_0x1d2414&&this[_0x1743ff(0x18b)](_0x1d2414['getSheetId'](),_0x468bab);}['_toggleOffline'](){const _0x17caf1=_0x18db4e;this[_0x17caf1(0x1a9)]=!0x1;}};Se=it([A(0x2,a[_0x18db4e(0x1ff)](a[_0x18db4e(0x20e)])),A(0x3,a[_0x18db4e(0x1ff)](me)),A(0x4,a[_0x18db4e(0x1ff)](u['MemberService'])),A(0x5,a[_0x18db4e(0x324)]),A(0x6,a[_0x18db4e(0x39d)]),A(0x7,a[_0x18db4e(0x1ff)](g[_0x18db4e(0x327)]))],Se);var at=Object[_0x18db4e(0x25b)],ct=(_0x3149c5,_0x7ee193,_0x47c30e,_0x4285c7)=>{for(var _0x7f8906=_0x4285c7>0x1?void 0x0:_0x4285c7?at(_0x7ee193,_0x47c30e):_0x7ee193,_0x196e1a=_0x3149c5['length']-0x1,_0x25614f;_0x196e1a>=0x0;_0x196e1a--)(_0x25614f=_0x3149c5[_0x196e1a])&&(_0x7f8906=_0x25614f(_0x7f8906)||_0x7f8906);return _0x7f8906;},ie=(_0x599688,_0x20cf74)=>(_0x22b68e,_0x170ca3)=>_0x20cf74(_0x22b68e,_0x170ca3,_0x599688);let x=class extends a['RxDisposable']{constructor(_0x164717,_0x2b9e0f,_0x46ea2c){const _0xb778dc=_0x18db4e;super(),h(this,_0xb778dc(0x1e6),new Map()),h(this,_0xb778dc(0x2d5),new d[(_0xb778dc(0x1db))]()),(this['_univerInstanceService']=_0x164717,this[_0xb778dc(0x1d3)]=_0x2b9e0f,this[_0xb778dc(0x320)]=_0x46ea2c,this[_0xb778dc(0x35e)]());}[_0x18db4e(0x2d3)](){const _0x220c00=_0x18db4e;super[_0x220c00(0x2d3)](),this['_entityInit$'][_0x220c00(0x29f)](),this[_0x220c00(0x1e6)]['forEach'](_0x26b9c4=>_0x26b9c4['dispose']());}[_0x18db4e(0x2b4)](_0x21c6e2){const _0x4504ac=_0x18db4e;return this[_0x4504ac(0x1e6)]['has'](_0x21c6e2)?this[_0x4504ac(0x1e6)][_0x4504ac(0x3b3)](_0x21c6e2)[_0x4504ac(0x22c)]:this[_0x4504ac(0x2d5)]['pipe'](d[_0x4504ac(0x261)](_0x3ca50a=>_0x3ca50a[_0x4504ac(0x208)]===_0x21c6e2),d[_0x4504ac(0x3ca)](_0x397f2d=>_0x397f2d[_0x4504ac(0x22c)]));}[_0x18db4e(0x35e)](){const _0xc75f6e=_0x18db4e;this['_univerInstanceService'][_0xc75f6e(0x351)](a[_0xc75f6e(0x1b7)][_0xc75f6e(0x2c8)])[_0xc75f6e(0x376)](d['takeUntil'](this[_0xc75f6e(0x20c)]))[_0xc75f6e(0x3d8)](async _0x5f46db=>{const _0x186afc=_0xc75f6e,_0x19886c=_0x5f46db[_0x186afc(0x2ce)](),_0x5e252d=await this[_0x186afc(0x237)](_0x19886c);this[_0x186afc(0x2d5)]['next'](_0x5e252d),this['_entities'][_0x186afc(0x26b)](_0x19886c,_0x5e252d);}),this[_0xc75f6e(0x184)]['getTypeOfUnitAdded$'](a[_0xc75f6e(0x1b7)][_0xc75f6e(0x226)])['pipe'](d[_0xc75f6e(0x36a)](this[_0xc75f6e(0x20c)]))[_0xc75f6e(0x376)](d[_0xc75f6e(0x261)](_0x58a049=>!_0x58a049[_0xc75f6e(0x2ce)]()[_0xc75f6e(0x3c2)]('__')))['subscribe'](async _0x2d5663=>{const _0x5f165b=_0xc75f6e,_0x33b323=_0x2d5663[_0x5f165b(0x2ce)](),_0x28088c=await this['_startDocCollabCursor'](_0x33b323);this[_0x5f165b(0x2d5)][_0x5f165b(0x187)](_0x28088c),this['_entities']['set'](_0x33b323,_0x28088c);}),d[_0xc75f6e(0x1ab)](this[_0xc75f6e(0x184)]['getTypeOfUnitDisposed$'](a[_0xc75f6e(0x1b7)][_0xc75f6e(0x226)]),this[_0xc75f6e(0x184)][_0xc75f6e(0x1e2)](a[_0xc75f6e(0x1b7)][_0xc75f6e(0x2c8)]))[_0xc75f6e(0x376)](d[_0xc75f6e(0x36a)](this['dispose$']))[_0xc75f6e(0x3d8)](_0x5a85f2=>{const _0x47b9c2=_0xc75f6e,_0x313f00=_0x5a85f2[_0x47b9c2(0x2ce)](),_0x49f614=this[_0x47b9c2(0x1e6)][_0x47b9c2(0x3b3)](_0x313f00);_0x49f614&&(_0x49f614[_0x47b9c2(0x2d3)](),this[_0x47b9c2(0x1e6)][_0x47b9c2(0x3c6)](_0x313f00));});}async[_0x18db4e(0x237)](_0x28768d){const _0x5ba3b9=_0x18db4e,_0x511874=await this[_0x5ba3b9(0x320)][_0x5ba3b9(0x2d0)](_0x28768d),_0x47fc24=this['_injector']['createInstance'](Se,_0x28768d,_0x511874);return _0x47fc24[_0x5ba3b9(0x258)](),_0x47fc24;}async['_startDocCollabCursor'](_0x3804f8){const _0x45f29b=_0x18db4e,_0x280bde=await this[_0x45f29b(0x320)][_0x45f29b(0x2d0)](_0x3804f8),_0x41ea44=this[_0x45f29b(0x1d3)][_0x45f29b(0x3d4)](fe,_0x3804f8,_0x280bde);return _0x41ea44[_0x45f29b(0x258)](),_0x41ea44;}};x=ct([ie(0x0,a[_0x18db4e(0x324)]),ie(0x1,a[_0x18db4e(0x1ff)](a[_0x18db4e(0x20e)])),ie(0x2,a[_0x18db4e(0x1ff)](u[_0x18db4e(0x3a5)]))],x);const K=0x14,Re=0xc8,ne=0x4,lt=0x5;function _t(_0x2e915f,_0x674ba1){const _0x5560e2=_0x18db4e;let {radius:_0x3565c8,width:_0x1e41b8,height:_0x3b8fae}=_0x674ba1;_0x3565c8=_0x3565c8!=null?_0x3565c8:0x0,_0x1e41b8=_0x1e41b8!=null?_0x1e41b8:0x1e,_0x3b8fae=_0x3b8fae!=null?_0x3b8fae:0x1e;let _0x418324=0x0,_0x3ec895=0x0,_0x422dac=0x0;_0x418324=_0x3ec895=_0x422dac=Math['min'](_0x3565c8,_0x1e41b8/0x2,_0x3b8fae/0x2),_0x2e915f[_0x5560e2(0x393)](),_0x2e915f[_0x5560e2(0x2d4)](_0x418324,0x0),_0x2e915f[_0x5560e2(0x39c)](_0x1e41b8-_0x3ec895,0x0),_0x2e915f[_0x5560e2(0x29c)](_0x1e41b8-_0x3ec895,_0x3ec895,_0x3ec895,Math['PI']*0x3/0x2,0x0,!0x1),_0x2e915f[_0x5560e2(0x39c)](_0x1e41b8,_0x3b8fae-_0x422dac),_0x2e915f[_0x5560e2(0x29c)](_0x1e41b8-_0x422dac,_0x3b8fae-_0x422dac,_0x422dac,0x0,Math['PI']/0x2,!0x1),_0x2e915f[_0x5560e2(0x39c)](0x0,_0x3b8fae),_0x2e915f[_0x5560e2(0x39c)](0x0,_0x418324),_0x2e915f[_0x5560e2(0x29c)](_0x418324,_0x418324,_0x418324,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x2e915f[_0x5560e2(0x288)](),_0x674ba1[_0x5560e2(0x35c)]&&(_0x2e915f[_0x5560e2(0x33f)](),_0x2e915f[_0x5560e2(0x1da)]=_0x674ba1[_0x5560e2(0x35c)],_0x674ba1[_0x5560e2(0x1f8)]===_0x5560e2(0x388)?_0x2e915f[_0x5560e2(0x35c)](_0x5560e2(0x388)):_0x2e915f[_0x5560e2(0x35c)](),_0x2e915f[_0x5560e2(0x26e)]());}class ee extends p[_0x18db4e(0x278)]{constructor(_0x1d3445,_0x2b49ba){const _0x2818b5=_0x18db4e;super(_0x1d3445,_0x2b49ba),h(this,'color'),h(this,'text'),(this['color']=_0x2b49ba==null?void 0x0:_0x2b49ba[_0x2818b5(0x296)],this[_0x2818b5(0x2d9)]=_0x2b49ba==null?void 0x0:_0x2b49ba['text']);}static[_0x18db4e(0x293)](_0x181673,_0x47817b){const _0x43f51e=_0x18db4e,{text:_0x4bd8f3,color:_0x549fa2}=_0x47817b;_0x181673[_0x43f51e(0x33f)](),_0x181673['font']=_0x43f51e(0x1e5);const _0x475346=_0x181673[_0x43f51e(0x27a)](_0x4bd8f3)['width'],_0x474f4c=Math[_0x43f51e(0x23f)](_0x475346+0x2*ne,Re);_t(_0x181673,{'height':K,'radius':0x4,'width':_0x474f4c,'fill':_0x549fa2}),_0x181673[_0x43f51e(0x1da)]=_0x43f51e(0x21c);const _0x2dbbdf=ne,_0x289e76=K-lt,_0x5b8495=Re-0x2*ne;if(_0x475346>_0x5b8495){let _0x65cc40='',_0x14da8e=0x0;for(const _0x5eb768 of _0x4bd8f3){const _0x1b2936=_0x181673[_0x43f51e(0x27a)](_0x5eb768)[_0x43f51e(0x2ae)];if(_0x14da8e+_0x1b2936<=_0x5b8495-_0x181673[_0x43f51e(0x27a)](_0x43f51e(0x189))[_0x43f51e(0x2ae)])_0x65cc40+=_0x5eb768,_0x14da8e+=_0x1b2936;else{_0x65cc40+=_0x43f51e(0x189);break;}}_0x181673[_0x43f51e(0x248)](_0x65cc40,_0x2dbbdf,_0x289e76);}else _0x181673[_0x43f51e(0x248)](_0x4bd8f3,_0x2dbbdf,_0x289e76);_0x181673[_0x43f51e(0x26e)]();}[_0x18db4e(0x310)](_0x216790){ee['drawWith'](_0x216790,this);}}function _0x4111(){const _0x3544c9=['column','getDocRanges','split','sessionStatus$','INVITE_CODE_REQUIRED','/run/','_document','5160HPooMu','_transformService','defineProperty','save','transformMutation','actions','push','translate(.97)','setConfig','saveImage','_colorIndex','cursorInfo','deepClone','memberID','USER_NOT_INVITED_CODE','mask','react/jsx-runtime','Vector2','_scheduleSaving','DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT','_backgroundColor','getTypeOfUnitAdded$','saveTaskMap','CONFLICT','RemoveColCommandId','searchParams','unitId','_scene','useRef','fromEvent','Module','INotificationService','fill','flatMap','_init','Failed','ENSURE_SNAPSHOT_EXECUTION','urlChange$','registerRefRange','getParam','getUnhiddenWorksheets','_getSessionTicket','IImageIoService','onPointerEnter$','_collaborationUIEventService','asObservable','takeUntil','sheetId','collaboration.closeRoom','TEXT_RANGE_LAYER_INDEX','roomMembers$','PERMISSION_DENIED','startColumn','prototype','from','234666UjSiji','FETCH_MISS','disableLocalCache','pipe','_urlService','Disposable','body','MOBILE_HAS_BEEN_BOUND','InsertRowCommandId','triggerDblclick','_handleHover','_transformPreviousActiveRange','@univerjs/engine-render','SheetCollabCursorShape','white','_collabCursorController','DOC_RANGE_TYPE','current','handleInsertRangeMoveRight','url(#off-line-icon_clip0_910_343)','RxDisposable','evenodd','concat','clearInterval','max','history','session.collaboration-timeout','transformIMECache','entityInit$','_session','black','DocSelectionManagerService','beginPath','COLORS','newValue','selections','executeCommand','permission.title','none','values','with','lineTo','ICommandService','error','attrs','hovered','_anchor','_getSheetObject','getFocusedUnit','1NqshAP','CollaborationSessionService','_logService','connectInjector','loadOfflineData','map','status$','createSocket','INVALID_INVITE_CODE','getOffsetConfig','disposeWithMe','labelPosition','handleIRemoveRow','string','call','get','BrowserCollaborationSocketService','blue.400','substring','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','_colorAssignService','textRanges','_context','_render','UniverCollaborationClientUIPlugin','_onRefRangeChange','handleMoveRange','hide','addClipboardHook','MessageType','startsWith','InsertRangeMoveDownCommandId','_localCacheService','location','delete','forwardRef','TEXT','_instanceService','switchMap','_docStateChangeManagerService','_getMergeRange','CLOSE_ROOM','NodePositionConvertToRectRange','collabCursorState$','apply','subscribeEvent','_renderManagerService','getConfig','createInstance','UniverCollaborationClientPlugin','SetTextSelectionsOperation','IDocClipboardService','subscribe','UNRECOGNIZED','LICENSE_MAX_UNITS_EXCEEDED','session.will-retry','show','origin','transformRemoteChangeset','getUniverSheetInstance','_memberService','path','APPLY_REJECT','collaboration-client.offline-data-not-saved','serializeRangeWithSheet','DocIMEInputManagerService','1530AwkPFH','toDisposable','_setupSubUnitSync','m1Prime','_removeClearOtherTimer','@univerjs-pro/collaboration-client','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','238zqmcVT','invokeId','_cursors','createIdentifier','_shapes','subunit','has','pluginName','handleIRemoveCol','DocStateChangeManagerService','length','LICENSE_IMPORT_SIZE_EXCEEDED','ACTIVE_UNIT_EVENT_CHANNEL','registerDependencies','onMouseMove','CollaborationUIEventId','find','getCurrentUnitForType','touchDependencies','Unknown\x20user','@univerjs/drawing','APPLY_NON_SEQUENTIAL_REVISION','SetSelectionsOperation','pushState','_docSkeletonManagerService','DeleteRangeMoveUpCommandId','clsx','_syncEditingCollabCursorService','DataLoaderService','collabStatus.synced','popstate','_cachedData','replaceState','YUUMI_TABLE_NOT_FOUND_IN_UNIT','ranges','range','_registerRenderDependencies','WECHAT_HAS_BEEN_BOUND','executionId','OTHER_CLIENT_EDITING','_commandService','YUUMI_ALL_TABLES_IS_INVALID','isTransformMutationsWithChangesetSuccess','[CollaborationDataLoaderController]','clipPath','_univerInstanceService','unit','_updateCollabCursors','next','_collaborationController','...','_initEntityListener','_updateLocalCursor','combineLatest','@univerjs/rpc','IURLService','currentTheme$','ILocalCacheService','onPointerMove$','send','CollaborationSocketService','_drawTextRange','YUUMI_URL_COL_OUT_OF_RANGE','docStateChange$','getValue','getSkeleton','OnLineIcon','DocCollaborationEntity','_cursorShapes','on-line-icon','CollaborationUIEventService','MUTATION','source','UNAUTHENTICATED','undoState','@univerjs/network','useDependency','DependentOn','url(#on-line-icon_clip0_910_349)','_sheetSkeletonManagerService','hasOwnProperty','yellow.400','_online','redoState','merge','4660QBQYcC','isEditing','_textBubble','getSheetBySheetId','ThemeService','LOGIN_FAILED','_initEvent','getMember','CollaborationStatus','transformMutationsWithChangeset','collabStatus.fetchMiss','UniverInstanceType','collab-rect-range-','replaceDocRanges','_updateURLWithCurrentState','symbol','@univerjs/design','IUIPartsService','getItem','getCollabEntity$','_imageIoService','tag','setParam','ColorKit','event$','m2Prime','useObservable','_hover','NOT_COLLAB','href','Rectangle','NOT_FOUND','univer-flex\x20univer-mr-2\x20univer-text-xl','_initCommandExecutedListener','_setupBeforeClosingHandler','toString','getColorFromTheme','colorChannel1','entries','_injector','transformSelections','onCommandExecuted','round','FromArray','LICENSE_DISTRO_REJECTED','_localeService','fillStyle','Subject','disposeUnit','setItem','YUUMI_NO_CUBOID_FOR_QUESTION','_getAnchorBounding','on-line-icon_clip0_910_349','@univerjs/sheets','getTypeOfUnitDisposed$','http://www.w3.org/2000/svg','resize','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','_entities','getStateCache','setUndoRedoMutationParamsCache','jsx','roomMembers','makeDirty','children','getCurrentRevOfUnit','SessionStatus','off-line-icon','_initDependencies','@univerjs/ui','type','_refreshCollabCursors','icon','endRow','mutations','sheetID','fillRule','_drawRectRange','handleInsertRow','_handleJoinEvent','OTHER_CLIENTS_EDITING','_eventUnsubscribe','selection','Inject','code','_disabled','CHANGESET_REVISION_CONFILICT','displayName','setAlpha','YUUMI_RATE_OVER_LIMIT','sessionTicket','propertyIsEnumerable','unitID','storage','_beforeCloseService','setTimeout','dispose$','collabStatus.notCollab','Injector','WebBrowserSingleActiveUnitService','@univerjs/sheets-ui','addEventListener','IBeforeCloseService','INVITE_CODE_ALREADY_BOUND','_docTransformStateCacheService','getVpScrollXYInfoByPosToVp','DisposableCollection','className','SNAPSHOT_INVALID_SNAPSHOT','YUUMI_SUBSCRIPTION_NOT_FOUND','SheetSkeletonManagerService','toRgbString','#FFF','getCurrent','xlink:href','_removeCollabCursors','_selfUnitIDs','transform','RECT','params','all','Rect','UNIVER_DOC','_status$','IRenderManagerService','collaboration-client-ui.config','collaboration.single-unit.warning','transformByState','cursorInfo$','_httpService','_anchorDot','_registerDependencies','_handleEvent','univerjs-icon\x20univerjs-icon-','purple.300','CollaborationEvent','activeSheet$','Tooltip','generateRandomId','_startSheetCollabCursor','clearTimeout','_transformHistoryAndStateStack','_getScale','BuiltInUIPart','0\x200\x2016\x2016','url(#$1','handleInsertCol','min','getSheetId','collabStatus.syncing','USERS_LEAVE','UNIVER_COLLABORATION_CLIENT_WEB_PLUGIN','_initStatusListener','add','isArray','1875NaeUde','fillText','random','DEFAULT_WS_SESSION_TICKET_URL','getActiveSheet','TRANSFORM_CHANGE_OBSERVABLE_TYPE','currentSkeleton$','_hovered','runId','SOCKET_FAILED_RETRY','debounce','toStringTag','then','ISnapshotServerService','WebSocketService','_scheduleClearOtherTimer','InsertRangeMoveRightCommandId','init','COMPLETION_FINISHED','unsubscribe','getOwnPropertyDescriptor','getRelativeToViewportCoord','debug','useCallback','rgba(255,\x20255,\x20255,\x200.01)','TOO_MANY_REQUESTS','filter','_messageService','NO_OTHER_CLIENTS_EDITING','YUUMI_PROMPT_MAX_TOKENS_EXCEEDED','_docTransformIMECacheService','saveOfflineData','defIds','mergeOverrideWithDependencies','OFFLINE','YUUMI_AI_RUN_FAILED','set','DesktopCollaborationStatusDisplayController','JOIN_ROOM_FAILED','restore','idSuffix','updateOfflineData','_send','getLocalCacheKey','CollaborationDataLoaderController','_dataLoaderService','contains','name','jsxs','Shape','_refRangeService','measureText','_docSyncEditingCollabCursorService','_onCursorUpdate','SYNCED','REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY','UNDEFINED','_handleHeartbeatEvent','forEach','indexOf','addHandlerCallback','_transformUndoRedoStack','red.300','assignAColorForMemberID','collab-client.tooltip.reconnect','closePath','_saveCache','UnitStatus','5515675YAfwLb','YUUMI_ASYNCIO_CANCELLED','syncEditingCollabCursor','_notificationService','collab-text-range-','getActiveRange','replace','trim','drawWith','MoveRangeCommandId','_range','color','AWAITING_WITH_PENDING','svg','INVITE_CODE_HAS_BEEN_UES','YUUMI_UNABLE_LOAD_URL','_onCursorDelete','arc','getMemberID','Error','complete','bottom','ILogService','738102GNoMzQ','jiqing.500','unload','registerBeforeClose','currentColor','_id','getAncestorScale','SheetsSelectionsService','LICENSE_EXPORT_SIZE_EXCEEDED','top','defs','Warning','width','getRangePointData','fromEventSubject','_unitStatus','handleInsertRangeMoveDown','green.600','getCollabCursors$','INVALID_ARGUMENT','_color','CONNECTOR_DATA_TOO_LARGE','reconnect','_revisionService','_cursorInfo$','@univerjs/core','_getSaveTimeout','BehaviorSubject','includes','addObject','_roomMembers$','onRendered','2980810YjzrWj','off-line-icon_clip0_910_343','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','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','_localStorageService','_configService','UNIVER_SHEET','_themeService','stringify','_scheduleHeartbeat','RegularPolygon','UPDATE_CURSOR','getUnitId','Tools','requireSession','function','registerComponent','dispose','moveTo','_entityInit$','doc.mutation.rich-text-editing','some','session.connection-failed','text','getUnitStatus$','ITransformService','LocaleService','getOwnPropertySymbols','ONLINE','_uiPartsService','div','endColumn','onPointerLeave$','throttleTime','collabStatus.offline','1em','transformStateCache','shareReplay','assign','_initStatusComponent','_docTransformSelectionsService','engine','findNodePositionByCharIndex','debounceTime','getCoordByCell','runOnServer','_saveTaskMap','HTTPService','_hideTimer','_config','_initResize','_name','setInterval','uni.network.url-service','createElement','exhaustSavingTask','_labelPosition','row','isTransformMutationFailure','skeleton','40776naCpKy','imageSourceType','_collabCursorState$','EMAIL_HAS_BEEN_BOUND','univer-flex\x20univer-items-center','use','APPLY_DUPLICATED','getColor','OffLineIcon','handleDeleteRangeMoveUp','CollaborationController','IConfigService','size','Workbook','ALREADY_EXISTS','EffectRefRangId','INTERNAL_ERROR','getRenderById','_draw','_lastPointer','permission.content','height','deserializeRangeWithSheet','RemoteUniscriptService','DeleteRangeMoveLeftCommandId','_ensureSubject','data','isActive','rxjs/operators','0\x200\x2017\x2016','_clearOtherTimers','collab-text-anchor-','ticket','getSheetObject','_collabSessionService','_toggleOnline','_heartbeatTimer','_assignedColors','IUniverInstanceService','SNAPSHOT_HAS_BEEN_REMOVED','whenReady','RefRangeService','_toggleOffline','_docClipboardService','univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','setShapeProps','removeParam','unshift','IRemoteInstanceService','eventID','_unitOnClients','@univerjs/engine-formula','SUBMIT_CHANGESET_TIMEOUT','setStateCache','CollaborationStatusDisplay'];_0x4111=function(){return _0x3544c9;};return _0x4111();}const re=_0x18db4e(0x31d),ht=_0x18db4e(0x28f),ut=_0x18db4e(0x1b8),k=0x6,dt=1.5,oe=0x4,ft=1.5,St=_0x18db4e(0x25f);class De{constructor(_0xed7743,_0x17ae86,_0x130d48,_0x4356bb){const _0x29120a=_0x18db4e;h(this,_0x29120a(0x3f1),[]),h(this,_0x29120a(0x3a1),null),h(this,_0x29120a(0x1ae),null),h(this,_0x29120a(0x22e),null),h(this,'_hideTimer',null),h(this,_0x29120a(0x1fd),null),(this['_cursor']=_0xed7743,this[_0x29120a(0x357)]=_0x17ae86,this['_docSkeleton']=_0x130d48,this[_0x29120a(0x33b)]=_0x4356bb,this['_render']());}set['_hover'](_0x3b707a){const _0x21bf2b=_0x18db4e;_0x3b707a?(this['_anchorDot']&&this[_0x21bf2b(0x22e)][_0x21bf2b(0x3bf)](),this['_textBubble']&&this[_0x21bf2b(0x1ae)][_0x21bf2b(0x3dc)]()):(this[_0x21bf2b(0x22e)]&&this[_0x21bf2b(0x22e)][_0x21bf2b(0x3dc)](),this[_0x21bf2b(0x1ae)]&&this[_0x21bf2b(0x1ae)][_0x21bf2b(0x3bf)]());}[_0x18db4e(0x2d3)](){const _0x22a495=_0x18db4e;for(const _0x570192 of this[_0x22a495(0x3f1)])_0x570192['dispose']();this[_0x22a495(0x1ae)]&&this[_0x22a495(0x1ae)][_0x22a495(0x2d3)](),this['_anchorDot']&&this[_0x22a495(0x22e)][_0x22a495(0x2d3)](),this[_0x22a495(0x3a1)]&&this[_0x22a495(0x3a1)][_0x22a495(0x2d3)](),this[_0x22a495(0x1fd)]&&this[_0x22a495(0x1fd)]();}[_0x18db4e(0x3bb)](){const _0x4a5283=_0x18db4e;var _0x34df00;const {_docSkeleton:_0x541d9f,_document:_0x4ec1df}=this,{color:_0x5d29b5,name:_0x1025a9,ranges:_0x83d759}=this['_cursor'],_0xd8f778=_0x4ec1df[_0x4a5283(0x3ad)](),{docsLeft:_0x56aa44,docsTop:_0x5458d3}=_0xd8f778,_0x269882=new b['NodePositionConvertToCursor'](_0xd8f778,_0x541d9f);for(const {startOffset:_0x278ece,endOffset:_0x2f2d3d,rangeType:_0xbf22a3,segmentId:_0x11d9de,segmentPage:_0x3924e8,collapsed:_0x444bdd,isActive:_0x3410d7}of _0x83d759){const _0x586060=_0x541d9f[_0x4a5283(0x2ec)](_0x278ece,!0x0,_0x11d9de,_0x3924e8);let _0x48e0b7=_0x541d9f['findNodePositionByCharIndex'](_0x2f2d3d,!0x0,_0x11d9de,_0x3924e8);if(_0x48e0b7==null&&(_0x48e0b7=_0x541d9f['findNodePositionByCharIndex'](_0x2f2d3d-0x1,!0x1,_0x11d9de,_0x3924e8)),_0x3410d7){const {contentBoxPointGroup:_0x2063be}=_0x269882['getRangePointData'](_0x48e0b7,_0x48e0b7);if(_0x2063be[_0x4a5283(0x3f7)]===0x0)continue;this['_drawAnchor'](_0x5d29b5,_0x2063be,_0x56aa44,_0x5458d3,_0x1025a9),this['_eventUnsubscribe']=this['_handleHover']();}if(_0x586060&&_0x48e0b7){if(_0xbf22a3===a['DOC_RANGE_TYPE'][_0x4a5283(0x222)]){const _0x35fe15=new b[(_0x4a5283(0x3ce))](_0xd8f778,_0x541d9f),{pointGroup:_0x736fc2}=(_0x34df00=_0x35fe15[_0x4a5283(0x2af)](_0x586060,_0x48e0b7))!=null?_0x34df00:{};if(_0x736fc2==null||_0x736fc2['length']===0x0)continue;this[_0x4a5283(0x1f9)](_0x5d29b5,_0x736fc2,_0x56aa44,_0x5458d3);}else{if(!_0x444bdd){const {borderBoxPointGroup:_0x31a0e0}=_0x269882[_0x4a5283(0x2af)](_0x586060,_0x48e0b7);if(_0x31a0e0[_0x4a5283(0x3f7)]===0x0)continue;this[_0x4a5283(0x194)](_0x5d29b5,_0x31a0e0,_0x56aa44,_0x5458d3);}}}}}['_drawAnchor'](_0x567443,_0x41b944,_0xddbee7,_0x485160,_0x28a7ab){const _0x17ad5e=_0x18db4e,_0x310843=this[_0x17ad5e(0x1df)](_0x41b944),{left:_0x490f56,top:_0x22c04a,height:_0xcb7dbd}=_0x310843,_0x4b19e0=this[_0x17ad5e(0x23a)](),_0x40b79f=ft/_0x4b19e0,_0x5d8480=new p[(_0x17ad5e(0x225))](re+a['Tools'][_0x17ad5e(0x236)](k),{'left':_0x490f56+_0xddbee7-_0x40b79f,'top':_0x22c04a+_0x485160,'height':_0xcb7dbd,'width':dt,'fill':_0x567443||p['getColor'](a['COLORS'][_0x17ad5e(0x391)],0x0),'strokeWidth':_0x40b79f,'stroke':St,'evented':!0x0});this[_0x17ad5e(0x3a1)]=_0x5d8480,this['_scene'][_0x17ad5e(0x2bf)](_0x5d8480,b['TEXT_RANGE_LAYER_INDEX']);const _0x4d955b=new p[(_0x17ad5e(0x225))](re+a[_0x17ad5e(0x2cf)][_0x17ad5e(0x236)](k),{'left':_0x490f56+_0xddbee7-_0x40b79f,'top':_0x22c04a+_0x485160-oe/0x2,'height':oe,'width':oe,'fill':_0x567443||p[_0x17ad5e(0x305)](a[_0x17ad5e(0x394)][_0x17ad5e(0x391)],0x0),'strokeWidth':0x0,'stroke':_0x567443||p[_0x17ad5e(0x305)](a[_0x17ad5e(0x394)][_0x17ad5e(0x391)],0x0),'evented':!0x1});this[_0x17ad5e(0x22e)]=_0x4d955b,this[_0x17ad5e(0x357)][_0x17ad5e(0x2bf)](_0x4d955b,b[_0x17ad5e(0x36d)]);const _0xa38d12=new ee(re+a[_0x17ad5e(0x2cf)][_0x17ad5e(0x236)](k),{'left':_0x490f56+_0xddbee7-_0x40b79f,'top':_0x22c04a+_0x485160-K,'text':_0x28a7ab,'color':_0x567443});this[_0x17ad5e(0x1ae)]=_0xa38d12,this['_scene'][_0x17ad5e(0x2bf)](_0xa38d12,b[_0x17ad5e(0x36d)]),this[_0x17ad5e(0x1c7)]=!0x1;}[_0x18db4e(0x37d)](){const _0x469f9=_0x18db4e,_0x3825ff=this[_0x469f9(0x3a1)][_0x469f9(0x367)][_0x469f9(0x3d1)](()=>{const _0x3b0ea8=_0x469f9;this[_0x3b0ea8(0x1c7)]=!0x0;}),_0x12d20a=this['_anchor'][_0x469f9(0x2e2)]['subscribeEvent'](()=>{const _0x4577eb=_0x469f9;this[_0x4577eb(0x2f2)]&&clearTimeout(this['_hideTimer']),this[_0x4577eb(0x2f2)]=setTimeout(()=>{const _0x5ba24=_0x4577eb;this[_0x5ba24(0x1c7)]=!0x1;},0x7d0);});return()=>{const _0x180704=_0x469f9;_0x3825ff[_0x180704(0x25a)](),_0x12d20a['unsubscribe']();};}['_drawTextRange'](_0x42033f,_0x210a35,_0x43b80c,_0x21d61d){const _0x439b88=_0x18db4e,_0x4bc769=new a[(_0x439b88(0x1c3))](_0x42033f)[_0x439b88(0x204)](0.2)[_0x439b88(0x21b)](),_0x1ca5b6=new p[(_0x439b88(0x2cc))](ht+a['Tools'][_0x439b88(0x236)](k),{'pointsGroup':_0x210a35,'fill':_0x4bc769||p['getColor'](a[_0x439b88(0x394)][_0x439b88(0x391)],0.2),'left':_0x43b80c,'top':_0x21d61d,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x439b88(0x3f1)]['push'](_0x1ca5b6),this[_0x439b88(0x357)][_0x439b88(0x2bf)](_0x1ca5b6,b[_0x439b88(0x36d)]);}[_0x18db4e(0x1f9)](_0x27cf56,_0x557f53,_0x259278,_0x20062c){const _0x4c06e7=_0x18db4e,_0x225b29=new a[(_0x4c06e7(0x1c3))](_0x27cf56)[_0x4c06e7(0x204)](0.2)[_0x4c06e7(0x21b)](),_0x455320=new p[(_0x4c06e7(0x2cc))](ut+a['Tools'][_0x4c06e7(0x236)](k),{'pointsGroup':_0x557f53,'fill':_0x225b29||p[_0x4c06e7(0x305)](a[_0x4c06e7(0x394)]['black'],0.2),'left':_0x259278,'top':_0x20062c,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x4c06e7(0x3f1)][_0x4c06e7(0x342)](_0x455320),this['_scene']['addObject'](_0x455320,b[_0x4c06e7(0x36d)]);}[_0x18db4e(0x1df)](_0x389470){const _0x2e396c=_0x389470[0x0],_0x216f06=_0x2e396c[0x0],_0x4cd33d=_0x2e396c[0x2],{x:_0x252c41,y:_0xf63925}=_0x216f06,{x:_0x27a264,y:_0x5e22c3}=_0x4cd33d;return{'left':_0x252c41,'top':_0xf63925,'width':_0x27a264-_0x252c41,'height':_0x5e22c3-_0xf63925};}[_0x18db4e(0x23a)](){const _0x444760=_0x18db4e,{scaleX:_0x5863b3,scaleY:_0x47f7de}=this[_0x444760(0x357)][_0x444760(0x2a8)]();return Math[_0x444760(0x38b)](_0x5863b3,_0x47f7de);}}var It=Object[_0x18db4e(0x25b)],vt=(_0x56dc56,_0x152760,_0x17ea5c,_0x3406b6)=>{const _0x100220=_0x18db4e;for(var _0x3b3c1a=_0x3406b6>0x1?void 0x0:_0x3406b6?It(_0x152760,_0x17ea5c):_0x152760,_0x1e8d71=_0x56dc56[_0x100220(0x3f7)]-0x1,_0x4c36f8;_0x1e8d71>=0x0;_0x1e8d71--)(_0x4c36f8=_0x56dc56[_0x1e8d71])&&(_0x3b3c1a=_0x4c36f8(_0x3b3c1a)||_0x3b3c1a);return _0x3b3c1a;},W=(_0x58d5d5,_0x23c5e7)=>(_0x3535dc,_0x546dd0)=>_0x23c5e7(_0x3535dc,_0x546dd0,_0x58d5d5);let Ie=class extends a[_0x18db4e(0x387)]{constructor(_0xce2fb1,_0x99db79,_0x18db70,_0x537973,_0x266967){const _0x47778b=_0x18db4e;super(),h(this,_0x47778b(0x19b),[]),h(this,'_cursors',[]),(this[_0x47778b(0x3ba)]=_0xce2fb1,this[_0x47778b(0x405)]=_0x99db79,this['_collabCursorController']=_0x18db70,this[_0x47778b(0x17f)]=_0x537973,this[_0x47778b(0x2c9)]=_0x266967,this[_0x47778b(0x35e)]());}[_0x18db4e(0x35e)](){const _0x203015=_0x18db4e,_0x296899=this[_0x203015(0x3ba)][_0x203015(0x356)],_0xd9d8b9=this['_docSkeletonManagerService'];this[_0x203015(0x3ae)](d['combineLatest']([this[_0x203015(0x382)][_0x203015(0x2b4)](_0x296899),this[_0x203015(0x2c9)]['currentTheme$']])[_0x203015(0x376)]($[_0x203015(0x3a9)](([_0x30b4c3,_0x39a2f])=>({'skeleton':_0xd9d8b9['getSkeleton'](),'cursors':[..._0x30b4c3[_0x203015(0x39a)]()][_0x203015(0x35d)](_0x4afe49=>({..._0x4afe49,'color':this[_0x203015(0x2c9)][_0x203015(0x1d0)](_0x4afe49['color'])}))})))[_0x203015(0x3d8)](_0x4a6a32=>{const _0x45aa64=_0x203015;if(this['_removeCollabCursors'](),_0x4a6a32){const {skeleton:_0x43d07d,cursors:_0x56077f}=_0x4a6a32;this[_0x45aa64(0x186)](_0x43d07d,_0x56077f);}})),this[_0x203015(0x2f4)](),this[_0x203015(0x1cd)]();}['_updateCollabCursors'](_0x35b683,_0x214b4c){const _0x32751e=_0x18db4e,{scene:_0xe43ffb,mainComponent:_0x17c93f}=this['_context'],_0x962210=_0x214b4c[_0x32751e(0x3a9)](_0x3cf24c=>new De(_0x3cf24c,_0xe43ffb,_0x35b683,_0x17c93f));this['_cursorShapes']=_0x962210,this['_cursors']=_0x214b4c;}[_0x18db4e(0x1f3)](){const _0x4576e0=_0x18db4e;this[_0x4576e0(0x21f)]();const {scene:_0x567789,mainComponent:_0x2080b4}=this[_0x4576e0(0x3ba)],_0x35a9c4=this[_0x4576e0(0x405)][_0x4576e0(0x198)](),_0x5a7486=this[_0x4576e0(0x3ef)][_0x4576e0(0x3a9)](_0x5636b5=>new De(_0x5636b5,_0x567789,_0x35a9c4,_0x2080b4));this[_0x4576e0(0x19b)]=_0x5a7486;}[_0x18db4e(0x21f)](){const _0x1722d1=_0x18db4e;this[_0x1722d1(0x19b)][_0x1722d1(0x281)](_0x1aa4cc=>_0x1aa4cc[_0x1722d1(0x2d3)]()),this['_cursorShapes']=[];}[_0x18db4e(0x1cd)](){const _0x2d9429=_0x18db4e,_0x281b4e=[b['SetDocZoomRatioOperation']['id']];this['disposeWithMe'](this[_0x2d9429(0x17f)][_0x2d9429(0x1d5)](_0xb72d62=>{const _0x50ce58=_0x2d9429;_0x281b4e[_0x50ce58(0x2be)](_0xb72d62['id'])&&_0xb72d62['params'][_0x50ce58(0x356)]===this[_0x50ce58(0x3ba)][_0x50ce58(0x356)]&&this[_0x50ce58(0x1f3)]();}));}['_initResize'](){const _0x2b0084=_0x18db4e;this[_0x2b0084(0x3ae)](a[_0x2b0084(0x2b0)](this[_0x2b0084(0x3ba)][_0x2b0084(0x2eb)]['onTransformChange$'])[_0x2b0084(0x376)]($[_0x2b0084(0x261)](_0xf3a4db=>_0xf3a4db['type']===p[_0x2b0084(0x24c)][_0x2b0084(0x1e4)]),$[_0x2b0084(0x2e3)](0x10))[_0x2b0084(0x3d8)](()=>{const _0x48b926=_0x2b0084;this[_0x48b926(0x1f3)]();}));}};Ie=vt([W(0x1,a[_0x18db4e(0x1ff)](Y['DocSkeletonManagerService'])),W(0x2,a[_0x18db4e(0x1ff)](x)),W(0x3,a[_0x18db4e(0x39d)]),W(0x4,a['Inject'](a['ThemeService']))],Ie);const gt=0x1,mt=1.5;class Pe extends p['Shape']{constructor(_0x5725fc,_0x427c7f){const _0x324a24=_0x18db4e;super(_0x5725fc,_0x427c7f),h(this,_0x324a24(0x2b6)),h(this,_0x324a24(0x24e),!0x1),h(this,'_range'),h(this,_0x324a24(0x2f5),''),h(this,_0x324a24(0x2fa),_0x324a24(0x2ab)),h(this,'_backgroundColor'),(_0x427c7f&&this['setShapeProps'](_0x427c7f),this['onPointerEnter$'][_0x324a24(0x3d1)](()=>this['setShapeProps']({'hovered':!0x0})),this[_0x324a24(0x2e2)][_0x324a24(0x3d1)](()=>this[_0x324a24(0x32b)]({'hovered':!0x1})));}[_0x18db4e(0x32b)](_0x5eda88){const _0x476c8d=_0x18db4e;var _0x35547c,_0x55c4c1,_0x243975,_0x1322ce,_0x45ab7c,_0x5e705e;this[_0x476c8d(0x2b6)]=(_0x35547c=_0x5eda88[_0x476c8d(0x296)])!=null?_0x35547c:this[_0x476c8d(0x2b6)],this[_0x476c8d(0x24e)]=(_0x55c4c1=_0x5eda88[_0x476c8d(0x3a0)])!=null?_0x55c4c1:this[_0x476c8d(0x24e)],this['_range']=(_0x243975=_0x5eda88[_0x476c8d(0x410)])!=null?_0x243975:this['_range'],this[_0x476c8d(0x2f5)]=(_0x1322ce=_0x5eda88['name'])!=null?_0x1322ce:this['_name'],this[_0x476c8d(0x2fa)]=(_0x45ab7c=_0x5eda88[_0x476c8d(0x3af)])!=null?_0x45ab7c:this['_labelPosition'],this[_0x476c8d(0x350)]=(_0x5e705e=_0x5eda88['backgroundColor'])!=null?_0x5e705e:this['_backgroundColor'],this[_0x476c8d(0x22b)]({'width':_0x5eda88[_0x476c8d(0x2ae)],'height':_0x5eda88[_0x476c8d(0x313)]});}['onMouseMove'](_0x378666){const _0xacd0df=_0x18db4e,{row:_0x5e0d33,column:_0x35566e}=_0x378666;if(_0x5e0d33>=this['_range']['startRow']&&_0x5e0d33<=this[_0xacd0df(0x295)][_0xacd0df(0x1f5)]&&_0x35566e>=this[_0xacd0df(0x295)][_0xacd0df(0x370)]&&_0x35566e<=this[_0xacd0df(0x295)][_0xacd0df(0x2e1)]){this[_0xacd0df(0x32b)]({'hovered':!0x0});return;}this[_0xacd0df(0x32b)]({'hovered':!0x1});}[_0x18db4e(0x37c)](_0x37ffca){return!0x1;}[_0x18db4e(0x310)](_0xff4b2f){const _0x2ac5e3=_0x18db4e;p[_0x2ac5e3(0x225)][_0x2ac5e3(0x293)](_0xff4b2f,{'width':this[_0x2ac5e3(0x2ae)],'height':this[_0x2ac5e3(0x313)],'strokeWidth':mt,'stroke':this['_color'],'evented':!0x1,'fill':this['_backgroundColor']}),this[_0x2ac5e3(0x24e)]&&(_0xff4b2f[_0x2ac5e3(0x33f)](),_0xff4b2f[_0x2ac5e3(0x221)](0x1,0x0,0x0,0x1,this['width'],this[_0x2ac5e3(0x2fa)]===_0x2ac5e3(0x2a0)?0x0:-0x14),ee[_0x2ac5e3(0x293)](_0xff4b2f,{'text':this[_0x2ac5e3(0x2f5)],'color':this[_0x2ac5e3(0x2b6)]}),_0xff4b2f[_0x2ac5e3(0x26e)]());}}var Ct=Object[_0x18db4e(0x25b)],pt=(_0x772807,_0x3fb8d0,_0x4c7464,_0x44ae56)=>{const _0x2c2295=_0x18db4e;for(var _0x24b5bf=_0x44ae56>0x1?void 0x0:_0x44ae56?Ct(_0x3fb8d0,_0x4c7464):_0x3fb8d0,_0x1e69bd=_0x772807[_0x2c2295(0x3f7)]-0x1,_0x39c4a4;_0x1e69bd>=0x0;_0x1e69bd--)(_0x39c4a4=_0x772807[_0x1e69bd])&&(_0x24b5bf=_0x39c4a4(_0x24b5bf)||_0x24b5bf);return _0x24b5bf;},ae=(_0x492c72,_0x46d527)=>(_0x509039,_0x322591)=>_0x46d527(_0x509039,_0x322591,_0x492c72);const bt=0x1389;let ve=class extends a[_0x18db4e(0x387)]{constructor(_0x53c499,_0x3f9515,_0x4a0ba3,_0x322da2){const _0x59a2f2=_0x18db4e;super(),h(this,_0x59a2f2(0x3ef),new Set()),h(this,_0x59a2f2(0x311),null),(this[_0x59a2f2(0x3ba)]=_0x53c499,this[_0x59a2f2(0x1a6)]=_0x3f9515,this['_collabCursorController']=_0x4a0ba3,this[_0x59a2f2(0x2c9)]=_0x322da2,this[_0x59a2f2(0x35e)]());}[_0x18db4e(0x35e)](){const _0x4c08df=_0x18db4e;this[_0x4c08df(0x1a6)]['currentSkeleton$']['pipe']($[_0x4c08df(0x36a)](this['dispose$']),$['switchMap'](_0x4555cc=>{const _0x2441b8=_0x4c08df;if(_0x4555cc){const _0x40e951=_0x4555cc[_0x2441b8(0x36b)];return d[_0x2441b8(0x18c)](this[_0x2441b8(0x382)][_0x2441b8(0x2b4)](this[_0x2441b8(0x3ba)]['unitId']),this[_0x2441b8(0x2c9)][_0x2441b8(0x18f)])[_0x2441b8(0x376)]($[_0x2441b8(0x3a9)](([_0x36aa03,_0x270cb0])=>{const _0x502e16=new Map();return _0x36aa03['forEach']((_0x2fa029,_0x447e63)=>{const _0x2ff981=_0x4661;if(_0x2fa029[_0x2ff981(0x1f7)]===_0x40e951){const _0x48e23f={..._0x2fa029};_0x48e23f[_0x2ff981(0x296)]=this[_0x2ff981(0x2c9)]['getColorFromTheme'](_0x2fa029['color']),_0x502e16[_0x2ff981(0x26b)](_0x447e63,_0x48e23f);}}),{'skeleton':_0x4555cc,'cursors':_0x502e16};}));}return d['of']({'skeleton':null,'cursors':new Map()});}))[_0x4c08df(0x3d8)](({skeleton:_0x31f3e3,cursors:_0x3d234f})=>{const _0x17191d=_0x4c08df;this['_removeCollabCursors'](),_0x31f3e3&&this[_0x17191d(0x186)](_0x31f3e3,_0x3d234f);}),this[_0x4c08df(0x1a6)][_0x4c08df(0x24d)][_0x4c08df(0x3d8)](_0x1f7033=>{const _0x99aa31=_0x4c08df;if(_0x1f7033==null)return;const {skeleton:_0x513e26}=_0x1f7033,{scene:_0x2882d9}=this[_0x99aa31(0x3ba)];_0x2882d9[_0x99aa31(0x191)][_0x99aa31(0x3d1)](a[_0x99aa31(0x251)](_0xf2960d=>{const _0x4020c5=_0x99aa31;var _0xd76c98,_0x111534;const {offsetX:_0x441fa6,offsetY:_0x4972f9}=_0xf2960d,{x:_0xf376e6,y:_0x2640fe}=_0x2882d9[_0x4020c5(0x25c)](p[_0x4020c5(0x34d)][_0x4020c5(0x1d7)]([_0x441fa6,_0x4972f9])),{scaleX:_0x346b2c,scaleY:_0xcfc968}=_0x2882d9[_0x4020c5(0x2a8)](),_0x3cdb7e=_0x2882d9['getViewport'](p['SHEET_VIEWPORT_KEY']['VIEW_MAIN']),_0x541684=_0x2882d9[_0x4020c5(0x215)](p[_0x4020c5(0x34d)]['FromArray']([_0xf376e6,_0x2640fe]),_0x3cdb7e),_0x2c6be2=_0x513e26['getCellPositionByOffset'](_0x441fa6,_0x4972f9,_0x346b2c,_0xcfc968,_0x541684);((_0xd76c98=this[_0x4020c5(0x311)])==null?void 0x0:_0xd76c98[_0x4020c5(0x335)])===_0x2c6be2[_0x4020c5(0x335)]&&((_0x111534=this[_0x4020c5(0x311)])==null?void 0x0:_0x111534[_0x4020c5(0x2fb)])===_0x2c6be2['row']||this[_0x4020c5(0x3ef)]['forEach'](_0x3d0956=>{const _0xdf2db7=_0x4020c5;_0x3d0956[_0xdf2db7(0x3fb)](_0x2c6be2);});},0x64));});}[_0x18db4e(0x186)](_0x6b014d,_0x4666a2){const _0x5f4651=_0x18db4e;var _0x2d740b;const _0x272b1b=(_0x2d740b=this[_0x5f4651(0x1a6)][_0x5f4651(0x21d)]())==null?void 0x0:_0x2d740b[_0x5f4651(0x2fd)];if(!_0x272b1b)return;const _0x1465a4=this[_0x5f4651(0x3a2)]();if(!_0x1465a4)return;this[_0x5f4651(0x3ef)][_0x5f4651(0x281)](_0x43540d=>{const _0x414c4c=_0x5f4651;_0x43540d[_0x414c4c(0x1eb)]();});const {scene:_0x4674e4}=_0x1465a4,_0x2f7853=Et(Array[_0x5f4651(0x372)](_0x4666a2[_0x5f4651(0x39a)]()))[_0x5f4651(0x3a9)](_0x3d3ff2=>{const _0x218937=_0x5f4651,{color:_0x5f2902,range:_0x50ae05,name:_0x4e0037,selection:_0xae4ce,sheetID:_0x46f4fd}=_0x3d3ff2,{startColumn:_0x538a52,startRow:_0xf13899,endColumn:_0x289761,endRow:_0x3a3d99}=_0x50ae05,_0x1a0075=X['getCoordByCell'](_0xf13899,_0x538a52,_0x4674e4,_0x272b1b),_0x5d94e2=X[_0x218937(0x2ee)](_0x3a3d99,_0x289761,_0x4674e4,_0x272b1b),{columnHeaderHeightAndMarginTop:_0x16b8b9}=_0x272b1b,{startX:_0x442230,startY:_0x768930}=_0x1a0075,{endX:_0x4cc3cf,endY:_0x44bdc2}=_0x5d94e2,_0x2ae541=_0x4cc3cf-_0x442230,_0x28dbbc=_0x44bdc2-_0x768930,_0x5188e8={'labelPosition':_0x768930-_0x16b8b9>=K?'top':'bottom','sheetID':_0x46f4fd,'range':_0x50ae05,'color':_0x5f2902,'name':_0x4e0037,'selection':_0xae4ce,'left':_0x442230,'top':_0x768930,'width':_0x2ae541,'height':_0x28dbbc,'evented':!0x1,'zIndex':bt};return new Pe(_0x4e0037,_0x5188e8);});_0x4674e4['addObjects'](_0x2f7853,gt),this['_cursors']=new Set(_0x2f7853);}[_0x18db4e(0x21f)](){const _0x41acd2=_0x18db4e;var _0x4dcdf8;(_0x4dcdf8=this[_0x41acd2(0x3ef)])==null||_0x4dcdf8[_0x41acd2(0x281)](_0x3ec1e6=>_0x3ec1e6['dispose']());}[_0x18db4e(0x3a2)](){const _0x43c263=_0x18db4e;return X[_0x43c263(0x31f)](this[_0x43c263(0x3ba)][_0x43c263(0x185)],this['_context']);}};ve=pt([ae(0x1,a['Inject'](X[_0x18db4e(0x21a)])),ae(0x2,a[_0x18db4e(0x1ff)](x)),ae(0x3,a[_0x18db4e(0x1ff)](a[_0x18db4e(0x1b0)]))],ve);function Et(_0x4d4ef0){const _0x5a7e1d=_0x18db4e,_0x3d599a=new Map();return _0x4d4ef0[_0x5a7e1d(0x281)](_0x4c8355=>{const _0x3e4b51=_0x5a7e1d;if(_0x3d599a[_0x3e4b51(0x3f3)](_0x4c8355['selection'])){const _0x2c7965=_0x3d599a['get'](_0x4c8355[_0x3e4b51(0x1fe)]);_0x2c7965[_0x3e4b51(0x276)]+=',\x20'+_0x4c8355['name'];}else _0x3d599a[_0x3e4b51(0x26b)](_0x4c8355[_0x3e4b51(0x1fe)],_0x4c8355);}),Array['from'](_0x3d599a[_0x5a7e1d(0x39a)]());}var E=function(){const _0x41df07=_0x18db4e;return E=Object['assign']||function(_0x49e6fb){const _0x394a98=_0x4661;for(var _0xd248d3,_0x229d3d=0x1,_0x15ba58=arguments[_0x394a98(0x3f7)];_0x229d3d<_0x15ba58;_0x229d3d++){_0xd248d3=arguments[_0x229d3d];for(var _0x216f99 in _0xd248d3)Object[_0x394a98(0x371)][_0x394a98(0x1a7)][_0x394a98(0x3b2)](_0xd248d3,_0x216f99)&&(_0x49e6fb[_0x216f99]=_0xd248d3[_0x216f99]);}return _0x49e6fb;},E[_0x41df07(0x3d0)](this,arguments);},Tt=function(_0x37bb01,_0x397372){const _0x1aaf39=_0x18db4e;var _0x3245dd={};for(var _0x434f84 in _0x37bb01)Object[_0x1aaf39(0x371)]['hasOwnProperty']['call'](_0x37bb01,_0x434f84)&&_0x397372['indexOf'](_0x434f84)<0x0&&(_0x3245dd[_0x434f84]=_0x37bb01[_0x434f84]);if(_0x37bb01!=null&&typeof Object[_0x1aaf39(0x2dd)]==_0x1aaf39(0x2d1)){for(var _0x577600=0x0,_0x434f84=Object['getOwnPropertySymbols'](_0x37bb01);_0x577600<_0x434f84['length'];_0x577600++)_0x397372[_0x1aaf39(0x282)](_0x434f84[_0x577600])<0x0&&Object[_0x1aaf39(0x371)][_0x1aaf39(0x207)][_0x1aaf39(0x3b2)](_0x37bb01,_0x434f84[_0x577600])&&(_0x3245dd[_0x434f84[_0x577600]]=_0x37bb01[_0x434f84[_0x577600]]);}return _0x3245dd;},pe=M[_0x18db4e(0x3c7)](function(_0xa13162,_0x5394a6){const _0x6f2ca1=_0x18db4e;var _0x3d72c5=_0xa13162['icon'],_0x4761e0=_0xa13162['id'],_0xcfe1b5=_0xa13162[_0x6f2ca1(0x217)],_0x9ed75c=_0xa13162['extend'],_0x195986=Tt(_0xa13162,[_0x6f2ca1(0x1f4),'id',_0x6f2ca1(0x217),'extend']),_0x34c2b3=_0x6f2ca1(0x231)['concat'](_0x4761e0,'\x20')[_0x6f2ca1(0x389)](_0xcfe1b5||'')[_0x6f2ca1(0x292)](),_0x3a5b55=M[_0x6f2ca1(0x358)]('_'['concat'](Dt()));return Ae(_0x3d72c5,''[_0x6f2ca1(0x389)](_0x4761e0),{'defIds':_0x3d72c5['defIds'],'idSuffix':_0x3a5b55[_0x6f2ca1(0x384)]},E({'ref':_0x5394a6,'className':_0x34c2b3},_0x195986),_0x9ed75c);});function Ae(_0x4f7105,_0x3071c5,_0x4d47dd,_0x1bd151,_0x19f912){const _0xe59eeb=_0x18db4e;return M[_0xe59eeb(0x2f8)](_0x4f7105['tag'],E(E({'key':_0x3071c5},Ot(_0x4f7105,_0x4d47dd,_0x19f912)),_0x1bd151),(Rt(_0x4f7105,_0x4d47dd)[_0xe59eeb(0x1ec)]||[])['map'](function(_0x574a9a,_0x44634f){const _0x3ec2df=_0xe59eeb;return Ae(_0x574a9a,''[_0x3ec2df(0x389)](_0x3071c5,'-')[_0x3ec2df(0x389)](_0x4f7105[_0x3ec2df(0x1c1)],'-')['concat'](_0x44634f),_0x4d47dd,void 0x0,_0x19f912);}));}function Ot(_0x8a6d8b,_0xbe1c39,_0x1d58f4){const _0x398766=_0x18db4e;var _0xd8e655=E({},_0x8a6d8b[_0x398766(0x39f)]);_0x1d58f4!=null&&_0x1d58f4['colorChannel1']&&_0xd8e655[_0x398766(0x35c)]===_0x398766(0x1d1)&&(_0xd8e655[_0x398766(0x35c)]=_0x1d58f4['colorChannel1']),_0x8a6d8b[_0x398766(0x1c1)]==='mask'&&_0xd8e655['id']&&(_0xd8e655['id']=_0xd8e655['id']+_0xbe1c39[_0x398766(0x26f)]),Object[_0x398766(0x1d2)](_0xd8e655)[_0x398766(0x281)](function(_0x32fb51){const _0x582513=_0x398766;var _0x3c9a08=_0x32fb51[0x0],_0x3985e1=_0x32fb51[0x1];_0x3c9a08===_0x582513(0x34b)&&typeof _0x3985e1==_0x582513(0x3b1)&&(_0xd8e655[_0x3c9a08]=_0x3985e1[_0x582513(0x291)](/url\(#(.*)\)/,_0x582513(0x23d)[_0x582513(0x389)](_0xbe1c39[_0x582513(0x26f)],')')));});var _0x3d20e4=_0xbe1c39[_0x398766(0x267)];return!_0x3d20e4||_0x3d20e4[_0x398766(0x3f7)]===0x0||(_0x8a6d8b[_0x398766(0x1c1)]===_0x398766(0x303)&&_0xd8e655['xlink:href']&&(_0xd8e655[_0x398766(0x21e)]=_0xd8e655[_0x398766(0x21e)]+_0xbe1c39[_0x398766(0x26f)]),Object[_0x398766(0x1d2)](_0xd8e655)['forEach'](function(_0x417f46){const _0x24d368=_0x398766;var _0x2e92d9=_0x417f46[0x0],_0x14a1f8=_0x417f46[0x1];typeof _0x14a1f8==_0x24d368(0x3b1)&&(_0xd8e655[_0x2e92d9]=_0x14a1f8[_0x24d368(0x291)](/url\(#(.*)\)/,'url(#$1'['concat'](_0xbe1c39[_0x24d368(0x26f)],')')));})),_0xd8e655;}function Rt(_0x115070,_0x28305f){const _0x1c8a5d=_0x18db4e;var _0x2e8f8c,_0x8bf9f=_0x28305f[_0x1c8a5d(0x267)];return!_0x8bf9f||_0x8bf9f['length']===0x0?_0x115070:_0x115070[_0x1c8a5d(0x1c1)]===_0x1c8a5d(0x2ac)&&(!((_0x2e8f8c=_0x115070['children'])===null||_0x2e8f8c===void 0x0)&&_0x2e8f8c['length'])?E(E({},_0x115070),{'children':_0x115070['children'][_0x1c8a5d(0x3a9)](function(_0x3ef726){const _0xa1c21e=_0x1c8a5d;return typeof _0x3ef726[_0xa1c21e(0x39f)]['id']==_0xa1c21e(0x3b1)&&_0x8bf9f&&_0x8bf9f[_0xa1c21e(0x2be)](_0x3ef726[_0xa1c21e(0x39f)]['id'])?E(E({},_0x3ef726),{'attrs':E(E({},_0x3ef726[_0xa1c21e(0x39f)]),{'id':_0x3ef726[_0xa1c21e(0x39f)]['id']+_0x28305f['idSuffix']})}):_0x3ef726;})}):_0x115070;}function Dt(){const _0x2b9a7e=_0x18db4e;return Math[_0x2b9a7e(0x249)]()[_0x2b9a7e(0x1cf)](0x24)[_0x2b9a7e(0x3b6)](0x2,0x8);}pe[_0x18db4e(0x203)]='UniverIcon';var Ut={'tag':_0x18db4e(0x298),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':'none','viewBox':_0x18db4e(0x23c),'width':'1em','height':'1em'},'children':[{'tag':'g','attrs':{'clipPath':_0x18db4e(0x386)},'children':[{'tag':_0x18db4e(0x3e1),'attrs':{'stroke':_0x18db4e(0x2a6),'d':_0x18db4e(0x2c5),'strokeLinecap':_0x18db4e(0x1d6),'strokeLinejoin':_0x18db4e(0x1d6),'strokeWidth':1.2}}]},{'tag':_0x18db4e(0x2ac),'attrs':{},'children':[{'tag':_0x18db4e(0x183),'attrs':{'id':_0x18db4e(0x2c3)},'children':[{'tag':_0x18db4e(0x3e1),'attrs':{'fill':_0x18db4e(0x381),'d':'M0\x200H16V16H0z'}}]}]}],'defIds':[_0x18db4e(0x2c3)]},ye=M['forwardRef'](function(_0x1c580a,_0x3fe30d){const _0x182afc=_0x18db4e;return M[_0x182afc(0x2f8)](pe,Object[_0x182afc(0x2e8)]({},_0x1c580a,{'id':_0x182afc(0x1ef),'ref':_0x3fe30d,'icon':Ut}));});ye['displayName']=_0x18db4e(0x306);var Nt={'tag':_0x18db4e(0x298),'attrs':{'xmlns':_0x18db4e(0x1e3),'fill':_0x18db4e(0x399),'viewBox':_0x18db4e(0x31b),'width':_0x18db4e(0x2e5),'height':_0x18db4e(0x2e5)},'children':[{'tag':'g','attrs':{'clipPath':_0x18db4e(0x1a5)},'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':'round','strokeLinejoin':_0x18db4e(0x1d6),'strokeWidth':1.2}}]},{'tag':_0x18db4e(0x2ac),'attrs':{},'children':[{'tag':_0x18db4e(0x183),'attrs':{'id':_0x18db4e(0x1e0)},'children':[{'tag':'path','attrs':{'fill':_0x18db4e(0x381),'d':'M0\x200H16V16H0z','transform':_0x18db4e(0x343)}}]}]}],'defIds':[_0x18db4e(0x1e0)]},$e=M[_0x18db4e(0x3c7)](function(_0x24416f,_0x53a558){const _0x239a5c=_0x18db4e;return M[_0x239a5c(0x2f8)](pe,Object[_0x239a5c(0x2e8)]({},_0x24416f,{'id':_0x239a5c(0x19c),'ref':_0x53a558,'icon':Nt}));});$e[_0x18db4e(0x203)]=_0x18db4e(0x199);function Mt(_0x171bab){const _0x57c316=_0x18db4e;switch(_0x171bab){case u[_0x57c316(0x1b4)][_0x57c316(0x269)]:return _0x57c316(0x2e4);case u[_0x57c316(0x1b4)][_0x57c316(0x353)]:return'collabStatus.conflict';case u[_0x57c316(0x1b4)][_0x57c316(0x374)]:return _0x57c316(0x1b6);case u[_0x57c316(0x1b4)]['NOT_COLLAB']:return _0x57c316(0x20d);case u[_0x57c316(0x1b4)]['AWAITING']:case u['CollaborationStatus'][_0x57c316(0x297)]:return _0x57c316(0x241);case u[_0x57c316(0x1b4)][_0x57c316(0x27d)]:case u[_0x57c316(0x1b4)]['PENDING']:return _0x57c316(0x40a);}}function xe(_0x488d21){const _0x283a91=_0x18db4e,{status$:_0x40e14a}=_0x488d21,_0x4bb737=T[_0x283a91(0x1c6)](_0x40e14a,u[_0x283a91(0x1b4)][_0x283a91(0x1c8)]),_0x2048f4=T[_0x283a91(0x1a3)](a['LocaleService']),_0x3ae8e8=T[_0x283a91(0x1a3)](u[_0x283a91(0x3a5)]),_0x24a3ca=_0x4bb737!==u[_0x283a91(0x1b4)]['OFFLINE'],_0x235304=_0x2048f4['t'](Mt(_0x4bb737)),_0x2bae54=_0x24a3ca?w[_0x283a91(0x1e9)]($e,{}):w[_0x283a91(0x1e9)](ye,{}),_0x59e9af=M[_0x283a91(0x25e)](()=>{const _0x578bf2=_0x283a91;_0x24a3ca||_0x3ae8e8[_0x578bf2(0x2b8)]();},[_0x24a3ca,_0x3ae8e8]);function _0x2cac34(){const _0x32b011=_0x283a91;return w[_0x32b011(0x277)](_0x32b011(0x2e0),{'className':_0x32b011(0x302),'onClick':_0x59e9af,'children':[w['jsx'](_0x32b011(0x2e0),{'className':D[_0x32b011(0x407)](_0x32b011(0x1cc),{'univer-text-green-500':_0x24a3ca,'univer-text-red-500':!_0x24a3ca}),'children':_0x2bae54}),w['jsx'](_0x32b011(0x2e0),{'className':_0x32b011(0x32a),'children':_0x235304})]});}return _0x24a3ca?_0x2cac34():w[_0x283a91(0x1e9)](D[_0x283a91(0x235)],{'title':_0x2048f4['t'](_0x283a91(0x287)),'children':_0x2cac34()});}var Lt=Object[_0x18db4e(0x25b)],wt=(_0x5d2ce1,_0x169d21,_0x4591be,_0x18339d)=>{const _0x4931ab=_0x18db4e;for(var _0x20393d=_0x18339d>0x1?void 0x0:_0x18339d?Lt(_0x169d21,_0x4591be):_0x169d21,_0x2605bd=_0x5d2ce1[_0x4931ab(0x3f7)]-0x1,_0x3a9f5b;_0x2605bd>=0x0;_0x2605bd--)(_0x3a9f5b=_0x5d2ce1[_0x2605bd])&&(_0x20393d=_0x3a9f5b(_0x20393d)||_0x20393d);return _0x20393d;},V=(_0x30da80,_0x2b87ae)=>(_0x3436de,_0x1ef36f)=>_0x2b87ae(_0x3436de,_0x1ef36f,_0x30da80);exports[_0x18db4e(0x26c)]=class extends a[_0x18db4e(0x378)]{constructor(_0x598388,_0xe18add,_0x2d2679,_0x236b10){const _0x144e19=_0x18db4e;super(),h(this,_0x144e19(0x227),new d[(_0x144e19(0x2bd))](u['CollaborationStatus'][_0x144e19(0x1c8)])),(this[_0x144e19(0x184)]=_0x598388,this[_0x144e19(0x1d3)]=_0xe18add,this[_0x144e19(0x188)]=_0x2d2679,this[_0x144e19(0x2df)]=_0x236b10,this['_initStatusComponent'](),this[_0x144e19(0x244)]());}[_0x18db4e(0x244)](){const _0x1f29ac=_0x18db4e;this['disposeWithMe'](this['_univerInstanceService']['focused$'][_0x1f29ac(0x376)](d[_0x1f29ac(0x3ca)](()=>{const _0xa2bf5a=_0x1f29ac,_0x3ea52e=this[_0xa2bf5a(0x184)][_0xa2bf5a(0x3a3)]();return _0x3ea52e?this[_0xa2bf5a(0x188)][_0xa2bf5a(0x1bf)](_0x3ea52e[_0xa2bf5a(0x2ce)]()):d['of'](null);}),d[_0x1f29ac(0x3ca)](_0x209a2c=>_0x209a2c?_0x209a2c[_0x1f29ac(0x3aa)]:d['of'](u[_0x1f29ac(0x1b4)][_0x1f29ac(0x1c8)])))[_0x1f29ac(0x3d8)](_0xf11d9=>{const _0x58652e=_0x1f29ac;this[_0x58652e(0x227)]['next'](_0xf11d9);}));}[_0x18db4e(0x2e9)](){const _0x29222c=_0x18db4e;this[_0x29222c(0x3ae)](this[_0x29222c(0x2df)][_0x29222c(0x2d2)](T[_0x29222c(0x23b)]['HEADER_MENU'],()=>T[_0x29222c(0x3a7)](Pt({'status$':this[_0x29222c(0x227)][_0x29222c(0x369)]()}),this['_injector'])));}},exports[_0x18db4e(0x26c)]=wt([V(0x0,a[_0x18db4e(0x324)]),V(0x1,a[_0x18db4e(0x1ff)](a['Injector'])),V(0x2,a[_0x18db4e(0x1ff)](u[_0x18db4e(0x308)])),V(0x3,T[_0x18db4e(0x1bd)])],exports['DesktopCollaborationStatusDisplayController']);function Pt(_0x34d0e6){const {status$:_0x6aadea}=_0x34d0e6;return function(){const _0x19e6bb=_0x4661;return w[_0x19e6bb(0x1e9)](xe,{'status$':_0x6aadea});};}var At=Object['getOwnPropertyDescriptor'],yt=(_0x192d58,_0x295ca0,_0x1325b1,_0x10bea2)=>{const _0x173e34=_0x18db4e;for(var _0xdde33=_0x10bea2>0x1?void 0x0:_0x10bea2?At(_0x295ca0,_0x1325b1):_0x295ca0,_0x1bdc1d=_0x192d58[_0x173e34(0x3f7)]-0x1,_0x208387;_0x1bdc1d>=0x0;_0x1bdc1d--)(_0x208387=_0x192d58[_0x1bdc1d])&&(_0xdde33=_0x208387(_0xdde33)||_0xdde33);return _0xdde33;},y=(_0x56be2f,_0x42b2ad)=>(_0x2ebdc3,_0x4c3783)=>_0x42b2ad(_0x2ebdc3,_0x4c3783,_0x56be2f);let q=class extends a['Disposable']{constructor(_0x1509ba,_0x40a06f,_0x402753,_0x2e0ef6,_0x362859,_0x9c988d){const _0x24d05c=_0x18db4e;super(),this[_0x24d05c(0x20a)]=_0x1509ba,this[_0x24d05c(0x3c4)]=_0x40a06f,this[_0x24d05c(0x368)]=_0x402753,this[_0x24d05c(0x262)]=_0x2e0ef6,this[_0x24d05c(0x28e)]=_0x362859,this[_0x24d05c(0x1d9)]=_0x9c988d,this[_0x24d05c(0x1ce)](),this[_0x24d05c(0x1b2)]();}[_0x18db4e(0x1ce)](){const _0x5e1ea2=_0x18db4e;this[_0x5e1ea2(0x3ae)](this[_0x5e1ea2(0x20a)][_0x5e1ea2(0x2a5)](()=>{const _0xa93286=_0x5e1ea2;if(this[_0xa93286(0x3c4)][_0xa93286(0x352)][_0xa93286(0x30a)])return this[_0xa93286(0x1d9)]['t'](_0xa93286(0x3e3));}));}[_0x18db4e(0x1b2)](){const _0x33358b=_0x18db4e;this[_0x33358b(0x3ae)](this[_0x33358b(0x368)][_0x33358b(0x1c4)]['subscribe'](_0x3b1c24=>{const _0x316333=_0x33358b;_0x3b1c24['id']===u[_0x316333(0x3fc)][_0x316333(0x17e)]&&this['_messageService'][_0x316333(0x3dc)]({'type':D[_0x316333(0x3c1)][_0x316333(0x2ad)],'content':this[_0x316333(0x1d9)]['t'](_0x316333(0x22a))}),_0x3b1c24['id']===u[_0x316333(0x3fc)][_0x316333(0x3cd)]&&this[_0x316333(0x262)][_0x316333(0x3dc)]({'type':D[_0x316333(0x3c1)]['Warning'],'content':this['_localeService']['t']('collaboration.closeRoom')}),_0x3b1c24['id']===u['CollaborationUIEventId'][_0x316333(0x36f)]&&this['_notificationService'][_0x316333(0x3dc)]({'title':this[_0x316333(0x1d9)]['t'](_0x316333(0x398)),'content':this['_localeService']['t'](_0x316333(0x312)),'type':'error','duration':0x0}),_0x3b1c24['id']===u[_0x316333(0x3fc)][_0x316333(0x353)]&&this[_0x316333(0x262)][_0x316333(0x3dc)]({'type':D[_0x316333(0x3c1)][_0x316333(0x29e)],'content':this[_0x316333(0x1d9)]['t'](_0x316333(0x36c))+'('+_0x3b1c24[_0x316333(0x318)]+')'}),_0x3b1c24['id']===u[_0x316333(0x3fc)][_0x316333(0x26d)]&&this['_messageService'][_0x316333(0x3dc)]({'type':D[_0x316333(0x3c1)][_0x316333(0x2ad)],'content':this[_0x316333(0x1d9)]['t'](_0x3b1c24[_0x316333(0x318)]||'')}),_0x3b1c24['id']===u[_0x316333(0x3fc)][_0x316333(0x250)]&&this[_0x316333(0x262)][_0x316333(0x3dc)]({'type':D[_0x316333(0x3c1)][_0x316333(0x2ad)],'content':this[_0x316333(0x1d9)]['t'](_0x316333(0x3db))}),_0x3b1c24['id']===u['CollaborationUIEventId']['SOCKET_FAILED']&&this[_0x316333(0x262)][_0x316333(0x3dc)]({'type':D[_0x316333(0x3c1)]['Error'],'content':this[_0x316333(0x1d9)]['t'](_0x316333(0x2d8))}),_0x3b1c24['id']===u[_0x316333(0x3fc)][_0x316333(0x332)]&&this[_0x316333(0x262)][_0x316333(0x3dc)]({'type':D[_0x316333(0x3c1)]['Error'],'content':this[_0x316333(0x1d9)]['t'](_0x316333(0x38d))});}));}};q=yt([y(0x0,T[_0x18db4e(0x212)]),y(0x1,u[_0x18db4e(0x190)]),y(0x2,a['Inject'](u[_0x18db4e(0x19d)])),y(0x3,T['IMessageService']),y(0x4,T[_0x18db4e(0x35b)]),y(0x5,a['Inject'](a[_0x18db4e(0x2dc)]))],q);const $t=_0x18db4e(0x229),Ue={},be=a[_0x18db4e(0x3f0)](_0x18db4e(0x2f7));var xt=Object[_0x18db4e(0x25b)],jt=(_0x15f1cd,_0x3283df,_0x178e2c,_0x30cd57)=>{const _0xbec79d=_0x18db4e;for(var _0x27b6ad=_0x30cd57>0x1?void 0x0:_0x30cd57?xt(_0x3283df,_0x178e2c):_0x3283df,_0x447fbd=_0x15f1cd[_0xbec79d(0x3f7)]-0x1,_0x40ea21;_0x447fbd>=0x0;_0x447fbd--)(_0x40ea21=_0x15f1cd[_0x447fbd])&&(_0x27b6ad=_0x40ea21(_0x27b6ad)||_0x27b6ad);return _0x27b6ad;},H=(_0x529a29,_0x4ff18c)=>(_0x5572fe,_0x1fdd61)=>_0x4ff18c(_0x5572fe,_0x1fdd61,_0x529a29);exports['CollaborationDataLoaderController']=class extends a[_0x18db4e(0x387)]{constructor(_0x27309a,_0x2536e3,_0x1426ed,_0xc47abd,_0x2ee9d4){const _0x2af75e=_0x18db4e;super(),this['_urlService']=_0x27309a,this[_0x2af75e(0x3a6)]=_0x2536e3,this['_commandService']=_0x1426ed,this[_0x2af75e(0x274)]=_0xc47abd,_0x2ee9d4?_0x2ee9d4==null||_0x2ee9d4[_0x2af75e(0x326)]()['then'](()=>this[_0x2af75e(0x35e)]()):(this[_0x2af75e(0x3a6)][_0x2af75e(0x25d)](_0x2af75e(0x182),'No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.'),this['_init']());}async[_0x18db4e(0x35e)](){const _0x3abd73=_0x18db4e,_0xcf4290=this[_0x3abd73(0x377)][_0x3abd73(0x363)](_0x3abd73(0x185)),_0x48bb98=this[_0x3abd73(0x377)][_0x3abd73(0x363)]('type'),_0x177364=this['_urlService']['getParam'](_0x3abd73(0x3f2));if(!_0xcf4290||!_0x48bb98){this[_0x3abd73(0x3a6)][_0x3abd73(0x25d)](_0x3abd73(0x182),_0x3abd73(0x3ec));return;}const _0x216896=await this['_dataLoaderService']['loadUnit'](_0xcf4290,Number(_0x48bb98),_0x177364);_0x216896&&_0x216896 instanceof a[_0x3abd73(0x30b)]&&this[_0x3abd73(0x3e8)](_0x216896);}async[_0x18db4e(0x3e8)](_0x5d8e34){const _0x294e84=_0x18db4e;await this['_updateSubUnitFromURLParams'](_0x5d8e34),_0x5d8e34[_0x294e84(0x234)][_0x294e84(0x376)](d[_0x294e84(0x36a)](this[_0x294e84(0x20c)]))[_0x294e84(0x3d8)](_0x1fdb76=>{const _0x453d00=_0x294e84;_0x1fdb76&&this[_0x453d00(0x1ba)](_0x1fdb76);}),this['_urlService']['urlChange$'][_0x294e84(0x376)](d[_0x294e84(0x36a)](this[_0x294e84(0x20c)]))[_0x294e84(0x3d8)](()=>this['_updateSubUnitFromURLParams'](_0x5d8e34));}[_0x18db4e(0x1ba)](_0x35c332,_0x374c57=!0x1){const _0x16a1a1=_0x18db4e,_0x18d890=this['_urlService'][_0x16a1a1(0x363)]('subunit');_0x35c332[_0x16a1a1(0x240)]()!==_0x18d890&&this[_0x16a1a1(0x377)][_0x16a1a1(0x1c2)](_0x16a1a1(0x3f2),_0x35c332[_0x16a1a1(0x240)](),_0x374c57);}async['_updateSubUnitFromURLParams'](_0x5b34d2){const _0x2934d5=_0x18db4e;var _0x24fd3f;const _0x205958=this[_0x2934d5(0x377)]['getParam'](_0x2934d5(0x3f2));if(!_0x205958||!_0x5b34d2['getSheetBySheetId'](_0x205958)){const _0x26f376=_0x5b34d2[_0x2934d5(0x364)]()[0x0],_0x4667c8=_0x5b34d2[_0x2934d5(0x1af)](_0x26f376);if(!_0x4667c8)return;this[_0x2934d5(0x1ba)](_0x4667c8,!0x0),await this[_0x2934d5(0x17f)][_0x2934d5(0x397)](g['SetWorksheetActivateCommand']['id'],{'unitId':_0x5b34d2[_0x2934d5(0x2ce)](),'subUnitId':_0x26f376});return;}((_0x24fd3f=_0x5b34d2[_0x2934d5(0x24b)]())==null?void 0x0:_0x24fd3f[_0x2934d5(0x240)]())!==_0x205958&&await this[_0x2934d5(0x17f)][_0x2934d5(0x397)](g['SetWorksheetActivateCommand']['id'],{'unitId':_0x5b34d2[_0x2934d5(0x2ce)](),'subUnitId':_0x205958});}},exports[_0x18db4e(0x273)]=jt([H(0x0,be),H(0x1,a[_0x18db4e(0x2a1)]),H(0x2,a[_0x18db4e(0x39d)]),H(0x3,a[_0x18db4e(0x1ff)](u[_0x18db4e(0x409)])),H(0x4,a['Optional'](Ke[_0x18db4e(0x32e)]))],exports[_0x18db4e(0x273)]);var Bt=Object[_0x18db4e(0x25b)],kt=(_0x50e500,_0x3fbcb1,_0xe37b70,_0x1713a5)=>{const _0x3c0c93=_0x18db4e;for(var _0x1025ee=_0x1713a5>0x1?void 0x0:_0x1713a5?Bt(_0x3fbcb1,_0xe37b70):_0x3fbcb1,_0x34ee68=_0x50e500[_0x3c0c93(0x3f7)]-0x1,_0x54e0a6;_0x34ee68>=0x0;_0x34ee68--)(_0x54e0a6=_0x50e500[_0x34ee68])&&(_0x1025ee=_0x54e0a6(_0x1025ee)||_0x1025ee);return _0x1025ee;},ce=(_0x11d349,_0x104d00)=>(_0x2d6f7d,_0x33e60a)=>_0x104d00(_0x2d6f7d,_0x33e60a,_0x11d349);let z=class{constructor(_0x2af5f0,_0x4527ba,_0x381ba5){const _0x178afe=_0x18db4e;this[_0x178afe(0x1d3)]=_0x2af5f0,this[_0x178afe(0x33d)]=_0x4527ba,this[_0x178afe(0x3d2)]=_0x381ba5;}['transformIMECache'](_0xa4e8e1){const _0x28c83d=_0x18db4e;this[_0x28c83d(0x284)](_0xa4e8e1),this[_0x28c83d(0x37e)](_0xa4e8e1);}[_0x18db4e(0x3de)](_0x1f8372){const _0x10735c=_0x18db4e,{unitID:_0xf4a3ba}=_0x1f8372,_0x4c1bd2=this[_0x10735c(0x3d2)][_0x10735c(0x30f)](_0xf4a3ba)[_0x10735c(0x39b)](b[_0x10735c(0x3e5)]),{redoCache:_0x595b29}=_0x4c1bd2['getUndoRedoMutationParamsCache']();if(_0x595b29['length']===0x0)return _0x1f8372;let _0xa34257=a[_0x10735c(0x2cf)]['deepClone'](_0x1f8372['mutations'][0x0]);for(let _0x357a94=0x0;_0x357a94<_0x595b29[_0x10735c(0x3f7)];_0x357a94++){const _0x36d249={'id':_0x10735c(0x2d6),'params':{..._0x595b29[_0x357a94]}},_0x5ddd44=this['_transformService']['transformMutation'](_0xa34257,_0x36d249,!0x1);if(m[_0x10735c(0x2fc)](_0x5ddd44))throw _0x5ddd44[_0x10735c(0x39e)];_0xa34257=_0x5ddd44['m1Prime'];}return{...a[_0x10735c(0x2cf)][_0x10735c(0x348)](_0x1f8372),'mutations':[_0xa34257]};}[_0x18db4e(0x284)](_0x4c0caa){const _0x3c8441=_0x18db4e,{unitID:_0x108c27}=_0x4c0caa,_0x3a2c23=this[_0x3c8441(0x3d2)]['getRenderById'](_0x108c27)[_0x3c8441(0x39b)](b[_0x3c8441(0x3e5)]),{undoCache:_0x13d70a,redoCache:_0x361474}=_0x3a2c23['getUndoRedoMutationParamsCache']();if(_0x13d70a[_0x3c8441(0x3f7)]===0x0||_0x361474[_0x3c8441(0x3f7)]===0x0)return;const _0x5d338a=[],_0x38a76b=[];let _0x2e4ddf=a[_0x3c8441(0x2cf)][_0x3c8441(0x348)](_0x4c0caa[_0x3c8441(0x1f6)][0x0]),_0x5c7e53=a['Tools']['deepClone'](_0x4c0caa['mutations'][0x0]);for(let _0x1bd6eb=_0x13d70a['length']-0x1;_0x1bd6eb>=0x0;_0x1bd6eb--){const _0x3907c1={'id':_0x3c8441(0x2d6),'params':{..._0x13d70a[_0x1bd6eb]}},_0x5147c6={'id':_0x3c8441(0x2d6),'params':{..._0x361474[_0x1bd6eb]}},_0x4c9338=this['_transformService'][_0x3c8441(0x340)](_0x2e4ddf,_0x3907c1,!0x1),_0x42a8b0=this[_0x3c8441(0x33d)][_0x3c8441(0x340)](_0x5c7e53,_0x5147c6,!0x1);if(m[_0x3c8441(0x2fc)](_0x4c9338))throw _0x4c9338['error'];if(m['isTransformMutationFailure'](_0x42a8b0))throw _0x42a8b0['error'];_0x5d338a['unshift'](_0x4c9338[_0x3c8441(0x1c5)][_0x3c8441(0x223)]),_0x38a76b[_0x3c8441(0x32d)](_0x42a8b0[_0x3c8441(0x1c5)]['params']),_0x2e4ddf=_0x4c9338[_0x3c8441(0x3e9)],_0x5c7e53=_0x42a8b0[_0x3c8441(0x3e9)];}_0x3a2c23[_0x3c8441(0x1e8)]({'undoCache':_0x5d338a,'redoCache':_0x38a76b});}['_transformPreviousActiveRange'](_0x100a59){const _0xbf5b66=_0x18db4e,{unitID:_0x33f415}=_0x100a59,_0x312188=this[_0xbf5b66(0x3d2)][_0xbf5b66(0x30f)](_0x33f415)[_0xbf5b66(0x39b)](b[_0xbf5b66(0x3e5)]),_0x503c52=_0x312188[_0xbf5b66(0x290)]();if(_0x503c52==null)return;const _0x8ef680=[{'id':_0xbf5b66(0x2d6),'params':{'unitId':_0x100a59[_0xbf5b66(0x208)],'actions':null,'textRanges':[_0x503c52]}}],_0x3d8358=this[_0xbf5b66(0x33d)]['transformMutationsWithChangeset'](_0x100a59,_0x8ef680);if(!m[_0xbf5b66(0x181)](_0x3d8358))throw _0x3d8358[_0xbf5b66(0x39e)];const _0x51290e=_0x3d8358[_0xbf5b66(0x1c5)][0x0][_0xbf5b66(0x223)]['textRanges'];Array[_0xbf5b66(0x246)](_0x51290e)&&_0x51290e[_0xbf5b66(0x3f7)]&&_0x312188['setActiveRange'](_0x51290e[0x0]);}};z=kt([ce(0x0,a[_0x18db4e(0x1ff)](a[_0x18db4e(0x20e)])),ce(0x1,m[_0x18db4e(0x2db)]),ce(0x2,p[_0x18db4e(0x228)])],z);function _0x4661(_0xfb9770,_0x1a100d){const _0x411116=_0x4111();return _0x4661=function(_0x466131,_0x528a93){_0x466131=_0x466131-0x17e;let _0x483669=_0x411116[_0x466131];return _0x483669;},_0x4661(_0xfb9770,_0x1a100d);}var Ht=Object[_0x18db4e(0x25b)],Ft=(_0x2c2676,_0x56cde5,_0x46b271,_0x336eb7)=>{for(var _0x8a5062=_0x336eb7>0x1?void 0x0:_0x336eb7?Ht(_0x56cde5,_0x46b271):_0x56cde5,_0x437d9b=_0x2c2676['length']-0x1,_0x1a68eb;_0x437d9b>=0x0;_0x437d9b--)(_0x1a68eb=_0x2c2676[_0x437d9b])&&(_0x8a5062=_0x1a68eb(_0x8a5062)||_0x8a5062);return _0x8a5062;},le=(_0xe8ddd4,_0x5bd9ee)=>(_0x2ebabb,_0x148b16)=>_0x5bd9ee(_0x2ebabb,_0x148b16,_0xe8ddd4);let J=class{constructor(_0x181951,_0x59ae1a,_0x378be0){const _0x2fad14=_0x18db4e;this[_0x2fad14(0x1d3)]=_0x181951,this[_0x2fad14(0x33d)]=_0x59ae1a,this[_0x2fad14(0x3cb)]=_0x378be0;}['transformStateCache'](_0x3487fe){this['_transformHistoryAndStateStack'](_0x3487fe);}[_0x18db4e(0x3de)](_0x2f964b){const _0x253159=_0x18db4e,{unitID:_0xd08d78}=_0x2f964b,{collaboration:_0x3b10ab}=this[_0x253159(0x3cb)][_0x253159(0x1e7)](_0xd08d78);if(_0x3b10ab['length']===0x0)return _0x2f964b;let _0x1f7115=a[_0x253159(0x2cf)][_0x253159(0x348)](_0x2f964b[_0x253159(0x1f6)][0x0]);for(let _0x485e92=0x0;_0x485e92<_0x3b10ab[_0x253159(0x3f7)];_0x485e92++){const _0x2bae90={'id':_0x253159(0x2d6),'params':{'unitId':_0x3b10ab[_0x485e92][_0x253159(0x356)],..._0x3b10ab[_0x485e92][_0x253159(0x1aa)]}},_0x590d2b=this[_0x253159(0x33d)][_0x253159(0x340)](_0x1f7115,_0x2bae90,!0x1);if(m[_0x253159(0x2fc)](_0x590d2b))throw _0x590d2b[_0x253159(0x39e)];_0x1f7115=_0x590d2b[_0x253159(0x3e9)];}return{...a[_0x253159(0x2cf)][_0x253159(0x348)](_0x2f964b),'mutations':[_0x1f7115]};}[_0x18db4e(0x239)](_0x40baf9){const _0x4fd10b=_0x18db4e,{unitID:_0x33e150}=_0x40baf9,{history:_0x430b0e,collaboration:_0x2557cb}=this[_0x4fd10b(0x3cb)][_0x4fd10b(0x1e7)](_0x33e150);if(_0x430b0e[_0x4fd10b(0x3f7)]===0x0&&_0x2557cb[_0x4fd10b(0x3f7)]===0x0)return;const _0x4929b2=[],_0x313777=[];let _0x346e08=a[_0x4fd10b(0x2cf)][_0x4fd10b(0x348)](_0x40baf9[_0x4fd10b(0x1f6)][0x0]),_0x51b70c=a[_0x4fd10b(0x2cf)]['deepClone'](_0x40baf9[_0x4fd10b(0x1f6)][0x0]);for(let _0xbb3db=_0x430b0e[_0x4fd10b(0x3f7)]-0x1;_0xbb3db>=0x0;_0xbb3db--){const _0x5c63a7={'id':_0x4fd10b(0x2d6),'params':{'unitId':_0x430b0e[_0xbb3db][_0x4fd10b(0x356)],..._0x430b0e[_0xbb3db]['undoState']}},_0x5d13e8={'id':_0x4fd10b(0x2d6),'params':{'unitId':_0x430b0e[_0xbb3db]['unitId'],..._0x430b0e[_0xbb3db][_0x4fd10b(0x1aa)]}},_0x24323e=this[_0x4fd10b(0x33d)][_0x4fd10b(0x340)](_0x346e08,_0x5c63a7,!0x1),_0x358cab=this[_0x4fd10b(0x33d)]['transformMutation'](_0x51b70c,_0x5d13e8,!0x1);if(m[_0x4fd10b(0x2fc)](_0x24323e))throw _0x24323e[_0x4fd10b(0x39e)];if(m[_0x4fd10b(0x2fc)](_0x358cab))throw _0x358cab[_0x4fd10b(0x39e)];_0x4929b2['unshift']({..._0x430b0e[_0xbb3db],'undoState':_0x24323e[_0x4fd10b(0x1c5)]['params'],'redoState':_0x358cab[_0x4fd10b(0x1c5)][_0x4fd10b(0x223)]}),_0x346e08=_0x24323e[_0x4fd10b(0x3e9)],_0x51b70c=_0x358cab[_0x4fd10b(0x3e9)];}_0x346e08=a[_0x4fd10b(0x2cf)][_0x4fd10b(0x348)](_0x40baf9[_0x4fd10b(0x1f6)][0x0]),_0x51b70c=a['Tools'][_0x4fd10b(0x348)](_0x40baf9[_0x4fd10b(0x1f6)][0x0]);for(let _0x186d58=_0x2557cb[_0x4fd10b(0x3f7)]-0x1;_0x186d58>=0x0;_0x186d58--){const _0x288032={'id':_0x4fd10b(0x2d6),'params':{'unitId':_0x2557cb[_0x186d58][_0x4fd10b(0x356)],..._0x2557cb[_0x186d58][_0x4fd10b(0x1a1)]}},_0x244d92={'id':_0x4fd10b(0x2d6),'params':{'unitId':_0x2557cb[_0x186d58][_0x4fd10b(0x356)],..._0x2557cb[_0x186d58][_0x4fd10b(0x1aa)]}},_0x422bb6=this['_transformService'][_0x4fd10b(0x340)](_0x346e08,_0x288032,!0x1),_0x93c5c8=this[_0x4fd10b(0x33d)][_0x4fd10b(0x340)](_0x51b70c,_0x244d92,!0x1);if(m[_0x4fd10b(0x2fc)](_0x422bb6))throw _0x422bb6[_0x4fd10b(0x39e)];if(m[_0x4fd10b(0x2fc)](_0x93c5c8))throw _0x93c5c8['error'];_0x313777[_0x4fd10b(0x32d)]({..._0x2557cb[_0x186d58],'undoState':_0x422bb6['m2Prime'][_0x4fd10b(0x223)],'redoState':_0x93c5c8[_0x4fd10b(0x1c5)][_0x4fd10b(0x223)]}),_0x346e08=_0x422bb6[_0x4fd10b(0x3e9)],_0x51b70c=_0x93c5c8[_0x4fd10b(0x3e9)];}this[_0x4fd10b(0x3cb)][_0x4fd10b(0x333)](_0x33e150,{'history':_0x4929b2,'collaboration':_0x313777});}};J=Ft([le(0x0,a[_0x18db4e(0x1ff)](a[_0x18db4e(0x20e)])),le(0x1,m['ITransformService']),le(0x2,a[_0x18db4e(0x1ff)](b[_0x18db4e(0x3f6)]))],J);var Yt=Object[_0x18db4e(0x25b)],Wt=(_0x966051,_0x2390d9,_0x359014,_0xcd2861)=>{const _0x3cfd2a=_0x18db4e;for(var _0x37c67c=_0xcd2861>0x1?void 0x0:_0xcd2861?Yt(_0x2390d9,_0x359014):_0x2390d9,_0x50587e=_0x966051[_0x3cfd2a(0x3f7)]-0x1,_0x49b5d9;_0x50587e>=0x0;_0x50587e--)(_0x49b5d9=_0x966051[_0x50587e])&&(_0x37c67c=_0x49b5d9(_0x37c67c)||_0x37c67c);return _0x37c67c;},Ne=(_0x2cf4cb,_0x597063)=>(_0x14aac5,_0x3df4f0)=>_0x597063(_0x14aac5,_0x3df4f0,_0x2cf4cb);let Z=class{constructor(_0x113c2d,_0x3c27e6){const _0x236a92=_0x18db4e;this[_0x236a92(0x1d3)]=_0x113c2d,this[_0x236a92(0x33d)]=_0x3c27e6;}[_0x18db4e(0x1d4)](_0x47f062){const _0xa01bdf=_0x18db4e;var _0x182647;const _0x41e32e=this['_injector'][_0xa01bdf(0x3b3)](Y['DocSelectionManagerService']),_0x1d07f7=(_0x182647=_0x41e32e[_0xa01bdf(0x336)]())!=null?_0x182647:[];if(_0x1d07f7['length']===0x0)return;const _0x31ef86=_0x47f062['unitID'],_0x47c5ac=[{'id':_0xa01bdf(0x2d6),'params':{'unitId':_0x31ef86,'actions':null,'textRanges':_0x1d07f7}}],_0x367ae3=this[_0xa01bdf(0x33d)][_0xa01bdf(0x1b5)](_0x47f062,_0x47c5ac);if(!m['isTransformMutationsWithChangesetSuccess'](_0x367ae3))throw _0x367ae3['error'];const _0x550a28=_0x367ae3[_0xa01bdf(0x1c5)][0x0]['params']['textRanges'];Array[_0xa01bdf(0x246)](_0x550a28)&&_0x550a28['length']&&_0x41e32e[_0xa01bdf(0x1b9)](_0x550a28,{'unitId':_0x31ef86,'subUnitId':_0x31ef86},!0x1);}};Z=Wt([Ne(0x0,a[_0x18db4e(0x1ff)](a[_0x18db4e(0x20e)])),Ne(0x1,m[_0x18db4e(0x2db)])],Z);var Vt=Object[_0x18db4e(0x25b)],Xt=(_0x174643,_0xe51d70,_0x57d542,_0x3eaa1c)=>{for(var _0x5716e3=_0x3eaa1c>0x1?void 0x0:_0x3eaa1c?Vt(_0xe51d70,_0x57d542):_0xe51d70,_0x23919f=_0x174643['length']-0x1,_0x158d33;_0x23919f>=0x0;_0x23919f--)(_0x158d33=_0x174643[_0x23919f])&&(_0x5716e3=_0x158d33(_0x5716e3)||_0x5716e3);return _0x5716e3;},N=(_0x9c7fa,_0x47e69e)=>(_0x420e96,_0x2bbb52)=>_0x47e69e(_0x420e96,_0x2bbb52,_0x9c7fa);let Q=class extends a[_0x18db4e(0x378)]{constructor(_0x1f8cf3,_0x2f3c4d,_0x493509,_0x577b3d,_0x3202ff,_0x2e19fe,_0x17244c,_0x16128b){const _0x501665=_0x18db4e;super(),h(this,_0x501665(0x227),new d[(_0x501665(0x2bd))](u[_0x501665(0x1b4)][_0x501665(0x1c8)])),(this[_0x501665(0x3cb)]=_0x1f8cf3,this[_0x501665(0x188)]=_0x2f3c4d,this['_docTransformIMECacheService']=_0x493509,this[_0x501665(0x214)]=_0x577b3d,this[_0x501665(0x2ea)]=_0x3202ff,this[_0x501665(0x27b)]=_0x2e19fe,this[_0x501665(0x262)]=_0x17244c,this[_0x501665(0x1d9)]=_0x16128b,this[_0x501665(0x18a)]());}['_initEntityListener'](){const _0xc61072=_0x18db4e;this[_0xc61072(0x3ae)](this['_collaborationController'][_0xc61072(0x38f)][_0xc61072(0x3d8)](_0x37aa20=>{const _0x2e8478=_0xc61072,_0x54827b=this[_0x2e8478(0x3cb)][_0x2e8478(0x196)][_0x2e8478(0x3d8)](_0x30b68b=>{const _0x13a3fb=_0x2e8478;if(_0x30b68b==null)return;const {unitId:_0x381a9b,redoState:_0x5c2657,commandId:_0x5268fa}=_0x30b68b;if(_0x381a9b!==_0x37aa20[_0x13a3fb(0x208)])return;const _0x43f6b0={'id':_0x5268fa,'type':a['CommandType'][_0x13a3fb(0x19e)],'params':{'unitId':_0x381a9b,'actions':_0x5c2657[_0x13a3fb(0x341)],'textRanges':null}};_0x37aa20['onLocalMutation'](_0x43f6b0);});if(_0x37aa20[_0x2e8478(0x3ae)](_0x54827b),_0x37aa20 instanceof u[_0x2e8478(0x19a)]){const _0x5575cb={'onTransformIME':_0x44b774=>this[_0x2e8478(0x265)][_0x2e8478(0x38e)](_0x44b774),'onTransformState':_0x2e2c3f=>this['_docTransformStateCacheService'][_0x2e8478(0x2e6)](_0x2e2c3f),'onTransformSelections':_0x1ebbde=>this['_docTransformSelectionsService'][_0x2e8478(0x1d4)](_0x1ebbde),'onSyncEditingCollabCursor':_0x49d133=>this['_docSyncEditingCollabCursorService'][_0x2e8478(0x28d)](_0x49d133),'onTransformRemoteChangesetByIMECache':_0x39b7d4=>this[_0x2e8478(0x265)][_0x2e8478(0x3de)](_0x39b7d4),'onTransformRemoteChangesetByStateCache':_0x19fbb6=>this[_0x2e8478(0x214)]['transformRemoteChangeset'](_0x19fbb6)};_0x37aa20[_0x2e8478(0x283)](_0x5575cb);}}));}};Q=Xt([N(0x0,a[_0x18db4e(0x1ff)](b['DocStateChangeManagerService'])),N(0x1,a[_0x18db4e(0x1ff)](u[_0x18db4e(0x308)])),N(0x2,a[_0x18db4e(0x1ff)](z)),N(0x3,a['Inject'](J)),N(0x4,a[_0x18db4e(0x1ff)](Z)),N(0x5,a[_0x18db4e(0x1ff)](Ce)),N(0x6,T['IMessageService']),N(0x7,a[_0x18db4e(0x1ff)](a[_0x18db4e(0x2dc)]))],Q);var Gt=Object[_0x18db4e(0x25b)],Kt=(_0x51c8a7,_0x2340bb,_0x57b285,_0x9dbd16)=>{const _0x3fd3d0=_0x18db4e;for(var _0x54db39=_0x9dbd16>0x1?void 0x0:_0x9dbd16?Gt(_0x2340bb,_0x57b285):_0x2340bb,_0x21d25b=_0x51c8a7[_0x3fd3d0(0x3f7)]-0x1,_0x4d1ae3;_0x21d25b>=0x0;_0x21d25b--)(_0x4d1ae3=_0x51c8a7[_0x21d25b])&&(_0x54db39=_0x4d1ae3(_0x54db39)||_0x54db39);return _0x54db39;},_e=(_0x43118c,_0x1c90cc)=>(_0x3415bb,_0x49e485)=>_0x1c90cc(_0x3415bb,_0x49e485,_0x43118c);let ge=class extends a[_0x18db4e(0x378)]{constructor(_0x10e67a,_0x3c1522,_0x47f2c1){const _0x2d74e1=_0x18db4e;super(),h(this,_0x2d74e1(0x40c),new Map()),h(this,_0x2d74e1(0x2f0),new Map()),h(this,'_disabled',!0x1),(this[_0x2d74e1(0x2c7)]=_0x10e67a,this[_0x2d74e1(0x2c6)]=_0x3c1522,this[_0x2d74e1(0x2b9)]=_0x47f2c1);}[_0x18db4e(0x375)](){const _0x502d49=_0x18db4e;this[_0x502d49(0x201)]=!0x0;}['enableLocalCache'](){this['_disabled']=!0x1;}get[_0x18db4e(0x352)](){const _0x1ffd47=_0x18db4e;return this[_0x1ffd47(0x2f0)];}['dispose'](){const _0x31d525=_0x18db4e;this[_0x31d525(0x2f9)]()[_0x31d525(0x253)](()=>super[_0x31d525(0x2d3)]());}async[_0x18db4e(0x3a8)](_0xee43e8){const _0x2da4ca=_0x18db4e;return this['_disabled']?null:this[_0x2da4ca(0x2c6)][_0x2da4ca(0x1be)](u[_0x2da4ca(0x272)](_0xee43e8));}async[_0x18db4e(0x266)](_0xf328ff,_0x14024c){const _0x7c4ebd=_0x18db4e;return!!this[_0x7c4ebd(0x2c6)][_0x7c4ebd(0x1dd)](_0xf328ff,_0x14024c);}[_0x18db4e(0x270)](_0x13e62d,_0x1ad3a3,_0x469889,_0x5e3018){const _0x3f6b74=_0x18db4e,_0x4eb230=this[_0x3f6b74(0x2b9)][_0x3f6b74(0x1ed)](_0x13e62d);this[_0x3f6b74(0x40c)][_0x3f6b74(0x26b)](_0x13e62d,{'unitID':_0x13e62d,'type':_0x1ad3a3,'awaitingChangeset':_0x469889,'mutations':_0x5e3018,'rev':_0x4eb230}),this[_0x3f6b74(0x2f0)][_0x3f6b74(0x3f3)](_0x13e62d)||this[_0x3f6b74(0x34e)](_0x13e62d);}[_0x18db4e(0x34e)](_0x12f75f){const _0x2c82de=_0x18db4e,_0x5b4742=this[_0x2c82de(0x2bc)]();_0x5b4742===0x0?this[_0x2c82de(0x289)](_0x12f75f):this['_saveTaskMap']['set'](_0x12f75f,setTimeout(()=>this[_0x2c82de(0x289)](_0x12f75f),_0x5b4742));}[_0x18db4e(0x2bc)](){const _0x4f04c5=_0x18db4e;var _0x2c7fa6;return(_0x2c7fa6=this['_configService'][_0x4f04c5(0x3d3)](u['LOCAL_CACHE_INTERVAL_KEY']))!=null?_0x2c7fa6:u['LOCAL_CACHE_INTERVAL'];}[_0x18db4e(0x289)](_0x1a5a9e){const _0x118d2a=_0x18db4e,_0x25e396=this[_0x118d2a(0x2f0)][_0x118d2a(0x3b3)](_0x1a5a9e);return _0x25e396!==void 0x0&&window[_0x118d2a(0x238)](_0x25e396),this[_0x118d2a(0x2c6)][_0x118d2a(0x1dd)](u[_0x118d2a(0x272)](_0x1a5a9e),this[_0x118d2a(0x40c)][_0x118d2a(0x3b3)](_0x1a5a9e))['then'](()=>this[_0x118d2a(0x2f0)][_0x118d2a(0x3c6)](_0x1a5a9e));}async[_0x18db4e(0x2f9)](){const _0x12490b=_0x18db4e,_0x3cc485=[];this[_0x12490b(0x2f0)][_0x12490b(0x281)]((_0x3216dc,_0x40c3b9)=>{const _0x2a89e5=_0x12490b;window[_0x2a89e5(0x238)](_0x3216dc),_0x3cc485[_0x2a89e5(0x342)](this[_0x2a89e5(0x289)](_0x40c3b9)[_0x2a89e5(0x253)](()=>{const _0x15d76a=_0x2a89e5;this[_0x15d76a(0x2f0)][_0x15d76a(0x3c6)](_0x40c3b9);}));}),await Promise[_0x12490b(0x224)](_0x3cc485);}};ge=Kt([_e(0x0,a[_0x18db4e(0x309)]),_e(0x1,a['ILocalStorageService']),_e(0x2,a['Inject'](m['RevisionService']))],ge);class je extends a[_0x18db4e(0x387)]{constructor(){const _0x16b2ad=_0x18db4e;super(),h(this,_0x16b2ad(0x361)),this[_0x16b2ad(0x361)]=d[_0x16b2ad(0x359)](window,_0x16b2ad(0x40b))[_0x16b2ad(0x376)](d[_0x16b2ad(0x36a)](this[_0x16b2ad(0x20c)]),d[_0x16b2ad(0x2e7)](0x1),d['mapTo'](void 0x0));}[_0x18db4e(0x1c2)](_0xb25978,_0x3597af,_0xb8ab8b=!0x1){const _0x4db8ac=_0x18db4e,_0x75d260=new URL(window[_0x4db8ac(0x3c5)][_0x4db8ac(0x1c9)]);_0x75d260[_0x4db8ac(0x355)][_0x4db8ac(0x26b)](_0xb25978,_0x3597af),_0xb8ab8b?window[_0x4db8ac(0x38c)][_0x4db8ac(0x40d)]('','',_0x75d260['toString']()):window[_0x4db8ac(0x38c)][_0x4db8ac(0x404)]('','',_0x75d260[_0x4db8ac(0x1cf)]());}[_0x18db4e(0x32c)](_0x447bf2,_0x51005f=!0x1){const _0x862c82=_0x18db4e,_0x138a74=new URL(window['location'][_0x862c82(0x1c9)]);_0x138a74[_0x862c82(0x355)][_0x862c82(0x3c6)](_0x447bf2),_0x51005f?window[_0x862c82(0x38c)]['replaceState']('','',_0x138a74[_0x862c82(0x1cf)]()):window[_0x862c82(0x38c)]['pushState']('','',_0x138a74[_0x862c82(0x1cf)]());}['getParam'](_0x54a667){const _0xe0ed2d=_0x18db4e;var _0x492003;return(_0x492003=new URL(window[_0xe0ed2d(0x3c5)][_0xe0ed2d(0x1c9)])['searchParams']['get'](_0x54a667))!=null?_0x492003:void 0x0;}}var qt=Object[_0x18db4e(0x33e)],zt=Object[_0x18db4e(0x25b)],Jt=(_0x3594a3,_0x4ceae9,_0x202867)=>_0x4ceae9 in _0x3594a3?qt(_0x3594a3,_0x4ceae9,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x202867}):_0x3594a3[_0x4ceae9]=_0x202867,Zt=(_0x509dac,_0xf644aa,_0x6b4cee,_0x30ee31)=>{const _0x3a612a=_0x18db4e;for(var _0x14595f=_0x30ee31>0x1?void 0x0:_0x30ee31?zt(_0xf644aa,_0x6b4cee):_0xf644aa,_0x1e8610=_0x509dac[_0x3a612a(0x3f7)]-0x1,_0x1cfea7;_0x1e8610>=0x0;_0x1e8610--)(_0x1cfea7=_0x509dac[_0x1e8610])&&(_0x14595f=_0x1cfea7(_0x14595f)||_0x14595f);return _0x14595f;},he=(_0x15e7db,_0x5a6792)=>(_0x15c515,_0xbec82d)=>_0x5a6792(_0x15c515,_0xbec82d,_0x15e7db),Qt=(_0x4d23ac,_0x4c305a,_0x35fb33)=>Jt(_0x4d23ac,_0x4c305a+'',_0x35fb33);const es=_0x18db4e(0x243);exports['UniverCollaborationClientUIPlugin']=class extends a['Plugin']{constructor(_0x456f7d=Ue,_0x48d3ba,_0x4fe802,_0x5f191f){const _0x3fdee1=_0x18db4e;super(),this[_0x3fdee1(0x2f3)]=_0x456f7d,this[_0x3fdee1(0x3d2)]=_0x48d3ba,this['_injector']=_0x4fe802,this[_0x3fdee1(0x2c7)]=_0x5f191f;const {..._0x18c376}=a[_0x3fdee1(0x1ab)]({},Ue,this[_0x3fdee1(0x2f3)]);this[_0x3fdee1(0x2c7)][_0x3fdee1(0x344)]($t,_0x18c376);}['onStarting'](){const _0x1f0102=_0x18db4e;this[_0x1f0102(0x22f)](),this[_0x1f0102(0x1f0)]();}[_0x18db4e(0x2c1)](){const _0x583d47=_0x18db4e;this[_0x583d47(0x411)]();}[_0x18db4e(0x22f)](){const _0x478d84=_0x18db4e;var _0x9abd0a;const _0x35ae79=[[me],[Z],[z],[J],[Ce],[be,{'useClass':je}],[G['ISocketService'],{'useClass':G[_0x478d84(0x255)]}],[u[_0x478d84(0x190)],{'useClass':ge}],[exports['DesktopCollaborationStatusDisplayController']],[Q],[q],[x],[de],[exports[_0x478d84(0x273)]]];a[_0x478d84(0x3fa)](this[_0x478d84(0x1d3)],a[_0x478d84(0x268)](_0x35ae79,(_0x9abd0a=this[_0x478d84(0x2f3)])==null?void 0x0:_0x9abd0a['override']));}[_0x18db4e(0x411)](){const _0x176cad=_0x18db4e;this['disposeWithMe'](this[_0x176cad(0x3d2)]['registerRenderModule'](a[_0x176cad(0x1b7)]['UNIVER_DOC'],[Ie])),this[_0x176cad(0x3ae)](this[_0x176cad(0x3d2)]['registerRenderModule'](a[_0x176cad(0x1b7)][_0x176cad(0x2c8)],[ve]));}[_0x18db4e(0x1f0)](){const _0x241283=_0x18db4e;a[_0x241283(0x3ff)](this[_0x241283(0x1d3)],[[x],[exports[_0x241283(0x26c)]],[Q],[q],[exports[_0x241283(0x273)]]]);}},Qt(exports['UniverCollaborationClientUIPlugin'],_0x18db4e(0x3f4),es),exports[_0x18db4e(0x3bc)]=Zt([a[_0x18db4e(0x1a4)](u[_0x18db4e(0x3d5)]),he(0x1,p[_0x18db4e(0x228)]),he(0x2,a[_0x18db4e(0x1ff)](a['Injector'])),he(0x3,a[_0x18db4e(0x309)])],exports[_0x18db4e(0x3bc)]);var ts=Object[_0x18db4e(0x25b)],ss=(_0x1b23d2,_0x26a3a1,_0x290842,_0x13f3be)=>{const _0x5799a7=_0x18db4e;for(var _0x42d306=_0x13f3be>0x1?void 0x0:_0x13f3be?ts(_0x26a3a1,_0x290842):_0x26a3a1,_0x452192=_0x1b23d2[_0x5799a7(0x3f7)]-0x1,_0x2b197a;_0x452192>=0x0;_0x452192--)(_0x2b197a=_0x1b23d2[_0x452192])&&(_0x42d306=_0x2b197a(_0x42d306)||_0x42d306);return _0x42d306;},F=(_0x14efaa,_0x4e4189)=>(_0x43b61a,_0x279087)=>_0x4e4189(_0x43b61a,_0x279087,_0x14efaa);exports[_0x18db4e(0x3b4)]=class extends u[_0x18db4e(0x193)]{constructor(_0x19c6c9,_0x43266a,_0x559fe1,_0xcaa066,_0x341444){super(_0x19c6c9,_0x43266a,_0x559fe1,_0xcaa066,_0x341444);}async[_0x18db4e(0x3ab)](_0x3b229f){const _0x7374bd=await this['_getSessionTicket'](),_0x362b65=this['_createSocketURL'](_0x3b229f,_0x7374bd);return this['_doCreateSocket'](_0x362b65);}['_createSocketURL'](_0x7a9381,_0x59fb63){const _0x5cf11f=_0x18db4e,_0x591320=typeof window>'u'?new URL(_0x7a9381):new URL(_0x7a9381,window[_0x5cf11f(0x3c5)][_0x5cf11f(0x3dd)]);_0x591320['searchParams'][_0x5cf11f(0x26b)](_0x5cf11f(0x206),_0x59fb63);const _0x424e15=typeof window>'u'?new URLSearchParams():new URLSearchParams(window[_0x5cf11f(0x3c5)]['search']);return _0x424e15['get'](_0x5cf11f(0x24f))&&_0x591320['searchParams'][_0x5cf11f(0x26b)](_0x5cf11f(0x24f),_0x424e15['get']('runId')),_0x591320[_0x5cf11f(0x1cf)]();}async[_0x18db4e(0x365)](){const _0x836d26=_0x18db4e;var _0x2cecaa,_0xaee4c1,_0x3b6d88;const _0x378fe0=this['_configService']['getConfig'](u[_0x836d26(0x2c4)]),_0x571af6=(_0x2cecaa=_0x378fe0==null?void 0x0:_0x378fe0['wsSessionTicketUrl'])!=null?_0x2cecaa:u[_0x836d26(0x24a)];return(_0x3b6d88=(_0xaee4c1=(await this[_0x836d26(0x22d)][_0x836d26(0x3b3)](_0x571af6,{'headers':{'Content-Type':'application/json'}}))[_0x836d26(0x379)])==null?void 0x0:_0xaee4c1[_0x836d26(0x31e)])!=null?_0x3b6d88:'';}},exports[_0x18db4e(0x3b4)]=ss([F(0x0,a[_0x18db4e(0x1ff)](a[_0x18db4e(0x20e)])),F(0x1,a[_0x18db4e(0x1ff)](G['HTTPService'])),F(0x2,a[_0x18db4e(0x309)]),F(0x3,a[_0x18db4e(0x2a1)]),F(0x4,m[_0x18db4e(0x254)])],exports[_0x18db4e(0x3b4)]);const Me=0x7530,Le=_0x18db4e(0x3f9);class is extends a[_0x18db4e(0x378)]{constructor(){const _0x2284bb=_0x18db4e;super(),h(this,_0x2284bb(0x2a7),a['generateRandomId']()),h(this,_0x2284bb(0x220),new Set()),h(this,_0x2284bb(0x330),new Map()),h(this,_0x2284bb(0x322),null),h(this,'_clearOtherTimers',new Map()),h(this,_0x2284bb(0x2b1),new Map()),this[_0x2284bb(0x35e)]();}[_0x18db4e(0x2d3)](){const _0x387377=_0x18db4e;super[_0x387377(0x2d3)](),this[_0x387377(0x31c)][_0x387377(0x281)]((_0x92a259,_0x39009d)=>this['_removeClearOtherTimer'](_0x39009d)),this[_0x387377(0x322)]&&window[_0x387377(0x38a)](this[_0x387377(0x322)]);}[_0x18db4e(0x2da)](_0x23b024){return this['_ensureSubject'](_0x23b024)['pipe'](d['distinctUntilChanged']());}['editingUnit'](_0x2c0ff2){const _0x12909f=_0x18db4e;this[_0x12909f(0x220)][_0x12909f(0x30a)]===0x0&&this[_0x12909f(0x2cb)](),this[_0x12909f(0x220)]['add'](_0x2c0ff2),this[_0x12909f(0x271)]({'type':0x0,'memberID':this[_0x12909f(0x2a7)],'unitIDs':[_0x2c0ff2],'isForwarded':!0x1});}[_0x18db4e(0x1dc)](_0x1fb5ed){const _0x4a5946=_0x18db4e;this[_0x4a5946(0x220)][_0x4a5946(0x3c6)](_0x1fb5ed),this[_0x4a5946(0x220)]['size']===0x0&&this['_heartbeatTimer']&&window['clearInterval'](this['_heartbeatTimer']);}['_init'](){const _0x22b6a3=_0x18db4e;this[_0x22b6a3(0x3ae)](a['toDisposable'](d[_0x22b6a3(0x359)](window,_0x22b6a3(0x209))['subscribe'](_0x974ea=>{const _0x2acdb2=_0x22b6a3;if(_0x974ea['key']!==Le||!_0x974ea['newValue'])return;const _0x3dfae9=JSON['parse'](_0x974ea[_0x2acdb2(0x395)]);this['_handleEvent'](_0x3dfae9);}))),window[_0x22b6a3(0x211)](_0x22b6a3(0x2a4),()=>this[_0x22b6a3(0x271)]({'type':0x1,'memberID':this[_0x22b6a3(0x2a7)],'unitIDs':Array[_0x22b6a3(0x372)](this[_0x22b6a3(0x220)])}));}[_0x18db4e(0x230)](_0x9ebbc6){const _0x1d0ac9=_0x18db4e;switch(_0x9ebbc6[_0x1d0ac9(0x1f2)]){case 0x0:this[_0x1d0ac9(0x1fb)](_0x9ebbc6);break;case 0x1:this['_handleLeaveEvent'](_0x9ebbc6);break;case 0x2:this['_handleHeartbeatEvent'](_0x9ebbc6);break;}}[_0x18db4e(0x1fb)](_0x4fec94){const _0x371c35=_0x18db4e,{unitIDs:_0x42fa5c,memberID:_0x47cc0b,isForwarded:_0x3ccc65}=_0x4fec94;_0x42fa5c['forEach'](_0x5f23cc=>{const _0x27a61a=_0x4661;if(!_0x3ccc65&&this['_unitOnClients']['has'](_0x5f23cc)&&this[_0x27a61a(0x317)](_0x5f23cc)[_0x27a61a(0x187)](u[_0x27a61a(0x28a)][_0x27a61a(0x1fc)]),!this[_0x27a61a(0x330)][_0x27a61a(0x3f3)](_0x5f23cc)||!this[_0x27a61a(0x330)]['get'](_0x5f23cc)[_0x27a61a(0x3f3)](_0x47cc0b)){const _0x41af08=this[_0x27a61a(0x330)][_0x27a61a(0x3b3)](_0x5f23cc)||new Set();_0x41af08[_0x27a61a(0x245)](_0x47cc0b),this[_0x27a61a(0x330)][_0x27a61a(0x26b)](_0x5f23cc,_0x41af08),this[_0x27a61a(0x256)](_0x47cc0b);}}),_0x3ccc65||this[_0x371c35(0x271)]({'type':0x0,'memberID':this[_0x371c35(0x2a7)],'unitIDs':[...this['_selfUnitIDs']],'isForwarded':!0x0});}['_scheduleClearOtherTimer'](_0x3221f0){const _0x18e90e=_0x18db4e;this[_0x18e90e(0x3ea)](_0x3221f0);const _0x5026f5=window[_0x18e90e(0x20b)](()=>{this['_unitOnClients']['forEach'](_0x20d2fa=>{const _0x43a162=_0x4661;_0x20d2fa[_0x43a162(0x3c6)](_0x3221f0);});},Me*0x2);this[_0x18e90e(0x31c)][_0x18e90e(0x26b)](_0x3221f0,_0x5026f5);}[_0x18db4e(0x3ea)](_0x1f220f){const _0x1dc242=_0x18db4e;if(this[_0x1dc242(0x31c)]['has'](_0x1f220f)){const _0x5f1d71=this[_0x1dc242(0x31c)][_0x1dc242(0x3b3)](_0x1f220f);_0x5f1d71&&window[_0x1dc242(0x238)](_0x5f1d71),this[_0x1dc242(0x31c)]['set'](_0x1f220f,null);}}['_handleLeaveEvent'](_0xe94930){const _0x3f36c3=_0x18db4e,{memberID:_0x379142,unitIDs:_0xe9a63d}=_0xe94930;_0xe9a63d[_0x3f36c3(0x281)](_0x54eadf=>{const _0x116491=_0x3f36c3;var _0x4c5155;const _0x41f273=this[_0x116491(0x330)][_0x116491(0x3b3)](_0x54eadf);_0x41f273&&(_0x41f273[_0x116491(0x3c6)](_0x379142),(_0x4c5155=this[_0x116491(0x317)](_0x54eadf))==null||_0x4c5155[_0x116491(0x187)](_0x41f273[_0x116491(0x30a)]===0x0?u[_0x116491(0x28a)][_0x116491(0x263)]:u['UnitStatus'][_0x116491(0x1fc)]));}),this['_removeClearOtherTimer'](_0x379142);}[_0x18db4e(0x280)](_0x4e3ac0){const _0x74581b=_0x18db4e;this['_scheduleClearOtherTimer'](_0x4e3ac0[_0x74581b(0x349)]);}[_0x18db4e(0x271)](_0x38c8b9){localStorage['setItem'](Le,JSON['stringify'](_0x38c8b9));}['_scheduleHeartbeat'](){const _0x7b654a=_0x18db4e;this[_0x7b654a(0x322)]=window[_0x7b654a(0x2f6)](()=>{const _0x44cc30=_0x7b654a;this[_0x44cc30(0x271)]({'type':0x2,'memberID':this[_0x44cc30(0x2a7)]});},Me);}[_0x18db4e(0x317)](_0x46e30d){const _0x21b82c=_0x18db4e;return this['_unitStatus'][_0x21b82c(0x3f3)](_0x46e30d)||this[_0x21b82c(0x2b1)]['set'](_0x46e30d,new d['BehaviorSubject'](u[_0x21b82c(0x28a)][_0x21b82c(0x263)])),this[_0x21b82c(0x2b1)]['get'](_0x46e30d);}}var Be=(_0x95ad07=>(_0x95ad07[_0x95ad07[_0x18db4e(0x27f)]=0x0]=_0x18db4e(0x27f),_0x95ad07[_0x95ad07['OK']=0x1]='OK',_0x95ad07[_0x95ad07[_0x18db4e(0x30e)]=0x2]=_0x18db4e(0x30e),_0x95ad07[_0x95ad07[_0x18db4e(0x36f)]=0x3]=_0x18db4e(0x36f),_0x95ad07[_0x95ad07['NOT_FOUND']=0x4]=_0x18db4e(0x1cb),_0x95ad07[_0x95ad07['UNAUTHENTICATED']=0x5]=_0x18db4e(0x1a0),_0x95ad07[_0x95ad07[_0x18db4e(0x30c)]=0x6]=_0x18db4e(0x30c),_0x95ad07[_0x95ad07['INVALID_ARGUMENT']=0x7]=_0x18db4e(0x2b5),_0x95ad07[_0x95ad07[_0x18db4e(0x260)]=0x8]=_0x18db4e(0x260),_0x95ad07[_0x95ad07[_0x18db4e(0x259)]=0x9]=_0x18db4e(0x259),_0x95ad07[_0x95ad07[_0x18db4e(0x1b1)]=0xa]='LOGIN_FAILED',_0x95ad07[_0x95ad07[_0x18db4e(0x202)]=0x1389]=_0x18db4e(0x202),_0x95ad07[_0x95ad07[_0x18db4e(0x218)]=0x1771]=_0x18db4e(0x218),_0x95ad07[_0x95ad07[_0x18db4e(0x325)]=0x1772]='SNAPSHOT_HAS_BEEN_REMOVED',_0x95ad07[_0x95ad07[_0x18db4e(0x360)]=0x1773]='ENSURE_SNAPSHOT_EXECUTION',_0x95ad07[_0x95ad07['APPLY_REJECT']=0x1b59]=_0x18db4e(0x3e2),_0x95ad07[_0x95ad07[_0x18db4e(0x402)]=0x1b5a]=_0x18db4e(0x402),_0x95ad07[_0x95ad07['APPLY_REVISION_CONFILICT']=0x1b5b]='APPLY_REVISION_CONFILICT',_0x95ad07[_0x95ad07['APPLY_PERMISSION_DENIED']=0x1b5c]='APPLY_PERMISSION_DENIED',_0x95ad07[_0x95ad07[_0x18db4e(0x304)]=0x1b5d]='APPLY_DUPLICATED',_0x95ad07[_0x95ad07['CONNECTOR_DATA_TOO_LARGE']=0x1f41]=_0x18db4e(0x2b7),_0x95ad07[_0x95ad07[_0x18db4e(0x3da)]=0x2329]=_0x18db4e(0x3da),_0x95ad07[_0x95ad07[_0x18db4e(0x3b7)]=0x232a]='LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED',_0x95ad07[_0x95ad07[_0x18db4e(0x3f8)]=0x232b]=_0x18db4e(0x3f8),_0x95ad07[_0x95ad07[_0x18db4e(0x2aa)]=0x232c]=_0x18db4e(0x2aa),_0x95ad07[_0x95ad07[_0x18db4e(0x1d8)]=0x232d]=_0x18db4e(0x1d8),_0x95ad07[_0x95ad07[_0x18db4e(0x29a)]=0x2711]=_0x18db4e(0x29a),_0x95ad07[_0x95ad07['YUUMI_URL_COL_OUT_OF_RANGE']=0x2712]=_0x18db4e(0x195),_0x95ad07[_0x95ad07[_0x18db4e(0x205)]=0x2713]=_0x18db4e(0x205),_0x95ad07[_0x95ad07[_0x18db4e(0x219)]=0x2714]='YUUMI_SUBSCRIPTION_NOT_FOUND',_0x95ad07[_0x95ad07[_0x18db4e(0x1de)]=0x271a]=_0x18db4e(0x1de),_0x95ad07[_0x95ad07[_0x18db4e(0x28c)]=0x271b]=_0x18db4e(0x28c),_0x95ad07[_0x95ad07[_0x18db4e(0x40e)]=0x271c]='YUUMI_TABLE_NOT_FOUND_IN_UNIT',_0x95ad07[_0x95ad07[_0x18db4e(0x180)]=0x271d]=_0x18db4e(0x180),_0x95ad07[_0x95ad07['YUUMI_PROMPT_MAX_TOKENS_EXCEEDED']=0x271e]=_0x18db4e(0x264),_0x95ad07[_0x95ad07[_0x18db4e(0x26a)]=0x271f]=_0x18db4e(0x26a),_0x95ad07[_0x95ad07['PY_RUNTIME_SCRIPT_ERROR']=0x2af9]='PY_RUNTIME_SCRIPT_ERROR',_0x95ad07[_0x95ad07['INVITE_CODE_HAS_BEEN_UES']=0x2ee1]=_0x18db4e(0x299),_0x95ad07[_0x95ad07['INVALID_INVITE_CODE']=0x2ee2]=_0x18db4e(0x3ac),_0x95ad07[_0x95ad07[_0x18db4e(0x339)]=0x2ee3]=_0x18db4e(0x339),_0x95ad07[_0x95ad07[_0x18db4e(0x34a)]=0x2ee4]=_0x18db4e(0x34a),_0x95ad07[_0x95ad07['INVITE_CODE_ALREADY_BOUND']=0x2ee5]=_0x18db4e(0x213),_0x95ad07[_0x95ad07[_0x18db4e(0x412)]=0x32c9]='WECHAT_HAS_BEEN_BOUND',_0x95ad07[_0x95ad07['MOBILE_HAS_BEEN_BOUND']=0x32ca]=_0x18db4e(0x37a),_0x95ad07[_0x95ad07[_0x18db4e(0x301)]=0x32cb]=_0x18db4e(0x301),_0x95ad07[_0x95ad07[_0x18db4e(0x3d9)]=-0x1]=_0x18db4e(0x3d9),_0x95ad07))(Be||{}),ns=Object[_0x18db4e(0x25b)],rs=(_0x254a80,_0x40724f,_0x538c1b,_0x5bf76a)=>{for(var _0x448c53=_0x5bf76a>0x1?void 0x0:_0x5bf76a?ns(_0x40724f,_0x538c1b):_0x40724f,_0x4401ec=_0x254a80['length']-0x1,_0x54ff28;_0x4401ec>=0x0;_0x4401ec--)(_0x54ff28=_0x254a80[_0x4401ec])&&(_0x448c53=_0x54ff28(_0x448c53)||_0x448c53);return _0x448c53;},ue=(_0x2aafd6,_0x3e33dd)=>(_0x3f5153,_0x3851e8)=>_0x3e33dd(_0x3f5153,_0x3851e8,_0x2aafd6);exports[_0x18db4e(0x315)]=class extends a[_0x18db4e(0x378)]{constructor(_0x4af0cc,_0x2bd162,_0x1894f6){const _0x56c8e1=_0x18db4e;super(),this[_0x56c8e1(0x3c9)]=_0x4af0cc,this['_httpService']=_0x2bd162,this[_0x56c8e1(0x2c7)]=_0x1894f6;}async[_0x18db4e(0x2ef)](_0x5efc24,_0xeab753,_0x1e0e2d,..._0x2bab9e){const _0x3fde9d=_0x18db4e;var _0x15db08,_0x5488e5,_0x464d17,_0x12bbc9;const _0x1e84ef=this[_0x3fde9d(0x3c9)][_0x3fde9d(0x3a3)]();if(!_0x1e84ef)throw new Error('[RemoteUniscriptService]:\x20no\x20focused\x20unit');const _0x404543=((_0x15db08=this[_0x3fde9d(0x2c7)][_0x3fde9d(0x3d3)](u[_0x3fde9d(0x27e)]))!=null?_0x15db08:u[_0x3fde9d(0x34f)])+'/'+_0x5efc24+_0x3fde9d(0x33a)+_0xeab753,_0x3af039=new URL(window['location'][_0x3fde9d(0x1c9)]),_0x384e3e={'scriptId':_0x5efc24,'runId':(_0x5488e5=_0x3af039[_0x3fde9d(0x355)][_0x3fde9d(0x3b3)](_0x3fde9d(0x24f)))!=null?_0x5488e5:'','function':_0xeab753,'unitId':_0x1e84ef[_0x3fde9d(0x2ce)](),'argsOfFunction':JSON[_0x3fde9d(0x2ca)](_0x2bab9e),'invokeId':(_0x464d17=_0x1e0e2d[_0x3fde9d(0x3ee)])!=null?_0x464d17:'','executionId':(_0x12bbc9=_0x1e0e2d[_0x3fde9d(0x413)])!=null?_0x12bbc9:''};try{const _0x4f6d0c=await this[_0x3fde9d(0x22d)]['post'](_0x404543,{'body':_0x384e3e});return _0x4f6d0c[_0x3fde9d(0x379)][_0x3fde9d(0x39e)]&&_0x4f6d0c[_0x3fde9d(0x379)][_0x3fde9d(0x39e)][_0x3fde9d(0x200)]!==Be['OK']?_0x3fde9d(0x35f):_0x4f6d0c['body']['result'];}catch{return _0x3fde9d(0x35f);}}},exports[_0x18db4e(0x315)]=rs([ue(0x0,a['IUniverInstanceService']),ue(0x1,a[_0x18db4e(0x1ff)](G[_0x18db4e(0x2f1)])),ue(0x2,a[_0x18db4e(0x309)])],exports[_0x18db4e(0x315)]),exports[_0x18db4e(0x334)]=xe,exports[_0x18db4e(0x18e)]=be,exports[_0x18db4e(0x380)]=Pe,exports[_0x18db4e(0x20f)]=is,exports['WebURLService']=je;
1
+ 'use strict';const _0x31be5e=_0x43d8;(function(_0x4f4371,_0x7b4425){const _0x1554b6=_0x43d8,_0x425ace=_0x4f4371();while(!![]){try{const _0x12cf4d=parseInt(_0x1554b6(0x246))/0x1+parseInt(_0x1554b6(0x18e))/0x2*(parseInt(_0x1554b6(0x2ac))/0x3)+parseInt(_0x1554b6(0x297))/0x4+parseInt(_0x1554b6(0x192))/0x5+parseInt(_0x1554b6(0x275))/0x6+-parseInt(_0x1554b6(0x1d5))/0x7+-parseInt(_0x1554b6(0x209))/0x8;if(_0x12cf4d===_0x7b4425)break;else _0x425ace['push'](_0x425ace['shift']());}catch(_0x57c1e3){_0x425ace['push'](_0x425ace['shift']());}}}(_0x4532,0x2de2a));var Ve=Object['defineProperty'],Xe=(_0x1f4836,_0x1dea16,_0x55f362)=>_0x1dea16 in _0x1f4836?Ve(_0x1f4836,_0x1dea16,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x55f362}):_0x1f4836[_0x1dea16]=_0x55f362,h=(_0xec1cf6,_0x136166,_0x24573d)=>Xe(_0xec1cf6,typeof _0x136166!=_0x31be5e(0x1c9)?_0x136166+'':_0x136166,_0x24573d);Object[_0x31be5e(0x2ce)](exports,Symbol[_0x31be5e(0x18a)],{'value':_0x31be5e(0x274)});const u=require('@univerjs-pro/collaboration-client'),a=require(_0x31be5e(0x1aa)),p=require(_0x31be5e(0x280)),G=require(_0x31be5e(0x264)),b=require(_0x31be5e(0xfc)),Ge=require('@univerjs/drawing'),d=require(_0x31be5e(0x276)),Y=require(_0x31be5e(0x23b)),m=require('@univerjs-pro/collaboration'),Ee=require('@univerjs/engine-formula'),g=require(_0x31be5e(0x1ba)),$=require(_0x31be5e(0x2db)),X=require(_0x31be5e(0x2dc)),w=require(_0x31be5e(0x303)),T=require(_0x31be5e(0x28d)),D=require(_0x31be5e(0x2ae)),M=require(_0x31be5e(0x126)),Ke=require('@univerjs/rpc');var qe=Object['getOwnPropertyDescriptor'],ze=(_0x240089,_0x102abc,_0x1dc517,_0x474746)=>{const _0x18b107=_0x31be5e;for(var _0x45247d=_0x474746>0x1?void 0x0:_0x474746?qe(_0x102abc,_0x1dc517):_0x102abc,_0x11dce4=_0x240089[_0x18b107(0x247)]-0x1,_0x172522;_0x11dce4>=0x0;_0x11dce4--)(_0x172522=_0x240089[_0x11dce4])&&(_0x45247d=_0x172522(_0x45247d)||_0x45247d);return _0x45247d;},Te=(_0x1b186f,_0x54b28b)=>(_0x22fdb4,_0x182eed)=>_0x54b28b(_0x22fdb4,_0x182eed,_0x1b186f);let de=class extends a[_0x31be5e(0x262)]{constructor(_0x6cab16,_0x3cb358){const _0x35b785=_0x31be5e;super(),this[_0x35b785(0x14d)]=_0x6cab16,this['_imageIoService']=_0x3cb358,this['_init']();}[_0x31be5e(0x100)](){const _0x3f0eae=_0x31be5e,_0x535b6a=this;this[_0x3f0eae(0x2bc)](this[_0x3f0eae(0x14d)][_0x3f0eae(0x181)]({'onBeforePasteImage':async _0x48656a=>{const _0x9c9ed5=_0x3f0eae,_0x31256d=await _0x535b6a[_0x9c9ed5(0x1eb)][_0x9c9ed5(0x22c)](_0x48656a);return _0x31256d?{'source':_0x31256d[_0x9c9ed5(0x2af)],'imageSourceType':_0x31256d['imageSourceType']}:null;}}));}};de=ze([Te(0x0,b[_0x31be5e(0x2b3)]),Te(0x1,Ge[_0x31be5e(0x32f)])],de);const Oe=[_0x31be5e(0x36d),'jiqing.500',_0x31be5e(0x17f),'red.300','blue.400',_0x31be5e(0x312)];class me extends a[_0x31be5e(0x128)]{constructor(){const _0x214bdf=_0x31be5e;super(...arguments),h(this,'_assignedColors',new Map()),h(this,_0x214bdf(0x361),0x0);}[_0x31be5e(0x1ae)](_0x56a089){const _0x43d1b2=_0x31be5e;if(this[_0x43d1b2(0x265)]['has'](_0x56a089))return this[_0x43d1b2(0x265)][_0x43d1b2(0x16a)](_0x56a089);const _0x4501fb=Oe[this['_colorIndex']];return this[_0x43d1b2(0x361)]=(this[_0x43d1b2(0x361)]+0x1)%Oe[_0x43d1b2(0x247)],this['_assignedColors']['set'](_0x56a089,_0x4501fb),_0x4501fb;}}function we(_0x356dfa){const _0x385cbc=_0x31be5e;let _0x4510b2='';for(const _0x5eea33 of _0x356dfa){const {startOffset:_0x525e64,endOffset:_0x28fa00,isActive:_0x15db9b,rangeType:_0x303392,segmentId:_0x13621b,segmentPage:_0x304c18}=_0x5eea33;_0x4510b2[_0x385cbc(0x247)]&&(_0x4510b2+=','),_0x4510b2+=_0x525e64+':'+_0x28fa00+':'+(_0x15db9b?'1':'0')+':'+_0x303392+':'+_0x13621b+':'+_0x304c18;}return _0x4510b2;}function Je(_0x58e2be){const _0x299c67=_0x31be5e,_0x35e628=_0x58e2be[_0x299c67(0x2cf)](','),_0x7f794b=[];for(const _0x36a347 of _0x35e628){const [_0x4b610f,_0x292cc1,_0x3af213,_0x19b3a7,_0x18b0b7,_0x482508]=_0x36a347[_0x299c67(0x2cf)](':');_0x7f794b['push']({'startOffset':Number(_0x4b610f),'endOffset':Number(_0x292cc1),'collapsed':_0x4b610f===_0x292cc1,'isActive':_0x3af213==='1','rangeType':_0x19b3a7===a[_0x299c67(0x1d8)]['TEXT']?a[_0x299c67(0x1d8)][_0x299c67(0x2ff)]:a[_0x299c67(0x1d8)]['RECT'],'segmentId':typeof _0x18b0b7==_0x299c67(0x1ed)?String(_0x18b0b7):'','segmentPage':Number(_0x482508!=null?_0x482508:-0x1)});}return _0x7f794b['some'](_0x5bdca3=>_0x5bdca3[_0x299c67(0x19b)])||(_0x7f794b[0x0]['isActive']=!0x0),_0x7f794b;}class Ce extends a['RxDisposable']{constructor(){const _0x40a413=_0x31be5e;super(...arguments),h(this,_0x40a413(0x183),new d[(_0x40a413(0x221))](null)),h(this,_0x40a413(0x365),this[_0x40a413(0x183)][_0x40a413(0x2a0)]());}[_0x31be5e(0x125)](_0x19ef13){const _0x546ed6=_0x31be5e,{unitID:_0x9ff9bd,memberID:_0x5346bd,textRanges:_0x21928f}=_0x19ef13,_0x6d507a=we(_0x21928f);if(_0x6d507a==='')return;const _0x52836d={'unitID':_0x9ff9bd,'memberID':_0x5346bd,'selection':_0x6d507a};this[_0x546ed6(0x183)][_0x546ed6(0x145)](_0x52836d);}}var Ze=Object[_0x31be5e(0x241)],Qe=(_0x5d8edf,_0x107e6a,_0x207dec,_0x5493a3)=>{const _0x2963ae=_0x31be5e;for(var _0x5c74d8=_0x5493a3>0x1?void 0x0:_0x5493a3?Ze(_0x107e6a,_0x207dec):_0x107e6a,_0x196d2c=_0x5d8edf[_0x2963ae(0x247)]-0x1,_0x4dfe98;_0x196d2c>=0x0;_0x196d2c--)(_0x4dfe98=_0x5d8edf[_0x196d2c])&&(_0x5c74d8=_0x4dfe98(_0x5c74d8)||_0x5c74d8);return _0x5c74d8;},L=(_0x41fbe4,_0x2d8657)=>(_0x1dc0a0,_0x4a68d0)=>_0x2d8657(_0x1dc0a0,_0x4a68d0,_0x41fbe4);const et=0x12c,tt=0x64;let fe=class extends a[_0x31be5e(0x262)]{constructor(_0x134480,_0x298565,_0x4f1a2d,_0x55c1de,_0x1ae1e9,_0x2f6a86,_0x1f20e2,_0x4ce4d0,_0x34d7cd){const _0xf14425=_0x31be5e;super(),h(this,_0xf14425(0x329),!0x1),h(this,_0xf14425(0x100),!0x1),h(this,_0xf14425(0x16e),new d[(_0xf14425(0x221))](new Map())),h(this,'cursorInfo$',this['_cursorInfo$']['asObservable']()),h(this,_0xf14425(0x26b),new d[(_0xf14425(0x221))]([])),h(this,_0xf14425(0x207),this[_0xf14425(0x26b)][_0xf14425(0x2c2)](d[_0xf14425(0x1de)](et))),h(this,'_updateLocalCursor',a[_0xf14425(0x13c)](_0x383573=>{const _0x15379d=_0xf14425,_0x15dae5={'eventID':m['CollaborationEvent'][_0x15379d(0x2df)],'data':{'unitID':this[_0x15379d(0x23e)],'memberID':this[_0x15379d(0x1e6)]['getMemberID'](),'selection':we(_0x383573)}};this[_0x15379d(0x1e6)]['send'](_0x15dae5,this[_0x15379d(0x23e)]);},tt)),(this[_0xf14425(0x23e)]=_0x134480,this[_0xf14425(0x1e6)]=_0x298565,this[_0xf14425(0x171)]=_0x4f1a2d,this[_0xf14425(0x279)]=_0x55c1de,this[_0xf14425(0x147)]=_0x1ae1e9,this[_0xf14425(0x152)]=_0x2f6a86,this[_0xf14425(0x17c)]=_0x1f20e2,this['_univerInstanceService']=_0x4ce4d0,this[_0xf14425(0x204)]=_0x34d7cd);}get[_0x31be5e(0x159)](){const _0x19c76b=_0x31be5e;return this[_0x19c76b(0x16e)][_0x19c76b(0x11d)]();}get[_0x31be5e(0x373)](){const _0x24f1bc=_0x31be5e;return this[_0x24f1bc(0x26b)][_0x24f1bc(0x11d)]();}[_0x31be5e(0x110)](){const _0x4c6036=_0x31be5e;super[_0x4c6036(0x110)](),this[_0x4c6036(0x16e)][_0x4c6036(0x145)](new Map()),this[_0x4c6036(0x16e)]['complete'](),this[_0x4c6036(0x26b)][_0x4c6036(0x145)]([]),this[_0x4c6036(0x26b)][_0x4c6036(0x34f)]();}[_0x31be5e(0x31f)](){const _0xb89e19=_0x31be5e;this[_0xb89e19(0x100)]||(this[_0xb89e19(0x100)]=!0x0,this[_0xb89e19(0x1e6)]['sessionStatus$'][_0xb89e19(0x2c2)](d[_0xb89e19(0x357)](this[_0xb89e19(0x13f)]))[_0xb89e19(0x347)](_0xb6c3b2=>{const _0x17156e=_0xb89e19;_0xb6c3b2===u[_0x17156e(0x344)][_0x17156e(0x130)]?this[_0x17156e(0x310)]():this[_0x17156e(0x2d0)]();}),this[_0xb89e19(0x1e6)][_0xb89e19(0x11e)][_0xb89e19(0x2c2)](d[_0xb89e19(0x357)](this[_0xb89e19(0x13f)]))[_0xb89e19(0x347)](_0x2e7f27=>{const _0x87482a=_0xb89e19,_0xca3a1a=_0x2e7f27[_0x87482a(0x197)];_0xca3a1a===m[_0x87482a(0x1fd)]['UPDATE_CURSOR']&&this[_0x87482a(0x282)](_0x2e7f27),_0xca3a1a===m['CollaborationEvent']['USERS_LEAVE']&&this[_0x87482a(0x148)](_0x2e7f27);}),this[_0xb89e19(0x2bc)](this[_0xb89e19(0x204)][_0xb89e19(0x12b)](_0x4cb5c0=>{const _0x225251=_0xb89e19,_0x4aa17f=_0x4cb5c0[_0x225251(0x2f6)];_0x4aa17f!=null&&this[_0x225251(0x329)]&&_0x4cb5c0['id']===Y[_0x225251(0x259)]['id']&&_0x4aa17f[_0x225251(0x372)]===this[_0x225251(0x23e)]&&_0x4aa17f[_0x225251(0xfb)]===!0x1&&_0x4aa17f[_0x225251(0x2d8)][_0x225251(0x247)]>0x0&&this[_0x225251(0x160)](_0x4aa17f[_0x225251(0x2d8)]);})),this[_0xb89e19(0x152)][_0xb89e19(0x365)]['pipe'](d[_0xb89e19(0x357)](this[_0xb89e19(0x13f)]))['subscribe'](_0x58d1e2=>{const _0x1542f8=_0xb89e19;if((_0x58d1e2==null?void 0x0:_0x58d1e2['unitID'])!==this['unitID'])return;const _0x521586={'eventID':m[_0x1542f8(0x1fd)][_0x1542f8(0x2df)],'data':_0x58d1e2};this['_onCursorUpdate'](_0x521586);}),this['disposeWithMe'](this['_commandService'][_0xb89e19(0x12b)](_0x1b3e02=>{const _0x1cee45=_0xb89e19;if(_0x1b3e02['params']==null)return;const _0x359de4=_0x1b3e02[_0x1cee45(0x2f6)];if(_0x1b3e02['id']!==Y['RichTextEditingMutation']['id']||_0x359de4[_0x1cee45(0x372)]!==this['unitID'])return;const _0x33a5c9={'id':_0x1cee45(0x21c),'params':_0x359de4},_0x2dd1fb=this[_0x1cee45(0x159)];for(const [_0x25a331,_0x3ab9]of _0x2dd1fb){const _0x591dc4={'id':_0x1cee45(0x21c),'params':{'unitId':this[_0x1cee45(0x23e)],'actions':null,'textRanges':_0x3ab9[_0x1cee45(0x2d8)]}},_0x17612e=this['_transformService'][_0x1cee45(0x30c)](_0x33a5c9,_0x591dc4,!0x1);if(m[_0x1cee45(0x332)](_0x17612e))throw _0x17612e[_0x1cee45(0x302)];_0x2dd1fb[_0x1cee45(0x288)](_0x25a331,{..._0x3ab9,'ranges':_0x17612e['m2Prime'][_0x1cee45(0x2f6)][_0x1cee45(0x203)]});}queueMicrotask(()=>{const _0x4485cb=_0x1cee45;this[_0x4485cb(0x16e)][_0x4485cb(0x145)](_0x2dd1fb);});})));}[_0x31be5e(0x282)](_0x3e9fe5){const _0x2285e8=_0x31be5e;var _0x6e4b40,_0x584330;const {memberID:_0x144971,selection:_0x2762b5}=_0x3e9fe5[_0x2285e8(0x24e)],_0x3c4a75=Je(_0x2762b5),_0x2024bf=(_0x584330=(_0x6e4b40=this['_memberService'][_0x2285e8(0x358)](this['unitID'],_0x144971))==null?void 0x0:_0x6e4b40[_0x2285e8(0x1cf)])!=null?_0x584330:_0x2285e8(0x124),_0x2ee7c3={'color':this[_0x2285e8(0x279)]['assignAColorForMemberID'](_0x144971),'name':_0x2024bf,'ranges':_0x3c4a75},_0x2cd154=this['cursorInfo'];_0x2cd154[_0x2285e8(0x288)](_0x144971,_0x2ee7c3),this[_0x2285e8(0x16e)][_0x2285e8(0x145)](_0x2cd154);}[_0x31be5e(0x148)](_0x5b9120){const _0x2b6f67=_0x31be5e,{memberID:_0x43453d}=_0x5b9120[_0x2b6f67(0x24e)],_0x56b9e7=this[_0x2b6f67(0x159)];_0x56b9e7[_0x2b6f67(0x360)](_0x43453d),this['_cursorInfo$']['next'](_0x56b9e7);}['_toggleOnline'](){const _0x1958d1=_0x31be5e;var _0x226f79;if(this['_online']=!0x0,((_0x226f79=this[_0x1958d1(0x2e6)][_0x1958d1(0x2bf)]())==null?void 0x0:_0x226f79['getUnitId']())!==this[_0x1958d1(0x23e)])return;const _0x40e688=this['_injector']['get'](Y['DocSelectionManagerService'])[_0x1958d1(0x272)]();Array['isArray'](_0x40e688)&&_0x40e688[_0x1958d1(0x247)]>0x0&&this['_updateLocalCursor'](_0x40e688);}[_0x31be5e(0x2d0)](){this['_online']=!0x1;}};fe=Qe([L(0x2,a['Inject'](a['Injector'])),L(0x3,a[_0x31be5e(0x353)](me)),L(0x4,a[_0x31be5e(0x353)](u[_0x31be5e(0x106)])),L(0x5,a[_0x31be5e(0x353)](Ce)),L(0x6,m['ITransformService']),L(0x7,a[_0x31be5e(0x2da)]),L(0x8,a[_0x31be5e(0x252)])],fe);var st=Object[_0x31be5e(0x241)],it=(_0x361915,_0x2eabde,_0x1a2d06,_0xef3302)=>{for(var _0xd46f31=_0xef3302>0x1?void 0x0:_0xef3302?st(_0x2eabde,_0x1a2d06):_0x2eabde,_0x474c43=_0x361915['length']-0x1,_0x47ffc2;_0x474c43>=0x0;_0x474c43--)(_0x47ffc2=_0x361915[_0x474c43])&&(_0xd46f31=_0x47ffc2(_0xd46f31)||_0xd46f31);return _0xd46f31;},A=(_0x22c7b8,_0x52d16e)=>(_0x404c19,_0xf3744c)=>_0x52d16e(_0x404c19,_0xf3744c,_0x22c7b8);const nt=0x12c,rt=0x64,ot=()=>{let _0x175d78=[],_0x1bf10f=!0x1;return _0x47cf04=>{const _0x1c081c=_0x43d8;_0x175d78[_0x1c081c(0x150)](_0x47cf04),_0x1bf10f||(_0x1bf10f=!0x0,setTimeout(()=>{const _0x28eb30=_0x1c081c;_0x175d78[_0x28eb30(0x379)](_0x50f1ff=>_0x50f1ff()),_0x175d78=[],_0x1bf10f=!0x1;}));};};let Se=class extends a['RxDisposable']{constructor(_0x521e2f,_0x32256e,_0x3fc3a0,_0x26b43b,_0x4adece,_0x430672,_0x5d6ce2,_0x4be4d9){const _0x4ea727=_0x31be5e;super(),h(this,_0x4ea727(0x329),!0x1),h(this,_0x4ea727(0x100),!0x1),h(this,_0x4ea727(0x16e),new d[(_0x4ea727(0x221))](new Map())),h(this,_0x4ea727(0x113),this['_cursorInfo$'][_0x4ea727(0x2a0)]()),h(this,_0x4ea727(0x26b),new d[(_0x4ea727(0x221))]([])),h(this,'roomMembers$',this[_0x4ea727(0x26b)][_0x4ea727(0x2c2)](d['debounceTime'](nt))),h(this,_0x4ea727(0x160),a[_0x4ea727(0x13c)]((_0x146e42,_0x447966)=>{const _0x5972c2=_0x4ea727,_0x5eb517={'eventID':m[_0x5972c2(0x1fd)]['UPDATE_CURSOR'],'data':{'unitID':this[_0x5972c2(0x23e)],'memberID':this[_0x5972c2(0x1e6)]['getMemberID'](),'selection':Ee[_0x5972c2(0x229)](_0x146e42,_0x447966['range'])}};this[_0x5972c2(0x1e6)]['send'](_0x5eb517,this[_0x5972c2(0x23e)]);},rt)),(this[_0x4ea727(0x23e)]=_0x521e2f,this[_0x4ea727(0x1e6)]=_0x32256e,this[_0x4ea727(0x171)]=_0x3fc3a0,this[_0x4ea727(0x279)]=_0x26b43b,this['_memberService']=_0x4adece,this['_univerInstanceService']=_0x430672,this['_commandService']=_0x5d6ce2,this['_refRangeService']=_0x4be4d9);}get[_0x31be5e(0x159)](){const _0xc3b4ef=_0x31be5e;return this[_0xc3b4ef(0x16e)][_0xc3b4ef(0x11d)]();}get[_0x31be5e(0x373)](){const _0x19b8e5=_0x31be5e;return this[_0x19b8e5(0x26b)][_0x19b8e5(0x11d)]();}[_0x31be5e(0x110)](){const _0x299661=_0x31be5e;super[_0x299661(0x110)](),this[_0x299661(0x16e)][_0x299661(0x145)](new Map()),this[_0x299661(0x16e)][_0x299661(0x34f)](),this[_0x299661(0x26b)][_0x299661(0x145)]([]),this[_0x299661(0x26b)][_0x299661(0x34f)]();}['init'](){const _0x2684b2=_0x31be5e;this[_0x2684b2(0x100)]||(this[_0x2684b2(0x100)]=!0x0,this[_0x2684b2(0x1e6)][_0x2684b2(0x1af)]['pipe'](d[_0x2684b2(0x357)](this[_0x2684b2(0x13f)]))['subscribe'](_0x42f97a=>{const _0x126fd8=_0x2684b2;_0x42f97a===u[_0x126fd8(0x344)][_0x126fd8(0x130)]?this[_0x126fd8(0x310)]():this[_0x126fd8(0x2d0)]();}),this['_session']['event$'][_0x2684b2(0x2c2)](d[_0x2684b2(0x357)](this['dispose$']))[_0x2684b2(0x347)](_0x93f27f=>{const _0x3ccc56=_0x2684b2,_0x43b419=_0x93f27f[_0x3ccc56(0x197)];_0x43b419===m[_0x3ccc56(0x1fd)]['UPDATE_CURSOR']&&this[_0x3ccc56(0x282)](_0x93f27f),_0x43b419===m[_0x3ccc56(0x1fd)][_0x3ccc56(0x10e)]&&this[_0x3ccc56(0x148)](_0x93f27f);}),this[_0x2684b2(0x25a)](),this[_0x2684b2(0x2bc)](this['_commandService']['onCommandExecuted'](_0x47065d=>{const _0x3ca19c=_0x2684b2;if(this[_0x3ca19c(0x329)]&&_0x47065d['id']===g[_0x3ca19c(0x19a)]['id']&&_0x47065d[_0x3ca19c(0x2f6)][_0x3ca19c(0x372)]===this[_0x3ca19c(0x23e)]){const _0x58c78f=_0x47065d[_0x3ca19c(0x2f6)];this[_0x3ca19c(0x160)](_0x58c78f[_0x3ca19c(0x2dd)],_0x58c78f[_0x3ca19c(0x34a)][0x0]);}})));}['_onCursorUpdate'](_0x159beb){const _0x58ae0d=_0x31be5e;var _0xe25421,_0x5d8d42;const {memberID:_0x16f8ba,selection:_0x1408ed}=_0x159beb[_0x58ae0d(0x24e)],{sheetName:_0x48d896,range:_0x26d133}=Ee[_0x58ae0d(0x1e4)](_0x1408ed),_0x26708b={'name':(_0x5d8d42=(_0xe25421=this[_0x58ae0d(0x147)][_0x58ae0d(0x358)](this['unitID'],_0x16f8ba))==null?void 0x0:_0xe25421[_0x58ae0d(0x1cf)])!=null?_0x5d8d42:_0x58ae0d(0x124),'range':this[_0x58ae0d(0x18b)](_0x48d896,_0x26d133),'sheetID':_0x48d896,'color':this[_0x58ae0d(0x279)][_0x58ae0d(0x1ae)](_0x16f8ba),'selection':_0x1408ed},_0x41b811=this['cursorInfo'];_0x41b811['set'](_0x16f8ba,_0x26708b),this[_0x58ae0d(0x16e)][_0x58ae0d(0x145)](_0x41b811);}[_0x31be5e(0x148)](_0x388d02){const _0x3526c5=_0x31be5e,{memberID:_0x978f95}=_0x388d02[_0x3526c5(0x24e)],_0x5430ab=this['cursorInfo'];_0x5430ab[_0x3526c5(0x360)](_0x978f95),this[_0x3526c5(0x16e)][_0x3526c5(0x145)](_0x5430ab);}['_getMergeRange'](_0x5c4772,_0x494332){const _0x1329bf=_0x31be5e;var _0x1af50f,_0x42797c;const _0xce0de0=(_0x42797c=(_0x1af50f=this[_0x1329bf(0x2e6)]['getUniverSheetInstance'](this[_0x1329bf(0x23e)]))==null?void 0x0:_0x1af50f['getSheetBySheetId'](_0x5c4772))==null?void 0x0:_0x42797c[_0x1329bf(0x22f)]();return(_0xce0de0==null?void 0x0:_0xce0de0['find'](_0x555e84=>a['Rectangle'][_0x1329bf(0x1b1)](_0x555e84,_0x494332)))||_0x494332;}[_0x31be5e(0x25a)](){const _0x230a2c=_0x31be5e,_0xb879eb=new a['DisposableCollection'](),_0xd02f44=ot(),_0x4b07be=()=>{const _0x3e4a14=_0x43d8;_0xb879eb[_0x3e4a14(0x110)]();const _0xf98b28=(_0x28f7b7,_0x82d91c,_0x30e69a,_0x5ee0f7)=>{const _0x3f66f9=_0x3e4a14;let _0x1bb520=[];switch(_0x28f7b7['id']){case g[_0x3f66f9(0x1ca)][_0x3f66f9(0x196)]:{_0x1bb520=g[_0x3f66f9(0x2f3)](_0x28f7b7,_0x5ee0f7);break;}case g[_0x3f66f9(0x1ca)][_0x3f66f9(0x326)]:{_0x1bb520=g[_0x3f66f9(0x182)](_0x28f7b7,_0x5ee0f7);break;}case g[_0x3f66f9(0x1ca)][_0x3f66f9(0x167)]:{_0x1bb520=g[_0x3f66f9(0x23f)](_0x28f7b7,_0x5ee0f7);break;}case g[_0x3f66f9(0x1ca)][_0x3f66f9(0x1d6)]:{_0x1bb520=g[_0x3f66f9(0x351)](_0x28f7b7,_0x5ee0f7);break;}case g[_0x3f66f9(0x1ca)][_0x3f66f9(0x2f0)]:{_0x1bb520=g[_0x3f66f9(0x331)](_0x28f7b7,_0x5ee0f7);break;}case g[_0x3f66f9(0x1ca)]['InsertRowCommandId']:{_0x1bb520=g[_0x3f66f9(0x313)](_0x28f7b7,_0x5ee0f7);break;}case g[_0x3f66f9(0x1ca)]['MoveRangeCommandId']:{_0x1bb520=g[_0x3f66f9(0x29b)](_0x28f7b7,_0x5ee0f7);break;}case g[_0x3f66f9(0x1ca)][_0x3f66f9(0x179)]:{_0x1bb520=g[_0x3f66f9(0x341)](_0x28f7b7,_0x5ee0f7);break;}case g[_0x3f66f9(0x1ca)][_0x3f66f9(0x13a)]:{_0x1bb520=g[_0x3f66f9(0x2b5)](_0x28f7b7,_0x5ee0f7);break;}}const _0xe00572=g['runRefRangeMutations'](_0x1bb520,_0x5ee0f7),_0x2f9722=this[_0x3f66f9(0x159)][_0x3f66f9(0x16a)](_0x82d91c);if(_0x2f9722&&_0xe00572){const _0x176f0c={..._0x2f9722,'range':_0xe00572};this[_0x3f66f9(0x159)][_0x3f66f9(0x288)](_0x82d91c,_0x176f0c),_0xd02f44(()=>{const _0x1e2f6f=_0x3f66f9,_0x12078c=this[_0x1e2f6f(0x210)]['registerRefRange'](_0xe00572,_0x211c29=>(_0x12078c[_0x1e2f6f(0x110)](),_0xf98b28(_0x211c29,_0x82d91c,_0x30e69a,_0xe00572)));_0xb879eb['add'](_0x12078c);});}return{'redos':[],'undos':[]};};this[_0x3e4a14(0x159)][_0x3e4a14(0x379)]((_0x5ceb25,_0x54e1a7)=>{const _0x5cde7d=_0x3e4a14,{range:_0x1f10fb,sheetID:_0x837f22}=_0x5ceb25,_0x1fb855=this[_0x5cde7d(0x210)]['registerRefRange'](_0x1f10fb,_0x1b3191=>(_0x1fb855[_0x5cde7d(0x110)](),_0xf98b28(_0x1b3191,_0x54e1a7,_0x837f22,_0x1f10fb)));_0xb879eb[_0x5cde7d(0x1cc)](_0x1fb855);});};this['disposeWithMe'](a['toDisposable'](this[_0x230a2c(0x16e)]['subscribe'](()=>{_0x4b07be();})));}[_0x31be5e(0x310)](){const _0x370e98=_0x31be5e;var _0x25ff0b,_0x30f726;if(this['_online']=!0x0,((_0x25ff0b=this['_univerInstanceService']['getFocusedUnit']())==null?void 0x0:_0x25ff0b[_0x370e98(0x17b)]())!==this[_0x370e98(0x23e)])return;const _0x4799ba=(_0x30f726=this[_0x370e98(0x171)]['get'](g['SheetsSelectionsService'])['getCurrentSelections']())==null?void 0x0:_0x30f726[0x0],_0x40119b=this[_0x370e98(0x2e6)][_0x370e98(0x2e5)](a[_0x370e98(0x20d)]['UNIVER_SHEET'])['getActiveSheet']();_0x4799ba&&_0x40119b&&this['_updateLocalCursor'](_0x40119b[_0x370e98(0x1bc)](),_0x4799ba);}[_0x31be5e(0x2d0)](){const _0x5df159=_0x31be5e;this[_0x5df159(0x329)]=!0x1;}};Se=it([A(0x2,a[_0x31be5e(0x353)](a[_0x31be5e(0x21d)])),A(0x3,a[_0x31be5e(0x353)](me)),A(0x4,a[_0x31be5e(0x353)](u['MemberService'])),A(0x5,a[_0x31be5e(0x2da)]),A(0x6,a[_0x31be5e(0x252)]),A(0x7,a[_0x31be5e(0x353)](g['RefRangeService']))],Se);var at=Object[_0x31be5e(0x241)],ct=(_0x1bc316,_0x1ed397,_0x277169,_0x40296a)=>{const _0x3ff765=_0x31be5e;for(var _0x39e609=_0x40296a>0x1?void 0x0:_0x40296a?at(_0x1ed397,_0x277169):_0x1ed397,_0x3f94f2=_0x1bc316[_0x3ff765(0x247)]-0x1,_0x4edf1f;_0x3f94f2>=0x0;_0x3f94f2--)(_0x4edf1f=_0x1bc316[_0x3f94f2])&&(_0x39e609=_0x4edf1f(_0x39e609)||_0x39e609);return _0x39e609;},ie=(_0x294c20,_0x14714f)=>(_0x43377b,_0x4af68b)=>_0x14714f(_0x43377b,_0x4af68b,_0x294c20);let x=class extends a['RxDisposable']{constructor(_0x50dc56,_0x5bb7de,_0x965661){const _0x4a54b9=_0x31be5e;super(),h(this,_0x4a54b9(0x1cd),new Map()),h(this,_0x4a54b9(0x12f),new d[(_0x4a54b9(0x188))]()),(this[_0x4a54b9(0x2e6)]=_0x50dc56,this[_0x4a54b9(0x171)]=_0x5bb7de,this[_0x4a54b9(0x314)]=_0x965661,this['_init']());}[_0x31be5e(0x110)](){const _0x430cf1=_0x31be5e;super[_0x430cf1(0x110)](),this[_0x430cf1(0x12f)][_0x430cf1(0x34f)](),this[_0x430cf1(0x1cd)][_0x430cf1(0x379)](_0x1549c6=>_0x1549c6[_0x430cf1(0x110)]());}[_0x31be5e(0x2e0)](_0x3ddcf3){const _0x411bc3=_0x31be5e;return this['_entities'][_0x411bc3(0x31e)](_0x3ddcf3)?this[_0x411bc3(0x1cd)][_0x411bc3(0x16a)](_0x3ddcf3)[_0x411bc3(0x113)]:this[_0x411bc3(0x12f)][_0x411bc3(0x2c2)](d[_0x411bc3(0x2e3)](_0x5eb2f6=>_0x5eb2f6[_0x411bc3(0x23e)]===_0x3ddcf3),d[_0x411bc3(0x1b6)](_0x28bf0c=>_0x28bf0c[_0x411bc3(0x113)]));}['_init'](){const _0x3febf8=_0x31be5e;this['_univerInstanceService'][_0x3febf8(0x2e4)](a[_0x3febf8(0x20d)]['UNIVER_SHEET'])[_0x3febf8(0x2c2)](d['takeUntil'](this['dispose$']))[_0x3febf8(0x347)](async _0x337918=>{const _0x2c1007=_0x3febf8,_0x42118c=_0x337918['getUnitId'](),_0x26db0b=await this[_0x2c1007(0x1b3)](_0x42118c);this['_entityInit$'][_0x2c1007(0x145)](_0x26db0b),this[_0x2c1007(0x1cd)][_0x2c1007(0x288)](_0x42118c,_0x26db0b);}),this['_univerInstanceService']['getTypeOfUnitAdded$'](a[_0x3febf8(0x20d)]['UNIVER_DOC'])[_0x3febf8(0x2c2)](d[_0x3febf8(0x357)](this[_0x3febf8(0x13f)]))['pipe'](d['filter'](_0x282002=>!_0x282002[_0x3febf8(0x17b)]()[_0x3febf8(0x218)]('__')))[_0x3febf8(0x347)](async _0x398998=>{const _0x405af9=_0x3febf8,_0x58a5fb=_0x398998[_0x405af9(0x17b)](),_0x358ca4=await this[_0x405af9(0x305)](_0x58a5fb);this[_0x405af9(0x12f)]['next'](_0x358ca4),this[_0x405af9(0x1cd)]['set'](_0x58a5fb,_0x358ca4);}),d[_0x3febf8(0x255)](this[_0x3febf8(0x2e6)]['getTypeOfUnitDisposed$'](a[_0x3febf8(0x20d)][_0x3febf8(0x309)]),this[_0x3febf8(0x2e6)][_0x3febf8(0x231)](a[_0x3febf8(0x20d)][_0x3febf8(0x2bd)]))[_0x3febf8(0x2c2)](d[_0x3febf8(0x357)](this[_0x3febf8(0x13f)]))['subscribe'](_0x38b801=>{const _0x4793b7=_0x3febf8,_0x162c43=_0x38b801[_0x4793b7(0x17b)](),_0x13e79e=this['_entities'][_0x4793b7(0x16a)](_0x162c43);_0x13e79e&&(_0x13e79e[_0x4793b7(0x110)](),this[_0x4793b7(0x1cd)][_0x4793b7(0x360)](_0x162c43));});}async[_0x31be5e(0x1b3)](_0x27df3b){const _0x283f3f=_0x31be5e,_0x233fde=await this[_0x283f3f(0x314)][_0x283f3f(0x2a7)](_0x27df3b),_0x15d190=this['_injector']['createInstance'](Se,_0x27df3b,_0x233fde);return _0x15d190['init'](),_0x15d190;}async[_0x31be5e(0x305)](_0x389369){const _0x293b5b=_0x31be5e,_0x2544d5=await this[_0x293b5b(0x314)][_0x293b5b(0x2a7)](_0x389369),_0x1fd7ae=this[_0x293b5b(0x171)]['createInstance'](fe,_0x389369,_0x2544d5);return _0x1fd7ae[_0x293b5b(0x31f)](),_0x1fd7ae;}};x=ct([ie(0x0,a[_0x31be5e(0x2da)]),ie(0x1,a[_0x31be5e(0x353)](a[_0x31be5e(0x21d)])),ie(0x2,a[_0x31be5e(0x353)](u[_0x31be5e(0x22b)]))],x);const K=0x14,Re=0xc8,ne=0x4,lt=0x5;function _t(_0x353ef1,_0x1f94e0){const _0x2c978f=_0x31be5e;let {radius:_0x237a9a,width:_0x38fb51,height:_0x387dce}=_0x1f94e0;_0x237a9a=_0x237a9a!=null?_0x237a9a:0x0,_0x38fb51=_0x38fb51!=null?_0x38fb51:0x1e,_0x387dce=_0x387dce!=null?_0x387dce:0x1e;let _0x1c683b=0x0,_0x34d2be=0x0,_0x246c5b=0x0;_0x1c683b=_0x34d2be=_0x246c5b=Math[_0x2c978f(0x2cc)](_0x237a9a,_0x38fb51/0x2,_0x387dce/0x2),_0x353ef1[_0x2c978f(0x140)](),_0x353ef1[_0x2c978f(0x217)](_0x1c683b,0x0),_0x353ef1[_0x2c978f(0x2aa)](_0x38fb51-_0x34d2be,0x0),_0x353ef1[_0x2c978f(0x134)](_0x38fb51-_0x34d2be,_0x34d2be,_0x34d2be,Math['PI']*0x3/0x2,0x0,!0x1),_0x353ef1[_0x2c978f(0x2aa)](_0x38fb51,_0x387dce-_0x246c5b),_0x353ef1[_0x2c978f(0x134)](_0x38fb51-_0x246c5b,_0x387dce-_0x246c5b,_0x246c5b,0x0,Math['PI']/0x2,!0x1),_0x353ef1[_0x2c978f(0x2aa)](0x0,_0x387dce),_0x353ef1[_0x2c978f(0x2aa)](0x0,_0x1c683b),_0x353ef1[_0x2c978f(0x134)](_0x1c683b,_0x1c683b,_0x1c683b,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x353ef1[_0x2c978f(0x176)](),_0x1f94e0[_0x2c978f(0x2c1)]&&(_0x353ef1[_0x2c978f(0x2ed)](),_0x353ef1['fillStyle']=_0x1f94e0[_0x2c978f(0x2c1)],_0x1f94e0[_0x2c978f(0x352)]===_0x2c978f(0x2bb)?_0x353ef1[_0x2c978f(0x2c1)](_0x2c978f(0x2bb)):_0x353ef1['fill'](),_0x353ef1[_0x2c978f(0x206)]());}class ee extends p['Shape']{constructor(_0x2cdf97,_0x142ece){const _0x254271=_0x31be5e;super(_0x2cdf97,_0x142ece),h(this,'color'),h(this,_0x254271(0x27b)),(this[_0x254271(0x260)]=_0x142ece==null?void 0x0:_0x142ece[_0x254271(0x260)],this[_0x254271(0x27b)]=_0x142ece==null?void 0x0:_0x142ece['text']);}static['drawWith'](_0x3a8237,_0x34a456){const _0x58162c=_0x31be5e,{text:_0x36140a,color:_0x4f705b}=_0x34a456;_0x3a8237['save'](),_0x3a8237[_0x58162c(0x2e8)]=_0x58162c(0x2cd);const _0x35c80e=_0x3a8237[_0x58162c(0x238)](_0x36140a)[_0x58162c(0x1e8)],_0x3f97a2=Math[_0x58162c(0x2cc)](_0x35c80e+0x2*ne,Re);_t(_0x3a8237,{'height':K,'radius':0x4,'width':_0x3f97a2,'fill':_0x4f705b}),_0x3a8237[_0x58162c(0x15c)]=_0x58162c(0x2fb);const _0x411d6c=ne,_0x209568=K-lt,_0x2752c0=Re-0x2*ne;if(_0x35c80e>_0x2752c0){let _0x3b8f0e='',_0x3dbe6b=0x0;for(const _0x6643bc of _0x36140a){const _0x1681f3=_0x3a8237[_0x58162c(0x238)](_0x6643bc)['width'];if(_0x3dbe6b+_0x1681f3<=_0x2752c0-_0x3a8237[_0x58162c(0x238)](_0x58162c(0x121))['width'])_0x3b8f0e+=_0x6643bc,_0x3dbe6b+=_0x1681f3;else{_0x3b8f0e+=_0x58162c(0x121);break;}}_0x3a8237[_0x58162c(0x10f)](_0x3b8f0e,_0x411d6c,_0x209568);}else _0x3a8237[_0x58162c(0x10f)](_0x36140a,_0x411d6c,_0x209568);_0x3a8237['restore']();}['_draw'](_0xdd02ce){const _0x2243f2=_0x31be5e;ee[_0x2243f2(0x1fe)](_0xdd02ce,this);}}const re=_0x31be5e(0x169),ht=_0x31be5e(0x173),ut=_0x31be5e(0x1f3),k=0x6,dt=1.5,oe=0x4,ft=1.5,St=_0x31be5e(0x293);class De{constructor(_0x1888ad,_0x55432f,_0x4fa408,_0x575f0b){const _0x37b46a=_0x31be5e;h(this,'_shapes',[]),h(this,_0x37b46a(0x2d3),null),h(this,_0x37b46a(0x278),null),h(this,'_anchorDot',null),h(this,_0x37b46a(0x1f4),null),h(this,_0x37b46a(0x14a),null),(this[_0x37b46a(0x324)]=_0x1888ad,this['_scene']=_0x55432f,this['_docSkeleton']=_0x4fa408,this[_0x37b46a(0x33d)]=_0x575f0b,this[_0x37b46a(0x2fd)]());}set[_0x31be5e(0x15e)](_0x3fee5a){const _0x5cf8a3=_0x31be5e;_0x3fee5a?(this[_0x5cf8a3(0x154)]&&this[_0x5cf8a3(0x154)][_0x5cf8a3(0x1ef)](),this[_0x5cf8a3(0x278)]&&this[_0x5cf8a3(0x278)]['show']()):(this[_0x5cf8a3(0x154)]&&this[_0x5cf8a3(0x154)][_0x5cf8a3(0x1f6)](),this[_0x5cf8a3(0x278)]&&this[_0x5cf8a3(0x278)][_0x5cf8a3(0x1ef)]());}[_0x31be5e(0x110)](){const _0x37a524=_0x31be5e;for(const _0x461461 of this[_0x37a524(0x15f)])_0x461461['dispose']();this[_0x37a524(0x278)]&&this[_0x37a524(0x278)][_0x37a524(0x110)](),this[_0x37a524(0x154)]&&this[_0x37a524(0x154)][_0x37a524(0x110)](),this[_0x37a524(0x2d3)]&&this['_anchor'][_0x37a524(0x110)](),this['_eventUnsubscribe']&&this[_0x37a524(0x14a)]();}[_0x31be5e(0x2fd)](){const _0x411c08=_0x31be5e;var _0x47e45f;const {_docSkeleton:_0x4c0598,_document:_0x1da8ab}=this,{color:_0x14190a,name:_0x51035d,ranges:_0x23f24b}=this[_0x411c08(0x324)],_0xb25ec1=_0x1da8ab[_0x411c08(0x1c6)](),{docsLeft:_0x14feb5,docsTop:_0x426712}=_0xb25ec1,_0x2579f8=new b[(_0x411c08(0x29e))](_0xb25ec1,_0x4c0598);for(const {startOffset:_0x4b2ae3,endOffset:_0x4e382e,rangeType:_0x3ad01c,segmentId:_0x5e5887,segmentPage:_0x6b5717,collapsed:_0xcd70c9,isActive:_0x113435}of _0x23f24b){const _0x52785a=_0x4c0598[_0x411c08(0x2be)](_0x4b2ae3,!0x0,_0x5e5887,_0x6b5717);let _0x4303ed=_0x4c0598[_0x411c08(0x2be)](_0x4e382e,!0x0,_0x5e5887,_0x6b5717);if(_0x4303ed==null&&(_0x4303ed=_0x4c0598['findNodePositionByCharIndex'](_0x4e382e-0x1,!0x1,_0x5e5887,_0x6b5717)),_0x113435){const {contentBoxPointGroup:_0x14a792}=_0x2579f8[_0x411c08(0x27a)](_0x4303ed,_0x4303ed);if(_0x14a792[_0x411c08(0x247)]===0x0)continue;this[_0x411c08(0x14e)](_0x14190a,_0x14a792,_0x14feb5,_0x426712,_0x51035d),this[_0x411c08(0x14a)]=this[_0x411c08(0x18c)]();}if(_0x52785a&&_0x4303ed){if(_0x3ad01c===a[_0x411c08(0x1d8)][_0x411c08(0x292)]){const _0x731b8a=new b[(_0x411c08(0x1db))](_0xb25ec1,_0x4c0598),{pointGroup:_0x39ce63}=(_0x47e45f=_0x731b8a['getRangePointData'](_0x52785a,_0x4303ed))!=null?_0x47e45f:{};if(_0x39ce63==null||_0x39ce63['length']===0x0)continue;this['_drawRectRange'](_0x14190a,_0x39ce63,_0x14feb5,_0x426712);}else{if(!_0xcd70c9){const {borderBoxPointGroup:_0x5550b0}=_0x2579f8[_0x411c08(0x27a)](_0x52785a,_0x4303ed);if(_0x5550b0['length']===0x0)continue;this[_0x411c08(0x307)](_0x14190a,_0x5550b0,_0x14feb5,_0x426712);}}}}}[_0x31be5e(0x14e)](_0x2f382c,_0x43e453,_0x14ded4,_0x30809b,_0x7d2eba){const _0x2f6f5e=_0x31be5e,_0x5926f1=this[_0x2f6f5e(0x267)](_0x43e453),{left:_0x7579a2,top:_0x446fd9,height:_0x4bc7b9}=_0x5926f1,_0x2afa6b=this[_0x2f6f5e(0x1d7)](),_0x4c9f7b=ft/_0x2afa6b,_0x2f1741=new p['Rect'](re+a[_0x2f6f5e(0x294)]['generateRandomId'](k),{'left':_0x7579a2+_0x14ded4-_0x4c9f7b,'top':_0x446fd9+_0x30809b,'height':_0x4bc7b9,'width':dt,'fill':_0x2f382c||p[_0x2f6f5e(0x253)](a[_0x2f6f5e(0x1a2)][_0x2f6f5e(0x15d)],0x0),'strokeWidth':_0x4c9f7b,'stroke':St,'evented':!0x0});this[_0x2f6f5e(0x2d3)]=_0x2f1741,this[_0x2f6f5e(0x237)][_0x2f6f5e(0x21a)](_0x2f1741,b[_0x2f6f5e(0x317)]);const _0x845e95=new p['Rect'](re+a[_0x2f6f5e(0x294)][_0x2f6f5e(0x12e)](k),{'left':_0x7579a2+_0x14ded4-_0x4c9f7b,'top':_0x446fd9+_0x30809b-oe/0x2,'height':oe,'width':oe,'fill':_0x2f382c||p['getColor'](a[_0x2f6f5e(0x1a2)][_0x2f6f5e(0x15d)],0x0),'strokeWidth':0x0,'stroke':_0x2f382c||p[_0x2f6f5e(0x253)](a['COLORS']['black'],0x0),'evented':!0x1});this[_0x2f6f5e(0x154)]=_0x845e95,this[_0x2f6f5e(0x237)][_0x2f6f5e(0x21a)](_0x845e95,b[_0x2f6f5e(0x317)]);const _0x338a79=new ee(re+a[_0x2f6f5e(0x294)][_0x2f6f5e(0x12e)](k),{'left':_0x7579a2+_0x14ded4-_0x4c9f7b,'top':_0x446fd9+_0x30809b-K,'text':_0x7d2eba,'color':_0x2f382c});this[_0x2f6f5e(0x278)]=_0x338a79,this['_scene'][_0x2f6f5e(0x21a)](_0x338a79,b[_0x2f6f5e(0x317)]),this[_0x2f6f5e(0x15e)]=!0x1;}[_0x31be5e(0x18c)](){const _0x32c505=_0x31be5e,_0xee0872=this[_0x32c505(0x2d3)][_0x32c505(0x242)][_0x32c505(0x25f)](()=>{const _0x3ec319=_0x32c505;this[_0x3ec319(0x15e)]=!0x0;}),_0x5b46bd=this['_anchor'][_0x32c505(0x193)][_0x32c505(0x25f)](()=>{const _0x238eec=_0x32c505;this[_0x238eec(0x1f4)]&&clearTimeout(this['_hideTimer']),this[_0x238eec(0x1f4)]=setTimeout(()=>{this['_hover']=!0x1;},0x7d0);});return()=>{const _0x54415c=_0x32c505;_0xee0872['unsubscribe'](),_0x5b46bd[_0x54415c(0x258)]();};}[_0x31be5e(0x307)](_0x2b439a,_0x4f002c,_0x3d6b28,_0x5ed51a){const _0x1917fb=_0x31be5e,_0x5dba5f=new a['ColorKit'](_0x2b439a)[_0x1917fb(0x1da)](0.2)[_0x1917fb(0x213)](),_0x305db0=new p[(_0x1917fb(0x211))](ht+a[_0x1917fb(0x294)]['generateRandomId'](k),{'pointsGroup':_0x4f002c,'fill':_0x5dba5f||p[_0x1917fb(0x253)](a['COLORS'][_0x1917fb(0x15d)],0.2),'left':_0x3d6b28,'top':_0x5ed51a,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x1917fb(0x15f)][_0x1917fb(0x150)](_0x305db0),this[_0x1917fb(0x237)][_0x1917fb(0x21a)](_0x305db0,b[_0x1917fb(0x317)]);}[_0x31be5e(0x1ac)](_0x8433db,_0x4d5bf4,_0x427ae7,_0xf26d29){const _0x280110=_0x31be5e,_0x4a7c32=new a[(_0x280110(0x2cb))](_0x8433db)[_0x280110(0x1da)](0.2)[_0x280110(0x213)](),_0x33a8be=new p[(_0x280110(0x211))](ut+a['Tools'][_0x280110(0x12e)](k),{'pointsGroup':_0x4d5bf4,'fill':_0x4a7c32||p[_0x280110(0x253)](a[_0x280110(0x1a2)][_0x280110(0x15d)],0.2),'left':_0x427ae7,'top':_0xf26d29,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x280110(0x15f)][_0x280110(0x150)](_0x33a8be),this[_0x280110(0x237)][_0x280110(0x21a)](_0x33a8be,b[_0x280110(0x317)]);}[_0x31be5e(0x267)](_0x84123b){const _0x393911=_0x84123b[0x0],_0x142d22=_0x393911[0x0],_0x270ffd=_0x393911[0x2],{x:_0x2e1da8,y:_0x1ebd30}=_0x142d22,{x:_0x418ede,y:_0x203bff}=_0x270ffd;return{'left':_0x2e1da8,'top':_0x1ebd30,'width':_0x418ede-_0x2e1da8,'height':_0x203bff-_0x1ebd30};}['_getScale'](){const _0x432341=_0x31be5e,{scaleX:_0x5f3657,scaleY:_0x368fa1}=this[_0x432341(0x237)][_0x432341(0x2f9)]();return Math[_0x432341(0x29f)](_0x5f3657,_0x368fa1);}}var It=Object[_0x31be5e(0x241)],vt=(_0x179742,_0x1ce1f4,_0x39c1c0,_0x3d81f0)=>{const _0x1a54b1=_0x31be5e;for(var _0x55dc34=_0x3d81f0>0x1?void 0x0:_0x3d81f0?It(_0x1ce1f4,_0x39c1c0):_0x1ce1f4,_0xddd672=_0x179742[_0x1a54b1(0x247)]-0x1,_0x460663;_0xddd672>=0x0;_0xddd672--)(_0x460663=_0x179742[_0xddd672])&&(_0x55dc34=_0x460663(_0x55dc34)||_0x55dc34);return _0x55dc34;},W=(_0x2f1d27,_0x3417b0)=>(_0xd990b,_0x5e6568)=>_0x3417b0(_0xd990b,_0x5e6568,_0x2f1d27);let Ie=class extends a[_0x31be5e(0x262)]{constructor(_0x54eedc,_0x222e58,_0x1b5980,_0x3d75bd,_0x4ef5c0){const _0x3c25be=_0x31be5e;super(),h(this,_0x3c25be(0x2ba),[]),h(this,_0x3c25be(0x33b),[]),(this[_0x3c25be(0x215)]=_0x54eedc,this['_docSkeletonManagerService']=_0x222e58,this[_0x3c25be(0x343)]=_0x1b5980,this['_commandService']=_0x3d75bd,this[_0x3c25be(0xfd)]=_0x4ef5c0,this[_0x3c25be(0x100)]());}[_0x31be5e(0x100)](){const _0x56a4df=_0x31be5e,_0xaa1964=this[_0x56a4df(0x215)][_0x56a4df(0x372)],_0xd6b6d7=this[_0x56a4df(0x117)];this[_0x56a4df(0x2bc)](d[_0x56a4df(0x208)]([this[_0x56a4df(0x343)][_0x56a4df(0x2e0)](_0xaa1964),this[_0x56a4df(0xfd)][_0x56a4df(0x1f9)]])['pipe']($[_0x56a4df(0x2f1)](([_0x4b4b46,_0x78e072])=>({'skeleton':_0xd6b6d7['getSkeleton'](),'cursors':[..._0x4b4b46['values']()][_0x56a4df(0x1d2)](_0x138d4=>({..._0x138d4,'color':this['_themeService'][_0x56a4df(0x129)](_0x138d4[_0x56a4df(0x260)])}))})))[_0x56a4df(0x347)](_0x509fbc=>{const _0x5c6b37=_0x56a4df;if(this['_removeCollabCursors'](),_0x509fbc){const {skeleton:_0x217bee,cursors:_0x44ab18}=_0x509fbc;this[_0x5c6b37(0x261)](_0x217bee,_0x44ab18);}})),this[_0x56a4df(0x31b)](),this['_initCommandExecutedListener']();}['_updateCollabCursors'](_0x4ec1e3,_0x128d2f){const _0xb0e7ac=_0x31be5e,{scene:_0x210905,mainComponent:_0x569493}=this[_0xb0e7ac(0x215)],_0x1f05eb=_0x128d2f['map'](_0x270083=>new De(_0x270083,_0x210905,_0x4ec1e3,_0x569493));this[_0xb0e7ac(0x2ba)]=_0x1f05eb,this[_0xb0e7ac(0x33b)]=_0x128d2f;}[_0x31be5e(0x35d)](){const _0x52ecb7=_0x31be5e;this[_0x52ecb7(0x16c)]();const {scene:_0x2f7e7f,mainComponent:_0xccc64d}=this[_0x52ecb7(0x215)],_0x4e9a01=this['_docSkeletonManagerService'][_0x52ecb7(0x1f0)](),_0x4ddd58=this['_cursors'][_0x52ecb7(0x2f1)](_0x4a4f12=>new De(_0x4a4f12,_0x2f7e7f,_0x4e9a01,_0xccc64d));this[_0x52ecb7(0x2ba)]=_0x4ddd58;}[_0x31be5e(0x16c)](){const _0x4d62cc=_0x31be5e;this['_cursorShapes'][_0x4d62cc(0x379)](_0x3df7f4=>_0x3df7f4[_0x4d62cc(0x110)]()),this[_0x4d62cc(0x2ba)]=[];}[_0x31be5e(0x30d)](){const _0x146e2b=_0x31be5e,_0x1a576d=[b[_0x146e2b(0x163)]['id']];this['disposeWithMe'](this[_0x146e2b(0x204)][_0x146e2b(0x12b)](_0x6eba6e=>{const _0x17314c=_0x146e2b;_0x1a576d[_0x17314c(0x13b)](_0x6eba6e['id'])&&_0x6eba6e[_0x17314c(0x2f6)][_0x17314c(0x372)]===this[_0x17314c(0x215)]['unitId']&&this[_0x17314c(0x35d)]();}));}[_0x31be5e(0x31b)](){const _0x214f82=_0x31be5e;this[_0x214f82(0x2bc)](a['fromEventSubject'](this[_0x214f82(0x215)][_0x214f82(0x308)]['onTransformChange$'])[_0x214f82(0x2c2)]($[_0x214f82(0x2e3)](_0x4daa2d=>_0x4daa2d[_0x214f82(0x200)]===p['TRANSFORM_CHANGE_OBSERVABLE_TYPE']['resize']),$[_0x214f82(0x1ee)](0x10))[_0x214f82(0x347)](()=>{const _0x565d22=_0x214f82;this[_0x565d22(0x35d)]();}));}};Ie=vt([W(0x1,a[_0x31be5e(0x353)](Y[_0x31be5e(0x166)])),W(0x2,a['Inject'](x)),W(0x3,a[_0x31be5e(0x252)]),W(0x4,a[_0x31be5e(0x353)](a[_0x31be5e(0x133)]))],Ie);const gt=0x1,mt=1.5;class Pe extends p['Shape']{constructor(_0x62eb81,_0x1e2ba7){const _0x5eb0f0=_0x31be5e;super(_0x62eb81,_0x1e2ba7),h(this,_0x5eb0f0(0x1bf)),h(this,_0x5eb0f0(0x34b),!0x1),h(this,_0x5eb0f0(0x333)),h(this,'_name',''),h(this,_0x5eb0f0(0x26a),_0x5eb0f0(0x24b)),h(this,'_backgroundColor'),(_0x1e2ba7&&this[_0x5eb0f0(0x295)](_0x1e2ba7),this[_0x5eb0f0(0x242)][_0x5eb0f0(0x25f)](()=>this[_0x5eb0f0(0x295)]({'hovered':!0x0})),this[_0x5eb0f0(0x193)][_0x5eb0f0(0x25f)](()=>this['setShapeProps']({'hovered':!0x1})));}[_0x31be5e(0x295)](_0x1d6291){const _0x484b7d=_0x31be5e;var _0x782422,_0x260ca6,_0x43d2c8,_0x1f2902,_0x523c63,_0x5628d1;this[_0x484b7d(0x1bf)]=(_0x782422=_0x1d6291[_0x484b7d(0x260)])!=null?_0x782422:this['_color'],this[_0x484b7d(0x34b)]=(_0x260ca6=_0x1d6291[_0x484b7d(0x18f)])!=null?_0x260ca6:this[_0x484b7d(0x34b)],this[_0x484b7d(0x333)]=(_0x43d2c8=_0x1d6291[_0x484b7d(0xf9)])!=null?_0x43d2c8:this[_0x484b7d(0x333)],this[_0x484b7d(0x32e)]=(_0x1f2902=_0x1d6291[_0x484b7d(0x1cf)])!=null?_0x1f2902:this['_name'],this['_labelPosition']=(_0x523c63=_0x1d6291[_0x484b7d(0x371)])!=null?_0x523c63:this[_0x484b7d(0x26a)],this[_0x484b7d(0x21b)]=(_0x5628d1=_0x1d6291[_0x484b7d(0x22e)])!=null?_0x5628d1:this[_0x484b7d(0x21b)],this[_0x484b7d(0x25e)]({'width':_0x1d6291[_0x484b7d(0x1e8)],'height':_0x1d6291[_0x484b7d(0x368)]});}[_0x31be5e(0x19f)](_0x2fedc8){const _0x37aa27=_0x31be5e,{row:_0x21a385,column:_0x3eaa01}=_0x2fedc8;if(_0x21a385>=this['_range']['startRow']&&_0x21a385<=this[_0x37aa27(0x333)]['endRow']&&_0x3eaa01>=this['_range'][_0x37aa27(0x235)]&&_0x3eaa01<=this[_0x37aa27(0x333)]['endColumn']){this[_0x37aa27(0x295)]({'hovered':!0x0});return;}this[_0x37aa27(0x295)]({'hovered':!0x1});}[_0x31be5e(0x1ea)](_0x2cd743){return!0x1;}[_0x31be5e(0x1c2)](_0x3d1d2f){const _0x358b24=_0x31be5e;p['Rect'][_0x358b24(0x1fe)](_0x3d1d2f,{'width':this[_0x358b24(0x1e8)],'height':this[_0x358b24(0x368)],'strokeWidth':mt,'stroke':this['_color'],'evented':!0x1,'fill':this[_0x358b24(0x21b)]}),this['_hovered']&&(_0x3d1d2f[_0x358b24(0x2ed)](),_0x3d1d2f['transform'](0x1,0x0,0x0,0x1,this[_0x358b24(0x1e8)],this['_labelPosition']==='bottom'?0x0:-0x14),ee[_0x358b24(0x1fe)](_0x3d1d2f,{'text':this[_0x358b24(0x32e)],'color':this[_0x358b24(0x1bf)]}),_0x3d1d2f[_0x358b24(0x206)]());}}var Ct=Object['getOwnPropertyDescriptor'],pt=(_0x32b44d,_0x8a5a32,_0x5aa95b,_0x1f2347)=>{const _0x514e35=_0x31be5e;for(var _0x1f53db=_0x1f2347>0x1?void 0x0:_0x1f2347?Ct(_0x8a5a32,_0x5aa95b):_0x8a5a32,_0x543d4c=_0x32b44d[_0x514e35(0x247)]-0x1,_0x346249;_0x543d4c>=0x0;_0x543d4c--)(_0x346249=_0x32b44d[_0x543d4c])&&(_0x1f53db=_0x346249(_0x1f53db)||_0x1f53db);return _0x1f53db;},ae=(_0x4f222c,_0x5751fa)=>(_0x49e892,_0x976133)=>_0x5751fa(_0x49e892,_0x976133,_0x4f222c);const bt=0x1389;let ve=class extends a[_0x31be5e(0x262)]{constructor(_0x54777a,_0x28efa0,_0x4c3a57,_0x1ec288){const _0x30b93b=_0x31be5e;super(),h(this,_0x30b93b(0x33b),new Set()),h(this,_0x30b93b(0x30b),null),(this[_0x30b93b(0x215)]=_0x54777a,this[_0x30b93b(0x2d2)]=_0x28efa0,this[_0x30b93b(0x343)]=_0x4c3a57,this[_0x30b93b(0xfd)]=_0x1ec288,this[_0x30b93b(0x100)]());}[_0x31be5e(0x100)](){const _0x5a02de=_0x31be5e;this[_0x5a02de(0x2d2)]['currentSkeleton$'][_0x5a02de(0x2c2)]($[_0x5a02de(0x357)](this[_0x5a02de(0x13f)]),$[_0x5a02de(0x1b6)](_0x48e91d=>{const _0x427fde=_0x5a02de;if(_0x48e91d){const _0x2bd73b=_0x48e91d[_0x427fde(0x336)];return d['combineLatest'](this[_0x427fde(0x343)][_0x427fde(0x2e0)](this[_0x427fde(0x215)][_0x427fde(0x372)]),this[_0x427fde(0xfd)][_0x427fde(0x1f9)])[_0x427fde(0x2c2)]($[_0x427fde(0x2f1)](([_0x30f1ee,_0x33f42b])=>{const _0x1a5474=_0x427fde,_0x196a20=new Map();return _0x30f1ee[_0x1a5474(0x379)]((_0x1bc733,_0x2a573e)=>{const _0x2ff78f=_0x1a5474;if(_0x1bc733['sheetID']===_0x2bd73b){const _0x446c5d={..._0x1bc733};_0x446c5d[_0x2ff78f(0x260)]=this[_0x2ff78f(0xfd)][_0x2ff78f(0x129)](_0x1bc733[_0x2ff78f(0x260)]),_0x196a20['set'](_0x2a573e,_0x446c5d);}}),{'skeleton':_0x48e91d,'cursors':_0x196a20};}));}return d['of']({'skeleton':null,'cursors':new Map()});}))[_0x5a02de(0x347)](({skeleton:_0x50d9b4,cursors:_0x16fcaa})=>{const _0x5163c0=_0x5a02de;this[_0x5163c0(0x16c)](),_0x50d9b4&&this[_0x5163c0(0x261)](_0x50d9b4,_0x16fcaa);}),this[_0x5a02de(0x2d2)][_0x5a02de(0x244)][_0x5a02de(0x347)](_0x50d23c=>{const _0x4328dd=_0x5a02de;if(_0x50d23c==null)return;const {skeleton:_0x13aad6}=_0x50d23c,{scene:_0x36b786}=this[_0x4328dd(0x215)];_0x36b786[_0x4328dd(0x1b7)][_0x4328dd(0x25f)](a[_0x4328dd(0x13c)](_0x3f894f=>{const _0x447bc2=_0x4328dd;var _0x3cd617,_0x1edd62;const {offsetX:_0x12b546,offsetY:_0x4585aa}=_0x3f894f,{x:_0x1b180e,y:_0x803cef}=_0x36b786[_0x447bc2(0x17a)](p[_0x447bc2(0x1e5)][_0x447bc2(0x151)]([_0x12b546,_0x4585aa])),{scaleX:_0xd62132,scaleY:_0x1489a1}=_0x36b786['getAncestorScale'](),_0x34daf1=_0x36b786['getViewport'](p[_0x447bc2(0x35a)][_0x447bc2(0x105)]),_0x1073b8=_0x36b786['getVpScrollXYInfoByPosToVp'](p[_0x447bc2(0x1e5)][_0x447bc2(0x151)]([_0x1b180e,_0x803cef]),_0x34daf1),_0x2265ab=_0x13aad6[_0x447bc2(0x162)](_0x12b546,_0x4585aa,_0xd62132,_0x1489a1,_0x1073b8);((_0x3cd617=this[_0x447bc2(0x30b)])==null?void 0x0:_0x3cd617[_0x447bc2(0x319)])===_0x2265ab[_0x447bc2(0x319)]&&((_0x1edd62=this[_0x447bc2(0x30b)])==null?void 0x0:_0x1edd62[_0x447bc2(0x161)])===_0x2265ab[_0x447bc2(0x161)]||this['_cursors']['forEach'](_0x13ff35=>{const _0x1bf1a3=_0x447bc2;_0x13ff35[_0x1bf1a3(0x19f)](_0x2265ab);});},0x64));});}[_0x31be5e(0x261)](_0x43f909,_0x4ff645){const _0x5c32d9=_0x31be5e;var _0x455f05;const _0x2cfcc8=(_0x455f05=this[_0x5c32d9(0x2d2)][_0x5c32d9(0x178)]())==null?void 0x0:_0x455f05[_0x5c32d9(0x1be)];if(!_0x2cfcc8)return;const _0x3386ef=this['_getSheetObject']();if(!_0x3386ef)return;this['_cursors'][_0x5c32d9(0x379)](_0x1668d1=>{const _0x17c2d9=_0x5c32d9;_0x1668d1[_0x17c2d9(0x1d0)]();});const {scene:_0x190668}=_0x3386ef,_0x2d681e=Et(Array[_0x5c32d9(0x202)](_0x4ff645[_0x5c32d9(0x291)]()))[_0x5c32d9(0x2f1)](_0x1a8b97=>{const _0x593860=_0x5c32d9,{color:_0x1435ac,range:_0x4851f7,name:_0x32d5eb,selection:_0x4d9f96,sheetID:_0xd3e39d}=_0x1a8b97,{startColumn:_0x36f237,startRow:_0x42ebd3,endColumn:_0x16bc36,endRow:_0x1b403a}=_0x4851f7,_0x54d364=X['getCoordByCell'](_0x42ebd3,_0x36f237,_0x190668,_0x2cfcc8),_0x29513e=X[_0x593860(0x36b)](_0x1b403a,_0x16bc36,_0x190668,_0x2cfcc8),{columnHeaderHeightAndMarginTop:_0x54f916}=_0x2cfcc8,{startX:_0x27152e,startY:_0x879565}=_0x54d364,{endX:_0x6dc0ec,endY:_0x547724}=_0x29513e,_0x513854=_0x6dc0ec-_0x27152e,_0x1a531f=_0x547724-_0x879565,_0x158950={'labelPosition':_0x879565-_0x54f916>=K?_0x593860(0x24b):_0x593860(0x2b0),'sheetID':_0xd3e39d,'range':_0x4851f7,'color':_0x1435ac,'name':_0x32d5eb,'selection':_0x4d9f96,'left':_0x27152e,'top':_0x879565,'width':_0x513854,'height':_0x1a531f,'evented':!0x1,'zIndex':bt};return new Pe(_0x32d5eb,_0x158950);});_0x190668[_0x5c32d9(0x2c5)](_0x2d681e,gt),this['_cursors']=new Set(_0x2d681e);}[_0x31be5e(0x16c)](){const _0x187696=_0x31be5e;var _0x341743;(_0x341743=this[_0x187696(0x33b)])==null||_0x341743[_0x187696(0x379)](_0x5dfbec=>_0x5dfbec[_0x187696(0x110)]());}['_getSheetObject'](){const _0x1fe472=_0x31be5e;return X[_0x1fe472(0x2a4)](this['_context'][_0x1fe472(0x16f)],this[_0x1fe472(0x215)]);}};ve=pt([ae(0x1,a[_0x31be5e(0x353)](X[_0x31be5e(0x2c6)])),ae(0x2,a[_0x31be5e(0x353)](x)),ae(0x3,a[_0x31be5e(0x353)](a[_0x31be5e(0x133)]))],ve);function Et(_0x1f4573){const _0x569cfa=_0x31be5e,_0x1800d0=new Map();return _0x1f4573['forEach'](_0xc2051f=>{const _0x3d1605=_0x43d8;if(_0x1800d0[_0x3d1605(0x31e)](_0xc2051f[_0x3d1605(0x1a7)])){const _0x40914b=_0x1800d0[_0x3d1605(0x16a)](_0xc2051f['selection']);_0x40914b['name']+=',\x20'+_0xc2051f['name'];}else _0x1800d0[_0x3d1605(0x288)](_0xc2051f['selection'],_0xc2051f);}),Array[_0x569cfa(0x202)](_0x1800d0[_0x569cfa(0x291)]());}var E=function(){const _0x328875=_0x31be5e;return E=Object[_0x328875(0x2b9)]||function(_0x3152b1){const _0x1197c0=_0x328875;for(var _0x50902c,_0x2cc2b5=0x1,_0xd81ee3=arguments[_0x1197c0(0x247)];_0x2cc2b5<_0xd81ee3;_0x2cc2b5++){_0x50902c=arguments[_0x2cc2b5];for(var _0x124905 in _0x50902c)Object[_0x1197c0(0x2e1)][_0x1197c0(0x1ce)]['call'](_0x50902c,_0x124905)&&(_0x3152b1[_0x124905]=_0x50902c[_0x124905]);}return _0x3152b1;},E[_0x328875(0x21f)](this,arguments);},Tt=function(_0x17de7f,_0x3ded9c){const _0x5d1bdb=_0x31be5e;var _0x50b082={};for(var _0x47f959 in _0x17de7f)Object['prototype'][_0x5d1bdb(0x1ce)][_0x5d1bdb(0x24a)](_0x17de7f,_0x47f959)&&_0x3ded9c[_0x5d1bdb(0x2b7)](_0x47f959)<0x0&&(_0x50b082[_0x47f959]=_0x17de7f[_0x47f959]);if(_0x17de7f!=null&&typeof Object[_0x5d1bdb(0x20f)]=='function'){for(var _0x41a9b4=0x0,_0x47f959=Object[_0x5d1bdb(0x20f)](_0x17de7f);_0x41a9b4<_0x47f959['length'];_0x41a9b4++)_0x3ded9c[_0x5d1bdb(0x2b7)](_0x47f959[_0x41a9b4])<0x0&&Object[_0x5d1bdb(0x2e1)][_0x5d1bdb(0x334)]['call'](_0x17de7f,_0x47f959[_0x41a9b4])&&(_0x50b082[_0x47f959[_0x41a9b4]]=_0x17de7f[_0x47f959[_0x41a9b4]]);}return _0x50b082;},pe=M[_0x31be5e(0x2c9)](function(_0x482671,_0x418915){const _0x12c87f=_0x31be5e;var _0x4e5623=_0x482671['icon'],_0x447453=_0x482671['id'],_0x3a7f81=_0x482671[_0x12c87f(0x2b8)],_0x44ef17=_0x482671['extend'],_0x5cf955=Tt(_0x482671,[_0x12c87f(0x187),'id',_0x12c87f(0x2b8),_0x12c87f(0x28f)]),_0x3e87a7=_0x12c87f(0x225)[_0x12c87f(0x220)](_0x447453,'\x20')[_0x12c87f(0x220)](_0x3a7f81||'')[_0x12c87f(0x10a)](),_0xb7333a=M['useRef']('_'[_0x12c87f(0x220)](Dt()));return Ae(_0x4e5623,''[_0x12c87f(0x220)](_0x447453),{'defIds':_0x4e5623[_0x12c87f(0x335)],'idSuffix':_0xb7333a[_0x12c87f(0x2b1)]},E({'ref':_0x418915,'className':_0x3e87a7},_0x5cf955),_0x44ef17);});function Ae(_0x57e2ab,_0x385067,_0x3a106f,_0xf0e226,_0x384841){const _0x38b7ff=_0x31be5e;return M[_0x38b7ff(0x131)](_0x57e2ab[_0x38b7ff(0x1f2)],E(E({'key':_0x385067},Ot(_0x57e2ab,_0x3a106f,_0x384841)),_0xf0e226),(Rt(_0x57e2ab,_0x3a106f)['children']||[])[_0x38b7ff(0x2f1)](function(_0x487a45,_0x54eb8b){const _0x82ec60=_0x38b7ff;return Ae(_0x487a45,''['concat'](_0x385067,'-')['concat'](_0x57e2ab['tag'],'-')[_0x82ec60(0x220)](_0x54eb8b),_0x3a106f,void 0x0,_0x384841);}));}function Ot(_0x164404,_0x7252a6,_0x38964b){const _0x262718=_0x31be5e;var _0x3f843f=E({},_0x164404[_0x262718(0x1d9)]);_0x38964b!=null&&_0x38964b[_0x262718(0x227)]&&_0x3f843f[_0x262718(0x2c1)]===_0x262718(0x227)&&(_0x3f843f[_0x262718(0x2c1)]=_0x38964b[_0x262718(0x227)]),_0x164404['tag']===_0x262718(0x1a4)&&_0x3f843f['id']&&(_0x3f843f['id']=_0x3f843f['id']+_0x7252a6[_0x262718(0x2f7)]),Object[_0x262718(0x222)](_0x3f843f)[_0x262718(0x379)](function(_0x2c9383){const _0x5703fd=_0x262718;var _0x2e286c=_0x2c9383[0x0],_0x9631cc=_0x2c9383[0x1];_0x2e286c===_0x5703fd(0x1a4)&&typeof _0x9631cc==_0x5703fd(0x1ed)&&(_0x3f843f[_0x2e286c]=_0x9631cc[_0x5703fd(0x2a2)](/url\(#(.*)\)/,_0x5703fd(0x1e2)[_0x5703fd(0x220)](_0x7252a6[_0x5703fd(0x2f7)],')')));});var _0xf71eee=_0x7252a6['defIds'];return!_0xf71eee||_0xf71eee['length']===0x0||(_0x164404[_0x262718(0x1f2)]===_0x262718(0x228)&&_0x3f843f[_0x262718(0x301)]&&(_0x3f843f[_0x262718(0x301)]=_0x3f843f['xlink:href']+_0x7252a6['idSuffix']),Object[_0x262718(0x222)](_0x3f843f)[_0x262718(0x379)](function(_0x1caff0){const _0x20f238=_0x262718;var _0x402ad9=_0x1caff0[0x0],_0xae53ba=_0x1caff0[0x1];typeof _0xae53ba==_0x20f238(0x1ed)&&(_0x3f843f[_0x402ad9]=_0xae53ba['replace'](/url\(#(.*)\)/,_0x20f238(0x1e2)['concat'](_0x7252a6[_0x20f238(0x2f7)],')')));})),_0x3f843f;}function Rt(_0x5aae23,_0x47c96d){const _0x4494df=_0x31be5e;var _0x59369f,_0x3f2b28=_0x47c96d[_0x4494df(0x335)];return!_0x3f2b28||_0x3f2b28[_0x4494df(0x247)]===0x0?_0x5aae23:_0x5aae23[_0x4494df(0x1f2)]===_0x4494df(0x19c)&&(!((_0x59369f=_0x5aae23[_0x4494df(0x23c)])===null||_0x59369f===void 0x0)&&_0x59369f[_0x4494df(0x247)])?E(E({},_0x5aae23),{'children':_0x5aae23[_0x4494df(0x23c)][_0x4494df(0x2f1)](function(_0x3b4955){const _0x30f31e=_0x4494df;return typeof _0x3b4955[_0x30f31e(0x1d9)]['id']==_0x30f31e(0x1ed)&&_0x3f2b28&&_0x3f2b28[_0x30f31e(0x13b)](_0x3b4955[_0x30f31e(0x1d9)]['id'])?E(E({},_0x3b4955),{'attrs':E(E({},_0x3b4955[_0x30f31e(0x1d9)]),{'id':_0x3b4955['attrs']['id']+_0x47c96d['idSuffix']})}):_0x3b4955;})}):_0x5aae23;}function Dt(){const _0x1a5136=_0x31be5e;return Math[_0x1a5136(0x2e7)]()['toString'](0x24)['substring'](0x2,0x8);}pe['displayName']='UniverIcon';var Ut={'tag':_0x31be5e(0x26f),'attrs':{'xmlns':_0x31be5e(0x2d9),'fill':_0x31be5e(0x139),'viewBox':'0\x200\x2016\x2016','width':'1em','height':_0x31be5e(0x1a1)},'children':[{'tag':'g','attrs':{'clipPath':_0x31be5e(0x35f)},'children':[{'tag':_0x31be5e(0x2f2),'attrs':{'stroke':_0x31be5e(0x374),'d':_0x31be5e(0x35e),'strokeLinecap':_0x31be5e(0x33e),'strokeLinejoin':_0x31be5e(0x33e),'strokeWidth':1.2}}]},{'tag':'defs','attrs':{},'children':[{'tag':_0x31be5e(0x13d),'attrs':{'id':_0x31be5e(0x257)},'children':[{'tag':'path','attrs':{'fill':_0x31be5e(0x232),'d':'M0\x200H16V16H0z'}}]}]}],'defIds':[_0x31be5e(0x257)]},ye=M[_0x31be5e(0x2c9)](function(_0x1d1458,_0x381839){const _0x17d299=_0x31be5e;return M[_0x17d299(0x131)](pe,Object[_0x17d299(0x2b9)]({},_0x1d1458,{'id':_0x17d299(0x25d),'ref':_0x381839,'icon':Ut}));});function _0x43d8(_0x58c2,_0x330096){const _0x45328c=_0x4532();return _0x43d8=function(_0x43d87e,_0x177c83){_0x43d87e=_0x43d87e-0xf9;let _0x4429a2=_0x45328c[_0x43d87e];return _0x4429a2;},_0x43d8(_0x58c2,_0x330096);}ye[_0x31be5e(0x370)]=_0x31be5e(0x1c7);var Nt={'tag':_0x31be5e(0x26f),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0x31be5e(0x139),'viewBox':_0x31be5e(0x17e),'width':'1em','height':_0x31be5e(0x1a1)},'children':[{'tag':'g','attrs':{'clipPath':_0x31be5e(0x1b9)},'children':[{'tag':_0x31be5e(0x2f2),'attrs':{'stroke':_0x31be5e(0x374),'d':_0x31be5e(0x33a),'strokeLinecap':_0x31be5e(0x33e),'strokeLinejoin':_0x31be5e(0x33e),'strokeWidth':1.2}}]},{'tag':_0x31be5e(0x19c),'attrs':{},'children':[{'tag':_0x31be5e(0x13d),'attrs':{'id':_0x31be5e(0x138)},'children':[{'tag':_0x31be5e(0x2f2),'attrs':{'fill':_0x31be5e(0x232),'d':_0x31be5e(0x2a8),'transform':_0x31be5e(0x2a9)}}]}]}],'defIds':['on-line-icon_clip0_910_349']},$e=M[_0x31be5e(0x2c9)](function(_0x3166f5,_0x542cf2){const _0x1b6626=_0x31be5e;return M[_0x1b6626(0x131)](pe,Object[_0x1b6626(0x2b9)]({},_0x3166f5,{'id':_0x1b6626(0x1c5),'ref':_0x542cf2,'icon':Nt}));});$e[_0x31be5e(0x370)]='OnLineIcon';function Mt(_0xeef8c8){const _0x133d27=_0x31be5e;switch(_0xeef8c8){case u['CollaborationStatus'][_0x133d27(0x199)]:return _0x133d27(0x271);case u[_0x133d27(0x300)][_0x133d27(0x11b)]:return _0x133d27(0x285);case u[_0x133d27(0x300)][_0x133d27(0x2b2)]:return _0x133d27(0x115);case u[_0x133d27(0x300)][_0x133d27(0x144)]:return _0x133d27(0x306);case u[_0x133d27(0x300)][_0x133d27(0x1ad)]:case u[_0x133d27(0x300)][_0x133d27(0x1dc)]:return _0x133d27(0x112);case u['CollaborationStatus'][_0x133d27(0x254)]:case u['CollaborationStatus'][_0x133d27(0x286)]:return _0x133d27(0x177);}}function xe(_0x481f92){const _0x1b306a=_0x31be5e,{status$:_0x2fb1d2}=_0x481f92,_0x2d9f99=T[_0x1b306a(0x127)](_0x2fb1d2,u[_0x1b306a(0x300)][_0x1b306a(0x144)]),_0x56dcef=T[_0x1b306a(0x367)](a[_0x1b306a(0x1b2)]),_0x42f8d7=T[_0x1b306a(0x367)](u['CollaborationSessionService']),_0x21f260=_0x2d9f99!==u[_0x1b306a(0x300)][_0x1b306a(0x199)],_0x52fb40=_0x56dcef['t'](Mt(_0x2d9f99)),_0x38564=_0x21f260?w[_0x1b306a(0x290)]($e,{}):w[_0x1b306a(0x290)](ye,{}),_0x1d0039=M[_0x1b306a(0x315)](()=>{const _0x16c12f=_0x1b306a;_0x21f260||_0x42f8d7[_0x16c12f(0x25b)]();},[_0x21f260,_0x42f8d7]);function _0x45fdde(){const _0x58e0d0=_0x1b306a;return w['jsxs']('div',{'className':_0x58e0d0(0x318),'onClick':_0x1d0039,'children':[w[_0x58e0d0(0x290)]('div',{'className':D['clsx']('univer-flex\x20univer-mr-2\x20univer-text-xl',{'univer-text-green-500':_0x21f260,'univer-text-red-500':!_0x21f260}),'children':_0x38564}),w[_0x58e0d0(0x290)]('div',{'className':'univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','children':_0x52fb40})]});}return _0x21f260?_0x45fdde():w['jsx'](D['Tooltip'],{'title':_0x56dcef['t']('collab-client.tooltip.reconnect'),'children':_0x45fdde()});}var Lt=Object[_0x31be5e(0x241)],wt=(_0x10799f,_0x598dd4,_0x3151f2,_0x357577)=>{const _0x35a1ef=_0x31be5e;for(var _0x53ae5c=_0x357577>0x1?void 0x0:_0x357577?Lt(_0x598dd4,_0x3151f2):_0x598dd4,_0x3a4649=_0x10799f[_0x35a1ef(0x247)]-0x1,_0x4897a4;_0x3a4649>=0x0;_0x3a4649--)(_0x4897a4=_0x10799f[_0x3a4649])&&(_0x53ae5c=_0x4897a4(_0x53ae5c)||_0x53ae5c);return _0x53ae5c;},V=(_0x2475f9,_0x3f7c4e)=>(_0x5c75a4,_0x17d576)=>_0x3f7c4e(_0x5c75a4,_0x17d576,_0x2475f9);exports['DesktopCollaborationStatusDisplayController']=class extends a['Disposable']{constructor(_0x4d7920,_0x14f3a8,_0x46cac2,_0x3ce9c2){const _0x3b601c=_0x31be5e;super(),h(this,_0x3b601c(0x1f5),new d['BehaviorSubject'](u[_0x3b601c(0x300)][_0x3b601c(0x144)])),(this[_0x3b601c(0x2e6)]=_0x4d7920,this['_injector']=_0x14f3a8,this[_0x3b601c(0x119)]=_0x46cac2,this[_0x3b601c(0x36e)]=_0x3ce9c2,this['_initStatusComponent'](),this['_initStatusListener']());}[_0x31be5e(0x250)](){const _0x3879ab=_0x31be5e;this[_0x3879ab(0x2bc)](this[_0x3879ab(0x2e6)][_0x3879ab(0x25c)][_0x3879ab(0x2c2)](d[_0x3879ab(0x1b6)](()=>{const _0x4f7517=_0x3879ab,_0x295db2=this[_0x4f7517(0x2e6)][_0x4f7517(0x2bf)]();return _0x295db2?this[_0x4f7517(0x119)]['getCollabEntity$'](_0x295db2[_0x4f7517(0x17b)]()):d['of'](null);}),d[_0x3879ab(0x1b6)](_0x5c61b7=>_0x5c61b7?_0x5c61b7[_0x3879ab(0x354)]:d['of'](u[_0x3879ab(0x300)]['NOT_COLLAB'])))['subscribe'](_0x3e214f=>{const _0x2dbd93=_0x3879ab;this['_status$'][_0x2dbd93(0x145)](_0x3e214f);}));}['_initStatusComponent'](){const _0x341f9d=_0x31be5e;this['disposeWithMe'](this[_0x341f9d(0x36e)][_0x341f9d(0xfe)](T[_0x341f9d(0x375)]['HEADER_MENU'],()=>T[_0x341f9d(0x1a0)](Pt({'status$':this[_0x341f9d(0x1f5)][_0x341f9d(0x2a0)]()}),this[_0x341f9d(0x171)])));}},exports[_0x31be5e(0x376)]=wt([V(0x0,a[_0x31be5e(0x2da)]),V(0x1,a['Inject'](a['Injector'])),V(0x2,a['Inject'](u[_0x31be5e(0x269)])),V(0x3,T[_0x31be5e(0x1b0)])],exports[_0x31be5e(0x376)]);function Pt(_0xbc064c){const {status$:_0x1d55a5}=_0xbc064c;return function(){const _0xc22b5c=_0x43d8;return w[_0xc22b5c(0x290)](xe,{'status$':_0x1d55a5});};}var At=Object[_0x31be5e(0x241)],yt=(_0x2e42f7,_0x37f08c,_0x58a48b,_0x244057)=>{const _0x515cff=_0x31be5e;for(var _0xef3244=_0x244057>0x1?void 0x0:_0x244057?At(_0x37f08c,_0x58a48b):_0x37f08c,_0x317d55=_0x2e42f7[_0x515cff(0x247)]-0x1,_0xd356fc;_0x317d55>=0x0;_0x317d55--)(_0xd356fc=_0x2e42f7[_0x317d55])&&(_0xef3244=_0xd356fc(_0xef3244)||_0xef3244);return _0xef3244;},y=(_0xaedf36,_0x27b936)=>(_0x59416b,_0x20bd4e)=>_0x27b936(_0x59416b,_0x20bd4e,_0xaedf36);let q=class extends a[_0x31be5e(0x128)]{constructor(_0xc3de70,_0x241e77,_0x537a57,_0x82b29f,_0x1c874f,_0x5be2c4){const _0x5d05a4=_0x31be5e;super(),this['_beforeCloseService']=_0xc3de70,this[_0x5d05a4(0x223)]=_0x241e77,this[_0x5d05a4(0x339)]=_0x537a57,this['_messageService']=_0x82b29f,this['_notificationService']=_0x1c874f,this['_localeService']=_0x5be2c4,this['_setupBeforeClosingHandler'](),this['_initEvent']();}[_0x31be5e(0x122)](){const _0xa9b811=_0x31be5e;this[_0xa9b811(0x2bc)](this[_0xa9b811(0x168)][_0xa9b811(0x157)](()=>{const _0x1b426c=_0xa9b811;if(this[_0x1b426c(0x223)][_0x1b426c(0x346)][_0x1b426c(0x1c3)])return this[_0x1b426c(0x1e0)]['t']('collaboration-client.offline-data-not-saved');}));}[_0x31be5e(0x142)](){const _0x45234b=_0x31be5e;this[_0x45234b(0x2bc)](this[_0x45234b(0x339)]['event$'][_0x45234b(0x347)](_0x6e908b=>{const _0x4f9aa7=_0x45234b;_0x6e908b['id']===u[_0x4f9aa7(0x1f7)][_0x4f9aa7(0x1f1)]&&this['_messageService'][_0x4f9aa7(0x1f6)]({'type':D[_0x4f9aa7(0x164)][_0x4f9aa7(0x298)],'content':this[_0x4f9aa7(0x1e0)]['t'](_0x4f9aa7(0x1bb))}),_0x6e908b['id']===u[_0x4f9aa7(0x1f7)][_0x4f9aa7(0x198)]&&this[_0x4f9aa7(0x1c1)][_0x4f9aa7(0x1f6)]({'type':D[_0x4f9aa7(0x164)][_0x4f9aa7(0x298)],'content':this[_0x4f9aa7(0x1e0)]['t'](_0x4f9aa7(0x1ff))}),_0x6e908b['id']===u['CollaborationUIEventId'][_0x4f9aa7(0x1d3)]&&this[_0x4f9aa7(0x33f)][_0x4f9aa7(0x1f6)]({'title':this[_0x4f9aa7(0x1e0)]['t'](_0x4f9aa7(0x2ad)),'content':this[_0x4f9aa7(0x1e0)]['t']('permission.content'),'type':_0x4f9aa7(0x302),'duration':0x0}),_0x6e908b['id']===u[_0x4f9aa7(0x1f7)][_0x4f9aa7(0x11b)]&&this[_0x4f9aa7(0x1c1)][_0x4f9aa7(0x1f6)]({'type':D[_0x4f9aa7(0x164)][_0x4f9aa7(0x289)],'content':this[_0x4f9aa7(0x1e0)]['t'](_0x4f9aa7(0x1ff))+'('+_0x6e908b[_0x4f9aa7(0x24e)]+')'}),_0x6e908b['id']===u['CollaborationUIEventId'][_0x4f9aa7(0x234)]&&this[_0x4f9aa7(0x1c1)][_0x4f9aa7(0x1f6)]({'type':D[_0x4f9aa7(0x164)][_0x4f9aa7(0x298)],'content':this['_localeService']['t'](_0x6e908b[_0x4f9aa7(0x24e)]||'')}),_0x6e908b['id']===u['CollaborationUIEventId']['SOCKET_FAILED_RETRY']&&this[_0x4f9aa7(0x1c1)]['show']({'type':D[_0x4f9aa7(0x164)]['Warning'],'content':this[_0x4f9aa7(0x1e0)]['t'](_0x4f9aa7(0x263))}),_0x6e908b['id']===u[_0x4f9aa7(0x1f7)][_0x4f9aa7(0x30a)]&&this['_messageService'][_0x4f9aa7(0x1f6)]({'type':D[_0x4f9aa7(0x164)][_0x4f9aa7(0x289)],'content':this['_localeService']['t']('session.connection-failed')}),_0x6e908b['id']===u['CollaborationUIEventId'][_0x4f9aa7(0x111)]&&this[_0x4f9aa7(0x1c1)][_0x4f9aa7(0x1f6)]({'type':D['MessageType'][_0x4f9aa7(0x289)],'content':this[_0x4f9aa7(0x1e0)]['t']('session.collaboration-timeout')});}));}};q=yt([y(0x0,T[_0x31be5e(0x1bd)]),y(0x1,u[_0x31be5e(0x186)]),y(0x2,a[_0x31be5e(0x353)](u['CollaborationUIEventService'])),y(0x3,T['IMessageService']),y(0x4,T[_0x31be5e(0x103)]),y(0x5,a[_0x31be5e(0x353)](a[_0x31be5e(0x1b2)]))],q);const $t=_0x31be5e(0x27e),Ue={},be=a[_0x31be5e(0x31d)]('uni.network.url-service');var xt=Object['getOwnPropertyDescriptor'],jt=(_0x2ea8a5,_0x119974,_0x277ddd,_0x22c007)=>{for(var _0x493421=_0x22c007>0x1?void 0x0:_0x22c007?xt(_0x119974,_0x277ddd):_0x119974,_0x2f40c7=_0x2ea8a5['length']-0x1,_0xe8cad4;_0x2f40c7>=0x0;_0x2f40c7--)(_0xe8cad4=_0x2ea8a5[_0x2f40c7])&&(_0x493421=_0xe8cad4(_0x493421)||_0x493421);return _0x493421;},H=(_0x4d1cf6,_0xa13d26)=>(_0x3804c4,_0x52504f)=>_0xa13d26(_0x3804c4,_0x52504f,_0x4d1cf6);function _0x4532(){const _0x3611a5=['Error','[CollaborationDataLoaderController]','history','_transformHistoryAndStateStack','@univerjs/ui','_localStorageService','extend','jsx','values','RECT','rgba(255,\x20255,\x20255,\x200.01)','Tools','setShapeProps','UniverCollaborationClientUIPlugin','544780Udqttk','Warning','post','APPLY_PERMISSION_DENIED','handleMoveRange','_handleJoinEvent','YUUMI_NO_CUBOID_FOR_QUESTION','NodePositionConvertToCursor','max','asObservable','getParam','replace','DocStateChangeManagerService','getSheetObject','entityInit$','DocIMEInputManagerService','requireSession','M0\x200H16V16H0z','translate(.97)','lineTo','body','3wcqJxz','permission.title','@univerjs/design','source','bottom','current','FETCH_MISS','IDocClipboardService','/run/','handleIRemoveRow','YUUMI_URL_COL_OUT_OF_RANGE','indexOf','className','assign','_cursorShapes','evenodd','disposeWithMe','UNIVER_SHEET','findNodePositionByCharIndex','getFocusedUnit','UnitStatus','fill','pipe','APPLY_REVISION_CONFILICT','_scheduleSaving','addObjects','SheetSkeletonManagerService','YUUMI_SUBSCRIPTION_NOT_FOUND','CONNECTOR_DATA_TOO_LARGE','forwardRef','_initEntityListener','ColorKit','min','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','defineProperty','split','_toggleOffline','result','_sheetSkeletonManagerService','_anchor','LICENSE_MAX_UNITS_EXCEEDED','_docTransformIMECacheService','_updateURLWithCurrentState','_transformUndoRedoStack','ranges','http://www.w3.org/2000/svg','IUniverInstanceService','rxjs/operators','@univerjs/sheets-ui','subUnitId','invokeId','UPDATE_CURSOR','getCollabCursors$','prototype','_docTransformStateCacheService','filter','getTypeOfUnitAdded$','getCurrentUnitForType','_univerInstanceService','random','font','saveOfflineData','Plugin','_saveCache','disposeUnit','save','setItem','m1Prime','InsertRangeMoveRightCommandId','map','path','handleDeleteRangeMoveLeft','_registerDependencies','USER_NOT_INVITED_CODE','params','idSuffix','getLocalCacheKey','getAncestorScale','_send','#FFF','COMPLETION_FINISHED','_render','href','TEXT','CollaborationStatus','xlink:href','error','react/jsx-runtime','setTimeout','_startDocCollabCursor','collabStatus.notCollab','_drawTextRange','engine','UNIVER_DOC','SOCKET_FAILED','_lastPointer','transformMutation','_initCommandExecutedListener','CHANGESET_REVISION_CONFILICT','override','_toggleOnline','INVITE_CODE_HAS_BEEN_UES','yellow.400','handleInsertRow','_collabSessionService','useCallback','PY_RUNTIME_SCRIPT_ERROR','TEXT_RANGE_LAYER_INDEX','univer-flex\x20univer-items-center','column','registerDependencies','_initResize','LICENSE_DISTRO_REJECTED','createIdentifier','has','init','_urlService','ILocalStorageService','IConfigService','docStateChange$','_cursor','runId','DeleteRangeMoveUpCommandId','_registerRenderDependencies','_docSyncEditingCollabCursorService','_online','_selfUnitIDs','_renderManagerService','TOO_MANY_REQUESTS','onRendered','_name','IImageIoService','_ensureSubject','handleInsertRangeMoveRight','isTransformMutationFailure','_range','propertyIsEnumerable','defIds','sheetId','WebSocketService','DataLoaderService','_collaborationUIEventService','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','_cursors','mutations','_document','round','_notificationService','createSocket','handleIRemoveCol','stringify','_collabCursorController','SessionStatus','INTERNAL_ERROR','saveTaskMap','subscribe','YUUMI_RATE_OVER_LIMIT','_docTransformSelectionsService','selections','_hovered','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','_unitStatus','RemoteUniscriptService','complete','APPLY_NON_SEQUENTIAL_REVISION','handleInsertRangeMoveDown','fillRule','Inject','status$','UNRECOGNIZED','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','takeUntil','getMember','actions','SHEET_VIEWPORT_KEY','_httpService','INVITE_CODE_REQUIRED','_refreshCollabCursors','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','url(#off-line-icon_clip0_910_343)','delete','_colorIndex','INVITE_CODE_ALREADY_BOUND','key','clearInterval','collabCursorState$','fromEvent','useDependency','height','_handleHeartbeatEvent','_handleEvent','getCoordByCell','wsSessionTicketUrl','purple.300','_uiPartsService','_getSessionTicket','displayName','labelPosition','unitId','roomMembers','currentColor','BuiltInUIPart','DesktopCollaborationStatusDisplayController','CollaborationDataLoaderController','location','forEach','range','UniverCollaborationClientPlugin','isEditing','@univerjs/docs-ui','_themeService','registerComponent','_doCreateSocket','_init','unload','CommandType','INotificationService','YUUMI_ASYNCIO_CANCELLED','VIEW_MAIN','MemberService','popstate','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','isTransformMutationsWithChangesetSuccess','trim','debug','_docStateChangeManagerService','RevisionService','USERS_LEAVE','fillText','dispose','SUBMIT_CHANGESET_TIMEOUT','collabStatus.syncing','cursorInfo$','_config','collabStatus.fetchMiss','getStateCache','_docSkeletonManagerService','IRemoteInstanceService','_collaborationController','OTHER_CLIENTS_EDITING','CONFLICT','setConfig','getValue','event$','IRenderManagerService','m2Prime','...','_setupBeforeClosingHandler','LOGIN_FAILED','Unknown\x20user','syncEditingCollabCursor','react','useObservable','Disposable','getColorFromTheme','redoState','onCommandExecuted','SheetCollabCursorShape','deepClone','generateRandomId','_entityInit$','ONLINE','createElement','getSheetBySheetId','ThemeService','arc','removeParam','replaceState','_disabled','on-line-icon_clip0_910_349','none','RemoveRowCommandId','includes','debounce','clipPath','MOBILE_HAS_BEEN_BOUND','dispose$','beginPath','transformRemoteChangeset','_initEvent','origin','NOT_COLLAB','next','searchParams','_memberService','_onCursorDelete','sessionTicket','_eventUnsubscribe','memberID','isArray','_docClipboardService','_drawAnchor','_scheduleHeartbeat','push','FromArray','_syncEditingCollabCursorService','_setupSubUnitSync','_anchorDot','UNIVER_COLLABORATION_CLIENT_WEB_PLUGIN','getUnitStatus$','registerBeforeClose','clearTimeout','cursorInfo','_logService','INVALID_INVITE_CODE','fillStyle','black','_hover','_shapes','_updateLocalCursor','row','getCellPositionByOffset','SetDocZoomRatioOperation','MessageType','newValue','DocSkeletonManagerService','InsertColCommandId','_beforeCloseService','collab-text-anchor-','get','setUndoRedoMutationParamsCache','_removeCollabCursors','_cachedData','_cursorInfo$','unit','WECHAT_HAS_BEEN_BOUND','_injector','YUUMI_ALL_TABLES_IS_INVALID','collab-text-range-','_saveTaskMap','SetWorksheetActivateCommand','closePath','collabStatus.synced','getCurrent','RemoveColCommandId','getRelativeToViewportCoord','getUnitId','_transformService','loadUnit','0\x200\x2017\x2016','green.600','transformIMECache','addClipboardHook','handleDeleteRangeMoveUp','_collabCursorState$','UNAUTHENTICATED','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','ILocalCacheService','icon','Subject','Optional','toStringTag','_getMergeRange','_handleHover','[RemoteUniscriptService]:\x20no\x20focused\x20unit','215582EBtcsF','hovered','mapTo','CollaborationSocketService','689360fKVmuc','onPointerLeave$','BrowserCollaborationSocketService','EMAIL_HAS_BEEN_BOUND','DeleteRangeMoveLeftCommandId','eventID','CLOSE_ROOM','OFFLINE','SetSelectionsOperation','isActive','defs','YUUMI_AI_RUN_FAILED','_clearOtherTimers','onMouseMove','connectInjector','1em','COLORS','LOCAL_CACHE_INTERVAL','mask','getConfig','SNAPSHOT_HAS_BEEN_REMOVED','selection','_initDependencies','WebBrowserSingleActiveUnitService','@univerjs/core','YUUMI_UNABLE_LOAD_URL','_drawRectRange','AWAITING','assignAColorForMemberID','sessionStatus$','IUIPartsService','contains','LocaleService','_startSheetCollabCursor','SNAPSHOT_INVALID_SNAPSHOT','undoState','switchMap','onPointerMove$','ITransformService','url(#on-line-icon_clip0_910_349)','@univerjs/sheets','collaboration.single-unit.warning','getSheetId','IBeforeCloseService','skeleton','_color','getActiveRange','_messageService','_draw','size','ENSURE_SNAPSHOT_EXECUTION','on-line-icon','getOffsetConfig','OffLineIcon','_handleLeaveEvent','symbol','EffectRefRangId','WebURLService','add','_entities','hasOwnProperty','name','makeDirty','_createSocketURL','flatMap','PERMISSION_DENIED','getRenderById','199262oaYufV','InsertRangeMoveDownCommandId','_getScale','DOC_RANGE_TYPE','attrs','setAlpha','NodePositionConvertToRectRange','AWAITING_WITH_PENDING','executionId','debounceTime','ILogService','_localeService','_dataLoaderService','url(#$1','getUnhiddenWorksheets','deserializeRangeWithSheet','Vector2','_session','parse','width','transformStateCache','triggerDblclick','_imageIoService','transformMutationsWithChangeset','string','throttleTime','hide','getSkeleton','OTHER_CLIENT_EDITING','tag','collab-rect-range-','_hideTimer','_status$','show','CollaborationUIEventId','code','currentTheme$','_heartbeatTimer','_configService','getUndoRedoMutationParamsCache','CollaborationEvent','drawWith','collaboration.closeRoom','type','ALREADY_EXISTS','from','textRanges','_commandService','search','restore','roomMembers$','combineLatest','2296032PggiEs','pushState','with','toString','UniverInstanceType','ACTIVE_UNIT_EVENT_CHANNEL','getOwnPropertySymbols','_refRangeService','RegularPolygon','urlChange$','toRgbString','UNDEFINED','_context','executeCommand','moveTo','startsWith','DocSelectionManagerService','addObject','_backgroundColor','doc.mutation.rich-text-editing','Injector','ISnapshotServerService','apply','concat','BehaviorSubject','entries','_localCacheService','YUUMI_TABLE_NOT_FOUND_IN_UNIT','univerjs-icon\x20univerjs-icon-','NO_OTHER_CLIENTS_EDITING','colorChannel1','use','serializeRangeWithSheet','setParam','CollaborationSessionService','saveImage','_revisionService','backgroundColor','getMergeData','editingUnit','getTypeOfUnitDisposed$','white','onLocalMutation','JOIN_ROOM_FAILED','startColumn','CollaborationStatusDisplay','_scene','measureText','_unitOnClients','INVALID_ARGUMENT','@univerjs/docs','children','ticket','unitID','handleInsertCol','then','getOwnPropertyDescriptor','onPointerEnter$','unshift','currentSkeleton$','DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT','8765JfwLWe','length','addHandlerCallback','ISocketService','call','top','transformSelections','APPLY_REJECT','data','addEventListener','_initStatusListener','_instanceService','ICommandService','getColor','SYNCED','merge','onStarting','off-line-icon_clip0_910_343','unsubscribe','SetTextSelectionsOperation','_onRefRangeChange','reconnect','focused$','off-line-icon','transformByState','subscribeEvent','color','_updateCollabCursors','RxDisposable','session.will-retry','@univerjs/network','_assignedColors','exhaustSavingTask','_getAnchorBounding','registerRenderModule','CollaborationController','_labelPosition','_roomMembers$','DEFAULT_WS_SESSION_TICKET_URL','APPLY_DUPLICATED','loadOfflineData','svg','application/json','collabStatus.offline','getDocRanges','_removeClearOtherTimer','Module','676758uktkfl','rxjs','_scheduleClearOtherTimer','_textBubble','_colorAssignService','getRangePointData','text','enableLocalCache','NOT_FOUND','collaboration-client-ui.config','HTTPService','@univerjs/engine-render','all','_onCursorUpdate','LICENSE_EXPORT_SIZE_EXCEEDED','LICENSE_IMPORT_SIZE_EXCEEDED','collabStatus.conflict','PENDING','_transformPreviousActiveRange','set'];_0x4532=function(){return _0x3611a5;};return _0x4532();}exports[_0x31be5e(0x377)]=class extends a[_0x31be5e(0x262)]{constructor(_0x2e9cfe,_0x49b265,_0x9a9dca,_0x2e81ef,_0x2b9bc9){const _0x3575b3=_0x31be5e;super(),this[_0x3575b3(0x320)]=_0x2e9cfe,this['_logService']=_0x49b265,this[_0x3575b3(0x204)]=_0x9a9dca,this[_0x3575b3(0x1e1)]=_0x2e81ef,_0x2b9bc9?_0x2b9bc9==null||_0x2b9bc9['whenReady']()[_0x3575b3(0x240)](()=>this[_0x3575b3(0x100)]()):(this[_0x3575b3(0x15a)][_0x3575b3(0x10b)]('[CollaborationDataLoaderController]',_0x3575b3(0x356)),this['_init']());}async[_0x31be5e(0x100)](){const _0x16127e=_0x31be5e,_0x5cea8e=this[_0x16127e(0x320)][_0x16127e(0x2a1)]('unit'),_0x4fcf72=this['_urlService'][_0x16127e(0x2a1)](_0x16127e(0x200)),_0x42cd9b=this[_0x16127e(0x320)][_0x16127e(0x2a1)]('subunit');if(!_0x5cea8e||!_0x4fcf72){this[_0x16127e(0x15a)]['debug'](_0x16127e(0x28a),_0x16127e(0x34c));return;}const _0x2adada=await this[_0x16127e(0x1e1)][_0x16127e(0x17d)](_0x5cea8e,Number(_0x4fcf72),_0x42cd9b);_0x2adada&&_0x2adada instanceof a['Workbook']&&this[_0x16127e(0x153)](_0x2adada);}async[_0x31be5e(0x153)](_0x5138b0){const _0x2d7ecd=_0x31be5e;await this['_updateSubUnitFromURLParams'](_0x5138b0),_0x5138b0['activeSheet$'][_0x2d7ecd(0x2c2)](d[_0x2d7ecd(0x357)](this[_0x2d7ecd(0x13f)]))['subscribe'](_0x4e2c00=>{const _0x513957=_0x2d7ecd;_0x4e2c00&&this[_0x513957(0x2d6)](_0x4e2c00);}),this['_urlService']['urlChange$']['pipe'](d[_0x2d7ecd(0x357)](this[_0x2d7ecd(0x13f)]))[_0x2d7ecd(0x347)](()=>this['_updateSubUnitFromURLParams'](_0x5138b0));}[_0x31be5e(0x2d6)](_0x372e43,_0x22bcff=!0x1){const _0x36cd0a=_0x31be5e,_0x3325da=this[_0x36cd0a(0x320)][_0x36cd0a(0x2a1)]('subunit');_0x372e43[_0x36cd0a(0x1bc)]()!==_0x3325da&&this[_0x36cd0a(0x320)][_0x36cd0a(0x22a)]('subunit',_0x372e43[_0x36cd0a(0x1bc)](),_0x22bcff);}async['_updateSubUnitFromURLParams'](_0x415d5c){const _0x324daa=_0x31be5e;var _0x349da1;const _0xf74d9=this[_0x324daa(0x320)][_0x324daa(0x2a1)]('subunit');if(!_0xf74d9||!_0x415d5c[_0x324daa(0x132)](_0xf74d9)){const _0x713934=_0x415d5c[_0x324daa(0x1e3)]()[0x0],_0x1b214f=_0x415d5c['getSheetBySheetId'](_0x713934);if(!_0x1b214f)return;this[_0x324daa(0x2d6)](_0x1b214f,!0x0),await this[_0x324daa(0x204)][_0x324daa(0x216)](g[_0x324daa(0x175)]['id'],{'unitId':_0x415d5c[_0x324daa(0x17b)](),'subUnitId':_0x713934});return;}((_0x349da1=_0x415d5c['getActiveSheet']())==null?void 0x0:_0x349da1[_0x324daa(0x1bc)]())!==_0xf74d9&&await this[_0x324daa(0x204)][_0x324daa(0x216)](g['SetWorksheetActivateCommand']['id'],{'unitId':_0x415d5c[_0x324daa(0x17b)](),'subUnitId':_0xf74d9});}},exports[_0x31be5e(0x377)]=jt([H(0x0,be),H(0x1,a[_0x31be5e(0x1df)]),H(0x2,a[_0x31be5e(0x252)]),H(0x3,a['Inject'](u[_0x31be5e(0x338)])),H(0x4,a[_0x31be5e(0x189)](Ke[_0x31be5e(0x118)]))],exports[_0x31be5e(0x377)]);var Bt=Object['getOwnPropertyDescriptor'],kt=(_0x14d000,_0x19a119,_0x216742,_0x29e3e3)=>{for(var _0x5bbb64=_0x29e3e3>0x1?void 0x0:_0x29e3e3?Bt(_0x19a119,_0x216742):_0x19a119,_0x13008b=_0x14d000['length']-0x1,_0x428c79;_0x13008b>=0x0;_0x13008b--)(_0x428c79=_0x14d000[_0x13008b])&&(_0x5bbb64=_0x428c79(_0x5bbb64)||_0x5bbb64);return _0x5bbb64;},ce=(_0x3d4402,_0x3658c7)=>(_0x43f2c7,_0x5a6d10)=>_0x3658c7(_0x43f2c7,_0x5a6d10,_0x3d4402);let z=class{constructor(_0x50e7bb,_0x586a20,_0x15677b){const _0x5a5dc5=_0x31be5e;this[_0x5a5dc5(0x171)]=_0x50e7bb,this['_transformService']=_0x586a20,this[_0x5a5dc5(0x32b)]=_0x15677b;}['transformIMECache'](_0x578b15){const _0x1850f4=_0x31be5e;this[_0x1850f4(0x2d7)](_0x578b15),this[_0x1850f4(0x287)](_0x578b15);}[_0x31be5e(0x141)](_0x541448){const _0x146b7b=_0x31be5e,{unitID:_0xe1c804}=_0x541448,_0x1abc88=this[_0x146b7b(0x32b)][_0x146b7b(0x1d4)](_0xe1c804)[_0x146b7b(0x20b)](b['DocIMEInputManagerService']),{redoCache:_0x2c92d8}=_0x1abc88[_0x146b7b(0x1fc)]();if(_0x2c92d8['length']===0x0)return _0x541448;let _0x2747d3=a['Tools'][_0x146b7b(0x12d)](_0x541448[_0x146b7b(0x33c)][0x0]);for(let _0x532369=0x0;_0x532369<_0x2c92d8[_0x146b7b(0x247)];_0x532369++){const _0x4af59c={'id':_0x146b7b(0x21c),'params':{..._0x2c92d8[_0x532369]}},_0x369009=this[_0x146b7b(0x17c)][_0x146b7b(0x30c)](_0x2747d3,_0x4af59c,!0x1);if(m['isTransformMutationFailure'](_0x369009))throw _0x369009[_0x146b7b(0x302)];_0x2747d3=_0x369009[_0x146b7b(0x2ef)];}return{...a[_0x146b7b(0x294)][_0x146b7b(0x12d)](_0x541448),'mutations':[_0x2747d3]};}[_0x31be5e(0x2d7)](_0x5ebe49){const _0xb0c676=_0x31be5e,{unitID:_0x49dea7}=_0x5ebe49,_0x1c0d90=this[_0xb0c676(0x32b)][_0xb0c676(0x1d4)](_0x49dea7)[_0xb0c676(0x20b)](b[_0xb0c676(0x2a6)]),{undoCache:_0x51d9f8,redoCache:_0x1b4cfb}=_0x1c0d90[_0xb0c676(0x1fc)]();if(_0x51d9f8[_0xb0c676(0x247)]===0x0||_0x1b4cfb['length']===0x0)return;const _0x4e34d1=[],_0x4c44e3=[];let _0x27a36f=a[_0xb0c676(0x294)]['deepClone'](_0x5ebe49[_0xb0c676(0x33c)][0x0]),_0x5a3f8a=a[_0xb0c676(0x294)][_0xb0c676(0x12d)](_0x5ebe49[_0xb0c676(0x33c)][0x0]);for(let _0x1af71a=_0x51d9f8['length']-0x1;_0x1af71a>=0x0;_0x1af71a--){const _0x254a15={'id':_0xb0c676(0x21c),'params':{..._0x51d9f8[_0x1af71a]}},_0x599d44={'id':_0xb0c676(0x21c),'params':{..._0x1b4cfb[_0x1af71a]}},_0x19264b=this[_0xb0c676(0x17c)]['transformMutation'](_0x27a36f,_0x254a15,!0x1),_0x403fb3=this['_transformService']['transformMutation'](_0x5a3f8a,_0x599d44,!0x1);if(m[_0xb0c676(0x332)](_0x19264b))throw _0x19264b[_0xb0c676(0x302)];if(m[_0xb0c676(0x332)](_0x403fb3))throw _0x403fb3['error'];_0x4e34d1[_0xb0c676(0x243)](_0x19264b[_0xb0c676(0x120)][_0xb0c676(0x2f6)]),_0x4c44e3[_0xb0c676(0x243)](_0x403fb3[_0xb0c676(0x120)]['params']),_0x27a36f=_0x19264b['m1Prime'],_0x5a3f8a=_0x403fb3[_0xb0c676(0x2ef)];}_0x1c0d90[_0xb0c676(0x16b)]({'undoCache':_0x4e34d1,'redoCache':_0x4c44e3});}[_0x31be5e(0x287)](_0x5dc25c){const _0x22ba11=_0x31be5e,{unitID:_0x4b120f}=_0x5dc25c,_0x182961=this[_0x22ba11(0x32b)][_0x22ba11(0x1d4)](_0x4b120f)['with'](b[_0x22ba11(0x2a6)]),_0x3459e1=_0x182961[_0x22ba11(0x1c0)]();if(_0x3459e1==null)return;const _0x445d9a=[{'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x5dc25c[_0x22ba11(0x23e)],'actions':null,'textRanges':[_0x3459e1]}}],_0x562c7d=this[_0x22ba11(0x17c)][_0x22ba11(0x1ec)](_0x5dc25c,_0x445d9a);if(!m[_0x22ba11(0x109)](_0x562c7d))throw _0x562c7d['error'];const _0x26a724=_0x562c7d[_0x22ba11(0x120)][0x0]['params'][_0x22ba11(0x203)];Array[_0x22ba11(0x14c)](_0x26a724)&&_0x26a724[_0x22ba11(0x247)]&&_0x182961['setActiveRange'](_0x26a724[0x0]);}};z=kt([ce(0x0,a[_0x31be5e(0x353)](a['Injector'])),ce(0x1,m[_0x31be5e(0x1b8)]),ce(0x2,p[_0x31be5e(0x11f)])],z);var Ht=Object['getOwnPropertyDescriptor'],Ft=(_0x3aca37,_0x590b62,_0x35603c,_0x1e19e5)=>{const _0x3f90a1=_0x31be5e;for(var _0x43b2c6=_0x1e19e5>0x1?void 0x0:_0x1e19e5?Ht(_0x590b62,_0x35603c):_0x590b62,_0x1e8ec2=_0x3aca37[_0x3f90a1(0x247)]-0x1,_0xa8c093;_0x1e8ec2>=0x0;_0x1e8ec2--)(_0xa8c093=_0x3aca37[_0x1e8ec2])&&(_0x43b2c6=_0xa8c093(_0x43b2c6)||_0x43b2c6);return _0x43b2c6;},le=(_0x401b61,_0x2e37a8)=>(_0x1ef0de,_0xffe5c0)=>_0x2e37a8(_0x1ef0de,_0xffe5c0,_0x401b61);let J=class{constructor(_0x54232a,_0x5504ad,_0x15b5d6){const _0x25d823=_0x31be5e;this[_0x25d823(0x171)]=_0x54232a,this[_0x25d823(0x17c)]=_0x5504ad,this['_docStateChangeManagerService']=_0x15b5d6;}[_0x31be5e(0x1e9)](_0x15166d){this['_transformHistoryAndStateStack'](_0x15166d);}[_0x31be5e(0x141)](_0x28ffd6){const _0x6b65cd=_0x31be5e,{unitID:_0x263e2d}=_0x28ffd6,{collaboration:_0x3e698c}=this[_0x6b65cd(0x10c)][_0x6b65cd(0x116)](_0x263e2d);if(_0x3e698c[_0x6b65cd(0x247)]===0x0)return _0x28ffd6;let _0x43755b=a[_0x6b65cd(0x294)][_0x6b65cd(0x12d)](_0x28ffd6[_0x6b65cd(0x33c)][0x0]);for(let _0x420d7d=0x0;_0x420d7d<_0x3e698c[_0x6b65cd(0x247)];_0x420d7d++){const _0x2c8c24={'id':_0x6b65cd(0x21c),'params':{'unitId':_0x3e698c[_0x420d7d][_0x6b65cd(0x372)],..._0x3e698c[_0x420d7d][_0x6b65cd(0x12a)]}},_0x39b322=this[_0x6b65cd(0x17c)][_0x6b65cd(0x30c)](_0x43755b,_0x2c8c24,!0x1);if(m['isTransformMutationFailure'](_0x39b322))throw _0x39b322['error'];_0x43755b=_0x39b322[_0x6b65cd(0x2ef)];}return{...a[_0x6b65cd(0x294)]['deepClone'](_0x28ffd6),'mutations':[_0x43755b]};}[_0x31be5e(0x28c)](_0x36805e){const _0x23d215=_0x31be5e,{unitID:_0x24534b}=_0x36805e,{history:_0x10c7fe,collaboration:_0x24aafe}=this[_0x23d215(0x10c)][_0x23d215(0x116)](_0x24534b);if(_0x10c7fe['length']===0x0&&_0x24aafe['length']===0x0)return;const _0x592025=[],_0x140281=[];let _0x4c4412=a[_0x23d215(0x294)][_0x23d215(0x12d)](_0x36805e['mutations'][0x0]),_0x7a0f3a=a['Tools'][_0x23d215(0x12d)](_0x36805e[_0x23d215(0x33c)][0x0]);for(let _0x582f3f=_0x10c7fe[_0x23d215(0x247)]-0x1;_0x582f3f>=0x0;_0x582f3f--){const _0x6109fb={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x10c7fe[_0x582f3f][_0x23d215(0x372)],..._0x10c7fe[_0x582f3f][_0x23d215(0x1b5)]}},_0x275014={'id':_0x23d215(0x21c),'params':{'unitId':_0x10c7fe[_0x582f3f][_0x23d215(0x372)],..._0x10c7fe[_0x582f3f][_0x23d215(0x12a)]}},_0x34cb1b=this[_0x23d215(0x17c)][_0x23d215(0x30c)](_0x4c4412,_0x6109fb,!0x1),_0x5338ee=this['_transformService']['transformMutation'](_0x7a0f3a,_0x275014,!0x1);if(m[_0x23d215(0x332)](_0x34cb1b))throw _0x34cb1b[_0x23d215(0x302)];if(m[_0x23d215(0x332)](_0x5338ee))throw _0x5338ee[_0x23d215(0x302)];_0x592025[_0x23d215(0x243)]({..._0x10c7fe[_0x582f3f],'undoState':_0x34cb1b[_0x23d215(0x120)]['params'],'redoState':_0x5338ee[_0x23d215(0x120)][_0x23d215(0x2f6)]}),_0x4c4412=_0x34cb1b[_0x23d215(0x2ef)],_0x7a0f3a=_0x5338ee['m1Prime'];}_0x4c4412=a[_0x23d215(0x294)][_0x23d215(0x12d)](_0x36805e[_0x23d215(0x33c)][0x0]),_0x7a0f3a=a[_0x23d215(0x294)][_0x23d215(0x12d)](_0x36805e[_0x23d215(0x33c)][0x0]);for(let _0x5dc495=_0x24aafe[_0x23d215(0x247)]-0x1;_0x5dc495>=0x0;_0x5dc495--){const _0x48a14f={'id':_0x23d215(0x21c),'params':{'unitId':_0x24aafe[_0x5dc495][_0x23d215(0x372)],..._0x24aafe[_0x5dc495]['undoState']}},_0x221508={'id':_0x23d215(0x21c),'params':{'unitId':_0x24aafe[_0x5dc495][_0x23d215(0x372)],..._0x24aafe[_0x5dc495][_0x23d215(0x12a)]}},_0x3efbd4=this['_transformService'][_0x23d215(0x30c)](_0x4c4412,_0x48a14f,!0x1),_0x40db72=this[_0x23d215(0x17c)]['transformMutation'](_0x7a0f3a,_0x221508,!0x1);if(m[_0x23d215(0x332)](_0x3efbd4))throw _0x3efbd4[_0x23d215(0x302)];if(m[_0x23d215(0x332)](_0x40db72))throw _0x40db72['error'];_0x140281[_0x23d215(0x243)]({..._0x24aafe[_0x5dc495],'undoState':_0x3efbd4[_0x23d215(0x120)][_0x23d215(0x2f6)],'redoState':_0x40db72[_0x23d215(0x120)]['params']}),_0x4c4412=_0x3efbd4[_0x23d215(0x2ef)],_0x7a0f3a=_0x40db72[_0x23d215(0x2ef)];}this[_0x23d215(0x10c)]['setStateCache'](_0x24534b,{'history':_0x592025,'collaboration':_0x140281});}};J=Ft([le(0x0,a[_0x31be5e(0x353)](a[_0x31be5e(0x21d)])),le(0x1,m['ITransformService']),le(0x2,a[_0x31be5e(0x353)](b['DocStateChangeManagerService']))],J);var Yt=Object[_0x31be5e(0x241)],Wt=(_0x584df9,_0x1b52cf,_0x203ad1,_0x4d9d4e)=>{const _0x3657f1=_0x31be5e;for(var _0x5e6d67=_0x4d9d4e>0x1?void 0x0:_0x4d9d4e?Yt(_0x1b52cf,_0x203ad1):_0x1b52cf,_0x43d31e=_0x584df9[_0x3657f1(0x247)]-0x1,_0x334039;_0x43d31e>=0x0;_0x43d31e--)(_0x334039=_0x584df9[_0x43d31e])&&(_0x5e6d67=_0x334039(_0x5e6d67)||_0x5e6d67);return _0x5e6d67;},Ne=(_0x5f0005,_0x30fe7e)=>(_0x1e5e0e,_0x46d00c)=>_0x30fe7e(_0x1e5e0e,_0x46d00c,_0x5f0005);let Z=class{constructor(_0x52e0a6,_0x1091ba){const _0x24463b=_0x31be5e;this['_injector']=_0x52e0a6,this[_0x24463b(0x17c)]=_0x1091ba;}[_0x31be5e(0x24c)](_0x340fa5){const _0x56c7c2=_0x31be5e;var _0x516145;const _0x33ac06=this[_0x56c7c2(0x171)]['get'](Y[_0x56c7c2(0x219)]),_0x352caa=(_0x516145=_0x33ac06[_0x56c7c2(0x272)]())!=null?_0x516145:[];if(_0x352caa[_0x56c7c2(0x247)]===0x0)return;const _0x5b7892=_0x340fa5[_0x56c7c2(0x23e)],_0x229adc=[{'id':_0x56c7c2(0x21c),'params':{'unitId':_0x5b7892,'actions':null,'textRanges':_0x352caa}}],_0x85cc2f=this[_0x56c7c2(0x17c)][_0x56c7c2(0x1ec)](_0x340fa5,_0x229adc);if(!m[_0x56c7c2(0x109)](_0x85cc2f))throw _0x85cc2f[_0x56c7c2(0x302)];const _0x39d506=_0x85cc2f[_0x56c7c2(0x120)][0x0][_0x56c7c2(0x2f6)][_0x56c7c2(0x203)];Array[_0x56c7c2(0x14c)](_0x39d506)&&_0x39d506[_0x56c7c2(0x247)]&&_0x33ac06['replaceDocRanges'](_0x39d506,{'unitId':_0x5b7892,'subUnitId':_0x5b7892},!0x1);}};Z=Wt([Ne(0x0,a[_0x31be5e(0x353)](a[_0x31be5e(0x21d)])),Ne(0x1,m[_0x31be5e(0x1b8)])],Z);var Vt=Object[_0x31be5e(0x241)],Xt=(_0x163173,_0x209661,_0x33ae1c,_0x3873ca)=>{for(var _0x1aa2e1=_0x3873ca>0x1?void 0x0:_0x3873ca?Vt(_0x209661,_0x33ae1c):_0x209661,_0x2667f2=_0x163173['length']-0x1,_0x5a529d;_0x2667f2>=0x0;_0x2667f2--)(_0x5a529d=_0x163173[_0x2667f2])&&(_0x1aa2e1=_0x5a529d(_0x1aa2e1)||_0x1aa2e1);return _0x1aa2e1;},N=(_0x130665,_0xa1dc22)=>(_0x4fcb97,_0x5e5516)=>_0xa1dc22(_0x4fcb97,_0x5e5516,_0x130665);let Q=class extends a[_0x31be5e(0x128)]{constructor(_0x593783,_0x5d04d6,_0x57e4cd,_0x2d0af1,_0x25e140,_0x4a57fb,_0x5b6348,_0x3a54cf){const _0x3f6207=_0x31be5e;super(),h(this,_0x3f6207(0x1f5),new d[(_0x3f6207(0x221))](u[_0x3f6207(0x300)][_0x3f6207(0x144)])),(this[_0x3f6207(0x10c)]=_0x593783,this[_0x3f6207(0x119)]=_0x5d04d6,this[_0x3f6207(0x2d5)]=_0x57e4cd,this[_0x3f6207(0x2e2)]=_0x2d0af1,this['_docTransformSelectionsService']=_0x25e140,this[_0x3f6207(0x328)]=_0x4a57fb,this['_messageService']=_0x5b6348,this[_0x3f6207(0x1e0)]=_0x3a54cf,this[_0x3f6207(0x2ca)]());}[_0x31be5e(0x2ca)](){const _0x109f22=_0x31be5e;this[_0x109f22(0x2bc)](this[_0x109f22(0x119)][_0x109f22(0x2a5)]['subscribe'](_0x4657be=>{const _0x2da9f=_0x109f22,_0x3b0437=this[_0x2da9f(0x10c)][_0x2da9f(0x323)]['subscribe'](_0x38fcd0=>{const _0x480906=_0x2da9f;if(_0x38fcd0==null)return;const {unitId:_0x2208b6,redoState:_0x4613d9,commandId:_0x1f6b76}=_0x38fcd0;if(_0x2208b6!==_0x4657be[_0x480906(0x23e)])return;const _0x21f769={'id':_0x1f6b76,'type':a[_0x480906(0x102)]['MUTATION'],'params':{'unitId':_0x2208b6,'actions':_0x4613d9[_0x480906(0x359)],'textRanges':null}};_0x4657be[_0x480906(0x233)](_0x21f769);});if(_0x4657be[_0x2da9f(0x2bc)](_0x3b0437),_0x4657be instanceof u['DocCollaborationEntity']){const _0x299148={'onTransformIME':_0x3a8990=>this[_0x2da9f(0x2d5)][_0x2da9f(0x180)](_0x3a8990),'onTransformState':_0x31287f=>this['_docTransformStateCacheService'][_0x2da9f(0x1e9)](_0x31287f),'onTransformSelections':_0x1b37ce=>this[_0x2da9f(0x349)][_0x2da9f(0x24c)](_0x1b37ce),'onSyncEditingCollabCursor':_0x5de9f0=>this['_docSyncEditingCollabCursorService'][_0x2da9f(0x125)](_0x5de9f0),'onTransformRemoteChangesetByIMECache':_0x11fcaf=>this[_0x2da9f(0x2d5)]['transformRemoteChangeset'](_0x11fcaf),'onTransformRemoteChangesetByStateCache':_0x40e7ea=>this[_0x2da9f(0x2e2)][_0x2da9f(0x141)](_0x40e7ea)};_0x4657be[_0x2da9f(0x248)](_0x299148);}}));}};Q=Xt([N(0x0,a[_0x31be5e(0x353)](b[_0x31be5e(0x2a3)])),N(0x1,a[_0x31be5e(0x353)](u[_0x31be5e(0x269)])),N(0x2,a['Inject'](z)),N(0x3,a['Inject'](J)),N(0x4,a[_0x31be5e(0x353)](Z)),N(0x5,a['Inject'](Ce)),N(0x6,T['IMessageService']),N(0x7,a[_0x31be5e(0x353)](a[_0x31be5e(0x1b2)]))],Q);var Gt=Object['getOwnPropertyDescriptor'],Kt=(_0x521af8,_0xa93ce3,_0x1b0917,_0x1c94a4)=>{const _0x30eb67=_0x31be5e;for(var _0x16bbde=_0x1c94a4>0x1?void 0x0:_0x1c94a4?Gt(_0xa93ce3,_0x1b0917):_0xa93ce3,_0x4ef40b=_0x521af8[_0x30eb67(0x247)]-0x1,_0x310229;_0x4ef40b>=0x0;_0x4ef40b--)(_0x310229=_0x521af8[_0x4ef40b])&&(_0x16bbde=_0x310229(_0x16bbde)||_0x16bbde);return _0x16bbde;},_e=(_0x1d874e,_0x37eac1)=>(_0x535132,_0x4e1ec4)=>_0x37eac1(_0x535132,_0x4e1ec4,_0x1d874e);let ge=class extends a[_0x31be5e(0x128)]{constructor(_0x53b4dd,_0x26171f,_0x5a328a){const _0x1cb061=_0x31be5e;super(),h(this,_0x1cb061(0x16d),new Map()),h(this,_0x1cb061(0x174),new Map()),h(this,_0x1cb061(0x137),!0x1),(this[_0x1cb061(0x1fb)]=_0x53b4dd,this[_0x1cb061(0x28e)]=_0x26171f,this[_0x1cb061(0x22d)]=_0x5a328a);}['disableLocalCache'](){this['_disabled']=!0x0;}[_0x31be5e(0x27c)](){const _0x598ea0=_0x31be5e;this[_0x598ea0(0x137)]=!0x1;}get[_0x31be5e(0x346)](){const _0x198374=_0x31be5e;return this[_0x198374(0x174)];}[_0x31be5e(0x110)](){const _0x3edb7a=_0x31be5e;this['exhaustSavingTask']()[_0x3edb7a(0x240)](()=>super[_0x3edb7a(0x110)]());}async[_0x31be5e(0x26e)](_0x25b2df){const _0x33056f=_0x31be5e;return this[_0x33056f(0x137)]?null:this[_0x33056f(0x28e)]['getItem'](u['getLocalCacheKey'](_0x25b2df));}async[_0x31be5e(0x2e9)](_0x5c86a0,_0x5b463f){const _0x147e56=_0x31be5e;return!!this['_localStorageService'][_0x147e56(0x2ee)](_0x5c86a0,_0x5b463f);}['updateOfflineData'](_0x8f9694,_0x9e35b8,_0x3a831e,_0x19addc){const _0x5ae6f4=_0x31be5e,_0x3d1843=this[_0x5ae6f4(0x22d)]['getCurrentRevOfUnit'](_0x8f9694);this[_0x5ae6f4(0x16d)][_0x5ae6f4(0x288)](_0x8f9694,{'unitID':_0x8f9694,'type':_0x9e35b8,'awaitingChangeset':_0x3a831e,'mutations':_0x19addc,'rev':_0x3d1843}),this[_0x5ae6f4(0x174)]['has'](_0x8f9694)||this[_0x5ae6f4(0x2c4)](_0x8f9694);}['_scheduleSaving'](_0x1c0491){const _0x294da7=_0x31be5e,_0x5a21fd=this['_getSaveTimeout']();_0x5a21fd===0x0?this[_0x294da7(0x2eb)](_0x1c0491):this['_saveTaskMap'][_0x294da7(0x288)](_0x1c0491,setTimeout(()=>this[_0x294da7(0x2eb)](_0x1c0491),_0x5a21fd));}['_getSaveTimeout'](){const _0x273857=_0x31be5e;var _0x223a75;return(_0x223a75=this[_0x273857(0x1fb)][_0x273857(0x1a5)](u['LOCAL_CACHE_INTERVAL_KEY']))!=null?_0x223a75:u[_0x273857(0x1a3)];}['_saveCache'](_0x5c34bc){const _0x4b6236=_0x31be5e,_0x485490=this[_0x4b6236(0x174)]['get'](_0x5c34bc);return _0x485490!==void 0x0&&window[_0x4b6236(0x158)](_0x485490),this['_localStorageService']['setItem'](u[_0x4b6236(0x2f8)](_0x5c34bc),this[_0x4b6236(0x16d)][_0x4b6236(0x16a)](_0x5c34bc))['then'](()=>this[_0x4b6236(0x174)][_0x4b6236(0x360)](_0x5c34bc));}async[_0x31be5e(0x266)](){const _0x4c6bbc=_0x31be5e,_0x540cc2=[];this[_0x4c6bbc(0x174)][_0x4c6bbc(0x379)]((_0x1263e6,_0xc3dcee)=>{const _0x252446=_0x4c6bbc;window[_0x252446(0x158)](_0x1263e6),_0x540cc2[_0x252446(0x150)](this[_0x252446(0x2eb)](_0xc3dcee)[_0x252446(0x240)](()=>{const _0x1cd5ae=_0x252446;this['_saveTaskMap'][_0x1cd5ae(0x360)](_0xc3dcee);}));}),await Promise[_0x4c6bbc(0x281)](_0x540cc2);}};ge=Kt([_e(0x0,a[_0x31be5e(0x322)]),_e(0x1,a[_0x31be5e(0x321)]),_e(0x2,a['Inject'](m[_0x31be5e(0x10d)]))],ge);class je extends a['RxDisposable']{constructor(){const _0x4a157f=_0x31be5e;super(),h(this,_0x4a157f(0x212)),this[_0x4a157f(0x212)]=d[_0x4a157f(0x366)](window,_0x4a157f(0x107))['pipe'](d[_0x4a157f(0x357)](this['dispose$']),d['shareReplay'](0x1),d[_0x4a157f(0x190)](void 0x0));}[_0x31be5e(0x22a)](_0x33927c,_0x10ccfa,_0x5887f0=!0x1){const _0x3ab7f3=_0x31be5e,_0x31a366=new URL(window['location'][_0x3ab7f3(0x2fe)]);_0x31a366['searchParams'][_0x3ab7f3(0x288)](_0x33927c,_0x10ccfa),_0x5887f0?window[_0x3ab7f3(0x28b)][_0x3ab7f3(0x136)]('','',_0x31a366[_0x3ab7f3(0x20c)]()):window[_0x3ab7f3(0x28b)][_0x3ab7f3(0x20a)]('','',_0x31a366[_0x3ab7f3(0x20c)]());}[_0x31be5e(0x135)](_0x5e32d6,_0x21a2fe=!0x1){const _0x52d2b7=_0x31be5e,_0x1e8f99=new URL(window['location'][_0x52d2b7(0x2fe)]);_0x1e8f99[_0x52d2b7(0x146)][_0x52d2b7(0x360)](_0x5e32d6),_0x21a2fe?window[_0x52d2b7(0x28b)][_0x52d2b7(0x136)]('','',_0x1e8f99[_0x52d2b7(0x20c)]()):window[_0x52d2b7(0x28b)]['pushState']('','',_0x1e8f99[_0x52d2b7(0x20c)]());}[_0x31be5e(0x2a1)](_0x5a13bf){const _0x2c3323=_0x31be5e;var _0x5e9a27;return(_0x5e9a27=new URL(window[_0x2c3323(0x378)]['href'])['searchParams'][_0x2c3323(0x16a)](_0x5a13bf))!=null?_0x5e9a27:void 0x0;}}var qt=Object['defineProperty'],zt=Object['getOwnPropertyDescriptor'],Jt=(_0x158606,_0x2da155,_0x3b1545)=>_0x2da155 in _0x158606?qt(_0x158606,_0x2da155,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x3b1545}):_0x158606[_0x2da155]=_0x3b1545,Zt=(_0x2aa4ac,_0x2e9a00,_0x388f47,_0x524a20)=>{const _0x1fefcb=_0x31be5e;for(var _0xaf7cac=_0x524a20>0x1?void 0x0:_0x524a20?zt(_0x2e9a00,_0x388f47):_0x2e9a00,_0x194d2f=_0x2aa4ac[_0x1fefcb(0x247)]-0x1,_0x2ae5cf;_0x194d2f>=0x0;_0x194d2f--)(_0x2ae5cf=_0x2aa4ac[_0x194d2f])&&(_0xaf7cac=_0x2ae5cf(_0xaf7cac)||_0xaf7cac);return _0xaf7cac;},he=(_0x195faa,_0x20248b)=>(_0xbd8322,_0x114325)=>_0x20248b(_0xbd8322,_0x114325,_0x195faa),Qt=(_0x2a29cb,_0x141462,_0x20c786)=>Jt(_0x2a29cb,_0x141462+'',_0x20c786);const es=_0x31be5e(0x155);exports[_0x31be5e(0x296)]=class extends a[_0x31be5e(0x2ea)]{constructor(_0x3f29ff=Ue,_0x3255db,_0xffa206,_0x12002c){const _0x589ca6=_0x31be5e;super(),this[_0x589ca6(0x114)]=_0x3f29ff,this['_renderManagerService']=_0x3255db,this[_0x589ca6(0x171)]=_0xffa206,this[_0x589ca6(0x1fb)]=_0x12002c;const {..._0x5929bf}=a[_0x589ca6(0x255)]({},Ue,this[_0x589ca6(0x114)]);this[_0x589ca6(0x1fb)][_0x589ca6(0x11c)]($t,_0x5929bf);}[_0x31be5e(0x256)](){const _0x379c27=_0x31be5e;this[_0x379c27(0x2f4)](),this[_0x379c27(0x1a8)]();}[_0x31be5e(0x32d)](){const _0x5969a0=_0x31be5e;this[_0x5969a0(0x327)]();}[_0x31be5e(0x2f4)](){const _0x4b57d7=_0x31be5e;var _0xcf6966;const _0x450da7=[[me],[Z],[z],[J],[Ce],[be,{'useClass':je}],[G[_0x4b57d7(0x249)],{'useClass':G[_0x4b57d7(0x337)]}],[u[_0x4b57d7(0x186)],{'useClass':ge}],[exports[_0x4b57d7(0x376)]],[Q],[q],[x],[de],[exports['CollaborationDataLoaderController']]];a[_0x4b57d7(0x31a)](this[_0x4b57d7(0x171)],a['mergeOverrideWithDependencies'](_0x450da7,(_0xcf6966=this[_0x4b57d7(0x114)])==null?void 0x0:_0xcf6966[_0x4b57d7(0x30f)]));}[_0x31be5e(0x327)](){const _0x3303e5=_0x31be5e;this['disposeWithMe'](this[_0x3303e5(0x32b)][_0x3303e5(0x268)](a[_0x3303e5(0x20d)][_0x3303e5(0x309)],[Ie])),this[_0x3303e5(0x2bc)](this['_renderManagerService']['registerRenderModule'](a['UniverInstanceType'][_0x3303e5(0x2bd)],[ve]));}[_0x31be5e(0x1a8)](){const _0x330b23=_0x31be5e;a['touchDependencies'](this[_0x330b23(0x171)],[[x],[exports[_0x330b23(0x376)]],[Q],[q],[exports[_0x330b23(0x377)]]]);}},Qt(exports['UniverCollaborationClientUIPlugin'],'pluginName',es),exports['UniverCollaborationClientUIPlugin']=Zt([a['DependentOn'](u[_0x31be5e(0xfa)]),he(0x1,p[_0x31be5e(0x11f)]),he(0x2,a[_0x31be5e(0x353)](a['Injector'])),he(0x3,a[_0x31be5e(0x322)])],exports['UniverCollaborationClientUIPlugin']);var ts=Object['getOwnPropertyDescriptor'],ss=(_0x47aeac,_0x19b80d,_0x55d769,_0x4a477e)=>{const _0x3ddc66=_0x31be5e;for(var _0x52bd67=_0x4a477e>0x1?void 0x0:_0x4a477e?ts(_0x19b80d,_0x55d769):_0x19b80d,_0x32be91=_0x47aeac[_0x3ddc66(0x247)]-0x1,_0x3238b6;_0x32be91>=0x0;_0x32be91--)(_0x3238b6=_0x47aeac[_0x32be91])&&(_0x52bd67=_0x3238b6(_0x52bd67)||_0x52bd67);return _0x52bd67;},F=(_0x4b84e0,_0x43ccab)=>(_0x2db847,_0x5dff72)=>_0x43ccab(_0x2db847,_0x5dff72,_0x4b84e0);exports['BrowserCollaborationSocketService']=class extends u[_0x31be5e(0x191)]{constructor(_0x524ce9,_0x20c357,_0x3f8d07,_0x5068a8,_0x1ca43a){super(_0x524ce9,_0x20c357,_0x3f8d07,_0x5068a8,_0x1ca43a);}async[_0x31be5e(0x340)](_0x27b65f){const _0x563c37=_0x31be5e,_0x1dafbe=await this[_0x563c37(0x36f)](),_0x287069=this[_0x563c37(0x1d1)](_0x27b65f,_0x1dafbe);return this[_0x563c37(0xff)](_0x287069);}[_0x31be5e(0x1d1)](_0x59c256,_0x26d089){const _0x507ed9=_0x31be5e,_0x2f6943=typeof window>'u'?new URL(_0x59c256):new URL(_0x59c256,window[_0x507ed9(0x378)][_0x507ed9(0x143)]);_0x2f6943[_0x507ed9(0x146)]['set'](_0x507ed9(0x149),_0x26d089);const _0x32e16f=typeof window>'u'?new URLSearchParams():new URLSearchParams(window['location'][_0x507ed9(0x205)]);return _0x32e16f[_0x507ed9(0x16a)]('runId')&&_0x2f6943[_0x507ed9(0x146)][_0x507ed9(0x288)](_0x507ed9(0x325),_0x32e16f[_0x507ed9(0x16a)](_0x507ed9(0x325))),_0x2f6943[_0x507ed9(0x20c)]();}async['_getSessionTicket'](){const _0xfad231=_0x31be5e;var _0x148bdd,_0x23a509,_0x23b6d5;const _0x5469f6=this[_0xfad231(0x1fb)][_0xfad231(0x1a5)](u[_0xfad231(0x108)]),_0x1f7b3e=(_0x148bdd=_0x5469f6==null?void 0x0:_0x5469f6[_0xfad231(0x36c)])!=null?_0x148bdd:u[_0xfad231(0x26c)];return(_0x23b6d5=(_0x23a509=(await this['_httpService'][_0xfad231(0x16a)](_0x1f7b3e,{'headers':{'Content-Type':_0xfad231(0x270)}}))[_0xfad231(0x2ab)])==null?void 0x0:_0x23a509[_0xfad231(0x23d)])!=null?_0x23b6d5:'';}},exports['BrowserCollaborationSocketService']=ss([F(0x0,a[_0x31be5e(0x353)](a['Injector'])),F(0x1,a[_0x31be5e(0x353)](G[_0x31be5e(0x27f)])),F(0x2,a[_0x31be5e(0x322)]),F(0x3,a[_0x31be5e(0x1df)]),F(0x4,m[_0x31be5e(0x21e)])],exports[_0x31be5e(0x194)]);const Me=0x7530,Le=_0x31be5e(0x20e);class is extends a[_0x31be5e(0x128)]{constructor(){const _0x4c0f25=_0x31be5e;super(),h(this,'_id',a['generateRandomId']()),h(this,_0x4c0f25(0x32a),new Set()),h(this,'_unitOnClients',new Map()),h(this,'_heartbeatTimer',null),h(this,_0x4c0f25(0x19e),new Map()),h(this,'_unitStatus',new Map()),this[_0x4c0f25(0x100)]();}[_0x31be5e(0x110)](){const _0x2a020a=_0x31be5e;super[_0x2a020a(0x110)](),this['_clearOtherTimers'][_0x2a020a(0x379)]((_0x23166a,_0x2e56d9)=>this[_0x2a020a(0x273)](_0x2e56d9)),this[_0x2a020a(0x1fa)]&&window['clearInterval'](this[_0x2a020a(0x1fa)]);}[_0x31be5e(0x156)](_0x59ced0){const _0x10094f=_0x31be5e;return this[_0x10094f(0x330)](_0x59ced0)['pipe'](d['distinctUntilChanged']());}[_0x31be5e(0x230)](_0x334813){const _0x1885b6=_0x31be5e;this[_0x1885b6(0x32a)][_0x1885b6(0x1c3)]===0x0&&this[_0x1885b6(0x14f)](),this['_selfUnitIDs'][_0x1885b6(0x1cc)](_0x334813),this[_0x1885b6(0x2fa)]({'type':0x0,'memberID':this['_id'],'unitIDs':[_0x334813],'isForwarded':!0x1});}[_0x31be5e(0x2ec)](_0x420d3f){const _0x43b488=_0x31be5e;this[_0x43b488(0x32a)][_0x43b488(0x360)](_0x420d3f),this[_0x43b488(0x32a)]['size']===0x0&&this[_0x43b488(0x1fa)]&&window[_0x43b488(0x364)](this[_0x43b488(0x1fa)]);}[_0x31be5e(0x100)](){const _0x18e8b4=_0x31be5e;this[_0x18e8b4(0x2bc)](a['toDisposable'](d[_0x18e8b4(0x366)](window,'storage')[_0x18e8b4(0x347)](_0x47aaad=>{const _0x307dc2=_0x18e8b4;if(_0x47aaad[_0x307dc2(0x363)]!==Le||!_0x47aaad[_0x307dc2(0x165)])return;const _0xd233dd=JSON[_0x307dc2(0x1e7)](_0x47aaad[_0x307dc2(0x165)]);this[_0x307dc2(0x36a)](_0xd233dd);}))),window[_0x18e8b4(0x24f)](_0x18e8b4(0x101),()=>this[_0x18e8b4(0x2fa)]({'type':0x1,'memberID':this['_id'],'unitIDs':Array['from'](this[_0x18e8b4(0x32a)])}));}[_0x31be5e(0x36a)](_0x3f51b3){const _0x4cc389=_0x31be5e;switch(_0x3f51b3[_0x4cc389(0x200)]){case 0x0:this['_handleJoinEvent'](_0x3f51b3);break;case 0x1:this[_0x4cc389(0x1c8)](_0x3f51b3);break;case 0x2:this[_0x4cc389(0x369)](_0x3f51b3);break;}}[_0x31be5e(0x29c)](_0x553325){const _0x34d905=_0x31be5e,{unitIDs:_0x36582f,memberID:_0x3f94b4,isForwarded:_0x5d4a50}=_0x553325;_0x36582f[_0x34d905(0x379)](_0x33ddb3=>{const _0x41fb3b=_0x34d905;if(!_0x5d4a50&&this['_unitOnClients'][_0x41fb3b(0x31e)](_0x33ddb3)&&this[_0x41fb3b(0x330)](_0x33ddb3)['next'](u['UnitStatus'][_0x41fb3b(0x11a)]),!this[_0x41fb3b(0x239)][_0x41fb3b(0x31e)](_0x33ddb3)||!this[_0x41fb3b(0x239)][_0x41fb3b(0x16a)](_0x33ddb3)[_0x41fb3b(0x31e)](_0x3f94b4)){const _0x3813c2=this[_0x41fb3b(0x239)][_0x41fb3b(0x16a)](_0x33ddb3)||new Set();_0x3813c2[_0x41fb3b(0x1cc)](_0x3f94b4),this['_unitOnClients'][_0x41fb3b(0x288)](_0x33ddb3,_0x3813c2),this['_scheduleClearOtherTimer'](_0x3f94b4);}}),_0x5d4a50||this[_0x34d905(0x2fa)]({'type':0x0,'memberID':this['_id'],'unitIDs':[...this['_selfUnitIDs']],'isForwarded':!0x0});}[_0x31be5e(0x277)](_0x2000f4){const _0x196b9a=_0x31be5e;this[_0x196b9a(0x273)](_0x2000f4);const _0x494264=window[_0x196b9a(0x304)](()=>{const _0x15d964=_0x196b9a;this[_0x15d964(0x239)][_0x15d964(0x379)](_0x5e716b=>{const _0x1ffca3=_0x15d964;_0x5e716b[_0x1ffca3(0x360)](_0x2000f4);});},Me*0x2);this[_0x196b9a(0x19e)][_0x196b9a(0x288)](_0x2000f4,_0x494264);}[_0x31be5e(0x273)](_0x29a457){const _0x3a7076=_0x31be5e;if(this[_0x3a7076(0x19e)][_0x3a7076(0x31e)](_0x29a457)){const _0x53db75=this[_0x3a7076(0x19e)][_0x3a7076(0x16a)](_0x29a457);_0x53db75&&window[_0x3a7076(0x158)](_0x53db75),this['_clearOtherTimers']['set'](_0x29a457,null);}}[_0x31be5e(0x1c8)](_0x16de79){const _0x3b20a1=_0x31be5e,{memberID:_0x4737ef,unitIDs:_0x58e1ac}=_0x16de79;_0x58e1ac[_0x3b20a1(0x379)](_0x3a4adf=>{const _0x5631a6=_0x3b20a1;var _0x11b2f7;const _0x2c1762=this[_0x5631a6(0x239)][_0x5631a6(0x16a)](_0x3a4adf);_0x2c1762&&(_0x2c1762['delete'](_0x4737ef),(_0x11b2f7=this[_0x5631a6(0x330)](_0x3a4adf))==null||_0x11b2f7[_0x5631a6(0x145)](_0x2c1762[_0x5631a6(0x1c3)]===0x0?u[_0x5631a6(0x2c0)][_0x5631a6(0x226)]:u['UnitStatus']['OTHER_CLIENTS_EDITING']));}),this[_0x3b20a1(0x273)](_0x4737ef);}[_0x31be5e(0x369)](_0x10d700){const _0x4abb65=_0x31be5e;this[_0x4abb65(0x277)](_0x10d700[_0x4abb65(0x14b)]);}[_0x31be5e(0x2fa)](_0x51a279){const _0x565bda=_0x31be5e;localStorage[_0x565bda(0x2ee)](Le,JSON[_0x565bda(0x342)](_0x51a279));}[_0x31be5e(0x14f)](){const _0x2f32e9=_0x31be5e;this[_0x2f32e9(0x1fa)]=window['setInterval'](()=>{this['_send']({'type':0x2,'memberID':this['_id']});},Me);}[_0x31be5e(0x330)](_0x1106e4){const _0x21ec18=_0x31be5e;return this['_unitStatus']['has'](_0x1106e4)||this[_0x21ec18(0x34d)][_0x21ec18(0x288)](_0x1106e4,new d[(_0x21ec18(0x221))](u[_0x21ec18(0x2c0)][_0x21ec18(0x226)])),this[_0x21ec18(0x34d)][_0x21ec18(0x16a)](_0x1106e4);}}var Be=(_0xc9b7cd=>(_0xc9b7cd[_0xc9b7cd[_0x31be5e(0x214)]=0x0]=_0x31be5e(0x214),_0xc9b7cd[_0xc9b7cd['OK']=0x1]='OK',_0xc9b7cd[_0xc9b7cd[_0x31be5e(0x345)]=0x2]=_0x31be5e(0x345),_0xc9b7cd[_0xc9b7cd[_0x31be5e(0x1d3)]=0x3]=_0x31be5e(0x1d3),_0xc9b7cd[_0xc9b7cd['NOT_FOUND']=0x4]=_0x31be5e(0x27d),_0xc9b7cd[_0xc9b7cd[_0x31be5e(0x184)]=0x5]=_0x31be5e(0x184),_0xc9b7cd[_0xc9b7cd['ALREADY_EXISTS']=0x6]=_0x31be5e(0x201),_0xc9b7cd[_0xc9b7cd[_0x31be5e(0x23a)]=0x7]='INVALID_ARGUMENT',_0xc9b7cd[_0xc9b7cd[_0x31be5e(0x32c)]=0x8]=_0x31be5e(0x32c),_0xc9b7cd[_0xc9b7cd[_0x31be5e(0x2fc)]=0x9]='COMPLETION_FINISHED',_0xc9b7cd[_0xc9b7cd[_0x31be5e(0x123)]=0xa]='LOGIN_FAILED',_0xc9b7cd[_0xc9b7cd[_0x31be5e(0x30e)]=0x1389]=_0x31be5e(0x30e),_0xc9b7cd[_0xc9b7cd['SNAPSHOT_INVALID_SNAPSHOT']=0x1771]=_0x31be5e(0x1b4),_0xc9b7cd[_0xc9b7cd['SNAPSHOT_HAS_BEEN_REMOVED']=0x1772]=_0x31be5e(0x1a6),_0xc9b7cd[_0xc9b7cd['ENSURE_SNAPSHOT_EXECUTION']=0x1773]=_0x31be5e(0x1c4),_0xc9b7cd[_0xc9b7cd[_0x31be5e(0x24d)]=0x1b59]=_0x31be5e(0x24d),_0xc9b7cd[_0xc9b7cd[_0x31be5e(0x350)]=0x1b5a]=_0x31be5e(0x350),_0xc9b7cd[_0xc9b7cd[_0x31be5e(0x2c3)]=0x1b5b]=_0x31be5e(0x2c3),_0xc9b7cd[_0xc9b7cd[_0x31be5e(0x29a)]=0x1b5c]=_0x31be5e(0x29a),_0xc9b7cd[_0xc9b7cd[_0x31be5e(0x26d)]=0x1b5d]=_0x31be5e(0x26d),_0xc9b7cd[_0xc9b7cd['CONNECTOR_DATA_TOO_LARGE']=0x1f41]=_0x31be5e(0x2c8),_0xc9b7cd[_0xc9b7cd[_0x31be5e(0x2d4)]=0x2329]=_0x31be5e(0x2d4),_0xc9b7cd[_0xc9b7cd[_0x31be5e(0x185)]=0x232a]='LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED',_0xc9b7cd[_0xc9b7cd[_0x31be5e(0x284)]=0x232b]=_0x31be5e(0x284),_0xc9b7cd[_0xc9b7cd[_0x31be5e(0x283)]=0x232c]=_0x31be5e(0x283),_0xc9b7cd[_0xc9b7cd[_0x31be5e(0x31c)]=0x232d]=_0x31be5e(0x31c),_0xc9b7cd[_0xc9b7cd[_0x31be5e(0x1ab)]=0x2711]=_0x31be5e(0x1ab),_0xc9b7cd[_0xc9b7cd[_0x31be5e(0x2b6)]=0x2712]=_0x31be5e(0x2b6),_0xc9b7cd[_0xc9b7cd[_0x31be5e(0x348)]=0x2713]=_0x31be5e(0x348),_0xc9b7cd[_0xc9b7cd['YUUMI_SUBSCRIPTION_NOT_FOUND']=0x2714]=_0x31be5e(0x2c7),_0xc9b7cd[_0xc9b7cd[_0x31be5e(0x29d)]=0x271a]='YUUMI_NO_CUBOID_FOR_QUESTION',_0xc9b7cd[_0xc9b7cd[_0x31be5e(0x104)]=0x271b]='YUUMI_ASYNCIO_CANCELLED',_0xc9b7cd[_0xc9b7cd[_0x31be5e(0x224)]=0x271c]='YUUMI_TABLE_NOT_FOUND_IN_UNIT',_0xc9b7cd[_0xc9b7cd[_0x31be5e(0x172)]=0x271d]=_0x31be5e(0x172),_0xc9b7cd[_0xc9b7cd['YUUMI_PROMPT_MAX_TOKENS_EXCEEDED']=0x271e]='YUUMI_PROMPT_MAX_TOKENS_EXCEEDED',_0xc9b7cd[_0xc9b7cd[_0x31be5e(0x19d)]=0x271f]='YUUMI_AI_RUN_FAILED',_0xc9b7cd[_0xc9b7cd[_0x31be5e(0x316)]=0x2af9]=_0x31be5e(0x316),_0xc9b7cd[_0xc9b7cd[_0x31be5e(0x311)]=0x2ee1]=_0x31be5e(0x311),_0xc9b7cd[_0xc9b7cd[_0x31be5e(0x15b)]=0x2ee2]=_0x31be5e(0x15b),_0xc9b7cd[_0xc9b7cd['INVITE_CODE_REQUIRED']=0x2ee3]=_0x31be5e(0x35c),_0xc9b7cd[_0xc9b7cd[_0x31be5e(0x2f5)]=0x2ee4]=_0x31be5e(0x2f5),_0xc9b7cd[_0xc9b7cd[_0x31be5e(0x362)]=0x2ee5]='INVITE_CODE_ALREADY_BOUND',_0xc9b7cd[_0xc9b7cd[_0x31be5e(0x170)]=0x32c9]='WECHAT_HAS_BEEN_BOUND',_0xc9b7cd[_0xc9b7cd[_0x31be5e(0x13e)]=0x32ca]=_0x31be5e(0x13e),_0xc9b7cd[_0xc9b7cd[_0x31be5e(0x195)]=0x32cb]=_0x31be5e(0x195),_0xc9b7cd[_0xc9b7cd[_0x31be5e(0x355)]=-0x1]=_0x31be5e(0x355),_0xc9b7cd))(Be||{}),ns=Object['getOwnPropertyDescriptor'],rs=(_0x1f4437,_0x243d57,_0x126b8c,_0x33c651)=>{const _0x157ca8=_0x31be5e;for(var _0x2c4f36=_0x33c651>0x1?void 0x0:_0x33c651?ns(_0x243d57,_0x126b8c):_0x243d57,_0x3f1ad8=_0x1f4437[_0x157ca8(0x247)]-0x1,_0x1d922e;_0x3f1ad8>=0x0;_0x3f1ad8--)(_0x1d922e=_0x1f4437[_0x3f1ad8])&&(_0x2c4f36=_0x1d922e(_0x2c4f36)||_0x2c4f36);return _0x2c4f36;},ue=(_0x53a270,_0x10b73f)=>(_0xf790e3,_0x2f2a03)=>_0x10b73f(_0xf790e3,_0x2f2a03,_0x53a270);exports['RemoteUniscriptService']=class extends a[_0x31be5e(0x128)]{constructor(_0x104317,_0x2c11f0,_0x571aee){const _0x3603f9=_0x31be5e;super(),this[_0x3603f9(0x251)]=_0x104317,this[_0x3603f9(0x35b)]=_0x2c11f0,this['_configService']=_0x571aee;}async['runOnServer'](_0x15598b,_0x2aa5b9,_0x45665c,..._0x1f2bbd){const _0x214072=_0x31be5e;var _0x59e52e,_0x3aa0d5,_0x3c474b,_0x653838;const _0x115b96=this['_instanceService'][_0x214072(0x2bf)]();if(!_0x115b96)throw new Error(_0x214072(0x18d));const _0x4b5bc4=((_0x59e52e=this[_0x214072(0x1fb)][_0x214072(0x1a5)](u['REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY']))!=null?_0x59e52e:u[_0x214072(0x245)])+'/'+_0x15598b+_0x214072(0x2b4)+_0x2aa5b9,_0x19f41f=new URL(window['location'][_0x214072(0x2fe)]),_0x21d8b4={'scriptId':_0x15598b,'runId':(_0x3aa0d5=_0x19f41f[_0x214072(0x146)][_0x214072(0x16a)](_0x214072(0x325)))!=null?_0x3aa0d5:'','function':_0x2aa5b9,'unitId':_0x115b96[_0x214072(0x17b)](),'argsOfFunction':JSON[_0x214072(0x342)](_0x1f2bbd),'invokeId':(_0x3c474b=_0x45665c[_0x214072(0x2de)])!=null?_0x3c474b:'','executionId':(_0x653838=_0x45665c[_0x214072(0x1dd)])!=null?_0x653838:''};try{const _0x39fa1d=await this[_0x214072(0x35b)][_0x214072(0x299)](_0x4b5bc4,{'body':_0x21d8b4});return _0x39fa1d[_0x214072(0x2ab)]['error']&&_0x39fa1d[_0x214072(0x2ab)]['error'][_0x214072(0x1f8)]!==Be['OK']?'Failed':_0x39fa1d[_0x214072(0x2ab)][_0x214072(0x2d1)];}catch{return'Failed';}}},exports[_0x31be5e(0x34e)]=rs([ue(0x0,a['IUniverInstanceService']),ue(0x1,a[_0x31be5e(0x353)](G['HTTPService'])),ue(0x2,a['IConfigService'])],exports[_0x31be5e(0x34e)]),exports[_0x31be5e(0x236)]=xe,exports['IURLService']=be,exports[_0x31be5e(0x12c)]=Pe,exports[_0x31be5e(0x1a9)]=is,exports[_0x31be5e(0x1cb)]=je;
@@ -1 +1 @@
1
- 'use strict';const _0x11a595=_0x3be4;(function(_0x42af39,_0x1e8f88){const _0x4e6185=_0x3be4,_0x2bd35f=_0x42af39();while(!![]){try{const _0x451292=-parseInt(_0x4e6185(0x9d))/0x1+-parseInt(_0x4e6185(0xa4))/0x2*(-parseInt(_0x4e6185(0xa0))/0x3)+parseInt(_0x4e6185(0x9c))/0x4+-parseInt(_0x4e6185(0x9e))/0x5+parseInt(_0x4e6185(0xae))/0x6+parseInt(_0x4e6185(0xa7))/0x7+parseInt(_0x4e6185(0xaa))/0x8;if(_0x451292===_0x1e8f88)break;else _0x2bd35f['push'](_0x2bd35f['shift']());}catch(_0x68b9ff){_0x2bd35f['push'](_0x2bd35f['shift']());}}}(_0x38ad,0xba318));const e={'collab-client':{'tooltip':{'reconnect':_0x11a595(0x9b)}},'collabStatus':{'fetchMiss':'Syncing\x20server\x20data...','conflict':'Edit\x20conflicts','notCollab':_0x11a595(0xad),'synced':_0x11a595(0xa9),'syncing':'Syncing...','offline':_0x11a595(0x9f)},'session':{'connection-failed':_0x11a595(0xa8),'will-retry':_0x11a595(0xa5),'room-full':_0x11a595(0xa3),'collaboration-timeout':_0x11a595(0xab)},'conflict':{'title':_0x11a595(0xa6),'content':_0x11a595(0x9a)},'permission':{'title':_0x11a595(0xa1),'content':_0x11a595(0xa2)},'collaboration':{'single-unit':{'warning':'You\x20opened\x20the\x20same\x20file\x20in\x20another\x20tab.\x20In\x20case\x20of\x20data\x20missing,\x20you\x20cannot\x20edit\x20on\x20this\x20tab.'},'closeRoom':'Editing\x20privileges\x20were\x20revoked\x20because\x20the\x20collaborative\x20room\x20was\x20closed.'},'auth':{'needGotoLoginAlert':_0x11a595(0x99)}};function _0x3be4(_0x377840,_0x53a918){const _0x38ad5a=_0x38ad();return _0x3be4=function(_0x3be4e8,_0xf1546e){_0x3be4e8=_0x3be4e8-0x99;let _0x1a6d8f=_0x38ad5a[_0x3be4e8];return _0x1a6d8f;},_0x3be4(_0x377840,_0x53a918);}function _0x38ad(){const _0x5bc2b1=['Collaboration\x20room\x20is\x20full.\x20You\x20edits\x20would\x20be\x20saved\x20locally.','1245916HpfkLA','Connection\x20failed,\x20we\x20retry\x20in\x20a\x20while.','Collaboration\x20Conflict','4061337VBVnPr','Connection\x20failed,\x20please\x20check\x20your\x20network.','Synced','675824iMtwYR','The\x20server\x20is\x20not\x20responding\x20to\x20your\x20collaboration\x20request.\x20Your\x20edits\x20would\x20be\x20saved\x20locally.','exports','Local\x20file','8648082pGNhTr','Your\x20login\x20has\x20expired,\x20click\x20OK\x20to\x20re-login,\x20click\x20Cancel\x20to\x20save\x20your\x20local\x20edits.','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.','Click\x20to\x20Reconnect','918280vttJrM','1347137asFPLp','7358585aCTNEX','Offline,\x20edits\x20would\x20be\x20save\x20on\x20local','6CehWwJ','Authentication\x20Error','Your\x20actions\x20are\x20conflicting\x20with\x20the\x20server\x27s\x20permissions.\x20Please\x20save\x20your\x20local\x20edits\x20elsewhere\x20as\x20they\x20will\x20be\x20discarded\x20after\x20refreshing\x20the\x20page.'];_0x38ad=function(){return _0x5bc2b1;};return _0x38ad();}module[_0x11a595(0xac)]=e;
1
+ 'use strict';const _0x4f5c51=_0x2e7a;(function(_0x64014f,_0xbb89b){const _0x296e46=_0x2e7a,_0x5fcdb1=_0x64014f();while(!![]){try{const _0x5def86=-parseInt(_0x296e46(0xcc))/0x1*(parseInt(_0x296e46(0xce))/0x2)+-parseInt(_0x296e46(0xd8))/0x3*(-parseInt(_0x296e46(0xd3))/0x4)+-parseInt(_0x296e46(0xd4))/0x5*(parseInt(_0x296e46(0xc5))/0x6)+-parseInt(_0x296e46(0xc9))/0x7+-parseInt(_0x296e46(0xcd))/0x8*(-parseInt(_0x296e46(0xd2))/0x9)+-parseInt(_0x296e46(0xdb))/0xa*(-parseInt(_0x296e46(0xcf))/0xb)+parseInt(_0x296e46(0xc6))/0xc*(parseInt(_0x296e46(0xc4))/0xd);if(_0x5def86===_0xbb89b)break;else _0x5fcdb1['push'](_0x5fcdb1['shift']());}catch(_0x5914c4){_0x5fcdb1['push'](_0x5fcdb1['shift']());}}}(_0x182a,0x71096));function _0x2e7a(_0x2868a5,_0x40ee93){const _0x182a7a=_0x182a();return _0x2e7a=function(_0x2e7ab2,_0x3af4f7){_0x2e7ab2=_0x2e7ab2-0xc4;let _0x343aed=_0x182a7a[_0x2e7ab2];return _0x343aed;},_0x2e7a(_0x2868a5,_0x40ee93);}const e={'collab-client':{'tooltip':{'reconnect':'Click\x20to\x20Reconnect'}},'collabStatus':{'fetchMiss':'Syncing\x20server\x20data...','conflict':_0x4f5c51(0xd9),'notCollab':'Local\x20file','synced':_0x4f5c51(0xc7),'syncing':_0x4f5c51(0xd1),'offline':_0x4f5c51(0xd5)},'session':{'connection-failed':_0x4f5c51(0xd0),'will-retry':_0x4f5c51(0xd6),'room-full':'Collaboration\x20room\x20is\x20full.\x20You\x20edits\x20would\x20be\x20saved\x20locally.','collaboration-timeout':_0x4f5c51(0xd7)},'conflict':{'title':'Collaboration\x20Conflict','content':_0x4f5c51(0xcb)},'permission':{'title':'Authentication\x20Error','content':'Your\x20actions\x20are\x20conflicting\x20with\x20the\x20server\x27s\x20permissions.\x20Please\x20save\x20your\x20local\x20edits\x20elsewhere\x20as\x20they\x20will\x20be\x20discarded\x20after\x20refreshing\x20the\x20page.'},'collaboration':{'single-unit':{'warning':'You\x20opened\x20the\x20same\x20file\x20in\x20another\x20tab.\x20In\x20case\x20of\x20data\x20missing,\x20you\x20cannot\x20edit\x20on\x20this\x20tab.'},'closeRoom':_0x4f5c51(0xc8)},'auth':{'needGotoLoginAlert':_0x4f5c51(0xca)}};function _0x182a(){const _0x5cbae7=['Syncing...','1062BBbtkc','634132wFEdNh','65yCZxaa','Offline,\x20edits\x20would\x20be\x20save\x20on\x20local','Connection\x20failed,\x20we\x20retry\x20in\x20a\x20while.','The\x20server\x20is\x20not\x20responding\x20to\x20your\x20collaboration\x20request.\x20Your\x20edits\x20would\x20be\x20saved\x20locally.','6XdTSHV','Edit\x20conflicts','exports','14070YoLVFZ','8783762KJRrIw','229686bJIOFy','12ENkkTt','Synced','Editing\x20privileges\x20were\x20revoked\x20because\x20the\x20collaborative\x20room\x20was\x20closed.','2681070FnTDBR','Your\x20login\x20has\x20expired,\x20click\x20OK\x20to\x20re-login,\x20click\x20Cancel\x20to\x20save\x20your\x20local\x20edits.','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.','1GKeBEG','25584arausm','1687820Dbicdp','6391CKRPzJ','Connection\x20failed,\x20please\x20check\x20your\x20network.'];_0x182a=function(){return _0x5cbae7;};return _0x182a();}module[_0x4f5c51(0xda)]=e;