@univerjs-pro/collaboration-client-ui 0.8.0-nightly.202505281606 → 0.8.0-nightly.202505301607

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 _0x19277f=_0x1341;(function(_0x20d3cf,_0x5ce848){const _0x2ccdea=_0x1341,_0x3c65a3=_0x20d3cf();while(!![]){try{const _0x2f5e84=parseInt(_0x2ccdea(0xf4))/0x1+-parseInt(_0x2ccdea(0xff))/0x2*(-parseInt(_0x2ccdea(0xfa))/0x3)+parseInt(_0x2ccdea(0xf3))/0x4*(parseInt(_0x2ccdea(0xf0))/0x5)+parseInt(_0x2ccdea(0xf9))/0x6+-parseInt(_0x2ccdea(0xfc))/0x7*(parseInt(_0x2ccdea(0xfe))/0x8)+-parseInt(_0x2ccdea(0xf8))/0x9*(-parseInt(_0x2ccdea(0x100))/0xa)+-parseInt(_0x2ccdea(0xef))/0xb;if(_0x2f5e84===_0x5ce848)break;else _0x3c65a3['push'](_0x3c65a3['shift']());}catch(_0x1c2b35){_0x3c65a3['push'](_0x3c65a3['shift']());}}}(_0x34ad,0x33989));function _0x1341(_0x4af1a7,_0x25185b){const _0x34ad56=_0x34ad();return _0x1341=function(_0x134167,_0x9020a){_0x134167=_0x134167-0xef;let _0x1b210f=_0x34ad56[_0x134167];return _0x1b210f;},_0x1341(_0x4af1a7,_0x25185b);}const t=require(_0x19277f(0xf7)),e=require(_0x19277f(0xfd));class c extends e[_0x19277f(0xf6)]{['runOnServer'](_0x3668e0,_0x3727aa,..._0x37f711){const _0x325df2=_0x19277f;return this[_0x325df2(0xfb)][_0x325df2(0xf1)](t[_0x325df2(0xf5)])['runOnServer'](_0x3668e0,_0x3727aa,{},..._0x37f711);}}e['FUniver'][_0x19277f(0xf2)](c);function _0x34ad(){const _0x59d077=['285851RCcwfT','RemoteUniscriptService','FUniver','@univerjs-pro/collaboration-client-ui','812151TydXbd','2320110pHJEOY','874353qVGhga','_injector','399fnjURs','@univerjs/core/facade','28176MRGqVo','2vNnysY','10zqGvgd','11095326qLbXVu','166605fuyqMg','get','extend','44dcRlsS'];_0x34ad=function(){return _0x59d077;};return _0x34ad();}
1
+ 'use strict';const _0x5b0c14=_0x13a2;(function(_0x48ebe0,_0xfcb594){const _0x488819=_0x13a2,_0x1290c4=_0x48ebe0();while(!![]){try{const _0x5976ff=-parseInt(_0x488819(0x19c))/0x1*(-parseInt(_0x488819(0x19e))/0x2)+-parseInt(_0x488819(0x1a1))/0x3+-parseInt(_0x488819(0x1a7))/0x4+parseInt(_0x488819(0x1a4))/0x5*(-parseInt(_0x488819(0x1a3))/0x6)+parseInt(_0x488819(0x19b))/0x7+-parseInt(_0x488819(0x1a5))/0x8*(-parseInt(_0x488819(0x19d))/0x9)+parseInt(_0x488819(0x197))/0xa*(-parseInt(_0x488819(0x199))/0xb);if(_0x5976ff===_0xfcb594)break;else _0x1290c4['push'](_0x1290c4['shift']());}catch(_0x5b2623){_0x1290c4['push'](_0x1290c4['shift']());}}}(_0x478c,0x99c14));function _0x478c(){const _0x4a023b=['2482686kAOlqI','10QkzrCb','248Rjbwgl','RemoteUniscriptService','275020VHDgHW','170220kfDeSz','runOnServer','803ZURAUf','get','7434945hBMHoh','29vibyqO','282060iVapBa','67010wArzYL','@univerjs-pro/collaboration-client-ui','FUniver','709851wxTwXO','@univerjs/core/facade'];_0x478c=function(){return _0x4a023b;};return _0x478c();}function _0x13a2(_0x67508d,_0x3bf283){const _0x478c33=_0x478c();return _0x13a2=function(_0x13a23a,_0xf4bb45){_0x13a23a=_0x13a23a-0x197;let _0x4767ad=_0x478c33[_0x13a23a];return _0x4767ad;},_0x13a2(_0x67508d,_0x3bf283);}const t=require(_0x5b0c14(0x19f)),e=require(_0x5b0c14(0x1a2));class c extends e['FUniver']{[_0x5b0c14(0x198)](_0x4499a4,_0x537412,..._0x1a6054){const _0xe96291=_0x5b0c14;return this['_injector'][_0xe96291(0x19a)](t[_0xe96291(0x1a6)])['runOnServer'](_0x4499a4,_0x537412,{},..._0x1a6054);}}e[_0x5b0c14(0x1a0)]['extend'](c);
package/lib/cjs/index.js CHANGED
@@ -1 +1 @@
1
- 'use strict';const _0x49408b=_0x224e;(function(_0xab5111,_0x4780b1){const _0x460b93=_0x224e,_0x5b8796=_0xab5111();while(!![]){try{const _0x564a90=-parseInt(_0x460b93(0x24b))/0x1+parseInt(_0x460b93(0x31f))/0x2+-parseInt(_0x460b93(0x1f1))/0x3+parseInt(_0x460b93(0x2ae))/0x4+-parseInt(_0x460b93(0x297))/0x5*(parseInt(_0x460b93(0x344))/0x6)+parseInt(_0x460b93(0xf1))/0x7*(-parseInt(_0x460b93(0x202))/0x8)+-parseInt(_0x460b93(0x189))/0x9*(-parseInt(_0x460b93(0x2a9))/0xa);if(_0x564a90===_0x4780b1)break;else _0x5b8796['push'](_0x5b8796['shift']());}catch(_0x2bb7fe){_0x5b8796['push'](_0x5b8796['shift']());}}}(_0x281e,0x8d4bd));var Ve=Object[_0x49408b(0x241)],Xe=(_0x57953d,_0x5ba6dc,_0x20f072)=>_0x5ba6dc in _0x57953d?Ve(_0x57953d,_0x5ba6dc,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x20f072}):_0x57953d[_0x5ba6dc]=_0x20f072,h=(_0x351ef6,_0x3b3a62,_0x3f9447)=>Xe(_0x351ef6,typeof _0x3b3a62!=_0x49408b(0x23a)?_0x3b3a62+'':_0x3b3a62,_0x3f9447);Object['defineProperty'](exports,Symbol['toStringTag'],{'value':'Module'});const u=require('@univerjs-pro/collaboration-client'),a=require(_0x49408b(0x109)),p=require(_0x49408b(0x2b8)),G=require(_0x49408b(0x20f)),b=require(_0x49408b(0x16d)),Ge=require('@univerjs/drawing'),d=require(_0x49408b(0x11e)),Y=require(_0x49408b(0x172)),m=require('@univerjs-pro/collaboration'),Ee=require(_0x49408b(0x119)),g=require(_0x49408b(0x16f)),$=require(_0x49408b(0x302)),X=require(_0x49408b(0x201)),w=require(_0x49408b(0x34f)),T=require('@univerjs/ui'),D=require(_0x49408b(0x1de)),M=require(_0x49408b(0x25f)),Ke=require(_0x49408b(0x2a7));var qe=Object['getOwnPropertyDescriptor'],ze=(_0x2b90f6,_0x2b666b,_0x25ecb8,_0x513921)=>{for(var _0x30c8df=_0x513921>0x1?void 0x0:_0x513921?qe(_0x2b666b,_0x25ecb8):_0x2b666b,_0x4217a6=_0x2b90f6['length']-0x1,_0x2678b8;_0x4217a6>=0x0;_0x4217a6--)(_0x2678b8=_0x2b90f6[_0x4217a6])&&(_0x30c8df=_0x2678b8(_0x30c8df)||_0x30c8df);return _0x30c8df;},Te=(_0x11dd53,_0x2b1d71)=>(_0x19db9f,_0x5edcf9)=>_0x2b1d71(_0x19db9f,_0x5edcf9,_0x11dd53);let de=class extends a[_0x49408b(0x330)]{constructor(_0x57ddf2,_0x57cb55){const _0x39539c=_0x49408b;super(),this[_0x39539c(0x288)]=_0x57ddf2,this[_0x39539c(0x1b5)]=_0x57cb55,this[_0x39539c(0x242)]();}[_0x49408b(0x242)](){const _0x512955=_0x49408b,_0x17eec3=this;this[_0x512955(0x14d)](this[_0x512955(0x288)][_0x512955(0x2f2)]({'onBeforePasteImage':async _0xaf2abe=>{const _0x55c81e=_0x512955,_0x40cd03=await _0x17eec3[_0x55c81e(0x1b5)][_0x55c81e(0x339)](_0xaf2abe);return _0x40cd03?{'source':_0x40cd03[_0x55c81e(0x373)],'imageSourceType':_0x40cd03[_0x55c81e(0x23d)]}:null;}}));}};de=ze([Te(0x0,b['IDocClipboardService']),Te(0x1,Ge['IImageIoService'])],de);const Oe=[_0x49408b(0x166),'jiqing.500',_0x49408b(0x12c),_0x49408b(0x1bb),_0x49408b(0x2b6),_0x49408b(0x29d)];class me extends a['Disposable']{constructor(){const _0x3839c3=_0x49408b;super(...arguments),h(this,_0x3839c3(0x165),new Map()),h(this,_0x3839c3(0x369),0x0);}[_0x49408b(0x235)](_0x234d3a){const _0x1358a6=_0x49408b;if(this['_assignedColors'][_0x1358a6(0x1e0)](_0x234d3a))return this['_assignedColors'][_0x1358a6(0x140)](_0x234d3a);const _0x4ed88f=Oe[this['_colorIndex']];return this[_0x1358a6(0x369)]=(this['_colorIndex']+0x1)%Oe[_0x1358a6(0x1b4)],this[_0x1358a6(0x165)][_0x1358a6(0x100)](_0x234d3a,_0x4ed88f),_0x4ed88f;}}function we(_0x4cd8cc){const _0x14ac8a=_0x49408b;let _0xe719b9='';for(const _0xb8aa52 of _0x4cd8cc){const {startOffset:_0xb658e9,endOffset:_0x4d41b8,isActive:_0x406772,rangeType:_0x5c0052,segmentId:_0x28c97f,segmentPage:_0x2bb20c}=_0xb8aa52;_0xe719b9[_0x14ac8a(0x1b4)]&&(_0xe719b9+=','),_0xe719b9+=_0xb658e9+':'+_0x4d41b8+':'+(_0x406772?'1':'0')+':'+_0x5c0052+':'+_0x28c97f+':'+_0x2bb20c;}return _0xe719b9;}function Je(_0x1f6671){const _0x26a6c8=_0x49408b,_0x54dc18=_0x1f6671[_0x26a6c8(0x16c)](','),_0x2abe63=[];for(const _0x41ce75 of _0x54dc18){const [_0x338a6a,_0x16cf66,_0x54318a,_0x29c89f,_0x480a05,_0x4b3f6c]=_0x41ce75[_0x26a6c8(0x16c)](':');_0x2abe63['push']({'startOffset':Number(_0x338a6a),'endOffset':Number(_0x16cf66),'collapsed':_0x338a6a===_0x16cf66,'isActive':_0x54318a==='1','rangeType':_0x29c89f===a[_0x26a6c8(0xee)][_0x26a6c8(0x294)]?a[_0x26a6c8(0xee)][_0x26a6c8(0x294)]:a['DOC_RANGE_TYPE']['RECT'],'segmentId':typeof _0x480a05==_0x26a6c8(0x21e)?String(_0x480a05):'','segmentPage':Number(_0x4b3f6c!=null?_0x4b3f6c:-0x1)});}return _0x2abe63[_0x26a6c8(0x19d)](_0x2a0d4c=>_0x2a0d4c[_0x26a6c8(0x358)])||(_0x2abe63[0x0][_0x26a6c8(0x358)]=!0x0),_0x2abe63;}class Ce extends a['RxDisposable']{constructor(){const _0x21cd64=_0x49408b;super(...arguments),h(this,_0x21cd64(0x2e3),new d[(_0x21cd64(0x200))](null)),h(this,'collabCursorState$',this['_collabCursorState$'][_0x21cd64(0x29f)]());}[_0x49408b(0x124)](_0x5d5cb5){const _0x226d75=_0x49408b,{unitID:_0x446520,memberID:_0x47a80b,textRanges:_0x4593c9}=_0x5d5cb5,_0x1d98b2=we(_0x4593c9);if(_0x1d98b2==='')return;const _0x15ca08={'unitID':_0x446520,'memberID':_0x47a80b,'selection':_0x1d98b2};this[_0x226d75(0x2e3)][_0x226d75(0x208)](_0x15ca08);}}var Ze=Object['getOwnPropertyDescriptor'],Qe=(_0x2b4ef0,_0x284275,_0x2cae98,_0x2abe3c)=>{for(var _0x33c6ba=_0x2abe3c>0x1?void 0x0:_0x2abe3c?Ze(_0x284275,_0x2cae98):_0x284275,_0x5b02f9=_0x2b4ef0['length']-0x1,_0x337d6a;_0x5b02f9>=0x0;_0x5b02f9--)(_0x337d6a=_0x2b4ef0[_0x5b02f9])&&(_0x33c6ba=_0x337d6a(_0x33c6ba)||_0x33c6ba);return _0x33c6ba;},L=(_0x20568f,_0x2a6bda)=>(_0x327f3e,_0x5da055)=>_0x2a6bda(_0x327f3e,_0x5da055,_0x20568f);const et=0x12c,tt=0x64;let fe=class extends a[_0x49408b(0x330)]{constructor(_0x29a86e,_0x3de340,_0x199b5d,_0x464a01,_0x260020,_0x2ab6f6,_0x1493ee,_0x32aa6d,_0x4bca8f){const _0x48bc6a=_0x49408b;super(),h(this,'_online',!0x1),h(this,_0x48bc6a(0x242),!0x1),h(this,_0x48bc6a(0x1e3),new d[(_0x48bc6a(0x200))](new Map())),h(this,'cursorInfo$',this[_0x48bc6a(0x1e3)][_0x48bc6a(0x29f)]()),h(this,_0x48bc6a(0x145),new d['BehaviorSubject']([])),h(this,_0x48bc6a(0x25e),this['_roomMembers$'][_0x48bc6a(0x2ef)](d['debounceTime'](et))),h(this,_0x48bc6a(0x1cc),a[_0x48bc6a(0x169)](_0x4e0d07=>{const _0x47433f=_0x48bc6a,_0x536733={'eventID':m[_0x47433f(0x157)][_0x47433f(0x219)],'data':{'unitID':this['unitID'],'memberID':this[_0x47433f(0x2d9)][_0x47433f(0x36e)](),'selection':we(_0x4e0d07)}};this[_0x47433f(0x2d9)][_0x47433f(0x135)](_0x536733,this['unitID']);},tt)),(this[_0x48bc6a(0x1ca)]=_0x29a86e,this['_session']=_0x3de340,this[_0x48bc6a(0xf6)]=_0x199b5d,this['_colorAssignService']=_0x464a01,this['_memberService']=_0x260020,this[_0x48bc6a(0x1a9)]=_0x2ab6f6,this['_transformService']=_0x1493ee,this[_0x48bc6a(0x22b)]=_0x32aa6d,this['_commandService']=_0x4bca8f);}get['cursorInfo'](){const _0x39db0b=_0x49408b;return this[_0x39db0b(0x1e3)]['getValue']();}get[_0x49408b(0x185)](){const _0xa0f7ce=_0x49408b;return this[_0xa0f7ce(0x145)]['getValue']();}[_0x49408b(0x2e9)](){const _0x5c785b=_0x49408b;super[_0x5c785b(0x2e9)](),this[_0x5c785b(0x1e3)][_0x5c785b(0x208)](new Map()),this['_cursorInfo$'][_0x5c785b(0x14a)](),this[_0x5c785b(0x145)][_0x5c785b(0x208)]([]),this[_0x5c785b(0x145)][_0x5c785b(0x14a)]();}[_0x49408b(0x263)](){const _0x4390b4=_0x49408b;this[_0x4390b4(0x242)]||(this[_0x4390b4(0x242)]=!0x0,this['_session'][_0x4390b4(0x183)][_0x4390b4(0x2ef)](d[_0x4390b4(0x128)](this[_0x4390b4(0x30e)]))[_0x4390b4(0x2aa)](_0x39f8d4=>{const _0x1d8d21=_0x4390b4;_0x39f8d4===u['SessionStatus'][_0x1d8d21(0x15f)]?this[_0x1d8d21(0x27a)]():this[_0x1d8d21(0x13c)]();}),this[_0x4390b4(0x2d9)][_0x4390b4(0x278)]['pipe'](d[_0x4390b4(0x128)](this[_0x4390b4(0x30e)]))[_0x4390b4(0x2aa)](_0x1f667d=>{const _0x33cdc8=_0x4390b4,_0x5d48dd=_0x1f667d[_0x33cdc8(0x2d0)];_0x5d48dd===m[_0x33cdc8(0x157)]['UPDATE_CURSOR']&&this[_0x33cdc8(0x33e)](_0x1f667d),_0x5d48dd===m[_0x33cdc8(0x157)][_0x33cdc8(0x218)]&&this[_0x33cdc8(0x2ff)](_0x1f667d);}),this[_0x4390b4(0x14d)](this['_commandService']['onCommandExecuted'](_0x14ba57=>{const _0x9bd21d=_0x4390b4,_0x54f7ec=_0x14ba57[_0x9bd21d(0x285)];_0x54f7ec!=null&&this[_0x9bd21d(0x2ed)]&&_0x14ba57['id']===Y[_0x9bd21d(0xef)]['id']&&_0x54f7ec['unitId']===this[_0x9bd21d(0x1ca)]&&_0x54f7ec['isEditing']===!0x1&&_0x54f7ec['ranges'][_0x9bd21d(0x1b4)]>0x0&&this[_0x9bd21d(0x1cc)](_0x54f7ec[_0x9bd21d(0x2af)]);})),this[_0x4390b4(0x1a9)][_0x4390b4(0x245)]['pipe'](d[_0x4390b4(0x128)](this[_0x4390b4(0x30e)]))[_0x4390b4(0x2aa)](_0x3f37b5=>{const _0x4a2eb2=_0x4390b4;if((_0x3f37b5==null?void 0x0:_0x3f37b5[_0x4a2eb2(0x1ca)])!==this[_0x4a2eb2(0x1ca)])return;const _0x3f4893={'eventID':m['CollaborationEvent'][_0x4a2eb2(0x219)],'data':_0x3f37b5};this['_onCursorUpdate'](_0x3f4893);}),this[_0x4390b4(0x14d)](this[_0x4390b4(0x321)][_0x4390b4(0x120)](_0x2cd312=>{const _0x36566f=_0x4390b4;if(_0x2cd312[_0x36566f(0x285)]==null)return;const _0x31d200=_0x2cd312['params'];if(_0x2cd312['id']!==Y[_0x36566f(0x301)]['id']||_0x31d200[_0x36566f(0x2cb)]!==this['unitID'])return;const _0x1bc372={'id':'doc.mutation.rich-text-editing','params':_0x31d200},_0x458183=this[_0x36566f(0x243)];for(const [_0x7b0b14,_0x42af98]of _0x458183){const _0x5aa549={'id':'doc.mutation.rich-text-editing','params':{'unitId':this[_0x36566f(0x1ca)],'actions':null,'textRanges':_0x42af98[_0x36566f(0x2af)]}},_0x27ad7c=this['_transformService']['transformMutation'](_0x1bc372,_0x5aa549,!0x1);if(m[_0x36566f(0x182)](_0x27ad7c))throw _0x27ad7c['error'];_0x458183[_0x36566f(0x100)](_0x7b0b14,{..._0x42af98,'ranges':_0x27ad7c[_0x36566f(0x20d)][_0x36566f(0x285)][_0x36566f(0x20e)]});}queueMicrotask(()=>{const _0x3b61ac=_0x36566f;this[_0x3b61ac(0x1e3)][_0x3b61ac(0x208)](_0x458183);});})));}['_onCursorUpdate'](_0x5ba62d){const _0x599078=_0x49408b;var _0x101f3c,_0x440c0d;const {memberID:_0x271a6e,selection:_0x22418e}=_0x5ba62d[_0x599078(0x146)],_0x269253=Je(_0x22418e),_0x4e0e02=(_0x440c0d=(_0x101f3c=this[_0x599078(0x1fc)][_0x599078(0x1a5)](this[_0x599078(0x1ca)],_0x271a6e))==null?void 0x0:_0x101f3c['name'])!=null?_0x440c0d:'Unknown\x20user',_0x436998={'color':this[_0x599078(0x207)][_0x599078(0x235)](_0x271a6e),'name':_0x4e0e02,'ranges':_0x269253},_0x429b99=this[_0x599078(0x243)];_0x429b99[_0x599078(0x100)](_0x271a6e,_0x436998),this[_0x599078(0x1e3)][_0x599078(0x208)](_0x429b99);}[_0x49408b(0x2ff)](_0x3b4123){const _0x14f30c=_0x49408b,{memberID:_0x4ef101}=_0x3b4123[_0x14f30c(0x146)],_0x6f6828=this[_0x14f30c(0x243)];_0x6f6828[_0x14f30c(0x12b)](_0x4ef101),this['_cursorInfo$'][_0x14f30c(0x208)](_0x6f6828);}[_0x49408b(0x27a)](){const _0x54122a=_0x49408b;var _0x54060f;if(this[_0x54122a(0x2ed)]=!0x0,((_0x54060f=this['_univerInstanceService'][_0x54122a(0x2e8)]())==null?void 0x0:_0x54060f['getUnitId']())!==this['unitID'])return;const _0x619c77=this[_0x54122a(0xf6)][_0x54122a(0x140)](Y['DocSelectionManagerService'])['getDocRanges']();Array['isArray'](_0x619c77)&&_0x619c77[_0x54122a(0x1b4)]>0x0&&this[_0x54122a(0x1cc)](_0x619c77);}[_0x49408b(0x13c)](){const _0x2b919e=_0x49408b;this[_0x2b919e(0x2ed)]=!0x1;}};fe=Qe([L(0x2,a[_0x49408b(0x30d)](a[_0x49408b(0x348)])),L(0x3,a[_0x49408b(0x30d)](me)),L(0x4,a[_0x49408b(0x30d)](u[_0x49408b(0x211)])),L(0x5,a[_0x49408b(0x30d)](Ce)),L(0x6,m[_0x49408b(0x349)]),L(0x7,a[_0x49408b(0x213)]),L(0x8,a[_0x49408b(0x26b)])],fe);var st=Object[_0x49408b(0x1d1)],it=(_0xcfc4ac,_0x33b0b1,_0x31f661,_0x37dfb6)=>{const _0x2ae700=_0x49408b;for(var _0x40977b=_0x37dfb6>0x1?void 0x0:_0x37dfb6?st(_0x33b0b1,_0x31f661):_0x33b0b1,_0xd0aa1c=_0xcfc4ac[_0x2ae700(0x1b4)]-0x1,_0x4c8830;_0xd0aa1c>=0x0;_0xd0aa1c--)(_0x4c8830=_0xcfc4ac[_0xd0aa1c])&&(_0x40977b=_0x4c8830(_0x40977b)||_0x40977b);return _0x40977b;},A=(_0x560569,_0x510d15)=>(_0x4d82fc,_0x4db684)=>_0x510d15(_0x4d82fc,_0x4db684,_0x560569);const nt=0x12c,rt=0x64,ot=()=>{let _0x269da8=[],_0x14364e=!0x1;return _0x22ae49=>{const _0x4350f7=_0x224e;_0x269da8[_0x4350f7(0x2f8)](_0x22ae49),_0x14364e||(_0x14364e=!0x0,setTimeout(()=>{const _0x360089=_0x4350f7;_0x269da8[_0x360089(0x150)](_0x59c359=>_0x59c359()),_0x269da8=[],_0x14364e=!0x1;}));};};let Se=class extends a[_0x49408b(0x330)]{constructor(_0x2a5514,_0x194751,_0x36376d,_0x2f3d6d,_0x37af3e,_0x3d6d8a,_0x5e4736,_0x57eb8c){const _0x4e3f90=_0x49408b;super(),h(this,_0x4e3f90(0x2ed),!0x1),h(this,_0x4e3f90(0x242),!0x1),h(this,_0x4e3f90(0x1e3),new d[(_0x4e3f90(0x200))](new Map())),h(this,_0x4e3f90(0x132),this['_cursorInfo$']['asObservable']()),h(this,_0x4e3f90(0x145),new d[(_0x4e3f90(0x200))]([])),h(this,_0x4e3f90(0x25e),this[_0x4e3f90(0x145)]['pipe'](d[_0x4e3f90(0xed)](nt))),h(this,'_updateLocalCursor',a[_0x4e3f90(0x169)]((_0x28da96,_0x24d68b)=>{const _0x19c04e=_0x4e3f90,_0x564e31={'eventID':m[_0x19c04e(0x157)][_0x19c04e(0x219)],'data':{'unitID':this[_0x19c04e(0x1ca)],'memberID':this['_session'][_0x19c04e(0x36e)](),'selection':Ee['serializeRangeWithSheet'](_0x28da96,_0x24d68b[_0x19c04e(0x13e)])}};this[_0x19c04e(0x2d9)][_0x19c04e(0x135)](_0x564e31,this[_0x19c04e(0x1ca)]);},rt)),(this[_0x4e3f90(0x1ca)]=_0x2a5514,this['_session']=_0x194751,this[_0x4e3f90(0xf6)]=_0x36376d,this['_colorAssignService']=_0x2f3d6d,this[_0x4e3f90(0x1fc)]=_0x37af3e,this[_0x4e3f90(0x22b)]=_0x3d6d8a,this[_0x4e3f90(0x321)]=_0x5e4736,this['_refRangeService']=_0x57eb8c);}get['cursorInfo'](){const _0x1ec316=_0x49408b;return this[_0x1ec316(0x1e3)]['getValue']();}get[_0x49408b(0x185)](){const _0x249c4a=_0x49408b;return this[_0x249c4a(0x145)]['getValue']();}[_0x49408b(0x2e9)](){const _0x1130dc=_0x49408b;super[_0x1130dc(0x2e9)](),this[_0x1130dc(0x1e3)]['next'](new Map()),this[_0x1130dc(0x1e3)][_0x1130dc(0x14a)](),this[_0x1130dc(0x145)][_0x1130dc(0x208)]([]),this[_0x1130dc(0x145)][_0x1130dc(0x14a)]();}[_0x49408b(0x263)](){const _0x4c82e1=_0x49408b;this['_init']||(this[_0x4c82e1(0x242)]=!0x0,this['_session'][_0x4c82e1(0x183)][_0x4c82e1(0x2ef)](d[_0x4c82e1(0x128)](this[_0x4c82e1(0x30e)]))[_0x4c82e1(0x2aa)](_0x407c7b=>{const _0x26d695=_0x4c82e1;_0x407c7b===u[_0x26d695(0x2a3)][_0x26d695(0x15f)]?this[_0x26d695(0x27a)]():this[_0x26d695(0x13c)]();}),this[_0x4c82e1(0x2d9)][_0x4c82e1(0x278)][_0x4c82e1(0x2ef)](d[_0x4c82e1(0x128)](this[_0x4c82e1(0x30e)]))[_0x4c82e1(0x2aa)](_0x56fb6f=>{const _0x3a654e=_0x4c82e1,_0x424bff=_0x56fb6f[_0x3a654e(0x2d0)];_0x424bff===m[_0x3a654e(0x157)][_0x3a654e(0x219)]&&this[_0x3a654e(0x33e)](_0x56fb6f),_0x424bff===m[_0x3a654e(0x157)][_0x3a654e(0x218)]&&this[_0x3a654e(0x2ff)](_0x56fb6f);}),this[_0x4c82e1(0x279)](),this[_0x4c82e1(0x14d)](this[_0x4c82e1(0x321)][_0x4c82e1(0x120)](_0x3be3a4=>{const _0x103d05=_0x4c82e1;if(this[_0x103d05(0x2ed)]&&_0x3be3a4['id']===g[_0x103d05(0x32c)]['id']&&_0x3be3a4['params']['unitId']===this['unitID']){const _0x3db2da=_0x3be3a4[_0x103d05(0x285)];this[_0x103d05(0x1cc)](_0x3db2da[_0x103d05(0xf2)],_0x3db2da[_0x103d05(0x1c2)][0x0]);}})));}[_0x49408b(0x33e)](_0x27bb10){const _0x3c3c1f=_0x49408b;var _0x5748c8,_0x4735f2;const {memberID:_0x4d7ea6,selection:_0x3be455}=_0x27bb10['data'],{sheetName:_0x49cce6,range:_0x28a109}=Ee['deserializeRangeWithSheet'](_0x3be455),_0xd275a7={'name':(_0x4735f2=(_0x5748c8=this[_0x3c3c1f(0x1fc)][_0x3c3c1f(0x1a5)](this[_0x3c3c1f(0x1ca)],_0x4d7ea6))==null?void 0x0:_0x5748c8[_0x3c3c1f(0x22d)])!=null?_0x4735f2:_0x3c3c1f(0x221),'range':this['_getMergeRange'](_0x49cce6,_0x28a109),'sheetID':_0x49cce6,'color':this['_colorAssignService'][_0x3c3c1f(0x235)](_0x4d7ea6),'selection':_0x3be455},_0x44996f=this[_0x3c3c1f(0x243)];_0x44996f[_0x3c3c1f(0x100)](_0x4d7ea6,_0xd275a7),this['_cursorInfo$'][_0x3c3c1f(0x208)](_0x44996f);}[_0x49408b(0x2ff)](_0x24d3d6){const _0x52cad5=_0x49408b,{memberID:_0x22fd52}=_0x24d3d6[_0x52cad5(0x146)],_0x5c8d7e=this[_0x52cad5(0x243)];_0x5c8d7e[_0x52cad5(0x12b)](_0x22fd52),this['_cursorInfo$'][_0x52cad5(0x208)](_0x5c8d7e);}[_0x49408b(0x323)](_0x187f7c,_0x4f88b4){const _0x14c655=_0x49408b;var _0x52bf95,_0x4cac81;const _0x3b3c4e=(_0x4cac81=(_0x52bf95=this[_0x14c655(0x22b)]['getUniverSheetInstance'](this[_0x14c655(0x1ca)]))==null?void 0x0:_0x52bf95[_0x14c655(0x1a1)](_0x187f7c))==null?void 0x0:_0x4cac81['getMergeData']();return(_0x3b3c4e==null?void 0x0:_0x3b3c4e[_0x14c655(0x1b9)](_0x13f10d=>a['Rectangle']['contains'](_0x13f10d,_0x4f88b4)))||_0x4f88b4;}[_0x49408b(0x279)](){const _0x417284=_0x49408b,_0x21ee4e=new a[(_0x417284(0x19b))](),_0x4bf44b=ot(),_0x5f4f7e=()=>{const _0x3549be=_0x417284;_0x21ee4e[_0x3549be(0x2e9)]();const _0x569b73=(_0x5c4810,_0x4b8e59,_0x250c93,_0x387877)=>{const _0x4fd409=_0x3549be;let _0x47af79=[];switch(_0x5c4810['id']){case g['EffectRefRangId'][_0x4fd409(0x1cb)]:{_0x47af79=g[_0x4fd409(0x192)](_0x5c4810,_0x387877);break;}case g[_0x4fd409(0x346)][_0x4fd409(0x236)]:{_0x47af79=g['handleDeleteRangeMoveUp'](_0x5c4810,_0x387877);break;}case g[_0x4fd409(0x346)][_0x4fd409(0x273)]:{_0x47af79=g[_0x4fd409(0x246)](_0x5c4810,_0x387877);break;}case g[_0x4fd409(0x346)]['InsertRangeMoveDownCommandId']:{_0x47af79=g[_0x4fd409(0x2f1)](_0x5c4810,_0x387877);break;}case g['EffectRefRangId'][_0x4fd409(0x21c)]:{_0x47af79=g['handleInsertRangeMoveRight'](_0x5c4810,_0x387877);break;}case g[_0x4fd409(0x346)][_0x4fd409(0x21b)]:{_0x47af79=g[_0x4fd409(0x20b)](_0x5c4810,_0x387877);break;}case g[_0x4fd409(0x346)]['MoveRangeCommandId']:{_0x47af79=g[_0x4fd409(0x2e4)](_0x5c4810,_0x387877);break;}case g[_0x4fd409(0x346)][_0x4fd409(0x2d3)]:{_0x47af79=g[_0x4fd409(0x133)](_0x5c4810,_0x387877);break;}case g['EffectRefRangId']['RemoveRowCommandId']:{_0x47af79=g[_0x4fd409(0x216)](_0x5c4810,_0x387877);break;}}const _0x40b7e3=g[_0x4fd409(0x17b)](_0x47af79,_0x387877),_0x416927=this[_0x4fd409(0x243)]['get'](_0x4b8e59);if(_0x416927&&_0x40b7e3){const _0x33685a={..._0x416927,'range':_0x40b7e3};this[_0x4fd409(0x243)][_0x4fd409(0x100)](_0x4b8e59,_0x33685a),_0x4bf44b(()=>{const _0x262633=_0x4fd409,_0x30eecb=this['_refRangeService'][_0x262633(0x255)](_0x40b7e3,_0x4b749e=>(_0x30eecb[_0x262633(0x2e9)](),_0x569b73(_0x4b749e,_0x4b8e59,_0x250c93,_0x40b7e3)));_0x21ee4e['add'](_0x30eecb);});}return{'redos':[],'undos':[]};};this[_0x3549be(0x243)][_0x3549be(0x150)]((_0x562e85,_0x423eaa)=>{const _0x596b75=_0x3549be,{range:_0x5b0e77,sheetID:_0x4f4103}=_0x562e85,_0x82ce56=this[_0x596b75(0x333)][_0x596b75(0x255)](_0x5b0e77,_0x584eab=>(_0x82ce56[_0x596b75(0x2e9)](),_0x569b73(_0x584eab,_0x423eaa,_0x4f4103,_0x5b0e77)));_0x21ee4e[_0x596b75(0x306)](_0x82ce56);});};this[_0x417284(0x14d)](a[_0x417284(0x296)](this[_0x417284(0x1e3)][_0x417284(0x2aa)](()=>{_0x5f4f7e();})));}[_0x49408b(0x27a)](){const _0x47fcd6=_0x49408b;var _0x59327e,_0x564307;if(this[_0x47fcd6(0x2ed)]=!0x0,((_0x59327e=this[_0x47fcd6(0x22b)][_0x47fcd6(0x2e8)]())==null?void 0x0:_0x59327e['getUnitId']())!==this['unitID'])return;const _0x20cb57=(_0x564307=this[_0x47fcd6(0xf6)][_0x47fcd6(0x140)](g[_0x47fcd6(0x2dc)])[_0x47fcd6(0x230)]())==null?void 0x0:_0x564307[0x0],_0x1f47e7=this['_univerInstanceService'][_0x47fcd6(0x30b)](a[_0x47fcd6(0x17f)]['UNIVER_SHEET'])[_0x47fcd6(0x118)]();_0x20cb57&&_0x1f47e7&&this[_0x47fcd6(0x1cc)](_0x1f47e7['getSheetId'](),_0x20cb57);}[_0x49408b(0x13c)](){const _0x4b6501=_0x49408b;this[_0x4b6501(0x2ed)]=!0x1;}};Se=it([A(0x2,a[_0x49408b(0x30d)](a[_0x49408b(0x348)])),A(0x3,a['Inject'](me)),A(0x4,a[_0x49408b(0x30d)](u[_0x49408b(0x211)])),A(0x5,a[_0x49408b(0x213)]),A(0x6,a[_0x49408b(0x26b)]),A(0x7,a['Inject'](g['RefRangeService']))],Se);var at=Object[_0x49408b(0x1d1)],ct=(_0x188341,_0x2a83c3,_0x5510b3,_0x294a28)=>{const _0x885311=_0x49408b;for(var _0x31b7aa=_0x294a28>0x1?void 0x0:_0x294a28?at(_0x2a83c3,_0x5510b3):_0x2a83c3,_0x5cdb23=_0x188341[_0x885311(0x1b4)]-0x1,_0x179428;_0x5cdb23>=0x0;_0x5cdb23--)(_0x179428=_0x188341[_0x5cdb23])&&(_0x31b7aa=_0x179428(_0x31b7aa)||_0x31b7aa);return _0x31b7aa;},ie=(_0x3792f8,_0x36b567)=>(_0x2d9e84,_0x2b0a57)=>_0x36b567(_0x2d9e84,_0x2b0a57,_0x3792f8);let x=class extends a[_0x49408b(0x330)]{constructor(_0x544fa5,_0x496037,_0x4bcbb6){const _0x511f73=_0x49408b;super(),h(this,_0x511f73(0x2eb),new Map()),h(this,'_entityInit$',new d[(_0x511f73(0x125))]()),(this[_0x511f73(0x22b)]=_0x544fa5,this[_0x511f73(0xf6)]=_0x496037,this[_0x511f73(0x298)]=_0x4bcbb6,this[_0x511f73(0x242)]());}[_0x49408b(0x2e9)](){const _0x350284=_0x49408b;super[_0x350284(0x2e9)](),this[_0x350284(0x2bf)][_0x350284(0x14a)](),this[_0x350284(0x2eb)]['forEach'](_0x508cb6=>_0x508cb6['dispose']());}[_0x49408b(0x2b3)](_0x54d518){const _0x409264=_0x49408b;return this[_0x409264(0x2eb)][_0x409264(0x1e0)](_0x54d518)?this[_0x409264(0x2eb)][_0x409264(0x140)](_0x54d518)[_0x409264(0x132)]:this[_0x409264(0x2bf)]['pipe'](d['filter'](_0x508628=>_0x508628['unitID']===_0x54d518),d[_0x409264(0x336)](_0x4a2980=>_0x4a2980['cursorInfo$']));}[_0x49408b(0x242)](){const _0x332e5d=_0x49408b;this['_univerInstanceService'][_0x332e5d(0x2c9)](a[_0x332e5d(0x17f)]['UNIVER_SHEET'])[_0x332e5d(0x2ef)](d[_0x332e5d(0x128)](this[_0x332e5d(0x30e)]))['subscribe'](async _0x32d121=>{const _0x383307=_0x332e5d,_0x5c3553=_0x32d121[_0x383307(0x2be)](),_0x16cff4=await this['_startSheetCollabCursor'](_0x5c3553);this['_entityInit$'][_0x383307(0x208)](_0x16cff4),this[_0x383307(0x2eb)][_0x383307(0x100)](_0x5c3553,_0x16cff4);}),this[_0x332e5d(0x22b)][_0x332e5d(0x2c9)](a['UniverInstanceType']['UNIVER_DOC'])[_0x332e5d(0x2ef)](d[_0x332e5d(0x128)](this[_0x332e5d(0x30e)]))[_0x332e5d(0x2ef)](d[_0x332e5d(0x1e8)](_0xc85f2=>!_0xc85f2[_0x332e5d(0x2be)]()[_0x332e5d(0x141)]('__')))[_0x332e5d(0x2aa)](async _0x4d29e9=>{const _0x282a34=_0x332e5d,_0x28eb70=_0x4d29e9['getUnitId'](),_0xfb995e=await this[_0x282a34(0x181)](_0x28eb70);this['_entityInit$']['next'](_0xfb995e),this[_0x282a34(0x2eb)][_0x282a34(0x100)](_0x28eb70,_0xfb995e);}),d['merge'](this[_0x332e5d(0x22b)][_0x332e5d(0x360)](a[_0x332e5d(0x17f)][_0x332e5d(0x11a)]),this['_univerInstanceService'][_0x332e5d(0x360)](a[_0x332e5d(0x17f)][_0x332e5d(0x15a)]))[_0x332e5d(0x2ef)](d[_0x332e5d(0x128)](this[_0x332e5d(0x30e)]))['subscribe'](_0x3442bb=>{const _0x57ca5b=_0x332e5d,_0x43b6d3=_0x3442bb[_0x57ca5b(0x2be)](),_0x357436=this[_0x57ca5b(0x2eb)][_0x57ca5b(0x140)](_0x43b6d3);_0x357436&&(_0x357436[_0x57ca5b(0x2e9)](),this[_0x57ca5b(0x2eb)]['delete'](_0x43b6d3));});}async[_0x49408b(0x334)](_0x1f7ee2){const _0x1ed8ae=_0x49408b,_0x51db5b=await this[_0x1ed8ae(0x298)][_0x1ed8ae(0x1e7)](_0x1f7ee2),_0x34fb85=this[_0x1ed8ae(0xf6)][_0x1ed8ae(0x2b0)](Se,_0x1f7ee2,_0x51db5b);return _0x34fb85[_0x1ed8ae(0x263)](),_0x34fb85;}async[_0x49408b(0x181)](_0x511583){const _0x199151=_0x49408b,_0x589c89=await this[_0x199151(0x298)]['requireSession'](_0x511583),_0x366a2e=this[_0x199151(0xf6)]['createInstance'](fe,_0x511583,_0x589c89);return _0x366a2e[_0x199151(0x263)](),_0x366a2e;}};x=ct([ie(0x0,a[_0x49408b(0x213)]),ie(0x1,a[_0x49408b(0x30d)](a[_0x49408b(0x348)])),ie(0x2,a[_0x49408b(0x30d)](u[_0x49408b(0x188)]))],x);const K=0x14,Re=0xc8,ne=0x4,lt=0x5;function _t(_0x415501,_0x91900f){const _0x37cb6f=_0x49408b;let {radius:_0x4fcf72,width:_0x36a7ee,height:_0x309683}=_0x91900f;_0x4fcf72=_0x4fcf72!=null?_0x4fcf72:0x0,_0x36a7ee=_0x36a7ee!=null?_0x36a7ee:0x1e,_0x309683=_0x309683!=null?_0x309683:0x1e;let _0x529822=0x0,_0x1f2f81=0x0,_0x1f3622=0x0;_0x529822=_0x1f2f81=_0x1f3622=Math['min'](_0x4fcf72,_0x36a7ee/0x2,_0x309683/0x2),_0x415501['beginPath'](),_0x415501['moveTo'](_0x529822,0x0),_0x415501[_0x37cb6f(0x214)](_0x36a7ee-_0x1f2f81,0x0),_0x415501['arc'](_0x36a7ee-_0x1f2f81,_0x1f2f81,_0x1f2f81,Math['PI']*0x3/0x2,0x0,!0x1),_0x415501['lineTo'](_0x36a7ee,_0x309683-_0x1f3622),_0x415501[_0x37cb6f(0x292)](_0x36a7ee-_0x1f3622,_0x309683-_0x1f3622,_0x1f3622,0x0,Math['PI']/0x2,!0x1),_0x415501[_0x37cb6f(0x214)](0x0,_0x309683),_0x415501[_0x37cb6f(0x214)](0x0,_0x529822),_0x415501[_0x37cb6f(0x292)](_0x529822,_0x529822,_0x529822,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x415501[_0x37cb6f(0x269)](),_0x91900f['fill']&&(_0x415501[_0x37cb6f(0x10d)](),_0x415501[_0x37cb6f(0x21a)]=_0x91900f['fill'],_0x91900f[_0x37cb6f(0x311)]===_0x37cb6f(0x2e2)?_0x415501[_0x37cb6f(0x367)](_0x37cb6f(0x2e2)):_0x415501[_0x37cb6f(0x367)](),_0x415501[_0x37cb6f(0x300)]());}class ee extends p[_0x49408b(0x319)]{constructor(_0x2f300f,_0x50ca5d){const _0x1bc6a8=_0x49408b;super(_0x2f300f,_0x50ca5d),h(this,_0x1bc6a8(0x1f7)),h(this,_0x1bc6a8(0x1fd)),(this[_0x1bc6a8(0x1f7)]=_0x50ca5d==null?void 0x0:_0x50ca5d[_0x1bc6a8(0x1f7)],this[_0x1bc6a8(0x1fd)]=_0x50ca5d==null?void 0x0:_0x50ca5d['text']);}static[_0x49408b(0x2a2)](_0x28d797,_0x1d3b08){const _0x1003fc=_0x49408b,{text:_0x2630bb,color:_0x3b4503}=_0x1d3b08;_0x28d797[_0x1003fc(0x10d)](),_0x28d797[_0x1003fc(0x180)]=_0x1003fc(0x162);const _0x14ca6a=_0x28d797[_0x1003fc(0x238)](_0x2630bb)[_0x1003fc(0x312)],_0x4306ea=Math[_0x1003fc(0x35b)](_0x14ca6a+0x2*ne,Re);_t(_0x28d797,{'height':K,'radius':0x4,'width':_0x4306ea,'fill':_0x3b4503}),_0x28d797[_0x1003fc(0x21a)]=_0x1003fc(0x2d4);const _0x39c474=ne,_0x2e27c8=K-lt,_0x5160a6=Re-0x2*ne;if(_0x14ca6a>_0x5160a6){let _0x5c9433='',_0x1f258b=0x0;for(const _0x53f4ad of _0x2630bb){const _0x5da4c3=_0x28d797['measureText'](_0x53f4ad)[_0x1003fc(0x312)];if(_0x1f258b+_0x5da4c3<=_0x5160a6-_0x28d797[_0x1003fc(0x238)](_0x1003fc(0x113))[_0x1003fc(0x312)])_0x5c9433+=_0x53f4ad,_0x1f258b+=_0x5da4c3;else{_0x5c9433+=_0x1003fc(0x113);break;}}_0x28d797[_0x1003fc(0x13d)](_0x5c9433,_0x39c474,_0x2e27c8);}else _0x28d797[_0x1003fc(0x13d)](_0x2630bb,_0x39c474,_0x2e27c8);_0x28d797['restore']();}[_0x49408b(0x34c)](_0x1093fb){const _0x41f4f9=_0x49408b;ee[_0x41f4f9(0x2a2)](_0x1093fb,this);}}const re=_0x49408b(0xf0),ht=_0x49408b(0x314),ut=_0x49408b(0x234),k=0x6,dt=1.5,oe=0x4,ft=1.5,St=_0x49408b(0x2ad);class De{constructor(_0x2c902f,_0x249636,_0x5f18b8,_0x48d148){const _0x30dc7a=_0x49408b;h(this,_0x30dc7a(0x28b),[]),h(this,_0x30dc7a(0x227),null),h(this,_0x30dc7a(0x257),null),h(this,'_anchorDot',null),h(this,_0x30dc7a(0x354),null),h(this,_0x30dc7a(0x129),null),(this[_0x30dc7a(0x299)]=_0x2c902f,this['_scene']=_0x249636,this[_0x30dc7a(0x1ed)]=_0x5f18b8,this['_document']=_0x48d148,this[_0x30dc7a(0x222)]());}set[_0x49408b(0x1ad)](_0x1048e2){const _0x2ef059=_0x49408b;_0x1048e2?(this[_0x2ef059(0x22a)]&&this['_anchorDot']['hide'](),this[_0x2ef059(0x257)]&&this[_0x2ef059(0x257)][_0x2ef059(0x19f)]()):(this[_0x2ef059(0x22a)]&&this[_0x2ef059(0x22a)][_0x2ef059(0x19f)](),this['_textBubble']&&this[_0x2ef059(0x257)][_0x2ef059(0x1ce)]());}[_0x49408b(0x2e9)](){const _0x51133c=_0x49408b;for(const _0x4448f4 of this[_0x51133c(0x28b)])_0x4448f4[_0x51133c(0x2e9)]();this['_textBubble']&&this[_0x51133c(0x257)][_0x51133c(0x2e9)](),this[_0x51133c(0x22a)]&&this[_0x51133c(0x22a)][_0x51133c(0x2e9)](),this[_0x51133c(0x227)]&&this[_0x51133c(0x227)][_0x51133c(0x2e9)](),this[_0x51133c(0x129)]&&this[_0x51133c(0x129)]();}[_0x49408b(0x222)](){const _0x5bb8a3=_0x49408b;var _0x71fa30;const {_docSkeleton:_0x820278,_document:_0x5b84e3}=this,{color:_0x220cf5,name:_0x5651a6,ranges:_0x360756}=this[_0x5bb8a3(0x299)],_0x41c9e5=_0x5b84e3[_0x5bb8a3(0xfe)](),{docsLeft:_0x1e2de6,docsTop:_0x245f31}=_0x41c9e5,_0xffb6f1=new b['NodePositionConvertToCursor'](_0x41c9e5,_0x820278);for(const {startOffset:_0x20b803,endOffset:_0x563b47,rangeType:_0x2d1b42,segmentId:_0x1aa58b,segmentPage:_0x1441ea,collapsed:_0x62181d,isActive:_0x57749e}of _0x360756){const _0x2d78d3=_0x820278[_0x5bb8a3(0x1f8)](_0x20b803,!0x0,_0x1aa58b,_0x1441ea);let _0x161dee=_0x820278['findNodePositionByCharIndex'](_0x563b47,!0x0,_0x1aa58b,_0x1441ea);if(_0x161dee==null&&(_0x161dee=_0x820278[_0x5bb8a3(0x1f8)](_0x563b47-0x1,!0x1,_0x1aa58b,_0x1441ea)),_0x57749e){const {contentBoxPointGroup:_0x1d7d34}=_0xffb6f1[_0x5bb8a3(0x2cf)](_0x161dee,_0x161dee);if(_0x1d7d34[_0x5bb8a3(0x1b4)]===0x0)continue;this[_0x5bb8a3(0x357)](_0x220cf5,_0x1d7d34,_0x1e2de6,_0x245f31,_0x5651a6),this['_eventUnsubscribe']=this[_0x5bb8a3(0x32b)]();}if(_0x2d78d3&&_0x161dee){if(_0x2d1b42===a['DOC_RANGE_TYPE'][_0x5bb8a3(0x2f3)]){const _0x547395=new b[(_0x5bb8a3(0x1c5))](_0x41c9e5,_0x820278),{pointGroup:_0x5dbe71}=(_0x71fa30=_0x547395['getRangePointData'](_0x2d78d3,_0x161dee))!=null?_0x71fa30:{};if(_0x5dbe71==null||_0x5dbe71['length']===0x0)continue;this[_0x5bb8a3(0x36c)](_0x220cf5,_0x5dbe71,_0x1e2de6,_0x245f31);}else{if(!_0x62181d){const {borderBoxPointGroup:_0x451655}=_0xffb6f1[_0x5bb8a3(0x2cf)](_0x2d78d3,_0x161dee);if(_0x451655['length']===0x0)continue;this[_0x5bb8a3(0x295)](_0x220cf5,_0x451655,_0x1e2de6,_0x245f31);}}}}}['_drawAnchor'](_0x39c460,_0x454d9e,_0x2a07cf,_0x504000,_0x13d95c){const _0x3969e6=_0x49408b,_0x4caf5a=this['_getAnchorBounding'](_0x454d9e),{left:_0x1fda57,top:_0x5e1bbb,height:_0x4446a0}=_0x4caf5a,_0x4cce66=this[_0x3969e6(0x2d5)](),_0x655f7e=ft/_0x4cce66,_0x4c1b1e=new p['Rect'](re+a['Tools']['generateRandomId'](k),{'left':_0x1fda57+_0x2a07cf-_0x655f7e,'top':_0x5e1bbb+_0x504000,'height':_0x4446a0,'width':dt,'fill':_0x39c460||p[_0x3969e6(0x19e)](a[_0x3969e6(0x191)]['black'],0x0),'strokeWidth':_0x655f7e,'stroke':St,'evented':!0x0});this[_0x3969e6(0x227)]=_0x4c1b1e,this[_0x3969e6(0x176)][_0x3969e6(0x163)](_0x4c1b1e,b[_0x3969e6(0x232)]);const _0x5226e4=new p[(_0x3969e6(0x26f))](re+a[_0x3969e6(0x361)][_0x3969e6(0x271)](k),{'left':_0x1fda57+_0x2a07cf-_0x655f7e,'top':_0x5e1bbb+_0x504000-oe/0x2,'height':oe,'width':oe,'fill':_0x39c460||p[_0x3969e6(0x19e)](a[_0x3969e6(0x191)][_0x3969e6(0x153)],0x0),'strokeWidth':0x0,'stroke':_0x39c460||p[_0x3969e6(0x19e)](a['COLORS'][_0x3969e6(0x153)],0x0),'evented':!0x1});this[_0x3969e6(0x22a)]=_0x5226e4,this[_0x3969e6(0x176)]['addObject'](_0x5226e4,b[_0x3969e6(0x232)]);const _0x4939c2=new ee(re+a[_0x3969e6(0x361)][_0x3969e6(0x271)](k),{'left':_0x1fda57+_0x2a07cf-_0x655f7e,'top':_0x5e1bbb+_0x504000-K,'text':_0x13d95c,'color':_0x39c460});this[_0x3969e6(0x257)]=_0x4939c2,this[_0x3969e6(0x176)][_0x3969e6(0x163)](_0x4939c2,b[_0x3969e6(0x232)]),this[_0x3969e6(0x1ad)]=!0x1;}[_0x49408b(0x32b)](){const _0x1b74b9=_0x49408b,_0xef26cb=this[_0x1b74b9(0x227)][_0x1b74b9(0x117)][_0x1b74b9(0x33f)](()=>{const _0x57d512=_0x1b74b9;this[_0x57d512(0x1ad)]=!0x0;}),_0x39047d=this['_anchor']['onPointerLeave$'][_0x1b74b9(0x33f)](()=>{const _0x161099=_0x1b74b9;this['_hideTimer']&&clearTimeout(this[_0x161099(0x354)]),this[_0x161099(0x354)]=setTimeout(()=>{const _0x8fc63=_0x161099;this[_0x8fc63(0x1ad)]=!0x1;},0x7d0);});return()=>{const _0x33328a=_0x1b74b9;_0xef26cb[_0x33328a(0x27e)](),_0x39047d[_0x33328a(0x27e)]();};}['_drawTextRange'](_0x2575dc,_0x110f66,_0x547d71,_0x1ffd3c){const _0x5bc8ad=_0x49408b,_0x30deeb=new a[(_0x5bc8ad(0x2e5))](_0x2575dc)[_0x5bc8ad(0x308)](0.2)['toRgbString'](),_0xc31d36=new p[(_0x5bc8ad(0x359))](ht+a[_0x5bc8ad(0x361)][_0x5bc8ad(0x271)](k),{'pointsGroup':_0x110f66,'fill':_0x30deeb||p[_0x5bc8ad(0x19e)](a[_0x5bc8ad(0x191)][_0x5bc8ad(0x153)],0.2),'left':_0x547d71,'top':_0x1ffd3c,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x5bc8ad(0x28b)][_0x5bc8ad(0x2f8)](_0xc31d36),this[_0x5bc8ad(0x176)][_0x5bc8ad(0x163)](_0xc31d36,b[_0x5bc8ad(0x232)]);}['_drawRectRange'](_0x32b6e4,_0x121408,_0x353ebd,_0x4f27c4){const _0x1c2d82=_0x49408b,_0x181f65=new a[(_0x1c2d82(0x2e5))](_0x32b6e4)[_0x1c2d82(0x308)](0.2)[_0x1c2d82(0x2d8)](),_0x4ec333=new p[(_0x1c2d82(0x359))](ut+a['Tools'][_0x1c2d82(0x271)](k),{'pointsGroup':_0x121408,'fill':_0x181f65||p['getColor'](a['COLORS'][_0x1c2d82(0x153)],0.2),'left':_0x353ebd,'top':_0x4f27c4,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x1c2d82(0x28b)]['push'](_0x4ec333),this[_0x1c2d82(0x176)][_0x1c2d82(0x163)](_0x4ec333,b['TEXT_RANGE_LAYER_INDEX']);}[_0x49408b(0xfd)](_0x38693d){const _0x1428b4=_0x38693d[0x0],_0x35b0c4=_0x1428b4[0x0],_0x2a25ce=_0x1428b4[0x2],{x:_0x44f67f,y:_0x3ddeed}=_0x35b0c4,{x:_0x2e71e0,y:_0x590a54}=_0x2a25ce;return{'left':_0x44f67f,'top':_0x3ddeed,'width':_0x2e71e0-_0x44f67f,'height':_0x590a54-_0x3ddeed};}['_getScale'](){const _0x59e33e=_0x49408b,{scaleX:_0xc89a7b,scaleY:_0x55b0bb}=this[_0x59e33e(0x176)][_0x59e33e(0x26a)]();return Math[_0x59e33e(0x338)](_0xc89a7b,_0x55b0bb);}}var It=Object[_0x49408b(0x1d1)],vt=(_0xc2586f,_0x24f2a8,_0x2ccd03,_0x3b8627)=>{const _0x462d24=_0x49408b;for(var _0x1b2b26=_0x3b8627>0x1?void 0x0:_0x3b8627?It(_0x24f2a8,_0x2ccd03):_0x24f2a8,_0x1f086d=_0xc2586f[_0x462d24(0x1b4)]-0x1,_0x58c5d3;_0x1f086d>=0x0;_0x1f086d--)(_0x58c5d3=_0xc2586f[_0x1f086d])&&(_0x1b2b26=_0x58c5d3(_0x1b2b26)||_0x1b2b26);return _0x1b2b26;},W=(_0x8e1005,_0x30dc3e)=>(_0x2285ee,_0x2efbe8)=>_0x30dc3e(_0x2285ee,_0x2efbe8,_0x8e1005);let Ie=class extends a[_0x49408b(0x330)]{constructor(_0x2c378d,_0x2153e2,_0x401866,_0x36cd02,_0x13d54b){const _0x58eca0=_0x49408b;super(),h(this,'_cursorShapes',[]),h(this,_0x58eca0(0x17d),[]),(this[_0x58eca0(0x1d0)]=_0x2c378d,this[_0x58eca0(0x22e)]=_0x2153e2,this[_0x58eca0(0x112)]=_0x401866,this[_0x58eca0(0x321)]=_0x36cd02,this[_0x58eca0(0x1f4)]=_0x13d54b,this[_0x58eca0(0x242)]());}[_0x49408b(0x242)](){const _0x19de7f=_0x49408b,_0x5b850b=this[_0x19de7f(0x1d0)][_0x19de7f(0x2cb)],_0x50ec15=this[_0x19de7f(0x22e)];this[_0x19de7f(0x14d)](d[_0x19de7f(0x1ef)]([this['_collabCursorController'][_0x19de7f(0x2b3)](_0x5b850b),this[_0x19de7f(0x1f4)]['currentTheme$']])['pipe']($[_0x19de7f(0x212)](([_0x2afd49,_0x235405])=>({'skeleton':_0x50ec15[_0x19de7f(0x36d)](),'cursors':[..._0x2afd49['values']()][_0x19de7f(0x24a)](_0x2b2929=>({..._0x2b2929,'color':this[_0x19de7f(0x1f4)][_0x19de7f(0x27f)](_0x2b2929[_0x19de7f(0x1f7)])}))})))[_0x19de7f(0x2aa)](_0x5ddba8=>{const _0x38a672=_0x19de7f;if(this['_removeCollabCursors'](),_0x5ddba8){const {skeleton:_0x145f63,cursors:_0x1afb8a}=_0x5ddba8;this[_0x38a672(0x1ae)](_0x145f63,_0x1afb8a);}})),this[_0x19de7f(0x365)](),this[_0x19de7f(0x2b1)]();}[_0x49408b(0x1ae)](_0xcfcc95,_0x37e59d){const _0x54fddd=_0x49408b,{scene:_0x3f7c8f,mainComponent:_0x368d02}=this[_0x54fddd(0x1d0)],_0x5e0d06=_0x37e59d[_0x54fddd(0x212)](_0x433c1c=>new De(_0x433c1c,_0x3f7c8f,_0xcfcc95,_0x368d02));this[_0x54fddd(0x1a4)]=_0x5e0d06,this['_cursors']=_0x37e59d;}[_0x49408b(0x23f)](){const _0x1bb45c=_0x49408b;this[_0x1bb45c(0x355)]();const {scene:_0x4c08af,mainComponent:_0x302664}=this[_0x1bb45c(0x1d0)],_0x56bca6=this['_docSkeletonManagerService'][_0x1bb45c(0x36d)](),_0x3cab1e=this[_0x1bb45c(0x17d)][_0x1bb45c(0x212)](_0x4233de=>new De(_0x4233de,_0x4c08af,_0x56bca6,_0x302664));this[_0x1bb45c(0x1a4)]=_0x3cab1e;}['_removeCollabCursors'](){const _0x1b47e3=_0x49408b;this[_0x1b47e3(0x1a4)]['forEach'](_0x10a206=>_0x10a206[_0x1b47e3(0x2e9)]()),this[_0x1b47e3(0x1a4)]=[];}[_0x49408b(0x2b1)](){const _0x2469da=_0x49408b,_0x2ff319=[b[_0x2469da(0x142)]['id']];this[_0x2469da(0x14d)](this['_commandService'][_0x2469da(0x120)](_0x29d204=>{const _0x55f3b2=_0x2469da;_0x2ff319[_0x55f3b2(0x147)](_0x29d204['id'])&&_0x29d204[_0x55f3b2(0x285)][_0x55f3b2(0x2cb)]===this['_context'][_0x55f3b2(0x2cb)]&&this[_0x55f3b2(0x23f)]();}));}[_0x49408b(0x365)](){const _0x13b9bf=_0x49408b;this[_0x13b9bf(0x14d)](a[_0x13b9bf(0x34e)](this[_0x13b9bf(0x1d0)][_0x13b9bf(0x114)][_0x13b9bf(0x1c8)])[_0x13b9bf(0x2ef)]($['filter'](_0xea6c23=>_0xea6c23['type']===p[_0x13b9bf(0x111)][_0x13b9bf(0x1a0)]),$[_0x13b9bf(0x116)](0x10))[_0x13b9bf(0x2aa)](()=>{const _0x2ad41f=_0x13b9bf;this[_0x2ad41f(0x23f)]();}));}};Ie=vt([W(0x1,a[_0x49408b(0x30d)](Y[_0x49408b(0x21d)])),W(0x2,a[_0x49408b(0x30d)](x)),W(0x3,a[_0x49408b(0x26b)]),W(0x4,a[_0x49408b(0x30d)](a[_0x49408b(0x31a)]))],Ie);const gt=0x1,mt=1.5;function _0x281e(){const _0x216540=['endRow','yellow.400','PY_RUNTIME_SCRIPT_ERROR','asObservable','sessionTicket','transformIMECache','drawWith','SessionStatus','Failed','clsx','1em','@univerjs/rpc','0\x200\x2016\x2016','1977980cUyTNu','subscribe','memberID','_removeClearOtherTimer','rgba(255,\x20255,\x20255,\x200.01)','1138128hruxye','ranges','createInstance','_initCommandExecutedListener','_setupBeforeClosingHandler','getCollabCursors$','getRenderById','setParam','blue.400','LICENSE_MAX_UNITS_EXCEEDED','@univerjs/engine-render','NOT_FOUND','attrs','_getSaveTimeout','PERMISSION_DENIED','assign','getUnitId','_entityInit$','apply','_scheduleClearOtherTimer','isTransformMutationsWithChangesetSuccess','HEADER_MENU','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','setConfig','CollaborationStatusDisplay','onLocalMutation','collaboration-client-ui.config','getTypeOfUnitAdded$','tag','unitId','type','Workbook','focused$','getRangePointData','eventID','call','_logService','RemoveColCommandId','#FFF','_getScale','registerBeforeClose','popstate','toRgbString','_session','_ensureSubject','_getSheetObject','SheetsSelectionsService','IUIPartsService','_send','INVITE_CODE_HAS_BEEN_UES','undoState','_initEvent','evenodd','_collabCursorState$','handleMoveRange','ColorKit','_updateSubUnitFromURLParams','_handleEvent','getFocusedUnit','dispose','substring','_entities','_transformHistoryAndStateStack','_online','touchDependencies','pipe','IRemoteInstanceService','handleInsertRangeMoveDown','addClipboardHook','RECT','_saveTaskMap','executeCommand','body','_notificationService','push','_registerDependencies','search','_collaborationUIEventService','YUUMI_NO_CUBOID_FOR_QUESTION','CollaborationSocketService','labelPosition','_onCursorDelete','restore','RichTextEditingMutation','rxjs/operators','addEventListener','permission.title','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','add','ticket','setAlpha','OnLineIcon','_hovered','getCurrentUnitForType','Optional','Inject','dispose$','_initDependencies','collabStatus.synced','fillRule','width','wsSessionTicketUrl','collab-text-range-','_range','getOwnPropertySymbols','getStateCache','transformByState','Shape','ThemeService','_revisionService','_backgroundColor','DocSelectionManagerService','m1Prime','510192IQoavD','EMAIL_HAS_BEEN_BOUND','_commandService','_transformService','_getMergeRange','_cachedData','getConfig','currentColor','WECHAT_HAS_BEEN_BOUND','mapTo','ENSURE_SNAPSHOT_EXECUTION','_name','_handleHover','SetSelectionsOperation','exhaustSavingTask','UniverCollaborationClientUIPlugin','_setupSubUnitSync','RxDisposable','_uiPartsService','round','_refRangeService','_startSheetCollabCursor','connectInjector','switchMap','MessageType','max','saveImage','collabStatus.offline','actions','disposeUnit','_scheduleSaving','_onCursorUpdate','subscribeEvent','size','getUndoRedoMutationParamsCache','FETCH_MISS','[CollaborationDataLoaderController]','1086bXXzad','DependentOn','EffectRefRangId','startRow','Injector','ITransformService','doc.mutation.rich-text-editing','UNAUTHENTICATED','_draw','_heartbeatTimer','fromEventSubject','react/jsx-runtime','_scheduleHeartbeat','url(#$1','DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT','MOBILE_HAS_BEEN_BOUND','_hideTimer','_removeCollabCursors','transformMutation','_drawAnchor','isActive','RegularPolygon','M0\x200H16V16H0z','min','FromArray','DocIMEInputManagerService','setTimeout','CHANGESET_REVISION_CONFILICT','getTypeOfUnitDisposed$','Tools','_messageService','currentSkeleton$','SUBMIT_CHANGESET_TIMEOUT','_initResize','editingUnit','fill','_beforeCloseService','_colorIndex','endColumn','_initEntityListener','_drawRectRange','getSkeleton','getMemberID','searchParams','getCurrentRevOfUnit','Error','YUUMI_ALL_TABLES_IS_INVALID','source','onMouseMove','replaceState','_instanceService','registerDependencies','SOCKET_FAILED_RETRY','toString','on-line-icon','getDocRanges','IBeforeCloseService','APPLY_DUPLICATED','_unitStatus','_clearOtherTimers','debounceTime','DOC_RANGE_TYPE','SetTextSelectionsOperation','collab-text-anchor-','19131xhwOBp','subUnitId','result','collabStatus.fetchMiss','ILocalStorageService','_injector','SNAPSHOT_INVALID_SNAPSHOT','CollaborationUIEventId','collabStatus.conflict','YUUMI_SUBSCRIPTION_NOT_FOUND','Warning','activeSheet$','_getAnchorBounding','getOffsetConfig','newValue','set','getUnhiddenWorksheets','SOCKET_FAILED','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','_httpService','history','NO_OTHER_CLIENTS_EDITING','Disposable','onPointerLeave$','@univerjs/core','hasOwnProperty','svg','CollaborationController','save','updateOfflineData','0\x200\x2017\x2016','values','TRANSFORM_CHANGE_OBSERVABLE_TYPE','_collabCursorController','...','engine','enableLocalCache','throttleTime','onPointerEnter$','getActiveSheet','@univerjs/engine-formula','UNIVER_DOC','transformStateCache','INVITE_CODE_REQUIRED','DesktopCollaborationStatusDisplayController','rxjs','ALREADY_EXISTS','onCommandExecuted','OTHER_CLIENTS_EDITING','on-line-icon_clip0_910_349','error','syncEditingCollabCursor','Subject','UnitStatus','_getSessionTicket','takeUntil','_eventUnsubscribe','_localCacheService','delete','green.600','forwardRef','_configService','then','AWAITING_WITH_PENDING','APPLY_REVISION_CONFILICT','cursorInfo$','handleIRemoveCol','collab-client.tooltip.reconnect','send','urlChange$','univer-flex\x20univer-items-center','triggerDblclick','ACTIVE_UNIT_EVENT_CHANNEL','DocStateChangeManagerService','transform','_toggleOffline','fillText','range','unload','get','startsWith','SetDocZoomRatioOperation','xlink:href','VIEW_MAIN','_roomMembers$','data','includes','useDependency','INVALID_ARGUMENT','complete','addHandlerCallback','path','disposeWithMe','_localeService','selection','forEach','_sheetSkeletonManagerService','href','black','_transformPreviousActiveRange','disableLocalCache','DocCollaborationEntity','CollaborationEvent','RemoteUniscriptService','concat','UNIVER_SHEET','NOT_COLLAB','INotificationService','IMessageService','SheetSkeletonManagerService','ONLINE','getSheetId','uni.network.url-service','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','addObject','WebBrowserSingleActiveUnitService','_assignedColors','purple.300','Plugin','Vector2','debounce','_urlService','runId','split','@univerjs/docs-ui','session.collaboration-timeout','@univerjs/sheets','APPLY_REJECT','getCellPositionByOffset','@univerjs/docs','_transformUndoRedoStack','_docTransformIMECacheService','_registerRenderDependencies','_scene','WebURLService','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','location','override','runRefRangeMutations','addObjects','_cursors','runOnServer','UniverInstanceType','font','_startDocCollabCursor','isTransformMutationFailure','sessionStatus$','transformSelections','roomMembers','whenReady','loadOfflineData','CollaborationSessionService','90LRtzjb','YUUMI_URL_COL_OUT_OF_RANGE','mutations','getCurrent','getRelativeToViewportCoord','_docTransformStateCacheService','collabStatus.notCollab','createElement','COLORS','handleDeleteRangeMoveLeft','permission.content','idSuffix','saveTaskMap','ILocalCacheService','from','unshift','loadUnit','_docSyncEditingCollabCursorService','DisposableCollection','CollaborationStatus','some','getColor','show','resize','getSheetBySheetId','extend','stringify','_cursorShapes','getMember','redoState','_localStorageService','top','_syncEditingCollabCursorService','entries','IConfigService','PENDING','_hover','_updateCollabCursors','_handleJoinEvent','ISnapshotServerService','indexOf','white','colorChannel1','length','_imageIoService','_unitOnClients','skeleton','getCollabEntity$','find','key','red.300','_updateURLWithCurrentState','distinctUntilChanged','http://www.w3.org/2000/svg','all','invokeId','onStarting','selections','debug','replace','NodePositionConvertToRectRange','status$','BuiltInUIPart','onTransformChange$','propertyIsEnumerable','unitID','DeleteRangeMoveLeftCommandId','_updateLocalCursor','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','hide','collaboration-client.offline-data-not-saved','_context','getOwnPropertyDescriptor','none','jsxs','column','YUUMI_RATE_OVER_LIMIT','OFFLINE','mask','_selfUnitIDs','UNDEFINED','transformMutationsWithChangeset','JOIN_ROOM_FAILED','clipPath','replaceDocRanges','@univerjs/design','defs','has','pushState','use','_cursorInfo$','_collaborationController','[RemoteUniscriptService]:\x20no\x20focused\x20unit','univer-flex\x20univer-mr-2\x20univer-text-xl','requireSession','filter','UNRECOGNIZED','origin','_docTransformSelectionsService','useObservable','_docSkeleton','storage','combineLatest','_docStateChangeManagerService','1611165hAYoZZ','Tooltip','_initStatusListener','_themeService','COMPLETION_FINISHED','session.will-retry','color','findNodePositionByCharIndex','getParam','APPLY_PERMISSION_DENIED','fromEvent','_memberService','text','INVITE_CODE_ALREADY_BOUND','setItem','BehaviorSubject','@univerjs/sheets-ui','2272RFvnmk','entityInit$','getItem','registerRenderModule','BrowserCollaborationSocketService','_colorAssignService','next','deepClone','YUUMI_UNABLE_LOAD_URL','handleInsertRow','bottom','m2Prime','textRanges','@univerjs/network','YUUMI_ASYNCIO_CANCELLED','MemberService','map','IUniverInstanceService','lineTo','setShapeProps','handleIRemoveRow','_createSocketURL','USERS_LEAVE','UPDATE_CURSOR','fillStyle','InsertRowCommandId','InsertRangeMoveRightCommandId','DocSkeletonManagerService','string','collaboration.closeRoom','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','Unknown\x20user','_render','_handleLeaveEvent','url(#off-line-icon_clip0_910_343)','LICENSE_DISTRO_REJECTED','application/json','_anchor','with','LOGIN_FAILED','_anchorDot','_univerInstanceService','_doCreateSocket','name','_docSkeletonManagerService','_handleHeartbeatEvent','getCurrentSelections','_disabled','TEXT_RANGE_LAYER_INDEX','defIds','collab-rect-range-','assignAColorForMemberID','DeleteRangeMoveUpCommandId','UniverCollaborationClientPlugin','measureText','clearInterval','symbol','height','random','imageSourceType','current','_refreshCollabCursors','registerComponent','defineProperty','_init','cursorInfo','SNAPSHOT_HAS_BEEN_REMOVED','collabCursorState$','handleInsertCol','LocaleService','jsx','univerjs-icon\x20univerjs-icon-','flatMap','335308UNCkaQ','YUUMI_TABLE_NOT_FOUND_IN_UNIT','makeDirty','sheetID','prototype','useRef','_labelPosition','_dataLoaderService','getUnitStatus$','_status$','registerRefRange','unit','_textBubble','code','_color','_id','CollaborationDataLoaderController','getLocalCacheKey','INVALID_INVITE_CODE','roomMembers$','react','_config','IRenderManagerService','createIdentifier','init','docStateChange$','clearTimeout','INTERNAL_ERROR','HTTPService','row','closePath','getAncestorScale','ICommandService','LOCAL_CACHE_INTERVAL_KEY','isArray','subunit','Rect','reconnect','generateRandomId','url(#on-line-icon_clip0_910_349)','InsertColCommandId','useCallback','merge','transformRemoteChangeset','SetWorksheetActivateCommand','event$','_onRefRangeChange','_toggleOnline','DEFAULT_WS_SESSION_TICKET_URL','off-line-icon_clip0_910_343','setActiveRange','unsubscribe','getColorFromTheme','LICENSE_EXPORT_SIZE_EXCEEDED','TOO_MANY_REQUESTS','children','className','APPLY_NON_SEQUENTIAL_REVISION','params','setStateCache','_saveCache','_docClipboardService','USER_NOT_INVITED_CODE','startColumn','_shapes','_lastPointer','YUUMI_AI_RUN_FAILED','CONNECTOR_DATA_TOO_LARGE','_initStatusComponent','_renderManagerService','div','arc','ILogService','TEXT','_drawTextRange','toDisposable','8020pQliwh','_collabSessionService','_cursor','pluginName','icon'];_0x281e=function(){return _0x216540;};return _0x281e();}class Pe extends p['Shape']{constructor(_0x2de016,_0x569cff){const _0x32a3c4=_0x49408b;super(_0x2de016,_0x569cff),h(this,_0x32a3c4(0x259)),h(this,'_hovered',!0x1),h(this,_0x32a3c4(0x315)),h(this,_0x32a3c4(0x32a),''),h(this,_0x32a3c4(0x251),_0x32a3c4(0x1a8)),h(this,_0x32a3c4(0x31c)),(_0x569cff&&this[_0x32a3c4(0x215)](_0x569cff),this[_0x32a3c4(0x117)][_0x32a3c4(0x33f)](()=>this[_0x32a3c4(0x215)]({'hovered':!0x0})),this[_0x32a3c4(0x108)][_0x32a3c4(0x33f)](()=>this[_0x32a3c4(0x215)]({'hovered':!0x1})));}[_0x49408b(0x215)](_0xa29fe8){const _0x33a3e2=_0x49408b;var _0x1cfeed,_0x371482,_0x566e63,_0xfeb5fa,_0x21e182,_0x4ddbdc;this['_color']=(_0x1cfeed=_0xa29fe8['color'])!=null?_0x1cfeed:this['_color'],this[_0x33a3e2(0x30a)]=(_0x371482=_0xa29fe8['hovered'])!=null?_0x371482:this[_0x33a3e2(0x30a)],this['_range']=(_0x566e63=_0xa29fe8[_0x33a3e2(0x13e)])!=null?_0x566e63:this[_0x33a3e2(0x315)],this['_name']=(_0xfeb5fa=_0xa29fe8[_0x33a3e2(0x22d)])!=null?_0xfeb5fa:this[_0x33a3e2(0x32a)],this[_0x33a3e2(0x251)]=(_0x21e182=_0xa29fe8[_0x33a3e2(0x2fe)])!=null?_0x21e182:this[_0x33a3e2(0x251)],this['_backgroundColor']=(_0x4ddbdc=_0xa29fe8['backgroundColor'])!=null?_0x4ddbdc:this[_0x33a3e2(0x31c)],this[_0x33a3e2(0x318)]({'width':_0xa29fe8[_0x33a3e2(0x312)],'height':_0xa29fe8[_0x33a3e2(0x23b)]});}[_0x49408b(0xe1)](_0x5440f9){const _0x5af9d0=_0x49408b,{row:_0x56982a,column:_0xf6956a}=_0x5440f9;if(_0x56982a>=this[_0x5af9d0(0x315)][_0x5af9d0(0x347)]&&_0x56982a<=this[_0x5af9d0(0x315)][_0x5af9d0(0x29c)]&&_0xf6956a>=this[_0x5af9d0(0x315)][_0x5af9d0(0x28a)]&&_0xf6956a<=this['_range'][_0x5af9d0(0x36a)]){this['setShapeProps']({'hovered':!0x0});return;}this['setShapeProps']({'hovered':!0x1});}[_0x49408b(0x138)](_0x25b0a3){return!0x1;}[_0x49408b(0x34c)](_0x3f5ddf){const _0x3c4100=_0x49408b;p['Rect']['drawWith'](_0x3f5ddf,{'width':this[_0x3c4100(0x312)],'height':this[_0x3c4100(0x23b)],'strokeWidth':mt,'stroke':this['_color'],'evented':!0x1,'fill':this[_0x3c4100(0x31c)]}),this[_0x3c4100(0x30a)]&&(_0x3f5ddf[_0x3c4100(0x10d)](),_0x3f5ddf[_0x3c4100(0x13b)](0x1,0x0,0x0,0x1,this['width'],this[_0x3c4100(0x251)]===_0x3c4100(0x20c)?0x0:-0x14),ee[_0x3c4100(0x2a2)](_0x3f5ddf,{'text':this['_name'],'color':this[_0x3c4100(0x259)]}),_0x3f5ddf[_0x3c4100(0x300)]());}}var Ct=Object['getOwnPropertyDescriptor'],pt=(_0x3bae75,_0x8a952,_0x237196,_0x563d20)=>{for(var _0x23dcd2=_0x563d20>0x1?void 0x0:_0x563d20?Ct(_0x8a952,_0x237196):_0x8a952,_0x571a95=_0x3bae75['length']-0x1,_0x5c3e5c;_0x571a95>=0x0;_0x571a95--)(_0x5c3e5c=_0x3bae75[_0x571a95])&&(_0x23dcd2=_0x5c3e5c(_0x23dcd2)||_0x23dcd2);return _0x23dcd2;},ae=(_0x17873d,_0x59e912)=>(_0x1afd34,_0x1657de)=>_0x59e912(_0x1afd34,_0x1657de,_0x17873d);const bt=0x1389;let ve=class extends a[_0x49408b(0x330)]{constructor(_0x282433,_0x357e7a,_0x22d812,_0x1539b6){const _0x91f43f=_0x49408b;super(),h(this,_0x91f43f(0x17d),new Set()),h(this,_0x91f43f(0x28c),null),(this[_0x91f43f(0x1d0)]=_0x282433,this[_0x91f43f(0x151)]=_0x357e7a,this[_0x91f43f(0x112)]=_0x22d812,this[_0x91f43f(0x1f4)]=_0x1539b6,this['_init']());}[_0x49408b(0x242)](){const _0x3ea064=_0x49408b;this['_sheetSkeletonManagerService'][_0x3ea064(0x363)]['pipe']($[_0x3ea064(0x128)](this[_0x3ea064(0x30e)]),$['switchMap'](_0x1548f8=>{const _0x3388ca=_0x3ea064;if(_0x1548f8){const _0x2803c9=_0x1548f8['sheetId'];return d[_0x3388ca(0x1ef)](this[_0x3388ca(0x112)]['getCollabCursors$'](this[_0x3388ca(0x1d0)][_0x3388ca(0x2cb)]),this['_themeService']['currentTheme$'])[_0x3388ca(0x2ef)]($[_0x3388ca(0x212)](([_0x452b4e,_0x6b9051])=>{const _0xf21f18=_0x3388ca,_0x4c45a9=new Map();return _0x452b4e[_0xf21f18(0x150)]((_0x3d9d86,_0x43267b)=>{const _0x4871ad=_0xf21f18;if(_0x3d9d86[_0x4871ad(0x24e)]===_0x2803c9){const _0x160fc7={..._0x3d9d86};_0x160fc7[_0x4871ad(0x1f7)]=this[_0x4871ad(0x1f4)][_0x4871ad(0x27f)](_0x3d9d86[_0x4871ad(0x1f7)]),_0x4c45a9[_0x4871ad(0x100)](_0x43267b,_0x160fc7);}}),{'skeleton':_0x1548f8,'cursors':_0x4c45a9};}));}return d['of']({'skeleton':null,'cursors':new Map()});}))[_0x3ea064(0x2aa)](({skeleton:_0x493a11,cursors:_0xb5f480})=>{const _0x1b48e1=_0x3ea064;this[_0x1b48e1(0x355)](),_0x493a11&&this[_0x1b48e1(0x1ae)](_0x493a11,_0xb5f480);}),this['_sheetSkeletonManagerService']['currentSkeleton$'][_0x3ea064(0x2aa)](_0x29b9d9=>{const _0x26ca86=_0x3ea064;if(_0x29b9d9==null)return;const {skeleton:_0xde8c5}=_0x29b9d9,{scene:_0x277a77}=this[_0x26ca86(0x1d0)];_0x277a77['onPointerMove$'][_0x26ca86(0x33f)](a[_0x26ca86(0x169)](_0x4ea688=>{const _0x13fe11=_0x26ca86;var _0x4537b8,_0x210cb5;const {offsetX:_0x17e504,offsetY:_0xd47661}=_0x4ea688,{x:_0x41f49f,y:_0x2c6a1f}=_0x277a77[_0x13fe11(0x18d)](p[_0x13fe11(0x168)]['FromArray']([_0x17e504,_0xd47661])),{scaleX:_0x585ddc,scaleY:_0x460817}=_0x277a77[_0x13fe11(0x26a)](),_0x92586a=_0x277a77['getViewport'](p['SHEET_VIEWPORT_KEY'][_0x13fe11(0x144)]),_0x12bcf6=_0x277a77['getVpScrollXYInfoByPosToVp'](p['Vector2'][_0x13fe11(0x35c)]([_0x41f49f,_0x2c6a1f]),_0x92586a),_0x1a9299=_0xde8c5[_0x13fe11(0x171)](_0x17e504,_0xd47661,_0x585ddc,_0x460817,_0x12bcf6);((_0x4537b8=this[_0x13fe11(0x28c)])==null?void 0x0:_0x4537b8[_0x13fe11(0x1d4)])===_0x1a9299[_0x13fe11(0x1d4)]&&((_0x210cb5=this[_0x13fe11(0x28c)])==null?void 0x0:_0x210cb5[_0x13fe11(0x268)])===_0x1a9299['row']||this[_0x13fe11(0x17d)][_0x13fe11(0x150)](_0x1a74ca=>{const _0x1be818=_0x13fe11;_0x1a74ca[_0x1be818(0xe1)](_0x1a9299);});},0x64));});}[_0x49408b(0x1ae)](_0x329d81,_0x1d01b6){const _0x284e32=_0x49408b;var _0xb83c0a;const _0x1d0831=(_0xb83c0a=this[_0x284e32(0x151)][_0x284e32(0x18c)]())==null?void 0x0:_0xb83c0a[_0x284e32(0x1b7)];if(!_0x1d0831)return;const _0x37721e=this[_0x284e32(0x2db)]();if(!_0x37721e)return;this['_cursors'][_0x284e32(0x150)](_0x480d8a=>{const _0x4bbb9=_0x284e32;_0x480d8a[_0x4bbb9(0x24d)]();});const {scene:_0xd21ddd}=_0x37721e,_0xfa6424=Et(Array[_0x284e32(0x197)](_0x1d01b6[_0x284e32(0x110)]()))[_0x284e32(0x212)](_0x35ef94=>{const _0x50bd89=_0x284e32,{color:_0x22cb16,range:_0x2d957e,name:_0x2f50cb,selection:_0x92bdc5,sheetID:_0x588d01}=_0x35ef94,{startColumn:_0x4be384,startRow:_0x511c56,endColumn:_0x9cbcb2,endRow:_0x240455}=_0x2d957e,_0x4d92af=X['getCoordByCell'](_0x511c56,_0x4be384,_0xd21ddd,_0x1d0831),_0xdf4534=X['getCoordByCell'](_0x240455,_0x9cbcb2,_0xd21ddd,_0x1d0831),{columnHeaderHeightAndMarginTop:_0x5d770b}=_0x1d0831,{startX:_0x4cc019,startY:_0x4ab658}=_0x4d92af,{endX:_0x10aa7a,endY:_0x1dd641}=_0xdf4534,_0x18fb5c=_0x10aa7a-_0x4cc019,_0x4571a3=_0x1dd641-_0x4ab658,_0x478090={'labelPosition':_0x4ab658-_0x5d770b>=K?'top':_0x50bd89(0x20c),'sheetID':_0x588d01,'range':_0x2d957e,'color':_0x22cb16,'name':_0x2f50cb,'selection':_0x92bdc5,'left':_0x4cc019,'top':_0x4ab658,'width':_0x18fb5c,'height':_0x4571a3,'evented':!0x1,'zIndex':bt};return new Pe(_0x2f50cb,_0x478090);});_0xd21ddd[_0x284e32(0x17c)](_0xfa6424,gt),this[_0x284e32(0x17d)]=new Set(_0xfa6424);}[_0x49408b(0x355)](){const _0x3b7c04=_0x49408b;var _0x19719c;(_0x19719c=this[_0x3b7c04(0x17d)])==null||_0x19719c[_0x3b7c04(0x150)](_0x307712=>_0x307712[_0x3b7c04(0x2e9)]());}[_0x49408b(0x2db)](){const _0x15634c=_0x49408b;return X['getSheetObject'](this['_context'][_0x15634c(0x256)],this[_0x15634c(0x1d0)]);}};ve=pt([ae(0x1,a[_0x49408b(0x30d)](X[_0x49408b(0x15e)])),ae(0x2,a['Inject'](x)),ae(0x3,a[_0x49408b(0x30d)](a[_0x49408b(0x31a)]))],ve);function Et(_0x28eb7f){const _0x75e519=_0x49408b,_0xf8eb20=new Map();return _0x28eb7f['forEach'](_0xd21501=>{const _0x1ea5bc=_0x224e;if(_0xf8eb20[_0x1ea5bc(0x1e0)](_0xd21501[_0x1ea5bc(0x14f)])){const _0x438c03=_0xf8eb20[_0x1ea5bc(0x140)](_0xd21501['selection']);_0x438c03['name']+=',\x20'+_0xd21501[_0x1ea5bc(0x22d)];}else _0xf8eb20['set'](_0xd21501[_0x1ea5bc(0x14f)],_0xd21501);}),Array['from'](_0xf8eb20[_0x75e519(0x110)]());}var E=function(){const _0xcd042c=_0x49408b;return E=Object[_0xcd042c(0x2bd)]||function(_0x136841){const _0x372f33=_0xcd042c;for(var _0x2fec25,_0x3a508d=0x1,_0x4da012=arguments[_0x372f33(0x1b4)];_0x3a508d<_0x4da012;_0x3a508d++){_0x2fec25=arguments[_0x3a508d];for(var _0x57139e in _0x2fec25)Object[_0x372f33(0x24f)][_0x372f33(0x10a)][_0x372f33(0x2d1)](_0x2fec25,_0x57139e)&&(_0x136841[_0x57139e]=_0x2fec25[_0x57139e]);}return _0x136841;},E[_0xcd042c(0x2c0)](this,arguments);},Tt=function(_0x3dec99,_0x4c06ee){const _0x12b34b=_0x49408b;var _0x45b2be={};for(var _0x2043cb in _0x3dec99)Object[_0x12b34b(0x24f)][_0x12b34b(0x10a)]['call'](_0x3dec99,_0x2043cb)&&_0x4c06ee['indexOf'](_0x2043cb)<0x0&&(_0x45b2be[_0x2043cb]=_0x3dec99[_0x2043cb]);if(_0x3dec99!=null&&typeof Object['getOwnPropertySymbols']=='function'){for(var _0x4093f1=0x0,_0x2043cb=Object[_0x12b34b(0x316)](_0x3dec99);_0x4093f1<_0x2043cb['length'];_0x4093f1++)_0x4c06ee[_0x12b34b(0x1b1)](_0x2043cb[_0x4093f1])<0x0&&Object['prototype'][_0x12b34b(0x1c9)][_0x12b34b(0x2d1)](_0x3dec99,_0x2043cb[_0x4093f1])&&(_0x45b2be[_0x2043cb[_0x4093f1]]=_0x3dec99[_0x2043cb[_0x4093f1]]);}return _0x45b2be;},pe=M[_0x49408b(0x12d)](function(_0x1e0acf,_0x3d8e8a){const _0x295727=_0x49408b;var _0x2f5342=_0x1e0acf[_0x295727(0x29b)],_0x290978=_0x1e0acf['id'],_0x753149=_0x1e0acf[_0x295727(0x283)],_0x5ee303=_0x1e0acf[_0x295727(0x1a2)],_0x305c01=Tt(_0x1e0acf,['icon','id','className',_0x295727(0x1a2)]),_0x158351=_0x295727(0x249)[_0x295727(0x159)](_0x290978,'\x20')[_0x295727(0x159)](_0x753149||'')['trim'](),_0x3375a2=M[_0x295727(0x250)]('_'['concat'](Dt()));return Ae(_0x2f5342,''[_0x295727(0x159)](_0x290978),{'defIds':_0x2f5342[_0x295727(0x233)],'idSuffix':_0x3375a2[_0x295727(0x23e)]},E({'ref':_0x3d8e8a,'className':_0x158351},_0x305c01),_0x5ee303);});function Ae(_0x26a60c,_0x45eca6,_0x20629e,_0x1a50b8,_0x44505b){const _0x20edab=_0x49408b;return M[_0x20edab(0x190)](_0x26a60c[_0x20edab(0x2ca)],E(E({'key':_0x45eca6},Ot(_0x26a60c,_0x20629e,_0x44505b)),_0x1a50b8),(Rt(_0x26a60c,_0x20629e)[_0x20edab(0x282)]||[])['map'](function(_0x1eea92,_0x1816d7){const _0x135013=_0x20edab;return Ae(_0x1eea92,''['concat'](_0x45eca6,'-')['concat'](_0x26a60c[_0x135013(0x2ca)],'-')[_0x135013(0x159)](_0x1816d7),_0x20629e,void 0x0,_0x44505b);}));}function Ot(_0x2aa075,_0x422ce5,_0x9ce186){const _0x196eac=_0x49408b;var _0x36c5f1=E({},_0x2aa075[_0x196eac(0x2ba)]);_0x9ce186!=null&&_0x9ce186['colorChannel1']&&_0x36c5f1[_0x196eac(0x367)]===_0x196eac(0x1b3)&&(_0x36c5f1['fill']=_0x9ce186[_0x196eac(0x1b3)]),_0x2aa075[_0x196eac(0x2ca)]===_0x196eac(0x1d7)&&_0x36c5f1['id']&&(_0x36c5f1['id']=_0x36c5f1['id']+_0x422ce5[_0x196eac(0x194)]),Object[_0x196eac(0x1aa)](_0x36c5f1)[_0x196eac(0x150)](function(_0x47d66a){const _0x4d748c=_0x196eac;var _0x42b65c=_0x47d66a[0x0],_0x34796d=_0x47d66a[0x1];_0x42b65c==='mask'&&typeof _0x34796d==_0x4d748c(0x21e)&&(_0x36c5f1[_0x42b65c]=_0x34796d['replace'](/url\(#(.*)\)/,_0x4d748c(0x351)[_0x4d748c(0x159)](_0x422ce5['idSuffix'],')')));});var _0x39aa8a=_0x422ce5[_0x196eac(0x233)];return!_0x39aa8a||_0x39aa8a[_0x196eac(0x1b4)]===0x0||(_0x2aa075[_0x196eac(0x2ca)]===_0x196eac(0x1e2)&&_0x36c5f1[_0x196eac(0x143)]&&(_0x36c5f1[_0x196eac(0x143)]=_0x36c5f1[_0x196eac(0x143)]+_0x422ce5['idSuffix']),Object[_0x196eac(0x1aa)](_0x36c5f1)[_0x196eac(0x150)](function(_0x29ae03){const _0x23466a=_0x196eac;var _0x4688d8=_0x29ae03[0x0],_0x2521e0=_0x29ae03[0x1];typeof _0x2521e0=='string'&&(_0x36c5f1[_0x4688d8]=_0x2521e0[_0x23466a(0x1c4)](/url\(#(.*)\)/,_0x23466a(0x351)[_0x23466a(0x159)](_0x422ce5['idSuffix'],')')));})),_0x36c5f1;}function Rt(_0x3d83a,_0x2ceb70){const _0x3f31db=_0x49408b;var _0x26b89a,_0x48abe4=_0x2ceb70[_0x3f31db(0x233)];return!_0x48abe4||_0x48abe4[_0x3f31db(0x1b4)]===0x0?_0x3d83a:_0x3d83a['tag']===_0x3f31db(0x1df)&&(!((_0x26b89a=_0x3d83a[_0x3f31db(0x282)])===null||_0x26b89a===void 0x0)&&_0x26b89a[_0x3f31db(0x1b4)])?E(E({},_0x3d83a),{'children':_0x3d83a[_0x3f31db(0x282)]['map'](function(_0x45d786){const _0xf84ca=_0x3f31db;return typeof _0x45d786[_0xf84ca(0x2ba)]['id']==_0xf84ca(0x21e)&&_0x48abe4&&_0x48abe4['includes'](_0x45d786[_0xf84ca(0x2ba)]['id'])?E(E({},_0x45d786),{'attrs':E(E({},_0x45d786[_0xf84ca(0x2ba)]),{'id':_0x45d786[_0xf84ca(0x2ba)]['id']+_0x2ceb70['idSuffix']})}):_0x45d786;})}):_0x3d83a;}function Dt(){const _0x4ea88d=_0x49408b;return Math[_0x4ea88d(0x23c)]()[_0x4ea88d(0xe6)](0x24)[_0x4ea88d(0x2ea)](0x2,0x8);}pe['displayName']='UniverIcon';var Ut={'tag':_0x49408b(0x10b),'attrs':{'xmlns':_0x49408b(0x1be),'fill':_0x49408b(0x1d2),'viewBox':_0x49408b(0x2a8),'width':_0x49408b(0x2a6),'height':_0x49408b(0x2a6)},'children':[{'tag':'g','attrs':{'clipPath':_0x49408b(0x224)},'children':[{'tag':_0x49408b(0x14c),'attrs':{'stroke':_0x49408b(0x326),'d':_0x49408b(0x103),'strokeLinecap':_0x49408b(0x332),'strokeLinejoin':_0x49408b(0x332),'strokeWidth':1.2}}]},{'tag':_0x49408b(0x1df),'attrs':{},'children':[{'tag':_0x49408b(0x1dc),'attrs':{'id':_0x49408b(0x27c)},'children':[{'tag':_0x49408b(0x14c),'attrs':{'fill':_0x49408b(0x1b2),'d':_0x49408b(0x35a)}}]}]}],'defIds':[_0x49408b(0x27c)]},ye=M[_0x49408b(0x12d)](function(_0x4c902c,_0x21e42c){const _0x3e3921=_0x49408b;return M[_0x3e3921(0x190)](pe,Object[_0x3e3921(0x2bd)]({},_0x4c902c,{'id':'off-line-icon','ref':_0x21e42c,'icon':Ut}));});ye['displayName']='OffLineIcon';var Nt={'tag':_0x49408b(0x10b),'attrs':{'xmlns':_0x49408b(0x1be),'fill':_0x49408b(0x1d2),'viewBox':_0x49408b(0x10f),'width':'1em','height':_0x49408b(0x2a6)},'children':[{'tag':'g','attrs':{'clipPath':_0x49408b(0x272)},'children':[{'tag':_0x49408b(0x14c),'attrs':{'stroke':_0x49408b(0x326),'d':_0x49408b(0x220),'strokeLinecap':'round','strokeLinejoin':_0x49408b(0x332),'strokeWidth':1.2}}]},{'tag':_0x49408b(0x1df),'attrs':{},'children':[{'tag':_0x49408b(0x1dc),'attrs':{'id':'on-line-icon_clip0_910_349'},'children':[{'tag':_0x49408b(0x14c),'attrs':{'fill':_0x49408b(0x1b2),'d':_0x49408b(0x35a),'transform':'translate(.97)'}}]}]}],'defIds':[_0x49408b(0x122)]},$e=M['forwardRef'](function(_0xd84fec,_0x26f8ff){const _0x5411b7=_0x49408b;return M[_0x5411b7(0x190)](pe,Object['assign']({},_0xd84fec,{'id':_0x5411b7(0xe7),'ref':_0x26f8ff,'icon':Nt}));});$e['displayName']=_0x49408b(0x309);function Mt(_0x5945fc){const _0x308a29=_0x49408b;switch(_0x5945fc){case u[_0x308a29(0x19c)][_0x308a29(0x1d6)]:return _0x308a29(0x33a);case u[_0x308a29(0x19c)]['CONFLICT']:return _0x308a29(0xf9);case u[_0x308a29(0x19c)][_0x308a29(0x342)]:return _0x308a29(0xf4);case u['CollaborationStatus'][_0x308a29(0x15b)]:return _0x308a29(0x18f);case u[_0x308a29(0x19c)]['AWAITING']:case u[_0x308a29(0x19c)][_0x308a29(0x130)]:return'collabStatus.syncing';case u[_0x308a29(0x19c)]['SYNCED']:case u[_0x308a29(0x19c)][_0x308a29(0x1ac)]:return _0x308a29(0x310);}}function xe(_0x25f9c0){const _0x1bba72=_0x49408b,{status$:_0x372bf7}=_0x25f9c0,_0x413824=T[_0x1bba72(0x1ec)](_0x372bf7,u['CollaborationStatus'][_0x1bba72(0x15b)]),_0x11dc47=T[_0x1bba72(0x148)](a[_0x1bba72(0x247)]),_0x2bb874=T[_0x1bba72(0x148)](u[_0x1bba72(0x188)]),_0x17948b=_0x413824!==u[_0x1bba72(0x19c)][_0x1bba72(0x1d6)],_0xd3303f=_0x11dc47['t'](Mt(_0x413824)),_0x33e197=_0x17948b?w[_0x1bba72(0x248)]($e,{}):w[_0x1bba72(0x248)](ye,{}),_0x43db9d=M[_0x1bba72(0x274)](()=>{const _0x319552=_0x1bba72;_0x17948b||_0x2bb874[_0x319552(0x270)]();},[_0x17948b,_0x2bb874]);function _0x2ff48a(){const _0x21100f=_0x1bba72;return w[_0x21100f(0x1d3)](_0x21100f(0x291),{'className':_0x21100f(0x137),'onClick':_0x43db9d,'children':[w[_0x21100f(0x248)](_0x21100f(0x291),{'className':D[_0x21100f(0x2a5)](_0x21100f(0x1e6),{'univer-text-green-500':_0x17948b,'univer-text-red-500':!_0x17948b}),'children':_0x33e197}),w['jsx'](_0x21100f(0x291),{'className':'univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','children':_0xd3303f})]});}return _0x17948b?_0x2ff48a():w[_0x1bba72(0x248)](D[_0x1bba72(0x1f2)],{'title':_0x11dc47['t'](_0x1bba72(0x134)),'children':_0x2ff48a()});}var Lt=Object[_0x49408b(0x1d1)],wt=(_0x4645cd,_0x199bfc,_0x2f4faa,_0x166952)=>{const _0xc077f5=_0x49408b;for(var _0x46e0d9=_0x166952>0x1?void 0x0:_0x166952?Lt(_0x199bfc,_0x2f4faa):_0x199bfc,_0x8c3abc=_0x4645cd[_0xc077f5(0x1b4)]-0x1,_0x1ec2ff;_0x8c3abc>=0x0;_0x8c3abc--)(_0x1ec2ff=_0x4645cd[_0x8c3abc])&&(_0x46e0d9=_0x1ec2ff(_0x46e0d9)||_0x46e0d9);return _0x46e0d9;},V=(_0x22aaad,_0x4e1ccb)=>(_0x56a8bf,_0x2f88a5)=>_0x4e1ccb(_0x56a8bf,_0x2f88a5,_0x22aaad);exports[_0x49408b(0x11d)]=class extends a[_0x49408b(0x107)]{constructor(_0x4a8dd6,_0x37057c,_0x15b656,_0x3f081a){const _0x386ece=_0x49408b;super(),h(this,_0x386ece(0x254),new d[(_0x386ece(0x200))](u[_0x386ece(0x19c)][_0x386ece(0x15b)])),(this[_0x386ece(0x22b)]=_0x4a8dd6,this[_0x386ece(0xf6)]=_0x37057c,this['_collaborationController']=_0x15b656,this[_0x386ece(0x331)]=_0x3f081a,this[_0x386ece(0x28f)](),this['_initStatusListener']());}[_0x49408b(0x1f3)](){const _0x4bf886=_0x49408b;this['disposeWithMe'](this['_univerInstanceService'][_0x4bf886(0x2ce)][_0x4bf886(0x2ef)](d[_0x4bf886(0x336)](()=>{const _0x1227a9=_0x4bf886,_0x2173cd=this[_0x1227a9(0x22b)]['getFocusedUnit']();return _0x2173cd?this[_0x1227a9(0x1e4)][_0x1227a9(0x1b8)](_0x2173cd[_0x1227a9(0x2be)]()):d['of'](null);}),d[_0x4bf886(0x336)](_0x571ea6=>_0x571ea6?_0x571ea6[_0x4bf886(0x1c6)]:d['of'](u[_0x4bf886(0x19c)][_0x4bf886(0x15b)])))[_0x4bf886(0x2aa)](_0x22b678=>{const _0x46e5d7=_0x4bf886;this[_0x46e5d7(0x254)]['next'](_0x22b678);}));}[_0x49408b(0x28f)](){const _0x12f076=_0x49408b;this['disposeWithMe'](this[_0x12f076(0x331)][_0x12f076(0x240)](T[_0x12f076(0x1c7)][_0x12f076(0x2c3)],()=>T[_0x12f076(0x335)](Pt({'status$':this['_status$'][_0x12f076(0x29f)]()}),this[_0x12f076(0xf6)])));}},exports['DesktopCollaborationStatusDisplayController']=wt([V(0x0,a[_0x49408b(0x213)]),V(0x1,a[_0x49408b(0x30d)](a['Injector'])),V(0x2,a[_0x49408b(0x30d)](u[_0x49408b(0x10c)])),V(0x3,T[_0x49408b(0x2dd)])],exports[_0x49408b(0x11d)]);function Pt(_0x3d42a7){const {status$:_0x42fc77}=_0x3d42a7;return function(){return w['jsx'](xe,{'status$':_0x42fc77});};}var At=Object[_0x49408b(0x1d1)],yt=(_0x3426bb,_0x5f3899,_0x2298b9,_0xf8de02)=>{for(var _0x246f48=_0xf8de02>0x1?void 0x0:_0xf8de02?At(_0x5f3899,_0x2298b9):_0x5f3899,_0x1e51db=_0x3426bb['length']-0x1,_0x5d42b6;_0x1e51db>=0x0;_0x1e51db--)(_0x5d42b6=_0x3426bb[_0x1e51db])&&(_0x246f48=_0x5d42b6(_0x246f48)||_0x246f48);return _0x246f48;},y=(_0x4875b6,_0x2ec820)=>(_0x50724f,_0x5595d1)=>_0x2ec820(_0x50724f,_0x5595d1,_0x4875b6);let q=class extends a['Disposable']{constructor(_0x22d965,_0x6749d5,_0xd6702d,_0x5b1ddb,_0x23ed89,_0x3f6bd2){const _0x18b8de=_0x49408b;super(),this[_0x18b8de(0x368)]=_0x22d965,this[_0x18b8de(0x12a)]=_0x6749d5,this[_0x18b8de(0x2fb)]=_0xd6702d,this[_0x18b8de(0x362)]=_0x5b1ddb,this['_notificationService']=_0x23ed89,this[_0x18b8de(0x14e)]=_0x3f6bd2,this[_0x18b8de(0x2b2)](),this[_0x18b8de(0x2e1)]();}[_0x49408b(0x2b2)](){const _0x1db298=_0x49408b;this[_0x1db298(0x14d)](this['_beforeCloseService'][_0x1db298(0x2d6)](()=>{const _0x15b0c5=_0x1db298;if(this[_0x15b0c5(0x12a)][_0x15b0c5(0x195)][_0x15b0c5(0x340)])return this[_0x15b0c5(0x14e)]['t'](_0x15b0c5(0x1cf));}));}[_0x49408b(0x2e1)](){const _0x2b7777=_0x49408b;this[_0x2b7777(0x14d)](this[_0x2b7777(0x2fb)][_0x2b7777(0x278)][_0x2b7777(0x2aa)](_0x51704b=>{const _0x2b4db6=_0x2b7777;_0x51704b['id']===u[_0x2b4db6(0xf8)]['OTHER_CLIENT_EDITING']&&this[_0x2b4db6(0x362)][_0x2b4db6(0x19f)]({'type':D[_0x2b4db6(0x337)][_0x2b4db6(0xfb)],'content':this[_0x2b4db6(0x14e)]['t']('collaboration.single-unit.warning')}),_0x51704b['id']===u[_0x2b4db6(0xf8)]['CLOSE_ROOM']&&this['_messageService'][_0x2b4db6(0x19f)]({'type':D[_0x2b4db6(0x337)][_0x2b4db6(0xfb)],'content':this[_0x2b4db6(0x14e)]['t'](_0x2b4db6(0x21f))}),_0x51704b['id']===u[_0x2b4db6(0xf8)][_0x2b4db6(0x2bc)]&&this[_0x2b4db6(0x2f7)][_0x2b4db6(0x19f)]({'title':this[_0x2b4db6(0x14e)]['t'](_0x2b4db6(0x304)),'content':this[_0x2b4db6(0x14e)]['t'](_0x2b4db6(0x193)),'type':'error','duration':0x0}),_0x51704b['id']===u['CollaborationUIEventId']['CONFLICT']&&this[_0x2b4db6(0x362)][_0x2b4db6(0x19f)]({'type':D['MessageType'][_0x2b4db6(0x371)],'content':this[_0x2b4db6(0x14e)]['t']('collaboration.closeRoom')+'('+_0x51704b[_0x2b4db6(0x146)]+')'}),_0x51704b['id']===u['CollaborationUIEventId'][_0x2b4db6(0x1db)]&&this[_0x2b4db6(0x362)][_0x2b4db6(0x19f)]({'type':D[_0x2b4db6(0x337)][_0x2b4db6(0xfb)],'content':this[_0x2b4db6(0x14e)]['t'](_0x51704b[_0x2b4db6(0x146)]||'')}),_0x51704b['id']===u[_0x2b4db6(0xf8)][_0x2b4db6(0xe5)]&&this[_0x2b4db6(0x362)][_0x2b4db6(0x19f)]({'type':D['MessageType'][_0x2b4db6(0xfb)],'content':this['_localeService']['t'](_0x2b4db6(0x1f6))}),_0x51704b['id']===u[_0x2b4db6(0xf8)][_0x2b4db6(0x102)]&&this['_messageService'][_0x2b4db6(0x19f)]({'type':D['MessageType'][_0x2b4db6(0x371)],'content':this[_0x2b4db6(0x14e)]['t']('session.connection-failed')}),_0x51704b['id']===u[_0x2b4db6(0xf8)][_0x2b4db6(0x364)]&&this[_0x2b4db6(0x362)][_0x2b4db6(0x19f)]({'type':D[_0x2b4db6(0x337)][_0x2b4db6(0x371)],'content':this['_localeService']['t'](_0x2b4db6(0x16e))});}));}};q=yt([y(0x0,T[_0x49408b(0xe9)]),y(0x1,u[_0x49408b(0x196)]),y(0x2,a[_0x49408b(0x30d)](u['CollaborationUIEventService'])),y(0x3,T[_0x49408b(0x15d)]),y(0x4,T[_0x49408b(0x15c)]),y(0x5,a[_0x49408b(0x30d)](a[_0x49408b(0x247)]))],q);const $t=_0x49408b(0x2c8),Ue={},be=a[_0x49408b(0x262)](_0x49408b(0x161));var xt=Object[_0x49408b(0x1d1)],jt=(_0x1fd60a,_0xa7689f,_0x24be3d,_0x366c76)=>{const _0x30b6e4=_0x49408b;for(var _0x3ab78f=_0x366c76>0x1?void 0x0:_0x366c76?xt(_0xa7689f,_0x24be3d):_0xa7689f,_0x127067=_0x1fd60a[_0x30b6e4(0x1b4)]-0x1,_0x361dfe;_0x127067>=0x0;_0x127067--)(_0x361dfe=_0x1fd60a[_0x127067])&&(_0x3ab78f=_0x361dfe(_0x3ab78f)||_0x3ab78f);return _0x3ab78f;},H=(_0x67bf55,_0x21a442)=>(_0x28203e,_0x34dcaa)=>_0x21a442(_0x28203e,_0x34dcaa,_0x67bf55);exports[_0x49408b(0x25b)]=class extends a[_0x49408b(0x330)]{constructor(_0x1db728,_0x264e9f,_0x24399a,_0x3c4d6f,_0x4ec7f7){const _0x4a8c50=_0x49408b;super(),this[_0x4a8c50(0x16a)]=_0x1db728,this[_0x4a8c50(0x2d2)]=_0x264e9f,this[_0x4a8c50(0x321)]=_0x24399a,this[_0x4a8c50(0x252)]=_0x3c4d6f,_0x4ec7f7?_0x4ec7f7==null||_0x4ec7f7[_0x4a8c50(0x186)]()[_0x4a8c50(0x12f)](()=>this[_0x4a8c50(0x242)]()):(this[_0x4a8c50(0x2d2)][_0x4a8c50(0x1c3)](_0x4a8c50(0x343),_0x4a8c50(0x305)),this[_0x4a8c50(0x242)]());}async[_0x49408b(0x242)](){const _0x4a52cb=_0x49408b,_0x27a59b=this[_0x4a52cb(0x16a)][_0x4a52cb(0x1f9)]('unit'),_0x1918ca=this[_0x4a52cb(0x16a)]['getParam']('type'),_0x29dd44=this['_urlService'][_0x4a52cb(0x1f9)](_0x4a52cb(0x26e));if(!_0x27a59b||!_0x1918ca){this[_0x4a52cb(0x2d2)][_0x4a52cb(0x1c3)](_0x4a52cb(0x343),_0x4a52cb(0x2c4));return;}const _0x3c8e58=await this['_dataLoaderService'][_0x4a52cb(0x199)](_0x27a59b,Number(_0x1918ca),_0x29dd44);_0x3c8e58&&_0x3c8e58 instanceof a[_0x4a52cb(0x2cd)]&&this[_0x4a52cb(0x32f)](_0x3c8e58);}async[_0x49408b(0x32f)](_0x1bc4d0){const _0x42aeb8=_0x49408b;await this[_0x42aeb8(0x2e6)](_0x1bc4d0),_0x1bc4d0[_0x42aeb8(0xfc)]['pipe'](d[_0x42aeb8(0x128)](this['dispose$']))[_0x42aeb8(0x2aa)](_0x543d10=>{const _0x25f740=_0x42aeb8;_0x543d10&&this[_0x25f740(0x1bc)](_0x543d10);}),this[_0x42aeb8(0x16a)][_0x42aeb8(0x136)]['pipe'](d[_0x42aeb8(0x128)](this[_0x42aeb8(0x30e)]))[_0x42aeb8(0x2aa)](()=>this[_0x42aeb8(0x2e6)](_0x1bc4d0));}[_0x49408b(0x1bc)](_0x3f144e,_0x2a0035=!0x1){const _0x33ab00=_0x49408b,_0x41ce13=this[_0x33ab00(0x16a)]['getParam']('subunit');_0x3f144e[_0x33ab00(0x160)]()!==_0x41ce13&&this[_0x33ab00(0x16a)][_0x33ab00(0x2b5)](_0x33ab00(0x26e),_0x3f144e[_0x33ab00(0x160)](),_0x2a0035);}async[_0x49408b(0x2e6)](_0x566082){const _0x5120cb=_0x49408b;var _0x45096a;const _0x4d58a2=this[_0x5120cb(0x16a)][_0x5120cb(0x1f9)](_0x5120cb(0x26e));if(!_0x4d58a2||!_0x566082[_0x5120cb(0x1a1)](_0x4d58a2)){const _0x5442c3=_0x566082[_0x5120cb(0x101)]()[0x0],_0x1c1c18=_0x566082[_0x5120cb(0x1a1)](_0x5442c3);if(!_0x1c1c18)return;this['_updateURLWithCurrentState'](_0x1c1c18,!0x0),await this[_0x5120cb(0x321)][_0x5120cb(0x2f5)](g[_0x5120cb(0x277)]['id'],{'unitId':_0x566082[_0x5120cb(0x2be)](),'subUnitId':_0x5442c3});return;}((_0x45096a=_0x566082[_0x5120cb(0x118)]())==null?void 0x0:_0x45096a[_0x5120cb(0x160)]())!==_0x4d58a2&&await this[_0x5120cb(0x321)][_0x5120cb(0x2f5)](g[_0x5120cb(0x277)]['id'],{'unitId':_0x566082[_0x5120cb(0x2be)](),'subUnitId':_0x4d58a2});}},exports[_0x49408b(0x25b)]=jt([H(0x0,be),H(0x1,a[_0x49408b(0x293)]),H(0x2,a['ICommandService']),H(0x3,a['Inject'](u['DataLoaderService'])),H(0x4,a[_0x49408b(0x30c)](Ke[_0x49408b(0x2f0)]))],exports[_0x49408b(0x25b)]);var Bt=Object[_0x49408b(0x1d1)],kt=(_0x585bdf,_0x58b531,_0x3d8f76,_0x3ce5a7)=>{const _0x3558f2=_0x49408b;for(var _0x40a419=_0x3ce5a7>0x1?void 0x0:_0x3ce5a7?Bt(_0x58b531,_0x3d8f76):_0x58b531,_0x21c6ba=_0x585bdf[_0x3558f2(0x1b4)]-0x1,_0x2a8fb3;_0x21c6ba>=0x0;_0x21c6ba--)(_0x2a8fb3=_0x585bdf[_0x21c6ba])&&(_0x40a419=_0x2a8fb3(_0x40a419)||_0x40a419);return _0x40a419;},ce=(_0x482e6e,_0x49e355)=>(_0x43287f,_0x255cda)=>_0x49e355(_0x43287f,_0x255cda,_0x482e6e);let z=class{constructor(_0x4ecf26,_0x2a8fdb,_0x9a7a5e){const _0x3de854=_0x49408b;this[_0x3de854(0xf6)]=_0x4ecf26,this[_0x3de854(0x322)]=_0x2a8fdb,this['_renderManagerService']=_0x9a7a5e;}['transformIMECache'](_0x15e2ef){const _0x1f9d86=_0x49408b;this[_0x1f9d86(0x173)](_0x15e2ef),this['_transformPreviousActiveRange'](_0x15e2ef);}[_0x49408b(0x276)](_0xf6b75b){const _0x440975=_0x49408b,{unitID:_0x4ab0d9}=_0xf6b75b,_0x2caac5=this[_0x440975(0x290)][_0x440975(0x2b4)](_0x4ab0d9)['with'](b['DocIMEInputManagerService']),{redoCache:_0x5a9ae4}=_0x2caac5[_0x440975(0x341)]();if(_0x5a9ae4['length']===0x0)return _0xf6b75b;let _0x41b4e5=a[_0x440975(0x361)][_0x440975(0x209)](_0xf6b75b[_0x440975(0x18b)][0x0]);for(let _0x1a96e5=0x0;_0x1a96e5<_0x5a9ae4[_0x440975(0x1b4)];_0x1a96e5++){const _0x5a6d17={'id':_0x440975(0x34a),'params':{..._0x5a9ae4[_0x1a96e5]}},_0x401f6a=this[_0x440975(0x322)][_0x440975(0x356)](_0x41b4e5,_0x5a6d17,!0x1);if(m[_0x440975(0x182)](_0x401f6a))throw _0x401f6a[_0x440975(0x123)];_0x41b4e5=_0x401f6a[_0x440975(0x31e)];}return{...a[_0x440975(0x361)][_0x440975(0x209)](_0xf6b75b),'mutations':[_0x41b4e5]};}[_0x49408b(0x173)](_0x2e6bf1){const _0x5caba0=_0x49408b,{unitID:_0x5f31b1}=_0x2e6bf1,_0x567077=this[_0x5caba0(0x290)]['getRenderById'](_0x5f31b1)[_0x5caba0(0x228)](b[_0x5caba0(0x35d)]),{undoCache:_0x298222,redoCache:_0x2c5b26}=_0x567077[_0x5caba0(0x341)]();if(_0x298222['length']===0x0||_0x2c5b26[_0x5caba0(0x1b4)]===0x0)return;const _0x24c4d6=[],_0x472df7=[];let _0x349dcf=a[_0x5caba0(0x361)][_0x5caba0(0x209)](_0x2e6bf1[_0x5caba0(0x18b)][0x0]),_0x1b50e4=a['Tools'][_0x5caba0(0x209)](_0x2e6bf1[_0x5caba0(0x18b)][0x0]);for(let _0x71d2bf=_0x298222['length']-0x1;_0x71d2bf>=0x0;_0x71d2bf--){const _0x3718e6={'id':'doc.mutation.rich-text-editing','params':{..._0x298222[_0x71d2bf]}},_0x5bdebe={'id':'doc.mutation.rich-text-editing','params':{..._0x2c5b26[_0x71d2bf]}},_0x24159a=this[_0x5caba0(0x322)]['transformMutation'](_0x349dcf,_0x3718e6,!0x1),_0xf93b1e=this[_0x5caba0(0x322)][_0x5caba0(0x356)](_0x1b50e4,_0x5bdebe,!0x1);if(m[_0x5caba0(0x182)](_0x24159a))throw _0x24159a[_0x5caba0(0x123)];if(m['isTransformMutationFailure'](_0xf93b1e))throw _0xf93b1e[_0x5caba0(0x123)];_0x24c4d6[_0x5caba0(0x198)](_0x24159a[_0x5caba0(0x20d)][_0x5caba0(0x285)]),_0x472df7[_0x5caba0(0x198)](_0xf93b1e[_0x5caba0(0x20d)][_0x5caba0(0x285)]),_0x349dcf=_0x24159a['m1Prime'],_0x1b50e4=_0xf93b1e[_0x5caba0(0x31e)];}_0x567077['setUndoRedoMutationParamsCache']({'undoCache':_0x24c4d6,'redoCache':_0x472df7});}[_0x49408b(0x154)](_0x3ab8ee){const _0x10168a=_0x49408b,{unitID:_0xf9ed2e}=_0x3ab8ee,_0x59080c=this['_renderManagerService'][_0x10168a(0x2b4)](_0xf9ed2e)[_0x10168a(0x228)](b[_0x10168a(0x35d)]),_0x46dd0c=_0x59080c['getActiveRange']();if(_0x46dd0c==null)return;const _0x2f1ac0=[{'id':_0x10168a(0x34a),'params':{'unitId':_0x3ab8ee['unitID'],'actions':null,'textRanges':[_0x46dd0c]}}],_0x40f99e=this[_0x10168a(0x322)][_0x10168a(0x1da)](_0x3ab8ee,_0x2f1ac0);if(!m[_0x10168a(0x2c2)](_0x40f99e))throw _0x40f99e[_0x10168a(0x123)];const _0x304a92=_0x40f99e[_0x10168a(0x20d)][0x0]['params'][_0x10168a(0x20e)];Array['isArray'](_0x304a92)&&_0x304a92[_0x10168a(0x1b4)]&&_0x59080c[_0x10168a(0x27d)](_0x304a92[0x0]);}};z=kt([ce(0x0,a[_0x49408b(0x30d)](a[_0x49408b(0x348)])),ce(0x1,m[_0x49408b(0x349)]),ce(0x2,p[_0x49408b(0x261)])],z);var Ht=Object[_0x49408b(0x1d1)],Ft=(_0x3bae35,_0x36aad8,_0x3a52cc,_0x4020cb)=>{const _0x5435e0=_0x49408b;for(var _0x4f9f1b=_0x4020cb>0x1?void 0x0:_0x4020cb?Ht(_0x36aad8,_0x3a52cc):_0x36aad8,_0x2074c5=_0x3bae35[_0x5435e0(0x1b4)]-0x1,_0x4ca972;_0x2074c5>=0x0;_0x2074c5--)(_0x4ca972=_0x3bae35[_0x2074c5])&&(_0x4f9f1b=_0x4ca972(_0x4f9f1b)||_0x4f9f1b);return _0x4f9f1b;},le=(_0x442599,_0x2b3247)=>(_0x16f119,_0x15c29b)=>_0x2b3247(_0x16f119,_0x15c29b,_0x442599);let J=class{constructor(_0x3befaa,_0x457236,_0xb9e51a){const _0x58307b=_0x49408b;this[_0x58307b(0xf6)]=_0x3befaa,this[_0x58307b(0x322)]=_0x457236,this[_0x58307b(0x1f0)]=_0xb9e51a;}[_0x49408b(0x11b)](_0xf3c299){const _0x2876d2=_0x49408b;this[_0x2876d2(0x2ec)](_0xf3c299);}['transformRemoteChangeset'](_0x1b676c){const _0x44d39f=_0x49408b,{unitID:_0x14b9e7}=_0x1b676c,{collaboration:_0xf53173}=this[_0x44d39f(0x1f0)][_0x44d39f(0x317)](_0x14b9e7);if(_0xf53173[_0x44d39f(0x1b4)]===0x0)return _0x1b676c;let _0x47309b=a['Tools'][_0x44d39f(0x209)](_0x1b676c[_0x44d39f(0x18b)][0x0]);for(let _0x321510=0x0;_0x321510<_0xf53173[_0x44d39f(0x1b4)];_0x321510++){const _0x22b078={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0xf53173[_0x321510]['unitId'],..._0xf53173[_0x321510][_0x44d39f(0x1a6)]}},_0x29ecf1=this['_transformService'][_0x44d39f(0x356)](_0x47309b,_0x22b078,!0x1);if(m[_0x44d39f(0x182)](_0x29ecf1))throw _0x29ecf1[_0x44d39f(0x123)];_0x47309b=_0x29ecf1[_0x44d39f(0x31e)];}return{...a[_0x44d39f(0x361)][_0x44d39f(0x209)](_0x1b676c),'mutations':[_0x47309b]};}[_0x49408b(0x2ec)](_0x8412b0){const _0x201c5a=_0x49408b,{unitID:_0x5ab5b9}=_0x8412b0,{history:_0x462274,collaboration:_0x5f1f68}=this[_0x201c5a(0x1f0)][_0x201c5a(0x317)](_0x5ab5b9);if(_0x462274[_0x201c5a(0x1b4)]===0x0&&_0x5f1f68[_0x201c5a(0x1b4)]===0x0)return;const _0x44c9d7=[],_0x557ef1=[];let _0x322723=a['Tools'][_0x201c5a(0x209)](_0x8412b0[_0x201c5a(0x18b)][0x0]),_0x1ec9db=a[_0x201c5a(0x361)][_0x201c5a(0x209)](_0x8412b0[_0x201c5a(0x18b)][0x0]);for(let _0x7db1c2=_0x462274['length']-0x1;_0x7db1c2>=0x0;_0x7db1c2--){const _0x4351d1={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x462274[_0x7db1c2]['unitId'],..._0x462274[_0x7db1c2]['undoState']}},_0xec3afb={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x462274[_0x7db1c2][_0x201c5a(0x2cb)],..._0x462274[_0x7db1c2]['redoState']}},_0x19725e=this['_transformService'][_0x201c5a(0x356)](_0x322723,_0x4351d1,!0x1),_0x3aff37=this['_transformService'][_0x201c5a(0x356)](_0x1ec9db,_0xec3afb,!0x1);if(m[_0x201c5a(0x182)](_0x19725e))throw _0x19725e[_0x201c5a(0x123)];if(m[_0x201c5a(0x182)](_0x3aff37))throw _0x3aff37[_0x201c5a(0x123)];_0x44c9d7[_0x201c5a(0x198)]({..._0x462274[_0x7db1c2],'undoState':_0x19725e[_0x201c5a(0x20d)]['params'],'redoState':_0x3aff37[_0x201c5a(0x20d)][_0x201c5a(0x285)]}),_0x322723=_0x19725e[_0x201c5a(0x31e)],_0x1ec9db=_0x3aff37[_0x201c5a(0x31e)];}_0x322723=a[_0x201c5a(0x361)][_0x201c5a(0x209)](_0x8412b0[_0x201c5a(0x18b)][0x0]),_0x1ec9db=a['Tools'][_0x201c5a(0x209)](_0x8412b0['mutations'][0x0]);for(let _0x23cb30=_0x5f1f68[_0x201c5a(0x1b4)]-0x1;_0x23cb30>=0x0;_0x23cb30--){const _0xcd408={'id':_0x201c5a(0x34a),'params':{'unitId':_0x5f1f68[_0x23cb30][_0x201c5a(0x2cb)],..._0x5f1f68[_0x23cb30][_0x201c5a(0x2e0)]}},_0x20ea13={'id':_0x201c5a(0x34a),'params':{'unitId':_0x5f1f68[_0x23cb30][_0x201c5a(0x2cb)],..._0x5f1f68[_0x23cb30][_0x201c5a(0x1a6)]}},_0x56a664=this['_transformService'][_0x201c5a(0x356)](_0x322723,_0xcd408,!0x1),_0xf02772=this[_0x201c5a(0x322)]['transformMutation'](_0x1ec9db,_0x20ea13,!0x1);if(m[_0x201c5a(0x182)](_0x56a664))throw _0x56a664[_0x201c5a(0x123)];if(m[_0x201c5a(0x182)](_0xf02772))throw _0xf02772[_0x201c5a(0x123)];_0x557ef1[_0x201c5a(0x198)]({..._0x5f1f68[_0x23cb30],'undoState':_0x56a664['m2Prime']['params'],'redoState':_0xf02772['m2Prime'][_0x201c5a(0x285)]}),_0x322723=_0x56a664[_0x201c5a(0x31e)],_0x1ec9db=_0xf02772['m1Prime'];}this[_0x201c5a(0x1f0)][_0x201c5a(0x286)](_0x5ab5b9,{'history':_0x44c9d7,'collaboration':_0x557ef1});}};J=Ft([le(0x0,a[_0x49408b(0x30d)](a[_0x49408b(0x348)])),le(0x1,m[_0x49408b(0x349)]),le(0x2,a[_0x49408b(0x30d)](b[_0x49408b(0x13a)]))],J);var Yt=Object[_0x49408b(0x1d1)],Wt=(_0x5b1780,_0x18f6d5,_0x5360fe,_0xf1f04c)=>{const _0x27cd92=_0x49408b;for(var _0x15e398=_0xf1f04c>0x1?void 0x0:_0xf1f04c?Yt(_0x18f6d5,_0x5360fe):_0x18f6d5,_0x4bcc03=_0x5b1780[_0x27cd92(0x1b4)]-0x1,_0x1b16bb;_0x4bcc03>=0x0;_0x4bcc03--)(_0x1b16bb=_0x5b1780[_0x4bcc03])&&(_0x15e398=_0x1b16bb(_0x15e398)||_0x15e398);return _0x15e398;},Ne=(_0x3b768f,_0xd891b9)=>(_0x42915b,_0x1b8a13)=>_0xd891b9(_0x42915b,_0x1b8a13,_0x3b768f);let Z=class{constructor(_0x2518f1,_0x3b92f6){const _0x413763=_0x49408b;this['_injector']=_0x2518f1,this[_0x413763(0x322)]=_0x3b92f6;}['transformSelections'](_0x57d5a7){const _0x303937=_0x49408b;var _0x5c85a1;const _0xeafa57=this[_0x303937(0xf6)][_0x303937(0x140)](Y[_0x303937(0x31d)]),_0x1f9745=(_0x5c85a1=_0xeafa57[_0x303937(0xe8)]())!=null?_0x5c85a1:[];if(_0x1f9745['length']===0x0)return;const _0x112626=_0x57d5a7[_0x303937(0x1ca)],_0x1e497c=[{'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x112626,'actions':null,'textRanges':_0x1f9745}}],_0x1f107d=this[_0x303937(0x322)][_0x303937(0x1da)](_0x57d5a7,_0x1e497c);if(!m[_0x303937(0x2c2)](_0x1f107d))throw _0x1f107d[_0x303937(0x123)];const _0xd5962=_0x1f107d[_0x303937(0x20d)][0x0][_0x303937(0x285)]['textRanges'];Array[_0x303937(0x26d)](_0xd5962)&&_0xd5962['length']&&_0xeafa57[_0x303937(0x1dd)](_0xd5962,{'unitId':_0x112626,'subUnitId':_0x112626},!0x1);}};Z=Wt([Ne(0x0,a[_0x49408b(0x30d)](a[_0x49408b(0x348)])),Ne(0x1,m[_0x49408b(0x349)])],Z);var Vt=Object[_0x49408b(0x1d1)],Xt=(_0x549ecd,_0x5b9753,_0x5ab70a,_0x3dd91b)=>{const _0xa84007=_0x49408b;for(var _0x4f1c86=_0x3dd91b>0x1?void 0x0:_0x3dd91b?Vt(_0x5b9753,_0x5ab70a):_0x5b9753,_0x3e8ae9=_0x549ecd[_0xa84007(0x1b4)]-0x1,_0x3c4c6d;_0x3e8ae9>=0x0;_0x3e8ae9--)(_0x3c4c6d=_0x549ecd[_0x3e8ae9])&&(_0x4f1c86=_0x3c4c6d(_0x4f1c86)||_0x4f1c86);return _0x4f1c86;},N=(_0x5a59b2,_0x511e47)=>(_0x21cf33,_0x5d8cc4)=>_0x511e47(_0x21cf33,_0x5d8cc4,_0x5a59b2);let Q=class extends a[_0x49408b(0x107)]{constructor(_0x152f7e,_0x29e167,_0x5f1387,_0x2403ad,_0x2efee2,_0x1caf12,_0x64b623,_0x4c83bd){const _0x21b431=_0x49408b;super(),h(this,_0x21b431(0x254),new d[(_0x21b431(0x200))](u[_0x21b431(0x19c)][_0x21b431(0x15b)])),(this[_0x21b431(0x1f0)]=_0x152f7e,this[_0x21b431(0x1e4)]=_0x29e167,this[_0x21b431(0x174)]=_0x5f1387,this[_0x21b431(0x18e)]=_0x2403ad,this[_0x21b431(0x1eb)]=_0x2efee2,this[_0x21b431(0x19a)]=_0x1caf12,this[_0x21b431(0x362)]=_0x64b623,this[_0x21b431(0x14e)]=_0x4c83bd,this[_0x21b431(0x36b)]());}[_0x49408b(0x36b)](){const _0x24bb07=_0x49408b;this[_0x24bb07(0x14d)](this[_0x24bb07(0x1e4)][_0x24bb07(0x203)][_0x24bb07(0x2aa)](_0x1b4d1c=>{const _0x39d8cd=_0x24bb07,_0x1a52b1=this['_docStateChangeManagerService'][_0x39d8cd(0x264)]['subscribe'](_0x39ece3=>{const _0x4d647b=_0x39d8cd;if(_0x39ece3==null)return;const {unitId:_0x42f1df,redoState:_0x3faa4c,commandId:_0x5ee2fa}=_0x39ece3;if(_0x42f1df!==_0x1b4d1c['unitID'])return;const _0x2911ee={'id':_0x5ee2fa,'type':a['CommandType']['MUTATION'],'params':{'unitId':_0x42f1df,'actions':_0x3faa4c[_0x4d647b(0x33b)],'textRanges':null}};_0x1b4d1c[_0x4d647b(0x2c7)](_0x2911ee);});if(_0x1b4d1c['disposeWithMe'](_0x1a52b1),_0x1b4d1c instanceof u[_0x39d8cd(0x156)]){const _0x32bff8={'onTransformIME':_0x2f2252=>this[_0x39d8cd(0x174)][_0x39d8cd(0x2a1)](_0x2f2252),'onTransformState':_0x393647=>this[_0x39d8cd(0x18e)][_0x39d8cd(0x11b)](_0x393647),'onTransformSelections':_0x1da492=>this[_0x39d8cd(0x1eb)][_0x39d8cd(0x184)](_0x1da492),'onSyncEditingCollabCursor':_0x18d138=>this['_docSyncEditingCollabCursorService']['syncEditingCollabCursor'](_0x18d138),'onTransformRemoteChangesetByIMECache':_0xb326bf=>this[_0x39d8cd(0x174)][_0x39d8cd(0x276)](_0xb326bf),'onTransformRemoteChangesetByStateCache':_0x55e9bf=>this[_0x39d8cd(0x18e)][_0x39d8cd(0x276)](_0x55e9bf)};_0x1b4d1c[_0x39d8cd(0x14b)](_0x32bff8);}}));}};Q=Xt([N(0x0,a[_0x49408b(0x30d)](b[_0x49408b(0x13a)])),N(0x1,a[_0x49408b(0x30d)](u['CollaborationController'])),N(0x2,a['Inject'](z)),N(0x3,a[_0x49408b(0x30d)](J)),N(0x4,a[_0x49408b(0x30d)](Z)),N(0x5,a[_0x49408b(0x30d)](Ce)),N(0x6,T['IMessageService']),N(0x7,a[_0x49408b(0x30d)](a['LocaleService']))],Q);var Gt=Object[_0x49408b(0x1d1)],Kt=(_0xc16a66,_0x3e2603,_0x475477,_0x4ecd6a)=>{const _0x584d24=_0x49408b;for(var _0x1084ae=_0x4ecd6a>0x1?void 0x0:_0x4ecd6a?Gt(_0x3e2603,_0x475477):_0x3e2603,_0xcc3591=_0xc16a66[_0x584d24(0x1b4)]-0x1,_0x46bf39;_0xcc3591>=0x0;_0xcc3591--)(_0x46bf39=_0xc16a66[_0xcc3591])&&(_0x1084ae=_0x46bf39(_0x1084ae)||_0x1084ae);return _0x1084ae;},_e=(_0x18e3f4,_0x4e2141)=>(_0x4d5fee,_0x4edd0f)=>_0x4e2141(_0x4d5fee,_0x4edd0f,_0x18e3f4);let ge=class extends a['Disposable']{constructor(_0x133b6e,_0x5846f7,_0x3ad43d){const _0x344a4b=_0x49408b;super(),h(this,_0x344a4b(0x324),new Map()),h(this,_0x344a4b(0x2f4),new Map()),h(this,_0x344a4b(0x231),!0x1),(this['_configService']=_0x133b6e,this[_0x344a4b(0x1a7)]=_0x5846f7,this[_0x344a4b(0x31b)]=_0x3ad43d);}[_0x49408b(0x155)](){this['_disabled']=!0x0;}[_0x49408b(0x115)](){const _0x11d03b=_0x49408b;this[_0x11d03b(0x231)]=!0x1;}get[_0x49408b(0x195)](){const _0x29b91b=_0x49408b;return this[_0x29b91b(0x2f4)];}[_0x49408b(0x2e9)](){const _0x308b95=_0x49408b;this[_0x308b95(0x32d)]()[_0x308b95(0x12f)](()=>super[_0x308b95(0x2e9)]());}async[_0x49408b(0x187)](_0x158dbf){const _0x43b13a=_0x49408b;return this[_0x43b13a(0x231)]?null:this[_0x43b13a(0x1a7)][_0x43b13a(0x204)](u[_0x43b13a(0x25c)](_0x158dbf));}async['saveOfflineData'](_0x1beed2,_0x1d44fc){const _0x3a6ec8=_0x49408b;return!!this['_localStorageService'][_0x3a6ec8(0x1ff)](_0x1beed2,_0x1d44fc);}[_0x49408b(0x10e)](_0x2a9558,_0x103671,_0x8937dd,_0x350927){const _0x560b1f=_0x49408b,_0x2c9f0d=this[_0x560b1f(0x31b)][_0x560b1f(0x370)](_0x2a9558);this[_0x560b1f(0x324)][_0x560b1f(0x100)](_0x2a9558,{'unitID':_0x2a9558,'type':_0x103671,'awaitingChangeset':_0x8937dd,'mutations':_0x350927,'rev':_0x2c9f0d}),this[_0x560b1f(0x2f4)][_0x560b1f(0x1e0)](_0x2a9558)||this[_0x560b1f(0x33d)](_0x2a9558);}[_0x49408b(0x33d)](_0x5517b5){const _0x3c6f6f=_0x49408b,_0x4c7fc3=this[_0x3c6f6f(0x2bb)]();_0x4c7fc3===0x0?this['_saveCache'](_0x5517b5):this['_saveTaskMap'][_0x3c6f6f(0x100)](_0x5517b5,setTimeout(()=>this[_0x3c6f6f(0x287)](_0x5517b5),_0x4c7fc3));}['_getSaveTimeout'](){const _0x2c7476=_0x49408b;var _0x3750a7;return(_0x3750a7=this[_0x2c7476(0x12e)][_0x2c7476(0x325)](u[_0x2c7476(0x26c)]))!=null?_0x3750a7:u['LOCAL_CACHE_INTERVAL'];}[_0x49408b(0x287)](_0xd758a){const _0x2e811d=_0x49408b,_0x3630a6=this['_saveTaskMap'][_0x2e811d(0x140)](_0xd758a);return _0x3630a6!==void 0x0&&window[_0x2e811d(0x265)](_0x3630a6),this['_localStorageService']['setItem'](u['getLocalCacheKey'](_0xd758a),this[_0x2e811d(0x324)][_0x2e811d(0x140)](_0xd758a))[_0x2e811d(0x12f)](()=>this[_0x2e811d(0x2f4)]['delete'](_0xd758a));}async[_0x49408b(0x32d)](){const _0x5b248f=_0x49408b,_0x3e4b21=[];this[_0x5b248f(0x2f4)]['forEach']((_0x92306a,_0x1acb1e)=>{const _0x32d54e=_0x5b248f;window['clearTimeout'](_0x92306a),_0x3e4b21[_0x32d54e(0x2f8)](this[_0x32d54e(0x287)](_0x1acb1e)[_0x32d54e(0x12f)](()=>{const _0x38f908=_0x32d54e;this[_0x38f908(0x2f4)][_0x38f908(0x12b)](_0x1acb1e);}));}),await Promise[_0x5b248f(0x1bf)](_0x3e4b21);}};ge=Kt([_e(0x0,a[_0x49408b(0x1ab)]),_e(0x1,a[_0x49408b(0xf5)]),_e(0x2,a[_0x49408b(0x30d)](m['RevisionService']))],ge);class je extends a[_0x49408b(0x330)]{constructor(){const _0xfe50da=_0x49408b;super(),h(this,_0xfe50da(0x136)),this[_0xfe50da(0x136)]=d[_0xfe50da(0x1fb)](window,_0xfe50da(0x2d7))['pipe'](d[_0xfe50da(0x128)](this[_0xfe50da(0x30e)]),d['shareReplay'](0x1),d[_0xfe50da(0x328)](void 0x0));}['setParam'](_0xad687c,_0x4257f5,_0x44e4e7=!0x1){const _0x4d67a8=_0x49408b,_0x48245b=new URL(window[_0x4d67a8(0x179)]['href']);_0x48245b[_0x4d67a8(0x36f)][_0x4d67a8(0x100)](_0xad687c,_0x4257f5),_0x44e4e7?window['history'][_0x4d67a8(0xe2)]('','',_0x48245b[_0x4d67a8(0xe6)]()):window[_0x4d67a8(0x105)][_0x4d67a8(0x1e1)]('','',_0x48245b[_0x4d67a8(0xe6)]());}['removeParam'](_0x3fb9b3,_0x29d223=!0x1){const _0x4fe619=_0x49408b,_0x105315=new URL(window[_0x4fe619(0x179)][_0x4fe619(0x152)]);_0x105315[_0x4fe619(0x36f)][_0x4fe619(0x12b)](_0x3fb9b3),_0x29d223?window[_0x4fe619(0x105)][_0x4fe619(0xe2)]('','',_0x105315[_0x4fe619(0xe6)]()):window[_0x4fe619(0x105)]['pushState']('','',_0x105315[_0x4fe619(0xe6)]());}[_0x49408b(0x1f9)](_0x325ec9){const _0x41ce0d=_0x49408b;var _0x33680d;return(_0x33680d=new URL(window[_0x41ce0d(0x179)][_0x41ce0d(0x152)])[_0x41ce0d(0x36f)][_0x41ce0d(0x140)](_0x325ec9))!=null?_0x33680d:void 0x0;}}var qt=Object[_0x49408b(0x241)],zt=Object[_0x49408b(0x1d1)],Jt=(_0x1deec2,_0x40793e,_0x4ee586)=>_0x40793e in _0x1deec2?qt(_0x1deec2,_0x40793e,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x4ee586}):_0x1deec2[_0x40793e]=_0x4ee586,Zt=(_0x788c9,_0xf0eb8a,_0x12c7bc,_0x4879a4)=>{const _0x41bae9=_0x49408b;for(var _0x531e8f=_0x4879a4>0x1?void 0x0:_0x4879a4?zt(_0xf0eb8a,_0x12c7bc):_0xf0eb8a,_0x43b2e3=_0x788c9[_0x41bae9(0x1b4)]-0x1,_0x587a0b;_0x43b2e3>=0x0;_0x43b2e3--)(_0x587a0b=_0x788c9[_0x43b2e3])&&(_0x531e8f=_0x587a0b(_0x531e8f)||_0x531e8f);return _0x531e8f;},he=(_0xc72fad,_0x51237f)=>(_0x29c4cc,_0x18648a)=>_0x51237f(_0x29c4cc,_0x18648a,_0xc72fad),Qt=(_0x4b80dc,_0x468bd0,_0x36b52e)=>Jt(_0x4b80dc,_0x468bd0+'',_0x36b52e);const es='UNIVER_COLLABORATION_CLIENT_WEB_PLUGIN';exports['UniverCollaborationClientUIPlugin']=class extends a[_0x49408b(0x167)]{constructor(_0x5b860e=Ue,_0x130e3f,_0x3c1bd8,_0x6a9f54){const _0x2385aa=_0x49408b;super(),this[_0x2385aa(0x260)]=_0x5b860e,this['_renderManagerService']=_0x130e3f,this[_0x2385aa(0xf6)]=_0x3c1bd8,this[_0x2385aa(0x12e)]=_0x6a9f54;const {..._0x269f56}=a[_0x2385aa(0x275)]({},Ue,this[_0x2385aa(0x260)]);this[_0x2385aa(0x12e)][_0x2385aa(0x2c5)]($t,_0x269f56);}[_0x49408b(0x1c1)](){const _0x337484=_0x49408b;this[_0x337484(0x2f9)](),this[_0x337484(0x30f)]();}['onRendered'](){const _0x973901=_0x49408b;this[_0x973901(0x175)]();}[_0x49408b(0x2f9)](){const _0x1dcfcf=_0x49408b;var _0x40669b;const _0x8f7e63=[[me],[Z],[z],[J],[Ce],[be,{'useClass':je}],[G['ISocketService'],{'useClass':G['WebSocketService']}],[u[_0x1dcfcf(0x196)],{'useClass':ge}],[exports[_0x1dcfcf(0x11d)]],[Q],[q],[x],[de],[exports[_0x1dcfcf(0x25b)]]];a[_0x1dcfcf(0xe4)](this['_injector'],a['mergeOverrideWithDependencies'](_0x8f7e63,(_0x40669b=this[_0x1dcfcf(0x260)])==null?void 0x0:_0x40669b[_0x1dcfcf(0x17a)]));}[_0x49408b(0x175)](){const _0x8aff89=_0x49408b;this['disposeWithMe'](this[_0x8aff89(0x290)]['registerRenderModule'](a[_0x8aff89(0x17f)][_0x8aff89(0x11a)],[Ie])),this[_0x8aff89(0x14d)](this['_renderManagerService'][_0x8aff89(0x205)](a[_0x8aff89(0x17f)]['UNIVER_SHEET'],[ve]));}[_0x49408b(0x30f)](){const _0x2feb34=_0x49408b;a[_0x2feb34(0x2ee)](this['_injector'],[[x],[exports[_0x2feb34(0x11d)]],[Q],[q],[exports[_0x2feb34(0x25b)]]]);}},Qt(exports[_0x49408b(0x32e)],_0x49408b(0x29a),es),exports['UniverCollaborationClientUIPlugin']=Zt([a[_0x49408b(0x345)](u[_0x49408b(0x237)]),he(0x1,p[_0x49408b(0x261)]),he(0x2,a[_0x49408b(0x30d)](a['Injector'])),he(0x3,a['IConfigService'])],exports[_0x49408b(0x32e)]);var ts=Object[_0x49408b(0x1d1)],ss=(_0x1a4b33,_0x571e43,_0x581cd1,_0x18103b)=>{const _0x5ccff4=_0x49408b;for(var _0x679fc7=_0x18103b>0x1?void 0x0:_0x18103b?ts(_0x571e43,_0x581cd1):_0x571e43,_0x428d17=_0x1a4b33[_0x5ccff4(0x1b4)]-0x1,_0x3b0eb0;_0x428d17>=0x0;_0x428d17--)(_0x3b0eb0=_0x1a4b33[_0x428d17])&&(_0x679fc7=_0x3b0eb0(_0x679fc7)||_0x679fc7);return _0x679fc7;},F=(_0x2fb274,_0xa047d4)=>(_0x530525,_0x3fd0d0)=>_0xa047d4(_0x530525,_0x3fd0d0,_0x2fb274);exports[_0x49408b(0x206)]=class extends u[_0x49408b(0x2fd)]{constructor(_0x41699a,_0x561b15,_0x19fd78,_0x4ac186,_0x30cb83){super(_0x41699a,_0x561b15,_0x19fd78,_0x4ac186,_0x30cb83);}async['createSocket'](_0x34f9f3){const _0x20b9ab=_0x49408b,_0x1ff8f5=await this[_0x20b9ab(0x127)](),_0x3d4e7=this[_0x20b9ab(0x217)](_0x34f9f3,_0x1ff8f5);return this[_0x20b9ab(0x22c)](_0x3d4e7);}['_createSocketURL'](_0x3bc509,_0x51e82a){const _0x2e94ab=_0x49408b,_0x598556=typeof window>'u'?new URL(_0x3bc509):new URL(_0x3bc509,window['location'][_0x2e94ab(0x1ea)]);_0x598556[_0x2e94ab(0x36f)][_0x2e94ab(0x100)](_0x2e94ab(0x2a0),_0x51e82a);const _0x2149b6=typeof window>'u'?new URLSearchParams():new URLSearchParams(window['location'][_0x2e94ab(0x2fa)]);return _0x2149b6[_0x2e94ab(0x140)]('runId')&&_0x598556[_0x2e94ab(0x36f)][_0x2e94ab(0x100)]('runId',_0x2149b6[_0x2e94ab(0x140)](_0x2e94ab(0x16b))),_0x598556[_0x2e94ab(0xe6)]();}async[_0x49408b(0x127)](){const _0x5a26ab=_0x49408b;var _0x5dcad9,_0x46da03,_0x332379;const _0x1f5c73=this['_configService'][_0x5a26ab(0x325)](u[_0x5a26ab(0x1cd)]),_0x13037a=(_0x5dcad9=_0x1f5c73==null?void 0x0:_0x1f5c73[_0x5a26ab(0x313)])!=null?_0x5dcad9:u[_0x5a26ab(0x27b)];return(_0x332379=(_0x46da03=(await this[_0x5a26ab(0x104)][_0x5a26ab(0x140)](_0x13037a,{'headers':{'Content-Type':_0x5a26ab(0x226)}}))[_0x5a26ab(0x2f6)])==null?void 0x0:_0x46da03[_0x5a26ab(0x307)])!=null?_0x332379:'';}},exports[_0x49408b(0x206)]=ss([F(0x0,a[_0x49408b(0x30d)](a[_0x49408b(0x348)])),F(0x1,a[_0x49408b(0x30d)](G[_0x49408b(0x267)])),F(0x2,a[_0x49408b(0x1ab)]),F(0x3,a['ILogService']),F(0x4,m[_0x49408b(0x1b0)])],exports[_0x49408b(0x206)]);const Me=0x7530,Le=_0x49408b(0x139);class is extends a[_0x49408b(0x107)]{constructor(){const _0x368ac8=_0x49408b;super(),h(this,_0x368ac8(0x25a),a[_0x368ac8(0x271)]()),h(this,_0x368ac8(0x1d8),new Set()),h(this,'_unitOnClients',new Map()),h(this,_0x368ac8(0x34d),null),h(this,_0x368ac8(0xec),new Map()),h(this,_0x368ac8(0xeb),new Map()),this[_0x368ac8(0x242)]();}[_0x49408b(0x2e9)](){const _0x5a6401=_0x49408b;super[_0x5a6401(0x2e9)](),this['_clearOtherTimers']['forEach']((_0x5a86c6,_0x191911)=>this[_0x5a6401(0x2ac)](_0x191911)),this[_0x5a6401(0x34d)]&&window[_0x5a6401(0x239)](this[_0x5a6401(0x34d)]);}[_0x49408b(0x253)](_0x14949c){const _0x1bf6a7=_0x49408b;return this[_0x1bf6a7(0x2da)](_0x14949c)['pipe'](d[_0x1bf6a7(0x1bd)]());}[_0x49408b(0x366)](_0x42df1c){const _0x1d3679=_0x49408b;this[_0x1d3679(0x1d8)][_0x1d3679(0x340)]===0x0&&this[_0x1d3679(0x350)](),this[_0x1d3679(0x1d8)]['add'](_0x42df1c),this[_0x1d3679(0x2de)]({'type':0x0,'memberID':this['_id'],'unitIDs':[_0x42df1c],'isForwarded':!0x1});}[_0x49408b(0x33c)](_0x24c657){const _0x6af59f=_0x49408b;this[_0x6af59f(0x1d8)][_0x6af59f(0x12b)](_0x24c657),this[_0x6af59f(0x1d8)]['size']===0x0&&this['_heartbeatTimer']&&window['clearInterval'](this[_0x6af59f(0x34d)]);}[_0x49408b(0x242)](){const _0x3803b2=_0x49408b;this['disposeWithMe'](a[_0x3803b2(0x296)](d[_0x3803b2(0x1fb)](window,_0x3803b2(0x1ee))[_0x3803b2(0x2aa)](_0x3af8df=>{const _0x2ba48e=_0x3803b2;if(_0x3af8df[_0x2ba48e(0x1ba)]!==Le||!_0x3af8df[_0x2ba48e(0xff)])return;const _0x546aff=JSON['parse'](_0x3af8df[_0x2ba48e(0xff)]);this[_0x2ba48e(0x2e7)](_0x546aff);}))),window[_0x3803b2(0x303)](_0x3803b2(0x13f),()=>this[_0x3803b2(0x2de)]({'type':0x1,'memberID':this[_0x3803b2(0x25a)],'unitIDs':Array[_0x3803b2(0x197)](this['_selfUnitIDs'])}));}[_0x49408b(0x2e7)](_0x5aa2ec){const _0x2080a0=_0x49408b;switch(_0x5aa2ec[_0x2080a0(0x2cc)]){case 0x0:this[_0x2080a0(0x1af)](_0x5aa2ec);break;case 0x1:this[_0x2080a0(0x223)](_0x5aa2ec);break;case 0x2:this[_0x2080a0(0x22f)](_0x5aa2ec);break;}}[_0x49408b(0x1af)](_0x3a8c24){const _0x40cc53=_0x49408b,{unitIDs:_0x4ed0cb,memberID:_0x53ac98,isForwarded:_0x3e3a73}=_0x3a8c24;_0x4ed0cb[_0x40cc53(0x150)](_0x37a50a=>{const _0x2214ad=_0x40cc53;if(!_0x3e3a73&&this[_0x2214ad(0x1b6)][_0x2214ad(0x1e0)](_0x37a50a)&&this[_0x2214ad(0x2da)](_0x37a50a)[_0x2214ad(0x208)](u[_0x2214ad(0x126)][_0x2214ad(0x121)]),!this[_0x2214ad(0x1b6)]['has'](_0x37a50a)||!this[_0x2214ad(0x1b6)][_0x2214ad(0x140)](_0x37a50a)[_0x2214ad(0x1e0)](_0x53ac98)){const _0x29960d=this[_0x2214ad(0x1b6)]['get'](_0x37a50a)||new Set();_0x29960d[_0x2214ad(0x306)](_0x53ac98),this[_0x2214ad(0x1b6)][_0x2214ad(0x100)](_0x37a50a,_0x29960d),this[_0x2214ad(0x2c1)](_0x53ac98);}}),_0x3e3a73||this['_send']({'type':0x0,'memberID':this[_0x40cc53(0x25a)],'unitIDs':[...this[_0x40cc53(0x1d8)]],'isForwarded':!0x0});}[_0x49408b(0x2c1)](_0x1668e5){const _0x180dc7=_0x49408b;this[_0x180dc7(0x2ac)](_0x1668e5);const _0x2c7e67=window[_0x180dc7(0x35e)](()=>{const _0x4c3c30=_0x180dc7;this[_0x4c3c30(0x1b6)][_0x4c3c30(0x150)](_0x3edf6f=>{const _0x55dd4f=_0x4c3c30;_0x3edf6f[_0x55dd4f(0x12b)](_0x1668e5);});},Me*0x2);this[_0x180dc7(0xec)]['set'](_0x1668e5,_0x2c7e67);}[_0x49408b(0x2ac)](_0x351231){const _0x54adc2=_0x49408b;if(this['_clearOtherTimers'][_0x54adc2(0x1e0)](_0x351231)){const _0x485779=this[_0x54adc2(0xec)][_0x54adc2(0x140)](_0x351231);_0x485779&&window[_0x54adc2(0x265)](_0x485779),this[_0x54adc2(0xec)][_0x54adc2(0x100)](_0x351231,null);}}['_handleLeaveEvent'](_0x2f2371){const _0x446b20=_0x49408b,{memberID:_0x3db0d3,unitIDs:_0x543c1e}=_0x2f2371;_0x543c1e[_0x446b20(0x150)](_0x316f77=>{const _0x69dfcb=_0x446b20;var _0xdddefe;const _0x6c717a=this[_0x69dfcb(0x1b6)][_0x69dfcb(0x140)](_0x316f77);_0x6c717a&&(_0x6c717a[_0x69dfcb(0x12b)](_0x3db0d3),(_0xdddefe=this[_0x69dfcb(0x2da)](_0x316f77))==null||_0xdddefe[_0x69dfcb(0x208)](_0x6c717a[_0x69dfcb(0x340)]===0x0?u[_0x69dfcb(0x126)][_0x69dfcb(0x106)]:u[_0x69dfcb(0x126)][_0x69dfcb(0x121)]));}),this[_0x446b20(0x2ac)](_0x3db0d3);}[_0x49408b(0x22f)](_0x4d0430){const _0x22dbc3=_0x49408b;this['_scheduleClearOtherTimer'](_0x4d0430[_0x22dbc3(0x2ab)]);}[_0x49408b(0x2de)](_0x47b433){const _0x4bf4d6=_0x49408b;localStorage[_0x4bf4d6(0x1ff)](Le,JSON[_0x4bf4d6(0x1a3)](_0x47b433));}['_scheduleHeartbeat'](){this['_heartbeatTimer']=window['setInterval'](()=>{this['_send']({'type':0x2,'memberID':this['_id']});},Me);}['_ensureSubject'](_0x33b605){const _0x4347fc=_0x49408b;return this['_unitStatus'][_0x4347fc(0x1e0)](_0x33b605)||this['_unitStatus'][_0x4347fc(0x100)](_0x33b605,new d[(_0x4347fc(0x200))](u[_0x4347fc(0x126)][_0x4347fc(0x106)])),this[_0x4347fc(0xeb)][_0x4347fc(0x140)](_0x33b605);}}function _0x224e(_0x1f4544,_0x400402){const _0x281eb3=_0x281e();return _0x224e=function(_0x224ec5,_0x16d738){_0x224ec5=_0x224ec5-0xe1;let _0x2514ee=_0x281eb3[_0x224ec5];return _0x2514ee;},_0x224e(_0x1f4544,_0x400402);}var Be=(_0x5817a5=>(_0x5817a5[_0x5817a5[_0x49408b(0x1d9)]=0x0]='UNDEFINED',_0x5817a5[_0x5817a5['OK']=0x1]='OK',_0x5817a5[_0x5817a5[_0x49408b(0x266)]=0x2]='INTERNAL_ERROR',_0x5817a5[_0x5817a5[_0x49408b(0x2bc)]=0x3]=_0x49408b(0x2bc),_0x5817a5[_0x5817a5[_0x49408b(0x2b9)]=0x4]='NOT_FOUND',_0x5817a5[_0x5817a5[_0x49408b(0x34b)]=0x5]='UNAUTHENTICATED',_0x5817a5[_0x5817a5['ALREADY_EXISTS']=0x6]=_0x49408b(0x11f),_0x5817a5[_0x5817a5[_0x49408b(0x149)]=0x7]=_0x49408b(0x149),_0x5817a5[_0x5817a5['TOO_MANY_REQUESTS']=0x8]=_0x49408b(0x281),_0x5817a5[_0x5817a5[_0x49408b(0x1f5)]=0x9]=_0x49408b(0x1f5),_0x5817a5[_0x5817a5[_0x49408b(0x229)]=0xa]='LOGIN_FAILED',_0x5817a5[_0x5817a5[_0x49408b(0x35f)]=0x1389]=_0x49408b(0x35f),_0x5817a5[_0x5817a5['SNAPSHOT_INVALID_SNAPSHOT']=0x1771]=_0x49408b(0xf7),_0x5817a5[_0x5817a5[_0x49408b(0x244)]=0x1772]=_0x49408b(0x244),_0x5817a5[_0x5817a5[_0x49408b(0x329)]=0x1773]='ENSURE_SNAPSHOT_EXECUTION',_0x5817a5[_0x5817a5[_0x49408b(0x170)]=0x1b59]=_0x49408b(0x170),_0x5817a5[_0x5817a5[_0x49408b(0x284)]=0x1b5a]=_0x49408b(0x284),_0x5817a5[_0x5817a5[_0x49408b(0x131)]=0x1b5b]=_0x49408b(0x131),_0x5817a5[_0x5817a5[_0x49408b(0x1fa)]=0x1b5c]=_0x49408b(0x1fa),_0x5817a5[_0x5817a5[_0x49408b(0xea)]=0x1b5d]='APPLY_DUPLICATED',_0x5817a5[_0x5817a5[_0x49408b(0x28e)]=0x1f41]=_0x49408b(0x28e),_0x5817a5[_0x5817a5[_0x49408b(0x2b7)]=0x2329]='LICENSE_MAX_UNITS_EXCEEDED',_0x5817a5[_0x5817a5[_0x49408b(0x178)]=0x232a]=_0x49408b(0x178),_0x5817a5[_0x5817a5['LICENSE_IMPORT_SIZE_EXCEEDED']=0x232b]='LICENSE_IMPORT_SIZE_EXCEEDED',_0x5817a5[_0x5817a5[_0x49408b(0x280)]=0x232c]=_0x49408b(0x280),_0x5817a5[_0x5817a5[_0x49408b(0x225)]=0x232d]=_0x49408b(0x225),_0x5817a5[_0x5817a5['YUUMI_UNABLE_LOAD_URL']=0x2711]=_0x49408b(0x20a),_0x5817a5[_0x5817a5['YUUMI_URL_COL_OUT_OF_RANGE']=0x2712]=_0x49408b(0x18a),_0x5817a5[_0x5817a5[_0x49408b(0x1d5)]=0x2713]=_0x49408b(0x1d5),_0x5817a5[_0x5817a5[_0x49408b(0xfa)]=0x2714]='YUUMI_SUBSCRIPTION_NOT_FOUND',_0x5817a5[_0x5817a5[_0x49408b(0x2fc)]=0x271a]='YUUMI_NO_CUBOID_FOR_QUESTION',_0x5817a5[_0x5817a5[_0x49408b(0x210)]=0x271b]=_0x49408b(0x210),_0x5817a5[_0x5817a5[_0x49408b(0x24c)]=0x271c]=_0x49408b(0x24c),_0x5817a5[_0x5817a5['YUUMI_ALL_TABLES_IS_INVALID']=0x271d]=_0x49408b(0x372),_0x5817a5[_0x5817a5['YUUMI_PROMPT_MAX_TOKENS_EXCEEDED']=0x271e]='YUUMI_PROMPT_MAX_TOKENS_EXCEEDED',_0x5817a5[_0x5817a5['YUUMI_AI_RUN_FAILED']=0x271f]=_0x49408b(0x28d),_0x5817a5[_0x5817a5[_0x49408b(0x29e)]=0x2af9]=_0x49408b(0x29e),_0x5817a5[_0x5817a5[_0x49408b(0x2df)]=0x2ee1]=_0x49408b(0x2df),_0x5817a5[_0x5817a5[_0x49408b(0x25d)]=0x2ee2]=_0x49408b(0x25d),_0x5817a5[_0x5817a5[_0x49408b(0x11c)]=0x2ee3]=_0x49408b(0x11c),_0x5817a5[_0x5817a5[_0x49408b(0x289)]=0x2ee4]='USER_NOT_INVITED_CODE',_0x5817a5[_0x5817a5[_0x49408b(0x1fe)]=0x2ee5]=_0x49408b(0x1fe),_0x5817a5[_0x5817a5[_0x49408b(0x327)]=0x32c9]=_0x49408b(0x327),_0x5817a5[_0x5817a5[_0x49408b(0x353)]=0x32ca]=_0x49408b(0x353),_0x5817a5[_0x5817a5[_0x49408b(0x320)]=0x32cb]='EMAIL_HAS_BEEN_BOUND',_0x5817a5[_0x5817a5['UNRECOGNIZED']=-0x1]=_0x49408b(0x1e9),_0x5817a5))(Be||{}),ns=Object[_0x49408b(0x1d1)],rs=(_0x2f96a1,_0x24e376,_0x153b51,_0x241d0c)=>{for(var _0x31cb18=_0x241d0c>0x1?void 0x0:_0x241d0c?ns(_0x24e376,_0x153b51):_0x24e376,_0x453dc0=_0x2f96a1['length']-0x1,_0x3f55c2;_0x453dc0>=0x0;_0x453dc0--)(_0x3f55c2=_0x2f96a1[_0x453dc0])&&(_0x31cb18=_0x3f55c2(_0x31cb18)||_0x31cb18);return _0x31cb18;},ue=(_0x1680a6,_0x3e5624)=>(_0x47001d,_0x2b29bb)=>_0x3e5624(_0x47001d,_0x2b29bb,_0x1680a6);exports[_0x49408b(0x158)]=class extends a[_0x49408b(0x107)]{constructor(_0x24933d,_0x10501b,_0x4a8b3c){const _0x229f87=_0x49408b;super(),this[_0x229f87(0xe3)]=_0x24933d,this['_httpService']=_0x10501b,this[_0x229f87(0x12e)]=_0x4a8b3c;}async[_0x49408b(0x17e)](_0x5eaf44,_0x2d034e,_0x1876ca,..._0x47bde1){const _0x406512=_0x49408b;var _0x4301ea,_0x5a4183,_0x243968,_0x3294c0;const _0x820eef=this[_0x406512(0xe3)]['getFocusedUnit']();if(!_0x820eef)throw new Error(_0x406512(0x1e5));const _0x1ddcfb=((_0x4301ea=this['_configService']['getConfig'](u['REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY']))!=null?_0x4301ea:u[_0x406512(0x352)])+'/'+_0x5eaf44+'/run/'+_0x2d034e,_0x1dd859=new URL(window['location'][_0x406512(0x152)]),_0x371f4b={'scriptId':_0x5eaf44,'runId':(_0x5a4183=_0x1dd859[_0x406512(0x36f)][_0x406512(0x140)](_0x406512(0x16b)))!=null?_0x5a4183:'','function':_0x2d034e,'unitId':_0x820eef['getUnitId'](),'argsOfFunction':JSON[_0x406512(0x1a3)](_0x47bde1),'invokeId':(_0x243968=_0x1876ca[_0x406512(0x1c0)])!=null?_0x243968:'','executionId':(_0x3294c0=_0x1876ca['executionId'])!=null?_0x3294c0:''};try{const _0x10c27c=await this[_0x406512(0x104)]['post'](_0x1ddcfb,{'body':_0x371f4b});return _0x10c27c[_0x406512(0x2f6)][_0x406512(0x123)]&&_0x10c27c[_0x406512(0x2f6)]['error'][_0x406512(0x258)]!==Be['OK']?_0x406512(0x2a4):_0x10c27c[_0x406512(0x2f6)][_0x406512(0xf3)];}catch{return _0x406512(0x2a4);}}},exports[_0x49408b(0x158)]=rs([ue(0x0,a[_0x49408b(0x213)]),ue(0x1,a[_0x49408b(0x30d)](G[_0x49408b(0x267)])),ue(0x2,a[_0x49408b(0x1ab)])],exports['RemoteUniscriptService']),exports[_0x49408b(0x2c6)]=xe,exports['IURLService']=be,exports['SheetCollabCursorShape']=Pe,exports[_0x49408b(0x164)]=is,exports[_0x49408b(0x177)]=je;
1
+ 'use strict';const _0x28c265=_0x29a9;(function(_0x3a29b6,_0x559f11){const _0x22ba72=_0x29a9,_0x46b596=_0x3a29b6();while(!![]){try{const _0x58eec4=parseInt(_0x22ba72(0x1cc))/0x1+parseInt(_0x22ba72(0x342))/0x2+parseInt(_0x22ba72(0x11b))/0x3*(-parseInt(_0x22ba72(0x216))/0x4)+parseInt(_0x22ba72(0x21b))/0x5*(-parseInt(_0x22ba72(0x319))/0x6)+-parseInt(_0x22ba72(0x33a))/0x7+parseInt(_0x22ba72(0x32e))/0x8*(-parseInt(_0x22ba72(0xc5))/0x9)+parseInt(_0x22ba72(0x20c))/0xa*(parseInt(_0x22ba72(0x27b))/0xb);if(_0x58eec4===_0x559f11)break;else _0x46b596['push'](_0x46b596['shift']());}catch(_0x3234aa){_0x46b596['push'](_0x46b596['shift']());}}}(_0x11d0,0xaf176));var Ve=Object['defineProperty'],Xe=(_0x5b1237,_0x5ed226,_0x195747)=>_0x5ed226 in _0x5b1237?Ve(_0x5b1237,_0x5ed226,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x195747}):_0x5b1237[_0x5ed226]=_0x195747,h=(_0x39c466,_0x30f52c,_0x4803ff)=>Xe(_0x39c466,typeof _0x30f52c!=_0x28c265(0xc6)?_0x30f52c+'':_0x30f52c,_0x4803ff);Object[_0x28c265(0x334)](exports,Symbol[_0x28c265(0x31e)],{'value':_0x28c265(0x1f0)});const u=require(_0x28c265(0x253)),a=require('@univerjs/core'),p=require(_0x28c265(0xec)),G=require(_0x28c265(0x1b8)),b=require(_0x28c265(0x198)),Ge=require('@univerjs/drawing'),d=require(_0x28c265(0xe3)),Y=require(_0x28c265(0x223)),m=require(_0x28c265(0x190)),Ee=require(_0x28c265(0x175)),g=require('@univerjs/sheets'),$=require(_0x28c265(0x287)),X=require(_0x28c265(0x1e1)),w=require(_0x28c265(0x166)),T=require(_0x28c265(0x1a3)),D=require(_0x28c265(0x31a)),M=require(_0x28c265(0x27f)),Ke=require(_0x28c265(0x306));var qe=Object[_0x28c265(0x346)],ze=(_0x4918c4,_0x369e5e,_0x1ba151,_0x4cabc5)=>{const _0x1636ba=_0x28c265;for(var _0xd226f7=_0x4cabc5>0x1?void 0x0:_0x4cabc5?qe(_0x369e5e,_0x1ba151):_0x369e5e,_0x466d6f=_0x4918c4[_0x1636ba(0x13d)]-0x1,_0x2493ba;_0x466d6f>=0x0;_0x466d6f--)(_0x2493ba=_0x4918c4[_0x466d6f])&&(_0xd226f7=_0x2493ba(_0xd226f7)||_0xd226f7);return _0xd226f7;},Te=(_0x3057d8,_0x260ad1)=>(_0x7c8d46,_0x41369f)=>_0x260ad1(_0x7c8d46,_0x41369f,_0x3057d8);let de=class extends a['RxDisposable']{constructor(_0x4a45c9,_0x38d926){const _0x4a8900=_0x28c265;super(),this[_0x4a8900(0x283)]=_0x4a45c9,this[_0x4a8900(0x228)]=_0x38d926,this[_0x4a8900(0x271)]();}['_init'](){const _0xe3ab7f=_0x28c265,_0x41ee21=this;this[_0xe3ab7f(0xcf)](this[_0xe3ab7f(0x283)][_0xe3ab7f(0x2ca)]({'onBeforePasteImage':async _0x998c72=>{const _0x279ee9=_0xe3ab7f,_0x14e02a=await _0x41ee21[_0x279ee9(0x228)][_0x279ee9(0x2df)](_0x998c72);return _0x14e02a?{'source':_0x14e02a[_0x279ee9(0x23e)],'imageSourceType':_0x14e02a[_0x279ee9(0x122)]}:null;}}));}};de=ze([Te(0x0,b['IDocClipboardService']),Te(0x1,Ge[_0x28c265(0x1ba)])],de);const Oe=[_0x28c265(0x2b4),'jiqing.500',_0x28c265(0x2b3),_0x28c265(0x341),_0x28c265(0x349),'yellow.400'];class me extends a[_0x28c265(0x12b)]{constructor(){const _0x3ab9de=_0x28c265;super(...arguments),h(this,_0x3ab9de(0xee),new Map()),h(this,'_colorIndex',0x0);}[_0x28c265(0x274)](_0x27250a){const _0x5624aa=_0x28c265;if(this[_0x5624aa(0xee)][_0x5624aa(0x16c)](_0x27250a))return this[_0x5624aa(0xee)][_0x5624aa(0x256)](_0x27250a);const _0x16d791=Oe[this[_0x5624aa(0x2f1)]];return this[_0x5624aa(0x2f1)]=(this[_0x5624aa(0x2f1)]+0x1)%Oe['length'],this[_0x5624aa(0xee)]['set'](_0x27250a,_0x16d791),_0x16d791;}}function we(_0x3cf1d9){const _0x29eaf0=_0x28c265;let _0x206125='';for(const _0x5d1ac7 of _0x3cf1d9){const {startOffset:_0x20b586,endOffset:_0x1e9d10,isActive:_0x4d111c,rangeType:_0x37d164,segmentId:_0xaf08a9,segmentPage:_0x2044af}=_0x5d1ac7;_0x206125[_0x29eaf0(0x13d)]&&(_0x206125+=','),_0x206125+=_0x20b586+':'+_0x1e9d10+':'+(_0x4d111c?'1':'0')+':'+_0x37d164+':'+_0xaf08a9+':'+_0x2044af;}return _0x206125;}function Je(_0x511e80){const _0x40ec9d=_0x28c265,_0x27ab17=_0x511e80['split'](','),_0x24475b=[];for(const _0x4a7da0 of _0x27ab17){const [_0x1b4f6e,_0x5d1083,_0x2b18cf,_0x13c434,_0x5198f6,_0x398683]=_0x4a7da0['split'](':');_0x24475b[_0x40ec9d(0x1d6)]({'startOffset':Number(_0x1b4f6e),'endOffset':Number(_0x5d1083),'collapsed':_0x1b4f6e===_0x5d1083,'isActive':_0x2b18cf==='1','rangeType':_0x13c434===a[_0x40ec9d(0x1ea)][_0x40ec9d(0x25a)]?a[_0x40ec9d(0x1ea)]['TEXT']:a['DOC_RANGE_TYPE'][_0x40ec9d(0x331)],'segmentId':typeof _0x5198f6=='string'?String(_0x5198f6):'','segmentPage':Number(_0x398683!=null?_0x398683:-0x1)});}return _0x24475b[_0x40ec9d(0x19a)](_0x517701=>_0x517701[_0x40ec9d(0x29d)])||(_0x24475b[0x0]['isActive']=!0x0),_0x24475b;}class Ce extends a[_0x28c265(0x2af)]{constructor(){const _0x73ce55=_0x28c265;super(...arguments),h(this,'_collabCursorState$',new d[(_0x73ce55(0x2b2))](null)),h(this,_0x73ce55(0x310),this[_0x73ce55(0x30b)]['asObservable']());}[_0x28c265(0x20f)](_0x3bcd6c){const _0xc8963d=_0x28c265,{unitID:_0xd1c252,memberID:_0x2f8eb8,textRanges:_0x8010fe}=_0x3bcd6c,_0x5e0c9e=we(_0x8010fe);if(_0x5e0c9e==='')return;const _0x3f0440={'unitID':_0xd1c252,'memberID':_0x2f8eb8,'selection':_0x5e0c9e};this[_0xc8963d(0x30b)]['next'](_0x3f0440);}}var Ze=Object['getOwnPropertyDescriptor'],Qe=(_0xe2ab,_0x4cc692,_0x53428d,_0x516a83)=>{const _0x4cb2fe=_0x28c265;for(var _0x493f14=_0x516a83>0x1?void 0x0:_0x516a83?Ze(_0x4cc692,_0x53428d):_0x4cc692,_0x2105da=_0xe2ab[_0x4cb2fe(0x13d)]-0x1,_0x1091e3;_0x2105da>=0x0;_0x2105da--)(_0x1091e3=_0xe2ab[_0x2105da])&&(_0x493f14=_0x1091e3(_0x493f14)||_0x493f14);return _0x493f14;},L=(_0x44ee42,_0x40c7d5)=>(_0x466dee,_0x4bcada)=>_0x40c7d5(_0x466dee,_0x4bcada,_0x44ee42);const et=0x12c,tt=0x64;let fe=class extends a['RxDisposable']{constructor(_0x1b7927,_0x1577e0,_0x17c41f,_0x9e9d35,_0x48831a,_0x34f63e,_0x4c6e3e,_0x5d0b50,_0x55a993){const _0x17199b=_0x28c265;super(),h(this,_0x17199b(0x209),!0x1),h(this,_0x17199b(0x271),!0x1),h(this,_0x17199b(0xe7),new d[(_0x17199b(0x2b2))](new Map())),h(this,_0x17199b(0x2c8),this[_0x17199b(0xe7)][_0x17199b(0x323)]()),h(this,'_roomMembers$',new d['BehaviorSubject']([])),h(this,_0x17199b(0x2b5),this[_0x17199b(0x2fd)][_0x17199b(0x217)](d[_0x17199b(0x24b)](et))),h(this,'_updateLocalCursor',a[_0x17199b(0x1c6)](_0x2e6d00=>{const _0x1b5bf1=_0x17199b,_0x326e8a={'eventID':m[_0x1b5bf1(0x333)]['UPDATE_CURSOR'],'data':{'unitID':this[_0x1b5bf1(0x200)],'memberID':this[_0x1b5bf1(0x1c7)]['getMemberID'](),'selection':we(_0x2e6d00)}};this['_session']['send'](_0x326e8a,this[_0x1b5bf1(0x200)]);},tt)),(this['unitID']=_0x1b7927,this[_0x17199b(0x1c7)]=_0x1577e0,this['_injector']=_0x17c41f,this[_0x17199b(0x12c)]=_0x9e9d35,this[_0x17199b(0x226)]=_0x48831a,this[_0x17199b(0x2bd)]=_0x34f63e,this['_transformService']=_0x4c6e3e,this[_0x17199b(0x2b9)]=_0x5d0b50,this['_commandService']=_0x55a993);}get[_0x28c265(0x1e4)](){const _0x18fcc1=_0x28c265;return this[_0x18fcc1(0xe7)][_0x18fcc1(0x2db)]();}get['roomMembers'](){const _0xfdc3b7=_0x28c265;return this['_roomMembers$'][_0xfdc3b7(0x2db)]();}['dispose'](){const _0x251187=_0x28c265;super[_0x251187(0x1d8)](),this[_0x251187(0xe7)]['next'](new Map()),this[_0x251187(0xe7)][_0x251187(0x28e)](),this[_0x251187(0x2fd)][_0x251187(0x113)]([]),this[_0x251187(0x2fd)][_0x251187(0x28e)]();}[_0x28c265(0x2f4)](){const _0x23985d=_0x28c265;this['_init']||(this[_0x23985d(0x271)]=!0x0,this[_0x23985d(0x1c7)][_0x23985d(0x29c)][_0x23985d(0x217)](d[_0x23985d(0x2ea)](this[_0x23985d(0x176)]))[_0x23985d(0x2bb)](_0x3f788c=>{const _0x4bc45d=_0x23985d;_0x3f788c===u[_0x4bc45d(0x247)][_0x4bc45d(0x2d3)]?this[_0x4bc45d(0x1ab)]():this['_toggleOffline']();}),this[_0x23985d(0x1c7)][_0x23985d(0x1ef)][_0x23985d(0x217)](d['takeUntil'](this[_0x23985d(0x176)]))[_0x23985d(0x2bb)](_0x4a6835=>{const _0x300e29=_0x23985d,_0x2b908f=_0x4a6835[_0x300e29(0x123)];_0x2b908f===m[_0x300e29(0x333)][_0x300e29(0x2ff)]&&this[_0x300e29(0xde)](_0x4a6835),_0x2b908f===m['CollaborationEvent']['USERS_LEAVE']&&this[_0x300e29(0x148)](_0x4a6835);}),this[_0x23985d(0xcf)](this[_0x23985d(0xf2)]['onCommandExecuted'](_0x37f791=>{const _0x174922=_0x23985d,_0x115be4=_0x37f791[_0x174922(0x31c)];_0x115be4!=null&&this[_0x174922(0x209)]&&_0x37f791['id']===Y[_0x174922(0x14c)]['id']&&_0x115be4['unitId']===this[_0x174922(0x200)]&&_0x115be4['isEditing']===!0x1&&_0x115be4[_0x174922(0x109)][_0x174922(0x13d)]>0x0&&this['_updateLocalCursor'](_0x115be4['ranges']);})),this['_syncEditingCollabCursorService'][_0x23985d(0x310)]['pipe'](d[_0x23985d(0x2ea)](this[_0x23985d(0x176)]))['subscribe'](_0x36437e=>{const _0x1099ad=_0x23985d;if((_0x36437e==null?void 0x0:_0x36437e['unitID'])!==this[_0x1099ad(0x200)])return;const _0xe8b20c={'eventID':m[_0x1099ad(0x333)][_0x1099ad(0x2ff)],'data':_0x36437e};this[_0x1099ad(0xde)](_0xe8b20c);}),this[_0x23985d(0xcf)](this['_commandService'][_0x23985d(0x2ef)](_0x6b45f3=>{const _0x44b26b=_0x23985d;if(_0x6b45f3[_0x44b26b(0x31c)]==null)return;const _0x18fcc5=_0x6b45f3[_0x44b26b(0x31c)];if(_0x6b45f3['id']!==Y[_0x44b26b(0x159)]['id']||_0x18fcc5[_0x44b26b(0xdc)]!==this[_0x44b26b(0x200)])return;const _0x52b6f9={'id':_0x44b26b(0x155),'params':_0x18fcc5},_0x196a03=this[_0x44b26b(0x1e4)];for(const [_0x37b6a,_0x4deaf2]of _0x196a03){const _0x483e6e={'id':_0x44b26b(0x155),'params':{'unitId':this[_0x44b26b(0x200)],'actions':null,'textRanges':_0x4deaf2[_0x44b26b(0x109)]}},_0x1788ea=this[_0x44b26b(0x1c3)][_0x44b26b(0x1ee)](_0x52b6f9,_0x483e6e,!0x1);if(m[_0x44b26b(0x17f)](_0x1788ea))throw _0x1788ea[_0x44b26b(0x248)];_0x196a03[_0x44b26b(0x18c)](_0x37b6a,{..._0x4deaf2,'ranges':_0x1788ea[_0x44b26b(0x12f)][_0x44b26b(0x31c)][_0x44b26b(0x19f)]});}queueMicrotask(()=>{const _0x43549e=_0x44b26b;this[_0x43549e(0xe7)][_0x43549e(0x113)](_0x196a03);});})));}[_0x28c265(0xde)](_0x1af8b7){const _0x38097b=_0x28c265;var _0x320c5d,_0x14fb05;const {memberID:_0x34423f,selection:_0x1793df}=_0x1af8b7[_0x38097b(0x1fe)],_0x131917=Je(_0x1793df),_0x210a08=(_0x14fb05=(_0x320c5d=this[_0x38097b(0x226)][_0x38097b(0x2fc)](this[_0x38097b(0x200)],_0x34423f))==null?void 0x0:_0x320c5d[_0x38097b(0x254)])!=null?_0x14fb05:'Unknown\x20user',_0x3a0ad9={'color':this['_colorAssignService'][_0x38097b(0x274)](_0x34423f),'name':_0x210a08,'ranges':_0x131917},_0x10b2fe=this[_0x38097b(0x1e4)];_0x10b2fe[_0x38097b(0x18c)](_0x34423f,_0x3a0ad9),this['_cursorInfo$']['next'](_0x10b2fe);}[_0x28c265(0x148)](_0x112b0f){const _0x2c9768=_0x28c265,{memberID:_0x576e9f}=_0x112b0f[_0x2c9768(0x1fe)],_0x2b14cc=this[_0x2c9768(0x1e4)];_0x2b14cc[_0x2c9768(0x220)](_0x576e9f),this[_0x2c9768(0xe7)][_0x2c9768(0x113)](_0x2b14cc);}[_0x28c265(0x1ab)](){const _0x286095=_0x28c265;var _0x170ce5;if(this['_online']=!0x0,((_0x170ce5=this['_univerInstanceService'][_0x286095(0x28f)]())==null?void 0x0:_0x170ce5['getUnitId']())!==this[_0x286095(0x200)])return;const _0x3023e4=this[_0x286095(0xce)]['get'](Y[_0x286095(0x1d3)])[_0x286095(0x227)]();Array[_0x286095(0x2ad)](_0x3023e4)&&_0x3023e4[_0x286095(0x13d)]>0x0&&this['_updateLocalCursor'](_0x3023e4);}[_0x28c265(0x101)](){const _0x305cca=_0x28c265;this[_0x305cca(0x209)]=!0x1;}};fe=Qe([L(0x2,a[_0x28c265(0x1b0)](a[_0x28c265(0x23b)])),L(0x3,a[_0x28c265(0x1b0)](me)),L(0x4,a[_0x28c265(0x1b0)](u[_0x28c265(0x24c)])),L(0x5,a[_0x28c265(0x1b0)](Ce)),L(0x6,m[_0x28c265(0x116)]),L(0x7,a[_0x28c265(0x208)]),L(0x8,a[_0x28c265(0x1f7)])],fe);var st=Object[_0x28c265(0x346)],it=(_0x5477ac,_0x37cc23,_0x4b2c7b,_0x13d319)=>{const _0x5110f3=_0x28c265;for(var _0x908a9d=_0x13d319>0x1?void 0x0:_0x13d319?st(_0x37cc23,_0x4b2c7b):_0x37cc23,_0x2a75f9=_0x5477ac[_0x5110f3(0x13d)]-0x1,_0xfd3784;_0x2a75f9>=0x0;_0x2a75f9--)(_0xfd3784=_0x5477ac[_0x2a75f9])&&(_0x908a9d=_0xfd3784(_0x908a9d)||_0x908a9d);return _0x908a9d;},A=(_0x25f89f,_0x236317)=>(_0x28eafd,_0x246689)=>_0x236317(_0x28eafd,_0x246689,_0x25f89f);const nt=0x12c,rt=0x64,ot=()=>{let _0x214cda=[],_0x28118e=!0x1;return _0x5b1cc9=>{const _0x417ada=_0x29a9;_0x214cda[_0x417ada(0x1d6)](_0x5b1cc9),_0x28118e||(_0x28118e=!0x0,setTimeout(()=>{_0x214cda['forEach'](_0xc99cd4=>_0xc99cd4()),_0x214cda=[],_0x28118e=!0x1;}));};};let Se=class extends a[_0x28c265(0x2af)]{constructor(_0x603848,_0x164b51,_0x1e34b8,_0x35450a,_0x2864e7,_0x1982fc,_0x39c5f6,_0x5d9280){const _0x33b6f5=_0x28c265;super(),h(this,_0x33b6f5(0x209),!0x1),h(this,_0x33b6f5(0x271),!0x1),h(this,_0x33b6f5(0xe7),new d[(_0x33b6f5(0x2b2))](new Map())),h(this,_0x33b6f5(0x2c8),this[_0x33b6f5(0xe7)]['asObservable']()),h(this,_0x33b6f5(0x2fd),new d['BehaviorSubject']([])),h(this,_0x33b6f5(0x2b5),this[_0x33b6f5(0x2fd)]['pipe'](d['debounceTime'](nt))),h(this,_0x33b6f5(0x252),a[_0x33b6f5(0x1c6)]((_0x4158ad,_0x1c1111)=>{const _0x29cd88=_0x33b6f5,_0x43093a={'eventID':m[_0x29cd88(0x333)][_0x29cd88(0x2ff)],'data':{'unitID':this[_0x29cd88(0x200)],'memberID':this[_0x29cd88(0x1c7)][_0x29cd88(0x204)](),'selection':Ee[_0x29cd88(0x22b)](_0x4158ad,_0x1c1111['range'])}};this[_0x29cd88(0x1c7)][_0x29cd88(0xc4)](_0x43093a,this[_0x29cd88(0x200)]);},rt)),(this[_0x33b6f5(0x200)]=_0x603848,this[_0x33b6f5(0x1c7)]=_0x164b51,this[_0x33b6f5(0xce)]=_0x1e34b8,this['_colorAssignService']=_0x35450a,this[_0x33b6f5(0x226)]=_0x2864e7,this[_0x33b6f5(0x2b9)]=_0x1982fc,this[_0x33b6f5(0xf2)]=_0x39c5f6,this[_0x33b6f5(0x14f)]=_0x5d9280);}get[_0x28c265(0x1e4)](){const _0x49793b=_0x28c265;return this[_0x49793b(0xe7)][_0x49793b(0x2db)]();}get[_0x28c265(0x299)](){const _0xedd65b=_0x28c265;return this['_roomMembers$'][_0xedd65b(0x2db)]();}['dispose'](){const _0x50368b=_0x28c265;super[_0x50368b(0x1d8)](),this['_cursorInfo$'][_0x50368b(0x113)](new Map()),this[_0x50368b(0xe7)]['complete'](),this[_0x50368b(0x2fd)][_0x50368b(0x113)]([]),this['_roomMembers$'][_0x50368b(0x28e)]();}['init'](){const _0x4f7df9=_0x28c265;this['_init']||(this['_init']=!0x0,this[_0x4f7df9(0x1c7)][_0x4f7df9(0x29c)]['pipe'](d['takeUntil'](this[_0x4f7df9(0x176)]))[_0x4f7df9(0x2bb)](_0x2aec2b=>{const _0x4f7190=_0x4f7df9;_0x2aec2b===u[_0x4f7190(0x247)]['ONLINE']?this[_0x4f7190(0x1ab)]():this[_0x4f7190(0x101)]();}),this[_0x4f7df9(0x1c7)]['event$'][_0x4f7df9(0x217)](d[_0x4f7df9(0x2ea)](this[_0x4f7df9(0x176)]))[_0x4f7df9(0x2bb)](_0x270191=>{const _0x552837=_0x4f7df9,_0x5ad685=_0x270191[_0x552837(0x123)];_0x5ad685===m[_0x552837(0x333)][_0x552837(0x2ff)]&&this[_0x552837(0xde)](_0x270191),_0x5ad685===m['CollaborationEvent'][_0x552837(0x2ab)]&&this[_0x552837(0x148)](_0x270191);}),this[_0x4f7df9(0x1b6)](),this[_0x4f7df9(0xcf)](this[_0x4f7df9(0xf2)]['onCommandExecuted'](_0x26ccd6=>{const _0x47aa84=_0x4f7df9;if(this['_online']&&_0x26ccd6['id']===g[_0x47aa84(0x26e)]['id']&&_0x26ccd6[_0x47aa84(0x31c)][_0x47aa84(0xdc)]===this[_0x47aa84(0x200)]){const _0x96aa0f=_0x26ccd6['params'];this[_0x47aa84(0x252)](_0x96aa0f['subUnitId'],_0x96aa0f[_0x47aa84(0x2a2)][0x0]);}})));}['_onCursorUpdate'](_0x40a818){const _0x553ce2=_0x28c265;var _0x37fbab,_0x752df3;const {memberID:_0x5f3e4a,selection:_0x51499a}=_0x40a818[_0x553ce2(0x1fe)],{sheetName:_0x5cbd82,range:_0x14f32b}=Ee[_0x553ce2(0x330)](_0x51499a),_0x15bd89={'name':(_0x752df3=(_0x37fbab=this[_0x553ce2(0x226)][_0x553ce2(0x2fc)](this[_0x553ce2(0x200)],_0x5f3e4a))==null?void 0x0:_0x37fbab[_0x553ce2(0x254)])!=null?_0x752df3:_0x553ce2(0x2e2),'range':this[_0x553ce2(0x289)](_0x5cbd82,_0x14f32b),'sheetID':_0x5cbd82,'color':this[_0x553ce2(0x12c)][_0x553ce2(0x274)](_0x5f3e4a),'selection':_0x51499a},_0x50ae8e=this['cursorInfo'];_0x50ae8e['set'](_0x5f3e4a,_0x15bd89),this['_cursorInfo$'][_0x553ce2(0x113)](_0x50ae8e);}[_0x28c265(0x148)](_0x2cb30c){const _0x518a51=_0x28c265,{memberID:_0x10c0e5}=_0x2cb30c[_0x518a51(0x1fe)],_0x3db1d7=this[_0x518a51(0x1e4)];_0x3db1d7[_0x518a51(0x220)](_0x10c0e5),this[_0x518a51(0xe7)][_0x518a51(0x113)](_0x3db1d7);}[_0x28c265(0x289)](_0x2d2e1e,_0x279890){const _0x4e2343=_0x28c265;var _0x4cd5e3,_0x3623ee;const _0x159efe=(_0x3623ee=(_0x4cd5e3=this[_0x4e2343(0x2b9)][_0x4e2343(0x151)](this['unitID']))==null?void 0x0:_0x4cd5e3[_0x4e2343(0x240)](_0x2d2e1e))==null?void 0x0:_0x3623ee[_0x4e2343(0x2d8)]();return(_0x159efe==null?void 0x0:_0x159efe[_0x4e2343(0x343)](_0x12a3c1=>a[_0x4e2343(0x1bd)]['contains'](_0x12a3c1,_0x279890)))||_0x279890;}['_onRefRangeChange'](){const _0x3ea792=_0x28c265,_0x4fe137=new a[(_0x3ea792(0x112))](),_0x5ab9d6=ot(),_0x137e07=()=>{const _0x44d3e8=_0x3ea792;_0x4fe137[_0x44d3e8(0x1d8)]();const _0x5c63e8=(_0x430d73,_0x40aaf6,_0x4b7276,_0x475fbf)=>{const _0x370d27=_0x44d3e8;let _0xbd9d17=[];switch(_0x430d73['id']){case g['EffectRefRangId'][_0x370d27(0x33f)]:{_0xbd9d17=g[_0x370d27(0x1ed)](_0x430d73,_0x475fbf);break;}case g[_0x370d27(0x26c)][_0x370d27(0x1af)]:{_0xbd9d17=g[_0x370d27(0x2e0)](_0x430d73,_0x475fbf);break;}case g[_0x370d27(0x26c)][_0x370d27(0x100)]:{_0xbd9d17=g[_0x370d27(0x234)](_0x430d73,_0x475fbf);break;}case g[_0x370d27(0x26c)][_0x370d27(0x30d)]:{_0xbd9d17=g['handleInsertRangeMoveDown'](_0x430d73,_0x475fbf);break;}case g[_0x370d27(0x26c)]['InsertRangeMoveRightCommandId']:{_0xbd9d17=g['handleInsertRangeMoveRight'](_0x430d73,_0x475fbf);break;}case g[_0x370d27(0x26c)]['InsertRowCommandId']:{_0xbd9d17=g[_0x370d27(0x232)](_0x430d73,_0x475fbf);break;}case g['EffectRefRangId'][_0x370d27(0x20d)]:{_0xbd9d17=g[_0x370d27(0x282)](_0x430d73,_0x475fbf);break;}case g[_0x370d27(0x26c)][_0x370d27(0x22a)]:{_0xbd9d17=g['handleIRemoveCol'](_0x430d73,_0x475fbf);break;}case g[_0x370d27(0x26c)][_0x370d27(0x178)]:{_0xbd9d17=g[_0x370d27(0xca)](_0x430d73,_0x475fbf);break;}}const _0x2d3feb=g[_0x370d27(0x325)](_0xbd9d17,_0x475fbf),_0x5b85b4=this[_0x370d27(0x1e4)][_0x370d27(0x256)](_0x40aaf6);if(_0x5b85b4&&_0x2d3feb){const _0x3f858d={..._0x5b85b4,'range':_0x2d3feb};this[_0x370d27(0x1e4)]['set'](_0x40aaf6,_0x3f858d),_0x5ab9d6(()=>{const _0x100325=_0x370d27,_0x2364a8=this['_refRangeService'][_0x100325(0x28a)](_0x2d3feb,_0x4f61ac=>(_0x2364a8[_0x100325(0x1d8)](),_0x5c63e8(_0x4f61ac,_0x40aaf6,_0x4b7276,_0x2d3feb)));_0x4fe137[_0x100325(0x251)](_0x2364a8);});}return{'redos':[],'undos':[]};};this['cursorInfo']['forEach']((_0x309e51,_0x577ad6)=>{const _0x1c531e=_0x44d3e8,{range:_0x325299,sheetID:_0x43caf7}=_0x309e51,_0x2e2d4f=this[_0x1c531e(0x14f)]['registerRefRange'](_0x325299,_0x5933f4=>(_0x2e2d4f['dispose'](),_0x5c63e8(_0x5933f4,_0x577ad6,_0x43caf7,_0x325299)));_0x4fe137['add'](_0x2e2d4f);});};this['disposeWithMe'](a[_0x3ea792(0x184)](this[_0x3ea792(0xe7)]['subscribe'](()=>{_0x137e07();})));}['_toggleOnline'](){const _0x431172=_0x28c265;var _0x3b79c2,_0x52f117;if(this['_online']=!0x0,((_0x3b79c2=this['_univerInstanceService'][_0x431172(0x28f)]())==null?void 0x0:_0x3b79c2[_0x431172(0x2ec)]())!==this['unitID'])return;const _0x23e9ab=(_0x52f117=this['_injector']['get'](g[_0x431172(0x177)])[_0x431172(0x2f3)]())==null?void 0x0:_0x52f117[0x0],_0x512405=this[_0x431172(0x2b9)][_0x431172(0x2c5)](a['UniverInstanceType'][_0x431172(0x2a9)])['getActiveSheet']();_0x23e9ab&&_0x512405&&this[_0x431172(0x252)](_0x512405[_0x431172(0x124)](),_0x23e9ab);}[_0x28c265(0x101)](){this['_online']=!0x1;}};Se=it([A(0x2,a[_0x28c265(0x1b0)](a[_0x28c265(0x23b)])),A(0x3,a[_0x28c265(0x1b0)](me)),A(0x4,a[_0x28c265(0x1b0)](u[_0x28c265(0x24c)])),A(0x5,a[_0x28c265(0x208)]),A(0x6,a[_0x28c265(0x1f7)]),A(0x7,a['Inject'](g[_0x28c265(0x27d)]))],Se);var at=Object[_0x28c265(0x346)],ct=(_0x14ab3a,_0x5e7bec,_0x18b39b,_0x1725d5)=>{const _0x1698c8=_0x28c265;for(var _0x1795a9=_0x1725d5>0x1?void 0x0:_0x1725d5?at(_0x5e7bec,_0x18b39b):_0x5e7bec,_0x2d17d0=_0x14ab3a[_0x1698c8(0x13d)]-0x1,_0xeef650;_0x2d17d0>=0x0;_0x2d17d0--)(_0xeef650=_0x14ab3a[_0x2d17d0])&&(_0x1795a9=_0xeef650(_0x1795a9)||_0x1795a9);return _0x1795a9;},ie=(_0x510583,_0x346d0e)=>(_0x5909bf,_0x45f0e4)=>_0x346d0e(_0x5909bf,_0x45f0e4,_0x510583);let x=class extends a[_0x28c265(0x2af)]{constructor(_0x33576e,_0x4c0c34,_0x4b4980){const _0x943757=_0x28c265;super(),h(this,_0x943757(0x1f5),new Map()),h(this,_0x943757(0xef),new d[(_0x943757(0x1ec))]()),(this[_0x943757(0x2b9)]=_0x33576e,this[_0x943757(0xce)]=_0x4c0c34,this[_0x943757(0x18e)]=_0x4b4980,this[_0x943757(0x271)]());}[_0x28c265(0x1d8)](){const _0x1f5dc3=_0x28c265;super[_0x1f5dc3(0x1d8)](),this[_0x1f5dc3(0xef)][_0x1f5dc3(0x28e)](),this[_0x1f5dc3(0x1f5)][_0x1f5dc3(0x15e)](_0x743219=>_0x743219[_0x1f5dc3(0x1d8)]());}[_0x28c265(0x23c)](_0x74c980){const _0x2c7630=_0x28c265;return this['_entities'][_0x2c7630(0x16c)](_0x74c980)?this[_0x2c7630(0x1f5)][_0x2c7630(0x256)](_0x74c980)[_0x2c7630(0x2c8)]:this[_0x2c7630(0xef)][_0x2c7630(0x217)](d[_0x2c7630(0x259)](_0x4dca76=>_0x4dca76[_0x2c7630(0x200)]===_0x74c980),d['switchMap'](_0x5336a0=>_0x5336a0[_0x2c7630(0x2c8)]));}[_0x28c265(0x271)](){const _0x239408=_0x28c265;this['_univerInstanceService']['getTypeOfUnitAdded$'](a[_0x239408(0x24e)]['UNIVER_SHEET'])['pipe'](d[_0x239408(0x2ea)](this[_0x239408(0x176)]))['subscribe'](async _0xc25351=>{const _0x537f3=_0x239408,_0x3facda=_0xc25351[_0x537f3(0x2ec)](),_0x96e3cd=await this['_startSheetCollabCursor'](_0x3facda);this[_0x537f3(0xef)]['next'](_0x96e3cd),this['_entities'][_0x537f3(0x18c)](_0x3facda,_0x96e3cd);}),this[_0x239408(0x2b9)]['getTypeOfUnitAdded$'](a['UniverInstanceType'][_0x239408(0x2cc)])['pipe'](d[_0x239408(0x2ea)](this[_0x239408(0x176)]))[_0x239408(0x217)](d['filter'](_0x31696f=>!_0x31696f[_0x239408(0x2ec)]()[_0x239408(0xc1)]('__')))[_0x239408(0x2bb)](async _0x424d3a=>{const _0x31ad1e=_0x239408,_0x107711=_0x424d3a['getUnitId'](),_0x50ec12=await this['_startDocCollabCursor'](_0x107711);this[_0x31ad1e(0xef)][_0x31ad1e(0x113)](_0x50ec12),this[_0x31ad1e(0x1f5)][_0x31ad1e(0x18c)](_0x107711,_0x50ec12);}),d[_0x239408(0x15c)](this[_0x239408(0x2b9)][_0x239408(0x300)](a[_0x239408(0x24e)][_0x239408(0x2cc)]),this[_0x239408(0x2b9)]['getTypeOfUnitDisposed$'](a[_0x239408(0x24e)]['UNIVER_SHEET']))[_0x239408(0x217)](d[_0x239408(0x2ea)](this[_0x239408(0x176)]))['subscribe'](_0x2d5d05=>{const _0x3fe9d6=_0x239408,_0x3cca86=_0x2d5d05['getUnitId'](),_0x9bcda5=this[_0x3fe9d6(0x1f5)][_0x3fe9d6(0x256)](_0x3cca86);_0x9bcda5&&(_0x9bcda5[_0x3fe9d6(0x1d8)](),this[_0x3fe9d6(0x1f5)][_0x3fe9d6(0x220)](_0x3cca86));});}async[_0x28c265(0x2c9)](_0x1af53d){const _0x36d276=_0x28c265,_0x290667=await this[_0x36d276(0x18e)][_0x36d276(0x117)](_0x1af53d),_0x2a974b=this[_0x36d276(0xce)][_0x36d276(0x2de)](Se,_0x1af53d,_0x290667);return _0x2a974b[_0x36d276(0x2f4)](),_0x2a974b;}async['_startDocCollabCursor'](_0x5d98a2){const _0x13643c=_0x28c265,_0x4a50eb=await this[_0x13643c(0x18e)][_0x13643c(0x117)](_0x5d98a2),_0x585c00=this[_0x13643c(0xce)][_0x13643c(0x2de)](fe,_0x5d98a2,_0x4a50eb);return _0x585c00[_0x13643c(0x2f4)](),_0x585c00;}};x=ct([ie(0x0,a[_0x28c265(0x208)]),ie(0x1,a[_0x28c265(0x1b0)](a['Injector'])),ie(0x2,a['Inject'](u[_0x28c265(0x294)]))],x);const K=0x14,Re=0xc8,ne=0x4,lt=0x5;function _t(_0x4309c5,_0x5a4492){const _0x48034b=_0x28c265;let {radius:_0x5bef71,width:_0x446095,height:_0x5dfae2}=_0x5a4492;_0x5bef71=_0x5bef71!=null?_0x5bef71:0x0,_0x446095=_0x446095!=null?_0x446095:0x1e,_0x5dfae2=_0x5dfae2!=null?_0x5dfae2:0x1e;let _0x5c6b92=0x0,_0x13fc5d=0x0,_0x11ba79=0x0;_0x5c6b92=_0x13fc5d=_0x11ba79=Math[_0x48034b(0x172)](_0x5bef71,_0x446095/0x2,_0x5dfae2/0x2),_0x4309c5[_0x48034b(0x2e1)](),_0x4309c5[_0x48034b(0x2d9)](_0x5c6b92,0x0),_0x4309c5[_0x48034b(0x2a4)](_0x446095-_0x13fc5d,0x0),_0x4309c5[_0x48034b(0x10d)](_0x446095-_0x13fc5d,_0x13fc5d,_0x13fc5d,Math['PI']*0x3/0x2,0x0,!0x1),_0x4309c5['lineTo'](_0x446095,_0x5dfae2-_0x11ba79),_0x4309c5['arc'](_0x446095-_0x11ba79,_0x5dfae2-_0x11ba79,_0x11ba79,0x0,Math['PI']/0x2,!0x1),_0x4309c5['lineTo'](0x0,_0x5dfae2),_0x4309c5['lineTo'](0x0,_0x5c6b92),_0x4309c5[_0x48034b(0x10d)](_0x5c6b92,_0x5c6b92,_0x5c6b92,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x4309c5[_0x48034b(0xf8)](),_0x5a4492['fill']&&(_0x4309c5[_0x48034b(0x2a7)](),_0x4309c5[_0x48034b(0x11c)]=_0x5a4492[_0x48034b(0xed)],_0x5a4492['fillRule']===_0x48034b(0x187)?_0x4309c5['fill'](_0x48034b(0x187)):_0x4309c5['fill'](),_0x4309c5[_0x48034b(0x170)]());}class ee extends p['Shape']{constructor(_0x41e845,_0x2e9df5){const _0x35f8bd=_0x28c265;super(_0x41e845,_0x2e9df5),h(this,_0x35f8bd(0xcb)),h(this,_0x35f8bd(0x103)),(this[_0x35f8bd(0xcb)]=_0x2e9df5==null?void 0x0:_0x2e9df5['color'],this[_0x35f8bd(0x103)]=_0x2e9df5==null?void 0x0:_0x2e9df5[_0x35f8bd(0x103)]);}static[_0x28c265(0x239)](_0x4f42cb,_0xdbc9ae){const _0x2a471a=_0x28c265,{text:_0x18ce4d,color:_0x237ab1}=_0xdbc9ae;_0x4f42cb[_0x2a471a(0x2a7)](),_0x4f42cb['font']=_0x2a471a(0x12e);const _0xacbd95=_0x4f42cb[_0x2a471a(0x168)](_0x18ce4d)[_0x2a471a(0x18f)],_0x33e882=Math[_0x2a471a(0x172)](_0xacbd95+0x2*ne,Re);_t(_0x4f42cb,{'height':K,'radius':0x4,'width':_0x33e882,'fill':_0x237ab1}),_0x4f42cb[_0x2a471a(0x11c)]=_0x2a471a(0xdf);const _0x351675=ne,_0xc1523a=K-lt,_0x17b167=Re-0x2*ne;if(_0xacbd95>_0x17b167){let _0x11c6a9='',_0x3c4a9a=0x0;for(const _0x545018 of _0x18ce4d){const _0xf58820=_0x4f42cb[_0x2a471a(0x168)](_0x545018)[_0x2a471a(0x18f)];if(_0x3c4a9a+_0xf58820<=_0x17b167-_0x4f42cb[_0x2a471a(0x168)](_0x2a471a(0x327))[_0x2a471a(0x18f)])_0x11c6a9+=_0x545018,_0x3c4a9a+=_0xf58820;else{_0x11c6a9+=_0x2a471a(0x327);break;}}_0x4f42cb[_0x2a471a(0x1ca)](_0x11c6a9,_0x351675,_0xc1523a);}else _0x4f42cb[_0x2a471a(0x1ca)](_0x18ce4d,_0x351675,_0xc1523a);_0x4f42cb[_0x2a471a(0x170)]();}[_0x28c265(0x140)](_0x20ca44){const _0x37e23e=_0x28c265;ee[_0x37e23e(0x239)](_0x20ca44,this);}}const re=_0x28c265(0x32f),ht=_0x28c265(0xdb),ut=_0x28c265(0x104),k=0x6,dt=1.5,oe=0x4,ft=1.5,St=_0x28c265(0x1ae);class De{constructor(_0x4c0e54,_0x32dd40,_0x329bc1,_0x112b1f){const _0x450060=_0x28c265;h(this,_0x450060(0x14d),[]),h(this,_0x450060(0x31b),null),h(this,_0x450060(0x152),null),h(this,_0x450060(0x2e7),null),h(this,'_hideTimer',null),h(this,_0x450060(0x264),null),(this[_0x450060(0xd1)]=_0x4c0e54,this[_0x450060(0x1a0)]=_0x32dd40,this['_docSkeleton']=_0x329bc1,this[_0x450060(0x102)]=_0x112b1f,this[_0x450060(0x1de)]());}set[_0x28c265(0x1a5)](_0x5d06b8){const _0x11c50a=_0x28c265;_0x5d06b8?(this[_0x11c50a(0x2e7)]&&this[_0x11c50a(0x2e7)][_0x11c50a(0x347)](),this[_0x11c50a(0x152)]&&this['_textBubble'][_0x11c50a(0x181)]()):(this[_0x11c50a(0x2e7)]&&this[_0x11c50a(0x2e7)][_0x11c50a(0x181)](),this[_0x11c50a(0x152)]&&this['_textBubble'][_0x11c50a(0x347)]());}[_0x28c265(0x1d8)](){const _0x4f131b=_0x28c265;for(const _0xd9fdcd of this[_0x4f131b(0x14d)])_0xd9fdcd[_0x4f131b(0x1d8)]();this[_0x4f131b(0x152)]&&this[_0x4f131b(0x152)][_0x4f131b(0x1d8)](),this[_0x4f131b(0x2e7)]&&this[_0x4f131b(0x2e7)][_0x4f131b(0x1d8)](),this[_0x4f131b(0x31b)]&&this[_0x4f131b(0x31b)][_0x4f131b(0x1d8)](),this[_0x4f131b(0x264)]&&this[_0x4f131b(0x264)]();}[_0x28c265(0x1de)](){const _0x5c017e=_0x28c265;var _0x2f8728;const {_docSkeleton:_0x38e8ec,_document:_0x38e787}=this,{color:_0x3fa4ca,name:_0x333170,ranges:_0x36ea8c}=this[_0x5c017e(0xd1)],_0x409e35=_0x38e787[_0x5c017e(0x332)](),{docsLeft:_0x397c80,docsTop:_0x34aacd}=_0x409e35,_0x28c3d2=new b[(_0x5c017e(0x135))](_0x409e35,_0x38e8ec);for(const {startOffset:_0x26071c,endOffset:_0xb6694b,rangeType:_0x2d1129,segmentId:_0x4e698d,segmentPage:_0x563e5f,collapsed:_0x312f71,isActive:_0x3db9c8}of _0x36ea8c){const _0x2e54e7=_0x38e8ec['findNodePositionByCharIndex'](_0x26071c,!0x0,_0x4e698d,_0x563e5f);let _0x7f2355=_0x38e8ec[_0x5c017e(0x120)](_0xb6694b,!0x0,_0x4e698d,_0x563e5f);if(_0x7f2355==null&&(_0x7f2355=_0x38e8ec['findNodePositionByCharIndex'](_0xb6694b-0x1,!0x1,_0x4e698d,_0x563e5f)),_0x3db9c8){const {contentBoxPointGroup:_0x3f4d3d}=_0x28c3d2['getRangePointData'](_0x7f2355,_0x7f2355);if(_0x3f4d3d['length']===0x0)continue;this[_0x5c017e(0x1f6)](_0x3fa4ca,_0x3f4d3d,_0x397c80,_0x34aacd,_0x333170),this['_eventUnsubscribe']=this[_0x5c017e(0x28b)]();}if(_0x2e54e7&&_0x7f2355){if(_0x2d1129===a[_0x5c017e(0x1ea)][_0x5c017e(0x331)]){const _0x82cc3=new b[(_0x5c017e(0x154))](_0x409e35,_0x38e8ec),{pointGroup:_0x1cd8da}=(_0x2f8728=_0x82cc3[_0x5c017e(0xea)](_0x2e54e7,_0x7f2355))!=null?_0x2f8728:{};if(_0x1cd8da==null||_0x1cd8da[_0x5c017e(0x13d)]===0x0)continue;this[_0x5c017e(0x1b4)](_0x3fa4ca,_0x1cd8da,_0x397c80,_0x34aacd);}else{if(!_0x312f71){const {borderBoxPointGroup:_0x47c596}=_0x28c3d2[_0x5c017e(0xea)](_0x2e54e7,_0x7f2355);if(_0x47c596['length']===0x0)continue;this['_drawTextRange'](_0x3fa4ca,_0x47c596,_0x397c80,_0x34aacd);}}}}}[_0x28c265(0x1f6)](_0x59e5ca,_0x1e943e,_0x3d9973,_0x46e69a,_0x105b45){const _0x101e70=_0x28c265,_0x2e1689=this[_0x101e70(0xf5)](_0x1e943e),{left:_0x577693,top:_0x57f885,height:_0x435354}=_0x2e1689,_0x2420f5=this[_0x101e70(0x22d)](),_0x150e98=ft/_0x2420f5,_0x4d86b9=new p[(_0x101e70(0x1f9))](re+a[_0x101e70(0x236)][_0x101e70(0x13e)](k),{'left':_0x577693+_0x3d9973-_0x150e98,'top':_0x57f885+_0x46e69a,'height':_0x435354,'width':dt,'fill':_0x59e5ca||p[_0x101e70(0x133)](a[_0x101e70(0x162)][_0x101e70(0x237)],0x0),'strokeWidth':_0x150e98,'stroke':St,'evented':!0x0});this[_0x101e70(0x31b)]=_0x4d86b9,this[_0x101e70(0x1a0)][_0x101e70(0x291)](_0x4d86b9,b['TEXT_RANGE_LAYER_INDEX']);const _0xeefe1=new p[(_0x101e70(0x1f9))](re+a[_0x101e70(0x236)]['generateRandomId'](k),{'left':_0x577693+_0x3d9973-_0x150e98,'top':_0x57f885+_0x46e69a-oe/0x2,'height':oe,'width':oe,'fill':_0x59e5ca||p[_0x101e70(0x133)](a[_0x101e70(0x162)][_0x101e70(0x237)],0x0),'strokeWidth':0x0,'stroke':_0x59e5ca||p['getColor'](a[_0x101e70(0x162)][_0x101e70(0x237)],0x0),'evented':!0x1});this[_0x101e70(0x2e7)]=_0xeefe1,this['_scene'][_0x101e70(0x291)](_0xeefe1,b[_0x101e70(0x340)]);const _0x3eab1b=new ee(re+a[_0x101e70(0x236)][_0x101e70(0x13e)](k),{'left':_0x577693+_0x3d9973-_0x150e98,'top':_0x57f885+_0x46e69a-K,'text':_0x105b45,'color':_0x59e5ca});this[_0x101e70(0x152)]=_0x3eab1b,this[_0x101e70(0x1a0)][_0x101e70(0x291)](_0x3eab1b,b[_0x101e70(0x340)]),this[_0x101e70(0x1a5)]=!0x1;}[_0x28c265(0x28b)](){const _0x22a7be=_0x28c265,_0x540264=this[_0x22a7be(0x31b)][_0x22a7be(0x179)]['subscribeEvent'](()=>{const _0x374ccb=_0x22a7be;this[_0x374ccb(0x1a5)]=!0x0;}),_0x46a705=this[_0x22a7be(0x31b)][_0x22a7be(0x25f)][_0x22a7be(0x1f8)](()=>{const _0x20bd83=_0x22a7be;this[_0x20bd83(0x14e)]&&clearTimeout(this[_0x20bd83(0x14e)]),this[_0x20bd83(0x14e)]=setTimeout(()=>{const _0x1bdd14=_0x20bd83;this[_0x1bdd14(0x1a5)]=!0x1;},0x7d0);});return()=>{const _0x235301=_0x22a7be;_0x540264[_0x235301(0x298)](),_0x46a705[_0x235301(0x298)]();};}['_drawTextRange'](_0x513f23,_0x3c44be,_0x152b02,_0x356a84){const _0x2e0df2=_0x28c265,_0x5e17e1=new a[(_0x2e0df2(0xfb))](_0x513f23)[_0x2e0df2(0x314)](0.2)[_0x2e0df2(0x2d5)](),_0x4015f0=new p[(_0x2e0df2(0x180))](ht+a['Tools'][_0x2e0df2(0x13e)](k),{'pointsGroup':_0x3c44be,'fill':_0x5e17e1||p[_0x2e0df2(0x133)](a[_0x2e0df2(0x162)][_0x2e0df2(0x237)],0.2),'left':_0x152b02,'top':_0x356a84,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x2e0df2(0x14d)][_0x2e0df2(0x1d6)](_0x4015f0),this['_scene']['addObject'](_0x4015f0,b[_0x2e0df2(0x340)]);}[_0x28c265(0x1b4)](_0x262a4a,_0x2ee62a,_0x568ae4,_0x4c0aa9){const _0x646839=_0x28c265,_0x38a22f=new a[(_0x646839(0xfb))](_0x262a4a)[_0x646839(0x314)](0.2)[_0x646839(0x2d5)](),_0x339c4f=new p[(_0x646839(0x180))](ut+a['Tools'][_0x646839(0x13e)](k),{'pointsGroup':_0x2ee62a,'fill':_0x38a22f||p['getColor'](a[_0x646839(0x162)]['black'],0.2),'left':_0x568ae4,'top':_0x4c0aa9,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x646839(0x14d)]['push'](_0x339c4f),this['_scene'][_0x646839(0x291)](_0x339c4f,b[_0x646839(0x340)]);}[_0x28c265(0xf5)](_0x27729c){const _0x48d5b3=_0x27729c[0x0],_0x6fef48=_0x48d5b3[0x0],_0x41d992=_0x48d5b3[0x2],{x:_0x27d6e7,y:_0x5dace7}=_0x6fef48,{x:_0xfdf302,y:_0x1921b5}=_0x41d992;return{'left':_0x27d6e7,'top':_0x5dace7,'width':_0xfdf302-_0x27d6e7,'height':_0x1921b5-_0x5dace7};}[_0x28c265(0x22d)](){const _0x55ea17=_0x28c265,{scaleX:_0x5c15a0,scaleY:_0x21cd7e}=this[_0x55ea17(0x1a0)][_0x55ea17(0x295)]();return Math[_0x55ea17(0x1da)](_0x5c15a0,_0x21cd7e);}}var It=Object[_0x28c265(0x346)],vt=(_0x4db35a,_0x33a7b0,_0x3c1864,_0x433e45)=>{for(var _0x2d2bce=_0x433e45>0x1?void 0x0:_0x433e45?It(_0x33a7b0,_0x3c1864):_0x33a7b0,_0x92bf60=_0x4db35a['length']-0x1,_0x5de18f;_0x92bf60>=0x0;_0x92bf60--)(_0x5de18f=_0x4db35a[_0x92bf60])&&(_0x2d2bce=_0x5de18f(_0x2d2bce)||_0x2d2bce);return _0x2d2bce;},W=(_0x3a1a48,_0x261a14)=>(_0x2866e2,_0x323e4f)=>_0x261a14(_0x2866e2,_0x323e4f,_0x3a1a48);let Ie=class extends a[_0x28c265(0x2af)]{constructor(_0x189d34,_0x7c7bd1,_0x4e71ae,_0x27f88d,_0x19f994){const _0x4fbcf9=_0x28c265;super(),h(this,_0x4fbcf9(0x136),[]),h(this,_0x4fbcf9(0x130),[]),(this['_context']=_0x189d34,this[_0x4fbcf9(0x185)]=_0x7c7bd1,this[_0x4fbcf9(0x1e3)]=_0x4e71ae,this[_0x4fbcf9(0xf2)]=_0x27f88d,this['_themeService']=_0x19f994,this[_0x4fbcf9(0x271)]());}[_0x28c265(0x271)](){const _0x18fcbd=_0x28c265,_0xd33687=this['_context'][_0x18fcbd(0xdc)],_0xed11db=this[_0x18fcbd(0x185)];this[_0x18fcbd(0xcf)](d[_0x18fcbd(0x1bc)]([this[_0x18fcbd(0x1e3)][_0x18fcbd(0x23c)](_0xd33687),this[_0x18fcbd(0x214)][_0x18fcbd(0x33b)]])[_0x18fcbd(0x217)]($['map'](([_0x36b020,_0x421d13])=>({'skeleton':_0xed11db[_0x18fcbd(0x15f)](),'cursors':[..._0x36b020[_0x18fcbd(0x1b9)]()][_0x18fcbd(0x270)](_0x12973d=>({..._0x12973d,'color':this[_0x18fcbd(0x214)][_0x18fcbd(0x107)](_0x12973d[_0x18fcbd(0xcb)])}))})))[_0x18fcbd(0x2bb)](_0x343a9d=>{const _0x3c1203=_0x18fcbd;if(this[_0x3c1203(0x156)](),_0x343a9d){const {skeleton:_0x206e5a,cursors:_0xb20f94}=_0x343a9d;this[_0x3c1203(0x165)](_0x206e5a,_0xb20f94);}})),this['_initResize'](),this['_initCommandExecutedListener']();}[_0x28c265(0x165)](_0xe083db,_0x8a117e){const _0x4f2cac=_0x28c265,{scene:_0x547ea5,mainComponent:_0x3e71ee}=this[_0x4f2cac(0xd7)],_0xcf6c9b=_0x8a117e[_0x4f2cac(0x26f)](_0x46796f=>new De(_0x46796f,_0x547ea5,_0xe083db,_0x3e71ee));this[_0x4f2cac(0x136)]=_0xcf6c9b,this[_0x4f2cac(0x130)]=_0x8a117e;}[_0x28c265(0x2da)](){const _0x290cb4=_0x28c265;this[_0x290cb4(0x156)]();const {scene:_0x1f4158,mainComponent:_0x52f1a6}=this[_0x290cb4(0xd7)],_0x45609f=this[_0x290cb4(0x185)]['getSkeleton'](),_0x4c297e=this['_cursors'][_0x290cb4(0x26f)](_0x5914ee=>new De(_0x5914ee,_0x1f4158,_0x45609f,_0x52f1a6));this[_0x290cb4(0x136)]=_0x4c297e;}['_removeCollabCursors'](){const _0x372c19=_0x28c265;this[_0x372c19(0x136)][_0x372c19(0x15e)](_0x58b6b9=>_0x58b6b9[_0x372c19(0x1d8)]()),this[_0x372c19(0x136)]=[];}['_initCommandExecutedListener'](){const _0x15b49b=_0x28c265,_0x58e50a=[b[_0x15b49b(0x2f0)]['id']];this[_0x15b49b(0xcf)](this[_0x15b49b(0xf2)][_0x15b49b(0x2ef)](_0x3b4d6c=>{const _0x265541=_0x15b49b;_0x58e50a[_0x265541(0x1a2)](_0x3b4d6c['id'])&&_0x3b4d6c[_0x265541(0x31c)][_0x265541(0xdc)]===this[_0x265541(0xd7)][_0x265541(0xdc)]&&this[_0x265541(0x2da)]();}));}[_0x28c265(0x1fd)](){const _0x59326e=_0x28c265;this['disposeWithMe'](a['fromEventSubject'](this[_0x59326e(0xd7)][_0x59326e(0x30e)][_0x59326e(0x17b)])['pipe']($[_0x59326e(0x259)](_0x3bc054=>_0x3bc054[_0x59326e(0x32b)]===p[_0x59326e(0x260)][_0x59326e(0x25e)]),$[_0x59326e(0x31f)](0x10))[_0x59326e(0x2bb)](()=>{const _0x1b19c3=_0x59326e;this[_0x1b19c3(0x2da)]();}));}};Ie=vt([W(0x1,a[_0x28c265(0x1b0)](Y[_0x28c265(0x242)])),W(0x2,a[_0x28c265(0x1b0)](x)),W(0x3,a[_0x28c265(0x1f7)]),W(0x4,a[_0x28c265(0x1b0)](a[_0x28c265(0x1aa)]))],Ie);const gt=0x1,mt=1.5;class Pe extends p[_0x28c265(0x126)]{constructor(_0x4d04a1,_0x427e29){const _0x31fe73=_0x28c265;super(_0x4d04a1,_0x427e29),h(this,_0x31fe73(0x30a)),h(this,_0x31fe73(0x1b1),!0x1),h(this,'_range'),h(this,'_name',''),h(this,_0x31fe73(0x16f),_0x31fe73(0x1c1)),h(this,'_backgroundColor'),(_0x427e29&&this[_0x31fe73(0xc7)](_0x427e29),this['onPointerEnter$'][_0x31fe73(0x1f8)](()=>this[_0x31fe73(0xc7)]({'hovered':!0x0})),this[_0x31fe73(0x25f)][_0x31fe73(0x1f8)](()=>this[_0x31fe73(0xc7)]({'hovered':!0x1})));}['setShapeProps'](_0x222a07){const _0x75f8fb=_0x28c265;var _0x468bba,_0x2fae00,_0x32b956,_0x677b5,_0x18f9e5,_0x28d725;this[_0x75f8fb(0x30a)]=(_0x468bba=_0x222a07[_0x75f8fb(0xcb)])!=null?_0x468bba:this[_0x75f8fb(0x30a)],this[_0x75f8fb(0x1b1)]=(_0x2fae00=_0x222a07['hovered'])!=null?_0x2fae00:this[_0x75f8fb(0x1b1)],this[_0x75f8fb(0x2cd)]=(_0x32b956=_0x222a07[_0x75f8fb(0x1d4)])!=null?_0x32b956:this['_range'],this[_0x75f8fb(0x1c9)]=(_0x677b5=_0x222a07['name'])!=null?_0x677b5:this[_0x75f8fb(0x1c9)],this['_labelPosition']=(_0x18f9e5=_0x222a07[_0x75f8fb(0x2d6)])!=null?_0x18f9e5:this['_labelPosition'],this['_backgroundColor']=(_0x28d725=_0x222a07[_0x75f8fb(0x2f6)])!=null?_0x28d725:this['_backgroundColor'],this[_0x75f8fb(0x1d9)]({'width':_0x222a07[_0x75f8fb(0x18f)],'height':_0x222a07[_0x75f8fb(0x2e8)]});}[_0x28c265(0x147)](_0x310fcd){const _0x45e4c5=_0x28c265,{row:_0x5c6aaf,column:_0x3e60c6}=_0x310fcd;if(_0x5c6aaf>=this[_0x45e4c5(0x2cd)][_0x45e4c5(0x20e)]&&_0x5c6aaf<=this[_0x45e4c5(0x2cd)][_0x45e4c5(0x233)]&&_0x3e60c6>=this[_0x45e4c5(0x2cd)][_0x45e4c5(0x13a)]&&_0x3e60c6<=this[_0x45e4c5(0x2cd)][_0x45e4c5(0x20b)]){this[_0x45e4c5(0xc7)]({'hovered':!0x0});return;}this[_0x45e4c5(0xc7)]({'hovered':!0x1});}['triggerDblclick'](_0x2c4982){return!0x1;}[_0x28c265(0x140)](_0x2d9301){const _0x15aa42=_0x28c265;p[_0x15aa42(0x1f9)][_0x15aa42(0x239)](_0x2d9301,{'width':this[_0x15aa42(0x18f)],'height':this[_0x15aa42(0x2e8)],'strokeWidth':mt,'stroke':this[_0x15aa42(0x30a)],'evented':!0x1,'fill':this[_0x15aa42(0xd4)]}),this['_hovered']&&(_0x2d9301[_0x15aa42(0x2a7)](),_0x2d9301[_0x15aa42(0x1e0)](0x1,0x0,0x0,0x1,this[_0x15aa42(0x18f)],this[_0x15aa42(0x16f)]===_0x15aa42(0x207)?0x0:-0x14),ee[_0x15aa42(0x239)](_0x2d9301,{'text':this[_0x15aa42(0x1c9)],'color':this[_0x15aa42(0x30a)]}),_0x2d9301[_0x15aa42(0x170)]());}}var Ct=Object['getOwnPropertyDescriptor'],pt=(_0x578a15,_0x451c7d,_0x2a175c,_0x4e7a04)=>{const _0x2d12f3=_0x28c265;for(var _0x1238b5=_0x4e7a04>0x1?void 0x0:_0x4e7a04?Ct(_0x451c7d,_0x2a175c):_0x451c7d,_0x14bcad=_0x578a15[_0x2d12f3(0x13d)]-0x1,_0x4ef27a;_0x14bcad>=0x0;_0x14bcad--)(_0x4ef27a=_0x578a15[_0x14bcad])&&(_0x1238b5=_0x4ef27a(_0x1238b5)||_0x1238b5);return _0x1238b5;},ae=(_0x3edec3,_0x13f731)=>(_0x425dd4,_0x57a788)=>_0x13f731(_0x425dd4,_0x57a788,_0x3edec3);const bt=0x1389;let ve=class extends a['RxDisposable']{constructor(_0x2752a5,_0xb3532e,_0x126721,_0x2455a7){const _0x2c86cf=_0x28c265;super(),h(this,'_cursors',new Set()),h(this,_0x2c86cf(0x15b),null),(this[_0x2c86cf(0xd7)]=_0x2752a5,this[_0x2c86cf(0x182)]=_0xb3532e,this[_0x2c86cf(0x1e3)]=_0x126721,this[_0x2c86cf(0x214)]=_0x2455a7,this['_init']());}['_init'](){const _0x5bf953=_0x28c265;this[_0x5bf953(0x182)][_0x5bf953(0x132)][_0x5bf953(0x217)]($[_0x5bf953(0x2ea)](this['dispose$']),$[_0x5bf953(0x278)](_0xbf93ef=>{const _0x47dae8=_0x5bf953;if(_0xbf93ef){const _0x213c6c=_0xbf93ef[_0x47dae8(0x194)];return d[_0x47dae8(0x1bc)](this[_0x47dae8(0x1e3)][_0x47dae8(0x23c)](this[_0x47dae8(0xd7)][_0x47dae8(0xdc)]),this[_0x47dae8(0x214)][_0x47dae8(0x33b)])[_0x47dae8(0x217)]($[_0x47dae8(0x26f)](([_0x165950,_0x1164c6])=>{const _0x264921=new Map();return _0x165950['forEach']((_0x54a0ed,_0x1640c6)=>{const _0x5aa27d=_0x29a9;if(_0x54a0ed[_0x5aa27d(0x27a)]===_0x213c6c){const _0x224d82={..._0x54a0ed};_0x224d82[_0x5aa27d(0xcb)]=this[_0x5aa27d(0x214)][_0x5aa27d(0x107)](_0x54a0ed[_0x5aa27d(0xcb)]),_0x264921[_0x5aa27d(0x18c)](_0x1640c6,_0x224d82);}}),{'skeleton':_0xbf93ef,'cursors':_0x264921};}));}return d['of']({'skeleton':null,'cursors':new Map()});}))[_0x5bf953(0x2bb)](({skeleton:_0xb08421,cursors:_0x45a300})=>{const _0x2c786e=_0x5bf953;this[_0x2c786e(0x156)](),_0xb08421&&this[_0x2c786e(0x165)](_0xb08421,_0x45a300);}),this[_0x5bf953(0x182)][_0x5bf953(0x132)][_0x5bf953(0x2bb)](_0x4de83c=>{const _0x242d27=_0x5bf953;if(_0x4de83c==null)return;const {skeleton:_0x648013}=_0x4de83c,{scene:_0x5bf0e5}=this['_context'];_0x5bf0e5[_0x242d27(0x110)][_0x242d27(0x1f8)](a[_0x242d27(0x1c6)](_0x2afef6=>{const _0x77f19c=_0x242d27;var _0x4cd197,_0x19a91f;const {offsetX:_0x4d5862,offsetY:_0x207fcd}=_0x2afef6,{x:_0x336b8a,y:_0x41019c}=_0x5bf0e5[_0x77f19c(0x215)](p[_0x77f19c(0x139)]['FromArray']([_0x4d5862,_0x207fcd])),{scaleX:_0x2ca6ee,scaleY:_0x23348f}=_0x5bf0e5[_0x77f19c(0x295)](),_0x15fe8f=_0x5bf0e5['getViewport'](p[_0x77f19c(0x205)]['VIEW_MAIN']),_0x35d523=_0x5bf0e5['getVpScrollXYInfoByPosToVp'](p['Vector2']['FromArray']([_0x336b8a,_0x41019c]),_0x15fe8f),_0x460ff9=_0x648013[_0x77f19c(0x169)](_0x4d5862,_0x207fcd,_0x2ca6ee,_0x23348f,_0x35d523);((_0x4cd197=this[_0x77f19c(0x15b)])==null?void 0x0:_0x4cd197[_0x77f19c(0x339)])===_0x460ff9[_0x77f19c(0x339)]&&((_0x19a91f=this[_0x77f19c(0x15b)])==null?void 0x0:_0x19a91f[_0x77f19c(0x149)])===_0x460ff9[_0x77f19c(0x149)]||this[_0x77f19c(0x130)][_0x77f19c(0x15e)](_0x1fe594=>{_0x1fe594['onMouseMove'](_0x460ff9);});},0x64));});}[_0x28c265(0x165)](_0x4d23fe,_0x3bb0f8){const _0x41c52d=_0x28c265;var _0x34e9d7;const _0x328ead=(_0x34e9d7=this[_0x41c52d(0x182)][_0x41c52d(0x338)]())==null?void 0x0:_0x34e9d7[_0x41c52d(0xc9)];if(!_0x328ead)return;const _0x2c4886=this[_0x41c52d(0xf4)]();if(!_0x2c4886)return;this[_0x41c52d(0x130)][_0x41c52d(0x15e)](_0x414d7a=>{_0x414d7a['makeDirty']();});const {scene:_0x92530}=_0x2c4886,_0x2ae2a0=Et(Array[_0x41c52d(0x230)](_0x3bb0f8[_0x41c52d(0x1b9)]()))[_0x41c52d(0x26f)](_0x10bb9b=>{const _0x108744=_0x41c52d,{color:_0x34e765,range:_0x48604c,name:_0xdc7756,selection:_0x10ea4c,sheetID:_0x4401ea}=_0x10bb9b,{startColumn:_0x31d66a,startRow:_0x21c665,endColumn:_0x1244eb,endRow:_0x58c6c0}=_0x48604c,_0x2d7f86=X[_0x108744(0xfc)](_0x21c665,_0x31d66a,_0x92530,_0x328ead),_0x1f8b13=X[_0x108744(0xfc)](_0x58c6c0,_0x1244eb,_0x92530,_0x328ead),{columnHeaderHeightAndMarginTop:_0x529a67}=_0x328ead,{startX:_0x3cb994,startY:_0x3dda92}=_0x2d7f86,{endX:_0x5e4a7e,endY:_0xfbbc8d}=_0x1f8b13,_0x7391d1=_0x5e4a7e-_0x3cb994,_0x54ff15=_0xfbbc8d-_0x3dda92,_0x492f67={'labelPosition':_0x3dda92-_0x529a67>=K?_0x108744(0x1c1):'bottom','sheetID':_0x4401ea,'range':_0x48604c,'color':_0x34e765,'name':_0xdc7756,'selection':_0x10ea4c,'left':_0x3cb994,'top':_0x3dda92,'width':_0x7391d1,'height':_0x54ff15,'evented':!0x1,'zIndex':bt};return new Pe(_0xdc7756,_0x492f67);});_0x92530['addObjects'](_0x2ae2a0,gt),this['_cursors']=new Set(_0x2ae2a0);}['_removeCollabCursors'](){const _0x3161f8=_0x28c265;var _0x1d8334;(_0x1d8334=this[_0x3161f8(0x130)])==null||_0x1d8334[_0x3161f8(0x15e)](_0x206cab=>_0x206cab[_0x3161f8(0x1d8)]());}[_0x28c265(0xf4)](){const _0x4640b6=_0x28c265;return X[_0x4640b6(0x1cf)](this[_0x4640b6(0xd7)][_0x4640b6(0x32d)],this[_0x4640b6(0xd7)]);}};ve=pt([ae(0x1,a[_0x28c265(0x1b0)](X['SheetSkeletonManagerService'])),ae(0x2,a['Inject'](x)),ae(0x3,a[_0x28c265(0x1b0)](a['ThemeService']))],ve);function Et(_0x5a8421){const _0xf8b4ed=_0x28c265,_0x3ac743=new Map();return _0x5a8421['forEach'](_0x17dda6=>{const _0x1b402d=_0x29a9;if(_0x3ac743[_0x1b402d(0x16c)](_0x17dda6[_0x1b402d(0x1e5)])){const _0x23712e=_0x3ac743['get'](_0x17dda6[_0x1b402d(0x1e5)]);_0x23712e[_0x1b402d(0x254)]+=',\x20'+_0x17dda6['name'];}else _0x3ac743[_0x1b402d(0x18c)](_0x17dda6[_0x1b402d(0x1e5)],_0x17dda6);}),Array[_0xf8b4ed(0x230)](_0x3ac743[_0xf8b4ed(0x1b9)]());}var E=function(){return E=Object['assign']||function(_0x54ad47){const _0x42be78=_0x29a9;for(var _0x2080a1,_0x9ef042=0x1,_0x59f9bf=arguments[_0x42be78(0x13d)];_0x9ef042<_0x59f9bf;_0x9ef042++){_0x2080a1=arguments[_0x9ef042];for(var _0x5c1845 in _0x2080a1)Object['prototype']['hasOwnProperty'][_0x42be78(0x238)](_0x2080a1,_0x5c1845)&&(_0x54ad47[_0x5c1845]=_0x2080a1[_0x5c1845]);}return _0x54ad47;},E['apply'](this,arguments);},Tt=function(_0x1072e0,_0x2000da){const _0xf126f2=_0x28c265;var _0x27a3b7={};for(var _0x1241ef in _0x1072e0)Object[_0xf126f2(0x336)][_0xf126f2(0x266)]['call'](_0x1072e0,_0x1241ef)&&_0x2000da[_0xf126f2(0x18d)](_0x1241ef)<0x0&&(_0x27a3b7[_0x1241ef]=_0x1072e0[_0x1241ef]);if(_0x1072e0!=null&&typeof Object[_0xf126f2(0x1a7)]==_0xf126f2(0x146)){for(var _0x17c4b1=0x0,_0x1241ef=Object[_0xf126f2(0x1a7)](_0x1072e0);_0x17c4b1<_0x1241ef[_0xf126f2(0x13d)];_0x17c4b1++)_0x2000da[_0xf126f2(0x18d)](_0x1241ef[_0x17c4b1])<0x0&&Object[_0xf126f2(0x336)][_0xf126f2(0x265)]['call'](_0x1072e0,_0x1241ef[_0x17c4b1])&&(_0x27a3b7[_0x1241ef[_0x17c4b1]]=_0x1072e0[_0x1241ef[_0x17c4b1]]);}return _0x27a3b7;},pe=M[_0x28c265(0x2aa)](function(_0x3c43fc,_0x25c456){const _0x13214d=_0x28c265;var _0x16e730=_0x3c43fc[_0x13214d(0x141)],_0x157594=_0x3c43fc['id'],_0x33a541=_0x3c43fc[_0x13214d(0x320)],_0x470248=_0x3c43fc[_0x13214d(0xf0)],_0x30ef45=Tt(_0x3c43fc,[_0x13214d(0x141),'id',_0x13214d(0x320),_0x13214d(0xf0)]),_0x28ce4f=_0x13214d(0x211)['concat'](_0x157594,'\x20')[_0x13214d(0x1a8)](_0x33a541||'')['trim'](),_0x16b216=M['useRef']('_'[_0x13214d(0x1a8)](Dt()));return Ae(_0x16e730,''[_0x13214d(0x1a8)](_0x157594),{'defIds':_0x16e730[_0x13214d(0x328)],'idSuffix':_0x16b216[_0x13214d(0x29f)]},E({'ref':_0x25c456,'className':_0x28ce4f},_0x30ef45),_0x470248);});function Ae(_0x5b7e7d,_0x47b581,_0x27cfb0,_0x37fdde,_0x2fe548){const _0x4381a1=_0x28c265;return M[_0x4381a1(0xf1)](_0x5b7e7d[_0x4381a1(0x1d7)],E(E({'key':_0x47b581},Ot(_0x5b7e7d,_0x27cfb0,_0x2fe548)),_0x37fdde),(Rt(_0x5b7e7d,_0x27cfb0)['children']||[])[_0x4381a1(0x26f)](function(_0x3516e0,_0x35b692){const _0xeb2c63=_0x4381a1;return Ae(_0x3516e0,''[_0xeb2c63(0x1a8)](_0x47b581,'-')['concat'](_0x5b7e7d[_0xeb2c63(0x1d7)],'-')['concat'](_0x35b692),_0x27cfb0,void 0x0,_0x2fe548);}));}function Ot(_0xd28895,_0x350781,_0x2c81ae){const _0x305cd1=_0x28c265;var _0x126688=E({},_0xd28895[_0x305cd1(0x1ac)]);_0x2c81ae!=null&&_0x2c81ae[_0x305cd1(0x263)]&&_0x126688[_0x305cd1(0xed)]==='colorChannel1'&&(_0x126688['fill']=_0x2c81ae['colorChannel1']),_0xd28895[_0x305cd1(0x1d7)]===_0x305cd1(0x10b)&&_0x126688['id']&&(_0x126688['id']=_0x126688['id']+_0x350781[_0x305cd1(0xcd)]),Object[_0x305cd1(0x12a)](_0x126688)[_0x305cd1(0x15e)](function(_0x2d55ed){const _0x58d747=_0x305cd1;var _0x2a9a75=_0x2d55ed[0x0],_0x482185=_0x2d55ed[0x1];_0x2a9a75===_0x58d747(0x10b)&&typeof _0x482185==_0x58d747(0xe4)&&(_0x126688[_0x2a9a75]=_0x482185[_0x58d747(0x2e3)](/url\(#(.*)\)/,_0x58d747(0x22c)[_0x58d747(0x1a8)](_0x350781[_0x58d747(0xcd)],')')));});var _0x505ea0=_0x350781['defIds'];return!_0x505ea0||_0x505ea0['length']===0x0||(_0xd28895[_0x305cd1(0x1d7)]===_0x305cd1(0x105)&&_0x126688['xlink:href']&&(_0x126688[_0x305cd1(0x14a)]=_0x126688['xlink:href']+_0x350781[_0x305cd1(0xcd)]),Object['entries'](_0x126688)[_0x305cd1(0x15e)](function(_0x33c971){const _0x2f23a7=_0x305cd1;var _0x2f8d73=_0x33c971[0x0],_0x9c41f3=_0x33c971[0x1];typeof _0x9c41f3==_0x2f23a7(0xe4)&&(_0x126688[_0x2f8d73]=_0x9c41f3[_0x2f23a7(0x2e3)](/url\(#(.*)\)/,_0x2f23a7(0x22c)['concat'](_0x350781[_0x2f23a7(0xcd)],')')));})),_0x126688;}function Rt(_0x517f3b,_0x24d935){const _0x57f71f=_0x28c265;var _0x9886f0,_0x71ea75=_0x24d935[_0x57f71f(0x328)];return!_0x71ea75||_0x71ea75[_0x57f71f(0x13d)]===0x0?_0x517f3b:_0x517f3b[_0x57f71f(0x1d7)]===_0x57f71f(0x1a4)&&(!((_0x9886f0=_0x517f3b[_0x57f71f(0x302)])===null||_0x9886f0===void 0x0)&&_0x9886f0[_0x57f71f(0x13d)])?E(E({},_0x517f3b),{'children':_0x517f3b[_0x57f71f(0x302)]['map'](function(_0x28b115){const _0x409295=_0x57f71f;return typeof _0x28b115[_0x409295(0x1ac)]['id']=='string'&&_0x71ea75&&_0x71ea75[_0x409295(0x1a2)](_0x28b115[_0x409295(0x1ac)]['id'])?E(E({},_0x28b115),{'attrs':E(E({},_0x28b115[_0x409295(0x1ac)]),{'id':_0x28b115[_0x409295(0x1ac)]['id']+_0x24d935[_0x409295(0xcd)]})}):_0x28b115;})}):_0x517f3b;}function Dt(){const _0x4c7590=_0x28c265;return Math[_0x4c7590(0x1d5)]()[_0x4c7590(0x2eb)](0x24)[_0x4c7590(0x268)](0x2,0x8);}pe[_0x28c265(0x2f5)]='UniverIcon';var Ut={'tag':'svg','attrs':{'xmlns':_0x28c265(0x24a),'fill':_0x28c265(0x219),'viewBox':_0x28c265(0x1cb),'width':_0x28c265(0x2b8),'height':_0x28c265(0x2b8)},'children':[{'tag':'g','attrs':{'clipPath':_0x28c265(0x2ed)},'children':[{'tag':_0x28c265(0x2ae),'attrs':{'stroke':'currentColor','d':_0x28c265(0x313),'strokeLinecap':_0x28c265(0x203),'strokeLinejoin':_0x28c265(0x203),'strokeWidth':1.2}}]},{'tag':_0x28c265(0x1a4),'attrs':{},'children':[{'tag':_0x28c265(0x160),'attrs':{'id':'off-line-icon_clip0_910_343'},'children':[{'tag':_0x28c265(0x2ae),'attrs':{'fill':_0x28c265(0x134),'d':_0x28c265(0x202)}}]}]}],'defIds':[_0x28c265(0x18a)]},ye=M[_0x28c265(0x2aa)](function(_0x12d737,_0x38c417){const _0x3a6349=_0x28c265;return M[_0x3a6349(0xf1)](pe,Object[_0x3a6349(0x1f3)]({},_0x12d737,{'id':_0x3a6349(0x158),'ref':_0x38c417,'icon':Ut}));});ye[_0x28c265(0x2f5)]=_0x28c265(0x2e5);function _0x11d0(){const _0x526b28=['DocSkeletonManagerService','transformRemoteChangeset','APPLY_NON_SEQUENTIAL_REVISION','runId','YUUMI_URL_COL_OUT_OF_RANGE','SessionStatus','error','clsx','http://www.w3.org/2000/svg','debounceTime','MemberService','SOCKET_FAILED','UniverInstanceType','_initEntityListener','then','add','_updateLocalCursor','@univerjs-pro/collaboration-client','name','stringify','get','_scheduleClearOtherTimer','Error','filter','TEXT','status$','_disabled','href','resize','onPointerLeave$','TRANSFORM_CHANGE_OBSERVABLE_TYPE','univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','_configService','colorChannel1','_eventUnsubscribe','propertyIsEnumerable','hasOwnProperty','YUUMI_UNABLE_LOAD_URL','substring','ILocalStorageService','APPLY_REJECT','_getSessionTicket','EffectRefRangId','UNAUTHENTICATED','SetSelectionsOperation','map','flatMap','_init','memberID','useCallback','assignAColorForMemberID','post','subunit','USER_NOT_INVITED_CODE','switchMap','COMPLETION_FINISHED','sheetID','267124NVMWzp','_removeClearOtherTimer','RefRangeService','_transformUndoRedoStack','react','on-line-icon_clip0_910_349','PERMISSION_DENIED','handleMoveRange','_docClipboardService','registerRenderModule','DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT','key','rxjs/operators','docStateChange$','_getMergeRange','registerRefRange','_handleHover','_doCreateSocket','INVALID_ARGUMENT','complete','getFocusedUnit','getUnitStatus$','addObject','onRendered','exhaustSavingTask','CollaborationSessionService','getAncestorScale','fromEvent','_instanceService','unsubscribe','roomMembers','enableLocalCache','YUUMI_TABLE_NOT_FOUND_IN_UNIT','sessionStatus$','isActive','getUnhiddenWorksheets','current','executionId','_createSocketURL','selections','mutations','lineTo','ENSURE_SNAPSHOT_EXECUTION','_initStatusListener','save','_docStateChangeManagerService','UNIVER_SHEET','forwardRef','USERS_LEAVE','jsx','isArray','path','RxDisposable','_unitOnClients','whenReady','BehaviorSubject','green.600','purple.300','roomMembers$','UniverCollaborationClientUIPlugin','_transformHistoryAndStateStack','1em','_univerInstanceService','_updateURLWithCurrentState','subscribe','jsxs','_syncEditingCollabCursorService','UniverCollaborationClientPlugin','YUUMI_AI_RUN_FAILED','HEADER_MENU','_handleHeartbeatEvent','createSocket','collabStatus.conflict','IURLService','getCurrentUnitForType','_registerRenderDependencies','pluginName','cursorInfo$','_startSheetCollabCursor','addClipboardHook','result','UNIVER_DOC','_range','_collaborationController','setInterval','newValue','with','redoState','ONLINE','ILogService','toRgbString','labelPosition','setItem','getMergeData','moveTo','_refreshCollabCursors','getValue','ILocalCacheService','APPLY_REVISION_CONFILICT','createInstance','saveImage','handleDeleteRangeMoveUp','beginPath','Unknown\x20user','replace','search','OffLineIcon','getActiveSheet','_anchorDot','height','Tooltip','takeUntil','toString','getUnitId','url(#off-line-icon_clip0_910_343)','clearInterval','onCommandExecuted','SetDocZoomRatioOperation','_colorIndex','IConfigService','getCurrentSelections','init','displayName','backgroundColor','translate(.97)','collaboration-client.offline-data-not-saved','collabStatus.syncing','CollaborationUIEventId','_heartbeatTimer','getMember','_roomMembers$','deepClone','UPDATE_CURSOR','getTypeOfUnitDisposed$','CollaborationSocketService','children','focused$','_status$','ALREADY_EXISTS','@univerjs/rpc','_messageService','EMAIL_HAS_BEEN_BOUND','MOBILE_HAS_BEEN_BOUND','_color','_collabCursorState$','AWAITING','InsertRangeMoveDownCommandId','engine','_send','collabCursorState$','APPLY_DUPLICATED','svg','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','setAlpha','NO_OTHER_CLIENTS_EDITING','DesktopCollaborationStatusDisplayController','RevisionService','setTimeout','229602OxypgJ','@univerjs/design','_anchor','params','UNIVER_COLLABORATION_CLIENT_WEB_PLUGIN','toStringTag','throttleTime','className','collaboration.closeRoom','DEFAULT_WS_SESSION_TICKET_URL','asObservable','_beforeCloseService','runRefRangeMutations','YUUMI_RATE_OVER_LIMIT','...','defIds','DocStateChangeManagerService','setStateCache','type','transformStateCache','unit','36224okRlau','collab-text-anchor-','deserializeRangeWithSheet','RECT','getOffsetConfig','CollaborationEvent','defineProperty','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','prototype','session.connection-failed','getCurrent','column','619885zyTQSK','currentTheme$','CONNECTOR_DATA_TOO_LARGE','_localCacheService','IMessageService','DeleteRangeMoveLeftCommandId','TEXT_RANGE_LAYER_INDEX','red.300','1458734fCFRby','find','CollaborationUIEventService','_docTransformSelectionsService','getOwnPropertyDescriptor','hide','url(#on-line-icon_clip0_910_349)','blue.400','connectInjector','startsWith','disposeUnit','_docSyncEditingCollabCursorService','send','2826GkQeed','symbol','setShapeProps','IUIPartsService','skeleton','handleIRemoveRow','color','[RemoteUniscriptService]:\x20no\x20focused\x20unit','idSuffix','_injector','disposeWithMe','INTERNAL_ERROR','_cursor','LOGIN_FAILED','transformMutationsWithChangeset','_backgroundColor','all','LICENSE_DISTRO_REJECTED','_context','mergeOverrideWithDependencies','_initDependencies','editingUnit','collab-text-range-','unitId','AWAITING_WITH_PENDING','_onCursorUpdate','#FFF','_setupSubUnitSync','CLOSE_ROOM','YUUMI_NO_CUBOID_FOR_QUESTION','rxjs','string','MessageType','BuiltInUIPart','_cursorInfo$','IBeforeCloseService','_getSaveTimeout','getRangePointData','parse','@univerjs/engine-render','fill','_assignedColors','_entityInit$','extend','createElement','_commandService','LICENSE_EXPORT_SIZE_EXCEEDED','_getSheetObject','_getAnchorBounding','location','CollaborationStatusDisplay','closePath','registerDependencies','clearTimeout','ColorKit','getCoordByCell','useObservable','DocCollaborationEntity','INVITE_CODE_HAS_BEEN_UES','InsertColCommandId','_toggleOffline','_document','text','collab-rect-range-','use','_localStorageService','getColorFromTheme','SheetCollabCursorShape','ranges','body','mask','_urlService','arc','getConfig','SNAPSHOT_INVALID_SNAPSHOT','onPointerMove$','INVITE_CODE_ALREADY_BOUND','DisposableCollection','next','code','WECHAT_HAS_BEEN_BOUND','ITransformService','requireSession','_transformPreviousActiveRange','replaceState','INotificationService','3qGPmQv','fillStyle','ISnapshotServerService','[CollaborationDataLoaderController]','_config','findNodePositionByCharIndex','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','imageSourceType','eventID','getSheetId','_updateSubUnitFromURLParams','Shape','_handleEvent','NOT_FOUND','_unitStatus','entries','Disposable','_colorAssignService','searchParams','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','m2Prime','_cursors','collab-client.tooltip.reconnect','currentSkeleton$','getColor','white','NodePositionConvertToCursor','_cursorShapes','setParam','onStarting','Vector2','startColumn','replaceDocRanges','storage','length','generateRandomId','_logService','_draw','icon','_httpService','CollaborationDataLoaderController','UnitStatus','registerBeforeClose','function','onMouseMove','_onCursorDelete','row','xlink:href','YUUMI_SUBSCRIPTION_NOT_FOUND','SetTextSelectionsOperation','_shapes','_hideTimer','_refRangeService','setConfig','getUniverSheetInstance','_textBubble','NOT_COLLAB','NodePositionConvertToRectRange','doc.mutation.rich-text-editing','_removeCollabCursors','SOCKET_FAILED_RETRY','off-line-icon','RichTextEditingMutation','univer-flex\x20univer-mr-2\x20univer-text-xl','_lastPointer','merge','actions','forEach','getSkeleton','clipPath','_collaborationUIEventService','COLORS','CONFLICT','onLocalMutation','_updateCollabCursors','react/jsx-runtime','LOCAL_CACHE_INTERVAL','measureText','getCellPositionByOffset','0\x200\x2017\x2016','_localeService','has','reconnect','unshift','_labelPosition','restore','UNDEFINED','min','UNRECOGNIZED','_initStatusComponent','@univerjs/engine-formula','dispose$','SheetsSelectionsService','RemoveRowCommandId','onPointerEnter$','_dataLoaderService','onTransformChange$','useDependency','disableLocalCache','transformIMECache','isTransformMutationFailure','RegularPolygon','show','_sheetSkeletonManagerService','YUUMI_ALL_TABLES_IS_INVALID','toDisposable','_docSkeletonManagerService','SNAPSHOT_HAS_BEEN_REMOVED','evenodd','LICENSE_IMPORT_SIZE_EXCEEDED','CollaborationStatus','off-line-icon_clip0_910_343','IRemoteInstanceService','set','indexOf','_collabSessionService','width','@univerjs-pro/collaboration','executeCommand','getLocalCacheKey','WebSocketService','sheetId','_docTransformStateCacheService','TOO_MANY_REQUESTS','collabStatus.notCollab','@univerjs/docs-ui','PENDING','some','_revisionService','SYNCED','LICENSE_MAX_UNITS_EXCEEDED','application/json','textRanges','_scene','Warning','includes','@univerjs/ui','defs','_hover','_scheduleSaving','getOwnPropertySymbols','concat','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','ThemeService','_toggleOnline','attrs','pushState','rgba(255,\x20255,\x20255,\x200.01)','DeleteRangeMoveUpCommandId','Inject','_hovered','getRenderById','OFFLINE','_drawRectRange','OTHER_CLIENT_EDITING','_onRefRangeChange','_cachedData','@univerjs/network','values','IImageIoService','_ensureSubject','combineLatest','Rectangle','_clearOtherTimers','transformSelections','unload','top','getUndoRedoMutationParamsCache','_transformService','shareReplay','REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY','debounce','_session','MUTATION','_name','fillText','0\x200\x2016\x2016','1179488MPuoIe','urlChange$','getCurrentRevOfUnit','getSheetObject','_saveTaskMap','_handleLeaveEvent','YUUMI_ASYNCIO_CANCELLED','DocSelectionManagerService','range','random','push','tag','dispose','transformByState','max','saveOfflineData','APPLY_PERMISSION_DENIED','m1Prime','_render','history','transform','@univerjs/sheets-ui','_id','_collabCursorController','cursorInfo','selection','createIdentifier','div','FETCH_MISS','debug','DOC_RANGE_TYPE','getParam','Subject','handleDeleteRangeMoveLeft','transformMutation','event$','Module','_initEvent','_selfUnitIDs','assign','CHANGESET_REVISION_CONFILICT','_entities','_drawAnchor','ICommandService','subscribeEvent','Rect','Failed','_notificationService','HTTPService','_initResize','data','session.collaboration-timeout','unitID','_docTransformIMECacheService','M0\x200H16V16H0z','round','getMemberID','SHEET_VIEWPORT_KEY','RemoteUniscriptService','bottom','IUniverInstanceService','_online','_scheduleHeartbeat','endColumn','1030oOWuDW','MoveRangeCommandId','startRow','syncEditingCollabCursor','_renderManagerService','univerjs-icon\x20univerjs-icon-','_registerDependencies','INVITE_CODE_REQUIRED','_themeService','getRelativeToViewportCoord','4903644osfOYh','pipe','PY_RUNTIME_SCRIPT_ERROR','none','on-line-icon','125IaofMn','YUUMI_PROMPT_MAX_TOKENS_EXCEEDED','_saveCache','sessionTicket','CollaborationController','delete','LocaleService','DocIMEInputManagerService','@univerjs/docs','IRenderManagerService','isTransformMutationsWithChangesetSuccess','_memberService','getDocRanges','_imageIoService','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','RemoveColCommandId','serializeRangeWithSheet','url(#$1','_getScale','removeParam','collaboration.single-unit.warning','from','getActiveRange','handleInsertRow','endRow','handleInsertCol','_setupBeforeClosingHandler','Tools','black','call','drawWith','saveTaskMap','Injector','getCollabCursors$','INVALID_INVITE_CODE','source','size','getSheetBySheetId','SetWorksheetActivateCommand'];_0x11d0=function(){return _0x526b28;};return _0x11d0();}var Nt={'tag':_0x28c265(0x312),'attrs':{'xmlns':_0x28c265(0x24a),'fill':_0x28c265(0x219),'viewBox':_0x28c265(0x16a),'width':_0x28c265(0x2b8),'height':'1em'},'children':[{'tag':'g','attrs':{'clipPath':_0x28c265(0x348)},'children':[{'tag':_0x28c265(0x2ae),'attrs':{'stroke':'currentColor','d':_0x28c265(0x1a9),'strokeLinecap':_0x28c265(0x203),'strokeLinejoin':_0x28c265(0x203),'strokeWidth':1.2}}]},{'tag':_0x28c265(0x1a4),'attrs':{},'children':[{'tag':_0x28c265(0x160),'attrs':{'id':_0x28c265(0x280)},'children':[{'tag':'path','attrs':{'fill':_0x28c265(0x134),'d':_0x28c265(0x202),'transform':_0x28c265(0x2f7)}}]}]}],'defIds':['on-line-icon_clip0_910_349']},$e=M[_0x28c265(0x2aa)](function(_0x141bec,_0x55ff47){const _0x207420=_0x28c265;return M[_0x207420(0xf1)](pe,Object[_0x207420(0x1f3)]({},_0x141bec,{'id':_0x207420(0x21a),'ref':_0x55ff47,'icon':Nt}));});$e[_0x28c265(0x2f5)]='OnLineIcon';function _0x29a9(_0x3cb59b,_0x4bfd88){const _0x11d03e=_0x11d0();return _0x29a9=function(_0x29a98b,_0x208fd4){_0x29a98b=_0x29a98b-0xc0;let _0x4f2235=_0x11d03e[_0x29a98b];return _0x4f2235;},_0x29a9(_0x3cb59b,_0x4bfd88);}function Mt(_0x4aebe2){const _0x580fa1=_0x28c265;switch(_0x4aebe2){case u['CollaborationStatus'][_0x580fa1(0x1b3)]:return'collabStatus.offline';case u[_0x580fa1(0x189)][_0x580fa1(0x163)]:return _0x580fa1(0x2c3);case u[_0x580fa1(0x189)][_0x580fa1(0x1e8)]:return'collabStatus.fetchMiss';case u[_0x580fa1(0x189)][_0x580fa1(0x153)]:return _0x580fa1(0x197);case u[_0x580fa1(0x189)][_0x580fa1(0x30c)]:case u[_0x580fa1(0x189)][_0x580fa1(0xdd)]:return _0x580fa1(0x2f9);case u[_0x580fa1(0x189)][_0x580fa1(0x19c)]:case u[_0x580fa1(0x189)][_0x580fa1(0x199)]:return'collabStatus.synced';}}function xe(_0x2aa1a6){const _0x2b8808=_0x28c265,{status$:_0x1113c5}=_0x2aa1a6,_0x571718=T[_0x2b8808(0xfd)](_0x1113c5,u[_0x2b8808(0x189)][_0x2b8808(0x153)]),_0x745cf4=T['useDependency'](a[_0x2b8808(0x221)]),_0x1d7474=T[_0x2b8808(0x17c)](u[_0x2b8808(0x294)]),_0x57f52d=_0x571718!==u[_0x2b8808(0x189)][_0x2b8808(0x1b3)],_0x2e888b=_0x745cf4['t'](Mt(_0x571718)),_0x30151f=_0x57f52d?w[_0x2b8808(0x2ac)]($e,{}):w[_0x2b8808(0x2ac)](ye,{}),_0x16ee4d=M[_0x2b8808(0x273)](()=>{const _0x518261=_0x2b8808;_0x57f52d||_0x1d7474[_0x518261(0x16d)]();},[_0x57f52d,_0x1d7474]);function _0xe29ed0(){const _0x3a9dd2=_0x2b8808;return w[_0x3a9dd2(0x2bc)](_0x3a9dd2(0x1e7),{'className':'univer-flex\x20univer-items-center','onClick':_0x16ee4d,'children':[w[_0x3a9dd2(0x2ac)]('div',{'className':D[_0x3a9dd2(0x249)](_0x3a9dd2(0x15a),{'univer-text-green-500':_0x57f52d,'univer-text-red-500':!_0x57f52d}),'children':_0x30151f}),w[_0x3a9dd2(0x2ac)](_0x3a9dd2(0x1e7),{'className':_0x3a9dd2(0x261),'children':_0x2e888b})]});}return _0x57f52d?_0xe29ed0():w['jsx'](D[_0x2b8808(0x2e9)],{'title':_0x745cf4['t'](_0x2b8808(0x131)),'children':_0xe29ed0()});}var Lt=Object['getOwnPropertyDescriptor'],wt=(_0x373823,_0x3e31b4,_0x21994f,_0x35ed24)=>{for(var _0x23b586=_0x35ed24>0x1?void 0x0:_0x35ed24?Lt(_0x3e31b4,_0x21994f):_0x3e31b4,_0x1ca77a=_0x373823['length']-0x1,_0x5efcfb;_0x1ca77a>=0x0;_0x1ca77a--)(_0x5efcfb=_0x373823[_0x1ca77a])&&(_0x23b586=_0x5efcfb(_0x23b586)||_0x23b586);return _0x23b586;},V=(_0x2e76aa,_0x2d33d6)=>(_0x5b212a,_0x2cb9a0)=>_0x2d33d6(_0x5b212a,_0x2cb9a0,_0x2e76aa);exports['DesktopCollaborationStatusDisplayController']=class extends a['Disposable']{constructor(_0x4dfa95,_0x117178,_0x2e4906,_0x4ea6aa){const _0x225d94=_0x28c265;super(),h(this,'_status$',new d[(_0x225d94(0x2b2))](u[_0x225d94(0x189)][_0x225d94(0x153)])),(this['_univerInstanceService']=_0x4dfa95,this[_0x225d94(0xce)]=_0x117178,this[_0x225d94(0x2ce)]=_0x2e4906,this['_uiPartsService']=_0x4ea6aa,this[_0x225d94(0x174)](),this[_0x225d94(0x2a6)]());}[_0x28c265(0x2a6)](){const _0x3c75a7=_0x28c265;this[_0x3c75a7(0xcf)](this['_univerInstanceService'][_0x3c75a7(0x303)][_0x3c75a7(0x217)](d['switchMap'](()=>{const _0x467713=_0x3c75a7,_0x408cad=this['_univerInstanceService'][_0x467713(0x28f)]();return _0x408cad?this[_0x467713(0x2ce)]['getCollabEntity$'](_0x408cad[_0x467713(0x2ec)]()):d['of'](null);}),d[_0x3c75a7(0x278)](_0x2c510f=>_0x2c510f?_0x2c510f[_0x3c75a7(0x25b)]:d['of'](u['CollaborationStatus'][_0x3c75a7(0x153)])))[_0x3c75a7(0x2bb)](_0x2eed7=>{const _0x8b8bef=_0x3c75a7;this['_status$'][_0x8b8bef(0x113)](_0x2eed7);}));}[_0x28c265(0x174)](){const _0x369791=_0x28c265;this[_0x369791(0xcf)](this['_uiPartsService']['registerComponent'](T[_0x369791(0xe6)][_0x369791(0x2c0)],()=>T[_0x369791(0xc0)](Pt({'status$':this[_0x369791(0x304)][_0x369791(0x323)]()}),this[_0x369791(0xce)])));}},exports[_0x28c265(0x316)]=wt([V(0x0,a['IUniverInstanceService']),V(0x1,a[_0x28c265(0x1b0)](a[_0x28c265(0x23b)])),V(0x2,a[_0x28c265(0x1b0)](u['CollaborationController'])),V(0x3,T[_0x28c265(0xc8)])],exports[_0x28c265(0x316)]);function Pt(_0x51f605){const {status$:_0x5a5c87}=_0x51f605;return function(){const _0x4da4af=_0x29a9;return w[_0x4da4af(0x2ac)](xe,{'status$':_0x5a5c87});};}var At=Object['getOwnPropertyDescriptor'],yt=(_0x2bda7f,_0x5107e9,_0x247384,_0xfaef62)=>{const _0x5dd98f=_0x28c265;for(var _0x1684ff=_0xfaef62>0x1?void 0x0:_0xfaef62?At(_0x5107e9,_0x247384):_0x5107e9,_0x1c59be=_0x2bda7f[_0x5dd98f(0x13d)]-0x1,_0x1747d4;_0x1c59be>=0x0;_0x1c59be--)(_0x1747d4=_0x2bda7f[_0x1c59be])&&(_0x1684ff=_0x1747d4(_0x1684ff)||_0x1684ff);return _0x1684ff;},y=(_0x1550fd,_0x8b1d42)=>(_0x4fc0fd,_0x5f0c20)=>_0x8b1d42(_0x4fc0fd,_0x5f0c20,_0x1550fd);let q=class extends a[_0x28c265(0x12b)]{constructor(_0x3f194e,_0xe78ff8,_0x43573e,_0x489a16,_0x4346b8,_0x17d9fd){const _0x708f8d=_0x28c265;super(),this[_0x708f8d(0x324)]=_0x3f194e,this[_0x708f8d(0x33d)]=_0xe78ff8,this['_collaborationUIEventService']=_0x43573e,this[_0x708f8d(0x307)]=_0x489a16,this[_0x708f8d(0x1fb)]=_0x4346b8,this['_localeService']=_0x17d9fd,this['_setupBeforeClosingHandler'](),this[_0x708f8d(0x1f1)]();}[_0x28c265(0x235)](){const _0x58fb77=_0x28c265;this['disposeWithMe'](this['_beforeCloseService'][_0x58fb77(0x145)](()=>{const _0x396714=_0x58fb77;if(this[_0x396714(0x33d)][_0x396714(0x23a)][_0x396714(0x23f)])return this['_localeService']['t'](_0x396714(0x2f8));}));}[_0x28c265(0x1f1)](){const _0x267d00=_0x28c265;this['disposeWithMe'](this[_0x267d00(0x161)][_0x267d00(0x1ef)][_0x267d00(0x2bb)](_0x5fa443=>{const _0x384614=_0x267d00;_0x5fa443['id']===u[_0x384614(0x2fa)][_0x384614(0x1b5)]&&this[_0x384614(0x307)]['show']({'type':D[_0x384614(0xe5)][_0x384614(0x1a1)],'content':this[_0x384614(0x16b)]['t'](_0x384614(0x22f))}),_0x5fa443['id']===u[_0x384614(0x2fa)][_0x384614(0xe1)]&&this['_messageService'][_0x384614(0x181)]({'type':D['MessageType'][_0x384614(0x1a1)],'content':this[_0x384614(0x16b)]['t'](_0x384614(0x321))}),_0x5fa443['id']===u[_0x384614(0x2fa)]['PERMISSION_DENIED']&&this['_notificationService']['show']({'title':this[_0x384614(0x16b)]['t']('permission.title'),'content':this[_0x384614(0x16b)]['t']('permission.content'),'type':_0x384614(0x248),'duration':0x0}),_0x5fa443['id']===u[_0x384614(0x2fa)]['CONFLICT']&&this[_0x384614(0x307)][_0x384614(0x181)]({'type':D[_0x384614(0xe5)][_0x384614(0x258)],'content':this[_0x384614(0x16b)]['t'](_0x384614(0x321))+'('+_0x5fa443[_0x384614(0x1fe)]+')'}),_0x5fa443['id']===u[_0x384614(0x2fa)]['JOIN_ROOM_FAILED']&&this[_0x384614(0x307)][_0x384614(0x181)]({'type':D[_0x384614(0xe5)][_0x384614(0x1a1)],'content':this[_0x384614(0x16b)]['t'](_0x5fa443[_0x384614(0x1fe)]||'')}),_0x5fa443['id']===u[_0x384614(0x2fa)][_0x384614(0x157)]&&this['_messageService'][_0x384614(0x181)]({'type':D[_0x384614(0xe5)]['Warning'],'content':this[_0x384614(0x16b)]['t']('session.will-retry')}),_0x5fa443['id']===u[_0x384614(0x2fa)][_0x384614(0x24d)]&&this[_0x384614(0x307)][_0x384614(0x181)]({'type':D[_0x384614(0xe5)][_0x384614(0x258)],'content':this[_0x384614(0x16b)]['t'](_0x384614(0x337))}),_0x5fa443['id']===u[_0x384614(0x2fa)]['SUBMIT_CHANGESET_TIMEOUT']&&this[_0x384614(0x307)][_0x384614(0x181)]({'type':D[_0x384614(0xe5)][_0x384614(0x258)],'content':this[_0x384614(0x16b)]['t'](_0x384614(0x1ff))});}));}};q=yt([y(0x0,T[_0x28c265(0xe8)]),y(0x1,u[_0x28c265(0x2dc)]),y(0x2,a['Inject'](u[_0x28c265(0x344)])),y(0x3,T[_0x28c265(0x33e)]),y(0x4,T[_0x28c265(0x11a)]),y(0x5,a[_0x28c265(0x1b0)](a[_0x28c265(0x221)]))],q);const $t='collaboration-client-ui.config',Ue={},be=a[_0x28c265(0x1e6)]('uni.network.url-service');var xt=Object[_0x28c265(0x346)],jt=(_0x33c603,_0x131a78,_0x513098,_0x45a8f1)=>{const _0xce0801=_0x28c265;for(var _0x941807=_0x45a8f1>0x1?void 0x0:_0x45a8f1?xt(_0x131a78,_0x513098):_0x131a78,_0x1fb218=_0x33c603[_0xce0801(0x13d)]-0x1,_0x4da721;_0x1fb218>=0x0;_0x1fb218--)(_0x4da721=_0x33c603[_0x1fb218])&&(_0x941807=_0x4da721(_0x941807)||_0x941807);return _0x941807;},H=(_0x428cc5,_0x5bb194)=>(_0x1aa537,_0x2b52bc)=>_0x5bb194(_0x1aa537,_0x2b52bc,_0x428cc5);exports[_0x28c265(0x143)]=class extends a[_0x28c265(0x2af)]{constructor(_0x431ce8,_0x59df5b,_0x56830e,_0x4c0685,_0x32da26){const _0x3336c5=_0x28c265;super(),this[_0x3336c5(0x10c)]=_0x431ce8,this[_0x3336c5(0x13f)]=_0x59df5b,this[_0x3336c5(0xf2)]=_0x56830e,this[_0x3336c5(0x17a)]=_0x4c0685,_0x32da26?_0x32da26==null||_0x32da26[_0x3336c5(0x2b1)]()[_0x3336c5(0x250)](()=>this[_0x3336c5(0x271)]()):(this[_0x3336c5(0x13f)]['debug'](_0x3336c5(0x11e),'No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.'),this[_0x3336c5(0x271)]());}async[_0x28c265(0x271)](){const _0x3b39b4=_0x28c265,_0x8e8757=this[_0x3b39b4(0x10c)][_0x3b39b4(0x1eb)]('unit'),_0x25baa9=this[_0x3b39b4(0x10c)][_0x3b39b4(0x1eb)](_0x3b39b4(0x32b)),_0x9d153a=this[_0x3b39b4(0x10c)][_0x3b39b4(0x1eb)](_0x3b39b4(0x276));if(!_0x8e8757||!_0x25baa9){this[_0x3b39b4(0x13f)][_0x3b39b4(0x1e9)](_0x3b39b4(0x11e),_0x3b39b4(0x229));return;}const _0x3cebaa=await this[_0x3b39b4(0x17a)]['loadUnit'](_0x8e8757,Number(_0x25baa9),_0x9d153a);_0x3cebaa&&_0x3cebaa instanceof a['Workbook']&&this[_0x3b39b4(0xe0)](_0x3cebaa);}async['_setupSubUnitSync'](_0x36121f){const _0xd13dd2=_0x28c265;await this[_0xd13dd2(0x125)](_0x36121f),_0x36121f['activeSheet$'][_0xd13dd2(0x217)](d[_0xd13dd2(0x2ea)](this[_0xd13dd2(0x176)]))[_0xd13dd2(0x2bb)](_0x1f5358=>{_0x1f5358&&this['_updateURLWithCurrentState'](_0x1f5358);}),this['_urlService'][_0xd13dd2(0x1cd)][_0xd13dd2(0x217)](d['takeUntil'](this['dispose$']))[_0xd13dd2(0x2bb)](()=>this[_0xd13dd2(0x125)](_0x36121f));}[_0x28c265(0x2ba)](_0x2cc0c7,_0x4fc3a6=!0x1){const _0x17214f=_0x28c265,_0x25bef1=this[_0x17214f(0x10c)][_0x17214f(0x1eb)]('subunit');_0x2cc0c7[_0x17214f(0x124)]()!==_0x25bef1&&this[_0x17214f(0x10c)]['setParam'](_0x17214f(0x276),_0x2cc0c7[_0x17214f(0x124)](),_0x4fc3a6);}async[_0x28c265(0x125)](_0x4bfab2){const _0x27e5dd=_0x28c265;var _0x530c86;const _0x7b8c31=this[_0x27e5dd(0x10c)]['getParam'](_0x27e5dd(0x276));if(!_0x7b8c31||!_0x4bfab2['getSheetBySheetId'](_0x7b8c31)){const _0x31d852=_0x4bfab2[_0x27e5dd(0x29e)]()[0x0],_0x22ff57=_0x4bfab2['getSheetBySheetId'](_0x31d852);if(!_0x22ff57)return;this[_0x27e5dd(0x2ba)](_0x22ff57,!0x0),await this[_0x27e5dd(0xf2)][_0x27e5dd(0x191)](g[_0x27e5dd(0x241)]['id'],{'unitId':_0x4bfab2[_0x27e5dd(0x2ec)](),'subUnitId':_0x31d852});return;}((_0x530c86=_0x4bfab2[_0x27e5dd(0x2e6)]())==null?void 0x0:_0x530c86[_0x27e5dd(0x124)]())!==_0x7b8c31&&await this['_commandService'][_0x27e5dd(0x191)](g[_0x27e5dd(0x241)]['id'],{'unitId':_0x4bfab2[_0x27e5dd(0x2ec)](),'subUnitId':_0x7b8c31});}},exports[_0x28c265(0x143)]=jt([H(0x0,be),H(0x1,a['ILogService']),H(0x2,a[_0x28c265(0x1f7)]),H(0x3,a[_0x28c265(0x1b0)](u['DataLoaderService'])),H(0x4,a['Optional'](Ke[_0x28c265(0x18b)]))],exports['CollaborationDataLoaderController']);var Bt=Object[_0x28c265(0x346)],kt=(_0x3691bd,_0x15f89f,_0x16febd,_0xd798ee)=>{for(var _0x19b22b=_0xd798ee>0x1?void 0x0:_0xd798ee?Bt(_0x15f89f,_0x16febd):_0x15f89f,_0x46d28d=_0x3691bd['length']-0x1,_0x3c2b30;_0x46d28d>=0x0;_0x46d28d--)(_0x3c2b30=_0x3691bd[_0x46d28d])&&(_0x19b22b=_0x3c2b30(_0x19b22b)||_0x19b22b);return _0x19b22b;},ce=(_0x461258,_0x4de3fa)=>(_0x5581e0,_0xbc88da)=>_0x4de3fa(_0x5581e0,_0xbc88da,_0x461258);let z=class{constructor(_0x489fe4,_0x15a33f,_0x206b3e){const _0x27b326=_0x28c265;this[_0x27b326(0xce)]=_0x489fe4,this[_0x27b326(0x1c3)]=_0x15a33f,this['_renderManagerService']=_0x206b3e;}['transformIMECache'](_0x1c8ace){const _0x10197e=_0x28c265;this[_0x10197e(0x27e)](_0x1c8ace),this[_0x10197e(0x118)](_0x1c8ace);}[_0x28c265(0x243)](_0x3f162d){const _0x1ed569=_0x28c265,{unitID:_0x3e1d73}=_0x3f162d,_0x55b496=this[_0x1ed569(0x210)][_0x1ed569(0x1b2)](_0x3e1d73)[_0x1ed569(0x2d1)](b[_0x1ed569(0x222)]),{redoCache:_0x334a25}=_0x55b496[_0x1ed569(0x1c2)]();if(_0x334a25[_0x1ed569(0x13d)]===0x0)return _0x3f162d;let _0x539ad1=a[_0x1ed569(0x236)][_0x1ed569(0x2fe)](_0x3f162d[_0x1ed569(0x2a3)][0x0]);for(let _0x391797=0x0;_0x391797<_0x334a25['length'];_0x391797++){const _0x474606={'id':_0x1ed569(0x155),'params':{..._0x334a25[_0x391797]}},_0x4ff6b0=this['_transformService'][_0x1ed569(0x1ee)](_0x539ad1,_0x474606,!0x1);if(m[_0x1ed569(0x17f)](_0x4ff6b0))throw _0x4ff6b0[_0x1ed569(0x248)];_0x539ad1=_0x4ff6b0[_0x1ed569(0x1dd)];}return{...a[_0x1ed569(0x236)][_0x1ed569(0x2fe)](_0x3f162d),'mutations':[_0x539ad1]};}[_0x28c265(0x27e)](_0x4f2f55){const _0x265b67=_0x28c265,{unitID:_0x55dcfa}=_0x4f2f55,_0x3dcb91=this[_0x265b67(0x210)][_0x265b67(0x1b2)](_0x55dcfa)['with'](b[_0x265b67(0x222)]),{undoCache:_0x7c21c8,redoCache:_0x1614f7}=_0x3dcb91[_0x265b67(0x1c2)]();if(_0x7c21c8[_0x265b67(0x13d)]===0x0||_0x1614f7[_0x265b67(0x13d)]===0x0)return;const _0x2e9acc=[],_0x2c2ebe=[];let _0x40d6e8=a[_0x265b67(0x236)][_0x265b67(0x2fe)](_0x4f2f55[_0x265b67(0x2a3)][0x0]),_0x59b683=a[_0x265b67(0x236)][_0x265b67(0x2fe)](_0x4f2f55[_0x265b67(0x2a3)][0x0]);for(let _0x352b26=_0x7c21c8[_0x265b67(0x13d)]-0x1;_0x352b26>=0x0;_0x352b26--){const _0x5c5ae0={'id':'doc.mutation.rich-text-editing','params':{..._0x7c21c8[_0x352b26]}},_0x203379={'id':_0x265b67(0x155),'params':{..._0x1614f7[_0x352b26]}},_0x57866b=this[_0x265b67(0x1c3)][_0x265b67(0x1ee)](_0x40d6e8,_0x5c5ae0,!0x1),_0x2d20a3=this[_0x265b67(0x1c3)][_0x265b67(0x1ee)](_0x59b683,_0x203379,!0x1);if(m[_0x265b67(0x17f)](_0x57866b))throw _0x57866b[_0x265b67(0x248)];if(m[_0x265b67(0x17f)](_0x2d20a3))throw _0x2d20a3[_0x265b67(0x248)];_0x2e9acc[_0x265b67(0x16e)](_0x57866b['m2Prime']['params']),_0x2c2ebe['unshift'](_0x2d20a3[_0x265b67(0x12f)][_0x265b67(0x31c)]),_0x40d6e8=_0x57866b[_0x265b67(0x1dd)],_0x59b683=_0x2d20a3[_0x265b67(0x1dd)];}_0x3dcb91['setUndoRedoMutationParamsCache']({'undoCache':_0x2e9acc,'redoCache':_0x2c2ebe});}[_0x28c265(0x118)](_0x374468){const _0x56d807=_0x28c265,{unitID:_0x3c425a}=_0x374468,_0x5089c1=this['_renderManagerService'][_0x56d807(0x1b2)](_0x3c425a)[_0x56d807(0x2d1)](b[_0x56d807(0x222)]),_0xbbaf3e=_0x5089c1[_0x56d807(0x231)]();if(_0xbbaf3e==null)return;const _0x32eacd=[{'id':_0x56d807(0x155),'params':{'unitId':_0x374468[_0x56d807(0x200)],'actions':null,'textRanges':[_0xbbaf3e]}}],_0x3d6d55=this['_transformService'][_0x56d807(0xd3)](_0x374468,_0x32eacd);if(!m[_0x56d807(0x225)](_0x3d6d55))throw _0x3d6d55['error'];const _0x340a01=_0x3d6d55[_0x56d807(0x12f)][0x0]['params'][_0x56d807(0x19f)];Array[_0x56d807(0x2ad)](_0x340a01)&&_0x340a01[_0x56d807(0x13d)]&&_0x5089c1['setActiveRange'](_0x340a01[0x0]);}};z=kt([ce(0x0,a[_0x28c265(0x1b0)](a[_0x28c265(0x23b)])),ce(0x1,m[_0x28c265(0x116)]),ce(0x2,p[_0x28c265(0x224)])],z);var Ht=Object[_0x28c265(0x346)],Ft=(_0x40187a,_0x376fc4,_0x5048ca,_0x43e763)=>{for(var _0x3e4ac3=_0x43e763>0x1?void 0x0:_0x43e763?Ht(_0x376fc4,_0x5048ca):_0x376fc4,_0x54f2e7=_0x40187a['length']-0x1,_0x57ea4b;_0x54f2e7>=0x0;_0x54f2e7--)(_0x57ea4b=_0x40187a[_0x54f2e7])&&(_0x3e4ac3=_0x57ea4b(_0x3e4ac3)||_0x3e4ac3);return _0x3e4ac3;},le=(_0x2c09be,_0x1ff08c)=>(_0x587036,_0x2d3d9c)=>_0x1ff08c(_0x587036,_0x2d3d9c,_0x2c09be);let J=class{constructor(_0x52ef70,_0x453b61,_0x2e3cfa){const _0x3d8942=_0x28c265;this['_injector']=_0x52ef70,this[_0x3d8942(0x1c3)]=_0x453b61,this[_0x3d8942(0x2a8)]=_0x2e3cfa;}[_0x28c265(0x32c)](_0x196ffe){const _0x48e837=_0x28c265;this[_0x48e837(0x2b7)](_0x196ffe);}[_0x28c265(0x243)](_0x3fc499){const _0x160b79=_0x28c265,{unitID:_0x477cb5}=_0x3fc499,{collaboration:_0x5a35d0}=this[_0x160b79(0x2a8)]['getStateCache'](_0x477cb5);if(_0x5a35d0['length']===0x0)return _0x3fc499;let _0x4697dd=a[_0x160b79(0x236)][_0x160b79(0x2fe)](_0x3fc499[_0x160b79(0x2a3)][0x0]);for(let _0xeb810b=0x0;_0xeb810b<_0x5a35d0['length'];_0xeb810b++){const _0x25c569={'id':_0x160b79(0x155),'params':{'unitId':_0x5a35d0[_0xeb810b]['unitId'],..._0x5a35d0[_0xeb810b][_0x160b79(0x2d2)]}},_0x1b1dd9=this[_0x160b79(0x1c3)][_0x160b79(0x1ee)](_0x4697dd,_0x25c569,!0x1);if(m[_0x160b79(0x17f)](_0x1b1dd9))throw _0x1b1dd9[_0x160b79(0x248)];_0x4697dd=_0x1b1dd9[_0x160b79(0x1dd)];}return{...a[_0x160b79(0x236)][_0x160b79(0x2fe)](_0x3fc499),'mutations':[_0x4697dd]};}[_0x28c265(0x2b7)](_0x417052){const _0x4b4060=_0x28c265,{unitID:_0x2718e5}=_0x417052,{history:_0x3a343f,collaboration:_0x26df72}=this[_0x4b4060(0x2a8)]['getStateCache'](_0x2718e5);if(_0x3a343f['length']===0x0&&_0x26df72[_0x4b4060(0x13d)]===0x0)return;const _0x4a0cc8=[],_0xfdece4=[];let _0x47e53b=a[_0x4b4060(0x236)]['deepClone'](_0x417052[_0x4b4060(0x2a3)][0x0]),_0x3e3ce6=a[_0x4b4060(0x236)]['deepClone'](_0x417052[_0x4b4060(0x2a3)][0x0]);for(let _0x257de7=_0x3a343f['length']-0x1;_0x257de7>=0x0;_0x257de7--){const _0x1b3597={'id':_0x4b4060(0x155),'params':{'unitId':_0x3a343f[_0x257de7]['unitId'],..._0x3a343f[_0x257de7]['undoState']}},_0x1b1fcd={'id':_0x4b4060(0x155),'params':{'unitId':_0x3a343f[_0x257de7]['unitId'],..._0x3a343f[_0x257de7][_0x4b4060(0x2d2)]}},_0x137b79=this[_0x4b4060(0x1c3)][_0x4b4060(0x1ee)](_0x47e53b,_0x1b3597,!0x1),_0x18ceb1=this['_transformService'][_0x4b4060(0x1ee)](_0x3e3ce6,_0x1b1fcd,!0x1);if(m[_0x4b4060(0x17f)](_0x137b79))throw _0x137b79['error'];if(m[_0x4b4060(0x17f)](_0x18ceb1))throw _0x18ceb1[_0x4b4060(0x248)];_0x4a0cc8[_0x4b4060(0x16e)]({..._0x3a343f[_0x257de7],'undoState':_0x137b79[_0x4b4060(0x12f)][_0x4b4060(0x31c)],'redoState':_0x18ceb1[_0x4b4060(0x12f)][_0x4b4060(0x31c)]}),_0x47e53b=_0x137b79[_0x4b4060(0x1dd)],_0x3e3ce6=_0x18ceb1[_0x4b4060(0x1dd)];}_0x47e53b=a[_0x4b4060(0x236)]['deepClone'](_0x417052[_0x4b4060(0x2a3)][0x0]),_0x3e3ce6=a['Tools'][_0x4b4060(0x2fe)](_0x417052[_0x4b4060(0x2a3)][0x0]);for(let _0x5f47a6=_0x26df72[_0x4b4060(0x13d)]-0x1;_0x5f47a6>=0x0;_0x5f47a6--){const _0x2a9fd7={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x26df72[_0x5f47a6][_0x4b4060(0xdc)],..._0x26df72[_0x5f47a6]['undoState']}},_0x331d0b={'id':_0x4b4060(0x155),'params':{'unitId':_0x26df72[_0x5f47a6][_0x4b4060(0xdc)],..._0x26df72[_0x5f47a6][_0x4b4060(0x2d2)]}},_0x47625b=this[_0x4b4060(0x1c3)][_0x4b4060(0x1ee)](_0x47e53b,_0x2a9fd7,!0x1),_0x49c729=this[_0x4b4060(0x1c3)][_0x4b4060(0x1ee)](_0x3e3ce6,_0x331d0b,!0x1);if(m[_0x4b4060(0x17f)](_0x47625b))throw _0x47625b['error'];if(m['isTransformMutationFailure'](_0x49c729))throw _0x49c729[_0x4b4060(0x248)];_0xfdece4[_0x4b4060(0x16e)]({..._0x26df72[_0x5f47a6],'undoState':_0x47625b[_0x4b4060(0x12f)]['params'],'redoState':_0x49c729[_0x4b4060(0x12f)][_0x4b4060(0x31c)]}),_0x47e53b=_0x47625b[_0x4b4060(0x1dd)],_0x3e3ce6=_0x49c729['m1Prime'];}this[_0x4b4060(0x2a8)][_0x4b4060(0x32a)](_0x2718e5,{'history':_0x4a0cc8,'collaboration':_0xfdece4});}};J=Ft([le(0x0,a[_0x28c265(0x1b0)](a['Injector'])),le(0x1,m[_0x28c265(0x116)]),le(0x2,a[_0x28c265(0x1b0)](b[_0x28c265(0x329)]))],J);var Yt=Object[_0x28c265(0x346)],Wt=(_0x2b6ea3,_0x33de03,_0x4a3a17,_0x22ae1a)=>{const _0x527d7c=_0x28c265;for(var _0x36133e=_0x22ae1a>0x1?void 0x0:_0x22ae1a?Yt(_0x33de03,_0x4a3a17):_0x33de03,_0x5cef29=_0x2b6ea3[_0x527d7c(0x13d)]-0x1,_0x5c0aec;_0x5cef29>=0x0;_0x5cef29--)(_0x5c0aec=_0x2b6ea3[_0x5cef29])&&(_0x36133e=_0x5c0aec(_0x36133e)||_0x36133e);return _0x36133e;},Ne=(_0x53d84b,_0x35c09e)=>(_0x52d28e,_0x5d9713)=>_0x35c09e(_0x52d28e,_0x5d9713,_0x53d84b);let Z=class{constructor(_0x2a7ab6,_0xf703ba){const _0x582835=_0x28c265;this[_0x582835(0xce)]=_0x2a7ab6,this[_0x582835(0x1c3)]=_0xf703ba;}[_0x28c265(0x1bf)](_0x1ece7b){const _0x344c30=_0x28c265;var _0x23b158;const _0x2ea807=this['_injector'][_0x344c30(0x256)](Y[_0x344c30(0x1d3)]),_0x2fc87e=(_0x23b158=_0x2ea807[_0x344c30(0x227)]())!=null?_0x23b158:[];if(_0x2fc87e[_0x344c30(0x13d)]===0x0)return;const _0x2d53a2=_0x1ece7b[_0x344c30(0x200)],_0x319383=[{'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x2d53a2,'actions':null,'textRanges':_0x2fc87e}}],_0x43dd12=this['_transformService'][_0x344c30(0xd3)](_0x1ece7b,_0x319383);if(!m[_0x344c30(0x225)](_0x43dd12))throw _0x43dd12[_0x344c30(0x248)];const _0x1042a2=_0x43dd12['m2Prime'][0x0][_0x344c30(0x31c)][_0x344c30(0x19f)];Array[_0x344c30(0x2ad)](_0x1042a2)&&_0x1042a2[_0x344c30(0x13d)]&&_0x2ea807[_0x344c30(0x13b)](_0x1042a2,{'unitId':_0x2d53a2,'subUnitId':_0x2d53a2},!0x1);}};Z=Wt([Ne(0x0,a[_0x28c265(0x1b0)](a[_0x28c265(0x23b)])),Ne(0x1,m[_0x28c265(0x116)])],Z);var Vt=Object[_0x28c265(0x346)],Xt=(_0x571582,_0xafe60b,_0x19d070,_0x2c5fac)=>{const _0x37f62b=_0x28c265;for(var _0x2f1802=_0x2c5fac>0x1?void 0x0:_0x2c5fac?Vt(_0xafe60b,_0x19d070):_0xafe60b,_0x47cae2=_0x571582[_0x37f62b(0x13d)]-0x1,_0x417d34;_0x47cae2>=0x0;_0x47cae2--)(_0x417d34=_0x571582[_0x47cae2])&&(_0x2f1802=_0x417d34(_0x2f1802)||_0x2f1802);return _0x2f1802;},N=(_0x4d9d9e,_0x234a2b)=>(_0x2b2299,_0x1312b9)=>_0x234a2b(_0x2b2299,_0x1312b9,_0x4d9d9e);let Q=class extends a[_0x28c265(0x12b)]{constructor(_0x551ee6,_0x58526e,_0x55f67d,_0x4f4e4a,_0x408a63,_0x3ba59b,_0x2c950b,_0x5e9eb7){const _0x3e5038=_0x28c265;super(),h(this,'_status$',new d[(_0x3e5038(0x2b2))](u['CollaborationStatus'][_0x3e5038(0x153)])),(this['_docStateChangeManagerService']=_0x551ee6,this[_0x3e5038(0x2ce)]=_0x58526e,this[_0x3e5038(0x201)]=_0x55f67d,this['_docTransformStateCacheService']=_0x4f4e4a,this[_0x3e5038(0x345)]=_0x408a63,this[_0x3e5038(0xc3)]=_0x3ba59b,this['_messageService']=_0x2c950b,this[_0x3e5038(0x16b)]=_0x5e9eb7,this[_0x3e5038(0x24f)]());}['_initEntityListener'](){const _0x123c5c=_0x28c265;this[_0x123c5c(0xcf)](this[_0x123c5c(0x2ce)]['entityInit$'][_0x123c5c(0x2bb)](_0x9b1002=>{const _0x2bca01=_0x123c5c,_0x40dc95=this[_0x2bca01(0x2a8)][_0x2bca01(0x288)]['subscribe'](_0x2b3893=>{const _0x2a3e19=_0x2bca01;if(_0x2b3893==null)return;const {unitId:_0x56721a,redoState:_0xf8266a,commandId:_0xb23bbc}=_0x2b3893;if(_0x56721a!==_0x9b1002[_0x2a3e19(0x200)])return;const _0x25ba9b={'id':_0xb23bbc,'type':a['CommandType'][_0x2a3e19(0x1c8)],'params':{'unitId':_0x56721a,'actions':_0xf8266a[_0x2a3e19(0x15d)],'textRanges':null}};_0x9b1002[_0x2a3e19(0x164)](_0x25ba9b);});if(_0x9b1002['disposeWithMe'](_0x40dc95),_0x9b1002 instanceof u[_0x2bca01(0xfe)]){const _0x123f9d={'onTransformIME':_0x180d02=>this[_0x2bca01(0x201)][_0x2bca01(0x17e)](_0x180d02),'onTransformState':_0x19e04a=>this[_0x2bca01(0x195)][_0x2bca01(0x32c)](_0x19e04a),'onTransformSelections':_0xfa3c6e=>this['_docTransformSelectionsService']['transformSelections'](_0xfa3c6e),'onSyncEditingCollabCursor':_0x1849ed=>this[_0x2bca01(0xc3)]['syncEditingCollabCursor'](_0x1849ed),'onTransformRemoteChangesetByIMECache':_0x4e9f59=>this[_0x2bca01(0x201)][_0x2bca01(0x243)](_0x4e9f59),'onTransformRemoteChangesetByStateCache':_0x5ca7a2=>this[_0x2bca01(0x195)][_0x2bca01(0x243)](_0x5ca7a2)};_0x9b1002['addHandlerCallback'](_0x123f9d);}}));}};Q=Xt([N(0x0,a['Inject'](b[_0x28c265(0x329)])),N(0x1,a['Inject'](u[_0x28c265(0x21f)])),N(0x2,a[_0x28c265(0x1b0)](z)),N(0x3,a['Inject'](J)),N(0x4,a[_0x28c265(0x1b0)](Z)),N(0x5,a[_0x28c265(0x1b0)](Ce)),N(0x6,T[_0x28c265(0x33e)]),N(0x7,a['Inject'](a[_0x28c265(0x221)]))],Q);var Gt=Object[_0x28c265(0x346)],Kt=(_0x407bb7,_0x1c7338,_0x4ee10c,_0x1f2be0)=>{const _0xde2ecb=_0x28c265;for(var _0x14e764=_0x1f2be0>0x1?void 0x0:_0x1f2be0?Gt(_0x1c7338,_0x4ee10c):_0x1c7338,_0x4fdf54=_0x407bb7[_0xde2ecb(0x13d)]-0x1,_0x538562;_0x4fdf54>=0x0;_0x4fdf54--)(_0x538562=_0x407bb7[_0x4fdf54])&&(_0x14e764=_0x538562(_0x14e764)||_0x14e764);return _0x14e764;},_e=(_0x225826,_0x11f3f6)=>(_0x1c7483,_0x13ae67)=>_0x11f3f6(_0x1c7483,_0x13ae67,_0x225826);let ge=class extends a[_0x28c265(0x12b)]{constructor(_0x5876ca,_0x27c656,_0x3b48f5){const _0x28f22c=_0x28c265;super(),h(this,_0x28f22c(0x1b7),new Map()),h(this,'_saveTaskMap',new Map()),h(this,_0x28f22c(0x25c),!0x1),(this[_0x28f22c(0x262)]=_0x5876ca,this[_0x28f22c(0x106)]=_0x27c656,this[_0x28f22c(0x19b)]=_0x3b48f5);}[_0x28c265(0x17d)](){const _0x413177=_0x28c265;this[_0x413177(0x25c)]=!0x0;}[_0x28c265(0x29a)](){this['_disabled']=!0x1;}get[_0x28c265(0x23a)](){return this['_saveTaskMap'];}['dispose'](){const _0x3037d2=_0x28c265;this[_0x3037d2(0x293)]()['then'](()=>super[_0x3037d2(0x1d8)]());}async['loadOfflineData'](_0x51ecb6){const _0x3efa19=_0x28c265;return this[_0x3efa19(0x25c)]?null:this[_0x3efa19(0x106)]['getItem'](u[_0x3efa19(0x192)](_0x51ecb6));}async[_0x28c265(0x1db)](_0x4ae99e,_0x582213){const _0x566a7a=_0x28c265;return!!this[_0x566a7a(0x106)]['setItem'](_0x4ae99e,_0x582213);}['updateOfflineData'](_0x4f00d5,_0x30ba17,_0x5279b0,_0x49267d){const _0x5dd3f3=_0x28c265,_0x2a8d06=this[_0x5dd3f3(0x19b)][_0x5dd3f3(0x1ce)](_0x4f00d5);this['_cachedData']['set'](_0x4f00d5,{'unitID':_0x4f00d5,'type':_0x30ba17,'awaitingChangeset':_0x5279b0,'mutations':_0x49267d,'rev':_0x2a8d06}),this['_saveTaskMap'][_0x5dd3f3(0x16c)](_0x4f00d5)||this['_scheduleSaving'](_0x4f00d5);}[_0x28c265(0x1a6)](_0x475d31){const _0x4c2bce=_0x28c265,_0x6caef6=this['_getSaveTimeout']();_0x6caef6===0x0?this['_saveCache'](_0x475d31):this[_0x4c2bce(0x1d0)]['set'](_0x475d31,setTimeout(()=>this[_0x4c2bce(0x21d)](_0x475d31),_0x6caef6));}[_0x28c265(0xe9)](){const _0x4595d0=_0x28c265;var _0x274207;return(_0x274207=this[_0x4595d0(0x262)][_0x4595d0(0x10e)](u['LOCAL_CACHE_INTERVAL_KEY']))!=null?_0x274207:u[_0x4595d0(0x167)];}[_0x28c265(0x21d)](_0x3da994){const _0x367eaf=_0x28c265,_0xaab30e=this[_0x367eaf(0x1d0)][_0x367eaf(0x256)](_0x3da994);return _0xaab30e!==void 0x0&&window[_0x367eaf(0xfa)](_0xaab30e),this['_localStorageService'][_0x367eaf(0x2d7)](u[_0x367eaf(0x192)](_0x3da994),this['_cachedData'][_0x367eaf(0x256)](_0x3da994))['then'](()=>this[_0x367eaf(0x1d0)][_0x367eaf(0x220)](_0x3da994));}async['exhaustSavingTask'](){const _0x60ad4a=_0x28c265,_0x4995d8=[];this['_saveTaskMap'][_0x60ad4a(0x15e)]((_0x2d6fd6,_0x4df5bb)=>{const _0x5bed69=_0x60ad4a;window[_0x5bed69(0xfa)](_0x2d6fd6),_0x4995d8[_0x5bed69(0x1d6)](this['_saveCache'](_0x4df5bb)[_0x5bed69(0x250)](()=>{const _0x5d61f5=_0x5bed69;this[_0x5d61f5(0x1d0)][_0x5d61f5(0x220)](_0x4df5bb);}));}),await Promise[_0x60ad4a(0xd5)](_0x4995d8);}};ge=Kt([_e(0x0,a[_0x28c265(0x2f2)]),_e(0x1,a[_0x28c265(0x269)]),_e(0x2,a[_0x28c265(0x1b0)](m[_0x28c265(0x317)]))],ge);class je extends a['RxDisposable']{constructor(){const _0x552e16=_0x28c265;super(),h(this,_0x552e16(0x1cd)),this[_0x552e16(0x1cd)]=d['fromEvent'](window,'popstate')['pipe'](d['takeUntil'](this[_0x552e16(0x176)]),d[_0x552e16(0x1c4)](0x1),d['mapTo'](void 0x0));}[_0x28c265(0x137)](_0x378c8d,_0x4c425d,_0x2b0ead=!0x1){const _0x49477a=_0x28c265,_0x151e5e=new URL(window['location'][_0x49477a(0x25d)]);_0x151e5e[_0x49477a(0x12d)]['set'](_0x378c8d,_0x4c425d),_0x2b0ead?window[_0x49477a(0x1df)][_0x49477a(0x119)]('','',_0x151e5e[_0x49477a(0x2eb)]()):window['history'][_0x49477a(0x1ad)]('','',_0x151e5e['toString']());}[_0x28c265(0x22e)](_0x2590d8,_0x25b76e=!0x1){const _0x5cd5ae=_0x28c265,_0x3c6411=new URL(window['location'][_0x5cd5ae(0x25d)]);_0x3c6411[_0x5cd5ae(0x12d)]['delete'](_0x2590d8),_0x25b76e?window[_0x5cd5ae(0x1df)][_0x5cd5ae(0x119)]('','',_0x3c6411[_0x5cd5ae(0x2eb)]()):window['history'][_0x5cd5ae(0x1ad)]('','',_0x3c6411['toString']());}[_0x28c265(0x1eb)](_0x47fee7){const _0x1e035d=_0x28c265;var _0x27008c;return(_0x27008c=new URL(window[_0x1e035d(0xf6)][_0x1e035d(0x25d)])['searchParams'][_0x1e035d(0x256)](_0x47fee7))!=null?_0x27008c:void 0x0;}}var qt=Object[_0x28c265(0x334)],zt=Object[_0x28c265(0x346)],Jt=(_0x3a8009,_0x134e7a,_0x3bf5a1)=>_0x134e7a in _0x3a8009?qt(_0x3a8009,_0x134e7a,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x3bf5a1}):_0x3a8009[_0x134e7a]=_0x3bf5a1,Zt=(_0xf0fa4f,_0x4f2cb7,_0x364a1e,_0x9ee414)=>{for(var _0x5680dd=_0x9ee414>0x1?void 0x0:_0x9ee414?zt(_0x4f2cb7,_0x364a1e):_0x4f2cb7,_0x417c1c=_0xf0fa4f['length']-0x1,_0x5a318c;_0x417c1c>=0x0;_0x417c1c--)(_0x5a318c=_0xf0fa4f[_0x417c1c])&&(_0x5680dd=_0x5a318c(_0x5680dd)||_0x5680dd);return _0x5680dd;},he=(_0x2a81d6,_0x385dc6)=>(_0x50821d,_0x5fb7a1)=>_0x385dc6(_0x50821d,_0x5fb7a1,_0x2a81d6),Qt=(_0x12c250,_0x41dfa7,_0x174dba)=>Jt(_0x12c250,_0x41dfa7+'',_0x174dba);const es=_0x28c265(0x31d);exports[_0x28c265(0x2b6)]=class extends a['Plugin']{constructor(_0x94457a=Ue,_0x5173fc,_0xfae1fa,_0x3e587d){const _0x1f4805=_0x28c265;super(),this[_0x1f4805(0x11f)]=_0x94457a,this[_0x1f4805(0x210)]=_0x5173fc,this['_injector']=_0xfae1fa,this[_0x1f4805(0x262)]=_0x3e587d;const {..._0x4241e5}=a[_0x1f4805(0x15c)]({},Ue,this[_0x1f4805(0x11f)]);this[_0x1f4805(0x262)][_0x1f4805(0x150)]($t,_0x4241e5);}[_0x28c265(0x138)](){const _0x38d80a=_0x28c265;this[_0x38d80a(0x212)](),this[_0x38d80a(0xd9)]();}[_0x28c265(0x292)](){const _0x3525c0=_0x28c265;this[_0x3525c0(0x2c6)]();}['_registerDependencies'](){const _0x3319fc=_0x28c265;var _0x12634e;const _0x53f0a4=[[me],[Z],[z],[J],[Ce],[be,{'useClass':je}],[G['ISocketService'],{'useClass':G[_0x3319fc(0x193)]}],[u[_0x3319fc(0x2dc)],{'useClass':ge}],[exports['DesktopCollaborationStatusDisplayController']],[Q],[q],[x],[de],[exports[_0x3319fc(0x143)]]];a[_0x3319fc(0xf9)](this[_0x3319fc(0xce)],a[_0x3319fc(0xd8)](_0x53f0a4,(_0x12634e=this[_0x3319fc(0x11f)])==null?void 0x0:_0x12634e['override']));}['_registerRenderDependencies'](){const _0x1697dc=_0x28c265;this[_0x1697dc(0xcf)](this['_renderManagerService'][_0x1697dc(0x284)](a[_0x1697dc(0x24e)][_0x1697dc(0x2cc)],[Ie])),this[_0x1697dc(0xcf)](this[_0x1697dc(0x210)]['registerRenderModule'](a[_0x1697dc(0x24e)][_0x1697dc(0x2a9)],[ve]));}[_0x28c265(0xd9)](){const _0x2a9798=_0x28c265;a['touchDependencies'](this[_0x2a9798(0xce)],[[x],[exports[_0x2a9798(0x316)]],[Q],[q],[exports[_0x2a9798(0x143)]]]);}},Qt(exports['UniverCollaborationClientUIPlugin'],_0x28c265(0x2c7),es),exports[_0x28c265(0x2b6)]=Zt([a['DependentOn'](u[_0x28c265(0x2be)]),he(0x1,p[_0x28c265(0x224)]),he(0x2,a[_0x28c265(0x1b0)](a[_0x28c265(0x23b)])),he(0x3,a[_0x28c265(0x2f2)])],exports[_0x28c265(0x2b6)]);var ts=Object[_0x28c265(0x346)],ss=(_0x69e490,_0xb40ee8,_0x110f42,_0x1433f6)=>{for(var _0x3eed58=_0x1433f6>0x1?void 0x0:_0x1433f6?ts(_0xb40ee8,_0x110f42):_0xb40ee8,_0x1052b0=_0x69e490['length']-0x1,_0x1f0734;_0x1052b0>=0x0;_0x1052b0--)(_0x1f0734=_0x69e490[_0x1052b0])&&(_0x3eed58=_0x1f0734(_0x3eed58)||_0x3eed58);return _0x3eed58;},F=(_0x3e0307,_0x41d199)=>(_0x2d1700,_0xe57735)=>_0x41d199(_0x2d1700,_0xe57735,_0x3e0307);exports['BrowserCollaborationSocketService']=class extends u[_0x28c265(0x301)]{constructor(_0x502a0f,_0x380d84,_0x4a9dae,_0x5e9fdc,_0x14eb61){super(_0x502a0f,_0x380d84,_0x4a9dae,_0x5e9fdc,_0x14eb61);}async[_0x28c265(0x2c2)](_0x1e5e58){const _0x15817d=_0x28c265,_0x3f626a=await this['_getSessionTicket'](),_0x2c2172=this[_0x15817d(0x2a1)](_0x1e5e58,_0x3f626a);return this[_0x15817d(0x28c)](_0x2c2172);}[_0x28c265(0x2a1)](_0x23f484,_0x69ccf6){const _0x488f3c=_0x28c265,_0x1b0c91=typeof window>'u'?new URL(_0x23f484):new URL(_0x23f484,window[_0x488f3c(0xf6)]['origin']);_0x1b0c91[_0x488f3c(0x12d)]['set'](_0x488f3c(0x21e),_0x69ccf6);const _0x4214df=typeof window>'u'?new URLSearchParams():new URLSearchParams(window[_0x488f3c(0xf6)][_0x488f3c(0x2e4)]);return _0x4214df[_0x488f3c(0x256)]('runId')&&_0x1b0c91[_0x488f3c(0x12d)][_0x488f3c(0x18c)]('runId',_0x4214df['get'](_0x488f3c(0x245))),_0x1b0c91[_0x488f3c(0x2eb)]();}async[_0x28c265(0x26b)](){const _0x20eac2=_0x28c265;var _0x4cbca8,_0x4f7b9c,_0x572618;const _0x364c08=this[_0x20eac2(0x262)][_0x20eac2(0x10e)](u[_0x20eac2(0x335)]),_0x5ad118=(_0x4cbca8=_0x364c08==null?void 0x0:_0x364c08['wsSessionTicketUrl'])!=null?_0x4cbca8:u[_0x20eac2(0x322)];return(_0x572618=(_0x4f7b9c=(await this[_0x20eac2(0x142)][_0x20eac2(0x256)](_0x5ad118,{'headers':{'Content-Type':_0x20eac2(0x19e)}}))[_0x20eac2(0x10a)])==null?void 0x0:_0x4f7b9c['ticket'])!=null?_0x572618:'';}},exports['BrowserCollaborationSocketService']=ss([F(0x0,a[_0x28c265(0x1b0)](a[_0x28c265(0x23b)])),F(0x1,a['Inject'](G[_0x28c265(0x1fc)])),F(0x2,a['IConfigService']),F(0x3,a[_0x28c265(0x2d4)]),F(0x4,m[_0x28c265(0x11d)])],exports['BrowserCollaborationSocketService']);const Me=0x7530,Le='ACTIVE_UNIT_EVENT_CHANNEL';class is extends a[_0x28c265(0x12b)]{constructor(){const _0x41559c=_0x28c265;super(),h(this,_0x41559c(0x1e2),a[_0x41559c(0x13e)]()),h(this,_0x41559c(0x1f2),new Set()),h(this,_0x41559c(0x2b0),new Map()),h(this,_0x41559c(0x2fb),null),h(this,_0x41559c(0x1be),new Map()),h(this,_0x41559c(0x129),new Map()),this['_init']();}[_0x28c265(0x1d8)](){const _0x44dca4=_0x28c265;super['dispose'](),this[_0x44dca4(0x1be)][_0x44dca4(0x15e)]((_0x13231b,_0x23124c)=>this[_0x44dca4(0x27c)](_0x23124c)),this[_0x44dca4(0x2fb)]&&window[_0x44dca4(0x2ee)](this[_0x44dca4(0x2fb)]);}[_0x28c265(0x290)](_0x456b53){const _0x1e90c3=_0x28c265;return this[_0x1e90c3(0x1bb)](_0x456b53)['pipe'](d['distinctUntilChanged']());}[_0x28c265(0xda)](_0x4a6cd6){const _0x3a5cc3=_0x28c265;this[_0x3a5cc3(0x1f2)]['size']===0x0&&this[_0x3a5cc3(0x20a)](),this[_0x3a5cc3(0x1f2)]['add'](_0x4a6cd6),this['_send']({'type':0x0,'memberID':this[_0x3a5cc3(0x1e2)],'unitIDs':[_0x4a6cd6],'isForwarded':!0x1});}[_0x28c265(0xc2)](_0x20e842){const _0x173692=_0x28c265;this[_0x173692(0x1f2)]['delete'](_0x20e842),this[_0x173692(0x1f2)][_0x173692(0x23f)]===0x0&&this[_0x173692(0x2fb)]&&window[_0x173692(0x2ee)](this[_0x173692(0x2fb)]);}[_0x28c265(0x271)](){const _0x39b9d5=_0x28c265;this[_0x39b9d5(0xcf)](a['toDisposable'](d[_0x39b9d5(0x296)](window,_0x39b9d5(0x13c))[_0x39b9d5(0x2bb)](_0x5bc3e6=>{const _0x17b9e6=_0x39b9d5;if(_0x5bc3e6[_0x17b9e6(0x286)]!==Le||!_0x5bc3e6[_0x17b9e6(0x2d0)])return;const _0xba72cb=JSON[_0x17b9e6(0xeb)](_0x5bc3e6[_0x17b9e6(0x2d0)]);this['_handleEvent'](_0xba72cb);}))),window['addEventListener'](_0x39b9d5(0x1c0),()=>this['_send']({'type':0x1,'memberID':this[_0x39b9d5(0x1e2)],'unitIDs':Array[_0x39b9d5(0x230)](this[_0x39b9d5(0x1f2)])}));}[_0x28c265(0x127)](_0x3bc114){const _0x3d0c07=_0x28c265;switch(_0x3bc114['type']){case 0x0:this['_handleJoinEvent'](_0x3bc114);break;case 0x1:this[_0x3d0c07(0x1d1)](_0x3bc114);break;case 0x2:this[_0x3d0c07(0x2c1)](_0x3bc114);break;}}['_handleJoinEvent'](_0x3fc8c6){const _0x4c93ae=_0x28c265,{unitIDs:_0x183907,memberID:_0x5c06f9,isForwarded:_0x19ea7a}=_0x3fc8c6;_0x183907['forEach'](_0x54f20a=>{const _0x25421c=_0x29a9;if(!_0x19ea7a&&this[_0x25421c(0x2b0)][_0x25421c(0x16c)](_0x54f20a)&&this[_0x25421c(0x1bb)](_0x54f20a)[_0x25421c(0x113)](u[_0x25421c(0x144)]['OTHER_CLIENTS_EDITING']),!this[_0x25421c(0x2b0)][_0x25421c(0x16c)](_0x54f20a)||!this[_0x25421c(0x2b0)][_0x25421c(0x256)](_0x54f20a)['has'](_0x5c06f9)){const _0x2ab6cd=this[_0x25421c(0x2b0)][_0x25421c(0x256)](_0x54f20a)||new Set();_0x2ab6cd['add'](_0x5c06f9),this[_0x25421c(0x2b0)][_0x25421c(0x18c)](_0x54f20a,_0x2ab6cd),this[_0x25421c(0x257)](_0x5c06f9);}}),_0x19ea7a||this['_send']({'type':0x0,'memberID':this[_0x4c93ae(0x1e2)],'unitIDs':[...this['_selfUnitIDs']],'isForwarded':!0x0});}['_scheduleClearOtherTimer'](_0x1b390c){const _0x24a0a7=_0x28c265;this['_removeClearOtherTimer'](_0x1b390c);const _0x3dc7fe=window[_0x24a0a7(0x318)](()=>{const _0x493197=_0x24a0a7;this[_0x493197(0x2b0)][_0x493197(0x15e)](_0x150d71=>{const _0x56c489=_0x493197;_0x150d71[_0x56c489(0x220)](_0x1b390c);});},Me*0x2);this[_0x24a0a7(0x1be)][_0x24a0a7(0x18c)](_0x1b390c,_0x3dc7fe);}['_removeClearOtherTimer'](_0x1b696c){const _0x56d692=_0x28c265;if(this[_0x56d692(0x1be)][_0x56d692(0x16c)](_0x1b696c)){const _0x553585=this['_clearOtherTimers'][_0x56d692(0x256)](_0x1b696c);_0x553585&&window[_0x56d692(0xfa)](_0x553585),this['_clearOtherTimers'][_0x56d692(0x18c)](_0x1b696c,null);}}['_handleLeaveEvent'](_0x43d18e){const _0xe05c70=_0x28c265,{memberID:_0x4ba43c,unitIDs:_0x3f7270}=_0x43d18e;_0x3f7270[_0xe05c70(0x15e)](_0x283917=>{const _0x29f188=_0xe05c70;var _0x4896cd;const _0x5c494c=this[_0x29f188(0x2b0)][_0x29f188(0x256)](_0x283917);_0x5c494c&&(_0x5c494c[_0x29f188(0x220)](_0x4ba43c),(_0x4896cd=this[_0x29f188(0x1bb)](_0x283917))==null||_0x4896cd[_0x29f188(0x113)](_0x5c494c['size']===0x0?u[_0x29f188(0x144)][_0x29f188(0x315)]:u[_0x29f188(0x144)]['OTHER_CLIENTS_EDITING']));}),this[_0xe05c70(0x27c)](_0x4ba43c);}['_handleHeartbeatEvent'](_0x10cf91){const _0x54185c=_0x28c265;this[_0x54185c(0x257)](_0x10cf91[_0x54185c(0x272)]);}[_0x28c265(0x30f)](_0x19b63b){const _0x9d46fd=_0x28c265;localStorage[_0x9d46fd(0x2d7)](Le,JSON[_0x9d46fd(0x255)](_0x19b63b));}[_0x28c265(0x20a)](){const _0x2d913c=_0x28c265;this['_heartbeatTimer']=window[_0x2d913c(0x2cf)](()=>{const _0x4907be=_0x2d913c;this[_0x4907be(0x30f)]({'type':0x2,'memberID':this[_0x4907be(0x1e2)]});},Me);}['_ensureSubject'](_0x294f96){const _0x331f3a=_0x28c265;return this['_unitStatus'][_0x331f3a(0x16c)](_0x294f96)||this[_0x331f3a(0x129)][_0x331f3a(0x18c)](_0x294f96,new d[(_0x331f3a(0x2b2))](u['UnitStatus'][_0x331f3a(0x315)])),this[_0x331f3a(0x129)]['get'](_0x294f96);}}var Be=(_0x23ba82=>(_0x23ba82[_0x23ba82[_0x28c265(0x171)]=0x0]=_0x28c265(0x171),_0x23ba82[_0x23ba82['OK']=0x1]='OK',_0x23ba82[_0x23ba82[_0x28c265(0xd0)]=0x2]='INTERNAL_ERROR',_0x23ba82[_0x23ba82[_0x28c265(0x281)]=0x3]=_0x28c265(0x281),_0x23ba82[_0x23ba82[_0x28c265(0x128)]=0x4]='NOT_FOUND',_0x23ba82[_0x23ba82[_0x28c265(0x26d)]=0x5]=_0x28c265(0x26d),_0x23ba82[_0x23ba82['ALREADY_EXISTS']=0x6]=_0x28c265(0x305),_0x23ba82[_0x23ba82['INVALID_ARGUMENT']=0x7]=_0x28c265(0x28d),_0x23ba82[_0x23ba82[_0x28c265(0x196)]=0x8]=_0x28c265(0x196),_0x23ba82[_0x23ba82[_0x28c265(0x279)]=0x9]='COMPLETION_FINISHED',_0x23ba82[_0x23ba82[_0x28c265(0xd2)]=0xa]=_0x28c265(0xd2),_0x23ba82[_0x23ba82[_0x28c265(0x1f4)]=0x1389]=_0x28c265(0x1f4),_0x23ba82[_0x23ba82[_0x28c265(0x10f)]=0x1771]='SNAPSHOT_INVALID_SNAPSHOT',_0x23ba82[_0x23ba82['SNAPSHOT_HAS_BEEN_REMOVED']=0x1772]=_0x28c265(0x186),_0x23ba82[_0x23ba82[_0x28c265(0x2a5)]=0x1773]=_0x28c265(0x2a5),_0x23ba82[_0x23ba82[_0x28c265(0x26a)]=0x1b59]=_0x28c265(0x26a),_0x23ba82[_0x23ba82[_0x28c265(0x244)]=0x1b5a]=_0x28c265(0x244),_0x23ba82[_0x23ba82['APPLY_REVISION_CONFILICT']=0x1b5b]=_0x28c265(0x2dd),_0x23ba82[_0x23ba82['APPLY_PERMISSION_DENIED']=0x1b5c]=_0x28c265(0x1dc),_0x23ba82[_0x23ba82[_0x28c265(0x311)]=0x1b5d]='APPLY_DUPLICATED',_0x23ba82[_0x23ba82[_0x28c265(0x33c)]=0x1f41]=_0x28c265(0x33c),_0x23ba82[_0x23ba82[_0x28c265(0x19d)]=0x2329]=_0x28c265(0x19d),_0x23ba82[_0x23ba82[_0x28c265(0x121)]=0x232a]=_0x28c265(0x121),_0x23ba82[_0x23ba82[_0x28c265(0x188)]=0x232b]=_0x28c265(0x188),_0x23ba82[_0x23ba82[_0x28c265(0xf3)]=0x232c]=_0x28c265(0xf3),_0x23ba82[_0x23ba82['LICENSE_DISTRO_REJECTED']=0x232d]=_0x28c265(0xd6),_0x23ba82[_0x23ba82['YUUMI_UNABLE_LOAD_URL']=0x2711]=_0x28c265(0x267),_0x23ba82[_0x23ba82[_0x28c265(0x246)]=0x2712]='YUUMI_URL_COL_OUT_OF_RANGE',_0x23ba82[_0x23ba82[_0x28c265(0x326)]=0x2713]=_0x28c265(0x326),_0x23ba82[_0x23ba82[_0x28c265(0x14b)]=0x2714]=_0x28c265(0x14b),_0x23ba82[_0x23ba82[_0x28c265(0xe2)]=0x271a]=_0x28c265(0xe2),_0x23ba82[_0x23ba82[_0x28c265(0x1d2)]=0x271b]='YUUMI_ASYNCIO_CANCELLED',_0x23ba82[_0x23ba82['YUUMI_TABLE_NOT_FOUND_IN_UNIT']=0x271c]=_0x28c265(0x29b),_0x23ba82[_0x23ba82[_0x28c265(0x183)]=0x271d]=_0x28c265(0x183),_0x23ba82[_0x23ba82[_0x28c265(0x21c)]=0x271e]=_0x28c265(0x21c),_0x23ba82[_0x23ba82[_0x28c265(0x2bf)]=0x271f]=_0x28c265(0x2bf),_0x23ba82[_0x23ba82['PY_RUNTIME_SCRIPT_ERROR']=0x2af9]=_0x28c265(0x218),_0x23ba82[_0x23ba82[_0x28c265(0xff)]=0x2ee1]=_0x28c265(0xff),_0x23ba82[_0x23ba82[_0x28c265(0x23d)]=0x2ee2]='INVALID_INVITE_CODE',_0x23ba82[_0x23ba82['INVITE_CODE_REQUIRED']=0x2ee3]=_0x28c265(0x213),_0x23ba82[_0x23ba82[_0x28c265(0x277)]=0x2ee4]=_0x28c265(0x277),_0x23ba82[_0x23ba82[_0x28c265(0x111)]=0x2ee5]=_0x28c265(0x111),_0x23ba82[_0x23ba82['WECHAT_HAS_BEEN_BOUND']=0x32c9]=_0x28c265(0x115),_0x23ba82[_0x23ba82[_0x28c265(0x309)]=0x32ca]=_0x28c265(0x309),_0x23ba82[_0x23ba82[_0x28c265(0x308)]=0x32cb]='EMAIL_HAS_BEEN_BOUND',_0x23ba82[_0x23ba82[_0x28c265(0x173)]=-0x1]=_0x28c265(0x173),_0x23ba82))(Be||{}),ns=Object[_0x28c265(0x346)],rs=(_0x495fd3,_0x883e41,_0x1c8efa,_0x5f401d)=>{for(var _0x5a727f=_0x5f401d>0x1?void 0x0:_0x5f401d?ns(_0x883e41,_0x1c8efa):_0x883e41,_0x8888bb=_0x495fd3['length']-0x1,_0x42a8ee;_0x8888bb>=0x0;_0x8888bb--)(_0x42a8ee=_0x495fd3[_0x8888bb])&&(_0x5a727f=_0x42a8ee(_0x5a727f)||_0x5a727f);return _0x5a727f;},ue=(_0x6308b0,_0x2ae24a)=>(_0x4d3d6b,_0x237982)=>_0x2ae24a(_0x4d3d6b,_0x237982,_0x6308b0);exports[_0x28c265(0x206)]=class extends a['Disposable']{constructor(_0x5bdb93,_0x56375d,_0x195e0b){const _0x72ca4c=_0x28c265;super(),this[_0x72ca4c(0x297)]=_0x5bdb93,this[_0x72ca4c(0x142)]=_0x56375d,this['_configService']=_0x195e0b;}async['runOnServer'](_0x2ff70c,_0x487826,_0xe4fb87,..._0x41a9c2){const _0x1e631d=_0x28c265;var _0x1d7a70,_0x32dc9e,_0x5db51e,_0x83f73d;const _0x6a52b6=this[_0x1e631d(0x297)][_0x1e631d(0x28f)]();if(!_0x6a52b6)throw new Error(_0x1e631d(0xcc));const _0x509777=((_0x1d7a70=this['_configService'][_0x1e631d(0x10e)](u[_0x1e631d(0x1c5)]))!=null?_0x1d7a70:u[_0x1e631d(0x285)])+'/'+_0x2ff70c+'/run/'+_0x487826,_0x9de7b0=new URL(window[_0x1e631d(0xf6)][_0x1e631d(0x25d)]),_0x22a333={'scriptId':_0x2ff70c,'runId':(_0x32dc9e=_0x9de7b0[_0x1e631d(0x12d)][_0x1e631d(0x256)](_0x1e631d(0x245)))!=null?_0x32dc9e:'','function':_0x487826,'unitId':_0x6a52b6['getUnitId'](),'argsOfFunction':JSON[_0x1e631d(0x255)](_0x41a9c2),'invokeId':(_0x5db51e=_0xe4fb87['invokeId'])!=null?_0x5db51e:'','executionId':(_0x83f73d=_0xe4fb87[_0x1e631d(0x2a0)])!=null?_0x83f73d:''};try{const _0x42d4a8=await this[_0x1e631d(0x142)][_0x1e631d(0x275)](_0x509777,{'body':_0x22a333});return _0x42d4a8['body'][_0x1e631d(0x248)]&&_0x42d4a8['body']['error'][_0x1e631d(0x114)]!==Be['OK']?_0x1e631d(0x1fa):_0x42d4a8[_0x1e631d(0x10a)][_0x1e631d(0x2cb)];}catch{return _0x1e631d(0x1fa);}}},exports['RemoteUniscriptService']=rs([ue(0x0,a[_0x28c265(0x208)]),ue(0x1,a[_0x28c265(0x1b0)](G[_0x28c265(0x1fc)])),ue(0x2,a[_0x28c265(0x2f2)])],exports[_0x28c265(0x206)]),exports[_0x28c265(0xf7)]=xe,exports[_0x28c265(0x2c4)]=be,exports[_0x28c265(0x108)]=Pe,exports['WebBrowserSingleActiveUnitService']=is,exports['WebURLService']=je;