@univerjs-pro/collaboration-client-ui 0.6.10-nightly.202504201606 → 0.6.10-nightly.202504231607
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/cjs/facade.js +1 -1
- package/lib/cjs/index.js +1 -1
- package/lib/cjs/locale/en-US.js +1 -1
- package/lib/cjs/locale/fa-IR.js +1 -1
- package/lib/cjs/locale/fr-FR.js +1 -1
- package/lib/cjs/locale/ru-RU.js +1 -1
- package/lib/cjs/locale/vi-VN.js +1 -1
- package/lib/cjs/locale/zh-CN.js +1 -1
- package/lib/cjs/locale/zh-TW.js +1 -1
- package/lib/es/facade.js +1 -1
- package/lib/es/index.js +1 -1
- package/lib/es/locale/en-US.js +1 -1
- package/lib/es/locale/fa-IR.js +1 -1
- package/lib/es/locale/fr-FR.js +1 -1
- package/lib/es/locale/ru-RU.js +1 -1
- package/lib/es/locale/vi-VN.js +1 -1
- package/lib/es/locale/zh-CN.js +1 -1
- package/lib/es/locale/zh-TW.js +1 -1
- package/lib/facade.js +1 -1
- package/lib/index.js +1 -1
- package/lib/locale/en-US.js +1 -1
- package/lib/locale/fa-IR.js +1 -1
- package/lib/locale/fr-FR.js +1 -1
- package/lib/locale/ru-RU.js +1 -1
- package/lib/locale/vi-VN.js +1 -1
- package/lib/locale/zh-CN.js +1 -1
- package/lib/locale/zh-TW.js +1 -1
- package/lib/umd/facade.js +1 -1
- package/lib/umd/index.js +1 -1
- package/lib/umd/locale/en-US.js +1 -1
- package/lib/umd/locale/fa-IR.js +1 -1
- package/lib/umd/locale/fr-FR.js +1 -1
- package/lib/umd/locale/ru-RU.js +1 -1
- package/lib/umd/locale/vi-VN.js +1 -1
- package/lib/umd/locale/zh-CN.js +1 -1
- package/lib/umd/locale/zh-TW.js +1 -1
- package/package.json +17 -17
package/lib/cjs/facade.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const _0x3be257=_0x442f;(function(_0x54846e,_0x3da607){const _0x55beb8=_0x442f,_0x33636d=_0x54846e();while(!![]){try{const _0x22b4cf=-parseInt(_0x55beb8(0x10f))/0x1*(-parseInt(_0x55beb8(0x11d))/0x2)+parseInt(_0x55beb8(0x117))/0x3*(parseInt(_0x55beb8(0x111))/0x4)+parseInt(_0x55beb8(0x10e))/0x5*(-parseInt(_0x55beb8(0x11b))/0x6)+parseInt(_0x55beb8(0x114))/0x7+parseInt(_0x55beb8(0x119))/0x8*(parseInt(_0x55beb8(0x11a))/0x9)+-parseInt(_0x55beb8(0x11f))/0xa+parseInt(_0x55beb8(0x11c))/0xb*(-parseInt(_0x55beb8(0x118))/0xc);if(_0x22b4cf===_0x3da607)break;else _0x33636d['push'](_0x33636d['shift']());}catch(_0x3aca8f){_0x33636d['push'](_0x33636d['shift']());}}}(_0xb6e3,0x29d15));function _0x442f(_0x322934,_0x1a8f15){const _0xb6e37b=_0xb6e3();return _0x442f=function(_0x442fd1,_0x575a98){_0x442fd1=_0x442fd1-0x10d;let _0x4ad15b=_0xb6e37b[_0x442fd1];return _0x4ad15b;},_0x442f(_0x322934,_0x1a8f15);}const t=require(_0x3be257(0x113)),e=require(_0x3be257(0x116));class c extends e[_0x3be257(0x11e)]{[_0x3be257(0x10d)](_0x498ec8,_0x424b82,..._0x79b5ec){const _0x38f73f=_0x3be257;return this[_0x38f73f(0x115)][_0x38f73f(0x112)](t[_0x38f73f(0x110)])[_0x38f73f(0x10d)](_0x498ec8,_0x424b82,{},..._0x79b5ec);}}function _0xb6e3(){const _0x186016=['_injector','@univerjs/core/facade','189MpOQxN','556788cbhHvw','126088GwLQOa','18AMhzpr','493806sssndG','11aHrtLa','40294qiHMej','FUniver','1748190HFvXUS','runOnServer','5LZhfhD','17pZgOBJ','RemoteUniscriptService','1324arAwgz','get','@univerjs-pro/collaboration-client-ui','559510sinmpY'];_0xb6e3=function(){return _0x186016;};return _0xb6e3();}e['FUniver']['extend'](c);
|
package/lib/cjs/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const _0x151a7c=_0x2459;(function(_0x438915,_0x51a419){const _0x42bf29=_0x2459,_0x14cab5=_0x438915();while(!![]){try{const _0x3a201b=parseInt(_0x42bf29(0x334))/0x1*(parseInt(_0x42bf29(0x340))/0x2)+-parseInt(_0x42bf29(0x40d))/0x3+-parseInt(_0x42bf29(0x238))/0x4+parseInt(_0x42bf29(0x270))/0x5+parseInt(_0x42bf29(0x1c1))/0x6+parseInt(_0x42bf29(0x383))/0x7+-parseInt(_0x42bf29(0x2b9))/0x8;if(_0x3a201b===_0x51a419)break;else _0x14cab5['push'](_0x14cab5['shift']());}catch(_0x3468d5){_0x14cab5['push'](_0x14cab5['shift']());}}}(_0x448a,0x7e4bc));var Xe=Object[_0x151a7c(0x209)],Ge=(_0x12bd8e,_0x495464,_0x50ea8f)=>_0x495464 in _0x12bd8e?Xe(_0x12bd8e,_0x495464,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x50ea8f}):_0x12bd8e[_0x495464]=_0x50ea8f,_=(_0x2a42e8,_0x59d789,_0x53656f)=>Ge(_0x2a42e8,typeof _0x59d789!=_0x151a7c(0x41e)?_0x59d789+'':_0x59d789,_0x53656f);Object[_0x151a7c(0x209)](exports,Symbol[_0x151a7c(0x1ef)],{'value':_0x151a7c(0x2c7)});const u=require(_0x151a7c(0x1fb)),a=require('@univerjs/core'),p=require(_0x151a7c(0x2f9)),q=require(_0x151a7c(0x37a)),b=require(_0x151a7c(0x3ae)),qe=require('@univerjs/drawing'),d=require(_0x151a7c(0x398)),Y=require('@univerjs/docs'),m=require('@univerjs-pro/collaboration'),Te=require(_0x151a7c(0x3de)),g=require(_0x151a7c(0x239)),$=require(_0x151a7c(0x330)),G=require(_0x151a7c(0x1a3)),P=require(_0x151a7c(0x30e)),O=require(_0x151a7c(0x25f)),T=require(_0x151a7c(0x1c6)),M=require(_0x151a7c(0x1b1)),Ke=require('@univerjs/rpc');var ze=Object['getOwnPropertyDescriptor'],Je=(_0x24e6e1,_0x51b53f,_0x54d605,_0xb4e4a5)=>{const _0x31ae3c=_0x151a7c;for(var _0x526a1b=_0xb4e4a5>0x1?void 0x0:_0xb4e4a5?ze(_0x51b53f,_0x54d605):_0x51b53f,_0x1291d5=_0x24e6e1[_0x31ae3c(0x3b3)]-0x1,_0x48f98b;_0x1291d5>=0x0;_0x1291d5--)(_0x48f98b=_0x24e6e1[_0x1291d5])&&(_0x526a1b=_0x48f98b(_0x526a1b)||_0x526a1b);return _0x526a1b;},Oe=(_0xd890d3,_0x197f11)=>(_0x3f3d8a,_0x1a8436)=>_0x197f11(_0x3f3d8a,_0x1a8436,_0xd890d3);let fe=class extends a[_0x151a7c(0x2c2)]{constructor(_0x461e82,_0x134388){const _0x3e94cf=_0x151a7c;super(),this[_0x3e94cf(0x276)]=_0x461e82,this['_imageIoService']=_0x134388,this[_0x3e94cf(0x1c8)]();}[_0x151a7c(0x1c8)](){const _0x5f001e=_0x151a7c,_0xb8872a=this;this[_0x5f001e(0x2f6)](this[_0x5f001e(0x276)][_0x5f001e(0x2da)]({'onBeforePasteImage':async _0x2421cb=>{const _0x38582d=_0x5f001e,_0x17521a=await _0xb8872a[_0x38582d(0x3a0)]['saveImage'](_0x2421cb);return _0x17521a?{'source':_0x17521a[_0x38582d(0x261)],'imageSourceType':_0x17521a[_0x38582d(0x2ba)]}:null;}}));}};fe=Je([Oe(0x0,b[_0x151a7c(0x3eb)]),Oe(0x1,qe[_0x151a7c(0x284)])],fe);const Re=['purple300',_0x151a7c(0x3a1),_0x151a7c(0x1d4),_0x151a7c(0x27a),_0x151a7c(0x318),_0x151a7c(0x1c7)];function _0x2459(_0x5d9cd1,_0x336af7){const _0x448ab5=_0x448a();return _0x2459=function(_0x2459b9,_0x45346f){_0x2459b9=_0x2459b9-0x197;let _0x463363=_0x448ab5[_0x2459b9];return _0x463363;},_0x2459(_0x5d9cd1,_0x336af7);}class Ce extends a[_0x151a7c(0x38f)]{constructor(){const _0x4306bd=_0x151a7c;super(...arguments),_(this,'_assignedColors',new Map()),_(this,_0x4306bd(0x3ef),0x0);}[_0x151a7c(0x28c)](_0x470957){const _0x47ac2d=_0x151a7c;if(this[_0x47ac2d(0x26d)][_0x47ac2d(0x3ff)](_0x470957))return this[_0x47ac2d(0x26d)][_0x47ac2d(0x35b)](_0x470957);const _0x36e185=Re[this[_0x47ac2d(0x3ef)]];return this[_0x47ac2d(0x3ef)]=(this[_0x47ac2d(0x3ef)]+0x1)%Re[_0x47ac2d(0x3b3)],this['_assignedColors']['set'](_0x470957,_0x36e185),_0x36e185;}}function we(_0x568a45){const _0x2efd58=_0x151a7c;let _0x35c16d='';for(const _0x41d4e9 of _0x568a45){const {startOffset:_0x2b9ab6,endOffset:_0x43f48e,isActive:_0x5896dd,rangeType:_0x32a1ff,segmentId:_0xa2e5f6,segmentPage:_0xaa5dab}=_0x41d4e9;_0x35c16d[_0x2efd58(0x3b3)]&&(_0x35c16d+=','),_0x35c16d+=_0x2b9ab6+':'+_0x43f48e+':'+(_0x5896dd?'1':'0')+':'+_0x32a1ff+':'+_0xa2e5f6+':'+_0xaa5dab;}return _0x35c16d;}function Ze(_0x28e6c9){const _0x5df5b5=_0x151a7c,_0x246243=_0x28e6c9[_0x5df5b5(0x1f5)](','),_0x46a7c9=[];for(const _0x1f2112 of _0x246243){const [_0x307a42,_0x1b687d,_0x384489,_0x3f9a84,_0x1cc1e7,_0x2c990c]=_0x1f2112[_0x5df5b5(0x1f5)](':');_0x46a7c9[_0x5df5b5(0x264)]({'startOffset':Number(_0x307a42),'endOffset':Number(_0x1b687d),'collapsed':_0x307a42===_0x1b687d,'isActive':_0x384489==='1','rangeType':_0x3f9a84===a[_0x5df5b5(0x216)]['TEXT']?a[_0x5df5b5(0x216)][_0x5df5b5(0x394)]:a[_0x5df5b5(0x216)]['RECT'],'segmentId':typeof _0x1cc1e7==_0x5df5b5(0x20f)?String(_0x1cc1e7):'','segmentPage':Number(_0x2c990c!=null?_0x2c990c:-0x1)});}return _0x46a7c9[_0x5df5b5(0x325)](_0x45084d=>_0x45084d[_0x5df5b5(0x3bc)])||(_0x46a7c9[0x0][_0x5df5b5(0x3bc)]=!0x0),_0x46a7c9;}class pe extends a[_0x151a7c(0x2c2)]{constructor(){const _0x4fe524=_0x151a7c;super(...arguments),_(this,_0x4fe524(0x262),new d['BehaviorSubject'](null)),_(this,'collabCursorState$',this[_0x4fe524(0x262)][_0x4fe524(0x33c)]());}[_0x151a7c(0x399)](_0x227c57){const _0x5a762d=_0x151a7c,{unitID:_0x278db8,memberID:_0x3d85a0,textRanges:_0x4b3023}=_0x227c57,_0x520f20=we(_0x4b3023);if(_0x520f20==='')return;const _0x216cab={'unitID':_0x278db8,'memberID':_0x3d85a0,'selection':_0x520f20};this[_0x5a762d(0x262)][_0x5a762d(0x336)](_0x216cab);}}var Qe=Object['getOwnPropertyDescriptor'],et=(_0x1128ea,_0x33b58e,_0x584f5b,_0x33fb57)=>{for(var _0x107f24=_0x33fb57>0x1?void 0x0:_0x33fb57?Qe(_0x33b58e,_0x584f5b):_0x33b58e,_0x345be9=_0x1128ea['length']-0x1,_0x4df22b;_0x345be9>=0x0;_0x345be9--)(_0x4df22b=_0x1128ea[_0x345be9])&&(_0x107f24=_0x4df22b(_0x107f24)||_0x107f24);return _0x107f24;},L=(_0x2625da,_0x305fe2)=>(_0x2139ed,_0x5e5777)=>_0x305fe2(_0x2139ed,_0x5e5777,_0x2625da);const tt=0x12c,st=0x64;let Se=class extends a[_0x151a7c(0x2c2)]{constructor(_0x1525e9,_0x3841e3,_0x20efb3,_0x56602d,_0x17f329,_0x124951,_0x3abafa,_0x119a01,_0x602baf){const _0x5cbc83=_0x151a7c;super(),_(this,_0x5cbc83(0x3e2),!0x1),_(this,'_init',!0x1),_(this,_0x5cbc83(0x390),new d[(_0x5cbc83(0x1dd))](new Map())),_(this,_0x5cbc83(0x3ea),this['_cursorInfo$']['asObservable']()),_(this,'_roomMembers$',new d[(_0x5cbc83(0x1dd))]([])),_(this,_0x5cbc83(0x321),this['_roomMembers$'][_0x5cbc83(0x271)](d[_0x5cbc83(0x2b4)](tt))),_(this,_0x5cbc83(0x2aa),a[_0x5cbc83(0x36c)](_0x38c72f=>{const _0x4691ed=_0x5cbc83,_0x2d4573={'eventID':m[_0x4691ed(0x372)][_0x4691ed(0x258)],'data':{'unitID':this[_0x4691ed(0x328)],'memberID':this['_session']['getMemberID'](),'selection':we(_0x38c72f)}};this[_0x4691ed(0x375)][_0x4691ed(0x220)](_0x2d4573,this[_0x4691ed(0x328)]);},st)),(this[_0x5cbc83(0x328)]=_0x1525e9,this['_session']=_0x3841e3,this[_0x5cbc83(0x388)]=_0x20efb3,this[_0x5cbc83(0x1b7)]=_0x56602d,this[_0x5cbc83(0x3f9)]=_0x17f329,this[_0x5cbc83(0x219)]=_0x124951,this[_0x5cbc83(0x21b)]=_0x3abafa,this[_0x5cbc83(0x344)]=_0x119a01,this['_commandService']=_0x602baf);}get[_0x151a7c(0x2ac)](){const _0x2ab020=_0x151a7c;return this[_0x2ab020(0x390)]['getValue']();}get['roomMembers'](){const _0x324996=_0x151a7c;return this[_0x324996(0x376)][_0x324996(0x1ae)]();}[_0x151a7c(0x3a3)](){const _0x596e35=_0x151a7c;super['dispose'](),this[_0x596e35(0x390)]['next'](new Map()),this['_cursorInfo$'][_0x596e35(0x3ed)](),this[_0x596e35(0x376)][_0x596e35(0x336)]([]),this[_0x596e35(0x376)][_0x596e35(0x3ed)]();}[_0x151a7c(0x256)](){const _0x557e18=_0x151a7c;this[_0x557e18(0x1c8)]||(this['_init']=!0x0,this[_0x557e18(0x375)][_0x557e18(0x36d)]['pipe'](d[_0x557e18(0x407)](this[_0x557e18(0x326)]))[_0x557e18(0x22b)](_0x3f119e=>{const _0x2e431c=_0x557e18;_0x3f119e===u[_0x2e431c(0x3be)][_0x2e431c(0x3b5)]?this[_0x2e431c(0x3f6)]():this[_0x2e431c(0x2a7)]();}),this[_0x557e18(0x375)][_0x557e18(0x322)][_0x557e18(0x271)](d[_0x557e18(0x407)](this[_0x557e18(0x326)]))[_0x557e18(0x22b)](_0x3f5061=>{const _0x34e550=_0x557e18,_0x3f9574=_0x3f5061['eventID'];_0x3f9574===m[_0x34e550(0x372)][_0x34e550(0x258)]&&this[_0x34e550(0x28d)](_0x3f5061),_0x3f9574===m['CollaborationEvent'][_0x34e550(0x1e0)]&&this[_0x34e550(0x217)](_0x3f5061);}),this[_0x557e18(0x2f6)](this[_0x557e18(0x357)][_0x557e18(0x3c9)](_0x725c4b=>{const _0xdd05f2=_0x557e18,_0x293cbf=_0x725c4b[_0xdd05f2(0x28e)];_0x293cbf!=null&&this[_0xdd05f2(0x3e2)]&&_0x725c4b['id']===Y[_0xdd05f2(0x223)]['id']&&_0x293cbf['unitId']===this[_0xdd05f2(0x328)]&&_0x293cbf[_0xdd05f2(0x36b)]===!0x1&&_0x293cbf['ranges']['length']>0x0&&this[_0xdd05f2(0x2aa)](_0x293cbf['ranges']);})),this['_syncEditingCollabCursorService'][_0x557e18(0x224)]['pipe'](d['takeUntil'](this[_0x557e18(0x326)]))[_0x557e18(0x22b)](_0x58ab30=>{const _0x3134a0=_0x557e18;if((_0x58ab30==null?void 0x0:_0x58ab30[_0x3134a0(0x328)])!==this[_0x3134a0(0x328)])return;const _0x300506={'eventID':m[_0x3134a0(0x372)][_0x3134a0(0x258)],'data':_0x58ab30};this[_0x3134a0(0x28d)](_0x300506);}),this[_0x557e18(0x2f6)](this[_0x557e18(0x357)][_0x557e18(0x3c9)](_0x11e879=>{const _0x5c5d4d=_0x557e18;if(_0x11e879['params']==null)return;const _0x3aad92=_0x11e879[_0x5c5d4d(0x28e)];if(_0x11e879['id']!==Y['RichTextEditingMutation']['id']||_0x3aad92[_0x5c5d4d(0x1de)]!==this['unitID'])return;const _0x4aa314={'id':_0x5c5d4d(0x1d3),'params':_0x3aad92},_0x37369a=this['cursorInfo'];for(const [_0x51aea3,_0x453078]of _0x37369a){const _0x10c74b={'id':_0x5c5d4d(0x1d3),'params':{'unitId':this[_0x5c5d4d(0x328)],'actions':null,'textRanges':_0x453078[_0x5c5d4d(0x3d4)]}},_0x36feec=this[_0x5c5d4d(0x21b)][_0x5c5d4d(0x350)](_0x4aa314,_0x10c74b,!0x1);if(m[_0x5c5d4d(0x2e1)](_0x36feec))throw _0x36feec['error'];_0x37369a[_0x5c5d4d(0x2a4)](_0x51aea3,{..._0x453078,'ranges':_0x36feec[_0x5c5d4d(0x293)][_0x5c5d4d(0x28e)][_0x5c5d4d(0x31e)]});}queueMicrotask(()=>{const _0x495e79=_0x5c5d4d;this[_0x495e79(0x390)][_0x495e79(0x336)](_0x37369a);});})));}[_0x151a7c(0x28d)](_0x4679d0){const _0xd59dd4=_0x151a7c;var _0x2b81fe,_0x21c1b5;const {memberID:_0x2f4d19,selection:_0x4ea73a}=_0x4679d0['data'],_0xe3eaf8=Ze(_0x4ea73a),_0x336e17=(_0x21c1b5=(_0x2b81fe=this['_memberService'][_0xd59dd4(0x3af)](this[_0xd59dd4(0x328)],_0x2f4d19))==null?void 0x0:_0x2b81fe['name'])!=null?_0x21c1b5:_0xd59dd4(0x40f),_0x2926af={'color':this['_colorAssignService']['assignAColorForMemberID'](_0x2f4d19),'name':_0x336e17,'ranges':_0xe3eaf8},_0x1f6086=this['cursorInfo'];_0x1f6086['set'](_0x2f4d19,_0x2926af),this[_0xd59dd4(0x390)][_0xd59dd4(0x336)](_0x1f6086);}[_0x151a7c(0x217)](_0x54198a){const _0xea2887=_0x151a7c,{memberID:_0x2a12d9}=_0x54198a[_0xea2887(0x2eb)],_0x4ef1fc=this[_0xea2887(0x2ac)];_0x4ef1fc['delete'](_0x2a12d9),this[_0xea2887(0x390)][_0xea2887(0x336)](_0x4ef1fc);}[_0x151a7c(0x3f6)](){const _0x2b501d=_0x151a7c;var _0x1fc73f;if(this['_online']=!0x0,((_0x1fc73f=this['_univerInstanceService']['getFocusedUnit']())==null?void 0x0:_0x1fc73f[_0x2b501d(0x27f)]())!==this['unitID'])return;const _0xe9a96d=this[_0x2b501d(0x388)]['get'](Y['DocSelectionManagerService'])[_0x2b501d(0x417)]();Array[_0x2b501d(0x2d3)](_0xe9a96d)&&_0xe9a96d[_0x2b501d(0x3b3)]>0x0&&this[_0x2b501d(0x2aa)](_0xe9a96d);}['_toggleOffline'](){const _0xb5ebe9=_0x151a7c;this[_0xb5ebe9(0x3e2)]=!0x1;}};Se=et([L(0x2,a[_0x151a7c(0x2db)](a['Injector'])),L(0x3,a['Inject'](Ce)),L(0x4,a[_0x151a7c(0x2db)](u['MemberService'])),L(0x5,a['Inject'](pe)),L(0x6,m['ITransformService']),L(0x7,a['IUniverInstanceService']),L(0x8,a['ICommandService'])],Se);var nt=Object[_0x151a7c(0x300)],it=(_0x141b79,_0x1dd05d,_0x3a750f,_0x17e097)=>{const _0x8d33=_0x151a7c;for(var _0x5bec42=_0x17e097>0x1?void 0x0:_0x17e097?nt(_0x1dd05d,_0x3a750f):_0x1dd05d,_0x29de05=_0x141b79[_0x8d33(0x3b3)]-0x1,_0x11f286;_0x29de05>=0x0;_0x29de05--)(_0x11f286=_0x141b79[_0x29de05])&&(_0x5bec42=_0x11f286(_0x5bec42)||_0x5bec42);return _0x5bec42;},A=(_0x2ad6fa,_0x348561)=>(_0x45f3a5,_0xbfd77e)=>_0x348561(_0x45f3a5,_0xbfd77e,_0x2ad6fa);const rt=0x12c,ot=0x64,at=()=>{let _0x519874=[],_0x303615=!0x1;return _0x2fa49f=>{const _0x4aa2d9=_0x2459;_0x519874[_0x4aa2d9(0x264)](_0x2fa49f),_0x303615||(_0x303615=!0x0,setTimeout(()=>{_0x519874['forEach'](_0x400299=>_0x400299()),_0x519874=[],_0x303615=!0x1;}));};};let Ie=class extends a['RxDisposable']{constructor(_0x4ae759,_0x1a05ed,_0x431e66,_0xb1945c,_0x52473a,_0x220014,_0x46d237,_0x32127b){const _0x2c326f=_0x151a7c;super(),_(this,'_online',!0x1),_(this,_0x2c326f(0x1c8),!0x1),_(this,'_cursorInfo$',new d[(_0x2c326f(0x1dd))](new Map())),_(this,_0x2c326f(0x3ea),this[_0x2c326f(0x390)][_0x2c326f(0x33c)]()),_(this,'_roomMembers$',new d[(_0x2c326f(0x1dd))]([])),_(this,_0x2c326f(0x321),this['_roomMembers$'][_0x2c326f(0x271)](d['debounceTime'](rt))),_(this,_0x2c326f(0x2aa),a[_0x2c326f(0x36c)]((_0x478256,_0x76fb7f)=>{const _0x1806ce=_0x2c326f,_0x562137={'eventID':m[_0x1806ce(0x372)][_0x1806ce(0x258)],'data':{'unitID':this[_0x1806ce(0x328)],'memberID':this[_0x1806ce(0x375)][_0x1806ce(0x211)](),'selection':Te['serializeRangeWithSheet'](_0x478256,_0x76fb7f[_0x1806ce(0x416)])}};this[_0x1806ce(0x375)][_0x1806ce(0x220)](_0x562137,this[_0x1806ce(0x328)]);},ot)),(this[_0x2c326f(0x328)]=_0x4ae759,this[_0x2c326f(0x375)]=_0x1a05ed,this[_0x2c326f(0x388)]=_0x431e66,this['_colorAssignService']=_0xb1945c,this[_0x2c326f(0x3f9)]=_0x52473a,this[_0x2c326f(0x344)]=_0x220014,this[_0x2c326f(0x357)]=_0x46d237,this[_0x2c326f(0x215)]=_0x32127b);}get['cursorInfo'](){const _0x4d9e8f=_0x151a7c;return this[_0x4d9e8f(0x390)]['getValue']();}get[_0x151a7c(0x3c1)](){const _0x5ea00c=_0x151a7c;return this[_0x5ea00c(0x376)][_0x5ea00c(0x1ae)]();}['dispose'](){const _0x26da31=_0x151a7c;super['dispose'](),this['_cursorInfo$'][_0x26da31(0x336)](new Map()),this[_0x26da31(0x390)][_0x26da31(0x3ed)](),this['_roomMembers$'][_0x26da31(0x336)]([]),this[_0x26da31(0x376)][_0x26da31(0x3ed)]();}[_0x151a7c(0x256)](){const _0x2693b1=_0x151a7c;this[_0x2693b1(0x1c8)]||(this['_init']=!0x0,this[_0x2693b1(0x375)]['sessionStatus$'][_0x2693b1(0x271)](d[_0x2693b1(0x407)](this[_0x2693b1(0x326)]))['subscribe'](_0x15e385=>{const _0x4e7567=_0x2693b1;_0x15e385===u[_0x4e7567(0x3be)][_0x4e7567(0x3b5)]?this[_0x4e7567(0x3f6)]():this['_toggleOffline']();}),this[_0x2693b1(0x375)]['event$'][_0x2693b1(0x271)](d[_0x2693b1(0x407)](this[_0x2693b1(0x326)]))[_0x2693b1(0x22b)](_0x23eba7=>{const _0x222e14=_0x2693b1,_0x4cfcac=_0x23eba7[_0x222e14(0x31b)];_0x4cfcac===m[_0x222e14(0x372)][_0x222e14(0x258)]&&this[_0x222e14(0x28d)](_0x23eba7),_0x4cfcac===m[_0x222e14(0x372)][_0x222e14(0x1e0)]&&this['_onCursorDelete'](_0x23eba7);}),this['_onRefRangeChange'](),this[_0x2693b1(0x2f6)](this[_0x2693b1(0x357)][_0x2693b1(0x3c9)](_0xcb9eba=>{const _0x43418e=_0x2693b1;if(this['_online']&&_0xcb9eba['id']===g[_0x43418e(0x246)]['id']&&_0xcb9eba['params'][_0x43418e(0x1de)]===this['unitID']){const _0x5b4144=_0xcb9eba[_0x43418e(0x28e)];this[_0x43418e(0x2aa)](_0x5b4144[_0x43418e(0x210)],_0x5b4144[_0x43418e(0x402)][0x0]);}})));}['_onCursorUpdate'](_0x4036d4){const _0x179a9a=_0x151a7c;var _0x56def6,_0x3b8249;const {memberID:_0x353444,selection:_0x2fc5b4}=_0x4036d4['data'],{sheetName:_0x4249d0,range:_0x323946}=Te[_0x179a9a(0x3d7)](_0x2fc5b4),_0x6f358b={'name':(_0x3b8249=(_0x56def6=this['_memberService'][_0x179a9a(0x3af)](this[_0x179a9a(0x328)],_0x353444))==null?void 0x0:_0x56def6['name'])!=null?_0x3b8249:'Unknown\x20user','range':this[_0x179a9a(0x315)](_0x4249d0,_0x323946),'sheetID':_0x4249d0,'color':this[_0x179a9a(0x1b7)][_0x179a9a(0x28c)](_0x353444),'selection':_0x2fc5b4},_0x3c345e=this[_0x179a9a(0x2ac)];_0x3c345e['set'](_0x353444,_0x6f358b),this[_0x179a9a(0x390)][_0x179a9a(0x336)](_0x3c345e);}[_0x151a7c(0x217)](_0x54909f){const _0x4ed2e1=_0x151a7c,{memberID:_0x39ef69}=_0x54909f['data'],_0x24151d=this['cursorInfo'];_0x24151d['delete'](_0x39ef69),this['_cursorInfo$'][_0x4ed2e1(0x336)](_0x24151d);}[_0x151a7c(0x315)](_0x1107ab,_0x5199d1){const _0x58ae37=_0x151a7c;var _0x26cca4,_0x625634;const _0x316142=(_0x625634=(_0x26cca4=this[_0x58ae37(0x344)]['getUniverSheetInstance'](this[_0x58ae37(0x328)]))==null?void 0x0:_0x26cca4[_0x58ae37(0x331)](_0x1107ab))==null?void 0x0:_0x625634[_0x58ae37(0x247)]();return(_0x316142==null?void 0x0:_0x316142[_0x58ae37(0x2a5)](_0x523dfc=>a[_0x58ae37(0x30c)][_0x58ae37(0x21a)](_0x523dfc,_0x5199d1)))||_0x5199d1;}[_0x151a7c(0x3f2)](){const _0x53cbbd=_0x151a7c,_0x185a80=new a[(_0x53cbbd(0x39a))](),_0xa04540=at(),_0x47ffcb=()=>{const _0x39c682=_0x53cbbd;_0x185a80[_0x39c682(0x3a3)]();const _0x36b153=(_0x3ec865,_0x285ce7,_0x9e39f0,_0x1bde78)=>{const _0x18a6fd=_0x39c682;let _0x51be70=[];switch(_0x3ec865['id']){case g[_0x18a6fd(0x379)][_0x18a6fd(0x400)]:{_0x51be70=g[_0x18a6fd(0x360)](_0x3ec865,_0x1bde78);break;}case g['EffectRefRangId']['DeleteRangeMoveUpCommandId']:{_0x51be70=g['handleDeleteRangeMoveUp'](_0x3ec865,_0x1bde78);break;}case g['EffectRefRangId']['InsertColCommandId']:{_0x51be70=g[_0x18a6fd(0x30d)](_0x3ec865,_0x1bde78);break;}case g[_0x18a6fd(0x379)][_0x18a6fd(0x20c)]:{_0x51be70=g[_0x18a6fd(0x333)](_0x3ec865,_0x1bde78);break;}case g[_0x18a6fd(0x379)][_0x18a6fd(0x411)]:{_0x51be70=g[_0x18a6fd(0x33a)](_0x3ec865,_0x1bde78);break;}case g[_0x18a6fd(0x379)][_0x18a6fd(0x1d2)]:{_0x51be70=g[_0x18a6fd(0x232)](_0x3ec865,_0x1bde78);break;}case g['EffectRefRangId'][_0x18a6fd(0x385)]:{_0x51be70=g[_0x18a6fd(0x1aa)](_0x3ec865,_0x1bde78);break;}case g['EffectRefRangId'][_0x18a6fd(0x3a9)]:{_0x51be70=g['handleIRemoveCol'](_0x3ec865,_0x1bde78);break;}case g[_0x18a6fd(0x379)]['RemoveRowCommandId']:{_0x51be70=g[_0x18a6fd(0x23a)](_0x3ec865,_0x1bde78);break;}}const _0x50b593=g[_0x18a6fd(0x35d)](_0x51be70,_0x1bde78),_0x3edf5c=this[_0x18a6fd(0x2ac)]['get'](_0x285ce7);if(_0x3edf5c&&_0x50b593){const _0x21f87d={..._0x3edf5c,'range':_0x50b593};this[_0x18a6fd(0x2ac)]['set'](_0x285ce7,_0x21f87d),_0xa04540(()=>{const _0x35c597=_0x18a6fd,_0x4b12dc=this['_refRangeService'][_0x35c597(0x272)](_0x50b593,_0x43df33=>(_0x4b12dc[_0x35c597(0x3a3)](),_0x36b153(_0x43df33,_0x285ce7,_0x9e39f0,_0x50b593)));_0x185a80[_0x35c597(0x2ec)](_0x4b12dc);});}return{'redos':[],'undos':[]};};this['cursorInfo'][_0x39c682(0x2bd)]((_0x569f28,_0x69812f)=>{const _0x3cc4ea=_0x39c682,{range:_0x4b7c14,sheetID:_0xf3a777}=_0x569f28,_0xe2d48a=this[_0x3cc4ea(0x215)][_0x3cc4ea(0x272)](_0x4b7c14,_0x21541a=>(_0xe2d48a['dispose'](),_0x36b153(_0x21541a,_0x69812f,_0xf3a777,_0x4b7c14)));_0x185a80['add'](_0xe2d48a);});};this[_0x53cbbd(0x2f6)](a[_0x53cbbd(0x2c0)](this[_0x53cbbd(0x390)][_0x53cbbd(0x22b)](()=>{_0x47ffcb();})));}[_0x151a7c(0x3f6)](){const _0x5853bd=_0x151a7c;var _0x14479c,_0x86ba68;if(this['_online']=!0x0,((_0x14479c=this[_0x5853bd(0x344)][_0x5853bd(0x34c)]())==null?void 0x0:_0x14479c['getUnitId']())!==this[_0x5853bd(0x328)])return;const _0x378306=(_0x86ba68=this[_0x5853bd(0x388)][_0x5853bd(0x35b)](g[_0x5853bd(0x226)])[_0x5853bd(0x290)]())==null?void 0x0:_0x86ba68[0x0],_0x40cfb8=this['_univerInstanceService'][_0x5853bd(0x201)](a['UniverInstanceType'][_0x5853bd(0x3c5)])['getActiveSheet']();_0x378306&&_0x40cfb8&&this[_0x5853bd(0x2aa)](_0x40cfb8[_0x5853bd(0x358)](),_0x378306);}['_toggleOffline'](){const _0x2a8837=_0x151a7c;this[_0x2a8837(0x3e2)]=!0x1;}};Ie=it([A(0x2,a['Inject'](a[_0x151a7c(0x34d)])),A(0x3,a[_0x151a7c(0x2db)](Ce)),A(0x4,a[_0x151a7c(0x2db)](u['MemberService'])),A(0x5,a[_0x151a7c(0x1e8)]),A(0x6,a[_0x151a7c(0x39e)]),A(0x7,a[_0x151a7c(0x2db)](g[_0x151a7c(0x410)]))],Ie);var ct=Object['getOwnPropertyDescriptor'],lt=(_0x1c73ab,_0x1a305a,_0x184270,_0x4251d8)=>{for(var _0x1e4333=_0x4251d8>0x1?void 0x0:_0x4251d8?ct(_0x1a305a,_0x184270):_0x1a305a,_0x2bc2ba=_0x1c73ab['length']-0x1,_0x5ea2b8;_0x2bc2ba>=0x0;_0x2bc2ba--)(_0x5ea2b8=_0x1c73ab[_0x2bc2ba])&&(_0x1e4333=_0x5ea2b8(_0x1e4333)||_0x1e4333);return _0x1e4333;},ie=(_0x305ca8,_0x310fb8)=>(_0x31c461,_0x3ec033)=>_0x310fb8(_0x31c461,_0x3ec033,_0x305ca8);let x=class extends a['RxDisposable']{constructor(_0x3b119b,_0x3f45d3,_0x2e8bf3){const _0x16bcfe=_0x151a7c;super(),_(this,_0x16bcfe(0x3a2),new Map()),_(this,_0x16bcfe(0x289),new d[(_0x16bcfe(0x368))]()),(this[_0x16bcfe(0x344)]=_0x3b119b,this['_injector']=_0x3f45d3,this[_0x16bcfe(0x2ee)]=_0x2e8bf3,this[_0x16bcfe(0x1c8)]());}[_0x151a7c(0x3a3)](){const _0x1f44d5=_0x151a7c;super[_0x1f44d5(0x3a3)](),this[_0x1f44d5(0x289)]['complete'](),this[_0x1f44d5(0x3a2)][_0x1f44d5(0x2bd)](_0x315270=>_0x315270[_0x1f44d5(0x3a3)]());}[_0x151a7c(0x1fa)](_0x21bd1b){const _0x15aa94=_0x151a7c;return this['_entities'][_0x15aa94(0x3ff)](_0x21bd1b)?this[_0x15aa94(0x3a2)]['get'](_0x21bd1b)[_0x15aa94(0x3ea)]:this[_0x15aa94(0x289)][_0x15aa94(0x271)](d['filter'](_0x557790=>_0x557790[_0x15aa94(0x328)]===_0x21bd1b),d[_0x15aa94(0x39d)](_0x43b471=>_0x43b471[_0x15aa94(0x3ea)]));}[_0x151a7c(0x1c8)](){const _0x13227a=_0x151a7c;this[_0x13227a(0x344)][_0x13227a(0x2ed)](a['UniverInstanceType'][_0x13227a(0x3c5)])[_0x13227a(0x271)](d[_0x13227a(0x407)](this['dispose$']))[_0x13227a(0x22b)](async _0x4308bc=>{const _0x35e1b1=_0x13227a,_0x1050dd=_0x4308bc['getUnitId'](),_0x4d98d7=await this[_0x35e1b1(0x35c)](_0x1050dd);this[_0x35e1b1(0x289)][_0x35e1b1(0x336)](_0x4d98d7),this[_0x35e1b1(0x3a2)]['set'](_0x1050dd,_0x4d98d7);}),this[_0x13227a(0x344)][_0x13227a(0x2ed)](a[_0x13227a(0x319)][_0x13227a(0x378)])[_0x13227a(0x271)](d[_0x13227a(0x407)](this[_0x13227a(0x326)]))[_0x13227a(0x271)](d[_0x13227a(0x296)](_0x319452=>!_0x319452[_0x13227a(0x27f)]()[_0x13227a(0x327)]('__')))[_0x13227a(0x22b)](async _0x54940a=>{const _0x168f26=_0x13227a,_0x41e214=_0x54940a[_0x168f26(0x27f)](),_0x32f4df=await this[_0x168f26(0x31c)](_0x41e214);this[_0x168f26(0x289)][_0x168f26(0x336)](_0x32f4df),this[_0x168f26(0x3a2)][_0x168f26(0x2a4)](_0x41e214,_0x32f4df);}),d[_0x13227a(0x22d)](this[_0x13227a(0x344)]['getTypeOfUnitDisposed$'](a[_0x13227a(0x319)]['UNIVER_DOC']),this[_0x13227a(0x344)][_0x13227a(0x1c0)](a[_0x13227a(0x319)][_0x13227a(0x3c5)]))['pipe'](d[_0x13227a(0x407)](this['dispose$']))['subscribe'](_0x17f144=>{const _0x38eee6=_0x13227a,_0x336616=_0x17f144['getUnitId'](),_0x20ed69=this[_0x38eee6(0x3a2)][_0x38eee6(0x35b)](_0x336616);_0x20ed69&&(_0x20ed69[_0x38eee6(0x3a3)](),this['_entities']['delete'](_0x336616));});}async['_startSheetCollabCursor'](_0x1d82d9){const _0x152625=_0x151a7c,_0x5227b6=await this[_0x152625(0x2ee)][_0x152625(0x21d)](_0x1d82d9),_0x3117e5=this['_injector'][_0x152625(0x24f)](Ie,_0x1d82d9,_0x5227b6);return _0x3117e5[_0x152625(0x256)](),_0x3117e5;}async[_0x151a7c(0x31c)](_0x31af0a){const _0x291ae5=_0x151a7c,_0x1da679=await this[_0x291ae5(0x2ee)][_0x291ae5(0x21d)](_0x31af0a),_0x3db6f6=this[_0x291ae5(0x388)]['createInstance'](Se,_0x31af0a,_0x1da679);return _0x3db6f6[_0x291ae5(0x256)](),_0x3db6f6;}};x=lt([ie(0x0,a[_0x151a7c(0x1e8)]),ie(0x1,a['Inject'](a[_0x151a7c(0x34d)])),ie(0x2,a['Inject'](u[_0x151a7c(0x3dd)]))],x);const K=0x14,De=0xc8,re=0x4,_t=0x5;function ht(_0x41e529,_0x3cb198){const _0x37a7b2=_0x151a7c;let {radius:_0x144cf4,width:_0x4e8068,height:_0x590fdd}=_0x3cb198;_0x144cf4=_0x144cf4!=null?_0x144cf4:0x0,_0x4e8068=_0x4e8068!=null?_0x4e8068:0x1e,_0x590fdd=_0x590fdd!=null?_0x590fdd:0x1e;let _0x52868e=0x0,_0x517d0c=0x0,_0x368f3a=0x0;_0x52868e=_0x517d0c=_0x368f3a=Math[_0x37a7b2(0x3a5)](_0x144cf4,_0x4e8068/0x2,_0x590fdd/0x2),_0x41e529[_0x37a7b2(0x41a)](),_0x41e529[_0x37a7b2(0x287)](_0x52868e,0x0),_0x41e529['lineTo'](_0x4e8068-_0x517d0c,0x0),_0x41e529[_0x37a7b2(0x2e9)](_0x4e8068-_0x517d0c,_0x517d0c,_0x517d0c,Math['PI']*0x3/0x2,0x0,!0x1),_0x41e529['lineTo'](_0x4e8068,_0x590fdd-_0x368f3a),_0x41e529[_0x37a7b2(0x2e9)](_0x4e8068-_0x368f3a,_0x590fdd-_0x368f3a,_0x368f3a,0x0,Math['PI']/0x2,!0x1),_0x41e529[_0x37a7b2(0x341)](0x0,_0x590fdd),_0x41e529['lineTo'](0x0,_0x52868e),_0x41e529[_0x37a7b2(0x2e9)](_0x52868e,_0x52868e,_0x52868e,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x41e529['closePath'](),_0x3cb198[_0x37a7b2(0x36a)]&&(_0x41e529[_0x37a7b2(0x1b6)](),_0x41e529[_0x37a7b2(0x229)]=_0x3cb198[_0x37a7b2(0x36a)],_0x3cb198['fillRule']==='evenodd'?_0x41e529[_0x37a7b2(0x36a)](_0x37a7b2(0x311)):_0x41e529[_0x37a7b2(0x36a)](),_0x41e529[_0x37a7b2(0x41b)]());}class te extends p[_0x151a7c(0x297)]{constructor(_0x51d6f9,_0x539d38){const _0x1e421b=_0x151a7c;super(_0x51d6f9,_0x539d38),_(this,_0x1e421b(0x203)),_(this,_0x1e421b(0x2bb)),(this[_0x1e421b(0x203)]=_0x539d38==null?void 0x0:_0x539d38[_0x1e421b(0x203)],this[_0x1e421b(0x2bb)]=_0x539d38==null?void 0x0:_0x539d38[_0x1e421b(0x2bb)]);}static[_0x151a7c(0x3f3)](_0x3caf37,_0x184355){const _0x2b8248=_0x151a7c,{text:_0x257c28,color:_0x223cf2}=_0x184355;_0x3caf37[_0x2b8248(0x1b6)](),_0x3caf37[_0x2b8248(0x3b8)]=_0x2b8248(0x3f5);const _0x570133=_0x3caf37[_0x2b8248(0x2c6)](_0x257c28)[_0x2b8248(0x386)],_0x6c22cb=Math[_0x2b8248(0x3a5)](_0x570133+0x2*re,De);ht(_0x3caf37,{'height':K,'radius':0x4,'width':_0x6c22cb,'fill':_0x223cf2}),_0x3caf37[_0x2b8248(0x229)]='#FFF';const _0xdcc60b=re,_0x5c934f=K-_t,_0x31f076=De-0x2*re;if(_0x570133>_0x31f076){let _0x34ac4e='',_0x222a3d=0x0;for(const _0x3befb6 of _0x257c28){const _0xf1e70=_0x3caf37[_0x2b8248(0x2c6)](_0x3befb6)['width'];if(_0x222a3d+_0xf1e70<=_0x31f076-_0x3caf37['measureText']('...')[_0x2b8248(0x386)])_0x34ac4e+=_0x3befb6,_0x222a3d+=_0xf1e70;else{_0x34ac4e+=_0x2b8248(0x324);break;}}_0x3caf37['fillText'](_0x34ac4e,_0xdcc60b,_0x5c934f);}else _0x3caf37[_0x2b8248(0x1ec)](_0x257c28,_0xdcc60b,_0x5c934f);_0x3caf37[_0x2b8248(0x41b)]();}[_0x151a7c(0x1a5)](_0x448a5c){const _0x5a262e=_0x151a7c;te[_0x5a262e(0x3f3)](_0x448a5c,this);}}const oe=_0x151a7c(0x3ca),ut=_0x151a7c(0x382),dt=_0x151a7c(0x28a),k=0x6,ft=1.5,ae=0x4,St=1.5,It=_0x151a7c(0x36e);class Ue{constructor(_0xd21ee2,_0x1d178a,_0x69eb3e,_0x3be158){const _0x410ca7=_0x151a7c;_(this,_0x410ca7(0x202),[]),_(this,_0x410ca7(0x1b3),null),_(this,_0x410ca7(0x32c),null),_(this,_0x410ca7(0x2d4),null),_(this,_0x410ca7(0x1cd),null),_(this,'_eventUnsubscribe',null),(this[_0x410ca7(0x35e)]=_0xd21ee2,this[_0x410ca7(0x1e4)]=_0x1d178a,this[_0x410ca7(0x406)]=_0x69eb3e,this[_0x410ca7(0x359)]=_0x3be158,this[_0x410ca7(0x1c2)]());}set[_0x151a7c(0x329)](_0x200e0b){const _0x4f41c2=_0x151a7c;_0x200e0b?(this['_anchorDot']&&this['_anchorDot'][_0x4f41c2(0x1d6)](),this[_0x4f41c2(0x32c)]&&this[_0x4f41c2(0x32c)][_0x4f41c2(0x1f4)]()):(this['_anchorDot']&&this[_0x4f41c2(0x2d4)][_0x4f41c2(0x1f4)](),this[_0x4f41c2(0x32c)]&&this['_textBubble'][_0x4f41c2(0x1d6)]());}[_0x151a7c(0x3a3)](){const _0x48a878=_0x151a7c;for(const _0x5cb6f7 of this[_0x48a878(0x202)])_0x5cb6f7[_0x48a878(0x3a3)]();this[_0x48a878(0x32c)]&&this['_textBubble'][_0x48a878(0x3a3)](),this[_0x48a878(0x2d4)]&&this[_0x48a878(0x2d4)][_0x48a878(0x3a3)](),this[_0x48a878(0x1b3)]&&this[_0x48a878(0x1b3)]['dispose'](),this[_0x48a878(0x2e8)]&&this[_0x48a878(0x2e8)]();}[_0x151a7c(0x1c2)](){const _0x2eb61f=_0x151a7c;var _0x3a3f35;const {_docSkeleton:_0x33be5d,_document:_0x296765}=this,{color:_0x49a28d,name:_0x701e85,ranges:_0x18c988}=this[_0x2eb61f(0x35e)],_0x37d91c=_0x296765[_0x2eb61f(0x19a)](),{docsLeft:_0x468ce2,docsTop:_0x4aa0f7}=_0x37d91c,_0x4a55d7=new b[(_0x2eb61f(0x37b))](_0x37d91c,_0x33be5d);for(const {startOffset:_0x1a5096,endOffset:_0x51ad63,rangeType:_0x2db4b7,segmentId:_0x5e590a,segmentPage:_0x4bbe00,collapsed:_0x363310,isActive:_0x5acd87}of _0x18c988){const _0x520192=_0x33be5d[_0x2eb61f(0x19b)](_0x1a5096,!0x0,_0x5e590a,_0x4bbe00);let _0x4cceb9=_0x33be5d['findNodePositionByCharIndex'](_0x51ad63,!0x0,_0x5e590a,_0x4bbe00);if(_0x4cceb9==null&&(_0x4cceb9=_0x33be5d['findNodePositionByCharIndex'](_0x51ad63-0x1,!0x1,_0x5e590a,_0x4bbe00)),_0x5acd87){const {contentBoxPointGroup:_0x1c3ff7}=_0x4a55d7['getRangePointData'](_0x4cceb9,_0x4cceb9);if(_0x1c3ff7[_0x2eb61f(0x3b3)]===0x0)continue;this[_0x2eb61f(0x351)](_0x49a28d,_0x1c3ff7,_0x468ce2,_0x4aa0f7,_0x701e85),this['_eventUnsubscribe']=this[_0x2eb61f(0x3ad)]();}if(_0x520192&&_0x4cceb9){if(_0x2db4b7===a[_0x2eb61f(0x216)][_0x2eb61f(0x31a)]){const _0x28a6b8=new b[(_0x2eb61f(0x337))](_0x37d91c,_0x33be5d),{pointGroup:_0x4ac459}=(_0x3a3f35=_0x28a6b8[_0x2eb61f(0x2d1)](_0x520192,_0x4cceb9))!=null?_0x3a3f35:{};if(_0x4ac459==null||_0x4ac459[_0x2eb61f(0x3b3)]===0x0)continue;this[_0x2eb61f(0x3ab)](_0x49a28d,_0x4ac459,_0x468ce2,_0x4aa0f7);}else{if(!_0x363310){const {borderBoxPointGroup:_0x29d4dc}=_0x4a55d7['getRangePointData'](_0x520192,_0x4cceb9);if(_0x29d4dc[_0x2eb61f(0x3b3)]===0x0)continue;this[_0x2eb61f(0x3c6)](_0x49a28d,_0x29d4dc,_0x468ce2,_0x4aa0f7);}}}}}[_0x151a7c(0x351)](_0x2ef2b8,_0x4b3527,_0x5297ce,_0x572526,_0x3e73a0){const _0x2234d5=_0x151a7c,_0x216aa6=this['_getAnchorBounding'](_0x4b3527),{left:_0x3f4bce,top:_0x255116,height:_0x775695}=_0x216aa6,_0x443f39=this['_getScale'](),_0x571171=St/_0x443f39,_0x3b3581=new p[(_0x2234d5(0x27c))](oe+a['Tools']['generateRandomId'](k),{'left':_0x3f4bce+_0x5297ce-_0x571171,'top':_0x255116+_0x572526,'height':_0x775695,'width':ft,'fill':_0x2ef2b8||p['getColor'](a[_0x2234d5(0x3f1)][_0x2234d5(0x392)],0x0),'strokeWidth':_0x571171,'stroke':It,'evented':!0x0});this['_anchor']=_0x3b3581,this[_0x2234d5(0x1e4)][_0x2234d5(0x2a3)](_0x3b3581,b[_0x2234d5(0x1f1)]);const _0x2745d8=new p['Rect'](oe+a[_0x2234d5(0x2f1)][_0x2234d5(0x1a8)](k),{'left':_0x3f4bce+_0x5297ce-_0x571171,'top':_0x255116+_0x572526-ae/0x2,'height':ae,'width':ae,'fill':_0x2ef2b8||p[_0x2234d5(0x41c)](a[_0x2234d5(0x3f1)]['black'],0x0),'strokeWidth':0x0,'stroke':_0x2ef2b8||p['getColor'](a[_0x2234d5(0x3f1)]['black'],0x0),'evented':!0x1});this['_anchorDot']=_0x2745d8,this[_0x2234d5(0x1e4)][_0x2234d5(0x2a3)](_0x2745d8,b[_0x2234d5(0x1f1)]);const _0x3d39f4=new te(oe+a[_0x2234d5(0x2f1)][_0x2234d5(0x1a8)](k),{'left':_0x3f4bce+_0x5297ce-_0x571171,'top':_0x255116+_0x572526-K,'text':_0x3e73a0,'color':_0x2ef2b8});this['_textBubble']=_0x3d39f4,this[_0x2234d5(0x1e4)][_0x2234d5(0x2a3)](_0x3d39f4,b[_0x2234d5(0x1f1)]),this['_hover']=!0x1;}[_0x151a7c(0x3ad)](){const _0x34755c=_0x151a7c,_0xf2875a=this[_0x34755c(0x1b3)][_0x34755c(0x2b8)][_0x34755c(0x1df)](()=>{const _0x3193aa=_0x34755c;this[_0x3193aa(0x329)]=!0x0;}),_0x374fab=this[_0x34755c(0x1b3)][_0x34755c(0x1f6)][_0x34755c(0x1df)](()=>{const _0x257304=_0x34755c;this[_0x257304(0x1cd)]&&clearTimeout(this['_hideTimer']),this[_0x257304(0x1cd)]=setTimeout(()=>{const _0x323d80=_0x257304;this[_0x323d80(0x329)]=!0x1;},0x7d0);});return()=>{const _0x3b213e=_0x34755c;_0xf2875a['unsubscribe'](),_0x374fab[_0x3b213e(0x3f4)]();};}[_0x151a7c(0x3c6)](_0x4c1ef5,_0xf8fc09,_0x2cbbc7,_0x14f248){const _0x3f1bf4=_0x151a7c,_0x50c4bb=new a[(_0x3f1bf4(0x412))](_0x4c1ef5)[_0x3f1bf4(0x323)](0.2)[_0x3f1bf4(0x3d9)](),_0x574ebb=new p[(_0x3f1bf4(0x3d0))](ut+a[_0x3f1bf4(0x2f1)][_0x3f1bf4(0x1a8)](k),{'pointsGroup':_0xf8fc09,'fill':_0x50c4bb||p[_0x3f1bf4(0x41c)](a['COLORS'][_0x3f1bf4(0x392)],0.2),'left':_0x2cbbc7,'top':_0x14f248,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x3f1bf4(0x202)][_0x3f1bf4(0x264)](_0x574ebb),this[_0x3f1bf4(0x1e4)][_0x3f1bf4(0x2a3)](_0x574ebb,b['TEXT_RANGE_LAYER_INDEX']);}['_drawRectRange'](_0x3f4a1d,_0x17ffd6,_0x254cb1,_0x101465){const _0x4aa4e1=_0x151a7c,_0x988e97=new a['ColorKit'](_0x3f4a1d)[_0x4aa4e1(0x323)](0.2)['toRgbString'](),_0x202fd5=new p[(_0x4aa4e1(0x3d0))](dt+a['Tools']['generateRandomId'](k),{'pointsGroup':_0x17ffd6,'fill':_0x988e97||p['getColor'](a[_0x4aa4e1(0x3f1)]['black'],0.2),'left':_0x254cb1,'top':_0x101465,'evented':!0x1,'debounceParentDirty':!0x1});this['_shapes']['push'](_0x202fd5),this['_scene']['addObject'](_0x202fd5,b[_0x4aa4e1(0x1f1)]);}[_0x151a7c(0x241)](_0x2d6894){const _0x37b776=_0x2d6894[0x0],_0x42726a=_0x37b776[0x0],_0x49b0ee=_0x37b776[0x2],{x:_0x4cd480,y:_0x517ed5}=_0x42726a,{x:_0x285182,y:_0x4539c7}=_0x49b0ee;return{'left':_0x4cd480,'top':_0x517ed5,'width':_0x285182-_0x4cd480,'height':_0x4539c7-_0x517ed5};}['_getScale'](){const _0x134a96=_0x151a7c,{scaleX:_0x354b9e,scaleY:_0x432049}=this[_0x134a96(0x1e4)]['getAncestorScale']();return Math['max'](_0x354b9e,_0x432049);}}var vt=Object[_0x151a7c(0x300)],gt=(_0x586eb0,_0x2be8ed,_0x1c66f8,_0xd44e58)=>{const _0xc2109b=_0x151a7c;for(var _0x133a62=_0xd44e58>0x1?void 0x0:_0xd44e58?vt(_0x2be8ed,_0x1c66f8):_0x2be8ed,_0x1545f2=_0x586eb0[_0xc2109b(0x3b3)]-0x1,_0x580002;_0x1545f2>=0x0;_0x1545f2--)(_0x580002=_0x586eb0[_0x1545f2])&&(_0x133a62=_0x580002(_0x133a62)||_0x133a62);return _0x133a62;},V=(_0x382d30,_0x128d1b)=>(_0x217dd5,_0x446858)=>_0x128d1b(_0x217dd5,_0x446858,_0x382d30);let ve=class extends a[_0x151a7c(0x2c2)]{constructor(_0x29d85c,_0x17a7df,_0x1a2876,_0x1420c3,_0x20f02b){const _0x430eec=_0x151a7c;super(),_(this,_0x430eec(0x1cc),[]),_(this,_0x430eec(0x415),[]),(this[_0x430eec(0x1a7)]=_0x29d85c,this[_0x430eec(0x2a0)]=_0x17a7df,this[_0x430eec(0x404)]=_0x1a2876,this[_0x430eec(0x357)]=_0x1420c3,this['_themeService']=_0x20f02b,this[_0x430eec(0x1c8)]());}[_0x151a7c(0x1c8)](){const _0x5494d5=_0x151a7c,_0x2b4a6c=this[_0x5494d5(0x1a7)]['unitId'],_0x148c6a=this['_docSkeletonManagerService'];this[_0x5494d5(0x2f6)](d[_0x5494d5(0x342)]([this[_0x5494d5(0x404)][_0x5494d5(0x1fa)](_0x2b4a6c),this['_themeService'][_0x5494d5(0x1d1)]])[_0x5494d5(0x271)]($['map'](([_0x57dab1,_0xfd4bde])=>({'skeleton':_0x148c6a[_0x5494d5(0x338)](),'cursors':[..._0x57dab1[_0x5494d5(0x2cd)]()][_0x5494d5(0x3a6)](_0x14a95d=>({..._0x14a95d,'color':_0xfd4bde[_0x14a95d['color']]}))})))[_0x5494d5(0x22b)](_0x197968=>{const _0x168490=_0x5494d5;if(this['_removeCollabCursors'](),_0x197968){const {skeleton:_0x7d459d,cursors:_0x514243}=_0x197968;this[_0x168490(0x395)](_0x7d459d,_0x514243);}})),this[_0x5494d5(0x21c)](),this['_initCommandExecutedListener']();}[_0x151a7c(0x395)](_0x1c30b9,_0x1c3c3a){const _0x825d62=_0x151a7c,{scene:_0x17f30f,mainComponent:_0x2bae90}=this[_0x825d62(0x1a7)],_0x3cc548=_0x1c3c3a[_0x825d62(0x33d)](_0x268213=>new Ue(_0x268213,_0x17f30f,_0x1c30b9,_0x2bae90));this[_0x825d62(0x1cc)]=_0x3cc548,this[_0x825d62(0x415)]=_0x1c3c3a;}[_0x151a7c(0x1e1)](){const _0x12fdb4=_0x151a7c;this[_0x12fdb4(0x2fb)]();const {scene:_0x129b5d,mainComponent:_0x190949}=this['_context'],_0x7b08be=this['_docSkeletonManagerService']['getSkeleton'](),_0x4a8259=this[_0x12fdb4(0x415)][_0x12fdb4(0x33d)](_0x1a94fe=>new Ue(_0x1a94fe,_0x129b5d,_0x7b08be,_0x190949));this[_0x12fdb4(0x1cc)]=_0x4a8259;}['_removeCollabCursors'](){const _0x3a9c6e=_0x151a7c;this[_0x3a9c6e(0x1cc)][_0x3a9c6e(0x2bd)](_0x4918e7=>_0x4918e7[_0x3a9c6e(0x3a3)]()),this[_0x3a9c6e(0x1cc)]=[];}[_0x151a7c(0x2cc)](){const _0x4f4a1e=_0x151a7c,_0x36d6df=[b[_0x4f4a1e(0x25b)]['id']];this[_0x4f4a1e(0x2f6)](this[_0x4f4a1e(0x357)]['onCommandExecuted'](_0x1b5deb=>{const _0x3f80bf=_0x4f4a1e;_0x36d6df[_0x3f80bf(0x2ab)](_0x1b5deb['id'])&&_0x1b5deb[_0x3f80bf(0x28e)][_0x3f80bf(0x1de)]===this[_0x3f80bf(0x1a7)][_0x3f80bf(0x1de)]&&this[_0x3f80bf(0x1e1)]();}));}[_0x151a7c(0x21c)](){const _0x10d2fc=_0x151a7c;this['disposeWithMe'](a['fromEventSubject'](this[_0x10d2fc(0x1a7)][_0x10d2fc(0x309)]['onTransformChange$'])[_0x10d2fc(0x271)]($[_0x10d2fc(0x296)](_0x347b14=>_0x347b14[_0x10d2fc(0x3fa)]===p[_0x10d2fc(0x1ed)][_0x10d2fc(0x1da)]),$['throttleTime'](0x10))['subscribe'](()=>{this['_refreshCollabCursors']();}));}};ve=gt([V(0x1,a[_0x151a7c(0x2db)](Y[_0x151a7c(0x37e)])),V(0x2,a[_0x151a7c(0x2db)](x)),V(0x3,a['ICommandService']),V(0x4,a[_0x151a7c(0x2db)](a['ThemeService']))],ve);const mt=0x1,Ct=1.5;class Ae extends p[_0x151a7c(0x297)]{constructor(_0x291203,_0x2dfd14){const _0x3aa7f9=_0x151a7c;super(_0x291203,_0x2dfd14),_(this,'_color'),_(this,_0x3aa7f9(0x339),!0x1),_(this,_0x3aa7f9(0x31d)),_(this,_0x3aa7f9(0x414),''),_(this,'_labelPosition',_0x3aa7f9(0x1fc)),_(this,_0x3aa7f9(0x280)),(_0x2dfd14&&this['setShapeProps'](_0x2dfd14),this[_0x3aa7f9(0x2b8)][_0x3aa7f9(0x1df)](()=>this[_0x3aa7f9(0x2ef)]({'hovered':!0x0})),this[_0x3aa7f9(0x1f6)][_0x3aa7f9(0x1df)](()=>this[_0x3aa7f9(0x2ef)]({'hovered':!0x1})));}[_0x151a7c(0x2ef)](_0x15a753){const _0x1b079d=_0x151a7c;var _0x2a805e,_0x3751c4,_0x547f6c,_0x7df6b7,_0x2a9e1d,_0x1a8f3b;this['_color']=(_0x2a805e=_0x15a753[_0x1b079d(0x203)])!=null?_0x2a805e:this[_0x1b079d(0x3d3)],this[_0x1b079d(0x339)]=(_0x3751c4=_0x15a753[_0x1b079d(0x2b1)])!=null?_0x3751c4:this[_0x1b079d(0x339)],this[_0x1b079d(0x31d)]=(_0x547f6c=_0x15a753[_0x1b079d(0x416)])!=null?_0x547f6c:this[_0x1b079d(0x31d)],this[_0x1b079d(0x414)]=(_0x7df6b7=_0x15a753['name'])!=null?_0x7df6b7:this[_0x1b079d(0x414)],this[_0x1b079d(0x292)]=(_0x2a9e1d=_0x15a753[_0x1b079d(0x2c3)])!=null?_0x2a9e1d:this[_0x1b079d(0x292)],this['_backgroundColor']=(_0x1a8f3b=_0x15a753[_0x1b079d(0x1b5)])!=null?_0x1a8f3b:this[_0x1b079d(0x280)],this[_0x1b079d(0x353)]({'width':_0x15a753[_0x1b079d(0x386)],'height':_0x15a753['height']});}[_0x151a7c(0x244)](_0x3ac218){const _0x3ec6d2=_0x151a7c,{row:_0xf3b5ab,column:_0x338a59}=_0x3ac218;if(_0xf3b5ab>=this['_range'][_0x3ec6d2(0x2c8)]&&_0xf3b5ab<=this[_0x3ec6d2(0x31d)]['endRow']&&_0x338a59>=this['_range'][_0x3ec6d2(0x26f)]&&_0x338a59<=this['_range'][_0x3ec6d2(0x2f7)]){this[_0x3ec6d2(0x2ef)]({'hovered':!0x0});return;}this[_0x3ec6d2(0x2ef)]({'hovered':!0x1});}[_0x151a7c(0x371)](_0x13dd1a){return!0x1;}[_0x151a7c(0x1a5)](_0x51bfd8){const _0x4eb7d6=_0x151a7c;p[_0x4eb7d6(0x27c)][_0x4eb7d6(0x3f3)](_0x51bfd8,{'width':this[_0x4eb7d6(0x386)],'height':this[_0x4eb7d6(0x233)],'strokeWidth':Ct,'stroke':this['_color'],'evented':!0x1,'fill':this[_0x4eb7d6(0x280)]}),this[_0x4eb7d6(0x339)]&&(_0x51bfd8['save'](),_0x51bfd8[_0x4eb7d6(0x281)](0x1,0x0,0x0,0x1,this['width'],this[_0x4eb7d6(0x292)]==='bottom'?0x0:-0x14),te[_0x4eb7d6(0x3f3)](_0x51bfd8,{'text':this['_name'],'color':this[_0x4eb7d6(0x3d3)]}),_0x51bfd8[_0x4eb7d6(0x41b)]());}}var pt=Object[_0x151a7c(0x300)],bt=(_0x4e57e3,_0x2657bc,_0x680df5,_0x2b21d2)=>{const _0x489b64=_0x151a7c;for(var _0x496524=_0x2b21d2>0x1?void 0x0:_0x2b21d2?pt(_0x2657bc,_0x680df5):_0x2657bc,_0xda89a8=_0x4e57e3[_0x489b64(0x3b3)]-0x1,_0x136575;_0xda89a8>=0x0;_0xda89a8--)(_0x136575=_0x4e57e3[_0xda89a8])&&(_0x496524=_0x136575(_0x496524)||_0x496524);return _0x496524;},ce=(_0xbebc09,_0x2f80cd)=>(_0x5589e2,_0x16b1df)=>_0x2f80cd(_0x5589e2,_0x16b1df,_0xbebc09);const Et=0x1389;let ge=class extends a[_0x151a7c(0x2c2)]{constructor(_0x120cd8,_0x3fc2de,_0x25995f,_0x2e412b){const _0x4e45fb=_0x151a7c;super(),_(this,_0x4e45fb(0x415),new Set()),_(this,_0x4e45fb(0x218),null),(this[_0x4e45fb(0x1a7)]=_0x120cd8,this[_0x4e45fb(0x313)]=_0x3fc2de,this['_collabCursorController']=_0x25995f,this[_0x4e45fb(0x26e)]=_0x2e412b,this['_init']());}[_0x151a7c(0x1c8)](){const _0x3179d1=_0x151a7c;this[_0x3179d1(0x313)]['currentSkeleton$']['pipe']($[_0x3179d1(0x407)](this['dispose$']),$[_0x3179d1(0x39d)](_0x385170=>{const _0x5bb755=_0x3179d1;if(_0x385170){const _0x257017=_0x385170[_0x5bb755(0x273)];return d[_0x5bb755(0x342)](this[_0x5bb755(0x404)][_0x5bb755(0x1fa)](this[_0x5bb755(0x1a7)][_0x5bb755(0x1de)]),this[_0x5bb755(0x26e)][_0x5bb755(0x1d1)])[_0x5bb755(0x271)]($['map'](([_0x48d1db,_0x20f3f7])=>{const _0x835768=_0x5bb755,_0xe69e3e=new Map();return _0x48d1db[_0x835768(0x2bd)]((_0xabc206,_0x457458)=>{const _0x58eede=_0x835768;if(_0xabc206[_0x58eede(0x1b8)]===_0x257017){const _0x56f064={..._0xabc206};_0x56f064[_0x58eede(0x203)]=_0x20f3f7[_0xabc206[_0x58eede(0x203)]],_0xe69e3e[_0x58eede(0x2a4)](_0x457458,_0x56f064);}}),{'skeleton':_0x385170,'cursors':_0xe69e3e};}));}return d['of']({'skeleton':null,'cursors':new Map()});}))[_0x3179d1(0x22b)](({skeleton:_0x788dd9,cursors:_0x54a71f})=>{const _0x195862=_0x3179d1;this[_0x195862(0x2fb)](),_0x788dd9&&this[_0x195862(0x395)](_0x788dd9,_0x54a71f);}),this['_sheetSkeletonManagerService'][_0x3179d1(0x1d9)][_0x3179d1(0x22b)](_0x3d5d65=>{const _0x3467c8=_0x3179d1;if(_0x3d5d65==null)return;const {skeleton:_0x5d9464}=_0x3d5d65,{scene:_0x47471c}=this[_0x3467c8(0x1a7)];_0x47471c['onPointerMove$'][_0x3467c8(0x1df)](a[_0x3467c8(0x36c)](_0x26e9e5=>{const _0x24e06d=_0x3467c8;var _0x5dcffb,_0x586d9a;const {offsetX:_0x61e906,offsetY:_0x33cbde}=_0x26e9e5,{x:_0x3b04eb,y:_0x4fb6fb}=_0x47471c[_0x24e06d(0x2c4)](p[_0x24e06d(0x2df)][_0x24e06d(0x1c9)]([_0x61e906,_0x33cbde])),{scaleX:_0x56690d,scaleY:_0x404687}=_0x47471c[_0x24e06d(0x2e3)](),_0x5bc46d=_0x47471c[_0x24e06d(0x349)](p[_0x24e06d(0x23d)][_0x24e06d(0x380)]),_0x49f4c9=_0x47471c['getVpScrollXYInfoByPosToVp'](p[_0x24e06d(0x2df)]['FromArray']([_0x3b04eb,_0x4fb6fb]),_0x5bc46d),_0x13b85c=_0x5d9464[_0x24e06d(0x3d6)](_0x61e906,_0x33cbde,_0x56690d,_0x404687,_0x49f4c9);((_0x5dcffb=this[_0x24e06d(0x218)])==null?void 0x0:_0x5dcffb[_0x24e06d(0x348)])===_0x13b85c[_0x24e06d(0x348)]&&((_0x586d9a=this['_lastPointer'])==null?void 0x0:_0x586d9a['row'])===_0x13b85c['row']||this[_0x24e06d(0x415)][_0x24e06d(0x2bd)](_0x4a762a=>{const _0x236146=_0x24e06d;_0x4a762a[_0x236146(0x244)](_0x13b85c);});},0x64));});}[_0x151a7c(0x395)](_0x48ef07,_0x3385b6){const _0x1f8792=_0x151a7c;var _0x333eb3;const _0x3eacdc=(_0x333eb3=this[_0x1f8792(0x313)][_0x1f8792(0x200)]())==null?void 0x0:_0x333eb3[_0x1f8792(0x29d)];if(!_0x3eacdc)return;const _0x5f3bdd=this[_0x1f8792(0x199)]();if(!_0x5f3bdd)return;this[_0x1f8792(0x415)][_0x1f8792(0x2bd)](_0x4648a9=>{const _0x2e61ea=_0x1f8792;_0x4648a9[_0x2e61ea(0x257)]();});const {scene:_0x344878}=_0x5f3bdd,_0x5423fe=Tt(Array['from'](_0x3385b6[_0x1f8792(0x2cd)]()))[_0x1f8792(0x33d)](_0x2c0558=>{const _0x1ff08e=_0x1f8792,{color:_0x192ac8,range:_0x41028d,name:_0x497cbb,selection:_0x2d1be3,sheetID:_0x565ac7}=_0x2c0558,{startColumn:_0x7b24ff,startRow:_0x335510,endColumn:_0x3772dd,endRow:_0x291672}=_0x41028d,_0x3acf8e=G[_0x1ff08e(0x20d)](_0x335510,_0x7b24ff,_0x344878,_0x3eacdc),_0x2e7464=G[_0x1ff08e(0x20d)](_0x291672,_0x3772dd,_0x344878,_0x3eacdc),{columnHeaderHeightAndMarginTop:_0x1af5ed}=_0x3eacdc,{startX:_0x35f7f6,startY:_0x10c0cf}=_0x3acf8e,{endX:_0x5dba4e,endY:_0x30830d}=_0x2e7464,_0x5c624f=_0x5dba4e-_0x35f7f6,_0x315920=_0x30830d-_0x10c0cf,_0x333dd1={'labelPosition':_0x10c0cf-_0x1af5ed>=K?_0x1ff08e(0x1fc):'bottom','sheetID':_0x565ac7,'range':_0x41028d,'color':_0x192ac8,'name':_0x497cbb,'selection':_0x2d1be3,'left':_0x35f7f6,'top':_0x10c0cf,'width':_0x5c624f,'height':_0x315920,'evented':!0x1,'zIndex':Et};return new Ae(_0x497cbb,_0x333dd1);});_0x344878[_0x1f8792(0x1cb)](_0x5423fe,mt),this[_0x1f8792(0x415)]=new Set(_0x5423fe);}[_0x151a7c(0x2fb)](){const _0x86ab57=_0x151a7c;var _0x2ac5f4;(_0x2ac5f4=this[_0x86ab57(0x415)])==null||_0x2ac5f4['forEach'](_0x229ec6=>_0x229ec6[_0x86ab57(0x3a3)]());}[_0x151a7c(0x199)](){const _0x1e014a=_0x151a7c;return G[_0x1e014a(0x283)](this['_context'][_0x1e014a(0x2f4)],this['_context']);}};ge=bt([ce(0x1,a[_0x151a7c(0x2db)](G[_0x151a7c(0x391)])),ce(0x2,a[_0x151a7c(0x2db)](x)),ce(0x3,a[_0x151a7c(0x2db)](a[_0x151a7c(0x312)]))],ge);function Tt(_0x272928){const _0x3aa976=_0x151a7c,_0x2738f9=new Map();return _0x272928[_0x3aa976(0x2bd)](_0x1b3a05=>{const _0x51c237=_0x3aa976;if(_0x2738f9['has'](_0x1b3a05['selection'])){const _0x5520c0=_0x2738f9[_0x51c237(0x35b)](_0x1b3a05[_0x51c237(0x206)]);_0x5520c0[_0x51c237(0x2b5)]+=',\x20'+_0x1b3a05[_0x51c237(0x2b5)];}else _0x2738f9[_0x51c237(0x2a4)](_0x1b3a05['selection'],_0x1b3a05);}),Array[_0x3aa976(0x38e)](_0x2738f9['values']());}var E=function(){const _0x3c97dd=_0x151a7c;return E=Object['assign']||function(_0x5512ca){const _0x27dbb4=_0x2459;for(var _0x333f71,_0x3bcd3d=0x1,_0x4fddfe=arguments[_0x27dbb4(0x3b3)];_0x3bcd3d<_0x4fddfe;_0x3bcd3d++){_0x333f71=arguments[_0x3bcd3d];for(var _0x47b4f5 in _0x333f71)Object[_0x27dbb4(0x1ff)][_0x27dbb4(0x3c0)][_0x27dbb4(0x3fc)](_0x333f71,_0x47b4f5)&&(_0x5512ca[_0x47b4f5]=_0x333f71[_0x47b4f5]);}return _0x5512ca;},E[_0x3c97dd(0x24a)](this,arguments);},Ot=function(_0x172db2,_0x549aca){const _0x4552c9=_0x151a7c;var _0x367c3b={};for(var _0x2a3d77 in _0x172db2)Object[_0x4552c9(0x1ff)][_0x4552c9(0x3c0)][_0x4552c9(0x3fc)](_0x172db2,_0x2a3d77)&&_0x549aca[_0x4552c9(0x3e7)](_0x2a3d77)<0x0&&(_0x367c3b[_0x2a3d77]=_0x172db2[_0x2a3d77]);if(_0x172db2!=null&&typeof Object[_0x4552c9(0x2ad)]==_0x4552c9(0x314)){for(var _0x342109=0x0,_0x2a3d77=Object[_0x4552c9(0x2ad)](_0x172db2);_0x342109<_0x2a3d77[_0x4552c9(0x3b3)];_0x342109++)_0x549aca[_0x4552c9(0x3e7)](_0x2a3d77[_0x342109])<0x0&&Object['prototype']['propertyIsEnumerable'][_0x4552c9(0x3fc)](_0x172db2,_0x2a3d77[_0x342109])&&(_0x367c3b[_0x2a3d77[_0x342109]]=_0x172db2[_0x2a3d77[_0x342109]]);}return _0x367c3b;},be=M[_0x151a7c(0x1b2)](function(_0x38b368,_0x23fbbd){const _0x8310f9=_0x151a7c;var _0x2e6685=_0x38b368[_0x8310f9(0x2d5)],_0x570bf6=_0x38b368['id'],_0x303134=_0x38b368[_0x8310f9(0x367)],_0x45beba=_0x38b368['extend'],_0xb1be25=Ot(_0x38b368,[_0x8310f9(0x2d5),'id','className','extend']),_0x4018b9=_0x8310f9(0x1be)[_0x8310f9(0x20e)](_0x570bf6,'\x20')[_0x8310f9(0x20e)](_0x303134||'')[_0x8310f9(0x3e0)](),_0x35bb32=M[_0x8310f9(0x1af)]('_'[_0x8310f9(0x20e)](Ut()));return ye(_0x2e6685,''[_0x8310f9(0x20e)](_0x570bf6),{'defIds':_0x2e6685[_0x8310f9(0x286)],'idSuffix':_0x35bb32[_0x8310f9(0x25d)]},E({'ref':_0x23fbbd,'className':_0x4018b9},_0xb1be25),_0x45beba);});function ye(_0x59334c,_0x44b164,_0x495286,_0x67ff46,_0x402ee2){const _0x1bd2b9=_0x151a7c;return M['createElement'](_0x59334c['tag'],E(E({'key':_0x44b164},Rt(_0x59334c,_0x495286,_0x402ee2)),_0x67ff46),(Dt(_0x59334c,_0x495286)['children']||[])[_0x1bd2b9(0x33d)](function(_0x26cc73,_0x48d51b){const _0x532848=_0x1bd2b9;return ye(_0x26cc73,''[_0x532848(0x20e)](_0x44b164,'-')[_0x532848(0x20e)](_0x59334c[_0x532848(0x346)],'-')[_0x532848(0x20e)](_0x48d51b),_0x495286,void 0x0,_0x402ee2);}));}function Rt(_0xec290d,_0x1955b2,_0x8c9768){const _0x4f4f7b=_0x151a7c;var _0x1e79a9=E({},_0xec290d['attrs']);_0x8c9768!=null&&_0x8c9768[_0x4f4f7b(0x356)]&&_0x1e79a9[_0x4f4f7b(0x36a)]==='colorChannel1'&&(_0x1e79a9[_0x4f4f7b(0x36a)]=_0x8c9768[_0x4f4f7b(0x356)]),_0xec290d['tag']===_0x4f4f7b(0x23f)&&_0x1e79a9['id']&&(_0x1e79a9['id']=_0x1e79a9['id']+_0x1955b2[_0x4f4f7b(0x225)]),Object['entries'](_0x1e79a9)[_0x4f4f7b(0x2bd)](function(_0x683803){const _0x14385d=_0x4f4f7b;var _0x4f026f=_0x683803[0x0],_0x5d9a20=_0x683803[0x1];_0x4f026f===_0x14385d(0x23f)&&typeof _0x5d9a20==_0x14385d(0x20f)&&(_0x1e79a9[_0x4f026f]=_0x5d9a20['replace'](/url\(#(.*)\)/,_0x14385d(0x2a1)['concat'](_0x1955b2[_0x14385d(0x225)],')')));});var _0x334404=_0x1955b2[_0x4f4f7b(0x286)];return!_0x334404||_0x334404[_0x4f4f7b(0x3b3)]===0x0||(_0xec290d['tag']==='use'&&_0x1e79a9[_0x4f4f7b(0x1dc)]&&(_0x1e79a9['xlink:href']=_0x1e79a9['xlink:href']+_0x1955b2[_0x4f4f7b(0x225)]),Object[_0x4f4f7b(0x1e9)](_0x1e79a9)['forEach'](function(_0x3d548b){const _0x4b3db8=_0x4f4f7b;var _0x40bc75=_0x3d548b[0x0],_0x4fba8d=_0x3d548b[0x1];typeof _0x4fba8d==_0x4b3db8(0x20f)&&(_0x1e79a9[_0x40bc75]=_0x4fba8d['replace'](/url\(#(.*)\)/,_0x4b3db8(0x2a1)[_0x4b3db8(0x20e)](_0x1955b2[_0x4b3db8(0x225)],')')));})),_0x1e79a9;}function Dt(_0xc1c3e6,_0x5c750e){const _0x535541=_0x151a7c;var _0x8c3b69,_0x173fdf=_0x5c750e[_0x535541(0x286)];return!_0x173fdf||_0x173fdf[_0x535541(0x3b3)]===0x0?_0xc1c3e6:_0xc1c3e6[_0x535541(0x346)]===_0x535541(0x298)&&(!((_0x8c3b69=_0xc1c3e6['children'])===null||_0x8c3b69===void 0x0)&&_0x8c3b69[_0x535541(0x3b3)])?E(E({},_0xc1c3e6),{'children':_0xc1c3e6[_0x535541(0x231)][_0x535541(0x33d)](function(_0x158bdb){const _0x3847d2=_0x535541;return typeof _0x158bdb[_0x3847d2(0x1eb)]['id']==_0x3847d2(0x20f)&&_0x173fdf&&_0x173fdf[_0x3847d2(0x3e7)](_0x158bdb[_0x3847d2(0x1eb)]['id'])>-0x1?E(E({},_0x158bdb),{'attrs':E(E({},_0x158bdb[_0x3847d2(0x1eb)]),{'id':_0x158bdb[_0x3847d2(0x1eb)]['id']+_0x5c750e[_0x3847d2(0x225)]})}):_0x158bdb;})}):_0xc1c3e6;}function Ut(){const _0x5d2980=_0x151a7c;return Math[_0x5d2980(0x1d5)]()[_0x5d2980(0x208)](0x24)[_0x5d2980(0x3cf)](0x2,0x8);}be[_0x151a7c(0x291)]='UniverIcon';var Nt={'tag':_0x151a7c(0x260),'attrs':{'fill':'none','viewBox':_0x151a7c(0x248),'width':_0x151a7c(0x22e),'height':'1em'},'children':[{'tag':'g','attrs':{'clipPath':_0x151a7c(0x303)},'children':[{'tag':_0x151a7c(0x228),'attrs':{'stroke':_0x151a7c(0x2ce),'d':'M3.61971\x2011.6499C2.40304\x2011.6499\x200.699707\x2011.1024\x200.699707\x208.9124C0.699707\x206.3574\x203.25471\x205.8099\x203.98471\x205.8099C4.34971\x204.5324\x205.07971\x202.5249\x207.99971\x202.5249C10.5547\x202.5249\x2011.6497\x203.9849\x2012.0147\x205.2624C12.0147\x205.2624\x2015.2997\x205.6274\x2015.2997\x208.7299C15.2997\x2010.9199\x2013.8397\x2011.6499\x2012.3797\x2011.6499M9.82471\x209.82466L6.17471\x2013.4747M6.17471\x209.82466L9.82471\x2013.4747','strokeLinecap':'round','strokeLinejoin':_0x151a7c(0x3e8),'strokeWidth':1.2}}]},{'tag':_0x151a7c(0x298),'attrs':{},'children':[{'tag':_0x151a7c(0x3fe),'attrs':{'id':_0x151a7c(0x2ca)},'children':[{'tag':_0x151a7c(0x228),'attrs':{'fill':_0x151a7c(0x27b),'d':_0x151a7c(0x32e)}}]}]}],'defIds':[_0x151a7c(0x2ca)]},$e=M['forwardRef'](function(_0x51ce39,_0x1e8ba0){const _0xb69a8b=_0x151a7c;return M['createElement'](be,Object[_0xb69a8b(0x1f2)]({},_0x51ce39,{'id':_0xb69a8b(0x26a),'ref':_0x1e8ba0,'icon':Nt}));});$e['displayName']='OffLineSingle';var Mt={'tag':_0x151a7c(0x260),'attrs':{'fill':_0x151a7c(0x24d),'viewBox':_0x151a7c(0x1d7),'width':_0x151a7c(0x22e),'height':'1em'},'children':[{'tag':'g','attrs':{'clipPath':'url(#on-line-single_clip0_910_349)'},'children':[{'tag':_0x151a7c(0x228),'attrs':{'stroke':_0x151a7c(0x2ce),'d':_0x151a7c(0x397),'strokeLinecap':_0x151a7c(0x3e8),'strokeLinejoin':_0x151a7c(0x3e8),'strokeWidth':1.2}}]},{'tag':_0x151a7c(0x298),'attrs':{},'children':[{'tag':'clipPath','attrs':{'id':_0x151a7c(0x320)},'children':[{'tag':_0x151a7c(0x228),'attrs':{'fill':_0x151a7c(0x27b),'d':'M0\x200H16V16H0z','transform':_0x151a7c(0x361)}}]}]}],'defIds':[_0x151a7c(0x320)]},xe=M[_0x151a7c(0x1b2)](function(_0x191a8d,_0x8ad816){const _0x5cf6df=_0x151a7c;return M[_0x5cf6df(0x409)](be,Object[_0x5cf6df(0x1f2)]({},_0x191a8d,{'id':_0x5cf6df(0x2cf),'ref':_0x8ad816,'icon':Mt}));});xe[_0x151a7c(0x291)]=_0x151a7c(0x37d);const Lt=_0x151a7c(0x3f0),Pt=_0x151a7c(0x373),wt=_0x151a7c(0x259),At='univer-online',yt=_0x151a7c(0x32f),H={'onlineStatusIcon':Lt,'onlineStatusTitle':Pt,'onlineStatus':wt,'online':At,'offline':yt};function $t(_0x7bd5){const _0x15af3b=_0x151a7c;switch(_0x7bd5){case u[_0x15af3b(0x354)]['OFFLINE']:return'collabStatus.offline';case u[_0x15af3b(0x354)][_0x15af3b(0x252)]:return'collabStatus.conflict';case u[_0x15af3b(0x354)][_0x15af3b(0x242)]:return _0x15af3b(0x268);case u['CollaborationStatus'][_0x15af3b(0x19e)]:return'collabStatus.notCollab';case u[_0x15af3b(0x354)][_0x15af3b(0x30a)]:case u[_0x15af3b(0x354)][_0x15af3b(0x2af)]:return'collabStatus.syncing';case u[_0x15af3b(0x354)]['SYNCED']:case u[_0x15af3b(0x354)][_0x15af3b(0x3d8)]:return'collabStatus.synced';}}function je(_0x54bfe4){const _0x5cf939=_0x151a7c,{status$:_0x4d7b0a}=_0x54bfe4,_0x4d9163=O[_0x5cf939(0x3aa)](_0x4d7b0a,u[_0x5cf939(0x354)][_0x5cf939(0x19e)]),_0x3d9a5d=O['useDependency'](a[_0x5cf939(0x1ea)]),_0x51f260=O['useDependency'](u[_0x5cf939(0x3dd)]),_0x299a56=_0x4d9163!==u['CollaborationStatus'][_0x5cf939(0x370)],_0x507e62=_0x3d9a5d['t']($t(_0x4d9163)),_0x3093d3=T[_0x5cf939(0x27e)](H['onlineStatus'],{[H[_0x5cf939(0x307)]]:_0x299a56,[H['offline']]:!_0x299a56}),_0x4c3d0e=_0x299a56?P[_0x5cf939(0x2fd)](xe,{}):P[_0x5cf939(0x2fd)]($e,{}),_0xfccba8=M[_0x5cf939(0x1bf)](()=>{_0x299a56||_0x51f260['reconnect']();},[_0x299a56,_0x51f260]);function _0x2ed29d(){const _0x2070a2=_0x5cf939;return P[_0x2070a2(0x374)](_0x2070a2(0x3c3),{'className':T[_0x2070a2(0x27e)](_0x3093d3,_0x2070a2(0x39b)),'onClick':_0xfccba8,'children':[P['jsx']('div',{'className':H[_0x2070a2(0x3a4)],'children':_0x4c3d0e}),P[_0x2070a2(0x2fd)](_0x2070a2(0x3c3),{'className':H[_0x2070a2(0x1b0)],'children':_0x507e62})]});}return _0x299a56?_0x2ed29d():P[_0x5cf939(0x2fd)](T['Tooltip'],{'title':_0x3d9a5d['t'](_0x5cf939(0x304)),'children':_0x2ed29d()});}var xt=Object[_0x151a7c(0x300)],jt=(_0x3d785f,_0x9e2d0b,_0x2b1315,_0x3488aa)=>{const _0x5d4cc9=_0x151a7c;for(var _0x500212=_0x3488aa>0x1?void 0x0:_0x3488aa?xt(_0x9e2d0b,_0x2b1315):_0x9e2d0b,_0xd45593=_0x3d785f[_0x5d4cc9(0x3b3)]-0x1,_0x3888ca;_0xd45593>=0x0;_0xd45593--)(_0x3888ca=_0x3d785f[_0xd45593])&&(_0x500212=_0x3888ca(_0x500212)||_0x500212);return _0x500212;},X=(_0x833d25,_0x7134a8)=>(_0x17cdae,_0x192c8c)=>_0x7134a8(_0x17cdae,_0x192c8c,_0x833d25);exports[_0x151a7c(0x3b6)]=class extends a['Disposable']{constructor(_0x288161,_0x989683,_0x4cd516,_0x3886e3){const _0x38450b=_0x151a7c;super(),_(this,'_status$',new d[(_0x38450b(0x1dd))](u[_0x38450b(0x354)][_0x38450b(0x19e)])),(this['_univerInstanceService']=_0x288161,this[_0x38450b(0x388)]=_0x989683,this[_0x38450b(0x343)]=_0x4cd516,this['_uiPartsService']=_0x3886e3,this['_initStatusComponent'](),this[_0x38450b(0x3db)]());}[_0x151a7c(0x3db)](){const _0x5a1da3=_0x151a7c;this[_0x5a1da3(0x2f6)](this['_univerInstanceService'][_0x5a1da3(0x245)][_0x5a1da3(0x271)](d[_0x5a1da3(0x39d)](()=>{const _0xbc6bd4=_0x5a1da3,_0x11c253=this['_univerInstanceService'][_0xbc6bd4(0x34c)]();return _0x11c253?this[_0xbc6bd4(0x343)]['getCollabEntity$'](_0x11c253['getUnitId']()):d['of'](null);}),d[_0x5a1da3(0x39d)](_0x1c69c4=>_0x1c69c4?_0x1c69c4[_0x5a1da3(0x2a8)]:d['of'](u[_0x5a1da3(0x354)][_0x5a1da3(0x19e)])))[_0x5a1da3(0x22b)](_0xfee4a9=>{const _0x335290=_0x5a1da3;this[_0x335290(0x253)]['next'](_0xfee4a9);}));}[_0x151a7c(0x230)](){const _0x1c5465=_0x151a7c;this[_0x1c5465(0x2f6)](this[_0x1c5465(0x1e2)][_0x1c5465(0x3bf)](O['BuiltInUIPart']['HEADER_MENU'],()=>O['connectInjector'](Bt({'status$':this[_0x1c5465(0x253)][_0x1c5465(0x33c)]()}),this['_injector'])));}},exports[_0x151a7c(0x3b6)]=jt([X(0x0,a[_0x151a7c(0x1e8)]),X(0x1,a['Inject'](a[_0x151a7c(0x34d)])),X(0x2,a[_0x151a7c(0x2db)](u[_0x151a7c(0x19d)])),X(0x3,O['IUIPartsService'])],exports[_0x151a7c(0x3b6)]);function _0x448a(){const _0x40c311=['getSheetId','_document','CollaborationSocketService','get','_startSheetCollabCursor','runRefRangeMutations','_cursor','_dataLoaderService','handleDeleteRangeMoveLeft','translate(.97)','distinctUntilChanged','_id','UniverCollaborationClientUIPlugin','getParam','UniverCollaborationClientPlugin','className','Subject','_unitOnClients','fill','isEditing','debounce','sessionStatus$','rgba(255,\x20255,\x20255,\x200.01)','SUBMIT_CHANGESET_TIMEOUT','OFFLINE','triggerDblclick','CollaborationEvent','univer-online-status-title','jsxs','_session','_roomMembers$','addHandlerCallback','UNIVER_DOC','EffectRefRangId','@univerjs/network','NodePositionConvertToCursor','fromEvent','OnLineSingle','DocSkeletonManagerService','searchParams','VIEW_MAIN','setStateCache','collab-text-range-','4908792FzGNqT','m1Prime','MoveRangeCommandId','width','_scheduleHeartbeat','_injector','error','CollaborationStatusDisplay','_clearOtherTimers','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','undoState','from','Disposable','_cursorInfo$','SheetSkeletonManagerService','black','_doCreateSocket','TEXT','_updateCollabCursors','getCurrentRevOfUnit','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','rxjs','syncEditingCollabCursor','DisposableCollection','univer-flex\x20univer-items-center','WebSocketService','switchMap','ICommandService','_docTransformSelectionsService','_imageIoService','jiqing500','_entities','dispose','onlineStatusIcon','min','flatMap','SNAPSHOT_HAS_BEEN_REMOVED','LICENSE_IMPORT_SIZE_EXCEEDED','RemoveColCommandId','useObservable','_drawRectRange','getItem','_handleHover','@univerjs/docs-ui','getMember','_notificationService','HTTPService','runId','length','SOCKET_FAILED_RETRY','ONLINE','DesktopCollaborationStatusDisplayController','DataLoaderService','font','getUnitStatus$','DocCollaborationEntity','with','isActive','deepClone','SessionStatus','registerComponent','hasOwnProperty','roomMembers','removeParam','div','storage','UNIVER_SHEET','_drawTextRange','_transformUndoRedoStack','Failed','onCommandExecuted','collab-text-anchor-','getLocalCacheKey','subunit','_renderManagerService','MUTATION','substring','RegularPolygon','mapTo','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','_color','ranges','shareReplay','getCellPositionByOffset','deserializeRangeWithSheet','PENDING','toRgbString','OTHER_CLIENT_EDITING','_initStatusListener','CollaborationDataLoaderController','CollaborationSessionService','@univerjs/engine-formula','getUndoRedoMutationParamsCache','trim','WebBrowserSingleActiveUnitService','_online','YUUMI_RATE_OVER_LIMIT','_configService','Error','_disabled','indexOf','round','LICENSE_EXPORT_SIZE_EXCEEDED','cursorInfo$','IDocClipboardService','_handleHeartbeatEvent','complete','OTHER_CLIENTS_EDITING','_colorIndex','univer-online-status-icon','COLORS','_onRefRangeChange','drawWith','unsubscribe','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','_toggleOnline','_ensureSubject','_send','_memberService','type','stringify','call','session.connection-failed','clipPath','has','DeleteRangeMoveLeftCommandId','_getSessionTicket','selections','_revisionService','_collabCursorController','_instanceService','_docSkeleton','takeUntil','onStarting','createElement','IRenderManagerService','editingUnit','INVALID_ARGUMENT','427497JxVwRZ','executeCommand','Unknown\x20user','RefRangeService','InsertRangeMoveRightCommandId','ColorKit','search','_name','_cursors','range','getDocRanges','DocIMEInputManagerService','SetWorksheetActivateCommand','beginPath','restore','getColor','transformRemoteChangeset','symbol','Optional','getConfig','_getSheetObject','getOffsetConfig','findNodePositionByCharIndex','YUUMI_UNABLE_LOAD_URL','CollaborationController','NOT_COLLAB','_httpService','_registerRenderDependencies','_scheduleSaving','createSocket','@univerjs/sheets-ui','WebURLService','_draw','_removeClearOtherTimer','_context','generateRandomId','onRendered','handleMoveRange','_docStateChangeManagerService','loadOfflineData','APPLY_REJECT','getValue','useRef','onlineStatusTitle','react','forwardRef','_anchor','IMessageService','backgroundColor','save','_colorAssignService','sheetID','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','unshift','ILocalStorageService','_cachedData','UnitStatus','univerjs-icon\x20univerjs-icon-','useCallback','getTypeOfUnitDisposed$','2402598DIEXRf','_render','DEFAULT_WS_SESSION_TICKET_URL','SNAPSHOT_INVALID_SNAPSHOT','saveOfflineData','@univerjs/design','gold400','_init','FromArray','MessageType','addObjects','_cursorShapes','_hideTimer','LOCAL_CACHE_INTERVAL_KEY','_updateURLWithCurrentState','transformSelections','currentTheme$','InsertRowCommandId','doc.mutation.rich-text-editing','verdancy600','random','hide','0\x200\x2017\x2016','_saveTaskMap','currentSkeleton$','resize','invokeId','xlink:href','BehaviorSubject','unitId','subscribeEvent','USERS_LEAVE','_refreshCollabCursors','_uiPartsService','memberID','_scene','transformMutationsWithChangeset','size','_logService','IUniverInstanceService','entries','LocaleService','attrs','fillText','TRANSFORM_CHANGE_OBSERVABLE_TYPE','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','toStringTag','_urlService','TEXT_RANGE_LAYER_INDEX','assign','PY_RUNTIME_SCRIPT_ERROR','show','split','onPointerLeave$','ILogService','CONNECTOR_DATA_TOO_LARGE','CollaborationUIEventService','getCollabCursors$','@univerjs-pro/collaboration-client','top','APPLY_PERMISSION_DENIED','CHANGESET_REVISION_CONFILICT','prototype','getCurrent','getCurrentUnitForType','_shapes','color','COMPLETION_FINISHED','IRemoteInstanceService','selection','collaboration.closeRoom','toString','defineProperty','_transformHistoryAndStateStack','DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT','InsertRangeMoveDownCommandId','getCoordByCell','concat','string','subUnitId','getMemberID','YUUMI_URL_COL_OUT_OF_RANGE','clearInterval','_getSaveTimeout','_refRangeService','DOC_RANGE_TYPE','_onCursorDelete','_lastPointer','_syncEditingCollabCursorService','contains','_transformService','_initResize','requireSession','enableLocalCache','_saveCache','send','exhaustSavingTask','_initDependencies','SetTextSelectionsOperation','collabCursorState$','idSuffix','SheetsSelectionsService','_scheduleClearOtherTimer','path','fillStyle','INVITE_CODE_REQUIRED','subscribe','disposeUnit','merge','1em','_heartbeatTimer','_initStatusComponent','children','handleInsertRow','height','entityInit$','INTERNAL_ERROR','setTimeout','_config','1912412hEpUIA','@univerjs/sheets','handleIRemoveRow','_unitStatus','[CollaborationDataLoaderController]','SHEET_VIEWPORT_KEY','delete','mask','APPLY_DUPLICATED','_getAnchorBounding','FETCH_MISS','APPLY_REVISION_CONFILICT','onMouseMove','focused$','SetSelectionsOperation','getMergeData','0\x200\x2016\x2016','_collaborationUIEventService','apply','Plugin','_initEvent','none','LOGIN_FAILED','createInstance','newValue','INVALID_INVITE_CODE','CONFLICT','_status$','APPLY_NON_SEQUENTIAL_REVISION','docStateChange$','init','makeDirty','UPDATE_CURSOR','univer-online-status','setActiveRange','SetDocZoomRatioOperation','isTransformMutationsWithChangesetSuccess','current','pushState','@univerjs/ui','svg','source','_collabCursorState$','registerRenderModule','push','IURLService','REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY','registerBeforeClose','collabStatus.fetchMiss','INVITE_CODE_ALREADY_BOUND','off-line-single','debug','updateOfflineData','_assignedColors','_themeService','startColumn','2483165kSEGmR','pipe','registerRefRange','sheetId','location','body','_docClipboardService','permission.content','NOT_FOUND','runOnServer','red300','#fff','Rect','ISocketService','clsx','getUnitId','_backgroundColor','transform','saveTaskMap','getSheetObject','IImageIoService','CollaborationUIEventId','defIds','moveTo','transformStateCache','_entityInit$','collab-rect-range-','EMAIL_HAS_BEEN_BOUND','assignAColorForMemberID','_onCursorUpdate','params','WECHAT_HAS_BEEN_BOUND','getCurrentSelections','displayName','_labelPosition','m2Prime','redoState','getStateCache','filter','Shape','defs','disableLocalCache','_handleJoinEvent','_updateSubUnitFromURLParams','INVITE_CODE_HAS_BEEN_UES','skeleton','result','_handleLeaveEvent','_docSkeletonManagerService','url(#$1','_messageService','addObject','set','find','UNDEFINED','_toggleOffline','status$','IConfigService','_updateLocalCursor','includes','cursorInfo','getOwnPropertySymbols','_setupBeforeClosingHandler','AWAITING_WITH_PENDING','setInterval','hovered','addEventListener','parse','debounceTime','name','_docSyncEditingCollabCursorService','ALREADY_EXISTS','onPointerEnter$','8116608NnggXS','imageSourceType','text','setItem','forEach','MOBILE_HAS_BEEN_BOUND','_initEntityListener','toDisposable','YUUMI_SUBSCRIPTION_NOT_FOUND','RxDisposable','labelPosition','getRelativeToViewportCoord','_localCacheService','measureText','Module','startRow','LICENSE_MAX_UNITS_EXCEEDED','off-line-single_clip0_910_343','ITransformService','_initCommandExecutedListener','values','currentColor','on-line-single','setConfig','getRangePointData','popstate','isArray','_anchorDot','icon','sessionTicket','CLOSE_ROOM','collaboration.single-unit.warning','unload','addClipboardHook','Inject','urlChange$','transformIMECache','pluginName','Vector2','application/json','isTransformMutationFailure','UNIVER_COLLABORATION_CLIENT_WEB_PLUGIN','getAncestorScale','JOIN_ROOM_FAILED','_handleEvent','SheetCollabCursorShape','clearTimeout','_eventUnsubscribe','arc','_createSocketURL','data','add','getTypeOfUnitAdded$','_collabSessionService','setShapeProps','_selfUnitIDs','Tools','LOCAL_CACHE_INTERVAL','ILocalCacheService','unit','getRenderById','disposeWithMe','endColumn','UNRECOGNIZED','@univerjs/engine-render','_transformPreviousActiveRange','_removeCollabCursors','executionId','jsx','USER_NOT_INVITED_CODE','history','getOwnPropertyDescriptor','_setupSubUnitSync','CommandType','url(#off-line-single_clip0_910_343)','collab-client.tooltip.reconnect','replaceState','ENSURE_SNAPSHOT_EXECUTION','online','_localStorageService','engine','AWAITING','NO_OTHER_CLIENTS_EDITING','Rectangle','handleInsertCol','react/jsx-runtime','permission.title','then','evenodd','ThemeService','_sheetSkeletonManagerService','function','_getMergeRange','activeSheet$','_localeService','blue400','UniverInstanceType','RECT','eventID','_startDocCollabCursor','_range','textRanges','key','on-line-single_clip0_910_349','roomMembers$','event$','setAlpha','...','some','dispose$','startsWith','unitID','_hover','PERMISSION_DENIED','Warning','_textBubble','_registerDependencies','M0\x200H16V16H0z','univer-offline','rxjs/operators','getSheetBySheetId','mutations','handleInsertRangeMoveDown','52NCrNgM','uni.network.url-service','next','NodePositionConvertToRectRange','getSkeleton','_hovered','handleInsertRangeMoveRight','UNAUTHENTICATED','asObservable','map','_docTransformIMECacheService','loadUnit','21314CVEJXl','lineTo','combineLatest','_collaborationController','_univerInstanceService','DocStateChangeManagerService','tag','YUUMI_NO_CUBOID_FOR_QUESTION','column','getViewport','YUUMI_ASYNCIO_CANCELLED','href','getFocusedUnit','Injector','BrowserCollaborationSocketService','LICENSE_DISTRO_REJECTED','transformMutation','_drawAnchor','code','transformByState','CollaborationStatus','_docTransformStateCacheService','colorChannel1','_commandService'];_0x448a=function(){return _0x40c311;};return _0x448a();}function Bt(_0x40b411){const {status$:_0x2909ac}=_0x40b411;return function(){return P['jsx'](je,{'status$':_0x2909ac});};}var kt=Object[_0x151a7c(0x300)],Ht=(_0x30d12c,_0x4c3c35,_0x2117c8,_0x298084)=>{for(var _0x453fdf=_0x298084>0x1?void 0x0:_0x298084?kt(_0x4c3c35,_0x2117c8):_0x4c3c35,_0x4e078b=_0x30d12c['length']-0x1,_0x21fe98;_0x4e078b>=0x0;_0x4e078b--)(_0x21fe98=_0x30d12c[_0x4e078b])&&(_0x453fdf=_0x21fe98(_0x453fdf)||_0x453fdf);return _0x453fdf;},y=(_0xd19a24,_0x40977d)=>(_0x70a3d1,_0x5efd91)=>_0x40977d(_0x70a3d1,_0x5efd91,_0xd19a24);let z=class extends a['Disposable']{constructor(_0x5b7d3f,_0x3fa014,_0x43ba6f,_0x4161ca,_0x1c9a85,_0x54b231){const _0x4f13cb=_0x151a7c;super(),this['_beforeCloseService']=_0x5b7d3f,this[_0x4f13cb(0x2c5)]=_0x3fa014,this[_0x4f13cb(0x249)]=_0x43ba6f,this[_0x4f13cb(0x2a2)]=_0x4161ca,this[_0x4f13cb(0x3b0)]=_0x1c9a85,this[_0x4f13cb(0x317)]=_0x54b231,this[_0x4f13cb(0x2ae)](),this[_0x4f13cb(0x24c)]();}[_0x151a7c(0x2ae)](){const _0x3f725f=_0x151a7c;this[_0x3f725f(0x2f6)](this['_beforeCloseService'][_0x3f725f(0x267)](()=>{const _0x1dbb9a=_0x3f725f;if(this[_0x1dbb9a(0x2c5)][_0x1dbb9a(0x282)][_0x1dbb9a(0x1e6)])return this['_localeService']['t']('collaboration-client.offline-data-not-saved');}));}[_0x151a7c(0x24c)](){const _0x13616d=_0x151a7c;this[_0x13616d(0x2f6)](this[_0x13616d(0x249)]['event$'][_0x13616d(0x22b)](_0x304d2a=>{const _0x5e9b57=_0x13616d;_0x304d2a['id']===u['CollaborationUIEventId'][_0x5e9b57(0x3da)]&&this['_messageService']['show']({'type':T['MessageType']['Warning'],'content':this[_0x5e9b57(0x317)]['t'](_0x5e9b57(0x2d8))}),_0x304d2a['id']===u[_0x5e9b57(0x285)][_0x5e9b57(0x2d7)]&&this[_0x5e9b57(0x2a2)][_0x5e9b57(0x1f4)]({'type':T[_0x5e9b57(0x1ca)]['Warning'],'content':this[_0x5e9b57(0x317)]['t'](_0x5e9b57(0x207))}),_0x304d2a['id']===u[_0x5e9b57(0x285)][_0x5e9b57(0x32a)]&&this[_0x5e9b57(0x3b0)][_0x5e9b57(0x1f4)]({'title':this['_localeService']['t'](_0x5e9b57(0x30f)),'content':this[_0x5e9b57(0x317)]['t'](_0x5e9b57(0x277)),'type':_0x5e9b57(0x389),'duration':0x0}),_0x304d2a['id']===u[_0x5e9b57(0x285)][_0x5e9b57(0x252)]&&this[_0x5e9b57(0x2a2)]['show']({'type':T['MessageType'][_0x5e9b57(0x3e5)],'content':this[_0x5e9b57(0x317)]['t']('collaboration.closeRoom')+'('+_0x304d2a['data']+')'}),_0x304d2a['id']===u[_0x5e9b57(0x285)][_0x5e9b57(0x2e4)]&&this[_0x5e9b57(0x2a2)][_0x5e9b57(0x1f4)]({'type':T[_0x5e9b57(0x1ca)]['Warning'],'content':this[_0x5e9b57(0x317)]['t'](_0x304d2a['data']||'')}),_0x304d2a['id']===u[_0x5e9b57(0x285)][_0x5e9b57(0x3b4)]&&this['_messageService'][_0x5e9b57(0x1f4)]({'type':T['MessageType'][_0x5e9b57(0x32b)],'content':this[_0x5e9b57(0x317)]['t']('session.will-retry')}),_0x304d2a['id']===u[_0x5e9b57(0x285)]['SOCKET_FAILED']&&this[_0x5e9b57(0x2a2)][_0x5e9b57(0x1f4)]({'type':T[_0x5e9b57(0x1ca)][_0x5e9b57(0x3e5)],'content':this['_localeService']['t'](_0x5e9b57(0x3fd))}),_0x304d2a['id']===u[_0x5e9b57(0x285)][_0x5e9b57(0x36f)]&&this['_messageService'][_0x5e9b57(0x1f4)]({'type':T['MessageType']['Error'],'content':this[_0x5e9b57(0x317)]['t']('session.collaboration-timeout')});}));}};z=Ht([y(0x0,O['IBeforeCloseService']),y(0x1,u[_0x151a7c(0x2f3)]),y(0x2,a['Inject'](u[_0x151a7c(0x1f9)])),y(0x3,O[_0x151a7c(0x1b4)]),y(0x4,O['INotificationService']),y(0x5,a['Inject'](a[_0x151a7c(0x1ea)]))],z);const Ft='collaboration-client-ui.config',Ne={},Ee=a['createIdentifier'](_0x151a7c(0x335));var Wt=Object[_0x151a7c(0x300)],Yt=(_0x5df7d5,_0x1f00f0,_0x50cc47,_0x386586)=>{const _0x127f2d=_0x151a7c;for(var _0x4f411b=_0x386586>0x1?void 0x0:_0x386586?Wt(_0x1f00f0,_0x50cc47):_0x1f00f0,_0x4aa2f3=_0x5df7d5[_0x127f2d(0x3b3)]-0x1,_0xba1a22;_0x4aa2f3>=0x0;_0x4aa2f3--)(_0xba1a22=_0x5df7d5[_0x4aa2f3])&&(_0x4f411b=_0xba1a22(_0x4f411b)||_0x4f411b);return _0x4f411b;},F=(_0x342764,_0x2ff37f)=>(_0x289618,_0x26c7cd)=>_0x2ff37f(_0x289618,_0x26c7cd,_0x342764);exports['CollaborationDataLoaderController']=class extends a[_0x151a7c(0x2c2)]{constructor(_0x5d6446,_0x3f4d88,_0x105548,_0x8cc5ea,_0x2ae25e){const _0x1de37c=_0x151a7c;super(),this['_urlService']=_0x5d6446,this[_0x1de37c(0x1e7)]=_0x3f4d88,this[_0x1de37c(0x357)]=_0x105548,this[_0x1de37c(0x35f)]=_0x8cc5ea,_0x2ae25e?_0x2ae25e==null||_0x2ae25e['whenReady']()[_0x1de37c(0x310)](()=>this[_0x1de37c(0x1c8)]()):(this[_0x1de37c(0x1e7)][_0x1de37c(0x26b)](_0x1de37c(0x23c),_0x1de37c(0x1ee)),this[_0x1de37c(0x1c8)]());}async[_0x151a7c(0x1c8)](){const _0x5e8edf=_0x151a7c,_0x153a6f=this[_0x5e8edf(0x1f0)][_0x5e8edf(0x365)](_0x5e8edf(0x2f4)),_0xa2b009=this[_0x5e8edf(0x1f0)]['getParam'](_0x5e8edf(0x3fa)),_0x5a07e0=this['_urlService'][_0x5e8edf(0x365)]('subunit');if(!_0x153a6f||!_0xa2b009){this[_0x5e8edf(0x1e7)][_0x5e8edf(0x26b)](_0x5e8edf(0x23c),_0x5e8edf(0x1b9));return;}const _0x160442=await this[_0x5e8edf(0x35f)][_0x5e8edf(0x33f)](_0x153a6f,Number(_0xa2b009),_0x5a07e0);_0x160442&&_0x160442 instanceof a['Workbook']&&this['_setupSubUnitSync'](_0x160442);}async[_0x151a7c(0x301)](_0x1c744b){const _0xb13933=_0x151a7c;await this['_updateSubUnitFromURLParams'](_0x1c744b),_0x1c744b[_0xb13933(0x316)][_0xb13933(0x271)](d[_0xb13933(0x407)](this[_0xb13933(0x326)]))[_0xb13933(0x22b)](_0x32f3f5=>{const _0x449d0e=_0xb13933;_0x32f3f5&&this[_0x449d0e(0x1cf)](_0x32f3f5);}),this[_0xb13933(0x1f0)][_0xb13933(0x2dc)][_0xb13933(0x271)](d[_0xb13933(0x407)](this[_0xb13933(0x326)]))[_0xb13933(0x22b)](()=>this['_updateSubUnitFromURLParams'](_0x1c744b));}[_0x151a7c(0x1cf)](_0x228fc5,_0x5dfcd9=!0x1){const _0x7760c5=_0x151a7c,_0x28dcc9=this['_urlService']['getParam']('subunit');_0x228fc5[_0x7760c5(0x358)]()!==_0x28dcc9&&this[_0x7760c5(0x1f0)]['setParam']('subunit',_0x228fc5[_0x7760c5(0x358)](),_0x5dfcd9);}async[_0x151a7c(0x29b)](_0x5a9086){const _0x324c4f=_0x151a7c;var _0x45f586;const _0x4060ea=this[_0x324c4f(0x1f0)][_0x324c4f(0x365)](_0x324c4f(0x3cc));if(!_0x4060ea||!_0x5a9086[_0x324c4f(0x331)](_0x4060ea)){const _0x21c581=_0x5a9086['getUnhiddenWorksheets']()[0x0],_0x19049d=_0x5a9086[_0x324c4f(0x331)](_0x21c581);if(!_0x19049d)return;this[_0x324c4f(0x1cf)](_0x19049d,!0x0),await this[_0x324c4f(0x357)]['executeCommand'](g['SetWorksheetActivateCommand']['id'],{'unitId':_0x5a9086[_0x324c4f(0x27f)](),'subUnitId':_0x21c581});return;}((_0x45f586=_0x5a9086['getActiveSheet']())==null?void 0x0:_0x45f586[_0x324c4f(0x358)]())!==_0x4060ea&&await this[_0x324c4f(0x357)][_0x324c4f(0x40e)](g[_0x324c4f(0x419)]['id'],{'unitId':_0x5a9086[_0x324c4f(0x27f)](),'subUnitId':_0x4060ea});}},exports[_0x151a7c(0x3dc)]=Yt([F(0x0,Ee),F(0x1,a['ILogService']),F(0x2,a['ICommandService']),F(0x3,a[_0x151a7c(0x2db)](u[_0x151a7c(0x3b7)])),F(0x4,a[_0x151a7c(0x197)](Ke[_0x151a7c(0x205)]))],exports['CollaborationDataLoaderController']);var Vt=Object[_0x151a7c(0x300)],Xt=(_0x580b92,_0x3a33c7,_0x543952,_0x35cb93)=>{const _0x5de058=_0x151a7c;for(var _0x1f656=_0x35cb93>0x1?void 0x0:_0x35cb93?Vt(_0x3a33c7,_0x543952):_0x3a33c7,_0x3fe6f9=_0x580b92[_0x5de058(0x3b3)]-0x1,_0x5574a2;_0x3fe6f9>=0x0;_0x3fe6f9--)(_0x5574a2=_0x580b92[_0x3fe6f9])&&(_0x1f656=_0x5574a2(_0x1f656)||_0x1f656);return _0x1f656;},le=(_0xb8019b,_0x53ae31)=>(_0x206b44,_0x584b66)=>_0x53ae31(_0x206b44,_0x584b66,_0xb8019b);let J=class{constructor(_0x3e4038,_0x4c9674,_0x2e6bc5){const _0xd2f6ab=_0x151a7c;this[_0xd2f6ab(0x388)]=_0x3e4038,this['_transformService']=_0x4c9674,this[_0xd2f6ab(0x3cd)]=_0x2e6bc5;}[_0x151a7c(0x2dd)](_0x1bd23e){const _0xe67f6a=_0x151a7c;this[_0xe67f6a(0x3c7)](_0x1bd23e),this[_0xe67f6a(0x2fa)](_0x1bd23e);}['transformRemoteChangeset'](_0x4e3802){const _0xb80fd2=_0x151a7c,{unitID:_0x4008fb}=_0x4e3802,_0x44800a=this[_0xb80fd2(0x3cd)][_0xb80fd2(0x2f5)](_0x4008fb)[_0xb80fd2(0x3bb)](b[_0xb80fd2(0x418)]),{redoCache:_0x32d893}=_0x44800a[_0xb80fd2(0x3df)]();if(_0x32d893[_0xb80fd2(0x3b3)]===0x0)return _0x4e3802;let _0x3f1da0=a[_0xb80fd2(0x2f1)]['deepClone'](_0x4e3802[_0xb80fd2(0x332)][0x0]);for(let _0x5f26f7=0x0;_0x5f26f7<_0x32d893['length'];_0x5f26f7++){const _0x73e38f={'id':_0xb80fd2(0x1d3),'params':{..._0x32d893[_0x5f26f7]}},_0x38c5db=this[_0xb80fd2(0x21b)][_0xb80fd2(0x350)](_0x3f1da0,_0x73e38f,!0x1);if(m[_0xb80fd2(0x2e1)](_0x38c5db))throw _0x38c5db['error'];_0x3f1da0=_0x38c5db[_0xb80fd2(0x384)];}return{...a[_0xb80fd2(0x2f1)][_0xb80fd2(0x3bd)](_0x4e3802),'mutations':[_0x3f1da0]};}['_transformUndoRedoStack'](_0x227f9b){const _0x3779ea=_0x151a7c,{unitID:_0x5d0ab7}=_0x227f9b,_0x182b2f=this[_0x3779ea(0x3cd)][_0x3779ea(0x2f5)](_0x5d0ab7)[_0x3779ea(0x3bb)](b[_0x3779ea(0x418)]),{undoCache:_0x224908,redoCache:_0x6abb4a}=_0x182b2f['getUndoRedoMutationParamsCache']();if(_0x224908['length']===0x0||_0x6abb4a[_0x3779ea(0x3b3)]===0x0)return;const _0x122fec=[],_0x967445=[];let _0x5b3037=a[_0x3779ea(0x2f1)][_0x3779ea(0x3bd)](_0x227f9b['mutations'][0x0]),_0x5e3223=a[_0x3779ea(0x2f1)][_0x3779ea(0x3bd)](_0x227f9b[_0x3779ea(0x332)][0x0]);for(let _0x5c812b=_0x224908[_0x3779ea(0x3b3)]-0x1;_0x5c812b>=0x0;_0x5c812b--){const _0x2a0bfc={'id':'doc.mutation.rich-text-editing','params':{..._0x224908[_0x5c812b]}},_0x533d41={'id':_0x3779ea(0x1d3),'params':{..._0x6abb4a[_0x5c812b]}},_0x36c8d=this[_0x3779ea(0x21b)]['transformMutation'](_0x5b3037,_0x2a0bfc,!0x1),_0x8569db=this[_0x3779ea(0x21b)][_0x3779ea(0x350)](_0x5e3223,_0x533d41,!0x1);if(m['isTransformMutationFailure'](_0x36c8d))throw _0x36c8d['error'];if(m[_0x3779ea(0x2e1)](_0x8569db))throw _0x8569db['error'];_0x122fec[_0x3779ea(0x1ba)](_0x36c8d[_0x3779ea(0x293)][_0x3779ea(0x28e)]),_0x967445['unshift'](_0x8569db[_0x3779ea(0x293)][_0x3779ea(0x28e)]),_0x5b3037=_0x36c8d[_0x3779ea(0x384)],_0x5e3223=_0x8569db[_0x3779ea(0x384)];}_0x182b2f['setUndoRedoMutationParamsCache']({'undoCache':_0x122fec,'redoCache':_0x967445});}[_0x151a7c(0x2fa)](_0x3b9949){const _0x63990=_0x151a7c,{unitID:_0x412bb7}=_0x3b9949,_0x4870a7=this[_0x63990(0x3cd)][_0x63990(0x2f5)](_0x412bb7)['with'](b[_0x63990(0x418)]),_0x502ddc=_0x4870a7['getActiveRange']();if(_0x502ddc==null)return;const _0x1ff83a=[{'id':_0x63990(0x1d3),'params':{'unitId':_0x3b9949['unitID'],'actions':null,'textRanges':[_0x502ddc]}}],_0x3fe9be=this[_0x63990(0x21b)][_0x63990(0x1e5)](_0x3b9949,_0x1ff83a);if(!m[_0x63990(0x25c)](_0x3fe9be))throw _0x3fe9be['error'];const _0x29bd29=_0x3fe9be['m2Prime'][0x0][_0x63990(0x28e)][_0x63990(0x31e)];Array[_0x63990(0x2d3)](_0x29bd29)&&_0x29bd29[_0x63990(0x3b3)]&&_0x4870a7[_0x63990(0x25a)](_0x29bd29[0x0]);}};J=Xt([le(0x0,a[_0x151a7c(0x2db)](a[_0x151a7c(0x34d)])),le(0x1,m['ITransformService']),le(0x2,p[_0x151a7c(0x40a)])],J);var Gt=Object[_0x151a7c(0x300)],qt=(_0x5cf5f9,_0x4f062e,_0x4fddec,_0x401017)=>{for(var _0x1713b3=_0x401017>0x1?void 0x0:_0x401017?Gt(_0x4f062e,_0x4fddec):_0x4f062e,_0x5401c9=_0x5cf5f9['length']-0x1,_0x5efb44;_0x5401c9>=0x0;_0x5401c9--)(_0x5efb44=_0x5cf5f9[_0x5401c9])&&(_0x1713b3=_0x5efb44(_0x1713b3)||_0x1713b3);return _0x1713b3;},_e=(_0x47b6a3,_0x3e05d0)=>(_0x3d142c,_0x27dc3b)=>_0x3e05d0(_0x3d142c,_0x27dc3b,_0x47b6a3);let Z=class{constructor(_0x3d54c5,_0x3293ce,_0xf33489){const _0xc3c319=_0x151a7c;this[_0xc3c319(0x388)]=_0x3d54c5,this[_0xc3c319(0x21b)]=_0x3293ce,this['_docStateChangeManagerService']=_0xf33489;}[_0x151a7c(0x288)](_0x57aa7e){this['_transformHistoryAndStateStack'](_0x57aa7e);}[_0x151a7c(0x41d)](_0x1545ec){const _0x55b5de=_0x151a7c,{unitID:_0x4bffea}=_0x1545ec,{collaboration:_0x1c7682}=this['_docStateChangeManagerService'][_0x55b5de(0x295)](_0x4bffea);if(_0x1c7682['length']===0x0)return _0x1545ec;let _0x5c59a5=a[_0x55b5de(0x2f1)]['deepClone'](_0x1545ec[_0x55b5de(0x332)][0x0]);for(let _0x4416e5=0x0;_0x4416e5<_0x1c7682['length'];_0x4416e5++){const _0x1ba36a={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x1c7682[_0x4416e5][_0x55b5de(0x1de)],..._0x1c7682[_0x4416e5]['redoState']}},_0x386410=this[_0x55b5de(0x21b)]['transformMutation'](_0x5c59a5,_0x1ba36a,!0x1);if(m[_0x55b5de(0x2e1)](_0x386410))throw _0x386410[_0x55b5de(0x389)];_0x5c59a5=_0x386410[_0x55b5de(0x384)];}return{...a[_0x55b5de(0x2f1)][_0x55b5de(0x3bd)](_0x1545ec),'mutations':[_0x5c59a5]};}[_0x151a7c(0x20a)](_0x5bd0e9){const _0x5b2db0=_0x151a7c,{unitID:_0x2a51c4}=_0x5bd0e9,{history:_0x80011d,collaboration:_0x312e37}=this[_0x5b2db0(0x1ab)]['getStateCache'](_0x2a51c4);if(_0x80011d['length']===0x0&&_0x312e37[_0x5b2db0(0x3b3)]===0x0)return;const _0x12989a=[],_0x142d50=[];let _0x3f2c20=a[_0x5b2db0(0x2f1)][_0x5b2db0(0x3bd)](_0x5bd0e9['mutations'][0x0]),_0x2f17e4=a[_0x5b2db0(0x2f1)]['deepClone'](_0x5bd0e9[_0x5b2db0(0x332)][0x0]);for(let _0x6cf208=_0x80011d[_0x5b2db0(0x3b3)]-0x1;_0x6cf208>=0x0;_0x6cf208--){const _0x532613={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x80011d[_0x6cf208][_0x5b2db0(0x1de)],..._0x80011d[_0x6cf208][_0x5b2db0(0x38d)]}},_0x269e5f={'id':_0x5b2db0(0x1d3),'params':{'unitId':_0x80011d[_0x6cf208][_0x5b2db0(0x1de)],..._0x80011d[_0x6cf208][_0x5b2db0(0x294)]}},_0x5801a5=this[_0x5b2db0(0x21b)]['transformMutation'](_0x3f2c20,_0x532613,!0x1),_0xc9a729=this[_0x5b2db0(0x21b)]['transformMutation'](_0x2f17e4,_0x269e5f,!0x1);if(m[_0x5b2db0(0x2e1)](_0x5801a5))throw _0x5801a5[_0x5b2db0(0x389)];if(m[_0x5b2db0(0x2e1)](_0xc9a729))throw _0xc9a729[_0x5b2db0(0x389)];_0x12989a['unshift']({..._0x80011d[_0x6cf208],'undoState':_0x5801a5[_0x5b2db0(0x293)][_0x5b2db0(0x28e)],'redoState':_0xc9a729[_0x5b2db0(0x293)][_0x5b2db0(0x28e)]}),_0x3f2c20=_0x5801a5[_0x5b2db0(0x384)],_0x2f17e4=_0xc9a729['m1Prime'];}_0x3f2c20=a[_0x5b2db0(0x2f1)][_0x5b2db0(0x3bd)](_0x5bd0e9[_0x5b2db0(0x332)][0x0]),_0x2f17e4=a[_0x5b2db0(0x2f1)]['deepClone'](_0x5bd0e9['mutations'][0x0]);for(let _0x280327=_0x312e37[_0x5b2db0(0x3b3)]-0x1;_0x280327>=0x0;_0x280327--){const _0x59f244={'id':_0x5b2db0(0x1d3),'params':{'unitId':_0x312e37[_0x280327][_0x5b2db0(0x1de)],..._0x312e37[_0x280327][_0x5b2db0(0x38d)]}},_0x2a134e={'id':_0x5b2db0(0x1d3),'params':{'unitId':_0x312e37[_0x280327]['unitId'],..._0x312e37[_0x280327][_0x5b2db0(0x294)]}},_0x1002dc=this['_transformService']['transformMutation'](_0x3f2c20,_0x59f244,!0x1),_0x4c2548=this['_transformService']['transformMutation'](_0x2f17e4,_0x2a134e,!0x1);if(m['isTransformMutationFailure'](_0x1002dc))throw _0x1002dc[_0x5b2db0(0x389)];if(m[_0x5b2db0(0x2e1)](_0x4c2548))throw _0x4c2548['error'];_0x142d50[_0x5b2db0(0x1ba)]({..._0x312e37[_0x280327],'undoState':_0x1002dc[_0x5b2db0(0x293)][_0x5b2db0(0x28e)],'redoState':_0x4c2548['m2Prime']['params']}),_0x3f2c20=_0x1002dc[_0x5b2db0(0x384)],_0x2f17e4=_0x4c2548[_0x5b2db0(0x384)];}this[_0x5b2db0(0x1ab)][_0x5b2db0(0x381)](_0x2a51c4,{'history':_0x12989a,'collaboration':_0x142d50});}};Z=qt([_e(0x0,a[_0x151a7c(0x2db)](a[_0x151a7c(0x34d)])),_e(0x1,m[_0x151a7c(0x2cb)]),_e(0x2,a[_0x151a7c(0x2db)](b[_0x151a7c(0x345)]))],Z);var Kt=Object[_0x151a7c(0x300)],zt=(_0x419203,_0x1e6892,_0x285f35,_0x518e58)=>{const _0x40ba59=_0x151a7c;for(var _0x4654c=_0x518e58>0x1?void 0x0:_0x518e58?Kt(_0x1e6892,_0x285f35):_0x1e6892,_0x5b7057=_0x419203[_0x40ba59(0x3b3)]-0x1,_0x51a60f;_0x5b7057>=0x0;_0x5b7057--)(_0x51a60f=_0x419203[_0x5b7057])&&(_0x4654c=_0x51a60f(_0x4654c)||_0x4654c);return _0x4654c;},Me=(_0xaada60,_0x1fa6e4)=>(_0xe39989,_0x46df9c)=>_0x1fa6e4(_0xe39989,_0x46df9c,_0xaada60);let Q=class{constructor(_0x2b06b4,_0x3087f2){const _0x5a29ae=_0x151a7c;this[_0x5a29ae(0x388)]=_0x2b06b4,this[_0x5a29ae(0x21b)]=_0x3087f2;}[_0x151a7c(0x1d0)](_0x24a075){const _0x2e9c18=_0x151a7c;var _0x27abe7;const _0x9c09b4=this[_0x2e9c18(0x388)][_0x2e9c18(0x35b)](Y['DocSelectionManagerService']),_0x26e986=(_0x27abe7=_0x9c09b4[_0x2e9c18(0x417)]())!=null?_0x27abe7:[];if(_0x26e986[_0x2e9c18(0x3b3)]===0x0)return;const _0x181497=_0x24a075[_0x2e9c18(0x328)],_0x377f74=[{'id':_0x2e9c18(0x1d3),'params':{'unitId':_0x181497,'actions':null,'textRanges':_0x26e986}}],_0x365a12=this['_transformService'][_0x2e9c18(0x1e5)](_0x24a075,_0x377f74);if(!m[_0x2e9c18(0x25c)](_0x365a12))throw _0x365a12['error'];const _0x54bb8d=_0x365a12[_0x2e9c18(0x293)][0x0][_0x2e9c18(0x28e)][_0x2e9c18(0x31e)];Array[_0x2e9c18(0x2d3)](_0x54bb8d)&&_0x54bb8d['length']&&_0x9c09b4['replaceDocRanges'](_0x54bb8d,{'unitId':_0x181497,'subUnitId':_0x181497},!0x1);}};Q=zt([Me(0x0,a[_0x151a7c(0x2db)](a[_0x151a7c(0x34d)])),Me(0x1,m['ITransformService'])],Q);var Jt=Object[_0x151a7c(0x300)],Zt=(_0x16384d,_0x53780f,_0x4ce0fa,_0x4aea6d)=>{for(var _0x1f09ba=_0x4aea6d>0x1?void 0x0:_0x4aea6d?Jt(_0x53780f,_0x4ce0fa):_0x53780f,_0x352a05=_0x16384d['length']-0x1,_0x38d778;_0x352a05>=0x0;_0x352a05--)(_0x38d778=_0x16384d[_0x352a05])&&(_0x1f09ba=_0x38d778(_0x1f09ba)||_0x1f09ba);return _0x1f09ba;},N=(_0x38d15c,_0x3de968)=>(_0xbed3ef,_0xb400dc)=>_0x3de968(_0xbed3ef,_0xb400dc,_0x38d15c);let ee=class extends a['Disposable']{constructor(_0x57b377,_0x1a98c0,_0x35c8c5,_0x23d844,_0x1b9e6e,_0x39b189,_0x4b89d8,_0x338775){const _0x34a402=_0x151a7c;super(),_(this,'_status$',new d[(_0x34a402(0x1dd))](u[_0x34a402(0x354)]['NOT_COLLAB'])),(this['_docStateChangeManagerService']=_0x57b377,this[_0x34a402(0x343)]=_0x1a98c0,this[_0x34a402(0x33e)]=_0x35c8c5,this[_0x34a402(0x355)]=_0x23d844,this[_0x34a402(0x39f)]=_0x1b9e6e,this[_0x34a402(0x2b6)]=_0x39b189,this[_0x34a402(0x2a2)]=_0x4b89d8,this[_0x34a402(0x317)]=_0x338775,this[_0x34a402(0x2bf)]());}[_0x151a7c(0x2bf)](){const _0x13ae5b=_0x151a7c;this['disposeWithMe'](this[_0x13ae5b(0x343)][_0x13ae5b(0x234)][_0x13ae5b(0x22b)](_0x419cd1=>{const _0x278b14=_0x13ae5b,_0x1f6c33=this[_0x278b14(0x1ab)][_0x278b14(0x255)][_0x278b14(0x22b)](_0x46e136=>{const _0x43fbd5=_0x278b14;if(_0x46e136==null)return;const {unitId:_0x1d1cc0,redoState:_0x399936,commandId:_0x1e8d19}=_0x46e136;if(_0x1d1cc0!==_0x419cd1[_0x43fbd5(0x328)])return;const _0xc15b03={'id':_0x1e8d19,'type':a[_0x43fbd5(0x302)][_0x43fbd5(0x3ce)],'params':{'unitId':_0x1d1cc0,'actions':_0x399936['actions'],'textRanges':null}};_0x419cd1['onLocalMutation'](_0xc15b03);});if(_0x419cd1[_0x278b14(0x2f6)](_0x1f6c33),_0x419cd1 instanceof u[_0x278b14(0x3ba)]){const _0x245b33={'onTransformIME':_0xf9c3f9=>this[_0x278b14(0x33e)][_0x278b14(0x2dd)](_0xf9c3f9),'onTransformState':_0x3aa3a4=>this[_0x278b14(0x355)]['transformStateCache'](_0x3aa3a4),'onTransformSelections':_0x14456c=>this[_0x278b14(0x39f)]['transformSelections'](_0x14456c),'onSyncEditingCollabCursor':_0x3a84a1=>this[_0x278b14(0x2b6)]['syncEditingCollabCursor'](_0x3a84a1),'onTransformRemoteChangesetByIMECache':_0x3fdefc=>this['_docTransformIMECacheService']['transformRemoteChangeset'](_0x3fdefc),'onTransformRemoteChangesetByStateCache':_0x182954=>this[_0x278b14(0x355)][_0x278b14(0x41d)](_0x182954)};_0x419cd1[_0x278b14(0x377)](_0x245b33);}}));}};ee=Zt([N(0x0,a[_0x151a7c(0x2db)](b['DocStateChangeManagerService'])),N(0x1,a[_0x151a7c(0x2db)](u[_0x151a7c(0x19d)])),N(0x2,a[_0x151a7c(0x2db)](J)),N(0x3,a[_0x151a7c(0x2db)](Z)),N(0x4,a['Inject'](Q)),N(0x5,a[_0x151a7c(0x2db)](pe)),N(0x6,O[_0x151a7c(0x1b4)]),N(0x7,a['Inject'](a[_0x151a7c(0x1ea)]))],ee);var Qt=Object['getOwnPropertyDescriptor'],es=(_0x1cc134,_0x198360,_0x206ad2,_0x181e58)=>{const _0x27aa71=_0x151a7c;for(var _0x2d87e0=_0x181e58>0x1?void 0x0:_0x181e58?Qt(_0x198360,_0x206ad2):_0x198360,_0x325cc0=_0x1cc134[_0x27aa71(0x3b3)]-0x1,_0x5eed21;_0x325cc0>=0x0;_0x325cc0--)(_0x5eed21=_0x1cc134[_0x325cc0])&&(_0x2d87e0=_0x5eed21(_0x2d87e0)||_0x2d87e0);return _0x2d87e0;},he=(_0x10e649,_0x2c5cc2)=>(_0xa6b55f,_0x34ce69)=>_0x2c5cc2(_0xa6b55f,_0x34ce69,_0x10e649);let me=class extends a[_0x151a7c(0x38f)]{constructor(_0x312a6f,_0x585fd7,_0x3d2563){const _0x213b1b=_0x151a7c;super(),_(this,'_cachedData',new Map()),_(this,_0x213b1b(0x1d8),new Map()),_(this,_0x213b1b(0x3e6),!0x1),(this['_configService']=_0x312a6f,this[_0x213b1b(0x308)]=_0x585fd7,this[_0x213b1b(0x403)]=_0x3d2563);}[_0x151a7c(0x299)](){const _0x2ad8db=_0x151a7c;this[_0x2ad8db(0x3e6)]=!0x0;}[_0x151a7c(0x21e)](){this['_disabled']=!0x1;}get[_0x151a7c(0x282)](){const _0x32feab=_0x151a7c;return this[_0x32feab(0x1d8)];}['dispose'](){this['exhaustSavingTask']()['then'](()=>super['dispose']());}async[_0x151a7c(0x1ac)](_0x220884){const _0x46b7af=_0x151a7c;return this[_0x46b7af(0x3e6)]?null:this[_0x46b7af(0x308)][_0x46b7af(0x3ac)](u[_0x46b7af(0x3cb)](_0x220884));}async[_0x151a7c(0x1c5)](_0x1e0f07,_0x178c58){const _0x2bdf96=_0x151a7c;return!!this[_0x2bdf96(0x308)][_0x2bdf96(0x2bc)](_0x1e0f07,_0x178c58);}[_0x151a7c(0x26c)](_0x9b0a2c,_0x3555cc,_0x1e3679,_0x3b2603){const _0x17f236=_0x151a7c,_0x2e19a9=this[_0x17f236(0x403)][_0x17f236(0x396)](_0x9b0a2c);this['_cachedData'][_0x17f236(0x2a4)](_0x9b0a2c,{'unitID':_0x9b0a2c,'type':_0x3555cc,'awaitingChangeset':_0x1e3679,'mutations':_0x3b2603,'rev':_0x2e19a9}),this['_saveTaskMap']['has'](_0x9b0a2c)||this[_0x17f236(0x1a1)](_0x9b0a2c);}[_0x151a7c(0x1a1)](_0x217c3d){const _0x1f5727=_0x151a7c,_0x4c2877=this['_getSaveTimeout']();_0x4c2877===0x0?this[_0x1f5727(0x21f)](_0x217c3d):this[_0x1f5727(0x1d8)][_0x1f5727(0x2a4)](_0x217c3d,setTimeout(()=>this['_saveCache'](_0x217c3d),_0x4c2877));}[_0x151a7c(0x214)](){const _0xae3a10=_0x151a7c;var _0x40e642;return(_0x40e642=this['_configService'][_0xae3a10(0x198)](u[_0xae3a10(0x1ce)]))!=null?_0x40e642:u[_0xae3a10(0x2f2)];}[_0x151a7c(0x21f)](_0x5c0dd6){const _0x2fb083=_0x151a7c,_0x5e0dca=this[_0x2fb083(0x1d8)][_0x2fb083(0x35b)](_0x5c0dd6);return _0x5e0dca!==void 0x0&&window[_0x2fb083(0x2e7)](_0x5e0dca),this[_0x2fb083(0x308)][_0x2fb083(0x2bc)](u[_0x2fb083(0x3cb)](_0x5c0dd6),this[_0x2fb083(0x1bc)]['get'](_0x5c0dd6))['then'](()=>this['_saveTaskMap'][_0x2fb083(0x23e)](_0x5c0dd6));}async[_0x151a7c(0x221)](){const _0x551a72=_0x151a7c,_0x370684=[];this[_0x551a72(0x1d8)][_0x551a72(0x2bd)]((_0x12b8b1,_0x5399cd)=>{const _0x330ad0=_0x551a72;window[_0x330ad0(0x2e7)](_0x12b8b1),_0x370684[_0x330ad0(0x264)](this[_0x330ad0(0x21f)](_0x5399cd)[_0x330ad0(0x310)](()=>{this['_saveTaskMap']['delete'](_0x5399cd);}));}),await Promise['all'](_0x370684);}};me=es([he(0x0,a[_0x151a7c(0x2a9)]),he(0x1,a[_0x151a7c(0x1bb)]),he(0x2,a['Inject'](m['RevisionService']))],me);class Be extends a['RxDisposable']{constructor(){const _0x291ab2=_0x151a7c;super(),_(this,'urlChange$'),this[_0x291ab2(0x2dc)]=d[_0x291ab2(0x37c)](window,_0x291ab2(0x2d2))[_0x291ab2(0x271)](d[_0x291ab2(0x407)](this['dispose$']),d[_0x291ab2(0x3d5)](0x1),d[_0x291ab2(0x3d1)](void 0x0));}['setParam'](_0x52be02,_0x4c8d43,_0x1f4fbc=!0x1){const _0x5d381b=_0x151a7c,_0xf56e1=new URL(window[_0x5d381b(0x274)][_0x5d381b(0x34b)]);_0xf56e1[_0x5d381b(0x37f)][_0x5d381b(0x2a4)](_0x52be02,_0x4c8d43),_0x1f4fbc?window[_0x5d381b(0x2ff)][_0x5d381b(0x305)]('','',_0xf56e1['toString']()):window[_0x5d381b(0x2ff)][_0x5d381b(0x25e)]('','',_0xf56e1[_0x5d381b(0x208)]());}[_0x151a7c(0x3c2)](_0x49b301,_0x3111fd=!0x1){const _0x235b60=_0x151a7c,_0x278253=new URL(window[_0x235b60(0x274)]['href']);_0x278253[_0x235b60(0x37f)][_0x235b60(0x23e)](_0x49b301),_0x3111fd?window[_0x235b60(0x2ff)][_0x235b60(0x305)]('','',_0x278253[_0x235b60(0x208)]()):window[_0x235b60(0x2ff)][_0x235b60(0x25e)]('','',_0x278253[_0x235b60(0x208)]());}['getParam'](_0xa2f79e){const _0x4cb578=_0x151a7c;var _0x34af2c;return(_0x34af2c=new URL(window[_0x4cb578(0x274)][_0x4cb578(0x34b)])[_0x4cb578(0x37f)][_0x4cb578(0x35b)](_0xa2f79e))!=null?_0x34af2c:void 0x0;}}var ts=Object[_0x151a7c(0x209)],ss=Object['getOwnPropertyDescriptor'],ns=(_0x49a86e,_0x4a6887,_0x449435)=>_0x4a6887 in _0x49a86e?ts(_0x49a86e,_0x4a6887,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x449435}):_0x49a86e[_0x4a6887]=_0x449435,is=(_0x288c90,_0x753819,_0xdc80d,_0x554c29)=>{const _0x38c93d=_0x151a7c;for(var _0x1df130=_0x554c29>0x1?void 0x0:_0x554c29?ss(_0x753819,_0xdc80d):_0x753819,_0x283e55=_0x288c90[_0x38c93d(0x3b3)]-0x1,_0x3395d7;_0x283e55>=0x0;_0x283e55--)(_0x3395d7=_0x288c90[_0x283e55])&&(_0x1df130=_0x3395d7(_0x1df130)||_0x1df130);return _0x1df130;},ue=(_0x1568f5,_0x544d61)=>(_0x3cada9,_0x1c8e1f)=>_0x544d61(_0x3cada9,_0x1c8e1f,_0x1568f5),rs=(_0x36d0a3,_0x245148,_0x172e2a)=>ns(_0x36d0a3,_0x245148+'',_0x172e2a);const os=_0x151a7c(0x2e2);exports['UniverCollaborationClientUIPlugin']=class extends a[_0x151a7c(0x24b)]{constructor(_0xdb98c2=Ne,_0x3b0b9e,_0x39dcda,_0x1a69fa){const _0xb2e978=_0x151a7c;super(),this[_0xb2e978(0x237)]=_0xdb98c2,this[_0xb2e978(0x3cd)]=_0x3b0b9e,this[_0xb2e978(0x388)]=_0x39dcda,this[_0xb2e978(0x3e4)]=_0x1a69fa;const {..._0x17f159}=a[_0xb2e978(0x22d)]({},Ne,this[_0xb2e978(0x237)]);this[_0xb2e978(0x3e4)][_0xb2e978(0x2d0)](Ft,_0x17f159);}[_0x151a7c(0x408)](){const _0x2e1ab9=_0x151a7c;this[_0x2e1ab9(0x32d)](),this[_0x2e1ab9(0x222)]();}[_0x151a7c(0x1a9)](){const _0x10bfac=_0x151a7c;this[_0x10bfac(0x1a0)]();}[_0x151a7c(0x32d)](){const _0x2b0740=_0x151a7c;var _0x2252bc;const _0x1492a9=[[Ce],[Q],[J],[Z],[pe],[Ee,{'useClass':Be}],[q[_0x2b0740(0x27d)],{'useClass':q[_0x2b0740(0x39c)]}],[u['ILocalCacheService'],{'useClass':me}],[exports[_0x2b0740(0x3b6)]],[ee],[z],[x],[fe],[exports['CollaborationDataLoaderController']]];a['registerDependencies'](this[_0x2b0740(0x388)],a['mergeOverrideWithDependencies'](_0x1492a9,(_0x2252bc=this[_0x2b0740(0x237)])==null?void 0x0:_0x2252bc['override']));}[_0x151a7c(0x1a0)](){const _0x21be4c=_0x151a7c;this[_0x21be4c(0x2f6)](this[_0x21be4c(0x3cd)][_0x21be4c(0x263)](a['UniverInstanceType'][_0x21be4c(0x378)],[ve])),this[_0x21be4c(0x2f6)](this[_0x21be4c(0x3cd)][_0x21be4c(0x263)](a[_0x21be4c(0x319)]['UNIVER_SHEET'],[ge]));}[_0x151a7c(0x222)](){const _0x51a896=_0x151a7c;a['touchDependencies'](this[_0x51a896(0x388)],[[x],[exports[_0x51a896(0x3b6)]],[ee],[z],[exports['CollaborationDataLoaderController']]]);}},rs(exports['UniverCollaborationClientUIPlugin'],_0x151a7c(0x2de),os),exports[_0x151a7c(0x364)]=is([a['DependentOn'](u[_0x151a7c(0x366)]),ue(0x1,p[_0x151a7c(0x40a)]),ue(0x2,a[_0x151a7c(0x2db)](a[_0x151a7c(0x34d)])),ue(0x3,a['IConfigService'])],exports[_0x151a7c(0x364)]);var as=Object[_0x151a7c(0x300)],cs=(_0x1346b9,_0x42ec4f,_0x14570a,_0x588cff)=>{for(var _0x581957=_0x588cff>0x1?void 0x0:_0x588cff?as(_0x42ec4f,_0x14570a):_0x42ec4f,_0x3b1bb1=_0x1346b9['length']-0x1,_0x27b504;_0x3b1bb1>=0x0;_0x3b1bb1--)(_0x27b504=_0x1346b9[_0x3b1bb1])&&(_0x581957=_0x27b504(_0x581957)||_0x581957);return _0x581957;},W=(_0x3ac5de,_0x1f6829)=>(_0x57141c,_0x5efadf)=>_0x1f6829(_0x57141c,_0x5efadf,_0x3ac5de);exports[_0x151a7c(0x34e)]=class extends u[_0x151a7c(0x35a)]{constructor(_0x1d7023,_0x545671,_0x59140f,_0x1560e9,_0x338dd5){super(_0x1d7023,_0x545671,_0x59140f,_0x1560e9,_0x338dd5);}async[_0x151a7c(0x1a2)](_0x507eb3){const _0x3e9992=_0x151a7c,_0x3faaf2=await this[_0x3e9992(0x401)](),_0xc8d0c0=this[_0x3e9992(0x2ea)](_0x507eb3,_0x3faaf2);return this[_0x3e9992(0x393)](_0xc8d0c0);}[_0x151a7c(0x2ea)](_0x4c8ff8,_0x41cddb){const _0x1708f4=_0x151a7c,_0x4c8586=typeof window>'u'?new URL(_0x4c8ff8):new URL(_0x4c8ff8,window[_0x1708f4(0x274)]['origin']);_0x4c8586['searchParams'][_0x1708f4(0x2a4)](_0x1708f4(0x2d6),_0x41cddb);const _0x570b48=typeof window>'u'?new URLSearchParams():new URLSearchParams(window[_0x1708f4(0x274)][_0x1708f4(0x413)]);return _0x570b48['get']('runId')&&_0x4c8586['searchParams'][_0x1708f4(0x2a4)](_0x1708f4(0x3b2),_0x570b48['get']('runId')),_0x4c8586[_0x1708f4(0x208)]();}async['_getSessionTicket'](){const _0x274cd6=_0x151a7c;var _0x338ccf,_0x51b43d,_0x1ec05e;const _0x361e3e=this['_configService'][_0x274cd6(0x198)](u[_0x274cd6(0x38c)]),_0x209f84=(_0x338ccf=_0x361e3e==null?void 0x0:_0x361e3e['wsSessionTicketUrl'])!=null?_0x338ccf:u[_0x274cd6(0x1c3)];return(_0x1ec05e=(_0x51b43d=(await this[_0x274cd6(0x19f)][_0x274cd6(0x35b)](_0x209f84,{'headers':{'Content-Type':_0x274cd6(0x2e0)}}))[_0x274cd6(0x275)])==null?void 0x0:_0x51b43d['ticket'])!=null?_0x1ec05e:'';}},exports[_0x151a7c(0x34e)]=cs([W(0x0,a[_0x151a7c(0x2db)](a[_0x151a7c(0x34d)])),W(0x1,a[_0x151a7c(0x2db)](q['HTTPService'])),W(0x2,a[_0x151a7c(0x2a9)]),W(0x3,a[_0x151a7c(0x1f7)]),W(0x4,m['ISnapshotServerService'])],exports[_0x151a7c(0x34e)]);const Le=0x7530,Pe='ACTIVE_UNIT_EVENT_CHANNEL';class ls extends a['Disposable']{constructor(){const _0x1bf179=_0x151a7c;super(),_(this,_0x1bf179(0x363),a[_0x1bf179(0x1a8)]()),_(this,_0x1bf179(0x2f0),new Set()),_(this,_0x1bf179(0x369),new Map()),_(this,_0x1bf179(0x22f),null),_(this,_0x1bf179(0x38b),new Map()),_(this,_0x1bf179(0x23b),new Map()),this['_init']();}[_0x151a7c(0x3a3)](){const _0x53e07a=_0x151a7c;super[_0x53e07a(0x3a3)](),this[_0x53e07a(0x38b)][_0x53e07a(0x2bd)]((_0x4d43d7,_0x3ae137)=>this[_0x53e07a(0x1a6)](_0x3ae137)),this[_0x53e07a(0x22f)]&&window[_0x53e07a(0x213)](this[_0x53e07a(0x22f)]);}[_0x151a7c(0x3b9)](_0x1495ec){const _0x39c588=_0x151a7c;return this[_0x39c588(0x3f7)](_0x1495ec)[_0x39c588(0x271)](d[_0x39c588(0x362)]());}[_0x151a7c(0x40b)](_0x2e1e89){const _0x3bdec9=_0x151a7c;this[_0x3bdec9(0x2f0)][_0x3bdec9(0x1e6)]===0x0&&this[_0x3bdec9(0x387)](),this['_selfUnitIDs'][_0x3bdec9(0x2ec)](_0x2e1e89),this['_send']({'type':0x0,'memberID':this['_id'],'unitIDs':[_0x2e1e89],'isForwarded':!0x1});}[_0x151a7c(0x22c)](_0x59ff09){const _0x1f1bd6=_0x151a7c;this['_selfUnitIDs'][_0x1f1bd6(0x23e)](_0x59ff09),this[_0x1f1bd6(0x2f0)][_0x1f1bd6(0x1e6)]===0x0&&this[_0x1f1bd6(0x22f)]&&window['clearInterval'](this[_0x1f1bd6(0x22f)]);}[_0x151a7c(0x1c8)](){const _0x649067=_0x151a7c;this[_0x649067(0x2f6)](a[_0x649067(0x2c0)](d[_0x649067(0x37c)](window,_0x649067(0x3c4))[_0x649067(0x22b)](_0x1222f0=>{const _0x4c4e55=_0x649067;if(_0x1222f0[_0x4c4e55(0x31f)]!==Pe||!_0x1222f0[_0x4c4e55(0x250)])return;const _0x40a0cb=JSON[_0x4c4e55(0x2b3)](_0x1222f0[_0x4c4e55(0x250)]);this[_0x4c4e55(0x2e5)](_0x40a0cb);}))),window[_0x649067(0x2b2)](_0x649067(0x2d9),()=>this[_0x649067(0x3f8)]({'type':0x1,'memberID':this[_0x649067(0x363)],'unitIDs':Array[_0x649067(0x38e)](this[_0x649067(0x2f0)])}));}['_handleEvent'](_0x5e44e2){const _0x4f75eb=_0x151a7c;switch(_0x5e44e2[_0x4f75eb(0x3fa)]){case 0x0:this[_0x4f75eb(0x29a)](_0x5e44e2);break;case 0x1:this[_0x4f75eb(0x29f)](_0x5e44e2);break;case 0x2:this[_0x4f75eb(0x3ec)](_0x5e44e2);break;}}[_0x151a7c(0x29a)](_0x2e632e){const _0x1358a7=_0x151a7c,{unitIDs:_0x14276d,memberID:_0x5df078,isForwarded:_0x4b787d}=_0x2e632e;_0x14276d[_0x1358a7(0x2bd)](_0x418044=>{const _0x3c52a2=_0x1358a7;if(!_0x4b787d&&this['_unitOnClients'][_0x3c52a2(0x3ff)](_0x418044)&&this[_0x3c52a2(0x3f7)](_0x418044)[_0x3c52a2(0x336)](u[_0x3c52a2(0x1bd)][_0x3c52a2(0x3ee)]),!this[_0x3c52a2(0x369)][_0x3c52a2(0x3ff)](_0x418044)||!this[_0x3c52a2(0x369)][_0x3c52a2(0x35b)](_0x418044)['has'](_0x5df078)){const _0x287241=this[_0x3c52a2(0x369)]['get'](_0x418044)||new Set();_0x287241['add'](_0x5df078),this[_0x3c52a2(0x369)][_0x3c52a2(0x2a4)](_0x418044,_0x287241),this[_0x3c52a2(0x227)](_0x5df078);}}),_0x4b787d||this['_send']({'type':0x0,'memberID':this[_0x1358a7(0x363)],'unitIDs':[...this[_0x1358a7(0x2f0)]],'isForwarded':!0x0});}[_0x151a7c(0x227)](_0x3bf4de){const _0x5e6196=_0x151a7c;this['_removeClearOtherTimer'](_0x3bf4de);const _0x38feac=window[_0x5e6196(0x236)](()=>{const _0x197f95=_0x5e6196;this[_0x197f95(0x369)][_0x197f95(0x2bd)](_0x250999=>{const _0x49c0fd=_0x197f95;_0x250999[_0x49c0fd(0x23e)](_0x3bf4de);});},Le*0x2);this[_0x5e6196(0x38b)][_0x5e6196(0x2a4)](_0x3bf4de,_0x38feac);}[_0x151a7c(0x1a6)](_0x886221){const _0x5b2103=_0x151a7c;if(this[_0x5b2103(0x38b)][_0x5b2103(0x3ff)](_0x886221)){const _0x4dbf06=this[_0x5b2103(0x38b)][_0x5b2103(0x35b)](_0x886221);_0x4dbf06&&window[_0x5b2103(0x2e7)](_0x4dbf06),this['_clearOtherTimers'][_0x5b2103(0x2a4)](_0x886221,null);}}[_0x151a7c(0x29f)](_0x322d1e){const _0x1f4a68=_0x151a7c,{memberID:_0x1a07cd,unitIDs:_0x231a3a}=_0x322d1e;_0x231a3a['forEach'](_0x1a7e86=>{const _0x26d8d5=_0x2459;var _0xac7b09;const _0x39401a=this['_unitOnClients'][_0x26d8d5(0x35b)](_0x1a7e86);_0x39401a&&(_0x39401a[_0x26d8d5(0x23e)](_0x1a07cd),(_0xac7b09=this[_0x26d8d5(0x3f7)](_0x1a7e86))==null||_0xac7b09['next'](_0x39401a[_0x26d8d5(0x1e6)]===0x0?u['UnitStatus'][_0x26d8d5(0x30b)]:u[_0x26d8d5(0x1bd)]['OTHER_CLIENTS_EDITING']));}),this[_0x1f4a68(0x1a6)](_0x1a07cd);}[_0x151a7c(0x3ec)](_0x18ce84){const _0x491ce3=_0x151a7c;this['_scheduleClearOtherTimer'](_0x18ce84[_0x491ce3(0x1e3)]);}[_0x151a7c(0x3f8)](_0x29415e){const _0x2f2572=_0x151a7c;localStorage[_0x2f2572(0x2bc)](Pe,JSON[_0x2f2572(0x3fb)](_0x29415e));}[_0x151a7c(0x387)](){const _0x2acaf0=_0x151a7c;this[_0x2acaf0(0x22f)]=window[_0x2acaf0(0x2b0)](()=>{this['_send']({'type':0x2,'memberID':this['_id']});},Le);}[_0x151a7c(0x3f7)](_0x5579c4){const _0x1d74a2=_0x151a7c;return this[_0x1d74a2(0x23b)][_0x1d74a2(0x3ff)](_0x5579c4)||this['_unitStatus']['set'](_0x5579c4,new d[(_0x1d74a2(0x1dd))](u['UnitStatus'][_0x1d74a2(0x30b)])),this[_0x1d74a2(0x23b)]['get'](_0x5579c4);}}var ke=(_0x32ffd0=>(_0x32ffd0[_0x32ffd0[_0x151a7c(0x2a6)]=0x0]='UNDEFINED',_0x32ffd0[_0x32ffd0['OK']=0x1]='OK',_0x32ffd0[_0x32ffd0[_0x151a7c(0x235)]=0x2]=_0x151a7c(0x235),_0x32ffd0[_0x32ffd0[_0x151a7c(0x32a)]=0x3]=_0x151a7c(0x32a),_0x32ffd0[_0x32ffd0['NOT_FOUND']=0x4]=_0x151a7c(0x278),_0x32ffd0[_0x32ffd0[_0x151a7c(0x33b)]=0x5]=_0x151a7c(0x33b),_0x32ffd0[_0x32ffd0[_0x151a7c(0x2b7)]=0x6]='ALREADY_EXISTS',_0x32ffd0[_0x32ffd0[_0x151a7c(0x40c)]=0x7]=_0x151a7c(0x40c),_0x32ffd0[_0x32ffd0['TOO_MANY_REQUESTS']=0x8]='TOO_MANY_REQUESTS',_0x32ffd0[_0x32ffd0[_0x151a7c(0x204)]=0x9]=_0x151a7c(0x204),_0x32ffd0[_0x32ffd0['LOGIN_FAILED']=0xa]=_0x151a7c(0x24e),_0x32ffd0[_0x32ffd0[_0x151a7c(0x1fe)]=0x1389]=_0x151a7c(0x1fe),_0x32ffd0[_0x32ffd0['SNAPSHOT_INVALID_SNAPSHOT']=0x1771]=_0x151a7c(0x1c4),_0x32ffd0[_0x32ffd0['SNAPSHOT_HAS_BEEN_REMOVED']=0x1772]=_0x151a7c(0x3a7),_0x32ffd0[_0x32ffd0[_0x151a7c(0x306)]=0x1773]='ENSURE_SNAPSHOT_EXECUTION',_0x32ffd0[_0x32ffd0[_0x151a7c(0x1ad)]=0x1b59]=_0x151a7c(0x1ad),_0x32ffd0[_0x32ffd0[_0x151a7c(0x254)]=0x1b5a]=_0x151a7c(0x254),_0x32ffd0[_0x32ffd0[_0x151a7c(0x243)]=0x1b5b]=_0x151a7c(0x243),_0x32ffd0[_0x32ffd0[_0x151a7c(0x1fd)]=0x1b5c]=_0x151a7c(0x1fd),_0x32ffd0[_0x32ffd0[_0x151a7c(0x240)]=0x1b5d]=_0x151a7c(0x240),_0x32ffd0[_0x32ffd0[_0x151a7c(0x1f8)]=0x1f41]=_0x151a7c(0x1f8),_0x32ffd0[_0x32ffd0['LICENSE_MAX_UNITS_EXCEEDED']=0x2329]=_0x151a7c(0x2c9),_0x32ffd0[_0x32ffd0[_0x151a7c(0x3d2)]=0x232a]=_0x151a7c(0x3d2),_0x32ffd0[_0x32ffd0[_0x151a7c(0x3a8)]=0x232b]='LICENSE_IMPORT_SIZE_EXCEEDED',_0x32ffd0[_0x32ffd0[_0x151a7c(0x3e9)]=0x232c]=_0x151a7c(0x3e9),_0x32ffd0[_0x32ffd0[_0x151a7c(0x34f)]=0x232d]=_0x151a7c(0x34f),_0x32ffd0[_0x32ffd0[_0x151a7c(0x19c)]=0x2711]=_0x151a7c(0x19c),_0x32ffd0[_0x32ffd0['YUUMI_URL_COL_OUT_OF_RANGE']=0x2712]=_0x151a7c(0x212),_0x32ffd0[_0x32ffd0[_0x151a7c(0x3e3)]=0x2713]=_0x151a7c(0x3e3),_0x32ffd0[_0x32ffd0['YUUMI_SUBSCRIPTION_NOT_FOUND']=0x2714]=_0x151a7c(0x2c1),_0x32ffd0[_0x32ffd0[_0x151a7c(0x347)]=0x271a]=_0x151a7c(0x347),_0x32ffd0[_0x32ffd0[_0x151a7c(0x34a)]=0x271b]=_0x151a7c(0x34a),_0x32ffd0[_0x32ffd0[_0x151a7c(0x1f3)]=0x2af9]=_0x151a7c(0x1f3),_0x32ffd0[_0x32ffd0[_0x151a7c(0x29c)]=0x2ee1]=_0x151a7c(0x29c),_0x32ffd0[_0x32ffd0[_0x151a7c(0x251)]=0x2ee2]=_0x151a7c(0x251),_0x32ffd0[_0x32ffd0['INVITE_CODE_REQUIRED']=0x2ee3]=_0x151a7c(0x22a),_0x32ffd0[_0x32ffd0[_0x151a7c(0x2fe)]=0x2ee4]='USER_NOT_INVITED_CODE',_0x32ffd0[_0x32ffd0['INVITE_CODE_ALREADY_BOUND']=0x2ee5]=_0x151a7c(0x269),_0x32ffd0[_0x32ffd0[_0x151a7c(0x28f)]=0x32c9]=_0x151a7c(0x28f),_0x32ffd0[_0x32ffd0['MOBILE_HAS_BEEN_BOUND']=0x32ca]=_0x151a7c(0x2be),_0x32ffd0[_0x32ffd0[_0x151a7c(0x28b)]=0x32cb]=_0x151a7c(0x28b),_0x32ffd0[_0x32ffd0[_0x151a7c(0x2f8)]=-0x1]='UNRECOGNIZED',_0x32ffd0))(ke||{}),_s=Object[_0x151a7c(0x300)],hs=(_0x39d4a0,_0xb4e74d,_0x4f0400,_0x44450b)=>{const _0x413403=_0x151a7c;for(var _0x13bfd6=_0x44450b>0x1?void 0x0:_0x44450b?_s(_0xb4e74d,_0x4f0400):_0xb4e74d,_0x17a785=_0x39d4a0[_0x413403(0x3b3)]-0x1,_0x4cb13f;_0x17a785>=0x0;_0x17a785--)(_0x4cb13f=_0x39d4a0[_0x17a785])&&(_0x13bfd6=_0x4cb13f(_0x13bfd6)||_0x13bfd6);return _0x13bfd6;},de=(_0x298000,_0x33b490)=>(_0x16b777,_0x44109d)=>_0x33b490(_0x16b777,_0x44109d,_0x298000);exports['RemoteUniscriptService']=class extends a['Disposable']{constructor(_0x3edd54,_0x1a7fec,_0x18d04d){const _0xfb0e03=_0x151a7c;super(),this[_0xfb0e03(0x405)]=_0x3edd54,this[_0xfb0e03(0x19f)]=_0x1a7fec,this['_configService']=_0x18d04d;}async[_0x151a7c(0x279)](_0x187e95,_0x1b37b5,_0x25df05,..._0xc5cfac){const _0x3bb337=_0x151a7c;var _0x2361cf,_0x1936a0,_0x29c2a6,_0x36eb7c;const _0x437802=this[_0x3bb337(0x405)][_0x3bb337(0x34c)]();if(!_0x437802)throw new Error('[RemoteUniscriptService]:\x20no\x20focused\x20unit');const _0x596703=((_0x2361cf=this[_0x3bb337(0x3e4)]['getConfig'](u[_0x3bb337(0x266)]))!=null?_0x2361cf:u[_0x3bb337(0x20b)])+'/'+_0x187e95+'/run/'+_0x1b37b5,_0x1974d0=new URL(window[_0x3bb337(0x274)][_0x3bb337(0x34b)]),_0x1f6b43={'scriptId':_0x187e95,'runId':(_0x1936a0=_0x1974d0['searchParams'][_0x3bb337(0x35b)](_0x3bb337(0x3b2)))!=null?_0x1936a0:'','function':_0x1b37b5,'unitId':_0x437802[_0x3bb337(0x27f)](),'argsOfFunction':JSON[_0x3bb337(0x3fb)](_0xc5cfac),'invokeId':(_0x29c2a6=_0x25df05[_0x3bb337(0x1db)])!=null?_0x29c2a6:'','executionId':(_0x36eb7c=_0x25df05[_0x3bb337(0x2fc)])!=null?_0x36eb7c:''};try{const _0xd4da7=await this['_httpService']['post'](_0x596703,{'body':_0x1f6b43});return _0xd4da7[_0x3bb337(0x275)][_0x3bb337(0x389)]&&_0xd4da7[_0x3bb337(0x275)][_0x3bb337(0x389)][_0x3bb337(0x352)]!==ke['OK']?'Failed':_0xd4da7[_0x3bb337(0x275)][_0x3bb337(0x29e)];}catch{return _0x3bb337(0x3c8);}}},exports['RemoteUniscriptService']=hs([de(0x0,a[_0x151a7c(0x1e8)]),de(0x1,a['Inject'](q[_0x151a7c(0x3b1)])),de(0x2,a[_0x151a7c(0x2a9)])],exports['RemoteUniscriptService']),exports[_0x151a7c(0x38a)]=je,exports[_0x151a7c(0x265)]=Ee,exports[_0x151a7c(0x2e6)]=Ae,exports[_0x151a7c(0x3e1)]=ls,exports[_0x151a7c(0x1a4)]=Be;
|
|
1
|
+
'use strict';const _0x49483b=_0x6961;(function(_0x4eacd5,_0xe3994){const _0x398218=_0x6961,_0x2d83e0=_0x4eacd5();while(!![]){try{const _0x306922=-parseInt(_0x398218(0x30c))/0x1*(parseInt(_0x398218(0x2f0))/0x2)+-parseInt(_0x398218(0x1c1))/0x3+-parseInt(_0x398218(0x2f4))/0x4*(parseInt(_0x398218(0x126))/0x5)+-parseInt(_0x398218(0x34a))/0x6+parseInt(_0x398218(0x18b))/0x7+parseInt(_0x398218(0x365))/0x8+-parseInt(_0x398218(0x2d2))/0x9*(-parseInt(_0x398218(0x393))/0xa);if(_0x306922===_0xe3994)break;else _0x2d83e0['push'](_0x2d83e0['shift']());}catch(_0x491f91){_0x2d83e0['push'](_0x2d83e0['shift']());}}}(_0x2197,0xed854));var Xe=Object['defineProperty'],Ge=(_0xac3fd1,_0x135096,_0x293362)=>_0x135096 in _0xac3fd1?Xe(_0xac3fd1,_0x135096,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x293362}):_0xac3fd1[_0x135096]=_0x293362,_=(_0x587ab8,_0x1ac244,_0x595e3f)=>Ge(_0x587ab8,typeof _0x1ac244!=_0x49483b(0x287)?_0x1ac244+'':_0x1ac244,_0x595e3f);Object[_0x49483b(0x13a)](exports,Symbol['toStringTag'],{'value':_0x49483b(0x244)});const u=require('@univerjs-pro/collaboration-client'),a=require('@univerjs/core'),p=require(_0x49483b(0x26f)),q=require(_0x49483b(0x257)),b=require(_0x49483b(0x235)),qe=require(_0x49483b(0x359)),d=require('rxjs'),Y=require(_0x49483b(0x1a0)),m=require(_0x49483b(0x2fc)),Te=require(_0x49483b(0x242)),g=require(_0x49483b(0x270)),$=require(_0x49483b(0x1ca)),G=require(_0x49483b(0x14f)),P=require('react/jsx-runtime'),O=require(_0x49483b(0x247)),T=require(_0x49483b(0x321)),M=require('react'),Ke=require(_0x49483b(0x266));var ze=Object[_0x49483b(0x16b)],Je=(_0x44a0e2,_0x38eae2,_0x21cdc4,_0x507d9b)=>{const _0x1b71b0=_0x49483b;for(var _0x266fff=_0x507d9b>0x1?void 0x0:_0x507d9b?ze(_0x38eae2,_0x21cdc4):_0x38eae2,_0x4ae0ee=_0x44a0e2[_0x1b71b0(0x22f)]-0x1,_0x2d6448;_0x4ae0ee>=0x0;_0x4ae0ee--)(_0x2d6448=_0x44a0e2[_0x4ae0ee])&&(_0x266fff=_0x2d6448(_0x266fff)||_0x266fff);return _0x266fff;},Oe=(_0x1291f2,_0x1004d5)=>(_0x1ed5b2,_0x456201)=>_0x1004d5(_0x1ed5b2,_0x456201,_0x1291f2);let fe=class extends a[_0x49483b(0x17a)]{constructor(_0x185abd,_0x2238d6){const _0x1f42cb=_0x49483b;super(),this[_0x1f42cb(0x37a)]=_0x185abd,this[_0x1f42cb(0x181)]=_0x2238d6,this[_0x1f42cb(0x31c)]();}[_0x49483b(0x31c)](){const _0x513bb3=_0x49483b,_0x5d4e10=this;this[_0x513bb3(0x200)](this[_0x513bb3(0x37a)][_0x513bb3(0x240)]({'onBeforePasteImage':async _0x4d3326=>{const _0x498d5b=_0x513bb3,_0x4a010d=await _0x5d4e10[_0x498d5b(0x181)][_0x498d5b(0x236)](_0x4d3326);return _0x4a010d?{'source':_0x4a010d['source'],'imageSourceType':_0x4a010d['imageSourceType']}:null;}}));}};fe=Je([Oe(0x0,b[_0x49483b(0x121)]),Oe(0x1,qe[_0x49483b(0x1d5)])],fe);const Re=[_0x49483b(0x339),_0x49483b(0x192),_0x49483b(0x379),_0x49483b(0x1ee),'blue400',_0x49483b(0x281)];class Ce extends a[_0x49483b(0x2b2)]{constructor(){const _0x275f11=_0x49483b;super(...arguments),_(this,_0x275f11(0x1e4),new Map()),_(this,_0x275f11(0x2d8),0x0);}['assignAColorForMemberID'](_0x1b9c47){const _0x26bd0c=_0x49483b;if(this[_0x26bd0c(0x1e4)]['has'](_0x1b9c47))return this[_0x26bd0c(0x1e4)][_0x26bd0c(0x1bd)](_0x1b9c47);const _0x383477=Re[this[_0x26bd0c(0x2d8)]];return this[_0x26bd0c(0x2d8)]=(this[_0x26bd0c(0x2d8)]+0x1)%Re[_0x26bd0c(0x22f)],this[_0x26bd0c(0x1e4)]['set'](_0x1b9c47,_0x383477),_0x383477;}}function we(_0x36f9ec){const _0x3a8444=_0x49483b;let _0x599aab='';for(const _0x265789 of _0x36f9ec){const {startOffset:_0x4818cf,endOffset:_0x292f75,isActive:_0x48cd23,rangeType:_0x49c431,segmentId:_0x347043,segmentPage:_0xa3d51f}=_0x265789;_0x599aab[_0x3a8444(0x22f)]&&(_0x599aab+=','),_0x599aab+=_0x4818cf+':'+_0x292f75+':'+(_0x48cd23?'1':'0')+':'+_0x49c431+':'+_0x347043+':'+_0xa3d51f;}return _0x599aab;}function Ze(_0x3f6f0a){const _0x16f54e=_0x49483b,_0x206249=_0x3f6f0a[_0x16f54e(0x2e7)](','),_0xb1b65d=[];for(const _0x1d89a0 of _0x206249){const [_0xe804d,_0x4bfd2c,_0x2e3147,_0x3cdb7c,_0x55295a,_0x256076]=_0x1d89a0[_0x16f54e(0x2e7)](':');_0xb1b65d['push']({'startOffset':Number(_0xe804d),'endOffset':Number(_0x4bfd2c),'collapsed':_0xe804d===_0x4bfd2c,'isActive':_0x2e3147==='1','rangeType':_0x3cdb7c===a[_0x16f54e(0x292)][_0x16f54e(0x2c1)]?a['DOC_RANGE_TYPE']['TEXT']:a['DOC_RANGE_TYPE'][_0x16f54e(0x1b7)],'segmentId':typeof _0x55295a==_0x16f54e(0x21d)?String(_0x55295a):'','segmentPage':Number(_0x256076!=null?_0x256076:-0x1)});}return _0xb1b65d['some'](_0x4f1519=>_0x4f1519[_0x16f54e(0x320)])||(_0xb1b65d[0x0][_0x16f54e(0x320)]=!0x0),_0xb1b65d;}class pe extends a[_0x49483b(0x17a)]{constructor(){const _0x399b72=_0x49483b;super(...arguments),_(this,_0x399b72(0x33c),new d[(_0x399b72(0x33f))](null)),_(this,_0x399b72(0x2b4),this[_0x399b72(0x33c)]['asObservable']());}[_0x49483b(0x344)](_0x443698){const _0x2ab609=_0x49483b,{unitID:_0x241263,memberID:_0x70dc72,textRanges:_0x327daa}=_0x443698,_0x1af129=we(_0x327daa);if(_0x1af129==='')return;const _0x4c0dda={'unitID':_0x241263,'memberID':_0x70dc72,'selection':_0x1af129};this[_0x2ab609(0x33c)][_0x2ab609(0x160)](_0x4c0dda);}}var Qe=Object[_0x49483b(0x16b)],et=(_0x5e56b1,_0x2aa3ac,_0x1d9ddf,_0x974b95)=>{const _0x279f5f=_0x49483b;for(var _0x7a6be1=_0x974b95>0x1?void 0x0:_0x974b95?Qe(_0x2aa3ac,_0x1d9ddf):_0x2aa3ac,_0x1d99fa=_0x5e56b1[_0x279f5f(0x22f)]-0x1,_0x512c05;_0x1d99fa>=0x0;_0x1d99fa--)(_0x512c05=_0x5e56b1[_0x1d99fa])&&(_0x7a6be1=_0x512c05(_0x7a6be1)||_0x7a6be1);return _0x7a6be1;},L=(_0x4386ef,_0x1047f8)=>(_0x5935a6,_0xdaa6c6)=>_0x1047f8(_0x5935a6,_0xdaa6c6,_0x4386ef);const tt=0x12c,st=0x64;let Se=class extends a[_0x49483b(0x17a)]{constructor(_0x304efa,_0x13b108,_0x1d7954,_0x21d6e0,_0x591223,_0x35ba9b,_0x173aef,_0xe6175c,_0x183dbd){const _0x164863=_0x49483b;super(),_(this,'_online',!0x1),_(this,_0x164863(0x31c),!0x1),_(this,_0x164863(0x387),new d[(_0x164863(0x33f))](new Map())),_(this,'cursorInfo$',this[_0x164863(0x387)][_0x164863(0x332)]()),_(this,_0x164863(0x32f),new d[(_0x164863(0x33f))]([])),_(this,_0x164863(0x1d4),this[_0x164863(0x32f)][_0x164863(0x2dc)](d[_0x164863(0x29f)](tt))),_(this,_0x164863(0x11c),a[_0x164863(0x1e9)](_0x3a9d04=>{const _0x293a89=_0x164863,_0x3b9903={'eventID':m[_0x293a89(0x20b)][_0x293a89(0x326)],'data':{'unitID':this[_0x293a89(0x115)],'memberID':this[_0x293a89(0x1e2)]['getMemberID'](),'selection':we(_0x3a9d04)}};this[_0x293a89(0x1e2)][_0x293a89(0x1cb)](_0x3b9903,this[_0x293a89(0x115)]);},st)),(this[_0x164863(0x115)]=_0x304efa,this[_0x164863(0x1e2)]=_0x13b108,this[_0x164863(0x34e)]=_0x1d7954,this['_colorAssignService']=_0x21d6e0,this[_0x164863(0x113)]=_0x591223,this[_0x164863(0x333)]=_0x35ba9b,this[_0x164863(0x1b3)]=_0x173aef,this['_univerInstanceService']=_0xe6175c,this[_0x164863(0x347)]=_0x183dbd);}get[_0x49483b(0x2df)](){const _0x498291=_0x49483b;return this[_0x498291(0x387)][_0x498291(0x28c)]();}get[_0x49483b(0x1cd)](){const _0xf52723=_0x49483b;return this[_0xf52723(0x32f)][_0xf52723(0x28c)]();}['dispose'](){const _0x1d682c=_0x49483b;super[_0x1d682c(0x202)](),this[_0x1d682c(0x387)]['next'](new Map()),this['_cursorInfo$'][_0x1d682c(0x260)](),this[_0x1d682c(0x32f)][_0x1d682c(0x160)]([]),this[_0x1d682c(0x32f)][_0x1d682c(0x260)]();}[_0x49483b(0x378)](){const _0x45b992=_0x49483b;this[_0x45b992(0x31c)]||(this[_0x45b992(0x31c)]=!0x0,this['_session'][_0x45b992(0x23b)][_0x45b992(0x2dc)](d[_0x45b992(0x272)](this[_0x45b992(0x2cb)]))[_0x45b992(0x175)](_0x46bd21=>{const _0x1d01c7=_0x45b992;_0x46bd21===u[_0x1d01c7(0x1ce)][_0x1d01c7(0x21a)]?this['_toggleOnline']():this[_0x1d01c7(0x1ab)]();}),this[_0x45b992(0x1e2)][_0x45b992(0x12b)][_0x45b992(0x2dc)](d[_0x45b992(0x272)](this[_0x45b992(0x2cb)]))['subscribe'](_0x1d3d4b=>{const _0x4026d8=_0x45b992,_0x5e6915=_0x1d3d4b[_0x4026d8(0x12e)];_0x5e6915===m['CollaborationEvent']['UPDATE_CURSOR']&&this['_onCursorUpdate'](_0x1d3d4b),_0x5e6915===m[_0x4026d8(0x20b)][_0x4026d8(0x2bf)]&&this['_onCursorDelete'](_0x1d3d4b);}),this['disposeWithMe'](this[_0x45b992(0x347)][_0x45b992(0x140)](_0x22f33b=>{const _0x534d3f=_0x45b992,_0x4aee81=_0x22f33b[_0x534d3f(0x151)];_0x4aee81!=null&&this[_0x534d3f(0x127)]&&_0x22f33b['id']===Y[_0x534d3f(0x243)]['id']&&_0x4aee81[_0x534d3f(0x31e)]===this[_0x534d3f(0x115)]&&_0x4aee81['isEditing']===!0x1&&_0x4aee81[_0x534d3f(0x147)][_0x534d3f(0x22f)]>0x0&&this['_updateLocalCursor'](_0x4aee81[_0x534d3f(0x147)]);})),this[_0x45b992(0x333)][_0x45b992(0x2b4)][_0x45b992(0x2dc)](d[_0x45b992(0x272)](this[_0x45b992(0x2cb)]))['subscribe'](_0x4ada9a=>{const _0x1eea62=_0x45b992;if((_0x4ada9a==null?void 0x0:_0x4ada9a['unitID'])!==this['unitID'])return;const _0x3dcc11={'eventID':m['CollaborationEvent']['UPDATE_CURSOR'],'data':_0x4ada9a};this[_0x1eea62(0x2b9)](_0x3dcc11);}),this[_0x45b992(0x200)](this[_0x45b992(0x347)][_0x45b992(0x140)](_0x27a19f=>{const _0x3f8488=_0x45b992;if(_0x27a19f[_0x3f8488(0x151)]==null)return;const _0x5d21c0=_0x27a19f['params'];if(_0x27a19f['id']!==Y[_0x3f8488(0x1ba)]['id']||_0x5d21c0[_0x3f8488(0x31e)]!==this[_0x3f8488(0x115)])return;const _0xd27f7d={'id':_0x3f8488(0x146),'params':_0x5d21c0},_0x5a551e=this[_0x3f8488(0x2df)];for(const [_0x4df2c3,_0x32a841]of _0x5a551e){const _0x3f377b={'id':_0x3f8488(0x146),'params':{'unitId':this['unitID'],'actions':null,'textRanges':_0x32a841[_0x3f8488(0x147)]}},_0x39ea97=this[_0x3f8488(0x1b3)][_0x3f8488(0x2ac)](_0xd27f7d,_0x3f377b,!0x1);if(m[_0x3f8488(0x224)](_0x39ea97))throw _0x39ea97[_0x3f8488(0x20e)];_0x5a551e[_0x3f8488(0x25c)](_0x4df2c3,{..._0x32a841,'ranges':_0x39ea97[_0x3f8488(0x1ed)][_0x3f8488(0x151)][_0x3f8488(0x1bc)]});}queueMicrotask(()=>{const _0x47f1b2=_0x3f8488;this[_0x47f1b2(0x387)][_0x47f1b2(0x160)](_0x5a551e);});})));}[_0x49483b(0x2b9)](_0x3461ab){const _0x44d012=_0x49483b;var _0x2b3cfc,_0x451be8;const {memberID:_0x2f40fb,selection:_0x4dc13c}=_0x3461ab[_0x44d012(0x14e)],_0x19886f=Ze(_0x4dc13c),_0x42a1ae=(_0x451be8=(_0x2b3cfc=this['_memberService'][_0x44d012(0x125)](this[_0x44d012(0x115)],_0x2f40fb))==null?void 0x0:_0x2b3cfc[_0x44d012(0x132)])!=null?_0x451be8:_0x44d012(0x375),_0x200feb={'color':this[_0x44d012(0x307)]['assignAColorForMemberID'](_0x2f40fb),'name':_0x42a1ae,'ranges':_0x19886f},_0x2026b9=this[_0x44d012(0x2df)];_0x2026b9[_0x44d012(0x25c)](_0x2f40fb,_0x200feb),this['_cursorInfo$'][_0x44d012(0x160)](_0x2026b9);}['_onCursorDelete'](_0x1bf2cd){const _0x3bbc46=_0x49483b,{memberID:_0x231183}=_0x1bf2cd[_0x3bbc46(0x14e)],_0x3a8f76=this['cursorInfo'];_0x3a8f76[_0x3bbc46(0x334)](_0x231183),this[_0x3bbc46(0x387)][_0x3bbc46(0x160)](_0x3a8f76);}[_0x49483b(0x164)](){const _0xd3cf26=_0x49483b;var _0x5ed2b9;if(this[_0xd3cf26(0x127)]=!0x0,((_0x5ed2b9=this[_0xd3cf26(0x145)][_0xd3cf26(0x362)]())==null?void 0x0:_0x5ed2b9[_0xd3cf26(0x18c)]())!==this[_0xd3cf26(0x115)])return;const _0x49a47a=this[_0xd3cf26(0x34e)]['get'](Y[_0xd3cf26(0x2a2)])[_0xd3cf26(0x133)]();Array['isArray'](_0x49a47a)&&_0x49a47a[_0xd3cf26(0x22f)]>0x0&&this[_0xd3cf26(0x11c)](_0x49a47a);}[_0x49483b(0x1ab)](){this['_online']=!0x1;}};Se=et([L(0x2,a[_0x49483b(0x199)](a[_0x49483b(0x1ef)])),L(0x3,a[_0x49483b(0x199)](Ce)),L(0x4,a[_0x49483b(0x199)](u[_0x49483b(0x2a8)])),L(0x5,a[_0x49483b(0x199)](pe)),L(0x6,m[_0x49483b(0x372)]),L(0x7,a['IUniverInstanceService']),L(0x8,a[_0x49483b(0x2fb)])],Se);var nt=Object['getOwnPropertyDescriptor'],it=(_0x471a8e,_0x59c0bf,_0x301f35,_0x113209)=>{for(var _0x54d8b0=_0x113209>0x1?void 0x0:_0x113209?nt(_0x59c0bf,_0x301f35):_0x59c0bf,_0x157854=_0x471a8e['length']-0x1,_0x953033;_0x157854>=0x0;_0x157854--)(_0x953033=_0x471a8e[_0x157854])&&(_0x54d8b0=_0x953033(_0x54d8b0)||_0x54d8b0);return _0x54d8b0;},A=(_0x2f24b8,_0x23eceb)=>(_0x14f5fd,_0x487573)=>_0x23eceb(_0x14f5fd,_0x487573,_0x2f24b8);const rt=0x12c,ot=0x64,at=()=>{let _0x1ef2b7=[],_0x581fad=!0x1;return _0x55f1ec=>{const _0x3d924b=_0x6961;_0x1ef2b7[_0x3d924b(0x119)](_0x55f1ec),_0x581fad||(_0x581fad=!0x0,setTimeout(()=>{_0x1ef2b7['forEach'](_0x51da86=>_0x51da86()),_0x1ef2b7=[],_0x581fad=!0x1;}));};};let Ie=class extends a['RxDisposable']{constructor(_0xc4e646,_0x361715,_0x4f249e,_0x5d05b9,_0x3679a8,_0x567ed0,_0x15cba2,_0x48d72a){const _0x3abeb4=_0x49483b;super(),_(this,'_online',!0x1),_(this,_0x3abeb4(0x31c),!0x1),_(this,'_cursorInfo$',new d[(_0x3abeb4(0x33f))](new Map())),_(this,_0x3abeb4(0x168),this[_0x3abeb4(0x387)][_0x3abeb4(0x332)]()),_(this,_0x3abeb4(0x32f),new d['BehaviorSubject']([])),_(this,_0x3abeb4(0x1d4),this['_roomMembers$']['pipe'](d[_0x3abeb4(0x29f)](rt))),_(this,_0x3abeb4(0x11c),a['debounce']((_0x1fdb70,_0x256e8e)=>{const _0x2fe2b6=_0x3abeb4,_0x50811f={'eventID':m[_0x2fe2b6(0x20b)][_0x2fe2b6(0x326)],'data':{'unitID':this[_0x2fe2b6(0x115)],'memberID':this[_0x2fe2b6(0x1e2)]['getMemberID'](),'selection':Te[_0x2fe2b6(0x251)](_0x1fdb70,_0x256e8e[_0x2fe2b6(0x24d)])}};this[_0x2fe2b6(0x1e2)]['send'](_0x50811f,this[_0x2fe2b6(0x115)]);},ot)),(this[_0x3abeb4(0x115)]=_0xc4e646,this['_session']=_0x361715,this[_0x3abeb4(0x34e)]=_0x4f249e,this[_0x3abeb4(0x307)]=_0x5d05b9,this['_memberService']=_0x3679a8,this[_0x3abeb4(0x145)]=_0x567ed0,this['_commandService']=_0x15cba2,this[_0x3abeb4(0x28f)]=_0x48d72a);}get[_0x49483b(0x2df)](){const _0x4d0a45=_0x49483b;return this[_0x4d0a45(0x387)]['getValue']();}get['roomMembers'](){const _0x54e068=_0x49483b;return this['_roomMembers$'][_0x54e068(0x28c)]();}['dispose'](){const _0x41bbb7=_0x49483b;super[_0x41bbb7(0x202)](),this[_0x41bbb7(0x387)]['next'](new Map()),this[_0x41bbb7(0x387)][_0x41bbb7(0x260)](),this[_0x41bbb7(0x32f)][_0x41bbb7(0x160)]([]),this[_0x41bbb7(0x32f)]['complete']();}[_0x49483b(0x378)](){const _0x26a01f=_0x49483b;this['_init']||(this[_0x26a01f(0x31c)]=!0x0,this[_0x26a01f(0x1e2)]['sessionStatus$'][_0x26a01f(0x2dc)](d['takeUntil'](this[_0x26a01f(0x2cb)]))['subscribe'](_0x2811d3=>{const _0x160a65=_0x26a01f;_0x2811d3===u[_0x160a65(0x1ce)][_0x160a65(0x21a)]?this[_0x160a65(0x164)]():this[_0x160a65(0x1ab)]();}),this[_0x26a01f(0x1e2)][_0x26a01f(0x12b)][_0x26a01f(0x2dc)](d[_0x26a01f(0x272)](this['dispose$']))[_0x26a01f(0x175)](_0x48d8cb=>{const _0x228b07=_0x26a01f,_0x54b198=_0x48d8cb['eventID'];_0x54b198===m[_0x228b07(0x20b)]['UPDATE_CURSOR']&&this[_0x228b07(0x2b9)](_0x48d8cb),_0x54b198===m['CollaborationEvent'][_0x228b07(0x2bf)]&&this[_0x228b07(0x2ee)](_0x48d8cb);}),this[_0x26a01f(0x304)](),this[_0x26a01f(0x200)](this[_0x26a01f(0x347)][_0x26a01f(0x140)](_0x4ef0bc=>{const _0x590348=_0x26a01f;if(this[_0x590348(0x127)]&&_0x4ef0bc['id']===g[_0x590348(0x245)]['id']&&_0x4ef0bc[_0x590348(0x151)]['unitId']===this[_0x590348(0x115)]){const _0x98bb85=_0x4ef0bc['params'];this[_0x590348(0x11c)](_0x98bb85[_0x590348(0x2d9)],_0x98bb85[_0x590348(0x29b)][0x0]);}})));}['_onCursorUpdate'](_0x49b55c){const _0x4bd521=_0x49483b;var _0x52e2fa,_0xdaa9a8;const {memberID:_0x517a32,selection:_0x268add}=_0x49b55c['data'],{sheetName:_0x3e2541,range:_0x28a1f9}=Te['deserializeRangeWithSheet'](_0x268add),_0x30a108={'name':(_0xdaa9a8=(_0x52e2fa=this[_0x4bd521(0x113)][_0x4bd521(0x125)](this[_0x4bd521(0x115)],_0x517a32))==null?void 0x0:_0x52e2fa[_0x4bd521(0x132)])!=null?_0xdaa9a8:_0x4bd521(0x375),'range':this['_getMergeRange'](_0x3e2541,_0x28a1f9),'sheetID':_0x3e2541,'color':this[_0x4bd521(0x307)][_0x4bd521(0x2e5)](_0x517a32),'selection':_0x268add},_0x501e6a=this[_0x4bd521(0x2df)];_0x501e6a[_0x4bd521(0x25c)](_0x517a32,_0x30a108),this[_0x4bd521(0x387)][_0x4bd521(0x160)](_0x501e6a);}[_0x49483b(0x2ee)](_0x411a78){const _0x7cf98e=_0x49483b,{memberID:_0x786982}=_0x411a78['data'],_0x2a1a49=this['cursorInfo'];_0x2a1a49['delete'](_0x786982),this['_cursorInfo$'][_0x7cf98e(0x160)](_0x2a1a49);}[_0x49483b(0x1f3)](_0x7f50c4,_0x22c596){const _0x44f1f5=_0x49483b;var _0x2136a6,_0x4d929b;const _0x8440a9=(_0x4d929b=(_0x2136a6=this['_univerInstanceService']['getUniverSheetInstance'](this[_0x44f1f5(0x115)]))==null?void 0x0:_0x2136a6[_0x44f1f5(0x337)](_0x7f50c4))==null?void 0x0:_0x4d929b[_0x44f1f5(0x1ec)]();return(_0x8440a9==null?void 0x0:_0x8440a9[_0x44f1f5(0x37d)](_0x2dc566=>a[_0x44f1f5(0x17e)]['contains'](_0x2dc566,_0x22c596)))||_0x22c596;}[_0x49483b(0x304)](){const _0x1a52e0=_0x49483b,_0x120d16=new a[(_0x1a52e0(0x380))](),_0x897c3c=at(),_0x2c4a67=()=>{const _0x5e8367=_0x1a52e0;_0x120d16['dispose']();const _0x724eb=(_0x3224dc,_0x2b3241,_0x4441c3,_0x3326fb)=>{const _0x53ef36=_0x6961;let _0x2ff660=[];switch(_0x3224dc['id']){case g[_0x53ef36(0x2de)][_0x53ef36(0x228)]:{_0x2ff660=g['handleDeleteRangeMoveLeft'](_0x3224dc,_0x3326fb);break;}case g[_0x53ef36(0x2de)][_0x53ef36(0x1d2)]:{_0x2ff660=g[_0x53ef36(0x12d)](_0x3224dc,_0x3326fb);break;}case g[_0x53ef36(0x2de)][_0x53ef36(0x1ad)]:{_0x2ff660=g['handleInsertCol'](_0x3224dc,_0x3326fb);break;}case g[_0x53ef36(0x2de)][_0x53ef36(0x161)]:{_0x2ff660=g[_0x53ef36(0x197)](_0x3224dc,_0x3326fb);break;}case g['EffectRefRangId']['InsertRangeMoveRightCommandId']:{_0x2ff660=g[_0x53ef36(0x148)](_0x3224dc,_0x3326fb);break;}case g[_0x53ef36(0x2de)]['InsertRowCommandId']:{_0x2ff660=g[_0x53ef36(0x35d)](_0x3224dc,_0x3326fb);break;}case g['EffectRefRangId']['MoveRangeCommandId']:{_0x2ff660=g[_0x53ef36(0x10e)](_0x3224dc,_0x3326fb);break;}case g[_0x53ef36(0x2de)]['RemoveColCommandId']:{_0x2ff660=g[_0x53ef36(0x1a3)](_0x3224dc,_0x3326fb);break;}case g[_0x53ef36(0x2de)]['RemoveRowCommandId']:{_0x2ff660=g[_0x53ef36(0x388)](_0x3224dc,_0x3326fb);break;}}const _0x4ee78a=g[_0x53ef36(0x230)](_0x2ff660,_0x3326fb),_0xd6cdd4=this['cursorInfo'][_0x53ef36(0x1bd)](_0x2b3241);if(_0xd6cdd4&&_0x4ee78a){const _0x236c9d={..._0xd6cdd4,'range':_0x4ee78a};this[_0x53ef36(0x2df)][_0x53ef36(0x25c)](_0x2b3241,_0x236c9d),_0x897c3c(()=>{const _0x1691f6=_0x53ef36,_0x304313=this['_refRangeService'][_0x1691f6(0x2ba)](_0x4ee78a,_0x563ff0=>(_0x304313['dispose'](),_0x724eb(_0x563ff0,_0x2b3241,_0x4441c3,_0x4ee78a)));_0x120d16[_0x1691f6(0x1b1)](_0x304313);});}return{'redos':[],'undos':[]};};this[_0x5e8367(0x2df)][_0x5e8367(0x32e)]((_0x502496,_0x38a08a)=>{const _0x20c5dd=_0x5e8367,{range:_0x3b8662,sheetID:_0x1b0982}=_0x502496,_0x19cf58=this[_0x20c5dd(0x28f)][_0x20c5dd(0x2ba)](_0x3b8662,_0x4282a0=>(_0x19cf58[_0x20c5dd(0x202)](),_0x724eb(_0x4282a0,_0x38a08a,_0x1b0982,_0x3b8662)));_0x120d16[_0x20c5dd(0x1b1)](_0x19cf58);});};this[_0x1a52e0(0x200)](a[_0x1a52e0(0x143)](this[_0x1a52e0(0x387)][_0x1a52e0(0x175)](()=>{_0x2c4a67();})));}[_0x49483b(0x164)](){const _0x211c5b=_0x49483b;var _0x18cc83,_0x29db1e;if(this[_0x211c5b(0x127)]=!0x0,((_0x18cc83=this['_univerInstanceService']['getFocusedUnit']())==null?void 0x0:_0x18cc83[_0x211c5b(0x18c)]())!==this[_0x211c5b(0x115)])return;const _0x3c11dd=(_0x29db1e=this[_0x211c5b(0x34e)][_0x211c5b(0x1bd)](g[_0x211c5b(0x221)])[_0x211c5b(0x276)]())==null?void 0x0:_0x29db1e[0x0],_0x26faea=this[_0x211c5b(0x145)][_0x211c5b(0x1aa)](a[_0x211c5b(0x24a)][_0x211c5b(0x2ec)])['getActiveSheet']();_0x3c11dd&&_0x26faea&&this['_updateLocalCursor'](_0x26faea[_0x211c5b(0x312)](),_0x3c11dd);}[_0x49483b(0x1ab)](){this['_online']=!0x1;}};Ie=it([A(0x2,a[_0x49483b(0x199)](a[_0x49483b(0x1ef)])),A(0x3,a['Inject'](Ce)),A(0x4,a[_0x49483b(0x199)](u[_0x49483b(0x2a8)])),A(0x5,a[_0x49483b(0x363)]),A(0x6,a[_0x49483b(0x2fb)]),A(0x7,a[_0x49483b(0x199)](g['RefRangeService']))],Ie);var ct=Object['getOwnPropertyDescriptor'],lt=(_0x561e6b,_0x918a51,_0x12eb10,_0x40f412)=>{const _0x10e5fa=_0x49483b;for(var _0x26efdc=_0x40f412>0x1?void 0x0:_0x40f412?ct(_0x918a51,_0x12eb10):_0x918a51,_0x407184=_0x561e6b[_0x10e5fa(0x22f)]-0x1,_0x4d6f7f;_0x407184>=0x0;_0x407184--)(_0x4d6f7f=_0x561e6b[_0x407184])&&(_0x26efdc=_0x4d6f7f(_0x26efdc)||_0x26efdc);return _0x26efdc;},ie=(_0x12debc,_0x4a9ae7)=>(_0x3db8ea,_0x3ce011)=>_0x4a9ae7(_0x3db8ea,_0x3ce011,_0x12debc);let x=class extends a[_0x49483b(0x17a)]{constructor(_0x40788a,_0x5f493c,_0x16a221){const _0x2d73f8=_0x49483b;super(),_(this,_0x2d73f8(0x33e),new Map()),_(this,_0x2d73f8(0x1c7),new d[(_0x2d73f8(0x171))]()),(this[_0x2d73f8(0x145)]=_0x40788a,this['_injector']=_0x5f493c,this[_0x2d73f8(0x265)]=_0x16a221,this[_0x2d73f8(0x31c)]());}[_0x49483b(0x202)](){const _0x3a32ca=_0x49483b;super[_0x3a32ca(0x202)](),this[_0x3a32ca(0x1c7)]['complete'](),this[_0x3a32ca(0x33e)][_0x3a32ca(0x32e)](_0x346a38=>_0x346a38[_0x3a32ca(0x202)]());}[_0x49483b(0x351)](_0x2ccd21){const _0x1eba48=_0x49483b;return this[_0x1eba48(0x33e)]['has'](_0x2ccd21)?this['_entities'][_0x1eba48(0x1bd)](_0x2ccd21)[_0x1eba48(0x168)]:this['_entityInit$'][_0x1eba48(0x2dc)](d['filter'](_0x3a5a4e=>_0x3a5a4e[_0x1eba48(0x115)]===_0x2ccd21),d[_0x1eba48(0x316)](_0x3f80a0=>_0x3f80a0[_0x1eba48(0x168)]));}['_init'](){const _0x46b50c=_0x49483b;this[_0x46b50c(0x145)][_0x46b50c(0x305)](a[_0x46b50c(0x24a)][_0x46b50c(0x2ec)])[_0x46b50c(0x2dc)](d[_0x46b50c(0x272)](this[_0x46b50c(0x2cb)]))[_0x46b50c(0x175)](async _0x131b03=>{const _0x35caee=_0x46b50c,_0x2c0513=_0x131b03[_0x35caee(0x18c)](),_0x3e9711=await this[_0x35caee(0x22d)](_0x2c0513);this['_entityInit$'][_0x35caee(0x160)](_0x3e9711),this[_0x35caee(0x33e)][_0x35caee(0x25c)](_0x2c0513,_0x3e9711);}),this[_0x46b50c(0x145)][_0x46b50c(0x305)](a[_0x46b50c(0x24a)][_0x46b50c(0x2f9)])['pipe'](d[_0x46b50c(0x272)](this[_0x46b50c(0x2cb)]))[_0x46b50c(0x2dc)](d[_0x46b50c(0x1a1)](_0x40d081=>!_0x40d081['getUnitId']()[_0x46b50c(0x17b)]('__')))[_0x46b50c(0x175)](async _0x245862=>{const _0x50f8a1=_0x46b50c,_0x4f50aa=_0x245862['getUnitId'](),_0x43b52b=await this[_0x50f8a1(0x331)](_0x4f50aa);this[_0x50f8a1(0x1c7)][_0x50f8a1(0x160)](_0x43b52b),this[_0x50f8a1(0x33e)][_0x50f8a1(0x25c)](_0x4f50aa,_0x43b52b);}),d[_0x46b50c(0x1f9)](this[_0x46b50c(0x145)][_0x46b50c(0x11f)](a[_0x46b50c(0x24a)][_0x46b50c(0x2f9)]),this['_univerInstanceService'][_0x46b50c(0x11f)](a[_0x46b50c(0x24a)][_0x46b50c(0x2ec)]))['pipe'](d[_0x46b50c(0x272)](this[_0x46b50c(0x2cb)]))[_0x46b50c(0x175)](_0x13ee77=>{const _0xb13cd0=_0x46b50c,_0x1b52af=_0x13ee77[_0xb13cd0(0x18c)](),_0x1473ff=this[_0xb13cd0(0x33e)][_0xb13cd0(0x1bd)](_0x1b52af);_0x1473ff&&(_0x1473ff[_0xb13cd0(0x202)](),this['_entities'][_0xb13cd0(0x334)](_0x1b52af));});}async[_0x49483b(0x22d)](_0x176b27){const _0x363780=_0x49483b,_0x13263d=await this[_0x363780(0x265)]['requireSession'](_0x176b27),_0xea17e8=this[_0x363780(0x34e)][_0x363780(0x1f7)](Ie,_0x176b27,_0x13263d);return _0xea17e8[_0x363780(0x378)](),_0xea17e8;}async[_0x49483b(0x331)](_0xd18aa8){const _0x2410bb=_0x49483b,_0x1ccee6=await this['_collabSessionService'][_0x2410bb(0x233)](_0xd18aa8),_0xabfd35=this[_0x2410bb(0x34e)][_0x2410bb(0x1f7)](Se,_0xd18aa8,_0x1ccee6);return _0xabfd35[_0x2410bb(0x378)](),_0xabfd35;}};x=lt([ie(0x0,a[_0x49483b(0x363)]),ie(0x1,a['Inject'](a[_0x49483b(0x1ef)])),ie(0x2,a[_0x49483b(0x199)](u[_0x49483b(0x123)]))],x);const K=0x14,De=0xc8,re=0x4,_t=0x5;function ht(_0x48ae5e,_0x3d90c2){const _0x11b008=_0x49483b;let {radius:_0x501375,width:_0x3cdf70,height:_0x1a5ccb}=_0x3d90c2;_0x501375=_0x501375!=null?_0x501375:0x0,_0x3cdf70=_0x3cdf70!=null?_0x3cdf70:0x1e,_0x1a5ccb=_0x1a5ccb!=null?_0x1a5ccb:0x1e;let _0x1cf298=0x0,_0x22d18e=0x0,_0x390254=0x0;_0x1cf298=_0x22d18e=_0x390254=Math[_0x11b008(0x2b6)](_0x501375,_0x3cdf70/0x2,_0x1a5ccb/0x2),_0x48ae5e[_0x11b008(0x112)](),_0x48ae5e['moveTo'](_0x1cf298,0x0),_0x48ae5e[_0x11b008(0x1db)](_0x3cdf70-_0x22d18e,0x0),_0x48ae5e[_0x11b008(0x150)](_0x3cdf70-_0x22d18e,_0x22d18e,_0x22d18e,Math['PI']*0x3/0x2,0x0,!0x1),_0x48ae5e[_0x11b008(0x1db)](_0x3cdf70,_0x1a5ccb-_0x390254),_0x48ae5e[_0x11b008(0x150)](_0x3cdf70-_0x390254,_0x1a5ccb-_0x390254,_0x390254,0x0,Math['PI']/0x2,!0x1),_0x48ae5e[_0x11b008(0x1db)](0x0,_0x1a5ccb),_0x48ae5e[_0x11b008(0x1db)](0x0,_0x1cf298),_0x48ae5e[_0x11b008(0x150)](_0x1cf298,_0x1cf298,_0x1cf298,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x48ae5e[_0x11b008(0x2dd)](),_0x3d90c2[_0x11b008(0x299)]&&(_0x48ae5e[_0x11b008(0x210)](),_0x48ae5e[_0x11b008(0x374)]=_0x3d90c2[_0x11b008(0x299)],_0x3d90c2[_0x11b008(0x341)]===_0x11b008(0x227)?_0x48ae5e[_0x11b008(0x299)](_0x11b008(0x227)):_0x48ae5e['fill'](),_0x48ae5e[_0x11b008(0x1f2)]());}class te extends p[_0x49483b(0x26d)]{constructor(_0x45173e,_0x40c341){const _0x2c04be=_0x49483b;super(_0x45173e,_0x40c341),_(this,_0x2c04be(0x1bf)),_(this,_0x2c04be(0x25b)),(this[_0x2c04be(0x1bf)]=_0x40c341==null?void 0x0:_0x40c341[_0x2c04be(0x1bf)],this[_0x2c04be(0x25b)]=_0x40c341==null?void 0x0:_0x40c341['text']);}static[_0x49483b(0x225)](_0x738b23,_0x39b862){const _0x1f3542=_0x49483b,{text:_0x5e331e,color:_0x4bcff7}=_0x39b862;_0x738b23[_0x1f3542(0x210)](),_0x738b23[_0x1f3542(0x19c)]=_0x1f3542(0x29c);const _0x55e5fe=_0x738b23[_0x1f3542(0x213)](_0x5e331e)[_0x1f3542(0x38d)],_0x3c2b55=Math[_0x1f3542(0x2b6)](_0x55e5fe+0x2*re,De);ht(_0x738b23,{'height':K,'radius':0x4,'width':_0x3c2b55,'fill':_0x4bcff7}),_0x738b23[_0x1f3542(0x374)]='#FFF';const _0x3e1628=re,_0x1653fc=K-_t,_0x1a4ff3=De-0x2*re;if(_0x55e5fe>_0x1a4ff3){let _0x27f79c='',_0x4c546b=0x0;for(const _0x2d43e8 of _0x5e331e){const _0x140d45=_0x738b23['measureText'](_0x2d43e8)[_0x1f3542(0x38d)];if(_0x4c546b+_0x140d45<=_0x1a4ff3-_0x738b23[_0x1f3542(0x213)](_0x1f3542(0x31f))[_0x1f3542(0x38d)])_0x27f79c+=_0x2d43e8,_0x4c546b+=_0x140d45;else{_0x27f79c+=_0x1f3542(0x31f);break;}}_0x738b23['fillText'](_0x27f79c,_0x3e1628,_0x1653fc);}else _0x738b23[_0x1f3542(0x1c4)](_0x5e331e,_0x3e1628,_0x1653fc);_0x738b23[_0x1f3542(0x1f2)]();}[_0x49483b(0x38c)](_0x2f8cc3){const _0x2048a5=_0x49483b;te[_0x2048a5(0x225)](_0x2f8cc3,this);}}const oe='collab-text-anchor-',ut=_0x49483b(0x11a),dt=_0x49483b(0x172),k=0x6,ft=1.5,ae=0x4,St=1.5,It='rgba(255,\x20255,\x20255,\x200.01)';class Ue{constructor(_0x17d852,_0x96474,_0x247aa1,_0x52dc18){const _0x51a9b3=_0x49483b;_(this,'_shapes',[]),_(this,_0x51a9b3(0x158),null),_(this,'_textBubble',null),_(this,_0x51a9b3(0x2eb),null),_(this,'_hideTimer',null),_(this,_0x51a9b3(0x282),null),(this[_0x51a9b3(0x2b8)]=_0x17d852,this[_0x51a9b3(0x226)]=_0x96474,this[_0x51a9b3(0x2f6)]=_0x247aa1,this['_document']=_0x52dc18,this[_0x51a9b3(0x31b)]());}set[_0x49483b(0x28d)](_0x28e441){const _0x239f00=_0x49483b;_0x28e441?(this[_0x239f00(0x2eb)]&&this[_0x239f00(0x2eb)]['hide'](),this[_0x239f00(0x30f)]&&this['_textBubble'][_0x239f00(0x17d)]()):(this[_0x239f00(0x2eb)]&&this[_0x239f00(0x2eb)]['show'](),this['_textBubble']&&this[_0x239f00(0x30f)]['hide']());}[_0x49483b(0x202)](){const _0x538eab=_0x49483b;for(const _0x64e244 of this[_0x538eab(0x201)])_0x64e244['dispose']();this[_0x538eab(0x30f)]&&this[_0x538eab(0x30f)][_0x538eab(0x202)](),this[_0x538eab(0x2eb)]&&this[_0x538eab(0x2eb)][_0x538eab(0x202)](),this[_0x538eab(0x158)]&&this['_anchor'][_0x538eab(0x202)](),this[_0x538eab(0x282)]&&this[_0x538eab(0x282)]();}['_render'](){const _0x33f5ac=_0x49483b;var _0x525f19;const {_docSkeleton:_0x4efada,_document:_0x349e8e}=this,{color:_0x533ad8,name:_0x3f1764,ranges:_0x121ee6}=this[_0x33f5ac(0x2b8)],_0x30cec1=_0x349e8e[_0x33f5ac(0x329)](),{docsLeft:_0x14bbc0,docsTop:_0x48a75f}=_0x30cec1,_0x589110=new b[(_0x33f5ac(0x2ad))](_0x30cec1,_0x4efada);for(const {startOffset:_0xbeab58,endOffset:_0x30d80e,rangeType:_0x1939e1,segmentId:_0x10d487,segmentPage:_0xc47d67,collapsed:_0x30dba7,isActive:_0x3d0c65}of _0x121ee6){const _0x5e4388=_0x4efada[_0x33f5ac(0x212)](_0xbeab58,!0x0,_0x10d487,_0xc47d67);let _0x407132=_0x4efada[_0x33f5ac(0x212)](_0x30d80e,!0x0,_0x10d487,_0xc47d67);if(_0x407132==null&&(_0x407132=_0x4efada[_0x33f5ac(0x212)](_0x30d80e-0x1,!0x1,_0x10d487,_0xc47d67)),_0x3d0c65){const {contentBoxPointGroup:_0x511c0f}=_0x589110['getRangePointData'](_0x407132,_0x407132);if(_0x511c0f[_0x33f5ac(0x22f)]===0x0)continue;this[_0x33f5ac(0x26e)](_0x533ad8,_0x511c0f,_0x14bbc0,_0x48a75f,_0x3f1764),this[_0x33f5ac(0x282)]=this[_0x33f5ac(0x325)]();}if(_0x5e4388&&_0x407132){if(_0x1939e1===a['DOC_RANGE_TYPE'][_0x33f5ac(0x1b7)]){const _0x108230=new b[(_0x33f5ac(0x367))](_0x30cec1,_0x4efada),{pointGroup:_0x312b5b}=(_0x525f19=_0x108230[_0x33f5ac(0x1a2)](_0x5e4388,_0x407132))!=null?_0x525f19:{};if(_0x312b5b==null||_0x312b5b[_0x33f5ac(0x22f)]===0x0)continue;this[_0x33f5ac(0x2e3)](_0x533ad8,_0x312b5b,_0x14bbc0,_0x48a75f);}else{if(!_0x30dba7){const {borderBoxPointGroup:_0x37ffb1}=_0x589110[_0x33f5ac(0x1a2)](_0x5e4388,_0x407132);if(_0x37ffb1[_0x33f5ac(0x22f)]===0x0)continue;this['_drawTextRange'](_0x533ad8,_0x37ffb1,_0x14bbc0,_0x48a75f);}}}}}['_drawAnchor'](_0x187ef1,_0x3caf44,_0x4e3b3d,_0x33cdd6,_0xea22f1){const _0x19cf3a=_0x49483b,_0xd76cee=this[_0x19cf3a(0x297)](_0x3caf44),{left:_0x49e5cd,top:_0x4ad7e1,height:_0x339559}=_0xd76cee,_0x45ad21=this[_0x19cf3a(0x2e1)](),_0x5370eb=St/_0x45ad21,_0x293273=new p[(_0x19cf3a(0x269))](oe+a['Tools']['generateRandomId'](k),{'left':_0x49e5cd+_0x4e3b3d-_0x5370eb,'top':_0x4ad7e1+_0x33cdd6,'height':_0x339559,'width':ft,'fill':_0x187ef1||p['getColor'](a['COLORS'][_0x19cf3a(0x356)],0x0),'strokeWidth':_0x5370eb,'stroke':It,'evented':!0x0});this[_0x19cf3a(0x158)]=_0x293273,this[_0x19cf3a(0x226)][_0x19cf3a(0x2c7)](_0x293273,b[_0x19cf3a(0x2a6)]);const _0x1c09a7=new p[(_0x19cf3a(0x269))](oe+a[_0x19cf3a(0x15b)]['generateRandomId'](k),{'left':_0x49e5cd+_0x4e3b3d-_0x5370eb,'top':_0x4ad7e1+_0x33cdd6-ae/0x2,'height':ae,'width':ae,'fill':_0x187ef1||p[_0x19cf3a(0x35f)](a['COLORS']['black'],0x0),'strokeWidth':0x0,'stroke':_0x187ef1||p[_0x19cf3a(0x35f)](a[_0x19cf3a(0x25e)][_0x19cf3a(0x356)],0x0),'evented':!0x1});this[_0x19cf3a(0x2eb)]=_0x1c09a7,this[_0x19cf3a(0x226)][_0x19cf3a(0x2c7)](_0x1c09a7,b[_0x19cf3a(0x2a6)]);const _0x2f40c7=new te(oe+a[_0x19cf3a(0x15b)][_0x19cf3a(0x23a)](k),{'left':_0x49e5cd+_0x4e3b3d-_0x5370eb,'top':_0x4ad7e1+_0x33cdd6-K,'text':_0xea22f1,'color':_0x187ef1});this[_0x19cf3a(0x30f)]=_0x2f40c7,this[_0x19cf3a(0x226)][_0x19cf3a(0x2c7)](_0x2f40c7,b[_0x19cf3a(0x2a6)]),this[_0x19cf3a(0x28d)]=!0x1;}[_0x49483b(0x325)](){const _0xb56b19=_0x49483b,_0x38c243=this[_0xb56b19(0x158)]['onPointerEnter$']['subscribeEvent'](()=>{const _0x2f2495=_0xb56b19;this[_0x2f2495(0x28d)]=!0x0;}),_0x2246a0=this[_0xb56b19(0x158)][_0xb56b19(0x390)][_0xb56b19(0x1c5)](()=>{const _0xe64d46=_0xb56b19;this[_0xe64d46(0x288)]&&clearTimeout(this[_0xe64d46(0x288)]),this[_0xe64d46(0x288)]=setTimeout(()=>{const _0x54c68d=_0xe64d46;this[_0x54c68d(0x28d)]=!0x1;},0x7d0);});return()=>{const _0x527386=_0xb56b19;_0x38c243[_0x527386(0x1e1)](),_0x2246a0[_0x527386(0x1e1)]();};}[_0x49483b(0x33d)](_0x3625a2,_0x46c1dd,_0x23acef,_0x5ae34a){const _0x17136e=_0x49483b,_0x3ad75f=new a[(_0x17136e(0x38e))](_0x3625a2)[_0x17136e(0x29a)](0.2)[_0x17136e(0x1cc)](),_0x5a56eb=new p[(_0x17136e(0x1af))](ut+a[_0x17136e(0x15b)][_0x17136e(0x23a)](k),{'pointsGroup':_0x46c1dd,'fill':_0x3ad75f||p[_0x17136e(0x35f)](a[_0x17136e(0x25e)][_0x17136e(0x356)],0.2),'left':_0x23acef,'top':_0x5ae34a,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x17136e(0x201)][_0x17136e(0x119)](_0x5a56eb),this[_0x17136e(0x226)][_0x17136e(0x2c7)](_0x5a56eb,b[_0x17136e(0x2a6)]);}['_drawRectRange'](_0x26ce98,_0xaa644c,_0x8519f5,_0x1143e8){const _0x5ca18e=_0x49483b,_0x104822=new a[(_0x5ca18e(0x38e))](_0x26ce98)[_0x5ca18e(0x29a)](0.2)[_0x5ca18e(0x1cc)](),_0xdc452c=new p[(_0x5ca18e(0x1af))](dt+a[_0x5ca18e(0x15b)][_0x5ca18e(0x23a)](k),{'pointsGroup':_0xaa644c,'fill':_0x104822||p['getColor'](a[_0x5ca18e(0x25e)][_0x5ca18e(0x356)],0.2),'left':_0x8519f5,'top':_0x1143e8,'evented':!0x1,'debounceParentDirty':!0x1});this['_shapes']['push'](_0xdc452c),this['_scene']['addObject'](_0xdc452c,b[_0x5ca18e(0x2a6)]);}[_0x49483b(0x297)](_0x176a7f){const _0x2f79d3=_0x176a7f[0x0],_0xf00d6d=_0x2f79d3[0x0],_0x2e079a=_0x2f79d3[0x2],{x:_0x41f0a1,y:_0x21929f}=_0xf00d6d,{x:_0x3e2c18,y:_0x4ca79a}=_0x2e079a;return{'left':_0x41f0a1,'top':_0x21929f,'width':_0x3e2c18-_0x41f0a1,'height':_0x4ca79a-_0x21929f};}[_0x49483b(0x2e1)](){const _0x4e5146=_0x49483b,{scaleX:_0x2258e8,scaleY:_0x21989a}=this[_0x4e5146(0x226)][_0x4e5146(0x155)]();return Math[_0x4e5146(0x216)](_0x2258e8,_0x21989a);}}var vt=Object[_0x49483b(0x16b)],gt=(_0x59963b,_0x3cc06f,_0x3841ef,_0x2ea6d1)=>{for(var _0x6e3f21=_0x2ea6d1>0x1?void 0x0:_0x2ea6d1?vt(_0x3cc06f,_0x3841ef):_0x3cc06f,_0x4916c2=_0x59963b['length']-0x1,_0x536c03;_0x4916c2>=0x0;_0x4916c2--)(_0x536c03=_0x59963b[_0x4916c2])&&(_0x6e3f21=_0x536c03(_0x6e3f21)||_0x6e3f21);return _0x6e3f21;},V=(_0x4eff18,_0x2d3900)=>(_0x318d11,_0xba1d20)=>_0x2d3900(_0x318d11,_0xba1d20,_0x4eff18);let ve=class extends a[_0x49483b(0x17a)]{constructor(_0x209c08,_0x5438dd,_0x18d05b,_0x3bb694,_0x2d49f1){const _0x5c15f6=_0x49483b;super(),_(this,_0x5c15f6(0x20f),[]),_(this,_0x5c15f6(0x36d),[]),(this[_0x5c15f6(0x18f)]=_0x209c08,this['_docSkeletonManagerService']=_0x5438dd,this[_0x5c15f6(0x2cf)]=_0x18d05b,this[_0x5c15f6(0x347)]=_0x3bb694,this[_0x5c15f6(0x27f)]=_0x2d49f1,this[_0x5c15f6(0x31c)]());}[_0x49483b(0x31c)](){const _0x5c5025=_0x49483b,_0x2b6d72=this[_0x5c5025(0x18f)][_0x5c5025(0x31e)],_0x20ee3a=this[_0x5c5025(0x280)];this['disposeWithMe'](d['combineLatest']([this[_0x5c5025(0x2cf)]['getCollabCursors$'](_0x2b6d72),this[_0x5c5025(0x27f)][_0x5c5025(0x170)]])[_0x5c5025(0x2dc)]($[_0x5c5025(0x1ae)](([_0x2c0086,_0x390fc1])=>({'skeleton':_0x20ee3a[_0x5c5025(0x152)](),'cursors':[..._0x2c0086[_0x5c5025(0x385)]()][_0x5c5025(0x27c)](_0x53f3a0=>({..._0x53f3a0,'color':_0x390fc1[_0x53f3a0[_0x5c5025(0x1bf)]]}))})))[_0x5c5025(0x175)](_0xc355b8=>{const _0x4e281a=_0x5c5025;if(this[_0x4e281a(0x350)](),_0xc355b8){const {skeleton:_0x19da43,cursors:_0x477c7c}=_0xc355b8;this[_0x4e281a(0x2f2)](_0x19da43,_0x477c7c);}})),this[_0x5c5025(0x187)](),this[_0x5c5025(0x1c2)]();}[_0x49483b(0x2f2)](_0xc0e6ce,_0x1981a5){const _0x165c02=_0x49483b,{scene:_0x4f25c0,mainComponent:_0x107713}=this[_0x165c02(0x18f)],_0x1b792c=_0x1981a5[_0x165c02(0x1ae)](_0x21f4eb=>new Ue(_0x21f4eb,_0x4f25c0,_0xc0e6ce,_0x107713));this[_0x165c02(0x20f)]=_0x1b792c,this['_cursors']=_0x1981a5;}[_0x49483b(0x190)](){const _0x249c4a=_0x49483b;this[_0x249c4a(0x350)]();const {scene:_0x79a015,mainComponent:_0x20ab62}=this[_0x249c4a(0x18f)],_0x5130db=this[_0x249c4a(0x280)][_0x249c4a(0x152)](),_0x1d8199=this[_0x249c4a(0x36d)][_0x249c4a(0x1ae)](_0x508cf9=>new Ue(_0x508cf9,_0x79a015,_0x5130db,_0x20ab62));this[_0x249c4a(0x20f)]=_0x1d8199;}['_removeCollabCursors'](){const _0x3e119b=_0x49483b;this[_0x3e119b(0x20f)][_0x3e119b(0x32e)](_0x208df3=>_0x208df3[_0x3e119b(0x202)]()),this['_cursorShapes']=[];}[_0x49483b(0x1c2)](){const _0x22c77d=_0x49483b,_0x5c569f=[b[_0x22c77d(0x1eb)]['id']];this[_0x22c77d(0x200)](this['_commandService'][_0x22c77d(0x140)](_0x522ce9=>{const _0x3bd7f8=_0x22c77d;_0x5c569f[_0x3bd7f8(0x2af)](_0x522ce9['id'])&&_0x522ce9['params']['unitId']===this['_context'][_0x3bd7f8(0x31e)]&&this['_refreshCollabCursors']();}));}[_0x49483b(0x187)](){const _0x756db3=_0x49483b;this['disposeWithMe'](a[_0x756db3(0x300)](this[_0x756db3(0x18f)]['engine']['onTransformChange$'])['pipe']($['filter'](_0x1a7fd2=>_0x1a7fd2[_0x756db3(0x1e6)]===p['TRANSFORM_CHANGE_OBSERVABLE_TYPE'][_0x756db3(0x348)]),$[_0x756db3(0x1b0)](0x10))[_0x756db3(0x175)](()=>{this['_refreshCollabCursors']();}));}};ve=gt([V(0x1,a[_0x49483b(0x199)](Y[_0x49483b(0x27d)])),V(0x2,a[_0x49483b(0x199)](x)),V(0x3,a[_0x49483b(0x2fb)]),V(0x4,a[_0x49483b(0x199)](a['ThemeService']))],ve);const mt=0x1,Ct=1.5;class Ae extends p[_0x49483b(0x26d)]{constructor(_0x55b916,_0x4acdf9){const _0x47bd42=_0x49483b;super(_0x55b916,_0x4acdf9),_(this,_0x47bd42(0x19f)),_(this,_0x47bd42(0x22a),!0x1),_(this,_0x47bd42(0x1fd)),_(this,_0x47bd42(0x1df),''),_(this,'_labelPosition',_0x47bd42(0x284)),_(this,_0x47bd42(0x2b5)),(_0x4acdf9&&this[_0x47bd42(0x253)](_0x4acdf9),this[_0x47bd42(0x295)][_0x47bd42(0x1c5)](()=>this[_0x47bd42(0x253)]({'hovered':!0x0})),this[_0x47bd42(0x390)][_0x47bd42(0x1c5)](()=>this['setShapeProps']({'hovered':!0x1})));}[_0x49483b(0x253)](_0x329dd4){const _0x11d4f9=_0x49483b;var _0x3400a4,_0x30ee68,_0x2ab821,_0x2d8daf,_0x4ecb29,_0x4036b1;this[_0x11d4f9(0x19f)]=(_0x3400a4=_0x329dd4[_0x11d4f9(0x1bf)])!=null?_0x3400a4:this[_0x11d4f9(0x19f)],this[_0x11d4f9(0x22a)]=(_0x30ee68=_0x329dd4[_0x11d4f9(0x1d9)])!=null?_0x30ee68:this[_0x11d4f9(0x22a)],this[_0x11d4f9(0x1fd)]=(_0x2ab821=_0x329dd4[_0x11d4f9(0x24d)])!=null?_0x2ab821:this[_0x11d4f9(0x1fd)],this[_0x11d4f9(0x1df)]=(_0x2d8daf=_0x329dd4[_0x11d4f9(0x132)])!=null?_0x2d8daf:this[_0x11d4f9(0x1df)],this[_0x11d4f9(0x1fe)]=(_0x4ecb29=_0x329dd4[_0x11d4f9(0x1d8)])!=null?_0x4ecb29:this[_0x11d4f9(0x1fe)],this['_backgroundColor']=(_0x4036b1=_0x329dd4[_0x11d4f9(0x2d0)])!=null?_0x4036b1:this[_0x11d4f9(0x2b5)],this[_0x11d4f9(0x275)]({'width':_0x329dd4[_0x11d4f9(0x38d)],'height':_0x329dd4[_0x11d4f9(0x1e5)]});}[_0x49483b(0x206)](_0x18af41){const _0x264600=_0x49483b,{row:_0x438af2,column:_0x4ba3e4}=_0x18af41;if(_0x438af2>=this['_range'][_0x264600(0x381)]&&_0x438af2<=this[_0x264600(0x1fd)][_0x264600(0x389)]&&_0x4ba3e4>=this['_range'][_0x264600(0x2a7)]&&_0x4ba3e4<=this[_0x264600(0x1fd)][_0x264600(0x36c)]){this[_0x264600(0x253)]({'hovered':!0x0});return;}this['setShapeProps']({'hovered':!0x1});}[_0x49483b(0x25d)](_0xd23ccd){return!0x1;}[_0x49483b(0x38c)](_0x11c75d){const _0x10a96f=_0x49483b;p['Rect'][_0x10a96f(0x225)](_0x11c75d,{'width':this[_0x10a96f(0x38d)],'height':this[_0x10a96f(0x1e5)],'strokeWidth':Ct,'stroke':this[_0x10a96f(0x19f)],'evented':!0x1,'fill':this['_backgroundColor']}),this['_hovered']&&(_0x11c75d['save'](),_0x11c75d[_0x10a96f(0x2b7)](0x1,0x0,0x0,0x1,this[_0x10a96f(0x38d)],this[_0x10a96f(0x1fe)]===_0x10a96f(0x36f)?0x0:-0x14),te[_0x10a96f(0x225)](_0x11c75d,{'text':this[_0x10a96f(0x1df)],'color':this[_0x10a96f(0x19f)]}),_0x11c75d[_0x10a96f(0x1f2)]());}}var pt=Object[_0x49483b(0x16b)],bt=(_0x21fa2b,_0x3e64a9,_0xa3c42c,_0x30c2ab)=>{for(var _0x349771=_0x30c2ab>0x1?void 0x0:_0x30c2ab?pt(_0x3e64a9,_0xa3c42c):_0x3e64a9,_0x526722=_0x21fa2b['length']-0x1,_0x5548cc;_0x526722>=0x0;_0x526722--)(_0x5548cc=_0x21fa2b[_0x526722])&&(_0x349771=_0x5548cc(_0x349771)||_0x349771);return _0x349771;},ce=(_0x53b5a2,_0x178149)=>(_0xd3b55b,_0x12bb2c)=>_0x178149(_0xd3b55b,_0x12bb2c,_0x53b5a2);const Et=0x1389;let ge=class extends a[_0x49483b(0x17a)]{constructor(_0x1837d7,_0x3a6edd,_0x2c55a2,_0x53c24e){const _0x1e3198=_0x49483b;super(),_(this,'_cursors',new Set()),_(this,_0x1e3198(0x2f1),null),(this[_0x1e3198(0x18f)]=_0x1837d7,this['_sheetSkeletonManagerService']=_0x3a6edd,this[_0x1e3198(0x2cf)]=_0x2c55a2,this[_0x1e3198(0x27f)]=_0x53c24e,this[_0x1e3198(0x31c)]());}[_0x49483b(0x31c)](){const _0x2effde=_0x49483b;this[_0x2effde(0x153)][_0x2effde(0x340)]['pipe']($[_0x2effde(0x272)](this[_0x2effde(0x2cb)]),$[_0x2effde(0x316)](_0x1d849d=>{const _0x1322df=_0x2effde;if(_0x1d849d){const _0x204fbb=_0x1d849d[_0x1322df(0x188)];return d['combineLatest'](this[_0x1322df(0x2cf)][_0x1322df(0x351)](this[_0x1322df(0x18f)][_0x1322df(0x31e)]),this[_0x1322df(0x27f)][_0x1322df(0x170)])['pipe']($[_0x1322df(0x1ae)](([_0x2c155c,_0x30708d])=>{const _0x56ad0c=_0x1322df,_0x4ed846=new Map();return _0x2c155c[_0x56ad0c(0x32e)]((_0x41823e,_0x1a455a)=>{const _0x1f9f52=_0x56ad0c;if(_0x41823e[_0x1f9f52(0x314)]===_0x204fbb){const _0x477c0f={..._0x41823e};_0x477c0f['color']=_0x30708d[_0x41823e[_0x1f9f52(0x1bf)]],_0x4ed846[_0x1f9f52(0x25c)](_0x1a455a,_0x477c0f);}}),{'skeleton':_0x1d849d,'cursors':_0x4ed846};}));}return d['of']({'skeleton':null,'cursors':new Map()});}))[_0x2effde(0x175)](({skeleton:_0x57508b,cursors:_0x2dceb6})=>{const _0x3f3367=_0x2effde;this['_removeCollabCursors'](),_0x57508b&&this[_0x3f3367(0x2f2)](_0x57508b,_0x2dceb6);}),this[_0x2effde(0x153)]['currentSkeleton$'][_0x2effde(0x175)](_0x4fb541=>{const _0x4eaf90=_0x2effde;if(_0x4fb541==null)return;const {skeleton:_0xc1b593}=_0x4fb541,{scene:_0x394988}=this[_0x4eaf90(0x18f)];_0x394988[_0x4eaf90(0x29e)][_0x4eaf90(0x1c5)](a[_0x4eaf90(0x1e9)](_0x46ce83=>{const _0x420ffa=_0x4eaf90;var _0x6e54d3,_0x387a3e;const {offsetX:_0x5455c0,offsetY:_0x58b06b}=_0x46ce83,{x:_0x52c697,y:_0x356bc3}=_0x394988[_0x420ffa(0x1be)](p[_0x420ffa(0x1c0)][_0x420ffa(0x124)]([_0x5455c0,_0x58b06b])),{scaleX:_0x3bd29d,scaleY:_0x5a4e81}=_0x394988[_0x420ffa(0x155)](),_0x53e785=_0x394988[_0x420ffa(0x2aa)](p['SHEET_VIEWPORT_KEY'][_0x420ffa(0x373)]),_0x2e5cfc=_0x394988['getVpScrollXYInfoByPosToVp'](p['Vector2']['FromArray']([_0x52c697,_0x356bc3]),_0x53e785),_0x1f3094=_0xc1b593[_0x420ffa(0x2bc)](_0x5455c0,_0x58b06b,_0x3bd29d,_0x5a4e81,_0x2e5cfc);((_0x6e54d3=this['_lastPointer'])==null?void 0x0:_0x6e54d3[_0x420ffa(0x1d7)])===_0x1f3094[_0x420ffa(0x1d7)]&&((_0x387a3e=this[_0x420ffa(0x2f1)])==null?void 0x0:_0x387a3e[_0x420ffa(0x1d0)])===_0x1f3094['row']||this[_0x420ffa(0x36d)][_0x420ffa(0x32e)](_0x13d709=>{_0x13d709['onMouseMove'](_0x1f3094);});},0x64));});}[_0x49483b(0x2f2)](_0x43c5e1,_0x18e698){const _0x4c890d=_0x49483b;var _0x585ba9;const _0x4a13b1=(_0x585ba9=this[_0x4c890d(0x153)][_0x4c890d(0x191)]())==null?void 0x0:_0x585ba9[_0x4c890d(0x162)];if(!_0x4a13b1)return;const _0x5a5e41=this['_getSheetObject']();if(!_0x5a5e41)return;this[_0x4c890d(0x36d)][_0x4c890d(0x32e)](_0x59d5a9=>{const _0x1a4708=_0x4c890d;_0x59d5a9[_0x1a4708(0x2ea)]();});const {scene:_0x3289f4}=_0x5a5e41,_0x35141f=Tt(Array[_0x4c890d(0x352)](_0x18e698[_0x4c890d(0x385)]()))['map'](_0xf7a0cd=>{const _0x3b23c1=_0x4c890d,{color:_0x48ca7d,range:_0x1be5f8,name:_0x550665,selection:_0x37bd2e,sheetID:_0x5b8784}=_0xf7a0cd,{startColumn:_0x4e29e5,startRow:_0x156e30,endColumn:_0x55747f,endRow:_0x3a54b6}=_0x1be5f8,_0x598fa7=G[_0x3b23c1(0x183)](_0x156e30,_0x4e29e5,_0x3289f4,_0x4a13b1),_0x3eb382=G[_0x3b23c1(0x183)](_0x3a54b6,_0x55747f,_0x3289f4,_0x4a13b1),{columnHeaderHeightAndMarginTop:_0x284e07}=_0x4a13b1,{startX:_0x3077b2,startY:_0x4b3ef5}=_0x598fa7,{endX:_0x3659fb,endY:_0x4b288a}=_0x3eb382,_0xa385f0=_0x3659fb-_0x3077b2,_0xf52c10=_0x4b288a-_0x4b3ef5,_0x4bfc8c={'labelPosition':_0x4b3ef5-_0x284e07>=K?_0x3b23c1(0x284):_0x3b23c1(0x36f),'sheetID':_0x5b8784,'range':_0x1be5f8,'color':_0x48ca7d,'name':_0x550665,'selection':_0x37bd2e,'left':_0x3077b2,'top':_0x4b3ef5,'width':_0xa385f0,'height':_0xf52c10,'evented':!0x1,'zIndex':Et};return new Ae(_0x550665,_0x4bfc8c);});_0x3289f4[_0x4c890d(0x2d7)](_0x35141f,mt),this[_0x4c890d(0x36d)]=new Set(_0x35141f);}['_removeCollabCursors'](){const _0x4c1cea=_0x49483b;var _0xf9227a;(_0xf9227a=this[_0x4c1cea(0x36d)])==null||_0xf9227a[_0x4c1cea(0x32e)](_0x533d3e=>_0x533d3e[_0x4c1cea(0x202)]());}['_getSheetObject'](){const _0x71bedd=_0x49483b;return G['getSheetObject'](this['_context'][_0x71bedd(0x14c)],this['_context']);}};ge=bt([ce(0x1,a[_0x49483b(0x199)](G[_0x49483b(0x26b)])),ce(0x2,a[_0x49483b(0x199)](x)),ce(0x3,a['Inject'](a[_0x49483b(0x11b)]))],ge);function Tt(_0x47bfee){const _0x1c8d68=_0x49483b,_0x19524f=new Map();return _0x47bfee[_0x1c8d68(0x32e)](_0x3672fb=>{const _0x50a37d=_0x1c8d68;if(_0x19524f[_0x50a37d(0x179)](_0x3672fb['selection'])){const _0x57df55=_0x19524f[_0x50a37d(0x1bd)](_0x3672fb[_0x50a37d(0x165)]);_0x57df55[_0x50a37d(0x132)]+=',\x20'+_0x3672fb[_0x50a37d(0x132)];}else _0x19524f[_0x50a37d(0x25c)](_0x3672fb[_0x50a37d(0x165)],_0x3672fb);}),Array['from'](_0x19524f['values']());}var E=function(){const _0x4b6af4=_0x49483b;return E=Object[_0x4b6af4(0x17c)]||function(_0x33c367){const _0x9ea029=_0x4b6af4;for(var _0x5a3eed,_0x5bf048=0x1,_0x580f63=arguments[_0x9ea029(0x22f)];_0x5bf048<_0x580f63;_0x5bf048++){_0x5a3eed=arguments[_0x5bf048];for(var _0x3ca8b5 in _0x5a3eed)Object[_0x9ea029(0x345)][_0x9ea029(0x231)]['call'](_0x5a3eed,_0x3ca8b5)&&(_0x33c367[_0x3ca8b5]=_0x5a3eed[_0x3ca8b5]);}return _0x33c367;},E[_0x4b6af4(0x1a9)](this,arguments);},Ot=function(_0x5ceff3,_0x314843){const _0x5e6f39=_0x49483b;var _0x14daaa={};for(var _0x54ec48 in _0x5ceff3)Object[_0x5e6f39(0x345)][_0x5e6f39(0x231)][_0x5e6f39(0x38b)](_0x5ceff3,_0x54ec48)&&_0x314843[_0x5e6f39(0x159)](_0x54ec48)<0x0&&(_0x14daaa[_0x54ec48]=_0x5ceff3[_0x54ec48]);if(_0x5ceff3!=null&&typeof Object[_0x5e6f39(0x209)]==_0x5e6f39(0x2f7)){for(var _0x124e26=0x0,_0x54ec48=Object['getOwnPropertySymbols'](_0x5ceff3);_0x124e26<_0x54ec48[_0x5e6f39(0x22f)];_0x124e26++)_0x314843[_0x5e6f39(0x159)](_0x54ec48[_0x124e26])<0x0&&Object[_0x5e6f39(0x345)]['propertyIsEnumerable'][_0x5e6f39(0x38b)](_0x5ceff3,_0x54ec48[_0x124e26])&&(_0x14daaa[_0x54ec48[_0x124e26]]=_0x5ceff3[_0x54ec48[_0x124e26]]);}return _0x14daaa;},be=M[_0x49483b(0x28e)](function(_0x3a285f,_0x475b93){const _0x3d0ec3=_0x49483b;var _0x4b4ec5=_0x3a285f[_0x3d0ec3(0x156)],_0x284284=_0x3a285f['id'],_0x4faab1=_0x3a285f[_0x3d0ec3(0x2cc)],_0x1912bf=_0x3a285f[_0x3d0ec3(0x36e)],_0x40fead=Ot(_0x3a285f,[_0x3d0ec3(0x156),'id','className',_0x3d0ec3(0x36e)]),_0x1f9794=_0x3d0ec3(0x1f1)['concat'](_0x284284,'\x20')[_0x3d0ec3(0x34b)](_0x4faab1||'')['trim'](),_0x50a359=M[_0x3d0ec3(0x263)]('_'[_0x3d0ec3(0x34b)](Ut()));return ye(_0x4b4ec5,''[_0x3d0ec3(0x34b)](_0x284284),{'defIds':_0x4b4ec5[_0x3d0ec3(0x285)],'idSuffix':_0x50a359[_0x3d0ec3(0x174)]},E({'ref':_0x475b93,'className':_0x1f9794},_0x40fead),_0x1912bf);});function ye(_0x1328a1,_0x52f013,_0xbd2199,_0x56950c,_0x29862e){const _0x2b59cf=_0x49483b;return M[_0x2b59cf(0x258)](_0x1328a1[_0x2b59cf(0x204)],E(E({'key':_0x52f013},Rt(_0x1328a1,_0xbd2199,_0x29862e)),_0x56950c),(Dt(_0x1328a1,_0xbd2199)['children']||[])[_0x2b59cf(0x1ae)](function(_0x4d029d,_0x25fbca){const _0x45fe4a=_0x2b59cf;return ye(_0x4d029d,''['concat'](_0x52f013,'-')[_0x45fe4a(0x34b)](_0x1328a1[_0x45fe4a(0x204)],'-')['concat'](_0x25fbca),_0xbd2199,void 0x0,_0x29862e);}));}function Rt(_0x3abc97,_0x59a0e9,_0x4d7594){const _0x2d7d13=_0x49483b;var _0x54c944=E({},_0x3abc97['attrs']);_0x4d7594!=null&&_0x4d7594['colorChannel1']&&_0x54c944[_0x2d7d13(0x299)]==='colorChannel1'&&(_0x54c944['fill']=_0x4d7594[_0x2d7d13(0x349)]),_0x3abc97[_0x2d7d13(0x204)]==='mask'&&_0x54c944['id']&&(_0x54c944['id']=_0x54c944['id']+_0x59a0e9[_0x2d7d13(0x116)]),Object[_0x2d7d13(0x268)](_0x54c944)[_0x2d7d13(0x32e)](function(_0x1ef8ee){const _0x860784=_0x2d7d13;var _0x459f69=_0x1ef8ee[0x0],_0x10465c=_0x1ef8ee[0x1];_0x459f69===_0x860784(0x2da)&&typeof _0x10465c==_0x860784(0x21d)&&(_0x54c944[_0x459f69]=_0x10465c[_0x860784(0x376)](/url\(#(.*)\)/,_0x860784(0x118)['concat'](_0x59a0e9[_0x860784(0x116)],')')));});var _0x1dd8cb=_0x59a0e9[_0x2d7d13(0x285)];return!_0x1dd8cb||_0x1dd8cb[_0x2d7d13(0x22f)]===0x0||(_0x3abc97[_0x2d7d13(0x204)]===_0x2d7d13(0x252)&&_0x54c944['xlink:href']&&(_0x54c944[_0x2d7d13(0x318)]=_0x54c944[_0x2d7d13(0x318)]+_0x59a0e9[_0x2d7d13(0x116)]),Object[_0x2d7d13(0x268)](_0x54c944)[_0x2d7d13(0x32e)](function(_0x5bd791){const _0x236167=_0x2d7d13;var _0x4937cf=_0x5bd791[0x0],_0x548a8f=_0x5bd791[0x1];typeof _0x548a8f==_0x236167(0x21d)&&(_0x54c944[_0x4937cf]=_0x548a8f[_0x236167(0x376)](/url\(#(.*)\)/,_0x236167(0x118)[_0x236167(0x34b)](_0x59a0e9[_0x236167(0x116)],')')));})),_0x54c944;}function Dt(_0x16dda7,_0x53c4a7){const _0x31a25b=_0x49483b;var _0x4c2f4b,_0x42e5b9=_0x53c4a7[_0x31a25b(0x285)];return!_0x42e5b9||_0x42e5b9['length']===0x0?_0x16dda7:_0x16dda7[_0x31a25b(0x204)]==='defs'&&(!((_0x4c2f4b=_0x16dda7['children'])===null||_0x4c2f4b===void 0x0)&&_0x4c2f4b['length'])?E(E({},_0x16dda7),{'children':_0x16dda7[_0x31a25b(0x26a)][_0x31a25b(0x1ae)](function(_0x2fe9a2){const _0x682d7=_0x31a25b;return typeof _0x2fe9a2[_0x682d7(0x28a)]['id']==_0x682d7(0x21d)&&_0x42e5b9&&_0x42e5b9[_0x682d7(0x159)](_0x2fe9a2['attrs']['id'])>-0x1?E(E({},_0x2fe9a2),{'attrs':E(E({},_0x2fe9a2[_0x682d7(0x28a)]),{'id':_0x2fe9a2[_0x682d7(0x28a)]['id']+_0x53c4a7[_0x682d7(0x116)]})}):_0x2fe9a2;})}):_0x16dda7;}function Ut(){const _0x4cb155=_0x49483b;return Math[_0x4cb155(0x273)]()[_0x4cb155(0x237)](0x24)[_0x4cb155(0x1a7)](0x2,0x8);}be[_0x49483b(0x184)]=_0x49483b(0x355);var Nt={'tag':'svg','attrs':{'fill':_0x49483b(0x31a),'viewBox':_0x49483b(0x361),'width':'1em','height':'1em'},'children':[{'tag':'g','attrs':{'clipPath':'url(#off-line-single_clip0_910_343)'},'children':[{'tag':'path','attrs':{'stroke':_0x49483b(0x2fa),'d':_0x49483b(0x239),'strokeLinecap':_0x49483b(0x371),'strokeLinejoin':_0x49483b(0x371),'strokeWidth':1.2}}]},{'tag':'defs','attrs':{},'children':[{'tag':'clipPath','attrs':{'id':_0x49483b(0x278)},'children':[{'tag':_0x49483b(0x286),'attrs':{'fill':_0x49483b(0x271),'d':_0x49483b(0x11d)}}]}]}],'defIds':[_0x49483b(0x278)]},$e=M[_0x49483b(0x28e)](function(_0x169e86,_0x2cde55){const _0x202271=_0x49483b;return M['createElement'](be,Object[_0x202271(0x17c)]({},_0x169e86,{'id':_0x202271(0x289),'ref':_0x2cde55,'icon':Nt}));});$e[_0x49483b(0x184)]=_0x49483b(0x391);var Mt={'tag':_0x49483b(0x211),'attrs':{'fill':_0x49483b(0x31a),'viewBox':_0x49483b(0x384),'width':'1em','height':_0x49483b(0x35c)},'children':[{'tag':'g','attrs':{'clipPath':_0x49483b(0x1c8)},'children':[{'tag':_0x49483b(0x286),'attrs':{'stroke':'currentColor','d':_0x49483b(0x250),'strokeLinecap':_0x49483b(0x371),'strokeLinejoin':_0x49483b(0x371),'strokeWidth':1.2}}]},{'tag':_0x49483b(0x322),'attrs':{},'children':[{'tag':'clipPath','attrs':{'id':_0x49483b(0x1b8)},'children':[{'tag':_0x49483b(0x286),'attrs':{'fill':_0x49483b(0x271),'d':_0x49483b(0x11d),'transform':_0x49483b(0x19d)}}]}]}],'defIds':[_0x49483b(0x1b8)]},xe=M[_0x49483b(0x28e)](function(_0xcaa530,_0x3e8947){const _0x443894=_0x49483b;return M['createElement'](be,Object[_0x443894(0x17c)]({},_0xcaa530,{'id':_0x443894(0x208),'ref':_0x3e8947,'icon':Mt}));});function _0x2197(){const _0x37c93b=['Workbook','@univerjs/network','createElement','session.collaboration-timeout','_localeService','text','set','triggerDblclick','COLORS','removeParam','complete','HEADER_MENU','collabStatus.syncing','useRef','LOGIN_FAILED','_collabSessionService','@univerjs/rpc','mutations','entries','Rect','children','SheetSkeletonManagerService','executionId','Shape','_drawAnchor','@univerjs/engine-render','@univerjs/sheets','#fff','takeUntil','random','_disabled','transformByState','getCurrentSelections','CollaborationSocketService','off-line-single_clip0_910_343','[CollaborationDataLoaderController]','NOT_COLLAB','_initEntityListener','flatMap','DocSkeletonManagerService','ticket','_themeService','_docSkeletonManagerService','gold400','_eventUnsubscribe','APPLY_PERMISSION_DENIED','top','defIds','path','symbol','_hideTimer','off-line-single','attrs','editingUnit','getValue','_hover','forwardRef','_refRangeService','setInterval','stringify','DOC_RANGE_TYPE','onlineStatus','getCurrentRevOfUnit','onPointerEnter$','SOCKET_FAILED_RETRY','_getAnchorBounding','DocCollaborationEntity','fill','setAlpha','selections','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','YUUMI_NO_CUBOID_FOR_QUESTION','onPointerMove$','debounceTime','_uiPartsService','touchDependencies','DocSelectionManagerService','transformSelections','DocIMEInputManagerService','transformMutationsWithChangeset','TEXT_RANGE_LAYER_INDEX','startColumn','MemberService','HTTPService','getViewport','subunit','transformMutation','NodePositionConvertToCursor','mapTo','includes','_dataLoaderService','setParam','Disposable','executeCommand','collabCursorState$','_backgroundColor','min','transform','_cursor','_onCursorUpdate','registerRefRange','registerRenderModule','getCellPositionByOffset','debug','_getSaveTimeout','USERS_LEAVE','activeSheet$','TEXT','disposeUnit','TOO_MANY_REQUESTS','DataLoaderService','SetWorksheetActivateCommand','transformStateCache','addObject','WebSocketService','getActiveRange','with','dispose$','className','PERMISSION_DENIED','status$','_collabCursorController','backgroundColor','Optional','427554ILYCmE','getUnitStatus$','CollaborationUIEventId','ALREADY_EXISTS','onStarting','addObjects','_colorIndex','subUnitId','mask','newValue','pipe','closePath','EffectRefRangId','cursorInfo','_beforeCloseService','_getScale','div','_drawRectRange','_selfUnitIDs','assignAColorForMemberID','_scheduleClearOtherTimer','split','setConfig','_docTransformStateCacheService','makeDirty','_anchorDot','UNIVER_SHEET','connectInjector','_onCursorDelete','NOT_FOUND','2vXNWPM','_lastPointer','_updateCollabCursors','REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY','4gyPxQZ','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','_docSkeleton','function','origin','UNIVER_DOC','currentColor','ICommandService','@univerjs-pro/collaboration','uni.network.url-service','_heartbeatTimer','ISocketService','fromEventSubject','memberID','EMAIL_HAS_BEEN_BOUND','getUndoRedoMutationParamsCache','_onRefRangeChange','getTypeOfUnitAdded$','getActiveSheet','_colorAssignService','getCollabEntity$','YUUMI_RATE_OVER_LIMIT','_initEvent','UNDEFINED','898523TblDXG','registerBeforeClose','useObservable','_textBubble','APPLY_REJECT','UNAUTHENTICATED','getSheetId','collabStatus.synced','sheetID','runOnServer','switchMap','SNAPSHOT_INVALID_SNAPSHOT','xlink:href','_handleLeaveEvent','none','_render','_init','_docTransformSelectionsService','unitId','...','isActive','@univerjs/design','defs','clearInterval','CollaborationStatusDisplay','_handleHover','UPDATE_CURSOR','_scheduleHeartbeat','_initStatusListener','getOffsetConfig','_status$','Error','useDependency','YUUMI_ASYNCIO_CANCELLED','forEach','_roomMembers$','SNAPSHOT_HAS_BEEN_REMOVED','_startDocCollabCursor','asObservable','_syncEditingCollabCursorService','delete','result','isArray','getSheetBySheetId','_messageService','purple300','IUIPartsService','_updateSubUnitFromURLParams','_collabCursorState$','_drawTextRange','_entities','BehaviorSubject','currentSkeleton$','fillRule','undoState','parse','syncEditingCollabCursor','prototype','all','_commandService','resize','colorChannel1','2444346fSBGqj','concat','_ensureSubject','DocStateChangeManagerService','_injector','_getSessionTicket','_removeCollabCursors','getCollabCursors$','from','YUUMI_URL_COL_OUT_OF_RANGE','JOIN_ROOM_FAILED','UniverIcon','black','APPLY_REVISION_CONFILICT','_transformUndoRedoStack','@univerjs/drawing','_configService','_send','1em','handleInsertRow','onRendered','getColor','IConfigService','0\x200\x2016\x2016','getFocusedUnit','IUniverInstanceService','storage','99656uAWNfO','_saveTaskMap','NodePositionConvertToRectRange','clsx','_docTransformIMECacheService','INVALID_INVITE_CODE','DesktopCollaborationStatusDisplayController','endColumn','_cursors','extend','bottom','ILogService','round','ITransformService','VIEW_MAIN','fillStyle','Unknown\x20user','replace','_transformPreviousActiveRange','init','verdancy600','_docClipboardService','focused$','online','find','registerDependencies','_createSocketURL','DisposableCollection','startRow','LOCAL_CACHE_INTERVAL_KEY','UnitStatus','0\x200\x2017\x2016','values','RemoteUniscriptService','_cursorInfo$','handleIRemoveRow','endRow','IMessageService','call','_draw','width','ColorKit','WebURLService','onPointerLeave$','OffLineSingle','_initStatusComponent','420mBMuDy','searchParams','fromEvent','univer-flex\x20univer-items-center','size','setActiveRange','handleMoveRange','addHandlerCallback','INVITE_CODE_REQUIRED','clearTimeout','beginPath','_memberService','_clearOtherTimers','unitID','idSuffix','_renderManagerService','url(#$1','push','collab-text-range-','ThemeService','_updateLocalCursor','M0\x200H16V16H0z','YUUMI_UNABLE_LOAD_URL','getTypeOfUnitDisposed$','ISnapshotServerService','IDocClipboardService','application/json','CollaborationSessionService','FromArray','getMember','205435onuCoX','_online','_config','CommandType','BuiltInUIPart','event$','DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT','handleDeleteRangeMoveUp','eventID','_transformHistoryAndStateStack','setTimeout','getLocalCacheKey','name','getDocRanges','Plugin','deepClone','SheetCollabCursorShape','invokeId','CHANGESET_REVISION_CONFILICT','OnLineSingle','defineProperty','href','registerComponent','WebBrowserSingleActiveUnitService','getUnhiddenWorksheets','isTransformMutationsWithChangesetSuccess','onCommandExecuted','updateOfflineData','CLOSE_ROOM','toDisposable','permission.content','_univerInstanceService','doc.mutation.rich-text-editing','ranges','handleInsertRangeMoveRight','jsxs','_registerRenderDependencies','IRenderManagerService','unit','ILocalCacheService','data','@univerjs/sheets-ui','arc','params','getSkeleton','_sheetSkeletonManagerService','_handleEvent','getAncestorScale','icon','then','_anchor','indexOf','pluginName','Tools','collaboration-client.offline-data-not-saved','unshift','replaceDocRanges','setUndoRedoMutationParamsCache','next','InsertRangeMoveDownCommandId','skeleton','_docStateChangeManagerService','_toggleOnline','selection','AWAITING','[RemoteUniscriptService]:\x20no\x20focused\x20unit','cursorInfo$','whenReady','collabStatus.conflict','getOwnPropertyDescriptor','key','session.connection-failed','_initDependencies','INVITE_CODE_HAS_BEEN_UES','currentTheme$','Subject','collab-rect-range-','unload','current','subscribe','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','_removeClearOtherTimer','collaboration.single-unit.warning','has','RxDisposable','startsWith','assign','show','Rectangle','setItem','transformRemoteChangeset','_imageIoService','_collaborationUIEventService','getCoordByCell','displayName','CONFLICT','permission.title','_initResize','sheetId','CollaborationController','/run/','7286013jJhkDv','getUnitId','_logService','history','_context','_refreshCollabCursors','getCurrent','jiqing500','APPLY_DUPLICATED','_unitOnClients','collabStatus.notCollab','APPLY_NON_SEQUENTIAL_REVISION','handleInsertRangeMoveDown','_instanceService','Inject','_id','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','font','translate(.97)','urlChange$','_color','@univerjs/docs','filter','getRangePointData','handleIRemoveCol','UNRECOGNIZED','_notificationService','_unitStatus','substring','CollaborationDataLoaderController','apply','getCurrentUnitForType','_toggleOffline','MessageType','InsertColCommandId','map','RegularPolygon','throttleTime','add','createSocket','_transformService','code','LICENSE_DISTRO_REJECTED','pushState','RECT','on-line-single_clip0_910_349','entityInit$','RichTextEditingMutation','collab-client.tooltip.reconnect','textRanges','get','getRelativeToViewportCoord','color','Vector2','2186049aYncPU','_initCommandExecutedListener','_revisionService','fillText','subscribeEvent','ACTIVE_UNIT_EVENT_CHANNEL','_entityInit$','url(#on-line-single_clip0_910_349)','Tooltip','rxjs/operators','send','toRgbString','roomMembers','SessionStatus','getItem','row','_scheduleSaving','DeleteRangeMoveUpCommandId','m1Prime','roomMembers$','IImageIoService','CollaborationUIEventService','column','labelPosition','hovered','ENSURE_SNAPSHOT_EXECUTION','lineTo','replaceState','_docSyncEditingCollabCursorService','enableLocalCache','_name','loadOfflineData','unsubscribe','_session','sessionTicket','_assignedColors','height','type','DEFAULT_WS_SESSION_TICKET_URL','collabStatus.offline','debounce','shareReplay','SetDocZoomRatioOperation','getMergeData','m2Prime','red300','Injector','_urlService','univerjs-icon\x20univerjs-icon-','restore','_getMergeRange','USER_NOT_INVITED_CODE','SOCKET_FAILED','getRenderById','createInstance','runId','merge','search','session.will-retry','LICENSE_IMPORT_SIZE_EXCEEDED','_range','_labelPosition','OTHER_CLIENTS_EDITING','disposeWithMe','_shapes','dispose','CollaborationStatus','tag','body','onMouseMove','IBeforeCloseService','on-line-single','getOwnPropertySymbols','exhaustSavingTask','CollaborationEvent','SUBMIT_CHANGESET_TIMEOUT','LocaleService','error','_cursorShapes','save','svg','findNodePositionByCharIndex','measureText','BrowserCollaborationSocketService','univer-online-status','max','univer-online-status-icon','MOBILE_HAS_BEEN_BOUND','INVITE_CODE_ALREADY_BOUND','ONLINE','_updateURLWithCurrentState','post','string','WECHAT_HAS_BEEN_BOUND','CONNECTOR_DATA_TOO_LARGE','LICENSE_MAX_UNITS_EXCEEDED','SheetsSelectionsService','disableLocalCache','_saveCache','isTransformMutationFailure','drawWith','_scene','evenodd','DeleteRangeMoveLeftCommandId','_collaborationController','_hovered','location','createIdentifier','_startSheetCollabCursor','OFFLINE','length','runRefRangeMutations','hasOwnProperty','redoState','requireSession','getConfig','@univerjs/docs-ui','saveImage','toString','RevisionService','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','generateRandomId','sessionStatus$','UniverCollaborationClientUIPlugin','INTERNAL_ERROR','Warning','_registerDependencies','addClipboardHook','PY_RUNTIME_SCRIPT_ERROR','@univerjs/engine-formula','SetTextSelectionsOperation','Module','SetSelectionsOperation','_handleJoinEvent','@univerjs/ui','getParam','MUTATION','UniverInstanceType','_localStorageService','_cachedData','range','IURLService','jsx','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','serializeRangeWithSheet','use','setShapeProps','setStateCache','_httpService'];_0x2197=function(){return _0x37c93b;};return _0x2197();}xe[_0x49483b(0x184)]=_0x49483b(0x139);const Lt=_0x49483b(0x217),Pt='univer-online-status-title',wt=_0x49483b(0x215),At='univer-online',yt='univer-offline',H={'onlineStatusIcon':Lt,'onlineStatusTitle':Pt,'onlineStatus':wt,'online':At,'offline':yt};function $t(_0x59aa88){const _0x55c795=_0x49483b;switch(_0x59aa88){case u[_0x55c795(0x203)][_0x55c795(0x22e)]:return _0x55c795(0x1e8);case u[_0x55c795(0x203)][_0x55c795(0x185)]:return _0x55c795(0x16a);case u['CollaborationStatus']['FETCH_MISS']:return'collabStatus.fetchMiss';case u[_0x55c795(0x203)]['NOT_COLLAB']:return _0x55c795(0x195);case u[_0x55c795(0x203)][_0x55c795(0x166)]:case u['CollaborationStatus']['AWAITING_WITH_PENDING']:return _0x55c795(0x262);case u[_0x55c795(0x203)]['SYNCED']:case u['CollaborationStatus']['PENDING']:return _0x55c795(0x313);}}function je(_0x1cef5a){const _0x2d52e4=_0x49483b,{status$:_0x3afb07}=_0x1cef5a,_0x50481e=O[_0x2d52e4(0x30e)](_0x3afb07,u[_0x2d52e4(0x203)][_0x2d52e4(0x27a)]),_0x32204b=O[_0x2d52e4(0x32c)](a[_0x2d52e4(0x20d)]),_0x288627=O[_0x2d52e4(0x32c)](u['CollaborationSessionService']),_0x56c1e7=_0x50481e!==u[_0x2d52e4(0x203)][_0x2d52e4(0x22e)],_0x50f316=_0x32204b['t']($t(_0x50481e)),_0x206d6a=T['clsx'](H[_0x2d52e4(0x293)],{[H[_0x2d52e4(0x37c)]]:_0x56c1e7,[H['offline']]:!_0x56c1e7}),_0xd12e11=_0x56c1e7?P[_0x2d52e4(0x24f)](xe,{}):P[_0x2d52e4(0x24f)]($e,{}),_0x33640e=M['useCallback'](()=>{_0x56c1e7||_0x288627['reconnect']();},[_0x56c1e7,_0x288627]);function _0x32ee89(){const _0x19baa9=_0x2d52e4;return P[_0x19baa9(0x149)](_0x19baa9(0x2e2),{'className':T[_0x19baa9(0x368)](_0x206d6a,_0x19baa9(0x10b)),'onClick':_0x33640e,'children':[P[_0x19baa9(0x24f)](_0x19baa9(0x2e2),{'className':H['onlineStatusIcon'],'children':_0xd12e11}),P[_0x19baa9(0x24f)]('div',{'className':H['onlineStatusTitle'],'children':_0x50f316})]});}return _0x56c1e7?_0x32ee89():P['jsx'](T[_0x2d52e4(0x1c9)],{'title':_0x32204b['t'](_0x2d52e4(0x1bb)),'children':_0x32ee89()});}var xt=Object[_0x49483b(0x16b)],jt=(_0x386a5c,_0x21c743,_0x5a2d6f,_0x2cc752)=>{const _0x32e477=_0x49483b;for(var _0x319e0d=_0x2cc752>0x1?void 0x0:_0x2cc752?xt(_0x21c743,_0x5a2d6f):_0x21c743,_0x194cb0=_0x386a5c[_0x32e477(0x22f)]-0x1,_0x2fb0ad;_0x194cb0>=0x0;_0x194cb0--)(_0x2fb0ad=_0x386a5c[_0x194cb0])&&(_0x319e0d=_0x2fb0ad(_0x319e0d)||_0x319e0d);return _0x319e0d;},X=(_0x55a73c,_0x49a5b2)=>(_0x1637aa,_0x3d6256)=>_0x49a5b2(_0x1637aa,_0x3d6256,_0x55a73c);exports[_0x49483b(0x36b)]=class extends a[_0x49483b(0x2b2)]{constructor(_0x129ed2,_0x1dd9d1,_0x5bc8a0,_0x5c7123){const _0x25b80a=_0x49483b;super(),_(this,_0x25b80a(0x32a),new d[(_0x25b80a(0x33f))](u[_0x25b80a(0x203)][_0x25b80a(0x27a)])),(this['_univerInstanceService']=_0x129ed2,this[_0x25b80a(0x34e)]=_0x1dd9d1,this[_0x25b80a(0x229)]=_0x5bc8a0,this['_uiPartsService']=_0x5c7123,this[_0x25b80a(0x392)](),this[_0x25b80a(0x328)]());}[_0x49483b(0x328)](){const _0x38500d=_0x49483b;this[_0x38500d(0x200)](this[_0x38500d(0x145)][_0x38500d(0x37b)][_0x38500d(0x2dc)](d[_0x38500d(0x316)](()=>{const _0x44ae50=_0x38500d,_0x14bf2c=this[_0x44ae50(0x145)][_0x44ae50(0x362)]();return _0x14bf2c?this['_collaborationController'][_0x44ae50(0x308)](_0x14bf2c['getUnitId']()):d['of'](null);}),d['switchMap'](_0x3cdca8=>_0x3cdca8?_0x3cdca8[_0x38500d(0x2ce)]:d['of'](u['CollaborationStatus']['NOT_COLLAB'])))['subscribe'](_0x4cbd1c=>{const _0x3fda54=_0x38500d;this['_status$'][_0x3fda54(0x160)](_0x4cbd1c);}));}['_initStatusComponent'](){const _0x163ffd=_0x49483b;this['disposeWithMe'](this[_0x163ffd(0x2a0)][_0x163ffd(0x13c)](O[_0x163ffd(0x12a)][_0x163ffd(0x261)],()=>O[_0x163ffd(0x2ed)](Bt({'status$':this[_0x163ffd(0x32a)]['asObservable']()}),this[_0x163ffd(0x34e)])));}},exports['DesktopCollaborationStatusDisplayController']=jt([X(0x0,a[_0x49483b(0x363)]),X(0x1,a[_0x49483b(0x199)](a[_0x49483b(0x1ef)])),X(0x2,a[_0x49483b(0x199)](u[_0x49483b(0x189)])),X(0x3,O[_0x49483b(0x33a)])],exports['DesktopCollaborationStatusDisplayController']);function Bt(_0x440415){const {status$:_0x55011c}=_0x440415;return function(){const _0x27aca8=_0x6961;return P[_0x27aca8(0x24f)](je,{'status$':_0x55011c});};}var kt=Object['getOwnPropertyDescriptor'],Ht=(_0xe99687,_0x29a516,_0x114571,_0x4dd304)=>{const _0x52500c=_0x49483b;for(var _0x1d9682=_0x4dd304>0x1?void 0x0:_0x4dd304?kt(_0x29a516,_0x114571):_0x29a516,_0x5a6a3b=_0xe99687[_0x52500c(0x22f)]-0x1,_0x2964af;_0x5a6a3b>=0x0;_0x5a6a3b--)(_0x2964af=_0xe99687[_0x5a6a3b])&&(_0x1d9682=_0x2964af(_0x1d9682)||_0x1d9682);return _0x1d9682;},y=(_0x5ef0c2,_0x183e8d)=>(_0x536ada,_0x2b29e3)=>_0x183e8d(_0x536ada,_0x2b29e3,_0x5ef0c2);let z=class extends a['Disposable']{constructor(_0x101a58,_0x46a369,_0x4e4fcc,_0x2bfae6,_0x14da06,_0xee4227){const _0x17abfa=_0x49483b;super(),this[_0x17abfa(0x2e0)]=_0x101a58,this['_localCacheService']=_0x46a369,this[_0x17abfa(0x182)]=_0x4e4fcc,this[_0x17abfa(0x338)]=_0x2bfae6,this[_0x17abfa(0x1a5)]=_0x14da06,this['_localeService']=_0xee4227,this['_setupBeforeClosingHandler'](),this['_initEvent']();}['_setupBeforeClosingHandler'](){const _0x45ccc4=_0x49483b;this[_0x45ccc4(0x200)](this[_0x45ccc4(0x2e0)][_0x45ccc4(0x30d)](()=>{const _0x5d4609=_0x45ccc4;if(this['_localCacheService']['saveTaskMap']['size'])return this[_0x5d4609(0x25a)]['t'](_0x5d4609(0x15c));}));}[_0x49483b(0x30a)](){const _0x2d95aa=_0x49483b;this[_0x2d95aa(0x200)](this[_0x2d95aa(0x182)][_0x2d95aa(0x12b)]['subscribe'](_0x5d3107=>{const _0xead263=_0x2d95aa;_0x5d3107['id']===u[_0xead263(0x2d4)]['OTHER_CLIENT_EDITING']&&this[_0xead263(0x338)][_0xead263(0x17d)]({'type':T[_0xead263(0x1ac)]['Warning'],'content':this[_0xead263(0x25a)]['t'](_0xead263(0x178))}),_0x5d3107['id']===u[_0xead263(0x2d4)][_0xead263(0x142)]&&this[_0xead263(0x338)][_0xead263(0x17d)]({'type':T['MessageType'][_0xead263(0x23e)],'content':this[_0xead263(0x25a)]['t']('collaboration.closeRoom')}),_0x5d3107['id']===u[_0xead263(0x2d4)][_0xead263(0x2cd)]&&this['_notificationService']['show']({'title':this[_0xead263(0x25a)]['t'](_0xead263(0x186)),'content':this[_0xead263(0x25a)]['t'](_0xead263(0x144)),'type':_0xead263(0x20e),'duration':0x0}),_0x5d3107['id']===u['CollaborationUIEventId'][_0xead263(0x185)]&&this[_0xead263(0x338)][_0xead263(0x17d)]({'type':T[_0xead263(0x1ac)][_0xead263(0x32b)],'content':this['_localeService']['t']('collaboration.closeRoom')+'('+_0x5d3107[_0xead263(0x14e)]+')'}),_0x5d3107['id']===u[_0xead263(0x2d4)][_0xead263(0x354)]&&this['_messageService'][_0xead263(0x17d)]({'type':T['MessageType']['Warning'],'content':this[_0xead263(0x25a)]['t'](_0x5d3107[_0xead263(0x14e)]||'')}),_0x5d3107['id']===u[_0xead263(0x2d4)][_0xead263(0x296)]&&this['_messageService'][_0xead263(0x17d)]({'type':T['MessageType'][_0xead263(0x23e)],'content':this[_0xead263(0x25a)]['t'](_0xead263(0x1fb))}),_0x5d3107['id']===u['CollaborationUIEventId'][_0xead263(0x1f5)]&&this['_messageService'][_0xead263(0x17d)]({'type':T['MessageType'][_0xead263(0x32b)],'content':this['_localeService']['t'](_0xead263(0x16d))}),_0x5d3107['id']===u[_0xead263(0x2d4)][_0xead263(0x20c)]&&this['_messageService'][_0xead263(0x17d)]({'type':T[_0xead263(0x1ac)][_0xead263(0x32b)],'content':this['_localeService']['t'](_0xead263(0x259))});}));}};z=Ht([y(0x0,O[_0x49483b(0x207)]),y(0x1,u[_0x49483b(0x14d)]),y(0x2,a[_0x49483b(0x199)](u[_0x49483b(0x1d6)])),y(0x3,O['IMessageService']),y(0x4,O['INotificationService']),y(0x5,a['Inject'](a[_0x49483b(0x20d)]))],z);const Ft='collaboration-client-ui.config',Ne={},Ee=a[_0x49483b(0x22c)](_0x49483b(0x2fd));var Wt=Object[_0x49483b(0x16b)],Yt=(_0x2e6340,_0x1a1108,_0x467390,_0x200177)=>{const _0x557bee=_0x49483b;for(var _0x2223a1=_0x200177>0x1?void 0x0:_0x200177?Wt(_0x1a1108,_0x467390):_0x1a1108,_0x440cdd=_0x2e6340[_0x557bee(0x22f)]-0x1,_0x34eb0e;_0x440cdd>=0x0;_0x440cdd--)(_0x34eb0e=_0x2e6340[_0x440cdd])&&(_0x2223a1=_0x34eb0e(_0x2223a1)||_0x2223a1);return _0x2223a1;},F=(_0x30a94f,_0x34dc2d)=>(_0x4fc5d3,_0x351801)=>_0x34dc2d(_0x4fc5d3,_0x351801,_0x30a94f);exports[_0x49483b(0x1a8)]=class extends a[_0x49483b(0x17a)]{constructor(_0x1ee016,_0x111d15,_0x593ba6,_0x129584,_0x3ccf74){const _0x2e452f=_0x49483b;super(),this[_0x2e452f(0x1f0)]=_0x1ee016,this[_0x2e452f(0x18d)]=_0x111d15,this['_commandService']=_0x593ba6,this[_0x2e452f(0x2b0)]=_0x129584,_0x3ccf74?_0x3ccf74==null||_0x3ccf74[_0x2e452f(0x169)]()[_0x2e452f(0x157)](()=>this[_0x2e452f(0x31c)]()):(this['_logService'][_0x2e452f(0x2bd)](_0x2e452f(0x279),_0x2e452f(0x176)),this['_init']());}async[_0x49483b(0x31c)](){const _0xb8868=_0x49483b,_0x3590f0=this[_0xb8868(0x1f0)][_0xb8868(0x248)](_0xb8868(0x14c)),_0x5f387b=this[_0xb8868(0x1f0)][_0xb8868(0x248)](_0xb8868(0x1e6)),_0x212e67=this[_0xb8868(0x1f0)][_0xb8868(0x248)](_0xb8868(0x2ab));if(!_0x3590f0||!_0x5f387b){this[_0xb8868(0x18d)][_0xb8868(0x2bd)](_0xb8868(0x279),'No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.');return;}const _0x39774c=await this[_0xb8868(0x2b0)]['loadUnit'](_0x3590f0,Number(_0x5f387b),_0x212e67);_0x39774c&&_0x39774c instanceof a[_0xb8868(0x256)]&&this['_setupSubUnitSync'](_0x39774c);}async['_setupSubUnitSync'](_0x4d71ea){const _0x2c2ebc=_0x49483b;await this['_updateSubUnitFromURLParams'](_0x4d71ea),_0x4d71ea[_0x2c2ebc(0x2c0)]['pipe'](d[_0x2c2ebc(0x272)](this['dispose$']))['subscribe'](_0x4574c3=>{const _0x23a979=_0x2c2ebc;_0x4574c3&&this[_0x23a979(0x21b)](_0x4574c3);}),this[_0x2c2ebc(0x1f0)][_0x2c2ebc(0x19e)]['pipe'](d[_0x2c2ebc(0x272)](this[_0x2c2ebc(0x2cb)]))[_0x2c2ebc(0x175)](()=>this['_updateSubUnitFromURLParams'](_0x4d71ea));}[_0x49483b(0x21b)](_0x24d493,_0x262b77=!0x1){const _0x1327be=_0x49483b,_0x16bb7a=this['_urlService'][_0x1327be(0x248)](_0x1327be(0x2ab));_0x24d493['getSheetId']()!==_0x16bb7a&&this[_0x1327be(0x1f0)][_0x1327be(0x2b1)](_0x1327be(0x2ab),_0x24d493['getSheetId'](),_0x262b77);}async[_0x49483b(0x33b)](_0x2a6c56){const _0x46f3bd=_0x49483b;var _0x395cae;const _0x4509d4=this[_0x46f3bd(0x1f0)][_0x46f3bd(0x248)](_0x46f3bd(0x2ab));if(!_0x4509d4||!_0x2a6c56[_0x46f3bd(0x337)](_0x4509d4)){const _0x224854=_0x2a6c56[_0x46f3bd(0x13e)]()[0x0],_0x3655c4=_0x2a6c56[_0x46f3bd(0x337)](_0x224854);if(!_0x3655c4)return;this[_0x46f3bd(0x21b)](_0x3655c4,!0x0),await this[_0x46f3bd(0x347)][_0x46f3bd(0x2b3)](g[_0x46f3bd(0x2c5)]['id'],{'unitId':_0x2a6c56[_0x46f3bd(0x18c)](),'subUnitId':_0x224854});return;}((_0x395cae=_0x2a6c56[_0x46f3bd(0x306)]())==null?void 0x0:_0x395cae[_0x46f3bd(0x312)]())!==_0x4509d4&&await this[_0x46f3bd(0x347)][_0x46f3bd(0x2b3)](g[_0x46f3bd(0x2c5)]['id'],{'unitId':_0x2a6c56['getUnitId'](),'subUnitId':_0x4509d4});}},exports[_0x49483b(0x1a8)]=Yt([F(0x0,Ee),F(0x1,a[_0x49483b(0x370)]),F(0x2,a[_0x49483b(0x2fb)]),F(0x3,a['Inject'](u[_0x49483b(0x2c4)])),F(0x4,a[_0x49483b(0x2d1)](Ke['IRemoteInstanceService']))],exports['CollaborationDataLoaderController']);var Vt=Object[_0x49483b(0x16b)],Xt=(_0x4ff8b4,_0x2f0d36,_0x36477d,_0x19c608)=>{const _0x5678df=_0x49483b;for(var _0x40bdcd=_0x19c608>0x1?void 0x0:_0x19c608?Vt(_0x2f0d36,_0x36477d):_0x2f0d36,_0x4ae256=_0x4ff8b4[_0x5678df(0x22f)]-0x1,_0x3a64ea;_0x4ae256>=0x0;_0x4ae256--)(_0x3a64ea=_0x4ff8b4[_0x4ae256])&&(_0x40bdcd=_0x3a64ea(_0x40bdcd)||_0x40bdcd);return _0x40bdcd;},le=(_0x593953,_0x2c44a8)=>(_0x4a64e2,_0x26cbc6)=>_0x2c44a8(_0x4a64e2,_0x26cbc6,_0x593953);let J=class{constructor(_0x21dfc5,_0x13d9f1,_0xf0057f){const _0xac88b7=_0x49483b;this[_0xac88b7(0x34e)]=_0x21dfc5,this[_0xac88b7(0x1b3)]=_0x13d9f1,this[_0xac88b7(0x117)]=_0xf0057f;}['transformIMECache'](_0x4b95be){this['_transformUndoRedoStack'](_0x4b95be),this['_transformPreviousActiveRange'](_0x4b95be);}[_0x49483b(0x180)](_0x39f279){const _0x27eb4c=_0x49483b,{unitID:_0x173497}=_0x39f279,_0x372371=this[_0x27eb4c(0x117)]['getRenderById'](_0x173497)[_0x27eb4c(0x2ca)](b[_0x27eb4c(0x2a4)]),{redoCache:_0x290a78}=_0x372371[_0x27eb4c(0x303)]();if(_0x290a78[_0x27eb4c(0x22f)]===0x0)return _0x39f279;let _0x26f843=a[_0x27eb4c(0x15b)][_0x27eb4c(0x135)](_0x39f279[_0x27eb4c(0x267)][0x0]);for(let _0x1ecfb7=0x0;_0x1ecfb7<_0x290a78[_0x27eb4c(0x22f)];_0x1ecfb7++){const _0x4f4eed={'id':'doc.mutation.rich-text-editing','params':{..._0x290a78[_0x1ecfb7]}},_0x5a0c87=this[_0x27eb4c(0x1b3)][_0x27eb4c(0x2ac)](_0x26f843,_0x4f4eed,!0x1);if(m['isTransformMutationFailure'](_0x5a0c87))throw _0x5a0c87['error'];_0x26f843=_0x5a0c87[_0x27eb4c(0x1d3)];}return{...a['Tools'][_0x27eb4c(0x135)](_0x39f279),'mutations':[_0x26f843]};}[_0x49483b(0x358)](_0x33f6b5){const _0x486047=_0x49483b,{unitID:_0x467fbd}=_0x33f6b5,_0x5d4836=this[_0x486047(0x117)]['getRenderById'](_0x467fbd)[_0x486047(0x2ca)](b[_0x486047(0x2a4)]),{undoCache:_0x2bdf3e,redoCache:_0x3d3ac0}=_0x5d4836[_0x486047(0x303)]();if(_0x2bdf3e[_0x486047(0x22f)]===0x0||_0x3d3ac0[_0x486047(0x22f)]===0x0)return;const _0x40fbc2=[],_0x52448c=[];let _0x463667=a[_0x486047(0x15b)][_0x486047(0x135)](_0x33f6b5[_0x486047(0x267)][0x0]),_0x2f67b7=a[_0x486047(0x15b)][_0x486047(0x135)](_0x33f6b5[_0x486047(0x267)][0x0]);for(let _0x30c2c1=_0x2bdf3e['length']-0x1;_0x30c2c1>=0x0;_0x30c2c1--){const _0x2bd460={'id':_0x486047(0x146),'params':{..._0x2bdf3e[_0x30c2c1]}},_0x183886={'id':_0x486047(0x146),'params':{..._0x3d3ac0[_0x30c2c1]}},_0x51d2b0=this[_0x486047(0x1b3)]['transformMutation'](_0x463667,_0x2bd460,!0x1),_0x50ed17=this['_transformService']['transformMutation'](_0x2f67b7,_0x183886,!0x1);if(m[_0x486047(0x224)](_0x51d2b0))throw _0x51d2b0[_0x486047(0x20e)];if(m[_0x486047(0x224)](_0x50ed17))throw _0x50ed17[_0x486047(0x20e)];_0x40fbc2[_0x486047(0x15d)](_0x51d2b0[_0x486047(0x1ed)]['params']),_0x52448c[_0x486047(0x15d)](_0x50ed17[_0x486047(0x1ed)][_0x486047(0x151)]),_0x463667=_0x51d2b0[_0x486047(0x1d3)],_0x2f67b7=_0x50ed17[_0x486047(0x1d3)];}_0x5d4836[_0x486047(0x15f)]({'undoCache':_0x40fbc2,'redoCache':_0x52448c});}[_0x49483b(0x377)](_0x39b392){const _0x2a4f5f=_0x49483b,{unitID:_0x187cad}=_0x39b392,_0x47fe71=this[_0x2a4f5f(0x117)][_0x2a4f5f(0x1f6)](_0x187cad)['with'](b[_0x2a4f5f(0x2a4)]),_0x3af502=_0x47fe71[_0x2a4f5f(0x2c9)]();if(_0x3af502==null)return;const _0x16275b=[{'id':_0x2a4f5f(0x146),'params':{'unitId':_0x39b392[_0x2a4f5f(0x115)],'actions':null,'textRanges':[_0x3af502]}}],_0x11ebf7=this[_0x2a4f5f(0x1b3)][_0x2a4f5f(0x2a5)](_0x39b392,_0x16275b);if(!m[_0x2a4f5f(0x13f)](_0x11ebf7))throw _0x11ebf7[_0x2a4f5f(0x20e)];const _0x6bd3c0=_0x11ebf7[_0x2a4f5f(0x1ed)][0x0][_0x2a4f5f(0x151)][_0x2a4f5f(0x1bc)];Array[_0x2a4f5f(0x336)](_0x6bd3c0)&&_0x6bd3c0[_0x2a4f5f(0x22f)]&&_0x47fe71[_0x2a4f5f(0x10d)](_0x6bd3c0[0x0]);}};J=Xt([le(0x0,a['Inject'](a[_0x49483b(0x1ef)])),le(0x1,m[_0x49483b(0x372)]),le(0x2,p['IRenderManagerService'])],J);var Gt=Object[_0x49483b(0x16b)],qt=(_0x32c256,_0x4297d7,_0xf47d30,_0x5bbb66)=>{const _0x28a732=_0x49483b;for(var _0x57d5b1=_0x5bbb66>0x1?void 0x0:_0x5bbb66?Gt(_0x4297d7,_0xf47d30):_0x4297d7,_0x1a7041=_0x32c256[_0x28a732(0x22f)]-0x1,_0x4e4361;_0x1a7041>=0x0;_0x1a7041--)(_0x4e4361=_0x32c256[_0x1a7041])&&(_0x57d5b1=_0x4e4361(_0x57d5b1)||_0x57d5b1);return _0x57d5b1;},_e=(_0x37b8b1,_0x1f7545)=>(_0x3cdb0c,_0x348ff8)=>_0x1f7545(_0x3cdb0c,_0x348ff8,_0x37b8b1);let Z=class{constructor(_0x4bb2bc,_0x3e581e,_0xf64b68){const _0x26abe0=_0x49483b;this[_0x26abe0(0x34e)]=_0x4bb2bc,this[_0x26abe0(0x1b3)]=_0x3e581e,this[_0x26abe0(0x163)]=_0xf64b68;}[_0x49483b(0x2c6)](_0x249809){const _0x286ae4=_0x49483b;this[_0x286ae4(0x12f)](_0x249809);}[_0x49483b(0x180)](_0x4c0302){const _0x3dad4e=_0x49483b,{unitID:_0x4782ca}=_0x4c0302,{collaboration:_0x7d27fa}=this['_docStateChangeManagerService']['getStateCache'](_0x4782ca);if(_0x7d27fa[_0x3dad4e(0x22f)]===0x0)return _0x4c0302;let _0x1afe82=a['Tools'][_0x3dad4e(0x135)](_0x4c0302[_0x3dad4e(0x267)][0x0]);for(let _0x3b95b3=0x0;_0x3b95b3<_0x7d27fa[_0x3dad4e(0x22f)];_0x3b95b3++){const _0x499ddc={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x7d27fa[_0x3b95b3][_0x3dad4e(0x31e)],..._0x7d27fa[_0x3b95b3][_0x3dad4e(0x232)]}},_0x4fd1ee=this['_transformService']['transformMutation'](_0x1afe82,_0x499ddc,!0x1);if(m['isTransformMutationFailure'](_0x4fd1ee))throw _0x4fd1ee['error'];_0x1afe82=_0x4fd1ee['m1Prime'];}return{...a[_0x3dad4e(0x15b)][_0x3dad4e(0x135)](_0x4c0302),'mutations':[_0x1afe82]};}[_0x49483b(0x12f)](_0x44fcc3){const _0x46085e=_0x49483b,{unitID:_0x13ffb4}=_0x44fcc3,{history:_0x1fb0c7,collaboration:_0x3b921e}=this[_0x46085e(0x163)]['getStateCache'](_0x13ffb4);if(_0x1fb0c7[_0x46085e(0x22f)]===0x0&&_0x3b921e[_0x46085e(0x22f)]===0x0)return;const _0x52b529=[],_0x32242b=[];let _0x8d789f=a[_0x46085e(0x15b)]['deepClone'](_0x44fcc3[_0x46085e(0x267)][0x0]),_0x804dd1=a[_0x46085e(0x15b)]['deepClone'](_0x44fcc3[_0x46085e(0x267)][0x0]);for(let _0x8de7a9=_0x1fb0c7[_0x46085e(0x22f)]-0x1;_0x8de7a9>=0x0;_0x8de7a9--){const _0x144271={'id':_0x46085e(0x146),'params':{'unitId':_0x1fb0c7[_0x8de7a9][_0x46085e(0x31e)],..._0x1fb0c7[_0x8de7a9][_0x46085e(0x342)]}},_0x44fe73={'id':_0x46085e(0x146),'params':{'unitId':_0x1fb0c7[_0x8de7a9][_0x46085e(0x31e)],..._0x1fb0c7[_0x8de7a9]['redoState']}},_0x2521fd=this[_0x46085e(0x1b3)][_0x46085e(0x2ac)](_0x8d789f,_0x144271,!0x1),_0x2d6543=this[_0x46085e(0x1b3)][_0x46085e(0x2ac)](_0x804dd1,_0x44fe73,!0x1);if(m[_0x46085e(0x224)](_0x2521fd))throw _0x2521fd[_0x46085e(0x20e)];if(m[_0x46085e(0x224)](_0x2d6543))throw _0x2d6543['error'];_0x52b529[_0x46085e(0x15d)]({..._0x1fb0c7[_0x8de7a9],'undoState':_0x2521fd[_0x46085e(0x1ed)][_0x46085e(0x151)],'redoState':_0x2d6543[_0x46085e(0x1ed)][_0x46085e(0x151)]}),_0x8d789f=_0x2521fd[_0x46085e(0x1d3)],_0x804dd1=_0x2d6543[_0x46085e(0x1d3)];}_0x8d789f=a['Tools'][_0x46085e(0x135)](_0x44fcc3['mutations'][0x0]),_0x804dd1=a[_0x46085e(0x15b)][_0x46085e(0x135)](_0x44fcc3[_0x46085e(0x267)][0x0]);for(let _0xf00fea=_0x3b921e[_0x46085e(0x22f)]-0x1;_0xf00fea>=0x0;_0xf00fea--){const _0x150c3d={'id':_0x46085e(0x146),'params':{'unitId':_0x3b921e[_0xf00fea][_0x46085e(0x31e)],..._0x3b921e[_0xf00fea][_0x46085e(0x342)]}},_0xabb396={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x3b921e[_0xf00fea][_0x46085e(0x31e)],..._0x3b921e[_0xf00fea]['redoState']}},_0x4e79a7=this[_0x46085e(0x1b3)][_0x46085e(0x2ac)](_0x8d789f,_0x150c3d,!0x1),_0x3131ce=this[_0x46085e(0x1b3)][_0x46085e(0x2ac)](_0x804dd1,_0xabb396,!0x1);if(m[_0x46085e(0x224)](_0x4e79a7))throw _0x4e79a7[_0x46085e(0x20e)];if(m['isTransformMutationFailure'](_0x3131ce))throw _0x3131ce[_0x46085e(0x20e)];_0x32242b[_0x46085e(0x15d)]({..._0x3b921e[_0xf00fea],'undoState':_0x4e79a7[_0x46085e(0x1ed)][_0x46085e(0x151)],'redoState':_0x3131ce[_0x46085e(0x1ed)][_0x46085e(0x151)]}),_0x8d789f=_0x4e79a7[_0x46085e(0x1d3)],_0x804dd1=_0x3131ce['m1Prime'];}this['_docStateChangeManagerService'][_0x46085e(0x254)](_0x13ffb4,{'history':_0x52b529,'collaboration':_0x32242b});}};Z=qt([_e(0x0,a['Inject'](a['Injector'])),_e(0x1,m[_0x49483b(0x372)]),_e(0x2,a[_0x49483b(0x199)](b[_0x49483b(0x34d)]))],Z);var Kt=Object[_0x49483b(0x16b)],zt=(_0x4fd571,_0x4c5380,_0xbf6963,_0x2312bc)=>{for(var _0x567a65=_0x2312bc>0x1?void 0x0:_0x2312bc?Kt(_0x4c5380,_0xbf6963):_0x4c5380,_0x33d018=_0x4fd571['length']-0x1,_0x5583ed;_0x33d018>=0x0;_0x33d018--)(_0x5583ed=_0x4fd571[_0x33d018])&&(_0x567a65=_0x5583ed(_0x567a65)||_0x567a65);return _0x567a65;},Me=(_0x2979df,_0xc91f91)=>(_0x1e1e06,_0x599039)=>_0xc91f91(_0x1e1e06,_0x599039,_0x2979df);let Q=class{constructor(_0x1c7f9b,_0x66ae33){const _0x47aa33=_0x49483b;this[_0x47aa33(0x34e)]=_0x1c7f9b,this[_0x47aa33(0x1b3)]=_0x66ae33;}[_0x49483b(0x2a3)](_0x29c843){const _0x47e086=_0x49483b;var _0x384c00;const _0x16e48b=this[_0x47e086(0x34e)][_0x47e086(0x1bd)](Y['DocSelectionManagerService']),_0x51a85e=(_0x384c00=_0x16e48b[_0x47e086(0x133)]())!=null?_0x384c00:[];if(_0x51a85e[_0x47e086(0x22f)]===0x0)return;const _0x53fd7f=_0x29c843[_0x47e086(0x115)],_0x59fc24=[{'id':_0x47e086(0x146),'params':{'unitId':_0x53fd7f,'actions':null,'textRanges':_0x51a85e}}],_0x391c4f=this[_0x47e086(0x1b3)]['transformMutationsWithChangeset'](_0x29c843,_0x59fc24);if(!m[_0x47e086(0x13f)](_0x391c4f))throw _0x391c4f[_0x47e086(0x20e)];const _0x33d471=_0x391c4f[_0x47e086(0x1ed)][0x0][_0x47e086(0x151)][_0x47e086(0x1bc)];Array[_0x47e086(0x336)](_0x33d471)&&_0x33d471[_0x47e086(0x22f)]&&_0x16e48b[_0x47e086(0x15e)](_0x33d471,{'unitId':_0x53fd7f,'subUnitId':_0x53fd7f},!0x1);}};Q=zt([Me(0x0,a['Inject'](a[_0x49483b(0x1ef)])),Me(0x1,m[_0x49483b(0x372)])],Q);var Jt=Object[_0x49483b(0x16b)],Zt=(_0x49d6de,_0x1f3da7,_0x3bd1fc,_0x11dd6c)=>{const _0x4ab403=_0x49483b;for(var _0x39b611=_0x11dd6c>0x1?void 0x0:_0x11dd6c?Jt(_0x1f3da7,_0x3bd1fc):_0x1f3da7,_0x52f941=_0x49d6de[_0x4ab403(0x22f)]-0x1,_0x29b39a;_0x52f941>=0x0;_0x52f941--)(_0x29b39a=_0x49d6de[_0x52f941])&&(_0x39b611=_0x29b39a(_0x39b611)||_0x39b611);return _0x39b611;},N=(_0x4b1a8a,_0x226fde)=>(_0x20a2e0,_0x11de79)=>_0x226fde(_0x20a2e0,_0x11de79,_0x4b1a8a);let ee=class extends a['Disposable']{constructor(_0x1cec09,_0x4751a8,_0x10a948,_0x118e50,_0xa59066,_0x138ec6,_0x43eec5,_0xb03b7b){const _0x1ad3c9=_0x49483b;super(),_(this,_0x1ad3c9(0x32a),new d['BehaviorSubject'](u[_0x1ad3c9(0x203)][_0x1ad3c9(0x27a)])),(this[_0x1ad3c9(0x163)]=_0x1cec09,this['_collaborationController']=_0x4751a8,this['_docTransformIMECacheService']=_0x10a948,this[_0x1ad3c9(0x2e9)]=_0x118e50,this[_0x1ad3c9(0x31d)]=_0xa59066,this['_docSyncEditingCollabCursorService']=_0x138ec6,this[_0x1ad3c9(0x338)]=_0x43eec5,this[_0x1ad3c9(0x25a)]=_0xb03b7b,this[_0x1ad3c9(0x27b)]());}['_initEntityListener'](){const _0x5f4b2e=_0x49483b;this[_0x5f4b2e(0x200)](this['_collaborationController'][_0x5f4b2e(0x1b9)][_0x5f4b2e(0x175)](_0x10e8f4=>{const _0x37ac67=_0x5f4b2e,_0x4654f2=this[_0x37ac67(0x163)]['docStateChange$'][_0x37ac67(0x175)](_0x2a464a=>{const _0x4bac74=_0x37ac67;if(_0x2a464a==null)return;const {unitId:_0x69509b,redoState:_0x344f61,commandId:_0x34c1a2}=_0x2a464a;if(_0x69509b!==_0x10e8f4[_0x4bac74(0x115)])return;const _0x1f2c1a={'id':_0x34c1a2,'type':a[_0x4bac74(0x129)][_0x4bac74(0x249)],'params':{'unitId':_0x69509b,'actions':_0x344f61['actions'],'textRanges':null}};_0x10e8f4['onLocalMutation'](_0x1f2c1a);});if(_0x10e8f4[_0x37ac67(0x200)](_0x4654f2),_0x10e8f4 instanceof u[_0x37ac67(0x298)]){const _0x566128={'onTransformIME':_0x2595e1=>this[_0x37ac67(0x369)]['transformIMECache'](_0x2595e1),'onTransformState':_0x58424d=>this[_0x37ac67(0x2e9)][_0x37ac67(0x2c6)](_0x58424d),'onTransformSelections':_0x21fe45=>this['_docTransformSelectionsService'][_0x37ac67(0x2a3)](_0x21fe45),'onSyncEditingCollabCursor':_0xc62ee5=>this[_0x37ac67(0x1dd)][_0x37ac67(0x344)](_0xc62ee5),'onTransformRemoteChangesetByIMECache':_0x48529e=>this[_0x37ac67(0x369)]['transformRemoteChangeset'](_0x48529e),'onTransformRemoteChangesetByStateCache':_0x380089=>this[_0x37ac67(0x2e9)][_0x37ac67(0x180)](_0x380089)};_0x10e8f4[_0x37ac67(0x10f)](_0x566128);}}));}};ee=Zt([N(0x0,a['Inject'](b['DocStateChangeManagerService'])),N(0x1,a[_0x49483b(0x199)](u['CollaborationController'])),N(0x2,a[_0x49483b(0x199)](J)),N(0x3,a['Inject'](Z)),N(0x4,a[_0x49483b(0x199)](Q)),N(0x5,a[_0x49483b(0x199)](pe)),N(0x6,O[_0x49483b(0x38a)]),N(0x7,a[_0x49483b(0x199)](a[_0x49483b(0x20d)]))],ee);var Qt=Object[_0x49483b(0x16b)],es=(_0x506bbc,_0x39729b,_0x569db7,_0x549ce4)=>{const _0x3058d3=_0x49483b;for(var _0x4f6bf5=_0x549ce4>0x1?void 0x0:_0x549ce4?Qt(_0x39729b,_0x569db7):_0x39729b,_0x82957=_0x506bbc[_0x3058d3(0x22f)]-0x1,_0x27faa3;_0x82957>=0x0;_0x82957--)(_0x27faa3=_0x506bbc[_0x82957])&&(_0x4f6bf5=_0x27faa3(_0x4f6bf5)||_0x4f6bf5);return _0x4f6bf5;},he=(_0x42c6a5,_0x28ae5e)=>(_0x2baf6a,_0x4bd96c)=>_0x28ae5e(_0x2baf6a,_0x4bd96c,_0x42c6a5);let me=class extends a['Disposable']{constructor(_0x5d5424,_0x51426f,_0x554beb){const _0x4d7ebf=_0x49483b;super(),_(this,_0x4d7ebf(0x24c),new Map()),_(this,_0x4d7ebf(0x366),new Map()),_(this,'_disabled',!0x1),(this[_0x4d7ebf(0x35a)]=_0x5d5424,this[_0x4d7ebf(0x24b)]=_0x51426f,this[_0x4d7ebf(0x1c3)]=_0x554beb);}[_0x49483b(0x222)](){const _0x31518b=_0x49483b;this[_0x31518b(0x274)]=!0x0;}[_0x49483b(0x1de)](){const _0xf18019=_0x49483b;this[_0xf18019(0x274)]=!0x1;}get['saveTaskMap'](){const _0x1470cf=_0x49483b;return this[_0x1470cf(0x366)];}['dispose'](){const _0x4b2849=_0x49483b;this[_0x4b2849(0x20a)]()[_0x4b2849(0x157)](()=>super[_0x4b2849(0x202)]());}async[_0x49483b(0x1e0)](_0x3b4d10){const _0x15d9a6=_0x49483b;return this[_0x15d9a6(0x274)]?null:this[_0x15d9a6(0x24b)][_0x15d9a6(0x1cf)](u[_0x15d9a6(0x131)](_0x3b4d10));}async['saveOfflineData'](_0xf84f1a,_0x2cbc0e){const _0x4a3e0e=_0x49483b;return!!this[_0x4a3e0e(0x24b)]['setItem'](_0xf84f1a,_0x2cbc0e);}[_0x49483b(0x141)](_0x2b6b93,_0x527e32,_0x5467f9,_0x2b0d71){const _0x5ad3e7=_0x49483b,_0x43065b=this[_0x5ad3e7(0x1c3)][_0x5ad3e7(0x294)](_0x2b6b93);this[_0x5ad3e7(0x24c)]['set'](_0x2b6b93,{'unitID':_0x2b6b93,'type':_0x527e32,'awaitingChangeset':_0x5467f9,'mutations':_0x2b0d71,'rev':_0x43065b}),this['_saveTaskMap'][_0x5ad3e7(0x179)](_0x2b6b93)||this[_0x5ad3e7(0x1d1)](_0x2b6b93);}[_0x49483b(0x1d1)](_0x5ae62e){const _0x4d696a=_0x49483b,_0x18bca7=this['_getSaveTimeout']();_0x18bca7===0x0?this[_0x4d696a(0x223)](_0x5ae62e):this[_0x4d696a(0x366)]['set'](_0x5ae62e,setTimeout(()=>this[_0x4d696a(0x223)](_0x5ae62e),_0x18bca7));}[_0x49483b(0x2be)](){const _0x5cfbff=_0x49483b;var _0xbd43b0;return(_0xbd43b0=this['_configService']['getConfig'](u[_0x5cfbff(0x382)]))!=null?_0xbd43b0:u['LOCAL_CACHE_INTERVAL'];}[_0x49483b(0x223)](_0x5bc550){const _0x277de2=_0x49483b,_0x345e8b=this['_saveTaskMap'][_0x277de2(0x1bd)](_0x5bc550);return _0x345e8b!==void 0x0&&window[_0x277de2(0x111)](_0x345e8b),this['_localStorageService'][_0x277de2(0x17f)](u['getLocalCacheKey'](_0x5bc550),this['_cachedData']['get'](_0x5bc550))[_0x277de2(0x157)](()=>this[_0x277de2(0x366)][_0x277de2(0x334)](_0x5bc550));}async[_0x49483b(0x20a)](){const _0x4dbef1=_0x49483b,_0x160d9a=[];this[_0x4dbef1(0x366)]['forEach']((_0xd89e9a,_0x1d6fe9)=>{const _0x2487e3=_0x4dbef1;window[_0x2487e3(0x111)](_0xd89e9a),_0x160d9a[_0x2487e3(0x119)](this['_saveCache'](_0x1d6fe9)[_0x2487e3(0x157)](()=>{const _0x295b92=_0x2487e3;this[_0x295b92(0x366)][_0x295b92(0x334)](_0x1d6fe9);}));}),await Promise[_0x4dbef1(0x346)](_0x160d9a);}};me=es([he(0x0,a[_0x49483b(0x360)]),he(0x1,a['ILocalStorageService']),he(0x2,a[_0x49483b(0x199)](m[_0x49483b(0x238)]))],me);class Be extends a['RxDisposable']{constructor(){const _0x180647=_0x49483b;super(),_(this,_0x180647(0x19e)),this['urlChange$']=d[_0x180647(0x10a)](window,'popstate')[_0x180647(0x2dc)](d['takeUntil'](this[_0x180647(0x2cb)]),d[_0x180647(0x1ea)](0x1),d[_0x180647(0x2ae)](void 0x0));}[_0x49483b(0x2b1)](_0x2ce8ef,_0x5783fa,_0x3b0bf0=!0x1){const _0x5008b0=_0x49483b,_0x5d82fd=new URL(window[_0x5008b0(0x22b)][_0x5008b0(0x13b)]);_0x5d82fd['searchParams'][_0x5008b0(0x25c)](_0x2ce8ef,_0x5783fa),_0x3b0bf0?window['history'][_0x5008b0(0x1dc)]('','',_0x5d82fd[_0x5008b0(0x237)]()):window[_0x5008b0(0x18e)][_0x5008b0(0x1b6)]('','',_0x5d82fd[_0x5008b0(0x237)]());}[_0x49483b(0x25f)](_0x502636,_0x3ad823=!0x1){const _0x2363ca=_0x49483b,_0x588ecc=new URL(window['location'][_0x2363ca(0x13b)]);_0x588ecc[_0x2363ca(0x109)][_0x2363ca(0x334)](_0x502636),_0x3ad823?window[_0x2363ca(0x18e)][_0x2363ca(0x1dc)]('','',_0x588ecc['toString']()):window[_0x2363ca(0x18e)][_0x2363ca(0x1b6)]('','',_0x588ecc[_0x2363ca(0x237)]());}['getParam'](_0x30e47e){const _0x264778=_0x49483b;var _0x382f4f;return(_0x382f4f=new URL(window[_0x264778(0x22b)][_0x264778(0x13b)])[_0x264778(0x109)]['get'](_0x30e47e))!=null?_0x382f4f:void 0x0;}}var ts=Object[_0x49483b(0x13a)],ss=Object['getOwnPropertyDescriptor'],ns=(_0x7a6894,_0x5a49bf,_0x21d98f)=>_0x5a49bf in _0x7a6894?ts(_0x7a6894,_0x5a49bf,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x21d98f}):_0x7a6894[_0x5a49bf]=_0x21d98f,is=(_0x436926,_0x4a8dd9,_0x230e7d,_0x96b9cd)=>{const _0x567ee4=_0x49483b;for(var _0x103b0d=_0x96b9cd>0x1?void 0x0:_0x96b9cd?ss(_0x4a8dd9,_0x230e7d):_0x4a8dd9,_0x3a91cc=_0x436926[_0x567ee4(0x22f)]-0x1,_0x36abf6;_0x3a91cc>=0x0;_0x3a91cc--)(_0x36abf6=_0x436926[_0x3a91cc])&&(_0x103b0d=_0x36abf6(_0x103b0d)||_0x103b0d);return _0x103b0d;},ue=(_0x5cc095,_0x1fbca0)=>(_0x4c23fe,_0x30bcaa)=>_0x1fbca0(_0x4c23fe,_0x30bcaa,_0x5cc095),rs=(_0x29a42e,_0x5a185a,_0x2e39f3)=>ns(_0x29a42e,_0x5a185a+'',_0x2e39f3);const os='UNIVER_COLLABORATION_CLIENT_WEB_PLUGIN';function _0x6961(_0x2ab517,_0x1b8f3a){const _0x2197be=_0x2197();return _0x6961=function(_0x6961a3,_0x429f7e){_0x6961a3=_0x6961a3-0x109;let _0x13fb31=_0x2197be[_0x6961a3];return _0x13fb31;},_0x6961(_0x2ab517,_0x1b8f3a);}exports[_0x49483b(0x23c)]=class extends a[_0x49483b(0x134)]{constructor(_0x2aaaf8=Ne,_0x5629d6,_0x3f78d8,_0x19a8b9){const _0x28490b=_0x49483b;super(),this[_0x28490b(0x128)]=_0x2aaaf8,this['_renderManagerService']=_0x5629d6,this[_0x28490b(0x34e)]=_0x3f78d8,this[_0x28490b(0x35a)]=_0x19a8b9;const {..._0x83aa18}=a[_0x28490b(0x1f9)]({},Ne,this[_0x28490b(0x128)]);this[_0x28490b(0x35a)][_0x28490b(0x2e8)](Ft,_0x83aa18);}[_0x49483b(0x2d6)](){this['_registerDependencies'](),this['_initDependencies']();}[_0x49483b(0x35e)](){const _0x340b9f=_0x49483b;this[_0x340b9f(0x14a)]();}[_0x49483b(0x23f)](){const _0x2cda8a=_0x49483b;var _0x2d2c33;const _0x12c758=[[Ce],[Q],[J],[Z],[pe],[Ee,{'useClass':Be}],[q[_0x2cda8a(0x2ff)],{'useClass':q[_0x2cda8a(0x2c8)]}],[u[_0x2cda8a(0x14d)],{'useClass':me}],[exports['DesktopCollaborationStatusDisplayController']],[ee],[z],[x],[fe],[exports['CollaborationDataLoaderController']]];a[_0x2cda8a(0x37e)](this['_injector'],a['mergeOverrideWithDependencies'](_0x12c758,(_0x2d2c33=this[_0x2cda8a(0x128)])==null?void 0x0:_0x2d2c33['override']));}[_0x49483b(0x14a)](){const _0x4c6014=_0x49483b;this['disposeWithMe'](this[_0x4c6014(0x117)][_0x4c6014(0x2bb)](a[_0x4c6014(0x24a)]['UNIVER_DOC'],[ve])),this[_0x4c6014(0x200)](this['_renderManagerService'][_0x4c6014(0x2bb)](a[_0x4c6014(0x24a)][_0x4c6014(0x2ec)],[ge]));}[_0x49483b(0x16e)](){const _0x412690=_0x49483b;a[_0x412690(0x2a1)](this[_0x412690(0x34e)],[[x],[exports[_0x412690(0x36b)]],[ee],[z],[exports['CollaborationDataLoaderController']]]);}},rs(exports['UniverCollaborationClientUIPlugin'],_0x49483b(0x15a),os),exports[_0x49483b(0x23c)]=is([a['DependentOn'](u['UniverCollaborationClientPlugin']),ue(0x1,p[_0x49483b(0x14b)]),ue(0x2,a[_0x49483b(0x199)](a[_0x49483b(0x1ef)])),ue(0x3,a['IConfigService'])],exports[_0x49483b(0x23c)]);var as=Object['getOwnPropertyDescriptor'],cs=(_0x5bc93b,_0x4206e8,_0x589d8a,_0x3027cd)=>{const _0x57ca50=_0x49483b;for(var _0x1e5e5b=_0x3027cd>0x1?void 0x0:_0x3027cd?as(_0x4206e8,_0x589d8a):_0x4206e8,_0x2a3f43=_0x5bc93b[_0x57ca50(0x22f)]-0x1,_0x55254c;_0x2a3f43>=0x0;_0x2a3f43--)(_0x55254c=_0x5bc93b[_0x2a3f43])&&(_0x1e5e5b=_0x55254c(_0x1e5e5b)||_0x1e5e5b);return _0x1e5e5b;},W=(_0x1d3aeb,_0x3f6422)=>(_0x432504,_0x3256e0)=>_0x3f6422(_0x432504,_0x3256e0,_0x1d3aeb);exports[_0x49483b(0x214)]=class extends u[_0x49483b(0x277)]{constructor(_0x2dc0fc,_0x2d4ad6,_0xbf1ddc,_0x317d06,_0x429d31){super(_0x2dc0fc,_0x2d4ad6,_0xbf1ddc,_0x317d06,_0x429d31);}async[_0x49483b(0x1b2)](_0x1a1570){const _0x24fcdc=_0x49483b,_0x341a88=await this[_0x24fcdc(0x34f)](),_0x10bb99=this[_0x24fcdc(0x37f)](_0x1a1570,_0x341a88);return this['_doCreateSocket'](_0x10bb99);}[_0x49483b(0x37f)](_0x3a6cd9,_0x35a6fa){const _0x2c3d7f=_0x49483b,_0x35e623=typeof window>'u'?new URL(_0x3a6cd9):new URL(_0x3a6cd9,window['location'][_0x2c3d7f(0x2f8)]);_0x35e623[_0x2c3d7f(0x109)][_0x2c3d7f(0x25c)](_0x2c3d7f(0x1e3),_0x35a6fa);const _0x383d55=typeof window>'u'?new URLSearchParams():new URLSearchParams(window[_0x2c3d7f(0x22b)][_0x2c3d7f(0x1fa)]);return _0x383d55[_0x2c3d7f(0x1bd)](_0x2c3d7f(0x1f8))&&_0x35e623[_0x2c3d7f(0x109)][_0x2c3d7f(0x25c)](_0x2c3d7f(0x1f8),_0x383d55[_0x2c3d7f(0x1bd)](_0x2c3d7f(0x1f8))),_0x35e623[_0x2c3d7f(0x237)]();}async[_0x49483b(0x34f)](){const _0x31c0e2=_0x49483b;var _0x36e6c5,_0x8cafee,_0x490078;const _0x571473=this[_0x31c0e2(0x35a)][_0x31c0e2(0x234)](u[_0x31c0e2(0x2f5)]),_0x36149f=(_0x36e6c5=_0x571473==null?void 0x0:_0x571473['wsSessionTicketUrl'])!=null?_0x36e6c5:u[_0x31c0e2(0x1e7)];return(_0x490078=(_0x8cafee=(await this[_0x31c0e2(0x255)]['get'](_0x36149f,{'headers':{'Content-Type':_0x31c0e2(0x122)}}))[_0x31c0e2(0x205)])==null?void 0x0:_0x8cafee[_0x31c0e2(0x27e)])!=null?_0x490078:'';}},exports[_0x49483b(0x214)]=cs([W(0x0,a[_0x49483b(0x199)](a[_0x49483b(0x1ef)])),W(0x1,a['Inject'](q[_0x49483b(0x2a9)])),W(0x2,a[_0x49483b(0x360)]),W(0x3,a[_0x49483b(0x370)]),W(0x4,m[_0x49483b(0x120)])],exports['BrowserCollaborationSocketService']);const Le=0x7530,Pe=_0x49483b(0x1c6);class ls extends a[_0x49483b(0x2b2)]{constructor(){const _0x1581aa=_0x49483b;super(),_(this,'_id',a['generateRandomId']()),_(this,'_selfUnitIDs',new Set()),_(this,_0x1581aa(0x194),new Map()),_(this,_0x1581aa(0x2fe),null),_(this,_0x1581aa(0x114),new Map()),_(this,'_unitStatus',new Map()),this[_0x1581aa(0x31c)]();}[_0x49483b(0x202)](){const _0xcd69db=_0x49483b;super['dispose'](),this[_0xcd69db(0x114)]['forEach']((_0x25244e,_0x4fe893)=>this[_0xcd69db(0x177)](_0x4fe893)),this[_0xcd69db(0x2fe)]&&window[_0xcd69db(0x323)](this[_0xcd69db(0x2fe)]);}[_0x49483b(0x2d3)](_0x9a0b71){const _0x42b78e=_0x49483b;return this[_0x42b78e(0x34c)](_0x9a0b71)[_0x42b78e(0x2dc)](d['distinctUntilChanged']());}[_0x49483b(0x28b)](_0x197646){const _0x4df1d9=_0x49483b;this['_selfUnitIDs']['size']===0x0&&this['_scheduleHeartbeat'](),this[_0x4df1d9(0x2e4)][_0x4df1d9(0x1b1)](_0x197646),this['_send']({'type':0x0,'memberID':this[_0x4df1d9(0x19a)],'unitIDs':[_0x197646],'isForwarded':!0x1});}[_0x49483b(0x2c2)](_0x2d1fab){const _0x5f0286=_0x49483b;this[_0x5f0286(0x2e4)][_0x5f0286(0x334)](_0x2d1fab),this[_0x5f0286(0x2e4)]['size']===0x0&&this[_0x5f0286(0x2fe)]&&window['clearInterval'](this[_0x5f0286(0x2fe)]);}[_0x49483b(0x31c)](){const _0x4dc160=_0x49483b;this[_0x4dc160(0x200)](a[_0x4dc160(0x143)](d[_0x4dc160(0x10a)](window,_0x4dc160(0x364))[_0x4dc160(0x175)](_0x1ca766=>{const _0x23411f=_0x4dc160;if(_0x1ca766[_0x23411f(0x16c)]!==Pe||!_0x1ca766[_0x23411f(0x2db)])return;const _0x40d23f=JSON[_0x23411f(0x343)](_0x1ca766[_0x23411f(0x2db)]);this['_handleEvent'](_0x40d23f);}))),window['addEventListener'](_0x4dc160(0x173),()=>this[_0x4dc160(0x35b)]({'type':0x1,'memberID':this[_0x4dc160(0x19a)],'unitIDs':Array[_0x4dc160(0x352)](this[_0x4dc160(0x2e4)])}));}[_0x49483b(0x154)](_0x45be4b){const _0x37b533=_0x49483b;switch(_0x45be4b[_0x37b533(0x1e6)]){case 0x0:this[_0x37b533(0x246)](_0x45be4b);break;case 0x1:this['_handleLeaveEvent'](_0x45be4b);break;case 0x2:this['_handleHeartbeatEvent'](_0x45be4b);break;}}['_handleJoinEvent'](_0x95ef5b){const _0x1005c7=_0x49483b,{unitIDs:_0x1cf1f8,memberID:_0x2fb73c,isForwarded:_0xf8e59}=_0x95ef5b;_0x1cf1f8['forEach'](_0xbbc2c1=>{const _0x392e1b=_0x6961;if(!_0xf8e59&&this[_0x392e1b(0x194)][_0x392e1b(0x179)](_0xbbc2c1)&&this[_0x392e1b(0x34c)](_0xbbc2c1)[_0x392e1b(0x160)](u[_0x392e1b(0x383)][_0x392e1b(0x1ff)]),!this[_0x392e1b(0x194)]['has'](_0xbbc2c1)||!this['_unitOnClients']['get'](_0xbbc2c1)[_0x392e1b(0x179)](_0x2fb73c)){const _0x3b2684=this[_0x392e1b(0x194)][_0x392e1b(0x1bd)](_0xbbc2c1)||new Set();_0x3b2684[_0x392e1b(0x1b1)](_0x2fb73c),this[_0x392e1b(0x194)][_0x392e1b(0x25c)](_0xbbc2c1,_0x3b2684),this[_0x392e1b(0x2e6)](_0x2fb73c);}}),_0xf8e59||this[_0x1005c7(0x35b)]({'type':0x0,'memberID':this[_0x1005c7(0x19a)],'unitIDs':[...this['_selfUnitIDs']],'isForwarded':!0x0});}[_0x49483b(0x2e6)](_0x59ab8f){const _0x736ed=_0x49483b;this[_0x736ed(0x177)](_0x59ab8f);const _0x2ec84f=window[_0x736ed(0x130)](()=>{const _0x3fe8e4=_0x736ed;this[_0x3fe8e4(0x194)][_0x3fe8e4(0x32e)](_0x32dd05=>{const _0x276c81=_0x3fe8e4;_0x32dd05[_0x276c81(0x334)](_0x59ab8f);});},Le*0x2);this[_0x736ed(0x114)]['set'](_0x59ab8f,_0x2ec84f);}[_0x49483b(0x177)](_0x406291){const _0xc75003=_0x49483b;if(this['_clearOtherTimers'][_0xc75003(0x179)](_0x406291)){const _0x101737=this[_0xc75003(0x114)][_0xc75003(0x1bd)](_0x406291);_0x101737&&window[_0xc75003(0x111)](_0x101737),this[_0xc75003(0x114)][_0xc75003(0x25c)](_0x406291,null);}}[_0x49483b(0x319)](_0x32f2f8){const _0xa63434=_0x49483b,{memberID:_0x15ddec,unitIDs:_0x511f18}=_0x32f2f8;_0x511f18['forEach'](_0x22d084=>{const _0x251e8b=_0x6961;var _0x5880a2;const _0x1bd8d2=this['_unitOnClients']['get'](_0x22d084);_0x1bd8d2&&(_0x1bd8d2[_0x251e8b(0x334)](_0x15ddec),(_0x5880a2=this['_ensureSubject'](_0x22d084))==null||_0x5880a2[_0x251e8b(0x160)](_0x1bd8d2[_0x251e8b(0x10c)]===0x0?u[_0x251e8b(0x383)]['NO_OTHER_CLIENTS_EDITING']:u['UnitStatus']['OTHER_CLIENTS_EDITING']));}),this[_0xa63434(0x177)](_0x15ddec);}['_handleHeartbeatEvent'](_0x4a581e){const _0x55f1f0=_0x49483b;this[_0x55f1f0(0x2e6)](_0x4a581e[_0x55f1f0(0x301)]);}[_0x49483b(0x35b)](_0x41eb21){const _0x1b3f82=_0x49483b;localStorage['setItem'](Pe,JSON[_0x1b3f82(0x291)](_0x41eb21));}[_0x49483b(0x327)](){const _0x2adfe3=_0x49483b;this['_heartbeatTimer']=window[_0x2adfe3(0x290)](()=>{this['_send']({'type':0x2,'memberID':this['_id']});},Le);}[_0x49483b(0x34c)](_0x3657a2){const _0x38830c=_0x49483b;return this[_0x38830c(0x1a6)][_0x38830c(0x179)](_0x3657a2)||this[_0x38830c(0x1a6)][_0x38830c(0x25c)](_0x3657a2,new d[(_0x38830c(0x33f))](u[_0x38830c(0x383)]['NO_OTHER_CLIENTS_EDITING'])),this[_0x38830c(0x1a6)][_0x38830c(0x1bd)](_0x3657a2);}}var ke=(_0x355095=>(_0x355095[_0x355095['UNDEFINED']=0x0]=_0x49483b(0x30b),_0x355095[_0x355095['OK']=0x1]='OK',_0x355095[_0x355095[_0x49483b(0x23d)]=0x2]=_0x49483b(0x23d),_0x355095[_0x355095[_0x49483b(0x2cd)]=0x3]=_0x49483b(0x2cd),_0x355095[_0x355095[_0x49483b(0x2ef)]=0x4]=_0x49483b(0x2ef),_0x355095[_0x355095[_0x49483b(0x311)]=0x5]=_0x49483b(0x311),_0x355095[_0x355095[_0x49483b(0x2d5)]=0x6]=_0x49483b(0x2d5),_0x355095[_0x355095['INVALID_ARGUMENT']=0x7]='INVALID_ARGUMENT',_0x355095[_0x355095['TOO_MANY_REQUESTS']=0x8]=_0x49483b(0x2c3),_0x355095[_0x355095['COMPLETION_FINISHED']=0x9]='COMPLETION_FINISHED',_0x355095[_0x355095[_0x49483b(0x264)]=0xa]=_0x49483b(0x264),_0x355095[_0x355095[_0x49483b(0x138)]=0x1389]=_0x49483b(0x138),_0x355095[_0x355095[_0x49483b(0x317)]=0x1771]=_0x49483b(0x317),_0x355095[_0x355095[_0x49483b(0x330)]=0x1772]=_0x49483b(0x330),_0x355095[_0x355095[_0x49483b(0x1da)]=0x1773]=_0x49483b(0x1da),_0x355095[_0x355095[_0x49483b(0x310)]=0x1b59]='APPLY_REJECT',_0x355095[_0x355095[_0x49483b(0x196)]=0x1b5a]=_0x49483b(0x196),_0x355095[_0x355095[_0x49483b(0x357)]=0x1b5b]=_0x49483b(0x357),_0x355095[_0x355095['APPLY_PERMISSION_DENIED']=0x1b5c]=_0x49483b(0x283),_0x355095[_0x355095[_0x49483b(0x193)]=0x1b5d]=_0x49483b(0x193),_0x355095[_0x355095[_0x49483b(0x21f)]=0x1f41]=_0x49483b(0x21f),_0x355095[_0x355095['LICENSE_MAX_UNITS_EXCEEDED']=0x2329]=_0x49483b(0x220),_0x355095[_0x355095['LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED']=0x232a]=_0x49483b(0x19b),_0x355095[_0x355095[_0x49483b(0x1fc)]=0x232b]='LICENSE_IMPORT_SIZE_EXCEEDED',_0x355095[_0x355095['LICENSE_EXPORT_SIZE_EXCEEDED']=0x232c]='LICENSE_EXPORT_SIZE_EXCEEDED',_0x355095[_0x355095[_0x49483b(0x1b5)]=0x232d]=_0x49483b(0x1b5),_0x355095[_0x355095[_0x49483b(0x11e)]=0x2711]='YUUMI_UNABLE_LOAD_URL',_0x355095[_0x355095[_0x49483b(0x353)]=0x2712]='YUUMI_URL_COL_OUT_OF_RANGE',_0x355095[_0x355095[_0x49483b(0x309)]=0x2713]='YUUMI_RATE_OVER_LIMIT',_0x355095[_0x355095['YUUMI_SUBSCRIPTION_NOT_FOUND']=0x2714]='YUUMI_SUBSCRIPTION_NOT_FOUND',_0x355095[_0x355095[_0x49483b(0x29d)]=0x271a]=_0x49483b(0x29d),_0x355095[_0x355095[_0x49483b(0x32d)]=0x271b]=_0x49483b(0x32d),_0x355095[_0x355095[_0x49483b(0x241)]=0x2af9]='PY_RUNTIME_SCRIPT_ERROR',_0x355095[_0x355095[_0x49483b(0x16f)]=0x2ee1]='INVITE_CODE_HAS_BEEN_UES',_0x355095[_0x355095['INVALID_INVITE_CODE']=0x2ee2]=_0x49483b(0x36a),_0x355095[_0x355095[_0x49483b(0x110)]=0x2ee3]=_0x49483b(0x110),_0x355095[_0x355095[_0x49483b(0x1f4)]=0x2ee4]=_0x49483b(0x1f4),_0x355095[_0x355095[_0x49483b(0x219)]=0x2ee5]=_0x49483b(0x219),_0x355095[_0x355095[_0x49483b(0x21e)]=0x32c9]='WECHAT_HAS_BEEN_BOUND',_0x355095[_0x355095[_0x49483b(0x218)]=0x32ca]=_0x49483b(0x218),_0x355095[_0x355095['EMAIL_HAS_BEEN_BOUND']=0x32cb]=_0x49483b(0x302),_0x355095[_0x355095[_0x49483b(0x1a4)]=-0x1]=_0x49483b(0x1a4),_0x355095))(ke||{}),_s=Object[_0x49483b(0x16b)],hs=(_0x16410b,_0x56469f,_0x415745,_0x21b214)=>{for(var _0x464edf=_0x21b214>0x1?void 0x0:_0x21b214?_s(_0x56469f,_0x415745):_0x56469f,_0x519734=_0x16410b['length']-0x1,_0x21ed12;_0x519734>=0x0;_0x519734--)(_0x21ed12=_0x16410b[_0x519734])&&(_0x464edf=_0x21ed12(_0x464edf)||_0x464edf);return _0x464edf;},de=(_0x48cef1,_0x363084)=>(_0x2c6972,_0x1b9121)=>_0x363084(_0x2c6972,_0x1b9121,_0x48cef1);exports[_0x49483b(0x386)]=class extends a[_0x49483b(0x2b2)]{constructor(_0x93274d,_0x5c52f2,_0x5271f1){const _0x269dc0=_0x49483b;super(),this[_0x269dc0(0x198)]=_0x93274d,this[_0x269dc0(0x255)]=_0x5c52f2,this[_0x269dc0(0x35a)]=_0x5271f1;}async[_0x49483b(0x315)](_0x250c52,_0x11006a,_0x5c57fb,..._0x14eb6a){const _0x4ac782=_0x49483b;var _0x1978a4,_0x5f45ab,_0x6c5517,_0xffee67;const _0x53f8b3=this[_0x4ac782(0x198)]['getFocusedUnit']();if(!_0x53f8b3)throw new Error(_0x4ac782(0x167));const _0x2259da=((_0x1978a4=this[_0x4ac782(0x35a)]['getConfig'](u[_0x4ac782(0x2f3)]))!=null?_0x1978a4:u[_0x4ac782(0x12c)])+'/'+_0x250c52+_0x4ac782(0x18a)+_0x11006a,_0x3ffd80=new URL(window[_0x4ac782(0x22b)][_0x4ac782(0x13b)]),_0x346093={'scriptId':_0x250c52,'runId':(_0x5f45ab=_0x3ffd80[_0x4ac782(0x109)][_0x4ac782(0x1bd)](_0x4ac782(0x1f8)))!=null?_0x5f45ab:'','function':_0x11006a,'unitId':_0x53f8b3['getUnitId'](),'argsOfFunction':JSON[_0x4ac782(0x291)](_0x14eb6a),'invokeId':(_0x6c5517=_0x5c57fb[_0x4ac782(0x137)])!=null?_0x6c5517:'','executionId':(_0xffee67=_0x5c57fb[_0x4ac782(0x26c)])!=null?_0xffee67:''};try{const _0x673f9=await this[_0x4ac782(0x255)][_0x4ac782(0x21c)](_0x2259da,{'body':_0x346093});return _0x673f9['body'][_0x4ac782(0x20e)]&&_0x673f9['body'][_0x4ac782(0x20e)][_0x4ac782(0x1b4)]!==ke['OK']?'Failed':_0x673f9[_0x4ac782(0x205)][_0x4ac782(0x335)];}catch{return'Failed';}}},exports[_0x49483b(0x386)]=hs([de(0x0,a[_0x49483b(0x363)]),de(0x1,a['Inject'](q['HTTPService'])),de(0x2,a['IConfigService'])],exports[_0x49483b(0x386)]),exports[_0x49483b(0x324)]=je,exports[_0x49483b(0x24e)]=Ee,exports[_0x49483b(0x136)]=Ae,exports[_0x49483b(0x13d)]=ls,exports[_0x49483b(0x38f)]=Be;
|
package/lib/cjs/locale/en-US.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const _0x106f99=_0x101d;(function(_0x2fbf27,_0x239a6c){const _0x5cb234=_0x101d,_0x3f817e=_0x2fbf27();while(!![]){try{const _0x2e6dcf=-parseInt(_0x5cb234(0x13f))/0x1*(parseInt(_0x5cb234(0x14d))/0x2)+-parseInt(_0x5cb234(0x14a))/0x3*(-parseInt(_0x5cb234(0x13d))/0x4)+-parseInt(_0x5cb234(0x147))/0x5+parseInt(_0x5cb234(0x13e))/0x6+parseInt(_0x5cb234(0x13c))/0x7*(parseInt(_0x5cb234(0x142))/0x8)+parseInt(_0x5cb234(0x136))/0x9+parseInt(_0x5cb234(0x151))/0xa*(-parseInt(_0x5cb234(0x149))/0xb);if(_0x2e6dcf===_0x239a6c)break;else _0x3f817e['push'](_0x3f817e['shift']());}catch(_0xd0c526){_0x3f817e['push'](_0x3f817e['shift']());}}}(_0x2a3e,0x391a5));const e={'collab-client':{'tooltip':{'reconnect':_0x106f99(0x14e)}},'collabStatus':{'fetchMiss':_0x106f99(0x13b),'conflict':_0x106f99(0x13a),'notCollab':_0x106f99(0x150),'synced':_0x106f99(0x148),'syncing':_0x106f99(0x141),'offline':_0x106f99(0x140)},'session':{'connection-failed':_0x106f99(0x137),'will-retry':_0x106f99(0x14f),'room-full':_0x106f99(0x143),'collaboration-timeout':_0x106f99(0x14b)},'conflict':{'title':_0x106f99(0x138),'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':_0x106f99(0x139),'content':_0x106f99(0x145)},'collaboration':{'single-unit':{'warning':_0x106f99(0x146)},'closeRoom':'Editing\x20privileges\x20were\x20revoked\x20because\x20the\x20collaborative\x20room\x20was\x20closed.'},'auth':{'needGotoLoginAlert':_0x106f99(0x14c)}};function _0x101d(_0x1dbfd2,_0x5a2486){const _0x2a3ed4=_0x2a3e();return _0x101d=function(_0x101d1f,_0x125227){_0x101d1f=_0x101d1f-0x136;let _0x47a5c3=_0x2a3ed4[_0x101d1f];return _0x47a5c3;},_0x101d(_0x1dbfd2,_0x5a2486);}module[_0x106f99(0x144)]=e;function _0x2a3e(){const _0x3e40ff=['10phvHma','3978486fOwzBz','Connection\x20failed,\x20please\x20check\x20your\x20network.','Collaboration\x20Conflict','Authentication\x20Error','Edit\x20conflicts','Syncing\x20server\x20data...','35112OTZiwl','8EWRGgx','2231040LDsXEU','269iJYQyp','Offline,\x20edits\x20would\x20be\x20save\x20on\x20local','Syncing...','152vjmjHj','Collaboration\x20room\x20is\x20full.\x20You\x20edits\x20would\x20be\x20saved\x20locally.','exports','Your\x20actions\x20are\x20conflicting\x20with\x20the\x20server\x27s\x20permissions.\x20Please\x20save\x20your\x20local\x20edits\x20elsewhere\x20as\x20they\x20will\x20be\x20discarded\x20after\x20refreshing\x20the\x20page.','You\x20opened\x20the\x20same\x20file\x20in\x20another\x20tab.\x20In\x20case\x20of\x20data\x20missing,\x20you\x20cannot\x20edit\x20on\x20this\x20tab.','2170820ekNgGR','Synced','4195169BvKIph','264426RgvQcz','The\x20server\x20is\x20not\x20responding\x20to\x20your\x20collaboration\x20request.\x20Your\x20edits\x20would\x20be\x20saved\x20locally.','Your\x20login\x20has\x20expired,\x20click\x20OK\x20to\x20re-login,\x20click\x20Cancel\x20to\x20save\x20your\x20local\x20edits.','268zdfinP','Click\x20to\x20Reconnect','Connection\x20failed,\x20we\x20retry\x20in\x20a\x20while.','Local\x20file'];_0x2a3e=function(){return _0x3e40ff;};return _0x2a3e();}
|