@univerjs-pro/collaboration-client-ui 0.8.0-nightly.202505271607 → 0.8.0-nightly.202505291607
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 +18 -18
package/lib/cjs/facade.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';function
|
|
1
|
+
'use strict';function _0xe460(_0x3349e0,_0x1bcefe){const _0x1660df=_0x1660();return _0xe460=function(_0xe4601f,_0xf91e4e){_0xe4601f=_0xe4601f-0x9c;let _0x35bb24=_0x1660df[_0xe4601f];return _0x35bb24;},_0xe460(_0x3349e0,_0x1bcefe);}const _0x1344ea=_0xe460;(function(_0x171719,_0x4ad4aa){const _0x13d562=_0xe460,_0x263e51=_0x171719();while(!![]){try{const _0xd2cf12=-parseInt(_0x13d562(0xa8))/0x1*(parseInt(_0x13d562(0x9d))/0x2)+parseInt(_0x13d562(0xa2))/0x3*(parseInt(_0x13d562(0xa9))/0x4)+parseInt(_0x13d562(0xa1))/0x5+parseInt(_0x13d562(0xa0))/0x6+-parseInt(_0x13d562(0xab))/0x7+-parseInt(_0x13d562(0x9e))/0x8+-parseInt(_0x13d562(0xa5))/0x9;if(_0xd2cf12===_0x4ad4aa)break;else _0x263e51['push'](_0x263e51['shift']());}catch(_0x386d16){_0x263e51['push'](_0x263e51['shift']());}}}(_0x1660,0xe9ffd));function _0x1660(){const _0x2215eb=['450fQlBng','44LhbaYd','@univerjs-pro/collaboration-client-ui','4509043JLIKSN','_injector','498rRTNug','9796472QuKjvh','RemoteUniscriptService','7481166ESwpdo','6784845bLyFfI','355848iQllCY','FUniver','@univerjs/core/facade','8724483vdtJqD','runOnServer','extend'];_0x1660=function(){return _0x2215eb;};return _0x1660();}const t=require(_0x1344ea(0xaa)),e=require(_0x1344ea(0xa4));class c extends e[_0x1344ea(0xa3)]{[_0x1344ea(0xa6)](_0x4a2621,_0x3030c6,..._0x409fce){const _0x6fd44d=_0x1344ea;return this[_0x6fd44d(0x9c)]['get'](t[_0x6fd44d(0x9f)])[_0x6fd44d(0xa6)](_0x4a2621,_0x3030c6,{},..._0x409fce);}}e[_0x1344ea(0xa3)][_0x1344ea(0xa7)](c);
|
package/lib/cjs/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const _0x38408b=_0x43b7;(function(_0x983f6a,_0xba1ef1){const _0x1d25c1=_0x43b7,_0xcae76b=_0x983f6a();while(!![]){try{const _0x59c79b=parseInt(_0x1d25c1(0x2c2))/0x1*(-parseInt(_0x1d25c1(0x232))/0x2)+-parseInt(_0x1d25c1(0x2d3))/0x3*(-parseInt(_0x1d25c1(0x2c6))/0x4)+parseInt(_0x1d25c1(0x2bb))/0x5+parseInt(_0x1d25c1(0x22f))/0x6+-parseInt(_0x1d25c1(0x299))/0x7*(parseInt(_0x1d25c1(0x12f))/0x8)+parseInt(_0x1d25c1(0x15f))/0x9*(parseInt(_0x1d25c1(0x287))/0xa)+-parseInt(_0x1d25c1(0x330))/0xb;if(_0x59c79b===_0xba1ef1)break;else _0xcae76b['push'](_0xcae76b['shift']());}catch(_0x4c4c34){_0xcae76b['push'](_0xcae76b['shift']());}}}(_0x3d85,0x81932));var Ve=Object[_0x38408b(0x135)],Xe=(_0x42d007,_0x128a3f,_0x314cc2)=>_0x128a3f in _0x42d007?Ve(_0x42d007,_0x128a3f,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x314cc2}):_0x42d007[_0x128a3f]=_0x314cc2,h=(_0x56af6d,_0x43368e,_0x2091b8)=>Xe(_0x56af6d,typeof _0x43368e!=_0x38408b(0x27e)?_0x43368e+'':_0x43368e,_0x2091b8);Object[_0x38408b(0x135)](exports,Symbol[_0x38408b(0x256)],{'value':_0x38408b(0x226)});const u=require(_0x38408b(0x14d)),a=require('@univerjs/core'),p=require(_0x38408b(0x263)),G=require(_0x38408b(0x1ec)),b=require(_0x38408b(0xf0)),Ge=require('@univerjs/drawing'),d=require(_0x38408b(0xf2)),Y=require('@univerjs/docs'),m=require(_0x38408b(0x206)),Ee=require(_0x38408b(0x219)),g=require(_0x38408b(0x33a)),$=require(_0x38408b(0x142)),X=require(_0x38408b(0x349)),w=require(_0x38408b(0x1d8)),T=require('@univerjs/ui'),D=require(_0x38408b(0x245)),M=require('react'),Ke=require(_0x38408b(0x262));var qe=Object[_0x38408b(0x1f1)],ze=(_0xb63aa7,_0x3122ff,_0x109cc3,_0x1adb46)=>{const _0x385899=_0x38408b;for(var _0x414345=_0x1adb46>0x1?void 0x0:_0x1adb46?qe(_0x3122ff,_0x109cc3):_0x3122ff,_0x48750b=_0xb63aa7[_0x385899(0x141)]-0x1,_0x1eb792;_0x48750b>=0x0;_0x48750b--)(_0x1eb792=_0xb63aa7[_0x48750b])&&(_0x414345=_0x1eb792(_0x414345)||_0x414345);return _0x414345;},Te=(_0x17b250,_0x2f0476)=>(_0x21d4dc,_0x30c62a)=>_0x2f0476(_0x21d4dc,_0x30c62a,_0x17b250);let de=class extends a['RxDisposable']{constructor(_0x1215c4,_0x3589c6){const _0x33f8ef=_0x38408b;super(),this['_docClipboardService']=_0x1215c4,this[_0x33f8ef(0xf5)]=_0x3589c6,this['_init']();}[_0x38408b(0x222)](){const _0x26fa5a=_0x38408b,_0x3edce4=this;this[_0x26fa5a(0x344)](this['_docClipboardService']['addClipboardHook']({'onBeforePasteImage':async _0x206b58=>{const _0x408529=_0x26fa5a,_0x56bd68=await _0x3edce4[_0x408529(0xf5)][_0x408529(0x1e0)](_0x206b58);return _0x56bd68?{'source':_0x56bd68[_0x408529(0x2f3)],'imageSourceType':_0x56bd68[_0x408529(0xf3)]}:null;}}));}};de=ze([Te(0x0,b[_0x38408b(0x1cf)]),Te(0x1,Ge[_0x38408b(0x23a)])],de);const Oe=[_0x38408b(0x348),'jiqing.500',_0x38408b(0x139),'red.300',_0x38408b(0x327),_0x38408b(0x343)];class me extends a[_0x38408b(0x208)]{constructor(){const _0x3aff4c=_0x38408b;super(...arguments),h(this,_0x3aff4c(0x356),new Map()),h(this,_0x3aff4c(0x30d),0x0);}[_0x38408b(0x172)](_0x2b9b77){const _0x2505b4=_0x38408b;if(this[_0x2505b4(0x356)]['has'](_0x2b9b77))return this[_0x2505b4(0x356)][_0x2505b4(0x313)](_0x2b9b77);const _0x2e9f99=Oe[this[_0x2505b4(0x30d)]];return this[_0x2505b4(0x30d)]=(this['_colorIndex']+0x1)%Oe[_0x2505b4(0x141)],this['_assignedColors'][_0x2505b4(0x1dc)](_0x2b9b77,_0x2e9f99),_0x2e9f99;}}function we(_0x5af7cd){const _0x2d4590=_0x38408b;let _0x17ac3b='';for(const _0x34407d of _0x5af7cd){const {startOffset:_0x1f8ea9,endOffset:_0x52732c,isActive:_0x535ca0,rangeType:_0x319c64,segmentId:_0x44c364,segmentPage:_0x2be78d}=_0x34407d;_0x17ac3b[_0x2d4590(0x141)]&&(_0x17ac3b+=','),_0x17ac3b+=_0x1f8ea9+':'+_0x52732c+':'+(_0x535ca0?'1':'0')+':'+_0x319c64+':'+_0x44c364+':'+_0x2be78d;}return _0x17ac3b;}function Je(_0x1e3719){const _0x58d325=_0x38408b,_0x32feec=_0x1e3719[_0x58d325(0x1f8)](','),_0x2c7a35=[];for(const _0x261dce of _0x32feec){const [_0x262a10,_0x2e3e49,_0x9571cd,_0x56e12c,_0x540b42,_0x1ec593]=_0x261dce[_0x58d325(0x1f8)](':');_0x2c7a35['push']({'startOffset':Number(_0x262a10),'endOffset':Number(_0x2e3e49),'collapsed':_0x262a10===_0x2e3e49,'isActive':_0x9571cd==='1','rangeType':_0x56e12c===a[_0x58d325(0xee)][_0x58d325(0x35f)]?a[_0x58d325(0xee)]['TEXT']:a[_0x58d325(0xee)][_0x58d325(0x14f)],'segmentId':typeof _0x540b42==_0x58d325(0x134)?String(_0x540b42):'','segmentPage':Number(_0x1ec593!=null?_0x1ec593:-0x1)});}return _0x2c7a35['some'](_0x13038b=>_0x13038b[_0x58d325(0x209)])||(_0x2c7a35[0x0][_0x58d325(0x209)]=!0x0),_0x2c7a35;}class Ce extends a['RxDisposable']{constructor(){const _0x542c6b=_0x38408b;super(...arguments),h(this,_0x542c6b(0x189),new d[(_0x542c6b(0x365))](null)),h(this,_0x542c6b(0x252),this[_0x542c6b(0x189)]['asObservable']());}['syncEditingCollabCursor'](_0x30162f){const _0x488f1b=_0x38408b,{unitID:_0x1e12eb,memberID:_0x59f6d2,textRanges:_0x4180c6}=_0x30162f,_0x4f36a1=we(_0x4180c6);if(_0x4f36a1==='')return;const _0x4463bc={'unitID':_0x1e12eb,'memberID':_0x59f6d2,'selection':_0x4f36a1};this[_0x488f1b(0x189)]['next'](_0x4463bc);}}var Ze=Object['getOwnPropertyDescriptor'],Qe=(_0x5160c9,_0x49dd8c,_0x2c2560,_0x225457)=>{const _0x56b74d=_0x38408b;for(var _0x210d51=_0x225457>0x1?void 0x0:_0x225457?Ze(_0x49dd8c,_0x2c2560):_0x49dd8c,_0xd054a6=_0x5160c9[_0x56b74d(0x141)]-0x1,_0x184338;_0xd054a6>=0x0;_0xd054a6--)(_0x184338=_0x5160c9[_0xd054a6])&&(_0x210d51=_0x184338(_0x210d51)||_0x210d51);return _0x210d51;},L=(_0x53e665,_0x516410)=>(_0x20fd5f,_0x2072ed)=>_0x516410(_0x20fd5f,_0x2072ed,_0x53e665);const et=0x12c,tt=0x64;function _0x43b7(_0x39c36f,_0x2b0dad){const _0x3d85b2=_0x3d85();return _0x43b7=function(_0x43b71c,_0x17cc53){_0x43b71c=_0x43b71c-0xee;let _0x1a8b37=_0x3d85b2[_0x43b71c];return _0x1a8b37;},_0x43b7(_0x39c36f,_0x2b0dad);}let fe=class extends a[_0x38408b(0x20e)]{constructor(_0x540784,_0x1a9bb8,_0x56ef80,_0x3ca323,_0x1d77d,_0xe7c820,_0x220cc4,_0x28bb1a,_0x47f19c){const _0x4e6ac8=_0x38408b;super(),h(this,_0x4e6ac8(0x2aa),!0x1),h(this,_0x4e6ac8(0x222),!0x1),h(this,_0x4e6ac8(0x366),new d[(_0x4e6ac8(0x365))](new Map())),h(this,'cursorInfo$',this['_cursorInfo$']['asObservable']()),h(this,_0x4e6ac8(0x282),new d[(_0x4e6ac8(0x365))]([])),h(this,_0x4e6ac8(0x1f6),this[_0x4e6ac8(0x282)]['pipe'](d[_0x4e6ac8(0x26a)](et))),h(this,'_updateLocalCursor',a[_0x4e6ac8(0x16c)](_0x2ea78b=>{const _0x2307e7=_0x4e6ac8,_0x9ad52a={'eventID':m[_0x2307e7(0x332)][_0x2307e7(0x131)],'data':{'unitID':this[_0x2307e7(0x2c1)],'memberID':this[_0x2307e7(0x1fb)][_0x2307e7(0x187)](),'selection':we(_0x2ea78b)}};this[_0x2307e7(0x1fb)][_0x2307e7(0x2d9)](_0x9ad52a,this[_0x2307e7(0x2c1)]);},tt)),(this[_0x4e6ac8(0x2c1)]=_0x540784,this[_0x4e6ac8(0x1fb)]=_0x1a9bb8,this['_injector']=_0x56ef80,this[_0x4e6ac8(0x32d)]=_0x3ca323,this[_0x4e6ac8(0x296)]=_0x1d77d,this[_0x4e6ac8(0x197)]=_0xe7c820,this[_0x4e6ac8(0x22b)]=_0x220cc4,this[_0x4e6ac8(0x2fe)]=_0x28bb1a,this[_0x4e6ac8(0x26d)]=_0x47f19c);}get['cursorInfo'](){const _0x41f5cb=_0x38408b;return this['_cursorInfo$'][_0x41f5cb(0x106)]();}get[_0x38408b(0x36e)](){return this['_roomMembers$']['getValue']();}[_0x38408b(0x2ab)](){const _0x4e2d68=_0x38408b;super[_0x4e2d68(0x2ab)](),this[_0x4e2d68(0x366)][_0x4e2d68(0x24b)](new Map()),this[_0x4e2d68(0x366)][_0x4e2d68(0x13b)](),this[_0x4e2d68(0x282)][_0x4e2d68(0x24b)]([]),this[_0x4e2d68(0x282)]['complete']();}[_0x38408b(0x2dd)](){const _0x4f5df2=_0x38408b;this[_0x4f5df2(0x222)]||(this['_init']=!0x0,this[_0x4f5df2(0x1fb)]['sessionStatus$'][_0x4f5df2(0x1d7)](d[_0x4f5df2(0x101)](this[_0x4f5df2(0x283)]))[_0x4f5df2(0x19c)](_0x346b7d=>{const _0x287901=_0x4f5df2;_0x346b7d===u['SessionStatus'][_0x287901(0x20b)]?this['_toggleOnline']():this[_0x287901(0x244)]();}),this[_0x4f5df2(0x1fb)]['event$'][_0x4f5df2(0x1d7)](d[_0x4f5df2(0x101)](this['dispose$']))['subscribe'](_0x4b1a7f=>{const _0x4586d8=_0x4f5df2,_0x491027=_0x4b1a7f[_0x4586d8(0x128)];_0x491027===m[_0x4586d8(0x332)][_0x4586d8(0x131)]&&this[_0x4586d8(0x384)](_0x4b1a7f),_0x491027===m['CollaborationEvent'][_0x4586d8(0x29e)]&&this[_0x4586d8(0x269)](_0x4b1a7f);}),this['disposeWithMe'](this[_0x4f5df2(0x26d)][_0x4f5df2(0x171)](_0x47eb23=>{const _0x468c74=_0x4f5df2,_0x2a3de9=_0x47eb23[_0x468c74(0x31e)];_0x2a3de9!=null&&this[_0x468c74(0x2aa)]&&_0x47eb23['id']===Y[_0x468c74(0x238)]['id']&&_0x2a3de9[_0x468c74(0x221)]===this[_0x468c74(0x2c1)]&&_0x2a3de9[_0x468c74(0x199)]===!0x1&&_0x2a3de9[_0x468c74(0x1f2)][_0x468c74(0x141)]>0x0&&this[_0x468c74(0x129)](_0x2a3de9[_0x468c74(0x1f2)]);})),this[_0x4f5df2(0x197)][_0x4f5df2(0x252)][_0x4f5df2(0x1d7)](d[_0x4f5df2(0x101)](this['dispose$']))[_0x4f5df2(0x19c)](_0x3141ea=>{const _0x1a1dbc=_0x4f5df2;if((_0x3141ea==null?void 0x0:_0x3141ea[_0x1a1dbc(0x2c1)])!==this[_0x1a1dbc(0x2c1)])return;const _0x3bf73a={'eventID':m[_0x1a1dbc(0x332)]['UPDATE_CURSOR'],'data':_0x3141ea};this[_0x1a1dbc(0x384)](_0x3bf73a);}),this[_0x4f5df2(0x344)](this['_commandService'][_0x4f5df2(0x171)](_0x5be077=>{const _0x9c2932=_0x4f5df2;if(_0x5be077[_0x9c2932(0x31e)]==null)return;const _0x4236c9=_0x5be077['params'];if(_0x5be077['id']!==Y[_0x9c2932(0x293)]['id']||_0x4236c9[_0x9c2932(0x221)]!==this[_0x9c2932(0x2c1)])return;const _0x1775b3={'id':_0x9c2932(0x34c),'params':_0x4236c9},_0x2cd71c=this['cursorInfo'];for(const [_0x480a3a,_0x52d078]of _0x2cd71c){const _0xbc665={'id':_0x9c2932(0x34c),'params':{'unitId':this[_0x9c2932(0x2c1)],'actions':null,'textRanges':_0x52d078[_0x9c2932(0x1f2)]}},_0x1d69df=this[_0x9c2932(0x22b)][_0x9c2932(0x2a4)](_0x1775b3,_0xbc665,!0x1);if(m['isTransformMutationFailure'](_0x1d69df))throw _0x1d69df['error'];_0x2cd71c['set'](_0x480a3a,{..._0x52d078,'ranges':_0x1d69df[_0x9c2932(0x379)][_0x9c2932(0x31e)][_0x9c2932(0x1f4)]});}queueMicrotask(()=>{const _0x3f7dec=_0x9c2932;this['_cursorInfo$'][_0x3f7dec(0x24b)](_0x2cd71c);});})));}[_0x38408b(0x384)](_0x117607){const _0x1f05ab=_0x38408b;var _0x2ecc1b,_0x431f0c;const {memberID:_0x100b65,selection:_0x1d234e}=_0x117607[_0x1f05ab(0x26f)],_0x55a617=Je(_0x1d234e),_0x1dbdd8=(_0x431f0c=(_0x2ecc1b=this[_0x1f05ab(0x296)]['getMember'](this[_0x1f05ab(0x2c1)],_0x100b65))==null?void 0x0:_0x2ecc1b[_0x1f05ab(0x21c)])!=null?_0x431f0c:_0x1f05ab(0x1a9),_0x522cdc={'color':this[_0x1f05ab(0x32d)]['assignAColorForMemberID'](_0x100b65),'name':_0x1dbdd8,'ranges':_0x55a617},_0x44eee7=this[_0x1f05ab(0x2ba)];_0x44eee7['set'](_0x100b65,_0x522cdc),this[_0x1f05ab(0x366)][_0x1f05ab(0x24b)](_0x44eee7);}[_0x38408b(0x269)](_0x28b89c){const _0x47476c=_0x38408b,{memberID:_0x2f75f8}=_0x28b89c[_0x47476c(0x26f)],_0x48ac27=this[_0x47476c(0x2ba)];_0x48ac27['delete'](_0x2f75f8),this['_cursorInfo$'][_0x47476c(0x24b)](_0x48ac27);}[_0x38408b(0x2c4)](){const _0x3c577c=_0x38408b;var _0xfc8618;if(this['_online']=!0x0,((_0xfc8618=this[_0x3c577c(0x2fe)]['getFocusedUnit']())==null?void 0x0:_0xfc8618[_0x3c577c(0x36d)]())!==this['unitID'])return;const _0x47ac74=this[_0x3c577c(0x10c)]['get'](Y[_0x3c577c(0x166)])[_0x3c577c(0xf6)]();Array[_0x3c577c(0x347)](_0x47ac74)&&_0x47ac74[_0x3c577c(0x141)]>0x0&&this[_0x3c577c(0x129)](_0x47ac74);}[_0x38408b(0x244)](){const _0x38e9e8=_0x38408b;this[_0x38e9e8(0x2aa)]=!0x1;}};fe=Qe([L(0x2,a[_0x38408b(0x136)](a[_0x38408b(0x2a8)])),L(0x3,a[_0x38408b(0x136)](me)),L(0x4,a['Inject'](u[_0x38408b(0x2de)])),L(0x5,a[_0x38408b(0x136)](Ce)),L(0x6,m[_0x38408b(0x315)]),L(0x7,a['IUniverInstanceService']),L(0x8,a[_0x38408b(0x380)])],fe);var st=Object[_0x38408b(0x1f1)],it=(_0x5791ff,_0x1d55b6,_0x54369f,_0x2b21f5)=>{const _0x27efbd=_0x38408b;for(var _0x33e814=_0x2b21f5>0x1?void 0x0:_0x2b21f5?st(_0x1d55b6,_0x54369f):_0x1d55b6,_0x1fe44d=_0x5791ff[_0x27efbd(0x141)]-0x1,_0x25f1f8;_0x1fe44d>=0x0;_0x1fe44d--)(_0x25f1f8=_0x5791ff[_0x1fe44d])&&(_0x33e814=_0x25f1f8(_0x33e814)||_0x33e814);return _0x33e814;},A=(_0x270856,_0x33a966)=>(_0x37cd01,_0x3c7310)=>_0x33a966(_0x37cd01,_0x3c7310,_0x270856);const nt=0x12c,rt=0x64,ot=()=>{let _0x27de54=[],_0xb01af9=!0x1;return _0x2c46be=>{const _0x4cc9bb=_0x43b7;_0x27de54[_0x4cc9bb(0x22e)](_0x2c46be),_0xb01af9||(_0xb01af9=!0x0,setTimeout(()=>{_0x27de54['forEach'](_0x57ff3e=>_0x57ff3e()),_0x27de54=[],_0xb01af9=!0x1;}));};};let Se=class extends a[_0x38408b(0x20e)]{constructor(_0x9480c8,_0x3e4b41,_0x244bcc,_0x5a5f78,_0x8db7d7,_0x48d670,_0xb79621,_0x122b29){const _0x29349d=_0x38408b;super(),h(this,_0x29349d(0x2aa),!0x1),h(this,'_init',!0x1),h(this,_0x29349d(0x366),new d[(_0x29349d(0x365))](new Map())),h(this,_0x29349d(0x335),this['_cursorInfo$']['asObservable']()),h(this,_0x29349d(0x282),new d[(_0x29349d(0x365))]([])),h(this,'roomMembers$',this[_0x29349d(0x282)][_0x29349d(0x1d7)](d[_0x29349d(0x26a)](nt))),h(this,_0x29349d(0x129),a[_0x29349d(0x16c)]((_0x3d60f7,_0x3b7465)=>{const _0x5be6a9=_0x29349d,_0xb36af0={'eventID':m[_0x5be6a9(0x332)]['UPDATE_CURSOR'],'data':{'unitID':this[_0x5be6a9(0x2c1)],'memberID':this['_session']['getMemberID'](),'selection':Ee['serializeRangeWithSheet'](_0x3d60f7,_0x3b7465['range'])}};this['_session'][_0x5be6a9(0x2d9)](_0xb36af0,this['unitID']);},rt)),(this[_0x29349d(0x2c1)]=_0x9480c8,this['_session']=_0x3e4b41,this[_0x29349d(0x10c)]=_0x244bcc,this['_colorAssignService']=_0x5a5f78,this[_0x29349d(0x296)]=_0x8db7d7,this['_univerInstanceService']=_0x48d670,this[_0x29349d(0x26d)]=_0xb79621,this[_0x29349d(0x1a7)]=_0x122b29);}get[_0x38408b(0x2ba)](){const _0x32e1cf=_0x38408b;return this['_cursorInfo$'][_0x32e1cf(0x106)]();}get[_0x38408b(0x36e)](){const _0x3a0352=_0x38408b;return this[_0x3a0352(0x282)][_0x3a0352(0x106)]();}[_0x38408b(0x2ab)](){const _0x174f49=_0x38408b;super[_0x174f49(0x2ab)](),this[_0x174f49(0x366)][_0x174f49(0x24b)](new Map()),this[_0x174f49(0x366)][_0x174f49(0x13b)](),this['_roomMembers$'][_0x174f49(0x24b)]([]),this[_0x174f49(0x282)][_0x174f49(0x13b)]();}[_0x38408b(0x2dd)](){const _0x3ceffe=_0x38408b;this[_0x3ceffe(0x222)]||(this[_0x3ceffe(0x222)]=!0x0,this['_session'][_0x3ceffe(0x14b)][_0x3ceffe(0x1d7)](d[_0x3ceffe(0x101)](this[_0x3ceffe(0x283)]))[_0x3ceffe(0x19c)](_0x25a392=>{const _0x3699c9=_0x3ceffe;_0x25a392===u[_0x3699c9(0x231)][_0x3699c9(0x20b)]?this[_0x3699c9(0x2c4)]():this[_0x3699c9(0x244)]();}),this['_session']['event$']['pipe'](d[_0x3ceffe(0x101)](this[_0x3ceffe(0x283)]))[_0x3ceffe(0x19c)](_0x5b87be=>{const _0x7a5c89=_0x3ceffe,_0x37d970=_0x5b87be['eventID'];_0x37d970===m[_0x7a5c89(0x332)][_0x7a5c89(0x131)]&&this['_onCursorUpdate'](_0x5b87be),_0x37d970===m[_0x7a5c89(0x332)][_0x7a5c89(0x29e)]&&this[_0x7a5c89(0x269)](_0x5b87be);}),this[_0x3ceffe(0x1cd)](),this[_0x3ceffe(0x344)](this[_0x3ceffe(0x26d)][_0x3ceffe(0x171)](_0x3b0d46=>{const _0x435226=_0x3ceffe;if(this[_0x435226(0x2aa)]&&_0x3b0d46['id']===g[_0x435226(0x15d)]['id']&&_0x3b0d46[_0x435226(0x31e)][_0x435226(0x221)]===this[_0x435226(0x2c1)]){const _0x36a3bb=_0x3b0d46[_0x435226(0x31e)];this[_0x435226(0x129)](_0x36a3bb[_0x435226(0x28b)],_0x36a3bb[_0x435226(0x378)][0x0]);}})));}[_0x38408b(0x384)](_0x23a3c2){const _0x1b79a0=_0x38408b;var _0x152f78,_0x42f137;const {memberID:_0x2f7594,selection:_0x4705c0}=_0x23a3c2[_0x1b79a0(0x26f)],{sheetName:_0x332125,range:_0x6961ec}=Ee[_0x1b79a0(0x230)](_0x4705c0),_0x20b90b={'name':(_0x42f137=(_0x152f78=this[_0x1b79a0(0x296)][_0x1b79a0(0x361)](this['unitID'],_0x2f7594))==null?void 0x0:_0x152f78['name'])!=null?_0x42f137:_0x1b79a0(0x1a9),'range':this['_getMergeRange'](_0x332125,_0x6961ec),'sheetID':_0x332125,'color':this[_0x1b79a0(0x32d)][_0x1b79a0(0x172)](_0x2f7594),'selection':_0x4705c0},_0x388a87=this['cursorInfo'];_0x388a87[_0x1b79a0(0x1dc)](_0x2f7594,_0x20b90b),this[_0x1b79a0(0x366)]['next'](_0x388a87);}['_onCursorDelete'](_0x4bfc25){const _0x1bd487=_0x38408b,{memberID:_0x70d286}=_0x4bfc25[_0x1bd487(0x26f)],_0x939d31=this[_0x1bd487(0x2ba)];_0x939d31[_0x1bd487(0x100)](_0x70d286),this[_0x1bd487(0x366)]['next'](_0x939d31);}[_0x38408b(0x2f4)](_0x4e3d60,_0x471778){const _0x2a6d7c=_0x38408b;var _0x10dafb,_0x5bebf2;const _0x4a3768=(_0x5bebf2=(_0x10dafb=this[_0x2a6d7c(0x2fe)][_0x2a6d7c(0xef)](this[_0x2a6d7c(0x2c1)]))==null?void 0x0:_0x10dafb[_0x2a6d7c(0x2fa)](_0x4e3d60))==null?void 0x0:_0x5bebf2[_0x2a6d7c(0x200)]();return(_0x4a3768==null?void 0x0:_0x4a3768[_0x2a6d7c(0x2cb)](_0x49a823=>a['Rectangle'][_0x2a6d7c(0x17c)](_0x49a823,_0x471778)))||_0x471778;}[_0x38408b(0x1cd)](){const _0x56f028=_0x38408b,_0x25e4d6=new a['DisposableCollection'](),_0xa6281=ot(),_0x42b069=()=>{const _0x2f626f=_0x43b7;_0x25e4d6[_0x2f626f(0x2ab)]();const _0x1ffae2=(_0x4856dc,_0x599320,_0x3478b1,_0x10cfda)=>{const _0x8427a0=_0x2f626f;let _0x475649=[];switch(_0x4856dc['id']){case g['EffectRefRangId'][_0x8427a0(0x147)]:{_0x475649=g[_0x8427a0(0x1b4)](_0x4856dc,_0x10cfda);break;}case g[_0x8427a0(0x2a1)][_0x8427a0(0x237)]:{_0x475649=g[_0x8427a0(0x1ea)](_0x4856dc,_0x10cfda);break;}case g['EffectRefRangId'][_0x8427a0(0x17d)]:{_0x475649=g[_0x8427a0(0x2fd)](_0x4856dc,_0x10cfda);break;}case g[_0x8427a0(0x2a1)][_0x8427a0(0x28a)]:{_0x475649=g[_0x8427a0(0x27a)](_0x4856dc,_0x10cfda);break;}case g[_0x8427a0(0x2a1)][_0x8427a0(0x27d)]:{_0x475649=g['handleInsertRangeMoveRight'](_0x4856dc,_0x10cfda);break;}case g[_0x8427a0(0x2a1)][_0x8427a0(0x1be)]:{_0x475649=g[_0x8427a0(0x36b)](_0x4856dc,_0x10cfda);break;}case g[_0x8427a0(0x2a1)][_0x8427a0(0x36a)]:{_0x475649=g[_0x8427a0(0x2e2)](_0x4856dc,_0x10cfda);break;}case g[_0x8427a0(0x2a1)][_0x8427a0(0x18b)]:{_0x475649=g[_0x8427a0(0x309)](_0x4856dc,_0x10cfda);break;}case g[_0x8427a0(0x2a1)][_0x8427a0(0x358)]:{_0x475649=g['handleIRemoveRow'](_0x4856dc,_0x10cfda);break;}}const _0x40c31e=g[_0x8427a0(0x133)](_0x475649,_0x10cfda),_0x3d0d91=this['cursorInfo']['get'](_0x599320);if(_0x3d0d91&&_0x40c31e){const _0x2cab36={..._0x3d0d91,'range':_0x40c31e};this[_0x8427a0(0x2ba)][_0x8427a0(0x1dc)](_0x599320,_0x2cab36),_0xa6281(()=>{const _0x55702b=_0x8427a0,_0x42534c=this[_0x55702b(0x1a7)]['registerRefRange'](_0x40c31e,_0x434397=>(_0x42534c['dispose'](),_0x1ffae2(_0x434397,_0x599320,_0x3478b1,_0x40c31e)));_0x25e4d6[_0x55702b(0x318)](_0x42534c);});}return{'redos':[],'undos':[]};};this['cursorInfo'][_0x2f626f(0x1aa)]((_0x325103,_0x56ff44)=>{const _0x375f64=_0x2f626f,{range:_0x23f0a6,sheetID:_0x494e41}=_0x325103,_0xca953f=this[_0x375f64(0x1a7)][_0x375f64(0xf8)](_0x23f0a6,_0x4e4d41=>(_0xca953f['dispose'](),_0x1ffae2(_0x4e4d41,_0x56ff44,_0x494e41,_0x23f0a6)));_0x25e4d6['add'](_0xca953f);});};this[_0x56f028(0x344)](a[_0x56f028(0x210)](this[_0x56f028(0x366)][_0x56f028(0x19c)](()=>{_0x42b069();})));}[_0x38408b(0x2c4)](){const _0x3132ce=_0x38408b;var _0x37d34a,_0x313773;if(this[_0x3132ce(0x2aa)]=!0x0,((_0x37d34a=this[_0x3132ce(0x2fe)][_0x3132ce(0x375)]())==null?void 0x0:_0x37d34a['getUnitId']())!==this[_0x3132ce(0x2c1)])return;const _0xed2ea=(_0x313773=this[_0x3132ce(0x10c)]['get'](g[_0x3132ce(0x1b5)])[_0x3132ce(0xf1)]())==null?void 0x0:_0x313773[0x0],_0x3a004b=this[_0x3132ce(0x2fe)][_0x3132ce(0x23c)](a[_0x3132ce(0x1af)][_0x3132ce(0x2b2)])[_0x3132ce(0x2f9)]();_0xed2ea&&_0x3a004b&&this[_0x3132ce(0x129)](_0x3a004b['getSheetId'](),_0xed2ea);}[_0x38408b(0x244)](){this['_online']=!0x1;}};Se=it([A(0x2,a[_0x38408b(0x136)](a[_0x38408b(0x2a8)])),A(0x3,a[_0x38408b(0x136)](me)),A(0x4,a[_0x38408b(0x136)](u['MemberService'])),A(0x5,a['IUniverInstanceService']),A(0x6,a[_0x38408b(0x380)]),A(0x7,a[_0x38408b(0x136)](g[_0x38408b(0x355)]))],Se);var at=Object[_0x38408b(0x1f1)],ct=(_0x4e641a,_0xd4e3ac,_0x54dcc4,_0x1dc007)=>{const _0x273d3f=_0x38408b;for(var _0x3cf533=_0x1dc007>0x1?void 0x0:_0x1dc007?at(_0xd4e3ac,_0x54dcc4):_0xd4e3ac,_0x4eb6d3=_0x4e641a[_0x273d3f(0x141)]-0x1,_0x1328d6;_0x4eb6d3>=0x0;_0x4eb6d3--)(_0x1328d6=_0x4e641a[_0x4eb6d3])&&(_0x3cf533=_0x1328d6(_0x3cf533)||_0x3cf533);return _0x3cf533;},ie=(_0x4e1e38,_0x2a63cf)=>(_0x52bb48,_0x4b790d)=>_0x2a63cf(_0x52bb48,_0x4b790d,_0x4e1e38);let x=class extends a[_0x38408b(0x20e)]{constructor(_0x16b8a8,_0x3e30e2,_0x39af0f){const _0x24212b=_0x38408b;super(),h(this,_0x24212b(0x333),new Map()),h(this,'_entityInit$',new d[(_0x24212b(0x13a))]()),(this[_0x24212b(0x2fe)]=_0x16b8a8,this['_injector']=_0x3e30e2,this[_0x24212b(0x1e6)]=_0x39af0f,this[_0x24212b(0x222)]());}['dispose'](){const _0x315f56=_0x38408b;super['dispose'](),this[_0x315f56(0x18f)]['complete'](),this[_0x315f56(0x333)]['forEach'](_0x10f764=>_0x10f764['dispose']());}[_0x38408b(0x29b)](_0x3c2689){const _0x292133=_0x38408b;return this[_0x292133(0x333)]['has'](_0x3c2689)?this[_0x292133(0x333)][_0x292133(0x313)](_0x3c2689)[_0x292133(0x335)]:this[_0x292133(0x18f)][_0x292133(0x1d7)](d[_0x292133(0x10e)](_0x54dc2c=>_0x54dc2c[_0x292133(0x2c1)]===_0x3c2689),d[_0x292133(0x180)](_0x1f1238=>_0x1f1238['cursorInfo$']));}[_0x38408b(0x222)](){const _0x131499=_0x38408b;this[_0x131499(0x2fe)][_0x131499(0x214)](a['UniverInstanceType'][_0x131499(0x2b2)])[_0x131499(0x1d7)](d[_0x131499(0x101)](this[_0x131499(0x283)]))[_0x131499(0x19c)](async _0x21c01f=>{const _0x79394=_0x131499,_0x4af852=_0x21c01f[_0x79394(0x36d)](),_0x460bc3=await this['_startSheetCollabCursor'](_0x4af852);this[_0x79394(0x18f)][_0x79394(0x24b)](_0x460bc3),this['_entities'][_0x79394(0x1dc)](_0x4af852,_0x460bc3);}),this[_0x131499(0x2fe)]['getTypeOfUnitAdded$'](a[_0x131499(0x1af)][_0x131499(0x20f)])[_0x131499(0x1d7)](d[_0x131499(0x101)](this[_0x131499(0x283)]))['pipe'](d[_0x131499(0x10e)](_0xbfa585=>!_0xbfa585[_0x131499(0x36d)]()[_0x131499(0x23d)]('__')))[_0x131499(0x19c)](async _0x292277=>{const _0x354cd0=_0x131499,_0x223ed5=_0x292277[_0x354cd0(0x36d)](),_0x13c758=await this[_0x354cd0(0x2ee)](_0x223ed5);this[_0x354cd0(0x18f)][_0x354cd0(0x24b)](_0x13c758),this['_entities']['set'](_0x223ed5,_0x13c758);}),d[_0x131499(0x29d)](this[_0x131499(0x2fe)][_0x131499(0x239)](a['UniverInstanceType'][_0x131499(0x20f)]),this[_0x131499(0x2fe)]['getTypeOfUnitDisposed$'](a[_0x131499(0x1af)][_0x131499(0x2b2)]))[_0x131499(0x1d7)](d['takeUntil'](this[_0x131499(0x283)]))[_0x131499(0x19c)](_0x6bab3b=>{const _0x53b8b5=_0x131499,_0x5909ef=_0x6bab3b[_0x53b8b5(0x36d)](),_0x202087=this[_0x53b8b5(0x333)][_0x53b8b5(0x313)](_0x5909ef);_0x202087&&(_0x202087[_0x53b8b5(0x2ab)](),this[_0x53b8b5(0x333)]['delete'](_0x5909ef));});}async[_0x38408b(0x154)](_0x20f6a2){const _0xe009c7=_0x38408b,_0x527335=await this['_collabSessionService'][_0xe009c7(0x1d6)](_0x20f6a2),_0x242b4a=this[_0xe009c7(0x10c)]['createInstance'](Se,_0x20f6a2,_0x527335);return _0x242b4a[_0xe009c7(0x2dd)](),_0x242b4a;}async[_0x38408b(0x2ee)](_0x334c78){const _0x1968fc=_0x38408b,_0xb52d79=await this['_collabSessionService']['requireSession'](_0x334c78),_0x37ef7b=this['_injector']['createInstance'](fe,_0x334c78,_0xb52d79);return _0x37ef7b[_0x1968fc(0x2dd)](),_0x37ef7b;}};x=ct([ie(0x0,a[_0x38408b(0x104)]),ie(0x1,a[_0x38408b(0x136)](a['Injector'])),ie(0x2,a[_0x38408b(0x136)](u[_0x38408b(0x2bd)]))],x);const K=0x14,Re=0xc8,ne=0x4,lt=0x5;function _t(_0x512a6b,_0x54b830){const _0x33793a=_0x38408b;let {radius:_0xcd34d8,width:_0x1c035a,height:_0x1b7dd3}=_0x54b830;_0xcd34d8=_0xcd34d8!=null?_0xcd34d8:0x0,_0x1c035a=_0x1c035a!=null?_0x1c035a:0x1e,_0x1b7dd3=_0x1b7dd3!=null?_0x1b7dd3:0x1e;let _0x47ed04=0x0,_0x5b46e6=0x0,_0x5ea7d=0x0;_0x47ed04=_0x5b46e6=_0x5ea7d=Math[_0x33793a(0x2b7)](_0xcd34d8,_0x1c035a/0x2,_0x1b7dd3/0x2),_0x512a6b[_0x33793a(0x1b7)](),_0x512a6b[_0x33793a(0x25b)](_0x47ed04,0x0),_0x512a6b[_0x33793a(0x205)](_0x1c035a-_0x5b46e6,0x0),_0x512a6b[_0x33793a(0x2b8)](_0x1c035a-_0x5b46e6,_0x5b46e6,_0x5b46e6,Math['PI']*0x3/0x2,0x0,!0x1),_0x512a6b['lineTo'](_0x1c035a,_0x1b7dd3-_0x5ea7d),_0x512a6b['arc'](_0x1c035a-_0x5ea7d,_0x1b7dd3-_0x5ea7d,_0x5ea7d,0x0,Math['PI']/0x2,!0x1),_0x512a6b['lineTo'](0x0,_0x1b7dd3),_0x512a6b[_0x33793a(0x205)](0x0,_0x47ed04),_0x512a6b[_0x33793a(0x2b8)](_0x47ed04,_0x47ed04,_0x47ed04,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x512a6b[_0x33793a(0x367)](),_0x54b830['fill']&&(_0x512a6b['save'](),_0x512a6b[_0x33793a(0x15b)]=_0x54b830[_0x33793a(0x331)],_0x54b830[_0x33793a(0x2fc)]===_0x33793a(0x20d)?_0x512a6b[_0x33793a(0x331)](_0x33793a(0x20d)):_0x512a6b[_0x33793a(0x331)](),_0x512a6b[_0x33793a(0x108)]());}class ee extends p[_0x38408b(0x2e7)]{constructor(_0x243536,_0x32130b){const _0xa6fe05=_0x38408b;super(_0x243536,_0x32130b),h(this,_0xa6fe05(0x1ef)),h(this,_0xa6fe05(0xf7)),(this['color']=_0x32130b==null?void 0x0:_0x32130b[_0xa6fe05(0x1ef)],this['text']=_0x32130b==null?void 0x0:_0x32130b[_0xa6fe05(0xf7)]);}static[_0x38408b(0x34f)](_0x4d2875,_0x10abfa){const _0x544b9a=_0x38408b,{text:_0x2c0d0d,color:_0x24537a}=_0x10abfa;_0x4d2875['save'](),_0x4d2875[_0x544b9a(0x2ad)]=_0x544b9a(0x184);const _0x583551=_0x4d2875['measureText'](_0x2c0d0d)['width'],_0x458b9d=Math[_0x544b9a(0x2b7)](_0x583551+0x2*ne,Re);_t(_0x4d2875,{'height':K,'radius':0x4,'width':_0x458b9d,'fill':_0x24537a}),_0x4d2875[_0x544b9a(0x15b)]=_0x544b9a(0x25c);const _0xf4617f=ne,_0x5b10a5=K-lt,_0x2f5ea3=Re-0x2*ne;if(_0x583551>_0x2f5ea3){let _0x10a674='',_0x5e3878=0x0;for(const _0x42f207 of _0x2c0d0d){const _0x31bd67=_0x4d2875[_0x544b9a(0x13e)](_0x42f207)[_0x544b9a(0x2e1)];if(_0x5e3878+_0x31bd67<=_0x2f5ea3-_0x4d2875[_0x544b9a(0x13e)](_0x544b9a(0x326))['width'])_0x10a674+=_0x42f207,_0x5e3878+=_0x31bd67;else{_0x10a674+=_0x544b9a(0x326);break;}}_0x4d2875['fillText'](_0x10a674,_0xf4617f,_0x5b10a5);}else _0x4d2875[_0x544b9a(0x167)](_0x2c0d0d,_0xf4617f,_0x5b10a5);_0x4d2875[_0x544b9a(0x108)]();}[_0x38408b(0x253)](_0x1711c2){const _0x5c02d0=_0x38408b;ee[_0x5c02d0(0x34f)](_0x1711c2,this);}}const re=_0x38408b(0x376),ht=_0x38408b(0x215),ut=_0x38408b(0x11b),k=0x6,dt=1.5,oe=0x4,ft=1.5,St='rgba(255,\x20255,\x20255,\x200.01)';class De{constructor(_0x4b2878,_0x2f47ba,_0x52e687,_0x5eef25){const _0x4b79d2=_0x38408b;h(this,_0x4b79d2(0x2f6),[]),h(this,_0x4b79d2(0x35a),null),h(this,_0x4b79d2(0x32c),null),h(this,_0x4b79d2(0x105),null),h(this,_0x4b79d2(0x186),null),h(this,_0x4b79d2(0x1d0),null),(this[_0x4b79d2(0x387)]=_0x4b2878,this[_0x4b79d2(0x1fc)]=_0x2f47ba,this[_0x4b79d2(0x25a)]=_0x52e687,this['_document']=_0x5eef25,this[_0x4b79d2(0x324)]());}set[_0x38408b(0x24f)](_0x4eb983){const _0x291749=_0x38408b;_0x4eb983?(this[_0x291749(0x105)]&&this[_0x291749(0x105)][_0x291749(0xf9)](),this[_0x291749(0x32c)]&&this[_0x291749(0x32c)][_0x291749(0x146)]()):(this['_anchorDot']&&this[_0x291749(0x105)][_0x291749(0x146)](),this[_0x291749(0x32c)]&&this['_textBubble'][_0x291749(0xf9)]());}[_0x38408b(0x2ab)](){const _0x203f4d=_0x38408b;for(const _0x1756ef of this[_0x203f4d(0x2f6)])_0x1756ef['dispose']();this[_0x203f4d(0x32c)]&&this[_0x203f4d(0x32c)][_0x203f4d(0x2ab)](),this[_0x203f4d(0x105)]&&this[_0x203f4d(0x105)]['dispose'](),this[_0x203f4d(0x35a)]&&this[_0x203f4d(0x35a)][_0x203f4d(0x2ab)](),this[_0x203f4d(0x1d0)]&&this[_0x203f4d(0x1d0)]();}['_render'](){const _0x433caf=_0x38408b;var _0x1bf125;const {_docSkeleton:_0x1f892,_document:_0x30e67f}=this,{color:_0x4b1dd0,name:_0x41d7b2,ranges:_0x2a37d4}=this['_cursor'],_0x41f522=_0x30e67f[_0x433caf(0x168)](),{docsLeft:_0x46d05b,docsTop:_0x23d34d}=_0x41f522,_0x2d6f9e=new b[(_0x433caf(0x2ae))](_0x41f522,_0x1f892);for(const {startOffset:_0x507513,endOffset:_0x165da0,rangeType:_0x544c4b,segmentId:_0x42a875,segmentPage:_0x47aea9,collapsed:_0x3f7ada,isActive:_0x1763b6}of _0x2a37d4){const _0x5ddb89=_0x1f892['findNodePositionByCharIndex'](_0x507513,!0x0,_0x42a875,_0x47aea9);let _0x1cee54=_0x1f892[_0x433caf(0x286)](_0x165da0,!0x0,_0x42a875,_0x47aea9);if(_0x1cee54==null&&(_0x1cee54=_0x1f892[_0x433caf(0x286)](_0x165da0-0x1,!0x1,_0x42a875,_0x47aea9)),_0x1763b6){const {contentBoxPointGroup:_0x1a1f49}=_0x2d6f9e[_0x433caf(0x1ac)](_0x1cee54,_0x1cee54);if(_0x1a1f49[_0x433caf(0x141)]===0x0)continue;this[_0x433caf(0x31f)](_0x4b1dd0,_0x1a1f49,_0x46d05b,_0x23d34d,_0x41d7b2),this[_0x433caf(0x1d0)]=this['_handleHover']();}if(_0x5ddb89&&_0x1cee54){if(_0x544c4b===a[_0x433caf(0xee)][_0x433caf(0x14f)]){const _0xdb1dea=new b[(_0x433caf(0x337))](_0x41f522,_0x1f892),{pointGroup:_0x3c646d}=(_0x1bf125=_0xdb1dea['getRangePointData'](_0x5ddb89,_0x1cee54))!=null?_0x1bf125:{};if(_0x3c646d==null||_0x3c646d['length']===0x0)continue;this[_0x433caf(0x292)](_0x4b1dd0,_0x3c646d,_0x46d05b,_0x23d34d);}else{if(!_0x3f7ada){const {borderBoxPointGroup:_0x55a9da}=_0x2d6f9e['getRangePointData'](_0x5ddb89,_0x1cee54);if(_0x55a9da['length']===0x0)continue;this[_0x433caf(0x314)](_0x4b1dd0,_0x55a9da,_0x46d05b,_0x23d34d);}}}}}['_drawAnchor'](_0xe58cca,_0x1094e7,_0x4ee899,_0x22c2b6,_0x43813e){const _0x1b2407=_0x38408b,_0x532d9a=this['_getAnchorBounding'](_0x1094e7),{left:_0x5a03c2,top:_0x46a9aa,height:_0x261ccc}=_0x532d9a,_0x446185=this[_0x1b2407(0x13d)](),_0x1b48b1=ft/_0x446185,_0x48b51e=new p[(_0x1b2407(0x1ab))](re+a[_0x1b2407(0x194)]['generateRandomId'](k),{'left':_0x5a03c2+_0x4ee899-_0x1b48b1,'top':_0x46a9aa+_0x22c2b6,'height':_0x261ccc,'width':dt,'fill':_0xe58cca||p[_0x1b2407(0x2e6)](a['COLORS'][_0x1b2407(0x161)],0x0),'strokeWidth':_0x1b48b1,'stroke':St,'evented':!0x0});this[_0x1b2407(0x35a)]=_0x48b51e,this[_0x1b2407(0x1fc)][_0x1b2407(0x25d)](_0x48b51e,b[_0x1b2407(0x2db)]);const _0x220159=new p[(_0x1b2407(0x1ab))](re+a['Tools'][_0x1b2407(0x25e)](k),{'left':_0x5a03c2+_0x4ee899-_0x1b48b1,'top':_0x46a9aa+_0x22c2b6-oe/0x2,'height':oe,'width':oe,'fill':_0xe58cca||p[_0x1b2407(0x2e6)](a[_0x1b2407(0x271)]['black'],0x0),'strokeWidth':0x0,'stroke':_0xe58cca||p[_0x1b2407(0x2e6)](a[_0x1b2407(0x271)][_0x1b2407(0x161)],0x0),'evented':!0x1});this['_anchorDot']=_0x220159,this['_scene']['addObject'](_0x220159,b[_0x1b2407(0x2db)]);const _0x518629=new ee(re+a[_0x1b2407(0x194)][_0x1b2407(0x25e)](k),{'left':_0x5a03c2+_0x4ee899-_0x1b48b1,'top':_0x46a9aa+_0x22c2b6-K,'text':_0x43813e,'color':_0xe58cca});this[_0x1b2407(0x32c)]=_0x518629,this[_0x1b2407(0x1fc)][_0x1b2407(0x25d)](_0x518629,b[_0x1b2407(0x2db)]),this[_0x1b2407(0x24f)]=!0x1;}['_handleHover'](){const _0xf1f877=_0x38408b,_0x19a31e=this[_0xf1f877(0x35a)][_0xf1f877(0x304)][_0xf1f877(0x28c)](()=>{this['_hover']=!0x0;}),_0x2f91c1=this[_0xf1f877(0x35a)]['onPointerLeave$']['subscribeEvent'](()=>{const _0x2df854=_0xf1f877;this['_hideTimer']&&clearTimeout(this[_0x2df854(0x186)]),this[_0x2df854(0x186)]=setTimeout(()=>{this['_hover']=!0x1;},0x7d0);});return()=>{const _0x280537=_0xf1f877;_0x19a31e[_0x280537(0x1e9)](),_0x2f91c1[_0x280537(0x1e9)]();};}[_0x38408b(0x314)](_0xc17db7,_0x3c84e5,_0x9c752e,_0x22c4a4){const _0x38e8f7=_0x38408b,_0x316693=new a[(_0x38e8f7(0x1e3))](_0xc17db7)[_0x38e8f7(0x17a)](0.2)[_0x38e8f7(0x2d8)](),_0x13dd1e=new p[(_0x38e8f7(0x13c))](ht+a['Tools']['generateRandomId'](k),{'pointsGroup':_0x3c84e5,'fill':_0x316693||p['getColor'](a[_0x38e8f7(0x271)][_0x38e8f7(0x161)],0.2),'left':_0x9c752e,'top':_0x22c4a4,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x38e8f7(0x2f6)][_0x38e8f7(0x22e)](_0x13dd1e),this[_0x38e8f7(0x1fc)][_0x38e8f7(0x25d)](_0x13dd1e,b['TEXT_RANGE_LAYER_INDEX']);}[_0x38408b(0x292)](_0x1c7150,_0x5a4578,_0x2c9f5f,_0x467ffc){const _0x2c39c8=_0x38408b,_0x55b53a=new a['ColorKit'](_0x1c7150)[_0x2c39c8(0x17a)](0.2)[_0x2c39c8(0x2d8)](),_0x57d79c=new p[(_0x2c39c8(0x13c))](ut+a[_0x2c39c8(0x194)][_0x2c39c8(0x25e)](k),{'pointsGroup':_0x5a4578,'fill':_0x55b53a||p[_0x2c39c8(0x2e6)](a[_0x2c39c8(0x271)]['black'],0.2),'left':_0x2c9f5f,'top':_0x467ffc,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x2c39c8(0x2f6)][_0x2c39c8(0x22e)](_0x57d79c),this[_0x2c39c8(0x1fc)][_0x2c39c8(0x25d)](_0x57d79c,b[_0x2c39c8(0x2db)]);}[_0x38408b(0x249)](_0x3d5192){const _0xda888=_0x3d5192[0x0],_0x4f1322=_0xda888[0x0],_0x5a99ae=_0xda888[0x2],{x:_0x43c8b9,y:_0x1139d9}=_0x4f1322,{x:_0x17857f,y:_0x325be1}=_0x5a99ae;return{'left':_0x43c8b9,'top':_0x1139d9,'width':_0x17857f-_0x43c8b9,'height':_0x325be1-_0x1139d9};}[_0x38408b(0x13d)](){const _0x2335db=_0x38408b,{scaleX:_0x18310d,scaleY:_0x38b8a5}=this[_0x2335db(0x1fc)][_0x2335db(0x15e)]();return Math['max'](_0x18310d,_0x38b8a5);}}var It=Object[_0x38408b(0x1f1)],vt=(_0x442a6e,_0x9879dc,_0x122d26,_0x2cea10)=>{const _0x1731ef=_0x38408b;for(var _0x3cd373=_0x2cea10>0x1?void 0x0:_0x2cea10?It(_0x9879dc,_0x122d26):_0x9879dc,_0x56e102=_0x442a6e[_0x1731ef(0x141)]-0x1,_0x29dd9f;_0x56e102>=0x0;_0x56e102--)(_0x29dd9f=_0x442a6e[_0x56e102])&&(_0x3cd373=_0x29dd9f(_0x3cd373)||_0x3cd373);return _0x3cd373;},W=(_0x358119,_0x46c699)=>(_0x238cab,_0x1aa6ce)=>_0x46c699(_0x238cab,_0x1aa6ce,_0x358119);let Ie=class extends a['RxDisposable']{constructor(_0x33eb88,_0x1ae166,_0x4f713d,_0x513deb,_0x462589){const _0x55e145=_0x38408b;super(),h(this,_0x55e145(0x198),[]),h(this,_0x55e145(0x1cc),[]),(this['_context']=_0x33eb88,this['_docSkeletonManagerService']=_0x1ae166,this[_0x55e145(0x12c)]=_0x4f713d,this['_commandService']=_0x513deb,this[_0x55e145(0x289)]=_0x462589,this[_0x55e145(0x222)]());}[_0x38408b(0x222)](){const _0x2e17ba=_0x38408b,_0x4e3279=this[_0x2e17ba(0x2a7)]['unitId'],_0x5a3def=this[_0x2e17ba(0x17e)];this[_0x2e17ba(0x344)](d[_0x2e17ba(0x151)]([this[_0x2e17ba(0x12c)][_0x2e17ba(0x29b)](_0x4e3279),this[_0x2e17ba(0x289)][_0x2e17ba(0x109)]])['pipe']($[_0x2e17ba(0x2ce)](([_0x44b23e,_0x30ce71])=>({'skeleton':_0x5a3def[_0x2e17ba(0x34e)](),'cursors':[..._0x44b23e[_0x2e17ba(0x1bd)]()][_0x2e17ba(0x137)](_0x1e5fc7=>({..._0x1e5fc7,'color':this[_0x2e17ba(0x289)][_0x2e17ba(0x338)](_0x1e5fc7[_0x2e17ba(0x1ef)])}))})))['subscribe'](_0x16bb58=>{const _0x299011=_0x2e17ba;if(this[_0x299011(0x15c)](),_0x16bb58){const {skeleton:_0x1b915d,cursors:_0x5d32ce}=_0x16bb58;this[_0x299011(0x353)](_0x1b915d,_0x5d32ce);}})),this[_0x2e17ba(0x195)](),this[_0x2e17ba(0x1d9)]();}[_0x38408b(0x353)](_0x482a0f,_0x107c8d){const _0x1e4a58=_0x38408b,{scene:_0x568bd2,mainComponent:_0x5e5eb4}=this[_0x1e4a58(0x2a7)],_0x29106e=_0x107c8d[_0x1e4a58(0x2ce)](_0x3517c4=>new De(_0x3517c4,_0x568bd2,_0x482a0f,_0x5e5eb4));this[_0x1e4a58(0x198)]=_0x29106e,this['_cursors']=_0x107c8d;}[_0x38408b(0x274)](){const _0x4ccb94=_0x38408b;this['_removeCollabCursors']();const {scene:_0x586ed8,mainComponent:_0xbdfa34}=this['_context'],_0x31ef67=this[_0x4ccb94(0x17e)][_0x4ccb94(0x34e)](),_0x28e793=this['_cursors']['map'](_0x48200a=>new De(_0x48200a,_0x586ed8,_0x31ef67,_0xbdfa34));this['_cursorShapes']=_0x28e793;}[_0x38408b(0x15c)](){const _0x54f0ca=_0x38408b;this['_cursorShapes']['forEach'](_0x2668c2=>_0x2668c2[_0x54f0ca(0x2ab)]()),this['_cursorShapes']=[];}[_0x38408b(0x1d9)](){const _0x21937d=_0x38408b,_0xea3868=[b[_0x21937d(0x1c2)]['id']];this[_0x21937d(0x344)](this[_0x21937d(0x26d)][_0x21937d(0x171)](_0x1fc033=>{const _0x204d0b=_0x21937d;_0xea3868[_0x204d0b(0x363)](_0x1fc033['id'])&&_0x1fc033[_0x204d0b(0x31e)]['unitId']===this[_0x204d0b(0x2a7)][_0x204d0b(0x221)]&&this[_0x204d0b(0x274)]();}));}[_0x38408b(0x195)](){const _0x1bf225=_0x38408b;this['disposeWithMe'](a[_0x1bf225(0x10d)](this[_0x1bf225(0x2a7)][_0x1bf225(0x113)]['onTransformChange$'])['pipe']($[_0x1bf225(0x10e)](_0x2d5476=>_0x2d5476['type']===p[_0x1bf225(0x35c)][_0x1bf225(0x2a5)]),$[_0x1bf225(0x193)](0x10))[_0x1bf225(0x19c)](()=>{const _0xd9e3d2=_0x1bf225;this[_0xd9e3d2(0x274)]();}));}};Ie=vt([W(0x1,a[_0x38408b(0x136)](Y[_0x38408b(0x2d7)])),W(0x2,a[_0x38408b(0x136)](x)),W(0x3,a[_0x38408b(0x380)]),W(0x4,a[_0x38408b(0x136)](a[_0x38408b(0x310)]))],Ie);const gt=0x1,mt=1.5;class Pe extends p[_0x38408b(0x2e7)]{constructor(_0x408891,_0x19dd8a){const _0x148a90=_0x38408b;super(_0x408891,_0x19dd8a),h(this,_0x148a90(0x19f)),h(this,'_hovered',!0x1),h(this,_0x148a90(0x1a1)),h(this,_0x148a90(0x1d2),''),h(this,_0x148a90(0x20c),_0x148a90(0x1b9)),h(this,_0x148a90(0x31c)),(_0x19dd8a&&this[_0x148a90(0x233)](_0x19dd8a),this[_0x148a90(0x304)][_0x148a90(0x28c)](()=>this[_0x148a90(0x233)]({'hovered':!0x0})),this[_0x148a90(0x120)][_0x148a90(0x28c)](()=>this['setShapeProps']({'hovered':!0x1})));}[_0x38408b(0x233)](_0x55d3e1){const _0x3e7e26=_0x38408b;var _0x2d3d02,_0x9ee117,_0x428b3b,_0x2fb5bc,_0x4bdd72,_0x50e781;this['_color']=(_0x2d3d02=_0x55d3e1['color'])!=null?_0x2d3d02:this[_0x3e7e26(0x19f)],this['_hovered']=(_0x9ee117=_0x55d3e1[_0x3e7e26(0x228)])!=null?_0x9ee117:this[_0x3e7e26(0x2eb)],this['_range']=(_0x428b3b=_0x55d3e1[_0x3e7e26(0x203)])!=null?_0x428b3b:this[_0x3e7e26(0x1a1)],this[_0x3e7e26(0x1d2)]=(_0x2fb5bc=_0x55d3e1[_0x3e7e26(0x21c)])!=null?_0x2fb5bc:this[_0x3e7e26(0x1d2)],this['_labelPosition']=(_0x4bdd72=_0x55d3e1[_0x3e7e26(0x1c8)])!=null?_0x4bdd72:this[_0x3e7e26(0x20c)],this[_0x3e7e26(0x31c)]=(_0x50e781=_0x55d3e1[_0x3e7e26(0x14e)])!=null?_0x50e781:this[_0x3e7e26(0x31c)],this[_0x3e7e26(0x1fe)]({'width':_0x55d3e1[_0x3e7e26(0x2e1)],'height':_0x55d3e1['height']});}['onMouseMove'](_0x186fb7){const _0x147f97=_0x38408b,{row:_0x3e6158,column:_0x39c7d5}=_0x186fb7;if(_0x3e6158>=this[_0x147f97(0x1a1)][_0x147f97(0x288)]&&_0x3e6158<=this[_0x147f97(0x1a1)][_0x147f97(0x27f)]&&_0x39c7d5>=this[_0x147f97(0x1a1)][_0x147f97(0x372)]&&_0x39c7d5<=this[_0x147f97(0x1a1)][_0x147f97(0x1c1)]){this[_0x147f97(0x233)]({'hovered':!0x0});return;}this['setShapeProps']({'hovered':!0x1});}[_0x38408b(0x2e8)](_0x583524){return!0x1;}['_draw'](_0x19e98a){const _0x3662ea=_0x38408b;p[_0x3662ea(0x1ab)][_0x3662ea(0x34f)](_0x19e98a,{'width':this[_0x3662ea(0x2e1)],'height':this[_0x3662ea(0x2a0)],'strokeWidth':mt,'stroke':this[_0x3662ea(0x19f)],'evented':!0x1,'fill':this['_backgroundColor']}),this[_0x3662ea(0x2eb)]&&(_0x19e98a[_0x3662ea(0x250)](),_0x19e98a[_0x3662ea(0x32b)](0x1,0x0,0x0,0x1,this[_0x3662ea(0x2e1)],this[_0x3662ea(0x20c)]===_0x3662ea(0x127)?0x0:-0x14),ee[_0x3662ea(0x34f)](_0x19e98a,{'text':this[_0x3662ea(0x1d2)],'color':this[_0x3662ea(0x19f)]}),_0x19e98a[_0x3662ea(0x108)]());}}var Ct=Object[_0x38408b(0x1f1)],pt=(_0x10c479,_0x216648,_0x2c1d61,_0x45fc89)=>{for(var _0x5b0a45=_0x45fc89>0x1?void 0x0:_0x45fc89?Ct(_0x216648,_0x2c1d61):_0x216648,_0x502bd7=_0x10c479['length']-0x1,_0x4b9e37;_0x502bd7>=0x0;_0x502bd7--)(_0x4b9e37=_0x10c479[_0x502bd7])&&(_0x5b0a45=_0x4b9e37(_0x5b0a45)||_0x5b0a45);return _0x5b0a45;},ae=(_0x2a45b7,_0x5276dc)=>(_0x4c3a1d,_0x164866)=>_0x5276dc(_0x4c3a1d,_0x164866,_0x2a45b7);const bt=0x1389;let ve=class extends a[_0x38408b(0x20e)]{constructor(_0xfcecbf,_0x5ebee7,_0x390ffa,_0x30922c){const _0x16a431=_0x38408b;super(),h(this,_0x16a431(0x1cc),new Set()),h(this,_0x16a431(0x24c),null),(this[_0x16a431(0x2a7)]=_0xfcecbf,this[_0x16a431(0x298)]=_0x5ebee7,this[_0x16a431(0x12c)]=_0x390ffa,this[_0x16a431(0x289)]=_0x30922c,this[_0x16a431(0x222)]());}[_0x38408b(0x222)](){const _0x36a49b=_0x38408b;this['_sheetSkeletonManagerService'][_0x36a49b(0x340)][_0x36a49b(0x1d7)]($[_0x36a49b(0x101)](this[_0x36a49b(0x283)]),$[_0x36a49b(0x180)](_0x30a303=>{const _0x22b892=_0x36a49b;if(_0x30a303){const _0x56b1e7=_0x30a303[_0x22b892(0x126)];return d[_0x22b892(0x151)](this[_0x22b892(0x12c)][_0x22b892(0x29b)](this[_0x22b892(0x2a7)][_0x22b892(0x221)]),this['_themeService'][_0x22b892(0x109)])[_0x22b892(0x1d7)]($[_0x22b892(0x2ce)](([_0x3a728a,_0x496df1])=>{const _0x1a1573=new Map();return _0x3a728a['forEach']((_0x97b254,_0x2adc07)=>{const _0x4c7f73=_0x43b7;if(_0x97b254[_0x4c7f73(0x30c)]===_0x56b1e7){const _0x41781b={..._0x97b254};_0x41781b[_0x4c7f73(0x1ef)]=this[_0x4c7f73(0x289)][_0x4c7f73(0x338)](_0x97b254[_0x4c7f73(0x1ef)]),_0x1a1573[_0x4c7f73(0x1dc)](_0x2adc07,_0x41781b);}}),{'skeleton':_0x30a303,'cursors':_0x1a1573};}));}return d['of']({'skeleton':null,'cursors':new Map()});}))[_0x36a49b(0x19c)](({skeleton:_0x39e598,cursors:_0x968a03})=>{const _0x593609=_0x36a49b;this['_removeCollabCursors'](),_0x39e598&&this[_0x593609(0x353)](_0x39e598,_0x968a03);}),this['_sheetSkeletonManagerService']['currentSkeleton$'][_0x36a49b(0x19c)](_0x2a11b8=>{const _0xd2d78f=_0x36a49b;if(_0x2a11b8==null)return;const {skeleton:_0x5a57ee}=_0x2a11b8,{scene:_0x4f23ae}=this[_0xd2d78f(0x2a7)];_0x4f23ae[_0xd2d78f(0x31b)][_0xd2d78f(0x28c)](a[_0xd2d78f(0x16c)](_0x4534d9=>{const _0x39abdd=_0xd2d78f;var _0x1a7dc4,_0x5a8185;const {offsetX:_0x963572,offsetY:_0x3e4e8a}=_0x4534d9,{x:_0x2db909,y:_0x15c0f2}=_0x4f23ae[_0x39abdd(0x111)](p[_0x39abdd(0x2e9)][_0x39abdd(0x257)]([_0x963572,_0x3e4e8a])),{scaleX:_0x54276d,scaleY:_0x24159d}=_0x4f23ae['getAncestorScale'](),_0x4ab6d3=_0x4f23ae[_0x39abdd(0x35d)](p['SHEET_VIEWPORT_KEY'][_0x39abdd(0x26e)]),_0x4b4f4c=_0x4f23ae[_0x39abdd(0x1df)](p[_0x39abdd(0x2e9)][_0x39abdd(0x257)]([_0x2db909,_0x15c0f2]),_0x4ab6d3),_0x12e9fb=_0x5a57ee['getCellPositionByOffset'](_0x963572,_0x3e4e8a,_0x54276d,_0x24159d,_0x4b4f4c);((_0x1a7dc4=this[_0x39abdd(0x24c)])==null?void 0x0:_0x1a7dc4[_0x39abdd(0x2f8)])===_0x12e9fb[_0x39abdd(0x2f8)]&&((_0x5a8185=this[_0x39abdd(0x24c)])==null?void 0x0:_0x5a8185[_0x39abdd(0x32e)])===_0x12e9fb[_0x39abdd(0x32e)]||this[_0x39abdd(0x1cc)]['forEach'](_0x16a8be=>{const _0x1bc9bf=_0x39abdd;_0x16a8be[_0x1bc9bf(0x268)](_0x12e9fb);});},0x64));});}[_0x38408b(0x353)](_0x2b3ff1,_0x1fc8a1){const _0x3c921e=_0x38408b;var _0x5819bb;const _0x1281ae=(_0x5819bb=this[_0x3c921e(0x298)][_0x3c921e(0x110)]())==null?void 0x0:_0x5819bb['skeleton'];if(!_0x1281ae)return;const _0x5b6328=this[_0x3c921e(0x291)]();if(!_0x5b6328)return;this[_0x3c921e(0x1cc)][_0x3c921e(0x1aa)](_0x3c575d=>{const _0x215b78=_0x3c921e;_0x3c575d[_0x215b78(0x190)]();});const {scene:_0x1d8ba1}=_0x5b6328,_0x683931=Et(Array['from'](_0x1fc8a1[_0x3c921e(0x1bd)]()))[_0x3c921e(0x2ce)](_0xf447b6=>{const _0x7312c=_0x3c921e,{color:_0x4b85d6,range:_0x55c464,name:_0x661291,selection:_0x335781,sheetID:_0x5215c2}=_0xf447b6,{startColumn:_0x16e1b4,startRow:_0x517620,endColumn:_0x4cbdfb,endRow:_0x4fb65d}=_0x55c464,_0x427d12=X['getCoordByCell'](_0x517620,_0x16e1b4,_0x1d8ba1,_0x1281ae),_0x2d70ef=X[_0x7312c(0xfa)](_0x4fb65d,_0x4cbdfb,_0x1d8ba1,_0x1281ae),{columnHeaderHeightAndMarginTop:_0x2251a4}=_0x1281ae,{startX:_0x5c591d,startY:_0x4b4ad1}=_0x427d12,{endX:_0x35e025,endY:_0x48167b}=_0x2d70ef,_0x4e7909=_0x35e025-_0x5c591d,_0x1f44fe=_0x48167b-_0x4b4ad1,_0x1eee49={'labelPosition':_0x4b4ad1-_0x2251a4>=K?_0x7312c(0x1b9):_0x7312c(0x127),'sheetID':_0x5215c2,'range':_0x55c464,'color':_0x4b85d6,'name':_0x661291,'selection':_0x335781,'left':_0x5c591d,'top':_0x4b4ad1,'width':_0x4e7909,'height':_0x1f44fe,'evented':!0x1,'zIndex':bt};return new Pe(_0x661291,_0x1eee49);});_0x1d8ba1[_0x3c921e(0x36f)](_0x683931,gt),this[_0x3c921e(0x1cc)]=new Set(_0x683931);}[_0x38408b(0x15c)](){const _0x2fa768=_0x38408b;var _0x310c0b;(_0x310c0b=this[_0x2fa768(0x1cc)])==null||_0x310c0b['forEach'](_0x3e8883=>_0x3e8883[_0x2fa768(0x2ab)]());}[_0x38408b(0x291)](){const _0x1b1e18=_0x38408b;return X[_0x1b1e18(0x216)](this[_0x1b1e18(0x2a7)][_0x1b1e18(0x317)],this[_0x1b1e18(0x2a7)]);}};ve=pt([ae(0x1,a[_0x38408b(0x136)](X[_0x38408b(0x364)])),ae(0x2,a[_0x38408b(0x136)](x)),ae(0x3,a[_0x38408b(0x136)](a[_0x38408b(0x310)]))],ve);function Et(_0x16582f){const _0x4073d9=_0x38408b,_0x1ca42e=new Map();return _0x16582f[_0x4073d9(0x1aa)](_0x4879fc=>{const _0x5d0da6=_0x4073d9;if(_0x1ca42e['has'](_0x4879fc[_0x5d0da6(0x258)])){const _0x2edf65=_0x1ca42e[_0x5d0da6(0x313)](_0x4879fc['selection']);_0x2edf65[_0x5d0da6(0x21c)]+=',\x20'+_0x4879fc[_0x5d0da6(0x21c)];}else _0x1ca42e[_0x5d0da6(0x1dc)](_0x4879fc[_0x5d0da6(0x258)],_0x4879fc);}),Array['from'](_0x1ca42e[_0x4073d9(0x1bd)]());}var E=function(){return E=Object['assign']||function(_0x21f675){const _0x55e237=_0x43b7;for(var _0x453411,_0x432c48=0x1,_0x4e7f76=arguments[_0x55e237(0x141)];_0x432c48<_0x4e7f76;_0x432c48++){_0x453411=arguments[_0x432c48];for(var _0x2f9da0 in _0x453411)Object['prototype'][_0x55e237(0x1ed)]['call'](_0x453411,_0x2f9da0)&&(_0x21f675[_0x2f9da0]=_0x453411[_0x2f9da0]);}return _0x21f675;},E['apply'](this,arguments);},Tt=function(_0x11833b,_0x4ea6fa){const _0x283624=_0x38408b;var _0x346952={};for(var _0x5263c4 in _0x11833b)Object[_0x283624(0x242)]['hasOwnProperty'][_0x283624(0x360)](_0x11833b,_0x5263c4)&&_0x4ea6fa['indexOf'](_0x5263c4)<0x0&&(_0x346952[_0x5263c4]=_0x11833b[_0x5263c4]);if(_0x11833b!=null&&typeof Object[_0x283624(0x1ba)]==_0x283624(0x217)){for(var _0x24330e=0x0,_0x5263c4=Object[_0x283624(0x1ba)](_0x11833b);_0x24330e<_0x5263c4['length'];_0x24330e++)_0x4ea6fa[_0x283624(0x185)](_0x5263c4[_0x24330e])<0x0&&Object[_0x283624(0x242)][_0x283624(0x12b)]['call'](_0x11833b,_0x5263c4[_0x24330e])&&(_0x346952[_0x5263c4[_0x24330e]]=_0x11833b[_0x5263c4[_0x24330e]]);}return _0x346952;},pe=M[_0x38408b(0x281)](function(_0x3a04a2,_0x37d3d6){const _0x16103a=_0x38408b;var _0x2fb587=_0x3a04a2['icon'],_0x2f7f05=_0x3a04a2['id'],_0x1af47a=_0x3a04a2['className'],_0x182b2f=_0x3a04a2[_0x16103a(0x30e)],_0x3a5a0e=Tt(_0x3a04a2,[_0x16103a(0x1d3),'id','className',_0x16103a(0x30e)]),_0x1436a0=_0x16103a(0x176)[_0x16103a(0x2ff)](_0x2f7f05,'\x20')[_0x16103a(0x2ff)](_0x1af47a||'')[_0x16103a(0x1dd)](),_0xaf7b53=M['useRef']('_'['concat'](Dt()));return Ae(_0x2fb587,''['concat'](_0x2f7f05),{'defIds':_0x2fb587[_0x16103a(0x213)],'idSuffix':_0xaf7b53[_0x16103a(0x24a)]},E({'ref':_0x37d3d6,'className':_0x1436a0},_0x3a5a0e),_0x182b2f);});function Ae(_0x5b67a2,_0x3249b6,_0x19ef4a,_0x1b0c68,_0x5da9df){const _0x4b017e=_0x38408b;return M[_0x4b017e(0x16b)](_0x5b67a2[_0x4b017e(0x173)],E(E({'key':_0x3249b6},Ot(_0x5b67a2,_0x19ef4a,_0x5da9df)),_0x1b0c68),(Rt(_0x5b67a2,_0x19ef4a)[_0x4b017e(0x273)]||[])[_0x4b017e(0x2ce)](function(_0x9649b1,_0xe2fd76){const _0x2d2265=_0x4b017e;return Ae(_0x9649b1,''['concat'](_0x3249b6,'-')[_0x2d2265(0x2ff)](_0x5b67a2[_0x2d2265(0x173)],'-')[_0x2d2265(0x2ff)](_0xe2fd76),_0x19ef4a,void 0x0,_0x5da9df);}));}function Ot(_0x11011e,_0x2f519a,_0x3375a1){const _0x4221cc=_0x38408b;var _0x115e74=E({},_0x11011e[_0x4221cc(0x140)]);_0x3375a1!=null&&_0x3375a1[_0x4221cc(0x1a2)]&&_0x115e74[_0x4221cc(0x331)]===_0x4221cc(0x1a2)&&(_0x115e74[_0x4221cc(0x331)]=_0x3375a1[_0x4221cc(0x1a2)]),_0x11011e[_0x4221cc(0x173)]==='mask'&&_0x115e74['id']&&(_0x115e74['id']=_0x115e74['id']+_0x2f519a[_0x4221cc(0x178)]),Object[_0x4221cc(0x352)](_0x115e74)['forEach'](function(_0x30248a){const _0x4eeb8d=_0x4221cc;var _0x37f4e5=_0x30248a[0x0],_0x5e178e=_0x30248a[0x1];_0x37f4e5===_0x4eeb8d(0xfe)&&typeof _0x5e178e=='string'&&(_0x115e74[_0x37f4e5]=_0x5e178e[_0x4eeb8d(0x2b3)](/url\(#(.*)\)/,_0x4eeb8d(0x1b2)[_0x4eeb8d(0x2ff)](_0x2f519a[_0x4eeb8d(0x178)],')')));});var _0x4e0230=_0x2f519a['defIds'];return!_0x4e0230||_0x4e0230[_0x4221cc(0x141)]===0x0||(_0x11011e[_0x4221cc(0x173)]==='use'&&_0x115e74['xlink:href']&&(_0x115e74['xlink:href']=_0x115e74[_0x4221cc(0x354)]+_0x2f519a[_0x4221cc(0x178)]),Object[_0x4221cc(0x352)](_0x115e74)[_0x4221cc(0x1aa)](function(_0x32e0b){const _0x314f2a=_0x4221cc;var _0x1063df=_0x32e0b[0x0],_0x1074aa=_0x32e0b[0x1];typeof _0x1074aa==_0x314f2a(0x134)&&(_0x115e74[_0x1063df]=_0x1074aa[_0x314f2a(0x2b3)](/url\(#(.*)\)/,_0x314f2a(0x1b2)[_0x314f2a(0x2ff)](_0x2f519a[_0x314f2a(0x178)],')')));})),_0x115e74;}function Rt(_0x46227a,_0x47d01b){const _0x4f9b28=_0x38408b;var _0x48095a,_0x5a10f4=_0x47d01b[_0x4f9b28(0x213)];return!_0x5a10f4||_0x5a10f4[_0x4f9b28(0x141)]===0x0?_0x46227a:_0x46227a[_0x4f9b28(0x173)]===_0x4f9b28(0x162)&&(!((_0x48095a=_0x46227a[_0x4f9b28(0x273)])===null||_0x48095a===void 0x0)&&_0x48095a[_0x4f9b28(0x141)])?E(E({},_0x46227a),{'children':_0x46227a[_0x4f9b28(0x273)][_0x4f9b28(0x2ce)](function(_0x5b0bf5){const _0x2a6e80=_0x4f9b28;return typeof _0x5b0bf5['attrs']['id']==_0x2a6e80(0x134)&&_0x5a10f4&&_0x5a10f4[_0x2a6e80(0x185)](_0x5b0bf5['attrs']['id'])>-0x1?E(E({},_0x5b0bf5),{'attrs':E(E({},_0x5b0bf5['attrs']),{'id':_0x5b0bf5[_0x2a6e80(0x140)]['id']+_0x47d01b[_0x2a6e80(0x178)]})}):_0x5b0bf5;})}):_0x46227a;}function Dt(){const _0x3136b4=_0x38408b;return Math[_0x3136b4(0x1a8)]()['toString'](0x24)[_0x3136b4(0x115)](0x2,0x8);}pe[_0x38408b(0x188)]=_0x38408b(0x329);var Ut={'tag':_0x38408b(0x34d),'attrs':{'xmlns':_0x38408b(0x284),'fill':_0x38408b(0x2dc),'viewBox':_0x38408b(0x1b3),'width':_0x38408b(0x2c3),'height':'1em'},'children':[{'tag':'g','attrs':{'clipPath':'url(#off-line-icon_clip0_910_343)'},'children':[{'tag':_0x38408b(0x21a),'attrs':{'stroke':_0x38408b(0x22a),'d':_0x38408b(0x1c4),'strokeLinecap':'round','strokeLinejoin':_0x38408b(0x212),'strokeWidth':1.2}}]},{'tag':'defs','attrs':{},'children':[{'tag':_0x38408b(0x14c),'attrs':{'id':'off-line-icon_clip0_910_343'},'children':[{'tag':_0x38408b(0x21a),'attrs':{'fill':_0x38408b(0x191),'d':_0x38408b(0x2ac)}}]}]}],'defIds':[_0x38408b(0x1ca)]},ye=M['forwardRef'](function(_0x12dae6,_0x34d434){const _0x192ea6=_0x38408b;return M[_0x192ea6(0x16b)](pe,Object[_0x192ea6(0x1db)]({},_0x12dae6,{'id':_0x192ea6(0x1e5),'ref':_0x34d434,'icon':Ut}));});ye[_0x38408b(0x188)]='OffLineIcon';var Nt={'tag':'svg','attrs':{'xmlns':_0x38408b(0x284),'fill':_0x38408b(0x2dc),'viewBox':_0x38408b(0x265),'width':'1em','height':'1em'},'children':[{'tag':'g','attrs':{'clipPath':_0x38408b(0x138)},'children':[{'tag':_0x38408b(0x21a),'attrs':{'stroke':_0x38408b(0x22a),'d':_0x38408b(0x1c7),'strokeLinecap':'round','strokeLinejoin':_0x38408b(0x212),'strokeWidth':1.2}}]},{'tag':'defs','attrs':{},'children':[{'tag':_0x38408b(0x14c),'attrs':{'id':_0x38408b(0x2c8)},'children':[{'tag':_0x38408b(0x21a),'attrs':{'fill':_0x38408b(0x191),'d':_0x38408b(0x2ac),'transform':_0x38408b(0x251)}}]}]}],'defIds':[_0x38408b(0x2c8)]},$e=M[_0x38408b(0x281)](function(_0xf70d66,_0x39f21b){const _0x257592=_0x38408b;return M[_0x257592(0x16b)](pe,Object['assign']({},_0xf70d66,{'id':_0x257592(0x177),'ref':_0x39f21b,'icon':Nt}));});$e['displayName']=_0x38408b(0x341);function Mt(_0x3f464c){const _0x201a9e=_0x38408b;switch(_0x3f464c){case u[_0x201a9e(0x316)][_0x201a9e(0x1c3)]:return _0x201a9e(0x1f7);case u[_0x201a9e(0x316)][_0x201a9e(0x2f7)]:return _0x201a9e(0x30b);case u[_0x201a9e(0x316)]['FETCH_MISS']:return _0x201a9e(0x276);case u[_0x201a9e(0x316)][_0x201a9e(0x383)]:return _0x201a9e(0x23f);case u[_0x201a9e(0x316)][_0x201a9e(0x107)]:case u[_0x201a9e(0x316)][_0x201a9e(0x240)]:return _0x201a9e(0x308);case u[_0x201a9e(0x316)][_0x201a9e(0x182)]:case u['CollaborationStatus'][_0x201a9e(0x24d)]:return'collabStatus.synced';}}function xe(_0x5407c4){const _0x2114db=_0x38408b,{status$:_0x181de6}=_0x5407c4,_0x4d6f4c=T['useObservable'](_0x181de6,u[_0x2114db(0x316)]['NOT_COLLAB']),_0x228b09=T[_0x2114db(0x1e8)](a[_0x2114db(0x175)]),_0x4aff37=T['useDependency'](u[_0x2114db(0x2bd)]),_0x5685b5=_0x4d6f4c!==u[_0x2114db(0x316)]['OFFLINE'],_0x4e93c1=_0x228b09['t'](Mt(_0x4d6f4c)),_0x5c695e=_0x5685b5?w[_0x2114db(0x145)]($e,{}):w[_0x2114db(0x145)](ye,{}),_0x18da73=M[_0x2114db(0x2d2)](()=>{_0x5685b5||_0x4aff37['reconnect']();},[_0x5685b5,_0x4aff37]);function _0x390378(){const _0x125049=_0x2114db;return w['jsxs'](_0x125049(0x174),{'className':_0x125049(0x29c),'onClick':_0x18da73,'children':[w['jsx']('div',{'className':D[_0x125049(0x320)](_0x125049(0x124),{'univer-text-green-500':_0x5685b5,'univer-text-red-500':!_0x5685b5}),'children':_0x5c695e}),w['jsx'](_0x125049(0x174),{'className':_0x125049(0x2cd),'children':_0x4e93c1})]});}return _0x5685b5?_0x390378():w[_0x2114db(0x145)](D[_0x2114db(0x34b)],{'title':_0x228b09['t']('collab-client.tooltip.reconnect'),'children':_0x390378()});}var Lt=Object['getOwnPropertyDescriptor'],wt=(_0x584240,_0x164988,_0x23fbdc,_0x3d72dc)=>{const _0x5b0ebf=_0x38408b;for(var _0x2d174a=_0x3d72dc>0x1?void 0x0:_0x3d72dc?Lt(_0x164988,_0x23fbdc):_0x164988,_0x11d99b=_0x584240[_0x5b0ebf(0x141)]-0x1,_0x3ac9b0;_0x11d99b>=0x0;_0x11d99b--)(_0x3ac9b0=_0x584240[_0x11d99b])&&(_0x2d174a=_0x3ac9b0(_0x2d174a)||_0x2d174a);return _0x2d174a;},V=(_0x4aacdd,_0x4737b7)=>(_0x5dbacb,_0x1f6830)=>_0x4737b7(_0x5dbacb,_0x1f6830,_0x4aacdd);exports['DesktopCollaborationStatusDisplayController']=class extends a['Disposable']{constructor(_0x52ea70,_0x317dc8,_0x3fce07,_0x1c823a){const _0x5c0672=_0x38408b;super(),h(this,'_status$',new d[(_0x5c0672(0x365))](u[_0x5c0672(0x316)]['NOT_COLLAB'])),(this[_0x5c0672(0x2fe)]=_0x52ea70,this[_0x5c0672(0x10c)]=_0x317dc8,this[_0x5c0672(0x270)]=_0x3fce07,this[_0x5c0672(0x277)]=_0x1c823a,this['_initStatusComponent'](),this[_0x5c0672(0x224)]());}[_0x38408b(0x224)](){const _0x5f5743=_0x38408b;this[_0x5f5743(0x344)](this['_univerInstanceService'][_0x5f5743(0x204)][_0x5f5743(0x1d7)](d['switchMap'](()=>{const _0x3ffd53=_0x5f5743,_0xde01c2=this[_0x3ffd53(0x2fe)][_0x3ffd53(0x375)]();return _0xde01c2?this['_collaborationController'][_0x3ffd53(0x260)](_0xde01c2[_0x3ffd53(0x36d)]()):d['of'](null);}),d[_0x5f5743(0x180)](_0x1b4162=>_0x1b4162?_0x1b4162[_0x5f5743(0x302)]:d['of'](u[_0x5f5743(0x316)][_0x5f5743(0x383)])))[_0x5f5743(0x19c)](_0x59ee67=>{const _0x186586=_0x5f5743;this[_0x186586(0x123)][_0x186586(0x24b)](_0x59ee67);}));}['_initStatusComponent'](){const _0x3de963=_0x38408b;this[_0x3de963(0x344)](this[_0x3de963(0x277)][_0x3de963(0x21e)](T['BuiltInUIPart'][_0x3de963(0x369)],()=>T['connectInjector'](Pt({'status$':this[_0x3de963(0x123)][_0x3de963(0x2ea)]()}),this[_0x3de963(0x10c)])));}},exports['DesktopCollaborationStatusDisplayController']=wt([V(0x0,a[_0x38408b(0x104)]),V(0x1,a['Inject'](a[_0x38408b(0x2a8)])),V(0x2,a[_0x38408b(0x136)](u[_0x38408b(0x148)])),V(0x3,T[_0x38408b(0x117)])],exports['DesktopCollaborationStatusDisplayController']);function Pt(_0x418c06){const {status$:_0x527f48}=_0x418c06;return function(){const _0x18c858=_0x43b7;return w[_0x18c858(0x145)](xe,{'status$':_0x527f48});};}var At=Object[_0x38408b(0x1f1)],yt=(_0x210cd7,_0x31a8c4,_0x57e36d,_0x300c88)=>{const _0x5107b5=_0x38408b;for(var _0x1d8a03=_0x300c88>0x1?void 0x0:_0x300c88?At(_0x31a8c4,_0x57e36d):_0x31a8c4,_0x394d3b=_0x210cd7[_0x5107b5(0x141)]-0x1,_0x5b55ce;_0x394d3b>=0x0;_0x394d3b--)(_0x5b55ce=_0x210cd7[_0x394d3b])&&(_0x1d8a03=_0x5b55ce(_0x1d8a03)||_0x1d8a03);return _0x1d8a03;},y=(_0x4dccdc,_0xa452bc)=>(_0x275b81,_0x1dfb31)=>_0xa452bc(_0x275b81,_0x1dfb31,_0x4dccdc);let q=class extends a[_0x38408b(0x208)]{constructor(_0xb0a48f,_0x6c61c2,_0x43680f,_0x5c7e63,_0x523374,_0x319151){const _0x5100f2=_0x38408b;super(),this[_0x5100f2(0x2f5)]=_0xb0a48f,this[_0x5100f2(0x2e5)]=_0x6c61c2,this[_0x5100f2(0x27c)]=_0x43680f,this[_0x5100f2(0x325)]=_0x5c7e63,this[_0x5100f2(0x342)]=_0x523374,this[_0x5100f2(0x2b9)]=_0x319151,this['_setupBeforeClosingHandler'](),this[_0x5100f2(0x2d5)]();}['_setupBeforeClosingHandler'](){const _0x28e623=_0x38408b;this[_0x28e623(0x344)](this[_0x28e623(0x2f5)]['registerBeforeClose'](()=>{const _0x27516a=_0x28e623;if(this[_0x27516a(0x2e5)][_0x27516a(0x1d1)]['size'])return this['_localeService']['t'](_0x27516a(0x2b1));}));}[_0x38408b(0x2d5)](){const _0x153f49=_0x38408b;this[_0x153f49(0x344)](this['_collaborationUIEventService'][_0x153f49(0x20a)][_0x153f49(0x19c)](_0x52fec0=>{const _0x548ebc=_0x153f49;_0x52fec0['id']===u['CollaborationUIEventId'][_0x548ebc(0x346)]&&this[_0x548ebc(0x325)][_0x548ebc(0x146)]({'type':D[_0x548ebc(0x22c)][_0x548ebc(0x1b1)],'content':this[_0x548ebc(0x2b9)]['t']('collaboration.single-unit.warning')}),_0x52fec0['id']===u[_0x548ebc(0x158)][_0x548ebc(0x28f)]&&this[_0x548ebc(0x325)][_0x548ebc(0x146)]({'type':D[_0x548ebc(0x22c)][_0x548ebc(0x1b1)],'content':this['_localeService']['t'](_0x548ebc(0x16d))}),_0x52fec0['id']===u['CollaborationUIEventId']['PERMISSION_DENIED']&&this['_notificationService']['show']({'title':this[_0x548ebc(0x2b9)]['t'](_0x548ebc(0xfc)),'content':this[_0x548ebc(0x2b9)]['t'](_0x548ebc(0x2cc)),'type':'error','duration':0x0}),_0x52fec0['id']===u['CollaborationUIEventId']['CONFLICT']&&this[_0x548ebc(0x325)][_0x548ebc(0x146)]({'type':D[_0x548ebc(0x22c)][_0x548ebc(0x26c)],'content':this[_0x548ebc(0x2b9)]['t']('collaboration.closeRoom')+'('+_0x52fec0[_0x548ebc(0x26f)]+')'}),_0x52fec0['id']===u[_0x548ebc(0x158)][_0x548ebc(0x183)]&&this[_0x548ebc(0x325)][_0x548ebc(0x146)]({'type':D[_0x548ebc(0x22c)][_0x548ebc(0x1b1)],'content':this[_0x548ebc(0x2b9)]['t'](_0x52fec0[_0x548ebc(0x26f)]||'')}),_0x52fec0['id']===u['CollaborationUIEventId'][_0x548ebc(0x28d)]&&this[_0x548ebc(0x325)]['show']({'type':D[_0x548ebc(0x22c)][_0x548ebc(0x1b1)],'content':this['_localeService']['t'](_0x548ebc(0x227))}),_0x52fec0['id']===u[_0x548ebc(0x158)][_0x548ebc(0x18d)]&&this[_0x548ebc(0x325)][_0x548ebc(0x146)]({'type':D['MessageType']['Error'],'content':this[_0x548ebc(0x2b9)]['t'](_0x548ebc(0x1bb))}),_0x52fec0['id']===u[_0x548ebc(0x158)][_0x548ebc(0x132)]&&this['_messageService'][_0x548ebc(0x146)]({'type':D['MessageType'][_0x548ebc(0x26c)],'content':this[_0x548ebc(0x2b9)]['t'](_0x548ebc(0x322))});}));}};q=yt([y(0x0,T['IBeforeCloseService']),y(0x1,u[_0x38408b(0x11c)]),y(0x2,a['Inject'](u[_0x38408b(0xfd)])),y(0x3,T[_0x38408b(0x2c7)]),y(0x4,T[_0x38408b(0x345)]),y(0x5,a[_0x38408b(0x136)](a['LocaleService']))],q);const $t=_0x38408b(0x220),Ue={},be=a[_0x38408b(0x19b)](_0x38408b(0x2f1));var xt=Object[_0x38408b(0x1f1)],jt=(_0x2ab2ec,_0xf6f740,_0x3a0d63,_0x3581b4)=>{const _0x178149=_0x38408b;for(var _0x15d46b=_0x3581b4>0x1?void 0x0:_0x3581b4?xt(_0xf6f740,_0x3a0d63):_0xf6f740,_0x3f1d47=_0x2ab2ec[_0x178149(0x141)]-0x1,_0x1c0509;_0x3f1d47>=0x0;_0x3f1d47--)(_0x1c0509=_0x2ab2ec[_0x3f1d47])&&(_0x15d46b=_0x1c0509(_0x15d46b)||_0x15d46b);return _0x15d46b;},H=(_0x19f6d5,_0x2b5381)=>(_0x315315,_0x11e58a)=>_0x2b5381(_0x315315,_0x11e58a,_0x19f6d5);exports['CollaborationDataLoaderController']=class extends a[_0x38408b(0x20e)]{constructor(_0x298116,_0x43bdf4,_0x5780cf,_0x202283,_0x3674bf){const _0xff4cff=_0x38408b;super(),this[_0xff4cff(0x1a6)]=_0x298116,this[_0xff4cff(0x1c9)]=_0x43bdf4,this[_0xff4cff(0x26d)]=_0x5780cf,this[_0xff4cff(0x156)]=_0x202283,_0x3674bf?_0x3674bf==null||_0x3674bf[_0xff4cff(0x234)]()[_0xff4cff(0x1ff)](()=>this[_0xff4cff(0x222)]()):(this['_logService'][_0xff4cff(0x17b)]('[CollaborationDataLoaderController]','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.'),this['_init']());}async[_0x38408b(0x222)](){const _0x1f124a=_0x38408b,_0xa6a1a4=this[_0x1f124a(0x1a6)][_0x1f124a(0x179)]('unit'),_0x34ad15=this[_0x1f124a(0x1a6)][_0x1f124a(0x179)]('type'),_0x2a383f=this[_0x1f124a(0x1a6)][_0x1f124a(0x179)]('subunit');if(!_0xa6a1a4||!_0x34ad15){this[_0x1f124a(0x1c9)][_0x1f124a(0x17b)](_0x1f124a(0x24e),_0x1f124a(0x350));return;}const _0x333238=await this[_0x1f124a(0x156)]['loadUnit'](_0xa6a1a4,Number(_0x34ad15),_0x2a383f);_0x333238&&_0x333238 instanceof a['Workbook']&&this[_0x1f124a(0x21d)](_0x333238);}async[_0x38408b(0x21d)](_0x49b199){const _0x3f00ce=_0x38408b;await this[_0x3f00ce(0x2ec)](_0x49b199),_0x49b199[_0x3f00ce(0x368)][_0x3f00ce(0x1d7)](d[_0x3f00ce(0x101)](this[_0x3f00ce(0x283)]))[_0x3f00ce(0x19c)](_0x2494f0=>{_0x2494f0&&this['_updateURLWithCurrentState'](_0x2494f0);}),this['_urlService'][_0x3f00ce(0x27b)]['pipe'](d[_0x3f00ce(0x101)](this['dispose$']))[_0x3f00ce(0x19c)](()=>this[_0x3f00ce(0x2ec)](_0x49b199));}[_0x38408b(0x2c0)](_0x1e1ded,_0x13a82b=!0x1){const _0x5c6c06=_0x38408b,_0x5481f4=this[_0x5c6c06(0x1a6)]['getParam']('subunit');_0x1e1ded[_0x5c6c06(0x278)]()!==_0x5481f4&&this['_urlService'][_0x5c6c06(0x1de)](_0x5c6c06(0x1c0),_0x1e1ded[_0x5c6c06(0x278)](),_0x13a82b);}async[_0x38408b(0x2ec)](_0x470c91){const _0x59b424=_0x38408b;var _0x4fd576;const _0x552d69=this[_0x59b424(0x1a6)][_0x59b424(0x179)]('subunit');if(!_0x552d69||!_0x470c91['getSheetBySheetId'](_0x552d69)){const _0xbcebbb=_0x470c91[_0x59b424(0x373)]()[0x0],_0x3f4c88=_0x470c91[_0x59b424(0x2fa)](_0xbcebbb);if(!_0x3f4c88)return;this['_updateURLWithCurrentState'](_0x3f4c88,!0x0),await this[_0x59b424(0x26d)][_0x59b424(0x1f9)](g[_0x59b424(0x1e4)]['id'],{'unitId':_0x470c91[_0x59b424(0x36d)](),'subUnitId':_0xbcebbb});return;}((_0x4fd576=_0x470c91[_0x59b424(0x2f9)]())==null?void 0x0:_0x4fd576[_0x59b424(0x278)]())!==_0x552d69&&await this[_0x59b424(0x26d)][_0x59b424(0x1f9)](g[_0x59b424(0x1e4)]['id'],{'unitId':_0x470c91['getUnitId'](),'subUnitId':_0x552d69});}},exports[_0x38408b(0x19e)]=jt([H(0x0,be),H(0x1,a[_0x38408b(0x192)]),H(0x2,a['ICommandService']),H(0x3,a[_0x38408b(0x136)](u[_0x38408b(0x163)])),H(0x4,a[_0x38408b(0x229)](Ke[_0x38408b(0x2f2)]))],exports[_0x38408b(0x19e)]);var Bt=Object[_0x38408b(0x1f1)],kt=(_0x5d07f6,_0x1e1c85,_0x1c18db,_0x25b87a)=>{for(var _0x103541=_0x25b87a>0x1?void 0x0:_0x25b87a?Bt(_0x1e1c85,_0x1c18db):_0x1e1c85,_0x59a1b9=_0x5d07f6['length']-0x1,_0x4b405b;_0x59a1b9>=0x0;_0x59a1b9--)(_0x4b405b=_0x5d07f6[_0x59a1b9])&&(_0x103541=_0x4b405b(_0x103541)||_0x103541);return _0x103541;},ce=(_0x18121f,_0x2355eb)=>(_0x21ffab,_0x3200cc)=>_0x2355eb(_0x21ffab,_0x3200cc,_0x18121f);let z=class{constructor(_0x5cdba8,_0x1e5b1f,_0x47d8bd){const _0x3d20bf=_0x38408b;this[_0x3d20bf(0x10c)]=_0x5cdba8,this[_0x3d20bf(0x22b)]=_0x1e5b1f,this[_0x3d20bf(0xf4)]=_0x47d8bd;}[_0x38408b(0x266)](_0x135b4f){const _0x28d21b=_0x38408b;this[_0x28d21b(0x1a0)](_0x135b4f),this[_0x28d21b(0x1fa)](_0x135b4f);}[_0x38408b(0x2a9)](_0x5a7fc8){const _0x944c5d=_0x38408b,{unitID:_0x4e0a71}=_0x5a7fc8,_0x435062=this[_0x944c5d(0xf4)][_0x944c5d(0x2b0)](_0x4e0a71)[_0x944c5d(0x2af)](b[_0x944c5d(0x285)]),{redoCache:_0x3542cf}=_0x435062[_0x944c5d(0x36c)]();if(_0x3542cf[_0x944c5d(0x141)]===0x0)return _0x5a7fc8;let _0x4e0a99=a[_0x944c5d(0x194)][_0x944c5d(0x334)](_0x5a7fc8[_0x944c5d(0x32f)][0x0]);for(let _0x8cb4=0x0;_0x8cb4<_0x3542cf[_0x944c5d(0x141)];_0x8cb4++){const _0x489001={'id':'doc.mutation.rich-text-editing','params':{..._0x3542cf[_0x8cb4]}},_0x529fb6=this[_0x944c5d(0x22b)][_0x944c5d(0x2a4)](_0x4e0a99,_0x489001,!0x1);if(m[_0x944c5d(0x125)](_0x529fb6))throw _0x529fb6['error'];_0x4e0a99=_0x529fb6[_0x944c5d(0x386)];}return{...a[_0x944c5d(0x194)][_0x944c5d(0x334)](_0x5a7fc8),'mutations':[_0x4e0a99]};}[_0x38408b(0x1a0)](_0x5d3275){const _0x2ec0a2=_0x38408b,{unitID:_0x20d3b0}=_0x5d3275,_0xa304e=this[_0x2ec0a2(0xf4)]['getRenderById'](_0x20d3b0)['with'](b[_0x2ec0a2(0x285)]),{undoCache:_0x48b52a,redoCache:_0x4e099f}=_0xa304e['getUndoRedoMutationParamsCache']();if(_0x48b52a[_0x2ec0a2(0x141)]===0x0||_0x4e099f[_0x2ec0a2(0x141)]===0x0)return;const _0x50f78f=[],_0x41f94a=[];let _0x40db3d=a[_0x2ec0a2(0x194)]['deepClone'](_0x5d3275[_0x2ec0a2(0x32f)][0x0]),_0x35fba8=a['Tools'][_0x2ec0a2(0x334)](_0x5d3275[_0x2ec0a2(0x32f)][0x0]);for(let _0x3339c6=_0x48b52a[_0x2ec0a2(0x141)]-0x1;_0x3339c6>=0x0;_0x3339c6--){const _0x4a2722={'id':'doc.mutation.rich-text-editing','params':{..._0x48b52a[_0x3339c6]}},_0x53d285={'id':_0x2ec0a2(0x34c),'params':{..._0x4e099f[_0x3339c6]}},_0x28d91d=this[_0x2ec0a2(0x22b)][_0x2ec0a2(0x2a4)](_0x40db3d,_0x4a2722,!0x1),_0x3a1bf8=this[_0x2ec0a2(0x22b)][_0x2ec0a2(0x2a4)](_0x35fba8,_0x53d285,!0x1);if(m[_0x2ec0a2(0x125)](_0x28d91d))throw _0x28d91d[_0x2ec0a2(0x207)];if(m['isTransformMutationFailure'](_0x3a1bf8))throw _0x3a1bf8['error'];_0x50f78f[_0x2ec0a2(0x169)](_0x28d91d[_0x2ec0a2(0x379)]['params']),_0x41f94a[_0x2ec0a2(0x169)](_0x3a1bf8['m2Prime'][_0x2ec0a2(0x31e)]),_0x40db3d=_0x28d91d['m1Prime'],_0x35fba8=_0x3a1bf8['m1Prime'];}_0xa304e[_0x2ec0a2(0x1bc)]({'undoCache':_0x50f78f,'redoCache':_0x41f94a});}[_0x38408b(0x1fa)](_0x51a0b2){const _0x3ab4c5=_0x38408b,{unitID:_0x93195c}=_0x51a0b2,_0x73bf26=this['_renderManagerService'][_0x3ab4c5(0x2b0)](_0x93195c)[_0x3ab4c5(0x2af)](b[_0x3ab4c5(0x285)]),_0x4bf4ce=_0x73bf26[_0x3ab4c5(0x295)]();if(_0x4bf4ce==null)return;const _0x37cabd=[{'id':_0x3ab4c5(0x34c),'params':{'unitId':_0x51a0b2[_0x3ab4c5(0x2c1)],'actions':null,'textRanges':[_0x4bf4ce]}}],_0x22409f=this['_transformService']['transformMutationsWithChangeset'](_0x51a0b2,_0x37cabd);if(!m[_0x3ab4c5(0x297)](_0x22409f))throw _0x22409f[_0x3ab4c5(0x207)];const _0x80a741=_0x22409f[_0x3ab4c5(0x379)][0x0][_0x3ab4c5(0x31e)][_0x3ab4c5(0x1f4)];Array[_0x3ab4c5(0x347)](_0x80a741)&&_0x80a741['length']&&_0x73bf26['setActiveRange'](_0x80a741[0x0]);}};function _0x3d85(){const _0x3d103d=['collabStatus.notCollab','AWAITING_WITH_PENDING','createSocket','prototype','runOnServer','_toggleOffline','@univerjs/design','_handleLeaveEvent','INTERNAL_ERROR','getLocalCacheKey','_getAnchorBounding','current','next','_lastPointer','PENDING','[CollaborationDataLoaderController]','_hover','save','translate(.97)','collabCursorState$','_draw','SNAPSHOT_HAS_BEEN_REMOVED','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','toStringTag','FromArray','selection','_createSocketURL','_docSkeleton','moveTo','#FFF','addObject','generateRandomId','_handleHeartbeatEvent','getCollabEntity$','NO_OTHER_CLIENTS_EDITING','@univerjs/rpc','@univerjs/engine-render','mergeOverrideWithDependencies','0\x200\x2017\x2016','transformIMECache','override','onMouseMove','_onCursorDelete','debounceTime','clearInterval','Error','_commandService','VIEW_MAIN','data','_collaborationController','COLORS','origin','children','_refreshCollabCursors','transformSelections','collabStatus.fetchMiss','_uiPartsService','getSheetId','TOO_MANY_REQUESTS','handleInsertRangeMoveDown','urlChange$','_collaborationUIEventService','InsertRangeMoveRightCommandId','symbol','endRow','LOCAL_CACHE_INTERVAL','forwardRef','_roomMembers$','dispose$','http://www.w3.org/2000/svg','DocIMEInputManagerService','findNodePositionByCharIndex','20miqoAL','startRow','_themeService','InsertRangeMoveDownCommandId','subUnitId','subscribeEvent','SOCKET_FAILED_RETRY','ALREADY_EXISTS','CLOSE_ROOM','_clearOtherTimers','_getSheetObject','_drawRectRange','RichTextEditingMutation','APPLY_PERMISSION_DENIED','getActiveRange','_memberService','isTransformMutationsWithChangesetSuccess','_sheetSkeletonManagerService','531230sKJmhF','[RemoteUniscriptService]:\x20no\x20focused\x20unit','getCollabCursors$','univer-flex\x20univer-items-center','merge','USERS_LEAVE','onLocalMutation','height','EffectRefRangId','LICENSE_MAX_UNITS_EXCEEDED','has','transformMutation','resize','APPLY_REVISION_CONFILICT','_context','Injector','transformRemoteChangeset','_online','dispose','M0\x200H16V16H0z','font','NodePositionConvertToCursor','with','getRenderById','collaboration-client.offline-data-not-saved','UNIVER_SHEET','replace','pushState','YUUMI_NO_CUBOID_FOR_QUESTION','_ensureSubject','min','arc','_localeService','cursorInfo','1170500AWSfKC','HTTPService','CollaborationSessionService','NOT_FOUND','UNRECOGNIZED','_updateURLWithCurrentState','unitID','28iAwxmz','1em','_toggleOnline','sessionTicket','240532CcJNmo','IMessageService','on-line-icon_clip0_910_349','REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY','touchDependencies','find','permission.content','univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','map','_docSyncEditingCollabCursorService','_registerRenderDependencies','_config','useCallback','3mnjgnK','_docTransformSelectionsService','_initEvent','_getSessionTicket','DocSkeletonManagerService','toRgbString','send','WebBrowserSingleActiveUnitService','TEXT_RANGE_LAYER_INDEX','none','init','MemberService','YUUMI_ALL_TABLES_IS_INVALID','executionId','width','handleMoveRange','ILocalStorageService','YUUMI_AI_RUN_FAILED','_localCacheService','getColor','Shape','triggerDblclick','Vector2','asObservable','_hovered','_updateSubUnitFromURLParams','ENSURE_SNAPSHOT_EXECUTION','_startDocCollabCursor','all','_localStorageService','uni.network.url-service','IRemoteInstanceService','source','_getMergeRange','_beforeCloseService','_shapes','CONFLICT','column','getActiveSheet','getSheetBySheetId','_handleEvent','fillRule','handleInsertCol','_univerInstanceService','concat','YUUMI_PROMPT_MAX_TOKENS_EXCEEDED','_transformHistoryAndStateStack','status$','history','onPointerEnter$','code','docStateChange$','entityInit$','collabStatus.syncing','handleIRemoveCol','_httpService','collabStatus.conflict','sheetID','_colorIndex','extend','CONNECTOR_DATA_TOO_LARGE','ThemeService','_cachedData','_unitStatus','get','_drawTextRange','ITransformService','CollaborationStatus','unit','add','registerDependencies','UNIVER_COLLABORATION_CLIENT_WEB_PLUGIN','onPointerMove$','_backgroundColor','CHANGESET_REVISION_CONFILICT','params','_drawAnchor','clsx','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','session.collaboration-timeout','CollaborationSocketService','_render','_messageService','...','blue.400','DocStateChangeManagerService','UniverIcon','type','transform','_textBubble','_colorAssignService','row','mutations','10451980RdDdpj','fill','CollaborationEvent','_entities','deepClone','cursorInfo$','transformMutationsWithChangeset','NodePositionConvertToRectRange','getColorFromTheme','distinctUntilChanged','@univerjs/sheets','undoState','IURLService','LOCAL_CACHE_INTERVAL_KEY','_send','post','currentSkeleton$','OnLineIcon','_notificationService','yellow.400','disposeWithMe','INotificationService','OTHER_CLIENT_EDITING','isArray','purple.300','@univerjs/sheets-ui','saveOfflineData','Tooltip','doc.mutation.rich-text-editing','svg','getSkeleton','drawWith','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','APPLY_REJECT','entries','_updateCollabCursors','xlink:href','RefRangeService','_assignedColors','YUUMI_RATE_OVER_LIMIT','RemoveRowCommandId','setItem','_anchor','setTimeout','TRANSFORM_CHANGE_OBSERVABLE_TYPE','getViewport','COMPLETION_FINISHED','TEXT','call','getMember','USER_NOT_INVITED_CODE','includes','SheetSkeletonManagerService','BehaviorSubject','_cursorInfo$','closePath','activeSheet$','HEADER_MENU','MoveRangeCommandId','handleInsertRow','getUndoRedoMutationParamsCache','getUnitId','roomMembers','addObjects','ISocketService','mapTo','startColumn','getUnhiddenWorksheets','APPLY_NON_SEQUENTIAL_REVISION','getFocusedUnit','collab-text-anchor-','toString','selections','m2Prime','YUUMI_ASYNCIO_CANCELLED','WECHAT_HAS_BEEN_BOUND','_registerDependencies','editingUnit','YUUMI_UNABLE_LOAD_URL','UNDEFINED','ICommandService','onStarting','_saveTaskMap','NOT_COLLAB','_onCursorUpdate','INVALID_INVITE_CODE','m1Prime','_cursor','DOC_RANGE_TYPE','getUniverSheetInstance','@univerjs/docs-ui','getCurrentSelections','rxjs','imageSourceType','_renderManagerService','_imageIoService','getDocRanges','text','registerRefRange','hide','getCoordByCell','INVITE_CODE_ALREADY_BOUND','permission.title','CollaborationUIEventService','mask','replaceState','delete','takeUntil','enableLocalCache','location','IUniverInstanceService','_anchorDot','getValue','AWAITING','restore','currentTheme$','runId','stringify','_injector','fromEventSubject','filter','MUTATION','getCurrent','getRelativeToViewportCoord','_docTransformIMECacheService','engine','UniverCollaborationClientUIPlugin','substring','LICENSE_IMPORT_SIZE_EXCEEDED','IUIPartsService','Failed','DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT','href','collab-rect-range-','ILocalCacheService','_scheduleClearOtherTimer','clearTimeout','invokeId','onPointerLeave$','actions','getStateCache','_status$','univer-flex\x20univer-mr-2\x20univer-text-xl','isTransformMutationFailure','sheetId','bottom','eventID','_updateLocalCursor','LOGIN_FAILED','propertyIsEnumerable','_collabCursorController','memberID','WebSocketService','8QkcgnH','YUUMI_TABLE_NOT_FOUND_IN_UNIT','UPDATE_CURSOR','SUBMIT_CHANGESET_TIMEOUT','runRefRangeMutations','string','defineProperty','Inject','flatMap','url(#on-line-icon_clip0_910_349)','green.600','Subject','complete','RegularPolygon','_getScale','measureText','LICENSE_EXPORT_SIZE_EXCEEDED','attrs','length','rxjs/operators','redoState','size','jsx','show','DeleteRangeMoveLeftCommandId','CollaborationController','_docTransformStateCacheService','searchParams','sessionStatus$','clipPath','@univerjs-pro/collaboration-client','backgroundColor','RECT','SheetCollabCursorShape','combineLatest','_docStateChangeManagerService','INVALID_ARGUMENT','_startSheetCollabCursor','getCurrentRevOfUnit','_dataLoaderService','_disabled','CollaborationUIEventId','_scheduleSaving','IConfigService','fillStyle','_removeCollabCursors','SetSelectionsOperation','getAncestorScale','4733208IsrXuf','YUUMI_SUBSCRIPTION_NOT_FOUND','black','defs','DataLoaderService','ISnapshotServerService','UnitStatus','DocSelectionManagerService','fillText','getOffsetConfig','unshift','LICENSE_DISTRO_REJECTED','createElement','debounce','collaboration.closeRoom','_configService','_saveCache','_unitOnClients','onCommandExecuted','assignAColorForMemberID','tag','div','LocaleService','univerjs-icon\x20univerjs-icon-','on-line-icon','idSuffix','getParam','setAlpha','debug','contains','InsertColCommandId','_docSkeletonManagerService','registerRenderModule','switchMap','UniverCollaborationClientPlugin','SYNCED','JOIN_ROOM_FAILED','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','indexOf','_hideTimer','getMemberID','displayName','_collabCursorState$','updateOfflineData','RemoveColCommandId','IRenderManagerService','SOCKET_FAILED','setInterval','_entityInit$','makeDirty','white','ILogService','throttleTime','Tools','_initResize','BrowserCollaborationSocketService','_syncEditingCollabCursorService','_cursorShapes','isEditing','_instanceService','createIdentifier','subscribe','_removeClearOtherTimer','CollaborationDataLoaderController','_color','_transformUndoRedoStack','_range','colorChannel1','_revisionService','ACTIVE_UNIT_EVENT_CHANNEL','popstate','_urlService','_refRangeService','random','Unknown\x20user','forEach','Rect','getRangePointData','loadOfflineData','PY_RUNTIME_SCRIPT_ERROR','UniverInstanceType','PERMISSION_DENIED','Warning','url(#$1','0\x200\x2016\x2016','handleDeleteRangeMoveLeft','SheetsSelectionsService','_scheduleHeartbeat','beginPath','ticket','top','getOwnPropertySymbols','session.connection-failed','setUndoRedoMutationParamsCache','values','InsertRowCommandId','key','subunit','endColumn','SetDocZoomRatioOperation','OFFLINE','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','MOBILE_HAS_BEEN_BOUND','_getSaveTimeout','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','labelPosition','_logService','off-line-icon_clip0_910_343','_id','_cursors','_onRefRangeChange','_doCreateSocket','IDocClipboardService','_eventUnsubscribe','saveTaskMap','_name','icon','result','YUUMI_URL_COL_OUT_OF_RANGE','requireSession','pipe','react/jsx-runtime','_initCommandExecutedListener','removeParam','assign','set','trim','setParam','getVpScrollXYInfoByPosToVp','saveImage','unload','fromEvent','ColorKit','SetWorksheetActivateCommand','off-line-icon','_collabSessionService','_heartbeatTimer','useDependency','unsubscribe','handleDeleteRangeMoveUp','body','@univerjs/network','hasOwnProperty','RemoteUniscriptService','color','getConfig','getOwnPropertyDescriptor','ranges','OTHER_CLIENTS_EDITING','textRanges','setConfig','roomMembers$','collabStatus.offline','split','executeCommand','_transformPreviousActiveRange','_session','_scene','APPLY_DUPLICATED','transformByState','then','getMergeData','_initEntityListener','EMAIL_HAS_BEEN_BOUND','range','focused$','lineTo','@univerjs-pro/collaboration','error','Disposable','isActive','event$','ONLINE','_labelPosition','evenodd','RxDisposable','UNIVER_DOC','toDisposable','DocCollaborationEntity','round','defIds','getTypeOfUnitAdded$','collab-text-range-','getSheetObject','function','_selfUnitIDs','@univerjs/engine-formula','path','application/json','name','_setupSubUnitSync','registerComponent','exhaustSavingTask','collaboration-client-ui.config','unitId','_init','_initDependencies','_initStatusListener','search','Module','session.will-retry','hovered','Optional','currentColor','_transformService','MessageType','newValue','push','2794146jHUzeA','deserializeRangeWithSheet','SessionStatus','18210KoPRuI','setShapeProps','whenReady','_handleJoinEvent','onRendered','DeleteRangeMoveUpCommandId','SetTextSelectionsOperation','getTypeOfUnitDisposed$','IImageIoService','storage','getCurrentUnitForType','startsWith','DesktopCollaborationStatusDisplayController'];_0x3d85=function(){return _0x3d103d;};return _0x3d85();}z=kt([ce(0x0,a[_0x38408b(0x136)](a[_0x38408b(0x2a8)])),ce(0x1,m['ITransformService']),ce(0x2,p[_0x38408b(0x18c)])],z);var Ht=Object[_0x38408b(0x1f1)],Ft=(_0x1a734e,_0x232caa,_0x2f4a91,_0x38db10)=>{const _0x73816d=_0x38408b;for(var _0x5493ae=_0x38db10>0x1?void 0x0:_0x38db10?Ht(_0x232caa,_0x2f4a91):_0x232caa,_0x26fbcf=_0x1a734e[_0x73816d(0x141)]-0x1,_0x33b8d5;_0x26fbcf>=0x0;_0x26fbcf--)(_0x33b8d5=_0x1a734e[_0x26fbcf])&&(_0x5493ae=_0x33b8d5(_0x5493ae)||_0x5493ae);return _0x5493ae;},le=(_0x30e9f0,_0x4c36f6)=>(_0xd84e94,_0x20e48d)=>_0x4c36f6(_0xd84e94,_0x20e48d,_0x30e9f0);let J=class{constructor(_0xd142f0,_0x55281f,_0x140de8){const _0x38e7aa=_0x38408b;this[_0x38e7aa(0x10c)]=_0xd142f0,this[_0x38e7aa(0x22b)]=_0x55281f,this['_docStateChangeManagerService']=_0x140de8;}['transformStateCache'](_0x212509){const _0x1024ff=_0x38408b;this[_0x1024ff(0x301)](_0x212509);}[_0x38408b(0x2a9)](_0xe26511){const _0x9faf31=_0x38408b,{unitID:_0x162d7e}=_0xe26511,{collaboration:_0x1d0c87}=this['_docStateChangeManagerService'][_0x9faf31(0x122)](_0x162d7e);if(_0x1d0c87[_0x9faf31(0x141)]===0x0)return _0xe26511;let _0x343354=a['Tools'][_0x9faf31(0x334)](_0xe26511[_0x9faf31(0x32f)][0x0]);for(let _0x191e61=0x0;_0x191e61<_0x1d0c87['length'];_0x191e61++){const _0x335b59={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x1d0c87[_0x191e61]['unitId'],..._0x1d0c87[_0x191e61][_0x9faf31(0x143)]}},_0x103d2a=this[_0x9faf31(0x22b)]['transformMutation'](_0x343354,_0x335b59,!0x1);if(m[_0x9faf31(0x125)](_0x103d2a))throw _0x103d2a['error'];_0x343354=_0x103d2a[_0x9faf31(0x386)];}return{...a['Tools'][_0x9faf31(0x334)](_0xe26511),'mutations':[_0x343354]};}[_0x38408b(0x301)](_0x2bfb94){const _0x3493c6=_0x38408b,{unitID:_0x4e44a0}=_0x2bfb94,{history:_0x44fef4,collaboration:_0x3febef}=this[_0x3493c6(0x152)][_0x3493c6(0x122)](_0x4e44a0);if(_0x44fef4[_0x3493c6(0x141)]===0x0&&_0x3febef[_0x3493c6(0x141)]===0x0)return;const _0x318a5d=[],_0x284fd2=[];let _0x4712be=a[_0x3493c6(0x194)][_0x3493c6(0x334)](_0x2bfb94['mutations'][0x0]),_0x2042d2=a['Tools'][_0x3493c6(0x334)](_0x2bfb94[_0x3493c6(0x32f)][0x0]);for(let _0x559e2a=_0x44fef4[_0x3493c6(0x141)]-0x1;_0x559e2a>=0x0;_0x559e2a--){const _0x464a95={'id':_0x3493c6(0x34c),'params':{'unitId':_0x44fef4[_0x559e2a][_0x3493c6(0x221)],..._0x44fef4[_0x559e2a][_0x3493c6(0x33b)]}},_0xc190d5={'id':_0x3493c6(0x34c),'params':{'unitId':_0x44fef4[_0x559e2a][_0x3493c6(0x221)],..._0x44fef4[_0x559e2a][_0x3493c6(0x143)]}},_0x436035=this[_0x3493c6(0x22b)]['transformMutation'](_0x4712be,_0x464a95,!0x1),_0x97a39f=this[_0x3493c6(0x22b)][_0x3493c6(0x2a4)](_0x2042d2,_0xc190d5,!0x1);if(m['isTransformMutationFailure'](_0x436035))throw _0x436035[_0x3493c6(0x207)];if(m[_0x3493c6(0x125)](_0x97a39f))throw _0x97a39f['error'];_0x318a5d[_0x3493c6(0x169)]({..._0x44fef4[_0x559e2a],'undoState':_0x436035[_0x3493c6(0x379)][_0x3493c6(0x31e)],'redoState':_0x97a39f['m2Prime'][_0x3493c6(0x31e)]}),_0x4712be=_0x436035[_0x3493c6(0x386)],_0x2042d2=_0x97a39f['m1Prime'];}_0x4712be=a['Tools'][_0x3493c6(0x334)](_0x2bfb94['mutations'][0x0]),_0x2042d2=a[_0x3493c6(0x194)][_0x3493c6(0x334)](_0x2bfb94[_0x3493c6(0x32f)][0x0]);for(let _0x5bed67=_0x3febef[_0x3493c6(0x141)]-0x1;_0x5bed67>=0x0;_0x5bed67--){const _0x35de59={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x3febef[_0x5bed67][_0x3493c6(0x221)],..._0x3febef[_0x5bed67][_0x3493c6(0x33b)]}},_0x3629a5={'id':_0x3493c6(0x34c),'params':{'unitId':_0x3febef[_0x5bed67][_0x3493c6(0x221)],..._0x3febef[_0x5bed67][_0x3493c6(0x143)]}},_0x156414=this[_0x3493c6(0x22b)]['transformMutation'](_0x4712be,_0x35de59,!0x1),_0x4a6c20=this[_0x3493c6(0x22b)][_0x3493c6(0x2a4)](_0x2042d2,_0x3629a5,!0x1);if(m[_0x3493c6(0x125)](_0x156414))throw _0x156414[_0x3493c6(0x207)];if(m[_0x3493c6(0x125)](_0x4a6c20))throw _0x4a6c20[_0x3493c6(0x207)];_0x284fd2[_0x3493c6(0x169)]({..._0x3febef[_0x5bed67],'undoState':_0x156414[_0x3493c6(0x379)][_0x3493c6(0x31e)],'redoState':_0x4a6c20[_0x3493c6(0x379)][_0x3493c6(0x31e)]}),_0x4712be=_0x156414[_0x3493c6(0x386)],_0x2042d2=_0x4a6c20[_0x3493c6(0x386)];}this[_0x3493c6(0x152)]['setStateCache'](_0x4e44a0,{'history':_0x318a5d,'collaboration':_0x284fd2});}};J=Ft([le(0x0,a[_0x38408b(0x136)](a[_0x38408b(0x2a8)])),le(0x1,m[_0x38408b(0x315)]),le(0x2,a[_0x38408b(0x136)](b[_0x38408b(0x328)]))],J);var Yt=Object[_0x38408b(0x1f1)],Wt=(_0x48f089,_0x1322b4,_0x2fa465,_0x5cb0fd)=>{for(var _0x3986d8=_0x5cb0fd>0x1?void 0x0:_0x5cb0fd?Yt(_0x1322b4,_0x2fa465):_0x1322b4,_0x530e71=_0x48f089['length']-0x1,_0x40ffd9;_0x530e71>=0x0;_0x530e71--)(_0x40ffd9=_0x48f089[_0x530e71])&&(_0x3986d8=_0x40ffd9(_0x3986d8)||_0x3986d8);return _0x3986d8;},Ne=(_0x47e3b0,_0x4f318f)=>(_0x47565b,_0x51db85)=>_0x4f318f(_0x47565b,_0x51db85,_0x47e3b0);let Z=class{constructor(_0x442e12,_0x3a779e){const _0x59d5c0=_0x38408b;this[_0x59d5c0(0x10c)]=_0x442e12,this[_0x59d5c0(0x22b)]=_0x3a779e;}['transformSelections'](_0x5eccc3){const _0x573c64=_0x38408b;var _0x2f649d;const _0x1666cc=this['_injector']['get'](Y['DocSelectionManagerService']),_0x7a3c07=(_0x2f649d=_0x1666cc[_0x573c64(0xf6)]())!=null?_0x2f649d:[];if(_0x7a3c07[_0x573c64(0x141)]===0x0)return;const _0x39a301=_0x5eccc3[_0x573c64(0x2c1)],_0x4c7ce0=[{'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x39a301,'actions':null,'textRanges':_0x7a3c07}}],_0x3acda6=this[_0x573c64(0x22b)][_0x573c64(0x336)](_0x5eccc3,_0x4c7ce0);if(!m[_0x573c64(0x297)](_0x3acda6))throw _0x3acda6['error'];const _0x199cc1=_0x3acda6['m2Prime'][0x0][_0x573c64(0x31e)][_0x573c64(0x1f4)];Array['isArray'](_0x199cc1)&&_0x199cc1[_0x573c64(0x141)]&&_0x1666cc['replaceDocRanges'](_0x199cc1,{'unitId':_0x39a301,'subUnitId':_0x39a301},!0x1);}};Z=Wt([Ne(0x0,a[_0x38408b(0x136)](a[_0x38408b(0x2a8)])),Ne(0x1,m[_0x38408b(0x315)])],Z);var Vt=Object['getOwnPropertyDescriptor'],Xt=(_0x397ed6,_0x27fb6b,_0x28a283,_0x2f29ba)=>{const _0x24f099=_0x38408b;for(var _0x400f9d=_0x2f29ba>0x1?void 0x0:_0x2f29ba?Vt(_0x27fb6b,_0x28a283):_0x27fb6b,_0x9eafcd=_0x397ed6[_0x24f099(0x141)]-0x1,_0x1ef4dd;_0x9eafcd>=0x0;_0x9eafcd--)(_0x1ef4dd=_0x397ed6[_0x9eafcd])&&(_0x400f9d=_0x1ef4dd(_0x400f9d)||_0x400f9d);return _0x400f9d;},N=(_0x42a540,_0xa4371b)=>(_0x455bf8,_0x4bd431)=>_0xa4371b(_0x455bf8,_0x4bd431,_0x42a540);let Q=class extends a[_0x38408b(0x208)]{constructor(_0x3ad337,_0x1e8e2d,_0x5a5a75,_0x371037,_0x29467c,_0x1900e8,_0x5b3887,_0xb89243){const _0xcfdc04=_0x38408b;super(),h(this,_0xcfdc04(0x123),new d[(_0xcfdc04(0x365))](u[_0xcfdc04(0x316)][_0xcfdc04(0x383)])),(this[_0xcfdc04(0x152)]=_0x3ad337,this[_0xcfdc04(0x270)]=_0x1e8e2d,this['_docTransformIMECacheService']=_0x5a5a75,this[_0xcfdc04(0x149)]=_0x371037,this[_0xcfdc04(0x2d4)]=_0x29467c,this['_docSyncEditingCollabCursorService']=_0x1900e8,this['_messageService']=_0x5b3887,this[_0xcfdc04(0x2b9)]=_0xb89243,this[_0xcfdc04(0x201)]());}['_initEntityListener'](){const _0x31db41=_0x38408b;this[_0x31db41(0x344)](this['_collaborationController'][_0x31db41(0x307)][_0x31db41(0x19c)](_0x548caa=>{const _0x371a14=_0x31db41,_0x33e674=this[_0x371a14(0x152)][_0x371a14(0x306)][_0x371a14(0x19c)](_0x724e2b=>{const _0x45e869=_0x371a14;if(_0x724e2b==null)return;const {unitId:_0x432cd4,redoState:_0x1e3a5d,commandId:_0x362b5}=_0x724e2b;if(_0x432cd4!==_0x548caa[_0x45e869(0x2c1)])return;const _0x2dd16d={'id':_0x362b5,'type':a['CommandType'][_0x45e869(0x10f)],'params':{'unitId':_0x432cd4,'actions':_0x1e3a5d[_0x45e869(0x121)],'textRanges':null}};_0x548caa[_0x45e869(0x29f)](_0x2dd16d);});if(_0x548caa[_0x371a14(0x344)](_0x33e674),_0x548caa instanceof u[_0x371a14(0x211)]){const _0x46dad3={'onTransformIME':_0x270cac=>this[_0x371a14(0x112)][_0x371a14(0x266)](_0x270cac),'onTransformState':_0x3be7c7=>this[_0x371a14(0x149)]['transformStateCache'](_0x3be7c7),'onTransformSelections':_0x4ca5d1=>this['_docTransformSelectionsService'][_0x371a14(0x275)](_0x4ca5d1),'onSyncEditingCollabCursor':_0x46bc41=>this[_0x371a14(0x2cf)]['syncEditingCollabCursor'](_0x46bc41),'onTransformRemoteChangesetByIMECache':_0x2d3cd7=>this[_0x371a14(0x112)]['transformRemoteChangeset'](_0x2d3cd7),'onTransformRemoteChangesetByStateCache':_0x5991a3=>this['_docTransformStateCacheService'][_0x371a14(0x2a9)](_0x5991a3)};_0x548caa['addHandlerCallback'](_0x46dad3);}}));}};Q=Xt([N(0x0,a[_0x38408b(0x136)](b[_0x38408b(0x328)])),N(0x1,a[_0x38408b(0x136)](u[_0x38408b(0x148)])),N(0x2,a[_0x38408b(0x136)](z)),N(0x3,a['Inject'](J)),N(0x4,a[_0x38408b(0x136)](Z)),N(0x5,a[_0x38408b(0x136)](Ce)),N(0x6,T[_0x38408b(0x2c7)]),N(0x7,a[_0x38408b(0x136)](a[_0x38408b(0x175)]))],Q);var Gt=Object[_0x38408b(0x1f1)],Kt=(_0x1e425e,_0x11e63c,_0xf3c68f,_0x51ae5a)=>{for(var _0x5fecc1=_0x51ae5a>0x1?void 0x0:_0x51ae5a?Gt(_0x11e63c,_0xf3c68f):_0x11e63c,_0x36d06d=_0x1e425e['length']-0x1,_0x402cfa;_0x36d06d>=0x0;_0x36d06d--)(_0x402cfa=_0x1e425e[_0x36d06d])&&(_0x5fecc1=_0x402cfa(_0x5fecc1)||_0x5fecc1);return _0x5fecc1;},_e=(_0x211ce0,_0x1da2dc)=>(_0x48cd96,_0x25921a)=>_0x1da2dc(_0x48cd96,_0x25921a,_0x211ce0);let ge=class extends a['Disposable']{constructor(_0x3517a7,_0x1b7fdb,_0x28eabe){const _0xe7aeb7=_0x38408b;super(),h(this,_0xe7aeb7(0x311),new Map()),h(this,_0xe7aeb7(0x382),new Map()),h(this,_0xe7aeb7(0x157),!0x1),(this['_configService']=_0x3517a7,this[_0xe7aeb7(0x2f0)]=_0x1b7fdb,this[_0xe7aeb7(0x1a3)]=_0x28eabe);}['disableLocalCache'](){this['_disabled']=!0x0;}[_0x38408b(0x102)](){const _0x56f84f=_0x38408b;this[_0x56f84f(0x157)]=!0x1;}get['saveTaskMap'](){return this['_saveTaskMap'];}[_0x38408b(0x2ab)](){const _0x4c4a8f=_0x38408b;this[_0x4c4a8f(0x21f)]()[_0x4c4a8f(0x1ff)](()=>super['dispose']());}async[_0x38408b(0x1ad)](_0x3da998){const _0x2d5ef9=_0x38408b;return this[_0x2d5ef9(0x157)]?null:this[_0x2d5ef9(0x2f0)]['getItem'](u['getLocalCacheKey'](_0x3da998));}async[_0x38408b(0x34a)](_0x30b6ea,_0x1e182f){const _0x15df67=_0x38408b;return!!this[_0x15df67(0x2f0)][_0x15df67(0x359)](_0x30b6ea,_0x1e182f);}[_0x38408b(0x18a)](_0x35437b,_0xcb9bbd,_0xe38054,_0x3dd858){const _0x45e0d6=_0x38408b,_0xae2da4=this[_0x45e0d6(0x1a3)][_0x45e0d6(0x155)](_0x35437b);this[_0x45e0d6(0x311)][_0x45e0d6(0x1dc)](_0x35437b,{'unitID':_0x35437b,'type':_0xcb9bbd,'awaitingChangeset':_0xe38054,'mutations':_0x3dd858,'rev':_0xae2da4}),this['_saveTaskMap'][_0x45e0d6(0x2a3)](_0x35437b)||this[_0x45e0d6(0x159)](_0x35437b);}[_0x38408b(0x159)](_0x5a6b7f){const _0x41d936=_0x38408b,_0x38db59=this[_0x41d936(0x1c6)]();_0x38db59===0x0?this[_0x41d936(0x16f)](_0x5a6b7f):this[_0x41d936(0x382)][_0x41d936(0x1dc)](_0x5a6b7f,setTimeout(()=>this[_0x41d936(0x16f)](_0x5a6b7f),_0x38db59));}['_getSaveTimeout'](){const _0x24912f=_0x38408b;var _0x76a1d6;return(_0x76a1d6=this[_0x24912f(0x16e)][_0x24912f(0x1f0)](u[_0x24912f(0x33d)]))!=null?_0x76a1d6:u[_0x24912f(0x280)];}[_0x38408b(0x16f)](_0x3987d9){const _0x1eb1ea=_0x38408b,_0x5b1874=this[_0x1eb1ea(0x382)][_0x1eb1ea(0x313)](_0x3987d9);return _0x5b1874!==void 0x0&&window[_0x1eb1ea(0x11e)](_0x5b1874),this[_0x1eb1ea(0x2f0)][_0x1eb1ea(0x359)](u[_0x1eb1ea(0x248)](_0x3987d9),this[_0x1eb1ea(0x311)][_0x1eb1ea(0x313)](_0x3987d9))['then'](()=>this[_0x1eb1ea(0x382)][_0x1eb1ea(0x100)](_0x3987d9));}async[_0x38408b(0x21f)](){const _0x5a8cc7=_0x38408b,_0x40800a=[];this[_0x5a8cc7(0x382)][_0x5a8cc7(0x1aa)]((_0xfc3cef,_0x156bbf)=>{const _0x4e2bf1=_0x5a8cc7;window[_0x4e2bf1(0x11e)](_0xfc3cef),_0x40800a[_0x4e2bf1(0x22e)](this[_0x4e2bf1(0x16f)](_0x156bbf)[_0x4e2bf1(0x1ff)](()=>{const _0x53e7ee=_0x4e2bf1;this[_0x53e7ee(0x382)][_0x53e7ee(0x100)](_0x156bbf);}));}),await Promise[_0x5a8cc7(0x2ef)](_0x40800a);}};ge=Kt([_e(0x0,a['IConfigService']),_e(0x1,a[_0x38408b(0x2e3)]),_e(0x2,a[_0x38408b(0x136)](m['RevisionService']))],ge);class je extends a['RxDisposable']{constructor(){const _0x16c1ac=_0x38408b;super(),h(this,_0x16c1ac(0x27b)),this['urlChange$']=d[_0x16c1ac(0x1e2)](window,_0x16c1ac(0x1a5))[_0x16c1ac(0x1d7)](d[_0x16c1ac(0x101)](this[_0x16c1ac(0x283)]),d['shareReplay'](0x1),d[_0x16c1ac(0x371)](void 0x0));}[_0x38408b(0x1de)](_0x21d786,_0x51a47f,_0x8e500f=!0x1){const _0xc9766f=_0x38408b,_0x481e31=new URL(window['location']['href']);_0x481e31[_0xc9766f(0x14a)][_0xc9766f(0x1dc)](_0x21d786,_0x51a47f),_0x8e500f?window[_0xc9766f(0x303)][_0xc9766f(0xff)]('','',_0x481e31[_0xc9766f(0x377)]()):window['history'][_0xc9766f(0x2b4)]('','',_0x481e31['toString']());}[_0x38408b(0x1da)](_0x5b5eec,_0x8247b=!0x1){const _0x14a396=_0x38408b,_0x2ab70f=new URL(window[_0x14a396(0x103)][_0x14a396(0x11a)]);_0x2ab70f[_0x14a396(0x14a)][_0x14a396(0x100)](_0x5b5eec),_0x8247b?window[_0x14a396(0x303)][_0x14a396(0xff)]('','',_0x2ab70f['toString']()):window[_0x14a396(0x303)][_0x14a396(0x2b4)]('','',_0x2ab70f[_0x14a396(0x377)]());}[_0x38408b(0x179)](_0x288c96){const _0x28d189=_0x38408b;var _0x1b345e;return(_0x1b345e=new URL(window[_0x28d189(0x103)][_0x28d189(0x11a)])[_0x28d189(0x14a)]['get'](_0x288c96))!=null?_0x1b345e:void 0x0;}}var qt=Object[_0x38408b(0x135)],zt=Object[_0x38408b(0x1f1)],Jt=(_0x1ce79a,_0x4470f8,_0x5b9bc8)=>_0x4470f8 in _0x1ce79a?qt(_0x1ce79a,_0x4470f8,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x5b9bc8}):_0x1ce79a[_0x4470f8]=_0x5b9bc8,Zt=(_0x4e25a8,_0x38ffd6,_0x1efee3,_0x196e11)=>{const _0x56d7ff=_0x38408b;for(var _0x19a061=_0x196e11>0x1?void 0x0:_0x196e11?zt(_0x38ffd6,_0x1efee3):_0x38ffd6,_0xa401ef=_0x4e25a8[_0x56d7ff(0x141)]-0x1,_0x321cd7;_0xa401ef>=0x0;_0xa401ef--)(_0x321cd7=_0x4e25a8[_0xa401ef])&&(_0x19a061=_0x321cd7(_0x19a061)||_0x19a061);return _0x19a061;},he=(_0x46b791,_0x504fb0)=>(_0x4e6080,_0x4c3a91)=>_0x504fb0(_0x4e6080,_0x4c3a91,_0x46b791),Qt=(_0x4ce023,_0x4887c5,_0x2844d7)=>Jt(_0x4ce023,_0x4887c5+'',_0x2844d7);const es=_0x38408b(0x31a);exports[_0x38408b(0x114)]=class extends a['Plugin']{constructor(_0x3fb72e=Ue,_0x303adb,_0x12c31f,_0x49110){const _0x4c9728=_0x38408b;super(),this[_0x4c9728(0x2d1)]=_0x3fb72e,this['_renderManagerService']=_0x303adb,this[_0x4c9728(0x10c)]=_0x12c31f,this['_configService']=_0x49110;const {..._0x335e01}=a[_0x4c9728(0x29d)]({},Ue,this['_config']);this['_configService'][_0x4c9728(0x1f5)]($t,_0x335e01);}[_0x38408b(0x381)](){const _0xd48829=_0x38408b;this[_0xd48829(0x37c)](),this[_0xd48829(0x223)]();}[_0x38408b(0x236)](){this['_registerRenderDependencies']();}['_registerDependencies'](){const _0x208342=_0x38408b;var _0xc249ce;const _0x4bf0fa=[[me],[Z],[z],[J],[Ce],[be,{'useClass':je}],[G[_0x208342(0x370)],{'useClass':G[_0x208342(0x12e)]}],[u[_0x208342(0x11c)],{'useClass':ge}],[exports[_0x208342(0x23e)]],[Q],[q],[x],[de],[exports[_0x208342(0x19e)]]];a[_0x208342(0x319)](this['_injector'],a[_0x208342(0x264)](_0x4bf0fa,(_0xc249ce=this[_0x208342(0x2d1)])==null?void 0x0:_0xc249ce[_0x208342(0x267)]));}[_0x38408b(0x2d0)](){const _0x409397=_0x38408b;this[_0x409397(0x344)](this['_renderManagerService'][_0x409397(0x17f)](a[_0x409397(0x1af)][_0x409397(0x20f)],[Ie])),this[_0x409397(0x344)](this['_renderManagerService'][_0x409397(0x17f)](a[_0x409397(0x1af)][_0x409397(0x2b2)],[ve]));}[_0x38408b(0x223)](){const _0x58ec5f=_0x38408b;a[_0x58ec5f(0x2ca)](this[_0x58ec5f(0x10c)],[[x],[exports[_0x58ec5f(0x23e)]],[Q],[q],[exports[_0x58ec5f(0x19e)]]]);}},Qt(exports['UniverCollaborationClientUIPlugin'],'pluginName',es),exports[_0x38408b(0x114)]=Zt([a['DependentOn'](u[_0x38408b(0x181)]),he(0x1,p[_0x38408b(0x18c)]),he(0x2,a[_0x38408b(0x136)](a[_0x38408b(0x2a8)])),he(0x3,a[_0x38408b(0x15a)])],exports[_0x38408b(0x114)]);var ts=Object[_0x38408b(0x1f1)],ss=(_0x5d65a5,_0x434f8e,_0x32c872,_0x51e05a)=>{for(var _0xf85df6=_0x51e05a>0x1?void 0x0:_0x51e05a?ts(_0x434f8e,_0x32c872):_0x434f8e,_0x122646=_0x5d65a5['length']-0x1,_0x5823e3;_0x122646>=0x0;_0x122646--)(_0x5823e3=_0x5d65a5[_0x122646])&&(_0xf85df6=_0x5823e3(_0xf85df6)||_0xf85df6);return _0xf85df6;},F=(_0x16719c,_0x35c69a)=>(_0x22a952,_0x1bbfb0)=>_0x35c69a(_0x22a952,_0x1bbfb0,_0x16719c);exports[_0x38408b(0x196)]=class extends u[_0x38408b(0x323)]{constructor(_0x11089a,_0x1b0d66,_0x66696,_0xfcdbc0,_0x4844da){super(_0x11089a,_0x1b0d66,_0x66696,_0xfcdbc0,_0x4844da);}async[_0x38408b(0x241)](_0x18fafc){const _0x1bf976=_0x38408b,_0x3d42cf=await this[_0x1bf976(0x2d6)](),_0x275352=this['_createSocketURL'](_0x18fafc,_0x3d42cf);return this[_0x1bf976(0x1ce)](_0x275352);}[_0x38408b(0x259)](_0x35f9e2,_0x526143){const _0x1e5624=_0x38408b,_0x4959aa=typeof window>'u'?new URL(_0x35f9e2):new URL(_0x35f9e2,window[_0x1e5624(0x103)][_0x1e5624(0x272)]);_0x4959aa['searchParams'][_0x1e5624(0x1dc)](_0x1e5624(0x2c5),_0x526143);const _0x409efd=typeof window>'u'?new URLSearchParams():new URLSearchParams(window['location'][_0x1e5624(0x225)]);return _0x409efd[_0x1e5624(0x313)](_0x1e5624(0x10a))&&_0x4959aa[_0x1e5624(0x14a)]['set'](_0x1e5624(0x10a),_0x409efd['get']('runId')),_0x4959aa[_0x1e5624(0x377)]();}async[_0x38408b(0x2d6)](){const _0x53ad38=_0x38408b;var _0x3b202c,_0x293982,_0x437b7e;const _0x48877d=this[_0x53ad38(0x16e)][_0x53ad38(0x1f0)](u[_0x53ad38(0x255)]),_0x1fb7fb=(_0x3b202c=_0x48877d==null?void 0x0:_0x48877d['wsSessionTicketUrl'])!=null?_0x3b202c:u['DEFAULT_WS_SESSION_TICKET_URL'];return(_0x437b7e=(_0x293982=(await this[_0x53ad38(0x30a)][_0x53ad38(0x313)](_0x1fb7fb,{'headers':{'Content-Type':_0x53ad38(0x21b)}}))[_0x53ad38(0x1eb)])==null?void 0x0:_0x293982[_0x53ad38(0x1b8)])!=null?_0x437b7e:'';}},exports['BrowserCollaborationSocketService']=ss([F(0x0,a[_0x38408b(0x136)](a[_0x38408b(0x2a8)])),F(0x1,a[_0x38408b(0x136)](G[_0x38408b(0x2bc)])),F(0x2,a['IConfigService']),F(0x3,a[_0x38408b(0x192)]),F(0x4,m[_0x38408b(0x164)])],exports[_0x38408b(0x196)]);const Me=0x7530,Le=_0x38408b(0x1a4);class is extends a[_0x38408b(0x208)]{constructor(){const _0x48dc3c=_0x38408b;super(),h(this,_0x48dc3c(0x1cb),a['generateRandomId']()),h(this,_0x48dc3c(0x218),new Set()),h(this,_0x48dc3c(0x170),new Map()),h(this,_0x48dc3c(0x1e7),null),h(this,'_clearOtherTimers',new Map()),h(this,'_unitStatus',new Map()),this[_0x48dc3c(0x222)]();}[_0x38408b(0x2ab)](){const _0x59ae98=_0x38408b;super[_0x59ae98(0x2ab)](),this[_0x59ae98(0x290)][_0x59ae98(0x1aa)]((_0x5aa9d1,_0x47ec84)=>this[_0x59ae98(0x19d)](_0x47ec84)),this[_0x59ae98(0x1e7)]&&window[_0x59ae98(0x26b)](this[_0x59ae98(0x1e7)]);}['getUnitStatus$'](_0x9f61db){const _0x17acc3=_0x38408b;return this[_0x17acc3(0x2b6)](_0x9f61db)[_0x17acc3(0x1d7)](d[_0x17acc3(0x339)]());}[_0x38408b(0x37d)](_0x4e3a04){const _0x2d81ab=_0x38408b;this[_0x2d81ab(0x218)][_0x2d81ab(0x144)]===0x0&&this['_scheduleHeartbeat'](),this['_selfUnitIDs'][_0x2d81ab(0x318)](_0x4e3a04),this[_0x2d81ab(0x33e)]({'type':0x0,'memberID':this[_0x2d81ab(0x1cb)],'unitIDs':[_0x4e3a04],'isForwarded':!0x1});}['disposeUnit'](_0x420843){const _0x418946=_0x38408b;this[_0x418946(0x218)]['delete'](_0x420843),this[_0x418946(0x218)][_0x418946(0x144)]===0x0&&this[_0x418946(0x1e7)]&&window[_0x418946(0x26b)](this['_heartbeatTimer']);}[_0x38408b(0x222)](){const _0xd190a3=_0x38408b;this[_0xd190a3(0x344)](a[_0xd190a3(0x210)](d[_0xd190a3(0x1e2)](window,_0xd190a3(0x23b))['subscribe'](_0x4f630f=>{const _0x52f393=_0xd190a3;if(_0x4f630f[_0x52f393(0x1bf)]!==Le||!_0x4f630f['newValue'])return;const _0x359fc2=JSON['parse'](_0x4f630f[_0x52f393(0x22d)]);this[_0x52f393(0x2fb)](_0x359fc2);}))),window['addEventListener'](_0xd190a3(0x1e1),()=>this['_send']({'type':0x1,'memberID':this[_0xd190a3(0x1cb)],'unitIDs':Array['from'](this['_selfUnitIDs'])}));}[_0x38408b(0x2fb)](_0x5d98cd){const _0x131cdf=_0x38408b;switch(_0x5d98cd[_0x131cdf(0x32a)]){case 0x0:this[_0x131cdf(0x235)](_0x5d98cd);break;case 0x1:this[_0x131cdf(0x246)](_0x5d98cd);break;case 0x2:this[_0x131cdf(0x25f)](_0x5d98cd);break;}}[_0x38408b(0x235)](_0x59af54){const _0x926183=_0x38408b,{unitIDs:_0x2e70ce,memberID:_0xd9b938,isForwarded:_0x1fb400}=_0x59af54;_0x2e70ce[_0x926183(0x1aa)](_0x47cdae=>{const _0x9cfbd8=_0x926183;if(!_0x1fb400&&this[_0x9cfbd8(0x170)][_0x9cfbd8(0x2a3)](_0x47cdae)&&this['_ensureSubject'](_0x47cdae)['next'](u[_0x9cfbd8(0x165)]['OTHER_CLIENTS_EDITING']),!this[_0x9cfbd8(0x170)][_0x9cfbd8(0x2a3)](_0x47cdae)||!this[_0x9cfbd8(0x170)]['get'](_0x47cdae)['has'](_0xd9b938)){const _0xf2ea4b=this[_0x9cfbd8(0x170)][_0x9cfbd8(0x313)](_0x47cdae)||new Set();_0xf2ea4b[_0x9cfbd8(0x318)](_0xd9b938),this['_unitOnClients'][_0x9cfbd8(0x1dc)](_0x47cdae,_0xf2ea4b),this[_0x9cfbd8(0x11d)](_0xd9b938);}}),_0x1fb400||this['_send']({'type':0x0,'memberID':this['_id'],'unitIDs':[...this[_0x926183(0x218)]],'isForwarded':!0x0});}['_scheduleClearOtherTimer'](_0x5ce10d){const _0x25bb9e=_0x38408b;this['_removeClearOtherTimer'](_0x5ce10d);const _0x2beb67=window[_0x25bb9e(0x35b)](()=>{const _0x458195=_0x25bb9e;this[_0x458195(0x170)][_0x458195(0x1aa)](_0x276022=>{const _0xade164=_0x458195;_0x276022[_0xade164(0x100)](_0x5ce10d);});},Me*0x2);this[_0x25bb9e(0x290)][_0x25bb9e(0x1dc)](_0x5ce10d,_0x2beb67);}['_removeClearOtherTimer'](_0x4285ae){const _0x2ef3a4=_0x38408b;if(this[_0x2ef3a4(0x290)]['has'](_0x4285ae)){const _0x4ae5ec=this['_clearOtherTimers'][_0x2ef3a4(0x313)](_0x4285ae);_0x4ae5ec&&window[_0x2ef3a4(0x11e)](_0x4ae5ec),this[_0x2ef3a4(0x290)][_0x2ef3a4(0x1dc)](_0x4285ae,null);}}[_0x38408b(0x246)](_0x388e3d){const _0x5f0242=_0x38408b,{memberID:_0x4a8219,unitIDs:_0x76bcf5}=_0x388e3d;_0x76bcf5[_0x5f0242(0x1aa)](_0x2c9926=>{const _0x1034d7=_0x5f0242;var _0x349f45;const _0x12f62f=this[_0x1034d7(0x170)][_0x1034d7(0x313)](_0x2c9926);_0x12f62f&&(_0x12f62f[_0x1034d7(0x100)](_0x4a8219),(_0x349f45=this[_0x1034d7(0x2b6)](_0x2c9926))==null||_0x349f45[_0x1034d7(0x24b)](_0x12f62f[_0x1034d7(0x144)]===0x0?u['UnitStatus'][_0x1034d7(0x261)]:u[_0x1034d7(0x165)][_0x1034d7(0x1f3)]));}),this['_removeClearOtherTimer'](_0x4a8219);}[_0x38408b(0x25f)](_0x4fa41b){const _0x1b89d8=_0x38408b;this['_scheduleClearOtherTimer'](_0x4fa41b[_0x1b89d8(0x12d)]);}[_0x38408b(0x33e)](_0x1bbe6){const _0x3265c1=_0x38408b;localStorage[_0x3265c1(0x359)](Le,JSON['stringify'](_0x1bbe6));}[_0x38408b(0x1b6)](){const _0x41944b=_0x38408b;this[_0x41944b(0x1e7)]=window[_0x41944b(0x18e)](()=>{const _0x5be925=_0x41944b;this['_send']({'type':0x2,'memberID':this[_0x5be925(0x1cb)]});},Me);}[_0x38408b(0x2b6)](_0x4dc82d){const _0x5c199a=_0x38408b;return this[_0x5c199a(0x312)]['has'](_0x4dc82d)||this['_unitStatus'][_0x5c199a(0x1dc)](_0x4dc82d,new d[(_0x5c199a(0x365))](u['UnitStatus'][_0x5c199a(0x261)])),this[_0x5c199a(0x312)][_0x5c199a(0x313)](_0x4dc82d);}}var Be=(_0x1d0810=>(_0x1d0810[_0x1d0810['UNDEFINED']=0x0]=_0x38408b(0x37f),_0x1d0810[_0x1d0810['OK']=0x1]='OK',_0x1d0810[_0x1d0810[_0x38408b(0x247)]=0x2]='INTERNAL_ERROR',_0x1d0810[_0x1d0810[_0x38408b(0x1b0)]=0x3]='PERMISSION_DENIED',_0x1d0810[_0x1d0810[_0x38408b(0x2be)]=0x4]=_0x38408b(0x2be),_0x1d0810[_0x1d0810['UNAUTHENTICATED']=0x5]='UNAUTHENTICATED',_0x1d0810[_0x1d0810['ALREADY_EXISTS']=0x6]=_0x38408b(0x28e),_0x1d0810[_0x1d0810[_0x38408b(0x153)]=0x7]=_0x38408b(0x153),_0x1d0810[_0x1d0810[_0x38408b(0x279)]=0x8]=_0x38408b(0x279),_0x1d0810[_0x1d0810['COMPLETION_FINISHED']=0x9]=_0x38408b(0x35e),_0x1d0810[_0x1d0810[_0x38408b(0x12a)]=0xa]='LOGIN_FAILED',_0x1d0810[_0x1d0810[_0x38408b(0x31d)]=0x1389]=_0x38408b(0x31d),_0x1d0810[_0x1d0810['SNAPSHOT_INVALID_SNAPSHOT']=0x1771]='SNAPSHOT_INVALID_SNAPSHOT',_0x1d0810[_0x1d0810[_0x38408b(0x254)]=0x1772]=_0x38408b(0x254),_0x1d0810[_0x1d0810[_0x38408b(0x2ed)]=0x1773]=_0x38408b(0x2ed),_0x1d0810[_0x1d0810[_0x38408b(0x351)]=0x1b59]='APPLY_REJECT',_0x1d0810[_0x1d0810[_0x38408b(0x374)]=0x1b5a]=_0x38408b(0x374),_0x1d0810[_0x1d0810['APPLY_REVISION_CONFILICT']=0x1b5b]=_0x38408b(0x2a6),_0x1d0810[_0x1d0810[_0x38408b(0x294)]=0x1b5c]=_0x38408b(0x294),_0x1d0810[_0x1d0810[_0x38408b(0x1fd)]=0x1b5d]='APPLY_DUPLICATED',_0x1d0810[_0x1d0810['CONNECTOR_DATA_TOO_LARGE']=0x1f41]=_0x38408b(0x30f),_0x1d0810[_0x1d0810['LICENSE_MAX_UNITS_EXCEEDED']=0x2329]=_0x38408b(0x2a2),_0x1d0810[_0x1d0810[_0x38408b(0x321)]=0x232a]=_0x38408b(0x321),_0x1d0810[_0x1d0810[_0x38408b(0x116)]=0x232b]=_0x38408b(0x116),_0x1d0810[_0x1d0810[_0x38408b(0x13f)]=0x232c]=_0x38408b(0x13f),_0x1d0810[_0x1d0810['LICENSE_DISTRO_REJECTED']=0x232d]=_0x38408b(0x16a),_0x1d0810[_0x1d0810[_0x38408b(0x37e)]=0x2711]=_0x38408b(0x37e),_0x1d0810[_0x1d0810['YUUMI_URL_COL_OUT_OF_RANGE']=0x2712]=_0x38408b(0x1d5),_0x1d0810[_0x1d0810['YUUMI_RATE_OVER_LIMIT']=0x2713]=_0x38408b(0x357),_0x1d0810[_0x1d0810[_0x38408b(0x160)]=0x2714]='YUUMI_SUBSCRIPTION_NOT_FOUND',_0x1d0810[_0x1d0810[_0x38408b(0x2b5)]=0x271a]='YUUMI_NO_CUBOID_FOR_QUESTION',_0x1d0810[_0x1d0810[_0x38408b(0x37a)]=0x271b]='YUUMI_ASYNCIO_CANCELLED',_0x1d0810[_0x1d0810['YUUMI_TABLE_NOT_FOUND_IN_UNIT']=0x271c]=_0x38408b(0x130),_0x1d0810[_0x1d0810[_0x38408b(0x2df)]=0x271d]='YUUMI_ALL_TABLES_IS_INVALID',_0x1d0810[_0x1d0810[_0x38408b(0x300)]=0x271e]=_0x38408b(0x300),_0x1d0810[_0x1d0810['YUUMI_AI_RUN_FAILED']=0x271f]=_0x38408b(0x2e4),_0x1d0810[_0x1d0810['PY_RUNTIME_SCRIPT_ERROR']=0x2af9]=_0x38408b(0x1ae),_0x1d0810[_0x1d0810['INVITE_CODE_HAS_BEEN_UES']=0x2ee1]='INVITE_CODE_HAS_BEEN_UES',_0x1d0810[_0x1d0810['INVALID_INVITE_CODE']=0x2ee2]=_0x38408b(0x385),_0x1d0810[_0x1d0810['INVITE_CODE_REQUIRED']=0x2ee3]='INVITE_CODE_REQUIRED',_0x1d0810[_0x1d0810['USER_NOT_INVITED_CODE']=0x2ee4]=_0x38408b(0x362),_0x1d0810[_0x1d0810['INVITE_CODE_ALREADY_BOUND']=0x2ee5]=_0x38408b(0xfb),_0x1d0810[_0x1d0810[_0x38408b(0x37b)]=0x32c9]=_0x38408b(0x37b),_0x1d0810[_0x1d0810['MOBILE_HAS_BEEN_BOUND']=0x32ca]=_0x38408b(0x1c5),_0x1d0810[_0x1d0810[_0x38408b(0x202)]=0x32cb]='EMAIL_HAS_BEEN_BOUND',_0x1d0810[_0x1d0810[_0x38408b(0x2bf)]=-0x1]=_0x38408b(0x2bf),_0x1d0810))(Be||{}),ns=Object['getOwnPropertyDescriptor'],rs=(_0x23da24,_0x49d820,_0x46f3c8,_0x1f9297)=>{const _0x466af2=_0x38408b;for(var _0x23abd4=_0x1f9297>0x1?void 0x0:_0x1f9297?ns(_0x49d820,_0x46f3c8):_0x49d820,_0xa3ea5=_0x23da24[_0x466af2(0x141)]-0x1,_0x5eae2e;_0xa3ea5>=0x0;_0xa3ea5--)(_0x5eae2e=_0x23da24[_0xa3ea5])&&(_0x23abd4=_0x5eae2e(_0x23abd4)||_0x23abd4);return _0x23abd4;},ue=(_0x2ebab9,_0x2cef2e)=>(_0x1a4ccb,_0xb833b5)=>_0x2cef2e(_0x1a4ccb,_0xb833b5,_0x2ebab9);exports['RemoteUniscriptService']=class extends a[_0x38408b(0x208)]{constructor(_0x1f5fc3,_0x53e7ca,_0x174580){const _0x58a967=_0x38408b;super(),this[_0x58a967(0x19a)]=_0x1f5fc3,this[_0x58a967(0x30a)]=_0x53e7ca,this['_configService']=_0x174580;}async[_0x38408b(0x243)](_0x489af6,_0x2c5515,_0x5f4441,..._0x7fbd31){const _0x16ace5=_0x38408b;var _0x455601,_0x444b81,_0x17a8ba,_0x9a81f5;const _0x244991=this['_instanceService'][_0x16ace5(0x375)]();if(!_0x244991)throw new Error(_0x16ace5(0x29a));const _0x346358=((_0x455601=this[_0x16ace5(0x16e)]['getConfig'](u[_0x16ace5(0x2c9)]))!=null?_0x455601:u[_0x16ace5(0x119)])+'/'+_0x489af6+'/run/'+_0x2c5515,_0xf288e7=new URL(window[_0x16ace5(0x103)]['href']),_0x22f3d8={'scriptId':_0x489af6,'runId':(_0x444b81=_0xf288e7[_0x16ace5(0x14a)][_0x16ace5(0x313)](_0x16ace5(0x10a)))!=null?_0x444b81:'','function':_0x2c5515,'unitId':_0x244991[_0x16ace5(0x36d)](),'argsOfFunction':JSON[_0x16ace5(0x10b)](_0x7fbd31),'invokeId':(_0x17a8ba=_0x5f4441[_0x16ace5(0x11f)])!=null?_0x17a8ba:'','executionId':(_0x9a81f5=_0x5f4441[_0x16ace5(0x2e0)])!=null?_0x9a81f5:''};try{const _0x432ffc=await this[_0x16ace5(0x30a)][_0x16ace5(0x33f)](_0x346358,{'body':_0x22f3d8});return _0x432ffc[_0x16ace5(0x1eb)][_0x16ace5(0x207)]&&_0x432ffc[_0x16ace5(0x1eb)][_0x16ace5(0x207)][_0x16ace5(0x305)]!==Be['OK']?_0x16ace5(0x118):_0x432ffc['body'][_0x16ace5(0x1d4)];}catch{return _0x16ace5(0x118);}}},exports[_0x38408b(0x1ee)]=rs([ue(0x0,a[_0x38408b(0x104)]),ue(0x1,a[_0x38408b(0x136)](G[_0x38408b(0x2bc)])),ue(0x2,a[_0x38408b(0x15a)])],exports['RemoteUniscriptService']),exports['CollaborationStatusDisplay']=xe,exports[_0x38408b(0x33c)]=be,exports[_0x38408b(0x150)]=Pe,exports[_0x38408b(0x2da)]=is,exports['WebURLService']=je;
|
|
1
|
+
'use strict';const _0x458589=_0x497d;(function(_0x253c5a,_0x235be8){const _0x3c7641=_0x497d,_0x470474=_0x253c5a();while(!![]){try{const _0x4e0674=-parseInt(_0x3c7641(0x34e))/0x1*(parseInt(_0x3c7641(0x301))/0x2)+parseInt(_0x3c7641(0x2ee))/0x3*(-parseInt(_0x3c7641(0x25c))/0x4)+parseInt(_0x3c7641(0x38e))/0x5*(parseInt(_0x3c7641(0x2d3))/0x6)+-parseInt(_0x3c7641(0x174))/0x7*(-parseInt(_0x3c7641(0x13a))/0x8)+-parseInt(_0x3c7641(0x353))/0x9*(-parseInt(_0x3c7641(0x211))/0xa)+parseInt(_0x3c7641(0x2a6))/0xb*(-parseInt(_0x3c7641(0x269))/0xc)+parseInt(_0x3c7641(0x243))/0xd*(parseInt(_0x3c7641(0x27b))/0xe);if(_0x4e0674===_0x235be8)break;else _0x470474['push'](_0x470474['shift']());}catch(_0x48f24b){_0x470474['push'](_0x470474['shift']());}}}(_0x125d,0x22cb4));var Ve=Object[_0x458589(0x2ed)],Xe=(_0x52b418,_0x477ccf,_0x389e2b)=>_0x477ccf in _0x52b418?Ve(_0x52b418,_0x477ccf,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x389e2b}):_0x52b418[_0x477ccf]=_0x389e2b,h=(_0x1dacbb,_0x2b5606,_0x31dca0)=>Xe(_0x1dacbb,typeof _0x2b5606!=_0x458589(0x351)?_0x2b5606+'':_0x2b5606,_0x31dca0);Object[_0x458589(0x2ed)](exports,Symbol[_0x458589(0x23d)],{'value':_0x458589(0x37c)});const u=require(_0x458589(0x393)),a=require('@univerjs/core'),p=require(_0x458589(0x31c)),G=require(_0x458589(0x38f)),b=require(_0x458589(0x2c7)),Ge=require(_0x458589(0x134)),d=require(_0x458589(0x228)),Y=require(_0x458589(0x38a)),m=require(_0x458589(0x2f5)),Ee=require('@univerjs/engine-formula'),g=require(_0x458589(0x162)),$=require(_0x458589(0x14b)),X=require(_0x458589(0x1da)),w=require(_0x458589(0x3ac)),T=require(_0x458589(0x344)),D=require('@univerjs/design'),M=require(_0x458589(0x3a0)),Ke=require('@univerjs/rpc');var qe=Object[_0x458589(0x1b4)],ze=(_0x249c33,_0x2496e4,_0xa949c3,_0x27de8c)=>{for(var _0x15354b=_0x27de8c>0x1?void 0x0:_0x27de8c?qe(_0x2496e4,_0xa949c3):_0x2496e4,_0x4790b3=_0x249c33['length']-0x1,_0x3666a4;_0x4790b3>=0x0;_0x4790b3--)(_0x3666a4=_0x249c33[_0x4790b3])&&(_0x15354b=_0x3666a4(_0x15354b)||_0x15354b);return _0x15354b;},Te=(_0x1fdb0c,_0x458a2c)=>(_0x5e126a,_0x37f854)=>_0x458a2c(_0x5e126a,_0x37f854,_0x1fdb0c);let de=class extends a[_0x458589(0x315)]{constructor(_0x57163c,_0x48c2f0){const _0x21c4a2=_0x458589;super(),this[_0x21c4a2(0x25e)]=_0x57163c,this[_0x21c4a2(0x189)]=_0x48c2f0,this[_0x21c4a2(0x259)]();}['_init'](){const _0x37220=_0x458589,_0x4125ea=this;this[_0x37220(0x140)](this[_0x37220(0x25e)]['addClipboardHook']({'onBeforePasteImage':async _0x5659b1=>{const _0x1a44c2=_0x37220,_0x3ee8df=await _0x4125ea['_imageIoService'][_0x1a44c2(0x28c)](_0x5659b1);return _0x3ee8df?{'source':_0x3ee8df[_0x1a44c2(0x183)],'imageSourceType':_0x3ee8df['imageSourceType']}:null;}}));}};de=ze([Te(0x0,b['IDocClipboardService']),Te(0x1,Ge[_0x458589(0x16e)])],de);const Oe=['purple.300','jiqing.500',_0x458589(0x2b4),_0x458589(0x137),_0x458589(0x1e8),_0x458589(0x306)];class me extends a[_0x458589(0x37f)]{constructor(){const _0x38a7ca=_0x458589;super(...arguments),h(this,'_assignedColors',new Map()),h(this,_0x38a7ca(0x16a),0x0);}[_0x458589(0x2bf)](_0x267de5){const _0x1e9ecf=_0x458589;if(this[_0x1e9ecf(0x25f)][_0x1e9ecf(0x29b)](_0x267de5))return this['_assignedColors'][_0x1e9ecf(0x378)](_0x267de5);const _0x114aa7=Oe[this[_0x1e9ecf(0x16a)]];return this[_0x1e9ecf(0x16a)]=(this[_0x1e9ecf(0x16a)]+0x1)%Oe[_0x1e9ecf(0x2a1)],this['_assignedColors'][_0x1e9ecf(0x1a6)](_0x267de5,_0x114aa7),_0x114aa7;}}function we(_0x1fc533){let _0x5dcd3a='';for(const _0x55531d of _0x1fc533){const {startOffset:_0x4a8a1f,endOffset:_0x4eb126,isActive:_0x2330b9,rangeType:_0x4dea2c,segmentId:_0x4a7760,segmentPage:_0x438d79}=_0x55531d;_0x5dcd3a['length']&&(_0x5dcd3a+=','),_0x5dcd3a+=_0x4a8a1f+':'+_0x4eb126+':'+(_0x2330b9?'1':'0')+':'+_0x4dea2c+':'+_0x4a7760+':'+_0x438d79;}return _0x5dcd3a;}function Je(_0x186333){const _0x3b5898=_0x458589,_0x1920a7=_0x186333[_0x3b5898(0x1db)](','),_0x3525a6=[];for(const _0x515d75 of _0x1920a7){const [_0x46edb0,_0x2881aa,_0x1695c7,_0x30a597,_0x6ab26,_0x10fd3d]=_0x515d75[_0x3b5898(0x1db)](':');_0x3525a6[_0x3b5898(0x294)]({'startOffset':Number(_0x46edb0),'endOffset':Number(_0x2881aa),'collapsed':_0x46edb0===_0x2881aa,'isActive':_0x1695c7==='1','rangeType':_0x30a597===a[_0x3b5898(0x1f0)][_0x3b5898(0x361)]?a['DOC_RANGE_TYPE']['TEXT']:a[_0x3b5898(0x1f0)][_0x3b5898(0x1b1)],'segmentId':typeof _0x6ab26==_0x3b5898(0x142)?String(_0x6ab26):'','segmentPage':Number(_0x10fd3d!=null?_0x10fd3d:-0x1)});}return _0x3525a6[_0x3b5898(0x296)](_0x18b39a=>_0x18b39a[_0x3b5898(0x216)])||(_0x3525a6[0x0][_0x3b5898(0x216)]=!0x0),_0x3525a6;}class Ce extends a[_0x458589(0x315)]{constructor(){const _0x3f7a53=_0x458589;super(...arguments),h(this,_0x3f7a53(0x39f),new d[(_0x3f7a53(0x2d0))](null)),h(this,_0x3f7a53(0x338),this[_0x3f7a53(0x39f)][_0x3f7a53(0x369)]());}['syncEditingCollabCursor'](_0x28957c){const _0x5ab261=_0x458589,{unitID:_0x1997e3,memberID:_0x49383b,textRanges:_0x86eb52}=_0x28957c,_0x45752d=we(_0x86eb52);if(_0x45752d==='')return;const _0x43596b={'unitID':_0x1997e3,'memberID':_0x49383b,'selection':_0x45752d};this[_0x5ab261(0x39f)][_0x5ab261(0x2a7)](_0x43596b);}}var Ze=Object[_0x458589(0x1b4)],Qe=(_0x21e082,_0x5c7170,_0x6b1f5e,_0x18d3d6)=>{const _0x37ae6d=_0x458589;for(var _0x2c1975=_0x18d3d6>0x1?void 0x0:_0x18d3d6?Ze(_0x5c7170,_0x6b1f5e):_0x5c7170,_0x53f572=_0x21e082[_0x37ae6d(0x2a1)]-0x1,_0x5a7a56;_0x53f572>=0x0;_0x53f572--)(_0x5a7a56=_0x21e082[_0x53f572])&&(_0x2c1975=_0x5a7a56(_0x2c1975)||_0x2c1975);return _0x2c1975;},L=(_0x3c18f7,_0x2d2157)=>(_0x5679ae,_0x43d504)=>_0x2d2157(_0x5679ae,_0x43d504,_0x3c18f7);const et=0x12c,tt=0x64;let fe=class extends a[_0x458589(0x315)]{constructor(_0x2dccfd,_0x47d3f3,_0x5e3696,_0x43167c,_0x48b4e3,_0x46409c,_0xdb7832,_0x34c7a3,_0x2393ed){const _0x254d6c=_0x458589;super(),h(this,'_online',!0x1),h(this,_0x254d6c(0x259),!0x1),h(this,'_cursorInfo$',new d[(_0x254d6c(0x2d0))](new Map())),h(this,_0x254d6c(0x2e6),this[_0x254d6c(0x2ef)][_0x254d6c(0x369)]()),h(this,_0x254d6c(0x1d2),new d['BehaviorSubject']([])),h(this,_0x254d6c(0x20c),this[_0x254d6c(0x1d2)][_0x254d6c(0x231)](d['debounceTime'](et))),h(this,_0x254d6c(0x2a5),a[_0x254d6c(0x334)](_0x3b1ab4=>{const _0x585068=_0x254d6c,_0x3fe80e={'eventID':m[_0x585068(0x2a2)][_0x585068(0x1b6)],'data':{'unitID':this['unitID'],'memberID':this[_0x585068(0x323)][_0x585068(0x1c6)](),'selection':we(_0x3b1ab4)}};this[_0x585068(0x323)][_0x585068(0x300)](_0x3fe80e,this[_0x585068(0x203)]);},tt)),(this[_0x254d6c(0x203)]=_0x2dccfd,this['_session']=_0x47d3f3,this[_0x254d6c(0x30a)]=_0x5e3696,this[_0x254d6c(0x24d)]=_0x43167c,this['_memberService']=_0x48b4e3,this[_0x254d6c(0x2f7)]=_0x46409c,this[_0x254d6c(0x204)]=_0xdb7832,this['_univerInstanceService']=_0x34c7a3,this[_0x254d6c(0x11e)]=_0x2393ed);}get['cursorInfo'](){const _0x559e14=_0x458589;return this[_0x559e14(0x2ef)][_0x559e14(0x384)]();}get[_0x458589(0x229)](){const _0x4e8004=_0x458589;return this[_0x4e8004(0x1d2)]['getValue']();}['dispose'](){const _0x61a46b=_0x458589;super[_0x61a46b(0x27a)](),this[_0x61a46b(0x2ef)][_0x61a46b(0x2a7)](new Map()),this['_cursorInfo$']['complete'](),this[_0x61a46b(0x1d2)][_0x61a46b(0x2a7)]([]),this[_0x61a46b(0x1d2)][_0x61a46b(0x172)]();}[_0x458589(0x2db)](){const _0x405230=_0x458589;this[_0x405230(0x259)]||(this[_0x405230(0x259)]=!0x0,this['_session']['sessionStatus$']['pipe'](d[_0x405230(0x1f3)](this[_0x405230(0x2d6)]))[_0x405230(0x273)](_0x3f5c89=>{const _0xa409d8=_0x405230;_0x3f5c89===u[_0xa409d8(0x1fd)][_0xa409d8(0x390)]?this[_0xa409d8(0x1eb)]():this[_0xa409d8(0x12a)]();}),this['_session'][_0x405230(0x316)][_0x405230(0x231)](d[_0x405230(0x1f3)](this['dispose$']))['subscribe'](_0x1d8718=>{const _0x146dd9=_0x405230,_0x118095=_0x1d8718[_0x146dd9(0x389)];_0x118095===m[_0x146dd9(0x2a2)][_0x146dd9(0x1b6)]&&this[_0x146dd9(0x149)](_0x1d8718),_0x118095===m[_0x146dd9(0x2a2)]['USERS_LEAVE']&&this[_0x146dd9(0x38b)](_0x1d8718);}),this[_0x405230(0x140)](this[_0x405230(0x11e)][_0x405230(0x1b0)](_0x27fc86=>{const _0x2d2f45=_0x405230,_0x5c658c=_0x27fc86[_0x2d2f45(0x2a9)];_0x5c658c!=null&&this['_online']&&_0x27fc86['id']===Y['SetTextSelectionsOperation']['id']&&_0x5c658c[_0x2d2f45(0x3ab)]===this[_0x2d2f45(0x203)]&&_0x5c658c[_0x2d2f45(0x377)]===!0x1&&_0x5c658c['ranges'][_0x2d2f45(0x2a1)]>0x0&&this[_0x2d2f45(0x2a5)](_0x5c658c[_0x2d2f45(0x1ef)]);})),this['_syncEditingCollabCursorService'][_0x405230(0x338)][_0x405230(0x231)](d[_0x405230(0x1f3)](this[_0x405230(0x2d6)]))['subscribe'](_0x242e5e=>{const _0x5af849=_0x405230;if((_0x242e5e==null?void 0x0:_0x242e5e[_0x5af849(0x203)])!==this[_0x5af849(0x203)])return;const _0x69f7aa={'eventID':m[_0x5af849(0x2a2)][_0x5af849(0x1b6)],'data':_0x242e5e};this[_0x5af849(0x149)](_0x69f7aa);}),this[_0x405230(0x140)](this[_0x405230(0x11e)]['onCommandExecuted'](_0xbd2c46=>{const _0x27e807=_0x405230;if(_0xbd2c46[_0x27e807(0x2a9)]==null)return;const _0x30aeb2=_0xbd2c46[_0x27e807(0x2a9)];if(_0xbd2c46['id']!==Y['RichTextEditingMutation']['id']||_0x30aeb2[_0x27e807(0x3ab)]!==this[_0x27e807(0x203)])return;const _0x4b468c={'id':'doc.mutation.rich-text-editing','params':_0x30aeb2},_0x4c1b3d=this[_0x27e807(0x185)];for(const [_0x15d28d,_0x357f27]of _0x4c1b3d){const _0x39cffb={'id':'doc.mutation.rich-text-editing','params':{'unitId':this['unitID'],'actions':null,'textRanges':_0x357f27['ranges']}},_0x28474e=this[_0x27e807(0x204)][_0x27e807(0x36c)](_0x4b468c,_0x39cffb,!0x1);if(m[_0x27e807(0x39d)](_0x28474e))throw _0x28474e['error'];_0x4c1b3d[_0x27e807(0x1a6)](_0x15d28d,{..._0x357f27,'ranges':_0x28474e[_0x27e807(0x21f)][_0x27e807(0x2a9)][_0x27e807(0x1c8)]});}queueMicrotask(()=>{const _0x4aaab2=_0x27e807;this[_0x4aaab2(0x2ef)]['next'](_0x4c1b3d);});})));}[_0x458589(0x149)](_0x4c2245){const _0x4ae0cc=_0x458589;var _0x2ab774,_0x234659;const {memberID:_0x51d5e5,selection:_0x206b2d}=_0x4c2245['data'],_0x3199e2=Je(_0x206b2d),_0x26e6cf=(_0x234659=(_0x2ab774=this['_memberService'][_0x4ae0cc(0x126)](this[_0x4ae0cc(0x203)],_0x51d5e5))==null?void 0x0:_0x2ab774[_0x4ae0cc(0x2b7)])!=null?_0x234659:_0x4ae0cc(0x331),_0x2d623c={'color':this[_0x4ae0cc(0x24d)][_0x4ae0cc(0x2bf)](_0x51d5e5),'name':_0x26e6cf,'ranges':_0x3199e2},_0x58b52a=this['cursorInfo'];_0x58b52a[_0x4ae0cc(0x1a6)](_0x51d5e5,_0x2d623c),this['_cursorInfo$']['next'](_0x58b52a);}[_0x458589(0x38b)](_0x5882e5){const _0x156539=_0x458589,{memberID:_0x1f575e}=_0x5882e5['data'],_0x4bb2d1=this[_0x156539(0x185)];_0x4bb2d1[_0x156539(0x1e4)](_0x1f575e),this[_0x156539(0x2ef)][_0x156539(0x2a7)](_0x4bb2d1);}[_0x458589(0x1eb)](){const _0x5a8047=_0x458589;var _0x1da139;if(this['_online']=!0x0,((_0x1da139=this['_univerInstanceService']['getFocusedUnit']())==null?void 0x0:_0x1da139[_0x5a8047(0x3a8)]())!==this[_0x5a8047(0x203)])return;const _0x2690dd=this[_0x5a8047(0x30a)]['get'](Y[_0x5a8047(0x30f)])[_0x5a8047(0x200)]();Array[_0x5a8047(0x12f)](_0x2690dd)&&_0x2690dd[_0x5a8047(0x2a1)]>0x0&&this[_0x5a8047(0x2a5)](_0x2690dd);}['_toggleOffline'](){const _0x473940=_0x458589;this[_0x473940(0x346)]=!0x1;}};fe=Qe([L(0x2,a[_0x458589(0x15a)](a[_0x458589(0x285)])),L(0x3,a[_0x458589(0x15a)](me)),L(0x4,a[_0x458589(0x15a)](u[_0x458589(0x122)])),L(0x5,a[_0x458589(0x15a)](Ce)),L(0x6,m[_0x458589(0x1c7)]),L(0x7,a[_0x458589(0x388)]),L(0x8,a[_0x458589(0x245)])],fe);var st=Object[_0x458589(0x1b4)],it=(_0x2e3b7e,_0x5636eb,_0x3060f0,_0x208bd4)=>{const _0x6b7b39=_0x458589;for(var _0x28c890=_0x208bd4>0x1?void 0x0:_0x208bd4?st(_0x5636eb,_0x3060f0):_0x5636eb,_0x44c211=_0x2e3b7e[_0x6b7b39(0x2a1)]-0x1,_0x273306;_0x44c211>=0x0;_0x44c211--)(_0x273306=_0x2e3b7e[_0x44c211])&&(_0x28c890=_0x273306(_0x28c890)||_0x28c890);return _0x28c890;},A=(_0x338970,_0x209bfa)=>(_0x2075cb,_0x234c55)=>_0x209bfa(_0x2075cb,_0x234c55,_0x338970);const nt=0x12c,rt=0x64,ot=()=>{let _0xd815b2=[],_0x44ebc0=!0x1;return _0x343494=>{const _0x34408c=_0x497d;_0xd815b2[_0x34408c(0x294)](_0x343494),_0x44ebc0||(_0x44ebc0=!0x0,setTimeout(()=>{const _0x175005=_0x34408c;_0xd815b2[_0x175005(0x321)](_0x30269b=>_0x30269b()),_0xd815b2=[],_0x44ebc0=!0x1;}));};};let Se=class extends a[_0x458589(0x315)]{constructor(_0xbcd380,_0x4dac41,_0xf73c49,_0x46c00c,_0x4584d2,_0x1005d9,_0xc0192a,_0xf7da2){const _0x20ce2b=_0x458589;super(),h(this,_0x20ce2b(0x346),!0x1),h(this,_0x20ce2b(0x259),!0x1),h(this,_0x20ce2b(0x2ef),new d[(_0x20ce2b(0x2d0))](new Map())),h(this,_0x20ce2b(0x2e6),this['_cursorInfo$'][_0x20ce2b(0x369)]()),h(this,'_roomMembers$',new d[(_0x20ce2b(0x2d0))]([])),h(this,_0x20ce2b(0x20c),this[_0x20ce2b(0x1d2)]['pipe'](d[_0x20ce2b(0x2d1)](nt))),h(this,'_updateLocalCursor',a['debounce']((_0x126499,_0x5b956d)=>{const _0x482b0a=_0x20ce2b,_0x264cd8={'eventID':m[_0x482b0a(0x2a2)][_0x482b0a(0x1b6)],'data':{'unitID':this[_0x482b0a(0x203)],'memberID':this['_session']['getMemberID'](),'selection':Ee['serializeRangeWithSheet'](_0x126499,_0x5b956d[_0x482b0a(0x1df)])}};this[_0x482b0a(0x323)][_0x482b0a(0x300)](_0x264cd8,this[_0x482b0a(0x203)]);},rt)),(this[_0x20ce2b(0x203)]=_0xbcd380,this[_0x20ce2b(0x323)]=_0x4dac41,this[_0x20ce2b(0x30a)]=_0xf73c49,this['_colorAssignService']=_0x46c00c,this[_0x20ce2b(0x1fe)]=_0x4584d2,this[_0x20ce2b(0x2bd)]=_0x1005d9,this[_0x20ce2b(0x11e)]=_0xc0192a,this[_0x20ce2b(0x155)]=_0xf7da2);}get['cursorInfo'](){return this['_cursorInfo$']['getValue']();}get[_0x458589(0x229)](){const _0x43bc1e=_0x458589;return this[_0x43bc1e(0x1d2)][_0x43bc1e(0x384)]();}[_0x458589(0x27a)](){const _0x5daddc=_0x458589;super[_0x5daddc(0x27a)](),this[_0x5daddc(0x2ef)][_0x5daddc(0x2a7)](new Map()),this[_0x5daddc(0x2ef)][_0x5daddc(0x172)](),this[_0x5daddc(0x1d2)][_0x5daddc(0x2a7)]([]),this[_0x5daddc(0x1d2)][_0x5daddc(0x172)]();}['init'](){const _0x398b15=_0x458589;this[_0x398b15(0x259)]||(this[_0x398b15(0x259)]=!0x0,this[_0x398b15(0x323)][_0x398b15(0x28e)][_0x398b15(0x231)](d[_0x398b15(0x1f3)](this[_0x398b15(0x2d6)]))[_0x398b15(0x273)](_0xe08d1c=>{const _0x6ddd42=_0x398b15;_0xe08d1c===u[_0x6ddd42(0x1fd)][_0x6ddd42(0x390)]?this[_0x6ddd42(0x1eb)]():this['_toggleOffline']();}),this[_0x398b15(0x323)][_0x398b15(0x316)]['pipe'](d['takeUntil'](this[_0x398b15(0x2d6)]))['subscribe'](_0x1c62e9=>{const _0x2f44d6=_0x398b15,_0x1ce3a0=_0x1c62e9['eventID'];_0x1ce3a0===m[_0x2f44d6(0x2a2)][_0x2f44d6(0x1b6)]&&this['_onCursorUpdate'](_0x1c62e9),_0x1ce3a0===m[_0x2f44d6(0x2a2)]['USERS_LEAVE']&&this[_0x2f44d6(0x38b)](_0x1c62e9);}),this['_onRefRangeChange'](),this[_0x398b15(0x140)](this['_commandService'][_0x398b15(0x1b0)](_0x14ce57=>{const _0x58e19c=_0x398b15;if(this[_0x58e19c(0x346)]&&_0x14ce57['id']===g[_0x58e19c(0x1ea)]['id']&&_0x14ce57[_0x58e19c(0x2a9)][_0x58e19c(0x3ab)]===this['unitID']){const _0x31f08a=_0x14ce57[_0x58e19c(0x2a9)];this[_0x58e19c(0x2a5)](_0x31f08a['subUnitId'],_0x31f08a[_0x58e19c(0x1f2)][0x0]);}})));}[_0x458589(0x149)](_0x4be189){const _0x2f7914=_0x458589;var _0x4db746,_0x4eef6d;const {memberID:_0x48d426,selection:_0x214b3a}=_0x4be189['data'],{sheetName:_0x544f9f,range:_0x1f2f0e}=Ee[_0x2f7914(0x159)](_0x214b3a),_0x506b88={'name':(_0x4eef6d=(_0x4db746=this[_0x2f7914(0x1fe)]['getMember'](this[_0x2f7914(0x203)],_0x48d426))==null?void 0x0:_0x4db746[_0x2f7914(0x2b7)])!=null?_0x4eef6d:_0x2f7914(0x331),'range':this[_0x2f7914(0x2af)](_0x544f9f,_0x1f2f0e),'sheetID':_0x544f9f,'color':this['_colorAssignService'][_0x2f7914(0x2bf)](_0x48d426),'selection':_0x214b3a},_0x24d8a1=this[_0x2f7914(0x185)];_0x24d8a1[_0x2f7914(0x1a6)](_0x48d426,_0x506b88),this[_0x2f7914(0x2ef)][_0x2f7914(0x2a7)](_0x24d8a1);}[_0x458589(0x38b)](_0x42f9a6){const _0x5e1849=_0x458589,{memberID:_0x15bf96}=_0x42f9a6[_0x5e1849(0x1b9)],_0x27931c=this[_0x5e1849(0x185)];_0x27931c[_0x5e1849(0x1e4)](_0x15bf96),this[_0x5e1849(0x2ef)][_0x5e1849(0x2a7)](_0x27931c);}[_0x458589(0x2af)](_0xd83b1f,_0x57f200){const _0x878d7f=_0x458589;var _0x53782d,_0xe0767b;const _0x4293eb=(_0xe0767b=(_0x53782d=this[_0x878d7f(0x2bd)]['getUniverSheetInstance'](this[_0x878d7f(0x203)]))==null?void 0x0:_0x53782d[_0x878d7f(0x3a6)](_0xd83b1f))==null?void 0x0:_0xe0767b[_0x878d7f(0x2b0)]();return(_0x4293eb==null?void 0x0:_0x4293eb[_0x878d7f(0x2e5)](_0x397d32=>a['Rectangle'][_0x878d7f(0x262)](_0x397d32,_0x57f200)))||_0x57f200;}[_0x458589(0x1e2)](){const _0x1738f7=_0x458589,_0x4855ed=new a['DisposableCollection'](),_0x3c4ac0=ot(),_0x4a1f90=()=>{const _0x2b8235=_0x497d;_0x4855ed[_0x2b8235(0x27a)]();const _0x5cb03e=(_0x160adf,_0x1c2479,_0x570cf7,_0x14d4a3)=>{const _0x21b99f=_0x2b8235;let _0x4551e2=[];switch(_0x160adf['id']){case g[_0x21b99f(0x3a1)][_0x21b99f(0x2b1)]:{_0x4551e2=g[_0x21b99f(0x302)](_0x160adf,_0x14d4a3);break;}case g[_0x21b99f(0x3a1)][_0x21b99f(0x28d)]:{_0x4551e2=g['handleDeleteRangeMoveUp'](_0x160adf,_0x14d4a3);break;}case g['EffectRefRangId'][_0x21b99f(0x3af)]:{_0x4551e2=g[_0x21b99f(0x2c4)](_0x160adf,_0x14d4a3);break;}case g['EffectRefRangId'][_0x21b99f(0x267)]:{_0x4551e2=g[_0x21b99f(0x37a)](_0x160adf,_0x14d4a3);break;}case g[_0x21b99f(0x3a1)][_0x21b99f(0x24a)]:{_0x4551e2=g[_0x21b99f(0x163)](_0x160adf,_0x14d4a3);break;}case g[_0x21b99f(0x3a1)]['InsertRowCommandId']:{_0x4551e2=g[_0x21b99f(0x24b)](_0x160adf,_0x14d4a3);break;}case g['EffectRefRangId']['MoveRangeCommandId']:{_0x4551e2=g[_0x21b99f(0x36b)](_0x160adf,_0x14d4a3);break;}case g[_0x21b99f(0x3a1)]['RemoveColCommandId']:{_0x4551e2=g[_0x21b99f(0x1b3)](_0x160adf,_0x14d4a3);break;}case g[_0x21b99f(0x3a1)][_0x21b99f(0x1e5)]:{_0x4551e2=g[_0x21b99f(0x1d6)](_0x160adf,_0x14d4a3);break;}}const _0x1a26bf=g[_0x21b99f(0x123)](_0x4551e2,_0x14d4a3),_0x2960c1=this[_0x21b99f(0x185)]['get'](_0x1c2479);if(_0x2960c1&&_0x1a26bf){const _0x582cb4={..._0x2960c1,'range':_0x1a26bf};this['cursorInfo'][_0x21b99f(0x1a6)](_0x1c2479,_0x582cb4),_0x3c4ac0(()=>{const _0x2eee8a=_0x21b99f,_0x424343=this['_refRangeService'][_0x2eee8a(0x1fc)](_0x1a26bf,_0x4fcd7f=>(_0x424343[_0x2eee8a(0x27a)](),_0x5cb03e(_0x4fcd7f,_0x1c2479,_0x570cf7,_0x1a26bf)));_0x4855ed[_0x2eee8a(0x27f)](_0x424343);});}return{'redos':[],'undos':[]};};this['cursorInfo'][_0x2b8235(0x321)]((_0x3a1066,_0x49c413)=>{const _0x1cf798=_0x2b8235,{range:_0x190d0b,sheetID:_0x588ad1}=_0x3a1066,_0x470897=this[_0x1cf798(0x155)][_0x1cf798(0x1fc)](_0x190d0b,_0x4f61be=>(_0x470897['dispose'](),_0x5cb03e(_0x4f61be,_0x49c413,_0x588ad1,_0x190d0b)));_0x4855ed[_0x1cf798(0x27f)](_0x470897);});};this[_0x1738f7(0x140)](a[_0x1738f7(0x153)](this['_cursorInfo$'][_0x1738f7(0x273)](()=>{_0x4a1f90();})));}[_0x458589(0x1eb)](){const _0x505615=_0x458589;var _0x4b6fff,_0x340b49;if(this['_online']=!0x0,((_0x4b6fff=this[_0x505615(0x2bd)][_0x505615(0x13b)]())==null?void 0x0:_0x4b6fff[_0x505615(0x3a8)]())!==this['unitID'])return;const _0xe6d909=(_0x340b49=this[_0x505615(0x30a)][_0x505615(0x378)](g[_0x505615(0x1f6)])[_0x505615(0x2e0)]())==null?void 0x0:_0x340b49[0x0],_0xcc4f84=this[_0x505615(0x2bd)][_0x505615(0x21d)](a['UniverInstanceType'][_0x505615(0x161)])['getActiveSheet']();_0xe6d909&&_0xcc4f84&&this[_0x505615(0x2a5)](_0xcc4f84['getSheetId'](),_0xe6d909);}[_0x458589(0x12a)](){const _0x8c535c=_0x458589;this[_0x8c535c(0x346)]=!0x1;}};Se=it([A(0x2,a[_0x458589(0x15a)](a['Injector'])),A(0x3,a[_0x458589(0x15a)](me)),A(0x4,a[_0x458589(0x15a)](u['MemberService'])),A(0x5,a[_0x458589(0x388)]),A(0x6,a['ICommandService']),A(0x7,a[_0x458589(0x15a)](g[_0x458589(0x39b)]))],Se);var at=Object['getOwnPropertyDescriptor'],ct=(_0x584fb4,_0xb174b4,_0x5f1dc6,_0x1e1a61)=>{const _0xa0e89c=_0x458589;for(var _0x1ff1c0=_0x1e1a61>0x1?void 0x0:_0x1e1a61?at(_0xb174b4,_0x5f1dc6):_0xb174b4,_0x522367=_0x584fb4[_0xa0e89c(0x2a1)]-0x1,_0x1288bf;_0x522367>=0x0;_0x522367--)(_0x1288bf=_0x584fb4[_0x522367])&&(_0x1ff1c0=_0x1288bf(_0x1ff1c0)||_0x1ff1c0);return _0x1ff1c0;},ie=(_0x281240,_0x3a6808)=>(_0x4be6ef,_0x2d7c82)=>_0x3a6808(_0x4be6ef,_0x2d7c82,_0x281240);let x=class extends a[_0x458589(0x315)]{constructor(_0x18c9b7,_0xc01d8a,_0x4e4cbd){const _0x26c3c4=_0x458589;super(),h(this,'_entities',new Map()),h(this,'_entityInit$',new d[(_0x26c3c4(0x372))]()),(this[_0x26c3c4(0x2bd)]=_0x18c9b7,this[_0x26c3c4(0x30a)]=_0xc01d8a,this['_collabSessionService']=_0x4e4cbd,this[_0x26c3c4(0x259)]());}[_0x458589(0x27a)](){const _0x57d1e8=_0x458589;super[_0x57d1e8(0x27a)](),this[_0x57d1e8(0x1cf)][_0x57d1e8(0x172)](),this['_entities'][_0x57d1e8(0x321)](_0x618b58=>_0x618b58[_0x57d1e8(0x27a)]());}[_0x458589(0x225)](_0x15f080){const _0x14cb03=_0x458589;return this[_0x14cb03(0x32d)][_0x14cb03(0x29b)](_0x15f080)?this[_0x14cb03(0x32d)][_0x14cb03(0x378)](_0x15f080)[_0x14cb03(0x2e6)]:this[_0x14cb03(0x1cf)][_0x14cb03(0x231)](d[_0x14cb03(0x279)](_0x576ef4=>_0x576ef4[_0x14cb03(0x203)]===_0x15f080),d['switchMap'](_0x270b6a=>_0x270b6a[_0x14cb03(0x2e6)]));}[_0x458589(0x259)](){const _0x262600=_0x458589;this['_univerInstanceService'][_0x262600(0x340)](a[_0x262600(0x2b9)]['UNIVER_SHEET'])[_0x262600(0x231)](d[_0x262600(0x1f3)](this['dispose$']))[_0x262600(0x273)](async _0x4cdf12=>{const _0x377d52=_0x262600,_0x50a13b=_0x4cdf12[_0x377d52(0x3a8)](),_0x4c9249=await this['_startSheetCollabCursor'](_0x50a13b);this[_0x377d52(0x1cf)][_0x377d52(0x2a7)](_0x4c9249),this[_0x377d52(0x32d)][_0x377d52(0x1a6)](_0x50a13b,_0x4c9249);}),this['_univerInstanceService'][_0x262600(0x340)](a[_0x262600(0x2b9)][_0x262600(0x205)])['pipe'](d['takeUntil'](this['dispose$']))['pipe'](d[_0x262600(0x279)](_0x2b90b6=>!_0x2b90b6['getUnitId']()[_0x262600(0x32a)]('__')))[_0x262600(0x273)](async _0x5b0f43=>{const _0x546e23=_0x262600,_0x4bd996=_0x5b0f43[_0x546e23(0x3a8)](),_0x131da8=await this['_startDocCollabCursor'](_0x4bd996);this[_0x546e23(0x1cf)][_0x546e23(0x2a7)](_0x131da8),this[_0x546e23(0x32d)]['set'](_0x4bd996,_0x131da8);}),d[_0x262600(0x304)](this['_univerInstanceService'][_0x262600(0x182)](a['UniverInstanceType'][_0x262600(0x205)]),this[_0x262600(0x2bd)]['getTypeOfUnitDisposed$'](a['UniverInstanceType'][_0x262600(0x161)]))[_0x262600(0x231)](d[_0x262600(0x1f3)](this['dispose$']))[_0x262600(0x273)](_0x2f8d79=>{const _0x437f89=_0x262600,_0x3640be=_0x2f8d79[_0x437f89(0x3a8)](),_0x329b69=this[_0x437f89(0x32d)][_0x437f89(0x378)](_0x3640be);_0x329b69&&(_0x329b69[_0x437f89(0x27a)](),this['_entities'][_0x437f89(0x1e4)](_0x3640be));});}async[_0x458589(0x26b)](_0x3ec8a5){const _0x751e2c=_0x458589,_0x2e29c1=await this['_collabSessionService']['requireSession'](_0x3ec8a5),_0x387b65=this[_0x751e2c(0x30a)][_0x751e2c(0x18d)](Se,_0x3ec8a5,_0x2e29c1);return _0x387b65[_0x751e2c(0x2db)](),_0x387b65;}async[_0x458589(0x201)](_0x50fe45){const _0x2c15b4=_0x458589,_0x404ce8=await this[_0x2c15b4(0x2c6)][_0x2c15b4(0x2a8)](_0x50fe45),_0xee3e27=this[_0x2c15b4(0x30a)][_0x2c15b4(0x18d)](fe,_0x50fe45,_0x404ce8);return _0xee3e27[_0x2c15b4(0x2db)](),_0xee3e27;}};x=ct([ie(0x0,a[_0x458589(0x388)]),ie(0x1,a[_0x458589(0x15a)](a['Injector'])),ie(0x2,a[_0x458589(0x15a)](u[_0x458589(0x1fb)]))],x);const K=0x14,Re=0xc8,ne=0x4,lt=0x5;function _t(_0x468305,_0x38bedf){const _0x41ea33=_0x458589;let {radius:_0x238fb6,width:_0x4757eb,height:_0x1f5034}=_0x38bedf;_0x238fb6=_0x238fb6!=null?_0x238fb6:0x0,_0x4757eb=_0x4757eb!=null?_0x4757eb:0x1e,_0x1f5034=_0x1f5034!=null?_0x1f5034:0x1e;let _0x5422ee=0x0,_0x2e20e1=0x0,_0x113518=0x0;_0x5422ee=_0x2e20e1=_0x113518=Math['min'](_0x238fb6,_0x4757eb/0x2,_0x1f5034/0x2),_0x468305[_0x41ea33(0x1c4)](),_0x468305[_0x41ea33(0x339)](_0x5422ee,0x0),_0x468305[_0x41ea33(0x392)](_0x4757eb-_0x2e20e1,0x0),_0x468305[_0x41ea33(0x202)](_0x4757eb-_0x2e20e1,_0x2e20e1,_0x2e20e1,Math['PI']*0x3/0x2,0x0,!0x1),_0x468305['lineTo'](_0x4757eb,_0x1f5034-_0x113518),_0x468305[_0x41ea33(0x202)](_0x4757eb-_0x113518,_0x1f5034-_0x113518,_0x113518,0x0,Math['PI']/0x2,!0x1),_0x468305[_0x41ea33(0x392)](0x0,_0x1f5034),_0x468305[_0x41ea33(0x392)](0x0,_0x5422ee),_0x468305['arc'](_0x5422ee,_0x5422ee,_0x5422ee,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x468305[_0x41ea33(0x1f4)](),_0x38bedf['fill']&&(_0x468305['save'](),_0x468305[_0x41ea33(0x1ff)]=_0x38bedf[_0x41ea33(0x15f)],_0x38bedf['fillRule']===_0x41ea33(0x2ba)?_0x468305['fill'](_0x41ea33(0x2ba)):_0x468305['fill'](),_0x468305[_0x41ea33(0x2c0)]());}class ee extends p[_0x458589(0x24f)]{constructor(_0x4f935b,_0x12912a){const _0x2b9370=_0x458589;super(_0x4f935b,_0x12912a),h(this,'color'),h(this,'text'),(this[_0x2b9370(0x1dd)]=_0x12912a==null?void 0x0:_0x12912a[_0x2b9370(0x1dd)],this[_0x2b9370(0x191)]=_0x12912a==null?void 0x0:_0x12912a[_0x2b9370(0x191)]);}static[_0x458589(0x27d)](_0x26c9c5,_0x4fd53a){const _0x3091fe=_0x458589,{text:_0x6a9b5f,color:_0x561a2a}=_0x4fd53a;_0x26c9c5['save'](),_0x26c9c5['font']=_0x3091fe(0x36f);const _0x191e3=_0x26c9c5[_0x3091fe(0x3a2)](_0x6a9b5f)['width'],_0x1b7463=Math[_0x3091fe(0x18a)](_0x191e3+0x2*ne,Re);_t(_0x26c9c5,{'height':K,'radius':0x4,'width':_0x1b7463,'fill':_0x561a2a}),_0x26c9c5['fillStyle']='#FFF';const _0x1201bd=ne,_0x22beec=K-lt,_0x4557dd=Re-0x2*ne;if(_0x191e3>_0x4557dd){let _0x5b3382='',_0x361453=0x0;for(const _0x17c114 of _0x6a9b5f){const _0x43afcf=_0x26c9c5['measureText'](_0x17c114)[_0x3091fe(0x30d)];if(_0x361453+_0x43afcf<=_0x4557dd-_0x26c9c5[_0x3091fe(0x3a2)](_0x3091fe(0x298))[_0x3091fe(0x30d)])_0x5b3382+=_0x17c114,_0x361453+=_0x43afcf;else{_0x5b3382+='...';break;}}_0x26c9c5['fillText'](_0x5b3382,_0x1201bd,_0x22beec);}else _0x26c9c5[_0x3091fe(0x2ea)](_0x6a9b5f,_0x1201bd,_0x22beec);_0x26c9c5[_0x3091fe(0x2c0)]();}[_0x458589(0x21c)](_0x4b37e2){const _0x2e8d09=_0x458589;ee[_0x2e8d09(0x27d)](_0x4b37e2,this);}}const re='collab-text-anchor-',ht=_0x458589(0x1d4),ut=_0x458589(0x212),k=0x6,dt=1.5,oe=0x4,ft=1.5,St=_0x458589(0x281);class De{constructor(_0x4edd7d,_0x26ddd5,_0x5b2345,_0x3cbeb5){const _0x4fdfc9=_0x458589;h(this,_0x4fdfc9(0x264),[]),h(this,_0x4fdfc9(0x23a),null),h(this,_0x4fdfc9(0x287),null),h(this,_0x4fdfc9(0x2f2),null),h(this,'_hideTimer',null),h(this,'_eventUnsubscribe',null),(this[_0x4fdfc9(0x36a)]=_0x4edd7d,this[_0x4fdfc9(0x1bb)]=_0x26ddd5,this[_0x4fdfc9(0x345)]=_0x5b2345,this[_0x4fdfc9(0x136)]=_0x3cbeb5,this['_render']());}set[_0x458589(0x143)](_0x50e08c){const _0x5f0cff=_0x458589;_0x50e08c?(this[_0x5f0cff(0x2f2)]&&this[_0x5f0cff(0x2f2)]['hide'](),this['_textBubble']&&this[_0x5f0cff(0x287)][_0x5f0cff(0x208)]()):(this['_anchorDot']&&this[_0x5f0cff(0x2f2)]['show'](),this['_textBubble']&&this[_0x5f0cff(0x287)][_0x5f0cff(0x1d1)]());}[_0x458589(0x27a)](){const _0x55e108=_0x458589;for(const _0x32f944 of this[_0x55e108(0x264)])_0x32f944[_0x55e108(0x27a)]();this['_textBubble']&&this[_0x55e108(0x287)][_0x55e108(0x27a)](),this[_0x55e108(0x2f2)]&&this[_0x55e108(0x2f2)]['dispose'](),this['_anchor']&&this[_0x55e108(0x23a)]['dispose'](),this[_0x55e108(0x32f)]&&this[_0x55e108(0x32f)]();}[_0x458589(0x1c5)](){const _0x265bf7=_0x458589;var _0x48fafe;const {_docSkeleton:_0x2c247f,_document:_0x461927}=this,{color:_0x456a76,name:_0x202d1e,ranges:_0x347b67}=this['_cursor'],_0x497717=_0x461927[_0x265bf7(0x2c1)](),{docsLeft:_0x47c911,docsTop:_0xac7a08}=_0x497717,_0x2b67dd=new b[(_0x265bf7(0x1ed))](_0x497717,_0x2c247f);for(const {startOffset:_0x305804,endOffset:_0x1cb2c2,rangeType:_0x40735e,segmentId:_0x2ec9fd,segmentPage:_0x16cf0e,collapsed:_0x26a665,isActive:_0x17c016}of _0x347b67){const _0xa6c0e0=_0x2c247f['findNodePositionByCharIndex'](_0x305804,!0x0,_0x2ec9fd,_0x16cf0e);let _0x2d12f3=_0x2c247f[_0x265bf7(0x240)](_0x1cb2c2,!0x0,_0x2ec9fd,_0x16cf0e);if(_0x2d12f3==null&&(_0x2d12f3=_0x2c247f[_0x265bf7(0x240)](_0x1cb2c2-0x1,!0x1,_0x2ec9fd,_0x16cf0e)),_0x17c016){const {contentBoxPointGroup:_0x189453}=_0x2b67dd['getRangePointData'](_0x2d12f3,_0x2d12f3);if(_0x189453[_0x265bf7(0x2a1)]===0x0)continue;this[_0x265bf7(0x166)](_0x456a76,_0x189453,_0x47c911,_0xac7a08,_0x202d1e),this[_0x265bf7(0x32f)]=this[_0x265bf7(0x278)]();}if(_0xa6c0e0&&_0x2d12f3){if(_0x40735e===a[_0x265bf7(0x1f0)][_0x265bf7(0x1b1)]){const _0xeb0fcf=new b[(_0x265bf7(0x1cb))](_0x497717,_0x2c247f),{pointGroup:_0x51fde0}=(_0x48fafe=_0xeb0fcf[_0x265bf7(0x277)](_0xa6c0e0,_0x2d12f3))!=null?_0x48fafe:{};if(_0x51fde0==null||_0x51fde0[_0x265bf7(0x2a1)]===0x0)continue;this[_0x265bf7(0x24e)](_0x456a76,_0x51fde0,_0x47c911,_0xac7a08);}else{if(!_0x26a665){const {borderBoxPointGroup:_0x586a1e}=_0x2b67dd[_0x265bf7(0x277)](_0xa6c0e0,_0x2d12f3);if(_0x586a1e[_0x265bf7(0x2a1)]===0x0)continue;this[_0x265bf7(0x341)](_0x456a76,_0x586a1e,_0x47c911,_0xac7a08);}}}}}[_0x458589(0x166)](_0x576fab,_0x4470a9,_0x44703c,_0x5cb50d,_0x46cadf){const _0x1a7c7b=_0x458589,_0x482f7d=this[_0x1a7c7b(0x312)](_0x4470a9),{left:_0x203f49,top:_0x3f7c9d,height:_0x395742}=_0x482f7d,_0x110ebc=this['_getScale'](),_0x5d752d=ft/_0x110ebc,_0x34fd7c=new p[(_0x1a7c7b(0x383))](re+a[_0x1a7c7b(0x249)][_0x1a7c7b(0x3a4)](k),{'left':_0x203f49+_0x44703c-_0x5d752d,'top':_0x3f7c9d+_0x5cb50d,'height':_0x395742,'width':dt,'fill':_0x576fab||p[_0x1a7c7b(0x1ac)](a[_0x1a7c7b(0x22c)]['black'],0x0),'strokeWidth':_0x5d752d,'stroke':St,'evented':!0x0});this[_0x1a7c7b(0x23a)]=_0x34fd7c,this['_scene']['addObject'](_0x34fd7c,b['TEXT_RANGE_LAYER_INDEX']);const _0x518c73=new p[(_0x1a7c7b(0x383))](re+a[_0x1a7c7b(0x249)][_0x1a7c7b(0x3a4)](k),{'left':_0x203f49+_0x44703c-_0x5d752d,'top':_0x3f7c9d+_0x5cb50d-oe/0x2,'height':oe,'width':oe,'fill':_0x576fab||p[_0x1a7c7b(0x1ac)](a[_0x1a7c7b(0x22c)][_0x1a7c7b(0x33f)],0x0),'strokeWidth':0x0,'stroke':_0x576fab||p[_0x1a7c7b(0x1ac)](a[_0x1a7c7b(0x22c)][_0x1a7c7b(0x33f)],0x0),'evented':!0x1});this[_0x1a7c7b(0x2f2)]=_0x518c73,this[_0x1a7c7b(0x1bb)][_0x1a7c7b(0x15d)](_0x518c73,b[_0x1a7c7b(0x34c)]);const _0x3c050e=new ee(re+a['Tools'][_0x1a7c7b(0x3a4)](k),{'left':_0x203f49+_0x44703c-_0x5d752d,'top':_0x3f7c9d+_0x5cb50d-K,'text':_0x46cadf,'color':_0x576fab});this['_textBubble']=_0x3c050e,this[_0x1a7c7b(0x1bb)][_0x1a7c7b(0x15d)](_0x3c050e,b[_0x1a7c7b(0x34c)]),this[_0x1a7c7b(0x143)]=!0x1;}['_handleHover'](){const _0x290308=_0x458589,_0x27e231=this[_0x290308(0x23a)]['onPointerEnter$'][_0x290308(0x271)](()=>{const _0x4e2036=_0x290308;this[_0x4e2036(0x143)]=!0x0;}),_0x1aad54=this[_0x290308(0x23a)][_0x290308(0x1e6)][_0x290308(0x271)](()=>{const _0x334d56=_0x290308;this['_hideTimer']&&clearTimeout(this['_hideTimer']),this[_0x334d56(0x224)]=setTimeout(()=>{const _0x5cd616=_0x334d56;this[_0x5cd616(0x143)]=!0x1;},0x7d0);});return()=>{const _0x20208c=_0x290308;_0x27e231['unsubscribe'](),_0x1aad54[_0x20208c(0x2ab)]();};}[_0x458589(0x341)](_0x483ad3,_0x444cfb,_0x35a41b,_0x15dcf3){const _0x37928d=_0x458589,_0x215be0=new a[(_0x37928d(0x2dc))](_0x483ad3)['setAlpha'](0.2)[_0x37928d(0x2b5)](),_0xc489db=new p[(_0x37928d(0x130))](ht+a[_0x37928d(0x249)][_0x37928d(0x3a4)](k),{'pointsGroup':_0x444cfb,'fill':_0x215be0||p[_0x37928d(0x1ac)](a['COLORS']['black'],0.2),'left':_0x35a41b,'top':_0x15dcf3,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x37928d(0x264)][_0x37928d(0x294)](_0xc489db),this[_0x37928d(0x1bb)][_0x37928d(0x15d)](_0xc489db,b['TEXT_RANGE_LAYER_INDEX']);}[_0x458589(0x24e)](_0x346fec,_0x1aabe2,_0x4857ad,_0x3e1e04){const _0x2c7f9a=_0x458589,_0x4683d4=new a[(_0x2c7f9a(0x2dc))](_0x346fec)['setAlpha'](0.2)[_0x2c7f9a(0x2b5)](),_0x5965aa=new p['RegularPolygon'](ut+a[_0x2c7f9a(0x249)][_0x2c7f9a(0x3a4)](k),{'pointsGroup':_0x1aabe2,'fill':_0x4683d4||p[_0x2c7f9a(0x1ac)](a[_0x2c7f9a(0x22c)]['black'],0.2),'left':_0x4857ad,'top':_0x3e1e04,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x2c7f9a(0x264)][_0x2c7f9a(0x294)](_0x5965aa),this[_0x2c7f9a(0x1bb)][_0x2c7f9a(0x15d)](_0x5965aa,b[_0x2c7f9a(0x34c)]);}[_0x458589(0x312)](_0x1f4426){const _0x1fc021=_0x1f4426[0x0],_0x475027=_0x1fc021[0x0],_0x5058e8=_0x1fc021[0x2],{x:_0x756484,y:_0x3f279f}=_0x475027,{x:_0x55a444,y:_0x5d9f3b}=_0x5058e8;return{'left':_0x756484,'top':_0x3f279f,'width':_0x55a444-_0x756484,'height':_0x5d9f3b-_0x3f279f};}[_0x458589(0x217)](){const _0x2ae0ee=_0x458589,{scaleX:_0x4fcab8,scaleY:_0x12034c}=this[_0x2ae0ee(0x1bb)][_0x2ae0ee(0x38d)]();return Math[_0x2ae0ee(0x213)](_0x4fcab8,_0x12034c);}}var It=Object[_0x458589(0x1b4)],vt=(_0x1ea976,_0x12c63c,_0x1837ff,_0x28b254)=>{const _0x24563c=_0x458589;for(var _0x12b34e=_0x28b254>0x1?void 0x0:_0x28b254?It(_0x12c63c,_0x1837ff):_0x12c63c,_0x2f6069=_0x1ea976[_0x24563c(0x2a1)]-0x1,_0x5b3980;_0x2f6069>=0x0;_0x2f6069--)(_0x5b3980=_0x1ea976[_0x2f6069])&&(_0x12b34e=_0x5b3980(_0x12b34e)||_0x12b34e);return _0x12b34e;},W=(_0x37d77c,_0x408f6d)=>(_0x2c3a64,_0x238265)=>_0x408f6d(_0x2c3a64,_0x238265,_0x37d77c);let Ie=class extends a[_0x458589(0x315)]{constructor(_0xd99488,_0x27a557,_0x111ee8,_0x52849f,_0x2fc64e){const _0x5e2d77=_0x458589;super(),h(this,_0x5e2d77(0x268),[]),h(this,_0x5e2d77(0x1d5),[]),(this['_context']=_0xd99488,this['_docSkeletonManagerService']=_0x27a557,this[_0x5e2d77(0x209)]=_0x111ee8,this['_commandService']=_0x52849f,this[_0x5e2d77(0x176)]=_0x2fc64e,this[_0x5e2d77(0x259)]());}[_0x458589(0x259)](){const _0x58f668=_0x458589,_0x3d9f45=this[_0x58f668(0x1a8)][_0x58f668(0x3ab)],_0xef3db2=this['_docSkeletonManagerService'];this[_0x58f668(0x140)](d[_0x58f668(0x214)]([this['_collabCursorController']['getCollabCursors$'](_0x3d9f45),this[_0x58f668(0x176)][_0x58f668(0x308)]])['pipe']($[_0x58f668(0x2df)](([_0x2b563f,_0x4934f1])=>({'skeleton':_0xef3db2[_0x58f668(0x371)](),'cursors':[..._0x2b563f[_0x58f668(0x292)]()]['flatMap'](_0x4573a6=>({..._0x4573a6,'color':this[_0x58f668(0x176)][_0x58f668(0x34b)](_0x4573a6['color'])}))})))['subscribe'](_0x5756b7=>{const _0x15238b=_0x58f668;if(this[_0x15238b(0x2da)](),_0x5756b7){const {skeleton:_0x10c383,cursors:_0x11ca05}=_0x5756b7;this[_0x15238b(0x32b)](_0x10c383,_0x11ca05);}})),this[_0x58f668(0x16b)](),this[_0x58f668(0x18b)]();}[_0x458589(0x32b)](_0x4314b0,_0x2ef59b){const _0x45ea33=_0x458589,{scene:_0x13beaa,mainComponent:_0xd54bde}=this['_context'],_0x5ecfc4=_0x2ef59b[_0x45ea33(0x2df)](_0x375de4=>new De(_0x375de4,_0x13beaa,_0x4314b0,_0xd54bde));this[_0x45ea33(0x268)]=_0x5ecfc4,this['_cursors']=_0x2ef59b;}['_refreshCollabCursors'](){const _0x4727f7=_0x458589;this['_removeCollabCursors']();const {scene:_0x34c15c,mainComponent:_0x3d1ee7}=this['_context'],_0x19eab0=this[_0x4727f7(0x2eb)][_0x4727f7(0x371)](),_0x2d0634=this[_0x4727f7(0x1d5)]['map'](_0x235aaf=>new De(_0x235aaf,_0x34c15c,_0x19eab0,_0x3d1ee7));this[_0x4727f7(0x268)]=_0x2d0634;}['_removeCollabCursors'](){const _0x4664c2=_0x458589;this[_0x4664c2(0x268)][_0x4664c2(0x321)](_0x2df6e0=>_0x2df6e0[_0x4664c2(0x27a)]()),this[_0x4664c2(0x268)]=[];}[_0x458589(0x18b)](){const _0x5457d1=_0x458589,_0x19fe6b=[b['SetDocZoomRatioOperation']['id']];this[_0x5457d1(0x140)](this[_0x5457d1(0x11e)]['onCommandExecuted'](_0xb1e81e=>{const _0x206b54=_0x5457d1;_0x19fe6b[_0x206b54(0x199)](_0xb1e81e['id'])&&_0xb1e81e[_0x206b54(0x2a9)][_0x206b54(0x3ab)]===this[_0x206b54(0x1a8)]['unitId']&&this['_refreshCollabCursors']();}));}['_initResize'](){const _0x167042=_0x458589;this['disposeWithMe'](a[_0x167042(0x13d)](this['_context'][_0x167042(0x11c)][_0x167042(0x258)])[_0x167042(0x231)]($[_0x167042(0x279)](_0x10d7d9=>_0x10d7d9['type']===p[_0x167042(0x156)][_0x167042(0x382)]),$['throttleTime'](0x10))[_0x167042(0x273)](()=>{const _0xc37798=_0x167042;this[_0xc37798(0x290)]();}));}};Ie=vt([W(0x1,a[_0x458589(0x15a)](Y['DocSkeletonManagerService'])),W(0x2,a[_0x458589(0x15a)](x)),W(0x3,a['ICommandService']),W(0x4,a[_0x458589(0x15a)](a[_0x458589(0x13e)]))],Ie);const gt=0x1,mt=1.5;class Pe extends p[_0x458589(0x24f)]{constructor(_0x52b290,_0x59c1d5){const _0x45b590=_0x458589;super(_0x52b290,_0x59c1d5),h(this,'_color'),h(this,_0x45b590(0x1e9),!0x1),h(this,_0x45b590(0x261)),h(this,'_name',''),h(this,_0x45b590(0x168),'top'),h(this,_0x45b590(0x1ab)),(_0x59c1d5&&this[_0x45b590(0x2ae)](_0x59c1d5),this['onPointerEnter$']['subscribeEvent'](()=>this[_0x45b590(0x2ae)]({'hovered':!0x0})),this[_0x45b590(0x1e6)][_0x45b590(0x271)](()=>this['setShapeProps']({'hovered':!0x1})));}[_0x458589(0x2ae)](_0xc43096){const _0x3db30b=_0x458589;var _0x933ed1,_0x454cc0,_0x3d175e,_0x24817f,_0x1a0c9c,_0x2539a9;this[_0x3db30b(0x1cc)]=(_0x933ed1=_0xc43096[_0x3db30b(0x1dd)])!=null?_0x933ed1:this['_color'],this['_hovered']=(_0x454cc0=_0xc43096['hovered'])!=null?_0x454cc0:this['_hovered'],this[_0x3db30b(0x261)]=(_0x3d175e=_0xc43096[_0x3db30b(0x1df)])!=null?_0x3d175e:this[_0x3db30b(0x261)],this[_0x3db30b(0x358)]=(_0x24817f=_0xc43096['name'])!=null?_0x24817f:this[_0x3db30b(0x358)],this['_labelPosition']=(_0x1a0c9c=_0xc43096['labelPosition'])!=null?_0x1a0c9c:this[_0x3db30b(0x168)],this[_0x3db30b(0x1ab)]=(_0x2539a9=_0xc43096[_0x3db30b(0x2f6)])!=null?_0x2539a9:this['_backgroundColor'],this[_0x3db30b(0x355)]({'width':_0xc43096[_0x3db30b(0x30d)],'height':_0xc43096[_0x3db30b(0x2ad)]});}[_0x458589(0x31a)](_0x11f50d){const _0x35ac3a=_0x458589,{row:_0x38cbc2,column:_0x4ddcb8}=_0x11f50d;if(_0x38cbc2>=this[_0x35ac3a(0x261)][_0x35ac3a(0x311)]&&_0x38cbc2<=this[_0x35ac3a(0x261)][_0x35ac3a(0x14a)]&&_0x4ddcb8>=this[_0x35ac3a(0x261)]['startColumn']&&_0x4ddcb8<=this[_0x35ac3a(0x261)][_0x35ac3a(0x20d)]){this['setShapeProps']({'hovered':!0x0});return;}this[_0x35ac3a(0x2ae)]({'hovered':!0x1});}['triggerDblclick'](_0x16e634){return!0x1;}['_draw'](_0x5a1c6e){const _0x253a6e=_0x458589;p[_0x253a6e(0x383)][_0x253a6e(0x27d)](_0x5a1c6e,{'width':this[_0x253a6e(0x30d)],'height':this['height'],'strokeWidth':mt,'stroke':this['_color'],'evented':!0x1,'fill':this[_0x253a6e(0x1ab)]}),this[_0x253a6e(0x1e9)]&&(_0x5a1c6e['save'](),_0x5a1c6e[_0x253a6e(0x362)](0x1,0x0,0x0,0x1,this['width'],this[_0x253a6e(0x168)]==='bottom'?0x0:-0x14),ee[_0x253a6e(0x27d)](_0x5a1c6e,{'text':this[_0x253a6e(0x358)],'color':this[_0x253a6e(0x1cc)]}),_0x5a1c6e['restore']());}}var Ct=Object[_0x458589(0x1b4)],pt=(_0x45de85,_0x592f4a,_0x220cbc,_0x424671)=>{for(var _0x5306bf=_0x424671>0x1?void 0x0:_0x424671?Ct(_0x592f4a,_0x220cbc):_0x592f4a,_0x3e800f=_0x45de85['length']-0x1,_0x3af000;_0x3e800f>=0x0;_0x3e800f--)(_0x3af000=_0x45de85[_0x3e800f])&&(_0x5306bf=_0x3af000(_0x5306bf)||_0x5306bf);return _0x5306bf;},ae=(_0x1f2923,_0x3cf215)=>(_0x2b5d74,_0x4a6ae7)=>_0x3cf215(_0x2b5d74,_0x4a6ae7,_0x1f2923);const bt=0x1389;let ve=class extends a[_0x458589(0x315)]{constructor(_0x516c6b,_0x311ae9,_0xd1aa34,_0xdfe47a){const _0x1a3498=_0x458589;super(),h(this,_0x1a3498(0x1d5),new Set()),h(this,'_lastPointer',null),(this[_0x1a3498(0x1a8)]=_0x516c6b,this['_sheetSkeletonManagerService']=_0x311ae9,this[_0x1a3498(0x209)]=_0xd1aa34,this[_0x1a3498(0x176)]=_0xdfe47a,this[_0x1a3498(0x259)]());}[_0x458589(0x259)](){const _0x5abad7=_0x458589;this[_0x5abad7(0x367)][_0x5abad7(0x288)][_0x5abad7(0x231)]($['takeUntil'](this['dispose$']),$[_0x5abad7(0x35f)](_0x342447=>{const _0x372f2=_0x5abad7;if(_0x342447){const _0x104f7d=_0x342447[_0x372f2(0x23f)];return d[_0x372f2(0x214)](this[_0x372f2(0x209)][_0x372f2(0x225)](this[_0x372f2(0x1a8)][_0x372f2(0x3ab)]),this[_0x372f2(0x176)][_0x372f2(0x308)])['pipe']($[_0x372f2(0x2df)](([_0x8c674a,_0x169611])=>{const _0x47d458=_0x372f2,_0x22db62=new Map();return _0x8c674a[_0x47d458(0x321)]((_0x1aac4d,_0x490392)=>{const _0x4ffdff=_0x47d458;if(_0x1aac4d[_0x4ffdff(0x314)]===_0x104f7d){const _0x3115a7={..._0x1aac4d};_0x3115a7['color']=this[_0x4ffdff(0x176)][_0x4ffdff(0x34b)](_0x1aac4d[_0x4ffdff(0x1dd)]),_0x22db62['set'](_0x490392,_0x3115a7);}}),{'skeleton':_0x342447,'cursors':_0x22db62};}));}return d['of']({'skeleton':null,'cursors':new Map()});}))[_0x5abad7(0x273)](({skeleton:_0x14b41b,cursors:_0x5bfefc})=>{const _0x47f6c7=_0x5abad7;this[_0x47f6c7(0x2da)](),_0x14b41b&&this[_0x47f6c7(0x32b)](_0x14b41b,_0x5bfefc);}),this[_0x5abad7(0x367)][_0x5abad7(0x288)][_0x5abad7(0x273)](_0x1fdee7=>{const _0x16f500=_0x5abad7;if(_0x1fdee7==null)return;const {skeleton:_0x142710}=_0x1fdee7,{scene:_0x4000d6}=this[_0x16f500(0x1a8)];_0x4000d6[_0x16f500(0x31b)][_0x16f500(0x271)](a[_0x16f500(0x334)](_0x5d6762=>{const _0x346049=_0x16f500;var _0x3441a3,_0x242427;const {offsetX:_0x31cc76,offsetY:_0x4d801e}=_0x5d6762,{x:_0x46b5af,y:_0x111cf6}=_0x4000d6[_0x346049(0x175)](p['Vector2']['FromArray']([_0x31cc76,_0x4d801e])),{scaleX:_0x51258b,scaleY:_0x3ea154}=_0x4000d6[_0x346049(0x38d)](),_0x27af89=_0x4000d6[_0x346049(0x35b)](p[_0x346049(0x2e3)][_0x346049(0x121)]),_0x1c779e=_0x4000d6[_0x346049(0x197)](p[_0x346049(0x1dc)][_0x346049(0x1d8)]([_0x46b5af,_0x111cf6]),_0x27af89),_0x2ec39b=_0x142710[_0x346049(0x144)](_0x31cc76,_0x4d801e,_0x51258b,_0x3ea154,_0x1c779e);((_0x3441a3=this[_0x346049(0x17e)])==null?void 0x0:_0x3441a3[_0x346049(0x193)])===_0x2ec39b[_0x346049(0x193)]&&((_0x242427=this[_0x346049(0x17e)])==null?void 0x0:_0x242427[_0x346049(0x35a)])===_0x2ec39b['row']||this['_cursors']['forEach'](_0x2a6379=>{const _0x81c0ff=_0x346049;_0x2a6379[_0x81c0ff(0x31a)](_0x2ec39b);});},0x64));});}['_updateCollabCursors'](_0x4ee788,_0x106268){const _0x11ec83=_0x458589;var _0x4c45e3;const _0x432443=(_0x4c45e3=this[_0x11ec83(0x367)][_0x11ec83(0x356)]())==null?void 0x0:_0x4c45e3[_0x11ec83(0x21a)];if(!_0x432443)return;const _0x42d55d=this[_0x11ec83(0x20a)]();if(!_0x42d55d)return;this[_0x11ec83(0x1d5)]['forEach'](_0x5436ca=>{const _0x4f23f7=_0x11ec83;_0x5436ca[_0x4f23f7(0x352)]();});const {scene:_0x33ed89}=_0x42d55d,_0x47dc43=Et(Array[_0x11ec83(0x33e)](_0x106268[_0x11ec83(0x292)]()))['map'](_0x58292b=>{const _0xcdc49a=_0x11ec83,{color:_0x49beb4,range:_0x5e84f3,name:_0xddcce0,selection:_0x4c1da4,sheetID:_0xf2a05f}=_0x58292b,{startColumn:_0x757c00,startRow:_0x673aeb,endColumn:_0x2b7c7e,endRow:_0xb4ca46}=_0x5e84f3,_0x325cae=X[_0xcdc49a(0x3a9)](_0x673aeb,_0x757c00,_0x33ed89,_0x432443),_0x107a1b=X['getCoordByCell'](_0xb4ca46,_0x2b7c7e,_0x33ed89,_0x432443),{columnHeaderHeightAndMarginTop:_0x2df085}=_0x432443,{startX:_0x527d83,startY:_0x2a9cc5}=_0x325cae,{endX:_0x3d3825,endY:_0x99d8fe}=_0x107a1b,_0x55bca7=_0x3d3825-_0x527d83,_0x1afb03=_0x99d8fe-_0x2a9cc5,_0x3db79d={'labelPosition':_0x2a9cc5-_0x2df085>=K?_0xcdc49a(0x1b8):_0xcdc49a(0x1fa),'sheetID':_0xf2a05f,'range':_0x5e84f3,'color':_0x49beb4,'name':_0xddcce0,'selection':_0x4c1da4,'left':_0x527d83,'top':_0x2a9cc5,'width':_0x55bca7,'height':_0x1afb03,'evented':!0x1,'zIndex':bt};return new Pe(_0xddcce0,_0x3db79d);});_0x33ed89['addObjects'](_0x47dc43,gt),this[_0x11ec83(0x1d5)]=new Set(_0x47dc43);}[_0x458589(0x2da)](){const _0x5e45b8=_0x458589;var _0x32f3f9;(_0x32f3f9=this[_0x5e45b8(0x1d5)])==null||_0x32f3f9[_0x5e45b8(0x321)](_0x34d0c4=>_0x34d0c4[_0x5e45b8(0x27a)]());}[_0x458589(0x20a)](){const _0x306fa5=_0x458589;return X[_0x306fa5(0x1a3)](this['_context'][_0x306fa5(0x2a0)],this[_0x306fa5(0x1a8)]);}};ve=pt([ae(0x1,a[_0x458589(0x15a)](X['SheetSkeletonManagerService'])),ae(0x2,a[_0x458589(0x15a)](x)),ae(0x3,a[_0x458589(0x15a)](a['ThemeService']))],ve);function Et(_0x5f1293){const _0x263e45=_0x458589,_0x420cda=new Map();return _0x5f1293['forEach'](_0x20209c=>{const _0x5f5c13=_0x497d;if(_0x420cda[_0x5f5c13(0x29b)](_0x20209c[_0x5f5c13(0x12d)])){const _0x118dfa=_0x420cda[_0x5f5c13(0x378)](_0x20209c[_0x5f5c13(0x12d)]);_0x118dfa['name']+=',\x20'+_0x20209c[_0x5f5c13(0x2b7)];}else _0x420cda[_0x5f5c13(0x1a6)](_0x20209c['selection'],_0x20209c);}),Array[_0x263e45(0x33e)](_0x420cda[_0x263e45(0x292)]());}var E=function(){return E=Object['assign']||function(_0x3cb1d7){const _0x5b159a=_0x497d;for(var _0x45a9cd,_0x55173c=0x1,_0x49981f=arguments[_0x5b159a(0x2a1)];_0x55173c<_0x49981f;_0x55173c++){_0x45a9cd=arguments[_0x55173c];for(var _0x2ab886 in _0x45a9cd)Object[_0x5b159a(0x2a4)][_0x5b159a(0x192)][_0x5b159a(0x2f3)](_0x45a9cd,_0x2ab886)&&(_0x3cb1d7[_0x2ab886]=_0x45a9cd[_0x2ab886]);}return _0x3cb1d7;},E['apply'](this,arguments);},Tt=function(_0x27438e,_0x4b9e2f){const _0x277cd2=_0x458589;var _0x135d89={};for(var _0x459c40 in _0x27438e)Object[_0x277cd2(0x2a4)][_0x277cd2(0x192)][_0x277cd2(0x2f3)](_0x27438e,_0x459c40)&&_0x4b9e2f[_0x277cd2(0x35d)](_0x459c40)<0x0&&(_0x135d89[_0x459c40]=_0x27438e[_0x459c40]);if(_0x27438e!=null&&typeof Object[_0x277cd2(0x18e)]==_0x277cd2(0x375)){for(var _0x5485b6=0x0,_0x459c40=Object['getOwnPropertySymbols'](_0x27438e);_0x5485b6<_0x459c40['length'];_0x5485b6++)_0x4b9e2f[_0x277cd2(0x35d)](_0x459c40[_0x5485b6])<0x0&&Object['prototype'][_0x277cd2(0x3a3)]['call'](_0x27438e,_0x459c40[_0x5485b6])&&(_0x135d89[_0x459c40[_0x5485b6]]=_0x27438e[_0x459c40[_0x5485b6]]);}return _0x135d89;},pe=M['forwardRef'](function(_0x51c05d,_0x5555ee){const _0x21b803=_0x458589;var _0x208349=_0x51c05d['icon'],_0xcf0e45=_0x51c05d['id'],_0x42ea1f=_0x51c05d[_0x21b803(0x2bc)],_0x3418d3=_0x51c05d[_0x21b803(0x235)],_0xe29810=Tt(_0x51c05d,['icon','id',_0x21b803(0x2bc),_0x21b803(0x235)]),_0xc9b985=_0x21b803(0x2c5)[_0x21b803(0x160)](_0xcf0e45,'\x20')['concat'](_0x42ea1f||'')[_0x21b803(0x196)](),_0x53731e=M[_0x21b803(0x180)]('_'[_0x21b803(0x160)](Dt()));return Ae(_0x208349,''[_0x21b803(0x160)](_0xcf0e45),{'defIds':_0x208349[_0x21b803(0x31f)],'idSuffix':_0x53731e[_0x21b803(0x22b)]},E({'ref':_0x5555ee,'className':_0xc9b985},_0xe29810),_0x3418d3);});function Ae(_0x3acbd9,_0x1992ce,_0x474f14,_0x3de0c5,_0x392884){const _0x57e213=_0x458589;return M[_0x57e213(0x194)](_0x3acbd9[_0x57e213(0x36e)],E(E({'key':_0x1992ce},Ot(_0x3acbd9,_0x474f14,_0x392884)),_0x3de0c5),(Rt(_0x3acbd9,_0x474f14)[_0x57e213(0x128)]||[])[_0x57e213(0x2df)](function(_0xa2630d,_0x1c5f35){const _0x32b53c=_0x57e213;return Ae(_0xa2630d,''[_0x32b53c(0x160)](_0x1992ce,'-')[_0x32b53c(0x160)](_0x3acbd9[_0x32b53c(0x36e)],'-')[_0x32b53c(0x160)](_0x1c5f35),_0x474f14,void 0x0,_0x392884);}));}function Ot(_0x220318,_0x55bc21,_0x55f87f){const _0x1eb2bd=_0x458589;var _0x20c0dc=E({},_0x220318[_0x1eb2bd(0x33d)]);_0x55f87f!=null&&_0x55f87f[_0x1eb2bd(0x1cd)]&&_0x20c0dc[_0x1eb2bd(0x15f)]===_0x1eb2bd(0x1cd)&&(_0x20c0dc[_0x1eb2bd(0x15f)]=_0x55f87f[_0x1eb2bd(0x1cd)]),_0x220318['tag']===_0x1eb2bd(0x2ec)&&_0x20c0dc['id']&&(_0x20c0dc['id']=_0x20c0dc['id']+_0x55bc21[_0x1eb2bd(0x1d0)]),Object[_0x1eb2bd(0x39c)](_0x20c0dc)['forEach'](function(_0x44a175){const _0x19a639=_0x1eb2bd;var _0x4a0909=_0x44a175[0x0],_0x302bb5=_0x44a175[0x1];_0x4a0909==='mask'&&typeof _0x302bb5==_0x19a639(0x142)&&(_0x20c0dc[_0x4a0909]=_0x302bb5['replace'](/url\(#(.*)\)/,_0x19a639(0x230)[_0x19a639(0x160)](_0x55bc21[_0x19a639(0x1d0)],')')));});var _0x3b5bab=_0x55bc21[_0x1eb2bd(0x31f)];return!_0x3b5bab||_0x3b5bab[_0x1eb2bd(0x2a1)]===0x0||(_0x220318[_0x1eb2bd(0x36e)]==='use'&&_0x20c0dc[_0x1eb2bd(0x206)]&&(_0x20c0dc[_0x1eb2bd(0x206)]=_0x20c0dc[_0x1eb2bd(0x206)]+_0x55bc21[_0x1eb2bd(0x1d0)]),Object[_0x1eb2bd(0x39c)](_0x20c0dc)['forEach'](function(_0x15b440){const _0x41cd80=_0x1eb2bd;var _0x274e96=_0x15b440[0x0],_0x576e60=_0x15b440[0x1];typeof _0x576e60==_0x41cd80(0x142)&&(_0x20c0dc[_0x274e96]=_0x576e60[_0x41cd80(0x132)](/url\(#(.*)\)/,_0x41cd80(0x230)[_0x41cd80(0x160)](_0x55bc21[_0x41cd80(0x1d0)],')')));})),_0x20c0dc;}function Rt(_0x1f74e9,_0x3a729a){const _0x46ec5e=_0x458589;var _0x21aa3f,_0x1cd540=_0x3a729a['defIds'];return!_0x1cd540||_0x1cd540[_0x46ec5e(0x2a1)]===0x0?_0x1f74e9:_0x1f74e9[_0x46ec5e(0x36e)]===_0x46ec5e(0x22a)&&(!((_0x21aa3f=_0x1f74e9[_0x46ec5e(0x128)])===null||_0x21aa3f===void 0x0)&&_0x21aa3f[_0x46ec5e(0x2a1)])?E(E({},_0x1f74e9),{'children':_0x1f74e9[_0x46ec5e(0x128)][_0x46ec5e(0x2df)](function(_0xf7b86c){const _0x5b1972=_0x46ec5e;return typeof _0xf7b86c['attrs']['id']==_0x5b1972(0x142)&&_0x1cd540&&_0x1cd540[_0x5b1972(0x199)](_0xf7b86c[_0x5b1972(0x33d)]['id'])?E(E({},_0xf7b86c),{'attrs':E(E({},_0xf7b86c[_0x5b1972(0x33d)]),{'id':_0xf7b86c[_0x5b1972(0x33d)]['id']+_0x3a729a[_0x5b1972(0x1d0)]})}):_0xf7b86c;})}):_0x1f74e9;}function Dt(){const _0x45f4a3=_0x458589;return Math['random']()[_0x45f4a3(0x19e)](0x24)[_0x45f4a3(0x2e2)](0x2,0x8);}pe['displayName']='UniverIcon';var Ut={'tag':_0x458589(0x17d),'attrs':{'xmlns':_0x458589(0x20e),'fill':_0x458589(0x2f1),'viewBox':'0\x200\x2016\x2016','width':'1em','height':'1em'},'children':[{'tag':'g','attrs':{'clipPath':_0x458589(0x257)},'children':[{'tag':_0x458589(0x3a7),'attrs':{'stroke':_0x458589(0x1bc),'d':_0x458589(0x157),'strokeLinecap':_0x458589(0x1b2),'strokeLinejoin':'round','strokeWidth':1.2}}]},{'tag':_0x458589(0x22a),'attrs':{},'children':[{'tag':_0x458589(0x1c1),'attrs':{'id':'off-line-icon_clip0_910_343'},'children':[{'tag':_0x458589(0x3a7),'attrs':{'fill':_0x458589(0x275),'d':_0x458589(0x133)}}]}]}],'defIds':[_0x458589(0x30b)]},ye=M[_0x458589(0x1d9)](function(_0x4f1087,_0x474f2c){const _0x1130e3=_0x458589;return M[_0x1130e3(0x194)](pe,Object[_0x1130e3(0x30e)]({},_0x4f1087,{'id':_0x1130e3(0x329),'ref':_0x474f2c,'icon':Ut}));});ye[_0x458589(0x20f)]=_0x458589(0x21e);var Nt={'tag':_0x458589(0x17d),'attrs':{'xmlns':_0x458589(0x20e),'fill':_0x458589(0x2f1),'viewBox':_0x458589(0x28b),'width':_0x458589(0x16f),'height':_0x458589(0x16f)},'children':[{'tag':'g','attrs':{'clipPath':_0x458589(0x187)},'children':[{'tag':_0x458589(0x3a7),'attrs':{'stroke':'currentColor','d':_0x458589(0x2fa),'strokeLinecap':'round','strokeLinejoin':'round','strokeWidth':1.2}}]},{'tag':_0x458589(0x22a),'attrs':{},'children':[{'tag':_0x458589(0x1c1),'attrs':{'id':'on-line-icon_clip0_910_349'},'children':[{'tag':_0x458589(0x3a7),'attrs':{'fill':_0x458589(0x275),'d':_0x458589(0x133),'transform':_0x458589(0x24c)}}]}]}],'defIds':[_0x458589(0x18f)]},$e=M[_0x458589(0x1d9)](function(_0x4ade87,_0x4984ff){const _0x5b080c=_0x458589;return M[_0x5b080c(0x194)](pe,Object[_0x5b080c(0x30e)]({},_0x4ade87,{'id':_0x5b080c(0x247),'ref':_0x4984ff,'icon':Nt}));});$e[_0x458589(0x20f)]=_0x458589(0x37d);function Mt(_0x2bbbd2){const _0x386753=_0x458589;switch(_0x2bbbd2){case u[_0x386753(0x3ae)][_0x386753(0x396)]:return _0x386753(0x29f);case u[_0x386753(0x3ae)][_0x386753(0x318)]:return _0x386753(0x327);case u[_0x386753(0x3ae)]['FETCH_MISS']:return _0x386753(0x19c);case u[_0x386753(0x3ae)][_0x386753(0x386)]:return _0x386753(0x274);case u[_0x386753(0x3ae)][_0x386753(0x272)]:case u['CollaborationStatus'][_0x386753(0x2e8)]:return _0x386753(0x326);case u['CollaborationStatus'][_0x386753(0x3ad)]:case u[_0x386753(0x3ae)][_0x386753(0x374)]:return'collabStatus.synced';}}function xe(_0xf20b02){const _0x4b4f78=_0x458589,{status$:_0x52b3b2}=_0xf20b02,_0x54ff46=T[_0x4b4f78(0x244)](_0x52b3b2,u['CollaborationStatus'][_0x4b4f78(0x386)]),_0x139494=T['useDependency'](a[_0x4b4f78(0x17c)]),_0x3100a3=T[_0x4b4f78(0x394)](u['CollaborationSessionService']),_0x5bf890=_0x54ff46!==u[_0x4b4f78(0x3ae)][_0x4b4f78(0x396)],_0x38c70f=_0x139494['t'](Mt(_0x54ff46)),_0x4448e1=_0x5bf890?w[_0x4b4f78(0x2d5)]($e,{}):w[_0x4b4f78(0x2d5)](ye,{}),_0xc3663=M['useCallback'](()=>{const _0x5a21be=_0x4b4f78;_0x5bf890||_0x3100a3[_0x5a21be(0x307)]();},[_0x5bf890,_0x3100a3]);function _0xaa7fc0(){const _0x27f263=_0x4b4f78;return w[_0x27f263(0x349)]('div',{'className':_0x27f263(0x33a),'onClick':_0xc3663,'children':[w['jsx']('div',{'className':D[_0x27f263(0x232)](_0x27f263(0x305),{'univer-text-green-500':_0x5bf890,'univer-text-red-500':!_0x5bf890}),'children':_0x4448e1}),w[_0x27f263(0x2d5)](_0x27f263(0x21b),{'className':_0x27f263(0x222),'children':_0x38c70f})]});}return _0x5bf890?_0xaa7fc0():w['jsx'](D[_0x4b4f78(0x359)],{'title':_0x139494['t']('collab-client.tooltip.reconnect'),'children':_0xaa7fc0()});}function _0x125d(){const _0x2e74bd=['subunit','30740ZzbNjP','collab-rect-range-','max','combineLatest','loadUnit','isActive','_getScale','YUUMI_AI_RUN_FAILED','EMAIL_HAS_BEEN_BOUND','skeleton','div','_draw','getCurrentUnitForType','OffLineIcon','m2Prime','transformStateCache','[RemoteUniscriptService]:\x20no\x20focused\x20unit','univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','_hideTimer','getCollabCursors$','CLOSE_ROOM','editingUnit','rxjs','roomMembers','defs','current','COLORS','YUUMI_RATE_OVER_LIMIT','isTransformMutationsWithChangesetSuccess','type','url(#$1','pipe','clsx','_initEntityListener','_doCreateSocket','extend','getSheetId','permission.title','session.collaboration-timeout','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','_anchor','entityInit$','SNAPSHOT_HAS_BEEN_REMOVED','toStringTag','INVITE_CODE_ALREADY_BOUND','sheetId','findNodePositionByCharIndex','_initEvent','UNRECOGNIZED','12155yiUojm','useObservable','ICommandService','_registerDependencies','on-line-icon','ISocketService','Tools','InsertRangeMoveRightCommandId','handleInsertRow','translate(.97)','_colorAssignService','_drawRectRange','Shape','MessageType','_urlService','pushState','IURLService','CollaborationUIEventId','DependentOn','SOCKET_FAILED','url(#off-line-icon_clip0_910_343)','onTransformChange$','_init','urlChange$','_scheduleHeartbeat','12wUDETl','mapTo','_docClipboardService','_assignedColors','_initStatusComponent','_range','contains','YUUMI_ALL_TABLES_IS_INVALID','_shapes','YUUMI_URL_COL_OUT_OF_RANGE','getConfig','InsertRangeMoveDownCommandId','_cursorShapes','2388APqmMx','CollaborationStatusDisplay','_startSheetCollabCursor','CollaborationController','HTTPService','touchDependencies','INVALID_INVITE_CODE','syncEditingCollabCursor','subscribeEvent','AWAITING','subscribe','collabStatus.notCollab','white','IConfigService','getRangePointData','_handleHover','filter','dispose','1638WmkRoZ','PY_RUNTIME_SCRIPT_ERROR','drawWith','_dataLoaderService','add','whenReady','rgba(255,\x20255,\x20255,\x200.01)','INVITE_CODE_REQUIRED','setUndoRedoMutationParamsCache','_removeClearOtherTimer','Injector','MOBILE_HAS_BEEN_BOUND','_textBubble','currentSkeleton$','_revisionService','doc.mutation.rich-text-editing','0\x200\x2017\x2016','saveImage','DeleteRangeMoveUpCommandId','sessionStatus$','_cachedData','_refreshCollabCursors','with','values','_transformUndoRedoStack','push','UnitStatus','some','CollaborationDataLoaderController','...','_docTransformStateCacheService','_logService','has','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','_docTransformSelectionsService','registerDependencies','collabStatus.offline','unit','length','CollaborationEvent','_getSaveTimeout','prototype','_updateLocalCursor','55xuRuPN','next','requireSession','params','APPLY_NON_SEQUENTIAL_REVISION','unsubscribe','INotificationService','height','setShapeProps','_getMergeRange','getMergeData','DeleteRangeMoveLeftCommandId','getCollabEntity$','key','green.600','toRgbString','YUUMI_NO_CUBOID_FOR_QUESTION','name','COMPLETION_FINISHED','UniverInstanceType','evenodd','setConfig','className','_univerInstanceService','APPLY_PERMISSION_DENIED','assignAColorForMemberID','restore','getOffsetConfig','distinctUntilChanged','YUUMI_SUBSCRIPTION_NOT_FOUND','handleInsertCol','univerjs-icon\x20univerjs-icon-','_collabSessionService','@univerjs/docs-ui','_disabled','_messageService','_configService','USER_NOT_INVITED_CODE','parse','DesktopCollaborationStatusDisplayController','HEADER_MENU','location','BehaviorSubject','debounceTime','_localStorageService','7728wSdKrv','memberID','jsx','dispose$','collaboration.closeRoom','setInterval','_updateSubUnitFromURLParams','_removeCollabCursors','init','ColorKit','executeCommand','executionId','map','getCurrentSelections','LOGIN_FAILED','substring','SHEET_VIEWPORT_KEY','Failed','find','cursorInfo$','disableLocalCache','AWAITING_WITH_PENDING','deepClone','fillText','_docSkeletonManagerService','mask','defineProperty','151968EXhzqM','_cursorInfo$','runOnServer','none','_anchorDot','call','getActiveRange','@univerjs-pro/collaboration','backgroundColor','_syncEditingCollabCursorService','getUndoRedoMutationParamsCache','collaboration-client-ui.config','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','mergeOverrideWithDependencies','setParam','collaboration.single-unit.warning','body','size','send','2IixrNN','handleDeleteRangeMoveLeft','href','merge','univer-flex\x20univer-mr-2\x20univer-text-xl','yellow.400','reconnect','currentTheme$','_initDependencies','_injector','off-line-icon_clip0_910_343','_clearOtherTimers','width','assign','DocSelectionManagerService','then','startRow','_getAnchorBounding','activeSheet$','sheetID','RxDisposable','event$','REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY','CONFLICT','getStateCache','onMouseMove','onPointerMove$','@univerjs/engine-render','_handleLeaveEvent','ILogService','defIds','searchParams','forEach','_instanceService','_session','OTHER_CLIENTS_EDITING','MUTATION','collabStatus.syncing','collabStatus.conflict','BuiltInUIPart','off-line-icon','startsWith','_updateCollabCursors','_setupSubUnitSync','_entities','clearTimeout','_eventUnsubscribe','UNDEFINED','Unknown\x20user','SetWorksheetActivateCommand','session.connection-failed','debounce','_unitOnClients','status$','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','collabCursorState$','moveTo','univer-flex\x20univer-items-center','_collaborationController','_ensureSubject','attrs','from','black','getTypeOfUnitAdded$','_drawTextRange','[CollaborationDataLoaderController]','SOCKET_FAILED_RETRY','@univerjs/ui','_docSkeleton','_online','PERMISSION_DENIED','YUUMI_ASYNCIO_CANCELLED','jsxs','_registerRenderDependencies','getColorFromTheme','TEXT_RANGE_LAYER_INDEX','NO_OTHER_CLIENTS_EDITING','75091BjxPKs','setStateCache','_unitStatus','symbol','makeDirty','18xkfJDe','runId','transformByState','getCurrent','_status$','_name','Tooltip','row','getViewport','result','indexOf','_notificationService','switchMap','disposeUnit','TEXT','transform','getActiveSheet','wsSessionTicketUrl','redoState','DocCollaborationEntity','_sheetSkeletonManagerService','pluginName','asObservable','_cursor','handleMoveRange','transformMutation','_setupBeforeClosingHandler','tag','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','getLocalCacheKey','getSkeleton','Subject','collaboration-client.offline-data-not-saved','PENDING','function','ALREADY_EXISTS','isEditing','get','getItem','handleInsertRangeMoveDown','getUnitStatus$','Module','OnLineIcon','transformMutationsWithChangeset','Disposable','registerBeforeClose','LOCAL_CACHE_INTERVAL','resize','Rect','getValue','WebURLService','NOT_COLLAB','application/json','IUniverInstanceService','eventID','@univerjs/docs','_onCursorDelete','INTERNAL_ERROR','getAncestorScale','845nPxcnH','@univerjs/network','ONLINE','_selfUnitIDs','lineTo','@univerjs-pro/collaboration-client','useDependency','setItem','OFFLINE','ENSURE_SNAPSHOT_EXECUTION','registerComponent','IRemoteInstanceService','WECHAT_HAS_BEEN_BOUND','RefRangeService','entries','isTransformMutationFailure','getParam','_collabCursorState$','react','EffectRefRangId','measureText','propertyIsEnumerable','generateRandomId','CHANGESET_REVISION_CONFILICT','getSheetBySheetId','path','getUnitId','getCoordByCell','_send','unitId','react/jsx-runtime','SYNCED','CollaborationStatus','InsertColCommandId','replaceState','engine','transformIMECache','_commandService','_docSyncEditingCollabCursorService','SUBMIT_CHANGESET_TIMEOUT','VIEW_MAIN','MemberService','runRefRangeMutations','ACTIVE_UNIT_EVENT_CHANNEL','_handleHeartbeatEvent','getMember','debug','children','APPLY_REJECT','_toggleOffline','NOT_FOUND','UniverCollaborationClientUIPlugin','selection','permission.content','isArray','RegularPolygon','_scheduleSaving','replace','M0\x200H16V16H0z','@univerjs/drawing','_handleJoinEvent','_document','red.300','stringify','origin','9640PGaYOK','getFocusedUnit','onLocalMutation','fromEventSubject','ThemeService','history','disposeWithMe','_heartbeatTimer','string','_hover','getCellPositionByOffset','IRenderManagerService','APPLY_REVISION_CONFILICT','INVITE_CODE_HAS_BEEN_UES','_beforeCloseService','_onCursorUpdate','endRow','rxjs/operators','DataLoaderService','CONNECTOR_DATA_TOO_LARGE','unshift','_renderManagerService','SheetCollabCursorShape','ISnapshotServerService','_createSocketURL','toDisposable','DocIMEInputManagerService','_refRangeService','TRANSFORM_CHANGE_OBSERVABLE_TYPE','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','WebBrowserSingleActiveUnitService','deserializeRangeWithSheet','Inject','LICENSE_MAX_UNITS_EXCEEDED','mutations','addObject','override','fill','concat','UNIVER_SHEET','@univerjs/sheets','handleInsertRangeMoveRight','_transformHistoryAndStateStack','DocStateChangeManagerService','_drawAnchor','UNAUTHENTICATED','_labelPosition','Warning','_colorIndex','_initResize','YUUMI_UNABLE_LOAD_URL','m1Prime','IImageIoService','1em','_scheduleClearOtherTimer','RemoteUniscriptService','complete','transformRemoteChangeset','217xXlitY','getRelativeToViewportCoord','_themeService','APPLY_DUPLICATED','createIdentifier','SNAPSHOT_INVALID_SNAPSHOT','_handleEvent','saveTaskMap','LocaleService','svg','_lastPointer','error','useRef','/run/','getTypeOfUnitDisposed$','source','sessionTicket','cursorInfo','_uiPartsService','url(#on-line-icon_clip0_910_349)','_docTransformIMECacheService','_imageIoService','min','_initCommandExecutedListener','BrowserCollaborationSocketService','createInstance','getOwnPropertySymbols','on-line-icon_clip0_910_349','_id','text','hasOwnProperty','column','createElement','updateOfflineData','trim','getVpScrollXYInfoByPosToVp','CollaborationSocketService','includes','getRenderById','DEFAULT_WS_SESSION_TICKET_URL','collabStatus.fetchMiss','transformSelections','toString','fromEvent','exhaustSavingTask','IMessageService','removeParam','getSheetObject','_saveCache','Error','set','replaceDocRanges','_context','Plugin','LICENSE_EXPORT_SIZE_EXCEEDED','_backgroundColor','getColor','Optional','_localCacheService','YUUMI_PROMPT_MAX_TOKENS_EXCEEDED','onCommandExecuted','RECT','round','handleIRemoveCol','getOwnPropertyDescriptor','IUIPartsService','UPDATE_CURSOR','Workbook','top','data','YUUMI_TABLE_NOT_FOUND_IN_UNIT','_scene','currentColor','_updateURLWithCurrentState','popstate','ticket','CollaborationUIEventService','clipPath','_docStateChangeManagerService','registerRenderModule','beginPath','_render','getMemberID','ITransformService','textRanges','INVALID_ARGUMENT','_saveTaskMap','NodePositionConvertToRectRange','_color','colorChannel1','setActiveRange','_entityInit$','idSuffix','hide','_roomMembers$','onRendered','collab-text-range-','_cursors','handleIRemoveRow','focused$','FromArray','forwardRef','@univerjs/sheets-ui','split','Vector2','color','TOO_MANY_REQUESTS','range','LOCAL_CACHE_INTERVAL_KEY','undoState','_onRefRangeChange','_config','delete','RemoveRowCommandId','onPointerLeave$','LICENSE_IMPORT_SIZE_EXCEEDED','blue.400','_hovered','SetSelectionsOperation','_toggleOnline','_initStatusListener','NodePositionConvertToCursor','UniverCollaborationClientPlugin','ranges','DOC_RANGE_TYPE','_localeService','selections','takeUntil','closePath','UNIVER_COLLABORATION_CLIENT_WEB_PLUGIN','SheetsSelectionsService','storage','clearInterval','_httpService','bottom','CollaborationSessionService','registerRefRange','SessionStatus','_memberService','fillStyle','getDocRanges','_startDocCollabCursor','arc','unitID','_transformService','UNIVER_DOC','xlink:href','_collaborationUIEventService','show','_collabCursorController','_getSheetObject','createSocket','roomMembers$','endColumn','http://www.w3.org/2000/svg','displayName'];_0x125d=function(){return _0x2e74bd;};return _0x125d();}var Lt=Object[_0x458589(0x1b4)],wt=(_0x96153a,_0x106d5c,_0x65d7e4,_0x525772)=>{const _0x5938f2=_0x458589;for(var _0x139471=_0x525772>0x1?void 0x0:_0x525772?Lt(_0x106d5c,_0x65d7e4):_0x106d5c,_0x43982e=_0x96153a[_0x5938f2(0x2a1)]-0x1,_0xb5bcbb;_0x43982e>=0x0;_0x43982e--)(_0xb5bcbb=_0x96153a[_0x43982e])&&(_0x139471=_0xb5bcbb(_0x139471)||_0x139471);return _0x139471;},V=(_0x2ab214,_0x4701d6)=>(_0x89eb3a,_0x104389)=>_0x4701d6(_0x89eb3a,_0x104389,_0x2ab214);exports[_0x458589(0x2cd)]=class extends a['Disposable']{constructor(_0x1afde7,_0x1fd6bf,_0xec35c5,_0x5ec023){const _0x167a9c=_0x458589;super(),h(this,'_status$',new d[(_0x167a9c(0x2d0))](u[_0x167a9c(0x3ae)][_0x167a9c(0x386)])),(this[_0x167a9c(0x2bd)]=_0x1afde7,this[_0x167a9c(0x30a)]=_0x1fd6bf,this[_0x167a9c(0x33b)]=_0xec35c5,this[_0x167a9c(0x186)]=_0x5ec023,this[_0x167a9c(0x260)](),this[_0x167a9c(0x1ec)]());}[_0x458589(0x1ec)](){const _0x3a8816=_0x458589;this['disposeWithMe'](this['_univerInstanceService'][_0x3a8816(0x1d7)][_0x3a8816(0x231)](d[_0x3a8816(0x35f)](()=>{const _0x4aa513=_0x3a8816,_0x368769=this['_univerInstanceService'][_0x4aa513(0x13b)]();return _0x368769?this[_0x4aa513(0x33b)][_0x4aa513(0x2b2)](_0x368769[_0x4aa513(0x3a8)]()):d['of'](null);}),d[_0x3a8816(0x35f)](_0x32c022=>_0x32c022?_0x32c022[_0x3a8816(0x336)]:d['of'](u[_0x3a8816(0x3ae)][_0x3a8816(0x386)])))[_0x3a8816(0x273)](_0x7ecf7b=>{const _0x1042f1=_0x3a8816;this[_0x1042f1(0x357)][_0x1042f1(0x2a7)](_0x7ecf7b);}));}[_0x458589(0x260)](){const _0x299daf=_0x458589;this['disposeWithMe'](this[_0x299daf(0x186)][_0x299daf(0x398)](T[_0x299daf(0x328)][_0x299daf(0x2ce)],()=>T['connectInjector'](Pt({'status$':this[_0x299daf(0x357)]['asObservable']()}),this[_0x299daf(0x30a)])));}},exports[_0x458589(0x2cd)]=wt([V(0x0,a[_0x458589(0x388)]),V(0x1,a[_0x458589(0x15a)](a[_0x458589(0x285)])),V(0x2,a[_0x458589(0x15a)](u[_0x458589(0x26c)])),V(0x3,T[_0x458589(0x1b5)])],exports['DesktopCollaborationStatusDisplayController']);function Pt(_0x3a680f){const {status$:_0x3e7ea1}=_0x3a680f;return function(){const _0x59b572=_0x497d;return w[_0x59b572(0x2d5)](xe,{'status$':_0x3e7ea1});};}var At=Object['getOwnPropertyDescriptor'],yt=(_0x196519,_0xd8800a,_0x5ce519,_0xb831da)=>{for(var _0x57cd3c=_0xb831da>0x1?void 0x0:_0xb831da?At(_0xd8800a,_0x5ce519):_0xd8800a,_0x1c2bce=_0x196519['length']-0x1,_0x106802;_0x1c2bce>=0x0;_0x1c2bce--)(_0x106802=_0x196519[_0x1c2bce])&&(_0x57cd3c=_0x106802(_0x57cd3c)||_0x57cd3c);return _0x57cd3c;},y=(_0x342cd3,_0x516233)=>(_0x3fa260,_0x396977)=>_0x516233(_0x3fa260,_0x396977,_0x342cd3);let q=class extends a[_0x458589(0x37f)]{constructor(_0x397c09,_0x4523e7,_0x19de2a,_0xd8c68e,_0x2cc24f,_0x40cff8){const _0x3440fe=_0x458589;super(),this['_beforeCloseService']=_0x397c09,this[_0x3440fe(0x1ae)]=_0x4523e7,this[_0x3440fe(0x207)]=_0x19de2a,this[_0x3440fe(0x2c9)]=_0xd8c68e,this[_0x3440fe(0x35e)]=_0x2cc24f,this[_0x3440fe(0x1f1)]=_0x40cff8,this[_0x3440fe(0x36d)](),this['_initEvent']();}[_0x458589(0x36d)](){const _0x3adf14=_0x458589;this[_0x3adf14(0x140)](this[_0x3adf14(0x148)][_0x3adf14(0x380)](()=>{const _0x1d82ee=_0x3adf14;if(this['_localCacheService'][_0x1d82ee(0x17b)][_0x1d82ee(0x2ff)])return this['_localeService']['t'](_0x1d82ee(0x373));}));}[_0x458589(0x241)](){const _0xfdc685=_0x458589;this['disposeWithMe'](this['_collaborationUIEventService']['event$'][_0xfdc685(0x273)](_0x1c4827=>{const _0x4bd4ff=_0xfdc685;_0x1c4827['id']===u[_0x4bd4ff(0x254)]['OTHER_CLIENT_EDITING']&&this['_messageService'][_0x4bd4ff(0x208)]({'type':D[_0x4bd4ff(0x250)]['Warning'],'content':this[_0x4bd4ff(0x1f1)]['t'](_0x4bd4ff(0x2fd))}),_0x1c4827['id']===u['CollaborationUIEventId'][_0x4bd4ff(0x226)]&&this[_0x4bd4ff(0x2c9)]['show']({'type':D['MessageType'][_0x4bd4ff(0x169)],'content':this[_0x4bd4ff(0x1f1)]['t']('collaboration.closeRoom')}),_0x1c4827['id']===u[_0x4bd4ff(0x254)]['PERMISSION_DENIED']&&this[_0x4bd4ff(0x35e)][_0x4bd4ff(0x208)]({'title':this[_0x4bd4ff(0x1f1)]['t'](_0x4bd4ff(0x237)),'content':this[_0x4bd4ff(0x1f1)]['t'](_0x4bd4ff(0x12e)),'type':_0x4bd4ff(0x17f),'duration':0x0}),_0x1c4827['id']===u[_0x4bd4ff(0x254)][_0x4bd4ff(0x318)]&&this['_messageService'][_0x4bd4ff(0x208)]({'type':D['MessageType'][_0x4bd4ff(0x1a5)],'content':this['_localeService']['t'](_0x4bd4ff(0x2d7))+'('+_0x1c4827[_0x4bd4ff(0x1b9)]+')'}),_0x1c4827['id']===u[_0x4bd4ff(0x254)]['JOIN_ROOM_FAILED']&&this[_0x4bd4ff(0x2c9)][_0x4bd4ff(0x208)]({'type':D[_0x4bd4ff(0x250)]['Warning'],'content':this[_0x4bd4ff(0x1f1)]['t'](_0x1c4827[_0x4bd4ff(0x1b9)]||'')}),_0x1c4827['id']===u[_0x4bd4ff(0x254)][_0x4bd4ff(0x343)]&&this['_messageService'][_0x4bd4ff(0x208)]({'type':D['MessageType'][_0x4bd4ff(0x169)],'content':this[_0x4bd4ff(0x1f1)]['t']('session.will-retry')}),_0x1c4827['id']===u[_0x4bd4ff(0x254)][_0x4bd4ff(0x256)]&&this[_0x4bd4ff(0x2c9)]['show']({'type':D['MessageType'][_0x4bd4ff(0x1a5)],'content':this[_0x4bd4ff(0x1f1)]['t'](_0x4bd4ff(0x333))}),_0x1c4827['id']===u[_0x4bd4ff(0x254)][_0x4bd4ff(0x120)]&&this[_0x4bd4ff(0x2c9)][_0x4bd4ff(0x208)]({'type':D[_0x4bd4ff(0x250)][_0x4bd4ff(0x1a5)],'content':this['_localeService']['t'](_0x4bd4ff(0x238))});}));}};q=yt([y(0x0,T['IBeforeCloseService']),y(0x1,u['ILocalCacheService']),y(0x2,a[_0x458589(0x15a)](u[_0x458589(0x1c0)])),y(0x3,T['IMessageService']),y(0x4,T[_0x458589(0x2ac)]),y(0x5,a[_0x458589(0x15a)](a[_0x458589(0x17c)]))],q);const $t=_0x458589(0x2f9),Ue={},be=a[_0x458589(0x178)]('uni.network.url-service');var xt=Object['getOwnPropertyDescriptor'],jt=(_0x35a65e,_0x4d4bf5,_0x4f80cb,_0x8ace1e)=>{for(var _0x52839b=_0x8ace1e>0x1?void 0x0:_0x8ace1e?xt(_0x4d4bf5,_0x4f80cb):_0x4d4bf5,_0x403efb=_0x35a65e['length']-0x1,_0x3512e2;_0x403efb>=0x0;_0x403efb--)(_0x3512e2=_0x35a65e[_0x403efb])&&(_0x52839b=_0x3512e2(_0x52839b)||_0x52839b);return _0x52839b;},H=(_0x4d8983,_0x4c9beb)=>(_0x8b185b,_0x487b36)=>_0x4c9beb(_0x8b185b,_0x487b36,_0x4d8983);exports[_0x458589(0x297)]=class extends a[_0x458589(0x315)]{constructor(_0x265765,_0x311c06,_0x484ef2,_0x2dd8eb,_0x94e68f){const _0x17250c=_0x458589;super(),this[_0x17250c(0x251)]=_0x265765,this[_0x17250c(0x29a)]=_0x311c06,this[_0x17250c(0x11e)]=_0x484ef2,this[_0x17250c(0x27e)]=_0x2dd8eb,_0x94e68f?_0x94e68f==null||_0x94e68f[_0x17250c(0x280)]()[_0x17250c(0x310)](()=>this[_0x17250c(0x259)]()):(this[_0x17250c(0x29a)]['debug'](_0x17250c(0x342),_0x17250c(0x239)),this[_0x17250c(0x259)]());}async[_0x458589(0x259)](){const _0x55a05f=_0x458589,_0xd054de=this[_0x55a05f(0x251)][_0x55a05f(0x39e)](_0x55a05f(0x2a0)),_0x1fc8be=this[_0x55a05f(0x251)][_0x55a05f(0x39e)](_0x55a05f(0x22f)),_0x29d6b4=this['_urlService'][_0x55a05f(0x39e)](_0x55a05f(0x210));if(!_0xd054de||!_0x1fc8be){this[_0x55a05f(0x29a)][_0x55a05f(0x127)](_0x55a05f(0x342),_0x55a05f(0x29c));return;}const _0x317aef=await this[_0x55a05f(0x27e)][_0x55a05f(0x215)](_0xd054de,Number(_0x1fc8be),_0x29d6b4);_0x317aef&&_0x317aef instanceof a[_0x55a05f(0x1b7)]&&this[_0x55a05f(0x32c)](_0x317aef);}async[_0x458589(0x32c)](_0x54cec1){const _0x22b3e4=_0x458589;await this[_0x22b3e4(0x2d9)](_0x54cec1),_0x54cec1[_0x22b3e4(0x313)][_0x22b3e4(0x231)](d[_0x22b3e4(0x1f3)](this['dispose$']))[_0x22b3e4(0x273)](_0x1b49ee=>{const _0x15c3ba=_0x22b3e4;_0x1b49ee&&this[_0x15c3ba(0x1bd)](_0x1b49ee);}),this[_0x22b3e4(0x251)]['urlChange$'][_0x22b3e4(0x231)](d['takeUntil'](this[_0x22b3e4(0x2d6)]))[_0x22b3e4(0x273)](()=>this['_updateSubUnitFromURLParams'](_0x54cec1));}[_0x458589(0x1bd)](_0x18b4bf,_0xc5dd24=!0x1){const _0x561369=_0x458589,_0x35e3e7=this[_0x561369(0x251)]['getParam'](_0x561369(0x210));_0x18b4bf[_0x561369(0x236)]()!==_0x35e3e7&&this[_0x561369(0x251)][_0x561369(0x2fc)](_0x561369(0x210),_0x18b4bf[_0x561369(0x236)](),_0xc5dd24);}async['_updateSubUnitFromURLParams'](_0x18765b){const _0x32f97e=_0x458589;var _0x28818b;const _0x231a53=this[_0x32f97e(0x251)][_0x32f97e(0x39e)](_0x32f97e(0x210));if(!_0x231a53||!_0x18765b['getSheetBySheetId'](_0x231a53)){const _0x5fdcba=_0x18765b['getUnhiddenWorksheets']()[0x0],_0x2c169a=_0x18765b['getSheetBySheetId'](_0x5fdcba);if(!_0x2c169a)return;this[_0x32f97e(0x1bd)](_0x2c169a,!0x0),await this[_0x32f97e(0x11e)][_0x32f97e(0x2dd)](g[_0x32f97e(0x332)]['id'],{'unitId':_0x18765b[_0x32f97e(0x3a8)](),'subUnitId':_0x5fdcba});return;}((_0x28818b=_0x18765b[_0x32f97e(0x363)]())==null?void 0x0:_0x28818b[_0x32f97e(0x236)]())!==_0x231a53&&await this[_0x32f97e(0x11e)][_0x32f97e(0x2dd)](g[_0x32f97e(0x332)]['id'],{'unitId':_0x18765b[_0x32f97e(0x3a8)](),'subUnitId':_0x231a53});}},exports['CollaborationDataLoaderController']=jt([H(0x0,be),H(0x1,a[_0x458589(0x31e)]),H(0x2,a[_0x458589(0x245)]),H(0x3,a[_0x458589(0x15a)](u[_0x458589(0x14c)])),H(0x4,a[_0x458589(0x1ad)](Ke[_0x458589(0x399)]))],exports[_0x458589(0x297)]);var Bt=Object[_0x458589(0x1b4)],kt=(_0x109743,_0x3017d3,_0x5a08b5,_0x2afcc2)=>{for(var _0x33cf07=_0x2afcc2>0x1?void 0x0:_0x2afcc2?Bt(_0x3017d3,_0x5a08b5):_0x3017d3,_0x5f4394=_0x109743['length']-0x1,_0x4761c0;_0x5f4394>=0x0;_0x5f4394--)(_0x4761c0=_0x109743[_0x5f4394])&&(_0x33cf07=_0x4761c0(_0x33cf07)||_0x33cf07);return _0x33cf07;},ce=(_0x222dd8,_0x4a89a6)=>(_0x34770b,_0x41ebe8)=>_0x4a89a6(_0x34770b,_0x41ebe8,_0x222dd8);let z=class{constructor(_0x4bc05d,_0x26a57e,_0x3ae089){const _0x237de0=_0x458589;this[_0x237de0(0x30a)]=_0x4bc05d,this[_0x237de0(0x204)]=_0x26a57e,this[_0x237de0(0x14f)]=_0x3ae089;}[_0x458589(0x11d)](_0x53258e){this['_transformUndoRedoStack'](_0x53258e),this['_transformPreviousActiveRange'](_0x53258e);}[_0x458589(0x173)](_0x1a7f66){const _0x278c8f=_0x458589,{unitID:_0x4df47d}=_0x1a7f66,_0x277028=this[_0x278c8f(0x14f)][_0x278c8f(0x19a)](_0x4df47d)[_0x278c8f(0x291)](b['DocIMEInputManagerService']),{redoCache:_0x29502b}=_0x277028[_0x278c8f(0x2f8)]();if(_0x29502b[_0x278c8f(0x2a1)]===0x0)return _0x1a7f66;let _0x5e83d8=a[_0x278c8f(0x249)][_0x278c8f(0x2e9)](_0x1a7f66[_0x278c8f(0x15c)][0x0]);for(let _0x92629=0x0;_0x92629<_0x29502b[_0x278c8f(0x2a1)];_0x92629++){const _0x2e0db6={'id':_0x278c8f(0x28a),'params':{..._0x29502b[_0x92629]}},_0x32a4d1=this[_0x278c8f(0x204)][_0x278c8f(0x36c)](_0x5e83d8,_0x2e0db6,!0x1);if(m[_0x278c8f(0x39d)](_0x32a4d1))throw _0x32a4d1[_0x278c8f(0x17f)];_0x5e83d8=_0x32a4d1['m1Prime'];}return{...a['Tools'][_0x278c8f(0x2e9)](_0x1a7f66),'mutations':[_0x5e83d8]};}[_0x458589(0x293)](_0x2e0471){const _0x4817ac=_0x458589,{unitID:_0x1a3770}=_0x2e0471,_0x4e6a9c=this[_0x4817ac(0x14f)][_0x4817ac(0x19a)](_0x1a3770)[_0x4817ac(0x291)](b[_0x4817ac(0x154)]),{undoCache:_0x588d46,redoCache:_0x4ff558}=_0x4e6a9c[_0x4817ac(0x2f8)]();if(_0x588d46['length']===0x0||_0x4ff558[_0x4817ac(0x2a1)]===0x0)return;const _0x1c9582=[],_0x5bd76c=[];let _0x1aca61=a[_0x4817ac(0x249)]['deepClone'](_0x2e0471[_0x4817ac(0x15c)][0x0]),_0x3d55d8=a['Tools'][_0x4817ac(0x2e9)](_0x2e0471[_0x4817ac(0x15c)][0x0]);for(let _0x46fabe=_0x588d46[_0x4817ac(0x2a1)]-0x1;_0x46fabe>=0x0;_0x46fabe--){const _0xa3aa0={'id':_0x4817ac(0x28a),'params':{..._0x588d46[_0x46fabe]}},_0xc5fcb9={'id':_0x4817ac(0x28a),'params':{..._0x4ff558[_0x46fabe]}},_0x48e57f=this[_0x4817ac(0x204)][_0x4817ac(0x36c)](_0x1aca61,_0xa3aa0,!0x1),_0x227054=this[_0x4817ac(0x204)][_0x4817ac(0x36c)](_0x3d55d8,_0xc5fcb9,!0x1);if(m[_0x4817ac(0x39d)](_0x48e57f))throw _0x48e57f[_0x4817ac(0x17f)];if(m[_0x4817ac(0x39d)](_0x227054))throw _0x227054[_0x4817ac(0x17f)];_0x1c9582['unshift'](_0x48e57f[_0x4817ac(0x21f)][_0x4817ac(0x2a9)]),_0x5bd76c[_0x4817ac(0x14e)](_0x227054[_0x4817ac(0x21f)][_0x4817ac(0x2a9)]),_0x1aca61=_0x48e57f[_0x4817ac(0x16d)],_0x3d55d8=_0x227054[_0x4817ac(0x16d)];}_0x4e6a9c[_0x4817ac(0x283)]({'undoCache':_0x1c9582,'redoCache':_0x5bd76c});}['_transformPreviousActiveRange'](_0x1c850c){const _0x1d7cbc=_0x458589,{unitID:_0x1ca50a}=_0x1c850c,_0x73b3ba=this[_0x1d7cbc(0x14f)][_0x1d7cbc(0x19a)](_0x1ca50a)[_0x1d7cbc(0x291)](b[_0x1d7cbc(0x154)]),_0x539170=_0x73b3ba[_0x1d7cbc(0x2f4)]();if(_0x539170==null)return;const _0x266508=[{'id':_0x1d7cbc(0x28a),'params':{'unitId':_0x1c850c['unitID'],'actions':null,'textRanges':[_0x539170]}}],_0x2e4b90=this[_0x1d7cbc(0x204)]['transformMutationsWithChangeset'](_0x1c850c,_0x266508);if(!m[_0x1d7cbc(0x22e)](_0x2e4b90))throw _0x2e4b90[_0x1d7cbc(0x17f)];const _0x30570c=_0x2e4b90['m2Prime'][0x0]['params']['textRanges'];Array[_0x1d7cbc(0x12f)](_0x30570c)&&_0x30570c['length']&&_0x73b3ba[_0x1d7cbc(0x1ce)](_0x30570c[0x0]);}};z=kt([ce(0x0,a[_0x458589(0x15a)](a[_0x458589(0x285)])),ce(0x1,m[_0x458589(0x1c7)]),ce(0x2,p[_0x458589(0x145)])],z);function _0x497d(_0xdebab3,_0x471a64){const _0x125dc9=_0x125d();return _0x497d=function(_0x497da5,_0x44599c){_0x497da5=_0x497da5-0x11b;let _0x4b5bae=_0x125dc9[_0x497da5];return _0x4b5bae;},_0x497d(_0xdebab3,_0x471a64);}var Ht=Object['getOwnPropertyDescriptor'],Ft=(_0x24594e,_0x52ade0,_0x1586bd,_0x52a1dd)=>{for(var _0x17f5c6=_0x52a1dd>0x1?void 0x0:_0x52a1dd?Ht(_0x52ade0,_0x1586bd):_0x52ade0,_0x49fea2=_0x24594e['length']-0x1,_0x18ee28;_0x49fea2>=0x0;_0x49fea2--)(_0x18ee28=_0x24594e[_0x49fea2])&&(_0x17f5c6=_0x18ee28(_0x17f5c6)||_0x17f5c6);return _0x17f5c6;},le=(_0xb84bc,_0x73b645)=>(_0x16c1f2,_0xe82d70)=>_0x73b645(_0x16c1f2,_0xe82d70,_0xb84bc);let J=class{constructor(_0x5a4ff6,_0x309fc4,_0x12ae0d){const _0x2bc930=_0x458589;this[_0x2bc930(0x30a)]=_0x5a4ff6,this['_transformService']=_0x309fc4,this[_0x2bc930(0x1c2)]=_0x12ae0d;}[_0x458589(0x220)](_0x1f6531){const _0x48d051=_0x458589;this[_0x48d051(0x164)](_0x1f6531);}[_0x458589(0x173)](_0x574c40){const _0x50c3e8=_0x458589,{unitID:_0x19f5e5}=_0x574c40,{collaboration:_0x124a5e}=this['_docStateChangeManagerService'][_0x50c3e8(0x319)](_0x19f5e5);if(_0x124a5e['length']===0x0)return _0x574c40;let _0x1d8f9e=a['Tools'][_0x50c3e8(0x2e9)](_0x574c40[_0x50c3e8(0x15c)][0x0]);for(let _0x4a99a6=0x0;_0x4a99a6<_0x124a5e[_0x50c3e8(0x2a1)];_0x4a99a6++){const _0x494b00={'id':_0x50c3e8(0x28a),'params':{'unitId':_0x124a5e[_0x4a99a6][_0x50c3e8(0x3ab)],..._0x124a5e[_0x4a99a6][_0x50c3e8(0x365)]}},_0x97cede=this['_transformService'][_0x50c3e8(0x36c)](_0x1d8f9e,_0x494b00,!0x1);if(m[_0x50c3e8(0x39d)](_0x97cede))throw _0x97cede[_0x50c3e8(0x17f)];_0x1d8f9e=_0x97cede[_0x50c3e8(0x16d)];}return{...a[_0x50c3e8(0x249)][_0x50c3e8(0x2e9)](_0x574c40),'mutations':[_0x1d8f9e]};}[_0x458589(0x164)](_0x4b3c00){const _0x5e3daa=_0x458589,{unitID:_0x24790c}=_0x4b3c00,{history:_0x1b6da9,collaboration:_0x51dfef}=this[_0x5e3daa(0x1c2)]['getStateCache'](_0x24790c);if(_0x1b6da9[_0x5e3daa(0x2a1)]===0x0&&_0x51dfef[_0x5e3daa(0x2a1)]===0x0)return;const _0x20682b=[],_0x15064f=[];let _0x4c9bd5=a[_0x5e3daa(0x249)]['deepClone'](_0x4b3c00[_0x5e3daa(0x15c)][0x0]),_0x2940fa=a[_0x5e3daa(0x249)][_0x5e3daa(0x2e9)](_0x4b3c00[_0x5e3daa(0x15c)][0x0]);for(let _0x2b02c8=_0x1b6da9[_0x5e3daa(0x2a1)]-0x1;_0x2b02c8>=0x0;_0x2b02c8--){const _0x20dafa={'id':_0x5e3daa(0x28a),'params':{'unitId':_0x1b6da9[_0x2b02c8][_0x5e3daa(0x3ab)],..._0x1b6da9[_0x2b02c8][_0x5e3daa(0x1e1)]}},_0x41b6a7={'id':_0x5e3daa(0x28a),'params':{'unitId':_0x1b6da9[_0x2b02c8][_0x5e3daa(0x3ab)],..._0x1b6da9[_0x2b02c8][_0x5e3daa(0x365)]}},_0x7eea6f=this[_0x5e3daa(0x204)][_0x5e3daa(0x36c)](_0x4c9bd5,_0x20dafa,!0x1),_0x17c7a5=this[_0x5e3daa(0x204)]['transformMutation'](_0x2940fa,_0x41b6a7,!0x1);if(m[_0x5e3daa(0x39d)](_0x7eea6f))throw _0x7eea6f[_0x5e3daa(0x17f)];if(m[_0x5e3daa(0x39d)](_0x17c7a5))throw _0x17c7a5['error'];_0x20682b['unshift']({..._0x1b6da9[_0x2b02c8],'undoState':_0x7eea6f[_0x5e3daa(0x21f)][_0x5e3daa(0x2a9)],'redoState':_0x17c7a5[_0x5e3daa(0x21f)]['params']}),_0x4c9bd5=_0x7eea6f[_0x5e3daa(0x16d)],_0x2940fa=_0x17c7a5[_0x5e3daa(0x16d)];}_0x4c9bd5=a[_0x5e3daa(0x249)]['deepClone'](_0x4b3c00[_0x5e3daa(0x15c)][0x0]),_0x2940fa=a['Tools'][_0x5e3daa(0x2e9)](_0x4b3c00[_0x5e3daa(0x15c)][0x0]);for(let _0x129f7=_0x51dfef[_0x5e3daa(0x2a1)]-0x1;_0x129f7>=0x0;_0x129f7--){const _0x1cc605={'id':_0x5e3daa(0x28a),'params':{'unitId':_0x51dfef[_0x129f7]['unitId'],..._0x51dfef[_0x129f7][_0x5e3daa(0x1e1)]}},_0x2885f6={'id':_0x5e3daa(0x28a),'params':{'unitId':_0x51dfef[_0x129f7]['unitId'],..._0x51dfef[_0x129f7]['redoState']}},_0x43ff90=this[_0x5e3daa(0x204)]['transformMutation'](_0x4c9bd5,_0x1cc605,!0x1),_0x1b253c=this['_transformService'][_0x5e3daa(0x36c)](_0x2940fa,_0x2885f6,!0x1);if(m[_0x5e3daa(0x39d)](_0x43ff90))throw _0x43ff90[_0x5e3daa(0x17f)];if(m[_0x5e3daa(0x39d)](_0x1b253c))throw _0x1b253c['error'];_0x15064f[_0x5e3daa(0x14e)]({..._0x51dfef[_0x129f7],'undoState':_0x43ff90[_0x5e3daa(0x21f)]['params'],'redoState':_0x1b253c['m2Prime'][_0x5e3daa(0x2a9)]}),_0x4c9bd5=_0x43ff90[_0x5e3daa(0x16d)],_0x2940fa=_0x1b253c[_0x5e3daa(0x16d)];}this[_0x5e3daa(0x1c2)][_0x5e3daa(0x34f)](_0x24790c,{'history':_0x20682b,'collaboration':_0x15064f});}};J=Ft([le(0x0,a[_0x458589(0x15a)](a['Injector'])),le(0x1,m[_0x458589(0x1c7)]),le(0x2,a[_0x458589(0x15a)](b[_0x458589(0x165)]))],J);var Yt=Object[_0x458589(0x1b4)],Wt=(_0x55b5dd,_0x389a50,_0x2d5716,_0x2c3e06)=>{for(var _0x77724c=_0x2c3e06>0x1?void 0x0:_0x2c3e06?Yt(_0x389a50,_0x2d5716):_0x389a50,_0x32e7ec=_0x55b5dd['length']-0x1,_0x9c4c24;_0x32e7ec>=0x0;_0x32e7ec--)(_0x9c4c24=_0x55b5dd[_0x32e7ec])&&(_0x77724c=_0x9c4c24(_0x77724c)||_0x77724c);return _0x77724c;},Ne=(_0x41ab46,_0x28af31)=>(_0x43d6ca,_0xa722d8)=>_0x28af31(_0x43d6ca,_0xa722d8,_0x41ab46);let Z=class{constructor(_0x115dbe,_0x490536){this['_injector']=_0x115dbe,this['_transformService']=_0x490536;}[_0x458589(0x19d)](_0x54e351){const _0x3bd2c1=_0x458589;var _0x3bb801;const _0x215ef0=this['_injector'][_0x3bd2c1(0x378)](Y[_0x3bd2c1(0x30f)]),_0x59b9b4=(_0x3bb801=_0x215ef0['getDocRanges']())!=null?_0x3bb801:[];if(_0x59b9b4[_0x3bd2c1(0x2a1)]===0x0)return;const _0x193c35=_0x54e351['unitID'],_0x71792a=[{'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x193c35,'actions':null,'textRanges':_0x59b9b4}}],_0x354515=this[_0x3bd2c1(0x204)][_0x3bd2c1(0x37e)](_0x54e351,_0x71792a);if(!m['isTransformMutationsWithChangesetSuccess'](_0x354515))throw _0x354515[_0x3bd2c1(0x17f)];const _0x1052c1=_0x354515[_0x3bd2c1(0x21f)][0x0]['params']['textRanges'];Array[_0x3bd2c1(0x12f)](_0x1052c1)&&_0x1052c1['length']&&_0x215ef0[_0x3bd2c1(0x1a7)](_0x1052c1,{'unitId':_0x193c35,'subUnitId':_0x193c35},!0x1);}};Z=Wt([Ne(0x0,a[_0x458589(0x15a)](a[_0x458589(0x285)])),Ne(0x1,m[_0x458589(0x1c7)])],Z);var Vt=Object['getOwnPropertyDescriptor'],Xt=(_0x48c224,_0x19a88f,_0x243e52,_0x217113)=>{const _0x39ed10=_0x458589;for(var _0x3eb9ba=_0x217113>0x1?void 0x0:_0x217113?Vt(_0x19a88f,_0x243e52):_0x19a88f,_0x379d94=_0x48c224[_0x39ed10(0x2a1)]-0x1,_0x42d74f;_0x379d94>=0x0;_0x379d94--)(_0x42d74f=_0x48c224[_0x379d94])&&(_0x3eb9ba=_0x42d74f(_0x3eb9ba)||_0x3eb9ba);return _0x3eb9ba;},N=(_0x2976a1,_0x34d277)=>(_0x130779,_0x1dc66c)=>_0x34d277(_0x130779,_0x1dc66c,_0x2976a1);let Q=class extends a[_0x458589(0x37f)]{constructor(_0x4af0b1,_0x1b4aa8,_0x1efb4e,_0xc665bc,_0x29ae96,_0x104181,_0x57e58f,_0x51cf41){const _0x117283=_0x458589;super(),h(this,'_status$',new d[(_0x117283(0x2d0))](u[_0x117283(0x3ae)][_0x117283(0x386)])),(this['_docStateChangeManagerService']=_0x4af0b1,this[_0x117283(0x33b)]=_0x1b4aa8,this[_0x117283(0x188)]=_0x1efb4e,this['_docTransformStateCacheService']=_0xc665bc,this[_0x117283(0x29d)]=_0x29ae96,this[_0x117283(0x11f)]=_0x104181,this[_0x117283(0x2c9)]=_0x57e58f,this[_0x117283(0x1f1)]=_0x51cf41,this[_0x117283(0x233)]());}[_0x458589(0x233)](){const _0x48c38b=_0x458589;this[_0x48c38b(0x140)](this[_0x48c38b(0x33b)][_0x48c38b(0x23b)]['subscribe'](_0x238270=>{const _0x51db38=_0x48c38b,_0x1f23ff=this[_0x51db38(0x1c2)]['docStateChange$'][_0x51db38(0x273)](_0x34c679=>{const _0x520074=_0x51db38;if(_0x34c679==null)return;const {unitId:_0x39d032,redoState:_0x69b26,commandId:_0x3a1ee7}=_0x34c679;if(_0x39d032!==_0x238270['unitID'])return;const _0x7c75fe={'id':_0x3a1ee7,'type':a['CommandType'][_0x520074(0x325)],'params':{'unitId':_0x39d032,'actions':_0x69b26['actions'],'textRanges':null}};_0x238270[_0x520074(0x13c)](_0x7c75fe);});if(_0x238270['disposeWithMe'](_0x1f23ff),_0x238270 instanceof u[_0x51db38(0x366)]){const _0xacf0f8={'onTransformIME':_0x5e72c6=>this[_0x51db38(0x188)]['transformIMECache'](_0x5e72c6),'onTransformState':_0x1c4f1c=>this[_0x51db38(0x299)][_0x51db38(0x220)](_0x1c4f1c),'onTransformSelections':_0x860b6e=>this[_0x51db38(0x29d)][_0x51db38(0x19d)](_0x860b6e),'onSyncEditingCollabCursor':_0x290238=>this[_0x51db38(0x11f)][_0x51db38(0x270)](_0x290238),'onTransformRemoteChangesetByIMECache':_0x4eca9c=>this[_0x51db38(0x188)][_0x51db38(0x173)](_0x4eca9c),'onTransformRemoteChangesetByStateCache':_0x324299=>this[_0x51db38(0x299)][_0x51db38(0x173)](_0x324299)};_0x238270['addHandlerCallback'](_0xacf0f8);}}));}};Q=Xt([N(0x0,a[_0x458589(0x15a)](b[_0x458589(0x165)])),N(0x1,a[_0x458589(0x15a)](u[_0x458589(0x26c)])),N(0x2,a[_0x458589(0x15a)](z)),N(0x3,a[_0x458589(0x15a)](J)),N(0x4,a['Inject'](Z)),N(0x5,a[_0x458589(0x15a)](Ce)),N(0x6,T[_0x458589(0x1a1)]),N(0x7,a[_0x458589(0x15a)](a[_0x458589(0x17c)]))],Q);var Gt=Object[_0x458589(0x1b4)],Kt=(_0x1bdf73,_0x209260,_0x3b4b01,_0x1901cb)=>{const _0x222280=_0x458589;for(var _0xc6dbcd=_0x1901cb>0x1?void 0x0:_0x1901cb?Gt(_0x209260,_0x3b4b01):_0x209260,_0x5c32f8=_0x1bdf73[_0x222280(0x2a1)]-0x1,_0x4236f7;_0x5c32f8>=0x0;_0x5c32f8--)(_0x4236f7=_0x1bdf73[_0x5c32f8])&&(_0xc6dbcd=_0x4236f7(_0xc6dbcd)||_0xc6dbcd);return _0xc6dbcd;},_e=(_0x14536c,_0x2ae87f)=>(_0x2eed8c,_0x8e2ae5)=>_0x2ae87f(_0x2eed8c,_0x8e2ae5,_0x14536c);let ge=class extends a[_0x458589(0x37f)]{constructor(_0x4e7229,_0x4a940e,_0x570e8e){const _0x2306f6=_0x458589;super(),h(this,_0x2306f6(0x28f),new Map()),h(this,_0x2306f6(0x1ca),new Map()),h(this,'_disabled',!0x1),(this[_0x2306f6(0x2ca)]=_0x4e7229,this['_localStorageService']=_0x4a940e,this[_0x2306f6(0x289)]=_0x570e8e);}[_0x458589(0x2e7)](){const _0x1649bc=_0x458589;this[_0x1649bc(0x2c8)]=!0x0;}['enableLocalCache'](){const _0x10864d=_0x458589;this[_0x10864d(0x2c8)]=!0x1;}get[_0x458589(0x17b)](){const _0x4a5918=_0x458589;return this[_0x4a5918(0x1ca)];}['dispose'](){const _0x22619a=_0x458589;this[_0x22619a(0x1a0)]()[_0x22619a(0x310)](()=>super[_0x22619a(0x27a)]());}async['loadOfflineData'](_0x3cc3c7){const _0x4e8ec8=_0x458589;return this[_0x4e8ec8(0x2c8)]?null:this[_0x4e8ec8(0x2d2)][_0x4e8ec8(0x379)](u[_0x4e8ec8(0x370)](_0x3cc3c7));}async['saveOfflineData'](_0x20314d,_0x813e7e){const _0x41a5a7=_0x458589;return!!this[_0x41a5a7(0x2d2)][_0x41a5a7(0x395)](_0x20314d,_0x813e7e);}[_0x458589(0x195)](_0x49c163,_0x4ee5f4,_0x226841,_0x3b8871){const _0x26ea10=_0x458589,_0x1d73ee=this[_0x26ea10(0x289)]['getCurrentRevOfUnit'](_0x49c163);this[_0x26ea10(0x28f)]['set'](_0x49c163,{'unitID':_0x49c163,'type':_0x4ee5f4,'awaitingChangeset':_0x226841,'mutations':_0x3b8871,'rev':_0x1d73ee}),this[_0x26ea10(0x1ca)][_0x26ea10(0x29b)](_0x49c163)||this[_0x26ea10(0x131)](_0x49c163);}['_scheduleSaving'](_0x208274){const _0x5aedb1=_0x458589,_0x6de5bb=this[_0x5aedb1(0x2a3)]();_0x6de5bb===0x0?this[_0x5aedb1(0x1a4)](_0x208274):this[_0x5aedb1(0x1ca)][_0x5aedb1(0x1a6)](_0x208274,setTimeout(()=>this[_0x5aedb1(0x1a4)](_0x208274),_0x6de5bb));}['_getSaveTimeout'](){const _0x555d22=_0x458589;var _0x47be6e;return(_0x47be6e=this[_0x555d22(0x2ca)][_0x555d22(0x266)](u[_0x555d22(0x1e0)]))!=null?_0x47be6e:u[_0x555d22(0x381)];}['_saveCache'](_0x177970){const _0x55301d=_0x458589,_0x54febf=this['_saveTaskMap'][_0x55301d(0x378)](_0x177970);return _0x54febf!==void 0x0&&window[_0x55301d(0x32e)](_0x54febf),this['_localStorageService'][_0x55301d(0x395)](u[_0x55301d(0x370)](_0x177970),this[_0x55301d(0x28f)][_0x55301d(0x378)](_0x177970))[_0x55301d(0x310)](()=>this[_0x55301d(0x1ca)]['delete'](_0x177970));}async[_0x458589(0x1a0)](){const _0x5d1948=_0x458589,_0x4a3c70=[];this[_0x5d1948(0x1ca)][_0x5d1948(0x321)]((_0x32089f,_0x26bd60)=>{const _0x17fd0c=_0x5d1948;window['clearTimeout'](_0x32089f),_0x4a3c70[_0x17fd0c(0x294)](this['_saveCache'](_0x26bd60)[_0x17fd0c(0x310)](()=>{const _0x4f852f=_0x17fd0c;this['_saveTaskMap'][_0x4f852f(0x1e4)](_0x26bd60);}));}),await Promise['all'](_0x4a3c70);}};ge=Kt([_e(0x0,a[_0x458589(0x276)]),_e(0x1,a['ILocalStorageService']),_e(0x2,a['Inject'](m['RevisionService']))],ge);class je extends a[_0x458589(0x315)]{constructor(){const _0x3560f3=_0x458589;super(),h(this,_0x3560f3(0x25a)),this[_0x3560f3(0x25a)]=d[_0x3560f3(0x19f)](window,_0x3560f3(0x1be))[_0x3560f3(0x231)](d[_0x3560f3(0x1f3)](this[_0x3560f3(0x2d6)]),d['shareReplay'](0x1),d[_0x3560f3(0x25d)](void 0x0));}[_0x458589(0x2fc)](_0x70b5d8,_0x1eea8c,_0x154cc2=!0x1){const _0x3bf3b6=_0x458589,_0x1f9933=new URL(window['location'][_0x3bf3b6(0x303)]);_0x1f9933[_0x3bf3b6(0x320)][_0x3bf3b6(0x1a6)](_0x70b5d8,_0x1eea8c),_0x154cc2?window[_0x3bf3b6(0x13f)]['replaceState']('','',_0x1f9933[_0x3bf3b6(0x19e)]()):window[_0x3bf3b6(0x13f)][_0x3bf3b6(0x252)]('','',_0x1f9933[_0x3bf3b6(0x19e)]());}[_0x458589(0x1a2)](_0x27e25d,_0x57cf98=!0x1){const _0x5a72cc=_0x458589,_0xb12688=new URL(window[_0x5a72cc(0x2cf)][_0x5a72cc(0x303)]);_0xb12688[_0x5a72cc(0x320)]['delete'](_0x27e25d),_0x57cf98?window[_0x5a72cc(0x13f)][_0x5a72cc(0x11b)]('','',_0xb12688[_0x5a72cc(0x19e)]()):window[_0x5a72cc(0x13f)][_0x5a72cc(0x252)]('','',_0xb12688['toString']());}[_0x458589(0x39e)](_0x23f0ed){const _0x33b01c=_0x458589;var _0x196b52;return(_0x196b52=new URL(window[_0x33b01c(0x2cf)][_0x33b01c(0x303)])['searchParams']['get'](_0x23f0ed))!=null?_0x196b52:void 0x0;}}var qt=Object[_0x458589(0x2ed)],zt=Object[_0x458589(0x1b4)],Jt=(_0x4a0a22,_0x5448ce,_0x52cad9)=>_0x5448ce in _0x4a0a22?qt(_0x4a0a22,_0x5448ce,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x52cad9}):_0x4a0a22[_0x5448ce]=_0x52cad9,Zt=(_0x31a54e,_0x3f1ed6,_0x34095b,_0x5bc044)=>{const _0x517cd3=_0x458589;for(var _0x2a5374=_0x5bc044>0x1?void 0x0:_0x5bc044?zt(_0x3f1ed6,_0x34095b):_0x3f1ed6,_0x3789b4=_0x31a54e[_0x517cd3(0x2a1)]-0x1,_0x32884b;_0x3789b4>=0x0;_0x3789b4--)(_0x32884b=_0x31a54e[_0x3789b4])&&(_0x2a5374=_0x32884b(_0x2a5374)||_0x2a5374);return _0x2a5374;},he=(_0x3e312f,_0x203923)=>(_0x4a3056,_0xd6bbb0)=>_0x203923(_0x4a3056,_0xd6bbb0,_0x3e312f),Qt=(_0x50ab40,_0x1a38c6,_0x4c3476)=>Jt(_0x50ab40,_0x1a38c6+'',_0x4c3476);const es=_0x458589(0x1f5);exports[_0x458589(0x12c)]=class extends a[_0x458589(0x1a9)]{constructor(_0x3227e4=Ue,_0x2e7fcc,_0x99da60,_0x36c08f){const _0x27af05=_0x458589;super(),this['_config']=_0x3227e4,this[_0x27af05(0x14f)]=_0x2e7fcc,this[_0x27af05(0x30a)]=_0x99da60,this[_0x27af05(0x2ca)]=_0x36c08f;const {..._0x6c9d93}=a[_0x27af05(0x304)]({},Ue,this['_config']);this[_0x27af05(0x2ca)][_0x27af05(0x2bb)]($t,_0x6c9d93);}['onStarting'](){const _0x715ea0=_0x458589;this[_0x715ea0(0x246)](),this['_initDependencies']();}[_0x458589(0x1d3)](){const _0x48212b=_0x458589;this[_0x48212b(0x34a)]();}[_0x458589(0x246)](){const _0x59ce65=_0x458589;var _0x24ded4;const _0x778429=[[me],[Z],[z],[J],[Ce],[be,{'useClass':je}],[G[_0x59ce65(0x248)],{'useClass':G['WebSocketService']}],[u['ILocalCacheService'],{'useClass':ge}],[exports[_0x59ce65(0x2cd)]],[Q],[q],[x],[de],[exports[_0x59ce65(0x297)]]];a[_0x59ce65(0x29e)](this['_injector'],a[_0x59ce65(0x2fb)](_0x778429,(_0x24ded4=this[_0x59ce65(0x1e3)])==null?void 0x0:_0x24ded4[_0x59ce65(0x15e)]));}[_0x458589(0x34a)](){const _0x3011b2=_0x458589;this[_0x3011b2(0x140)](this[_0x3011b2(0x14f)][_0x3011b2(0x1c3)](a[_0x3011b2(0x2b9)][_0x3011b2(0x205)],[Ie])),this['disposeWithMe'](this['_renderManagerService']['registerRenderModule'](a[_0x3011b2(0x2b9)][_0x3011b2(0x161)],[ve]));}[_0x458589(0x309)](){const _0x33b576=_0x458589;a[_0x33b576(0x26e)](this[_0x33b576(0x30a)],[[x],[exports[_0x33b576(0x2cd)]],[Q],[q],[exports['CollaborationDataLoaderController']]]);}},Qt(exports[_0x458589(0x12c)],_0x458589(0x368),es),exports[_0x458589(0x12c)]=Zt([a[_0x458589(0x255)](u[_0x458589(0x1ee)]),he(0x1,p['IRenderManagerService']),he(0x2,a[_0x458589(0x15a)](a[_0x458589(0x285)])),he(0x3,a[_0x458589(0x276)])],exports['UniverCollaborationClientUIPlugin']);var ts=Object[_0x458589(0x1b4)],ss=(_0x3fd978,_0x3992ca,_0x46c5b1,_0x31f4df)=>{const _0x5a9953=_0x458589;for(var _0x49e3f3=_0x31f4df>0x1?void 0x0:_0x31f4df?ts(_0x3992ca,_0x46c5b1):_0x3992ca,_0x2bc818=_0x3fd978[_0x5a9953(0x2a1)]-0x1,_0x24b3c2;_0x2bc818>=0x0;_0x2bc818--)(_0x24b3c2=_0x3fd978[_0x2bc818])&&(_0x49e3f3=_0x24b3c2(_0x49e3f3)||_0x49e3f3);return _0x49e3f3;},F=(_0x37508a,_0x1f1bef)=>(_0x2ec682,_0x1fa66a)=>_0x1f1bef(_0x2ec682,_0x1fa66a,_0x37508a);exports[_0x458589(0x18c)]=class extends u[_0x458589(0x198)]{constructor(_0x530150,_0x190229,_0x34a93e,_0x452c54,_0x1b38c2){super(_0x530150,_0x190229,_0x34a93e,_0x452c54,_0x1b38c2);}async[_0x458589(0x20b)](_0x19af34){const _0x3991da=_0x458589,_0x4cb602=await this['_getSessionTicket'](),_0x499bf4=this[_0x3991da(0x152)](_0x19af34,_0x4cb602);return this[_0x3991da(0x234)](_0x499bf4);}['_createSocketURL'](_0x1b25b5,_0xe469fa){const _0xc020e3=_0x458589,_0xd0bda0=typeof window>'u'?new URL(_0x1b25b5):new URL(_0x1b25b5,window['location'][_0xc020e3(0x139)]);_0xd0bda0[_0xc020e3(0x320)][_0xc020e3(0x1a6)](_0xc020e3(0x184),_0xe469fa);const _0x4552b4=typeof window>'u'?new URLSearchParams():new URLSearchParams(window[_0xc020e3(0x2cf)]['search']);return _0x4552b4[_0xc020e3(0x378)]('runId')&&_0xd0bda0[_0xc020e3(0x320)][_0xc020e3(0x1a6)](_0xc020e3(0x354),_0x4552b4['get'](_0xc020e3(0x354))),_0xd0bda0[_0xc020e3(0x19e)]();}async['_getSessionTicket'](){const _0x1132e7=_0x458589;var _0x4c3c45,_0x546476,_0x7d48d;const _0x2f128a=this['_configService']['getConfig'](u[_0x1132e7(0x337)]),_0x4ef3e8=(_0x4c3c45=_0x2f128a==null?void 0x0:_0x2f128a[_0x1132e7(0x364)])!=null?_0x4c3c45:u[_0x1132e7(0x19b)];return(_0x7d48d=(_0x546476=(await this[_0x1132e7(0x1f9)][_0x1132e7(0x378)](_0x4ef3e8,{'headers':{'Content-Type':_0x1132e7(0x387)}}))[_0x1132e7(0x2fe)])==null?void 0x0:_0x546476[_0x1132e7(0x1bf)])!=null?_0x7d48d:'';}},exports[_0x458589(0x18c)]=ss([F(0x0,a[_0x458589(0x15a)](a[_0x458589(0x285)])),F(0x1,a[_0x458589(0x15a)](G[_0x458589(0x26d)])),F(0x2,a[_0x458589(0x276)]),F(0x3,a[_0x458589(0x31e)]),F(0x4,m[_0x458589(0x151)])],exports[_0x458589(0x18c)]);const Me=0x7530,Le=_0x458589(0x124);class is extends a[_0x458589(0x37f)]{constructor(){const _0x147887=_0x458589;super(),h(this,_0x147887(0x190),a['generateRandomId']()),h(this,_0x147887(0x391),new Set()),h(this,_0x147887(0x335),new Map()),h(this,_0x147887(0x141),null),h(this,_0x147887(0x30c),new Map()),h(this,_0x147887(0x350),new Map()),this['_init']();}[_0x458589(0x27a)](){const _0x637c94=_0x458589;super[_0x637c94(0x27a)](),this[_0x637c94(0x30c)]['forEach']((_0x4f8c22,_0xffd510)=>this[_0x637c94(0x284)](_0xffd510)),this[_0x637c94(0x141)]&&window['clearInterval'](this[_0x637c94(0x141)]);}[_0x458589(0x37b)](_0xab2c4f){const _0xfe4d21=_0x458589;return this['_ensureSubject'](_0xab2c4f)[_0xfe4d21(0x231)](d[_0xfe4d21(0x2c2)]());}[_0x458589(0x227)](_0x2e3a61){const _0x405c0e=_0x458589;this[_0x405c0e(0x391)][_0x405c0e(0x2ff)]===0x0&&this[_0x405c0e(0x25b)](),this[_0x405c0e(0x391)]['add'](_0x2e3a61),this['_send']({'type':0x0,'memberID':this[_0x405c0e(0x190)],'unitIDs':[_0x2e3a61],'isForwarded':!0x1});}[_0x458589(0x360)](_0x2bf67e){const _0x1586a6=_0x458589;this[_0x1586a6(0x391)]['delete'](_0x2bf67e),this[_0x1586a6(0x391)][_0x1586a6(0x2ff)]===0x0&&this['_heartbeatTimer']&&window[_0x1586a6(0x1f8)](this[_0x1586a6(0x141)]);}['_init'](){const _0x91ac16=_0x458589;this[_0x91ac16(0x140)](a[_0x91ac16(0x153)](d[_0x91ac16(0x19f)](window,_0x91ac16(0x1f7))[_0x91ac16(0x273)](_0x5c9174=>{const _0x178583=_0x91ac16;if(_0x5c9174[_0x178583(0x2b3)]!==Le||!_0x5c9174['newValue'])return;const _0x13d5c1=JSON[_0x178583(0x2cc)](_0x5c9174['newValue']);this[_0x178583(0x17a)](_0x13d5c1);}))),window['addEventListener']('unload',()=>this[_0x91ac16(0x3aa)]({'type':0x1,'memberID':this[_0x91ac16(0x190)],'unitIDs':Array['from'](this[_0x91ac16(0x391)])}));}[_0x458589(0x17a)](_0x494823){const _0x35645a=_0x458589;switch(_0x494823[_0x35645a(0x22f)]){case 0x0:this[_0x35645a(0x135)](_0x494823);break;case 0x1:this[_0x35645a(0x31d)](_0x494823);break;case 0x2:this[_0x35645a(0x125)](_0x494823);break;}}[_0x458589(0x135)](_0x1bf463){const _0x43301a=_0x458589,{unitIDs:_0x28c35d,memberID:_0x33c21b,isForwarded:_0x4c8527}=_0x1bf463;_0x28c35d[_0x43301a(0x321)](_0x251842=>{const _0x4d9f1d=_0x43301a;if(!_0x4c8527&&this['_unitOnClients'][_0x4d9f1d(0x29b)](_0x251842)&&this[_0x4d9f1d(0x33c)](_0x251842)['next'](u[_0x4d9f1d(0x295)][_0x4d9f1d(0x324)]),!this['_unitOnClients'][_0x4d9f1d(0x29b)](_0x251842)||!this[_0x4d9f1d(0x335)][_0x4d9f1d(0x378)](_0x251842)[_0x4d9f1d(0x29b)](_0x33c21b)){const _0x169232=this[_0x4d9f1d(0x335)][_0x4d9f1d(0x378)](_0x251842)||new Set();_0x169232[_0x4d9f1d(0x27f)](_0x33c21b),this[_0x4d9f1d(0x335)][_0x4d9f1d(0x1a6)](_0x251842,_0x169232),this[_0x4d9f1d(0x170)](_0x33c21b);}}),_0x4c8527||this[_0x43301a(0x3aa)]({'type':0x0,'memberID':this[_0x43301a(0x190)],'unitIDs':[...this[_0x43301a(0x391)]],'isForwarded':!0x0});}[_0x458589(0x170)](_0x50151b){const _0x2d57f1=_0x458589;this[_0x2d57f1(0x284)](_0x50151b);const _0x10ee71=window['setTimeout'](()=>{const _0x473810=_0x2d57f1;this[_0x473810(0x335)][_0x473810(0x321)](_0x102191=>{const _0x1cae46=_0x473810;_0x102191[_0x1cae46(0x1e4)](_0x50151b);});},Me*0x2);this[_0x2d57f1(0x30c)][_0x2d57f1(0x1a6)](_0x50151b,_0x10ee71);}[_0x458589(0x284)](_0x8b53d3){const _0x5b40fc=_0x458589;if(this['_clearOtherTimers']['has'](_0x8b53d3)){const _0x23a685=this[_0x5b40fc(0x30c)][_0x5b40fc(0x378)](_0x8b53d3);_0x23a685&&window[_0x5b40fc(0x32e)](_0x23a685),this['_clearOtherTimers'][_0x5b40fc(0x1a6)](_0x8b53d3,null);}}[_0x458589(0x31d)](_0x32b570){const _0x354497=_0x458589,{memberID:_0x2570eb,unitIDs:_0x64808e}=_0x32b570;_0x64808e[_0x354497(0x321)](_0x272663=>{const _0x5b19b2=_0x354497;var _0xffb72d;const _0x4bd514=this['_unitOnClients'][_0x5b19b2(0x378)](_0x272663);_0x4bd514&&(_0x4bd514[_0x5b19b2(0x1e4)](_0x2570eb),(_0xffb72d=this[_0x5b19b2(0x33c)](_0x272663))==null||_0xffb72d[_0x5b19b2(0x2a7)](_0x4bd514[_0x5b19b2(0x2ff)]===0x0?u['UnitStatus'][_0x5b19b2(0x34d)]:u[_0x5b19b2(0x295)][_0x5b19b2(0x324)]));}),this['_removeClearOtherTimer'](_0x2570eb);}[_0x458589(0x125)](_0x40bb8a){const _0x3d07bc=_0x458589;this['_scheduleClearOtherTimer'](_0x40bb8a[_0x3d07bc(0x2d4)]);}[_0x458589(0x3aa)](_0x43aa7a){const _0x19a523=_0x458589;localStorage['setItem'](Le,JSON[_0x19a523(0x138)](_0x43aa7a));}['_scheduleHeartbeat'](){const _0x296812=_0x458589;this[_0x296812(0x141)]=window[_0x296812(0x2d8)](()=>{const _0x1312b5=_0x296812;this[_0x1312b5(0x3aa)]({'type':0x2,'memberID':this[_0x1312b5(0x190)]});},Me);}['_ensureSubject'](_0x5be491){const _0x1600c9=_0x458589;return this[_0x1600c9(0x350)][_0x1600c9(0x29b)](_0x5be491)||this['_unitStatus']['set'](_0x5be491,new d['BehaviorSubject'](u[_0x1600c9(0x295)][_0x1600c9(0x34d)])),this[_0x1600c9(0x350)]['get'](_0x5be491);}}var Be=(_0x534489=>(_0x534489[_0x534489[_0x458589(0x330)]=0x0]=_0x458589(0x330),_0x534489[_0x534489['OK']=0x1]='OK',_0x534489[_0x534489[_0x458589(0x38c)]=0x2]=_0x458589(0x38c),_0x534489[_0x534489['PERMISSION_DENIED']=0x3]=_0x458589(0x347),_0x534489[_0x534489['NOT_FOUND']=0x4]=_0x458589(0x12b),_0x534489[_0x534489[_0x458589(0x167)]=0x5]=_0x458589(0x167),_0x534489[_0x534489[_0x458589(0x376)]=0x6]=_0x458589(0x376),_0x534489[_0x534489[_0x458589(0x1c9)]=0x7]=_0x458589(0x1c9),_0x534489[_0x534489['TOO_MANY_REQUESTS']=0x8]=_0x458589(0x1de),_0x534489[_0x534489[_0x458589(0x2b8)]=0x9]=_0x458589(0x2b8),_0x534489[_0x534489[_0x458589(0x2e1)]=0xa]='LOGIN_FAILED',_0x534489[_0x534489[_0x458589(0x3a5)]=0x1389]='CHANGESET_REVISION_CONFILICT',_0x534489[_0x534489[_0x458589(0x179)]=0x1771]=_0x458589(0x179),_0x534489[_0x534489[_0x458589(0x23c)]=0x1772]=_0x458589(0x23c),_0x534489[_0x534489[_0x458589(0x397)]=0x1773]=_0x458589(0x397),_0x534489[_0x534489['APPLY_REJECT']=0x1b59]=_0x458589(0x129),_0x534489[_0x534489[_0x458589(0x2aa)]=0x1b5a]=_0x458589(0x2aa),_0x534489[_0x534489[_0x458589(0x146)]=0x1b5b]=_0x458589(0x146),_0x534489[_0x534489[_0x458589(0x2be)]=0x1b5c]=_0x458589(0x2be),_0x534489[_0x534489['APPLY_DUPLICATED']=0x1b5d]=_0x458589(0x177),_0x534489[_0x534489[_0x458589(0x14d)]=0x1f41]=_0x458589(0x14d),_0x534489[_0x534489[_0x458589(0x15b)]=0x2329]=_0x458589(0x15b),_0x534489[_0x534489[_0x458589(0x223)]=0x232a]=_0x458589(0x223),_0x534489[_0x534489[_0x458589(0x1e7)]=0x232b]=_0x458589(0x1e7),_0x534489[_0x534489[_0x458589(0x1aa)]=0x232c]=_0x458589(0x1aa),_0x534489[_0x534489['LICENSE_DISTRO_REJECTED']=0x232d]='LICENSE_DISTRO_REJECTED',_0x534489[_0x534489[_0x458589(0x16c)]=0x2711]=_0x458589(0x16c),_0x534489[_0x534489[_0x458589(0x265)]=0x2712]=_0x458589(0x265),_0x534489[_0x534489[_0x458589(0x22d)]=0x2713]=_0x458589(0x22d),_0x534489[_0x534489['YUUMI_SUBSCRIPTION_NOT_FOUND']=0x2714]=_0x458589(0x2c3),_0x534489[_0x534489[_0x458589(0x2b6)]=0x271a]=_0x458589(0x2b6),_0x534489[_0x534489[_0x458589(0x348)]=0x271b]=_0x458589(0x348),_0x534489[_0x534489[_0x458589(0x1ba)]=0x271c]='YUUMI_TABLE_NOT_FOUND_IN_UNIT',_0x534489[_0x534489['YUUMI_ALL_TABLES_IS_INVALID']=0x271d]=_0x458589(0x263),_0x534489[_0x534489[_0x458589(0x1af)]=0x271e]=_0x458589(0x1af),_0x534489[_0x534489[_0x458589(0x218)]=0x271f]=_0x458589(0x218),_0x534489[_0x534489[_0x458589(0x27c)]=0x2af9]=_0x458589(0x27c),_0x534489[_0x534489[_0x458589(0x147)]=0x2ee1]='INVITE_CODE_HAS_BEEN_UES',_0x534489[_0x534489[_0x458589(0x26f)]=0x2ee2]=_0x458589(0x26f),_0x534489[_0x534489[_0x458589(0x282)]=0x2ee3]=_0x458589(0x282),_0x534489[_0x534489[_0x458589(0x2cb)]=0x2ee4]=_0x458589(0x2cb),_0x534489[_0x534489[_0x458589(0x23e)]=0x2ee5]='INVITE_CODE_ALREADY_BOUND',_0x534489[_0x534489[_0x458589(0x39a)]=0x32c9]=_0x458589(0x39a),_0x534489[_0x534489[_0x458589(0x286)]=0x32ca]=_0x458589(0x286),_0x534489[_0x534489[_0x458589(0x219)]=0x32cb]=_0x458589(0x219),_0x534489[_0x534489['UNRECOGNIZED']=-0x1]=_0x458589(0x242),_0x534489))(Be||{}),ns=Object[_0x458589(0x1b4)],rs=(_0x4834dc,_0x528c25,_0x3adb58,_0x49d344)=>{const _0x127edc=_0x458589;for(var _0x3ca354=_0x49d344>0x1?void 0x0:_0x49d344?ns(_0x528c25,_0x3adb58):_0x528c25,_0x33fca6=_0x4834dc[_0x127edc(0x2a1)]-0x1,_0x718d47;_0x33fca6>=0x0;_0x33fca6--)(_0x718d47=_0x4834dc[_0x33fca6])&&(_0x3ca354=_0x718d47(_0x3ca354)||_0x3ca354);return _0x3ca354;},ue=(_0x50bbbe,_0xef9d12)=>(_0x170b41,_0x5e4104)=>_0xef9d12(_0x170b41,_0x5e4104,_0x50bbbe);exports[_0x458589(0x171)]=class extends a['Disposable']{constructor(_0x324285,_0xfeae7f,_0x174f98){const _0x31ce35=_0x458589;super(),this[_0x31ce35(0x322)]=_0x324285,this[_0x31ce35(0x1f9)]=_0xfeae7f,this[_0x31ce35(0x2ca)]=_0x174f98;}async[_0x458589(0x2f0)](_0x29c992,_0x2a7c1a,_0x4ac287,..._0x1246ed){const _0x11bafc=_0x458589;var _0x14ce41,_0x2f4c18,_0x5ccb06,_0xa0a950;const _0x322ef3=this[_0x11bafc(0x322)][_0x11bafc(0x13b)]();if(!_0x322ef3)throw new Error(_0x11bafc(0x221));const _0x59099d=((_0x14ce41=this[_0x11bafc(0x2ca)][_0x11bafc(0x266)](u[_0x11bafc(0x317)]))!=null?_0x14ce41:u['DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT'])+'/'+_0x29c992+_0x11bafc(0x181)+_0x2a7c1a,_0x5885ff=new URL(window[_0x11bafc(0x2cf)][_0x11bafc(0x303)]),_0x7f20c2={'scriptId':_0x29c992,'runId':(_0x2f4c18=_0x5885ff['searchParams'][_0x11bafc(0x378)](_0x11bafc(0x354)))!=null?_0x2f4c18:'','function':_0x2a7c1a,'unitId':_0x322ef3['getUnitId'](),'argsOfFunction':JSON[_0x11bafc(0x138)](_0x1246ed),'invokeId':(_0x5ccb06=_0x4ac287['invokeId'])!=null?_0x5ccb06:'','executionId':(_0xa0a950=_0x4ac287[_0x11bafc(0x2de)])!=null?_0xa0a950:''};try{const _0x461f02=await this['_httpService']['post'](_0x59099d,{'body':_0x7f20c2});return _0x461f02['body']['error']&&_0x461f02['body'][_0x11bafc(0x17f)]['code']!==Be['OK']?_0x11bafc(0x2e4):_0x461f02['body'][_0x11bafc(0x35c)];}catch{return _0x11bafc(0x2e4);}}},exports[_0x458589(0x171)]=rs([ue(0x0,a['IUniverInstanceService']),ue(0x1,a[_0x458589(0x15a)](G[_0x458589(0x26d)])),ue(0x2,a[_0x458589(0x276)])],exports[_0x458589(0x171)]),exports[_0x458589(0x26a)]=xe,exports[_0x458589(0x253)]=be,exports[_0x458589(0x150)]=Pe,exports[_0x458589(0x158)]=is,exports[_0x458589(0x385)]=je;
|