@univerjs-pro/collaboration-client-ui 0.8.1-nightly.202506161607 → 0.8.1-nightly.202506171607

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 _0x2fa518=_0x3677;(function(_0x280f10,_0x20eea7){const _0x36df42=_0x3677,_0x829f9c=_0x280f10();while(!![]){try{const _0x70a9d2=parseInt(_0x36df42(0x1d7))/0x1+-parseInt(_0x36df42(0x1cf))/0x2+-parseInt(_0x36df42(0x1cb))/0x3*(parseInt(_0x36df42(0x1d4))/0x4)+parseInt(_0x36df42(0x1cd))/0x5+parseInt(_0x36df42(0x1d6))/0x6*(parseInt(_0x36df42(0x1d5))/0x7)+-parseInt(_0x36df42(0x1d3))/0x8+parseInt(_0x36df42(0x1d0))/0x9*(parseInt(_0x36df42(0x1ce))/0xa);if(_0x70a9d2===_0x20eea7)break;else _0x829f9c['push'](_0x829f9c['shift']());}catch(_0x39922a){_0x829f9c['push'](_0x829f9c['shift']());}}}(_0x4301,0xa63c0));function _0x3677(_0x8fd173,_0x504816){const _0x430131=_0x4301();return _0x3677=function(_0x367736,_0x22b2a6){_0x367736=_0x367736-0x1ca;let _0x1851d0=_0x430131[_0x367736];return _0x1851d0;},_0x3677(_0x8fd173,_0x504816);}const t=require('@univerjs-pro/collaboration-client-ui'),e=require('@univerjs/core/facade');class c extends e[_0x2fa518(0x1cc)]{['runOnServer'](_0x3ffedd,_0x1b4388,..._0x4f82a1){const _0x5c933a=_0x2fa518;return this[_0x5c933a(0x1ca)][_0x5c933a(0x1d2)](t[_0x5c933a(0x1d1)])['runOnServer'](_0x3ffedd,_0x1b4388,{},..._0x4f82a1);}}function _0x4301(){const _0x5e25ce=['25384869WeSDhz','RemoteUniscriptService','get','8727520dFlifc','4RbwmMa','196ZXyAHU','57576SdiMXx','80975TGqYpT','extend','_injector','3452574RqvohU','FUniver','2107565PqsRmH','10kaIuAw','1338046dBTvIc'];_0x4301=function(){return _0x5e25ce;};return _0x4301();}e[_0x2fa518(0x1cc)][_0x2fa518(0x1d8)](c);
1
+ 'use strict';const _0x1aa2ca=_0xf197;(function(_0x29baa8,_0x4ad8fa){const _0xf8a973=_0xf197,_0x85c992=_0x29baa8();while(!![]){try{const _0x1059b8=-parseInt(_0xf8a973(0x73))/0x1*(parseInt(_0xf8a973(0x75))/0x2)+-parseInt(_0xf8a973(0x7a))/0x3*(-parseInt(_0xf8a973(0x72))/0x4)+-parseInt(_0xf8a973(0x74))/0x5*(parseInt(_0xf8a973(0x7c))/0x6)+-parseInt(_0xf8a973(0x7b))/0x7+parseInt(_0xf8a973(0x6e))/0x8*(-parseInt(_0xf8a973(0x70))/0x9)+-parseInt(_0xf8a973(0x77))/0xa+parseInt(_0xf8a973(0x79))/0xb*(parseInt(_0xf8a973(0x6d))/0xc);if(_0x1059b8===_0x4ad8fa)break;else _0x85c992['push'](_0x85c992['shift']());}catch(_0x43e562){_0x85c992['push'](_0x85c992['shift']());}}}(_0x4dfd,0x6b6bf));function _0xf197(_0x502b18,_0x15d40d){const _0x4dfd66=_0x4dfd();return _0xf197=function(_0xf197eb,_0x93d4f5){_0xf197eb=_0xf197eb-0x6d;let _0xbaeaa9=_0x4dfd66[_0xf197eb];return _0xbaeaa9;},_0xf197(_0x502b18,_0x15d40d);}const t=require(_0x1aa2ca(0x6f)),e=require(_0x1aa2ca(0x7f));class c extends e[_0x1aa2ca(0x76)]{[_0x1aa2ca(0x71)](_0xed90f4,_0x2d0e6b,..._0x49f6f0){const _0x373d15=_0x1aa2ca;return this[_0x373d15(0x80)][_0x373d15(0x78)](t[_0x373d15(0x7e)])['runOnServer'](_0xed90f4,_0x2d0e6b,{},..._0x49f6f0);}}function _0x4dfd(){const _0x32ce70=['runOnServer','1793608zDIJFh','119517TcrLNX','55wDdyeK','14PGutoa','FUniver','432910YtRmWE','get','12868724ogaDub','3IpZZHX','2617797zvJqWE','166554PhBgiz','extend','RemoteUniscriptService','@univerjs/core/facade','_injector','24qqakVt','8gdBJWV','@univerjs-pro/collaboration-client-ui','7100469GqsIze'];_0x4dfd=function(){return _0x32ce70;};return _0x4dfd();}e[_0x1aa2ca(0x76)][_0x1aa2ca(0x7d)](c);
package/lib/cjs/index.js CHANGED
@@ -1 +1 @@
1
- 'use strict';const _0x2af163=_0x293b;(function(_0x3fc7a7,_0x3cee23){const _0x5126fe=_0x293b,_0x28355d=_0x3fc7a7();while(!![]){try{const _0x106ba8=-parseInt(_0x5126fe(0x3a8))/0x1+-parseInt(_0x5126fe(0x229))/0x2*(-parseInt(_0x5126fe(0x1cf))/0x3)+-parseInt(_0x5126fe(0x20e))/0x4+parseInt(_0x5126fe(0x2ca))/0x5+-parseInt(_0x5126fe(0x388))/0x6*(-parseInt(_0x5126fe(0x341))/0x7)+-parseInt(_0x5126fe(0x1c1))/0x8+parseInt(_0x5126fe(0x179))/0x9;if(_0x106ba8===_0x3cee23)break;else _0x28355d['push'](_0x28355d['shift']());}catch(_0x2dc6d2){_0x28355d['push'](_0x28355d['shift']());}}}(_0x401a,0xd420e));var Ve=Object['defineProperty'],Xe=(_0x46d7d9,_0x335a4b,_0x4c5d0c)=>_0x335a4b in _0x46d7d9?Ve(_0x46d7d9,_0x335a4b,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x4c5d0c}):_0x46d7d9[_0x335a4b]=_0x4c5d0c,h=(_0x30916a,_0xeba42c,_0x55cb48)=>Xe(_0x30916a,typeof _0xeba42c!=_0x2af163(0x25e)?_0xeba42c+'':_0xeba42c,_0x55cb48);Object[_0x2af163(0x362)](exports,Symbol['toStringTag'],{'value':'Module'});const u=require(_0x2af163(0x2ae)),a=require(_0x2af163(0x389)),p=require(_0x2af163(0x163)),G=require('@univerjs/network'),b=require(_0x2af163(0x33c)),Ge=require(_0x2af163(0x158)),d=require('rxjs'),Y=require(_0x2af163(0x151)),m=require('@univerjs-pro/collaboration'),Ee=require(_0x2af163(0x37c)),g=require(_0x2af163(0x288)),$=require(_0x2af163(0x3a9)),X=require('@univerjs/sheets-ui'),w=require('react/jsx-runtime'),T=require(_0x2af163(0x315)),D=require(_0x2af163(0x1bb)),M=require(_0x2af163(0x385)),Ke=require('@univerjs/rpc');var qe=Object['getOwnPropertyDescriptor'],ze=(_0x28b079,_0x5d296b,_0x1accab,_0x1a7f54)=>{for(var _0x4c5aef=_0x1a7f54>0x1?void 0x0:_0x1a7f54?qe(_0x5d296b,_0x1accab):_0x5d296b,_0x32bcd1=_0x28b079['length']-0x1,_0x4a086d;_0x32bcd1>=0x0;_0x32bcd1--)(_0x4a086d=_0x28b079[_0x32bcd1])&&(_0x4c5aef=_0x4a086d(_0x4c5aef)||_0x4c5aef);return _0x4c5aef;},Te=(_0x418b29,_0x1de344)=>(_0x360af5,_0x47c622)=>_0x1de344(_0x360af5,_0x47c622,_0x418b29);let de=class extends a[_0x2af163(0x17a)]{constructor(_0x4f2121,_0x2bf588){const _0x29942d=_0x2af163;super(),this['_docClipboardService']=_0x4f2121,this[_0x29942d(0x1b4)]=_0x2bf588,this[_0x29942d(0x2bf)]();}['_init'](){const _0x133c6f=_0x2af163,_0x4b5376=this;this[_0x133c6f(0x1f8)](this[_0x133c6f(0x22c)][_0x133c6f(0x21f)]({'onBeforePasteImage':async _0x433af0=>{const _0x342ec8=_0x133c6f,_0xd483a2=await _0x4b5376[_0x342ec8(0x1b4)][_0x342ec8(0x18e)](_0x433af0);return _0xd483a2?{'source':_0xd483a2[_0x342ec8(0x331)],'imageSourceType':_0xd483a2['imageSourceType']}:null;}}));}};de=ze([Te(0x0,b[_0x2af163(0x1f2)]),Te(0x1,Ge['IImageIoService'])],de);const Oe=[_0x2af163(0x358),'jiqing.500','green.600',_0x2af163(0x156),_0x2af163(0x1fe),'yellow.400'];class me extends a[_0x2af163(0x1e8)]{constructor(){const _0x5d34d6=_0x2af163;super(...arguments),h(this,_0x5d34d6(0x2eb),new Map()),h(this,'_colorIndex',0x0);}[_0x2af163(0x188)](_0x136da0){const _0x1d8077=_0x2af163;if(this[_0x1d8077(0x2eb)]['has'](_0x136da0))return this['_assignedColors']['get'](_0x136da0);const _0x1f21cb=Oe[this[_0x1d8077(0x297)]];return this[_0x1d8077(0x297)]=(this[_0x1d8077(0x297)]+0x1)%Oe[_0x1d8077(0x2de)],this[_0x1d8077(0x2eb)]['set'](_0x136da0,_0x1f21cb),_0x1f21cb;}}function we(_0x1fa455){const _0x31296b=_0x2af163;let _0x4ce9df='';for(const _0x1550df of _0x1fa455){const {startOffset:_0x1aa89f,endOffset:_0x40d29a,isActive:_0x1cb440,rangeType:_0x61c7ab,segmentId:_0xc2a394,segmentPage:_0x5137c1}=_0x1550df;_0x4ce9df[_0x31296b(0x2de)]&&(_0x4ce9df+=','),_0x4ce9df+=_0x1aa89f+':'+_0x40d29a+':'+(_0x1cb440?'1':'0')+':'+_0x61c7ab+':'+_0xc2a394+':'+_0x5137c1;}return _0x4ce9df;}function Je(_0x1b92f9){const _0x3b19a3=_0x2af163,_0x2b3bb4=_0x1b92f9[_0x3b19a3(0x1ba)](','),_0x4b2119=[];for(const _0x12cb6c of _0x2b3bb4){const [_0x27391e,_0x40dda1,_0x38e4e9,_0x314e06,_0x293b9a,_0x36e5c8]=_0x12cb6c['split'](':');_0x4b2119[_0x3b19a3(0x314)]({'startOffset':Number(_0x27391e),'endOffset':Number(_0x40dda1),'collapsed':_0x27391e===_0x40dda1,'isActive':_0x38e4e9==='1','rangeType':_0x314e06===a[_0x3b19a3(0x1bf)][_0x3b19a3(0x323)]?a[_0x3b19a3(0x1bf)][_0x3b19a3(0x323)]:a[_0x3b19a3(0x1bf)][_0x3b19a3(0x26c)],'segmentId':typeof _0x293b9a==_0x3b19a3(0x2d2)?String(_0x293b9a):'','segmentPage':Number(_0x36e5c8!=null?_0x36e5c8:-0x1)});}return _0x4b2119['some'](_0x209a0a=>_0x209a0a[_0x3b19a3(0x2ba)])||(_0x4b2119[0x0][_0x3b19a3(0x2ba)]=!0x0),_0x4b2119;}class Ce extends a[_0x2af163(0x17a)]{constructor(){const _0x54ca76=_0x2af163;super(...arguments),h(this,_0x54ca76(0x347),new d[(_0x54ca76(0x201))](null)),h(this,_0x54ca76(0x165),this[_0x54ca76(0x347)][_0x54ca76(0x25f)]());}[_0x2af163(0x372)](_0x29099f){const _0x549db7=_0x2af163,{unitID:_0x3a7de9,memberID:_0x1d3583,textRanges:_0x343e09}=_0x29099f,_0x285c7c=we(_0x343e09);if(_0x285c7c==='')return;const _0x5b381b={'unitID':_0x3a7de9,'memberID':_0x1d3583,'selection':_0x285c7c};this['_collabCursorState$'][_0x549db7(0x355)](_0x5b381b);}}var Ze=Object['getOwnPropertyDescriptor'],Qe=(_0xe476d3,_0x36dafd,_0x5f127e,_0x1ca1a5)=>{const _0x30065d=_0x2af163;for(var _0x5cf459=_0x1ca1a5>0x1?void 0x0:_0x1ca1a5?Ze(_0x36dafd,_0x5f127e):_0x36dafd,_0x25af44=_0xe476d3[_0x30065d(0x2de)]-0x1,_0x39bd7b;_0x25af44>=0x0;_0x25af44--)(_0x39bd7b=_0xe476d3[_0x25af44])&&(_0x5cf459=_0x39bd7b(_0x5cf459)||_0x5cf459);return _0x5cf459;},L=(_0x14386a,_0x2ade1a)=>(_0x4eae6e,_0x253cdf)=>_0x2ade1a(_0x4eae6e,_0x253cdf,_0x14386a);const et=0x12c,tt=0x64;let fe=class extends a[_0x2af163(0x17a)]{constructor(_0x1f3579,_0x5dab00,_0x1e7c51,_0x45dfe3,_0x45c571,_0x31f30d,_0x5c87a8,_0x3f422c,_0x1f5931){const _0x3108f5=_0x2af163;super(),h(this,'_online',!0x1),h(this,_0x3108f5(0x2bf),!0x1),h(this,_0x3108f5(0x32a),new d[(_0x3108f5(0x201))](new Map())),h(this,_0x3108f5(0x3b5),this[_0x3108f5(0x32a)][_0x3108f5(0x25f)]()),h(this,_0x3108f5(0x1fb),new d[(_0x3108f5(0x201))]([])),h(this,'roomMembers$',this[_0x3108f5(0x1fb)][_0x3108f5(0x26a)](d[_0x3108f5(0x1c2)](et))),h(this,'_updateLocalCursor',a[_0x3108f5(0x2bc)](_0x54699d=>{const _0x2bfb09=_0x3108f5,_0x5b5b3c={'eventID':m[_0x2bfb09(0x1a7)]['UPDATE_CURSOR'],'data':{'unitID':this['unitID'],'memberID':this['_session'][_0x2bfb09(0x377)](),'selection':we(_0x54699d)}};this[_0x2bfb09(0x1c4)][_0x2bfb09(0x2da)](_0x5b5b3c,this[_0x2bfb09(0x2a5)]);},tt)),(this[_0x3108f5(0x2a5)]=_0x1f3579,this[_0x3108f5(0x1c4)]=_0x5dab00,this[_0x3108f5(0x268)]=_0x1e7c51,this[_0x3108f5(0x3b4)]=_0x45dfe3,this[_0x3108f5(0x336)]=_0x45c571,this[_0x3108f5(0x3ab)]=_0x31f30d,this[_0x3108f5(0x39c)]=_0x5c87a8,this[_0x3108f5(0x2d0)]=_0x3f422c,this[_0x3108f5(0x236)]=_0x1f5931);}get[_0x2af163(0x253)](){const _0x1398ee=_0x2af163;return this[_0x1398ee(0x32a)]['getValue']();}get['roomMembers'](){const _0x4829ab=_0x2af163;return this['_roomMembers$'][_0x4829ab(0x38f)]();}[_0x2af163(0x176)](){const _0x4af433=_0x2af163;super[_0x4af433(0x176)](),this['_cursorInfo$'][_0x4af433(0x355)](new Map()),this['_cursorInfo$']['complete'](),this[_0x4af433(0x1fb)]['next']([]),this[_0x4af433(0x1fb)][_0x4af433(0x18f)]();}[_0x2af163(0x257)](){const _0x715d01=_0x2af163;this[_0x715d01(0x2bf)]||(this[_0x715d01(0x2bf)]=!0x0,this[_0x715d01(0x1c4)]['sessionStatus$'][_0x715d01(0x26a)](d['takeUntil'](this[_0x715d01(0x17b)]))['subscribe'](_0x503b5f=>{const _0x10d546=_0x715d01;_0x503b5f===u[_0x10d546(0x23c)][_0x10d546(0x1c6)]?this[_0x10d546(0x261)]():this['_toggleOffline']();}),this[_0x715d01(0x1c4)][_0x715d01(0x378)]['pipe'](d[_0x715d01(0x35c)](this[_0x715d01(0x17b)]))['subscribe'](_0x5d9a1e=>{const _0x220f5c=_0x715d01,_0x57448d=_0x5d9a1e[_0x220f5c(0x3a3)];_0x57448d===m[_0x220f5c(0x1a7)][_0x220f5c(0x3c3)]&&this[_0x220f5c(0x1b2)](_0x5d9a1e),_0x57448d===m[_0x220f5c(0x1a7)]['USERS_LEAVE']&&this[_0x220f5c(0x398)](_0x5d9a1e);}),this['disposeWithMe'](this[_0x715d01(0x236)][_0x715d01(0x35e)](_0x4cb1ef=>{const _0x110e02=_0x715d01,_0x2e3bea=_0x4cb1ef['params'];_0x2e3bea!=null&&this[_0x110e02(0x2a3)]&&_0x4cb1ef['id']===Y['SetTextSelectionsOperation']['id']&&_0x2e3bea['unitId']===this[_0x110e02(0x2a5)]&&_0x2e3bea[_0x110e02(0x2b0)]===!0x1&&_0x2e3bea['ranges']['length']>0x0&&this['_updateLocalCursor'](_0x2e3bea[_0x110e02(0x2df)]);})),this[_0x715d01(0x3ab)][_0x715d01(0x165)][_0x715d01(0x26a)](d[_0x715d01(0x35c)](this[_0x715d01(0x17b)]))['subscribe'](_0x11bb5c=>{const _0x48c2f6=_0x715d01;if((_0x11bb5c==null?void 0x0:_0x11bb5c[_0x48c2f6(0x2a5)])!==this[_0x48c2f6(0x2a5)])return;const _0x9b39f6={'eventID':m[_0x48c2f6(0x1a7)][_0x48c2f6(0x3c3)],'data':_0x11bb5c};this[_0x48c2f6(0x1b2)](_0x9b39f6);}),this[_0x715d01(0x1f8)](this[_0x715d01(0x236)][_0x715d01(0x35e)](_0x5ab737=>{const _0x58ed55=_0x715d01;if(_0x5ab737[_0x58ed55(0x19d)]==null)return;const _0x5a3d94=_0x5ab737[_0x58ed55(0x19d)];if(_0x5ab737['id']!==Y[_0x58ed55(0x171)]['id']||_0x5a3d94[_0x58ed55(0x25c)]!==this[_0x58ed55(0x2a5)])return;const _0x14371b={'id':'doc.mutation.rich-text-editing','params':_0x5a3d94},_0x5d0a75=this[_0x58ed55(0x253)];for(const [_0x518290,_0x14209b]of _0x5d0a75){const _0x5b1360={'id':_0x58ed55(0x2a9),'params':{'unitId':this[_0x58ed55(0x2a5)],'actions':null,'textRanges':_0x14209b[_0x58ed55(0x2df)]}},_0x5bb4de=this[_0x58ed55(0x39c)][_0x58ed55(0x2ce)](_0x14371b,_0x5b1360,!0x1);if(m['isTransformMutationFailure'](_0x5bb4de))throw _0x5bb4de[_0x58ed55(0x23e)];_0x5d0a75[_0x58ed55(0x38c)](_0x518290,{..._0x14209b,'ranges':_0x5bb4de[_0x58ed55(0x263)]['params'][_0x58ed55(0x206)]});}queueMicrotask(()=>{this['_cursorInfo$']['next'](_0x5d0a75);});})));}[_0x2af163(0x1b2)](_0x48d3cd){const _0x51c177=_0x2af163;var _0x5eedf6,_0x1be118;const {memberID:_0x519e5f,selection:_0x498f36}=_0x48d3cd[_0x51c177(0x375)],_0x1f7a4e=Je(_0x498f36),_0xbae4db=(_0x1be118=(_0x5eedf6=this[_0x51c177(0x336)][_0x51c177(0x231)](this[_0x51c177(0x2a5)],_0x519e5f))==null?void 0x0:_0x5eedf6[_0x51c177(0x17c)])!=null?_0x1be118:'Unknown\x20user',_0xff47ed={'color':this[_0x51c177(0x3b4)][_0x51c177(0x188)](_0x519e5f),'name':_0xbae4db,'ranges':_0x1f7a4e},_0x53f99b=this['cursorInfo'];_0x53f99b['set'](_0x519e5f,_0xff47ed),this['_cursorInfo$'][_0x51c177(0x355)](_0x53f99b);}['_onCursorDelete'](_0x141799){const _0x202fa7=_0x2af163,{memberID:_0x5790c0}=_0x141799[_0x202fa7(0x375)],_0x588350=this['cursorInfo'];_0x588350[_0x202fa7(0x1dd)](_0x5790c0),this[_0x202fa7(0x32a)][_0x202fa7(0x355)](_0x588350);}[_0x2af163(0x261)](){const _0x4e804f=_0x2af163;var _0x318531;if(this['_online']=!0x0,((_0x318531=this[_0x4e804f(0x2d0)][_0x4e804f(0x283)]())==null?void 0x0:_0x318531[_0x4e804f(0x2fa)]())!==this[_0x4e804f(0x2a5)])return;const _0x25685a=this[_0x4e804f(0x268)][_0x4e804f(0x18c)](Y[_0x4e804f(0x216)])[_0x4e804f(0x1b9)]();Array[_0x4e804f(0x2ad)](_0x25685a)&&_0x25685a[_0x4e804f(0x2de)]>0x0&&this[_0x4e804f(0x1bc)](_0x25685a);}[_0x2af163(0x200)](){const _0x11157e=_0x2af163;this[_0x11157e(0x2a3)]=!0x1;}};fe=Qe([L(0x2,a[_0x2af163(0x30b)](a[_0x2af163(0x2bb)])),L(0x3,a[_0x2af163(0x30b)](me)),L(0x4,a[_0x2af163(0x30b)](u[_0x2af163(0x273)])),L(0x5,a['Inject'](Ce)),L(0x6,m[_0x2af163(0x1e6)]),L(0x7,a[_0x2af163(0x3ad)]),L(0x8,a[_0x2af163(0x321)])],fe);var st=Object['getOwnPropertyDescriptor'],it=(_0x559885,_0x51adaf,_0x33fc79,_0x532078)=>{const _0x19a61e=_0x2af163;for(var _0x3ce04f=_0x532078>0x1?void 0x0:_0x532078?st(_0x51adaf,_0x33fc79):_0x51adaf,_0x1e18d2=_0x559885[_0x19a61e(0x2de)]-0x1,_0xea9016;_0x1e18d2>=0x0;_0x1e18d2--)(_0xea9016=_0x559885[_0x1e18d2])&&(_0x3ce04f=_0xea9016(_0x3ce04f)||_0x3ce04f);return _0x3ce04f;},A=(_0x4c1734,_0x320b4e)=>(_0x1cdb51,_0x8deca3)=>_0x320b4e(_0x1cdb51,_0x8deca3,_0x4c1734);const nt=0x12c,rt=0x64,ot=()=>{let _0x10ec2d=[],_0x1d03ef=!0x1;return _0x311414=>{const _0x29f9e5=_0x293b;_0x10ec2d[_0x29f9e5(0x314)](_0x311414),_0x1d03ef||(_0x1d03ef=!0x0,setTimeout(()=>{const _0x110e78=_0x29f9e5;_0x10ec2d[_0x110e78(0x237)](_0x73f9cf=>_0x73f9cf()),_0x10ec2d=[],_0x1d03ef=!0x1;}));};};let Se=class extends a[_0x2af163(0x17a)]{constructor(_0x10508d,_0x16ee9c,_0x176a6d,_0x367383,_0x19d888,_0x204911,_0x3251c6,_0x1b0ddf){const _0x20891f=_0x2af163;super(),h(this,_0x20891f(0x2a3),!0x1),h(this,_0x20891f(0x2bf),!0x1),h(this,_0x20891f(0x32a),new d[(_0x20891f(0x201))](new Map())),h(this,_0x20891f(0x3b5),this[_0x20891f(0x32a)][_0x20891f(0x25f)]()),h(this,'_roomMembers$',new d[(_0x20891f(0x201))]([])),h(this,_0x20891f(0x24a),this[_0x20891f(0x1fb)][_0x20891f(0x26a)](d['debounceTime'](nt))),h(this,_0x20891f(0x1bc),a[_0x20891f(0x2bc)]((_0x3da8e4,_0x178e47)=>{const _0x148647=_0x20891f,_0x32d44c={'eventID':m['CollaborationEvent'][_0x148647(0x3c3)],'data':{'unitID':this[_0x148647(0x2a5)],'memberID':this[_0x148647(0x1c4)][_0x148647(0x377)](),'selection':Ee[_0x148647(0x37a)](_0x3da8e4,_0x178e47[_0x148647(0x186)])}};this[_0x148647(0x1c4)][_0x148647(0x2da)](_0x32d44c,this[_0x148647(0x2a5)]);},rt)),(this['unitID']=_0x10508d,this['_session']=_0x16ee9c,this[_0x20891f(0x268)]=_0x176a6d,this[_0x20891f(0x3b4)]=_0x367383,this[_0x20891f(0x336)]=_0x19d888,this['_univerInstanceService']=_0x204911,this[_0x20891f(0x236)]=_0x3251c6,this[_0x20891f(0x32b)]=_0x1b0ddf);}get[_0x2af163(0x253)](){const _0x5f191c=_0x2af163;return this[_0x5f191c(0x32a)][_0x5f191c(0x38f)]();}get[_0x2af163(0x3aa)](){const _0x4552b1=_0x2af163;return this[_0x4552b1(0x1fb)]['getValue']();}[_0x2af163(0x176)](){const _0x11311a=_0x2af163;super['dispose'](),this[_0x11311a(0x32a)][_0x11311a(0x355)](new Map()),this['_cursorInfo$'][_0x11311a(0x18f)](),this[_0x11311a(0x1fb)]['next']([]),this[_0x11311a(0x1fb)][_0x11311a(0x18f)]();}[_0x2af163(0x257)](){const _0x4ed0d1=_0x2af163;this[_0x4ed0d1(0x2bf)]||(this[_0x4ed0d1(0x2bf)]=!0x0,this[_0x4ed0d1(0x1c4)]['sessionStatus$'][_0x4ed0d1(0x26a)](d[_0x4ed0d1(0x35c)](this['dispose$']))[_0x4ed0d1(0x2fe)](_0x384b6f=>{const _0x4bf417=_0x4ed0d1;_0x384b6f===u[_0x4bf417(0x23c)]['ONLINE']?this[_0x4bf417(0x261)]():this[_0x4bf417(0x200)]();}),this['_session'][_0x4ed0d1(0x378)][_0x4ed0d1(0x26a)](d[_0x4ed0d1(0x35c)](this[_0x4ed0d1(0x17b)]))[_0x4ed0d1(0x2fe)](_0x33ee09=>{const _0x1a7fa8=_0x4ed0d1,_0x1bc7eb=_0x33ee09[_0x1a7fa8(0x3a3)];_0x1bc7eb===m[_0x1a7fa8(0x1a7)]['UPDATE_CURSOR']&&this['_onCursorUpdate'](_0x33ee09),_0x1bc7eb===m[_0x1a7fa8(0x1a7)][_0x1a7fa8(0x38e)]&&this['_onCursorDelete'](_0x33ee09);}),this[_0x4ed0d1(0x38b)](),this[_0x4ed0d1(0x1f8)](this['_commandService'][_0x4ed0d1(0x35e)](_0x3e4a6c=>{const _0x3a6987=_0x4ed0d1;if(this['_online']&&_0x3e4a6c['id']===g['SetSelectionsOperation']['id']&&_0x3e4a6c[_0x3a6987(0x19d)]['unitId']===this[_0x3a6987(0x2a5)]){const _0x737558=_0x3e4a6c['params'];this[_0x3a6987(0x1bc)](_0x737558['subUnitId'],_0x737558[_0x3a6987(0x2f4)][0x0]);}})));}[_0x2af163(0x1b2)](_0xb67688){const _0x3ff0c8=_0x2af163;var _0x5ce75a,_0x144f6f;const {memberID:_0x13a939,selection:_0x39320c}=_0xb67688['data'],{sheetName:_0x2c75d5,range:_0x1d9d12}=Ee[_0x3ff0c8(0x2b4)](_0x39320c),_0x2c2ff3={'name':(_0x144f6f=(_0x5ce75a=this['_memberService']['getMember'](this[_0x3ff0c8(0x2a5)],_0x13a939))==null?void 0x0:_0x5ce75a['name'])!=null?_0x144f6f:_0x3ff0c8(0x348),'range':this[_0x3ff0c8(0x28a)](_0x2c75d5,_0x1d9d12),'sheetID':_0x2c75d5,'color':this['_colorAssignService']['assignAColorForMemberID'](_0x13a939),'selection':_0x39320c},_0x3d7c00=this[_0x3ff0c8(0x253)];_0x3d7c00[_0x3ff0c8(0x38c)](_0x13a939,_0x2c2ff3),this[_0x3ff0c8(0x32a)][_0x3ff0c8(0x355)](_0x3d7c00);}['_onCursorDelete'](_0x11a62e){const _0x2345d8=_0x2af163,{memberID:_0x4c50b6}=_0x11a62e[_0x2345d8(0x375)],_0x5502f2=this['cursorInfo'];_0x5502f2[_0x2345d8(0x1dd)](_0x4c50b6),this[_0x2345d8(0x32a)][_0x2345d8(0x355)](_0x5502f2);}[_0x2af163(0x28a)](_0x24efcc,_0x18e2bd){const _0xee4886=_0x2af163;var _0x4c1cbd,_0x28b653;const _0x48a492=(_0x28b653=(_0x4c1cbd=this[_0xee4886(0x2d0)][_0xee4886(0x26e)](this[_0xee4886(0x2a5)]))==null?void 0x0:_0x4c1cbd['getSheetBySheetId'](_0x24efcc))==null?void 0x0:_0x28b653[_0xee4886(0x157)]();return(_0x48a492==null?void 0x0:_0x48a492[_0xee4886(0x243)](_0x14cc02=>a[_0xee4886(0x217)][_0xee4886(0x1d8)](_0x14cc02,_0x18e2bd)))||_0x18e2bd;}[_0x2af163(0x38b)](){const _0x43d5c6=_0x2af163,_0x5c9bdd=new a['DisposableCollection'](),_0x229f3f=ot(),_0x2e8be6=()=>{const _0x399f86=_0x293b;_0x5c9bdd[_0x399f86(0x176)]();const _0x15addf=(_0x202052,_0x2edb22,_0x21894c,_0x362f13)=>{const _0x226f38=_0x399f86;let _0x3d2410=[];switch(_0x202052['id']){case g['EffectRefRangId'][_0x226f38(0x245)]:{_0x3d2410=g[_0x226f38(0x2e1)](_0x202052,_0x362f13);break;}case g[_0x226f38(0x35d)][_0x226f38(0x2be)]:{_0x3d2410=g[_0x226f38(0x208)](_0x202052,_0x362f13);break;}case g[_0x226f38(0x35d)][_0x226f38(0x26d)]:{_0x3d2410=g[_0x226f38(0x2c6)](_0x202052,_0x362f13);break;}case g[_0x226f38(0x35d)][_0x226f38(0x353)]:{_0x3d2410=g[_0x226f38(0x29c)](_0x202052,_0x362f13);break;}case g[_0x226f38(0x35d)]['InsertRangeMoveRightCommandId']:{_0x3d2410=g['handleInsertRangeMoveRight'](_0x202052,_0x362f13);break;}case g[_0x226f38(0x35d)]['InsertRowCommandId']:{_0x3d2410=g['handleInsertRow'](_0x202052,_0x362f13);break;}case g['EffectRefRangId'][_0x226f38(0x152)]:{_0x3d2410=g[_0x226f38(0x344)](_0x202052,_0x362f13);break;}case g[_0x226f38(0x35d)]['RemoveColCommandId']:{_0x3d2410=g['handleIRemoveCol'](_0x202052,_0x362f13);break;}case g[_0x226f38(0x35d)][_0x226f38(0x1dc)]:{_0x3d2410=g[_0x226f38(0x15a)](_0x202052,_0x362f13);break;}}const _0x49039b=g[_0x226f38(0x36d)](_0x3d2410,_0x362f13),_0x1e8cba=this[_0x226f38(0x253)][_0x226f38(0x18c)](_0x2edb22);if(_0x1e8cba&&_0x49039b){const _0x298bc4={..._0x1e8cba,'range':_0x49039b};this[_0x226f38(0x253)]['set'](_0x2edb22,_0x298bc4),_0x229f3f(()=>{const _0x121f07=_0x226f38,_0x5a09de=this[_0x121f07(0x32b)][_0x121f07(0x299)](_0x49039b,_0x56da9d=>(_0x5a09de['dispose'](),_0x15addf(_0x56da9d,_0x2edb22,_0x21894c,_0x49039b)));_0x5c9bdd[_0x121f07(0x199)](_0x5a09de);});}return{'redos':[],'undos':[]};};this[_0x399f86(0x253)][_0x399f86(0x237)]((_0x19ae80,_0x5edc5c)=>{const _0x6c3be9=_0x399f86,{range:_0x319ff2,sheetID:_0x5804c5}=_0x19ae80,_0x45e758=this[_0x6c3be9(0x32b)][_0x6c3be9(0x299)](_0x319ff2,_0x3ff0da=>(_0x45e758[_0x6c3be9(0x176)](),_0x15addf(_0x3ff0da,_0x5edc5c,_0x5804c5,_0x319ff2)));_0x5c9bdd[_0x6c3be9(0x199)](_0x45e758);});};this[_0x43d5c6(0x1f8)](a['toDisposable'](this[_0x43d5c6(0x32a)][_0x43d5c6(0x2fe)](()=>{_0x2e8be6();})));}[_0x2af163(0x261)](){const _0x12e982=_0x2af163;var _0x298f8c,_0x26d8ae;if(this[_0x12e982(0x2a3)]=!0x0,((_0x298f8c=this[_0x12e982(0x2d0)][_0x12e982(0x283)]())==null?void 0x0:_0x298f8c[_0x12e982(0x2fa)]())!==this[_0x12e982(0x2a5)])return;const _0x420ca7=(_0x26d8ae=this[_0x12e982(0x268)][_0x12e982(0x18c)](g[_0x12e982(0x2e5)])['getCurrentSelections']())==null?void 0x0:_0x26d8ae[0x0],_0x4ee661=this['_univerInstanceService'][_0x12e982(0x2f0)](a[_0x12e982(0x373)][_0x12e982(0x23a)])[_0x12e982(0x338)]();_0x420ca7&&_0x4ee661&&this[_0x12e982(0x1bc)](_0x4ee661['getSheetId'](),_0x420ca7);}[_0x2af163(0x200)](){const _0x3da8e7=_0x2af163;this[_0x3da8e7(0x2a3)]=!0x1;}};Se=it([A(0x2,a[_0x2af163(0x30b)](a['Injector'])),A(0x3,a['Inject'](me)),A(0x4,a['Inject'](u[_0x2af163(0x273)])),A(0x5,a['IUniverInstanceService']),A(0x6,a['ICommandService']),A(0x7,a[_0x2af163(0x30b)](g[_0x2af163(0x211)]))],Se);var at=Object[_0x2af163(0x330)],ct=(_0x88103e,_0x2c7902,_0x5c67b1,_0x58bc7c)=>{for(var _0x4894c8=_0x58bc7c>0x1?void 0x0:_0x58bc7c?at(_0x2c7902,_0x5c67b1):_0x2c7902,_0x233baf=_0x88103e['length']-0x1,_0x5c6a6a;_0x233baf>=0x0;_0x233baf--)(_0x5c6a6a=_0x88103e[_0x233baf])&&(_0x4894c8=_0x5c6a6a(_0x4894c8)||_0x4894c8);return _0x4894c8;},ie=(_0x115ab1,_0x4c2dde)=>(_0x3eac13,_0x2f82de)=>_0x4c2dde(_0x3eac13,_0x2f82de,_0x115ab1);let x=class extends a['RxDisposable']{constructor(_0x5b9d70,_0xced5c2,_0x2e0469){const _0x262569=_0x2af163;super(),h(this,_0x262569(0x346),new Map()),h(this,_0x262569(0x294),new d[(_0x262569(0x25d))]()),(this[_0x262569(0x2d0)]=_0x5b9d70,this['_injector']=_0xced5c2,this[_0x262569(0x27d)]=_0x2e0469,this['_init']());}[_0x2af163(0x176)](){const _0x1a9722=_0x2af163;super[_0x1a9722(0x176)](),this['_entityInit$'][_0x1a9722(0x18f)](),this[_0x1a9722(0x346)]['forEach'](_0x235770=>_0x235770[_0x1a9722(0x176)]());}[_0x2af163(0x185)](_0x2cd21d){const _0x34f890=_0x2af163;return this[_0x34f890(0x346)][_0x34f890(0x2cd)](_0x2cd21d)?this['_entities'][_0x34f890(0x18c)](_0x2cd21d)[_0x34f890(0x3b5)]:this[_0x34f890(0x294)][_0x34f890(0x26a)](d[_0x34f890(0x3ba)](_0x12de90=>_0x12de90[_0x34f890(0x2a5)]===_0x2cd21d),d['switchMap'](_0x39dfbf=>_0x39dfbf[_0x34f890(0x3b5)]));}['_init'](){const _0x2cab26=_0x2af163;this[_0x2cab26(0x2d0)][_0x2cab26(0x212)](a[_0x2cab26(0x373)]['UNIVER_SHEET'])[_0x2cab26(0x26a)](d[_0x2cab26(0x35c)](this[_0x2cab26(0x17b)]))[_0x2cab26(0x2fe)](async _0x3e1f3f=>{const _0x4f3d8f=_0x2cab26,_0x4965ad=_0x3e1f3f[_0x4f3d8f(0x2fa)](),_0x494ddb=await this['_startSheetCollabCursor'](_0x4965ad);this[_0x4f3d8f(0x294)][_0x4f3d8f(0x355)](_0x494ddb),this[_0x4f3d8f(0x346)][_0x4f3d8f(0x38c)](_0x4965ad,_0x494ddb);}),this[_0x2cab26(0x2d0)][_0x2cab26(0x212)](a[_0x2cab26(0x373)][_0x2cab26(0x31b)])[_0x2cab26(0x26a)](d['takeUntil'](this[_0x2cab26(0x17b)]))[_0x2cab26(0x26a)](d[_0x2cab26(0x3ba)](_0x23aaa2=>!_0x23aaa2[_0x2cab26(0x2fa)]()[_0x2cab26(0x195)]('__')))[_0x2cab26(0x2fe)](async _0x4978c0=>{const _0x19d26d=_0x2cab26,_0x35d3d2=_0x4978c0[_0x19d26d(0x2fa)](),_0x4ec3a0=await this[_0x19d26d(0x343)](_0x35d3d2);this[_0x19d26d(0x294)]['next'](_0x4ec3a0),this[_0x19d26d(0x346)][_0x19d26d(0x38c)](_0x35d3d2,_0x4ec3a0);}),d[_0x2cab26(0x21e)](this['_univerInstanceService'][_0x2cab26(0x14a)](a[_0x2cab26(0x373)][_0x2cab26(0x31b)]),this[_0x2cab26(0x2d0)]['getTypeOfUnitDisposed$'](a[_0x2cab26(0x373)][_0x2cab26(0x23a)]))['pipe'](d['takeUntil'](this['dispose$']))[_0x2cab26(0x2fe)](_0x229c9e=>{const _0x2f11e6=_0x2cab26,_0x97cae9=_0x229c9e[_0x2f11e6(0x2fa)](),_0x24ed83=this[_0x2f11e6(0x346)][_0x2f11e6(0x18c)](_0x97cae9);_0x24ed83&&(_0x24ed83[_0x2f11e6(0x176)](),this[_0x2f11e6(0x346)][_0x2f11e6(0x1dd)](_0x97cae9));});}async[_0x2af163(0x39e)](_0x1f9002){const _0x1cfc01=_0x2af163,_0x4bea83=await this[_0x1cfc01(0x27d)][_0x1cfc01(0x25a)](_0x1f9002),_0x21d233=this[_0x1cfc01(0x268)][_0x1cfc01(0x34e)](Se,_0x1f9002,_0x4bea83);return _0x21d233[_0x1cfc01(0x257)](),_0x21d233;}async[_0x2af163(0x343)](_0x24fd81){const _0x423d3f=_0x2af163,_0x9b3fae=await this[_0x423d3f(0x27d)]['requireSession'](_0x24fd81),_0x5c2126=this[_0x423d3f(0x268)][_0x423d3f(0x34e)](fe,_0x24fd81,_0x9b3fae);return _0x5c2126[_0x423d3f(0x257)](),_0x5c2126;}};function _0x401a(){const _0x204784=['registerRefRange','UnitStatus','deepClone','handleInsertRangeMoveDown','show','NodePositionConvertToRectRange','TEXT_RANGE_LAYER_INDEX','YUUMI_PROMPT_MAX_TOKENS_EXCEEDED','backgroundColor','_beforeCloseService','_online','_initDependencies','unitID','Warning','clearTimeout','PY_RUNTIME_SCRIPT_ERROR','doc.mutation.rich-text-editing','getColorFromTheme','_notificationService','_handleJoinEvent','isArray','@univerjs-pro/collaboration-client','_getSaveTimeout','isEditing','toString','_collabCursorController','addObject','deserializeRangeWithSheet','sheetID','WebURLService','collaboration-client-ui.config','executionId','setItem','isActive','Injector','debounce','from','DeleteRangeMoveUpCommandId','_init','getSheetObject','mergeOverrideWithDependencies','M0\x200H16V16H0z','endRow','fillText','restore','handleInsertCol','collabStatus.synced','getUndoRedoMutationParamsCache','_httpService','4786700HSdsWg','setInterval','session.collaboration-timeout','has','transformMutation','TOO_MANY_REQUESTS','_univerInstanceService','NOT_FOUND','string','UNRECOGNIZED','RevisionService','_instanceService','VIEW_MAIN','getRelativeToViewportCoord','MUTATION','EMAIL_HAS_BEEN_BOUND','send','_refreshCollabCursors','engine','wsSessionTicketUrl','length','ranges','UniverCollaborationClientUIPlugin','handleDeleteRangeMoveLeft','LOCAL_CACHE_INTERVAL_KEY','_initEntityListener','_cachedData','SheetsSelectionsService','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','_heartbeatTimer','setStateCache','collab-text-anchor-','_initStatusComponent','_assignedColors','executeCommand','focused$','registerDependencies','collab-text-range-','getCurrentUnitForType','PERMISSION_DENIED','permission.title','0\x200\x2017\x2016','selections','FromArray','urlChange$','MessageType','type','translate(.97)','getUnitId','hasOwnProperty','_revisionService','pushState','subscribe','YUUMI_TABLE_NOT_FOUND_IN_UNIT','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','OnLineIcon','getCoordByCell','INVALID_INVITE_CODE','getCollabEntity$','APPLY_REJECT','http://www.w3.org/2000/svg','enableLocalCache','getVpScrollXYInfoByPosToVp','MOBILE_HAS_BEEN_BOUND','INVITE_CODE_HAS_BEEN_UES','Inject','m1Prime','_id','LOGIN_FAILED','_hover','memberID','ENSURE_SNAPSHOT_EXECUTION','assign','none','push','@univerjs/ui','_shapes','shareReplay','getLocalCacheKey','key','CollaborationSocketService','UNIVER_DOC','OFFLINE','_drawTextRange','ILocalCacheService','OTHER_CLIENTS_EDITING','...','ICommandService','SheetSkeletonManagerService','TEXT','YUUMI_ASYNCIO_CANCELLED','INVITE_CODE_ALREADY_BOUND','drawWith','storage','UniverIcon','_status$','_cursorInfo$','_refRangeService','ISocketService','_registerDependencies','transformIMECache','UNIVER_COLLABORATION_CLIENT_WEB_PLUGIN','getOwnPropertyDescriptor','source','_handleHover','_range','code','APPLY_PERMISSION_DENIED','_memberService','CollaborationStatusDisplay','getActiveSheet','_textBubble','_removeCollabCursors','_initCommandExecutedListener','@univerjs/docs-ui','switchMap','REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY','CollaborationStatus','getOwnPropertySymbols','8535793vaTuKS','hovered','_startDocCollabCursor','handleMoveRange','getItem','_entities','_collabCursorState$','Unknown\x20user','YUUMI_ALL_TABLES_IS_INVALID','UNAUTHENTICATED','_disabled','startColumn','height','createInstance','getActiveRange','then','call','_lastPointer','InsertRangeMoveDownCommandId','runId','next','setParam','_initEvent','purple.300','parse','RegularPolygon','_eventUnsubscribe','takeUntil','EffectRefRangId','onCommandExecuted','addObjects','NodePositionConvertToCursor','entries','defineProperty','onPointerLeave$','arc','width','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','min','_selfUnitIDs','row','_dataLoaderService','currentSkeleton$','displayName','runRefRangeMutations','_getScale','on-line-icon_clip0_910_349','closePath','_handleEvent','syncEditingCollabCursor','UniverInstanceType','INVALID_ARGUMENT','data','_updateSubUnitFromURLParams','getMemberID','event$','/run/','serializeRangeWithSheet','collabStatus.notCollab','@univerjs/engine-formula','replaceState','_cursorShapes','attrs','use','CollaborationDataLoaderController','HTTPService','entityInit$','getCurrentRevOfUnit','react','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','CONNECTOR_DATA_TOO_LARGE','6OTaOik','@univerjs/core','_anchorDot','_onRefRangeChange','set','_transformPreviousActiveRange','USERS_LEAVE','getValue','_transformHistoryAndStateStack','CollaborationController','_config','SetDocZoomRatioOperation','getColor','_handleLeaveEvent','div','getConfig','_onCursorDelete','defIds','SetWorksheetActivateCommand','_transformUndoRedoStack','_transformService','DesktopCollaborationStatusDisplayController','_startSheetCollabCursor','concat','_color','_docSyncEditingCollabCursorService','svg','eventID','saveOfflineData','getRangePointData','registerRenderModule','indexOf','99635KqaAPV','rxjs/operators','roomMembers','_syncEditingCollabCursorService','_updateURLWithCurrentState','IUniverInstanceService','_unitStatus','lineTo','[CollaborationDataLoaderController]','WebBrowserSingleActiveUnitService','runOnServer','LICENSE_IMPORT_SIZE_EXCEEDED','_colorAssignService','cursorInfo$','labelPosition','setAlpha','_saveTaskMap','disposeUnit','filter','findNodePositionByCharIndex','xlink:href','off-line-icon','color','beginPath','_sheetSkeletonManagerService','isTransformMutationsWithChangesetSuccess','CHANGESET_REVISION_CONFILICT','UPDATE_CURSOR','activeSheet$','transformMutationsWithChangeset','_configService','undoState','icon','size','trim','getTypeOfUnitDisposed$','href','random','transform','getAncestorScale','JOIN_ROOM_FAILED','Tools','@univerjs/docs','MoveRangeCommandId','ALREADY_EXISTS','all','useRef','red.300','getMergeData','@univerjs/drawing','_updateCollabCursors','handleIRemoveRow','registerBeforeClose','top','IRenderManagerService','post','YUUMI_UNABLE_LOAD_URL','Shape','combineLatest','fill','@univerjs/engine-render','reconnect','collabCursorState$','subunit','_createSocketURL','IMessageService','AWAITING_WITH_PENDING','collabStatus.syncing','mutations','ColorKit','ISnapshotServerService','DocCollaborationEntity','SHEET_VIEWPORT_KEY','debug','RichTextEditingMutation','DEFAULT_WS_SESSION_TICKET_URL','ticket','getParam','getCurrent','dispose','setTimeout','_logService','4639950tyNrNH','RxDisposable','dispose$','name','_hideTimer','saveTaskMap','disableLocalCache','_context','_setupBeforeClosingHandler','application/json','SUBMIT_CHANGESET_TIMEOUT','forwardRef','getCollabCursors$','range','includes','assignAColorForMemberID','_localStorageService','RemoteUniscriptService','off-line-icon_clip0_910_343','get','getRenderById','saveImage','complete','IConfigService','transformStateCache','_scene','history','search','startsWith','unit','_urlService','onRendered','add','_messageService','clipPath','exhaustSavingTask','params','univer-mr-2\x20univer-flex\x20univer-text-xl','APPLY_REVISION_CONFILICT','_removeClearOtherTimer','CollaborationUIEventId','WECHAT_HAS_BEEN_BOUND','UniverCollaborationClientPlugin','_getSessionTicket','getSheetBySheetId','values','CollaborationEvent','endColumn','LICENSE_MAX_UNITS_EXCEEDED','0\x200\x2016\x2016','_docTransformSelectionsService','mapTo','ILocalStorageService','newValue','throttleTime','_initStatusListener','Tooltip','_onCursorUpdate','location','_imageIoService','flatMap','currentTheme$','jsx','fillRule','getDocRanges','split','@univerjs/design','_updateLocalCursor','_unitOnClients','_docStateChangeManagerService','DOC_RANGE_TYPE','status$','2915176uHWTCK','debounceTime','hide','_session','AWAITING','ONLINE','url(#off-line-icon_clip0_910_343)','measureText','searchParams','generateRandomId','IUIPartsService','Workbook','onLocalMutation','mask','30117KYxABP','_drawAnchor','toRgbString','NO_OTHER_CLIENTS_EDITING','unsubscribe','_hovered','_draw','_getAnchorBounding','transformRemoteChangeset','contains','onPointerEnter$','substring','CONFLICT','RemoveRowCommandId','delete','collabStatus.conflict','WebSocketService','_getSheetObject','_docTransformIMECacheService','_scheduleSaving','evenodd','1em','path','ITransformService','currentColor','Disposable','defs','Optional','_collaborationController','text','setShapeProps','createElement','colorChannel1','save','addHandlerCallback','IDocClipboardService','DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT','INTERNAL_ERROR','function','APPLY_NON_SEQUENTIAL_REVISION','_initResize','disposeWithMe','_handleHeartbeatEvent','sessionTicket','_roomMembers$','collaboration.single-unit.warning','CollaborationUIEventService','blue.400','selection','_toggleOffline','BehaviorSubject','_anchor','fromEvent','loadUnit','PENDING','textRanges','Rect','handleDeleteRangeMoveUp','_backgroundColor','touchDependencies','FETCH_MISS','COLORS','collab-rect-range-','5517828MVGNcY','max','moveTo','RefRangeService','getTypeOfUnitAdded$','invokeId','actions','getSheetId','DocSelectionManagerService','Rectangle','YUUMI_NO_CUBOID_FOR_QUESTION','DependentOn','skeleton','registerComponent','univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','_docTransformStateCacheService','merge','addClipboardHook','map','_setupSubUnitSync','onTransformChange$','createSocket','setUndoRedoMutationParamsCache','url(#$1','_renderManagerService','UNDEFINED','CollaborationSessionService','4rpeebh','redoState','_scheduleHeartbeat','_docClipboardService','LICENSE_EXPORT_SIZE_EXCEEDED','_themeService','bottom','IRemoteInstanceService','getMember','_collaborationUIEventService','getViewport','className','DocIMEInputManagerService','_commandService','forEach','_cursors','distinctUntilChanged','UNIVER_SHEET','body','SessionStatus','collabStatus.offline','error','COMPLETION_FINISHED','whenReady','removeParam','USER_NOT_INVITED_CODE','find','TRANSFORM_CHANGE_OBSERVABLE_TYPE','DeleteRangeMoveLeftCommandId','triggerDblclick','collaboration.closeRoom','Error','loadOfflineData','roomMembers$','ThemeService','_send','fillStyle','children','useDependency','isTransformMutationFailure','YUUMI_RATE_OVER_LIMIT','SOCKET_FAILED','cursorInfo','_registerRenderDependencies','LocaleService','DocStateChangeManagerService','init','_saveCache','_ensureSubject','requireSession','_cursor','unitId','Subject','symbol','asObservable','_document','_toggleOnline','_render','m2Prime','useObservable','_drawRectRange','_name','HEADER_MENU','_injector','with','pipe','override','RECT','InsertColCommandId','getUniverSheetInstance','INotificationService','propertyIsEnumerable','extend','getUnhiddenWorksheets','MemberService','YUUMI_SUBSCRIPTION_NOT_FOUND','_labelPosition','IURLService','getStateCache','LOCAL_CACHE_INTERVAL','column','round','subscribeEvent','ACTIVE_UNIT_EVENT_CHANNEL','_collabSessionService','_uiPartsService','idSuffix','tag','addEventListener','LICENSE_DISTRO_REJECTED','getFocusedUnit','DocSkeletonManagerService','YUUMI_AI_RUN_FAILED','black','stringify','@univerjs/sheets','_scheduleClearOtherTimer','_getMergeRange','_clearOtherTimers','INVITE_CODE_REQUIRED','Failed','YUUMI_URL_COL_OUT_OF_RANGE','_localeService','createIdentifier','NOT_COLLAB','url(#on-line-icon_clip0_910_349)','origin','_entityInit$','_localCacheService','unshift','_colorIndex','white'];_0x401a=function(){return _0x204784;};return _0x401a();}x=ct([ie(0x0,a[_0x2af163(0x3ad)]),ie(0x1,a[_0x2af163(0x30b)](a[_0x2af163(0x2bb)])),ie(0x2,a['Inject'](u[_0x2af163(0x228)]))],x);const K=0x14,Re=0xc8,ne=0x4,lt=0x5;function _t(_0x260234,_0xdacea9){const _0x21f1f9=_0x2af163;let {radius:_0x3d1605,width:_0x425e69,height:_0x39dcbd}=_0xdacea9;_0x3d1605=_0x3d1605!=null?_0x3d1605:0x0,_0x425e69=_0x425e69!=null?_0x425e69:0x1e,_0x39dcbd=_0x39dcbd!=null?_0x39dcbd:0x1e;let _0x457542=0x0,_0x463141=0x0,_0xe83ec2=0x0;_0x457542=_0x463141=_0xe83ec2=Math[_0x21f1f9(0x367)](_0x3d1605,_0x425e69/0x2,_0x39dcbd/0x2),_0x260234[_0x21f1f9(0x3bf)](),_0x260234[_0x21f1f9(0x210)](_0x457542,0x0),_0x260234[_0x21f1f9(0x3af)](_0x425e69-_0x463141,0x0),_0x260234[_0x21f1f9(0x364)](_0x425e69-_0x463141,_0x463141,_0x463141,Math['PI']*0x3/0x2,0x0,!0x1),_0x260234[_0x21f1f9(0x3af)](_0x425e69,_0x39dcbd-_0xe83ec2),_0x260234[_0x21f1f9(0x364)](_0x425e69-_0xe83ec2,_0x39dcbd-_0xe83ec2,_0xe83ec2,0x0,Math['PI']/0x2,!0x1),_0x260234[_0x21f1f9(0x3af)](0x0,_0x39dcbd),_0x260234[_0x21f1f9(0x3af)](0x0,_0x457542),_0x260234[_0x21f1f9(0x364)](_0x457542,_0x457542,_0x457542,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x260234[_0x21f1f9(0x370)](),_0xdacea9['fill']&&(_0x260234['save'](),_0x260234[_0x21f1f9(0x24d)]=_0xdacea9[_0x21f1f9(0x162)],_0xdacea9[_0x21f1f9(0x1b8)]===_0x21f1f9(0x1e3)?_0x260234['fill'](_0x21f1f9(0x1e3)):_0x260234[_0x21f1f9(0x162)](),_0x260234[_0x21f1f9(0x2c5)]());}class ee extends p[_0x2af163(0x160)]{constructor(_0x206da6,_0x3841f9){const _0x1a7260=_0x2af163;super(_0x206da6,_0x3841f9),h(this,'color'),h(this,_0x1a7260(0x1ec)),(this[_0x1a7260(0x3be)]=_0x3841f9==null?void 0x0:_0x3841f9[_0x1a7260(0x3be)],this[_0x1a7260(0x1ec)]=_0x3841f9==null?void 0x0:_0x3841f9[_0x1a7260(0x1ec)]);}static[_0x2af163(0x326)](_0x3403e8,_0x48366d){const _0x79ff2b=_0x2af163,{text:_0x52fe0e,color:_0x2d746d}=_0x48366d;_0x3403e8[_0x79ff2b(0x1f0)](),_0x3403e8['font']=_0x79ff2b(0x386);const _0xd28c8f=_0x3403e8[_0x79ff2b(0x1c8)](_0x52fe0e)[_0x79ff2b(0x365)],_0x72c5e3=Math[_0x79ff2b(0x367)](_0xd28c8f+0x2*ne,Re);_t(_0x3403e8,{'height':K,'radius':0x4,'width':_0x72c5e3,'fill':_0x2d746d}),_0x3403e8['fillStyle']='#FFF';const _0x40ad24=ne,_0x524d3a=K-lt,_0x5e03f6=Re-0x2*ne;if(_0xd28c8f>_0x5e03f6){let _0x1f5438='',_0x2a2782=0x0;for(const _0x5dd6a2 of _0x52fe0e){const _0x4efa68=_0x3403e8['measureText'](_0x5dd6a2)[_0x79ff2b(0x365)];if(_0x2a2782+_0x4efa68<=_0x5e03f6-_0x3403e8[_0x79ff2b(0x1c8)](_0x79ff2b(0x320))[_0x79ff2b(0x365)])_0x1f5438+=_0x5dd6a2,_0x2a2782+=_0x4efa68;else{_0x1f5438+=_0x79ff2b(0x320);break;}}_0x3403e8[_0x79ff2b(0x2c4)](_0x1f5438,_0x40ad24,_0x524d3a);}else _0x3403e8['fillText'](_0x52fe0e,_0x40ad24,_0x524d3a);_0x3403e8[_0x79ff2b(0x2c5)]();}[_0x2af163(0x1d5)](_0x5de82e){const _0x403d51=_0x2af163;ee[_0x403d51(0x326)](_0x5de82e,this);}}const re=_0x2af163(0x2e9),ht=_0x2af163(0x2ef),ut=_0x2af163(0x20d),k=0x6,dt=1.5,oe=0x4,ft=1.5,St='rgba(255,\x20255,\x20255,\x200.01)';class De{constructor(_0x381b88,_0x22db50,_0x2f56e5,_0x2c70ed){const _0x58ef8a=_0x2af163;h(this,'_shapes',[]),h(this,'_anchor',null),h(this,'_textBubble',null),h(this,'_anchorDot',null),h(this,_0x58ef8a(0x17d),null),h(this,_0x58ef8a(0x35b),null),(this[_0x58ef8a(0x25b)]=_0x381b88,this[_0x58ef8a(0x192)]=_0x22db50,this['_docSkeleton']=_0x2f56e5,this[_0x58ef8a(0x260)]=_0x2c70ed,this[_0x58ef8a(0x262)]());}set[_0x2af163(0x30f)](_0x553ba7){const _0x14683d=_0x2af163;_0x553ba7?(this['_anchorDot']&&this[_0x14683d(0x38a)][_0x14683d(0x1c3)](),this['_textBubble']&&this[_0x14683d(0x339)][_0x14683d(0x29d)]()):(this[_0x14683d(0x38a)]&&this[_0x14683d(0x38a)][_0x14683d(0x29d)](),this[_0x14683d(0x339)]&&this[_0x14683d(0x339)][_0x14683d(0x1c3)]());}[_0x2af163(0x176)](){const _0x5837c2=_0x2af163;for(const _0x4d77e0 of this[_0x5837c2(0x316)])_0x4d77e0['dispose']();this[_0x5837c2(0x339)]&&this[_0x5837c2(0x339)]['dispose'](),this[_0x5837c2(0x38a)]&&this['_anchorDot'][_0x5837c2(0x176)](),this[_0x5837c2(0x202)]&&this[_0x5837c2(0x202)][_0x5837c2(0x176)](),this['_eventUnsubscribe']&&this['_eventUnsubscribe']();}[_0x2af163(0x262)](){const _0x36e9da=_0x2af163;var _0x211410;const {_docSkeleton:_0x386b78,_document:_0x397d34}=this,{color:_0x5f1d0b,name:_0x51fe82,ranges:_0x512288}=this['_cursor'],_0x4c74e6=_0x397d34['getOffsetConfig'](),{docsLeft:_0x44af40,docsTop:_0x29497f}=_0x4c74e6,_0xf4e3b6=new b[(_0x36e9da(0x360))](_0x4c74e6,_0x386b78);for(const {startOffset:_0x506c72,endOffset:_0x3baa90,rangeType:_0x4669a9,segmentId:_0x39cb31,segmentPage:_0x222d30,collapsed:_0x6de5d3,isActive:_0x2370a9}of _0x512288){const _0x2194c1=_0x386b78[_0x36e9da(0x3bb)](_0x506c72,!0x0,_0x39cb31,_0x222d30);let _0x1d0130=_0x386b78[_0x36e9da(0x3bb)](_0x3baa90,!0x0,_0x39cb31,_0x222d30);if(_0x1d0130==null&&(_0x1d0130=_0x386b78[_0x36e9da(0x3bb)](_0x3baa90-0x1,!0x1,_0x39cb31,_0x222d30)),_0x2370a9){const {contentBoxPointGroup:_0x3fe36f}=_0xf4e3b6[_0x36e9da(0x3a5)](_0x1d0130,_0x1d0130);if(_0x3fe36f[_0x36e9da(0x2de)]===0x0)continue;this[_0x36e9da(0x1d0)](_0x5f1d0b,_0x3fe36f,_0x44af40,_0x29497f,_0x51fe82),this[_0x36e9da(0x35b)]=this[_0x36e9da(0x332)]();}if(_0x2194c1&&_0x1d0130){if(_0x4669a9===a[_0x36e9da(0x1bf)][_0x36e9da(0x26c)]){const _0x26b935=new b[(_0x36e9da(0x29e))](_0x4c74e6,_0x386b78),{pointGroup:_0x2bc321}=(_0x211410=_0x26b935[_0x36e9da(0x3a5)](_0x2194c1,_0x1d0130))!=null?_0x211410:{};if(_0x2bc321==null||_0x2bc321[_0x36e9da(0x2de)]===0x0)continue;this[_0x36e9da(0x265)](_0x5f1d0b,_0x2bc321,_0x44af40,_0x29497f);}else{if(!_0x6de5d3){const {borderBoxPointGroup:_0x1ec1ab}=_0xf4e3b6['getRangePointData'](_0x2194c1,_0x1d0130);if(_0x1ec1ab[_0x36e9da(0x2de)]===0x0)continue;this['_drawTextRange'](_0x5f1d0b,_0x1ec1ab,_0x44af40,_0x29497f);}}}}}['_drawAnchor'](_0x55992b,_0x50b280,_0x429187,_0x26fc8e,_0x2b4e69){const _0x18b6af=_0x2af163,_0xdfcfc3=this[_0x18b6af(0x1d6)](_0x50b280),{left:_0x2b9145,top:_0x385da1,height:_0x2062cf}=_0xdfcfc3,_0x5c74f4=this[_0x18b6af(0x36e)](),_0x5590cd=ft/_0x5c74f4,_0x11b7e8=new p[(_0x18b6af(0x207))](re+a['Tools'][_0x18b6af(0x1ca)](k),{'left':_0x2b9145+_0x429187-_0x5590cd,'top':_0x385da1+_0x26fc8e,'height':_0x2062cf,'width':dt,'fill':_0x55992b||p['getColor'](a['COLORS'][_0x18b6af(0x286)],0x0),'strokeWidth':_0x5590cd,'stroke':St,'evented':!0x0});this['_anchor']=_0x11b7e8,this[_0x18b6af(0x192)][_0x18b6af(0x2b3)](_0x11b7e8,b['TEXT_RANGE_LAYER_INDEX']);const _0x361be9=new p['Rect'](re+a[_0x18b6af(0x150)][_0x18b6af(0x1ca)](k),{'left':_0x2b9145+_0x429187-_0x5590cd,'top':_0x385da1+_0x26fc8e-oe/0x2,'height':oe,'width':oe,'fill':_0x55992b||p[_0x18b6af(0x394)](a['COLORS'][_0x18b6af(0x286)],0x0),'strokeWidth':0x0,'stroke':_0x55992b||p[_0x18b6af(0x394)](a[_0x18b6af(0x20c)][_0x18b6af(0x286)],0x0),'evented':!0x1});this[_0x18b6af(0x38a)]=_0x361be9,this[_0x18b6af(0x192)][_0x18b6af(0x2b3)](_0x361be9,b[_0x18b6af(0x29f)]);const _0x74ed2b=new ee(re+a[_0x18b6af(0x150)][_0x18b6af(0x1ca)](k),{'left':_0x2b9145+_0x429187-_0x5590cd,'top':_0x385da1+_0x26fc8e-K,'text':_0x2b4e69,'color':_0x55992b});this[_0x18b6af(0x339)]=_0x74ed2b,this['_scene'][_0x18b6af(0x2b3)](_0x74ed2b,b[_0x18b6af(0x29f)]),this['_hover']=!0x1;}[_0x2af163(0x332)](){const _0x15655f=_0x2af163,_0x3b085f=this[_0x15655f(0x202)]['onPointerEnter$']['subscribeEvent'](()=>{this['_hover']=!0x0;}),_0x1dc1cb=this[_0x15655f(0x202)][_0x15655f(0x363)]['subscribeEvent'](()=>{const _0x32106e=_0x15655f;this[_0x32106e(0x17d)]&&clearTimeout(this[_0x32106e(0x17d)]),this[_0x32106e(0x17d)]=setTimeout(()=>{const _0x38c7d7=_0x32106e;this[_0x38c7d7(0x30f)]=!0x1;},0x7d0);});return()=>{const _0x2db7c5=_0x15655f;_0x3b085f[_0x2db7c5(0x1d3)](),_0x1dc1cb[_0x2db7c5(0x1d3)]();};}[_0x2af163(0x31d)](_0x33579f,_0x4ab32d,_0x165e5d,_0x391009){const _0x56eb64=_0x2af163,_0x287b7e=new a[(_0x56eb64(0x16c))](_0x33579f)[_0x56eb64(0x3b7)](0.2)[_0x56eb64(0x1d1)](),_0x519b19=new p[(_0x56eb64(0x35a))](ht+a[_0x56eb64(0x150)][_0x56eb64(0x1ca)](k),{'pointsGroup':_0x4ab32d,'fill':_0x287b7e||p[_0x56eb64(0x394)](a[_0x56eb64(0x20c)][_0x56eb64(0x286)],0.2),'left':_0x165e5d,'top':_0x391009,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x56eb64(0x316)][_0x56eb64(0x314)](_0x519b19),this[_0x56eb64(0x192)]['addObject'](_0x519b19,b['TEXT_RANGE_LAYER_INDEX']);}[_0x2af163(0x265)](_0x4778cc,_0x4fcf4d,_0x5f3526,_0x59573e){const _0x526175=_0x2af163,_0x26a8c2=new a[(_0x526175(0x16c))](_0x4778cc)['setAlpha'](0.2)[_0x526175(0x1d1)](),_0x332b1e=new p[(_0x526175(0x35a))](ut+a['Tools'][_0x526175(0x1ca)](k),{'pointsGroup':_0x4fcf4d,'fill':_0x26a8c2||p[_0x526175(0x394)](a['COLORS'][_0x526175(0x286)],0.2),'left':_0x5f3526,'top':_0x59573e,'evented':!0x1,'debounceParentDirty':!0x1});this['_shapes'][_0x526175(0x314)](_0x332b1e),this[_0x526175(0x192)]['addObject'](_0x332b1e,b[_0x526175(0x29f)]);}[_0x2af163(0x1d6)](_0xc30838){const _0x58a672=_0xc30838[0x0],_0xc27751=_0x58a672[0x0],_0x4d3e85=_0x58a672[0x2],{x:_0x1e4284,y:_0x4c9702}=_0xc27751,{x:_0x464b8a,y:_0x33db44}=_0x4d3e85;return{'left':_0x1e4284,'top':_0x4c9702,'width':_0x464b8a-_0x1e4284,'height':_0x33db44-_0x4c9702};}['_getScale'](){const _0x4e3151=_0x2af163,{scaleX:_0x7605d0,scaleY:_0x4aaa1a}=this[_0x4e3151(0x192)]['getAncestorScale']();return Math[_0x4e3151(0x20f)](_0x7605d0,_0x4aaa1a);}}var It=Object[_0x2af163(0x330)],vt=(_0x13e4ea,_0x3b8636,_0x45934e,_0x1a6064)=>{const _0x3c840b=_0x2af163;for(var _0x5d7a29=_0x1a6064>0x1?void 0x0:_0x1a6064?It(_0x3b8636,_0x45934e):_0x3b8636,_0x1706da=_0x13e4ea[_0x3c840b(0x2de)]-0x1,_0x30a1ab;_0x1706da>=0x0;_0x1706da--)(_0x30a1ab=_0x13e4ea[_0x1706da])&&(_0x5d7a29=_0x30a1ab(_0x5d7a29)||_0x5d7a29);return _0x5d7a29;},W=(_0x372ac9,_0x4344ea)=>(_0x77a458,_0x1a56a9)=>_0x4344ea(_0x77a458,_0x1a56a9,_0x372ac9);let Ie=class extends a['RxDisposable']{constructor(_0x4c2420,_0x3967fd,_0x439e37,_0x3cfaab,_0x427ffd){const _0x287c4c=_0x2af163;super(),h(this,_0x287c4c(0x37e),[]),h(this,_0x287c4c(0x238),[]),(this[_0x287c4c(0x180)]=_0x4c2420,this['_docSkeletonManagerService']=_0x3967fd,this[_0x287c4c(0x2b2)]=_0x439e37,this[_0x287c4c(0x236)]=_0x3cfaab,this['_themeService']=_0x427ffd,this[_0x287c4c(0x2bf)]());}[_0x2af163(0x2bf)](){const _0x1149c7=_0x2af163,_0x4cf0df=this[_0x1149c7(0x180)]['unitId'],_0x1d8fbb=this['_docSkeletonManagerService'];this[_0x1149c7(0x1f8)](d[_0x1149c7(0x161)]([this[_0x1149c7(0x2b2)][_0x1149c7(0x185)](_0x4cf0df),this[_0x1149c7(0x22e)][_0x1149c7(0x1b6)]])['pipe']($[_0x1149c7(0x220)](([_0x51640b,_0x21c03f])=>({'skeleton':_0x1d8fbb['getSkeleton'](),'cursors':[..._0x51640b[_0x1149c7(0x1a6)]()][_0x1149c7(0x1b5)](_0x3a0ad9=>({..._0x3a0ad9,'color':this['_themeService'][_0x1149c7(0x2aa)](_0x3a0ad9[_0x1149c7(0x3be)])}))})))['subscribe'](_0x5a2b21=>{const _0xf070ac=_0x1149c7;if(this[_0xf070ac(0x33a)](),_0x5a2b21){const {skeleton:_0xbd0134,cursors:_0x195a65}=_0x5a2b21;this[_0xf070ac(0x159)](_0xbd0134,_0x195a65);}})),this[_0x1149c7(0x1f7)](),this[_0x1149c7(0x33b)]();}[_0x2af163(0x159)](_0x1eac1d,_0x441d45){const _0x3f0705=_0x2af163,{scene:_0x166e03,mainComponent:_0x21fba3}=this['_context'],_0x42e8b2=_0x441d45[_0x3f0705(0x220)](_0x56fd06=>new De(_0x56fd06,_0x166e03,_0x1eac1d,_0x21fba3));this['_cursorShapes']=_0x42e8b2,this[_0x3f0705(0x238)]=_0x441d45;}['_refreshCollabCursors'](){const _0x1fceef=_0x2af163;this[_0x1fceef(0x33a)]();const {scene:_0x280d9e,mainComponent:_0x23d6a1}=this[_0x1fceef(0x180)],_0x158c2e=this['_docSkeletonManagerService']['getSkeleton'](),_0x187ad7=this[_0x1fceef(0x238)][_0x1fceef(0x220)](_0x51e839=>new De(_0x51e839,_0x280d9e,_0x158c2e,_0x23d6a1));this[_0x1fceef(0x37e)]=_0x187ad7;}[_0x2af163(0x33a)](){const _0x5c0e3f=_0x2af163;this[_0x5c0e3f(0x37e)][_0x5c0e3f(0x237)](_0x11c176=>_0x11c176[_0x5c0e3f(0x176)]()),this['_cursorShapes']=[];}[_0x2af163(0x33b)](){const _0x2cfc01=_0x2af163,_0x182602=[b[_0x2cfc01(0x393)]['id']];this[_0x2cfc01(0x1f8)](this[_0x2cfc01(0x236)][_0x2cfc01(0x35e)](_0x4516f7=>{const _0x272832=_0x2cfc01;_0x182602['includes'](_0x4516f7['id'])&&_0x4516f7[_0x272832(0x19d)][_0x272832(0x25c)]===this[_0x272832(0x180)][_0x272832(0x25c)]&&this[_0x272832(0x2db)]();}));}[_0x2af163(0x1f7)](){const _0x361b7f=_0x2af163;this['disposeWithMe'](a['fromEventSubject'](this[_0x361b7f(0x180)][_0x361b7f(0x2dc)][_0x361b7f(0x222)])[_0x361b7f(0x26a)]($['filter'](_0x4167be=>_0x4167be['type']===p[_0x361b7f(0x244)]['resize']),$[_0x361b7f(0x1af)](0x10))['subscribe'](()=>{this['_refreshCollabCursors']();}));}};Ie=vt([W(0x1,a[_0x2af163(0x30b)](Y[_0x2af163(0x284)])),W(0x2,a['Inject'](x)),W(0x3,a[_0x2af163(0x321)]),W(0x4,a[_0x2af163(0x30b)](a[_0x2af163(0x24b)]))],Ie);const gt=0x1,mt=1.5;class Pe extends p['Shape']{constructor(_0x194597,_0x4f70fc){const _0x45cf8a=_0x2af163;super(_0x194597,_0x4f70fc),h(this,_0x45cf8a(0x3a0)),h(this,_0x45cf8a(0x1d4),!0x1),h(this,_0x45cf8a(0x333)),h(this,_0x45cf8a(0x266),''),h(this,'_labelPosition',_0x45cf8a(0x15c)),h(this,_0x45cf8a(0x209)),(_0x4f70fc&&this['setShapeProps'](_0x4f70fc),this[_0x45cf8a(0x1d9)][_0x45cf8a(0x27b)](()=>this['setShapeProps']({'hovered':!0x0})),this['onPointerLeave$'][_0x45cf8a(0x27b)](()=>this['setShapeProps']({'hovered':!0x1})));}[_0x2af163(0x1ed)](_0x2d5abc){const _0x5a54d8=_0x2af163;var _0xa74abb,_0x373772,_0xb3971c,_0x523901,_0x24f000,_0x267d9e;this[_0x5a54d8(0x3a0)]=(_0xa74abb=_0x2d5abc[_0x5a54d8(0x3be)])!=null?_0xa74abb:this[_0x5a54d8(0x3a0)],this['_hovered']=(_0x373772=_0x2d5abc[_0x5a54d8(0x342)])!=null?_0x373772:this['_hovered'],this[_0x5a54d8(0x333)]=(_0xb3971c=_0x2d5abc['range'])!=null?_0xb3971c:this[_0x5a54d8(0x333)],this['_name']=(_0x523901=_0x2d5abc[_0x5a54d8(0x17c)])!=null?_0x523901:this[_0x5a54d8(0x266)],this['_labelPosition']=(_0x24f000=_0x2d5abc[_0x5a54d8(0x3b6)])!=null?_0x24f000:this[_0x5a54d8(0x275)],this['_backgroundColor']=(_0x267d9e=_0x2d5abc[_0x5a54d8(0x2a1)])!=null?_0x267d9e:this[_0x5a54d8(0x209)],this['transformByState']({'width':_0x2d5abc[_0x5a54d8(0x365)],'height':_0x2d5abc['height']});}['onMouseMove'](_0xa8b45){const _0x4fe753=_0x2af163,{row:_0x1fb79a,column:_0x358b96}=_0xa8b45;if(_0x1fb79a>=this[_0x4fe753(0x333)]['startRow']&&_0x1fb79a<=this[_0x4fe753(0x333)][_0x4fe753(0x2c3)]&&_0x358b96>=this[_0x4fe753(0x333)][_0x4fe753(0x34c)]&&_0x358b96<=this[_0x4fe753(0x333)][_0x4fe753(0x1a8)]){this[_0x4fe753(0x1ed)]({'hovered':!0x0});return;}this['setShapeProps']({'hovered':!0x1});}[_0x2af163(0x246)](_0x17b422){return!0x1;}[_0x2af163(0x1d5)](_0x50bfa0){const _0x562bb7=_0x2af163;p[_0x562bb7(0x207)][_0x562bb7(0x326)](_0x50bfa0,{'width':this[_0x562bb7(0x365)],'height':this[_0x562bb7(0x34d)],'strokeWidth':mt,'stroke':this[_0x562bb7(0x3a0)],'evented':!0x1,'fill':this['_backgroundColor']}),this['_hovered']&&(_0x50bfa0['save'](),_0x50bfa0[_0x562bb7(0x14d)](0x1,0x0,0x0,0x1,this[_0x562bb7(0x365)],this['_labelPosition']===_0x562bb7(0x22f)?0x0:-0x14),ee[_0x562bb7(0x326)](_0x50bfa0,{'text':this[_0x562bb7(0x266)],'color':this['_color']}),_0x50bfa0[_0x562bb7(0x2c5)]());}}var Ct=Object[_0x2af163(0x330)],pt=(_0x5eb8b9,_0x4c0056,_0x356591,_0x1aceeb)=>{const _0x4e9eb3=_0x2af163;for(var _0x378c44=_0x1aceeb>0x1?void 0x0:_0x1aceeb?Ct(_0x4c0056,_0x356591):_0x4c0056,_0x3d08fc=_0x5eb8b9[_0x4e9eb3(0x2de)]-0x1,_0x21a3b9;_0x3d08fc>=0x0;_0x3d08fc--)(_0x21a3b9=_0x5eb8b9[_0x3d08fc])&&(_0x378c44=_0x21a3b9(_0x378c44)||_0x378c44);return _0x378c44;},ae=(_0x4496a9,_0x335e30)=>(_0x51ef1a,_0x40e49c)=>_0x335e30(_0x51ef1a,_0x40e49c,_0x4496a9);const bt=0x1389;let ve=class extends a[_0x2af163(0x17a)]{constructor(_0x3e7e6d,_0x4d39e6,_0x1582e3,_0xf8d52f){const _0x2c36d7=_0x2af163;super(),h(this,_0x2c36d7(0x238),new Set()),h(this,'_lastPointer',null),(this[_0x2c36d7(0x180)]=_0x3e7e6d,this[_0x2c36d7(0x3c0)]=_0x4d39e6,this[_0x2c36d7(0x2b2)]=_0x1582e3,this['_themeService']=_0xf8d52f,this[_0x2c36d7(0x2bf)]());}[_0x2af163(0x2bf)](){const _0x5c75da=_0x2af163;this[_0x5c75da(0x3c0)][_0x5c75da(0x36b)][_0x5c75da(0x26a)]($[_0x5c75da(0x35c)](this[_0x5c75da(0x17b)]),$['switchMap'](_0x383bcb=>{const _0x44d0e6=_0x5c75da;if(_0x383bcb){const _0x15dd10=_0x383bcb['sheetId'];return d[_0x44d0e6(0x161)](this[_0x44d0e6(0x2b2)][_0x44d0e6(0x185)](this[_0x44d0e6(0x180)][_0x44d0e6(0x25c)]),this['_themeService'][_0x44d0e6(0x1b6)])[_0x44d0e6(0x26a)]($['map'](([_0xa819c9,_0x286b24])=>{const _0x430a66=_0x44d0e6,_0x3167cc=new Map();return _0xa819c9[_0x430a66(0x237)]((_0x476b97,_0x39d23f)=>{const _0x33207f=_0x430a66;if(_0x476b97[_0x33207f(0x2b5)]===_0x15dd10){const _0x1337fd={..._0x476b97};_0x1337fd[_0x33207f(0x3be)]=this['_themeService']['getColorFromTheme'](_0x476b97[_0x33207f(0x3be)]),_0x3167cc['set'](_0x39d23f,_0x1337fd);}}),{'skeleton':_0x383bcb,'cursors':_0x3167cc};}));}return d['of']({'skeleton':null,'cursors':new Map()});}))[_0x5c75da(0x2fe)](({skeleton:_0x4bd1ed,cursors:_0x353cfe})=>{const _0x47eef1=_0x5c75da;this[_0x47eef1(0x33a)](),_0x4bd1ed&&this[_0x47eef1(0x159)](_0x4bd1ed,_0x353cfe);}),this[_0x5c75da(0x3c0)]['currentSkeleton$']['subscribe'](_0x10bf8e=>{const _0x2ccd13=_0x5c75da;if(_0x10bf8e==null)return;const {skeleton:_0x171f52}=_0x10bf8e,{scene:_0x3b39f8}=this[_0x2ccd13(0x180)];_0x3b39f8['onPointerMove$']['subscribeEvent'](a[_0x2ccd13(0x2bc)](_0xe44a44=>{const _0x1ff446=_0x2ccd13;var _0x1bd3ab,_0x37a20e;const {offsetX:_0x4317b4,offsetY:_0x27f57d}=_0xe44a44,{x:_0x404dff,y:_0x2cfbc7}=_0x3b39f8[_0x1ff446(0x2d7)](p['Vector2'][_0x1ff446(0x2f5)]([_0x4317b4,_0x27f57d])),{scaleX:_0x3c98c6,scaleY:_0x172558}=_0x3b39f8[_0x1ff446(0x14e)](),_0x4f6b25=_0x3b39f8[_0x1ff446(0x233)](p[_0x1ff446(0x16f)][_0x1ff446(0x2d6)]),_0x244123=_0x3b39f8[_0x1ff446(0x308)](p['Vector2'][_0x1ff446(0x2f5)]([_0x404dff,_0x2cfbc7]),_0x4f6b25),_0x369730=_0x171f52['getCellPositionByOffset'](_0x4317b4,_0x27f57d,_0x3c98c6,_0x172558,_0x244123);((_0x1bd3ab=this[_0x1ff446(0x352)])==null?void 0x0:_0x1bd3ab[_0x1ff446(0x279)])===_0x369730['column']&&((_0x37a20e=this[_0x1ff446(0x352)])==null?void 0x0:_0x37a20e['row'])===_0x369730[_0x1ff446(0x369)]||this[_0x1ff446(0x238)][_0x1ff446(0x237)](_0x310334=>{_0x310334['onMouseMove'](_0x369730);});},0x64));});}[_0x2af163(0x159)](_0x3b00b3,_0x22d37a){const _0x58ac03=_0x2af163;var _0x32cc5a;const _0x3a178d=(_0x32cc5a=this[_0x58ac03(0x3c0)][_0x58ac03(0x175)]())==null?void 0x0:_0x32cc5a[_0x58ac03(0x21a)];if(!_0x3a178d)return;const _0x36eb16=this[_0x58ac03(0x1e0)]();if(!_0x36eb16)return;this[_0x58ac03(0x238)][_0x58ac03(0x237)](_0x4bff6f=>{_0x4bff6f['makeDirty']();});const {scene:_0x28032b}=_0x36eb16,_0x1638ca=Et(Array[_0x58ac03(0x2bd)](_0x22d37a[_0x58ac03(0x1a6)]()))[_0x58ac03(0x220)](_0x4757ba=>{const _0x2cd63f=_0x58ac03,{color:_0xea1f3a,range:_0x14eb4b,name:_0x47bfe3,selection:_0x3b4bf1,sheetID:_0x5da4f3}=_0x4757ba,{startColumn:_0x43a5a6,startRow:_0x57adab,endColumn:_0x363162,endRow:_0xeb69e3}=_0x14eb4b,_0x236d3a=X[_0x2cd63f(0x302)](_0x57adab,_0x43a5a6,_0x28032b,_0x3a178d),_0x47fee8=X['getCoordByCell'](_0xeb69e3,_0x363162,_0x28032b,_0x3a178d),{columnHeaderHeightAndMarginTop:_0x2ddd3a}=_0x3a178d,{startX:_0x3b0616,startY:_0x358fcb}=_0x236d3a,{endX:_0xcbe8ae,endY:_0x1c6410}=_0x47fee8,_0x4613c4=_0xcbe8ae-_0x3b0616,_0xebd664=_0x1c6410-_0x358fcb,_0x1ee449={'labelPosition':_0x358fcb-_0x2ddd3a>=K?'top':'bottom','sheetID':_0x5da4f3,'range':_0x14eb4b,'color':_0xea1f3a,'name':_0x47bfe3,'selection':_0x3b4bf1,'left':_0x3b0616,'top':_0x358fcb,'width':_0x4613c4,'height':_0xebd664,'evented':!0x1,'zIndex':bt};return new Pe(_0x47bfe3,_0x1ee449);});_0x28032b[_0x58ac03(0x35f)](_0x1638ca,gt),this[_0x58ac03(0x238)]=new Set(_0x1638ca);}[_0x2af163(0x33a)](){const _0x1b3e88=_0x2af163;var _0x4a1bb2;(_0x4a1bb2=this[_0x1b3e88(0x238)])==null||_0x4a1bb2[_0x1b3e88(0x237)](_0x21cc5a=>_0x21cc5a['dispose']());}[_0x2af163(0x1e0)](){const _0x14d6ba=_0x2af163;return X[_0x14d6ba(0x2c0)](this[_0x14d6ba(0x180)][_0x14d6ba(0x196)],this[_0x14d6ba(0x180)]);}};ve=pt([ae(0x1,a[_0x2af163(0x30b)](X[_0x2af163(0x322)])),ae(0x2,a[_0x2af163(0x30b)](x)),ae(0x3,a[_0x2af163(0x30b)](a[_0x2af163(0x24b)]))],ve);function Et(_0x1eeb1c){const _0x19ecff=_0x2af163,_0x5010d2=new Map();return _0x1eeb1c['forEach'](_0x3e62fa=>{const _0x1cf57b=_0x293b;if(_0x5010d2[_0x1cf57b(0x2cd)](_0x3e62fa[_0x1cf57b(0x1ff)])){const _0x271587=_0x5010d2[_0x1cf57b(0x18c)](_0x3e62fa[_0x1cf57b(0x1ff)]);_0x271587[_0x1cf57b(0x17c)]+=',\x20'+_0x3e62fa[_0x1cf57b(0x17c)];}else _0x5010d2['set'](_0x3e62fa[_0x1cf57b(0x1ff)],_0x3e62fa);}),Array[_0x19ecff(0x2bd)](_0x5010d2['values']());}var E=function(){const _0x5e5e8a=_0x2af163;return E=Object[_0x5e5e8a(0x312)]||function(_0x13ead4){const _0x2e5da1=_0x5e5e8a;for(var _0x2650da,_0x4b2bf3=0x1,_0x5a724b=arguments[_0x2e5da1(0x2de)];_0x4b2bf3<_0x5a724b;_0x4b2bf3++){_0x2650da=arguments[_0x4b2bf3];for(var _0x229f9c in _0x2650da)Object['prototype'][_0x2e5da1(0x2fb)]['call'](_0x2650da,_0x229f9c)&&(_0x13ead4[_0x229f9c]=_0x2650da[_0x229f9c]);}return _0x13ead4;},E['apply'](this,arguments);},Tt=function(_0x280b55,_0x296cd6){const _0x49e15b=_0x2af163;var _0x1e25a3={};for(var _0x458853 in _0x280b55)Object['prototype'][_0x49e15b(0x2fb)][_0x49e15b(0x351)](_0x280b55,_0x458853)&&_0x296cd6['indexOf'](_0x458853)<0x0&&(_0x1e25a3[_0x458853]=_0x280b55[_0x458853]);if(_0x280b55!=null&&typeof Object[_0x49e15b(0x340)]==_0x49e15b(0x1f5)){for(var _0xe882cb=0x0,_0x458853=Object[_0x49e15b(0x340)](_0x280b55);_0xe882cb<_0x458853[_0x49e15b(0x2de)];_0xe882cb++)_0x296cd6[_0x49e15b(0x3a7)](_0x458853[_0xe882cb])<0x0&&Object['prototype'][_0x49e15b(0x270)][_0x49e15b(0x351)](_0x280b55,_0x458853[_0xe882cb])&&(_0x1e25a3[_0x458853[_0xe882cb]]=_0x280b55[_0x458853[_0xe882cb]]);}return _0x1e25a3;},pe=M[_0x2af163(0x184)](function(_0x3363eb,_0x1726b2){const _0x11740b=_0x2af163;var _0x4f165c=_0x3363eb[_0x11740b(0x147)],_0x88bceb=_0x3363eb['id'],_0x16a841=_0x3363eb['className'],_0x41a510=_0x3363eb[_0x11740b(0x271)],_0x18d356=Tt(_0x3363eb,[_0x11740b(0x147),'id',_0x11740b(0x234),_0x11740b(0x271)]),_0x3d9f76='univerjs-icon\x20univerjs-icon-'[_0x11740b(0x39f)](_0x88bceb,'\x20')[_0x11740b(0x39f)](_0x16a841||'')[_0x11740b(0x149)](),_0x11293b=M[_0x11740b(0x155)]('_'[_0x11740b(0x39f)](Dt()));return Ae(_0x4f165c,''[_0x11740b(0x39f)](_0x88bceb),{'defIds':_0x4f165c[_0x11740b(0x399)],'idSuffix':_0x11293b['current']},E({'ref':_0x1726b2,'className':_0x3d9f76},_0x18d356),_0x41a510);});function Ae(_0xfe8146,_0x2ea0b7,_0x1774e9,_0x33911d,_0x2313a4){const _0x1bab74=_0x2af163;return M['createElement'](_0xfe8146[_0x1bab74(0x280)],E(E({'key':_0x2ea0b7},Ot(_0xfe8146,_0x1774e9,_0x2313a4)),_0x33911d),(Rt(_0xfe8146,_0x1774e9)[_0x1bab74(0x24e)]||[])[_0x1bab74(0x220)](function(_0x5b83e4,_0x17ddae){const _0x437763=_0x1bab74;return Ae(_0x5b83e4,''[_0x437763(0x39f)](_0x2ea0b7,'-')[_0x437763(0x39f)](_0xfe8146[_0x437763(0x280)],'-')[_0x437763(0x39f)](_0x17ddae),_0x1774e9,void 0x0,_0x2313a4);}));}function Ot(_0x34254f,_0x96c7b8,_0x11ac47){const _0x210cbc=_0x2af163;var _0x17563b=E({},_0x34254f[_0x210cbc(0x37f)]);_0x11ac47!=null&&_0x11ac47[_0x210cbc(0x1ef)]&&_0x17563b[_0x210cbc(0x162)]===_0x210cbc(0x1ef)&&(_0x17563b['fill']=_0x11ac47['colorChannel1']),_0x34254f[_0x210cbc(0x280)]===_0x210cbc(0x1ce)&&_0x17563b['id']&&(_0x17563b['id']=_0x17563b['id']+_0x96c7b8['idSuffix']),Object[_0x210cbc(0x361)](_0x17563b)[_0x210cbc(0x237)](function(_0x4411c3){const _0x3890af=_0x210cbc;var _0x5857a8=_0x4411c3[0x0],_0x1cc3df=_0x4411c3[0x1];_0x5857a8===_0x3890af(0x1ce)&&typeof _0x1cc3df==_0x3890af(0x2d2)&&(_0x17563b[_0x5857a8]=_0x1cc3df['replace'](/url\(#(.*)\)/,_0x3890af(0x225)[_0x3890af(0x39f)](_0x96c7b8[_0x3890af(0x27f)],')')));});var _0x5b9bfc=_0x96c7b8[_0x210cbc(0x399)];return!_0x5b9bfc||_0x5b9bfc['length']===0x0||(_0x34254f['tag']===_0x210cbc(0x380)&&_0x17563b[_0x210cbc(0x3bc)]&&(_0x17563b[_0x210cbc(0x3bc)]=_0x17563b[_0x210cbc(0x3bc)]+_0x96c7b8[_0x210cbc(0x27f)]),Object['entries'](_0x17563b)[_0x210cbc(0x237)](function(_0x574964){const _0x53b3b1=_0x210cbc;var _0x35bb67=_0x574964[0x0],_0x3d60b5=_0x574964[0x1];typeof _0x3d60b5==_0x53b3b1(0x2d2)&&(_0x17563b[_0x35bb67]=_0x3d60b5['replace'](/url\(#(.*)\)/,_0x53b3b1(0x225)[_0x53b3b1(0x39f)](_0x96c7b8[_0x53b3b1(0x27f)],')')));})),_0x17563b;}function Rt(_0xc8ad47,_0x76da0e){const _0xf22619=_0x2af163;var _0x386520,_0x432d81=_0x76da0e['defIds'];return!_0x432d81||_0x432d81[_0xf22619(0x2de)]===0x0?_0xc8ad47:_0xc8ad47['tag']===_0xf22619(0x1e9)&&(!((_0x386520=_0xc8ad47['children'])===null||_0x386520===void 0x0)&&_0x386520[_0xf22619(0x2de)])?E(E({},_0xc8ad47),{'children':_0xc8ad47[_0xf22619(0x24e)][_0xf22619(0x220)](function(_0x3bfe4d){const _0x2237d5=_0xf22619;return typeof _0x3bfe4d['attrs']['id']==_0x2237d5(0x2d2)&&_0x432d81&&_0x432d81[_0x2237d5(0x187)](_0x3bfe4d[_0x2237d5(0x37f)]['id'])?E(E({},_0x3bfe4d),{'attrs':E(E({},_0x3bfe4d[_0x2237d5(0x37f)]),{'id':_0x3bfe4d[_0x2237d5(0x37f)]['id']+_0x76da0e['idSuffix']})}):_0x3bfe4d;})}):_0xc8ad47;}function Dt(){const _0x123f98=_0x2af163;return Math[_0x123f98(0x14c)]()[_0x123f98(0x2b1)](0x24)[_0x123f98(0x1da)](0x2,0x8);}pe[_0x2af163(0x36c)]=_0x2af163(0x328);var Ut={'tag':_0x2af163(0x3a2),'attrs':{'xmlns':_0x2af163(0x306),'fill':_0x2af163(0x313),'viewBox':_0x2af163(0x1aa),'width':'1em','height':_0x2af163(0x1e4)},'children':[{'tag':'g','attrs':{'clipPath':_0x2af163(0x1c7)},'children':[{'tag':'path','attrs':{'stroke':_0x2af163(0x1e7),'d':'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','strokeLinecap':_0x2af163(0x27a),'strokeLinejoin':_0x2af163(0x27a),'strokeWidth':1.2}}]},{'tag':_0x2af163(0x1e9),'attrs':{},'children':[{'tag':_0x2af163(0x19b),'attrs':{'id':_0x2af163(0x18b)},'children':[{'tag':'path','attrs':{'fill':_0x2af163(0x298),'d':_0x2af163(0x2c2)}}]}]}],'defIds':[_0x2af163(0x18b)]},ye=M[_0x2af163(0x184)](function(_0x38c042,_0x5006f6){const _0xdf4270=_0x2af163;return M['createElement'](pe,Object[_0xdf4270(0x312)]({},_0x38c042,{'id':_0xdf4270(0x3bd),'ref':_0x5006f6,'icon':Ut}));});ye['displayName']='OffLineIcon';var Nt={'tag':'svg','attrs':{'xmlns':_0x2af163(0x306),'fill':'none','viewBox':_0x2af163(0x2f3),'width':'1em','height':_0x2af163(0x1e4)},'children':[{'tag':'g','attrs':{'clipPath':_0x2af163(0x292)},'children':[{'tag':_0x2af163(0x1e5),'attrs':{'stroke':'currentColor','d':_0x2af163(0x300),'strokeLinecap':_0x2af163(0x27a),'strokeLinejoin':'round','strokeWidth':1.2}}]},{'tag':_0x2af163(0x1e9),'attrs':{},'children':[{'tag':'clipPath','attrs':{'id':'on-line-icon_clip0_910_349'},'children':[{'tag':'path','attrs':{'fill':_0x2af163(0x298),'d':'M0\x200H16V16H0z','transform':_0x2af163(0x2f9)}}]}]}],'defIds':[_0x2af163(0x36f)]},$e=M['forwardRef'](function(_0x1025a9,_0x3cbdc3){const _0x269607=_0x2af163;return M[_0x269607(0x1ee)](pe,Object[_0x269607(0x312)]({},_0x1025a9,{'id':'on-line-icon','ref':_0x3cbdc3,'icon':Nt}));});$e[_0x2af163(0x36c)]=_0x2af163(0x301);function Mt(_0x234537){const _0x1feb56=_0x2af163;switch(_0x234537){case u[_0x1feb56(0x33f)][_0x1feb56(0x31c)]:return _0x1feb56(0x23d);case u['CollaborationStatus'][_0x1feb56(0x1db)]:return _0x1feb56(0x1de);case u[_0x1feb56(0x33f)][_0x1feb56(0x20b)]:return'collabStatus.fetchMiss';case u[_0x1feb56(0x33f)]['NOT_COLLAB']:return _0x1feb56(0x37b);case u[_0x1feb56(0x33f)][_0x1feb56(0x1c5)]:case u['CollaborationStatus'][_0x1feb56(0x169)]:return _0x1feb56(0x16a);case u[_0x1feb56(0x33f)]['SYNCED']:case u[_0x1feb56(0x33f)][_0x1feb56(0x205)]:return _0x1feb56(0x2c7);}}function xe(_0x16020e){const _0x54f19d=_0x2af163,{status$:_0x21cd71}=_0x16020e,_0xe2f104=T[_0x54f19d(0x264)](_0x21cd71,u[_0x54f19d(0x33f)][_0x54f19d(0x291)]),_0x36814c=T[_0x54f19d(0x24f)](a[_0x54f19d(0x255)]),_0x556e87=T[_0x54f19d(0x24f)](u['CollaborationSessionService']),_0x1251a8=_0xe2f104!==u[_0x54f19d(0x33f)]['OFFLINE'],_0x2e0f16=_0x36814c['t'](Mt(_0xe2f104)),_0x2e7e0c=_0x1251a8?w[_0x54f19d(0x1b7)]($e,{}):w['jsx'](ye,{}),_0x43b152=M['useCallback'](()=>{const _0x3ab290=_0x54f19d;_0x1251a8||_0x556e87[_0x3ab290(0x164)]();},[_0x1251a8,_0x556e87]);function _0x3b43e7(){const _0x29ce63=_0x54f19d;return w['jsxs'](_0x29ce63(0x396),{'className':'univer-flex\x20univer-items-center','onClick':_0x43b152,'children':[w[_0x29ce63(0x1b7)](_0x29ce63(0x396),{'className':D['clsx'](_0x29ce63(0x19e),{'univer-text-green-500':_0x1251a8,'univer-text-red-500':!_0x1251a8}),'children':_0x2e7e0c}),w[_0x29ce63(0x1b7)]('div',{'className':_0x29ce63(0x21c),'children':_0x2e0f16})]});}return _0x1251a8?_0x3b43e7():w[_0x54f19d(0x1b7)](D[_0x54f19d(0x1b1)],{'title':_0x36814c['t']('collab-client.tooltip.reconnect'),'children':_0x3b43e7()});}var Lt=Object[_0x2af163(0x330)],wt=(_0x451ef3,_0x58f8b3,_0x8445ce,_0x1e3a15)=>{const _0x353684=_0x2af163;for(var _0x2cfabb=_0x1e3a15>0x1?void 0x0:_0x1e3a15?Lt(_0x58f8b3,_0x8445ce):_0x58f8b3,_0x3ef59b=_0x451ef3[_0x353684(0x2de)]-0x1,_0x5977db;_0x3ef59b>=0x0;_0x3ef59b--)(_0x5977db=_0x451ef3[_0x3ef59b])&&(_0x2cfabb=_0x5977db(_0x2cfabb)||_0x2cfabb);return _0x2cfabb;},V=(_0x22a3eb,_0xb78d21)=>(_0x4b8a2f,_0x4e3d16)=>_0xb78d21(_0x4b8a2f,_0x4e3d16,_0x22a3eb);exports['DesktopCollaborationStatusDisplayController']=class extends a['Disposable']{constructor(_0x45c7f9,_0x11754d,_0x1afc2b,_0x365cee){const _0x15aeef=_0x2af163;super(),h(this,_0x15aeef(0x329),new d[(_0x15aeef(0x201))](u[_0x15aeef(0x33f)][_0x15aeef(0x291)])),(this['_univerInstanceService']=_0x45c7f9,this[_0x15aeef(0x268)]=_0x11754d,this[_0x15aeef(0x1eb)]=_0x1afc2b,this[_0x15aeef(0x27e)]=_0x365cee,this['_initStatusComponent'](),this['_initStatusListener']());}[_0x2af163(0x1b0)](){const _0x46e327=_0x2af163;this[_0x46e327(0x1f8)](this[_0x46e327(0x2d0)][_0x46e327(0x2ed)][_0x46e327(0x26a)](d['switchMap'](()=>{const _0x11477f=_0x46e327,_0x403420=this[_0x11477f(0x2d0)][_0x11477f(0x283)]();return _0x403420?this['_collaborationController'][_0x11477f(0x304)](_0x403420[_0x11477f(0x2fa)]()):d['of'](null);}),d[_0x46e327(0x33d)](_0x5d96f9=>_0x5d96f9?_0x5d96f9[_0x46e327(0x1c0)]:d['of'](u[_0x46e327(0x33f)][_0x46e327(0x291)])))['subscribe'](_0x4572ac=>{const _0x577a18=_0x46e327;this['_status$'][_0x577a18(0x355)](_0x4572ac);}));}[_0x2af163(0x2ea)](){const _0x3d652a=_0x2af163;this[_0x3d652a(0x1f8)](this[_0x3d652a(0x27e)][_0x3d652a(0x21b)](T['BuiltInUIPart'][_0x3d652a(0x267)],()=>T['connectInjector'](Pt({'status$':this[_0x3d652a(0x329)]['asObservable']()}),this[_0x3d652a(0x268)])));}},exports['DesktopCollaborationStatusDisplayController']=wt([V(0x0,a[_0x2af163(0x3ad)]),V(0x1,a[_0x2af163(0x30b)](a['Injector'])),V(0x2,a[_0x2af163(0x30b)](u[_0x2af163(0x391)])),V(0x3,T[_0x2af163(0x1cb)])],exports[_0x2af163(0x39d)]);function Pt(_0x4e4808){const {status$:_0x8474f2}=_0x4e4808;return function(){return w['jsx'](xe,{'status$':_0x8474f2});};}var At=Object[_0x2af163(0x330)],yt=(_0x56116d,_0x107ce9,_0x40a159,_0x5e0336)=>{const _0x2f8413=_0x2af163;for(var _0x2ec023=_0x5e0336>0x1?void 0x0:_0x5e0336?At(_0x107ce9,_0x40a159):_0x107ce9,_0x29c0e5=_0x56116d[_0x2f8413(0x2de)]-0x1,_0x10224a;_0x29c0e5>=0x0;_0x29c0e5--)(_0x10224a=_0x56116d[_0x29c0e5])&&(_0x2ec023=_0x10224a(_0x2ec023)||_0x2ec023);return _0x2ec023;},y=(_0x3750ce,_0x8ffa9e)=>(_0x5c32bc,_0x188dbe)=>_0x8ffa9e(_0x5c32bc,_0x188dbe,_0x3750ce);let q=class extends a[_0x2af163(0x1e8)]{constructor(_0x119dda,_0x4289f5,_0xf1f497,_0x5b7e4c,_0x56cfd6,_0x2a6942){const _0x598a13=_0x2af163;super(),this[_0x598a13(0x2a2)]=_0x119dda,this[_0x598a13(0x295)]=_0x4289f5,this[_0x598a13(0x232)]=_0xf1f497,this[_0x598a13(0x19a)]=_0x5b7e4c,this[_0x598a13(0x2ab)]=_0x56cfd6,this[_0x598a13(0x28f)]=_0x2a6942,this[_0x598a13(0x181)](),this[_0x598a13(0x357)]();}[_0x2af163(0x181)](){const _0x226dbe=_0x2af163;this[_0x226dbe(0x1f8)](this[_0x226dbe(0x2a2)][_0x226dbe(0x15b)](()=>{const _0x5f22c8=_0x226dbe;if(this[_0x5f22c8(0x295)]['saveTaskMap'][_0x5f22c8(0x148)])return this[_0x5f22c8(0x28f)]['t']('collaboration-client.offline-data-not-saved');}));}['_initEvent'](){const _0x2bd7ab=_0x2af163;this[_0x2bd7ab(0x1f8)](this[_0x2bd7ab(0x232)][_0x2bd7ab(0x378)][_0x2bd7ab(0x2fe)](_0x2c78ea=>{const _0x19818e=_0x2bd7ab;_0x2c78ea['id']===u[_0x19818e(0x1a1)]['OTHER_CLIENT_EDITING']&&this[_0x19818e(0x19a)][_0x19818e(0x29d)]({'type':D[_0x19818e(0x2f7)][_0x19818e(0x2a6)],'content':this[_0x19818e(0x28f)]['t'](_0x19818e(0x1fc))}),_0x2c78ea['id']===u['CollaborationUIEventId']['CLOSE_ROOM']&&this[_0x19818e(0x19a)][_0x19818e(0x29d)]({'type':D['MessageType'][_0x19818e(0x2a6)],'content':this[_0x19818e(0x28f)]['t']('collaboration.closeRoom')}),_0x2c78ea['id']===u['CollaborationUIEventId']['PERMISSION_DENIED']&&this[_0x19818e(0x2ab)]['show']({'title':this[_0x19818e(0x28f)]['t'](_0x19818e(0x2f2)),'content':this['_localeService']['t']('permission.content'),'type':_0x19818e(0x23e),'duration':0x0}),_0x2c78ea['id']===u[_0x19818e(0x1a1)][_0x19818e(0x1db)]&&this['_messageService'][_0x19818e(0x29d)]({'type':D['MessageType'][_0x19818e(0x248)],'content':this[_0x19818e(0x28f)]['t'](_0x19818e(0x247))+'('+_0x2c78ea[_0x19818e(0x375)]+')'}),_0x2c78ea['id']===u[_0x19818e(0x1a1)][_0x19818e(0x14f)]&&this[_0x19818e(0x19a)][_0x19818e(0x29d)]({'type':D[_0x19818e(0x2f7)][_0x19818e(0x2a6)],'content':this[_0x19818e(0x28f)]['t'](_0x2c78ea['data']||'')}),_0x2c78ea['id']===u[_0x19818e(0x1a1)]['SOCKET_FAILED_RETRY']&&this[_0x19818e(0x19a)]['show']({'type':D['MessageType']['Warning'],'content':this[_0x19818e(0x28f)]['t']('session.will-retry')}),_0x2c78ea['id']===u['CollaborationUIEventId'][_0x19818e(0x252)]&&this['_messageService'][_0x19818e(0x29d)]({'type':D[_0x19818e(0x2f7)]['Error'],'content':this[_0x19818e(0x28f)]['t']('session.connection-failed')}),_0x2c78ea['id']===u['CollaborationUIEventId'][_0x19818e(0x183)]&&this[_0x19818e(0x19a)][_0x19818e(0x29d)]({'type':D[_0x19818e(0x2f7)][_0x19818e(0x248)],'content':this[_0x19818e(0x28f)]['t'](_0x19818e(0x2cc))});}));}};q=yt([y(0x0,T['IBeforeCloseService']),y(0x1,u[_0x2af163(0x31e)]),y(0x2,a[_0x2af163(0x30b)](u[_0x2af163(0x1fd)])),y(0x3,T[_0x2af163(0x168)]),y(0x4,T[_0x2af163(0x26f)]),y(0x5,a[_0x2af163(0x30b)](a[_0x2af163(0x255)]))],q);const $t=_0x2af163(0x2b7),Ue={},be=a[_0x2af163(0x290)]('uni.network.url-service');var xt=Object[_0x2af163(0x330)],jt=(_0x5b4b64,_0x4dbc86,_0x7ea5f4,_0x25e726)=>{const _0x4c4291=_0x2af163;for(var _0x12234f=_0x25e726>0x1?void 0x0:_0x25e726?xt(_0x4dbc86,_0x7ea5f4):_0x4dbc86,_0x5a942c=_0x5b4b64[_0x4c4291(0x2de)]-0x1,_0xebbc48;_0x5a942c>=0x0;_0x5a942c--)(_0xebbc48=_0x5b4b64[_0x5a942c])&&(_0x12234f=_0xebbc48(_0x12234f)||_0x12234f);return _0x12234f;},H=(_0x5948f7,_0x20c07b)=>(_0x80f3bc,_0x3e7226)=>_0x20c07b(_0x80f3bc,_0x3e7226,_0x5948f7);exports['CollaborationDataLoaderController']=class extends a[_0x2af163(0x17a)]{constructor(_0x2acbff,_0x36b886,_0x38aa0a,_0x5862c5,_0x326d62){const _0x34b3b3=_0x2af163;super(),this['_urlService']=_0x2acbff,this[_0x34b3b3(0x178)]=_0x36b886,this[_0x34b3b3(0x236)]=_0x38aa0a,this[_0x34b3b3(0x36a)]=_0x5862c5,_0x326d62?_0x326d62==null||_0x326d62[_0x34b3b3(0x240)]()['then'](()=>this[_0x34b3b3(0x2bf)]()):(this[_0x34b3b3(0x178)]['debug'](_0x34b3b3(0x3b0),_0x34b3b3(0x2e6)),this['_init']());}async[_0x2af163(0x2bf)](){const _0x1fd8a1=_0x2af163,_0x1d931d=this[_0x1fd8a1(0x197)][_0x1fd8a1(0x174)](_0x1fd8a1(0x196)),_0x493f76=this[_0x1fd8a1(0x197)]['getParam'](_0x1fd8a1(0x2f8)),_0x23b04b=this[_0x1fd8a1(0x197)][_0x1fd8a1(0x174)](_0x1fd8a1(0x166));if(!_0x1d931d||!_0x493f76){this[_0x1fd8a1(0x178)][_0x1fd8a1(0x170)](_0x1fd8a1(0x3b0),'No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.');return;}const _0x108afb=await this[_0x1fd8a1(0x36a)][_0x1fd8a1(0x204)](_0x1d931d,Number(_0x493f76),_0x23b04b);_0x108afb&&_0x108afb instanceof a[_0x1fd8a1(0x1cc)]&&this[_0x1fd8a1(0x221)](_0x108afb);}async[_0x2af163(0x221)](_0x186814){const _0x594a54=_0x2af163;await this[_0x594a54(0x376)](_0x186814),_0x186814[_0x594a54(0x3c4)][_0x594a54(0x26a)](d['takeUntil'](this['dispose$']))['subscribe'](_0x195907=>{_0x195907&&this['_updateURLWithCurrentState'](_0x195907);}),this['_urlService'][_0x594a54(0x2f6)]['pipe'](d['takeUntil'](this['dispose$']))['subscribe'](()=>this[_0x594a54(0x376)](_0x186814));}[_0x2af163(0x3ac)](_0x48d6c4,_0x5f50da=!0x1){const _0xa6423b=_0x2af163,_0x30e509=this[_0xa6423b(0x197)][_0xa6423b(0x174)](_0xa6423b(0x166));_0x48d6c4[_0xa6423b(0x215)]()!==_0x30e509&&this[_0xa6423b(0x197)][_0xa6423b(0x356)](_0xa6423b(0x166),_0x48d6c4[_0xa6423b(0x215)](),_0x5f50da);}async[_0x2af163(0x376)](_0x51e652){const _0x24015a=_0x2af163;var _0x454cf7;const _0x41545f=this[_0x24015a(0x197)][_0x24015a(0x174)](_0x24015a(0x166));if(!_0x41545f||!_0x51e652[_0x24015a(0x1a5)](_0x41545f)){const _0xaaf6f0=_0x51e652[_0x24015a(0x272)]()[0x0],_0x3dc550=_0x51e652[_0x24015a(0x1a5)](_0xaaf6f0);if(!_0x3dc550)return;this['_updateURLWithCurrentState'](_0x3dc550,!0x0),await this[_0x24015a(0x236)][_0x24015a(0x2ec)](g[_0x24015a(0x39a)]['id'],{'unitId':_0x51e652[_0x24015a(0x2fa)](),'subUnitId':_0xaaf6f0});return;}((_0x454cf7=_0x51e652[_0x24015a(0x338)]())==null?void 0x0:_0x454cf7['getSheetId']())!==_0x41545f&&await this['_commandService'][_0x24015a(0x2ec)](g[_0x24015a(0x39a)]['id'],{'unitId':_0x51e652[_0x24015a(0x2fa)](),'subUnitId':_0x41545f});}},exports[_0x2af163(0x381)]=jt([H(0x0,be),H(0x1,a['ILogService']),H(0x2,a[_0x2af163(0x321)]),H(0x3,a[_0x2af163(0x30b)](u['DataLoaderService'])),H(0x4,a[_0x2af163(0x1ea)](Ke[_0x2af163(0x230)]))],exports[_0x2af163(0x381)]);function _0x293b(_0x2f8e82,_0x35439c){const _0x401a6e=_0x401a();return _0x293b=function(_0x293b87,_0x1d1b44){_0x293b87=_0x293b87-0x146;let _0x3ae0c9=_0x401a6e[_0x293b87];return _0x3ae0c9;},_0x293b(_0x2f8e82,_0x35439c);}var Bt=Object[_0x2af163(0x330)],kt=(_0x596eb4,_0xa1b805,_0x54de2e,_0x12e242)=>{const _0x5efe3e=_0x2af163;for(var _0xa99243=_0x12e242>0x1?void 0x0:_0x12e242?Bt(_0xa1b805,_0x54de2e):_0xa1b805,_0x2ef165=_0x596eb4[_0x5efe3e(0x2de)]-0x1,_0x35479d;_0x2ef165>=0x0;_0x2ef165--)(_0x35479d=_0x596eb4[_0x2ef165])&&(_0xa99243=_0x35479d(_0xa99243)||_0xa99243);return _0xa99243;},ce=(_0x40f99e,_0x59c996)=>(_0x471a9a,_0x3d60a3)=>_0x59c996(_0x471a9a,_0x3d60a3,_0x40f99e);let z=class{constructor(_0x20f873,_0x3aac30,_0x2e353c){const _0x361b9f=_0x2af163;this[_0x361b9f(0x268)]=_0x20f873,this['_transformService']=_0x3aac30,this[_0x361b9f(0x226)]=_0x2e353c;}['transformIMECache'](_0x3865ef){const _0x3500ca=_0x2af163;this[_0x3500ca(0x39b)](_0x3865ef),this['_transformPreviousActiveRange'](_0x3865ef);}[_0x2af163(0x1d7)](_0x211518){const _0x12601a=_0x2af163,{unitID:_0xeb906e}=_0x211518,_0x56c021=this['_renderManagerService'][_0x12601a(0x18d)](_0xeb906e)[_0x12601a(0x269)](b['DocIMEInputManagerService']),{redoCache:_0x59d781}=_0x56c021['getUndoRedoMutationParamsCache']();if(_0x59d781[_0x12601a(0x2de)]===0x0)return _0x211518;let _0x46a16d=a[_0x12601a(0x150)]['deepClone'](_0x211518[_0x12601a(0x16b)][0x0]);for(let _0x1bbae4=0x0;_0x1bbae4<_0x59d781[_0x12601a(0x2de)];_0x1bbae4++){const _0x4a3cbd={'id':_0x12601a(0x2a9),'params':{..._0x59d781[_0x1bbae4]}},_0x23d519=this[_0x12601a(0x39c)][_0x12601a(0x2ce)](_0x46a16d,_0x4a3cbd,!0x1);if(m[_0x12601a(0x250)](_0x23d519))throw _0x23d519[_0x12601a(0x23e)];_0x46a16d=_0x23d519['m1Prime'];}return{...a[_0x12601a(0x150)]['deepClone'](_0x211518),'mutations':[_0x46a16d]};}[_0x2af163(0x39b)](_0x10bffd){const _0x2c0690=_0x2af163,{unitID:_0x50c2e}=_0x10bffd,_0x531014=this[_0x2c0690(0x226)][_0x2c0690(0x18d)](_0x50c2e)[_0x2c0690(0x269)](b[_0x2c0690(0x235)]),{undoCache:_0x295747,redoCache:_0x5224ac}=_0x531014[_0x2c0690(0x2c8)]();if(_0x295747[_0x2c0690(0x2de)]===0x0||_0x5224ac['length']===0x0)return;const _0x4b510e=[],_0x5c1a85=[];let _0x95e968=a['Tools']['deepClone'](_0x10bffd[_0x2c0690(0x16b)][0x0]),_0x296336=a[_0x2c0690(0x150)]['deepClone'](_0x10bffd['mutations'][0x0]);for(let _0x14c3bb=_0x295747[_0x2c0690(0x2de)]-0x1;_0x14c3bb>=0x0;_0x14c3bb--){const _0x4897e1={'id':_0x2c0690(0x2a9),'params':{..._0x295747[_0x14c3bb]}},_0x3b8cb3={'id':'doc.mutation.rich-text-editing','params':{..._0x5224ac[_0x14c3bb]}},_0x25641a=this['_transformService'][_0x2c0690(0x2ce)](_0x95e968,_0x4897e1,!0x1),_0x23a6ba=this['_transformService']['transformMutation'](_0x296336,_0x3b8cb3,!0x1);if(m['isTransformMutationFailure'](_0x25641a))throw _0x25641a[_0x2c0690(0x23e)];if(m[_0x2c0690(0x250)](_0x23a6ba))throw _0x23a6ba[_0x2c0690(0x23e)];_0x4b510e[_0x2c0690(0x296)](_0x25641a[_0x2c0690(0x263)][_0x2c0690(0x19d)]),_0x5c1a85[_0x2c0690(0x296)](_0x23a6ba['m2Prime'][_0x2c0690(0x19d)]),_0x95e968=_0x25641a[_0x2c0690(0x30c)],_0x296336=_0x23a6ba[_0x2c0690(0x30c)];}_0x531014[_0x2c0690(0x224)]({'undoCache':_0x4b510e,'redoCache':_0x5c1a85});}[_0x2af163(0x38d)](_0x409ce4){const _0x27f2dc=_0x2af163,{unitID:_0x2f26ca}=_0x409ce4,_0x461234=this[_0x27f2dc(0x226)][_0x27f2dc(0x18d)](_0x2f26ca)[_0x27f2dc(0x269)](b[_0x27f2dc(0x235)]),_0x18c10d=_0x461234[_0x27f2dc(0x34f)]();if(_0x18c10d==null)return;const _0x4fc8ec=[{'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x409ce4[_0x27f2dc(0x2a5)],'actions':null,'textRanges':[_0x18c10d]}}],_0x58fe29=this['_transformService'][_0x27f2dc(0x3c5)](_0x409ce4,_0x4fc8ec);if(!m[_0x27f2dc(0x3c1)](_0x58fe29))throw _0x58fe29[_0x27f2dc(0x23e)];const _0x23db68=_0x58fe29[_0x27f2dc(0x263)][0x0][_0x27f2dc(0x19d)][_0x27f2dc(0x206)];Array['isArray'](_0x23db68)&&_0x23db68[_0x27f2dc(0x2de)]&&_0x461234['setActiveRange'](_0x23db68[0x0]);}};z=kt([ce(0x0,a[_0x2af163(0x30b)](a[_0x2af163(0x2bb)])),ce(0x1,m[_0x2af163(0x1e6)]),ce(0x2,p[_0x2af163(0x15d)])],z);var Ht=Object['getOwnPropertyDescriptor'],Ft=(_0x340acd,_0x2a1637,_0x536cfd,_0x58cc44)=>{const _0x2b6a09=_0x2af163;for(var _0x5e9810=_0x58cc44>0x1?void 0x0:_0x58cc44?Ht(_0x2a1637,_0x536cfd):_0x2a1637,_0x46f8b9=_0x340acd[_0x2b6a09(0x2de)]-0x1,_0x3707c8;_0x46f8b9>=0x0;_0x46f8b9--)(_0x3707c8=_0x340acd[_0x46f8b9])&&(_0x5e9810=_0x3707c8(_0x5e9810)||_0x5e9810);return _0x5e9810;},le=(_0x3b3f82,_0x1d0afd)=>(_0xcf1c70,_0x3e9a87)=>_0x1d0afd(_0xcf1c70,_0x3e9a87,_0x3b3f82);let J=class{constructor(_0x2b981b,_0x400277,_0x3d88b9){const _0x780ad6=_0x2af163;this[_0x780ad6(0x268)]=_0x2b981b,this[_0x780ad6(0x39c)]=_0x400277,this[_0x780ad6(0x1be)]=_0x3d88b9;}['transformStateCache'](_0x1f6fde){const _0x43796f=_0x2af163;this[_0x43796f(0x390)](_0x1f6fde);}['transformRemoteChangeset'](_0x23efa4){const _0x1ac172=_0x2af163,{unitID:_0x34b8af}=_0x23efa4,{collaboration:_0x412e2f}=this[_0x1ac172(0x1be)][_0x1ac172(0x277)](_0x34b8af);if(_0x412e2f[_0x1ac172(0x2de)]===0x0)return _0x23efa4;let _0x2d5531=a['Tools'][_0x1ac172(0x29b)](_0x23efa4['mutations'][0x0]);for(let _0x52f788=0x0;_0x52f788<_0x412e2f[_0x1ac172(0x2de)];_0x52f788++){const _0x2914b6={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x412e2f[_0x52f788]['unitId'],..._0x412e2f[_0x52f788][_0x1ac172(0x22a)]}},_0x36d3a5=this[_0x1ac172(0x39c)][_0x1ac172(0x2ce)](_0x2d5531,_0x2914b6,!0x1);if(m[_0x1ac172(0x250)](_0x36d3a5))throw _0x36d3a5[_0x1ac172(0x23e)];_0x2d5531=_0x36d3a5[_0x1ac172(0x30c)];}return{...a['Tools'][_0x1ac172(0x29b)](_0x23efa4),'mutations':[_0x2d5531]};}[_0x2af163(0x390)](_0x19c309){const _0x44c7d9=_0x2af163,{unitID:_0x3c2061}=_0x19c309,{history:_0x70bbf1,collaboration:_0xbb86be}=this['_docStateChangeManagerService']['getStateCache'](_0x3c2061);if(_0x70bbf1[_0x44c7d9(0x2de)]===0x0&&_0xbb86be[_0x44c7d9(0x2de)]===0x0)return;const _0x22513c=[],_0xa73598=[];let _0x53a908=a[_0x44c7d9(0x150)][_0x44c7d9(0x29b)](_0x19c309['mutations'][0x0]),_0x1f933d=a[_0x44c7d9(0x150)]['deepClone'](_0x19c309[_0x44c7d9(0x16b)][0x0]);for(let _0x38dfaf=_0x70bbf1[_0x44c7d9(0x2de)]-0x1;_0x38dfaf>=0x0;_0x38dfaf--){const _0x90585={'id':_0x44c7d9(0x2a9),'params':{'unitId':_0x70bbf1[_0x38dfaf][_0x44c7d9(0x25c)],..._0x70bbf1[_0x38dfaf][_0x44c7d9(0x146)]}},_0x57cd44={'id':_0x44c7d9(0x2a9),'params':{'unitId':_0x70bbf1[_0x38dfaf][_0x44c7d9(0x25c)],..._0x70bbf1[_0x38dfaf][_0x44c7d9(0x22a)]}},_0x40f31c=this['_transformService']['transformMutation'](_0x53a908,_0x90585,!0x1),_0x430a97=this['_transformService'][_0x44c7d9(0x2ce)](_0x1f933d,_0x57cd44,!0x1);if(m[_0x44c7d9(0x250)](_0x40f31c))throw _0x40f31c[_0x44c7d9(0x23e)];if(m['isTransformMutationFailure'](_0x430a97))throw _0x430a97['error'];_0x22513c['unshift']({..._0x70bbf1[_0x38dfaf],'undoState':_0x40f31c[_0x44c7d9(0x263)][_0x44c7d9(0x19d)],'redoState':_0x430a97['m2Prime'][_0x44c7d9(0x19d)]}),_0x53a908=_0x40f31c[_0x44c7d9(0x30c)],_0x1f933d=_0x430a97[_0x44c7d9(0x30c)];}_0x53a908=a[_0x44c7d9(0x150)]['deepClone'](_0x19c309[_0x44c7d9(0x16b)][0x0]),_0x1f933d=a['Tools'][_0x44c7d9(0x29b)](_0x19c309[_0x44c7d9(0x16b)][0x0]);for(let _0x459f03=_0xbb86be[_0x44c7d9(0x2de)]-0x1;_0x459f03>=0x0;_0x459f03--){const _0xa8a327={'id':_0x44c7d9(0x2a9),'params':{'unitId':_0xbb86be[_0x459f03][_0x44c7d9(0x25c)],..._0xbb86be[_0x459f03][_0x44c7d9(0x146)]}},_0x4e6d6a={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0xbb86be[_0x459f03]['unitId'],..._0xbb86be[_0x459f03]['redoState']}},_0x3aa5a0=this['_transformService'][_0x44c7d9(0x2ce)](_0x53a908,_0xa8a327,!0x1),_0x4102a2=this[_0x44c7d9(0x39c)][_0x44c7d9(0x2ce)](_0x1f933d,_0x4e6d6a,!0x1);if(m[_0x44c7d9(0x250)](_0x3aa5a0))throw _0x3aa5a0[_0x44c7d9(0x23e)];if(m['isTransformMutationFailure'](_0x4102a2))throw _0x4102a2['error'];_0xa73598[_0x44c7d9(0x296)]({..._0xbb86be[_0x459f03],'undoState':_0x3aa5a0['m2Prime'][_0x44c7d9(0x19d)],'redoState':_0x4102a2[_0x44c7d9(0x263)][_0x44c7d9(0x19d)]}),_0x53a908=_0x3aa5a0['m1Prime'],_0x1f933d=_0x4102a2[_0x44c7d9(0x30c)];}this[_0x44c7d9(0x1be)][_0x44c7d9(0x2e8)](_0x3c2061,{'history':_0x22513c,'collaboration':_0xa73598});}};J=Ft([le(0x0,a[_0x2af163(0x30b)](a['Injector'])),le(0x1,m[_0x2af163(0x1e6)]),le(0x2,a['Inject'](b[_0x2af163(0x256)]))],J);var Yt=Object['getOwnPropertyDescriptor'],Wt=(_0x454708,_0x49db7d,_0x392441,_0x17e103)=>{const _0x255312=_0x2af163;for(var _0x440f6e=_0x17e103>0x1?void 0x0:_0x17e103?Yt(_0x49db7d,_0x392441):_0x49db7d,_0x3ba0c4=_0x454708[_0x255312(0x2de)]-0x1,_0x53df7e;_0x3ba0c4>=0x0;_0x3ba0c4--)(_0x53df7e=_0x454708[_0x3ba0c4])&&(_0x440f6e=_0x53df7e(_0x440f6e)||_0x440f6e);return _0x440f6e;},Ne=(_0x5ac0f0,_0x874491)=>(_0x1994f4,_0x3fa73b)=>_0x874491(_0x1994f4,_0x3fa73b,_0x5ac0f0);let Z=class{constructor(_0x59e80e,_0x3a3c21){const _0x2fc6f=_0x2af163;this[_0x2fc6f(0x268)]=_0x59e80e,this[_0x2fc6f(0x39c)]=_0x3a3c21;}['transformSelections'](_0x53dca2){const _0xb2c47e=_0x2af163;var _0x303d18;const _0x2fae0f=this['_injector'][_0xb2c47e(0x18c)](Y[_0xb2c47e(0x216)]),_0x2d794a=(_0x303d18=_0x2fae0f[_0xb2c47e(0x1b9)]())!=null?_0x303d18:[];if(_0x2d794a[_0xb2c47e(0x2de)]===0x0)return;const _0x33e428=_0x53dca2[_0xb2c47e(0x2a5)],_0x1b042e=[{'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x33e428,'actions':null,'textRanges':_0x2d794a}}],_0x55e8ce=this[_0xb2c47e(0x39c)]['transformMutationsWithChangeset'](_0x53dca2,_0x1b042e);if(!m[_0xb2c47e(0x3c1)](_0x55e8ce))throw _0x55e8ce[_0xb2c47e(0x23e)];const _0xe50dd9=_0x55e8ce['m2Prime'][0x0]['params'][_0xb2c47e(0x206)];Array[_0xb2c47e(0x2ad)](_0xe50dd9)&&_0xe50dd9['length']&&_0x2fae0f['replaceDocRanges'](_0xe50dd9,{'unitId':_0x33e428,'subUnitId':_0x33e428},!0x1);}};Z=Wt([Ne(0x0,a[_0x2af163(0x30b)](a[_0x2af163(0x2bb)])),Ne(0x1,m['ITransformService'])],Z);var Vt=Object[_0x2af163(0x330)],Xt=(_0x5c17c1,_0x195ad7,_0x7c758,_0x5a67d5)=>{for(var _0x5efd1c=_0x5a67d5>0x1?void 0x0:_0x5a67d5?Vt(_0x195ad7,_0x7c758):_0x195ad7,_0x1a82d2=_0x5c17c1['length']-0x1,_0x5f436a;_0x1a82d2>=0x0;_0x1a82d2--)(_0x5f436a=_0x5c17c1[_0x1a82d2])&&(_0x5efd1c=_0x5f436a(_0x5efd1c)||_0x5efd1c);return _0x5efd1c;},N=(_0x46012d,_0x526eb7)=>(_0x36f41e,_0x546e35)=>_0x526eb7(_0x36f41e,_0x546e35,_0x46012d);let Q=class extends a[_0x2af163(0x1e8)]{constructor(_0x341bfe,_0x54d668,_0x34a2e0,_0x5d202d,_0x40ff83,_0x3894d6,_0xf2c190,_0x109be7){const _0x54e1c5=_0x2af163;super(),h(this,_0x54e1c5(0x329),new d[(_0x54e1c5(0x201))](u[_0x54e1c5(0x33f)]['NOT_COLLAB'])),(this[_0x54e1c5(0x1be)]=_0x341bfe,this[_0x54e1c5(0x1eb)]=_0x54d668,this[_0x54e1c5(0x1e1)]=_0x34a2e0,this[_0x54e1c5(0x21d)]=_0x5d202d,this[_0x54e1c5(0x1ab)]=_0x40ff83,this[_0x54e1c5(0x3a1)]=_0x3894d6,this[_0x54e1c5(0x19a)]=_0xf2c190,this[_0x54e1c5(0x28f)]=_0x109be7,this[_0x54e1c5(0x2e3)]());}['_initEntityListener'](){const _0x392fb8=_0x2af163;this[_0x392fb8(0x1f8)](this[_0x392fb8(0x1eb)][_0x392fb8(0x383)][_0x392fb8(0x2fe)](_0xe91ccc=>{const _0x1c1e68=_0x392fb8,_0x466c7e=this['_docStateChangeManagerService']['docStateChange$'][_0x1c1e68(0x2fe)](_0x3f96e6=>{const _0x2b49c7=_0x1c1e68;if(_0x3f96e6==null)return;const {unitId:_0x3d0da8,redoState:_0xb1c2c2,commandId:_0x10a6fb}=_0x3f96e6;if(_0x3d0da8!==_0xe91ccc[_0x2b49c7(0x2a5)])return;const _0x5af077={'id':_0x10a6fb,'type':a['CommandType'][_0x2b49c7(0x2d8)],'params':{'unitId':_0x3d0da8,'actions':_0xb1c2c2[_0x2b49c7(0x214)],'textRanges':null}};_0xe91ccc[_0x2b49c7(0x1cd)](_0x5af077);});if(_0xe91ccc['disposeWithMe'](_0x466c7e),_0xe91ccc instanceof u[_0x1c1e68(0x16e)]){const _0x26c2ea={'onTransformIME':_0x4b751d=>this[_0x1c1e68(0x1e1)][_0x1c1e68(0x32e)](_0x4b751d),'onTransformState':_0x46ca09=>this[_0x1c1e68(0x21d)][_0x1c1e68(0x191)](_0x46ca09),'onTransformSelections':_0x591df1=>this[_0x1c1e68(0x1ab)]['transformSelections'](_0x591df1),'onSyncEditingCollabCursor':_0x1322ed=>this[_0x1c1e68(0x3a1)][_0x1c1e68(0x372)](_0x1322ed),'onTransformRemoteChangesetByIMECache':_0x22044d=>this['_docTransformIMECacheService'][_0x1c1e68(0x1d7)](_0x22044d),'onTransformRemoteChangesetByStateCache':_0x2ec9e2=>this[_0x1c1e68(0x21d)][_0x1c1e68(0x1d7)](_0x2ec9e2)};_0xe91ccc[_0x1c1e68(0x1f1)](_0x26c2ea);}}));}};Q=Xt([N(0x0,a['Inject'](b[_0x2af163(0x256)])),N(0x1,a[_0x2af163(0x30b)](u['CollaborationController'])),N(0x2,a[_0x2af163(0x30b)](z)),N(0x3,a[_0x2af163(0x30b)](J)),N(0x4,a[_0x2af163(0x30b)](Z)),N(0x5,a[_0x2af163(0x30b)](Ce)),N(0x6,T[_0x2af163(0x168)]),N(0x7,a['Inject'](a['LocaleService']))],Q);var Gt=Object[_0x2af163(0x330)],Kt=(_0x4882df,_0x1c9d9d,_0x1cbcd3,_0x24966a)=>{const _0x52a7fd=_0x2af163;for(var _0x9af51=_0x24966a>0x1?void 0x0:_0x24966a?Gt(_0x1c9d9d,_0x1cbcd3):_0x1c9d9d,_0x4bcb45=_0x4882df[_0x52a7fd(0x2de)]-0x1,_0x4291f6;_0x4bcb45>=0x0;_0x4bcb45--)(_0x4291f6=_0x4882df[_0x4bcb45])&&(_0x9af51=_0x4291f6(_0x9af51)||_0x9af51);return _0x9af51;},_e=(_0x4844bd,_0x23ce7e)=>(_0x1d0be4,_0x204408)=>_0x23ce7e(_0x1d0be4,_0x204408,_0x4844bd);let ge=class extends a['Disposable']{constructor(_0x48eee1,_0x473065,_0x2bc0af){const _0x54816e=_0x2af163;super(),h(this,_0x54816e(0x2e4),new Map()),h(this,_0x54816e(0x3b8),new Map()),h(this,'_disabled',!0x1),(this[_0x54816e(0x3c6)]=_0x48eee1,this[_0x54816e(0x189)]=_0x473065,this[_0x54816e(0x2fc)]=_0x2bc0af);}[_0x2af163(0x17f)](){const _0x5df58c=_0x2af163;this[_0x5df58c(0x34b)]=!0x0;}[_0x2af163(0x307)](){this['_disabled']=!0x1;}get[_0x2af163(0x17e)](){const _0x366ce6=_0x2af163;return this[_0x366ce6(0x3b8)];}[_0x2af163(0x176)](){const _0x115fbd=_0x2af163;this[_0x115fbd(0x19c)]()['then'](()=>super[_0x115fbd(0x176)]());}async[_0x2af163(0x249)](_0x4f0c3e){const _0x31319f=_0x2af163;return this[_0x31319f(0x34b)]?null:this[_0x31319f(0x189)][_0x31319f(0x345)](u[_0x31319f(0x318)](_0x4f0c3e));}async[_0x2af163(0x3a4)](_0x3c03fd,_0x3deaef){const _0x2d4130=_0x2af163;return!!this['_localStorageService'][_0x2d4130(0x2b9)](_0x3c03fd,_0x3deaef);}['updateOfflineData'](_0x4cb760,_0x2af461,_0x397e02,_0x485ee0){const _0x44d434=_0x2af163,_0x506855=this[_0x44d434(0x2fc)][_0x44d434(0x384)](_0x4cb760);this[_0x44d434(0x2e4)][_0x44d434(0x38c)](_0x4cb760,{'unitID':_0x4cb760,'type':_0x2af461,'awaitingChangeset':_0x397e02,'mutations':_0x485ee0,'rev':_0x506855}),this[_0x44d434(0x3b8)][_0x44d434(0x2cd)](_0x4cb760)||this[_0x44d434(0x1e2)](_0x4cb760);}[_0x2af163(0x1e2)](_0x212dd4){const _0x588ada=_0x2af163,_0x49c1b5=this[_0x588ada(0x2af)]();_0x49c1b5===0x0?this['_saveCache'](_0x212dd4):this[_0x588ada(0x3b8)][_0x588ada(0x38c)](_0x212dd4,setTimeout(()=>this['_saveCache'](_0x212dd4),_0x49c1b5));}['_getSaveTimeout'](){const _0x5a3aa4=_0x2af163;var _0x4dac6d;return(_0x4dac6d=this[_0x5a3aa4(0x3c6)][_0x5a3aa4(0x397)](u[_0x5a3aa4(0x2e2)]))!=null?_0x4dac6d:u[_0x5a3aa4(0x278)];}[_0x2af163(0x258)](_0x1e3fb4){const _0x153d7c=_0x2af163,_0x14b347=this[_0x153d7c(0x3b8)][_0x153d7c(0x18c)](_0x1e3fb4);return _0x14b347!==void 0x0&&window[_0x153d7c(0x2a7)](_0x14b347),this[_0x153d7c(0x189)]['setItem'](u['getLocalCacheKey'](_0x1e3fb4),this['_cachedData'][_0x153d7c(0x18c)](_0x1e3fb4))[_0x153d7c(0x350)](()=>this[_0x153d7c(0x3b8)][_0x153d7c(0x1dd)](_0x1e3fb4));}async[_0x2af163(0x19c)](){const _0x13734a=_0x2af163,_0x4f890c=[];this[_0x13734a(0x3b8)][_0x13734a(0x237)]((_0x5cb848,_0x230124)=>{const _0x15a72d=_0x13734a;window[_0x15a72d(0x2a7)](_0x5cb848),_0x4f890c[_0x15a72d(0x314)](this[_0x15a72d(0x258)](_0x230124)['then'](()=>{const _0x14e407=_0x15a72d;this[_0x14e407(0x3b8)][_0x14e407(0x1dd)](_0x230124);}));}),await Promise[_0x13734a(0x154)](_0x4f890c);}};ge=Kt([_e(0x0,a['IConfigService']),_e(0x1,a[_0x2af163(0x1ad)]),_e(0x2,a[_0x2af163(0x30b)](m[_0x2af163(0x2d4)]))],ge);class je extends a['RxDisposable']{constructor(){const _0x4ff4e7=_0x2af163;super(),h(this,_0x4ff4e7(0x2f6)),this[_0x4ff4e7(0x2f6)]=d[_0x4ff4e7(0x203)](window,'popstate')['pipe'](d[_0x4ff4e7(0x35c)](this[_0x4ff4e7(0x17b)]),d[_0x4ff4e7(0x317)](0x1),d[_0x4ff4e7(0x1ac)](void 0x0));}['setParam'](_0x426261,_0x1e0e6f,_0x443b54=!0x1){const _0x165237=_0x2af163,_0xba185f=new URL(window[_0x165237(0x1b3)][_0x165237(0x14b)]);_0xba185f[_0x165237(0x1c9)][_0x165237(0x38c)](_0x426261,_0x1e0e6f),_0x443b54?window[_0x165237(0x193)]['replaceState']('','',_0xba185f[_0x165237(0x2b1)]()):window['history'][_0x165237(0x2fd)]('','',_0xba185f[_0x165237(0x2b1)]());}[_0x2af163(0x241)](_0xcc9fe6,_0x284ee9=!0x1){const _0x2149ef=_0x2af163,_0x97bc29=new URL(window[_0x2149ef(0x1b3)][_0x2149ef(0x14b)]);_0x97bc29['searchParams'][_0x2149ef(0x1dd)](_0xcc9fe6),_0x284ee9?window['history'][_0x2149ef(0x37d)]('','',_0x97bc29[_0x2149ef(0x2b1)]()):window[_0x2149ef(0x193)][_0x2149ef(0x2fd)]('','',_0x97bc29[_0x2149ef(0x2b1)]());}[_0x2af163(0x174)](_0x3590e7){const _0x4552c0=_0x2af163;var _0x81f79a;return(_0x81f79a=new URL(window['location'][_0x4552c0(0x14b)])['searchParams']['get'](_0x3590e7))!=null?_0x81f79a:void 0x0;}}var qt=Object[_0x2af163(0x362)],zt=Object[_0x2af163(0x330)],Jt=(_0x17313d,_0x1de604,_0x1b1de2)=>_0x1de604 in _0x17313d?qt(_0x17313d,_0x1de604,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x1b1de2}):_0x17313d[_0x1de604]=_0x1b1de2,Zt=(_0xcb1645,_0x19eade,_0x2c52c1,_0x1e57c5)=>{const _0x331417=_0x2af163;for(var _0x45f401=_0x1e57c5>0x1?void 0x0:_0x1e57c5?zt(_0x19eade,_0x2c52c1):_0x19eade,_0x58ba0f=_0xcb1645[_0x331417(0x2de)]-0x1,_0x32a5d0;_0x58ba0f>=0x0;_0x58ba0f--)(_0x32a5d0=_0xcb1645[_0x58ba0f])&&(_0x45f401=_0x32a5d0(_0x45f401)||_0x45f401);return _0x45f401;},he=(_0x808717,_0x1edc24)=>(_0x1f1ac1,_0x5e5f42)=>_0x1edc24(_0x1f1ac1,_0x5e5f42,_0x808717),Qt=(_0x20e727,_0xc10ea3,_0x21e309)=>Jt(_0x20e727,_0xc10ea3+'',_0x21e309);const es=_0x2af163(0x32f);exports[_0x2af163(0x2e0)]=class extends a['Plugin']{constructor(_0x316018=Ue,_0x2428fc,_0x1903a3,_0x274389){const _0x24013f=_0x2af163;super(),this[_0x24013f(0x392)]=_0x316018,this[_0x24013f(0x226)]=_0x2428fc,this[_0x24013f(0x268)]=_0x1903a3,this['_configService']=_0x274389;const {..._0x51081e}=a[_0x24013f(0x21e)]({},Ue,this[_0x24013f(0x392)]);this[_0x24013f(0x3c6)]['setConfig']($t,_0x51081e);}['onStarting'](){const _0x4b8aeb=_0x2af163;this['_registerDependencies'](),this[_0x4b8aeb(0x2a4)]();}[_0x2af163(0x198)](){const _0x499bca=_0x2af163;this[_0x499bca(0x254)]();}[_0x2af163(0x32d)](){const _0x5a19d0=_0x2af163;var _0x4a646a;const _0x1aca9a=[[me],[Z],[z],[J],[Ce],[be,{'useClass':je}],[G[_0x5a19d0(0x32c)],{'useClass':G[_0x5a19d0(0x1df)]}],[u['ILocalCacheService'],{'useClass':ge}],[exports[_0x5a19d0(0x39d)]],[Q],[q],[x],[de],[exports[_0x5a19d0(0x381)]]];a[_0x5a19d0(0x2ee)](this[_0x5a19d0(0x268)],a[_0x5a19d0(0x2c1)](_0x1aca9a,(_0x4a646a=this[_0x5a19d0(0x392)])==null?void 0x0:_0x4a646a[_0x5a19d0(0x26b)]));}[_0x2af163(0x254)](){const _0x4aef80=_0x2af163;this[_0x4aef80(0x1f8)](this['_renderManagerService'][_0x4aef80(0x3a6)](a[_0x4aef80(0x373)]['UNIVER_DOC'],[Ie])),this[_0x4aef80(0x1f8)](this[_0x4aef80(0x226)]['registerRenderModule'](a['UniverInstanceType'][_0x4aef80(0x23a)],[ve]));}[_0x2af163(0x2a4)](){const _0x54944e=_0x2af163;a[_0x54944e(0x20a)](this[_0x54944e(0x268)],[[x],[exports[_0x54944e(0x39d)]],[Q],[q],[exports[_0x54944e(0x381)]]]);}},Qt(exports[_0x2af163(0x2e0)],'pluginName',es),exports[_0x2af163(0x2e0)]=Zt([a[_0x2af163(0x219)](u[_0x2af163(0x1a3)]),he(0x1,p[_0x2af163(0x15d)]),he(0x2,a[_0x2af163(0x30b)](a['Injector'])),he(0x3,a['IConfigService'])],exports[_0x2af163(0x2e0)]);var ts=Object[_0x2af163(0x330)],ss=(_0x2c2b87,_0x59e22a,_0x25895e,_0x19df2c)=>{for(var _0x166659=_0x19df2c>0x1?void 0x0:_0x19df2c?ts(_0x59e22a,_0x25895e):_0x59e22a,_0x19ded1=_0x2c2b87['length']-0x1,_0x5e1311;_0x19ded1>=0x0;_0x19ded1--)(_0x5e1311=_0x2c2b87[_0x19ded1])&&(_0x166659=_0x5e1311(_0x166659)||_0x166659);return _0x166659;},F=(_0x36a22c,_0x824ad9)=>(_0x49bd8d,_0x2f775d)=>_0x824ad9(_0x49bd8d,_0x2f775d,_0x36a22c);exports['BrowserCollaborationSocketService']=class extends u[_0x2af163(0x31a)]{constructor(_0x5bba5c,_0x262d8b,_0x2dcbf5,_0x17dcdc,_0x259c62){super(_0x5bba5c,_0x262d8b,_0x2dcbf5,_0x17dcdc,_0x259c62);}async[_0x2af163(0x223)](_0x417cbc){const _0x3a938a=_0x2af163,_0x3bd472=await this[_0x3a938a(0x1a4)](),_0x4459fb=this['_createSocketURL'](_0x417cbc,_0x3bd472);return this['_doCreateSocket'](_0x4459fb);}[_0x2af163(0x167)](_0x1a773f,_0x116222){const _0x1785dc=_0x2af163,_0xeb3c30=typeof window>'u'?new URL(_0x1a773f):new URL(_0x1a773f,window[_0x1785dc(0x1b3)][_0x1785dc(0x293)]);_0xeb3c30[_0x1785dc(0x1c9)]['set'](_0x1785dc(0x1fa),_0x116222);const _0x3edc49=typeof window>'u'?new URLSearchParams():new URLSearchParams(window[_0x1785dc(0x1b3)][_0x1785dc(0x194)]);return _0x3edc49[_0x1785dc(0x18c)](_0x1785dc(0x354))&&_0xeb3c30[_0x1785dc(0x1c9)][_0x1785dc(0x38c)]('runId',_0x3edc49[_0x1785dc(0x18c)](_0x1785dc(0x354))),_0xeb3c30[_0x1785dc(0x2b1)]();}async['_getSessionTicket'](){const _0x101101=_0x2af163;var _0x29d57e,_0x29b4aa,_0x3eb347;const _0x4db005=this[_0x101101(0x3c6)][_0x101101(0x397)](u['COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY']),_0x9fb7a5=(_0x29d57e=_0x4db005==null?void 0x0:_0x4db005[_0x101101(0x2dd)])!=null?_0x29d57e:u[_0x101101(0x172)];return(_0x3eb347=(_0x29b4aa=(await this[_0x101101(0x2c9)]['get'](_0x9fb7a5,{'headers':{'Content-Type':_0x101101(0x182)}}))['body'])==null?void 0x0:_0x29b4aa[_0x101101(0x173)])!=null?_0x3eb347:'';}},exports['BrowserCollaborationSocketService']=ss([F(0x0,a[_0x2af163(0x30b)](a[_0x2af163(0x2bb)])),F(0x1,a[_0x2af163(0x30b)](G[_0x2af163(0x382)])),F(0x2,a['IConfigService']),F(0x3,a['ILogService']),F(0x4,m[_0x2af163(0x16d)])],exports['BrowserCollaborationSocketService']);const Me=0x7530,Le=_0x2af163(0x27c);class is extends a[_0x2af163(0x1e8)]{constructor(){const _0x4d5705=_0x2af163;super(),h(this,_0x4d5705(0x30d),a[_0x4d5705(0x1ca)]()),h(this,_0x4d5705(0x368),new Set()),h(this,_0x4d5705(0x1bd),new Map()),h(this,'_heartbeatTimer',null),h(this,_0x4d5705(0x28b),new Map()),h(this,_0x4d5705(0x3ae),new Map()),this[_0x4d5705(0x2bf)]();}[_0x2af163(0x176)](){const _0x351709=_0x2af163;super['dispose'](),this['_clearOtherTimers'][_0x351709(0x237)]((_0x30839f,_0x298e83)=>this['_removeClearOtherTimer'](_0x298e83)),this[_0x351709(0x2e7)]&&window['clearInterval'](this[_0x351709(0x2e7)]);}['getUnitStatus$'](_0x40638b){const _0x38e23a=_0x2af163;return this[_0x38e23a(0x259)](_0x40638b)[_0x38e23a(0x26a)](d[_0x38e23a(0x239)]());}['editingUnit'](_0x53bb8b){const _0x3b8497=_0x2af163;this['_selfUnitIDs'][_0x3b8497(0x148)]===0x0&&this[_0x3b8497(0x22b)](),this[_0x3b8497(0x368)][_0x3b8497(0x199)](_0x53bb8b),this[_0x3b8497(0x24c)]({'type':0x0,'memberID':this[_0x3b8497(0x30d)],'unitIDs':[_0x53bb8b],'isForwarded':!0x1});}[_0x2af163(0x3b9)](_0x517c2e){const _0x6d64ae=_0x2af163;this['_selfUnitIDs']['delete'](_0x517c2e),this[_0x6d64ae(0x368)][_0x6d64ae(0x148)]===0x0&&this[_0x6d64ae(0x2e7)]&&window['clearInterval'](this['_heartbeatTimer']);}[_0x2af163(0x2bf)](){const _0x363583=_0x2af163;this['disposeWithMe'](a['toDisposable'](d[_0x363583(0x203)](window,_0x363583(0x327))['subscribe'](_0x350eed=>{const _0x467ac7=_0x363583;if(_0x350eed[_0x467ac7(0x319)]!==Le||!_0x350eed[_0x467ac7(0x1ae)])return;const _0x53a46d=JSON[_0x467ac7(0x359)](_0x350eed[_0x467ac7(0x1ae)]);this[_0x467ac7(0x371)](_0x53a46d);}))),window[_0x363583(0x281)]('unload',()=>this[_0x363583(0x24c)]({'type':0x1,'memberID':this['_id'],'unitIDs':Array[_0x363583(0x2bd)](this[_0x363583(0x368)])}));}[_0x2af163(0x371)](_0x3a4b7c){const _0xc200e8=_0x2af163;switch(_0x3a4b7c[_0xc200e8(0x2f8)]){case 0x0:this[_0xc200e8(0x2ac)](_0x3a4b7c);break;case 0x1:this['_handleLeaveEvent'](_0x3a4b7c);break;case 0x2:this[_0xc200e8(0x1f9)](_0x3a4b7c);break;}}[_0x2af163(0x2ac)](_0x36b695){const _0x166c21=_0x2af163,{unitIDs:_0x5dca30,memberID:_0x576ffb,isForwarded:_0x254600}=_0x36b695;_0x5dca30[_0x166c21(0x237)](_0x953fa3=>{const _0x162abf=_0x166c21;if(!_0x254600&&this[_0x162abf(0x1bd)][_0x162abf(0x2cd)](_0x953fa3)&&this['_ensureSubject'](_0x953fa3)['next'](u[_0x162abf(0x29a)][_0x162abf(0x31f)]),!this[_0x162abf(0x1bd)]['has'](_0x953fa3)||!this[_0x162abf(0x1bd)][_0x162abf(0x18c)](_0x953fa3)[_0x162abf(0x2cd)](_0x576ffb)){const _0x3ba5e3=this[_0x162abf(0x1bd)][_0x162abf(0x18c)](_0x953fa3)||new Set();_0x3ba5e3[_0x162abf(0x199)](_0x576ffb),this[_0x162abf(0x1bd)][_0x162abf(0x38c)](_0x953fa3,_0x3ba5e3),this['_scheduleClearOtherTimer'](_0x576ffb);}}),_0x254600||this[_0x166c21(0x24c)]({'type':0x0,'memberID':this['_id'],'unitIDs':[...this[_0x166c21(0x368)]],'isForwarded':!0x0});}['_scheduleClearOtherTimer'](_0x5f38d6){const _0x2f2b5e=_0x2af163;this['_removeClearOtherTimer'](_0x5f38d6);const _0xa86388=window[_0x2f2b5e(0x177)](()=>{const _0x16325f=_0x2f2b5e;this[_0x16325f(0x1bd)][_0x16325f(0x237)](_0x3d2485=>{const _0x392612=_0x16325f;_0x3d2485[_0x392612(0x1dd)](_0x5f38d6);});},Me*0x2);this[_0x2f2b5e(0x28b)][_0x2f2b5e(0x38c)](_0x5f38d6,_0xa86388);}[_0x2af163(0x1a0)](_0x1b78dd){const _0x2b8224=_0x2af163;if(this[_0x2b8224(0x28b)]['has'](_0x1b78dd)){const _0xffddcd=this[_0x2b8224(0x28b)]['get'](_0x1b78dd);_0xffddcd&&window[_0x2b8224(0x2a7)](_0xffddcd),this[_0x2b8224(0x28b)][_0x2b8224(0x38c)](_0x1b78dd,null);}}[_0x2af163(0x395)](_0x32cfd2){const _0x398c08=_0x2af163,{memberID:_0x4ff08e,unitIDs:_0x3f2a7f}=_0x32cfd2;_0x3f2a7f[_0x398c08(0x237)](_0x3e7359=>{const _0x34fe0c=_0x398c08;var _0x2960e1;const _0x5bd7a2=this['_unitOnClients']['get'](_0x3e7359);_0x5bd7a2&&(_0x5bd7a2[_0x34fe0c(0x1dd)](_0x4ff08e),(_0x2960e1=this[_0x34fe0c(0x259)](_0x3e7359))==null||_0x2960e1[_0x34fe0c(0x355)](_0x5bd7a2[_0x34fe0c(0x148)]===0x0?u['UnitStatus'][_0x34fe0c(0x1d2)]:u[_0x34fe0c(0x29a)]['OTHER_CLIENTS_EDITING']));}),this[_0x398c08(0x1a0)](_0x4ff08e);}[_0x2af163(0x1f9)](_0x320990){const _0x4d856e=_0x2af163;this[_0x4d856e(0x289)](_0x320990[_0x4d856e(0x310)]);}['_send'](_0x390cb6){localStorage['setItem'](Le,JSON['stringify'](_0x390cb6));}[_0x2af163(0x22b)](){const _0x178817=_0x2af163;this[_0x178817(0x2e7)]=window[_0x178817(0x2cb)](()=>{const _0x2f2d5e=_0x178817;this['_send']({'type':0x2,'memberID':this[_0x2f2d5e(0x30d)]});},Me);}[_0x2af163(0x259)](_0x18d5a6){const _0x572c00=_0x2af163;return this[_0x572c00(0x3ae)][_0x572c00(0x2cd)](_0x18d5a6)||this['_unitStatus'][_0x572c00(0x38c)](_0x18d5a6,new d['BehaviorSubject'](u[_0x572c00(0x29a)][_0x572c00(0x1d2)])),this[_0x572c00(0x3ae)][_0x572c00(0x18c)](_0x18d5a6);}}var Be=(_0x315c53=>(_0x315c53[_0x315c53[_0x2af163(0x227)]=0x0]=_0x2af163(0x227),_0x315c53[_0x315c53['OK']=0x1]='OK',_0x315c53[_0x315c53[_0x2af163(0x1f4)]=0x2]=_0x2af163(0x1f4),_0x315c53[_0x315c53[_0x2af163(0x2f1)]=0x3]=_0x2af163(0x2f1),_0x315c53[_0x315c53[_0x2af163(0x2d1)]=0x4]=_0x2af163(0x2d1),_0x315c53[_0x315c53[_0x2af163(0x34a)]=0x5]='UNAUTHENTICATED',_0x315c53[_0x315c53[_0x2af163(0x153)]=0x6]=_0x2af163(0x153),_0x315c53[_0x315c53[_0x2af163(0x374)]=0x7]=_0x2af163(0x374),_0x315c53[_0x315c53[_0x2af163(0x2cf)]=0x8]=_0x2af163(0x2cf),_0x315c53[_0x315c53[_0x2af163(0x23f)]=0x9]=_0x2af163(0x23f),_0x315c53[_0x315c53[_0x2af163(0x30e)]=0xa]='LOGIN_FAILED',_0x315c53[_0x315c53[_0x2af163(0x3c2)]=0x1389]=_0x2af163(0x3c2),_0x315c53[_0x315c53['SNAPSHOT_INVALID_SNAPSHOT']=0x1771]='SNAPSHOT_INVALID_SNAPSHOT',_0x315c53[_0x315c53['SNAPSHOT_HAS_BEEN_REMOVED']=0x1772]='SNAPSHOT_HAS_BEEN_REMOVED',_0x315c53[_0x315c53[_0x2af163(0x311)]=0x1773]=_0x2af163(0x311),_0x315c53[_0x315c53[_0x2af163(0x305)]=0x1b59]=_0x2af163(0x305),_0x315c53[_0x315c53[_0x2af163(0x1f6)]=0x1b5a]='APPLY_NON_SEQUENTIAL_REVISION',_0x315c53[_0x315c53[_0x2af163(0x19f)]=0x1b5b]=_0x2af163(0x19f),_0x315c53[_0x315c53[_0x2af163(0x335)]=0x1b5c]=_0x2af163(0x335),_0x315c53[_0x315c53['APPLY_DUPLICATED']=0x1b5d]='APPLY_DUPLICATED',_0x315c53[_0x315c53[_0x2af163(0x387)]=0x1f41]=_0x2af163(0x387),_0x315c53[_0x315c53['LICENSE_MAX_UNITS_EXCEEDED']=0x2329]=_0x2af163(0x1a9),_0x315c53[_0x315c53[_0x2af163(0x366)]=0x232a]='LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED',_0x315c53[_0x315c53[_0x2af163(0x3b3)]=0x232b]=_0x2af163(0x3b3),_0x315c53[_0x315c53[_0x2af163(0x22d)]=0x232c]=_0x2af163(0x22d),_0x315c53[_0x315c53[_0x2af163(0x282)]=0x232d]=_0x2af163(0x282),_0x315c53[_0x315c53[_0x2af163(0x15f)]=0x2711]=_0x2af163(0x15f),_0x315c53[_0x315c53['YUUMI_URL_COL_OUT_OF_RANGE']=0x2712]=_0x2af163(0x28e),_0x315c53[_0x315c53[_0x2af163(0x251)]=0x2713]=_0x2af163(0x251),_0x315c53[_0x315c53['YUUMI_SUBSCRIPTION_NOT_FOUND']=0x2714]=_0x2af163(0x274),_0x315c53[_0x315c53[_0x2af163(0x218)]=0x271a]=_0x2af163(0x218),_0x315c53[_0x315c53[_0x2af163(0x324)]=0x271b]=_0x2af163(0x324),_0x315c53[_0x315c53[_0x2af163(0x2ff)]=0x271c]=_0x2af163(0x2ff),_0x315c53[_0x315c53[_0x2af163(0x349)]=0x271d]=_0x2af163(0x349),_0x315c53[_0x315c53['YUUMI_PROMPT_MAX_TOKENS_EXCEEDED']=0x271e]=_0x2af163(0x2a0),_0x315c53[_0x315c53[_0x2af163(0x285)]=0x271f]=_0x2af163(0x285),_0x315c53[_0x315c53[_0x2af163(0x2a8)]=0x2af9]='PY_RUNTIME_SCRIPT_ERROR',_0x315c53[_0x315c53[_0x2af163(0x30a)]=0x2ee1]='INVITE_CODE_HAS_BEEN_UES',_0x315c53[_0x315c53[_0x2af163(0x303)]=0x2ee2]=_0x2af163(0x303),_0x315c53[_0x315c53[_0x2af163(0x28c)]=0x2ee3]=_0x2af163(0x28c),_0x315c53[_0x315c53[_0x2af163(0x242)]=0x2ee4]=_0x2af163(0x242),_0x315c53[_0x315c53['INVITE_CODE_ALREADY_BOUND']=0x2ee5]=_0x2af163(0x325),_0x315c53[_0x315c53[_0x2af163(0x1a2)]=0x32c9]=_0x2af163(0x1a2),_0x315c53[_0x315c53[_0x2af163(0x309)]=0x32ca]='MOBILE_HAS_BEEN_BOUND',_0x315c53[_0x315c53['EMAIL_HAS_BEEN_BOUND']=0x32cb]=_0x2af163(0x2d9),_0x315c53[_0x315c53[_0x2af163(0x2d3)]=-0x1]=_0x2af163(0x2d3),_0x315c53))(Be||{}),ns=Object[_0x2af163(0x330)],rs=(_0x37a809,_0x3a5a70,_0x3004b9,_0x8cafbd)=>{for(var _0x5bfd80=_0x8cafbd>0x1?void 0x0:_0x8cafbd?ns(_0x3a5a70,_0x3004b9):_0x3a5a70,_0x32bf44=_0x37a809['length']-0x1,_0x4df971;_0x32bf44>=0x0;_0x32bf44--)(_0x4df971=_0x37a809[_0x32bf44])&&(_0x5bfd80=_0x4df971(_0x5bfd80)||_0x5bfd80);return _0x5bfd80;},ue=(_0x3fe111,_0x139ae3)=>(_0x297295,_0x4141b1)=>_0x139ae3(_0x297295,_0x4141b1,_0x3fe111);exports[_0x2af163(0x18a)]=class extends a[_0x2af163(0x1e8)]{constructor(_0x43cb2c,_0x2ae03d,_0x5a0f9d){const _0x2b1106=_0x2af163;super(),this[_0x2b1106(0x2d5)]=_0x43cb2c,this['_httpService']=_0x2ae03d,this[_0x2b1106(0x3c6)]=_0x5a0f9d;}async[_0x2af163(0x3b2)](_0x75e7d5,_0x1ac3e3,_0x550823,..._0x2a4de3){const _0x4ae740=_0x2af163;var _0x39e64a,_0x142b9b,_0x124b43,_0x27ed19;const _0x56f6f4=this[_0x4ae740(0x2d5)]['getFocusedUnit']();if(!_0x56f6f4)throw new Error('[RemoteUniscriptService]:\x20no\x20focused\x20unit');const _0x261f9a=((_0x39e64a=this[_0x4ae740(0x3c6)]['getConfig'](u[_0x4ae740(0x33e)]))!=null?_0x39e64a:u[_0x4ae740(0x1f3)])+'/'+_0x75e7d5+_0x4ae740(0x379)+_0x1ac3e3,_0x361546=new URL(window[_0x4ae740(0x1b3)]['href']),_0x4c56ae={'scriptId':_0x75e7d5,'runId':(_0x142b9b=_0x361546[_0x4ae740(0x1c9)][_0x4ae740(0x18c)](_0x4ae740(0x354)))!=null?_0x142b9b:'','function':_0x1ac3e3,'unitId':_0x56f6f4['getUnitId'](),'argsOfFunction':JSON[_0x4ae740(0x287)](_0x2a4de3),'invokeId':(_0x124b43=_0x550823[_0x4ae740(0x213)])!=null?_0x124b43:'','executionId':(_0x27ed19=_0x550823[_0x4ae740(0x2b8)])!=null?_0x27ed19:''};try{const _0x23fda2=await this[_0x4ae740(0x2c9)][_0x4ae740(0x15e)](_0x261f9a,{'body':_0x4c56ae});return _0x23fda2[_0x4ae740(0x23b)][_0x4ae740(0x23e)]&&_0x23fda2[_0x4ae740(0x23b)][_0x4ae740(0x23e)][_0x4ae740(0x334)]!==Be['OK']?_0x4ae740(0x28d):_0x23fda2['body']['result'];}catch{return'Failed';}}},exports[_0x2af163(0x18a)]=rs([ue(0x0,a[_0x2af163(0x3ad)]),ue(0x1,a[_0x2af163(0x30b)](G[_0x2af163(0x382)])),ue(0x2,a[_0x2af163(0x190)])],exports[_0x2af163(0x18a)]),exports[_0x2af163(0x337)]=xe,exports[_0x2af163(0x276)]=be,exports['SheetCollabCursorShape']=Pe,exports[_0x2af163(0x3b1)]=is,exports[_0x2af163(0x2b6)]=je;
1
+ 'use strict';const _0x338f9d=_0xe86e;(function(_0x454f54,_0x109f19){const _0x53932f=_0xe86e,_0x5bada8=_0x454f54();while(!![]){try{const _0x46a589=parseInt(_0x53932f(0x32d))/0x1+parseInt(_0x53932f(0x295))/0x2*(-parseInt(_0x53932f(0x225))/0x3)+-parseInt(_0x53932f(0x2ba))/0x4+parseInt(_0x53932f(0x203))/0x5*(parseInt(_0x53932f(0x323))/0x6)+-parseInt(_0x53932f(0x300))/0x7*(-parseInt(_0x53932f(0x2f8))/0x8)+-parseInt(_0x53932f(0x2dd))/0x9*(-parseInt(_0x53932f(0x417))/0xa)+parseInt(_0x53932f(0x385))/0xb*(-parseInt(_0x53932f(0x2c3))/0xc);if(_0x46a589===_0x109f19)break;else _0x5bada8['push'](_0x5bada8['shift']());}catch(_0x47b9ce){_0x5bada8['push'](_0x5bada8['shift']());}}}(_0x2859,0x53349));var Ve=Object[_0x338f9d(0x1af)],Xe=(_0x46110a,_0x458f95,_0x4ef676)=>_0x458f95 in _0x46110a?Ve(_0x46110a,_0x458f95,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x4ef676}):_0x46110a[_0x458f95]=_0x4ef676,h=(_0x4ca74b,_0x1d65c0,_0x5b6add)=>Xe(_0x4ca74b,typeof _0x1d65c0!=_0x338f9d(0x19b)?_0x1d65c0+'':_0x1d65c0,_0x5b6add);Object[_0x338f9d(0x1af)](exports,Symbol[_0x338f9d(0x384)],{'value':_0x338f9d(0x1ac)});const u=require(_0x338f9d(0x3a9)),a=require('@univerjs/core'),p=require(_0x338f9d(0x30b)),G=require('@univerjs/network'),b=require(_0x338f9d(0x2c2)),Ge=require(_0x338f9d(0x22b)),d=require('rxjs'),Y=require(_0x338f9d(0x220)),m=require('@univerjs-pro/collaboration'),Ee=require(_0x338f9d(0x3c0)),g=require(_0x338f9d(0x1b8)),$=require(_0x338f9d(0x31e)),X=require(_0x338f9d(0x1b7)),w=require(_0x338f9d(0x1a3)),T=require('@univerjs/ui'),D=require(_0x338f9d(0x207)),M=require(_0x338f9d(0x1ea)),Ke=require(_0x338f9d(0x41f));var qe=Object[_0x338f9d(0x20f)],ze=(_0x538028,_0x353190,_0x521312,_0x1e2fb0)=>{const _0x110d13=_0x338f9d;for(var _0x498ac9=_0x1e2fb0>0x1?void 0x0:_0x1e2fb0?qe(_0x353190,_0x521312):_0x353190,_0xee62da=_0x538028[_0x110d13(0x29d)]-0x1,_0x4b1ab8;_0xee62da>=0x0;_0xee62da--)(_0x4b1ab8=_0x538028[_0xee62da])&&(_0x498ac9=_0x4b1ab8(_0x498ac9)||_0x498ac9);return _0x498ac9;},Te=(_0x2316fe,_0x3cc705)=>(_0xec7879,_0x5dc2fb)=>_0x3cc705(_0xec7879,_0x5dc2fb,_0x2316fe);function _0xe86e(_0x59709f,_0xd64265){const _0x2859e9=_0x2859();return _0xe86e=function(_0xe86ecd,_0x47009d){_0xe86ecd=_0xe86ecd-0x198;let _0x5b9c7b=_0x2859e9[_0xe86ecd];return _0x5b9c7b;},_0xe86e(_0x59709f,_0xd64265);}let de=class extends a[_0x338f9d(0x1c2)]{constructor(_0x32433f,_0x133285){const _0x27e874=_0x338f9d;super(),this[_0x27e874(0x3f1)]=_0x32433f,this[_0x27e874(0x304)]=_0x133285,this[_0x27e874(0x219)]();}[_0x338f9d(0x219)](){const _0x1b05a3=_0x338f9d,_0x4a7f22=this;this[_0x1b05a3(0x3df)](this[_0x1b05a3(0x3f1)][_0x1b05a3(0x3e2)]({'onBeforePasteImage':async _0x24212f=>{const _0x5bcf92=_0x1b05a3,_0x576f75=await _0x4a7f22['_imageIoService']['saveImage'](_0x24212f);return _0x576f75?{'source':_0x576f75[_0x5bcf92(0x1c6)],'imageSourceType':_0x576f75[_0x5bcf92(0x412)]}:null;}}));}};de=ze([Te(0x0,b[_0x338f9d(0x3af)]),Te(0x1,Ge['IImageIoService'])],de);const Oe=[_0x338f9d(0x33a),_0x338f9d(0x28e),'green.600',_0x338f9d(0x369),_0x338f9d(0x3f9),_0x338f9d(0x339)];class me extends a[_0x338f9d(0x40d)]{constructor(){const _0x5cba88=_0x338f9d;super(...arguments),h(this,_0x5cba88(0x3e7),new Map()),h(this,_0x5cba88(0x3ef),0x0);}[_0x338f9d(0x235)](_0x3c71a8){const _0x35f2d7=_0x338f9d;if(this[_0x35f2d7(0x3e7)]['has'](_0x3c71a8))return this['_assignedColors'][_0x35f2d7(0x34c)](_0x3c71a8);const _0x48f447=Oe[this[_0x35f2d7(0x3ef)]];return this[_0x35f2d7(0x3ef)]=(this[_0x35f2d7(0x3ef)]+0x1)%Oe[_0x35f2d7(0x29d)],this['_assignedColors'][_0x35f2d7(0x208)](_0x3c71a8,_0x48f447),_0x48f447;}}function we(_0x15a658){let _0x58eb47='';for(const _0x5eaa07 of _0x15a658){const {startOffset:_0x1db10f,endOffset:_0x49df88,isActive:_0x4d83fd,rangeType:_0x43c291,segmentId:_0x2d5de7,segmentPage:_0x43e47a}=_0x5eaa07;_0x58eb47['length']&&(_0x58eb47+=','),_0x58eb47+=_0x1db10f+':'+_0x49df88+':'+(_0x4d83fd?'1':'0')+':'+_0x43c291+':'+_0x2d5de7+':'+_0x43e47a;}return _0x58eb47;}function Je(_0x246981){const _0x4fddfa=_0x338f9d,_0x517d65=_0x246981[_0x4fddfa(0x320)](','),_0x27eaa8=[];for(const _0x52f680 of _0x517d65){const [_0x3708e3,_0x253d89,_0x54732a,_0x577b05,_0x51401f,_0x1e5ed8]=_0x52f680[_0x4fddfa(0x320)](':');_0x27eaa8[_0x4fddfa(0x3db)]({'startOffset':Number(_0x3708e3),'endOffset':Number(_0x253d89),'collapsed':_0x3708e3===_0x253d89,'isActive':_0x54732a==='1','rangeType':_0x577b05===a['DOC_RANGE_TYPE'][_0x4fddfa(0x266)]?a[_0x4fddfa(0x35d)][_0x4fddfa(0x266)]:a[_0x4fddfa(0x35d)][_0x4fddfa(0x342)],'segmentId':typeof _0x51401f==_0x4fddfa(0x319)?String(_0x51401f):'','segmentPage':Number(_0x1e5ed8!=null?_0x1e5ed8:-0x1)});}return _0x27eaa8[_0x4fddfa(0x3fc)](_0x9a9fdd=>_0x9a9fdd[_0x4fddfa(0x1c8)])||(_0x27eaa8[0x0]['isActive']=!0x0),_0x27eaa8;}class Ce extends a[_0x338f9d(0x1c2)]{constructor(){const _0x413d7a=_0x338f9d;super(...arguments),h(this,'_collabCursorState$',new d[(_0x413d7a(0x3ac))](null)),h(this,_0x413d7a(0x24d),this[_0x413d7a(0x283)]['asObservable']());}['syncEditingCollabCursor'](_0x254150){const _0x3fb4f9=_0x338f9d,{unitID:_0x3f9f8f,memberID:_0x5bdf55,textRanges:_0x1fa7ce}=_0x254150,_0x3a8473=we(_0x1fa7ce);if(_0x3a8473==='')return;const _0x13e4db={'unitID':_0x3f9f8f,'memberID':_0x5bdf55,'selection':_0x3a8473};this[_0x3fb4f9(0x283)][_0x3fb4f9(0x346)](_0x13e4db);}}var Ze=Object[_0x338f9d(0x20f)],Qe=(_0xb56d89,_0xd09792,_0x3e8b94,_0x3bbc9f)=>{const _0x203798=_0x338f9d;for(var _0x3aae9c=_0x3bbc9f>0x1?void 0x0:_0x3bbc9f?Ze(_0xd09792,_0x3e8b94):_0xd09792,_0x336268=_0xb56d89[_0x203798(0x29d)]-0x1,_0x209f68;_0x336268>=0x0;_0x336268--)(_0x209f68=_0xb56d89[_0x336268])&&(_0x3aae9c=_0x209f68(_0x3aae9c)||_0x3aae9c);return _0x3aae9c;},L=(_0x4da3ed,_0x36f09c)=>(_0x5c050d,_0x547391)=>_0x36f09c(_0x5c050d,_0x547391,_0x4da3ed);const et=0x12c,tt=0x64;let fe=class extends a[_0x338f9d(0x1c2)]{constructor(_0x12bff3,_0x176c9b,_0x3f3283,_0x21fbe9,_0x33af7e,_0x25dd93,_0x9b9c5c,_0x48dbd2,_0x22c577){const _0x543ebb=_0x338f9d;super(),h(this,_0x543ebb(0x282),!0x1),h(this,_0x543ebb(0x219),!0x1),h(this,_0x543ebb(0x23d),new d[(_0x543ebb(0x3ac))](new Map())),h(this,_0x543ebb(0x25e),this[_0x543ebb(0x23d)][_0x543ebb(0x3fe)]()),h(this,_0x543ebb(0x3f8),new d[(_0x543ebb(0x3ac))]([])),h(this,_0x543ebb(0x3b7),this['_roomMembers$'][_0x543ebb(0x349)](d[_0x543ebb(0x261)](et))),h(this,'_updateLocalCursor',a['debounce'](_0x8e7f72=>{const _0x37539d=_0x543ebb,_0x546a92={'eventID':m['CollaborationEvent'][_0x37539d(0x1db)],'data':{'unitID':this[_0x37539d(0x29a)],'memberID':this[_0x37539d(0x1e7)]['getMemberID'](),'selection':we(_0x8e7f72)}};this['_session'][_0x37539d(0x1f0)](_0x546a92,this['unitID']);},tt)),(this[_0x543ebb(0x29a)]=_0x12bff3,this[_0x543ebb(0x1e7)]=_0x176c9b,this[_0x543ebb(0x278)]=_0x3f3283,this[_0x543ebb(0x1fd)]=_0x21fbe9,this[_0x543ebb(0x289)]=_0x33af7e,this[_0x543ebb(0x3fa)]=_0x25dd93,this[_0x543ebb(0x272)]=_0x9b9c5c,this[_0x543ebb(0x24c)]=_0x48dbd2,this[_0x543ebb(0x3e0)]=_0x22c577);}get[_0x338f9d(0x1cb)](){const _0x136ddd=_0x338f9d;return this[_0x136ddd(0x23d)]['getValue']();}get['roomMembers'](){const _0x572cf9=_0x338f9d;return this[_0x572cf9(0x3f8)]['getValue']();}['dispose'](){const _0xf3fc53=_0x338f9d;super[_0xf3fc53(0x361)](),this[_0xf3fc53(0x23d)][_0xf3fc53(0x346)](new Map()),this['_cursorInfo$'][_0xf3fc53(0x2c6)](),this['_roomMembers$'][_0xf3fc53(0x346)]([]),this['_roomMembers$']['complete']();}[_0x338f9d(0x390)](){const _0x3ff462=_0x338f9d;this['_init']||(this[_0x3ff462(0x219)]=!0x0,this[_0x3ff462(0x1e7)][_0x3ff462(0x274)][_0x3ff462(0x349)](d[_0x3ff462(0x36f)](this[_0x3ff462(0x42b)]))['subscribe'](_0x12bca8=>{const _0x2eb0e3=_0x3ff462;_0x12bca8===u[_0x2eb0e3(0x22f)]['ONLINE']?this[_0x2eb0e3(0x297)]():this[_0x2eb0e3(0x3f3)]();}),this[_0x3ff462(0x1e7)]['event$']['pipe'](d[_0x3ff462(0x36f)](this['dispose$']))[_0x3ff462(0x239)](_0x443485=>{const _0x2ac419=_0x3ff462,_0x25481a=_0x443485[_0x2ac419(0x31c)];_0x25481a===m[_0x2ac419(0x1ba)][_0x2ac419(0x1db)]&&this[_0x2ac419(0x374)](_0x443485),_0x25481a===m[_0x2ac419(0x1ba)][_0x2ac419(0x211)]&&this['_onCursorDelete'](_0x443485);}),this[_0x3ff462(0x3df)](this[_0x3ff462(0x3e0)][_0x3ff462(0x386)](_0x48eae2=>{const _0x217a5b=_0x3ff462,_0x3080af=_0x48eae2[_0x217a5b(0x214)];_0x3080af!=null&&this[_0x217a5b(0x282)]&&_0x48eae2['id']===Y[_0x217a5b(0x36a)]['id']&&_0x3080af['unitId']===this[_0x217a5b(0x29a)]&&_0x3080af[_0x217a5b(0x205)]===!0x1&&_0x3080af[_0x217a5b(0x198)][_0x217a5b(0x29d)]>0x0&&this['_updateLocalCursor'](_0x3080af[_0x217a5b(0x198)]);})),this[_0x3ff462(0x3fa)]['collabCursorState$'][_0x3ff462(0x349)](d['takeUntil'](this[_0x3ff462(0x42b)]))[_0x3ff462(0x239)](_0x50fe04=>{const _0x1634e1=_0x3ff462;if((_0x50fe04==null?void 0x0:_0x50fe04[_0x1634e1(0x29a)])!==this[_0x1634e1(0x29a)])return;const _0x42456b={'eventID':m['CollaborationEvent'][_0x1634e1(0x1db)],'data':_0x50fe04};this['_onCursorUpdate'](_0x42456b);}),this['disposeWithMe'](this[_0x3ff462(0x3e0)]['onCommandExecuted'](_0x2ce9ea=>{const _0x1ada4f=_0x3ff462;if(_0x2ce9ea[_0x1ada4f(0x214)]==null)return;const _0x1a6876=_0x2ce9ea[_0x1ada4f(0x214)];if(_0x2ce9ea['id']!==Y[_0x1ada4f(0x24f)]['id']||_0x1a6876[_0x1ada4f(0x20d)]!==this[_0x1ada4f(0x29a)])return;const _0x2fd707={'id':_0x1ada4f(0x3e8),'params':_0x1a6876},_0x3b73e0=this[_0x1ada4f(0x1cb)];for(const [_0x1ab763,_0x588b23]of _0x3b73e0){const _0x3a8689={'id':_0x1ada4f(0x3e8),'params':{'unitId':this[_0x1ada4f(0x29a)],'actions':null,'textRanges':_0x588b23[_0x1ada4f(0x198)]}},_0x2f5f6a=this[_0x1ada4f(0x272)][_0x1ada4f(0x24e)](_0x2fd707,_0x3a8689,!0x1);if(m['isTransformMutationFailure'](_0x2f5f6a))throw _0x2f5f6a[_0x1ada4f(0x1d9)];_0x3b73e0[_0x1ada4f(0x208)](_0x1ab763,{..._0x588b23,'ranges':_0x2f5f6a[_0x1ada4f(0x34e)]['params'][_0x1ada4f(0x288)]});}queueMicrotask(()=>{const _0x3abef5=_0x1ada4f;this[_0x3abef5(0x23d)][_0x3abef5(0x346)](_0x3b73e0);});})));}[_0x338f9d(0x374)](_0x5c0d81){const _0x49ff5e=_0x338f9d;var _0x145dc3,_0x441098;const {memberID:_0x526b10,selection:_0x3f1105}=_0x5c0d81[_0x49ff5e(0x3c1)],_0x3bdcc7=Je(_0x3f1105),_0x29a576=(_0x441098=(_0x145dc3=this[_0x49ff5e(0x289)]['getMember'](this[_0x49ff5e(0x29a)],_0x526b10))==null?void 0x0:_0x145dc3['name'])!=null?_0x441098:_0x49ff5e(0x28d),_0x5662c5={'color':this[_0x49ff5e(0x1fd)][_0x49ff5e(0x235)](_0x526b10),'name':_0x29a576,'ranges':_0x3bdcc7},_0x2b49dc=this['cursorInfo'];_0x2b49dc[_0x49ff5e(0x208)](_0x526b10,_0x5662c5),this[_0x49ff5e(0x23d)][_0x49ff5e(0x346)](_0x2b49dc);}[_0x338f9d(0x3d4)](_0x32f733){const _0x15d627=_0x338f9d,{memberID:_0x18e1c7}=_0x32f733[_0x15d627(0x3c1)],_0x5235de=this[_0x15d627(0x1cb)];_0x5235de[_0x15d627(0x308)](_0x18e1c7),this['_cursorInfo$'][_0x15d627(0x346)](_0x5235de);}[_0x338f9d(0x297)](){const _0x2e13c1=_0x338f9d;var _0x13353b;if(this[_0x2e13c1(0x282)]=!0x0,((_0x13353b=this[_0x2e13c1(0x24c)]['getFocusedUnit']())==null?void 0x0:_0x13353b[_0x2e13c1(0x2cb)]())!==this[_0x2e13c1(0x29a)])return;const _0x5059e4=this[_0x2e13c1(0x278)][_0x2e13c1(0x34c)](Y[_0x2e13c1(0x2f6)])[_0x2e13c1(0x360)]();Array['isArray'](_0x5059e4)&&_0x5059e4[_0x2e13c1(0x29d)]>0x0&&this[_0x2e13c1(0x3ee)](_0x5059e4);}['_toggleOffline'](){const _0x29f816=_0x338f9d;this[_0x29f816(0x282)]=!0x1;}};fe=Qe([L(0x2,a[_0x338f9d(0x388)](a[_0x338f9d(0x302)])),L(0x3,a[_0x338f9d(0x388)](me)),L(0x4,a['Inject'](u[_0x338f9d(0x2fb)])),L(0x5,a[_0x338f9d(0x388)](Ce)),L(0x6,m['ITransformService']),L(0x7,a[_0x338f9d(0x2d1)]),L(0x8,a[_0x338f9d(0x1d1)])],fe);var st=Object[_0x338f9d(0x20f)],it=(_0x578c55,_0x1a6d3c,_0xc87d7d,_0x5aa869)=>{for(var _0xa502f2=_0x5aa869>0x1?void 0x0:_0x5aa869?st(_0x1a6d3c,_0xc87d7d):_0x1a6d3c,_0x1415a7=_0x578c55['length']-0x1,_0x1740c4;_0x1415a7>=0x0;_0x1415a7--)(_0x1740c4=_0x578c55[_0x1415a7])&&(_0xa502f2=_0x1740c4(_0xa502f2)||_0xa502f2);return _0xa502f2;},A=(_0x3dcc3a,_0x246264)=>(_0x35ee55,_0x54c0ce)=>_0x246264(_0x35ee55,_0x54c0ce,_0x3dcc3a);const nt=0x12c,rt=0x64,ot=()=>{let _0x34ba0f=[],_0xa4b384=!0x1;return _0x4c06e7=>{const _0x510537=_0xe86e;_0x34ba0f[_0x510537(0x3db)](_0x4c06e7),_0xa4b384||(_0xa4b384=!0x0,setTimeout(()=>{const _0x1323e2=_0x510537;_0x34ba0f[_0x1323e2(0x2d6)](_0x10d9ff=>_0x10d9ff()),_0x34ba0f=[],_0xa4b384=!0x1;}));};};let Se=class extends a[_0x338f9d(0x1c2)]{constructor(_0x42be2b,_0xb843ae,_0x363bf2,_0x272eb9,_0x2bf617,_0x32c6d9,_0x3acb4b,_0x50fd18){const _0x3893bd=_0x338f9d;super(),h(this,'_online',!0x1),h(this,'_init',!0x1),h(this,'_cursorInfo$',new d[(_0x3893bd(0x3ac))](new Map())),h(this,'cursorInfo$',this[_0x3893bd(0x23d)][_0x3893bd(0x3fe)]()),h(this,_0x3893bd(0x3f8),new d[(_0x3893bd(0x3ac))]([])),h(this,_0x3893bd(0x3b7),this[_0x3893bd(0x3f8)]['pipe'](d[_0x3893bd(0x261)](nt))),h(this,'_updateLocalCursor',a['debounce']((_0x4c5567,_0x4d8ef4)=>{const _0x4dcfa1=_0x3893bd,_0x281f72={'eventID':m[_0x4dcfa1(0x1ba)][_0x4dcfa1(0x1db)],'data':{'unitID':this[_0x4dcfa1(0x29a)],'memberID':this[_0x4dcfa1(0x1e7)][_0x4dcfa1(0x3cd)](),'selection':Ee['serializeRangeWithSheet'](_0x4c5567,_0x4d8ef4[_0x4dcfa1(0x352)])}};this['_session']['send'](_0x281f72,this['unitID']);},rt)),(this[_0x3893bd(0x29a)]=_0x42be2b,this[_0x3893bd(0x1e7)]=_0xb843ae,this[_0x3893bd(0x278)]=_0x363bf2,this[_0x3893bd(0x1fd)]=_0x272eb9,this['_memberService']=_0x2bf617,this['_univerInstanceService']=_0x32c6d9,this['_commandService']=_0x3acb4b,this['_refRangeService']=_0x50fd18);}get[_0x338f9d(0x1cb)](){const _0x22a66b=_0x338f9d;return this['_cursorInfo$'][_0x22a66b(0x327)]();}get[_0x338f9d(0x1c5)](){const _0x40d397=_0x338f9d;return this['_roomMembers$'][_0x40d397(0x327)]();}['dispose'](){const _0x54efd5=_0x338f9d;super[_0x54efd5(0x361)](),this[_0x54efd5(0x23d)][_0x54efd5(0x346)](new Map()),this['_cursorInfo$'][_0x54efd5(0x2c6)](),this[_0x54efd5(0x3f8)][_0x54efd5(0x346)]([]),this[_0x54efd5(0x3f8)]['complete']();}[_0x338f9d(0x390)](){const _0x304313=_0x338f9d;this[_0x304313(0x219)]||(this['_init']=!0x0,this[_0x304313(0x1e7)]['sessionStatus$']['pipe'](d[_0x304313(0x36f)](this['dispose$']))['subscribe'](_0x1d1100=>{const _0x4ad9c6=_0x304313;_0x1d1100===u['SessionStatus']['ONLINE']?this[_0x4ad9c6(0x297)]():this[_0x4ad9c6(0x3f3)]();}),this['_session'][_0x304313(0x33f)][_0x304313(0x349)](d[_0x304313(0x36f)](this[_0x304313(0x42b)]))[_0x304313(0x239)](_0x26dc64=>{const _0x138c42=_0x304313,_0x3c0753=_0x26dc64[_0x138c42(0x31c)];_0x3c0753===m['CollaborationEvent'][_0x138c42(0x1db)]&&this['_onCursorUpdate'](_0x26dc64),_0x3c0753===m[_0x138c42(0x1ba)]['USERS_LEAVE']&&this[_0x138c42(0x3d4)](_0x26dc64);}),this['_onRefRangeChange'](),this[_0x304313(0x3df)](this[_0x304313(0x3e0)][_0x304313(0x386)](_0x596621=>{const _0x212fa7=_0x304313;if(this['_online']&&_0x596621['id']===g[_0x212fa7(0x353)]['id']&&_0x596621[_0x212fa7(0x214)][_0x212fa7(0x20d)]===this[_0x212fa7(0x29a)]){const _0x354ba4=_0x596621['params'];this['_updateLocalCursor'](_0x354ba4[_0x212fa7(0x1f8)],_0x354ba4[_0x212fa7(0x36b)][0x0]);}})));}[_0x338f9d(0x374)](_0x504128){const _0x347225=_0x338f9d;var _0x5b18c0,_0x5a5ca3;const {memberID:_0x514664,selection:_0x29e44d}=_0x504128['data'],{sheetName:_0x3d1e3,range:_0x26f073}=Ee['deserializeRangeWithSheet'](_0x29e44d),_0x1f5bdb={'name':(_0x5a5ca3=(_0x5b18c0=this[_0x347225(0x289)][_0x347225(0x210)](this[_0x347225(0x29a)],_0x514664))==null?void 0x0:_0x5b18c0[_0x347225(0x31b)])!=null?_0x5a5ca3:_0x347225(0x28d),'range':this[_0x347225(0x305)](_0x3d1e3,_0x26f073),'sheetID':_0x3d1e3,'color':this[_0x347225(0x1fd)][_0x347225(0x235)](_0x514664),'selection':_0x29e44d},_0x1126cf=this['cursorInfo'];_0x1126cf['set'](_0x514664,_0x1f5bdb),this['_cursorInfo$'][_0x347225(0x346)](_0x1126cf);}[_0x338f9d(0x3d4)](_0xe73560){const _0x306041=_0x338f9d,{memberID:_0x521847}=_0xe73560['data'],_0x1b74cc=this[_0x306041(0x1cb)];_0x1b74cc[_0x306041(0x308)](_0x521847),this[_0x306041(0x23d)][_0x306041(0x346)](_0x1b74cc);}[_0x338f9d(0x305)](_0x3a3c8d,_0x570b33){const _0x3465e2=_0x338f9d;var _0x58616d,_0x1ea617;const _0x1c9063=(_0x1ea617=(_0x58616d=this[_0x3465e2(0x24c)][_0x3465e2(0x28f)](this[_0x3465e2(0x29a)]))==null?void 0x0:_0x58616d[_0x3465e2(0x270)](_0x3a3c8d))==null?void 0x0:_0x1ea617['getMergeData']();return(_0x1c9063==null?void 0x0:_0x1c9063[_0x3465e2(0x1b1)](_0x13de97=>a[_0x3465e2(0x2b4)]['contains'](_0x13de97,_0x570b33)))||_0x570b33;}[_0x338f9d(0x25a)](){const _0xfc2b96=_0x338f9d,_0x2d8a1b=new a[(_0xfc2b96(0x26b))](),_0x2bcc80=ot(),_0x25eaf8=()=>{const _0x9d439e=_0xfc2b96;_0x2d8a1b[_0x9d439e(0x361)]();const _0x55f89c=(_0x41c061,_0x59f419,_0x1f5660,_0x3d52f2)=>{const _0x44c117=_0x9d439e;let _0xb4450b=[];switch(_0x41c061['id']){case g[_0x44c117(0x2c5)][_0x44c117(0x3da)]:{_0xb4450b=g[_0x44c117(0x1ff)](_0x41c061,_0x3d52f2);break;}case g[_0x44c117(0x2c5)][_0x44c117(0x1f4)]:{_0xb4450b=g[_0x44c117(0x1bb)](_0x41c061,_0x3d52f2);break;}case g[_0x44c117(0x2c5)][_0x44c117(0x400)]:{_0xb4450b=g[_0x44c117(0x2b7)](_0x41c061,_0x3d52f2);break;}case g['EffectRefRangId'][_0x44c117(0x334)]:{_0xb4450b=g[_0x44c117(0x285)](_0x41c061,_0x3d52f2);break;}case g[_0x44c117(0x2c5)]['InsertRangeMoveRightCommandId']:{_0xb4450b=g[_0x44c117(0x36d)](_0x41c061,_0x3d52f2);break;}case g[_0x44c117(0x2c5)][_0x44c117(0x3d7)]:{_0xb4450b=g[_0x44c117(0x233)](_0x41c061,_0x3d52f2);break;}case g[_0x44c117(0x2c5)][_0x44c117(0x41c)]:{_0xb4450b=g['handleMoveRange'](_0x41c061,_0x3d52f2);break;}case g[_0x44c117(0x2c5)][_0x44c117(0x19a)]:{_0xb4450b=g[_0x44c117(0x39a)](_0x41c061,_0x3d52f2);break;}case g[_0x44c117(0x2c5)]['RemoveRowCommandId']:{_0xb4450b=g[_0x44c117(0x2f7)](_0x41c061,_0x3d52f2);break;}}const _0x4c122f=g[_0x44c117(0x21a)](_0xb4450b,_0x3d52f2),_0x5d2b15=this[_0x44c117(0x1cb)][_0x44c117(0x34c)](_0x59f419);if(_0x5d2b15&&_0x4c122f){const _0x5ea068={..._0x5d2b15,'range':_0x4c122f};this[_0x44c117(0x1cb)][_0x44c117(0x208)](_0x59f419,_0x5ea068),_0x2bcc80(()=>{const _0x1de9c3=_0x44c117,_0x23d4ea=this[_0x1de9c3(0x3e1)]['registerRefRange'](_0x4c122f,_0x97b4b0=>(_0x23d4ea[_0x1de9c3(0x361)](),_0x55f89c(_0x97b4b0,_0x59f419,_0x1f5660,_0x4c122f)));_0x2d8a1b[_0x1de9c3(0x271)](_0x23d4ea);});}return{'redos':[],'undos':[]};};this['cursorInfo'][_0x9d439e(0x2d6)]((_0x59666a,_0x158463)=>{const _0x332fe7=_0x9d439e,{range:_0x325b25,sheetID:_0x86232c}=_0x59666a,_0x4291f1=this[_0x332fe7(0x3e1)][_0x332fe7(0x30f)](_0x325b25,_0x44ebf3=>(_0x4291f1[_0x332fe7(0x361)](),_0x55f89c(_0x44ebf3,_0x158463,_0x86232c,_0x325b25)));_0x2d8a1b[_0x332fe7(0x271)](_0x4291f1);});};this['disposeWithMe'](a[_0xfc2b96(0x1a9)](this[_0xfc2b96(0x23d)][_0xfc2b96(0x239)](()=>{_0x25eaf8();})));}[_0x338f9d(0x297)](){const _0x849fba=_0x338f9d;var _0xd92b21,_0x5af4b7;if(this[_0x849fba(0x282)]=!0x0,((_0xd92b21=this[_0x849fba(0x24c)][_0x849fba(0x20a)]())==null?void 0x0:_0xd92b21[_0x849fba(0x2cb)]())!==this[_0x849fba(0x29a)])return;const _0x3b29e4=(_0x5af4b7=this[_0x849fba(0x278)][_0x849fba(0x34c)](g[_0x849fba(0x292)])['getCurrentSelections']())==null?void 0x0:_0x5af4b7[0x0],_0x2eb3d5=this[_0x849fba(0x24c)][_0x849fba(0x35f)](a[_0x849fba(0x2d9)][_0x849fba(0x263)])[_0x849fba(0x1e2)]();_0x3b29e4&&_0x2eb3d5&&this[_0x849fba(0x3ee)](_0x2eb3d5['getSheetId'](),_0x3b29e4);}[_0x338f9d(0x3f3)](){const _0x1d5d56=_0x338f9d;this[_0x1d5d56(0x282)]=!0x1;}};Se=it([A(0x2,a['Inject'](a[_0x338f9d(0x302)])),A(0x3,a[_0x338f9d(0x388)](me)),A(0x4,a[_0x338f9d(0x388)](u[_0x338f9d(0x2fb)])),A(0x5,a[_0x338f9d(0x2d1)]),A(0x6,a['ICommandService']),A(0x7,a[_0x338f9d(0x388)](g[_0x338f9d(0x313)]))],Se);var at=Object[_0x338f9d(0x20f)],ct=(_0x566a4b,_0x2f56cb,_0x5422bc,_0x5bad70)=>{const _0x26e616=_0x338f9d;for(var _0x37d0b8=_0x5bad70>0x1?void 0x0:_0x5bad70?at(_0x2f56cb,_0x5422bc):_0x2f56cb,_0x34d36b=_0x566a4b[_0x26e616(0x29d)]-0x1,_0x597274;_0x34d36b>=0x0;_0x34d36b--)(_0x597274=_0x566a4b[_0x34d36b])&&(_0x37d0b8=_0x597274(_0x37d0b8)||_0x37d0b8);return _0x37d0b8;},ie=(_0x1762d1,_0x11963a)=>(_0x27bffa,_0x2cb328)=>_0x11963a(_0x27bffa,_0x2cb328,_0x1762d1);let x=class extends a[_0x338f9d(0x1c2)]{constructor(_0x10df31,_0x1d48f3,_0x3b0077){const _0x5ea70f=_0x338f9d;super(),h(this,_0x5ea70f(0x2c1),new Map()),h(this,_0x5ea70f(0x237),new d[(_0x5ea70f(0x3b6))]()),(this['_univerInstanceService']=_0x10df31,this[_0x5ea70f(0x278)]=_0x1d48f3,this['_collabSessionService']=_0x3b0077,this[_0x5ea70f(0x219)]());}[_0x338f9d(0x361)](){const _0x4e4380=_0x338f9d;super[_0x4e4380(0x361)](),this[_0x4e4380(0x237)][_0x4e4380(0x2c6)](),this['_entities'][_0x4e4380(0x2d6)](_0xfaed6=>_0xfaed6[_0x4e4380(0x361)]());}[_0x338f9d(0x2e9)](_0xf091eb){const _0x2cccec=_0x338f9d;return this[_0x2cccec(0x2c1)][_0x2cccec(0x3ed)](_0xf091eb)?this[_0x2cccec(0x2c1)][_0x2cccec(0x34c)](_0xf091eb)[_0x2cccec(0x25e)]:this['_entityInit$']['pipe'](d[_0x2cccec(0x251)](_0xdb0aaa=>_0xdb0aaa['unitID']===_0xf091eb),d[_0x2cccec(0x2ce)](_0x39bd78=>_0x39bd78[_0x2cccec(0x25e)]));}[_0x338f9d(0x219)](){const _0xbaa8ed=_0x338f9d;this[_0xbaa8ed(0x24c)][_0xbaa8ed(0x422)](a[_0xbaa8ed(0x2d9)][_0xbaa8ed(0x263)])['pipe'](d[_0xbaa8ed(0x36f)](this[_0xbaa8ed(0x42b)]))[_0xbaa8ed(0x239)](async _0xb8d3f4=>{const _0xe2d3bf=_0xbaa8ed,_0x386e4e=_0xb8d3f4[_0xe2d3bf(0x2cb)](),_0x2bacb7=await this[_0xe2d3bf(0x27b)](_0x386e4e);this[_0xe2d3bf(0x237)][_0xe2d3bf(0x346)](_0x2bacb7),this['_entities'][_0xe2d3bf(0x208)](_0x386e4e,_0x2bacb7);}),this[_0xbaa8ed(0x24c)][_0xbaa8ed(0x422)](a[_0xbaa8ed(0x2d9)][_0xbaa8ed(0x2e3)])[_0xbaa8ed(0x349)](d[_0xbaa8ed(0x36f)](this[_0xbaa8ed(0x42b)]))[_0xbaa8ed(0x349)](d[_0xbaa8ed(0x251)](_0x4456e8=>!_0x4456e8[_0xbaa8ed(0x2cb)]()[_0xbaa8ed(0x223)]('__')))[_0xbaa8ed(0x239)](async _0x648fbc=>{const _0x11c968=_0xbaa8ed,_0x3c2af4=_0x648fbc[_0x11c968(0x2cb)](),_0x30423a=await this[_0x11c968(0x284)](_0x3c2af4);this[_0x11c968(0x237)][_0x11c968(0x346)](_0x30423a),this[_0x11c968(0x2c1)][_0x11c968(0x208)](_0x3c2af4,_0x30423a);}),d[_0xbaa8ed(0x395)](this[_0xbaa8ed(0x24c)][_0xbaa8ed(0x3c5)](a['UniverInstanceType'][_0xbaa8ed(0x2e3)]),this[_0xbaa8ed(0x24c)][_0xbaa8ed(0x3c5)](a['UniverInstanceType'][_0xbaa8ed(0x263)]))[_0xbaa8ed(0x349)](d[_0xbaa8ed(0x36f)](this[_0xbaa8ed(0x42b)]))['subscribe'](_0x2860a1=>{const _0x418fdf=_0xbaa8ed,_0x49d5ef=_0x2860a1[_0x418fdf(0x2cb)](),_0xea5c61=this['_entities'][_0x418fdf(0x34c)](_0x49d5ef);_0xea5c61&&(_0xea5c61[_0x418fdf(0x361)](),this[_0x418fdf(0x2c1)][_0x418fdf(0x308)](_0x49d5ef));});}async[_0x338f9d(0x27b)](_0x5cc505){const _0x3bb6b8=_0x338f9d,_0x2024f2=await this[_0x3bb6b8(0x407)][_0x3bb6b8(0x354)](_0x5cc505),_0x13b7a3=this[_0x3bb6b8(0x278)]['createInstance'](Se,_0x5cc505,_0x2024f2);return _0x13b7a3[_0x3bb6b8(0x390)](),_0x13b7a3;}async[_0x338f9d(0x284)](_0x4f7bde){const _0xbd7ba4=_0x338f9d,_0x42055a=await this['_collabSessionService'][_0xbd7ba4(0x354)](_0x4f7bde),_0x5026da=this[_0xbd7ba4(0x278)]['createInstance'](fe,_0x4f7bde,_0x42055a);return _0x5026da[_0xbd7ba4(0x390)](),_0x5026da;}};x=ct([ie(0x0,a[_0x338f9d(0x2d1)]),ie(0x1,a[_0x338f9d(0x388)](a[_0x338f9d(0x302)])),ie(0x2,a[_0x338f9d(0x388)](u[_0x338f9d(0x262)]))],x);const K=0x14,Re=0xc8,ne=0x4,lt=0x5;function _t(_0x14cb8e,_0x526364){const _0x38d6f4=_0x338f9d;let {radius:_0x4f2ec7,width:_0x3484c7,height:_0x325fd5}=_0x526364;_0x4f2ec7=_0x4f2ec7!=null?_0x4f2ec7:0x0,_0x3484c7=_0x3484c7!=null?_0x3484c7:0x1e,_0x325fd5=_0x325fd5!=null?_0x325fd5:0x1e;let _0x226c09=0x0,_0xb4370f=0x0,_0x3d5bed=0x0;_0x226c09=_0xb4370f=_0x3d5bed=Math[_0x38d6f4(0x3bb)](_0x4f2ec7,_0x3484c7/0x2,_0x325fd5/0x2),_0x14cb8e[_0x38d6f4(0x298)](),_0x14cb8e[_0x38d6f4(0x254)](_0x226c09,0x0),_0x14cb8e['lineTo'](_0x3484c7-_0xb4370f,0x0),_0x14cb8e['arc'](_0x3484c7-_0xb4370f,_0xb4370f,_0xb4370f,Math['PI']*0x3/0x2,0x0,!0x1),_0x14cb8e[_0x38d6f4(0x2e0)](_0x3484c7,_0x325fd5-_0x3d5bed),_0x14cb8e[_0x38d6f4(0x26e)](_0x3484c7-_0x3d5bed,_0x325fd5-_0x3d5bed,_0x3d5bed,0x0,Math['PI']/0x2,!0x1),_0x14cb8e[_0x38d6f4(0x2e0)](0x0,_0x325fd5),_0x14cb8e[_0x38d6f4(0x2e0)](0x0,_0x226c09),_0x14cb8e['arc'](_0x226c09,_0x226c09,_0x226c09,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x14cb8e[_0x38d6f4(0x1e8)](),_0x526364['fill']&&(_0x14cb8e['save'](),_0x14cb8e['fillStyle']=_0x526364[_0x38d6f4(0x280)],_0x526364[_0x38d6f4(0x22e)]==='evenodd'?_0x14cb8e['fill'](_0x38d6f4(0x2f5)):_0x14cb8e[_0x38d6f4(0x280)](),_0x14cb8e[_0x38d6f4(0x238)]());}class ee extends p[_0x338f9d(0x396)]{constructor(_0x4c49b8,_0x13c1f1){const _0x636560=_0x338f9d;super(_0x4c49b8,_0x13c1f1),h(this,_0x636560(0x325)),h(this,_0x636560(0x2df)),(this[_0x636560(0x325)]=_0x13c1f1==null?void 0x0:_0x13c1f1[_0x636560(0x325)],this[_0x636560(0x2df)]=_0x13c1f1==null?void 0x0:_0x13c1f1['text']);}static['drawWith'](_0x3a8f6c,_0x38c0c4){const _0x3c9b65=_0x338f9d,{text:_0xcf2991,color:_0x4fdd26}=_0x38c0c4;_0x3a8f6c[_0x3c9b65(0x410)](),_0x3a8f6c['font']=_0x3c9b65(0x1a8);const _0xde6ed7=_0x3a8f6c['measureText'](_0xcf2991)[_0x3c9b65(0x35b)],_0x16bba7=Math[_0x3c9b65(0x3bb)](_0xde6ed7+0x2*ne,Re);_t(_0x3a8f6c,{'height':K,'radius':0x4,'width':_0x16bba7,'fill':_0x4fdd26}),_0x3a8f6c[_0x3c9b65(0x2aa)]=_0x3c9b65(0x1c3);const _0x5c4699=ne,_0x15c77a=K-lt,_0x35e83c=Re-0x2*ne;if(_0xde6ed7>_0x35e83c){let _0x2d6bff='',_0x43703c=0x0;for(const _0x167872 of _0xcf2991){const _0x4673ce=_0x3a8f6c[_0x3c9b65(0x255)](_0x167872)[_0x3c9b65(0x35b)];if(_0x43703c+_0x4673ce<=_0x35e83c-_0x3a8f6c[_0x3c9b65(0x255)](_0x3c9b65(0x38a))['width'])_0x2d6bff+=_0x167872,_0x43703c+=_0x4673ce;else{_0x2d6bff+='...';break;}}_0x3a8f6c[_0x3c9b65(0x2be)](_0x2d6bff,_0x5c4699,_0x15c77a);}else _0x3a8f6c[_0x3c9b65(0x2be)](_0xcf2991,_0x5c4699,_0x15c77a);_0x3a8f6c[_0x3c9b65(0x238)]();}['_draw'](_0x2589fa){const _0x4c9a7f=_0x338f9d;ee[_0x4c9a7f(0x277)](_0x2589fa,this);}}const re=_0x338f9d(0x3b0),ht=_0x338f9d(0x1ca),ut=_0x338f9d(0x382),k=0x6,dt=1.5,oe=0x4,ft=1.5,St=_0x338f9d(0x248);class De{constructor(_0x5a1662,_0x116b8a,_0x47aa71,_0x4c686c){const _0xbf68b8=_0x338f9d;h(this,'_shapes',[]),h(this,'_anchor',null),h(this,'_textBubble',null),h(this,_0xbf68b8(0x2f9),null),h(this,_0xbf68b8(0x217),null),h(this,_0xbf68b8(0x40c),null),(this[_0xbf68b8(0x21c)]=_0x5a1662,this[_0xbf68b8(0x338)]=_0x116b8a,this[_0xbf68b8(0x242)]=_0x47aa71,this[_0xbf68b8(0x2bc)]=_0x4c686c,this[_0xbf68b8(0x30c)]());}set[_0x338f9d(0x42d)](_0x42fe89){const _0x1e126f=_0x338f9d;_0x42fe89?(this['_anchorDot']&&this[_0x1e126f(0x2f9)][_0x1e126f(0x2ab)](),this[_0x1e126f(0x246)]&&this[_0x1e126f(0x246)][_0x1e126f(0x1e4)]()):(this[_0x1e126f(0x2f9)]&&this[_0x1e126f(0x2f9)][_0x1e126f(0x1e4)](),this[_0x1e126f(0x246)]&&this['_textBubble'][_0x1e126f(0x2ab)]());}[_0x338f9d(0x361)](){const _0x5d541d=_0x338f9d;for(const _0x231839 of this[_0x5d541d(0x421)])_0x231839[_0x5d541d(0x361)]();this['_textBubble']&&this[_0x5d541d(0x246)][_0x5d541d(0x361)](),this['_anchorDot']&&this[_0x5d541d(0x2f9)][_0x5d541d(0x361)](),this[_0x5d541d(0x378)]&&this[_0x5d541d(0x378)][_0x5d541d(0x361)](),this[_0x5d541d(0x40c)]&&this['_eventUnsubscribe']();}[_0x338f9d(0x30c)](){const _0x13e0fb=_0x338f9d;var _0x5dfe56;const {_docSkeleton:_0x3e8fb5,_document:_0x429f7c}=this,{color:_0x5eaf0f,name:_0x75437f,ranges:_0x474cca}=this[_0x13e0fb(0x21c)],_0x3b7d05=_0x429f7c[_0x13e0fb(0x1fa)](),{docsLeft:_0x1de41c,docsTop:_0x5715de}=_0x3b7d05,_0x3abe35=new b[(_0x13e0fb(0x264))](_0x3b7d05,_0x3e8fb5);for(const {startOffset:_0x390e7d,endOffset:_0x3fcba4,rangeType:_0x2023bd,segmentId:_0x21e28a,segmentPage:_0x57d910,collapsed:_0x4ebed5,isActive:_0x10b8ed}of _0x474cca){const _0x26c942=_0x3e8fb5[_0x13e0fb(0x268)](_0x390e7d,!0x0,_0x21e28a,_0x57d910);let _0x1e6a8d=_0x3e8fb5['findNodePositionByCharIndex'](_0x3fcba4,!0x0,_0x21e28a,_0x57d910);if(_0x1e6a8d==null&&(_0x1e6a8d=_0x3e8fb5['findNodePositionByCharIndex'](_0x3fcba4-0x1,!0x1,_0x21e28a,_0x57d910)),_0x10b8ed){const {contentBoxPointGroup:_0x2c403a}=_0x3abe35['getRangePointData'](_0x1e6a8d,_0x1e6a8d);if(_0x2c403a[_0x13e0fb(0x29d)]===0x0)continue;this[_0x13e0fb(0x1b0)](_0x5eaf0f,_0x2c403a,_0x1de41c,_0x5715de,_0x75437f),this['_eventUnsubscribe']=this[_0x13e0fb(0x326)]();}if(_0x26c942&&_0x1e6a8d){if(_0x2023bd===a[_0x13e0fb(0x35d)]['RECT']){const _0x5e4154=new b[(_0x13e0fb(0x1c1))](_0x3b7d05,_0x3e8fb5),{pointGroup:_0x200242}=(_0x5dfe56=_0x5e4154['getRangePointData'](_0x26c942,_0x1e6a8d))!=null?_0x5dfe56:{};if(_0x200242==null||_0x200242[_0x13e0fb(0x29d)]===0x0)continue;this['_drawRectRange'](_0x5eaf0f,_0x200242,_0x1de41c,_0x5715de);}else{if(!_0x4ebed5){const {borderBoxPointGroup:_0x19a2ad}=_0x3abe35[_0x13e0fb(0x2a0)](_0x26c942,_0x1e6a8d);if(_0x19a2ad[_0x13e0fb(0x29d)]===0x0)continue;this['_drawTextRange'](_0x5eaf0f,_0x19a2ad,_0x1de41c,_0x5715de);}}}}}['_drawAnchor'](_0x3c53cc,_0x2ce0e8,_0x53896a,_0x561c90,_0x209e2b){const _0x4cd40a=_0x338f9d,_0x1e3ed1=this[_0x4cd40a(0x232)](_0x2ce0e8),{left:_0x3f0432,top:_0x5d5a09,height:_0x4664f5}=_0x1e3ed1,_0x4d11b2=this['_getScale'](),_0x4c2b66=ft/_0x4d11b2,_0x1e0442=new p['Rect'](re+a[_0x4cd40a(0x265)][_0x4cd40a(0x416)](k),{'left':_0x3f0432+_0x53896a-_0x4c2b66,'top':_0x5d5a09+_0x561c90,'height':_0x4664f5,'width':dt,'fill':_0x3c53cc||p[_0x4cd40a(0x39e)](a[_0x4cd40a(0x2b3)]['black'],0x0),'strokeWidth':_0x4c2b66,'stroke':St,'evented':!0x0});this['_anchor']=_0x1e0442,this[_0x4cd40a(0x338)][_0x4cd40a(0x287)](_0x1e0442,b[_0x4cd40a(0x2a8)]);const _0x30f1ae=new p[(_0x4cd40a(0x2d3))](re+a[_0x4cd40a(0x265)][_0x4cd40a(0x416)](k),{'left':_0x3f0432+_0x53896a-_0x4c2b66,'top':_0x5d5a09+_0x561c90-oe/0x2,'height':oe,'width':oe,'fill':_0x3c53cc||p['getColor'](a[_0x4cd40a(0x2b3)][_0x4cd40a(0x3c6)],0x0),'strokeWidth':0x0,'stroke':_0x3c53cc||p[_0x4cd40a(0x39e)](a[_0x4cd40a(0x2b3)][_0x4cd40a(0x3c6)],0x0),'evented':!0x1});this[_0x4cd40a(0x2f9)]=_0x30f1ae,this['_scene']['addObject'](_0x30f1ae,b['TEXT_RANGE_LAYER_INDEX']);const _0x5496f5=new ee(re+a[_0x4cd40a(0x265)][_0x4cd40a(0x416)](k),{'left':_0x3f0432+_0x53896a-_0x4c2b66,'top':_0x5d5a09+_0x561c90-K,'text':_0x209e2b,'color':_0x3c53cc});this[_0x4cd40a(0x246)]=_0x5496f5,this[_0x4cd40a(0x338)][_0x4cd40a(0x287)](_0x5496f5,b[_0x4cd40a(0x2a8)]),this[_0x4cd40a(0x42d)]=!0x1;}[_0x338f9d(0x326)](){const _0x14a1cf=_0x338f9d,_0x964fa1=this[_0x14a1cf(0x378)]['onPointerEnter$'][_0x14a1cf(0x227)](()=>{this['_hover']=!0x0;}),_0xfbebbb=this['_anchor'][_0x14a1cf(0x1bc)][_0x14a1cf(0x227)](()=>{const _0x1ec77f=_0x14a1cf;this[_0x1ec77f(0x217)]&&clearTimeout(this[_0x1ec77f(0x217)]),this[_0x1ec77f(0x217)]=setTimeout(()=>{const _0xb909dd=_0x1ec77f;this[_0xb909dd(0x42d)]=!0x1;},0x7d0);});return()=>{const _0x4983ca=_0x14a1cf;_0x964fa1[_0x4983ca(0x3a4)](),_0xfbebbb[_0x4983ca(0x3a4)]();};}[_0x338f9d(0x42a)](_0x5aa75c,_0x2c081e,_0x51b90e,_0x21cca3){const _0x5cc4d8=_0x338f9d,_0x47de29=new a[(_0x5cc4d8(0x1bf))](_0x5aa75c)['setAlpha'](0.2)['toRgbString'](),_0x15f90a=new p['RegularPolygon'](ht+a[_0x5cc4d8(0x265)]['generateRandomId'](k),{'pointsGroup':_0x2c081e,'fill':_0x47de29||p[_0x5cc4d8(0x39e)](a[_0x5cc4d8(0x2b3)][_0x5cc4d8(0x3c6)],0.2),'left':_0x51b90e,'top':_0x21cca3,'evented':!0x1,'debounceParentDirty':!0x1});this['_shapes'][_0x5cc4d8(0x3db)](_0x15f90a),this[_0x5cc4d8(0x338)][_0x5cc4d8(0x287)](_0x15f90a,b['TEXT_RANGE_LAYER_INDEX']);}[_0x338f9d(0x34f)](_0x5b0d54,_0x3a5382,_0x8a9157,_0x3b99cf){const _0x3f4696=_0x338f9d,_0xf4f58e=new a[(_0x3f4696(0x1bf))](_0x5b0d54)[_0x3f4696(0x3c9)](0.2)['toRgbString'](),_0x294ea8=new p[(_0x3f4696(0x2d0))](ut+a[_0x3f4696(0x265)]['generateRandomId'](k),{'pointsGroup':_0x3a5382,'fill':_0xf4f58e||p[_0x3f4696(0x39e)](a[_0x3f4696(0x2b3)][_0x3f4696(0x3c6)],0.2),'left':_0x8a9157,'top':_0x3b99cf,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x3f4696(0x421)][_0x3f4696(0x3db)](_0x294ea8),this[_0x3f4696(0x338)][_0x3f4696(0x287)](_0x294ea8,b['TEXT_RANGE_LAYER_INDEX']);}[_0x338f9d(0x232)](_0x27c124){const _0xb73e14=_0x27c124[0x0],_0x23c662=_0xb73e14[0x0],_0x52482a=_0xb73e14[0x2],{x:_0x2e7810,y:_0x19c9a7}=_0x23c662,{x:_0x1cdefc,y:_0x1a1e3a}=_0x52482a;return{'left':_0x2e7810,'top':_0x19c9a7,'width':_0x1cdefc-_0x2e7810,'height':_0x1a1e3a-_0x19c9a7};}['_getScale'](){const _0xaa0c3a=_0x338f9d,{scaleX:_0x1e2742,scaleY:_0x44583f}=this[_0xaa0c3a(0x338)]['getAncestorScale']();return Math[_0xaa0c3a(0x231)](_0x1e2742,_0x44583f);}}var It=Object[_0x338f9d(0x20f)],vt=(_0x123d8d,_0x4be0fa,_0x253797,_0x1469cd)=>{for(var _0x50ae31=_0x1469cd>0x1?void 0x0:_0x1469cd?It(_0x4be0fa,_0x253797):_0x4be0fa,_0x1a3233=_0x123d8d['length']-0x1,_0x21965a;_0x1a3233>=0x0;_0x1a3233--)(_0x21965a=_0x123d8d[_0x1a3233])&&(_0x50ae31=_0x21965a(_0x50ae31)||_0x50ae31);return _0x50ae31;},W=(_0x4ec622,_0x55f959)=>(_0x257c84,_0x2c524a)=>_0x55f959(_0x257c84,_0x2c524a,_0x4ec622);let Ie=class extends a[_0x338f9d(0x1c2)]{constructor(_0x256033,_0x4da5aa,_0x163cfd,_0x1b61a8,_0x5a3f65){const _0xa88423=_0x338f9d;super(),h(this,'_cursorShapes',[]),h(this,'_cursors',[]),(this['_context']=_0x256033,this['_docSkeletonManagerService']=_0x4da5aa,this[_0xa88423(0x321)]=_0x163cfd,this[_0xa88423(0x3e0)]=_0x1b61a8,this[_0xa88423(0x1b5)]=_0x5a3f65,this[_0xa88423(0x219)]());}[_0x338f9d(0x219)](){const _0x296892=_0x338f9d,_0x22b733=this[_0x296892(0x310)][_0x296892(0x20d)],_0x2e6e58=this[_0x296892(0x28a)];this[_0x296892(0x3df)](d[_0x296892(0x363)]([this['_collabCursorController']['getCollabCursors$'](_0x22b733),this[_0x296892(0x1b5)][_0x296892(0x3be)]])[_0x296892(0x349)]($[_0x296892(0x1f7)](([_0x517904,_0x3e1343])=>({'skeleton':_0x2e6e58[_0x296892(0x347)](),'cursors':[..._0x517904[_0x296892(0x30a)]()][_0x296892(0x37a)](_0x4d5a87=>({..._0x4d5a87,'color':this[_0x296892(0x1b5)][_0x296892(0x2cd)](_0x4d5a87['color'])}))})))[_0x296892(0x239)](_0x589058=>{const _0x239151=_0x296892;if(this[_0x239151(0x423)](),_0x589058){const {skeleton:_0x2c2242,cursors:_0x244767}=_0x589058;this['_updateCollabCursors'](_0x2c2242,_0x244767);}})),this[_0x296892(0x2af)](),this[_0x296892(0x2ff)]();}['_updateCollabCursors'](_0x8bb401,_0x5e9e51){const _0x128355=_0x338f9d,{scene:_0x218cc8,mainComponent:_0x5e305f}=this['_context'],_0x4f6951=_0x5e9e51[_0x128355(0x1f7)](_0x4e73bb=>new De(_0x4e73bb,_0x218cc8,_0x8bb401,_0x5e305f));this[_0x128355(0x21d)]=_0x4f6951,this[_0x128355(0x226)]=_0x5e9e51;}[_0x338f9d(0x3d8)](){const _0x520717=_0x338f9d;this[_0x520717(0x423)]();const {scene:_0x20afaa,mainComponent:_0x5bd4fa}=this[_0x520717(0x310)],_0x200818=this[_0x520717(0x28a)]['getSkeleton'](),_0x3c6940=this[_0x520717(0x226)][_0x520717(0x1f7)](_0x258ef7=>new De(_0x258ef7,_0x20afaa,_0x200818,_0x5bd4fa));this[_0x520717(0x21d)]=_0x3c6940;}[_0x338f9d(0x423)](){const _0x2e276e=_0x338f9d;this[_0x2e276e(0x21d)][_0x2e276e(0x2d6)](_0x71094e=>_0x71094e['dispose']()),this[_0x2e276e(0x21d)]=[];}['_initCommandExecutedListener'](){const _0x29b0ea=_0x338f9d,_0x4359e0=[b['SetDocZoomRatioOperation']['id']];this[_0x29b0ea(0x3df)](this[_0x29b0ea(0x3e0)][_0x29b0ea(0x386)](_0x5d4f5e=>{const _0x254116=_0x29b0ea;_0x4359e0[_0x254116(0x350)](_0x5d4f5e['id'])&&_0x5d4f5e[_0x254116(0x214)][_0x254116(0x20d)]===this[_0x254116(0x310)][_0x254116(0x20d)]&&this['_refreshCollabCursors']();}));}[_0x338f9d(0x2af)](){const _0x3df0bf=_0x338f9d;this['disposeWithMe'](a[_0x3df0bf(0x2f1)](this[_0x3df0bf(0x310)][_0x3df0bf(0x209)][_0x3df0bf(0x276)])[_0x3df0bf(0x349)]($['filter'](_0x4902f5=>_0x4902f5['type']===p['TRANSFORM_CHANGE_OBSERVABLE_TYPE'][_0x3df0bf(0x340)]),$[_0x3df0bf(0x38b)](0x10))[_0x3df0bf(0x239)](()=>{const _0x503e88=_0x3df0bf;this[_0x503e88(0x3d8)]();}));}};Ie=vt([W(0x1,a[_0x338f9d(0x388)](Y[_0x338f9d(0x218)])),W(0x2,a['Inject'](x)),W(0x3,a['ICommandService']),W(0x4,a[_0x338f9d(0x388)](a[_0x338f9d(0x2de)]))],Ie);const gt=0x1,mt=1.5;class Pe extends p[_0x338f9d(0x396)]{constructor(_0x1b1c03,_0x1f9cc7){const _0x40b1de=_0x338f9d;super(_0x1b1c03,_0x1f9cc7),h(this,_0x40b1de(0x267)),h(this,'_hovered',!0x1),h(this,'_range'),h(this,_0x40b1de(0x432),''),h(this,_0x40b1de(0x3dc),_0x40b1de(0x3a1)),h(this,_0x40b1de(0x336)),(_0x1f9cc7&&this[_0x40b1de(0x2da)](_0x1f9cc7),this[_0x40b1de(0x3d2)][_0x40b1de(0x227)](()=>this[_0x40b1de(0x2da)]({'hovered':!0x0})),this[_0x40b1de(0x1bc)]['subscribeEvent'](()=>this[_0x40b1de(0x2da)]({'hovered':!0x1})));}[_0x338f9d(0x2da)](_0x48040e){const _0x30b7f1=_0x338f9d;var _0x571116,_0x2feacc,_0x318f4a,_0x2a1491,_0xae6f2d,_0x278201;this[_0x30b7f1(0x267)]=(_0x571116=_0x48040e[_0x30b7f1(0x325)])!=null?_0x571116:this['_color'],this[_0x30b7f1(0x200)]=(_0x2feacc=_0x48040e[_0x30b7f1(0x429)])!=null?_0x2feacc:this['_hovered'],this[_0x30b7f1(0x1a4)]=(_0x318f4a=_0x48040e[_0x30b7f1(0x352)])!=null?_0x318f4a:this[_0x30b7f1(0x1a4)],this['_name']=(_0x2a1491=_0x48040e['name'])!=null?_0x2a1491:this[_0x30b7f1(0x432)],this['_labelPosition']=(_0xae6f2d=_0x48040e[_0x30b7f1(0x32c)])!=null?_0xae6f2d:this[_0x30b7f1(0x3dc)],this[_0x30b7f1(0x336)]=(_0x278201=_0x48040e[_0x30b7f1(0x3a7)])!=null?_0x278201:this[_0x30b7f1(0x336)],this[_0x30b7f1(0x27d)]({'width':_0x48040e[_0x30b7f1(0x35b)],'height':_0x48040e[_0x30b7f1(0x26a)]});}[_0x338f9d(0x2f4)](_0x307677){const _0x219eeb=_0x338f9d,{row:_0x4b55cb,column:_0x4419e3}=_0x307677;if(_0x4b55cb>=this[_0x219eeb(0x1a4)][_0x219eeb(0x38e)]&&_0x4b55cb<=this[_0x219eeb(0x1a4)]['endRow']&&_0x4419e3>=this[_0x219eeb(0x1a4)][_0x219eeb(0x3b3)]&&_0x4419e3<=this[_0x219eeb(0x1a4)][_0x219eeb(0x234)]){this[_0x219eeb(0x2da)]({'hovered':!0x0});return;}this[_0x219eeb(0x2da)]({'hovered':!0x1});}[_0x338f9d(0x428)](_0x122b37){return!0x1;}[_0x338f9d(0x1ae)](_0x179d5f){const _0xcae9e0=_0x338f9d;p[_0xcae9e0(0x2d3)]['drawWith'](_0x179d5f,{'width':this[_0xcae9e0(0x35b)],'height':this['height'],'strokeWidth':mt,'stroke':this[_0xcae9e0(0x267)],'evented':!0x1,'fill':this['_backgroundColor']}),this[_0xcae9e0(0x200)]&&(_0x179d5f[_0xcae9e0(0x410)](),_0x179d5f[_0xcae9e0(0x1d2)](0x1,0x0,0x0,0x1,this[_0xcae9e0(0x35b)],this['_labelPosition']==='bottom'?0x0:-0x14),ee['drawWith'](_0x179d5f,{'text':this[_0xcae9e0(0x432)],'color':this[_0xcae9e0(0x267)]}),_0x179d5f[_0xcae9e0(0x238)]());}}var Ct=Object['getOwnPropertyDescriptor'],pt=(_0x5f5c49,_0x27b13c,_0x2c650f,_0x113920)=>{const _0x2a4482=_0x338f9d;for(var _0x5c1f0e=_0x113920>0x1?void 0x0:_0x113920?Ct(_0x27b13c,_0x2c650f):_0x27b13c,_0x4f7938=_0x5f5c49[_0x2a4482(0x29d)]-0x1,_0x2ad159;_0x4f7938>=0x0;_0x4f7938--)(_0x2ad159=_0x5f5c49[_0x4f7938])&&(_0x5c1f0e=_0x2ad159(_0x5c1f0e)||_0x5c1f0e);return _0x5c1f0e;},ae=(_0x17be93,_0x3feb82)=>(_0x585faf,_0x5edf18)=>_0x3feb82(_0x585faf,_0x5edf18,_0x17be93);const bt=0x1389;let ve=class extends a['RxDisposable']{constructor(_0x5a7aa4,_0x6e55f7,_0x429f55,_0x114ab0){const _0x2daadc=_0x338f9d;super(),h(this,_0x2daadc(0x226),new Set()),h(this,_0x2daadc(0x409),null),(this[_0x2daadc(0x310)]=_0x5a7aa4,this['_sheetSkeletonManagerService']=_0x6e55f7,this['_collabCursorController']=_0x429f55,this[_0x2daadc(0x1b5)]=_0x114ab0,this['_init']());}['_init'](){const _0x31a44e=_0x338f9d;this['_sheetSkeletonManagerService'][_0x31a44e(0x3e6)][_0x31a44e(0x349)]($[_0x31a44e(0x36f)](this[_0x31a44e(0x42b)]),$['switchMap'](_0x1f53b3=>{const _0x4098f1=_0x31a44e;if(_0x1f53b3){const _0x5cb279=_0x1f53b3[_0x4098f1(0x41b)];return d[_0x4098f1(0x363)](this[_0x4098f1(0x321)][_0x4098f1(0x2e9)](this[_0x4098f1(0x310)][_0x4098f1(0x20d)]),this['_themeService'][_0x4098f1(0x3be)])[_0x4098f1(0x349)]($[_0x4098f1(0x1f7)](([_0xba11f6,_0x3c00ec])=>{const _0x2cf9cf=new Map();return _0xba11f6['forEach']((_0x36ac73,_0x314c72)=>{const _0x4ae7a9=_0xe86e;if(_0x36ac73[_0x4ae7a9(0x3bc)]===_0x5cb279){const _0x15d081={..._0x36ac73};_0x15d081[_0x4ae7a9(0x325)]=this[_0x4ae7a9(0x1b5)][_0x4ae7a9(0x2cd)](_0x36ac73[_0x4ae7a9(0x325)]),_0x2cf9cf[_0x4ae7a9(0x208)](_0x314c72,_0x15d081);}}),{'skeleton':_0x1f53b3,'cursors':_0x2cf9cf};}));}return d['of']({'skeleton':null,'cursors':new Map()});}))[_0x31a44e(0x239)](({skeleton:_0x15c487,cursors:_0x5ce824})=>{const _0x29f34e=_0x31a44e;this[_0x29f34e(0x423)](),_0x15c487&&this[_0x29f34e(0x329)](_0x15c487,_0x5ce824);}),this['_sheetSkeletonManagerService'][_0x31a44e(0x3e6)]['subscribe'](_0x57bdad=>{const _0x2cf40f=_0x31a44e;if(_0x57bdad==null)return;const {skeleton:_0x50037c}=_0x57bdad,{scene:_0x1e9b95}=this[_0x2cf40f(0x310)];_0x1e9b95['onPointerMove$']['subscribeEvent'](a[_0x2cf40f(0x42c)](_0x4ed465=>{const _0x4ec328=_0x2cf40f;var _0x54b60f,_0x279597;const {offsetX:_0x37d725,offsetY:_0x3932c5}=_0x4ed465,{x:_0x193bf4,y:_0x49b548}=_0x1e9b95[_0x4ec328(0x224)](p[_0x4ec328(0x2b2)][_0x4ec328(0x3d9)]([_0x37d725,_0x3932c5])),{scaleX:_0x3e06bf,scaleY:_0x19795f}=_0x1e9b95['getAncestorScale'](),_0x4b253b=_0x1e9b95['getViewport'](p[_0x4ec328(0x2e7)][_0x4ec328(0x39b)]),_0x58c27c=_0x1e9b95[_0x4ec328(0x269)](p[_0x4ec328(0x2b2)][_0x4ec328(0x3d9)]([_0x193bf4,_0x49b548]),_0x4b253b),_0x280528=_0x50037c['getCellPositionByOffset'](_0x37d725,_0x3932c5,_0x3e06bf,_0x19795f,_0x58c27c);((_0x54b60f=this[_0x4ec328(0x409)])==null?void 0x0:_0x54b60f[_0x4ec328(0x2ef)])===_0x280528[_0x4ec328(0x2ef)]&&((_0x279597=this[_0x4ec328(0x409)])==null?void 0x0:_0x279597[_0x4ec328(0x215)])===_0x280528[_0x4ec328(0x215)]||this['_cursors'][_0x4ec328(0x2d6)](_0xe38d4d=>{const _0x33e0cf=_0x4ec328;_0xe38d4d[_0x33e0cf(0x2f4)](_0x280528);});},0x64));});}[_0x338f9d(0x329)](_0x5533f4,_0x2d20aa){const _0x3b0b13=_0x338f9d;var _0x12bb50;const _0x2ed09b=(_0x12bb50=this[_0x3b0b13(0x1aa)][_0x3b0b13(0x35a)]())==null?void 0x0:_0x12bb50['skeleton'];if(!_0x2ed09b)return;const _0xc5196d=this['_getSheetObject']();if(!_0xc5196d)return;this['_cursors'][_0x3b0b13(0x2d6)](_0x2c5392=>{const _0xf2578a=_0x3b0b13;_0x2c5392[_0xf2578a(0x397)]();});const {scene:_0x5140d}=_0xc5196d,_0x47431d=Et(Array['from'](_0x2d20aa[_0x3b0b13(0x30a)]()))['map'](_0x286f02=>{const _0x33640e=_0x3b0b13,{color:_0x1763b9,range:_0x4a21dc,name:_0x44aa63,selection:_0x741a61,sheetID:_0x5c9d1d}=_0x286f02,{startColumn:_0x348c9e,startRow:_0x5a573c,endColumn:_0x38aad8,endRow:_0x43cf79}=_0x4a21dc,_0x2e9932=X[_0x33640e(0x293)](_0x5a573c,_0x348c9e,_0x5140d,_0x2ed09b),_0x30a934=X[_0x33640e(0x293)](_0x43cf79,_0x38aad8,_0x5140d,_0x2ed09b),{columnHeaderHeightAndMarginTop:_0x5a18c2}=_0x2ed09b,{startX:_0xc0f54a,startY:_0x488b36}=_0x2e9932,{endX:_0x3b39ca,endY:_0x283547}=_0x30a934,_0xb4ba83=_0x3b39ca-_0xc0f54a,_0x22a78c=_0x283547-_0x488b36,_0x5b938a={'labelPosition':_0x488b36-_0x5a18c2>=K?_0x33640e(0x3a1):_0x33640e(0x2db),'sheetID':_0x5c9d1d,'range':_0x4a21dc,'color':_0x1763b9,'name':_0x44aa63,'selection':_0x741a61,'left':_0xc0f54a,'top':_0x488b36,'width':_0xb4ba83,'height':_0x22a78c,'evented':!0x1,'zIndex':bt};return new Pe(_0x44aa63,_0x5b938a);});_0x5140d[_0x3b0b13(0x1ef)](_0x47431d,gt),this[_0x3b0b13(0x226)]=new Set(_0x47431d);}['_removeCollabCursors'](){const _0x18a2ec=_0x338f9d;var _0x1b3c87;(_0x1b3c87=this[_0x18a2ec(0x226)])==null||_0x1b3c87[_0x18a2ec(0x2d6)](_0x4f521e=>_0x4f521e[_0x18a2ec(0x361)]());}[_0x338f9d(0x20c)](){const _0xa96b63=_0x338f9d;return X[_0xa96b63(0x372)](this[_0xa96b63(0x310)]['unit'],this['_context']);}};ve=pt([ae(0x1,a[_0x338f9d(0x388)](X[_0x338f9d(0x229)])),ae(0x2,a[_0x338f9d(0x388)](x)),ae(0x3,a['Inject'](a['ThemeService']))],ve);function Et(_0x3b21e8){const _0x449b0d=new Map();return _0x3b21e8['forEach'](_0x2973d3=>{const _0x375a12=_0xe86e;if(_0x449b0d[_0x375a12(0x3ed)](_0x2973d3['selection'])){const _0x58f48d=_0x449b0d['get'](_0x2973d3[_0x375a12(0x23a)]);_0x58f48d['name']+=',\x20'+_0x2973d3[_0x375a12(0x31b)];}else _0x449b0d[_0x375a12(0x208)](_0x2973d3[_0x375a12(0x23a)],_0x2973d3);}),Array['from'](_0x449b0d['values']());}var E=function(){const _0x29f83e=_0x338f9d;return E=Object[_0x29f83e(0x236)]||function(_0x33a5ae){const _0x228f99=_0x29f83e;for(var _0x32e3ba,_0x5bbfe3=0x1,_0x28949f=arguments[_0x228f99(0x29d)];_0x5bbfe3<_0x28949f;_0x5bbfe3++){_0x32e3ba=arguments[_0x5bbfe3];for(var _0x3530d6 in _0x32e3ba)Object['prototype'][_0x228f99(0x1eb)][_0x228f99(0x39d)](_0x32e3ba,_0x3530d6)&&(_0x33a5ae[_0x3530d6]=_0x32e3ba[_0x3530d6]);}return _0x33a5ae;},E[_0x29f83e(0x1a1)](this,arguments);},Tt=function(_0x26d7c4,_0x5efe51){const _0x96dcb8=_0x338f9d;var _0x5525a8={};for(var _0x10567e in _0x26d7c4)Object[_0x96dcb8(0x309)][_0x96dcb8(0x1eb)][_0x96dcb8(0x39d)](_0x26d7c4,_0x10567e)&&_0x5efe51[_0x96dcb8(0x1e9)](_0x10567e)<0x0&&(_0x5525a8[_0x10567e]=_0x26d7c4[_0x10567e]);if(_0x26d7c4!=null&&typeof Object[_0x96dcb8(0x1be)]==_0x96dcb8(0x2c0)){for(var _0x1987b0=0x0,_0x10567e=Object[_0x96dcb8(0x1be)](_0x26d7c4);_0x1987b0<_0x10567e['length'];_0x1987b0++)_0x5efe51['indexOf'](_0x10567e[_0x1987b0])<0x0&&Object['prototype'][_0x96dcb8(0x3e5)][_0x96dcb8(0x39d)](_0x26d7c4,_0x10567e[_0x1987b0])&&(_0x5525a8[_0x10567e[_0x1987b0]]=_0x26d7c4[_0x10567e[_0x1987b0]]);}return _0x5525a8;},pe=M['forwardRef'](function(_0xe03370,_0x43e53c){const _0x697e2b=_0x338f9d;var _0x9c68bf=_0xe03370[_0x697e2b(0x2fc)],_0x486f81=_0xe03370['id'],_0x33bc87=_0xe03370['className'],_0x2ab4cf=_0xe03370[_0x697e2b(0x1dc)],_0x2ae037=Tt(_0xe03370,['icon','id','className','extend']),_0x5b0886=_0x697e2b(0x2e2)[_0x697e2b(0x2dc)](_0x486f81,'\x20')[_0x697e2b(0x2dc)](_0x33bc87||'')[_0x697e2b(0x311)](),_0x5945d1=M[_0x697e2b(0x358)]('_'['concat'](Dt()));return Ae(_0x9c68bf,''['concat'](_0x486f81),{'defIds':_0x9c68bf[_0x697e2b(0x2a9)],'idSuffix':_0x5945d1[_0x697e2b(0x389)]},E({'ref':_0x43e53c,'className':_0x5b0886},_0x2ae037),_0x2ab4cf);});function Ae(_0x335cdf,_0x1e6a9f,_0x136178,_0x1db9da,_0x3e2685){const _0x85fe37=_0x338f9d;return M[_0x85fe37(0x35c)](_0x335cdf['tag'],E(E({'key':_0x1e6a9f},Ot(_0x335cdf,_0x136178,_0x3e2685)),_0x1db9da),(Rt(_0x335cdf,_0x136178)['children']||[])[_0x85fe37(0x1f7)](function(_0x58183a,_0x2c8568){const _0x483ec1=_0x85fe37;return Ae(_0x58183a,''[_0x483ec1(0x2dc)](_0x1e6a9f,'-')[_0x483ec1(0x2dc)](_0x335cdf[_0x483ec1(0x371)],'-')[_0x483ec1(0x2dc)](_0x2c8568),_0x136178,void 0x0,_0x3e2685);}));}function Ot(_0x540213,_0x3861fe,_0x2ccef6){const _0x41d08d=_0x338f9d;var _0xf7d066=E({},_0x540213[_0x41d08d(0x2c9)]);_0x2ccef6!=null&&_0x2ccef6[_0x41d08d(0x351)]&&_0xf7d066[_0x41d08d(0x280)]==='colorChannel1'&&(_0xf7d066['fill']=_0x2ccef6[_0x41d08d(0x351)]),_0x540213[_0x41d08d(0x371)]===_0x41d08d(0x32a)&&_0xf7d066['id']&&(_0xf7d066['id']=_0xf7d066['id']+_0x3861fe[_0x41d08d(0x34a)]),Object['entries'](_0xf7d066)[_0x41d08d(0x2d6)](function(_0x4c5446){const _0x3ed844=_0x41d08d;var _0x45ad61=_0x4c5446[0x0],_0x23e5c5=_0x4c5446[0x1];_0x45ad61===_0x3ed844(0x32a)&&typeof _0x23e5c5==_0x3ed844(0x319)&&(_0xf7d066[_0x45ad61]=_0x23e5c5[_0x3ed844(0x434)](/url\(#(.*)\)/,_0x3ed844(0x2f2)[_0x3ed844(0x2dc)](_0x3861fe['idSuffix'],')')));});var _0x41b83e=_0x3861fe['defIds'];return!_0x41b83e||_0x41b83e[_0x41d08d(0x29d)]===0x0||(_0x540213['tag']==='use'&&_0xf7d066[_0x41d08d(0x1c0)]&&(_0xf7d066['xlink:href']=_0xf7d066[_0x41d08d(0x1c0)]+_0x3861fe[_0x41d08d(0x34a)]),Object['entries'](_0xf7d066)[_0x41d08d(0x2d6)](function(_0x2dbdec){const _0x142d88=_0x41d08d;var _0x1d6a8c=_0x2dbdec[0x0],_0xe5c4e9=_0x2dbdec[0x1];typeof _0xe5c4e9==_0x142d88(0x319)&&(_0xf7d066[_0x1d6a8c]=_0xe5c4e9[_0x142d88(0x434)](/url\(#(.*)\)/,_0x142d88(0x2f2)[_0x142d88(0x2dc)](_0x3861fe['idSuffix'],')')));})),_0xf7d066;}function Rt(_0x3dbd1b,_0x354b4e){const _0x38b080=_0x338f9d;var _0x1b83b5,_0x69bc75=_0x354b4e[_0x38b080(0x2a9)];return!_0x69bc75||_0x69bc75['length']===0x0?_0x3dbd1b:_0x3dbd1b['tag']===_0x38b080(0x22d)&&(!((_0x1b83b5=_0x3dbd1b[_0x38b080(0x303)])===null||_0x1b83b5===void 0x0)&&_0x1b83b5[_0x38b080(0x29d)])?E(E({},_0x3dbd1b),{'children':_0x3dbd1b[_0x38b080(0x303)][_0x38b080(0x1f7)](function(_0x42f364){const _0x29b50f=_0x38b080;return typeof _0x42f364[_0x29b50f(0x2c9)]['id']=='string'&&_0x69bc75&&_0x69bc75[_0x29b50f(0x350)](_0x42f364[_0x29b50f(0x2c9)]['id'])?E(E({},_0x42f364),{'attrs':E(E({},_0x42f364[_0x29b50f(0x2c9)]),{'id':_0x42f364['attrs']['id']+_0x354b4e[_0x29b50f(0x34a)]})}):_0x42f364;})}):_0x3dbd1b;}function Dt(){const _0x3f4daa=_0x338f9d;return Math[_0x3f4daa(0x1e1)]()[_0x3f4daa(0x40b)](0x24)[_0x3f4daa(0x2cc)](0x2,0x8);}pe[_0x338f9d(0x199)]=_0x338f9d(0x1cf);var Ut={'tag':'svg','attrs':{'xmlns':_0x338f9d(0x243),'fill':'none','viewBox':_0x338f9d(0x26d),'width':_0x338f9d(0x2c7),'height':_0x338f9d(0x2c7)},'children':[{'tag':'g','attrs':{'clipPath':_0x338f9d(0x3d6)},'children':[{'tag':'path','attrs':{'stroke':_0x338f9d(0x25c),'d':_0x338f9d(0x1d0),'strokeLinecap':_0x338f9d(0x2ee),'strokeLinejoin':'round','strokeWidth':1.2}}]},{'tag':_0x338f9d(0x22d),'attrs':{},'children':[{'tag':_0x338f9d(0x21f),'attrs':{'id':_0x338f9d(0x368)},'children':[{'tag':_0x338f9d(0x3c3),'attrs':{'fill':_0x338f9d(0x221),'d':_0x338f9d(0x317)}}]}]}],'defIds':[_0x338f9d(0x368)]},ye=M[_0x338f9d(0x399)](function(_0x5d6143,_0x5d74fd){const _0x5efe5b=_0x338f9d;return M[_0x5efe5b(0x35c)](pe,Object[_0x5efe5b(0x236)]({},_0x5d6143,{'id':'off-line-icon','ref':_0x5d74fd,'icon':Ut}));});ye[_0x338f9d(0x199)]=_0x338f9d(0x1d3);var Nt={'tag':'svg','attrs':{'xmlns':_0x338f9d(0x243),'fill':'none','viewBox':_0x338f9d(0x373),'width':'1em','height':_0x338f9d(0x2c7)},'children':[{'tag':'g','attrs':{'clipPath':_0x338f9d(0x356)},'children':[{'tag':'path','attrs':{'stroke':_0x338f9d(0x25c),'d':_0x338f9d(0x37e),'strokeLinecap':_0x338f9d(0x2ee),'strokeLinejoin':_0x338f9d(0x2ee),'strokeWidth':1.2}}]},{'tag':'defs','attrs':{},'children':[{'tag':'clipPath','attrs':{'id':_0x338f9d(0x375)},'children':[{'tag':_0x338f9d(0x3c3),'attrs':{'fill':_0x338f9d(0x221),'d':_0x338f9d(0x317),'transform':_0x338f9d(0x3e4)}}]}]}],'defIds':[_0x338f9d(0x375)]},$e=M['forwardRef'](function(_0x1b0518,_0x19a928){const _0x1b6a80=_0x338f9d;return M[_0x1b6a80(0x35c)](pe,Object['assign']({},_0x1b0518,{'id':_0x1b6a80(0x1d4),'ref':_0x19a928,'icon':Nt}));});$e[_0x338f9d(0x199)]=_0x338f9d(0x435);function Mt(_0x489c2a){const _0x62677d=_0x338f9d;switch(_0x489c2a){case u[_0x62677d(0x31d)][_0x62677d(0x212)]:return _0x62677d(0x28c);case u[_0x62677d(0x31d)][_0x62677d(0x40a)]:return'collabStatus.conflict';case u[_0x62677d(0x31d)][_0x62677d(0x32e)]:return _0x62677d(0x376);case u[_0x62677d(0x31d)]['NOT_COLLAB']:return _0x62677d(0x2e5);case u['CollaborationStatus'][_0x62677d(0x25b)]:case u[_0x62677d(0x31d)]['AWAITING_WITH_PENDING']:return _0x62677d(0x398);case u[_0x62677d(0x31d)]['SYNCED']:case u[_0x62677d(0x31d)][_0x62677d(0x344)]:return'collabStatus.synced';}}function xe(_0x5dbc44){const _0x3afe09=_0x338f9d,{status$:_0x53f6ab}=_0x5dbc44,_0x4f58fa=T[_0x3afe09(0x314)](_0x53f6ab,u[_0x3afe09(0x31d)]['NOT_COLLAB']),_0x45aae3=T[_0x3afe09(0x27f)](a[_0x3afe09(0x249)]),_0xa22443=T[_0x3afe09(0x27f)](u[_0x3afe09(0x262)]),_0x1d2fcb=_0x4f58fa!==u[_0x3afe09(0x31d)][_0x3afe09(0x212)],_0x292ed9=_0x45aae3['t'](Mt(_0x4f58fa)),_0x2932cc=_0x1d2fcb?w[_0x3afe09(0x23f)]($e,{}):w[_0x3afe09(0x23f)](ye,{}),_0x3154f5=M['useCallback'](()=>{const _0x36d1b2=_0x3afe09;_0x1d2fcb||_0xa22443[_0x36d1b2(0x3f2)]();},[_0x1d2fcb,_0xa22443]);function _0x45917c(){const _0x241d8a=_0x3afe09;return w[_0x241d8a(0x2a6)]('div',{'className':_0x241d8a(0x3a6),'onClick':_0x3154f5,'children':[w[_0x241d8a(0x23f)](_0x241d8a(0x2a2),{'className':D['clsx'](_0x241d8a(0x1df),{'univer-text-green-500':_0x1d2fcb,'univer-text-red-500':!_0x1d2fcb}),'children':_0x2932cc}),w[_0x241d8a(0x23f)]('div',{'className':_0x241d8a(0x216),'children':_0x292ed9})]});}return _0x1d2fcb?_0x45917c():w[_0x3afe09(0x23f)](D[_0x3afe09(0x42e)],{'title':_0x45aae3['t'](_0x3afe09(0x20b)),'children':_0x45917c()});}var Lt=Object[_0x338f9d(0x20f)],wt=(_0x201e53,_0x2e892e,_0x2f6df0,_0x2bfdaa)=>{const _0x4d1f3a=_0x338f9d;for(var _0x1315f9=_0x2bfdaa>0x1?void 0x0:_0x2bfdaa?Lt(_0x2e892e,_0x2f6df0):_0x2e892e,_0x48b3d9=_0x201e53[_0x4d1f3a(0x29d)]-0x1,_0x510992;_0x48b3d9>=0x0;_0x48b3d9--)(_0x510992=_0x201e53[_0x48b3d9])&&(_0x1315f9=_0x510992(_0x1315f9)||_0x1315f9);return _0x1315f9;},V=(_0x25df8b,_0x39ea20)=>(_0x3e438d,_0x16c912)=>_0x39ea20(_0x3e438d,_0x16c912,_0x25df8b);exports[_0x338f9d(0x332)]=class extends a[_0x338f9d(0x40d)]{constructor(_0x2cd25d,_0xa77bf2,_0x1bf8d3,_0x5ceb5b){const _0x21bf90=_0x338f9d;super(),h(this,'_status$',new d[(_0x21bf90(0x3ac))](u[_0x21bf90(0x31d)][_0x21bf90(0x230)])),(this['_univerInstanceService']=_0x2cd25d,this[_0x21bf90(0x278)]=_0xa77bf2,this[_0x21bf90(0x1e6)]=_0x1bf8d3,this[_0x21bf90(0x27a)]=_0x5ceb5b,this[_0x21bf90(0x252)](),this[_0x21bf90(0x306)]());}[_0x338f9d(0x306)](){const _0x4abed4=_0x338f9d;this[_0x4abed4(0x3df)](this[_0x4abed4(0x24c)][_0x4abed4(0x1ab)][_0x4abed4(0x349)](d[_0x4abed4(0x2ce)](()=>{const _0x3eb051=_0x4abed4,_0x4514fe=this[_0x3eb051(0x24c)][_0x3eb051(0x20a)]();return _0x4514fe?this[_0x3eb051(0x1e6)][_0x3eb051(0x3a0)](_0x4514fe['getUnitId']()):d['of'](null);}),d['switchMap'](_0xad0ec9=>_0xad0ec9?_0xad0ec9[_0x4abed4(0x1d7)]:d['of'](u[_0x4abed4(0x31d)][_0x4abed4(0x230)])))[_0x4abed4(0x239)](_0x241a0c=>{const _0x4ae153=_0x4abed4;this[_0x4ae153(0x2a7)][_0x4ae153(0x346)](_0x241a0c);}));}[_0x338f9d(0x252)](){const _0x1e4876=_0x338f9d;this[_0x1e4876(0x3df)](this[_0x1e4876(0x27a)][_0x1e4876(0x1a0)](T[_0x1e4876(0x2ea)]['HEADER_MENU'],()=>T[_0x1e4876(0x2ac)](Pt({'status$':this['_status$'][_0x1e4876(0x3fe)]()}),this[_0x1e4876(0x278)])));}},exports['DesktopCollaborationStatusDisplayController']=wt([V(0x0,a['IUniverInstanceService']),V(0x1,a[_0x338f9d(0x388)](a['Injector'])),V(0x2,a['Inject'](u[_0x338f9d(0x3ec)])),V(0x3,T[_0x338f9d(0x19d)])],exports['DesktopCollaborationStatusDisplayController']);function Pt(_0x17fac8){const {status$:_0x20cba5}=_0x17fac8;return function(){const _0xb2a28c=_0xe86e;return w[_0xb2a28c(0x23f)](xe,{'status$':_0x20cba5});};}var At=Object['getOwnPropertyDescriptor'],yt=(_0x30ac1e,_0x231e6f,_0x4c202e,_0x3d8adc)=>{const _0x3c71cc=_0x338f9d;for(var _0x483293=_0x3d8adc>0x1?void 0x0:_0x3d8adc?At(_0x231e6f,_0x4c202e):_0x231e6f,_0x52d497=_0x30ac1e[_0x3c71cc(0x29d)]-0x1,_0x400c36;_0x52d497>=0x0;_0x52d497--)(_0x400c36=_0x30ac1e[_0x52d497])&&(_0x483293=_0x400c36(_0x483293)||_0x483293);return _0x483293;},y=(_0xe3b4e5,_0x393be9)=>(_0x322402,_0x5e5ed0)=>_0x393be9(_0x322402,_0x5e5ed0,_0xe3b4e5);let q=class extends a[_0x338f9d(0x40d)]{constructor(_0x2c0c49,_0x1e3783,_0x48fad6,_0x546979,_0x393761,_0x1f804f){const _0x3ab8bc=_0x338f9d;super(),this[_0x3ab8bc(0x365)]=_0x2c0c49,this[_0x3ab8bc(0x2bf)]=_0x1e3783,this[_0x3ab8bc(0x1ee)]=_0x48fad6,this[_0x3ab8bc(0x3bd)]=_0x546979,this[_0x3ab8bc(0x33e)]=_0x393761,this[_0x3ab8bc(0x333)]=_0x1f804f,this[_0x3ab8bc(0x367)](),this[_0x3ab8bc(0x379)]();}[_0x338f9d(0x367)](){const _0x4efed2=_0x338f9d;this[_0x4efed2(0x3df)](this[_0x4efed2(0x365)][_0x4efed2(0x3c2)](()=>{const _0x5aa1ec=_0x4efed2;if(this[_0x5aa1ec(0x2bf)][_0x5aa1ec(0x3ca)][_0x5aa1ec(0x1f2)])return this[_0x5aa1ec(0x333)]['t'](_0x5aa1ec(0x42f));}));}[_0x338f9d(0x379)](){const _0xceec5a=_0x338f9d;this[_0xceec5a(0x3df)](this['_collaborationUIEventService'][_0xceec5a(0x33f)][_0xceec5a(0x239)](_0x285f74=>{const _0x30c003=_0xceec5a;_0x285f74['id']===u[_0x30c003(0x1f1)]['OTHER_CLIENT_EDITING']&&this['_messageService']['show']({'type':D[_0x30c003(0x1c4)][_0x30c003(0x3f5)],'content':this[_0x30c003(0x333)]['t'](_0x30c003(0x403))}),_0x285f74['id']===u[_0x30c003(0x1f1)][_0x30c003(0x1ce)]&&this[_0x30c003(0x3bd)][_0x30c003(0x1e4)]({'type':D['MessageType'][_0x30c003(0x3f5)],'content':this[_0x30c003(0x333)]['t'](_0x30c003(0x3de))}),_0x285f74['id']===u[_0x30c003(0x1f1)][_0x30c003(0x312)]&&this[_0x30c003(0x33e)]['show']({'title':this['_localeService']['t'](_0x30c003(0x3e9)),'content':this[_0x30c003(0x333)]['t'](_0x30c003(0x2c8)),'type':_0x30c003(0x1d9),'duration':0x0}),_0x285f74['id']===u[_0x30c003(0x1f1)]['CONFLICT']&&this['_messageService']['show']({'type':D[_0x30c003(0x1c4)][_0x30c003(0x307)],'content':this['_localeService']['t'](_0x30c003(0x3de))+'('+_0x285f74[_0x30c003(0x3c1)]+')'}),_0x285f74['id']===u[_0x30c003(0x1f1)][_0x30c003(0x2fd)]&&this[_0x30c003(0x3bd)][_0x30c003(0x1e4)]({'type':D[_0x30c003(0x1c4)][_0x30c003(0x3f5)],'content':this[_0x30c003(0x333)]['t'](_0x285f74[_0x30c003(0x3c1)]||'')}),_0x285f74['id']===u[_0x30c003(0x1f1)][_0x30c003(0x318)]&&this[_0x30c003(0x3bd)][_0x30c003(0x1e4)]({'type':D[_0x30c003(0x1c4)]['Warning'],'content':this[_0x30c003(0x333)]['t']('session.will-retry')}),_0x285f74['id']===u[_0x30c003(0x1f1)][_0x30c003(0x418)]&&this[_0x30c003(0x3bd)][_0x30c003(0x1e4)]({'type':D[_0x30c003(0x1c4)]['Error'],'content':this[_0x30c003(0x333)]['t'](_0x30c003(0x257))}),_0x285f74['id']===u[_0x30c003(0x1f1)]['SUBMIT_CHANGESET_TIMEOUT']&&this[_0x30c003(0x3bd)]['show']({'type':D[_0x30c003(0x1c4)][_0x30c003(0x307)],'content':this[_0x30c003(0x333)]['t'](_0x30c003(0x414))});}));}};q=yt([y(0x0,T[_0x338f9d(0x3aa)]),y(0x1,u[_0x338f9d(0x2a3)]),y(0x2,a[_0x338f9d(0x388)](u[_0x338f9d(0x3fb)])),y(0x3,T[_0x338f9d(0x290)]),y(0x4,T['INotificationService']),y(0x5,a['Inject'](a[_0x338f9d(0x249)]))],q);const $t='collaboration-client-ui.config',Ue={},be=a['createIdentifier']('uni.network.url-service');var xt=Object['getOwnPropertyDescriptor'],jt=(_0x1af8c0,_0x1fff99,_0x510d0a,_0x546954)=>{const _0x4bb4cb=_0x338f9d;for(var _0x204ef1=_0x546954>0x1?void 0x0:_0x546954?xt(_0x1fff99,_0x510d0a):_0x1fff99,_0x10fb58=_0x1af8c0[_0x4bb4cb(0x29d)]-0x1,_0x763ba9;_0x10fb58>=0x0;_0x10fb58--)(_0x763ba9=_0x1af8c0[_0x10fb58])&&(_0x204ef1=_0x763ba9(_0x204ef1)||_0x204ef1);return _0x204ef1;},H=(_0x5a26af,_0x1dcc89)=>(_0x92ff0c,_0x3c5a2d)=>_0x1dcc89(_0x92ff0c,_0x3c5a2d,_0x5a26af);exports[_0x338f9d(0x1ec)]=class extends a[_0x338f9d(0x1c2)]{constructor(_0x8b5f63,_0x2156ec,_0x3f0603,_0x19c9e1,_0x486847){const _0x54e1a3=_0x338f9d;super(),this['_urlService']=_0x8b5f63,this['_logService']=_0x2156ec,this[_0x54e1a3(0x3e0)]=_0x3f0603,this[_0x54e1a3(0x1a7)]=_0x19c9e1,_0x486847?_0x486847==null||_0x486847['whenReady']()[_0x54e1a3(0x1f5)](()=>this[_0x54e1a3(0x219)]()):(this[_0x54e1a3(0x281)][_0x54e1a3(0x436)](_0x54e1a3(0x2ca),_0x54e1a3(0x3ea)),this[_0x54e1a3(0x219)]());}async['_init'](){const _0x2ee1c2=_0x338f9d,_0x44a314=this['_urlService'][_0x2ee1c2(0x348)](_0x2ee1c2(0x2e8)),_0x14e03b=this[_0x2ee1c2(0x36c)]['getParam'](_0x2ee1c2(0x425)),_0x3612a8=this[_0x2ee1c2(0x36c)][_0x2ee1c2(0x348)]('subunit');if(!_0x44a314||!_0x14e03b){this['_logService'][_0x2ee1c2(0x436)](_0x2ee1c2(0x2ca),_0x2ee1c2(0x3e3));return;}const _0xbff8f9=await this[_0x2ee1c2(0x1a7)][_0x2ee1c2(0x402)](_0x44a314,Number(_0x14e03b),_0x3612a8);_0xbff8f9&&_0xbff8f9 instanceof a[_0x2ee1c2(0x26c)]&&this['_setupSubUnitSync'](_0xbff8f9);}async[_0x338f9d(0x40e)](_0x3d2c87){const _0x3712ef=_0x338f9d;await this[_0x3712ef(0x1c9)](_0x3d2c87),_0x3d2c87['activeSheet$'][_0x3712ef(0x349)](d[_0x3712ef(0x36f)](this['dispose$']))[_0x3712ef(0x239)](_0xa46165=>{const _0x3973e1=_0x3712ef;_0xa46165&&this[_0x3973e1(0x2ed)](_0xa46165);}),this[_0x3712ef(0x36c)][_0x3712ef(0x1fb)][_0x3712ef(0x349)](d[_0x3712ef(0x36f)](this[_0x3712ef(0x42b)]))[_0x3712ef(0x239)](()=>this[_0x3712ef(0x1c9)](_0x3d2c87));}[_0x338f9d(0x2ed)](_0x12ffd7,_0x27c630=!0x1){const _0xb1b1fb=_0x338f9d,_0x171da7=this[_0xb1b1fb(0x36c)][_0xb1b1fb(0x348)](_0xb1b1fb(0x3ad));_0x12ffd7[_0xb1b1fb(0x202)]()!==_0x171da7&&this[_0xb1b1fb(0x36c)][_0xb1b1fb(0x2d8)](_0xb1b1fb(0x3ad),_0x12ffd7[_0xb1b1fb(0x202)](),_0x27c630);}async[_0x338f9d(0x1c9)](_0x9eafc2){const _0x43f915=_0x338f9d;var _0x1d208e;const _0x321ed3=this[_0x43f915(0x36c)][_0x43f915(0x348)](_0x43f915(0x3ad));if(!_0x321ed3||!_0x9eafc2[_0x43f915(0x270)](_0x321ed3)){const _0x1ffc15=_0x9eafc2[_0x43f915(0x3cc)]()[0x0],_0x1419e8=_0x9eafc2[_0x43f915(0x270)](_0x1ffc15);if(!_0x1419e8)return;this[_0x43f915(0x2ed)](_0x1419e8,!0x0),await this[_0x43f915(0x3e0)][_0x43f915(0x30d)](g[_0x43f915(0x2b5)]['id'],{'unitId':_0x9eafc2[_0x43f915(0x2cb)](),'subUnitId':_0x1ffc15});return;}((_0x1d208e=_0x9eafc2['getActiveSheet']())==null?void 0x0:_0x1d208e[_0x43f915(0x202)]())!==_0x321ed3&&await this[_0x43f915(0x3e0)][_0x43f915(0x30d)](g[_0x43f915(0x2b5)]['id'],{'unitId':_0x9eafc2[_0x43f915(0x2cb)](),'subUnitId':_0x321ed3});}},exports['CollaborationDataLoaderController']=jt([H(0x0,be),H(0x1,a[_0x338f9d(0x3d0)]),H(0x2,a[_0x338f9d(0x1d1)]),H(0x3,a['Inject'](u[_0x338f9d(0x206)])),H(0x4,a[_0x338f9d(0x426)](Ke[_0x338f9d(0x3a8)]))],exports['CollaborationDataLoaderController']);function _0x2859(){const _0x4099eb=['_startDocCollabCursor','handleInsertRangeMoveDown','_getSessionTicket','addObject','textRanges','_memberService','_docSkeletonManagerService','DocStateChangeManagerService','collabStatus.offline','Unknown\x20user','jiqing.500','getUniverSheetInstance','IMessageService','EMAIL_HAS_BEEN_BOUND','SheetsSelectionsService','getCoordByCell','MOBILE_HAS_BEEN_BOUND','254gpGrak','SNAPSHOT_HAS_BEEN_REMOVED','_toggleOnline','beginPath','PY_RUNTIME_SCRIPT_ERROR','unitID','searchParams','runOnServer','length','NO_OTHER_CLIENTS_EDITING','YUUMI_SUBSCRIPTION_NOT_FOUND','getRangePointData','UniverCollaborationClientUIPlugin','div','ILocalCacheService','ITransformService','LICENSE_MAX_UNITS_EXCEEDED','jsxs','_status$','TEXT_RANGE_LAYER_INDEX','defIds','fillStyle','hide','connectInjector','_httpService','stringify','_initResize','RemoteUniscriptService','LOGIN_FAILED','Vector2','COLORS','Rectangle','SetWorksheetActivateCommand','registerDependencies','handleInsertCol','_registerDependencies','_saveCache','2633972WMMhoj','setTimeout','_document','setConfig','fillText','_localCacheService','function','_entities','@univerjs/docs-ui','48MAZDpa','saveOfflineData','EffectRefRangId','complete','1em','permission.content','attrs','[CollaborationDataLoaderController]','getUnitId','substring','getColorFromTheme','switchMap','_disabled','RegularPolygon','IUniverInstanceService','INVALID_ARGUMENT','Rect','BrowserCollaborationSocketService','_scheduleClearOtherTimer','forEach','getUnitStatus$','setParam','UniverInstanceType','setShapeProps','bottom','concat','4724262prabdU','ThemeService','text','lineTo','_scheduleHeartbeat','univerjs-icon\x20univerjs-icon-','UNIVER_DOC','_revisionService','collabStatus.notCollab','Plugin','SHEET_VIEWPORT_KEY','unit','getCollabCursors$','BuiltInUIPart','replaceState','/run/','_updateURLWithCurrentState','round','column','IConfigService','fromEventSubject','url(#$1','shareReplay','onMouseMove','evenodd','DocSelectionManagerService','handleIRemoveRow','429592wuGxBk','_anchorDot','replaceDocRanges','MemberService','icon','JOIN_ROOM_FAILED','_handleHeartbeatEvent','_initCommandExecutedListener','7HubUmN','_unitOnClients','Injector','children','_imageIoService','_getMergeRange','_initStatusListener','Error','delete','prototype','values','@univerjs/engine-render','_render','executeCommand','addEventListener','registerRefRange','_context','trim','PERMISSION_DENIED','RefRangeService','useObservable','MUTATION','_ensureSubject','M0\x200H16V16H0z','SOCKET_FAILED_RETRY','string','DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT','name','eventID','CollaborationStatus','rxjs/operators','touchDependencies','split','_collabCursorController','DependentOn','4022070uYmXcs','USER_NOT_INVITED_CODE','color','_handleHover','getValue','newValue','_updateCollabCursors','mask','memberID','labelPosition','373143ESPxIo','FETCH_MISS','_saveTaskMap','IRenderManagerService','LICENSE_IMPORT_SIZE_EXCEEDED','DesktopCollaborationStatusDisplayController','_localeService','InsertRangeMoveDownCommandId','m1Prime','_backgroundColor','SheetCollabCursorShape','_scene','yellow.400','purple.300','unload','_docTransformSelectionsService','_registerRenderDependencies','_notificationService','event$','resize','onRendered','RECT','_initDependencies','PENDING','NOT_FOUND','next','getSkeleton','getParam','pipe','idSuffix','_transformHistoryAndStateStack','get','APPLY_PERMISSION_DENIED','m2Prime','_drawRectRange','includes','colorChannel1','range','SetSelectionsOperation','requireSession','code','url(#on-line-icon_clip0_910_349)','fromEvent','useRef','isArray','getCurrent','width','createElement','DOC_RANGE_TYPE','INTERNAL_ERROR','getCurrentUnitForType','getDocRanges','dispose','getItem','combineLatest','SNAPSHOT_INVALID_SNAPSHOT','_beforeCloseService','CONNECTOR_DATA_TOO_LARGE','_setupBeforeClosingHandler','off-line-icon_clip0_910_343','red.300','SetTextSelectionsOperation','selections','_urlService','handleInsertRangeMoveRight','Failed','takeUntil','clearTimeout','tag','getSheetObject','0\x200\x2017\x2016','_onCursorUpdate','on-line-icon_clip0_910_349','collabStatus.fetchMiss','transformMutationsWithChangeset','_anchor','_initEvent','flatMap','APPLY_REVISION_CONFILICT','ISnapshotServerService','history','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','clearInterval','_removeClearOtherTimer','_instanceService','collab-rect-range-','_transformUndoRedoStack','toStringTag','1553101FcUBYl','onCommandExecuted','YUUMI_URL_COL_OUT_OF_RANGE','Inject','current','...','throttleTime','invokeId','_unitStatus','startRow','createSocket','init','onLocalMutation','OTHER_CLIENTS_EDITING','_id','_docTransformIMECacheService','merge','Shape','makeDirty','collabStatus.syncing','forwardRef','handleIRemoveCol','VIEW_MAIN','_send','call','getColor','getCurrentRevOfUnit','getCollabEntity$','top','[RemoteUniscriptService]:\x20no\x20focused\x20unit','body','unsubscribe','_initEntityListener','univer-flex\x20univer-items-center','backgroundColor','IRemoteInstanceService','@univerjs-pro/collaboration-client','IBeforeCloseService','YUUMI_AI_RUN_FAILED','BehaviorSubject','subunit','YUUMI_ASYNCIO_CANCELLED','IDocClipboardService','collab-text-anchor-','APPLY_NON_SEQUENTIAL_REVISION','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','startColumn','IURLService','setInterval','Subject','roomMembers$','application/json','UnitStatus','setActiveRange','min','sheetID','_messageService','currentTheme$','origin','@univerjs/engine-formula','data','registerBeforeClose','path','mutations','getTypeOfUnitDisposed$','black','location','ticket','setAlpha','saveTaskMap','pluginName','getUnhiddenWorksheets','getMemberID','getStateCache','redoState','ILogService','transformStateCache','onPointerEnter$','getRenderById','_onCursorDelete','_getSaveTimeout','url(#off-line-icon_clip0_910_343)','InsertRowCommandId','_refreshCollabCursors','FromArray','DeleteRangeMoveLeftCommandId','push','_labelPosition','_renderManagerService','collaboration.closeRoom','disposeWithMe','_commandService','_refRangeService','addClipboardHook','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','translate(.97)','propertyIsEnumerable','currentSkeleton$','_assignedColors','doc.mutation.rich-text-editing','permission.title','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','href','CollaborationController','has','_updateLocalCursor','_colorIndex','LICENSE_EXPORT_SIZE_EXCEEDED','_docClipboardService','reconnect','_toggleOffline','runId','Warning','CHANGESET_REVISION_CONFILICT','YUUMI_TABLE_NOT_FOUND_IN_UNIT','_roomMembers$','blue.400','_syncEditingCollabCursorService','CollaborationUIEventService','some','_clearOtherTimers','asObservable','_selfUnitIDs','InsertColCommandId','enableLocalCache','loadUnit','collaboration.single-unit.warning','_handleJoinEvent','_createSocketURL','ALREADY_EXISTS','_collabSessionService','mergeOverrideWithDependencies','_lastPointer','CONFLICT','toString','_eventUnsubscribe','Disposable','_setupSubUnitSync','_transformPreviousActiveRange','save','_configService','imageSourceType','YUUMI_RATE_OVER_LIMIT','session.collaboration-timeout','_heartbeatTimer','generateRandomId','10IBoqsH','SOCKET_FAILED','getConfig','CollaborationSocketService','sheetId','MoveRangeCommandId','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','entityInit$','@univerjs/rpc','ENSURE_SNAPSHOT_EXECUTION','_shapes','getTypeOfUnitAdded$','_removeCollabCursors','post','type','Optional','from','triggerDblclick','hovered','_drawTextRange','dispose$','debounce','_hover','Tooltip','collaboration-client.offline-data-not-saved','executionId','_localStorageService','_name','_docTransformStateCacheService','replace','OnLineIcon','debug','ranges','displayName','RemoveColCommandId','symbol','HTTPService','IUIPartsService','popstate','WECHAT_HAS_BEEN_BOUND','registerComponent','apply','wsSessionTicketUrl','react/jsx-runtime','_range','parse','INVITE_CODE_REQUIRED','_dataLoaderService','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','toDisposable','_sheetSkeletonManagerService','focused$','Module','UNAUTHENTICATED','_draw','defineProperty','_drawAnchor','find','updateOfflineData','syncEditingCollabCursor','setItem','_themeService','COMPLETION_FINISHED','@univerjs/sheets-ui','@univerjs/sheets','isTransformMutationFailure','CollaborationEvent','handleDeleteRangeMoveUp','onPointerLeave$','RevisionService','getOwnPropertySymbols','ColorKit','xlink:href','NodePositionConvertToRectRange','RxDisposable','#FFF','MessageType','roomMembers','source','editingUnit','isActive','_updateSubUnitFromURLParams','collab-text-range-','cursorInfo','WebSocketService','UniverCollaborationClientPlugin','CLOSE_ROOM','UniverIcon','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','ICommandService','transform','OffLineIcon','on-line-icon','YUUMI_NO_CUBOID_FOR_QUESTION','addHandlerCallback','status$','ISocketService','error','YUUMI_UNABLE_LOAD_URL','UPDATE_CURSOR','extend','getUndoRedoMutationParamsCache','INVITE_CODE_ALREADY_BOUND','univer-mr-2\x20univer-flex\x20univer-text-xl','UNIVER_COLLABORATION_CLIENT_WEB_PLUGIN','random','getActiveSheet','transformRemoteChangeset','show','sessionTicket','_collaborationController','_session','closePath','indexOf','react','hasOwnProperty','CollaborationDataLoaderController','actions','_collaborationUIEventService','addObjects','send','CollaborationUIEventId','size','_handleLeaveEvent','DeleteRangeMoveUpCommandId','then','LOCAL_CACHE_INTERVAL_KEY','map','subUnitId','WebURLService','getOffsetConfig','urlChange$','YUUMI_PROMPT_MAX_TOKENS_EXCEEDED','_colorAssignService','APPLY_DUPLICATED','handleDeleteRangeMoveLeft','_hovered','APPLY_REJECT','getSheetId','5wlMoUL','onStarting','isEditing','DataLoaderService','@univerjs/design','set','engine','getFocusedUnit','collab-client.tooltip.reconnect','_getSheetObject','unitId','key','getOwnPropertyDescriptor','getMember','USERS_LEAVE','OFFLINE','UNDEFINED','params','row','univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','_hideTimer','DocSkeletonManagerService','_init','runRefRangeMutations','loadOfflineData','_cursor','_cursorShapes','search','clipPath','@univerjs/docs','white','INVITE_CODE_HAS_BEEN_UES','startsWith','getRelativeToViewportCoord','1371RLipts','_cursors','subscribeEvent','WebBrowserSingleActiveUnitService','SheetSkeletonManagerService','deepClone','@univerjs/drawing','removeParam','defs','fillRule','SessionStatus','NOT_COLLAB','max','_getAnchorBounding','handleInsertRow','endColumn','assignAColorForMemberID','assign','_entityInit$','restore','subscribe','selection','docStateChange$','unshift','_cursorInfo$','DocIMEInputManagerService','jsx','result','CollaborationStatusDisplay','_docSkeleton','http://www.w3.org/2000/svg','_cachedData','ILocalStorageService','_textBubble','transformSelections','rgba(255,\x20255,\x20255,\x200.01)','LocaleService','getActiveRange','UNRECOGNIZED','_univerInstanceService','collabCursorState$','transformMutation','RichTextEditingMutation','exhaustSavingTask','filter','_initStatusComponent','undoState','moveTo','measureText','_docSyncEditingCollabCursorService','session.connection-failed','_config','DocCollaborationEntity','_onRefRangeChange','AWAITING','currentColor','mapTo','cursorInfo$','with','setUndoRedoMutationParamsCache','debounceTime','CollaborationSessionService','UNIVER_SHEET','NodePositionConvertToCursor','Tools','TEXT','_color','findNodePositionByCharIndex','getVpScrollXYInfoByPosToVp','height','DisposableCollection','Workbook','0\x200\x2016\x2016','arc','LICENSE_DISTRO_REJECTED','getSheetBySheetId','add','_transformService','transformIMECache','sessionStatus$','INVALID_INVITE_CODE','onTransformChange$','drawWith','_injector','_scheduleSaving','_uiPartsService','_startSheetCollabCursor','_docStateChangeManagerService','transformByState','TOO_MANY_REQUESTS','useDependency','fill','_logService','_online','_collabCursorState$'];_0x2859=function(){return _0x4099eb;};return _0x2859();}var Bt=Object[_0x338f9d(0x20f)],kt=(_0x4e30bb,_0x34d4ad,_0x35e83f,_0x344652)=>{for(var _0x578da6=_0x344652>0x1?void 0x0:_0x344652?Bt(_0x34d4ad,_0x35e83f):_0x34d4ad,_0x57e1b5=_0x4e30bb['length']-0x1,_0x44b02a;_0x57e1b5>=0x0;_0x57e1b5--)(_0x44b02a=_0x4e30bb[_0x57e1b5])&&(_0x578da6=_0x44b02a(_0x578da6)||_0x578da6);return _0x578da6;},ce=(_0x2a9840,_0x964cd0)=>(_0x1c4e58,_0x5347c2)=>_0x964cd0(_0x1c4e58,_0x5347c2,_0x2a9840);let z=class{constructor(_0x5ee218,_0x4e3762,_0x103b44){const _0x13b39d=_0x338f9d;this[_0x13b39d(0x278)]=_0x5ee218,this[_0x13b39d(0x272)]=_0x4e3762,this['_renderManagerService']=_0x103b44;}[_0x338f9d(0x273)](_0x89a234){const _0x2d57bb=_0x338f9d;this[_0x2d57bb(0x383)](_0x89a234),this[_0x2d57bb(0x40f)](_0x89a234);}[_0x338f9d(0x1e3)](_0x4b9999){const _0x278265=_0x338f9d,{unitID:_0x492488}=_0x4b9999,_0x5b9fd9=this[_0x278265(0x3dd)][_0x278265(0x3d3)](_0x492488)['with'](b[_0x278265(0x23e)]),{redoCache:_0x16dd0f}=_0x5b9fd9[_0x278265(0x1dd)]();if(_0x16dd0f[_0x278265(0x29d)]===0x0)return _0x4b9999;let _0x4c212a=a[_0x278265(0x265)]['deepClone'](_0x4b9999[_0x278265(0x3c4)][0x0]);for(let _0x4ca78d=0x0;_0x4ca78d<_0x16dd0f[_0x278265(0x29d)];_0x4ca78d++){const _0x302bdc={'id':_0x278265(0x3e8),'params':{..._0x16dd0f[_0x4ca78d]}},_0xd1c6e1=this[_0x278265(0x272)][_0x278265(0x24e)](_0x4c212a,_0x302bdc,!0x1);if(m['isTransformMutationFailure'](_0xd1c6e1))throw _0xd1c6e1[_0x278265(0x1d9)];_0x4c212a=_0xd1c6e1[_0x278265(0x335)];}return{...a[_0x278265(0x265)]['deepClone'](_0x4b9999),'mutations':[_0x4c212a]};}[_0x338f9d(0x383)](_0x5a11c5){const _0x173f90=_0x338f9d,{unitID:_0x2ec52b}=_0x5a11c5,_0x113133=this['_renderManagerService'][_0x173f90(0x3d3)](_0x2ec52b)[_0x173f90(0x25f)](b['DocIMEInputManagerService']),{undoCache:_0x407dc6,redoCache:_0x561b45}=_0x113133['getUndoRedoMutationParamsCache']();if(_0x407dc6['length']===0x0||_0x561b45[_0x173f90(0x29d)]===0x0)return;const _0x3a7b36=[],_0x5406af=[];let _0x232db3=a[_0x173f90(0x265)][_0x173f90(0x22a)](_0x5a11c5[_0x173f90(0x3c4)][0x0]),_0x1c471e=a['Tools'][_0x173f90(0x22a)](_0x5a11c5[_0x173f90(0x3c4)][0x0]);for(let _0x5c85ef=_0x407dc6['length']-0x1;_0x5c85ef>=0x0;_0x5c85ef--){const _0x3b88d2={'id':_0x173f90(0x3e8),'params':{..._0x407dc6[_0x5c85ef]}},_0x337bf1={'id':_0x173f90(0x3e8),'params':{..._0x561b45[_0x5c85ef]}},_0x1ef39c=this['_transformService'][_0x173f90(0x24e)](_0x232db3,_0x3b88d2,!0x1),_0x134b2f=this[_0x173f90(0x272)][_0x173f90(0x24e)](_0x1c471e,_0x337bf1,!0x1);if(m[_0x173f90(0x1b9)](_0x1ef39c))throw _0x1ef39c[_0x173f90(0x1d9)];if(m[_0x173f90(0x1b9)](_0x134b2f))throw _0x134b2f[_0x173f90(0x1d9)];_0x3a7b36['unshift'](_0x1ef39c[_0x173f90(0x34e)][_0x173f90(0x214)]),_0x5406af[_0x173f90(0x23c)](_0x134b2f[_0x173f90(0x34e)][_0x173f90(0x214)]),_0x232db3=_0x1ef39c[_0x173f90(0x335)],_0x1c471e=_0x134b2f['m1Prime'];}_0x113133[_0x173f90(0x260)]({'undoCache':_0x3a7b36,'redoCache':_0x5406af});}[_0x338f9d(0x40f)](_0x59c088){const _0x2ff4b6=_0x338f9d,{unitID:_0x1bc19f}=_0x59c088,_0x37df31=this['_renderManagerService']['getRenderById'](_0x1bc19f)[_0x2ff4b6(0x25f)](b['DocIMEInputManagerService']),_0x5af29e=_0x37df31[_0x2ff4b6(0x24a)]();if(_0x5af29e==null)return;const _0x16c78a=[{'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x59c088['unitID'],'actions':null,'textRanges':[_0x5af29e]}}],_0x204db9=this[_0x2ff4b6(0x272)][_0x2ff4b6(0x377)](_0x59c088,_0x16c78a);if(!m['isTransformMutationsWithChangesetSuccess'](_0x204db9))throw _0x204db9[_0x2ff4b6(0x1d9)];const _0x11a8cb=_0x204db9[_0x2ff4b6(0x34e)][0x0]['params'][_0x2ff4b6(0x288)];Array['isArray'](_0x11a8cb)&&_0x11a8cb[_0x2ff4b6(0x29d)]&&_0x37df31[_0x2ff4b6(0x3ba)](_0x11a8cb[0x0]);}};z=kt([ce(0x0,a[_0x338f9d(0x388)](a[_0x338f9d(0x302)])),ce(0x1,m[_0x338f9d(0x2a4)]),ce(0x2,p[_0x338f9d(0x330)])],z);var Ht=Object['getOwnPropertyDescriptor'],Ft=(_0x3dcf04,_0x1444bd,_0x1b5f30,_0x10a29c)=>{const _0x386d8f=_0x338f9d;for(var _0x27700d=_0x10a29c>0x1?void 0x0:_0x10a29c?Ht(_0x1444bd,_0x1b5f30):_0x1444bd,_0x4b2350=_0x3dcf04[_0x386d8f(0x29d)]-0x1,_0x5e55d3;_0x4b2350>=0x0;_0x4b2350--)(_0x5e55d3=_0x3dcf04[_0x4b2350])&&(_0x27700d=_0x5e55d3(_0x27700d)||_0x27700d);return _0x27700d;},le=(_0x4adbef,_0x10ee96)=>(_0x23f9e1,_0x2be684)=>_0x10ee96(_0x23f9e1,_0x2be684,_0x4adbef);let J=class{constructor(_0x5ba4a5,_0x405684,_0x5cb84b){const _0x3fe1fd=_0x338f9d;this[_0x3fe1fd(0x278)]=_0x5ba4a5,this[_0x3fe1fd(0x272)]=_0x405684,this[_0x3fe1fd(0x27c)]=_0x5cb84b;}['transformStateCache'](_0x3b2bda){const _0x3bba40=_0x338f9d;this[_0x3bba40(0x34b)](_0x3b2bda);}[_0x338f9d(0x1e3)](_0x6826f9){const _0x471df3=_0x338f9d,{unitID:_0x5a44f5}=_0x6826f9,{collaboration:_0x4a2aa9}=this['_docStateChangeManagerService'][_0x471df3(0x3ce)](_0x5a44f5);if(_0x4a2aa9[_0x471df3(0x29d)]===0x0)return _0x6826f9;let _0x29f0d6=a[_0x471df3(0x265)][_0x471df3(0x22a)](_0x6826f9[_0x471df3(0x3c4)][0x0]);for(let _0x522935=0x0;_0x522935<_0x4a2aa9[_0x471df3(0x29d)];_0x522935++){const _0x12ff5f={'id':_0x471df3(0x3e8),'params':{'unitId':_0x4a2aa9[_0x522935][_0x471df3(0x20d)],..._0x4a2aa9[_0x522935][_0x471df3(0x3cf)]}},_0x587989=this[_0x471df3(0x272)][_0x471df3(0x24e)](_0x29f0d6,_0x12ff5f,!0x1);if(m[_0x471df3(0x1b9)](_0x587989))throw _0x587989[_0x471df3(0x1d9)];_0x29f0d6=_0x587989['m1Prime'];}return{...a['Tools'][_0x471df3(0x22a)](_0x6826f9),'mutations':[_0x29f0d6]};}[_0x338f9d(0x34b)](_0x186fb7){const _0x962f5=_0x338f9d,{unitID:_0x59b49c}=_0x186fb7,{history:_0x119fb1,collaboration:_0x17db9f}=this[_0x962f5(0x27c)]['getStateCache'](_0x59b49c);if(_0x119fb1['length']===0x0&&_0x17db9f[_0x962f5(0x29d)]===0x0)return;const _0x3b0a18=[],_0x3fc777=[];let _0x2cabb2=a[_0x962f5(0x265)][_0x962f5(0x22a)](_0x186fb7[_0x962f5(0x3c4)][0x0]),_0x554a7d=a[_0x962f5(0x265)][_0x962f5(0x22a)](_0x186fb7[_0x962f5(0x3c4)][0x0]);for(let _0x51ba20=_0x119fb1['length']-0x1;_0x51ba20>=0x0;_0x51ba20--){const _0x31695e={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x119fb1[_0x51ba20][_0x962f5(0x20d)],..._0x119fb1[_0x51ba20][_0x962f5(0x253)]}},_0x9ea732={'id':_0x962f5(0x3e8),'params':{'unitId':_0x119fb1[_0x51ba20][_0x962f5(0x20d)],..._0x119fb1[_0x51ba20][_0x962f5(0x3cf)]}},_0x46ba2f=this[_0x962f5(0x272)]['transformMutation'](_0x2cabb2,_0x31695e,!0x1),_0x3fb2de=this[_0x962f5(0x272)][_0x962f5(0x24e)](_0x554a7d,_0x9ea732,!0x1);if(m[_0x962f5(0x1b9)](_0x46ba2f))throw _0x46ba2f[_0x962f5(0x1d9)];if(m[_0x962f5(0x1b9)](_0x3fb2de))throw _0x3fb2de[_0x962f5(0x1d9)];_0x3b0a18['unshift']({..._0x119fb1[_0x51ba20],'undoState':_0x46ba2f['m2Prime']['params'],'redoState':_0x3fb2de[_0x962f5(0x34e)]['params']}),_0x2cabb2=_0x46ba2f['m1Prime'],_0x554a7d=_0x3fb2de[_0x962f5(0x335)];}_0x2cabb2=a[_0x962f5(0x265)][_0x962f5(0x22a)](_0x186fb7[_0x962f5(0x3c4)][0x0]),_0x554a7d=a['Tools'][_0x962f5(0x22a)](_0x186fb7[_0x962f5(0x3c4)][0x0]);for(let _0x327e0a=_0x17db9f[_0x962f5(0x29d)]-0x1;_0x327e0a>=0x0;_0x327e0a--){const _0x1ba1ae={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x17db9f[_0x327e0a][_0x962f5(0x20d)],..._0x17db9f[_0x327e0a]['undoState']}},_0x30cc8b={'id':_0x962f5(0x3e8),'params':{'unitId':_0x17db9f[_0x327e0a][_0x962f5(0x20d)],..._0x17db9f[_0x327e0a][_0x962f5(0x3cf)]}},_0x56a452=this[_0x962f5(0x272)][_0x962f5(0x24e)](_0x2cabb2,_0x1ba1ae,!0x1),_0x5e3105=this[_0x962f5(0x272)][_0x962f5(0x24e)](_0x554a7d,_0x30cc8b,!0x1);if(m[_0x962f5(0x1b9)](_0x56a452))throw _0x56a452[_0x962f5(0x1d9)];if(m[_0x962f5(0x1b9)](_0x5e3105))throw _0x5e3105[_0x962f5(0x1d9)];_0x3fc777[_0x962f5(0x23c)]({..._0x17db9f[_0x327e0a],'undoState':_0x56a452[_0x962f5(0x34e)][_0x962f5(0x214)],'redoState':_0x5e3105['m2Prime'][_0x962f5(0x214)]}),_0x2cabb2=_0x56a452['m1Prime'],_0x554a7d=_0x5e3105[_0x962f5(0x335)];}this['_docStateChangeManagerService']['setStateCache'](_0x59b49c,{'history':_0x3b0a18,'collaboration':_0x3fc777});}};J=Ft([le(0x0,a[_0x338f9d(0x388)](a[_0x338f9d(0x302)])),le(0x1,m['ITransformService']),le(0x2,a[_0x338f9d(0x388)](b[_0x338f9d(0x28b)]))],J);var Yt=Object[_0x338f9d(0x20f)],Wt=(_0x540a5c,_0x31749f,_0x114c84,_0x32fa04)=>{const _0xde3f2b=_0x338f9d;for(var _0x5c0988=_0x32fa04>0x1?void 0x0:_0x32fa04?Yt(_0x31749f,_0x114c84):_0x31749f,_0x2d34e8=_0x540a5c[_0xde3f2b(0x29d)]-0x1,_0x4e004c;_0x2d34e8>=0x0;_0x2d34e8--)(_0x4e004c=_0x540a5c[_0x2d34e8])&&(_0x5c0988=_0x4e004c(_0x5c0988)||_0x5c0988);return _0x5c0988;},Ne=(_0x5c969d,_0x3b143d)=>(_0x1453dc,_0x4399f5)=>_0x3b143d(_0x1453dc,_0x4399f5,_0x5c969d);let Z=class{constructor(_0x2657a0,_0x2c5a48){const _0x493928=_0x338f9d;this[_0x493928(0x278)]=_0x2657a0,this['_transformService']=_0x2c5a48;}[_0x338f9d(0x247)](_0x19f211){const _0x579062=_0x338f9d;var _0x1f2148;const _0x6b86e8=this[_0x579062(0x278)][_0x579062(0x34c)](Y['DocSelectionManagerService']),_0xf0ba=(_0x1f2148=_0x6b86e8[_0x579062(0x360)]())!=null?_0x1f2148:[];if(_0xf0ba[_0x579062(0x29d)]===0x0)return;const _0x4e5cb3=_0x19f211['unitID'],_0x2a8025=[{'id':_0x579062(0x3e8),'params':{'unitId':_0x4e5cb3,'actions':null,'textRanges':_0xf0ba}}],_0xa774f=this[_0x579062(0x272)][_0x579062(0x377)](_0x19f211,_0x2a8025);if(!m['isTransformMutationsWithChangesetSuccess'](_0xa774f))throw _0xa774f['error'];const _0x4a3af0=_0xa774f[_0x579062(0x34e)][0x0]['params'][_0x579062(0x288)];Array[_0x579062(0x359)](_0x4a3af0)&&_0x4a3af0[_0x579062(0x29d)]&&_0x6b86e8[_0x579062(0x2fa)](_0x4a3af0,{'unitId':_0x4e5cb3,'subUnitId':_0x4e5cb3},!0x1);}};Z=Wt([Ne(0x0,a[_0x338f9d(0x388)](a[_0x338f9d(0x302)])),Ne(0x1,m['ITransformService'])],Z);var Vt=Object[_0x338f9d(0x20f)],Xt=(_0x40ee5f,_0x52c1ec,_0x994f66,_0x5466fb)=>{const _0x2ffea5=_0x338f9d;for(var _0x4a1cf9=_0x5466fb>0x1?void 0x0:_0x5466fb?Vt(_0x52c1ec,_0x994f66):_0x52c1ec,_0x5c5bf0=_0x40ee5f[_0x2ffea5(0x29d)]-0x1,_0x366dc7;_0x5c5bf0>=0x0;_0x5c5bf0--)(_0x366dc7=_0x40ee5f[_0x5c5bf0])&&(_0x4a1cf9=_0x366dc7(_0x4a1cf9)||_0x4a1cf9);return _0x4a1cf9;},N=(_0x413a0c,_0x566ddf)=>(_0x4b79d6,_0x17c836)=>_0x566ddf(_0x4b79d6,_0x17c836,_0x413a0c);let Q=class extends a[_0x338f9d(0x40d)]{constructor(_0x3005ca,_0x47e68a,_0x30534d,_0x5a2960,_0xa1eeda,_0x5d19ad,_0x4cc3f5,_0x5aee0d){const _0x348c08=_0x338f9d;super(),h(this,'_status$',new d[(_0x348c08(0x3ac))](u[_0x348c08(0x31d)][_0x348c08(0x230)])),(this['_docStateChangeManagerService']=_0x3005ca,this[_0x348c08(0x1e6)]=_0x47e68a,this[_0x348c08(0x394)]=_0x30534d,this[_0x348c08(0x433)]=_0x5a2960,this['_docTransformSelectionsService']=_0xa1eeda,this[_0x348c08(0x256)]=_0x5d19ad,this['_messageService']=_0x4cc3f5,this[_0x348c08(0x333)]=_0x5aee0d,this[_0x348c08(0x3a5)]());}[_0x338f9d(0x3a5)](){const _0xae9b1f=_0x338f9d;this[_0xae9b1f(0x3df)](this[_0xae9b1f(0x1e6)][_0xae9b1f(0x41e)][_0xae9b1f(0x239)](_0x32eb6f=>{const _0x4c4898=_0xae9b1f,_0xe2809f=this[_0x4c4898(0x27c)][_0x4c4898(0x23b)][_0x4c4898(0x239)](_0x25e1d6=>{const _0x2ef1a6=_0x4c4898;if(_0x25e1d6==null)return;const {unitId:_0x2ec50c,redoState:_0x51c3f0,commandId:_0x57b771}=_0x25e1d6;if(_0x2ec50c!==_0x32eb6f[_0x2ef1a6(0x29a)])return;const _0x56760e={'id':_0x57b771,'type':a['CommandType'][_0x2ef1a6(0x315)],'params':{'unitId':_0x2ec50c,'actions':_0x51c3f0[_0x2ef1a6(0x1ed)],'textRanges':null}};_0x32eb6f[_0x2ef1a6(0x391)](_0x56760e);});if(_0x32eb6f[_0x4c4898(0x3df)](_0xe2809f),_0x32eb6f instanceof u[_0x4c4898(0x259)]){const _0x182fdb={'onTransformIME':_0x480d6c=>this[_0x4c4898(0x394)]['transformIMECache'](_0x480d6c),'onTransformState':_0x215ffc=>this['_docTransformStateCacheService'][_0x4c4898(0x3d1)](_0x215ffc),'onTransformSelections':_0xb418cb=>this[_0x4c4898(0x33c)][_0x4c4898(0x247)](_0xb418cb),'onSyncEditingCollabCursor':_0x55bd79=>this[_0x4c4898(0x256)][_0x4c4898(0x1b3)](_0x55bd79),'onTransformRemoteChangesetByIMECache':_0x513ea7=>this[_0x4c4898(0x394)]['transformRemoteChangeset'](_0x513ea7),'onTransformRemoteChangesetByStateCache':_0x4fbb01=>this[_0x4c4898(0x433)]['transformRemoteChangeset'](_0x4fbb01)};_0x32eb6f[_0x4c4898(0x1d6)](_0x182fdb);}}));}};Q=Xt([N(0x0,a[_0x338f9d(0x388)](b[_0x338f9d(0x28b)])),N(0x1,a[_0x338f9d(0x388)](u['CollaborationController'])),N(0x2,a[_0x338f9d(0x388)](z)),N(0x3,a['Inject'](J)),N(0x4,a[_0x338f9d(0x388)](Z)),N(0x5,a[_0x338f9d(0x388)](Ce)),N(0x6,T['IMessageService']),N(0x7,a[_0x338f9d(0x388)](a[_0x338f9d(0x249)]))],Q);var Gt=Object[_0x338f9d(0x20f)],Kt=(_0x49c26f,_0x2ab846,_0x397cdd,_0x30aa05)=>{const _0x196705=_0x338f9d;for(var _0x354b43=_0x30aa05>0x1?void 0x0:_0x30aa05?Gt(_0x2ab846,_0x397cdd):_0x2ab846,_0x59476b=_0x49c26f[_0x196705(0x29d)]-0x1,_0x45aeaa;_0x59476b>=0x0;_0x59476b--)(_0x45aeaa=_0x49c26f[_0x59476b])&&(_0x354b43=_0x45aeaa(_0x354b43)||_0x354b43);return _0x354b43;},_e=(_0x19f364,_0x3c1204)=>(_0x38f45b,_0x31ac50)=>_0x3c1204(_0x38f45b,_0x31ac50,_0x19f364);let ge=class extends a[_0x338f9d(0x40d)]{constructor(_0x47f2f5,_0x212e46,_0x46cdef){const _0x2d7c77=_0x338f9d;super(),h(this,_0x2d7c77(0x244),new Map()),h(this,_0x2d7c77(0x32f),new Map()),h(this,_0x2d7c77(0x2cf),!0x1),(this[_0x2d7c77(0x411)]=_0x47f2f5,this[_0x2d7c77(0x431)]=_0x212e46,this['_revisionService']=_0x46cdef);}['disableLocalCache'](){const _0x4185f1=_0x338f9d;this[_0x4185f1(0x2cf)]=!0x0;}[_0x338f9d(0x401)](){this['_disabled']=!0x1;}get[_0x338f9d(0x3ca)](){const _0x172b85=_0x338f9d;return this[_0x172b85(0x32f)];}[_0x338f9d(0x361)](){const _0x2fd81f=_0x338f9d;this[_0x2fd81f(0x250)]()[_0x2fd81f(0x1f5)](()=>super['dispose']());}async[_0x338f9d(0x21b)](_0x3db70b){const _0x5dac0c=_0x338f9d;return this[_0x5dac0c(0x2cf)]?null:this[_0x5dac0c(0x431)][_0x5dac0c(0x362)](u['getLocalCacheKey'](_0x3db70b));}async[_0x338f9d(0x2c4)](_0x27a952,_0x436300){const _0x161635=_0x338f9d;return!!this[_0x161635(0x431)][_0x161635(0x1b4)](_0x27a952,_0x436300);}[_0x338f9d(0x1b2)](_0x933497,_0x5d0493,_0x98f03f,_0x43463f){const _0x444244=_0x338f9d,_0x2297b2=this[_0x444244(0x2e4)][_0x444244(0x39f)](_0x933497);this['_cachedData'][_0x444244(0x208)](_0x933497,{'unitID':_0x933497,'type':_0x5d0493,'awaitingChangeset':_0x98f03f,'mutations':_0x43463f,'rev':_0x2297b2}),this[_0x444244(0x32f)]['has'](_0x933497)||this[_0x444244(0x279)](_0x933497);}[_0x338f9d(0x279)](_0x335871){const _0x30e73d=_0x338f9d,_0x5f2b13=this[_0x30e73d(0x3d5)]();_0x5f2b13===0x0?this[_0x30e73d(0x2b9)](_0x335871):this['_saveTaskMap'][_0x30e73d(0x208)](_0x335871,setTimeout(()=>this[_0x30e73d(0x2b9)](_0x335871),_0x5f2b13));}[_0x338f9d(0x3d5)](){const _0x5dd900=_0x338f9d;var _0x3b663a;return(_0x3b663a=this[_0x5dd900(0x411)][_0x5dd900(0x419)](u[_0x5dd900(0x1f6)]))!=null?_0x3b663a:u['LOCAL_CACHE_INTERVAL'];}[_0x338f9d(0x2b9)](_0x19582f){const _0x2e5a50=_0x338f9d,_0x1d35ee=this[_0x2e5a50(0x32f)]['get'](_0x19582f);return _0x1d35ee!==void 0x0&&window[_0x2e5a50(0x370)](_0x1d35ee),this[_0x2e5a50(0x431)][_0x2e5a50(0x1b4)](u['getLocalCacheKey'](_0x19582f),this[_0x2e5a50(0x244)]['get'](_0x19582f))[_0x2e5a50(0x1f5)](()=>this['_saveTaskMap'][_0x2e5a50(0x308)](_0x19582f));}async[_0x338f9d(0x250)](){const _0x5d2166=_0x338f9d,_0x39c2e5=[];this[_0x5d2166(0x32f)][_0x5d2166(0x2d6)]((_0x2046db,_0x5c5472)=>{const _0xc1220a=_0x5d2166;window['clearTimeout'](_0x2046db),_0x39c2e5['push'](this['_saveCache'](_0x5c5472)[_0xc1220a(0x1f5)](()=>{const _0x556f3c=_0xc1220a;this[_0x556f3c(0x32f)][_0x556f3c(0x308)](_0x5c5472);}));}),await Promise['all'](_0x39c2e5);}};ge=Kt([_e(0x0,a[_0x338f9d(0x2f0)]),_e(0x1,a[_0x338f9d(0x245)]),_e(0x2,a[_0x338f9d(0x388)](m[_0x338f9d(0x1bd)]))],ge);class je extends a[_0x338f9d(0x1c2)]{constructor(){const _0x473878=_0x338f9d;super(),h(this,'urlChange$'),this[_0x473878(0x1fb)]=d[_0x473878(0x357)](window,_0x473878(0x19e))[_0x473878(0x349)](d[_0x473878(0x36f)](this[_0x473878(0x42b)]),d[_0x473878(0x2f3)](0x1),d[_0x473878(0x25d)](void 0x0));}[_0x338f9d(0x2d8)](_0x33e14f,_0x5cd64f,_0x567f87=!0x1){const _0x4e09de=_0x338f9d,_0x40cfbc=new URL(window['location'][_0x4e09de(0x3eb)]);_0x40cfbc[_0x4e09de(0x29b)][_0x4e09de(0x208)](_0x33e14f,_0x5cd64f),_0x567f87?window['history']['replaceState']('','',_0x40cfbc[_0x4e09de(0x40b)]()):window[_0x4e09de(0x37d)]['pushState']('','',_0x40cfbc[_0x4e09de(0x40b)]());}[_0x338f9d(0x22c)](_0x25de69,_0x193267=!0x1){const _0x3f1884=_0x338f9d,_0x291cac=new URL(window['location'][_0x3f1884(0x3eb)]);_0x291cac['searchParams']['delete'](_0x25de69),_0x193267?window['history'][_0x3f1884(0x2eb)]('','',_0x291cac[_0x3f1884(0x40b)]()):window['history']['pushState']('','',_0x291cac['toString']());}[_0x338f9d(0x348)](_0x1f3351){const _0x3d202c=_0x338f9d;var _0xe4c26e;return(_0xe4c26e=new URL(window[_0x3d202c(0x3c7)][_0x3d202c(0x3eb)])[_0x3d202c(0x29b)][_0x3d202c(0x34c)](_0x1f3351))!=null?_0xe4c26e:void 0x0;}}var qt=Object['defineProperty'],zt=Object[_0x338f9d(0x20f)],Jt=(_0x5ae183,_0x4eff83,_0x49759f)=>_0x4eff83 in _0x5ae183?qt(_0x5ae183,_0x4eff83,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x49759f}):_0x5ae183[_0x4eff83]=_0x49759f,Zt=(_0x120c72,_0x4cb54e,_0x18f3a3,_0x3cf610)=>{for(var _0x4a399b=_0x3cf610>0x1?void 0x0:_0x3cf610?zt(_0x4cb54e,_0x18f3a3):_0x4cb54e,_0x553fdf=_0x120c72['length']-0x1,_0xfd865b;_0x553fdf>=0x0;_0x553fdf--)(_0xfd865b=_0x120c72[_0x553fdf])&&(_0x4a399b=_0xfd865b(_0x4a399b)||_0x4a399b);return _0x4a399b;},he=(_0x2e5e37,_0xd63431)=>(_0x2998a2,_0x4a2964)=>_0xd63431(_0x2998a2,_0x4a2964,_0x2e5e37),Qt=(_0x2384ae,_0x59f73f,_0x20595d)=>Jt(_0x2384ae,_0x59f73f+'',_0x20595d);const es=_0x338f9d(0x1e0);exports[_0x338f9d(0x2a1)]=class extends a[_0x338f9d(0x2e6)]{constructor(_0x313ee8=Ue,_0x5de010,_0x3f69af,_0x882f25){const _0x237617=_0x338f9d;super(),this[_0x237617(0x258)]=_0x313ee8,this[_0x237617(0x3dd)]=_0x5de010,this['_injector']=_0x3f69af,this['_configService']=_0x882f25;const {..._0x3fa9ac}=a[_0x237617(0x395)]({},Ue,this['_config']);this[_0x237617(0x411)][_0x237617(0x2bd)]($t,_0x3fa9ac);}[_0x338f9d(0x204)](){const _0x9af8a3=_0x338f9d;this[_0x9af8a3(0x2b8)](),this['_initDependencies']();}[_0x338f9d(0x341)](){const _0x455543=_0x338f9d;this[_0x455543(0x33d)]();}[_0x338f9d(0x2b8)](){const _0x348616=_0x338f9d;var _0x328ff1;const _0x3e51e5=[[me],[Z],[z],[J],[Ce],[be,{'useClass':je}],[G[_0x348616(0x1d8)],{'useClass':G[_0x348616(0x1cc)]}],[u[_0x348616(0x2a3)],{'useClass':ge}],[exports[_0x348616(0x332)]],[Q],[q],[x],[de],[exports['CollaborationDataLoaderController']]];a[_0x348616(0x2b6)](this['_injector'],a[_0x348616(0x408)](_0x3e51e5,(_0x328ff1=this[_0x348616(0x258)])==null?void 0x0:_0x328ff1['override']));}[_0x338f9d(0x33d)](){const _0x509333=_0x338f9d;this['disposeWithMe'](this[_0x509333(0x3dd)]['registerRenderModule'](a['UniverInstanceType'][_0x509333(0x2e3)],[Ie])),this[_0x509333(0x3df)](this[_0x509333(0x3dd)]['registerRenderModule'](a['UniverInstanceType'][_0x509333(0x263)],[ve]));}[_0x338f9d(0x343)](){const _0x59ac33=_0x338f9d;a[_0x59ac33(0x31f)](this['_injector'],[[x],[exports['DesktopCollaborationStatusDisplayController']],[Q],[q],[exports[_0x59ac33(0x1ec)]]]);}},Qt(exports[_0x338f9d(0x2a1)],_0x338f9d(0x3cb),es),exports['UniverCollaborationClientUIPlugin']=Zt([a[_0x338f9d(0x322)](u[_0x338f9d(0x1cd)]),he(0x1,p[_0x338f9d(0x330)]),he(0x2,a[_0x338f9d(0x388)](a[_0x338f9d(0x302)])),he(0x3,a['IConfigService'])],exports['UniverCollaborationClientUIPlugin']);var ts=Object[_0x338f9d(0x20f)],ss=(_0x529783,_0x24ba27,_0x405c00,_0x2627e6)=>{for(var _0x3285b0=_0x2627e6>0x1?void 0x0:_0x2627e6?ts(_0x24ba27,_0x405c00):_0x24ba27,_0x3204c3=_0x529783['length']-0x1,_0x40a92f;_0x3204c3>=0x0;_0x3204c3--)(_0x40a92f=_0x529783[_0x3204c3])&&(_0x3285b0=_0x40a92f(_0x3285b0)||_0x3285b0);return _0x3285b0;},F=(_0x5232a6,_0x4fdf8d)=>(_0x5c94cd,_0x2df7ab)=>_0x4fdf8d(_0x5c94cd,_0x2df7ab,_0x5232a6);exports[_0x338f9d(0x2d4)]=class extends u[_0x338f9d(0x41a)]{constructor(_0x294df1,_0x403216,_0x31d1e6,_0x32681f,_0x4b7f9c){super(_0x294df1,_0x403216,_0x31d1e6,_0x32681f,_0x4b7f9c);}async[_0x338f9d(0x38f)](_0x8b3f14){const _0x8dbccf=_0x338f9d,_0x465a1b=await this['_getSessionTicket'](),_0x1fc7c5=this[_0x8dbccf(0x405)](_0x8b3f14,_0x465a1b);return this['_doCreateSocket'](_0x1fc7c5);}[_0x338f9d(0x405)](_0x184880,_0x2ccb72){const _0x48272f=_0x338f9d,_0x4b9b3a=typeof window>'u'?new URL(_0x184880):new URL(_0x184880,window['location'][_0x48272f(0x3bf)]);_0x4b9b3a[_0x48272f(0x29b)][_0x48272f(0x208)](_0x48272f(0x1e5),_0x2ccb72);const _0x4350b4=typeof window>'u'?new URLSearchParams():new URLSearchParams(window['location'][_0x48272f(0x21e)]);return _0x4350b4[_0x48272f(0x34c)](_0x48272f(0x3f4))&&_0x4b9b3a['searchParams'][_0x48272f(0x208)](_0x48272f(0x3f4),_0x4350b4[_0x48272f(0x34c)](_0x48272f(0x3f4))),_0x4b9b3a[_0x48272f(0x40b)]();}async[_0x338f9d(0x286)](){const _0x22a746=_0x338f9d;var _0x2c977b,_0x361d35,_0x241402;const _0x22a353=this[_0x22a746(0x411)]['getConfig'](u[_0x22a746(0x41d)]),_0x59497f=(_0x2c977b=_0x22a353==null?void 0x0:_0x22a353[_0x22a746(0x1a2)])!=null?_0x2c977b:u['DEFAULT_WS_SESSION_TICKET_URL'];return(_0x241402=(_0x361d35=(await this[_0x22a746(0x2ad)][_0x22a746(0x34c)](_0x59497f,{'headers':{'Content-Type':_0x22a746(0x3b8)}}))['body'])==null?void 0x0:_0x361d35[_0x22a746(0x3c8)])!=null?_0x241402:'';}},exports[_0x338f9d(0x2d4)]=ss([F(0x0,a[_0x338f9d(0x388)](a[_0x338f9d(0x302)])),F(0x1,a['Inject'](G[_0x338f9d(0x19c)])),F(0x2,a[_0x338f9d(0x2f0)]),F(0x3,a[_0x338f9d(0x3d0)]),F(0x4,m[_0x338f9d(0x37c)])],exports[_0x338f9d(0x2d4)]);const Me=0x7530,Le='ACTIVE_UNIT_EVENT_CHANNEL';class is extends a['Disposable']{constructor(){const _0x197cd8=_0x338f9d;super(),h(this,_0x197cd8(0x393),a[_0x197cd8(0x416)]()),h(this,_0x197cd8(0x3ff),new Set()),h(this,'_unitOnClients',new Map()),h(this,_0x197cd8(0x415),null),h(this,_0x197cd8(0x3fd),new Map()),h(this,_0x197cd8(0x38d),new Map()),this['_init']();}[_0x338f9d(0x361)](){const _0x17356d=_0x338f9d;super[_0x17356d(0x361)](),this[_0x17356d(0x3fd)][_0x17356d(0x2d6)]((_0x3c0c4b,_0x3b9cb5)=>this[_0x17356d(0x380)](_0x3b9cb5)),this[_0x17356d(0x415)]&&window[_0x17356d(0x37f)](this[_0x17356d(0x415)]);}[_0x338f9d(0x2d7)](_0x27e5fa){const _0x5ea815=_0x338f9d;return this['_ensureSubject'](_0x27e5fa)[_0x5ea815(0x349)](d['distinctUntilChanged']());}[_0x338f9d(0x1c7)](_0x3157b9){const _0x51313d=_0x338f9d;this[_0x51313d(0x3ff)][_0x51313d(0x1f2)]===0x0&&this[_0x51313d(0x2e1)](),this[_0x51313d(0x3ff)]['add'](_0x3157b9),this['_send']({'type':0x0,'memberID':this['_id'],'unitIDs':[_0x3157b9],'isForwarded':!0x1});}['disposeUnit'](_0x2e30d2){const _0x8b3663=_0x338f9d;this[_0x8b3663(0x3ff)][_0x8b3663(0x308)](_0x2e30d2),this['_selfUnitIDs']['size']===0x0&&this[_0x8b3663(0x415)]&&window[_0x8b3663(0x37f)](this[_0x8b3663(0x415)]);}[_0x338f9d(0x219)](){const _0x4a7c2d=_0x338f9d;this[_0x4a7c2d(0x3df)](a[_0x4a7c2d(0x1a9)](d[_0x4a7c2d(0x357)](window,'storage')[_0x4a7c2d(0x239)](_0x1dff00=>{const _0x559592=_0x4a7c2d;if(_0x1dff00[_0x559592(0x20e)]!==Le||!_0x1dff00['newValue'])return;const _0x5799c1=JSON[_0x559592(0x1a5)](_0x1dff00[_0x559592(0x328)]);this['_handleEvent'](_0x5799c1);}))),window[_0x4a7c2d(0x30e)](_0x4a7c2d(0x33b),()=>this[_0x4a7c2d(0x39c)]({'type':0x1,'memberID':this[_0x4a7c2d(0x393)],'unitIDs':Array[_0x4a7c2d(0x427)](this[_0x4a7c2d(0x3ff)])}));}['_handleEvent'](_0xd50aab){const _0x1b2644=_0x338f9d;switch(_0xd50aab['type']){case 0x0:this[_0x1b2644(0x404)](_0xd50aab);break;case 0x1:this[_0x1b2644(0x1f3)](_0xd50aab);break;case 0x2:this[_0x1b2644(0x2fe)](_0xd50aab);break;}}[_0x338f9d(0x404)](_0x190ea6){const _0x3c6aa1=_0x338f9d,{unitIDs:_0x4991a6,memberID:_0x760ac3,isForwarded:_0x42d992}=_0x190ea6;_0x4991a6[_0x3c6aa1(0x2d6)](_0xfb1580=>{const _0x2d51ff=_0x3c6aa1;if(!_0x42d992&&this[_0x2d51ff(0x301)][_0x2d51ff(0x3ed)](_0xfb1580)&&this[_0x2d51ff(0x316)](_0xfb1580)[_0x2d51ff(0x346)](u[_0x2d51ff(0x3b9)][_0x2d51ff(0x392)]),!this[_0x2d51ff(0x301)]['has'](_0xfb1580)||!this[_0x2d51ff(0x301)][_0x2d51ff(0x34c)](_0xfb1580)[_0x2d51ff(0x3ed)](_0x760ac3)){const _0x5a9915=this[_0x2d51ff(0x301)][_0x2d51ff(0x34c)](_0xfb1580)||new Set();_0x5a9915[_0x2d51ff(0x271)](_0x760ac3),this[_0x2d51ff(0x301)][_0x2d51ff(0x208)](_0xfb1580,_0x5a9915),this[_0x2d51ff(0x2d5)](_0x760ac3);}}),_0x42d992||this[_0x3c6aa1(0x39c)]({'type':0x0,'memberID':this['_id'],'unitIDs':[...this[_0x3c6aa1(0x3ff)]],'isForwarded':!0x0});}['_scheduleClearOtherTimer'](_0x3dd445){const _0x567ebd=_0x338f9d;this[_0x567ebd(0x380)](_0x3dd445);const _0x19f109=window[_0x567ebd(0x2bb)](()=>{const _0x15aa35=_0x567ebd;this[_0x15aa35(0x301)]['forEach'](_0x1d5416=>{const _0xc48b04=_0x15aa35;_0x1d5416[_0xc48b04(0x308)](_0x3dd445);});},Me*0x2);this[_0x567ebd(0x3fd)][_0x567ebd(0x208)](_0x3dd445,_0x19f109);}['_removeClearOtherTimer'](_0x1b147b){const _0x3f7044=_0x338f9d;if(this[_0x3f7044(0x3fd)][_0x3f7044(0x3ed)](_0x1b147b)){const _0x205685=this[_0x3f7044(0x3fd)]['get'](_0x1b147b);_0x205685&&window[_0x3f7044(0x370)](_0x205685),this[_0x3f7044(0x3fd)][_0x3f7044(0x208)](_0x1b147b,null);}}[_0x338f9d(0x1f3)](_0x38329c){const _0x1f56a8=_0x338f9d,{memberID:_0x35efa2,unitIDs:_0x247c45}=_0x38329c;_0x247c45[_0x1f56a8(0x2d6)](_0x448541=>{const _0x483cec=_0x1f56a8;var _0x5a4746;const _0x159fa8=this[_0x483cec(0x301)]['get'](_0x448541);_0x159fa8&&(_0x159fa8[_0x483cec(0x308)](_0x35efa2),(_0x5a4746=this['_ensureSubject'](_0x448541))==null||_0x5a4746[_0x483cec(0x346)](_0x159fa8[_0x483cec(0x1f2)]===0x0?u['UnitStatus'][_0x483cec(0x29e)]:u['UnitStatus'][_0x483cec(0x392)]));}),this[_0x1f56a8(0x380)](_0x35efa2);}['_handleHeartbeatEvent'](_0x153160){const _0x5f28e9=_0x338f9d;this[_0x5f28e9(0x2d5)](_0x153160[_0x5f28e9(0x32b)]);}[_0x338f9d(0x39c)](_0x5ee15c){const _0x56392a=_0x338f9d;localStorage[_0x56392a(0x1b4)](Le,JSON[_0x56392a(0x2ae)](_0x5ee15c));}[_0x338f9d(0x2e1)](){const _0x5ab647=_0x338f9d;this[_0x5ab647(0x415)]=window[_0x5ab647(0x3b5)](()=>{const _0x40e096=_0x5ab647;this['_send']({'type':0x2,'memberID':this[_0x40e096(0x393)]});},Me);}['_ensureSubject'](_0x4ec3ac){const _0xf94f8f=_0x338f9d;return this[_0xf94f8f(0x38d)][_0xf94f8f(0x3ed)](_0x4ec3ac)||this[_0xf94f8f(0x38d)]['set'](_0x4ec3ac,new d['BehaviorSubject'](u[_0xf94f8f(0x3b9)][_0xf94f8f(0x29e)])),this[_0xf94f8f(0x38d)][_0xf94f8f(0x34c)](_0x4ec3ac);}}var Be=(_0x1c3b33=>(_0x1c3b33[_0x1c3b33[_0x338f9d(0x213)]=0x0]=_0x338f9d(0x213),_0x1c3b33[_0x1c3b33['OK']=0x1]='OK',_0x1c3b33[_0x1c3b33[_0x338f9d(0x35e)]=0x2]=_0x338f9d(0x35e),_0x1c3b33[_0x1c3b33[_0x338f9d(0x312)]=0x3]='PERMISSION_DENIED',_0x1c3b33[_0x1c3b33['NOT_FOUND']=0x4]=_0x338f9d(0x345),_0x1c3b33[_0x1c3b33[_0x338f9d(0x1ad)]=0x5]=_0x338f9d(0x1ad),_0x1c3b33[_0x1c3b33[_0x338f9d(0x406)]=0x6]=_0x338f9d(0x406),_0x1c3b33[_0x1c3b33[_0x338f9d(0x2d2)]=0x7]='INVALID_ARGUMENT',_0x1c3b33[_0x1c3b33[_0x338f9d(0x27e)]=0x8]='TOO_MANY_REQUESTS',_0x1c3b33[_0x1c3b33['COMPLETION_FINISHED']=0x9]=_0x338f9d(0x1b6),_0x1c3b33[_0x1c3b33[_0x338f9d(0x2b1)]=0xa]=_0x338f9d(0x2b1),_0x1c3b33[_0x1c3b33[_0x338f9d(0x3f6)]=0x1389]=_0x338f9d(0x3f6),_0x1c3b33[_0x1c3b33['SNAPSHOT_INVALID_SNAPSHOT']=0x1771]=_0x338f9d(0x364),_0x1c3b33[_0x1c3b33[_0x338f9d(0x296)]=0x1772]='SNAPSHOT_HAS_BEEN_REMOVED',_0x1c3b33[_0x1c3b33[_0x338f9d(0x420)]=0x1773]=_0x338f9d(0x420),_0x1c3b33[_0x1c3b33[_0x338f9d(0x201)]=0x1b59]=_0x338f9d(0x201),_0x1c3b33[_0x1c3b33['APPLY_NON_SEQUENTIAL_REVISION']=0x1b5a]=_0x338f9d(0x3b1),_0x1c3b33[_0x1c3b33[_0x338f9d(0x37b)]=0x1b5b]=_0x338f9d(0x37b),_0x1c3b33[_0x1c3b33[_0x338f9d(0x34d)]=0x1b5c]=_0x338f9d(0x34d),_0x1c3b33[_0x1c3b33[_0x338f9d(0x1fe)]=0x1b5d]=_0x338f9d(0x1fe),_0x1c3b33[_0x1c3b33[_0x338f9d(0x366)]=0x1f41]='CONNECTOR_DATA_TOO_LARGE',_0x1c3b33[_0x1c3b33[_0x338f9d(0x2a5)]=0x2329]=_0x338f9d(0x2a5),_0x1c3b33[_0x1c3b33[_0x338f9d(0x3b2)]=0x232a]=_0x338f9d(0x3b2),_0x1c3b33[_0x1c3b33[_0x338f9d(0x331)]=0x232b]='LICENSE_IMPORT_SIZE_EXCEEDED',_0x1c3b33[_0x1c3b33[_0x338f9d(0x3f0)]=0x232c]=_0x338f9d(0x3f0),_0x1c3b33[_0x1c3b33[_0x338f9d(0x26f)]=0x232d]=_0x338f9d(0x26f),_0x1c3b33[_0x1c3b33[_0x338f9d(0x1da)]=0x2711]='YUUMI_UNABLE_LOAD_URL',_0x1c3b33[_0x1c3b33[_0x338f9d(0x387)]=0x2712]=_0x338f9d(0x387),_0x1c3b33[_0x1c3b33[_0x338f9d(0x413)]=0x2713]=_0x338f9d(0x413),_0x1c3b33[_0x1c3b33[_0x338f9d(0x29f)]=0x2714]=_0x338f9d(0x29f),_0x1c3b33[_0x1c3b33[_0x338f9d(0x1d5)]=0x271a]=_0x338f9d(0x1d5),_0x1c3b33[_0x1c3b33[_0x338f9d(0x3ae)]=0x271b]=_0x338f9d(0x3ae),_0x1c3b33[_0x1c3b33[_0x338f9d(0x3f7)]=0x271c]=_0x338f9d(0x3f7),_0x1c3b33[_0x1c3b33['YUUMI_ALL_TABLES_IS_INVALID']=0x271d]='YUUMI_ALL_TABLES_IS_INVALID',_0x1c3b33[_0x1c3b33[_0x338f9d(0x1fc)]=0x271e]=_0x338f9d(0x1fc),_0x1c3b33[_0x1c3b33[_0x338f9d(0x3ab)]=0x271f]=_0x338f9d(0x3ab),_0x1c3b33[_0x1c3b33[_0x338f9d(0x299)]=0x2af9]='PY_RUNTIME_SCRIPT_ERROR',_0x1c3b33[_0x1c3b33[_0x338f9d(0x222)]=0x2ee1]=_0x338f9d(0x222),_0x1c3b33[_0x1c3b33[_0x338f9d(0x275)]=0x2ee2]=_0x338f9d(0x275),_0x1c3b33[_0x1c3b33[_0x338f9d(0x1a6)]=0x2ee3]=_0x338f9d(0x1a6),_0x1c3b33[_0x1c3b33[_0x338f9d(0x324)]=0x2ee4]=_0x338f9d(0x324),_0x1c3b33[_0x1c3b33[_0x338f9d(0x1de)]=0x2ee5]=_0x338f9d(0x1de),_0x1c3b33[_0x1c3b33[_0x338f9d(0x19f)]=0x32c9]='WECHAT_HAS_BEEN_BOUND',_0x1c3b33[_0x1c3b33['MOBILE_HAS_BEEN_BOUND']=0x32ca]=_0x338f9d(0x294),_0x1c3b33[_0x1c3b33[_0x338f9d(0x291)]=0x32cb]=_0x338f9d(0x291),_0x1c3b33[_0x1c3b33[_0x338f9d(0x24b)]=-0x1]=_0x338f9d(0x24b),_0x1c3b33))(Be||{}),ns=Object[_0x338f9d(0x20f)],rs=(_0x3ef405,_0xa4cd57,_0x287c52,_0xf575d0)=>{const _0x556783=_0x338f9d;for(var _0x48f99b=_0xf575d0>0x1?void 0x0:_0xf575d0?ns(_0xa4cd57,_0x287c52):_0xa4cd57,_0x2fa277=_0x3ef405[_0x556783(0x29d)]-0x1,_0x175afa;_0x2fa277>=0x0;_0x2fa277--)(_0x175afa=_0x3ef405[_0x2fa277])&&(_0x48f99b=_0x175afa(_0x48f99b)||_0x48f99b);return _0x48f99b;},ue=(_0x338a80,_0x3d6b29)=>(_0x5be7dc,_0x1d6a7d)=>_0x3d6b29(_0x5be7dc,_0x1d6a7d,_0x338a80);exports[_0x338f9d(0x2b0)]=class extends a[_0x338f9d(0x40d)]{constructor(_0x353b08,_0x1747b2,_0x326ed3){const _0xc908c8=_0x338f9d;super(),this[_0xc908c8(0x381)]=_0x353b08,this['_httpService']=_0x1747b2,this['_configService']=_0x326ed3;}async[_0x338f9d(0x29c)](_0x46fc20,_0x5cdbea,_0x449aa4,..._0x4f7354){const _0x8babc0=_0x338f9d;var _0x42e7e7,_0x233e15,_0x1de0e9,_0x182521;const _0x5a32ab=this[_0x8babc0(0x381)]['getFocusedUnit']();if(!_0x5a32ab)throw new Error(_0x8babc0(0x3a2));const _0x1082e8=((_0x42e7e7=this['_configService'][_0x8babc0(0x419)](u['REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY']))!=null?_0x42e7e7:u[_0x8babc0(0x31a)])+'/'+_0x46fc20+_0x8babc0(0x2ec)+_0x5cdbea,_0x518086=new URL(window[_0x8babc0(0x3c7)][_0x8babc0(0x3eb)]),_0x3757b1={'scriptId':_0x46fc20,'runId':(_0x233e15=_0x518086[_0x8babc0(0x29b)][_0x8babc0(0x34c)](_0x8babc0(0x3f4)))!=null?_0x233e15:'','function':_0x5cdbea,'unitId':_0x5a32ab['getUnitId'](),'argsOfFunction':JSON[_0x8babc0(0x2ae)](_0x4f7354),'invokeId':(_0x1de0e9=_0x449aa4[_0x8babc0(0x38c)])!=null?_0x1de0e9:'','executionId':(_0x182521=_0x449aa4[_0x8babc0(0x430)])!=null?_0x182521:''};try{const _0x55fb79=await this['_httpService'][_0x8babc0(0x424)](_0x1082e8,{'body':_0x3757b1});return _0x55fb79[_0x8babc0(0x3a3)]['error']&&_0x55fb79[_0x8babc0(0x3a3)]['error'][_0x8babc0(0x355)]!==Be['OK']?_0x8babc0(0x36e):_0x55fb79[_0x8babc0(0x3a3)][_0x8babc0(0x240)];}catch{return _0x8babc0(0x36e);}}},exports['RemoteUniscriptService']=rs([ue(0x0,a[_0x338f9d(0x2d1)]),ue(0x1,a[_0x338f9d(0x388)](G[_0x338f9d(0x19c)])),ue(0x2,a[_0x338f9d(0x2f0)])],exports[_0x338f9d(0x2b0)]),exports[_0x338f9d(0x241)]=xe,exports[_0x338f9d(0x3b4)]=be,exports[_0x338f9d(0x337)]=Pe,exports[_0x338f9d(0x228)]=is,exports[_0x338f9d(0x1f9)]=je;