@univerjs-pro/collaboration-client-ui 0.7.0-nightly.202505101606 → 0.7.0-nightly.202505121607
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 +1 -1
- package/lib/cjs/index.js +1 -1
- package/lib/cjs/locale/en-US.js +1 -1
- package/lib/cjs/locale/fa-IR.js +1 -1
- package/lib/cjs/locale/fr-FR.js +1 -1
- package/lib/cjs/locale/ru-RU.js +1 -1
- package/lib/cjs/locale/vi-VN.js +1 -1
- package/lib/cjs/locale/zh-CN.js +1 -1
- package/lib/cjs/locale/zh-TW.js +1 -1
- package/lib/es/facade.js +1 -1
- package/lib/es/index.js +1 -1
- package/lib/es/locale/en-US.js +1 -1
- package/lib/es/locale/fa-IR.js +1 -1
- package/lib/es/locale/fr-FR.js +1 -1
- package/lib/es/locale/ru-RU.js +1 -1
- package/lib/es/locale/vi-VN.js +1 -1
- package/lib/es/locale/zh-CN.js +1 -1
- package/lib/es/locale/zh-TW.js +1 -1
- package/lib/facade.js +1 -1
- package/lib/index.js +1 -1
- package/lib/locale/en-US.js +1 -1
- package/lib/locale/fa-IR.js +1 -1
- package/lib/locale/fr-FR.js +1 -1
- package/lib/locale/ru-RU.js +1 -1
- package/lib/locale/vi-VN.js +1 -1
- package/lib/locale/zh-CN.js +1 -1
- package/lib/locale/zh-TW.js +1 -1
- package/lib/umd/facade.js +1 -1
- package/lib/umd/index.js +1 -1
- package/lib/umd/locale/en-US.js +1 -1
- package/lib/umd/locale/fa-IR.js +1 -1
- package/lib/umd/locale/fr-FR.js +1 -1
- package/lib/umd/locale/ru-RU.js +1 -1
- package/lib/umd/locale/vi-VN.js +1 -1
- package/lib/umd/locale/zh-CN.js +1 -1
- package/lib/umd/locale/zh-TW.js +1 -1
- package/package.json +17 -16
package/lib/cjs/facade.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const _0x5edcd2=_0x2a3e;(function(_0x33e2a7,_0x3d2af3){const _0x5e2b9c=_0x2a3e,_0x59d45f=_0x33e2a7();while(!![]){try{const _0x569a02=-parseInt(_0x5e2b9c(0x164))/0x1+-parseInt(_0x5e2b9c(0x167))/0x2+parseInt(_0x5e2b9c(0x16c))/0x3+-parseInt(_0x5e2b9c(0x168))/0x4+-parseInt(_0x5e2b9c(0x169))/0x5+-parseInt(_0x5e2b9c(0x166))/0x6+parseInt(_0x5e2b9c(0x16b))/0x7*(parseInt(_0x5e2b9c(0x16a))/0x8);if(_0x569a02===_0x3d2af3)break;else _0x59d45f['push'](_0x59d45f['shift']());}catch(_0x18724d){_0x59d45f['push'](_0x59d45f['shift']());}}}(_0x3e27,0xf2693));function _0x3e27(){const _0x542b6d=['6063304EbGxiS','7943110ZzRaDC','54780296GfQfLg','7Gwbzxe','1400523fiKVLX','extend','@univerjs/core/facade','get','_injector','FUniver','998428cvLogm','runOnServer','2295372RodZGP','3672050YwHuwD'];_0x3e27=function(){return _0x542b6d;};return _0x3e27();}function _0x2a3e(_0x3b25bd,_0x3b1eac){const _0x3e2777=_0x3e27();return _0x2a3e=function(_0x2a3e55,_0x2f6f9a){_0x2a3e55=_0x2a3e55-0x160;let _0x1caf2c=_0x3e2777[_0x2a3e55];return _0x1caf2c;},_0x2a3e(_0x3b25bd,_0x3b1eac);}const t=require('@univerjs-pro/collaboration-client-ui'),e=require(_0x5edcd2(0x160));class c extends e[_0x5edcd2(0x163)]{[_0x5edcd2(0x165)](_0x20996e,_0x2ce817,..._0x7adcfc){const _0x410aa4=_0x5edcd2;return this[_0x410aa4(0x162)][_0x410aa4(0x161)](t['RemoteUniscriptService'])[_0x410aa4(0x165)](_0x20996e,_0x2ce817,{},..._0x7adcfc);}}e[_0x5edcd2(0x163)][_0x5edcd2(0x16d)](c);
|
package/lib/cjs/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const _0x5851f7=_0x5085;(function(_0x216de0,_0x5e8b77){const _0x15a3a1=_0x5085,_0xc95579=_0x216de0();while(!![]){try{const _0x22220a=parseInt(_0x15a3a1(0x3fc))/0x1*(-parseInt(_0x15a3a1(0x319))/0x2)+parseInt(_0x15a3a1(0x40d))/0x3*(parseInt(_0x15a3a1(0x3af))/0x4)+-parseInt(_0x15a3a1(0x3cb))/0x5+-parseInt(_0x15a3a1(0x2eb))/0x6+-parseInt(_0x15a3a1(0x2ba))/0x7+parseInt(_0x15a3a1(0x3c9))/0x8+parseInt(_0x15a3a1(0x39a))/0x9*(parseInt(_0x15a3a1(0x2cf))/0xa);if(_0x22220a===_0x5e8b77)break;else _0xc95579['push'](_0xc95579['shift']());}catch(_0xc61afa){_0xc95579['push'](_0xc95579['shift']());}}}(_0x1d21,0x902ce));var Ve=Object[_0x5851f7(0x34b)],Xe=(_0x4f4694,_0x4c855a,_0x3dd774)=>_0x4c855a in _0x4f4694?Ve(_0x4f4694,_0x4c855a,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x3dd774}):_0x4f4694[_0x4c855a]=_0x3dd774,h=(_0x1bc8c5,_0xfd4503,_0x5ab88d)=>Xe(_0x1bc8c5,typeof _0xfd4503!=_0x5851f7(0x20b)?_0xfd4503+'':_0xfd4503,_0x5ab88d);Object[_0x5851f7(0x34b)](exports,Symbol[_0x5851f7(0x3a4)],{'value':_0x5851f7(0x356)});const u=require(_0x5851f7(0x3b5)),a=require(_0x5851f7(0x309)),p=require(_0x5851f7(0x204)),G=require(_0x5851f7(0x2f4)),b=require(_0x5851f7(0x346)),Ge=require('@univerjs/drawing'),d=require(_0x5851f7(0x2bf)),Y=require(_0x5851f7(0x362)),m=require(_0x5851f7(0x386)),Ee=require(_0x5851f7(0x2e1)),g=require(_0x5851f7(0x3d0)),$=require('rxjs/operators'),X=require(_0x5851f7(0x37f)),P=require(_0x5851f7(0x249)),T=require(_0x5851f7(0x211)),D=require('@univerjs/design'),M=require('react'),Ke=require(_0x5851f7(0x2f8));var qe=Object[_0x5851f7(0x2c4)],ze=(_0x204964,_0x377cff,_0x135c74,_0xa7b48)=>{const _0x3e71b3=_0x5851f7;for(var _0x14aecc=_0xa7b48>0x1?void 0x0:_0xa7b48?qe(_0x377cff,_0x135c74):_0x377cff,_0x5084c9=_0x204964[_0x3e71b3(0x3ab)]-0x1,_0x2247a8;_0x5084c9>=0x0;_0x5084c9--)(_0x2247a8=_0x204964[_0x5084c9])&&(_0x14aecc=_0x2247a8(_0x14aecc)||_0x14aecc);return _0x14aecc;},Te=(_0x46b213,_0x599f2b)=>(_0x121f8c,_0x56571c)=>_0x599f2b(_0x121f8c,_0x56571c,_0x46b213);let de=class extends a[_0x5851f7(0x2a9)]{constructor(_0x82372a,_0x3afd22){const _0x43df9e=_0x5851f7;super(),this[_0x43df9e(0x330)]=_0x82372a,this[_0x43df9e(0x394)]=_0x3afd22,this[_0x43df9e(0x221)]();}[_0x5851f7(0x221)](){const _0x239e2b=_0x5851f7,_0x1a1a50=this;this[_0x239e2b(0x21c)](this[_0x239e2b(0x330)][_0x239e2b(0x38e)]({'onBeforePasteImage':async _0x2ed221=>{const _0xce95=_0x239e2b,_0x1000b5=await _0x1a1a50[_0xce95(0x394)][_0xce95(0x42f)](_0x2ed221);return _0x1000b5?{'source':_0x1000b5[_0xce95(0x2e2)],'imageSourceType':_0x1000b5['imageSourceType']}:null;}}));}};de=ze([Te(0x0,b[_0x5851f7(0x2aa)]),Te(0x1,Ge[_0x5851f7(0x2e5)])],de);const Oe=[_0x5851f7(0x336),_0x5851f7(0x28d),_0x5851f7(0x2d6),_0x5851f7(0x2f2),_0x5851f7(0x37e),_0x5851f7(0x351)];class me extends a[_0x5851f7(0x31b)]{constructor(){const _0x6d99df=_0x5851f7;super(...arguments),h(this,_0x6d99df(0x3ff),new Map()),h(this,'_colorIndex',0x0);}[_0x5851f7(0x437)](_0x20a416){const _0x560298=_0x5851f7;if(this[_0x560298(0x3ff)][_0x560298(0x290)](_0x20a416))return this[_0x560298(0x3ff)][_0x560298(0x1f5)](_0x20a416);const _0x3cec59=Oe[this['_colorIndex']];return this[_0x560298(0x1e1)]=(this[_0x560298(0x1e1)]+0x1)%Oe[_0x560298(0x3ab)],this['_assignedColors']['set'](_0x20a416,_0x3cec59),_0x3cec59;}}function Pe(_0x260a02){const _0x40d8f8=_0x5851f7;let _0x6c6b6='';for(const _0x27dbfc of _0x260a02){const {startOffset:_0x14e66b,endOffset:_0x787f7b,isActive:_0x3e42d4,rangeType:_0x49d4e0,segmentId:_0x228e7e,segmentPage:_0xb801a9}=_0x27dbfc;_0x6c6b6[_0x40d8f8(0x3ab)]&&(_0x6c6b6+=','),_0x6c6b6+=_0x14e66b+':'+_0x787f7b+':'+(_0x3e42d4?'1':'0')+':'+_0x49d4e0+':'+_0x228e7e+':'+_0xb801a9;}return _0x6c6b6;}function Je(_0x1bf418){const _0x5589bd=_0x5851f7,_0x37b5ad=_0x1bf418['split'](','),_0x5273fc=[];for(const _0x53a95d of _0x37b5ad){const [_0x53af9e,_0x5e6f1e,_0x53dd9d,_0x26a384,_0x581e97,_0x523588]=_0x53a95d[_0x5589bd(0x230)](':');_0x5273fc['push']({'startOffset':Number(_0x53af9e),'endOffset':Number(_0x5e6f1e),'collapsed':_0x53af9e===_0x5e6f1e,'isActive':_0x53dd9d==='1','rangeType':_0x26a384===a[_0x5589bd(0x345)][_0x5589bd(0x2c1)]?a[_0x5589bd(0x345)][_0x5589bd(0x2c1)]:a[_0x5589bd(0x345)][_0x5589bd(0x2de)],'segmentId':typeof _0x581e97==_0x5589bd(0x33d)?String(_0x581e97):'','segmentPage':Number(_0x523588!=null?_0x523588:-0x1)});}return _0x5273fc[_0x5589bd(0x401)](_0x487334=>_0x487334[_0x5589bd(0x396)])||(_0x5273fc[0x0][_0x5589bd(0x396)]=!0x0),_0x5273fc;}class Ce extends a[_0x5851f7(0x2a9)]{constructor(){const _0x93ee55=_0x5851f7;super(...arguments),h(this,'_collabCursorState$',new d[(_0x93ee55(0x207))](null)),h(this,_0x93ee55(0x3f1),this['_collabCursorState$']['asObservable']());}[_0x5851f7(0x438)](_0xadc840){const _0x380978=_0x5851f7,{unitID:_0x2996cd,memberID:_0x1babf9,textRanges:_0x1116fe}=_0xadc840,_0x1638d5=Pe(_0x1116fe);if(_0x1638d5==='')return;const _0x494eba={'unitID':_0x2996cd,'memberID':_0x1babf9,'selection':_0x1638d5};this[_0x380978(0x29d)]['next'](_0x494eba);}}var Ze=Object[_0x5851f7(0x2c4)],Qe=(_0x32b44e,_0xb45d24,_0x1aa9ff,_0x571e02)=>{const _0x58bf7a=_0x5851f7;for(var _0x12de2f=_0x571e02>0x1?void 0x0:_0x571e02?Ze(_0xb45d24,_0x1aa9ff):_0xb45d24,_0x755d70=_0x32b44e[_0x58bf7a(0x3ab)]-0x1,_0x26dbcf;_0x755d70>=0x0;_0x755d70--)(_0x26dbcf=_0x32b44e[_0x755d70])&&(_0x12de2f=_0x26dbcf(_0x12de2f)||_0x12de2f);return _0x12de2f;},L=(_0x5a4e8e,_0x32e458)=>(_0x2db7c4,_0x553f46)=>_0x32e458(_0x2db7c4,_0x553f46,_0x5a4e8e);const et=0x12c,tt=0x64;let fe=class extends a[_0x5851f7(0x2a9)]{constructor(_0x2b9d0d,_0x4cd6a9,_0x53f6c8,_0x8d15a,_0x13f377,_0x1f715a,_0x46310b,_0x1a8d8e,_0x3c54c1){const _0x29652d=_0x5851f7;super(),h(this,_0x29652d(0x25c),!0x1),h(this,_0x29652d(0x221),!0x1),h(this,_0x29652d(0x237),new d[(_0x29652d(0x207))](new Map())),h(this,'cursorInfo$',this[_0x29652d(0x237)][_0x29652d(0x3c5)]()),h(this,_0x29652d(0x3d6),new d[(_0x29652d(0x207))]([])),h(this,_0x29652d(0x349),this[_0x29652d(0x3d6)][_0x29652d(0x3bf)](d['debounceTime'](et))),h(this,'_updateLocalCursor',a[_0x29652d(0x418)](_0x44f7e1=>{const _0x1dec0a=_0x29652d,_0x48537b={'eventID':m['CollaborationEvent']['UPDATE_CURSOR'],'data':{'unitID':this[_0x1dec0a(0x339)],'memberID':this[_0x1dec0a(0x373)][_0x1dec0a(0x333)](),'selection':Pe(_0x44f7e1)}};this[_0x1dec0a(0x373)][_0x1dec0a(0x1d6)](_0x48537b,this[_0x1dec0a(0x339)]);},tt)),(this[_0x29652d(0x339)]=_0x2b9d0d,this[_0x29652d(0x373)]=_0x4cd6a9,this[_0x29652d(0x2ed)]=_0x53f6c8,this[_0x29652d(0x20a)]=_0x8d15a,this[_0x29652d(0x397)]=_0x13f377,this['_syncEditingCollabCursorService']=_0x1f715a,this['_transformService']=_0x46310b,this['_univerInstanceService']=_0x1a8d8e,this[_0x29652d(0x1eb)]=_0x3c54c1);}get[_0x5851f7(0x264)](){const _0x5db7a8=_0x5851f7;return this[_0x5db7a8(0x237)][_0x5db7a8(0x299)]();}get[_0x5851f7(0x382)](){const _0x4dee85=_0x5851f7;return this[_0x4dee85(0x3d6)][_0x4dee85(0x299)]();}[_0x5851f7(0x28f)](){const _0x537956=_0x5851f7;super[_0x537956(0x28f)](),this[_0x537956(0x237)][_0x537956(0x26b)](new Map()),this[_0x537956(0x237)][_0x537956(0x42c)](),this[_0x537956(0x3d6)][_0x537956(0x26b)]([]),this[_0x537956(0x3d6)][_0x537956(0x42c)]();}[_0x5851f7(0x359)](){const _0x29b971=_0x5851f7;this[_0x29b971(0x221)]||(this['_init']=!0x0,this['_session']['sessionStatus$']['pipe'](d[_0x29b971(0x329)](this['dispose$']))['subscribe'](_0x14556d=>{const _0xd572a4=_0x29b971;_0x14556d===u[_0xd572a4(0x432)][_0xd572a4(0x1d3)]?this['_toggleOnline']():this[_0xd572a4(0x3f9)]();}),this[_0x29b971(0x373)][_0x29b971(0x3f5)][_0x29b971(0x3bf)](d[_0x29b971(0x329)](this[_0x29b971(0x2f1)]))[_0x29b971(0x1e4)](_0x420ca1=>{const _0x4cb75c=_0x29b971,_0x3c665d=_0x420ca1[_0x4cb75c(0x3c4)];_0x3c665d===m[_0x4cb75c(0x2c6)]['UPDATE_CURSOR']&&this[_0x4cb75c(0x35a)](_0x420ca1),_0x3c665d===m[_0x4cb75c(0x2c6)]['USERS_LEAVE']&&this['_onCursorDelete'](_0x420ca1);}),this[_0x29b971(0x21c)](this['_commandService']['onCommandExecuted'](_0x40c286=>{const _0x3e503f=_0x29b971,_0x4def1d=_0x40c286['params'];_0x4def1d!=null&&this[_0x3e503f(0x25c)]&&_0x40c286['id']===Y[_0x3e503f(0x315)]['id']&&_0x4def1d[_0x3e503f(0x395)]===this[_0x3e503f(0x339)]&&_0x4def1d['isEditing']===!0x1&&_0x4def1d['ranges'][_0x3e503f(0x3ab)]>0x0&&this[_0x3e503f(0x398)](_0x4def1d[_0x3e503f(0x31d)]);})),this[_0x29b971(0x265)][_0x29b971(0x3f1)][_0x29b971(0x3bf)](d[_0x29b971(0x329)](this[_0x29b971(0x2f1)]))[_0x29b971(0x1e4)](_0x586b11=>{const _0x252ad9=_0x29b971;if((_0x586b11==null?void 0x0:_0x586b11[_0x252ad9(0x339)])!==this[_0x252ad9(0x339)])return;const _0x2d450d={'eventID':m[_0x252ad9(0x2c6)][_0x252ad9(0x33c)],'data':_0x586b11};this[_0x252ad9(0x35a)](_0x2d450d);}),this[_0x29b971(0x21c)](this['_commandService'][_0x29b971(0x364)](_0x38ba70=>{const _0x270248=_0x29b971;if(_0x38ba70[_0x270248(0x25d)]==null)return;const _0x582ebf=_0x38ba70[_0x270248(0x25d)];if(_0x38ba70['id']!==Y[_0x270248(0x283)]['id']||_0x582ebf[_0x270248(0x395)]!==this[_0x270248(0x339)])return;const _0x9c5013={'id':_0x270248(0x263),'params':_0x582ebf},_0x26e5b6=this[_0x270248(0x264)];for(const [_0x28c8be,_0x17f38f]of _0x26e5b6){const _0x506844={'id':_0x270248(0x263),'params':{'unitId':this['unitID'],'actions':null,'textRanges':_0x17f38f[_0x270248(0x31d)]}},_0x48649c=this[_0x270248(0x42a)][_0x270248(0x2a1)](_0x9c5013,_0x506844,!0x1);if(m[_0x270248(0x28b)](_0x48649c))throw _0x48649c[_0x270248(0x31c)];_0x26e5b6[_0x270248(0x247)](_0x28c8be,{..._0x17f38f,'ranges':_0x48649c[_0x270248(0x40b)][_0x270248(0x25d)][_0x270248(0x30a)]});}queueMicrotask(()=>{const _0x230136=_0x270248;this[_0x230136(0x237)]['next'](_0x26e5b6);});})));}['_onCursorUpdate'](_0x3aae90){const _0x5b8318=_0x5851f7;var _0x30ffd6,_0x50c5da;const {memberID:_0x355e6e,selection:_0x23cf2c}=_0x3aae90[_0x5b8318(0x282)],_0x5a7976=Je(_0x23cf2c),_0x1a2a27=(_0x50c5da=(_0x30ffd6=this['_memberService'][_0x5b8318(0x2a3)](this[_0x5b8318(0x339)],_0x355e6e))==null?void 0x0:_0x30ffd6[_0x5b8318(0x2f9)])!=null?_0x50c5da:'Unknown\x20user',_0x3265aa={'color':this['_colorAssignService'][_0x5b8318(0x437)](_0x355e6e),'name':_0x1a2a27,'ranges':_0x5a7976},_0x303943=this[_0x5b8318(0x264)];_0x303943[_0x5b8318(0x247)](_0x355e6e,_0x3265aa),this['_cursorInfo$'][_0x5b8318(0x26b)](_0x303943);}[_0x5851f7(0x1ff)](_0x967960){const _0x3f8329=_0x5851f7,{memberID:_0x5602ea}=_0x967960[_0x3f8329(0x282)],_0x31afca=this['cursorInfo'];_0x31afca[_0x3f8329(0x278)](_0x5602ea),this[_0x3f8329(0x237)][_0x3f8329(0x26b)](_0x31afca);}['_toggleOnline'](){const _0x31ccea=_0x5851f7;var _0x54c2a4;if(this[_0x31ccea(0x25c)]=!0x0,((_0x54c2a4=this[_0x31ccea(0x2d2)][_0x31ccea(0x390)]())==null?void 0x0:_0x54c2a4['getUnitId']())!==this[_0x31ccea(0x339)])return;const _0x41221a=this[_0x31ccea(0x2ed)][_0x31ccea(0x1f5)](Y[_0x31ccea(0x215)])[_0x31ccea(0x1ec)]();Array['isArray'](_0x41221a)&&_0x41221a[_0x31ccea(0x3ab)]>0x0&&this[_0x31ccea(0x398)](_0x41221a);}[_0x5851f7(0x3f9)](){this['_online']=!0x1;}};fe=Qe([L(0x2,a[_0x5851f7(0x298)](a[_0x5851f7(0x3d3)])),L(0x3,a[_0x5851f7(0x298)](me)),L(0x4,a[_0x5851f7(0x298)](u['MemberService'])),L(0x5,a[_0x5851f7(0x298)](Ce)),L(0x6,m[_0x5851f7(0x421)]),L(0x7,a['IUniverInstanceService']),L(0x8,a['ICommandService'])],fe);var st=Object['getOwnPropertyDescriptor'],it=(_0x4e05ef,_0x537167,_0x1a8834,_0x60cd08)=>{for(var _0x2f528b=_0x60cd08>0x1?void 0x0:_0x60cd08?st(_0x537167,_0x1a8834):_0x537167,_0x31d483=_0x4e05ef['length']-0x1,_0x2eb20b;_0x31d483>=0x0;_0x31d483--)(_0x2eb20b=_0x4e05ef[_0x31d483])&&(_0x2f528b=_0x2eb20b(_0x2f528b)||_0x2f528b);return _0x2f528b;},w=(_0x50a139,_0x4d1a74)=>(_0x1cab92,_0x45a204)=>_0x4d1a74(_0x1cab92,_0x45a204,_0x50a139);const nt=0x12c,rt=0x64,ot=()=>{let _0x508847=[],_0x1c9347=!0x1;return _0xe8feaa=>{const _0x290ac8=_0x5085;_0x508847[_0x290ac8(0x33a)](_0xe8feaa),_0x1c9347||(_0x1c9347=!0x0,setTimeout(()=>{const _0x1f32a6=_0x290ac8;_0x508847[_0x1f32a6(0x2b0)](_0x13973e=>_0x13973e()),_0x508847=[],_0x1c9347=!0x1;}));};};let Se=class extends a['RxDisposable']{constructor(_0x3df8c7,_0x349ab4,_0x39b487,_0x6cd644,_0x5df7f8,_0x1358fd,_0x446e92,_0x2c397d){const _0x5466d1=_0x5851f7;super(),h(this,'_online',!0x1),h(this,_0x5466d1(0x221),!0x1),h(this,_0x5466d1(0x237),new d[(_0x5466d1(0x207))](new Map())),h(this,_0x5466d1(0x2ae),this[_0x5466d1(0x237)][_0x5466d1(0x3c5)]()),h(this,'_roomMembers$',new d['BehaviorSubject']([])),h(this,'roomMembers$',this['_roomMembers$']['pipe'](d['debounceTime'](nt))),h(this,'_updateLocalCursor',a[_0x5466d1(0x418)]((_0x3a2f35,_0x1a4ea3)=>{const _0xbaebb0=_0x5466d1,_0x424f40={'eventID':m[_0xbaebb0(0x2c6)][_0xbaebb0(0x33c)],'data':{'unitID':this['unitID'],'memberID':this[_0xbaebb0(0x373)][_0xbaebb0(0x333)](),'selection':Ee[_0xbaebb0(0x341)](_0x3a2f35,_0x1a4ea3['range'])}};this[_0xbaebb0(0x373)][_0xbaebb0(0x1d6)](_0x424f40,this[_0xbaebb0(0x339)]);},rt)),(this[_0x5466d1(0x339)]=_0x3df8c7,this['_session']=_0x349ab4,this['_injector']=_0x39b487,this[_0x5466d1(0x20a)]=_0x6cd644,this[_0x5466d1(0x397)]=_0x5df7f8,this[_0x5466d1(0x2d2)]=_0x1358fd,this[_0x5466d1(0x1eb)]=_0x446e92,this['_refRangeService']=_0x2c397d);}get[_0x5851f7(0x264)](){const _0x2143cb=_0x5851f7;return this[_0x2143cb(0x237)][_0x2143cb(0x299)]();}get[_0x5851f7(0x382)](){const _0x54522d=_0x5851f7;return this[_0x54522d(0x3d6)][_0x54522d(0x299)]();}[_0x5851f7(0x28f)](){const _0x584e9e=_0x5851f7;super[_0x584e9e(0x28f)](),this['_cursorInfo$']['next'](new Map()),this['_cursorInfo$'][_0x584e9e(0x42c)](),this[_0x584e9e(0x3d6)][_0x584e9e(0x26b)]([]),this['_roomMembers$'][_0x584e9e(0x42c)]();}[_0x5851f7(0x359)](){const _0x4a7886=_0x5851f7;this[_0x4a7886(0x221)]||(this[_0x4a7886(0x221)]=!0x0,this[_0x4a7886(0x373)][_0x4a7886(0x239)]['pipe'](d[_0x4a7886(0x329)](this[_0x4a7886(0x2f1)]))[_0x4a7886(0x1e4)](_0x5f15fb=>{const _0x18d264=_0x4a7886;_0x5f15fb===u[_0x18d264(0x432)]['ONLINE']?this[_0x18d264(0x327)]():this[_0x18d264(0x3f9)]();}),this[_0x4a7886(0x373)][_0x4a7886(0x3f5)][_0x4a7886(0x3bf)](d[_0x4a7886(0x329)](this[_0x4a7886(0x2f1)]))['subscribe'](_0xe66122=>{const _0x5cf897=_0x4a7886,_0x370970=_0xe66122[_0x5cf897(0x3c4)];_0x370970===m['CollaborationEvent'][_0x5cf897(0x33c)]&&this[_0x5cf897(0x35a)](_0xe66122),_0x370970===m[_0x5cf897(0x2c6)][_0x5cf897(0x274)]&&this[_0x5cf897(0x1ff)](_0xe66122);}),this[_0x4a7886(0x20d)](),this[_0x4a7886(0x21c)](this[_0x4a7886(0x1eb)]['onCommandExecuted'](_0x413560=>{const _0x1659d5=_0x4a7886;if(this[_0x1659d5(0x25c)]&&_0x413560['id']===g[_0x1659d5(0x245)]['id']&&_0x413560[_0x1659d5(0x25d)][_0x1659d5(0x395)]===this[_0x1659d5(0x339)]){const _0x52035b=_0x413560[_0x1659d5(0x25d)];this[_0x1659d5(0x398)](_0x52035b['subUnitId'],_0x52035b[_0x1659d5(0x3e0)][0x0]);}})));}['_onCursorUpdate'](_0x4c2dd4){const _0x319599=_0x5851f7;var _0x203fa5,_0x237b7f;const {memberID:_0x47225f,selection:_0x5e730c}=_0x4c2dd4[_0x319599(0x282)],{sheetName:_0x1327d0,range:_0xbd3cf4}=Ee['deserializeRangeWithSheet'](_0x5e730c),_0xb2c446={'name':(_0x237b7f=(_0x203fa5=this[_0x319599(0x397)]['getMember'](this[_0x319599(0x339)],_0x47225f))==null?void 0x0:_0x203fa5[_0x319599(0x2f9)])!=null?_0x237b7f:_0x319599(0x269),'range':this['_getMergeRange'](_0x1327d0,_0xbd3cf4),'sheetID':_0x1327d0,'color':this[_0x319599(0x20a)]['assignAColorForMemberID'](_0x47225f),'selection':_0x5e730c},_0x583d84=this[_0x319599(0x264)];_0x583d84[_0x319599(0x247)](_0x47225f,_0xb2c446),this[_0x319599(0x237)][_0x319599(0x26b)](_0x583d84);}['_onCursorDelete'](_0x4c5575){const _0xa58a07=_0x5851f7,{memberID:_0x14140d}=_0x4c5575[_0xa58a07(0x282)],_0x3a2951=this[_0xa58a07(0x264)];_0x3a2951[_0xa58a07(0x278)](_0x14140d),this[_0xa58a07(0x237)][_0xa58a07(0x26b)](_0x3a2951);}[_0x5851f7(0x415)](_0x33a0e3,_0x2b5b24){const _0x18c52d=_0x5851f7;var _0x3c6ce0,_0x265663;const _0x1b982d=(_0x265663=(_0x3c6ce0=this[_0x18c52d(0x2d2)]['getUniverSheetInstance'](this[_0x18c52d(0x339)]))==null?void 0x0:_0x3c6ce0['getSheetBySheetId'](_0x33a0e3))==null?void 0x0:_0x265663['getMergeData']();return(_0x1b982d==null?void 0x0:_0x1b982d['find'](_0x4180d7=>a[_0x18c52d(0x423)]['contains'](_0x4180d7,_0x2b5b24)))||_0x2b5b24;}[_0x5851f7(0x20d)](){const _0x4528aa=_0x5851f7,_0x103c05=new a['DisposableCollection'](),_0x35acbd=ot(),_0x3e51a0=()=>{const _0x5c9f5f=_0x5085;_0x103c05[_0x5c9f5f(0x28f)]();const _0x4a7cbc=(_0x20bb05,_0x203aa4,_0x4794bd,_0x15a8c1)=>{const _0x52c0f8=_0x5c9f5f;let _0x50e484=[];switch(_0x20bb05['id']){case g[_0x52c0f8(0x41c)]['DeleteRangeMoveLeftCommandId']:{_0x50e484=g[_0x52c0f8(0x244)](_0x20bb05,_0x15a8c1);break;}case g[_0x52c0f8(0x41c)][_0x52c0f8(0x42d)]:{_0x50e484=g['handleDeleteRangeMoveUp'](_0x20bb05,_0x15a8c1);break;}case g[_0x52c0f8(0x41c)][_0x52c0f8(0x2ff)]:{_0x50e484=g[_0x52c0f8(0x2d9)](_0x20bb05,_0x15a8c1);break;}case g[_0x52c0f8(0x41c)]['InsertRangeMoveDownCommandId']:{_0x50e484=g[_0x52c0f8(0x381)](_0x20bb05,_0x15a8c1);break;}case g['EffectRefRangId'][_0x52c0f8(0x255)]:{_0x50e484=g['handleInsertRangeMoveRight'](_0x20bb05,_0x15a8c1);break;}case g[_0x52c0f8(0x41c)][_0x52c0f8(0x24e)]:{_0x50e484=g['handleInsertRow'](_0x20bb05,_0x15a8c1);break;}case g[_0x52c0f8(0x41c)][_0x52c0f8(0x295)]:{_0x50e484=g[_0x52c0f8(0x1e0)](_0x20bb05,_0x15a8c1);break;}case g[_0x52c0f8(0x41c)][_0x52c0f8(0x39e)]:{_0x50e484=g[_0x52c0f8(0x2d3)](_0x20bb05,_0x15a8c1);break;}case g[_0x52c0f8(0x41c)]['RemoveRowCommandId']:{_0x50e484=g[_0x52c0f8(0x32a)](_0x20bb05,_0x15a8c1);break;}}const _0x310cff=g[_0x52c0f8(0x3ae)](_0x50e484,_0x15a8c1),_0xdd1476=this['cursorInfo'][_0x52c0f8(0x1f5)](_0x203aa4);if(_0xdd1476&&_0x310cff){const _0x4317c3={..._0xdd1476,'range':_0x310cff};this[_0x52c0f8(0x264)][_0x52c0f8(0x247)](_0x203aa4,_0x4317c3),_0x35acbd(()=>{const _0x1b2173=_0x52c0f8,_0x8109ec=this[_0x1b2173(0x277)][_0x1b2173(0x205)](_0x310cff,_0x282c52=>(_0x8109ec[_0x1b2173(0x28f)](),_0x4a7cbc(_0x282c52,_0x203aa4,_0x4794bd,_0x310cff)));_0x103c05[_0x1b2173(0x388)](_0x8109ec);});}return{'redos':[],'undos':[]};};this['cursorInfo'][_0x5c9f5f(0x2b0)]((_0x5cb6d1,_0x36a245)=>{const _0xcc3d20=_0x5c9f5f,{range:_0x541585,sheetID:_0x196ffe}=_0x5cb6d1,_0x204196=this[_0xcc3d20(0x277)][_0xcc3d20(0x205)](_0x541585,_0x110ff7=>(_0x204196[_0xcc3d20(0x28f)](),_0x4a7cbc(_0x110ff7,_0x36a245,_0x196ffe,_0x541585)));_0x103c05[_0xcc3d20(0x388)](_0x204196);});};this[_0x4528aa(0x21c)](a[_0x4528aa(0x26c)](this[_0x4528aa(0x237)][_0x4528aa(0x1e4)](()=>{_0x3e51a0();})));}[_0x5851f7(0x327)](){const _0x4b8aac=_0x5851f7;var _0x5b239c,_0x15e9d8;if(this[_0x4b8aac(0x25c)]=!0x0,((_0x5b239c=this[_0x4b8aac(0x2d2)][_0x4b8aac(0x390)]())==null?void 0x0:_0x5b239c['getUnitId']())!==this[_0x4b8aac(0x339)])return;const _0x44cb16=(_0x15e9d8=this[_0x4b8aac(0x2ed)][_0x4b8aac(0x1f5)](g['SheetsSelectionsService'])[_0x4b8aac(0x3a9)]())==null?void 0x0:_0x15e9d8[0x0],_0x3d3ba4=this[_0x4b8aac(0x2d2)]['getCurrentUnitForType'](a['UniverInstanceType'][_0x4b8aac(0x2c8)])[_0x4b8aac(0x218)]();_0x44cb16&&_0x3d3ba4&&this['_updateLocalCursor'](_0x3d3ba4[_0x4b8aac(0x2ad)](),_0x44cb16);}[_0x5851f7(0x3f9)](){const _0x451969=_0x5851f7;this[_0x451969(0x25c)]=!0x1;}};Se=it([w(0x2,a[_0x5851f7(0x298)](a[_0x5851f7(0x3d3)])),w(0x3,a[_0x5851f7(0x298)](me)),w(0x4,a['Inject'](u[_0x5851f7(0x344)])),w(0x5,a['IUniverInstanceService']),w(0x6,a['ICommandService']),w(0x7,a[_0x5851f7(0x298)](g[_0x5851f7(0x35f)]))],Se);var at=Object[_0x5851f7(0x2c4)],ct=(_0xab9aa2,_0x429c9c,_0x1fec42,_0x156990)=>{for(var _0xeb2ade=_0x156990>0x1?void 0x0:_0x156990?at(_0x429c9c,_0x1fec42):_0x429c9c,_0x5d12eb=_0xab9aa2['length']-0x1,_0xd5993c;_0x5d12eb>=0x0;_0x5d12eb--)(_0xd5993c=_0xab9aa2[_0x5d12eb])&&(_0xeb2ade=_0xd5993c(_0xeb2ade)||_0xeb2ade);return _0xeb2ade;},ie=(_0x30dd6d,_0x2670fe)=>(_0x20b660,_0x55d548)=>_0x2670fe(_0x20b660,_0x55d548,_0x30dd6d);let x=class extends a[_0x5851f7(0x2a9)]{constructor(_0x5db6b5,_0x5102fb,_0x311d87){const _0x528c98=_0x5851f7;super(),h(this,_0x528c98(0x3a7),new Map()),h(this,_0x528c98(0x22a),new d['Subject']()),(this[_0x528c98(0x2d2)]=_0x5db6b5,this[_0x528c98(0x2ed)]=_0x5102fb,this['_collabSessionService']=_0x311d87,this[_0x528c98(0x221)]());}[_0x5851f7(0x28f)](){const _0x51f416=_0x5851f7;super[_0x51f416(0x28f)](),this[_0x51f416(0x22a)]['complete'](),this[_0x51f416(0x3a7)][_0x51f416(0x2b0)](_0x589cad=>_0x589cad[_0x51f416(0x28f)]());}[_0x5851f7(0x33f)](_0x543621){const _0x2d02f0=_0x5851f7;return this[_0x2d02f0(0x3a7)]['has'](_0x543621)?this[_0x2d02f0(0x3a7)][_0x2d02f0(0x1f5)](_0x543621)[_0x2d02f0(0x2ae)]:this['_entityInit$'][_0x2d02f0(0x3bf)](d['filter'](_0x41eb71=>_0x41eb71[_0x2d02f0(0x339)]===_0x543621),d[_0x2d02f0(0x3b1)](_0xdda4c5=>_0xdda4c5[_0x2d02f0(0x2ae)]));}[_0x5851f7(0x221)](){const _0x419652=_0x5851f7;this['_univerInstanceService']['getTypeOfUnitAdded$'](a[_0x419652(0x1c5)][_0x419652(0x2c8)])['pipe'](d[_0x419652(0x329)](this[_0x419652(0x2f1)]))[_0x419652(0x1e4)](async _0x534d96=>{const _0x131da3=_0x419652,_0x27307f=_0x534d96[_0x131da3(0x228)](),_0x47550a=await this['_startSheetCollabCursor'](_0x27307f);this['_entityInit$'][_0x131da3(0x26b)](_0x47550a),this[_0x131da3(0x3a7)][_0x131da3(0x247)](_0x27307f,_0x47550a);}),this['_univerInstanceService'][_0x419652(0x368)](a[_0x419652(0x1c5)][_0x419652(0x411)])[_0x419652(0x3bf)](d['takeUntil'](this[_0x419652(0x2f1)]))[_0x419652(0x3bf)](d[_0x419652(0x332)](_0x50235f=>!_0x50235f[_0x419652(0x228)]()[_0x419652(0x1cb)]('__')))['subscribe'](async _0x42d4b7=>{const _0x5a7fbc=_0x419652,_0x567f19=_0x42d4b7[_0x5a7fbc(0x228)](),_0x55acc7=await this['_startDocCollabCursor'](_0x567f19);this[_0x5a7fbc(0x22a)][_0x5a7fbc(0x26b)](_0x55acc7),this[_0x5a7fbc(0x3a7)][_0x5a7fbc(0x247)](_0x567f19,_0x55acc7);}),d[_0x419652(0x429)](this[_0x419652(0x2d2)]['getTypeOfUnitDisposed$'](a[_0x419652(0x1c5)][_0x419652(0x411)]),this[_0x419652(0x2d2)][_0x419652(0x2b1)](a[_0x419652(0x1c5)]['UNIVER_SHEET']))['pipe'](d[_0x419652(0x329)](this[_0x419652(0x2f1)]))[_0x419652(0x1e4)](_0x22be02=>{const _0x2b25bf=_0x419652,_0x39de2a=_0x22be02[_0x2b25bf(0x228)](),_0x54c380=this['_entities'][_0x2b25bf(0x1f5)](_0x39de2a);_0x54c380&&(_0x54c380[_0x2b25bf(0x28f)](),this[_0x2b25bf(0x3a7)]['delete'](_0x39de2a));});}async['_startSheetCollabCursor'](_0x15a442){const _0x1cb233=_0x5851f7,_0x5b354b=await this[_0x1cb233(0x250)]['requireSession'](_0x15a442),_0x166bdf=this[_0x1cb233(0x2ed)][_0x1cb233(0x3de)](Se,_0x15a442,_0x5b354b);return _0x166bdf['init'](),_0x166bdf;}async[_0x5851f7(0x38f)](_0x2abac5){const _0x566ff3=_0x5851f7,_0x291b69=await this[_0x566ff3(0x250)][_0x566ff3(0x3d7)](_0x2abac5),_0x23aebb=this[_0x566ff3(0x2ed)]['createInstance'](fe,_0x2abac5,_0x291b69);return _0x23aebb[_0x566ff3(0x359)](),_0x23aebb;}};x=ct([ie(0x0,a['IUniverInstanceService']),ie(0x1,a['Inject'](a['Injector'])),ie(0x2,a[_0x5851f7(0x298)](u[_0x5851f7(0x306)]))],x);function _0x5085(_0x636685,_0x35f267){const _0x1d2141=_0x1d21();return _0x5085=function(_0x5085d0,_0x24a2ba){_0x5085d0=_0x5085d0-0x1c0;let _0xa4004e=_0x1d2141[_0x5085d0];return _0xa4004e;},_0x5085(_0x636685,_0x35f267);}const K=0x14,Re=0xc8,ne=0x4,lt=0x5;function _t(_0x193bb7,_0x1057ce){const _0x4cbd08=_0x5851f7;let {radius:_0x21cc50,width:_0x53b477,height:_0x2bea79}=_0x1057ce;_0x21cc50=_0x21cc50!=null?_0x21cc50:0x0,_0x53b477=_0x53b477!=null?_0x53b477:0x1e,_0x2bea79=_0x2bea79!=null?_0x2bea79:0x1e;let _0x4f7df7=0x0,_0x1bc399=0x0,_0x711310=0x0;_0x4f7df7=_0x1bc399=_0x711310=Math[_0x4cbd08(0x21a)](_0x21cc50,_0x53b477/0x2,_0x2bea79/0x2),_0x193bb7[_0x4cbd08(0x300)](),_0x193bb7[_0x4cbd08(0x3a0)](_0x4f7df7,0x0),_0x193bb7[_0x4cbd08(0x1de)](_0x53b477-_0x1bc399,0x0),_0x193bb7[_0x4cbd08(0x2ac)](_0x53b477-_0x1bc399,_0x1bc399,_0x1bc399,Math['PI']*0x3/0x2,0x0,!0x1),_0x193bb7[_0x4cbd08(0x1de)](_0x53b477,_0x2bea79-_0x711310),_0x193bb7[_0x4cbd08(0x2ac)](_0x53b477-_0x711310,_0x2bea79-_0x711310,_0x711310,0x0,Math['PI']/0x2,!0x1),_0x193bb7[_0x4cbd08(0x1de)](0x0,_0x2bea79),_0x193bb7['lineTo'](0x0,_0x4f7df7),_0x193bb7[_0x4cbd08(0x2ac)](_0x4f7df7,_0x4f7df7,_0x4f7df7,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x193bb7[_0x4cbd08(0x1d7)](),_0x1057ce[_0x4cbd08(0x206)]&&(_0x193bb7[_0x4cbd08(0x27b)](),_0x193bb7[_0x4cbd08(0x210)]=_0x1057ce[_0x4cbd08(0x206)],_0x1057ce[_0x4cbd08(0x320)]===_0x4cbd08(0x307)?_0x193bb7[_0x4cbd08(0x206)](_0x4cbd08(0x307)):_0x193bb7[_0x4cbd08(0x206)](),_0x193bb7['restore']());}class ee extends p[_0x5851f7(0x342)]{constructor(_0x3f3597,_0x530ba9){const _0x29c7da=_0x5851f7;super(_0x3f3597,_0x530ba9),h(this,_0x29c7da(0x292)),h(this,_0x29c7da(0x240)),(this[_0x29c7da(0x292)]=_0x530ba9==null?void 0x0:_0x530ba9[_0x29c7da(0x292)],this[_0x29c7da(0x240)]=_0x530ba9==null?void 0x0:_0x530ba9[_0x29c7da(0x240)]);}static[_0x5851f7(0x272)](_0x2b037d,_0x267672){const _0x1ea4a3=_0x5851f7,{text:_0x377af9,color:_0x40af4f}=_0x267672;_0x2b037d[_0x1ea4a3(0x27b)](),_0x2b037d[_0x1ea4a3(0x3f3)]='bold\x2013px\x20Source\x20Han\x20Sans\x20CN';const _0x2de743=_0x2b037d[_0x1ea4a3(0x1f1)](_0x377af9)['width'],_0x2fee33=Math[_0x1ea4a3(0x21a)](_0x2de743+0x2*ne,Re);_t(_0x2b037d,{'height':K,'radius':0x4,'width':_0x2fee33,'fill':_0x40af4f}),_0x2b037d[_0x1ea4a3(0x210)]=_0x1ea4a3(0x3b2);const _0x4a8a77=ne,_0xca9c09=K-lt,_0x2abbdc=Re-0x2*ne;if(_0x2de743>_0x2abbdc){let _0x47946b='',_0x80105f=0x0;for(const _0x5cd5e5 of _0x377af9){const _0x325474=_0x2b037d['measureText'](_0x5cd5e5)[_0x1ea4a3(0x42e)];if(_0x80105f+_0x325474<=_0x2abbdc-_0x2b037d[_0x1ea4a3(0x1f1)](_0x1ea4a3(0x347))[_0x1ea4a3(0x42e)])_0x47946b+=_0x5cd5e5,_0x80105f+=_0x325474;else{_0x47946b+=_0x1ea4a3(0x347);break;}}_0x2b037d[_0x1ea4a3(0x3f6)](_0x47946b,_0x4a8a77,_0xca9c09);}else _0x2b037d[_0x1ea4a3(0x3f6)](_0x377af9,_0x4a8a77,_0xca9c09);_0x2b037d[_0x1ea4a3(0x285)]();}[_0x5851f7(0x3c0)](_0x2ced7a){const _0x1b8180=_0x5851f7;ee[_0x1b8180(0x272)](_0x2ced7a,this);}}const re='collab-text-anchor-',ht=_0x5851f7(0x2e9),ut=_0x5851f7(0x399),k=0x6,dt=1.5,oe=0x4,ft=1.5,St='rgba(255,\x20255,\x20255,\x200.01)';class De{constructor(_0x153c8e,_0x14e8ed,_0x3e3971,_0x2a6dc0){const _0x2761f8=_0x5851f7;h(this,'_shapes',[]),h(this,_0x2761f8(0x25b),null),h(this,_0x2761f8(0x2db),null),h(this,_0x2761f8(0x30f),null),h(this,_0x2761f8(0x3f8),null),h(this,_0x2761f8(0x3be),null),(this[_0x2761f8(0x2b8)]=_0x153c8e,this[_0x2761f8(0x372)]=_0x14e8ed,this['_docSkeleton']=_0x3e3971,this[_0x2761f8(0x213)]=_0x2a6dc0,this[_0x2761f8(0x430)]());}set['_hover'](_0x2f061e){const _0x4c6c55=_0x5851f7;_0x2f061e?(this[_0x4c6c55(0x30f)]&&this[_0x4c6c55(0x30f)][_0x4c6c55(0x1e5)](),this['_textBubble']&&this['_textBubble'][_0x4c6c55(0x1f3)]()):(this[_0x4c6c55(0x30f)]&&this[_0x4c6c55(0x30f)][_0x4c6c55(0x1f3)](),this[_0x4c6c55(0x2db)]&&this['_textBubble'][_0x4c6c55(0x1e5)]());}[_0x5851f7(0x28f)](){const _0x2cdf4a=_0x5851f7;for(const _0x1cd13d of this[_0x2cdf4a(0x287)])_0x1cd13d[_0x2cdf4a(0x28f)]();this['_textBubble']&&this[_0x2cdf4a(0x2db)][_0x2cdf4a(0x28f)](),this['_anchorDot']&&this[_0x2cdf4a(0x30f)][_0x2cdf4a(0x28f)](),this[_0x2cdf4a(0x25b)]&&this[_0x2cdf4a(0x25b)][_0x2cdf4a(0x28f)](),this[_0x2cdf4a(0x3be)]&&this[_0x2cdf4a(0x3be)]();}[_0x5851f7(0x430)](){const _0x3e24b6=_0x5851f7;var _0x5ccaa1;const {_docSkeleton:_0x1cfe3d,_document:_0x3c414e}=this,{color:_0x5c1c55,name:_0x5dff9d,ranges:_0x4d03a7}=this['_cursor'],_0x268f2a=_0x3c414e[_0x3e24b6(0x23e)](),{docsLeft:_0x25183d,docsTop:_0x1a4e21}=_0x268f2a,_0x15382d=new b['NodePositionConvertToCursor'](_0x268f2a,_0x1cfe3d);for(const {startOffset:_0x420e9b,endOffset:_0x1171e7,rangeType:_0x6cfed1,segmentId:_0xb4d1,segmentPage:_0x5ddc31,collapsed:_0x2325a2,isActive:_0x3e40ff}of _0x4d03a7){const _0x4068c0=_0x1cfe3d[_0x3e24b6(0x404)](_0x420e9b,!0x0,_0xb4d1,_0x5ddc31);let _0x84adc2=_0x1cfe3d[_0x3e24b6(0x404)](_0x1171e7,!0x0,_0xb4d1,_0x5ddc31);if(_0x84adc2==null&&(_0x84adc2=_0x1cfe3d[_0x3e24b6(0x404)](_0x1171e7-0x1,!0x1,_0xb4d1,_0x5ddc31)),_0x3e40ff){const {contentBoxPointGroup:_0x44fdfa}=_0x15382d[_0x3e24b6(0x201)](_0x84adc2,_0x84adc2);if(_0x44fdfa['length']===0x0)continue;this['_drawAnchor'](_0x5c1c55,_0x44fdfa,_0x25183d,_0x1a4e21,_0x5dff9d),this[_0x3e24b6(0x3be)]=this[_0x3e24b6(0x36d)]();}if(_0x4068c0&&_0x84adc2){if(_0x6cfed1===a[_0x3e24b6(0x345)][_0x3e24b6(0x2de)]){const _0x5535c1=new b[(_0x3e24b6(0x2ec))](_0x268f2a,_0x1cfe3d),{pointGroup:_0x35e41a}=(_0x5ccaa1=_0x5535c1[_0x3e24b6(0x201)](_0x4068c0,_0x84adc2))!=null?_0x5ccaa1:{};if(_0x35e41a==null||_0x35e41a[_0x3e24b6(0x3ab)]===0x0)continue;this[_0x3e24b6(0x2a7)](_0x5c1c55,_0x35e41a,_0x25183d,_0x1a4e21);}else{if(!_0x2325a2){const {borderBoxPointGroup:_0x1e036c}=_0x15382d[_0x3e24b6(0x201)](_0x4068c0,_0x84adc2);if(_0x1e036c[_0x3e24b6(0x3ab)]===0x0)continue;this[_0x3e24b6(0x40c)](_0x5c1c55,_0x1e036c,_0x25183d,_0x1a4e21);}}}}}[_0x5851f7(0x3f7)](_0x1dc4e3,_0x195d12,_0x5318b9,_0x3b78d8,_0x4254ff){const _0x38443c=_0x5851f7,_0x1887ba=this[_0x38443c(0x3e4)](_0x195d12),{left:_0x410b96,top:_0x56dd18,height:_0x6c3bb7}=_0x1887ba,_0x78ed3c=this[_0x38443c(0x41b)](),_0x40cea9=ft/_0x78ed3c,_0x482a1e=new p['Rect'](re+a[_0x38443c(0x24c)][_0x38443c(0x416)](k),{'left':_0x410b96+_0x5318b9-_0x40cea9,'top':_0x56dd18+_0x3b78d8,'height':_0x6c3bb7,'width':dt,'fill':_0x1dc4e3||p[_0x38443c(0x3d5)](a[_0x38443c(0x369)][_0x38443c(0x43d)],0x0),'strokeWidth':_0x40cea9,'stroke':St,'evented':!0x0});this['_anchor']=_0x482a1e,this[_0x38443c(0x372)][_0x38443c(0x337)](_0x482a1e,b['TEXT_RANGE_LAYER_INDEX']);const _0x255225=new p[(_0x38443c(0x2e4))](re+a['Tools'][_0x38443c(0x416)](k),{'left':_0x410b96+_0x5318b9-_0x40cea9,'top':_0x56dd18+_0x3b78d8-oe/0x2,'height':oe,'width':oe,'fill':_0x1dc4e3||p['getColor'](a[_0x38443c(0x369)][_0x38443c(0x43d)],0x0),'strokeWidth':0x0,'stroke':_0x1dc4e3||p[_0x38443c(0x3d5)](a[_0x38443c(0x369)]['black'],0x0),'evented':!0x1});this[_0x38443c(0x30f)]=_0x255225,this[_0x38443c(0x372)][_0x38443c(0x337)](_0x255225,b['TEXT_RANGE_LAYER_INDEX']);const _0x4797b4=new ee(re+a[_0x38443c(0x24c)]['generateRandomId'](k),{'left':_0x410b96+_0x5318b9-_0x40cea9,'top':_0x56dd18+_0x3b78d8-K,'text':_0x4254ff,'color':_0x1dc4e3});this[_0x38443c(0x2db)]=_0x4797b4,this['_scene'][_0x38443c(0x337)](_0x4797b4,b[_0x38443c(0x41a)]),this[_0x38443c(0x35c)]=!0x1;}['_handleHover'](){const _0x5c0aca=_0x5851f7,_0x4c1c48=this[_0x5c0aca(0x25b)][_0x5c0aca(0x26d)][_0x5c0aca(0x259)](()=>{const _0x1a903f=_0x5c0aca;this[_0x1a903f(0x35c)]=!0x0;}),_0x2ee2fa=this['_anchor'][_0x5c0aca(0x360)][_0x5c0aca(0x259)](()=>{const _0x1b5df9=_0x5c0aca;this[_0x1b5df9(0x3f8)]&&clearTimeout(this[_0x1b5df9(0x3f8)]),this[_0x1b5df9(0x3f8)]=setTimeout(()=>{const _0x3a8729=_0x1b5df9;this[_0x3a8729(0x35c)]=!0x1;},0x7d0);});return()=>{const _0x2af610=_0x5c0aca;_0x4c1c48[_0x2af610(0x271)](),_0x2ee2fa[_0x2af610(0x271)]();};}[_0x5851f7(0x40c)](_0x308d1f,_0x3c305e,_0x1ced9f,_0x48c4ca){const _0x33abab=_0x5851f7,_0x5cc4ea=new a[(_0x33abab(0x1e6))](_0x308d1f)[_0x33abab(0x406)](0.2)[_0x33abab(0x1d9)](),_0x4ffbcd=new p[(_0x33abab(0x2ce))](ht+a[_0x33abab(0x24c)][_0x33abab(0x416)](k),{'pointsGroup':_0x3c305e,'fill':_0x5cc4ea||p[_0x33abab(0x3d5)](a['COLORS'][_0x33abab(0x43d)],0.2),'left':_0x1ced9f,'top':_0x48c4ca,'evented':!0x1,'debounceParentDirty':!0x1});this['_shapes']['push'](_0x4ffbcd),this['_scene']['addObject'](_0x4ffbcd,b['TEXT_RANGE_LAYER_INDEX']);}[_0x5851f7(0x2a7)](_0x1eef6b,_0x62ead8,_0x1fb5dd,_0x4af2bf){const _0x4c375b=_0x5851f7,_0x11dfd1=new a[(_0x4c375b(0x1e6))](_0x1eef6b)[_0x4c375b(0x406)](0.2)[_0x4c375b(0x1d9)](),_0x27faf7=new p['RegularPolygon'](ut+a[_0x4c375b(0x24c)]['generateRandomId'](k),{'pointsGroup':_0x62ead8,'fill':_0x11dfd1||p[_0x4c375b(0x3d5)](a[_0x4c375b(0x369)]['black'],0.2),'left':_0x1fb5dd,'top':_0x4af2bf,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x4c375b(0x287)][_0x4c375b(0x33a)](_0x27faf7),this['_scene']['addObject'](_0x27faf7,b[_0x4c375b(0x41a)]);}[_0x5851f7(0x3e4)](_0x4927f4){const _0x2999fc=_0x4927f4[0x0],_0x269a3c=_0x2999fc[0x0],_0x1fa01c=_0x2999fc[0x2],{x:_0x3a6b2e,y:_0x7aaa13}=_0x269a3c,{x:_0x3266e4,y:_0x26a564}=_0x1fa01c;return{'left':_0x3a6b2e,'top':_0x7aaa13,'width':_0x3266e4-_0x3a6b2e,'height':_0x26a564-_0x7aaa13};}[_0x5851f7(0x41b)](){const _0x27460a=_0x5851f7,{scaleX:_0x30bdee,scaleY:_0x249cb7}=this[_0x27460a(0x372)][_0x27460a(0x296)]();return Math[_0x27460a(0x243)](_0x30bdee,_0x249cb7);}}var It=Object[_0x5851f7(0x2c4)],vt=(_0x18246c,_0xdc5b4,_0x50feec,_0x5f2d1a)=>{const _0x580cb1=_0x5851f7;for(var _0x35e2c2=_0x5f2d1a>0x1?void 0x0:_0x5f2d1a?It(_0xdc5b4,_0x50feec):_0xdc5b4,_0x2841f7=_0x18246c[_0x580cb1(0x3ab)]-0x1,_0x479a31;_0x2841f7>=0x0;_0x2841f7--)(_0x479a31=_0x18246c[_0x2841f7])&&(_0x35e2c2=_0x479a31(_0x35e2c2)||_0x35e2c2);return _0x35e2c2;},W=(_0x3e4236,_0x4afb67)=>(_0xe76ce7,_0x247735)=>_0x4afb67(_0xe76ce7,_0x247735,_0x3e4236);let Ie=class extends a[_0x5851f7(0x2a9)]{constructor(_0x532723,_0x4137ae,_0x2921f6,_0x4d2f95,_0xe9de59){const _0x9f58c7=_0x5851f7;super(),h(this,_0x9f58c7(0x3d1),[]),h(this,'_cursors',[]),(this['_context']=_0x532723,this[_0x9f58c7(0x3fb)]=_0x4137ae,this[_0x9f58c7(0x2a0)]=_0x2921f6,this[_0x9f58c7(0x1eb)]=_0x4d2f95,this[_0x9f58c7(0x1dd)]=_0xe9de59,this['_init']());}[_0x5851f7(0x221)](){const _0x2c5d15=_0x5851f7,_0x166428=this[_0x2c5d15(0x236)]['unitId'],_0x10315f=this[_0x2c5d15(0x3fb)];this[_0x2c5d15(0x21c)](d[_0x2c5d15(0x367)]([this[_0x2c5d15(0x2a0)][_0x2c5d15(0x33f)](_0x166428),this[_0x2c5d15(0x1dd)][_0x2c5d15(0x433)]])[_0x2c5d15(0x3bf)]($[_0x2c5d15(0x2fb)](([_0x1bc746,_0xba890c])=>({'skeleton':_0x10315f[_0x2c5d15(0x312)](),'cursors':[..._0x1bc746[_0x2c5d15(0x2e7)]()][_0x2c5d15(0x1db)](_0x279a02=>({..._0x279a02,'color':this[_0x2c5d15(0x1dd)]['getColorFromTheme'](_0x279a02['color'])}))})))['subscribe'](_0x5bf7e5=>{const _0x216bb3=_0x2c5d15;if(this[_0x216bb3(0x42b)](),_0x5bf7e5){const {skeleton:_0xa23068,cursors:_0x5552c8}=_0x5bf7e5;this[_0x216bb3(0x202)](_0xa23068,_0x5552c8);}})),this[_0x2c5d15(0x2ab)](),this[_0x2c5d15(0x31e)]();}[_0x5851f7(0x202)](_0xcb40dd,_0xf3958){const _0xd8aeea=_0x5851f7,{scene:_0x541e39,mainComponent:_0x3d6e8b}=this['_context'],_0x332c1e=_0xf3958[_0xd8aeea(0x2fb)](_0x13e992=>new De(_0x13e992,_0x541e39,_0xcb40dd,_0x3d6e8b));this[_0xd8aeea(0x3d1)]=_0x332c1e,this[_0xd8aeea(0x1ee)]=_0xf3958;}[_0x5851f7(0x2c9)](){const _0x705fa1=_0x5851f7;this[_0x705fa1(0x42b)]();const {scene:_0xfa8083,mainComponent:_0x539a3d}=this[_0x705fa1(0x236)],_0x27402e=this[_0x705fa1(0x3fb)][_0x705fa1(0x312)](),_0x3997e8=this['_cursors'][_0x705fa1(0x2fb)](_0x308c1c=>new De(_0x308c1c,_0xfa8083,_0x27402e,_0x539a3d));this[_0x705fa1(0x3d1)]=_0x3997e8;}[_0x5851f7(0x42b)](){const _0x3bf5aa=_0x5851f7;this['_cursorShapes'][_0x3bf5aa(0x2b0)](_0x17318e=>_0x17318e[_0x3bf5aa(0x28f)]()),this['_cursorShapes']=[];}[_0x5851f7(0x31e)](){const _0xc45505=_0x5851f7,_0xbbdecf=[b[_0xc45505(0x1c3)]['id']];this[_0xc45505(0x21c)](this[_0xc45505(0x1eb)][_0xc45505(0x364)](_0x52e5bd=>{const _0x5e6854=_0xc45505;_0xbbdecf[_0x5e6854(0x2ca)](_0x52e5bd['id'])&&_0x52e5bd[_0x5e6854(0x25d)]['unitId']===this[_0x5e6854(0x236)][_0x5e6854(0x395)]&&this[_0x5e6854(0x2c9)]();}));}[_0x5851f7(0x2ab)](){const _0x13fc0e=_0x5851f7;this[_0x13fc0e(0x21c)](a['fromEventSubject'](this['_context'][_0x13fc0e(0x251)][_0x13fc0e(0x28a)])['pipe']($[_0x13fc0e(0x332)](_0x281911=>_0x281911['type']===p[_0x13fc0e(0x414)][_0x13fc0e(0x41e)]),$[_0x13fc0e(0x2be)](0x10))['subscribe'](()=>{const _0x3bc03d=_0x13fc0e;this[_0x3bc03d(0x2c9)]();}));}};Ie=vt([W(0x1,a['Inject'](Y[_0x5851f7(0x2fa)])),W(0x2,a[_0x5851f7(0x298)](x)),W(0x3,a[_0x5851f7(0x1c0)]),W(0x4,a[_0x5851f7(0x298)](a[_0x5851f7(0x331)]))],Ie);const gt=0x1,mt=1.5;class Ae extends p[_0x5851f7(0x342)]{constructor(_0x5b093f,_0x4a5acf){const _0x1c3d68=_0x5851f7;super(_0x5b093f,_0x4a5acf),h(this,_0x1c3d68(0x29b)),h(this,'_hovered',!0x1),h(this,_0x1c3d68(0x426)),h(this,_0x1c3d68(0x384),''),h(this,_0x1c3d68(0x3d2),_0x1c3d68(0x366)),h(this,_0x1c3d68(0x39f)),(_0x4a5acf&&this['setShapeProps'](_0x4a5acf),this['onPointerEnter$'][_0x1c3d68(0x259)](()=>this['setShapeProps']({'hovered':!0x0})),this['onPointerLeave$']['subscribeEvent'](()=>this[_0x1c3d68(0x2b5)]({'hovered':!0x1})));}[_0x5851f7(0x2b5)](_0x310cfb){const _0x30f34a=_0x5851f7;var _0x54e798,_0x306569,_0x52b20d,_0x2e4dbf,_0x464926,_0x1af6c6;this[_0x30f34a(0x29b)]=(_0x54e798=_0x310cfb[_0x30f34a(0x292)])!=null?_0x54e798:this['_color'],this[_0x30f34a(0x2d1)]=(_0x306569=_0x310cfb[_0x30f34a(0x1fe)])!=null?_0x306569:this['_hovered'],this['_range']=(_0x52b20d=_0x310cfb[_0x30f34a(0x2a4)])!=null?_0x52b20d:this['_range'],this[_0x30f34a(0x384)]=(_0x2e4dbf=_0x310cfb[_0x30f34a(0x2f9)])!=null?_0x2e4dbf:this[_0x30f34a(0x384)],this[_0x30f34a(0x3d2)]=(_0x464926=_0x310cfb['labelPosition'])!=null?_0x464926:this[_0x30f34a(0x3d2)],this['_backgroundColor']=(_0x1af6c6=_0x310cfb[_0x30f34a(0x2b3)])!=null?_0x1af6c6:this[_0x30f34a(0x39f)],this[_0x30f34a(0x2b6)]({'width':_0x310cfb[_0x30f34a(0x42e)],'height':_0x310cfb[_0x30f34a(0x39c)]});}['onMouseMove'](_0x317a74){const _0x30d6c1=_0x5851f7,{row:_0x2abf26,column:_0x2f8660}=_0x317a74;if(_0x2abf26>=this[_0x30d6c1(0x426)][_0x30d6c1(0x1f6)]&&_0x2abf26<=this[_0x30d6c1(0x426)][_0x30d6c1(0x30c)]&&_0x2f8660>=this[_0x30d6c1(0x426)][_0x30d6c1(0x30b)]&&_0x2f8660<=this[_0x30d6c1(0x426)][_0x30d6c1(0x43f)]){this['setShapeProps']({'hovered':!0x0});return;}this[_0x30d6c1(0x2b5)]({'hovered':!0x1});}[_0x5851f7(0x3f2)](_0x1f017d){return!0x1;}[_0x5851f7(0x3c0)](_0x1380e6){const _0x3d9764=_0x5851f7;p[_0x3d9764(0x2e4)][_0x3d9764(0x272)](_0x1380e6,{'width':this[_0x3d9764(0x42e)],'height':this[_0x3d9764(0x39c)],'strokeWidth':mt,'stroke':this[_0x3d9764(0x29b)],'evented':!0x1,'fill':this[_0x3d9764(0x39f)]}),this['_hovered']&&(_0x1380e6[_0x3d9764(0x27b)](),_0x1380e6['transform'](0x1,0x0,0x0,0x1,this[_0x3d9764(0x42e)],this['_labelPosition']===_0x3d9764(0x268)?0x0:-0x14),ee['drawWith'](_0x1380e6,{'text':this[_0x3d9764(0x384)],'color':this[_0x3d9764(0x29b)]}),_0x1380e6[_0x3d9764(0x285)]());}}var Ct=Object[_0x5851f7(0x2c4)],pt=(_0x771ea7,_0x540715,_0x2c5d49,_0x244acc)=>{const _0xb85082=_0x5851f7;for(var _0x1d71e4=_0x244acc>0x1?void 0x0:_0x244acc?Ct(_0x540715,_0x2c5d49):_0x540715,_0x577a04=_0x771ea7[_0xb85082(0x3ab)]-0x1,_0x220991;_0x577a04>=0x0;_0x577a04--)(_0x220991=_0x771ea7[_0x577a04])&&(_0x1d71e4=_0x220991(_0x1d71e4)||_0x1d71e4);return _0x1d71e4;},ae=(_0xb88583,_0x1b72ae)=>(_0x372e86,_0x3efd75)=>_0x1b72ae(_0x372e86,_0x3efd75,_0xb88583);const bt=0x1389;let ve=class extends a[_0x5851f7(0x2a9)]{constructor(_0x304193,_0x17e427,_0x1350e2,_0x1cdc0a){const _0x2cea9c=_0x5851f7;super(),h(this,_0x2cea9c(0x1ee),new Set()),h(this,_0x2cea9c(0x1dc),null),(this[_0x2cea9c(0x236)]=_0x304193,this[_0x2cea9c(0x289)]=_0x17e427,this[_0x2cea9c(0x2a0)]=_0x1350e2,this[_0x2cea9c(0x1dd)]=_0x1cdc0a,this[_0x2cea9c(0x221)]());}[_0x5851f7(0x221)](){const _0x3ea306=_0x5851f7;this[_0x3ea306(0x289)][_0x3ea306(0x267)][_0x3ea306(0x3bf)]($['takeUntil'](this[_0x3ea306(0x2f1)]),$[_0x3ea306(0x3b1)](_0x275d1e=>{const _0x5ee506=_0x3ea306;if(_0x275d1e){const _0x565c80=_0x275d1e[_0x5ee506(0x2b7)];return d['combineLatest'](this[_0x5ee506(0x2a0)][_0x5ee506(0x33f)](this[_0x5ee506(0x236)][_0x5ee506(0x395)]),this[_0x5ee506(0x1dd)][_0x5ee506(0x433)])[_0x5ee506(0x3bf)]($[_0x5ee506(0x2fb)](([_0x2c6a54,_0x441e74])=>{const _0x17284d=new Map();return _0x2c6a54['forEach']((_0x1f8f59,_0x555f1d)=>{const _0xf9c619=_0x5085;if(_0x1f8f59[_0xf9c619(0x393)]===_0x565c80){const _0x17a6bb={..._0x1f8f59};_0x17a6bb[_0xf9c619(0x292)]=this[_0xf9c619(0x1dd)]['getColorFromTheme'](_0x1f8f59[_0xf9c619(0x292)]),_0x17284d[_0xf9c619(0x247)](_0x555f1d,_0x17a6bb);}}),{'skeleton':_0x275d1e,'cursors':_0x17284d};}));}return d['of']({'skeleton':null,'cursors':new Map()});}))[_0x3ea306(0x1e4)](({skeleton:_0x50d86a,cursors:_0x362e1d})=>{const _0x58a03f=_0x3ea306;this[_0x58a03f(0x42b)](),_0x50d86a&&this[_0x58a03f(0x202)](_0x50d86a,_0x362e1d);}),this[_0x3ea306(0x289)][_0x3ea306(0x267)][_0x3ea306(0x1e4)](_0x8c2096=>{const _0x5c498f=_0x3ea306;if(_0x8c2096==null)return;const {skeleton:_0x5f0fbc}=_0x8c2096,{scene:_0x42b6d7}=this[_0x5c498f(0x236)];_0x42b6d7['onPointerMove$'][_0x5c498f(0x259)](a[_0x5c498f(0x418)](_0x591dc2=>{const _0xb0e45=_0x5c498f;var _0x5f1512,_0x579bb4;const {offsetX:_0x5a5993,offsetY:_0x3fcaa5}=_0x591dc2,{x:_0x2fc87d,y:_0x3d8185}=_0x42b6d7[_0xb0e45(0x26f)](p[_0xb0e45(0x25f)][_0xb0e45(0x3a3)]([_0x5a5993,_0x3fcaa5])),{scaleX:_0x480fc4,scaleY:_0x31c79f}=_0x42b6d7[_0xb0e45(0x296)](),_0x3e003c=_0x42b6d7['getViewport'](p[_0xb0e45(0x28e)]['VIEW_MAIN']),_0x38c6f6=_0x42b6d7[_0xb0e45(0x36b)](p[_0xb0e45(0x25f)][_0xb0e45(0x3a3)]([_0x2fc87d,_0x3d8185]),_0x3e003c),_0x60caf4=_0x5f0fbc['getCellPositionByOffset'](_0x5a5993,_0x3fcaa5,_0x480fc4,_0x31c79f,_0x38c6f6);((_0x5f1512=this[_0xb0e45(0x1dc)])==null?void 0x0:_0x5f1512[_0xb0e45(0x1c8)])===_0x60caf4[_0xb0e45(0x1c8)]&&((_0x579bb4=this[_0xb0e45(0x1dc)])==null?void 0x0:_0x579bb4[_0xb0e45(0x1c6)])===_0x60caf4['row']||this[_0xb0e45(0x1ee)][_0xb0e45(0x2b0)](_0x1a2760=>{_0x1a2760['onMouseMove'](_0x60caf4);});},0x64));});}[_0x5851f7(0x202)](_0x44ca6d,_0x547b10){const _0x29f0f6=_0x5851f7;var _0x55904f;const _0x37acc4=(_0x55904f=this[_0x29f0f6(0x289)][_0x29f0f6(0x3a6)]())==null?void 0x0:_0x55904f['skeleton'];if(!_0x37acc4)return;const _0x1a91d2=this['_getSheetObject']();if(!_0x1a91d2)return;this['_cursors']['forEach'](_0x118ffb=>{const _0x1ae34c=_0x29f0f6;_0x118ffb[_0x1ae34c(0x208)]();});const {scene:_0x10c704}=_0x1a91d2,_0x44678a=Et(Array[_0x29f0f6(0x1d0)](_0x547b10[_0x29f0f6(0x2e7)]()))['map'](_0x99ac57=>{const _0x19258c=_0x29f0f6,{color:_0x5b4182,range:_0x276a83,name:_0x50d6c2,selection:_0x487187,sheetID:_0x126265}=_0x99ac57,{startColumn:_0x19e0cb,startRow:_0x246c28,endColumn:_0x4d38aa,endRow:_0xd54135}=_0x276a83,_0x537600=X[_0x19258c(0x262)](_0x246c28,_0x19e0cb,_0x10c704,_0x37acc4),_0x251566=X[_0x19258c(0x262)](_0xd54135,_0x4d38aa,_0x10c704,_0x37acc4),{columnHeaderHeightAndMarginTop:_0x3a0a29}=_0x37acc4,{startX:_0x3858ff,startY:_0x312e2b}=_0x537600,{endX:_0x296242,endY:_0x102ea1}=_0x251566,_0x2fdd0f=_0x296242-_0x3858ff,_0x3f30cf=_0x102ea1-_0x312e2b,_0x5a8321={'labelPosition':_0x312e2b-_0x3a0a29>=K?_0x19258c(0x366):'bottom','sheetID':_0x126265,'range':_0x276a83,'color':_0x5b4182,'name':_0x50d6c2,'selection':_0x487187,'left':_0x3858ff,'top':_0x312e2b,'width':_0x2fdd0f,'height':_0x3f30cf,'evented':!0x1,'zIndex':bt};return new Ae(_0x50d6c2,_0x5a8321);});_0x10c704['addObjects'](_0x44678a,gt),this[_0x29f0f6(0x1ee)]=new Set(_0x44678a);}[_0x5851f7(0x42b)](){const _0x19813c=_0x5851f7;var _0x2e7f43;(_0x2e7f43=this[_0x19813c(0x1ee)])==null||_0x2e7f43[_0x19813c(0x2b0)](_0x551350=>_0x551350['dispose']());}[_0x5851f7(0x258)](){const _0x221aee=_0x5851f7;return X[_0x221aee(0x24d)](this[_0x221aee(0x236)]['unit'],this[_0x221aee(0x236)]);}};ve=pt([ae(0x1,a[_0x5851f7(0x298)](X[_0x5851f7(0x34a)])),ae(0x2,a['Inject'](x)),ae(0x3,a['Inject'](a['ThemeService']))],ve);function Et(_0x588bda){const _0x510c43=_0x5851f7,_0x10cd72=new Map();return _0x588bda[_0x510c43(0x2b0)](_0x5d549c=>{const _0x1ec12a=_0x510c43;if(_0x10cd72['has'](_0x5d549c[_0x1ec12a(0x21e)])){const _0x323934=_0x10cd72[_0x1ec12a(0x1f5)](_0x5d549c[_0x1ec12a(0x21e)]);_0x323934[_0x1ec12a(0x2f9)]+=',\x20'+_0x5d549c[_0x1ec12a(0x2f9)];}else _0x10cd72[_0x1ec12a(0x247)](_0x5d549c[_0x1ec12a(0x21e)],_0x5d549c);}),Array[_0x510c43(0x1d0)](_0x10cd72[_0x510c43(0x2e7)]());}var E=function(){const _0xe59f3=_0x5851f7;return E=Object[_0xe59f3(0x257)]||function(_0x1c525b){const _0x330201=_0xe59f3;for(var _0x2ef80f,_0x26d354=0x1,_0x3c14a9=arguments[_0x330201(0x3ab)];_0x26d354<_0x3c14a9;_0x26d354++){_0x2ef80f=arguments[_0x26d354];for(var _0x265084 in _0x2ef80f)Object[_0x330201(0x22b)][_0x330201(0x37a)][_0x330201(0x1ca)](_0x2ef80f,_0x265084)&&(_0x1c525b[_0x265084]=_0x2ef80f[_0x265084]);}return _0x1c525b;},E[_0xe59f3(0x2f7)](this,arguments);},Tt=function(_0x183091,_0x4b3f67){const _0x344990=_0x5851f7;var _0x14048a={};for(var _0x31c24f in _0x183091)Object[_0x344990(0x22b)]['hasOwnProperty'][_0x344990(0x1ca)](_0x183091,_0x31c24f)&&_0x4b3f67[_0x344990(0x31f)](_0x31c24f)<0x0&&(_0x14048a[_0x31c24f]=_0x183091[_0x31c24f]);if(_0x183091!=null&&typeof Object['getOwnPropertySymbols']=='function'){for(var _0x27b7bc=0x0,_0x31c24f=Object['getOwnPropertySymbols'](_0x183091);_0x27b7bc<_0x31c24f[_0x344990(0x3ab)];_0x27b7bc++)_0x4b3f67[_0x344990(0x31f)](_0x31c24f[_0x27b7bc])<0x0&&Object[_0x344990(0x22b)]['propertyIsEnumerable']['call'](_0x183091,_0x31c24f[_0x27b7bc])&&(_0x14048a[_0x31c24f[_0x27b7bc]]=_0x183091[_0x31c24f[_0x27b7bc]]);}return _0x14048a;},pe=M[_0x5851f7(0x1c9)](function(_0x1adcae,_0x546319){const _0x1421b5=_0x5851f7;var _0x3209d3=_0x1adcae['icon'],_0x4a512a=_0x1adcae['id'],_0x447da6=_0x1adcae[_0x1421b5(0x1fb)],_0x59d42a=_0x1adcae[_0x1421b5(0x3d9)],_0x2861b4=Tt(_0x1adcae,[_0x1421b5(0x2da),'id',_0x1421b5(0x1fb),'extend']),_0x4623f5=_0x1421b5(0x226)[_0x1421b5(0x29f)](_0x4a512a,'\x20')['concat'](_0x447da6||'')[_0x1421b5(0x27f)](),_0x609bb5=M[_0x1421b5(0x2f3)]('_'[_0x1421b5(0x29f)](Dt()));return we(_0x3209d3,''[_0x1421b5(0x29f)](_0x4a512a),{'defIds':_0x3209d3[_0x1421b5(0x434)],'idSuffix':_0x609bb5[_0x1421b5(0x2a2)]},E({'ref':_0x546319,'className':_0x4623f5},_0x2861b4),_0x59d42a);});function we(_0x4235b0,_0x4b0a76,_0x5f35ea,_0x528794,_0x15fb08){const _0xdd2454=_0x5851f7;return M[_0xdd2454(0x1e8)](_0x4235b0['tag'],E(E({'key':_0x4b0a76},Ot(_0x4235b0,_0x5f35ea,_0x15fb08)),_0x528794),(Rt(_0x4235b0,_0x5f35ea)['children']||[])[_0xdd2454(0x2fb)](function(_0x31900b,_0x21b84c){const _0x603190=_0xdd2454;return we(_0x31900b,''[_0x603190(0x29f)](_0x4b0a76,'-')['concat'](_0x4235b0[_0x603190(0x400)],'-')[_0x603190(0x29f)](_0x21b84c),_0x5f35ea,void 0x0,_0x15fb08);}));}function Ot(_0x1826b9,_0x5deea2,_0x1b3f2a){const _0x411226=_0x5851f7;var _0x3956e9=E({},_0x1826b9['attrs']);_0x1b3f2a!=null&&_0x1b3f2a[_0x411226(0x241)]&&_0x3956e9[_0x411226(0x206)]===_0x411226(0x241)&&(_0x3956e9[_0x411226(0x206)]=_0x1b3f2a[_0x411226(0x241)]),_0x1826b9[_0x411226(0x400)]==='mask'&&_0x3956e9['id']&&(_0x3956e9['id']=_0x3956e9['id']+_0x5deea2[_0x411226(0x261)]),Object[_0x411226(0x2bc)](_0x3956e9)[_0x411226(0x2b0)](function(_0xe8c4bf){const _0x8e5bf2=_0x411226;var _0x4bc441=_0xe8c4bf[0x0],_0x40688e=_0xe8c4bf[0x1];_0x4bc441===_0x8e5bf2(0x1d2)&&typeof _0x40688e==_0x8e5bf2(0x33d)&&(_0x3956e9[_0x4bc441]=_0x40688e['replace'](/url\(#(.*)\)/,_0x8e5bf2(0x2e8)['concat'](_0x5deea2[_0x8e5bf2(0x261)],')')));});var _0x365e06=_0x5deea2[_0x411226(0x434)];return!_0x365e06||_0x365e06[_0x411226(0x3ab)]===0x0||(_0x1826b9[_0x411226(0x400)]===_0x411226(0x1d1)&&_0x3956e9['xlink:href']&&(_0x3956e9['xlink:href']=_0x3956e9['xlink:href']+_0x5deea2['idSuffix']),Object['entries'](_0x3956e9)[_0x411226(0x2b0)](function(_0x5e59ce){const _0x5011b3=_0x411226;var _0x3567e8=_0x5e59ce[0x0],_0x129595=_0x5e59ce[0x1];typeof _0x129595==_0x5011b3(0x33d)&&(_0x3956e9[_0x3567e8]=_0x129595[_0x5011b3(0x2d8)](/url\(#(.*)\)/,_0x5011b3(0x2e8)['concat'](_0x5deea2[_0x5011b3(0x261)],')')));})),_0x3956e9;}function Rt(_0x538445,_0x4de269){const _0x20d7c4=_0x5851f7;var _0x3803a6,_0x327cdd=_0x4de269['defIds'];return!_0x327cdd||_0x327cdd[_0x20d7c4(0x3ab)]===0x0?_0x538445:_0x538445['tag']==='defs'&&(!((_0x3803a6=_0x538445[_0x20d7c4(0x3cc)])===null||_0x3803a6===void 0x0)&&_0x3803a6[_0x20d7c4(0x3ab)])?E(E({},_0x538445),{'children':_0x538445[_0x20d7c4(0x3cc)][_0x20d7c4(0x2fb)](function(_0x364f63){const _0x3449f6=_0x20d7c4;return typeof _0x364f63['attrs']['id']==_0x3449f6(0x33d)&&_0x327cdd&&_0x327cdd[_0x3449f6(0x31f)](_0x364f63[_0x3449f6(0x363)]['id'])>-0x1?E(E({},_0x364f63),{'attrs':E(E({},_0x364f63['attrs']),{'id':_0x364f63['attrs']['id']+_0x4de269[_0x3449f6(0x261)]})}):_0x364f63;})}):_0x538445;}function Dt(){const _0x2c97b5=_0x5851f7;return Math[_0x2c97b5(0x428)]()['toString'](0x24)[_0x2c97b5(0x375)](0x2,0x8);}pe[_0x5851f7(0x324)]=_0x5851f7(0x200);var Ut={'tag':_0x5851f7(0x1cf),'attrs':{'fill':_0x5851f7(0x246),'viewBox':_0x5851f7(0x2c7),'width':_0x5851f7(0x3db),'height':_0x5851f7(0x3db)},'children':[{'tag':'g','attrs':{'clipPath':_0x5851f7(0x391)},'children':[{'tag':_0x5851f7(0x232),'attrs':{'stroke':_0x5851f7(0x21b),'d':_0x5851f7(0x260),'strokeLinecap':'round','strokeLinejoin':_0x5851f7(0x21f),'strokeWidth':1.2}}]},{'tag':_0x5851f7(0x209),'attrs':{},'children':[{'tag':_0x5851f7(0x3ca),'attrs':{'id':'off-line-single_clip0_910_343'},'children':[{'tag':_0x5851f7(0x232),'attrs':{'fill':_0x5851f7(0x3e1),'d':'M0\x200H16V16H0z'}}]}]}],'defIds':[_0x5851f7(0x273)]},ye=M[_0x5851f7(0x1c9)](function(_0x4b6144,_0x3e7d03){const _0x676f0b=_0x5851f7;return M[_0x676f0b(0x1e8)](pe,Object[_0x676f0b(0x257)]({},_0x4b6144,{'id':_0x676f0b(0x3e6),'ref':_0x3e7d03,'icon':Ut}));});ye[_0x5851f7(0x324)]='OffLineSingle';var Nt={'tag':'svg','attrs':{'fill':_0x5851f7(0x246),'viewBox':'0\x200\x2017\x2016','width':'1em','height':'1em'},'children':[{'tag':'g','attrs':{'clipPath':_0x5851f7(0x350)},'children':[{'tag':_0x5851f7(0x232),'attrs':{'stroke':_0x5851f7(0x21b),'d':'M4.5865\x2011.6499C3.36983\x2011.6499\x201.6665\x2011.1024\x201.6665\x208.9124C1.6665\x206.3574\x204.2215\x205.8099\x204.9515\x205.8099C5.3165\x204.5324\x206.0465\x202.5249\x208.9665\x202.5249C11.5215\x202.5249\x2012.6165\x203.9849\x2012.9815\x205.2624C12.9815\x205.2624\x2016.2665\x205.6274\x2016.2665\x208.7299C16.2665\x2010.9199\x2014.8065\x2011.6499\x2013.3465\x2011.6499M6.7767\x2011.6497L8.9667\x2013.4747L11.8867\x209.82466','strokeLinecap':'round','strokeLinejoin':'round','strokeWidth':1.2}}]},{'tag':_0x5851f7(0x209),'attrs':{},'children':[{'tag':_0x5851f7(0x3ca),'attrs':{'id':_0x5851f7(0x30d)},'children':[{'tag':_0x5851f7(0x232),'attrs':{'fill':'#fff','d':_0x5851f7(0x3dd),'transform':_0x5851f7(0x3ad)}}]}]}],'defIds':[_0x5851f7(0x30d)]},$e=M[_0x5851f7(0x1c9)](function(_0x5019ce,_0x5df74d){const _0x352104=_0x5851f7;return M[_0x352104(0x1e8)](pe,Object[_0x352104(0x257)]({},_0x5019ce,{'id':'on-line-single','ref':_0x5df74d,'icon':Nt}));});$e[_0x5851f7(0x324)]=_0x5851f7(0x3a2);function Mt(_0x48a632){const _0x429023=_0x5851f7;switch(_0x48a632){case u[_0x429023(0x3ea)][_0x429023(0x35e)]:return _0x429023(0x297);case u[_0x429023(0x3ea)][_0x429023(0x365)]:return _0x429023(0x22f);case u[_0x429023(0x3ea)]['FETCH_MISS']:return'collabStatus.fetchMiss';case u[_0x429023(0x3ea)]['NOT_COLLAB']:return _0x429023(0x2bb);case u[_0x429023(0x3ea)][_0x429023(0x2e0)]:case u[_0x429023(0x3ea)][_0x429023(0x238)]:return _0x429023(0x227);case u[_0x429023(0x3ea)][_0x429023(0x40e)]:case u[_0x429023(0x3ea)][_0x429023(0x279)]:return'collabStatus.synced';}}function xe(_0x17a08c){const _0x8d2be1=_0x5851f7,{status$:_0x46396e}=_0x17a08c,_0xd6121=T['useObservable'](_0x46396e,u[_0x8d2be1(0x3ea)]['NOT_COLLAB']),_0x1fb8e0=T[_0x8d2be1(0x2c0)](a[_0x8d2be1(0x229)]),_0x20b55f=T['useDependency'](u[_0x8d2be1(0x306)]),_0x1c0af4=_0xd6121!==u[_0x8d2be1(0x3ea)][_0x8d2be1(0x35e)],_0x30adc2=_0x1fb8e0['t'](Mt(_0xd6121)),_0x49becc=_0x1c0af4?P[_0x8d2be1(0x417)]($e,{}):P['jsx'](ye,{}),_0x4ae26a=M[_0x8d2be1(0x30e)](()=>{const _0x5f3c3d=_0x8d2be1;_0x1c0af4||_0x20b55f[_0x5f3c3d(0x37b)]();},[_0x1c0af4,_0x20b55f]);function _0x4f2f63(){const _0x410d8d=_0x8d2be1;return P[_0x410d8d(0x235)](_0x410d8d(0x231),{'className':_0x410d8d(0x38b),'onClick':_0x4ae26a,'children':[P[_0x410d8d(0x417)]('div',{'className':D['clsx']('univer-flex\x20univer-mr-2\x20univer-text-xl',_0x1c0af4?_0x410d8d(0x3ee):_0x410d8d(0x343)),'children':_0x49becc}),P[_0x410d8d(0x417)](_0x410d8d(0x231),{'className':_0x410d8d(0x383),'children':_0x30adc2})]});}return _0x1c0af4?_0x4f2f63():P[_0x8d2be1(0x417)](D[_0x8d2be1(0x1c1)],{'title':_0x1fb8e0['t'](_0x8d2be1(0x37d)),'children':_0x4f2f63()});}var Lt=Object[_0x5851f7(0x2c4)],Pt=(_0x18dde3,_0x329658,_0x462bd2,_0x1e919e)=>{for(var _0x28f239=_0x1e919e>0x1?void 0x0:_0x1e919e?Lt(_0x329658,_0x462bd2):_0x329658,_0x4ba5be=_0x18dde3['length']-0x1,_0x35c589;_0x4ba5be>=0x0;_0x4ba5be--)(_0x35c589=_0x18dde3[_0x4ba5be])&&(_0x28f239=_0x35c589(_0x28f239)||_0x28f239);return _0x28f239;},V=(_0x353645,_0x574850)=>(_0x445823,_0x34d6b4)=>_0x574850(_0x445823,_0x34d6b4,_0x353645);exports[_0x5851f7(0x23b)]=class extends a[_0x5851f7(0x31b)]{constructor(_0x355147,_0x5aa85b,_0x334587,_0x9a2266){const _0x4d8da1=_0x5851f7;super(),h(this,_0x4d8da1(0x2af),new d['BehaviorSubject'](u[_0x4d8da1(0x3ea)]['NOT_COLLAB'])),(this[_0x4d8da1(0x2d2)]=_0x355147,this[_0x4d8da1(0x2ed)]=_0x5aa85b,this['_collaborationController']=_0x334587,this['_uiPartsService']=_0x9a2266,this[_0x4d8da1(0x3a1)](),this['_initStatusListener']());}['_initStatusListener'](){const _0x387926=_0x5851f7;this['disposeWithMe'](this[_0x387926(0x2d2)][_0x387926(0x266)][_0x387926(0x3bf)](d[_0x387926(0x3b1)](()=>{const _0x493456=_0x387926,_0x271366=this[_0x493456(0x2d2)][_0x493456(0x390)]();return _0x271366?this[_0x493456(0x3dc)]['getCollabEntity$'](_0x271366['getUnitId']()):d['of'](null);}),d[_0x387926(0x3b1)](_0x4b88be=>_0x4b88be?_0x4b88be['status$']:d['of'](u[_0x387926(0x3ea)][_0x387926(0x2dc)])))[_0x387926(0x1e4)](_0x2bd987=>{const _0x59f944=_0x387926;this[_0x59f944(0x2af)]['next'](_0x2bd987);}));}[_0x5851f7(0x3a1)](){const _0x1e5170=_0x5851f7;this[_0x1e5170(0x21c)](this['_uiPartsService'][_0x1e5170(0x27a)](T['BuiltInUIPart'][_0x1e5170(0x419)],()=>T[_0x1e5170(0x1f0)](At({'status$':this[_0x1e5170(0x2af)]['asObservable']()}),this[_0x1e5170(0x2ed)])));}},exports['DesktopCollaborationStatusDisplayController']=Pt([V(0x0,a['IUniverInstanceService']),V(0x1,a[_0x5851f7(0x298)](a[_0x5851f7(0x3d3)])),V(0x2,a[_0x5851f7(0x298)](u[_0x5851f7(0x3c2)])),V(0x3,T[_0x5851f7(0x338)])],exports[_0x5851f7(0x23b)]);function At(_0x3cf9f4){const {status$:_0x5f3855}=_0x3cf9f4;return function(){const _0x394a11=_0x5085;return P[_0x394a11(0x417)](xe,{'status$':_0x5f3855});};}var wt=Object[_0x5851f7(0x2c4)],yt=(_0x2736b7,_0x3d522a,_0x556627,_0x29a192)=>{const _0x818f1d=_0x5851f7;for(var _0x46d424=_0x29a192>0x1?void 0x0:_0x29a192?wt(_0x3d522a,_0x556627):_0x3d522a,_0x37d607=_0x2736b7[_0x818f1d(0x3ab)]-0x1,_0x3ca0c2;_0x37d607>=0x0;_0x37d607--)(_0x3ca0c2=_0x2736b7[_0x37d607])&&(_0x46d424=_0x3ca0c2(_0x46d424)||_0x46d424);return _0x46d424;},y=(_0x8df44b,_0x1950e7)=>(_0x304eeb,_0x89a495)=>_0x1950e7(_0x304eeb,_0x89a495,_0x8df44b);let q=class extends a[_0x5851f7(0x31b)]{constructor(_0x22bfc6,_0x36c960,_0x40b922,_0x5938d2,_0x497e59,_0x20e2f4){const _0x463f28=_0x5851f7;super(),this['_beforeCloseService']=_0x22bfc6,this[_0x463f28(0x2d0)]=_0x36c960,this[_0x463f28(0x370)]=_0x40b922,this[_0x463f28(0x2f6)]=_0x5938d2,this[_0x463f28(0x34d)]=_0x497e59,this[_0x463f28(0x220)]=_0x20e2f4,this[_0x463f28(0x23d)](),this[_0x463f28(0x424)]();}[_0x5851f7(0x23d)](){const _0x2abfe1=_0x5851f7;this[_0x2abfe1(0x21c)](this['_beforeCloseService'][_0x2abfe1(0x2d4)](()=>{const _0x15b6e2=_0x2abfe1;if(this['_localCacheService']['saveTaskMap'][_0x15b6e2(0x3ac)])return this[_0x15b6e2(0x220)]['t'](_0x15b6e2(0x36f));}));}[_0x5851f7(0x424)](){const _0x375fcd=_0x5851f7;this['disposeWithMe'](this[_0x375fcd(0x370)][_0x375fcd(0x3f5)][_0x375fcd(0x1e4)](_0x28404c=>{const _0x4046cd=_0x375fcd;_0x28404c['id']===u[_0x4046cd(0x3eb)][_0x4046cd(0x40f)]&&this['_messageService'][_0x4046cd(0x1f3)]({'type':D[_0x4046cd(0x1e7)][_0x4046cd(0x24a)],'content':this[_0x4046cd(0x220)]['t'](_0x4046cd(0x348))}),_0x28404c['id']===u[_0x4046cd(0x3eb)][_0x4046cd(0x412)]&&this[_0x4046cd(0x2f6)][_0x4046cd(0x1f3)]({'type':D['MessageType']['Warning'],'content':this[_0x4046cd(0x220)]['t'](_0x4046cd(0x420))}),_0x28404c['id']===u[_0x4046cd(0x3eb)]['PERMISSION_DENIED']&&this[_0x4046cd(0x34d)][_0x4046cd(0x1f3)]({'title':this[_0x4046cd(0x220)]['t'](_0x4046cd(0x3cf)),'content':this[_0x4046cd(0x220)]['t'](_0x4046cd(0x409)),'type':_0x4046cd(0x31c),'duration':0x0}),_0x28404c['id']===u['CollaborationUIEventId'][_0x4046cd(0x365)]&&this['_messageService'][_0x4046cd(0x1f3)]({'type':D[_0x4046cd(0x1e7)][_0x4046cd(0x3e3)],'content':this['_localeService']['t']('collaboration.closeRoom')+'('+_0x28404c['data']+')'}),_0x28404c['id']===u[_0x4046cd(0x3eb)]['JOIN_ROOM_FAILED']&&this[_0x4046cd(0x2f6)]['show']({'type':D[_0x4046cd(0x1e7)][_0x4046cd(0x24a)],'content':this[_0x4046cd(0x220)]['t'](_0x28404c[_0x4046cd(0x282)]||'')}),_0x28404c['id']===u[_0x4046cd(0x3eb)][_0x4046cd(0x20f)]&&this[_0x4046cd(0x2f6)][_0x4046cd(0x1f3)]({'type':D[_0x4046cd(0x1e7)]['Warning'],'content':this[_0x4046cd(0x220)]['t'](_0x4046cd(0x3ed))}),_0x28404c['id']===u['CollaborationUIEventId'][_0x4046cd(0x248)]&&this[_0x4046cd(0x2f6)][_0x4046cd(0x1f3)]({'type':D['MessageType']['Error'],'content':this[_0x4046cd(0x220)]['t'](_0x4046cd(0x294))}),_0x28404c['id']===u[_0x4046cd(0x3eb)][_0x4046cd(0x358)]&&this['_messageService'][_0x4046cd(0x1f3)]({'type':D[_0x4046cd(0x1e7)][_0x4046cd(0x3e3)],'content':this[_0x4046cd(0x220)]['t'](_0x4046cd(0x389))});}));}};q=yt([y(0x0,T[_0x5851f7(0x335)]),y(0x1,u[_0x5851f7(0x1da)]),y(0x2,a[_0x5851f7(0x298)](u[_0x5851f7(0x408)])),y(0x3,T[_0x5851f7(0x34f)]),y(0x4,T['INotificationService']),y(0x5,a['Inject'](a['LocaleService']))],q);const $t=_0x5851f7(0x41d),Ue={},be=a[_0x5851f7(0x1f7)]('uni.network.url-service');var xt=Object[_0x5851f7(0x2c4)],jt=(_0x492295,_0x19e44f,_0x3f06ee,_0x3edae5)=>{const _0x41be34=_0x5851f7;for(var _0x5e9c8c=_0x3edae5>0x1?void 0x0:_0x3edae5?xt(_0x19e44f,_0x3f06ee):_0x19e44f,_0x5471b4=_0x492295[_0x41be34(0x3ab)]-0x1,_0x2818a9;_0x5471b4>=0x0;_0x5471b4--)(_0x2818a9=_0x492295[_0x5471b4])&&(_0x5e9c8c=_0x2818a9(_0x5e9c8c)||_0x5e9c8c);return _0x5e9c8c;},H=(_0x4ea07f,_0x18c9b0)=>(_0x20c006,_0x27436c)=>_0x18c9b0(_0x20c006,_0x27436c,_0x4ea07f);exports['CollaborationDataLoaderController']=class extends a[_0x5851f7(0x2a9)]{constructor(_0x4c4f2a,_0x2fbcec,_0x34a55f,_0x2124fb,_0x44ea5c){const _0x49fcef=_0x5851f7;super(),this[_0x49fcef(0x286)]=_0x4c4f2a,this[_0x49fcef(0x302)]=_0x2fbcec,this[_0x49fcef(0x1eb)]=_0x34a55f,this['_dataLoaderService']=_0x2124fb,_0x44ea5c?_0x44ea5c==null||_0x44ea5c['whenReady']()[_0x49fcef(0x354)](()=>this['_init']()):(this[_0x49fcef(0x302)][_0x49fcef(0x2fe)](_0x49fcef(0x36e),_0x49fcef(0x32e)),this[_0x49fcef(0x221)]());}async['_init'](){const _0x2afc86=_0x5851f7,_0x16cef7=this['_urlService'][_0x2afc86(0x318)](_0x2afc86(0x212)),_0x53d85f=this[_0x2afc86(0x286)][_0x2afc86(0x318)](_0x2afc86(0x1d4)),_0x1604a9=this[_0x2afc86(0x286)][_0x2afc86(0x318)](_0x2afc86(0x374));if(!_0x16cef7||!_0x53d85f){this[_0x2afc86(0x302)]['debug']('[CollaborationDataLoaderController]','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.');return;}const _0x1580a8=await this[_0x2afc86(0x39b)]['loadUnit'](_0x16cef7,Number(_0x53d85f),_0x1604a9);_0x1580a8&&_0x1580a8 instanceof a[_0x2afc86(0x27d)]&&this[_0x2afc86(0x334)](_0x1580a8);}async[_0x5851f7(0x334)](_0x45a7b1){const _0x490ea7=_0x5851f7;await this[_0x490ea7(0x427)](_0x45a7b1),_0x45a7b1['activeSheet$'][_0x490ea7(0x3bf)](d[_0x490ea7(0x329)](this['dispose$']))[_0x490ea7(0x1e4)](_0x3fd766=>{const _0x416ca1=_0x490ea7;_0x3fd766&&this[_0x416ca1(0x26a)](_0x3fd766);}),this['_urlService'][_0x490ea7(0x252)][_0x490ea7(0x3bf)](d[_0x490ea7(0x329)](this['dispose$']))[_0x490ea7(0x1e4)](()=>this['_updateSubUnitFromURLParams'](_0x45a7b1));}[_0x5851f7(0x26a)](_0x5826a3,_0x10a3be=!0x1){const _0x1ef3f2=_0x5851f7,_0x332bbb=this['_urlService'][_0x1ef3f2(0x318)](_0x1ef3f2(0x374));_0x5826a3[_0x1ef3f2(0x2ad)]()!==_0x332bbb&&this[_0x1ef3f2(0x286)][_0x1ef3f2(0x256)](_0x1ef3f2(0x374),_0x5826a3['getSheetId'](),_0x10a3be);}async[_0x5851f7(0x427)](_0x17c2c1){const _0x4264a7=_0x5851f7;var _0x403379;const _0xeeff97=this['_urlService'][_0x4264a7(0x318)](_0x4264a7(0x374));if(!_0xeeff97||!_0x17c2c1[_0x4264a7(0x32b)](_0xeeff97)){const _0x171275=_0x17c2c1[_0x4264a7(0x23a)]()[0x0],_0x1b0815=_0x17c2c1['getSheetBySheetId'](_0x171275);if(!_0x1b0815)return;this['_updateURLWithCurrentState'](_0x1b0815,!0x0),await this[_0x4264a7(0x1eb)][_0x4264a7(0x217)](g['SetWorksheetActivateCommand']['id'],{'unitId':_0x17c2c1[_0x4264a7(0x228)](),'subUnitId':_0x171275});return;}((_0x403379=_0x17c2c1[_0x4264a7(0x218)]())==null?void 0x0:_0x403379[_0x4264a7(0x2ad)]())!==_0xeeff97&&await this['_commandService'][_0x4264a7(0x217)](g[_0x4264a7(0x253)]['id'],{'unitId':_0x17c2c1[_0x4264a7(0x228)](),'subUnitId':_0xeeff97});}},exports[_0x5851f7(0x21d)]=jt([H(0x0,be),H(0x1,a[_0x5851f7(0x435)]),H(0x2,a[_0x5851f7(0x1c0)]),H(0x3,a[_0x5851f7(0x298)](u[_0x5851f7(0x405)])),H(0x4,a['Optional'](Ke[_0x5851f7(0x32f)]))],exports[_0x5851f7(0x21d)]);var Bt=Object[_0x5851f7(0x2c4)],kt=(_0x2dd339,_0x25b87c,_0x314022,_0x544224)=>{for(var _0x2e648c=_0x544224>0x1?void 0x0:_0x544224?Bt(_0x25b87c,_0x314022):_0x25b87c,_0x24f05b=_0x2dd339['length']-0x1,_0x2dbc19;_0x24f05b>=0x0;_0x24f05b--)(_0x2dbc19=_0x2dd339[_0x24f05b])&&(_0x2e648c=_0x2dbc19(_0x2e648c)||_0x2e648c);return _0x2e648c;},ce=(_0x3c74ff,_0x91fb8b)=>(_0x588a29,_0x51ef35)=>_0x91fb8b(_0x588a29,_0x51ef35,_0x3c74ff);let z=class{constructor(_0x5583ce,_0xf6666,_0x4cf514){const _0x1d0da8=_0x5851f7;this[_0x1d0da8(0x2ed)]=_0x5583ce,this[_0x1d0da8(0x42a)]=_0xf6666,this[_0x1d0da8(0x2b9)]=_0x4cf514;}[_0x5851f7(0x35b)](_0x5844bd){const _0x2a7c7d=_0x5851f7;this[_0x2a7c7d(0x225)](_0x5844bd),this[_0x2a7c7d(0x1fc)](_0x5844bd);}[_0x5851f7(0x1c2)](_0x10912e){const _0xb83c1b=_0x5851f7,{unitID:_0x37b559}=_0x10912e,_0x37ba53=this[_0xb83c1b(0x2b9)][_0xb83c1b(0x3b6)](_0x37b559)[_0xb83c1b(0x3b8)](b[_0xb83c1b(0x3ef)]),{redoCache:_0x443e5f}=_0x37ba53[_0xb83c1b(0x3c7)]();if(_0x443e5f[_0xb83c1b(0x3ab)]===0x0)return _0x10912e;let _0x547918=a[_0xb83c1b(0x24c)][_0xb83c1b(0x219)](_0x10912e[_0xb83c1b(0x25a)][0x0]);for(let _0x3c3cda=0x0;_0x3c3cda<_0x443e5f[_0xb83c1b(0x3ab)];_0x3c3cda++){const _0xb6a61b={'id':_0xb83c1b(0x263),'params':{..._0x443e5f[_0x3c3cda]}},_0x208475=this['_transformService'][_0xb83c1b(0x2a1)](_0x547918,_0xb6a61b,!0x1);if(m[_0xb83c1b(0x28b)](_0x208475))throw _0x208475[_0xb83c1b(0x31c)];_0x547918=_0x208475[_0xb83c1b(0x23c)];}return{...a[_0xb83c1b(0x24c)]['deepClone'](_0x10912e),'mutations':[_0x547918]};}[_0x5851f7(0x225)](_0x2f4b65){const _0x495109=_0x5851f7,{unitID:_0x299e84}=_0x2f4b65,_0x2f5108=this[_0x495109(0x2b9)][_0x495109(0x3b6)](_0x299e84)[_0x495109(0x3b8)](b[_0x495109(0x3ef)]),{undoCache:_0x3990ed,redoCache:_0x360d8d}=_0x2f5108[_0x495109(0x3c7)]();if(_0x3990ed[_0x495109(0x3ab)]===0x0||_0x360d8d[_0x495109(0x3ab)]===0x0)return;const _0x2bf0d2=[],_0x3acda6=[];let _0x289bad=a[_0x495109(0x24c)]['deepClone'](_0x2f4b65[_0x495109(0x25a)][0x0]),_0x520a53=a['Tools'][_0x495109(0x219)](_0x2f4b65[_0x495109(0x25a)][0x0]);for(let _0x330d16=_0x3990ed[_0x495109(0x3ab)]-0x1;_0x330d16>=0x0;_0x330d16--){const _0x1c8b8b={'id':'doc.mutation.rich-text-editing','params':{..._0x3990ed[_0x330d16]}},_0x55494a={'id':'doc.mutation.rich-text-editing','params':{..._0x360d8d[_0x330d16]}},_0xe5348d=this[_0x495109(0x42a)][_0x495109(0x2a1)](_0x289bad,_0x1c8b8b,!0x1),_0x220f9e=this['_transformService'][_0x495109(0x2a1)](_0x520a53,_0x55494a,!0x1);if(m[_0x495109(0x28b)](_0xe5348d))throw _0xe5348d[_0x495109(0x31c)];if(m[_0x495109(0x28b)](_0x220f9e))throw _0x220f9e[_0x495109(0x31c)];_0x2bf0d2[_0x495109(0x323)](_0xe5348d[_0x495109(0x40b)][_0x495109(0x25d)]),_0x3acda6[_0x495109(0x323)](_0x220f9e[_0x495109(0x40b)][_0x495109(0x25d)]),_0x289bad=_0xe5348d[_0x495109(0x23c)],_0x520a53=_0x220f9e['m1Prime'];}_0x2f5108['setUndoRedoMutationParamsCache']({'undoCache':_0x2bf0d2,'redoCache':_0x3acda6});}['_transformPreviousActiveRange'](_0xdbd3c3){const _0x2b3efe=_0x5851f7,{unitID:_0x3c7a9b}=_0xdbd3c3,_0x6db75a=this[_0x2b3efe(0x2b9)][_0x2b3efe(0x3b6)](_0x3c7a9b)[_0x2b3efe(0x3b8)](b['DocIMEInputManagerService']),_0x4e82fe=_0x6db75a[_0x2b3efe(0x29a)]();if(_0x4e82fe==null)return;const _0x1354af=[{'id':'doc.mutation.rich-text-editing','params':{'unitId':_0xdbd3c3[_0x2b3efe(0x339)],'actions':null,'textRanges':[_0x4e82fe]}}],_0x4c544c=this['_transformService'][_0x2b3efe(0x24f)](_0xdbd3c3,_0x1354af);if(!m[_0x2b3efe(0x355)](_0x4c544c))throw _0x4c544c[_0x2b3efe(0x31c)];const _0x109d1e=_0x4c544c[_0x2b3efe(0x40b)][0x0][_0x2b3efe(0x25d)][_0x2b3efe(0x30a)];Array[_0x2b3efe(0x2d5)](_0x109d1e)&&_0x109d1e[_0x2b3efe(0x3ab)]&&_0x6db75a[_0x2b3efe(0x1e3)](_0x109d1e[0x0]);}};z=kt([ce(0x0,a[_0x5851f7(0x298)](a[_0x5851f7(0x3d3)])),ce(0x1,m[_0x5851f7(0x421)]),ce(0x2,p[_0x5851f7(0x3ce)])],z);var Ht=Object[_0x5851f7(0x2c4)],Ft=(_0x125afe,_0x5ae59a,_0x2d5697,_0x8cf8af)=>{const _0x4ec2b1=_0x5851f7;for(var _0x585970=_0x8cf8af>0x1?void 0x0:_0x8cf8af?Ht(_0x5ae59a,_0x2d5697):_0x5ae59a,_0x3d985a=_0x125afe[_0x4ec2b1(0x3ab)]-0x1,_0xa6a687;_0x3d985a>=0x0;_0x3d985a--)(_0xa6a687=_0x125afe[_0x3d985a])&&(_0x585970=_0xa6a687(_0x585970)||_0x585970);return _0x585970;},le=(_0xe17b54,_0x1b5a93)=>(_0x463623,_0x461087)=>_0x1b5a93(_0x463623,_0x461087,_0xe17b54);let J=class{constructor(_0x115177,_0x378c48,_0x1f9b6d){const _0x368549=_0x5851f7;this[_0x368549(0x2ed)]=_0x115177,this[_0x368549(0x42a)]=_0x378c48,this['_docStateChangeManagerService']=_0x1f9b6d;}[_0x5851f7(0x3d4)](_0x565596){this['_transformHistoryAndStateStack'](_0x565596);}[_0x5851f7(0x1c2)](_0x2edbee){const _0x4d3984=_0x5851f7,{unitID:_0x414d60}=_0x2edbee,{collaboration:_0x59cc31}=this[_0x4d3984(0x3c1)][_0x4d3984(0x379)](_0x414d60);if(_0x59cc31[_0x4d3984(0x3ab)]===0x0)return _0x2edbee;let _0x526eb7=a[_0x4d3984(0x24c)]['deepClone'](_0x2edbee[_0x4d3984(0x25a)][0x0]);for(let _0x47397b=0x0;_0x47397b<_0x59cc31[_0x4d3984(0x3ab)];_0x47397b++){const _0x550175={'id':_0x4d3984(0x263),'params':{'unitId':_0x59cc31[_0x47397b][_0x4d3984(0x395)],..._0x59cc31[_0x47397b][_0x4d3984(0x3fe)]}},_0x560e93=this[_0x4d3984(0x42a)][_0x4d3984(0x2a1)](_0x526eb7,_0x550175,!0x1);if(m['isTransformMutationFailure'](_0x560e93))throw _0x560e93['error'];_0x526eb7=_0x560e93['m1Prime'];}return{...a[_0x4d3984(0x24c)][_0x4d3984(0x219)](_0x2edbee),'mutations':[_0x526eb7]};}[_0x5851f7(0x403)](_0xbff782){const _0x329854=_0x5851f7,{unitID:_0x4e205a}=_0xbff782,{history:_0x542d67,collaboration:_0x3508e9}=this['_docStateChangeManagerService'][_0x329854(0x379)](_0x4e205a);if(_0x542d67[_0x329854(0x3ab)]===0x0&&_0x3508e9[_0x329854(0x3ab)]===0x0)return;const _0x29d53d=[],_0xf38dbe=[];let _0x477dce=a[_0x329854(0x24c)]['deepClone'](_0xbff782['mutations'][0x0]),_0x43213d=a['Tools'][_0x329854(0x219)](_0xbff782['mutations'][0x0]);for(let _0x1d61ed=_0x542d67[_0x329854(0x3ab)]-0x1;_0x1d61ed>=0x0;_0x1d61ed--){const _0x459b67={'id':_0x329854(0x263),'params':{'unitId':_0x542d67[_0x1d61ed][_0x329854(0x395)],..._0x542d67[_0x1d61ed][_0x329854(0x1cc)]}},_0x544b99={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x542d67[_0x1d61ed][_0x329854(0x395)],..._0x542d67[_0x1d61ed][_0x329854(0x3fe)]}},_0x542a3a=this['_transformService'][_0x329854(0x2a1)](_0x477dce,_0x459b67,!0x1),_0x29c877=this[_0x329854(0x42a)]['transformMutation'](_0x43213d,_0x544b99,!0x1);if(m[_0x329854(0x28b)](_0x542a3a))throw _0x542a3a[_0x329854(0x31c)];if(m[_0x329854(0x28b)](_0x29c877))throw _0x29c877[_0x329854(0x31c)];_0x29d53d[_0x329854(0x323)]({..._0x542d67[_0x1d61ed],'undoState':_0x542a3a['m2Prime'][_0x329854(0x25d)],'redoState':_0x29c877[_0x329854(0x40b)]['params']}),_0x477dce=_0x542a3a[_0x329854(0x23c)],_0x43213d=_0x29c877[_0x329854(0x23c)];}_0x477dce=a[_0x329854(0x24c)][_0x329854(0x219)](_0xbff782[_0x329854(0x25a)][0x0]),_0x43213d=a[_0x329854(0x24c)][_0x329854(0x219)](_0xbff782['mutations'][0x0]);for(let _0x1d3d32=_0x3508e9['length']-0x1;_0x1d3d32>=0x0;_0x1d3d32--){const _0x4c4187={'id':_0x329854(0x263),'params':{'unitId':_0x3508e9[_0x1d3d32]['unitId'],..._0x3508e9[_0x1d3d32][_0x329854(0x1cc)]}},_0x43595f={'id':_0x329854(0x263),'params':{'unitId':_0x3508e9[_0x1d3d32][_0x329854(0x395)],..._0x3508e9[_0x1d3d32][_0x329854(0x3fe)]}},_0x4ece89=this[_0x329854(0x42a)]['transformMutation'](_0x477dce,_0x4c4187,!0x1),_0x2e437a=this[_0x329854(0x42a)]['transformMutation'](_0x43213d,_0x43595f,!0x1);if(m[_0x329854(0x28b)](_0x4ece89))throw _0x4ece89[_0x329854(0x31c)];if(m[_0x329854(0x28b)](_0x2e437a))throw _0x2e437a[_0x329854(0x31c)];_0xf38dbe[_0x329854(0x323)]({..._0x3508e9[_0x1d3d32],'undoState':_0x4ece89[_0x329854(0x40b)][_0x329854(0x25d)],'redoState':_0x2e437a[_0x329854(0x40b)][_0x329854(0x25d)]}),_0x477dce=_0x4ece89[_0x329854(0x23c)],_0x43213d=_0x2e437a[_0x329854(0x23c)];}this[_0x329854(0x3c1)]['setStateCache'](_0x4e205a,{'history':_0x29d53d,'collaboration':_0xf38dbe});}};J=Ft([le(0x0,a['Inject'](a['Injector'])),le(0x1,m[_0x5851f7(0x421)]),le(0x2,a[_0x5851f7(0x298)](b[_0x5851f7(0x36c)]))],J);var Yt=Object[_0x5851f7(0x2c4)],Wt=(_0x294cfb,_0x442a49,_0x436266,_0x197902)=>{for(var _0x1f4ac5=_0x197902>0x1?void 0x0:_0x197902?Yt(_0x442a49,_0x436266):_0x442a49,_0x449a02=_0x294cfb['length']-0x1,_0x30ad2d;_0x449a02>=0x0;_0x449a02--)(_0x30ad2d=_0x294cfb[_0x449a02])&&(_0x1f4ac5=_0x30ad2d(_0x1f4ac5)||_0x1f4ac5);return _0x1f4ac5;},Ne=(_0x133027,_0x1f84df)=>(_0x1333f8,_0x3200a9)=>_0x1f84df(_0x1333f8,_0x3200a9,_0x133027);let Z=class{constructor(_0x2fc4f2,_0xf65b1b){const _0x491446=_0x5851f7;this['_injector']=_0x2fc4f2,this[_0x491446(0x42a)]=_0xf65b1b;}[_0x5851f7(0x2cd)](_0x2b38b2){const _0x3cb218=_0x5851f7;var _0x566d7b;const _0x403bae=this[_0x3cb218(0x2ed)]['get'](Y[_0x3cb218(0x215)]),_0x149dbd=(_0x566d7b=_0x403bae[_0x3cb218(0x1ec)]())!=null?_0x566d7b:[];if(_0x149dbd[_0x3cb218(0x3ab)]===0x0)return;const _0x20b3b2=_0x2b38b2[_0x3cb218(0x339)],_0x3c0bda=[{'id':_0x3cb218(0x263),'params':{'unitId':_0x20b3b2,'actions':null,'textRanges':_0x149dbd}}],_0x37baf2=this[_0x3cb218(0x42a)][_0x3cb218(0x24f)](_0x2b38b2,_0x3c0bda);if(!m[_0x3cb218(0x355)](_0x37baf2))throw _0x37baf2[_0x3cb218(0x31c)];const _0x1f25fa=_0x37baf2[_0x3cb218(0x40b)][0x0]['params'][_0x3cb218(0x30a)];Array[_0x3cb218(0x2d5)](_0x1f25fa)&&_0x1f25fa[_0x3cb218(0x3ab)]&&_0x403bae[_0x3cb218(0x224)](_0x1f25fa,{'unitId':_0x20b3b2,'subUnitId':_0x20b3b2},!0x1);}};Z=Wt([Ne(0x0,a['Inject'](a[_0x5851f7(0x3d3)])),Ne(0x1,m[_0x5851f7(0x421)])],Z);var Vt=Object[_0x5851f7(0x2c4)],Xt=(_0x12af2e,_0x13fec0,_0x54168f,_0x5a61fe)=>{const _0x3ad5e3=_0x5851f7;for(var _0x5dd624=_0x5a61fe>0x1?void 0x0:_0x5a61fe?Vt(_0x13fec0,_0x54168f):_0x13fec0,_0x3abc25=_0x12af2e[_0x3ad5e3(0x3ab)]-0x1,_0x5af6b8;_0x3abc25>=0x0;_0x3abc25--)(_0x5af6b8=_0x12af2e[_0x3abc25])&&(_0x5dd624=_0x5af6b8(_0x5dd624)||_0x5dd624);return _0x5dd624;},N=(_0x6867c1,_0x35bfd4)=>(_0x3f064e,_0x486e66)=>_0x35bfd4(_0x3f064e,_0x486e66,_0x6867c1);let Q=class extends a['Disposable']{constructor(_0x44b3c5,_0x116bd7,_0x4bb7aa,_0x2d43d2,_0x18bdcf,_0x5c9732,_0x531cf8,_0x2df11a){const _0x2073bf=_0x5851f7;super(),h(this,'_status$',new d[(_0x2073bf(0x207))](u['CollaborationStatus'][_0x2073bf(0x2dc)])),(this['_docStateChangeManagerService']=_0x44b3c5,this[_0x2073bf(0x3dc)]=_0x116bd7,this[_0x2073bf(0x3fa)]=_0x4bb7aa,this['_docTransformStateCacheService']=_0x2d43d2,this[_0x2073bf(0x3bc)]=_0x18bdcf,this[_0x2073bf(0x2bd)]=_0x5c9732,this['_messageService']=_0x531cf8,this[_0x2073bf(0x220)]=_0x2df11a,this['_initEntityListener']());}[_0x5851f7(0x1ef)](){const _0x2c0b9e=_0x5851f7;this['disposeWithMe'](this[_0x2c0b9e(0x3dc)][_0x2c0b9e(0x20e)]['subscribe'](_0x2078a0=>{const _0x4e9331=_0x2c0b9e,_0x3c1ee0=this[_0x4e9331(0x3c1)][_0x4e9331(0x308)][_0x4e9331(0x1e4)](_0x19dc44=>{const _0x23f4dc=_0x4e9331;if(_0x19dc44==null)return;const {unitId:_0x53c499,redoState:_0x313c92,commandId:_0x695f2f}=_0x19dc44;if(_0x53c499!==_0x2078a0[_0x23f4dc(0x339)])return;const _0x8be5a7={'id':_0x695f2f,'type':a[_0x23f4dc(0x2cb)][_0x23f4dc(0x222)],'params':{'unitId':_0x53c499,'actions':_0x313c92[_0x23f4dc(0x3e7)],'textRanges':null}};_0x2078a0['onLocalMutation'](_0x8be5a7);});if(_0x2078a0[_0x4e9331(0x21c)](_0x3c1ee0),_0x2078a0 instanceof u[_0x4e9331(0x275)]){const _0x13da83={'onTransformIME':_0x383816=>this[_0x4e9331(0x3fa)]['transformIMECache'](_0x383816),'onTransformState':_0x5b179d=>this[_0x4e9331(0x1f2)][_0x4e9331(0x3d4)](_0x5b179d),'onTransformSelections':_0x457f70=>this[_0x4e9331(0x3bc)][_0x4e9331(0x2cd)](_0x457f70),'onSyncEditingCollabCursor':_0x1c9aa3=>this[_0x4e9331(0x2bd)]['syncEditingCollabCursor'](_0x1c9aa3),'onTransformRemoteChangesetByIMECache':_0x54434f=>this['_docTransformIMECacheService'][_0x4e9331(0x1c2)](_0x54434f),'onTransformRemoteChangesetByStateCache':_0x262c65=>this[_0x4e9331(0x1f2)][_0x4e9331(0x1c2)](_0x262c65)};_0x2078a0['addHandlerCallback'](_0x13da83);}}));}};Q=Xt([N(0x0,a[_0x5851f7(0x298)](b[_0x5851f7(0x36c)])),N(0x1,a[_0x5851f7(0x298)](u[_0x5851f7(0x3c2)])),N(0x2,a[_0x5851f7(0x298)](z)),N(0x3,a[_0x5851f7(0x298)](J)),N(0x4,a[_0x5851f7(0x298)](Z)),N(0x5,a[_0x5851f7(0x298)](Ce)),N(0x6,T[_0x5851f7(0x34f)]),N(0x7,a[_0x5851f7(0x298)](a[_0x5851f7(0x229)]))],Q);var Gt=Object[_0x5851f7(0x2c4)],Kt=(_0x265dc4,_0x451332,_0x5cc6b6,_0x1ef306)=>{const _0x49e1b2=_0x5851f7;for(var _0x73f05e=_0x1ef306>0x1?void 0x0:_0x1ef306?Gt(_0x451332,_0x5cc6b6):_0x451332,_0x13c1f1=_0x265dc4[_0x49e1b2(0x3ab)]-0x1,_0x8c810a;_0x13c1f1>=0x0;_0x13c1f1--)(_0x8c810a=_0x265dc4[_0x13c1f1])&&(_0x73f05e=_0x8c810a(_0x73f05e)||_0x73f05e);return _0x73f05e;},_e=(_0x124ece,_0x6b91e)=>(_0x56a335,_0x195982)=>_0x6b91e(_0x56a335,_0x195982,_0x124ece);let ge=class extends a[_0x5851f7(0x31b)]{constructor(_0x5d221f,_0x3597e0,_0x2592b9){const _0x1797f0=_0x5851f7;super(),h(this,_0x1797f0(0x39d),new Map()),h(this,_0x1797f0(0x31a),new Map()),h(this,_0x1797f0(0x1d5),!0x1),(this[_0x1797f0(0x410)]=_0x5d221f,this[_0x1797f0(0x301)]=_0x3597e0,this[_0x1797f0(0x317)]=_0x2592b9);}[_0x5851f7(0x3b9)](){const _0x2b29ee=_0x5851f7;this[_0x2b29ee(0x1d5)]=!0x0;}[_0x5851f7(0x1c7)](){this['_disabled']=!0x1;}get['saveTaskMap'](){const _0x657b84=_0x5851f7;return this[_0x657b84(0x31a)];}[_0x5851f7(0x28f)](){const _0x18ee41=_0x5851f7;this[_0x18ee41(0x34c)]()[_0x18ee41(0x354)](()=>super[_0x18ee41(0x28f)]());}async['loadOfflineData'](_0xfa567d){const _0x176ba0=_0x5851f7;return this[_0x176ba0(0x1d5)]?null:this['_localStorageService']['getItem'](u[_0x176ba0(0x3b3)](_0xfa567d));}async['saveOfflineData'](_0x4636c3,_0x3febbd){const _0x4bc26b=_0x5851f7;return!!this[_0x4bc26b(0x301)]['setItem'](_0x4636c3,_0x3febbd);}[_0x5851f7(0x311)](_0x4383b6,_0x489876,_0x22f53f,_0x41e81b){const _0x3ec715=_0x5851f7,_0x4dd808=this['_revisionService']['getCurrentRevOfUnit'](_0x4383b6);this[_0x3ec715(0x39d)][_0x3ec715(0x247)](_0x4383b6,{'unitID':_0x4383b6,'type':_0x489876,'awaitingChangeset':_0x22f53f,'mutations':_0x41e81b,'rev':_0x4dd808}),this[_0x3ec715(0x31a)]['has'](_0x4383b6)||this[_0x3ec715(0x43c)](_0x4383b6);}['_scheduleSaving'](_0x247d7e){const _0x32c51e=_0x5851f7,_0x11dd4f=this[_0x32c51e(0x3e5)]();_0x11dd4f===0x0?this[_0x32c51e(0x378)](_0x247d7e):this['_saveTaskMap']['set'](_0x247d7e,setTimeout(()=>this[_0x32c51e(0x378)](_0x247d7e),_0x11dd4f));}[_0x5851f7(0x3e5)](){const _0x56ce70=_0x5851f7;var _0x4fd75c;return(_0x4fd75c=this[_0x56ce70(0x410)][_0x56ce70(0x2ea)](u[_0x56ce70(0x2a6)]))!=null?_0x4fd75c:u[_0x56ce70(0x376)];}['_saveCache'](_0x5d0f86){const _0x18e8d7=_0x5851f7,_0x3e3b5d=this['_saveTaskMap'][_0x18e8d7(0x1f5)](_0x5d0f86);return _0x3e3b5d!==void 0x0&&window['clearTimeout'](_0x3e3b5d),this[_0x18e8d7(0x301)][_0x18e8d7(0x3bd)](u[_0x18e8d7(0x3b3)](_0x5d0f86),this[_0x18e8d7(0x39d)]['get'](_0x5d0f86))[_0x18e8d7(0x354)](()=>this[_0x18e8d7(0x31a)][_0x18e8d7(0x278)](_0x5d0f86));}async[_0x5851f7(0x34c)](){const _0x4e3069=_0x5851f7,_0x2130bb=[];this[_0x4e3069(0x31a)][_0x4e3069(0x2b0)]((_0x255fea,_0x3e85b4)=>{const _0x29bee7=_0x4e3069;window['clearTimeout'](_0x255fea),_0x2130bb[_0x29bee7(0x33a)](this['_saveCache'](_0x3e85b4)['then'](()=>{const _0x2329ad=_0x29bee7;this[_0x2329ad(0x31a)][_0x2329ad(0x278)](_0x3e85b4);}));}),await Promise[_0x4e3069(0x361)](_0x2130bb);}};ge=Kt([_e(0x0,a['IConfigService']),_e(0x1,a[_0x5851f7(0x29c)]),_e(0x2,a[_0x5851f7(0x298)](m['RevisionService']))],ge);class je extends a[_0x5851f7(0x2a9)]{constructor(){const _0x37bbe4=_0x5851f7;super(),h(this,_0x37bbe4(0x252)),this['urlChange$']=d[_0x37bbe4(0x254)](window,_0x37bbe4(0x3f4))[_0x37bbe4(0x3bf)](d[_0x37bbe4(0x329)](this[_0x37bbe4(0x2f1)]),d[_0x37bbe4(0x22c)](0x1),d[_0x37bbe4(0x436)](void 0x0));}['setParam'](_0x2223e1,_0x165e3f,_0x364228=!0x1){const _0x21dddc=_0x5851f7,_0x57e7f7=new URL(window['location'][_0x21dddc(0x3bb)]);_0x57e7f7['searchParams']['set'](_0x2223e1,_0x165e3f),_0x364228?window[_0x21dddc(0x3b4)][_0x21dddc(0x234)]('','',_0x57e7f7[_0x21dddc(0x293)]()):window[_0x21dddc(0x3b4)][_0x21dddc(0x1e9)]('','',_0x57e7f7[_0x21dddc(0x293)]());}[_0x5851f7(0x2ef)](_0xf7c6f5,_0x4ab618=!0x1){const _0x13f1a8=_0x5851f7,_0x16e196=new URL(window[_0x13f1a8(0x3e2)][_0x13f1a8(0x3bb)]);_0x16e196[_0x13f1a8(0x3a8)][_0x13f1a8(0x278)](_0xf7c6f5),_0x4ab618?window[_0x13f1a8(0x3b4)][_0x13f1a8(0x234)]('','',_0x16e196['toString']()):window['history'][_0x13f1a8(0x1e9)]('','',_0x16e196[_0x13f1a8(0x293)]());}['getParam'](_0x267571){const _0x6f33d2=_0x5851f7;var _0x922d3d;return(_0x922d3d=new URL(window[_0x6f33d2(0x3e2)][_0x6f33d2(0x3bb)])[_0x6f33d2(0x3a8)][_0x6f33d2(0x1f5)](_0x267571))!=null?_0x922d3d:void 0x0;}}var qt=Object[_0x5851f7(0x34b)],zt=Object[_0x5851f7(0x2c4)],Jt=(_0x5a9559,_0xe37e0c,_0x2d9233)=>_0xe37e0c in _0x5a9559?qt(_0x5a9559,_0xe37e0c,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x2d9233}):_0x5a9559[_0xe37e0c]=_0x2d9233,Zt=(_0x387155,_0x3ef196,_0x5804bd,_0x1858bd)=>{const _0x5ac32e=_0x5851f7;for(var _0x281f2b=_0x1858bd>0x1?void 0x0:_0x1858bd?zt(_0x3ef196,_0x5804bd):_0x3ef196,_0x431380=_0x387155[_0x5ac32e(0x3ab)]-0x1,_0x36b312;_0x431380>=0x0;_0x431380--)(_0x36b312=_0x387155[_0x431380])&&(_0x281f2b=_0x36b312(_0x281f2b)||_0x281f2b);return _0x281f2b;},he=(_0x42760c,_0x1ff2eb)=>(_0x2bed0c,_0x1abb1b)=>_0x1ff2eb(_0x2bed0c,_0x1abb1b,_0x42760c),Qt=(_0x1f7e46,_0x40cc1f,_0x2a359d)=>Jt(_0x1f7e46,_0x40cc1f+'',_0x2a359d);const es=_0x5851f7(0x33e);exports[_0x5851f7(0x3ba)]=class extends a[_0x5851f7(0x326)]{constructor(_0x10b5a7=Ue,_0x1a1286,_0xda0377,_0xb0758a){const _0x4ce7be=_0x5851f7;super(),this[_0x4ce7be(0x3cd)]=_0x10b5a7,this[_0x4ce7be(0x2b9)]=_0x1a1286,this[_0x4ce7be(0x2ed)]=_0xda0377,this[_0x4ce7be(0x410)]=_0xb0758a;const {..._0x45a71b}=a['merge']({},Ue,this[_0x4ce7be(0x3cd)]);this[_0x4ce7be(0x410)][_0x4ce7be(0x3d8)]($t,_0x45a71b);}['onStarting'](){const _0x239fd1=_0x5851f7;this['_registerDependencies'](),this[_0x239fd1(0x1e2)]();}['onRendered'](){const _0x119792=_0x5851f7;this[_0x119792(0x3df)]();}[_0x5851f7(0x2df)](){const _0x5efeb2=_0x5851f7;var _0x1a7fc4;const _0x57d80d=[[me],[Z],[z],[J],[Ce],[be,{'useClass':je}],[G['ISocketService'],{'useClass':G[_0x5efeb2(0x27c)]}],[u['ILocalCacheService'],{'useClass':ge}],[exports[_0x5efeb2(0x23b)]],[Q],[q],[x],[de],[exports[_0x5efeb2(0x21d)]]];a[_0x5efeb2(0x2f0)](this[_0x5efeb2(0x2ed)],a[_0x5efeb2(0x288)](_0x57d80d,(_0x1a7fc4=this[_0x5efeb2(0x3cd)])==null?void 0x0:_0x1a7fc4[_0x5efeb2(0x32c)]));}['_registerRenderDependencies'](){const _0x529a2a=_0x5851f7;this['disposeWithMe'](this[_0x529a2a(0x2b9)][_0x529a2a(0x371)](a[_0x529a2a(0x1c5)][_0x529a2a(0x411)],[Ie])),this['disposeWithMe'](this[_0x529a2a(0x2b9)][_0x529a2a(0x371)](a['UniverInstanceType'][_0x529a2a(0x2c8)],[ve]));}['_initDependencies'](){const _0x54ffd3=_0x5851f7;a['touchDependencies'](this[_0x54ffd3(0x2ed)],[[x],[exports[_0x54ffd3(0x23b)]],[Q],[q],[exports['CollaborationDataLoaderController']]]);}},Qt(exports[_0x5851f7(0x3ba)],_0x5851f7(0x439),es),exports['UniverCollaborationClientUIPlugin']=Zt([a['DependentOn'](u[_0x5851f7(0x223)]),he(0x1,p[_0x5851f7(0x3ce)]),he(0x2,a[_0x5851f7(0x298)](a[_0x5851f7(0x3d3)])),he(0x3,a[_0x5851f7(0x43a)])],exports[_0x5851f7(0x3ba)]);var ts=Object['getOwnPropertyDescriptor'],ss=(_0x30c18d,_0x46e51d,_0x5cef18,_0x175051)=>{const _0x135341=_0x5851f7;for(var _0x389dc6=_0x175051>0x1?void 0x0:_0x175051?ts(_0x46e51d,_0x5cef18):_0x46e51d,_0x5955dc=_0x30c18d[_0x135341(0x3ab)]-0x1,_0x1e4c82;_0x5955dc>=0x0;_0x5955dc--)(_0x1e4c82=_0x30c18d[_0x5955dc])&&(_0x389dc6=_0x1e4c82(_0x389dc6)||_0x389dc6);return _0x389dc6;},F=(_0x2e533d,_0x3a1eb0)=>(_0x38fc1a,_0x40323e)=>_0x3a1eb0(_0x38fc1a,_0x40323e,_0x2e533d);function _0x1d21(){const _0x1cc2da=['getCollabCursors$','_scheduleHeartbeat','serializeRangeWithSheet','Shape','univer-text-red-500','MemberService','DOC_RANGE_TYPE','@univerjs/docs-ui','...','collaboration.single-unit.warning','roomMembers$','SheetSkeletonManagerService','defineProperty','exhaustSavingTask','_notificationService','YUUMI_TABLE_NOT_FOUND_IN_UNIT','IMessageService','url(#on-line-single_clip0_910_349)','yellow.400','WebBrowserSingleActiveUnitService','_ensureSubject','then','isTransformMutationsWithChangesetSuccess','Module','EMAIL_HAS_BEEN_BOUND','SUBMIT_CHANGESET_TIMEOUT','init','_onCursorUpdate','transformIMECache','_hover','key','OFFLINE','RefRangeService','onPointerLeave$','all','@univerjs/docs','attrs','onCommandExecuted','CONFLICT','top','combineLatest','getTypeOfUnitAdded$','COLORS','distinctUntilChanged','getVpScrollXYInfoByPosToVp','DocStateChangeManagerService','_handleHover','[CollaborationDataLoaderController]','collaboration-client.offline-data-not-saved','_collaborationUIEventService','registerRenderModule','_scene','_session','subunit','substring','LOCAL_CACHE_INTERVAL','_unitOnClients','_saveCache','getStateCache','hasOwnProperty','reconnect','_removeClearOtherTimer','collab-client.tooltip.reconnect','blue.400','@univerjs/sheets-ui','UnitStatus','handleInsertRangeMoveDown','roomMembers','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20dark:univer-text-gray-200\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','_name','NO_OTHER_CLIENTS_EDITING','@univerjs-pro/collaboration','result','add','session.collaboration-timeout','PERMISSION_DENIED','univer-flex\x20univer-items-center','NOT_FOUND','addEventListener','addClipboardHook','_startDocCollabCursor','getFocusedUnit','url(#off-line-single_clip0_910_343)','_handleHeartbeatEvent','sheetID','_imageIoService','unitId','isActive','_memberService','_updateLocalCursor','collab-rect-range-','6075396ETbgxN','_dataLoaderService','height','_cachedData','RemoveColCommandId','_backgroundColor','moveTo','_initStatusComponent','OnLineSingle','FromArray','toStringTag','ISnapshotServerService','getCurrent','_entities','searchParams','getCurrentSelections','_send','length','size','translate(.97)','runRefRangeMutations','12LsJZXr','clearInterval','switchMap','#FFF','getLocalCacheKey','history','@univerjs-pro/collaboration-client','getRenderById','COMPLETION_FINISHED','with','disableLocalCache','UniverCollaborationClientUIPlugin','href','_docTransformSelectionsService','setItem','_eventUnsubscribe','pipe','_draw','_docStateChangeManagerService','CollaborationController','CollaborationSocketService','eventID','asObservable','TOO_MANY_REQUESTS','getUndoRedoMutationParamsCache','LICENSE_EXPORT_SIZE_EXCEEDED','8040192iOwtNP','clipPath','5820550wnXqhJ','children','_config','IRenderManagerService','permission.title','@univerjs/sheets','_cursorShapes','_labelPosition','Injector','transformStateCache','getColor','_roomMembers$','requireSession','setConfig','extend','SNAPSHOT_INVALID_SNAPSHOT','1em','_collaborationController','M0\x200H16V16H0z','createInstance','_registerRenderDependencies','selections','#fff','location','Error','_getAnchorBounding','_getSaveTimeout','off-line-single','actions','SNAPSHOT_HAS_BEEN_REMOVED','_handleJoinEvent','CollaborationStatus','CollaborationUIEventId','REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY','session.will-retry','univer-text-green-500','DocIMEInputManagerService','_createSocketURL','collabCursorState$','triggerDblclick','font','popstate','event$','fillText','_drawAnchor','_hideTimer','_toggleOffline','_docTransformIMECacheService','_docSkeletonManagerService','587453wemfpJ','application/json','redoState','_assignedColors','tag','some','DEFAULT_WS_SESSION_TICKET_URL','_transformHistoryAndStateStack','findNodePositionByCharIndex','DataLoaderService','setAlpha','BrowserCollaborationSocketService','CollaborationUIEventService','permission.content','UNAUTHENTICATED','m2Prime','_drawTextRange','998193bHqBrm','SYNCED','OTHER_CLIENT_EDITING','_configService','UNIVER_DOC','CLOSE_ROOM','CONNECTOR_DATA_TOO_LARGE','TRANSFORM_CHANGE_OBSERVABLE_TYPE','_getMergeRange','generateRandomId','jsx','debounce','HEADER_MENU','TEXT_RANGE_LAYER_INDEX','_getScale','EffectRefRangId','collaboration-client-ui.config','resize','INVITE_CODE_REQUIRED','collaboration.closeRoom','ITransformService','_heartbeatTimer','Rectangle','_initEvent','setInterval','_range','_updateSubUnitFromURLParams','random','merge','_transformService','_removeCollabCursors','complete','DeleteRangeMoveUpCommandId','width','saveImage','_render','clearTimeout','SessionStatus','currentTheme$','defIds','ILogService','mapTo','assignAColorForMemberID','syncEditingCollabCursor','pluginName','IConfigService','USER_NOT_INVITED_CODE','_scheduleSaving','black','UNDEFINED','endColumn','ICommandService','Tooltip','transformRemoteChangeset','SetDocZoomRatioOperation','sessionTicket','UniverInstanceType','row','enableLocalCache','column','forwardRef','call','startsWith','undoState','_unitStatus','INTERNAL_ERROR','svg','from','use','mask','ONLINE','type','_disabled','send','closePath','YUUMI_AI_RUN_FAILED','toRgbString','ILocalCacheService','flatMap','_lastPointer','_themeService','lineTo','MOBILE_HAS_BEEN_BOUND','handleMoveRange','_colorIndex','_initDependencies','setActiveRange','subscribe','hide','ColorKit','MessageType','createElement','pushState','_handleEvent','_commandService','getDocRanges','[RemoteUniscriptService]:\x20no\x20focused\x20unit','_cursors','_initEntityListener','connectInjector','measureText','_docTransformStateCacheService','show','editingUnit','get','startRow','createIdentifier','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','LICENSE_IMPORT_SIZE_EXCEEDED','_httpService','className','_transformPreviousActiveRange','RemoteUniscriptService','hovered','_onCursorDelete','UniverIcon','getRangePointData','_updateCollabCursors','storage','@univerjs/engine-render','registerRefRange','fill','BehaviorSubject','makeDirty','defs','_colorAssignService','symbol','APPLY_NON_SEQUENTIAL_REVISION','_onRefRangeChange','entityInit$','SOCKET_FAILED_RETRY','fillStyle','@univerjs/ui','unit','_document','stringify','DocSelectionManagerService','_scheduleClearOtherTimer','executeCommand','getActiveSheet','deepClone','min','currentColor','disposeWithMe','CollaborationDataLoaderController','selection','round','_localeService','_init','MUTATION','UniverCollaborationClientPlugin','replaceDocRanges','_transformUndoRedoStack','univerjs-icon\x20univerjs-icon-','collabStatus.syncing','getUnitId','LocaleService','_entityInit$','prototype','shareReplay','YUUMI_SUBSCRIPTION_NOT_FOUND','_getSessionTicket','collabStatus.conflict','split','div','path','INVITE_CODE_ALREADY_BOUND','replaceState','jsxs','_context','_cursorInfo$','AWAITING_WITH_PENDING','sessionStatus$','getUnhiddenWorksheets','DesktopCollaborationStatusDisplayController','m1Prime','_setupBeforeClosingHandler','getOffsetConfig','code','text','colorChannel1','newValue','max','handleDeleteRangeMoveLeft','SetSelectionsOperation','none','set','SOCKET_FAILED','react/jsx-runtime','Warning','LICENSE_DISTRO_REJECTED','Tools','getSheetObject','InsertRowCommandId','transformMutationsWithChangeset','_collabSessionService','engine','urlChange$','SetWorksheetActivateCommand','fromEvent','InsertRangeMoveRightCommandId','setParam','assign','_getSheetObject','subscribeEvent','mutations','_anchor','_online','params','HTTPService','Vector2','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','idSuffix','getCoordByCell','doc.mutation.rich-text-editing','cursorInfo','_syncEditingCollabCursorService','focused$','currentSkeleton$','bottom','Unknown\x20user','_updateURLWithCurrentState','next','toDisposable','onPointerEnter$','getUnitStatus$','getRelativeToViewportCoord','post','unsubscribe','drawWith','off-line-single_clip0_910_343','USERS_LEAVE','DocCollaborationEntity','YUUMI_PROMPT_MAX_TOKENS_EXCEEDED','_refRangeService','delete','PENDING','registerComponent','save','WebSocketService','Workbook','_selfUnitIDs','trim','_instanceService','YUUMI_ALL_TABLES_IS_INVALID','data','RichTextEditingMutation','APPLY_REVISION_CONFILICT','restore','_urlService','_shapes','mergeOverrideWithDependencies','_sheetSkeletonManagerService','onTransformChange$','isTransformMutationFailure','LOGIN_FAILED','jiqing.500','SHEET_VIEWPORT_KEY','dispose','has','createSocket','color','toString','session.connection-failed','MoveRangeCommandId','getAncestorScale','collabStatus.offline','Inject','getValue','getActiveRange','_color','ILocalStorageService','_collabCursorState$','YUUMI_RATE_OVER_LIMIT','concat','_collabCursorController','transformMutation','current','getMember','range','_id','LOCAL_CACHE_INTERVAL_KEY','_drawRectRange','ACTIVE_UNIT_EVENT_CHANNEL','RxDisposable','IDocClipboardService','_initResize','arc','getSheetId','cursorInfo$','_status$','forEach','getTypeOfUnitDisposed$','UNRECOGNIZED','backgroundColor','origin','setShapeProps','transformByState','sheetId','_cursor','_renderManagerService','4209681nqAJvs','collabStatus.notCollab','entries','_docSyncEditingCollabCursorService','throttleTime','rxjs','useDependency','TEXT','_handleLeaveEvent','wsSessionTicketUrl','getOwnPropertyDescriptor','CollaborationStatusDisplay','CollaborationEvent','0\x200\x2016\x2016','UNIVER_SHEET','_refreshCollabCursors','includes','CommandType','ticket','transformSelections','RegularPolygon','20kJpJzc','_localCacheService','_hovered','_univerInstanceService','handleIRemoveCol','registerBeforeClose','isArray','green.600','APPLY_DUPLICATED','replace','handleInsertCol','icon','_textBubble','NOT_COLLAB','body','RECT','_registerDependencies','AWAITING','@univerjs/engine-formula','source','Failed','Rect','IImageIoService','invokeId','values','url(#$1','collab-text-range-','getConfig','2458902phlgLC','NodePositionConvertToRectRange','_injector','OTHER_CLIENTS_EDITING','removeParam','registerDependencies','dispose$','red.300','useRef','@univerjs/network','LICENSE_MAX_UNITS_EXCEEDED','_messageService','apply','@univerjs/rpc','name','DocSkeletonManagerService','map','WebURLService','SheetCollabCursorShape','debug','InsertColCommandId','beginPath','_localStorageService','_logService','APPLY_REJECT','WECHAT_HAS_BEEN_BOUND','INVALID_INVITE_CODE','CollaborationSessionService','evenodd','docStateChange$','@univerjs/core','textRanges','startColumn','endRow','on-line-single_clip0_910_349','useCallback','_anchorDot','_clearOtherTimers','updateOfflineData','getSkeleton','YUUMI_ASYNCIO_CANCELLED','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','SetTextSelectionsOperation','PY_RUNTIME_SCRIPT_ERROR','_revisionService','getParam','2sVZzOp','_saveTaskMap','Disposable','error','ranges','_initCommandExecutedListener','indexOf','fillRule','YUUMI_UNABLE_LOAD_URL','setTimeout','unshift','displayName','runId','Plugin','_toggleOnline','search','takeUntil','handleIRemoveRow','getSheetBySheetId','override','ALREADY_EXISTS','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','IRemoteInstanceService','_docClipboardService','ThemeService','filter','getMemberID','_setupSubUnitSync','IBeforeCloseService','purple.300','addObject','IUIPartsService','unitID','push','YUUMI_URL_COL_OUT_OF_RANGE','UPDATE_CURSOR','string','UNIVER_COLLABORATION_CLIENT_WEB_PLUGIN'];_0x1d21=function(){return _0x1cc2da;};return _0x1d21();}exports['BrowserCollaborationSocketService']=class extends u[_0x5851f7(0x3c3)]{constructor(_0x35daad,_0x33f548,_0x41ea3f,_0x300c0d,_0x2b48cf){super(_0x35daad,_0x33f548,_0x41ea3f,_0x300c0d,_0x2b48cf);}async[_0x5851f7(0x291)](_0x22259e){const _0x3fd2fd=_0x5851f7,_0x5303b3=await this[_0x3fd2fd(0x22e)](),_0x360bd5=this[_0x3fd2fd(0x3f0)](_0x22259e,_0x5303b3);return this['_doCreateSocket'](_0x360bd5);}['_createSocketURL'](_0x2b6226,_0x76898a){const _0x1d0c34=_0x5851f7,_0xd356f1=typeof window>'u'?new URL(_0x2b6226):new URL(_0x2b6226,window[_0x1d0c34(0x3e2)][_0x1d0c34(0x2b4)]);_0xd356f1[_0x1d0c34(0x3a8)][_0x1d0c34(0x247)](_0x1d0c34(0x1c4),_0x76898a);const _0x136c3a=typeof window>'u'?new URLSearchParams():new URLSearchParams(window[_0x1d0c34(0x3e2)][_0x1d0c34(0x328)]);return _0x136c3a[_0x1d0c34(0x1f5)](_0x1d0c34(0x325))&&_0xd356f1[_0x1d0c34(0x3a8)][_0x1d0c34(0x247)](_0x1d0c34(0x325),_0x136c3a['get'](_0x1d0c34(0x325))),_0xd356f1[_0x1d0c34(0x293)]();}async[_0x5851f7(0x22e)](){const _0x20d6b4=_0x5851f7;var _0x255562,_0x387ee9,_0x55a0b2;const _0xf8cb6d=this[_0x20d6b4(0x410)][_0x20d6b4(0x2ea)](u[_0x20d6b4(0x1f8)]),_0x4998b3=(_0x255562=_0xf8cb6d==null?void 0x0:_0xf8cb6d[_0x20d6b4(0x2c3)])!=null?_0x255562:u[_0x20d6b4(0x402)];return(_0x55a0b2=(_0x387ee9=(await this[_0x20d6b4(0x1fa)]['get'](_0x4998b3,{'headers':{'Content-Type':_0x20d6b4(0x3fd)}}))[_0x20d6b4(0x2dd)])==null?void 0x0:_0x387ee9[_0x20d6b4(0x2cc)])!=null?_0x55a0b2:'';}},exports[_0x5851f7(0x407)]=ss([F(0x0,a[_0x5851f7(0x298)](a['Injector'])),F(0x1,a[_0x5851f7(0x298)](G[_0x5851f7(0x25e)])),F(0x2,a[_0x5851f7(0x43a)]),F(0x3,a[_0x5851f7(0x435)]),F(0x4,m[_0x5851f7(0x3a5)])],exports[_0x5851f7(0x407)]);const Me=0x7530,Le=_0x5851f7(0x2a8);class is extends a[_0x5851f7(0x31b)]{constructor(){const _0x65247b=_0x5851f7;super(),h(this,'_id',a[_0x65247b(0x416)]()),h(this,_0x65247b(0x27e),new Set()),h(this,_0x65247b(0x377),new Map()),h(this,'_heartbeatTimer',null),h(this,'_clearOtherTimers',new Map()),h(this,_0x65247b(0x1cd),new Map()),this['_init']();}[_0x5851f7(0x28f)](){const _0x443d44=_0x5851f7;super[_0x443d44(0x28f)](),this[_0x443d44(0x310)][_0x443d44(0x2b0)]((_0x54aa27,_0x420053)=>this[_0x443d44(0x37c)](_0x420053)),this[_0x443d44(0x422)]&&window[_0x443d44(0x3b0)](this[_0x443d44(0x422)]);}[_0x5851f7(0x26e)](_0x38a7f5){const _0x5daf90=_0x5851f7;return this[_0x5daf90(0x353)](_0x38a7f5)[_0x5daf90(0x3bf)](d[_0x5daf90(0x36a)]());}[_0x5851f7(0x1f4)](_0x545ad5){const _0x357a0d=_0x5851f7;this[_0x357a0d(0x27e)]['size']===0x0&&this[_0x357a0d(0x340)](),this['_selfUnitIDs'][_0x357a0d(0x388)](_0x545ad5),this['_send']({'type':0x0,'memberID':this[_0x357a0d(0x2a5)],'unitIDs':[_0x545ad5],'isForwarded':!0x1});}['disposeUnit'](_0x52b7a5){const _0x2214e0=_0x5851f7;this['_selfUnitIDs']['delete'](_0x52b7a5),this[_0x2214e0(0x27e)]['size']===0x0&&this[_0x2214e0(0x422)]&&window['clearInterval'](this[_0x2214e0(0x422)]);}[_0x5851f7(0x221)](){const _0x5b4db1=_0x5851f7;this[_0x5b4db1(0x21c)](a['toDisposable'](d[_0x5b4db1(0x254)](window,_0x5b4db1(0x203))[_0x5b4db1(0x1e4)](_0x3620ed=>{const _0x22c8ba=_0x5b4db1;if(_0x3620ed[_0x22c8ba(0x35d)]!==Le||!_0x3620ed[_0x22c8ba(0x242)])return;const _0x388c12=JSON['parse'](_0x3620ed[_0x22c8ba(0x242)]);this[_0x22c8ba(0x1ea)](_0x388c12);}))),window[_0x5b4db1(0x38d)]('unload',()=>this[_0x5b4db1(0x3aa)]({'type':0x1,'memberID':this['_id'],'unitIDs':Array['from'](this[_0x5b4db1(0x27e)])}));}[_0x5851f7(0x1ea)](_0x184b3d){const _0x491f11=_0x5851f7;switch(_0x184b3d[_0x491f11(0x1d4)]){case 0x0:this['_handleJoinEvent'](_0x184b3d);break;case 0x1:this[_0x491f11(0x2c2)](_0x184b3d);break;case 0x2:this['_handleHeartbeatEvent'](_0x184b3d);break;}}[_0x5851f7(0x3e9)](_0x552d8d){const _0x33fe8d=_0x5851f7,{unitIDs:_0x5d2c5b,memberID:_0x17838a,isForwarded:_0x13f950}=_0x552d8d;_0x5d2c5b[_0x33fe8d(0x2b0)](_0x16d046=>{const _0x2d108e=_0x33fe8d;if(!_0x13f950&&this[_0x2d108e(0x377)]['has'](_0x16d046)&&this[_0x2d108e(0x353)](_0x16d046)[_0x2d108e(0x26b)](u[_0x2d108e(0x380)][_0x2d108e(0x2ee)]),!this[_0x2d108e(0x377)][_0x2d108e(0x290)](_0x16d046)||!this['_unitOnClients'][_0x2d108e(0x1f5)](_0x16d046)[_0x2d108e(0x290)](_0x17838a)){const _0x4cb2b7=this[_0x2d108e(0x377)][_0x2d108e(0x1f5)](_0x16d046)||new Set();_0x4cb2b7[_0x2d108e(0x388)](_0x17838a),this['_unitOnClients'][_0x2d108e(0x247)](_0x16d046,_0x4cb2b7),this[_0x2d108e(0x216)](_0x17838a);}}),_0x13f950||this[_0x33fe8d(0x3aa)]({'type':0x0,'memberID':this[_0x33fe8d(0x2a5)],'unitIDs':[...this['_selfUnitIDs']],'isForwarded':!0x0});}[_0x5851f7(0x216)](_0xdc586d){const _0x2dbd93=_0x5851f7;this['_removeClearOtherTimer'](_0xdc586d);const _0x145569=window[_0x2dbd93(0x322)](()=>{const _0x3ee86a=_0x2dbd93;this[_0x3ee86a(0x377)]['forEach'](_0x522033=>{const _0x25d371=_0x3ee86a;_0x522033[_0x25d371(0x278)](_0xdc586d);});},Me*0x2);this[_0x2dbd93(0x310)][_0x2dbd93(0x247)](_0xdc586d,_0x145569);}[_0x5851f7(0x37c)](_0xe19b88){const _0x596a4e=_0x5851f7;if(this[_0x596a4e(0x310)][_0x596a4e(0x290)](_0xe19b88)){const _0x39baf6=this[_0x596a4e(0x310)][_0x596a4e(0x1f5)](_0xe19b88);_0x39baf6&&window[_0x596a4e(0x431)](_0x39baf6),this[_0x596a4e(0x310)][_0x596a4e(0x247)](_0xe19b88,null);}}['_handleLeaveEvent'](_0x26ed86){const _0x5eb79d=_0x5851f7,{memberID:_0x5c7121,unitIDs:_0x30efcd}=_0x26ed86;_0x30efcd['forEach'](_0x5135bf=>{const _0x5d05ec=_0x5085;var _0xe6746b;const _0x21f840=this['_unitOnClients'][_0x5d05ec(0x1f5)](_0x5135bf);_0x21f840&&(_0x21f840[_0x5d05ec(0x278)](_0x5c7121),(_0xe6746b=this['_ensureSubject'](_0x5135bf))==null||_0xe6746b[_0x5d05ec(0x26b)](_0x21f840[_0x5d05ec(0x3ac)]===0x0?u[_0x5d05ec(0x380)][_0x5d05ec(0x385)]:u['UnitStatus'][_0x5d05ec(0x2ee)]));}),this[_0x5eb79d(0x37c)](_0x5c7121);}[_0x5851f7(0x392)](_0x28a125){const _0xfefdff=_0x5851f7;this[_0xfefdff(0x216)](_0x28a125['memberID']);}[_0x5851f7(0x3aa)](_0x1e5e42){const _0x1a20d7=_0x5851f7;localStorage[_0x1a20d7(0x3bd)](Le,JSON[_0x1a20d7(0x214)](_0x1e5e42));}[_0x5851f7(0x340)](){const _0x340ace=_0x5851f7;this['_heartbeatTimer']=window[_0x340ace(0x425)](()=>{const _0x32eb31=_0x340ace;this[_0x32eb31(0x3aa)]({'type':0x2,'memberID':this[_0x32eb31(0x2a5)]});},Me);}[_0x5851f7(0x353)](_0x106f68){const _0xd751ac=_0x5851f7;return this[_0xd751ac(0x1cd)][_0xd751ac(0x290)](_0x106f68)||this[_0xd751ac(0x1cd)][_0xd751ac(0x247)](_0x106f68,new d[(_0xd751ac(0x207))](u['UnitStatus'][_0xd751ac(0x385)])),this['_unitStatus'][_0xd751ac(0x1f5)](_0x106f68);}}var Be=(_0x50989b=>(_0x50989b[_0x50989b[_0x5851f7(0x43e)]=0x0]=_0x5851f7(0x43e),_0x50989b[_0x50989b['OK']=0x1]='OK',_0x50989b[_0x50989b['INTERNAL_ERROR']=0x2]=_0x5851f7(0x1ce),_0x50989b[_0x50989b[_0x5851f7(0x38a)]=0x3]='PERMISSION_DENIED',_0x50989b[_0x50989b['NOT_FOUND']=0x4]=_0x5851f7(0x38c),_0x50989b[_0x50989b[_0x5851f7(0x40a)]=0x5]=_0x5851f7(0x40a),_0x50989b[_0x50989b[_0x5851f7(0x32d)]=0x6]=_0x5851f7(0x32d),_0x50989b[_0x50989b['INVALID_ARGUMENT']=0x7]='INVALID_ARGUMENT',_0x50989b[_0x50989b[_0x5851f7(0x3c6)]=0x8]=_0x5851f7(0x3c6),_0x50989b[_0x50989b[_0x5851f7(0x3b7)]=0x9]=_0x5851f7(0x3b7),_0x50989b[_0x50989b['LOGIN_FAILED']=0xa]=_0x5851f7(0x28c),_0x50989b[_0x50989b['CHANGESET_REVISION_CONFILICT']=0x1389]='CHANGESET_REVISION_CONFILICT',_0x50989b[_0x50989b[_0x5851f7(0x3da)]=0x1771]=_0x5851f7(0x3da),_0x50989b[_0x50989b[_0x5851f7(0x3e8)]=0x1772]='SNAPSHOT_HAS_BEEN_REMOVED',_0x50989b[_0x50989b['ENSURE_SNAPSHOT_EXECUTION']=0x1773]='ENSURE_SNAPSHOT_EXECUTION',_0x50989b[_0x50989b[_0x5851f7(0x303)]=0x1b59]='APPLY_REJECT',_0x50989b[_0x50989b['APPLY_NON_SEQUENTIAL_REVISION']=0x1b5a]=_0x5851f7(0x20c),_0x50989b[_0x50989b[_0x5851f7(0x284)]=0x1b5b]=_0x5851f7(0x284),_0x50989b[_0x50989b['APPLY_PERMISSION_DENIED']=0x1b5c]='APPLY_PERMISSION_DENIED',_0x50989b[_0x50989b[_0x5851f7(0x2d7)]=0x1b5d]='APPLY_DUPLICATED',_0x50989b[_0x50989b[_0x5851f7(0x413)]=0x1f41]='CONNECTOR_DATA_TOO_LARGE',_0x50989b[_0x50989b[_0x5851f7(0x2f5)]=0x2329]=_0x5851f7(0x2f5),_0x50989b[_0x50989b[_0x5851f7(0x314)]=0x232a]=_0x5851f7(0x314),_0x50989b[_0x50989b['LICENSE_IMPORT_SIZE_EXCEEDED']=0x232b]=_0x5851f7(0x1f9),_0x50989b[_0x50989b[_0x5851f7(0x3c8)]=0x232c]=_0x5851f7(0x3c8),_0x50989b[_0x50989b[_0x5851f7(0x24b)]=0x232d]=_0x5851f7(0x24b),_0x50989b[_0x50989b[_0x5851f7(0x321)]=0x2711]='YUUMI_UNABLE_LOAD_URL',_0x50989b[_0x50989b[_0x5851f7(0x33b)]=0x2712]='YUUMI_URL_COL_OUT_OF_RANGE',_0x50989b[_0x50989b[_0x5851f7(0x29e)]=0x2713]=_0x5851f7(0x29e),_0x50989b[_0x50989b[_0x5851f7(0x22d)]=0x2714]=_0x5851f7(0x22d),_0x50989b[_0x50989b['YUUMI_NO_CUBOID_FOR_QUESTION']=0x271a]='YUUMI_NO_CUBOID_FOR_QUESTION',_0x50989b[_0x50989b[_0x5851f7(0x313)]=0x271b]='YUUMI_ASYNCIO_CANCELLED',_0x50989b[_0x50989b[_0x5851f7(0x34e)]=0x271c]='YUUMI_TABLE_NOT_FOUND_IN_UNIT',_0x50989b[_0x50989b[_0x5851f7(0x281)]=0x271d]=_0x5851f7(0x281),_0x50989b[_0x50989b[_0x5851f7(0x276)]=0x271e]=_0x5851f7(0x276),_0x50989b[_0x50989b[_0x5851f7(0x1d8)]=0x271f]=_0x5851f7(0x1d8),_0x50989b[_0x50989b['PY_RUNTIME_SCRIPT_ERROR']=0x2af9]=_0x5851f7(0x316),_0x50989b[_0x50989b['INVITE_CODE_HAS_BEEN_UES']=0x2ee1]='INVITE_CODE_HAS_BEEN_UES',_0x50989b[_0x50989b['INVALID_INVITE_CODE']=0x2ee2]=_0x5851f7(0x305),_0x50989b[_0x50989b[_0x5851f7(0x41f)]=0x2ee3]=_0x5851f7(0x41f),_0x50989b[_0x50989b[_0x5851f7(0x43b)]=0x2ee4]=_0x5851f7(0x43b),_0x50989b[_0x50989b[_0x5851f7(0x233)]=0x2ee5]=_0x5851f7(0x233),_0x50989b[_0x50989b[_0x5851f7(0x304)]=0x32c9]=_0x5851f7(0x304),_0x50989b[_0x50989b[_0x5851f7(0x1df)]=0x32ca]=_0x5851f7(0x1df),_0x50989b[_0x50989b[_0x5851f7(0x357)]=0x32cb]=_0x5851f7(0x357),_0x50989b[_0x50989b[_0x5851f7(0x2b2)]=-0x1]='UNRECOGNIZED',_0x50989b))(Be||{}),ns=Object[_0x5851f7(0x2c4)],rs=(_0x2d9afe,_0x191ebe,_0x1a10cb,_0x5c51ce)=>{const _0x2f70fc=_0x5851f7;for(var _0x1ef1dc=_0x5c51ce>0x1?void 0x0:_0x5c51ce?ns(_0x191ebe,_0x1a10cb):_0x191ebe,_0x5533dd=_0x2d9afe[_0x2f70fc(0x3ab)]-0x1,_0x19988f;_0x5533dd>=0x0;_0x5533dd--)(_0x19988f=_0x2d9afe[_0x5533dd])&&(_0x1ef1dc=_0x19988f(_0x1ef1dc)||_0x1ef1dc);return _0x1ef1dc;},ue=(_0x2ffe54,_0x539f6a)=>(_0x54ea20,_0x278f86)=>_0x539f6a(_0x54ea20,_0x278f86,_0x2ffe54);exports[_0x5851f7(0x1fd)]=class extends a[_0x5851f7(0x31b)]{constructor(_0x12f488,_0x673f0,_0x3d8605){const _0x9eb869=_0x5851f7;super(),this[_0x9eb869(0x280)]=_0x12f488,this[_0x9eb869(0x1fa)]=_0x673f0,this[_0x9eb869(0x410)]=_0x3d8605;}async['runOnServer'](_0x28577b,_0x49fc06,_0x5a66c9,..._0x1be1b7){const _0x10cdb3=_0x5851f7;var _0x268035,_0x15c51e,_0x7aa95f,_0x26d860;const _0x50359e=this[_0x10cdb3(0x280)][_0x10cdb3(0x390)]();if(!_0x50359e)throw new Error(_0x10cdb3(0x1ed));const _0x4f0b4b=((_0x268035=this[_0x10cdb3(0x410)][_0x10cdb3(0x2ea)](u[_0x10cdb3(0x3ec)]))!=null?_0x268035:u['DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT'])+'/'+_0x28577b+'/run/'+_0x49fc06,_0x2f2110=new URL(window['location'][_0x10cdb3(0x3bb)]),_0x33b3de={'scriptId':_0x28577b,'runId':(_0x15c51e=_0x2f2110['searchParams'][_0x10cdb3(0x1f5)](_0x10cdb3(0x325)))!=null?_0x15c51e:'','function':_0x49fc06,'unitId':_0x50359e['getUnitId'](),'argsOfFunction':JSON['stringify'](_0x1be1b7),'invokeId':(_0x7aa95f=_0x5a66c9[_0x10cdb3(0x2e6)])!=null?_0x7aa95f:'','executionId':(_0x26d860=_0x5a66c9['executionId'])!=null?_0x26d860:''};try{const _0x4dcb57=await this[_0x10cdb3(0x1fa)][_0x10cdb3(0x270)](_0x4f0b4b,{'body':_0x33b3de});return _0x4dcb57['body'][_0x10cdb3(0x31c)]&&_0x4dcb57[_0x10cdb3(0x2dd)][_0x10cdb3(0x31c)][_0x10cdb3(0x23f)]!==Be['OK']?_0x10cdb3(0x2e3):_0x4dcb57[_0x10cdb3(0x2dd)][_0x10cdb3(0x387)];}catch{return _0x10cdb3(0x2e3);}}},exports[_0x5851f7(0x1fd)]=rs([ue(0x0,a['IUniverInstanceService']),ue(0x1,a[_0x5851f7(0x298)](G['HTTPService'])),ue(0x2,a[_0x5851f7(0x43a)])],exports['RemoteUniscriptService']),exports[_0x5851f7(0x2c5)]=xe,exports['IURLService']=be,exports[_0x5851f7(0x2fd)]=Ae,exports[_0x5851f7(0x352)]=is,exports[_0x5851f7(0x2fc)]=je;
|
|
1
|
+
'use strict';const _0xa015b6=_0x407d;(function(_0x2044f1,_0x22b06d){const _0x2c3041=_0x407d,_0x20929c=_0x2044f1();while(!![]){try{const _0x16eb53=-parseInt(_0x2c3041(0x25c))/0x1+-parseInt(_0x2c3041(0x333))/0x2*(-parseInt(_0x2c3041(0x318))/0x3)+parseInt(_0x2c3041(0x227))/0x4+-parseInt(_0x2c3041(0x389))/0x5*(parseInt(_0x2c3041(0x22c))/0x6)+parseInt(_0x2c3041(0x377))/0x7+-parseInt(_0x2c3041(0x349))/0x8+parseInt(_0x2c3041(0x24c))/0x9;if(_0x16eb53===_0x22b06d)break;else _0x20929c['push'](_0x20929c['shift']());}catch(_0x3bd405){_0x20929c['push'](_0x20929c['shift']());}}}(_0x521e,0x1b1fe));var Ve=Object['defineProperty'],Xe=(_0x1513f4,_0x22aaa4,_0x4b1a37)=>_0x22aaa4 in _0x1513f4?Ve(_0x1513f4,_0x22aaa4,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x4b1a37}):_0x1513f4[_0x22aaa4]=_0x4b1a37,h=(_0x15fd92,_0x283b48,_0x5eae47)=>Xe(_0x15fd92,typeof _0x283b48!=_0xa015b6(0x412)?_0x283b48+'':_0x283b48,_0x5eae47);Object['defineProperty'](exports,Symbol['toStringTag'],{'value':_0xa015b6(0x275)});const u=require(_0xa015b6(0x415)),a=require('@univerjs/core'),p=require(_0xa015b6(0x2f5)),G=require(_0xa015b6(0x35f)),b=require('@univerjs/docs-ui'),Ge=require('@univerjs/drawing'),d=require(_0xa015b6(0x33c)),Y=require(_0xa015b6(0x3d5)),m=require('@univerjs-pro/collaboration'),Ee=require(_0xa015b6(0x40e)),g=require('@univerjs/sheets'),$=require(_0xa015b6(0x24e)),X=require(_0xa015b6(0x3bd)),P=require(_0xa015b6(0x2df)),T=require(_0xa015b6(0x383)),D=require('@univerjs/design'),M=require(_0xa015b6(0x347)),Ke=require(_0xa015b6(0x307));var qe=Object[_0xa015b6(0x2ed)],ze=(_0x301014,_0x320c39,_0x35a49f,_0x4aab8c)=>{for(var _0x13fc74=_0x4aab8c>0x1?void 0x0:_0x4aab8c?qe(_0x320c39,_0x35a49f):_0x320c39,_0x9c4619=_0x301014['length']-0x1,_0x4ac382;_0x9c4619>=0x0;_0x9c4619--)(_0x4ac382=_0x301014[_0x9c4619])&&(_0x13fc74=_0x4ac382(_0x13fc74)||_0x13fc74);return _0x13fc74;},Te=(_0x3668c0,_0x71dfc2)=>(_0x5c28f9,_0x34ff12)=>_0x71dfc2(_0x5c28f9,_0x34ff12,_0x3668c0);let de=class extends a[_0xa015b6(0x321)]{constructor(_0x44ccf3,_0x114433){const _0x20881f=_0xa015b6;super(),this[_0x20881f(0x42d)]=_0x44ccf3,this[_0x20881f(0x2f3)]=_0x114433,this[_0x20881f(0x2cd)]();}[_0xa015b6(0x2cd)](){const _0xdfc115=_0xa015b6,_0x50f1f2=this;this[_0xdfc115(0x28d)](this[_0xdfc115(0x42d)][_0xdfc115(0x2eb)]({'onBeforePasteImage':async _0x9c20db=>{const _0x4059b8=_0xdfc115,_0x21482a=await _0x50f1f2[_0x4059b8(0x2f3)]['saveImage'](_0x9c20db);return _0x21482a?{'source':_0x21482a[_0x4059b8(0x206)],'imageSourceType':_0x21482a[_0x4059b8(0x442)]}:null;}}));}};de=ze([Te(0x0,b[_0xa015b6(0x25e)]),Te(0x1,Ge[_0xa015b6(0x445)])],de);const Oe=[_0xa015b6(0x319),'jiqing.500',_0xa015b6(0x3d4),_0xa015b6(0x301),_0xa015b6(0x25d),_0xa015b6(0x35d)];class me extends a['Disposable']{constructor(){const _0x36bb22=_0xa015b6;super(...arguments),h(this,_0x36bb22(0x33b),new Map()),h(this,_0x36bb22(0x372),0x0);}[_0xa015b6(0x438)](_0x1939c7){const _0x39e88d=_0xa015b6;if(this[_0x39e88d(0x33b)]['has'](_0x1939c7))return this[_0x39e88d(0x33b)][_0x39e88d(0x3ab)](_0x1939c7);const _0x377ce1=Oe[this['_colorIndex']];return this['_colorIndex']=(this[_0x39e88d(0x372)]+0x1)%Oe[_0x39e88d(0x3c0)],this[_0x39e88d(0x33b)][_0x39e88d(0x380)](_0x1939c7,_0x377ce1),_0x377ce1;}}function Pe(_0x40758c){const _0x3cd2c6=_0xa015b6;let _0x55ccc1='';for(const _0x1eea19 of _0x40758c){const {startOffset:_0x48081c,endOffset:_0x42ee03,isActive:_0x23069e,rangeType:_0x204e33,segmentId:_0x2f5457,segmentPage:_0x5103ae}=_0x1eea19;_0x55ccc1[_0x3cd2c6(0x3c0)]&&(_0x55ccc1+=','),_0x55ccc1+=_0x48081c+':'+_0x42ee03+':'+(_0x23069e?'1':'0')+':'+_0x204e33+':'+_0x2f5457+':'+_0x5103ae;}return _0x55ccc1;}function _0x407d(_0x300463,_0x1a89ab){const _0x521e9f=_0x521e();return _0x407d=function(_0x407d1a,_0x2d60a1){_0x407d1a=_0x407d1a-0x1e5;let _0xfdb71a=_0x521e9f[_0x407d1a];return _0xfdb71a;},_0x407d(_0x300463,_0x1a89ab);}function Je(_0x557cd9){const _0x2b58b5=_0xa015b6,_0x32f606=_0x557cd9[_0x2b58b5(0x1fc)](','),_0x1f483b=[];for(const _0x19e460 of _0x32f606){const [_0x5ec6cc,_0x4e277f,_0x53c75a,_0x41ff9d,_0x5de73a,_0xc456e]=_0x19e460['split'](':');_0x1f483b[_0x2b58b5(0x233)]({'startOffset':Number(_0x5ec6cc),'endOffset':Number(_0x4e277f),'collapsed':_0x5ec6cc===_0x4e277f,'isActive':_0x53c75a==='1','rangeType':_0x41ff9d===a[_0x2b58b5(0x3d3)][_0x2b58b5(0x428)]?a[_0x2b58b5(0x3d3)][_0x2b58b5(0x428)]:a['DOC_RANGE_TYPE'][_0x2b58b5(0x2e1)],'segmentId':typeof _0x5de73a==_0x2b58b5(0x3d8)?String(_0x5de73a):'','segmentPage':Number(_0xc456e!=null?_0xc456e:-0x1)});}return _0x1f483b[_0x2b58b5(0x42f)](_0x10787c=>_0x10787c['isActive'])||(_0x1f483b[0x0]['isActive']=!0x0),_0x1f483b;}class Ce extends a[_0xa015b6(0x321)]{constructor(){const _0x537477=_0xa015b6;super(...arguments),h(this,'_collabCursorState$',new d[(_0x537477(0x331))](null)),h(this,_0x537477(0x251),this[_0x537477(0x31d)][_0x537477(0x20c)]());}['syncEditingCollabCursor'](_0x25c830){const _0xed0519=_0xa015b6,{unitID:_0x3c5172,memberID:_0x13c2fa,textRanges:_0x3c4874}=_0x25c830,_0x4d0c38=Pe(_0x3c4874);if(_0x4d0c38==='')return;const _0x30ce42={'unitID':_0x3c5172,'memberID':_0x13c2fa,'selection':_0x4d0c38};this[_0xed0519(0x31d)]['next'](_0x30ce42);}}var Ze=Object[_0xa015b6(0x2ed)],Qe=(_0x1c2a49,_0x3385be,_0x380a9e,_0x4345ef)=>{const _0x20a14f=_0xa015b6;for(var _0x32afc3=_0x4345ef>0x1?void 0x0:_0x4345ef?Ze(_0x3385be,_0x380a9e):_0x3385be,_0x4056e7=_0x1c2a49[_0x20a14f(0x3c0)]-0x1,_0x5490f6;_0x4056e7>=0x0;_0x4056e7--)(_0x5490f6=_0x1c2a49[_0x4056e7])&&(_0x32afc3=_0x5490f6(_0x32afc3)||_0x32afc3);return _0x32afc3;},L=(_0x1ce5f5,_0x501683)=>(_0x1822a5,_0x2fe134)=>_0x501683(_0x1822a5,_0x2fe134,_0x1ce5f5);const et=0x12c,tt=0x64;let fe=class extends a[_0xa015b6(0x321)]{constructor(_0x4cc585,_0x29301c,_0x1f6b26,_0x424c49,_0xefb736,_0x4a12e3,_0x2d1c5d,_0x31cd7d,_0x4aab4a){const _0x5ccbd3=_0xa015b6;super(),h(this,_0x5ccbd3(0x444),!0x1),h(this,_0x5ccbd3(0x2cd),!0x1),h(this,_0x5ccbd3(0x3ef),new d[(_0x5ccbd3(0x331))](new Map())),h(this,_0x5ccbd3(0x26b),this[_0x5ccbd3(0x3ef)][_0x5ccbd3(0x20c)]()),h(this,_0x5ccbd3(0x3cb),new d[(_0x5ccbd3(0x331))]([])),h(this,_0x5ccbd3(0x3f9),this[_0x5ccbd3(0x3cb)][_0x5ccbd3(0x316)](d[_0x5ccbd3(0x3e5)](et))),h(this,'_updateLocalCursor',a[_0x5ccbd3(0x255)](_0x198edf=>{const _0x4be003=_0x5ccbd3,_0x2b6869={'eventID':m['CollaborationEvent'][_0x4be003(0x1ea)],'data':{'unitID':this[_0x4be003(0x2fb)],'memberID':this[_0x4be003(0x43c)]['getMemberID'](),'selection':Pe(_0x198edf)}};this['_session'][_0x4be003(0x35a)](_0x2b6869,this[_0x4be003(0x2fb)]);},tt)),(this['unitID']=_0x4cc585,this[_0x5ccbd3(0x43c)]=_0x29301c,this[_0x5ccbd3(0x2a6)]=_0x1f6b26,this['_colorAssignService']=_0x424c49,this[_0x5ccbd3(0x2f8)]=_0xefb736,this['_syncEditingCollabCursorService']=_0x4a12e3,this[_0x5ccbd3(0x2fc)]=_0x2d1c5d,this[_0x5ccbd3(0x1ef)]=_0x31cd7d,this[_0x5ccbd3(0x404)]=_0x4aab4a);}get[_0xa015b6(0x3a9)](){const _0x1683e4=_0xa015b6;return this[_0x1683e4(0x3ef)][_0x1683e4(0x210)]();}get[_0xa015b6(0x3d7)](){const _0x2428bb=_0xa015b6;return this[_0x2428bb(0x3cb)][_0x2428bb(0x210)]();}[_0xa015b6(0x448)](){const _0x57016a=_0xa015b6;super[_0x57016a(0x448)](),this[_0x57016a(0x3ef)][_0x57016a(0x3f1)](new Map()),this['_cursorInfo$'][_0x57016a(0x2cc)](),this[_0x57016a(0x3cb)]['next']([]),this['_roomMembers$']['complete']();}[_0xa015b6(0x2d7)](){const _0x6e3ca1=_0xa015b6;this[_0x6e3ca1(0x2cd)]||(this['_init']=!0x0,this[_0x6e3ca1(0x43c)][_0x6e3ca1(0x240)]['pipe'](d['takeUntil'](this[_0x6e3ca1(0x369)]))[_0x6e3ca1(0x439)](_0x22157e=>{const _0x987c3=_0x6e3ca1;_0x22157e===u['SessionStatus'][_0x987c3(0x3d0)]?this['_toggleOnline']():this['_toggleOffline']();}),this[_0x6e3ca1(0x43c)][_0x6e3ca1(0x423)]['pipe'](d['takeUntil'](this[_0x6e3ca1(0x369)]))[_0x6e3ca1(0x439)](_0x27fc43=>{const _0x1ae6ca=_0x6e3ca1,_0xf24bb2=_0x27fc43[_0x1ae6ca(0x290)];_0xf24bb2===m[_0x1ae6ca(0x1ec)][_0x1ae6ca(0x1ea)]&&this['_onCursorUpdate'](_0x27fc43),_0xf24bb2===m[_0x1ae6ca(0x1ec)][_0x1ae6ca(0x317)]&&this[_0x1ae6ca(0x3e4)](_0x27fc43);}),this[_0x6e3ca1(0x28d)](this[_0x6e3ca1(0x404)]['onCommandExecuted'](_0x48be73=>{const _0x22d728=_0x6e3ca1,_0xa21542=_0x48be73[_0x22d728(0x436)];_0xa21542!=null&&this[_0x22d728(0x444)]&&_0x48be73['id']===Y[_0x22d728(0x2be)]['id']&&_0xa21542[_0x22d728(0x2ab)]===this['unitID']&&_0xa21542[_0x22d728(0x41d)]===!0x1&&_0xa21542[_0x22d728(0x3ea)]['length']>0x0&&this[_0x22d728(0x223)](_0xa21542['ranges']);})),this[_0x6e3ca1(0x2da)][_0x6e3ca1(0x251)][_0x6e3ca1(0x316)](d[_0x6e3ca1(0x37e)](this[_0x6e3ca1(0x369)]))['subscribe'](_0x11f896=>{const _0x7a6199=_0x6e3ca1;if((_0x11f896==null?void 0x0:_0x11f896[_0x7a6199(0x2fb)])!==this[_0x7a6199(0x2fb)])return;const _0x268901={'eventID':m['CollaborationEvent'][_0x7a6199(0x1ea)],'data':_0x11f896};this[_0x7a6199(0x3cd)](_0x268901);}),this[_0x6e3ca1(0x28d)](this[_0x6e3ca1(0x404)][_0x6e3ca1(0x23b)](_0x1ff714=>{const _0x30a619=_0x6e3ca1;if(_0x1ff714[_0x30a619(0x436)]==null)return;const _0x23b3dd=_0x1ff714[_0x30a619(0x436)];if(_0x1ff714['id']!==Y['RichTextEditingMutation']['id']||_0x23b3dd['unitId']!==this[_0x30a619(0x2fb)])return;const _0x4c321e={'id':'doc.mutation.rich-text-editing','params':_0x23b3dd},_0x1a8155=this[_0x30a619(0x3a9)];for(const [_0x14d582,_0x4270e5]of _0x1a8155){const _0x34278d={'id':_0x30a619(0x268),'params':{'unitId':this[_0x30a619(0x2fb)],'actions':null,'textRanges':_0x4270e5[_0x30a619(0x3ea)]}},_0x5c255e=this[_0x30a619(0x2fc)][_0x30a619(0x3b8)](_0x4c321e,_0x34278d,!0x1);if(m[_0x30a619(0x26f)](_0x5c255e))throw _0x5c255e[_0x30a619(0x3a4)];_0x1a8155[_0x30a619(0x380)](_0x14d582,{..._0x4270e5,'ranges':_0x5c255e['m2Prime'][_0x30a619(0x436)]['textRanges']});}queueMicrotask(()=>{const _0x5d7d5e=_0x30a619;this[_0x5d7d5e(0x3ef)][_0x5d7d5e(0x3f1)](_0x1a8155);});})));}[_0xa015b6(0x3cd)](_0x39e011){const _0x33c164=_0xa015b6;var _0x56ef2a,_0x47aa15;const {memberID:_0x4c0275,selection:_0x4d164a}=_0x39e011[_0x33c164(0x3e8)],_0x15693c=Je(_0x4d164a),_0x328297=(_0x47aa15=(_0x56ef2a=this[_0x33c164(0x2f8)][_0x33c164(0x345)](this[_0x33c164(0x2fb)],_0x4c0275))==null?void 0x0:_0x56ef2a[_0x33c164(0x238)])!=null?_0x47aa15:_0x33c164(0x447),_0x1b9ef1={'color':this[_0x33c164(0x346)][_0x33c164(0x438)](_0x4c0275),'name':_0x328297,'ranges':_0x15693c},_0x153547=this['cursorInfo'];_0x153547[_0x33c164(0x380)](_0x4c0275,_0x1b9ef1),this[_0x33c164(0x3ef)]['next'](_0x153547);}['_onCursorDelete'](_0x5cb70a){const _0x4be48f=_0xa015b6,{memberID:_0x350169}=_0x5cb70a[_0x4be48f(0x3e8)],_0x4fbd14=this['cursorInfo'];_0x4fbd14['delete'](_0x350169),this['_cursorInfo$']['next'](_0x4fbd14);}[_0xa015b6(0x1f8)](){const _0x315589=_0xa015b6;var _0x1895b1;if(this[_0x315589(0x444)]=!0x0,((_0x1895b1=this[_0x315589(0x1ef)][_0x315589(0x375)]())==null?void 0x0:_0x1895b1['getUnitId']())!==this[_0x315589(0x2fb)])return;const _0x5d165d=this['_injector'][_0x315589(0x3ab)](Y['DocSelectionManagerService'])[_0x315589(0x36c)]();Array['isArray'](_0x5d165d)&&_0x5d165d['length']>0x0&&this[_0x315589(0x223)](_0x5d165d);}[_0xa015b6(0x3f8)](){this['_online']=!0x1;}};fe=Qe([L(0x2,a[_0xa015b6(0x2b1)](a['Injector'])),L(0x3,a[_0xa015b6(0x2b1)](me)),L(0x4,a['Inject'](u['MemberService'])),L(0x5,a['Inject'](Ce)),L(0x6,m[_0xa015b6(0x3e6)]),L(0x7,a[_0xa015b6(0x3cc)]),L(0x8,a[_0xa015b6(0x36a)])],fe);var st=Object[_0xa015b6(0x2ed)],it=(_0x284b02,_0x29898a,_0x10c528,_0x3265a3)=>{const _0x162858=_0xa015b6;for(var _0x1f2d57=_0x3265a3>0x1?void 0x0:_0x3265a3?st(_0x29898a,_0x10c528):_0x29898a,_0x27b49=_0x284b02[_0x162858(0x3c0)]-0x1,_0x232154;_0x27b49>=0x0;_0x27b49--)(_0x232154=_0x284b02[_0x27b49])&&(_0x1f2d57=_0x232154(_0x1f2d57)||_0x1f2d57);return _0x1f2d57;},w=(_0x18417e,_0x475f07)=>(_0x130742,_0x4dda7e)=>_0x475f07(_0x130742,_0x4dda7e,_0x18417e);const nt=0x12c,rt=0x64,ot=()=>{let _0x1d6673=[],_0x501013=!0x1;return _0x20c771=>{const _0x5a7547=_0x407d;_0x1d6673[_0x5a7547(0x233)](_0x20c771),_0x501013||(_0x501013=!0x0,setTimeout(()=>{const _0x48940d=_0x5a7547;_0x1d6673[_0x48940d(0x443)](_0x11fb28=>_0x11fb28()),_0x1d6673=[],_0x501013=!0x1;}));};};let Se=class extends a[_0xa015b6(0x321)]{constructor(_0x704d8d,_0x23c4c4,_0x1b9803,_0x30ae37,_0x21e427,_0x1c139b,_0x7c85c8,_0x49ff0d){const _0x45c5d1=_0xa015b6;super(),h(this,_0x45c5d1(0x444),!0x1),h(this,_0x45c5d1(0x2cd),!0x1),h(this,_0x45c5d1(0x3ef),new d[(_0x45c5d1(0x331))](new Map())),h(this,_0x45c5d1(0x26b),this[_0x45c5d1(0x3ef)]['asObservable']()),h(this,'_roomMembers$',new d[(_0x45c5d1(0x331))]([])),h(this,'roomMembers$',this[_0x45c5d1(0x3cb)][_0x45c5d1(0x316)](d['debounceTime'](nt))),h(this,_0x45c5d1(0x223),a[_0x45c5d1(0x255)]((_0x54f7d0,_0x2c5d11)=>{const _0x38fa07=_0x45c5d1,_0x2e310a={'eventID':m[_0x38fa07(0x1ec)][_0x38fa07(0x1ea)],'data':{'unitID':this[_0x38fa07(0x2fb)],'memberID':this[_0x38fa07(0x43c)][_0x38fa07(0x231)](),'selection':Ee[_0x38fa07(0x371)](_0x54f7d0,_0x2c5d11[_0x38fa07(0x2b4)])}};this[_0x38fa07(0x43c)]['send'](_0x2e310a,this[_0x38fa07(0x2fb)]);},rt)),(this['unitID']=_0x704d8d,this[_0x45c5d1(0x43c)]=_0x23c4c4,this[_0x45c5d1(0x2a6)]=_0x1b9803,this[_0x45c5d1(0x346)]=_0x30ae37,this[_0x45c5d1(0x2f8)]=_0x21e427,this[_0x45c5d1(0x1ef)]=_0x1c139b,this[_0x45c5d1(0x404)]=_0x7c85c8,this['_refRangeService']=_0x49ff0d);}get[_0xa015b6(0x3a9)](){const _0x4142a2=_0xa015b6;return this[_0x4142a2(0x3ef)][_0x4142a2(0x210)]();}get[_0xa015b6(0x3d7)](){const _0x36b74d=_0xa015b6;return this[_0x36b74d(0x3cb)][_0x36b74d(0x210)]();}[_0xa015b6(0x448)](){const _0x23ec96=_0xa015b6;super[_0x23ec96(0x448)](),this[_0x23ec96(0x3ef)][_0x23ec96(0x3f1)](new Map()),this[_0x23ec96(0x3ef)][_0x23ec96(0x2cc)](),this[_0x23ec96(0x3cb)]['next']([]),this[_0x23ec96(0x3cb)]['complete']();}[_0xa015b6(0x2d7)](){const _0xc60de0=_0xa015b6;this[_0xc60de0(0x2cd)]||(this[_0xc60de0(0x2cd)]=!0x0,this[_0xc60de0(0x43c)][_0xc60de0(0x240)][_0xc60de0(0x316)](d['takeUntil'](this['dispose$']))[_0xc60de0(0x439)](_0x2c72b4=>{const _0x149eb8=_0xc60de0;_0x2c72b4===u[_0x149eb8(0x419)][_0x149eb8(0x3d0)]?this[_0x149eb8(0x1f8)]():this[_0x149eb8(0x3f8)]();}),this[_0xc60de0(0x43c)][_0xc60de0(0x423)][_0xc60de0(0x316)](d[_0xc60de0(0x37e)](this[_0xc60de0(0x369)]))['subscribe'](_0x35af2d=>{const _0x38c81f=_0xc60de0,_0x1f9fb5=_0x35af2d['eventID'];_0x1f9fb5===m[_0x38c81f(0x1ec)][_0x38c81f(0x1ea)]&&this[_0x38c81f(0x3cd)](_0x35af2d),_0x1f9fb5===m[_0x38c81f(0x1ec)][_0x38c81f(0x317)]&&this[_0x38c81f(0x3e4)](_0x35af2d);}),this[_0xc60de0(0x226)](),this[_0xc60de0(0x28d)](this['_commandService'][_0xc60de0(0x23b)](_0x1578b7=>{const _0x45d248=_0xc60de0;if(this[_0x45d248(0x444)]&&_0x1578b7['id']===g[_0x45d248(0x2fe)]['id']&&_0x1578b7[_0x45d248(0x436)][_0x45d248(0x2ab)]===this[_0x45d248(0x2fb)]){const _0x69540e=_0x1578b7[_0x45d248(0x436)];this[_0x45d248(0x223)](_0x69540e[_0x45d248(0x1f7)],_0x69540e[_0x45d248(0x3f6)][0x0]);}})));}['_onCursorUpdate'](_0x764d71){const _0x421b2e=_0xa015b6;var _0x2e469c,_0x2ea00b;const {memberID:_0x13acf2,selection:_0x4a41cb}=_0x764d71[_0x421b2e(0x3e8)],{sheetName:_0x589c9c,range:_0x1262ec}=Ee[_0x421b2e(0x43d)](_0x4a41cb),_0x28eca0={'name':(_0x2ea00b=(_0x2e469c=this[_0x421b2e(0x2f8)][_0x421b2e(0x345)](this[_0x421b2e(0x2fb)],_0x13acf2))==null?void 0x0:_0x2e469c[_0x421b2e(0x238)])!=null?_0x2ea00b:_0x421b2e(0x447),'range':this['_getMergeRange'](_0x589c9c,_0x1262ec),'sheetID':_0x589c9c,'color':this[_0x421b2e(0x346)][_0x421b2e(0x438)](_0x13acf2),'selection':_0x4a41cb},_0x2df321=this[_0x421b2e(0x3a9)];_0x2df321['set'](_0x13acf2,_0x28eca0),this[_0x421b2e(0x3ef)][_0x421b2e(0x3f1)](_0x2df321);}['_onCursorDelete'](_0x5ba919){const _0x1c3989=_0xa015b6,{memberID:_0x4d0202}=_0x5ba919[_0x1c3989(0x3e8)],_0x52b46c=this[_0x1c3989(0x3a9)];_0x52b46c['delete'](_0x4d0202),this[_0x1c3989(0x3ef)][_0x1c3989(0x3f1)](_0x52b46c);}[_0xa015b6(0x334)](_0x4085df,_0x537128){const _0x233090=_0xa015b6;var _0x29ca99,_0x25837e;const _0x5a8805=(_0x25837e=(_0x29ca99=this[_0x233090(0x1ef)][_0x233090(0x2d2)](this[_0x233090(0x2fb)]))==null?void 0x0:_0x29ca99[_0x233090(0x417)](_0x4085df))==null?void 0x0:_0x25837e['getMergeData']();return(_0x5a8805==null?void 0x0:_0x5a8805['find'](_0x24a95a=>a[_0x233090(0x276)][_0x233090(0x359)](_0x24a95a,_0x537128)))||_0x537128;}[_0xa015b6(0x226)](){const _0x3e2330=_0xa015b6,_0x3fe261=new a['DisposableCollection'](),_0x4298fb=ot(),_0x311b60=()=>{const _0x149601=_0x407d;_0x3fe261[_0x149601(0x448)]();const _0xb7128=(_0x3c997a,_0x109ed3,_0x34bcf4,_0x2999fe)=>{const _0x454d7a=_0x149601;let _0x5efd6f=[];switch(_0x3c997a['id']){case g[_0x454d7a(0x458)]['DeleteRangeMoveLeftCommandId']:{_0x5efd6f=g['handleDeleteRangeMoveLeft'](_0x3c997a,_0x2999fe);break;}case g[_0x454d7a(0x458)][_0x454d7a(0x385)]:{_0x5efd6f=g['handleDeleteRangeMoveUp'](_0x3c997a,_0x2999fe);break;}case g['EffectRefRangId']['InsertColCommandId']:{_0x5efd6f=g[_0x454d7a(0x432)](_0x3c997a,_0x2999fe);break;}case g[_0x454d7a(0x458)][_0x454d7a(0x2b7)]:{_0x5efd6f=g['handleInsertRangeMoveDown'](_0x3c997a,_0x2999fe);break;}case g['EffectRefRangId'][_0x454d7a(0x2ee)]:{_0x5efd6f=g[_0x454d7a(0x441)](_0x3c997a,_0x2999fe);break;}case g[_0x454d7a(0x458)]['InsertRowCommandId']:{_0x5efd6f=g[_0x454d7a(0x29b)](_0x3c997a,_0x2999fe);break;}case g['EffectRefRangId'][_0x454d7a(0x3fe)]:{_0x5efd6f=g[_0x454d7a(0x362)](_0x3c997a,_0x2999fe);break;}case g['EffectRefRangId'][_0x454d7a(0x2b9)]:{_0x5efd6f=g[_0x454d7a(0x1e6)](_0x3c997a,_0x2999fe);break;}case g['EffectRefRangId'][_0x454d7a(0x3b9)]:{_0x5efd6f=g[_0x454d7a(0x247)](_0x3c997a,_0x2999fe);break;}}const _0x510131=g[_0x454d7a(0x2ec)](_0x5efd6f,_0x2999fe),_0xec22f3=this[_0x454d7a(0x3a9)]['get'](_0x109ed3);if(_0xec22f3&&_0x510131){const _0x2fcd5a={..._0xec22f3,'range':_0x510131};this[_0x454d7a(0x3a9)]['set'](_0x109ed3,_0x2fcd5a),_0x4298fb(()=>{const _0x3ab122=_0x454d7a,_0x3f0ed9=this['_refRangeService']['registerRefRange'](_0x510131,_0x8ae76b=>(_0x3f0ed9['dispose'](),_0xb7128(_0x8ae76b,_0x109ed3,_0x34bcf4,_0x510131)));_0x3fe261[_0x3ab122(0x27a)](_0x3f0ed9);});}return{'redos':[],'undos':[]};};this[_0x149601(0x3a9)][_0x149601(0x443)]((_0x397b90,_0x57d0a4)=>{const _0x50163d=_0x149601,{range:_0x135d91,sheetID:_0x293b56}=_0x397b90,_0x10171a=this[_0x50163d(0x2d6)][_0x50163d(0x393)](_0x135d91,_0x565305=>(_0x10171a[_0x50163d(0x448)](),_0xb7128(_0x565305,_0x57d0a4,_0x293b56,_0x135d91)));_0x3fe261[_0x50163d(0x27a)](_0x10171a);});};this[_0x3e2330(0x28d)](a[_0x3e2330(0x296)](this[_0x3e2330(0x3ef)]['subscribe'](()=>{_0x311b60();})));}[_0xa015b6(0x1f8)](){const _0x42d876=_0xa015b6;var _0x4e70bb,_0x12de40;if(this[_0x42d876(0x444)]=!0x0,((_0x4e70bb=this[_0x42d876(0x1ef)][_0x42d876(0x375)]())==null?void 0x0:_0x4e70bb[_0x42d876(0x357)]())!==this['unitID'])return;const _0x2e7d20=(_0x12de40=this['_injector'][_0x42d876(0x3ab)](g[_0x42d876(0x353)])['getCurrentSelections']())==null?void 0x0:_0x12de40[0x0],_0x5b2294=this[_0x42d876(0x1ef)][_0x42d876(0x2a3)](a[_0x42d876(0x2dd)]['UNIVER_SHEET'])[_0x42d876(0x3ed)]();_0x2e7d20&&_0x5b2294&&this['_updateLocalCursor'](_0x5b2294[_0x42d876(0x397)](),_0x2e7d20);}[_0xa015b6(0x3f8)](){const _0x2e21e7=_0xa015b6;this[_0x2e21e7(0x444)]=!0x1;}};Se=it([w(0x2,a[_0xa015b6(0x2b1)](a[_0xa015b6(0x344)])),w(0x3,a[_0xa015b6(0x2b1)](me)),w(0x4,a[_0xa015b6(0x2b1)](u[_0xa015b6(0x3bf)])),w(0x5,a[_0xa015b6(0x3cc)]),w(0x6,a[_0xa015b6(0x36a)]),w(0x7,a[_0xa015b6(0x2b1)](g[_0xa015b6(0x342)]))],Se);var at=Object[_0xa015b6(0x2ed)],ct=(_0x552280,_0x12d852,_0xaa7800,_0x5a7064)=>{const _0x21cc2f=_0xa015b6;for(var _0x2da4e8=_0x5a7064>0x1?void 0x0:_0x5a7064?at(_0x12d852,_0xaa7800):_0x12d852,_0x5c4eef=_0x552280[_0x21cc2f(0x3c0)]-0x1,_0x36a742;_0x5c4eef>=0x0;_0x5c4eef--)(_0x36a742=_0x552280[_0x5c4eef])&&(_0x2da4e8=_0x36a742(_0x2da4e8)||_0x2da4e8);return _0x2da4e8;},ie=(_0x5974e0,_0x8de0e1)=>(_0xa50310,_0x4732f5)=>_0x8de0e1(_0xa50310,_0x4732f5,_0x5974e0);let x=class extends a[_0xa015b6(0x321)]{constructor(_0x8c2ec3,_0x5c7d81,_0x118298){const _0x51fc97=_0xa015b6;super(),h(this,_0x51fc97(0x37c),new Map()),h(this,_0x51fc97(0x2b5),new d[(_0x51fc97(0x2e0))]()),(this[_0x51fc97(0x1ef)]=_0x8c2ec3,this[_0x51fc97(0x2a6)]=_0x5c7d81,this[_0x51fc97(0x1f1)]=_0x118298,this[_0x51fc97(0x2cd)]());}[_0xa015b6(0x448)](){const _0x3dc6c9=_0xa015b6;super[_0x3dc6c9(0x448)](),this[_0x3dc6c9(0x2b5)][_0x3dc6c9(0x2cc)](),this[_0x3dc6c9(0x37c)][_0x3dc6c9(0x443)](_0xbb6113=>_0xbb6113[_0x3dc6c9(0x448)]());}[_0xa015b6(0x2f6)](_0x1c6c83){const _0x12572f=_0xa015b6;return this[_0x12572f(0x37c)][_0x12572f(0x22b)](_0x1c6c83)?this[_0x12572f(0x37c)][_0x12572f(0x3ab)](_0x1c6c83)['cursorInfo$']:this[_0x12572f(0x2b5)][_0x12572f(0x316)](d[_0x12572f(0x354)](_0x42242c=>_0x42242c[_0x12572f(0x2fb)]===_0x1c6c83),d[_0x12572f(0x3c9)](_0x4a1d74=>_0x4a1d74['cursorInfo$']));}['_init'](){const _0x3affd5=_0xa015b6;this['_univerInstanceService'][_0x3affd5(0x30f)](a[_0x3affd5(0x2dd)]['UNIVER_SHEET'])['pipe'](d[_0x3affd5(0x37e)](this[_0x3affd5(0x369)]))['subscribe'](async _0x10c35a=>{const _0x15d605=_0x3affd5,_0x4bec79=_0x10c35a[_0x15d605(0x357)](),_0x277db0=await this[_0x15d605(0x40c)](_0x4bec79);this[_0x15d605(0x2b5)][_0x15d605(0x3f1)](_0x277db0),this[_0x15d605(0x37c)][_0x15d605(0x380)](_0x4bec79,_0x277db0);}),this[_0x3affd5(0x1ef)][_0x3affd5(0x30f)](a[_0x3affd5(0x2dd)][_0x3affd5(0x2a5)])[_0x3affd5(0x316)](d[_0x3affd5(0x37e)](this['dispose$']))['pipe'](d[_0x3affd5(0x354)](_0x4a8118=>!_0x4a8118[_0x3affd5(0x357)]()[_0x3affd5(0x352)]('__')))[_0x3affd5(0x439)](async _0x2d9b2e=>{const _0x4faafd=_0x3affd5,_0x5721d9=_0x2d9b2e[_0x4faafd(0x357)](),_0x141c21=await this[_0x4faafd(0x454)](_0x5721d9);this['_entityInit$'][_0x4faafd(0x3f1)](_0x141c21),this[_0x4faafd(0x37c)][_0x4faafd(0x380)](_0x5721d9,_0x141c21);}),d[_0x3affd5(0x23a)](this[_0x3affd5(0x1ef)][_0x3affd5(0x3b3)](a[_0x3affd5(0x2dd)][_0x3affd5(0x2a5)]),this['_univerInstanceService']['getTypeOfUnitDisposed$'](a[_0x3affd5(0x2dd)][_0x3affd5(0x204)]))[_0x3affd5(0x316)](d[_0x3affd5(0x37e)](this[_0x3affd5(0x369)]))[_0x3affd5(0x439)](_0x29b052=>{const _0x1e0c5c=_0x3affd5,_0xe209eb=_0x29b052[_0x1e0c5c(0x357)](),_0x343f8f=this[_0x1e0c5c(0x37c)][_0x1e0c5c(0x3ab)](_0xe209eb);_0x343f8f&&(_0x343f8f[_0x1e0c5c(0x448)](),this['_entities']['delete'](_0xe209eb));});}async['_startSheetCollabCursor'](_0x486e5e){const _0x3b25bb=_0xa015b6,_0x4cd6ea=await this[_0x3b25bb(0x1f1)][_0x3b25bb(0x3ba)](_0x486e5e),_0x2782f1=this[_0x3b25bb(0x2a6)]['createInstance'](Se,_0x486e5e,_0x4cd6ea);return _0x2782f1[_0x3b25bb(0x2d7)](),_0x2782f1;}async[_0xa015b6(0x454)](_0x1f2be8){const _0x39d1cd=_0xa015b6,_0x2bc22c=await this[_0x39d1cd(0x1f1)][_0x39d1cd(0x3ba)](_0x1f2be8),_0x17769c=this[_0x39d1cd(0x2a6)][_0x39d1cd(0x410)](fe,_0x1f2be8,_0x2bc22c);return _0x17769c[_0x39d1cd(0x2d7)](),_0x17769c;}};x=ct([ie(0x0,a[_0xa015b6(0x3cc)]),ie(0x1,a[_0xa015b6(0x2b1)](a[_0xa015b6(0x344)])),ie(0x2,a[_0xa015b6(0x2b1)](u[_0xa015b6(0x244)]))],x);const K=0x14,Re=0xc8,ne=0x4,lt=0x5;function _t(_0x580e4f,_0x4b1ddb){const _0x4c18b7=_0xa015b6;let {radius:_0x4ebecd,width:_0x4ae819,height:_0x50c5e0}=_0x4b1ddb;_0x4ebecd=_0x4ebecd!=null?_0x4ebecd:0x0,_0x4ae819=_0x4ae819!=null?_0x4ae819:0x1e,_0x50c5e0=_0x50c5e0!=null?_0x50c5e0:0x1e;let _0x6db11d=0x0,_0x55d902=0x0,_0x500ff7=0x0;_0x6db11d=_0x55d902=_0x500ff7=Math[_0x4c18b7(0x422)](_0x4ebecd,_0x4ae819/0x2,_0x50c5e0/0x2),_0x580e4f[_0x4c18b7(0x30a)](),_0x580e4f['moveTo'](_0x6db11d,0x0),_0x580e4f['lineTo'](_0x4ae819-_0x55d902,0x0),_0x580e4f[_0x4c18b7(0x408)](_0x4ae819-_0x55d902,_0x55d902,_0x55d902,Math['PI']*0x3/0x2,0x0,!0x1),_0x580e4f[_0x4c18b7(0x37d)](_0x4ae819,_0x50c5e0-_0x500ff7),_0x580e4f[_0x4c18b7(0x408)](_0x4ae819-_0x500ff7,_0x50c5e0-_0x500ff7,_0x500ff7,0x0,Math['PI']/0x2,!0x1),_0x580e4f[_0x4c18b7(0x37d)](0x0,_0x50c5e0),_0x580e4f[_0x4c18b7(0x37d)](0x0,_0x6db11d),_0x580e4f[_0x4c18b7(0x408)](_0x6db11d,_0x6db11d,_0x6db11d,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x580e4f['closePath'](),_0x4b1ddb[_0x4c18b7(0x45d)]&&(_0x580e4f[_0x4c18b7(0x379)](),_0x580e4f['fillStyle']=_0x4b1ddb[_0x4c18b7(0x45d)],_0x4b1ddb[_0x4c18b7(0x1f0)]===_0x4c18b7(0x314)?_0x580e4f[_0x4c18b7(0x45d)]('evenodd'):_0x580e4f[_0x4c18b7(0x45d)](),_0x580e4f[_0x4c18b7(0x281)]());}class ee extends p[_0xa015b6(0x350)]{constructor(_0x105ac1,_0x2ea363){const _0x22e958=_0xa015b6;super(_0x105ac1,_0x2ea363),h(this,_0x22e958(0x21a)),h(this,'text'),(this['color']=_0x2ea363==null?void 0x0:_0x2ea363[_0x22e958(0x21a)],this[_0x22e958(0x1fa)]=_0x2ea363==null?void 0x0:_0x2ea363[_0x22e958(0x1fa)]);}static[_0xa015b6(0x29a)](_0x1609bb,_0x21f3c4){const _0x410e1b=_0xa015b6,{text:_0x2915e3,color:_0x22f524}=_0x21f3c4;_0x1609bb['save'](),_0x1609bb[_0x410e1b(0x26d)]=_0x410e1b(0x1fd);const _0x40541a=_0x1609bb['measureText'](_0x2915e3)['width'],_0x2dd4c7=Math[_0x410e1b(0x422)](_0x40541a+0x2*ne,Re);_t(_0x1609bb,{'height':K,'radius':0x4,'width':_0x2dd4c7,'fill':_0x22f524}),_0x1609bb['fillStyle']=_0x410e1b(0x45c);const _0x23e90e=ne,_0x305127=K-lt,_0x4395f0=Re-0x2*ne;if(_0x40541a>_0x4395f0){let _0x26ab5a='',_0x65cb75=0x0;for(const _0x557f38 of _0x2915e3){const _0x3c5b94=_0x1609bb[_0x410e1b(0x3dd)](_0x557f38)[_0x410e1b(0x376)];if(_0x65cb75+_0x3c5b94<=_0x4395f0-_0x1609bb[_0x410e1b(0x3dd)]('...')[_0x410e1b(0x376)])_0x26ab5a+=_0x557f38,_0x65cb75+=_0x3c5b94;else{_0x26ab5a+=_0x410e1b(0x2e9);break;}}_0x1609bb['fillText'](_0x26ab5a,_0x23e90e,_0x305127);}else _0x1609bb[_0x410e1b(0x1f3)](_0x2915e3,_0x23e90e,_0x305127);_0x1609bb[_0x410e1b(0x281)]();}[_0xa015b6(0x326)](_0x215879){const _0x2c94cf=_0xa015b6;ee[_0x2c94cf(0x29a)](_0x215879,this);}}const re=_0xa015b6(0x3d1),ht=_0xa015b6(0x424),ut=_0xa015b6(0x3e2),k=0x6,dt=1.5,oe=0x4,ft=1.5,St=_0xa015b6(0x400);class De{constructor(_0xb30012,_0xaed0b2,_0x1b29f3,_0x56581f){const _0x4230af=_0xa015b6;h(this,_0x4230af(0x3d9),[]),h(this,_0x4230af(0x360),null),h(this,'_textBubble',null),h(this,_0x4230af(0x324),null),h(this,_0x4230af(0x246),null),h(this,_0x4230af(0x279),null),(this['_cursor']=_0xb30012,this[_0x4230af(0x38b)]=_0xaed0b2,this['_docSkeleton']=_0x1b29f3,this[_0x4230af(0x267)]=_0x56581f,this[_0x4230af(0x43f)]());}set[_0xa015b6(0x218)](_0x189a90){const _0x47d521=_0xa015b6;_0x189a90?(this['_anchorDot']&&this[_0x47d521(0x324)]['hide'](),this[_0x47d521(0x35c)]&&this[_0x47d521(0x35c)][_0x47d521(0x1f6)]()):(this[_0x47d521(0x324)]&&this[_0x47d521(0x324)]['show'](),this[_0x47d521(0x35c)]&&this[_0x47d521(0x35c)]['hide']());}[_0xa015b6(0x448)](){const _0x51d74f=_0xa015b6;for(const _0xda8208 of this['_shapes'])_0xda8208[_0x51d74f(0x448)]();this['_textBubble']&&this[_0x51d74f(0x35c)][_0x51d74f(0x448)](),this['_anchorDot']&&this['_anchorDot']['dispose'](),this[_0x51d74f(0x360)]&&this[_0x51d74f(0x360)]['dispose'](),this['_eventUnsubscribe']&&this[_0x51d74f(0x279)]();}[_0xa015b6(0x43f)](){const _0x4053c3=_0xa015b6;var _0x162da3;const {_docSkeleton:_0x4be616,_document:_0x266fd7}=this,{color:_0x46f472,name:_0x469b6b,ranges:_0x596ae7}=this[_0x4053c3(0x3f7)],_0x357724=_0x266fd7[_0x4053c3(0x27e)](),{docsLeft:_0x4edfc4,docsTop:_0x40f2b9}=_0x357724,_0x5aeb29=new b['NodePositionConvertToCursor'](_0x357724,_0x4be616);for(const {startOffset:_0xc35ce,endOffset:_0x274b83,rangeType:_0x5cc256,segmentId:_0x48956f,segmentPage:_0x38c7da,collapsed:_0x2edacf,isActive:_0x57a2eb}of _0x596ae7){const _0x166f07=_0x4be616[_0x4053c3(0x1e5)](_0xc35ce,!0x0,_0x48956f,_0x38c7da);let _0x3e338a=_0x4be616[_0x4053c3(0x1e5)](_0x274b83,!0x0,_0x48956f,_0x38c7da);if(_0x3e338a==null&&(_0x3e338a=_0x4be616[_0x4053c3(0x1e5)](_0x274b83-0x1,!0x1,_0x48956f,_0x38c7da)),_0x57a2eb){const {contentBoxPointGroup:_0x54338f}=_0x5aeb29[_0x4053c3(0x2ad)](_0x3e338a,_0x3e338a);if(_0x54338f[_0x4053c3(0x3c0)]===0x0)continue;this['_drawAnchor'](_0x46f472,_0x54338f,_0x4edfc4,_0x40f2b9,_0x469b6b),this[_0x4053c3(0x279)]=this[_0x4053c3(0x248)]();}if(_0x166f07&&_0x3e338a){if(_0x5cc256===a[_0x4053c3(0x3d3)][_0x4053c3(0x2e1)]){const _0x5ca8e4=new b[(_0x4053c3(0x286))](_0x357724,_0x4be616),{pointGroup:_0x157e59}=(_0x162da3=_0x5ca8e4[_0x4053c3(0x2ad)](_0x166f07,_0x3e338a))!=null?_0x162da3:{};if(_0x157e59==null||_0x157e59[_0x4053c3(0x3c0)]===0x0)continue;this[_0x4053c3(0x2db)](_0x46f472,_0x157e59,_0x4edfc4,_0x40f2b9);}else{if(!_0x2edacf){const {borderBoxPointGroup:_0x59a375}=_0x5aeb29['getRangePointData'](_0x166f07,_0x3e338a);if(_0x59a375[_0x4053c3(0x3c0)]===0x0)continue;this[_0x4053c3(0x2e4)](_0x46f472,_0x59a375,_0x4edfc4,_0x40f2b9);}}}}}['_drawAnchor'](_0x21f1e2,_0x530aac,_0x1ee5ba,_0x4faf54,_0x5b3844){const _0x23a47d=_0xa015b6,_0x4e0ce3=this[_0x23a47d(0x437)](_0x530aac),{left:_0x2bcd7e,top:_0x1ca764,height:_0xf11040}=_0x4e0ce3,_0x2999bb=this[_0x23a47d(0x212)](),_0x564dcb=ft/_0x2999bb,_0x126979=new p[(_0x23a47d(0x461))](re+a['Tools'][_0x23a47d(0x3c5)](k),{'left':_0x2bcd7e+_0x1ee5ba-_0x564dcb,'top':_0x1ca764+_0x4faf54,'height':_0xf11040,'width':dt,'fill':_0x21f1e2||p[_0x23a47d(0x425)](a[_0x23a47d(0x260)][_0x23a47d(0x2f4)],0x0),'strokeWidth':_0x564dcb,'stroke':St,'evented':!0x0});this['_anchor']=_0x126979,this[_0x23a47d(0x38b)][_0x23a47d(0x304)](_0x126979,b[_0x23a47d(0x398)]);const _0x277604=new p[(_0x23a47d(0x461))](re+a[_0x23a47d(0x3b0)][_0x23a47d(0x3c5)](k),{'left':_0x2bcd7e+_0x1ee5ba-_0x564dcb,'top':_0x1ca764+_0x4faf54-oe/0x2,'height':oe,'width':oe,'fill':_0x21f1e2||p[_0x23a47d(0x425)](a[_0x23a47d(0x260)][_0x23a47d(0x2f4)],0x0),'strokeWidth':0x0,'stroke':_0x21f1e2||p[_0x23a47d(0x425)](a['COLORS'][_0x23a47d(0x2f4)],0x0),'evented':!0x1});this[_0x23a47d(0x324)]=_0x277604,this[_0x23a47d(0x38b)][_0x23a47d(0x304)](_0x277604,b['TEXT_RANGE_LAYER_INDEX']);const _0x24396e=new ee(re+a[_0x23a47d(0x3b0)]['generateRandomId'](k),{'left':_0x2bcd7e+_0x1ee5ba-_0x564dcb,'top':_0x1ca764+_0x4faf54-K,'text':_0x5b3844,'color':_0x21f1e2});this[_0x23a47d(0x35c)]=_0x24396e,this['_scene'][_0x23a47d(0x304)](_0x24396e,b[_0x23a47d(0x398)]),this['_hover']=!0x1;}[_0xa015b6(0x248)](){const _0x56d579=_0xa015b6,_0xe9f033=this[_0x56d579(0x360)][_0x56d579(0x330)][_0x56d579(0x2a7)](()=>{const _0x3d1608=_0x56d579;this[_0x3d1608(0x218)]=!0x0;}),_0x33910f=this[_0x56d579(0x360)][_0x56d579(0x241)][_0x56d579(0x2a7)](()=>{const _0x549a4b=_0x56d579;this[_0x549a4b(0x246)]&&clearTimeout(this['_hideTimer']),this[_0x549a4b(0x246)]=setTimeout(()=>{const _0x533fab=_0x549a4b;this[_0x533fab(0x218)]=!0x1;},0x7d0);});return()=>{const _0x5ca7ec=_0x56d579;_0xe9f033[_0x5ca7ec(0x3de)](),_0x33910f[_0x5ca7ec(0x3de)]();};}[_0xa015b6(0x2e4)](_0x484409,_0x17bc91,_0x5d67a1,_0x55a552){const _0x5da6bc=_0xa015b6,_0x4b2d82=new a[(_0x5da6bc(0x21d))](_0x484409)['setAlpha'](0.2)[_0x5da6bc(0x426)](),_0x169540=new p[(_0x5da6bc(0x42c))](ht+a['Tools'][_0x5da6bc(0x3c5)](k),{'pointsGroup':_0x17bc91,'fill':_0x4b2d82||p[_0x5da6bc(0x425)](a[_0x5da6bc(0x260)][_0x5da6bc(0x2f4)],0.2),'left':_0x5d67a1,'top':_0x55a552,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x5da6bc(0x3d9)][_0x5da6bc(0x233)](_0x169540),this[_0x5da6bc(0x38b)][_0x5da6bc(0x304)](_0x169540,b['TEXT_RANGE_LAYER_INDEX']);}[_0xa015b6(0x2db)](_0x36b8af,_0x5bcdbd,_0x47735d,_0x5aaa27){const _0x22a373=_0xa015b6,_0x4e3ac5=new a[(_0x22a373(0x21d))](_0x36b8af)['setAlpha'](0.2)[_0x22a373(0x426)](),_0x224602=new p[(_0x22a373(0x42c))](ut+a[_0x22a373(0x3b0)][_0x22a373(0x3c5)](k),{'pointsGroup':_0x5bcdbd,'fill':_0x4e3ac5||p[_0x22a373(0x425)](a['COLORS'][_0x22a373(0x2f4)],0.2),'left':_0x47735d,'top':_0x5aaa27,'evented':!0x1,'debounceParentDirty':!0x1});this['_shapes']['push'](_0x224602),this[_0x22a373(0x38b)][_0x22a373(0x304)](_0x224602,b[_0x22a373(0x398)]);}['_getAnchorBounding'](_0x4a89b4){const _0x3afb91=_0x4a89b4[0x0],_0x4e82ff=_0x3afb91[0x0],_0x379900=_0x3afb91[0x2],{x:_0x56e1ef,y:_0x56aa35}=_0x4e82ff,{x:_0x1e6ced,y:_0xb6a703}=_0x379900;return{'left':_0x56e1ef,'top':_0x56aa35,'width':_0x1e6ced-_0x56e1ef,'height':_0xb6a703-_0x56aa35};}[_0xa015b6(0x212)](){const _0x413b71=_0xa015b6,{scaleX:_0x368686,scaleY:_0x57d34c}=this['_scene'][_0x413b71(0x328)]();return Math[_0x413b71(0x292)](_0x368686,_0x57d34c);}}var It=Object['getOwnPropertyDescriptor'],vt=(_0x1fb016,_0x29cd3e,_0x38de77,_0x25faee)=>{for(var _0x3e7ed8=_0x25faee>0x1?void 0x0:_0x25faee?It(_0x29cd3e,_0x38de77):_0x29cd3e,_0x1b58db=_0x1fb016['length']-0x1,_0x58a1a1;_0x1b58db>=0x0;_0x1b58db--)(_0x58a1a1=_0x1fb016[_0x1b58db])&&(_0x3e7ed8=_0x58a1a1(_0x3e7ed8)||_0x3e7ed8);return _0x3e7ed8;},W=(_0x294a35,_0x1c3bed)=>(_0x1a3c9b,_0x278185)=>_0x1c3bed(_0x1a3c9b,_0x278185,_0x294a35);let Ie=class extends a[_0xa015b6(0x321)]{constructor(_0x29b0a5,_0x5875c3,_0x4f2abb,_0x4c4ead,_0xa2540c){const _0x27a0ad=_0xa015b6;super(),h(this,_0x27a0ad(0x2ea),[]),h(this,'_cursors',[]),(this['_context']=_0x29b0a5,this[_0x27a0ad(0x322)]=_0x5875c3,this['_collabCursorController']=_0x4f2abb,this[_0x27a0ad(0x404)]=_0x4c4ead,this[_0x27a0ad(0x27c)]=_0xa2540c,this[_0x27a0ad(0x2cd)]());}[_0xa015b6(0x2cd)](){const _0xf9589c=_0xa015b6,_0x867b32=this['_context']['unitId'],_0x6292df=this[_0xf9589c(0x322)];this['disposeWithMe'](d[_0xf9589c(0x29f)]([this[_0xf9589c(0x3f4)][_0xf9589c(0x2f6)](_0x867b32),this[_0xf9589c(0x27c)]['currentTheme$']])[_0xf9589c(0x316)]($['map'](([_0x5b8032,_0x4e6794])=>({'skeleton':_0x6292df[_0xf9589c(0x2e8)](),'cursors':[..._0x5b8032[_0xf9589c(0x1e7)]()]['flatMap'](_0x2cf2b1=>({..._0x2cf2b1,'color':this[_0xf9589c(0x27c)]['getColorFromTheme'](_0x2cf2b1[_0xf9589c(0x21a)])}))})))[_0xf9589c(0x439)](_0x4635cd=>{const _0x2645bf=_0xf9589c;if(this[_0x2645bf(0x1f4)](),_0x4635cd){const {skeleton:_0x5e4cb5,cursors:_0x411083}=_0x4635cd;this['_updateCollabCursors'](_0x5e4cb5,_0x411083);}})),this[_0xf9589c(0x3ce)](),this[_0xf9589c(0x433)]();}['_updateCollabCursors'](_0x5ab014,_0x467a58){const _0x4d3857=_0xa015b6,{scene:_0x595ed0,mainComponent:_0x49bb31}=this[_0x4d3857(0x2a0)],_0x11bac0=_0x467a58[_0x4d3857(0x364)](_0x2f26a7=>new De(_0x2f26a7,_0x595ed0,_0x5ab014,_0x49bb31));this['_cursorShapes']=_0x11bac0,this['_cursors']=_0x467a58;}[_0xa015b6(0x274)](){const _0x8d7e7f=_0xa015b6;this[_0x8d7e7f(0x1f4)]();const {scene:_0x512b62,mainComponent:_0xcefc40}=this[_0x8d7e7f(0x2a0)],_0x41fbc4=this[_0x8d7e7f(0x322)]['getSkeleton'](),_0x3e9578=this['_cursors'][_0x8d7e7f(0x364)](_0x5edffb=>new De(_0x5edffb,_0x512b62,_0x41fbc4,_0xcefc40));this[_0x8d7e7f(0x2ea)]=_0x3e9578;}[_0xa015b6(0x1f4)](){const _0x45af59=_0xa015b6;this[_0x45af59(0x2ea)][_0x45af59(0x443)](_0x5d8e61=>_0x5d8e61[_0x45af59(0x448)]()),this[_0x45af59(0x2ea)]=[];}[_0xa015b6(0x433)](){const _0x21a0a9=_0xa015b6,_0x5a856f=[b[_0x21a0a9(0x456)]['id']];this[_0x21a0a9(0x28d)](this[_0x21a0a9(0x404)]['onCommandExecuted'](_0x34aedf=>{const _0x4e81ae=_0x21a0a9;_0x5a856f[_0x4e81ae(0x453)](_0x34aedf['id'])&&_0x34aedf[_0x4e81ae(0x436)][_0x4e81ae(0x2ab)]===this['_context'][_0x4e81ae(0x2ab)]&&this[_0x4e81ae(0x274)]();}));}['_initResize'](){const _0x2fd15f=_0xa015b6;this[_0x2fd15f(0x28d)](a[_0x2fd15f(0x41b)](this['_context']['engine']['onTransformChange$'])[_0x2fd15f(0x316)]($[_0x2fd15f(0x354)](_0xbbee24=>_0xbbee24[_0x2fd15f(0x340)]===p['TRANSFORM_CHANGE_OBSERVABLE_TYPE'][_0x2fd15f(0x1fe)]),$[_0x2fd15f(0x21f)](0x10))['subscribe'](()=>{const _0x45f9ac=_0x2fd15f;this[_0x45f9ac(0x274)]();}));}};Ie=vt([W(0x1,a[_0xa015b6(0x2b1)](Y[_0xa015b6(0x45e)])),W(0x2,a['Inject'](x)),W(0x3,a['ICommandService']),W(0x4,a[_0xa015b6(0x2b1)](a['ThemeService']))],Ie);const gt=0x1,mt=1.5;class Ae extends p[_0xa015b6(0x350)]{constructor(_0x742eb,_0x180520){const _0x3b5cd1=_0xa015b6;super(_0x742eb,_0x180520),h(this,_0x3b5cd1(0x44b)),h(this,_0x3b5cd1(0x27d),!0x1),h(this,'_range'),h(this,_0x3b5cd1(0x2bc),''),h(this,'_labelPosition','top'),h(this,'_backgroundColor'),(_0x180520&&this['setShapeProps'](_0x180520),this[_0x3b5cd1(0x330)]['subscribeEvent'](()=>this['setShapeProps']({'hovered':!0x0})),this[_0x3b5cd1(0x241)][_0x3b5cd1(0x2a7)](()=>this[_0x3b5cd1(0x44a)]({'hovered':!0x1})));}['setShapeProps'](_0x47b199){const _0x396c68=_0xa015b6;var _0x1f6aef,_0xaa28e7,_0x394db9,_0x5c7c76,_0x49026f,_0x5cfc48;this[_0x396c68(0x44b)]=(_0x1f6aef=_0x47b199[_0x396c68(0x21a)])!=null?_0x1f6aef:this[_0x396c68(0x44b)],this['_hovered']=(_0xaa28e7=_0x47b199[_0x396c68(0x455)])!=null?_0xaa28e7:this[_0x396c68(0x27d)],this['_range']=(_0x394db9=_0x47b199[_0x396c68(0x2b4)])!=null?_0x394db9:this[_0x396c68(0x387)],this['_name']=(_0x5c7c76=_0x47b199[_0x396c68(0x238)])!=null?_0x5c7c76:this['_name'],this[_0x396c68(0x451)]=(_0x49026f=_0x47b199[_0x396c68(0x284)])!=null?_0x49026f:this['_labelPosition'],this[_0x396c68(0x3e7)]=(_0x5cfc48=_0x47b199[_0x396c68(0x42b)])!=null?_0x5cfc48:this[_0x396c68(0x3e7)],this['transformByState']({'width':_0x47b199[_0x396c68(0x376)],'height':_0x47b199[_0x396c68(0x420)]});}['onMouseMove'](_0x160b7a){const _0x275773=_0xa015b6,{row:_0x1418d3,column:_0x28d0b2}=_0x160b7a;if(_0x1418d3>=this[_0x275773(0x387)]['startRow']&&_0x1418d3<=this[_0x275773(0x387)][_0x275773(0x20e)]&&_0x28d0b2>=this[_0x275773(0x387)]['startColumn']&&_0x28d0b2<=this[_0x275773(0x387)][_0x275773(0x299)]){this[_0x275773(0x44a)]({'hovered':!0x0});return;}this[_0x275773(0x44a)]({'hovered':!0x1});}[_0xa015b6(0x303)](_0x4e367f){return!0x1;}['_draw'](_0xa135fe){const _0x2574e7=_0xa015b6;p[_0x2574e7(0x461)][_0x2574e7(0x29a)](_0xa135fe,{'width':this[_0x2574e7(0x376)],'height':this[_0x2574e7(0x420)],'strokeWidth':mt,'stroke':this[_0x2574e7(0x44b)],'evented':!0x1,'fill':this['_backgroundColor']}),this[_0x2574e7(0x27d)]&&(_0xa135fe['save'](),_0xa135fe[_0x2574e7(0x21c)](0x1,0x0,0x0,0x1,this[_0x2574e7(0x376)],this['_labelPosition']==='bottom'?0x0:-0x14),ee[_0x2574e7(0x29a)](_0xa135fe,{'text':this['_name'],'color':this[_0x2574e7(0x44b)]}),_0xa135fe[_0x2574e7(0x281)]());}}var Ct=Object[_0xa015b6(0x2ed)],pt=(_0x2955cf,_0x36f2ab,_0x5bcb9a,_0x4b587b)=>{const _0x3b22c0=_0xa015b6;for(var _0x15438a=_0x4b587b>0x1?void 0x0:_0x4b587b?Ct(_0x36f2ab,_0x5bcb9a):_0x36f2ab,_0x295e62=_0x2955cf[_0x3b22c0(0x3c0)]-0x1,_0x276828;_0x295e62>=0x0;_0x295e62--)(_0x276828=_0x2955cf[_0x295e62])&&(_0x15438a=_0x276828(_0x15438a)||_0x15438a);return _0x15438a;},ae=(_0x16e7ef,_0x3eba80)=>(_0x1f08b0,_0x3fc7a8)=>_0x3eba80(_0x1f08b0,_0x3fc7a8,_0x16e7ef);const bt=0x1389;let ve=class extends a[_0xa015b6(0x321)]{constructor(_0x23b9c4,_0x20b018,_0x130f84,_0xa3f974){const _0x447df8=_0xa015b6;super(),h(this,_0x447df8(0x36e),new Set()),h(this,'_lastPointer',null),(this['_context']=_0x23b9c4,this[_0x447df8(0x325)]=_0x20b018,this['_collabCursorController']=_0x130f84,this['_themeService']=_0xa3f974,this[_0x447df8(0x2cd)]());}[_0xa015b6(0x2cd)](){const _0x41d65f=_0xa015b6;this[_0x41d65f(0x325)][_0x41d65f(0x28e)][_0x41d65f(0x316)]($[_0x41d65f(0x37e)](this[_0x41d65f(0x369)]),$['switchMap'](_0xab649=>{const _0x482052=_0x41d65f;if(_0xab649){const _0x3c7fd7=_0xab649[_0x482052(0x3a3)];return d['combineLatest'](this[_0x482052(0x3f4)][_0x482052(0x2f6)](this[_0x482052(0x2a0)][_0x482052(0x2ab)]),this[_0x482052(0x27c)][_0x482052(0x459)])[_0x482052(0x316)]($[_0x482052(0x364)](([_0x52f35f,_0x38f6f5])=>{const _0x24ee54=_0x482052,_0x209970=new Map();return _0x52f35f[_0x24ee54(0x443)]((_0x3347e8,_0x2dd875)=>{const _0x440a16=_0x24ee54;if(_0x3347e8[_0x440a16(0x34a)]===_0x3c7fd7){const _0x12204b={..._0x3347e8};_0x12204b[_0x440a16(0x21a)]=this[_0x440a16(0x27c)][_0x440a16(0x361)](_0x3347e8[_0x440a16(0x21a)]),_0x209970[_0x440a16(0x380)](_0x2dd875,_0x12204b);}}),{'skeleton':_0xab649,'cursors':_0x209970};}));}return d['of']({'skeleton':null,'cursors':new Map()});}))[_0x41d65f(0x439)](({skeleton:_0x2c6cf4,cursors:_0x393478})=>{const _0x2a2b64=_0x41d65f;this['_removeCollabCursors'](),_0x2c6cf4&&this[_0x2a2b64(0x3c6)](_0x2c6cf4,_0x393478);}),this['_sheetSkeletonManagerService']['currentSkeleton$'][_0x41d65f(0x439)](_0x5490b4=>{const _0x4e88e5=_0x41d65f;if(_0x5490b4==null)return;const {skeleton:_0x3cf6f8}=_0x5490b4,{scene:_0x161626}=this['_context'];_0x161626[_0x4e88e5(0x336)][_0x4e88e5(0x2a7)](a['debounce'](_0x58a0fe=>{const _0x4b3396=_0x4e88e5;var _0x4c6b08,_0xaacf58;const {offsetX:_0x3e88a9,offsetY:_0x39a2c3}=_0x58a0fe,{x:_0x2bd9ab,y:_0x19961b}=_0x161626[_0x4b3396(0x257)](p['Vector2'][_0x4b3396(0x3bb)]([_0x3e88a9,_0x39a2c3])),{scaleX:_0x443c0b,scaleY:_0x387dfb}=_0x161626[_0x4b3396(0x328)](),_0x48f18d=_0x161626[_0x4b3396(0x3a0)](p[_0x4b3396(0x413)][_0x4b3396(0x262)]),_0x50b87f=_0x161626[_0x4b3396(0x288)](p[_0x4b3396(0x38d)][_0x4b3396(0x3bb)]([_0x2bd9ab,_0x19961b]),_0x48f18d),_0x23a19b=_0x3cf6f8[_0x4b3396(0x3aa)](_0x3e88a9,_0x39a2c3,_0x443c0b,_0x387dfb,_0x50b87f);((_0x4c6b08=this['_lastPointer'])==null?void 0x0:_0x4c6b08[_0x4b3396(0x457)])===_0x23a19b[_0x4b3396(0x457)]&&((_0xaacf58=this['_lastPointer'])==null?void 0x0:_0xaacf58[_0x4b3396(0x3fb)])===_0x23a19b[_0x4b3396(0x3fb)]||this[_0x4b3396(0x36e)][_0x4b3396(0x443)](_0x5c00b8=>{const _0x4da549=_0x4b3396;_0x5c00b8[_0x4da549(0x429)](_0x23a19b);});},0x64));});}['_updateCollabCursors'](_0x6abca9,_0x11755e){const _0x318468=_0xa015b6;var _0x26e31c;const _0x57dd9d=(_0x26e31c=this[_0x318468(0x325)]['getCurrent']())==null?void 0x0:_0x26e31c[_0x318468(0x45a)];if(!_0x57dd9d)return;const _0x337a3e=this['_getSheetObject']();if(!_0x337a3e)return;this[_0x318468(0x36e)][_0x318468(0x443)](_0x3e4ad9=>{_0x3e4ad9['makeDirty']();});const {scene:_0x159ab8}=_0x337a3e,_0xaa2364=Et(Array['from'](_0x11755e['values']()))[_0x318468(0x364)](_0x11297b=>{const _0x34f780=_0x318468,{color:_0x228994,range:_0x4d8399,name:_0x552169,selection:_0x932bcb,sheetID:_0x6fc820}=_0x11297b,{startColumn:_0x2221d8,startRow:_0x2fe902,endColumn:_0x945fe9,endRow:_0x18c90d}=_0x4d8399,_0x30b6d5=X[_0x34f780(0x368)](_0x2fe902,_0x2221d8,_0x159ab8,_0x57dd9d),_0x36956d=X['getCoordByCell'](_0x18c90d,_0x945fe9,_0x159ab8,_0x57dd9d),{columnHeaderHeightAndMarginTop:_0x3bd4d9}=_0x57dd9d,{startX:_0x4dba40,startY:_0x22824a}=_0x30b6d5,{endX:_0x4b5dbf,endY:_0x1bc747}=_0x36956d,_0x47d143=_0x4b5dbf-_0x4dba40,_0x266b0f=_0x1bc747-_0x22824a,_0x5e52fa={'labelPosition':_0x22824a-_0x3bd4d9>=K?_0x34f780(0x378):_0x34f780(0x35b),'sheetID':_0x6fc820,'range':_0x4d8399,'color':_0x228994,'name':_0x552169,'selection':_0x932bcb,'left':_0x4dba40,'top':_0x22824a,'width':_0x47d143,'height':_0x266b0f,'evented':!0x1,'zIndex':bt};return new Ae(_0x552169,_0x5e52fa);});_0x159ab8[_0x318468(0x25b)](_0xaa2364,gt),this['_cursors']=new Set(_0xaa2364);}[_0xa015b6(0x1f4)](){const _0x406a39=_0xa015b6;var _0x43d6bf;(_0x43d6bf=this[_0x406a39(0x36e)])==null||_0x43d6bf[_0x406a39(0x443)](_0x12574f=>_0x12574f[_0x406a39(0x448)]());}[_0xa015b6(0x3fd)](){const _0x2a067a=_0xa015b6;return X[_0x2a067a(0x355)](this['_context'][_0x2a067a(0x39a)],this[_0x2a067a(0x2a0)]);}};ve=pt([ae(0x1,a[_0xa015b6(0x2b1)](X[_0xa015b6(0x2bd)])),ae(0x2,a['Inject'](x)),ae(0x3,a[_0xa015b6(0x2b1)](a[_0xa015b6(0x254)]))],ve);function Et(_0x486559){const _0x297bf3=_0xa015b6,_0x54553f=new Map();return _0x486559[_0x297bf3(0x443)](_0x353bb6=>{const _0x353c20=_0x297bf3;if(_0x54553f[_0x353c20(0x22b)](_0x353bb6['selection'])){const _0x40c9fe=_0x54553f[_0x353c20(0x3ab)](_0x353bb6[_0x353c20(0x39b)]);_0x40c9fe[_0x353c20(0x238)]+=',\x20'+_0x353bb6['name'];}else _0x54553f[_0x353c20(0x380)](_0x353bb6[_0x353c20(0x39b)],_0x353bb6);}),Array[_0x297bf3(0x39c)](_0x54553f['values']());}var E=function(){const _0x549628=_0xa015b6;return E=Object['assign']||function(_0x395ffd){const _0x39a891=_0x407d;for(var _0x3a52c2,_0x2c16dc=0x1,_0x1dfcfd=arguments[_0x39a891(0x3c0)];_0x2c16dc<_0x1dfcfd;_0x2c16dc++){_0x3a52c2=arguments[_0x2c16dc];for(var _0x38635c in _0x3a52c2)Object[_0x39a891(0x39e)][_0x39a891(0x1e8)]['call'](_0x3a52c2,_0x38635c)&&(_0x395ffd[_0x38635c]=_0x3a52c2[_0x38635c]);}return _0x395ffd;},E[_0x549628(0x382)](this,arguments);},Tt=function(_0x49be8e,_0x73219b){const _0xb134be=_0xa015b6;var _0x34c742={};for(var _0x2982e0 in _0x49be8e)Object[_0xb134be(0x39e)][_0xb134be(0x1e8)][_0xb134be(0x44c)](_0x49be8e,_0x2982e0)&&_0x73219b[_0xb134be(0x33d)](_0x2982e0)<0x0&&(_0x34c742[_0x2982e0]=_0x49be8e[_0x2982e0]);if(_0x49be8e!=null&&typeof Object[_0xb134be(0x3a1)]=='function'){for(var _0x97f0b1=0x0,_0x2982e0=Object[_0xb134be(0x3a1)](_0x49be8e);_0x97f0b1<_0x2982e0['length'];_0x97f0b1++)_0x73219b[_0xb134be(0x33d)](_0x2982e0[_0x97f0b1])<0x0&&Object[_0xb134be(0x39e)][_0xb134be(0x220)][_0xb134be(0x44c)](_0x49be8e,_0x2982e0[_0x97f0b1])&&(_0x34c742[_0x2982e0[_0x97f0b1]]=_0x49be8e[_0x2982e0[_0x97f0b1]]);}return _0x34c742;},pe=M[_0xa015b6(0x3e1)](function(_0x5babfe,_0x480365){const _0x1fabe0=_0xa015b6;var _0x3321de=_0x5babfe[_0x1fabe0(0x22e)],_0xbc34b1=_0x5babfe['id'],_0x273990=_0x5babfe[_0x1fabe0(0x201)],_0x596e41=_0x5babfe[_0x1fabe0(0x465)],_0x5e5920=Tt(_0x5babfe,[_0x1fabe0(0x22e),'id','className',_0x1fabe0(0x465)]),_0x47f1c2='univerjs-icon\x20univerjs-icon-'[_0x1fabe0(0x30b)](_0xbc34b1,'\x20')[_0x1fabe0(0x30b)](_0x273990||'')['trim'](),_0x4368df=M['useRef']('_'[_0x1fabe0(0x30b)](Dt()));return we(_0x3321de,''[_0x1fabe0(0x30b)](_0xbc34b1),{'defIds':_0x3321de['defIds'],'idSuffix':_0x4368df['current']},E({'ref':_0x480365,'className':_0x47f1c2},_0x5e5920),_0x596e41);});function we(_0x21f942,_0x184f09,_0x4e34af,_0x5e4cc3,_0x412ec0){const _0x4ed473=_0xa015b6;return M[_0x4ed473(0x43a)](_0x21f942[_0x4ed473(0x3a5)],E(E({'key':_0x184f09},Ot(_0x21f942,_0x4e34af,_0x412ec0)),_0x5e4cc3),(Rt(_0x21f942,_0x4e34af)['children']||[])[_0x4ed473(0x364)](function(_0x5ab6cf,_0x233088){const _0xf0ef88=_0x4ed473;return we(_0x5ab6cf,''[_0xf0ef88(0x30b)](_0x184f09,'-')[_0xf0ef88(0x30b)](_0x21f942[_0xf0ef88(0x3a5)],'-')['concat'](_0x233088),_0x4e34af,void 0x0,_0x412ec0);}));}function Ot(_0x542549,_0x1da4b8,_0x209a27){const _0x2d2961=_0xa015b6;var _0x5c6d72=E({},_0x542549[_0x2d2961(0x264)]);_0x209a27!=null&&_0x209a27['colorChannel1']&&_0x5c6d72[_0x2d2961(0x45d)]===_0x2d2961(0x332)&&(_0x5c6d72[_0x2d2961(0x45d)]=_0x209a27[_0x2d2961(0x332)]),_0x542549['tag']==='mask'&&_0x5c6d72['id']&&(_0x5c6d72['id']=_0x5c6d72['id']+_0x1da4b8[_0x2d2961(0x313)]),Object[_0x2d2961(0x434)](_0x5c6d72)[_0x2d2961(0x443)](function(_0x22664a){const _0x5e5f4b=_0x2d2961;var _0x4c8220=_0x22664a[0x0],_0x1d8bb6=_0x22664a[0x1];_0x4c8220===_0x5e5f4b(0x22d)&&typeof _0x1d8bb6==_0x5e5f4b(0x3d8)&&(_0x5c6d72[_0x4c8220]=_0x1d8bb6[_0x5e5f4b(0x253)](/url\(#(.*)\)/,'url(#$1'[_0x5e5f4b(0x30b)](_0x1da4b8[_0x5e5f4b(0x313)],')')));});var _0x3b94e6=_0x1da4b8[_0x2d2961(0x21b)];return!_0x3b94e6||_0x3b94e6[_0x2d2961(0x3c0)]===0x0||(_0x542549[_0x2d2961(0x3a5)]===_0x2d2961(0x390)&&_0x5c6d72[_0x2d2961(0x43b)]&&(_0x5c6d72[_0x2d2961(0x43b)]=_0x5c6d72[_0x2d2961(0x43b)]+_0x1da4b8['idSuffix']),Object[_0x2d2961(0x434)](_0x5c6d72)['forEach'](function(_0x543f81){const _0x3369b6=_0x2d2961;var _0x228235=_0x543f81[0x0],_0x4a9c35=_0x543f81[0x1];typeof _0x4a9c35==_0x3369b6(0x3d8)&&(_0x5c6d72[_0x228235]=_0x4a9c35[_0x3369b6(0x253)](/url\(#(.*)\)/,_0x3369b6(0x30d)[_0x3369b6(0x30b)](_0x1da4b8[_0x3369b6(0x313)],')')));})),_0x5c6d72;}function Rt(_0x132781,_0x3b6cce){const _0x5811d6=_0xa015b6;var _0x3f3ab7,_0x570616=_0x3b6cce[_0x5811d6(0x21b)];return!_0x570616||_0x570616['length']===0x0?_0x132781:_0x132781[_0x5811d6(0x3a5)]===_0x5811d6(0x367)&&(!((_0x3f3ab7=_0x132781[_0x5811d6(0x256)])===null||_0x3f3ab7===void 0x0)&&_0x3f3ab7[_0x5811d6(0x3c0)])?E(E({},_0x132781),{'children':_0x132781[_0x5811d6(0x256)]['map'](function(_0xad772d){const _0x5cedd5=_0x5811d6;return typeof _0xad772d[_0x5cedd5(0x264)]['id']==_0x5cedd5(0x3d8)&&_0x570616&&_0x570616[_0x5cedd5(0x33d)](_0xad772d[_0x5cedd5(0x264)]['id'])>-0x1?E(E({},_0xad772d),{'attrs':E(E({},_0xad772d[_0x5cedd5(0x264)]),{'id':_0xad772d[_0x5cedd5(0x264)]['id']+_0x3b6cce[_0x5cedd5(0x313)]})}):_0xad772d;})}):_0x132781;}function Dt(){const _0x3b3a0d=_0xa015b6;return Math[_0x3b3a0d(0x23f)]()[_0x3b3a0d(0x3ad)](0x24)['substring'](0x2,0x8);}function _0x521e(){const _0x541bf5=['Error','SNAPSHOT_INVALID_SNAPSHOT','DocSelectionManagerService','_assignedColors','rxjs','indexOf','application/json','_clearOtherTimers','type','YUUMI_AI_RUN_FAILED','RefRangeService','wsSessionTicketUrl','Injector','getMember','_colorAssignService','react','UniverCollaborationClientPlugin','1209840uaIvhR','sheetID','OFFLINE','UniverCollaborationClientUIPlugin','OnLineSingle','_localeService','code','Shape','runId','startsWith','SheetsSelectionsService','filter','getSheetObject','svg','getUnitId','none','contains','send','bottom','_textBubble','yellow.400','CHANGESET_REVISION_CONFILICT','@univerjs/network','_anchor','getColorFromTheme','handleMoveRange','mergeOverrideWithDependencies','map','on-line-single_clip0_910_349','_unitOnClients','defs','getCoordByCell','dispose$','ICommandService','registerDependencies','getDocRanges','CollaborationDataLoaderController','_cursors','DocStateChangeManagerService','_selfUnitIDs','serializeRangeWithSheet','_colorIndex','CollaborationSocketService','registerBeforeClose','getFocusedUnit','width','389550CuABsV','top','save','DEFAULT_WS_SESSION_TICKET_URL','pushState','_entities','lineTo','takeUntil','jsx','set','TOO_MANY_REQUESTS','apply','@univerjs/ui','_config','DeleteRangeMoveUpCommandId','collabStatus.notCollab','_range','entityInit$','115riPjNm','MOBILE_HAS_BEEN_BOUND','_scene','Plugin','Vector2','WebBrowserSingleActiveUnitService','setInterval','use','CollaborationUIEventService','currentColor','registerRefRange','LICENSE_DISTRO_REJECTED','_renderManagerService','_handleHeartbeatEvent','getSheetId','TEXT_RANGE_LAYER_INDEX','editingUnit','unit','selection','from','with','prototype','YUUMI_PROMPT_MAX_TOKENS_EXCEEDED','getViewport','getOwnPropertySymbols','transformRemoteChangeset','sheetId','error','tag','setConfig','Disposable','INVITE_CODE_ALREADY_BOUND','cursorInfo','getCellPositionByOffset','get','UNDEFINED','toString','univer-flex\x20univer-mr-2\x20univer-text-xl','textRanges','Tools','activeSheet$','UNRECOGNIZED','getTypeOfUnitDisposed$','executeCommand','APPLY_DUPLICATED','LICENSE_MAX_UNITS_EXCEEDED','origin','transformMutation','RemoveRowCommandId','requireSession','FromArray','transformIMECache','@univerjs/sheets-ui','M0\x200H16V16H0z','MemberService','length','_getSaveTimeout','_logService','ILocalCacheService','getRenderById','generateRandomId','_updateCollabCursors','undoState','_transformUndoRedoStack','switchMap','assign','_roomMembers$','IUniverInstanceService','_onCursorUpdate','_initResize','useCallback','ONLINE','collab-text-anchor-','_removeClearOtherTimer','DOC_RANGE_TYPE','green.600','@univerjs/docs','NOT_FOUND','roomMembers','string','_shapes','defineProperty','popstate','_heartbeatTimer','measureText','unsubscribe','disposeUnit','_docTransformIMECacheService','forwardRef','collab-rect-range-','AWAITING','_onCursorDelete','debounceTime','ITransformService','_backgroundColor','data','unload','ranges','0\x200\x2016\x2016','/run/','getActiveSheet','YUUMI_SUBSCRIPTION_NOT_FOUND','_cursorInfo$','YUUMI_ALL_TABLES_IS_INVALID','next','_urlService','jsxs','_collabCursorController','LICENSE_EXPORT_SIZE_EXCEEDED','selections','_cursor','_toggleOffline','roomMembers$','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','row','_registerRenderDependencies','_getSheetObject','MoveRangeCommandId','COMPLETION_FINISHED','rgba(255,\x20255,\x20255,\x200.01)','useDependency','MUTATION','CLOSE_ROOM','_commandService','m2Prime','getActiveRange','DesktopCollaborationStatusDisplayController','arc','path','CollaborationUIEventId','Workbook','_startSheetCollabCursor','Failed','@univerjs/engine-formula','EMAIL_HAS_BEEN_BOUND','createInstance','INVALID_INVITE_CODE','symbol','SHEET_VIEWPORT_KEY','IConfigService','@univerjs-pro/collaboration-client','_docSyncEditingCollabCursorService','getSheetBySheetId','Warning','SessionStatus','div','fromEventSubject','[CollaborationDataLoaderController]','isEditing','setItem','registerRenderModule','height','mutations','min','event$','collab-text-range-','getColor','toRgbString','BrowserCollaborationSocketService','TEXT','onMouseMove','isTransformMutationsWithChangesetSuccess','backgroundColor','RegularPolygon','_docClipboardService','APPLY_REJECT','some','SetWorksheetActivateCommand','_updateSubUnitFromURLParams','handleInsertCol','_initCommandExecutedListener','entries','_initDependencies','params','_getAnchorBounding','assignAColorForMemberID','subscribe','createElement','xlink:href','_session','deserializeRangeWithSheet','INVITE_CODE_REQUIRED','_render','_disabled','handleInsertRangeMoveRight','imageSourceType','forEach','_online','IImageIoService','WebURLService','Unknown\x20user','dispose','reconnect','setShapeProps','_color','call','_send','_setupSubUnitSync','actions','YUUMI_UNABLE_LOAD_URL','_labelPosition','exhaustSavingTask','includes','_startDocCollabCursor','hovered','SetDocZoomRatioOperation','column','EffectRefRangId','currentTheme$','skeleton','DataLoaderService','#FFF','fill','DocSkeletonManagerService','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','YUUMI_TABLE_NOT_FOUND_IN_UNIT','Rect','getParam','0\x200\x2017\x2016','YUUMI_RATE_OVER_LIMIT','extend','collaboration-client-ui.config','touchDependencies','findNodePositionByCharIndex','handleIRemoveCol','values','hasOwnProperty','deepClone','UPDATE_CURSOR','_configService','CollaborationEvent','IURLService','url(#on-line-single_clip0_910_349)','_univerInstanceService','fillRule','_collabSessionService','_createSocketURL','fillText','_removeCollabCursors','UNAUTHENTICATED','show','subUnitId','_toggleOnline','DocCollaborationEntity','text','_scheduleSaving','split','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','resize','_dataLoaderService','off-line-single','className','UNIVER_COLLABORATION_CLIENT_WEB_PLUGIN','_httpService','UNIVER_SHEET','_updateURLWithCurrentState','source','onLocalMutation','LICENSE_IMPORT_SIZE_EXCEEDED','delete','transformSelections','NOT_COLLAB','asObservable','ALREADY_EXISTS','endRow','JOIN_ROOM_FAILED','getValue','_notificationService','_getScale','fromEvent','ACTIVE_UNIT_EVENT_CHANNEL','override','PY_RUNTIME_SCRIPT_ERROR','_handleLeaveEvent','_hover','then','color','defIds','transform','ColorKit','all','throttleTime','propertyIsEnumerable','RemoteUniscriptService','setStateCache','_updateLocalCursor','off-line-single_clip0_910_343','useObservable','_onRefRangeChange','611468JSVKZo','_handleEvent','_docStateChangeManagerService','RevisionService','has','26766tpwfuW','mask','icon','_collaborationUIEventService','setActiveRange','getMemberID','_saveCache','push','_initEntityListener','onStarting','IRemoteInstanceService','transformMutationsWithChangeset','name','getUndoRedoMutationParamsCache','merge','onCommandExecuted','executionId','onRendered','setUndoRedoMutationParamsCache','random','sessionStatus$','onPointerLeave$','_transformPreviousActiveRange','YUUMI_ASYNCIO_CANCELLED','CollaborationSessionService','_status$','_hideTimer','handleIRemoveRow','_handleHover','MessageType','collabStatus.synced','BuiltInUIPart','2471139WFwlvt','HEADER_MENU','rxjs/operators','loadUnit','_handleJoinEvent','collabCursorState$','UniverIcon','replace','ThemeService','debounce','children','getRelativeToViewportCoord','_cachedData','SNAPSHOT_HAS_BEEN_REMOVED','_id','addObjects','155090HjFAdt','blue.400','IDocClipboardService','ENSURE_SNAPSHOT_EXECUTION','COLORS','key','VIEW_MAIN','_docTransformSelectionsService','attrs','clearTimeout','OTHER_CLIENTS_EDITING','_document','doc.mutation.rich-text-editing','stringify','LocaleService','cursorInfo$','collabStatus.syncing','font','_ensureSubject','isTransformMutationFailure','univer-flex\x20univer-items-center','_getSessionTicket','_registerDependencies','collab-client.tooltip.reconnect','_refreshCollabCursors','Module','Rectangle','parse','_messageService','_eventUnsubscribe','add','memberID','_themeService','_hovered','getOffsetConfig','_revisionService','loadOfflineData','restore','registerComponent','_unitStatus','labelPosition','displayName','NodePositionConvertToRectRange','urlChange$','getVpScrollXYInfoByPosToVp','_docTransformStateCacheService','redoState','clsx','CollaborationStatusDisplay','disposeWithMe','currentSkeleton$','uni.network.url-service','eventID','1em','max','[RemoteUniscriptService]:\x20no\x20focused\x20unit','_collaborationController','NO_OTHER_CLIENTS_EDITING','toDisposable','getStateCache','APPLY_PERMISSION_DENIED','endColumn','drawWith','handleInsertRow','IBeforeCloseService','PERMISSION_DENIED','INVITE_CODE_HAS_BEEN_UES','combineLatest','_context','collabStatus.offline','getConfig','getCurrentUnitForType','round','UNIVER_DOC','_injector','subscribeEvent','newValue','_scheduleHeartbeat','replaceState','unitId','replaceDocRanges','getRangePointData','_localStorageService','clearInterval','_doCreateSocket','Inject','unshift','focused$','range','_entityInit$','APPLY_REVISION_CONFILICT','InsertRangeMoveDownCommandId','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','RemoveColCommandId','collabStatus.fetchMiss','search','_name','SheetSkeletonManagerService','SetTextSelectionsOperation','_localCacheService','ILogService','USER_NOT_INVITED_CODE','searchParams','size','saveTaskMap','url(#off-line-single_clip0_910_343)','INVALID_ARGUMENT','CollaborationController','_initStatusComponent','collaboration.closeRoom','_saveTaskMap','session.collaboration-timeout','complete','_init','YUUMI_URL_COL_OUT_OF_RANGE','enableLocalCache','_initStatusListener','collaboration.single-unit.warning','getUniverSheetInstance','OffLineSingle','addEventListener','getCurrentRevOfUnit','_refRangeService','init','IMessageService','createSocket','_syncEditingCollabCursorService','_drawRectRange','_transformHistoryAndStateStack','UniverInstanceType','removeParam','react/jsx-runtime','Subject','RECT','DocIMEInputManagerService','_instanceService','_drawTextRange','setParam','DependentOn','UnitStatus','getSkeleton','...','_cursorShapes','addClipboardHook','runRefRangeMutations','getOwnPropertyDescriptor','InsertRangeMoveRightCommandId','CollaborationStatus','#fff','SUBMIT_CHANGESET_TIMEOUT','subunit','_imageIoService','black','@univerjs/engine-render','getCollabCursors$','getLocalCacheKey','_memberService','permission.content','CONNECTOR_DATA_TOO_LARGE','unitID','_transformService','pluginName','SetSelectionsOperation','SOCKET_FAILED','DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT','red.300','history','triggerDblclick','addObject','runOnServer','APPLY_NON_SEQUENTIAL_REVISION','@univerjs/rpc','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','location','beginPath','concat','INTERNAL_ERROR','url(#$1','translate(.97)','getTypeOfUnitAdded$','IUIPartsService','session.will-retry','body','idSuffix','evenodd','SOCKET_FAILED_RETRY','pipe','USERS_LEAVE','3vgZlvZ','purple.300','ISocketService','debug','HTTPService','_collabCursorState$','transformStateCache','ILocalStorageService','m1Prime','RxDisposable','_docSkeletonManagerService','permission.title','_anchorDot','_sheetSkeletonManagerService','_draw','IRenderManagerService','getAncestorScale','href','AWAITING_WITH_PENDING','WECHAT_HAS_BEEN_BOUND','_initEvent','ticket','setTimeout','_scheduleClearOtherTimer','onPointerEnter$','BehaviorSubject','colorChannel1','73874BbmpOM','_getMergeRange','shareReplay','onPointerMove$','syncEditingCollabCursor'];_0x521e=function(){return _0x541bf5;};return _0x521e();}pe[_0xa015b6(0x285)]=_0xa015b6(0x252);var Ut={'tag':_0xa015b6(0x356),'attrs':{'fill':_0xa015b6(0x358),'viewBox':_0xa015b6(0x3eb),'width':_0xa015b6(0x291),'height':'1em'},'children':[{'tag':'g','attrs':{'clipPath':_0xa015b6(0x2c5)},'children':[{'tag':_0xa015b6(0x409),'attrs':{'stroke':'currentColor','d':_0xa015b6(0x45f),'strokeLinecap':_0xa015b6(0x2a4),'strokeLinejoin':_0xa015b6(0x2a4),'strokeWidth':1.2}}]},{'tag':'defs','attrs':{},'children':[{'tag':'clipPath','attrs':{'id':_0xa015b6(0x224)},'children':[{'tag':'path','attrs':{'fill':_0xa015b6(0x2f0),'d':'M0\x200H16V16H0z'}}]}]}],'defIds':[_0xa015b6(0x224)]},ye=M[_0xa015b6(0x3e1)](function(_0x1fc1de,_0x31d760){const _0x4d997b=_0xa015b6;return M[_0x4d997b(0x43a)](pe,Object[_0x4d997b(0x3ca)]({},_0x1fc1de,{'id':_0x4d997b(0x200),'ref':_0x31d760,'icon':Ut}));});ye[_0xa015b6(0x285)]=_0xa015b6(0x2d3);var Nt={'tag':_0xa015b6(0x356),'attrs':{'fill':'none','viewBox':_0xa015b6(0x463),'width':_0xa015b6(0x291),'height':_0xa015b6(0x291)},'children':[{'tag':'g','attrs':{'clipPath':_0xa015b6(0x1ee)},'children':[{'tag':'path','attrs':{'stroke':_0xa015b6(0x392),'d':'M4.5865\x2011.6499C3.36983\x2011.6499\x201.6665\x2011.1024\x201.6665\x208.9124C1.6665\x206.3574\x204.2215\x205.8099\x204.9515\x205.8099C5.3165\x204.5324\x206.0465\x202.5249\x208.9665\x202.5249C11.5215\x202.5249\x2012.6165\x203.9849\x2012.9815\x205.2624C12.9815\x205.2624\x2016.2665\x205.6274\x2016.2665\x208.7299C16.2665\x2010.9199\x2014.8065\x2011.6499\x2013.3465\x2011.6499M6.7767\x2011.6497L8.9667\x2013.4747L11.8867\x209.82466','strokeLinecap':_0xa015b6(0x2a4),'strokeLinejoin':_0xa015b6(0x2a4),'strokeWidth':1.2}}]},{'tag':_0xa015b6(0x367),'attrs':{},'children':[{'tag':'clipPath','attrs':{'id':_0xa015b6(0x365)},'children':[{'tag':_0xa015b6(0x409),'attrs':{'fill':'#fff','d':_0xa015b6(0x3be),'transform':_0xa015b6(0x30e)}}]}]}],'defIds':['on-line-single_clip0_910_349']},$e=M[_0xa015b6(0x3e1)](function(_0x4cd623,_0x19ce1e){const _0x21626f=_0xa015b6;return M[_0x21626f(0x43a)](pe,Object['assign']({},_0x4cd623,{'id':'on-line-single','ref':_0x19ce1e,'icon':Nt}));});$e['displayName']=_0xa015b6(0x34d);function Mt(_0x58e753){const _0x7b1b26=_0xa015b6;switch(_0x58e753){case u[_0x7b1b26(0x2ef)][_0x7b1b26(0x34b)]:return _0x7b1b26(0x2a1);case u[_0x7b1b26(0x2ef)]['CONFLICT']:return'collabStatus.conflict';case u[_0x7b1b26(0x2ef)]['FETCH_MISS']:return _0x7b1b26(0x2ba);case u['CollaborationStatus'][_0x7b1b26(0x20b)]:return _0x7b1b26(0x386);case u[_0x7b1b26(0x2ef)][_0x7b1b26(0x3e3)]:case u[_0x7b1b26(0x2ef)][_0x7b1b26(0x32a)]:return _0x7b1b26(0x26c);case u[_0x7b1b26(0x2ef)]['SYNCED']:case u['CollaborationStatus']['PENDING']:return _0x7b1b26(0x24a);}}function xe(_0x3239ea){const _0x2e3ac8=_0xa015b6,{status$:_0x2cfe53}=_0x3239ea,_0x4f9b4d=T[_0x2e3ac8(0x225)](_0x2cfe53,u['CollaborationStatus'][_0x2e3ac8(0x20b)]),_0xed85bc=T[_0x2e3ac8(0x401)](a[_0x2e3ac8(0x26a)]),_0x4bddc7=T[_0x2e3ac8(0x401)](u['CollaborationSessionService']),_0x22e187=_0x4f9b4d!==u['CollaborationStatus'][_0x2e3ac8(0x34b)],_0x34871b=_0xed85bc['t'](Mt(_0x4f9b4d)),_0x2e4c79=_0x22e187?P['jsx']($e,{}):P[_0x2e3ac8(0x37f)](ye,{}),_0x4d507f=M[_0x2e3ac8(0x3cf)](()=>{const _0x548406=_0x2e3ac8;_0x22e187||_0x4bddc7[_0x548406(0x449)]();},[_0x22e187,_0x4bddc7]);function _0x4a506b(){const _0x1b9c49=_0x2e3ac8;return P[_0x1b9c49(0x3f3)](_0x1b9c49(0x41a),{'className':_0x1b9c49(0x270),'onClick':_0x4d507f,'children':[P[_0x1b9c49(0x37f)]('div',{'className':D[_0x1b9c49(0x28b)](_0x1b9c49(0x3ae),{'univer-text-green-500':_0x22e187,'univer-text-red-500':!_0x22e187}),'children':_0x2e4c79}),P[_0x1b9c49(0x37f)](_0x1b9c49(0x41a),{'className':'univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:univer-text-gray-200','children':_0x34871b})]});}return _0x22e187?_0x4a506b():P[_0x2e3ac8(0x37f)](D['Tooltip'],{'title':_0xed85bc['t'](_0x2e3ac8(0x273)),'children':_0x4a506b()});}var Lt=Object['getOwnPropertyDescriptor'],Pt=(_0x4b4541,_0x3356df,_0x36bed3,_0x56b529)=>{const _0x568610=_0xa015b6;for(var _0x2b302e=_0x56b529>0x1?void 0x0:_0x56b529?Lt(_0x3356df,_0x36bed3):_0x3356df,_0xa414ca=_0x4b4541[_0x568610(0x3c0)]-0x1,_0x58a32d;_0xa414ca>=0x0;_0xa414ca--)(_0x58a32d=_0x4b4541[_0xa414ca])&&(_0x2b302e=_0x58a32d(_0x2b302e)||_0x2b302e);return _0x2b302e;},V=(_0x586daa,_0x2d6156)=>(_0x5f059d,_0x4aeb33)=>_0x2d6156(_0x5f059d,_0x4aeb33,_0x586daa);exports['DesktopCollaborationStatusDisplayController']=class extends a['Disposable']{constructor(_0x4b4353,_0x430e8d,_0x2dd267,_0xfa1076){const _0x548836=_0xa015b6;super(),h(this,_0x548836(0x245),new d['BehaviorSubject'](u['CollaborationStatus'][_0x548836(0x20b)])),(this[_0x548836(0x1ef)]=_0x4b4353,this[_0x548836(0x2a6)]=_0x430e8d,this[_0x548836(0x294)]=_0x2dd267,this['_uiPartsService']=_0xfa1076,this[_0x548836(0x2c8)](),this[_0x548836(0x2d0)]());}[_0xa015b6(0x2d0)](){const _0x2f98b6=_0xa015b6;this[_0x2f98b6(0x28d)](this[_0x2f98b6(0x1ef)][_0x2f98b6(0x2b3)][_0x2f98b6(0x316)](d[_0x2f98b6(0x3c9)](()=>{const _0xd0fb56=_0x2f98b6,_0x31f63f=this[_0xd0fb56(0x1ef)][_0xd0fb56(0x375)]();return _0x31f63f?this[_0xd0fb56(0x294)]['getCollabEntity$'](_0x31f63f['getUnitId']()):d['of'](null);}),d['switchMap'](_0x3555a2=>_0x3555a2?_0x3555a2['status$']:d['of'](u[_0x2f98b6(0x2ef)][_0x2f98b6(0x20b)])))['subscribe'](_0xa67ae8=>{const _0x3e01ee=_0x2f98b6;this[_0x3e01ee(0x245)]['next'](_0xa67ae8);}));}[_0xa015b6(0x2c8)](){const _0x537bbc=_0xa015b6;this['disposeWithMe'](this['_uiPartsService'][_0x537bbc(0x282)](T[_0x537bbc(0x24b)][_0x537bbc(0x24d)],()=>T['connectInjector'](At({'status$':this[_0x537bbc(0x245)]['asObservable']()}),this[_0x537bbc(0x2a6)])));}},exports['DesktopCollaborationStatusDisplayController']=Pt([V(0x0,a[_0xa015b6(0x3cc)]),V(0x1,a['Inject'](a[_0xa015b6(0x344)])),V(0x2,a[_0xa015b6(0x2b1)](u[_0xa015b6(0x2c7)])),V(0x3,T[_0xa015b6(0x310)])],exports[_0xa015b6(0x407)]);function At(_0x44603e){const {status$:_0x2b61dc}=_0x44603e;return function(){const _0x247c09=_0x407d;return P[_0x247c09(0x37f)](xe,{'status$':_0x2b61dc});};}var wt=Object[_0xa015b6(0x2ed)],yt=(_0x42ce73,_0x9916f8,_0x1bb036,_0x82190c)=>{const _0x34fe4a=_0xa015b6;for(var _0x5c35de=_0x82190c>0x1?void 0x0:_0x82190c?wt(_0x9916f8,_0x1bb036):_0x9916f8,_0x3f87f3=_0x42ce73[_0x34fe4a(0x3c0)]-0x1,_0x19f0a8;_0x3f87f3>=0x0;_0x3f87f3--)(_0x19f0a8=_0x42ce73[_0x3f87f3])&&(_0x5c35de=_0x19f0a8(_0x5c35de)||_0x5c35de);return _0x5c35de;},y=(_0x28ebae,_0x48e3f7)=>(_0x4de292,_0xdbb5f6)=>_0x48e3f7(_0x4de292,_0xdbb5f6,_0x28ebae);let q=class extends a[_0xa015b6(0x3a7)]{constructor(_0x1cf3fd,_0x15c5fb,_0x4b2989,_0xcad40c,_0x16e72f,_0x2b32b3){const _0x157e5b=_0xa015b6;super(),this['_beforeCloseService']=_0x1cf3fd,this[_0x157e5b(0x2bf)]=_0x15c5fb,this[_0x157e5b(0x22f)]=_0x4b2989,this[_0x157e5b(0x278)]=_0xcad40c,this[_0x157e5b(0x211)]=_0x16e72f,this[_0x157e5b(0x34e)]=_0x2b32b3,this['_setupBeforeClosingHandler'](),this['_initEvent']();}['_setupBeforeClosingHandler'](){const _0x19f2b5=_0xa015b6;this['disposeWithMe'](this['_beforeCloseService'][_0x19f2b5(0x374)](()=>{const _0x507eb2=_0x19f2b5;if(this[_0x507eb2(0x2bf)][_0x507eb2(0x2c4)][_0x507eb2(0x2c3)])return this[_0x507eb2(0x34e)]['t']('collaboration-client.offline-data-not-saved');}));}[_0xa015b6(0x32c)](){const _0x162be6=_0xa015b6;this[_0x162be6(0x28d)](this[_0x162be6(0x22f)][_0x162be6(0x423)][_0x162be6(0x439)](_0x24b02d=>{const _0x3eb66b=_0x162be6;_0x24b02d['id']===u[_0x3eb66b(0x40a)]['OTHER_CLIENT_EDITING']&&this[_0x3eb66b(0x278)][_0x3eb66b(0x1f6)]({'type':D[_0x3eb66b(0x249)]['Warning'],'content':this[_0x3eb66b(0x34e)]['t'](_0x3eb66b(0x2d1))}),_0x24b02d['id']===u[_0x3eb66b(0x40a)][_0x3eb66b(0x403)]&&this[_0x3eb66b(0x278)][_0x3eb66b(0x1f6)]({'type':D[_0x3eb66b(0x249)][_0x3eb66b(0x418)],'content':this[_0x3eb66b(0x34e)]['t'](_0x3eb66b(0x2c9))}),_0x24b02d['id']===u[_0x3eb66b(0x40a)][_0x3eb66b(0x29d)]&&this['_notificationService']['show']({'title':this[_0x3eb66b(0x34e)]['t'](_0x3eb66b(0x323)),'content':this[_0x3eb66b(0x34e)]['t'](_0x3eb66b(0x2f9)),'type':_0x3eb66b(0x3a4),'duration':0x0}),_0x24b02d['id']===u[_0x3eb66b(0x40a)]['CONFLICT']&&this[_0x3eb66b(0x278)][_0x3eb66b(0x1f6)]({'type':D[_0x3eb66b(0x249)][_0x3eb66b(0x338)],'content':this['_localeService']['t']('collaboration.closeRoom')+'('+_0x24b02d['data']+')'}),_0x24b02d['id']===u['CollaborationUIEventId'][_0x3eb66b(0x20f)]&&this[_0x3eb66b(0x278)][_0x3eb66b(0x1f6)]({'type':D[_0x3eb66b(0x249)][_0x3eb66b(0x418)],'content':this[_0x3eb66b(0x34e)]['t'](_0x24b02d['data']||'')}),_0x24b02d['id']===u[_0x3eb66b(0x40a)][_0x3eb66b(0x315)]&&this[_0x3eb66b(0x278)][_0x3eb66b(0x1f6)]({'type':D[_0x3eb66b(0x249)][_0x3eb66b(0x418)],'content':this[_0x3eb66b(0x34e)]['t'](_0x3eb66b(0x311))}),_0x24b02d['id']===u[_0x3eb66b(0x40a)][_0x3eb66b(0x2ff)]&&this[_0x3eb66b(0x278)][_0x3eb66b(0x1f6)]({'type':D[_0x3eb66b(0x249)][_0x3eb66b(0x338)],'content':this[_0x3eb66b(0x34e)]['t']('session.connection-failed')}),_0x24b02d['id']===u[_0x3eb66b(0x40a)][_0x3eb66b(0x2f1)]&&this[_0x3eb66b(0x278)][_0x3eb66b(0x1f6)]({'type':D[_0x3eb66b(0x249)][_0x3eb66b(0x338)],'content':this['_localeService']['t'](_0x3eb66b(0x2cb))});}));}};q=yt([y(0x0,T[_0xa015b6(0x29c)]),y(0x1,u[_0xa015b6(0x3c3)]),y(0x2,a[_0xa015b6(0x2b1)](u[_0xa015b6(0x391)])),y(0x3,T[_0xa015b6(0x2d8)]),y(0x4,T['INotificationService']),y(0x5,a[_0xa015b6(0x2b1)](a['LocaleService']))],q);const $t=_0xa015b6(0x466),Ue={},be=a['createIdentifier'](_0xa015b6(0x28f));var xt=Object['getOwnPropertyDescriptor'],jt=(_0x39e8ed,_0x3b180b,_0x1c724a,_0xa706e1)=>{for(var _0x1cf064=_0xa706e1>0x1?void 0x0:_0xa706e1?xt(_0x3b180b,_0x1c724a):_0x3b180b,_0x5d0282=_0x39e8ed['length']-0x1,_0x4fed44;_0x5d0282>=0x0;_0x5d0282--)(_0x4fed44=_0x39e8ed[_0x5d0282])&&(_0x1cf064=_0x4fed44(_0x1cf064)||_0x1cf064);return _0x1cf064;},H=(_0x39d314,_0x1ba110)=>(_0x1de990,_0x8e5c33)=>_0x1ba110(_0x1de990,_0x8e5c33,_0x39d314);exports['CollaborationDataLoaderController']=class extends a[_0xa015b6(0x321)]{constructor(_0x301a46,_0x24dcdb,_0x37259f,_0x338d53,_0x552fb){const _0x3d9a18=_0xa015b6;super(),this['_urlService']=_0x301a46,this[_0x3d9a18(0x3c2)]=_0x24dcdb,this[_0x3d9a18(0x404)]=_0x37259f,this[_0x3d9a18(0x1ff)]=_0x338d53,_0x552fb?_0x552fb==null||_0x552fb['whenReady']()[_0x3d9a18(0x219)](()=>this['_init']()):(this[_0x3d9a18(0x3c2)][_0x3d9a18(0x31b)](_0x3d9a18(0x41c),_0x3d9a18(0x3fa)),this[_0x3d9a18(0x2cd)]());}async[_0xa015b6(0x2cd)](){const _0x430d85=_0xa015b6,_0x45845a=this[_0x430d85(0x3f2)]['getParam']('unit'),_0x37a0d3=this[_0x430d85(0x3f2)][_0x430d85(0x462)](_0x430d85(0x340)),_0x3c4887=this['_urlService'][_0x430d85(0x462)]('subunit');if(!_0x45845a||!_0x37a0d3){this[_0x430d85(0x3c2)]['debug'](_0x430d85(0x41c),'No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.');return;}const _0x335276=await this[_0x430d85(0x1ff)][_0x430d85(0x24f)](_0x45845a,Number(_0x37a0d3),_0x3c4887);_0x335276&&_0x335276 instanceof a[_0x430d85(0x40b)]&&this[_0x430d85(0x44e)](_0x335276);}async[_0xa015b6(0x44e)](_0x6a4f43){const _0x4680c8=_0xa015b6;await this[_0x4680c8(0x431)](_0x6a4f43),_0x6a4f43[_0x4680c8(0x3b1)][_0x4680c8(0x316)](d['takeUntil'](this[_0x4680c8(0x369)]))[_0x4680c8(0x439)](_0x477e1b=>{const _0x385218=_0x4680c8;_0x477e1b&&this[_0x385218(0x205)](_0x477e1b);}),this['_urlService'][_0x4680c8(0x287)][_0x4680c8(0x316)](d['takeUntil'](this[_0x4680c8(0x369)]))[_0x4680c8(0x439)](()=>this[_0x4680c8(0x431)](_0x6a4f43));}['_updateURLWithCurrentState'](_0x857772,_0x31c3fd=!0x1){const _0x712c8d=_0xa015b6,_0x5aa6ee=this['_urlService'][_0x712c8d(0x462)](_0x712c8d(0x2f2));_0x857772[_0x712c8d(0x397)]()!==_0x5aa6ee&&this[_0x712c8d(0x3f2)]['setParam'](_0x712c8d(0x2f2),_0x857772[_0x712c8d(0x397)](),_0x31c3fd);}async[_0xa015b6(0x431)](_0x1852c1){const _0x36314e=_0xa015b6;var _0x26c139;const _0x2560d2=this[_0x36314e(0x3f2)][_0x36314e(0x462)](_0x36314e(0x2f2));if(!_0x2560d2||!_0x1852c1[_0x36314e(0x417)](_0x2560d2)){const _0x4bcf38=_0x1852c1['getUnhiddenWorksheets']()[0x0],_0x5cc202=_0x1852c1[_0x36314e(0x417)](_0x4bcf38);if(!_0x5cc202)return;this[_0x36314e(0x205)](_0x5cc202,!0x0),await this[_0x36314e(0x404)]['executeCommand'](g[_0x36314e(0x430)]['id'],{'unitId':_0x1852c1['getUnitId'](),'subUnitId':_0x4bcf38});return;}((_0x26c139=_0x1852c1[_0x36314e(0x3ed)]())==null?void 0x0:_0x26c139['getSheetId']())!==_0x2560d2&&await this[_0x36314e(0x404)][_0x36314e(0x3b4)](g[_0x36314e(0x430)]['id'],{'unitId':_0x1852c1[_0x36314e(0x357)](),'subUnitId':_0x2560d2});}},exports['CollaborationDataLoaderController']=jt([H(0x0,be),H(0x1,a[_0xa015b6(0x2c0)]),H(0x2,a[_0xa015b6(0x36a)]),H(0x3,a['Inject'](u[_0xa015b6(0x45b)])),H(0x4,a['Optional'](Ke[_0xa015b6(0x236)]))],exports['CollaborationDataLoaderController']);var Bt=Object[_0xa015b6(0x2ed)],kt=(_0x2c2879,_0x36c08c,_0xeb0cf2,_0x449806)=>{const _0x77b62=_0xa015b6;for(var _0x59224f=_0x449806>0x1?void 0x0:_0x449806?Bt(_0x36c08c,_0xeb0cf2):_0x36c08c,_0x2ac157=_0x2c2879[_0x77b62(0x3c0)]-0x1,_0x5d08d5;_0x2ac157>=0x0;_0x2ac157--)(_0x5d08d5=_0x2c2879[_0x2ac157])&&(_0x59224f=_0x5d08d5(_0x59224f)||_0x59224f);return _0x59224f;},ce=(_0x13d966,_0xfbc157)=>(_0x5d45c2,_0x5305f4)=>_0xfbc157(_0x5d45c2,_0x5305f4,_0x13d966);let z=class{constructor(_0x23e2c3,_0x2490eb,_0x90a3d4){const _0x56a67f=_0xa015b6;this[_0x56a67f(0x2a6)]=_0x23e2c3,this[_0x56a67f(0x2fc)]=_0x2490eb,this[_0x56a67f(0x395)]=_0x90a3d4;}[_0xa015b6(0x3bc)](_0x25fbd0){const _0xde1870=_0xa015b6;this[_0xde1870(0x3c8)](_0x25fbd0),this[_0xde1870(0x242)](_0x25fbd0);}[_0xa015b6(0x3a2)](_0x356710){const _0x5654e7=_0xa015b6,{unitID:_0x22da56}=_0x356710,_0x2b97ca=this['_renderManagerService'][_0x5654e7(0x3c4)](_0x22da56)[_0x5654e7(0x39d)](b[_0x5654e7(0x2e2)]),{redoCache:_0xf03e97}=_0x2b97ca[_0x5654e7(0x239)]();if(_0xf03e97[_0x5654e7(0x3c0)]===0x0)return _0x356710;let _0x383eaf=a[_0x5654e7(0x3b0)]['deepClone'](_0x356710['mutations'][0x0]);for(let _0x3f3da3=0x0;_0x3f3da3<_0xf03e97[_0x5654e7(0x3c0)];_0x3f3da3++){const _0x274e4d={'id':'doc.mutation.rich-text-editing','params':{..._0xf03e97[_0x3f3da3]}},_0x398287=this[_0x5654e7(0x2fc)][_0x5654e7(0x3b8)](_0x383eaf,_0x274e4d,!0x1);if(m['isTransformMutationFailure'](_0x398287))throw _0x398287['error'];_0x383eaf=_0x398287[_0x5654e7(0x320)];}return{...a[_0x5654e7(0x3b0)][_0x5654e7(0x1e9)](_0x356710),'mutations':[_0x383eaf]};}[_0xa015b6(0x3c8)](_0x30c672){const _0x3ed8ea=_0xa015b6,{unitID:_0x317c5b}=_0x30c672,_0x264d3d=this[_0x3ed8ea(0x395)]['getRenderById'](_0x317c5b)[_0x3ed8ea(0x39d)](b[_0x3ed8ea(0x2e2)]),{undoCache:_0x50e7df,redoCache:_0x2471bc}=_0x264d3d[_0x3ed8ea(0x239)]();if(_0x50e7df[_0x3ed8ea(0x3c0)]===0x0||_0x2471bc[_0x3ed8ea(0x3c0)]===0x0)return;const _0xa4a72d=[],_0x2d7b16=[];let _0x2a45b0=a[_0x3ed8ea(0x3b0)][_0x3ed8ea(0x1e9)](_0x30c672['mutations'][0x0]),_0x2dfe0=a[_0x3ed8ea(0x3b0)][_0x3ed8ea(0x1e9)](_0x30c672[_0x3ed8ea(0x421)][0x0]);for(let _0x51fe5f=_0x50e7df['length']-0x1;_0x51fe5f>=0x0;_0x51fe5f--){const _0x39fa22={'id':_0x3ed8ea(0x268),'params':{..._0x50e7df[_0x51fe5f]}},_0x21be2a={'id':_0x3ed8ea(0x268),'params':{..._0x2471bc[_0x51fe5f]}},_0x3a7247=this['_transformService'][_0x3ed8ea(0x3b8)](_0x2a45b0,_0x39fa22,!0x1),_0x3257ee=this[_0x3ed8ea(0x2fc)][_0x3ed8ea(0x3b8)](_0x2dfe0,_0x21be2a,!0x1);if(m[_0x3ed8ea(0x26f)](_0x3a7247))throw _0x3a7247[_0x3ed8ea(0x3a4)];if(m[_0x3ed8ea(0x26f)](_0x3257ee))throw _0x3257ee[_0x3ed8ea(0x3a4)];_0xa4a72d[_0x3ed8ea(0x2b2)](_0x3a7247[_0x3ed8ea(0x405)][_0x3ed8ea(0x436)]),_0x2d7b16[_0x3ed8ea(0x2b2)](_0x3257ee['m2Prime']['params']),_0x2a45b0=_0x3a7247[_0x3ed8ea(0x320)],_0x2dfe0=_0x3257ee[_0x3ed8ea(0x320)];}_0x264d3d[_0x3ed8ea(0x23e)]({'undoCache':_0xa4a72d,'redoCache':_0x2d7b16});}[_0xa015b6(0x242)](_0x175b09){const _0x50d895=_0xa015b6,{unitID:_0x3ee1ba}=_0x175b09,_0x571e05=this[_0x50d895(0x395)][_0x50d895(0x3c4)](_0x3ee1ba)[_0x50d895(0x39d)](b[_0x50d895(0x2e2)]),_0x73d417=_0x571e05[_0x50d895(0x406)]();if(_0x73d417==null)return;const _0x430bef=[{'id':_0x50d895(0x268),'params':{'unitId':_0x175b09['unitID'],'actions':null,'textRanges':[_0x73d417]}}],_0x216b6a=this['_transformService'][_0x50d895(0x237)](_0x175b09,_0x430bef);if(!m['isTransformMutationsWithChangesetSuccess'](_0x216b6a))throw _0x216b6a[_0x50d895(0x3a4)];const _0x477f76=_0x216b6a[_0x50d895(0x405)][0x0][_0x50d895(0x436)]['textRanges'];Array['isArray'](_0x477f76)&&_0x477f76[_0x50d895(0x3c0)]&&_0x571e05[_0x50d895(0x230)](_0x477f76[0x0]);}};z=kt([ce(0x0,a['Inject'](a[_0xa015b6(0x344)])),ce(0x1,m[_0xa015b6(0x3e6)]),ce(0x2,p[_0xa015b6(0x327)])],z);var Ht=Object[_0xa015b6(0x2ed)],Ft=(_0x30fc2e,_0xd163ab,_0x318554,_0x32da2c)=>{const _0x37ca30=_0xa015b6;for(var _0x2f7e4f=_0x32da2c>0x1?void 0x0:_0x32da2c?Ht(_0xd163ab,_0x318554):_0xd163ab,_0x4ea745=_0x30fc2e[_0x37ca30(0x3c0)]-0x1,_0x55c25e;_0x4ea745>=0x0;_0x4ea745--)(_0x55c25e=_0x30fc2e[_0x4ea745])&&(_0x2f7e4f=_0x55c25e(_0x2f7e4f)||_0x2f7e4f);return _0x2f7e4f;},le=(_0x39f00b,_0x42b67d)=>(_0x3ca0cc,_0x39aef9)=>_0x42b67d(_0x3ca0cc,_0x39aef9,_0x39f00b);let J=class{constructor(_0x4c6a30,_0x9f0470,_0x47afbb){const _0x3eb43e=_0xa015b6;this['_injector']=_0x4c6a30,this[_0x3eb43e(0x2fc)]=_0x9f0470,this[_0x3eb43e(0x229)]=_0x47afbb;}[_0xa015b6(0x31e)](_0x26757f){const _0x57da50=_0xa015b6;this[_0x57da50(0x2dc)](_0x26757f);}[_0xa015b6(0x3a2)](_0x4d8820){const _0x4db135=_0xa015b6,{unitID:_0x478d92}=_0x4d8820,{collaboration:_0x113f5e}=this[_0x4db135(0x229)][_0x4db135(0x297)](_0x478d92);if(_0x113f5e[_0x4db135(0x3c0)]===0x0)return _0x4d8820;let _0x607ea6=a['Tools'][_0x4db135(0x1e9)](_0x4d8820[_0x4db135(0x421)][0x0]);for(let _0x206b21=0x0;_0x206b21<_0x113f5e[_0x4db135(0x3c0)];_0x206b21++){const _0xde8319={'id':_0x4db135(0x268),'params':{'unitId':_0x113f5e[_0x206b21][_0x4db135(0x2ab)],..._0x113f5e[_0x206b21][_0x4db135(0x28a)]}},_0x4250c4=this['_transformService'][_0x4db135(0x3b8)](_0x607ea6,_0xde8319,!0x1);if(m['isTransformMutationFailure'](_0x4250c4))throw _0x4250c4[_0x4db135(0x3a4)];_0x607ea6=_0x4250c4['m1Prime'];}return{...a[_0x4db135(0x3b0)][_0x4db135(0x1e9)](_0x4d8820),'mutations':[_0x607ea6]};}[_0xa015b6(0x2dc)](_0x9295de){const _0xa7162f=_0xa015b6,{unitID:_0x3a42c6}=_0x9295de,{history:_0x97592f,collaboration:_0xd2724f}=this[_0xa7162f(0x229)][_0xa7162f(0x297)](_0x3a42c6);if(_0x97592f['length']===0x0&&_0xd2724f[_0xa7162f(0x3c0)]===0x0)return;const _0x1e236=[],_0x40079c=[];let _0x3e8ebd=a[_0xa7162f(0x3b0)]['deepClone'](_0x9295de[_0xa7162f(0x421)][0x0]),_0x135c2b=a[_0xa7162f(0x3b0)][_0xa7162f(0x1e9)](_0x9295de[_0xa7162f(0x421)][0x0]);for(let _0x312690=_0x97592f[_0xa7162f(0x3c0)]-0x1;_0x312690>=0x0;_0x312690--){const _0x592515={'id':_0xa7162f(0x268),'params':{'unitId':_0x97592f[_0x312690]['unitId'],..._0x97592f[_0x312690][_0xa7162f(0x3c7)]}},_0x3899bc={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x97592f[_0x312690]['unitId'],..._0x97592f[_0x312690][_0xa7162f(0x28a)]}},_0x7f04aa=this[_0xa7162f(0x2fc)][_0xa7162f(0x3b8)](_0x3e8ebd,_0x592515,!0x1),_0x5cb671=this[_0xa7162f(0x2fc)][_0xa7162f(0x3b8)](_0x135c2b,_0x3899bc,!0x1);if(m[_0xa7162f(0x26f)](_0x7f04aa))throw _0x7f04aa[_0xa7162f(0x3a4)];if(m[_0xa7162f(0x26f)](_0x5cb671))throw _0x5cb671[_0xa7162f(0x3a4)];_0x1e236[_0xa7162f(0x2b2)]({..._0x97592f[_0x312690],'undoState':_0x7f04aa[_0xa7162f(0x405)]['params'],'redoState':_0x5cb671['m2Prime'][_0xa7162f(0x436)]}),_0x3e8ebd=_0x7f04aa[_0xa7162f(0x320)],_0x135c2b=_0x5cb671['m1Prime'];}_0x3e8ebd=a[_0xa7162f(0x3b0)][_0xa7162f(0x1e9)](_0x9295de[_0xa7162f(0x421)][0x0]),_0x135c2b=a[_0xa7162f(0x3b0)][_0xa7162f(0x1e9)](_0x9295de[_0xa7162f(0x421)][0x0]);for(let _0x2ff903=_0xd2724f['length']-0x1;_0x2ff903>=0x0;_0x2ff903--){const _0x56f1ee={'id':_0xa7162f(0x268),'params':{'unitId':_0xd2724f[_0x2ff903][_0xa7162f(0x2ab)],..._0xd2724f[_0x2ff903]['undoState']}},_0x24181e={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0xd2724f[_0x2ff903][_0xa7162f(0x2ab)],..._0xd2724f[_0x2ff903][_0xa7162f(0x28a)]}},_0x520fcc=this[_0xa7162f(0x2fc)][_0xa7162f(0x3b8)](_0x3e8ebd,_0x56f1ee,!0x1),_0x445f4c=this['_transformService']['transformMutation'](_0x135c2b,_0x24181e,!0x1);if(m[_0xa7162f(0x26f)](_0x520fcc))throw _0x520fcc[_0xa7162f(0x3a4)];if(m[_0xa7162f(0x26f)](_0x445f4c))throw _0x445f4c['error'];_0x40079c[_0xa7162f(0x2b2)]({..._0xd2724f[_0x2ff903],'undoState':_0x520fcc[_0xa7162f(0x405)][_0xa7162f(0x436)],'redoState':_0x445f4c[_0xa7162f(0x405)][_0xa7162f(0x436)]}),_0x3e8ebd=_0x520fcc[_0xa7162f(0x320)],_0x135c2b=_0x445f4c[_0xa7162f(0x320)];}this['_docStateChangeManagerService'][_0xa7162f(0x222)](_0x3a42c6,{'history':_0x1e236,'collaboration':_0x40079c});}};J=Ft([le(0x0,a[_0xa015b6(0x2b1)](a['Injector'])),le(0x1,m[_0xa015b6(0x3e6)]),le(0x2,a[_0xa015b6(0x2b1)](b[_0xa015b6(0x36f)]))],J);var Yt=Object[_0xa015b6(0x2ed)],Wt=(_0x27091d,_0x16e358,_0x3fe4b6,_0x1f92bb)=>{const _0xfb05a5=_0xa015b6;for(var _0x23f123=_0x1f92bb>0x1?void 0x0:_0x1f92bb?Yt(_0x16e358,_0x3fe4b6):_0x16e358,_0x2258ec=_0x27091d[_0xfb05a5(0x3c0)]-0x1,_0x95cfba;_0x2258ec>=0x0;_0x2258ec--)(_0x95cfba=_0x27091d[_0x2258ec])&&(_0x23f123=_0x95cfba(_0x23f123)||_0x23f123);return _0x23f123;},Ne=(_0x22c460,_0x24b852)=>(_0xd9a09e,_0x4d5fe7)=>_0x24b852(_0xd9a09e,_0x4d5fe7,_0x22c460);let Z=class{constructor(_0xafd3d2,_0x5b3bd0){const _0x5b0c62=_0xa015b6;this[_0x5b0c62(0x2a6)]=_0xafd3d2,this[_0x5b0c62(0x2fc)]=_0x5b3bd0;}[_0xa015b6(0x20a)](_0xf7c49c){const _0x53c1e2=_0xa015b6;var _0x4e24c6;const _0x7f2f4=this['_injector']['get'](Y[_0x53c1e2(0x33a)]),_0xfd4bf5=(_0x4e24c6=_0x7f2f4['getDocRanges']())!=null?_0x4e24c6:[];if(_0xfd4bf5[_0x53c1e2(0x3c0)]===0x0)return;const _0x10b388=_0xf7c49c[_0x53c1e2(0x2fb)],_0x4ba13e=[{'id':_0x53c1e2(0x268),'params':{'unitId':_0x10b388,'actions':null,'textRanges':_0xfd4bf5}}],_0x14fec8=this[_0x53c1e2(0x2fc)]['transformMutationsWithChangeset'](_0xf7c49c,_0x4ba13e);if(!m[_0x53c1e2(0x42a)](_0x14fec8))throw _0x14fec8[_0x53c1e2(0x3a4)];const _0x2138bf=_0x14fec8[_0x53c1e2(0x405)][0x0][_0x53c1e2(0x436)][_0x53c1e2(0x3af)];Array['isArray'](_0x2138bf)&&_0x2138bf[_0x53c1e2(0x3c0)]&&_0x7f2f4[_0x53c1e2(0x2ac)](_0x2138bf,{'unitId':_0x10b388,'subUnitId':_0x10b388},!0x1);}};Z=Wt([Ne(0x0,a[_0xa015b6(0x2b1)](a[_0xa015b6(0x344)])),Ne(0x1,m['ITransformService'])],Z);var Vt=Object[_0xa015b6(0x2ed)],Xt=(_0x436194,_0x5de943,_0x5ea72e,_0x8e5fb6)=>{const _0x3a7d6d=_0xa015b6;for(var _0x5432af=_0x8e5fb6>0x1?void 0x0:_0x8e5fb6?Vt(_0x5de943,_0x5ea72e):_0x5de943,_0x30bb88=_0x436194[_0x3a7d6d(0x3c0)]-0x1,_0x2328bc;_0x30bb88>=0x0;_0x30bb88--)(_0x2328bc=_0x436194[_0x30bb88])&&(_0x5432af=_0x2328bc(_0x5432af)||_0x5432af);return _0x5432af;},N=(_0x2c4d80,_0x47d9f8)=>(_0x10a1f9,_0x320e17)=>_0x47d9f8(_0x10a1f9,_0x320e17,_0x2c4d80);let Q=class extends a[_0xa015b6(0x3a7)]{constructor(_0x9cb1bb,_0x4c7b16,_0x1f626f,_0x173423,_0x44bdc9,_0x446d54,_0x47104f,_0x26b97b){const _0x5b8343=_0xa015b6;super(),h(this,_0x5b8343(0x245),new d[(_0x5b8343(0x331))](u[_0x5b8343(0x2ef)]['NOT_COLLAB'])),(this[_0x5b8343(0x229)]=_0x9cb1bb,this['_collaborationController']=_0x4c7b16,this[_0x5b8343(0x3e0)]=_0x1f626f,this['_docTransformStateCacheService']=_0x173423,this[_0x5b8343(0x263)]=_0x44bdc9,this[_0x5b8343(0x416)]=_0x446d54,this['_messageService']=_0x47104f,this[_0x5b8343(0x34e)]=_0x26b97b,this[_0x5b8343(0x234)]());}[_0xa015b6(0x234)](){const _0x9ab0d6=_0xa015b6;this['disposeWithMe'](this[_0x9ab0d6(0x294)][_0x9ab0d6(0x388)][_0x9ab0d6(0x439)](_0x3e35a0=>{const _0x1da26e=_0x9ab0d6,_0x425833=this[_0x1da26e(0x229)]['docStateChange$']['subscribe'](_0x128766=>{const _0x51091b=_0x1da26e;if(_0x128766==null)return;const {unitId:_0xfa2f9e,redoState:_0x443fdc,commandId:_0x4207f6}=_0x128766;if(_0xfa2f9e!==_0x3e35a0[_0x51091b(0x2fb)])return;const _0x9ba3b6={'id':_0x4207f6,'type':a['CommandType'][_0x51091b(0x402)],'params':{'unitId':_0xfa2f9e,'actions':_0x443fdc[_0x51091b(0x44f)],'textRanges':null}};_0x3e35a0[_0x51091b(0x207)](_0x9ba3b6);});if(_0x3e35a0[_0x1da26e(0x28d)](_0x425833),_0x3e35a0 instanceof u[_0x1da26e(0x1f9)]){const _0x175fa1={'onTransformIME':_0x539f0e=>this['_docTransformIMECacheService'][_0x1da26e(0x3bc)](_0x539f0e),'onTransformState':_0x2cb86a=>this[_0x1da26e(0x289)][_0x1da26e(0x31e)](_0x2cb86a),'onTransformSelections':_0x13d2c8=>this[_0x1da26e(0x263)][_0x1da26e(0x20a)](_0x13d2c8),'onSyncEditingCollabCursor':_0xb8e7f8=>this[_0x1da26e(0x416)][_0x1da26e(0x337)](_0xb8e7f8),'onTransformRemoteChangesetByIMECache':_0x35ea3f=>this[_0x1da26e(0x3e0)]['transformRemoteChangeset'](_0x35ea3f),'onTransformRemoteChangesetByStateCache':_0x489142=>this[_0x1da26e(0x289)][_0x1da26e(0x3a2)](_0x489142)};_0x3e35a0['addHandlerCallback'](_0x175fa1);}}));}};Q=Xt([N(0x0,a['Inject'](b['DocStateChangeManagerService'])),N(0x1,a[_0xa015b6(0x2b1)](u[_0xa015b6(0x2c7)])),N(0x2,a[_0xa015b6(0x2b1)](z)),N(0x3,a[_0xa015b6(0x2b1)](J)),N(0x4,a[_0xa015b6(0x2b1)](Z)),N(0x5,a[_0xa015b6(0x2b1)](Ce)),N(0x6,T[_0xa015b6(0x2d8)]),N(0x7,a[_0xa015b6(0x2b1)](a[_0xa015b6(0x26a)]))],Q);var Gt=Object[_0xa015b6(0x2ed)],Kt=(_0x5cb782,_0x228cc0,_0x4fb5cd,_0x157804)=>{const _0x3ebc48=_0xa015b6;for(var _0x53f729=_0x157804>0x1?void 0x0:_0x157804?Gt(_0x228cc0,_0x4fb5cd):_0x228cc0,_0x1fafa4=_0x5cb782[_0x3ebc48(0x3c0)]-0x1,_0x45ba8d;_0x1fafa4>=0x0;_0x1fafa4--)(_0x45ba8d=_0x5cb782[_0x1fafa4])&&(_0x53f729=_0x45ba8d(_0x53f729)||_0x53f729);return _0x53f729;},_e=(_0x11013e,_0x147bdb)=>(_0x3f3f0f,_0xc2e998)=>_0x147bdb(_0x3f3f0f,_0xc2e998,_0x11013e);let ge=class extends a['Disposable']{constructor(_0x58ed72,_0x16b9b2,_0x296654){const _0x2d6abb=_0xa015b6;super(),h(this,_0x2d6abb(0x258),new Map()),h(this,_0x2d6abb(0x2ca),new Map()),h(this,'_disabled',!0x1),(this[_0x2d6abb(0x1eb)]=_0x58ed72,this[_0x2d6abb(0x2ae)]=_0x16b9b2,this[_0x2d6abb(0x27f)]=_0x296654);}['disableLocalCache'](){const _0x575621=_0xa015b6;this[_0x575621(0x440)]=!0x0;}[_0xa015b6(0x2cf)](){const _0x371883=_0xa015b6;this[_0x371883(0x440)]=!0x1;}get[_0xa015b6(0x2c4)](){const _0x51ad8f=_0xa015b6;return this[_0x51ad8f(0x2ca)];}['dispose'](){const _0x4ef7b1=_0xa015b6;this[_0x4ef7b1(0x452)]()[_0x4ef7b1(0x219)](()=>super[_0x4ef7b1(0x448)]());}async[_0xa015b6(0x280)](_0x5dc5aa){const _0x278584=_0xa015b6;return this[_0x278584(0x440)]?null:this[_0x278584(0x2ae)]['getItem'](u[_0x278584(0x2f7)](_0x5dc5aa));}async['saveOfflineData'](_0x2897ee,_0x3dc561){const _0x1c1e1d=_0xa015b6;return!!this[_0x1c1e1d(0x2ae)][_0x1c1e1d(0x41e)](_0x2897ee,_0x3dc561);}['updateOfflineData'](_0x5b7f90,_0x3b832e,_0x15d2d5,_0x3073be){const _0x321935=_0xa015b6,_0x522414=this[_0x321935(0x27f)][_0x321935(0x2d5)](_0x5b7f90);this[_0x321935(0x258)][_0x321935(0x380)](_0x5b7f90,{'unitID':_0x5b7f90,'type':_0x3b832e,'awaitingChangeset':_0x15d2d5,'mutations':_0x3073be,'rev':_0x522414}),this[_0x321935(0x2ca)][_0x321935(0x22b)](_0x5b7f90)||this[_0x321935(0x1fb)](_0x5b7f90);}[_0xa015b6(0x1fb)](_0x2180b3){const _0x47079a=_0xa015b6,_0x39a339=this['_getSaveTimeout']();_0x39a339===0x0?this[_0x47079a(0x232)](_0x2180b3):this['_saveTaskMap'][_0x47079a(0x380)](_0x2180b3,setTimeout(()=>this[_0x47079a(0x232)](_0x2180b3),_0x39a339));}[_0xa015b6(0x3c1)](){const _0x2dd137=_0xa015b6;var _0x49dfda;return(_0x49dfda=this['_configService'][_0x2dd137(0x2a2)](u['LOCAL_CACHE_INTERVAL_KEY']))!=null?_0x49dfda:u['LOCAL_CACHE_INTERVAL'];}[_0xa015b6(0x232)](_0x39ea40){const _0x148f63=_0xa015b6,_0x85acf1=this[_0x148f63(0x2ca)]['get'](_0x39ea40);return _0x85acf1!==void 0x0&&window[_0x148f63(0x265)](_0x85acf1),this['_localStorageService']['setItem'](u[_0x148f63(0x2f7)](_0x39ea40),this[_0x148f63(0x258)][_0x148f63(0x3ab)](_0x39ea40))[_0x148f63(0x219)](()=>this['_saveTaskMap']['delete'](_0x39ea40));}async['exhaustSavingTask'](){const _0x322d7b=_0xa015b6,_0x492a44=[];this[_0x322d7b(0x2ca)][_0x322d7b(0x443)]((_0x6b91df,_0x3965bc)=>{const _0x20d29d=_0x322d7b;window[_0x20d29d(0x265)](_0x6b91df),_0x492a44[_0x20d29d(0x233)](this[_0x20d29d(0x232)](_0x3965bc)[_0x20d29d(0x219)](()=>{const _0x4ad74c=_0x20d29d;this[_0x4ad74c(0x2ca)][_0x4ad74c(0x209)](_0x3965bc);}));}),await Promise[_0x322d7b(0x21e)](_0x492a44);}};ge=Kt([_e(0x0,a[_0xa015b6(0x414)]),_e(0x1,a[_0xa015b6(0x31f)]),_e(0x2,a[_0xa015b6(0x2b1)](m[_0xa015b6(0x22a)]))],ge);class je extends a[_0xa015b6(0x321)]{constructor(){const _0x119871=_0xa015b6;super(),h(this,_0x119871(0x287)),this[_0x119871(0x287)]=d['fromEvent'](window,_0x119871(0x3db))[_0x119871(0x316)](d[_0x119871(0x37e)](this[_0x119871(0x369)]),d[_0x119871(0x335)](0x1),d['mapTo'](void 0x0));}[_0xa015b6(0x2e5)](_0x2e5abe,_0x56be53,_0x5a577b=!0x1){const _0x44974e=_0xa015b6,_0x1238cf=new URL(window['location']['href']);_0x1238cf['searchParams'][_0x44974e(0x380)](_0x2e5abe,_0x56be53),_0x5a577b?window[_0x44974e(0x302)][_0x44974e(0x2aa)]('','',_0x1238cf[_0x44974e(0x3ad)]()):window[_0x44974e(0x302)][_0x44974e(0x37b)]('','',_0x1238cf[_0x44974e(0x3ad)]());}[_0xa015b6(0x2de)](_0x22c7f1,_0x427199=!0x1){const _0x18d92d=_0xa015b6,_0x16f349=new URL(window[_0x18d92d(0x309)][_0x18d92d(0x329)]);_0x16f349['searchParams'][_0x18d92d(0x209)](_0x22c7f1),_0x427199?window[_0x18d92d(0x302)]['replaceState']('','',_0x16f349['toString']()):window[_0x18d92d(0x302)]['pushState']('','',_0x16f349[_0x18d92d(0x3ad)]());}[_0xa015b6(0x462)](_0x4d487b){const _0x3ac603=_0xa015b6;var _0x5f3d90;return(_0x5f3d90=new URL(window['location'][_0x3ac603(0x329)])[_0x3ac603(0x2c2)]['get'](_0x4d487b))!=null?_0x5f3d90:void 0x0;}}var qt=Object[_0xa015b6(0x3da)],zt=Object[_0xa015b6(0x2ed)],Jt=(_0x10ac6a,_0x51dfcf,_0x319002)=>_0x51dfcf in _0x10ac6a?qt(_0x10ac6a,_0x51dfcf,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x319002}):_0x10ac6a[_0x51dfcf]=_0x319002,Zt=(_0x150540,_0x284e7d,_0x32b07d,_0x40a5a8)=>{const _0x2cd0dd=_0xa015b6;for(var _0x967609=_0x40a5a8>0x1?void 0x0:_0x40a5a8?zt(_0x284e7d,_0x32b07d):_0x284e7d,_0xc77fb2=_0x150540[_0x2cd0dd(0x3c0)]-0x1,_0x3eab83;_0xc77fb2>=0x0;_0xc77fb2--)(_0x3eab83=_0x150540[_0xc77fb2])&&(_0x967609=_0x3eab83(_0x967609)||_0x967609);return _0x967609;},he=(_0x57ded2,_0x3c2878)=>(_0x15b1ae,_0x196f9c)=>_0x3c2878(_0x15b1ae,_0x196f9c,_0x57ded2),Qt=(_0x52f45d,_0x37c14a,_0x2c5e9c)=>Jt(_0x52f45d,_0x37c14a+'',_0x2c5e9c);const es=_0xa015b6(0x202);exports[_0xa015b6(0x34c)]=class extends a[_0xa015b6(0x38c)]{constructor(_0x45e486=Ue,_0x111b84,_0x12a146,_0x5e60ee){const _0x9863f8=_0xa015b6;super(),this['_config']=_0x45e486,this[_0x9863f8(0x395)]=_0x111b84,this['_injector']=_0x12a146,this[_0x9863f8(0x1eb)]=_0x5e60ee;const {..._0x39f562}=a[_0x9863f8(0x23a)]({},Ue,this['_config']);this['_configService'][_0x9863f8(0x3a6)]($t,_0x39f562);}[_0xa015b6(0x235)](){const _0x1eb7e1=_0xa015b6;this[_0x1eb7e1(0x272)](),this[_0x1eb7e1(0x435)]();}[_0xa015b6(0x23d)](){const _0x45567b=_0xa015b6;this[_0x45567b(0x3fc)]();}[_0xa015b6(0x272)](){const _0x232ea4=_0xa015b6;var _0x474b63;const _0xa8dec9=[[me],[Z],[z],[J],[Ce],[be,{'useClass':je}],[G[_0x232ea4(0x31a)],{'useClass':G['WebSocketService']}],[u[_0x232ea4(0x3c3)],{'useClass':ge}],[exports['DesktopCollaborationStatusDisplayController']],[Q],[q],[x],[de],[exports[_0x232ea4(0x36d)]]];a[_0x232ea4(0x36b)](this['_injector'],a[_0x232ea4(0x363)](_0xa8dec9,(_0x474b63=this[_0x232ea4(0x384)])==null?void 0x0:_0x474b63[_0x232ea4(0x215)]));}['_registerRenderDependencies'](){const _0x3a4b67=_0xa015b6;this[_0x3a4b67(0x28d)](this[_0x3a4b67(0x395)][_0x3a4b67(0x41f)](a['UniverInstanceType']['UNIVER_DOC'],[Ie])),this[_0x3a4b67(0x28d)](this[_0x3a4b67(0x395)][_0x3a4b67(0x41f)](a[_0x3a4b67(0x2dd)][_0x3a4b67(0x204)],[ve]));}[_0xa015b6(0x435)](){const _0x3e0502=_0xa015b6;a[_0x3e0502(0x467)](this['_injector'],[[x],[exports['DesktopCollaborationStatusDisplayController']],[Q],[q],[exports[_0x3e0502(0x36d)]]]);}},Qt(exports[_0xa015b6(0x34c)],_0xa015b6(0x2fd),es),exports[_0xa015b6(0x34c)]=Zt([a[_0xa015b6(0x2e6)](u[_0xa015b6(0x348)]),he(0x1,p[_0xa015b6(0x327)]),he(0x2,a[_0xa015b6(0x2b1)](a[_0xa015b6(0x344)])),he(0x3,a[_0xa015b6(0x414)])],exports['UniverCollaborationClientUIPlugin']);var ts=Object[_0xa015b6(0x2ed)],ss=(_0x612745,_0x39e19b,_0x3fbe7b,_0x9c01c)=>{const _0x4ab6bd=_0xa015b6;for(var _0x380089=_0x9c01c>0x1?void 0x0:_0x9c01c?ts(_0x39e19b,_0x3fbe7b):_0x39e19b,_0x5a8d8c=_0x612745[_0x4ab6bd(0x3c0)]-0x1,_0x2e0fa4;_0x5a8d8c>=0x0;_0x5a8d8c--)(_0x2e0fa4=_0x612745[_0x5a8d8c])&&(_0x380089=_0x2e0fa4(_0x380089)||_0x380089);return _0x380089;},F=(_0x3714aa,_0x4778df)=>(_0x1adfce,_0x3113cb)=>_0x4778df(_0x1adfce,_0x3113cb,_0x3714aa);exports['BrowserCollaborationSocketService']=class extends u[_0xa015b6(0x373)]{constructor(_0x773ea4,_0x58daca,_0x8cb83d,_0x50246c,_0x54f004){super(_0x773ea4,_0x58daca,_0x8cb83d,_0x50246c,_0x54f004);}async[_0xa015b6(0x2d9)](_0x5ed314){const _0x303a8b=_0xa015b6,_0x4284c6=await this[_0x303a8b(0x271)](),_0x592be8=this[_0x303a8b(0x1f2)](_0x5ed314,_0x4284c6);return this[_0x303a8b(0x2b0)](_0x592be8);}[_0xa015b6(0x1f2)](_0x2caf0b,_0x529f64){const _0x48eec2=_0xa015b6,_0x2d935b=typeof window>'u'?new URL(_0x2caf0b):new URL(_0x2caf0b,window[_0x48eec2(0x309)][_0x48eec2(0x3b7)]);_0x2d935b[_0x48eec2(0x2c2)]['set']('sessionTicket',_0x529f64);const _0x24dfdc=typeof window>'u'?new URLSearchParams():new URLSearchParams(window['location'][_0x48eec2(0x2bb)]);return _0x24dfdc[_0x48eec2(0x3ab)](_0x48eec2(0x351))&&_0x2d935b[_0x48eec2(0x2c2)][_0x48eec2(0x380)](_0x48eec2(0x351),_0x24dfdc['get']('runId')),_0x2d935b['toString']();}async[_0xa015b6(0x271)](){const _0x16bcf0=_0xa015b6;var _0x194901,_0x594241,_0x5f1102;const _0x2e4304=this['_configService'][_0x16bcf0(0x2a2)](u[_0x16bcf0(0x2b8)]),_0x7fb3a1=(_0x194901=_0x2e4304==null?void 0x0:_0x2e4304[_0x16bcf0(0x343)])!=null?_0x194901:u[_0x16bcf0(0x37a)];return(_0x5f1102=(_0x594241=(await this[_0x16bcf0(0x203)]['get'](_0x7fb3a1,{'headers':{'Content-Type':_0x16bcf0(0x33e)}}))[_0x16bcf0(0x312)])==null?void 0x0:_0x594241[_0x16bcf0(0x32d)])!=null?_0x5f1102:'';}},exports['BrowserCollaborationSocketService']=ss([F(0x0,a[_0xa015b6(0x2b1)](a[_0xa015b6(0x344)])),F(0x1,a[_0xa015b6(0x2b1)](G[_0xa015b6(0x31c)])),F(0x2,a[_0xa015b6(0x414)]),F(0x3,a[_0xa015b6(0x2c0)]),F(0x4,m['ISnapshotServerService'])],exports[_0xa015b6(0x427)]);const Me=0x7530,Le=_0xa015b6(0x214);class is extends a['Disposable']{constructor(){const _0x5556f2=_0xa015b6;super(),h(this,_0x5556f2(0x25a),a[_0x5556f2(0x3c5)]()),h(this,'_selfUnitIDs',new Set()),h(this,_0x5556f2(0x366),new Map()),h(this,_0x5556f2(0x3dc),null),h(this,_0x5556f2(0x33f),new Map()),h(this,_0x5556f2(0x283),new Map()),this['_init']();}[_0xa015b6(0x448)](){const _0x5b2261=_0xa015b6;super[_0x5b2261(0x448)](),this[_0x5b2261(0x33f)]['forEach']((_0x25aef7,_0x2f66d3)=>this[_0x5b2261(0x3d2)](_0x2f66d3)),this[_0x5b2261(0x3dc)]&&window[_0x5b2261(0x2af)](this[_0x5b2261(0x3dc)]);}['getUnitStatus$'](_0x28032f){const _0x2bcff7=_0xa015b6;return this[_0x2bcff7(0x26e)](_0x28032f)[_0x2bcff7(0x316)](d['distinctUntilChanged']());}[_0xa015b6(0x399)](_0x5a6a2f){const _0xf57590=_0xa015b6;this[_0xf57590(0x370)]['size']===0x0&&this[_0xf57590(0x2a9)](),this[_0xf57590(0x370)]['add'](_0x5a6a2f),this[_0xf57590(0x44d)]({'type':0x0,'memberID':this[_0xf57590(0x25a)],'unitIDs':[_0x5a6a2f],'isForwarded':!0x1});}[_0xa015b6(0x3df)](_0x29d22a){const _0x33538f=_0xa015b6;this[_0x33538f(0x370)][_0x33538f(0x209)](_0x29d22a),this[_0x33538f(0x370)][_0x33538f(0x2c3)]===0x0&&this[_0x33538f(0x3dc)]&&window[_0x33538f(0x2af)](this[_0x33538f(0x3dc)]);}['_init'](){const _0x5222f5=_0xa015b6;this[_0x5222f5(0x28d)](a['toDisposable'](d[_0x5222f5(0x213)](window,'storage')['subscribe'](_0x2eed2a=>{const _0x2d5361=_0x5222f5;if(_0x2eed2a[_0x2d5361(0x261)]!==Le||!_0x2eed2a[_0x2d5361(0x2a8)])return;const _0x265a4c=JSON[_0x2d5361(0x277)](_0x2eed2a[_0x2d5361(0x2a8)]);this[_0x2d5361(0x228)](_0x265a4c);}))),window[_0x5222f5(0x2d4)](_0x5222f5(0x3e9),()=>this[_0x5222f5(0x44d)]({'type':0x1,'memberID':this[_0x5222f5(0x25a)],'unitIDs':Array[_0x5222f5(0x39c)](this[_0x5222f5(0x370)])}));}[_0xa015b6(0x228)](_0x2f8eb4){const _0x1bf624=_0xa015b6;switch(_0x2f8eb4[_0x1bf624(0x340)]){case 0x0:this[_0x1bf624(0x250)](_0x2f8eb4);break;case 0x1:this[_0x1bf624(0x217)](_0x2f8eb4);break;case 0x2:this[_0x1bf624(0x396)](_0x2f8eb4);break;}}[_0xa015b6(0x250)](_0x257f7a){const _0x200908=_0xa015b6,{unitIDs:_0x15c09f,memberID:_0x35d862,isForwarded:_0x225e05}=_0x257f7a;_0x15c09f[_0x200908(0x443)](_0x23b576=>{const _0xc5be93=_0x200908;if(!_0x225e05&&this[_0xc5be93(0x366)][_0xc5be93(0x22b)](_0x23b576)&&this['_ensureSubject'](_0x23b576)[_0xc5be93(0x3f1)](u['UnitStatus']['OTHER_CLIENTS_EDITING']),!this[_0xc5be93(0x366)][_0xc5be93(0x22b)](_0x23b576)||!this['_unitOnClients'][_0xc5be93(0x3ab)](_0x23b576)['has'](_0x35d862)){const _0x141a10=this[_0xc5be93(0x366)][_0xc5be93(0x3ab)](_0x23b576)||new Set();_0x141a10[_0xc5be93(0x27a)](_0x35d862),this['_unitOnClients'][_0xc5be93(0x380)](_0x23b576,_0x141a10),this[_0xc5be93(0x32f)](_0x35d862);}}),_0x225e05||this['_send']({'type':0x0,'memberID':this[_0x200908(0x25a)],'unitIDs':[...this['_selfUnitIDs']],'isForwarded':!0x0});}[_0xa015b6(0x32f)](_0x110fe9){const _0x471074=_0xa015b6;this[_0x471074(0x3d2)](_0x110fe9);const _0x332a44=window[_0x471074(0x32e)](()=>{const _0x4eb013=_0x471074;this[_0x4eb013(0x366)][_0x4eb013(0x443)](_0x3639b6=>{_0x3639b6['delete'](_0x110fe9);});},Me*0x2);this[_0x471074(0x33f)][_0x471074(0x380)](_0x110fe9,_0x332a44);}[_0xa015b6(0x3d2)](_0x200cf4){const _0x400c60=_0xa015b6;if(this[_0x400c60(0x33f)][_0x400c60(0x22b)](_0x200cf4)){const _0x2d8a91=this['_clearOtherTimers'][_0x400c60(0x3ab)](_0x200cf4);_0x2d8a91&&window[_0x400c60(0x265)](_0x2d8a91),this[_0x400c60(0x33f)][_0x400c60(0x380)](_0x200cf4,null);}}[_0xa015b6(0x217)](_0x5da683){const _0x33158e=_0xa015b6,{memberID:_0xb6d75d,unitIDs:_0x5274bb}=_0x5da683;_0x5274bb['forEach'](_0x2bfacb=>{const _0x157200=_0x407d;var _0x282bb8;const _0x566d2c=this[_0x157200(0x366)][_0x157200(0x3ab)](_0x2bfacb);_0x566d2c&&(_0x566d2c[_0x157200(0x209)](_0xb6d75d),(_0x282bb8=this['_ensureSubject'](_0x2bfacb))==null||_0x282bb8[_0x157200(0x3f1)](_0x566d2c[_0x157200(0x2c3)]===0x0?u[_0x157200(0x2e7)][_0x157200(0x295)]:u['UnitStatus'][_0x157200(0x266)]));}),this[_0x33158e(0x3d2)](_0xb6d75d);}[_0xa015b6(0x396)](_0x448376){const _0x46988f=_0xa015b6;this['_scheduleClearOtherTimer'](_0x448376[_0x46988f(0x27b)]);}[_0xa015b6(0x44d)](_0x5f4a23){const _0x30c1e3=_0xa015b6;localStorage[_0x30c1e3(0x41e)](Le,JSON[_0x30c1e3(0x269)](_0x5f4a23));}[_0xa015b6(0x2a9)](){const _0x14ca29=_0xa015b6;this['_heartbeatTimer']=window[_0x14ca29(0x38f)](()=>{const _0x457118=_0x14ca29;this[_0x457118(0x44d)]({'type':0x2,'memberID':this['_id']});},Me);}[_0xa015b6(0x26e)](_0x7d3875){const _0x4677c3=_0xa015b6;return this[_0x4677c3(0x283)][_0x4677c3(0x22b)](_0x7d3875)||this[_0x4677c3(0x283)][_0x4677c3(0x380)](_0x7d3875,new d[(_0x4677c3(0x331))](u[_0x4677c3(0x2e7)][_0x4677c3(0x295)])),this[_0x4677c3(0x283)][_0x4677c3(0x3ab)](_0x7d3875);}}var Be=(_0x40482d=>(_0x40482d[_0x40482d[_0xa015b6(0x3ac)]=0x0]=_0xa015b6(0x3ac),_0x40482d[_0x40482d['OK']=0x1]='OK',_0x40482d[_0x40482d['INTERNAL_ERROR']=0x2]=_0xa015b6(0x30c),_0x40482d[_0x40482d['PERMISSION_DENIED']=0x3]=_0xa015b6(0x29d),_0x40482d[_0x40482d[_0xa015b6(0x3d6)]=0x4]='NOT_FOUND',_0x40482d[_0x40482d['UNAUTHENTICATED']=0x5]=_0xa015b6(0x1f5),_0x40482d[_0x40482d[_0xa015b6(0x20d)]=0x6]=_0xa015b6(0x20d),_0x40482d[_0x40482d[_0xa015b6(0x2c6)]=0x7]=_0xa015b6(0x2c6),_0x40482d[_0x40482d[_0xa015b6(0x381)]=0x8]=_0xa015b6(0x381),_0x40482d[_0x40482d['COMPLETION_FINISHED']=0x9]=_0xa015b6(0x3ff),_0x40482d[_0x40482d['LOGIN_FAILED']=0xa]='LOGIN_FAILED',_0x40482d[_0x40482d[_0xa015b6(0x35e)]=0x1389]='CHANGESET_REVISION_CONFILICT',_0x40482d[_0x40482d[_0xa015b6(0x339)]=0x1771]=_0xa015b6(0x339),_0x40482d[_0x40482d[_0xa015b6(0x259)]=0x1772]='SNAPSHOT_HAS_BEEN_REMOVED',_0x40482d[_0x40482d['ENSURE_SNAPSHOT_EXECUTION']=0x1773]=_0xa015b6(0x25f),_0x40482d[_0x40482d[_0xa015b6(0x42e)]=0x1b59]='APPLY_REJECT',_0x40482d[_0x40482d[_0xa015b6(0x306)]=0x1b5a]=_0xa015b6(0x306),_0x40482d[_0x40482d[_0xa015b6(0x2b6)]=0x1b5b]=_0xa015b6(0x2b6),_0x40482d[_0x40482d['APPLY_PERMISSION_DENIED']=0x1b5c]=_0xa015b6(0x298),_0x40482d[_0x40482d[_0xa015b6(0x3b5)]=0x1b5d]=_0xa015b6(0x3b5),_0x40482d[_0x40482d[_0xa015b6(0x2fa)]=0x1f41]=_0xa015b6(0x2fa),_0x40482d[_0x40482d[_0xa015b6(0x3b6)]=0x2329]=_0xa015b6(0x3b6),_0x40482d[_0x40482d[_0xa015b6(0x308)]=0x232a]=_0xa015b6(0x308),_0x40482d[_0x40482d[_0xa015b6(0x208)]=0x232b]='LICENSE_IMPORT_SIZE_EXCEEDED',_0x40482d[_0x40482d[_0xa015b6(0x3f5)]=0x232c]=_0xa015b6(0x3f5),_0x40482d[_0x40482d[_0xa015b6(0x394)]=0x232d]='LICENSE_DISTRO_REJECTED',_0x40482d[_0x40482d[_0xa015b6(0x450)]=0x2711]=_0xa015b6(0x450),_0x40482d[_0x40482d['YUUMI_URL_COL_OUT_OF_RANGE']=0x2712]=_0xa015b6(0x2ce),_0x40482d[_0x40482d['YUUMI_RATE_OVER_LIMIT']=0x2713]=_0xa015b6(0x464),_0x40482d[_0x40482d[_0xa015b6(0x3ee)]=0x2714]=_0xa015b6(0x3ee),_0x40482d[_0x40482d['YUUMI_NO_CUBOID_FOR_QUESTION']=0x271a]='YUUMI_NO_CUBOID_FOR_QUESTION',_0x40482d[_0x40482d[_0xa015b6(0x243)]=0x271b]=_0xa015b6(0x243),_0x40482d[_0x40482d['YUUMI_TABLE_NOT_FOUND_IN_UNIT']=0x271c]=_0xa015b6(0x460),_0x40482d[_0x40482d[_0xa015b6(0x3f0)]=0x271d]='YUUMI_ALL_TABLES_IS_INVALID',_0x40482d[_0x40482d[_0xa015b6(0x39f)]=0x271e]=_0xa015b6(0x39f),_0x40482d[_0x40482d['YUUMI_AI_RUN_FAILED']=0x271f]=_0xa015b6(0x341),_0x40482d[_0x40482d[_0xa015b6(0x216)]=0x2af9]=_0xa015b6(0x216),_0x40482d[_0x40482d[_0xa015b6(0x29e)]=0x2ee1]=_0xa015b6(0x29e),_0x40482d[_0x40482d[_0xa015b6(0x411)]=0x2ee2]=_0xa015b6(0x411),_0x40482d[_0x40482d[_0xa015b6(0x43e)]=0x2ee3]=_0xa015b6(0x43e),_0x40482d[_0x40482d[_0xa015b6(0x2c1)]=0x2ee4]='USER_NOT_INVITED_CODE',_0x40482d[_0x40482d[_0xa015b6(0x3a8)]=0x2ee5]=_0xa015b6(0x3a8),_0x40482d[_0x40482d[_0xa015b6(0x32b)]=0x32c9]=_0xa015b6(0x32b),_0x40482d[_0x40482d['MOBILE_HAS_BEEN_BOUND']=0x32ca]=_0xa015b6(0x38a),_0x40482d[_0x40482d['EMAIL_HAS_BEEN_BOUND']=0x32cb]=_0xa015b6(0x40f),_0x40482d[_0x40482d[_0xa015b6(0x3b2)]=-0x1]=_0xa015b6(0x3b2),_0x40482d))(Be||{}),ns=Object[_0xa015b6(0x2ed)],rs=(_0x4e6f66,_0x34c152,_0x3e37bb,_0x291832)=>{const _0x295118=_0xa015b6;for(var _0x54a925=_0x291832>0x1?void 0x0:_0x291832?ns(_0x34c152,_0x3e37bb):_0x34c152,_0x14f8b0=_0x4e6f66[_0x295118(0x3c0)]-0x1,_0x441af3;_0x14f8b0>=0x0;_0x14f8b0--)(_0x441af3=_0x4e6f66[_0x14f8b0])&&(_0x54a925=_0x441af3(_0x54a925)||_0x54a925);return _0x54a925;},ue=(_0x2fb724,_0x3afd65)=>(_0x892f03,_0x7e0321)=>_0x3afd65(_0x892f03,_0x7e0321,_0x2fb724);exports[_0xa015b6(0x221)]=class extends a[_0xa015b6(0x3a7)]{constructor(_0x582f04,_0x209fbc,_0x5e3750){const _0x49dd54=_0xa015b6;super(),this[_0x49dd54(0x2e3)]=_0x582f04,this[_0x49dd54(0x203)]=_0x209fbc,this[_0x49dd54(0x1eb)]=_0x5e3750;}async[_0xa015b6(0x305)](_0x3c0180,_0x351bf7,_0x41040f,..._0x85fdd7){const _0x11b8a7=_0xa015b6;var _0x3c0440,_0x5287c2,_0x906fe8,_0x1989f0;const _0x3fc3f2=this[_0x11b8a7(0x2e3)][_0x11b8a7(0x375)]();if(!_0x3fc3f2)throw new Error(_0x11b8a7(0x293));const _0x179295=((_0x3c0440=this[_0x11b8a7(0x1eb)][_0x11b8a7(0x2a2)](u['REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY']))!=null?_0x3c0440:u[_0x11b8a7(0x300)])+'/'+_0x3c0180+_0x11b8a7(0x3ec)+_0x351bf7,_0x209081=new URL(window['location'][_0x11b8a7(0x329)]),_0x32447d={'scriptId':_0x3c0180,'runId':(_0x5287c2=_0x209081['searchParams'][_0x11b8a7(0x3ab)](_0x11b8a7(0x351)))!=null?_0x5287c2:'','function':_0x351bf7,'unitId':_0x3fc3f2[_0x11b8a7(0x357)](),'argsOfFunction':JSON[_0x11b8a7(0x269)](_0x85fdd7),'invokeId':(_0x906fe8=_0x41040f['invokeId'])!=null?_0x906fe8:'','executionId':(_0x1989f0=_0x41040f[_0x11b8a7(0x23c)])!=null?_0x1989f0:''};try{const _0x535d34=await this[_0x11b8a7(0x203)]['post'](_0x179295,{'body':_0x32447d});return _0x535d34['body']['error']&&_0x535d34[_0x11b8a7(0x312)][_0x11b8a7(0x3a4)][_0x11b8a7(0x34f)]!==Be['OK']?_0x11b8a7(0x40d):_0x535d34['body']['result'];}catch{return _0x11b8a7(0x40d);}}},exports[_0xa015b6(0x221)]=rs([ue(0x0,a['IUniverInstanceService']),ue(0x1,a[_0xa015b6(0x2b1)](G[_0xa015b6(0x31c)])),ue(0x2,a['IConfigService'])],exports[_0xa015b6(0x221)]),exports[_0xa015b6(0x28c)]=xe,exports[_0xa015b6(0x1ed)]=be,exports['SheetCollabCursorShape']=Ae,exports[_0xa015b6(0x38e)]=is,exports[_0xa015b6(0x446)]=je;
|
package/lib/cjs/locale/en-US.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const _0x106528=_0x1087;(function(_0x2a1da6,_0x1c8a0f){const _0xc0f53c=_0x1087,_0x828069=_0x2a1da6();while(!![]){try{const _0x3ec058=-parseInt(_0xc0f53c(0x17d))/0x1+-parseInt(_0xc0f53c(0x18c))/0x2*(-parseInt(_0xc0f53c(0x184))/0x3)+-parseInt(_0xc0f53c(0x18b))/0x4+-parseInt(_0xc0f53c(0x183))/0x5+-parseInt(_0xc0f53c(0x192))/0x6*(-parseInt(_0xc0f53c(0x18e))/0x7)+-parseInt(_0xc0f53c(0x190))/0x8+parseInt(_0xc0f53c(0x186))/0x9;if(_0x3ec058===_0x1c8a0f)break;else _0x828069['push'](_0x828069['shift']());}catch(_0x432f31){_0x828069['push'](_0x828069['shift']());}}}(_0x1e73,0xda576));function _0x1e73(){const _0x10b066=['1403373qPbQyy','The\x20server\x20is\x20not\x20responding\x20to\x20your\x20collaboration\x20request.\x20Your\x20edits\x20would\x20be\x20saved\x20locally.','Syncing\x20server\x20data...','Your\x20actions\x20are\x20conflicting\x20with\x20the\x20server\x27s\x20permissions.\x20Please\x20save\x20your\x20local\x20edits\x20elsewhere\x20as\x20they\x20will\x20be\x20discarded\x20after\x20refreshing\x20the\x20page.','Offline,\x20edits\x20would\x20be\x20save\x20on\x20local','Edit\x20conflicts','6196850aZCQqN','106521GEvBir','Local\x20file','30772755fZcSPa','Collaboration\x20room\x20is\x20full.\x20You\x20edits\x20would\x20be\x20saved\x20locally.','Synced','Connection\x20failed,\x20we\x20retry\x20in\x20a\x20while.','You\x20opened\x20the\x20same\x20file\x20in\x20another\x20tab.\x20In\x20case\x20of\x20data\x20missing,\x20you\x20cannot\x20edit\x20on\x20this\x20tab.','1124852XFtSoB','50AiSzxh','Collaboration\x20Conflict','3575537XCMmYx','Your\x20login\x20has\x20expired,\x20click\x20OK\x20to\x20re-login,\x20click\x20Cancel\x20to\x20save\x20your\x20local\x20edits.','7995032huIPGB','Connection\x20failed,\x20please\x20check\x20your\x20network.','6kskHKL','Click\x20to\x20Reconnect','Authentication\x20Error'];_0x1e73=function(){return _0x10b066;};return _0x1e73();}const e={'collab-client':{'tooltip':{'reconnect':_0x106528(0x17b)}},'collabStatus':{'fetchMiss':_0x106528(0x17f),'conflict':_0x106528(0x182),'notCollab':_0x106528(0x185),'synced':_0x106528(0x188),'syncing':'Syncing...','offline':_0x106528(0x181)},'session':{'connection-failed':_0x106528(0x191),'will-retry':_0x106528(0x189),'room-full':_0x106528(0x187),'collaboration-timeout':_0x106528(0x17e)},'conflict':{'title':_0x106528(0x18d),'content':'There\x20is\x20a\x20conflict\x20between\x20your\x20local\x20copy\x20and\x20the\x20copy\x20on\x20the\x20server.\x20Please\x20save\x20your\x20local\x20edits,\x20because\x20they\x20will\x20be\x20lost\x20when\x20you\x20reload\x20the\x20page.'},'permission':{'title':_0x106528(0x17c),'content':_0x106528(0x180)},'collaboration':{'single-unit':{'warning':_0x106528(0x18a)},'closeRoom':'Editing\x20privileges\x20were\x20revoked\x20because\x20the\x20collaborative\x20room\x20was\x20closed.'},'auth':{'needGotoLoginAlert':_0x106528(0x18f)}};function _0x1087(_0xc5b271,_0x2615e4){const _0x1e73e8=_0x1e73();return _0x1087=function(_0x10877a,_0x46d3d7){_0x10877a=_0x10877a-0x17b;let _0x1bf2d2=_0x1e73e8[_0x10877a];return _0x1bf2d2;},_0x1087(_0xc5b271,_0x2615e4);}module['exports']=e;
|