@univerjs-pro/collaboration-client-ui 0.8.0-beta.0 → 0.8.0-nightly.202505261607
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/cjs/facade.js +1 -1
- package/lib/cjs/index.js +1 -1
- package/lib/cjs/locale/en-US.js +1 -1
- package/lib/cjs/locale/fa-IR.js +1 -1
- package/lib/cjs/locale/fr-FR.js +1 -1
- package/lib/cjs/locale/ru-RU.js +1 -1
- package/lib/cjs/locale/vi-VN.js +1 -1
- package/lib/cjs/locale/zh-CN.js +1 -1
- package/lib/cjs/locale/zh-TW.js +1 -1
- package/lib/es/facade.js +1 -1
- package/lib/es/index.js +1 -1
- package/lib/es/locale/en-US.js +1 -1
- package/lib/es/locale/fa-IR.js +1 -1
- package/lib/es/locale/fr-FR.js +1 -1
- package/lib/es/locale/ru-RU.js +1 -1
- package/lib/es/locale/vi-VN.js +1 -1
- package/lib/es/locale/zh-CN.js +1 -1
- package/lib/es/locale/zh-TW.js +1 -1
- package/lib/facade.js +1 -1
- package/lib/index.js +1 -1
- package/lib/locale/en-US.js +1 -1
- package/lib/locale/fa-IR.js +1 -1
- package/lib/locale/fr-FR.js +1 -1
- package/lib/locale/ru-RU.js +1 -1
- package/lib/locale/vi-VN.js +1 -1
- package/lib/locale/zh-CN.js +1 -1
- package/lib/locale/zh-TW.js +1 -1
- package/lib/umd/facade.js +1 -1
- package/lib/umd/index.js +1 -1
- package/lib/umd/locale/en-US.js +1 -1
- package/lib/umd/locale/fa-IR.js +1 -1
- package/lib/umd/locale/fr-FR.js +1 -1
- package/lib/umd/locale/ru-RU.js +1 -1
- package/lib/umd/locale/vi-VN.js +1 -1
- package/lib/umd/locale/zh-CN.js +1 -1
- package/lib/umd/locale/zh-TW.js +1 -1
- package/package.json +15 -15
package/lib/cjs/facade.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';function _0x3758(){const _0x515cb1=['@univerjs/core/facade','runOnServer','10316016IBWqlm','get','4310400svcHCs','RemoteUniscriptService','1694118VpnvZW','extend','3404304uzGIsD','119bkKKCK','6654784KBnxrL','@univerjs-pro/collaboration-client-ui','1380152qYlAcn','812650GTXZkv'];_0x3758=function(){return _0x515cb1;};return _0x3758();}const _0x365d8f=_0xe3e9;function _0xe3e9(_0x199be4,_0x30e995){const _0x37583f=_0x3758();return _0xe3e9=function(_0xe3e9ae,_0x53e97e){_0xe3e9ae=_0xe3e9ae-0x16c;let _0x267621=_0x37583f[_0xe3e9ae];return _0x267621;},_0xe3e9(_0x199be4,_0x30e995);}(function(_0x4957ee,_0x54ab3c){const _0xe92688=_0xe3e9,_0x2f60f1=_0x4957ee();while(!![]){try{const _0x41766f=parseInt(_0xe92688(0x16e))/0x1+-parseInt(_0xe92688(0x175))/0x2+-parseInt(_0xe92688(0x177))/0x3+-parseInt(_0xe92688(0x179))/0x4+-parseInt(_0xe92688(0x173))/0x5+parseInt(_0xe92688(0x171))/0x6+parseInt(_0xe92688(0x178))/0x7*(parseInt(_0xe92688(0x16d))/0x8);if(_0x41766f===_0x54ab3c)break;else _0x2f60f1['push'](_0x2f60f1['shift']());}catch(_0x2a4cbb){_0x2f60f1['push'](_0x2f60f1['shift']());}}}(_0x3758,0xe9b16));const t=require(_0x365d8f(0x16c)),e=require(_0x365d8f(0x16f));class c extends e['FUniver']{[_0x365d8f(0x170)](_0x1c70c7,_0x3f3abc,..._0x209313){const _0x7668d6=_0x365d8f;return this['_injector'][_0x7668d6(0x172)](t[_0x7668d6(0x174)])[_0x7668d6(0x170)](_0x1c70c7,_0x3f3abc,{},..._0x209313);}}e['FUniver'][_0x365d8f(0x176)](c);
|
package/lib/cjs/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const _0x570aba=_0x1acb;(function(_0x37ed1,_0x112b33){const _0x572f7e=_0x1acb,_0x20b642=_0x37ed1();while(!![]){try{const _0x3c0d4e=-parseInt(_0x572f7e(0x34f))/0x1*(-parseInt(_0x572f7e(0x287))/0x2)+-parseInt(_0x572f7e(0x3d3))/0x3*(-parseInt(_0x572f7e(0x2ba))/0x4)+-parseInt(_0x572f7e(0x284))/0x5*(-parseInt(_0x572f7e(0x31d))/0x6)+-parseInt(_0x572f7e(0x1ff))/0x7+-parseInt(_0x572f7e(0x3a0))/0x8*(-parseInt(_0x572f7e(0x225))/0x9)+parseInt(_0x572f7e(0x267))/0xa+-parseInt(_0x572f7e(0x19f))/0xb;if(_0x3c0d4e===_0x112b33)break;else _0x20b642['push'](_0x20b642['shift']());}catch(_0x121519){_0x20b642['push'](_0x20b642['shift']());}}}(_0x25b5,0x961a7));var Ve=Object['defineProperty'],Xe=(_0x361a9b,_0x53a224,_0x228450)=>_0x53a224 in _0x361a9b?Ve(_0x361a9b,_0x53a224,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x228450}):_0x361a9b[_0x53a224]=_0x228450,h=(_0x3ee9b2,_0x50cb1a,_0x2aabf)=>Xe(_0x3ee9b2,typeof _0x50cb1a!='symbol'?_0x50cb1a+'':_0x50cb1a,_0x2aabf);Object['defineProperty'](exports,Symbol[_0x570aba(0x2c5)],{'value':_0x570aba(0x2a0)});const u=require(_0x570aba(0x217)),a=require(_0x570aba(0x3a7)),p=require('@univerjs/engine-render'),G=require(_0x570aba(0x19d)),b=require(_0x570aba(0x3bc)),Ge=require('@univerjs/drawing'),d=require(_0x570aba(0x242)),Y=require(_0x570aba(0x251)),m=require(_0x570aba(0x295)),Ee=require(_0x570aba(0x3ac)),g=require(_0x570aba(0x3ce)),$=require(_0x570aba(0x3ba)),X=require(_0x570aba(0x228)),P=require('react/jsx-runtime'),T=require(_0x570aba(0x24c)),D=require('@univerjs/design'),M=require(_0x570aba(0x1ea)),Ke=require(_0x570aba(0x240));var qe=Object[_0x570aba(0x31c)],ze=(_0x3d1df0,_0x11d486,_0x22c8dc,_0x42429d)=>{const _0x4ae200=_0x570aba;for(var _0x5ba949=_0x42429d>0x1?void 0x0:_0x42429d?qe(_0x11d486,_0x22c8dc):_0x11d486,_0x509180=_0x3d1df0[_0x4ae200(0x214)]-0x1,_0x44c64f;_0x509180>=0x0;_0x509180--)(_0x44c64f=_0x3d1df0[_0x509180])&&(_0x5ba949=_0x44c64f(_0x5ba949)||_0x5ba949);return _0x5ba949;},Te=(_0x258a02,_0x3e0797)=>(_0x4881e5,_0x57ec2c)=>_0x3e0797(_0x4881e5,_0x57ec2c,_0x258a02);let de=class extends a[_0x570aba(0x338)]{constructor(_0x318c76,_0xe3f64a){const _0x1061c9=_0x570aba;super(),this[_0x1061c9(0x374)]=_0x318c76,this[_0x1061c9(0x2db)]=_0xe3f64a,this[_0x1061c9(0x31e)]();}['_init'](){const _0xae34d2=_0x570aba,_0x2be8ef=this;this[_0xae34d2(0x2cc)](this['_docClipboardService']['addClipboardHook']({'onBeforePasteImage':async _0x1ed6fb=>{const _0x3f1b47=_0xae34d2,_0x322e85=await _0x2be8ef['_imageIoService'][_0x3f1b47(0x370)](_0x1ed6fb);return _0x322e85?{'source':_0x322e85[_0x3f1b47(0x28e)],'imageSourceType':_0x322e85[_0x3f1b47(0x237)]}:null;}}));}};de=ze([Te(0x0,b[_0x570aba(0x3d1)]),Te(0x1,Ge[_0x570aba(0x2d4)])],de);const Oe=['purple.300','jiqing.500',_0x570aba(0x2c7),_0x570aba(0x2d5),_0x570aba(0x1ef),_0x570aba(0x3e2)];class me extends a[_0x570aba(0x283)]{constructor(){const _0x2473f9=_0x570aba;super(...arguments),h(this,_0x2473f9(0x333),new Map()),h(this,'_colorIndex',0x0);}[_0x570aba(0x292)](_0x45b8e5){const _0xe7d052=_0x570aba;if(this[_0xe7d052(0x333)][_0xe7d052(0x227)](_0x45b8e5))return this[_0xe7d052(0x333)][_0xe7d052(0x398)](_0x45b8e5);const _0x121452=Oe[this[_0xe7d052(0x362)]];return this[_0xe7d052(0x362)]=(this[_0xe7d052(0x362)]+0x1)%Oe[_0xe7d052(0x214)],this[_0xe7d052(0x333)][_0xe7d052(0x1a2)](_0x45b8e5,_0x121452),_0x121452;}}function Pe(_0x59d93a){const _0x483645=_0x570aba;let _0x1a9c9c='';for(const _0xeea57f of _0x59d93a){const {startOffset:_0x45dacb,endOffset:_0x12c2e3,isActive:_0x16f83e,rangeType:_0x15c0bc,segmentId:_0x51b9da,segmentPage:_0x4ccb1c}=_0xeea57f;_0x1a9c9c[_0x483645(0x214)]&&(_0x1a9c9c+=','),_0x1a9c9c+=_0x45dacb+':'+_0x12c2e3+':'+(_0x16f83e?'1':'0')+':'+_0x15c0bc+':'+_0x51b9da+':'+_0x4ccb1c;}return _0x1a9c9c;}function Je(_0x4928cd){const _0x6beec8=_0x570aba,_0x592af0=_0x4928cd[_0x6beec8(0x38c)](','),_0x2a12a7=[];for(const _0x69f21e of _0x592af0){const [_0x464283,_0x5f0ec0,_0x5d8100,_0x2149e7,_0x1b791c,_0x2a5243]=_0x69f21e[_0x6beec8(0x38c)](':');_0x2a12a7[_0x6beec8(0x293)]({'startOffset':Number(_0x464283),'endOffset':Number(_0x5f0ec0),'collapsed':_0x464283===_0x5f0ec0,'isActive':_0x5d8100==='1','rangeType':_0x2149e7===a[_0x6beec8(0x275)][_0x6beec8(0x25d)]?a[_0x6beec8(0x275)]['TEXT']:a[_0x6beec8(0x275)][_0x6beec8(0x1f3)],'segmentId':typeof _0x1b791c==_0x6beec8(0x28d)?String(_0x1b791c):'','segmentPage':Number(_0x2a5243!=null?_0x2a5243:-0x1)});}return _0x2a12a7[_0x6beec8(0x3f2)](_0x15eb9f=>_0x15eb9f['isActive'])||(_0x2a12a7[0x0][_0x6beec8(0x206)]=!0x0),_0x2a12a7;}class Ce extends a[_0x570aba(0x338)]{constructor(){const _0x2b3fa4=_0x570aba;super(...arguments),h(this,'_collabCursorState$',new d[(_0x2b3fa4(0x2bb))](null)),h(this,_0x2b3fa4(0x358),this[_0x2b3fa4(0x24b)][_0x2b3fa4(0x3a5)]());}[_0x570aba(0x3f5)](_0x3f4ddc){const _0x3ec0ac=_0x570aba,{unitID:_0x5a0452,memberID:_0x59ddb9,textRanges:_0x12a643}=_0x3f4ddc,_0x1a5aec=Pe(_0x12a643);if(_0x1a5aec==='')return;const _0x27fd05={'unitID':_0x5a0452,'memberID':_0x59ddb9,'selection':_0x1a5aec};this[_0x3ec0ac(0x24b)][_0x3ec0ac(0x325)](_0x27fd05);}}var Ze=Object[_0x570aba(0x31c)],Qe=(_0x20e15a,_0x8f3be0,_0x3df68f,_0x3dc027)=>{const _0x2e9bf2=_0x570aba;for(var _0x144d83=_0x3dc027>0x1?void 0x0:_0x3dc027?Ze(_0x8f3be0,_0x3df68f):_0x8f3be0,_0x8a6578=_0x20e15a[_0x2e9bf2(0x214)]-0x1,_0x1820ea;_0x8a6578>=0x0;_0x8a6578--)(_0x1820ea=_0x20e15a[_0x8a6578])&&(_0x144d83=_0x1820ea(_0x144d83)||_0x144d83);return _0x144d83;},L=(_0x3e7d16,_0x1001d0)=>(_0x5c0444,_0x5a020d)=>_0x1001d0(_0x5c0444,_0x5a020d,_0x3e7d16);const et=0x12c,tt=0x64;let fe=class extends a[_0x570aba(0x338)]{constructor(_0x4c28fb,_0x269ead,_0x234561,_0x5b39b0,_0x456b89,_0x23476c,_0x58bca4,_0xe37973,_0x7068b4){const _0x2575bd=_0x570aba;super(),h(this,_0x2575bd(0x37d),!0x1),h(this,'_init',!0x1),h(this,_0x2575bd(0x296),new d[(_0x2575bd(0x2bb))](new Map())),h(this,_0x2575bd(0x3fd),this[_0x2575bd(0x296)][_0x2575bd(0x3a5)]()),h(this,'_roomMembers$',new d[(_0x2575bd(0x2bb))]([])),h(this,_0x2575bd(0x19e),this[_0x2575bd(0x306)]['pipe'](d[_0x2575bd(0x265)](et))),h(this,_0x2575bd(0x24f),a['debounce'](_0x173f25=>{const _0x5ae1ca=_0x2575bd,_0x5a3d89={'eventID':m[_0x5ae1ca(0x22b)]['UPDATE_CURSOR'],'data':{'unitID':this['unitID'],'memberID':this['_session'][_0x5ae1ca(0x3ff)](),'selection':Pe(_0x173f25)}};this[_0x5ae1ca(0x27e)][_0x5ae1ca(0x313)](_0x5a3d89,this[_0x5ae1ca(0x397)]);},tt)),(this[_0x2575bd(0x397)]=_0x4c28fb,this[_0x2575bd(0x27e)]=_0x269ead,this[_0x2575bd(0x1f7)]=_0x234561,this[_0x2575bd(0x310)]=_0x5b39b0,this[_0x2575bd(0x26d)]=_0x456b89,this[_0x2575bd(0x3f3)]=_0x23476c,this[_0x2575bd(0x23d)]=_0x58bca4,this[_0x2575bd(0x368)]=_0xe37973,this[_0x2575bd(0x204)]=_0x7068b4);}get[_0x570aba(0x3c7)](){const _0x2a7f4b=_0x570aba;return this[_0x2a7f4b(0x296)][_0x2a7f4b(0x2e3)]();}get['roomMembers'](){const _0x210fd8=_0x570aba;return this[_0x210fd8(0x306)][_0x210fd8(0x2e3)]();}['dispose'](){const _0x4d4abc=_0x570aba;super[_0x4d4abc(0x1d4)](),this['_cursorInfo$'][_0x4d4abc(0x325)](new Map()),this['_cursorInfo$'][_0x4d4abc(0x2da)](),this[_0x4d4abc(0x306)][_0x4d4abc(0x325)]([]),this['_roomMembers$']['complete']();}[_0x570aba(0x20f)](){const _0x59d1d1=_0x570aba;this[_0x59d1d1(0x31e)]||(this['_init']=!0x0,this[_0x59d1d1(0x27e)][_0x59d1d1(0x31a)][_0x59d1d1(0x18d)](d[_0x59d1d1(0x25a)](this[_0x59d1d1(0x2ad)]))[_0x59d1d1(0x1d9)](_0x29209c=>{const _0x3bc254=_0x59d1d1;_0x29209c===u[_0x3bc254(0x2b7)][_0x3bc254(0x2a6)]?this[_0x3bc254(0x3b9)]():this[_0x3bc254(0x1f0)]();}),this['_session'][_0x59d1d1(0x318)]['pipe'](d['takeUntil'](this[_0x59d1d1(0x2ad)]))[_0x59d1d1(0x1d9)](_0x52dc10=>{const _0xc0af8a=_0x59d1d1,_0x3460f7=_0x52dc10[_0xc0af8a(0x30e)];_0x3460f7===m[_0xc0af8a(0x22b)]['UPDATE_CURSOR']&&this[_0xc0af8a(0x384)](_0x52dc10),_0x3460f7===m[_0xc0af8a(0x22b)][_0xc0af8a(0x3b8)]&&this['_onCursorDelete'](_0x52dc10);}),this['disposeWithMe'](this[_0x59d1d1(0x204)][_0x59d1d1(0x381)](_0x9d0809=>{const _0x2c3f2f=_0x59d1d1,_0xdd5523=_0x9d0809[_0x2c3f2f(0x2de)];_0xdd5523!=null&&this[_0x2c3f2f(0x37d)]&&_0x9d0809['id']===Y[_0x2c3f2f(0x29b)]['id']&&_0xdd5523[_0x2c3f2f(0x276)]===this['unitID']&&_0xdd5523[_0x2c3f2f(0x2f1)]===!0x1&&_0xdd5523[_0x2c3f2f(0x256)]['length']>0x0&&this[_0x2c3f2f(0x24f)](_0xdd5523[_0x2c3f2f(0x256)]);})),this[_0x59d1d1(0x3f3)]['collabCursorState$'][_0x59d1d1(0x18d)](d[_0x59d1d1(0x25a)](this[_0x59d1d1(0x2ad)]))[_0x59d1d1(0x1d9)](_0x1d7f6e=>{const _0x130cec=_0x59d1d1;if((_0x1d7f6e==null?void 0x0:_0x1d7f6e[_0x130cec(0x397)])!==this[_0x130cec(0x397)])return;const _0x3e3d9e={'eventID':m['CollaborationEvent'][_0x130cec(0x2c8)],'data':_0x1d7f6e};this['_onCursorUpdate'](_0x3e3d9e);}),this['disposeWithMe'](this[_0x59d1d1(0x204)][_0x59d1d1(0x381)](_0x33a487=>{const _0x4907c0=_0x59d1d1;if(_0x33a487[_0x4907c0(0x2de)]==null)return;const _0x404e42=_0x33a487[_0x4907c0(0x2de)];if(_0x33a487['id']!==Y[_0x4907c0(0x3c2)]['id']||_0x404e42[_0x4907c0(0x276)]!==this[_0x4907c0(0x397)])return;const _0x2490b4={'id':_0x4907c0(0x401),'params':_0x404e42},_0x3aa12a=this[_0x4907c0(0x3c7)];for(const [_0x4f4a92,_0x21ce97]of _0x3aa12a){const _0x56711a={'id':_0x4907c0(0x401),'params':{'unitId':this[_0x4907c0(0x397)],'actions':null,'textRanges':_0x21ce97[_0x4907c0(0x256)]}},_0x11cf64=this[_0x4907c0(0x23d)]['transformMutation'](_0x2490b4,_0x56711a,!0x1);if(m[_0x4907c0(0x197)](_0x11cf64))throw _0x11cf64[_0x4907c0(0x2eb)];_0x3aa12a['set'](_0x4f4a92,{..._0x21ce97,'ranges':_0x11cf64[_0x4907c0(0x209)][_0x4907c0(0x2de)][_0x4907c0(0x3bd)]});}queueMicrotask(()=>{const _0x235f06=_0x4907c0;this[_0x235f06(0x296)][_0x235f06(0x325)](_0x3aa12a);});})));}[_0x570aba(0x384)](_0xbda618){const _0x26aae1=_0x570aba;var _0xd3960b,_0x250387;const {memberID:_0x36e643,selection:_0x5ae8a7}=_0xbda618[_0x26aae1(0x28b)],_0x300b10=Je(_0x5ae8a7),_0x2ce297=(_0x250387=(_0xd3960b=this[_0x26aae1(0x26d)][_0x26aae1(0x1bc)](this[_0x26aae1(0x397)],_0x36e643))==null?void 0x0:_0xd3960b[_0x26aae1(0x19b)])!=null?_0x250387:_0x26aae1(0x324),_0x1510a5={'color':this[_0x26aae1(0x310)][_0x26aae1(0x292)](_0x36e643),'name':_0x2ce297,'ranges':_0x300b10},_0x214189=this['cursorInfo'];_0x214189[_0x26aae1(0x1a2)](_0x36e643,_0x1510a5),this['_cursorInfo$'][_0x26aae1(0x325)](_0x214189);}[_0x570aba(0x188)](_0x4f8702){const _0x1d96dd=_0x570aba,{memberID:_0x3c7108}=_0x4f8702[_0x1d96dd(0x28b)],_0x19fa6c=this[_0x1d96dd(0x3c7)];_0x19fa6c[_0x1d96dd(0x28c)](_0x3c7108),this[_0x1d96dd(0x296)][_0x1d96dd(0x325)](_0x19fa6c);}[_0x570aba(0x3b9)](){const _0x24f7e5=_0x570aba;var _0x4c9b2d;if(this[_0x24f7e5(0x37d)]=!0x0,((_0x4c9b2d=this[_0x24f7e5(0x368)]['getFocusedUnit']())==null?void 0x0:_0x4c9b2d[_0x24f7e5(0x2ed)]())!==this[_0x24f7e5(0x397)])return;const _0x10ddf1=this[_0x24f7e5(0x1f7)][_0x24f7e5(0x398)](Y[_0x24f7e5(0x1b2)])[_0x24f7e5(0x200)]();Array[_0x24f7e5(0x18c)](_0x10ddf1)&&_0x10ddf1[_0x24f7e5(0x214)]>0x0&&this[_0x24f7e5(0x24f)](_0x10ddf1);}[_0x570aba(0x1f0)](){const _0x46fa92=_0x570aba;this[_0x46fa92(0x37d)]=!0x1;}};fe=Qe([L(0x2,a[_0x570aba(0x33e)](a['Injector'])),L(0x3,a[_0x570aba(0x33e)](me)),L(0x4,a[_0x570aba(0x33e)](u['MemberService'])),L(0x5,a['Inject'](Ce)),L(0x6,m['ITransformService']),L(0x7,a[_0x570aba(0x1a5)]),L(0x8,a['ICommandService'])],fe);var st=Object[_0x570aba(0x31c)],it=(_0x4dad2e,_0x53cd82,_0x588ad2,_0xa2d883)=>{const _0x433741=_0x570aba;for(var _0x41e0be=_0xa2d883>0x1?void 0x0:_0xa2d883?st(_0x53cd82,_0x588ad2):_0x53cd82,_0x38da12=_0x4dad2e[_0x433741(0x214)]-0x1,_0x5c2feb;_0x38da12>=0x0;_0x38da12--)(_0x5c2feb=_0x4dad2e[_0x38da12])&&(_0x41e0be=_0x5c2feb(_0x41e0be)||_0x41e0be);return _0x41e0be;},w=(_0x2e990c,_0x9070b0)=>(_0x592bad,_0x3931b7)=>_0x9070b0(_0x592bad,_0x3931b7,_0x2e990c);const nt=0x12c,rt=0x64,ot=()=>{let _0x1e471c=[],_0x453210=!0x1;return _0x437fbd=>{const _0x29f088=_0x1acb;_0x1e471c[_0x29f088(0x293)](_0x437fbd),_0x453210||(_0x453210=!0x0,setTimeout(()=>{_0x1e471c['forEach'](_0xb963f3=>_0xb963f3()),_0x1e471c=[],_0x453210=!0x1;}));};};let Se=class extends a['RxDisposable']{constructor(_0x1d0bf6,_0x56a57a,_0x496336,_0x265a24,_0x221ada,_0xca1145,_0x460ece,_0x3f996b){const _0x4f66c1=_0x570aba;super(),h(this,_0x4f66c1(0x37d),!0x1),h(this,_0x4f66c1(0x31e),!0x1),h(this,'_cursorInfo$',new d[(_0x4f66c1(0x2bb))](new Map())),h(this,'cursorInfo$',this[_0x4f66c1(0x296)]['asObservable']()),h(this,_0x4f66c1(0x306),new d[(_0x4f66c1(0x2bb))]([])),h(this,'roomMembers$',this[_0x4f66c1(0x306)][_0x4f66c1(0x18d)](d[_0x4f66c1(0x265)](nt))),h(this,_0x4f66c1(0x24f),a[_0x4f66c1(0x329)]((_0x38ddd4,_0x167ca0)=>{const _0x539897=_0x4f66c1,_0x88f28d={'eventID':m['CollaborationEvent'][_0x539897(0x2c8)],'data':{'unitID':this[_0x539897(0x397)],'memberID':this['_session'][_0x539897(0x3ff)](),'selection':Ee[_0x539897(0x25f)](_0x38ddd4,_0x167ca0['range'])}};this[_0x539897(0x27e)][_0x539897(0x313)](_0x88f28d,this[_0x539897(0x397)]);},rt)),(this['unitID']=_0x1d0bf6,this[_0x4f66c1(0x27e)]=_0x56a57a,this[_0x4f66c1(0x1f7)]=_0x496336,this[_0x4f66c1(0x310)]=_0x265a24,this['_memberService']=_0x221ada,this['_univerInstanceService']=_0xca1145,this[_0x4f66c1(0x204)]=_0x460ece,this[_0x4f66c1(0x2a7)]=_0x3f996b);}get[_0x570aba(0x3c7)](){const _0x431cfc=_0x570aba;return this['_cursorInfo$'][_0x431cfc(0x2e3)]();}get[_0x570aba(0x236)](){const _0x23c23f=_0x570aba;return this[_0x23c23f(0x306)][_0x23c23f(0x2e3)]();}[_0x570aba(0x1d4)](){const _0x3090b3=_0x570aba;super[_0x3090b3(0x1d4)](),this[_0x3090b3(0x296)]['next'](new Map()),this[_0x3090b3(0x296)][_0x3090b3(0x2da)](),this[_0x3090b3(0x306)][_0x3090b3(0x325)]([]),this['_roomMembers$'][_0x3090b3(0x2da)]();}[_0x570aba(0x20f)](){const _0x9851e=_0x570aba;this['_init']||(this[_0x9851e(0x31e)]=!0x0,this[_0x9851e(0x27e)][_0x9851e(0x31a)][_0x9851e(0x18d)](d[_0x9851e(0x25a)](this[_0x9851e(0x2ad)]))['subscribe'](_0x114cf8=>{const _0x3e2237=_0x9851e;_0x114cf8===u[_0x3e2237(0x2b7)][_0x3e2237(0x2a6)]?this['_toggleOnline']():this[_0x3e2237(0x1f0)]();}),this[_0x9851e(0x27e)][_0x9851e(0x318)][_0x9851e(0x18d)](d[_0x9851e(0x25a)](this[_0x9851e(0x2ad)]))[_0x9851e(0x1d9)](_0xf81831=>{const _0x1e7aa7=_0x9851e,_0x2b51b1=_0xf81831[_0x1e7aa7(0x30e)];_0x2b51b1===m[_0x1e7aa7(0x22b)][_0x1e7aa7(0x2c8)]&&this[_0x1e7aa7(0x384)](_0xf81831),_0x2b51b1===m[_0x1e7aa7(0x22b)][_0x1e7aa7(0x3b8)]&&this['_onCursorDelete'](_0xf81831);}),this[_0x9851e(0x1ec)](),this[_0x9851e(0x2cc)](this[_0x9851e(0x204)][_0x9851e(0x381)](_0x47952d=>{const _0x1f908f=_0x9851e;if(this[_0x1f908f(0x37d)]&&_0x47952d['id']===g[_0x1f908f(0x29c)]['id']&&_0x47952d[_0x1f908f(0x2de)][_0x1f908f(0x276)]===this['unitID']){const _0x3e4d57=_0x47952d[_0x1f908f(0x2de)];this['_updateLocalCursor'](_0x3e4d57[_0x1f908f(0x328)],_0x3e4d57[_0x1f908f(0x2b3)][0x0]);}})));}['_onCursorUpdate'](_0x40d20c){const _0x237286=_0x570aba;var _0x38afc9,_0x556339;const {memberID:_0x1b4635,selection:_0x5425c4}=_0x40d20c[_0x237286(0x28b)],{sheetName:_0xba15dd,range:_0x36771c}=Ee[_0x237286(0x394)](_0x5425c4),_0x55cfcd={'name':(_0x556339=(_0x38afc9=this['_memberService']['getMember'](this['unitID'],_0x1b4635))==null?void 0x0:_0x38afc9[_0x237286(0x19b)])!=null?_0x556339:_0x237286(0x324),'range':this['_getMergeRange'](_0xba15dd,_0x36771c),'sheetID':_0xba15dd,'color':this[_0x237286(0x310)]['assignAColorForMemberID'](_0x1b4635),'selection':_0x5425c4},_0x5cdb8f=this[_0x237286(0x3c7)];_0x5cdb8f[_0x237286(0x1a2)](_0x1b4635,_0x55cfcd),this[_0x237286(0x296)][_0x237286(0x325)](_0x5cdb8f);}['_onCursorDelete'](_0x5e787f){const _0xdaea6c=_0x570aba,{memberID:_0x352fd1}=_0x5e787f[_0xdaea6c(0x28b)],_0x3a7166=this[_0xdaea6c(0x3c7)];_0x3a7166[_0xdaea6c(0x28c)](_0x352fd1),this['_cursorInfo$'][_0xdaea6c(0x325)](_0x3a7166);}[_0x570aba(0x3d5)](_0x2e4f18,_0x2925cf){const _0x728551=_0x570aba;var _0x2975da,_0x200d80;const _0x46fb19=(_0x200d80=(_0x2975da=this[_0x728551(0x368)][_0x728551(0x408)](this[_0x728551(0x397)]))==null?void 0x0:_0x2975da[_0x728551(0x36d)](_0x2e4f18))==null?void 0x0:_0x200d80[_0x728551(0x298)]();return(_0x46fb19==null?void 0x0:_0x46fb19[_0x728551(0x3e6)](_0x224b64=>a[_0x728551(0x371)][_0x728551(0x248)](_0x224b64,_0x2925cf)))||_0x2925cf;}[_0x570aba(0x1ec)](){const _0x26163a=_0x570aba,_0x177e69=new a['DisposableCollection'](),_0x47d587=ot(),_0x2632af=()=>{const _0x37f241=_0x1acb;_0x177e69[_0x37f241(0x1d4)]();const _0xc0a1ab=(_0x3e9890,_0x5e41a2,_0x50a260,_0x510d33)=>{const _0x3a760f=_0x37f241;let _0x383ab9=[];switch(_0x3e9890['id']){case g[_0x3a760f(0x22f)][_0x3a760f(0x3d4)]:{_0x383ab9=g['handleDeleteRangeMoveLeft'](_0x3e9890,_0x510d33);break;}case g[_0x3a760f(0x22f)]['DeleteRangeMoveUpCommandId']:{_0x383ab9=g[_0x3a760f(0x21e)](_0x3e9890,_0x510d33);break;}case g[_0x3a760f(0x22f)][_0x3a760f(0x1c7)]:{_0x383ab9=g[_0x3a760f(0x1e2)](_0x3e9890,_0x510d33);break;}case g[_0x3a760f(0x22f)][_0x3a760f(0x21c)]:{_0x383ab9=g[_0x3a760f(0x2b4)](_0x3e9890,_0x510d33);break;}case g[_0x3a760f(0x22f)][_0x3a760f(0x1c9)]:{_0x383ab9=g[_0x3a760f(0x3dd)](_0x3e9890,_0x510d33);break;}case g['EffectRefRangId'][_0x3a760f(0x18e)]:{_0x383ab9=g[_0x3a760f(0x22e)](_0x3e9890,_0x510d33);break;}case g[_0x3a760f(0x22f)][_0x3a760f(0x221)]:{_0x383ab9=g['handleMoveRange'](_0x3e9890,_0x510d33);break;}case g[_0x3a760f(0x22f)][_0x3a760f(0x17f)]:{_0x383ab9=g[_0x3a760f(0x407)](_0x3e9890,_0x510d33);break;}case g[_0x3a760f(0x22f)][_0x3a760f(0x383)]:{_0x383ab9=g[_0x3a760f(0x2f9)](_0x3e9890,_0x510d33);break;}}const _0x44efad=g[_0x3a760f(0x2bc)](_0x383ab9,_0x510d33),_0x29d73f=this[_0x3a760f(0x3c7)][_0x3a760f(0x398)](_0x5e41a2);if(_0x29d73f&&_0x44efad){const _0x5ef974={..._0x29d73f,'range':_0x44efad};this[_0x3a760f(0x3c7)]['set'](_0x5e41a2,_0x5ef974),_0x47d587(()=>{const _0x146711=_0x3a760f,_0x4c1e2b=this[_0x146711(0x2a7)][_0x146711(0x3b6)](_0x44efad,_0x489a47=>(_0x4c1e2b[_0x146711(0x1d4)](),_0xc0a1ab(_0x489a47,_0x5e41a2,_0x50a260,_0x44efad)));_0x177e69[_0x146711(0x25e)](_0x4c1e2b);});}return{'redos':[],'undos':[]};};this[_0x37f241(0x3c7)][_0x37f241(0x247)]((_0x38d36e,_0x5eb15d)=>{const _0x81b8e3=_0x37f241,{range:_0x463b91,sheetID:_0x10ab7b}=_0x38d36e,_0x4166c7=this[_0x81b8e3(0x2a7)][_0x81b8e3(0x3b6)](_0x463b91,_0x570db0=>(_0x4166c7[_0x81b8e3(0x1d4)](),_0xc0a1ab(_0x570db0,_0x5eb15d,_0x10ab7b,_0x463b91)));_0x177e69['add'](_0x4166c7);});};this[_0x26163a(0x2cc)](a[_0x26163a(0x3c5)](this[_0x26163a(0x296)][_0x26163a(0x1d9)](()=>{_0x2632af();})));}[_0x570aba(0x3b9)](){const _0x299f5e=_0x570aba;var _0x3f7ae6,_0x7df8fa;if(this[_0x299f5e(0x37d)]=!0x0,((_0x3f7ae6=this[_0x299f5e(0x368)][_0x299f5e(0x21d)]())==null?void 0x0:_0x3f7ae6[_0x299f5e(0x2ed)]())!==this[_0x299f5e(0x397)])return;const _0x495ac6=(_0x7df8fa=this['_injector'][_0x299f5e(0x398)](g[_0x299f5e(0x1fb)])[_0x299f5e(0x303)]())==null?void 0x0:_0x7df8fa[0x0],_0x580376=this[_0x299f5e(0x368)][_0x299f5e(0x189)](a[_0x299f5e(0x18f)]['UNIVER_SHEET'])[_0x299f5e(0x261)]();_0x495ac6&&_0x580376&&this[_0x299f5e(0x24f)](_0x580376[_0x299f5e(0x29a)](),_0x495ac6);}[_0x570aba(0x1f0)](){const _0x3b7d8c=_0x570aba;this[_0x3b7d8c(0x37d)]=!0x1;}};Se=it([w(0x2,a['Inject'](a[_0x570aba(0x39c)])),w(0x3,a[_0x570aba(0x33e)](me)),w(0x4,a[_0x570aba(0x33e)](u[_0x570aba(0x17b)])),w(0x5,a[_0x570aba(0x1a5)]),w(0x6,a[_0x570aba(0x3e4)]),w(0x7,a[_0x570aba(0x33e)](g[_0x570aba(0x224)]))],Se);var at=Object[_0x570aba(0x31c)],ct=(_0x133a6c,_0x464c52,_0x545213,_0xa4ba30)=>{for(var _0x4c179d=_0xa4ba30>0x1?void 0x0:_0xa4ba30?at(_0x464c52,_0x545213):_0x464c52,_0x1b0e07=_0x133a6c['length']-0x1,_0x10fc63;_0x1b0e07>=0x0;_0x1b0e07--)(_0x10fc63=_0x133a6c[_0x1b0e07])&&(_0x4c179d=_0x10fc63(_0x4c179d)||_0x4c179d);return _0x4c179d;},ie=(_0x403c55,_0x3cf51a)=>(_0x2fe5ef,_0x2f93d1)=>_0x3cf51a(_0x2fe5ef,_0x2f93d1,_0x403c55);let x=class extends a[_0x570aba(0x338)]{constructor(_0x135e86,_0x93ef36,_0x40c810){const _0x22a92d=_0x570aba;super(),h(this,_0x22a92d(0x2c0),new Map()),h(this,_0x22a92d(0x3b7),new d[(_0x22a92d(0x203))]()),(this[_0x22a92d(0x368)]=_0x135e86,this[_0x22a92d(0x1f7)]=_0x93ef36,this[_0x22a92d(0x277)]=_0x40c810,this[_0x22a92d(0x31e)]());}[_0x570aba(0x1d4)](){const _0x19e2e2=_0x570aba;super['dispose'](),this[_0x19e2e2(0x3b7)]['complete'](),this[_0x19e2e2(0x2c0)]['forEach'](_0xb58025=>_0xb58025[_0x19e2e2(0x1d4)]());}[_0x570aba(0x403)](_0x252d3e){const _0x140674=_0x570aba;return this['_entities'][_0x140674(0x227)](_0x252d3e)?this[_0x140674(0x2c0)][_0x140674(0x398)](_0x252d3e)[_0x140674(0x3fd)]:this[_0x140674(0x3b7)][_0x140674(0x18d)](d[_0x140674(0x1a9)](_0x18192e=>_0x18192e['unitID']===_0x252d3e),d['switchMap'](_0xfbe247=>_0xfbe247['cursorInfo$']));}[_0x570aba(0x31e)](){const _0x326a63=_0x570aba;this[_0x326a63(0x368)][_0x326a63(0x315)](a[_0x326a63(0x18f)][_0x326a63(0x363)])['pipe'](d[_0x326a63(0x25a)](this[_0x326a63(0x2ad)]))[_0x326a63(0x1d9)](async _0x986106=>{const _0x2d594b=_0x326a63,_0x346ac8=_0x986106[_0x2d594b(0x2ed)](),_0x23feef=await this[_0x2d594b(0x3fe)](_0x346ac8);this['_entityInit$'][_0x2d594b(0x325)](_0x23feef),this[_0x2d594b(0x2c0)][_0x2d594b(0x1a2)](_0x346ac8,_0x23feef);}),this[_0x326a63(0x368)][_0x326a63(0x315)](a[_0x326a63(0x18f)][_0x326a63(0x212)])[_0x326a63(0x18d)](d['takeUntil'](this['dispose$']))[_0x326a63(0x18d)](d[_0x326a63(0x1a9)](_0x1d3c03=>!_0x1d3c03['getUnitId']()[_0x326a63(0x3f1)]('__')))[_0x326a63(0x1d9)](async _0x46131f=>{const _0x1c08b3=_0x326a63,_0x25cc9d=_0x46131f[_0x1c08b3(0x2ed)](),_0x46c528=await this[_0x1c08b3(0x391)](_0x25cc9d);this[_0x1c08b3(0x3b7)][_0x1c08b3(0x325)](_0x46c528),this[_0x1c08b3(0x2c0)]['set'](_0x25cc9d,_0x46c528);}),d[_0x326a63(0x1a7)](this[_0x326a63(0x368)]['getTypeOfUnitDisposed$'](a['UniverInstanceType'][_0x326a63(0x212)]),this[_0x326a63(0x368)]['getTypeOfUnitDisposed$'](a[_0x326a63(0x18f)][_0x326a63(0x363)]))['pipe'](d[_0x326a63(0x25a)](this[_0x326a63(0x2ad)]))[_0x326a63(0x1d9)](_0x314edb=>{const _0x1af233=_0x326a63,_0x32abd3=_0x314edb['getUnitId'](),_0x3f2e31=this[_0x1af233(0x2c0)][_0x1af233(0x398)](_0x32abd3);_0x3f2e31&&(_0x3f2e31[_0x1af233(0x1d4)](),this[_0x1af233(0x2c0)][_0x1af233(0x28c)](_0x32abd3));});}async[_0x570aba(0x3fe)](_0x476774){const _0x4332eb=_0x570aba,_0x5eed85=await this[_0x4332eb(0x277)][_0x4332eb(0x1b3)](_0x476774),_0x145067=this[_0x4332eb(0x1f7)]['createInstance'](Se,_0x476774,_0x5eed85);return _0x145067[_0x4332eb(0x20f)](),_0x145067;}async[_0x570aba(0x391)](_0x411f7a){const _0x48611b=_0x570aba,_0x5e000d=await this[_0x48611b(0x277)][_0x48611b(0x1b3)](_0x411f7a),_0xafd45b=this[_0x48611b(0x1f7)][_0x48611b(0x2a9)](fe,_0x411f7a,_0x5e000d);return _0xafd45b['init'](),_0xafd45b;}};x=ct([ie(0x0,a[_0x570aba(0x1a5)]),ie(0x1,a[_0x570aba(0x33e)](a[_0x570aba(0x39c)])),ie(0x2,a['Inject'](u[_0x570aba(0x29d)]))],x);const K=0x14,Re=0xc8,ne=0x4,lt=0x5;function _t(_0x9c58fc,_0x266739){const _0x21bb98=_0x570aba;let {radius:_0x2d6278,width:_0x1dc138,height:_0xf87152}=_0x266739;_0x2d6278=_0x2d6278!=null?_0x2d6278:0x0,_0x1dc138=_0x1dc138!=null?_0x1dc138:0x1e,_0xf87152=_0xf87152!=null?_0xf87152:0x1e;let _0x4bdb17=0x0,_0x1a5a59=0x0,_0x5ce4cb=0x0;_0x4bdb17=_0x1a5a59=_0x5ce4cb=Math[_0x21bb98(0x36b)](_0x2d6278,_0x1dc138/0x2,_0xf87152/0x2),_0x9c58fc[_0x21bb98(0x355)](),_0x9c58fc[_0x21bb98(0x2b2)](_0x4bdb17,0x0),_0x9c58fc[_0x21bb98(0x26f)](_0x1dc138-_0x1a5a59,0x0),_0x9c58fc[_0x21bb98(0x1ad)](_0x1dc138-_0x1a5a59,_0x1a5a59,_0x1a5a59,Math['PI']*0x3/0x2,0x0,!0x1),_0x9c58fc[_0x21bb98(0x26f)](_0x1dc138,_0xf87152-_0x5ce4cb),_0x9c58fc[_0x21bb98(0x1ad)](_0x1dc138-_0x5ce4cb,_0xf87152-_0x5ce4cb,_0x5ce4cb,0x0,Math['PI']/0x2,!0x1),_0x9c58fc[_0x21bb98(0x26f)](0x0,_0xf87152),_0x9c58fc[_0x21bb98(0x26f)](0x0,_0x4bdb17),_0x9c58fc['arc'](_0x4bdb17,_0x4bdb17,_0x4bdb17,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x9c58fc['closePath'](),_0x266739[_0x21bb98(0x40b)]&&(_0x9c58fc[_0x21bb98(0x380)](),_0x9c58fc['fillStyle']=_0x266739['fill'],_0x266739['fillRule']===_0x21bb98(0x342)?_0x9c58fc[_0x21bb98(0x40b)](_0x21bb98(0x342)):_0x9c58fc[_0x21bb98(0x40b)](),_0x9c58fc[_0x21bb98(0x35e)]());}class ee extends p[_0x570aba(0x36e)]{constructor(_0x254f3f,_0x40514c){const _0x5ada1e=_0x570aba;super(_0x254f3f,_0x40514c),h(this,_0x5ada1e(0x24d)),h(this,_0x5ada1e(0x250)),(this[_0x5ada1e(0x24d)]=_0x40514c==null?void 0x0:_0x40514c[_0x5ada1e(0x24d)],this['text']=_0x40514c==null?void 0x0:_0x40514c[_0x5ada1e(0x250)]);}static[_0x570aba(0x1d6)](_0x1c13f0,_0xfb8263){const _0x4c6c05=_0x570aba,{text:_0x580564,color:_0x47a219}=_0xfb8263;_0x1c13f0['save'](),_0x1c13f0[_0x4c6c05(0x3f6)]=_0x4c6c05(0x30c);const _0xd59ef2=_0x1c13f0[_0x4c6c05(0x201)](_0x580564)[_0x4c6c05(0x266)],_0x268fd6=Math[_0x4c6c05(0x36b)](_0xd59ef2+0x2*ne,Re);_t(_0x1c13f0,{'height':K,'radius':0x4,'width':_0x268fd6,'fill':_0x47a219}),_0x1c13f0[_0x4c6c05(0x3f0)]='#FFF';const _0x455f68=ne,_0x3a1c72=K-lt,_0x4979b4=Re-0x2*ne;if(_0xd59ef2>_0x4979b4){let _0xb5a358='',_0x189fa7=0x0;for(const _0x2a41be of _0x580564){const _0x3b5a51=_0x1c13f0[_0x4c6c05(0x201)](_0x2a41be)[_0x4c6c05(0x266)];if(_0x189fa7+_0x3b5a51<=_0x4979b4-_0x1c13f0[_0x4c6c05(0x201)](_0x4c6c05(0x1a4))[_0x4c6c05(0x266)])_0xb5a358+=_0x2a41be,_0x189fa7+=_0x3b5a51;else{_0xb5a358+=_0x4c6c05(0x1a4);break;}}_0x1c13f0['fillText'](_0xb5a358,_0x455f68,_0x3a1c72);}else _0x1c13f0[_0x4c6c05(0x3ea)](_0x580564,_0x455f68,_0x3a1c72);_0x1c13f0[_0x4c6c05(0x35e)]();}['_draw'](_0x52b1f5){const _0x435c2b=_0x570aba;ee[_0x435c2b(0x1d6)](_0x52b1f5,this);}}const re=_0x570aba(0x343),ht='collab-text-range-',ut='collab-rect-range-',k=0x6,dt=1.5,oe=0x4,ft=1.5,St=_0x570aba(0x2fa);class De{constructor(_0x47f0a2,_0x4062c2,_0x11b276,_0x389d8c){const _0x5c7e11=_0x570aba;h(this,_0x5c7e11(0x2d0),[]),h(this,'_anchor',null),h(this,_0x5c7e11(0x1cb),null),h(this,'_anchorDot',null),h(this,'_hideTimer',null),h(this,_0x5c7e11(0x2fd),null),(this[_0x5c7e11(0x1a6)]=_0x47f0a2,this[_0x5c7e11(0x183)]=_0x4062c2,this['_docSkeleton']=_0x11b276,this[_0x5c7e11(0x347)]=_0x389d8c,this['_render']());}set[_0x570aba(0x244)](_0x292f1d){const _0x5e36e9=_0x570aba;_0x292f1d?(this[_0x5e36e9(0x1a0)]&&this[_0x5e36e9(0x1a0)][_0x5e36e9(0x3a8)](),this[_0x5e36e9(0x1cb)]&&this[_0x5e36e9(0x1cb)][_0x5e36e9(0x335)]()):(this[_0x5e36e9(0x1a0)]&&this[_0x5e36e9(0x1a0)][_0x5e36e9(0x335)](),this[_0x5e36e9(0x1cb)]&&this[_0x5e36e9(0x1cb)][_0x5e36e9(0x3a8)]());}[_0x570aba(0x1d4)](){const _0x24ca96=_0x570aba;for(const _0x10c57f of this[_0x24ca96(0x2d0)])_0x10c57f[_0x24ca96(0x1d4)]();this['_textBubble']&&this[_0x24ca96(0x1cb)][_0x24ca96(0x1d4)](),this[_0x24ca96(0x1a0)]&&this[_0x24ca96(0x1a0)][_0x24ca96(0x1d4)](),this['_anchor']&&this[_0x24ca96(0x3bb)]['dispose'](),this[_0x24ca96(0x2fd)]&&this['_eventUnsubscribe']();}[_0x570aba(0x340)](){const _0x37fd47=_0x570aba;var _0x3943ea;const {_docSkeleton:_0x4d8007,_document:_0x440d77}=this,{color:_0x58c635,name:_0x413f1d,ranges:_0x15dd5b}=this[_0x37fd47(0x1a6)],_0x33ef37=_0x440d77[_0x37fd47(0x1bb)](),{docsLeft:_0xc337d1,docsTop:_0x53d018}=_0x33ef37,_0xbb69e0=new b[(_0x37fd47(0x1d2))](_0x33ef37,_0x4d8007);for(const {startOffset:_0x4d4bf4,endOffset:_0x1ccc2a,rangeType:_0x4a21bb,segmentId:_0x46bff6,segmentPage:_0x2af7ca,collapsed:_0x3b9722,isActive:_0xa3ff4}of _0x15dd5b){const _0x180ed4=_0x4d8007[_0x37fd47(0x319)](_0x4d4bf4,!0x0,_0x46bff6,_0x2af7ca);let _0x254d2f=_0x4d8007[_0x37fd47(0x319)](_0x1ccc2a,!0x0,_0x46bff6,_0x2af7ca);if(_0x254d2f==null&&(_0x254d2f=_0x4d8007[_0x37fd47(0x319)](_0x1ccc2a-0x1,!0x1,_0x46bff6,_0x2af7ca)),_0xa3ff4){const {contentBoxPointGroup:_0x5d9328}=_0xbb69e0[_0x37fd47(0x190)](_0x254d2f,_0x254d2f);if(_0x5d9328['length']===0x0)continue;this['_drawAnchor'](_0x58c635,_0x5d9328,_0xc337d1,_0x53d018,_0x413f1d),this[_0x37fd47(0x2fd)]=this[_0x37fd47(0x2c1)]();}if(_0x180ed4&&_0x254d2f){if(_0x4a21bb===a[_0x37fd47(0x275)][_0x37fd47(0x1f3)]){const _0x33420f=new b[(_0x37fd47(0x297))](_0x33ef37,_0x4d8007),{pointGroup:_0x17a6e7}=(_0x3943ea=_0x33420f[_0x37fd47(0x190)](_0x180ed4,_0x254d2f))!=null?_0x3943ea:{};if(_0x17a6e7==null||_0x17a6e7[_0x37fd47(0x214)]===0x0)continue;this[_0x37fd47(0x2dd)](_0x58c635,_0x17a6e7,_0xc337d1,_0x53d018);}else{if(!_0x3b9722){const {borderBoxPointGroup:_0x3e0bc1}=_0xbb69e0[_0x37fd47(0x190)](_0x180ed4,_0x254d2f);if(_0x3e0bc1['length']===0x0)continue;this[_0x37fd47(0x1d0)](_0x58c635,_0x3e0bc1,_0xc337d1,_0x53d018);}}}}}[_0x570aba(0x2dc)](_0x452665,_0x4b362e,_0x56fdfa,_0x37555c,_0x12bed0){const _0x4e91ac=_0x570aba,_0x2f3031=this['_getAnchorBounding'](_0x4b362e),{left:_0x390445,top:_0x40a7f4,height:_0x301d28}=_0x2f3031,_0x5c97aa=this[_0x4e91ac(0x2e7)](),_0x23fd02=ft/_0x5c97aa,_0x19122a=new p[(_0x4e91ac(0x344))](re+a[_0x4e91ac(0x274)][_0x4e91ac(0x2d3)](k),{'left':_0x390445+_0x56fdfa-_0x23fd02,'top':_0x40a7f4+_0x37555c,'height':_0x301d28,'width':dt,'fill':_0x452665||p['getColor'](a[_0x4e91ac(0x3f9)][_0x4e91ac(0x286)],0x0),'strokeWidth':_0x23fd02,'stroke':St,'evented':!0x0});this['_anchor']=_0x19122a,this[_0x4e91ac(0x183)][_0x4e91ac(0x3cb)](_0x19122a,b[_0x4e91ac(0x3a2)]);const _0x56bb6e=new p['Rect'](re+a[_0x4e91ac(0x274)][_0x4e91ac(0x2d3)](k),{'left':_0x390445+_0x56fdfa-_0x23fd02,'top':_0x40a7f4+_0x37555c-oe/0x2,'height':oe,'width':oe,'fill':_0x452665||p[_0x4e91ac(0x26c)](a[_0x4e91ac(0x3f9)][_0x4e91ac(0x286)],0x0),'strokeWidth':0x0,'stroke':_0x452665||p[_0x4e91ac(0x26c)](a[_0x4e91ac(0x3f9)][_0x4e91ac(0x286)],0x0),'evented':!0x1});this[_0x4e91ac(0x1a0)]=_0x56bb6e,this[_0x4e91ac(0x183)][_0x4e91ac(0x3cb)](_0x56bb6e,b[_0x4e91ac(0x3a2)]);const _0xd5ece9=new ee(re+a[_0x4e91ac(0x274)]['generateRandomId'](k),{'left':_0x390445+_0x56fdfa-_0x23fd02,'top':_0x40a7f4+_0x37555c-K,'text':_0x12bed0,'color':_0x452665});this['_textBubble']=_0xd5ece9,this[_0x4e91ac(0x183)][_0x4e91ac(0x3cb)](_0xd5ece9,b[_0x4e91ac(0x3a2)]),this[_0x4e91ac(0x244)]=!0x1;}['_handleHover'](){const _0x10f352=_0x570aba,_0x489932=this[_0x10f352(0x3bb)][_0x10f352(0x3db)][_0x10f352(0x2b8)](()=>{const _0x1142b3=_0x10f352;this[_0x1142b3(0x244)]=!0x0;}),_0x16e1fc=this[_0x10f352(0x3bb)][_0x10f352(0x406)]['subscribeEvent'](()=>{const _0x3a3afb=_0x10f352;this[_0x3a3afb(0x1a3)]&&clearTimeout(this[_0x3a3afb(0x1a3)]),this['_hideTimer']=setTimeout(()=>{const _0x50b5c8=_0x3a3afb;this[_0x50b5c8(0x244)]=!0x1;},0x7d0);});return()=>{const _0xca9826=_0x10f352;_0x489932[_0xca9826(0x3d2)](),_0x16e1fc[_0xca9826(0x3d2)]();};}[_0x570aba(0x1d0)](_0x4fd861,_0x55e8c7,_0x5094f8,_0x234371){const _0x2b5a41=_0x570aba,_0x25c06c=new a[(_0x2b5a41(0x33d))](_0x4fd861)[_0x2b5a41(0x243)](0.2)[_0x2b5a41(0x30f)](),_0x4a7f5f=new p['RegularPolygon'](ht+a['Tools'][_0x2b5a41(0x2d3)](k),{'pointsGroup':_0x55e8c7,'fill':_0x25c06c||p[_0x2b5a41(0x26c)](a[_0x2b5a41(0x3f9)][_0x2b5a41(0x286)],0.2),'left':_0x5094f8,'top':_0x234371,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x2b5a41(0x2d0)]['push'](_0x4a7f5f),this[_0x2b5a41(0x183)][_0x2b5a41(0x3cb)](_0x4a7f5f,b['TEXT_RANGE_LAYER_INDEX']);}['_drawRectRange'](_0x430982,_0x5c7b31,_0x4be411,_0x104a32){const _0x505a90=_0x570aba,_0x5ce8e3=new a[(_0x505a90(0x33d))](_0x430982)[_0x505a90(0x243)](0.2)['toRgbString'](),_0x447f01=new p['RegularPolygon'](ut+a['Tools'][_0x505a90(0x2d3)](k),{'pointsGroup':_0x5c7b31,'fill':_0x5ce8e3||p['getColor'](a[_0x505a90(0x3f9)][_0x505a90(0x286)],0.2),'left':_0x4be411,'top':_0x104a32,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x505a90(0x2d0)][_0x505a90(0x293)](_0x447f01),this[_0x505a90(0x183)][_0x505a90(0x3cb)](_0x447f01,b[_0x505a90(0x3a2)]);}[_0x570aba(0x314)](_0xe979e6){const _0x3ff180=_0xe979e6[0x0],_0x21bcca=_0x3ff180[0x0],_0x5b5590=_0x3ff180[0x2],{x:_0x4d140a,y:_0x16cb19}=_0x21bcca,{x:_0x273ff0,y:_0x3dcbba}=_0x5b5590;return{'left':_0x4d140a,'top':_0x16cb19,'width':_0x273ff0-_0x4d140a,'height':_0x3dcbba-_0x16cb19};}[_0x570aba(0x2e7)](){const _0x3ff370=_0x570aba,{scaleX:_0x1d1c5f,scaleY:_0x139735}=this['_scene'][_0x3ff370(0x3e1)]();return Math[_0x3ff370(0x337)](_0x1d1c5f,_0x139735);}}var It=Object[_0x570aba(0x31c)],vt=(_0x5580a3,_0x47f99c,_0xc9c669,_0x5874fd)=>{const _0x232a37=_0x570aba;for(var _0x4542fe=_0x5874fd>0x1?void 0x0:_0x5874fd?It(_0x47f99c,_0xc9c669):_0x47f99c,_0x1d61a0=_0x5580a3[_0x232a37(0x214)]-0x1,_0x5671f1;_0x1d61a0>=0x0;_0x1d61a0--)(_0x5671f1=_0x5580a3[_0x1d61a0])&&(_0x4542fe=_0x5671f1(_0x4542fe)||_0x4542fe);return _0x4542fe;},W=(_0x3f9ea2,_0x394c58)=>(_0x4c9806,_0x4f6a14)=>_0x394c58(_0x4c9806,_0x4f6a14,_0x3f9ea2);let Ie=class extends a[_0x570aba(0x338)]{constructor(_0x36dfc4,_0x186257,_0x340153,_0x2033b4,_0x939ec4){const _0x22b714=_0x570aba;super(),h(this,_0x22b714(0x366),[]),h(this,_0x22b714(0x285),[]),(this['_context']=_0x36dfc4,this['_docSkeletonManagerService']=_0x186257,this[_0x22b714(0x288)]=_0x340153,this[_0x22b714(0x204)]=_0x2033b4,this[_0x22b714(0x1b5)]=_0x939ec4,this[_0x22b714(0x31e)]());}[_0x570aba(0x31e)](){const _0x7e5477=_0x570aba,_0x54d9b7=this[_0x7e5477(0x2f7)][_0x7e5477(0x276)],_0x2d4528=this[_0x7e5477(0x32a)];this[_0x7e5477(0x2cc)](d[_0x7e5477(0x34d)]([this[_0x7e5477(0x288)][_0x7e5477(0x403)](_0x54d9b7),this['_themeService']['currentTheme$']])[_0x7e5477(0x18d)]($[_0x7e5477(0x2fb)](([_0x407380,_0x2852b1])=>({'skeleton':_0x2d4528[_0x7e5477(0x1f8)](),'cursors':[..._0x407380[_0x7e5477(0x279)]()][_0x7e5477(0x1df)](_0x31a38e=>({..._0x31a38e,'color':this[_0x7e5477(0x1b5)][_0x7e5477(0x3f4)](_0x31a38e[_0x7e5477(0x24d)])}))})))[_0x7e5477(0x1d9)](_0x439fca=>{const _0x27f17f=_0x7e5477;if(this[_0x27f17f(0x33c)](),_0x439fca){const {skeleton:_0x52bf18,cursors:_0x59fec9}=_0x439fca;this[_0x27f17f(0x20a)](_0x52bf18,_0x59fec9);}})),this[_0x7e5477(0x345)](),this[_0x7e5477(0x354)]();}[_0x570aba(0x20a)](_0xb9f520,_0x53458a){const _0x9f7ac0=_0x570aba,{scene:_0x2c6820,mainComponent:_0x959aa7}=this[_0x9f7ac0(0x2f7)],_0x915173=_0x53458a[_0x9f7ac0(0x2fb)](_0x511c45=>new De(_0x511c45,_0x2c6820,_0xb9f520,_0x959aa7));this[_0x9f7ac0(0x366)]=_0x915173,this[_0x9f7ac0(0x285)]=_0x53458a;}[_0x570aba(0x37a)](){const _0x30d690=_0x570aba;this[_0x30d690(0x33c)]();const {scene:_0x1c758b,mainComponent:_0x703a98}=this[_0x30d690(0x2f7)],_0x570fdc=this[_0x30d690(0x32a)][_0x30d690(0x1f8)](),_0x53957e=this[_0x30d690(0x285)][_0x30d690(0x2fb)](_0x1ac476=>new De(_0x1ac476,_0x1c758b,_0x570fdc,_0x703a98));this['_cursorShapes']=_0x53957e;}[_0x570aba(0x33c)](){const _0x261e9c=_0x570aba;this[_0x261e9c(0x366)][_0x261e9c(0x247)](_0x2b0aba=>_0x2b0aba[_0x261e9c(0x1d4)]()),this[_0x261e9c(0x366)]=[];}['_initCommandExecutedListener'](){const _0xa0550c=_0x570aba,_0x414c9d=[b[_0xa0550c(0x39e)]['id']];this[_0xa0550c(0x2cc)](this[_0xa0550c(0x204)]['onCommandExecuted'](_0x2c7e48=>{const _0xa32f03=_0xa0550c;_0x414c9d[_0xa32f03(0x34a)](_0x2c7e48['id'])&&_0x2c7e48[_0xa32f03(0x2de)]['unitId']===this[_0xa32f03(0x2f7)][_0xa32f03(0x276)]&&this[_0xa32f03(0x37a)]();}));}[_0x570aba(0x345)](){const _0x4c3b52=_0x570aba;this[_0x4c3b52(0x2cc)](a[_0x4c3b52(0x3af)](this[_0x4c3b52(0x2f7)][_0x4c3b52(0x17e)][_0x4c3b52(0x30a)])[_0x4c3b52(0x18d)]($[_0x4c3b52(0x1a9)](_0x71147b=>_0x71147b[_0x4c3b52(0x385)]===p['TRANSFORM_CHANGE_OBSERVABLE_TYPE'][_0x4c3b52(0x2ae)]),$[_0x4c3b52(0x3fa)](0x10))[_0x4c3b52(0x1d9)](()=>{const _0x17c87f=_0x4c3b52;this[_0x17c87f(0x37a)]();}));}};Ie=vt([W(0x1,a[_0x570aba(0x33e)](Y[_0x570aba(0x1dc)])),W(0x2,a[_0x570aba(0x33e)](x)),W(0x3,a[_0x570aba(0x3e4)]),W(0x4,a['Inject'](a[_0x570aba(0x1fc)]))],Ie);const gt=0x1,mt=1.5;class Ae extends p['Shape']{constructor(_0x1e9d9c,_0x4571ce){const _0x4194a8=_0x570aba;super(_0x1e9d9c,_0x4571ce),h(this,_0x4194a8(0x1a1)),h(this,_0x4194a8(0x22d),!0x1),h(this,_0x4194a8(0x1c1)),h(this,'_name',''),h(this,_0x4194a8(0x1cf),'top'),h(this,_0x4194a8(0x2b6)),(_0x4571ce&&this[_0x4194a8(0x1f9)](_0x4571ce),this[_0x4194a8(0x3db)][_0x4194a8(0x2b8)](()=>this[_0x4194a8(0x1f9)]({'hovered':!0x0})),this[_0x4194a8(0x406)][_0x4194a8(0x2b8)](()=>this[_0x4194a8(0x1f9)]({'hovered':!0x1})));}[_0x570aba(0x1f9)](_0x53484d){const _0x302ff9=_0x570aba;var _0x55bf5d,_0x37e5a3,_0x4130b6,_0x40b34f,_0x126a1e,_0x22ef0f;this[_0x302ff9(0x1a1)]=(_0x55bf5d=_0x53484d[_0x302ff9(0x24d)])!=null?_0x55bf5d:this[_0x302ff9(0x1a1)],this[_0x302ff9(0x22d)]=(_0x37e5a3=_0x53484d[_0x302ff9(0x1bf)])!=null?_0x37e5a3:this[_0x302ff9(0x22d)],this['_range']=(_0x4130b6=_0x53484d[_0x302ff9(0x1c5)])!=null?_0x4130b6:this['_range'],this['_name']=(_0x40b34f=_0x53484d['name'])!=null?_0x40b34f:this[_0x302ff9(0x349)],this[_0x302ff9(0x1cf)]=(_0x126a1e=_0x53484d['labelPosition'])!=null?_0x126a1e:this[_0x302ff9(0x1cf)],this[_0x302ff9(0x2b6)]=(_0x22ef0f=_0x53484d['backgroundColor'])!=null?_0x22ef0f:this[_0x302ff9(0x2b6)],this[_0x302ff9(0x2c9)]({'width':_0x53484d[_0x302ff9(0x266)],'height':_0x53484d['height']});}[_0x570aba(0x389)](_0x3fb0bd){const _0x4efcf7=_0x570aba,{row:_0x48182e,column:_0x14bc9e}=_0x3fb0bd;if(_0x48182e>=this['_range'][_0x4efcf7(0x3f7)]&&_0x48182e<=this[_0x4efcf7(0x1c1)]['endRow']&&_0x14bc9e>=this[_0x4efcf7(0x1c1)]['startColumn']&&_0x14bc9e<=this[_0x4efcf7(0x1c1)]['endColumn']){this[_0x4efcf7(0x1f9)]({'hovered':!0x0});return;}this[_0x4efcf7(0x1f9)]({'hovered':!0x1});}[_0x570aba(0x1a8)](_0xf83195){return!0x1;}[_0x570aba(0x364)](_0x19b8a0){const _0x7b9b8e=_0x570aba;p[_0x7b9b8e(0x344)][_0x7b9b8e(0x1d6)](_0x19b8a0,{'width':this[_0x7b9b8e(0x266)],'height':this[_0x7b9b8e(0x36c)],'strokeWidth':mt,'stroke':this[_0x7b9b8e(0x1a1)],'evented':!0x1,'fill':this[_0x7b9b8e(0x2b6)]}),this[_0x7b9b8e(0x22d)]&&(_0x19b8a0[_0x7b9b8e(0x380)](),_0x19b8a0['transform'](0x1,0x0,0x0,0x1,this[_0x7b9b8e(0x266)],this[_0x7b9b8e(0x1cf)]===_0x7b9b8e(0x3ab)?0x0:-0x14),ee[_0x7b9b8e(0x1d6)](_0x19b8a0,{'text':this[_0x7b9b8e(0x349)],'color':this[_0x7b9b8e(0x1a1)]}),_0x19b8a0['restore']());}}var Ct=Object[_0x570aba(0x31c)],pt=(_0x2cc634,_0x54ecbb,_0x20bc91,_0xaf07a)=>{for(var _0x5b2b6b=_0xaf07a>0x1?void 0x0:_0xaf07a?Ct(_0x54ecbb,_0x20bc91):_0x54ecbb,_0x51b575=_0x2cc634['length']-0x1,_0x2d7e7c;_0x51b575>=0x0;_0x51b575--)(_0x2d7e7c=_0x2cc634[_0x51b575])&&(_0x5b2b6b=_0x2d7e7c(_0x5b2b6b)||_0x5b2b6b);return _0x5b2b6b;},ae=(_0x54ea3e,_0x125540)=>(_0x10ba05,_0x3cf1a9)=>_0x125540(_0x10ba05,_0x3cf1a9,_0x54ea3e);const bt=0x1389;let ve=class extends a[_0x570aba(0x338)]{constructor(_0x4caaa2,_0x4c2d58,_0x3784b7,_0xa7beda){const _0xe3d57b=_0x570aba;super(),h(this,'_cursors',new Set()),h(this,_0xe3d57b(0x2cb),null),(this[_0xe3d57b(0x2f7)]=_0x4caaa2,this[_0xe3d57b(0x181)]=_0x4c2d58,this[_0xe3d57b(0x288)]=_0x3784b7,this[_0xe3d57b(0x1b5)]=_0xa7beda,this['_init']());}['_init'](){const _0x64672b=_0x570aba;this[_0x64672b(0x181)][_0x64672b(0x37c)][_0x64672b(0x18d)]($[_0x64672b(0x25a)](this[_0x64672b(0x2ad)]),$[_0x64672b(0x1c2)](_0x1899e1=>{const _0x76ed63=_0x64672b;if(_0x1899e1){const _0x5ab0a7=_0x1899e1['sheetId'];return d[_0x76ed63(0x34d)](this['_collabCursorController']['getCollabCursors$'](this[_0x76ed63(0x2f7)]['unitId']),this[_0x76ed63(0x1b5)][_0x76ed63(0x3ee)])['pipe']($['map'](([_0x45be67,_0x5619db])=>{const _0x18f6ea=_0x76ed63,_0x3f05de=new Map();return _0x45be67[_0x18f6ea(0x247)]((_0x1947ce,_0x163568)=>{const _0x2743ba=_0x18f6ea;if(_0x1947ce['sheetID']===_0x5ab0a7){const _0x34141a={..._0x1947ce};_0x34141a[_0x2743ba(0x24d)]=this[_0x2743ba(0x1b5)][_0x2743ba(0x3f4)](_0x1947ce['color']),_0x3f05de['set'](_0x163568,_0x34141a);}}),{'skeleton':_0x1899e1,'cursors':_0x3f05de};}));}return d['of']({'skeleton':null,'cursors':new Map()});}))['subscribe'](({skeleton:_0x58ceb4,cursors:_0x264151})=>{const _0x4a1dbc=_0x64672b;this[_0x4a1dbc(0x33c)](),_0x58ceb4&&this['_updateCollabCursors'](_0x58ceb4,_0x264151);}),this[_0x64672b(0x181)][_0x64672b(0x37c)][_0x64672b(0x1d9)](_0x5e92df=>{const _0x43b747=_0x64672b;if(_0x5e92df==null)return;const {skeleton:_0x507ff2}=_0x5e92df,{scene:_0x30f1fb}=this[_0x43b747(0x2f7)];_0x30f1fb[_0x43b747(0x263)][_0x43b747(0x2b8)](a[_0x43b747(0x329)](_0x4412be=>{const _0x3b4433=_0x43b747;var _0x2c153f,_0x5b9fc2;const {offsetX:_0x31943f,offsetY:_0x2c92dd}=_0x4412be,{x:_0x2420eb,y:_0xf9a405}=_0x30f1fb[_0x3b4433(0x2a1)](p[_0x3b4433(0x278)][_0x3b4433(0x26b)]([_0x31943f,_0x2c92dd])),{scaleX:_0x39f2cb,scaleY:_0x50c786}=_0x30f1fb['getAncestorScale'](),_0xa89b1e=_0x30f1fb[_0x3b4433(0x321)](p['SHEET_VIEWPORT_KEY']['VIEW_MAIN']),_0x261806=_0x30f1fb['getVpScrollXYInfoByPosToVp'](p[_0x3b4433(0x278)][_0x3b4433(0x26b)]([_0x2420eb,_0xf9a405]),_0xa89b1e),_0x4d6694=_0x507ff2['getCellPositionByOffset'](_0x31943f,_0x2c92dd,_0x39f2cb,_0x50c786,_0x261806);((_0x2c153f=this['_lastPointer'])==null?void 0x0:_0x2c153f[_0x3b4433(0x26e)])===_0x4d6694[_0x3b4433(0x26e)]&&((_0x5b9fc2=this[_0x3b4433(0x2cb)])==null?void 0x0:_0x5b9fc2[_0x3b4433(0x2f0)])===_0x4d6694[_0x3b4433(0x2f0)]||this[_0x3b4433(0x285)][_0x3b4433(0x247)](_0x826d6e=>{const _0x51640c=_0x3b4433;_0x826d6e[_0x51640c(0x389)](_0x4d6694);});},0x64));});}[_0x570aba(0x20a)](_0x29e0d2,_0x208b62){const _0x4ea1e9=_0x570aba;var _0x4fbda6;const _0x1f27a0=(_0x4fbda6=this[_0x4ea1e9(0x181)][_0x4ea1e9(0x3cc)]())==null?void 0x0:_0x4fbda6[_0x4ea1e9(0x27c)];if(!_0x1f27a0)return;const _0x2663a5=this[_0x4ea1e9(0x21f)]();if(!_0x2663a5)return;this['_cursors'][_0x4ea1e9(0x247)](_0x5f34ef=>{const _0x36bcf8=_0x4ea1e9;_0x5f34ef[_0x36bcf8(0x3f8)]();});const {scene:_0x1ad430}=_0x2663a5,_0x3e01db=Et(Array['from'](_0x208b62[_0x4ea1e9(0x279)]()))[_0x4ea1e9(0x2fb)](_0x5d65c0=>{const _0x57d11a=_0x4ea1e9,{color:_0xa4a39b,range:_0x1ec1d3,name:_0x241045,selection:_0x58b809,sheetID:_0x204ce7}=_0x5d65c0,{startColumn:_0x5b6ee8,startRow:_0x170422,endColumn:_0xbcd041,endRow:_0xa71976}=_0x1ec1d3,_0x20f7d2=X[_0x57d11a(0x1c3)](_0x170422,_0x5b6ee8,_0x1ad430,_0x1f27a0),_0x3a3bc7=X[_0x57d11a(0x1c3)](_0xa71976,_0xbcd041,_0x1ad430,_0x1f27a0),{columnHeaderHeightAndMarginTop:_0x250570}=_0x1f27a0,{startX:_0x348737,startY:_0x6cb742}=_0x20f7d2,{endX:_0x5b906a,endY:_0x2effaf}=_0x3a3bc7,_0x2a59ad=_0x5b906a-_0x348737,_0x28f684=_0x2effaf-_0x6cb742,_0xe2b983={'labelPosition':_0x6cb742-_0x250570>=K?_0x57d11a(0x40a):_0x57d11a(0x3ab),'sheetID':_0x204ce7,'range':_0x1ec1d3,'color':_0xa4a39b,'name':_0x241045,'selection':_0x58b809,'left':_0x348737,'top':_0x6cb742,'width':_0x2a59ad,'height':_0x28f684,'evented':!0x1,'zIndex':bt};return new Ae(_0x241045,_0xe2b983);});_0x1ad430[_0x4ea1e9(0x22c)](_0x3e01db,gt),this['_cursors']=new Set(_0x3e01db);}[_0x570aba(0x33c)](){const _0x2a7062=_0x570aba;var _0x139022;(_0x139022=this[_0x2a7062(0x285)])==null||_0x139022[_0x2a7062(0x247)](_0x1225b9=>_0x1225b9['dispose']());}[_0x570aba(0x21f)](){const _0x5611cd=_0x570aba;return X[_0x5611cd(0x32d)](this['_context'][_0x5611cd(0x356)],this[_0x5611cd(0x2f7)]);}};ve=pt([ae(0x1,a['Inject'](X[_0x570aba(0x305)])),ae(0x2,a[_0x570aba(0x33e)](x)),ae(0x3,a[_0x570aba(0x33e)](a[_0x570aba(0x1fc)]))],ve);function Et(_0x376719){const _0x30293f=_0x570aba,_0x29b8f0=new Map();return _0x376719[_0x30293f(0x247)](_0x80dafd=>{const _0x13ab43=_0x30293f;if(_0x29b8f0['has'](_0x80dafd[_0x13ab43(0x19c)])){const _0x397795=_0x29b8f0[_0x13ab43(0x398)](_0x80dafd[_0x13ab43(0x19c)]);_0x397795[_0x13ab43(0x19b)]+=',\x20'+_0x80dafd[_0x13ab43(0x19b)];}else _0x29b8f0[_0x13ab43(0x1a2)](_0x80dafd['selection'],_0x80dafd);}),Array[_0x30293f(0x320)](_0x29b8f0[_0x30293f(0x279)]());}var E=function(){const _0x44c8ca=_0x570aba;return E=Object[_0x44c8ca(0x219)]||function(_0x320518){const _0xf7bbdf=_0x44c8ca;for(var _0x48a711,_0x1b9f7b=0x1,_0x3abbd1=arguments[_0xf7bbdf(0x214)];_0x1b9f7b<_0x3abbd1;_0x1b9f7b++){_0x48a711=arguments[_0x1b9f7b];for(var _0x5a6027 in _0x48a711)Object[_0xf7bbdf(0x282)][_0xf7bbdf(0x246)][_0xf7bbdf(0x210)](_0x48a711,_0x5a6027)&&(_0x320518[_0x5a6027]=_0x48a711[_0x5a6027]);}return _0x320518;},E[_0x44c8ca(0x2e9)](this,arguments);},Tt=function(_0x57d7a5,_0x3dfc79){const _0x1995c2=_0x570aba;var _0x414b3f={};for(var _0x1ea616 in _0x57d7a5)Object[_0x1995c2(0x282)][_0x1995c2(0x246)]['call'](_0x57d7a5,_0x1ea616)&&_0x3dfc79[_0x1995c2(0x308)](_0x1ea616)<0x0&&(_0x414b3f[_0x1ea616]=_0x57d7a5[_0x1ea616]);if(_0x57d7a5!=null&&typeof Object['getOwnPropertySymbols']==_0x1995c2(0x249)){for(var _0x338bdd=0x0,_0x1ea616=Object[_0x1995c2(0x2b5)](_0x57d7a5);_0x338bdd<_0x1ea616['length'];_0x338bdd++)_0x3dfc79[_0x1995c2(0x308)](_0x1ea616[_0x338bdd])<0x0&&Object[_0x1995c2(0x282)][_0x1995c2(0x2e0)][_0x1995c2(0x210)](_0x57d7a5,_0x1ea616[_0x338bdd])&&(_0x414b3f[_0x1ea616[_0x338bdd]]=_0x57d7a5[_0x1ea616[_0x338bdd]]);}return _0x414b3f;},pe=M[_0x570aba(0x3d6)](function(_0x515195,_0x2fa4b3){const _0x3483ce=_0x570aba;var _0x414918=_0x515195[_0x3483ce(0x270)],_0x18380c=_0x515195['id'],_0x495b44=_0x515195[_0x3483ce(0x400)],_0x5442cf=_0x515195[_0x3483ce(0x2c3)],_0x5383f0=Tt(_0x515195,['icon','id',_0x3483ce(0x400),_0x3483ce(0x2c3)]),_0x5bddec=_0x3483ce(0x3ef)[_0x3483ce(0x294)](_0x18380c,'\x20')[_0x3483ce(0x294)](_0x495b44||'')[_0x3483ce(0x34b)](),_0x12748b=M[_0x3483ce(0x1db)]('_'[_0x3483ce(0x294)](Dt()));return we(_0x414918,''[_0x3483ce(0x294)](_0x18380c),{'defIds':_0x414918['defIds'],'idSuffix':_0x12748b['current']},E({'ref':_0x2fa4b3,'className':_0x5bddec},_0x5383f0),_0x5442cf);});function we(_0x3f8ae5,_0x54efee,_0x439355,_0x308b3d,_0x21a781){const _0x5366f1=_0x570aba;return M[_0x5366f1(0x272)](_0x3f8ae5[_0x5366f1(0x218)],E(E({'key':_0x54efee},Ot(_0x3f8ae5,_0x439355,_0x21a781)),_0x308b3d),(Rt(_0x3f8ae5,_0x439355)[_0x5366f1(0x399)]||[])[_0x5366f1(0x2fb)](function(_0x47fd33,_0x877f4b){const _0x531060=_0x5366f1;return we(_0x47fd33,''[_0x531060(0x294)](_0x54efee,'-')[_0x531060(0x294)](_0x3f8ae5[_0x531060(0x218)],'-')[_0x531060(0x294)](_0x877f4b),_0x439355,void 0x0,_0x21a781);}));}function Ot(_0x38ac40,_0x579267,_0x5bf1a9){const _0x528688=_0x570aba;var _0x20b1dc=E({},_0x38ac40[_0x528688(0x379)]);_0x5bf1a9!=null&&_0x5bf1a9[_0x528688(0x33b)]&&_0x20b1dc['fill']===_0x528688(0x33b)&&(_0x20b1dc['fill']=_0x5bf1a9['colorChannel1']),_0x38ac40[_0x528688(0x218)]===_0x528688(0x3c3)&&_0x20b1dc['id']&&(_0x20b1dc['id']=_0x20b1dc['id']+_0x579267[_0x528688(0x264)]),Object[_0x528688(0x208)](_0x20b1dc)[_0x528688(0x247)](function(_0x16d417){const _0x2e6be1=_0x528688;var _0x368d91=_0x16d417[0x0],_0x32af19=_0x16d417[0x1];_0x368d91===_0x2e6be1(0x3c3)&&typeof _0x32af19==_0x2e6be1(0x28d)&&(_0x20b1dc[_0x368d91]=_0x32af19[_0x2e6be1(0x2fc)](/url\(#(.*)\)/,_0x2e6be1(0x238)[_0x2e6be1(0x294)](_0x579267[_0x2e6be1(0x264)],')')));});var _0x1695f1=_0x579267['defIds'];return!_0x1695f1||_0x1695f1[_0x528688(0x214)]===0x0||(_0x38ac40[_0x528688(0x218)]===_0x528688(0x2f4)&&_0x20b1dc['xlink:href']&&(_0x20b1dc['xlink:href']=_0x20b1dc['xlink:href']+_0x579267[_0x528688(0x264)]),Object[_0x528688(0x208)](_0x20b1dc)[_0x528688(0x247)](function(_0x406d9c){const _0x4559d1=_0x528688;var _0x3fab1a=_0x406d9c[0x0],_0x3551b9=_0x406d9c[0x1];typeof _0x3551b9==_0x4559d1(0x28d)&&(_0x20b1dc[_0x3fab1a]=_0x3551b9['replace'](/url\(#(.*)\)/,'url(#$1'['concat'](_0x579267[_0x4559d1(0x264)],')')));})),_0x20b1dc;}function Rt(_0x4ba979,_0x5210a9){const _0x58d872=_0x570aba;var _0x482077,_0x511570=_0x5210a9[_0x58d872(0x1be)];return!_0x511570||_0x511570[_0x58d872(0x214)]===0x0?_0x4ba979:_0x4ba979[_0x58d872(0x218)]===_0x58d872(0x32f)&&(!((_0x482077=_0x4ba979['children'])===null||_0x482077===void 0x0)&&_0x482077[_0x58d872(0x214)])?E(E({},_0x4ba979),{'children':_0x4ba979['children'][_0x58d872(0x2fb)](function(_0x36558b){const _0x207a3b=_0x58d872;return typeof _0x36558b[_0x207a3b(0x379)]['id']==_0x207a3b(0x28d)&&_0x511570&&_0x511570[_0x207a3b(0x308)](_0x36558b[_0x207a3b(0x379)]['id'])>-0x1?E(E({},_0x36558b),{'attrs':E(E({},_0x36558b[_0x207a3b(0x379)]),{'id':_0x36558b[_0x207a3b(0x379)]['id']+_0x5210a9[_0x207a3b(0x264)]})}):_0x36558b;})}):_0x4ba979;}function Dt(){const _0x15cea2=_0x570aba;return Math[_0x15cea2(0x334)]()[_0x15cea2(0x1ac)](0x24)[_0x15cea2(0x36f)](0x2,0x8);}pe['displayName']=_0x570aba(0x300);var Ut={'tag':_0x570aba(0x24e),'attrs':{'fill':'none','viewBox':_0x570aba(0x2e1),'width':_0x570aba(0x1eb),'height':_0x570aba(0x1eb)},'children':[{'tag':'g','attrs':{'clipPath':_0x570aba(0x3e9)},'children':[{'tag':_0x570aba(0x24a),'attrs':{'stroke':_0x570aba(0x388),'d':_0x570aba(0x3de),'strokeLinecap':'round','strokeLinejoin':'round','strokeWidth':1.2}}]},{'tag':_0x570aba(0x32f),'attrs':{},'children':[{'tag':'clipPath','attrs':{'id':_0x570aba(0x327)},'children':[{'tag':_0x570aba(0x24a),'attrs':{'fill':_0x570aba(0x38d),'d':_0x570aba(0x2ec)}}]}]}],'defIds':[_0x570aba(0x327)]},ye=M[_0x570aba(0x3d6)](function(_0x55e03e,_0x5a5ed7){const _0x3281f9=_0x570aba;return M['createElement'](pe,Object[_0x3281f9(0x219)]({},_0x55e03e,{'id':_0x3281f9(0x25c),'ref':_0x5a5ed7,'icon':Ut}));});ye['displayName']=_0x570aba(0x1cc);var Nt={'tag':'svg','attrs':{'fill':_0x570aba(0x216),'viewBox':_0x570aba(0x2b1),'width':'1em','height':_0x570aba(0x1eb)},'children':[{'tag':'g','attrs':{'clipPath':_0x570aba(0x1b4)},'children':[{'tag':_0x570aba(0x24a),'attrs':{'stroke':_0x570aba(0x388),'d':_0x570aba(0x199),'strokeLinecap':_0x570aba(0x215),'strokeLinejoin':'round','strokeWidth':1.2}}]},{'tag':_0x570aba(0x32f),'attrs':{},'children':[{'tag':_0x570aba(0x3c1),'attrs':{'id':_0x570aba(0x361)},'children':[{'tag':'path','attrs':{'fill':_0x570aba(0x38d),'d':'M0\x200H16V16H0z','transform':'translate(.97)'}}]}]}],'defIds':[_0x570aba(0x361)]},$e=M[_0x570aba(0x3d6)](function(_0x67e37f,_0x10fc43){const _0x4a60a1=_0x570aba;return M[_0x4a60a1(0x272)](pe,Object['assign']({},_0x67e37f,{'id':'on-line-single','ref':_0x10fc43,'icon':Nt}));});$e[_0x570aba(0x372)]=_0x570aba(0x409);function Mt(_0xf3b2fb){const _0x557a86=_0x570aba;switch(_0xf3b2fb){case u[_0x557a86(0x39d)][_0x557a86(0x1ca)]:return _0x557a86(0x1c6);case u['CollaborationStatus']['CONFLICT']:return _0x557a86(0x3e8);case u[_0x557a86(0x39d)][_0x557a86(0x1da)]:return _0x557a86(0x1de);case u[_0x557a86(0x39d)][_0x557a86(0x1e8)]:return _0x557a86(0x2ff);case u['CollaborationStatus']['AWAITING']:case u['CollaborationStatus'][_0x557a86(0x377)]:return _0x557a86(0x23e);case u[_0x557a86(0x39d)][_0x557a86(0x1c4)]:case u['CollaborationStatus']['PENDING']:return _0x557a86(0x39f);}}function _0x25b5(){const _0x1208cb=['_getSheetObject','actions','MoveRangeCommandId','with','saveOfflineData','RefRangeService','99HOXpOV','YUUMI_RATE_OVER_LIMIT','has','@univerjs/sheets-ui','DocStateChangeManagerService','INVALID_INVITE_CODE','CollaborationEvent','addObjects','_hovered','handleInsertRow','EffectRefRangId','COMPLETION_FINISHED','UNRECOGNIZED','all','_docTransformIMECacheService','RemoteUniscriptService','APPLY_NON_SEQUENTIAL_REVISION','roomMembers','imageSourceType','url(#$1','_getSaveTimeout','LOCAL_CACHE_INTERVAL','shareReplay','_cachedData','_transformService','collabStatus.syncing','INTERNAL_ERROR','@univerjs/rpc','_collaborationController','rxjs','setAlpha','_hover','setTimeout','hasOwnProperty','forEach','contains','function','path','_collabCursorState$','@univerjs/ui','color','svg','_updateLocalCursor','text','@univerjs/docs','body','_scheduleHeartbeat','_registerDependencies','_saveTaskMap','ranges','CollaborationUIEventId','_send','LICENSE_IMPORT_SIZE_EXCEEDED','takeUntil','distinctUntilChanged','off-line-single','TEXT','add','serializeRangeWithSheet','_messageService','getActiveSheet','_initEvent','onPointerMove$','idSuffix','debounceTime','width','10459630HUwana','useCallback','REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY','_handleEvent','FromArray','getColor','_memberService','column','lineTo','icon','LICENSE_MAX_UNITS_EXCEEDED','createElement','OTHER_CLIENTS_EDITING','Tools','DOC_RANGE_TYPE','unitId','_collabSessionService','Vector2','values','div','_handleJoinEvent','skeleton','_instanceService','_session','CLOSE_ROOM','pluginName','unshift','prototype','Disposable','5171620QEydhD','_cursors','black','14dcvCCm','_collabCursorController','LOGIN_FAILED','redoState','data','delete','string','source','HTTPService','_registerRenderDependencies','deepClone','assignAColorForMemberID','push','concat','@univerjs-pro/collaboration','_cursorInfo$','NodePositionConvertToRectRange','getMergeData','invokeId','getSheetId','SetTextSelectionsOperation','SetSelectionsOperation','CollaborationSessionService','_unitOnClients','_collaborationUIEventService','Module','getRelativeToViewportCoord','_disabled','_selfUnitIDs','SOCKET_FAILED_RETRY','connectInjector','ONLINE','_refRangeService','LICENSE_DISTRO_REJECTED','createInstance','size','transformRemoteChangeset','then','dispose$','resize','transformMutationsWithChangeset','_transformUndoRedoStack','0\x200\x2017\x2016','moveTo','selections','handleInsertRangeMoveDown','getOwnPropertySymbols','_backgroundColor','SessionStatus','subscribeEvent','INVITE_CODE_REQUIRED','884IOdChC','BehaviorSubject','runRefRangeMutations','transformStateCache','getCurrentRevOfUnit','getRenderById','_entities','_handleHover','exhaustSavingTask','extend','JOIN_ROOM_FAILED','toStringTag','setConfig','green.600','UPDATE_CURSOR','transformByState','SUBMIT_CHANGESET_TIMEOUT','_lastPointer','disposeWithMe','Optional','CollaborationUIEventService','urlChange$','_shapes','INVITE_CODE_HAS_BEEN_UES','APPLY_PERMISSION_DENIED','generateRandomId','IImageIoService','red.300','getStateCache','WebSocketService','clearTimeout','DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT','complete','_imageIoService','_drawAnchor','_drawRectRange','params','_handleLeaveEvent','propertyIsEnumerable','0\x200\x2016\x2016','collaboration.single-unit.warning','getValue','clearInterval','isTransformMutationsWithChangesetSuccess','session.connection-failed','_getScale','searchParams','apply','YUUMI_PROMPT_MAX_TOKENS_EXCEEDED','error','M0\x200H16V16H0z','getUnitId','createIdentifier','MOBILE_HAS_BEEN_BOUND','row','isEditing','UniverCollaborationClientUIPlugin','defineProperty','use','href','mergeOverrideWithDependencies','_context','USER_NOT_INVITED_CODE','handleIRemoveRow','rgba(255,\x20255,\x20255,\x200.01)','map','replace','_eventUnsubscribe','_docStateChangeManagerService','collabStatus.notCollab','UniverIcon','DependentOn','_renderManagerService','getCurrentSelections','_urlService','SheetSkeletonManagerService','_roomMembers$','CollaborationDataLoaderController','indexOf','onRendered','onTransformChange$','_updateURLWithCurrentState','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','getUndoRedoMutationParamsCache','eventID','toRgbString','_colorAssignService','_saveCache','_initEntityListener','send','_getAnchorBounding','getTypeOfUnitAdded$','sessionTicket','IURLService','event$','findNodePositionByCharIndex','sessionStatus$','getParam','getOwnPropertyDescriptor','6lLHbdR','_init','univer-flex\x20univer-mr-2\x20univer-text-xl','from','getViewport','[CollaborationDataLoaderController]','APPLY_DUPLICATED','Unknown\x20user','next','LICENSE_EXPORT_SIZE_EXCEEDED','off-line-single_clip0_910_343','subUnitId','debounce','_docSkeletonManagerService','YUUMI_URL_COL_OUT_OF_RANGE','CHANGESET_REVISION_CONFILICT','getSheetObject','location','defs','[RemoteUniscriptService]:\x20no\x20focused\x20unit','activeSheet$','Tooltip','_assignedColors','random','show','CollaborationSocketService','max','RxDisposable','Failed','subunit','colorChannel1','_removeCollabCursors','ColorKit','Inject','YUUMI_SUBSCRIPTION_NOT_FOUND','_render','ACTIVE_UNIT_EVENT_CHANNEL','evenodd','collab-text-anchor-','Rect','_initResize','disposeUnit','_document','SetWorksheetActivateCommand','_name','includes','trim','WECHAT_HAS_BEEN_BOUND','combineLatest','m1Prime','118568gBaQUN','MUTATION','_status$','univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','INVALID_ARGUMENT','_initCommandExecutedListener','beginPath','unit','debug','collabCursorState$','replaceState','ISnapshotServerService','YUUMI_AI_RUN_FAILED','PERMISSION_DENIED','_transformHistoryAndStateStack','restore','IRenderManagerService','executeCommand','on-line-single_clip0_910_349','_colorIndex','UNIVER_SHEET','_draw','IRemoteInstanceService','_cursorShapes','_handleHeartbeatEvent','_univerInstanceService','_heartbeatTimer','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','min','height','getSheetBySheetId','Shape','substring','saveImage','Rectangle','displayName','origin','_docClipboardService','_getSessionTicket','addEventListener','AWAITING_WITH_PENDING','CollaborationController','attrs','_refreshCollabCursors','APPLY_REVISION_CONFILICT','currentSkeleton$','_online','_scheduleClearOtherTimer','NOT_FOUND','save','onCommandExecuted','MessageType','RemoveRowCommandId','_onCursorUpdate','type','_scheduleSaving','setItem','currentColor','onMouseMove','ISocketService','Plugin','split','#fff','CONFLICT','getItem','INotificationService','_startDocCollabCursor','CollaborationStatusDisplay','_localCacheService','deserializeRangeWithSheet','RevisionService','getConfig','unitID','get','children','YUUMI_ASYNCIO_CANCELLED','runId','Injector','CollaborationStatus','SetDocZoomRatioOperation','collabStatus.synced','328056VdlLtd','DocCollaborationEntity','TEXT_RANGE_LAYER_INDEX','permission.content','DEFAULT_WS_SESSION_TICKET_URL','asObservable','_ensureSubject','@univerjs/core','hide','IBeforeCloseService','UNDEFINED','bottom','@univerjs/engine-formula','history','_doCreateSocket','fromEventSubject','transformIMECache','ILocalCacheService','BrowserCollaborationSocketService','uni.network.url-service','editingUnit','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','registerRefRange','_entityInit$','USERS_LEAVE','_toggleOnline','rxjs/operators','_anchor','@univerjs/docs-ui','textRanges','LOCAL_CACHE_INTERVAL_KEY','_initStatusListener','setStateCache','clipPath','RichTextEditingMutation','mask','updateOfflineData','toDisposable','pushState','cursorInfo','removeParam','newValue','createSocket','addObject','getCurrent','SNAPSHOT_HAS_BEEN_REMOVED','@univerjs/sheets','LocaleService','YUUMI_UNABLE_LOAD_URL','IDocClipboardService','unsubscribe','7608tCiRDr','DeleteRangeMoveLeftCommandId','_getMergeRange','forwardRef','post','INVITE_CODE_ALREADY_BOUND','docStateChange$','SNAPSHOT_INVALID_SNAPSHOT','onPointerEnter$','_beforeCloseService','handleInsertRangeMoveRight','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','YUUMI_TABLE_NOT_FOUND_IN_UNIT','_unitStatus','getAncestorScale','yellow.400','YUUMI_NO_CUBOID_FOR_QUESTION','ICommandService','mapTo','find','_transformPreviousActiveRange','collabStatus.conflict','url(#off-line-single_clip0_910_343)','fillText','session.collaboration-timeout','getActiveRange','parse','currentTheme$','univerjs-icon\x20univerjs-icon-','fillStyle','startsWith','some','_syncEditingCollabCursorService','getColorFromTheme','syncEditingCollabCursor','font','startRow','makeDirty','COLORS','throttleTime','_docTransformSelectionsService','transformSelections','cursorInfo$','_startSheetCollabCursor','getMemberID','className','doc.mutation.rich-text-editing','transformMutation','getCollabCursors$','_clearOtherTimers','IUIPartsService','onPointerLeave$','handleIRemoveCol','getUniverSheetInstance','OnLineSingle','top','fill','MemberService','useDependency','addHandlerCallback','engine','RemoveColCommandId','YUUMI_ALL_TABLES_IS_INVALID','_sheetSkeletonManagerService','code','_scene','ITransformService','registerRenderModule','_removeClearOtherTimer','setParam','_onCursorDelete','getCurrentUnitForType','SheetCollabCursorShape','search','isArray','pipe','InsertRowCommandId','UniverInstanceType','getRangePointData','ALREADY_EXISTS','wsSessionTicketUrl','ILogService','_setupBeforeClosingHandler','_createSocketURL','_dataLoaderService','isTransformMutationFailure','runOnServer','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','_localeService','name','selection','@univerjs/network','roomMembers$','25217313FqYbmp','_anchorDot','_color','set','_hideTimer','...','IUniverInstanceService','_cursor','merge','triggerDblclick','filter','APPLY_REJECT','_id','toString','arc','permission.title','result','popstate','UnitStatus','DocSelectionManagerService','requireSession','url(#on-line-single_clip0_910_349)','_themeService','_notificationService','saveTaskMap','executionId','ENSURE_SNAPSHOT_EXECUTION','_initDependencies','getOffsetConfig','getMember','override','defIds','hovered','loadOfflineData','_range','switchMap','getCoordByCell','SYNCED','range','collabStatus.offline','InsertColCommandId','_setupSubUnitSync','InsertRangeMoveRightCommandId','OFFLINE','_textBubble','OffLineSingle','EMAIL_HAS_BEEN_BOUND','Error','_labelPosition','_drawTextRange','_httpService','NodePositionConvertToCursor','DataLoaderService','dispose','collaboration.closeRoom','drawWith','CONNECTOR_DATA_TOO_LARGE','_revisionService','subscribe','FETCH_MISS','useRef','DocSkeletonManagerService','mutations','collabStatus.fetchMiss','flatMap','_initStatusComponent','registerDependencies','handleInsertCol','_updateSubUnitFromURLParams','_logService','UNAUTHENTICATED','DesktopCollaborationStatusDisplayController','_docSyncEditingCollabCursorService','NOT_COLLAB','collab-client.tooltip.reconnect','react','1em','_onRefRangeChange','getCollabEntity$','IMessageService','blue.400','_toggleOffline','getLocalCacheKey','jsx','RECT','setInterval','NO_OTHER_CLIENTS_EDITING','_config','_injector','getSkeleton','setShapeProps','entityInit$','SheetsSelectionsService','ThemeService','_configService','DocIMEInputManagerService','7101430JxmXXO','getDocRanges','measureText','_localStorageService','Subject','_commandService','IConfigService','isActive','_docTransformStateCacheService','entries','m2Prime','_updateCollabCursors','TOO_MANY_REQUESTS','key','PY_RUNTIME_SCRIPT_ERROR','stringify','init','call','Warning','UNIVER_DOC','SOCKET_FAILED','length','round','none','@univerjs-pro/collaboration-client','tag','assign','undoState','_uiPartsService','InsertRangeMoveDownCommandId','getFocusedUnit','handleDeleteRangeMoveUp'];_0x25b5=function(){return _0x1208cb;};return _0x25b5();}function xe(_0x54968b){const _0x3f9733=_0x570aba,{status$:_0x5ec8ef}=_0x54968b,_0x44273e=T['useObservable'](_0x5ec8ef,u[_0x3f9733(0x39d)][_0x3f9733(0x1e8)]),_0x4cb653=T[_0x3f9733(0x17c)](a['LocaleService']),_0x3f6916=T[_0x3f9733(0x17c)](u[_0x3f9733(0x29d)]),_0x4ba233=_0x44273e!==u[_0x3f9733(0x39d)][_0x3f9733(0x1ca)],_0xb21115=_0x4cb653['t'](Mt(_0x44273e)),_0xa55363=_0x4ba233?P[_0x3f9733(0x1f2)]($e,{}):P[_0x3f9733(0x1f2)](ye,{}),_0x14e954=M[_0x3f9733(0x268)](()=>{_0x4ba233||_0x3f6916['reconnect']();},[_0x4ba233,_0x3f6916]);function _0xf72760(){const _0x4011e9=_0x3f9733;return P['jsxs'](_0x4011e9(0x27a),{'className':'univer-flex\x20univer-items-center','onClick':_0x14e954,'children':[P[_0x4011e9(0x1f2)]('div',{'className':D['clsx'](_0x4011e9(0x31f),{'univer-text-green-500':_0x4ba233,'univer-text-red-500':!_0x4ba233}),'children':_0xa55363}),P['jsx']('div',{'className':_0x4011e9(0x352),'children':_0xb21115})]});}return _0x4ba233?_0xf72760():P[_0x3f9733(0x1f2)](D[_0x3f9733(0x332)],{'title':_0x4cb653['t'](_0x3f9733(0x1e9)),'children':_0xf72760()});}var Lt=Object[_0x570aba(0x31c)],Pt=(_0x3a5143,_0x4f52b5,_0x3725ae,_0x2debc9)=>{const _0x46e06c=_0x570aba;for(var _0xdb71d6=_0x2debc9>0x1?void 0x0:_0x2debc9?Lt(_0x4f52b5,_0x3725ae):_0x4f52b5,_0x5a123d=_0x3a5143[_0x46e06c(0x214)]-0x1,_0x3803c8;_0x5a123d>=0x0;_0x5a123d--)(_0x3803c8=_0x3a5143[_0x5a123d])&&(_0xdb71d6=_0x3803c8(_0xdb71d6)||_0xdb71d6);return _0xdb71d6;},V=(_0x4d35d8,_0x515dd5)=>(_0x5f114f,_0x3627d9)=>_0x515dd5(_0x5f114f,_0x3627d9,_0x4d35d8);exports['DesktopCollaborationStatusDisplayController']=class extends a['Disposable']{constructor(_0xebe146,_0x44cdbf,_0x27e9cb,_0x12117b){const _0x23dc59=_0x570aba;super(),h(this,_0x23dc59(0x351),new d[(_0x23dc59(0x2bb))](u['CollaborationStatus'][_0x23dc59(0x1e8)])),(this[_0x23dc59(0x368)]=_0xebe146,this[_0x23dc59(0x1f7)]=_0x44cdbf,this[_0x23dc59(0x241)]=_0x27e9cb,this['_uiPartsService']=_0x12117b,this['_initStatusComponent'](),this[_0x23dc59(0x3bf)]());}[_0x570aba(0x3bf)](){const _0x2dff4b=_0x570aba;this[_0x2dff4b(0x2cc)](this[_0x2dff4b(0x368)]['focused$'][_0x2dff4b(0x18d)](d[_0x2dff4b(0x1c2)](()=>{const _0x2d84dc=_0x2dff4b,_0x1c78bc=this[_0x2d84dc(0x368)]['getFocusedUnit']();return _0x1c78bc?this['_collaborationController'][_0x2d84dc(0x1ed)](_0x1c78bc[_0x2d84dc(0x2ed)]()):d['of'](null);}),d[_0x2dff4b(0x1c2)](_0x15737e=>_0x15737e?_0x15737e['status$']:d['of'](u[_0x2dff4b(0x39d)]['NOT_COLLAB'])))[_0x2dff4b(0x1d9)](_0x5d11bd=>{this['_status$']['next'](_0x5d11bd);}));}[_0x570aba(0x1e0)](){const _0x156ef8=_0x570aba;this[_0x156ef8(0x2cc)](this[_0x156ef8(0x21b)]['registerComponent'](T['BuiltInUIPart']['HEADER_MENU'],()=>T[_0x156ef8(0x2a5)](At({'status$':this[_0x156ef8(0x351)][_0x156ef8(0x3a5)]()}),this[_0x156ef8(0x1f7)])));}},exports['DesktopCollaborationStatusDisplayController']=Pt([V(0x0,a[_0x570aba(0x1a5)]),V(0x1,a['Inject'](a[_0x570aba(0x39c)])),V(0x2,a[_0x570aba(0x33e)](u[_0x570aba(0x378)])),V(0x3,T[_0x570aba(0x405)])],exports['DesktopCollaborationStatusDisplayController']);function At(_0x3cd8b7){const {status$:_0x4e7b46}=_0x3cd8b7;return function(){return P['jsx'](xe,{'status$':_0x4e7b46});};}var wt=Object[_0x570aba(0x31c)],yt=(_0x4b4fc3,_0xb83c78,_0x4f847b,_0x2da540)=>{for(var _0x149d06=_0x2da540>0x1?void 0x0:_0x2da540?wt(_0xb83c78,_0x4f847b):_0xb83c78,_0x2e3ecd=_0x4b4fc3['length']-0x1,_0x31d074;_0x2e3ecd>=0x0;_0x2e3ecd--)(_0x31d074=_0x4b4fc3[_0x2e3ecd])&&(_0x149d06=_0x31d074(_0x149d06)||_0x149d06);return _0x149d06;},y=(_0x204519,_0xf234a2)=>(_0x10dfab,_0x1b3c16)=>_0xf234a2(_0x10dfab,_0x1b3c16,_0x204519);let q=class extends a[_0x570aba(0x283)]{constructor(_0x111159,_0x1c3181,_0xf6aea3,_0x266b5e,_0x2395a3,_0x758503){const _0x3c1ac3=_0x570aba;super(),this['_beforeCloseService']=_0x111159,this[_0x3c1ac3(0x393)]=_0x1c3181,this[_0x3c1ac3(0x29f)]=_0xf6aea3,this[_0x3c1ac3(0x260)]=_0x266b5e,this[_0x3c1ac3(0x1b6)]=_0x2395a3,this[_0x3c1ac3(0x19a)]=_0x758503,this[_0x3c1ac3(0x194)](),this[_0x3c1ac3(0x262)]();}[_0x570aba(0x194)](){const _0x507811=_0x570aba;this[_0x507811(0x2cc)](this[_0x507811(0x3dc)]['registerBeforeClose'](()=>{const _0x4aab06=_0x507811;if(this[_0x4aab06(0x393)]['saveTaskMap']['size'])return this['_localeService']['t']('collaboration-client.offline-data-not-saved');}));}[_0x570aba(0x262)](){const _0x21a9a4=_0x570aba;this[_0x21a9a4(0x2cc)](this[_0x21a9a4(0x29f)][_0x21a9a4(0x318)][_0x21a9a4(0x1d9)](_0x105175=>{const _0x2e26f9=_0x21a9a4;_0x105175['id']===u[_0x2e26f9(0x257)]['OTHER_CLIENT_EDITING']&&this[_0x2e26f9(0x260)][_0x2e26f9(0x335)]({'type':D[_0x2e26f9(0x382)]['Warning'],'content':this[_0x2e26f9(0x19a)]['t'](_0x2e26f9(0x2e2))}),_0x105175['id']===u[_0x2e26f9(0x257)][_0x2e26f9(0x27f)]&&this[_0x2e26f9(0x260)][_0x2e26f9(0x335)]({'type':D[_0x2e26f9(0x382)][_0x2e26f9(0x211)],'content':this[_0x2e26f9(0x19a)]['t'](_0x2e26f9(0x1d5))}),_0x105175['id']===u[_0x2e26f9(0x257)][_0x2e26f9(0x35c)]&&this[_0x2e26f9(0x1b6)][_0x2e26f9(0x335)]({'title':this['_localeService']['t'](_0x2e26f9(0x1ae)),'content':this[_0x2e26f9(0x19a)]['t'](_0x2e26f9(0x3a3)),'type':_0x2e26f9(0x2eb),'duration':0x0}),_0x105175['id']===u[_0x2e26f9(0x257)][_0x2e26f9(0x38e)]&&this[_0x2e26f9(0x260)][_0x2e26f9(0x335)]({'type':D['MessageType'][_0x2e26f9(0x1ce)],'content':this[_0x2e26f9(0x19a)]['t'](_0x2e26f9(0x1d5))+'('+_0x105175[_0x2e26f9(0x28b)]+')'}),_0x105175['id']===u['CollaborationUIEventId'][_0x2e26f9(0x2c4)]&&this[_0x2e26f9(0x260)][_0x2e26f9(0x335)]({'type':D[_0x2e26f9(0x382)][_0x2e26f9(0x211)],'content':this[_0x2e26f9(0x19a)]['t'](_0x105175[_0x2e26f9(0x28b)]||'')}),_0x105175['id']===u[_0x2e26f9(0x257)][_0x2e26f9(0x2a4)]&&this['_messageService']['show']({'type':D[_0x2e26f9(0x382)]['Warning'],'content':this[_0x2e26f9(0x19a)]['t']('session.will-retry')}),_0x105175['id']===u[_0x2e26f9(0x257)][_0x2e26f9(0x213)]&&this['_messageService'][_0x2e26f9(0x335)]({'type':D[_0x2e26f9(0x382)][_0x2e26f9(0x1ce)],'content':this[_0x2e26f9(0x19a)]['t'](_0x2e26f9(0x2e6))}),_0x105175['id']===u[_0x2e26f9(0x257)][_0x2e26f9(0x2ca)]&&this[_0x2e26f9(0x260)][_0x2e26f9(0x335)]({'type':D[_0x2e26f9(0x382)][_0x2e26f9(0x1ce)],'content':this[_0x2e26f9(0x19a)]['t'](_0x2e26f9(0x3eb))});}));}};q=yt([y(0x0,T[_0x570aba(0x3a9)]),y(0x1,u[_0x570aba(0x3b1)]),y(0x2,a['Inject'](u[_0x570aba(0x2ce)])),y(0x3,T[_0x570aba(0x1ee)]),y(0x4,T[_0x570aba(0x390)]),y(0x5,a[_0x570aba(0x33e)](a[_0x570aba(0x3cf)]))],q);const $t='collaboration-client-ui.config',Ue={},be=a[_0x570aba(0x2ee)](_0x570aba(0x3b3));var xt=Object[_0x570aba(0x31c)],jt=(_0x17dac4,_0x13cea0,_0x419c02,_0x3daa5b)=>{const _0x252a9a=_0x570aba;for(var _0x5bdb75=_0x3daa5b>0x1?void 0x0:_0x3daa5b?xt(_0x13cea0,_0x419c02):_0x13cea0,_0x446209=_0x17dac4[_0x252a9a(0x214)]-0x1,_0x523196;_0x446209>=0x0;_0x446209--)(_0x523196=_0x17dac4[_0x446209])&&(_0x5bdb75=_0x523196(_0x5bdb75)||_0x5bdb75);return _0x5bdb75;},H=(_0x1c68ba,_0x284dae)=>(_0x26316a,_0x1f780d)=>_0x284dae(_0x26316a,_0x1f780d,_0x1c68ba);exports['CollaborationDataLoaderController']=class extends a[_0x570aba(0x338)]{constructor(_0x467282,_0x2828b5,_0x2d63ff,_0x5941a9,_0x48790a){const _0xb85e6d=_0x570aba;super(),this['_urlService']=_0x467282,this['_logService']=_0x2828b5,this['_commandService']=_0x2d63ff,this[_0xb85e6d(0x196)]=_0x5941a9,_0x48790a?_0x48790a==null||_0x48790a['whenReady']()['then'](()=>this[_0xb85e6d(0x31e)]()):(this[_0xb85e6d(0x1e4)][_0xb85e6d(0x357)](_0xb85e6d(0x322),'No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.'),this[_0xb85e6d(0x31e)]());}async[_0x570aba(0x31e)](){const _0x417c13=_0x570aba,_0x51101a=this[_0x417c13(0x304)][_0x417c13(0x31b)](_0x417c13(0x356)),_0x1455d6=this[_0x417c13(0x304)][_0x417c13(0x31b)](_0x417c13(0x385)),_0x4bd4fd=this[_0x417c13(0x304)]['getParam'](_0x417c13(0x33a));if(!_0x51101a||!_0x1455d6){this[_0x417c13(0x1e4)][_0x417c13(0x357)](_0x417c13(0x322),_0x417c13(0x36a));return;}const _0x8b2bfb=await this['_dataLoaderService']['loadUnit'](_0x51101a,Number(_0x1455d6),_0x4bd4fd);_0x8b2bfb&&_0x8b2bfb instanceof a['Workbook']&&this[_0x417c13(0x1c8)](_0x8b2bfb);}async['_setupSubUnitSync'](_0x2b44c9){const _0xb58471=_0x570aba;await this['_updateSubUnitFromURLParams'](_0x2b44c9),_0x2b44c9[_0xb58471(0x331)]['pipe'](d[_0xb58471(0x25a)](this[_0xb58471(0x2ad)]))['subscribe'](_0x59f804=>{const _0x4989c7=_0xb58471;_0x59f804&&this[_0x4989c7(0x30b)](_0x59f804);}),this[_0xb58471(0x304)][_0xb58471(0x2cf)][_0xb58471(0x18d)](d['takeUntil'](this[_0xb58471(0x2ad)]))['subscribe'](()=>this['_updateSubUnitFromURLParams'](_0x2b44c9));}[_0x570aba(0x30b)](_0x52271a,_0x26a9da=!0x1){const _0x16ea76=_0x570aba,_0x287970=this[_0x16ea76(0x304)][_0x16ea76(0x31b)](_0x16ea76(0x33a));_0x52271a['getSheetId']()!==_0x287970&&this['_urlService']['setParam'](_0x16ea76(0x33a),_0x52271a[_0x16ea76(0x29a)](),_0x26a9da);}async[_0x570aba(0x1e3)](_0x504ec8){const _0x9684a4=_0x570aba;var _0x2509db;const _0x3994c7=this[_0x9684a4(0x304)][_0x9684a4(0x31b)](_0x9684a4(0x33a));if(!_0x3994c7||!_0x504ec8[_0x9684a4(0x36d)](_0x3994c7)){const _0x441983=_0x504ec8['getUnhiddenWorksheets']()[0x0],_0x5b9df9=_0x504ec8[_0x9684a4(0x36d)](_0x441983);if(!_0x5b9df9)return;this[_0x9684a4(0x30b)](_0x5b9df9,!0x0),await this[_0x9684a4(0x204)][_0x9684a4(0x360)](g[_0x9684a4(0x348)]['id'],{'unitId':_0x504ec8[_0x9684a4(0x2ed)](),'subUnitId':_0x441983});return;}((_0x2509db=_0x504ec8[_0x9684a4(0x261)]())==null?void 0x0:_0x2509db[_0x9684a4(0x29a)]())!==_0x3994c7&&await this[_0x9684a4(0x204)][_0x9684a4(0x360)](g[_0x9684a4(0x348)]['id'],{'unitId':_0x504ec8['getUnitId'](),'subUnitId':_0x3994c7});}},exports['CollaborationDataLoaderController']=jt([H(0x0,be),H(0x1,a[_0x570aba(0x193)]),H(0x2,a[_0x570aba(0x3e4)]),H(0x3,a[_0x570aba(0x33e)](u[_0x570aba(0x1d3)])),H(0x4,a[_0x570aba(0x2cd)](Ke[_0x570aba(0x365)]))],exports[_0x570aba(0x307)]);var Bt=Object[_0x570aba(0x31c)],kt=(_0x4d3c03,_0xe0de56,_0x29caa6,_0x45f838)=>{const _0x414877=_0x570aba;for(var _0x1584b9=_0x45f838>0x1?void 0x0:_0x45f838?Bt(_0xe0de56,_0x29caa6):_0xe0de56,_0x39de79=_0x4d3c03[_0x414877(0x214)]-0x1,_0x4d4773;_0x39de79>=0x0;_0x39de79--)(_0x4d4773=_0x4d3c03[_0x39de79])&&(_0x1584b9=_0x4d4773(_0x1584b9)||_0x1584b9);return _0x1584b9;},ce=(_0x18c8d8,_0x157894)=>(_0x298a87,_0x6d0812)=>_0x157894(_0x298a87,_0x6d0812,_0x18c8d8);let z=class{constructor(_0x20cf7b,_0x4f9142,_0x13bd23){const _0x3bb3af=_0x570aba;this[_0x3bb3af(0x1f7)]=_0x20cf7b,this['_transformService']=_0x4f9142,this[_0x3bb3af(0x302)]=_0x13bd23;}[_0x570aba(0x3b0)](_0x1e7013){const _0x942445=_0x570aba;this[_0x942445(0x2b0)](_0x1e7013),this[_0x942445(0x3e7)](_0x1e7013);}[_0x570aba(0x2ab)](_0x406e7b){const _0x4276a3=_0x570aba,{unitID:_0x513037}=_0x406e7b,_0x952d8=this[_0x4276a3(0x302)]['getRenderById'](_0x513037)['with'](b[_0x4276a3(0x1fe)]),{redoCache:_0x4845e8}=_0x952d8[_0x4276a3(0x30d)]();if(_0x4845e8[_0x4276a3(0x214)]===0x0)return _0x406e7b;let _0xe8fe60=a[_0x4276a3(0x274)][_0x4276a3(0x291)](_0x406e7b[_0x4276a3(0x1dd)][0x0]);for(let _0x56be25=0x0;_0x56be25<_0x4845e8[_0x4276a3(0x214)];_0x56be25++){const _0x583ab0={'id':'doc.mutation.rich-text-editing','params':{..._0x4845e8[_0x56be25]}},_0x4e6b94=this['_transformService']['transformMutation'](_0xe8fe60,_0x583ab0,!0x1);if(m[_0x4276a3(0x197)](_0x4e6b94))throw _0x4e6b94['error'];_0xe8fe60=_0x4e6b94[_0x4276a3(0x34e)];}return{...a[_0x4276a3(0x274)][_0x4276a3(0x291)](_0x406e7b),'mutations':[_0xe8fe60]};}[_0x570aba(0x2b0)](_0x3ae709){const _0x1a9da6=_0x570aba,{unitID:_0x3a3091}=_0x3ae709,_0x3611c4=this[_0x1a9da6(0x302)]['getRenderById'](_0x3a3091)[_0x1a9da6(0x222)](b[_0x1a9da6(0x1fe)]),{undoCache:_0x377e84,redoCache:_0x4ab5b0}=_0x3611c4[_0x1a9da6(0x30d)]();if(_0x377e84[_0x1a9da6(0x214)]===0x0||_0x4ab5b0[_0x1a9da6(0x214)]===0x0)return;const _0x5ea2f0=[],_0x285a3b=[];let _0x13bedc=a[_0x1a9da6(0x274)][_0x1a9da6(0x291)](_0x3ae709['mutations'][0x0]),_0x138edb=a[_0x1a9da6(0x274)]['deepClone'](_0x3ae709[_0x1a9da6(0x1dd)][0x0]);for(let _0x422e49=_0x377e84[_0x1a9da6(0x214)]-0x1;_0x422e49>=0x0;_0x422e49--){const _0x5a8047={'id':'doc.mutation.rich-text-editing','params':{..._0x377e84[_0x422e49]}},_0x3ca4c9={'id':'doc.mutation.rich-text-editing','params':{..._0x4ab5b0[_0x422e49]}},_0x2d2a78=this[_0x1a9da6(0x23d)][_0x1a9da6(0x402)](_0x13bedc,_0x5a8047,!0x1),_0x545146=this['_transformService'][_0x1a9da6(0x402)](_0x138edb,_0x3ca4c9,!0x1);if(m[_0x1a9da6(0x197)](_0x2d2a78))throw _0x2d2a78[_0x1a9da6(0x2eb)];if(m[_0x1a9da6(0x197)](_0x545146))throw _0x545146[_0x1a9da6(0x2eb)];_0x5ea2f0['unshift'](_0x2d2a78[_0x1a9da6(0x209)]['params']),_0x285a3b['unshift'](_0x545146[_0x1a9da6(0x209)][_0x1a9da6(0x2de)]),_0x13bedc=_0x2d2a78[_0x1a9da6(0x34e)],_0x138edb=_0x545146[_0x1a9da6(0x34e)];}_0x3611c4['setUndoRedoMutationParamsCache']({'undoCache':_0x5ea2f0,'redoCache':_0x285a3b});}[_0x570aba(0x3e7)](_0x5acaab){const _0x1ee8cc=_0x570aba,{unitID:_0x28339e}=_0x5acaab,_0x4d0ee7=this[_0x1ee8cc(0x302)][_0x1ee8cc(0x2bf)](_0x28339e)[_0x1ee8cc(0x222)](b['DocIMEInputManagerService']),_0x2bf9b3=_0x4d0ee7[_0x1ee8cc(0x3ec)]();if(_0x2bf9b3==null)return;const _0x504e17=[{'id':_0x1ee8cc(0x401),'params':{'unitId':_0x5acaab[_0x1ee8cc(0x397)],'actions':null,'textRanges':[_0x2bf9b3]}}],_0x3c73c7=this['_transformService'][_0x1ee8cc(0x2af)](_0x5acaab,_0x504e17);if(!m[_0x1ee8cc(0x2e5)](_0x3c73c7))throw _0x3c73c7[_0x1ee8cc(0x2eb)];const _0x32cdd6=_0x3c73c7[_0x1ee8cc(0x209)][0x0][_0x1ee8cc(0x2de)][_0x1ee8cc(0x3bd)];Array['isArray'](_0x32cdd6)&&_0x32cdd6[_0x1ee8cc(0x214)]&&_0x4d0ee7['setActiveRange'](_0x32cdd6[0x0]);}};z=kt([ce(0x0,a['Inject'](a[_0x570aba(0x39c)])),ce(0x1,m[_0x570aba(0x184)]),ce(0x2,p[_0x570aba(0x35f)])],z);var Ht=Object[_0x570aba(0x31c)],Ft=(_0x34fbdf,_0x26fa48,_0x358c8e,_0x4732f7)=>{for(var _0x17a7fd=_0x4732f7>0x1?void 0x0:_0x4732f7?Ht(_0x26fa48,_0x358c8e):_0x26fa48,_0x1a1075=_0x34fbdf['length']-0x1,_0x3ec8f5;_0x1a1075>=0x0;_0x1a1075--)(_0x3ec8f5=_0x34fbdf[_0x1a1075])&&(_0x17a7fd=_0x3ec8f5(_0x17a7fd)||_0x17a7fd);return _0x17a7fd;},le=(_0x577716,_0xe6cd6e)=>(_0x3463bd,_0x501913)=>_0xe6cd6e(_0x3463bd,_0x501913,_0x577716);let J=class{constructor(_0x18d6aa,_0x46391f,_0x43fc7b){const _0x4e1f40=_0x570aba;this[_0x4e1f40(0x1f7)]=_0x18d6aa,this[_0x4e1f40(0x23d)]=_0x46391f,this[_0x4e1f40(0x2fe)]=_0x43fc7b;}[_0x570aba(0x2bd)](_0x324ff4){this['_transformHistoryAndStateStack'](_0x324ff4);}[_0x570aba(0x2ab)](_0x2288bb){const _0x5aedfc=_0x570aba,{unitID:_0x1fb171}=_0x2288bb,{collaboration:_0x1e7767}=this[_0x5aedfc(0x2fe)][_0x5aedfc(0x2d6)](_0x1fb171);if(_0x1e7767['length']===0x0)return _0x2288bb;let _0xf75d2a=a[_0x5aedfc(0x274)][_0x5aedfc(0x291)](_0x2288bb[_0x5aedfc(0x1dd)][0x0]);for(let _0xa072e6=0x0;_0xa072e6<_0x1e7767['length'];_0xa072e6++){const _0x483927={'id':_0x5aedfc(0x401),'params':{'unitId':_0x1e7767[_0xa072e6][_0x5aedfc(0x276)],..._0x1e7767[_0xa072e6]['redoState']}},_0x267b33=this[_0x5aedfc(0x23d)][_0x5aedfc(0x402)](_0xf75d2a,_0x483927,!0x1);if(m[_0x5aedfc(0x197)](_0x267b33))throw _0x267b33[_0x5aedfc(0x2eb)];_0xf75d2a=_0x267b33[_0x5aedfc(0x34e)];}return{...a[_0x5aedfc(0x274)]['deepClone'](_0x2288bb),'mutations':[_0xf75d2a]};}[_0x570aba(0x35d)](_0x314b6a){const _0x365d02=_0x570aba,{unitID:_0x2051b3}=_0x314b6a,{history:_0x2e2751,collaboration:_0x48619c}=this[_0x365d02(0x2fe)]['getStateCache'](_0x2051b3);if(_0x2e2751[_0x365d02(0x214)]===0x0&&_0x48619c[_0x365d02(0x214)]===0x0)return;const _0x3f8685=[],_0x54a65a=[];let _0x530a01=a[_0x365d02(0x274)]['deepClone'](_0x314b6a[_0x365d02(0x1dd)][0x0]),_0x97c988=a[_0x365d02(0x274)]['deepClone'](_0x314b6a[_0x365d02(0x1dd)][0x0]);for(let _0x38d995=_0x2e2751[_0x365d02(0x214)]-0x1;_0x38d995>=0x0;_0x38d995--){const _0x3add2b={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x2e2751[_0x38d995][_0x365d02(0x276)],..._0x2e2751[_0x38d995][_0x365d02(0x21a)]}},_0x32c100={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x2e2751[_0x38d995][_0x365d02(0x276)],..._0x2e2751[_0x38d995][_0x365d02(0x28a)]}},_0x5ee2eb=this['_transformService'][_0x365d02(0x402)](_0x530a01,_0x3add2b,!0x1),_0x2fedba=this[_0x365d02(0x23d)][_0x365d02(0x402)](_0x97c988,_0x32c100,!0x1);if(m[_0x365d02(0x197)](_0x5ee2eb))throw _0x5ee2eb[_0x365d02(0x2eb)];if(m[_0x365d02(0x197)](_0x2fedba))throw _0x2fedba[_0x365d02(0x2eb)];_0x3f8685[_0x365d02(0x281)]({..._0x2e2751[_0x38d995],'undoState':_0x5ee2eb[_0x365d02(0x209)][_0x365d02(0x2de)],'redoState':_0x2fedba[_0x365d02(0x209)]['params']}),_0x530a01=_0x5ee2eb[_0x365d02(0x34e)],_0x97c988=_0x2fedba[_0x365d02(0x34e)];}_0x530a01=a[_0x365d02(0x274)][_0x365d02(0x291)](_0x314b6a[_0x365d02(0x1dd)][0x0]),_0x97c988=a[_0x365d02(0x274)][_0x365d02(0x291)](_0x314b6a['mutations'][0x0]);for(let _0x277db9=_0x48619c[_0x365d02(0x214)]-0x1;_0x277db9>=0x0;_0x277db9--){const _0x1d3b3f={'id':_0x365d02(0x401),'params':{'unitId':_0x48619c[_0x277db9][_0x365d02(0x276)],..._0x48619c[_0x277db9][_0x365d02(0x21a)]}},_0x53b8b1={'id':_0x365d02(0x401),'params':{'unitId':_0x48619c[_0x277db9][_0x365d02(0x276)],..._0x48619c[_0x277db9][_0x365d02(0x28a)]}},_0x485eb0=this['_transformService']['transformMutation'](_0x530a01,_0x1d3b3f,!0x1),_0x3fce7e=this['_transformService'][_0x365d02(0x402)](_0x97c988,_0x53b8b1,!0x1);if(m[_0x365d02(0x197)](_0x485eb0))throw _0x485eb0[_0x365d02(0x2eb)];if(m[_0x365d02(0x197)](_0x3fce7e))throw _0x3fce7e[_0x365d02(0x2eb)];_0x54a65a['unshift']({..._0x48619c[_0x277db9],'undoState':_0x485eb0[_0x365d02(0x209)][_0x365d02(0x2de)],'redoState':_0x3fce7e['m2Prime'][_0x365d02(0x2de)]}),_0x530a01=_0x485eb0[_0x365d02(0x34e)],_0x97c988=_0x3fce7e[_0x365d02(0x34e)];}this[_0x365d02(0x2fe)][_0x365d02(0x3c0)](_0x2051b3,{'history':_0x3f8685,'collaboration':_0x54a65a});}};J=Ft([le(0x0,a[_0x570aba(0x33e)](a[_0x570aba(0x39c)])),le(0x1,m['ITransformService']),le(0x2,a[_0x570aba(0x33e)](b[_0x570aba(0x229)]))],J);var Yt=Object['getOwnPropertyDescriptor'],Wt=(_0xebb006,_0xc65f45,_0x5489ae,_0x24c2ad)=>{const _0x3d4b80=_0x570aba;for(var _0xeebe2e=_0x24c2ad>0x1?void 0x0:_0x24c2ad?Yt(_0xc65f45,_0x5489ae):_0xc65f45,_0x422135=_0xebb006[_0x3d4b80(0x214)]-0x1,_0x13c4b4;_0x422135>=0x0;_0x422135--)(_0x13c4b4=_0xebb006[_0x422135])&&(_0xeebe2e=_0x13c4b4(_0xeebe2e)||_0xeebe2e);return _0xeebe2e;},Ne=(_0x1ba80f,_0x57da6a)=>(_0x5920f9,_0x1c7c0a)=>_0x57da6a(_0x5920f9,_0x1c7c0a,_0x1ba80f);let Z=class{constructor(_0x2f2fed,_0x26910d){const _0x162b03=_0x570aba;this[_0x162b03(0x1f7)]=_0x2f2fed,this[_0x162b03(0x23d)]=_0x26910d;}[_0x570aba(0x3fc)](_0x4d4841){const _0x1bb88a=_0x570aba;var _0x4ba4fc;const _0x5293ca=this['_injector'][_0x1bb88a(0x398)](Y[_0x1bb88a(0x1b2)]),_0x308972=(_0x4ba4fc=_0x5293ca[_0x1bb88a(0x200)]())!=null?_0x4ba4fc:[];if(_0x308972[_0x1bb88a(0x214)]===0x0)return;const _0x106d3f=_0x4d4841['unitID'],_0x340b3a=[{'id':_0x1bb88a(0x401),'params':{'unitId':_0x106d3f,'actions':null,'textRanges':_0x308972}}],_0x2ec4ba=this[_0x1bb88a(0x23d)][_0x1bb88a(0x2af)](_0x4d4841,_0x340b3a);if(!m['isTransformMutationsWithChangesetSuccess'](_0x2ec4ba))throw _0x2ec4ba[_0x1bb88a(0x2eb)];const _0x3f0d06=_0x2ec4ba[_0x1bb88a(0x209)][0x0][_0x1bb88a(0x2de)]['textRanges'];Array[_0x1bb88a(0x18c)](_0x3f0d06)&&_0x3f0d06[_0x1bb88a(0x214)]&&_0x5293ca['replaceDocRanges'](_0x3f0d06,{'unitId':_0x106d3f,'subUnitId':_0x106d3f},!0x1);}};Z=Wt([Ne(0x0,a[_0x570aba(0x33e)](a[_0x570aba(0x39c)])),Ne(0x1,m[_0x570aba(0x184)])],Z);var Vt=Object[_0x570aba(0x31c)],Xt=(_0x54b3b0,_0x2b613f,_0x51813a,_0x33d81d)=>{const _0x1c46f8=_0x570aba;for(var _0x200e92=_0x33d81d>0x1?void 0x0:_0x33d81d?Vt(_0x2b613f,_0x51813a):_0x2b613f,_0x197101=_0x54b3b0[_0x1c46f8(0x214)]-0x1,_0x831d59;_0x197101>=0x0;_0x197101--)(_0x831d59=_0x54b3b0[_0x197101])&&(_0x200e92=_0x831d59(_0x200e92)||_0x200e92);return _0x200e92;},N=(_0x1caf3d,_0x2289c8)=>(_0xffca16,_0x5e059e)=>_0x2289c8(_0xffca16,_0x5e059e,_0x1caf3d);let Q=class extends a[_0x570aba(0x283)]{constructor(_0x3ded34,_0x17c2d3,_0x4fc684,_0x2f6587,_0x278b7d,_0x248f02,_0x407205,_0x72fb8a){const _0x4280f4=_0x570aba;super(),h(this,_0x4280f4(0x351),new d['BehaviorSubject'](u[_0x4280f4(0x39d)]['NOT_COLLAB'])),(this[_0x4280f4(0x2fe)]=_0x3ded34,this['_collaborationController']=_0x17c2d3,this[_0x4280f4(0x233)]=_0x4fc684,this[_0x4280f4(0x207)]=_0x2f6587,this[_0x4280f4(0x3fb)]=_0x278b7d,this['_docSyncEditingCollabCursorService']=_0x248f02,this[_0x4280f4(0x260)]=_0x407205,this['_localeService']=_0x72fb8a,this[_0x4280f4(0x312)]());}[_0x570aba(0x312)](){const _0x46ec03=_0x570aba;this[_0x46ec03(0x2cc)](this['_collaborationController'][_0x46ec03(0x1fa)][_0x46ec03(0x1d9)](_0x56985e=>{const _0x39db6c=_0x46ec03,_0x250a26=this[_0x39db6c(0x2fe)][_0x39db6c(0x3d9)]['subscribe'](_0x51935d=>{const _0x178d4e=_0x39db6c;if(_0x51935d==null)return;const {unitId:_0x1e4b99,redoState:_0x1dd58e,commandId:_0x24aa23}=_0x51935d;if(_0x1e4b99!==_0x56985e[_0x178d4e(0x397)])return;const _0x41597c={'id':_0x24aa23,'type':a['CommandType'][_0x178d4e(0x350)],'params':{'unitId':_0x1e4b99,'actions':_0x1dd58e[_0x178d4e(0x220)],'textRanges':null}};_0x56985e['onLocalMutation'](_0x41597c);});if(_0x56985e[_0x39db6c(0x2cc)](_0x250a26),_0x56985e instanceof u[_0x39db6c(0x3a1)]){const _0x2ac7b8={'onTransformIME':_0x3df6cf=>this[_0x39db6c(0x233)]['transformIMECache'](_0x3df6cf),'onTransformState':_0x5bdde6=>this['_docTransformStateCacheService']['transformStateCache'](_0x5bdde6),'onTransformSelections':_0x5eccef=>this['_docTransformSelectionsService'][_0x39db6c(0x3fc)](_0x5eccef),'onSyncEditingCollabCursor':_0x4383e7=>this[_0x39db6c(0x1e7)][_0x39db6c(0x3f5)](_0x4383e7),'onTransformRemoteChangesetByIMECache':_0x2f0cc3=>this[_0x39db6c(0x233)][_0x39db6c(0x2ab)](_0x2f0cc3),'onTransformRemoteChangesetByStateCache':_0x2bea2c=>this['_docTransformStateCacheService']['transformRemoteChangeset'](_0x2bea2c)};_0x56985e[_0x39db6c(0x17d)](_0x2ac7b8);}}));}};Q=Xt([N(0x0,a[_0x570aba(0x33e)](b['DocStateChangeManagerService'])),N(0x1,a[_0x570aba(0x33e)](u[_0x570aba(0x378)])),N(0x2,a['Inject'](z)),N(0x3,a[_0x570aba(0x33e)](J)),N(0x4,a[_0x570aba(0x33e)](Z)),N(0x5,a[_0x570aba(0x33e)](Ce)),N(0x6,T['IMessageService']),N(0x7,a[_0x570aba(0x33e)](a[_0x570aba(0x3cf)]))],Q);function _0x1acb(_0x3cc1c8,_0x2a256d){const _0x25b5b7=_0x25b5();return _0x1acb=function(_0x1acb19,_0x1a6972){_0x1acb19=_0x1acb19-0x17b;let _0xabcb2c=_0x25b5b7[_0x1acb19];return _0xabcb2c;},_0x1acb(_0x3cc1c8,_0x2a256d);}var Gt=Object[_0x570aba(0x31c)],Kt=(_0x73f0cb,_0x210df,_0x1aacfa,_0x30bfd3)=>{const _0x5a14e0=_0x570aba;for(var _0x58f443=_0x30bfd3>0x1?void 0x0:_0x30bfd3?Gt(_0x210df,_0x1aacfa):_0x210df,_0xca264e=_0x73f0cb[_0x5a14e0(0x214)]-0x1,_0x55114a;_0xca264e>=0x0;_0xca264e--)(_0x55114a=_0x73f0cb[_0xca264e])&&(_0x58f443=_0x55114a(_0x58f443)||_0x58f443);return _0x58f443;},_e=(_0x43bd30,_0x48c308)=>(_0x1d31df,_0xefa229)=>_0x48c308(_0x1d31df,_0xefa229,_0x43bd30);let ge=class extends a['Disposable']{constructor(_0x45e307,_0x9907ab,_0x11133b){const _0x3269d2=_0x570aba;super(),h(this,_0x3269d2(0x23c),new Map()),h(this,_0x3269d2(0x255),new Map()),h(this,_0x3269d2(0x2a2),!0x1),(this[_0x3269d2(0x1fd)]=_0x45e307,this[_0x3269d2(0x202)]=_0x9907ab,this[_0x3269d2(0x1d8)]=_0x11133b);}['disableLocalCache'](){const _0x32b535=_0x570aba;this[_0x32b535(0x2a2)]=!0x0;}['enableLocalCache'](){const _0x5930e9=_0x570aba;this[_0x5930e9(0x2a2)]=!0x1;}get[_0x570aba(0x1b7)](){const _0x3a7977=_0x570aba;return this[_0x3a7977(0x255)];}['dispose'](){const _0x478bb4=_0x570aba;this[_0x478bb4(0x2c2)]()['then'](()=>super[_0x478bb4(0x1d4)]());}async[_0x570aba(0x1c0)](_0x39fb23){const _0xe0d697=_0x570aba;return this[_0xe0d697(0x2a2)]?null:this[_0xe0d697(0x202)][_0xe0d697(0x38f)](u[_0xe0d697(0x1f1)](_0x39fb23));}async[_0x570aba(0x223)](_0x3a3618,_0x5bed2f){const _0x284ab4=_0x570aba;return!!this[_0x284ab4(0x202)]['setItem'](_0x3a3618,_0x5bed2f);}[_0x570aba(0x3c4)](_0x317e9a,_0x3722cf,_0x252877,_0x534dfd){const _0x524115=_0x570aba,_0x478d89=this[_0x524115(0x1d8)][_0x524115(0x2be)](_0x317e9a);this['_cachedData'][_0x524115(0x1a2)](_0x317e9a,{'unitID':_0x317e9a,'type':_0x3722cf,'awaitingChangeset':_0x252877,'mutations':_0x534dfd,'rev':_0x478d89}),this[_0x524115(0x255)][_0x524115(0x227)](_0x317e9a)||this[_0x524115(0x386)](_0x317e9a);}[_0x570aba(0x386)](_0x2527f3){const _0x404039=_0x570aba,_0x4d32b9=this[_0x404039(0x239)]();_0x4d32b9===0x0?this[_0x404039(0x311)](_0x2527f3):this[_0x404039(0x255)][_0x404039(0x1a2)](_0x2527f3,setTimeout(()=>this[_0x404039(0x311)](_0x2527f3),_0x4d32b9));}[_0x570aba(0x239)](){const _0x39d576=_0x570aba;var _0x3e9828;return(_0x3e9828=this[_0x39d576(0x1fd)]['getConfig'](u[_0x39d576(0x3be)]))!=null?_0x3e9828:u[_0x39d576(0x23a)];}[_0x570aba(0x311)](_0x54559b){const _0xf94ecc=_0x570aba,_0x2902ab=this[_0xf94ecc(0x255)][_0xf94ecc(0x398)](_0x54559b);return _0x2902ab!==void 0x0&&window[_0xf94ecc(0x2d8)](_0x2902ab),this[_0xf94ecc(0x202)][_0xf94ecc(0x387)](u[_0xf94ecc(0x1f1)](_0x54559b),this['_cachedData'][_0xf94ecc(0x398)](_0x54559b))[_0xf94ecc(0x2ac)](()=>this[_0xf94ecc(0x255)][_0xf94ecc(0x28c)](_0x54559b));}async[_0x570aba(0x2c2)](){const _0x5af780=_0x570aba,_0x36fe8a=[];this[_0x5af780(0x255)][_0x5af780(0x247)]((_0x1d032e,_0x5143c1)=>{const _0x1921e3=_0x5af780;window['clearTimeout'](_0x1d032e),_0x36fe8a['push'](this[_0x1921e3(0x311)](_0x5143c1)[_0x1921e3(0x2ac)](()=>{const _0x3dbde4=_0x1921e3;this[_0x3dbde4(0x255)][_0x3dbde4(0x28c)](_0x5143c1);}));}),await Promise[_0x5af780(0x232)](_0x36fe8a);}};ge=Kt([_e(0x0,a[_0x570aba(0x205)]),_e(0x1,a['ILocalStorageService']),_e(0x2,a['Inject'](m[_0x570aba(0x395)]))],ge);class je extends a[_0x570aba(0x338)]{constructor(){const _0x2834e8=_0x570aba;super(),h(this,_0x2834e8(0x2cf)),this['urlChange$']=d['fromEvent'](window,_0x2834e8(0x1b0))[_0x2834e8(0x18d)](d[_0x2834e8(0x25a)](this[_0x2834e8(0x2ad)]),d[_0x2834e8(0x23b)](0x1),d[_0x2834e8(0x3e5)](void 0x0));}[_0x570aba(0x187)](_0x19d79e,_0x5735e1,_0x1da03d=!0x1){const _0x355305=_0x570aba,_0x9c1e6a=new URL(window[_0x355305(0x32e)][_0x355305(0x2f5)]);_0x9c1e6a[_0x355305(0x2e8)]['set'](_0x19d79e,_0x5735e1),_0x1da03d?window[_0x355305(0x3ad)][_0x355305(0x359)]('','',_0x9c1e6a['toString']()):window[_0x355305(0x3ad)][_0x355305(0x3c6)]('','',_0x9c1e6a[_0x355305(0x1ac)]());}[_0x570aba(0x3c8)](_0x1f2330,_0x4bd060=!0x1){const _0x500b9c=_0x570aba,_0x332e18=new URL(window[_0x500b9c(0x32e)][_0x500b9c(0x2f5)]);_0x332e18[_0x500b9c(0x2e8)]['delete'](_0x1f2330),_0x4bd060?window[_0x500b9c(0x3ad)][_0x500b9c(0x359)]('','',_0x332e18['toString']()):window[_0x500b9c(0x3ad)]['pushState']('','',_0x332e18['toString']());}[_0x570aba(0x31b)](_0x350ad2){const _0x39032c=_0x570aba;var _0x46c685;return(_0x46c685=new URL(window['location'][_0x39032c(0x2f5)])[_0x39032c(0x2e8)][_0x39032c(0x398)](_0x350ad2))!=null?_0x46c685:void 0x0;}}var qt=Object[_0x570aba(0x2f3)],zt=Object[_0x570aba(0x31c)],Jt=(_0x54e02c,_0x2c1bdb,_0x730615)=>_0x2c1bdb in _0x54e02c?qt(_0x54e02c,_0x2c1bdb,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x730615}):_0x54e02c[_0x2c1bdb]=_0x730615,Zt=(_0x66512c,_0x2bbd98,_0x138383,_0x56cc4c)=>{const _0x2110be=_0x570aba;for(var _0x1acfb5=_0x56cc4c>0x1?void 0x0:_0x56cc4c?zt(_0x2bbd98,_0x138383):_0x2bbd98,_0x2bf86e=_0x66512c[_0x2110be(0x214)]-0x1,_0x15f096;_0x2bf86e>=0x0;_0x2bf86e--)(_0x15f096=_0x66512c[_0x2bf86e])&&(_0x1acfb5=_0x15f096(_0x1acfb5)||_0x1acfb5);return _0x1acfb5;},he=(_0x3d3b35,_0x105468)=>(_0x426b79,_0x439a37)=>_0x105468(_0x426b79,_0x439a37,_0x3d3b35),Qt=(_0x574850,_0x56d6a2,_0x11029b)=>Jt(_0x574850,_0x56d6a2+'',_0x11029b);const es='UNIVER_COLLABORATION_CLIENT_WEB_PLUGIN';exports[_0x570aba(0x2f2)]=class extends a[_0x570aba(0x38b)]{constructor(_0x412973=Ue,_0x165795,_0x4a98af,_0x2a5fa4){const _0x1f03c8=_0x570aba;super(),this[_0x1f03c8(0x1f6)]=_0x412973,this[_0x1f03c8(0x302)]=_0x165795,this['_injector']=_0x4a98af,this[_0x1f03c8(0x1fd)]=_0x2a5fa4;const {..._0x21e004}=a['merge']({},Ue,this[_0x1f03c8(0x1f6)]);this[_0x1f03c8(0x1fd)][_0x1f03c8(0x2c6)]($t,_0x21e004);}['onStarting'](){const _0x54dedc=_0x570aba;this[_0x54dedc(0x254)](),this['_initDependencies']();}[_0x570aba(0x309)](){const _0x2ecff9=_0x570aba;this[_0x2ecff9(0x290)]();}[_0x570aba(0x254)](){const _0x5dde55=_0x570aba;var _0x346647;const _0xecd96a=[[me],[Z],[z],[J],[Ce],[be,{'useClass':je}],[G[_0x5dde55(0x38a)],{'useClass':G[_0x5dde55(0x2d7)]}],[u[_0x5dde55(0x3b1)],{'useClass':ge}],[exports[_0x5dde55(0x1e6)]],[Q],[q],[x],[de],[exports[_0x5dde55(0x307)]]];a[_0x5dde55(0x1e1)](this['_injector'],a[_0x5dde55(0x2f6)](_0xecd96a,(_0x346647=this[_0x5dde55(0x1f6)])==null?void 0x0:_0x346647[_0x5dde55(0x1bd)]));}['_registerRenderDependencies'](){const _0x55eb27=_0x570aba;this[_0x55eb27(0x2cc)](this[_0x55eb27(0x302)][_0x55eb27(0x185)](a['UniverInstanceType'][_0x55eb27(0x212)],[Ie])),this[_0x55eb27(0x2cc)](this[_0x55eb27(0x302)][_0x55eb27(0x185)](a[_0x55eb27(0x18f)][_0x55eb27(0x363)],[ve]));}[_0x570aba(0x1ba)](){const _0x33de3c=_0x570aba;a['touchDependencies'](this[_0x33de3c(0x1f7)],[[x],[exports[_0x33de3c(0x1e6)]],[Q],[q],[exports[_0x33de3c(0x307)]]]);}},Qt(exports[_0x570aba(0x2f2)],_0x570aba(0x280),es),exports[_0x570aba(0x2f2)]=Zt([a[_0x570aba(0x301)](u['UniverCollaborationClientPlugin']),he(0x1,p[_0x570aba(0x35f)]),he(0x2,a[_0x570aba(0x33e)](a['Injector'])),he(0x3,a[_0x570aba(0x205)])],exports[_0x570aba(0x2f2)]);var ts=Object[_0x570aba(0x31c)],ss=(_0x49abf5,_0x158a9c,_0x27fd0a,_0x200a49)=>{const _0x19f97b=_0x570aba;for(var _0x4f03db=_0x200a49>0x1?void 0x0:_0x200a49?ts(_0x158a9c,_0x27fd0a):_0x158a9c,_0x169c16=_0x49abf5[_0x19f97b(0x214)]-0x1,_0x23145b;_0x169c16>=0x0;_0x169c16--)(_0x23145b=_0x49abf5[_0x169c16])&&(_0x4f03db=_0x23145b(_0x4f03db)||_0x4f03db);return _0x4f03db;},F=(_0x929678,_0x2d6177)=>(_0x61d0ef,_0xd8c452)=>_0x2d6177(_0x61d0ef,_0xd8c452,_0x929678);exports['BrowserCollaborationSocketService']=class extends u[_0x570aba(0x336)]{constructor(_0x2d107f,_0x102d39,_0x49b5ac,_0x4d9784,_0x50e983){super(_0x2d107f,_0x102d39,_0x49b5ac,_0x4d9784,_0x50e983);}async[_0x570aba(0x3ca)](_0x54d738){const _0x14d50d=_0x570aba,_0x14fa54=await this[_0x14d50d(0x375)](),_0x21feac=this['_createSocketURL'](_0x54d738,_0x14fa54);return this[_0x14d50d(0x3ae)](_0x21feac);}[_0x570aba(0x195)](_0x5a4ea1,_0x282e2e){const _0x589033=_0x570aba,_0x542ef9=typeof window>'u'?new URL(_0x5a4ea1):new URL(_0x5a4ea1,window[_0x589033(0x32e)][_0x589033(0x373)]);_0x542ef9['searchParams'][_0x589033(0x1a2)](_0x589033(0x316),_0x282e2e);const _0x55d7c0=typeof window>'u'?new URLSearchParams():new URLSearchParams(window[_0x589033(0x32e)][_0x589033(0x18b)]);return _0x55d7c0[_0x589033(0x398)](_0x589033(0x39b))&&_0x542ef9['searchParams']['set'](_0x589033(0x39b),_0x55d7c0[_0x589033(0x398)](_0x589033(0x39b))),_0x542ef9[_0x589033(0x1ac)]();}async[_0x570aba(0x375)](){const _0x4492fa=_0x570aba;var _0x5d05f9,_0x52a3f4,_0xa6040;const _0xc46826=this[_0x4492fa(0x1fd)][_0x4492fa(0x396)](u['COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY']),_0x327510=(_0x5d05f9=_0xc46826==null?void 0x0:_0xc46826[_0x4492fa(0x192)])!=null?_0x5d05f9:u[_0x4492fa(0x3a4)];return(_0xa6040=(_0x52a3f4=(await this['_httpService'][_0x4492fa(0x398)](_0x327510,{'headers':{'Content-Type':'application/json'}}))[_0x4492fa(0x252)])==null?void 0x0:_0x52a3f4['ticket'])!=null?_0xa6040:'';}},exports[_0x570aba(0x3b2)]=ss([F(0x0,a[_0x570aba(0x33e)](a['Injector'])),F(0x1,a['Inject'](G[_0x570aba(0x28f)])),F(0x2,a['IConfigService']),F(0x3,a[_0x570aba(0x193)]),F(0x4,m[_0x570aba(0x35a)])],exports['BrowserCollaborationSocketService']);const Me=0x7530,Le=_0x570aba(0x341);class is extends a[_0x570aba(0x283)]{constructor(){const _0x47701b=_0x570aba;super(),h(this,_0x47701b(0x1ab),a[_0x47701b(0x2d3)]()),h(this,_0x47701b(0x2a3),new Set()),h(this,'_unitOnClients',new Map()),h(this,_0x47701b(0x369),null),h(this,_0x47701b(0x404),new Map()),h(this,'_unitStatus',new Map()),this[_0x47701b(0x31e)]();}[_0x570aba(0x1d4)](){const _0x20aca4=_0x570aba;super[_0x20aca4(0x1d4)](),this[_0x20aca4(0x404)]['forEach']((_0x4d2789,_0x934a57)=>this[_0x20aca4(0x186)](_0x934a57)),this[_0x20aca4(0x369)]&&window[_0x20aca4(0x2e4)](this[_0x20aca4(0x369)]);}['getUnitStatus$'](_0x30e70f){const _0x31103c=_0x570aba;return this[_0x31103c(0x3a6)](_0x30e70f)[_0x31103c(0x18d)](d[_0x31103c(0x25b)]());}[_0x570aba(0x3b4)](_0x31f0f2){const _0x53f0f4=_0x570aba;this[_0x53f0f4(0x2a3)][_0x53f0f4(0x2aa)]===0x0&&this[_0x53f0f4(0x253)](),this[_0x53f0f4(0x2a3)][_0x53f0f4(0x25e)](_0x31f0f2),this[_0x53f0f4(0x258)]({'type':0x0,'memberID':this['_id'],'unitIDs':[_0x31f0f2],'isForwarded':!0x1});}[_0x570aba(0x346)](_0xec244d){const _0x11f13b=_0x570aba;this['_selfUnitIDs'][_0x11f13b(0x28c)](_0xec244d),this['_selfUnitIDs'][_0x11f13b(0x2aa)]===0x0&&this['_heartbeatTimer']&&window[_0x11f13b(0x2e4)](this[_0x11f13b(0x369)]);}[_0x570aba(0x31e)](){const _0x15c4cb=_0x570aba;this[_0x15c4cb(0x2cc)](a[_0x15c4cb(0x3c5)](d['fromEvent'](window,'storage')[_0x15c4cb(0x1d9)](_0x43515f=>{const _0x4fefed=_0x15c4cb;if(_0x43515f[_0x4fefed(0x20c)]!==Le||!_0x43515f[_0x4fefed(0x3c9)])return;const _0x454c47=JSON[_0x4fefed(0x3ed)](_0x43515f['newValue']);this[_0x4fefed(0x26a)](_0x454c47);}))),window[_0x15c4cb(0x376)]('unload',()=>this[_0x15c4cb(0x258)]({'type':0x1,'memberID':this[_0x15c4cb(0x1ab)],'unitIDs':Array[_0x15c4cb(0x320)](this[_0x15c4cb(0x2a3)])}));}['_handleEvent'](_0x4b191b){const _0x11eded=_0x570aba;switch(_0x4b191b[_0x11eded(0x385)]){case 0x0:this['_handleJoinEvent'](_0x4b191b);break;case 0x1:this[_0x11eded(0x2df)](_0x4b191b);break;case 0x2:this['_handleHeartbeatEvent'](_0x4b191b);break;}}[_0x570aba(0x27b)](_0x369df6){const _0x306c99=_0x570aba,{unitIDs:_0x35ab4e,memberID:_0x31949b,isForwarded:_0x535b2b}=_0x369df6;_0x35ab4e[_0x306c99(0x247)](_0xe8c95c=>{const _0x98b709=_0x306c99;if(!_0x535b2b&&this[_0x98b709(0x29e)][_0x98b709(0x227)](_0xe8c95c)&&this['_ensureSubject'](_0xe8c95c)[_0x98b709(0x325)](u[_0x98b709(0x1b1)][_0x98b709(0x273)]),!this[_0x98b709(0x29e)][_0x98b709(0x227)](_0xe8c95c)||!this[_0x98b709(0x29e)][_0x98b709(0x398)](_0xe8c95c)[_0x98b709(0x227)](_0x31949b)){const _0x56116b=this['_unitOnClients'][_0x98b709(0x398)](_0xe8c95c)||new Set();_0x56116b['add'](_0x31949b),this[_0x98b709(0x29e)][_0x98b709(0x1a2)](_0xe8c95c,_0x56116b),this[_0x98b709(0x37e)](_0x31949b);}}),_0x535b2b||this['_send']({'type':0x0,'memberID':this['_id'],'unitIDs':[...this[_0x306c99(0x2a3)]],'isForwarded':!0x0});}[_0x570aba(0x37e)](_0x1bcdf6){const _0x340852=_0x570aba;this[_0x340852(0x186)](_0x1bcdf6);const _0x3e996f=window[_0x340852(0x245)](()=>{const _0x2f88ce=_0x340852;this[_0x2f88ce(0x29e)][_0x2f88ce(0x247)](_0x32994e=>{const _0x552a0c=_0x2f88ce;_0x32994e[_0x552a0c(0x28c)](_0x1bcdf6);});},Me*0x2);this[_0x340852(0x404)][_0x340852(0x1a2)](_0x1bcdf6,_0x3e996f);}[_0x570aba(0x186)](_0x27e4b0){const _0x946f51=_0x570aba;if(this[_0x946f51(0x404)][_0x946f51(0x227)](_0x27e4b0)){const _0xbb0941=this[_0x946f51(0x404)]['get'](_0x27e4b0);_0xbb0941&&window[_0x946f51(0x2d8)](_0xbb0941),this['_clearOtherTimers'][_0x946f51(0x1a2)](_0x27e4b0,null);}}[_0x570aba(0x2df)](_0x4eb1a8){const _0x4fed32=_0x570aba,{memberID:_0x361930,unitIDs:_0x2eb758}=_0x4eb1a8;_0x2eb758[_0x4fed32(0x247)](_0xc3f34c=>{const _0x2e001b=_0x4fed32;var _0x3a1015;const _0x3823b5=this['_unitOnClients'][_0x2e001b(0x398)](_0xc3f34c);_0x3823b5&&(_0x3823b5[_0x2e001b(0x28c)](_0x361930),(_0x3a1015=this[_0x2e001b(0x3a6)](_0xc3f34c))==null||_0x3a1015[_0x2e001b(0x325)](_0x3823b5[_0x2e001b(0x2aa)]===0x0?u[_0x2e001b(0x1b1)][_0x2e001b(0x1f5)]:u['UnitStatus'][_0x2e001b(0x273)]));}),this[_0x4fed32(0x186)](_0x361930);}[_0x570aba(0x367)](_0x4a3734){const _0x45ec82=_0x570aba;this[_0x45ec82(0x37e)](_0x4a3734['memberID']);}[_0x570aba(0x258)](_0xa18aa3){const _0x4206be=_0x570aba;localStorage[_0x4206be(0x387)](Le,JSON[_0x4206be(0x20e)](_0xa18aa3));}[_0x570aba(0x253)](){const _0x5edfe6=_0x570aba;this[_0x5edfe6(0x369)]=window[_0x5edfe6(0x1f4)](()=>{const _0x4cd018=_0x5edfe6;this[_0x4cd018(0x258)]({'type':0x2,'memberID':this[_0x4cd018(0x1ab)]});},Me);}[_0x570aba(0x3a6)](_0x5b792b){const _0x1d3a61=_0x570aba;return this['_unitStatus']['has'](_0x5b792b)||this[_0x1d3a61(0x3e0)][_0x1d3a61(0x1a2)](_0x5b792b,new d[(_0x1d3a61(0x2bb))](u[_0x1d3a61(0x1b1)]['NO_OTHER_CLIENTS_EDITING'])),this[_0x1d3a61(0x3e0)][_0x1d3a61(0x398)](_0x5b792b);}}var Be=(_0x548fcc=>(_0x548fcc[_0x548fcc[_0x570aba(0x3aa)]=0x0]=_0x570aba(0x3aa),_0x548fcc[_0x548fcc['OK']=0x1]='OK',_0x548fcc[_0x548fcc[_0x570aba(0x23f)]=0x2]=_0x570aba(0x23f),_0x548fcc[_0x548fcc[_0x570aba(0x35c)]=0x3]=_0x570aba(0x35c),_0x548fcc[_0x548fcc[_0x570aba(0x37f)]=0x4]=_0x570aba(0x37f),_0x548fcc[_0x548fcc[_0x570aba(0x1e5)]=0x5]='UNAUTHENTICATED',_0x548fcc[_0x548fcc['ALREADY_EXISTS']=0x6]=_0x570aba(0x191),_0x548fcc[_0x548fcc[_0x570aba(0x353)]=0x7]=_0x570aba(0x353),_0x548fcc[_0x548fcc[_0x570aba(0x20b)]=0x8]=_0x570aba(0x20b),_0x548fcc[_0x548fcc[_0x570aba(0x230)]=0x9]='COMPLETION_FINISHED',_0x548fcc[_0x548fcc['LOGIN_FAILED']=0xa]=_0x570aba(0x289),_0x548fcc[_0x548fcc[_0x570aba(0x32c)]=0x1389]=_0x570aba(0x32c),_0x548fcc[_0x548fcc[_0x570aba(0x3da)]=0x1771]=_0x570aba(0x3da),_0x548fcc[_0x548fcc[_0x570aba(0x3cd)]=0x1772]=_0x570aba(0x3cd),_0x548fcc[_0x548fcc['ENSURE_SNAPSHOT_EXECUTION']=0x1773]=_0x570aba(0x1b9),_0x548fcc[_0x548fcc[_0x570aba(0x1aa)]=0x1b59]=_0x570aba(0x1aa),_0x548fcc[_0x548fcc[_0x570aba(0x235)]=0x1b5a]='APPLY_NON_SEQUENTIAL_REVISION',_0x548fcc[_0x548fcc[_0x570aba(0x37b)]=0x1b5b]=_0x570aba(0x37b),_0x548fcc[_0x548fcc[_0x570aba(0x2d2)]=0x1b5c]=_0x570aba(0x2d2),_0x548fcc[_0x548fcc[_0x570aba(0x323)]=0x1b5d]='APPLY_DUPLICATED',_0x548fcc[_0x548fcc[_0x570aba(0x1d7)]=0x1f41]='CONNECTOR_DATA_TOO_LARGE',_0x548fcc[_0x548fcc[_0x570aba(0x271)]=0x2329]='LICENSE_MAX_UNITS_EXCEEDED',_0x548fcc[_0x548fcc[_0x570aba(0x3b5)]=0x232a]=_0x570aba(0x3b5),_0x548fcc[_0x548fcc[_0x570aba(0x259)]=0x232b]=_0x570aba(0x259),_0x548fcc[_0x548fcc['LICENSE_EXPORT_SIZE_EXCEEDED']=0x232c]=_0x570aba(0x326),_0x548fcc[_0x548fcc[_0x570aba(0x2a8)]=0x232d]=_0x570aba(0x2a8),_0x548fcc[_0x548fcc[_0x570aba(0x3d0)]=0x2711]='YUUMI_UNABLE_LOAD_URL',_0x548fcc[_0x548fcc[_0x570aba(0x32b)]=0x2712]=_0x570aba(0x32b),_0x548fcc[_0x548fcc[_0x570aba(0x226)]=0x2713]=_0x570aba(0x226),_0x548fcc[_0x548fcc[_0x570aba(0x33f)]=0x2714]=_0x570aba(0x33f),_0x548fcc[_0x548fcc[_0x570aba(0x3e3)]=0x271a]=_0x570aba(0x3e3),_0x548fcc[_0x548fcc[_0x570aba(0x39a)]=0x271b]='YUUMI_ASYNCIO_CANCELLED',_0x548fcc[_0x548fcc[_0x570aba(0x3df)]=0x271c]='YUUMI_TABLE_NOT_FOUND_IN_UNIT',_0x548fcc[_0x548fcc[_0x570aba(0x180)]=0x271d]=_0x570aba(0x180),_0x548fcc[_0x548fcc[_0x570aba(0x2ea)]=0x271e]=_0x570aba(0x2ea),_0x548fcc[_0x548fcc[_0x570aba(0x35b)]=0x271f]=_0x570aba(0x35b),_0x548fcc[_0x548fcc['PY_RUNTIME_SCRIPT_ERROR']=0x2af9]=_0x570aba(0x20d),_0x548fcc[_0x548fcc['INVITE_CODE_HAS_BEEN_UES']=0x2ee1]=_0x570aba(0x2d1),_0x548fcc[_0x548fcc[_0x570aba(0x22a)]=0x2ee2]=_0x570aba(0x22a),_0x548fcc[_0x548fcc[_0x570aba(0x2b9)]=0x2ee3]=_0x570aba(0x2b9),_0x548fcc[_0x548fcc[_0x570aba(0x2f8)]=0x2ee4]='USER_NOT_INVITED_CODE',_0x548fcc[_0x548fcc[_0x570aba(0x3d8)]=0x2ee5]=_0x570aba(0x3d8),_0x548fcc[_0x548fcc['WECHAT_HAS_BEEN_BOUND']=0x32c9]=_0x570aba(0x34c),_0x548fcc[_0x548fcc[_0x570aba(0x2ef)]=0x32ca]='MOBILE_HAS_BEEN_BOUND',_0x548fcc[_0x548fcc[_0x570aba(0x1cd)]=0x32cb]=_0x570aba(0x1cd),_0x548fcc[_0x548fcc[_0x570aba(0x231)]=-0x1]='UNRECOGNIZED',_0x548fcc))(Be||{}),ns=Object[_0x570aba(0x31c)],rs=(_0x2657a9,_0x1f775f,_0x4e7d51,_0x4b1af0)=>{const _0x4e4ea8=_0x570aba;for(var _0x3fa838=_0x4b1af0>0x1?void 0x0:_0x4b1af0?ns(_0x1f775f,_0x4e7d51):_0x1f775f,_0x18e1a0=_0x2657a9[_0x4e4ea8(0x214)]-0x1,_0x3f2e7d;_0x18e1a0>=0x0;_0x18e1a0--)(_0x3f2e7d=_0x2657a9[_0x18e1a0])&&(_0x3fa838=_0x3f2e7d(_0x3fa838)||_0x3fa838);return _0x3fa838;},ue=(_0x290a40,_0x511021)=>(_0x38720e,_0x589ecb)=>_0x511021(_0x38720e,_0x589ecb,_0x290a40);exports[_0x570aba(0x234)]=class extends a[_0x570aba(0x283)]{constructor(_0x3c2f37,_0x5cf054,_0x27f172){const _0x106dcb=_0x570aba;super(),this[_0x106dcb(0x27d)]=_0x3c2f37,this['_httpService']=_0x5cf054,this[_0x106dcb(0x1fd)]=_0x27f172;}async[_0x570aba(0x198)](_0x29abcf,_0x590b84,_0x1e686b,..._0x1b66d9){const _0x4775c3=_0x570aba;var _0x49bf92,_0x1c44de,_0x2010cd,_0x2b23c7;const _0x1792f7=this[_0x4775c3(0x27d)]['getFocusedUnit']();if(!_0x1792f7)throw new Error(_0x4775c3(0x330));const _0x5b0e70=((_0x49bf92=this[_0x4775c3(0x1fd)]['getConfig'](u[_0x4775c3(0x269)]))!=null?_0x49bf92:u[_0x4775c3(0x2d9)])+'/'+_0x29abcf+'/run/'+_0x590b84,_0x1b8a5e=new URL(window['location'][_0x4775c3(0x2f5)]),_0x2d8017={'scriptId':_0x29abcf,'runId':(_0x1c44de=_0x1b8a5e[_0x4775c3(0x2e8)]['get'](_0x4775c3(0x39b)))!=null?_0x1c44de:'','function':_0x590b84,'unitId':_0x1792f7[_0x4775c3(0x2ed)](),'argsOfFunction':JSON[_0x4775c3(0x20e)](_0x1b66d9),'invokeId':(_0x2010cd=_0x1e686b[_0x4775c3(0x299)])!=null?_0x2010cd:'','executionId':(_0x2b23c7=_0x1e686b[_0x4775c3(0x1b8)])!=null?_0x2b23c7:''};try{const _0x1d6ce4=await this[_0x4775c3(0x1d1)][_0x4775c3(0x3d7)](_0x5b0e70,{'body':_0x2d8017});return _0x1d6ce4[_0x4775c3(0x252)][_0x4775c3(0x2eb)]&&_0x1d6ce4[_0x4775c3(0x252)][_0x4775c3(0x2eb)][_0x4775c3(0x182)]!==Be['OK']?_0x4775c3(0x339):_0x1d6ce4[_0x4775c3(0x252)][_0x4775c3(0x1af)];}catch{return'Failed';}}},exports['RemoteUniscriptService']=rs([ue(0x0,a[_0x570aba(0x1a5)]),ue(0x1,a[_0x570aba(0x33e)](G[_0x570aba(0x28f)])),ue(0x2,a[_0x570aba(0x205)])],exports[_0x570aba(0x234)]),exports[_0x570aba(0x392)]=xe,exports[_0x570aba(0x317)]=be,exports[_0x570aba(0x18a)]=Ae,exports['WebBrowserSingleActiveUnitService']=is,exports['WebURLService']=je;
|
|
1
|
+
'use strict';const _0x2f2715=_0x330b;(function(_0x4b4484,_0x4477f9){const _0x19a3d3=_0x330b,_0x1f84f3=_0x4b4484();while(!![]){try{const _0x2a3a87=parseInt(_0x19a3d3(0x248))/0x1+parseInt(_0x19a3d3(0x379))/0x2*(parseInt(_0x19a3d3(0x220))/0x3)+-parseInt(_0x19a3d3(0x13f))/0x4+parseInt(_0x19a3d3(0x307))/0x5*(parseInt(_0x19a3d3(0x31a))/0x6)+-parseInt(_0x19a3d3(0x221))/0x7+-parseInt(_0x19a3d3(0x2af))/0x8*(parseInt(_0x19a3d3(0x29b))/0x9)+-parseInt(_0x19a3d3(0x247))/0xa*(-parseInt(_0x19a3d3(0x16f))/0xb);if(_0x2a3a87===_0x4477f9)break;else _0x1f84f3['push'](_0x1f84f3['shift']());}catch(_0x5d78d2){_0x1f84f3['push'](_0x1f84f3['shift']());}}}(_0xdf25,0x50d92));var Ve=Object[_0x2f2715(0x3a2)],Xe=(_0x1caec3,_0x4c7332,_0x552e56)=>_0x4c7332 in _0x1caec3?Ve(_0x1caec3,_0x4c7332,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x552e56}):_0x1caec3[_0x4c7332]=_0x552e56,h=(_0x1bf61d,_0x6fdd8d,_0xc2729f)=>Xe(_0x1bf61d,typeof _0x6fdd8d!=_0x2f2715(0x22f)?_0x6fdd8d+'':_0x6fdd8d,_0xc2729f);Object[_0x2f2715(0x3a2)](exports,Symbol[_0x2f2715(0x238)],{'value':_0x2f2715(0x35a)});const u=require(_0x2f2715(0x2f6)),a=require(_0x2f2715(0x297)),p=require(_0x2f2715(0x1e0)),G=require(_0x2f2715(0x2dd)),b=require(_0x2f2715(0x264)),Ge=require(_0x2f2715(0x1ac)),d=require(_0x2f2715(0x1eb)),Y=require('@univerjs/docs'),m=require('@univerjs-pro/collaboration'),Ee=require(_0x2f2715(0x39d)),g=require(_0x2f2715(0x2f1)),$=require(_0x2f2715(0x282)),X=require(_0x2f2715(0x2b8)),P=require('react/jsx-runtime'),T=require(_0x2f2715(0x2e6)),D=require(_0x2f2715(0x29e)),M=require('react'),Ke=require('@univerjs/rpc');var qe=Object['getOwnPropertyDescriptor'],ze=(_0x4e8e48,_0x576cd1,_0x4736f3,_0x2695e4)=>{const _0x1b31b4=_0x2f2715;for(var _0x42435d=_0x2695e4>0x1?void 0x0:_0x2695e4?qe(_0x576cd1,_0x4736f3):_0x576cd1,_0x149568=_0x4e8e48[_0x1b31b4(0x159)]-0x1,_0x52373d;_0x149568>=0x0;_0x149568--)(_0x52373d=_0x4e8e48[_0x149568])&&(_0x42435d=_0x52373d(_0x42435d)||_0x42435d);return _0x42435d;},Te=(_0x430996,_0x1d99fc)=>(_0x99ab66,_0x557237)=>_0x1d99fc(_0x99ab66,_0x557237,_0x430996);let de=class extends a['RxDisposable']{constructor(_0x390fc9,_0x46d3c4){super(),this['_docClipboardService']=_0x390fc9,this['_imageIoService']=_0x46d3c4,this['_init']();}[_0x2f2715(0x1cb)](){const _0x2546ec=_0x2f2715,_0x378fd1=this;this['disposeWithMe'](this['_docClipboardService'][_0x2546ec(0x195)]({'onBeforePasteImage':async _0x4b24dc=>{const _0x43683e=_0x2546ec,_0x400d1e=await _0x378fd1[_0x43683e(0x355)]['saveImage'](_0x4b24dc);return _0x400d1e?{'source':_0x400d1e[_0x43683e(0x147)],'imageSourceType':_0x400d1e[_0x43683e(0x315)]}:null;}}));}};de=ze([Te(0x0,b[_0x2f2715(0x1e3)]),Te(0x1,Ge[_0x2f2715(0x365)])],de);const Oe=[_0x2f2715(0x1b9),'jiqing.500',_0x2f2715(0x2c9),_0x2f2715(0x162),_0x2f2715(0x1f5),'yellow.400'];class me extends a[_0x2f2715(0x24a)]{constructor(){const _0x19267f=_0x2f2715;super(...arguments),h(this,_0x19267f(0x2d9),new Map()),h(this,_0x19267f(0x33e),0x0);}[_0x2f2715(0x2e8)](_0x13aea7){const _0x32b242=_0x2f2715;if(this[_0x32b242(0x2d9)][_0x32b242(0x156)](_0x13aea7))return this[_0x32b242(0x2d9)]['get'](_0x13aea7);const _0x277ada=Oe[this[_0x32b242(0x33e)]];return this[_0x32b242(0x33e)]=(this['_colorIndex']+0x1)%Oe[_0x32b242(0x159)],this[_0x32b242(0x2d9)]['set'](_0x13aea7,_0x277ada),_0x277ada;}}function Pe(_0x49b4aa){const _0x4ae287=_0x2f2715;let _0x3c05c1='';for(const _0x3b96d1 of _0x49b4aa){const {startOffset:_0x247c87,endOffset:_0x23c003,isActive:_0x144435,rangeType:_0x444d8f,segmentId:_0x3ee09a,segmentPage:_0x507e1b}=_0x3b96d1;_0x3c05c1[_0x4ae287(0x159)]&&(_0x3c05c1+=','),_0x3c05c1+=_0x247c87+':'+_0x23c003+':'+(_0x144435?'1':'0')+':'+_0x444d8f+':'+_0x3ee09a+':'+_0x507e1b;}return _0x3c05c1;}function Je(_0x4f31a9){const _0x60bb29=_0x2f2715,_0x5b1739=_0x4f31a9[_0x60bb29(0x2b4)](','),_0x2ae1aa=[];for(const _0x142c66 of _0x5b1739){const [_0x31e0b2,_0x2739b8,_0x3a19ce,_0xe46be2,_0xa7ddee,_0x4b1c92]=_0x142c66[_0x60bb29(0x2b4)](':');_0x2ae1aa['push']({'startOffset':Number(_0x31e0b2),'endOffset':Number(_0x2739b8),'collapsed':_0x31e0b2===_0x2739b8,'isActive':_0x3a19ce==='1','rangeType':_0xe46be2===a[_0x60bb29(0x175)][_0x60bb29(0x345)]?a[_0x60bb29(0x175)][_0x60bb29(0x345)]:a[_0x60bb29(0x175)]['RECT'],'segmentId':typeof _0xa7ddee==_0x60bb29(0x367)?String(_0xa7ddee):'','segmentPage':Number(_0x4b1c92!=null?_0x4b1c92:-0x1)});}return _0x2ae1aa[_0x60bb29(0x3ab)](_0x290550=>_0x290550[_0x60bb29(0x35d)])||(_0x2ae1aa[0x0][_0x60bb29(0x35d)]=!0x0),_0x2ae1aa;}class Ce extends a[_0x2f2715(0x33d)]{constructor(){const _0x9f913f=_0x2f2715;super(...arguments),h(this,_0x9f913f(0x177),new d[(_0x9f913f(0x388))](null)),h(this,_0x9f913f(0x34a),this[_0x9f913f(0x177)][_0x9f913f(0x1b6)]());}['syncEditingCollabCursor'](_0xdbd447){const _0x4eafd9=_0x2f2715,{unitID:_0xf96ba2,memberID:_0x3119fe,textRanges:_0x2b8ff3}=_0xdbd447,_0x2fefb9=Pe(_0x2b8ff3);if(_0x2fefb9==='')return;const _0x28a900={'unitID':_0xf96ba2,'memberID':_0x3119fe,'selection':_0x2fefb9};this[_0x4eafd9(0x177)][_0x4eafd9(0x14b)](_0x28a900);}}var Ze=Object[_0x2f2715(0x3a5)],Qe=(_0x554f7c,_0x2b8bc8,_0x413e0e,_0x2a4d3c)=>{const _0x5ecfb9=_0x2f2715;for(var _0xd5250=_0x2a4d3c>0x1?void 0x0:_0x2a4d3c?Ze(_0x2b8bc8,_0x413e0e):_0x2b8bc8,_0x44812a=_0x554f7c[_0x5ecfb9(0x159)]-0x1,_0x525c46;_0x44812a>=0x0;_0x44812a--)(_0x525c46=_0x554f7c[_0x44812a])&&(_0xd5250=_0x525c46(_0xd5250)||_0xd5250);return _0xd5250;},L=(_0x45677a,_0x187aa2)=>(_0x349c78,_0x38c121)=>_0x187aa2(_0x349c78,_0x38c121,_0x45677a);const et=0x12c,tt=0x64;let fe=class extends a['RxDisposable']{constructor(_0x4305be,_0x551c39,_0x38dd34,_0x2dbfb4,_0x33b105,_0x23e6e0,_0x4532e5,_0x1cdc79,_0x552a44){const _0x3b5797=_0x2f2715;super(),h(this,_0x3b5797(0x1b3),!0x1),h(this,_0x3b5797(0x1cb),!0x1),h(this,_0x3b5797(0x1b4),new d['BehaviorSubject'](new Map())),h(this,_0x3b5797(0x1af),this[_0x3b5797(0x1b4)][_0x3b5797(0x1b6)]()),h(this,_0x3b5797(0x209),new d[(_0x3b5797(0x388))]([])),h(this,'roomMembers$',this[_0x3b5797(0x209)][_0x3b5797(0x231)](d[_0x3b5797(0x38f)](et))),h(this,_0x3b5797(0x39c),a['debounce'](_0xf11257=>{const _0x104962=_0x3b5797,_0x49a219={'eventID':m['CollaborationEvent'][_0x104962(0x357)],'data':{'unitID':this[_0x104962(0x3bb)],'memberID':this[_0x104962(0x300)][_0x104962(0x372)](),'selection':Pe(_0xf11257)}};this[_0x104962(0x300)][_0x104962(0x392)](_0x49a219,this[_0x104962(0x3bb)]);},tt)),(this[_0x3b5797(0x3bb)]=_0x4305be,this[_0x3b5797(0x300)]=_0x551c39,this[_0x3b5797(0x2da)]=_0x38dd34,this['_colorAssignService']=_0x2dbfb4,this[_0x3b5797(0x325)]=_0x33b105,this[_0x3b5797(0x3b2)]=_0x23e6e0,this[_0x3b5797(0x20a)]=_0x4532e5,this[_0x3b5797(0x267)]=_0x1cdc79,this[_0x3b5797(0x19a)]=_0x552a44);}get[_0x2f2715(0x186)](){const _0x98878f=_0x2f2715;return this[_0x98878f(0x1b4)][_0x98878f(0x27d)]();}get[_0x2f2715(0x187)](){const _0x1b2866=_0x2f2715;return this['_roomMembers$'][_0x1b2866(0x27d)]();}[_0x2f2715(0x215)](){const _0x14fa23=_0x2f2715;super[_0x14fa23(0x215)](),this[_0x14fa23(0x1b4)][_0x14fa23(0x14b)](new Map()),this[_0x14fa23(0x1b4)][_0x14fa23(0x1c4)](),this[_0x14fa23(0x209)][_0x14fa23(0x14b)]([]),this['_roomMembers$'][_0x14fa23(0x1c4)]();}[_0x2f2715(0x347)](){const _0xb462fc=_0x2f2715;this[_0xb462fc(0x1cb)]||(this[_0xb462fc(0x1cb)]=!0x0,this[_0xb462fc(0x300)][_0xb462fc(0x2fb)][_0xb462fc(0x231)](d['takeUntil'](this[_0xb462fc(0x23a)]))[_0xb462fc(0x185)](_0x163212=>{const _0x198ce6=_0xb462fc;_0x163212===u[_0x198ce6(0x2ba)][_0x198ce6(0x141)]?this[_0x198ce6(0x193)]():this[_0x198ce6(0x343)]();}),this[_0xb462fc(0x300)]['event$'][_0xb462fc(0x231)](d['takeUntil'](this['dispose$']))[_0xb462fc(0x185)](_0x2aabce=>{const _0x371ebe=_0xb462fc,_0x23e666=_0x2aabce['eventID'];_0x23e666===m[_0x371ebe(0x23c)][_0x371ebe(0x357)]&&this[_0x371ebe(0x19c)](_0x2aabce),_0x23e666===m['CollaborationEvent'][_0x371ebe(0x2ee)]&&this[_0x371ebe(0x189)](_0x2aabce);}),this[_0xb462fc(0x1d4)](this[_0xb462fc(0x19a)]['onCommandExecuted'](_0x643b6b=>{const _0x1f6159=_0xb462fc,_0x28d5d7=_0x643b6b[_0x1f6159(0x203)];_0x28d5d7!=null&&this[_0x1f6159(0x1b3)]&&_0x643b6b['id']===Y['SetTextSelectionsOperation']['id']&&_0x28d5d7[_0x1f6159(0x17b)]===this[_0x1f6159(0x3bb)]&&_0x28d5d7[_0x1f6159(0x222)]===!0x1&&_0x28d5d7[_0x1f6159(0x269)][_0x1f6159(0x159)]>0x0&&this[_0x1f6159(0x39c)](_0x28d5d7[_0x1f6159(0x269)]);})),this[_0xb462fc(0x3b2)][_0xb462fc(0x34a)][_0xb462fc(0x231)](d[_0xb462fc(0x378)](this[_0xb462fc(0x23a)]))[_0xb462fc(0x185)](_0x3af011=>{const _0x5f4b70=_0xb462fc;if((_0x3af011==null?void 0x0:_0x3af011[_0x5f4b70(0x3bb)])!==this[_0x5f4b70(0x3bb)])return;const _0x13b9b5={'eventID':m[_0x5f4b70(0x23c)][_0x5f4b70(0x357)],'data':_0x3af011};this[_0x5f4b70(0x19c)](_0x13b9b5);}),this[_0xb462fc(0x1d4)](this[_0xb462fc(0x19a)]['onCommandExecuted'](_0x436769=>{const _0x34fd3f=_0xb462fc;if(_0x436769[_0x34fd3f(0x203)]==null)return;const _0x3affd0=_0x436769['params'];if(_0x436769['id']!==Y[_0x34fd3f(0x37c)]['id']||_0x3affd0[_0x34fd3f(0x17b)]!==this[_0x34fd3f(0x3bb)])return;const _0x44a6ec={'id':_0x34fd3f(0x184),'params':_0x3affd0},_0x35ba90=this['cursorInfo'];for(const [_0x29be6f,_0x1df0c8]of _0x35ba90){const _0x58699a={'id':_0x34fd3f(0x184),'params':{'unitId':this['unitID'],'actions':null,'textRanges':_0x1df0c8[_0x34fd3f(0x269)]}},_0x4efe0f=this[_0x34fd3f(0x20a)][_0x34fd3f(0x20b)](_0x44a6ec,_0x58699a,!0x1);if(m[_0x34fd3f(0x1fc)](_0x4efe0f))throw _0x4efe0f[_0x34fd3f(0x20e)];_0x35ba90['set'](_0x29be6f,{..._0x1df0c8,'ranges':_0x4efe0f[_0x34fd3f(0x13c)][_0x34fd3f(0x203)][_0x34fd3f(0x353)]});}queueMicrotask(()=>{const _0x4a48be=_0x34fd3f;this[_0x4a48be(0x1b4)][_0x4a48be(0x14b)](_0x35ba90);});})));}['_onCursorUpdate'](_0x508037){const _0x4eacc1=_0x2f2715;var _0x59db5d,_0x56ac55;const {memberID:_0xfd1adf,selection:_0x751032}=_0x508037[_0x4eacc1(0x346)],_0x225eb9=Je(_0x751032),_0x18d4bc=(_0x56ac55=(_0x59db5d=this['_memberService'][_0x4eacc1(0x143)](this['unitID'],_0xfd1adf))==null?void 0x0:_0x59db5d['name'])!=null?_0x56ac55:_0x4eacc1(0x180),_0x39a1e8={'color':this[_0x4eacc1(0x229)][_0x4eacc1(0x2e8)](_0xfd1adf),'name':_0x18d4bc,'ranges':_0x225eb9},_0x18eb2e=this[_0x4eacc1(0x186)];_0x18eb2e[_0x4eacc1(0x2bc)](_0xfd1adf,_0x39a1e8),this['_cursorInfo$'][_0x4eacc1(0x14b)](_0x18eb2e);}[_0x2f2715(0x189)](_0x3cebf1){const _0x2722a3=_0x2f2715,{memberID:_0x22a9a4}=_0x3cebf1['data'],_0x3e2ffc=this[_0x2722a3(0x186)];_0x3e2ffc[_0x2722a3(0x1e1)](_0x22a9a4),this[_0x2722a3(0x1b4)]['next'](_0x3e2ffc);}['_toggleOnline'](){const _0xa7ca88=_0x2f2715;var _0x2a1af6;if(this[_0xa7ca88(0x1b3)]=!0x0,((_0x2a1af6=this[_0xa7ca88(0x267)][_0xa7ca88(0x18b)]())==null?void 0x0:_0x2a1af6[_0xa7ca88(0x24d)]())!==this['unitID'])return;const _0x36b83b=this[_0xa7ca88(0x2da)][_0xa7ca88(0x2f7)](Y['DocSelectionManagerService'])[_0xa7ca88(0x2d3)]();Array[_0xa7ca88(0x2a2)](_0x36b83b)&&_0x36b83b['length']>0x0&&this[_0xa7ca88(0x39c)](_0x36b83b);}['_toggleOffline'](){const _0xc2ef3e=_0x2f2715;this[_0xc2ef3e(0x1b3)]=!0x1;}};fe=Qe([L(0x2,a[_0x2f2715(0x1e2)](a['Injector'])),L(0x3,a[_0x2f2715(0x1e2)](me)),L(0x4,a['Inject'](u[_0x2f2715(0x24e)])),L(0x5,a[_0x2f2715(0x1e2)](Ce)),L(0x6,m['ITransformService']),L(0x7,a['IUniverInstanceService']),L(0x8,a[_0x2f2715(0x35b)])],fe);var st=Object['getOwnPropertyDescriptor'],it=(_0x3b73e2,_0x318cd1,_0x53e075,_0x53a021)=>{const _0x495e5b=_0x2f2715;for(var _0xdcefb3=_0x53a021>0x1?void 0x0:_0x53a021?st(_0x318cd1,_0x53e075):_0x318cd1,_0x590b06=_0x3b73e2[_0x495e5b(0x159)]-0x1,_0x138968;_0x590b06>=0x0;_0x590b06--)(_0x138968=_0x3b73e2[_0x590b06])&&(_0xdcefb3=_0x138968(_0xdcefb3)||_0xdcefb3);return _0xdcefb3;},w=(_0x31cb58,_0x104326)=>(_0x410f98,_0x320ea2)=>_0x104326(_0x410f98,_0x320ea2,_0x31cb58);const nt=0x12c,rt=0x64,ot=()=>{let _0x5837e7=[],_0x4e85be=!0x1;return _0x158778=>{const _0x1ad991=_0x330b;_0x5837e7[_0x1ad991(0x1f6)](_0x158778),_0x4e85be||(_0x4e85be=!0x0,setTimeout(()=>{const _0x2464ac=_0x1ad991;_0x5837e7[_0x2464ac(0x265)](_0xd1d715=>_0xd1d715()),_0x5837e7=[],_0x4e85be=!0x1;}));};};let Se=class extends a[_0x2f2715(0x33d)]{constructor(_0x234c01,_0x1835cd,_0x3aabfd,_0x57f61c,_0xb3ce6d,_0x3dae83,_0x284080,_0x3a8281){const _0x2e22f1=_0x2f2715;super(),h(this,_0x2e22f1(0x1b3),!0x1),h(this,'_init',!0x1),h(this,_0x2e22f1(0x1b4),new d[(_0x2e22f1(0x388))](new Map())),h(this,_0x2e22f1(0x1af),this[_0x2e22f1(0x1b4)][_0x2e22f1(0x1b6)]()),h(this,_0x2e22f1(0x209),new d[(_0x2e22f1(0x388))]([])),h(this,_0x2e22f1(0x324),this[_0x2e22f1(0x209)][_0x2e22f1(0x231)](d['debounceTime'](nt))),h(this,_0x2e22f1(0x39c),a['debounce']((_0x253143,_0x4020d9)=>{const _0x15d38b=_0x2e22f1,_0x443d83={'eventID':m[_0x15d38b(0x23c)]['UPDATE_CURSOR'],'data':{'unitID':this['unitID'],'memberID':this[_0x15d38b(0x300)]['getMemberID'](),'selection':Ee[_0x15d38b(0x2a3)](_0x253143,_0x4020d9[_0x15d38b(0x257)])}};this[_0x15d38b(0x300)]['send'](_0x443d83,this[_0x15d38b(0x3bb)]);},rt)),(this[_0x2e22f1(0x3bb)]=_0x234c01,this[_0x2e22f1(0x300)]=_0x1835cd,this[_0x2e22f1(0x2da)]=_0x3aabfd,this['_colorAssignService']=_0x57f61c,this[_0x2e22f1(0x325)]=_0xb3ce6d,this[_0x2e22f1(0x267)]=_0x3dae83,this['_commandService']=_0x284080,this[_0x2e22f1(0x1ee)]=_0x3a8281);}get[_0x2f2715(0x186)](){const _0x3f832b=_0x2f2715;return this[_0x3f832b(0x1b4)][_0x3f832b(0x27d)]();}get['roomMembers'](){const _0x50b9ff=_0x2f2715;return this[_0x50b9ff(0x209)][_0x50b9ff(0x27d)]();}[_0x2f2715(0x215)](){const _0x135ddd=_0x2f2715;super[_0x135ddd(0x215)](),this[_0x135ddd(0x1b4)][_0x135ddd(0x14b)](new Map()),this['_cursorInfo$'][_0x135ddd(0x1c4)](),this['_roomMembers$'][_0x135ddd(0x14b)]([]),this[_0x135ddd(0x209)][_0x135ddd(0x1c4)]();}[_0x2f2715(0x347)](){const _0x4805b4=_0x2f2715;this['_init']||(this['_init']=!0x0,this[_0x4805b4(0x300)][_0x4805b4(0x2fb)]['pipe'](d[_0x4805b4(0x378)](this[_0x4805b4(0x23a)]))[_0x4805b4(0x185)](_0x19dab9=>{const _0x3621ec=_0x4805b4;_0x19dab9===u[_0x3621ec(0x2ba)]['ONLINE']?this[_0x3621ec(0x193)]():this['_toggleOffline']();}),this[_0x4805b4(0x300)][_0x4805b4(0x218)][_0x4805b4(0x231)](d['takeUntil'](this['dispose$']))['subscribe'](_0xf9b295=>{const _0x11570b=_0x4805b4,_0x3fddb5=_0xf9b295['eventID'];_0x3fddb5===m[_0x11570b(0x23c)]['UPDATE_CURSOR']&&this[_0x11570b(0x19c)](_0xf9b295),_0x3fddb5===m['CollaborationEvent']['USERS_LEAVE']&&this[_0x11570b(0x189)](_0xf9b295);}),this[_0x4805b4(0x1d9)](),this['disposeWithMe'](this[_0x4805b4(0x19a)][_0x4805b4(0x2ec)](_0x37fe11=>{const _0x3737db=_0x4805b4;if(this[_0x3737db(0x1b3)]&&_0x37fe11['id']===g[_0x3737db(0x2d7)]['id']&&_0x37fe11[_0x3737db(0x203)]['unitId']===this[_0x3737db(0x3bb)]){const _0xf1ab23=_0x37fe11[_0x3737db(0x203)];this['_updateLocalCursor'](_0xf1ab23[_0x3737db(0x1d8)],_0xf1ab23['selections'][0x0]);}})));}[_0x2f2715(0x19c)](_0xb86fc2){const _0x40a14b=_0x2f2715;var _0x15d58e,_0x75d5b8;const {memberID:_0x788a1d,selection:_0x4ad837}=_0xb86fc2['data'],{sheetName:_0x1b6acd,range:_0x4dbb20}=Ee[_0x40a14b(0x178)](_0x4ad837),_0x1264bd={'name':(_0x75d5b8=(_0x15d58e=this['_memberService'][_0x40a14b(0x143)](this['unitID'],_0x788a1d))==null?void 0x0:_0x15d58e[_0x40a14b(0x3bc)])!=null?_0x75d5b8:_0x40a14b(0x180),'range':this['_getMergeRange'](_0x1b6acd,_0x4dbb20),'sheetID':_0x1b6acd,'color':this[_0x40a14b(0x229)]['assignAColorForMemberID'](_0x788a1d),'selection':_0x4ad837},_0x39462e=this[_0x40a14b(0x186)];_0x39462e[_0x40a14b(0x2bc)](_0x788a1d,_0x1264bd),this['_cursorInfo$'][_0x40a14b(0x14b)](_0x39462e);}[_0x2f2715(0x189)](_0x39f1a0){const _0x6c8af6=_0x2f2715,{memberID:_0x3d00f2}=_0x39f1a0['data'],_0x469cd6=this[_0x6c8af6(0x186)];_0x469cd6['delete'](_0x3d00f2),this[_0x6c8af6(0x1b4)][_0x6c8af6(0x14b)](_0x469cd6);}[_0x2f2715(0x145)](_0x188a3d,_0x45e325){const _0x308130=_0x2f2715;var _0x256952,_0x2da93d;const _0x3b3384=(_0x2da93d=(_0x256952=this[_0x308130(0x267)]['getUniverSheetInstance'](this['unitID']))==null?void 0x0:_0x256952['getSheetBySheetId'](_0x188a3d))==null?void 0x0:_0x2da93d[_0x308130(0x327)]();return(_0x3b3384==null?void 0x0:_0x3b3384['find'](_0x528f3a=>a[_0x308130(0x214)]['contains'](_0x528f3a,_0x45e325)))||_0x45e325;}['_onRefRangeChange'](){const _0x480fcb=_0x2f2715,_0xa4f4c3=new a['DisposableCollection'](),_0x30022b=ot(),_0xb8c62=()=>{const _0x3cbb04=_0x330b;_0xa4f4c3[_0x3cbb04(0x215)]();const _0x32247f=(_0xeea082,_0x14dfbc,_0x387ac5,_0x3729b8)=>{const _0x228691=_0x3cbb04;let _0x5c627a=[];switch(_0xeea082['id']){case g['EffectRefRangId'][_0x228691(0x1a7)]:{_0x5c627a=g['handleDeleteRangeMoveLeft'](_0xeea082,_0x3729b8);break;}case g[_0x228691(0x33c)][_0x228691(0x35f)]:{_0x5c627a=g['handleDeleteRangeMoveUp'](_0xeea082,_0x3729b8);break;}case g['EffectRefRangId']['InsertColCommandId']:{_0x5c627a=g[_0x228691(0x26c)](_0xeea082,_0x3729b8);break;}case g['EffectRefRangId'][_0x228691(0x1ff)]:{_0x5c627a=g[_0x228691(0x299)](_0xeea082,_0x3729b8);break;}case g['EffectRefRangId']['InsertRangeMoveRightCommandId']:{_0x5c627a=g[_0x228691(0x34d)](_0xeea082,_0x3729b8);break;}case g[_0x228691(0x33c)][_0x228691(0x377)]:{_0x5c627a=g[_0x228691(0x302)](_0xeea082,_0x3729b8);break;}case g[_0x228691(0x33c)][_0x228691(0x366)]:{_0x5c627a=g['handleMoveRange'](_0xeea082,_0x3729b8);break;}case g[_0x228691(0x33c)][_0x228691(0x32c)]:{_0x5c627a=g[_0x228691(0x354)](_0xeea082,_0x3729b8);break;}case g[_0x228691(0x33c)]['RemoveRowCommandId']:{_0x5c627a=g[_0x228691(0x274)](_0xeea082,_0x3729b8);break;}}const _0x219ff0=g[_0x228691(0x2b9)](_0x5c627a,_0x3729b8),_0x2d4287=this[_0x228691(0x186)][_0x228691(0x2f7)](_0x14dfbc);if(_0x2d4287&&_0x219ff0){const _0x47641c={..._0x2d4287,'range':_0x219ff0};this[_0x228691(0x186)]['set'](_0x14dfbc,_0x47641c),_0x30022b(()=>{const _0x3fd55f=_0x228691,_0x156c25=this[_0x3fd55f(0x1ee)][_0x3fd55f(0x13b)](_0x219ff0,_0x3bded0=>(_0x156c25[_0x3fd55f(0x215)](),_0x32247f(_0x3bded0,_0x14dfbc,_0x387ac5,_0x219ff0)));_0xa4f4c3[_0x3fd55f(0x239)](_0x156c25);});}return{'redos':[],'undos':[]};};this['cursorInfo'][_0x3cbb04(0x265)]((_0xfd2a2,_0x7e61ba)=>{const _0x10377d=_0x3cbb04,{range:_0xe6e839,sheetID:_0x594785}=_0xfd2a2,_0x40584=this[_0x10377d(0x1ee)][_0x10377d(0x13b)](_0xe6e839,_0x7c3b49=>(_0x40584[_0x10377d(0x215)](),_0x32247f(_0x7c3b49,_0x7e61ba,_0x594785,_0xe6e839)));_0xa4f4c3['add'](_0x40584);});};this[_0x480fcb(0x1d4)](a['toDisposable'](this['_cursorInfo$']['subscribe'](()=>{_0xb8c62();})));}[_0x2f2715(0x193)](){const _0x2adbf8=_0x2f2715;var _0x1e43b3,_0x5cb73c;if(this[_0x2adbf8(0x1b3)]=!0x0,((_0x1e43b3=this[_0x2adbf8(0x267)]['getFocusedUnit']())==null?void 0x0:_0x1e43b3[_0x2adbf8(0x24d)]())!==this[_0x2adbf8(0x3bb)])return;const _0x5ab5e5=(_0x5cb73c=this[_0x2adbf8(0x2da)]['get'](g['SheetsSelectionsService'])[_0x2adbf8(0x2e9)]())==null?void 0x0:_0x5cb73c[0x0],_0x29c494=this['_univerInstanceService']['getCurrentUnitForType'](a['UniverInstanceType']['UNIVER_SHEET'])[_0x2adbf8(0x38b)]();_0x5ab5e5&&_0x29c494&&this[_0x2adbf8(0x39c)](_0x29c494[_0x2adbf8(0x36c)](),_0x5ab5e5);}[_0x2f2715(0x343)](){const _0x36b053=_0x2f2715;this[_0x36b053(0x1b3)]=!0x1;}};Se=it([w(0x2,a[_0x2f2715(0x1e2)](a[_0x2f2715(0x1f1)])),w(0x3,a['Inject'](me)),w(0x4,a[_0x2f2715(0x1e2)](u[_0x2f2715(0x24e)])),w(0x5,a['IUniverInstanceService']),w(0x6,a[_0x2f2715(0x35b)]),w(0x7,a[_0x2f2715(0x1e2)](g['RefRangeService']))],Se);var at=Object[_0x2f2715(0x3a5)],ct=(_0x53b0e5,_0x2f19c3,_0x3ad567,_0x29127d)=>{const _0x4975cd=_0x2f2715;for(var _0x49c774=_0x29127d>0x1?void 0x0:_0x29127d?at(_0x2f19c3,_0x3ad567):_0x2f19c3,_0x463c87=_0x53b0e5[_0x4975cd(0x159)]-0x1,_0x4e87c6;_0x463c87>=0x0;_0x463c87--)(_0x4e87c6=_0x53b0e5[_0x463c87])&&(_0x49c774=_0x4e87c6(_0x49c774)||_0x49c774);return _0x49c774;},ie=(_0x5c3786,_0x1c7815)=>(_0x1b56c2,_0x4143e3)=>_0x1c7815(_0x1b56c2,_0x4143e3,_0x5c3786);let x=class extends a[_0x2f2715(0x33d)]{constructor(_0x5945c9,_0x234f6d,_0x1ba479){const _0xe30953=_0x2f2715;super(),h(this,_0xe30953(0x19e),new Map()),h(this,'_entityInit$',new d[(_0xe30953(0x375))]()),(this[_0xe30953(0x267)]=_0x5945c9,this['_injector']=_0x234f6d,this[_0xe30953(0x397)]=_0x1ba479,this[_0xe30953(0x1cb)]());}[_0x2f2715(0x215)](){const _0x309656=_0x2f2715;super[_0x309656(0x215)](),this[_0x309656(0x320)][_0x309656(0x1c4)](),this[_0x309656(0x19e)]['forEach'](_0x3934d7=>_0x3934d7[_0x309656(0x215)]());}[_0x2f2715(0x21f)](_0x30d98f){const _0x574538=_0x2f2715;return this['_entities'][_0x574538(0x156)](_0x30d98f)?this[_0x574538(0x19e)][_0x574538(0x2f7)](_0x30d98f)[_0x574538(0x1af)]:this['_entityInit$'][_0x574538(0x231)](d[_0x574538(0x1ef)](_0x5c584b=>_0x5c584b[_0x574538(0x3bb)]===_0x30d98f),d[_0x574538(0x2fd)](_0x514bf4=>_0x514bf4[_0x574538(0x1af)]));}[_0x2f2715(0x1cb)](){const _0x528119=_0x2f2715;this[_0x528119(0x267)][_0x528119(0x278)](a[_0x528119(0x17a)][_0x528119(0x3a9)])[_0x528119(0x231)](d['takeUntil'](this['dispose$']))[_0x528119(0x185)](async _0x59e26f=>{const _0x5ec17b=_0x528119,_0x2aabfb=_0x59e26f[_0x5ec17b(0x24d)](),_0x3d28c5=await this[_0x5ec17b(0x169)](_0x2aabfb);this[_0x5ec17b(0x320)][_0x5ec17b(0x14b)](_0x3d28c5),this[_0x5ec17b(0x19e)][_0x5ec17b(0x2bc)](_0x2aabfb,_0x3d28c5);}),this[_0x528119(0x267)][_0x528119(0x278)](a['UniverInstanceType'][_0x528119(0x223)])[_0x528119(0x231)](d[_0x528119(0x378)](this[_0x528119(0x23a)]))[_0x528119(0x231)](d[_0x528119(0x1ef)](_0x124e15=>!_0x124e15[_0x528119(0x24d)]()[_0x528119(0x22e)]('__')))[_0x528119(0x185)](async _0x1b17a3=>{const _0xbafcd1=_0x528119,_0x3a06aa=_0x1b17a3[_0xbafcd1(0x24d)](),_0x46371a=await this[_0xbafcd1(0x1da)](_0x3a06aa);this['_entityInit$'][_0xbafcd1(0x14b)](_0x46371a),this[_0xbafcd1(0x19e)][_0xbafcd1(0x2bc)](_0x3a06aa,_0x46371a);}),d['merge'](this[_0x528119(0x267)][_0x528119(0x293)](a['UniverInstanceType'][_0x528119(0x223)]),this[_0x528119(0x267)][_0x528119(0x293)](a[_0x528119(0x17a)][_0x528119(0x3a9)]))[_0x528119(0x231)](d['takeUntil'](this[_0x528119(0x23a)]))[_0x528119(0x185)](_0x46eda1=>{const _0x5e09e5=_0x528119,_0x3ee4d8=_0x46eda1[_0x5e09e5(0x24d)](),_0x32f682=this[_0x5e09e5(0x19e)][_0x5e09e5(0x2f7)](_0x3ee4d8);_0x32f682&&(_0x32f682[_0x5e09e5(0x215)](),this[_0x5e09e5(0x19e)][_0x5e09e5(0x1e1)](_0x3ee4d8));});}async['_startSheetCollabCursor'](_0xf3b539){const _0x39d81e=_0x2f2715,_0x50fbb3=await this[_0x39d81e(0x397)][_0x39d81e(0x25a)](_0xf3b539),_0xd315d1=this['_injector'][_0x39d81e(0x290)](Se,_0xf3b539,_0x50fbb3);return _0xd315d1[_0x39d81e(0x347)](),_0xd315d1;}async[_0x2f2715(0x1da)](_0x27d25f){const _0x21cb40=_0x2f2715,_0x40f538=await this[_0x21cb40(0x397)][_0x21cb40(0x25a)](_0x27d25f),_0x528231=this['_injector']['createInstance'](fe,_0x27d25f,_0x40f538);return _0x528231[_0x21cb40(0x347)](),_0x528231;}};x=ct([ie(0x0,a[_0x2f2715(0x383)]),ie(0x1,a['Inject'](a[_0x2f2715(0x1f1)])),ie(0x2,a['Inject'](u[_0x2f2715(0x153)]))],x);const K=0x14,Re=0xc8,ne=0x4,lt=0x5;function _t(_0x522751,_0x123506){const _0x5b5dac=_0x2f2715;let {radius:_0x115ada,width:_0x5a5a71,height:_0x4810c8}=_0x123506;_0x115ada=_0x115ada!=null?_0x115ada:0x0,_0x5a5a71=_0x5a5a71!=null?_0x5a5a71:0x1e,_0x4810c8=_0x4810c8!=null?_0x4810c8:0x1e;let _0x19c4af=0x0,_0x2d5fd2=0x0,_0x4fefdb=0x0;_0x19c4af=_0x2d5fd2=_0x4fefdb=Math[_0x5b5dac(0x295)](_0x115ada,_0x5a5a71/0x2,_0x4810c8/0x2),_0x522751[_0x5b5dac(0x1fd)](),_0x522751[_0x5b5dac(0x254)](_0x19c4af,0x0),_0x522751[_0x5b5dac(0x291)](_0x5a5a71-_0x2d5fd2,0x0),_0x522751[_0x5b5dac(0x2cd)](_0x5a5a71-_0x2d5fd2,_0x2d5fd2,_0x2d5fd2,Math['PI']*0x3/0x2,0x0,!0x1),_0x522751['lineTo'](_0x5a5a71,_0x4810c8-_0x4fefdb),_0x522751['arc'](_0x5a5a71-_0x4fefdb,_0x4810c8-_0x4fefdb,_0x4fefdb,0x0,Math['PI']/0x2,!0x1),_0x522751['lineTo'](0x0,_0x4810c8),_0x522751['lineTo'](0x0,_0x19c4af),_0x522751[_0x5b5dac(0x2cd)](_0x19c4af,_0x19c4af,_0x19c4af,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x522751[_0x5b5dac(0x329)](),_0x123506[_0x5b5dac(0x338)]&&(_0x522751[_0x5b5dac(0x233)](),_0x522751[_0x5b5dac(0x334)]=_0x123506[_0x5b5dac(0x338)],_0x123506[_0x5b5dac(0x359)]===_0x5b5dac(0x2c3)?_0x522751[_0x5b5dac(0x338)](_0x5b5dac(0x2c3)):_0x522751['fill'](),_0x522751[_0x5b5dac(0x312)]());}class ee extends p[_0x2f2715(0x2b5)]{constructor(_0x87a324,_0x1d5414){const _0x12b6e9=_0x2f2715;super(_0x87a324,_0x1d5414),h(this,_0x12b6e9(0x244)),h(this,_0x12b6e9(0x1a2)),(this[_0x12b6e9(0x244)]=_0x1d5414==null?void 0x0:_0x1d5414[_0x12b6e9(0x244)],this['text']=_0x1d5414==null?void 0x0:_0x1d5414[_0x12b6e9(0x1a2)]);}static[_0x2f2715(0x328)](_0x336e57,_0x34da80){const _0x136764=_0x2f2715,{text:_0x4b9b6b,color:_0x3a4fc2}=_0x34da80;_0x336e57[_0x136764(0x233)](),_0x336e57[_0x136764(0x16b)]=_0x136764(0x2c0);const _0x69d1d5=_0x336e57['measureText'](_0x4b9b6b)['width'],_0x506ba9=Math[_0x136764(0x295)](_0x69d1d5+0x2*ne,Re);_t(_0x336e57,{'height':K,'radius':0x4,'width':_0x506ba9,'fill':_0x3a4fc2}),_0x336e57[_0x136764(0x334)]=_0x136764(0x2c2);const _0x3f992d=ne,_0x220a7d=K-lt,_0x103a10=Re-0x2*ne;if(_0x69d1d5>_0x103a10){let _0x48a414='',_0x508f15=0x0;for(const _0x18fe36 of _0x4b9b6b){const _0x1da21d=_0x336e57[_0x136764(0x31b)](_0x18fe36)[_0x136764(0x2f4)];if(_0x508f15+_0x1da21d<=_0x103a10-_0x336e57[_0x136764(0x31b)](_0x136764(0x21a))['width'])_0x48a414+=_0x18fe36,_0x508f15+=_0x1da21d;else{_0x48a414+=_0x136764(0x21a);break;}}_0x336e57['fillText'](_0x48a414,_0x3f992d,_0x220a7d);}else _0x336e57[_0x136764(0x263)](_0x4b9b6b,_0x3f992d,_0x220a7d);_0x336e57[_0x136764(0x312)]();}['_draw'](_0x3a0188){const _0x448e53=_0x2f2715;ee[_0x448e53(0x328)](_0x3a0188,this);}}const re=_0x2f2715(0x13d),ht=_0x2f2715(0x2fe),ut='collab-rect-range-',k=0x6,dt=1.5,oe=0x4,ft=1.5,St=_0x2f2715(0x266);class De{constructor(_0x2c8226,_0x132f3b,_0x242d07,_0x1728e3){const _0xa07731=_0x2f2715;h(this,_0xa07731(0x391),[]),h(this,_0xa07731(0x217),null),h(this,'_textBubble',null),h(this,_0xa07731(0x2c6),null),h(this,_0xa07731(0x259),null),h(this,_0xa07731(0x1d5),null),(this[_0xa07731(0x2c8)]=_0x2c8226,this[_0xa07731(0x1d3)]=_0x132f3b,this[_0xa07731(0x1d2)]=_0x242d07,this[_0xa07731(0x1fb)]=_0x1728e3,this[_0xa07731(0x2f8)]());}set[_0x2f2715(0x252)](_0x27079c){const _0x144c2f=_0x2f2715;_0x27079c?(this[_0x144c2f(0x2c6)]&&this[_0x144c2f(0x2c6)][_0x144c2f(0x240)](),this[_0x144c2f(0x1cd)]&&this[_0x144c2f(0x1cd)][_0x144c2f(0x2b6)]()):(this[_0x144c2f(0x2c6)]&&this['_anchorDot'][_0x144c2f(0x2b6)](),this[_0x144c2f(0x1cd)]&&this[_0x144c2f(0x1cd)][_0x144c2f(0x240)]());}[_0x2f2715(0x215)](){const _0x2f3d9e=_0x2f2715;for(const _0x2f5c7f of this['_shapes'])_0x2f5c7f[_0x2f3d9e(0x215)]();this[_0x2f3d9e(0x1cd)]&&this[_0x2f3d9e(0x1cd)]['dispose'](),this[_0x2f3d9e(0x2c6)]&&this[_0x2f3d9e(0x2c6)][_0x2f3d9e(0x215)](),this[_0x2f3d9e(0x217)]&&this['_anchor'][_0x2f3d9e(0x215)](),this['_eventUnsubscribe']&&this['_eventUnsubscribe']();}[_0x2f2715(0x2f8)](){const _0x1e9382=_0x2f2715;var _0xf5bbda;const {_docSkeleton:_0x5a222f,_document:_0x158c2f}=this,{color:_0x8032bc,name:_0x423699,ranges:_0x219a9d}=this[_0x1e9382(0x2c8)],_0x48c117=_0x158c2f[_0x1e9382(0x191)](),{docsLeft:_0x2b3b18,docsTop:_0x4569cf}=_0x48c117,_0x20f77c=new b[(_0x1e9382(0x149))](_0x48c117,_0x5a222f);for(const {startOffset:_0x44d275,endOffset:_0x4bf302,rangeType:_0x152576,segmentId:_0x3d42d1,segmentPage:_0x16c240,collapsed:_0x3e6025,isActive:_0x46e3bd}of _0x219a9d){const _0x3bc798=_0x5a222f[_0x1e9382(0x33b)](_0x44d275,!0x0,_0x3d42d1,_0x16c240);let _0x1a35ff=_0x5a222f['findNodePositionByCharIndex'](_0x4bf302,!0x0,_0x3d42d1,_0x16c240);if(_0x1a35ff==null&&(_0x1a35ff=_0x5a222f[_0x1e9382(0x33b)](_0x4bf302-0x1,!0x1,_0x3d42d1,_0x16c240)),_0x46e3bd){const {contentBoxPointGroup:_0x42f4a5}=_0x20f77c[_0x1e9382(0x1e9)](_0x1a35ff,_0x1a35ff);if(_0x42f4a5[_0x1e9382(0x159)]===0x0)continue;this[_0x1e9382(0x18c)](_0x8032bc,_0x42f4a5,_0x2b3b18,_0x4569cf,_0x423699),this['_eventUnsubscribe']=this[_0x1e9382(0x26e)]();}if(_0x3bc798&&_0x1a35ff){if(_0x152576===a[_0x1e9382(0x175)][_0x1e9382(0x2a0)]){const _0xfcf26a=new b[(_0x1e9382(0x14a))](_0x48c117,_0x5a222f),{pointGroup:_0x87e9a7}=(_0xf5bbda=_0xfcf26a[_0x1e9382(0x1e9)](_0x3bc798,_0x1a35ff))!=null?_0xf5bbda:{};if(_0x87e9a7==null||_0x87e9a7[_0x1e9382(0x159)]===0x0)continue;this[_0x1e9382(0x1ea)](_0x8032bc,_0x87e9a7,_0x2b3b18,_0x4569cf);}else{if(!_0x3e6025){const {borderBoxPointGroup:_0x1e537d}=_0x20f77c['getRangePointData'](_0x3bc798,_0x1a35ff);if(_0x1e537d[_0x1e9382(0x159)]===0x0)continue;this['_drawTextRange'](_0x8032bc,_0x1e537d,_0x2b3b18,_0x4569cf);}}}}}['_drawAnchor'](_0x37990b,_0x3f2bdd,_0x2e03e1,_0x24b1fc,_0x5709ae){const _0x21c7cc=_0x2f2715,_0x57c644=this[_0x21c7cc(0x2b0)](_0x3f2bdd),{left:_0x13886f,top:_0x414476,height:_0x1f4fce}=_0x57c644,_0x3d9aa8=this[_0x21c7cc(0x32e)](),_0x157974=ft/_0x3d9aa8,_0x51182c=new p['Rect'](re+a[_0x21c7cc(0x196)][_0x21c7cc(0x160)](k),{'left':_0x13886f+_0x2e03e1-_0x157974,'top':_0x414476+_0x24b1fc,'height':_0x1f4fce,'width':dt,'fill':_0x37990b||p['getColor'](a['COLORS']['black'],0x0),'strokeWidth':_0x157974,'stroke':St,'evented':!0x0});this[_0x21c7cc(0x217)]=_0x51182c,this['_scene'][_0x21c7cc(0x207)](_0x51182c,b[_0x21c7cc(0x352)]);const _0x9526aa=new p['Rect'](re+a['Tools']['generateRandomId'](k),{'left':_0x13886f+_0x2e03e1-_0x157974,'top':_0x414476+_0x24b1fc-oe/0x2,'height':oe,'width':oe,'fill':_0x37990b||p[_0x21c7cc(0x163)](a[_0x21c7cc(0x154)][_0x21c7cc(0x1c7)],0x0),'strokeWidth':0x0,'stroke':_0x37990b||p[_0x21c7cc(0x163)](a[_0x21c7cc(0x154)][_0x21c7cc(0x1c7)],0x0),'evented':!0x1});this[_0x21c7cc(0x2c6)]=_0x9526aa,this[_0x21c7cc(0x1d3)][_0x21c7cc(0x207)](_0x9526aa,b[_0x21c7cc(0x352)]);const _0x3a891e=new ee(re+a[_0x21c7cc(0x196)][_0x21c7cc(0x160)](k),{'left':_0x13886f+_0x2e03e1-_0x157974,'top':_0x414476+_0x24b1fc-K,'text':_0x5709ae,'color':_0x37990b});this[_0x21c7cc(0x1cd)]=_0x3a891e,this[_0x21c7cc(0x1d3)]['addObject'](_0x3a891e,b[_0x21c7cc(0x352)]),this[_0x21c7cc(0x252)]=!0x1;}['_handleHover'](){const _0x298ee1=_0x2f2715,_0x586880=this[_0x298ee1(0x217)]['onPointerEnter$'][_0x298ee1(0x1a0)](()=>{this['_hover']=!0x0;}),_0x4d08f5=this[_0x298ee1(0x217)][_0x298ee1(0x36d)][_0x298ee1(0x1a0)](()=>{const _0x2ed8b3=_0x298ee1;this['_hideTimer']&&clearTimeout(this[_0x2ed8b3(0x259)]),this['_hideTimer']=setTimeout(()=>{this['_hover']=!0x1;},0x7d0);});return()=>{const _0x56a82e=_0x298ee1;_0x586880[_0x56a82e(0x319)](),_0x4d08f5[_0x56a82e(0x319)]();};}[_0x2f2715(0x158)](_0x22285b,_0x52ada2,_0x4b403b,_0x9ac839){const _0x149a10=_0x2f2715,_0x51ab9a=new a['ColorKit'](_0x22285b)[_0x149a10(0x37f)](0.2)['toRgbString'](),_0x2060c6=new p['RegularPolygon'](ht+a['Tools'][_0x149a10(0x160)](k),{'pointsGroup':_0x52ada2,'fill':_0x51ab9a||p['getColor'](a[_0x149a10(0x154)][_0x149a10(0x1c7)],0.2),'left':_0x4b403b,'top':_0x9ac839,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x149a10(0x391)]['push'](_0x2060c6),this[_0x149a10(0x1d3)][_0x149a10(0x207)](_0x2060c6,b['TEXT_RANGE_LAYER_INDEX']);}[_0x2f2715(0x1ea)](_0x40d4a4,_0x2c5ce6,_0x3ee2e8,_0x2f79c9){const _0x253baa=_0x2f2715,_0x230b62=new a['ColorKit'](_0x40d4a4)[_0x253baa(0x37f)](0.2)[_0x253baa(0x2ae)](),_0x23983e=new p[(_0x253baa(0x170))](ut+a[_0x253baa(0x196)][_0x253baa(0x160)](k),{'pointsGroup':_0x2c5ce6,'fill':_0x230b62||p[_0x253baa(0x163)](a[_0x253baa(0x154)][_0x253baa(0x1c7)],0.2),'left':_0x3ee2e8,'top':_0x2f79c9,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x253baa(0x391)][_0x253baa(0x1f6)](_0x23983e),this[_0x253baa(0x1d3)][_0x253baa(0x207)](_0x23983e,b[_0x253baa(0x352)]);}[_0x2f2715(0x2b0)](_0x4bfd10){const _0x3f9941=_0x4bfd10[0x0],_0x26c65e=_0x3f9941[0x0],_0x399787=_0x3f9941[0x2],{x:_0x3932c4,y:_0x1dddef}=_0x26c65e,{x:_0x1abaea,y:_0x5aead7}=_0x399787;return{'left':_0x3932c4,'top':_0x1dddef,'width':_0x1abaea-_0x3932c4,'height':_0x5aead7-_0x1dddef};}['_getScale'](){const {scaleX:_0x4f34b9,scaleY:_0x4333e9}=this['_scene']['getAncestorScale']();return Math['max'](_0x4f34b9,_0x4333e9);}}var It=Object[_0x2f2715(0x3a5)],vt=(_0x1c2bad,_0x4e1528,_0x1a0b6f,_0x3a4e9a)=>{const _0x29b9e1=_0x2f2715;for(var _0x58d880=_0x3a4e9a>0x1?void 0x0:_0x3a4e9a?It(_0x4e1528,_0x1a0b6f):_0x4e1528,_0x3d80e8=_0x1c2bad[_0x29b9e1(0x159)]-0x1,_0x2e596b;_0x3d80e8>=0x0;_0x3d80e8--)(_0x2e596b=_0x1c2bad[_0x3d80e8])&&(_0x58d880=_0x2e596b(_0x58d880)||_0x58d880);return _0x58d880;},W=(_0x2d3d9c,_0xc300f1)=>(_0xce2c1f,_0x4978e5)=>_0xc300f1(_0xce2c1f,_0x4978e5,_0x2d3d9c);function _0x330b(_0x207e74,_0x9a91f2){const _0xdf2577=_0xdf25();return _0x330b=function(_0x330bcb,_0x1f4f12){_0x330bcb=_0x330bcb-0x138;let _0x30b0d6=_0xdf2577[_0x330bcb];return _0x30b0d6;},_0x330b(_0x207e74,_0x9a91f2);}let Ie=class extends a[_0x2f2715(0x33d)]{constructor(_0x1a0213,_0x2cbac8,_0x2d1a34,_0x28acb4,_0x33a4e5){const _0x1f8e15=_0x2f2715;super(),h(this,_0x1f8e15(0x256),[]),h(this,_0x1f8e15(0x2ab),[]),(this[_0x1f8e15(0x25c)]=_0x1a0213,this[_0x1f8e15(0x29d)]=_0x2cbac8,this[_0x1f8e15(0x179)]=_0x2d1a34,this[_0x1f8e15(0x19a)]=_0x28acb4,this[_0x1f8e15(0x13e)]=_0x33a4e5,this[_0x1f8e15(0x1cb)]());}[_0x2f2715(0x1cb)](){const _0x48f8ed=_0x2f2715,_0x34d555=this[_0x48f8ed(0x25c)][_0x48f8ed(0x17b)],_0x4670d2=this[_0x48f8ed(0x29d)];this[_0x48f8ed(0x1d4)](d[_0x48f8ed(0x15d)]([this[_0x48f8ed(0x179)][_0x48f8ed(0x21f)](_0x34d555),this['_themeService'][_0x48f8ed(0x1dd)]])[_0x48f8ed(0x231)]($[_0x48f8ed(0x31d)](([_0x3e09f4,_0x3aa6f0])=>({'skeleton':_0x4670d2[_0x48f8ed(0x376)](),'cursors':[..._0x3e09f4[_0x48f8ed(0x25e)]()][_0x48f8ed(0x2f2)](_0x26fe7b=>({..._0x26fe7b,'color':this[_0x48f8ed(0x13e)][_0x48f8ed(0x146)](_0x26fe7b[_0x48f8ed(0x244)])}))})))[_0x48f8ed(0x185)](_0x107a78=>{const _0x4fd780=_0x48f8ed;if(this[_0x4fd780(0x225)](),_0x107a78){const {skeleton:_0x5ce53d,cursors:_0x353071}=_0x107a78;this[_0x4fd780(0x1f3)](_0x5ce53d,_0x353071);}})),this[_0x48f8ed(0x273)](),this[_0x48f8ed(0x192)]();}[_0x2f2715(0x1f3)](_0x40e1ca,_0x47990e){const _0x340934=_0x2f2715,{scene:_0x7cce5a,mainComponent:_0x499e45}=this[_0x340934(0x25c)],_0x597490=_0x47990e[_0x340934(0x31d)](_0x5a4ae7=>new De(_0x5a4ae7,_0x7cce5a,_0x40e1ca,_0x499e45));this[_0x340934(0x256)]=_0x597490,this[_0x340934(0x2ab)]=_0x47990e;}[_0x2f2715(0x317)](){const _0x525339=_0x2f2715;this[_0x525339(0x225)]();const {scene:_0x2ec263,mainComponent:_0x4693b5}=this[_0x525339(0x25c)],_0x4df5e1=this[_0x525339(0x29d)][_0x525339(0x376)](),_0x59fe77=this[_0x525339(0x2ab)][_0x525339(0x31d)](_0x270193=>new De(_0x270193,_0x2ec263,_0x4df5e1,_0x4693b5));this[_0x525339(0x256)]=_0x59fe77;}[_0x2f2715(0x225)](){const _0x48c723=_0x2f2715;this['_cursorShapes']['forEach'](_0x1d96f9=>_0x1d96f9[_0x48c723(0x215)]()),this[_0x48c723(0x256)]=[];}[_0x2f2715(0x192)](){const _0x4479ea=_0x2f2715,_0x12f302=[b['SetDocZoomRatioOperation']['id']];this[_0x4479ea(0x1d4)](this['_commandService'][_0x4479ea(0x2ec)](_0x2e16f7=>{const _0x437fbe=_0x4479ea;_0x12f302[_0x437fbe(0x14f)](_0x2e16f7['id'])&&_0x2e16f7['params'][_0x437fbe(0x17b)]===this['_context'][_0x437fbe(0x17b)]&&this[_0x437fbe(0x317)]();}));}[_0x2f2715(0x273)](){const _0x14aa03=_0x2f2715;this[_0x14aa03(0x1d4)](a[_0x14aa03(0x33a)](this[_0x14aa03(0x25c)]['engine'][_0x14aa03(0x211)])[_0x14aa03(0x231)]($[_0x14aa03(0x1ef)](_0x1eab47=>_0x1eab47[_0x14aa03(0x2e7)]===p[_0x14aa03(0x25f)][_0x14aa03(0x2f0)]),$[_0x14aa03(0x2c7)](0x10))['subscribe'](()=>{const _0x2627cc=_0x14aa03;this[_0x2627cc(0x317)]();}));}};Ie=vt([W(0x1,a[_0x2f2715(0x1e2)](Y[_0x2f2715(0x1a8)])),W(0x2,a[_0x2f2715(0x1e2)](x)),W(0x3,a[_0x2f2715(0x35b)]),W(0x4,a[_0x2f2715(0x1e2)](a['ThemeService']))],Ie);const gt=0x1,mt=1.5;class Ae extends p[_0x2f2715(0x2b5)]{constructor(_0x2d9fa9,_0x4d617d){const _0x5ea94a=_0x2f2715;super(_0x2d9fa9,_0x4d617d),h(this,'_color'),h(this,_0x5ea94a(0x18d),!0x1),h(this,_0x5ea94a(0x27e)),h(this,'_name',''),h(this,_0x5ea94a(0x258),_0x5ea94a(0x13a)),h(this,_0x5ea94a(0x1db)),(_0x4d617d&&this[_0x5ea94a(0x1b8)](_0x4d617d),this[_0x5ea94a(0x226)][_0x5ea94a(0x1a0)](()=>this['setShapeProps']({'hovered':!0x0})),this[_0x5ea94a(0x36d)][_0x5ea94a(0x1a0)](()=>this[_0x5ea94a(0x1b8)]({'hovered':!0x1})));}[_0x2f2715(0x1b8)](_0x320572){const _0x1669f5=_0x2f2715;var _0x118bce,_0x5a7342,_0x2320b6,_0x4c8f23,_0x2d090a,_0x4f733a;this['_color']=(_0x118bce=_0x320572[_0x1669f5(0x244)])!=null?_0x118bce:this[_0x1669f5(0x16a)],this[_0x1669f5(0x18d)]=(_0x5a7342=_0x320572['hovered'])!=null?_0x5a7342:this[_0x1669f5(0x18d)],this[_0x1669f5(0x27e)]=(_0x2320b6=_0x320572[_0x1669f5(0x257)])!=null?_0x2320b6:this[_0x1669f5(0x27e)],this[_0x1669f5(0x26a)]=(_0x4c8f23=_0x320572[_0x1669f5(0x3bc)])!=null?_0x4c8f23:this[_0x1669f5(0x26a)],this[_0x1669f5(0x258)]=(_0x2d090a=_0x320572['labelPosition'])!=null?_0x2d090a:this[_0x1669f5(0x258)],this['_backgroundColor']=(_0x4f733a=_0x320572[_0x1669f5(0x2bf)])!=null?_0x4f733a:this[_0x1669f5(0x1db)],this[_0x1669f5(0x331)]({'width':_0x320572[_0x1669f5(0x2f4)],'height':_0x320572[_0x1669f5(0x389)]});}[_0x2f2715(0x255)](_0xd6c294){const _0x352269=_0x2f2715,{row:_0x47b99d,column:_0xdcf965}=_0xd6c294;if(_0x47b99d>=this[_0x352269(0x27e)][_0x352269(0x1ed)]&&_0x47b99d<=this[_0x352269(0x27e)][_0x352269(0x176)]&&_0xdcf965>=this[_0x352269(0x27e)][_0x352269(0x311)]&&_0xdcf965<=this[_0x352269(0x27e)]['endColumn']){this['setShapeProps']({'hovered':!0x0});return;}this[_0x352269(0x1b8)]({'hovered':!0x1});}['triggerDblclick'](_0x34fefc){return!0x1;}[_0x2f2715(0x35e)](_0x1badc4){const _0x3817ed=_0x2f2715;p[_0x3817ed(0x26b)][_0x3817ed(0x328)](_0x1badc4,{'width':this['width'],'height':this[_0x3817ed(0x389)],'strokeWidth':mt,'stroke':this[_0x3817ed(0x16a)],'evented':!0x1,'fill':this[_0x3817ed(0x1db)]}),this[_0x3817ed(0x18d)]&&(_0x1badc4['save'](),_0x1badc4[_0x3817ed(0x1f2)](0x1,0x0,0x0,0x1,this[_0x3817ed(0x2f4)],this[_0x3817ed(0x258)]==='bottom'?0x0:-0x14),ee[_0x3817ed(0x328)](_0x1badc4,{'text':this[_0x3817ed(0x26a)],'color':this[_0x3817ed(0x16a)]}),_0x1badc4[_0x3817ed(0x312)]());}}var Ct=Object[_0x2f2715(0x3a5)],pt=(_0x20eb19,_0x439056,_0x1b494e,_0x1b3038)=>{for(var _0x306add=_0x1b3038>0x1?void 0x0:_0x1b3038?Ct(_0x439056,_0x1b494e):_0x439056,_0x1516bc=_0x20eb19['length']-0x1,_0x2e6b6e;_0x1516bc>=0x0;_0x1516bc--)(_0x2e6b6e=_0x20eb19[_0x1516bc])&&(_0x306add=_0x2e6b6e(_0x306add)||_0x306add);return _0x306add;},ae=(_0x2af1dc,_0x19d899)=>(_0x13eb59,_0xb6c6a0)=>_0x19d899(_0x13eb59,_0xb6c6a0,_0x2af1dc);const bt=0x1389;let ve=class extends a[_0x2f2715(0x33d)]{constructor(_0x2d1599,_0x26cd02,_0x26695a,_0x1c8077){const _0x42e66b=_0x2f2715;super(),h(this,_0x42e66b(0x2ab),new Set()),h(this,'_lastPointer',null),(this['_context']=_0x2d1599,this[_0x42e66b(0x3b6)]=_0x26cd02,this['_collabCursorController']=_0x26695a,this[_0x42e66b(0x13e)]=_0x1c8077,this['_init']());}['_init'](){const _0x3de13a=_0x2f2715;this['_sheetSkeletonManagerService']['currentSkeleton$'][_0x3de13a(0x231)]($['takeUntil'](this[_0x3de13a(0x23a)]),$[_0x3de13a(0x2fd)](_0x56863d=>{const _0x3e4684=_0x3de13a;if(_0x56863d){const _0x2835f3=_0x56863d[_0x3e4684(0x1c3)];return d[_0x3e4684(0x15d)](this['_collabCursorController']['getCollabCursors$'](this[_0x3e4684(0x25c)][_0x3e4684(0x17b)]),this[_0x3e4684(0x13e)][_0x3e4684(0x1dd)])[_0x3e4684(0x231)]($[_0x3e4684(0x31d)](([_0x106b42,_0x41c251])=>{const _0x389e98=new Map();return _0x106b42['forEach']((_0x2dff49,_0x2b3af0)=>{const _0x5a2497=_0x330b;if(_0x2dff49[_0x5a2497(0x360)]===_0x2835f3){const _0x2ba958={..._0x2dff49};_0x2ba958[_0x5a2497(0x244)]=this[_0x5a2497(0x13e)][_0x5a2497(0x146)](_0x2dff49[_0x5a2497(0x244)]),_0x389e98[_0x5a2497(0x2bc)](_0x2b3af0,_0x2ba958);}}),{'skeleton':_0x56863d,'cursors':_0x389e98};}));}return d['of']({'skeleton':null,'cursors':new Map()});}))[_0x3de13a(0x185)](({skeleton:_0x2ab6f9,cursors:_0x1e516e})=>{const _0x16e9e5=_0x3de13a;this[_0x16e9e5(0x225)](),_0x2ab6f9&&this['_updateCollabCursors'](_0x2ab6f9,_0x1e516e);}),this['_sheetSkeletonManagerService'][_0x3de13a(0x342)][_0x3de13a(0x185)](_0x56e39f=>{const _0x294707=_0x3de13a;if(_0x56e39f==null)return;const {skeleton:_0x5b7dfb}=_0x56e39f,{scene:_0x4276bf}=this[_0x294707(0x25c)];_0x4276bf['onPointerMove$'][_0x294707(0x1a0)](a[_0x294707(0x14c)](_0x44c596=>{const _0x522795=_0x294707;var _0x292e5f,_0x5c1c15;const {offsetX:_0x2699c1,offsetY:_0x3d4748}=_0x44c596,{x:_0x5c0174,y:_0x5a5762}=_0x4276bf[_0x522795(0x1f4)](p[_0x522795(0x2d8)]['FromArray']([_0x2699c1,_0x3d4748])),{scaleX:_0x55a036,scaleY:_0x116a5a}=_0x4276bf[_0x522795(0x2cb)](),_0x124efd=_0x4276bf[_0x522795(0x276)](p[_0x522795(0x34b)][_0x522795(0x36b)]),_0x5a9db4=_0x4276bf['getVpScrollXYInfoByPosToVp'](p['Vector2'][_0x522795(0x1c1)]([_0x5c0174,_0x5a5762]),_0x124efd),_0x4e3ea9=_0x5b7dfb['getCellPositionByOffset'](_0x2699c1,_0x3d4748,_0x55a036,_0x116a5a,_0x5a9db4);((_0x292e5f=this['_lastPointer'])==null?void 0x0:_0x292e5f[_0x522795(0x1a6)])===_0x4e3ea9[_0x522795(0x1a6)]&&((_0x5c1c15=this['_lastPointer'])==null?void 0x0:_0x5c1c15['row'])===_0x4e3ea9['row']||this[_0x522795(0x2ab)][_0x522795(0x265)](_0x2ca52a=>{const _0x49548d=_0x522795;_0x2ca52a[_0x49548d(0x255)](_0x4e3ea9);});},0x64));});}[_0x2f2715(0x1f3)](_0x21a189,_0xc9130a){const _0x28f12c=_0x2f2715;var _0x4b98d4;const _0x22222d=(_0x4b98d4=this[_0x28f12c(0x3b6)][_0x28f12c(0x301)]())==null?void 0x0:_0x4b98d4[_0x28f12c(0x3a4)];if(!_0x22222d)return;const _0x4ea929=this[_0x28f12c(0x1a1)]();if(!_0x4ea929)return;this[_0x28f12c(0x2ab)][_0x28f12c(0x265)](_0x4f11a8=>{const _0x4ea821=_0x28f12c;_0x4f11a8[_0x4ea821(0x28a)]();});const {scene:_0x44e340}=_0x4ea929,_0x2eaab9=Et(Array[_0x28f12c(0x2d0)](_0xc9130a[_0x28f12c(0x25e)]()))[_0x28f12c(0x31d)](_0x217dbb=>{const _0x4d9a0a=_0x28f12c,{color:_0x5948a1,range:_0x420ee7,name:_0x9fbc1f,selection:_0x1628b1,sheetID:_0x36e201}=_0x217dbb,{startColumn:_0x3e7957,startRow:_0x38e278,endColumn:_0x24060f,endRow:_0x301fca}=_0x420ee7,_0x287294=X[_0x4d9a0a(0x3b4)](_0x38e278,_0x3e7957,_0x44e340,_0x22222d),_0x1bf916=X[_0x4d9a0a(0x3b4)](_0x301fca,_0x24060f,_0x44e340,_0x22222d),{columnHeaderHeightAndMarginTop:_0x13d019}=_0x22222d,{startX:_0x2561ad,startY:_0x5d4500}=_0x287294,{endX:_0x26a30b,endY:_0x583922}=_0x1bf916,_0x59421f=_0x26a30b-_0x2561ad,_0x574beb=_0x583922-_0x5d4500,_0x5f40f9={'labelPosition':_0x5d4500-_0x13d019>=K?_0x4d9a0a(0x13a):'bottom','sheetID':_0x36e201,'range':_0x420ee7,'color':_0x5948a1,'name':_0x9fbc1f,'selection':_0x1628b1,'left':_0x2561ad,'top':_0x5d4500,'width':_0x59421f,'height':_0x574beb,'evented':!0x1,'zIndex':bt};return new Ae(_0x9fbc1f,_0x5f40f9);});_0x44e340[_0x28f12c(0x1bf)](_0x2eaab9,gt),this[_0x28f12c(0x2ab)]=new Set(_0x2eaab9);}[_0x2f2715(0x225)](){const _0x4f58a1=_0x2f2715;var _0x492976;(_0x492976=this[_0x4f58a1(0x2ab)])==null||_0x492976[_0x4f58a1(0x265)](_0x262d85=>_0x262d85['dispose']());}[_0x2f2715(0x1a1)](){const _0x3bdc58=_0x2f2715;return X[_0x3bdc58(0x399)](this[_0x3bdc58(0x25c)]['unit'],this['_context']);}};ve=pt([ae(0x1,a[_0x2f2715(0x1e2)](X[_0x2f2715(0x197)])),ae(0x2,a[_0x2f2715(0x1e2)](x)),ae(0x3,a[_0x2f2715(0x1e2)](a[_0x2f2715(0x1b0)]))],ve);function Et(_0x33ed55){const _0x429b4c=_0x2f2715,_0xb627e6=new Map();return _0x33ed55['forEach'](_0x8d7a32=>{const _0x402fed=_0x330b;if(_0xb627e6[_0x402fed(0x156)](_0x8d7a32[_0x402fed(0x24b)])){const _0x493671=_0xb627e6[_0x402fed(0x2f7)](_0x8d7a32[_0x402fed(0x24b)]);_0x493671[_0x402fed(0x3bc)]+=',\x20'+_0x8d7a32[_0x402fed(0x3bc)];}else _0xb627e6[_0x402fed(0x2bc)](_0x8d7a32[_0x402fed(0x24b)],_0x8d7a32);}),Array[_0x429b4c(0x2d0)](_0xb627e6[_0x429b4c(0x25e)]());}var E=function(){const _0x217426=_0x2f2715;return E=Object[_0x217426(0x358)]||function(_0x2fc60f){const _0x590e5c=_0x217426;for(var _0xc25368,_0x3779d7=0x1,_0x42c95d=arguments['length'];_0x3779d7<_0x42c95d;_0x3779d7++){_0xc25368=arguments[_0x3779d7];for(var _0x504553 in _0xc25368)Object[_0x590e5c(0x1d1)]['hasOwnProperty']['call'](_0xc25368,_0x504553)&&(_0x2fc60f[_0x504553]=_0xc25368[_0x504553]);}return _0x2fc60f;},E[_0x217426(0x2ea)](this,arguments);},Tt=function(_0x415b8a,_0x3212cf){const _0x5d75a1=_0x2f2715;var _0x489233={};for(var _0x16caca in _0x415b8a)Object[_0x5d75a1(0x1d1)][_0x5d75a1(0x30c)][_0x5d75a1(0x39f)](_0x415b8a,_0x16caca)&&_0x3212cf[_0x5d75a1(0x3a1)](_0x16caca)<0x0&&(_0x489233[_0x16caca]=_0x415b8a[_0x16caca]);if(_0x415b8a!=null&&typeof Object['getOwnPropertySymbols']==_0x5d75a1(0x1a3)){for(var _0x42aad2=0x0,_0x16caca=Object['getOwnPropertySymbols'](_0x415b8a);_0x42aad2<_0x16caca[_0x5d75a1(0x159)];_0x42aad2++)_0x3212cf[_0x5d75a1(0x3a1)](_0x16caca[_0x42aad2])<0x0&&Object[_0x5d75a1(0x1d1)][_0x5d75a1(0x32d)][_0x5d75a1(0x39f)](_0x415b8a,_0x16caca[_0x42aad2])&&(_0x489233[_0x16caca[_0x42aad2]]=_0x415b8a[_0x16caca[_0x42aad2]]);}return _0x489233;},pe=M[_0x2f2715(0x268)](function(_0xf55fb7,_0x334719){const _0x5de91c=_0x2f2715;var _0x4bfc14=_0xf55fb7[_0x5de91c(0x339)],_0x4468fa=_0xf55fb7['id'],_0x566cf0=_0xf55fb7[_0x5de91c(0x28f)],_0x231bc8=_0xf55fb7[_0x5de91c(0x2eb)],_0x20180a=Tt(_0xf55fb7,[_0x5de91c(0x339),'id',_0x5de91c(0x28f),_0x5de91c(0x2eb)]),_0x176305=_0x5de91c(0x2ef)['concat'](_0x4468fa,'\x20')['concat'](_0x566cf0||'')['trim'](),_0x373527=M[_0x5de91c(0x340)]('_'[_0x5de91c(0x395)](Dt()));return we(_0x4bfc14,''[_0x5de91c(0x395)](_0x4468fa),{'defIds':_0x4bfc14[_0x5de91c(0x369)],'idSuffix':_0x373527[_0x5de91c(0x1df)]},E({'ref':_0x334719,'className':_0x176305},_0x20180a),_0x231bc8);});function we(_0x50b6e8,_0x330f8d,_0x283e62,_0x2638df,_0xb2b452){const _0x41ea74=_0x2f2715;return M[_0x41ea74(0x29a)](_0x50b6e8[_0x41ea74(0x2a5)],E(E({'key':_0x330f8d},Ot(_0x50b6e8,_0x283e62,_0xb2b452)),_0x2638df),(Rt(_0x50b6e8,_0x283e62)[_0x41ea74(0x316)]||[])[_0x41ea74(0x31d)](function(_0x3e2e99,_0x418cd7){const _0x220293=_0x41ea74;return we(_0x3e2e99,''['concat'](_0x330f8d,'-')[_0x220293(0x395)](_0x50b6e8[_0x220293(0x2a5)],'-')['concat'](_0x418cd7),_0x283e62,void 0x0,_0xb2b452);}));}function Ot(_0x21c52f,_0x657af6,_0x428c8e){const _0xafe8f9=_0x2f2715;var _0x5c21a9=E({},_0x21c52f[_0xafe8f9(0x31f)]);_0x428c8e!=null&&_0x428c8e[_0xafe8f9(0x287)]&&_0x5c21a9['fill']===_0xafe8f9(0x287)&&(_0x5c21a9[_0xafe8f9(0x338)]=_0x428c8e[_0xafe8f9(0x287)]),_0x21c52f['tag']===_0xafe8f9(0x17e)&&_0x5c21a9['id']&&(_0x5c21a9['id']=_0x5c21a9['id']+_0x657af6[_0xafe8f9(0x19d)]),Object[_0xafe8f9(0x1cc)](_0x5c21a9)[_0xafe8f9(0x265)](function(_0x406c50){const _0x573a29=_0xafe8f9;var _0x278dff=_0x406c50[0x0],_0x1c4e07=_0x406c50[0x1];_0x278dff===_0x573a29(0x17e)&&typeof _0x1c4e07=='string'&&(_0x5c21a9[_0x278dff]=_0x1c4e07[_0x573a29(0x165)](/url\(#(.*)\)/,_0x573a29(0x1b2)[_0x573a29(0x395)](_0x657af6[_0x573a29(0x19d)],')')));});var _0x1636e6=_0x657af6[_0xafe8f9(0x369)];return!_0x1636e6||_0x1636e6[_0xafe8f9(0x159)]===0x0||(_0x21c52f[_0xafe8f9(0x2a5)]==='use'&&_0x5c21a9[_0xafe8f9(0x283)]&&(_0x5c21a9['xlink:href']=_0x5c21a9[_0xafe8f9(0x283)]+_0x657af6[_0xafe8f9(0x19d)]),Object[_0xafe8f9(0x1cc)](_0x5c21a9)['forEach'](function(_0x44056d){const _0xe62340=_0xafe8f9;var _0x350984=_0x44056d[0x0],_0x1cfd3d=_0x44056d[0x1];typeof _0x1cfd3d==_0xe62340(0x367)&&(_0x5c21a9[_0x350984]=_0x1cfd3d[_0xe62340(0x165)](/url\(#(.*)\)/,'url(#$1'['concat'](_0x657af6['idSuffix'],')')));})),_0x5c21a9;}function Rt(_0x1909eb,_0x49fe8c){const _0x518fca=_0x2f2715;var _0x322c11,_0x36a7f8=_0x49fe8c['defIds'];return!_0x36a7f8||_0x36a7f8[_0x518fca(0x159)]===0x0?_0x1909eb:_0x1909eb[_0x518fca(0x2a5)]==='defs'&&(!((_0x322c11=_0x1909eb[_0x518fca(0x316)])===null||_0x322c11===void 0x0)&&_0x322c11[_0x518fca(0x159)])?E(E({},_0x1909eb),{'children':_0x1909eb[_0x518fca(0x316)]['map'](function(_0x37ee6f){const _0x1dfd3e=_0x518fca;return typeof _0x37ee6f['attrs']['id']==_0x1dfd3e(0x367)&&_0x36a7f8&&_0x36a7f8['indexOf'](_0x37ee6f['attrs']['id'])>-0x1?E(E({},_0x37ee6f),{'attrs':E(E({},_0x37ee6f[_0x1dfd3e(0x31f)]),{'id':_0x37ee6f[_0x1dfd3e(0x31f)]['id']+_0x49fe8c[_0x1dfd3e(0x19d)]})}):_0x37ee6f;})}):_0x1909eb;}function Dt(){const _0x13486f=_0x2f2715;return Math[_0x13486f(0x321)]()['toString'](0x24)[_0x13486f(0x1fe)](0x2,0x8);}pe['displayName']='UniverIcon';var Ut={'tag':_0x2f2715(0x243),'attrs':{'fill':'none','viewBox':_0x2f2715(0x1a5),'width':_0x2f2715(0x1aa),'height':'1em'},'children':[{'tag':'g','attrs':{'clipPath':_0x2f2715(0x172)},'children':[{'tag':_0x2f2715(0x2b7),'attrs':{'stroke':'currentColor','d':_0x2f2715(0x210),'strokeLinecap':'round','strokeLinejoin':_0x2f2715(0x260),'strokeWidth':1.2}}]},{'tag':_0x2f2715(0x3a0),'attrs':{},'children':[{'tag':_0x2f2715(0x2fa),'attrs':{'id':_0x2f2715(0x34f)},'children':[{'tag':_0x2f2715(0x2b7),'attrs':{'fill':_0x2f2715(0x164),'d':_0x2f2715(0x288)}}]}]}],'defIds':[_0x2f2715(0x34f)]},ye=M[_0x2f2715(0x268)](function(_0x35c63e,_0x160f1c){const _0x46c848=_0x2f2715;return M[_0x46c848(0x29a)](pe,Object['assign']({},_0x35c63e,{'id':_0x46c848(0x280),'ref':_0x160f1c,'icon':Ut}));});ye[_0x2f2715(0x17d)]='OffLineSingle';var Nt={'tag':_0x2f2715(0x243),'attrs':{'fill':_0x2f2715(0x39e),'viewBox':_0x2f2715(0x2a8),'width':_0x2f2715(0x1aa),'height':_0x2f2715(0x1aa)},'children':[{'tag':'g','attrs':{'clipPath':'url(#on-line-single_clip0_910_349)'},'children':[{'tag':_0x2f2715(0x2b7),'attrs':{'stroke':_0x2f2715(0x16d),'d':_0x2f2715(0x322),'strokeLinecap':_0x2f2715(0x260),'strokeLinejoin':_0x2f2715(0x260),'strokeWidth':1.2}}]},{'tag':_0x2f2715(0x3a0),'attrs':{},'children':[{'tag':'clipPath','attrs':{'id':_0x2f2715(0x37d)},'children':[{'tag':_0x2f2715(0x2b7),'attrs':{'fill':_0x2f2715(0x164),'d':_0x2f2715(0x288),'transform':_0x2f2715(0x285)}}]}]}],'defIds':[_0x2f2715(0x37d)]},$e=M[_0x2f2715(0x268)](function(_0x4746af,_0x2e7bb2){const _0x4c840a=_0x2f2715;return M[_0x4c840a(0x29a)](pe,Object[_0x4c840a(0x358)]({},_0x4746af,{'id':_0x4c840a(0x2d2),'ref':_0x2e7bb2,'icon':Nt}));});$e[_0x2f2715(0x17d)]=_0x2f2715(0x351);function Mt(_0x33a9a2){const _0x2618a6=_0x2f2715;switch(_0x33a9a2){case u[_0x2618a6(0x38d)][_0x2618a6(0x1b7)]:return _0x2618a6(0x28b);case u[_0x2618a6(0x38d)]['CONFLICT']:return _0x2618a6(0x167);case u['CollaborationStatus'][_0x2618a6(0x30d)]:return _0x2618a6(0x382);case u[_0x2618a6(0x38d)][_0x2618a6(0x22c)]:return'collabStatus.notCollab';case u[_0x2618a6(0x38d)][_0x2618a6(0x1bd)]:case u[_0x2618a6(0x38d)]['AWAITING_WITH_PENDING']:return _0x2618a6(0x261);case u[_0x2618a6(0x38d)][_0x2618a6(0x2dc)]:case u['CollaborationStatus'][_0x2618a6(0x2e4)]:return'collabStatus.synced';}}function xe(_0x50cd0f){const _0x1d6f1b=_0x2f2715,{status$:_0x518bb9}=_0x50cd0f,_0x38b182=T[_0x1d6f1b(0x16c)](_0x518bb9,u[_0x1d6f1b(0x38d)][_0x1d6f1b(0x22c)]),_0x5ee947=T[_0x1d6f1b(0x15c)](a['LocaleService']),_0x331415=T[_0x1d6f1b(0x15c)](u[_0x1d6f1b(0x153)]),_0x4ba438=_0x38b182!==u[_0x1d6f1b(0x38d)][_0x1d6f1b(0x1b7)],_0x1cd66b=_0x5ee947['t'](Mt(_0x38b182)),_0x27f1ec=_0x4ba438?P[_0x1d6f1b(0x168)]($e,{}):P[_0x1d6f1b(0x168)](ye,{}),_0x249827=M[_0x1d6f1b(0x241)](()=>{_0x4ba438||_0x331415['reconnect']();},[_0x4ba438,_0x331415]);function _0x496d5f(){const _0x19fdbc=_0x1d6f1b;return P['jsxs'](_0x19fdbc(0x361),{'className':_0x19fdbc(0x20f),'onClick':_0x249827,'children':[P[_0x19fdbc(0x168)](_0x19fdbc(0x361),{'className':D['clsx'](_0x19fdbc(0x30e),{'univer-text-green-500':_0x4ba438,'univer-text-red-500':!_0x4ba438}),'children':_0x27f1ec}),P[_0x19fdbc(0x168)]('div',{'className':'univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','children':_0x1cd66b})]});}return _0x4ba438?_0x496d5f():P[_0x1d6f1b(0x168)](D[_0x1d6f1b(0x246)],{'title':_0x5ee947['t'](_0x1d6f1b(0x34c)),'children':_0x496d5f()});}var Lt=Object[_0x2f2715(0x3a5)],Pt=(_0x435acb,_0x417f90,_0x3db740,_0x27082b)=>{const _0x46e05d=_0x2f2715;for(var _0x230211=_0x27082b>0x1?void 0x0:_0x27082b?Lt(_0x417f90,_0x3db740):_0x417f90,_0x11e046=_0x435acb[_0x46e05d(0x159)]-0x1,_0x123f9e;_0x11e046>=0x0;_0x11e046--)(_0x123f9e=_0x435acb[_0x11e046])&&(_0x230211=_0x123f9e(_0x230211)||_0x230211);return _0x230211;},V=(_0x2e1c6c,_0xcfbb1)=>(_0x4066fe,_0x1c6acd)=>_0xcfbb1(_0x4066fe,_0x1c6acd,_0x2e1c6c);exports[_0x2f2715(0x30a)]=class extends a['Disposable']{constructor(_0x4c78c9,_0x4fdae2,_0x1f05fa,_0xe584f){const _0x13e415=_0x2f2715;super(),h(this,_0x13e415(0x2c4),new d[(_0x13e415(0x388))](u[_0x13e415(0x38d)]['NOT_COLLAB'])),(this['_univerInstanceService']=_0x4c78c9,this['_injector']=_0x4fdae2,this[_0x13e415(0x34e)]=_0x1f05fa,this[_0x13e415(0x23b)]=_0xe584f,this['_initStatusComponent'](),this[_0x13e415(0x23f)]());}[_0x2f2715(0x23f)](){const _0x2bdef8=_0x2f2715;this[_0x2bdef8(0x1d4)](this[_0x2bdef8(0x267)][_0x2bdef8(0x333)][_0x2bdef8(0x231)](d[_0x2bdef8(0x2fd)](()=>{const _0x5247de=_0x2bdef8,_0x1ba417=this[_0x5247de(0x267)][_0x5247de(0x18b)]();return _0x1ba417?this[_0x5247de(0x34e)][_0x5247de(0x373)](_0x1ba417[_0x5247de(0x24d)]()):d['of'](null);}),d[_0x2bdef8(0x2fd)](_0xad1d8e=>_0xad1d8e?_0xad1d8e[_0x2bdef8(0x212)]:d['of'](u[_0x2bdef8(0x38d)][_0x2bdef8(0x22c)])))[_0x2bdef8(0x185)](_0x5360f5=>{const _0x412025=_0x2bdef8;this['_status$'][_0x412025(0x14b)](_0x5360f5);}));}['_initStatusComponent'](){const _0x2369a9=_0x2f2715;this[_0x2369a9(0x1d4)](this[_0x2369a9(0x23b)][_0x2369a9(0x18e)](T[_0x2369a9(0x249)][_0x2369a9(0x2db)],()=>T[_0x2369a9(0x2c5)](At({'status$':this['_status$'][_0x2369a9(0x1b6)]()}),this[_0x2369a9(0x2da)])));}},exports[_0x2f2715(0x30a)]=Pt([V(0x0,a[_0x2f2715(0x383)]),V(0x1,a[_0x2f2715(0x1e2)](a['Injector'])),V(0x2,a['Inject'](u[_0x2f2715(0x2b1)])),V(0x3,T[_0x2f2715(0x330)])],exports['DesktopCollaborationStatusDisplayController']);function At(_0x5201c7){const {status$:_0x83a091}=_0x5201c7;return function(){const _0x2caaf4=_0x330b;return P[_0x2caaf4(0x168)](xe,{'status$':_0x83a091});};}var wt=Object['getOwnPropertyDescriptor'],yt=(_0x5c10f9,_0x308a32,_0x1d62cf,_0x5e7240)=>{const _0x4fb3d4=_0x2f2715;for(var _0x33f513=_0x5e7240>0x1?void 0x0:_0x5e7240?wt(_0x308a32,_0x1d62cf):_0x308a32,_0x17e98a=_0x5c10f9[_0x4fb3d4(0x159)]-0x1,_0x3a75a7;_0x17e98a>=0x0;_0x17e98a--)(_0x3a75a7=_0x5c10f9[_0x17e98a])&&(_0x33f513=_0x3a75a7(_0x33f513)||_0x33f513);return _0x33f513;},y=(_0x5eb68b,_0x51140d)=>(_0x2985a1,_0x1cd30a)=>_0x51140d(_0x2985a1,_0x1cd30a,_0x5eb68b);let q=class extends a['Disposable']{constructor(_0x1bc947,_0x2338ea,_0x1d14b1,_0x25820a,_0x176a77,_0x94cdca){const _0x1be8a0=_0x2f2715;super(),this['_beforeCloseService']=_0x1bc947,this[_0x1be8a0(0x1ce)]=_0x2338ea,this[_0x1be8a0(0x3aa)]=_0x1d14b1,this[_0x1be8a0(0x227)]=_0x25820a,this['_notificationService']=_0x176a77,this['_localeService']=_0x94cdca,this[_0x1be8a0(0x390)](),this[_0x1be8a0(0x386)]();}[_0x2f2715(0x390)](){const _0x283fd4=_0x2f2715;this[_0x283fd4(0x1d4)](this[_0x283fd4(0x370)][_0x283fd4(0x279)](()=>{const _0x57b8e8=_0x283fd4;if(this['_localCacheService'][_0x57b8e8(0x188)][_0x57b8e8(0x1b5)])return this[_0x57b8e8(0x1b1)]['t']('collaboration-client.offline-data-not-saved');}));}[_0x2f2715(0x386)](){const _0x1fa67c=_0x2f2715;this[_0x1fa67c(0x1d4)](this[_0x1fa67c(0x3aa)][_0x1fa67c(0x218)]['subscribe'](_0x38793d=>{const _0x3cdadc=_0x1fa67c;_0x38793d['id']===u[_0x3cdadc(0x2e5)][_0x3cdadc(0x337)]&&this['_messageService']['show']({'type':D[_0x3cdadc(0x1a9)][_0x3cdadc(0x349)],'content':this[_0x3cdadc(0x1b1)]['t'](_0x3cdadc(0x289))}),_0x38793d['id']===u['CollaborationUIEventId']['CLOSE_ROOM']&&this[_0x3cdadc(0x227)]['show']({'type':D['MessageType'][_0x3cdadc(0x349)],'content':this[_0x3cdadc(0x1b1)]['t'](_0x3cdadc(0x1d7))}),_0x38793d['id']===u[_0x3cdadc(0x2e5)][_0x3cdadc(0x3ae)]&&this['_notificationService']['show']({'title':this[_0x3cdadc(0x1b1)]['t'](_0x3cdadc(0x309)),'content':this[_0x3cdadc(0x1b1)]['t'](_0x3cdadc(0x284)),'type':_0x3cdadc(0x20e),'duration':0x0}),_0x38793d['id']===u[_0x3cdadc(0x2e5)][_0x3cdadc(0x3ad)]&&this[_0x3cdadc(0x227)][_0x3cdadc(0x2b6)]({'type':D['MessageType'][_0x3cdadc(0x2e2)],'content':this[_0x3cdadc(0x1b1)]['t']('collaboration.closeRoom')+'('+_0x38793d[_0x3cdadc(0x346)]+')'}),_0x38793d['id']===u['CollaborationUIEventId'][_0x3cdadc(0x29f)]&&this[_0x3cdadc(0x227)][_0x3cdadc(0x2b6)]({'type':D[_0x3cdadc(0x1a9)]['Warning'],'content':this[_0x3cdadc(0x1b1)]['t'](_0x38793d[_0x3cdadc(0x346)]||'')}),_0x38793d['id']===u['CollaborationUIEventId'][_0x3cdadc(0x275)]&&this[_0x3cdadc(0x227)][_0x3cdadc(0x2b6)]({'type':D['MessageType'][_0x3cdadc(0x349)],'content':this[_0x3cdadc(0x1b1)]['t']('session.will-retry')}),_0x38793d['id']===u[_0x3cdadc(0x2e5)][_0x3cdadc(0x230)]&&this[_0x3cdadc(0x227)][_0x3cdadc(0x2b6)]({'type':D[_0x3cdadc(0x1a9)][_0x3cdadc(0x2e2)],'content':this[_0x3cdadc(0x1b1)]['t'](_0x3cdadc(0x2d5))}),_0x38793d['id']===u[_0x3cdadc(0x2e5)][_0x3cdadc(0x2de)]&&this[_0x3cdadc(0x227)][_0x3cdadc(0x2b6)]({'type':D[_0x3cdadc(0x1a9)][_0x3cdadc(0x2e2)],'content':this['_localeService']['t'](_0x3cdadc(0x26f))});}));}};q=yt([y(0x0,T[_0x2f2715(0x39a)]),y(0x1,u[_0x2f2715(0x28e)]),y(0x2,a[_0x2f2715(0x1e2)](u[_0x2f2715(0x183)])),y(0x3,T['IMessageService']),y(0x4,T[_0x2f2715(0x182)]),y(0x5,a['Inject'](a[_0x2f2715(0x27a)]))],q);const $t='collaboration-client-ui.config',Ue={},be=a[_0x2f2715(0x14d)](_0x2f2715(0x1bc));var xt=Object[_0x2f2715(0x3a5)],jt=(_0x555a57,_0x4c98ad,_0x451001,_0x3fd76f)=>{const _0x2bd1c5=_0x2f2715;for(var _0x48354e=_0x3fd76f>0x1?void 0x0:_0x3fd76f?xt(_0x4c98ad,_0x451001):_0x4c98ad,_0x534e49=_0x555a57[_0x2bd1c5(0x159)]-0x1,_0x4c5c44;_0x534e49>=0x0;_0x534e49--)(_0x4c5c44=_0x555a57[_0x534e49])&&(_0x48354e=_0x4c5c44(_0x48354e)||_0x48354e);return _0x48354e;},H=(_0x33acac,_0x3472ca)=>(_0x231003,_0x19de5b)=>_0x3472ca(_0x231003,_0x19de5b,_0x33acac);exports[_0x2f2715(0x140)]=class extends a[_0x2f2715(0x33d)]{constructor(_0x1b5606,_0x5ce56a,_0x21d054,_0x581247,_0x1ba89b){const _0x42f70b=_0x2f2715;super(),this[_0x42f70b(0x2bd)]=_0x1b5606,this[_0x42f70b(0x228)]=_0x5ce56a,this[_0x42f70b(0x19a)]=_0x21d054,this['_dataLoaderService']=_0x581247,_0x1ba89b?_0x1ba89b==null||_0x1ba89b['whenReady']()['then'](()=>this[_0x42f70b(0x1cb)]()):(this['_logService']['debug'](_0x42f70b(0x3a3),_0x42f70b(0x15a)),this[_0x42f70b(0x1cb)]());}async[_0x2f2715(0x1cb)](){const _0x8720ac=_0x2f2715,_0x26bd42=this['_urlService']['getParam']('unit'),_0x36c954=this[_0x8720ac(0x2bd)]['getParam'](_0x8720ac(0x2e7)),_0x5b530b=this['_urlService'][_0x8720ac(0x30f)](_0x8720ac(0x245));if(!_0x26bd42||!_0x36c954){this['_logService'][_0x8720ac(0x15f)](_0x8720ac(0x3a3),_0x8720ac(0x1c5));return;}const _0x4e14b3=await this[_0x8720ac(0x3b7)][_0x8720ac(0x398)](_0x26bd42,Number(_0x36c954),_0x5b530b);_0x4e14b3&&_0x4e14b3 instanceof a['Workbook']&&this[_0x8720ac(0x3a8)](_0x4e14b3);}async[_0x2f2715(0x3a8)](_0x2285f2){const _0x5b3527=_0x2f2715;await this['_updateSubUnitFromURLParams'](_0x2285f2),_0x2285f2[_0x5b3527(0x204)][_0x5b3527(0x231)](d['takeUntil'](this[_0x5b3527(0x23a)]))[_0x5b3527(0x185)](_0xfe47b=>{const _0x5a5800=_0x5b3527;_0xfe47b&&this[_0x5a5800(0x38e)](_0xfe47b);}),this[_0x5b3527(0x2bd)][_0x5b3527(0x27c)][_0x5b3527(0x231)](d[_0x5b3527(0x378)](this['dispose$']))[_0x5b3527(0x185)](()=>this['_updateSubUnitFromURLParams'](_0x2285f2));}[_0x2f2715(0x38e)](_0x376d52,_0x4f89a1=!0x1){const _0x4c8a2b=_0x2f2715,_0xa3a1c4=this[_0x4c8a2b(0x2bd)]['getParam'](_0x4c8a2b(0x245));_0x376d52[_0x4c8a2b(0x36c)]()!==_0xa3a1c4&&this[_0x4c8a2b(0x2bd)][_0x4c8a2b(0x19f)](_0x4c8a2b(0x245),_0x376d52[_0x4c8a2b(0x36c)](),_0x4f89a1);}async[_0x2f2715(0x2ed)](_0x136687){const _0x3fa85c=_0x2f2715;var _0x571808;const _0x31c6ae=this[_0x3fa85c(0x2bd)][_0x3fa85c(0x30f)](_0x3fa85c(0x245));if(!_0x31c6ae||!_0x136687[_0x3fa85c(0x2ca)](_0x31c6ae)){const _0x41a952=_0x136687[_0x3fa85c(0x29c)]()[0x0],_0x34950b=_0x136687[_0x3fa85c(0x2ca)](_0x41a952);if(!_0x34950b)return;this[_0x3fa85c(0x38e)](_0x34950b,!0x0),await this[_0x3fa85c(0x19a)][_0x3fa85c(0x2b3)](g[_0x3fa85c(0x3a7)]['id'],{'unitId':_0x136687[_0x3fa85c(0x24d)](),'subUnitId':_0x41a952});return;}((_0x571808=_0x136687[_0x3fa85c(0x38b)]())==null?void 0x0:_0x571808[_0x3fa85c(0x36c)]())!==_0x31c6ae&&await this[_0x3fa85c(0x19a)]['executeCommand'](g[_0x3fa85c(0x3a7)]['id'],{'unitId':_0x136687['getUnitId'](),'subUnitId':_0x31c6ae});}},exports['CollaborationDataLoaderController']=jt([H(0x0,be),H(0x1,a['ILogService']),H(0x2,a[_0x2f2715(0x35b)]),H(0x3,a['Inject'](u[_0x2f2715(0x1a4)])),H(0x4,a[_0x2f2715(0x363)](Ke[_0x2f2715(0x292)]))],exports[_0x2f2715(0x140)]);var Bt=Object[_0x2f2715(0x3a5)],kt=(_0x4c5520,_0x5419c4,_0x2f356f,_0xb1e3fb)=>{const _0x4017db=_0x2f2715;for(var _0x5c0d64=_0xb1e3fb>0x1?void 0x0:_0xb1e3fb?Bt(_0x5419c4,_0x2f356f):_0x5419c4,_0x34fed4=_0x4c5520[_0x4017db(0x159)]-0x1,_0x1c77c7;_0x34fed4>=0x0;_0x34fed4--)(_0x1c77c7=_0x4c5520[_0x34fed4])&&(_0x5c0d64=_0x1c77c7(_0x5c0d64)||_0x5c0d64);return _0x5c0d64;},ce=(_0x3ae0c6,_0x3fe913)=>(_0x2bc769,_0x454a08)=>_0x3fe913(_0x2bc769,_0x454a08,_0x3ae0c6);let z=class{constructor(_0x354000,_0x5f37fb,_0x1a9b22){const _0x39848b=_0x2f2715;this[_0x39848b(0x2da)]=_0x354000,this[_0x39848b(0x20a)]=_0x5f37fb,this[_0x39848b(0x27f)]=_0x1a9b22;}[_0x2f2715(0x1f0)](_0x112324){const _0x83c91e=_0x2f2715;this['_transformUndoRedoStack'](_0x112324),this[_0x83c91e(0x3b0)](_0x112324);}[_0x2f2715(0x142)](_0x32cbf8){const _0x517eba=_0x2f2715,{unitID:_0x2ef21d}=_0x32cbf8,_0x149562=this['_renderManagerService']['getRenderById'](_0x2ef21d)[_0x517eba(0x384)](b[_0x517eba(0x173)]),{redoCache:_0x188584}=_0x149562[_0x517eba(0x235)]();if(_0x188584['length']===0x0)return _0x32cbf8;let _0x451c10=a[_0x517eba(0x196)][_0x517eba(0x1e8)](_0x32cbf8[_0x517eba(0x3ba)][0x0]);for(let _0x557c60=0x0;_0x557c60<_0x188584[_0x517eba(0x159)];_0x557c60++){const _0x117efc={'id':'doc.mutation.rich-text-editing','params':{..._0x188584[_0x557c60]}},_0x57818e=this[_0x517eba(0x20a)][_0x517eba(0x20b)](_0x451c10,_0x117efc,!0x1);if(m['isTransformMutationFailure'](_0x57818e))throw _0x57818e['error'];_0x451c10=_0x57818e[_0x517eba(0x310)];}return{...a[_0x517eba(0x196)][_0x517eba(0x1e8)](_0x32cbf8),'mutations':[_0x451c10]};}[_0x2f2715(0x17f)](_0x20854b){const _0x117cf2=_0x2f2715,{unitID:_0x5a591f}=_0x20854b,_0x331691=this[_0x117cf2(0x27f)][_0x117cf2(0x332)](_0x5a591f)[_0x117cf2(0x384)](b[_0x117cf2(0x173)]),{undoCache:_0x14f4ef,redoCache:_0x569c5f}=_0x331691[_0x117cf2(0x235)]();if(_0x14f4ef[_0x117cf2(0x159)]===0x0||_0x569c5f[_0x117cf2(0x159)]===0x0)return;const _0x596a32=[],_0x5ed73e=[];let _0x4626dd=a[_0x117cf2(0x196)][_0x117cf2(0x1e8)](_0x20854b[_0x117cf2(0x3ba)][0x0]),_0x222345=a['Tools'][_0x117cf2(0x1e8)](_0x20854b[_0x117cf2(0x3ba)][0x0]);for(let _0x307b3a=_0x14f4ef[_0x117cf2(0x159)]-0x1;_0x307b3a>=0x0;_0x307b3a--){const _0xe64ea6={'id':_0x117cf2(0x184),'params':{..._0x14f4ef[_0x307b3a]}},_0x530ff3={'id':_0x117cf2(0x184),'params':{..._0x569c5f[_0x307b3a]}},_0x12d742=this[_0x117cf2(0x20a)]['transformMutation'](_0x4626dd,_0xe64ea6,!0x1),_0x2d581c=this['_transformService']['transformMutation'](_0x222345,_0x530ff3,!0x1);if(m[_0x117cf2(0x1fc)](_0x12d742))throw _0x12d742[_0x117cf2(0x20e)];if(m[_0x117cf2(0x1fc)](_0x2d581c))throw _0x2d581c[_0x117cf2(0x20e)];_0x596a32['unshift'](_0x12d742[_0x117cf2(0x13c)][_0x117cf2(0x203)]),_0x5ed73e[_0x117cf2(0x1e7)](_0x2d581c[_0x117cf2(0x13c)][_0x117cf2(0x203)]),_0x4626dd=_0x12d742[_0x117cf2(0x310)],_0x222345=_0x2d581c[_0x117cf2(0x310)];}_0x331691[_0x117cf2(0x362)]({'undoCache':_0x596a32,'redoCache':_0x5ed73e});}['_transformPreviousActiveRange'](_0x35b82c){const _0x15c515=_0x2f2715,{unitID:_0x3f121c}=_0x35b82c,_0x1913ba=this[_0x15c515(0x27f)]['getRenderById'](_0x3f121c)[_0x15c515(0x384)](b[_0x15c515(0x173)]),_0x11cdc9=_0x1913ba[_0x15c515(0x21c)]();if(_0x11cdc9==null)return;const _0x35a88f=[{'id':_0x15c515(0x184),'params':{'unitId':_0x35b82c[_0x15c515(0x3bb)],'actions':null,'textRanges':[_0x11cdc9]}}],_0x22b92c=this[_0x15c515(0x20a)][_0x15c515(0x335)](_0x35b82c,_0x35a88f);if(!m[_0x15c515(0x298)](_0x22b92c))throw _0x22b92c['error'];const _0x101982=_0x22b92c[_0x15c515(0x13c)][0x0][_0x15c515(0x203)][_0x15c515(0x353)];Array[_0x15c515(0x2a2)](_0x101982)&&_0x101982[_0x15c515(0x159)]&&_0x1913ba['setActiveRange'](_0x101982[0x0]);}};z=kt([ce(0x0,a[_0x2f2715(0x1e2)](a[_0x2f2715(0x1f1)])),ce(0x1,m[_0x2f2715(0x2f3)]),ce(0x2,p['IRenderManagerService'])],z);var Ht=Object[_0x2f2715(0x3a5)],Ft=(_0x27729d,_0xc765d1,_0x59af37,_0x1279c1)=>{for(var _0x364bee=_0x1279c1>0x1?void 0x0:_0x1279c1?Ht(_0xc765d1,_0x59af37):_0xc765d1,_0x4287a3=_0x27729d['length']-0x1,_0x23b607;_0x4287a3>=0x0;_0x4287a3--)(_0x23b607=_0x27729d[_0x4287a3])&&(_0x364bee=_0x23b607(_0x364bee)||_0x364bee);return _0x364bee;},le=(_0x105c27,_0x494209)=>(_0x588ea4,_0x42ea62)=>_0x494209(_0x588ea4,_0x42ea62,_0x105c27);let J=class{constructor(_0x474a64,_0x36a8c4,_0x29f6fa){const _0xeda651=_0x2f2715;this[_0xeda651(0x2da)]=_0x474a64,this[_0xeda651(0x20a)]=_0x36a8c4,this[_0xeda651(0x1e5)]=_0x29f6fa;}[_0x2f2715(0x37a)](_0x54478d){const _0x4a37ba=_0x2f2715;this[_0x4a37ba(0x144)](_0x54478d);}[_0x2f2715(0x142)](_0x200f56){const _0x40849c=_0x2f2715,{unitID:_0x1f49ad}=_0x200f56,{collaboration:_0x496edf}=this[_0x40849c(0x1e5)][_0x40849c(0x234)](_0x1f49ad);if(_0x496edf['length']===0x0)return _0x200f56;let _0x16069a=a[_0x40849c(0x196)][_0x40849c(0x1e8)](_0x200f56[_0x40849c(0x3ba)][0x0]);for(let _0x4eca1c=0x0;_0x4eca1c<_0x496edf[_0x40849c(0x159)];_0x4eca1c++){const _0x26afcc={'id':_0x40849c(0x184),'params':{'unitId':_0x496edf[_0x4eca1c][_0x40849c(0x17b)],..._0x496edf[_0x4eca1c][_0x40849c(0x2d6)]}},_0x23bda4=this[_0x40849c(0x20a)]['transformMutation'](_0x16069a,_0x26afcc,!0x1);if(m['isTransformMutationFailure'](_0x23bda4))throw _0x23bda4['error'];_0x16069a=_0x23bda4[_0x40849c(0x310)];}return{...a['Tools']['deepClone'](_0x200f56),'mutations':[_0x16069a]};}[_0x2f2715(0x144)](_0x12ba99){const _0x23eb99=_0x2f2715,{unitID:_0x35fa6a}=_0x12ba99,{history:_0x50087b,collaboration:_0x133bc1}=this[_0x23eb99(0x1e5)][_0x23eb99(0x234)](_0x35fa6a);if(_0x50087b[_0x23eb99(0x159)]===0x0&&_0x133bc1[_0x23eb99(0x159)]===0x0)return;const _0x3fb6ec=[],_0x14b928=[];let _0x224892=a[_0x23eb99(0x196)][_0x23eb99(0x1e8)](_0x12ba99[_0x23eb99(0x3ba)][0x0]),_0x10e5e4=a[_0x23eb99(0x196)][_0x23eb99(0x1e8)](_0x12ba99[_0x23eb99(0x3ba)][0x0]);for(let _0x514751=_0x50087b[_0x23eb99(0x159)]-0x1;_0x514751>=0x0;_0x514751--){const _0x512370={'id':_0x23eb99(0x184),'params':{'unitId':_0x50087b[_0x514751][_0x23eb99(0x17b)],..._0x50087b[_0x514751][_0x23eb99(0x1f7)]}},_0x282671={'id':_0x23eb99(0x184),'params':{'unitId':_0x50087b[_0x514751]['unitId'],..._0x50087b[_0x514751]['redoState']}},_0x4e2a78=this[_0x23eb99(0x20a)][_0x23eb99(0x20b)](_0x224892,_0x512370,!0x1),_0x4b928b=this[_0x23eb99(0x20a)][_0x23eb99(0x20b)](_0x10e5e4,_0x282671,!0x1);if(m[_0x23eb99(0x1fc)](_0x4e2a78))throw _0x4e2a78[_0x23eb99(0x20e)];if(m[_0x23eb99(0x1fc)](_0x4b928b))throw _0x4b928b[_0x23eb99(0x20e)];_0x3fb6ec['unshift']({..._0x50087b[_0x514751],'undoState':_0x4e2a78[_0x23eb99(0x13c)][_0x23eb99(0x203)],'redoState':_0x4b928b[_0x23eb99(0x13c)]['params']}),_0x224892=_0x4e2a78['m1Prime'],_0x10e5e4=_0x4b928b[_0x23eb99(0x310)];}_0x224892=a[_0x23eb99(0x196)][_0x23eb99(0x1e8)](_0x12ba99[_0x23eb99(0x3ba)][0x0]),_0x10e5e4=a[_0x23eb99(0x196)][_0x23eb99(0x1e8)](_0x12ba99[_0x23eb99(0x3ba)][0x0]);for(let _0x3944e3=_0x133bc1[_0x23eb99(0x159)]-0x1;_0x3944e3>=0x0;_0x3944e3--){const _0x3e0862={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x133bc1[_0x3944e3]['unitId'],..._0x133bc1[_0x3944e3][_0x23eb99(0x1f7)]}},_0x5051a0={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x133bc1[_0x3944e3][_0x23eb99(0x17b)],..._0x133bc1[_0x3944e3]['redoState']}},_0x454eb3=this[_0x23eb99(0x20a)][_0x23eb99(0x20b)](_0x224892,_0x3e0862,!0x1),_0x58eb0d=this[_0x23eb99(0x20a)][_0x23eb99(0x20b)](_0x10e5e4,_0x5051a0,!0x1);if(m[_0x23eb99(0x1fc)](_0x454eb3))throw _0x454eb3[_0x23eb99(0x20e)];if(m['isTransformMutationFailure'](_0x58eb0d))throw _0x58eb0d[_0x23eb99(0x20e)];_0x14b928[_0x23eb99(0x1e7)]({..._0x133bc1[_0x3944e3],'undoState':_0x454eb3['m2Prime'][_0x23eb99(0x203)],'redoState':_0x58eb0d[_0x23eb99(0x13c)]['params']}),_0x224892=_0x454eb3[_0x23eb99(0x310)],_0x10e5e4=_0x58eb0d[_0x23eb99(0x310)];}this[_0x23eb99(0x1e5)][_0x23eb99(0x393)](_0x35fa6a,{'history':_0x3fb6ec,'collaboration':_0x14b928});}};J=Ft([le(0x0,a['Inject'](a['Injector'])),le(0x1,m[_0x2f2715(0x2f3)]),le(0x2,a[_0x2f2715(0x1e2)](b[_0x2f2715(0x37b)]))],J);var Yt=Object['getOwnPropertyDescriptor'],Wt=(_0x521992,_0x368053,_0xdd8e3e,_0xdfbd22)=>{const _0x54edd8=_0x2f2715;for(var _0x2d7f00=_0xdfbd22>0x1?void 0x0:_0xdfbd22?Yt(_0x368053,_0xdd8e3e):_0x368053,_0x3e4845=_0x521992[_0x54edd8(0x159)]-0x1,_0xaedf8f;_0x3e4845>=0x0;_0x3e4845--)(_0xaedf8f=_0x521992[_0x3e4845])&&(_0x2d7f00=_0xaedf8f(_0x2d7f00)||_0x2d7f00);return _0x2d7f00;},Ne=(_0x432dc2,_0x185368)=>(_0x9b1f1f,_0x37731c)=>_0x185368(_0x9b1f1f,_0x37731c,_0x432dc2);let Z=class{constructor(_0x28e949,_0x4dd7de){const _0x4d0a99=_0x2f2715;this[_0x4d0a99(0x2da)]=_0x28e949,this[_0x4d0a99(0x20a)]=_0x4dd7de;}['transformSelections'](_0x526ece){const _0x19c903=_0x2f2715;var _0x5a8ae6;const _0x5bccb0=this[_0x19c903(0x2da)][_0x19c903(0x2f7)](Y[_0x19c903(0x166)]),_0x492626=(_0x5a8ae6=_0x5bccb0['getDocRanges']())!=null?_0x5a8ae6:[];if(_0x492626[_0x19c903(0x159)]===0x0)return;const _0x41e977=_0x526ece[_0x19c903(0x3bb)],_0x179248=[{'id':_0x19c903(0x184),'params':{'unitId':_0x41e977,'actions':null,'textRanges':_0x492626}}],_0x56f1bb=this[_0x19c903(0x20a)]['transformMutationsWithChangeset'](_0x526ece,_0x179248);if(!m[_0x19c903(0x298)](_0x56f1bb))throw _0x56f1bb[_0x19c903(0x20e)];const _0x2c291f=_0x56f1bb[_0x19c903(0x13c)][0x0][_0x19c903(0x203)][_0x19c903(0x353)];Array['isArray'](_0x2c291f)&&_0x2c291f[_0x19c903(0x159)]&&_0x5bccb0[_0x19c903(0x199)](_0x2c291f,{'unitId':_0x41e977,'subUnitId':_0x41e977},!0x1);}};Z=Wt([Ne(0x0,a[_0x2f2715(0x1e2)](a[_0x2f2715(0x1f1)])),Ne(0x1,m[_0x2f2715(0x2f3)])],Z);var Vt=Object[_0x2f2715(0x3a5)],Xt=(_0x51c854,_0x3767e9,_0x48f928,_0x329f7f)=>{for(var _0x4e8159=_0x329f7f>0x1?void 0x0:_0x329f7f?Vt(_0x3767e9,_0x48f928):_0x3767e9,_0x177261=_0x51c854['length']-0x1,_0x8a354f;_0x177261>=0x0;_0x177261--)(_0x8a354f=_0x51c854[_0x177261])&&(_0x4e8159=_0x8a354f(_0x4e8159)||_0x4e8159);return _0x4e8159;},N=(_0x4523ce,_0xe69fef)=>(_0x4e11cd,_0x49ac98)=>_0xe69fef(_0x4e11cd,_0x49ac98,_0x4523ce);let Q=class extends a[_0x2f2715(0x24a)]{constructor(_0x1bc551,_0x3ab078,_0x4cf04a,_0x52e6cc,_0x1a3812,_0x4c2502,_0x327415,_0x2bacd7){const _0x241bd9=_0x2f2715;super(),h(this,_0x241bd9(0x2c4),new d[(_0x241bd9(0x388))](u[_0x241bd9(0x38d)][_0x241bd9(0x22c)])),(this[_0x241bd9(0x1e5)]=_0x1bc551,this[_0x241bd9(0x34e)]=_0x3ab078,this['_docTransformIMECacheService']=_0x4cf04a,this[_0x241bd9(0x25d)]=_0x52e6cc,this[_0x241bd9(0x2df)]=_0x1a3812,this[_0x241bd9(0x14e)]=_0x4c2502,this['_messageService']=_0x327415,this['_localeService']=_0x2bacd7,this[_0x241bd9(0x2f5)]());}[_0x2f2715(0x2f5)](){const _0x3ff1ec=_0x2f2715;this[_0x3ff1ec(0x1d4)](this[_0x3ff1ec(0x34e)][_0x3ff1ec(0x181)][_0x3ff1ec(0x185)](_0x2a1284=>{const _0x3ab59e=_0x3ff1ec,_0x285bdb=this[_0x3ab59e(0x1e5)][_0x3ab59e(0x28d)][_0x3ab59e(0x185)](_0x43196d=>{const _0x526ead=_0x3ab59e;if(_0x43196d==null)return;const {unitId:_0x44eeb4,redoState:_0x20ab38,commandId:_0x578954}=_0x43196d;if(_0x44eeb4!==_0x2a1284[_0x526ead(0x3bb)])return;const _0x31b97a={'id':_0x578954,'type':a['CommandType'][_0x526ead(0x387)],'params':{'unitId':_0x44eeb4,'actions':_0x20ab38[_0x526ead(0x2e3)],'textRanges':null}};_0x2a1284[_0x526ead(0x1f9)](_0x31b97a);});if(_0x2a1284[_0x3ab59e(0x1d4)](_0x285bdb),_0x2a1284 instanceof u['DocCollaborationEntity']){const _0x230acc={'onTransformIME':_0x23e3a5=>this['_docTransformIMECacheService'][_0x3ab59e(0x1f0)](_0x23e3a5),'onTransformState':_0x3e43f0=>this['_docTransformStateCacheService'][_0x3ab59e(0x37a)](_0x3e43f0),'onTransformSelections':_0x869ce1=>this[_0x3ab59e(0x2df)][_0x3ab59e(0x216)](_0x869ce1),'onSyncEditingCollabCursor':_0x3065a4=>this[_0x3ab59e(0x14e)][_0x3ab59e(0x3b8)](_0x3065a4),'onTransformRemoteChangesetByIMECache':_0x25345f=>this[_0x3ab59e(0x15b)]['transformRemoteChangeset'](_0x25345f),'onTransformRemoteChangesetByStateCache':_0x3fc8b1=>this[_0x3ab59e(0x25d)][_0x3ab59e(0x142)](_0x3fc8b1)};_0x2a1284[_0x3ab59e(0x208)](_0x230acc);}}));}};Q=Xt([N(0x0,a[_0x2f2715(0x1e2)](b[_0x2f2715(0x37b)])),N(0x1,a['Inject'](u[_0x2f2715(0x2b1)])),N(0x2,a['Inject'](z)),N(0x3,a[_0x2f2715(0x1e2)](J)),N(0x4,a[_0x2f2715(0x1e2)](Z)),N(0x5,a[_0x2f2715(0x1e2)](Ce)),N(0x6,T[_0x2f2715(0x2a1)]),N(0x7,a['Inject'](a[_0x2f2715(0x27a)]))],Q);var Gt=Object['getOwnPropertyDescriptor'],Kt=(_0x12add4,_0x54ffd4,_0x1ecce6,_0xafd704)=>{const _0x5300c7=_0x2f2715;for(var _0x4b08ef=_0xafd704>0x1?void 0x0:_0xafd704?Gt(_0x54ffd4,_0x1ecce6):_0x54ffd4,_0x3db48c=_0x12add4[_0x5300c7(0x159)]-0x1,_0x3e8587;_0x3db48c>=0x0;_0x3db48c--)(_0x3e8587=_0x12add4[_0x3db48c])&&(_0x4b08ef=_0x3e8587(_0x4b08ef)||_0x4b08ef);return _0x4b08ef;},_e=(_0x4fad11,_0x43a9b2)=>(_0x2bb669,_0x573bb6)=>_0x43a9b2(_0x2bb669,_0x573bb6,_0x4fad11);let ge=class extends a['Disposable']{constructor(_0x3d45f3,_0x45a2a8,_0x3623fb){const _0x27adbf=_0x2f2715;super(),h(this,_0x27adbf(0x306),new Map()),h(this,_0x27adbf(0x253),new Map()),h(this,_0x27adbf(0x1e4),!0x1),(this[_0x27adbf(0x1f8)]=_0x3d45f3,this[_0x27adbf(0x20c)]=_0x45a2a8,this[_0x27adbf(0x277)]=_0x3623fb);}['disableLocalCache'](){const _0x2edb1c=_0x2f2715;this[_0x2edb1c(0x1e4)]=!0x0;}[_0x2f2715(0x1ca)](){const _0x3f5c94=_0x2f2715;this[_0x3f5c94(0x1e4)]=!0x1;}get['saveTaskMap'](){return this['_saveTaskMap'];}['dispose'](){const _0x3a3b14=_0x2f2715;this[_0x3a3b14(0x155)]()[_0x3a3b14(0x206)](()=>super[_0x3a3b14(0x215)]());}async[_0x2f2715(0x308)](_0x31b584){const _0x14e6ef=_0x2f2715;return this[_0x14e6ef(0x1e4)]?null:this['_localStorageService'][_0x14e6ef(0x194)](u[_0x14e6ef(0x250)](_0x31b584));}async[_0x2f2715(0x3a6)](_0x369b97,_0x493ffa){const _0x187eb6=_0x2f2715;return!!this[_0x187eb6(0x20c)]['setItem'](_0x369b97,_0x493ffa);}[_0x2f2715(0x200)](_0x273435,_0xad658f,_0xa0dcd,_0x59084a){const _0x1c35cb=_0x2f2715,_0x3807fd=this[_0x1c35cb(0x277)][_0x1c35cb(0x152)](_0x273435);this[_0x1c35cb(0x306)][_0x1c35cb(0x2bc)](_0x273435,{'unitID':_0x273435,'type':_0xad658f,'awaitingChangeset':_0xa0dcd,'mutations':_0x59084a,'rev':_0x3807fd}),this[_0x1c35cb(0x253)]['has'](_0x273435)||this['_scheduleSaving'](_0x273435);}['_scheduleSaving'](_0x1993a5){const _0x54a7b4=_0x2f2715,_0x473c05=this[_0x54a7b4(0x19b)]();_0x473c05===0x0?this['_saveCache'](_0x1993a5):this[_0x54a7b4(0x253)][_0x54a7b4(0x2bc)](_0x1993a5,setTimeout(()=>this['_saveCache'](_0x1993a5),_0x473c05));}['_getSaveTimeout'](){const _0x224219=_0x2f2715;var _0x5ad7e9;return(_0x5ad7e9=this[_0x224219(0x1f8)]['getConfig'](u[_0x224219(0x251)]))!=null?_0x5ad7e9:u['LOCAL_CACHE_INTERVAL'];}[_0x2f2715(0x18a)](_0x38214f){const _0x5db4cb=_0x2f2715,_0x5988c1=this[_0x5db4cb(0x253)][_0x5db4cb(0x2f7)](_0x38214f);return _0x5988c1!==void 0x0&&window['clearTimeout'](_0x5988c1),this[_0x5db4cb(0x20c)]['setItem'](u[_0x5db4cb(0x250)](_0x38214f),this[_0x5db4cb(0x306)][_0x5db4cb(0x2f7)](_0x38214f))[_0x5db4cb(0x206)](()=>this[_0x5db4cb(0x253)][_0x5db4cb(0x1e1)](_0x38214f));}async['exhaustSavingTask'](){const _0x19785c=_0x2f2715,_0x425d7b=[];this[_0x19785c(0x253)]['forEach']((_0x1c0633,_0x58b5a0)=>{const _0x346eda=_0x19785c;window[_0x346eda(0x138)](_0x1c0633),_0x425d7b[_0x346eda(0x1f6)](this['_saveCache'](_0x58b5a0)[_0x346eda(0x206)](()=>{const _0x43bcd7=_0x346eda;this[_0x43bcd7(0x253)][_0x43bcd7(0x1e1)](_0x58b5a0);}));}),await Promise[_0x19785c(0x1c6)](_0x425d7b);}};ge=Kt([_e(0x0,a['IConfigService']),_e(0x1,a[_0x2f2715(0x344)]),_e(0x2,a['Inject'](m['RevisionService']))],ge);class je extends a[_0x2f2715(0x33d)]{constructor(){const _0x2397a5=_0x2f2715;super(),h(this,'urlChange$'),this[_0x2397a5(0x27c)]=d['fromEvent'](window,_0x2397a5(0x3b5))[_0x2397a5(0x231)](d[_0x2397a5(0x378)](this[_0x2397a5(0x23a)]),d[_0x2397a5(0x27b)](0x1),d[_0x2397a5(0x1d6)](void 0x0));}[_0x2f2715(0x19f)](_0x2e4f1a,_0x3b48f4,_0x3a721c=!0x1){const _0x5976e8=_0x2f2715,_0x5d5671=new URL(window[_0x5976e8(0x341)][_0x5976e8(0x2ce)]);_0x5d5671[_0x5976e8(0x326)][_0x5976e8(0x2bc)](_0x2e4f1a,_0x3b48f4),_0x3a721c?window[_0x5976e8(0x1ba)][_0x5976e8(0x385)]('','',_0x5d5671[_0x5976e8(0x1de)]()):window[_0x5976e8(0x1ba)][_0x5976e8(0x23e)]('','',_0x5d5671[_0x5976e8(0x1de)]());}[_0x2f2715(0x16e)](_0x590472,_0x123f62=!0x1){const _0x16571c=_0x2f2715,_0x13380e=new URL(window['location'][_0x16571c(0x2ce)]);_0x13380e[_0x16571c(0x326)][_0x16571c(0x1e1)](_0x590472),_0x123f62?window['history'][_0x16571c(0x385)]('','',_0x13380e['toString']()):window[_0x16571c(0x1ba)][_0x16571c(0x23e)]('','',_0x13380e[_0x16571c(0x1de)]());}['getParam'](_0x1358fc){const _0x2a1d01=_0x2f2715;var _0x50511a;return(_0x50511a=new URL(window[_0x2a1d01(0x341)][_0x2a1d01(0x2ce)])[_0x2a1d01(0x326)]['get'](_0x1358fc))!=null?_0x50511a:void 0x0;}}var qt=Object[_0x2f2715(0x3a2)],zt=Object['getOwnPropertyDescriptor'],Jt=(_0x24b014,_0x3f89b4,_0x467784)=>_0x3f89b4 in _0x24b014?qt(_0x24b014,_0x3f89b4,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x467784}):_0x24b014[_0x3f89b4]=_0x467784,Zt=(_0x5cec5c,_0x4a3ef1,_0x44d0b4,_0x34e318)=>{for(var _0x5689f5=_0x34e318>0x1?void 0x0:_0x34e318?zt(_0x4a3ef1,_0x44d0b4):_0x4a3ef1,_0x181ef4=_0x5cec5c['length']-0x1,_0x4d9cb5;_0x181ef4>=0x0;_0x181ef4--)(_0x4d9cb5=_0x5cec5c[_0x181ef4])&&(_0x5689f5=_0x4d9cb5(_0x5689f5)||_0x5689f5);return _0x5689f5;},he=(_0x4e33b1,_0x253128)=>(_0x36afaf,_0x5033d8)=>_0x253128(_0x36afaf,_0x5033d8,_0x4e33b1),Qt=(_0x5d3297,_0x283a36,_0x4d10cd)=>Jt(_0x5d3297,_0x283a36+'',_0x4d10cd);const es='UNIVER_COLLABORATION_CLIENT_WEB_PLUGIN';exports[_0x2f2715(0x394)]=class extends a['Plugin']{constructor(_0x22ace7=Ue,_0x3271b3,_0x3b8033,_0x2370ea){const _0x84bf68=_0x2f2715;super(),this[_0x84bf68(0x2b2)]=_0x22ace7,this[_0x84bf68(0x27f)]=_0x3271b3,this[_0x84bf68(0x2da)]=_0x3b8033,this[_0x84bf68(0x1f8)]=_0x2370ea;const {..._0x53a73a}=a[_0x84bf68(0x2ff)]({},Ue,this['_config']);this[_0x84bf68(0x1f8)]['setConfig']($t,_0x53a73a);}[_0x2f2715(0x303)](){const _0x34080f=_0x2f2715;this[_0x34080f(0x23d)](),this[_0x34080f(0x190)]();}[_0x2f2715(0x294)](){this['_registerRenderDependencies']();}[_0x2f2715(0x23d)](){const _0x40dbe5=_0x2f2715;var _0x5e5ffb;const _0x5ab4b1=[[me],[Z],[z],[J],[Ce],[be,{'useClass':je}],[G['ISocketService'],{'useClass':G[_0x40dbe5(0x2ad)]}],[u[_0x40dbe5(0x28e)],{'useClass':ge}],[exports[_0x40dbe5(0x30a)]],[Q],[q],[x],[de],[exports[_0x40dbe5(0x140)]]];a[_0x40dbe5(0x262)](this[_0x40dbe5(0x2da)],a['mergeOverrideWithDependencies'](_0x5ab4b1,(_0x5e5ffb=this[_0x40dbe5(0x2b2)])==null?void 0x0:_0x5e5ffb[_0x40dbe5(0x22d)]));}[_0x2f2715(0x171)](){const _0x5f1e81=_0x2f2715;this[_0x5f1e81(0x1d4)](this['_renderManagerService'][_0x5f1e81(0x36a)](a['UniverInstanceType'][_0x5f1e81(0x223)],[Ie])),this[_0x5f1e81(0x1d4)](this[_0x5f1e81(0x27f)][_0x5f1e81(0x36a)](a[_0x5f1e81(0x17a)][_0x5f1e81(0x3a9)],[ve]));}[_0x2f2715(0x190)](){const _0x1d5555=_0x2f2715;a[_0x1d5555(0x25b)](this[_0x1d5555(0x2da)],[[x],[exports[_0x1d5555(0x30a)]],[Q],[q],[exports[_0x1d5555(0x140)]]]);}},Qt(exports[_0x2f2715(0x394)],_0x2f2715(0x380),es),exports[_0x2f2715(0x394)]=Zt([a['DependentOn'](u[_0x2f2715(0x364)]),he(0x1,p['IRenderManagerService']),he(0x2,a['Inject'](a[_0x2f2715(0x1f1)])),he(0x3,a[_0x2f2715(0x1c0)])],exports[_0x2f2715(0x394)]);var ts=Object[_0x2f2715(0x3a5)],ss=(_0x1bcf21,_0x522539,_0x21d4d0,_0x1793ed)=>{const _0x4633e9=_0x2f2715;for(var _0x5036ca=_0x1793ed>0x1?void 0x0:_0x1793ed?ts(_0x522539,_0x21d4d0):_0x522539,_0xc47c7f=_0x1bcf21[_0x4633e9(0x159)]-0x1,_0x58be70;_0xc47c7f>=0x0;_0xc47c7f--)(_0x58be70=_0x1bcf21[_0xc47c7f])&&(_0x5036ca=_0x58be70(_0x5036ca)||_0x5036ca);return _0x5036ca;},F=(_0x2ff402,_0x5a16d4)=>(_0x544b60,_0x47fa4e)=>_0x5a16d4(_0x544b60,_0x47fa4e,_0x2ff402);exports[_0x2f2715(0x32b)]=class extends u[_0x2f2715(0x396)]{constructor(_0x2846af,_0xf70f6c,_0x56cd49,_0x2bc017,_0xd359ee){super(_0x2846af,_0xf70f6c,_0x56cd49,_0x2bc017,_0xd359ee);}async[_0x2f2715(0x2bb)](_0x2cc491){const _0x4d904d=_0x2f2715,_0x4322d4=await this[_0x4d904d(0x2c1)](),_0x191db4=this[_0x4d904d(0x2cc)](_0x2cc491,_0x4322d4);return this[_0x4d904d(0x38c)](_0x191db4);}[_0x2f2715(0x2cc)](_0x556884,_0x5a4c52){const _0x1584ad=_0x2f2715,_0x170ab6=typeof window>'u'?new URL(_0x556884):new URL(_0x556884,window['location']['origin']);_0x170ab6[_0x1584ad(0x326)]['set'](_0x1584ad(0x174),_0x5a4c52);const _0x2e3414=typeof window>'u'?new URLSearchParams():new URLSearchParams(window['location'][_0x1584ad(0x33f)]);return _0x2e3414[_0x1584ad(0x2f7)](_0x1584ad(0x39b))&&_0x170ab6[_0x1584ad(0x326)]['set'](_0x1584ad(0x39b),_0x2e3414[_0x1584ad(0x2f7)](_0x1584ad(0x39b))),_0x170ab6[_0x1584ad(0x1de)]();}async[_0x2f2715(0x2c1)](){const _0x251875=_0x2f2715;var _0x5775df,_0x2f544f,_0x1692e5;const _0x1cd57c=this[_0x251875(0x1f8)][_0x251875(0x3af)](u['COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY']),_0x24af8f=(_0x5775df=_0x1cd57c==null?void 0x0:_0x1cd57c['wsSessionTicketUrl'])!=null?_0x5775df:u['DEFAULT_WS_SESSION_TICKET_URL'];return(_0x1692e5=(_0x2f544f=(await this[_0x251875(0x3b3)][_0x251875(0x2f7)](_0x24af8f,{'headers':{'Content-Type':_0x251875(0x3ac)}}))['body'])==null?void 0x0:_0x2f544f['ticket'])!=null?_0x1692e5:'';}},exports[_0x2f2715(0x32b)]=ss([F(0x0,a['Inject'](a['Injector'])),F(0x1,a[_0x2f2715(0x1e2)](G[_0x2f2715(0x21e)])),F(0x2,a[_0x2f2715(0x1c0)]),F(0x3,a['ILogService']),F(0x4,m[_0x2f2715(0x323)])],exports[_0x2f2715(0x32b)]);const Me=0x7530,Le=_0x2f2715(0x242);function _0xdf25(){const _0x2cc6c9=['_name','Rect','handleInsertCol','WebURLService','_handleHover','session.collaboration-timeout','invokeId','result','YUUMI_ALL_TABLES_IS_INVALID','_initResize','handleIRemoveRow','SOCKET_FAILED_RETRY','getViewport','_revisionService','getTypeOfUnitAdded$','registerBeforeClose','LocaleService','shareReplay','urlChange$','getValue','_range','_renderManagerService','off-line-single','INVITE_CODE_ALREADY_BOUND','rxjs/operators','xlink:href','permission.content','translate(.97)','YUUMI_UNABLE_LOAD_URL','colorChannel1','M0\x200H16V16H0z','collaboration.single-unit.warning','makeDirty','collabStatus.offline','WebBrowserSingleActiveUnitService','docStateChange$','ILocalCacheService','className','createInstance','lineTo','IRemoteInstanceService','getTypeOfUnitDisposed$','onRendered','min','APPLY_REVISION_CONFILICT','@univerjs/core','isTransformMutationsWithChangesetSuccess','handleInsertRangeMoveDown','createElement','9YXxlWr','getUnhiddenWorksheets','_docSkeletonManagerService','@univerjs/design','JOIN_ROOM_FAILED','RECT','IMessageService','isArray','serializeRangeWithSheet','key','tag','NOT_FOUND','_handleHeartbeatEvent','0\x200\x2017\x2016','code','addEventListener','_cursors','_send','WebSocketService','toRgbString','1042936TQZBvH','_getAnchorBounding','CollaborationController','_config','executeCommand','split','Shape','show','path','@univerjs/sheets-ui','runRefRangeMutations','SessionStatus','createSocket','set','_urlService','ENSURE_SNAPSHOT_EXECUTION','backgroundColor','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','_getSessionTicket','#FFF','evenodd','_status$','connectInjector','_anchorDot','throttleTime','_cursor','green.600','getSheetBySheetId','getAncestorScale','_createSocketURL','arc','href','SheetCollabCursorShape','from','CONNECTOR_DATA_TOO_LARGE','on-line-single','getDocRanges','LOGIN_FAILED','session.connection-failed','redoState','SetSelectionsOperation','Vector2','_assignedColors','_injector','HEADER_MENU','SYNCED','@univerjs/network','SUBMIT_CHANGESET_TIMEOUT','_docTransformSelectionsService','stringify','EMAIL_HAS_BEEN_BOUND','Error','actions','PENDING','CollaborationUIEventId','@univerjs/ui','type','assignAColorForMemberID','getCurrentSelections','apply','extend','onCommandExecuted','_updateSubUnitFromURLParams','USERS_LEAVE','univerjs-icon\x20univerjs-icon-','resize','@univerjs/sheets','flatMap','ITransformService','width','_initEntityListener','@univerjs-pro/collaboration-client','get','_render','_handleLeaveEvent','clipPath','sessionStatus$','OTHER_CLIENTS_EDITING','switchMap','collab-text-range-','merge','_session','getCurrent','handleInsertRow','onStarting','SNAPSHOT_HAS_BEEN_REMOVED','APPLY_PERMISSION_DENIED','_cachedData','1270calpRA','loadOfflineData','permission.title','DesktopCollaborationStatusDisplayController','YUUMI_NO_CUBOID_FOR_QUESTION','hasOwnProperty','FETCH_MISS','univer-flex\x20univer-mr-2\x20univer-text-xl','getParam','m1Prime','startColumn','restore','post','YUUMI_TABLE_NOT_FOUND_IN_UNIT','imageSourceType','children','_refreshCollabCursors','memberID','unsubscribe','12072gJCiez','measureText','YUUMI_PROMPT_MAX_TOKENS_EXCEEDED','map','_selfUnitIDs','attrs','_entityInit$','random','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','ISnapshotServerService','roomMembers$','_memberService','searchParams','getMergeData','drawWith','closePath','executionId','BrowserCollaborationSocketService','RemoveColCommandId','propertyIsEnumerable','_getScale','newValue','IUIPartsService','transformByState','getRenderById','focused$','fillStyle','transformMutationsWithChangeset','UNAUTHENTICATED','OTHER_CLIENT_EDITING','fill','icon','fromEventSubject','findNodePositionByCharIndex','EffectRefRangId','RxDisposable','_colorIndex','search','useRef','location','currentSkeleton$','_toggleOffline','ILocalStorageService','TEXT','data','init','YUUMI_URL_COL_OUT_OF_RANGE','Warning','collabCursorState$','SHEET_VIEWPORT_KEY','collab-client.tooltip.reconnect','handleInsertRangeMoveRight','_collaborationController','off-line-single_clip0_910_343','body','OnLineSingle','TEXT_RANGE_LAYER_INDEX','textRanges','handleIRemoveCol','_imageIoService','YUUMI_SUBSCRIPTION_NOT_FOUND','UPDATE_CURSOR','assign','fillRule','Module','ICommandService','_instanceService','isActive','_draw','DeleteRangeMoveUpCommandId','sheetID','div','setUndoRedoMutationParamsCache','Optional','UniverCollaborationClientPlugin','IImageIoService','MoveRangeCommandId','string','INVITE_CODE_HAS_BEEN_UES','defIds','registerRenderModule','VIEW_MAIN','getSheetId','onPointerLeave$','TOO_MANY_REQUESTS','NO_OTHER_CLIENTS_EDITING','_beforeCloseService','RemoteUniscriptService','getMemberID','getCollabEntity$','LICENSE_IMPORT_SIZE_EXCEEDED','Subject','getSkeleton','InsertRowCommandId','takeUntil','7706jvxAWW','transformStateCache','DocStateChangeManagerService','RichTextEditingMutation','on-line-single_clip0_910_349','YUUMI_ASYNCIO_CANCELLED','setAlpha','pluginName','MOBILE_HAS_BEEN_BOUND','collabStatus.fetchMiss','IUniverInstanceService','with','replaceState','_initEvent','MUTATION','BehaviorSubject','height','UnitStatus','getActiveSheet','_doCreateSocket','CollaborationStatus','_updateURLWithCurrentState','debounceTime','_setupBeforeClosingHandler','_shapes','send','setStateCache','UniverCollaborationClientUIPlugin','concat','CollaborationSocketService','_collabSessionService','loadUnit','getSheetObject','IBeforeCloseService','runId','_updateLocalCursor','@univerjs/engine-formula','none','call','defs','indexOf','defineProperty','[CollaborationDataLoaderController]','skeleton','getOwnPropertyDescriptor','saveOfflineData','SetWorksheetActivateCommand','_setupSubUnitSync','UNIVER_SHEET','_collaborationUIEventService','some','application/json','CONFLICT','PERMISSION_DENIED','getConfig','_transformPreviousActiveRange','SNAPSHOT_INVALID_SNAPSHOT','_syncEditingCollabCursorService','_httpService','getCoordByCell','popstate','_sheetSkeletonManagerService','_dataLoaderService','syncEditingCollabCursor','IURLService','mutations','unitID','name','UNRECOGNIZED','clearTimeout','PY_RUNTIME_SCRIPT_ERROR','top','registerRefRange','m2Prime','collab-text-anchor-','_themeService','1171988xgmFDX','CollaborationDataLoaderController','ONLINE','transformRemoteChangeset','getMember','_transformHistoryAndStateStack','_getMergeRange','getColorFromTheme','source','LICENSE_MAX_UNITS_EXCEEDED','NodePositionConvertToCursor','NodePositionConvertToRectRange','next','debounce','createIdentifier','_docSyncEditingCollabCursorService','includes','_clearOtherTimers','LICENSE_DISTRO_REJECTED','getCurrentRevOfUnit','CollaborationSessionService','COLORS','exhaustSavingTask','has','toDisposable','_drawTextRange','length','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','_docTransformIMECacheService','useDependency','combineLatest','_unitOnClients','debug','generateRandomId','COMPLETION_FINISHED','red.300','getColor','#fff','replace','DocSelectionManagerService','collabStatus.conflict','jsx','_startSheetCollabCursor','_color','font','useObservable','currentColor','removeParam','11MrMitY','RegularPolygon','_registerRenderDependencies','url(#off-line-single_clip0_910_343)','DocIMEInputManagerService','sessionTicket','DOC_RANGE_TYPE','endRow','_collabCursorState$','deserializeRangeWithSheet','_collabCursorController','UniverInstanceType','unitId','WECHAT_HAS_BEEN_BOUND','displayName','mask','_transformUndoRedoStack','Unknown\x20user','entityInit$','INotificationService','CollaborationUIEventService','doc.mutation.rich-text-editing','subscribe','cursorInfo','roomMembers','saveTaskMap','_onCursorDelete','_saveCache','getFocusedUnit','_drawAnchor','_hovered','registerComponent','parse','_initDependencies','getOffsetConfig','_initCommandExecutedListener','_toggleOnline','getItem','addClipboardHook','Tools','SheetSkeletonManagerService','setItem','replaceDocRanges','_commandService','_getSaveTimeout','_onCursorUpdate','idSuffix','_entities','setParam','subscribeEvent','_getSheetObject','text','function','DataLoaderService','0\x200\x2016\x2016','column','DeleteRangeMoveLeftCommandId','DocSkeletonManagerService','MessageType','1em','[RemoteUniscriptService]:\x20no\x20focused\x20unit','@univerjs/drawing','getUnitStatus$','_handleEvent','cursorInfo$','ThemeService','_localeService','url(#$1','_online','_cursorInfo$','size','asObservable','OFFLINE','setShapeProps','purple.300','history','Failed','uni.network.url-service','AWAITING','runOnServer','addObjects','IConfigService','FromArray','_heartbeatTimer','sheetId','complete','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','all','black','setInterval','APPLY_DUPLICATED','enableLocalCache','_init','entries','_textBubble','_localCacheService','DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT','LICENSE_EXPORT_SIZE_EXCEEDED','prototype','_docSkeleton','_scene','disposeWithMe','_eventUnsubscribe','mapTo','collaboration.closeRoom','subUnitId','_onRefRangeChange','_startDocCollabCursor','_backgroundColor','CHANGESET_REVISION_CONFILICT','currentTheme$','toString','current','@univerjs/engine-render','delete','Inject','IDocClipboardService','_disabled','_docStateChangeManagerService','_scheduleClearOtherTimer','unshift','deepClone','getRangePointData','_drawRectRange','rxjs','clearInterval','startRow','_refRangeService','filter','transformIMECache','Injector','transform','_updateCollabCursors','getRelativeToViewportCoord','blue.400','push','undoState','_configService','onLocalMutation','YUUMI_RATE_OVER_LIMIT','_document','isTransformMutationFailure','beginPath','substring','InsertRangeMoveDownCommandId','updateOfflineData','UNDEFINED','USER_NOT_INVITED_CODE','params','activeSheet$','YUUMI_AI_RUN_FAILED','then','addObject','addHandlerCallback','_roomMembers$','_transformService','transformMutation','_localStorageService','INVALID_ARGUMENT','error','univer-flex\x20univer-items-center','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','onTransformChange$','status$','_unitStatus','Rectangle','dispose','transformSelections','_anchor','event$','fromEvent','...','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','getActiveRange','APPLY_NON_SEQUENTIAL_REVISION','HTTPService','getCollabCursors$','219LnJfJp','1260231GnWjsN','isEditing','UNIVER_DOC','INVITE_CODE_REQUIRED','_removeCollabCursors','onPointerEnter$','_messageService','_logService','_colorAssignService','_ensureSubject','/run/','NOT_COLLAB','override','startsWith','symbol','SOCKET_FAILED','pipe','storage','save','getStateCache','getUndoRedoMutationParamsCache','INVALID_INVITE_CODE','APPLY_REJECT','toStringTag','add','dispose$','_uiPartsService','CollaborationEvent','_registerDependencies','pushState','_initStatusListener','hide','useCallback','ACTIVE_UNIT_EVENT_CHANNEL','svg','color','subunit','Tooltip','119810fxYBLx','130253zOLffG','BuiltInUIPart','Disposable','selection','_id','getUnitId','MemberService','_removeClearOtherTimer','getLocalCacheKey','LOCAL_CACHE_INTERVAL_KEY','_hover','_saveTaskMap','moveTo','onMouseMove','_cursorShapes','range','_labelPosition','_hideTimer','requireSession','touchDependencies','_context','_docTransformStateCacheService','values','TRANSFORM_CHANGE_OBSERVABLE_TYPE','round','collabStatus.syncing','registerDependencies','fillText','@univerjs/docs-ui','forEach','rgba(255,\x20255,\x20255,\x200.01)','_univerInstanceService','forwardRef','ranges'];_0xdf25=function(){return _0x2cc6c9;};return _0xdf25();}class is extends a[_0x2f2715(0x24a)]{constructor(){const _0x2e261e=_0x2f2715;super(),h(this,_0x2e261e(0x24c),a[_0x2e261e(0x160)]()),h(this,'_selfUnitIDs',new Set()),h(this,'_unitOnClients',new Map()),h(this,_0x2e261e(0x1c2),null),h(this,_0x2e261e(0x150),new Map()),h(this,_0x2e261e(0x213),new Map()),this['_init']();}['dispose'](){const _0xcaf131=_0x2f2715;super['dispose'](),this['_clearOtherTimers'][_0xcaf131(0x265)]((_0x4e297c,_0x3ac5ee)=>this[_0xcaf131(0x24f)](_0x3ac5ee)),this[_0xcaf131(0x1c2)]&&window[_0xcaf131(0x1ec)](this[_0xcaf131(0x1c2)]);}[_0x2f2715(0x1ad)](_0x1c6a24){const _0x11154f=_0x2f2715;return this[_0x11154f(0x22a)](_0x1c6a24)[_0x11154f(0x231)](d['distinctUntilChanged']());}['editingUnit'](_0xb898a2){const _0x54f2aa=_0x2f2715;this[_0x54f2aa(0x31e)][_0x54f2aa(0x1b5)]===0x0&&this['_scheduleHeartbeat'](),this[_0x54f2aa(0x31e)][_0x54f2aa(0x239)](_0xb898a2),this[_0x54f2aa(0x2ac)]({'type':0x0,'memberID':this['_id'],'unitIDs':[_0xb898a2],'isForwarded':!0x1});}['disposeUnit'](_0x1dc5e3){const _0x204c73=_0x2f2715;this[_0x204c73(0x31e)]['delete'](_0x1dc5e3),this['_selfUnitIDs'][_0x204c73(0x1b5)]===0x0&&this[_0x204c73(0x1c2)]&&window[_0x204c73(0x1ec)](this[_0x204c73(0x1c2)]);}[_0x2f2715(0x1cb)](){const _0x372055=_0x2f2715;this[_0x372055(0x1d4)](a[_0x372055(0x157)](d[_0x372055(0x219)](window,_0x372055(0x232))[_0x372055(0x185)](_0x283032=>{const _0x2a7c32=_0x372055;if(_0x283032[_0x2a7c32(0x2a4)]!==Le||!_0x283032[_0x2a7c32(0x32f)])return;const _0x3e20aa=JSON[_0x2a7c32(0x18f)](_0x283032[_0x2a7c32(0x32f)]);this[_0x2a7c32(0x1ae)](_0x3e20aa);}))),window[_0x372055(0x2aa)]('unload',()=>this[_0x372055(0x2ac)]({'type':0x1,'memberID':this['_id'],'unitIDs':Array[_0x372055(0x2d0)](this['_selfUnitIDs'])}));}[_0x2f2715(0x1ae)](_0x2dc3e5){const _0xc20e26=_0x2f2715;switch(_0x2dc3e5['type']){case 0x0:this['_handleJoinEvent'](_0x2dc3e5);break;case 0x1:this[_0xc20e26(0x2f9)](_0x2dc3e5);break;case 0x2:this[_0xc20e26(0x2a7)](_0x2dc3e5);break;}}['_handleJoinEvent'](_0x532e6c){const _0x104e22=_0x2f2715,{unitIDs:_0x39ff93,memberID:_0x5c3221,isForwarded:_0x45f7c9}=_0x532e6c;_0x39ff93[_0x104e22(0x265)](_0x4ae8b8=>{const _0x444931=_0x104e22;if(!_0x45f7c9&&this[_0x444931(0x15e)][_0x444931(0x156)](_0x4ae8b8)&&this[_0x444931(0x22a)](_0x4ae8b8)['next'](u[_0x444931(0x38a)][_0x444931(0x2fc)]),!this['_unitOnClients'][_0x444931(0x156)](_0x4ae8b8)||!this[_0x444931(0x15e)]['get'](_0x4ae8b8)[_0x444931(0x156)](_0x5c3221)){const _0x135306=this[_0x444931(0x15e)][_0x444931(0x2f7)](_0x4ae8b8)||new Set();_0x135306['add'](_0x5c3221),this[_0x444931(0x15e)][_0x444931(0x2bc)](_0x4ae8b8,_0x135306),this['_scheduleClearOtherTimer'](_0x5c3221);}}),_0x45f7c9||this[_0x104e22(0x2ac)]({'type':0x0,'memberID':this[_0x104e22(0x24c)],'unitIDs':[...this[_0x104e22(0x31e)]],'isForwarded':!0x0});}[_0x2f2715(0x1e6)](_0x58b8de){const _0x17afb1=_0x2f2715;this['_removeClearOtherTimer'](_0x58b8de);const _0x1589ce=window['setTimeout'](()=>{this['_unitOnClients']['forEach'](_0x192dec=>{const _0x212102=_0x330b;_0x192dec[_0x212102(0x1e1)](_0x58b8de);});},Me*0x2);this[_0x17afb1(0x150)][_0x17afb1(0x2bc)](_0x58b8de,_0x1589ce);}['_removeClearOtherTimer'](_0x69a7a){const _0x35bd0a=_0x2f2715;if(this[_0x35bd0a(0x150)]['has'](_0x69a7a)){const _0x4f3160=this['_clearOtherTimers']['get'](_0x69a7a);_0x4f3160&&window[_0x35bd0a(0x138)](_0x4f3160),this['_clearOtherTimers'][_0x35bd0a(0x2bc)](_0x69a7a,null);}}[_0x2f2715(0x2f9)](_0x213056){const {memberID:_0x32dd6d,unitIDs:_0x292c59}=_0x213056;_0x292c59['forEach'](_0x5861b0=>{const _0x294147=_0x330b;var _0x31846d;const _0x40a946=this['_unitOnClients']['get'](_0x5861b0);_0x40a946&&(_0x40a946[_0x294147(0x1e1)](_0x32dd6d),(_0x31846d=this[_0x294147(0x22a)](_0x5861b0))==null||_0x31846d['next'](_0x40a946[_0x294147(0x1b5)]===0x0?u[_0x294147(0x38a)][_0x294147(0x36f)]:u['UnitStatus'][_0x294147(0x2fc)]));}),this['_removeClearOtherTimer'](_0x32dd6d);}[_0x2f2715(0x2a7)](_0x4bfe4b){const _0x4d879e=_0x2f2715;this[_0x4d879e(0x1e6)](_0x4bfe4b[_0x4d879e(0x318)]);}['_send'](_0x172e0a){const _0x12ca14=_0x2f2715;localStorage[_0x12ca14(0x198)](Le,JSON[_0x12ca14(0x2e0)](_0x172e0a));}['_scheduleHeartbeat'](){const _0x55f2a0=_0x2f2715;this[_0x55f2a0(0x1c2)]=window[_0x55f2a0(0x1c8)](()=>{const _0x376f36=_0x55f2a0;this[_0x376f36(0x2ac)]({'type':0x2,'memberID':this[_0x376f36(0x24c)]});},Me);}[_0x2f2715(0x22a)](_0x42b2a4){const _0x5e433e=_0x2f2715;return this[_0x5e433e(0x213)]['has'](_0x42b2a4)||this[_0x5e433e(0x213)][_0x5e433e(0x2bc)](_0x42b2a4,new d['BehaviorSubject'](u[_0x5e433e(0x38a)][_0x5e433e(0x36f)])),this[_0x5e433e(0x213)]['get'](_0x42b2a4);}}var Be=(_0x511422=>(_0x511422[_0x511422[_0x2f2715(0x201)]=0x0]=_0x2f2715(0x201),_0x511422[_0x511422['OK']=0x1]='OK',_0x511422[_0x511422['INTERNAL_ERROR']=0x2]='INTERNAL_ERROR',_0x511422[_0x511422['PERMISSION_DENIED']=0x3]=_0x2f2715(0x3ae),_0x511422[_0x511422[_0x2f2715(0x2a6)]=0x4]=_0x2f2715(0x2a6),_0x511422[_0x511422['UNAUTHENTICATED']=0x5]=_0x2f2715(0x336),_0x511422[_0x511422['ALREADY_EXISTS']=0x6]='ALREADY_EXISTS',_0x511422[_0x511422['INVALID_ARGUMENT']=0x7]=_0x2f2715(0x20d),_0x511422[_0x511422[_0x2f2715(0x36e)]=0x8]=_0x2f2715(0x36e),_0x511422[_0x511422[_0x2f2715(0x161)]=0x9]=_0x2f2715(0x161),_0x511422[_0x511422[_0x2f2715(0x2d4)]=0xa]=_0x2f2715(0x2d4),_0x511422[_0x511422[_0x2f2715(0x1dc)]=0x1389]='CHANGESET_REVISION_CONFILICT',_0x511422[_0x511422[_0x2f2715(0x3b1)]=0x1771]='SNAPSHOT_INVALID_SNAPSHOT',_0x511422[_0x511422[_0x2f2715(0x304)]=0x1772]=_0x2f2715(0x304),_0x511422[_0x511422[_0x2f2715(0x2be)]=0x1773]=_0x2f2715(0x2be),_0x511422[_0x511422[_0x2f2715(0x237)]=0x1b59]=_0x2f2715(0x237),_0x511422[_0x511422['APPLY_NON_SEQUENTIAL_REVISION']=0x1b5a]=_0x2f2715(0x21d),_0x511422[_0x511422[_0x2f2715(0x296)]=0x1b5b]='APPLY_REVISION_CONFILICT',_0x511422[_0x511422[_0x2f2715(0x305)]=0x1b5c]=_0x2f2715(0x305),_0x511422[_0x511422[_0x2f2715(0x1c9)]=0x1b5d]=_0x2f2715(0x1c9),_0x511422[_0x511422[_0x2f2715(0x2d1)]=0x1f41]=_0x2f2715(0x2d1),_0x511422[_0x511422[_0x2f2715(0x148)]=0x2329]='LICENSE_MAX_UNITS_EXCEEDED',_0x511422[_0x511422[_0x2f2715(0x21b)]=0x232a]='LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED',_0x511422[_0x511422[_0x2f2715(0x374)]=0x232b]='LICENSE_IMPORT_SIZE_EXCEEDED',_0x511422[_0x511422[_0x2f2715(0x1d0)]=0x232c]=_0x2f2715(0x1d0),_0x511422[_0x511422[_0x2f2715(0x151)]=0x232d]=_0x2f2715(0x151),_0x511422[_0x511422[_0x2f2715(0x286)]=0x2711]=_0x2f2715(0x286),_0x511422[_0x511422['YUUMI_URL_COL_OUT_OF_RANGE']=0x2712]=_0x2f2715(0x348),_0x511422[_0x511422[_0x2f2715(0x1fa)]=0x2713]=_0x2f2715(0x1fa),_0x511422[_0x511422[_0x2f2715(0x356)]=0x2714]='YUUMI_SUBSCRIPTION_NOT_FOUND',_0x511422[_0x511422[_0x2f2715(0x30b)]=0x271a]=_0x2f2715(0x30b),_0x511422[_0x511422[_0x2f2715(0x37e)]=0x271b]=_0x2f2715(0x37e),_0x511422[_0x511422[_0x2f2715(0x314)]=0x271c]='YUUMI_TABLE_NOT_FOUND_IN_UNIT',_0x511422[_0x511422[_0x2f2715(0x272)]=0x271d]=_0x2f2715(0x272),_0x511422[_0x511422[_0x2f2715(0x31c)]=0x271e]=_0x2f2715(0x31c),_0x511422[_0x511422[_0x2f2715(0x205)]=0x271f]=_0x2f2715(0x205),_0x511422[_0x511422[_0x2f2715(0x139)]=0x2af9]=_0x2f2715(0x139),_0x511422[_0x511422[_0x2f2715(0x368)]=0x2ee1]=_0x2f2715(0x368),_0x511422[_0x511422[_0x2f2715(0x236)]=0x2ee2]='INVALID_INVITE_CODE',_0x511422[_0x511422[_0x2f2715(0x224)]=0x2ee3]='INVITE_CODE_REQUIRED',_0x511422[_0x511422['USER_NOT_INVITED_CODE']=0x2ee4]=_0x2f2715(0x202),_0x511422[_0x511422[_0x2f2715(0x281)]=0x2ee5]='INVITE_CODE_ALREADY_BOUND',_0x511422[_0x511422[_0x2f2715(0x17c)]=0x32c9]=_0x2f2715(0x17c),_0x511422[_0x511422[_0x2f2715(0x381)]=0x32ca]=_0x2f2715(0x381),_0x511422[_0x511422[_0x2f2715(0x2e1)]=0x32cb]=_0x2f2715(0x2e1),_0x511422[_0x511422['UNRECOGNIZED']=-0x1]=_0x2f2715(0x3bd),_0x511422))(Be||{}),ns=Object['getOwnPropertyDescriptor'],rs=(_0x398041,_0x2cd4e5,_0x17b847,_0x5a6b50)=>{const _0x409376=_0x2f2715;for(var _0x679f0a=_0x5a6b50>0x1?void 0x0:_0x5a6b50?ns(_0x2cd4e5,_0x17b847):_0x2cd4e5,_0x3916c3=_0x398041[_0x409376(0x159)]-0x1,_0x426b10;_0x3916c3>=0x0;_0x3916c3--)(_0x426b10=_0x398041[_0x3916c3])&&(_0x679f0a=_0x426b10(_0x679f0a)||_0x679f0a);return _0x679f0a;},ue=(_0x40a6b9,_0x3cf81c)=>(_0x264f6c,_0x3494f2)=>_0x3cf81c(_0x264f6c,_0x3494f2,_0x40a6b9);exports['RemoteUniscriptService']=class extends a[_0x2f2715(0x24a)]{constructor(_0x12c3f2,_0x2e3b8a,_0x32430f){const _0x23cd1f=_0x2f2715;super(),this['_instanceService']=_0x12c3f2,this[_0x23cd1f(0x3b3)]=_0x2e3b8a,this[_0x23cd1f(0x1f8)]=_0x32430f;}async[_0x2f2715(0x1be)](_0x13a742,_0x533071,_0x1cca6c,..._0x364548){const _0x44c3a2=_0x2f2715;var _0x36d109,_0x5e1bf5,_0x5070ce,_0x3f3927;const _0x13de1f=this[_0x44c3a2(0x35c)][_0x44c3a2(0x18b)]();if(!_0x13de1f)throw new Error(_0x44c3a2(0x1ab));const _0x243a9c=((_0x36d109=this[_0x44c3a2(0x1f8)]['getConfig'](u['REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY']))!=null?_0x36d109:u[_0x44c3a2(0x1cf)])+'/'+_0x13a742+_0x44c3a2(0x22b)+_0x533071,_0x38d899=new URL(window[_0x44c3a2(0x341)][_0x44c3a2(0x2ce)]),_0x333740={'scriptId':_0x13a742,'runId':(_0x5e1bf5=_0x38d899[_0x44c3a2(0x326)][_0x44c3a2(0x2f7)]('runId'))!=null?_0x5e1bf5:'','function':_0x533071,'unitId':_0x13de1f['getUnitId'](),'argsOfFunction':JSON[_0x44c3a2(0x2e0)](_0x364548),'invokeId':(_0x5070ce=_0x1cca6c[_0x44c3a2(0x270)])!=null?_0x5070ce:'','executionId':(_0x3f3927=_0x1cca6c[_0x44c3a2(0x32a)])!=null?_0x3f3927:''};try{const _0x1370d1=await this[_0x44c3a2(0x3b3)][_0x44c3a2(0x313)](_0x243a9c,{'body':_0x333740});return _0x1370d1[_0x44c3a2(0x350)][_0x44c3a2(0x20e)]&&_0x1370d1[_0x44c3a2(0x350)][_0x44c3a2(0x20e)][_0x44c3a2(0x2a9)]!==Be['OK']?_0x44c3a2(0x1bb):_0x1370d1[_0x44c3a2(0x350)][_0x44c3a2(0x271)];}catch{return _0x44c3a2(0x1bb);}}},exports['RemoteUniscriptService']=rs([ue(0x0,a[_0x2f2715(0x383)]),ue(0x1,a[_0x2f2715(0x1e2)](G[_0x2f2715(0x21e)])),ue(0x2,a[_0x2f2715(0x1c0)])],exports[_0x2f2715(0x371)]),exports['CollaborationStatusDisplay']=xe,exports[_0x2f2715(0x3b9)]=be,exports[_0x2f2715(0x2cf)]=Ae,exports[_0x2f2715(0x28c)]=is,exports[_0x2f2715(0x26d)]=je;
|
package/lib/cjs/locale/en-US.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';function
|
|
1
|
+
'use strict';function _0x4ec8(){const _0xf1c2ef=['Local\x20file','You\x20opened\x20the\x20same\x20file\x20in\x20another\x20tab.\x20In\x20case\x20of\x20data\x20missing,\x20you\x20cannot\x20edit\x20on\x20this\x20tab.','5KVScHf','1331104mdTEXN','10jPRLQf','3789498AVNKaO','Your\x20login\x20has\x20expired,\x20click\x20OK\x20to\x20re-login,\x20click\x20Cancel\x20to\x20save\x20your\x20local\x20edits.','Click\x20to\x20Reconnect','2793984ZjqAor','The\x20server\x20is\x20not\x20responding\x20to\x20your\x20collaboration\x20request.\x20Your\x20edits\x20would\x20be\x20saved\x20locally.','There\x20is\x20a\x20conflict\x20between\x20your\x20local\x20copy\x20and\x20the\x20copy\x20on\x20the\x20server.\x20Please\x20save\x20your\x20local\x20edits,\x20because\x20they\x20will\x20be\x20lost\x20when\x20you\x20reload\x20the\x20page.','Offline,\x20edits\x20would\x20be\x20save\x20on\x20local','7fUKAIc','Collaboration\x20room\x20is\x20full.\x20You\x20edits\x20would\x20be\x20saved\x20locally.','Edit\x20conflicts','24iXaTCd','4547691rFhAVK','11651783oALetE','Editing\x20privileges\x20were\x20revoked\x20because\x20the\x20collaborative\x20room\x20was\x20closed.','3lzcHJe','Connection\x20failed,\x20we\x20retry\x20in\x20a\x20while.','Syncing...','468357hsNAhu','Authentication\x20Error','642662IdupBj'];_0x4ec8=function(){return _0xf1c2ef;};return _0x4ec8();}const _0x456286=_0x48b5;(function(_0x232786,_0x3b41e1){const _0x27a400=_0x48b5,_0x402cf8=_0x232786();while(!![]){try{const _0x22bf5f=-parseInt(_0x27a400(0x1a6))/0x1*(-parseInt(_0x27a400(0x1ab))/0x2)+-parseInt(_0x27a400(0x1a9))/0x3*(-parseInt(_0x27a400(0x1a2))/0x4)+-parseInt(_0x27a400(0x195))/0x5*(-parseInt(_0x27a400(0x198))/0x6)+-parseInt(_0x27a400(0x19f))/0x7*(parseInt(_0x27a400(0x196))/0x8)+parseInt(_0x27a400(0x1a3))/0x9*(-parseInt(_0x27a400(0x197))/0xa)+-parseInt(_0x27a400(0x1a4))/0xb+-parseInt(_0x27a400(0x19b))/0xc;if(_0x22bf5f===_0x3b41e1)break;else _0x402cf8['push'](_0x402cf8['shift']());}catch(_0x59c241){_0x402cf8['push'](_0x402cf8['shift']());}}}(_0x4ec8,0x8acc6));function _0x48b5(_0x4c8eb9,_0x70a395){const _0x4ec843=_0x4ec8();return _0x48b5=function(_0x48b5f6,_0x35700e){_0x48b5f6=_0x48b5f6-0x195;let _0x191459=_0x4ec843[_0x48b5f6];return _0x191459;},_0x48b5(_0x4c8eb9,_0x70a395);}const e={'collab-client':{'tooltip':{'reconnect':_0x456286(0x19a)}},'collabStatus':{'fetchMiss':'Syncing\x20server\x20data...','conflict':_0x456286(0x1a1),'notCollab':_0x456286(0x1ac),'synced':'Synced','syncing':_0x456286(0x1a8),'offline':_0x456286(0x19e)},'session':{'connection-failed':'Connection\x20failed,\x20please\x20check\x20your\x20network.','will-retry':_0x456286(0x1a7),'room-full':_0x456286(0x1a0),'collaboration-timeout':_0x456286(0x19c)},'conflict':{'title':'Collaboration\x20Conflict','content':_0x456286(0x19d)},'permission':{'title':_0x456286(0x1aa),'content':'Your\x20actions\x20are\x20conflicting\x20with\x20the\x20server\x27s\x20permissions.\x20Please\x20save\x20your\x20local\x20edits\x20elsewhere\x20as\x20they\x20will\x20be\x20discarded\x20after\x20refreshing\x20the\x20page.'},'collaboration':{'single-unit':{'warning':_0x456286(0x1ad)},'closeRoom':_0x456286(0x1a5)},'auth':{'needGotoLoginAlert':_0x456286(0x199)}};module['exports']=e;
|