@univerjs-pro/collaboration-client-ui 0.6.10-experimental.20250427-89a0949 → 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';const
|
|
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 _0x568b38=_0x1323;(function(_0x238abc,_0x3ed2f5){const _0x5bc86f=_0x1323,_0x441580=_0x238abc();while(!![]){try{const _0x1a2642=-parseInt(_0x5bc86f(0x140))/0x1*(parseInt(_0x5bc86f(0x248))/0x2)+parseInt(_0x5bc86f(0x2ec))/0x3*(parseInt(_0x5bc86f(0x303))/0x4)+parseInt(_0x5bc86f(0x285))/0x5*(parseInt(_0x5bc86f(0x232))/0x6)+-parseInt(_0x5bc86f(0x294))/0x7+-parseInt(_0x5bc86f(0x1ed))/0x8*(parseInt(_0x5bc86f(0x350))/0x9)+-parseInt(_0x5bc86f(0x2dc))/0xa+parseInt(_0x5bc86f(0x223))/0xb*(parseInt(_0x5bc86f(0x1b2))/0xc);if(_0x1a2642===_0x3ed2f5)break;else _0x441580['push'](_0x441580['shift']());}catch(_0x56dda2){_0x441580['push'](_0x441580['shift']());}}}(_0x3324,0x2b0ad));var Ve=Object['defineProperty'],Xe=(_0x2c75eb,_0x1761d5,_0x4b6cd9)=>_0x1761d5 in _0x2c75eb?Ve(_0x2c75eb,_0x1761d5,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x4b6cd9}):_0x2c75eb[_0x1761d5]=_0x4b6cd9,h=(_0x882084,_0x447b37,_0x3afbd0)=>Xe(_0x882084,typeof _0x447b37!=_0x568b38(0x24c)?_0x447b37+'':_0x447b37,_0x3afbd0);Object[_0x568b38(0x182)](exports,Symbol[_0x568b38(0x36b)],{'value':_0x568b38(0x2f7)});const u=require('@univerjs-pro/collaboration-client'),a=require(_0x568b38(0x2ea)),p=require('@univerjs/engine-render'),G=require(_0x568b38(0x2f2)),b=require(_0x568b38(0x1b8)),Ge=require(_0x568b38(0x1bb)),d=require('rxjs'),W=require(_0x568b38(0x288)),m=require(_0x568b38(0x279)),Ee=require(_0x568b38(0x2df)),g=require(_0x568b38(0x2be)),$=require('rxjs/operators'),X=require('@univerjs/sheets-ui'),P=require(_0x568b38(0x380)),T=require(_0x568b38(0x200)),D=require(_0x568b38(0x1e6)),M=require(_0x568b38(0x2a4)),qe=require(_0x568b38(0x2c2));var Ke=Object['getOwnPropertyDescriptor'],ze=(_0x44cf58,_0x2e6782,_0x3038f7,_0x20da1e)=>{const _0x11840d=_0x568b38;for(var _0x4f692a=_0x20da1e>0x1?void 0x0:_0x20da1e?Ke(_0x2e6782,_0x3038f7):_0x2e6782,_0x3581a3=_0x44cf58[_0x11840d(0x2bd)]-0x1,_0x2f4ee2;_0x3581a3>=0x0;_0x3581a3--)(_0x2f4ee2=_0x44cf58[_0x3581a3])&&(_0x4f692a=_0x2f4ee2(_0x4f692a)||_0x4f692a);return _0x4f692a;},Te=(_0x2961bd,_0x4ded89)=>(_0x17a22f,_0xac9076)=>_0x4ded89(_0x17a22f,_0xac9076,_0x2961bd);let de=class extends a[_0x568b38(0x327)]{constructor(_0x725e62,_0x4b2948){const _0x4b3266=_0x568b38;super(),this[_0x4b3266(0x328)]=_0x725e62,this[_0x4b3266(0x177)]=_0x4b2948,this[_0x4b3266(0x246)]();}[_0x568b38(0x246)](){const _0x10d40c=_0x568b38,_0x3b35d6=this;this[_0x10d40c(0x369)](this[_0x10d40c(0x328)]['addClipboardHook']({'onBeforePasteImage':async _0x3c60af=>{const _0x6aa464=_0x10d40c,_0x557d81=await _0x3b35d6['_imageIoService']['saveImage'](_0x3c60af);return _0x557d81?{'source':_0x557d81[_0x6aa464(0x131)],'imageSourceType':_0x557d81[_0x6aa464(0x1fd)]}:null;}}));}};de=ze([Te(0x0,b['IDocClipboardService']),Te(0x1,Ge[_0x568b38(0x396)])],de);const Oe=[_0x568b38(0x1ab),'jiqing500',_0x568b38(0x1a4),_0x568b38(0x2e3),'blue400',_0x568b38(0x34d)];class me extends a[_0x568b38(0x30e)]{constructor(){const _0x9a3432=_0x568b38;super(...arguments),h(this,_0x9a3432(0x306),new Map()),h(this,_0x9a3432(0x34f),0x0);}[_0x568b38(0x215)](_0x3e58dd){const _0x2cdabc=_0x568b38;if(this['_assignedColors'][_0x2cdabc(0x347)](_0x3e58dd))return this[_0x2cdabc(0x306)]['get'](_0x3e58dd);const _0x47d950=Oe[this[_0x2cdabc(0x34f)]];return this[_0x2cdabc(0x34f)]=(this[_0x2cdabc(0x34f)]+0x1)%Oe['length'],this[_0x2cdabc(0x306)]['set'](_0x3e58dd,_0x47d950),_0x47d950;}}function Pe(_0x59036b){const _0x10af89=_0x568b38;let _0x2a57d7='';for(const _0x50e8db of _0x59036b){const {startOffset:_0x22e9c9,endOffset:_0x418b37,isActive:_0x140777,rangeType:_0x291a7f,segmentId:_0x3db9fc,segmentPage:_0x4bfecb}=_0x50e8db;_0x2a57d7[_0x10af89(0x2bd)]&&(_0x2a57d7+=','),_0x2a57d7+=_0x22e9c9+':'+_0x418b37+':'+(_0x140777?'1':'0')+':'+_0x291a7f+':'+_0x3db9fc+':'+_0x4bfecb;}return _0x2a57d7;}function Je(_0x345d0b){const _0x2f3e14=_0x568b38,_0x326e35=_0x345d0b['split'](','),_0x1f3b3c=[];for(const _0x197d56 of _0x326e35){const [_0x1264ef,_0x31639f,_0x213c10,_0xcff726,_0x1147dd,_0x1b50af]=_0x197d56[_0x2f3e14(0x287)](':');_0x1f3b3c[_0x2f3e14(0x284)]({'startOffset':Number(_0x1264ef),'endOffset':Number(_0x31639f),'collapsed':_0x1264ef===_0x31639f,'isActive':_0x213c10==='1','rangeType':_0xcff726===a[_0x2f3e14(0x2ca)]['TEXT']?a[_0x2f3e14(0x2ca)][_0x2f3e14(0x2fb)]:a[_0x2f3e14(0x2ca)][_0x2f3e14(0x145)],'segmentId':typeof _0x1147dd==_0x2f3e14(0x216)?String(_0x1147dd):'','segmentPage':Number(_0x1b50af!=null?_0x1b50af:-0x1)});}return _0x1f3b3c[_0x2f3e14(0x31d)](_0x1831f4=>_0x1831f4[_0x2f3e14(0x2cd)])||(_0x1f3b3c[0x0][_0x2f3e14(0x2cd)]=!0x0),_0x1f3b3c;}class Ce extends a[_0x568b38(0x327)]{constructor(){const _0x2aa652=_0x568b38;super(...arguments),h(this,_0x2aa652(0x18d),new d[(_0x2aa652(0x274))](null)),h(this,_0x2aa652(0x30b),this[_0x2aa652(0x18d)][_0x2aa652(0x1a7)]());}[_0x568b38(0x191)](_0x4af50b){const _0x2d3277=_0x568b38,{unitID:_0x20b4bb,memberID:_0x5229af,textRanges:_0x29dd1a}=_0x4af50b,_0x54f577=Pe(_0x29dd1a);if(_0x54f577==='')return;const _0x1b934a={'unitID':_0x20b4bb,'memberID':_0x5229af,'selection':_0x54f577};this[_0x2d3277(0x18d)]['next'](_0x1b934a);}}var Ze=Object[_0x568b38(0x196)],Qe=(_0x3503e5,_0x2a145e,_0x21bc36,_0x2c7e9f)=>{const _0x6ceea8=_0x568b38;for(var _0x1fe0c8=_0x2c7e9f>0x1?void 0x0:_0x2c7e9f?Ze(_0x2a145e,_0x21bc36):_0x2a145e,_0x120460=_0x3503e5[_0x6ceea8(0x2bd)]-0x1,_0x3b6da8;_0x120460>=0x0;_0x120460--)(_0x3b6da8=_0x3503e5[_0x120460])&&(_0x1fe0c8=_0x3b6da8(_0x1fe0c8)||_0x1fe0c8);return _0x1fe0c8;},L=(_0x27ad72,_0xb2addf)=>(_0x1294a9,_0x42886c)=>_0xb2addf(_0x1294a9,_0x42886c,_0x27ad72);const et=0x12c,tt=0x64;let fe=class extends a[_0x568b38(0x327)]{constructor(_0x7244b1,_0x4adffe,_0x2e1cd6,_0x4a97b6,_0x571d0b,_0x56d441,_0x342557,_0xb2a098,_0x335eac){const _0x2a2ae9=_0x568b38;super(),h(this,_0x2a2ae9(0x14d),!0x1),h(this,_0x2a2ae9(0x246),!0x1),h(this,'_cursorInfo$',new d[(_0x2a2ae9(0x274))](new Map())),h(this,_0x2a2ae9(0x129),this[_0x2a2ae9(0x1c2)]['asObservable']()),h(this,_0x2a2ae9(0x2a6),new d[(_0x2a2ae9(0x274))]([])),h(this,'roomMembers$',this[_0x2a2ae9(0x2a6)][_0x2a2ae9(0x1db)](d[_0x2a2ae9(0x32f)](et))),h(this,_0x2a2ae9(0x29e),a['debounce'](_0x321f3d=>{const _0x1189db=_0x2a2ae9,_0x49e93d={'eventID':m['CollaborationEvent'][_0x1189db(0x2af)],'data':{'unitID':this[_0x1189db(0x17e)],'memberID':this['_session']['getMemberID'](),'selection':Pe(_0x321f3d)}};this[_0x1189db(0x2d3)]['send'](_0x49e93d,this['unitID']);},tt)),(this[_0x2a2ae9(0x17e)]=_0x7244b1,this[_0x2a2ae9(0x2d3)]=_0x4adffe,this['_injector']=_0x2e1cd6,this[_0x2a2ae9(0x22a)]=_0x4a97b6,this[_0x2a2ae9(0x2c9)]=_0x571d0b,this['_syncEditingCollabCursorService']=_0x56d441,this[_0x2a2ae9(0x378)]=_0x342557,this[_0x2a2ae9(0x31f)]=_0xb2a098,this[_0x2a2ae9(0x1c4)]=_0x335eac);}get[_0x568b38(0x1fb)](){const _0xb29c8f=_0x568b38;return this[_0xb29c8f(0x1c2)]['getValue']();}get[_0x568b38(0x357)](){const _0x4da1c8=_0x568b38;return this[_0x4da1c8(0x2a6)][_0x4da1c8(0x282)]();}[_0x568b38(0x1a6)](){const _0xd3595d=_0x568b38;super[_0xd3595d(0x1a6)](),this[_0xd3595d(0x1c2)][_0xd3595d(0x1c7)](new Map()),this[_0xd3595d(0x1c2)][_0xd3595d(0x351)](),this[_0xd3595d(0x2a6)]['next']([]),this[_0xd3595d(0x2a6)]['complete']();}[_0x568b38(0x393)](){const _0x1cc214=_0x568b38;this[_0x1cc214(0x246)]||(this[_0x1cc214(0x246)]=!0x0,this['_session'][_0x1cc214(0x3ae)]['pipe'](d[_0x1cc214(0x33c)](this[_0x1cc214(0x221)]))['subscribe'](_0x2be0ce=>{const _0x5a00bf=_0x1cc214;_0x2be0ce===u['SessionStatus'][_0x5a00bf(0x1dc)]?this['_toggleOnline']():this['_toggleOffline']();}),this['_session'][_0x1cc214(0x235)][_0x1cc214(0x1db)](d[_0x1cc214(0x33c)](this[_0x1cc214(0x221)]))[_0x1cc214(0x152)](_0x579d2c=>{const _0x165ec6=_0x1cc214,_0x441ef1=_0x579d2c[_0x165ec6(0x329)];_0x441ef1===m[_0x165ec6(0x381)][_0x165ec6(0x2af)]&&this['_onCursorUpdate'](_0x579d2c),_0x441ef1===m[_0x165ec6(0x381)]['USERS_LEAVE']&&this[_0x165ec6(0x218)](_0x579d2c);}),this[_0x1cc214(0x369)](this[_0x1cc214(0x1c4)][_0x1cc214(0x171)](_0x5de38e=>{const _0x40fa29=_0x1cc214,_0xa3073f=_0x5de38e[_0x40fa29(0x376)];_0xa3073f!=null&&this[_0x40fa29(0x14d)]&&_0x5de38e['id']===W['SetTextSelectionsOperation']['id']&&_0xa3073f['unitId']===this[_0x40fa29(0x17e)]&&_0xa3073f['isEditing']===!0x1&&_0xa3073f['ranges'][_0x40fa29(0x2bd)]>0x0&&this[_0x40fa29(0x29e)](_0xa3073f[_0x40fa29(0x2d4)]);})),this[_0x1cc214(0x2ee)]['collabCursorState$']['pipe'](d[_0x1cc214(0x33c)](this['dispose$']))[_0x1cc214(0x152)](_0x2477e1=>{const _0x4a7c44=_0x1cc214;if((_0x2477e1==null?void 0x0:_0x2477e1[_0x4a7c44(0x17e)])!==this[_0x4a7c44(0x17e)])return;const _0x5457ff={'eventID':m[_0x4a7c44(0x381)][_0x4a7c44(0x2af)],'data':_0x2477e1};this[_0x4a7c44(0x1d9)](_0x5457ff);}),this['disposeWithMe'](this[_0x1cc214(0x1c4)]['onCommandExecuted'](_0x52c879=>{const _0x5f2b06=_0x1cc214;if(_0x52c879[_0x5f2b06(0x376)]==null)return;const _0x690533=_0x52c879[_0x5f2b06(0x376)];if(_0x52c879['id']!==W[_0x5f2b06(0x24e)]['id']||_0x690533[_0x5f2b06(0x203)]!==this[_0x5f2b06(0x17e)])return;const _0x3df0fd={'id':_0x5f2b06(0x254),'params':_0x690533},_0x280c1d=this['cursorInfo'];for(const [_0x317dd7,_0x58a554]of _0x280c1d){const _0x36f8f9={'id':'doc.mutation.rich-text-editing','params':{'unitId':this[_0x5f2b06(0x17e)],'actions':null,'textRanges':_0x58a554['ranges']}},_0x498613=this[_0x5f2b06(0x378)][_0x5f2b06(0x3ac)](_0x3df0fd,_0x36f8f9,!0x1);if(m[_0x5f2b06(0x24b)](_0x498613))throw _0x498613[_0x5f2b06(0x2d0)];_0x280c1d[_0x5f2b06(0x379)](_0x317dd7,{..._0x58a554,'ranges':_0x498613[_0x5f2b06(0x3a4)][_0x5f2b06(0x376)]['textRanges']});}queueMicrotask(()=>{const _0x16f5dd=_0x5f2b06;this['_cursorInfo$'][_0x16f5dd(0x1c7)](_0x280c1d);});})));}[_0x568b38(0x1d9)](_0x2f82dd){const _0x4d9d3b=_0x568b38;var _0x2b3009,_0x202b65;const {memberID:_0x1b7ac4,selection:_0x3a9c46}=_0x2f82dd[_0x4d9d3b(0x2e2)],_0xf77dd8=Je(_0x3a9c46),_0x360570=(_0x202b65=(_0x2b3009=this[_0x4d9d3b(0x2c9)][_0x4d9d3b(0x3a1)](this[_0x4d9d3b(0x17e)],_0x1b7ac4))==null?void 0x0:_0x2b3009[_0x4d9d3b(0x39e)])!=null?_0x202b65:_0x4d9d3b(0x3af),_0x737630={'color':this[_0x4d9d3b(0x22a)][_0x4d9d3b(0x215)](_0x1b7ac4),'name':_0x360570,'ranges':_0xf77dd8},_0xa507d=this['cursorInfo'];_0xa507d[_0x4d9d3b(0x379)](_0x1b7ac4,_0x737630),this['_cursorInfo$'][_0x4d9d3b(0x1c7)](_0xa507d);}['_onCursorDelete'](_0x3ffe4d){const _0x5be4ce=_0x568b38,{memberID:_0x40a450}=_0x3ffe4d[_0x5be4ce(0x2e2)],_0x558171=this[_0x5be4ce(0x1fb)];_0x558171[_0x5be4ce(0x144)](_0x40a450),this['_cursorInfo$'][_0x5be4ce(0x1c7)](_0x558171);}[_0x568b38(0x204)](){const _0x3548f5=_0x568b38;var _0x495850;if(this[_0x3548f5(0x14d)]=!0x0,((_0x495850=this['_univerInstanceService'][_0x3548f5(0x32e)]())==null?void 0x0:_0x495850[_0x3548f5(0x2e8)]())!==this[_0x3548f5(0x17e)])return;const _0x5e54f5=this[_0x3548f5(0x2ba)][_0x3548f5(0x1c5)](W[_0x3548f5(0x319)])[_0x3548f5(0x2b2)]();Array[_0x3548f5(0x26d)](_0x5e54f5)&&_0x5e54f5[_0x3548f5(0x2bd)]>0x0&&this[_0x3548f5(0x29e)](_0x5e54f5);}[_0x568b38(0x176)](){const _0x18835e=_0x568b38;this[_0x18835e(0x14d)]=!0x1;}};fe=Qe([L(0x2,a[_0x568b38(0x26b)](a[_0x568b38(0x2b1)])),L(0x3,a[_0x568b38(0x26b)](me)),L(0x4,a[_0x568b38(0x26b)](u[_0x568b38(0x157)])),L(0x5,a['Inject'](Ce)),L(0x6,m[_0x568b38(0x13e)]),L(0x7,a[_0x568b38(0x1a5)]),L(0x8,a[_0x568b38(0x168)])],fe);var st=Object['getOwnPropertyDescriptor'],it=(_0xc9be84,_0x7a3c98,_0x4fdbb7,_0x459519)=>{const _0x35022b=_0x568b38;for(var _0x4cf5a4=_0x459519>0x1?void 0x0:_0x459519?st(_0x7a3c98,_0x4fdbb7):_0x7a3c98,_0x149eb8=_0xc9be84[_0x35022b(0x2bd)]-0x1,_0x2a1ae9;_0x149eb8>=0x0;_0x149eb8--)(_0x2a1ae9=_0xc9be84[_0x149eb8])&&(_0x4cf5a4=_0x2a1ae9(_0x4cf5a4)||_0x4cf5a4);return _0x4cf5a4;},A=(_0x2a7eef,_0x29393a)=>(_0x533359,_0x514ff0)=>_0x29393a(_0x533359,_0x514ff0,_0x2a7eef);const nt=0x12c,rt=0x64,ot=()=>{let _0x4abb62=[],_0x3b2ec7=!0x1;return _0x1bfa22=>{const _0x2cd3eb=_0x1323;_0x4abb62[_0x2cd3eb(0x284)](_0x1bfa22),_0x3b2ec7||(_0x3b2ec7=!0x0,setTimeout(()=>{const _0x5b120c=_0x2cd3eb;_0x4abb62[_0x5b120c(0x13c)](_0x22f8bf=>_0x22f8bf()),_0x4abb62=[],_0x3b2ec7=!0x1;}));};};let Se=class extends a[_0x568b38(0x327)]{constructor(_0x2710e0,_0x296490,_0x49cb9e,_0x2cacdf,_0x4ab539,_0x104d0e,_0x26cda0,_0x2fee60){const _0x12c46c=_0x568b38;super(),h(this,'_online',!0x1),h(this,_0x12c46c(0x246),!0x1),h(this,'_cursorInfo$',new d[(_0x12c46c(0x274))](new Map())),h(this,_0x12c46c(0x129),this[_0x12c46c(0x1c2)]['asObservable']()),h(this,_0x12c46c(0x2a6),new d[(_0x12c46c(0x274))]([])),h(this,'roomMembers$',this[_0x12c46c(0x2a6)][_0x12c46c(0x1db)](d[_0x12c46c(0x32f)](nt))),h(this,_0x12c46c(0x29e),a[_0x12c46c(0x257)]((_0x389e54,_0x42e3f4)=>{const _0x51a4d1=_0x12c46c,_0x5bdb17={'eventID':m[_0x51a4d1(0x381)][_0x51a4d1(0x2af)],'data':{'unitID':this[_0x51a4d1(0x17e)],'memberID':this[_0x51a4d1(0x2d3)][_0x51a4d1(0x1d3)](),'selection':Ee[_0x51a4d1(0x173)](_0x389e54,_0x42e3f4['range'])}};this[_0x51a4d1(0x2d3)]['send'](_0x5bdb17,this[_0x51a4d1(0x17e)]);},rt)),(this[_0x12c46c(0x17e)]=_0x2710e0,this[_0x12c46c(0x2d3)]=_0x296490,this['_injector']=_0x49cb9e,this[_0x12c46c(0x22a)]=_0x2cacdf,this['_memberService']=_0x4ab539,this['_univerInstanceService']=_0x104d0e,this[_0x12c46c(0x1c4)]=_0x26cda0,this[_0x12c46c(0x333)]=_0x2fee60);}get['cursorInfo'](){const _0xe1ac47=_0x568b38;return this[_0xe1ac47(0x1c2)][_0xe1ac47(0x282)]();}get[_0x568b38(0x357)](){return this['_roomMembers$']['getValue']();}[_0x568b38(0x1a6)](){const _0x1f95de=_0x568b38;super[_0x1f95de(0x1a6)](),this[_0x1f95de(0x1c2)][_0x1f95de(0x1c7)](new Map()),this[_0x1f95de(0x1c2)][_0x1f95de(0x351)](),this['_roomMembers$'][_0x1f95de(0x1c7)]([]),this[_0x1f95de(0x2a6)][_0x1f95de(0x351)]();}['init'](){const _0x106684=_0x568b38;this[_0x106684(0x246)]||(this[_0x106684(0x246)]=!0x0,this[_0x106684(0x2d3)][_0x106684(0x3ae)]['pipe'](d[_0x106684(0x33c)](this[_0x106684(0x221)]))['subscribe'](_0x12eeda=>{const _0x2af5b0=_0x106684;_0x12eeda===u[_0x2af5b0(0x22c)][_0x2af5b0(0x1dc)]?this[_0x2af5b0(0x204)]():this[_0x2af5b0(0x176)]();}),this[_0x106684(0x2d3)]['event$'][_0x106684(0x1db)](d[_0x106684(0x33c)](this[_0x106684(0x221)]))['subscribe'](_0x219ede=>{const _0x470362=_0x106684,_0x159519=_0x219ede[_0x470362(0x329)];_0x159519===m[_0x470362(0x381)]['UPDATE_CURSOR']&&this['_onCursorUpdate'](_0x219ede),_0x159519===m[_0x470362(0x381)][_0x470362(0x2bb)]&&this[_0x470362(0x218)](_0x219ede);}),this[_0x106684(0x238)](),this['disposeWithMe'](this['_commandService'][_0x106684(0x171)](_0x146333=>{const _0x4e0234=_0x106684;if(this['_online']&&_0x146333['id']===g[_0x4e0234(0x361)]['id']&&_0x146333[_0x4e0234(0x376)][_0x4e0234(0x203)]===this[_0x4e0234(0x17e)]){const _0x423bae=_0x146333[_0x4e0234(0x376)];this['_updateLocalCursor'](_0x423bae[_0x4e0234(0x33a)],_0x423bae[_0x4e0234(0x158)][0x0]);}})));}['_onCursorUpdate'](_0x1b5888){const _0x17fcd8=_0x568b38;var _0x5af181,_0x5a8a6f;const {memberID:_0x1ae7ce,selection:_0x5b007b}=_0x1b5888[_0x17fcd8(0x2e2)],{sheetName:_0x4b9f21,range:_0x325f75}=Ee['deserializeRangeWithSheet'](_0x5b007b),_0x1d9cfd={'name':(_0x5a8a6f=(_0x5af181=this[_0x17fcd8(0x2c9)][_0x17fcd8(0x3a1)](this[_0x17fcd8(0x17e)],_0x1ae7ce))==null?void 0x0:_0x5af181[_0x17fcd8(0x39e)])!=null?_0x5a8a6f:_0x17fcd8(0x3af),'range':this[_0x17fcd8(0x1cf)](_0x4b9f21,_0x325f75),'sheetID':_0x4b9f21,'color':this[_0x17fcd8(0x22a)]['assignAColorForMemberID'](_0x1ae7ce),'selection':_0x5b007b},_0x2625b5=this[_0x17fcd8(0x1fb)];_0x2625b5[_0x17fcd8(0x379)](_0x1ae7ce,_0x1d9cfd),this[_0x17fcd8(0x1c2)]['next'](_0x2625b5);}['_onCursorDelete'](_0x7ab667){const _0x4b1882=_0x568b38,{memberID:_0xe892eb}=_0x7ab667['data'],_0x526464=this[_0x4b1882(0x1fb)];_0x526464[_0x4b1882(0x144)](_0xe892eb),this['_cursorInfo$'][_0x4b1882(0x1c7)](_0x526464);}['_getMergeRange'](_0x50871f,_0x2a64e2){const _0x79e999=_0x568b38;var _0xb144cb,_0x335b2a;const _0x206844=(_0x335b2a=(_0xb144cb=this[_0x79e999(0x31f)][_0x79e999(0x240)](this['unitID']))==null?void 0x0:_0xb144cb[_0x79e999(0x149)](_0x50871f))==null?void 0x0:_0x335b2a[_0x79e999(0x2c7)]();return(_0x206844==null?void 0x0:_0x206844[_0x79e999(0x20d)](_0x17e7da=>a[_0x79e999(0x28c)][_0x79e999(0x1d8)](_0x17e7da,_0x2a64e2)))||_0x2a64e2;}[_0x568b38(0x238)](){const _0x2c44e2=_0x568b38,_0x356e24=new a[(_0x2c44e2(0x358))](),_0x429599=ot(),_0x56fefa=()=>{const _0x3443b2=_0x2c44e2;_0x356e24[_0x3443b2(0x1a6)]();const _0x37e7d7=(_0x24ab6c,_0x41cfda,_0x50746c,_0x55677b)=>{const _0x5b6156=_0x3443b2;let _0x6842f8=[];switch(_0x24ab6c['id']){case g[_0x5b6156(0x33d)]['DeleteRangeMoveLeftCommandId']:{_0x6842f8=g[_0x5b6156(0x295)](_0x24ab6c,_0x55677b);break;}case g[_0x5b6156(0x33d)][_0x5b6156(0x309)]:{_0x6842f8=g['handleDeleteRangeMoveUp'](_0x24ab6c,_0x55677b);break;}case g[_0x5b6156(0x33d)][_0x5b6156(0x241)]:{_0x6842f8=g[_0x5b6156(0x2b9)](_0x24ab6c,_0x55677b);break;}case g[_0x5b6156(0x33d)][_0x5b6156(0x341)]:{_0x6842f8=g[_0x5b6156(0x12b)](_0x24ab6c,_0x55677b);break;}case g[_0x5b6156(0x33d)]['InsertRangeMoveRightCommandId']:{_0x6842f8=g[_0x5b6156(0x307)](_0x24ab6c,_0x55677b);break;}case g[_0x5b6156(0x33d)][_0x5b6156(0x36d)]:{_0x6842f8=g[_0x5b6156(0x151)](_0x24ab6c,_0x55677b);break;}case g[_0x5b6156(0x33d)]['MoveRangeCommandId']:{_0x6842f8=g['handleMoveRange'](_0x24ab6c,_0x55677b);break;}case g[_0x5b6156(0x33d)][_0x5b6156(0x179)]:{_0x6842f8=g[_0x5b6156(0x143)](_0x24ab6c,_0x55677b);break;}case g[_0x5b6156(0x33d)]['RemoveRowCommandId']:{_0x6842f8=g['handleIRemoveRow'](_0x24ab6c,_0x55677b);break;}}const _0xe8af4a=g['runRefRangeMutations'](_0x6842f8,_0x55677b),_0x1081c5=this[_0x5b6156(0x1fb)][_0x5b6156(0x1c5)](_0x41cfda);if(_0x1081c5&&_0xe8af4a){const _0x44d3fe={..._0x1081c5,'range':_0xe8af4a};this[_0x5b6156(0x1fb)]['set'](_0x41cfda,_0x44d3fe),_0x429599(()=>{const _0x199703=_0x5b6156,_0x40de94=this[_0x199703(0x333)][_0x199703(0x392)](_0xe8af4a,_0x4da305=>(_0x40de94[_0x199703(0x1a6)](),_0x37e7d7(_0x4da305,_0x41cfda,_0x50746c,_0xe8af4a)));_0x356e24[_0x199703(0x3ab)](_0x40de94);});}return{'redos':[],'undos':[]};};this[_0x3443b2(0x1fb)][_0x3443b2(0x13c)]((_0x2b91ee,_0x1b0961)=>{const _0x4c62e5=_0x3443b2,{range:_0x2b1a24,sheetID:_0x45a08c}=_0x2b91ee,_0x3965cc=this['_refRangeService'][_0x4c62e5(0x392)](_0x2b1a24,_0x2dd938=>(_0x3965cc['dispose'](),_0x37e7d7(_0x2dd938,_0x1b0961,_0x45a08c,_0x2b1a24)));_0x356e24[_0x4c62e5(0x3ab)](_0x3965cc);});};this[_0x2c44e2(0x369)](a[_0x2c44e2(0x373)](this[_0x2c44e2(0x1c2)][_0x2c44e2(0x152)](()=>{_0x56fefa();})));}[_0x568b38(0x204)](){const _0x348e7a=_0x568b38;var _0x18c95d,_0x5ce3b1;if(this[_0x348e7a(0x14d)]=!0x0,((_0x18c95d=this['_univerInstanceService'][_0x348e7a(0x32e)]())==null?void 0x0:_0x18c95d[_0x348e7a(0x2e8)]())!==this[_0x348e7a(0x17e)])return;const _0x45917e=(_0x5ce3b1=this['_injector'][_0x348e7a(0x1c5)](g[_0x348e7a(0x273)])[_0x348e7a(0x2cb)]())==null?void 0x0:_0x5ce3b1[0x0],_0x50a62a=this[_0x348e7a(0x31f)][_0x348e7a(0x17c)](a['UniverInstanceType'][_0x348e7a(0x27b)])[_0x348e7a(0x16b)]();_0x45917e&&_0x50a62a&&this['_updateLocalCursor'](_0x50a62a[_0x348e7a(0x2cc)](),_0x45917e);}[_0x568b38(0x176)](){this['_online']=!0x1;}};Se=it([A(0x2,a[_0x568b38(0x26b)](a[_0x568b38(0x2b1)])),A(0x3,a['Inject'](me)),A(0x4,a['Inject'](u['MemberService'])),A(0x5,a[_0x568b38(0x1a5)]),A(0x6,a[_0x568b38(0x168)]),A(0x7,a[_0x568b38(0x26b)](g[_0x568b38(0x1df)]))],Se);var at=Object[_0x568b38(0x196)],ct=(_0xd23777,_0x50dad2,_0x8ae004,_0x1edf01)=>{const _0x181cdf=_0x568b38;for(var _0x885946=_0x1edf01>0x1?void 0x0:_0x1edf01?at(_0x50dad2,_0x8ae004):_0x50dad2,_0x4dc7c0=_0xd23777[_0x181cdf(0x2bd)]-0x1,_0x18916b;_0x4dc7c0>=0x0;_0x4dc7c0--)(_0x18916b=_0xd23777[_0x4dc7c0])&&(_0x885946=_0x18916b(_0x885946)||_0x885946);return _0x885946;},ie=(_0x38287a,_0x5d7276)=>(_0x469c1c,_0x42b9f5)=>_0x5d7276(_0x469c1c,_0x42b9f5,_0x38287a);let x=class extends a[_0x568b38(0x327)]{constructor(_0xb92734,_0x341c7f,_0x516732){const _0x41e53f=_0x568b38;super(),h(this,_0x41e53f(0x355),new Map()),h(this,_0x41e53f(0x33b),new d[(_0x41e53f(0x37b))]()),(this[_0x41e53f(0x31f)]=_0xb92734,this['_injector']=_0x341c7f,this[_0x41e53f(0x2fd)]=_0x516732,this[_0x41e53f(0x246)]());}['dispose'](){const _0x2698ec=_0x568b38;super['dispose'](),this[_0x2698ec(0x33b)][_0x2698ec(0x351)](),this[_0x2698ec(0x355)][_0x2698ec(0x13c)](_0x49f7c1=>_0x49f7c1[_0x2698ec(0x1a6)]());}['getCollabCursors$'](_0x49cfad){const _0xca86e0=_0x568b38;return this[_0xca86e0(0x355)][_0xca86e0(0x347)](_0x49cfad)?this[_0xca86e0(0x355)]['get'](_0x49cfad)[_0xca86e0(0x129)]:this[_0xca86e0(0x33b)][_0xca86e0(0x1db)](d[_0xca86e0(0x39d)](_0x30ed8f=>_0x30ed8f['unitID']===_0x49cfad),d[_0xca86e0(0x2ff)](_0x441177=>_0x441177[_0xca86e0(0x129)]));}[_0x568b38(0x246)](){const _0x405d9a=_0x568b38;this[_0x405d9a(0x31f)][_0x405d9a(0x1d0)](a[_0x405d9a(0x15a)]['UNIVER_SHEET'])['pipe'](d[_0x405d9a(0x33c)](this[_0x405d9a(0x221)]))['subscribe'](async _0x1f3760=>{const _0x1fc440=_0x405d9a,_0x54b3fe=_0x1f3760['getUnitId'](),_0x47f422=await this['_startSheetCollabCursor'](_0x54b3fe);this[_0x1fc440(0x33b)]['next'](_0x47f422),this['_entities'][_0x1fc440(0x379)](_0x54b3fe,_0x47f422);}),this[_0x405d9a(0x31f)][_0x405d9a(0x1d0)](a[_0x405d9a(0x15a)]['UNIVER_DOC'])[_0x405d9a(0x1db)](d[_0x405d9a(0x33c)](this[_0x405d9a(0x221)]))[_0x405d9a(0x1db)](d['filter'](_0x1819a5=>!_0x1819a5[_0x405d9a(0x2e8)]()['startsWith']('__')))['subscribe'](async _0x4ecd74=>{const _0x2d1bdf=_0x405d9a,_0x297c63=_0x4ecd74[_0x2d1bdf(0x2e8)](),_0x3f7f5e=await this[_0x2d1bdf(0x340)](_0x297c63);this['_entityInit$'][_0x2d1bdf(0x1c7)](_0x3f7f5e),this[_0x2d1bdf(0x355)][_0x2d1bdf(0x379)](_0x297c63,_0x3f7f5e);}),d[_0x405d9a(0x1a8)](this['_univerInstanceService'][_0x405d9a(0x226)](a['UniverInstanceType'][_0x405d9a(0x371)]),this['_univerInstanceService'][_0x405d9a(0x226)](a['UniverInstanceType'][_0x405d9a(0x27b)]))[_0x405d9a(0x1db)](d['takeUntil'](this[_0x405d9a(0x221)]))[_0x405d9a(0x152)](_0x412b71=>{const _0x166c87=_0x405d9a,_0x3f8c82=_0x412b71[_0x166c87(0x2e8)](),_0x5267de=this['_entities'][_0x166c87(0x1c5)](_0x3f8c82);_0x5267de&&(_0x5267de['dispose'](),this[_0x166c87(0x355)][_0x166c87(0x144)](_0x3f8c82));});}async[_0x568b38(0x2ce)](_0x56a503){const _0x44fb38=_0x568b38,_0x4b3dfb=await this[_0x44fb38(0x2fd)][_0x44fb38(0x1c3)](_0x56a503),_0x380a57=this[_0x44fb38(0x2ba)][_0x44fb38(0x259)](Se,_0x56a503,_0x4b3dfb);return _0x380a57['init'](),_0x380a57;}async[_0x568b38(0x340)](_0x931cf5){const _0x2721d1=_0x568b38,_0x979d28=await this[_0x2721d1(0x2fd)][_0x2721d1(0x1c3)](_0x931cf5),_0x19d826=this[_0x2721d1(0x2ba)]['createInstance'](fe,_0x931cf5,_0x979d28);return _0x19d826[_0x2721d1(0x393)](),_0x19d826;}};x=ct([ie(0x0,a[_0x568b38(0x1a5)]),ie(0x1,a[_0x568b38(0x26b)](a[_0x568b38(0x2b1)])),ie(0x2,a[_0x568b38(0x26b)](u[_0x568b38(0x38b)]))],x);const q=0x14,Re=0xc8,ne=0x4,lt=0x5;function _t(_0x63fe0e,_0x1ef05f){const _0x505928=_0x568b38;let {radius:_0x372a2a,width:_0x877257,height:_0x21b571}=_0x1ef05f;_0x372a2a=_0x372a2a!=null?_0x372a2a:0x0,_0x877257=_0x877257!=null?_0x877257:0x1e,_0x21b571=_0x21b571!=null?_0x21b571:0x1e;let _0x5b73f6=0x0,_0x364f32=0x0,_0x57a45d=0x0;_0x5b73f6=_0x364f32=_0x57a45d=Math[_0x505928(0x1b0)](_0x372a2a,_0x877257/0x2,_0x21b571/0x2),_0x63fe0e[_0x505928(0x364)](),_0x63fe0e['moveTo'](_0x5b73f6,0x0),_0x63fe0e['lineTo'](_0x877257-_0x364f32,0x0),_0x63fe0e['arc'](_0x877257-_0x364f32,_0x364f32,_0x364f32,Math['PI']*0x3/0x2,0x0,!0x1),_0x63fe0e[_0x505928(0x164)](_0x877257,_0x21b571-_0x57a45d),_0x63fe0e['arc'](_0x877257-_0x57a45d,_0x21b571-_0x57a45d,_0x57a45d,0x0,Math['PI']/0x2,!0x1),_0x63fe0e[_0x505928(0x164)](0x0,_0x21b571),_0x63fe0e['lineTo'](0x0,_0x5b73f6),_0x63fe0e[_0x505928(0x35e)](_0x5b73f6,_0x5b73f6,_0x5b73f6,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x63fe0e[_0x505928(0x12c)](),_0x1ef05f[_0x505928(0x2e6)]&&(_0x63fe0e[_0x505928(0x3a7)](),_0x63fe0e[_0x505928(0x264)]=_0x1ef05f[_0x505928(0x2e6)],_0x1ef05f[_0x505928(0x280)]==='evenodd'?_0x63fe0e[_0x505928(0x2e6)](_0x505928(0x383)):_0x63fe0e[_0x505928(0x2e6)](),_0x63fe0e[_0x505928(0x14f)]());}function _0x3324(){const _0x1f0b27=['USER_NOT_INVITED_CODE','column','_name','UPDATE_CURSOR','_unitStatus','Injector','getDocRanges','ThemeService','HTTPService','unit','_scene','isTransformMutationsWithChangesetSuccess','DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT','handleInsertCol','_injector','USERS_LEAVE','setParam','length','@univerjs/sheets','_transformPreviousActiveRange','jsx','defIds','@univerjs/rpc','session.will-retry','transformIMECache','show','getRangePointData','getMergeData','wsSessionTicketUrl','_memberService','DOC_RANGE_TYPE','getCurrentSelections','getSheetId','isActive','_startSheetCollabCursor','VIEW_MAIN','error','actions','getRelativeToViewportCoord','_session','ranges','BrowserCollaborationSocketService','IConfigService','PY_RUNTIME_SCRIPT_ERROR','APPLY_NON_SEQUENTIAL_REVISION','DocIMEInputManagerService','m1Prime','_cursor','2783130RHuaDu','_docSyncEditingCollabCursorService','transform','@univerjs/engine-formula','redoState','YUUMI_ASYNCIO_CANCELLED','data','red300','INVALID_ARGUMENT','_clearOtherTimers','fill','_hideTimer','getUnitId','EMAIL_HAS_BEEN_BOUND','@univerjs/core','OTHER_CLIENTS_EDITING','2478gvAmsU','round','_syncEditingCollabCursorService','univerjs-icon\x20univerjs-icon-','SetWorksheetActivateCommand','univer-flex\x20univer-mr-2\x20univer-text-[20px]','@univerjs/network','_configService','SNAPSHOT_HAS_BEEN_REMOVED','svg','INVITE_CODE_HAS_BEEN_UES','Module','FromArray','LICENSE_IMPORT_SIZE_EXCEEDED','extend','TEXT','[CollaborationDataLoaderController]','_collabSessionService','replaceDocRanges','switchMap','COMPLETION_FINISHED','JOIN_ROOM_FAILED','getCellPositionByOffset','52qKEJJo','YUUMI_URL_COL_OUT_OF_RANGE','IRenderManagerService','_assignedColors','handleInsertRangeMoveRight','#fff','DeleteRangeMoveUpCommandId','univer-text-[14px]\x20univer-leading-[32px]\x20univer-text-gray-600','collabCursorState$','getOffsetConfig','location','Disposable','bottom','pushState','OffLineSingle','collabStatus.syncing','engine','SHEET_VIEWPORT_KEY','_scheduleSaving','ACTIVE_UNIT_EVENT_CHANNEL','drawWith','_lastPointer','DocSelectionManagerService','displayName','ILocalCacheService','onLocalMutation','some','type','_univerInstanceService','toRgbString','result','CollaborationDataLoaderController','getItem','Error','_shapes','assign','RxDisposable','_docClipboardService','eventID','useRef','onRendered','transformByState','deepClone','getFocusedUnit','debounceTime','indexOf','_handleLeaveEvent','fromEvent','_refRangeService','YUUMI_RATE_OVER_LIMIT','_getSheetObject','collab-client.tooltip.reconnect','height','CollaborationSocketService','SOCKET_FAILED','subUnitId','_entityInit$','takeUntil','EffectRefRangId','onStarting','apply','_startDocCollabCursor','InsertRangeMoveDownCommandId','docStateChange$','_cursorShapes','_initCommandExecutedListener','_dataLoaderService','ALREADY_EXISTS','has','_docTransformSelectionsService','INVITE_CODE_REQUIRED','LICENSE_EXPORT_SIZE_EXCEEDED','_transformHistoryAndStateStack','LOCAL_CACHE_INTERVAL','gold400','session.connection-failed','_colorIndex','1430622AVgFUN','complete','_backgroundColor','url(#$1','CHANGESET_REVISION_CONFILICT','_entities','ticket','roomMembers','DisposableCollection','defs','setTimeout','_logService','IBeforeCloseService','useCallback','arc','row','YUUMI_UNABLE_LOAD_URL','SetSelectionsOperation','createSocket','SYNCED','beginPath','UNDEFINED','OTHER_CLIENT_EDITING','M0\x200H16V16H0z','post','disposeWithMe','CommandType','toStringTag','idSuffix','InsertRowCommandId','map','SOCKET_FAILED_RETRY','max','UNIVER_DOC','_textBubble','toDisposable','on-line-single','none','params','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','_transformService','set','IURLService','Subject','_renderManagerService','font','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','setConfig','react/jsx-runtime','CollaborationEvent','mapTo','evenodd','newValue','getRenderById','ISocketService','loadOfflineData','RegularPolygon','DocCollaborationEntity','fromEventSubject','CollaborationSessionService','getConfig','memberID','addEventListener','onTransformChange$','history','getCoordByCell','registerRefRange','init','permission.title','_uiPartsService','IImageIoService','CollaborationUIEventService','HEADER_MENU','path','getVpScrollXYInfoByPosToVp','LOGIN_FAILED','_httpService','filter','name','_cachedData','FETCH_MISS','getMember','_anchorDot','getUnitStatus$','m2Prime','setItem','getLocalCacheKey','save','_messageService','_initStatusListener','setStateCache','add','transformMutation','_config','sessionStatus$','Unknown\x20user','cursorInfo$','updateOfflineData','handleInsertRangeMoveDown','closePath','skeleton','Tools','_getAnchorBounding','concat','source','searchParams','selection','setAlpha','exhaustSavingTask','Warning','useDependency','SUBMIT_CHANGESET_TIMEOUT','off-line-single','SheetSkeletonManagerService','_notificationService','forEach','current','ITransformService','_updateSubUnitFromURLParams','3hlhsWs','icon','hide','handleIRemoveCol','delete','RECT','collab-text-range-','urlChange$','Workbook','getSheetBySheetId','off-line-single_clip0_910_343','onMouseMove','Vector2','_online','APPLY_DUPLICATED','restore','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','handleInsertRow','subscribe','_disabled','_id','tag','getParam','MemberService','selections','className','UniverInstanceType','getUndoRedoMutationParamsCache','_collabCursorController','then','on-line-single_clip0_910_349','getCollabEntity$','backgroundColor','IUIPartsService','getStateCache','subscribeEvent','lineTo','mutations','_updateCollabCursors','SetDocZoomRatioOperation','ICommandService','body','_scheduleClearOtherTimer','getActiveSheet','setShapeProps','_eventUnsubscribe','APPLY_REJECT','from','uni.network.url-service','onCommandExecuted','CLOSE_ROOM','serializeRangeWithSheet','forwardRef','_scheduleHeartbeat','_toggleOffline','_imageIoService','CollaborationUIEventId','RemoveColCommandId','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','collabStatus.offline','getCurrentUnitForType','sheetID','unitID','setUndoRedoMutationParamsCache','MessageType','permission.content','defineProperty','saveTaskMap','ENSURE_SNAPSHOT_EXECUTION','findNodePositionByCharIndex','DesktopCollaborationStatusDisplayController','onPointerEnter$','toString','NO_OTHER_CLIENTS_EDITING','collabStatus.synced','_initStatusComponent','YUUMI_SUBSCRIPTION_NOT_FOUND','_collabCursorState$','children','LOCAL_CACHE_INTERVAL_KEY','connectInjector','syncEditingCollabCursor','color','INVALID_INVITE_CODE','session.collaboration-timeout','_saveCache','getOwnPropertyDescriptor','editingUnit','_instanceService','combineLatest','transformSelections','collaboration.closeRoom','parse','executeCommand','replaceState','call','endRow','PERMISSION_DENIED','flatMap','range','verdancy600','IUniverInstanceService','dispose','asObservable','merge','whenReady','_docTransformStateCacheService','purple300','_initDependencies','key','0\x200\x2017\x2016','black','min','jsxs','120rbJmJG','YUUMI_NO_CUBOID_FOR_QUESTION','_docTransformIMECacheService','Optional','attrs','_removeClearOtherTimer','@univerjs/docs-ui','COLORS','_sheetSkeletonManagerService','@univerjs/drawing','_drawTextRange','DataLoaderService','UniverCollaborationClientUIPlugin','getSheetObject','_collaborationUIEventService','transformRemoteChangeset','_cursorInfo$','requireSession','_commandService','get','_urlService','next','_ensureSubject','storage','resize','makeDirty','getAncestorScale','ISnapshotServerService','hovered','_getMergeRange','getTypeOfUnitAdded$','_unitOnClients','_handleJoinEvent','getMemberID','triggerDblclick','getCollabCursors$','MOBILE_HAS_BEEN_BOUND','_initEvent','contains','_onCursorUpdate','BuiltInUIPart','pipe','ONLINE','_refreshCollabCursors','unsubscribe','RefRangeService','_selfUnitIDs','replace','startColumn','UNIVER_COLLABORATION_CLIENT_WEB_PLUGIN','generateRandomId','onPointerMove$','@univerjs/design','substring','_initResize','_docSkeleton','unshift','OFFLINE','UNRECOGNIZED','8CBwcTg','getSkeleton','NodePositionConvertToCursor','_beforeCloseService','disableLocalCache','reconnect','collaboration-client.offline-data-not-saved','transformStateCache','_removeCollabCursors','_collaborationController','UnitStatus','_localStorageService','TOO_MANY_REQUESTS','SheetCollabCursorShape','cursorInfo','_labelPosition','imageSourceType','LICENSE_DISTRO_REJECTED','LocaleService','@univerjs/ui','url(#off-line-single_clip0_910_343)','debug','unitId','_toggleOnline','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','collabStatus.conflict','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','Plugin','CONNECTOR_DATA_TOO_LARGE','APPLY_PERMISSION_DENIED','ILogService','TEXT_RANGE_LAYER_INDEX','find','sessionTicket','WebURLService','sheetId','getOwnPropertySymbols','width','with','CollaborationController','assignAColorForMemberID','string','undoState','_onCursorDelete','override','createElement','WebBrowserSingleActiveUnitService','currentSkeleton$','SNAPSHOT_INVALID_SNAPSHOT','_handleEvent','#FFF','ColorKit','dispose$','stringify','826573amHPSc','unload','_updateURLWithCurrentState','getTypeOfUnitDisposed$','_heartbeatTimer','_context','_hovered','_colorAssignService','distinctUntilChanged','SessionStatus','fillText','OnLineSingle','_anchor','_handleHover','xlink:href','1893162ZLlgZS','getCurrentRevOfUnit','_setupSubUnitSync','event$','setInterval','_initEntityListener','_onRefRangeChange','CollaborationStatusDisplay','collab-text-anchor-','collab-rect-range-','_getSaveTimeout','activeSheet$','clearInterval','_themeService','getUniverSheetInstance','InsertColCommandId','IRemoteInstanceService','Rect','_color','_revisionService','_init','colorChannel1','234028paqohr','CollaborationStatus','_document','isTransformMutationFailure','symbol','UniverIcon','RichTextEditingMutation','getColor','labelPosition','_hover','registerRenderModule','subunit','doc.mutation.rich-text-editing','values','_status$','debounce','href','createInstance','INVITE_CODE_ALREADY_BOUND','clearTimeout','_registerDependencies','addObjects','addObject','_range','Shape','_docStateChangeManagerService','RevisionService','MUTATION','fillStyle','ILocalStorageService','RemoteUniscriptService','TRANSFORM_CHANGE_OBSERVABLE_TYPE','hasOwnProperty','REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY','size','Inject','onPointerLeave$','isArray','1em','currentTheme$','prototype','LICENSE_MAX_UNITS_EXCEEDED','runOnServer','SheetsSelectionsService','BehaviorSubject','...','clipPath','function','removeParam','@univerjs-pro/collaboration','_saveTaskMap','UNIVER_SHEET','_drawRectRange','code','top','_localeService','fillRule','endColumn','getValue','enableLocalCache','push','5PZbsUR','_send','split','@univerjs/docs','translate(.97)','WECHAT_HAS_BEEN_BOUND','DocStateChangeManagerService','Rectangle','_transformUndoRedoStack','search','text','mask','transformMutationsWithChangeset','trim','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','791567FPoHnm','handleDeleteRangeMoveLeft','_setupBeforeClosingHandler','Failed','NOT_COLLAB','measureText','_render','_drawAnchor','use','rgba(255,\x20255,\x20255,\x200.01)','_updateLocalCursor','univer-flex\x20univer-items-center','_getScale','runId','AWAITING_WITH_PENDING','textRanges','react','_cursors','_roomMembers$','application/json','APPLY_REVISION_CONFILICT','NOT_FOUND','UNAUTHENTICATED','0\x200\x2016\x2016'];_0x3324=function(){return _0x1f0b27;};return _0x3324();}class ee extends p[_0x568b38(0x260)]{constructor(_0x26ade9,_0xfd187b){const _0x4ebdd5=_0x568b38;super(_0x26ade9,_0xfd187b),h(this,_0x4ebdd5(0x192)),h(this,_0x4ebdd5(0x28f)),(this[_0x4ebdd5(0x192)]=_0xfd187b==null?void 0x0:_0xfd187b[_0x4ebdd5(0x192)],this[_0x4ebdd5(0x28f)]=_0xfd187b==null?void 0x0:_0xfd187b['text']);}static[_0x568b38(0x317)](_0x32570d,_0x44164a){const _0x2fceb4=_0x568b38,{text:_0x452ee3,color:_0x1ef3bf}=_0x44164a;_0x32570d[_0x2fceb4(0x3a7)](),_0x32570d[_0x2fceb4(0x37d)]=_0x2fceb4(0x37e);const _0x43c686=_0x32570d[_0x2fceb4(0x299)](_0x452ee3)[_0x2fceb4(0x212)],_0x426ec7=Math[_0x2fceb4(0x1b0)](_0x43c686+0x2*ne,Re);_t(_0x32570d,{'height':q,'radius':0x4,'width':_0x426ec7,'fill':_0x1ef3bf}),_0x32570d[_0x2fceb4(0x264)]=_0x2fceb4(0x21f);const _0x32a5a9=ne,_0x1bbd94=q-lt,_0x1d2efb=Re-0x2*ne;if(_0x43c686>_0x1d2efb){let _0x4c083e='',_0x43ad9a=0x0;for(const _0x23035a of _0x452ee3){const _0x299100=_0x32570d['measureText'](_0x23035a)[_0x2fceb4(0x212)];if(_0x43ad9a+_0x299100<=_0x1d2efb-_0x32570d[_0x2fceb4(0x299)](_0x2fceb4(0x275))[_0x2fceb4(0x212)])_0x4c083e+=_0x23035a,_0x43ad9a+=_0x299100;else{_0x4c083e+='...';break;}}_0x32570d[_0x2fceb4(0x22d)](_0x4c083e,_0x32a5a9,_0x1bbd94);}else _0x32570d[_0x2fceb4(0x22d)](_0x452ee3,_0x32a5a9,_0x1bbd94);_0x32570d[_0x2fceb4(0x14f)]();}['_draw'](_0x4c1361){const _0x507462=_0x568b38;ee[_0x507462(0x317)](_0x4c1361,this);}}const re=_0x568b38(0x23a),ht=_0x568b38(0x146),ut=_0x568b38(0x23b),k=0x6,dt=1.5,oe=0x4,ft=1.5,St=_0x568b38(0x29d);class De{constructor(_0x4e2502,_0x33cc4f,_0x32e848,_0x10c61c){const _0x3f07ee=_0x568b38;h(this,_0x3f07ee(0x325),[]),h(this,'_anchor',null),h(this,_0x3f07ee(0x372),null),h(this,'_anchorDot',null),h(this,'_hideTimer',null),h(this,_0x3f07ee(0x16d),null),(this['_cursor']=_0x4e2502,this['_scene']=_0x33cc4f,this[_0x3f07ee(0x1e9)]=_0x32e848,this[_0x3f07ee(0x24a)]=_0x10c61c,this['_render']());}set[_0x568b38(0x251)](_0x16b383){const _0x4eb8c2=_0x568b38;_0x16b383?(this[_0x4eb8c2(0x3a2)]&&this['_anchorDot'][_0x4eb8c2(0x142)](),this['_textBubble']&&this[_0x4eb8c2(0x372)][_0x4eb8c2(0x2c5)]()):(this[_0x4eb8c2(0x3a2)]&&this[_0x4eb8c2(0x3a2)][_0x4eb8c2(0x2c5)](),this[_0x4eb8c2(0x372)]&&this[_0x4eb8c2(0x372)][_0x4eb8c2(0x142)]());}[_0x568b38(0x1a6)](){const _0x38ee45=_0x568b38;for(const _0x4c0f5b of this[_0x38ee45(0x325)])_0x4c0f5b[_0x38ee45(0x1a6)]();this[_0x38ee45(0x372)]&&this[_0x38ee45(0x372)][_0x38ee45(0x1a6)](),this[_0x38ee45(0x3a2)]&&this[_0x38ee45(0x3a2)][_0x38ee45(0x1a6)](),this[_0x38ee45(0x22f)]&&this[_0x38ee45(0x22f)][_0x38ee45(0x1a6)](),this[_0x38ee45(0x16d)]&&this[_0x38ee45(0x16d)]();}[_0x568b38(0x29a)](){const _0x41563c=_0x568b38;var _0x23fec4;const {_docSkeleton:_0x4e739b,_document:_0x1353c7}=this,{color:_0x34bad5,name:_0x9750f0,ranges:_0x5e1c50}=this[_0x41563c(0x2db)],_0x582784=_0x1353c7[_0x41563c(0x30c)](),{docsLeft:_0x5f22a8,docsTop:_0x1e358d}=_0x582784,_0x12a165=new b[(_0x41563c(0x1ef))](_0x582784,_0x4e739b);for(const {startOffset:_0x3573c7,endOffset:_0x2b3844,rangeType:_0x2b5ea0,segmentId:_0x4ea42b,segmentPage:_0x351960,collapsed:_0x15cd40,isActive:_0x43a5b9}of _0x5e1c50){const _0x5f1f45=_0x4e739b[_0x41563c(0x185)](_0x3573c7,!0x0,_0x4ea42b,_0x351960);let _0x3639af=_0x4e739b[_0x41563c(0x185)](_0x2b3844,!0x0,_0x4ea42b,_0x351960);if(_0x3639af==null&&(_0x3639af=_0x4e739b[_0x41563c(0x185)](_0x2b3844-0x1,!0x1,_0x4ea42b,_0x351960)),_0x43a5b9){const {contentBoxPointGroup:_0x5e9e45}=_0x12a165['getRangePointData'](_0x3639af,_0x3639af);if(_0x5e9e45[_0x41563c(0x2bd)]===0x0)continue;this['_drawAnchor'](_0x34bad5,_0x5e9e45,_0x5f22a8,_0x1e358d,_0x9750f0),this[_0x41563c(0x16d)]=this[_0x41563c(0x230)]();}if(_0x5f1f45&&_0x3639af){if(_0x2b5ea0===a[_0x41563c(0x2ca)][_0x41563c(0x145)]){const _0x29fe15=new b['NodePositionConvertToRectRange'](_0x582784,_0x4e739b),{pointGroup:_0x1e49b4}=(_0x23fec4=_0x29fe15['getRangePointData'](_0x5f1f45,_0x3639af))!=null?_0x23fec4:{};if(_0x1e49b4==null||_0x1e49b4[_0x41563c(0x2bd)]===0x0)continue;this[_0x41563c(0x27c)](_0x34bad5,_0x1e49b4,_0x5f22a8,_0x1e358d);}else{if(!_0x15cd40){const {borderBoxPointGroup:_0x359846}=_0x12a165[_0x41563c(0x2c6)](_0x5f1f45,_0x3639af);if(_0x359846[_0x41563c(0x2bd)]===0x0)continue;this[_0x41563c(0x1bc)](_0x34bad5,_0x359846,_0x5f22a8,_0x1e358d);}}}}}[_0x568b38(0x29b)](_0x1195ff,_0x310d6d,_0x3de51a,_0x5a9deb,_0x40af4f){const _0x378c65=_0x568b38,_0x29c8f9=this[_0x378c65(0x12f)](_0x310d6d),{left:_0x293dab,top:_0x33761d,height:_0x3af554}=_0x29c8f9,_0x489561=this[_0x378c65(0x2a0)](),_0x3ee6ad=ft/_0x489561,_0x49c5ca=new p[(_0x378c65(0x243))](re+a[_0x378c65(0x12e)][_0x378c65(0x1e4)](k),{'left':_0x293dab+_0x3de51a-_0x3ee6ad,'top':_0x33761d+_0x5a9deb,'height':_0x3af554,'width':dt,'fill':_0x1195ff||p[_0x378c65(0x24f)](a[_0x378c65(0x1b9)][_0x378c65(0x1af)],0x0),'strokeWidth':_0x3ee6ad,'stroke':St,'evented':!0x0});this[_0x378c65(0x22f)]=_0x49c5ca,this[_0x378c65(0x2b6)]['addObject'](_0x49c5ca,b[_0x378c65(0x20c)]);const _0x4fa506=new p[(_0x378c65(0x243))](re+a[_0x378c65(0x12e)][_0x378c65(0x1e4)](k),{'left':_0x293dab+_0x3de51a-_0x3ee6ad,'top':_0x33761d+_0x5a9deb-oe/0x2,'height':oe,'width':oe,'fill':_0x1195ff||p[_0x378c65(0x24f)](a[_0x378c65(0x1b9)][_0x378c65(0x1af)],0x0),'strokeWidth':0x0,'stroke':_0x1195ff||p[_0x378c65(0x24f)](a[_0x378c65(0x1b9)][_0x378c65(0x1af)],0x0),'evented':!0x1});this[_0x378c65(0x3a2)]=_0x4fa506,this[_0x378c65(0x2b6)][_0x378c65(0x25e)](_0x4fa506,b['TEXT_RANGE_LAYER_INDEX']);const _0x5302a2=new ee(re+a[_0x378c65(0x12e)][_0x378c65(0x1e4)](k),{'left':_0x293dab+_0x3de51a-_0x3ee6ad,'top':_0x33761d+_0x5a9deb-q,'text':_0x40af4f,'color':_0x1195ff});this[_0x378c65(0x372)]=_0x5302a2,this[_0x378c65(0x2b6)]['addObject'](_0x5302a2,b[_0x378c65(0x20c)]),this['_hover']=!0x1;}[_0x568b38(0x230)](){const _0x2737ac=_0x568b38,_0x1fda0e=this[_0x2737ac(0x22f)][_0x2737ac(0x187)][_0x2737ac(0x163)](()=>{const _0x24114f=_0x2737ac;this[_0x24114f(0x251)]=!0x0;}),_0x2cea12=this[_0x2737ac(0x22f)]['onPointerLeave$'][_0x2737ac(0x163)](()=>{const _0x371a30=_0x2737ac;this[_0x371a30(0x2e7)]&&clearTimeout(this[_0x371a30(0x2e7)]),this[_0x371a30(0x2e7)]=setTimeout(()=>{this['_hover']=!0x1;},0x7d0);});return()=>{const _0x4aa6c0=_0x2737ac;_0x1fda0e['unsubscribe'](),_0x2cea12[_0x4aa6c0(0x1de)]();};}[_0x568b38(0x1bc)](_0x2ae415,_0x37a1cc,_0x1499a6,_0x1d5776){const _0x19e509=_0x568b38,_0xbdcb2f=new a[(_0x19e509(0x220))](_0x2ae415)[_0x19e509(0x134)](0.2)['toRgbString'](),_0x179db9=new p[(_0x19e509(0x388))](ht+a[_0x19e509(0x12e)][_0x19e509(0x1e4)](k),{'pointsGroup':_0x37a1cc,'fill':_0xbdcb2f||p[_0x19e509(0x24f)](a[_0x19e509(0x1b9)][_0x19e509(0x1af)],0.2),'left':_0x1499a6,'top':_0x1d5776,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x19e509(0x325)][_0x19e509(0x284)](_0x179db9),this[_0x19e509(0x2b6)][_0x19e509(0x25e)](_0x179db9,b[_0x19e509(0x20c)]);}[_0x568b38(0x27c)](_0x5962b8,_0x307d1d,_0x454cea,_0x31a3d8){const _0x271597=_0x568b38,_0x35f1b4=new a[(_0x271597(0x220))](_0x5962b8)[_0x271597(0x134)](0.2)[_0x271597(0x320)](),_0x4bcd58=new p['RegularPolygon'](ut+a[_0x271597(0x12e)]['generateRandomId'](k),{'pointsGroup':_0x307d1d,'fill':_0x35f1b4||p[_0x271597(0x24f)](a[_0x271597(0x1b9)][_0x271597(0x1af)],0.2),'left':_0x454cea,'top':_0x31a3d8,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x271597(0x325)][_0x271597(0x284)](_0x4bcd58),this['_scene'][_0x271597(0x25e)](_0x4bcd58,b[_0x271597(0x20c)]);}[_0x568b38(0x12f)](_0x4931b0){const _0x5b8ab6=_0x4931b0[0x0],_0x56b31d=_0x5b8ab6[0x0],_0x3134c3=_0x5b8ab6[0x2],{x:_0x146ea6,y:_0x568895}=_0x56b31d,{x:_0x17d765,y:_0x3bd95b}=_0x3134c3;return{'left':_0x146ea6,'top':_0x568895,'width':_0x17d765-_0x146ea6,'height':_0x3bd95b-_0x568895};}[_0x568b38(0x2a0)](){const _0x12c147=_0x568b38,{scaleX:_0x1e5863,scaleY:_0x3d24a3}=this[_0x12c147(0x2b6)][_0x12c147(0x1cc)]();return Math[_0x12c147(0x370)](_0x1e5863,_0x3d24a3);}}var It=Object[_0x568b38(0x196)],vt=(_0x5b9a9e,_0xddaf3c,_0x117e47,_0x4634eb)=>{const _0x1f7e7e=_0x568b38;for(var _0x235078=_0x4634eb>0x1?void 0x0:_0x4634eb?It(_0xddaf3c,_0x117e47):_0xddaf3c,_0x271103=_0x5b9a9e[_0x1f7e7e(0x2bd)]-0x1,_0x1e7472;_0x271103>=0x0;_0x271103--)(_0x1e7472=_0x5b9a9e[_0x271103])&&(_0x235078=_0x1e7472(_0x235078)||_0x235078);return _0x235078;},Y=(_0x21694d,_0x4ef721)=>(_0x4fb7ab,_0x28898c)=>_0x4ef721(_0x4fb7ab,_0x28898c,_0x21694d);let Ie=class extends a[_0x568b38(0x327)]{constructor(_0x153c41,_0x2682a3,_0x4cf2f9,_0xcd501b,_0x1f5306){const _0x191f41=_0x568b38;super(),h(this,_0x191f41(0x343),[]),h(this,_0x191f41(0x2a5),[]),(this[_0x191f41(0x228)]=_0x153c41,this['_docSkeletonManagerService']=_0x2682a3,this[_0x191f41(0x15c)]=_0x4cf2f9,this[_0x191f41(0x1c4)]=_0xcd501b,this['_themeService']=_0x1f5306,this[_0x191f41(0x246)]());}[_0x568b38(0x246)](){const _0x3fcbf0=_0x568b38,_0x5bfc26=this[_0x3fcbf0(0x228)][_0x3fcbf0(0x203)],_0x463556=this['_docSkeletonManagerService'];this[_0x3fcbf0(0x369)](d[_0x3fcbf0(0x199)]([this[_0x3fcbf0(0x15c)][_0x3fcbf0(0x1d5)](_0x5bfc26),this[_0x3fcbf0(0x23f)][_0x3fcbf0(0x26f)]])[_0x3fcbf0(0x1db)]($[_0x3fcbf0(0x36e)](([_0x551e98,_0x164636])=>({'skeleton':_0x463556['getSkeleton'](),'cursors':[..._0x551e98['values']()][_0x3fcbf0(0x1a2)](_0x227197=>({..._0x227197,'color':_0x164636[_0x227197[_0x3fcbf0(0x192)]]}))})))['subscribe'](_0x157eeb=>{const _0xded52f=_0x3fcbf0;if(this['_removeCollabCursors'](),_0x157eeb){const {skeleton:_0x4f9285,cursors:_0x85494d}=_0x157eeb;this[_0xded52f(0x166)](_0x4f9285,_0x85494d);}})),this[_0x3fcbf0(0x1e8)](),this['_initCommandExecutedListener']();}['_updateCollabCursors'](_0x5a16f6,_0x32d02a){const _0x5d41cc=_0x568b38,{scene:_0x3323ac,mainComponent:_0x364020}=this[_0x5d41cc(0x228)],_0x4a6f64=_0x32d02a['map'](_0x5d3217=>new De(_0x5d3217,_0x3323ac,_0x5a16f6,_0x364020));this['_cursorShapes']=_0x4a6f64,this['_cursors']=_0x32d02a;}['_refreshCollabCursors'](){const _0x154741=_0x568b38;this[_0x154741(0x1f5)]();const {scene:_0x32a190,mainComponent:_0x1b73a9}=this[_0x154741(0x228)],_0x4a1a79=this['_docSkeletonManagerService'][_0x154741(0x1ee)](),_0x397d4a=this['_cursors'][_0x154741(0x36e)](_0x4cd76d=>new De(_0x4cd76d,_0x32a190,_0x4a1a79,_0x1b73a9));this['_cursorShapes']=_0x397d4a;}[_0x568b38(0x1f5)](){const _0x4c90ac=_0x568b38;this['_cursorShapes'][_0x4c90ac(0x13c)](_0x43de19=>_0x43de19[_0x4c90ac(0x1a6)]()),this[_0x4c90ac(0x343)]=[];}[_0x568b38(0x344)](){const _0x11bf2e=_0x568b38,_0x20e12c=[b[_0x11bf2e(0x167)]['id']];this['disposeWithMe'](this['_commandService'][_0x11bf2e(0x171)](_0x14b472=>{const _0x422f65=_0x11bf2e;_0x20e12c['includes'](_0x14b472['id'])&&_0x14b472[_0x422f65(0x376)][_0x422f65(0x203)]===this[_0x422f65(0x228)][_0x422f65(0x203)]&&this['_refreshCollabCursors']();}));}[_0x568b38(0x1e8)](){const _0x452960=_0x568b38;this[_0x452960(0x369)](a[_0x452960(0x38a)](this['_context'][_0x452960(0x313)][_0x452960(0x38f)])['pipe']($[_0x452960(0x39d)](_0xecac81=>_0xecac81[_0x452960(0x31e)]===p[_0x452960(0x267)][_0x452960(0x1ca)]),$['throttleTime'](0x10))[_0x452960(0x152)](()=>{const _0x5841c6=_0x452960;this[_0x5841c6(0x1dd)]();}));}};Ie=vt([Y(0x1,a['Inject'](W['DocSkeletonManagerService'])),Y(0x2,a['Inject'](x)),Y(0x3,a[_0x568b38(0x168)]),Y(0x4,a[_0x568b38(0x26b)](a[_0x568b38(0x2b3)]))],Ie);const gt=0x1,mt=1.5;function _0x1323(_0xdd5301,_0x5c7a35){const _0x3324fa=_0x3324();return _0x1323=function(_0x13237b,_0x5d2ccf){_0x13237b=_0x13237b-0x129;let _0x4cf9a0=_0x3324fa[_0x13237b];return _0x4cf9a0;},_0x1323(_0xdd5301,_0x5c7a35);}class we extends p[_0x568b38(0x260)]{constructor(_0x5301e4,_0x4ea4f0){const _0x3232a4=_0x568b38;super(_0x5301e4,_0x4ea4f0),h(this,'_color'),h(this,_0x3232a4(0x229),!0x1),h(this,_0x3232a4(0x25f)),h(this,_0x3232a4(0x2ae),''),h(this,_0x3232a4(0x1fc),_0x3232a4(0x27e)),h(this,_0x3232a4(0x352)),(_0x4ea4f0&&this['setShapeProps'](_0x4ea4f0),this[_0x3232a4(0x187)][_0x3232a4(0x163)](()=>this['setShapeProps']({'hovered':!0x0})),this[_0x3232a4(0x26c)][_0x3232a4(0x163)](()=>this['setShapeProps']({'hovered':!0x1})));}[_0x568b38(0x16c)](_0x23311c){const _0x5c80db=_0x568b38;var _0x28081e,_0x2a64ae,_0x4ccddc,_0x1d38be,_0x323628,_0x3476a2;this[_0x5c80db(0x244)]=(_0x28081e=_0x23311c['color'])!=null?_0x28081e:this['_color'],this['_hovered']=(_0x2a64ae=_0x23311c[_0x5c80db(0x1ce)])!=null?_0x2a64ae:this['_hovered'],this['_range']=(_0x4ccddc=_0x23311c[_0x5c80db(0x1a3)])!=null?_0x4ccddc:this[_0x5c80db(0x25f)],this[_0x5c80db(0x2ae)]=(_0x1d38be=_0x23311c[_0x5c80db(0x39e)])!=null?_0x1d38be:this[_0x5c80db(0x2ae)],this[_0x5c80db(0x1fc)]=(_0x323628=_0x23311c[_0x5c80db(0x250)])!=null?_0x323628:this[_0x5c80db(0x1fc)],this[_0x5c80db(0x352)]=(_0x3476a2=_0x23311c[_0x5c80db(0x160)])!=null?_0x3476a2:this[_0x5c80db(0x352)],this[_0x5c80db(0x32c)]({'width':_0x23311c[_0x5c80db(0x212)],'height':_0x23311c[_0x5c80db(0x337)]});}[_0x568b38(0x14b)](_0x1c0c44){const _0xef724f=_0x568b38,{row:_0x5ac855,column:_0x4af390}=_0x1c0c44;if(_0x5ac855>=this['_range']['startRow']&&_0x5ac855<=this[_0xef724f(0x25f)][_0xef724f(0x1a0)]&&_0x4af390>=this['_range'][_0xef724f(0x1e2)]&&_0x4af390<=this[_0xef724f(0x25f)][_0xef724f(0x281)]){this[_0xef724f(0x16c)]({'hovered':!0x0});return;}this[_0xef724f(0x16c)]({'hovered':!0x1});}[_0x568b38(0x1d4)](_0x502a07){return!0x1;}['_draw'](_0x500e77){const _0x140c47=_0x568b38;p[_0x140c47(0x243)][_0x140c47(0x317)](_0x500e77,{'width':this['width'],'height':this[_0x140c47(0x337)],'strokeWidth':mt,'stroke':this[_0x140c47(0x244)],'evented':!0x1,'fill':this['_backgroundColor']}),this[_0x140c47(0x229)]&&(_0x500e77[_0x140c47(0x3a7)](),_0x500e77[_0x140c47(0x2de)](0x1,0x0,0x0,0x1,this[_0x140c47(0x212)],this[_0x140c47(0x1fc)]==='bottom'?0x0:-0x14),ee[_0x140c47(0x317)](_0x500e77,{'text':this[_0x140c47(0x2ae)],'color':this[_0x140c47(0x244)]}),_0x500e77[_0x140c47(0x14f)]());}}var Ct=Object['getOwnPropertyDescriptor'],pt=(_0x31050f,_0x41201f,_0x1e698d,_0x5936b9)=>{const _0x56ab1f=_0x568b38;for(var _0x415c7c=_0x5936b9>0x1?void 0x0:_0x5936b9?Ct(_0x41201f,_0x1e698d):_0x41201f,_0x6503de=_0x31050f[_0x56ab1f(0x2bd)]-0x1,_0x37b587;_0x6503de>=0x0;_0x6503de--)(_0x37b587=_0x31050f[_0x6503de])&&(_0x415c7c=_0x37b587(_0x415c7c)||_0x415c7c);return _0x415c7c;},ae=(_0x218af9,_0x47ba6b)=>(_0x13a7ea,_0x297bb9)=>_0x47ba6b(_0x13a7ea,_0x297bb9,_0x218af9);const bt=0x1389;let ve=class extends a[_0x568b38(0x327)]{constructor(_0x31a909,_0x322f46,_0x5d3dde,_0x3ae7da){const _0x329a48=_0x568b38;super(),h(this,'_cursors',new Set()),h(this,'_lastPointer',null),(this[_0x329a48(0x228)]=_0x31a909,this[_0x329a48(0x1ba)]=_0x322f46,this[_0x329a48(0x15c)]=_0x5d3dde,this[_0x329a48(0x23f)]=_0x3ae7da,this['_init']());}['_init'](){const _0x5c71b7=_0x568b38;this[_0x5c71b7(0x1ba)][_0x5c71b7(0x21c)][_0x5c71b7(0x1db)]($[_0x5c71b7(0x33c)](this[_0x5c71b7(0x221)]),$[_0x5c71b7(0x2ff)](_0x5ce3f5=>{const _0x39ccb8=_0x5c71b7;if(_0x5ce3f5){const _0x27ff99=_0x5ce3f5[_0x39ccb8(0x210)];return d[_0x39ccb8(0x199)](this[_0x39ccb8(0x15c)][_0x39ccb8(0x1d5)](this[_0x39ccb8(0x228)][_0x39ccb8(0x203)]),this[_0x39ccb8(0x23f)][_0x39ccb8(0x26f)])[_0x39ccb8(0x1db)]($[_0x39ccb8(0x36e)](([_0x573491,_0x18ccfc])=>{const _0x81d14a=new Map();return _0x573491['forEach']((_0x3438df,_0x4ec185)=>{const _0x268fbf=_0x1323;if(_0x3438df[_0x268fbf(0x17d)]===_0x27ff99){const _0x1307a5={..._0x3438df};_0x1307a5[_0x268fbf(0x192)]=_0x18ccfc[_0x3438df[_0x268fbf(0x192)]],_0x81d14a[_0x268fbf(0x379)](_0x4ec185,_0x1307a5);}}),{'skeleton':_0x5ce3f5,'cursors':_0x81d14a};}));}return d['of']({'skeleton':null,'cursors':new Map()});}))[_0x5c71b7(0x152)](({skeleton:_0x51ee51,cursors:_0x4360c2})=>{const _0x5bcdcc=_0x5c71b7;this[_0x5bcdcc(0x1f5)](),_0x51ee51&&this[_0x5bcdcc(0x166)](_0x51ee51,_0x4360c2);}),this[_0x5c71b7(0x1ba)][_0x5c71b7(0x21c)]['subscribe'](_0x1d873e=>{const _0x5710c6=_0x5c71b7;if(_0x1d873e==null)return;const {skeleton:_0x4ec5fe}=_0x1d873e,{scene:_0x2fbdc4}=this['_context'];_0x2fbdc4[_0x5710c6(0x1e5)][_0x5710c6(0x163)](a['debounce'](_0x1b338e=>{const _0x18b83d=_0x5710c6;var _0x10f987,_0x5e5345;const {offsetX:_0x436a18,offsetY:_0x30ee10}=_0x1b338e,{x:_0x386170,y:_0x108f40}=_0x2fbdc4[_0x18b83d(0x2d2)](p['Vector2']['FromArray']([_0x436a18,_0x30ee10])),{scaleX:_0x3a3cda,scaleY:_0x5f0abf}=_0x2fbdc4[_0x18b83d(0x1cc)](),_0xce03c3=_0x2fbdc4['getViewport'](p[_0x18b83d(0x314)][_0x18b83d(0x2cf)]),_0x274e45=_0x2fbdc4[_0x18b83d(0x39a)](p[_0x18b83d(0x14c)][_0x18b83d(0x2f8)]([_0x386170,_0x108f40]),_0xce03c3),_0x4a17c5=_0x4ec5fe[_0x18b83d(0x302)](_0x436a18,_0x30ee10,_0x3a3cda,_0x5f0abf,_0x274e45);((_0x10f987=this[_0x18b83d(0x318)])==null?void 0x0:_0x10f987['column'])===_0x4a17c5[_0x18b83d(0x2ad)]&&((_0x5e5345=this[_0x18b83d(0x318)])==null?void 0x0:_0x5e5345[_0x18b83d(0x35f)])===_0x4a17c5[_0x18b83d(0x35f)]||this[_0x18b83d(0x2a5)][_0x18b83d(0x13c)](_0x296470=>{const _0x132698=_0x18b83d;_0x296470[_0x132698(0x14b)](_0x4a17c5);});},0x64));});}[_0x568b38(0x166)](_0xb98a3d,_0x594678){const _0x2edc30=_0x568b38;var _0x272a5c;const _0x188fd9=(_0x272a5c=this['_sheetSkeletonManagerService']['getCurrent']())==null?void 0x0:_0x272a5c[_0x2edc30(0x12d)];if(!_0x188fd9)return;const _0x2d4c69=this[_0x2edc30(0x335)]();if(!_0x2d4c69)return;this[_0x2edc30(0x2a5)]['forEach'](_0x3aa7fe=>{const _0x491c63=_0x2edc30;_0x3aa7fe[_0x491c63(0x1cb)]();});const {scene:_0x588a0b}=_0x2d4c69,_0x2b4b5d=Et(Array[_0x2edc30(0x16f)](_0x594678['values']()))['map'](_0x3ff469=>{const _0x37a223=_0x2edc30,{color:_0xda0609,range:_0x50e775,name:_0x957e4,selection:_0x1b2c78,sheetID:_0x592a8c}=_0x3ff469,{startColumn:_0x4b58f1,startRow:_0x32a185,endColumn:_0x1f477a,endRow:_0x2210d2}=_0x50e775,_0x33045c=X[_0x37a223(0x391)](_0x32a185,_0x4b58f1,_0x588a0b,_0x188fd9),_0x3679c0=X[_0x37a223(0x391)](_0x2210d2,_0x1f477a,_0x588a0b,_0x188fd9),{columnHeaderHeightAndMarginTop:_0x372d38}=_0x188fd9,{startX:_0x42fafd,startY:_0x185aa4}=_0x33045c,{endX:_0x4d50a2,endY:_0x87d879}=_0x3679c0,_0x21f6c6=_0x4d50a2-_0x42fafd,_0x359868=_0x87d879-_0x185aa4,_0x20f896={'labelPosition':_0x185aa4-_0x372d38>=q?'top':_0x37a223(0x30f),'sheetID':_0x592a8c,'range':_0x50e775,'color':_0xda0609,'name':_0x957e4,'selection':_0x1b2c78,'left':_0x42fafd,'top':_0x185aa4,'width':_0x21f6c6,'height':_0x359868,'evented':!0x1,'zIndex':bt};return new we(_0x957e4,_0x20f896);});_0x588a0b[_0x2edc30(0x25d)](_0x2b4b5d,gt),this[_0x2edc30(0x2a5)]=new Set(_0x2b4b5d);}[_0x568b38(0x1f5)](){const _0x3e17c5=_0x568b38;var _0xab7f0c;(_0xab7f0c=this['_cursors'])==null||_0xab7f0c[_0x3e17c5(0x13c)](_0x779f50=>_0x779f50[_0x3e17c5(0x1a6)]());}[_0x568b38(0x335)](){const _0x3010bc=_0x568b38;return X[_0x3010bc(0x1bf)](this[_0x3010bc(0x228)][_0x3010bc(0x2b5)],this[_0x3010bc(0x228)]);}};ve=pt([ae(0x1,a[_0x568b38(0x26b)](X[_0x568b38(0x13a)])),ae(0x2,a[_0x568b38(0x26b)](x)),ae(0x3,a[_0x568b38(0x26b)](a[_0x568b38(0x2b3)]))],ve);function Et(_0xdbb8e8){const _0x54fc98=_0x568b38,_0x3c81ab=new Map();return _0xdbb8e8[_0x54fc98(0x13c)](_0x465cf3=>{const _0x39db9a=_0x54fc98;if(_0x3c81ab[_0x39db9a(0x347)](_0x465cf3[_0x39db9a(0x133)])){const _0x2e0438=_0x3c81ab[_0x39db9a(0x1c5)](_0x465cf3[_0x39db9a(0x133)]);_0x2e0438[_0x39db9a(0x39e)]+=',\x20'+_0x465cf3[_0x39db9a(0x39e)];}else _0x3c81ab['set'](_0x465cf3[_0x39db9a(0x133)],_0x465cf3);}),Array[_0x54fc98(0x16f)](_0x3c81ab[_0x54fc98(0x255)]());}var E=function(){const _0x383a79=_0x568b38;return E=Object['assign']||function(_0x9ad983){const _0x5eee56=_0x1323;for(var _0x3a9144,_0x46a865=0x1,_0x123798=arguments[_0x5eee56(0x2bd)];_0x46a865<_0x123798;_0x46a865++){_0x3a9144=arguments[_0x46a865];for(var _0x710ddc in _0x3a9144)Object['prototype'][_0x5eee56(0x268)][_0x5eee56(0x19f)](_0x3a9144,_0x710ddc)&&(_0x9ad983[_0x710ddc]=_0x3a9144[_0x710ddc]);}return _0x9ad983;},E[_0x383a79(0x33f)](this,arguments);},Tt=function(_0x2e1dce,_0x2f01d5){const _0x7dd99c=_0x568b38;var _0x420ee9={};for(var _0x207250 in _0x2e1dce)Object['prototype'][_0x7dd99c(0x268)][_0x7dd99c(0x19f)](_0x2e1dce,_0x207250)&&_0x2f01d5[_0x7dd99c(0x330)](_0x207250)<0x0&&(_0x420ee9[_0x207250]=_0x2e1dce[_0x207250]);if(_0x2e1dce!=null&&typeof Object[_0x7dd99c(0x211)]==_0x7dd99c(0x277)){for(var _0x20b3c8=0x0,_0x207250=Object[_0x7dd99c(0x211)](_0x2e1dce);_0x20b3c8<_0x207250[_0x7dd99c(0x2bd)];_0x20b3c8++)_0x2f01d5[_0x7dd99c(0x330)](_0x207250[_0x20b3c8])<0x0&&Object[_0x7dd99c(0x270)]['propertyIsEnumerable']['call'](_0x2e1dce,_0x207250[_0x20b3c8])&&(_0x420ee9[_0x207250[_0x20b3c8]]=_0x2e1dce[_0x207250[_0x20b3c8]]);}return _0x420ee9;},pe=M[_0x568b38(0x174)](function(_0x54fb0f,_0x320064){const _0x4df436=_0x568b38;var _0x241b55=_0x54fb0f[_0x4df436(0x141)],_0x3addfc=_0x54fb0f['id'],_0x420c00=_0x54fb0f['className'],_0x39fd5a=_0x54fb0f[_0x4df436(0x2fa)],_0x5adc92=Tt(_0x54fb0f,[_0x4df436(0x141),'id',_0x4df436(0x159),_0x4df436(0x2fa)]),_0x54f65c=_0x4df436(0x2ef)['concat'](_0x3addfc,'\x20')[_0x4df436(0x130)](_0x420c00||'')[_0x4df436(0x292)](),_0x24b847=M[_0x4df436(0x32a)]('_'[_0x4df436(0x130)](Dt()));return Ae(_0x241b55,''[_0x4df436(0x130)](_0x3addfc),{'defIds':_0x241b55[_0x4df436(0x2c1)],'idSuffix':_0x24b847[_0x4df436(0x13d)]},E({'ref':_0x320064,'className':_0x54f65c},_0x5adc92),_0x39fd5a);});function Ae(_0x452893,_0x42014a,_0x4e38e2,_0x27427e,_0x48256f){const _0x46024e=_0x568b38;return M['createElement'](_0x452893['tag'],E(E({'key':_0x42014a},Ot(_0x452893,_0x4e38e2,_0x48256f)),_0x27427e),(Rt(_0x452893,_0x4e38e2)[_0x46024e(0x18e)]||[])[_0x46024e(0x36e)](function(_0x1883b0,_0x122581){const _0x35bb40=_0x46024e;return Ae(_0x1883b0,''[_0x35bb40(0x130)](_0x42014a,'-')[_0x35bb40(0x130)](_0x452893['tag'],'-')[_0x35bb40(0x130)](_0x122581),_0x4e38e2,void 0x0,_0x48256f);}));}function Ot(_0x1ad36a,_0x434c21,_0x1469ce){const _0x1e4a0d=_0x568b38;var _0x239361=E({},_0x1ad36a[_0x1e4a0d(0x1b6)]);_0x1469ce!=null&&_0x1469ce[_0x1e4a0d(0x247)]&&_0x239361['fill']===_0x1e4a0d(0x247)&&(_0x239361['fill']=_0x1469ce[_0x1e4a0d(0x247)]),_0x1ad36a[_0x1e4a0d(0x155)]==='mask'&&_0x239361['id']&&(_0x239361['id']=_0x239361['id']+_0x434c21[_0x1e4a0d(0x36c)]),Object['entries'](_0x239361)['forEach'](function(_0x4c9159){const _0xf5f257=_0x1e4a0d;var _0x5a4082=_0x4c9159[0x0],_0x3cf457=_0x4c9159[0x1];_0x5a4082===_0xf5f257(0x290)&&typeof _0x3cf457==_0xf5f257(0x216)&&(_0x239361[_0x5a4082]=_0x3cf457[_0xf5f257(0x1e1)](/url\(#(.*)\)/,_0xf5f257(0x353)[_0xf5f257(0x130)](_0x434c21[_0xf5f257(0x36c)],')')));});var _0x64d28b=_0x434c21['defIds'];return!_0x64d28b||_0x64d28b[_0x1e4a0d(0x2bd)]===0x0||(_0x1ad36a[_0x1e4a0d(0x155)]===_0x1e4a0d(0x29c)&&_0x239361[_0x1e4a0d(0x231)]&&(_0x239361[_0x1e4a0d(0x231)]=_0x239361[_0x1e4a0d(0x231)]+_0x434c21['idSuffix']),Object['entries'](_0x239361)[_0x1e4a0d(0x13c)](function(_0x8912b9){const _0x327e12=_0x1e4a0d;var _0x35622c=_0x8912b9[0x0],_0x4e62a2=_0x8912b9[0x1];typeof _0x4e62a2==_0x327e12(0x216)&&(_0x239361[_0x35622c]=_0x4e62a2[_0x327e12(0x1e1)](/url\(#(.*)\)/,_0x327e12(0x353)[_0x327e12(0x130)](_0x434c21['idSuffix'],')')));})),_0x239361;}function Rt(_0x28a3d9,_0x3d76e8){const _0x2210c0=_0x568b38;var _0x36b16c,_0x421685=_0x3d76e8['defIds'];return!_0x421685||_0x421685['length']===0x0?_0x28a3d9:_0x28a3d9[_0x2210c0(0x155)]==='defs'&&(!((_0x36b16c=_0x28a3d9[_0x2210c0(0x18e)])===null||_0x36b16c===void 0x0)&&_0x36b16c[_0x2210c0(0x2bd)])?E(E({},_0x28a3d9),{'children':_0x28a3d9[_0x2210c0(0x18e)]['map'](function(_0x31218c){const _0x3bbbf4=_0x2210c0;return typeof _0x31218c['attrs']['id']=='string'&&_0x421685&&_0x421685[_0x3bbbf4(0x330)](_0x31218c[_0x3bbbf4(0x1b6)]['id'])>-0x1?E(E({},_0x31218c),{'attrs':E(E({},_0x31218c[_0x3bbbf4(0x1b6)]),{'id':_0x31218c[_0x3bbbf4(0x1b6)]['id']+_0x3d76e8[_0x3bbbf4(0x36c)]})}):_0x31218c;})}):_0x28a3d9;}function Dt(){const _0x56a1cf=_0x568b38;return Math['random']()[_0x56a1cf(0x188)](0x24)[_0x56a1cf(0x1e7)](0x2,0x8);}pe['displayName']=_0x568b38(0x24d);var Ut={'tag':_0x568b38(0x2f5),'attrs':{'fill':_0x568b38(0x375),'viewBox':_0x568b38(0x2ab),'width':_0x568b38(0x26e),'height':_0x568b38(0x26e)},'children':[{'tag':'g','attrs':{'clipPath':_0x568b38(0x201)},'children':[{'tag':_0x568b38(0x399),'attrs':{'stroke':'currentColor','d':_0x568b38(0x17a),'strokeLinecap':'round','strokeLinejoin':_0x568b38(0x2ed),'strokeWidth':1.2}}]},{'tag':_0x568b38(0x359),'attrs':{},'children':[{'tag':_0x568b38(0x276),'attrs':{'id':'off-line-single_clip0_910_343'},'children':[{'tag':_0x568b38(0x399),'attrs':{'fill':_0x568b38(0x308),'d':'M0\x200H16V16H0z'}}]}]}],'defIds':[_0x568b38(0x14a)]},ye=M[_0x568b38(0x174)](function(_0x7c3cdd,_0x351b16){const _0x1f24c3=_0x568b38;return M[_0x1f24c3(0x21a)](pe,Object['assign']({},_0x7c3cdd,{'id':_0x1f24c3(0x139),'ref':_0x351b16,'icon':Ut}));});ye[_0x568b38(0x31a)]=_0x568b38(0x311);var Nt={'tag':_0x568b38(0x2f5),'attrs':{'fill':_0x568b38(0x375),'viewBox':_0x568b38(0x1ae),'width':_0x568b38(0x26e),'height':_0x568b38(0x26e)},'children':[{'tag':'g','attrs':{'clipPath':'url(#on-line-single_clip0_910_349)'},'children':[{'tag':_0x568b38(0x399),'attrs':{'stroke':'currentColor','d':_0x568b38(0x293),'strokeLinecap':_0x568b38(0x2ed),'strokeLinejoin':_0x568b38(0x2ed),'strokeWidth':1.2}}]},{'tag':_0x568b38(0x359),'attrs':{},'children':[{'tag':_0x568b38(0x276),'attrs':{'id':_0x568b38(0x15e)},'children':[{'tag':'path','attrs':{'fill':_0x568b38(0x308),'d':_0x568b38(0x367),'transform':_0x568b38(0x289)}}]}]}],'defIds':[_0x568b38(0x15e)]},$e=M['forwardRef'](function(_0x430d62,_0x455d4f){const _0x472661=_0x568b38;return M[_0x472661(0x21a)](pe,Object[_0x472661(0x326)]({},_0x430d62,{'id':_0x472661(0x374),'ref':_0x455d4f,'icon':Nt}));});$e[_0x568b38(0x31a)]=_0x568b38(0x22e);function Mt(_0x3bb9a3){const _0x3489bd=_0x568b38;switch(_0x3bb9a3){case u[_0x3489bd(0x249)][_0x3489bd(0x1eb)]:return _0x3489bd(0x17b);case u[_0x3489bd(0x249)]['CONFLICT']:return _0x3489bd(0x206);case u['CollaborationStatus'][_0x3489bd(0x3a0)]:return'collabStatus.fetchMiss';case u['CollaborationStatus'][_0x3489bd(0x298)]:return'collabStatus.notCollab';case u[_0x3489bd(0x249)]['AWAITING']:case u['CollaborationStatus'][_0x3489bd(0x2a2)]:return _0x3489bd(0x312);case u['CollaborationStatus'][_0x3489bd(0x363)]:case u[_0x3489bd(0x249)]['PENDING']:return _0x3489bd(0x18a);}}function xe(_0x19366f){const _0xe48904=_0x568b38,{status$:_0x546df4}=_0x19366f,_0x1983b6=T['useObservable'](_0x546df4,u[_0xe48904(0x249)]['NOT_COLLAB']),_0x106d1e=T[_0xe48904(0x137)](a['LocaleService']),_0x1319b4=T[_0xe48904(0x137)](u[_0xe48904(0x38b)]),_0x59f27a=_0x1983b6!==u[_0xe48904(0x249)][_0xe48904(0x1eb)],_0x1860f8=_0x106d1e['t'](Mt(_0x1983b6)),_0x3c3a06=_0x59f27a?P[_0xe48904(0x2c0)]($e,{}):P[_0xe48904(0x2c0)](ye,{}),_0x19b98e=M[_0xe48904(0x35d)](()=>{const _0x183b81=_0xe48904;_0x59f27a||_0x1319b4[_0x183b81(0x1f2)]();},[_0x59f27a,_0x1319b4]);function _0x44b294(){const _0x5a879b=_0xe48904;return P[_0x5a879b(0x1b1)]('div',{'className':_0x5a879b(0x29f),'onClick':_0x19b98e,'children':[P[_0x5a879b(0x2c0)]('div',{'className':D['clsx'](_0x5a879b(0x2f1),_0x59f27a?'univer-text-green-500':'univer-text-red-500'),'children':_0x3c3a06}),P[_0x5a879b(0x2c0)]('div',{'className':_0x5a879b(0x30a),'children':_0x1860f8})]});}return _0x59f27a?_0x44b294():P[_0xe48904(0x2c0)](D['Tooltip'],{'title':_0x106d1e['t'](_0xe48904(0x336)),'children':_0x44b294()});}var Lt=Object[_0x568b38(0x196)],Pt=(_0x2c7e11,_0x1798de,_0x2c998e,_0x3a2b38)=>{const _0x554845=_0x568b38;for(var _0x2a0c48=_0x3a2b38>0x1?void 0x0:_0x3a2b38?Lt(_0x1798de,_0x2c998e):_0x1798de,_0x3dd3a9=_0x2c7e11[_0x554845(0x2bd)]-0x1,_0x474e4f;_0x3dd3a9>=0x0;_0x3dd3a9--)(_0x474e4f=_0x2c7e11[_0x3dd3a9])&&(_0x2a0c48=_0x474e4f(_0x2a0c48)||_0x2a0c48);return _0x2a0c48;},V=(_0x106354,_0xed96d6)=>(_0x3dafac,_0x35f40b)=>_0xed96d6(_0x3dafac,_0x35f40b,_0x106354);exports[_0x568b38(0x186)]=class extends a['Disposable']{constructor(_0x26ad46,_0x42eef8,_0x3a4449,_0x560014){const _0x505109=_0x568b38;super(),h(this,'_status$',new d[(_0x505109(0x274))](u[_0x505109(0x249)][_0x505109(0x298)])),(this[_0x505109(0x31f)]=_0x26ad46,this[_0x505109(0x2ba)]=_0x42eef8,this[_0x505109(0x1f6)]=_0x3a4449,this[_0x505109(0x395)]=_0x560014,this['_initStatusComponent'](),this['_initStatusListener']());}[_0x568b38(0x3a9)](){const _0x1f6239=_0x568b38;this[_0x1f6239(0x369)](this['_univerInstanceService']['focused$']['pipe'](d[_0x1f6239(0x2ff)](()=>{const _0xdfcdb6=_0x1f6239,_0x399eeb=this['_univerInstanceService']['getFocusedUnit']();return _0x399eeb?this['_collaborationController'][_0xdfcdb6(0x15f)](_0x399eeb[_0xdfcdb6(0x2e8)]()):d['of'](null);}),d['switchMap'](_0x16b319=>_0x16b319?_0x16b319['status$']:d['of'](u[_0x1f6239(0x249)][_0x1f6239(0x298)])))[_0x1f6239(0x152)](_0x5edb27=>{const _0x166a11=_0x1f6239;this[_0x166a11(0x256)][_0x166a11(0x1c7)](_0x5edb27);}));}[_0x568b38(0x18b)](){const _0xc1f9b6=_0x568b38;this['disposeWithMe'](this['_uiPartsService']['registerComponent'](T[_0xc1f9b6(0x1da)][_0xc1f9b6(0x398)],()=>T[_0xc1f9b6(0x190)](wt({'status$':this['_status$'][_0xc1f9b6(0x1a7)]()}),this['_injector'])));}},exports[_0x568b38(0x186)]=Pt([V(0x0,a[_0x568b38(0x1a5)]),V(0x1,a[_0x568b38(0x26b)](a[_0x568b38(0x2b1)])),V(0x2,a[_0x568b38(0x26b)](u[_0x568b38(0x214)])),V(0x3,T[_0x568b38(0x161)])],exports[_0x568b38(0x186)]);function wt(_0x444041){const {status$:_0x50a002}=_0x444041;return function(){const _0x57ae70=_0x1323;return P[_0x57ae70(0x2c0)](xe,{'status$':_0x50a002});};}var At=Object[_0x568b38(0x196)],yt=(_0x42c222,_0x239233,_0x39cf69,_0x54c800)=>{const _0x1d6e7b=_0x568b38;for(var _0x53ceb6=_0x54c800>0x1?void 0x0:_0x54c800?At(_0x239233,_0x39cf69):_0x239233,_0x102992=_0x42c222[_0x1d6e7b(0x2bd)]-0x1,_0x455de4;_0x102992>=0x0;_0x102992--)(_0x455de4=_0x42c222[_0x102992])&&(_0x53ceb6=_0x455de4(_0x53ceb6)||_0x53ceb6);return _0x53ceb6;},y=(_0x5a507c,_0x3cdbe7)=>(_0x1ed34a,_0xe1a95e)=>_0x3cdbe7(_0x1ed34a,_0xe1a95e,_0x5a507c);let K=class extends a[_0x568b38(0x30e)]{constructor(_0x582e75,_0x1db79b,_0x3d6118,_0x3d4266,_0x59afde,_0x583007){const _0x1d82bc=_0x568b38;super(),this[_0x1d82bc(0x1f0)]=_0x582e75,this['_localCacheService']=_0x1db79b,this[_0x1d82bc(0x1c0)]=_0x3d6118,this[_0x1d82bc(0x3a8)]=_0x3d4266,this[_0x1d82bc(0x13b)]=_0x59afde,this['_localeService']=_0x583007,this[_0x1d82bc(0x296)](),this['_initEvent']();}[_0x568b38(0x296)](){const _0x30aff7=_0x568b38;this['disposeWithMe'](this[_0x30aff7(0x1f0)]['registerBeforeClose'](()=>{const _0x242a09=_0x30aff7;if(this['_localCacheService'][_0x242a09(0x183)][_0x242a09(0x26a)])return this[_0x242a09(0x27f)]['t'](_0x242a09(0x1f3));}));}[_0x568b38(0x1d7)](){const _0x523c21=_0x568b38;this[_0x523c21(0x369)](this[_0x523c21(0x1c0)][_0x523c21(0x235)][_0x523c21(0x152)](_0x222117=>{const _0x3eb0f5=_0x523c21;_0x222117['id']===u['CollaborationUIEventId'][_0x3eb0f5(0x366)]&&this[_0x3eb0f5(0x3a8)]['show']({'type':D[_0x3eb0f5(0x180)][_0x3eb0f5(0x136)],'content':this[_0x3eb0f5(0x27f)]['t']('collaboration.single-unit.warning')}),_0x222117['id']===u[_0x3eb0f5(0x178)][_0x3eb0f5(0x172)]&&this['_messageService']['show']({'type':D[_0x3eb0f5(0x180)]['Warning'],'content':this[_0x3eb0f5(0x27f)]['t'](_0x3eb0f5(0x19b))}),_0x222117['id']===u['CollaborationUIEventId'][_0x3eb0f5(0x1a1)]&&this[_0x3eb0f5(0x13b)][_0x3eb0f5(0x2c5)]({'title':this[_0x3eb0f5(0x27f)]['t'](_0x3eb0f5(0x394)),'content':this[_0x3eb0f5(0x27f)]['t'](_0x3eb0f5(0x181)),'type':_0x3eb0f5(0x2d0),'duration':0x0}),_0x222117['id']===u[_0x3eb0f5(0x178)]['CONFLICT']&&this[_0x3eb0f5(0x3a8)]['show']({'type':D[_0x3eb0f5(0x180)][_0x3eb0f5(0x324)],'content':this[_0x3eb0f5(0x27f)]['t']('collaboration.closeRoom')+'('+_0x222117[_0x3eb0f5(0x2e2)]+')'}),_0x222117['id']===u[_0x3eb0f5(0x178)][_0x3eb0f5(0x301)]&&this[_0x3eb0f5(0x3a8)][_0x3eb0f5(0x2c5)]({'type':D[_0x3eb0f5(0x180)][_0x3eb0f5(0x136)],'content':this[_0x3eb0f5(0x27f)]['t'](_0x222117[_0x3eb0f5(0x2e2)]||'')}),_0x222117['id']===u[_0x3eb0f5(0x178)][_0x3eb0f5(0x36f)]&&this[_0x3eb0f5(0x3a8)][_0x3eb0f5(0x2c5)]({'type':D[_0x3eb0f5(0x180)][_0x3eb0f5(0x136)],'content':this['_localeService']['t'](_0x3eb0f5(0x2c3))}),_0x222117['id']===u[_0x3eb0f5(0x178)][_0x3eb0f5(0x339)]&&this[_0x3eb0f5(0x3a8)][_0x3eb0f5(0x2c5)]({'type':D[_0x3eb0f5(0x180)][_0x3eb0f5(0x324)],'content':this[_0x3eb0f5(0x27f)]['t'](_0x3eb0f5(0x34e))}),_0x222117['id']===u['CollaborationUIEventId'][_0x3eb0f5(0x138)]&&this['_messageService'][_0x3eb0f5(0x2c5)]({'type':D[_0x3eb0f5(0x180)][_0x3eb0f5(0x324)],'content':this['_localeService']['t'](_0x3eb0f5(0x194))});}));}};K=yt([y(0x0,T[_0x568b38(0x35c)]),y(0x1,u['ILocalCacheService']),y(0x2,a['Inject'](u[_0x568b38(0x397)])),y(0x3,T['IMessageService']),y(0x4,T['INotificationService']),y(0x5,a[_0x568b38(0x26b)](a[_0x568b38(0x1ff)]))],K);const $t='collaboration-client-ui.config',Ue={},be=a['createIdentifier'](_0x568b38(0x170));var xt=Object[_0x568b38(0x196)],jt=(_0x5370cd,_0x3fbf91,_0x225be8,_0x520791)=>{const _0xb0d054=_0x568b38;for(var _0x5dcf2f=_0x520791>0x1?void 0x0:_0x520791?xt(_0x3fbf91,_0x225be8):_0x3fbf91,_0xfb981f=_0x5370cd[_0xb0d054(0x2bd)]-0x1,_0x3b0980;_0xfb981f>=0x0;_0xfb981f--)(_0x3b0980=_0x5370cd[_0xfb981f])&&(_0x5dcf2f=_0x3b0980(_0x5dcf2f)||_0x5dcf2f);return _0x5dcf2f;},H=(_0xbb586c,_0x27b09a)=>(_0xc5f0c0,_0x1509e9)=>_0x27b09a(_0xc5f0c0,_0x1509e9,_0xbb586c);exports[_0x568b38(0x322)]=class extends a[_0x568b38(0x327)]{constructor(_0xf389a7,_0x3299bd,_0x539f44,_0x10b3df,_0x526ec7){const _0x1fc9b3=_0x568b38;super(),this[_0x1fc9b3(0x1c6)]=_0xf389a7,this['_logService']=_0x3299bd,this[_0x1fc9b3(0x1c4)]=_0x539f44,this[_0x1fc9b3(0x345)]=_0x10b3df,_0x526ec7?_0x526ec7==null||_0x526ec7[_0x1fc9b3(0x1a9)]()[_0x1fc9b3(0x15d)](()=>this[_0x1fc9b3(0x246)]()):(this[_0x1fc9b3(0x35b)][_0x1fc9b3(0x202)](_0x1fc9b3(0x2fc),_0x1fc9b3(0x150)),this[_0x1fc9b3(0x246)]());}async[_0x568b38(0x246)](){const _0x1c2b9d=_0x568b38,_0x97aeb3=this[_0x1c2b9d(0x1c6)]['getParam']('unit'),_0x298938=this[_0x1c2b9d(0x1c6)]['getParam']('type'),_0x5112d8=this['_urlService'][_0x1c2b9d(0x156)]('subunit');if(!_0x97aeb3||!_0x298938){this[_0x1c2b9d(0x35b)][_0x1c2b9d(0x202)](_0x1c2b9d(0x2fc),_0x1c2b9d(0x377));return;}const _0x5cbd66=await this[_0x1c2b9d(0x345)]['loadUnit'](_0x97aeb3,Number(_0x298938),_0x5112d8);_0x5cbd66&&_0x5cbd66 instanceof a[_0x1c2b9d(0x148)]&&this[_0x1c2b9d(0x234)](_0x5cbd66);}async[_0x568b38(0x234)](_0x270808){const _0xfc5363=_0x568b38;await this[_0xfc5363(0x13f)](_0x270808),_0x270808[_0xfc5363(0x23d)][_0xfc5363(0x1db)](d[_0xfc5363(0x33c)](this[_0xfc5363(0x221)]))['subscribe'](_0x27dadb=>{const _0x5e2146=_0xfc5363;_0x27dadb&&this[_0x5e2146(0x225)](_0x27dadb);}),this['_urlService']['urlChange$']['pipe'](d[_0xfc5363(0x33c)](this[_0xfc5363(0x221)]))[_0xfc5363(0x152)](()=>this['_updateSubUnitFromURLParams'](_0x270808));}[_0x568b38(0x225)](_0x3515e1,_0x5e6bda=!0x1){const _0x201405=_0x568b38,_0x52b192=this[_0x201405(0x1c6)][_0x201405(0x156)](_0x201405(0x253));_0x3515e1[_0x201405(0x2cc)]()!==_0x52b192&&this[_0x201405(0x1c6)][_0x201405(0x2bc)](_0x201405(0x253),_0x3515e1[_0x201405(0x2cc)](),_0x5e6bda);}async[_0x568b38(0x13f)](_0x499ffd){const _0x33d1f1=_0x568b38;var _0xbf1d5a;const _0x22ed5c=this[_0x33d1f1(0x1c6)]['getParam'](_0x33d1f1(0x253));if(!_0x22ed5c||!_0x499ffd['getSheetBySheetId'](_0x22ed5c)){const _0x1a5d1e=_0x499ffd['getUnhiddenWorksheets']()[0x0],_0x320b23=_0x499ffd[_0x33d1f1(0x149)](_0x1a5d1e);if(!_0x320b23)return;this[_0x33d1f1(0x225)](_0x320b23,!0x0),await this['_commandService'][_0x33d1f1(0x19d)](g[_0x33d1f1(0x2f0)]['id'],{'unitId':_0x499ffd[_0x33d1f1(0x2e8)](),'subUnitId':_0x1a5d1e});return;}((_0xbf1d5a=_0x499ffd['getActiveSheet']())==null?void 0x0:_0xbf1d5a[_0x33d1f1(0x2cc)]())!==_0x22ed5c&&await this[_0x33d1f1(0x1c4)][_0x33d1f1(0x19d)](g[_0x33d1f1(0x2f0)]['id'],{'unitId':_0x499ffd[_0x33d1f1(0x2e8)](),'subUnitId':_0x22ed5c});}},exports['CollaborationDataLoaderController']=jt([H(0x0,be),H(0x1,a[_0x568b38(0x20b)]),H(0x2,a['ICommandService']),H(0x3,a[_0x568b38(0x26b)](u[_0x568b38(0x1bd)])),H(0x4,a[_0x568b38(0x1b5)](qe[_0x568b38(0x242)]))],exports[_0x568b38(0x322)]);var Bt=Object[_0x568b38(0x196)],kt=(_0x4007be,_0x1c02db,_0x493844,_0x27f069)=>{const _0x189959=_0x568b38;for(var _0x1229b6=_0x27f069>0x1?void 0x0:_0x27f069?Bt(_0x1c02db,_0x493844):_0x1c02db,_0x5bae24=_0x4007be[_0x189959(0x2bd)]-0x1,_0x461c9d;_0x5bae24>=0x0;_0x5bae24--)(_0x461c9d=_0x4007be[_0x5bae24])&&(_0x1229b6=_0x461c9d(_0x1229b6)||_0x1229b6);return _0x1229b6;},ce=(_0x5a9c22,_0x5d9e81)=>(_0x52a989,_0x4d1bc7)=>_0x5d9e81(_0x52a989,_0x4d1bc7,_0x5a9c22);let z=class{constructor(_0x59227b,_0x4a8165,_0x26778c){const _0xa6db6f=_0x568b38;this[_0xa6db6f(0x2ba)]=_0x59227b,this[_0xa6db6f(0x378)]=_0x4a8165,this['_renderManagerService']=_0x26778c;}[_0x568b38(0x2c4)](_0x44057e){const _0x59bb5f=_0x568b38;this[_0x59bb5f(0x28d)](_0x44057e),this['_transformPreviousActiveRange'](_0x44057e);}['transformRemoteChangeset'](_0x3e507b){const _0x5ed0fe=_0x568b38,{unitID:_0x316031}=_0x3e507b,_0x3e958e=this[_0x5ed0fe(0x37c)][_0x5ed0fe(0x385)](_0x316031)[_0x5ed0fe(0x213)](b[_0x5ed0fe(0x2d9)]),{redoCache:_0x2c4656}=_0x3e958e[_0x5ed0fe(0x15b)]();if(_0x2c4656['length']===0x0)return _0x3e507b;let _0x4677bd=a[_0x5ed0fe(0x12e)][_0x5ed0fe(0x32d)](_0x3e507b['mutations'][0x0]);for(let _0x26a232=0x0;_0x26a232<_0x2c4656[_0x5ed0fe(0x2bd)];_0x26a232++){const _0x533e4c={'id':_0x5ed0fe(0x254),'params':{..._0x2c4656[_0x26a232]}},_0x2df8a9=this[_0x5ed0fe(0x378)][_0x5ed0fe(0x3ac)](_0x4677bd,_0x533e4c,!0x1);if(m[_0x5ed0fe(0x24b)](_0x2df8a9))throw _0x2df8a9['error'];_0x4677bd=_0x2df8a9['m1Prime'];}return{...a['Tools'][_0x5ed0fe(0x32d)](_0x3e507b),'mutations':[_0x4677bd]};}['_transformUndoRedoStack'](_0x5b0f3f){const _0x41ae9c=_0x568b38,{unitID:_0x5f2bd3}=_0x5b0f3f,_0x7704b6=this[_0x41ae9c(0x37c)][_0x41ae9c(0x385)](_0x5f2bd3)[_0x41ae9c(0x213)](b[_0x41ae9c(0x2d9)]),{undoCache:_0x4db615,redoCache:_0x2985dd}=_0x7704b6[_0x41ae9c(0x15b)]();if(_0x4db615[_0x41ae9c(0x2bd)]===0x0||_0x2985dd[_0x41ae9c(0x2bd)]===0x0)return;const _0x4d50d5=[],_0x4215f2=[];let _0x18c57f=a[_0x41ae9c(0x12e)][_0x41ae9c(0x32d)](_0x5b0f3f[_0x41ae9c(0x165)][0x0]),_0x434ab1=a[_0x41ae9c(0x12e)][_0x41ae9c(0x32d)](_0x5b0f3f[_0x41ae9c(0x165)][0x0]);for(let _0x5d9dce=_0x4db615['length']-0x1;_0x5d9dce>=0x0;_0x5d9dce--){const _0x5e4da8={'id':_0x41ae9c(0x254),'params':{..._0x4db615[_0x5d9dce]}},_0x6f4b2d={'id':_0x41ae9c(0x254),'params':{..._0x2985dd[_0x5d9dce]}},_0x5a8c12=this[_0x41ae9c(0x378)]['transformMutation'](_0x18c57f,_0x5e4da8,!0x1),_0x1332ff=this[_0x41ae9c(0x378)]['transformMutation'](_0x434ab1,_0x6f4b2d,!0x1);if(m[_0x41ae9c(0x24b)](_0x5a8c12))throw _0x5a8c12['error'];if(m[_0x41ae9c(0x24b)](_0x1332ff))throw _0x1332ff[_0x41ae9c(0x2d0)];_0x4d50d5[_0x41ae9c(0x1ea)](_0x5a8c12['m2Prime'][_0x41ae9c(0x376)]),_0x4215f2[_0x41ae9c(0x1ea)](_0x1332ff[_0x41ae9c(0x3a4)][_0x41ae9c(0x376)]),_0x18c57f=_0x5a8c12[_0x41ae9c(0x2da)],_0x434ab1=_0x1332ff['m1Prime'];}_0x7704b6[_0x41ae9c(0x17f)]({'undoCache':_0x4d50d5,'redoCache':_0x4215f2});}[_0x568b38(0x2bf)](_0x2313a4){const _0x14d2ea=_0x568b38,{unitID:_0x185f87}=_0x2313a4,_0xe473cb=this[_0x14d2ea(0x37c)]['getRenderById'](_0x185f87)[_0x14d2ea(0x213)](b[_0x14d2ea(0x2d9)]),_0x588844=_0xe473cb['getActiveRange']();if(_0x588844==null)return;const _0x3eb5a1=[{'id':_0x14d2ea(0x254),'params':{'unitId':_0x2313a4['unitID'],'actions':null,'textRanges':[_0x588844]}}],_0x303e68=this[_0x14d2ea(0x378)]['transformMutationsWithChangeset'](_0x2313a4,_0x3eb5a1);if(!m[_0x14d2ea(0x2b7)](_0x303e68))throw _0x303e68[_0x14d2ea(0x2d0)];const _0x3c5951=_0x303e68[_0x14d2ea(0x3a4)][0x0][_0x14d2ea(0x376)][_0x14d2ea(0x2a3)];Array[_0x14d2ea(0x26d)](_0x3c5951)&&_0x3c5951[_0x14d2ea(0x2bd)]&&_0xe473cb['setActiveRange'](_0x3c5951[0x0]);}};z=kt([ce(0x0,a[_0x568b38(0x26b)](a[_0x568b38(0x2b1)])),ce(0x1,m['ITransformService']),ce(0x2,p[_0x568b38(0x305)])],z);var Ht=Object[_0x568b38(0x196)],Ft=(_0xca8848,_0x146586,_0x5cdc6a,_0x24bf1b)=>{const _0x28ae29=_0x568b38;for(var _0x27e300=_0x24bf1b>0x1?void 0x0:_0x24bf1b?Ht(_0x146586,_0x5cdc6a):_0x146586,_0x9a464e=_0xca8848[_0x28ae29(0x2bd)]-0x1,_0x5ca550;_0x9a464e>=0x0;_0x9a464e--)(_0x5ca550=_0xca8848[_0x9a464e])&&(_0x27e300=_0x5ca550(_0x27e300)||_0x27e300);return _0x27e300;},le=(_0x2dc543,_0x1ada1d)=>(_0x2d1efa,_0x1a8c79)=>_0x1ada1d(_0x2d1efa,_0x1a8c79,_0x2dc543);let J=class{constructor(_0x529e29,_0x53b04c,_0xe93dbe){const _0x5d7992=_0x568b38;this[_0x5d7992(0x2ba)]=_0x529e29,this['_transformService']=_0x53b04c,this[_0x5d7992(0x261)]=_0xe93dbe;}[_0x568b38(0x1f4)](_0x4b3653){this['_transformHistoryAndStateStack'](_0x4b3653);}[_0x568b38(0x1c1)](_0x37e052){const _0xafb9d8=_0x568b38,{unitID:_0x579e82}=_0x37e052,{collaboration:_0x42aab7}=this[_0xafb9d8(0x261)][_0xafb9d8(0x162)](_0x579e82);if(_0x42aab7['length']===0x0)return _0x37e052;let _0x5cf6e3=a[_0xafb9d8(0x12e)][_0xafb9d8(0x32d)](_0x37e052['mutations'][0x0]);for(let _0x1a6bf9=0x0;_0x1a6bf9<_0x42aab7['length'];_0x1a6bf9++){const _0x4ce047={'id':_0xafb9d8(0x254),'params':{'unitId':_0x42aab7[_0x1a6bf9][_0xafb9d8(0x203)],..._0x42aab7[_0x1a6bf9][_0xafb9d8(0x2e0)]}},_0xee7250=this['_transformService']['transformMutation'](_0x5cf6e3,_0x4ce047,!0x1);if(m[_0xafb9d8(0x24b)](_0xee7250))throw _0xee7250[_0xafb9d8(0x2d0)];_0x5cf6e3=_0xee7250[_0xafb9d8(0x2da)];}return{...a[_0xafb9d8(0x12e)][_0xafb9d8(0x32d)](_0x37e052),'mutations':[_0x5cf6e3]};}[_0x568b38(0x34b)](_0x307275){const _0x1c757b=_0x568b38,{unitID:_0x20009f}=_0x307275,{history:_0x366c89,collaboration:_0xa5d46b}=this[_0x1c757b(0x261)]['getStateCache'](_0x20009f);if(_0x366c89[_0x1c757b(0x2bd)]===0x0&&_0xa5d46b['length']===0x0)return;const _0x5df3bd=[],_0x137bd4=[];let _0x12f23b=a[_0x1c757b(0x12e)][_0x1c757b(0x32d)](_0x307275[_0x1c757b(0x165)][0x0]),_0x59fc8c=a[_0x1c757b(0x12e)][_0x1c757b(0x32d)](_0x307275[_0x1c757b(0x165)][0x0]);for(let _0x3be8cb=_0x366c89[_0x1c757b(0x2bd)]-0x1;_0x3be8cb>=0x0;_0x3be8cb--){const _0x2552f3={'id':_0x1c757b(0x254),'params':{'unitId':_0x366c89[_0x3be8cb][_0x1c757b(0x203)],..._0x366c89[_0x3be8cb]['undoState']}},_0x139d02={'id':_0x1c757b(0x254),'params':{'unitId':_0x366c89[_0x3be8cb]['unitId'],..._0x366c89[_0x3be8cb][_0x1c757b(0x2e0)]}},_0x1d71d8=this[_0x1c757b(0x378)][_0x1c757b(0x3ac)](_0x12f23b,_0x2552f3,!0x1),_0x3b0e5a=this[_0x1c757b(0x378)]['transformMutation'](_0x59fc8c,_0x139d02,!0x1);if(m[_0x1c757b(0x24b)](_0x1d71d8))throw _0x1d71d8[_0x1c757b(0x2d0)];if(m[_0x1c757b(0x24b)](_0x3b0e5a))throw _0x3b0e5a[_0x1c757b(0x2d0)];_0x5df3bd['unshift']({..._0x366c89[_0x3be8cb],'undoState':_0x1d71d8[_0x1c757b(0x3a4)][_0x1c757b(0x376)],'redoState':_0x3b0e5a[_0x1c757b(0x3a4)][_0x1c757b(0x376)]}),_0x12f23b=_0x1d71d8[_0x1c757b(0x2da)],_0x59fc8c=_0x3b0e5a['m1Prime'];}_0x12f23b=a['Tools'][_0x1c757b(0x32d)](_0x307275[_0x1c757b(0x165)][0x0]),_0x59fc8c=a['Tools'][_0x1c757b(0x32d)](_0x307275[_0x1c757b(0x165)][0x0]);for(let _0xff26b5=_0xa5d46b[_0x1c757b(0x2bd)]-0x1;_0xff26b5>=0x0;_0xff26b5--){const _0x13ce4d={'id':_0x1c757b(0x254),'params':{'unitId':_0xa5d46b[_0xff26b5][_0x1c757b(0x203)],..._0xa5d46b[_0xff26b5][_0x1c757b(0x217)]}},_0x2a870f={'id':_0x1c757b(0x254),'params':{'unitId':_0xa5d46b[_0xff26b5]['unitId'],..._0xa5d46b[_0xff26b5]['redoState']}},_0x3d6891=this[_0x1c757b(0x378)][_0x1c757b(0x3ac)](_0x12f23b,_0x13ce4d,!0x1),_0x520f46=this[_0x1c757b(0x378)][_0x1c757b(0x3ac)](_0x59fc8c,_0x2a870f,!0x1);if(m[_0x1c757b(0x24b)](_0x3d6891))throw _0x3d6891[_0x1c757b(0x2d0)];if(m[_0x1c757b(0x24b)](_0x520f46))throw _0x520f46['error'];_0x137bd4[_0x1c757b(0x1ea)]({..._0xa5d46b[_0xff26b5],'undoState':_0x3d6891[_0x1c757b(0x3a4)]['params'],'redoState':_0x520f46[_0x1c757b(0x3a4)][_0x1c757b(0x376)]}),_0x12f23b=_0x3d6891[_0x1c757b(0x2da)],_0x59fc8c=_0x520f46[_0x1c757b(0x2da)];}this[_0x1c757b(0x261)][_0x1c757b(0x3aa)](_0x20009f,{'history':_0x5df3bd,'collaboration':_0x137bd4});}};J=Ft([le(0x0,a[_0x568b38(0x26b)](a[_0x568b38(0x2b1)])),le(0x1,m['ITransformService']),le(0x2,a[_0x568b38(0x26b)](b[_0x568b38(0x28b)]))],J);var Wt=Object[_0x568b38(0x196)],Yt=(_0xeedbb9,_0x21e801,_0x5a2534,_0x4f46a1)=>{for(var _0x224f4c=_0x4f46a1>0x1?void 0x0:_0x4f46a1?Wt(_0x21e801,_0x5a2534):_0x21e801,_0x1f64be=_0xeedbb9['length']-0x1,_0x3e57e3;_0x1f64be>=0x0;_0x1f64be--)(_0x3e57e3=_0xeedbb9[_0x1f64be])&&(_0x224f4c=_0x3e57e3(_0x224f4c)||_0x224f4c);return _0x224f4c;},Ne=(_0x523f18,_0x3237aa)=>(_0x39ef0b,_0x1e4232)=>_0x3237aa(_0x39ef0b,_0x1e4232,_0x523f18);let Z=class{constructor(_0x1e3458,_0x188497){const _0x253e32=_0x568b38;this[_0x253e32(0x2ba)]=_0x1e3458,this[_0x253e32(0x378)]=_0x188497;}[_0x568b38(0x19a)](_0x2da41d){const _0x1b2773=_0x568b38;var _0x297be8;const _0x1b0694=this['_injector'][_0x1b2773(0x1c5)](W[_0x1b2773(0x319)]),_0x593c6f=(_0x297be8=_0x1b0694[_0x1b2773(0x2b2)]())!=null?_0x297be8:[];if(_0x593c6f['length']===0x0)return;const _0x1d22e5=_0x2da41d[_0x1b2773(0x17e)],_0x48e440=[{'id':_0x1b2773(0x254),'params':{'unitId':_0x1d22e5,'actions':null,'textRanges':_0x593c6f}}],_0x55ee7f=this['_transformService'][_0x1b2773(0x291)](_0x2da41d,_0x48e440);if(!m['isTransformMutationsWithChangesetSuccess'](_0x55ee7f))throw _0x55ee7f[_0x1b2773(0x2d0)];const _0x5ebd95=_0x55ee7f[_0x1b2773(0x3a4)][0x0][_0x1b2773(0x376)][_0x1b2773(0x2a3)];Array[_0x1b2773(0x26d)](_0x5ebd95)&&_0x5ebd95['length']&&_0x1b0694[_0x1b2773(0x2fe)](_0x5ebd95,{'unitId':_0x1d22e5,'subUnitId':_0x1d22e5},!0x1);}};Z=Yt([Ne(0x0,a['Inject'](a[_0x568b38(0x2b1)])),Ne(0x1,m[_0x568b38(0x13e)])],Z);var Vt=Object[_0x568b38(0x196)],Xt=(_0x1226a8,_0x4049a1,_0x164501,_0x32e15d)=>{for(var _0x4f55b9=_0x32e15d>0x1?void 0x0:_0x32e15d?Vt(_0x4049a1,_0x164501):_0x4049a1,_0x49cc79=_0x1226a8['length']-0x1,_0x31579f;_0x49cc79>=0x0;_0x49cc79--)(_0x31579f=_0x1226a8[_0x49cc79])&&(_0x4f55b9=_0x31579f(_0x4f55b9)||_0x4f55b9);return _0x4f55b9;},N=(_0x1c04f6,_0x4a5196)=>(_0xeabda3,_0x4d3eb8)=>_0x4a5196(_0xeabda3,_0x4d3eb8,_0x1c04f6);let Q=class extends a[_0x568b38(0x30e)]{constructor(_0x1ac0bf,_0x103fbb,_0x465820,_0x19905a,_0x4e91b4,_0xb91178,_0x34da60,_0x2c19e3){const _0xf1eb4d=_0x568b38;super(),h(this,_0xf1eb4d(0x256),new d[(_0xf1eb4d(0x274))](u[_0xf1eb4d(0x249)]['NOT_COLLAB'])),(this['_docStateChangeManagerService']=_0x1ac0bf,this['_collaborationController']=_0x103fbb,this[_0xf1eb4d(0x1b4)]=_0x465820,this['_docTransformStateCacheService']=_0x19905a,this[_0xf1eb4d(0x348)]=_0x4e91b4,this[_0xf1eb4d(0x2dd)]=_0xb91178,this[_0xf1eb4d(0x3a8)]=_0x34da60,this['_localeService']=_0x2c19e3,this[_0xf1eb4d(0x237)]());}[_0x568b38(0x237)](){const _0x110381=_0x568b38;this[_0x110381(0x369)](this[_0x110381(0x1f6)]['entityInit$']['subscribe'](_0x35147f=>{const _0x60636b=_0x110381,_0x17daeb=this[_0x60636b(0x261)][_0x60636b(0x342)][_0x60636b(0x152)](_0x3bc209=>{const _0x5f3279=_0x60636b;if(_0x3bc209==null)return;const {unitId:_0x3235ce,redoState:_0x2120ca,commandId:_0x1abf31}=_0x3bc209;if(_0x3235ce!==_0x35147f['unitID'])return;const _0x397025={'id':_0x1abf31,'type':a[_0x5f3279(0x36a)][_0x5f3279(0x263)],'params':{'unitId':_0x3235ce,'actions':_0x2120ca[_0x5f3279(0x2d1)],'textRanges':null}};_0x35147f[_0x5f3279(0x31c)](_0x397025);});if(_0x35147f[_0x60636b(0x369)](_0x17daeb),_0x35147f instanceof u[_0x60636b(0x389)]){const _0x30c6ca={'onTransformIME':_0x3b361e=>this['_docTransformIMECacheService'][_0x60636b(0x2c4)](_0x3b361e),'onTransformState':_0x1fdf9f=>this['_docTransformStateCacheService']['transformStateCache'](_0x1fdf9f),'onTransformSelections':_0x371ba0=>this[_0x60636b(0x348)][_0x60636b(0x19a)](_0x371ba0),'onSyncEditingCollabCursor':_0x222805=>this['_docSyncEditingCollabCursorService'][_0x60636b(0x191)](_0x222805),'onTransformRemoteChangesetByIMECache':_0x1580d3=>this['_docTransformIMECacheService'][_0x60636b(0x1c1)](_0x1580d3),'onTransformRemoteChangesetByStateCache':_0x46d1a7=>this[_0x60636b(0x1aa)]['transformRemoteChangeset'](_0x46d1a7)};_0x35147f['addHandlerCallback'](_0x30c6ca);}}));}};Q=Xt([N(0x0,a[_0x568b38(0x26b)](b['DocStateChangeManagerService'])),N(0x1,a[_0x568b38(0x26b)](u['CollaborationController'])),N(0x2,a[_0x568b38(0x26b)](z)),N(0x3,a[_0x568b38(0x26b)](J)),N(0x4,a['Inject'](Z)),N(0x5,a['Inject'](Ce)),N(0x6,T['IMessageService']),N(0x7,a[_0x568b38(0x26b)](a[_0x568b38(0x1ff)]))],Q);var Gt=Object['getOwnPropertyDescriptor'],qt=(_0x11938b,_0x2fcf5f,_0x2e1d11,_0x23bb6d)=>{for(var _0x39973c=_0x23bb6d>0x1?void 0x0:_0x23bb6d?Gt(_0x2fcf5f,_0x2e1d11):_0x2fcf5f,_0x1f84d0=_0x11938b['length']-0x1,_0x1f34ba;_0x1f84d0>=0x0;_0x1f84d0--)(_0x1f34ba=_0x11938b[_0x1f84d0])&&(_0x39973c=_0x1f34ba(_0x39973c)||_0x39973c);return _0x39973c;},_e=(_0x5dcd2a,_0x4a0e45)=>(_0x224e68,_0x297951)=>_0x4a0e45(_0x224e68,_0x297951,_0x5dcd2a);let ge=class extends a['Disposable']{constructor(_0x3265b8,_0x47501a,_0xbebeed){const _0x3c0d01=_0x568b38;super(),h(this,_0x3c0d01(0x39f),new Map()),h(this,_0x3c0d01(0x27a),new Map()),h(this,'_disabled',!0x1),(this[_0x3c0d01(0x2f3)]=_0x3265b8,this[_0x3c0d01(0x1f8)]=_0x47501a,this[_0x3c0d01(0x245)]=_0xbebeed);}[_0x568b38(0x1f1)](){this['_disabled']=!0x0;}[_0x568b38(0x283)](){const _0x27ac65=_0x568b38;this[_0x27ac65(0x153)]=!0x1;}get['saveTaskMap'](){const _0x21bbfa=_0x568b38;return this[_0x21bbfa(0x27a)];}[_0x568b38(0x1a6)](){const _0x1867af=_0x568b38;this[_0x1867af(0x135)]()[_0x1867af(0x15d)](()=>super[_0x1867af(0x1a6)]());}async[_0x568b38(0x387)](_0x3c3300){const _0x1e76ad=_0x568b38;return this[_0x1e76ad(0x153)]?null:this['_localStorageService'][_0x1e76ad(0x323)](u[_0x1e76ad(0x3a6)](_0x3c3300));}async['saveOfflineData'](_0x49e53e,_0x114a25){const _0x1492e2=_0x568b38;return!!this[_0x1492e2(0x1f8)][_0x1492e2(0x3a5)](_0x49e53e,_0x114a25);}[_0x568b38(0x12a)](_0x14adee,_0x25e2d8,_0x33f2b8,_0x794712){const _0x37363b=_0x568b38,_0x39e559=this[_0x37363b(0x245)][_0x37363b(0x233)](_0x14adee);this['_cachedData'][_0x37363b(0x379)](_0x14adee,{'unitID':_0x14adee,'type':_0x25e2d8,'awaitingChangeset':_0x33f2b8,'mutations':_0x794712,'rev':_0x39e559}),this[_0x37363b(0x27a)][_0x37363b(0x347)](_0x14adee)||this[_0x37363b(0x315)](_0x14adee);}[_0x568b38(0x315)](_0x1431d3){const _0x15a4b0=_0x568b38,_0x40a87c=this[_0x15a4b0(0x23c)]();_0x40a87c===0x0?this[_0x15a4b0(0x195)](_0x1431d3):this[_0x15a4b0(0x27a)][_0x15a4b0(0x379)](_0x1431d3,setTimeout(()=>this[_0x15a4b0(0x195)](_0x1431d3),_0x40a87c));}['_getSaveTimeout'](){const _0x680cad=_0x568b38;var _0x4c9661;return(_0x4c9661=this[_0x680cad(0x2f3)][_0x680cad(0x38c)](u[_0x680cad(0x18f)]))!=null?_0x4c9661:u[_0x680cad(0x34c)];}['_saveCache'](_0x4699d3){const _0x56b0e4=_0x568b38,_0x4cb601=this[_0x56b0e4(0x27a)]['get'](_0x4699d3);return _0x4cb601!==void 0x0&&window['clearTimeout'](_0x4cb601),this[_0x56b0e4(0x1f8)][_0x56b0e4(0x3a5)](u[_0x56b0e4(0x3a6)](_0x4699d3),this[_0x56b0e4(0x39f)]['get'](_0x4699d3))[_0x56b0e4(0x15d)](()=>this[_0x56b0e4(0x27a)][_0x56b0e4(0x144)](_0x4699d3));}async[_0x568b38(0x135)](){const _0x194fa8=_0x568b38,_0x296f78=[];this[_0x194fa8(0x27a)][_0x194fa8(0x13c)]((_0x5bd9b3,_0x48ce4d)=>{const _0x65fc93=_0x194fa8;window['clearTimeout'](_0x5bd9b3),_0x296f78[_0x65fc93(0x284)](this['_saveCache'](_0x48ce4d)[_0x65fc93(0x15d)](()=>{const _0x5e2de0=_0x65fc93;this[_0x5e2de0(0x27a)][_0x5e2de0(0x144)](_0x48ce4d);}));}),await Promise['all'](_0x296f78);}};ge=qt([_e(0x0,a[_0x568b38(0x2d6)]),_e(0x1,a[_0x568b38(0x265)]),_e(0x2,a[_0x568b38(0x26b)](m[_0x568b38(0x262)]))],ge);class je extends a[_0x568b38(0x327)]{constructor(){const _0x12f178=_0x568b38;super(),h(this,'urlChange$'),this[_0x12f178(0x147)]=d[_0x12f178(0x332)](window,'popstate')['pipe'](d[_0x12f178(0x33c)](this[_0x12f178(0x221)]),d['shareReplay'](0x1),d[_0x12f178(0x382)](void 0x0));}[_0x568b38(0x2bc)](_0x2a098,_0x3561e9,_0x300047=!0x1){const _0x3cceb4=_0x568b38,_0x410eef=new URL(window['location'][_0x3cceb4(0x258)]);_0x410eef[_0x3cceb4(0x132)][_0x3cceb4(0x379)](_0x2a098,_0x3561e9),_0x300047?window[_0x3cceb4(0x390)][_0x3cceb4(0x19e)]('','',_0x410eef[_0x3cceb4(0x188)]()):window[_0x3cceb4(0x390)]['pushState']('','',_0x410eef['toString']());}[_0x568b38(0x278)](_0x4918f3,_0x403684=!0x1){const _0x483128=_0x568b38,_0x4f53a0=new URL(window[_0x483128(0x30d)][_0x483128(0x258)]);_0x4f53a0[_0x483128(0x132)][_0x483128(0x144)](_0x4918f3),_0x403684?window[_0x483128(0x390)]['replaceState']('','',_0x4f53a0[_0x483128(0x188)]()):window[_0x483128(0x390)][_0x483128(0x310)]('','',_0x4f53a0[_0x483128(0x188)]());}[_0x568b38(0x156)](_0x1ca12e){const _0x7d682c=_0x568b38;var _0xd3dc22;return(_0xd3dc22=new URL(window['location'][_0x7d682c(0x258)])[_0x7d682c(0x132)][_0x7d682c(0x1c5)](_0x1ca12e))!=null?_0xd3dc22:void 0x0;}}var Kt=Object[_0x568b38(0x182)],zt=Object['getOwnPropertyDescriptor'],Jt=(_0x24fdc5,_0x2b552e,_0x180e12)=>_0x2b552e in _0x24fdc5?Kt(_0x24fdc5,_0x2b552e,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x180e12}):_0x24fdc5[_0x2b552e]=_0x180e12,Zt=(_0x2bef29,_0x28da92,_0x302f52,_0xa0cecf)=>{const _0x4e1ccf=_0x568b38;for(var _0x2c2b77=_0xa0cecf>0x1?void 0x0:_0xa0cecf?zt(_0x28da92,_0x302f52):_0x28da92,_0x265188=_0x2bef29[_0x4e1ccf(0x2bd)]-0x1,_0x339018;_0x265188>=0x0;_0x265188--)(_0x339018=_0x2bef29[_0x265188])&&(_0x2c2b77=_0x339018(_0x2c2b77)||_0x2c2b77);return _0x2c2b77;},he=(_0x3770c6,_0x41d4ac)=>(_0x350cbc,_0xd7127b)=>_0x41d4ac(_0x350cbc,_0xd7127b,_0x3770c6),Qt=(_0x5c763e,_0x2dbe28,_0x303563)=>Jt(_0x5c763e,_0x2dbe28+'',_0x303563);const es=_0x568b38(0x1e3);exports['UniverCollaborationClientUIPlugin']=class extends a[_0x568b38(0x208)]{constructor(_0x230470=Ue,_0x2d8012,_0x1a17d8,_0x580b7b){const _0x276360=_0x568b38;super(),this[_0x276360(0x3ad)]=_0x230470,this[_0x276360(0x37c)]=_0x2d8012,this[_0x276360(0x2ba)]=_0x1a17d8,this[_0x276360(0x2f3)]=_0x580b7b;const {..._0x40de2b}=a[_0x276360(0x1a8)]({},Ue,this[_0x276360(0x3ad)]);this[_0x276360(0x2f3)][_0x276360(0x37f)]($t,_0x40de2b);}[_0x568b38(0x33e)](){const _0x4e0963=_0x568b38;this[_0x4e0963(0x25c)](),this[_0x4e0963(0x1ac)]();}[_0x568b38(0x32b)](){this['_registerRenderDependencies']();}[_0x568b38(0x25c)](){const _0x114964=_0x568b38;var _0x1c0a25;const _0x453ad7=[[me],[Z],[z],[J],[Ce],[be,{'useClass':je}],[G[_0x114964(0x386)],{'useClass':G['WebSocketService']}],[u[_0x114964(0x31b)],{'useClass':ge}],[exports[_0x114964(0x186)]],[Q],[K],[x],[de],[exports[_0x114964(0x322)]]];a['registerDependencies'](this[_0x114964(0x2ba)],a['mergeOverrideWithDependencies'](_0x453ad7,(_0x1c0a25=this[_0x114964(0x3ad)])==null?void 0x0:_0x1c0a25[_0x114964(0x219)]));}['_registerRenderDependencies'](){const _0xbf82a7=_0x568b38;this[_0xbf82a7(0x369)](this[_0xbf82a7(0x37c)][_0xbf82a7(0x252)](a[_0xbf82a7(0x15a)][_0xbf82a7(0x371)],[Ie])),this['disposeWithMe'](this['_renderManagerService'][_0xbf82a7(0x252)](a['UniverInstanceType']['UNIVER_SHEET'],[ve]));}[_0x568b38(0x1ac)](){const _0x315f77=_0x568b38;a['touchDependencies'](this[_0x315f77(0x2ba)],[[x],[exports[_0x315f77(0x186)]],[Q],[K],[exports['CollaborationDataLoaderController']]]);}},Qt(exports[_0x568b38(0x1be)],'pluginName',es),exports[_0x568b38(0x1be)]=Zt([a['DependentOn'](u['UniverCollaborationClientPlugin']),he(0x1,p[_0x568b38(0x305)]),he(0x2,a['Inject'](a[_0x568b38(0x2b1)])),he(0x3,a[_0x568b38(0x2d6)])],exports[_0x568b38(0x1be)]);var ts=Object[_0x568b38(0x196)],ss=(_0x24f057,_0x1f69a2,_0x101f19,_0x59c4e2)=>{const _0xd1327b=_0x568b38;for(var _0x332b57=_0x59c4e2>0x1?void 0x0:_0x59c4e2?ts(_0x1f69a2,_0x101f19):_0x1f69a2,_0xbeefcb=_0x24f057[_0xd1327b(0x2bd)]-0x1,_0x52c728;_0xbeefcb>=0x0;_0xbeefcb--)(_0x52c728=_0x24f057[_0xbeefcb])&&(_0x332b57=_0x52c728(_0x332b57)||_0x332b57);return _0x332b57;},F=(_0x3329ee,_0x197b60)=>(_0x49d502,_0x4078d3)=>_0x197b60(_0x49d502,_0x4078d3,_0x3329ee);exports['BrowserCollaborationSocketService']=class extends u[_0x568b38(0x338)]{constructor(_0x19ce79,_0x299372,_0x2f3a93,_0x1ec28c,_0x2f8023){super(_0x19ce79,_0x299372,_0x2f3a93,_0x1ec28c,_0x2f8023);}async[_0x568b38(0x362)](_0x1d367c){const _0x4076bf=await this['_getSessionTicket'](),_0x332fa8=this['_createSocketURL'](_0x1d367c,_0x4076bf);return this['_doCreateSocket'](_0x332fa8);}['_createSocketURL'](_0x571d40,_0x4bc87a){const _0x5ed0ac=_0x568b38,_0x176160=typeof window>'u'?new URL(_0x571d40):new URL(_0x571d40,window[_0x5ed0ac(0x30d)]['origin']);_0x176160['searchParams'][_0x5ed0ac(0x379)](_0x5ed0ac(0x20e),_0x4bc87a);const _0x2422af=typeof window>'u'?new URLSearchParams():new URLSearchParams(window[_0x5ed0ac(0x30d)][_0x5ed0ac(0x28e)]);return _0x2422af[_0x5ed0ac(0x1c5)]('runId')&&_0x176160['searchParams'][_0x5ed0ac(0x379)](_0x5ed0ac(0x2a1),_0x2422af[_0x5ed0ac(0x1c5)](_0x5ed0ac(0x2a1))),_0x176160[_0x5ed0ac(0x188)]();}async['_getSessionTicket'](){const _0x2a3df6=_0x568b38;var _0x55fed1,_0x4cacaf,_0x208a34;const _0x5a6bed=this[_0x2a3df6(0x2f3)][_0x2a3df6(0x38c)](u[_0x2a3df6(0x205)]),_0x2f2562=(_0x55fed1=_0x5a6bed==null?void 0x0:_0x5a6bed[_0x2a3df6(0x2c8)])!=null?_0x55fed1:u['DEFAULT_WS_SESSION_TICKET_URL'];return(_0x208a34=(_0x4cacaf=(await this['_httpService'][_0x2a3df6(0x1c5)](_0x2f2562,{'headers':{'Content-Type':_0x2a3df6(0x2a7)}}))['body'])==null?void 0x0:_0x4cacaf[_0x2a3df6(0x356)])!=null?_0x208a34:'';}},exports[_0x568b38(0x2d5)]=ss([F(0x0,a[_0x568b38(0x26b)](a[_0x568b38(0x2b1)])),F(0x1,a[_0x568b38(0x26b)](G['HTTPService'])),F(0x2,a[_0x568b38(0x2d6)]),F(0x3,a[_0x568b38(0x20b)]),F(0x4,m[_0x568b38(0x1cd)])],exports['BrowserCollaborationSocketService']);const Me=0x7530,Le=_0x568b38(0x316);class is extends a[_0x568b38(0x30e)]{constructor(){const _0x4c27ab=_0x568b38;super(),h(this,'_id',a['generateRandomId']()),h(this,_0x4c27ab(0x1e0),new Set()),h(this,'_unitOnClients',new Map()),h(this,_0x4c27ab(0x227),null),h(this,'_clearOtherTimers',new Map()),h(this,_0x4c27ab(0x2b0),new Map()),this[_0x4c27ab(0x246)]();}['dispose'](){const _0x4d7bc6=_0x568b38;super[_0x4d7bc6(0x1a6)](),this[_0x4d7bc6(0x2e5)][_0x4d7bc6(0x13c)]((_0x3fed54,_0x5e8669)=>this[_0x4d7bc6(0x1b7)](_0x5e8669)),this[_0x4d7bc6(0x227)]&&window[_0x4d7bc6(0x23e)](this[_0x4d7bc6(0x227)]);}[_0x568b38(0x3a3)](_0x21c5b5){const _0x626ae=_0x568b38;return this[_0x626ae(0x1c8)](_0x21c5b5)[_0x626ae(0x1db)](d[_0x626ae(0x22b)]());}[_0x568b38(0x197)](_0x403e71){const _0x5ac186=_0x568b38;this[_0x5ac186(0x1e0)][_0x5ac186(0x26a)]===0x0&&this[_0x5ac186(0x175)](),this['_selfUnitIDs'][_0x5ac186(0x3ab)](_0x403e71),this['_send']({'type':0x0,'memberID':this[_0x5ac186(0x154)],'unitIDs':[_0x403e71],'isForwarded':!0x1});}['disposeUnit'](_0x5d6b69){const _0x367944=_0x568b38;this['_selfUnitIDs'][_0x367944(0x144)](_0x5d6b69),this[_0x367944(0x1e0)][_0x367944(0x26a)]===0x0&&this['_heartbeatTimer']&&window[_0x367944(0x23e)](this[_0x367944(0x227)]);}[_0x568b38(0x246)](){const _0x1f272f=_0x568b38;this['disposeWithMe'](a[_0x1f272f(0x373)](d['fromEvent'](window,_0x1f272f(0x1c9))[_0x1f272f(0x152)](_0x4b1ef8=>{const _0x1b9c3e=_0x1f272f;if(_0x4b1ef8[_0x1b9c3e(0x1ad)]!==Le||!_0x4b1ef8[_0x1b9c3e(0x384)])return;const _0x3cee13=JSON[_0x1b9c3e(0x19c)](_0x4b1ef8[_0x1b9c3e(0x384)]);this[_0x1b9c3e(0x21e)](_0x3cee13);}))),window[_0x1f272f(0x38e)](_0x1f272f(0x224),()=>this[_0x1f272f(0x286)]({'type':0x1,'memberID':this[_0x1f272f(0x154)],'unitIDs':Array[_0x1f272f(0x16f)](this[_0x1f272f(0x1e0)])}));}[_0x568b38(0x21e)](_0x24b916){const _0x4d7a84=_0x568b38;switch(_0x24b916['type']){case 0x0:this[_0x4d7a84(0x1d2)](_0x24b916);break;case 0x1:this[_0x4d7a84(0x331)](_0x24b916);break;case 0x2:this['_handleHeartbeatEvent'](_0x24b916);break;}}[_0x568b38(0x1d2)](_0x448f55){const _0x53d942=_0x568b38,{unitIDs:_0x1e2101,memberID:_0x390c4f,isForwarded:_0x20171f}=_0x448f55;_0x1e2101[_0x53d942(0x13c)](_0x190afb=>{const _0x37f373=_0x53d942;if(!_0x20171f&&this[_0x37f373(0x1d1)][_0x37f373(0x347)](_0x190afb)&&this['_ensureSubject'](_0x190afb)[_0x37f373(0x1c7)](u[_0x37f373(0x1f7)][_0x37f373(0x2eb)]),!this[_0x37f373(0x1d1)][_0x37f373(0x347)](_0x190afb)||!this['_unitOnClients']['get'](_0x190afb)[_0x37f373(0x347)](_0x390c4f)){const _0x2aeb67=this[_0x37f373(0x1d1)][_0x37f373(0x1c5)](_0x190afb)||new Set();_0x2aeb67['add'](_0x390c4f),this[_0x37f373(0x1d1)]['set'](_0x190afb,_0x2aeb67),this[_0x37f373(0x16a)](_0x390c4f);}}),_0x20171f||this['_send']({'type':0x0,'memberID':this[_0x53d942(0x154)],'unitIDs':[...this['_selfUnitIDs']],'isForwarded':!0x0});}[_0x568b38(0x16a)](_0x4617bb){const _0x5069e4=_0x568b38;this['_removeClearOtherTimer'](_0x4617bb);const _0x26931e=window[_0x5069e4(0x35a)](()=>{const _0x4d4a2b=_0x5069e4;this[_0x4d4a2b(0x1d1)]['forEach'](_0x3026f4=>{const _0x40d76b=_0x4d4a2b;_0x3026f4[_0x40d76b(0x144)](_0x4617bb);});},Me*0x2);this[_0x5069e4(0x2e5)][_0x5069e4(0x379)](_0x4617bb,_0x26931e);}[_0x568b38(0x1b7)](_0x2af447){const _0x67dff7=_0x568b38;if(this['_clearOtherTimers'][_0x67dff7(0x347)](_0x2af447)){const _0x473011=this[_0x67dff7(0x2e5)]['get'](_0x2af447);_0x473011&&window[_0x67dff7(0x25b)](_0x473011),this[_0x67dff7(0x2e5)][_0x67dff7(0x379)](_0x2af447,null);}}[_0x568b38(0x331)](_0x44eac4){const _0x175c43=_0x568b38,{memberID:_0x24345a,unitIDs:_0x48b01a}=_0x44eac4;_0x48b01a[_0x175c43(0x13c)](_0x2c7ce3=>{const _0x5383d4=_0x175c43;var _0x565952;const _0x2fd953=this[_0x5383d4(0x1d1)][_0x5383d4(0x1c5)](_0x2c7ce3);_0x2fd953&&(_0x2fd953['delete'](_0x24345a),(_0x565952=this[_0x5383d4(0x1c8)](_0x2c7ce3))==null||_0x565952[_0x5383d4(0x1c7)](_0x2fd953[_0x5383d4(0x26a)]===0x0?u[_0x5383d4(0x1f7)][_0x5383d4(0x189)]:u[_0x5383d4(0x1f7)][_0x5383d4(0x2eb)]));}),this[_0x175c43(0x1b7)](_0x24345a);}['_handleHeartbeatEvent'](_0x3059f1){const _0x184ee0=_0x568b38;this[_0x184ee0(0x16a)](_0x3059f1[_0x184ee0(0x38d)]);}[_0x568b38(0x286)](_0x281a87){const _0x578d57=_0x568b38;localStorage[_0x578d57(0x3a5)](Le,JSON[_0x578d57(0x222)](_0x281a87));}[_0x568b38(0x175)](){const _0x553010=_0x568b38;this[_0x553010(0x227)]=window[_0x553010(0x236)](()=>{const _0xff6dcd=_0x553010;this[_0xff6dcd(0x286)]({'type':0x2,'memberID':this[_0xff6dcd(0x154)]});},Me);}['_ensureSubject'](_0x263759){const _0x5de6ec=_0x568b38;return this['_unitStatus'][_0x5de6ec(0x347)](_0x263759)||this['_unitStatus']['set'](_0x263759,new d[(_0x5de6ec(0x274))](u[_0x5de6ec(0x1f7)]['NO_OTHER_CLIENTS_EDITING'])),this[_0x5de6ec(0x2b0)][_0x5de6ec(0x1c5)](_0x263759);}}var Be=(_0x59e6c5=>(_0x59e6c5[_0x59e6c5['UNDEFINED']=0x0]=_0x568b38(0x365),_0x59e6c5[_0x59e6c5['OK']=0x1]='OK',_0x59e6c5[_0x59e6c5['INTERNAL_ERROR']=0x2]='INTERNAL_ERROR',_0x59e6c5[_0x59e6c5[_0x568b38(0x1a1)]=0x3]=_0x568b38(0x1a1),_0x59e6c5[_0x59e6c5[_0x568b38(0x2a9)]=0x4]=_0x568b38(0x2a9),_0x59e6c5[_0x59e6c5['UNAUTHENTICATED']=0x5]=_0x568b38(0x2aa),_0x59e6c5[_0x59e6c5[_0x568b38(0x346)]=0x6]=_0x568b38(0x346),_0x59e6c5[_0x59e6c5[_0x568b38(0x2e4)]=0x7]=_0x568b38(0x2e4),_0x59e6c5[_0x59e6c5[_0x568b38(0x1f9)]=0x8]=_0x568b38(0x1f9),_0x59e6c5[_0x59e6c5[_0x568b38(0x300)]=0x9]='COMPLETION_FINISHED',_0x59e6c5[_0x59e6c5[_0x568b38(0x39b)]=0xa]=_0x568b38(0x39b),_0x59e6c5[_0x59e6c5[_0x568b38(0x354)]=0x1389]=_0x568b38(0x354),_0x59e6c5[_0x59e6c5[_0x568b38(0x21d)]=0x1771]=_0x568b38(0x21d),_0x59e6c5[_0x59e6c5[_0x568b38(0x2f4)]=0x1772]='SNAPSHOT_HAS_BEEN_REMOVED',_0x59e6c5[_0x59e6c5[_0x568b38(0x184)]=0x1773]=_0x568b38(0x184),_0x59e6c5[_0x59e6c5['APPLY_REJECT']=0x1b59]=_0x568b38(0x16e),_0x59e6c5[_0x59e6c5[_0x568b38(0x2d8)]=0x1b5a]=_0x568b38(0x2d8),_0x59e6c5[_0x59e6c5[_0x568b38(0x2a8)]=0x1b5b]=_0x568b38(0x2a8),_0x59e6c5[_0x59e6c5[_0x568b38(0x20a)]=0x1b5c]=_0x568b38(0x20a),_0x59e6c5[_0x59e6c5['APPLY_DUPLICATED']=0x1b5d]=_0x568b38(0x14e),_0x59e6c5[_0x59e6c5[_0x568b38(0x209)]=0x1f41]='CONNECTOR_DATA_TOO_LARGE',_0x59e6c5[_0x59e6c5[_0x568b38(0x271)]=0x2329]='LICENSE_MAX_UNITS_EXCEEDED',_0x59e6c5[_0x59e6c5[_0x568b38(0x207)]=0x232a]=_0x568b38(0x207),_0x59e6c5[_0x59e6c5[_0x568b38(0x2f9)]=0x232b]=_0x568b38(0x2f9),_0x59e6c5[_0x59e6c5[_0x568b38(0x34a)]=0x232c]=_0x568b38(0x34a),_0x59e6c5[_0x59e6c5[_0x568b38(0x1fe)]=0x232d]='LICENSE_DISTRO_REJECTED',_0x59e6c5[_0x59e6c5[_0x568b38(0x360)]=0x2711]=_0x568b38(0x360),_0x59e6c5[_0x59e6c5[_0x568b38(0x304)]=0x2712]=_0x568b38(0x304),_0x59e6c5[_0x59e6c5['YUUMI_RATE_OVER_LIMIT']=0x2713]=_0x568b38(0x334),_0x59e6c5[_0x59e6c5[_0x568b38(0x18c)]=0x2714]='YUUMI_SUBSCRIPTION_NOT_FOUND',_0x59e6c5[_0x59e6c5[_0x568b38(0x1b3)]=0x271a]=_0x568b38(0x1b3),_0x59e6c5[_0x59e6c5['YUUMI_ASYNCIO_CANCELLED']=0x271b]=_0x568b38(0x2e1),_0x59e6c5[_0x59e6c5[_0x568b38(0x2d7)]=0x2af9]='PY_RUNTIME_SCRIPT_ERROR',_0x59e6c5[_0x59e6c5[_0x568b38(0x2f6)]=0x2ee1]=_0x568b38(0x2f6),_0x59e6c5[_0x59e6c5[_0x568b38(0x193)]=0x2ee2]=_0x568b38(0x193),_0x59e6c5[_0x59e6c5['INVITE_CODE_REQUIRED']=0x2ee3]=_0x568b38(0x349),_0x59e6c5[_0x59e6c5[_0x568b38(0x2ac)]=0x2ee4]=_0x568b38(0x2ac),_0x59e6c5[_0x59e6c5[_0x568b38(0x25a)]=0x2ee5]=_0x568b38(0x25a),_0x59e6c5[_0x59e6c5[_0x568b38(0x28a)]=0x32c9]=_0x568b38(0x28a),_0x59e6c5[_0x59e6c5[_0x568b38(0x1d6)]=0x32ca]=_0x568b38(0x1d6),_0x59e6c5[_0x59e6c5[_0x568b38(0x2e9)]=0x32cb]=_0x568b38(0x2e9),_0x59e6c5[_0x59e6c5[_0x568b38(0x1ec)]=-0x1]=_0x568b38(0x1ec),_0x59e6c5))(Be||{}),ns=Object[_0x568b38(0x196)],rs=(_0x4ba6c3,_0x208799,_0x14ce17,_0x5d6ede)=>{for(var _0x4fa9ea=_0x5d6ede>0x1?void 0x0:_0x5d6ede?ns(_0x208799,_0x14ce17):_0x208799,_0x26b2ba=_0x4ba6c3['length']-0x1,_0x1b7d3f;_0x26b2ba>=0x0;_0x26b2ba--)(_0x1b7d3f=_0x4ba6c3[_0x26b2ba])&&(_0x4fa9ea=_0x1b7d3f(_0x4fa9ea)||_0x4fa9ea);return _0x4fa9ea;},ue=(_0x575b15,_0x1c81f1)=>(_0x4a2a9b,_0x307a43)=>_0x1c81f1(_0x4a2a9b,_0x307a43,_0x575b15);exports[_0x568b38(0x266)]=class extends a['Disposable']{constructor(_0x32ff6f,_0x441a90,_0x5a15a3){const _0x31fdf9=_0x568b38;super(),this['_instanceService']=_0x32ff6f,this['_httpService']=_0x441a90,this[_0x31fdf9(0x2f3)]=_0x5a15a3;}async[_0x568b38(0x272)](_0x3886fc,_0xd27bda,_0x3e47e4,..._0x2ad417){const _0x24bd1d=_0x568b38;var _0x51b6e1,_0x289af8,_0x44684c,_0x29ac1a;const _0x4c84ff=this[_0x24bd1d(0x198)][_0x24bd1d(0x32e)]();if(!_0x4c84ff)throw new Error('[RemoteUniscriptService]:\x20no\x20focused\x20unit');const _0x38f40b=((_0x51b6e1=this['_configService'][_0x24bd1d(0x38c)](u[_0x24bd1d(0x269)]))!=null?_0x51b6e1:u[_0x24bd1d(0x2b8)])+'/'+_0x3886fc+'/run/'+_0xd27bda,_0x11a5e7=new URL(window[_0x24bd1d(0x30d)]['href']),_0x508cb2={'scriptId':_0x3886fc,'runId':(_0x289af8=_0x11a5e7[_0x24bd1d(0x132)]['get'](_0x24bd1d(0x2a1)))!=null?_0x289af8:'','function':_0xd27bda,'unitId':_0x4c84ff[_0x24bd1d(0x2e8)](),'argsOfFunction':JSON[_0x24bd1d(0x222)](_0x2ad417),'invokeId':(_0x44684c=_0x3e47e4['invokeId'])!=null?_0x44684c:'','executionId':(_0x29ac1a=_0x3e47e4['executionId'])!=null?_0x29ac1a:''};try{const _0x21110e=await this[_0x24bd1d(0x39c)][_0x24bd1d(0x368)](_0x38f40b,{'body':_0x508cb2});return _0x21110e[_0x24bd1d(0x169)][_0x24bd1d(0x2d0)]&&_0x21110e['body']['error'][_0x24bd1d(0x27d)]!==Be['OK']?_0x24bd1d(0x297):_0x21110e[_0x24bd1d(0x169)][_0x24bd1d(0x321)];}catch{return _0x24bd1d(0x297);}}},exports[_0x568b38(0x266)]=rs([ue(0x0,a[_0x568b38(0x1a5)]),ue(0x1,a['Inject'](G[_0x568b38(0x2b4)])),ue(0x2,a[_0x568b38(0x2d6)])],exports[_0x568b38(0x266)]),exports[_0x568b38(0x239)]=xe,exports[_0x568b38(0x37a)]=be,exports[_0x568b38(0x1fa)]=we,exports[_0x568b38(0x21b)]=is,exports[_0x568b38(0x20f)]=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';const
|
|
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;
|