@univerjs-pro/collaboration-client-ui 0.6.10-nightly.202504131606 → 0.6.10-nightly.202504141607
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/cjs/facade.js +1 -1
- package/lib/cjs/index.js +1 -1
- package/lib/cjs/locale/en-US.js +1 -1
- package/lib/cjs/locale/fa-IR.js +1 -1
- package/lib/cjs/locale/fr-FR.js +1 -1
- package/lib/cjs/locale/ru-RU.js +1 -1
- package/lib/cjs/locale/vi-VN.js +1 -1
- package/lib/cjs/locale/zh-CN.js +1 -1
- package/lib/cjs/locale/zh-TW.js +1 -1
- package/lib/es/facade.js +1 -1
- package/lib/es/index.js +1 -1
- package/lib/es/locale/en-US.js +1 -1
- package/lib/es/locale/fa-IR.js +1 -1
- package/lib/es/locale/fr-FR.js +1 -1
- package/lib/es/locale/ru-RU.js +1 -1
- package/lib/es/locale/vi-VN.js +1 -1
- package/lib/es/locale/zh-CN.js +1 -1
- package/lib/es/locale/zh-TW.js +1 -1
- package/lib/facade.js +1 -1
- package/lib/index.js +1 -1
- package/lib/locale/en-US.js +1 -1
- package/lib/locale/fa-IR.js +1 -1
- package/lib/locale/fr-FR.js +1 -1
- package/lib/locale/ru-RU.js +1 -1
- package/lib/locale/vi-VN.js +1 -1
- package/lib/locale/zh-CN.js +1 -1
- package/lib/locale/zh-TW.js +1 -1
- package/lib/umd/facade.js +1 -1
- package/lib/umd/index.js +1 -1
- package/lib/umd/locale/en-US.js +1 -1
- package/lib/umd/locale/fa-IR.js +1 -1
- package/lib/umd/locale/fr-FR.js +1 -1
- package/lib/umd/locale/ru-RU.js +1 -1
- package/lib/umd/locale/vi-VN.js +1 -1
- package/lib/umd/locale/zh-CN.js +1 -1
- package/lib/umd/locale/zh-TW.js +1 -1
- package/package.json +15 -15
package/lib/cjs/facade.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const _0x15a8ab=_0x4a3e;(function(_0x54fa2b,_0x481a12){const _0x46a278=_0x4a3e,_0x2c7b86=_0x54fa2b();while(!![]){try{const _0x5dc1c8=-parseInt(_0x46a278(0x117))/0x1+parseInt(_0x46a278(0x11c))/0x2+parseInt(_0x46a278(0x121))/0x3+-parseInt(_0x46a278(0x115))/0x4+-parseInt(_0x46a278(0x11b))/0x5+-parseInt(_0x46a278(0x11a))/0x6*(-parseInt(_0x46a278(0x119))/0x7)+-parseInt(_0x46a278(0x11f))/0x8*(-parseInt(_0x46a278(0x114))/0x9);if(_0x5dc1c8===_0x481a12)break;else _0x2c7b86['push'](_0x2c7b86['shift']());}catch(_0x39092a){_0x2c7b86['push'](_0x2c7b86['shift']());}}}(_0x27f9,0x707b3));function _0x27f9(){const _0x4d3fdb=['2333706smMSZp','get','@univerjs-pro/collaboration-client-ui','3576897YizqxZ','643588dSUUVu','_injector','370848wlrfEP','RemoteUniscriptService','56hCCyOl','358080BmWRKJ','3306315zLsZqj','1912GvbOQW','@univerjs/core/facade','FUniver','8oSQOtY','extend'];_0x27f9=function(){return _0x4d3fdb;};return _0x27f9();}const t=require(_0x15a8ab(0x113)),e=require(_0x15a8ab(0x11d));class c extends e[_0x15a8ab(0x11e)]{['runOnServer'](_0x519204,_0x4676b3,..._0x53126c){const _0x550095=_0x15a8ab;return this[_0x550095(0x116)][_0x550095(0x122)](t[_0x550095(0x118)])['runOnServer'](_0x519204,_0x4676b3,{},..._0x53126c);}}function _0x4a3e(_0x2b9be9,_0x409608){const _0x27f95f=_0x27f9();return _0x4a3e=function(_0x4a3ee8,_0x53d0ed){_0x4a3ee8=_0x4a3ee8-0x113;let _0x4b794e=_0x27f95f[_0x4a3ee8];return _0x4b794e;},_0x4a3e(_0x2b9be9,_0x409608);}e[_0x15a8ab(0x11e)][_0x15a8ab(0x120)](c);
|
package/lib/cjs/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const _0x412fda=_0x3ec3;(function(_0x427f30,_0x1c3447){const _0x2dbd9e=_0x3ec3,_0x79a99f=_0x427f30();while(!![]){try{const _0x4895bc=parseInt(_0x2dbd9e(0x292))/0x1*(-parseInt(_0x2dbd9e(0x1f7))/0x2)+parseInt(_0x2dbd9e(0x413))/0x3*(-parseInt(_0x2dbd9e(0x2a4))/0x4)+parseInt(_0x2dbd9e(0x383))/0x5+-parseInt(_0x2dbd9e(0x2cf))/0x6+-parseInt(_0x2dbd9e(0x316))/0x7*(-parseInt(_0x2dbd9e(0x34c))/0x8)+parseInt(_0x2dbd9e(0x374))/0x9*(-parseInt(_0x2dbd9e(0x321))/0xa)+parseInt(_0x2dbd9e(0x3a5))/0xb*(parseInt(_0x2dbd9e(0x3e8))/0xc);if(_0x4895bc===_0x1c3447)break;else _0x79a99f['push'](_0x79a99f['shift']());}catch(_0x1050ac){_0x79a99f['push'](_0x79a99f['shift']());}}}(_0x36d4,0xe2dcb));var Xe=Object[_0x412fda(0x391)],Ge=(_0x2985cc,_0x754051,_0x18955a)=>_0x754051 in _0x2985cc?Xe(_0x2985cc,_0x754051,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x18955a}):_0x2985cc[_0x754051]=_0x18955a,_=(_0x366cd3,_0x26a2f2,_0x3059d6)=>Ge(_0x366cd3,typeof _0x26a2f2!='symbol'?_0x26a2f2+'':_0x26a2f2,_0x3059d6);Object['defineProperty'](exports,Symbol[_0x412fda(0x441)],{'value':_0x412fda(0x36d)});const u=require(_0x412fda(0x3c8)),a=require(_0x412fda(0x435)),p=require(_0x412fda(0x356)),q=require(_0x412fda(0x265)),b=require(_0x412fda(0x3d0)),qe=require(_0x412fda(0x3ff)),d=require('rxjs'),Y=require(_0x412fda(0x2ab)),m=require(_0x412fda(0x33a)),Te=require(_0x412fda(0x3fe)),g=require(_0x412fda(0x37a)),$=require('rxjs/operators'),G=require(_0x412fda(0x2e8)),L=require(_0x412fda(0x23c)),R=require(_0x412fda(0x384)),T=require(_0x412fda(0x2c1)),M=require('react'),Ke=require(_0x412fda(0x2a9));var ze=Object[_0x412fda(0x26e)],Je=(_0x383d2a,_0x209536,_0x3bee6e,_0x2e5e3b)=>{for(var _0x15508f=_0x2e5e3b>0x1?void 0x0:_0x2e5e3b?ze(_0x209536,_0x3bee6e):_0x209536,_0x3a50a8=_0x383d2a['length']-0x1,_0x1c8b47;_0x3a50a8>=0x0;_0x3a50a8--)(_0x1c8b47=_0x383d2a[_0x3a50a8])&&(_0x15508f=_0x1c8b47(_0x15508f)||_0x15508f);return _0x15508f;},Re=(_0x7ab804,_0x1230b9)=>(_0x3154ca,_0x5c075c)=>_0x1230b9(_0x3154ca,_0x5c075c,_0x7ab804);let fe=class extends a[_0x412fda(0x1c0)]{constructor(_0x31aa0e,_0x3e1917){const _0x1b7c44=_0x412fda;super(),this['_docClipboardService']=_0x31aa0e,this[_0x1b7c44(0x3f5)]=_0x3e1917,this[_0x1b7c44(0x3fc)]();}['_init'](){const _0x4aa69c=_0x412fda,_0x4af641=this;this[_0x4aa69c(0x2d1)](this[_0x4aa69c(0x275)][_0x4aa69c(0x282)]({'onBeforePasteImage':async _0x20d9b1=>{const _0x280a08=_0x4aa69c,_0x409e42=await _0x4af641[_0x280a08(0x3f5)][_0x280a08(0x423)](_0x20d9b1);return _0x409e42?{'source':_0x409e42[_0x280a08(0x3a7)],'imageSourceType':_0x409e42[_0x280a08(0x36a)]}:null;}}));}};fe=Je([Re(0x0,b[_0x412fda(0x2f7)]),Re(0x1,qe['IImageIoService'])],fe);const Oe=[_0x412fda(0x35a),_0x412fda(0x1d3),_0x412fda(0x399),_0x412fda(0x244),_0x412fda(0x2a6),_0x412fda(0x329)];class Ce extends a['Disposable']{constructor(){const _0x383b1e=_0x412fda;super(...arguments),_(this,_0x383b1e(0x373),new Map()),_(this,_0x383b1e(0x27d),0x0);}[_0x412fda(0x267)](_0xbc9b75){const _0x43c267=_0x412fda;if(this['_assignedColors'][_0x43c267(0x1ee)](_0xbc9b75))return this[_0x43c267(0x373)][_0x43c267(0x404)](_0xbc9b75);const _0x199c6b=Oe[this[_0x43c267(0x27d)]];return this[_0x43c267(0x27d)]=(this[_0x43c267(0x27d)]+0x1)%Oe[_0x43c267(0x409)],this[_0x43c267(0x373)]['set'](_0xbc9b75,_0x199c6b),_0x199c6b;}}function we(_0x479887){const _0x1cd126=_0x412fda;let _0x1bc94b='';for(const _0x273503 of _0x479887){const {startOffset:_0x238dfb,endOffset:_0x27a8e3,isActive:_0x200227,rangeType:_0x571ee1,segmentId:_0x51018c,segmentPage:_0x12fc52}=_0x273503;_0x1bc94b[_0x1cd126(0x409)]&&(_0x1bc94b+=','),_0x1bc94b+=_0x238dfb+':'+_0x27a8e3+':'+(_0x200227?'1':'0')+':'+_0x571ee1+':'+_0x51018c+':'+_0x12fc52;}return _0x1bc94b;}function Ze(_0x32dba2){const _0x4ecec4=_0x412fda,_0x4b5750=_0x32dba2[_0x4ecec4(0x26b)](','),_0x2eb7d7=[];for(const _0x56711c of _0x4b5750){const [_0x28ea70,_0x39156f,_0xa61beb,_0x10e86f,_0x2ba632,_0x4fcac0]=_0x56711c[_0x4ecec4(0x26b)](':');_0x2eb7d7[_0x4ecec4(0x203)]({'startOffset':Number(_0x28ea70),'endOffset':Number(_0x39156f),'collapsed':_0x28ea70===_0x39156f,'isActive':_0xa61beb==='1','rangeType':_0x10e86f===a[_0x4ecec4(0x1f5)][_0x4ecec4(0x255)]?a[_0x4ecec4(0x1f5)][_0x4ecec4(0x255)]:a[_0x4ecec4(0x1f5)][_0x4ecec4(0x257)],'segmentId':typeof _0x2ba632=='string'?String(_0x2ba632):'','segmentPage':Number(_0x4fcac0!=null?_0x4fcac0:-0x1)});}return _0x2eb7d7['some'](_0x31afcc=>_0x31afcc[_0x4ecec4(0x42f)])||(_0x2eb7d7[0x0][_0x4ecec4(0x42f)]=!0x0),_0x2eb7d7;}class pe extends a[_0x412fda(0x1c0)]{constructor(){const _0xe68692=_0x412fda;super(...arguments),_(this,_0xe68692(0x41a),new d[(_0xe68692(0x1df))](null)),_(this,'collabCursorState$',this[_0xe68692(0x41a)][_0xe68692(0x2bf)]());}[_0x412fda(0x1ca)](_0x3a06e0){const _0x13f4f6=_0x412fda,{unitID:_0x31cafa,memberID:_0x593f1c,textRanges:_0x25f0aa}=_0x3a06e0,_0x467306=we(_0x25f0aa);if(_0x467306==='')return;const _0x41264f={'unitID':_0x31cafa,'memberID':_0x593f1c,'selection':_0x467306};this['_collabCursorState$'][_0x13f4f6(0x2e4)](_0x41264f);}}var Qe=Object['getOwnPropertyDescriptor'],et=(_0x66b9ba,_0xc3b084,_0x363221,_0x3e20d7)=>{for(var _0x5c4042=_0x3e20d7>0x1?void 0x0:_0x3e20d7?Qe(_0xc3b084,_0x363221):_0xc3b084,_0x245d51=_0x66b9ba['length']-0x1,_0x5ab98a;_0x245d51>=0x0;_0x245d51--)(_0x5ab98a=_0x66b9ba[_0x245d51])&&(_0x5c4042=_0x5ab98a(_0x5c4042)||_0x5c4042);return _0x5c4042;},P=(_0x5eb53d,_0x15a3ef)=>(_0x2fc496,_0x21e4a9)=>_0x15a3ef(_0x2fc496,_0x21e4a9,_0x5eb53d);const tt=0x12c,st=0x64;let Se=class extends a[_0x412fda(0x1c0)]{constructor(_0xe1a71e,_0x453e90,_0x42ae7a,_0x138336,_0x6a71a7,_0x26ecac,_0x342f73,_0x530ece,_0x21a1f4){const _0x3c77ff=_0x412fda;super(),_(this,_0x3c77ff(0x1d4),!0x1),_(this,'_init',!0x1),_(this,_0x3c77ff(0x21f),new d['BehaviorSubject'](new Map())),_(this,_0x3c77ff(0x2b7),this['_cursorInfo$'][_0x3c77ff(0x2bf)]()),_(this,_0x3c77ff(0x213),new d[(_0x3c77ff(0x1df))]([])),_(this,_0x3c77ff(0x229),this['_roomMembers$'][_0x3c77ff(0x254)](d[_0x3c77ff(0x360)](tt))),_(this,'_updateLocalCursor',a['debounce'](_0x48c14f=>{const _0x2be00b=_0x3c77ff,_0x7f9d6d={'eventID':m[_0x2be00b(0x376)][_0x2be00b(0x333)],'data':{'unitID':this[_0x2be00b(0x31d)],'memberID':this[_0x2be00b(0x431)][_0x2be00b(0x3b4)](),'selection':we(_0x48c14f)}};this[_0x2be00b(0x431)]['send'](_0x7f9d6d,this['unitID']);},st)),(this[_0x3c77ff(0x31d)]=_0xe1a71e,this[_0x3c77ff(0x431)]=_0x453e90,this[_0x3c77ff(0x24d)]=_0x42ae7a,this[_0x3c77ff(0x1f1)]=_0x138336,this[_0x3c77ff(0x381)]=_0x6a71a7,this['_syncEditingCollabCursorService']=_0x26ecac,this[_0x3c77ff(0x437)]=_0x342f73,this[_0x3c77ff(0x314)]=_0x530ece,this[_0x3c77ff(0x320)]=_0x21a1f4);}get[_0x412fda(0x37e)](){const _0x5790e7=_0x412fda;return this[_0x5790e7(0x21f)][_0x5790e7(0x2d8)]();}get[_0x412fda(0x231)](){const _0x5145a5=_0x412fda;return this[_0x5145a5(0x213)][_0x5145a5(0x2d8)]();}[_0x412fda(0x27f)](){const _0x558e8c=_0x412fda;super[_0x558e8c(0x27f)](),this[_0x558e8c(0x21f)][_0x558e8c(0x2e4)](new Map()),this['_cursorInfo$'][_0x558e8c(0x252)](),this['_roomMembers$'][_0x558e8c(0x2e4)]([]),this[_0x558e8c(0x213)][_0x558e8c(0x252)]();}['init'](){const _0x2d736f=_0x412fda;this[_0x2d736f(0x3fc)]||(this['_init']=!0x0,this['_session'][_0x2d736f(0x438)][_0x2d736f(0x254)](d[_0x2d736f(0x372)](this[_0x2d736f(0x414)]))[_0x2d736f(0x3c5)](_0x1218e7=>{const _0x3e356e=_0x2d736f;_0x1218e7===u[_0x3e356e(0x1dd)][_0x3e356e(0x3cd)]?this['_toggleOnline']():this['_toggleOffline']();}),this[_0x2d736f(0x431)][_0x2d736f(0x274)]['pipe'](d[_0x2d736f(0x372)](this[_0x2d736f(0x414)]))['subscribe'](_0x1259b6=>{const _0x2a0dbb=_0x2d736f,_0x524f49=_0x1259b6['eventID'];_0x524f49===m[_0x2a0dbb(0x376)][_0x2a0dbb(0x333)]&&this[_0x2a0dbb(0x25e)](_0x1259b6),_0x524f49===m[_0x2a0dbb(0x376)][_0x2a0dbb(0x385)]&&this[_0x2a0dbb(0x41b)](_0x1259b6);}),this[_0x2d736f(0x2d1)](this['_commandService'][_0x2d736f(0x39c)](_0x53d185=>{const _0x1e7bf6=_0x2d736f,_0x5882df=_0x53d185[_0x1e7bf6(0x377)];_0x5882df!=null&&this[_0x1e7bf6(0x1d4)]&&_0x53d185['id']===Y[_0x1e7bf6(0x323)]['id']&&_0x5882df['unitId']===this[_0x1e7bf6(0x31d)]&&_0x5882df['isEditing']===!0x1&&_0x5882df['ranges'][_0x1e7bf6(0x409)]>0x0&&this['_updateLocalCursor'](_0x5882df[_0x1e7bf6(0x300)]);})),this[_0x2d736f(0x389)][_0x2d736f(0x3ae)][_0x2d736f(0x254)](d['takeUntil'](this[_0x2d736f(0x414)]))[_0x2d736f(0x3c5)](_0x463a0c=>{const _0x67062=_0x2d736f;if((_0x463a0c==null?void 0x0:_0x463a0c['unitID'])!==this[_0x67062(0x31d)])return;const _0x1474ff={'eventID':m[_0x67062(0x376)][_0x67062(0x333)],'data':_0x463a0c};this[_0x67062(0x25e)](_0x1474ff);}),this['disposeWithMe'](this['_commandService'][_0x2d736f(0x39c)](_0x3678fd=>{const _0x521910=_0x2d736f;if(_0x3678fd[_0x521910(0x377)]==null)return;const _0x2c0976=_0x3678fd[_0x521910(0x377)];if(_0x3678fd['id']!==Y[_0x521910(0x3c3)]['id']||_0x2c0976[_0x521910(0x406)]!==this[_0x521910(0x31d)])return;const _0x63d5ae={'id':_0x521910(0x236),'params':_0x2c0976},_0x5d3375=this[_0x521910(0x37e)];for(const [_0x23923c,_0x2c52c6]of _0x5d3375){const _0x23a94e={'id':_0x521910(0x236),'params':{'unitId':this[_0x521910(0x31d)],'actions':null,'textRanges':_0x2c52c6['ranges']}},_0x425b30=this['_transformService'][_0x521910(0x394)](_0x63d5ae,_0x23a94e,!0x1);if(m['isTransformMutationFailure'](_0x425b30))throw _0x425b30['error'];_0x5d3375[_0x521910(0x207)](_0x23923c,{..._0x2c52c6,'ranges':_0x425b30['m2Prime'][_0x521910(0x377)][_0x521910(0x299)]});}queueMicrotask(()=>{const _0x3fce50=_0x521910;this[_0x3fce50(0x21f)]['next'](_0x5d3375);});})));}['_onCursorUpdate'](_0x227928){const _0x4cfb29=_0x412fda;var _0x323484,_0x3d45db;const {memberID:_0x16679e,selection:_0x27a8e0}=_0x227928[_0x4cfb29(0x2f9)],_0x589dcd=Ze(_0x27a8e0),_0x54a8c7=(_0x3d45db=(_0x323484=this[_0x4cfb29(0x381)]['getMember'](this[_0x4cfb29(0x31d)],_0x16679e))==null?void 0x0:_0x323484['name'])!=null?_0x3d45db:_0x4cfb29(0x318),_0x167e49={'color':this['_colorAssignService'][_0x4cfb29(0x267)](_0x16679e),'name':_0x54a8c7,'ranges':_0x589dcd},_0x4e53ec=this[_0x4cfb29(0x37e)];_0x4e53ec[_0x4cfb29(0x207)](_0x16679e,_0x167e49),this[_0x4cfb29(0x21f)][_0x4cfb29(0x2e4)](_0x4e53ec);}['_onCursorDelete'](_0xbc460c){const _0x5e141b=_0x412fda,{memberID:_0x2f195e}=_0xbc460c[_0x5e141b(0x2f9)],_0x261edb=this[_0x5e141b(0x37e)];_0x261edb[_0x5e141b(0x33f)](_0x2f195e),this[_0x5e141b(0x21f)][_0x5e141b(0x2e4)](_0x261edb);}[_0x412fda(0x2af)](){const _0x4429da=_0x412fda;var _0x1181f8;if(this[_0x4429da(0x1d4)]=!0x0,((_0x1181f8=this[_0x4429da(0x314)]['getFocusedUnit']())==null?void 0x0:_0x1181f8[_0x4429da(0x1c9)]())!==this[_0x4429da(0x31d)])return;const _0x149a4c=this[_0x4429da(0x24d)][_0x4429da(0x404)](Y[_0x4429da(0x2dc)])['getDocRanges']();Array[_0x4429da(0x40e)](_0x149a4c)&&_0x149a4c[_0x4429da(0x409)]>0x0&&this[_0x4429da(0x2e2)](_0x149a4c);}[_0x412fda(0x27e)](){const _0x287f53=_0x412fda;this[_0x287f53(0x1d4)]=!0x1;}};Se=et([P(0x2,a[_0x412fda(0x22a)](a[_0x412fda(0x2ed)])),P(0x3,a['Inject'](Ce)),P(0x4,a['Inject'](u[_0x412fda(0x419)])),P(0x5,a[_0x412fda(0x22a)](pe)),P(0x6,m[_0x412fda(0x2eb)]),P(0x7,a[_0x412fda(0x289)]),P(0x8,a['ICommandService'])],Se);var nt=Object['getOwnPropertyDescriptor'],it=(_0x35e335,_0x23eaa0,_0x3ca61d,_0x401836)=>{const _0x513eed=_0x412fda;for(var _0x5a0842=_0x401836>0x1?void 0x0:_0x401836?nt(_0x23eaa0,_0x3ca61d):_0x23eaa0,_0x411e44=_0x35e335[_0x513eed(0x409)]-0x1,_0x4d3259;_0x411e44>=0x0;_0x411e44--)(_0x4d3259=_0x35e335[_0x411e44])&&(_0x5a0842=_0x4d3259(_0x5a0842)||_0x5a0842);return _0x5a0842;},A=(_0x8e48b4,_0x23921b)=>(_0x371c73,_0x3f2696)=>_0x23921b(_0x371c73,_0x3f2696,_0x8e48b4);const rt=0x12c,ot=0x64,at=()=>{let _0x1c86c1=[],_0x592ed3=!0x1;return _0x239888=>{const _0x409757=_0x3ec3;_0x1c86c1[_0x409757(0x203)](_0x239888),_0x592ed3||(_0x592ed3=!0x0,setTimeout(()=>{const _0x3627b5=_0x409757;_0x1c86c1[_0x3627b5(0x3e1)](_0xaf7894=>_0xaf7894()),_0x1c86c1=[],_0x592ed3=!0x1;}));};};let Ie=class extends a['RxDisposable']{constructor(_0x2677d5,_0x7b6355,_0x57d69d,_0x111047,_0x57ce57,_0x533898,_0x5ea5ce,_0x1d1dda){const _0x2f3d29=_0x412fda;super(),_(this,_0x2f3d29(0x1d4),!0x1),_(this,_0x2f3d29(0x3fc),!0x1),_(this,_0x2f3d29(0x21f),new d[(_0x2f3d29(0x1df))](new Map())),_(this,_0x2f3d29(0x2b7),this[_0x2f3d29(0x21f)][_0x2f3d29(0x2bf)]()),_(this,_0x2f3d29(0x213),new d[(_0x2f3d29(0x1df))]([])),_(this,_0x2f3d29(0x229),this['_roomMembers$'][_0x2f3d29(0x254)](d[_0x2f3d29(0x360)](rt))),_(this,_0x2f3d29(0x2e2),a[_0x2f3d29(0x425)]((_0x1f22b5,_0x5e67f7)=>{const _0x50cb57=_0x2f3d29,_0x456730={'eventID':m['CollaborationEvent'][_0x50cb57(0x333)],'data':{'unitID':this[_0x50cb57(0x31d)],'memberID':this[_0x50cb57(0x431)][_0x50cb57(0x3b4)](),'selection':Te[_0x50cb57(0x3bd)](_0x1f22b5,_0x5e67f7[_0x50cb57(0x3f0)])}};this[_0x50cb57(0x431)]['send'](_0x456730,this[_0x50cb57(0x31d)]);},ot)),(this[_0x2f3d29(0x31d)]=_0x2677d5,this['_session']=_0x7b6355,this[_0x2f3d29(0x24d)]=_0x57d69d,this[_0x2f3d29(0x1f1)]=_0x111047,this[_0x2f3d29(0x381)]=_0x57ce57,this['_univerInstanceService']=_0x533898,this[_0x2f3d29(0x320)]=_0x5ea5ce,this['_refRangeService']=_0x1d1dda);}get[_0x412fda(0x37e)](){const _0x38c86f=_0x412fda;return this[_0x38c86f(0x21f)][_0x38c86f(0x2d8)]();}get[_0x412fda(0x231)](){const _0x30a0b1=_0x412fda;return this[_0x30a0b1(0x213)]['getValue']();}[_0x412fda(0x27f)](){const _0x5d1202=_0x412fda;super['dispose'](),this['_cursorInfo$'][_0x5d1202(0x2e4)](new Map()),this['_cursorInfo$'][_0x5d1202(0x252)](),this[_0x5d1202(0x213)][_0x5d1202(0x2e4)]([]),this[_0x5d1202(0x213)][_0x5d1202(0x252)]();}[_0x412fda(0x25a)](){const _0x56bc5f=_0x412fda;this[_0x56bc5f(0x3fc)]||(this[_0x56bc5f(0x3fc)]=!0x0,this[_0x56bc5f(0x431)][_0x56bc5f(0x438)]['pipe'](d[_0x56bc5f(0x372)](this['dispose$']))[_0x56bc5f(0x3c5)](_0x2ff656=>{const _0x273214=_0x56bc5f;_0x2ff656===u['SessionStatus'][_0x273214(0x3cd)]?this['_toggleOnline']():this['_toggleOffline']();}),this[_0x56bc5f(0x431)][_0x56bc5f(0x274)][_0x56bc5f(0x254)](d[_0x56bc5f(0x372)](this['dispose$']))[_0x56bc5f(0x3c5)](_0x269c90=>{const _0x1a84fd=_0x56bc5f,_0x13bf90=_0x269c90['eventID'];_0x13bf90===m[_0x1a84fd(0x376)]['UPDATE_CURSOR']&&this['_onCursorUpdate'](_0x269c90),_0x13bf90===m[_0x1a84fd(0x376)]['USERS_LEAVE']&&this[_0x1a84fd(0x41b)](_0x269c90);}),this[_0x56bc5f(0x1b9)](),this[_0x56bc5f(0x2d1)](this['_commandService'][_0x56bc5f(0x39c)](_0x400c6e=>{const _0x49f2dc=_0x56bc5f;if(this[_0x49f2dc(0x1d4)]&&_0x400c6e['id']===g['SetSelectionsOperation']['id']&&_0x400c6e['params']['unitId']===this['unitID']){const _0x55bd5b=_0x400c6e[_0x49f2dc(0x377)];this[_0x49f2dc(0x2e2)](_0x55bd5b[_0x49f2dc(0x368)],_0x55bd5b['selections'][0x0]);}})));}['_onCursorUpdate'](_0x406ae4){const _0x166020=_0x412fda;var _0xd9c626,_0x112c47;const {memberID:_0x2a0ad8,selection:_0x2a0f77}=_0x406ae4['data'],{sheetName:_0x2fa2c9,range:_0x1fb85b}=Te['deserializeRangeWithSheet'](_0x2a0f77),_0x5a87fc={'name':(_0x112c47=(_0xd9c626=this['_memberService'][_0x166020(0x371)](this['unitID'],_0x2a0ad8))==null?void 0x0:_0xd9c626[_0x166020(0x27a)])!=null?_0x112c47:_0x166020(0x318),'range':this['_getMergeRange'](_0x2fa2c9,_0x1fb85b),'sheetID':_0x2fa2c9,'color':this['_colorAssignService'][_0x166020(0x267)](_0x2a0ad8),'selection':_0x2a0f77},_0x5876f2=this[_0x166020(0x37e)];_0x5876f2[_0x166020(0x207)](_0x2a0ad8,_0x5a87fc),this[_0x166020(0x21f)][_0x166020(0x2e4)](_0x5876f2);}[_0x412fda(0x41b)](_0x9855f2){const _0x226dc0=_0x412fda,{memberID:_0x5b9001}=_0x9855f2[_0x226dc0(0x2f9)],_0x592327=this[_0x226dc0(0x37e)];_0x592327[_0x226dc0(0x33f)](_0x5b9001),this[_0x226dc0(0x21f)][_0x226dc0(0x2e4)](_0x592327);}[_0x412fda(0x227)](_0x101c51,_0x318a06){const _0x362303=_0x412fda;var _0x34f41d,_0xa345b;const _0x362d2f=(_0xa345b=(_0x34f41d=this['_univerInstanceService'][_0x362303(0x1ef)](this['unitID']))==null?void 0x0:_0x34f41d['getSheetBySheetId'](_0x101c51))==null?void 0x0:_0xa345b['getMergeData']();return(_0x362d2f==null?void 0x0:_0x362d2f[_0x362303(0x42c)](_0x2fb3d6=>a[_0x362303(0x294)][_0x362303(0x22e)](_0x2fb3d6,_0x318a06)))||_0x318a06;}[_0x412fda(0x1b9)](){const _0x309389=_0x412fda,_0x291eff=new a['DisposableCollection'](),_0x4a6cc7=at(),_0x1d5617=()=>{const _0x5bd8e0=_0x3ec3;_0x291eff[_0x5bd8e0(0x27f)]();const _0x113650=(_0xc12297,_0x246469,_0x3b380b,_0x354750)=>{const _0x19f4ab=_0x5bd8e0;let _0x55e3b4=[];switch(_0xc12297['id']){case g[_0x19f4ab(0x25c)][_0x19f4ab(0x336)]:{_0x55e3b4=g[_0x19f4ab(0x3ba)](_0xc12297,_0x354750);break;}case g['EffectRefRangId'][_0x19f4ab(0x224)]:{_0x55e3b4=g[_0x19f4ab(0x34e)](_0xc12297,_0x354750);break;}case g['EffectRefRangId']['InsertColCommandId']:{_0x55e3b4=g[_0x19f4ab(0x2db)](_0xc12297,_0x354750);break;}case g['EffectRefRangId']['InsertRangeMoveDownCommandId']:{_0x55e3b4=g['handleInsertRangeMoveDown'](_0xc12297,_0x354750);break;}case g[_0x19f4ab(0x25c)][_0x19f4ab(0x390)]:{_0x55e3b4=g[_0x19f4ab(0x215)](_0xc12297,_0x354750);break;}case g[_0x19f4ab(0x25c)]['InsertRowCommandId']:{_0x55e3b4=g[_0x19f4ab(0x366)](_0xc12297,_0x354750);break;}case g[_0x19f4ab(0x25c)][_0x19f4ab(0x3b0)]:{_0x55e3b4=g['handleMoveRange'](_0xc12297,_0x354750);break;}case g['EffectRefRangId'][_0x19f4ab(0x309)]:{_0x55e3b4=g[_0x19f4ab(0x32c)](_0xc12297,_0x354750);break;}case g[_0x19f4ab(0x25c)][_0x19f4ab(0x40a)]:{_0x55e3b4=g['handleIRemoveRow'](_0xc12297,_0x354750);break;}}const _0x20bed8=g[_0x19f4ab(0x41e)](_0x55e3b4,_0x354750),_0x4a853c=this[_0x19f4ab(0x37e)]['get'](_0x246469);if(_0x4a853c&&_0x20bed8){const _0x5c7173={..._0x4a853c,'range':_0x20bed8};this[_0x19f4ab(0x37e)][_0x19f4ab(0x207)](_0x246469,_0x5c7173),_0x4a6cc7(()=>{const _0x5c63ba=_0x19f4ab,_0x591e23=this[_0x5c63ba(0x1e8)][_0x5c63ba(0x2c9)](_0x20bed8,_0x2c7a07=>(_0x591e23[_0x5c63ba(0x27f)](),_0x113650(_0x2c7a07,_0x246469,_0x3b380b,_0x20bed8)));_0x291eff[_0x5c63ba(0x3a0)](_0x591e23);});}return{'redos':[],'undos':[]};};this[_0x5bd8e0(0x37e)][_0x5bd8e0(0x3e1)]((_0x335fa0,_0x90b20a)=>{const _0x4c2489=_0x5bd8e0,{range:_0x1503dd,sheetID:_0x5b4304}=_0x335fa0,_0x2a46e9=this['_refRangeService'][_0x4c2489(0x2c9)](_0x1503dd,_0x43c615=>(_0x2a46e9[_0x4c2489(0x27f)](),_0x113650(_0x43c615,_0x90b20a,_0x5b4304,_0x1503dd)));_0x291eff[_0x4c2489(0x3a0)](_0x2a46e9);});};this[_0x309389(0x2d1)](a[_0x309389(0x32d)](this['_cursorInfo$']['subscribe'](()=>{_0x1d5617();})));}[_0x412fda(0x2af)](){const _0x378b57=_0x412fda;var _0x44689b,_0x4cdb98;if(this[_0x378b57(0x1d4)]=!0x0,((_0x44689b=this['_univerInstanceService'][_0x378b57(0x38c)]())==null?void 0x0:_0x44689b[_0x378b57(0x1c9)]())!==this[_0x378b57(0x31d)])return;const _0x36e623=(_0x4cdb98=this[_0x378b57(0x24d)][_0x378b57(0x404)](g[_0x378b57(0x3bc)])['getCurrentSelections']())==null?void 0x0:_0x4cdb98[0x0],_0x19f9fb=this['_univerInstanceService'][_0x378b57(0x2aa)](a[_0x378b57(0x220)]['UNIVER_SHEET'])[_0x378b57(0x3e9)]();_0x36e623&&_0x19f9fb&&this[_0x378b57(0x2e2)](_0x19f9fb['getSheetId'](),_0x36e623);}[_0x412fda(0x27e)](){const _0x1bedb4=_0x412fda;this[_0x1bedb4(0x1d4)]=!0x1;}};Ie=it([A(0x2,a[_0x412fda(0x22a)](a['Injector'])),A(0x3,a[_0x412fda(0x22a)](Ce)),A(0x4,a[_0x412fda(0x22a)](u['MemberService'])),A(0x5,a[_0x412fda(0x289)]),A(0x6,a[_0x412fda(0x3ac)]),A(0x7,a[_0x412fda(0x22a)](g[_0x412fda(0x291)]))],Ie);var ct=Object['getOwnPropertyDescriptor'],lt=(_0x1b3ff3,_0x2ae25b,_0x579667,_0x3631d7)=>{const _0x54df7f=_0x412fda;for(var _0x2eb8d7=_0x3631d7>0x1?void 0x0:_0x3631d7?ct(_0x2ae25b,_0x579667):_0x2ae25b,_0x1a0e9e=_0x1b3ff3[_0x54df7f(0x409)]-0x1,_0x40d908;_0x1a0e9e>=0x0;_0x1a0e9e--)(_0x40d908=_0x1b3ff3[_0x1a0e9e])&&(_0x2eb8d7=_0x40d908(_0x2eb8d7)||_0x2eb8d7);return _0x2eb8d7;},ie=(_0x58a1de,_0x328534)=>(_0x165634,_0x1568f5)=>_0x328534(_0x165634,_0x1568f5,_0x58a1de);let x=class extends a[_0x412fda(0x1c0)]{constructor(_0x5b23fd,_0x358aec,_0x11b1fd){const _0xcf61d1=_0x412fda;super(),_(this,_0xcf61d1(0x25f),new Map()),_(this,_0xcf61d1(0x2c0),new d[(_0xcf61d1(0x351))]()),(this['_univerInstanceService']=_0x5b23fd,this[_0xcf61d1(0x24d)]=_0x358aec,this['_collabSessionService']=_0x11b1fd,this['_init']());}[_0x412fda(0x27f)](){const _0x3a7b4b=_0x412fda;super[_0x3a7b4b(0x27f)](),this['_entityInit$']['complete'](),this[_0x3a7b4b(0x25f)][_0x3a7b4b(0x3e1)](_0x36f643=>_0x36f643['dispose']());}['getCollabCursors$'](_0xb09641){const _0x1995ac=_0x412fda;return this[_0x1995ac(0x25f)][_0x1995ac(0x1ee)](_0xb09641)?this[_0x1995ac(0x25f)][_0x1995ac(0x404)](_0xb09641)[_0x1995ac(0x2b7)]:this[_0x1995ac(0x2c0)][_0x1995ac(0x254)](d[_0x1995ac(0x2ec)](_0x59680e=>_0x59680e[_0x1995ac(0x31d)]===_0xb09641),d[_0x1995ac(0x400)](_0x39a66f=>_0x39a66f[_0x1995ac(0x2b7)]));}[_0x412fda(0x3fc)](){const _0x1e4b3a=_0x412fda;this['_univerInstanceService'][_0x1e4b3a(0x346)](a[_0x1e4b3a(0x220)]['UNIVER_SHEET'])[_0x1e4b3a(0x254)](d[_0x1e4b3a(0x372)](this[_0x1e4b3a(0x414)]))[_0x1e4b3a(0x3c5)](async _0x1e289e=>{const _0x2e7d44=_0x1e4b3a,_0x41da24=_0x1e289e[_0x2e7d44(0x1c9)](),_0x2d3668=await this['_startSheetCollabCursor'](_0x41da24);this[_0x2e7d44(0x2c0)]['next'](_0x2d3668),this[_0x2e7d44(0x25f)]['set'](_0x41da24,_0x2d3668);}),this[_0x1e4b3a(0x314)][_0x1e4b3a(0x346)](a['UniverInstanceType'][_0x1e4b3a(0x427)])[_0x1e4b3a(0x254)](d[_0x1e4b3a(0x372)](this['dispose$']))[_0x1e4b3a(0x254)](d[_0x1e4b3a(0x2ec)](_0x5a0e8c=>!_0x5a0e8c['getUnitId']()[_0x1e4b3a(0x23b)]('__')))[_0x1e4b3a(0x3c5)](async _0x37669b=>{const _0x5cf256=_0x1e4b3a,_0x3ca803=_0x37669b[_0x5cf256(0x1c9)](),_0x455a3a=await this[_0x5cf256(0x242)](_0x3ca803);this[_0x5cf256(0x2c0)][_0x5cf256(0x2e4)](_0x455a3a),this['_entities'][_0x5cf256(0x207)](_0x3ca803,_0x455a3a);}),d['merge'](this[_0x1e4b3a(0x314)][_0x1e4b3a(0x263)](a['UniverInstanceType'][_0x1e4b3a(0x427)]),this[_0x1e4b3a(0x314)][_0x1e4b3a(0x263)](a['UniverInstanceType'][_0x1e4b3a(0x354)]))[_0x1e4b3a(0x254)](d['takeUntil'](this[_0x1e4b3a(0x414)]))['subscribe'](_0x5a56ef=>{const _0x464eb1=_0x1e4b3a,_0x3ab10a=_0x5a56ef[_0x464eb1(0x1c9)](),_0x49b91f=this[_0x464eb1(0x25f)][_0x464eb1(0x404)](_0x3ab10a);_0x49b91f&&(_0x49b91f[_0x464eb1(0x27f)](),this[_0x464eb1(0x25f)][_0x464eb1(0x33f)](_0x3ab10a));});}async[_0x412fda(0x2c3)](_0x54c6a6){const _0x37bd8=_0x412fda,_0x42b05a=await this[_0x37bd8(0x428)][_0x37bd8(0x3af)](_0x54c6a6),_0x418204=this[_0x37bd8(0x24d)][_0x37bd8(0x3ef)](Ie,_0x54c6a6,_0x42b05a);return _0x418204['init'](),_0x418204;}async[_0x412fda(0x242)](_0x365369){const _0x43a68a=_0x412fda,_0x538a79=await this['_collabSessionService'][_0x43a68a(0x3af)](_0x365369),_0xb303da=this['_injector']['createInstance'](Se,_0x365369,_0x538a79);return _0xb303da[_0x43a68a(0x25a)](),_0xb303da;}};x=lt([ie(0x0,a[_0x412fda(0x289)]),ie(0x1,a['Inject'](a[_0x412fda(0x2ed)])),ie(0x2,a[_0x412fda(0x22a)](u[_0x412fda(0x416)]))],x);const K=0x14,De=0xc8,re=0x4,_t=0x5;function ht(_0x4065f7,_0x5cbbcf){const _0x2908d6=_0x412fda;let {radius:_0x2e3bb6,width:_0x5a8c35,height:_0x4dc875}=_0x5cbbcf;_0x2e3bb6=_0x2e3bb6!=null?_0x2e3bb6:0x0,_0x5a8c35=_0x5a8c35!=null?_0x5a8c35:0x1e,_0x4dc875=_0x4dc875!=null?_0x4dc875:0x1e;let _0x393ce1=0x0,_0x16eb95=0x0,_0x5434a1=0x0;_0x393ce1=_0x16eb95=_0x5434a1=Math[_0x2908d6(0x347)](_0x2e3bb6,_0x5a8c35/0x2,_0x4dc875/0x2),_0x4065f7[_0x2908d6(0x32a)](),_0x4065f7[_0x2908d6(0x2cc)](_0x393ce1,0x0),_0x4065f7[_0x2908d6(0x361)](_0x5a8c35-_0x16eb95,0x0),_0x4065f7[_0x2908d6(0x276)](_0x5a8c35-_0x16eb95,_0x16eb95,_0x16eb95,Math['PI']*0x3/0x2,0x0,!0x1),_0x4065f7[_0x2908d6(0x361)](_0x5a8c35,_0x4dc875-_0x5434a1),_0x4065f7['arc'](_0x5a8c35-_0x5434a1,_0x4dc875-_0x5434a1,_0x5434a1,0x0,Math['PI']/0x2,!0x1),_0x4065f7['lineTo'](0x0,_0x4dc875),_0x4065f7[_0x2908d6(0x361)](0x0,_0x393ce1),_0x4065f7['arc'](_0x393ce1,_0x393ce1,_0x393ce1,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x4065f7['closePath'](),_0x5cbbcf[_0x2908d6(0x3a6)]&&(_0x4065f7[_0x2908d6(0x39d)](),_0x4065f7[_0x2908d6(0x322)]=_0x5cbbcf[_0x2908d6(0x3a6)],_0x5cbbcf[_0x2908d6(0x228)]===_0x2908d6(0x1ec)?_0x4065f7[_0x2908d6(0x3a6)](_0x2908d6(0x1ec)):_0x4065f7[_0x2908d6(0x3a6)](),_0x4065f7[_0x2908d6(0x3fd)]());}class te extends p['Shape']{constructor(_0x45460a,_0x1f27be){const _0xb612b5=_0x412fda;super(_0x45460a,_0x1f27be),_(this,_0xb612b5(0x226)),_(this,'text'),(this['color']=_0x1f27be==null?void 0x0:_0x1f27be['color'],this['text']=_0x1f27be==null?void 0x0:_0x1f27be[_0xb612b5(0x1c1)]);}static['drawWith'](_0x50769e,_0x3e0c69){const _0x52dd48=_0x412fda,{text:_0x55f21d,color:_0x1d449f}=_0x3e0c69;_0x50769e[_0x52dd48(0x39d)](),_0x50769e[_0x52dd48(0x24e)]='bold\x2013px\x20Source\x20Han\x20Sans\x20CN';const _0x59c160=_0x50769e['measureText'](_0x55f21d)['width'],_0x4910ea=Math[_0x52dd48(0x347)](_0x59c160+0x2*re,De);ht(_0x50769e,{'height':K,'radius':0x4,'width':_0x4910ea,'fill':_0x1d449f}),_0x50769e[_0x52dd48(0x322)]=_0x52dd48(0x239);const _0x57333f=re,_0x54ce0d=K-_t,_0xf19377=De-0x2*re;if(_0x59c160>_0xf19377){let _0x390201='',_0x4bdb86=0x0;for(const _0x3521a0 of _0x55f21d){const _0x3c723a=_0x50769e[_0x52dd48(0x3d6)](_0x3521a0)[_0x52dd48(0x43c)];if(_0x4bdb86+_0x3c723a<=_0xf19377-_0x50769e[_0x52dd48(0x3d6)]('...')[_0x52dd48(0x43c)])_0x390201+=_0x3521a0,_0x4bdb86+=_0x3c723a;else{_0x390201+=_0x52dd48(0x21e);break;}}_0x50769e[_0x52dd48(0x38b)](_0x390201,_0x57333f,_0x54ce0d);}else _0x50769e[_0x52dd48(0x38b)](_0x55f21d,_0x57333f,_0x54ce0d);_0x50769e[_0x52dd48(0x3fd)]();}[_0x412fda(0x1c8)](_0x57dd95){const _0x37bc23=_0x412fda;te[_0x37bc23(0x39e)](_0x57dd95,this);}}const oe=_0x412fda(0x2c5),ut=_0x412fda(0x1bc),dt='collab-rect-range-',k=0x6,ft=1.5,ae=0x4,St=1.5,It=_0x412fda(0x315);class Ue{constructor(_0x662e8e,_0x543416,_0x3e816a,_0x56586c){const _0x5949f8=_0x412fda;_(this,'_shapes',[]),_(this,_0x5949f8(0x2fd),null),_(this,_0x5949f8(0x2a2),null),_(this,_0x5949f8(0x247),null),_(this,_0x5949f8(0x3dc),null),_(this,'_eventUnsubscribe',null),(this[_0x5949f8(0x270)]=_0x662e8e,this[_0x5949f8(0x202)]=_0x543416,this[_0x5949f8(0x281)]=_0x3e816a,this[_0x5949f8(0x1d0)]=_0x56586c,this['_render']());}set[_0x412fda(0x42d)](_0x2bc091){const _0x3f9889=_0x412fda;_0x2bc091?(this[_0x3f9889(0x247)]&&this['_anchorDot'][_0x3f9889(0x3ce)](),this[_0x3f9889(0x2a2)]&&this['_textBubble'][_0x3f9889(0x20a)]()):(this['_anchorDot']&&this[_0x3f9889(0x247)][_0x3f9889(0x20a)](),this[_0x3f9889(0x2a2)]&&this[_0x3f9889(0x2a2)][_0x3f9889(0x3ce)]());}[_0x412fda(0x27f)](){const _0x57db8e=_0x412fda;for(const _0x152b59 of this[_0x57db8e(0x219)])_0x152b59[_0x57db8e(0x27f)]();this[_0x57db8e(0x2a2)]&&this[_0x57db8e(0x2a2)][_0x57db8e(0x27f)](),this['_anchorDot']&&this[_0x57db8e(0x247)][_0x57db8e(0x27f)](),this[_0x57db8e(0x2fd)]&&this[_0x57db8e(0x2fd)][_0x57db8e(0x27f)](),this[_0x57db8e(0x349)]&&this[_0x57db8e(0x349)]();}[_0x412fda(0x1d5)](){const _0x3e6c30=_0x412fda;var _0x1b36da;const {_docSkeleton:_0x58f5d5,_document:_0x5e8838}=this,{color:_0x5edae7,name:_0x226968,ranges:_0x36885f}=this[_0x3e6c30(0x270)],_0x5de5a1=_0x5e8838[_0x3e6c30(0x2b3)](),{docsLeft:_0x53d14d,docsTop:_0x4725d7}=_0x5de5a1,_0x43d2f6=new b['NodePositionConvertToCursor'](_0x5de5a1,_0x58f5d5);for(const {startOffset:_0xb53f0f,endOffset:_0x4e51cd,rangeType:_0x21b21a,segmentId:_0x165165,segmentPage:_0x3d32d6,collapsed:_0x522b42,isActive:_0x5d1632}of _0x36885f){const _0x373e37=_0x58f5d5[_0x3e6c30(0x2c4)](_0xb53f0f,!0x0,_0x165165,_0x3d32d6);let _0x47cf25=_0x58f5d5[_0x3e6c30(0x2c4)](_0x4e51cd,!0x0,_0x165165,_0x3d32d6);if(_0x47cf25==null&&(_0x47cf25=_0x58f5d5['findNodePositionByCharIndex'](_0x4e51cd-0x1,!0x1,_0x165165,_0x3d32d6)),_0x5d1632){const {contentBoxPointGroup:_0x1501a4}=_0x43d2f6['getRangePointData'](_0x47cf25,_0x47cf25);if(_0x1501a4[_0x3e6c30(0x409)]===0x0)continue;this[_0x3e6c30(0x335)](_0x5edae7,_0x1501a4,_0x53d14d,_0x4725d7,_0x226968),this[_0x3e6c30(0x349)]=this[_0x3e6c30(0x286)]();}if(_0x373e37&&_0x47cf25){if(_0x21b21a===a[_0x3e6c30(0x1f5)][_0x3e6c30(0x257)]){const _0x3c4a82=new b[(_0x3e6c30(0x1cf))](_0x5de5a1,_0x58f5d5),{pointGroup:_0x558e04}=(_0x1b36da=_0x3c4a82[_0x3e6c30(0x43a)](_0x373e37,_0x47cf25))!=null?_0x1b36da:{};if(_0x558e04==null||_0x558e04[_0x3e6c30(0x409)]===0x0)continue;this[_0x3e6c30(0x375)](_0x5edae7,_0x558e04,_0x53d14d,_0x4725d7);}else{if(!_0x522b42){const {borderBoxPointGroup:_0x1b4afe}=_0x43d2f6[_0x3e6c30(0x43a)](_0x373e37,_0x47cf25);if(_0x1b4afe['length']===0x0)continue;this[_0x3e6c30(0x24b)](_0x5edae7,_0x1b4afe,_0x53d14d,_0x4725d7);}}}}}[_0x412fda(0x335)](_0x1aa592,_0x462d10,_0xcfb5ea,_0x22eb4c,_0x8bda80){const _0x85421c=_0x412fda,_0x1685dc=this[_0x85421c(0x40b)](_0x462d10),{left:_0x385ae9,top:_0x2d7fe3,height:_0x26bb88}=_0x1685dc,_0x4d4dbc=this[_0x85421c(0x211)](),_0x60308f=St/_0x4d4dbc,_0x47708a=new p['Rect'](oe+a[_0x85421c(0x2b1)][_0x85421c(0x31b)](k),{'left':_0x385ae9+_0xcfb5ea-_0x60308f,'top':_0x2d7fe3+_0x22eb4c,'height':_0x26bb88,'width':ft,'fill':_0x1aa592||p[_0x85421c(0x310)](a[_0x85421c(0x3d5)][_0x85421c(0x30c)],0x0),'strokeWidth':_0x60308f,'stroke':It,'evented':!0x0});this[_0x85421c(0x2fd)]=_0x47708a,this[_0x85421c(0x202)]['addObject'](_0x47708a,b[_0x85421c(0x3c0)]);const _0x581fc=new p[(_0x85421c(0x1f8))](oe+a[_0x85421c(0x2b1)][_0x85421c(0x31b)](k),{'left':_0x385ae9+_0xcfb5ea-_0x60308f,'top':_0x2d7fe3+_0x22eb4c-ae/0x2,'height':ae,'width':ae,'fill':_0x1aa592||p[_0x85421c(0x310)](a['COLORS'][_0x85421c(0x30c)],0x0),'strokeWidth':0x0,'stroke':_0x1aa592||p['getColor'](a[_0x85421c(0x3d5)][_0x85421c(0x30c)],0x0),'evented':!0x1});this[_0x85421c(0x247)]=_0x581fc,this[_0x85421c(0x202)][_0x85421c(0x290)](_0x581fc,b[_0x85421c(0x3c0)]);const _0x23ed48=new te(oe+a[_0x85421c(0x2b1)][_0x85421c(0x31b)](k),{'left':_0x385ae9+_0xcfb5ea-_0x60308f,'top':_0x2d7fe3+_0x22eb4c-K,'text':_0x8bda80,'color':_0x1aa592});this['_textBubble']=_0x23ed48,this[_0x85421c(0x202)][_0x85421c(0x290)](_0x23ed48,b['TEXT_RANGE_LAYER_INDEX']),this[_0x85421c(0x42d)]=!0x1;}[_0x412fda(0x286)](){const _0x3e5245=_0x412fda,_0x1ff8e8=this['_anchor'][_0x3e5245(0x2ba)][_0x3e5245(0x3fb)](()=>{const _0x2390be=_0x3e5245;this[_0x2390be(0x42d)]=!0x0;}),_0x13725f=this['_anchor'][_0x3e5245(0x30b)][_0x3e5245(0x3fb)](()=>{const _0x4835c3=_0x3e5245;this['_hideTimer']&&clearTimeout(this[_0x4835c3(0x3dc)]),this['_hideTimer']=setTimeout(()=>{const _0x5e15f3=_0x4835c3;this[_0x5e15f3(0x42d)]=!0x1;},0x7d0);});return()=>{const _0x1085df=_0x3e5245;_0x1ff8e8[_0x1085df(0x312)](),_0x13725f['unsubscribe']();};}[_0x412fda(0x24b)](_0x2ab54e,_0x349f83,_0x9e0f1f,_0x11cf20){const _0x504690=_0x412fda,_0x36d290=new a[(_0x504690(0x3d2))](_0x2ab54e)[_0x504690(0x386)](0.2)[_0x504690(0x1b8)](),_0x379493=new p[(_0x504690(0x20b))](ut+a[_0x504690(0x2b1)][_0x504690(0x31b)](k),{'pointsGroup':_0x349f83,'fill':_0x36d290||p[_0x504690(0x310)](a[_0x504690(0x3d5)][_0x504690(0x30c)],0.2),'left':_0x9e0f1f,'top':_0x11cf20,'evented':!0x1,'debounceParentDirty':!0x1});this['_shapes']['push'](_0x379493),this['_scene'][_0x504690(0x290)](_0x379493,b['TEXT_RANGE_LAYER_INDEX']);}['_drawRectRange'](_0xa1edb5,_0x239e17,_0x2c3bf5,_0x2d20d3){const _0x1cd945=_0x412fda,_0xf28ac1=new a[(_0x1cd945(0x3d2))](_0xa1edb5)[_0x1cd945(0x386)](0.2)[_0x1cd945(0x1b8)](),_0x164d0c=new p[(_0x1cd945(0x20b))](dt+a[_0x1cd945(0x2b1)][_0x1cd945(0x31b)](k),{'pointsGroup':_0x239e17,'fill':_0xf28ac1||p[_0x1cd945(0x310)](a[_0x1cd945(0x3d5)][_0x1cd945(0x30c)],0.2),'left':_0x2c3bf5,'top':_0x2d20d3,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x1cd945(0x219)][_0x1cd945(0x203)](_0x164d0c),this['_scene']['addObject'](_0x164d0c,b[_0x1cd945(0x3c0)]);}[_0x412fda(0x40b)](_0x542039){const _0x48e1ed=_0x542039[0x0],_0x1bb01d=_0x48e1ed[0x0],_0x579b83=_0x48e1ed[0x2],{x:_0x286eda,y:_0x5bab8f}=_0x1bb01d,{x:_0xff4dcc,y:_0x5651d3}=_0x579b83;return{'left':_0x286eda,'top':_0x5bab8f,'width':_0xff4dcc-_0x286eda,'height':_0x5651d3-_0x5bab8f};}['_getScale'](){const _0x4b311a=_0x412fda,{scaleX:_0x2c3b19,scaleY:_0x117fff}=this[_0x4b311a(0x202)]['getAncestorScale']();return Math[_0x4b311a(0x387)](_0x2c3b19,_0x117fff);}}var vt=Object[_0x412fda(0x26e)],gt=(_0x1c49ec,_0x28d79d,_0x4a52c0,_0x308621)=>{const _0x2a7475=_0x412fda;for(var _0x35d208=_0x308621>0x1?void 0x0:_0x308621?vt(_0x28d79d,_0x4a52c0):_0x28d79d,_0x183473=_0x1c49ec[_0x2a7475(0x409)]-0x1,_0x5daee7;_0x183473>=0x0;_0x183473--)(_0x5daee7=_0x1c49ec[_0x183473])&&(_0x35d208=_0x5daee7(_0x35d208)||_0x35d208);return _0x35d208;},V=(_0x5b2192,_0xa32c55)=>(_0x1fcad9,_0x55226c)=>_0xa32c55(_0x1fcad9,_0x55226c,_0x5b2192);let ve=class extends a[_0x412fda(0x1c0)]{constructor(_0x2921fc,_0x5b4cb0,_0x38f087,_0x41bae8,_0x3a5c02){const _0xc044d6=_0x412fda;super(),_(this,_0xc044d6(0x2dd),[]),_(this,_0xc044d6(0x3fa),[]),(this['_context']=_0x2921fc,this['_docSkeletonManagerService']=_0x5b4cb0,this[_0xc044d6(0x1e0)]=_0x38f087,this[_0xc044d6(0x320)]=_0x41bae8,this['_themeService']=_0x3a5c02,this[_0xc044d6(0x3fc)]());}[_0x412fda(0x3fc)](){const _0x61eab8=_0x412fda,_0xe629bb=this['_context'][_0x61eab8(0x406)],_0x53ea8f=this['_docSkeletonManagerService'];this[_0x61eab8(0x2d1)](d[_0x61eab8(0x421)]([this[_0x61eab8(0x1e0)]['getCollabCursors$'](_0xe629bb),this[_0x61eab8(0x278)][_0x61eab8(0x364)]])[_0x61eab8(0x254)]($[_0x61eab8(0x233)](([_0x51e475,_0x142c2f])=>({'skeleton':_0x53ea8f[_0x61eab8(0x1bb)](),'cursors':[..._0x51e475[_0x61eab8(0x41c)]()]['flatMap'](_0x2218e3=>({..._0x2218e3,'color':_0x142c2f[_0x2218e3['color']]}))})))[_0x61eab8(0x3c5)](_0x10d998=>{const _0x3a419a=_0x61eab8;if(this['_removeCollabCursors'](),_0x10d998){const {skeleton:_0x39b338,cursors:_0x2428e9}=_0x10d998;this[_0x3a419a(0x3be)](_0x39b338,_0x2428e9);}})),this[_0x61eab8(0x214)](),this[_0x61eab8(0x21c)]();}[_0x412fda(0x3be)](_0x589cf7,_0x1af65e){const _0x62b65c=_0x412fda,{scene:_0x569e63,mainComponent:_0x592372}=this[_0x62b65c(0x1f0)],_0x26e5c5=_0x1af65e[_0x62b65c(0x233)](_0x323525=>new Ue(_0x323525,_0x569e63,_0x589cf7,_0x592372));this[_0x62b65c(0x2dd)]=_0x26e5c5,this[_0x62b65c(0x3fa)]=_0x1af65e;}['_refreshCollabCursors'](){const _0x431d33=_0x412fda;this[_0x431d33(0x238)]();const {scene:_0x424d38,mainComponent:_0x4aee6f}=this[_0x431d33(0x1f0)],_0x93acfd=this[_0x431d33(0x3d4)][_0x431d33(0x1bb)](),_0x40f83d=this[_0x431d33(0x3fa)][_0x431d33(0x233)](_0x50426d=>new Ue(_0x50426d,_0x424d38,_0x93acfd,_0x4aee6f));this[_0x431d33(0x2dd)]=_0x40f83d;}['_removeCollabCursors'](){const _0x19f99c=_0x412fda;this[_0x19f99c(0x2dd)][_0x19f99c(0x3e1)](_0x2073c3=>_0x2073c3[_0x19f99c(0x27f)]()),this[_0x19f99c(0x2dd)]=[];}[_0x412fda(0x21c)](){const _0x23ffdf=_0x412fda,_0x1f954a=[b[_0x23ffdf(0x2a3)]['id']];this[_0x23ffdf(0x2d1)](this[_0x23ffdf(0x320)]['onCommandExecuted'](_0x36bf86=>{const _0x7c27c1=_0x23ffdf;_0x1f954a[_0x7c27c1(0x204)](_0x36bf86['id'])&&_0x36bf86['params']['unitId']===this[_0x7c27c1(0x1f0)][_0x7c27c1(0x406)]&&this[_0x7c27c1(0x1d8)]();}));}[_0x412fda(0x214)](){const _0x5917f5=_0x412fda;this[_0x5917f5(0x2d1)](a['fromEventSubject'](this[_0x5917f5(0x1f0)][_0x5917f5(0x2ce)][_0x5917f5(0x2f1)])[_0x5917f5(0x254)]($[_0x5917f5(0x2ec)](_0x334c0d=>_0x334c0d[_0x5917f5(0x250)]===p[_0x5917f5(0x35c)][_0x5917f5(0x1c3)]),$[_0x5917f5(0x1db)](0x10))[_0x5917f5(0x3c5)](()=>{const _0x5e0029=_0x5917f5;this[_0x5e0029(0x1d8)]();}));}};ve=gt([V(0x1,a[_0x412fda(0x22a)](Y[_0x412fda(0x3f2)])),V(0x2,a[_0x412fda(0x22a)](x)),V(0x3,a[_0x412fda(0x3ac)]),V(0x4,a['Inject'](a['ThemeService']))],ve);const mt=0x1,Ct=1.5;class Ae extends p[_0x412fda(0x1c7)]{constructor(_0x142ff7,_0x10031f){const _0x588edb=_0x412fda;super(_0x142ff7,_0x10031f),_(this,_0x588edb(0x1ba)),_(this,_0x588edb(0x37d),!0x1),_(this,_0x588edb(0x402)),_(this,_0x588edb(0x436),''),_(this,_0x588edb(0x2ae),'top'),_(this,_0x588edb(0x367)),(_0x10031f&&this[_0x588edb(0x240)](_0x10031f),this[_0x588edb(0x2ba)][_0x588edb(0x3fb)](()=>this['setShapeProps']({'hovered':!0x0})),this[_0x588edb(0x30b)][_0x588edb(0x3fb)](()=>this[_0x588edb(0x240)]({'hovered':!0x1})));}[_0x412fda(0x240)](_0x6a688d){const _0x585b82=_0x412fda;var _0x2132fe,_0x4708c3,_0x1919cc,_0x3beda2,_0x369ef4,_0x13a745;this[_0x585b82(0x1ba)]=(_0x2132fe=_0x6a688d['color'])!=null?_0x2132fe:this['_color'],this[_0x585b82(0x37d)]=(_0x4708c3=_0x6a688d[_0x585b82(0x420)])!=null?_0x4708c3:this['_hovered'],this[_0x585b82(0x402)]=(_0x1919cc=_0x6a688d[_0x585b82(0x3f0)])!=null?_0x1919cc:this['_range'],this[_0x585b82(0x436)]=(_0x3beda2=_0x6a688d[_0x585b82(0x27a)])!=null?_0x3beda2:this[_0x585b82(0x436)],this[_0x585b82(0x2ae)]=(_0x369ef4=_0x6a688d[_0x585b82(0x405)])!=null?_0x369ef4:this[_0x585b82(0x2ae)],this[_0x585b82(0x367)]=(_0x13a745=_0x6a688d[_0x585b82(0x246)])!=null?_0x13a745:this[_0x585b82(0x367)],this['transformByState']({'width':_0x6a688d[_0x585b82(0x43c)],'height':_0x6a688d['height']});}[_0x412fda(0x2ff)](_0x196e05){const _0x2ec8d6=_0x412fda,{row:_0x5cde20,column:_0x1ccbb6}=_0x196e05;if(_0x5cde20>=this['_range']['startRow']&&_0x5cde20<=this['_range'][_0x2ec8d6(0x1d1)]&&_0x1ccbb6>=this['_range'][_0x2ec8d6(0x28a)]&&_0x1ccbb6<=this[_0x2ec8d6(0x402)]['endColumn']){this[_0x2ec8d6(0x240)]({'hovered':!0x0});return;}this['setShapeProps']({'hovered':!0x1});}[_0x412fda(0x3aa)](_0x5ab61d){return!0x1;}['_draw'](_0x1d7e04){const _0x31ba07=_0x412fda;p[_0x31ba07(0x1f8)][_0x31ba07(0x39e)](_0x1d7e04,{'width':this[_0x31ba07(0x43c)],'height':this['height'],'strokeWidth':Ct,'stroke':this[_0x31ba07(0x1ba)],'evented':!0x1,'fill':this[_0x31ba07(0x367)]}),this[_0x31ba07(0x37d)]&&(_0x1d7e04['save'](),_0x1d7e04[_0x31ba07(0x3ee)](0x1,0x0,0x0,0x1,this['width'],this['_labelPosition']===_0x31ba07(0x1e4)?0x0:-0x14),te[_0x31ba07(0x39e)](_0x1d7e04,{'text':this[_0x31ba07(0x436)],'color':this['_color']}),_0x1d7e04[_0x31ba07(0x3fd)]());}}var pt=Object[_0x412fda(0x26e)],bt=(_0x96142e,_0x532b65,_0x3c9f8a,_0x58d214)=>{const _0x2f2b11=_0x412fda;for(var _0x459339=_0x58d214>0x1?void 0x0:_0x58d214?pt(_0x532b65,_0x3c9f8a):_0x532b65,_0x1b6540=_0x96142e[_0x2f2b11(0x409)]-0x1,_0x28fd30;_0x1b6540>=0x0;_0x1b6540--)(_0x28fd30=_0x96142e[_0x1b6540])&&(_0x459339=_0x28fd30(_0x459339)||_0x459339);return _0x459339;},ce=(_0x57e99f,_0x22e74b)=>(_0x1b6cf2,_0xfd297f)=>_0x22e74b(_0x1b6cf2,_0xfd297f,_0x57e99f);const Et=0x1389;let ge=class extends a['RxDisposable']{constructor(_0x32c319,_0x83a620,_0x142bab,_0x2b6333){const _0x24479f=_0x412fda;super(),_(this,_0x24479f(0x3fa),new Set()),_(this,_0x24479f(0x398),null),(this['_context']=_0x32c319,this[_0x24479f(0x2b5)]=_0x83a620,this[_0x24479f(0x1e0)]=_0x142bab,this[_0x24479f(0x278)]=_0x2b6333,this[_0x24479f(0x3fc)]());}[_0x412fda(0x3fc)](){const _0x163c79=_0x412fda;this[_0x163c79(0x2b5)]['currentSkeleton$'][_0x163c79(0x254)]($[_0x163c79(0x372)](this[_0x163c79(0x414)]),$[_0x163c79(0x400)](_0x35662a=>{const _0x113f36=_0x163c79;if(_0x35662a){const _0x10b911=_0x35662a['sheetId'];return d['combineLatest'](this['_collabCursorController']['getCollabCursors$'](this['_context'][_0x113f36(0x406)]),this['_themeService'][_0x113f36(0x364)])[_0x113f36(0x254)]($['map'](([_0x35592e,_0x196be6])=>{const _0x27688f=_0x113f36,_0x2b99c0=new Map();return _0x35592e[_0x27688f(0x3e1)]((_0x3297fc,_0x42ef61)=>{const _0x43e5f8=_0x27688f;if(_0x3297fc[_0x43e5f8(0x2a0)]===_0x10b911){const _0x1ff084={..._0x3297fc};_0x1ff084['color']=_0x196be6[_0x3297fc[_0x43e5f8(0x226)]],_0x2b99c0[_0x43e5f8(0x207)](_0x42ef61,_0x1ff084);}}),{'skeleton':_0x35662a,'cursors':_0x2b99c0};}));}return d['of']({'skeleton':null,'cursors':new Map()});}))[_0x163c79(0x3c5)](({skeleton:_0x2729da,cursors:_0x40ef5b})=>{const _0x5203b5=_0x163c79;this[_0x5203b5(0x238)](),_0x2729da&&this['_updateCollabCursors'](_0x2729da,_0x40ef5b);}),this[_0x163c79(0x2b5)]['currentSkeleton$'][_0x163c79(0x3c5)](_0x5478f2=>{const _0x3964fd=_0x163c79;if(_0x5478f2==null)return;const {skeleton:_0x3519ba}=_0x5478f2,{scene:_0x24073e}=this[_0x3964fd(0x1f0)];_0x24073e['onPointerMove$']['subscribeEvent'](a[_0x3964fd(0x425)](_0xed8a4b=>{const _0x2c98af=_0x3964fd;var _0x17cbb3,_0x3810ac;const {offsetX:_0x328463,offsetY:_0x724942}=_0xed8a4b,{x:_0xa13865,y:_0x5e84c0}=_0x24073e[_0x2c98af(0x337)](p[_0x2c98af(0x334)][_0x2c98af(0x2bb)]([_0x328463,_0x724942])),{scaleX:_0x282f60,scaleY:_0x2ca482}=_0x24073e['getAncestorScale'](),_0x216c8b=_0x24073e[_0x2c98af(0x313)](p[_0x2c98af(0x205)][_0x2c98af(0x36e)]),_0x3213bf=_0x24073e[_0x2c98af(0x3f8)](p[_0x2c98af(0x334)][_0x2c98af(0x2bb)]([_0xa13865,_0x5e84c0]),_0x216c8b),_0x26fe60=_0x3519ba[_0x2c98af(0x2bd)](_0x328463,_0x724942,_0x282f60,_0x2ca482,_0x3213bf);((_0x17cbb3=this['_lastPointer'])==null?void 0x0:_0x17cbb3['column'])===_0x26fe60[_0x2c98af(0x22c)]&&((_0x3810ac=this[_0x2c98af(0x398)])==null?void 0x0:_0x3810ac[_0x2c98af(0x2f5)])===_0x26fe60[_0x2c98af(0x2f5)]||this[_0x2c98af(0x3fa)][_0x2c98af(0x3e1)](_0x40e6a9=>{_0x40e6a9['onMouseMove'](_0x26fe60);});},0x64));});}[_0x412fda(0x3be)](_0x5a8831,_0x15d5b4){const _0x14035d=_0x412fda;var _0x4c7e3d;const _0x3ab66a=(_0x4c7e3d=this['_sheetSkeletonManagerService'][_0x14035d(0x225)]())==null?void 0x0:_0x4c7e3d[_0x14035d(0x401)];if(!_0x3ab66a)return;const _0xb6a2d4=this['_getSheetObject']();if(!_0xb6a2d4)return;this[_0x14035d(0x3fa)]['forEach'](_0x5abc31=>{const _0x2da2f2=_0x14035d;_0x5abc31[_0x2da2f2(0x241)]();});const {scene:_0x3342c3}=_0xb6a2d4,_0x3f276c=Tt(Array[_0x14035d(0x42b)](_0x15d5b4[_0x14035d(0x41c)]()))['map'](_0xfe9301=>{const _0x37c989=_0x14035d,{color:_0x4bd62e,range:_0x7de6fa,name:_0x3c0769,selection:_0x5807f4,sheetID:_0x348aa5}=_0xfe9301,{startColumn:_0x328d01,startRow:_0x2502ea,endColumn:_0x110868,endRow:_0x5aec45}=_0x7de6fa,_0x154dc3=G['getCoordByCell'](_0x2502ea,_0x328d01,_0x3342c3,_0x3ab66a),_0x53a838=G['getCoordByCell'](_0x5aec45,_0x110868,_0x3342c3,_0x3ab66a),{columnHeaderHeightAndMarginTop:_0x2fa941}=_0x3ab66a,{startX:_0x1066e3,startY:_0x1c38f3}=_0x154dc3,{endX:_0x138f55,endY:_0x3484a9}=_0x53a838,_0x13314b=_0x138f55-_0x1066e3,_0x1cff38=_0x3484a9-_0x1c38f3,_0x15d0d3={'labelPosition':_0x1c38f3-_0x2fa941>=K?_0x37c989(0x24a):'bottom','sheetID':_0x348aa5,'range':_0x7de6fa,'color':_0x4bd62e,'name':_0x3c0769,'selection':_0x5807f4,'left':_0x1066e3,'top':_0x1c38f3,'width':_0x13314b,'height':_0x1cff38,'evented':!0x1,'zIndex':Et};return new Ae(_0x3c0769,_0x15d0d3);});_0x3342c3['addObjects'](_0x3f276c,mt),this[_0x14035d(0x3fa)]=new Set(_0x3f276c);}[_0x412fda(0x238)](){const _0x372e2b=_0x412fda;var _0x268d46;(_0x268d46=this['_cursors'])==null||_0x268d46[_0x372e2b(0x3e1)](_0x5ddf45=>_0x5ddf45[_0x372e2b(0x27f)]());}[_0x412fda(0x417)](){const _0x3931c8=_0x412fda;return G[_0x3931c8(0x34a)](this[_0x3931c8(0x1f0)][_0x3931c8(0x324)],this[_0x3931c8(0x1f0)]);}};ge=bt([ce(0x1,a[_0x412fda(0x22a)](G[_0x412fda(0x2cd)])),ce(0x2,a['Inject'](x)),ce(0x3,a[_0x412fda(0x22a)](a[_0x412fda(0x382)]))],ge);function Tt(_0x5ea37f){const _0x3033ac=_0x412fda,_0x3172a4=new Map();return _0x5ea37f[_0x3033ac(0x3e1)](_0x46732d=>{const _0x1f7f86=_0x3033ac;if(_0x3172a4['has'](_0x46732d[_0x1f7f86(0x2cb)])){const _0x37d508=_0x3172a4[_0x1f7f86(0x404)](_0x46732d[_0x1f7f86(0x2cb)]);_0x37d508[_0x1f7f86(0x27a)]+=',\x20'+_0x46732d[_0x1f7f86(0x27a)];}else _0x3172a4[_0x1f7f86(0x207)](_0x46732d[_0x1f7f86(0x2cb)],_0x46732d);}),Array['from'](_0x3172a4['values']());}var E=function(){const _0x59c45b=_0x412fda;return E=Object['assign']||function(_0x5adc1a){const _0x4b25a7=_0x3ec3;for(var _0x5d8802,_0x2a8e72=0x1,_0x3b2d96=arguments[_0x4b25a7(0x409)];_0x2a8e72<_0x3b2d96;_0x2a8e72++){_0x5d8802=arguments[_0x2a8e72];for(var _0x4a9066 in _0x5d8802)Object['prototype'][_0x4b25a7(0x22d)][_0x4b25a7(0x3ab)](_0x5d8802,_0x4a9066)&&(_0x5adc1a[_0x4a9066]=_0x5d8802[_0x4a9066]);}return _0x5adc1a;},E[_0x59c45b(0x2b6)](this,arguments);},Rt=function(_0x4cf415,_0x13a3f6){const _0x37db4e=_0x412fda;var _0x33b388={};for(var _0x4242d1 in _0x4cf415)Object['prototype'][_0x37db4e(0x22d)][_0x37db4e(0x3ab)](_0x4cf415,_0x4242d1)&&_0x13a3f6[_0x37db4e(0x378)](_0x4242d1)<0x0&&(_0x33b388[_0x4242d1]=_0x4cf415[_0x4242d1]);if(_0x4cf415!=null&&typeof Object['getOwnPropertySymbols']==_0x37db4e(0x3e0)){for(var _0x2fe2f0=0x0,_0x4242d1=Object['getOwnPropertySymbols'](_0x4cf415);_0x2fe2f0<_0x4242d1[_0x37db4e(0x409)];_0x2fe2f0++)_0x13a3f6[_0x37db4e(0x378)](_0x4242d1[_0x2fe2f0])<0x0&&Object[_0x37db4e(0x397)][_0x37db4e(0x288)][_0x37db4e(0x3ab)](_0x4cf415,_0x4242d1[_0x2fe2f0])&&(_0x33b388[_0x4242d1[_0x2fe2f0]]=_0x4cf415[_0x4242d1[_0x2fe2f0]]);}return _0x33b388;},be=M['forwardRef'](function(_0x1004d3,_0xe612de){const _0x53c3c9=_0x412fda;var _0x6c2cba=_0x1004d3[_0x53c3c9(0x408)],_0x394378=_0x1004d3['id'],_0x22451e=_0x1004d3['className'],_0x11d232=_0x1004d3[_0x53c3c9(0x36b)],_0x41830b=Rt(_0x1004d3,['icon','id','className',_0x53c3c9(0x36b)]),_0x1a22b9='univerjs-icon\x20univerjs-icon-'['concat'](_0x394378,'\x20')['concat'](_0x22451e||'')[_0x53c3c9(0x331)](),_0x1f68be=M[_0x53c3c9(0x279)]('_'[_0x53c3c9(0x32b)](Ut()));return ye(_0x6c2cba,''[_0x53c3c9(0x32b)](_0x394378),{'defIds':_0x6c2cba['defIds'],'idSuffix':_0x1f68be[_0x53c3c9(0x245)]},E({'ref':_0xe612de,'className':_0x1a22b9},_0x41830b),_0x11d232);});function _0x36d4(){const _0x401fab=['unitID','getDocRanges','m1Prime','_commandService','187790hgcIrv','fillStyle','SetTextSelectionsOperation','unit','/run/','_heartbeatTimer','sessionTicket','INTERNAL_ERROR','gold400','beginPath','concat','handleIRemoveCol','toDisposable','_saveTaskMap','OTHER_CLIENTS_EDITING','translate(.97)','trim','_setupSubUnitSync','UPDATE_CURSOR','Vector2','_drawAnchor','DeleteRangeMoveLeftCommandId','getRelativeToViewportCoord','_notificationService','NO_OTHER_CLIENTS_EDITING','@univerjs-pro/collaboration','none','UniverCollaborationClientUIPlugin','collabStatus.conflict','_handleHeartbeatEvent','delete','CollaborationUIEventId','LICENSE_EXPORT_SIZE_EXCEEDED','OnLineSingle','INotificationService','univer-flex\x20univer-items-center','stringify','getTypeOfUnitAdded$','min','Error','_eventUnsubscribe','getSheetObject','HTTPService','1022984GnRrAj','xlink:href','handleDeleteRangeMoveUp','random','YUUMI_SUBSCRIPTION_NOT_FOUND','Subject','_docTransformStateCacheService','removeParam','UNIVER_SHEET','_collaborationController','@univerjs/engine-render','_handleEvent','LICENSE_MAX_UNITS_EXCEEDED','_cachedData','purple300','_unitStatus','TRANSFORM_CHANGE_OBSERVABLE_TYPE','collabStatus.fetchMiss','transformStateCache','post','debounceTime','lineTo','debug','isTransformMutationFailure','currentTheme$','_getSessionTicket','handleInsertRow','_backgroundColor','subUnitId','_urlService','imageSourceType','extend','entries','Module','VIEW_MAIN','runId','Failed','getMember','takeUntil','_assignedColors','333hquhda','_drawRectRange','CollaborationEvent','params','indexOf','CollaborationDataLoaderController','@univerjs/sheets','setInterval','collaboration-client.offline-data-not-saved','_hovered','cursorInfo','registerDependencies','onStarting','_memberService','ThemeService','4337885MugYsI','@univerjs/ui','USERS_LEAVE','setAlpha','max','onlineStatusTitle','_syncEditingCollabCursorService','UniverIcon','fillText','getFocusedUnit','MessageType','_status$','getItem','InsertRangeMoveRightCommandId','defineProperty','setItem','INVALID_INVITE_CODE','transformMutation','activeSheet$','WECHAT_HAS_BEEN_BOUND','prototype','_lastPointer','verdancy600','_removeClearOtherTimer','loadUnit','onCommandExecuted','save','drawWith','SUBMIT_CHANGESET_TIMEOUT','add','loadOfflineData','round','MOBILE_HAS_BEEN_BOUND','CHANGESET_REVISION_CONFILICT','4367XfcWfH','fill','source','session.collaboration-timeout','currentColor','triggerDblclick','call','ICommandService','override','collabCursorState$','requireSession','MoveRangeCommandId','subunit','_doCreateSocket','_transformHistoryAndStateStack','getMemberID','_docSyncEditingCollabCursorService','UnitStatus','touchDependencies','getParam','univer-online-status','handleDeleteRangeMoveLeft','APPLY_PERMISSION_DENIED','SheetsSelectionsService','serializeRangeWithSheet','_updateCollabCursors','getActiveRange','TEXT_RANGE_LAYER_INDEX','OTHER_CLIENT_EDITING','_uiPartsService','RichTextEditingMutation','colorChannel1','subscribe','DesktopCollaborationStatusDisplayController','setTimeout','@univerjs-pro/collaboration-client','[CollaborationDataLoaderController]','getSheetId','key','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','ONLINE','hide','urlChange$','@univerjs/docs-ui','YUUMI_RATE_OVER_LIMIT','ColorKit','collaboration.single-unit.warning','_docSkeletonManagerService','COLORS','measureText','AWAITING','REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY','CollaborationUIEventService','_send','distinctUntilChanged','_hideTimer','IUIPartsService','DocIMEInputManagerService','displayName','function','forEach','updateOfflineData','1em','_messageService','_id','COMPLETION_FINISHED','uni.network.url-service','61500ZRfTYk','getActiveSheet','runOnServer','_scheduleHeartbeat','createElement','useDependency','transform','createInstance','range','RemoteUniscriptService','DocSkeletonManagerService','MUTATION','getUndoRedoMutationParamsCache','_imageIoService','0\x200\x2017\x2016','_createSocketURL','getVpScrollXYInfoByPosToVp','tag','_cursors','subscribeEvent','_init','restore','@univerjs/engine-formula','@univerjs/drawing','switchMap','skeleton','_range','CollaborationController','get','labelPosition','unitId','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','icon','length','RemoveRowCommandId','_getAnchorBounding','then','_configService','isArray','unshift','mapTo','executionId','disposeUnit','3liYEBr','dispose$','_saveCache','CollaborationSessionService','_getSheetObject','UNRECOGNIZED','MemberService','_collabCursorState$','_onCursorDelete','values','status$','runRefRangeMutations','svg','hovered','combineLatest','_localCacheService','saveImage','isTransformMutationsWithChangesetSuccess','debounce','undoState','UNIVER_DOC','_collabSessionService','pushState','_config','from','find','_hover','DataLoaderService','isActive','search','_session','_collaborationUIEventService','NOT_COLLAB','shareReplay','@univerjs/core','_name','_transformService','sessionStatus$','Disposable','getRangePointData','BuiltInUIPart','width','APPLY_REVISION_CONFILICT','getLocalCacheKey','getUnhiddenWorksheets','disableLocalCache','toStringTag','docStateChange$','toRgbString','_onRefRangeChange','_color','getSkeleton','collab-text-range-','transformIMECache','collabStatus.syncing','IRenderManagerService','RxDisposable','text','off-line-single_clip0_910_343','resize','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','fromEvent','univer-online-status-title','Shape','_draw','getUnitId','syncEditingCollabCursor','_logService','exhaustSavingTask','INVITE_CODE_ALREADY_BOUND','saveOfflineData','NodePositionConvertToRectRange','_document','endRow','M0\x200H16V16H0z','jiqing500','_online','_render','searchParams','use','_refreshCollabCursors','url(#off-line-single_clip0_910_343)','url(#$1','throttleTime','_initStatusComponent','SessionStatus','result','BehaviorSubject','_collabCursorController','INVITE_CODE_HAS_BEEN_UES','CollaborationStatusDisplay','ENSURE_SNAPSHOT_EXECUTION','bottom','CollaborationSocketService','_httpService','APPLY_REJECT','_refRangeService','_selfUnitIDs','merge','_clearOtherTimers','evenodd','_scheduleSaving','has','getUniverSheetInstance','_context','_colorAssignService','INVITE_CODE_REQUIRED','_disabled','toString','DOC_RANGE_TYPE','div','118578LWRlWc','Rect','transformRemoteChangeset','editingUnit','_updateURLWithCurrentState','parse','_docTransformSelectionsService','CONFLICT','code','HEADER_MENU','_registerDependencies','_scene','push','includes','SHEET_VIEWPORT_KEY','getUnitStatus$','set','with','redoState','show','RegularPolygon','APPLY_NON_SEQUENTIAL_REVISION','setConfig','unload','replaceState','APPLY_DUPLICATED','_getScale','FETCH_MISS','_roomMembers$','_initResize','handleInsertRangeMoveRight','setParam','transformMutationsWithChangeset','_transformUndoRedoStack','_shapes','Workbook','_initStatusListener','_initCommandExecutedListener','_localStorageService','...','_cursorInfo$','UniverInstanceType','_dataLoaderService','collaboration.closeRoom','PY_RUNTIME_SCRIPT_ERROR','DeleteRangeMoveUpCommandId','getCurrent','color','_getMergeRange','fillRule','roomMembers$','Inject','UNAUTHENTICATED','column','hasOwnProperty','contains','_docTransformIMECacheService','IMessageService','roomMembers','USER_NOT_INVITED_CODE','map','CollaborationStatus','DocStateChangeManagerService','doc.mutation.rich-text-editing','ILogService','_removeCollabCursors','#FFF','_initDependencies','startsWith','react/jsx-runtime','DocCollaborationEntity','collabStatus.offline','SetWorksheetActivateCommand','setShapeProps','makeDirty','_startDocCollabCursor','useCallback','red300','current','backgroundColor','_anchorDot','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','SNAPSHOT_HAS_BEEN_REMOVED','top','_drawTextRange','createSocket','_injector','font','history','type','NOT_FOUND','complete','JOIN_ROOM_FAILED','pipe','TEXT','PERMISSION_DENIED','RECT','idSuffix','DEFAULT_WS_SESSION_TICKET_URL','init','Plugin','EffectRefRangId','attrs','_onCursorUpdate','_entities','defIds','getRenderById','body','getTypeOfUnitDisposed$','error','@univerjs/network','connectInjector','assignAColorForMemberID','LocaleService','_ensureSubject','_initEvent','split','_localeService','LICENSE_DISTRO_REJECTED','getOwnPropertyDescriptor','url(#on-line-single_clip0_910_349)','_cursor','clearInterval','wsSessionTicketUrl','deepClone','event$','_docClipboardService','arc','getStateCache','_themeService','useRef','name','_transformPreviousActiveRange','OFFLINE','_colorIndex','_toggleOffline','dispose','newValue','_docSkeleton','addClipboardHook','setUndoRedoMutationParamsCache','forwardRef','mask','_handleHover','UNDEFINED','propertyIsEnumerable','IUniverInstanceService','startColumn','YUUMI_UNABLE_LOAD_URL','YUUMI_URL_COL_OUT_OF_RANGE','m2Prime','SNAPSHOT_INVALID_SNAPSHOT','IRemoteInstanceService','addObject','RefRangeService','6lYsnAw','LOGIN_FAILED','Rectangle','string','path','_scheduleClearOtherTimer','_instanceService','textRanges','replaceDocRanges','BrowserCollaborationSocketService','location','univer-online-status-icon','#fff','getSheetBySheetId','sheetID','CommandType','_textBubble','SetDocZoomRatioOperation','7044328cAZrEd','SOCKET_FAILED_RETRY','blue400','session.connection-failed','_renderManagerService','@univerjs/rpc','getCurrentUnitForType','@univerjs/docs','assign','univer-offline','_labelPosition','_toggleOnline','_beforeCloseService','Tools','registerComponent','getOffsetConfig','memberID','_sheetSkeletonManagerService','apply','cursorInfo$','executeCommand','CONNECTOR_DATA_TOO_LARGE','onPointerEnter$','FromArray','LOCAL_CACHE_INTERVAL','getCellPositionByOffset','transformSelections','asObservable','_entityInit$','@univerjs/design','all','_startSheetCollabCursor','findNodePositionByCharIndex','collab-text-anchor-','clearTimeout','INVALID_ARGUMENT','_registerRenderDependencies','registerRefRange','0\x200\x2016\x2016','selection','moveTo','SheetSkeletonManagerService','engine','1105920ERiXCh','mergeOverrideWithDependencies','disposeWithMe','mutations','permission.content','origin','getCurrentRevOfUnit','_docStateChangeManagerService','off-line-single','getValue','jsx','clipPath','handleInsertCol','DocSelectionManagerService','_cursorShapes','defs','_handleLeaveEvent','getCollabEntity$','OffLineSingle','_updateLocalCursor','_revisionService','next','href','Warning','ALREADY_EXISTS','@univerjs/sheets-ui','on-line-single_clip0_910_349','ILocalCacheService','ITransformService','filter','Injector','_unitOnClients','collabStatus.notCollab','ACTIVE_UNIT_EVENT_CHANNEL','onTransformChange$','session.will-retry','saveTaskMap','SYNCED','row','IConfigService','IDocClipboardService','pluginName','data','SOCKET_FAILED','entityInit$','size','_anchor','onlineStatus','onMouseMove','ranges','EMAIL_HAS_BEEN_BOUND','_setupBeforeClosingHandler','LOCAL_CACHE_INTERVAL_KEY','_updateSubUnitFromURLParams','replace','collab-client.tooltip.reconnect','_getSaveTimeout','on-line-single','RemoveColCommandId','getConfig','onPointerLeave$','black','registerRenderModule','WebURLService','Optional','getColor','TOO_MANY_REQUESTS','unsubscribe','getViewport','_univerInstanceService','rgba(255,\x20255,\x20255,\x200.01)','56ZbaEkm','reconnect','Unknown\x20user','ticket','onRendered','generateRandomId','LICENSE_IMPORT_SIZE_EXCEEDED'];_0x36d4=function(){return _0x401fab;};return _0x36d4();}function ye(_0x306f9b,_0x23e7ce,_0x109287,_0xe44f9e,_0x4271e9){const _0x5b36c9=_0x412fda;return M[_0x5b36c9(0x3ec)](_0x306f9b['tag'],E(E({'key':_0x23e7ce},Ot(_0x306f9b,_0x109287,_0x4271e9)),_0xe44f9e),(Dt(_0x306f9b,_0x109287)['children']||[])[_0x5b36c9(0x233)](function(_0x4dacdc,_0x5979c7){const _0x1c83b8=_0x5b36c9;return ye(_0x4dacdc,''[_0x1c83b8(0x32b)](_0x23e7ce,'-')[_0x1c83b8(0x32b)](_0x306f9b[_0x1c83b8(0x3f9)],'-')[_0x1c83b8(0x32b)](_0x5979c7),_0x109287,void 0x0,_0x4271e9);}));}function Ot(_0x313a76,_0x1957c9,_0x95459){const _0x1abf18=_0x412fda;var _0x1afc21=E({},_0x313a76[_0x1abf18(0x25d)]);_0x95459!=null&&_0x95459[_0x1abf18(0x3c4)]&&_0x1afc21[_0x1abf18(0x3a6)]===_0x1abf18(0x3c4)&&(_0x1afc21[_0x1abf18(0x3a6)]=_0x95459[_0x1abf18(0x3c4)]),_0x313a76[_0x1abf18(0x3f9)]==='mask'&&_0x1afc21['id']&&(_0x1afc21['id']=_0x1afc21['id']+_0x1957c9[_0x1abf18(0x258)]),Object[_0x1abf18(0x36c)](_0x1afc21)[_0x1abf18(0x3e1)](function(_0x4d3ba0){const _0xa666a9=_0x1abf18;var _0x18e771=_0x4d3ba0[0x0],_0x20770d=_0x4d3ba0[0x1];_0x18e771===_0xa666a9(0x285)&&typeof _0x20770d==_0xa666a9(0x295)&&(_0x1afc21[_0x18e771]=_0x20770d[_0xa666a9(0x305)](/url\(#(.*)\)/,_0xa666a9(0x1da)[_0xa666a9(0x32b)](_0x1957c9[_0xa666a9(0x258)],')')));});var _0x427468=_0x1957c9[_0x1abf18(0x260)];return!_0x427468||_0x427468[_0x1abf18(0x409)]===0x0||(_0x313a76['tag']===_0x1abf18(0x1d7)&&_0x1afc21['xlink:href']&&(_0x1afc21['xlink:href']=_0x1afc21[_0x1abf18(0x34d)]+_0x1957c9[_0x1abf18(0x258)]),Object[_0x1abf18(0x36c)](_0x1afc21)[_0x1abf18(0x3e1)](function(_0x4b9593){const _0x219ee3=_0x1abf18;var _0x583cc3=_0x4b9593[0x0],_0x3fb00f=_0x4b9593[0x1];typeof _0x3fb00f==_0x219ee3(0x295)&&(_0x1afc21[_0x583cc3]=_0x3fb00f[_0x219ee3(0x305)](/url\(#(.*)\)/,_0x219ee3(0x1da)[_0x219ee3(0x32b)](_0x1957c9[_0x219ee3(0x258)],')')));})),_0x1afc21;}function Dt(_0x304072,_0x2a17fb){const _0x23924d=_0x412fda;var _0x12743e,_0x2b0aa6=_0x2a17fb[_0x23924d(0x260)];return!_0x2b0aa6||_0x2b0aa6[_0x23924d(0x409)]===0x0?_0x304072:_0x304072[_0x23924d(0x3f9)]===_0x23924d(0x2de)&&(!((_0x12743e=_0x304072['children'])===null||_0x12743e===void 0x0)&&_0x12743e[_0x23924d(0x409)])?E(E({},_0x304072),{'children':_0x304072['children'][_0x23924d(0x233)](function(_0x2ce6f2){const _0x4a882b=_0x23924d;return typeof _0x2ce6f2[_0x4a882b(0x25d)]['id']==_0x4a882b(0x295)&&_0x2b0aa6&&_0x2b0aa6[_0x4a882b(0x378)](_0x2ce6f2[_0x4a882b(0x25d)]['id'])>-0x1?E(E({},_0x2ce6f2),{'attrs':E(E({},_0x2ce6f2[_0x4a882b(0x25d)]),{'id':_0x2ce6f2[_0x4a882b(0x25d)]['id']+_0x2a17fb[_0x4a882b(0x258)]})}):_0x2ce6f2;})}):_0x304072;}function Ut(){const _0x3cb568=_0x412fda;return Math[_0x3cb568(0x34f)]()[_0x3cb568(0x1f4)](0x24)['substring'](0x2,0x8);}be[_0x412fda(0x3df)]=_0x412fda(0x38a);var Nt={'tag':_0x412fda(0x41f),'attrs':{'fill':_0x412fda(0x33b),'viewBox':_0x412fda(0x2ca),'width':_0x412fda(0x3e3),'height':'1em'},'children':[{'tag':'g','attrs':{'clipPath':_0x412fda(0x1d9)},'children':[{'tag':_0x412fda(0x296),'attrs':{'stroke':'currentColor','d':_0x412fda(0x3cc),'strokeLinecap':_0x412fda(0x3a2),'strokeLinejoin':_0x412fda(0x3a2),'strokeWidth':1.2}}]},{'tag':_0x412fda(0x2de),'attrs':{},'children':[{'tag':_0x412fda(0x2da),'attrs':{'id':_0x412fda(0x1c2)},'children':[{'tag':'path','attrs':{'fill':_0x412fda(0x29e),'d':_0x412fda(0x1d2)}}]}]}],'defIds':[_0x412fda(0x1c2)]},$e=M[_0x412fda(0x284)](function(_0x97ae64,_0x2e95dc){const _0x27e58f=_0x412fda;return M[_0x27e58f(0x3ec)](be,Object[_0x27e58f(0x2ac)]({},_0x97ae64,{'id':_0x27e58f(0x2d7),'ref':_0x2e95dc,'icon':Nt}));});$e[_0x412fda(0x3df)]=_0x412fda(0x2e1);var Mt={'tag':_0x412fda(0x41f),'attrs':{'fill':_0x412fda(0x33b),'viewBox':_0x412fda(0x3f6),'width':_0x412fda(0x3e3),'height':_0x412fda(0x3e3)},'children':[{'tag':'g','attrs':{'clipPath':_0x412fda(0x26f)},'children':[{'tag':_0x412fda(0x296),'attrs':{'stroke':_0x412fda(0x3a9),'d':'M4.5865\x2011.6499C3.36983\x2011.6499\x201.6665\x2011.1024\x201.6665\x208.9124C1.6665\x206.3574\x204.2215\x205.8099\x204.9515\x205.8099C5.3165\x204.5324\x206.0465\x202.5249\x208.9665\x202.5249C11.5215\x202.5249\x2012.6165\x203.9849\x2012.9815\x205.2624C12.9815\x205.2624\x2016.2665\x205.6274\x2016.2665\x208.7299C16.2665\x2010.9199\x2014.8065\x2011.6499\x2013.3465\x2011.6499M6.7767\x2011.6497L8.9667\x2013.4747L11.8867\x209.82466','strokeLinecap':_0x412fda(0x3a2),'strokeLinejoin':_0x412fda(0x3a2),'strokeWidth':1.2}}]},{'tag':_0x412fda(0x2de),'attrs':{},'children':[{'tag':'clipPath','attrs':{'id':_0x412fda(0x2e9)},'children':[{'tag':_0x412fda(0x296),'attrs':{'fill':_0x412fda(0x29e),'d':'M0\x200H16V16H0z','transform':_0x412fda(0x330)}}]}]}],'defIds':[_0x412fda(0x2e9)]},xe=M['forwardRef'](function(_0x5591a5,_0x3d26a5){const _0x3f37d7=_0x412fda;return M['createElement'](be,Object[_0x3f37d7(0x2ac)]({},_0x5591a5,{'id':_0x3f37d7(0x308),'ref':_0x3d26a5,'icon':Mt}));});xe['displayName']=_0x412fda(0x342);const Pt=_0x412fda(0x29d),Lt=_0x412fda(0x1c6),wt=_0x412fda(0x3b9),At='univer-online',yt=_0x412fda(0x2ad),H={'onlineStatusIcon':Pt,'onlineStatusTitle':Lt,'onlineStatus':wt,'online':At,'offline':yt};function $t(_0x225bbf){const _0x3d5fe9=_0x412fda;switch(_0x225bbf){case u[_0x3d5fe9(0x234)][_0x3d5fe9(0x27c)]:return _0x3d5fe9(0x23e);case u[_0x3d5fe9(0x234)][_0x3d5fe9(0x1fe)]:return _0x3d5fe9(0x33d);case u[_0x3d5fe9(0x234)][_0x3d5fe9(0x212)]:return _0x3d5fe9(0x35d);case u['CollaborationStatus'][_0x3d5fe9(0x433)]:return _0x3d5fe9(0x2ef);case u[_0x3d5fe9(0x234)][_0x3d5fe9(0x3d7)]:case u[_0x3d5fe9(0x234)]['AWAITING_WITH_PENDING']:return _0x3d5fe9(0x1be);case u[_0x3d5fe9(0x234)][_0x3d5fe9(0x2f4)]:case u['CollaborationStatus']['PENDING']:return'collabStatus.synced';}}function je(_0x181221){const _0xfe4a80=_0x412fda,{status$:_0x2ce2be}=_0x181221,_0x22548e=R['useObservable'](_0x2ce2be,u[_0xfe4a80(0x234)][_0xfe4a80(0x433)]),_0x373ba3=R[_0xfe4a80(0x3ed)](a['LocaleService']),_0x2d1ca7=R[_0xfe4a80(0x3ed)](u['CollaborationSessionService']),_0x5da7eb=_0x22548e!==u['CollaborationStatus']['OFFLINE'],_0x1b02c2=_0x373ba3['t']($t(_0x22548e)),_0x332fa6=T['clsx'](H[_0xfe4a80(0x2fe)],{[H['online']]:_0x5da7eb,[H['offline']]:!_0x5da7eb}),_0x23d019=_0x5da7eb?L[_0xfe4a80(0x2d9)](xe,{}):L[_0xfe4a80(0x2d9)]($e,{}),_0x47b978=M[_0xfe4a80(0x243)](()=>{const _0x18699f=_0xfe4a80;_0x5da7eb||_0x2d1ca7[_0x18699f(0x317)]();},[_0x5da7eb,_0x2d1ca7]);function _0xd1cd4b(){const _0x53afc3=_0xfe4a80;return L['jsxs'](_0x53afc3(0x1f6),{'className':T['clsx'](_0x332fa6,_0x53afc3(0x344)),'onClick':_0x47b978,'children':[L[_0x53afc3(0x2d9)](_0x53afc3(0x1f6),{'className':H['onlineStatusIcon'],'children':_0x23d019}),L['jsx']('div',{'className':H[_0x53afc3(0x388)],'children':_0x1b02c2})]});}return _0x5da7eb?_0xd1cd4b():L['jsx'](T['Tooltip'],{'title':_0x373ba3['t'](_0xfe4a80(0x306)),'children':_0xd1cd4b()});}var xt=Object['getOwnPropertyDescriptor'],jt=(_0x218e71,_0x463764,_0x5e3185,_0x422d74)=>{const _0x3606d3=_0x412fda;for(var _0x30815f=_0x422d74>0x1?void 0x0:_0x422d74?xt(_0x463764,_0x5e3185):_0x463764,_0x919bbf=_0x218e71[_0x3606d3(0x409)]-0x1,_0x19425e;_0x919bbf>=0x0;_0x919bbf--)(_0x19425e=_0x218e71[_0x919bbf])&&(_0x30815f=_0x19425e(_0x30815f)||_0x30815f);return _0x30815f;},X=(_0x177a51,_0x15bf0b)=>(_0x56d433,_0x6497d7)=>_0x15bf0b(_0x56d433,_0x6497d7,_0x177a51);exports[_0x412fda(0x3c6)]=class extends a['Disposable']{constructor(_0x4f1350,_0x173ec6,_0x43f391,_0x360add){const _0x149ba1=_0x412fda;super(),_(this,'_status$',new d['BehaviorSubject'](u['CollaborationStatus'][_0x149ba1(0x433)])),(this['_univerInstanceService']=_0x4f1350,this['_injector']=_0x173ec6,this[_0x149ba1(0x355)]=_0x43f391,this[_0x149ba1(0x3c2)]=_0x360add,this[_0x149ba1(0x1dc)](),this[_0x149ba1(0x21b)]());}['_initStatusListener'](){const _0x3b0a83=_0x412fda;this[_0x3b0a83(0x2d1)](this[_0x3b0a83(0x314)]['focused$'][_0x3b0a83(0x254)](d[_0x3b0a83(0x400)](()=>{const _0xa7eb5e=_0x3b0a83,_0x3ac436=this[_0xa7eb5e(0x314)][_0xa7eb5e(0x38c)]();return _0x3ac436?this[_0xa7eb5e(0x355)][_0xa7eb5e(0x2e0)](_0x3ac436[_0xa7eb5e(0x1c9)]()):d['of'](null);}),d[_0x3b0a83(0x400)](_0x596bf9=>_0x596bf9?_0x596bf9[_0x3b0a83(0x41d)]:d['of'](u[_0x3b0a83(0x234)][_0x3b0a83(0x433)])))['subscribe'](_0x46d1b6=>{const _0x36e1b8=_0x3b0a83;this['_status$'][_0x36e1b8(0x2e4)](_0x46d1b6);}));}[_0x412fda(0x1dc)](){const _0x5a4f85=_0x412fda;this['disposeWithMe'](this[_0x5a4f85(0x3c2)][_0x5a4f85(0x2b2)](R[_0x5a4f85(0x43b)][_0x5a4f85(0x200)],()=>R[_0x5a4f85(0x266)](Bt({'status$':this[_0x5a4f85(0x38e)]['asObservable']()}),this[_0x5a4f85(0x24d)])));}},exports[_0x412fda(0x3c6)]=jt([X(0x0,a[_0x412fda(0x289)]),X(0x1,a['Inject'](a['Injector'])),X(0x2,a['Inject'](u[_0x412fda(0x403)])),X(0x3,R[_0x412fda(0x3dd)])],exports[_0x412fda(0x3c6)]);function Bt(_0x33c2e1){const {status$:_0x431fd6}=_0x33c2e1;return function(){const _0x1a2ce1=_0x3ec3;return L[_0x1a2ce1(0x2d9)](je,{'status$':_0x431fd6});};}var kt=Object[_0x412fda(0x26e)],Ht=(_0x51a6d6,_0x4a37d4,_0x3bb85f,_0x791ce8)=>{const _0x568d38=_0x412fda;for(var _0x26ad71=_0x791ce8>0x1?void 0x0:_0x791ce8?kt(_0x4a37d4,_0x3bb85f):_0x4a37d4,_0x5ccb5f=_0x51a6d6[_0x568d38(0x409)]-0x1,_0x447494;_0x5ccb5f>=0x0;_0x5ccb5f--)(_0x447494=_0x51a6d6[_0x5ccb5f])&&(_0x26ad71=_0x447494(_0x26ad71)||_0x26ad71);return _0x26ad71;},y=(_0x36b712,_0x2b0dcf)=>(_0xa7fff0,_0x3f0e06)=>_0x2b0dcf(_0xa7fff0,_0x3f0e06,_0x36b712);let z=class extends a[_0x412fda(0x439)]{constructor(_0x16bd28,_0x4d9681,_0x3487b5,_0x193f11,_0x482165,_0x248f5d){const _0x3850d6=_0x412fda;super(),this[_0x3850d6(0x2b0)]=_0x16bd28,this[_0x3850d6(0x422)]=_0x4d9681,this[_0x3850d6(0x432)]=_0x3487b5,this['_messageService']=_0x193f11,this[_0x3850d6(0x338)]=_0x482165,this['_localeService']=_0x248f5d,this[_0x3850d6(0x302)](),this[_0x3850d6(0x26a)]();}[_0x412fda(0x302)](){const _0x405101=_0x412fda;this['disposeWithMe'](this[_0x405101(0x2b0)]['registerBeforeClose'](()=>{const _0x1c3446=_0x405101;if(this[_0x1c3446(0x422)][_0x1c3446(0x2f3)]['size'])return this[_0x1c3446(0x26c)]['t'](_0x1c3446(0x37c));}));}[_0x412fda(0x26a)](){const _0x10a3ae=_0x412fda;this['disposeWithMe'](this['_collaborationUIEventService'][_0x10a3ae(0x274)][_0x10a3ae(0x3c5)](_0xc93c3=>{const _0x43062f=_0x10a3ae;_0xc93c3['id']===u[_0x43062f(0x340)][_0x43062f(0x3c1)]&&this['_messageService'][_0x43062f(0x20a)]({'type':T[_0x43062f(0x38d)]['Warning'],'content':this['_localeService']['t'](_0x43062f(0x3d3))}),_0xc93c3['id']===u[_0x43062f(0x340)]['CLOSE_ROOM']&&this['_messageService'][_0x43062f(0x20a)]({'type':T['MessageType'][_0x43062f(0x2e6)],'content':this[_0x43062f(0x26c)]['t'](_0x43062f(0x222))}),_0xc93c3['id']===u[_0x43062f(0x340)]['PERMISSION_DENIED']&&this[_0x43062f(0x338)][_0x43062f(0x20a)]({'title':this[_0x43062f(0x26c)]['t']('permission.title'),'content':this[_0x43062f(0x26c)]['t'](_0x43062f(0x2d3)),'type':_0x43062f(0x264),'duration':0x0}),_0xc93c3['id']===u[_0x43062f(0x340)][_0x43062f(0x1fe)]&&this[_0x43062f(0x3e4)]['show']({'type':T[_0x43062f(0x38d)]['Error'],'content':this[_0x43062f(0x26c)]['t'](_0x43062f(0x222))+'('+_0xc93c3[_0x43062f(0x2f9)]+')'}),_0xc93c3['id']===u[_0x43062f(0x340)][_0x43062f(0x253)]&&this[_0x43062f(0x3e4)][_0x43062f(0x20a)]({'type':T[_0x43062f(0x38d)]['Warning'],'content':this['_localeService']['t'](_0xc93c3['data']||'')}),_0xc93c3['id']===u[_0x43062f(0x340)][_0x43062f(0x2a5)]&&this[_0x43062f(0x3e4)][_0x43062f(0x20a)]({'type':T['MessageType'][_0x43062f(0x2e6)],'content':this[_0x43062f(0x26c)]['t'](_0x43062f(0x2f2))}),_0xc93c3['id']===u[_0x43062f(0x340)][_0x43062f(0x2fa)]&&this[_0x43062f(0x3e4)][_0x43062f(0x20a)]({'type':T[_0x43062f(0x38d)][_0x43062f(0x348)],'content':this[_0x43062f(0x26c)]['t'](_0x43062f(0x2a7))}),_0xc93c3['id']===u[_0x43062f(0x340)][_0x43062f(0x39f)]&&this['_messageService'][_0x43062f(0x20a)]({'type':T['MessageType']['Error'],'content':this[_0x43062f(0x26c)]['t'](_0x43062f(0x3a8))});}));}};z=Ht([y(0x0,R['IBeforeCloseService']),y(0x1,u[_0x412fda(0x2ea)]),y(0x2,a[_0x412fda(0x22a)](u[_0x412fda(0x3d9)])),y(0x3,R[_0x412fda(0x230)]),y(0x4,R[_0x412fda(0x343)]),y(0x5,a['Inject'](a[_0x412fda(0x268)]))],z);const Wt='collaboration-client-ui.config',Ne={},Ee=a['createIdentifier'](_0x412fda(0x3e7));var Ft=Object[_0x412fda(0x26e)],Yt=(_0x2ef031,_0x49a296,_0x20ebc5,_0x529344)=>{const _0x4ea9ac=_0x412fda;for(var _0x2165d1=_0x529344>0x1?void 0x0:_0x529344?Ft(_0x49a296,_0x20ebc5):_0x49a296,_0x1fb365=_0x2ef031[_0x4ea9ac(0x409)]-0x1,_0x479ca9;_0x1fb365>=0x0;_0x1fb365--)(_0x479ca9=_0x2ef031[_0x1fb365])&&(_0x2165d1=_0x479ca9(_0x2165d1)||_0x2165d1);return _0x2165d1;},W=(_0x3751b1,_0x337205)=>(_0xadd61d,_0x55da8f)=>_0x337205(_0xadd61d,_0x55da8f,_0x3751b1);exports[_0x412fda(0x379)]=class extends a[_0x412fda(0x1c0)]{constructor(_0x6d1963,_0x331638,_0x414e2a,_0x42e792,_0x5d4f71){const _0x35b37c=_0x412fda;super(),this[_0x35b37c(0x369)]=_0x6d1963,this['_logService']=_0x331638,this[_0x35b37c(0x320)]=_0x414e2a,this['_dataLoaderService']=_0x42e792,_0x5d4f71?_0x5d4f71==null||_0x5d4f71['whenReady']()[_0x35b37c(0x40c)](()=>this[_0x35b37c(0x3fc)]()):(this['_logService']['debug']('[CollaborationDataLoaderController]',_0x35b37c(0x407)),this[_0x35b37c(0x3fc)]());}async[_0x412fda(0x3fc)](){const _0x3a631b=_0x412fda,_0xcadea4=this['_urlService']['getParam']('unit'),_0xbeccc0=this[_0x3a631b(0x369)][_0x3a631b(0x3b8)](_0x3a631b(0x250)),_0x1b5b3b=this[_0x3a631b(0x369)][_0x3a631b(0x3b8)](_0x3a631b(0x3b1));if(!_0xcadea4||!_0xbeccc0){this[_0x3a631b(0x1cb)][_0x3a631b(0x362)](_0x3a631b(0x3c9),_0x3a631b(0x248));return;}const _0x116786=await this[_0x3a631b(0x221)][_0x3a631b(0x39b)](_0xcadea4,Number(_0xbeccc0),_0x1b5b3b);_0x116786&&_0x116786 instanceof a[_0x3a631b(0x21a)]&&this[_0x3a631b(0x332)](_0x116786);}async[_0x412fda(0x332)](_0x39d8f9){const _0x39a20e=_0x412fda;await this[_0x39a20e(0x304)](_0x39d8f9),_0x39d8f9[_0x39a20e(0x395)][_0x39a20e(0x254)](d[_0x39a20e(0x372)](this[_0x39a20e(0x414)]))[_0x39a20e(0x3c5)](_0x1f2736=>{const _0x41d51b=_0x39a20e;_0x1f2736&&this[_0x41d51b(0x1fb)](_0x1f2736);}),this[_0x39a20e(0x369)]['urlChange$'][_0x39a20e(0x254)](d[_0x39a20e(0x372)](this[_0x39a20e(0x414)]))['subscribe'](()=>this[_0x39a20e(0x304)](_0x39d8f9));}['_updateURLWithCurrentState'](_0x206a1f,_0x49f9db=!0x1){const _0x3b697d=_0x412fda,_0x514319=this[_0x3b697d(0x369)][_0x3b697d(0x3b8)](_0x3b697d(0x3b1));_0x206a1f[_0x3b697d(0x3ca)]()!==_0x514319&&this[_0x3b697d(0x369)][_0x3b697d(0x216)]('subunit',_0x206a1f[_0x3b697d(0x3ca)](),_0x49f9db);}async[_0x412fda(0x304)](_0x2654bc){const _0x4a00c5=_0x412fda;var _0x6e0a98;const _0x2dd3b2=this[_0x4a00c5(0x369)][_0x4a00c5(0x3b8)](_0x4a00c5(0x3b1));if(!_0x2dd3b2||!_0x2654bc[_0x4a00c5(0x29f)](_0x2dd3b2)){const _0x58c0b3=_0x2654bc[_0x4a00c5(0x43f)]()[0x0],_0x21a734=_0x2654bc['getSheetBySheetId'](_0x58c0b3);if(!_0x21a734)return;this['_updateURLWithCurrentState'](_0x21a734,!0x0),await this[_0x4a00c5(0x320)][_0x4a00c5(0x2b8)](g[_0x4a00c5(0x23f)]['id'],{'unitId':_0x2654bc[_0x4a00c5(0x1c9)](),'subUnitId':_0x58c0b3});return;}((_0x6e0a98=_0x2654bc[_0x4a00c5(0x3e9)]())==null?void 0x0:_0x6e0a98[_0x4a00c5(0x3ca)]())!==_0x2dd3b2&&await this[_0x4a00c5(0x320)][_0x4a00c5(0x2b8)](g[_0x4a00c5(0x23f)]['id'],{'unitId':_0x2654bc['getUnitId'](),'subUnitId':_0x2dd3b2});}},exports[_0x412fda(0x379)]=Yt([W(0x0,Ee),W(0x1,a['ILogService']),W(0x2,a['ICommandService']),W(0x3,a['Inject'](u[_0x412fda(0x42e)])),W(0x4,a[_0x412fda(0x30f)](Ke[_0x412fda(0x28f)]))],exports['CollaborationDataLoaderController']);var Vt=Object['getOwnPropertyDescriptor'],Xt=(_0x5df682,_0x501310,_0x10f3a3,_0x17ffd0)=>{for(var _0x31f165=_0x17ffd0>0x1?void 0x0:_0x17ffd0?Vt(_0x501310,_0x10f3a3):_0x501310,_0x4a3eaf=_0x5df682['length']-0x1,_0x1603d5;_0x4a3eaf>=0x0;_0x4a3eaf--)(_0x1603d5=_0x5df682[_0x4a3eaf])&&(_0x31f165=_0x1603d5(_0x31f165)||_0x31f165);return _0x31f165;},le=(_0x426a7f,_0x386fe3)=>(_0x3aba34,_0x45ec32)=>_0x386fe3(_0x3aba34,_0x45ec32,_0x426a7f);let J=class{constructor(_0x4c53df,_0x4b4ac3,_0xc8cc0c){const _0x318ecb=_0x412fda;this[_0x318ecb(0x24d)]=_0x4c53df,this['_transformService']=_0x4b4ac3,this[_0x318ecb(0x2a8)]=_0xc8cc0c;}[_0x412fda(0x1bd)](_0x1469db){const _0x32450f=_0x412fda;this[_0x32450f(0x218)](_0x1469db),this[_0x32450f(0x27b)](_0x1469db);}[_0x412fda(0x1f9)](_0x11c602){const _0x5326c9=_0x412fda,{unitID:_0x4a8d64}=_0x11c602,_0x55b8ac=this[_0x5326c9(0x2a8)]['getRenderById'](_0x4a8d64)[_0x5326c9(0x208)](b[_0x5326c9(0x3de)]),{redoCache:_0x5526a3}=_0x55b8ac[_0x5326c9(0x3f4)]();if(_0x5526a3[_0x5326c9(0x409)]===0x0)return _0x11c602;let _0x2d2b36=a[_0x5326c9(0x2b1)][_0x5326c9(0x273)](_0x11c602[_0x5326c9(0x2d2)][0x0]);for(let _0x3dd057=0x0;_0x3dd057<_0x5526a3[_0x5326c9(0x409)];_0x3dd057++){const _0x1af158={'id':_0x5326c9(0x236),'params':{..._0x5526a3[_0x3dd057]}},_0x396365=this[_0x5326c9(0x437)][_0x5326c9(0x394)](_0x2d2b36,_0x1af158,!0x1);if(m[_0x5326c9(0x363)](_0x396365))throw _0x396365[_0x5326c9(0x264)];_0x2d2b36=_0x396365[_0x5326c9(0x31f)];}return{...a[_0x5326c9(0x2b1)]['deepClone'](_0x11c602),'mutations':[_0x2d2b36]};}[_0x412fda(0x218)](_0x4ebef9){const _0x22336f=_0x412fda,{unitID:_0x18fa7d}=_0x4ebef9,_0x2946cf=this[_0x22336f(0x2a8)]['getRenderById'](_0x18fa7d)[_0x22336f(0x208)](b['DocIMEInputManagerService']),{undoCache:_0x4825e1,redoCache:_0x224513}=_0x2946cf['getUndoRedoMutationParamsCache']();if(_0x4825e1['length']===0x0||_0x224513[_0x22336f(0x409)]===0x0)return;const _0x40d557=[],_0x455760=[];let _0x57d191=a['Tools']['deepClone'](_0x4ebef9[_0x22336f(0x2d2)][0x0]),_0x58c30a=a['Tools'][_0x22336f(0x273)](_0x4ebef9[_0x22336f(0x2d2)][0x0]);for(let _0x2e3a94=_0x4825e1[_0x22336f(0x409)]-0x1;_0x2e3a94>=0x0;_0x2e3a94--){const _0x4b1250={'id':_0x22336f(0x236),'params':{..._0x4825e1[_0x2e3a94]}},_0x316d74={'id':_0x22336f(0x236),'params':{..._0x224513[_0x2e3a94]}},_0x3cecb7=this[_0x22336f(0x437)][_0x22336f(0x394)](_0x57d191,_0x4b1250,!0x1),_0x404815=this[_0x22336f(0x437)][_0x22336f(0x394)](_0x58c30a,_0x316d74,!0x1);if(m[_0x22336f(0x363)](_0x3cecb7))throw _0x3cecb7[_0x22336f(0x264)];if(m['isTransformMutationFailure'](_0x404815))throw _0x404815[_0x22336f(0x264)];_0x40d557['unshift'](_0x3cecb7[_0x22336f(0x28d)]['params']),_0x455760['unshift'](_0x404815[_0x22336f(0x28d)][_0x22336f(0x377)]),_0x57d191=_0x3cecb7[_0x22336f(0x31f)],_0x58c30a=_0x404815[_0x22336f(0x31f)];}_0x2946cf[_0x22336f(0x283)]({'undoCache':_0x40d557,'redoCache':_0x455760});}[_0x412fda(0x27b)](_0x4a9511){const _0xc6825f=_0x412fda,{unitID:_0x1b0ebd}=_0x4a9511,_0x3439ac=this[_0xc6825f(0x2a8)][_0xc6825f(0x261)](_0x1b0ebd)[_0xc6825f(0x208)](b['DocIMEInputManagerService']),_0x512c2e=_0x3439ac[_0xc6825f(0x3bf)]();if(_0x512c2e==null)return;const _0x35cd6f=[{'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x4a9511[_0xc6825f(0x31d)],'actions':null,'textRanges':[_0x512c2e]}}],_0x4732ff=this[_0xc6825f(0x437)][_0xc6825f(0x217)](_0x4a9511,_0x35cd6f);if(!m[_0xc6825f(0x424)](_0x4732ff))throw _0x4732ff['error'];const _0x5322d0=_0x4732ff[_0xc6825f(0x28d)][0x0][_0xc6825f(0x377)][_0xc6825f(0x299)];Array[_0xc6825f(0x40e)](_0x5322d0)&&_0x5322d0['length']&&_0x3439ac['setActiveRange'](_0x5322d0[0x0]);}};J=Xt([le(0x0,a[_0x412fda(0x22a)](a[_0x412fda(0x2ed)])),le(0x1,m[_0x412fda(0x2eb)]),le(0x2,p['IRenderManagerService'])],J);var Gt=Object[_0x412fda(0x26e)],qt=(_0x2081d9,_0x19f164,_0x51b9a7,_0x36fcab)=>{for(var _0x4b02fc=_0x36fcab>0x1?void 0x0:_0x36fcab?Gt(_0x19f164,_0x51b9a7):_0x19f164,_0x5ea40e=_0x2081d9['length']-0x1,_0x326613;_0x5ea40e>=0x0;_0x5ea40e--)(_0x326613=_0x2081d9[_0x5ea40e])&&(_0x4b02fc=_0x326613(_0x4b02fc)||_0x4b02fc);return _0x4b02fc;},_e=(_0x5a2be4,_0x5a9c94)=>(_0x498c25,_0x2e2c19)=>_0x5a9c94(_0x498c25,_0x2e2c19,_0x5a2be4);let Z=class{constructor(_0x25a5b5,_0x25bf43,_0x259d14){const _0x48f86d=_0x412fda;this[_0x48f86d(0x24d)]=_0x25a5b5,this['_transformService']=_0x25bf43,this[_0x48f86d(0x2d6)]=_0x259d14;}[_0x412fda(0x35e)](_0x247d59){const _0x5a0cb4=_0x412fda;this[_0x5a0cb4(0x3b3)](_0x247d59);}[_0x412fda(0x1f9)](_0xb99e6c){const _0x85ee47=_0x412fda,{unitID:_0xa58d5b}=_0xb99e6c,{collaboration:_0x3dc975}=this['_docStateChangeManagerService'][_0x85ee47(0x277)](_0xa58d5b);if(_0x3dc975[_0x85ee47(0x409)]===0x0)return _0xb99e6c;let _0x4b7a29=a[_0x85ee47(0x2b1)][_0x85ee47(0x273)](_0xb99e6c[_0x85ee47(0x2d2)][0x0]);for(let _0x1dadbe=0x0;_0x1dadbe<_0x3dc975[_0x85ee47(0x409)];_0x1dadbe++){const _0x107571={'id':_0x85ee47(0x236),'params':{'unitId':_0x3dc975[_0x1dadbe][_0x85ee47(0x406)],..._0x3dc975[_0x1dadbe]['redoState']}},_0x317a59=this[_0x85ee47(0x437)][_0x85ee47(0x394)](_0x4b7a29,_0x107571,!0x1);if(m['isTransformMutationFailure'](_0x317a59))throw _0x317a59['error'];_0x4b7a29=_0x317a59['m1Prime'];}return{...a[_0x85ee47(0x2b1)]['deepClone'](_0xb99e6c),'mutations':[_0x4b7a29]};}[_0x412fda(0x3b3)](_0x5f4b9b){const _0x42bff0=_0x412fda,{unitID:_0x4425db}=_0x5f4b9b,{history:_0x105c2d,collaboration:_0x26545d}=this['_docStateChangeManagerService']['getStateCache'](_0x4425db);if(_0x105c2d[_0x42bff0(0x409)]===0x0&&_0x26545d[_0x42bff0(0x409)]===0x0)return;const _0x3f176d=[],_0x3a1f9a=[];let _0x20a726=a['Tools']['deepClone'](_0x5f4b9b[_0x42bff0(0x2d2)][0x0]),_0x38bee0=a[_0x42bff0(0x2b1)][_0x42bff0(0x273)](_0x5f4b9b[_0x42bff0(0x2d2)][0x0]);for(let _0x27cc09=_0x105c2d[_0x42bff0(0x409)]-0x1;_0x27cc09>=0x0;_0x27cc09--){const _0x39dcc4={'id':_0x42bff0(0x236),'params':{'unitId':_0x105c2d[_0x27cc09][_0x42bff0(0x406)],..._0x105c2d[_0x27cc09][_0x42bff0(0x426)]}},_0x2cb1e3={'id':_0x42bff0(0x236),'params':{'unitId':_0x105c2d[_0x27cc09][_0x42bff0(0x406)],..._0x105c2d[_0x27cc09][_0x42bff0(0x209)]}},_0x2d49f0=this[_0x42bff0(0x437)]['transformMutation'](_0x20a726,_0x39dcc4,!0x1),_0x2151a9=this[_0x42bff0(0x437)][_0x42bff0(0x394)](_0x38bee0,_0x2cb1e3,!0x1);if(m[_0x42bff0(0x363)](_0x2d49f0))throw _0x2d49f0['error'];if(m[_0x42bff0(0x363)](_0x2151a9))throw _0x2151a9[_0x42bff0(0x264)];_0x3f176d[_0x42bff0(0x40f)]({..._0x105c2d[_0x27cc09],'undoState':_0x2d49f0[_0x42bff0(0x28d)][_0x42bff0(0x377)],'redoState':_0x2151a9[_0x42bff0(0x28d)][_0x42bff0(0x377)]}),_0x20a726=_0x2d49f0[_0x42bff0(0x31f)],_0x38bee0=_0x2151a9[_0x42bff0(0x31f)];}_0x20a726=a[_0x42bff0(0x2b1)][_0x42bff0(0x273)](_0x5f4b9b[_0x42bff0(0x2d2)][0x0]),_0x38bee0=a[_0x42bff0(0x2b1)][_0x42bff0(0x273)](_0x5f4b9b['mutations'][0x0]);for(let _0x2cc3e0=_0x26545d['length']-0x1;_0x2cc3e0>=0x0;_0x2cc3e0--){const _0x1dcc08={'id':_0x42bff0(0x236),'params':{'unitId':_0x26545d[_0x2cc3e0][_0x42bff0(0x406)],..._0x26545d[_0x2cc3e0][_0x42bff0(0x426)]}},_0x5430b9={'id':_0x42bff0(0x236),'params':{'unitId':_0x26545d[_0x2cc3e0][_0x42bff0(0x406)],..._0x26545d[_0x2cc3e0]['redoState']}},_0x47c7b6=this[_0x42bff0(0x437)]['transformMutation'](_0x20a726,_0x1dcc08,!0x1),_0x3d4619=this['_transformService']['transformMutation'](_0x38bee0,_0x5430b9,!0x1);if(m[_0x42bff0(0x363)](_0x47c7b6))throw _0x47c7b6[_0x42bff0(0x264)];if(m[_0x42bff0(0x363)](_0x3d4619))throw _0x3d4619[_0x42bff0(0x264)];_0x3a1f9a['unshift']({..._0x26545d[_0x2cc3e0],'undoState':_0x47c7b6[_0x42bff0(0x28d)][_0x42bff0(0x377)],'redoState':_0x3d4619['m2Prime'][_0x42bff0(0x377)]}),_0x20a726=_0x47c7b6[_0x42bff0(0x31f)],_0x38bee0=_0x3d4619[_0x42bff0(0x31f)];}this[_0x42bff0(0x2d6)]['setStateCache'](_0x4425db,{'history':_0x3f176d,'collaboration':_0x3a1f9a});}};Z=qt([_e(0x0,a[_0x412fda(0x22a)](a['Injector'])),_e(0x1,m[_0x412fda(0x2eb)]),_e(0x2,a[_0x412fda(0x22a)](b[_0x412fda(0x235)]))],Z);var Kt=Object[_0x412fda(0x26e)],zt=(_0x1a66cc,_0x5f4b88,_0x46ef42,_0x50646c)=>{const _0x518076=_0x412fda;for(var _0x29af19=_0x50646c>0x1?void 0x0:_0x50646c?Kt(_0x5f4b88,_0x46ef42):_0x5f4b88,_0x38407c=_0x1a66cc[_0x518076(0x409)]-0x1,_0x3e17a9;_0x38407c>=0x0;_0x38407c--)(_0x3e17a9=_0x1a66cc[_0x38407c])&&(_0x29af19=_0x3e17a9(_0x29af19)||_0x29af19);return _0x29af19;},Me=(_0x119694,_0x3f932a)=>(_0x2527d7,_0x40b790)=>_0x3f932a(_0x2527d7,_0x40b790,_0x119694);let Q=class{constructor(_0x5010e0,_0x347dc4){const _0xe86193=_0x412fda;this[_0xe86193(0x24d)]=_0x5010e0,this[_0xe86193(0x437)]=_0x347dc4;}[_0x412fda(0x2be)](_0x3f014e){const _0x198d11=_0x412fda;var _0x1fe28e;const _0x272360=this[_0x198d11(0x24d)][_0x198d11(0x404)](Y[_0x198d11(0x2dc)]),_0x191b61=(_0x1fe28e=_0x272360[_0x198d11(0x31e)]())!=null?_0x1fe28e:[];if(_0x191b61['length']===0x0)return;const _0x48ebcc=_0x3f014e[_0x198d11(0x31d)],_0x5dd77a=[{'id':_0x198d11(0x236),'params':{'unitId':_0x48ebcc,'actions':null,'textRanges':_0x191b61}}],_0x5c2a4d=this[_0x198d11(0x437)][_0x198d11(0x217)](_0x3f014e,_0x5dd77a);if(!m[_0x198d11(0x424)](_0x5c2a4d))throw _0x5c2a4d[_0x198d11(0x264)];const _0x52385a=_0x5c2a4d[_0x198d11(0x28d)][0x0][_0x198d11(0x377)][_0x198d11(0x299)];Array[_0x198d11(0x40e)](_0x52385a)&&_0x52385a[_0x198d11(0x409)]&&_0x272360[_0x198d11(0x29a)](_0x52385a,{'unitId':_0x48ebcc,'subUnitId':_0x48ebcc},!0x1);}};Q=zt([Me(0x0,a[_0x412fda(0x22a)](a['Injector'])),Me(0x1,m[_0x412fda(0x2eb)])],Q);var Jt=Object[_0x412fda(0x26e)],Zt=(_0x281472,_0x2daf18,_0x596493,_0x29cfcd)=>{const _0x148360=_0x412fda;for(var _0x19d063=_0x29cfcd>0x1?void 0x0:_0x29cfcd?Jt(_0x2daf18,_0x596493):_0x2daf18,_0x5dae34=_0x281472[_0x148360(0x409)]-0x1,_0x316026;_0x5dae34>=0x0;_0x5dae34--)(_0x316026=_0x281472[_0x5dae34])&&(_0x19d063=_0x316026(_0x19d063)||_0x19d063);return _0x19d063;},N=(_0x12bffe,_0x447007)=>(_0x268377,_0xf231c6)=>_0x447007(_0x268377,_0xf231c6,_0x12bffe);let ee=class extends a[_0x412fda(0x439)]{constructor(_0x1ff9bd,_0x29cd87,_0x40414c,_0x5be7ef,_0x396812,_0x4f0f10,_0x587e16,_0x41a833){const _0x3dbfc3=_0x412fda;super(),_(this,'_status$',new d[(_0x3dbfc3(0x1df))](u[_0x3dbfc3(0x234)][_0x3dbfc3(0x433)])),(this[_0x3dbfc3(0x2d6)]=_0x1ff9bd,this[_0x3dbfc3(0x355)]=_0x29cd87,this['_docTransformIMECacheService']=_0x40414c,this[_0x3dbfc3(0x352)]=_0x5be7ef,this['_docTransformSelectionsService']=_0x396812,this[_0x3dbfc3(0x3b5)]=_0x4f0f10,this[_0x3dbfc3(0x3e4)]=_0x587e16,this[_0x3dbfc3(0x26c)]=_0x41a833,this['_initEntityListener']());}['_initEntityListener'](){const _0x3b0ba8=_0x412fda;this[_0x3b0ba8(0x2d1)](this[_0x3b0ba8(0x355)][_0x3b0ba8(0x2fb)][_0x3b0ba8(0x3c5)](_0x42d07b=>{const _0x286338=_0x3b0ba8,_0x2c4d64=this['_docStateChangeManagerService'][_0x286338(0x442)][_0x286338(0x3c5)](_0x1c3b76=>{const _0x46890f=_0x286338;if(_0x1c3b76==null)return;const {unitId:_0x23f4bb,redoState:_0x542bb4,commandId:_0x2971f0}=_0x1c3b76;if(_0x23f4bb!==_0x42d07b[_0x46890f(0x31d)])return;const _0x2f39a6={'id':_0x2971f0,'type':a[_0x46890f(0x2a1)][_0x46890f(0x3f3)],'params':{'unitId':_0x23f4bb,'actions':_0x542bb4['actions'],'textRanges':null}};_0x42d07b['onLocalMutation'](_0x2f39a6);});if(_0x42d07b[_0x286338(0x2d1)](_0x2c4d64),_0x42d07b instanceof u[_0x286338(0x23d)]){const _0x5aa037={'onTransformIME':_0x488cb1=>this[_0x286338(0x22f)][_0x286338(0x1bd)](_0x488cb1),'onTransformState':_0x5c00f1=>this['_docTransformStateCacheService'][_0x286338(0x35e)](_0x5c00f1),'onTransformSelections':_0xa09864=>this[_0x286338(0x1fd)][_0x286338(0x2be)](_0xa09864),'onSyncEditingCollabCursor':_0x1c5802=>this[_0x286338(0x3b5)][_0x286338(0x1ca)](_0x1c5802),'onTransformRemoteChangesetByIMECache':_0x39f64f=>this['_docTransformIMECacheService'][_0x286338(0x1f9)](_0x39f64f),'onTransformRemoteChangesetByStateCache':_0x416ef9=>this[_0x286338(0x352)][_0x286338(0x1f9)](_0x416ef9)};_0x42d07b['addHandlerCallback'](_0x5aa037);}}));}};ee=Zt([N(0x0,a['Inject'](b[_0x412fda(0x235)])),N(0x1,a['Inject'](u[_0x412fda(0x403)])),N(0x2,a[_0x412fda(0x22a)](J)),N(0x3,a[_0x412fda(0x22a)](Z)),N(0x4,a[_0x412fda(0x22a)](Q)),N(0x5,a['Inject'](pe)),N(0x6,R[_0x412fda(0x230)]),N(0x7,a[_0x412fda(0x22a)](a[_0x412fda(0x268)]))],ee);var Qt=Object[_0x412fda(0x26e)],es=(_0x44a6f4,_0x238e0f,_0x282750,_0x4af94e)=>{for(var _0x4f76e2=_0x4af94e>0x1?void 0x0:_0x4af94e?Qt(_0x238e0f,_0x282750):_0x238e0f,_0x41cad8=_0x44a6f4['length']-0x1,_0x52a890;_0x41cad8>=0x0;_0x41cad8--)(_0x52a890=_0x44a6f4[_0x41cad8])&&(_0x4f76e2=_0x52a890(_0x4f76e2)||_0x4f76e2);return _0x4f76e2;},he=(_0x2c6558,_0x565444)=>(_0x5f1450,_0x39c83b)=>_0x565444(_0x5f1450,_0x39c83b,_0x2c6558);let me=class extends a[_0x412fda(0x439)]{constructor(_0x5a36cf,_0xbb0a47,_0x40ebeb){const _0xeb8b08=_0x412fda;super(),_(this,'_cachedData',new Map()),_(this,_0xeb8b08(0x32e),new Map()),_(this,_0xeb8b08(0x1f3),!0x1),(this[_0xeb8b08(0x40d)]=_0x5a36cf,this['_localStorageService']=_0xbb0a47,this[_0xeb8b08(0x2e3)]=_0x40ebeb);}[_0x412fda(0x440)](){const _0x26ef20=_0x412fda;this[_0x26ef20(0x1f3)]=!0x0;}['enableLocalCache'](){this['_disabled']=!0x1;}get[_0x412fda(0x2f3)](){return this['_saveTaskMap'];}[_0x412fda(0x27f)](){const _0x10afb3=_0x412fda;this[_0x10afb3(0x1cc)]()[_0x10afb3(0x40c)](()=>super[_0x10afb3(0x27f)]());}async[_0x412fda(0x3a1)](_0x5cd706){const _0x523412=_0x412fda;return this['_disabled']?null:this[_0x523412(0x21d)][_0x523412(0x38f)](u['getLocalCacheKey'](_0x5cd706));}async[_0x412fda(0x1ce)](_0x56c851,_0xe1717){const _0x3198e0=_0x412fda;return!!this['_localStorageService'][_0x3198e0(0x392)](_0x56c851,_0xe1717);}[_0x412fda(0x3e2)](_0x207546,_0x106c04,_0x2481f2,_0xc58ea){const _0x5ebd25=_0x412fda,_0x2b625e=this[_0x5ebd25(0x2e3)][_0x5ebd25(0x2d5)](_0x207546);this[_0x5ebd25(0x359)][_0x5ebd25(0x207)](_0x207546,{'unitID':_0x207546,'type':_0x106c04,'awaitingChangeset':_0x2481f2,'mutations':_0xc58ea,'rev':_0x2b625e}),this[_0x5ebd25(0x32e)][_0x5ebd25(0x1ee)](_0x207546)||this[_0x5ebd25(0x1ed)](_0x207546);}[_0x412fda(0x1ed)](_0x5f0307){const _0x2ca12d=_0x412fda,_0x54e4cc=this[_0x2ca12d(0x307)]();_0x54e4cc===0x0?this[_0x2ca12d(0x415)](_0x5f0307):this[_0x2ca12d(0x32e)][_0x2ca12d(0x207)](_0x5f0307,setTimeout(()=>this[_0x2ca12d(0x415)](_0x5f0307),_0x54e4cc));}[_0x412fda(0x307)](){const _0x5969b7=_0x412fda;var _0x3a4f2d;return(_0x3a4f2d=this[_0x5969b7(0x40d)][_0x5969b7(0x30a)](u[_0x5969b7(0x303)]))!=null?_0x3a4f2d:u[_0x5969b7(0x2bc)];}[_0x412fda(0x415)](_0xe2537d){const _0x257dbc=_0x412fda,_0x575553=this['_saveTaskMap']['get'](_0xe2537d);return _0x575553!==void 0x0&&window[_0x257dbc(0x2c6)](_0x575553),this[_0x257dbc(0x21d)]['setItem'](u[_0x257dbc(0x43e)](_0xe2537d),this[_0x257dbc(0x359)][_0x257dbc(0x404)](_0xe2537d))['then'](()=>this[_0x257dbc(0x32e)][_0x257dbc(0x33f)](_0xe2537d));}async[_0x412fda(0x1cc)](){const _0x5d26f9=_0x412fda,_0x3c5a52=[];this[_0x5d26f9(0x32e)][_0x5d26f9(0x3e1)]((_0x24be96,_0x44e812)=>{const _0x521fdb=_0x5d26f9;window[_0x521fdb(0x2c6)](_0x24be96),_0x3c5a52[_0x521fdb(0x203)](this[_0x521fdb(0x415)](_0x44e812)[_0x521fdb(0x40c)](()=>{const _0x2e3a68=_0x521fdb;this[_0x2e3a68(0x32e)]['delete'](_0x44e812);}));}),await Promise[_0x5d26f9(0x2c2)](_0x3c5a52);}};me=es([he(0x0,a[_0x412fda(0x2f6)]),he(0x1,a['ILocalStorageService']),he(0x2,a[_0x412fda(0x22a)](m['RevisionService']))],me);class Be extends a[_0x412fda(0x1c0)]{constructor(){const _0x4eefb0=_0x412fda;super(),_(this,_0x4eefb0(0x3cf)),this[_0x4eefb0(0x3cf)]=d[_0x4eefb0(0x1c5)](window,'popstate')[_0x4eefb0(0x254)](d['takeUntil'](this[_0x4eefb0(0x414)]),d[_0x4eefb0(0x434)](0x1),d[_0x4eefb0(0x410)](void 0x0));}[_0x412fda(0x216)](_0x380e60,_0x4cf05c,_0x4b91be=!0x1){const _0x23aa18=_0x412fda,_0x4e1b8e=new URL(window[_0x23aa18(0x29c)][_0x23aa18(0x2e5)]);_0x4e1b8e[_0x23aa18(0x1d6)][_0x23aa18(0x207)](_0x380e60,_0x4cf05c),_0x4b91be?window[_0x23aa18(0x24f)][_0x23aa18(0x20f)]('','',_0x4e1b8e[_0x23aa18(0x1f4)]()):window[_0x23aa18(0x24f)][_0x23aa18(0x429)]('','',_0x4e1b8e['toString']());}[_0x412fda(0x353)](_0x27749f,_0x2d3267=!0x1){const _0x4ba836=_0x412fda,_0x320484=new URL(window[_0x4ba836(0x29c)]['href']);_0x320484[_0x4ba836(0x1d6)]['delete'](_0x27749f),_0x2d3267?window[_0x4ba836(0x24f)][_0x4ba836(0x20f)]('','',_0x320484[_0x4ba836(0x1f4)]()):window[_0x4ba836(0x24f)]['pushState']('','',_0x320484[_0x4ba836(0x1f4)]());}[_0x412fda(0x3b8)](_0x49a77d){const _0x3a06bf=_0x412fda;var _0x4b8dc8;return(_0x4b8dc8=new URL(window[_0x3a06bf(0x29c)][_0x3a06bf(0x2e5)])[_0x3a06bf(0x1d6)][_0x3a06bf(0x404)](_0x49a77d))!=null?_0x4b8dc8:void 0x0;}}var ts=Object[_0x412fda(0x391)],ss=Object[_0x412fda(0x26e)],ns=(_0x1e7ec7,_0x38bae5,_0x6042ad)=>_0x38bae5 in _0x1e7ec7?ts(_0x1e7ec7,_0x38bae5,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x6042ad}):_0x1e7ec7[_0x38bae5]=_0x6042ad,is=(_0x31bced,_0x4e2a3c,_0x1be4bb,_0x46b4c9)=>{const _0x34238c=_0x412fda;for(var _0xd5f92b=_0x46b4c9>0x1?void 0x0:_0x46b4c9?ss(_0x4e2a3c,_0x1be4bb):_0x4e2a3c,_0x56a55d=_0x31bced[_0x34238c(0x409)]-0x1,_0xe17ff7;_0x56a55d>=0x0;_0x56a55d--)(_0xe17ff7=_0x31bced[_0x56a55d])&&(_0xd5f92b=_0xe17ff7(_0xd5f92b)||_0xd5f92b);return _0xd5f92b;},ue=(_0x280f71,_0x192521)=>(_0x277ecf,_0x333052)=>_0x192521(_0x277ecf,_0x333052,_0x280f71),rs=(_0x4adfd6,_0x53b601,_0x3a5bc3)=>ns(_0x4adfd6,_0x53b601+'',_0x3a5bc3);const os='UNIVER_COLLABORATION_CLIENT_WEB_PLUGIN';exports[_0x412fda(0x33c)]=class extends a[_0x412fda(0x25b)]{constructor(_0x1465ca=Ne,_0x1c4b44,_0x208d24,_0xb96fe2){const _0x4222c2=_0x412fda;super(),this[_0x4222c2(0x42a)]=_0x1465ca,this[_0x4222c2(0x2a8)]=_0x1c4b44,this[_0x4222c2(0x24d)]=_0x208d24,this[_0x4222c2(0x40d)]=_0xb96fe2;const {..._0x5e32b2}=a[_0x4222c2(0x1ea)]({},Ne,this[_0x4222c2(0x42a)]);this[_0x4222c2(0x40d)][_0x4222c2(0x20d)](Wt,_0x5e32b2);}[_0x412fda(0x380)](){const _0x366fef=_0x412fda;this[_0x366fef(0x201)](),this[_0x366fef(0x23a)]();}[_0x412fda(0x31a)](){const _0x3d8c13=_0x412fda;this[_0x3d8c13(0x2c8)]();}[_0x412fda(0x201)](){const _0x572ae6=_0x412fda;var _0x2b33bc;const _0x38969c=[[Ce],[Q],[J],[Z],[pe],[Ee,{'useClass':Be}],[q['ISocketService'],{'useClass':q['WebSocketService']}],[u['ILocalCacheService'],{'useClass':me}],[exports[_0x572ae6(0x3c6)]],[ee],[z],[x],[fe],[exports[_0x572ae6(0x379)]]];a[_0x572ae6(0x37f)](this[_0x572ae6(0x24d)],a[_0x572ae6(0x2d0)](_0x38969c,(_0x2b33bc=this[_0x572ae6(0x42a)])==null?void 0x0:_0x2b33bc[_0x572ae6(0x3ad)]));}[_0x412fda(0x2c8)](){const _0x3365c4=_0x412fda;this[_0x3365c4(0x2d1)](this[_0x3365c4(0x2a8)][_0x3365c4(0x30d)](a[_0x3365c4(0x220)]['UNIVER_DOC'],[ve])),this[_0x3365c4(0x2d1)](this[_0x3365c4(0x2a8)]['registerRenderModule'](a[_0x3365c4(0x220)][_0x3365c4(0x354)],[ge]));}[_0x412fda(0x23a)](){const _0x5babfd=_0x412fda;a[_0x5babfd(0x3b7)](this[_0x5babfd(0x24d)],[[x],[exports[_0x5babfd(0x3c6)]],[ee],[z],[exports[_0x5babfd(0x379)]]]);}},rs(exports[_0x412fda(0x33c)],_0x412fda(0x2f8),os),exports[_0x412fda(0x33c)]=is([a['DependentOn'](u['UniverCollaborationClientPlugin']),ue(0x1,p[_0x412fda(0x1bf)]),ue(0x2,a[_0x412fda(0x22a)](a[_0x412fda(0x2ed)])),ue(0x3,a['IConfigService'])],exports[_0x412fda(0x33c)]);function _0x3ec3(_0x43dc4f,_0x3add4f){const _0x36d425=_0x36d4();return _0x3ec3=function(_0x3ec34a,_0x10057c){_0x3ec34a=_0x3ec34a-0x1b8;let _0x31d468=_0x36d425[_0x3ec34a];return _0x31d468;},_0x3ec3(_0x43dc4f,_0x3add4f);}var as=Object[_0x412fda(0x26e)],cs=(_0xf8beae,_0x2b3589,_0x1d89b3,_0x148d6e)=>{for(var _0x25ef72=_0x148d6e>0x1?void 0x0:_0x148d6e?as(_0x2b3589,_0x1d89b3):_0x2b3589,_0xe99832=_0xf8beae['length']-0x1,_0x4e0aea;_0xe99832>=0x0;_0xe99832--)(_0x4e0aea=_0xf8beae[_0xe99832])&&(_0x25ef72=_0x4e0aea(_0x25ef72)||_0x25ef72);return _0x25ef72;},F=(_0x2d2f2a,_0x19f98b)=>(_0x4d2edf,_0x46f33a)=>_0x19f98b(_0x4d2edf,_0x46f33a,_0x2d2f2a);exports[_0x412fda(0x29b)]=class extends u[_0x412fda(0x1e5)]{constructor(_0x193995,_0xdc6b1a,_0x4a896b,_0x2d0696,_0x474f8d){super(_0x193995,_0xdc6b1a,_0x4a896b,_0x2d0696,_0x474f8d);}async[_0x412fda(0x24c)](_0x3a71fa){const _0x406373=_0x412fda,_0x1c6d0e=await this['_getSessionTicket'](),_0x2dac1a=this['_createSocketURL'](_0x3a71fa,_0x1c6d0e);return this[_0x406373(0x3b2)](_0x2dac1a);}[_0x412fda(0x3f7)](_0x2ea25b,_0x421ab2){const _0x4a3094=_0x412fda,_0x15d89a=typeof window>'u'?new URL(_0x2ea25b):new URL(_0x2ea25b,window[_0x4a3094(0x29c)][_0x4a3094(0x2d4)]);_0x15d89a[_0x4a3094(0x1d6)][_0x4a3094(0x207)](_0x4a3094(0x327),_0x421ab2);const _0x3a5f93=typeof window>'u'?new URLSearchParams():new URLSearchParams(window['location'][_0x4a3094(0x430)]);return _0x3a5f93[_0x4a3094(0x404)]('runId')&&_0x15d89a[_0x4a3094(0x1d6)]['set'](_0x4a3094(0x36f),_0x3a5f93[_0x4a3094(0x404)](_0x4a3094(0x36f))),_0x15d89a[_0x4a3094(0x1f4)]();}async[_0x412fda(0x365)](){const _0x3dc277=_0x412fda;var _0xb4d866,_0x31f808,_0x1c0a29;const _0x15483a=this['_configService']['getConfig'](u['COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY']),_0x406062=(_0xb4d866=_0x15483a==null?void 0x0:_0x15483a[_0x3dc277(0x272)])!=null?_0xb4d866:u[_0x3dc277(0x259)];return(_0x1c0a29=(_0x31f808=(await this[_0x3dc277(0x1e6)][_0x3dc277(0x404)](_0x406062,{'headers':{'Content-Type':'application/json'}}))[_0x3dc277(0x262)])==null?void 0x0:_0x31f808[_0x3dc277(0x319)])!=null?_0x1c0a29:'';}},exports[_0x412fda(0x29b)]=cs([F(0x0,a[_0x412fda(0x22a)](a['Injector'])),F(0x1,a[_0x412fda(0x22a)](q[_0x412fda(0x34b)])),F(0x2,a[_0x412fda(0x2f6)]),F(0x3,a[_0x412fda(0x237)]),F(0x4,m['ISnapshotServerService'])],exports['BrowserCollaborationSocketService']);const Pe=0x7530,Le=_0x412fda(0x2f0);class ls extends a[_0x412fda(0x439)]{constructor(){const _0x12b8e4=_0x412fda;super(),_(this,'_id',a['generateRandomId']()),_(this,_0x12b8e4(0x1e9),new Set()),_(this,_0x12b8e4(0x2ee),new Map()),_(this,_0x12b8e4(0x326),null),_(this,_0x12b8e4(0x1eb),new Map()),_(this,_0x12b8e4(0x35b),new Map()),this['_init']();}['dispose'](){const _0x58f6cf=_0x412fda;super['dispose'](),this[_0x58f6cf(0x1eb)]['forEach']((_0x258af6,_0x81eb2b)=>this[_0x58f6cf(0x39a)](_0x81eb2b)),this[_0x58f6cf(0x326)]&&window[_0x58f6cf(0x271)](this[_0x58f6cf(0x326)]);}[_0x412fda(0x206)](_0x36be2a){const _0x2be074=_0x412fda;return this[_0x2be074(0x269)](_0x36be2a)[_0x2be074(0x254)](d[_0x2be074(0x3db)]());}[_0x412fda(0x1fa)](_0x536061){const _0xb56c33=_0x412fda;this[_0xb56c33(0x1e9)][_0xb56c33(0x2fc)]===0x0&&this['_scheduleHeartbeat'](),this[_0xb56c33(0x1e9)][_0xb56c33(0x3a0)](_0x536061),this['_send']({'type':0x0,'memberID':this['_id'],'unitIDs':[_0x536061],'isForwarded':!0x1});}[_0x412fda(0x412)](_0x550d20){const _0x159601=_0x412fda;this[_0x159601(0x1e9)][_0x159601(0x33f)](_0x550d20),this[_0x159601(0x1e9)][_0x159601(0x2fc)]===0x0&&this[_0x159601(0x326)]&&window[_0x159601(0x271)](this['_heartbeatTimer']);}[_0x412fda(0x3fc)](){const _0x30f358=_0x412fda;this[_0x30f358(0x2d1)](a['toDisposable'](d[_0x30f358(0x1c5)](window,'storage')['subscribe'](_0x44d98d=>{const _0x7db73b=_0x30f358;if(_0x44d98d[_0x7db73b(0x3cb)]!==Le||!_0x44d98d[_0x7db73b(0x280)])return;const _0xd5744a=JSON[_0x7db73b(0x1fc)](_0x44d98d[_0x7db73b(0x280)]);this['_handleEvent'](_0xd5744a);}))),window['addEventListener'](_0x30f358(0x20e),()=>this['_send']({'type':0x1,'memberID':this['_id'],'unitIDs':Array[_0x30f358(0x42b)](this[_0x30f358(0x1e9)])}));}[_0x412fda(0x357)](_0x4930f8){const _0x2d5c95=_0x412fda;switch(_0x4930f8[_0x2d5c95(0x250)]){case 0x0:this['_handleJoinEvent'](_0x4930f8);break;case 0x1:this['_handleLeaveEvent'](_0x4930f8);break;case 0x2:this[_0x2d5c95(0x33e)](_0x4930f8);break;}}['_handleJoinEvent'](_0x1fe1e0){const _0x6b0f7e=_0x412fda,{unitIDs:_0xf4008a,memberID:_0x16ff5c,isForwarded:_0x397069}=_0x1fe1e0;_0xf4008a[_0x6b0f7e(0x3e1)](_0x39bd00=>{const _0x1d88a8=_0x6b0f7e;if(!_0x397069&&this[_0x1d88a8(0x2ee)][_0x1d88a8(0x1ee)](_0x39bd00)&&this[_0x1d88a8(0x269)](_0x39bd00)[_0x1d88a8(0x2e4)](u[_0x1d88a8(0x3b6)][_0x1d88a8(0x32f)]),!this[_0x1d88a8(0x2ee)][_0x1d88a8(0x1ee)](_0x39bd00)||!this['_unitOnClients'][_0x1d88a8(0x404)](_0x39bd00)[_0x1d88a8(0x1ee)](_0x16ff5c)){const _0x51756e=this[_0x1d88a8(0x2ee)][_0x1d88a8(0x404)](_0x39bd00)||new Set();_0x51756e['add'](_0x16ff5c),this[_0x1d88a8(0x2ee)][_0x1d88a8(0x207)](_0x39bd00,_0x51756e),this['_scheduleClearOtherTimer'](_0x16ff5c);}}),_0x397069||this['_send']({'type':0x0,'memberID':this['_id'],'unitIDs':[...this['_selfUnitIDs']],'isForwarded':!0x0});}[_0x412fda(0x297)](_0x474bc8){const _0x9370e2=_0x412fda;this[_0x9370e2(0x39a)](_0x474bc8);const _0x45f0ef=window[_0x9370e2(0x3c7)](()=>{const _0x1d048b=_0x9370e2;this[_0x1d048b(0x2ee)][_0x1d048b(0x3e1)](_0x5ce730=>{const _0xf843a1=_0x1d048b;_0x5ce730[_0xf843a1(0x33f)](_0x474bc8);});},Pe*0x2);this[_0x9370e2(0x1eb)][_0x9370e2(0x207)](_0x474bc8,_0x45f0ef);}[_0x412fda(0x39a)](_0x30e8f1){const _0x47c84b=_0x412fda;if(this[_0x47c84b(0x1eb)][_0x47c84b(0x1ee)](_0x30e8f1)){const _0x16b393=this['_clearOtherTimers'][_0x47c84b(0x404)](_0x30e8f1);_0x16b393&&window['clearTimeout'](_0x16b393),this[_0x47c84b(0x1eb)][_0x47c84b(0x207)](_0x30e8f1,null);}}[_0x412fda(0x2df)](_0x42761f){const _0x53a565=_0x412fda,{memberID:_0x5a2208,unitIDs:_0xdd7eb5}=_0x42761f;_0xdd7eb5[_0x53a565(0x3e1)](_0x16dd0e=>{const _0x15c29f=_0x53a565;var _0x537243;const _0x41f490=this[_0x15c29f(0x2ee)][_0x15c29f(0x404)](_0x16dd0e);_0x41f490&&(_0x41f490[_0x15c29f(0x33f)](_0x5a2208),(_0x537243=this[_0x15c29f(0x269)](_0x16dd0e))==null||_0x537243['next'](_0x41f490['size']===0x0?u['UnitStatus'][_0x15c29f(0x339)]:u[_0x15c29f(0x3b6)][_0x15c29f(0x32f)]));}),this[_0x53a565(0x39a)](_0x5a2208);}['_handleHeartbeatEvent'](_0x193cc9){const _0x593a75=_0x412fda;this[_0x593a75(0x297)](_0x193cc9[_0x593a75(0x2b4)]);}[_0x412fda(0x3da)](_0x1435da){const _0x4e197c=_0x412fda;localStorage[_0x4e197c(0x392)](Le,JSON['stringify'](_0x1435da));}[_0x412fda(0x3eb)](){const _0x3a3292=_0x412fda;this[_0x3a3292(0x326)]=window[_0x3a3292(0x37b)](()=>{const _0x2cea99=_0x3a3292;this[_0x2cea99(0x3da)]({'type':0x2,'memberID':this[_0x2cea99(0x3e5)]});},Pe);}['_ensureSubject'](_0x48bad0){const _0x418651=_0x412fda;return this[_0x418651(0x35b)]['has'](_0x48bad0)||this[_0x418651(0x35b)][_0x418651(0x207)](_0x48bad0,new d[(_0x418651(0x1df))](u[_0x418651(0x3b6)]['NO_OTHER_CLIENTS_EDITING'])),this[_0x418651(0x35b)][_0x418651(0x404)](_0x48bad0);}}var ke=(_0x51b605=>(_0x51b605[_0x51b605['UNDEFINED']=0x0]=_0x412fda(0x287),_0x51b605[_0x51b605['OK']=0x1]='OK',_0x51b605[_0x51b605[_0x412fda(0x328)]=0x2]=_0x412fda(0x328),_0x51b605[_0x51b605[_0x412fda(0x256)]=0x3]=_0x412fda(0x256),_0x51b605[_0x51b605['NOT_FOUND']=0x4]=_0x412fda(0x251),_0x51b605[_0x51b605[_0x412fda(0x22b)]=0x5]='UNAUTHENTICATED',_0x51b605[_0x51b605['ALREADY_EXISTS']=0x6]=_0x412fda(0x2e7),_0x51b605[_0x51b605[_0x412fda(0x2c7)]=0x7]=_0x412fda(0x2c7),_0x51b605[_0x51b605[_0x412fda(0x311)]=0x8]='TOO_MANY_REQUESTS',_0x51b605[_0x51b605[_0x412fda(0x3e6)]=0x9]='COMPLETION_FINISHED',_0x51b605[_0x51b605[_0x412fda(0x293)]=0xa]='LOGIN_FAILED',_0x51b605[_0x51b605[_0x412fda(0x3a4)]=0x1389]=_0x412fda(0x3a4),_0x51b605[_0x51b605[_0x412fda(0x28e)]=0x1771]=_0x412fda(0x28e),_0x51b605[_0x51b605[_0x412fda(0x249)]=0x1772]=_0x412fda(0x249),_0x51b605[_0x51b605[_0x412fda(0x1e3)]=0x1773]=_0x412fda(0x1e3),_0x51b605[_0x51b605[_0x412fda(0x1e7)]=0x1b59]=_0x412fda(0x1e7),_0x51b605[_0x51b605[_0x412fda(0x20c)]=0x1b5a]='APPLY_NON_SEQUENTIAL_REVISION',_0x51b605[_0x51b605['APPLY_REVISION_CONFILICT']=0x1b5b]=_0x412fda(0x43d),_0x51b605[_0x51b605['APPLY_PERMISSION_DENIED']=0x1b5c]=_0x412fda(0x3bb),_0x51b605[_0x51b605[_0x412fda(0x210)]=0x1b5d]=_0x412fda(0x210),_0x51b605[_0x51b605[_0x412fda(0x2b9)]=0x1f41]=_0x412fda(0x2b9),_0x51b605[_0x51b605[_0x412fda(0x358)]=0x2329]=_0x412fda(0x358),_0x51b605[_0x51b605['LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED']=0x232a]=_0x412fda(0x1c4),_0x51b605[_0x51b605[_0x412fda(0x31c)]=0x232b]=_0x412fda(0x31c),_0x51b605[_0x51b605[_0x412fda(0x341)]=0x232c]=_0x412fda(0x341),_0x51b605[_0x51b605[_0x412fda(0x26d)]=0x232d]=_0x412fda(0x26d),_0x51b605[_0x51b605['YUUMI_UNABLE_LOAD_URL']=0x2711]=_0x412fda(0x28b),_0x51b605[_0x51b605[_0x412fda(0x28c)]=0x2712]=_0x412fda(0x28c),_0x51b605[_0x51b605[_0x412fda(0x3d1)]=0x2713]=_0x412fda(0x3d1),_0x51b605[_0x51b605[_0x412fda(0x350)]=0x2714]='YUUMI_SUBSCRIPTION_NOT_FOUND',_0x51b605[_0x51b605['PY_RUNTIME_SCRIPT_ERROR']=0x2af9]=_0x412fda(0x223),_0x51b605[_0x51b605[_0x412fda(0x1e1)]=0x2ee1]='INVITE_CODE_HAS_BEEN_UES',_0x51b605[_0x51b605['INVALID_INVITE_CODE']=0x2ee2]=_0x412fda(0x393),_0x51b605[_0x51b605[_0x412fda(0x1f2)]=0x2ee3]='INVITE_CODE_REQUIRED',_0x51b605[_0x51b605[_0x412fda(0x232)]=0x2ee4]=_0x412fda(0x232),_0x51b605[_0x51b605[_0x412fda(0x1cd)]=0x2ee5]=_0x412fda(0x1cd),_0x51b605[_0x51b605[_0x412fda(0x396)]=0x32c9]='WECHAT_HAS_BEEN_BOUND',_0x51b605[_0x51b605[_0x412fda(0x3a3)]=0x32ca]=_0x412fda(0x3a3),_0x51b605[_0x51b605[_0x412fda(0x301)]=0x32cb]=_0x412fda(0x301),_0x51b605[_0x51b605[_0x412fda(0x418)]=-0x1]='UNRECOGNIZED',_0x51b605))(ke||{}),_s=Object[_0x412fda(0x26e)],hs=(_0x5cbc7c,_0xa229c1,_0x2e7aaa,_0x5f3501)=>{const _0x1b5307=_0x412fda;for(var _0x530496=_0x5f3501>0x1?void 0x0:_0x5f3501?_s(_0xa229c1,_0x2e7aaa):_0xa229c1,_0x5be600=_0x5cbc7c[_0x1b5307(0x409)]-0x1,_0x3c2a70;_0x5be600>=0x0;_0x5be600--)(_0x3c2a70=_0x5cbc7c[_0x5be600])&&(_0x530496=_0x3c2a70(_0x530496)||_0x530496);return _0x530496;},de=(_0x3a02da,_0x1d75f9)=>(_0x384138,_0x59be8b)=>_0x1d75f9(_0x384138,_0x59be8b,_0x3a02da);exports[_0x412fda(0x3f1)]=class extends a[_0x412fda(0x439)]{constructor(_0x513439,_0x4e102d,_0x226969){const _0x18061a=_0x412fda;super(),this[_0x18061a(0x298)]=_0x513439,this[_0x18061a(0x1e6)]=_0x4e102d,this['_configService']=_0x226969;}async[_0x412fda(0x3ea)](_0x1b97d2,_0x2ac827,_0x1c035c,..._0x3d380f){const _0xbb18ed=_0x412fda;var _0x1df5a8,_0x236836,_0x5fa405,_0x4a39ee;const _0x65e832=this[_0xbb18ed(0x298)][_0xbb18ed(0x38c)]();if(!_0x65e832)throw new Error('[RemoteUniscriptService]:\x20no\x20focused\x20unit');const _0x3c89a2=((_0x1df5a8=this[_0xbb18ed(0x40d)][_0xbb18ed(0x30a)](u[_0xbb18ed(0x3d8)]))!=null?_0x1df5a8:u['DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT'])+'/'+_0x1b97d2+_0xbb18ed(0x325)+_0x2ac827,_0x4b8d9d=new URL(window[_0xbb18ed(0x29c)][_0xbb18ed(0x2e5)]),_0x38931d={'scriptId':_0x1b97d2,'runId':(_0x236836=_0x4b8d9d[_0xbb18ed(0x1d6)][_0xbb18ed(0x404)]('runId'))!=null?_0x236836:'','function':_0x2ac827,'unitId':_0x65e832['getUnitId'](),'argsOfFunction':JSON[_0xbb18ed(0x345)](_0x3d380f),'invokeId':(_0x5fa405=_0x1c035c['invokeId'])!=null?_0x5fa405:'','executionId':(_0x4a39ee=_0x1c035c[_0xbb18ed(0x411)])!=null?_0x4a39ee:''};try{const _0x3e615e=await this[_0xbb18ed(0x1e6)][_0xbb18ed(0x35f)](_0x3c89a2,{'body':_0x38931d});return _0x3e615e[_0xbb18ed(0x262)][_0xbb18ed(0x264)]&&_0x3e615e[_0xbb18ed(0x262)][_0xbb18ed(0x264)][_0xbb18ed(0x1ff)]!==ke['OK']?'Failed':_0x3e615e[_0xbb18ed(0x262)][_0xbb18ed(0x1de)];}catch{return _0xbb18ed(0x370);}}},exports['RemoteUniscriptService']=hs([de(0x0,a['IUniverInstanceService']),de(0x1,a[_0x412fda(0x22a)](q[_0x412fda(0x34b)])),de(0x2,a['IConfigService'])],exports[_0x412fda(0x3f1)]),exports[_0x412fda(0x1e2)]=je,exports['IURLService']=Ee,exports['SheetCollabCursorShape']=Ae,exports['WebBrowserSingleActiveUnitService']=ls,exports[_0x412fda(0x30e)]=Be;
|
|
1
|
+
'use strict';const _0xa4f3b1=_0xc9b6;(function(_0x141c67,_0x53e0b3){const _0x449edf=_0xc9b6,_0x4da204=_0x141c67();while(!![]){try{const _0x1926c4=-parseInt(_0x449edf(0x19f))/0x1*(-parseInt(_0x449edf(0x1a2))/0x2)+parseInt(_0x449edf(0x207))/0x3+-parseInt(_0x449edf(0x2cf))/0x4*(-parseInt(_0x449edf(0x298))/0x5)+parseInt(_0x449edf(0x224))/0x6+-parseInt(_0x449edf(0x350))/0x7*(-parseInt(_0x449edf(0x276))/0x8)+parseInt(_0x449edf(0x1c4))/0x9+-parseInt(_0x449edf(0x1b2))/0xa;if(_0x1926c4===_0x53e0b3)break;else _0x4da204['push'](_0x4da204['shift']());}catch(_0x4568f3){_0x4da204['push'](_0x4da204['shift']());}}}(_0x66d2,0xcb4fa));var Xe=Object[_0xa4f3b1(0x24c)],Ge=(_0x43c544,_0x3c13dc,_0x16eef)=>_0x3c13dc in _0x43c544?Xe(_0x43c544,_0x3c13dc,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x16eef}):_0x43c544[_0x3c13dc]=_0x16eef,_=(_0xd48217,_0x752b85,_0x553534)=>Ge(_0xd48217,typeof _0x752b85!=_0xa4f3b1(0x1f9)?_0x752b85+'':_0x752b85,_0x553534);Object[_0xa4f3b1(0x24c)](exports,Symbol['toStringTag'],{'value':_0xa4f3b1(0x24f)});const u=require(_0xa4f3b1(0x282)),a=require(_0xa4f3b1(0x2ba)),p=require(_0xa4f3b1(0x401)),q=require(_0xa4f3b1(0x21d)),b=require('@univerjs/docs-ui'),qe=require('@univerjs/drawing'),d=require(_0xa4f3b1(0x1e5)),Y=require('@univerjs/docs'),m=require(_0xa4f3b1(0x2ec)),Te=require(_0xa4f3b1(0x244)),g=require(_0xa4f3b1(0x1fe)),$=require(_0xa4f3b1(0x1da)),G=require(_0xa4f3b1(0x2f3)),L=require(_0xa4f3b1(0x330)),R=require('@univerjs/ui'),T=require(_0xa4f3b1(0x379)),M=require('react'),Ke=require('@univerjs/rpc');var ze=Object[_0xa4f3b1(0x3f4)],Je=(_0x5046d4,_0x5f1546,_0x58b1d6,_0x18ec1f)=>{const _0x3ffc99=_0xa4f3b1;for(var _0x534801=_0x18ec1f>0x1?void 0x0:_0x18ec1f?ze(_0x5f1546,_0x58b1d6):_0x5f1546,_0x24cf09=_0x5046d4[_0x3ffc99(0x236)]-0x1,_0x1cde03;_0x24cf09>=0x0;_0x24cf09--)(_0x1cde03=_0x5046d4[_0x24cf09])&&(_0x534801=_0x1cde03(_0x534801)||_0x534801);return _0x534801;},Re=(_0x1b4340,_0x36bf59)=>(_0x755571,_0x26912c)=>_0x36bf59(_0x755571,_0x26912c,_0x1b4340);let fe=class extends a[_0xa4f3b1(0x31c)]{constructor(_0x416e6d,_0x4bea31){const _0x596ecb=_0xa4f3b1;super(),this[_0x596ecb(0x352)]=_0x416e6d,this[_0x596ecb(0x29d)]=_0x4bea31,this[_0x596ecb(0x254)]();}[_0xa4f3b1(0x254)](){const _0x43b5c1=_0xa4f3b1,_0x58e072=this;this[_0x43b5c1(0x3c2)](this['_docClipboardService']['addClipboardHook']({'onBeforePasteImage':async _0x5d9805=>{const _0x4e4286=_0x43b5c1,_0x56e8a4=await _0x58e072[_0x4e4286(0x29d)]['saveImage'](_0x5d9805);return _0x56e8a4?{'source':_0x56e8a4[_0x4e4286(0x318)],'imageSourceType':_0x56e8a4['imageSourceType']}:null;}}));}};fe=Je([Re(0x0,b[_0xa4f3b1(0x321)]),Re(0x1,qe[_0xa4f3b1(0x2c4)])],fe);const Oe=[_0xa4f3b1(0x1a5),_0xa4f3b1(0x370),_0xa4f3b1(0x1ea),_0xa4f3b1(0x2c8),_0xa4f3b1(0x1ef),_0xa4f3b1(0x3b1)];class Ce extends a[_0xa4f3b1(0x273)]{constructor(){const _0x1c6fba=_0xa4f3b1;super(...arguments),_(this,_0x1c6fba(0x1c6),new Map()),_(this,'_colorIndex',0x0);}['assignAColorForMemberID'](_0x40b34c){const _0xbfa062=_0xa4f3b1;if(this[_0xbfa062(0x1c6)][_0xbfa062(0x40e)](_0x40b34c))return this['_assignedColors']['get'](_0x40b34c);const _0x30efd3=Oe[this['_colorIndex']];return this[_0xbfa062(0x268)]=(this[_0xbfa062(0x268)]+0x1)%Oe[_0xbfa062(0x236)],this[_0xbfa062(0x1c6)][_0xbfa062(0x202)](_0x40b34c,_0x30efd3),_0x30efd3;}}function we(_0x44343a){const _0x4a7b66=_0xa4f3b1;let _0x89530f='';for(const _0x17fc37 of _0x44343a){const {startOffset:_0x169f38,endOffset:_0xfc8d36,isActive:_0x4c5055,rangeType:_0x192419,segmentId:_0x597bcd,segmentPage:_0x3286a9}=_0x17fc37;_0x89530f[_0x4a7b66(0x236)]&&(_0x89530f+=','),_0x89530f+=_0x169f38+':'+_0xfc8d36+':'+(_0x4c5055?'1':'0')+':'+_0x192419+':'+_0x597bcd+':'+_0x3286a9;}return _0x89530f;}function Ze(_0xac2650){const _0x2a20d3=_0xa4f3b1,_0x27a02e=_0xac2650[_0x2a20d3(0x25b)](','),_0x30ea38=[];for(const _0x568fbb of _0x27a02e){const [_0x234c7e,_0x33eacb,_0x4e6420,_0x385a86,_0x340437,_0x370b56]=_0x568fbb[_0x2a20d3(0x25b)](':');_0x30ea38[_0x2a20d3(0x2d7)]({'startOffset':Number(_0x234c7e),'endOffset':Number(_0x33eacb),'collapsed':_0x234c7e===_0x33eacb,'isActive':_0x4e6420==='1','rangeType':_0x385a86===a[_0x2a20d3(0x410)]['TEXT']?a[_0x2a20d3(0x410)][_0x2a20d3(0x3dd)]:a['DOC_RANGE_TYPE'][_0x2a20d3(0x2dd)],'segmentId':typeof _0x340437==_0x2a20d3(0x28b)?String(_0x340437):'','segmentPage':Number(_0x370b56!=null?_0x370b56:-0x1)});}return _0x30ea38['some'](_0xb1fc5d=>_0xb1fc5d[_0x2a20d3(0x35b)])||(_0x30ea38[0x0][_0x2a20d3(0x35b)]=!0x0),_0x30ea38;}class pe extends a['RxDisposable']{constructor(){const _0x140bea=_0xa4f3b1;super(...arguments),_(this,'_collabCursorState$',new d[(_0x140bea(0x2a5))](null)),_(this,_0x140bea(0x23d),this[_0x140bea(0x323)][_0x140bea(0x413)]());}[_0xa4f3b1(0x40d)](_0x3f9956){const _0x421851=_0xa4f3b1,{unitID:_0x1bb202,memberID:_0x3d984d,textRanges:_0x383413}=_0x3f9956,_0x4cc637=we(_0x383413);if(_0x4cc637==='')return;const _0x482953={'unitID':_0x1bb202,'memberID':_0x3d984d,'selection':_0x4cc637};this[_0x421851(0x323)][_0x421851(0x21c)](_0x482953);}}var Qe=Object['getOwnPropertyDescriptor'],et=(_0x26e4a6,_0x250e9a,_0x2a53c6,_0x445654)=>{for(var _0x284dcd=_0x445654>0x1?void 0x0:_0x445654?Qe(_0x250e9a,_0x2a53c6):_0x250e9a,_0x1f5657=_0x26e4a6['length']-0x1,_0x142aba;_0x1f5657>=0x0;_0x1f5657--)(_0x142aba=_0x26e4a6[_0x1f5657])&&(_0x284dcd=_0x142aba(_0x284dcd)||_0x284dcd);return _0x284dcd;},P=(_0x2ada5c,_0x2fe8e6)=>(_0x272878,_0x42ff00)=>_0x2fe8e6(_0x272878,_0x42ff00,_0x2ada5c);const tt=0x12c,st=0x64;let Se=class extends a[_0xa4f3b1(0x31c)]{constructor(_0x2105a0,_0xcd4b30,_0x1d1c24,_0x289fe5,_0xe3d31b,_0x24a023,_0x31e983,_0x1b12bf,_0xc76267){const _0x438e52=_0xa4f3b1;super(),_(this,_0x438e52(0x325),!0x1),_(this,_0x438e52(0x254),!0x1),_(this,'_cursorInfo$',new d[(_0x438e52(0x2a5))](new Map())),_(this,_0x438e52(0x40b),this[_0x438e52(0x32d)][_0x438e52(0x413)]()),_(this,_0x438e52(0x328),new d[(_0x438e52(0x2a5))]([])),_(this,_0x438e52(0x27b),this['_roomMembers$'][_0x438e52(0x270)](d['debounceTime'](tt))),_(this,'_updateLocalCursor',a[_0x438e52(0x2cb)](_0x18fa35=>{const _0x427faa=_0x438e52,_0x5bca59={'eventID':m[_0x427faa(0x3c9)]['UPDATE_CURSOR'],'data':{'unitID':this['unitID'],'memberID':this[_0x427faa(0x3df)][_0x427faa(0x2e9)](),'selection':we(_0x18fa35)}};this[_0x427faa(0x3df)]['send'](_0x5bca59,this[_0x427faa(0x240)]);},st)),(this[_0x438e52(0x240)]=_0x2105a0,this[_0x438e52(0x3df)]=_0xcd4b30,this[_0x438e52(0x3f3)]=_0x1d1c24,this[_0x438e52(0x2b1)]=_0x289fe5,this[_0x438e52(0x34a)]=_0xe3d31b,this[_0x438e52(0x3e1)]=_0x24a023,this[_0x438e52(0x266)]=_0x31e983,this[_0x438e52(0x1e1)]=_0x1b12bf,this[_0x438e52(0x219)]=_0xc76267);}get[_0xa4f3b1(0x2e5)](){const _0x1b4729=_0xa4f3b1;return this[_0x1b4729(0x32d)][_0x1b4729(0x2fc)]();}get[_0xa4f3b1(0x40c)](){const _0x6e4272=_0xa4f3b1;return this['_roomMembers$'][_0x6e4272(0x2fc)]();}[_0xa4f3b1(0x3cc)](){const _0x17c985=_0xa4f3b1;super[_0x17c985(0x3cc)](),this[_0x17c985(0x32d)]['next'](new Map()),this[_0x17c985(0x32d)][_0x17c985(0x394)](),this[_0x17c985(0x328)][_0x17c985(0x21c)]([]),this[_0x17c985(0x328)][_0x17c985(0x394)]();}[_0xa4f3b1(0x204)](){const _0x5ecb39=_0xa4f3b1;this['_init']||(this[_0x5ecb39(0x254)]=!0x0,this[_0x5ecb39(0x3df)]['sessionStatus$'][_0x5ecb39(0x270)](d[_0x5ecb39(0x1b4)](this[_0x5ecb39(0x20e)]))['subscribe'](_0x27b8ac=>{const _0x253c08=_0x5ecb39;_0x27b8ac===u[_0x253c08(0x33e)][_0x253c08(0x2bf)]?this[_0x253c08(0x31d)]():this['_toggleOffline']();}),this[_0x5ecb39(0x3df)]['event$'][_0x5ecb39(0x270)](d[_0x5ecb39(0x1b4)](this['dispose$']))[_0x5ecb39(0x3f6)](_0x19d11d=>{const _0x453293=_0x5ecb39,_0x5bb508=_0x19d11d[_0x453293(0x33f)];_0x5bb508===m['CollaborationEvent']['UPDATE_CURSOR']&&this[_0x453293(0x1c1)](_0x19d11d),_0x5bb508===m[_0x453293(0x3c9)][_0x453293(0x310)]&&this[_0x453293(0x230)](_0x19d11d);}),this[_0x5ecb39(0x3c2)](this[_0x5ecb39(0x219)]['onCommandExecuted'](_0xf81ebf=>{const _0x450d82=_0x5ecb39,_0x234c2d=_0xf81ebf[_0x450d82(0x264)];_0x234c2d!=null&&this['_online']&&_0xf81ebf['id']===Y[_0x450d82(0x2ef)]['id']&&_0x234c2d['unitId']===this[_0x450d82(0x240)]&&_0x234c2d['isEditing']===!0x1&&_0x234c2d[_0x450d82(0x26c)][_0x450d82(0x236)]>0x0&&this[_0x450d82(0x234)](_0x234c2d[_0x450d82(0x26c)]);})),this['_syncEditingCollabCursorService']['collabCursorState$'][_0x5ecb39(0x270)](d[_0x5ecb39(0x1b4)](this[_0x5ecb39(0x20e)]))['subscribe'](_0x14cad1=>{const _0x76b146=_0x5ecb39;if((_0x14cad1==null?void 0x0:_0x14cad1['unitID'])!==this['unitID'])return;const _0x19c2dc={'eventID':m['CollaborationEvent'][_0x76b146(0x2d3)],'data':_0x14cad1};this[_0x76b146(0x1c1)](_0x19c2dc);}),this[_0x5ecb39(0x3c2)](this[_0x5ecb39(0x219)][_0x5ecb39(0x3d1)](_0x4307f1=>{const _0x3d5d44=_0x5ecb39;if(_0x4307f1[_0x3d5d44(0x264)]==null)return;const _0x58a364=_0x4307f1[_0x3d5d44(0x264)];if(_0x4307f1['id']!==Y[_0x3d5d44(0x302)]['id']||_0x58a364[_0x3d5d44(0x2be)]!==this[_0x3d5d44(0x240)])return;const _0x22db11={'id':_0x3d5d44(0x2ae),'params':_0x58a364},_0x1f0284=this[_0x3d5d44(0x2e5)];for(const [_0x2ab04d,_0x5bc224]of _0x1f0284){const _0x50d79d={'id':_0x3d5d44(0x2ae),'params':{'unitId':this[_0x3d5d44(0x240)],'actions':null,'textRanges':_0x5bc224['ranges']}},_0x471629=this['_transformService']['transformMutation'](_0x22db11,_0x50d79d,!0x1);if(m[_0x3d5d44(0x2eb)](_0x471629))throw _0x471629[_0x3d5d44(0x194)];_0x1f0284[_0x3d5d44(0x202)](_0x2ab04d,{..._0x5bc224,'ranges':_0x471629[_0x3d5d44(0x248)][_0x3d5d44(0x264)][_0x3d5d44(0x3b8)]});}queueMicrotask(()=>{const _0x49c060=_0x3d5d44;this[_0x49c060(0x32d)][_0x49c060(0x21c)](_0x1f0284);});})));}[_0xa4f3b1(0x1c1)](_0x174fe7){const _0x47aa5c=_0xa4f3b1;var _0x4332fa,_0x250eea;const {memberID:_0x16433d,selection:_0x2ff940}=_0x174fe7[_0x47aa5c(0x25d)],_0x5d2079=Ze(_0x2ff940),_0x5797eb=(_0x250eea=(_0x4332fa=this[_0x47aa5c(0x34a)]['getMember'](this[_0x47aa5c(0x240)],_0x16433d))==null?void 0x0:_0x4332fa[_0x47aa5c(0x35d)])!=null?_0x250eea:_0x47aa5c(0x21f),_0x2a4664={'color':this[_0x47aa5c(0x2b1)]['assignAColorForMemberID'](_0x16433d),'name':_0x5797eb,'ranges':_0x5d2079},_0x1dc0f2=this[_0x47aa5c(0x2e5)];_0x1dc0f2[_0x47aa5c(0x202)](_0x16433d,_0x2a4664),this[_0x47aa5c(0x32d)]['next'](_0x1dc0f2);}[_0xa4f3b1(0x230)](_0x3d5d21){const _0xaa4249=_0xa4f3b1,{memberID:_0x4b9339}=_0x3d5d21['data'],_0x5ef903=this['cursorInfo'];_0x5ef903[_0xaa4249(0x3d2)](_0x4b9339),this['_cursorInfo$']['next'](_0x5ef903);}[_0xa4f3b1(0x31d)](){const _0x3bc34c=_0xa4f3b1;var _0x3e5680;if(this[_0x3bc34c(0x325)]=!0x0,((_0x3e5680=this['_univerInstanceService'][_0x3bc34c(0x315)]())==null?void 0x0:_0x3e5680[_0x3bc34c(0x2a8)]())!==this[_0x3bc34c(0x240)])return;const _0x567523=this[_0x3bc34c(0x3f3)][_0x3bc34c(0x20d)](Y['DocSelectionManagerService'])[_0x3bc34c(0x3d8)]();Array[_0x3bc34c(0x1e6)](_0x567523)&&_0x567523['length']>0x0&&this[_0x3bc34c(0x234)](_0x567523);}[_0xa4f3b1(0x271)](){const _0x422879=_0xa4f3b1;this[_0x422879(0x325)]=!0x1;}};Se=et([P(0x2,a[_0xa4f3b1(0x3ee)](a[_0xa4f3b1(0x200)])),P(0x3,a[_0xa4f3b1(0x3ee)](Ce)),P(0x4,a[_0xa4f3b1(0x3ee)](u[_0xa4f3b1(0x36f)])),P(0x5,a[_0xa4f3b1(0x3ee)](pe)),P(0x6,m[_0xa4f3b1(0x2b9)]),P(0x7,a[_0xa4f3b1(0x22e)]),P(0x8,a[_0xa4f3b1(0x2da)])],Se);var nt=Object[_0xa4f3b1(0x3f4)],it=(_0x1b0d8e,_0x1304ec,_0x3a7579,_0x132ce1)=>{for(var _0x37ca29=_0x132ce1>0x1?void 0x0:_0x132ce1?nt(_0x1304ec,_0x3a7579):_0x1304ec,_0x3932dd=_0x1b0d8e['length']-0x1,_0x5d3f55;_0x3932dd>=0x0;_0x3932dd--)(_0x5d3f55=_0x1b0d8e[_0x3932dd])&&(_0x37ca29=_0x5d3f55(_0x37ca29)||_0x37ca29);return _0x37ca29;},A=(_0x5111d3,_0x100a12)=>(_0x963e5e,_0x597687)=>_0x100a12(_0x963e5e,_0x597687,_0x5111d3);const rt=0x12c,ot=0x64,at=()=>{let _0x3b1a95=[],_0x31eb1e=!0x1;return _0x7ac4e=>{_0x3b1a95['push'](_0x7ac4e),_0x31eb1e||(_0x31eb1e=!0x0,setTimeout(()=>{_0x3b1a95['forEach'](_0x30d565=>_0x30d565()),_0x3b1a95=[],_0x31eb1e=!0x1;}));};};let Ie=class extends a[_0xa4f3b1(0x31c)]{constructor(_0x3202b4,_0xc7d1ba,_0x4b5c45,_0x4a07ea,_0x58ef6f,_0x26adfd,_0x4e2da1,_0x2e46eb){const _0x1f3f69=_0xa4f3b1;super(),_(this,'_online',!0x1),_(this,'_init',!0x1),_(this,_0x1f3f69(0x32d),new d['BehaviorSubject'](new Map())),_(this,_0x1f3f69(0x40b),this[_0x1f3f69(0x32d)]['asObservable']()),_(this,_0x1f3f69(0x328),new d[(_0x1f3f69(0x2a5))]([])),_(this,_0x1f3f69(0x27b),this[_0x1f3f69(0x328)]['pipe'](d['debounceTime'](rt))),_(this,_0x1f3f69(0x234),a[_0x1f3f69(0x2cb)]((_0x5a3af6,_0x3e3cfd)=>{const _0x4959a3=_0x1f3f69,_0x39d926={'eventID':m[_0x4959a3(0x3c9)]['UPDATE_CURSOR'],'data':{'unitID':this[_0x4959a3(0x240)],'memberID':this[_0x4959a3(0x3df)][_0x4959a3(0x2e9)](),'selection':Te[_0x4959a3(0x402)](_0x5a3af6,_0x3e3cfd['range'])}};this['_session'][_0x4959a3(0x27e)](_0x39d926,this[_0x4959a3(0x240)]);},ot)),(this[_0x1f3f69(0x240)]=_0x3202b4,this[_0x1f3f69(0x3df)]=_0xc7d1ba,this['_injector']=_0x4b5c45,this[_0x1f3f69(0x2b1)]=_0x4a07ea,this['_memberService']=_0x58ef6f,this[_0x1f3f69(0x1e1)]=_0x26adfd,this[_0x1f3f69(0x219)]=_0x4e2da1,this[_0x1f3f69(0x23a)]=_0x2e46eb);}get['cursorInfo'](){const _0x262d9c=_0xa4f3b1;return this[_0x262d9c(0x32d)][_0x262d9c(0x2fc)]();}get[_0xa4f3b1(0x40c)](){const _0x40ee6d=_0xa4f3b1;return this[_0x40ee6d(0x328)][_0x40ee6d(0x2fc)]();}['dispose'](){const _0x4c9aa1=_0xa4f3b1;super['dispose'](),this[_0x4c9aa1(0x32d)]['next'](new Map()),this[_0x4c9aa1(0x32d)]['complete'](),this['_roomMembers$'][_0x4c9aa1(0x21c)]([]),this[_0x4c9aa1(0x328)][_0x4c9aa1(0x394)]();}['init'](){const _0x143332=_0xa4f3b1;this[_0x143332(0x254)]||(this[_0x143332(0x254)]=!0x0,this[_0x143332(0x3df)]['sessionStatus$'][_0x143332(0x270)](d[_0x143332(0x1b4)](this[_0x143332(0x20e)]))[_0x143332(0x3f6)](_0x2450a1=>{const _0x175bc1=_0x143332;_0x2450a1===u['SessionStatus'][_0x175bc1(0x2bf)]?this[_0x175bc1(0x31d)]():this[_0x175bc1(0x271)]();}),this['_session']['event$']['pipe'](d['takeUntil'](this['dispose$']))[_0x143332(0x3f6)](_0x55d28b=>{const _0x2ef605=_0x143332,_0x88624a=_0x55d28b[_0x2ef605(0x33f)];_0x88624a===m[_0x2ef605(0x3c9)][_0x2ef605(0x2d3)]&&this['_onCursorUpdate'](_0x55d28b),_0x88624a===m['CollaborationEvent'][_0x2ef605(0x310)]&&this[_0x2ef605(0x230)](_0x55d28b);}),this[_0x143332(0x2b6)](),this[_0x143332(0x3c2)](this['_commandService'][_0x143332(0x3d1)](_0x43df73=>{const _0x2ddfed=_0x143332;if(this[_0x2ddfed(0x325)]&&_0x43df73['id']===g[_0x2ddfed(0x2b4)]['id']&&_0x43df73['params'][_0x2ddfed(0x2be)]===this['unitID']){const _0x500854=_0x43df73[_0x2ddfed(0x264)];this[_0x2ddfed(0x234)](_0x500854[_0x2ddfed(0x1aa)],_0x500854[_0x2ddfed(0x3bb)][0x0]);}})));}[_0xa4f3b1(0x1c1)](_0x47f590){const _0x58d391=_0xa4f3b1;var _0x41e1d5,_0x5270f0;const {memberID:_0x3b1797,selection:_0x54386c}=_0x47f590[_0x58d391(0x25d)],{sheetName:_0x272b48,range:_0x14e643}=Te[_0x58d391(0x2ac)](_0x54386c),_0x54ae0a={'name':(_0x5270f0=(_0x41e1d5=this[_0x58d391(0x34a)][_0x58d391(0x2b8)](this[_0x58d391(0x240)],_0x3b1797))==null?void 0x0:_0x41e1d5[_0x58d391(0x35d)])!=null?_0x5270f0:_0x58d391(0x21f),'range':this['_getMergeRange'](_0x272b48,_0x14e643),'sheetID':_0x272b48,'color':this[_0x58d391(0x2b1)][_0x58d391(0x1c7)](_0x3b1797),'selection':_0x54386c},_0x2fe54d=this['cursorInfo'];_0x2fe54d[_0x58d391(0x202)](_0x3b1797,_0x54ae0a),this['_cursorInfo$']['next'](_0x2fe54d);}[_0xa4f3b1(0x230)](_0x345974){const _0xcca656=_0xa4f3b1,{memberID:_0x3a0774}=_0x345974[_0xcca656(0x25d)],_0x56f029=this[_0xcca656(0x2e5)];_0x56f029[_0xcca656(0x3d2)](_0x3a0774),this[_0xcca656(0x32d)][_0xcca656(0x21c)](_0x56f029);}['_getMergeRange'](_0x1bcfa9,_0x46210d){const _0x3b7664=_0xa4f3b1;var _0x3cd105,_0x280dbc;const _0x33f2d1=(_0x280dbc=(_0x3cd105=this['_univerInstanceService'][_0x3b7664(0x1bb)](this[_0x3b7664(0x240)]))==null?void 0x0:_0x3cd105[_0x3b7664(0x344)](_0x1bcfa9))==null?void 0x0:_0x280dbc[_0x3b7664(0x1f7)]();return(_0x33f2d1==null?void 0x0:_0x33f2d1[_0x3b7664(0x227)](_0x5c9c41=>a['Rectangle']['contains'](_0x5c9c41,_0x46210d)))||_0x46210d;}['_onRefRangeChange'](){const _0x5d2986=_0xa4f3b1,_0x5077d4=new a[(_0x5d2986(0x2e7))](),_0x365baa=at(),_0x238950=()=>{const _0x463511=_0x5d2986;_0x5077d4[_0x463511(0x3cc)]();const _0x544a82=(_0x3d2bc4,_0x45a7e2,_0x53c364,_0x8b6b4b)=>{const _0x346cec=_0x463511;let _0x5ae4c9=[];switch(_0x3d2bc4['id']){case g[_0x346cec(0x221)][_0x346cec(0x2cc)]:{_0x5ae4c9=g[_0x346cec(0x2f5)](_0x3d2bc4,_0x8b6b4b);break;}case g['EffectRefRangId'][_0x346cec(0x3a7)]:{_0x5ae4c9=g['handleDeleteRangeMoveUp'](_0x3d2bc4,_0x8b6b4b);break;}case g[_0x346cec(0x221)][_0x346cec(0x2ee)]:{_0x5ae4c9=g[_0x346cec(0x3ef)](_0x3d2bc4,_0x8b6b4b);break;}case g['EffectRefRangId'][_0x346cec(0x3eb)]:{_0x5ae4c9=g['handleInsertRangeMoveDown'](_0x3d2bc4,_0x8b6b4b);break;}case g['EffectRefRangId'][_0x346cec(0x30f)]:{_0x5ae4c9=g[_0x346cec(0x30c)](_0x3d2bc4,_0x8b6b4b);break;}case g[_0x346cec(0x221)][_0x346cec(0x289)]:{_0x5ae4c9=g[_0x346cec(0x35a)](_0x3d2bc4,_0x8b6b4b);break;}case g[_0x346cec(0x221)]['MoveRangeCommandId']:{_0x5ae4c9=g[_0x346cec(0x235)](_0x3d2bc4,_0x8b6b4b);break;}case g[_0x346cec(0x221)][_0x346cec(0x1fd)]:{_0x5ae4c9=g['handleIRemoveCol'](_0x3d2bc4,_0x8b6b4b);break;}case g[_0x346cec(0x221)][_0x346cec(0x295)]:{_0x5ae4c9=g[_0x346cec(0x3ce)](_0x3d2bc4,_0x8b6b4b);break;}}const _0x461463=g[_0x346cec(0x210)](_0x5ae4c9,_0x8b6b4b),_0x2fb267=this[_0x346cec(0x2e5)]['get'](_0x45a7e2);if(_0x2fb267&&_0x461463){const _0x2bd80e={..._0x2fb267,'range':_0x461463};this[_0x346cec(0x2e5)][_0x346cec(0x202)](_0x45a7e2,_0x2bd80e),_0x365baa(()=>{const _0x31470b=_0x346cec,_0x3300ac=this[_0x31470b(0x23a)][_0x31470b(0x2bb)](_0x461463,_0x4d97da=>(_0x3300ac['dispose'](),_0x544a82(_0x4d97da,_0x45a7e2,_0x53c364,_0x461463)));_0x5077d4['add'](_0x3300ac);});}return{'redos':[],'undos':[]};};this[_0x463511(0x2e5)][_0x463511(0x258)]((_0x9e728,_0x3b60bc)=>{const _0x202f8f=_0x463511,{range:_0x48cc1,sheetID:_0x468c25}=_0x9e728,_0x1da37e=this[_0x202f8f(0x23a)][_0x202f8f(0x2bb)](_0x48cc1,_0x291a06=>(_0x1da37e[_0x202f8f(0x3cc)](),_0x544a82(_0x291a06,_0x3b60bc,_0x468c25,_0x48cc1)));_0x5077d4[_0x202f8f(0x38e)](_0x1da37e);});};this[_0x5d2986(0x3c2)](a[_0x5d2986(0x3a1)](this[_0x5d2986(0x32d)][_0x5d2986(0x3f6)](()=>{_0x238950();})));}[_0xa4f3b1(0x31d)](){const _0xafaecd=_0xa4f3b1;var _0x2cdb8d,_0x33d31d;if(this['_online']=!0x0,((_0x2cdb8d=this['_univerInstanceService']['getFocusedUnit']())==null?void 0x0:_0x2cdb8d['getUnitId']())!==this[_0xafaecd(0x240)])return;const _0x2f7ff7=(_0x33d31d=this[_0xafaecd(0x3f3)][_0xafaecd(0x20d)](g[_0xafaecd(0x1b9)])[_0xafaecd(0x1e7)]())==null?void 0x0:_0x33d31d[0x0],_0x5e0e76=this[_0xafaecd(0x1e1)][_0xafaecd(0x256)](a['UniverInstanceType'][_0xafaecd(0x1db)])[_0xafaecd(0x29b)]();_0x2f7ff7&&_0x5e0e76&&this[_0xafaecd(0x234)](_0x5e0e76[_0xafaecd(0x252)](),_0x2f7ff7);}['_toggleOffline'](){const _0x204197=_0xa4f3b1;this[_0x204197(0x325)]=!0x1;}};Ie=it([A(0x2,a[_0xa4f3b1(0x3ee)](a[_0xa4f3b1(0x200)])),A(0x3,a['Inject'](Ce)),A(0x4,a[_0xa4f3b1(0x3ee)](u['MemberService'])),A(0x5,a[_0xa4f3b1(0x22e)]),A(0x6,a[_0xa4f3b1(0x2da)]),A(0x7,a[_0xa4f3b1(0x3ee)](g['RefRangeService']))],Ie);var ct=Object[_0xa4f3b1(0x3f4)],lt=(_0x39e78f,_0x4a3217,_0xc4e8c4,_0x4ed698)=>{for(var _0x27481d=_0x4ed698>0x1?void 0x0:_0x4ed698?ct(_0x4a3217,_0xc4e8c4):_0x4a3217,_0x2557b2=_0x39e78f['length']-0x1,_0x5f397f;_0x2557b2>=0x0;_0x2557b2--)(_0x5f397f=_0x39e78f[_0x2557b2])&&(_0x27481d=_0x5f397f(_0x27481d)||_0x27481d);return _0x27481d;},ie=(_0x4dc476,_0x2ae918)=>(_0x51b8dc,_0x4087ef)=>_0x2ae918(_0x51b8dc,_0x4087ef,_0x4dc476);let x=class extends a[_0xa4f3b1(0x31c)]{constructor(_0x5d7c89,_0xeb891f,_0x490982){const _0x9c2e16=_0xa4f3b1;super(),_(this,_0x9c2e16(0x267),new Map()),_(this,_0x9c2e16(0x380),new d[(_0x9c2e16(0x1e8))]()),(this['_univerInstanceService']=_0x5d7c89,this[_0x9c2e16(0x3f3)]=_0xeb891f,this['_collabSessionService']=_0x490982,this[_0x9c2e16(0x254)]());}[_0xa4f3b1(0x3cc)](){const _0x1b9088=_0xa4f3b1;super[_0x1b9088(0x3cc)](),this[_0x1b9088(0x380)][_0x1b9088(0x394)](),this['_entities'][_0x1b9088(0x258)](_0x357f69=>_0x357f69[_0x1b9088(0x3cc)]());}[_0xa4f3b1(0x369)](_0x4fc609){const _0x1d9005=_0xa4f3b1;return this[_0x1d9005(0x267)][_0x1d9005(0x40e)](_0x4fc609)?this[_0x1d9005(0x267)][_0x1d9005(0x20d)](_0x4fc609)['cursorInfo$']:this[_0x1d9005(0x380)][_0x1d9005(0x270)](d[_0x1d9005(0x303)](_0x1ec0d5=>_0x1ec0d5[_0x1d9005(0x240)]===_0x4fc609),d[_0x1d9005(0x2d6)](_0x5cd366=>_0x5cd366[_0x1d9005(0x40b)]));}[_0xa4f3b1(0x254)](){const _0x26fa24=_0xa4f3b1;this['_univerInstanceService'][_0x26fa24(0x2fb)](a[_0x26fa24(0x3da)][_0x26fa24(0x1db)])[_0x26fa24(0x270)](d[_0x26fa24(0x1b4)](this['dispose$']))[_0x26fa24(0x3f6)](async _0x2caaab=>{const _0x17de78=_0x26fa24,_0x1ddb45=_0x2caaab[_0x17de78(0x2a8)](),_0x5010ce=await this['_startSheetCollabCursor'](_0x1ddb45);this[_0x17de78(0x380)]['next'](_0x5010ce),this[_0x17de78(0x267)]['set'](_0x1ddb45,_0x5010ce);}),this['_univerInstanceService'][_0x26fa24(0x2fb)](a[_0x26fa24(0x3da)][_0x26fa24(0x33a)])[_0x26fa24(0x270)](d[_0x26fa24(0x1b4)](this[_0x26fa24(0x20e)]))[_0x26fa24(0x270)](d['filter'](_0x134a8f=>!_0x134a8f[_0x26fa24(0x2a8)]()[_0x26fa24(0x3d0)]('__')))[_0x26fa24(0x3f6)](async _0x294671=>{const _0x4091da=_0x26fa24,_0x2f9025=_0x294671[_0x4091da(0x2a8)](),_0x3085f0=await this['_startDocCollabCursor'](_0x2f9025);this['_entityInit$'][_0x4091da(0x21c)](_0x3085f0),this[_0x4091da(0x267)]['set'](_0x2f9025,_0x3085f0);}),d[_0x26fa24(0x300)](this[_0x26fa24(0x1e1)][_0x26fa24(0x2f2)](a[_0x26fa24(0x3da)][_0x26fa24(0x33a)]),this[_0x26fa24(0x1e1)]['getTypeOfUnitDisposed$'](a[_0x26fa24(0x3da)][_0x26fa24(0x1db)]))[_0x26fa24(0x270)](d[_0x26fa24(0x1b4)](this[_0x26fa24(0x20e)]))[_0x26fa24(0x3f6)](_0x30257a=>{const _0x473f13=_0x26fa24,_0x3af352=_0x30257a[_0x473f13(0x2a8)](),_0x34d485=this[_0x473f13(0x267)][_0x473f13(0x20d)](_0x3af352);_0x34d485&&(_0x34d485[_0x473f13(0x3cc)](),this[_0x473f13(0x267)][_0x473f13(0x3d2)](_0x3af352));});}async[_0xa4f3b1(0x34c)](_0x201587){const _0x2e301c=_0xa4f3b1,_0x44a361=await this[_0x2e301c(0x24b)][_0x2e301c(0x3e4)](_0x201587),_0x372707=this[_0x2e301c(0x3f3)][_0x2e301c(0x3c8)](Ie,_0x201587,_0x44a361);return _0x372707[_0x2e301c(0x204)](),_0x372707;}async['_startDocCollabCursor'](_0x1d3fef){const _0xa3a16e=_0xa4f3b1,_0x3e8240=await this[_0xa3a16e(0x24b)][_0xa3a16e(0x3e4)](_0x1d3fef),_0xd4e6f9=this[_0xa3a16e(0x3f3)][_0xa3a16e(0x3c8)](Se,_0x1d3fef,_0x3e8240);return _0xd4e6f9[_0xa3a16e(0x204)](),_0xd4e6f9;}};x=lt([ie(0x0,a[_0xa4f3b1(0x22e)]),ie(0x1,a[_0xa4f3b1(0x3ee)](a[_0xa4f3b1(0x200)])),ie(0x2,a[_0xa4f3b1(0x3ee)](u[_0xa4f3b1(0x278)]))],x);const K=0x14,De=0xc8,re=0x4,_t=0x5;function ht(_0x4d2f5f,_0x534760){const _0x33fdce=_0xa4f3b1;let {radius:_0x40d199,width:_0x3a58c9,height:_0x20f302}=_0x534760;_0x40d199=_0x40d199!=null?_0x40d199:0x0,_0x3a58c9=_0x3a58c9!=null?_0x3a58c9:0x1e,_0x20f302=_0x20f302!=null?_0x20f302:0x1e;let _0x1a394b=0x0,_0x111ca8=0x0,_0x225076=0x0;_0x1a394b=_0x111ca8=_0x225076=Math[_0x33fdce(0x3b0)](_0x40d199,_0x3a58c9/0x2,_0x20f302/0x2),_0x4d2f5f['beginPath'](),_0x4d2f5f[_0x33fdce(0x2c5)](_0x1a394b,0x0),_0x4d2f5f['lineTo'](_0x3a58c9-_0x111ca8,0x0),_0x4d2f5f[_0x33fdce(0x2c9)](_0x3a58c9-_0x111ca8,_0x111ca8,_0x111ca8,Math['PI']*0x3/0x2,0x0,!0x1),_0x4d2f5f[_0x33fdce(0x3ff)](_0x3a58c9,_0x20f302-_0x225076),_0x4d2f5f[_0x33fdce(0x2c9)](_0x3a58c9-_0x225076,_0x20f302-_0x225076,_0x225076,0x0,Math['PI']/0x2,!0x1),_0x4d2f5f[_0x33fdce(0x3ff)](0x0,_0x20f302),_0x4d2f5f[_0x33fdce(0x3ff)](0x0,_0x1a394b),_0x4d2f5f[_0x33fdce(0x2c9)](_0x1a394b,_0x1a394b,_0x1a394b,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x4d2f5f['closePath'](),_0x534760[_0x33fdce(0x1ac)]&&(_0x4d2f5f['save'](),_0x4d2f5f['fillStyle']=_0x534760['fill'],_0x534760[_0x33fdce(0x242)]===_0x33fdce(0x3ba)?_0x4d2f5f[_0x33fdce(0x1ac)](_0x33fdce(0x3ba)):_0x4d2f5f[_0x33fdce(0x1ac)](),_0x4d2f5f[_0x33fdce(0x373)]());}class te extends p[_0xa4f3b1(0x3a0)]{constructor(_0x248cfc,_0x53be61){const _0x39d247=_0xa4f3b1;super(_0x248cfc,_0x53be61),_(this,_0x39d247(0x2c0)),_(this,_0x39d247(0x2fd)),(this[_0x39d247(0x2c0)]=_0x53be61==null?void 0x0:_0x53be61[_0x39d247(0x2c0)],this[_0x39d247(0x2fd)]=_0x53be61==null?void 0x0:_0x53be61[_0x39d247(0x2fd)]);}static[_0xa4f3b1(0x2b5)](_0xa90947,_0x52af0e){const _0x34ff21=_0xa4f3b1,{text:_0xa71cbf,color:_0x2a020a}=_0x52af0e;_0xa90947[_0x34ff21(0x360)](),_0xa90947[_0x34ff21(0x19e)]='bold\x2013px\x20Source\x20Han\x20Sans\x20CN';const _0x321d04=_0xa90947[_0x34ff21(0x1c8)](_0xa71cbf)[_0x34ff21(0x341)],_0x1d6a33=Math['min'](_0x321d04+0x2*re,De);ht(_0xa90947,{'height':K,'radius':0x4,'width':_0x1d6a33,'fill':_0x2a020a}),_0xa90947['fillStyle']=_0x34ff21(0x354);const _0x414f26=re,_0x5c067f=K-_t,_0x50485f=De-0x2*re;if(_0x321d04>_0x50485f){let _0x228ba9='',_0x4505fa=0x0;for(const _0x39cb61 of _0xa71cbf){const _0x5ae1f3=_0xa90947['measureText'](_0x39cb61)['width'];if(_0x4505fa+_0x5ae1f3<=_0x50485f-_0xa90947[_0x34ff21(0x1c8)](_0x34ff21(0x2e2))['width'])_0x228ba9+=_0x39cb61,_0x4505fa+=_0x5ae1f3;else{_0x228ba9+=_0x34ff21(0x2e2);break;}}_0xa90947[_0x34ff21(0x1f1)](_0x228ba9,_0x414f26,_0x5c067f);}else _0xa90947['fillText'](_0xa71cbf,_0x414f26,_0x5c067f);_0xa90947[_0x34ff21(0x373)]();}[_0xa4f3b1(0x26a)](_0x2b3468){const _0x31c23e=_0xa4f3b1;te[_0x31c23e(0x2b5)](_0x2b3468,this);}}const oe=_0xa4f3b1(0x1c3),ut=_0xa4f3b1(0x1f0),dt=_0xa4f3b1(0x3d7),k=0x6,ft=1.5,ae=0x4,St=1.5,It=_0xa4f3b1(0x1f6);class Ue{constructor(_0x24c16d,_0x311439,_0x552ecb,_0x2b01e3){const _0x1e6fbd=_0xa4f3b1;_(this,_0x1e6fbd(0x1d1),[]),_(this,'_anchor',null),_(this,_0x1e6fbd(0x1dd),null),_(this,_0x1e6fbd(0x2c7),null),_(this,_0x1e6fbd(0x33b),null),_(this,'_eventUnsubscribe',null),(this[_0x1e6fbd(0x39e)]=_0x24c16d,this[_0x1e6fbd(0x2aa)]=_0x311439,this[_0x1e6fbd(0x396)]=_0x552ecb,this[_0x1e6fbd(0x3fa)]=_0x2b01e3,this[_0x1e6fbd(0x262)]());}set['_hover'](_0x1004a1){const _0x45927f=_0xa4f3b1;_0x1004a1?(this[_0x45927f(0x2c7)]&&this['_anchorDot'][_0x45927f(0x3aa)](),this[_0x45927f(0x1dd)]&&this[_0x45927f(0x1dd)][_0x45927f(0x1bf)]()):(this[_0x45927f(0x2c7)]&&this['_anchorDot'][_0x45927f(0x1bf)](),this[_0x45927f(0x1dd)]&&this[_0x45927f(0x1dd)][_0x45927f(0x3aa)]());}['dispose'](){const _0x477171=_0xa4f3b1;for(const _0x3433e5 of this[_0x477171(0x1d1)])_0x3433e5[_0x477171(0x3cc)]();this[_0x477171(0x1dd)]&&this[_0x477171(0x1dd)][_0x477171(0x3cc)](),this[_0x477171(0x2c7)]&&this[_0x477171(0x2c7)]['dispose'](),this['_anchor']&&this['_anchor']['dispose'](),this[_0x477171(0x1a6)]&&this[_0x477171(0x1a6)]();}[_0xa4f3b1(0x262)](){const _0x26a3b2=_0xa4f3b1;var _0x4e2491;const {_docSkeleton:_0x4bbc84,_document:_0x4cdeac}=this,{color:_0x385d78,name:_0x1e3761,ranges:_0x114a8b}=this['_cursor'],_0x4ab76c=_0x4cdeac[_0x26a3b2(0x287)](),{docsLeft:_0x1f419b,docsTop:_0x68689}=_0x4ab76c,_0x10091a=new b[(_0x26a3b2(0x257))](_0x4ab76c,_0x4bbc84);for(const {startOffset:_0x2e59a,endOffset:_0x2fe10f,rangeType:_0x51e38e,segmentId:_0x9db790,segmentPage:_0x3e9376,collapsed:_0xca33ec,isActive:_0x31fb79}of _0x114a8b){const _0x11b9c9=_0x4bbc84[_0x26a3b2(0x337)](_0x2e59a,!0x0,_0x9db790,_0x3e9376);let _0x488519=_0x4bbc84['findNodePositionByCharIndex'](_0x2fe10f,!0x0,_0x9db790,_0x3e9376);if(_0x488519==null&&(_0x488519=_0x4bbc84[_0x26a3b2(0x337)](_0x2fe10f-0x1,!0x1,_0x9db790,_0x3e9376)),_0x31fb79){const {contentBoxPointGroup:_0x208efe}=_0x10091a[_0x26a3b2(0x308)](_0x488519,_0x488519);if(_0x208efe[_0x26a3b2(0x236)]===0x0)continue;this[_0x26a3b2(0x313)](_0x385d78,_0x208efe,_0x1f419b,_0x68689,_0x1e3761),this['_eventUnsubscribe']=this[_0x26a3b2(0x228)]();}if(_0x11b9c9&&_0x488519){if(_0x51e38e===a['DOC_RANGE_TYPE'][_0x26a3b2(0x2dd)]){const _0x4004e6=new b[(_0x26a3b2(0x37b))](_0x4ab76c,_0x4bbc84),{pointGroup:_0x17785d}=(_0x4e2491=_0x4004e6[_0x26a3b2(0x308)](_0x11b9c9,_0x488519))!=null?_0x4e2491:{};if(_0x17785d==null||_0x17785d[_0x26a3b2(0x236)]===0x0)continue;this[_0x26a3b2(0x1e2)](_0x385d78,_0x17785d,_0x1f419b,_0x68689);}else{if(!_0xca33ec){const {borderBoxPointGroup:_0x2f7beb}=_0x10091a[_0x26a3b2(0x308)](_0x11b9c9,_0x488519);if(_0x2f7beb['length']===0x0)continue;this['_drawTextRange'](_0x385d78,_0x2f7beb,_0x1f419b,_0x68689);}}}}}[_0xa4f3b1(0x313)](_0x200fc6,_0x381b4a,_0x2440c3,_0x37628e,_0x10ccb7){const _0x72c974=_0xa4f3b1,_0x42303b=this['_getAnchorBounding'](_0x381b4a),{left:_0x38433c,top:_0x16cf0c,height:_0x3b53b5}=_0x42303b,_0x130e0e=this[_0x72c974(0x23c)](),_0x55cca8=St/_0x130e0e,_0x21cc70=new p[(_0x72c974(0x277))](oe+a[_0x72c974(0x319)][_0x72c974(0x31a)](k),{'left':_0x38433c+_0x2440c3-_0x55cca8,'top':_0x16cf0c+_0x37628e,'height':_0x3b53b5,'width':ft,'fill':_0x200fc6||p[_0x72c974(0x39c)](a['COLORS'][_0x72c974(0x326)],0x0),'strokeWidth':_0x55cca8,'stroke':It,'evented':!0x0});this['_anchor']=_0x21cc70,this['_scene'][_0x72c974(0x1fa)](_0x21cc70,b[_0x72c974(0x1b3)]);const _0x50d82f=new p['Rect'](oe+a[_0x72c974(0x319)]['generateRandomId'](k),{'left':_0x38433c+_0x2440c3-_0x55cca8,'top':_0x16cf0c+_0x37628e-ae/0x2,'height':ae,'width':ae,'fill':_0x200fc6||p[_0x72c974(0x39c)](a[_0x72c974(0x265)][_0x72c974(0x326)],0x0),'strokeWidth':0x0,'stroke':_0x200fc6||p['getColor'](a[_0x72c974(0x265)][_0x72c974(0x326)],0x0),'evented':!0x1});this['_anchorDot']=_0x50d82f,this[_0x72c974(0x2aa)][_0x72c974(0x1fa)](_0x50d82f,b[_0x72c974(0x1b3)]);const _0x3da693=new te(oe+a[_0x72c974(0x319)][_0x72c974(0x31a)](k),{'left':_0x38433c+_0x2440c3-_0x55cca8,'top':_0x16cf0c+_0x37628e-K,'text':_0x10ccb7,'color':_0x200fc6});this[_0x72c974(0x1dd)]=_0x3da693,this[_0x72c974(0x2aa)]['addObject'](_0x3da693,b['TEXT_RANGE_LAYER_INDEX']),this[_0x72c974(0x353)]=!0x1;}[_0xa4f3b1(0x228)](){const _0x935cf1=_0xa4f3b1,_0x552b3e=this[_0x935cf1(0x3d3)][_0x935cf1(0x3d6)][_0x935cf1(0x3ca)](()=>{const _0x504049=_0x935cf1;this[_0x504049(0x353)]=!0x0;}),_0x376a89=this[_0x935cf1(0x3d3)][_0x935cf1(0x1f4)][_0x935cf1(0x3ca)](()=>{const _0x5009ba=_0x935cf1;this[_0x5009ba(0x33b)]&&clearTimeout(this[_0x5009ba(0x33b)]),this[_0x5009ba(0x33b)]=setTimeout(()=>{const _0x4aeb77=_0x5009ba;this[_0x4aeb77(0x353)]=!0x1;},0x7d0);});return()=>{const _0x4d239c=_0x935cf1;_0x552b3e[_0x4d239c(0x20c)](),_0x376a89[_0x4d239c(0x20c)]();};}['_drawTextRange'](_0x1d2742,_0x3d3c84,_0x4a491b,_0x49c8e3){const _0x4821fb=_0xa4f3b1,_0xf327b4=new a['ColorKit'](_0x1d2742)[_0x4821fb(0x391)](0.2)[_0x4821fb(0x21e)](),_0x14fe54=new p['RegularPolygon'](ut+a[_0x4821fb(0x319)][_0x4821fb(0x31a)](k),{'pointsGroup':_0x3d3c84,'fill':_0xf327b4||p[_0x4821fb(0x39c)](a[_0x4821fb(0x265)][_0x4821fb(0x326)],0.2),'left':_0x4a491b,'top':_0x49c8e3,'evented':!0x1,'debounceParentDirty':!0x1});this['_shapes']['push'](_0x14fe54),this[_0x4821fb(0x2aa)][_0x4821fb(0x1fa)](_0x14fe54,b[_0x4821fb(0x1b3)]);}[_0xa4f3b1(0x1e2)](_0x3ca6a8,_0x3b8316,_0x205370,_0x3b17a2){const _0x289c83=_0xa4f3b1,_0x446bc6=new a[(_0x289c83(0x3e9))](_0x3ca6a8)[_0x289c83(0x391)](0.2)[_0x289c83(0x21e)](),_0x233f81=new p[(_0x289c83(0x29e))](dt+a[_0x289c83(0x319)][_0x289c83(0x31a)](k),{'pointsGroup':_0x3b8316,'fill':_0x446bc6||p[_0x289c83(0x39c)](a['COLORS'][_0x289c83(0x326)],0.2),'left':_0x205370,'top':_0x3b17a2,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x289c83(0x1d1)][_0x289c83(0x2d7)](_0x233f81),this[_0x289c83(0x2aa)][_0x289c83(0x1fa)](_0x233f81,b[_0x289c83(0x1b3)]);}[_0xa4f3b1(0x2ad)](_0xe24458){const _0x21c691=_0xe24458[0x0],_0x1eed3e=_0x21c691[0x0],_0x69e665=_0x21c691[0x2],{x:_0x550c4c,y:_0x3092ee}=_0x1eed3e,{x:_0x359fa1,y:_0x17ae7e}=_0x69e665;return{'left':_0x550c4c,'top':_0x3092ee,'width':_0x359fa1-_0x550c4c,'height':_0x17ae7e-_0x3092ee};}[_0xa4f3b1(0x23c)](){const _0x1fcd9b=_0xa4f3b1,{scaleX:_0x2bb69b,scaleY:_0x17094e}=this['_scene'][_0x1fcd9b(0x1bd)]();return Math['max'](_0x2bb69b,_0x17094e);}}var vt=Object[_0xa4f3b1(0x3f4)],gt=(_0x488019,_0x3fcd78,_0x45ac12,_0x4cabc8)=>{const _0x11c60f=_0xa4f3b1;for(var _0x4acd61=_0x4cabc8>0x1?void 0x0:_0x4cabc8?vt(_0x3fcd78,_0x45ac12):_0x3fcd78,_0x2e957f=_0x488019[_0x11c60f(0x236)]-0x1,_0x436a45;_0x2e957f>=0x0;_0x2e957f--)(_0x436a45=_0x488019[_0x2e957f])&&(_0x4acd61=_0x436a45(_0x4acd61)||_0x4acd61);return _0x4acd61;},V=(_0x38e05d,_0x1ba850)=>(_0x38e7c9,_0x2ee34b)=>_0x1ba850(_0x38e7c9,_0x2ee34b,_0x38e05d);let ve=class extends a[_0xa4f3b1(0x31c)]{constructor(_0x2b1082,_0x388c0e,_0x3f6d79,_0x5c7476,_0x10002d){const _0x1beb06=_0xa4f3b1;super(),_(this,'_cursorShapes',[]),_(this,_0x1beb06(0x2e4),[]),(this[_0x1beb06(0x3a5)]=_0x2b1082,this[_0x1beb06(0x3c5)]=_0x388c0e,this['_collabCursorController']=_0x3f6d79,this[_0x1beb06(0x219)]=_0x5c7476,this['_themeService']=_0x10002d,this[_0x1beb06(0x254)]());}[_0xa4f3b1(0x254)](){const _0x15d4c7=_0xa4f3b1,_0x3f8b63=this[_0x15d4c7(0x3a5)][_0x15d4c7(0x2be)],_0x10915d=this[_0x15d4c7(0x3c5)];this[_0x15d4c7(0x3c2)](d[_0x15d4c7(0x203)]([this[_0x15d4c7(0x2df)][_0x15d4c7(0x369)](_0x3f8b63),this[_0x15d4c7(0x331)]['currentTheme$']])[_0x15d4c7(0x270)]($[_0x15d4c7(0x2f1)](([_0x40a443,_0x3d4cc6])=>({'skeleton':_0x10915d[_0x15d4c7(0x196)](),'cursors':[..._0x40a443['values']()][_0x15d4c7(0x3e7)](_0x269378=>({..._0x269378,'color':_0x3d4cc6[_0x269378[_0x15d4c7(0x2c0)]]}))})))[_0x15d4c7(0x3f6)](_0x27c9ca=>{if(this['_removeCollabCursors'](),_0x27c9ca){const {skeleton:_0x595f8e,cursors:_0x2c719d}=_0x27c9ca;this['_updateCollabCursors'](_0x595f8e,_0x2c719d);}})),this[_0x15d4c7(0x3f1)](),this[_0x15d4c7(0x3ec)]();}[_0xa4f3b1(0x290)](_0x1a2e07,_0x2e3449){const _0x558b64=_0xa4f3b1,{scene:_0x26a942,mainComponent:_0x18ff66}=this['_context'],_0xdef154=_0x2e3449[_0x558b64(0x2f1)](_0x696f86=>new Ue(_0x696f86,_0x26a942,_0x1a2e07,_0x18ff66));this[_0x558b64(0x1d5)]=_0xdef154,this['_cursors']=_0x2e3449;}[_0xa4f3b1(0x3a9)](){const _0x547025=_0xa4f3b1;this[_0x547025(0x1a3)]();const {scene:_0x5d8acb,mainComponent:_0x35ace5}=this[_0x547025(0x3a5)],_0x2e7b68=this[_0x547025(0x3c5)][_0x547025(0x196)](),_0x22ae67=this[_0x547025(0x2e4)][_0x547025(0x2f1)](_0x2065d4=>new Ue(_0x2065d4,_0x5d8acb,_0x2e7b68,_0x35ace5));this[_0x547025(0x1d5)]=_0x22ae67;}[_0xa4f3b1(0x1a3)](){const _0xfd33d3=_0xa4f3b1;this[_0xfd33d3(0x1d5)]['forEach'](_0x380936=>_0x380936[_0xfd33d3(0x3cc)]()),this[_0xfd33d3(0x1d5)]=[];}[_0xa4f3b1(0x3ec)](){const _0x212919=_0xa4f3b1,_0x44ebd0=[b['SetDocZoomRatioOperation']['id']];this['disposeWithMe'](this[_0x212919(0x219)][_0x212919(0x3d1)](_0x160acb=>{const _0x3c172d=_0x212919;_0x44ebd0[_0x3c172d(0x38d)](_0x160acb['id'])&&_0x160acb[_0x3c172d(0x264)]['unitId']===this['_context'][_0x3c172d(0x2be)]&&this['_refreshCollabCursors']();}));}[_0xa4f3b1(0x3f1)](){const _0x66616=_0xa4f3b1;this[_0x66616(0x3c2)](a[_0x66616(0x208)](this[_0x66616(0x3a5)]['engine'][_0x66616(0x1af)])[_0x66616(0x270)]($[_0x66616(0x303)](_0x20496e=>_0x20496e[_0x66616(0x229)]===p[_0x66616(0x1ab)][_0x66616(0x1b0)]),$['throttleTime'](0x10))[_0x66616(0x3f6)](()=>{const _0x5f96bc=_0x66616;this[_0x5f96bc(0x3a9)]();}));}};ve=gt([V(0x1,a['Inject'](Y[_0xa4f3b1(0x1d4)])),V(0x2,a[_0xa4f3b1(0x3ee)](x)),V(0x3,a[_0xa4f3b1(0x2da)]),V(0x4,a[_0xa4f3b1(0x3ee)](a[_0xa4f3b1(0x291)]))],ve);const mt=0x1,Ct=1.5;class Ae extends p['Shape']{constructor(_0x35090a,_0x338bf2){const _0x5d3fea=_0xa4f3b1;super(_0x35090a,_0x338bf2),_(this,_0x5d3fea(0x24e)),_(this,_0x5d3fea(0x1e3),!0x1),_(this,_0x5d3fea(0x22f)),_(this,'_name',''),_(this,_0x5d3fea(0x362),_0x5d3fea(0x3b7)),_(this,_0x5d3fea(0x38a)),(_0x338bf2&&this['setShapeProps'](_0x338bf2),this['onPointerEnter$'][_0x5d3fea(0x3ca)](()=>this[_0x5d3fea(0x342)]({'hovered':!0x0})),this[_0x5d3fea(0x1f4)][_0x5d3fea(0x3ca)](()=>this['setShapeProps']({'hovered':!0x1})));}[_0xa4f3b1(0x342)](_0x5da040){const _0x257023=_0xa4f3b1;var _0x3294cf,_0x2f7b45,_0x2e4540,_0x3784cd,_0x4a278b,_0x424aed;this[_0x257023(0x24e)]=(_0x3294cf=_0x5da040[_0x257023(0x2c0)])!=null?_0x3294cf:this[_0x257023(0x24e)],this[_0x257023(0x1e3)]=(_0x2f7b45=_0x5da040['hovered'])!=null?_0x2f7b45:this[_0x257023(0x1e3)],this[_0x257023(0x22f)]=(_0x2e4540=_0x5da040[_0x257023(0x1ca)])!=null?_0x2e4540:this[_0x257023(0x22f)],this[_0x257023(0x405)]=(_0x3784cd=_0x5da040[_0x257023(0x35d)])!=null?_0x3784cd:this['_name'],this[_0x257023(0x362)]=(_0x4a278b=_0x5da040[_0x257023(0x3fe)])!=null?_0x4a278b:this[_0x257023(0x362)],this[_0x257023(0x38a)]=(_0x424aed=_0x5da040[_0x257023(0x3be)])!=null?_0x424aed:this[_0x257023(0x38a)],this[_0x257023(0x2a7)]({'width':_0x5da040[_0x257023(0x341)],'height':_0x5da040[_0x257023(0x29c)]});}[_0xa4f3b1(0x36e)](_0x2e8640){const _0x3eafb3=_0xa4f3b1,{row:_0x4fc1be,column:_0x1dbec9}=_0x2e8640;if(_0x4fc1be>=this[_0x3eafb3(0x22f)][_0x3eafb3(0x3b5)]&&_0x4fc1be<=this[_0x3eafb3(0x22f)]['endRow']&&_0x1dbec9>=this[_0x3eafb3(0x22f)][_0x3eafb3(0x20b)]&&_0x1dbec9<=this[_0x3eafb3(0x22f)]['endColumn']){this[_0x3eafb3(0x342)]({'hovered':!0x0});return;}this['setShapeProps']({'hovered':!0x1});}[_0xa4f3b1(0x368)](_0x17ad11){return!0x1;}[_0xa4f3b1(0x26a)](_0x4216af){const _0xeb07eb=_0xa4f3b1;p['Rect'][_0xeb07eb(0x2b5)](_0x4216af,{'width':this[_0xeb07eb(0x341)],'height':this['height'],'strokeWidth':Ct,'stroke':this[_0xeb07eb(0x24e)],'evented':!0x1,'fill':this[_0xeb07eb(0x38a)]}),this[_0xeb07eb(0x1e3)]&&(_0x4216af[_0xeb07eb(0x360)](),_0x4216af['transform'](0x1,0x0,0x0,0x1,this[_0xeb07eb(0x341)],this[_0xeb07eb(0x362)]===_0xeb07eb(0x1c9)?0x0:-0x14),te[_0xeb07eb(0x2b5)](_0x4216af,{'text':this['_name'],'color':this['_color']}),_0x4216af['restore']());}}var pt=Object['getOwnPropertyDescriptor'],bt=(_0x384e89,_0x11c4cd,_0x42afcc,_0x399e55)=>{const _0x51a645=_0xa4f3b1;for(var _0x4dd329=_0x399e55>0x1?void 0x0:_0x399e55?pt(_0x11c4cd,_0x42afcc):_0x11c4cd,_0x2a1f08=_0x384e89[_0x51a645(0x236)]-0x1,_0x349299;_0x2a1f08>=0x0;_0x2a1f08--)(_0x349299=_0x384e89[_0x2a1f08])&&(_0x4dd329=_0x349299(_0x4dd329)||_0x4dd329);return _0x4dd329;},ce=(_0x4fb963,_0x3d67f7)=>(_0x5ac7d1,_0x2e8f6f)=>_0x3d67f7(_0x5ac7d1,_0x2e8f6f,_0x4fb963);const Et=0x1389;let ge=class extends a['RxDisposable']{constructor(_0x3e880e,_0x17541d,_0x586c76,_0x24d2be){const _0x3ffe1=_0xa4f3b1;super(),_(this,_0x3ffe1(0x2e4),new Set()),_(this,_0x3ffe1(0x2de),null),(this[_0x3ffe1(0x3a5)]=_0x3e880e,this[_0x3ffe1(0x334)]=_0x17541d,this[_0x3ffe1(0x2df)]=_0x586c76,this[_0x3ffe1(0x331)]=_0x24d2be,this['_init']());}[_0xa4f3b1(0x254)](){const _0x5cd304=_0xa4f3b1;this[_0x5cd304(0x334)]['currentSkeleton$'][_0x5cd304(0x270)]($[_0x5cd304(0x1b4)](this[_0x5cd304(0x20e)]),$['switchMap'](_0x31a130=>{const _0x2e9c0b=_0x5cd304;if(_0x31a130){const _0x5617dd=_0x31a130[_0x2e9c0b(0x25a)];return d[_0x2e9c0b(0x203)](this[_0x2e9c0b(0x2df)][_0x2e9c0b(0x369)](this['_context'][_0x2e9c0b(0x2be)]),this[_0x2e9c0b(0x331)][_0x2e9c0b(0x2e3)])['pipe']($[_0x2e9c0b(0x2f1)](([_0x5496a3,_0x385950])=>{const _0x4a0ee3=_0x2e9c0b,_0xf4b020=new Map();return _0x5496a3[_0x4a0ee3(0x258)]((_0x4813f6,_0x3b1130)=>{const _0xf5fe77=_0x4a0ee3;if(_0x4813f6[_0xf5fe77(0x38f)]===_0x5617dd){const _0x38d5f1={..._0x4813f6};_0x38d5f1['color']=_0x385950[_0x4813f6['color']],_0xf4b020[_0xf5fe77(0x202)](_0x3b1130,_0x38d5f1);}}),{'skeleton':_0x31a130,'cursors':_0xf4b020};}));}return d['of']({'skeleton':null,'cursors':new Map()});}))[_0x5cd304(0x3f6)](({skeleton:_0xc49a09,cursors:_0x518eea})=>{const _0x130817=_0x5cd304;this[_0x130817(0x1a3)](),_0xc49a09&&this[_0x130817(0x290)](_0xc49a09,_0x518eea);}),this['_sheetSkeletonManagerService'][_0x5cd304(0x3b6)][_0x5cd304(0x3f6)](_0x30a8f2=>{const _0x462afc=_0x5cd304;if(_0x30a8f2==null)return;const {skeleton:_0x5a12ae}=_0x30a8f2,{scene:_0x4d798b}=this[_0x462afc(0x3a5)];_0x4d798b[_0x462afc(0x409)]['subscribeEvent'](a[_0x462afc(0x2cb)](_0x3b840a=>{const _0x264781=_0x462afc;var _0x579665,_0x1fc1f2;const {offsetX:_0x2c4e56,offsetY:_0x384bfc}=_0x3b840a,{x:_0x205541,y:_0x47a1d2}=_0x4d798b[_0x264781(0x37a)](p[_0x264781(0x2b0)][_0x264781(0x3e5)]([_0x2c4e56,_0x384bfc])),{scaleX:_0x16c65a,scaleY:_0x22732b}=_0x4d798b[_0x264781(0x1bd)](),_0xf48cee=_0x4d798b[_0x264781(0x32b)](p[_0x264781(0x2e8)]['VIEW_MAIN']),_0x1cc0d3=_0x4d798b[_0x264781(0x1c2)](p[_0x264781(0x2b0)][_0x264781(0x3e5)]([_0x205541,_0x47a1d2]),_0xf48cee),_0x55d49d=_0x5a12ae[_0x264781(0x231)](_0x2c4e56,_0x384bfc,_0x16c65a,_0x22732b,_0x1cc0d3);((_0x579665=this[_0x264781(0x2de)])==null?void 0x0:_0x579665[_0x264781(0x218)])===_0x55d49d[_0x264781(0x218)]&&((_0x1fc1f2=this['_lastPointer'])==null?void 0x0:_0x1fc1f2[_0x264781(0x281)])===_0x55d49d[_0x264781(0x281)]||this[_0x264781(0x2e4)][_0x264781(0x258)](_0x12af9c=>{const _0xc2619c=_0x264781;_0x12af9c[_0xc2619c(0x36e)](_0x55d49d);});},0x64));});}[_0xa4f3b1(0x290)](_0x3aa547,_0x2b7793){const _0x28e73f=_0xa4f3b1;var _0x5692cc;const _0x8249ce=(_0x5692cc=this[_0x28e73f(0x334)][_0x28e73f(0x39a)]())==null?void 0x0:_0x5692cc[_0x28e73f(0x305)];if(!_0x8249ce)return;const _0x21d0a1=this[_0x28e73f(0x33d)]();if(!_0x21d0a1)return;this['_cursors'][_0x28e73f(0x258)](_0x609ba=>{const _0x5c83e4=_0x28e73f;_0x609ba[_0x5c83e4(0x251)]();});const {scene:_0x4c774b}=_0x21d0a1,_0x363b55=Tt(Array[_0x28e73f(0x1fb)](_0x2b7793[_0x28e73f(0x243)]()))[_0x28e73f(0x2f1)](_0x5be699=>{const _0x50f8c8=_0x28e73f,{color:_0x44a73b,range:_0x3c4b91,name:_0x28d437,selection:_0x1693ad,sheetID:_0x2f8d11}=_0x5be699,{startColumn:_0x3f261c,startRow:_0xe3f6e8,endColumn:_0x350afb,endRow:_0x2e2bf7}=_0x3c4b91,_0xed14f2=G[_0x50f8c8(0x3a6)](_0xe3f6e8,_0x3f261c,_0x4c774b,_0x8249ce),_0x4c309d=G['getCoordByCell'](_0x2e2bf7,_0x350afb,_0x4c774b,_0x8249ce),{columnHeaderHeightAndMarginTop:_0x7a54f6}=_0x8249ce,{startX:_0x14e0bc,startY:_0x54f5be}=_0xed14f2,{endX:_0x5dbb98,endY:_0x2b658a}=_0x4c309d,_0x34349f=_0x5dbb98-_0x14e0bc,_0x57d6e0=_0x2b658a-_0x54f5be,_0x2f8d4c={'labelPosition':_0x54f5be-_0x7a54f6>=K?_0x50f8c8(0x3b7):'bottom','sheetID':_0x2f8d11,'range':_0x3c4b91,'color':_0x44a73b,'name':_0x28d437,'selection':_0x1693ad,'left':_0x14e0bc,'top':_0x54f5be,'width':_0x34349f,'height':_0x57d6e0,'evented':!0x1,'zIndex':Et};return new Ae(_0x28d437,_0x2f8d4c);});_0x4c774b[_0x28e73f(0x23f)](_0x363b55,mt),this[_0x28e73f(0x2e4)]=new Set(_0x363b55);}['_removeCollabCursors'](){const _0x3460f6=_0xa4f3b1;var _0x393b7b;(_0x393b7b=this[_0x3460f6(0x2e4)])==null||_0x393b7b[_0x3460f6(0x258)](_0x269547=>_0x269547[_0x3460f6(0x3cc)]());}[_0xa4f3b1(0x33d)](){const _0x481bc9=_0xa4f3b1;return G[_0x481bc9(0x3ae)](this[_0x481bc9(0x3a5)][_0x481bc9(0x206)],this[_0x481bc9(0x3a5)]);}};ge=bt([ce(0x1,a[_0xa4f3b1(0x3ee)](G[_0xa4f3b1(0x3ad)])),ce(0x2,a[_0xa4f3b1(0x3ee)](x)),ce(0x3,a[_0xa4f3b1(0x3ee)](a['ThemeService']))],ge);function Tt(_0x1e4938){const _0x3d1b12=_0xa4f3b1,_0x28e0ad=new Map();return _0x1e4938[_0x3d1b12(0x258)](_0x39999c=>{const _0x41ce13=_0x3d1b12;if(_0x28e0ad['has'](_0x39999c[_0x41ce13(0x33c)])){const _0x25ca8e=_0x28e0ad['get'](_0x39999c[_0x41ce13(0x33c)]);_0x25ca8e[_0x41ce13(0x35d)]+=',\x20'+_0x39999c[_0x41ce13(0x35d)];}else _0x28e0ad[_0x41ce13(0x202)](_0x39999c[_0x41ce13(0x33c)],_0x39999c);}),Array[_0x3d1b12(0x1fb)](_0x28e0ad[_0x3d1b12(0x243)]());}var E=function(){const _0x4da690=_0xa4f3b1;return E=Object[_0x4da690(0x36c)]||function(_0x17773d){const _0x44e0e5=_0x4da690;for(var _0x5d604b,_0x571ada=0x1,_0x57e8e9=arguments[_0x44e0e5(0x236)];_0x571ada<_0x57e8e9;_0x571ada++){_0x5d604b=arguments[_0x571ada];for(var _0x2a0841 in _0x5d604b)Object[_0x44e0e5(0x3ac)][_0x44e0e5(0x3cd)][_0x44e0e5(0x3b4)](_0x5d604b,_0x2a0841)&&(_0x17773d[_0x2a0841]=_0x5d604b[_0x2a0841]);}return _0x17773d;},E[_0x4da690(0x359)](this,arguments);},Rt=function(_0x297bf0,_0x1cd2db){const _0x4871c8=_0xa4f3b1;var _0x197193={};for(var _0x45fe4b in _0x297bf0)Object['prototype'][_0x4871c8(0x3cd)]['call'](_0x297bf0,_0x45fe4b)&&_0x1cd2db[_0x4871c8(0x3a8)](_0x45fe4b)<0x0&&(_0x197193[_0x45fe4b]=_0x297bf0[_0x45fe4b]);if(_0x297bf0!=null&&typeof Object[_0x4871c8(0x2b7)]=='function'){for(var _0x4b9e8a=0x0,_0x45fe4b=Object['getOwnPropertySymbols'](_0x297bf0);_0x4b9e8a<_0x45fe4b[_0x4871c8(0x236)];_0x4b9e8a++)_0x1cd2db['indexOf'](_0x45fe4b[_0x4b9e8a])<0x0&&Object[_0x4871c8(0x3ac)][_0x4871c8(0x343)]['call'](_0x297bf0,_0x45fe4b[_0x4b9e8a])&&(_0x197193[_0x45fe4b[_0x4b9e8a]]=_0x297bf0[_0x45fe4b[_0x4b9e8a]]);}return _0x197193;},be=M[_0xa4f3b1(0x1c5)](function(_0x20db86,_0x4c61e1){const _0x36ce26=_0xa4f3b1;var _0x275f82=_0x20db86['icon'],_0x2e60e9=_0x20db86['id'],_0x1b2303=_0x20db86[_0x36ce26(0x2d0)],_0xfcb710=_0x20db86[_0x36ce26(0x293)],_0x49b87c=Rt(_0x20db86,[_0x36ce26(0x383),'id',_0x36ce26(0x2d0),'extend']),_0x3fe636='univerjs-icon\x20univerjs-icon-'[_0x36ce26(0x39b)](_0x2e60e9,'\x20')['concat'](_0x1b2303||'')[_0x36ce26(0x195)](),_0x13dc76=M['useRef']('_'['concat'](Ut()));return ye(_0x275f82,''[_0x36ce26(0x39b)](_0x2e60e9),{'defIds':_0x275f82[_0x36ce26(0x26f)],'idSuffix':_0x13dc76[_0x36ce26(0x269)]},E({'ref':_0x4c61e1,'className':_0x3fe636},_0x49b87c),_0xfcb710);});function ye(_0x770733,_0x119cfc,_0x1b301f,_0x4d9b38,_0x2d9015){const _0xf8d8d8=_0xa4f3b1;return M[_0xf8d8d8(0x377)](_0x770733[_0xf8d8d8(0x25f)],E(E({'key':_0x119cfc},Ot(_0x770733,_0x1b301f,_0x2d9015)),_0x4d9b38),(Dt(_0x770733,_0x1b301f)['children']||[])[_0xf8d8d8(0x2f1)](function(_0x5c1389,_0x14f457){const _0x17a40d=_0xf8d8d8;return ye(_0x5c1389,''[_0x17a40d(0x39b)](_0x119cfc,'-')['concat'](_0x770733['tag'],'-')[_0x17a40d(0x39b)](_0x14f457),_0x1b301f,void 0x0,_0x2d9015);}));}function _0xc9b6(_0xa61474,_0x456ed2){const _0x66d27c=_0x66d2();return _0xc9b6=function(_0xc9b69e,_0x2adc9d){_0xc9b69e=_0xc9b69e-0x192;let _0x5d9577=_0x66d27c[_0xc9b69e];return _0x5d9577;},_0xc9b6(_0xa61474,_0x456ed2);}function Ot(_0x3fe7bf,_0x6d1423,_0x3bbada){const _0x132af7=_0xa4f3b1;var _0x3dded9=E({},_0x3fe7bf[_0x132af7(0x209)]);_0x3bbada!=null&&_0x3bbada[_0x132af7(0x20a)]&&_0x3dded9[_0x132af7(0x1ac)]===_0x132af7(0x20a)&&(_0x3dded9[_0x132af7(0x1ac)]=_0x3bbada[_0x132af7(0x20a)]),_0x3fe7bf[_0x132af7(0x25f)]===_0x132af7(0x381)&&_0x3dded9['id']&&(_0x3dded9['id']=_0x3dded9['id']+_0x6d1423[_0x132af7(0x2d8)]),Object[_0x132af7(0x1ce)](_0x3dded9)[_0x132af7(0x258)](function(_0x250f61){const _0x91966e=_0x132af7;var _0x30b2d2=_0x250f61[0x0],_0x153a6c=_0x250f61[0x1];_0x30b2d2===_0x91966e(0x381)&&typeof _0x153a6c==_0x91966e(0x28b)&&(_0x3dded9[_0x30b2d2]=_0x153a6c[_0x91966e(0x22b)](/url\(#(.*)\)/,'url(#$1'['concat'](_0x6d1423[_0x91966e(0x2d8)],')')));});var _0x1ec974=_0x6d1423[_0x132af7(0x26f)];return!_0x1ec974||_0x1ec974[_0x132af7(0x236)]===0x0||(_0x3fe7bf[_0x132af7(0x25f)]==='use'&&_0x3dded9[_0x132af7(0x263)]&&(_0x3dded9[_0x132af7(0x263)]=_0x3dded9[_0x132af7(0x263)]+_0x6d1423[_0x132af7(0x2d8)]),Object[_0x132af7(0x1ce)](_0x3dded9)[_0x132af7(0x258)](function(_0x6250b8){const _0x4647e1=_0x132af7;var _0x1125d7=_0x6250b8[0x0],_0x4b299d=_0x6250b8[0x1];typeof _0x4b299d==_0x4647e1(0x28b)&&(_0x3dded9[_0x1125d7]=_0x4b299d[_0x4647e1(0x22b)](/url\(#(.*)\)/,_0x4647e1(0x304)[_0x4647e1(0x39b)](_0x6d1423[_0x4647e1(0x2d8)],')')));})),_0x3dded9;}function Dt(_0x264088,_0x4161e2){const _0x444afd=_0xa4f3b1;var _0x5a89d8,_0x5ee61a=_0x4161e2['defIds'];return!_0x5ee61a||_0x5ee61a[_0x444afd(0x236)]===0x0?_0x264088:_0x264088[_0x444afd(0x25f)]==='defs'&&(!((_0x5a89d8=_0x264088['children'])===null||_0x5a89d8===void 0x0)&&_0x5a89d8['length'])?E(E({},_0x264088),{'children':_0x264088[_0x444afd(0x3c3)]['map'](function(_0x495dec){const _0xea0474=_0x444afd;return typeof _0x495dec[_0xea0474(0x209)]['id']==_0xea0474(0x28b)&&_0x5ee61a&&_0x5ee61a[_0xea0474(0x3a8)](_0x495dec[_0xea0474(0x209)]['id'])>-0x1?E(E({},_0x495dec),{'attrs':E(E({},_0x495dec[_0xea0474(0x209)]),{'id':_0x495dec[_0xea0474(0x209)]['id']+_0x4161e2[_0xea0474(0x2d8)]})}):_0x495dec;})}):_0x264088;}function Ut(){const _0x40eb61=_0xa4f3b1;return Math['random']()[_0x40eb61(0x365)](0x24)['substring'](0x2,0x8);}be[_0xa4f3b1(0x198)]='UniverIcon';var Nt={'tag':_0xa4f3b1(0x2cd),'attrs':{'fill':'none','viewBox':_0xa4f3b1(0x367),'width':_0xa4f3b1(0x346),'height':_0xa4f3b1(0x346)},'children':[{'tag':'g','attrs':{'clipPath':_0xa4f3b1(0x335)},'children':[{'tag':'path','attrs':{'stroke':'currentColor','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':_0xa4f3b1(0x306),'strokeWidth':1.2}}]},{'tag':_0xa4f3b1(0x2e0),'attrs':{},'children':[{'tag':'clipPath','attrs':{'id':_0xa4f3b1(0x1fc)},'children':[{'tag':_0xa4f3b1(0x211),'attrs':{'fill':_0xa4f3b1(0x316),'d':'M0\x200H16V16H0z'}}]}]}],'defIds':[_0xa4f3b1(0x1fc)]},$e=M['forwardRef'](function(_0x462564,_0x5a0142){const _0x58ace1=_0xa4f3b1;return M[_0x58ace1(0x377)](be,Object['assign']({},_0x462564,{'id':'off-line-single','ref':_0x5a0142,'icon':Nt}));});$e[_0xa4f3b1(0x198)]='OffLineSingle';var Mt={'tag':_0xa4f3b1(0x2cd),'attrs':{'fill':'none','viewBox':_0xa4f3b1(0x23e),'width':_0xa4f3b1(0x346),'height':_0xa4f3b1(0x346)},'children':[{'tag':'g','attrs':{'clipPath':'url(#on-line-single_clip0_910_349)'},'children':[{'tag':_0xa4f3b1(0x211),'attrs':{'stroke':'currentColor','d':'M4.5865\x2011.6499C3.36983\x2011.6499\x201.6665\x2011.1024\x201.6665\x208.9124C1.6665\x206.3574\x204.2215\x205.8099\x204.9515\x205.8099C5.3165\x204.5324\x206.0465\x202.5249\x208.9665\x202.5249C11.5215\x202.5249\x2012.6165\x203.9849\x2012.9815\x205.2624C12.9815\x205.2624\x2016.2665\x205.6274\x2016.2665\x208.7299C16.2665\x2010.9199\x2014.8065\x2011.6499\x2013.3465\x2011.6499M6.7767\x2011.6497L8.9667\x2013.4747L11.8867\x209.82466','strokeLinecap':_0xa4f3b1(0x306),'strokeLinejoin':_0xa4f3b1(0x306),'strokeWidth':1.2}}]},{'tag':_0xa4f3b1(0x2e0),'attrs':{},'children':[{'tag':_0xa4f3b1(0x3a2),'attrs':{'id':_0xa4f3b1(0x213)},'children':[{'tag':_0xa4f3b1(0x211),'attrs':{'fill':_0xa4f3b1(0x316),'d':_0xa4f3b1(0x2af),'transform':_0xa4f3b1(0x28e)}}]}]}],'defIds':[_0xa4f3b1(0x213)]},xe=M['forwardRef'](function(_0x14ea7f,_0x58cb1e){const _0x38fa49=_0xa4f3b1;return M[_0x38fa49(0x377)](be,Object[_0x38fa49(0x36c)]({},_0x14ea7f,{'id':_0x38fa49(0x3f8),'ref':_0x58cb1e,'icon':Mt}));});xe['displayName']=_0xa4f3b1(0x1a0);const Pt=_0xa4f3b1(0x2b3),Lt=_0xa4f3b1(0x329),wt=_0xa4f3b1(0x388),At='univer-online',yt=_0xa4f3b1(0x21b),H={'onlineStatusIcon':Pt,'onlineStatusTitle':Lt,'onlineStatus':wt,'online':At,'offline':yt};function $t(_0x5dda73){const _0x4af3dc=_0xa4f3b1;switch(_0x5dda73){case u[_0x4af3dc(0x238)][_0x4af3dc(0x39f)]:return _0x4af3dc(0x32a);case u[_0x4af3dc(0x238)][_0x4af3dc(0x389)]:return'collabStatus.conflict';case u[_0x4af3dc(0x238)]['FETCH_MISS']:return'collabStatus.fetchMiss';case u['CollaborationStatus'][_0x4af3dc(0x19a)]:return _0x4af3dc(0x237);case u['CollaborationStatus'][_0x4af3dc(0x340)]:case u[_0x4af3dc(0x238)][_0x4af3dc(0x34d)]:return'collabStatus.syncing';case u[_0x4af3dc(0x238)][_0x4af3dc(0x30e)]:case u[_0x4af3dc(0x238)][_0x4af3dc(0x35f)]:return _0x4af3dc(0x197);}}function je(_0xec7ea2){const _0x25bef3=_0xa4f3b1,{status$:_0x564811}=_0xec7ea2,_0x59998d=R[_0x25bef3(0x1a7)](_0x564811,u['CollaborationStatus'][_0x25bef3(0x19a)]),_0x1e0a79=R[_0x25bef3(0x332)](a['LocaleService']),_0x400b25=R[_0x25bef3(0x332)](u[_0x25bef3(0x278)]),_0x25ea6d=_0x59998d!==u[_0x25bef3(0x238)][_0x25bef3(0x39f)],_0x10fe0b=_0x1e0a79['t']($t(_0x59998d)),_0x194ed9=T['clsx'](H[_0x25bef3(0x2ed)],{[H[_0x25bef3(0x307)]]:_0x25ea6d,[H[_0x25bef3(0x26b)]]:!_0x25ea6d}),_0x49e6fc=_0x25ea6d?L[_0x25bef3(0x1f3)](xe,{}):L[_0x25bef3(0x1f3)]($e,{}),_0x359b60=M[_0x25bef3(0x1ec)](()=>{const _0x1a50d2=_0x25bef3;_0x25ea6d||_0x400b25[_0x1a50d2(0x2ca)]();},[_0x25ea6d,_0x400b25]);function _0x1bf3ad(){const _0x1f327c=_0x25bef3;return L[_0x1f327c(0x212)]('div',{'className':T[_0x1f327c(0x1d8)](_0x194ed9,_0x1f327c(0x36d)),'onClick':_0x359b60,'children':[L[_0x1f327c(0x1f3)](_0x1f327c(0x2a2),{'className':H['onlineStatusIcon'],'children':_0x49e6fc}),L[_0x1f327c(0x1f3)](_0x1f327c(0x2a2),{'className':H[_0x1f327c(0x378)],'children':_0x10fe0b})]});}return _0x25ea6d?_0x1bf3ad():L[_0x25bef3(0x1f3)](T['Tooltip'],{'title':_0x1e0a79['t'](_0x25bef3(0x27d)),'children':_0x1bf3ad()});}var xt=Object[_0xa4f3b1(0x3f4)],jt=(_0x848f50,_0x1adba8,_0x4a571b,_0x3532e3)=>{const _0x52e0c9=_0xa4f3b1;for(var _0x4fd459=_0x3532e3>0x1?void 0x0:_0x3532e3?xt(_0x1adba8,_0x4a571b):_0x1adba8,_0x5c6d6a=_0x848f50[_0x52e0c9(0x236)]-0x1,_0x5ad318;_0x5c6d6a>=0x0;_0x5c6d6a--)(_0x5ad318=_0x848f50[_0x5c6d6a])&&(_0x4fd459=_0x5ad318(_0x4fd459)||_0x4fd459);return _0x4fd459;},X=(_0x41e017,_0x1a94e7)=>(_0x114c66,_0x405917)=>_0x1a94e7(_0x114c66,_0x405917,_0x41e017);exports[_0xa4f3b1(0x3f0)]=class extends a['Disposable']{constructor(_0x4624aa,_0x2b4b85,_0x2444cd,_0x34e66f){const _0x23b3d4=_0xa4f3b1;super(),_(this,_0x23b3d4(0x1cf),new d[(_0x23b3d4(0x2a5))](u['CollaborationStatus'][_0x23b3d4(0x19a)])),(this[_0x23b3d4(0x1e1)]=_0x4624aa,this['_injector']=_0x2b4b85,this['_collaborationController']=_0x2444cd,this['_uiPartsService']=_0x34e66f,this[_0x23b3d4(0x22a)](),this[_0x23b3d4(0x371)]());}[_0xa4f3b1(0x371)](){const _0x5784d9=_0xa4f3b1;this[_0x5784d9(0x3c2)](this[_0x5784d9(0x1e1)][_0x5784d9(0x2a6)][_0x5784d9(0x270)](d['switchMap'](()=>{const _0x4659fc=_0x5784d9,_0x249e2b=this['_univerInstanceService'][_0x4659fc(0x315)]();return _0x249e2b?this['_collaborationController']['getCollabEntity$'](_0x249e2b[_0x4659fc(0x2a8)]()):d['of'](null);}),d[_0x5784d9(0x2d6)](_0x1e9e2b=>_0x1e9e2b?_0x1e9e2b[_0x5784d9(0x406)]:d['of'](u['CollaborationStatus'][_0x5784d9(0x19a)])))['subscribe'](_0x2c993b=>{const _0x2fee82=_0x5784d9;this[_0x2fee82(0x1cf)][_0x2fee82(0x21c)](_0x2c993b);}));}[_0xa4f3b1(0x22a)](){const _0x41ec07=_0xa4f3b1;this[_0x41ec07(0x3c2)](this[_0x41ec07(0x1f5)]['registerComponent'](R[_0x41ec07(0x30d)][_0x41ec07(0x2bd)],()=>R[_0x41ec07(0x1a1)](Bt({'status$':this[_0x41ec07(0x1cf)][_0x41ec07(0x413)]()}),this[_0x41ec07(0x3f3)])));}},exports[_0xa4f3b1(0x3f0)]=jt([X(0x0,a[_0xa4f3b1(0x22e)]),X(0x1,a[_0xa4f3b1(0x3ee)](a[_0xa4f3b1(0x200)])),X(0x2,a[_0xa4f3b1(0x3ee)](u[_0xa4f3b1(0x3fb)])),X(0x3,R['IUIPartsService'])],exports['DesktopCollaborationStatusDisplayController']);function Bt(_0x3d8849){const {status$:_0x21d57f}=_0x3d8849;return function(){const _0x16f85e=_0xc9b6;return L[_0x16f85e(0x1f3)](je,{'status$':_0x21d57f});};}var kt=Object[_0xa4f3b1(0x3f4)],Ht=(_0xb690bb,_0x8adae1,_0x2ae7a7,_0x186bff)=>{const _0xab3e18=_0xa4f3b1;for(var _0xdb4ced=_0x186bff>0x1?void 0x0:_0x186bff?kt(_0x8adae1,_0x2ae7a7):_0x8adae1,_0x17cd7c=_0xb690bb[_0xab3e18(0x236)]-0x1,_0x5bdf54;_0x17cd7c>=0x0;_0x17cd7c--)(_0x5bdf54=_0xb690bb[_0x17cd7c])&&(_0xdb4ced=_0x5bdf54(_0xdb4ced)||_0xdb4ced);return _0xdb4ced;},y=(_0x3b7fdc,_0x440303)=>(_0x5cd4fa,_0x3bccbb)=>_0x440303(_0x5cd4fa,_0x3bccbb,_0x3b7fdc);let z=class extends a[_0xa4f3b1(0x273)]{constructor(_0x53d1b4,_0x256d30,_0x3cc0ae,_0x545fde,_0x4ca24f,_0x868eb4){const _0x39247f=_0xa4f3b1;super(),this[_0x39247f(0x2d1)]=_0x53d1b4,this[_0x39247f(0x36b)]=_0x256d30,this['_collaborationUIEventService']=_0x3cc0ae,this[_0x39247f(0x3d5)]=_0x545fde,this[_0x39247f(0x2f7)]=_0x4ca24f,this[_0x39247f(0x390)]=_0x868eb4,this[_0x39247f(0x312)](),this[_0x39247f(0x19c)]();}[_0xa4f3b1(0x312)](){const _0xf7a7aa=_0xa4f3b1;this[_0xf7a7aa(0x3c2)](this[_0xf7a7aa(0x2d1)][_0xf7a7aa(0x35e)](()=>{const _0x4e31ae=_0xf7a7aa;if(this[_0x4e31ae(0x36b)]['saveTaskMap']['size'])return this[_0x4e31ae(0x390)]['t'](_0x4e31ae(0x2a1));}));}['_initEvent'](){const _0x572291=_0xa4f3b1;this[_0x572291(0x3c2)](this[_0x572291(0x214)][_0x572291(0x3b3)]['subscribe'](_0x2d2486=>{const _0x1cdb50=_0x572291;_0x2d2486['id']===u[_0x1cdb50(0x3bc)][_0x1cdb50(0x205)]&&this[_0x1cdb50(0x3d5)][_0x1cdb50(0x1bf)]({'type':T[_0x1cdb50(0x272)][_0x1cdb50(0x22d)],'content':this[_0x1cdb50(0x390)]['t'](_0x1cdb50(0x2c2))}),_0x2d2486['id']===u['CollaborationUIEventId'][_0x1cdb50(0x32c)]&&this['_messageService']['show']({'type':T[_0x1cdb50(0x272)][_0x1cdb50(0x22d)],'content':this[_0x1cdb50(0x390)]['t'](_0x1cdb50(0x1b1))}),_0x2d2486['id']===u[_0x1cdb50(0x3bc)][_0x1cdb50(0x216)]&&this[_0x1cdb50(0x2f7)][_0x1cdb50(0x1bf)]({'title':this['_localeService']['t']('permission.title'),'content':this['_localeService']['t']('permission.content'),'type':'error','duration':0x0}),_0x2d2486['id']===u[_0x1cdb50(0x3bc)][_0x1cdb50(0x389)]&&this[_0x1cdb50(0x3d5)][_0x1cdb50(0x1bf)]({'type':T['MessageType']['Error'],'content':this[_0x1cdb50(0x390)]['t'](_0x1cdb50(0x1b1))+'('+_0x2d2486[_0x1cdb50(0x25d)]+')'}),_0x2d2486['id']===u[_0x1cdb50(0x3bc)][_0x1cdb50(0x23b)]&&this[_0x1cdb50(0x3d5)][_0x1cdb50(0x1bf)]({'type':T['MessageType'][_0x1cdb50(0x22d)],'content':this[_0x1cdb50(0x390)]['t'](_0x2d2486[_0x1cdb50(0x25d)]||'')}),_0x2d2486['id']===u[_0x1cdb50(0x3bc)][_0x1cdb50(0x31e)]&&this[_0x1cdb50(0x3d5)][_0x1cdb50(0x1bf)]({'type':T[_0x1cdb50(0x272)]['Warning'],'content':this['_localeService']['t'](_0x1cdb50(0x299))}),_0x2d2486['id']===u['CollaborationUIEventId'][_0x1cdb50(0x393)]&&this['_messageService']['show']({'type':T[_0x1cdb50(0x272)]['Error'],'content':this[_0x1cdb50(0x390)]['t'](_0x1cdb50(0x382))}),_0x2d2486['id']===u[_0x1cdb50(0x3bc)]['SUBMIT_CHANGESET_TIMEOUT']&&this['_messageService'][_0x1cdb50(0x1bf)]({'type':T[_0x1cdb50(0x272)][_0x1cdb50(0x39d)],'content':this[_0x1cdb50(0x390)]['t'](_0x1cdb50(0x301))});}));}};z=Ht([y(0x0,R[_0xa4f3b1(0x311)]),y(0x1,u['ILocalCacheService']),y(0x2,a[_0xa4f3b1(0x3ee)](u[_0xa4f3b1(0x2f6)])),y(0x3,R[_0xa4f3b1(0x1d0)]),y(0x4,R[_0xa4f3b1(0x374)]),y(0x5,a[_0xa4f3b1(0x3ee)](a[_0xa4f3b1(0x2a4)]))],z);const Wt=_0xa4f3b1(0x28c),Ne={},Ee=a[_0xa4f3b1(0x3a4)]('uni.network.url-service');var Ft=Object['getOwnPropertyDescriptor'],Yt=(_0x298d61,_0x400599,_0xcf9aca,_0x37ed9e)=>{for(var _0x183fb3=_0x37ed9e>0x1?void 0x0:_0x37ed9e?Ft(_0x400599,_0xcf9aca):_0x400599,_0x4fe30e=_0x298d61['length']-0x1,_0x398606;_0x4fe30e>=0x0;_0x4fe30e--)(_0x398606=_0x298d61[_0x4fe30e])&&(_0x183fb3=_0x398606(_0x183fb3)||_0x183fb3);return _0x183fb3;},W=(_0x307e7b,_0x1c7909)=>(_0x3f23a9,_0x4a5751)=>_0x1c7909(_0x3f23a9,_0x4a5751,_0x307e7b);exports[_0xa4f3b1(0x404)]=class extends a[_0xa4f3b1(0x31c)]{constructor(_0x468a71,_0x3145ea,_0x25c029,_0x3f8d63,_0x1dd119){const _0x25edf0=_0xa4f3b1;super(),this[_0x25edf0(0x2ff)]=_0x468a71,this['_logService']=_0x3145ea,this['_commandService']=_0x25c029,this['_dataLoaderService']=_0x3f8d63,_0x1dd119?_0x1dd119==null||_0x1dd119['whenReady']()['then'](()=>this['_init']()):(this[_0x25edf0(0x19b)][_0x25edf0(0x1ff)](_0x25edf0(0x3f5),'No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.'),this['_init']());}async[_0xa4f3b1(0x254)](){const _0x44a62a=_0xa4f3b1,_0x40931=this['_urlService'][_0x44a62a(0x2a3)](_0x44a62a(0x206)),_0x382a00=this[_0x44a62a(0x2ff)][_0x44a62a(0x2a3)](_0x44a62a(0x229)),_0x452fb6=this[_0x44a62a(0x2ff)]['getParam']('subunit');if(!_0x40931||!_0x382a00){this['_logService'][_0x44a62a(0x1ff)](_0x44a62a(0x3f5),_0x44a62a(0x30a));return;}const _0x20d578=await this['_dataLoaderService'][_0x44a62a(0x372)](_0x40931,Number(_0x382a00),_0x452fb6);_0x20d578&&_0x20d578 instanceof a['Workbook']&&this[_0x44a62a(0x309)](_0x20d578);}async[_0xa4f3b1(0x309)](_0x548b20){const _0x2f834c=_0xa4f3b1;await this['_updateSubUnitFromURLParams'](_0x548b20),_0x548b20['activeSheet$'][_0x2f834c(0x270)](d[_0x2f834c(0x1b4)](this[_0x2f834c(0x20e)]))[_0x2f834c(0x3f6)](_0xf56d6d=>{const _0x3b626f=_0x2f834c;_0xf56d6d&&this[_0x3b626f(0x2fa)](_0xf56d6d);}),this[_0x2f834c(0x2ff)][_0x2f834c(0x327)]['pipe'](d[_0x2f834c(0x1b4)](this['dispose$']))['subscribe'](()=>this['_updateSubUnitFromURLParams'](_0x548b20));}[_0xa4f3b1(0x2fa)](_0x4d2eee,_0x13fcd8=!0x1){const _0x4632db=_0xa4f3b1,_0x348cb5=this[_0x4632db(0x2ff)]['getParam'](_0x4632db(0x1cd));_0x4d2eee[_0x4632db(0x252)]()!==_0x348cb5&&this['_urlService'][_0x4632db(0x3c6)]('subunit',_0x4d2eee[_0x4632db(0x252)](),_0x13fcd8);}async[_0xa4f3b1(0x280)](_0x428e3c){const _0x413025=_0xa4f3b1;var _0x2d9c8f;const _0x4ec933=this[_0x413025(0x2ff)]['getParam']('subunit');if(!_0x4ec933||!_0x428e3c[_0x413025(0x344)](_0x4ec933)){const _0x2ec17e=_0x428e3c[_0x413025(0x2c6)]()[0x0],_0x55fd6f=_0x428e3c[_0x413025(0x344)](_0x2ec17e);if(!_0x55fd6f)return;this[_0x413025(0x2fa)](_0x55fd6f,!0x0),await this[_0x413025(0x219)][_0x413025(0x1d6)](g[_0x413025(0x3c4)]['id'],{'unitId':_0x428e3c[_0x413025(0x2a8)](),'subUnitId':_0x2ec17e});return;}((_0x2d9c8f=_0x428e3c[_0x413025(0x29b)]())==null?void 0x0:_0x2d9c8f['getSheetId']())!==_0x4ec933&&await this[_0x413025(0x219)][_0x413025(0x1d6)](g[_0x413025(0x3c4)]['id'],{'unitId':_0x428e3c[_0x413025(0x2a8)](),'subUnitId':_0x4ec933});}},exports[_0xa4f3b1(0x404)]=Yt([W(0x0,Ee),W(0x1,a['ILogService']),W(0x2,a[_0xa4f3b1(0x2da)]),W(0x3,a[_0xa4f3b1(0x3ee)](u[_0xa4f3b1(0x226)])),W(0x4,a[_0xa4f3b1(0x2d9)](Ke[_0xa4f3b1(0x32f)]))],exports['CollaborationDataLoaderController']);var Vt=Object[_0xa4f3b1(0x3f4)],Xt=(_0x59bfb2,_0x3227df,_0xa482b1,_0x2580a6)=>{for(var _0xc60166=_0x2580a6>0x1?void 0x0:_0x2580a6?Vt(_0x3227df,_0xa482b1):_0x3227df,_0x33e5c9=_0x59bfb2['length']-0x1,_0x52dc7f;_0x33e5c9>=0x0;_0x33e5c9--)(_0x52dc7f=_0x59bfb2[_0x33e5c9])&&(_0xc60166=_0x52dc7f(_0xc60166)||_0xc60166);return _0xc60166;},le=(_0x4b9feb,_0x5abf05)=>(_0x5c7cd5,_0x858109)=>_0x5abf05(_0x5c7cd5,_0x858109,_0x4b9feb);let J=class{constructor(_0x5ddb66,_0x119f9d,_0x410c08){const _0x399add=_0xa4f3b1;this[_0x399add(0x3f3)]=_0x5ddb66,this[_0x399add(0x266)]=_0x119f9d,this[_0x399add(0x21a)]=_0x410c08;}['transformIMECache'](_0x4cd04a){const _0x3bcfac=_0xa4f3b1;this['_transformUndoRedoStack'](_0x4cd04a),this[_0x3bcfac(0x3f7)](_0x4cd04a);}['transformRemoteChangeset'](_0x3e79ae){const _0x99c64=_0xa4f3b1,{unitID:_0x4a3f4b}=_0x3e79ae,_0x52b1d7=this[_0x99c64(0x21a)][_0x99c64(0x34e)](_0x4a3f4b)[_0x99c64(0x2dc)](b[_0x99c64(0x40a)]),{redoCache:_0x18087f}=_0x52b1d7[_0x99c64(0x400)]();if(_0x18087f[_0x99c64(0x236)]===0x0)return _0x3e79ae;let _0xa6fe91=a[_0x99c64(0x319)]['deepClone'](_0x3e79ae[_0x99c64(0x3f2)][0x0]);for(let _0x523244=0x0;_0x523244<_0x18087f[_0x99c64(0x236)];_0x523244++){const _0x41c855={'id':_0x99c64(0x2ae),'params':{..._0x18087f[_0x523244]}},_0x5bcde9=this[_0x99c64(0x266)][_0x99c64(0x376)](_0xa6fe91,_0x41c855,!0x1);if(m['isTransformMutationFailure'](_0x5bcde9))throw _0x5bcde9[_0x99c64(0x194)];_0xa6fe91=_0x5bcde9[_0x99c64(0x375)];}return{...a[_0x99c64(0x319)][_0x99c64(0x1f8)](_0x3e79ae),'mutations':[_0xa6fe91]};}[_0xa4f3b1(0x37d)](_0x139b51){const _0x41fc3d=_0xa4f3b1,{unitID:_0x26964b}=_0x139b51,_0x21362f=this[_0x41fc3d(0x21a)][_0x41fc3d(0x34e)](_0x26964b)[_0x41fc3d(0x2dc)](b[_0x41fc3d(0x40a)]),{undoCache:_0x940d7b,redoCache:_0x53d9bc}=_0x21362f['getUndoRedoMutationParamsCache']();if(_0x940d7b['length']===0x0||_0x53d9bc[_0x41fc3d(0x236)]===0x0)return;const _0x5cff6f=[],_0x6f6823=[];let _0xb0f5c9=a['Tools'][_0x41fc3d(0x1f8)](_0x139b51[_0x41fc3d(0x3f2)][0x0]),_0x44cfc4=a[_0x41fc3d(0x319)][_0x41fc3d(0x1f8)](_0x139b51[_0x41fc3d(0x3f2)][0x0]);for(let _0xa50b8b=_0x940d7b[_0x41fc3d(0x236)]-0x1;_0xa50b8b>=0x0;_0xa50b8b--){const _0x58e630={'id':_0x41fc3d(0x2ae),'params':{..._0x940d7b[_0xa50b8b]}},_0x26043f={'id':_0x41fc3d(0x2ae),'params':{..._0x53d9bc[_0xa50b8b]}},_0x49e809=this[_0x41fc3d(0x266)][_0x41fc3d(0x376)](_0xb0f5c9,_0x58e630,!0x1),_0x1947a4=this[_0x41fc3d(0x266)]['transformMutation'](_0x44cfc4,_0x26043f,!0x1);if(m['isTransformMutationFailure'](_0x49e809))throw _0x49e809['error'];if(m[_0x41fc3d(0x2eb)](_0x1947a4))throw _0x1947a4[_0x41fc3d(0x194)];_0x5cff6f[_0x41fc3d(0x1dc)](_0x49e809[_0x41fc3d(0x248)]['params']),_0x6f6823[_0x41fc3d(0x1dc)](_0x1947a4[_0x41fc3d(0x248)][_0x41fc3d(0x264)]),_0xb0f5c9=_0x49e809[_0x41fc3d(0x375)],_0x44cfc4=_0x1947a4[_0x41fc3d(0x375)];}_0x21362f['setUndoRedoMutationParamsCache']({'undoCache':_0x5cff6f,'redoCache':_0x6f6823});}[_0xa4f3b1(0x3f7)](_0x291b96){const _0x3d379e=_0xa4f3b1,{unitID:_0x5ebefb}=_0x291b96,_0x142d6a=this['_renderManagerService'][_0x3d379e(0x34e)](_0x5ebefb)['with'](b[_0x3d379e(0x40a)]),_0xab50a6=_0x142d6a[_0x3d379e(0x34f)]();if(_0xab50a6==null)return;const _0x103410=[{'id':_0x3d379e(0x2ae),'params':{'unitId':_0x291b96[_0x3d379e(0x240)],'actions':null,'textRanges':[_0xab50a6]}}],_0x44c8c6=this['_transformService'][_0x3d379e(0x2e6)](_0x291b96,_0x103410);if(!m[_0x3d379e(0x292)](_0x44c8c6))throw _0x44c8c6['error'];const _0x14eed8=_0x44c8c6[_0x3d379e(0x248)][0x0][_0x3d379e(0x264)][_0x3d379e(0x3b8)];Array[_0x3d379e(0x1e6)](_0x14eed8)&&_0x14eed8[_0x3d379e(0x236)]&&_0x142d6a[_0x3d379e(0x223)](_0x14eed8[0x0]);}};function _0x66d2(){const _0x580434=['INTERNAL_ERROR','IRemoteInstanceService','react/jsx-runtime','_themeService','useDependency','getConfig','_sheetSkeletonManagerService','url(#off-line-single_clip0_910_343)','_registerDependencies','findNodePositionByCharIndex','getLocalCacheKey','LICENSE_IMPORT_SIZE_EXCEEDED','UNIVER_DOC','_hideTimer','selection','_getSheetObject','SessionStatus','eventID','AWAITING','width','setShapeProps','propertyIsEnumerable','getSheetBySheetId','_disabled','1em','CONNECTOR_DATA_TOO_LARGE','_getSessionTicket','setStateCache','_memberService','body','_startSheetCollabCursor','AWAITING_WITH_PENDING','getRenderById','getActiveRange','24983CnTsjO','loadOfflineData','_docClipboardService','_hover','#FFF','CommandType','clearInterval','createSocket','fromEvent','apply','handleInsertRow','isActive','_docSyncEditingCollabCursorService','name','registerBeforeClose','PENDING','save','_heartbeatTimer','_labelPosition','SNAPSHOT_INVALID_SNAPSHOT','UnitStatus','toString','DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT','0\x200\x2016\x2016','triggerDblclick','getCollabCursors$','_transformHistoryAndStateStack','_localCacheService','assign','univer-flex\x20univer-items-center','onMouseMove','MemberService','jiqing500','_initStatusListener','loadUnit','restore','INotificationService','m1Prime','transformMutation','createElement','onlineStatusTitle','@univerjs/design','getRelativeToViewportCoord','NodePositionConvertToRectRange','APPLY_NON_SEQUENTIAL_REVISION','_transformUndoRedoStack','onStarting','_doCreateSocket','_entityInit$','mask','session.connection-failed','icon','_removeClearOtherTimer','redoState','_send','BrowserCollaborationSocketService','univer-online-status','CONFLICT','_backgroundColor','_docTransformIMECacheService','EMAIL_HAS_BEEN_BOUND','includes','add','sheetID','_localeService','setAlpha','result','SOCKET_FAILED','complete','getItem','_docSkeleton','shareReplay','UniverCollaborationClientUIPlugin','RevisionService','getCurrent','concat','getColor','Error','_cursor','OFFLINE','Shape','toDisposable','clipPath','href','createIdentifier','_context','getCoordByCell','DeleteRangeMoveUpCommandId','indexOf','_refreshCollabCursors','hide','entityInit$','prototype','SheetSkeletonManagerService','getSheetObject','RemoteUniscriptService','min','gold400','HTTPService','event$','call','startRow','currentSkeleton$','top','textRanges','YUUMI_RATE_OVER_LIMIT','evenodd','selections','CollaborationUIEventId','transformSelections','backgroundColor','ILogService','getStateCache','_unitOnClients','disposeWithMe','children','SetWorksheetActivateCommand','_docSkeletonManagerService','setParam','_scheduleSaving','createInstance','CollaborationEvent','subscribeEvent','executionId','dispose','hasOwnProperty','handleIRemoveRow','NO_OTHER_CLIENTS_EDITING','startsWith','onCommandExecuted','delete','_anchor','IURLService','_messageService','onPointerEnter$','collab-rect-range-','getDocRanges','LICENSE_MAX_UNITS_EXCEEDED','UniverInstanceType','_revisionService','pluginName','TEXT','unload','_session','transformRemoteChangeset','_syncEditingCollabCursorService','_config','_saveCache','requireSession','FromArray','_id','flatMap','newValue','ColorKit','sessionTicket','InsertRangeMoveDownCommandId','_initCommandExecutedListener','storage','Inject','handleInsertCol','DesktopCollaborationStatusDisplayController','_initResize','mutations','_injector','getOwnPropertyDescriptor','[CollaborationDataLoaderController]','subscribe','_transformPreviousActiveRange','on-line-single','_cachedData','_document','CollaborationController','setInterval','_localStorageService','labelPosition','lineTo','getUndoRedoMutationParamsCache','@univerjs/engine-render','serializeRangeWithSheet','getUnitStatus$','CollaborationDataLoaderController','_name','status$','runId','location','onPointerMove$','DocIMEInputManagerService','cursorInfo$','roomMembers','syncEditingCollabCursor','has','PY_RUNTIME_SCRIPT_ERROR','DOC_RANGE_TYPE','setItem','OTHER_CLIENTS_EDITING','asObservable','_handleHeartbeatEvent','CHANGESET_REVISION_CONFILICT','error','trim','getSkeleton','collabStatus.synced','displayName','_clearOtherTimers','NOT_COLLAB','_logService','_initEvent','runOnServer','font','7rqPRSJ','OnLineSingle','connectInjector','288562RmnjQZ','_removeCollabCursors','[RemoteUniscriptService]:\x20no\x20focused\x20unit','purple300','_eventUnsubscribe','useObservable','post','_initEntityListener','subUnitId','TRANSFORM_CHANGE_OBSERVABLE_TYPE','fill','ILocalStorageService','stringify','onTransformChange$','resize','collaboration.closeRoom','57167280EOOKaP','TEXT_RANGE_LAYER_INDEX','takeUntil','APPLY_REVISION_CONFILICT','application/json','YUUMI_UNABLE_LOAD_URL','ISocketService','SheetsSelectionsService','_selfUnitIDs','getUniverSheetInstance','DEFAULT_WS_SESSION_TICKET_URL','getAncestorScale','updateOfflineData','show','editingUnit','_onCursorUpdate','getVpScrollXYInfoByPosToVp','collab-text-anchor-','13494393vGccJV','forwardRef','_assignedColors','assignAColorForMemberID','measureText','bottom','range','setConfig','disposeUnit','subunit','entries','_status$','IMessageService','_shapes','override','registerDependencies','DocSkeletonManagerService','_cursorShapes','executeCommand','MOBILE_HAS_BEEN_BOUND','clsx','transformIMECache','rxjs/operators','UNIVER_SHEET','unshift','_textBubble','YUUMI_URL_COL_OUT_OF_RANGE','ticket','_docTransformSelectionsService','_univerInstanceService','_drawRectRange','_hovered','INVITE_CODE_HAS_BEEN_UES','rxjs','isArray','getCurrentSelections','Subject','INVALID_INVITE_CODE','verdancy600','TOO_MANY_REQUESTS','useCallback','Failed','DocSelectionManagerService','blue400','collab-text-range-','fillText','ALREADY_EXISTS','jsx','onPointerLeave$','_uiPartsService','rgba(255,\x20255,\x20255,\x200.01)','getMergeData','deepClone','symbol','addObject','from','off-line-single_clip0_910_343','RemoveColCommandId','@univerjs/sheets','debug','Injector','NOT_FOUND','set','combineLatest','init','OTHER_CLIENT_EDITING','unit','4230528ZTSiWM','fromEventSubject','attrs','colorChannel1','startColumn','unsubscribe','get','dispose$','mapTo','runRefRangeMutations','path','jsxs','on-line-single_clip0_910_349','_collaborationUIEventService','code','PERMISSION_DENIED','clearTimeout','column','_commandService','_renderManagerService','univer-offline','next','@univerjs/network','toRgbString','Unknown\x20user','_collaborationController','EffectRefRangId','UniverCollaborationClientPlugin','setActiveRange','98922UrAwwL','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','DataLoaderService','find','_handleHover','type','_initStatusComponent','replace','pushState','Warning','IUniverInstanceService','_range','_onCursorDelete','getCellPositionByOffset','_handleJoinEvent','DocCollaborationEntity','_updateLocalCursor','handleMoveRange','length','collabStatus.notCollab','CollaborationStatus','then','_refRangeService','JOIN_ROOM_FAILED','_getScale','collabCursorState$','0\x200\x2017\x2016','addObjects','unitID','REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY','fillRule','values','@univerjs/engine-formula','_scheduleClearOtherTimer','WebURLService','touchDependencies','m2Prime','_initDependencies','UNIVER_COLLABORATION_CLIENT_WEB_PLUGIN','_collabSessionService','defineProperty','_instanceService','_color','Module','addHandlerCallback','makeDirty','getSheetId','_docStateChangeManagerService','_init','_registerRenderDependencies','getCurrentUnitForType','NodePositionConvertToCursor','forEach','transformStateCache','sheetId','split','registerRenderModule','data','DocStateChangeManagerService','tag','COMPLETION_FINISHED','MUTATION','_render','xlink:href','params','COLORS','_transformService','_entities','_colorIndex','current','_draw','offline','ranges','LICENSE_EXPORT_SIZE_EXCEEDED','_handleEvent','defIds','pipe','_toggleOffline','MessageType','Disposable','_ensureSubject','onRendered','3448roInow','Rect','CollaborationSessionService','invokeId','search','roomMembers$','IRenderManagerService','collab-client.tooltip.reconnect','send','undoState','_updateSubUnitFromURLParams','row','@univerjs-pro/collaboration-client','all','_httpService','Plugin','memberID','getOffsetConfig','_docTransformStateCacheService','InsertRowCommandId','_scheduleHeartbeat','string','collaboration-client-ui.config','_createSocketURL','translate(.97)','LICENSE_DISTRO_REJECTED','_updateCollabCursors','ThemeService','isTransformMutationsWithChangesetSuccess','extend','disableLocalCache','RemoveRowCommandId','YUUMI_SUBSCRIPTION_NOT_FOUND','actions','10otOXAA','session.will-retry','_configService','getActiveSheet','height','_imageIoService','RegularPolygon','mergeOverrideWithDependencies','APPLY_PERMISSION_DENIED','collaboration-client.offline-data-not-saved','div','getParam','LocaleService','BehaviorSubject','focused$','transformByState','getUnitId','removeParam','_scene','size','deserializeRangeWithSheet','_getAnchorBounding','doc.mutation.rich-text-editing','M0\x200H16V16H0z','Vector2','_colorAssignService','replaceState','univer-online-status-icon','SetSelectionsOperation','drawWith','_onRefRangeChange','getOwnPropertySymbols','getMember','ITransformService','@univerjs/core','registerRefRange','UNAUTHENTICATED','HEADER_MENU','unitId','ONLINE','color','IConfigService','collaboration.single-unit.warning','saveTaskMap','IImageIoService','moveTo','getUnhiddenWorksheets','_anchorDot','red300','arc','reconnect','debounce','DeleteRangeMoveLeftCommandId','svg','LOGIN_FAILED','2150488dMmKDS','className','_beforeCloseService','history','UPDATE_CURSOR','ENSURE_SNAPSHOT_EXECUTION','_saveTaskMap','switchMap','push','idSuffix','Optional','ICommandService','APPLY_REJECT','with','RECT','_lastPointer','_collabCursorController','defs','popstate','...','currentTheme$','_cursors','cursorInfo','transformMutationsWithChangeset','DisposableCollection','SHEET_VIEWPORT_KEY','getMemberID','addEventListener','isTransformMutationFailure','@univerjs-pro/collaboration','onlineStatus','InsertColCommandId','SetTextSelectionsOperation','SNAPSHOT_HAS_BEEN_REMOVED','map','getTypeOfUnitDisposed$','@univerjs/sheets-ui','searchParams','handleDeleteRangeMoveLeft','CollaborationUIEventService','_notificationService','getCurrentRevOfUnit','origin','_updateURLWithCurrentState','getTypeOfUnitAdded$','getValue','text','_handleLeaveEvent','_urlService','merge','session.collaboration-timeout','RichTextEditingMutation','filter','url(#$1','skeleton','round','online','getRangePointData','_setupSubUnitSync','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','setTimeout','handleInsertRangeMoveRight','BuiltInUIPart','SYNCED','InsertRangeMoveRightCommandId','USERS_LEAVE','IBeforeCloseService','_setupBeforeClosingHandler','_drawAnchor','USER_NOT_INVITED_CODE','getFocusedUnit','#fff','INVALID_ARGUMENT','source','Tools','generateRandomId','CollaborationStatusDisplay','RxDisposable','_toggleOnline','SOCKET_FAILED_RETRY','_unitStatus','INVITE_CODE_ALREADY_BOUND','IDocClipboardService','LOCAL_CACHE_INTERVAL_KEY','_collabCursorState$','APPLY_DUPLICATED','_online','black','urlChange$','_roomMembers$','univer-online-status-title','collabStatus.offline','getViewport','CLOSE_ROOM','_cursorInfo$'];_0x66d2=function(){return _0x580434;};return _0x66d2();}J=Xt([le(0x0,a[_0xa4f3b1(0x3ee)](a[_0xa4f3b1(0x200)])),le(0x1,m['ITransformService']),le(0x2,p[_0xa4f3b1(0x27c)])],J);var Gt=Object[_0xa4f3b1(0x3f4)],qt=(_0x576d5b,_0x2753d2,_0x5290d4,_0x9854e1)=>{const _0x1308c3=_0xa4f3b1;for(var _0x1f7478=_0x9854e1>0x1?void 0x0:_0x9854e1?Gt(_0x2753d2,_0x5290d4):_0x2753d2,_0x2f9d78=_0x576d5b[_0x1308c3(0x236)]-0x1,_0x7aa7c9;_0x2f9d78>=0x0;_0x2f9d78--)(_0x7aa7c9=_0x576d5b[_0x2f9d78])&&(_0x1f7478=_0x7aa7c9(_0x1f7478)||_0x1f7478);return _0x1f7478;},_e=(_0x18b07b,_0x3a65fd)=>(_0x26a371,_0x356d06)=>_0x3a65fd(_0x26a371,_0x356d06,_0x18b07b);let Z=class{constructor(_0x178e38,_0x223c10,_0x2edb5c){const _0x4ada2f=_0xa4f3b1;this[_0x4ada2f(0x3f3)]=_0x178e38,this[_0x4ada2f(0x266)]=_0x223c10,this['_docStateChangeManagerService']=_0x2edb5c;}['transformStateCache'](_0x97009){const _0x2c94cd=_0xa4f3b1;this[_0x2c94cd(0x36a)](_0x97009);}[_0xa4f3b1(0x3e0)](_0x2980f6){const _0x229fac=_0xa4f3b1,{unitID:_0xaf938e}=_0x2980f6,{collaboration:_0x158705}=this['_docStateChangeManagerService'][_0x229fac(0x3c0)](_0xaf938e);if(_0x158705[_0x229fac(0x236)]===0x0)return _0x2980f6;let _0x3b269b=a[_0x229fac(0x319)][_0x229fac(0x1f8)](_0x2980f6[_0x229fac(0x3f2)][0x0]);for(let _0x31d151=0x0;_0x31d151<_0x158705[_0x229fac(0x236)];_0x31d151++){const _0x2ff279={'id':_0x229fac(0x2ae),'params':{'unitId':_0x158705[_0x31d151][_0x229fac(0x2be)],..._0x158705[_0x31d151]['redoState']}},_0x241df6=this['_transformService'][_0x229fac(0x376)](_0x3b269b,_0x2ff279,!0x1);if(m['isTransformMutationFailure'](_0x241df6))throw _0x241df6[_0x229fac(0x194)];_0x3b269b=_0x241df6[_0x229fac(0x375)];}return{...a[_0x229fac(0x319)][_0x229fac(0x1f8)](_0x2980f6),'mutations':[_0x3b269b]};}['_transformHistoryAndStateStack'](_0x1d5bd0){const _0x48c7c7=_0xa4f3b1,{unitID:_0x3d430b}=_0x1d5bd0,{history:_0x2034b7,collaboration:_0x569ea1}=this[_0x48c7c7(0x253)][_0x48c7c7(0x3c0)](_0x3d430b);if(_0x2034b7[_0x48c7c7(0x236)]===0x0&&_0x569ea1[_0x48c7c7(0x236)]===0x0)return;const _0x32a904=[],_0xc69c7f=[];let _0xebfec2=a['Tools']['deepClone'](_0x1d5bd0[_0x48c7c7(0x3f2)][0x0]),_0xc77e65=a[_0x48c7c7(0x319)]['deepClone'](_0x1d5bd0[_0x48c7c7(0x3f2)][0x0]);for(let _0x3d2692=_0x2034b7['length']-0x1;_0x3d2692>=0x0;_0x3d2692--){const _0x4a8eb2={'id':_0x48c7c7(0x2ae),'params':{'unitId':_0x2034b7[_0x3d2692][_0x48c7c7(0x2be)],..._0x2034b7[_0x3d2692][_0x48c7c7(0x27f)]}},_0x38c2f8={'id':_0x48c7c7(0x2ae),'params':{'unitId':_0x2034b7[_0x3d2692][_0x48c7c7(0x2be)],..._0x2034b7[_0x3d2692][_0x48c7c7(0x385)]}},_0x55954d=this[_0x48c7c7(0x266)]['transformMutation'](_0xebfec2,_0x4a8eb2,!0x1),_0x2e361b=this['_transformService'][_0x48c7c7(0x376)](_0xc77e65,_0x38c2f8,!0x1);if(m[_0x48c7c7(0x2eb)](_0x55954d))throw _0x55954d['error'];if(m['isTransformMutationFailure'](_0x2e361b))throw _0x2e361b[_0x48c7c7(0x194)];_0x32a904[_0x48c7c7(0x1dc)]({..._0x2034b7[_0x3d2692],'undoState':_0x55954d['m2Prime']['params'],'redoState':_0x2e361b[_0x48c7c7(0x248)][_0x48c7c7(0x264)]}),_0xebfec2=_0x55954d[_0x48c7c7(0x375)],_0xc77e65=_0x2e361b[_0x48c7c7(0x375)];}_0xebfec2=a[_0x48c7c7(0x319)][_0x48c7c7(0x1f8)](_0x1d5bd0[_0x48c7c7(0x3f2)][0x0]),_0xc77e65=a[_0x48c7c7(0x319)]['deepClone'](_0x1d5bd0[_0x48c7c7(0x3f2)][0x0]);for(let _0x16b32a=_0x569ea1['length']-0x1;_0x16b32a>=0x0;_0x16b32a--){const _0x322385={'id':_0x48c7c7(0x2ae),'params':{'unitId':_0x569ea1[_0x16b32a][_0x48c7c7(0x2be)],..._0x569ea1[_0x16b32a][_0x48c7c7(0x27f)]}},_0x5407ee={'id':_0x48c7c7(0x2ae),'params':{'unitId':_0x569ea1[_0x16b32a][_0x48c7c7(0x2be)],..._0x569ea1[_0x16b32a][_0x48c7c7(0x385)]}},_0x191a51=this[_0x48c7c7(0x266)]['transformMutation'](_0xebfec2,_0x322385,!0x1),_0x61198=this[_0x48c7c7(0x266)][_0x48c7c7(0x376)](_0xc77e65,_0x5407ee,!0x1);if(m['isTransformMutationFailure'](_0x191a51))throw _0x191a51[_0x48c7c7(0x194)];if(m[_0x48c7c7(0x2eb)](_0x61198))throw _0x61198[_0x48c7c7(0x194)];_0xc69c7f['unshift']({..._0x569ea1[_0x16b32a],'undoState':_0x191a51[_0x48c7c7(0x248)][_0x48c7c7(0x264)],'redoState':_0x61198['m2Prime'][_0x48c7c7(0x264)]}),_0xebfec2=_0x191a51[_0x48c7c7(0x375)],_0xc77e65=_0x61198['m1Prime'];}this[_0x48c7c7(0x253)][_0x48c7c7(0x349)](_0x3d430b,{'history':_0x32a904,'collaboration':_0xc69c7f});}};Z=qt([_e(0x0,a[_0xa4f3b1(0x3ee)](a[_0xa4f3b1(0x200)])),_e(0x1,m[_0xa4f3b1(0x2b9)]),_e(0x2,a['Inject'](b[_0xa4f3b1(0x25e)]))],Z);var Kt=Object[_0xa4f3b1(0x3f4)],zt=(_0x54a424,_0x2e8888,_0x37d477,_0x290985)=>{const _0x41aea8=_0xa4f3b1;for(var _0x23f0d1=_0x290985>0x1?void 0x0:_0x290985?Kt(_0x2e8888,_0x37d477):_0x2e8888,_0x5770fd=_0x54a424[_0x41aea8(0x236)]-0x1,_0x2fa14e;_0x5770fd>=0x0;_0x5770fd--)(_0x2fa14e=_0x54a424[_0x5770fd])&&(_0x23f0d1=_0x2fa14e(_0x23f0d1)||_0x23f0d1);return _0x23f0d1;},Me=(_0x1e17f6,_0x6fb1f9)=>(_0x1d655f,_0x376836)=>_0x6fb1f9(_0x1d655f,_0x376836,_0x1e17f6);let Q=class{constructor(_0x175ecb,_0x3fae29){const _0xb82594=_0xa4f3b1;this[_0xb82594(0x3f3)]=_0x175ecb,this['_transformService']=_0x3fae29;}[_0xa4f3b1(0x3bd)](_0x1c39db){const _0x4caa2f=_0xa4f3b1;var _0x2f819d;const _0x502835=this[_0x4caa2f(0x3f3)]['get'](Y[_0x4caa2f(0x1ee)]),_0x153cab=(_0x2f819d=_0x502835[_0x4caa2f(0x3d8)]())!=null?_0x2f819d:[];if(_0x153cab[_0x4caa2f(0x236)]===0x0)return;const _0x4f37a4=_0x1c39db[_0x4caa2f(0x240)],_0x1d87e2=[{'id':_0x4caa2f(0x2ae),'params':{'unitId':_0x4f37a4,'actions':null,'textRanges':_0x153cab}}],_0x389031=this['_transformService'][_0x4caa2f(0x2e6)](_0x1c39db,_0x1d87e2);if(!m[_0x4caa2f(0x292)](_0x389031))throw _0x389031[_0x4caa2f(0x194)];const _0x4b2d86=_0x389031['m2Prime'][0x0][_0x4caa2f(0x264)][_0x4caa2f(0x3b8)];Array['isArray'](_0x4b2d86)&&_0x4b2d86['length']&&_0x502835['replaceDocRanges'](_0x4b2d86,{'unitId':_0x4f37a4,'subUnitId':_0x4f37a4},!0x1);}};Q=zt([Me(0x0,a['Inject'](a[_0xa4f3b1(0x200)])),Me(0x1,m[_0xa4f3b1(0x2b9)])],Q);var Jt=Object[_0xa4f3b1(0x3f4)],Zt=(_0x8ce6ba,_0x592720,_0x411260,_0x2546f9)=>{const _0x3e56e8=_0xa4f3b1;for(var _0x128030=_0x2546f9>0x1?void 0x0:_0x2546f9?Jt(_0x592720,_0x411260):_0x592720,_0x35d420=_0x8ce6ba[_0x3e56e8(0x236)]-0x1,_0x1da6ba;_0x35d420>=0x0;_0x35d420--)(_0x1da6ba=_0x8ce6ba[_0x35d420])&&(_0x128030=_0x1da6ba(_0x128030)||_0x128030);return _0x128030;},N=(_0x56e265,_0x394706)=>(_0x487297,_0x4c36dc)=>_0x394706(_0x487297,_0x4c36dc,_0x56e265);let ee=class extends a[_0xa4f3b1(0x273)]{constructor(_0x138d97,_0x1fbef9,_0x551316,_0x9a23e9,_0x7c97d,_0x57aaee,_0x400be9,_0x1ad783){const _0x1007fd=_0xa4f3b1;super(),_(this,_0x1007fd(0x1cf),new d[(_0x1007fd(0x2a5))](u[_0x1007fd(0x238)][_0x1007fd(0x19a)])),(this[_0x1007fd(0x253)]=_0x138d97,this[_0x1007fd(0x220)]=_0x1fbef9,this[_0x1007fd(0x38b)]=_0x551316,this['_docTransformStateCacheService']=_0x9a23e9,this[_0x1007fd(0x1e0)]=_0x7c97d,this[_0x1007fd(0x35c)]=_0x57aaee,this['_messageService']=_0x400be9,this[_0x1007fd(0x390)]=_0x1ad783,this[_0x1007fd(0x1a9)]());}[_0xa4f3b1(0x1a9)](){const _0xdc71fe=_0xa4f3b1;this[_0xdc71fe(0x3c2)](this['_collaborationController'][_0xdc71fe(0x3ab)][_0xdc71fe(0x3f6)](_0x5ec381=>{const _0x1983fa=_0xdc71fe,_0x3a70fd=this[_0x1983fa(0x253)]['docStateChange$'][_0x1983fa(0x3f6)](_0x556440=>{const _0xc1e209=_0x1983fa;if(_0x556440==null)return;const {unitId:_0x1059bf,redoState:_0x214588,commandId:_0x16bbfe}=_0x556440;if(_0x1059bf!==_0x5ec381[_0xc1e209(0x240)])return;const _0x545f1b={'id':_0x16bbfe,'type':a[_0xc1e209(0x355)][_0xc1e209(0x261)],'params':{'unitId':_0x1059bf,'actions':_0x214588[_0xc1e209(0x297)],'textRanges':null}};_0x5ec381['onLocalMutation'](_0x545f1b);});if(_0x5ec381[_0x1983fa(0x3c2)](_0x3a70fd),_0x5ec381 instanceof u[_0x1983fa(0x233)]){const _0x5041aa={'onTransformIME':_0x5a524b=>this[_0x1983fa(0x38b)][_0x1983fa(0x1d9)](_0x5a524b),'onTransformState':_0x51028f=>this[_0x1983fa(0x288)][_0x1983fa(0x259)](_0x51028f),'onTransformSelections':_0x4d4c9c=>this[_0x1983fa(0x1e0)][_0x1983fa(0x3bd)](_0x4d4c9c),'onSyncEditingCollabCursor':_0x1dbde2=>this['_docSyncEditingCollabCursorService'][_0x1983fa(0x40d)](_0x1dbde2),'onTransformRemoteChangesetByIMECache':_0x272b8b=>this[_0x1983fa(0x38b)][_0x1983fa(0x3e0)](_0x272b8b),'onTransformRemoteChangesetByStateCache':_0x3ce372=>this[_0x1983fa(0x288)][_0x1983fa(0x3e0)](_0x3ce372)};_0x5ec381[_0x1983fa(0x250)](_0x5041aa);}}));}};ee=Zt([N(0x0,a[_0xa4f3b1(0x3ee)](b['DocStateChangeManagerService'])),N(0x1,a['Inject'](u[_0xa4f3b1(0x3fb)])),N(0x2,a[_0xa4f3b1(0x3ee)](J)),N(0x3,a[_0xa4f3b1(0x3ee)](Z)),N(0x4,a['Inject'](Q)),N(0x5,a[_0xa4f3b1(0x3ee)](pe)),N(0x6,R['IMessageService']),N(0x7,a['Inject'](a[_0xa4f3b1(0x2a4)]))],ee);var Qt=Object[_0xa4f3b1(0x3f4)],es=(_0x1595a5,_0x1c6675,_0x5ad22a,_0x11e68e)=>{for(var _0x1ffb0c=_0x11e68e>0x1?void 0x0:_0x11e68e?Qt(_0x1c6675,_0x5ad22a):_0x1c6675,_0x10bf91=_0x1595a5['length']-0x1,_0x45169c;_0x10bf91>=0x0;_0x10bf91--)(_0x45169c=_0x1595a5[_0x10bf91])&&(_0x1ffb0c=_0x45169c(_0x1ffb0c)||_0x1ffb0c);return _0x1ffb0c;},he=(_0x50d315,_0x9df292)=>(_0x18113b,_0x1e80c)=>_0x9df292(_0x18113b,_0x1e80c,_0x50d315);let me=class extends a[_0xa4f3b1(0x273)]{constructor(_0x5c291a,_0x55522a,_0x5650ab){const _0x1532f4=_0xa4f3b1;super(),_(this,_0x1532f4(0x3f9),new Map()),_(this,_0x1532f4(0x2d5),new Map()),_(this,_0x1532f4(0x345),!0x1),(this['_configService']=_0x5c291a,this['_localStorageService']=_0x55522a,this['_revisionService']=_0x5650ab);}[_0xa4f3b1(0x294)](){const _0xc2f26d=_0xa4f3b1;this[_0xc2f26d(0x345)]=!0x0;}['enableLocalCache'](){const _0x147c05=_0xa4f3b1;this[_0x147c05(0x345)]=!0x1;}get[_0xa4f3b1(0x2c3)](){const _0x3f8340=_0xa4f3b1;return this[_0x3f8340(0x2d5)];}['dispose'](){const _0x27353c=_0xa4f3b1;this['exhaustSavingTask']()[_0x27353c(0x239)](()=>super['dispose']());}async[_0xa4f3b1(0x351)](_0x3e7dbb){const _0xaf5f9b=_0xa4f3b1;return this[_0xaf5f9b(0x345)]?null:this[_0xaf5f9b(0x3fd)][_0xaf5f9b(0x395)](u[_0xaf5f9b(0x338)](_0x3e7dbb));}async['saveOfflineData'](_0x197e03,_0x1266c0){const _0x2d437e=_0xa4f3b1;return!!this[_0x2d437e(0x3fd)][_0x2d437e(0x411)](_0x197e03,_0x1266c0);}[_0xa4f3b1(0x1be)](_0xd0f089,_0x4f91a1,_0x3e55e8,_0x8adab1){const _0x130d18=_0xa4f3b1,_0x487426=this[_0x130d18(0x3db)][_0x130d18(0x2f8)](_0xd0f089);this['_cachedData'][_0x130d18(0x202)](_0xd0f089,{'unitID':_0xd0f089,'type':_0x4f91a1,'awaitingChangeset':_0x3e55e8,'mutations':_0x8adab1,'rev':_0x487426}),this[_0x130d18(0x2d5)][_0x130d18(0x40e)](_0xd0f089)||this[_0x130d18(0x3c7)](_0xd0f089);}[_0xa4f3b1(0x3c7)](_0x9fd6f5){const _0x199eaf=_0xa4f3b1,_0x47e0c1=this['_getSaveTimeout']();_0x47e0c1===0x0?this[_0x199eaf(0x3e3)](_0x9fd6f5):this[_0x199eaf(0x2d5)][_0x199eaf(0x202)](_0x9fd6f5,setTimeout(()=>this['_saveCache'](_0x9fd6f5),_0x47e0c1));}['_getSaveTimeout'](){const _0x3bed57=_0xa4f3b1;var _0x466361;return(_0x466361=this[_0x3bed57(0x29a)][_0x3bed57(0x333)](u[_0x3bed57(0x322)]))!=null?_0x466361:u['LOCAL_CACHE_INTERVAL'];}[_0xa4f3b1(0x3e3)](_0x2d6ed9){const _0x363860=_0xa4f3b1,_0x36078f=this[_0x363860(0x2d5)][_0x363860(0x20d)](_0x2d6ed9);return _0x36078f!==void 0x0&&window[_0x363860(0x217)](_0x36078f),this[_0x363860(0x3fd)][_0x363860(0x411)](u[_0x363860(0x338)](_0x2d6ed9),this[_0x363860(0x3f9)][_0x363860(0x20d)](_0x2d6ed9))[_0x363860(0x239)](()=>this[_0x363860(0x2d5)][_0x363860(0x3d2)](_0x2d6ed9));}async['exhaustSavingTask'](){const _0x4ff3bd=_0xa4f3b1,_0x5d93ea=[];this[_0x4ff3bd(0x2d5)]['forEach']((_0x4a49d8,_0x1b2771)=>{const _0x49f3a7=_0x4ff3bd;window[_0x49f3a7(0x217)](_0x4a49d8),_0x5d93ea['push'](this[_0x49f3a7(0x3e3)](_0x1b2771)['then'](()=>{const _0x3d8bac=_0x49f3a7;this[_0x3d8bac(0x2d5)]['delete'](_0x1b2771);}));}),await Promise[_0x4ff3bd(0x283)](_0x5d93ea);}};me=es([he(0x0,a[_0xa4f3b1(0x2c1)]),he(0x1,a[_0xa4f3b1(0x1ad)]),he(0x2,a['Inject'](m[_0xa4f3b1(0x399)]))],me);class Be extends a['RxDisposable']{constructor(){const _0x31bdb8=_0xa4f3b1;super(),_(this,_0x31bdb8(0x327)),this[_0x31bdb8(0x327)]=d[_0x31bdb8(0x358)](window,_0x31bdb8(0x2e1))[_0x31bdb8(0x270)](d[_0x31bdb8(0x1b4)](this[_0x31bdb8(0x20e)]),d[_0x31bdb8(0x397)](0x1),d[_0x31bdb8(0x20f)](void 0x0));}['setParam'](_0x35895d,_0x29f61e,_0x4314f8=!0x1){const _0x5bac14=_0xa4f3b1,_0x177fec=new URL(window[_0x5bac14(0x408)]['href']);_0x177fec['searchParams'][_0x5bac14(0x202)](_0x35895d,_0x29f61e),_0x4314f8?window['history']['replaceState']('','',_0x177fec[_0x5bac14(0x365)]()):window[_0x5bac14(0x2d2)]['pushState']('','',_0x177fec['toString']());}[_0xa4f3b1(0x2a9)](_0x59aaf6,_0xd9e5f5=!0x1){const _0x4767ff=_0xa4f3b1,_0x275492=new URL(window[_0x4767ff(0x408)][_0x4767ff(0x3a3)]);_0x275492[_0x4767ff(0x2f4)][_0x4767ff(0x3d2)](_0x59aaf6),_0xd9e5f5?window[_0x4767ff(0x2d2)][_0x4767ff(0x2b2)]('','',_0x275492[_0x4767ff(0x365)]()):window['history'][_0x4767ff(0x22c)]('','',_0x275492[_0x4767ff(0x365)]());}[_0xa4f3b1(0x2a3)](_0x360b2d){const _0x245587=_0xa4f3b1;var _0x15b3d9;return(_0x15b3d9=new URL(window[_0x245587(0x408)]['href'])[_0x245587(0x2f4)]['get'](_0x360b2d))!=null?_0x15b3d9:void 0x0;}}var ts=Object[_0xa4f3b1(0x24c)],ss=Object[_0xa4f3b1(0x3f4)],ns=(_0x38a3a2,_0x2a05d3,_0x377caf)=>_0x2a05d3 in _0x38a3a2?ts(_0x38a3a2,_0x2a05d3,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x377caf}):_0x38a3a2[_0x2a05d3]=_0x377caf,is=(_0x55061c,_0x1233c5,_0x1a07d6,_0xf17e7)=>{const _0x2d9c8b=_0xa4f3b1;for(var _0x480dc7=_0xf17e7>0x1?void 0x0:_0xf17e7?ss(_0x1233c5,_0x1a07d6):_0x1233c5,_0x3492d6=_0x55061c[_0x2d9c8b(0x236)]-0x1,_0x1d6afb;_0x3492d6>=0x0;_0x3492d6--)(_0x1d6afb=_0x55061c[_0x3492d6])&&(_0x480dc7=_0x1d6afb(_0x480dc7)||_0x480dc7);return _0x480dc7;},ue=(_0x2ef05c,_0x4223fc)=>(_0x5a2d2c,_0xbe991d)=>_0x4223fc(_0x5a2d2c,_0xbe991d,_0x2ef05c),rs=(_0x310da9,_0x3e6a43,_0x16df83)=>ns(_0x310da9,_0x3e6a43+'',_0x16df83);const os=_0xa4f3b1(0x24a);exports[_0xa4f3b1(0x398)]=class extends a[_0xa4f3b1(0x285)]{constructor(_0x3a8be9=Ne,_0x51cdad,_0xf39e8f,_0x5d7070){const _0x3ba1fd=_0xa4f3b1;super(),this[_0x3ba1fd(0x3e2)]=_0x3a8be9,this['_renderManagerService']=_0x51cdad,this[_0x3ba1fd(0x3f3)]=_0xf39e8f,this['_configService']=_0x5d7070;const {..._0x16eda4}=a['merge']({},Ne,this[_0x3ba1fd(0x3e2)]);this['_configService'][_0x3ba1fd(0x1cb)](Wt,_0x16eda4);}[_0xa4f3b1(0x37e)](){const _0x2aaf69=_0xa4f3b1;this[_0x2aaf69(0x336)](),this[_0x2aaf69(0x249)]();}[_0xa4f3b1(0x275)](){const _0xbd9140=_0xa4f3b1;this[_0xbd9140(0x255)]();}[_0xa4f3b1(0x336)](){const _0x6217fa=_0xa4f3b1;var _0x377c6f;const _0x4467bb=[[Ce],[Q],[J],[Z],[pe],[Ee,{'useClass':Be}],[q[_0x6217fa(0x1b8)],{'useClass':q['WebSocketService']}],[u['ILocalCacheService'],{'useClass':me}],[exports['DesktopCollaborationStatusDisplayController']],[ee],[z],[x],[fe],[exports[_0x6217fa(0x404)]]];a[_0x6217fa(0x1d3)](this[_0x6217fa(0x3f3)],a[_0x6217fa(0x29f)](_0x4467bb,(_0x377c6f=this['_config'])==null?void 0x0:_0x377c6f[_0x6217fa(0x1d2)]));}[_0xa4f3b1(0x255)](){const _0x323b13=_0xa4f3b1;this[_0x323b13(0x3c2)](this[_0x323b13(0x21a)][_0x323b13(0x25c)](a[_0x323b13(0x3da)][_0x323b13(0x33a)],[ve])),this['disposeWithMe'](this[_0x323b13(0x21a)][_0x323b13(0x25c)](a[_0x323b13(0x3da)][_0x323b13(0x1db)],[ge]));}[_0xa4f3b1(0x249)](){const _0x54498d=_0xa4f3b1;a[_0x54498d(0x247)](this[_0x54498d(0x3f3)],[[x],[exports[_0x54498d(0x3f0)]],[ee],[z],[exports['CollaborationDataLoaderController']]]);}},rs(exports[_0xa4f3b1(0x398)],_0xa4f3b1(0x3dc),os),exports[_0xa4f3b1(0x398)]=is([a['DependentOn'](u[_0xa4f3b1(0x222)]),ue(0x1,p[_0xa4f3b1(0x27c)]),ue(0x2,a['Inject'](a[_0xa4f3b1(0x200)])),ue(0x3,a[_0xa4f3b1(0x2c1)])],exports[_0xa4f3b1(0x398)]);var as=Object[_0xa4f3b1(0x3f4)],cs=(_0x18dd86,_0x3dd714,_0x15c3b4,_0x38f55b)=>{for(var _0x4517a0=_0x38f55b>0x1?void 0x0:_0x38f55b?as(_0x3dd714,_0x15c3b4):_0x3dd714,_0x4a37dc=_0x18dd86['length']-0x1,_0x5b8509;_0x4a37dc>=0x0;_0x4a37dc--)(_0x5b8509=_0x18dd86[_0x4a37dc])&&(_0x4517a0=_0x5b8509(_0x4517a0)||_0x4517a0);return _0x4517a0;},F=(_0x2354b1,_0x4d4bc6)=>(_0x219cbd,_0x5a26f4)=>_0x4d4bc6(_0x219cbd,_0x5a26f4,_0x2354b1);exports[_0xa4f3b1(0x387)]=class extends u['CollaborationSocketService']{constructor(_0x21d1e4,_0x2c36f8,_0x1f50aa,_0x40b448,_0x32dfc6){super(_0x21d1e4,_0x2c36f8,_0x1f50aa,_0x40b448,_0x32dfc6);}async[_0xa4f3b1(0x357)](_0x1edb40){const _0x52b9eb=_0xa4f3b1,_0x1c7fde=await this[_0x52b9eb(0x348)](),_0x1422b6=this[_0x52b9eb(0x28d)](_0x1edb40,_0x1c7fde);return this[_0x52b9eb(0x37f)](_0x1422b6);}[_0xa4f3b1(0x28d)](_0x54d201,_0x4e8e24){const _0x20459f=_0xa4f3b1,_0x41ab6b=typeof window>'u'?new URL(_0x54d201):new URL(_0x54d201,window[_0x20459f(0x408)][_0x20459f(0x2f9)]);_0x41ab6b[_0x20459f(0x2f4)][_0x20459f(0x202)](_0x20459f(0x3ea),_0x4e8e24);const _0x286c3d=typeof window>'u'?new URLSearchParams():new URLSearchParams(window['location'][_0x20459f(0x27a)]);return _0x286c3d[_0x20459f(0x20d)](_0x20459f(0x407))&&_0x41ab6b['searchParams'][_0x20459f(0x202)]('runId',_0x286c3d['get'](_0x20459f(0x407))),_0x41ab6b[_0x20459f(0x365)]();}async[_0xa4f3b1(0x348)](){const _0xa1bce0=_0xa4f3b1;var _0x86f9f9,_0x15908b,_0x534040;const _0x14379e=this['_configService']['getConfig'](u['COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY']),_0x23c9a9=(_0x86f9f9=_0x14379e==null?void 0x0:_0x14379e['wsSessionTicketUrl'])!=null?_0x86f9f9:u[_0xa1bce0(0x1bc)];return(_0x534040=(_0x15908b=(await this[_0xa1bce0(0x284)][_0xa1bce0(0x20d)](_0x23c9a9,{'headers':{'Content-Type':_0xa1bce0(0x1b6)}}))['body'])==null?void 0x0:_0x15908b[_0xa1bce0(0x1df)])!=null?_0x534040:'';}},exports[_0xa4f3b1(0x387)]=cs([F(0x0,a[_0xa4f3b1(0x3ee)](a[_0xa4f3b1(0x200)])),F(0x1,a['Inject'](q[_0xa4f3b1(0x3b2)])),F(0x2,a['IConfigService']),F(0x3,a[_0xa4f3b1(0x3bf)]),F(0x4,m['ISnapshotServerService'])],exports[_0xa4f3b1(0x387)]);const Pe=0x7530,Le='ACTIVE_UNIT_EVENT_CHANNEL';class ls extends a[_0xa4f3b1(0x273)]{constructor(){const _0x50290c=_0xa4f3b1;super(),_(this,_0x50290c(0x3e6),a[_0x50290c(0x31a)]()),_(this,'_selfUnitIDs',new Set()),_(this,_0x50290c(0x3c1),new Map()),_(this,_0x50290c(0x361),null),_(this,_0x50290c(0x199),new Map()),_(this,_0x50290c(0x31f),new Map()),this['_init']();}[_0xa4f3b1(0x3cc)](){const _0x17c481=_0xa4f3b1;super['dispose'](),this[_0x17c481(0x199)][_0x17c481(0x258)]((_0x273f99,_0xe6ebae)=>this[_0x17c481(0x384)](_0xe6ebae)),this['_heartbeatTimer']&&window[_0x17c481(0x356)](this[_0x17c481(0x361)]);}[_0xa4f3b1(0x403)](_0x3aff3f){const _0x542cfb=_0xa4f3b1;return this[_0x542cfb(0x274)](_0x3aff3f)['pipe'](d['distinctUntilChanged']());}[_0xa4f3b1(0x1c0)](_0x3f7e6a){const _0x45a384=_0xa4f3b1;this['_selfUnitIDs']['size']===0x0&&this['_scheduleHeartbeat'](),this[_0x45a384(0x1ba)][_0x45a384(0x38e)](_0x3f7e6a),this[_0x45a384(0x386)]({'type':0x0,'memberID':this[_0x45a384(0x3e6)],'unitIDs':[_0x3f7e6a],'isForwarded':!0x1});}[_0xa4f3b1(0x1cc)](_0x393b75){const _0x32626b=_0xa4f3b1;this[_0x32626b(0x1ba)][_0x32626b(0x3d2)](_0x393b75),this[_0x32626b(0x1ba)][_0x32626b(0x2ab)]===0x0&&this['_heartbeatTimer']&&window[_0x32626b(0x356)](this['_heartbeatTimer']);}[_0xa4f3b1(0x254)](){const _0x43803f=_0xa4f3b1;this[_0x43803f(0x3c2)](a[_0x43803f(0x3a1)](d['fromEvent'](window,_0x43803f(0x3ed))[_0x43803f(0x3f6)](_0x3268dd=>{const _0x506ae7=_0x43803f;if(_0x3268dd['key']!==Le||!_0x3268dd[_0x506ae7(0x3e8)])return;const _0x3e95b6=JSON['parse'](_0x3268dd[_0x506ae7(0x3e8)]);this[_0x506ae7(0x26e)](_0x3e95b6);}))),window[_0x43803f(0x2ea)](_0x43803f(0x3de),()=>this['_send']({'type':0x1,'memberID':this[_0x43803f(0x3e6)],'unitIDs':Array[_0x43803f(0x1fb)](this[_0x43803f(0x1ba)])}));}[_0xa4f3b1(0x26e)](_0x5d8246){const _0x2d3ea1=_0xa4f3b1;switch(_0x5d8246[_0x2d3ea1(0x229)]){case 0x0:this['_handleJoinEvent'](_0x5d8246);break;case 0x1:this[_0x2d3ea1(0x2fe)](_0x5d8246);break;case 0x2:this[_0x2d3ea1(0x192)](_0x5d8246);break;}}[_0xa4f3b1(0x232)](_0x10e45b){const _0x3a1b46=_0xa4f3b1,{unitIDs:_0x1981f6,memberID:_0x424c73,isForwarded:_0x3508bc}=_0x10e45b;_0x1981f6[_0x3a1b46(0x258)](_0x35d005=>{const _0x5f34f3=_0x3a1b46;if(!_0x3508bc&&this[_0x5f34f3(0x3c1)]['has'](_0x35d005)&&this[_0x5f34f3(0x274)](_0x35d005)[_0x5f34f3(0x21c)](u['UnitStatus'][_0x5f34f3(0x412)]),!this[_0x5f34f3(0x3c1)][_0x5f34f3(0x40e)](_0x35d005)||!this[_0x5f34f3(0x3c1)][_0x5f34f3(0x20d)](_0x35d005)['has'](_0x424c73)){const _0x5f23c9=this[_0x5f34f3(0x3c1)][_0x5f34f3(0x20d)](_0x35d005)||new Set();_0x5f23c9[_0x5f34f3(0x38e)](_0x424c73),this['_unitOnClients'][_0x5f34f3(0x202)](_0x35d005,_0x5f23c9),this[_0x5f34f3(0x245)](_0x424c73);}}),_0x3508bc||this[_0x3a1b46(0x386)]({'type':0x0,'memberID':this[_0x3a1b46(0x3e6)],'unitIDs':[...this[_0x3a1b46(0x1ba)]],'isForwarded':!0x0});}[_0xa4f3b1(0x245)](_0x5eea62){const _0x1211e9=_0xa4f3b1;this[_0x1211e9(0x384)](_0x5eea62);const _0x14b352=window[_0x1211e9(0x30b)](()=>{const _0x2ad24f=_0x1211e9;this[_0x2ad24f(0x3c1)][_0x2ad24f(0x258)](_0x4ce472=>{const _0x344930=_0x2ad24f;_0x4ce472[_0x344930(0x3d2)](_0x5eea62);});},Pe*0x2);this[_0x1211e9(0x199)][_0x1211e9(0x202)](_0x5eea62,_0x14b352);}[_0xa4f3b1(0x384)](_0x2c72a4){const _0x57c3b6=_0xa4f3b1;if(this[_0x57c3b6(0x199)][_0x57c3b6(0x40e)](_0x2c72a4)){const _0x53d443=this['_clearOtherTimers']['get'](_0x2c72a4);_0x53d443&&window[_0x57c3b6(0x217)](_0x53d443),this['_clearOtherTimers'][_0x57c3b6(0x202)](_0x2c72a4,null);}}[_0xa4f3b1(0x2fe)](_0x4b8382){const {memberID:_0x4298d5,unitIDs:_0xecc31f}=_0x4b8382;_0xecc31f['forEach'](_0x5f04bd=>{const _0x1ef9fc=_0xc9b6;var _0x4bc69e;const _0xcc793a=this[_0x1ef9fc(0x3c1)]['get'](_0x5f04bd);_0xcc793a&&(_0xcc793a[_0x1ef9fc(0x3d2)](_0x4298d5),(_0x4bc69e=this['_ensureSubject'](_0x5f04bd))==null||_0x4bc69e[_0x1ef9fc(0x21c)](_0xcc793a[_0x1ef9fc(0x2ab)]===0x0?u[_0x1ef9fc(0x364)][_0x1ef9fc(0x3cf)]:u[_0x1ef9fc(0x364)][_0x1ef9fc(0x412)]));}),this['_removeClearOtherTimer'](_0x4298d5);}[_0xa4f3b1(0x192)](_0x24ce53){const _0x35cbe2=_0xa4f3b1;this['_scheduleClearOtherTimer'](_0x24ce53[_0x35cbe2(0x286)]);}['_send'](_0x29e176){const _0xe0e5b5=_0xa4f3b1;localStorage[_0xe0e5b5(0x411)](Le,JSON[_0xe0e5b5(0x1ae)](_0x29e176));}[_0xa4f3b1(0x28a)](){const _0x558380=_0xa4f3b1;this['_heartbeatTimer']=window[_0x558380(0x3fc)](()=>{const _0xdfc93c=_0x558380;this[_0xdfc93c(0x386)]({'type':0x2,'memberID':this['_id']});},Pe);}[_0xa4f3b1(0x274)](_0x315a65){const _0x4df65c=_0xa4f3b1;return this[_0x4df65c(0x31f)][_0x4df65c(0x40e)](_0x315a65)||this['_unitStatus'][_0x4df65c(0x202)](_0x315a65,new d['BehaviorSubject'](u[_0x4df65c(0x364)]['NO_OTHER_CLIENTS_EDITING'])),this['_unitStatus'][_0x4df65c(0x20d)](_0x315a65);}}var ke=(_0x4c0de3=>(_0x4c0de3[_0x4c0de3['UNDEFINED']=0x0]='UNDEFINED',_0x4c0de3[_0x4c0de3['OK']=0x1]='OK',_0x4c0de3[_0x4c0de3[_0xa4f3b1(0x32e)]=0x2]='INTERNAL_ERROR',_0x4c0de3[_0x4c0de3[_0xa4f3b1(0x216)]=0x3]='PERMISSION_DENIED',_0x4c0de3[_0x4c0de3[_0xa4f3b1(0x201)]=0x4]=_0xa4f3b1(0x201),_0x4c0de3[_0x4c0de3[_0xa4f3b1(0x2bc)]=0x5]=_0xa4f3b1(0x2bc),_0x4c0de3[_0x4c0de3['ALREADY_EXISTS']=0x6]=_0xa4f3b1(0x1f2),_0x4c0de3[_0x4c0de3[_0xa4f3b1(0x317)]=0x7]=_0xa4f3b1(0x317),_0x4c0de3[_0x4c0de3[_0xa4f3b1(0x1eb)]=0x8]='TOO_MANY_REQUESTS',_0x4c0de3[_0x4c0de3['COMPLETION_FINISHED']=0x9]=_0xa4f3b1(0x260),_0x4c0de3[_0x4c0de3['LOGIN_FAILED']=0xa]=_0xa4f3b1(0x2ce),_0x4c0de3[_0x4c0de3[_0xa4f3b1(0x193)]=0x1389]=_0xa4f3b1(0x193),_0x4c0de3[_0x4c0de3[_0xa4f3b1(0x363)]=0x1771]=_0xa4f3b1(0x363),_0x4c0de3[_0x4c0de3[_0xa4f3b1(0x2f0)]=0x1772]=_0xa4f3b1(0x2f0),_0x4c0de3[_0x4c0de3['ENSURE_SNAPSHOT_EXECUTION']=0x1773]=_0xa4f3b1(0x2d4),_0x4c0de3[_0x4c0de3[_0xa4f3b1(0x2db)]=0x1b59]='APPLY_REJECT',_0x4c0de3[_0x4c0de3[_0xa4f3b1(0x37c)]=0x1b5a]=_0xa4f3b1(0x37c),_0x4c0de3[_0x4c0de3[_0xa4f3b1(0x1b5)]=0x1b5b]=_0xa4f3b1(0x1b5),_0x4c0de3[_0x4c0de3[_0xa4f3b1(0x2a0)]=0x1b5c]=_0xa4f3b1(0x2a0),_0x4c0de3[_0x4c0de3[_0xa4f3b1(0x324)]=0x1b5d]='APPLY_DUPLICATED',_0x4c0de3[_0x4c0de3[_0xa4f3b1(0x347)]=0x1f41]=_0xa4f3b1(0x347),_0x4c0de3[_0x4c0de3['LICENSE_MAX_UNITS_EXCEEDED']=0x2329]=_0xa4f3b1(0x3d9),_0x4c0de3[_0x4c0de3['LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED']=0x232a]=_0xa4f3b1(0x225),_0x4c0de3[_0x4c0de3[_0xa4f3b1(0x339)]=0x232b]=_0xa4f3b1(0x339),_0x4c0de3[_0x4c0de3[_0xa4f3b1(0x26d)]=0x232c]='LICENSE_EXPORT_SIZE_EXCEEDED',_0x4c0de3[_0x4c0de3[_0xa4f3b1(0x28f)]=0x232d]='LICENSE_DISTRO_REJECTED',_0x4c0de3[_0x4c0de3[_0xa4f3b1(0x1b7)]=0x2711]=_0xa4f3b1(0x1b7),_0x4c0de3[_0x4c0de3['YUUMI_URL_COL_OUT_OF_RANGE']=0x2712]=_0xa4f3b1(0x1de),_0x4c0de3[_0x4c0de3[_0xa4f3b1(0x3b9)]=0x2713]=_0xa4f3b1(0x3b9),_0x4c0de3[_0x4c0de3[_0xa4f3b1(0x296)]=0x2714]=_0xa4f3b1(0x296),_0x4c0de3[_0x4c0de3[_0xa4f3b1(0x40f)]=0x2af9]=_0xa4f3b1(0x40f),_0x4c0de3[_0x4c0de3[_0xa4f3b1(0x1e4)]=0x2ee1]=_0xa4f3b1(0x1e4),_0x4c0de3[_0x4c0de3[_0xa4f3b1(0x1e9)]=0x2ee2]='INVALID_INVITE_CODE',_0x4c0de3[_0x4c0de3['INVITE_CODE_REQUIRED']=0x2ee3]='INVITE_CODE_REQUIRED',_0x4c0de3[_0x4c0de3[_0xa4f3b1(0x314)]=0x2ee4]=_0xa4f3b1(0x314),_0x4c0de3[_0x4c0de3['INVITE_CODE_ALREADY_BOUND']=0x2ee5]=_0xa4f3b1(0x320),_0x4c0de3[_0x4c0de3['WECHAT_HAS_BEEN_BOUND']=0x32c9]='WECHAT_HAS_BEEN_BOUND',_0x4c0de3[_0x4c0de3[_0xa4f3b1(0x1d7)]=0x32ca]='MOBILE_HAS_BEEN_BOUND',_0x4c0de3[_0x4c0de3[_0xa4f3b1(0x38c)]=0x32cb]=_0xa4f3b1(0x38c),_0x4c0de3[_0x4c0de3['UNRECOGNIZED']=-0x1]='UNRECOGNIZED',_0x4c0de3))(ke||{}),_s=Object[_0xa4f3b1(0x3f4)],hs=(_0x2bd6d5,_0x1ee0a8,_0x58fbca,_0x40ca27)=>{const _0x2a1836=_0xa4f3b1;for(var _0xade726=_0x40ca27>0x1?void 0x0:_0x40ca27?_s(_0x1ee0a8,_0x58fbca):_0x1ee0a8,_0x340ad8=_0x2bd6d5[_0x2a1836(0x236)]-0x1,_0x29029b;_0x340ad8>=0x0;_0x340ad8--)(_0x29029b=_0x2bd6d5[_0x340ad8])&&(_0xade726=_0x29029b(_0xade726)||_0xade726);return _0xade726;},de=(_0x204957,_0x1e76ba)=>(_0x44e699,_0x1f252d)=>_0x1e76ba(_0x44e699,_0x1f252d,_0x204957);exports['RemoteUniscriptService']=class extends a[_0xa4f3b1(0x273)]{constructor(_0x2c319e,_0x54a030,_0x50a81c){const _0x543568=_0xa4f3b1;super(),this['_instanceService']=_0x2c319e,this[_0x543568(0x284)]=_0x54a030,this[_0x543568(0x29a)]=_0x50a81c;}async[_0xa4f3b1(0x19d)](_0x21a8c6,_0x568894,_0x280d7f,..._0x265b49){const _0x3f6549=_0xa4f3b1;var _0x138189,_0x566d4d,_0x40734b,_0xb3cd01;const _0x4573d2=this[_0x3f6549(0x24d)][_0x3f6549(0x315)]();if(!_0x4573d2)throw new Error(_0x3f6549(0x1a4));const _0x343802=((_0x138189=this['_configService'][_0x3f6549(0x333)](u[_0x3f6549(0x241)]))!=null?_0x138189:u[_0x3f6549(0x366)])+'/'+_0x21a8c6+'/run/'+_0x568894,_0x46fa09=new URL(window[_0x3f6549(0x408)][_0x3f6549(0x3a3)]),_0x3f673d={'scriptId':_0x21a8c6,'runId':(_0x566d4d=_0x46fa09[_0x3f6549(0x2f4)][_0x3f6549(0x20d)](_0x3f6549(0x407)))!=null?_0x566d4d:'','function':_0x568894,'unitId':_0x4573d2['getUnitId'](),'argsOfFunction':JSON[_0x3f6549(0x1ae)](_0x265b49),'invokeId':(_0x40734b=_0x280d7f[_0x3f6549(0x279)])!=null?_0x40734b:'','executionId':(_0xb3cd01=_0x280d7f[_0x3f6549(0x3cb)])!=null?_0xb3cd01:''};try{const _0x542c2d=await this[_0x3f6549(0x284)][_0x3f6549(0x1a8)](_0x343802,{'body':_0x3f673d});return _0x542c2d[_0x3f6549(0x34b)]['error']&&_0x542c2d[_0x3f6549(0x34b)][_0x3f6549(0x194)][_0x3f6549(0x215)]!==ke['OK']?_0x3f6549(0x1ed):_0x542c2d[_0x3f6549(0x34b)][_0x3f6549(0x392)];}catch{return _0x3f6549(0x1ed);}}},exports[_0xa4f3b1(0x3af)]=hs([de(0x0,a[_0xa4f3b1(0x22e)]),de(0x1,a[_0xa4f3b1(0x3ee)](q[_0xa4f3b1(0x3b2)])),de(0x2,a['IConfigService'])],exports[_0xa4f3b1(0x3af)]),exports[_0xa4f3b1(0x31b)]=je,exports[_0xa4f3b1(0x3d4)]=Ee,exports['SheetCollabCursorShape']=Ae,exports['WebBrowserSingleActiveUnitService']=ls,exports[_0xa4f3b1(0x246)]=Be;
|
package/lib/cjs/locale/en-US.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';
|
|
1
|
+
'use strict';const _0x2c99c7=_0xf4fa;(function(_0x20938f,_0x5ef657){const _0x2fdbbf=_0xf4fa,_0xb1988d=_0x20938f();while(!![]){try{const _0x3e00eb=-parseInt(_0x2fdbbf(0xec))/0x1+parseInt(_0x2fdbbf(0xe3))/0x2+-parseInt(_0x2fdbbf(0xe2))/0x3+-parseInt(_0x2fdbbf(0xee))/0x4*(-parseInt(_0x2fdbbf(0xdb))/0x5)+-parseInt(_0x2fdbbf(0xe5))/0x6+parseInt(_0x2fdbbf(0xf2))/0x7+-parseInt(_0x2fdbbf(0xef))/0x8*(-parseInt(_0x2fdbbf(0xf0))/0x9);if(_0x3e00eb===_0x5ef657)break;else _0xb1988d['push'](_0xb1988d['shift']());}catch(_0xcd7daa){_0xb1988d['push'](_0xb1988d['shift']());}}}(_0x3ea6,0x9bbc7));function _0xf4fa(_0x278497,_0x29cef5){const _0x3ea62f=_0x3ea6();return _0xf4fa=function(_0xf4fa59,_0x1ebc16){_0xf4fa59=_0xf4fa59-0xdb;let _0x2c4f01=_0x3ea62f[_0xf4fa59];return _0x2c4f01;},_0xf4fa(_0x278497,_0x29cef5);}const e={'collab-client':{'tooltip':{'reconnect':_0x2c99c7(0xe6)}},'collabStatus':{'fetchMiss':_0x2c99c7(0xdc),'conflict':_0x2c99c7(0xea),'notCollab':_0x2c99c7(0xf1),'synced':_0x2c99c7(0xed),'syncing':_0x2c99c7(0xe8),'offline':'Offline,\x20edits\x20would\x20be\x20save\x20on\x20local'},'session':{'connection-failed':_0x2c99c7(0xeb),'will-retry':_0x2c99c7(0xe9),'room-full':_0x2c99c7(0xe0),'collaboration-timeout':_0x2c99c7(0xe1)},'conflict':{'title':_0x2c99c7(0xe7),'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':_0x2c99c7(0xde),'content':_0x2c99c7(0xdf)},'collaboration':{'single-unit':{'warning':'You\x20opened\x20the\x20same\x20file\x20in\x20another\x20tab.\x20In\x20case\x20of\x20data\x20missing,\x20you\x20cannot\x20edit\x20on\x20this\x20tab.'},'closeRoom':_0x2c99c7(0xdd)},'auth':{'needGotoLoginAlert':_0x2c99c7(0xe4)}};function _0x3ea6(){const _0x39adb6=['Syncing\x20server\x20data...','Editing\x20privileges\x20were\x20revoked\x20because\x20the\x20collaborative\x20room\x20was\x20closed.','Authentication\x20Error','Your\x20actions\x20are\x20conflicting\x20with\x20the\x20server\x27s\x20permissions.\x20Please\x20save\x20your\x20local\x20edits\x20elsewhere\x20as\x20they\x20will\x20be\x20discarded\x20after\x20refreshing\x20the\x20page.','Collaboration\x20room\x20is\x20full.\x20You\x20edits\x20would\x20be\x20saved\x20locally.','The\x20server\x20is\x20not\x20responding\x20to\x20your\x20collaboration\x20request.\x20Your\x20edits\x20would\x20be\x20saved\x20locally.','2035128oGiVhU','1736656zxmFUm','Your\x20login\x20has\x20expired,\x20click\x20OK\x20to\x20re-login,\x20click\x20Cancel\x20to\x20save\x20your\x20local\x20edits.','5284194NCmjwR','Click\x20to\x20Reconnect','Collaboration\x20Conflict','Syncing...','Connection\x20failed,\x20we\x20retry\x20in\x20a\x20while.','Edit\x20conflicts','Connection\x20failed,\x20please\x20check\x20your\x20network.','844257vPsKvf','Synced','12372ZBfywf','8xqUJuJ','16515117kRHfhA','Local\x20file','2256947gybZdC','25rLrjqX'];_0x3ea6=function(){return _0x39adb6;};return _0x3ea6();}module['exports']=e;
|