@univerjs-pro/collaboration-client-ui 0.6.10-experimental.20250427-825ae55 → 0.6.10-experimental.20250428-261c0dd
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 +15 -15
package/lib/cjs/facade.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';
|
|
1
|
+
'use strict';const _0x505f15=_0x1ad5;(function(_0x1a05d3,_0x34bee3){const _0x3d2a01=_0x1ad5,_0x5d5f2b=_0x1a05d3();while(!![]){try{const _0x10b74c=parseInt(_0x3d2a01(0xe2))/0x1+-parseInt(_0x3d2a01(0xdd))/0x2*(parseInt(_0x3d2a01(0xe8))/0x3)+parseInt(_0x3d2a01(0xe4))/0x4*(-parseInt(_0x3d2a01(0xdf))/0x5)+-parseInt(_0x3d2a01(0xe7))/0x6*(parseInt(_0x3d2a01(0xed))/0x7)+parseInt(_0x3d2a01(0xec))/0x8*(-parseInt(_0x3d2a01(0xe9))/0x9)+-parseInt(_0x3d2a01(0xea))/0xa+parseInt(_0x3d2a01(0xeb))/0xb;if(_0x10b74c===_0x34bee3)break;else _0x5d5f2b['push'](_0x5d5f2b['shift']());}catch(_0x4f4cc3){_0x5d5f2b['push'](_0x5d5f2b['shift']());}}}(_0x22e8,0x7dd0b));function _0x1ad5(_0x5ee0c2,_0x4569ac){const _0x22e880=_0x22e8();return _0x1ad5=function(_0x1ad59e,_0x37557a){_0x1ad59e=_0x1ad59e-0xdc;let _0x3d0d0f=_0x22e880[_0x1ad59e];return _0x3d0d0f;},_0x1ad5(_0x5ee0c2,_0x4569ac);}function _0x22e8(){const _0x470961=['2KlsbrR','get','575npTZaG','RemoteUniscriptService','runOnServer','695638EPqxyY','FUniver','10308noDLgj','@univerjs/core/facade','extend','42AZAkhk','695526oZNrOj','288198QaJVOT','10256110PJttLC','36117488aaMZzJ','248cUwQir','917217qXQRAx','_injector','@univerjs-pro/collaboration-client-ui'];_0x22e8=function(){return _0x470961;};return _0x22e8();}const t=require(_0x505f15(0xdc)),e=require(_0x505f15(0xe5));class c extends e[_0x505f15(0xe3)]{[_0x505f15(0xe1)](_0x1450b5,_0x46f192,..._0x2431fe){const _0x5b1280=_0x505f15;return this[_0x5b1280(0xee)][_0x5b1280(0xde)](t[_0x5b1280(0xe0)])[_0x5b1280(0xe1)](_0x1450b5,_0x46f192,{},..._0x2431fe);}}e[_0x505f15(0xe3)][_0x505f15(0xe6)](c);
|
package/lib/cjs/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const _0x26c91b=_0x58e8;(function(_0x421cb3,_0x87f45){const _0x1831e3=_0x58e8,_0x5ae23d=_0x421cb3();while(!![]){try{const _0x529b34=parseInt(_0x1831e3(0x38c))/0x1*(-parseInt(_0x1831e3(0x285))/0x2)+parseInt(_0x1831e3(0x370))/0x3*(-parseInt(_0x1831e3(0x133))/0x4)+-parseInt(_0x1831e3(0x19b))/0x5*(-parseInt(_0x1831e3(0x317))/0x6)+parseInt(_0x1831e3(0x154))/0x7+parseInt(_0x1831e3(0x2f7))/0x8+-parseInt(_0x1831e3(0x109))/0x9+parseInt(_0x1831e3(0x12c))/0xa*(parseInt(_0x1831e3(0x330))/0xb);if(_0x529b34===_0x87f45)break;else _0x5ae23d['push'](_0x5ae23d['shift']());}catch(_0x1ee428){_0x5ae23d['push'](_0x5ae23d['shift']());}}}(_0x4840,0xd12c9));var Ve=Object[_0x26c91b(0x13c)],Xe=(_0x10c47f,_0x5ea3e3,_0x20893b)=>_0x5ea3e3 in _0x10c47f?Ve(_0x10c47f,_0x5ea3e3,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x20893b}):_0x10c47f[_0x5ea3e3]=_0x20893b,h=(_0x3951af,_0xa6fa9c,_0x30614f)=>Xe(_0x3951af,typeof _0xa6fa9c!=_0x26c91b(0x208)?_0xa6fa9c+'':_0xa6fa9c,_0x30614f);Object[_0x26c91b(0x13c)](exports,Symbol[_0x26c91b(0x311)],{'value':_0x26c91b(0x271)});const u=require(_0x26c91b(0x313)),a=require(_0x26c91b(0x117)),p=require(_0x26c91b(0x2cc)),G=require(_0x26c91b(0x264)),b=require(_0x26c91b(0x354)),Ge=require('@univerjs/drawing'),d=require(_0x26c91b(0x12f)),W=require(_0x26c91b(0x121)),m=require(_0x26c91b(0x2cd)),Ee=require(_0x26c91b(0x1a3)),g=require(_0x26c91b(0x1af)),$=require(_0x26c91b(0x31b)),X=require(_0x26c91b(0x234)),P=require(_0x26c91b(0x16c)),T=require(_0x26c91b(0x123)),D=require(_0x26c91b(0x263)),M=require(_0x26c91b(0x20b)),qe=require(_0x26c91b(0x309));var Ke=Object[_0x26c91b(0x30b)],ze=(_0x4271d0,_0x37edb5,_0xc9ea21,_0x236729)=>{const _0x364e8a=_0x26c91b;for(var _0x6e2272=_0x236729>0x1?void 0x0:_0x236729?Ke(_0x37edb5,_0xc9ea21):_0x37edb5,_0x4e2b02=_0x4271d0[_0x364e8a(0x362)]-0x1,_0x4bdab7;_0x4e2b02>=0x0;_0x4e2b02--)(_0x4bdab7=_0x4271d0[_0x4e2b02])&&(_0x6e2272=_0x4bdab7(_0x6e2272)||_0x6e2272);return _0x6e2272;},Te=(_0x113bd2,_0x4a0975)=>(_0x3a623e,_0x4276d9)=>_0x4a0975(_0x3a623e,_0x4276d9,_0x113bd2);let de=class extends a['RxDisposable']{constructor(_0x336b04,_0x30bf65){const _0xdfc1a=_0x26c91b;super(),this[_0xdfc1a(0x159)]=_0x336b04,this['_imageIoService']=_0x30bf65,this['_init']();}[_0x26c91b(0x1d9)](){const _0x15cfa3=_0x26c91b,_0x6a8512=this;this[_0x15cfa3(0x1dc)](this[_0x15cfa3(0x159)]['addClipboardHook']({'onBeforePasteImage':async _0x5c96c3=>{const _0x4de2a9=_0x15cfa3,_0x1c9fc3=await _0x6a8512[_0x4de2a9(0x30d)][_0x4de2a9(0x22c)](_0x5c96c3);return _0x1c9fc3?{'source':_0x1c9fc3[_0x4de2a9(0x17e)],'imageSourceType':_0x1c9fc3[_0x4de2a9(0x2a6)]}:null;}}));}};de=ze([Te(0x0,b[_0x26c91b(0x12d)]),Te(0x1,Ge[_0x26c91b(0x2f2)])],de);const Oe=[_0x26c91b(0x35d),'jiqing500',_0x26c91b(0x1cf),_0x26c91b(0x2ea),'blue400',_0x26c91b(0x165)];class me extends a[_0x26c91b(0x13d)]{constructor(){const _0x39334f=_0x26c91b;super(...arguments),h(this,_0x39334f(0x245),new Map()),h(this,_0x39334f(0x37e),0x0);}[_0x26c91b(0x2bf)](_0x3fa539){const _0x3297f1=_0x26c91b;if(this[_0x3297f1(0x245)][_0x3297f1(0x275)](_0x3fa539))return this[_0x3297f1(0x245)][_0x3297f1(0x141)](_0x3fa539);const _0x3d3a31=Oe[this[_0x3297f1(0x37e)]];return this[_0x3297f1(0x37e)]=(this[_0x3297f1(0x37e)]+0x1)%Oe['length'],this[_0x3297f1(0x245)][_0x3297f1(0x305)](_0x3fa539,_0x3d3a31),_0x3d3a31;}}function Pe(_0x4da1d8){const _0x2345a6=_0x26c91b;let _0x385ec2='';for(const _0x2a56be of _0x4da1d8){const {startOffset:_0x3c7386,endOffset:_0x3eb8fc,isActive:_0x38a264,rangeType:_0x395d57,segmentId:_0x4bbb56,segmentPage:_0x4a1f3b}=_0x2a56be;_0x385ec2[_0x2345a6(0x362)]&&(_0x385ec2+=','),_0x385ec2+=_0x3c7386+':'+_0x3eb8fc+':'+(_0x38a264?'1':'0')+':'+_0x395d57+':'+_0x4bbb56+':'+_0x4a1f3b;}return _0x385ec2;}function Je(_0x317683){const _0x36d04c=_0x26c91b,_0x367984=_0x317683['split'](','),_0x471a84=[];for(const _0x44ccf4 of _0x367984){const [_0x1688f5,_0x329a15,_0x5b1dbb,_0x3f2df4,_0xaa8a7a,_0x239fc4]=_0x44ccf4[_0x36d04c(0x34d)](':');_0x471a84[_0x36d04c(0x355)]({'startOffset':Number(_0x1688f5),'endOffset':Number(_0x329a15),'collapsed':_0x1688f5===_0x329a15,'isActive':_0x5b1dbb==='1','rangeType':_0x3f2df4===a[_0x36d04c(0x302)][_0x36d04c(0x23b)]?a[_0x36d04c(0x302)][_0x36d04c(0x23b)]:a[_0x36d04c(0x302)][_0x36d04c(0x182)],'segmentId':typeof _0xaa8a7a==_0x36d04c(0x151)?String(_0xaa8a7a):'','segmentPage':Number(_0x239fc4!=null?_0x239fc4:-0x1)});}return _0x471a84[_0x36d04c(0x132)](_0x459281=>_0x459281[_0x36d04c(0x24c)])||(_0x471a84[0x0][_0x36d04c(0x24c)]=!0x0),_0x471a84;}class Ce extends a[_0x26c91b(0x31f)]{constructor(){const _0x4267f6=_0x26c91b;super(...arguments),h(this,_0x4267f6(0x1de),new d[(_0x4267f6(0x15d))](null)),h(this,_0x4267f6(0x240),this[_0x4267f6(0x1de)][_0x4267f6(0x338)]());}[_0x26c91b(0x32a)](_0x39fc2c){const _0x1e8bab=_0x26c91b,{unitID:_0x1fb4cc,memberID:_0x5a003b,textRanges:_0x4705fe}=_0x39fc2c,_0x2cf324=Pe(_0x4705fe);if(_0x2cf324==='')return;const _0x4cc61c={'unitID':_0x1fb4cc,'memberID':_0x5a003b,'selection':_0x2cf324};this[_0x1e8bab(0x1de)][_0x1e8bab(0x2d2)](_0x4cc61c);}}var Ze=Object[_0x26c91b(0x30b)],Qe=(_0x2cfdf4,_0x286db7,_0x217460,_0x2c50b6)=>{const _0x10cce0=_0x26c91b;for(var _0x3883c8=_0x2c50b6>0x1?void 0x0:_0x2c50b6?Ze(_0x286db7,_0x217460):_0x286db7,_0xaf5b36=_0x2cfdf4[_0x10cce0(0x362)]-0x1,_0x47b46b;_0xaf5b36>=0x0;_0xaf5b36--)(_0x47b46b=_0x2cfdf4[_0xaf5b36])&&(_0x3883c8=_0x47b46b(_0x3883c8)||_0x3883c8);return _0x3883c8;},L=(_0x330a4d,_0x545ae0)=>(_0x96ac1a,_0x194d08)=>_0x545ae0(_0x96ac1a,_0x194d08,_0x330a4d);const et=0x12c,tt=0x64;let fe=class extends a['RxDisposable']{constructor(_0x5de68a,_0x46433d,_0x12726b,_0xe7091b,_0x3ece3d,_0x342faa,_0x5068ae,_0x1acf9a,_0x4b9cc8){const _0x313a18=_0x26c91b;super(),h(this,'_online',!0x1),h(this,_0x313a18(0x1d9),!0x1),h(this,_0x313a18(0x339),new d[(_0x313a18(0x15d))](new Map())),h(this,_0x313a18(0x168),this[_0x313a18(0x339)]['asObservable']()),h(this,_0x313a18(0x2ad),new d[(_0x313a18(0x15d))]([])),h(this,_0x313a18(0x32e),this[_0x313a18(0x2ad)][_0x313a18(0x15c)](d[_0x313a18(0x1c8)](et))),h(this,'_updateLocalCursor',a['debounce'](_0x45a807=>{const _0x109725=_0x313a18,_0x357f7c={'eventID':m[_0x109725(0x28d)][_0x109725(0x2c6)],'data':{'unitID':this[_0x109725(0x21b)],'memberID':this[_0x109725(0x356)]['getMemberID'](),'selection':Pe(_0x45a807)}};this[_0x109725(0x356)][_0x109725(0x1d3)](_0x357f7c,this[_0x109725(0x21b)]);},tt)),(this[_0x313a18(0x21b)]=_0x5de68a,this['_session']=_0x46433d,this[_0x313a18(0x325)]=_0x12726b,this['_colorAssignService']=_0xe7091b,this[_0x313a18(0x1ee)]=_0x3ece3d,this[_0x313a18(0x1dd)]=_0x342faa,this[_0x313a18(0x19f)]=_0x5068ae,this[_0x313a18(0x272)]=_0x1acf9a,this[_0x313a18(0x164)]=_0x4b9cc8);}get['cursorInfo'](){const _0x4b02cb=_0x26c91b;return this['_cursorInfo$'][_0x4b02cb(0x2bc)]();}get[_0x26c91b(0x33d)](){const _0x4413f8=_0x26c91b;return this[_0x4413f8(0x2ad)][_0x4413f8(0x2bc)]();}[_0x26c91b(0x2c0)](){const _0x42bfad=_0x26c91b;super[_0x42bfad(0x2c0)](),this['_cursorInfo$'][_0x42bfad(0x2d2)](new Map()),this[_0x42bfad(0x339)][_0x42bfad(0x22a)](),this[_0x42bfad(0x2ad)]['next']([]),this[_0x42bfad(0x2ad)][_0x42bfad(0x22a)]();}[_0x26c91b(0x324)](){const _0x2bb6d1=_0x26c91b;this[_0x2bb6d1(0x1d9)]||(this[_0x2bb6d1(0x1d9)]=!0x0,this[_0x2bb6d1(0x356)][_0x2bb6d1(0x25f)][_0x2bb6d1(0x15c)](d[_0x2bb6d1(0x10e)](this[_0x2bb6d1(0x2d4)]))['subscribe'](_0x40aae3=>{const _0x44cc80=_0x2bb6d1;_0x40aae3===u['SessionStatus']['ONLINE']?this[_0x44cc80(0x2e6)]():this[_0x44cc80(0x344)]();}),this[_0x2bb6d1(0x356)]['event$'][_0x2bb6d1(0x15c)](d[_0x2bb6d1(0x10e)](this[_0x2bb6d1(0x2d4)]))[_0x2bb6d1(0x257)](_0x12a7a1=>{const _0x1b1016=_0x2bb6d1,_0x5620cc=_0x12a7a1[_0x1b1016(0x387)];_0x5620cc===m[_0x1b1016(0x28d)]['UPDATE_CURSOR']&&this[_0x1b1016(0x12b)](_0x12a7a1),_0x5620cc===m['CollaborationEvent'][_0x1b1016(0x25b)]&&this[_0x1b1016(0x143)](_0x12a7a1);}),this[_0x2bb6d1(0x1dc)](this[_0x2bb6d1(0x164)][_0x2bb6d1(0x2ae)](_0x19e274=>{const _0x4a1446=_0x2bb6d1,_0xc43675=_0x19e274[_0x4a1446(0x181)];_0xc43675!=null&&this['_online']&&_0x19e274['id']===W[_0x4a1446(0x1fb)]['id']&&_0xc43675[_0x4a1446(0x221)]===this[_0x4a1446(0x21b)]&&_0xc43675['isEditing']===!0x1&&_0xc43675['ranges']['length']>0x0&&this[_0x4a1446(0x1d0)](_0xc43675[_0x4a1446(0x386)]);})),this[_0x2bb6d1(0x1dd)][_0x2bb6d1(0x240)]['pipe'](d[_0x2bb6d1(0x10e)](this[_0x2bb6d1(0x2d4)]))['subscribe'](_0x13302c=>{const _0x9ccb05=_0x2bb6d1;if((_0x13302c==null?void 0x0:_0x13302c[_0x9ccb05(0x21b)])!==this[_0x9ccb05(0x21b)])return;const _0x14e32f={'eventID':m[_0x9ccb05(0x28d)][_0x9ccb05(0x2c6)],'data':_0x13302c};this[_0x9ccb05(0x12b)](_0x14e32f);}),this[_0x2bb6d1(0x1dc)](this[_0x2bb6d1(0x164)][_0x2bb6d1(0x2ae)](_0x4f8b4c=>{const _0x1b0946=_0x2bb6d1;if(_0x4f8b4c[_0x1b0946(0x181)]==null)return;const _0xc7a41b=_0x4f8b4c[_0x1b0946(0x181)];if(_0x4f8b4c['id']!==W['RichTextEditingMutation']['id']||_0xc7a41b[_0x1b0946(0x221)]!==this[_0x1b0946(0x21b)])return;const _0x378c84={'id':_0x1b0946(0x153),'params':_0xc7a41b},_0x493205=this[_0x1b0946(0x265)];for(const [_0x11939d,_0x9f5d1b]of _0x493205){const _0x28a1de={'id':'doc.mutation.rich-text-editing','params':{'unitId':this[_0x1b0946(0x21b)],'actions':null,'textRanges':_0x9f5d1b['ranges']}},_0x3ea169=this[_0x1b0946(0x19f)][_0x1b0946(0x29b)](_0x378c84,_0x28a1de,!0x1);if(m[_0x1b0946(0x394)](_0x3ea169))throw _0x3ea169[_0x1b0946(0x33b)];_0x493205[_0x1b0946(0x305)](_0x11939d,{..._0x9f5d1b,'ranges':_0x3ea169[_0x1b0946(0x18e)][_0x1b0946(0x181)][_0x1b0946(0x38d)]});}queueMicrotask(()=>{const _0x37d1cb=_0x1b0946;this[_0x37d1cb(0x339)]['next'](_0x493205);});})));}[_0x26c91b(0x12b)](_0x222c87){const _0x50c863=_0x26c91b;var _0x5dd682,_0x120475;const {memberID:_0x5b7085,selection:_0x434bcf}=_0x222c87[_0x50c863(0x368)],_0x2db935=Je(_0x434bcf),_0x56eb08=(_0x120475=(_0x5dd682=this[_0x50c863(0x1ee)][_0x50c863(0x388)](this[_0x50c863(0x21b)],_0x5b7085))==null?void 0x0:_0x5dd682[_0x50c863(0x180)])!=null?_0x120475:_0x50c863(0x1e8),_0x58d139={'color':this['_colorAssignService']['assignAColorForMemberID'](_0x5b7085),'name':_0x56eb08,'ranges':_0x2db935},_0x13130e=this[_0x50c863(0x265)];_0x13130e[_0x50c863(0x305)](_0x5b7085,_0x58d139),this['_cursorInfo$'][_0x50c863(0x2d2)](_0x13130e);}['_onCursorDelete'](_0x4156b6){const _0xb0df47=_0x26c91b,{memberID:_0x115c45}=_0x4156b6[_0xb0df47(0x368)],_0x603b78=this[_0xb0df47(0x265)];_0x603b78[_0xb0df47(0x186)](_0x115c45),this[_0xb0df47(0x339)][_0xb0df47(0x2d2)](_0x603b78);}[_0x26c91b(0x2e6)](){const _0xfa5707=_0x26c91b;var _0x2cbbc6;if(this[_0xfa5707(0x1c7)]=!0x0,((_0x2cbbc6=this['_univerInstanceService'][_0xfa5707(0x1a9)]())==null?void 0x0:_0x2cbbc6['getUnitId']())!==this[_0xfa5707(0x21b)])return;const _0x4b62f5=this[_0xfa5707(0x325)][_0xfa5707(0x141)](W[_0xfa5707(0x17d)])[_0xfa5707(0x20a)]();Array[_0xfa5707(0x331)](_0x4b62f5)&&_0x4b62f5[_0xfa5707(0x362)]>0x0&&this['_updateLocalCursor'](_0x4b62f5);}[_0x26c91b(0x344)](){const _0x718233=_0x26c91b;this[_0x718233(0x1c7)]=!0x1;}};fe=Qe([L(0x2,a[_0x26c91b(0x357)](a[_0x26c91b(0x11a)])),L(0x3,a[_0x26c91b(0x357)](me)),L(0x4,a[_0x26c91b(0x357)](u[_0x26c91b(0x37b)])),L(0x5,a[_0x26c91b(0x357)](Ce)),L(0x6,m[_0x26c91b(0x148)]),L(0x7,a[_0x26c91b(0x1f2)]),L(0x8,a['ICommandService'])],fe);var st=Object[_0x26c91b(0x30b)],it=(_0xf97c2,_0x12baa5,_0x3f0fc3,_0x54535c)=>{const _0x4c2bc7=_0x26c91b;for(var _0x4eecc5=_0x54535c>0x1?void 0x0:_0x54535c?st(_0x12baa5,_0x3f0fc3):_0x12baa5,_0x4c8a6b=_0xf97c2[_0x4c2bc7(0x362)]-0x1,_0x3c5a01;_0x4c8a6b>=0x0;_0x4c8a6b--)(_0x3c5a01=_0xf97c2[_0x4c8a6b])&&(_0x4eecc5=_0x3c5a01(_0x4eecc5)||_0x4eecc5);return _0x4eecc5;},A=(_0x1ad437,_0x4b61d5)=>(_0x4a05e3,_0x569815)=>_0x4b61d5(_0x4a05e3,_0x569815,_0x1ad437);const nt=0x12c,rt=0x64,ot=()=>{let _0x413fe2=[],_0x5240b5=!0x1;return _0x322bc4=>{_0x413fe2['push'](_0x322bc4),_0x5240b5||(_0x5240b5=!0x0,setTimeout(()=>{const _0xe98a34=_0x58e8;_0x413fe2[_0xe98a34(0x2b2)](_0x388730=>_0x388730()),_0x413fe2=[],_0x5240b5=!0x1;}));};};let Se=class extends a[_0x26c91b(0x31f)]{constructor(_0x547d71,_0xed3585,_0x2c8fa9,_0x55d889,_0x726620,_0x4fa500,_0x1854bb,_0x35b2b5){const _0x4f0945=_0x26c91b;super(),h(this,_0x4f0945(0x1c7),!0x1),h(this,'_init',!0x1),h(this,_0x4f0945(0x339),new d['BehaviorSubject'](new Map())),h(this,'cursorInfo$',this[_0x4f0945(0x339)][_0x4f0945(0x338)]()),h(this,_0x4f0945(0x2ad),new d['BehaviorSubject']([])),h(this,_0x4f0945(0x32e),this[_0x4f0945(0x2ad)]['pipe'](d[_0x4f0945(0x1c8)](nt))),h(this,_0x4f0945(0x1d0),a[_0x4f0945(0x2d5)]((_0x1aeb45,_0x1ac591)=>{const _0x434e4e=_0x4f0945,_0x4238b9={'eventID':m[_0x434e4e(0x28d)]['UPDATE_CURSOR'],'data':{'unitID':this[_0x434e4e(0x21b)],'memberID':this['_session'][_0x434e4e(0x2e3)](),'selection':Ee[_0x434e4e(0x14a)](_0x1aeb45,_0x1ac591['range'])}};this[_0x434e4e(0x356)]['send'](_0x4238b9,this[_0x434e4e(0x21b)]);},rt)),(this[_0x4f0945(0x21b)]=_0x547d71,this[_0x4f0945(0x356)]=_0xed3585,this[_0x4f0945(0x325)]=_0x2c8fa9,this['_colorAssignService']=_0x55d889,this[_0x4f0945(0x1ee)]=_0x726620,this['_univerInstanceService']=_0x4fa500,this[_0x4f0945(0x164)]=_0x1854bb,this[_0x4f0945(0x237)]=_0x35b2b5);}get['cursorInfo'](){const _0x25ef44=_0x26c91b;return this[_0x25ef44(0x339)][_0x25ef44(0x2bc)]();}get[_0x26c91b(0x33d)](){const _0x514541=_0x26c91b;return this[_0x514541(0x2ad)][_0x514541(0x2bc)]();}['dispose'](){const _0x4f5fa3=_0x26c91b;super[_0x4f5fa3(0x2c0)](),this[_0x4f5fa3(0x339)]['next'](new Map()),this[_0x4f5fa3(0x339)]['complete'](),this[_0x4f5fa3(0x2ad)]['next']([]),this[_0x4f5fa3(0x2ad)]['complete']();}[_0x26c91b(0x324)](){const _0x2f8e8e=_0x26c91b;this['_init']||(this[_0x2f8e8e(0x1d9)]=!0x0,this['_session']['sessionStatus$'][_0x2f8e8e(0x15c)](d[_0x2f8e8e(0x10e)](this[_0x2f8e8e(0x2d4)]))[_0x2f8e8e(0x257)](_0x14785d=>{const _0x4af5ca=_0x2f8e8e;_0x14785d===u[_0x4af5ca(0x2d7)]['ONLINE']?this[_0x4af5ca(0x2e6)]():this[_0x4af5ca(0x344)]();}),this[_0x2f8e8e(0x356)][_0x2f8e8e(0x268)][_0x2f8e8e(0x15c)](d[_0x2f8e8e(0x10e)](this[_0x2f8e8e(0x2d4)]))[_0x2f8e8e(0x257)](_0x35c662=>{const _0x43bc32=_0x2f8e8e,_0x1d7d01=_0x35c662[_0x43bc32(0x387)];_0x1d7d01===m[_0x43bc32(0x28d)][_0x43bc32(0x2c6)]&&this['_onCursorUpdate'](_0x35c662),_0x1d7d01===m[_0x43bc32(0x28d)]['USERS_LEAVE']&&this['_onCursorDelete'](_0x35c662);}),this['_onRefRangeChange'](),this[_0x2f8e8e(0x1dc)](this[_0x2f8e8e(0x164)][_0x2f8e8e(0x2ae)](_0x440efd=>{const _0x226d16=_0x2f8e8e;if(this['_online']&&_0x440efd['id']===g[_0x226d16(0x15b)]['id']&&_0x440efd[_0x226d16(0x181)][_0x226d16(0x221)]===this[_0x226d16(0x21b)]){const _0x566a67=_0x440efd['params'];this['_updateLocalCursor'](_0x566a67[_0x226d16(0x374)],_0x566a67[_0x226d16(0x310)][0x0]);}})));}[_0x26c91b(0x12b)](_0x419b3d){const _0x3d0570=_0x26c91b;var _0x331405,_0x3e5af2;const {memberID:_0x5be4a,selection:_0x5f41b0}=_0x419b3d[_0x3d0570(0x368)],{sheetName:_0x4e9835,range:_0x28d5fc}=Ee[_0x3d0570(0x37f)](_0x5f41b0),_0x1ca37b={'name':(_0x3e5af2=(_0x331405=this[_0x3d0570(0x1ee)][_0x3d0570(0x388)](this[_0x3d0570(0x21b)],_0x5be4a))==null?void 0x0:_0x331405[_0x3d0570(0x180)])!=null?_0x3e5af2:_0x3d0570(0x1e8),'range':this[_0x3d0570(0x390)](_0x4e9835,_0x28d5fc),'sheetID':_0x4e9835,'color':this[_0x3d0570(0x31e)][_0x3d0570(0x2bf)](_0x5be4a),'selection':_0x5f41b0},_0x3ecb5c=this[_0x3d0570(0x265)];_0x3ecb5c[_0x3d0570(0x305)](_0x5be4a,_0x1ca37b),this[_0x3d0570(0x339)][_0x3d0570(0x2d2)](_0x3ecb5c);}[_0x26c91b(0x143)](_0x19657e){const _0x2b57aa=_0x26c91b,{memberID:_0x595c41}=_0x19657e[_0x2b57aa(0x368)],_0x54402a=this[_0x2b57aa(0x265)];_0x54402a[_0x2b57aa(0x186)](_0x595c41),this[_0x2b57aa(0x339)][_0x2b57aa(0x2d2)](_0x54402a);}['_getMergeRange'](_0x444a47,_0x516e88){const _0x2f6a09=_0x26c91b;var _0x5826e0,_0x675227;const _0x43ec7a=(_0x675227=(_0x5826e0=this['_univerInstanceService'][_0x2f6a09(0x189)](this[_0x2f6a09(0x21b)]))==null?void 0x0:_0x5826e0[_0x2f6a09(0x18d)](_0x444a47))==null?void 0x0:_0x675227['getMergeData']();return(_0x43ec7a==null?void 0x0:_0x43ec7a['find'](_0x1531b7=>a[_0x2f6a09(0x2a3)]['contains'](_0x1531b7,_0x516e88)))||_0x516e88;}[_0x26c91b(0x229)](){const _0x4075e8=_0x26c91b,_0x57438d=new a[(_0x4075e8(0x26d))](),_0x53c98e=ot(),_0x175697=()=>{const _0x3a2870=_0x4075e8;_0x57438d['dispose']();const _0x48ea56=(_0x23e24f,_0x38e8fb,_0x3e80e4,_0x219b9c)=>{const _0x84ca99=_0x58e8;let _0x305bd4=[];switch(_0x23e24f['id']){case g[_0x84ca99(0x171)][_0x84ca99(0x23c)]:{_0x305bd4=g[_0x84ca99(0x358)](_0x23e24f,_0x219b9c);break;}case g[_0x84ca99(0x171)][_0x84ca99(0x179)]:{_0x305bd4=g[_0x84ca99(0x2ab)](_0x23e24f,_0x219b9c);break;}case g['EffectRefRangId'][_0x84ca99(0x16b)]:{_0x305bd4=g['handleInsertCol'](_0x23e24f,_0x219b9c);break;}case g[_0x84ca99(0x171)][_0x84ca99(0x33c)]:{_0x305bd4=g[_0x84ca99(0x284)](_0x23e24f,_0x219b9c);break;}case g['EffectRefRangId'][_0x84ca99(0x18a)]:{_0x305bd4=g[_0x84ca99(0x2f8)](_0x23e24f,_0x219b9c);break;}case g['EffectRefRangId']['InsertRowCommandId']:{_0x305bd4=g['handleInsertRow'](_0x23e24f,_0x219b9c);break;}case g[_0x84ca99(0x171)]['MoveRangeCommandId']:{_0x305bd4=g[_0x84ca99(0x32c)](_0x23e24f,_0x219b9c);break;}case g['EffectRefRangId'][_0x84ca99(0x139)]:{_0x305bd4=g[_0x84ca99(0x365)](_0x23e24f,_0x219b9c);break;}case g[_0x84ca99(0x171)][_0x84ca99(0x2a5)]:{_0x305bd4=g[_0x84ca99(0x351)](_0x23e24f,_0x219b9c);break;}}const _0x531cc7=g['runRefRangeMutations'](_0x305bd4,_0x219b9c),_0x32ef87=this[_0x84ca99(0x265)][_0x84ca99(0x141)](_0x38e8fb);if(_0x32ef87&&_0x531cc7){const _0x149d94={..._0x32ef87,'range':_0x531cc7};this[_0x84ca99(0x265)][_0x84ca99(0x305)](_0x38e8fb,_0x149d94),_0x53c98e(()=>{const _0x3c4517=_0x84ca99,_0x24def4=this[_0x3c4517(0x237)][_0x3c4517(0x337)](_0x531cc7,_0x29c983=>(_0x24def4[_0x3c4517(0x2c0)](),_0x48ea56(_0x29c983,_0x38e8fb,_0x3e80e4,_0x531cc7)));_0x57438d[_0x3c4517(0x1d4)](_0x24def4);});}return{'redos':[],'undos':[]};};this[_0x3a2870(0x265)][_0x3a2870(0x2b2)]((_0x53fde8,_0x412480)=>{const _0x53bc6c=_0x3a2870,{range:_0x51795d,sheetID:_0xcab8a7}=_0x53fde8,_0x5b83ca=this['_refRangeService'][_0x53bc6c(0x337)](_0x51795d,_0x3a0873=>(_0x5b83ca['dispose'](),_0x48ea56(_0x3a0873,_0x412480,_0xcab8a7,_0x51795d)));_0x57438d[_0x53bc6c(0x1d4)](_0x5b83ca);});};this[_0x4075e8(0x1dc)](a['toDisposable'](this['_cursorInfo$'][_0x4075e8(0x257)](()=>{_0x175697();})));}[_0x26c91b(0x2e6)](){const _0x2d08e1=_0x26c91b;var _0x3658c1,_0x1b767a;if(this[_0x2d08e1(0x1c7)]=!0x0,((_0x3658c1=this[_0x2d08e1(0x272)][_0x2d08e1(0x1a9)]())==null?void 0x0:_0x3658c1[_0x2d08e1(0x10c)]())!==this[_0x2d08e1(0x21b)])return;const _0x6ccfec=(_0x1b767a=this[_0x2d08e1(0x325)][_0x2d08e1(0x141)](g[_0x2d08e1(0x130)])[_0x2d08e1(0x2c8)]())==null?void 0x0:_0x1b767a[0x0],_0x25a72b=this[_0x2d08e1(0x272)][_0x2d08e1(0x2a0)](a['UniverInstanceType']['UNIVER_SHEET'])[_0x2d08e1(0x2a9)]();_0x6ccfec&&_0x25a72b&&this[_0x2d08e1(0x1d0)](_0x25a72b[_0x2d08e1(0x335)](),_0x6ccfec);}[_0x26c91b(0x344)](){const _0x405c8e=_0x26c91b;this[_0x405c8e(0x1c7)]=!0x1;}};Se=it([A(0x2,a[_0x26c91b(0x357)](a[_0x26c91b(0x11a)])),A(0x3,a[_0x26c91b(0x357)](me)),A(0x4,a['Inject'](u[_0x26c91b(0x37b)])),A(0x5,a[_0x26c91b(0x1f2)]),A(0x6,a['ICommandService']),A(0x7,a[_0x26c91b(0x357)](g[_0x26c91b(0x115)]))],Se);var at=Object[_0x26c91b(0x30b)],ct=(_0x1fefb7,_0x550359,_0x55ed50,_0x300135)=>{for(var _0x59b6d1=_0x300135>0x1?void 0x0:_0x300135?at(_0x550359,_0x55ed50):_0x550359,_0x2ba67c=_0x1fefb7['length']-0x1,_0x2b44f3;_0x2ba67c>=0x0;_0x2ba67c--)(_0x2b44f3=_0x1fefb7[_0x2ba67c])&&(_0x59b6d1=_0x2b44f3(_0x59b6d1)||_0x59b6d1);return _0x59b6d1;},ie=(_0x1ba509,_0x13ece9)=>(_0x3cff9d,_0xb9b336)=>_0x13ece9(_0x3cff9d,_0xb9b336,_0x1ba509);let x=class extends a[_0x26c91b(0x31f)]{constructor(_0x5dd9ca,_0xe51cdb,_0x4cc998){const _0x8f5c6e=_0x26c91b;super(),h(this,_0x8f5c6e(0x281),new Map()),h(this,_0x8f5c6e(0x291),new d[(_0x8f5c6e(0x2f5))]()),(this['_univerInstanceService']=_0x5dd9ca,this[_0x8f5c6e(0x325)]=_0xe51cdb,this[_0x8f5c6e(0x2be)]=_0x4cc998,this['_init']());}[_0x26c91b(0x2c0)](){const _0x22f32f=_0x26c91b;super[_0x22f32f(0x2c0)](),this[_0x22f32f(0x291)][_0x22f32f(0x22a)](),this[_0x22f32f(0x281)][_0x22f32f(0x2b2)](_0x493456=>_0x493456[_0x22f32f(0x2c0)]());}[_0x26c91b(0x187)](_0x3fcb31){const _0x236b03=_0x26c91b;return this[_0x236b03(0x281)][_0x236b03(0x275)](_0x3fcb31)?this[_0x236b03(0x281)]['get'](_0x3fcb31)[_0x236b03(0x168)]:this[_0x236b03(0x291)][_0x236b03(0x15c)](d[_0x236b03(0x392)](_0x3549a3=>_0x3549a3[_0x236b03(0x21b)]===_0x3fcb31),d[_0x236b03(0x198)](_0x2b42e3=>_0x2b42e3[_0x236b03(0x168)]));}[_0x26c91b(0x1d9)](){const _0x4ac63f=_0x26c91b;this[_0x4ac63f(0x272)]['getTypeOfUnitAdded$'](a['UniverInstanceType'][_0x4ac63f(0x192)])[_0x4ac63f(0x15c)](d[_0x4ac63f(0x10e)](this[_0x4ac63f(0x2d4)]))['subscribe'](async _0x5b1eb9=>{const _0x2c1081=_0x4ac63f,_0x12845d=_0x5b1eb9[_0x2c1081(0x10c)](),_0x407d36=await this[_0x2c1081(0x106)](_0x12845d);this[_0x2c1081(0x291)][_0x2c1081(0x2d2)](_0x407d36),this[_0x2c1081(0x281)]['set'](_0x12845d,_0x407d36);}),this[_0x4ac63f(0x272)]['getTypeOfUnitAdded$'](a[_0x4ac63f(0x1ff)][_0x4ac63f(0x270)])['pipe'](d[_0x4ac63f(0x10e)](this['dispose$']))[_0x4ac63f(0x15c)](d[_0x4ac63f(0x392)](_0x2199af=>!_0x2199af[_0x4ac63f(0x10c)]()[_0x4ac63f(0x1a7)]('__')))[_0x4ac63f(0x257)](async _0x3b858a=>{const _0x258415=_0x4ac63f,_0x5608b2=_0x3b858a['getUnitId'](),_0x3a5898=await this[_0x258415(0x11b)](_0x5608b2);this[_0x258415(0x291)]['next'](_0x3a5898),this['_entities'][_0x258415(0x305)](_0x5608b2,_0x3a5898);}),d[_0x4ac63f(0x248)](this[_0x4ac63f(0x272)]['getTypeOfUnitDisposed$'](a['UniverInstanceType'][_0x4ac63f(0x270)]),this['_univerInstanceService']['getTypeOfUnitDisposed$'](a[_0x4ac63f(0x1ff)][_0x4ac63f(0x192)]))['pipe'](d[_0x4ac63f(0x10e)](this[_0x4ac63f(0x2d4)]))[_0x4ac63f(0x257)](_0x5b41d3=>{const _0x28c5dd=_0x4ac63f,_0x5be322=_0x5b41d3['getUnitId'](),_0x3ae3b9=this[_0x28c5dd(0x281)][_0x28c5dd(0x141)](_0x5be322);_0x3ae3b9&&(_0x3ae3b9[_0x28c5dd(0x2c0)](),this[_0x28c5dd(0x281)][_0x28c5dd(0x186)](_0x5be322));});}async[_0x26c91b(0x106)](_0x54947f){const _0x13ec04=_0x26c91b,_0x19011f=await this[_0x13ec04(0x2be)]['requireSession'](_0x54947f),_0x56184c=this[_0x13ec04(0x325)][_0x13ec04(0x24f)](Se,_0x54947f,_0x19011f);return _0x56184c['init'](),_0x56184c;}async['_startDocCollabCursor'](_0x259b1e){const _0x2b68f4=_0x26c91b,_0x51e17b=await this[_0x2b68f4(0x2be)][_0x2b68f4(0x34b)](_0x259b1e),_0x18bb69=this[_0x2b68f4(0x325)][_0x2b68f4(0x24f)](fe,_0x259b1e,_0x51e17b);return _0x18bb69[_0x2b68f4(0x324)](),_0x18bb69;}};x=ct([ie(0x0,a[_0x26c91b(0x1f2)]),ie(0x1,a['Inject'](a['Injector'])),ie(0x2,a[_0x26c91b(0x357)](u[_0x26c91b(0x2ef)]))],x);const q=0x14,Re=0xc8,ne=0x4,lt=0x5;function _t(_0x16f311,_0x3cce0b){const _0x28efff=_0x26c91b;let {radius:_0x5a3e56,width:_0xa0e57f,height:_0x464760}=_0x3cce0b;_0x5a3e56=_0x5a3e56!=null?_0x5a3e56:0x0,_0xa0e57f=_0xa0e57f!=null?_0xa0e57f:0x1e,_0x464760=_0x464760!=null?_0x464760:0x1e;let _0x578f6e=0x0,_0x3c41a5=0x0,_0x42903b=0x0;_0x578f6e=_0x3c41a5=_0x42903b=Math[_0x28efff(0x1eb)](_0x5a3e56,_0xa0e57f/0x2,_0x464760/0x2),_0x16f311['beginPath'](),_0x16f311['moveTo'](_0x578f6e,0x0),_0x16f311[_0x28efff(0x249)](_0xa0e57f-_0x3c41a5,0x0),_0x16f311['arc'](_0xa0e57f-_0x3c41a5,_0x3c41a5,_0x3c41a5,Math['PI']*0x3/0x2,0x0,!0x1),_0x16f311['lineTo'](_0xa0e57f,_0x464760-_0x42903b),_0x16f311['arc'](_0xa0e57f-_0x42903b,_0x464760-_0x42903b,_0x42903b,0x0,Math['PI']/0x2,!0x1),_0x16f311[_0x28efff(0x249)](0x0,_0x464760),_0x16f311['lineTo'](0x0,_0x578f6e),_0x16f311['arc'](_0x578f6e,_0x578f6e,_0x578f6e,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x16f311[_0x28efff(0x1e1)](),_0x3cce0b[_0x28efff(0x2c5)]&&(_0x16f311[_0x28efff(0x118)](),_0x16f311[_0x28efff(0x25a)]=_0x3cce0b[_0x28efff(0x2c5)],_0x3cce0b[_0x28efff(0x2fd)]===_0x28efff(0x25e)?_0x16f311[_0x28efff(0x2c5)](_0x28efff(0x25e)):_0x16f311[_0x28efff(0x2c5)](),_0x16f311[_0x28efff(0x172)]());}class ee extends p[_0x26c91b(0x190)]{constructor(_0x327178,_0x5f1025){const _0xa1a5a3=_0x26c91b;super(_0x327178,_0x5f1025),h(this,_0xa1a5a3(0x389)),h(this,_0xa1a5a3(0x114)),(this[_0xa1a5a3(0x389)]=_0x5f1025==null?void 0x0:_0x5f1025[_0xa1a5a3(0x389)],this[_0xa1a5a3(0x114)]=_0x5f1025==null?void 0x0:_0x5f1025['text']);}static['drawWith'](_0x28ec02,_0x578e46){const _0x1599c8=_0x26c91b,{text:_0x34e9aa,color:_0x123d61}=_0x578e46;_0x28ec02[_0x1599c8(0x118)](),_0x28ec02['font']='bold\x2013px\x20Source\x20Han\x20Sans\x20CN';const _0x1ad622=_0x28ec02[_0x1599c8(0x2c2)](_0x34e9aa)[_0x1599c8(0x38b)],_0x2f091d=Math['min'](_0x1ad622+0x2*ne,Re);_t(_0x28ec02,{'height':q,'radius':0x4,'width':_0x2f091d,'fill':_0x123d61}),_0x28ec02[_0x1599c8(0x25a)]='#FFF';const _0x365cdd=ne,_0x521b3b=q-lt,_0x17961e=Re-0x2*ne;if(_0x1ad622>_0x17961e){let _0x14a095='',_0x7dcd89=0x0;for(const _0x423fa8 of _0x34e9aa){const _0x186798=_0x28ec02[_0x1599c8(0x2c2)](_0x423fa8)['width'];if(_0x7dcd89+_0x186798<=_0x17961e-_0x28ec02[_0x1599c8(0x2c2)](_0x1599c8(0x286))['width'])_0x14a095+=_0x423fa8,_0x7dcd89+=_0x186798;else{_0x14a095+=_0x1599c8(0x286);break;}}_0x28ec02['fillText'](_0x14a095,_0x365cdd,_0x521b3b);}else _0x28ec02[_0x1599c8(0x251)](_0x34e9aa,_0x365cdd,_0x521b3b);_0x28ec02['restore']();}['_draw'](_0x5e14b1){const _0x59fe44=_0x26c91b;ee[_0x59fe44(0x205)](_0x5e14b1,this);}}const re=_0x26c91b(0x142),ht=_0x26c91b(0x1a4),ut='collab-rect-range-',k=0x6,dt=1.5,oe=0x4,ft=1.5,St=_0x26c91b(0x296);class De{constructor(_0x35693c,_0x5be3b6,_0x38f059,_0x5b2b28){const _0x3dfbfa=_0x26c91b;h(this,_0x3dfbfa(0x1b7),[]),h(this,'_anchor',null),h(this,_0x3dfbfa(0x1ab),null),h(this,_0x3dfbfa(0x260),null),h(this,_0x3dfbfa(0x127),null),h(this,'_eventUnsubscribe',null),(this['_cursor']=_0x35693c,this['_scene']=_0x5be3b6,this['_docSkeleton']=_0x38f059,this[_0x3dfbfa(0x225)]=_0x5b2b28,this[_0x3dfbfa(0x160)]());}set[_0x26c91b(0x162)](_0x333599){const _0x78e181=_0x26c91b;_0x333599?(this['_anchorDot']&&this['_anchorDot'][_0x78e181(0x395)](),this[_0x78e181(0x1ab)]&&this[_0x78e181(0x1ab)][_0x78e181(0x255)]()):(this[_0x78e181(0x260)]&&this[_0x78e181(0x260)][_0x78e181(0x255)](),this[_0x78e181(0x1ab)]&&this[_0x78e181(0x1ab)][_0x78e181(0x395)]());}[_0x26c91b(0x2c0)](){const _0x46dda0=_0x26c91b;for(const _0x42663c of this['_shapes'])_0x42663c[_0x46dda0(0x2c0)]();this[_0x46dda0(0x1ab)]&&this[_0x46dda0(0x1ab)][_0x46dda0(0x2c0)](),this['_anchorDot']&&this['_anchorDot'][_0x46dda0(0x2c0)](),this[_0x46dda0(0x30a)]&&this[_0x46dda0(0x30a)]['dispose'](),this['_eventUnsubscribe']&&this['_eventUnsubscribe']();}[_0x26c91b(0x160)](){const _0x5a7409=_0x26c91b;var _0x28dcac;const {_docSkeleton:_0x262a51,_document:_0x49551d}=this,{color:_0x2cdb98,name:_0x4691e5,ranges:_0x2fd885}=this[_0x5a7409(0x214)],_0x3ba1b9=_0x49551d[_0x5a7409(0x1d1)](),{docsLeft:_0x2a9db0,docsTop:_0x358046}=_0x3ba1b9,_0x1c1ee6=new b[(_0x5a7409(0x10b))](_0x3ba1b9,_0x262a51);for(const {startOffset:_0xa44b6d,endOffset:_0x125704,rangeType:_0x1d7066,segmentId:_0x58ddcd,segmentPage:_0x344328,collapsed:_0x3dfcc8,isActive:_0x515245}of _0x2fd885){const _0x1e1903=_0x262a51[_0x5a7409(0x116)](_0xa44b6d,!0x0,_0x58ddcd,_0x344328);let _0x22d4a5=_0x262a51['findNodePositionByCharIndex'](_0x125704,!0x0,_0x58ddcd,_0x344328);if(_0x22d4a5==null&&(_0x22d4a5=_0x262a51[_0x5a7409(0x116)](_0x125704-0x1,!0x1,_0x58ddcd,_0x344328)),_0x515245){const {contentBoxPointGroup:_0x5f12d7}=_0x1c1ee6[_0x5a7409(0x138)](_0x22d4a5,_0x22d4a5);if(_0x5f12d7[_0x5a7409(0x362)]===0x0)continue;this[_0x5a7409(0x322)](_0x2cdb98,_0x5f12d7,_0x2a9db0,_0x358046,_0x4691e5),this[_0x5a7409(0x213)]=this[_0x5a7409(0x35c)]();}if(_0x1e1903&&_0x22d4a5){if(_0x1d7066===a[_0x5a7409(0x302)]['RECT']){const _0x5b9201=new b[(_0x5a7409(0x2a7))](_0x3ba1b9,_0x262a51),{pointGroup:_0x2482b2}=(_0x28dcac=_0x5b9201[_0x5a7409(0x138)](_0x1e1903,_0x22d4a5))!=null?_0x28dcac:{};if(_0x2482b2==null||_0x2482b2[_0x5a7409(0x362)]===0x0)continue;this[_0x5a7409(0x29a)](_0x2cdb98,_0x2482b2,_0x2a9db0,_0x358046);}else{if(!_0x3dfcc8){const {borderBoxPointGroup:_0x2347d0}=_0x1c1ee6[_0x5a7409(0x138)](_0x1e1903,_0x22d4a5);if(_0x2347d0[_0x5a7409(0x362)]===0x0)continue;this[_0x5a7409(0x2ed)](_0x2cdb98,_0x2347d0,_0x2a9db0,_0x358046);}}}}}[_0x26c91b(0x322)](_0x5424d3,_0x47630f,_0x26ca5c,_0x4fb48c,_0x165551){const _0x56b3d0=_0x26c91b,_0x535a21=this['_getAnchorBounding'](_0x47630f),{left:_0x3a1a8d,top:_0x4ea90d,height:_0x2f83f2}=_0x535a21,_0x217e10=this[_0x56b3d0(0x288)](),_0x2aa9e2=ft/_0x217e10,_0x3da84c=new p[(_0x56b3d0(0x377))](re+a[_0x56b3d0(0x1ec)][_0x56b3d0(0x1ae)](k),{'left':_0x3a1a8d+_0x26ca5c-_0x2aa9e2,'top':_0x4ea90d+_0x4fb48c,'height':_0x2f83f2,'width':dt,'fill':_0x5424d3||p[_0x56b3d0(0x1cc)](a[_0x56b3d0(0x15f)]['black'],0x0),'strokeWidth':_0x2aa9e2,'stroke':St,'evented':!0x0});this[_0x56b3d0(0x30a)]=_0x3da84c,this[_0x56b3d0(0x17b)][_0x56b3d0(0x1bf)](_0x3da84c,b['TEXT_RANGE_LAYER_INDEX']);const _0x5ecc77=new p[(_0x56b3d0(0x377))](re+a[_0x56b3d0(0x1ec)][_0x56b3d0(0x1ae)](k),{'left':_0x3a1a8d+_0x26ca5c-_0x2aa9e2,'top':_0x4ea90d+_0x4fb48c-oe/0x2,'height':oe,'width':oe,'fill':_0x5424d3||p[_0x56b3d0(0x1cc)](a[_0x56b3d0(0x15f)][_0x56b3d0(0x1ac)],0x0),'strokeWidth':0x0,'stroke':_0x5424d3||p['getColor'](a[_0x56b3d0(0x15f)][_0x56b3d0(0x1ac)],0x0),'evented':!0x1});this[_0x56b3d0(0x260)]=_0x5ecc77,this[_0x56b3d0(0x17b)][_0x56b3d0(0x1bf)](_0x5ecc77,b[_0x56b3d0(0x126)]);const _0x9b8192=new ee(re+a['Tools']['generateRandomId'](k),{'left':_0x3a1a8d+_0x26ca5c-_0x2aa9e2,'top':_0x4ea90d+_0x4fb48c-q,'text':_0x165551,'color':_0x5424d3});this[_0x56b3d0(0x1ab)]=_0x9b8192,this['_scene']['addObject'](_0x9b8192,b['TEXT_RANGE_LAYER_INDEX']),this[_0x56b3d0(0x162)]=!0x1;}['_handleHover'](){const _0x59c954=_0x26c91b,_0x25ae3e=this['_anchor'][_0x59c954(0x37d)]['subscribeEvent'](()=>{const _0x47684c=_0x59c954;this[_0x47684c(0x162)]=!0x0;}),_0x473a5f=this[_0x59c954(0x30a)][_0x59c954(0x375)][_0x59c954(0x283)](()=>{const _0x2a7583=_0x59c954;this[_0x2a7583(0x127)]&&clearTimeout(this[_0x2a7583(0x127)]),this[_0x2a7583(0x127)]=setTimeout(()=>{const _0x12fce2=_0x2a7583;this[_0x12fce2(0x162)]=!0x1;},0x7d0);});return()=>{const _0x3c9596=_0x59c954;_0x25ae3e[_0x3c9596(0x26c)](),_0x473a5f[_0x3c9596(0x26c)]();};}[_0x26c91b(0x2ed)](_0x4dc9c7,_0x143e8e,_0x14dcce,_0x52fe06){const _0x2c46eb=_0x26c91b,_0x127809=new a[(_0x2c46eb(0x30c))](_0x4dc9c7)[_0x2c46eb(0x34c)](0.2)[_0x2c46eb(0x391)](),_0x3b2465=new p[(_0x2c46eb(0x156))](ht+a[_0x2c46eb(0x1ec)][_0x2c46eb(0x1ae)](k),{'pointsGroup':_0x143e8e,'fill':_0x127809||p[_0x2c46eb(0x1cc)](a['COLORS'][_0x2c46eb(0x1ac)],0.2),'left':_0x14dcce,'top':_0x52fe06,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x2c46eb(0x1b7)][_0x2c46eb(0x355)](_0x3b2465),this[_0x2c46eb(0x17b)][_0x2c46eb(0x1bf)](_0x3b2465,b[_0x2c46eb(0x126)]);}['_drawRectRange'](_0x5d3877,_0x5c8dbe,_0x283e31,_0x2e5c2a){const _0x4ae2b8=_0x26c91b,_0xbb48f7=new a['ColorKit'](_0x5d3877)[_0x4ae2b8(0x34c)](0.2)[_0x4ae2b8(0x391)](),_0x4586e3=new p[(_0x4ae2b8(0x156))](ut+a['Tools']['generateRandomId'](k),{'pointsGroup':_0x5c8dbe,'fill':_0xbb48f7||p[_0x4ae2b8(0x1cc)](a[_0x4ae2b8(0x15f)][_0x4ae2b8(0x1ac)],0.2),'left':_0x283e31,'top':_0x2e5c2a,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x4ae2b8(0x1b7)]['push'](_0x4586e3),this[_0x4ae2b8(0x17b)]['addObject'](_0x4586e3,b[_0x4ae2b8(0x126)]);}[_0x26c91b(0x21c)](_0x1eaa2b){const _0x507060=_0x1eaa2b[0x0],_0x56ce8c=_0x507060[0x0],_0x17b5a3=_0x507060[0x2],{x:_0x11c4cd,y:_0x1ec47b}=_0x56ce8c,{x:_0x5aa858,y:_0x2399d4}=_0x17b5a3;return{'left':_0x11c4cd,'top':_0x1ec47b,'width':_0x5aa858-_0x11c4cd,'height':_0x2399d4-_0x1ec47b};}[_0x26c91b(0x288)](){const _0x279acd=_0x26c91b,{scaleX:_0x67d630,scaleY:_0x2f58fa}=this[_0x279acd(0x17b)][_0x279acd(0x108)]();return Math['max'](_0x67d630,_0x2f58fa);}}var It=Object['getOwnPropertyDescriptor'],vt=(_0xaa139f,_0x38c70e,_0x4a564a,_0x1db49b)=>{const _0x22c20d=_0x26c91b;for(var _0x290d8a=_0x1db49b>0x1?void 0x0:_0x1db49b?It(_0x38c70e,_0x4a564a):_0x38c70e,_0x41ee1d=_0xaa139f[_0x22c20d(0x362)]-0x1,_0x5b7a3c;_0x41ee1d>=0x0;_0x41ee1d--)(_0x5b7a3c=_0xaa139f[_0x41ee1d])&&(_0x290d8a=_0x5b7a3c(_0x290d8a)||_0x290d8a);return _0x290d8a;},Y=(_0x5ab3fe,_0x2d2f28)=>(_0x4e4c70,_0x14bfac)=>_0x2d2f28(_0x4e4c70,_0x14bfac,_0x5ab3fe);let Ie=class extends a[_0x26c91b(0x31f)]{constructor(_0x37c40c,_0x459f29,_0x32a95b,_0x2bdef0,_0x4b6972){const _0x40bea4=_0x26c91b;super(),h(this,'_cursorShapes',[]),h(this,_0x40bea4(0x326),[]),(this['_context']=_0x37c40c,this['_docSkeletonManagerService']=_0x459f29,this[_0x40bea4(0x2ec)]=_0x32a95b,this[_0x40bea4(0x164)]=_0x2bdef0,this[_0x40bea4(0x185)]=_0x4b6972,this[_0x40bea4(0x1d9)]());}[_0x26c91b(0x1d9)](){const _0x6e99b4=_0x26c91b,_0x1d19af=this[_0x6e99b4(0x1c2)][_0x6e99b4(0x221)],_0x18dd3f=this[_0x6e99b4(0x345)];this[_0x6e99b4(0x1dc)](d['combineLatest']([this[_0x6e99b4(0x2ec)]['getCollabCursors$'](_0x1d19af),this[_0x6e99b4(0x185)]['currentTheme$']])['pipe']($[_0x6e99b4(0x1d5)](([_0x46752f,_0x149bdf])=>({'skeleton':_0x18dd3f[_0x6e99b4(0x107)](),'cursors':[..._0x46752f[_0x6e99b4(0x2c7)]()][_0x6e99b4(0x1f0)](_0x21858d=>({..._0x21858d,'color':_0x149bdf[_0x21858d[_0x6e99b4(0x389)]]}))})))[_0x6e99b4(0x257)](_0x3bb025=>{const _0x30b5fc=_0x6e99b4;if(this['_removeCollabCursors'](),_0x3bb025){const {skeleton:_0x59845d,cursors:_0x41e767}=_0x3bb025;this[_0x30b5fc(0x173)](_0x59845d,_0x41e767);}})),this[_0x6e99b4(0x32d)](),this['_initCommandExecutedListener']();}['_updateCollabCursors'](_0x251055,_0x40c7c1){const _0x35e532=_0x26c91b,{scene:_0x1fa635,mainComponent:_0x2d5031}=this['_context'],_0x515416=_0x40c7c1['map'](_0x3c8072=>new De(_0x3c8072,_0x1fa635,_0x251055,_0x2d5031));this['_cursorShapes']=_0x515416,this[_0x35e532(0x326)]=_0x40c7c1;}[_0x26c91b(0x307)](){const _0x5c7150=_0x26c91b;this[_0x5c7150(0x16a)]();const {scene:_0x5c3fc0,mainComponent:_0x216d90}=this[_0x5c7150(0x1c2)],_0x484679=this['_docSkeletonManagerService']['getSkeleton'](),_0xfef601=this['_cursors'][_0x5c7150(0x1d5)](_0x44dbc3=>new De(_0x44dbc3,_0x5c3fc0,_0x484679,_0x216d90));this[_0x5c7150(0x34a)]=_0xfef601;}['_removeCollabCursors'](){const _0x201645=_0x26c91b;this[_0x201645(0x34a)][_0x201645(0x2b2)](_0x73042b=>_0x73042b['dispose']()),this[_0x201645(0x34a)]=[];}[_0x26c91b(0x304)](){const _0x29aff5=_0x26c91b,_0x516288=[b[_0x29aff5(0x364)]['id']];this['disposeWithMe'](this[_0x29aff5(0x164)][_0x29aff5(0x2ae)](_0x5dfcf7=>{const _0xda1a0=_0x29aff5;_0x516288[_0xda1a0(0x1fd)](_0x5dfcf7['id'])&&_0x5dfcf7[_0xda1a0(0x181)][_0xda1a0(0x221)]===this[_0xda1a0(0x1c2)][_0xda1a0(0x221)]&&this[_0xda1a0(0x307)]();}));}[_0x26c91b(0x32d)](){const _0xbda595=_0x26c91b;this[_0xbda595(0x1dc)](a[_0xbda595(0x218)](this['_context'][_0xbda595(0x372)][_0xbda595(0x1f1)])['pipe']($[_0xbda595(0x392)](_0x4b3c0e=>_0x4b3c0e[_0xbda595(0x277)]===p['TRANSFORM_CHANGE_OBSERVABLE_TYPE'][_0xbda595(0x31a)]),$[_0xbda595(0x113)](0x10))['subscribe'](()=>{const _0x22eddd=_0xbda595;this[_0x22eddd(0x307)]();}));}};Ie=vt([Y(0x1,a[_0x26c91b(0x357)](W[_0x26c91b(0x149)])),Y(0x2,a[_0x26c91b(0x357)](x)),Y(0x3,a[_0x26c91b(0x252)]),Y(0x4,a[_0x26c91b(0x357)](a[_0x26c91b(0x223)]))],Ie);function _0x4840(){const _0x22bd96=['collabStatus.offline','AWAITING_WITH_PENDING','saveTaskMap','_assignedColors','idSuffix','UniverCollaborationClientUIPlugin','merge','lineTo','none','unshift','isActive','memberID','_localCacheService','createInstance','getSheetObject','fillText','ICommandService','defs','transformMutationsWithChangeset','show','YUUMI_RATE_OVER_LIMIT','subscribe','xlink:href','IUIPartsService','fillStyle','USERS_LEAVE','ACTIVE_UNIT_EVENT_CHANNEL','useDependency','evenodd','sessionStatus$','_anchorDot','SetWorksheetActivateCommand','createIdentifier','@univerjs/design','@univerjs/network','cursorInfo','column','SNAPSHOT_INVALID_SNAPSHOT','event$','newValue','INVALID_ARGUMENT','LOGIN_FAILED','unsubscribe','DisposableCollection','addObjects','toString','UNIVER_DOC','Module','_univerInstanceService','SheetSkeletonManagerService','_send','has','UNAUTHENTICATED','type','collab-client.tooltip.reconnect','MOBILE_HAS_BEEN_BOUND','_initStatusComponent','getRenderById','_setupBeforeClosingHandler','loadOfflineData','_backgroundColor','sheetId','exhaustSavingTask','_entities','[CollaborationDataLoaderController]','subscribeEvent','handleInsertRangeMoveDown','2956VsHClY','...','M0\x200H16V16H0z','_getScale','MUTATION','selection','NO_OTHER_CLIENTS_EDITING','getCoordByCell','CollaborationEvent','_initStatusListener','_transformPreviousActiveRange','_id','_entityInit$','wsSessionTicketUrl','icon','DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT','_color','rgba(255,\x20255,\x20255,\x200.01)','1em','substring','uni.network.url-service','_drawRectRange','transformMutation','ALREADY_EXISTS','executionId','getCellPositionByOffset','concat','getCurrentUnitForType','_initEntityListener','_transformUndoRedoStack','Rectangle','sessionTicket','RemoveRowCommandId','imageSourceType','NodePositionConvertToRectRange','ticket','getActiveSheet','_setupSubUnitSync','handleDeleteRangeMoveUp','_handleLeaveEvent','_roomMembers$','onCommandExecuted','on-line-single_clip0_910_349','univer-text-red-500','defIds','forEach','/run/','getCollabEntity$','m1Prime','CollaborationUIEventId','transformSelections','IMessageService','_collaborationController','collabStatus.fetchMiss','_heartbeatTimer','getValue','_cachedData','_collabSessionService','assignAColorForMemberID','dispose','currentColor','measureText','YUUMI_NO_CUBOID_FOR_QUESTION','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','fill','UPDATE_CURSOR','values','getCurrentSelections','_saveCache','all','_getSheetObject','@univerjs/engine-render','@univerjs-pro/collaboration','INVITE_CODE_REQUIRED','top','transformByState','location','next','with','dispose$','debounce','toDisposable','SessionStatus','_lastPointer','mask','OFFLINE','ISnapshotServerService','UNDEFINED','VIEW_MAIN','_docTransformSelectionsService','YUUMI_SUBSCRIPTION_NOT_FOUND','indexOf','children','assign','getMemberID','DesktopCollaborationStatusDisplayController','collaboration-client-ui.config','_toggleOnline','activeSheet$','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','isTransformMutationsWithChangesetSuccess','red300','_registerDependencies','_collabCursorController','_drawTextRange','useObservable','CollaborationSessionService','collabStatus.synced','storage','IImageIoService','createElement','labelPosition','Subject','PENDING','6536520pgcxcb','handleInsertRangeMoveRight','_selfUnitIDs','off-line-single','function','row','fillRule','bottom','INotificationService','pushState','executeCommand','DOC_RANGE_TYPE','PY_RUNTIME_SCRIPT_ERROR','_initCommandExecutedListener','set','Plugin','_refreshCollabCursors','collaboration.closeRoom','@univerjs/rpc','_anchor','getOwnPropertyDescriptor','ColorKit','_imageIoService','_registerRenderDependencies','useCallback','selections','toStringTag','addHandlerCallback','@univerjs-pro/collaboration-client','random','OnLineSingle','CollaborationDataLoaderController','1940214BfuSBS','NOT_FOUND','DocCollaborationEntity','resize','rxjs/operators','LocaleService','_initEvent','_colorAssignService','RxDisposable','BrowserCollaborationSocketService','getStateCache','_drawAnchor','CONFLICT','init','_injector','_cursors','currentTheme$','_handleHeartbeatEvent','addEventListener','syncEditingCollabCursor','transform','handleMoveRange','_initResize','roomMembers$','IRenderManagerService','4689454mYTDUl','isArray','IConfigService','Error','_config','getSheetId','override','registerRefRange','asObservable','_cursorInfo$','_docTransformIMECacheService','error','InsertRangeMoveDownCommandId','roomMembers','onRendered','WECHAT_HAS_BEEN_BOUND','getLocalCacheKey','YUUMI_ASYNCIO_CANCELLED','createSocket','from','_toggleOffline','_docSkeletonManagerService','SheetCollabCursorShape','_disabled','endRow','updateOfflineData','_cursorShapes','requireSession','setAlpha','split','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','url(#off-line-single_clip0_910_343)','_beforeCloseService','handleIRemoveRow','hasOwnProperty','RemoteUniscriptService','@univerjs/docs-ui','push','_session','Inject','handleDeleteRangeMoveLeft','INVITE_CODE_HAS_BEEN_UES','_draw','CollaborationController','_handleHover','purple300','ILocalStorageService','docStateChange$','session.connection-failed','_uiPartsService','length','CLOSE_ROOM','SetDocZoomRatioOperation','handleIRemoveCol','_createSocketURL','clearInterval','data','_status$','_localStorageService','_unitStatus','_instanceService','Vector2','extend','current','996906LeLCxC','backgroundColor','engine','_doCreateSocket','subUnitId','onPointerLeave$','LICENSE_EXPORT_SIZE_EXCEEDED','Rect','HTTPService','INVALID_INVITE_CODE','getCurrentRevOfUnit','MemberService','getVpScrollXYInfoByPosToVp','onPointerEnter$','_colorIndex','deserializeRangeWithSheet','LOCAL_CACHE_INTERVAL','mutations','TOO_MANY_REQUESTS','removeParam','disposeUnit','_unitOnClients','ranges','eventID','getMember','color','WebURLService','width','892vFcpcF','textRanges','onMouseMove','clearTimeout','_getMergeRange','toRgbString','filter','getRelativeToViewportCoord','isTransformMutationFailure','hide','_logService','_getSaveTimeout','_startSheetCollabCursor','getSkeleton','getAncestorScale','4137264SONQQM','_removeClearOtherTimer','NodePositionConvertToCursor','getUnitId','univer-flex\x20univer-mr-2\x20univer-text-[20px]','takeUntil','enableLocalCache','fromEvent','disableLocalCache','CollaborationStatus','throttleTime','text','RefRangeService','findNodePositionByCharIndex','@univerjs/core','save','_clearOtherTimers','Injector','_startDocCollabCursor','_renderManagerService','combineLatest','currentSkeleton$','_saveTaskMap','PERMISSION_DENIED','@univerjs/docs','div','@univerjs/ui','permission.content','body','TEXT_RANGE_LAYER_INDEX','_hideTimer','redoState','_collaborationUIEventService','Optional','_onCursorUpdate','20enbeUv','IDocClipboardService','attrs','rxjs','SheetsSelectionsService','onStarting','some','20UBRrcT','round','className','stringify','registerComponent','getRangePointData','RemoveColCommandId','entries','APPLY_NON_SEQUENTIAL_REVISION','defineProperty','Disposable','_urlService','triggerDblclick','_messageService','get','collab-text-anchor-','_onCursorDelete','startColumn','loadUnit','_sheetSkeletonManagerService','_range','ITransformService','DocSkeletonManagerService','serializeRangeWithSheet','subunit','UnitStatus','INVITE_CODE_ALREADY_BOUND','height','Failed','SOCKET_FAILED','string','range','doc.mutation.rich-text-editing','11595913OsbJTU','_docSyncEditingCollabCursorService','RegularPolygon','runOnServer','INTERNAL_ERROR','_docClipboardService','OffLineSingle','SetSelectionsOperation','pipe','BehaviorSubject','setUndoRedoMutationParamsCache','COLORS','_render','_transformHistoryAndStateStack','_hover','reconnect','_commandService','gold400','size','debug','cursorInfo$','registerRenderModule','_removeCollabCursors','InsertColCommandId','react/jsx-runtime','_hovered','#fff','_docStateChangeManagerService','_handleEvent','EffectRefRangId','restore','_updateCollabCursors','_notificationService','tag','replace','setShapeProps','connectInjector','DeleteRangeMoveUpCommandId','urlChange$','_scene','forwardRef','DocSelectionManagerService','source','_httpService','name','params','RECT','replaceState','getUnitStatus$','_themeService','delete','getCollabCursors$','actions','getUniverSheetInstance','InsertRangeMoveRightCommandId','_scheduleHeartbeat','_handleJoinEvent','getSheetBySheetId','m2Prime','setTimeout','Shape','pluginName','UNIVER_SHEET','registerDependencies','mapTo','RevisionService','_dataLoaderService','url(#$1','switchMap','sheetID','getOwnPropertySymbols','15EOPyqH','CollaborationSocketService','distinctUntilChanged','SHEET_VIEWPORT_KEY','_transformService','Tooltip','prototype','YUUMI_URL_COL_OUT_OF_RANGE','@univerjs/engine-formula','collab-text-range-','getConfig','getItem','startsWith','url(#on-line-single_clip0_910_349)','getFocusedUnit','REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY','_textBubble','black','COMPLETION_FINISHED','generateRandomId','@univerjs/sheets','history','_scheduleClearOtherTimer','then','OTHER_CLIENTS_EDITING','unload','MessageType','EMAIL_HAS_BEEN_BOUND','_shapes','makeDirty','startRow','FromArray','CollaborationUIEventService','key','IURLService','collaboration.single-unit.warning','addObject','getCurrent','getUndoRedoMutationParamsCache','_context','replaceDocRanges','_labelPosition','popstate','registerBeforeClose','_online','debounceTime','setConfig','APPLY_REVISION_CONFILICT','NOT_COLLAB','getColor','clipPath','ENSURE_SNAPSHOT_EXECUTION','verdancy600','_updateLocalCursor','getOffsetConfig','useRef','send','add','map','call','session.will-retry','setParam','_init','trim','origin','disposeWithMe','_syncEditingCollabCursorService','_collabCursorState$','getParam','href','closePath','_revisionService','UniverIcon','0\x200\x2017\x2016','APPLY_DUPLICATED','_name','apply','Unknown\x20user','univer-text-green-500','transformRemoteChangeset','min','Tools','DependentOn','_memberService','AWAITING','flatMap','onTransformChange$','IUniverInstanceService','_initDependencies','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','LICENSE_IMPORT_SIZE_EXCEEDED','_ensureSubject','HEADER_MENU','_updateSubUnitFromURLParams','displayName','_updateURLWithCurrentState','SetTextSelectionsOperation','setStateCache','includes','_docTransformStateCacheService','UniverInstanceType','mergeOverrideWithDependencies','univerjs-icon\x20univerjs-icon-','use','DocStateChangeManagerService','CommandType','drawWith','search','saveOfflineData','symbol','WebBrowserSingleActiveUnitService','getDocRanges','react','ILocalCacheService','propertyIsEnumerable','univer-text-[14px]\x20univer-leading-[32px]\x20univer-text-gray-600','IRemoteInstanceService','jsxs','LOCAL_CACHE_INTERVAL_KEY','CHANGESET_REVISION_CONFILICT','_eventUnsubscribe','_cursor','code','post','Warning','fromEventSubject','transformStateCache','LICENSE_DISTRO_REJECTED','unitID','_getAnchorBounding','WebSocketService','_scheduleSaving','setItem','UNRECOGNIZED','unitId','colorChannel1','ThemeService','searchParams','_document','DocIMEInputManagerService','USER_NOT_INVITED_CODE','getActiveRange','_onRefRangeChange','complete','deepClone','saveImage','svg','SNAPSHOT_HAS_BEEN_REMOVED','_localeService','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','JOIN_ROOM_FAILED','getUnhiddenWorksheets','setActiveRange','@univerjs/sheets-ui','LICENSE_MAX_UNITS_EXCEEDED','jsx','_refRangeService','ILogService','path','unit','TEXT','DeleteRangeMoveLeftCommandId','UniverCollaborationClientPlugin','YUUMI_UNABLE_LOAD_URL','shareReplay','collabCursorState$','_configService'];_0x4840=function(){return _0x22bd96;};return _0x4840();}const gt=0x1,mt=1.5;class we extends p[_0x26c91b(0x190)]{constructor(_0x2a183f,_0x5bf287){const _0x40cebb=_0x26c91b;super(_0x2a183f,_0x5bf287),h(this,'_color'),h(this,'_hovered',!0x1),h(this,_0x40cebb(0x147)),h(this,_0x40cebb(0x1e6),''),h(this,'_labelPosition',_0x40cebb(0x2cf)),h(this,_0x40cebb(0x27e)),(_0x5bf287&&this[_0x40cebb(0x177)](_0x5bf287),this[_0x40cebb(0x37d)][_0x40cebb(0x283)](()=>this[_0x40cebb(0x177)]({'hovered':!0x0})),this['onPointerLeave$'][_0x40cebb(0x283)](()=>this[_0x40cebb(0x177)]({'hovered':!0x1})));}['setShapeProps'](_0x529eef){const _0x198d4a=_0x26c91b;var _0x3d46ba,_0x4905b7,_0x52a5d3,_0x16a900,_0x24d201,_0x32b33e;this[_0x198d4a(0x295)]=(_0x3d46ba=_0x529eef[_0x198d4a(0x389)])!=null?_0x3d46ba:this[_0x198d4a(0x295)],this['_hovered']=(_0x4905b7=_0x529eef['hovered'])!=null?_0x4905b7:this[_0x198d4a(0x16d)],this[_0x198d4a(0x147)]=(_0x52a5d3=_0x529eef[_0x198d4a(0x152)])!=null?_0x52a5d3:this[_0x198d4a(0x147)],this[_0x198d4a(0x1e6)]=(_0x16a900=_0x529eef[_0x198d4a(0x180)])!=null?_0x16a900:this[_0x198d4a(0x1e6)],this[_0x198d4a(0x1c4)]=(_0x24d201=_0x529eef[_0x198d4a(0x2f4)])!=null?_0x24d201:this['_labelPosition'],this[_0x198d4a(0x27e)]=(_0x32b33e=_0x529eef[_0x198d4a(0x371)])!=null?_0x32b33e:this[_0x198d4a(0x27e)],this[_0x198d4a(0x2d0)]({'width':_0x529eef[_0x198d4a(0x38b)],'height':_0x529eef[_0x198d4a(0x14e)]});}['onMouseMove'](_0x12e4ac){const _0x1d423a=_0x26c91b,{row:_0x208cd2,column:_0x2a994f}=_0x12e4ac;if(_0x208cd2>=this[_0x1d423a(0x147)][_0x1d423a(0x1b9)]&&_0x208cd2<=this[_0x1d423a(0x147)][_0x1d423a(0x348)]&&_0x2a994f>=this[_0x1d423a(0x147)][_0x1d423a(0x144)]&&_0x2a994f<=this['_range']['endColumn']){this[_0x1d423a(0x177)]({'hovered':!0x0});return;}this['setShapeProps']({'hovered':!0x1});}[_0x26c91b(0x13f)](_0x4c256b){return!0x1;}[_0x26c91b(0x35a)](_0x2e3f62){const _0x3acdfe=_0x26c91b;p[_0x3acdfe(0x377)]['drawWith'](_0x2e3f62,{'width':this['width'],'height':this[_0x3acdfe(0x14e)],'strokeWidth':mt,'stroke':this[_0x3acdfe(0x295)],'evented':!0x1,'fill':this[_0x3acdfe(0x27e)]}),this[_0x3acdfe(0x16d)]&&(_0x2e3f62[_0x3acdfe(0x118)](),_0x2e3f62[_0x3acdfe(0x32b)](0x1,0x0,0x0,0x1,this[_0x3acdfe(0x38b)],this['_labelPosition']===_0x3acdfe(0x2fe)?0x0:-0x14),ee[_0x3acdfe(0x205)](_0x2e3f62,{'text':this[_0x3acdfe(0x1e6)],'color':this['_color']}),_0x2e3f62[_0x3acdfe(0x172)]());}}var Ct=Object[_0x26c91b(0x30b)],pt=(_0x1d2edb,_0xf49c07,_0x1c90b2,_0x35acd5)=>{const _0xa3f6d8=_0x26c91b;for(var _0x475c92=_0x35acd5>0x1?void 0x0:_0x35acd5?Ct(_0xf49c07,_0x1c90b2):_0xf49c07,_0x3c4909=_0x1d2edb[_0xa3f6d8(0x362)]-0x1,_0x40b606;_0x3c4909>=0x0;_0x3c4909--)(_0x40b606=_0x1d2edb[_0x3c4909])&&(_0x475c92=_0x40b606(_0x475c92)||_0x475c92);return _0x475c92;},ae=(_0xef6710,_0x3d1300)=>(_0x167db0,_0x3949ad)=>_0x3d1300(_0x167db0,_0x3949ad,_0xef6710);const bt=0x1389;let ve=class extends a['RxDisposable']{constructor(_0x12090c,_0x40f574,_0x79a706,_0x235e8e){const _0x4bf6f1=_0x26c91b;super(),h(this,_0x4bf6f1(0x326),new Set()),h(this,_0x4bf6f1(0x2d8),null),(this[_0x4bf6f1(0x1c2)]=_0x12090c,this[_0x4bf6f1(0x146)]=_0x40f574,this[_0x4bf6f1(0x2ec)]=_0x79a706,this[_0x4bf6f1(0x185)]=_0x235e8e,this['_init']());}[_0x26c91b(0x1d9)](){const _0x536731=_0x26c91b;this[_0x536731(0x146)][_0x536731(0x11e)][_0x536731(0x15c)]($[_0x536731(0x10e)](this[_0x536731(0x2d4)]),$['switchMap'](_0x3d4d59=>{const _0x1e7510=_0x536731;if(_0x3d4d59){const _0x515631=_0x3d4d59[_0x1e7510(0x27f)];return d[_0x1e7510(0x11d)](this[_0x1e7510(0x2ec)][_0x1e7510(0x187)](this[_0x1e7510(0x1c2)][_0x1e7510(0x221)]),this[_0x1e7510(0x185)][_0x1e7510(0x327)])[_0x1e7510(0x15c)]($[_0x1e7510(0x1d5)](([_0x50c2b4,_0x583cb4])=>{const _0x1b0c2c=_0x1e7510,_0x270dea=new Map();return _0x50c2b4[_0x1b0c2c(0x2b2)]((_0x3eff69,_0x5891a1)=>{const _0x17979c=_0x1b0c2c;if(_0x3eff69[_0x17979c(0x199)]===_0x515631){const _0x146832={..._0x3eff69};_0x146832[_0x17979c(0x389)]=_0x583cb4[_0x3eff69['color']],_0x270dea[_0x17979c(0x305)](_0x5891a1,_0x146832);}}),{'skeleton':_0x3d4d59,'cursors':_0x270dea};}));}return d['of']({'skeleton':null,'cursors':new Map()});}))[_0x536731(0x257)](({skeleton:_0x26f409,cursors:_0x563b89})=>{const _0x250160=_0x536731;this[_0x250160(0x16a)](),_0x26f409&&this['_updateCollabCursors'](_0x26f409,_0x563b89);}),this[_0x536731(0x146)]['currentSkeleton$'][_0x536731(0x257)](_0x578d82=>{const _0x207b64=_0x536731;if(_0x578d82==null)return;const {skeleton:_0x361942}=_0x578d82,{scene:_0x163801}=this[_0x207b64(0x1c2)];_0x163801['onPointerMove$'][_0x207b64(0x283)](a['debounce'](_0x25b09f=>{const _0x330c70=_0x207b64;var _0x188bc5,_0x303e0f;const {offsetX:_0xacb7d,offsetY:_0x576b2f}=_0x25b09f,{x:_0x533078,y:_0x3662ad}=_0x163801[_0x330c70(0x393)](p[_0x330c70(0x36d)]['FromArray']([_0xacb7d,_0x576b2f])),{scaleX:_0x532a78,scaleY:_0x123566}=_0x163801['getAncestorScale'](),_0x598c7b=_0x163801['getViewport'](p[_0x330c70(0x19e)][_0x330c70(0x2dd)]),_0x429d03=_0x163801[_0x330c70(0x37c)](p['Vector2'][_0x330c70(0x1ba)]([_0x533078,_0x3662ad]),_0x598c7b),_0x3a7d7c=_0x361942[_0x330c70(0x29e)](_0xacb7d,_0x576b2f,_0x532a78,_0x123566,_0x429d03);((_0x188bc5=this[_0x330c70(0x2d8)])==null?void 0x0:_0x188bc5['column'])===_0x3a7d7c[_0x330c70(0x266)]&&((_0x303e0f=this['_lastPointer'])==null?void 0x0:_0x303e0f[_0x330c70(0x2fc)])===_0x3a7d7c[_0x330c70(0x2fc)]||this[_0x330c70(0x326)][_0x330c70(0x2b2)](_0x5218bc=>{const _0x463cf6=_0x330c70;_0x5218bc[_0x463cf6(0x38e)](_0x3a7d7c);});},0x64));});}[_0x26c91b(0x173)](_0x1a4870,_0x177c20){const _0x2349f3=_0x26c91b;var _0x457144;const _0x184a59=(_0x457144=this['_sheetSkeletonManagerService'][_0x2349f3(0x1c0)]())==null?void 0x0:_0x457144['skeleton'];if(!_0x184a59)return;const _0x2b7c21=this['_getSheetObject']();if(!_0x2b7c21)return;this[_0x2349f3(0x326)]['forEach'](_0x167ea9=>{const _0x142a8d=_0x2349f3;_0x167ea9[_0x142a8d(0x1b8)]();});const {scene:_0xecd79a}=_0x2b7c21,_0x36ce18=Et(Array['from'](_0x177c20[_0x2349f3(0x2c7)]()))[_0x2349f3(0x1d5)](_0x3aef76=>{const _0x1153c6=_0x2349f3,{color:_0x4a4dc5,range:_0x480a25,name:_0x5a931f,selection:_0x142e31,sheetID:_0x201bbe}=_0x3aef76,{startColumn:_0x57e4d4,startRow:_0xe7aa3d,endColumn:_0x461a35,endRow:_0x257b3a}=_0x480a25,_0x13b880=X[_0x1153c6(0x28c)](_0xe7aa3d,_0x57e4d4,_0xecd79a,_0x184a59),_0x2a4a1d=X[_0x1153c6(0x28c)](_0x257b3a,_0x461a35,_0xecd79a,_0x184a59),{columnHeaderHeightAndMarginTop:_0x16e31d}=_0x184a59,{startX:_0x5e98a8,startY:_0x4c01d5}=_0x13b880,{endX:_0x297097,endY:_0x4b9707}=_0x2a4a1d,_0x29d80c=_0x297097-_0x5e98a8,_0xdf9cfd=_0x4b9707-_0x4c01d5,_0x2313ea={'labelPosition':_0x4c01d5-_0x16e31d>=q?'top':'bottom','sheetID':_0x201bbe,'range':_0x480a25,'color':_0x4a4dc5,'name':_0x5a931f,'selection':_0x142e31,'left':_0x5e98a8,'top':_0x4c01d5,'width':_0x29d80c,'height':_0xdf9cfd,'evented':!0x1,'zIndex':bt};return new we(_0x5a931f,_0x2313ea);});_0xecd79a[_0x2349f3(0x26e)](_0x36ce18,gt),this[_0x2349f3(0x326)]=new Set(_0x36ce18);}['_removeCollabCursors'](){const _0x8cb6c4=_0x26c91b;var _0x3900e4;(_0x3900e4=this[_0x8cb6c4(0x326)])==null||_0x3900e4[_0x8cb6c4(0x2b2)](_0x41181e=>_0x41181e['dispose']());}[_0x26c91b(0x2cb)](){const _0x12a4ce=_0x26c91b;return X[_0x12a4ce(0x250)](this[_0x12a4ce(0x1c2)][_0x12a4ce(0x23a)],this[_0x12a4ce(0x1c2)]);}};ve=pt([ae(0x1,a[_0x26c91b(0x357)](X[_0x26c91b(0x273)])),ae(0x2,a['Inject'](x)),ae(0x3,a[_0x26c91b(0x357)](a[_0x26c91b(0x223)]))],ve);function Et(_0x160037){const _0x346719=_0x26c91b,_0x457829=new Map();return _0x160037[_0x346719(0x2b2)](_0x522c39=>{const _0x58dfe2=_0x346719;if(_0x457829['has'](_0x522c39[_0x58dfe2(0x28a)])){const _0x526715=_0x457829[_0x58dfe2(0x141)](_0x522c39[_0x58dfe2(0x28a)]);_0x526715['name']+=',\x20'+_0x522c39[_0x58dfe2(0x180)];}else _0x457829[_0x58dfe2(0x305)](_0x522c39[_0x58dfe2(0x28a)],_0x522c39);}),Array[_0x346719(0x343)](_0x457829[_0x346719(0x2c7)]());}var E=function(){const _0x5cd00d=_0x26c91b;return E=Object['assign']||function(_0x1141c8){const _0x3fb085=_0x58e8;for(var _0x51fdfb,_0x20f076=0x1,_0x37b124=arguments[_0x3fb085(0x362)];_0x20f076<_0x37b124;_0x20f076++){_0x51fdfb=arguments[_0x20f076];for(var _0x150cbc in _0x51fdfb)Object[_0x3fb085(0x1a1)][_0x3fb085(0x352)][_0x3fb085(0x1d6)](_0x51fdfb,_0x150cbc)&&(_0x1141c8[_0x150cbc]=_0x51fdfb[_0x150cbc]);}return _0x1141c8;},E[_0x5cd00d(0x1e7)](this,arguments);},Tt=function(_0x33bd10,_0x899ead){const _0x37db57=_0x26c91b;var _0x1bfd6c={};for(var _0x266bcc in _0x33bd10)Object[_0x37db57(0x1a1)][_0x37db57(0x352)][_0x37db57(0x1d6)](_0x33bd10,_0x266bcc)&&_0x899ead['indexOf'](_0x266bcc)<0x0&&(_0x1bfd6c[_0x266bcc]=_0x33bd10[_0x266bcc]);if(_0x33bd10!=null&&typeof Object['getOwnPropertySymbols']==_0x37db57(0x2fb)){for(var _0x30de0a=0x0,_0x266bcc=Object[_0x37db57(0x19a)](_0x33bd10);_0x30de0a<_0x266bcc['length'];_0x30de0a++)_0x899ead['indexOf'](_0x266bcc[_0x30de0a])<0x0&&Object['prototype'][_0x37db57(0x20d)][_0x37db57(0x1d6)](_0x33bd10,_0x266bcc[_0x30de0a])&&(_0x1bfd6c[_0x266bcc[_0x30de0a]]=_0x33bd10[_0x266bcc[_0x30de0a]]);}return _0x1bfd6c;},pe=M[_0x26c91b(0x17c)](function(_0x5024a8,_0x37e9ad){const _0x2782a5=_0x26c91b;var _0x55810b=_0x5024a8[_0x2782a5(0x293)],_0x29a9b3=_0x5024a8['id'],_0x45466c=_0x5024a8[_0x2782a5(0x135)],_0x27ed61=_0x5024a8['extend'],_0x34f595=Tt(_0x5024a8,[_0x2782a5(0x293),'id',_0x2782a5(0x135),_0x2782a5(0x36e)]),_0x1bcb27=_0x2782a5(0x201)['concat'](_0x29a9b3,'\x20')['concat'](_0x45466c||'')[_0x2782a5(0x1da)](),_0x526c26=M[_0x2782a5(0x1d2)]('_'[_0x2782a5(0x29f)](Dt()));return Ae(_0x55810b,''[_0x2782a5(0x29f)](_0x29a9b3),{'defIds':_0x55810b[_0x2782a5(0x2b1)],'idSuffix':_0x526c26[_0x2782a5(0x36f)]},E({'ref':_0x37e9ad,'className':_0x1bcb27},_0x34f595),_0x27ed61);});function Ae(_0x372f0b,_0x2ad5fe,_0x2a2143,_0x1399d3,_0x579cba){const _0x22e20c=_0x26c91b;return M[_0x22e20c(0x2f3)](_0x372f0b['tag'],E(E({'key':_0x2ad5fe},Ot(_0x372f0b,_0x2a2143,_0x579cba)),_0x1399d3),(Rt(_0x372f0b,_0x2a2143)[_0x22e20c(0x2e1)]||[])[_0x22e20c(0x1d5)](function(_0x84c0f,_0x261f2b){const _0x33c854=_0x22e20c;return Ae(_0x84c0f,''[_0x33c854(0x29f)](_0x2ad5fe,'-')[_0x33c854(0x29f)](_0x372f0b[_0x33c854(0x175)],'-')['concat'](_0x261f2b),_0x2a2143,void 0x0,_0x579cba);}));}function Ot(_0x4e374c,_0x44bf52,_0x5c286b){const _0x3c78ea=_0x26c91b;var _0x2b8e50=E({},_0x4e374c[_0x3c78ea(0x12e)]);_0x5c286b!=null&&_0x5c286b[_0x3c78ea(0x222)]&&_0x2b8e50[_0x3c78ea(0x2c5)]===_0x3c78ea(0x222)&&(_0x2b8e50[_0x3c78ea(0x2c5)]=_0x5c286b[_0x3c78ea(0x222)]),_0x4e374c[_0x3c78ea(0x175)]===_0x3c78ea(0x2d9)&&_0x2b8e50['id']&&(_0x2b8e50['id']=_0x2b8e50['id']+_0x44bf52[_0x3c78ea(0x246)]),Object[_0x3c78ea(0x13a)](_0x2b8e50)['forEach'](function(_0x129f25){const _0x4f624a=_0x3c78ea;var _0x3ba504=_0x129f25[0x0],_0x4ae504=_0x129f25[0x1];_0x3ba504===_0x4f624a(0x2d9)&&typeof _0x4ae504==_0x4f624a(0x151)&&(_0x2b8e50[_0x3ba504]=_0x4ae504[_0x4f624a(0x176)](/url\(#(.*)\)/,_0x4f624a(0x197)[_0x4f624a(0x29f)](_0x44bf52[_0x4f624a(0x246)],')')));});var _0x3de97d=_0x44bf52[_0x3c78ea(0x2b1)];return!_0x3de97d||_0x3de97d[_0x3c78ea(0x362)]===0x0||(_0x4e374c[_0x3c78ea(0x175)]===_0x3c78ea(0x202)&&_0x2b8e50[_0x3c78ea(0x258)]&&(_0x2b8e50[_0x3c78ea(0x258)]=_0x2b8e50[_0x3c78ea(0x258)]+_0x44bf52[_0x3c78ea(0x246)]),Object[_0x3c78ea(0x13a)](_0x2b8e50)[_0x3c78ea(0x2b2)](function(_0xdf775f){const _0x5db69c=_0x3c78ea;var _0xd1ebc1=_0xdf775f[0x0],_0x4a099f=_0xdf775f[0x1];typeof _0x4a099f=='string'&&(_0x2b8e50[_0xd1ebc1]=_0x4a099f[_0x5db69c(0x176)](/url\(#(.*)\)/,_0x5db69c(0x197)[_0x5db69c(0x29f)](_0x44bf52[_0x5db69c(0x246)],')')));})),_0x2b8e50;}function Rt(_0x4939c8,_0x3ed115){const _0x2e0a78=_0x26c91b;var _0x272f3f,_0x57a199=_0x3ed115[_0x2e0a78(0x2b1)];return!_0x57a199||_0x57a199[_0x2e0a78(0x362)]===0x0?_0x4939c8:_0x4939c8[_0x2e0a78(0x175)]===_0x2e0a78(0x253)&&(!((_0x272f3f=_0x4939c8[_0x2e0a78(0x2e1)])===null||_0x272f3f===void 0x0)&&_0x272f3f[_0x2e0a78(0x362)])?E(E({},_0x4939c8),{'children':_0x4939c8[_0x2e0a78(0x2e1)]['map'](function(_0x2d864b){const _0xe93691=_0x2e0a78;return typeof _0x2d864b[_0xe93691(0x12e)]['id']==_0xe93691(0x151)&&_0x57a199&&_0x57a199[_0xe93691(0x2e0)](_0x2d864b[_0xe93691(0x12e)]['id'])>-0x1?E(E({},_0x2d864b),{'attrs':E(E({},_0x2d864b[_0xe93691(0x12e)]),{'id':_0x2d864b[_0xe93691(0x12e)]['id']+_0x3ed115[_0xe93691(0x246)]})}):_0x2d864b;})}):_0x4939c8;}function _0x58e8(_0xddee3c,_0x191fe1){const _0x4840ce=_0x4840();return _0x58e8=function(_0x58e86e,_0x585441){_0x58e86e=_0x58e86e-0x104;let _0x11b139=_0x4840ce[_0x58e86e];return _0x11b139;},_0x58e8(_0xddee3c,_0x191fe1);}function Dt(){const _0xf2d3a2=_0x26c91b;return Math[_0xf2d3a2(0x314)]()[_0xf2d3a2(0x26f)](0x24)[_0xf2d3a2(0x298)](0x2,0x8);}pe[_0x26c91b(0x1f9)]=_0x26c91b(0x1e3);var Ut={'tag':_0x26c91b(0x22d),'attrs':{'fill':'none','viewBox':'0\x200\x2016\x2016','width':'1em','height':'1em'},'children':[{'tag':'g','attrs':{'clipPath':_0x26c91b(0x34f)},'children':[{'tag':'path','attrs':{'stroke':_0x26c91b(0x2c1),'d':_0x26c91b(0x2e8),'strokeLinecap':'round','strokeLinejoin':_0x26c91b(0x134),'strokeWidth':1.2}}]},{'tag':'defs','attrs':{},'children':[{'tag':_0x26c91b(0x1cd),'attrs':{'id':'off-line-single_clip0_910_343'},'children':[{'tag':_0x26c91b(0x239),'attrs':{'fill':_0x26c91b(0x16e),'d':_0x26c91b(0x287)}}]}]}],'defIds':['off-line-single_clip0_910_343']},ye=M['forwardRef'](function(_0x591aa6,_0x1c425c){const _0x51a7af=_0x26c91b;return M[_0x51a7af(0x2f3)](pe,Object[_0x51a7af(0x2e2)]({},_0x591aa6,{'id':_0x51a7af(0x2fa),'ref':_0x1c425c,'icon':Ut}));});ye['displayName']=_0x26c91b(0x15a);var Nt={'tag':_0x26c91b(0x22d),'attrs':{'fill':_0x26c91b(0x24a),'viewBox':_0x26c91b(0x1e4),'width':'1em','height':_0x26c91b(0x297)},'children':[{'tag':'g','attrs':{'clipPath':_0x26c91b(0x1a8)},'children':[{'tag':_0x26c91b(0x239),'attrs':{'stroke':_0x26c91b(0x2c1),'d':_0x26c91b(0x2c4),'strokeLinecap':_0x26c91b(0x134),'strokeLinejoin':_0x26c91b(0x134),'strokeWidth':1.2}}]},{'tag':_0x26c91b(0x253),'attrs':{},'children':[{'tag':_0x26c91b(0x1cd),'attrs':{'id':_0x26c91b(0x2af)},'children':[{'tag':_0x26c91b(0x239),'attrs':{'fill':_0x26c91b(0x16e),'d':_0x26c91b(0x287),'transform':'translate(.97)'}}]}]}],'defIds':[_0x26c91b(0x2af)]},$e=M[_0x26c91b(0x17c)](function(_0x275aac,_0x544029){return M['createElement'](pe,Object['assign']({},_0x275aac,{'id':'on-line-single','ref':_0x544029,'icon':Nt}));});$e['displayName']=_0x26c91b(0x315);function Mt(_0x31f05a){const _0x4facc8=_0x26c91b;switch(_0x31f05a){case u[_0x4facc8(0x112)][_0x4facc8(0x2da)]:return _0x4facc8(0x242);case u[_0x4facc8(0x112)][_0x4facc8(0x323)]:return'collabStatus.conflict';case u[_0x4facc8(0x112)]['FETCH_MISS']:return _0x4facc8(0x2ba);case u[_0x4facc8(0x112)][_0x4facc8(0x1cb)]:return'collabStatus.notCollab';case u['CollaborationStatus'][_0x4facc8(0x1ef)]:case u[_0x4facc8(0x112)][_0x4facc8(0x243)]:return'collabStatus.syncing';case u[_0x4facc8(0x112)]['SYNCED']:case u[_0x4facc8(0x112)][_0x4facc8(0x2f6)]:return _0x4facc8(0x2f0);}}function xe(_0x5b99ef){const _0x5a8c50=_0x26c91b,{status$:_0x529ffe}=_0x5b99ef,_0x5d6796=T[_0x5a8c50(0x2ee)](_0x529ffe,u['CollaborationStatus']['NOT_COLLAB']),_0x1cc7cf=T[_0x5a8c50(0x25d)](a[_0x5a8c50(0x31c)]),_0x452c4e=T['useDependency'](u['CollaborationSessionService']),_0x1134f2=_0x5d6796!==u['CollaborationStatus'][_0x5a8c50(0x2da)],_0x383345=_0x1cc7cf['t'](Mt(_0x5d6796)),_0x28fff3=_0x1134f2?P['jsx']($e,{}):P['jsx'](ye,{}),_0x2f8107=M[_0x5a8c50(0x30f)](()=>{const _0xe62ba4=_0x5a8c50;_0x1134f2||_0x452c4e[_0xe62ba4(0x163)]();},[_0x1134f2,_0x452c4e]);function _0x5859d7(){const _0xd465ce=_0x5a8c50;return P[_0xd465ce(0x210)]('div',{'className':'univer-flex\x20univer-items-center','onClick':_0x2f8107,'children':[P[_0xd465ce(0x236)]('div',{'className':D['clsx'](_0xd465ce(0x10d),_0x1134f2?_0xd465ce(0x1e9):_0xd465ce(0x2b0)),'children':_0x28fff3}),P[_0xd465ce(0x236)](_0xd465ce(0x122),{'className':_0xd465ce(0x20e),'children':_0x383345})]});}return _0x1134f2?_0x5859d7():P[_0x5a8c50(0x236)](D[_0x5a8c50(0x1a0)],{'title':_0x1cc7cf['t'](_0x5a8c50(0x278)),'children':_0x5859d7()});}var Lt=Object[_0x26c91b(0x30b)],Pt=(_0x2b666d,_0x5f8de6,_0x133b09,_0x40184d)=>{const _0xcb4c7e=_0x26c91b;for(var _0x46b5bf=_0x40184d>0x1?void 0x0:_0x40184d?Lt(_0x5f8de6,_0x133b09):_0x5f8de6,_0x184e87=_0x2b666d[_0xcb4c7e(0x362)]-0x1,_0x1fe126;_0x184e87>=0x0;_0x184e87--)(_0x1fe126=_0x2b666d[_0x184e87])&&(_0x46b5bf=_0x1fe126(_0x46b5bf)||_0x46b5bf);return _0x46b5bf;},V=(_0x554a4b,_0xe552c6)=>(_0x21b87f,_0x48a4c4)=>_0xe552c6(_0x21b87f,_0x48a4c4,_0x554a4b);exports[_0x26c91b(0x2e4)]=class extends a[_0x26c91b(0x13d)]{constructor(_0x1ccc96,_0xaa161,_0x3caad1,_0x3061ad){const _0x29ebcc=_0x26c91b;super(),h(this,_0x29ebcc(0x369),new d[(_0x29ebcc(0x15d))](u[_0x29ebcc(0x112)][_0x29ebcc(0x1cb)])),(this[_0x29ebcc(0x272)]=_0x1ccc96,this[_0x29ebcc(0x325)]=_0xaa161,this[_0x29ebcc(0x2b9)]=_0x3caad1,this[_0x29ebcc(0x361)]=_0x3061ad,this[_0x29ebcc(0x27a)](),this[_0x29ebcc(0x28e)]());}['_initStatusListener'](){const _0x1f11dd=_0x26c91b;this[_0x1f11dd(0x1dc)](this[_0x1f11dd(0x272)]['focused$'][_0x1f11dd(0x15c)](d[_0x1f11dd(0x198)](()=>{const _0x53ddb1=_0x1f11dd,_0x4baaa5=this[_0x53ddb1(0x272)][_0x53ddb1(0x1a9)]();return _0x4baaa5?this['_collaborationController'][_0x53ddb1(0x2b4)](_0x4baaa5[_0x53ddb1(0x10c)]()):d['of'](null);}),d['switchMap'](_0x2aac02=>_0x2aac02?_0x2aac02['status$']:d['of'](u['CollaborationStatus'][_0x1f11dd(0x1cb)])))[_0x1f11dd(0x257)](_0x3ba960=>{const _0x1d4efc=_0x1f11dd;this[_0x1d4efc(0x369)][_0x1d4efc(0x2d2)](_0x3ba960);}));}[_0x26c91b(0x27a)](){const _0x30a5c8=_0x26c91b;this[_0x30a5c8(0x1dc)](this['_uiPartsService'][_0x30a5c8(0x137)](T['BuiltInUIPart'][_0x30a5c8(0x1f7)],()=>T[_0x30a5c8(0x178)](wt({'status$':this[_0x30a5c8(0x369)][_0x30a5c8(0x338)]()}),this[_0x30a5c8(0x325)])));}},exports[_0x26c91b(0x2e4)]=Pt([V(0x0,a['IUniverInstanceService']),V(0x1,a[_0x26c91b(0x357)](a[_0x26c91b(0x11a)])),V(0x2,a[_0x26c91b(0x357)](u[_0x26c91b(0x35b)])),V(0x3,T[_0x26c91b(0x259)])],exports[_0x26c91b(0x2e4)]);function wt(_0x20d9ae){const {status$:_0x223d30}=_0x20d9ae;return function(){const _0x4e5b5a=_0x58e8;return P[_0x4e5b5a(0x236)](xe,{'status$':_0x223d30});};}var At=Object[_0x26c91b(0x30b)],yt=(_0x4ccc53,_0xffc5be,_0xfaed62,_0x168180)=>{const _0x528087=_0x26c91b;for(var _0x19f233=_0x168180>0x1?void 0x0:_0x168180?At(_0xffc5be,_0xfaed62):_0xffc5be,_0x3a2a33=_0x4ccc53[_0x528087(0x362)]-0x1,_0x3cdb10;_0x3a2a33>=0x0;_0x3a2a33--)(_0x3cdb10=_0x4ccc53[_0x3a2a33])&&(_0x19f233=_0x3cdb10(_0x19f233)||_0x19f233);return _0x19f233;},y=(_0x59c34a,_0x25c796)=>(_0x494e1f,_0x32fd52)=>_0x25c796(_0x494e1f,_0x32fd52,_0x59c34a);let K=class extends a[_0x26c91b(0x13d)]{constructor(_0x472f07,_0x2717d4,_0x54c0df,_0x959422,_0x337481,_0x22e55a){const _0x514b91=_0x26c91b;super(),this[_0x514b91(0x350)]=_0x472f07,this['_localCacheService']=_0x2717d4,this[_0x514b91(0x129)]=_0x54c0df,this[_0x514b91(0x140)]=_0x959422,this[_0x514b91(0x174)]=_0x337481,this[_0x514b91(0x22f)]=_0x22e55a,this['_setupBeforeClosingHandler'](),this[_0x514b91(0x31d)]();}[_0x26c91b(0x27c)](){const _0x362d94=_0x26c91b;this[_0x362d94(0x1dc)](this[_0x362d94(0x350)][_0x362d94(0x1c6)](()=>{const _0x3b255b=_0x362d94;if(this[_0x3b255b(0x24e)][_0x3b255b(0x244)][_0x3b255b(0x166)])return this[_0x3b255b(0x22f)]['t']('collaboration-client.offline-data-not-saved');}));}[_0x26c91b(0x31d)](){const _0x350e7a=_0x26c91b;this[_0x350e7a(0x1dc)](this[_0x350e7a(0x129)][_0x350e7a(0x268)]['subscribe'](_0x3cabd6=>{const _0x4243aa=_0x350e7a;_0x3cabd6['id']===u[_0x4243aa(0x2b6)]['OTHER_CLIENT_EDITING']&&this[_0x4243aa(0x140)][_0x4243aa(0x255)]({'type':D['MessageType']['Warning'],'content':this[_0x4243aa(0x22f)]['t'](_0x4243aa(0x1be))}),_0x3cabd6['id']===u[_0x4243aa(0x2b6)][_0x4243aa(0x363)]&&this['_messageService'][_0x4243aa(0x255)]({'type':D[_0x4243aa(0x1b5)]['Warning'],'content':this['_localeService']['t'](_0x4243aa(0x308))}),_0x3cabd6['id']===u[_0x4243aa(0x2b6)][_0x4243aa(0x120)]&&this['_notificationService'][_0x4243aa(0x255)]({'title':this[_0x4243aa(0x22f)]['t']('permission.title'),'content':this[_0x4243aa(0x22f)]['t'](_0x4243aa(0x124)),'type':'error','duration':0x0}),_0x3cabd6['id']===u[_0x4243aa(0x2b6)][_0x4243aa(0x323)]&&this[_0x4243aa(0x140)][_0x4243aa(0x255)]({'type':D[_0x4243aa(0x1b5)][_0x4243aa(0x333)],'content':this[_0x4243aa(0x22f)]['t'](_0x4243aa(0x308))+'('+_0x3cabd6[_0x4243aa(0x368)]+')'}),_0x3cabd6['id']===u['CollaborationUIEventId'][_0x4243aa(0x231)]&&this[_0x4243aa(0x140)][_0x4243aa(0x255)]({'type':D['MessageType']['Warning'],'content':this['_localeService']['t'](_0x3cabd6[_0x4243aa(0x368)]||'')}),_0x3cabd6['id']===u['CollaborationUIEventId']['SOCKET_FAILED_RETRY']&&this[_0x4243aa(0x140)]['show']({'type':D[_0x4243aa(0x1b5)][_0x4243aa(0x217)],'content':this['_localeService']['t'](_0x4243aa(0x1d7))}),_0x3cabd6['id']===u['CollaborationUIEventId'][_0x4243aa(0x150)]&&this[_0x4243aa(0x140)][_0x4243aa(0x255)]({'type':D[_0x4243aa(0x1b5)][_0x4243aa(0x333)],'content':this[_0x4243aa(0x22f)]['t'](_0x4243aa(0x360))}),_0x3cabd6['id']===u[_0x4243aa(0x2b6)]['SUBMIT_CHANGESET_TIMEOUT']&&this[_0x4243aa(0x140)][_0x4243aa(0x255)]({'type':D['MessageType'][_0x4243aa(0x333)],'content':this['_localeService']['t']('session.collaboration-timeout')});}));}};K=yt([y(0x0,T['IBeforeCloseService']),y(0x1,u[_0x26c91b(0x20c)]),y(0x2,a[_0x26c91b(0x357)](u[_0x26c91b(0x1bb)])),y(0x3,T[_0x26c91b(0x2b8)]),y(0x4,T[_0x26c91b(0x2ff)]),y(0x5,a[_0x26c91b(0x357)](a['LocaleService']))],K);const $t=_0x26c91b(0x2e5),Ue={},be=a[_0x26c91b(0x262)](_0x26c91b(0x299));var xt=Object['getOwnPropertyDescriptor'],jt=(_0x3707a1,_0x3d3620,_0x1d4ada,_0x403601)=>{const _0x3dd48d=_0x26c91b;for(var _0x1aafac=_0x403601>0x1?void 0x0:_0x403601?xt(_0x3d3620,_0x1d4ada):_0x3d3620,_0x3d26ae=_0x3707a1[_0x3dd48d(0x362)]-0x1,_0x54a9b2;_0x3d26ae>=0x0;_0x3d26ae--)(_0x54a9b2=_0x3707a1[_0x3d26ae])&&(_0x1aafac=_0x54a9b2(_0x1aafac)||_0x1aafac);return _0x1aafac;},H=(_0x639593,_0x390226)=>(_0x3dbc62,_0xd2d35e)=>_0x390226(_0x3dbc62,_0xd2d35e,_0x639593);exports[_0x26c91b(0x316)]=class extends a['RxDisposable']{constructor(_0x4248e5,_0x2562b1,_0x356012,_0x2952a1,_0x5ce021){const _0x513368=_0x26c91b;super(),this[_0x513368(0x13e)]=_0x4248e5,this[_0x513368(0x104)]=_0x2562b1,this[_0x513368(0x164)]=_0x356012,this['_dataLoaderService']=_0x2952a1,_0x5ce021?_0x5ce021==null||_0x5ce021['whenReady']()[_0x513368(0x1b2)](()=>this[_0x513368(0x1d9)]()):(this['_logService']['debug'](_0x513368(0x282),'No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.'),this[_0x513368(0x1d9)]());}async['_init'](){const _0xbaee52=_0x26c91b,_0x1e2a05=this[_0xbaee52(0x13e)][_0xbaee52(0x1df)](_0xbaee52(0x23a)),_0x26c930=this[_0xbaee52(0x13e)][_0xbaee52(0x1df)](_0xbaee52(0x277)),_0x198ec4=this[_0xbaee52(0x13e)][_0xbaee52(0x1df)](_0xbaee52(0x14b));if(!_0x1e2a05||!_0x26c930){this[_0xbaee52(0x104)][_0xbaee52(0x167)](_0xbaee52(0x282),_0xbaee52(0x230));return;}const _0x4f4b82=await this[_0xbaee52(0x196)][_0xbaee52(0x145)](_0x1e2a05,Number(_0x26c930),_0x198ec4);_0x4f4b82&&_0x4f4b82 instanceof a['Workbook']&&this['_setupSubUnitSync'](_0x4f4b82);}async[_0x26c91b(0x2aa)](_0x27c207){const _0xb6e821=_0x26c91b;await this[_0xb6e821(0x1f8)](_0x27c207),_0x27c207[_0xb6e821(0x2e7)][_0xb6e821(0x15c)](d['takeUntil'](this[_0xb6e821(0x2d4)]))[_0xb6e821(0x257)](_0x312741=>{_0x312741&&this['_updateURLWithCurrentState'](_0x312741);}),this[_0xb6e821(0x13e)][_0xb6e821(0x17a)]['pipe'](d[_0xb6e821(0x10e)](this[_0xb6e821(0x2d4)]))[_0xb6e821(0x257)](()=>this[_0xb6e821(0x1f8)](_0x27c207));}[_0x26c91b(0x1fa)](_0x47df9e,_0x55737b=!0x1){const _0x2dcc46=_0x26c91b,_0x17d440=this[_0x2dcc46(0x13e)][_0x2dcc46(0x1df)]('subunit');_0x47df9e[_0x2dcc46(0x335)]()!==_0x17d440&&this[_0x2dcc46(0x13e)][_0x2dcc46(0x1d8)](_0x2dcc46(0x14b),_0x47df9e[_0x2dcc46(0x335)](),_0x55737b);}async['_updateSubUnitFromURLParams'](_0xd6f252){const _0x20d55f=_0x26c91b;var _0x5ab66e;const _0x5ad382=this['_urlService'][_0x20d55f(0x1df)](_0x20d55f(0x14b));if(!_0x5ad382||!_0xd6f252[_0x20d55f(0x18d)](_0x5ad382)){const _0x19b746=_0xd6f252[_0x20d55f(0x232)]()[0x0],_0x3e5e56=_0xd6f252['getSheetBySheetId'](_0x19b746);if(!_0x3e5e56)return;this['_updateURLWithCurrentState'](_0x3e5e56,!0x0),await this[_0x20d55f(0x164)][_0x20d55f(0x301)](g['SetWorksheetActivateCommand']['id'],{'unitId':_0xd6f252[_0x20d55f(0x10c)](),'subUnitId':_0x19b746});return;}((_0x5ab66e=_0xd6f252[_0x20d55f(0x2a9)]())==null?void 0x0:_0x5ab66e['getSheetId']())!==_0x5ad382&&await this[_0x20d55f(0x164)]['executeCommand'](g[_0x20d55f(0x261)]['id'],{'unitId':_0xd6f252['getUnitId'](),'subUnitId':_0x5ad382});}},exports[_0x26c91b(0x316)]=jt([H(0x0,be),H(0x1,a[_0x26c91b(0x238)]),H(0x2,a[_0x26c91b(0x252)]),H(0x3,a['Inject'](u['DataLoaderService'])),H(0x4,a[_0x26c91b(0x12a)](qe[_0x26c91b(0x20f)]))],exports[_0x26c91b(0x316)]);var Bt=Object[_0x26c91b(0x30b)],kt=(_0x6638a2,_0x4a313a,_0x45d3be,_0x14abef)=>{const _0x27b193=_0x26c91b;for(var _0x2c166c=_0x14abef>0x1?void 0x0:_0x14abef?Bt(_0x4a313a,_0x45d3be):_0x4a313a,_0x530e8a=_0x6638a2[_0x27b193(0x362)]-0x1,_0x5d468e;_0x530e8a>=0x0;_0x530e8a--)(_0x5d468e=_0x6638a2[_0x530e8a])&&(_0x2c166c=_0x5d468e(_0x2c166c)||_0x2c166c);return _0x2c166c;},ce=(_0x4e5296,_0x326c38)=>(_0x390589,_0x245e25)=>_0x326c38(_0x390589,_0x245e25,_0x4e5296);let z=class{constructor(_0x498fb9,_0xd2cac1,_0x1f9104){const _0x1993e6=_0x26c91b;this[_0x1993e6(0x325)]=_0x498fb9,this[_0x1993e6(0x19f)]=_0xd2cac1,this['_renderManagerService']=_0x1f9104;}['transformIMECache'](_0x5e923b){const _0x2e69cd=_0x26c91b;this[_0x2e69cd(0x2a2)](_0x5e923b),this[_0x2e69cd(0x28f)](_0x5e923b);}[_0x26c91b(0x1ea)](_0x4a0ae6){const _0x3a034f=_0x26c91b,{unitID:_0x3affef}=_0x4a0ae6,_0x42dad3=this['_renderManagerService'][_0x3a034f(0x27b)](_0x3affef)[_0x3a034f(0x2d3)](b[_0x3a034f(0x226)]),{redoCache:_0x5b9f08}=_0x42dad3[_0x3a034f(0x1c1)]();if(_0x5b9f08[_0x3a034f(0x362)]===0x0)return _0x4a0ae6;let _0x2d08c4=a['Tools']['deepClone'](_0x4a0ae6[_0x3a034f(0x381)][0x0]);for(let _0x501ad0=0x0;_0x501ad0<_0x5b9f08[_0x3a034f(0x362)];_0x501ad0++){const _0x1c72d4={'id':_0x3a034f(0x153),'params':{..._0x5b9f08[_0x501ad0]}},_0x227fca=this[_0x3a034f(0x19f)]['transformMutation'](_0x2d08c4,_0x1c72d4,!0x1);if(m[_0x3a034f(0x394)](_0x227fca))throw _0x227fca['error'];_0x2d08c4=_0x227fca[_0x3a034f(0x2b5)];}return{...a[_0x3a034f(0x1ec)][_0x3a034f(0x22b)](_0x4a0ae6),'mutations':[_0x2d08c4]};}[_0x26c91b(0x2a2)](_0x234e05){const _0x2000a4=_0x26c91b,{unitID:_0x3fa3c0}=_0x234e05,_0x52ee6c=this['_renderManagerService']['getRenderById'](_0x3fa3c0)['with'](b[_0x2000a4(0x226)]),{undoCache:_0x1bbcb1,redoCache:_0xe95b1f}=_0x52ee6c['getUndoRedoMutationParamsCache']();if(_0x1bbcb1[_0x2000a4(0x362)]===0x0||_0xe95b1f[_0x2000a4(0x362)]===0x0)return;const _0x27e6ba=[],_0x3da41c=[];let _0x3af2e8=a[_0x2000a4(0x1ec)][_0x2000a4(0x22b)](_0x234e05[_0x2000a4(0x381)][0x0]),_0x26fa21=a[_0x2000a4(0x1ec)][_0x2000a4(0x22b)](_0x234e05[_0x2000a4(0x381)][0x0]);for(let _0x45c454=_0x1bbcb1[_0x2000a4(0x362)]-0x1;_0x45c454>=0x0;_0x45c454--){const _0x40bf8e={'id':_0x2000a4(0x153),'params':{..._0x1bbcb1[_0x45c454]}},_0x407158={'id':_0x2000a4(0x153),'params':{..._0xe95b1f[_0x45c454]}},_0x289417=this[_0x2000a4(0x19f)][_0x2000a4(0x29b)](_0x3af2e8,_0x40bf8e,!0x1),_0x5d2ea9=this[_0x2000a4(0x19f)][_0x2000a4(0x29b)](_0x26fa21,_0x407158,!0x1);if(m['isTransformMutationFailure'](_0x289417))throw _0x289417[_0x2000a4(0x33b)];if(m['isTransformMutationFailure'](_0x5d2ea9))throw _0x5d2ea9[_0x2000a4(0x33b)];_0x27e6ba[_0x2000a4(0x24b)](_0x289417[_0x2000a4(0x18e)]['params']),_0x3da41c[_0x2000a4(0x24b)](_0x5d2ea9['m2Prime'][_0x2000a4(0x181)]),_0x3af2e8=_0x289417['m1Prime'],_0x26fa21=_0x5d2ea9['m1Prime'];}_0x52ee6c[_0x2000a4(0x15e)]({'undoCache':_0x27e6ba,'redoCache':_0x3da41c});}[_0x26c91b(0x28f)](_0x1e435d){const _0x5957e1=_0x26c91b,{unitID:_0x5be226}=_0x1e435d,_0x21f85d=this[_0x5957e1(0x11c)][_0x5957e1(0x27b)](_0x5be226)[_0x5957e1(0x2d3)](b['DocIMEInputManagerService']),_0x46a9b9=_0x21f85d[_0x5957e1(0x228)]();if(_0x46a9b9==null)return;const _0x1bbbae=[{'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x1e435d[_0x5957e1(0x21b)],'actions':null,'textRanges':[_0x46a9b9]}}],_0x2f15eb=this[_0x5957e1(0x19f)][_0x5957e1(0x254)](_0x1e435d,_0x1bbbae);if(!m[_0x5957e1(0x2e9)](_0x2f15eb))throw _0x2f15eb[_0x5957e1(0x33b)];const _0x461f43=_0x2f15eb[_0x5957e1(0x18e)][0x0][_0x5957e1(0x181)][_0x5957e1(0x38d)];Array[_0x5957e1(0x331)](_0x461f43)&&_0x461f43['length']&&_0x21f85d[_0x5957e1(0x233)](_0x461f43[0x0]);}};z=kt([ce(0x0,a[_0x26c91b(0x357)](a['Injector'])),ce(0x1,m['ITransformService']),ce(0x2,p[_0x26c91b(0x32f)])],z);var Ht=Object[_0x26c91b(0x30b)],Ft=(_0x21e98,_0x3433cb,_0x4832d3,_0x4b7610)=>{for(var _0x454e67=_0x4b7610>0x1?void 0x0:_0x4b7610?Ht(_0x3433cb,_0x4832d3):_0x3433cb,_0x513607=_0x21e98['length']-0x1,_0x2a2301;_0x513607>=0x0;_0x513607--)(_0x2a2301=_0x21e98[_0x513607])&&(_0x454e67=_0x2a2301(_0x454e67)||_0x454e67);return _0x454e67;},le=(_0x396e71,_0x22274a)=>(_0x59b347,_0x4ace06)=>_0x22274a(_0x59b347,_0x4ace06,_0x396e71);let J=class{constructor(_0x15196b,_0x132184,_0x1bd8b0){const _0x3c98d8=_0x26c91b;this['_injector']=_0x15196b,this[_0x3c98d8(0x19f)]=_0x132184,this['_docStateChangeManagerService']=_0x1bd8b0;}[_0x26c91b(0x219)](_0x2eb6ec){const _0x3d2fed=_0x26c91b;this[_0x3d2fed(0x161)](_0x2eb6ec);}['transformRemoteChangeset'](_0x499f1e){const _0x39ad00=_0x26c91b,{unitID:_0x4c5b88}=_0x499f1e,{collaboration:_0x414ae}=this[_0x39ad00(0x16f)]['getStateCache'](_0x4c5b88);if(_0x414ae[_0x39ad00(0x362)]===0x0)return _0x499f1e;let _0xa81866=a[_0x39ad00(0x1ec)][_0x39ad00(0x22b)](_0x499f1e['mutations'][0x0]);for(let _0x2af397=0x0;_0x2af397<_0x414ae[_0x39ad00(0x362)];_0x2af397++){const _0x27595a={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x414ae[_0x2af397][_0x39ad00(0x221)],..._0x414ae[_0x2af397][_0x39ad00(0x128)]}},_0x2777b6=this[_0x39ad00(0x19f)][_0x39ad00(0x29b)](_0xa81866,_0x27595a,!0x1);if(m[_0x39ad00(0x394)](_0x2777b6))throw _0x2777b6[_0x39ad00(0x33b)];_0xa81866=_0x2777b6['m1Prime'];}return{...a[_0x39ad00(0x1ec)][_0x39ad00(0x22b)](_0x499f1e),'mutations':[_0xa81866]};}[_0x26c91b(0x161)](_0x1f5bc4){const _0x455803=_0x26c91b,{unitID:_0x529118}=_0x1f5bc4,{history:_0x82f154,collaboration:_0x51f46c}=this[_0x455803(0x16f)][_0x455803(0x321)](_0x529118);if(_0x82f154[_0x455803(0x362)]===0x0&&_0x51f46c[_0x455803(0x362)]===0x0)return;const _0x23b708=[],_0x4eaa88=[];let _0x5c131a=a[_0x455803(0x1ec)][_0x455803(0x22b)](_0x1f5bc4[_0x455803(0x381)][0x0]),_0x43abe4=a['Tools'][_0x455803(0x22b)](_0x1f5bc4[_0x455803(0x381)][0x0]);for(let _0x436a3c=_0x82f154[_0x455803(0x362)]-0x1;_0x436a3c>=0x0;_0x436a3c--){const _0x6bf58={'id':_0x455803(0x153),'params':{'unitId':_0x82f154[_0x436a3c][_0x455803(0x221)],..._0x82f154[_0x436a3c]['undoState']}},_0x5dde5e={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x82f154[_0x436a3c]['unitId'],..._0x82f154[_0x436a3c][_0x455803(0x128)]}},_0xa96787=this[_0x455803(0x19f)]['transformMutation'](_0x5c131a,_0x6bf58,!0x1),_0x2c9705=this[_0x455803(0x19f)][_0x455803(0x29b)](_0x43abe4,_0x5dde5e,!0x1);if(m[_0x455803(0x394)](_0xa96787))throw _0xa96787[_0x455803(0x33b)];if(m[_0x455803(0x394)](_0x2c9705))throw _0x2c9705[_0x455803(0x33b)];_0x23b708[_0x455803(0x24b)]({..._0x82f154[_0x436a3c],'undoState':_0xa96787[_0x455803(0x18e)]['params'],'redoState':_0x2c9705['m2Prime'][_0x455803(0x181)]}),_0x5c131a=_0xa96787[_0x455803(0x2b5)],_0x43abe4=_0x2c9705[_0x455803(0x2b5)];}_0x5c131a=a[_0x455803(0x1ec)][_0x455803(0x22b)](_0x1f5bc4[_0x455803(0x381)][0x0]),_0x43abe4=a['Tools']['deepClone'](_0x1f5bc4[_0x455803(0x381)][0x0]);for(let _0xf493fb=_0x51f46c[_0x455803(0x362)]-0x1;_0xf493fb>=0x0;_0xf493fb--){const _0x5b3440={'id':_0x455803(0x153),'params':{'unitId':_0x51f46c[_0xf493fb][_0x455803(0x221)],..._0x51f46c[_0xf493fb]['undoState']}},_0x3de2b9={'id':_0x455803(0x153),'params':{'unitId':_0x51f46c[_0xf493fb][_0x455803(0x221)],..._0x51f46c[_0xf493fb][_0x455803(0x128)]}},_0x5f57e8=this[_0x455803(0x19f)][_0x455803(0x29b)](_0x5c131a,_0x5b3440,!0x1),_0x1ae189=this[_0x455803(0x19f)]['transformMutation'](_0x43abe4,_0x3de2b9,!0x1);if(m[_0x455803(0x394)](_0x5f57e8))throw _0x5f57e8[_0x455803(0x33b)];if(m[_0x455803(0x394)](_0x1ae189))throw _0x1ae189['error'];_0x4eaa88[_0x455803(0x24b)]({..._0x51f46c[_0xf493fb],'undoState':_0x5f57e8['m2Prime']['params'],'redoState':_0x1ae189[_0x455803(0x18e)][_0x455803(0x181)]}),_0x5c131a=_0x5f57e8['m1Prime'],_0x43abe4=_0x1ae189[_0x455803(0x2b5)];}this[_0x455803(0x16f)][_0x455803(0x1fc)](_0x529118,{'history':_0x23b708,'collaboration':_0x4eaa88});}};J=Ft([le(0x0,a[_0x26c91b(0x357)](a[_0x26c91b(0x11a)])),le(0x1,m[_0x26c91b(0x148)]),le(0x2,a[_0x26c91b(0x357)](b[_0x26c91b(0x203)]))],J);var Wt=Object[_0x26c91b(0x30b)],Yt=(_0x58fa8d,_0x337306,_0x4abaac,_0x49c405)=>{const _0x408d99=_0x26c91b;for(var _0xb72453=_0x49c405>0x1?void 0x0:_0x49c405?Wt(_0x337306,_0x4abaac):_0x337306,_0x42c453=_0x58fa8d[_0x408d99(0x362)]-0x1,_0xdf3a65;_0x42c453>=0x0;_0x42c453--)(_0xdf3a65=_0x58fa8d[_0x42c453])&&(_0xb72453=_0xdf3a65(_0xb72453)||_0xb72453);return _0xb72453;},Ne=(_0x435b28,_0x1bc55a)=>(_0x572644,_0xb6e27a)=>_0x1bc55a(_0x572644,_0xb6e27a,_0x435b28);let Z=class{constructor(_0x30aa80,_0x10c6c5){this['_injector']=_0x30aa80,this['_transformService']=_0x10c6c5;}[_0x26c91b(0x2b7)](_0x2943d1){const _0x1f402c=_0x26c91b;var _0x406fc2;const _0x1f361b=this[_0x1f402c(0x325)][_0x1f402c(0x141)](W[_0x1f402c(0x17d)]),_0x5cb032=(_0x406fc2=_0x1f361b[_0x1f402c(0x20a)]())!=null?_0x406fc2:[];if(_0x5cb032['length']===0x0)return;const _0x3733bd=_0x2943d1[_0x1f402c(0x21b)],_0x55e4e1=[{'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x3733bd,'actions':null,'textRanges':_0x5cb032}}],_0x1bfd16=this[_0x1f402c(0x19f)]['transformMutationsWithChangeset'](_0x2943d1,_0x55e4e1);if(!m[_0x1f402c(0x2e9)](_0x1bfd16))throw _0x1bfd16[_0x1f402c(0x33b)];const _0x2da0f5=_0x1bfd16['m2Prime'][0x0][_0x1f402c(0x181)]['textRanges'];Array['isArray'](_0x2da0f5)&&_0x2da0f5['length']&&_0x1f361b[_0x1f402c(0x1c3)](_0x2da0f5,{'unitId':_0x3733bd,'subUnitId':_0x3733bd},!0x1);}};Z=Yt([Ne(0x0,a[_0x26c91b(0x357)](a['Injector'])),Ne(0x1,m[_0x26c91b(0x148)])],Z);var Vt=Object[_0x26c91b(0x30b)],Xt=(_0x18d1b4,_0x195da5,_0xcd6737,_0x3748ed)=>{for(var _0x57de34=_0x3748ed>0x1?void 0x0:_0x3748ed?Vt(_0x195da5,_0xcd6737):_0x195da5,_0x39d437=_0x18d1b4['length']-0x1,_0x950bbe;_0x39d437>=0x0;_0x39d437--)(_0x950bbe=_0x18d1b4[_0x39d437])&&(_0x57de34=_0x950bbe(_0x57de34)||_0x57de34);return _0x57de34;},N=(_0x1c9c59,_0x2a9bb2)=>(_0x2a740d,_0x3275af)=>_0x2a9bb2(_0x2a740d,_0x3275af,_0x1c9c59);let Q=class extends a[_0x26c91b(0x13d)]{constructor(_0x1d99c5,_0x2c6a45,_0x340bf7,_0x14df3d,_0x2d5133,_0x50151d,_0x3830a7,_0x2f82ed){const _0x2d87d0=_0x26c91b;super(),h(this,_0x2d87d0(0x369),new d[(_0x2d87d0(0x15d))](u[_0x2d87d0(0x112)][_0x2d87d0(0x1cb)])),(this[_0x2d87d0(0x16f)]=_0x1d99c5,this['_collaborationController']=_0x2c6a45,this[_0x2d87d0(0x33a)]=_0x340bf7,this[_0x2d87d0(0x1fe)]=_0x14df3d,this[_0x2d87d0(0x2de)]=_0x2d5133,this[_0x2d87d0(0x155)]=_0x50151d,this['_messageService']=_0x3830a7,this[_0x2d87d0(0x22f)]=_0x2f82ed,this['_initEntityListener']());}[_0x26c91b(0x2a1)](){const _0x47942d=_0x26c91b;this['disposeWithMe'](this[_0x47942d(0x2b9)]['entityInit$'][_0x47942d(0x257)](_0x2a2ca6=>{const _0x171c4c=_0x47942d,_0x52e1c0=this['_docStateChangeManagerService'][_0x171c4c(0x35f)][_0x171c4c(0x257)](_0x3246ed=>{const _0x43fb6f=_0x171c4c;if(_0x3246ed==null)return;const {unitId:_0x472295,redoState:_0xcf9db1,commandId:_0x1860a3}=_0x3246ed;if(_0x472295!==_0x2a2ca6['unitID'])return;const _0x50b28c={'id':_0x1860a3,'type':a[_0x43fb6f(0x204)][_0x43fb6f(0x289)],'params':{'unitId':_0x472295,'actions':_0xcf9db1[_0x43fb6f(0x188)],'textRanges':null}};_0x2a2ca6['onLocalMutation'](_0x50b28c);});if(_0x2a2ca6['disposeWithMe'](_0x52e1c0),_0x2a2ca6 instanceof u[_0x171c4c(0x319)]){const _0x12dde7={'onTransformIME':_0x38ac6a=>this[_0x171c4c(0x33a)]['transformIMECache'](_0x38ac6a),'onTransformState':_0x74d310=>this['_docTransformStateCacheService'][_0x171c4c(0x219)](_0x74d310),'onTransformSelections':_0x21394d=>this['_docTransformSelectionsService'][_0x171c4c(0x2b7)](_0x21394d),'onSyncEditingCollabCursor':_0x1fbf67=>this[_0x171c4c(0x155)][_0x171c4c(0x32a)](_0x1fbf67),'onTransformRemoteChangesetByIMECache':_0x482184=>this[_0x171c4c(0x33a)][_0x171c4c(0x1ea)](_0x482184),'onTransformRemoteChangesetByStateCache':_0x2aab18=>this[_0x171c4c(0x1fe)][_0x171c4c(0x1ea)](_0x2aab18)};_0x2a2ca6[_0x171c4c(0x312)](_0x12dde7);}}));}};Q=Xt([N(0x0,a[_0x26c91b(0x357)](b['DocStateChangeManagerService'])),N(0x1,a['Inject'](u[_0x26c91b(0x35b)])),N(0x2,a[_0x26c91b(0x357)](z)),N(0x3,a[_0x26c91b(0x357)](J)),N(0x4,a[_0x26c91b(0x357)](Z)),N(0x5,a[_0x26c91b(0x357)](Ce)),N(0x6,T[_0x26c91b(0x2b8)]),N(0x7,a['Inject'](a[_0x26c91b(0x31c)]))],Q);var Gt=Object[_0x26c91b(0x30b)],qt=(_0x4ec09b,_0x40b49b,_0x4a3c97,_0x41cedd)=>{const _0x158a59=_0x26c91b;for(var _0x40a79c=_0x41cedd>0x1?void 0x0:_0x41cedd?Gt(_0x40b49b,_0x4a3c97):_0x40b49b,_0x5bb477=_0x4ec09b[_0x158a59(0x362)]-0x1,_0x135dd9;_0x5bb477>=0x0;_0x5bb477--)(_0x135dd9=_0x4ec09b[_0x5bb477])&&(_0x40a79c=_0x135dd9(_0x40a79c)||_0x40a79c);return _0x40a79c;},_e=(_0x4771da,_0x443a2b)=>(_0x58dbba,_0x3916e5)=>_0x443a2b(_0x58dbba,_0x3916e5,_0x4771da);let ge=class extends a[_0x26c91b(0x13d)]{constructor(_0x5bd66f,_0x34402f,_0xbd2996){const _0x45adde=_0x26c91b;super(),h(this,_0x45adde(0x2bd),new Map()),h(this,_0x45adde(0x11f),new Map()),h(this,_0x45adde(0x347),!0x1),(this[_0x45adde(0x241)]=_0x5bd66f,this[_0x45adde(0x36a)]=_0x34402f,this[_0x45adde(0x1e2)]=_0xbd2996);}[_0x26c91b(0x111)](){this['_disabled']=!0x0;}[_0x26c91b(0x10f)](){const _0x408b95=_0x26c91b;this[_0x408b95(0x347)]=!0x1;}get[_0x26c91b(0x244)](){const _0x58b77c=_0x26c91b;return this[_0x58b77c(0x11f)];}[_0x26c91b(0x2c0)](){const _0x31ecce=_0x26c91b;this[_0x31ecce(0x280)]()['then'](()=>super['dispose']());}async[_0x26c91b(0x27d)](_0x26e79c){const _0xc7e603=_0x26c91b;return this[_0xc7e603(0x347)]?null:this['_localStorageService'][_0xc7e603(0x1a6)](u[_0xc7e603(0x340)](_0x26e79c));}async[_0x26c91b(0x207)](_0x18a8d2,_0x43d3ed){const _0x498948=_0x26c91b;return!!this[_0x498948(0x36a)][_0x498948(0x21f)](_0x18a8d2,_0x43d3ed);}[_0x26c91b(0x349)](_0x17a75f,_0x197210,_0x11ccc5,_0x3e5fd5){const _0xbe0831=_0x26c91b,_0x578ab9=this[_0xbe0831(0x1e2)][_0xbe0831(0x37a)](_0x17a75f);this[_0xbe0831(0x2bd)][_0xbe0831(0x305)](_0x17a75f,{'unitID':_0x17a75f,'type':_0x197210,'awaitingChangeset':_0x11ccc5,'mutations':_0x3e5fd5,'rev':_0x578ab9}),this[_0xbe0831(0x11f)]['has'](_0x17a75f)||this[_0xbe0831(0x21e)](_0x17a75f);}[_0x26c91b(0x21e)](_0x54ac71){const _0x572dfe=_0x26c91b,_0x5f86b5=this[_0x572dfe(0x105)]();_0x5f86b5===0x0?this[_0x572dfe(0x2c9)](_0x54ac71):this[_0x572dfe(0x11f)]['set'](_0x54ac71,setTimeout(()=>this['_saveCache'](_0x54ac71),_0x5f86b5));}[_0x26c91b(0x105)](){const _0x54315b=_0x26c91b;var _0x9af989;return(_0x9af989=this['_configService']['getConfig'](u[_0x54315b(0x211)]))!=null?_0x9af989:u[_0x54315b(0x380)];}[_0x26c91b(0x2c9)](_0x2c67a6){const _0x22d7ce=_0x26c91b,_0x193326=this[_0x22d7ce(0x11f)][_0x22d7ce(0x141)](_0x2c67a6);return _0x193326!==void 0x0&&window['clearTimeout'](_0x193326),this[_0x22d7ce(0x36a)][_0x22d7ce(0x21f)](u[_0x22d7ce(0x340)](_0x2c67a6),this[_0x22d7ce(0x2bd)]['get'](_0x2c67a6))[_0x22d7ce(0x1b2)](()=>this[_0x22d7ce(0x11f)][_0x22d7ce(0x186)](_0x2c67a6));}async[_0x26c91b(0x280)](){const _0x5a27eb=_0x26c91b,_0x5c08b1=[];this[_0x5a27eb(0x11f)]['forEach']((_0x1c5726,_0x1a4cab)=>{const _0x236155=_0x5a27eb;window['clearTimeout'](_0x1c5726),_0x5c08b1[_0x236155(0x355)](this[_0x236155(0x2c9)](_0x1a4cab)[_0x236155(0x1b2)](()=>{const _0x1179d5=_0x236155;this[_0x1179d5(0x11f)][_0x1179d5(0x186)](_0x1a4cab);}));}),await Promise[_0x5a27eb(0x2ca)](_0x5c08b1);}};ge=qt([_e(0x0,a[_0x26c91b(0x332)]),_e(0x1,a[_0x26c91b(0x35e)]),_e(0x2,a['Inject'](m[_0x26c91b(0x195)]))],ge);class je extends a[_0x26c91b(0x31f)]{constructor(){const _0x44d673=_0x26c91b;super(),h(this,_0x44d673(0x17a)),this['urlChange$']=d['fromEvent'](window,_0x44d673(0x1c5))[_0x44d673(0x15c)](d[_0x44d673(0x10e)](this[_0x44d673(0x2d4)]),d[_0x44d673(0x23f)](0x1),d[_0x44d673(0x194)](void 0x0));}['setParam'](_0x369edf,_0x511d18,_0x2d5eac=!0x1){const _0x4c4155=_0x26c91b,_0x3cb0f5=new URL(window[_0x4c4155(0x2d1)][_0x4c4155(0x1e0)]);_0x3cb0f5[_0x4c4155(0x224)][_0x4c4155(0x305)](_0x369edf,_0x511d18),_0x2d5eac?window[_0x4c4155(0x1b0)][_0x4c4155(0x183)]('','',_0x3cb0f5[_0x4c4155(0x26f)]()):window[_0x4c4155(0x1b0)][_0x4c4155(0x300)]('','',_0x3cb0f5[_0x4c4155(0x26f)]());}[_0x26c91b(0x383)](_0x2d3cb8,_0x1773df=!0x1){const _0x5bce4c=_0x26c91b,_0x269b69=new URL(window[_0x5bce4c(0x2d1)]['href']);_0x269b69[_0x5bce4c(0x224)][_0x5bce4c(0x186)](_0x2d3cb8),_0x1773df?window['history'][_0x5bce4c(0x183)]('','',_0x269b69[_0x5bce4c(0x26f)]()):window['history'][_0x5bce4c(0x300)]('','',_0x269b69['toString']());}[_0x26c91b(0x1df)](_0xd90cda){const _0x2d9a9d=_0x26c91b;var _0x247e86;return(_0x247e86=new URL(window['location']['href'])[_0x2d9a9d(0x224)][_0x2d9a9d(0x141)](_0xd90cda))!=null?_0x247e86:void 0x0;}}var Kt=Object[_0x26c91b(0x13c)],zt=Object['getOwnPropertyDescriptor'],Jt=(_0x49ab55,_0x1507eb,_0x3ecb59)=>_0x1507eb in _0x49ab55?Kt(_0x49ab55,_0x1507eb,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x3ecb59}):_0x49ab55[_0x1507eb]=_0x3ecb59,Zt=(_0x2be0f2,_0x2dbb3b,_0x2af25b,_0x25ba0a)=>{const _0x58cb99=_0x26c91b;for(var _0x37d638=_0x25ba0a>0x1?void 0x0:_0x25ba0a?zt(_0x2dbb3b,_0x2af25b):_0x2dbb3b,_0x2f3576=_0x2be0f2[_0x58cb99(0x362)]-0x1,_0x3f7ccb;_0x2f3576>=0x0;_0x2f3576--)(_0x3f7ccb=_0x2be0f2[_0x2f3576])&&(_0x37d638=_0x3f7ccb(_0x37d638)||_0x37d638);return _0x37d638;},he=(_0x14e6d1,_0x1ef24f)=>(_0x18e61d,_0x27c381)=>_0x1ef24f(_0x18e61d,_0x27c381,_0x14e6d1),Qt=(_0xb6cc26,_0xb7535c,_0x50dec3)=>Jt(_0xb6cc26,_0xb7535c+'',_0x50dec3);const es='UNIVER_COLLABORATION_CLIENT_WEB_PLUGIN';exports[_0x26c91b(0x247)]=class extends a[_0x26c91b(0x306)]{constructor(_0x2006a7=Ue,_0xff6cd9,_0x39fc7c,_0x13530f){const _0x12b0fa=_0x26c91b;super(),this[_0x12b0fa(0x334)]=_0x2006a7,this[_0x12b0fa(0x11c)]=_0xff6cd9,this[_0x12b0fa(0x325)]=_0x39fc7c,this[_0x12b0fa(0x241)]=_0x13530f;const {..._0x487dbd}=a[_0x12b0fa(0x248)]({},Ue,this[_0x12b0fa(0x334)]);this[_0x12b0fa(0x241)][_0x12b0fa(0x1c9)]($t,_0x487dbd);}[_0x26c91b(0x131)](){const _0x5ea803=_0x26c91b;this['_registerDependencies'](),this[_0x5ea803(0x1f3)]();}[_0x26c91b(0x33e)](){const _0x2fbfc2=_0x26c91b;this[_0x2fbfc2(0x30e)]();}[_0x26c91b(0x2eb)](){const _0x295a01=_0x26c91b;var _0x2b0cd9;const _0x6f9429=[[me],[Z],[z],[J],[Ce],[be,{'useClass':je}],[G['ISocketService'],{'useClass':G[_0x295a01(0x21d)]}],[u[_0x295a01(0x20c)],{'useClass':ge}],[exports[_0x295a01(0x2e4)]],[Q],[K],[x],[de],[exports[_0x295a01(0x316)]]];a[_0x295a01(0x193)](this[_0x295a01(0x325)],a[_0x295a01(0x200)](_0x6f9429,(_0x2b0cd9=this[_0x295a01(0x334)])==null?void 0x0:_0x2b0cd9[_0x295a01(0x336)]));}['_registerRenderDependencies'](){const _0x188a5d=_0x26c91b;this[_0x188a5d(0x1dc)](this[_0x188a5d(0x11c)][_0x188a5d(0x169)](a[_0x188a5d(0x1ff)][_0x188a5d(0x270)],[Ie])),this[_0x188a5d(0x1dc)](this[_0x188a5d(0x11c)][_0x188a5d(0x169)](a[_0x188a5d(0x1ff)][_0x188a5d(0x192)],[ve]));}[_0x26c91b(0x1f3)](){const _0x3c1bb9=_0x26c91b;a['touchDependencies'](this[_0x3c1bb9(0x325)],[[x],[exports[_0x3c1bb9(0x2e4)]],[Q],[K],[exports[_0x3c1bb9(0x316)]]]);}},Qt(exports[_0x26c91b(0x247)],_0x26c91b(0x191),es),exports[_0x26c91b(0x247)]=Zt([a[_0x26c91b(0x1ed)](u[_0x26c91b(0x23d)]),he(0x1,p[_0x26c91b(0x32f)]),he(0x2,a[_0x26c91b(0x357)](a['Injector'])),he(0x3,a[_0x26c91b(0x332)])],exports[_0x26c91b(0x247)]);var ts=Object[_0x26c91b(0x30b)],ss=(_0x461686,_0x56d206,_0x2dec48,_0x372789)=>{const _0x94436b=_0x26c91b;for(var _0x121d5c=_0x372789>0x1?void 0x0:_0x372789?ts(_0x56d206,_0x2dec48):_0x56d206,_0x5266fa=_0x461686[_0x94436b(0x362)]-0x1,_0x4f1630;_0x5266fa>=0x0;_0x5266fa--)(_0x4f1630=_0x461686[_0x5266fa])&&(_0x121d5c=_0x4f1630(_0x121d5c)||_0x121d5c);return _0x121d5c;},F=(_0x3cfe29,_0x4842c3)=>(_0x4d3c8b,_0x41fcd9)=>_0x4842c3(_0x4d3c8b,_0x41fcd9,_0x3cfe29);exports['BrowserCollaborationSocketService']=class extends u[_0x26c91b(0x19c)]{constructor(_0x2720aa,_0x32e3ef,_0xc0ee25,_0x2ec622,_0x2e5f60){super(_0x2720aa,_0x32e3ef,_0xc0ee25,_0x2ec622,_0x2e5f60);}async[_0x26c91b(0x342)](_0x2c9d52){const _0x274d38=_0x26c91b,_0x10fc78=await this['_getSessionTicket'](),_0x1f9d8b=this[_0x274d38(0x366)](_0x2c9d52,_0x10fc78);return this[_0x274d38(0x373)](_0x1f9d8b);}[_0x26c91b(0x366)](_0x139ba8,_0x989bf3){const _0x4b6fcc=_0x26c91b,_0xac1197=typeof window>'u'?new URL(_0x139ba8):new URL(_0x139ba8,window[_0x4b6fcc(0x2d1)][_0x4b6fcc(0x1db)]);_0xac1197['searchParams']['set'](_0x4b6fcc(0x2a4),_0x989bf3);const _0xd1a83f=typeof window>'u'?new URLSearchParams():new URLSearchParams(window[_0x4b6fcc(0x2d1)][_0x4b6fcc(0x206)]);return _0xd1a83f[_0x4b6fcc(0x141)]('runId')&&_0xac1197[_0x4b6fcc(0x224)][_0x4b6fcc(0x305)]('runId',_0xd1a83f['get']('runId')),_0xac1197[_0x4b6fcc(0x26f)]();}async['_getSessionTicket'](){const _0x7da0ec=_0x26c91b;var _0x375db8,_0x5c39b0,_0x16eb6c;const _0x41e22c=this[_0x7da0ec(0x241)]['getConfig'](u[_0x7da0ec(0x34e)]),_0x1d4793=(_0x375db8=_0x41e22c==null?void 0x0:_0x41e22c[_0x7da0ec(0x292)])!=null?_0x375db8:u['DEFAULT_WS_SESSION_TICKET_URL'];return(_0x16eb6c=(_0x5c39b0=(await this[_0x7da0ec(0x17f)]['get'](_0x1d4793,{'headers':{'Content-Type':'application/json'}}))['body'])==null?void 0x0:_0x5c39b0[_0x7da0ec(0x2a8)])!=null?_0x16eb6c:'';}},exports['BrowserCollaborationSocketService']=ss([F(0x0,a[_0x26c91b(0x357)](a[_0x26c91b(0x11a)])),F(0x1,a[_0x26c91b(0x357)](G[_0x26c91b(0x378)])),F(0x2,a[_0x26c91b(0x332)]),F(0x3,a[_0x26c91b(0x238)]),F(0x4,m[_0x26c91b(0x2db)])],exports[_0x26c91b(0x320)]);const Me=0x7530,Le=_0x26c91b(0x25c);class is extends a[_0x26c91b(0x13d)]{constructor(){const _0x1777c1=_0x26c91b;super(),h(this,_0x1777c1(0x290),a[_0x1777c1(0x1ae)]()),h(this,_0x1777c1(0x2f9),new Set()),h(this,'_unitOnClients',new Map()),h(this,_0x1777c1(0x2bb),null),h(this,_0x1777c1(0x119),new Map()),h(this,_0x1777c1(0x36b),new Map()),this['_init']();}[_0x26c91b(0x2c0)](){const _0x2f1461=_0x26c91b;super[_0x2f1461(0x2c0)](),this[_0x2f1461(0x119)][_0x2f1461(0x2b2)]((_0x3e4f63,_0x104d87)=>this[_0x2f1461(0x10a)](_0x104d87)),this[_0x2f1461(0x2bb)]&&window[_0x2f1461(0x367)](this[_0x2f1461(0x2bb)]);}[_0x26c91b(0x184)](_0x1aac92){const _0x222dd6=_0x26c91b;return this[_0x222dd6(0x1f6)](_0x1aac92)[_0x222dd6(0x15c)](d[_0x222dd6(0x19d)]());}['editingUnit'](_0x36200d){const _0x51dff8=_0x26c91b;this[_0x51dff8(0x2f9)][_0x51dff8(0x166)]===0x0&&this[_0x51dff8(0x18b)](),this['_selfUnitIDs'][_0x51dff8(0x1d4)](_0x36200d),this[_0x51dff8(0x274)]({'type':0x0,'memberID':this[_0x51dff8(0x290)],'unitIDs':[_0x36200d],'isForwarded':!0x1});}[_0x26c91b(0x384)](_0x459ca7){const _0x5f56c4=_0x26c91b;this['_selfUnitIDs']['delete'](_0x459ca7),this[_0x5f56c4(0x2f9)]['size']===0x0&&this[_0x5f56c4(0x2bb)]&&window[_0x5f56c4(0x367)](this[_0x5f56c4(0x2bb)]);}[_0x26c91b(0x1d9)](){const _0x1c4fbf=_0x26c91b;this[_0x1c4fbf(0x1dc)](a[_0x1c4fbf(0x2d6)](d[_0x1c4fbf(0x110)](window,_0x1c4fbf(0x2f1))[_0x1c4fbf(0x257)](_0x1ea947=>{const _0x332f89=_0x1c4fbf;if(_0x1ea947[_0x332f89(0x1bc)]!==Le||!_0x1ea947['newValue'])return;const _0x1dd9c0=JSON['parse'](_0x1ea947[_0x332f89(0x269)]);this[_0x332f89(0x170)](_0x1dd9c0);}))),window[_0x1c4fbf(0x329)](_0x1c4fbf(0x1b4),()=>this['_send']({'type':0x1,'memberID':this[_0x1c4fbf(0x290)],'unitIDs':Array[_0x1c4fbf(0x343)](this[_0x1c4fbf(0x2f9)])}));}[_0x26c91b(0x170)](_0x521d15){const _0x4ddcb9=_0x26c91b;switch(_0x521d15[_0x4ddcb9(0x277)]){case 0x0:this['_handleJoinEvent'](_0x521d15);break;case 0x1:this[_0x4ddcb9(0x2ac)](_0x521d15);break;case 0x2:this[_0x4ddcb9(0x328)](_0x521d15);break;}}[_0x26c91b(0x18c)](_0x5de9a3){const _0x206803=_0x26c91b,{unitIDs:_0x595576,memberID:_0x46b611,isForwarded:_0x3702ee}=_0x5de9a3;_0x595576[_0x206803(0x2b2)](_0x41e2aa=>{const _0x46a204=_0x206803;if(!_0x3702ee&&this[_0x46a204(0x385)][_0x46a204(0x275)](_0x41e2aa)&&this['_ensureSubject'](_0x41e2aa)['next'](u['UnitStatus'][_0x46a204(0x1b3)]),!this[_0x46a204(0x385)][_0x46a204(0x275)](_0x41e2aa)||!this[_0x46a204(0x385)][_0x46a204(0x141)](_0x41e2aa)['has'](_0x46b611)){const _0x386eed=this[_0x46a204(0x385)][_0x46a204(0x141)](_0x41e2aa)||new Set();_0x386eed[_0x46a204(0x1d4)](_0x46b611),this['_unitOnClients'][_0x46a204(0x305)](_0x41e2aa,_0x386eed),this['_scheduleClearOtherTimer'](_0x46b611);}}),_0x3702ee||this[_0x206803(0x274)]({'type':0x0,'memberID':this[_0x206803(0x290)],'unitIDs':[...this[_0x206803(0x2f9)]],'isForwarded':!0x0});}['_scheduleClearOtherTimer'](_0x49369d){const _0x2caace=_0x26c91b;this['_removeClearOtherTimer'](_0x49369d);const _0x48301c=window[_0x2caace(0x18f)](()=>{const _0x5d13fb=_0x2caace;this[_0x5d13fb(0x385)]['forEach'](_0xbd38ab=>{const _0x15da88=_0x5d13fb;_0xbd38ab[_0x15da88(0x186)](_0x49369d);});},Me*0x2);this['_clearOtherTimers'][_0x2caace(0x305)](_0x49369d,_0x48301c);}[_0x26c91b(0x10a)](_0x51c854){const _0xdf5b0f=_0x26c91b;if(this[_0xdf5b0f(0x119)][_0xdf5b0f(0x275)](_0x51c854)){const _0x463b26=this[_0xdf5b0f(0x119)][_0xdf5b0f(0x141)](_0x51c854);_0x463b26&&window[_0xdf5b0f(0x38f)](_0x463b26),this[_0xdf5b0f(0x119)]['set'](_0x51c854,null);}}['_handleLeaveEvent'](_0x2bf31b){const _0x22b3ec=_0x26c91b,{memberID:_0x432d0c,unitIDs:_0x5f217a}=_0x2bf31b;_0x5f217a[_0x22b3ec(0x2b2)](_0x1460bb=>{const _0x4abb7d=_0x22b3ec;var _0x3ffdd5;const _0x2a55f7=this[_0x4abb7d(0x385)][_0x4abb7d(0x141)](_0x1460bb);_0x2a55f7&&(_0x2a55f7[_0x4abb7d(0x186)](_0x432d0c),(_0x3ffdd5=this[_0x4abb7d(0x1f6)](_0x1460bb))==null||_0x3ffdd5[_0x4abb7d(0x2d2)](_0x2a55f7[_0x4abb7d(0x166)]===0x0?u[_0x4abb7d(0x14c)][_0x4abb7d(0x28b)]:u['UnitStatus'][_0x4abb7d(0x1b3)]));}),this[_0x22b3ec(0x10a)](_0x432d0c);}[_0x26c91b(0x328)](_0x1c5fc4){const _0xa62055=_0x26c91b;this[_0xa62055(0x1b1)](_0x1c5fc4[_0xa62055(0x24d)]);}[_0x26c91b(0x274)](_0x2d0a4b){const _0x266af0=_0x26c91b;localStorage[_0x266af0(0x21f)](Le,JSON[_0x266af0(0x136)](_0x2d0a4b));}[_0x26c91b(0x18b)](){const _0x4f7679=_0x26c91b;this[_0x4f7679(0x2bb)]=window['setInterval'](()=>{const _0x2c9a8e=_0x4f7679;this['_send']({'type':0x2,'memberID':this[_0x2c9a8e(0x290)]});},Me);}[_0x26c91b(0x1f6)](_0xc2e340){const _0x93f1bf=_0x26c91b;return this[_0x93f1bf(0x36b)]['has'](_0xc2e340)||this[_0x93f1bf(0x36b)][_0x93f1bf(0x305)](_0xc2e340,new d['BehaviorSubject'](u[_0x93f1bf(0x14c)][_0x93f1bf(0x28b)])),this['_unitStatus'][_0x93f1bf(0x141)](_0xc2e340);}}var Be=(_0x5ce1f2=>(_0x5ce1f2[_0x5ce1f2[_0x26c91b(0x2dc)]=0x0]=_0x26c91b(0x2dc),_0x5ce1f2[_0x5ce1f2['OK']=0x1]='OK',_0x5ce1f2[_0x5ce1f2[_0x26c91b(0x158)]=0x2]=_0x26c91b(0x158),_0x5ce1f2[_0x5ce1f2[_0x26c91b(0x120)]=0x3]=_0x26c91b(0x120),_0x5ce1f2[_0x5ce1f2[_0x26c91b(0x318)]=0x4]=_0x26c91b(0x318),_0x5ce1f2[_0x5ce1f2[_0x26c91b(0x276)]=0x5]='UNAUTHENTICATED',_0x5ce1f2[_0x5ce1f2[_0x26c91b(0x29c)]=0x6]=_0x26c91b(0x29c),_0x5ce1f2[_0x5ce1f2[_0x26c91b(0x26a)]=0x7]=_0x26c91b(0x26a),_0x5ce1f2[_0x5ce1f2['TOO_MANY_REQUESTS']=0x8]=_0x26c91b(0x382),_0x5ce1f2[_0x5ce1f2[_0x26c91b(0x1ad)]=0x9]='COMPLETION_FINISHED',_0x5ce1f2[_0x5ce1f2[_0x26c91b(0x26b)]=0xa]=_0x26c91b(0x26b),_0x5ce1f2[_0x5ce1f2['CHANGESET_REVISION_CONFILICT']=0x1389]=_0x26c91b(0x212),_0x5ce1f2[_0x5ce1f2[_0x26c91b(0x267)]=0x1771]=_0x26c91b(0x267),_0x5ce1f2[_0x5ce1f2['SNAPSHOT_HAS_BEEN_REMOVED']=0x1772]=_0x26c91b(0x22e),_0x5ce1f2[_0x5ce1f2[_0x26c91b(0x1ce)]=0x1773]=_0x26c91b(0x1ce),_0x5ce1f2[_0x5ce1f2['APPLY_REJECT']=0x1b59]='APPLY_REJECT',_0x5ce1f2[_0x5ce1f2['APPLY_NON_SEQUENTIAL_REVISION']=0x1b5a]=_0x26c91b(0x13b),_0x5ce1f2[_0x5ce1f2[_0x26c91b(0x1ca)]=0x1b5b]=_0x26c91b(0x1ca),_0x5ce1f2[_0x5ce1f2['APPLY_PERMISSION_DENIED']=0x1b5c]='APPLY_PERMISSION_DENIED',_0x5ce1f2[_0x5ce1f2[_0x26c91b(0x1e5)]=0x1b5d]=_0x26c91b(0x1e5),_0x5ce1f2[_0x5ce1f2['CONNECTOR_DATA_TOO_LARGE']=0x1f41]='CONNECTOR_DATA_TOO_LARGE',_0x5ce1f2[_0x5ce1f2[_0x26c91b(0x235)]=0x2329]='LICENSE_MAX_UNITS_EXCEEDED',_0x5ce1f2[_0x5ce1f2[_0x26c91b(0x1f4)]=0x232a]=_0x26c91b(0x1f4),_0x5ce1f2[_0x5ce1f2[_0x26c91b(0x1f5)]=0x232b]=_0x26c91b(0x1f5),_0x5ce1f2[_0x5ce1f2[_0x26c91b(0x376)]=0x232c]=_0x26c91b(0x376),_0x5ce1f2[_0x5ce1f2[_0x26c91b(0x21a)]=0x232d]=_0x26c91b(0x21a),_0x5ce1f2[_0x5ce1f2[_0x26c91b(0x23e)]=0x2711]=_0x26c91b(0x23e),_0x5ce1f2[_0x5ce1f2['YUUMI_URL_COL_OUT_OF_RANGE']=0x2712]=_0x26c91b(0x1a2),_0x5ce1f2[_0x5ce1f2[_0x26c91b(0x256)]=0x2713]=_0x26c91b(0x256),_0x5ce1f2[_0x5ce1f2[_0x26c91b(0x2df)]=0x2714]=_0x26c91b(0x2df),_0x5ce1f2[_0x5ce1f2[_0x26c91b(0x2c3)]=0x271a]=_0x26c91b(0x2c3),_0x5ce1f2[_0x5ce1f2[_0x26c91b(0x341)]=0x271b]=_0x26c91b(0x341),_0x5ce1f2[_0x5ce1f2[_0x26c91b(0x303)]=0x2af9]=_0x26c91b(0x303),_0x5ce1f2[_0x5ce1f2['INVITE_CODE_HAS_BEEN_UES']=0x2ee1]=_0x26c91b(0x359),_0x5ce1f2[_0x5ce1f2[_0x26c91b(0x379)]=0x2ee2]='INVALID_INVITE_CODE',_0x5ce1f2[_0x5ce1f2[_0x26c91b(0x2ce)]=0x2ee3]=_0x26c91b(0x2ce),_0x5ce1f2[_0x5ce1f2[_0x26c91b(0x227)]=0x2ee4]=_0x26c91b(0x227),_0x5ce1f2[_0x5ce1f2[_0x26c91b(0x14d)]=0x2ee5]='INVITE_CODE_ALREADY_BOUND',_0x5ce1f2[_0x5ce1f2['WECHAT_HAS_BEEN_BOUND']=0x32c9]=_0x26c91b(0x33f),_0x5ce1f2[_0x5ce1f2[_0x26c91b(0x279)]=0x32ca]=_0x26c91b(0x279),_0x5ce1f2[_0x5ce1f2[_0x26c91b(0x1b6)]=0x32cb]='EMAIL_HAS_BEEN_BOUND',_0x5ce1f2[_0x5ce1f2[_0x26c91b(0x220)]=-0x1]='UNRECOGNIZED',_0x5ce1f2))(Be||{}),ns=Object[_0x26c91b(0x30b)],rs=(_0x103767,_0x1301fa,_0x5d138b,_0x172cbb)=>{for(var _0x283b09=_0x172cbb>0x1?void 0x0:_0x172cbb?ns(_0x1301fa,_0x5d138b):_0x1301fa,_0x9af142=_0x103767['length']-0x1,_0x4fa451;_0x9af142>=0x0;_0x9af142--)(_0x4fa451=_0x103767[_0x9af142])&&(_0x283b09=_0x4fa451(_0x283b09)||_0x283b09);return _0x283b09;},ue=(_0x10eb2f,_0x2146d6)=>(_0x78d16,_0x518bc3)=>_0x2146d6(_0x78d16,_0x518bc3,_0x10eb2f);exports['RemoteUniscriptService']=class extends a[_0x26c91b(0x13d)]{constructor(_0x8e2e57,_0x6a0b5d,_0xbeb2dc){const _0x25bf6f=_0x26c91b;super(),this[_0x25bf6f(0x36c)]=_0x8e2e57,this[_0x25bf6f(0x17f)]=_0x6a0b5d,this[_0x25bf6f(0x241)]=_0xbeb2dc;}async[_0x26c91b(0x157)](_0x7d2bff,_0x29546d,_0x1e7206,..._0x351766){const _0x48b4a3=_0x26c91b;var _0x2bca5c,_0x8245fb,_0x5e7c36,_0x2cbdb5;const _0x1230cb=this[_0x48b4a3(0x36c)][_0x48b4a3(0x1a9)]();if(!_0x1230cb)throw new Error('[RemoteUniscriptService]:\x20no\x20focused\x20unit');const _0x35eed3=((_0x2bca5c=this[_0x48b4a3(0x241)][_0x48b4a3(0x1a5)](u[_0x48b4a3(0x1aa)]))!=null?_0x2bca5c:u[_0x48b4a3(0x294)])+'/'+_0x7d2bff+_0x48b4a3(0x2b3)+_0x29546d,_0x552b0d=new URL(window[_0x48b4a3(0x2d1)][_0x48b4a3(0x1e0)]),_0x32de46={'scriptId':_0x7d2bff,'runId':(_0x8245fb=_0x552b0d[_0x48b4a3(0x224)]['get']('runId'))!=null?_0x8245fb:'','function':_0x29546d,'unitId':_0x1230cb[_0x48b4a3(0x10c)](),'argsOfFunction':JSON[_0x48b4a3(0x136)](_0x351766),'invokeId':(_0x5e7c36=_0x1e7206['invokeId'])!=null?_0x5e7c36:'','executionId':(_0x2cbdb5=_0x1e7206[_0x48b4a3(0x29d)])!=null?_0x2cbdb5:''};try{const _0x207894=await this['_httpService'][_0x48b4a3(0x216)](_0x35eed3,{'body':_0x32de46});return _0x207894[_0x48b4a3(0x125)][_0x48b4a3(0x33b)]&&_0x207894[_0x48b4a3(0x125)]['error'][_0x48b4a3(0x215)]!==Be['OK']?_0x48b4a3(0x14f):_0x207894[_0x48b4a3(0x125)]['result'];}catch{return _0x48b4a3(0x14f);}}},exports['RemoteUniscriptService']=rs([ue(0x0,a['IUniverInstanceService']),ue(0x1,a[_0x26c91b(0x357)](G[_0x26c91b(0x378)])),ue(0x2,a[_0x26c91b(0x332)])],exports[_0x26c91b(0x353)]),exports['CollaborationStatusDisplay']=xe,exports[_0x26c91b(0x1bd)]=be,exports[_0x26c91b(0x346)]=we,exports[_0x26c91b(0x209)]=is,exports[_0x26c91b(0x38a)]=je;
|
|
1
|
+
'use strict';const _0x183fa5=_0x5188;(function(_0x3afa03,_0x1a4f49){const _0x2ed8fd=_0x5188,_0x22e264=_0x3afa03();while(!![]){try{const _0x270a07=-parseInt(_0x2ed8fd(0x27e))/0x1+-parseInt(_0x2ed8fd(0x2f5))/0x2*(-parseInt(_0x2ed8fd(0x1cb))/0x3)+parseInt(_0x2ed8fd(0x225))/0x4+-parseInt(_0x2ed8fd(0x395))/0x5*(-parseInt(_0x2ed8fd(0x1d5))/0x6)+-parseInt(_0x2ed8fd(0x380))/0x7+parseInt(_0x2ed8fd(0x3c5))/0x8+parseInt(_0x2ed8fd(0x382))/0x9*(-parseInt(_0x2ed8fd(0x3f5))/0xa);if(_0x270a07===_0x1a4f49)break;else _0x22e264['push'](_0x22e264['shift']());}catch(_0x32edbb){_0x22e264['push'](_0x22e264['shift']());}}}(_0x18b1,0xe4d71));var Ve=Object['defineProperty'],Xe=(_0x267b43,_0x555c16,_0x11ca67)=>_0x555c16 in _0x267b43?Ve(_0x267b43,_0x555c16,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x11ca67}):_0x267b43[_0x555c16]=_0x11ca67,h=(_0xbcecd,_0x55fae7,_0x374b83)=>Xe(_0xbcecd,typeof _0x55fae7!='symbol'?_0x55fae7+'':_0x55fae7,_0x374b83);Object[_0x183fa5(0x2d6)](exports,Symbol[_0x183fa5(0x32d)],{'value':_0x183fa5(0x328)});const u=require(_0x183fa5(0x1fb)),a=require('@univerjs/core'),p=require(_0x183fa5(0x217)),G=require(_0x183fa5(0x35c)),b=require(_0x183fa5(0x2b7)),Ge=require('@univerjs/drawing'),d=require(_0x183fa5(0x3aa)),W=require(_0x183fa5(0x1e0)),m=require('@univerjs-pro/collaboration'),Ee=require(_0x183fa5(0x316)),g=require(_0x183fa5(0x277)),$=require(_0x183fa5(0x2df)),X=require(_0x183fa5(0x26f)),P=require(_0x183fa5(0x2a1)),T=require(_0x183fa5(0x2d1)),D=require(_0x183fa5(0x21d)),M=require('react'),qe=require(_0x183fa5(0x1fa));var Ke=Object[_0x183fa5(0x255)],ze=(_0x206853,_0x46e2d6,_0x6f905e,_0x4fe880)=>{for(var _0x5a67b4=_0x4fe880>0x1?void 0x0:_0x4fe880?Ke(_0x46e2d6,_0x6f905e):_0x46e2d6,_0x1c24d0=_0x206853['length']-0x1,_0x11c326;_0x1c24d0>=0x0;_0x1c24d0--)(_0x11c326=_0x206853[_0x1c24d0])&&(_0x5a67b4=_0x11c326(_0x5a67b4)||_0x5a67b4);return _0x5a67b4;},Te=(_0x4ddccd,_0x3dd271)=>(_0x5cf0c3,_0x231c1f)=>_0x3dd271(_0x5cf0c3,_0x231c1f,_0x4ddccd);let de=class extends a[_0x183fa5(0x3b8)]{constructor(_0x40e05a,_0x283318){const _0x51facb=_0x183fa5;super(),this[_0x51facb(0x1b8)]=_0x40e05a,this[_0x51facb(0x31f)]=_0x283318,this['_init']();}[_0x183fa5(0x240)](){const _0x4a3bc3=_0x183fa5,_0xe63bce=this;this['disposeWithMe'](this[_0x4a3bc3(0x1b8)]['addClipboardHook']({'onBeforePasteImage':async _0x5df793=>{const _0x30102b=_0x4a3bc3,_0x5e116b=await _0xe63bce[_0x30102b(0x31f)][_0x30102b(0x3c2)](_0x5df793);return _0x5e116b?{'source':_0x5e116b[_0x30102b(0x3fa)],'imageSourceType':_0x5e116b[_0x30102b(0x31e)]}:null;}}));}};de=ze([Te(0x0,b[_0x183fa5(0x31b)]),Te(0x1,Ge[_0x183fa5(0x1c5)])],de);const Oe=[_0x183fa5(0x2de),_0x183fa5(0x19b),'verdancy600','red300',_0x183fa5(0x3c9),_0x183fa5(0x24d)];class me extends a[_0x183fa5(0x3ec)]{constructor(){const _0x3b4b2a=_0x183fa5;super(...arguments),h(this,_0x3b4b2a(0x3cc),new Map()),h(this,_0x3b4b2a(0x1ee),0x0);}[_0x183fa5(0x35a)](_0x9efb67){const _0x64f903=_0x183fa5;if(this[_0x64f903(0x3cc)]['has'](_0x9efb67))return this[_0x64f903(0x3cc)][_0x64f903(0x2dc)](_0x9efb67);const _0x50bfbc=Oe[this[_0x64f903(0x1ee)]];return this[_0x64f903(0x1ee)]=(this[_0x64f903(0x1ee)]+0x1)%Oe[_0x64f903(0x260)],this[_0x64f903(0x3cc)][_0x64f903(0x279)](_0x9efb67,_0x50bfbc),_0x50bfbc;}}function Pe(_0x3b4528){const _0x4f1fd5=_0x183fa5;let _0x1ffd51='';for(const _0x1fe2a8 of _0x3b4528){const {startOffset:_0x486d44,endOffset:_0x33b0c1,isActive:_0x4f38b4,rangeType:_0x2ba9d2,segmentId:_0x4f4d3d,segmentPage:_0x265b2e}=_0x1fe2a8;_0x1ffd51[_0x4f1fd5(0x260)]&&(_0x1ffd51+=','),_0x1ffd51+=_0x486d44+':'+_0x33b0c1+':'+(_0x4f38b4?'1':'0')+':'+_0x2ba9d2+':'+_0x4f4d3d+':'+_0x265b2e;}return _0x1ffd51;}function Je(_0x3e9451){const _0x4c3baa=_0x183fa5,_0x2e5a03=_0x3e9451[_0x4c3baa(0x405)](','),_0x92af6e=[];for(const _0x3589b6 of _0x2e5a03){const [_0x38f1e4,_0x518a3b,_0x4b332b,_0x176133,_0x383144,_0x49769e]=_0x3589b6[_0x4c3baa(0x405)](':');_0x92af6e[_0x4c3baa(0x2a0)]({'startOffset':Number(_0x38f1e4),'endOffset':Number(_0x518a3b),'collapsed':_0x38f1e4===_0x518a3b,'isActive':_0x4b332b==='1','rangeType':_0x176133===a[_0x4c3baa(0x27b)][_0x4c3baa(0x1bc)]?a[_0x4c3baa(0x27b)][_0x4c3baa(0x1bc)]:a['DOC_RANGE_TYPE'][_0x4c3baa(0x2db)],'segmentId':typeof _0x383144==_0x4c3baa(0x2fb)?String(_0x383144):'','segmentPage':Number(_0x49769e!=null?_0x49769e:-0x1)});}return _0x92af6e[_0x4c3baa(0x3f3)](_0x48cce0=>_0x48cce0[_0x4c3baa(0x27c)])||(_0x92af6e[0x0][_0x4c3baa(0x27c)]=!0x0),_0x92af6e;}class Ce extends a['RxDisposable']{constructor(){const _0x45e724=_0x183fa5;super(...arguments),h(this,_0x45e724(0x226),new d[(_0x45e724(0x323))](null)),h(this,_0x45e724(0x2c2),this[_0x45e724(0x226)][_0x45e724(0x31c)]());}['syncEditingCollabCursor'](_0x452a61){const _0x5e118e=_0x183fa5,{unitID:_0x1c8e51,memberID:_0x3a9b03,textRanges:_0x1cee7b}=_0x452a61,_0x297f66=Pe(_0x1cee7b);if(_0x297f66==='')return;const _0x3ecb64={'unitID':_0x1c8e51,'memberID':_0x3a9b03,'selection':_0x297f66};this[_0x5e118e(0x226)][_0x5e118e(0x254)](_0x3ecb64);}}var Ze=Object[_0x183fa5(0x255)],Qe=(_0x4fc56f,_0x1a670a,_0x4153be,_0x74a6a1)=>{const _0x28adb5=_0x183fa5;for(var _0x320e8a=_0x74a6a1>0x1?void 0x0:_0x74a6a1?Ze(_0x1a670a,_0x4153be):_0x1a670a,_0x3030bb=_0x4fc56f[_0x28adb5(0x260)]-0x1,_0x6a1a34;_0x3030bb>=0x0;_0x3030bb--)(_0x6a1a34=_0x4fc56f[_0x3030bb])&&(_0x320e8a=_0x6a1a34(_0x320e8a)||_0x320e8a);return _0x320e8a;},L=(_0x4abf25,_0x3b9499)=>(_0x1f20c4,_0x50b394)=>_0x3b9499(_0x1f20c4,_0x50b394,_0x4abf25);const et=0x12c,tt=0x64;let fe=class extends a[_0x183fa5(0x3b8)]{constructor(_0x5df597,_0x4244f9,_0x71cf77,_0x3e60c6,_0x2703e7,_0x43c681,_0x39c5b1,_0x20b971,_0x270c64){const _0xaea7b7=_0x183fa5;super(),h(this,_0xaea7b7(0x2c3),!0x1),h(this,_0xaea7b7(0x240),!0x1),h(this,_0xaea7b7(0x34c),new d[(_0xaea7b7(0x323))](new Map())),h(this,'cursorInfo$',this['_cursorInfo$'][_0xaea7b7(0x31c)]()),h(this,_0xaea7b7(0x3b5),new d[(_0xaea7b7(0x323))]([])),h(this,_0xaea7b7(0x375),this['_roomMembers$']['pipe'](d['debounceTime'](et))),h(this,_0xaea7b7(0x295),a[_0xaea7b7(0x3be)](_0x4af7e0=>{const _0x4530bc=_0xaea7b7,_0x5c6a59={'eventID':m[_0x4530bc(0x1a4)][_0x4530bc(0x3b1)],'data':{'unitID':this[_0x4530bc(0x1b7)],'memberID':this[_0x4530bc(0x383)][_0x4530bc(0x3db)](),'selection':Pe(_0x4af7e0)}};this[_0x4530bc(0x383)][_0x4530bc(0x3ee)](_0x5c6a59,this['unitID']);},tt)),(this[_0xaea7b7(0x1b7)]=_0x5df597,this[_0xaea7b7(0x383)]=_0x4244f9,this[_0xaea7b7(0x20a)]=_0x71cf77,this[_0xaea7b7(0x1ca)]=_0x3e60c6,this[_0xaea7b7(0x2e9)]=_0x2703e7,this[_0xaea7b7(0x324)]=_0x43c681,this[_0xaea7b7(0x346)]=_0x39c5b1,this[_0xaea7b7(0x28f)]=_0x20b971,this['_commandService']=_0x270c64);}get['cursorInfo'](){const _0x257ede=_0x183fa5;return this[_0x257ede(0x34c)][_0x257ede(0x3df)]();}get[_0x183fa5(0x3a2)](){const _0x428600=_0x183fa5;return this[_0x428600(0x3b5)][_0x428600(0x3df)]();}[_0x183fa5(0x2a6)](){const _0x11d0e9=_0x183fa5;super[_0x11d0e9(0x2a6)](),this['_cursorInfo$'][_0x11d0e9(0x254)](new Map()),this['_cursorInfo$'][_0x11d0e9(0x2cf)](),this[_0x11d0e9(0x3b5)][_0x11d0e9(0x254)]([]),this['_roomMembers$']['complete']();}[_0x183fa5(0x2b0)](){const _0xb4afea=_0x183fa5;this[_0xb4afea(0x240)]||(this[_0xb4afea(0x240)]=!0x0,this[_0xb4afea(0x383)][_0xb4afea(0x352)][_0xb4afea(0x213)](d[_0xb4afea(0x351)](this[_0xb4afea(0x22f)]))[_0xb4afea(0x24c)](_0xee2feb=>{const _0x2bd33c=_0xb4afea;_0xee2feb===u[_0x2bd33c(0x32f)][_0x2bd33c(0x2bf)]?this[_0x2bd33c(0x3d9)]():this[_0x2bd33c(0x358)]();}),this[_0xb4afea(0x383)][_0xb4afea(0x2f6)]['pipe'](d[_0xb4afea(0x351)](this[_0xb4afea(0x22f)]))[_0xb4afea(0x24c)](_0x15defa=>{const _0x2d4420=_0xb4afea,_0x4c594e=_0x15defa[_0x2d4420(0x36b)];_0x4c594e===m['CollaborationEvent'][_0x2d4420(0x3b1)]&&this['_onCursorUpdate'](_0x15defa),_0x4c594e===m[_0x2d4420(0x1a4)]['USERS_LEAVE']&&this[_0x2d4420(0x267)](_0x15defa);}),this[_0xb4afea(0x220)](this[_0xb4afea(0x210)][_0xb4afea(0x271)](_0xee0309=>{const _0x5d5e55=_0xb4afea,_0x28e535=_0xee0309['params'];_0x28e535!=null&&this[_0x5d5e55(0x2c3)]&&_0xee0309['id']===W[_0x5d5e55(0x39b)]['id']&&_0x28e535[_0x5d5e55(0x34f)]===this[_0x5d5e55(0x1b7)]&&_0x28e535['isEditing']===!0x1&&_0x28e535[_0x5d5e55(0x37e)][_0x5d5e55(0x260)]>0x0&&this['_updateLocalCursor'](_0x28e535['ranges']);})),this[_0xb4afea(0x324)][_0xb4afea(0x2c2)][_0xb4afea(0x213)](d[_0xb4afea(0x351)](this[_0xb4afea(0x22f)]))[_0xb4afea(0x24c)](_0x3e4a06=>{const _0x1e9489=_0xb4afea;if((_0x3e4a06==null?void 0x0:_0x3e4a06[_0x1e9489(0x1b7)])!==this[_0x1e9489(0x1b7)])return;const _0x40a6d5={'eventID':m[_0x1e9489(0x1a4)][_0x1e9489(0x3b1)],'data':_0x3e4a06};this[_0x1e9489(0x1b2)](_0x40a6d5);}),this[_0xb4afea(0x220)](this[_0xb4afea(0x210)][_0xb4afea(0x271)](_0x43c2e1=>{const _0x484dbf=_0xb4afea;if(_0x43c2e1[_0x484dbf(0x1c1)]==null)return;const _0x544b96=_0x43c2e1[_0x484dbf(0x1c1)];if(_0x43c2e1['id']!==W[_0x484dbf(0x1be)]['id']||_0x544b96[_0x484dbf(0x34f)]!==this[_0x484dbf(0x1b7)])return;const _0x35f5ef={'id':_0x484dbf(0x300),'params':_0x544b96},_0x54318a=this[_0x484dbf(0x27d)];for(const [_0xf033ca,_0x2e3ff4]of _0x54318a){const _0x541003={'id':_0x484dbf(0x300),'params':{'unitId':this[_0x484dbf(0x1b7)],'actions':null,'textRanges':_0x2e3ff4[_0x484dbf(0x37e)]}},_0x43a249=this[_0x484dbf(0x346)]['transformMutation'](_0x35f5ef,_0x541003,!0x1);if(m[_0x484dbf(0x1d3)](_0x43a249))throw _0x43a249['error'];_0x54318a[_0x484dbf(0x279)](_0xf033ca,{..._0x2e3ff4,'ranges':_0x43a249['m2Prime'][_0x484dbf(0x1c1)][_0x484dbf(0x1ab)]});}queueMicrotask(()=>{const _0x3b43af=_0x484dbf;this[_0x3b43af(0x34c)][_0x3b43af(0x254)](_0x54318a);});})));}[_0x183fa5(0x1b2)](_0x5dec0b){const _0x4a9975=_0x183fa5;var _0x5b9b03,_0x1708a0;const {memberID:_0x13d4ca,selection:_0x6164ca}=_0x5dec0b[_0x4a9975(0x1ac)],_0x438afe=Je(_0x6164ca),_0x3ad1b6=(_0x1708a0=(_0x5b9b03=this['_memberService'][_0x4a9975(0x304)](this[_0x4a9975(0x1b7)],_0x13d4ca))==null?void 0x0:_0x5b9b03['name'])!=null?_0x1708a0:_0x4a9975(0x40b),_0x4f4c41={'color':this[_0x4a9975(0x1ca)][_0x4a9975(0x35a)](_0x13d4ca),'name':_0x3ad1b6,'ranges':_0x438afe},_0x5a8204=this[_0x4a9975(0x27d)];_0x5a8204[_0x4a9975(0x279)](_0x13d4ca,_0x4f4c41),this[_0x4a9975(0x34c)][_0x4a9975(0x254)](_0x5a8204);}['_onCursorDelete'](_0x5e2659){const _0x3cace5=_0x183fa5,{memberID:_0xf8234a}=_0x5e2659[_0x3cace5(0x1ac)],_0x17999e=this['cursorInfo'];_0x17999e[_0x3cace5(0x1dc)](_0xf8234a),this[_0x3cace5(0x34c)][_0x3cace5(0x254)](_0x17999e);}['_toggleOnline'](){const _0x3b1956=_0x183fa5;var _0x355f33;if(this[_0x3b1956(0x2c3)]=!0x0,((_0x355f33=this[_0x3b1956(0x28f)][_0x3b1956(0x276)]())==null?void 0x0:_0x355f33[_0x3b1956(0x3bf)]())!==this[_0x3b1956(0x1b7)])return;const _0x3df974=this['_injector'][_0x3b1956(0x2dc)](W[_0x3b1956(0x28e)])[_0x3b1956(0x268)]();Array[_0x3b1956(0x2ba)](_0x3df974)&&_0x3df974[_0x3b1956(0x260)]>0x0&&this[_0x3b1956(0x295)](_0x3df974);}[_0x183fa5(0x358)](){const _0x3ea3d9=_0x183fa5;this[_0x3ea3d9(0x2c3)]=!0x1;}};fe=Qe([L(0x2,a[_0x183fa5(0x3dc)](a['Injector'])),L(0x3,a[_0x183fa5(0x3dc)](me)),L(0x4,a[_0x183fa5(0x3dc)](u['MemberService'])),L(0x5,a[_0x183fa5(0x3dc)](Ce)),L(0x6,m[_0x183fa5(0x20b)]),L(0x7,a[_0x183fa5(0x33a)]),L(0x8,a['ICommandService'])],fe);var st=Object[_0x183fa5(0x255)],it=(_0x4a44ca,_0x33ad6d,_0x49ffc2,_0x99bf2c)=>{const _0x33699c=_0x183fa5;for(var _0x582649=_0x99bf2c>0x1?void 0x0:_0x99bf2c?st(_0x33ad6d,_0x49ffc2):_0x33ad6d,_0x4113fe=_0x4a44ca[_0x33699c(0x260)]-0x1,_0x485a91;_0x4113fe>=0x0;_0x4113fe--)(_0x485a91=_0x4a44ca[_0x4113fe])&&(_0x582649=_0x485a91(_0x582649)||_0x582649);return _0x582649;},A=(_0x569ab9,_0x1ac834)=>(_0x2e5970,_0x24f30e)=>_0x1ac834(_0x2e5970,_0x24f30e,_0x569ab9);const nt=0x12c,rt=0x64,ot=()=>{let _0x5a1615=[],_0x120472=!0x1;return _0x15bec7=>{_0x5a1615['push'](_0x15bec7),_0x120472||(_0x120472=!0x0,setTimeout(()=>{const _0x7b3828=_0x5188;_0x5a1615[_0x7b3828(0x2ae)](_0x4bfd4b=>_0x4bfd4b()),_0x5a1615=[],_0x120472=!0x1;}));};};let Se=class extends a['RxDisposable']{constructor(_0x1f6994,_0x2a764a,_0x4aac82,_0x24981b,_0x33bb95,_0x5806da,_0x2a7add,_0x2569ef){const _0x492fc2=_0x183fa5;super(),h(this,_0x492fc2(0x2c3),!0x1),h(this,'_init',!0x1),h(this,_0x492fc2(0x34c),new d[(_0x492fc2(0x323))](new Map())),h(this,_0x492fc2(0x201),this[_0x492fc2(0x34c)][_0x492fc2(0x31c)]()),h(this,_0x492fc2(0x3b5),new d[(_0x492fc2(0x323))]([])),h(this,_0x492fc2(0x375),this[_0x492fc2(0x3b5)][_0x492fc2(0x213)](d['debounceTime'](nt))),h(this,_0x492fc2(0x295),a['debounce']((_0x4078cc,_0x4aafda)=>{const _0x5710e6=_0x492fc2,_0x30883c={'eventID':m[_0x5710e6(0x1a4)][_0x5710e6(0x3b1)],'data':{'unitID':this['unitID'],'memberID':this[_0x5710e6(0x383)][_0x5710e6(0x3db)](),'selection':Ee[_0x5710e6(0x3c8)](_0x4078cc,_0x4aafda['range'])}};this['_session']['send'](_0x30883c,this['unitID']);},rt)),(this[_0x492fc2(0x1b7)]=_0x1f6994,this[_0x492fc2(0x383)]=_0x2a764a,this[_0x492fc2(0x20a)]=_0x4aac82,this[_0x492fc2(0x1ca)]=_0x24981b,this[_0x492fc2(0x2e9)]=_0x33bb95,this[_0x492fc2(0x28f)]=_0x5806da,this['_commandService']=_0x2a7add,this['_refRangeService']=_0x2569ef);}get[_0x183fa5(0x27d)](){const _0x33c8e7=_0x183fa5;return this[_0x33c8e7(0x34c)][_0x33c8e7(0x3df)]();}get[_0x183fa5(0x3a2)](){const _0x59df38=_0x183fa5;return this['_roomMembers$'][_0x59df38(0x3df)]();}['dispose'](){const _0x12ec5a=_0x183fa5;super[_0x12ec5a(0x2a6)](),this[_0x12ec5a(0x34c)][_0x12ec5a(0x254)](new Map()),this[_0x12ec5a(0x34c)]['complete'](),this[_0x12ec5a(0x3b5)][_0x12ec5a(0x254)]([]),this[_0x12ec5a(0x3b5)][_0x12ec5a(0x2cf)]();}[_0x183fa5(0x2b0)](){const _0x15c02d=_0x183fa5;this[_0x15c02d(0x240)]||(this['_init']=!0x0,this[_0x15c02d(0x383)][_0x15c02d(0x352)][_0x15c02d(0x213)](d[_0x15c02d(0x351)](this[_0x15c02d(0x22f)]))['subscribe'](_0x53be1d=>{const _0x317c2a=_0x15c02d;_0x53be1d===u['SessionStatus'][_0x317c2a(0x2bf)]?this['_toggleOnline']():this[_0x317c2a(0x358)]();}),this[_0x15c02d(0x383)]['event$']['pipe'](d[_0x15c02d(0x351)](this['dispose$']))[_0x15c02d(0x24c)](_0x4c4001=>{const _0x1360a8=_0x15c02d,_0x188877=_0x4c4001['eventID'];_0x188877===m[_0x1360a8(0x1a4)][_0x1360a8(0x3b1)]&&this[_0x1360a8(0x1b2)](_0x4c4001),_0x188877===m['CollaborationEvent']['USERS_LEAVE']&&this[_0x1360a8(0x267)](_0x4c4001);}),this[_0x15c02d(0x32e)](),this['disposeWithMe'](this[_0x15c02d(0x210)][_0x15c02d(0x271)](_0x2432f5=>{const _0x2e00cf=_0x15c02d;if(this[_0x2e00cf(0x2c3)]&&_0x2432f5['id']===g['SetSelectionsOperation']['id']&&_0x2432f5['params'][_0x2e00cf(0x34f)]===this[_0x2e00cf(0x1b7)]){const _0xfdfa7f=_0x2432f5[_0x2e00cf(0x1c1)];this[_0x2e00cf(0x295)](_0xfdfa7f['subUnitId'],_0xfdfa7f[_0x2e00cf(0x1bb)][0x0]);}})));}[_0x183fa5(0x1b2)](_0x1387bb){const _0x1df72b=_0x183fa5;var _0xb5a416,_0x598a65;const {memberID:_0x1755c5,selection:_0x36a4d9}=_0x1387bb[_0x1df72b(0x1ac)],{sheetName:_0x1cf954,range:_0x41743d}=Ee[_0x1df72b(0x3fd)](_0x36a4d9),_0x183ea9={'name':(_0x598a65=(_0xb5a416=this[_0x1df72b(0x2e9)]['getMember'](this['unitID'],_0x1755c5))==null?void 0x0:_0xb5a416[_0x1df72b(0x393)])!=null?_0x598a65:_0x1df72b(0x40b),'range':this[_0x1df72b(0x373)](_0x1cf954,_0x41743d),'sheetID':_0x1cf954,'color':this[_0x1df72b(0x1ca)]['assignAColorForMemberID'](_0x1755c5),'selection':_0x36a4d9},_0x28e302=this['cursorInfo'];_0x28e302[_0x1df72b(0x279)](_0x1755c5,_0x183ea9),this[_0x1df72b(0x34c)][_0x1df72b(0x254)](_0x28e302);}['_onCursorDelete'](_0x1e322d){const _0x1bb097=_0x183fa5,{memberID:_0x567c36}=_0x1e322d[_0x1bb097(0x1ac)],_0x228646=this['cursorInfo'];_0x228646[_0x1bb097(0x1dc)](_0x567c36),this['_cursorInfo$'][_0x1bb097(0x254)](_0x228646);}[_0x183fa5(0x373)](_0x3e1698,_0x178bff){const _0x413f4e=_0x183fa5;var _0x22d441,_0x38848c;const _0x461d42=(_0x38848c=(_0x22d441=this['_univerInstanceService'][_0x413f4e(0x1e7)](this[_0x413f4e(0x1b7)]))==null?void 0x0:_0x22d441[_0x413f4e(0x2ed)](_0x3e1698))==null?void 0x0:_0x38848c[_0x413f4e(0x22b)]();return(_0x461d42==null?void 0x0:_0x461d42[_0x413f4e(0x1cd)](_0x4a759c=>a['Rectangle']['contains'](_0x4a759c,_0x178bff)))||_0x178bff;}[_0x183fa5(0x32e)](){const _0x2c89cc=_0x183fa5,_0x223379=new a[(_0x2c89cc(0x38c))](),_0xa6197d=ot(),_0x1865ad=()=>{const _0x6e1791=_0x2c89cc;_0x223379[_0x6e1791(0x2a6)]();const _0x588068=(_0x2c22b0,_0x114a94,_0x2064f4,_0xf3fbe5)=>{const _0x2b3743=_0x6e1791;let _0x3427aa=[];switch(_0x2c22b0['id']){case g[_0x2b3743(0x266)][_0x2b3743(0x3dd)]:{_0x3427aa=g[_0x2b3743(0x1ec)](_0x2c22b0,_0xf3fbe5);break;}case g[_0x2b3743(0x266)][_0x2b3743(0x3ed)]:{_0x3427aa=g[_0x2b3743(0x1a5)](_0x2c22b0,_0xf3fbe5);break;}case g[_0x2b3743(0x266)][_0x2b3743(0x1e2)]:{_0x3427aa=g[_0x2b3743(0x3b6)](_0x2c22b0,_0xf3fbe5);break;}case g[_0x2b3743(0x266)]['InsertRangeMoveDownCommandId']:{_0x3427aa=g['handleInsertRangeMoveDown'](_0x2c22b0,_0xf3fbe5);break;}case g[_0x2b3743(0x266)][_0x2b3743(0x2da)]:{_0x3427aa=g[_0x2b3743(0x3f9)](_0x2c22b0,_0xf3fbe5);break;}case g['EffectRefRangId'][_0x2b3743(0x24e)]:{_0x3427aa=g[_0x2b3743(0x371)](_0x2c22b0,_0xf3fbe5);break;}case g[_0x2b3743(0x266)]['MoveRangeCommandId']:{_0x3427aa=g[_0x2b3743(0x38d)](_0x2c22b0,_0xf3fbe5);break;}case g[_0x2b3743(0x266)][_0x2b3743(0x27f)]:{_0x3427aa=g[_0x2b3743(0x35d)](_0x2c22b0,_0xf3fbe5);break;}case g[_0x2b3743(0x266)][_0x2b3743(0x39c)]:{_0x3427aa=g[_0x2b3743(0x309)](_0x2c22b0,_0xf3fbe5);break;}}const _0x568018=g['runRefRangeMutations'](_0x3427aa,_0xf3fbe5),_0x55c4f1=this[_0x2b3743(0x27d)][_0x2b3743(0x2dc)](_0x114a94);if(_0x55c4f1&&_0x568018){const _0x2c0bd8={..._0x55c4f1,'range':_0x568018};this[_0x2b3743(0x27d)][_0x2b3743(0x279)](_0x114a94,_0x2c0bd8),_0xa6197d(()=>{const _0x438819=_0x2b3743,_0x1987e0=this['_refRangeService']['registerRefRange'](_0x568018,_0x5b1760=>(_0x1987e0[_0x438819(0x2a6)](),_0x588068(_0x5b1760,_0x114a94,_0x2064f4,_0x568018)));_0x223379['add'](_0x1987e0);});}return{'redos':[],'undos':[]};};this[_0x6e1791(0x27d)][_0x6e1791(0x2ae)]((_0x4b6e74,_0x4df529)=>{const _0x2fef7a=_0x6e1791,{range:_0x4b7976,sheetID:_0x37a8ae}=_0x4b6e74,_0x5a544b=this['_refRangeService'][_0x2fef7a(0x19c)](_0x4b7976,_0x4c00b1=>(_0x5a544b['dispose'](),_0x588068(_0x4c00b1,_0x4df529,_0x37a8ae,_0x4b7976)));_0x223379[_0x2fef7a(0x292)](_0x5a544b);});};this[_0x2c89cc(0x220)](a[_0x2c89cc(0x29e)](this['_cursorInfo$']['subscribe'](()=>{_0x1865ad();})));}['_toggleOnline'](){const _0x76c7f0=_0x183fa5;var _0x3f598b,_0x158315;if(this['_online']=!0x0,((_0x3f598b=this[_0x76c7f0(0x28f)][_0x76c7f0(0x276)]())==null?void 0x0:_0x3f598b[_0x76c7f0(0x3bf)]())!==this[_0x76c7f0(0x1b7)])return;const _0x1a3d71=(_0x158315=this['_injector'][_0x76c7f0(0x2dc)](g['SheetsSelectionsService'])['getCurrentSelections']())==null?void 0x0:_0x158315[0x0],_0x5089b0=this[_0x76c7f0(0x28f)][_0x76c7f0(0x22c)](a[_0x76c7f0(0x2f4)][_0x76c7f0(0x407)])['getActiveSheet']();_0x1a3d71&&_0x5089b0&&this[_0x76c7f0(0x295)](_0x5089b0['getSheetId'](),_0x1a3d71);}[_0x183fa5(0x358)](){const _0x450906=_0x183fa5;this[_0x450906(0x2c3)]=!0x1;}};Se=it([A(0x2,a[_0x183fa5(0x3dc)](a[_0x183fa5(0x2e1)])),A(0x3,a[_0x183fa5(0x3dc)](me)),A(0x4,a[_0x183fa5(0x3dc)](u[_0x183fa5(0x24a)])),A(0x5,a[_0x183fa5(0x33a)]),A(0x6,a[_0x183fa5(0x3fb)]),A(0x7,a[_0x183fa5(0x3dc)](g['RefRangeService']))],Se);var at=Object[_0x183fa5(0x255)],ct=(_0x4acce6,_0x3fd6f3,_0xc65d51,_0x2ab8fa)=>{const _0x14fc41=_0x183fa5;for(var _0x2e29fd=_0x2ab8fa>0x1?void 0x0:_0x2ab8fa?at(_0x3fd6f3,_0xc65d51):_0x3fd6f3,_0x38670f=_0x4acce6[_0x14fc41(0x260)]-0x1,_0x494b1b;_0x38670f>=0x0;_0x38670f--)(_0x494b1b=_0x4acce6[_0x38670f])&&(_0x2e29fd=_0x494b1b(_0x2e29fd)||_0x2e29fd);return _0x2e29fd;},ie=(_0x30ba6f,_0x559609)=>(_0x941ff,_0x4c5425)=>_0x559609(_0x941ff,_0x4c5425,_0x30ba6f);let x=class extends a[_0x183fa5(0x3b8)]{constructor(_0x44bf5c,_0x2f7ef6,_0x3a7e15){const _0x47aa67=_0x183fa5;super(),h(this,_0x47aa67(0x25a),new Map()),h(this,_0x47aa67(0x3cf),new d['Subject']()),(this['_univerInstanceService']=_0x44bf5c,this[_0x47aa67(0x20a)]=_0x2f7ef6,this['_collabSessionService']=_0x3a7e15,this[_0x47aa67(0x240)]());}[_0x183fa5(0x2a6)](){const _0x2c8b28=_0x183fa5;super[_0x2c8b28(0x2a6)](),this[_0x2c8b28(0x3cf)][_0x2c8b28(0x2cf)](),this[_0x2c8b28(0x25a)][_0x2c8b28(0x2ae)](_0x323b96=>_0x323b96[_0x2c8b28(0x2a6)]());}['getCollabCursors$'](_0x156843){const _0x1de0ed=_0x183fa5;return this[_0x1de0ed(0x25a)][_0x1de0ed(0x1e3)](_0x156843)?this['_entities'][_0x1de0ed(0x2dc)](_0x156843)[_0x1de0ed(0x201)]:this[_0x1de0ed(0x3cf)]['pipe'](d['filter'](_0x4b1920=>_0x4b1920['unitID']===_0x156843),d[_0x1de0ed(0x26c)](_0x4919b0=>_0x4919b0[_0x1de0ed(0x201)]));}[_0x183fa5(0x240)](){const _0x3fb92e=_0x183fa5;this[_0x3fb92e(0x28f)]['getTypeOfUnitAdded$'](a['UniverInstanceType'][_0x3fb92e(0x407)])[_0x3fb92e(0x213)](d[_0x3fb92e(0x351)](this[_0x3fb92e(0x22f)]))['subscribe'](async _0x2a645f=>{const _0x54a508=_0x3fb92e,_0x428603=_0x2a645f[_0x54a508(0x3bf)](),_0x1934c8=await this[_0x54a508(0x203)](_0x428603);this['_entityInit$'][_0x54a508(0x254)](_0x1934c8),this['_entities'][_0x54a508(0x279)](_0x428603,_0x1934c8);}),this[_0x3fb92e(0x28f)][_0x3fb92e(0x1f3)](a[_0x3fb92e(0x2f4)][_0x3fb92e(0x2c8)])[_0x3fb92e(0x213)](d[_0x3fb92e(0x351)](this[_0x3fb92e(0x22f)]))[_0x3fb92e(0x213)](d[_0x3fb92e(0x1b0)](_0x6ce48c=>!_0x6ce48c['getUnitId']()[_0x3fb92e(0x1a7)]('__')))['subscribe'](async _0x148c05=>{const _0x42c2bf=_0x3fb92e,_0x2471be=_0x148c05[_0x42c2bf(0x3bf)](),_0x2bd264=await this[_0x42c2bf(0x34a)](_0x2471be);this['_entityInit$']['next'](_0x2bd264),this[_0x42c2bf(0x25a)]['set'](_0x2471be,_0x2bd264);}),d['merge'](this[_0x3fb92e(0x28f)][_0x3fb92e(0x2a4)](a[_0x3fb92e(0x2f4)][_0x3fb92e(0x2c8)]),this[_0x3fb92e(0x28f)][_0x3fb92e(0x2a4)](a[_0x3fb92e(0x2f4)]['UNIVER_SHEET']))[_0x3fb92e(0x213)](d[_0x3fb92e(0x351)](this[_0x3fb92e(0x22f)]))[_0x3fb92e(0x24c)](_0x7687e8=>{const _0x58079d=_0x3fb92e,_0x52db79=_0x7687e8['getUnitId'](),_0x12624a=this[_0x58079d(0x25a)][_0x58079d(0x2dc)](_0x52db79);_0x12624a&&(_0x12624a[_0x58079d(0x2a6)](),this[_0x58079d(0x25a)]['delete'](_0x52db79));});}async[_0x183fa5(0x203)](_0x33d98f){const _0x37eb03=_0x183fa5,_0x4947fe=await this[_0x37eb03(0x2be)][_0x37eb03(0x281)](_0x33d98f),_0x370977=this[_0x37eb03(0x20a)][_0x37eb03(0x32c)](Se,_0x33d98f,_0x4947fe);return _0x370977[_0x37eb03(0x2b0)](),_0x370977;}async[_0x183fa5(0x34a)](_0x5502c7){const _0x94d5c6=_0x183fa5,_0x4cd7fd=await this[_0x94d5c6(0x2be)][_0x94d5c6(0x281)](_0x5502c7),_0x24196e=this['_injector']['createInstance'](fe,_0x5502c7,_0x4cd7fd);return _0x24196e['init'](),_0x24196e;}};x=ct([ie(0x0,a['IUniverInstanceService']),ie(0x1,a[_0x183fa5(0x3dc)](a[_0x183fa5(0x2e1)])),ie(0x2,a[_0x183fa5(0x3dc)](u['CollaborationSessionService']))],x);const q=0x14,Re=0xc8,ne=0x4,lt=0x5;function _t(_0x4a7f52,_0x53e658){const _0x59ff11=_0x183fa5;let {radius:_0x1b3044,width:_0x37621c,height:_0x54de69}=_0x53e658;_0x1b3044=_0x1b3044!=null?_0x1b3044:0x0,_0x37621c=_0x37621c!=null?_0x37621c:0x1e,_0x54de69=_0x54de69!=null?_0x54de69:0x1e;let _0x2bb4a2=0x0,_0x12c839=0x0,_0x2efbee=0x0;_0x2bb4a2=_0x12c839=_0x2efbee=Math[_0x59ff11(0x250)](_0x1b3044,_0x37621c/0x2,_0x54de69/0x2),_0x4a7f52[_0x59ff11(0x235)](),_0x4a7f52[_0x59ff11(0x38b)](_0x2bb4a2,0x0),_0x4a7f52[_0x59ff11(0x1b4)](_0x37621c-_0x12c839,0x0),_0x4a7f52['arc'](_0x37621c-_0x12c839,_0x12c839,_0x12c839,Math['PI']*0x3/0x2,0x0,!0x1),_0x4a7f52['lineTo'](_0x37621c,_0x54de69-_0x2efbee),_0x4a7f52[_0x59ff11(0x3c3)](_0x37621c-_0x2efbee,_0x54de69-_0x2efbee,_0x2efbee,0x0,Math['PI']/0x2,!0x1),_0x4a7f52[_0x59ff11(0x1b4)](0x0,_0x54de69),_0x4a7f52[_0x59ff11(0x1b4)](0x0,_0x2bb4a2),_0x4a7f52['arc'](_0x2bb4a2,_0x2bb4a2,_0x2bb4a2,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x4a7f52['closePath'](),_0x53e658[_0x59ff11(0x3c4)]&&(_0x4a7f52[_0x59ff11(0x2fc)](),_0x4a7f52['fillStyle']=_0x53e658[_0x59ff11(0x3c4)],_0x53e658[_0x59ff11(0x368)]===_0x59ff11(0x259)?_0x4a7f52[_0x59ff11(0x3c4)]('evenodd'):_0x4a7f52['fill'](),_0x4a7f52[_0x59ff11(0x36c)]());}class ee extends p[_0x183fa5(0x384)]{constructor(_0x63a059,_0x2c7ffc){const _0x41fce9=_0x183fa5;super(_0x63a059,_0x2c7ffc),h(this,_0x41fce9(0x2af)),h(this,_0x41fce9(0x364)),(this[_0x41fce9(0x2af)]=_0x2c7ffc==null?void 0x0:_0x2c7ffc[_0x41fce9(0x2af)],this[_0x41fce9(0x364)]=_0x2c7ffc==null?void 0x0:_0x2c7ffc[_0x41fce9(0x364)]);}static[_0x183fa5(0x334)](_0x5920db,_0x6fb295){const _0x1f99f4=_0x183fa5,{text:_0x2194ac,color:_0x22ee31}=_0x6fb295;_0x5920db[_0x1f99f4(0x2fc)](),_0x5920db[_0x1f99f4(0x35b)]=_0x1f99f4(0x32b);const _0x22e99d=_0x5920db['measureText'](_0x2194ac)['width'],_0x1e52d9=Math[_0x1f99f4(0x250)](_0x22e99d+0x2*ne,Re);_t(_0x5920db,{'height':q,'radius':0x4,'width':_0x1e52d9,'fill':_0x22ee31}),_0x5920db['fillStyle']=_0x1f99f4(0x37d);const _0x1860b5=ne,_0x2b0048=q-lt,_0x5a5fcc=Re-0x2*ne;if(_0x22e99d>_0x5a5fcc){let _0x11c0b6='',_0xa765c3=0x0;for(const _0x5ca0ba of _0x2194ac){const _0x411993=_0x5920db[_0x1f99f4(0x3d7)](_0x5ca0ba)[_0x1f99f4(0x2e5)];if(_0xa765c3+_0x411993<=_0x5a5fcc-_0x5920db[_0x1f99f4(0x3d7)](_0x1f99f4(0x342))['width'])_0x11c0b6+=_0x5ca0ba,_0xa765c3+=_0x411993;else{_0x11c0b6+=_0x1f99f4(0x342);break;}}_0x5920db[_0x1f99f4(0x3c6)](_0x11c0b6,_0x1860b5,_0x2b0048);}else _0x5920db[_0x1f99f4(0x3c6)](_0x2194ac,_0x1860b5,_0x2b0048);_0x5920db[_0x1f99f4(0x36c)]();}[_0x183fa5(0x28b)](_0x3e6c6f){const _0x247058=_0x183fa5;ee[_0x247058(0x334)](_0x3e6c6f,this);}}const re=_0x183fa5(0x376),ht='collab-text-range-',ut=_0x183fa5(0x2ef),k=0x6,dt=1.5,oe=0x4,ft=1.5,St=_0x183fa5(0x274);class De{constructor(_0x161aa0,_0x185b64,_0x2672df,_0x43cded){const _0x3670e8=_0x183fa5;h(this,_0x3670e8(0x302),[]),h(this,'_anchor',null),h(this,_0x3670e8(0x232),null),h(this,_0x3670e8(0x38a),null),h(this,_0x3670e8(0x3b4),null),h(this,_0x3670e8(0x2f7),null),(this[_0x3670e8(0x3f0)]=_0x161aa0,this[_0x3670e8(0x3e0)]=_0x185b64,this[_0x3670e8(0x3e6)]=_0x2672df,this[_0x3670e8(0x2cc)]=_0x43cded,this[_0x3670e8(0x3d0)]());}set['_hover'](_0x1468e3){const _0x556584=_0x183fa5;_0x1468e3?(this['_anchorDot']&&this[_0x556584(0x38a)]['hide'](),this[_0x556584(0x232)]&&this['_textBubble'][_0x556584(0x19d)]()):(this[_0x556584(0x38a)]&&this[_0x556584(0x38a)][_0x556584(0x19d)](),this[_0x556584(0x232)]&&this[_0x556584(0x232)][_0x556584(0x315)]());}[_0x183fa5(0x2a6)](){const _0x41f254=_0x183fa5;for(const _0x1b6054 of this[_0x41f254(0x302)])_0x1b6054['dispose']();this[_0x41f254(0x232)]&&this['_textBubble'][_0x41f254(0x2a6)](),this[_0x41f254(0x38a)]&&this[_0x41f254(0x38a)][_0x41f254(0x2a6)](),this[_0x41f254(0x1ae)]&&this[_0x41f254(0x1ae)][_0x41f254(0x2a6)](),this[_0x41f254(0x2f7)]&&this[_0x41f254(0x2f7)]();}[_0x183fa5(0x3d0)](){const _0x12f2a9=_0x183fa5;var _0x27acfe;const {_docSkeleton:_0x1f710a,_document:_0x1b026a}=this,{color:_0x159424,name:_0x40094b,ranges:_0x540469}=this[_0x12f2a9(0x3f0)],_0x2ab85c=_0x1b026a['getOffsetConfig'](),{docsLeft:_0x598018,docsTop:_0x400408}=_0x2ab85c,_0x2cf820=new b[(_0x12f2a9(0x21f))](_0x2ab85c,_0x1f710a);for(const {startOffset:_0x30807d,endOffset:_0x320ca7,rangeType:_0x19b100,segmentId:_0x5498b6,segmentPage:_0xad840c,collapsed:_0xda4cc0,isActive:_0x23c6b8}of _0x540469){const _0x16fa40=_0x1f710a[_0x12f2a9(0x2f2)](_0x30807d,!0x0,_0x5498b6,_0xad840c);let _0x387461=_0x1f710a['findNodePositionByCharIndex'](_0x320ca7,!0x0,_0x5498b6,_0xad840c);if(_0x387461==null&&(_0x387461=_0x1f710a['findNodePositionByCharIndex'](_0x320ca7-0x1,!0x1,_0x5498b6,_0xad840c)),_0x23c6b8){const {contentBoxPointGroup:_0x4560c2}=_0x2cf820[_0x12f2a9(0x344)](_0x387461,_0x387461);if(_0x4560c2['length']===0x0)continue;this[_0x12f2a9(0x3e7)](_0x159424,_0x4560c2,_0x598018,_0x400408,_0x40094b),this[_0x12f2a9(0x2f7)]=this[_0x12f2a9(0x3e5)]();}if(_0x16fa40&&_0x387461){if(_0x19b100===a[_0x12f2a9(0x27b)][_0x12f2a9(0x2db)]){const _0x4e0a29=new b['NodePositionConvertToRectRange'](_0x2ab85c,_0x1f710a),{pointGroup:_0x321f59}=(_0x27acfe=_0x4e0a29[_0x12f2a9(0x344)](_0x16fa40,_0x387461))!=null?_0x27acfe:{};if(_0x321f59==null||_0x321f59[_0x12f2a9(0x260)]===0x0)continue;this['_drawRectRange'](_0x159424,_0x321f59,_0x598018,_0x400408);}else{if(!_0xda4cc0){const {borderBoxPointGroup:_0x4d6d6f}=_0x2cf820[_0x12f2a9(0x344)](_0x16fa40,_0x387461);if(_0x4d6d6f[_0x12f2a9(0x260)]===0x0)continue;this['_drawTextRange'](_0x159424,_0x4d6d6f,_0x598018,_0x400408);}}}}}[_0x183fa5(0x3e7)](_0x2452eb,_0x4d60a1,_0x1b4a80,_0x43cb19,_0x43bfd1){const _0x5d6624=_0x183fa5,_0x186770=this['_getAnchorBounding'](_0x4d60a1),{left:_0x1d24e6,top:_0x299aef,height:_0x2ca1ef}=_0x186770,_0x590f26=this[_0x5d6624(0x20d)](),_0x1d2cd7=ft/_0x590f26,_0x17e76e=new p[(_0x5d6624(0x3d8))](re+a[_0x5d6624(0x2e2)][_0x5d6624(0x273)](k),{'left':_0x1d24e6+_0x1b4a80-_0x1d2cd7,'top':_0x299aef+_0x43cb19,'height':_0x2ca1ef,'width':dt,'fill':_0x2452eb||p[_0x5d6624(0x1dd)](a['COLORS'][_0x5d6624(0x361)],0x0),'strokeWidth':_0x1d2cd7,'stroke':St,'evented':!0x0});this[_0x5d6624(0x1ae)]=_0x17e76e,this['_scene'][_0x5d6624(0x3a5)](_0x17e76e,b[_0x5d6624(0x1ad)]);const _0x5c22a8=new p[(_0x5d6624(0x3d8))](re+a[_0x5d6624(0x2e2)]['generateRandomId'](k),{'left':_0x1d24e6+_0x1b4a80-_0x1d2cd7,'top':_0x299aef+_0x43cb19-oe/0x2,'height':oe,'width':oe,'fill':_0x2452eb||p[_0x5d6624(0x1dd)](a[_0x5d6624(0x2d9)][_0x5d6624(0x361)],0x0),'strokeWidth':0x0,'stroke':_0x2452eb||p[_0x5d6624(0x1dd)](a[_0x5d6624(0x2d9)][_0x5d6624(0x361)],0x0),'evented':!0x1});this[_0x5d6624(0x38a)]=_0x5c22a8,this[_0x5d6624(0x3e0)]['addObject'](_0x5c22a8,b['TEXT_RANGE_LAYER_INDEX']);const _0x46cd0f=new ee(re+a[_0x5d6624(0x2e2)]['generateRandomId'](k),{'left':_0x1d24e6+_0x1b4a80-_0x1d2cd7,'top':_0x299aef+_0x43cb19-q,'text':_0x43bfd1,'color':_0x2452eb});this[_0x5d6624(0x232)]=_0x46cd0f,this[_0x5d6624(0x3e0)][_0x5d6624(0x3a5)](_0x46cd0f,b[_0x5d6624(0x1ad)]),this['_hover']=!0x1;}[_0x183fa5(0x3e5)](){const _0xd66161=_0x183fa5,_0x5f1f8e=this[_0xd66161(0x1ae)][_0xd66161(0x37c)]['subscribeEvent'](()=>{this['_hover']=!0x0;}),_0x2c4ed0=this[_0xd66161(0x1ae)]['onPointerLeave$']['subscribeEvent'](()=>{const _0x1b6561=_0xd66161;this[_0x1b6561(0x3b4)]&&clearTimeout(this[_0x1b6561(0x3b4)]),this['_hideTimer']=setTimeout(()=>{this['_hover']=!0x1;},0x7d0);});return()=>{const _0x41a593=_0xd66161;_0x5f1f8e[_0x41a593(0x330)](),_0x2c4ed0[_0x41a593(0x330)]();};}[_0x183fa5(0x40a)](_0x3ce63e,_0x476152,_0x22a981,_0x18a6d7){const _0x202b82=_0x183fa5,_0x3ddbd2=new a['ColorKit'](_0x3ce63e)[_0x202b82(0x404)](0.2)['toRgbString'](),_0x3dbf63=new p[(_0x202b82(0x1d0))](ht+a['Tools'][_0x202b82(0x273)](k),{'pointsGroup':_0x476152,'fill':_0x3ddbd2||p[_0x202b82(0x1dd)](a[_0x202b82(0x2d9)][_0x202b82(0x361)],0.2),'left':_0x22a981,'top':_0x18a6d7,'evented':!0x1,'debounceParentDirty':!0x1});this['_shapes']['push'](_0x3dbf63),this[_0x202b82(0x3e0)][_0x202b82(0x3a5)](_0x3dbf63,b[_0x202b82(0x1ad)]);}[_0x183fa5(0x2ca)](_0x38e819,_0x156826,_0x1c5371,_0x3bd35f){const _0x9bdb0=_0x183fa5,_0x27bd38=new a['ColorKit'](_0x38e819)['setAlpha'](0.2)[_0x9bdb0(0x40d)](),_0x284fd3=new p[(_0x9bdb0(0x1d0))](ut+a['Tools']['generateRandomId'](k),{'pointsGroup':_0x156826,'fill':_0x27bd38||p[_0x9bdb0(0x1dd)](a[_0x9bdb0(0x2d9)][_0x9bdb0(0x361)],0.2),'left':_0x1c5371,'top':_0x3bd35f,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x9bdb0(0x302)][_0x9bdb0(0x2a0)](_0x284fd3),this[_0x9bdb0(0x3e0)]['addObject'](_0x284fd3,b[_0x9bdb0(0x1ad)]);}['_getAnchorBounding'](_0x5e32a6){const _0x2fa59b=_0x5e32a6[0x0],_0x27573f=_0x2fa59b[0x0],_0x300f5a=_0x2fa59b[0x2],{x:_0x43e381,y:_0x4886ee}=_0x27573f,{x:_0x1a9815,y:_0x102959}=_0x300f5a;return{'left':_0x43e381,'top':_0x4886ee,'width':_0x1a9815-_0x43e381,'height':_0x102959-_0x4886ee};}[_0x183fa5(0x20d)](){const _0x8b36f3=_0x183fa5,{scaleX:_0x424296,scaleY:_0xcd946}=this[_0x8b36f3(0x3e0)][_0x8b36f3(0x1fe)]();return Math['max'](_0x424296,_0xcd946);}}var It=Object[_0x183fa5(0x255)],vt=(_0x5da1fa,_0x52e93f,_0x417b96,_0x571ae3)=>{const _0x2461fc=_0x183fa5;for(var _0x1a12b5=_0x571ae3>0x1?void 0x0:_0x571ae3?It(_0x52e93f,_0x417b96):_0x52e93f,_0x4aa603=_0x5da1fa[_0x2461fc(0x260)]-0x1,_0x32e1b1;_0x4aa603>=0x0;_0x4aa603--)(_0x32e1b1=_0x5da1fa[_0x4aa603])&&(_0x1a12b5=_0x32e1b1(_0x1a12b5)||_0x1a12b5);return _0x1a12b5;},Y=(_0x4211d8,_0x6d77ca)=>(_0x31d653,_0x3395c5)=>_0x6d77ca(_0x31d653,_0x3395c5,_0x4211d8);let Ie=class extends a[_0x183fa5(0x3b8)]{constructor(_0x22f30f,_0x33e117,_0x54ceb0,_0x47a908,_0x163e42){const _0x38cc12=_0x183fa5;super(),h(this,_0x38cc12(0x1a8),[]),h(this,_0x38cc12(0x25c),[]),(this[_0x38cc12(0x2b2)]=_0x22f30f,this['_docSkeletonManagerService']=_0x33e117,this[_0x38cc12(0x30e)]=_0x54ceb0,this['_commandService']=_0x47a908,this['_themeService']=_0x163e42,this[_0x38cc12(0x240)]());}[_0x183fa5(0x240)](){const _0x276e52=_0x183fa5,_0x34c162=this[_0x276e52(0x2b2)][_0x276e52(0x34f)],_0x4c49f6=this[_0x276e52(0x212)];this[_0x276e52(0x220)](d[_0x276e52(0x1d9)]([this[_0x276e52(0x30e)][_0x276e52(0x1c3)](_0x34c162),this[_0x276e52(0x272)][_0x276e52(0x3a4)]])[_0x276e52(0x213)]($[_0x276e52(0x38f)](([_0x282903,_0x7c2e8d])=>({'skeleton':_0x4c49f6[_0x276e52(0x310)](),'cursors':[..._0x282903[_0x276e52(0x1f9)]()][_0x276e52(0x3b7)](_0x1cb85c=>({..._0x1cb85c,'color':_0x7c2e8d[_0x1cb85c[_0x276e52(0x2af)]]}))})))[_0x276e52(0x24c)](_0x4bcbe3=>{const _0x5253ca=_0x276e52;if(this[_0x5253ca(0x3ca)](),_0x4bcbe3){const {skeleton:_0x57dc1e,cursors:_0xac2070}=_0x4bcbe3;this[_0x5253ca(0x1e5)](_0x57dc1e,_0xac2070);}})),this[_0x276e52(0x28c)](),this[_0x276e52(0x400)]();}['_updateCollabCursors'](_0x2e78e4,_0x2e8f4d){const _0x288e08=_0x183fa5,{scene:_0x13d2e4,mainComponent:_0x1ae60a}=this[_0x288e08(0x2b2)],_0xd41fe5=_0x2e8f4d[_0x288e08(0x38f)](_0x45d9b5=>new De(_0x45d9b5,_0x13d2e4,_0x2e78e4,_0x1ae60a));this[_0x288e08(0x1a8)]=_0xd41fe5,this[_0x288e08(0x25c)]=_0x2e8f4d;}['_refreshCollabCursors'](){const _0x42ee80=_0x183fa5;this[_0x42ee80(0x3ca)]();const {scene:_0x10c567,mainComponent:_0x494e7b}=this[_0x42ee80(0x2b2)],_0x50d02=this[_0x42ee80(0x212)]['getSkeleton'](),_0x35f8c7=this[_0x42ee80(0x25c)][_0x42ee80(0x38f)](_0x438a31=>new De(_0x438a31,_0x10c567,_0x50d02,_0x494e7b));this['_cursorShapes']=_0x35f8c7;}[_0x183fa5(0x3ca)](){const _0x5b13bd=_0x183fa5;this[_0x5b13bd(0x1a8)][_0x5b13bd(0x2ae)](_0x2ee737=>_0x2ee737[_0x5b13bd(0x2a6)]()),this['_cursorShapes']=[];}['_initCommandExecutedListener'](){const _0x1d2b1=_0x183fa5,_0x33b14b=[b['SetDocZoomRatioOperation']['id']];this[_0x1d2b1(0x220)](this[_0x1d2b1(0x210)][_0x1d2b1(0x271)](_0x4fd54c=>{const _0x3e40e2=_0x1d2b1;_0x33b14b['includes'](_0x4fd54c['id'])&&_0x4fd54c[_0x3e40e2(0x1c1)][_0x3e40e2(0x34f)]===this['_context'][_0x3e40e2(0x34f)]&&this[_0x3e40e2(0x29b)]();}));}[_0x183fa5(0x28c)](){const _0x427c93=_0x183fa5;this['disposeWithMe'](a[_0x427c93(0x1db)](this['_context'][_0x427c93(0x348)][_0x427c93(0x1b3)])[_0x427c93(0x213)]($['filter'](_0x4e8231=>_0x4e8231[_0x427c93(0x2c9)]===p[_0x427c93(0x1ea)][_0x427c93(0x322)]),$[_0x427c93(0x349)](0x10))[_0x427c93(0x24c)](()=>{const _0x77416f=_0x427c93;this[_0x77416f(0x29b)]();}));}};Ie=vt([Y(0x1,a[_0x183fa5(0x3dc)](W[_0x183fa5(0x313)])),Y(0x2,a[_0x183fa5(0x3dc)](x)),Y(0x3,a['ICommandService']),Y(0x4,a[_0x183fa5(0x3dc)](a[_0x183fa5(0x341)]))],Ie);const gt=0x1,mt=1.5;class we extends p['Shape']{constructor(_0x101c64,_0x5bc8c0){const _0x2e80ac=_0x183fa5;super(_0x101c64,_0x5bc8c0),h(this,_0x2e80ac(0x252)),h(this,_0x2e80ac(0x1eb),!0x1),h(this,'_range'),h(this,_0x2e80ac(0x1c0),''),h(this,'_labelPosition',_0x2e80ac(0x1a0)),h(this,_0x2e80ac(0x40e)),(_0x5bc8c0&&this[_0x2e80ac(0x399)](_0x5bc8c0),this[_0x2e80ac(0x37c)][_0x2e80ac(0x3a1)](()=>this[_0x2e80ac(0x399)]({'hovered':!0x0})),this['onPointerLeave$'][_0x2e80ac(0x3a1)](()=>this[_0x2e80ac(0x399)]({'hovered':!0x1})));}[_0x183fa5(0x399)](_0x3c6fdb){const _0x2c8def=_0x183fa5;var _0x1ac860,_0x28ab32,_0x2cb95a,_0x39e395,_0x2086a9,_0x57982f;this[_0x2c8def(0x252)]=(_0x1ac860=_0x3c6fdb[_0x2c8def(0x2af)])!=null?_0x1ac860:this[_0x2c8def(0x252)],this[_0x2c8def(0x1eb)]=(_0x28ab32=_0x3c6fdb[_0x2c8def(0x243)])!=null?_0x28ab32:this[_0x2c8def(0x1eb)],this[_0x2c8def(0x297)]=(_0x2cb95a=_0x3c6fdb[_0x2c8def(0x332)])!=null?_0x2cb95a:this[_0x2c8def(0x297)],this[_0x2c8def(0x1c0)]=(_0x39e395=_0x3c6fdb[_0x2c8def(0x393)])!=null?_0x39e395:this[_0x2c8def(0x1c0)],this['_labelPosition']=(_0x2086a9=_0x3c6fdb['labelPosition'])!=null?_0x2086a9:this[_0x2c8def(0x221)],this['_backgroundColor']=(_0x57982f=_0x3c6fdb[_0x2c8def(0x307)])!=null?_0x57982f:this[_0x2c8def(0x40e)],this[_0x2c8def(0x1c4)]({'width':_0x3c6fdb[_0x2c8def(0x2e5)],'height':_0x3c6fdb[_0x2c8def(0x3bc)]});}[_0x183fa5(0x397)](_0x4ed643){const _0x11ea24=_0x183fa5,{row:_0x3030f9,column:_0x52d6f6}=_0x4ed643;if(_0x3030f9>=this[_0x11ea24(0x297)]['startRow']&&_0x3030f9<=this[_0x11ea24(0x297)]['endRow']&&_0x52d6f6>=this[_0x11ea24(0x297)][_0x11ea24(0x34d)]&&_0x52d6f6<=this[_0x11ea24(0x297)][_0x11ea24(0x299)]){this[_0x11ea24(0x399)]({'hovered':!0x0});return;}this['setShapeProps']({'hovered':!0x1});}[_0x183fa5(0x236)](_0x3fcdf6){return!0x1;}[_0x183fa5(0x28b)](_0x545844){const _0x58e7d9=_0x183fa5;p[_0x58e7d9(0x3d8)]['drawWith'](_0x545844,{'width':this['width'],'height':this['height'],'strokeWidth':mt,'stroke':this[_0x58e7d9(0x252)],'evented':!0x1,'fill':this[_0x58e7d9(0x40e)]}),this[_0x58e7d9(0x1eb)]&&(_0x545844[_0x58e7d9(0x2fc)](),_0x545844['transform'](0x1,0x0,0x0,0x1,this['width'],this[_0x58e7d9(0x221)]===_0x58e7d9(0x331)?0x0:-0x14),ee[_0x58e7d9(0x334)](_0x545844,{'text':this[_0x58e7d9(0x1c0)],'color':this[_0x58e7d9(0x252)]}),_0x545844[_0x58e7d9(0x36c)]());}}var Ct=Object[_0x183fa5(0x255)],pt=(_0xf28422,_0x36e86d,_0x293a0c,_0x14f996)=>{const _0x49efbb=_0x183fa5;for(var _0x11480b=_0x14f996>0x1?void 0x0:_0x14f996?Ct(_0x36e86d,_0x293a0c):_0x36e86d,_0x41f8ac=_0xf28422[_0x49efbb(0x260)]-0x1,_0x4c1cc8;_0x41f8ac>=0x0;_0x41f8ac--)(_0x4c1cc8=_0xf28422[_0x41f8ac])&&(_0x11480b=_0x4c1cc8(_0x11480b)||_0x11480b);return _0x11480b;},ae=(_0x2bfe7c,_0x309ee5)=>(_0x4a8a71,_0x522d61)=>_0x309ee5(_0x4a8a71,_0x522d61,_0x2bfe7c);const bt=0x1389;let ve=class extends a['RxDisposable']{constructor(_0x5e2abb,_0x1e6a89,_0x54b864,_0x26c140){const _0x4e01c3=_0x183fa5;super(),h(this,'_cursors',new Set()),h(this,_0x4e01c3(0x372),null),(this[_0x4e01c3(0x2b2)]=_0x5e2abb,this[_0x4e01c3(0x1fc)]=_0x1e6a89,this[_0x4e01c3(0x30e)]=_0x54b864,this['_themeService']=_0x26c140,this[_0x4e01c3(0x240)]());}[_0x183fa5(0x240)](){const _0x22f058=_0x183fa5;this['_sheetSkeletonManagerService'][_0x22f058(0x327)][_0x22f058(0x213)]($[_0x22f058(0x351)](this[_0x22f058(0x22f)]),$[_0x22f058(0x26c)](_0x5c452d=>{const _0x52cf07=_0x22f058;if(_0x5c452d){const _0x4fdcc6=_0x5c452d[_0x52cf07(0x2d0)];return d[_0x52cf07(0x1d9)](this[_0x52cf07(0x30e)][_0x52cf07(0x1c3)](this['_context'][_0x52cf07(0x34f)]),this[_0x52cf07(0x272)][_0x52cf07(0x3a4)])[_0x52cf07(0x213)]($[_0x52cf07(0x38f)](([_0x492b9c,_0x3729d6])=>{const _0x1e208a=_0x52cf07,_0x32ff73=new Map();return _0x492b9c[_0x1e208a(0x2ae)]((_0x599025,_0x2d053d)=>{const _0x1aa9b8=_0x1e208a;if(_0x599025['sheetID']===_0x4fdcc6){const _0x38ff4b={..._0x599025};_0x38ff4b[_0x1aa9b8(0x2af)]=_0x3729d6[_0x599025['color']],_0x32ff73[_0x1aa9b8(0x279)](_0x2d053d,_0x38ff4b);}}),{'skeleton':_0x5c452d,'cursors':_0x32ff73};}));}return d['of']({'skeleton':null,'cursors':new Map()});}))[_0x22f058(0x24c)](({skeleton:_0x399246,cursors:_0x9e875f})=>{const _0x37ab67=_0x22f058;this[_0x37ab67(0x3ca)](),_0x399246&&this[_0x37ab67(0x1e5)](_0x399246,_0x9e875f);}),this[_0x22f058(0x1fc)][_0x22f058(0x327)]['subscribe'](_0x2995ce=>{const _0x5bc748=_0x22f058;if(_0x2995ce==null)return;const {skeleton:_0x4372b3}=_0x2995ce,{scene:_0x5ac7a7}=this[_0x5bc748(0x2b2)];_0x5ac7a7[_0x5bc748(0x26a)][_0x5bc748(0x3a1)](a[_0x5bc748(0x3be)](_0x5c454c=>{const _0x2cb856=_0x5bc748;var _0x3c115a,_0x58f813;const {offsetX:_0x6a2954,offsetY:_0x5befc3}=_0x5c454c,{x:_0x549ccd,y:_0x1a1863}=_0x5ac7a7['getRelativeToViewportCoord'](p[_0x2cb856(0x263)][_0x2cb856(0x253)]([_0x6a2954,_0x5befc3])),{scaleX:_0x3ba3c0,scaleY:_0x262e40}=_0x5ac7a7[_0x2cb856(0x1fe)](),_0x116d6e=_0x5ac7a7[_0x2cb856(0x389)](p[_0x2cb856(0x312)][_0x2cb856(0x231)]),_0x3f35e8=_0x5ac7a7[_0x2cb856(0x28a)](p['Vector2'][_0x2cb856(0x253)]([_0x549ccd,_0x1a1863]),_0x116d6e),_0x77fd94=_0x4372b3[_0x2cb856(0x2b6)](_0x6a2954,_0x5befc3,_0x3ba3c0,_0x262e40,_0x3f35e8);((_0x3c115a=this['_lastPointer'])==null?void 0x0:_0x3c115a[_0x2cb856(0x20f)])===_0x77fd94[_0x2cb856(0x20f)]&&((_0x58f813=this['_lastPointer'])==null?void 0x0:_0x58f813[_0x2cb856(0x3a7)])===_0x77fd94[_0x2cb856(0x3a7)]||this['_cursors'][_0x2cb856(0x2ae)](_0xd5716e=>{const _0x5f1ae0=_0x2cb856;_0xd5716e[_0x5f1ae0(0x397)](_0x77fd94);});},0x64));});}[_0x183fa5(0x1e5)](_0x528e3e,_0x5d94a1){const _0x4b3fff=_0x183fa5;var _0x3134da;const _0x6a0e45=(_0x3134da=this[_0x4b3fff(0x1fc)][_0x4b3fff(0x337)]())==null?void 0x0:_0x3134da['skeleton'];if(!_0x6a0e45)return;const _0x3a883e=this[_0x4b3fff(0x30f)]();if(!_0x3a883e)return;this[_0x4b3fff(0x25c)]['forEach'](_0xcce07d=>{const _0x5edb13=_0x4b3fff;_0xcce07d[_0x5edb13(0x298)]();});const {scene:_0xa0e30}=_0x3a883e,_0x55b995=Et(Array[_0x4b3fff(0x37b)](_0x5d94a1[_0x4b3fff(0x1f9)]()))[_0x4b3fff(0x38f)](_0x386462=>{const _0x3f2eaa=_0x4b3fff,{color:_0xa7dbd2,range:_0xf784f5,name:_0x1c9623,selection:_0x37aa41,sheetID:_0x537e9d}=_0x386462,{startColumn:_0x40509e,startRow:_0x44e9ad,endColumn:_0x45e7a1,endRow:_0x4ac308}=_0xf784f5,_0x1a38ab=X[_0x3f2eaa(0x336)](_0x44e9ad,_0x40509e,_0xa0e30,_0x6a0e45),_0x45a0cf=X[_0x3f2eaa(0x336)](_0x4ac308,_0x45e7a1,_0xa0e30,_0x6a0e45),{columnHeaderHeightAndMarginTop:_0x6ccbec}=_0x6a0e45,{startX:_0x598aaa,startY:_0x4a5371}=_0x1a38ab,{endX:_0xd7190c,endY:_0x1a9d5d}=_0x45a0cf,_0x4afb3e=_0xd7190c-_0x598aaa,_0x1ffab0=_0x1a9d5d-_0x4a5371,_0x1deda5={'labelPosition':_0x4a5371-_0x6ccbec>=q?_0x3f2eaa(0x1a0):'bottom','sheetID':_0x537e9d,'range':_0xf784f5,'color':_0xa7dbd2,'name':_0x1c9623,'selection':_0x37aa41,'left':_0x598aaa,'top':_0x4a5371,'width':_0x4afb3e,'height':_0x1ffab0,'evented':!0x1,'zIndex':bt};return new we(_0x1c9623,_0x1deda5);});_0xa0e30[_0x4b3fff(0x218)](_0x55b995,gt),this['_cursors']=new Set(_0x55b995);}[_0x183fa5(0x3ca)](){const _0x1e5d52=_0x183fa5;var _0x3c9e79;(_0x3c9e79=this[_0x1e5d52(0x25c)])==null||_0x3c9e79[_0x1e5d52(0x2ae)](_0x538503=>_0x538503['dispose']());}[_0x183fa5(0x30f)](){const _0x5cecde=_0x183fa5;return X[_0x5cecde(0x409)](this[_0x5cecde(0x2b2)]['unit'],this['_context']);}};ve=pt([ae(0x1,a[_0x183fa5(0x3dc)](X['SheetSkeletonManagerService'])),ae(0x2,a[_0x183fa5(0x3dc)](x)),ae(0x3,a['Inject'](a[_0x183fa5(0x341)]))],ve);function Et(_0xe5cd0){const _0x4266ab=_0x183fa5,_0x543aa1=new Map();return _0xe5cd0[_0x4266ab(0x2ae)](_0x49b9ee=>{const _0x37e754=_0x4266ab;if(_0x543aa1[_0x37e754(0x1e3)](_0x49b9ee[_0x37e754(0x359)])){const _0x26ae6f=_0x543aa1[_0x37e754(0x2dc)](_0x49b9ee['selection']);_0x26ae6f[_0x37e754(0x393)]+=',\x20'+_0x49b9ee[_0x37e754(0x393)];}else _0x543aa1[_0x37e754(0x279)](_0x49b9ee[_0x37e754(0x359)],_0x49b9ee);}),Array[_0x4266ab(0x37b)](_0x543aa1['values']());}var E=function(){const _0x2d7cc2=_0x183fa5;return E=Object[_0x2d7cc2(0x3f7)]||function(_0x56e703){const _0x544184=_0x2d7cc2;for(var _0x1fd305,_0x4b9f36=0x1,_0xedca92=arguments['length'];_0x4b9f36<_0xedca92;_0x4b9f36++){_0x1fd305=arguments[_0x4b9f36];for(var _0x158953 in _0x1fd305)Object[_0x544184(0x1f7)][_0x544184(0x238)][_0x544184(0x24b)](_0x1fd305,_0x158953)&&(_0x56e703[_0x158953]=_0x1fd305[_0x158953]);}return _0x56e703;},E[_0x2d7cc2(0x1fd)](this,arguments);},Tt=function(_0x211fd2,_0x19bee5){const _0x1e740b=_0x183fa5;var _0x3647e7={};for(var _0x453dea in _0x211fd2)Object[_0x1e740b(0x1f7)]['hasOwnProperty'][_0x1e740b(0x24b)](_0x211fd2,_0x453dea)&&_0x19bee5[_0x1e740b(0x23d)](_0x453dea)<0x0&&(_0x3647e7[_0x453dea]=_0x211fd2[_0x453dea]);if(_0x211fd2!=null&&typeof Object[_0x1e740b(0x2f3)]==_0x1e740b(0x1e4)){for(var _0xa35888=0x0,_0x453dea=Object[_0x1e740b(0x2f3)](_0x211fd2);_0xa35888<_0x453dea[_0x1e740b(0x260)];_0xa35888++)_0x19bee5[_0x1e740b(0x23d)](_0x453dea[_0xa35888])<0x0&&Object[_0x1e740b(0x1f7)][_0x1e740b(0x289)][_0x1e740b(0x24b)](_0x211fd2,_0x453dea[_0xa35888])&&(_0x3647e7[_0x453dea[_0xa35888]]=_0x211fd2[_0x453dea[_0xa35888]]);}return _0x3647e7;},pe=M[_0x183fa5(0x356)](function(_0x3b0289,_0x1f224d){const _0x4697e8=_0x183fa5;var _0x44b79a=_0x3b0289['icon'],_0x3c88f5=_0x3b0289['id'],_0x5a9a13=_0x3b0289[_0x4697e8(0x2d5)],_0x4d040d=_0x3b0289[_0x4697e8(0x207)],_0x307df2=Tt(_0x3b0289,[_0x4697e8(0x392),'id','className',_0x4697e8(0x207)]),_0x3caa70=_0x4697e8(0x317)[_0x4697e8(0x3d5)](_0x3c88f5,'\x20')['concat'](_0x5a9a13||'')['trim'](),_0x1b7faa=M[_0x4697e8(0x261)]('_'['concat'](Dt()));return Ae(_0x44b79a,''[_0x4697e8(0x3d5)](_0x3c88f5),{'defIds':_0x44b79a[_0x4697e8(0x3cd)],'idSuffix':_0x1b7faa[_0x4697e8(0x2c4)]},E({'ref':_0x1f224d,'className':_0x3caa70},_0x307df2),_0x4d040d);});function Ae(_0x4a9edc,_0x258502,_0x4f22b8,_0x19e5fd,_0x353d52){const _0x42f0e2=_0x183fa5;return M[_0x42f0e2(0x257)](_0x4a9edc['tag'],E(E({'key':_0x258502},Ot(_0x4a9edc,_0x4f22b8,_0x353d52)),_0x19e5fd),(Rt(_0x4a9edc,_0x4f22b8)['children']||[])[_0x42f0e2(0x38f)](function(_0x12bd5f,_0x1d433d){const _0x449c85=_0x42f0e2;return Ae(_0x12bd5f,''[_0x449c85(0x3d5)](_0x258502,'-')[_0x449c85(0x3d5)](_0x4a9edc[_0x449c85(0x3a6)],'-')[_0x449c85(0x3d5)](_0x1d433d),_0x4f22b8,void 0x0,_0x353d52);}));}function Ot(_0x3cf932,_0x46fdbc,_0x48b110){const _0x566f32=_0x183fa5;var _0x343b17=E({},_0x3cf932[_0x566f32(0x385)]);_0x48b110!=null&&_0x48b110[_0x566f32(0x1ef)]&&_0x343b17['fill']===_0x566f32(0x1ef)&&(_0x343b17['fill']=_0x48b110[_0x566f32(0x1ef)]),_0x3cf932[_0x566f32(0x3a6)]===_0x566f32(0x247)&&_0x343b17['id']&&(_0x343b17['id']=_0x343b17['id']+_0x46fdbc[_0x566f32(0x35e)]),Object['entries'](_0x343b17)[_0x566f32(0x2ae)](function(_0x20c300){const _0x2f2f73=_0x566f32;var _0x477b5e=_0x20c300[0x0],_0x242a99=_0x20c300[0x1];_0x477b5e===_0x2f2f73(0x247)&&typeof _0x242a99==_0x2f2f73(0x2fb)&&(_0x343b17[_0x477b5e]=_0x242a99[_0x2f2f73(0x2a2)](/url\(#(.*)\)/,_0x2f2f73(0x3ba)[_0x2f2f73(0x3d5)](_0x46fdbc[_0x2f2f73(0x35e)],')')));});var _0x47f3f8=_0x46fdbc['defIds'];return!_0x47f3f8||_0x47f3f8[_0x566f32(0x260)]===0x0||(_0x3cf932['tag']==='use'&&_0x343b17['xlink:href']&&(_0x343b17['xlink:href']=_0x343b17['xlink:href']+_0x46fdbc['idSuffix']),Object['entries'](_0x343b17)[_0x566f32(0x2ae)](function(_0x4b920e){const _0x3fe57e=_0x566f32;var _0x59abc2=_0x4b920e[0x0],_0x3b584b=_0x4b920e[0x1];typeof _0x3b584b=='string'&&(_0x343b17[_0x59abc2]=_0x3b584b[_0x3fe57e(0x2a2)](/url\(#(.*)\)/,_0x3fe57e(0x3ba)[_0x3fe57e(0x3d5)](_0x46fdbc[_0x3fe57e(0x35e)],')')));})),_0x343b17;}function Rt(_0x27bb20,_0x5f1267){const _0x578e73=_0x183fa5;var _0x1546b6,_0x309160=_0x5f1267[_0x578e73(0x3cd)];return!_0x309160||_0x309160[_0x578e73(0x260)]===0x0?_0x27bb20:_0x27bb20[_0x578e73(0x3a6)]===_0x578e73(0x290)&&(!((_0x1546b6=_0x27bb20[_0x578e73(0x2c0)])===null||_0x1546b6===void 0x0)&&_0x1546b6[_0x578e73(0x260)])?E(E({},_0x27bb20),{'children':_0x27bb20[_0x578e73(0x2c0)][_0x578e73(0x38f)](function(_0x7dc4a){const _0x4ea5f8=_0x578e73;return typeof _0x7dc4a[_0x4ea5f8(0x385)]['id']==_0x4ea5f8(0x2fb)&&_0x309160&&_0x309160[_0x4ea5f8(0x23d)](_0x7dc4a[_0x4ea5f8(0x385)]['id'])>-0x1?E(E({},_0x7dc4a),{'attrs':E(E({},_0x7dc4a[_0x4ea5f8(0x385)]),{'id':_0x7dc4a[_0x4ea5f8(0x385)]['id']+_0x5f1267[_0x4ea5f8(0x35e)]})}):_0x7dc4a;})}):_0x27bb20;}function Dt(){const _0x10cde5=_0x183fa5;return Math[_0x10cde5(0x23c)]()[_0x10cde5(0x1c7)](0x24)[_0x10cde5(0x369)](0x2,0x8);}pe[_0x183fa5(0x3d4)]=_0x183fa5(0x27a);var Ut={'tag':_0x183fa5(0x308),'attrs':{'fill':_0x183fa5(0x256),'viewBox':'0\x200\x2016\x2016','width':_0x183fa5(0x1a9),'height':_0x183fa5(0x1a9)},'children':[{'tag':'g','attrs':{'clipPath':_0x183fa5(0x1cf)},'children':[{'tag':_0x183fa5(0x227),'attrs':{'stroke':_0x183fa5(0x33e),'d':_0x183fa5(0x3bd),'strokeLinecap':_0x183fa5(0x2b4),'strokeLinejoin':_0x183fa5(0x2b4),'strokeWidth':1.2}}]},{'tag':_0x183fa5(0x290),'attrs':{},'children':[{'tag':_0x183fa5(0x2bc),'attrs':{'id':_0x183fa5(0x321)},'children':[{'tag':_0x183fa5(0x227),'attrs':{'fill':_0x183fa5(0x216),'d':_0x183fa5(0x1ba)}}]}]}],'defIds':['off-line-single_clip0_910_343']},ye=M[_0x183fa5(0x356)](function(_0x4bac61,_0x2954c0){const _0x41f51d=_0x183fa5;return M[_0x41f51d(0x257)](pe,Object[_0x41f51d(0x3f7)]({},_0x4bac61,{'id':_0x41f51d(0x2cb),'ref':_0x2954c0,'icon':Ut}));});ye[_0x183fa5(0x3d4)]='OffLineSingle';var Nt={'tag':_0x183fa5(0x308),'attrs':{'fill':_0x183fa5(0x256),'viewBox':_0x183fa5(0x1f6),'width':'1em','height':'1em'},'children':[{'tag':'g','attrs':{'clipPath':_0x183fa5(0x2f8)},'children':[{'tag':_0x183fa5(0x227),'attrs':{'stroke':_0x183fa5(0x33e),'d':_0x183fa5(0x2f1),'strokeLinecap':_0x183fa5(0x2b4),'strokeLinejoin':_0x183fa5(0x2b4),'strokeWidth':1.2}}]},{'tag':_0x183fa5(0x290),'attrs':{},'children':[{'tag':_0x183fa5(0x2bc),'attrs':{'id':_0x183fa5(0x19e)},'children':[{'tag':'path','attrs':{'fill':_0x183fa5(0x216),'d':_0x183fa5(0x1ba),'transform':'translate(.97)'}}]}]}],'defIds':['on-line-single_clip0_910_349']},$e=M['forwardRef'](function(_0x501c48,_0x4bb884){const _0x556042=_0x183fa5;return M['createElement'](pe,Object[_0x556042(0x3f7)]({},_0x501c48,{'id':_0x556042(0x239),'ref':_0x4bb884,'icon':Nt}));});$e[_0x183fa5(0x3d4)]=_0x183fa5(0x19a);function Mt(_0x2318a3){const _0x1cc6da=_0x183fa5;switch(_0x2318a3){case u[_0x1cc6da(0x3f2)][_0x1cc6da(0x386)]:return _0x1cc6da(0x1de);case u[_0x1cc6da(0x3f2)][_0x1cc6da(0x319)]:return'collabStatus.conflict';case u[_0x1cc6da(0x3f2)][_0x1cc6da(0x2ce)]:return'collabStatus.fetchMiss';case u[_0x1cc6da(0x3f2)]['NOT_COLLAB']:return _0x1cc6da(0x223);case u[_0x1cc6da(0x3f2)]['AWAITING']:case u[_0x1cc6da(0x3f2)][_0x1cc6da(0x3f8)]:return'collabStatus.syncing';case u['CollaborationStatus'][_0x1cc6da(0x3c0)]:case u['CollaborationStatus'][_0x1cc6da(0x2ff)]:return'collabStatus.synced';}}function _0x5188(_0x1716af,_0x265837){const _0x18b133=_0x18b1();return _0x5188=function(_0x51889b,_0x46a687){_0x51889b=_0x51889b-0x199;let _0x13a5cb=_0x18b133[_0x51889b];return _0x13a5cb;},_0x5188(_0x1716af,_0x265837);}function xe(_0x352ed7){const _0x1edb79=_0x183fa5,{status$:_0x3056ef}=_0x352ed7,_0x25f721=T[_0x1edb79(0x1d4)](_0x3056ef,u['CollaborationStatus'][_0x1edb79(0x2d2)]),_0x518a2a=T['useDependency'](a[_0x1edb79(0x3d2)]),_0x1225d5=T['useDependency'](u[_0x1edb79(0x208)]),_0x1dff1c=_0x25f721!==u[_0x1edb79(0x3f2)][_0x1edb79(0x386)],_0x2b1838=_0x518a2a['t'](Mt(_0x25f721)),_0x1b3285=_0x1dff1c?P[_0x1edb79(0x1f0)]($e,{}):P[_0x1edb79(0x1f0)](ye,{}),_0x2ab2dd=M['useCallback'](()=>{_0x1dff1c||_0x1225d5['reconnect']();},[_0x1dff1c,_0x1225d5]);function _0x13cbd7(){const _0x3ff7d9=_0x1edb79;return P[_0x3ff7d9(0x296)]('div',{'className':_0x3ff7d9(0x1ed),'onClick':_0x2ab2dd,'children':[P[_0x3ff7d9(0x1f0)]('div',{'className':D[_0x3ff7d9(0x24f)](_0x3ff7d9(0x23a),_0x1dff1c?'univer-text-green-500':'univer-text-red-500'),'children':_0x1b3285}),P[_0x3ff7d9(0x1f0)]('div',{'className':_0x3ff7d9(0x1f5),'children':_0x2b1838})]});}return _0x1dff1c?_0x13cbd7():P[_0x1edb79(0x1f0)](D[_0x1edb79(0x2a5)],{'title':_0x518a2a['t'](_0x1edb79(0x237)),'children':_0x13cbd7()});}var Lt=Object[_0x183fa5(0x255)],Pt=(_0x5a67b2,_0x6890ab,_0x4eb9d9,_0x1e5884)=>{for(var _0x446665=_0x1e5884>0x1?void 0x0:_0x1e5884?Lt(_0x6890ab,_0x4eb9d9):_0x6890ab,_0x578cac=_0x5a67b2['length']-0x1,_0x4ab55c;_0x578cac>=0x0;_0x578cac--)(_0x4ab55c=_0x5a67b2[_0x578cac])&&(_0x446665=_0x4ab55c(_0x446665)||_0x446665);return _0x446665;},V=(_0x294b25,_0x2ffe71)=>(_0xccb1f7,_0x58d9f3)=>_0x2ffe71(_0xccb1f7,_0x58d9f3,_0x294b25);exports[_0x183fa5(0x222)]=class extends a['Disposable']{constructor(_0x5e4ea4,_0x5a57b6,_0x3d4c83,_0x4efc19){const _0x3f3f69=_0x183fa5;super(),h(this,_0x3f3f69(0x374),new d['BehaviorSubject'](u[_0x3f3f69(0x3f2)][_0x3f3f69(0x2d2)])),(this[_0x3f3f69(0x28f)]=_0x5e4ea4,this[_0x3f3f69(0x20a)]=_0x5a57b6,this[_0x3f3f69(0x293)]=_0x3d4c83,this[_0x3f3f69(0x2dd)]=_0x4efc19,this[_0x3f3f69(0x2a8)](),this[_0x3f3f69(0x2c7)]());}[_0x183fa5(0x2c7)](){const _0x5ab8ce=_0x183fa5;this[_0x5ab8ce(0x220)](this[_0x5ab8ce(0x28f)][_0x5ab8ce(0x1b9)][_0x5ab8ce(0x213)](d[_0x5ab8ce(0x26c)](()=>{const _0x21eec6=_0x5ab8ce,_0x1e2442=this['_univerInstanceService']['getFocusedUnit']();return _0x1e2442?this[_0x21eec6(0x293)]['getCollabEntity$'](_0x1e2442[_0x21eec6(0x3bf)]()):d['of'](null);}),d[_0x5ab8ce(0x26c)](_0x2e56c8=>_0x2e56c8?_0x2e56c8['status$']:d['of'](u['CollaborationStatus'][_0x5ab8ce(0x2d2)])))['subscribe'](_0x15bc06=>{const _0xd08e90=_0x5ab8ce;this[_0xd08e90(0x374)]['next'](_0x15bc06);}));}[_0x183fa5(0x2a8)](){const _0x4e69d4=_0x183fa5;this[_0x4e69d4(0x220)](this[_0x4e69d4(0x2dd)][_0x4e69d4(0x403)](T[_0x4e69d4(0x23b)][_0x4e69d4(0x26b)],()=>T[_0x4e69d4(0x362)](wt({'status$':this['_status$'][_0x4e69d4(0x31c)]()}),this[_0x4e69d4(0x20a)])));}},exports['DesktopCollaborationStatusDisplayController']=Pt([V(0x0,a[_0x183fa5(0x33a)]),V(0x1,a[_0x183fa5(0x3dc)](a[_0x183fa5(0x2e1)])),V(0x2,a['Inject'](u[_0x183fa5(0x270)])),V(0x3,T['IUIPartsService'])],exports[_0x183fa5(0x222)]);function wt(_0x5acaa7){const {status$:_0x309000}=_0x5acaa7;return function(){const _0x41dba2=_0x5188;return P[_0x41dba2(0x1f0)](xe,{'status$':_0x309000});};}var At=Object[_0x183fa5(0x255)],yt=(_0x2b2ebf,_0x273d47,_0x4311f0,_0x165b0c)=>{const _0x517755=_0x183fa5;for(var _0x250982=_0x165b0c>0x1?void 0x0:_0x165b0c?At(_0x273d47,_0x4311f0):_0x273d47,_0x3e678d=_0x2b2ebf[_0x517755(0x260)]-0x1,_0x2608d1;_0x3e678d>=0x0;_0x3e678d--)(_0x2608d1=_0x2b2ebf[_0x3e678d])&&(_0x250982=_0x2608d1(_0x250982)||_0x250982);return _0x250982;},y=(_0x9c294a,_0x55f8ff)=>(_0x3a16ef,_0x3364f2)=>_0x55f8ff(_0x3a16ef,_0x3364f2,_0x9c294a);let K=class extends a[_0x183fa5(0x3ec)]{constructor(_0x2d9b37,_0x57c88c,_0x3d4a37,_0x1b2a51,_0xa9e73,_0x4dcbb0){const _0x29dcac=_0x183fa5;super(),this[_0x29dcac(0x20e)]=_0x2d9b37,this[_0x29dcac(0x285)]=_0x57c88c,this[_0x29dcac(0x378)]=_0x3d4a37,this[_0x29dcac(0x19f)]=_0x1b2a51,this['_notificationService']=_0xa9e73,this[_0x29dcac(0x377)]=_0x4dcbb0,this[_0x29dcac(0x282)](),this[_0x29dcac(0x32a)]();}['_setupBeforeClosingHandler'](){const _0x345165=_0x183fa5;this[_0x345165(0x220)](this['_beforeCloseService'][_0x345165(0x287)](()=>{const _0x835b53=_0x345165;if(this[_0x835b53(0x285)][_0x835b53(0x2d3)][_0x835b53(0x36e)])return this[_0x835b53(0x377)]['t'](_0x835b53(0x391));}));}[_0x183fa5(0x32a)](){const _0x5eee8e=_0x183fa5;this[_0x5eee8e(0x220)](this[_0x5eee8e(0x378)][_0x5eee8e(0x2f6)][_0x5eee8e(0x24c)](_0x471384=>{const _0x5aa28b=_0x5eee8e;_0x471384['id']===u[_0x5aa28b(0x2a3)][_0x5aa28b(0x1b5)]&&this[_0x5aa28b(0x19f)][_0x5aa28b(0x19d)]({'type':D['MessageType']['Warning'],'content':this[_0x5aa28b(0x377)]['t']('collaboration.single-unit.warning')}),_0x471384['id']===u[_0x5aa28b(0x2a3)][_0x5aa28b(0x202)]&&this[_0x5aa28b(0x19f)][_0x5aa28b(0x19d)]({'type':D[_0x5aa28b(0x370)]['Warning'],'content':this[_0x5aa28b(0x377)]['t'](_0x5aa28b(0x1d1))}),_0x471384['id']===u[_0x5aa28b(0x2a3)]['PERMISSION_DENIED']&&this[_0x5aa28b(0x3e4)][_0x5aa28b(0x19d)]({'title':this[_0x5aa28b(0x377)]['t'](_0x5aa28b(0x264)),'content':this[_0x5aa28b(0x377)]['t'](_0x5aa28b(0x2fe)),'type':_0x5aa28b(0x1b6),'duration':0x0}),_0x471384['id']===u[_0x5aa28b(0x2a3)][_0x5aa28b(0x319)]&&this[_0x5aa28b(0x19f)][_0x5aa28b(0x19d)]({'type':D[_0x5aa28b(0x370)][_0x5aa28b(0x39a)],'content':this[_0x5aa28b(0x377)]['t'](_0x5aa28b(0x1d1))+'('+_0x471384[_0x5aa28b(0x1ac)]+')'}),_0x471384['id']===u['CollaborationUIEventId'][_0x5aa28b(0x3bb)]&&this[_0x5aa28b(0x19f)][_0x5aa28b(0x19d)]({'type':D['MessageType'][_0x5aa28b(0x206)],'content':this[_0x5aa28b(0x377)]['t'](_0x471384[_0x5aa28b(0x1ac)]||'')}),_0x471384['id']===u['CollaborationUIEventId'][_0x5aa28b(0x3ff)]&&this[_0x5aa28b(0x19f)][_0x5aa28b(0x19d)]({'type':D[_0x5aa28b(0x370)][_0x5aa28b(0x206)],'content':this['_localeService']['t'](_0x5aa28b(0x204))}),_0x471384['id']===u[_0x5aa28b(0x2a3)][_0x5aa28b(0x343)]&&this[_0x5aa28b(0x19f)][_0x5aa28b(0x19d)]({'type':D[_0x5aa28b(0x370)]['Error'],'content':this[_0x5aa28b(0x377)]['t']('session.connection-failed')}),_0x471384['id']===u[_0x5aa28b(0x2a3)]['SUBMIT_CHANGESET_TIMEOUT']&&this[_0x5aa28b(0x19f)]['show']({'type':D['MessageType'][_0x5aa28b(0x39a)],'content':this[_0x5aa28b(0x377)]['t'](_0x5aa28b(0x3ef))});}));}};K=yt([y(0x0,T[_0x183fa5(0x20c)]),y(0x1,u['ILocalCacheService']),y(0x2,a[_0x183fa5(0x3dc)](u[_0x183fa5(0x333)])),y(0x3,T[_0x183fa5(0x200)]),y(0x4,T[_0x183fa5(0x37a)]),y(0x5,a['Inject'](a[_0x183fa5(0x3d2)]))],K);const $t=_0x183fa5(0x1a2),Ue={},be=a[_0x183fa5(0x40c)]('uni.network.url-service');var xt=Object[_0x183fa5(0x255)],jt=(_0x546ccb,_0x315d32,_0x417430,_0x4baa0e)=>{const _0x71dcff=_0x183fa5;for(var _0x132d74=_0x4baa0e>0x1?void 0x0:_0x4baa0e?xt(_0x315d32,_0x417430):_0x315d32,_0x1c92e3=_0x546ccb[_0x71dcff(0x260)]-0x1,_0x23e82f;_0x1c92e3>=0x0;_0x1c92e3--)(_0x23e82f=_0x546ccb[_0x1c92e3])&&(_0x132d74=_0x23e82f(_0x132d74)||_0x132d74);return _0x132d74;},H=(_0x44be2a,_0x244e85)=>(_0x3a1aec,_0x2729a6)=>_0x244e85(_0x3a1aec,_0x2729a6,_0x44be2a);exports[_0x183fa5(0x1c6)]=class extends a[_0x183fa5(0x3b8)]{constructor(_0x573ae7,_0x1b7ebc,_0x211daa,_0x402888,_0x26507f){const _0x315e97=_0x183fa5;super(),this[_0x315e97(0x350)]=_0x573ae7,this['_logService']=_0x1b7ebc,this['_commandService']=_0x211daa,this[_0x315e97(0x26d)]=_0x402888,_0x26507f?_0x26507f==null||_0x26507f['whenReady']()[_0x315e97(0x3eb)](()=>this[_0x315e97(0x240)]()):(this['_logService'][_0x315e97(0x37f)](_0x315e97(0x1a6),_0x315e97(0x306)),this[_0x315e97(0x240)]());}async[_0x183fa5(0x240)](){const _0x3ada59=_0x183fa5,_0x437a40=this['_urlService']['getParam'](_0x3ada59(0x3b9)),_0x2894a2=this['_urlService'][_0x3ada59(0x262)](_0x3ada59(0x2c9)),_0x5a1c0a=this[_0x3ada59(0x350)][_0x3ada59(0x262)](_0x3ada59(0x381));if(!_0x437a40||!_0x2894a2){this[_0x3ada59(0x209)][_0x3ada59(0x37f)](_0x3ada59(0x1a6),_0x3ada59(0x3ab));return;}const _0x1e6713=await this[_0x3ada59(0x26d)][_0x3ada59(0x36d)](_0x437a40,Number(_0x2894a2),_0x5a1c0a);_0x1e6713&&_0x1e6713 instanceof a['Workbook']&&this[_0x3ada59(0x31a)](_0x1e6713);}async[_0x183fa5(0x31a)](_0x568014){const _0x30279d=_0x183fa5;await this[_0x30279d(0x38e)](_0x568014),_0x568014['activeSheet$'][_0x30279d(0x213)](d[_0x30279d(0x351)](this[_0x30279d(0x22f)]))[_0x30279d(0x24c)](_0x533126=>{const _0x8826b3=_0x30279d;_0x533126&&this[_0x8826b3(0x353)](_0x533126);}),this[_0x30279d(0x350)][_0x30279d(0x2c5)][_0x30279d(0x213)](d['takeUntil'](this['dispose$']))[_0x30279d(0x24c)](()=>this[_0x30279d(0x38e)](_0x568014));}[_0x183fa5(0x353)](_0x1a8aec,_0x55828a=!0x1){const _0x1bfb32=_0x183fa5,_0x5e0b65=this[_0x1bfb32(0x350)][_0x1bfb32(0x262)](_0x1bfb32(0x381));_0x1a8aec[_0x1bfb32(0x1d2)]()!==_0x5e0b65&&this[_0x1bfb32(0x350)][_0x1bfb32(0x3a0)](_0x1bfb32(0x381),_0x1a8aec[_0x1bfb32(0x1d2)](),_0x55828a);}async[_0x183fa5(0x38e)](_0x17cf6b){const _0xbafdd1=_0x183fa5;var _0x2f63b6;const _0x4a993a=this[_0xbafdd1(0x350)][_0xbafdd1(0x262)](_0xbafdd1(0x381));if(!_0x4a993a||!_0x17cf6b['getSheetBySheetId'](_0x4a993a)){const _0x503b70=_0x17cf6b['getUnhiddenWorksheets']()[0x0],_0x1e47ab=_0x17cf6b['getSheetBySheetId'](_0x503b70);if(!_0x1e47ab)return;this['_updateURLWithCurrentState'](_0x1e47ab,!0x0),await this['_commandService'][_0xbafdd1(0x2ee)](g[_0xbafdd1(0x1e9)]['id'],{'unitId':_0x17cf6b['getUnitId'](),'subUnitId':_0x503b70});return;}((_0x2f63b6=_0x17cf6b['getActiveSheet']())==null?void 0x0:_0x2f63b6[_0xbafdd1(0x1d2)]())!==_0x4a993a&&await this['_commandService']['executeCommand'](g[_0xbafdd1(0x1e9)]['id'],{'unitId':_0x17cf6b[_0xbafdd1(0x3bf)](),'subUnitId':_0x4a993a});}},exports[_0x183fa5(0x1c6)]=jt([H(0x0,be),H(0x1,a['ILogService']),H(0x2,a[_0x183fa5(0x3fb)]),H(0x3,a['Inject'](u[_0x183fa5(0x398)])),H(0x4,a['Optional'](qe['IRemoteInstanceService']))],exports[_0x183fa5(0x1c6)]);var Bt=Object[_0x183fa5(0x255)],kt=(_0x5655c7,_0x2131f3,_0x2c6da1,_0x419846)=>{const _0x2276fd=_0x183fa5;for(var _0x534545=_0x419846>0x1?void 0x0:_0x419846?Bt(_0x2131f3,_0x2c6da1):_0x2131f3,_0x510881=_0x5655c7[_0x2276fd(0x260)]-0x1,_0x26e02f;_0x510881>=0x0;_0x510881--)(_0x26e02f=_0x5655c7[_0x510881])&&(_0x534545=_0x26e02f(_0x534545)||_0x534545);return _0x534545;},ce=(_0x4a7127,_0x162a86)=>(_0xd7365a,_0x59ce69)=>_0x162a86(_0xd7365a,_0x59ce69,_0x4a7127);let z=class{constructor(_0x11fb22,_0x313ade,_0x13bad8){const _0x4b7c8e=_0x183fa5;this[_0x4b7c8e(0x20a)]=_0x11fb22,this['_transformService']=_0x313ade,this[_0x4b7c8e(0x2ad)]=_0x13bad8;}[_0x183fa5(0x2bd)](_0x4f194b){const _0x5e02a2=_0x183fa5;this[_0x5e02a2(0x1d7)](_0x4f194b),this['_transformPreviousActiveRange'](_0x4f194b);}[_0x183fa5(0x233)](_0x212dc6){const _0x32f907=_0x183fa5,{unitID:_0x492352}=_0x212dc6,_0x4571d8=this[_0x32f907(0x2ad)][_0x32f907(0x246)](_0x492352)[_0x32f907(0x265)](b[_0x32f907(0x1a3)]),{redoCache:_0x4349d3}=_0x4571d8[_0x32f907(0x339)]();if(_0x4349d3[_0x32f907(0x260)]===0x0)return _0x212dc6;let _0x317796=a[_0x32f907(0x2e2)][_0x32f907(0x3ea)](_0x212dc6[_0x32f907(0x1ff)][0x0]);for(let _0x5ebcbc=0x0;_0x5ebcbc<_0x4349d3[_0x32f907(0x260)];_0x5ebcbc++){const _0x12e2b1={'id':_0x32f907(0x300),'params':{..._0x4349d3[_0x5ebcbc]}},_0x36579b=this['_transformService'][_0x32f907(0x2e7)](_0x317796,_0x12e2b1,!0x1);if(m['isTransformMutationFailure'](_0x36579b))throw _0x36579b['error'];_0x317796=_0x36579b[_0x32f907(0x229)];}return{...a[_0x32f907(0x2e2)][_0x32f907(0x3ea)](_0x212dc6),'mutations':[_0x317796]};}['_transformUndoRedoStack'](_0x51df0b){const _0x2c41e3=_0x183fa5,{unitID:_0x226874}=_0x51df0b,_0x5e2421=this[_0x2c41e3(0x2ad)][_0x2c41e3(0x246)](_0x226874)[_0x2c41e3(0x265)](b[_0x2c41e3(0x1a3)]),{undoCache:_0x42b3ef,redoCache:_0xa088bd}=_0x5e2421['getUndoRedoMutationParamsCache']();if(_0x42b3ef[_0x2c41e3(0x260)]===0x0||_0xa088bd[_0x2c41e3(0x260)]===0x0)return;const _0x1c7b16=[],_0x92f64=[];let _0x291dae=a[_0x2c41e3(0x2e2)][_0x2c41e3(0x3ea)](_0x51df0b['mutations'][0x0]),_0x411cf9=a[_0x2c41e3(0x2e2)][_0x2c41e3(0x3ea)](_0x51df0b[_0x2c41e3(0x1ff)][0x0]);for(let _0x5f59f9=_0x42b3ef[_0x2c41e3(0x260)]-0x1;_0x5f59f9>=0x0;_0x5f59f9--){const _0x1b7219={'id':'doc.mutation.rich-text-editing','params':{..._0x42b3ef[_0x5f59f9]}},_0x5ed917={'id':'doc.mutation.rich-text-editing','params':{..._0xa088bd[_0x5f59f9]}},_0x2bd845=this[_0x2c41e3(0x346)]['transformMutation'](_0x291dae,_0x1b7219,!0x1),_0xfeee80=this[_0x2c41e3(0x346)][_0x2c41e3(0x2e7)](_0x411cf9,_0x5ed917,!0x1);if(m[_0x2c41e3(0x1d3)](_0x2bd845))throw _0x2bd845[_0x2c41e3(0x1b6)];if(m[_0x2c41e3(0x1d3)](_0xfeee80))throw _0xfeee80[_0x2c41e3(0x1b6)];_0x1c7b16[_0x2c41e3(0x2e4)](_0x2bd845[_0x2c41e3(0x29c)][_0x2c41e3(0x1c1)]),_0x92f64[_0x2c41e3(0x2e4)](_0xfeee80['m2Prime'][_0x2c41e3(0x1c1)]),_0x291dae=_0x2bd845['m1Prime'],_0x411cf9=_0xfeee80[_0x2c41e3(0x229)];}_0x5e2421[_0x2c41e3(0x301)]({'undoCache':_0x1c7b16,'redoCache':_0x92f64});}[_0x183fa5(0x1d6)](_0x82a91e){const _0x3bd8ce=_0x183fa5,{unitID:_0x3088d0}=_0x82a91e,_0x4ad1d9=this[_0x3bd8ce(0x2ad)][_0x3bd8ce(0x246)](_0x3088d0)['with'](b[_0x3bd8ce(0x1a3)]),_0x1b8366=_0x4ad1d9[_0x3bd8ce(0x205)]();if(_0x1b8366==null)return;const _0x2c9b4f=[{'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x82a91e[_0x3bd8ce(0x1b7)],'actions':null,'textRanges':[_0x1b8366]}}],_0x15a0f9=this[_0x3bd8ce(0x346)][_0x3bd8ce(0x303)](_0x82a91e,_0x2c9b4f);if(!m['isTransformMutationsWithChangesetSuccess'](_0x15a0f9))throw _0x15a0f9[_0x3bd8ce(0x1b6)];const _0x207671=_0x15a0f9[_0x3bd8ce(0x29c)][0x0][_0x3bd8ce(0x1c1)][_0x3bd8ce(0x1ab)];Array['isArray'](_0x207671)&&_0x207671[_0x3bd8ce(0x260)]&&_0x4ad1d9['setActiveRange'](_0x207671[0x0]);}};z=kt([ce(0x0,a[_0x183fa5(0x3dc)](a[_0x183fa5(0x2e1)])),ce(0x1,m[_0x183fa5(0x20b)]),ce(0x2,p[_0x183fa5(0x1ce)])],z);var Ht=Object['getOwnPropertyDescriptor'],Ft=(_0x4eca99,_0x197047,_0x8f17cc,_0x5d09e3)=>{const _0x13d2c1=_0x183fa5;for(var _0x1e5c20=_0x5d09e3>0x1?void 0x0:_0x5d09e3?Ht(_0x197047,_0x8f17cc):_0x197047,_0x509795=_0x4eca99[_0x13d2c1(0x260)]-0x1,_0x4c537d;_0x509795>=0x0;_0x509795--)(_0x4c537d=_0x4eca99[_0x509795])&&(_0x1e5c20=_0x4c537d(_0x1e5c20)||_0x1e5c20);return _0x1e5c20;},le=(_0x2e99cd,_0x51f792)=>(_0x5a7b7b,_0x587e07)=>_0x51f792(_0x5a7b7b,_0x587e07,_0x2e99cd);let J=class{constructor(_0x5e8656,_0x25e3c2,_0x63c37a){const _0x2ddcd3=_0x183fa5;this['_injector']=_0x5e8656,this['_transformService']=_0x25e3c2,this[_0x2ddcd3(0x3d3)]=_0x63c37a;}['transformStateCache'](_0x2fea1f){const _0x203e84=_0x183fa5;this[_0x203e84(0x325)](_0x2fea1f);}[_0x183fa5(0x233)](_0x548817){const _0x481b08=_0x183fa5,{unitID:_0x6852ba}=_0x548817,{collaboration:_0x4fb3a0}=this[_0x481b08(0x3d3)][_0x481b08(0x1bf)](_0x6852ba);if(_0x4fb3a0[_0x481b08(0x260)]===0x0)return _0x548817;let _0x198b8d=a['Tools'][_0x481b08(0x3ea)](_0x548817['mutations'][0x0]);for(let _0x3234aa=0x0;_0x3234aa<_0x4fb3a0[_0x481b08(0x260)];_0x3234aa++){const _0x25e7cb={'id':_0x481b08(0x300),'params':{'unitId':_0x4fb3a0[_0x3234aa][_0x481b08(0x34f)],..._0x4fb3a0[_0x3234aa]['redoState']}},_0x43e0c5=this[_0x481b08(0x346)][_0x481b08(0x2e7)](_0x198b8d,_0x25e7cb,!0x1);if(m['isTransformMutationFailure'](_0x43e0c5))throw _0x43e0c5[_0x481b08(0x1b6)];_0x198b8d=_0x43e0c5['m1Prime'];}return{...a[_0x481b08(0x2e2)]['deepClone'](_0x548817),'mutations':[_0x198b8d]};}[_0x183fa5(0x325)](_0xd9b742){const _0xee88d3=_0x183fa5,{unitID:_0x3acc66}=_0xd9b742,{history:_0x258460,collaboration:_0x1ab853}=this[_0xee88d3(0x3d3)][_0xee88d3(0x1bf)](_0x3acc66);if(_0x258460[_0xee88d3(0x260)]===0x0&&_0x1ab853[_0xee88d3(0x260)]===0x0)return;const _0x229eb1=[],_0xce7456=[];let _0x3a6721=a[_0xee88d3(0x2e2)]['deepClone'](_0xd9b742['mutations'][0x0]),_0x3c45d5=a[_0xee88d3(0x2e2)][_0xee88d3(0x3ea)](_0xd9b742[_0xee88d3(0x1ff)][0x0]);for(let _0xc56861=_0x258460['length']-0x1;_0xc56861>=0x0;_0xc56861--){const _0xbf5578={'id':_0xee88d3(0x300),'params':{'unitId':_0x258460[_0xc56861][_0xee88d3(0x34f)],..._0x258460[_0xc56861][_0xee88d3(0x230)]}},_0x1758dd={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x258460[_0xc56861]['unitId'],..._0x258460[_0xc56861]['redoState']}},_0x1de1c8=this['_transformService'][_0xee88d3(0x2e7)](_0x3a6721,_0xbf5578,!0x1),_0x31b385=this[_0xee88d3(0x346)][_0xee88d3(0x2e7)](_0x3c45d5,_0x1758dd,!0x1);if(m[_0xee88d3(0x1d3)](_0x1de1c8))throw _0x1de1c8[_0xee88d3(0x1b6)];if(m['isTransformMutationFailure'](_0x31b385))throw _0x31b385[_0xee88d3(0x1b6)];_0x229eb1[_0xee88d3(0x2e4)]({..._0x258460[_0xc56861],'undoState':_0x1de1c8['m2Prime'][_0xee88d3(0x1c1)],'redoState':_0x31b385[_0xee88d3(0x29c)]['params']}),_0x3a6721=_0x1de1c8[_0xee88d3(0x229)],_0x3c45d5=_0x31b385[_0xee88d3(0x229)];}_0x3a6721=a['Tools'][_0xee88d3(0x3ea)](_0xd9b742['mutations'][0x0]),_0x3c45d5=a[_0xee88d3(0x2e2)]['deepClone'](_0xd9b742['mutations'][0x0]);for(let _0x32da9b=_0x1ab853[_0xee88d3(0x260)]-0x1;_0x32da9b>=0x0;_0x32da9b--){const _0x41c577={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x1ab853[_0x32da9b]['unitId'],..._0x1ab853[_0x32da9b]['undoState']}},_0x5d6151={'id':_0xee88d3(0x300),'params':{'unitId':_0x1ab853[_0x32da9b][_0xee88d3(0x34f)],..._0x1ab853[_0x32da9b][_0xee88d3(0x3af)]}},_0x2ceebe=this[_0xee88d3(0x346)][_0xee88d3(0x2e7)](_0x3a6721,_0x41c577,!0x1),_0x89e0c8=this[_0xee88d3(0x346)][_0xee88d3(0x2e7)](_0x3c45d5,_0x5d6151,!0x1);if(m['isTransformMutationFailure'](_0x2ceebe))throw _0x2ceebe[_0xee88d3(0x1b6)];if(m[_0xee88d3(0x1d3)](_0x89e0c8))throw _0x89e0c8[_0xee88d3(0x1b6)];_0xce7456[_0xee88d3(0x2e4)]({..._0x1ab853[_0x32da9b],'undoState':_0x2ceebe[_0xee88d3(0x29c)][_0xee88d3(0x1c1)],'redoState':_0x89e0c8[_0xee88d3(0x29c)][_0xee88d3(0x1c1)]}),_0x3a6721=_0x2ceebe[_0xee88d3(0x229)],_0x3c45d5=_0x89e0c8[_0xee88d3(0x229)];}this[_0xee88d3(0x3d3)][_0xee88d3(0x2b1)](_0x3acc66,{'history':_0x229eb1,'collaboration':_0xce7456});}};J=Ft([le(0x0,a['Inject'](a[_0x183fa5(0x2e1)])),le(0x1,m[_0x183fa5(0x20b)]),le(0x2,a[_0x183fa5(0x3dc)](b['DocStateChangeManagerService']))],J);var Wt=Object[_0x183fa5(0x255)],Yt=(_0x810348,_0x357418,_0x5a56ab,_0x5348a5)=>{const _0x5919b1=_0x183fa5;for(var _0x36eb7b=_0x5348a5>0x1?void 0x0:_0x5348a5?Wt(_0x357418,_0x5a56ab):_0x357418,_0xb9430e=_0x810348[_0x5919b1(0x260)]-0x1,_0x53dfba;_0xb9430e>=0x0;_0xb9430e--)(_0x53dfba=_0x810348[_0xb9430e])&&(_0x36eb7b=_0x53dfba(_0x36eb7b)||_0x36eb7b);return _0x36eb7b;},Ne=(_0x3f49a9,_0x3c7190)=>(_0x54ea89,_0x539e65)=>_0x3c7190(_0x54ea89,_0x539e65,_0x3f49a9);let Z=class{constructor(_0x49868c,_0x179a7b){const _0x47d3f2=_0x183fa5;this[_0x47d3f2(0x20a)]=_0x49868c,this['_transformService']=_0x179a7b;}[_0x183fa5(0x387)](_0x5a2982){const _0x842335=_0x183fa5;var _0x2074ef;const _0x21c126=this[_0x842335(0x20a)][_0x842335(0x2dc)](W[_0x842335(0x28e)]),_0x534da0=(_0x2074ef=_0x21c126[_0x842335(0x268)]())!=null?_0x2074ef:[];if(_0x534da0[_0x842335(0x260)]===0x0)return;const _0x4ea9f6=_0x5a2982[_0x842335(0x1b7)],_0x18326e=[{'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x4ea9f6,'actions':null,'textRanges':_0x534da0}}],_0x152972=this[_0x842335(0x346)][_0x842335(0x303)](_0x5a2982,_0x18326e);if(!m['isTransformMutationsWithChangesetSuccess'](_0x152972))throw _0x152972[_0x842335(0x1b6)];const _0x4701b3=_0x152972[_0x842335(0x29c)][0x0][_0x842335(0x1c1)][_0x842335(0x1ab)];Array[_0x842335(0x2ba)](_0x4701b3)&&_0x4701b3[_0x842335(0x260)]&&_0x21c126[_0x842335(0x21e)](_0x4701b3,{'unitId':_0x4ea9f6,'subUnitId':_0x4ea9f6},!0x1);}};Z=Yt([Ne(0x0,a[_0x183fa5(0x3dc)](a[_0x183fa5(0x2e1)])),Ne(0x1,m['ITransformService'])],Z);var Vt=Object[_0x183fa5(0x255)],Xt=(_0x5f5471,_0x97615a,_0xe7f1a4,_0x5cb861)=>{const _0x4ff2aa=_0x183fa5;for(var _0x1c1af0=_0x5cb861>0x1?void 0x0:_0x5cb861?Vt(_0x97615a,_0xe7f1a4):_0x97615a,_0x585915=_0x5f5471[_0x4ff2aa(0x260)]-0x1,_0x50a1a0;_0x585915>=0x0;_0x585915--)(_0x50a1a0=_0x5f5471[_0x585915])&&(_0x1c1af0=_0x50a1a0(_0x1c1af0)||_0x1c1af0);return _0x1c1af0;},N=(_0x4209f2,_0x4d83b3)=>(_0x5d05d3,_0x33c13d)=>_0x4d83b3(_0x5d05d3,_0x33c13d,_0x4209f2);let Q=class extends a[_0x183fa5(0x3ec)]{constructor(_0x583a9d,_0xee4e6b,_0x195537,_0x9a5cb6,_0x5b96a7,_0x5b40c5,_0x4e9f6f,_0xa9e75e){const _0x18b3eb=_0x183fa5;super(),h(this,_0x18b3eb(0x374),new d[(_0x18b3eb(0x323))](u['CollaborationStatus'][_0x18b3eb(0x2d2)])),(this['_docStateChangeManagerService']=_0x583a9d,this[_0x18b3eb(0x293)]=_0xee4e6b,this[_0x18b3eb(0x2ec)]=_0x195537,this['_docTransformStateCacheService']=_0x9a5cb6,this[_0x18b3eb(0x2e0)]=_0x5b96a7,this[_0x18b3eb(0x258)]=_0x5b40c5,this[_0x18b3eb(0x19f)]=_0x4e9f6f,this[_0x18b3eb(0x377)]=_0xa9e75e,this[_0x18b3eb(0x345)]());}[_0x183fa5(0x345)](){const _0x5e562c=_0x183fa5;this[_0x5e562c(0x220)](this['_collaborationController'][_0x5e562c(0x1e1)][_0x5e562c(0x24c)](_0x19727c=>{const _0x435e3a=_0x5e562c,_0x4cfab1=this[_0x435e3a(0x3d3)][_0x435e3a(0x29d)][_0x435e3a(0x24c)](_0x35a2d2=>{const _0x293989=_0x435e3a;if(_0x35a2d2==null)return;const {unitId:_0x4ef455,redoState:_0x1a0dcc,commandId:_0x245786}=_0x35a2d2;if(_0x4ef455!==_0x19727c[_0x293989(0x1b7)])return;const _0x63eae3={'id':_0x245786,'type':a['CommandType'][_0x293989(0x340)],'params':{'unitId':_0x4ef455,'actions':_0x1a0dcc[_0x293989(0x30c)],'textRanges':null}};_0x19727c[_0x293989(0x2c1)](_0x63eae3);});if(_0x19727c['disposeWithMe'](_0x4cfab1),_0x19727c instanceof u[_0x435e3a(0x3fc)]){const _0x1bd2b7={'onTransformIME':_0x396957=>this['_docTransformIMECacheService'][_0x435e3a(0x2bd)](_0x396957),'onTransformState':_0x1ec459=>this[_0x435e3a(0x3ae)][_0x435e3a(0x3b3)](_0x1ec459),'onTransformSelections':_0x3feb8d=>this[_0x435e3a(0x2e0)][_0x435e3a(0x387)](_0x3feb8d),'onSyncEditingCollabCursor':_0x5da266=>this['_docSyncEditingCollabCursorService'][_0x435e3a(0x248)](_0x5da266),'onTransformRemoteChangesetByIMECache':_0x4e4765=>this['_docTransformIMECacheService'][_0x435e3a(0x233)](_0x4e4765),'onTransformRemoteChangesetByStateCache':_0x1cd578=>this[_0x435e3a(0x3ae)][_0x435e3a(0x233)](_0x1cd578)};_0x19727c[_0x435e3a(0x396)](_0x1bd2b7);}}));}};function _0x18b1(){const _0x59ca43=['No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','APPLY_DUPLICATED','YUUMI_ASYNCIO_CANCELLED','_docTransformStateCacheService','redoState','popstate','UPDATE_CURSOR','_selfUnitIDs','transformStateCache','_hideTimer','_roomMembers$','handleInsertCol','flatMap','RxDisposable','unit','url(#$1','JOIN_ROOM_FAILED','height','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','debounce','getUnitId','SYNCED','runOnServer','saveImage','arc','fill','12632088ekSAkF','fillText','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','serializeRangeWithSheet','blue400','_removeCollabCursors','COMPLETION_FINISHED','_assignedColors','defIds','getUnitStatus$','_entityInit$','_render','PY_RUNTIME_SCRIPT_ERROR','LocaleService','_docStateChangeManagerService','displayName','concat','CONNECTOR_DATA_TOO_LARGE','measureText','Rect','_toggleOnline','_registerDependencies','getMemberID','Inject','DeleteRangeMoveLeftCommandId','WebSocketService','getValue','_scene','ticket','MOBILE_HAS_BEEN_BOUND','merge','_notificationService','_handleHover','_docSkeleton','_drawAnchor','APPLY_PERMISSION_DENIED','_id','deepClone','then','Disposable','DeleteRangeMoveUpCommandId','send','session.collaboration-timeout','_cursor','UNIVER_COLLABORATION_CLIENT_WEB_PLUGIN','CollaborationStatus','some','disableLocalCache','30mCjnPZ','getConfig','assign','AWAITING_WITH_PENDING','handleInsertRangeMoveRight','source','ICommandService','DocCollaborationEntity','deserializeRangeWithSheet','_ensureSubject','SOCKET_FAILED_RETRY','_initCommandExecutedListener','LICENSE_IMPORT_SIZE_EXCEEDED','INVITE_CODE_REQUIRED','registerComponent','setAlpha','split','replaceState','UNIVER_SHEET','LOCAL_CACHE_INTERVAL','getSheetObject','_drawTextRange','Unknown\x20user','createIdentifier','toRgbString','_backgroundColor','invokeId','OnLineSingle','jiqing500','registerRefRange','show','on-line-single_clip0_910_349','_messageService','top','_getSaveTimeout','collaboration-client-ui.config','DocIMEInputManagerService','CollaborationEvent','handleDeleteRangeMoveUp','[CollaborationDataLoaderController]','startsWith','_cursorShapes','1em','_unitStatus','textRanges','data','TEXT_RANGE_LAYER_INDEX','_anchor','CollaborationSocketService','filter','APPLY_NON_SEQUENTIAL_REVISION','_onCursorUpdate','onTransformChange$','lineTo','OTHER_CLIENT_EDITING','error','unitID','_docClipboardService','focused$','M0\x200H16V16H0z','selections','TEXT','runId','RichTextEditingMutation','getStateCache','_name','params','clearTimeout','getCollabCursors$','transformByState','IImageIoService','CollaborationDataLoaderController','toString','CollaborationStatusDisplay','ILocalCacheService','_colorAssignService','2306769smAoWd','all','find','IRenderManagerService','url(#off-line-single_clip0_910_343)','RegularPolygon','collaboration.closeRoom','getSheetId','isTransformMutationFailure','useObservable','206478vBKOuF','_transformPreviousActiveRange','_transformUndoRedoStack','_configService','combineLatest','enableLocalCache','fromEventSubject','delete','getColor','collabStatus.offline','stringify','@univerjs/docs','entityInit$','InsertColCommandId','has','function','_updateCollabCursors','RemoteUniscriptService','getUniverSheetInstance','LICENSE_MAX_UNITS_EXCEEDED','SetWorksheetActivateCommand','TRANSFORM_CHANGE_OBSERVABLE_TYPE','_hovered','handleDeleteRangeMoveLeft','univer-flex\x20univer-items-center','_colorIndex','colorChannel1','jsx','_handleLeaveEvent','_handleEvent','getTypeOfUnitAdded$','location','univer-text-[14px]\x20univer-leading-[32px]\x20univer-text-gray-600','0\x200\x2017\x2016','prototype','clearInterval','values','@univerjs/rpc','@univerjs-pro/collaboration-client','_sheetSkeletonManagerService','apply','getAncestorScale','mutations','IMessageService','cursorInfo$','CLOSE_ROOM','_startSheetCollabCursor','session.will-retry','getActiveRange','Warning','extend','CollaborationSessionService','_logService','_injector','ITransformService','IBeforeCloseService','_getScale','_beforeCloseService','column','_commandService','UnitStatus','_docSkeletonManagerService','pipe','removeParam','_scheduleHeartbeat','#fff','@univerjs/engine-render','addObjects','_saveTaskMap','_localStorageService','INVITE_CODE_ALREADY_BOUND','LOGIN_FAILED','@univerjs/design','replaceDocRanges','NodePositionConvertToCursor','disposeWithMe','_labelPosition','DesktopCollaborationStatusDisplayController','collabStatus.notCollab','_httpService','2345880lomsdV','_collabCursorState$','path','getItem','m1Prime','DocStateChangeManagerService','getMergeData','getCurrentUnitForType','_disabled','_removeClearOtherTimer','dispose$','undoState','VIEW_MAIN','_textBubble','transformRemoteChangeset','_handleHeartbeatEvent','beginPath','triggerDblclick','collab-client.tooltip.reconnect','hasOwnProperty','on-line-single','univer-flex\x20univer-mr-2\x20univer-text-[20px]','BuiltInUIPart','random','indexOf','mapTo','APPLY_REJECT','_init','SNAPSHOT_INVALID_SNAPSHOT','[RemoteUniscriptService]:\x20no\x20focused\x20unit','hovered','_cachedData','BrowserCollaborationSocketService','getRenderById','mask','syncEditingCollabCursor','INVITE_CODE_HAS_BEEN_UES','MemberService','call','subscribe','gold400','InsertRowCommandId','clsx','min','Failed','_color','FromArray','next','getOwnPropertyDescriptor','none','createElement','_docSyncEditingCollabCursorService','evenodd','_entities','EMAIL_HAS_BEEN_BOUND','_cursors','YUUMI_RATE_OVER_LIMIT','UNRECOGNIZED','REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY','length','useRef','getParam','Vector2','permission.title','with','EffectRefRangId','_onCursorDelete','getDocRanges','YUUMI_NO_CUBOID_FOR_QUESTION','onPointerMove$','HEADER_MENU','switchMap','_dataLoaderService','Plugin','@univerjs/sheets-ui','CollaborationController','onCommandExecuted','_themeService','generateRandomId','rgba(255,\x20255,\x20255,\x200.01)','executionId','getFocusedUnit','@univerjs/sheets','fromEvent','set','UniverIcon','DOC_RANGE_TYPE','isActive','cursorInfo','1741631QrAmWT','RemoveColCommandId','YUUMI_UNABLE_LOAD_URL','requireSession','_setupBeforeClosingHandler','YUUMI_URL_COL_OUT_OF_RANGE','HTTPService','_localCacheService','memberID','registerBeforeClose','post','propertyIsEnumerable','getVpScrollXYInfoByPosToVp','_draw','_initResize','RevisionService','DocSelectionManagerService','_univerInstanceService','defs','UNDEFINED','add','_collaborationController','searchParams','_updateLocalCursor','jsxs','_range','makeDirty','endColumn','code','_refreshCollabCursors','m2Prime','docStateChange$','toDisposable','ISocketService','push','react/jsx-runtime','replace','CollaborationUIEventId','getTypeOfUnitDisposed$','Tooltip','dispose','YUUMI_SUBSCRIPTION_NOT_FOUND','_initStatusComponent','sessionTicket','SheetCollabCursorShape','_getSessionTicket','APPLY_REVISION_CONFILICT','_renderManagerService','forEach','color','init','setStateCache','_context','_scheduleSaving','round','_scheduleClearOtherTimer','getCellPositionByOffset','@univerjs/docs-ui','registerRenderModule','_unitOnClients','isArray','newValue','clipPath','transformIMECache','_collabSessionService','ONLINE','children','onLocalMutation','collabCursorState$','_online','current','urlChange$','ENSURE_SNAPSHOT_EXECUTION','_initStatusListener','UNIVER_DOC','type','_drawRectRange','off-line-single','_document','_heartbeatTimer','FETCH_MISS','complete','sheetId','@univerjs/ui','NOT_COLLAB','saveTaskMap','_createSocketURL','className','defineProperty','CHANGESET_REVISION_CONFILICT','NOT_FOUND','COLORS','InsertRangeMoveRightCommandId','RECT','get','_uiPartsService','purple300','rxjs/operators','_docTransformSelectionsService','Injector','Tools','touchDependencies','unshift','width','override','transformMutation','onRendered','_memberService','UNAUTHENTICATED','INVALID_INVITE_CODE','_docTransformIMECacheService','getSheetBySheetId','executeCommand','collab-rect-range-','parse','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','findNodePositionByCharIndex','getOwnPropertySymbols','UniverInstanceType','4lUANzK','event$','_eventUnsubscribe','url(#on-line-single_clip0_910_349)','OTHER_CLIENTS_EDITING','USER_NOT_INVITED_CODE','string','save','/run/','permission.content','PENDING','doc.mutation.rich-text-editing','setUndoRedoMutationParamsCache','_shapes','transformMutationsWithChangeset','getMember','LICENSE_EXPORT_SIZE_EXCEEDED','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','backgroundColor','svg','handleIRemoveRow','mergeOverrideWithDependencies','UniverCollaborationClientPlugin','actions','ACTIVE_UNIT_EVENT_CHANNEL','_collabCursorController','_getSheetObject','getSkeleton','PERMISSION_DENIED','SHEET_VIEWPORT_KEY','DocSkeletonManagerService','WECHAT_HAS_BEEN_BOUND','hide','@univerjs/engine-formula','univerjs-icon\x20univerjs-icon-','wsSessionTicketUrl','CONFLICT','_setupSubUnitSync','IDocClipboardService','asObservable','application/json','imageSourceType','_imageIoService','search','off-line-single_clip0_910_343','resize','BehaviorSubject','_syncEditingCollabCursorService','_transformHistoryAndStateStack','setItem','currentSkeleton$','Module','exhaustSavingTask','_initEvent','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','createInstance','toStringTag','_onRefRangeChange','SessionStatus','unsubscribe','bottom','range','CollaborationUIEventService','drawWith','pushState','getCoordByCell','getCurrent','IConfigService','getUndoRedoMutationParamsCache','IUniverInstanceService','NO_OTHER_CLIENTS_EDITING','href','ILocalStorageService','currentColor','key','MUTATION','ThemeService','...','SOCKET_FAILED','getRangePointData','_initEntityListener','_transformService','getCurrentRevOfUnit','engine','throttleTime','_startDocCollabCursor','_initDependencies','_cursorInfo$','startColumn','DependentOn','unitId','_urlService','takeUntil','sessionStatus$','_updateURLWithCurrentState','_send','SNAPSHOT_HAS_BEEN_REMOVED','forwardRef','body','_toggleOffline','selection','assignAColorForMemberID','font','@univerjs/network','handleIRemoveCol','idSuffix','_registerRenderDependencies','INTERNAL_ERROR','black','connectInjector','_config','text','setConfig','history','loadOfflineData','fillRule','substring','TOO_MANY_REQUESTS','eventID','restore','loadUnit','size','_handleJoinEvent','MessageType','handleInsertRow','_lastPointer','_getMergeRange','_status$','roomMembers$','collab-text-anchor-','_localeService','_collaborationUIEventService','INVALID_ARGUMENT','INotificationService','from','onPointerEnter$','#FFF','ranges','debug','1685033rdHUvz','subunit','4931919ZooWXw','_session','Shape','attrs','OFFLINE','transformSelections','ILogService','getViewport','_anchorDot','moveTo','DisposableCollection','handleMoveRange','_updateSubUnitFromURLParams','map','updateOfflineData','collaboration-client.offline-data-not-saved','icon','name','onStarting','125DCoLBL','addHandlerCallback','onMouseMove','DataLoaderService','setShapeProps','Error','SetTextSelectionsOperation','RemoveRowCommandId','_clearOtherTimers','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','getLocalCacheKey','setParam','subscribeEvent','roomMembers','UniverCollaborationClientUIPlugin','currentTheme$','addObject','tag','row','_saveCache','_revisionService','rxjs'];_0x18b1=function(){return _0x59ca43;};return _0x18b1();}Q=Xt([N(0x0,a['Inject'](b[_0x183fa5(0x22a)])),N(0x1,a['Inject'](u['CollaborationController'])),N(0x2,a[_0x183fa5(0x3dc)](z)),N(0x3,a[_0x183fa5(0x3dc)](J)),N(0x4,a[_0x183fa5(0x3dc)](Z)),N(0x5,a['Inject'](Ce)),N(0x6,T['IMessageService']),N(0x7,a['Inject'](a['LocaleService']))],Q);var Gt=Object[_0x183fa5(0x255)],qt=(_0x367f28,_0x5de162,_0x22a27f,_0x4c373f)=>{const _0x4dacda=_0x183fa5;for(var _0x5948fa=_0x4c373f>0x1?void 0x0:_0x4c373f?Gt(_0x5de162,_0x22a27f):_0x5de162,_0x15bdd7=_0x367f28[_0x4dacda(0x260)]-0x1,_0x300923;_0x15bdd7>=0x0;_0x15bdd7--)(_0x300923=_0x367f28[_0x15bdd7])&&(_0x5948fa=_0x300923(_0x5948fa)||_0x5948fa);return _0x5948fa;},_e=(_0x16d126,_0x1262f9)=>(_0x373693,_0x16ac7c)=>_0x1262f9(_0x373693,_0x16ac7c,_0x16d126);let ge=class extends a['Disposable']{constructor(_0x5cbd89,_0x33af0d,_0x6957e9){const _0x237594=_0x183fa5;super(),h(this,'_cachedData',new Map()),h(this,'_saveTaskMap',new Map()),h(this,_0x237594(0x22d),!0x1),(this[_0x237594(0x1d8)]=_0x5cbd89,this[_0x237594(0x21a)]=_0x33af0d,this[_0x237594(0x3a9)]=_0x6957e9);}[_0x183fa5(0x3f4)](){const _0x1af12=_0x183fa5;this[_0x1af12(0x22d)]=!0x0;}[_0x183fa5(0x1da)](){const _0x299d1a=_0x183fa5;this[_0x299d1a(0x22d)]=!0x1;}get[_0x183fa5(0x2d3)](){const _0x5afde8=_0x183fa5;return this[_0x5afde8(0x219)];}[_0x183fa5(0x2a6)](){const _0x2c011d=_0x183fa5;this[_0x2c011d(0x329)]()[_0x2c011d(0x3eb)](()=>super[_0x2c011d(0x2a6)]());}async[_0x183fa5(0x367)](_0x577e30){const _0x15caa3=_0x183fa5;return this[_0x15caa3(0x22d)]?null:this[_0x15caa3(0x21a)][_0x15caa3(0x228)](u[_0x15caa3(0x39f)](_0x577e30));}async['saveOfflineData'](_0x5e7c9f,_0x5d0c8c){const _0x446ca9=_0x183fa5;return!!this['_localStorageService'][_0x446ca9(0x326)](_0x5e7c9f,_0x5d0c8c);}[_0x183fa5(0x390)](_0x31af78,_0x5068e7,_0x4f978d,_0x1818ac){const _0x4bb949=_0x183fa5,_0x1e3a19=this[_0x4bb949(0x3a9)][_0x4bb949(0x347)](_0x31af78);this[_0x4bb949(0x244)][_0x4bb949(0x279)](_0x31af78,{'unitID':_0x31af78,'type':_0x5068e7,'awaitingChangeset':_0x4f978d,'mutations':_0x1818ac,'rev':_0x1e3a19}),this[_0x4bb949(0x219)][_0x4bb949(0x1e3)](_0x31af78)||this['_scheduleSaving'](_0x31af78);}[_0x183fa5(0x2b3)](_0x3f5b8a){const _0x3bdcc6=_0x183fa5,_0x4e35b9=this[_0x3bdcc6(0x1a1)]();_0x4e35b9===0x0?this['_saveCache'](_0x3f5b8a):this[_0x3bdcc6(0x219)][_0x3bdcc6(0x279)](_0x3f5b8a,setTimeout(()=>this[_0x3bdcc6(0x3a8)](_0x3f5b8a),_0x4e35b9));}[_0x183fa5(0x1a1)](){const _0x2fc1aa=_0x183fa5;var _0xa85910;return(_0xa85910=this[_0x2fc1aa(0x1d8)][_0x2fc1aa(0x3f6)](u['LOCAL_CACHE_INTERVAL_KEY']))!=null?_0xa85910:u[_0x2fc1aa(0x408)];}['_saveCache'](_0x134d7d){const _0x4a1d3c=_0x183fa5,_0x5617f4=this[_0x4a1d3c(0x219)][_0x4a1d3c(0x2dc)](_0x134d7d);return _0x5617f4!==void 0x0&&window[_0x4a1d3c(0x1c2)](_0x5617f4),this['_localStorageService'][_0x4a1d3c(0x326)](u[_0x4a1d3c(0x39f)](_0x134d7d),this[_0x4a1d3c(0x244)][_0x4a1d3c(0x2dc)](_0x134d7d))['then'](()=>this[_0x4a1d3c(0x219)][_0x4a1d3c(0x1dc)](_0x134d7d));}async[_0x183fa5(0x329)](){const _0x1b3678=_0x183fa5,_0x564a31=[];this[_0x1b3678(0x219)][_0x1b3678(0x2ae)]((_0x54867b,_0x523638)=>{const _0x57c331=_0x1b3678;window[_0x57c331(0x1c2)](_0x54867b),_0x564a31[_0x57c331(0x2a0)](this[_0x57c331(0x3a8)](_0x523638)[_0x57c331(0x3eb)](()=>{const _0x4e333a=_0x57c331;this[_0x4e333a(0x219)][_0x4e333a(0x1dc)](_0x523638);}));}),await Promise[_0x1b3678(0x1cc)](_0x564a31);}};ge=qt([_e(0x0,a['IConfigService']),_e(0x1,a[_0x183fa5(0x33d)]),_e(0x2,a[_0x183fa5(0x3dc)](m[_0x183fa5(0x28d)]))],ge);class je extends a[_0x183fa5(0x3b8)]{constructor(){const _0x12443f=_0x183fa5;super(),h(this,_0x12443f(0x2c5)),this['urlChange$']=d[_0x12443f(0x278)](window,_0x12443f(0x3b0))['pipe'](d[_0x12443f(0x351)](this[_0x12443f(0x22f)]),d['shareReplay'](0x1),d[_0x12443f(0x23e)](void 0x0));}['setParam'](_0x32b4c5,_0x278cd3,_0x4368e6=!0x1){const _0x4872d1=_0x183fa5,_0x41108c=new URL(window[_0x4872d1(0x1f4)][_0x4872d1(0x33c)]);_0x41108c['searchParams'][_0x4872d1(0x279)](_0x32b4c5,_0x278cd3),_0x4368e6?window[_0x4872d1(0x366)][_0x4872d1(0x406)]('','',_0x41108c[_0x4872d1(0x1c7)]()):window[_0x4872d1(0x366)][_0x4872d1(0x335)]('','',_0x41108c[_0x4872d1(0x1c7)]());}[_0x183fa5(0x214)](_0x375444,_0x421800=!0x1){const _0x28314b=_0x183fa5,_0xc7ccbb=new URL(window[_0x28314b(0x1f4)]['href']);_0xc7ccbb[_0x28314b(0x294)]['delete'](_0x375444),_0x421800?window[_0x28314b(0x366)][_0x28314b(0x406)]('','',_0xc7ccbb[_0x28314b(0x1c7)]()):window[_0x28314b(0x366)][_0x28314b(0x335)]('','',_0xc7ccbb[_0x28314b(0x1c7)]());}[_0x183fa5(0x262)](_0x2527d5){const _0x548385=_0x183fa5;var _0x56ce34;return(_0x56ce34=new URL(window['location'][_0x548385(0x33c)])[_0x548385(0x294)]['get'](_0x2527d5))!=null?_0x56ce34:void 0x0;}}var Kt=Object['defineProperty'],zt=Object[_0x183fa5(0x255)],Jt=(_0x313a4d,_0x2ff107,_0x132409)=>_0x2ff107 in _0x313a4d?Kt(_0x313a4d,_0x2ff107,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x132409}):_0x313a4d[_0x2ff107]=_0x132409,Zt=(_0x2e4a8f,_0x1df63b,_0x2a3dbe,_0x33f7fe)=>{for(var _0xb3e757=_0x33f7fe>0x1?void 0x0:_0x33f7fe?zt(_0x1df63b,_0x2a3dbe):_0x1df63b,_0x5186a9=_0x2e4a8f['length']-0x1,_0x1ff65b;_0x5186a9>=0x0;_0x5186a9--)(_0x1ff65b=_0x2e4a8f[_0x5186a9])&&(_0xb3e757=_0x1ff65b(_0xb3e757)||_0xb3e757);return _0xb3e757;},he=(_0x1d699e,_0x335b35)=>(_0x211060,_0x553a79)=>_0x335b35(_0x211060,_0x553a79,_0x1d699e),Qt=(_0x2f1e48,_0x3461d8,_0x18f666)=>Jt(_0x2f1e48,_0x3461d8+'',_0x18f666);const es=_0x183fa5(0x3f1);exports['UniverCollaborationClientUIPlugin']=class extends a[_0x183fa5(0x26e)]{constructor(_0x8c9634=Ue,_0x1635d2,_0x2b7b4d,_0x332af0){const _0x44f424=_0x183fa5;super(),this[_0x44f424(0x363)]=_0x8c9634,this[_0x44f424(0x2ad)]=_0x1635d2,this[_0x44f424(0x20a)]=_0x2b7b4d,this[_0x44f424(0x1d8)]=_0x332af0;const {..._0x1e5dc5}=a[_0x44f424(0x3e3)]({},Ue,this[_0x44f424(0x363)]);this['_configService'][_0x44f424(0x365)]($t,_0x1e5dc5);}[_0x183fa5(0x394)](){const _0x2b01a4=_0x183fa5;this[_0x2b01a4(0x3da)](),this[_0x2b01a4(0x34b)]();}[_0x183fa5(0x2e8)](){const _0x1e86cf=_0x183fa5;this[_0x1e86cf(0x35f)]();}[_0x183fa5(0x3da)](){const _0x14e38f=_0x183fa5;var _0x39d7a1;const _0x397551=[[me],[Z],[z],[J],[Ce],[be,{'useClass':je}],[G[_0x14e38f(0x29f)],{'useClass':G[_0x14e38f(0x3de)]}],[u[_0x14e38f(0x1c9)],{'useClass':ge}],[exports[_0x14e38f(0x222)]],[Q],[K],[x],[de],[exports['CollaborationDataLoaderController']]];a['registerDependencies'](this[_0x14e38f(0x20a)],a[_0x14e38f(0x30a)](_0x397551,(_0x39d7a1=this[_0x14e38f(0x363)])==null?void 0x0:_0x39d7a1[_0x14e38f(0x2e6)]));}[_0x183fa5(0x35f)](){const _0x332bf1=_0x183fa5;this[_0x332bf1(0x220)](this['_renderManagerService'][_0x332bf1(0x2b8)](a[_0x332bf1(0x2f4)][_0x332bf1(0x2c8)],[Ie])),this[_0x332bf1(0x220)](this['_renderManagerService'][_0x332bf1(0x2b8)](a[_0x332bf1(0x2f4)][_0x332bf1(0x407)],[ve]));}[_0x183fa5(0x34b)](){const _0x181e90=_0x183fa5;a[_0x181e90(0x2e3)](this[_0x181e90(0x20a)],[[x],[exports[_0x181e90(0x222)]],[Q],[K],[exports[_0x181e90(0x1c6)]]]);}},Qt(exports[_0x183fa5(0x3a3)],'pluginName',es),exports[_0x183fa5(0x3a3)]=Zt([a[_0x183fa5(0x34e)](u[_0x183fa5(0x30b)]),he(0x1,p[_0x183fa5(0x1ce)]),he(0x2,a[_0x183fa5(0x3dc)](a['Injector'])),he(0x3,a[_0x183fa5(0x338)])],exports[_0x183fa5(0x3a3)]);var ts=Object[_0x183fa5(0x255)],ss=(_0x16e4f2,_0x33cd0c,_0x591954,_0x5b558d)=>{for(var _0x356864=_0x5b558d>0x1?void 0x0:_0x5b558d?ts(_0x33cd0c,_0x591954):_0x33cd0c,_0x3cf2a5=_0x16e4f2['length']-0x1,_0x229913;_0x3cf2a5>=0x0;_0x3cf2a5--)(_0x229913=_0x16e4f2[_0x3cf2a5])&&(_0x356864=_0x229913(_0x356864)||_0x356864);return _0x356864;},F=(_0x23a3a6,_0x3cbdf9)=>(_0x4cf0fa,_0x27b8fd)=>_0x3cbdf9(_0x4cf0fa,_0x27b8fd,_0x23a3a6);exports[_0x183fa5(0x245)]=class extends u[_0x183fa5(0x1af)]{constructor(_0x567c8b,_0x10ed96,_0x1f966b,_0x4a15b1,_0x32bedb){super(_0x567c8b,_0x10ed96,_0x1f966b,_0x4a15b1,_0x32bedb);}async['createSocket'](_0x26ab40){const _0x128f3d=_0x183fa5,_0x8c2f53=await this[_0x128f3d(0x2ab)](),_0xe51891=this[_0x128f3d(0x2d4)](_0x26ab40,_0x8c2f53);return this['_doCreateSocket'](_0xe51891);}['_createSocketURL'](_0x3b4feb,_0x393f27){const _0x2bb04e=_0x183fa5,_0x39fa61=typeof window>'u'?new URL(_0x3b4feb):new URL(_0x3b4feb,window[_0x2bb04e(0x1f4)]['origin']);_0x39fa61[_0x2bb04e(0x294)][_0x2bb04e(0x279)](_0x2bb04e(0x2a9),_0x393f27);const _0x15e7ea=typeof window>'u'?new URLSearchParams():new URLSearchParams(window[_0x2bb04e(0x1f4)][_0x2bb04e(0x320)]);return _0x15e7ea['get'](_0x2bb04e(0x1bd))&&_0x39fa61[_0x2bb04e(0x294)][_0x2bb04e(0x279)](_0x2bb04e(0x1bd),_0x15e7ea[_0x2bb04e(0x2dc)](_0x2bb04e(0x1bd))),_0x39fa61['toString']();}async[_0x183fa5(0x2ab)](){const _0x493682=_0x183fa5;var _0x51a63a,_0x468ca8,_0x433968;const _0xc96093=this[_0x493682(0x1d8)]['getConfig'](u[_0x493682(0x3c7)]),_0x5030e5=(_0x51a63a=_0xc96093==null?void 0x0:_0xc96093[_0x493682(0x318)])!=null?_0x51a63a:u['DEFAULT_WS_SESSION_TICKET_URL'];return(_0x433968=(_0x468ca8=(await this['_httpService'][_0x493682(0x2dc)](_0x5030e5,{'headers':{'Content-Type':_0x493682(0x31d)}}))[_0x493682(0x357)])==null?void 0x0:_0x468ca8[_0x493682(0x3e1)])!=null?_0x433968:'';}},exports[_0x183fa5(0x245)]=ss([F(0x0,a[_0x183fa5(0x3dc)](a[_0x183fa5(0x2e1)])),F(0x1,a[_0x183fa5(0x3dc)](G[_0x183fa5(0x284)])),F(0x2,a[_0x183fa5(0x338)]),F(0x3,a[_0x183fa5(0x388)]),F(0x4,m['ISnapshotServerService'])],exports[_0x183fa5(0x245)]);const Me=0x7530,Le=_0x183fa5(0x30d);class is extends a[_0x183fa5(0x3ec)]{constructor(){const _0x214a74=_0x183fa5;super(),h(this,_0x214a74(0x3e9),a['generateRandomId']()),h(this,'_selfUnitIDs',new Set()),h(this,_0x214a74(0x2b9),new Map()),h(this,_0x214a74(0x2cd),null),h(this,_0x214a74(0x39d),new Map()),h(this,'_unitStatus',new Map()),this['_init']();}[_0x183fa5(0x2a6)](){const _0x18d0c0=_0x183fa5;super[_0x18d0c0(0x2a6)](),this['_clearOtherTimers'][_0x18d0c0(0x2ae)]((_0x4cbbd8,_0xf8b501)=>this[_0x18d0c0(0x22e)](_0xf8b501)),this['_heartbeatTimer']&&window[_0x18d0c0(0x1f8)](this[_0x18d0c0(0x2cd)]);}[_0x183fa5(0x3ce)](_0x3b2331){const _0x3aecee=_0x183fa5;return this[_0x3aecee(0x3fe)](_0x3b2331)[_0x3aecee(0x213)](d['distinctUntilChanged']());}['editingUnit'](_0x1933e6){const _0x82d39c=_0x183fa5;this[_0x82d39c(0x3b2)][_0x82d39c(0x36e)]===0x0&&this[_0x82d39c(0x215)](),this['_selfUnitIDs'][_0x82d39c(0x292)](_0x1933e6),this[_0x82d39c(0x354)]({'type':0x0,'memberID':this[_0x82d39c(0x3e9)],'unitIDs':[_0x1933e6],'isForwarded':!0x1});}['disposeUnit'](_0x15492c){const _0x18b2b9=_0x183fa5;this['_selfUnitIDs'][_0x18b2b9(0x1dc)](_0x15492c),this[_0x18b2b9(0x3b2)][_0x18b2b9(0x36e)]===0x0&&this[_0x18b2b9(0x2cd)]&&window[_0x18b2b9(0x1f8)](this[_0x18b2b9(0x2cd)]);}[_0x183fa5(0x240)](){const _0x2c30c5=_0x183fa5;this['disposeWithMe'](a[_0x2c30c5(0x29e)](d['fromEvent'](window,'storage')[_0x2c30c5(0x24c)](_0x2217ae=>{const _0x205c0e=_0x2c30c5;if(_0x2217ae[_0x205c0e(0x33f)]!==Le||!_0x2217ae[_0x205c0e(0x2bb)])return;const _0x1e03a5=JSON[_0x205c0e(0x2f0)](_0x2217ae[_0x205c0e(0x2bb)]);this[_0x205c0e(0x1f2)](_0x1e03a5);}))),window['addEventListener']('unload',()=>this[_0x2c30c5(0x354)]({'type':0x1,'memberID':this[_0x2c30c5(0x3e9)],'unitIDs':Array['from'](this[_0x2c30c5(0x3b2)])}));}[_0x183fa5(0x1f2)](_0x2059ea){const _0x3f3f21=_0x183fa5;switch(_0x2059ea[_0x3f3f21(0x2c9)]){case 0x0:this[_0x3f3f21(0x36f)](_0x2059ea);break;case 0x1:this[_0x3f3f21(0x1f1)](_0x2059ea);break;case 0x2:this['_handleHeartbeatEvent'](_0x2059ea);break;}}[_0x183fa5(0x36f)](_0x3d7878){const _0x3ce74d=_0x183fa5,{unitIDs:_0x256c14,memberID:_0x501041,isForwarded:_0x235d48}=_0x3d7878;_0x256c14[_0x3ce74d(0x2ae)](_0x4829cd=>{const _0x4f1535=_0x3ce74d;if(!_0x235d48&&this[_0x4f1535(0x2b9)][_0x4f1535(0x1e3)](_0x4829cd)&&this[_0x4f1535(0x3fe)](_0x4829cd)[_0x4f1535(0x254)](u[_0x4f1535(0x211)][_0x4f1535(0x2f9)]),!this[_0x4f1535(0x2b9)]['has'](_0x4829cd)||!this[_0x4f1535(0x2b9)]['get'](_0x4829cd)[_0x4f1535(0x1e3)](_0x501041)){const _0x384c0d=this[_0x4f1535(0x2b9)]['get'](_0x4829cd)||new Set();_0x384c0d[_0x4f1535(0x292)](_0x501041),this[_0x4f1535(0x2b9)][_0x4f1535(0x279)](_0x4829cd,_0x384c0d),this[_0x4f1535(0x2b5)](_0x501041);}}),_0x235d48||this[_0x3ce74d(0x354)]({'type':0x0,'memberID':this['_id'],'unitIDs':[...this[_0x3ce74d(0x3b2)]],'isForwarded':!0x0});}['_scheduleClearOtherTimer'](_0x58dad2){const _0x29e471=_0x183fa5;this['_removeClearOtherTimer'](_0x58dad2);const _0x2c7bf2=window['setTimeout'](()=>{const _0x39784f=_0x5188;this[_0x39784f(0x2b9)][_0x39784f(0x2ae)](_0x4980bf=>{const _0x4c55d7=_0x39784f;_0x4980bf[_0x4c55d7(0x1dc)](_0x58dad2);});},Me*0x2);this[_0x29e471(0x39d)][_0x29e471(0x279)](_0x58dad2,_0x2c7bf2);}['_removeClearOtherTimer'](_0x3278fc){const _0x1fc79d=_0x183fa5;if(this['_clearOtherTimers'][_0x1fc79d(0x1e3)](_0x3278fc)){const _0x5ae65a=this[_0x1fc79d(0x39d)][_0x1fc79d(0x2dc)](_0x3278fc);_0x5ae65a&&window[_0x1fc79d(0x1c2)](_0x5ae65a),this['_clearOtherTimers']['set'](_0x3278fc,null);}}[_0x183fa5(0x1f1)](_0x329ec5){const _0x1566e8=_0x183fa5,{memberID:_0x4dbc48,unitIDs:_0x3f8dfe}=_0x329ec5;_0x3f8dfe[_0x1566e8(0x2ae)](_0x145a2e=>{const _0x7cf28b=_0x1566e8;var _0x53ab87;const _0x1e56df=this[_0x7cf28b(0x2b9)][_0x7cf28b(0x2dc)](_0x145a2e);_0x1e56df&&(_0x1e56df['delete'](_0x4dbc48),(_0x53ab87=this['_ensureSubject'](_0x145a2e))==null||_0x53ab87[_0x7cf28b(0x254)](_0x1e56df[_0x7cf28b(0x36e)]===0x0?u[_0x7cf28b(0x211)][_0x7cf28b(0x33b)]:u[_0x7cf28b(0x211)][_0x7cf28b(0x2f9)]));}),this[_0x1566e8(0x22e)](_0x4dbc48);}[_0x183fa5(0x234)](_0x425883){const _0x5d6147=_0x183fa5;this[_0x5d6147(0x2b5)](_0x425883[_0x5d6147(0x286)]);}[_0x183fa5(0x354)](_0xe3df1c){const _0x2d7128=_0x183fa5;localStorage[_0x2d7128(0x326)](Le,JSON[_0x2d7128(0x1df)](_0xe3df1c));}[_0x183fa5(0x215)](){this['_heartbeatTimer']=window['setInterval'](()=>{const _0x4fd008=_0x5188;this[_0x4fd008(0x354)]({'type':0x2,'memberID':this[_0x4fd008(0x3e9)]});},Me);}[_0x183fa5(0x3fe)](_0x119c55){const _0x31a3e0=_0x183fa5;return this[_0x31a3e0(0x1aa)]['has'](_0x119c55)||this[_0x31a3e0(0x1aa)][_0x31a3e0(0x279)](_0x119c55,new d[(_0x31a3e0(0x323))](u[_0x31a3e0(0x211)]['NO_OTHER_CLIENTS_EDITING'])),this['_unitStatus'][_0x31a3e0(0x2dc)](_0x119c55);}}var Be=(_0x59f251=>(_0x59f251[_0x59f251[_0x183fa5(0x291)]=0x0]=_0x183fa5(0x291),_0x59f251[_0x59f251['OK']=0x1]='OK',_0x59f251[_0x59f251[_0x183fa5(0x360)]=0x2]=_0x183fa5(0x360),_0x59f251[_0x59f251[_0x183fa5(0x311)]=0x3]=_0x183fa5(0x311),_0x59f251[_0x59f251['NOT_FOUND']=0x4]=_0x183fa5(0x2d8),_0x59f251[_0x59f251[_0x183fa5(0x2ea)]=0x5]=_0x183fa5(0x2ea),_0x59f251[_0x59f251['ALREADY_EXISTS']=0x6]='ALREADY_EXISTS',_0x59f251[_0x59f251[_0x183fa5(0x379)]=0x7]=_0x183fa5(0x379),_0x59f251[_0x59f251[_0x183fa5(0x36a)]=0x8]=_0x183fa5(0x36a),_0x59f251[_0x59f251[_0x183fa5(0x3cb)]=0x9]='COMPLETION_FINISHED',_0x59f251[_0x59f251[_0x183fa5(0x21c)]=0xa]=_0x183fa5(0x21c),_0x59f251[_0x59f251[_0x183fa5(0x2d7)]=0x1389]='CHANGESET_REVISION_CONFILICT',_0x59f251[_0x59f251[_0x183fa5(0x241)]=0x1771]='SNAPSHOT_INVALID_SNAPSHOT',_0x59f251[_0x59f251[_0x183fa5(0x355)]=0x1772]='SNAPSHOT_HAS_BEEN_REMOVED',_0x59f251[_0x59f251[_0x183fa5(0x2c6)]=0x1773]='ENSURE_SNAPSHOT_EXECUTION',_0x59f251[_0x59f251[_0x183fa5(0x23f)]=0x1b59]='APPLY_REJECT',_0x59f251[_0x59f251[_0x183fa5(0x1b1)]=0x1b5a]=_0x183fa5(0x1b1),_0x59f251[_0x59f251[_0x183fa5(0x2ac)]=0x1b5b]=_0x183fa5(0x2ac),_0x59f251[_0x59f251['APPLY_PERMISSION_DENIED']=0x1b5c]=_0x183fa5(0x3e8),_0x59f251[_0x59f251[_0x183fa5(0x3ac)]=0x1b5d]=_0x183fa5(0x3ac),_0x59f251[_0x59f251[_0x183fa5(0x3d6)]=0x1f41]=_0x183fa5(0x3d6),_0x59f251[_0x59f251['LICENSE_MAX_UNITS_EXCEEDED']=0x2329]=_0x183fa5(0x1e8),_0x59f251[_0x59f251[_0x183fa5(0x39e)]=0x232a]=_0x183fa5(0x39e),_0x59f251[_0x59f251[_0x183fa5(0x401)]=0x232b]=_0x183fa5(0x401),_0x59f251[_0x59f251[_0x183fa5(0x305)]=0x232c]=_0x183fa5(0x305),_0x59f251[_0x59f251['LICENSE_DISTRO_REJECTED']=0x232d]='LICENSE_DISTRO_REJECTED',_0x59f251[_0x59f251[_0x183fa5(0x280)]=0x2711]=_0x183fa5(0x280),_0x59f251[_0x59f251[_0x183fa5(0x283)]=0x2712]=_0x183fa5(0x283),_0x59f251[_0x59f251[_0x183fa5(0x25d)]=0x2713]=_0x183fa5(0x25d),_0x59f251[_0x59f251[_0x183fa5(0x2a7)]=0x2714]=_0x183fa5(0x2a7),_0x59f251[_0x59f251[_0x183fa5(0x269)]=0x271a]=_0x183fa5(0x269),_0x59f251[_0x59f251[_0x183fa5(0x3ad)]=0x271b]=_0x183fa5(0x3ad),_0x59f251[_0x59f251[_0x183fa5(0x3d1)]=0x2af9]=_0x183fa5(0x3d1),_0x59f251[_0x59f251[_0x183fa5(0x249)]=0x2ee1]=_0x183fa5(0x249),_0x59f251[_0x59f251[_0x183fa5(0x2eb)]=0x2ee2]='INVALID_INVITE_CODE',_0x59f251[_0x59f251[_0x183fa5(0x402)]=0x2ee3]=_0x183fa5(0x402),_0x59f251[_0x59f251[_0x183fa5(0x2fa)]=0x2ee4]='USER_NOT_INVITED_CODE',_0x59f251[_0x59f251['INVITE_CODE_ALREADY_BOUND']=0x2ee5]=_0x183fa5(0x21b),_0x59f251[_0x59f251[_0x183fa5(0x314)]=0x32c9]='WECHAT_HAS_BEEN_BOUND',_0x59f251[_0x59f251[_0x183fa5(0x3e2)]=0x32ca]=_0x183fa5(0x3e2),_0x59f251[_0x59f251['EMAIL_HAS_BEEN_BOUND']=0x32cb]=_0x183fa5(0x25b),_0x59f251[_0x59f251[_0x183fa5(0x25e)]=-0x1]='UNRECOGNIZED',_0x59f251))(Be||{}),ns=Object['getOwnPropertyDescriptor'],rs=(_0x46b768,_0x473f41,_0x10a7ae,_0x570a4b)=>{const _0x447bde=_0x183fa5;for(var _0x112e83=_0x570a4b>0x1?void 0x0:_0x570a4b?ns(_0x473f41,_0x10a7ae):_0x473f41,_0x51b4ee=_0x46b768[_0x447bde(0x260)]-0x1,_0x42b06c;_0x51b4ee>=0x0;_0x51b4ee--)(_0x42b06c=_0x46b768[_0x51b4ee])&&(_0x112e83=_0x42b06c(_0x112e83)||_0x112e83);return _0x112e83;},ue=(_0x3e8c86,_0x787de8)=>(_0x3d2856,_0x181c26)=>_0x787de8(_0x3d2856,_0x181c26,_0x3e8c86);exports[_0x183fa5(0x1e6)]=class extends a[_0x183fa5(0x3ec)]{constructor(_0x49121f,_0x40b83a,_0x356358){const _0x1269c1=_0x183fa5;super(),this['_instanceService']=_0x49121f,this['_httpService']=_0x40b83a,this[_0x1269c1(0x1d8)]=_0x356358;}async[_0x183fa5(0x3c1)](_0x521f9e,_0x3ac69,_0x1a0706,..._0x5c1501){const _0xf035fd=_0x183fa5;var _0x31e679,_0x5c037f,_0x3a1fe9,_0x27c22d;const _0x36a2cf=this['_instanceService'][_0xf035fd(0x276)]();if(!_0x36a2cf)throw new Error(_0xf035fd(0x242));const _0x17d97c=((_0x31e679=this['_configService'][_0xf035fd(0x3f6)](u[_0xf035fd(0x25f)]))!=null?_0x31e679:u['DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT'])+'/'+_0x521f9e+_0xf035fd(0x2fd)+_0x3ac69,_0x12d1cc=new URL(window[_0xf035fd(0x1f4)][_0xf035fd(0x33c)]),_0x1b269f={'scriptId':_0x521f9e,'runId':(_0x5c037f=_0x12d1cc[_0xf035fd(0x294)][_0xf035fd(0x2dc)]('runId'))!=null?_0x5c037f:'','function':_0x3ac69,'unitId':_0x36a2cf[_0xf035fd(0x3bf)](),'argsOfFunction':JSON['stringify'](_0x5c1501),'invokeId':(_0x3a1fe9=_0x1a0706[_0xf035fd(0x199)])!=null?_0x3a1fe9:'','executionId':(_0x27c22d=_0x1a0706[_0xf035fd(0x275)])!=null?_0x27c22d:''};try{const _0x1c6509=await this[_0xf035fd(0x224)][_0xf035fd(0x288)](_0x17d97c,{'body':_0x1b269f});return _0x1c6509[_0xf035fd(0x357)][_0xf035fd(0x1b6)]&&_0x1c6509[_0xf035fd(0x357)][_0xf035fd(0x1b6)][_0xf035fd(0x29a)]!==Be['OK']?_0xf035fd(0x251):_0x1c6509[_0xf035fd(0x357)]['result'];}catch{return'Failed';}}},exports[_0x183fa5(0x1e6)]=rs([ue(0x0,a[_0x183fa5(0x33a)]),ue(0x1,a[_0x183fa5(0x3dc)](G[_0x183fa5(0x284)])),ue(0x2,a['IConfigService'])],exports[_0x183fa5(0x1e6)]),exports[_0x183fa5(0x1c8)]=xe,exports['IURLService']=be,exports[_0x183fa5(0x2aa)]=we,exports['WebBrowserSingleActiveUnitService']=is,exports['WebURLService']=je;
|
package/lib/cjs/locale/en-US.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';
|
|
1
|
+
'use strict';const _0x4bcdbe=_0x3a70;(function(_0x5ba6fd,_0x11f0f0){const _0xc252ac=_0x3a70,_0x1ec7e2=_0x5ba6fd();while(!![]){try{const _0x374cea=-parseInt(_0xc252ac(0x199))/0x1*(-parseInt(_0xc252ac(0x189))/0x2)+parseInt(_0xc252ac(0x18b))/0x3+parseInt(_0xc252ac(0x197))/0x4*(parseInt(_0xc252ac(0x191))/0x5)+-parseInt(_0xc252ac(0x18c))/0x6+parseInt(_0xc252ac(0x196))/0x7+parseInt(_0xc252ac(0x185))/0x8+-parseInt(_0xc252ac(0x18d))/0x9;if(_0x374cea===_0x11f0f0)break;else _0x1ec7e2['push'](_0x1ec7e2['shift']());}catch(_0x2ee3be){_0x1ec7e2['push'](_0x1ec7e2['shift']());}}}(_0x56bc,0x1b305));function _0x56bc(){const _0xf118e8=['Collaboration\x20room\x20is\x20full.\x20You\x20edits\x20would\x20be\x20saved\x20locally.','exports','Editing\x20privileges\x20were\x20revoked\x20because\x20the\x20collaborative\x20room\x20was\x20closed.','35DasVei','Offline,\x20edits\x20would\x20be\x20save\x20on\x20local','Connection\x20failed,\x20we\x20retry\x20in\x20a\x20while.','Authentication\x20Error','Your\x20actions\x20are\x20conflicting\x20with\x20the\x20server\x27s\x20permissions.\x20Please\x20save\x20your\x20local\x20edits\x20elsewhere\x20as\x20they\x20will\x20be\x20discarded\x20after\x20refreshing\x20the\x20page.','340543DICGhi','29572zhgIfX','You\x20opened\x20the\x20same\x20file\x20in\x20another\x20tab.\x20In\x20case\x20of\x20data\x20missing,\x20you\x20cannot\x20edit\x20on\x20this\x20tab.','1rrbnNX','Connection\x20failed,\x20please\x20check\x20your\x20network.','Edit\x20conflicts','429296NGqNAH','Syncing...','Synced','Collaboration\x20Conflict','268478CjVQHw','Click\x20to\x20Reconnect','24165ogQNCo','775698TUliiU','501372DzcAGy'];_0x56bc=function(){return _0xf118e8;};return _0x56bc();}function _0x3a70(_0x35e80b,_0xd45889){const _0x56bce5=_0x56bc();return _0x3a70=function(_0x3a7060,_0xd9a7ff){_0x3a7060=_0x3a7060-0x184;let _0x51f0cc=_0x56bce5[_0x3a7060];return _0x51f0cc;},_0x3a70(_0x35e80b,_0xd45889);}const e={'collab-client':{'tooltip':{'reconnect':_0x4bcdbe(0x18a)}},'collabStatus':{'fetchMiss':'Syncing\x20server\x20data...','conflict':_0x4bcdbe(0x184),'notCollab':'Local\x20file','synced':_0x4bcdbe(0x187),'syncing':_0x4bcdbe(0x186),'offline':_0x4bcdbe(0x192)},'session':{'connection-failed':_0x4bcdbe(0x19a),'will-retry':_0x4bcdbe(0x193),'room-full':_0x4bcdbe(0x18e),'collaboration-timeout':'The\x20server\x20is\x20not\x20responding\x20to\x20your\x20collaboration\x20request.\x20Your\x20edits\x20would\x20be\x20saved\x20locally.'},'conflict':{'title':_0x4bcdbe(0x188),'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':_0x4bcdbe(0x194),'content':_0x4bcdbe(0x195)},'collaboration':{'single-unit':{'warning':_0x4bcdbe(0x198)},'closeRoom':_0x4bcdbe(0x190)},'auth':{'needGotoLoginAlert':'Your\x20login\x20has\x20expired,\x20click\x20OK\x20to\x20re-login,\x20click\x20Cancel\x20to\x20save\x20your\x20local\x20edits.'}};module[_0x4bcdbe(0x18f)]=e;
|