@univerjs-pro/collaboration-client-ui 0.10.8 → 0.10.9
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/ca-ES.js +1 -1
- package/lib/cjs/locale/en-US.js +1 -1
- package/lib/cjs/locale/es-ES.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/ko-KR.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/ca-ES.js +1 -1
- package/lib/es/locale/en-US.js +1 -1
- package/lib/es/locale/es-ES.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/ko-KR.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/ca-ES.js +1 -1
- package/lib/locale/en-US.js +1 -1
- package/lib/locale/es-ES.js +1 -1
- package/lib/locale/fa-IR.js +1 -1
- package/lib/locale/fr-FR.js +1 -1
- package/lib/locale/ko-KR.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/ca-ES.js +1 -1
- package/lib/umd/locale/en-US.js +1 -1
- package/lib/umd/locale/es-ES.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/ko-KR.js +1 -1
- package/lib/umd/locale/ru-RU.js +1 -1
- package/lib/umd/locale/vi-VN.js +1 -1
- package/lib/umd/locale/zh-CN.js +1 -1
- package/lib/umd/locale/zh-TW.js +1 -1
- package/package.json +17 -17
package/lib/umd/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(_0x299571,_0x43600a){const _0x2a9f52=_0x4bb6,_0x2d5a4b=_0x299571();while(!![]){try{const _0x46638c=-parseInt(_0x2a9f52(0x217))/0x1*(-parseInt(_0x2a9f52(0x2fe))/0x2)+-parseInt(_0x2a9f52(0x428))/0x3*(-parseInt(_0x2a9f52(0x232))/0x4)+parseInt(_0x2a9f52(0x29d))/0x5*(-parseInt(_0x2a9f52(0x42e))/0x6)+-parseInt(_0x2a9f52(0x477))/0x7+parseInt(_0x2a9f52(0x451))/0x8*(-parseInt(_0x2a9f52(0x41f))/0x9)+-parseInt(_0x2a9f52(0x1fd))/0xa*(-parseInt(_0x2a9f52(0x267))/0xb)+parseInt(_0x2a9f52(0x353))/0xc;if(_0x46638c===_0x43600a)break;else _0x2d5a4b['push'](_0x2d5a4b['shift']());}catch(_0x2d054f){_0x2d5a4b['push'](_0x2d5a4b['shift']());}}}(_0x27fa,0xde9db),function(_0x2205c3,_0x53c76e){const _0x17b9fb=_0x4bb6;typeof exports==_0x17b9fb(0x396)&&typeof module<'u'?_0x53c76e(exports,require('react/jsx-runtime'),require('@univerjs-pro/collaboration-client'),require('@univerjs/core'),require('@univerjs/ui'),require('rxjs'),require('@univerjs/design'),require('react'),require('@univerjs/rpc'),require('@univerjs/sheets'),require('@univerjs/engine-render'),require('@univerjs/network'),require('@univerjs/docs-ui'),require('@univerjs/drawing'),require('@univerjs-pro/collaboration'),require('@univerjs/docs'),require('@univerjs/engine-formula'),require('rxjs/operators'),require('@univerjs/sheets-ui')):typeof define=='function'&&define['amd']?define([_0x17b9fb(0x37e),'react/jsx-runtime',_0x17b9fb(0x3e8),_0x17b9fb(0x43e),_0x17b9fb(0x225),'rxjs',_0x17b9fb(0x2bc),_0x17b9fb(0x3d2),'@univerjs/rpc','@univerjs/sheets',_0x17b9fb(0x3c3),_0x17b9fb(0x298),_0x17b9fb(0x449),_0x17b9fb(0x242),'@univerjs-pro/collaboration',_0x17b9fb(0x324),'@univerjs/engine-formula','rxjs/operators',_0x17b9fb(0x466)],_0x53c76e):(_0x2205c3=typeof globalThis<'u'?globalThis:_0x2205c3||self,_0x53c76e(_0x2205c3[_0x17b9fb(0x376)]={},_0x2205c3['React'],_0x2205c3[_0x17b9fb(0x2da)],_0x2205c3['UniverCore'],_0x2205c3[_0x17b9fb(0x38d)],_0x2205c3[_0x17b9fb(0x228)],_0x2205c3[_0x17b9fb(0x303)],_0x2205c3[_0x17b9fb(0x2cc)],_0x2205c3[_0x17b9fb(0x1ee)],_0x2205c3[_0x17b9fb(0x42a)],_0x2205c3['UniverEngineRender'],_0x2205c3[_0x17b9fb(0x261)],_0x2205c3[_0x17b9fb(0x1e1)],_0x2205c3[_0x17b9fb(0x284)],_0x2205c3[_0x17b9fb(0x40c)],_0x2205c3[_0x17b9fb(0x384)],_0x2205c3[_0x17b9fb(0x302)],_0x2205c3[_0x17b9fb(0x228)]['operators'],_0x2205c3[_0x17b9fb(0x214)]));}(this,function(_0x11d7a5,_0x1af605,_0x1c12f2,_0x4921b5,_0x56a892,_0x66da6e,_0x20d8fb,_0x1796bf,_0x68b8d4,_0x3e73c9,_0x22d409,_0x1d4e08,_0x3fda77,_0x283592,_0x1a4d3b,_0x4bc80d,_0xeb64c6,_0x4449c2,_0x53da58){'use strict';const _0x449813=_0x4bb6;var _0x39a2cf=Object[_0x449813(0x388)],_0x347a53=(_0x27b99f,_0xce635c,_0x34a097)=>_0xce635c in _0x27b99f?_0x39a2cf(_0x27b99f,_0xce635c,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x34a097}):_0x27b99f[_0xce635c]=_0x34a097,_0x8d7f57=(_0x1491e2,_0x11fd9a,_0x37e840)=>_0x347a53(_0x1491e2,typeof _0x11fd9a!=_0x449813(0x1d9)?_0x11fd9a+'':_0x11fd9a,_0x37e840),_0x5b7203=function(){const _0x57251e=_0x449813;return _0x5b7203=Object[_0x57251e(0x37d)]||function(_0x21a9e1){const _0x330122=_0x57251e;for(var _0x116c8c,_0x12d0c4=0x1,_0x3c8438=arguments[_0x330122(0x418)];_0x12d0c4<_0x3c8438;_0x12d0c4++){_0x116c8c=arguments[_0x12d0c4];for(var _0x21c681 in _0x116c8c)Object['prototype'][_0x330122(0x218)][_0x330122(0x38b)](_0x116c8c,_0x21c681)&&(_0x21a9e1[_0x21c681]=_0x116c8c[_0x21c681]);}return _0x21a9e1;},_0x5b7203[_0x57251e(0x22a)](this,arguments);},_0x398d2b=function(_0xea4d72,_0x15b001){const _0x2ba11a=_0x449813;var _0x42b988={};for(var _0x452580 in _0xea4d72)Object[_0x2ba11a(0x361)][_0x2ba11a(0x218)]['call'](_0xea4d72,_0x452580)&&_0x15b001['indexOf'](_0x452580)<0x0&&(_0x42b988[_0x452580]=_0xea4d72[_0x452580]);if(_0xea4d72!=null&&typeof Object['getOwnPropertySymbols']==_0x2ba11a(0x382)){for(var _0x4e47a6=0x0,_0x452580=Object[_0x2ba11a(0x24b)](_0xea4d72);_0x4e47a6<_0x452580['length'];_0x4e47a6++)_0x15b001[_0x2ba11a(0x385)](_0x452580[_0x4e47a6])<0x0&&Object[_0x2ba11a(0x361)]['propertyIsEnumerable']['call'](_0xea4d72,_0x452580[_0x4e47a6])&&(_0x42b988[_0x452580[_0x4e47a6]]=_0xea4d72[_0x452580[_0x4e47a6]]);}return _0x42b988;},_0x1c2af3=_0x1796bf['forwardRef'](function(_0x54ebf4,_0x279999){const _0x4f5bbe=_0x449813;var _0xe5b632=_0x54ebf4[_0x4f5bbe(0x3f2)],_0x26e746=_0x54ebf4['id'],_0x136aba=_0x54ebf4[_0x4f5bbe(0x1e7)],_0x4230e7=_0x54ebf4['extend'],_0x6c204e=_0x398d2b(_0x54ebf4,[_0x4f5bbe(0x3f2),'id',_0x4f5bbe(0x1e7),'extend']),_0x21f519=_0x4f5bbe(0x321)[_0x4f5bbe(0x455)](_0x26e746,'\x20')[_0x4f5bbe(0x455)](_0x136aba||'')[_0x4f5bbe(0x400)](),_0x3968f1=_0x1796bf[_0x4f5bbe(0x458)]('_'[_0x4f5bbe(0x455)](_0x45b6df()));return _0x48825c(_0xe5b632,''['concat'](_0x26e746),{'defIds':_0xe5b632[_0x4f5bbe(0x394)],'idSuffix':_0x3968f1[_0x4f5bbe(0x2d7)]},_0x5b7203({'ref':_0x279999,'className':_0x21f519},_0x6c204e),_0x4230e7);});function _0x48825c(_0x3f6861,_0x683885,_0x2ef3e8,_0x413a45,_0x541ab7){const _0x1e1cd6=_0x449813;return _0x1796bf[_0x1e1cd6(0x289)](_0x3f6861[_0x1e1cd6(0x213)],_0x5b7203(_0x5b7203({'key':_0x683885},_0x2704bc(_0x3f6861,_0x2ef3e8,_0x541ab7)),_0x413a45),(_0x38d47a(_0x3f6861,_0x2ef3e8)[_0x1e1cd6(0x3fe)]||[])[_0x1e1cd6(0x33d)](function(_0x56c619,_0x5c505f){const _0x1a15f3=_0x1e1cd6;return _0x48825c(_0x56c619,''[_0x1a15f3(0x455)](_0x683885,'-')[_0x1a15f3(0x455)](_0x3f6861['tag'],'-')[_0x1a15f3(0x455)](_0x5c505f),_0x2ef3e8,void 0x0,_0x541ab7);}));}function _0x2704bc(_0x447511,_0x47f495,_0xfd98bd){const _0x2e27b5=_0x449813;var _0x43c6b6=_0x5b7203({},_0x447511[_0x2e27b5(0x200)]);_0xfd98bd!=null&&_0xfd98bd[_0x2e27b5(0x309)]&&_0x43c6b6[_0x2e27b5(0x373)]===_0x2e27b5(0x309)&&(_0x43c6b6[_0x2e27b5(0x373)]=_0xfd98bd[_0x2e27b5(0x309)]),_0x447511[_0x2e27b5(0x213)]===_0x2e27b5(0x22c)&&_0x43c6b6['id']&&(_0x43c6b6['id']=_0x43c6b6['id']+_0x47f495[_0x2e27b5(0x37c)]),Object['entries'](_0x43c6b6)['forEach'](function(_0x33b58f){const _0x485dfa=_0x2e27b5;var _0x44329b=_0x33b58f[0x0],_0x20a6ab=_0x33b58f[0x1];_0x44329b===_0x485dfa(0x22c)&&typeof _0x20a6ab=='string'&&(_0x43c6b6[_0x44329b]=_0x20a6ab[_0x485dfa(0x305)](/url\(#(.*)\)/,_0x485dfa(0x460)[_0x485dfa(0x455)](_0x47f495[_0x485dfa(0x37c)],')')));});var _0x907fdd=_0x47f495[_0x2e27b5(0x394)];return!_0x907fdd||_0x907fdd['length']===0x0||(_0x447511[_0x2e27b5(0x213)]===_0x2e27b5(0x3cb)&&_0x43c6b6[_0x2e27b5(0x36e)]&&(_0x43c6b6['xlink:href']=_0x43c6b6[_0x2e27b5(0x36e)]+_0x47f495['idSuffix']),Object[_0x2e27b5(0x2d0)](_0x43c6b6)['forEach'](function(_0x350af7){const _0x46acaf=_0x2e27b5;var _0x20ff54=_0x350af7[0x0],_0x3efa1f=_0x350af7[0x1];typeof _0x3efa1f==_0x46acaf(0x415)&&(_0x43c6b6[_0x20ff54]=_0x3efa1f[_0x46acaf(0x305)](/url\(#(.*)\)/,_0x46acaf(0x460)[_0x46acaf(0x455)](_0x47f495[_0x46acaf(0x37c)],')')));})),_0x43c6b6;}function _0x38d47a(_0x5e7d33,_0x2e5d9f){const _0x1184a9=_0x449813;var _0x2715af,_0x5297c9=_0x2e5d9f[_0x1184a9(0x394)];return!_0x5297c9||_0x5297c9[_0x1184a9(0x418)]===0x0?_0x5e7d33:_0x5e7d33[_0x1184a9(0x213)]===_0x1184a9(0x411)&&(!((_0x2715af=_0x5e7d33[_0x1184a9(0x3fe)])===null||_0x2715af===void 0x0)&&_0x2715af['length'])?_0x5b7203(_0x5b7203({},_0x5e7d33),{'children':_0x5e7d33['children'][_0x1184a9(0x33d)](function(_0x43a3bb){const _0x2b62b0=_0x1184a9;return typeof _0x43a3bb[_0x2b62b0(0x200)]['id']==_0x2b62b0(0x415)&&_0x5297c9&&_0x5297c9['includes'](_0x43a3bb[_0x2b62b0(0x200)]['id'])?_0x5b7203(_0x5b7203({},_0x43a3bb),{'attrs':_0x5b7203(_0x5b7203({},_0x43a3bb['attrs']),{'id':_0x43a3bb[_0x2b62b0(0x200)]['id']+_0x2e5d9f[_0x2b62b0(0x37c)]})}):_0x43a3bb;})}):_0x5e7d33;}function _0x45b6df(){const _0x369d53=_0x449813;return Math[_0x369d53(0x37b)]()['toString'](0x24)[_0x369d53(0x222)](0x2,0x8);}_0x1c2af3[_0x449813(0x20a)]='UniverIcon';var _0x1219f7={'tag':_0x449813(0x282),'attrs':{'xmlns':_0x449813(0x399),'fill':_0x449813(0x3a9),'viewBox':_0x449813(0x3ec),'width':_0x449813(0x3b3),'height':_0x449813(0x3b3)},'children':[{'tag':'g','attrs':{'clipPath':_0x449813(0x467)},'children':[{'tag':_0x449813(0x354),'attrs':{'stroke':_0x449813(0x230),'d':_0x449813(0x36c),'strokeLinecap':_0x449813(0x31c),'strokeLinejoin':_0x449813(0x31c),'strokeWidth':1.2}}]},{'tag':_0x449813(0x411),'attrs':{},'children':[{'tag':_0x449813(0x279),'attrs':{'id':_0x449813(0x3e9)},'children':[{'tag':'path','attrs':{'fill':_0x449813(0x3d9),'d':'M0\x200H16V16H0z'}}]}]}],'defIds':[_0x449813(0x3e9)]},_0x5bc710=_0x1796bf[_0x449813(0x2e8)](function(_0x40f66b,_0x1032ac){const _0x2481fb=_0x449813;return _0x1796bf[_0x2481fb(0x289)](_0x1c2af3,Object[_0x2481fb(0x37d)]({},_0x40f66b,{'id':_0x2481fb(0x3cf),'ref':_0x1032ac,'icon':_0x1219f7}));});_0x5bc710[_0x449813(0x20a)]=_0x449813(0x29e);var _0x274439={'tag':_0x449813(0x282),'attrs':{'xmlns':_0x449813(0x399),'fill':_0x449813(0x3a9),'viewBox':_0x449813(0x325),'width':'1em','height':_0x449813(0x3b3)},'children':[{'tag':'g','attrs':{'clipPath':'url(#on-line-icon_clip0_910_349)'},'children':[{'tag':'path','attrs':{'stroke':_0x449813(0x230),'d':_0x449813(0x37f),'strokeLinecap':_0x449813(0x31c),'strokeLinejoin':_0x449813(0x31c),'strokeWidth':1.2}}]},{'tag':_0x449813(0x411),'attrs':{},'children':[{'tag':'clipPath','attrs':{'id':'on-line-icon_clip0_910_349'},'children':[{'tag':'path','attrs':{'fill':_0x449813(0x3d9),'d':_0x449813(0x43d),'transform':_0x449813(0x3a8)}}]}]}],'defIds':[_0x449813(0x457)]},_0x1630c9=_0x1796bf['forwardRef'](function(_0x1a789e,_0x8ac4c5){const _0x4be3af=_0x449813;return _0x1796bf[_0x4be3af(0x289)](_0x1c2af3,Object[_0x4be3af(0x37d)]({},_0x1a789e,{'id':_0x4be3af(0x34d),'ref':_0x8ac4c5,'icon':_0x274439}));});_0x1630c9[_0x449813(0x20a)]='OnLineIcon';function _0x3ee1b1(_0x3bcf4b){const _0x1f97bf=_0x449813;switch(_0x3bcf4b){case _0x1c12f2[_0x1f97bf(0x375)][_0x1f97bf(0x381)]:return _0x1f97bf(0x1e6);case _0x1c12f2[_0x1f97bf(0x375)][_0x1f97bf(0x224)]:return _0x1f97bf(0x39b);case _0x1c12f2[_0x1f97bf(0x375)]['FETCH_MISS']:return _0x1f97bf(0x28a);case _0x1c12f2['CollaborationStatus']['NOT_COLLAB']:return _0x1f97bf(0x436);case _0x1c12f2[_0x1f97bf(0x375)][_0x1f97bf(0x40b)]:case _0x1c12f2['CollaborationStatus'][_0x1f97bf(0x3ad)]:return _0x1f97bf(0x2c3);case _0x1c12f2[_0x1f97bf(0x375)][_0x1f97bf(0x2ef)]:case _0x1c12f2[_0x1f97bf(0x375)][_0x1f97bf(0x270)]:return'collabStatus.synced';}}function _0x568b29(_0x12ba1e){const _0x312b5b=_0x449813,{status$:_0x57284d}=_0x12ba1e,_0x3ce4a2=_0x56a892[_0x312b5b(0x34b)](_0x57284d,_0x1c12f2[_0x312b5b(0x375)][_0x312b5b(0x29a)]),_0x2ae499=_0x56a892[_0x312b5b(0x3ed)](_0x4921b5['LocaleService']),_0x22dc87=_0x56a892[_0x312b5b(0x3ed)](_0x1c12f2['CollaborationSessionService']),_0x11a37c=_0x3ce4a2!==_0x1c12f2[_0x312b5b(0x375)][_0x312b5b(0x381)],_0x5abcfe=_0x2ae499['t'](_0x3ee1b1(_0x3ce4a2)),_0x33ec6b=_0x11a37c?_0x1af605[_0x312b5b(0x2d9)](_0x1630c9,{}):_0x1af605[_0x312b5b(0x2d9)](_0x5bc710,{}),_0x50e1f2=_0x1796bf[_0x312b5b(0x223)](()=>{const _0x4b4070=_0x312b5b;_0x11a37c||_0x22dc87[_0x4b4070(0x33c)]();},[_0x11a37c,_0x22dc87]);function _0x22f086(){const _0x271ca5=_0x312b5b;return _0x1af605[_0x271ca5(0x42c)](_0x271ca5(0x3ea),{'className':_0x271ca5(0x1e9),'onClick':_0x50e1f2,'children':[_0x1af605['jsx'](_0x271ca5(0x3ea),{'className':_0x20d8fb[_0x271ca5(0x315)](_0x271ca5(0x448),{'univer-text-green-500':_0x11a37c,'univer-text-red-500':!_0x11a37c}),'children':_0x33ec6b}),_0x1af605[_0x271ca5(0x2d9)](_0x271ca5(0x3ea),{'className':_0x271ca5(0x367),'children':_0x5abcfe})]});}return _0x11a37c?_0x22f086():_0x1af605[_0x312b5b(0x2d9)](_0x20d8fb['Tooltip'],{'title':_0x2ae499['t'](_0x312b5b(0x478)),'children':_0x22f086()});}var _0x4cada2=Object[_0x449813(0x29c)],_0xfb9c22=(_0x1edb4f,_0x1ae95d,_0x4303c3,_0x52e446)=>{const _0x58f7bf=_0x449813;for(var _0x5a944d=_0x52e446>0x1?void 0x0:_0x52e446?_0x4cada2(_0x1ae95d,_0x4303c3):_0x1ae95d,_0x4ddd97=_0x1edb4f[_0x58f7bf(0x418)]-0x1,_0xa5e197;_0x4ddd97>=0x0;_0x4ddd97--)(_0xa5e197=_0x1edb4f[_0x4ddd97])&&(_0x5a944d=_0xa5e197(_0x5a944d)||_0x5a944d);return _0x5a944d;},_0x4bc0ca=(_0x18922c,_0x1df124)=>(_0x35af67,_0x31d2a2)=>_0x1df124(_0x35af67,_0x31d2a2,_0x18922c);_0x11d7a5[_0x449813(0x2cb)]=class extends _0x4921b5[_0x449813(0x292)]{constructor(_0x2d3dc1,_0x53d74c,_0x508450,_0x4f167d){const _0x14e18d=_0x449813;super(),_0x8d7f57(this,'_status$',new _0x66da6e[(_0x14e18d(0x2ae))](_0x1c12f2[_0x14e18d(0x375)][_0x14e18d(0x29a)])),(this[_0x14e18d(0x3a6)]=_0x2d3dc1,this[_0x14e18d(0x27f)]=_0x53d74c,this[_0x14e18d(0x44b)]=_0x508450,this['_uiPartsService']=_0x4f167d,this['_initStatusComponent'](),this['_initStatusListener']());}['_initStatusListener'](){const _0x128165=_0x449813;this['disposeWithMe'](this['_univerInstanceService'][_0x128165(0x251)][_0x128165(0x35e)](_0x66da6e['switchMap'](()=>{const _0x2c6c66=_0x128165,_0x2a5654=this[_0x2c6c66(0x3a6)][_0x2c6c66(0x27c)]();return _0x2a5654?this[_0x2c6c66(0x44b)][_0x2c6c66(0x265)](_0x2a5654[_0x2c6c66(0x2c6)]()):_0x66da6e['of'](null);}),_0x66da6e[_0x128165(0x360)](_0x333c14=>_0x333c14?_0x333c14[_0x128165(0x280)]:_0x66da6e['of'](_0x1c12f2[_0x128165(0x375)][_0x128165(0x29a)])))['subscribe'](_0x357788=>{const _0x26c5bd=_0x128165;this[_0x26c5bd(0x215)][_0x26c5bd(0x2fd)](_0x357788);}));}[_0x449813(0x311)](){const _0x33d791=_0x449813;this[_0x33d791(0x25c)](this[_0x33d791(0x2f4)]['registerComponent'](_0x56a892[_0x33d791(0x1dc)]['HEADER_MENU'],()=>_0x56a892[_0x33d791(0x431)](_0x18a61d({'status$':this[_0x33d791(0x215)][_0x33d791(0x37a)]()}),this['_injector'])));}},_0x11d7a5[_0x449813(0x2cb)]=_0xfb9c22([_0x4bc0ca(0x0,_0x4921b5[_0x449813(0x42b)]),_0x4bc0ca(0x1,_0x4921b5[_0x449813(0x41c)](_0x4921b5[_0x449813(0x24c)])),_0x4bc0ca(0x2,_0x4921b5[_0x449813(0x41c)](_0x1c12f2[_0x449813(0x21a)])),_0x4bc0ca(0x3,_0x56a892[_0x449813(0x2fc)])],_0x11d7a5['DesktopCollaborationStatusDisplayController']);function _0x18a61d(_0x18585c){const {status$:_0x7201b0}=_0x18585c;return function(){const _0x5c6772=_0x4bb6;return _0x1af605[_0x5c6772(0x2d9)](_0x568b29,{'status$':_0x7201b0});};}const _0x475a16=_0x4921b5[_0x449813(0x1e2)](_0x449813(0x2aa));var _0x38dd90=Object[_0x449813(0x29c)],_0x1c1016=(_0x261168,_0x7c8ff6,_0x1db5f8,_0x32ebcf)=>{const _0x223411=_0x449813;for(var _0x3c28b6=_0x32ebcf>0x1?void 0x0:_0x32ebcf?_0x38dd90(_0x7c8ff6,_0x1db5f8):_0x7c8ff6,_0x469481=_0x261168[_0x223411(0x418)]-0x1,_0x4f51ca;_0x469481>=0x0;_0x469481--)(_0x4f51ca=_0x261168[_0x469481])&&(_0x3c28b6=_0x4f51ca(_0x3c28b6)||_0x3c28b6);return _0x3c28b6;},_0x8ee33e=(_0xa70e4d,_0x12bce5)=>(_0x2f98f5,_0xcfc32e)=>_0x12bce5(_0x2f98f5,_0xcfc32e,_0xa70e4d);_0x11d7a5['CollaborationDataLoaderController']=class extends _0x4921b5[_0x449813(0x442)]{constructor(_0x4be8fd,_0x21ff03,_0x2bd289,_0x55d67b,_0x36ca73){const _0x38bb18=_0x449813;super(),this[_0x38bb18(0x3f9)]=_0x4be8fd,this[_0x38bb18(0x3f7)]=_0x21ff03,this['_commandService']=_0x2bd289,this[_0x38bb18(0x43f)]=_0x55d67b,_0x36ca73?_0x36ca73==null||_0x36ca73[_0x38bb18(0x30d)]()[_0x38bb18(0x3ef)](()=>this['_init']()):(this['_logService'][_0x38bb18(0x340)](_0x38bb18(0x357),_0x38bb18(0x3ce)),this[_0x38bb18(0x2c7)]());}async[_0x449813(0x2c7)](){const _0x436e00=_0x449813,_0x319fc1=this[_0x436e00(0x3f9)][_0x436e00(0x372)]('unit'),_0x356452=this[_0x436e00(0x3f9)]['getParam'](_0x436e00(0x426)),_0x3a985d=this[_0x436e00(0x3f9)][_0x436e00(0x372)](_0x436e00(0x233));if(!_0x319fc1||!_0x356452){this[_0x436e00(0x3f7)][_0x436e00(0x340)](_0x436e00(0x357),_0x436e00(0x45f));return;}const _0x142b67=await this[_0x436e00(0x43f)][_0x436e00(0x355)](_0x319fc1,Number(_0x356452),_0x3a985d);_0x142b67&&_0x142b67 instanceof _0x4921b5[_0x436e00(0x28f)]&&this['_setupSubUnitSync'](_0x142b67);}async[_0x449813(0x2ea)](_0x1e92bb){const _0x5eeb5b=_0x449813;await this[_0x5eeb5b(0x3ca)](_0x1e92bb),_0x1e92bb[_0x5eeb5b(0x227)][_0x5eeb5b(0x35e)](_0x66da6e[_0x5eeb5b(0x34f)](this[_0x5eeb5b(0x41d)]))[_0x5eeb5b(0x1fe)](_0x1caa7b=>{_0x1caa7b&&this['_updateURLWithCurrentState'](_0x1caa7b);}),this[_0x5eeb5b(0x3f9)]['urlChange$'][_0x5eeb5b(0x35e)](_0x66da6e['takeUntil'](this['dispose$']))[_0x5eeb5b(0x1fe)](()=>this[_0x5eeb5b(0x3ca)](_0x1e92bb));}[_0x449813(0x24d)](_0x4a69f2,_0x2cfb92=!0x1){const _0x575573=_0x449813,_0x4958cc=this[_0x575573(0x3f9)]['getParam'](_0x575573(0x233));_0x4a69f2[_0x575573(0x45a)]()!==_0x4958cc&&this[_0x575573(0x3f9)][_0x575573(0x2c4)](_0x575573(0x233),_0x4a69f2['getSheetId'](),_0x2cfb92);}async[_0x449813(0x3ca)](_0x523ff5){const _0x33b9ce=_0x449813;var _0x34510e;const _0x3ea62c=this[_0x33b9ce(0x3f9)][_0x33b9ce(0x372)](_0x33b9ce(0x233));if(!_0x3ea62c||!_0x523ff5['getSheetBySheetId'](_0x3ea62c)){const _0x53373b=_0x523ff5[_0x33b9ce(0x29b)]()[0x0],_0x118bf1=_0x523ff5[_0x33b9ce(0x2bd)](_0x53373b);if(!_0x118bf1)return;this['_updateURLWithCurrentState'](_0x118bf1,!0x0),await this['_commandService']['executeCommand'](_0x3e73c9[_0x33b9ce(0x1e0)]['id'],{'unitId':_0x523ff5[_0x33b9ce(0x2c6)](),'subUnitId':_0x53373b});return;}((_0x34510e=_0x523ff5[_0x33b9ce(0x472)]())==null?void 0x0:_0x34510e[_0x33b9ce(0x45a)]())!==_0x3ea62c&&await this[_0x33b9ce(0x2a0)][_0x33b9ce(0x339)](_0x3e73c9['SetWorksheetActivateCommand']['id'],{'unitId':_0x523ff5[_0x33b9ce(0x2c6)](),'subUnitId':_0x3ea62c});}},_0x11d7a5['CollaborationDataLoaderController']=_0x1c1016([_0x8ee33e(0x0,_0x475a16),_0x8ee33e(0x1,_0x4921b5[_0x449813(0x2ee)]),_0x8ee33e(0x2,_0x4921b5['ICommandService']),_0x8ee33e(0x3,_0x4921b5['Inject'](_0x1c12f2[_0x449813(0x32c)])),_0x8ee33e(0x4,_0x4921b5[_0x449813(0x334)](_0x68b8d4[_0x449813(0x3d3)]))],_0x11d7a5[_0x449813(0x408)]);var _0x2c5a39=Object['getOwnPropertyDescriptor'],_0x1c1a77=(_0x6f9b11,_0x57723d,_0x4683b8,_0x430ef1)=>{const _0x20a1d7=_0x449813;for(var _0x1fc9fb=_0x430ef1>0x1?void 0x0:_0x430ef1?_0x2c5a39(_0x57723d,_0x4683b8):_0x57723d,_0x44020a=_0x6f9b11[_0x20a1d7(0x418)]-0x1,_0x961f5d;_0x44020a>=0x0;_0x44020a--)(_0x961f5d=_0x6f9b11[_0x44020a])&&(_0x1fc9fb=_0x961f5d(_0x1fc9fb)||_0x1fc9fb);return _0x1fc9fb;},_0x10db21=(_0x268ae3,_0x4f0a4f)=>(_0x36d0a1,_0x17a016)=>_0x4f0a4f(_0x36d0a1,_0x17a016,_0x268ae3);let _0x310481=class extends _0x4921b5[_0x449813(0x442)]{constructor(_0x1ceac7,_0x3164c8){const _0x1e09cf=_0x449813;super(),this[_0x1e09cf(0x3a7)]=_0x1ceac7,this['_imageIoService']=_0x3164c8,this['_init']();}[_0x449813(0x2c7)](){const _0x940175=_0x449813,_0x5396e4=this;this[_0x940175(0x25c)](this[_0x940175(0x3a7)][_0x940175(0x3f6)]({'onBeforePasteImage':async _0x67ee71=>{const _0x237191=_0x940175,_0xe29bbd=await _0x5396e4[_0x237191(0x2d2)]['saveImage'](_0x67ee71);return _0xe29bbd?{'source':_0xe29bbd[_0x237191(0x405)],'imageSourceType':_0xe29bbd[_0x237191(0x247)]}:null;}}));}};_0x310481=_0x1c1a77([_0x10db21(0x0,_0x3fda77[_0x449813(0x1ff)]),_0x10db21(0x1,_0x283592[_0x449813(0x2a4)])],_0x310481);const _0x50a733=[_0x449813(0x2b8),_0x449813(0x26b),_0x449813(0x3c9),_0x449813(0x2f7),_0x449813(0x469),_0x449813(0x31a)];class _0xac4cbd extends _0x4921b5[_0x449813(0x292)]{constructor(){super(...arguments),_0x8d7f57(this,'_assignedColors',new Map()),_0x8d7f57(this,'_colorIndex',0x0);}[_0x449813(0x20f)](_0x15e41f){const _0x5dd173=_0x449813;if(this[_0x5dd173(0x377)][_0x5dd173(0x3fc)](_0x15e41f))return this['_assignedColors'][_0x5dd173(0x2dd)](_0x15e41f);const _0x4bb058=_0x50a733[this['_colorIndex']];return this[_0x5dd173(0x359)]=(this['_colorIndex']+0x1)%_0x50a733['length'],this[_0x5dd173(0x377)][_0x5dd173(0x2a1)](_0x15e41f,_0x4bb058),_0x4bb058;}}function _0x53aab5(_0x26fe39){let _0x25b8ae='';for(const _0x120d72 of _0x26fe39){const {startOffset:_0x2c7e78,endOffset:_0x492cbb,isActive:_0x1ac34c,rangeType:_0x1d40c8,segmentId:_0x2c7135,segmentPage:_0x42e080}=_0x120d72;_0x25b8ae['length']&&(_0x25b8ae+=','),_0x25b8ae+=_0x2c7e78+':'+_0x492cbb+':'+(_0x1ac34c?'1':'0')+':'+_0x1d40c8+':'+_0x2c7135+':'+_0x42e080;}return _0x25b8ae;}function _0x1290dc(_0x472f3d){const _0x4f7843=_0x449813,_0x1bd8ec=_0x472f3d[_0x4f7843(0x40a)](','),_0x311639=[];for(const _0x3e5a2c of _0x1bd8ec){const [_0x41e23e,_0x281cd5,_0x1d3913,_0xfff416,_0x7260f0,_0x1d1239]=_0x3e5a2c[_0x4f7843(0x40a)](':');_0x311639[_0x4f7843(0x2a3)]({'startOffset':Number(_0x41e23e),'endOffset':Number(_0x281cd5),'collapsed':_0x41e23e===_0x281cd5,'isActive':_0x1d3913==='1','rangeType':_0xfff416===_0x4921b5[_0x4f7843(0x285)][_0x4f7843(0x27b)]?_0x4921b5[_0x4f7843(0x285)][_0x4f7843(0x27b)]:_0x4921b5['DOC_RANGE_TYPE']['RECT'],'segmentId':typeof _0x7260f0==_0x4f7843(0x415)?String(_0x7260f0):'','segmentPage':Number(_0x1d1239!=null?_0x1d1239:-0x1)});}return _0x311639[_0x4f7843(0x2de)](_0x4a384f=>_0x4a384f[_0x4f7843(0x3a1)])||(_0x311639[0x0][_0x4f7843(0x3a1)]=!0x0),_0x311639;}class _0x2162e3 extends _0x4921b5['RxDisposable']{constructor(){const _0x20a0dd=_0x449813;super(...arguments),_0x8d7f57(this,'_collabCursorState$',new _0x66da6e[(_0x20a0dd(0x2ae))](null)),_0x8d7f57(this,'collabCursorState$',this[_0x20a0dd(0x440)]['asObservable']());}[_0x449813(0x2d3)](_0xc4848f){const _0x40b507=_0x449813,{unitID:_0x4a75da,memberID:_0x5572a4,textRanges:_0xced0b3}=_0xc4848f,_0xf1133e=_0x53aab5(_0xced0b3);if(_0xf1133e==='')return;const _0x2d7e31={'unitID':_0x4a75da,'memberID':_0x5572a4,'selection':_0xf1133e};this[_0x40b507(0x440)][_0x40b507(0x2fd)](_0x2d7e31);}}var _0x42f979=Object[_0x449813(0x29c)],_0x1098b2=(_0x2ed694,_0x1a7275,_0x46be4a,_0x5ad13c)=>{const _0x559053=_0x449813;for(var _0x44fbb6=_0x5ad13c>0x1?void 0x0:_0x5ad13c?_0x42f979(_0x1a7275,_0x46be4a):_0x1a7275,_0x329d39=_0x2ed694[_0x559053(0x418)]-0x1,_0x181d25;_0x329d39>=0x0;_0x329d39--)(_0x181d25=_0x2ed694[_0x329d39])&&(_0x44fbb6=_0x181d25(_0x44fbb6)||_0x44fbb6);return _0x44fbb6;},_0x4bcdfe=(_0x5d7e47,_0x4b92ca)=>(_0x122e29,_0x3c4a52)=>_0x4b92ca(_0x122e29,_0x3c4a52,_0x5d7e47);const _0x3ce0a5=0x12c,_0xca366=0x64;let _0x38bb7b=class extends _0x4921b5[_0x449813(0x442)]{constructor(_0x1045e5,_0x2ec792,_0x2862a7,_0x34fbd3,_0x7fdba2,_0x3abf2b,_0x202d42,_0x5a5f33,_0x3ba9cc){const _0x3e3e83=_0x449813;super(),_0x8d7f57(this,_0x3e3e83(0x253),!0x1),_0x8d7f57(this,'_init',!0x1),_0x8d7f57(this,_0x3e3e83(0x343),new _0x66da6e[(_0x3e3e83(0x2ae))](new Map())),_0x8d7f57(this,_0x3e3e83(0x28d),this['_cursorInfo$']['asObservable']()),_0x8d7f57(this,'_roomMembers$',new _0x66da6e[(_0x3e3e83(0x2ae))]([])),_0x8d7f57(this,_0x3e3e83(0x370),this[_0x3e3e83(0x406)][_0x3e3e83(0x35e)](_0x66da6e[_0x3e3e83(0x44a)](_0x3ce0a5))),_0x8d7f57(this,_0x3e3e83(0x2f6),_0x4921b5[_0x3e3e83(0x3ac)](_0x514d6f=>{const _0x242e96=_0x3e3e83,_0x5b75e2={'eventID':_0x1a4d3b['CollaborationEvent'][_0x242e96(0x46d)],'data':{'unitID':this[_0x242e96(0x2b3)],'memberID':this[_0x242e96(0x312)][_0x242e96(0x1ec)](),'selection':_0x53aab5(_0x514d6f)}};this['_session'][_0x242e96(0x3d4)](_0x5b75e2,this[_0x242e96(0x2b3)]);},_0xca366)),(this[_0x3e3e83(0x2b3)]=_0x1045e5,this['_session']=_0x2ec792,this[_0x3e3e83(0x27f)]=_0x2862a7,this['_colorAssignService']=_0x34fbd3,this['_memberService']=_0x7fdba2,this[_0x3e3e83(0x335)]=_0x3abf2b,this[_0x3e3e83(0x216)]=_0x202d42,this[_0x3e3e83(0x3a6)]=_0x5a5f33,this[_0x3e3e83(0x2a0)]=_0x3ba9cc);}get['cursorInfo'](){const _0x1d4307=_0x449813;return this[_0x1d4307(0x343)]['getValue']();}get[_0x449813(0x21b)](){const _0x2989eb=_0x449813;return this[_0x2989eb(0x406)][_0x2989eb(0x2b4)]();}[_0x449813(0x2ec)](){const _0x3e53c3=_0x449813;super[_0x3e53c3(0x2ec)](),this['_cursorInfo$'][_0x3e53c3(0x2fd)](new Map()),this[_0x3e53c3(0x343)][_0x3e53c3(0x473)](),this[_0x3e53c3(0x406)][_0x3e53c3(0x2fd)]([]),this[_0x3e53c3(0x406)][_0x3e53c3(0x473)]();}[_0x449813(0x237)](){const _0xa784bf=_0x449813;this['_init']||(this[_0xa784bf(0x2c7)]=!0x0,this[_0xa784bf(0x312)][_0xa784bf(0x389)][_0xa784bf(0x35e)](_0x66da6e[_0xa784bf(0x34f)](this[_0xa784bf(0x41d)]))[_0xa784bf(0x1fe)](_0x23ad70=>{const _0x2e1bd9=_0xa784bf;_0x23ad70===_0x1c12f2['SessionStatus']['ONLINE']?this[_0x2e1bd9(0x36b)]():this[_0x2e1bd9(0x1fa)]();}),this[_0xa784bf(0x312)]['event$'][_0xa784bf(0x35e)](_0x66da6e[_0xa784bf(0x34f)](this['dispose$']))[_0xa784bf(0x1fe)](_0x70b30b=>{const _0x5942e2=_0xa784bf,_0x4b011d=_0x70b30b[_0x5942e2(0x3dc)];_0x4b011d===_0x1a4d3b[_0x5942e2(0x3b7)][_0x5942e2(0x46d)]&&this[_0x5942e2(0x277)](_0x70b30b),_0x4b011d===_0x1a4d3b[_0x5942e2(0x3b7)][_0x5942e2(0x32d)]&&this[_0x5942e2(0x257)](_0x70b30b);}),this[_0xa784bf(0x25c)](this['_commandService']['onCommandExecuted'](_0x453d39=>{const _0x38b8dd=_0xa784bf,_0x407d6a=_0x453d39[_0x38b8dd(0x268)];_0x407d6a!=null&&this[_0x38b8dd(0x253)]&&_0x453d39['id']===_0x4bc80d[_0x38b8dd(0x2d4)]['id']&&_0x407d6a[_0x38b8dd(0x2a2)]===this[_0x38b8dd(0x2b3)]&&_0x407d6a[_0x38b8dd(0x274)]===!0x1&&_0x407d6a['ranges']['length']>0x0&&this[_0x38b8dd(0x2f6)](_0x407d6a[_0x38b8dd(0x3b1)]);})),this[_0xa784bf(0x335)][_0xa784bf(0x276)][_0xa784bf(0x35e)](_0x66da6e[_0xa784bf(0x34f)](this[_0xa784bf(0x41d)]))[_0xa784bf(0x1fe)](_0x81590f=>{const _0x4d1070=_0xa784bf;if((_0x81590f==null?void 0x0:_0x81590f[_0x4d1070(0x2b3)])!==this[_0x4d1070(0x2b3)])return;const _0x54ca4b={'eventID':_0x1a4d3b[_0x4d1070(0x3b7)]['UPDATE_CURSOR'],'data':_0x81590f};this[_0x4d1070(0x277)](_0x54ca4b);}),this[_0xa784bf(0x25c)](this[_0xa784bf(0x2a0)][_0xa784bf(0x46c)](_0x11c75c=>{const _0x65fc8c=_0xa784bf;if(_0x11c75c['params']==null)return;const _0x11a8a0=_0x11c75c['params'];if(_0x11c75c['id']!==_0x4bc80d[_0x65fc8c(0x338)]['id']||_0x11a8a0[_0x65fc8c(0x2a2)]!==this[_0x65fc8c(0x2b3)])return;const _0x4e48cd={'id':_0x65fc8c(0x439),'params':_0x11a8a0},_0x2f5bc8=this[_0x65fc8c(0x220)];for(const [_0x2a7712,_0x2c8d4f]of _0x2f5bc8){const _0x14b015={'id':_0x65fc8c(0x439),'params':{'unitId':this[_0x65fc8c(0x2b3)],'actions':null,'textRanges':_0x2c8d4f[_0x65fc8c(0x3b1)]}},_0x38fcd2=this['_transformService'][_0x65fc8c(0x454)](_0x4e48cd,_0x14b015,!0x1);if(_0x1a4d3b[_0x65fc8c(0x41a)](_0x38fcd2))throw _0x38fcd2['error'];_0x2f5bc8[_0x65fc8c(0x2a1)](_0x2a7712,{..._0x2c8d4f,'ranges':_0x38fcd2[_0x65fc8c(0x24f)][_0x65fc8c(0x268)]['textRanges']});}queueMicrotask(()=>{const _0x2eb3d7=_0x65fc8c;this['_cursorInfo$'][_0x2eb3d7(0x2fd)](_0x2f5bc8);});})));}[_0x449813(0x277)](_0x2160ba){const _0x3a957d=_0x449813;var _0x289a7c,_0x1cd2bc;const {memberID:_0x5f4f8b,selection:_0x3a49e8}=_0x2160ba[_0x3a957d(0x1e8)],_0x38a628=_0x1290dc(_0x3a49e8),_0x4d09d8=(_0x1cd2bc=(_0x289a7c=this['_memberService'][_0x3a957d(0x20d)](this[_0x3a957d(0x2b3)],_0x5f4f8b))==null?void 0x0:_0x289a7c[_0x3a957d(0x31e)])!=null?_0x1cd2bc:_0x3a957d(0x40d),_0x27944f={'color':this['_colorAssignService'][_0x3a957d(0x20f)](_0x5f4f8b),'name':_0x4d09d8,'ranges':_0x38a628},_0x2f18e3=this[_0x3a957d(0x220)];_0x2f18e3[_0x3a957d(0x2a1)](_0x5f4f8b,_0x27944f),this[_0x3a957d(0x343)][_0x3a957d(0x2fd)](_0x2f18e3);}['_onCursorDelete'](_0x41185f){const _0x48312c=_0x449813,{memberID:_0x55a6ae}=_0x41185f[_0x48312c(0x1e8)],_0x48156a=this['cursorInfo'];_0x48156a[_0x48312c(0x474)](_0x55a6ae),this['_cursorInfo$'][_0x48312c(0x2fd)](_0x48156a);}[_0x449813(0x36b)](){const _0x13f77f=_0x449813;var _0x506ce1;if(this[_0x13f77f(0x253)]=!0x0,((_0x506ce1=this['_univerInstanceService']['getFocusedUnit']())==null?void 0x0:_0x506ce1[_0x13f77f(0x2c6)]())!==this[_0x13f77f(0x2b3)])return;const _0x529286=this[_0x13f77f(0x27f)][_0x13f77f(0x2dd)](_0x4bc80d[_0x13f77f(0x290)])[_0x13f77f(0x3bd)]();Array['isArray'](_0x529286)&&_0x529286[_0x13f77f(0x418)]>0x0&&this[_0x13f77f(0x2f6)](_0x529286);}[_0x449813(0x1fa)](){const _0x30b083=_0x449813;this[_0x30b083(0x253)]=!0x1;}};_0x38bb7b=_0x1098b2([_0x4bcdfe(0x2,_0x4921b5[_0x449813(0x41c)](_0x4921b5['Injector'])),_0x4bcdfe(0x3,_0x4921b5['Inject'](_0xac4cbd)),_0x4bcdfe(0x4,_0x4921b5[_0x449813(0x41c)](_0x1c12f2[_0x449813(0x366)])),_0x4bcdfe(0x5,_0x4921b5[_0x449813(0x41c)](_0x2162e3)),_0x4bcdfe(0x6,_0x1a4d3b['ITransformService']),_0x4bcdfe(0x7,_0x4921b5[_0x449813(0x42b)]),_0x4bcdfe(0x8,_0x4921b5['ICommandService'])],_0x38bb7b);var _0x25468f=Object[_0x449813(0x29c)],_0x51e84b=(_0x59a62a,_0x44edfb,_0x27557b,_0x2b2240)=>{const _0x3d829f=_0x449813;for(var _0x4a3279=_0x2b2240>0x1?void 0x0:_0x2b2240?_0x25468f(_0x44edfb,_0x27557b):_0x44edfb,_0xc8a9f5=_0x59a62a[_0x3d829f(0x418)]-0x1,_0x59084e;_0xc8a9f5>=0x0;_0xc8a9f5--)(_0x59084e=_0x59a62a[_0xc8a9f5])&&(_0x4a3279=_0x59084e(_0x4a3279)||_0x4a3279);return _0x4a3279;},_0x4c6752=(_0x38dfea,_0x290dd2)=>(_0x1d6c5a,_0x125e15)=>_0x290dd2(_0x1d6c5a,_0x125e15,_0x38dfea);const _0x4c331f=0x12c,_0x3331d0=0x64,_0x56a219=()=>{let _0xc705ba=[],_0xa51fe3=!0x1;return _0xbf986f=>{_0xc705ba['push'](_0xbf986f),_0xa51fe3||(_0xa51fe3=!0x0,setTimeout(()=>{const _0xd238d0=_0x4bb6;_0xc705ba[_0xd238d0(0x28b)](_0x1b13c3=>_0x1b13c3()),_0xc705ba=[],_0xa51fe3=!0x1;}));};};let _0x126db2=class extends _0x4921b5[_0x449813(0x442)]{constructor(_0x43a96b,_0x4e82b1,_0x2f76c7,_0x4c7c06,_0x55de63,_0xa2eec7,_0x5874c0,_0x4f5341){const _0x45282d=_0x449813;super(),_0x8d7f57(this,'_online',!0x1),_0x8d7f57(this,_0x45282d(0x2c7),!0x1),_0x8d7f57(this,_0x45282d(0x343),new _0x66da6e[(_0x45282d(0x2ae))](new Map())),_0x8d7f57(this,_0x45282d(0x28d),this[_0x45282d(0x343)]['asObservable']()),_0x8d7f57(this,_0x45282d(0x406),new _0x66da6e[(_0x45282d(0x2ae))]([])),_0x8d7f57(this,'roomMembers$',this[_0x45282d(0x406)]['pipe'](_0x66da6e[_0x45282d(0x44a)](_0x4c331f))),_0x8d7f57(this,_0x45282d(0x2f6),_0x4921b5[_0x45282d(0x3ac)]((_0xbc30c,_0x204d75)=>{const _0x5bb8f2=_0x45282d,_0x6c0197={'eventID':_0x1a4d3b['CollaborationEvent'][_0x5bb8f2(0x46d)],'data':{'unitID':this[_0x5bb8f2(0x2b3)],'memberID':this[_0x5bb8f2(0x312)][_0x5bb8f2(0x1ec)](),'selection':_0xeb64c6[_0x5bb8f2(0x479)](_0xbc30c,_0x204d75[_0x5bb8f2(0x320)])}};this['_session'][_0x5bb8f2(0x3d4)](_0x6c0197,this[_0x5bb8f2(0x2b3)]);},_0x3331d0)),(this[_0x45282d(0x2b3)]=_0x43a96b,this['_session']=_0x4e82b1,this[_0x45282d(0x27f)]=_0x2f76c7,this[_0x45282d(0x3dd)]=_0x4c7c06,this[_0x45282d(0x293)]=_0x55de63,this['_univerInstanceService']=_0xa2eec7,this[_0x45282d(0x2a0)]=_0x5874c0,this[_0x45282d(0x29f)]=_0x4f5341);}get[_0x449813(0x220)](){const _0x447a60=_0x449813;return this[_0x447a60(0x343)][_0x447a60(0x2b4)]();}get[_0x449813(0x21b)](){const _0x2b17d3=_0x449813;return this[_0x2b17d3(0x406)][_0x2b17d3(0x2b4)]();}[_0x449813(0x2ec)](){const _0x29df29=_0x449813;super[_0x29df29(0x2ec)](),this[_0x29df29(0x343)][_0x29df29(0x2fd)](new Map()),this[_0x29df29(0x343)][_0x29df29(0x473)](),this['_roomMembers$']['next']([]),this[_0x29df29(0x406)][_0x29df29(0x473)]();}[_0x449813(0x237)](){const _0x27b775=_0x449813;this['_init']||(this[_0x27b775(0x2c7)]=!0x0,this[_0x27b775(0x312)][_0x27b775(0x389)][_0x27b775(0x35e)](_0x66da6e[_0x27b775(0x34f)](this['dispose$']))[_0x27b775(0x1fe)](_0x29d651=>{const _0x441184=_0x27b775;_0x29d651===_0x1c12f2[_0x441184(0x3f0)][_0x441184(0x28c)]?this[_0x441184(0x36b)]():this[_0x441184(0x1fa)]();}),this['_session'][_0x27b775(0x34c)][_0x27b775(0x35e)](_0x66da6e['takeUntil'](this['dispose$']))[_0x27b775(0x1fe)](_0x29f28e=>{const _0xc701b9=_0x27b775,_0x5b5144=_0x29f28e[_0xc701b9(0x3dc)];_0x5b5144===_0x1a4d3b[_0xc701b9(0x3b7)][_0xc701b9(0x46d)]&&this['_onCursorUpdate'](_0x29f28e),_0x5b5144===_0x1a4d3b[_0xc701b9(0x3b7)][_0xc701b9(0x32d)]&&this[_0xc701b9(0x257)](_0x29f28e);}),this[_0x27b775(0x3b8)](),this[_0x27b775(0x25c)](this[_0x27b775(0x2a0)][_0x27b775(0x46c)](_0x144c27=>{const _0x5dd28f=_0x27b775;if(this[_0x5dd28f(0x253)]&&_0x144c27['id']===_0x3e73c9['SetSelectionsOperation']['id']&&_0x144c27[_0x5dd28f(0x268)][_0x5dd28f(0x2a2)]===this['unitID']){const _0x49baf9=_0x144c27[_0x5dd28f(0x268)];this[_0x5dd28f(0x2f6)](_0x49baf9[_0x5dd28f(0x319)],_0x49baf9[_0x5dd28f(0x438)][0x0]);}})));}['_onCursorUpdate'](_0x4541bc){const _0x1443b5=_0x449813;var _0x26f1cf,_0x505932;const {memberID:_0x466040,selection:_0x1b2881}=_0x4541bc['data'],{sheetName:_0x531625,range:_0x2c00cc}=_0xeb64c6[_0x1443b5(0x3ab)](_0x1b2881),_0x306e1f={'name':(_0x505932=(_0x26f1cf=this['_memberService'][_0x1443b5(0x20d)](this[_0x1443b5(0x2b3)],_0x466040))==null?void 0x0:_0x26f1cf['name'])!=null?_0x505932:_0x1443b5(0x40d),'range':this[_0x1443b5(0x341)](_0x531625,_0x2c00cc),'sheetID':_0x531625,'color':this['_colorAssignService'][_0x1443b5(0x20f)](_0x466040),'selection':_0x1b2881},_0x4fd589=this[_0x1443b5(0x220)];_0x4fd589[_0x1443b5(0x2a1)](_0x466040,_0x306e1f),this[_0x1443b5(0x343)][_0x1443b5(0x2fd)](_0x4fd589);}[_0x449813(0x257)](_0xfaf0db){const _0x16ce57=_0x449813,{memberID:_0x52dc47}=_0xfaf0db[_0x16ce57(0x1e8)],_0x4443e2=this[_0x16ce57(0x220)];_0x4443e2[_0x16ce57(0x474)](_0x52dc47),this[_0x16ce57(0x343)][_0x16ce57(0x2fd)](_0x4443e2);}['_getMergeRange'](_0x2810d4,_0x8498a7){const _0x3392da=_0x449813;var _0x15fadd,_0x10e921;const _0x1a5754=(_0x10e921=(_0x15fadd=this[_0x3392da(0x3a6)][_0x3392da(0x2dc)](this[_0x3392da(0x2b3)]))==null?void 0x0:_0x15fadd[_0x3392da(0x2bd)](_0x2810d4))==null?void 0x0:_0x10e921[_0x3392da(0x368)]();return(_0x1a5754==null?void 0x0:_0x1a5754[_0x3392da(0x33f)](_0x32aac5=>_0x4921b5['Rectangle'][_0x3392da(0x42f)](_0x32aac5,_0x8498a7)))||_0x8498a7;}[_0x449813(0x3b8)](){const _0xd0af11=_0x449813,_0x55ecbb=new _0x4921b5['DisposableCollection'](),_0x380cd0=_0x56a219(),_0x47d6c2=()=>{const _0x18213d=_0x4bb6;_0x55ecbb[_0x18213d(0x2ec)]();const _0x10d831=(_0x3ed78d,_0x2534ea,_0x48e6e0,_0x29ae7c)=>{const _0x5c3b90=_0x18213d;let _0x4f88dd=[];switch(_0x3ed78d['id']){case _0x3e73c9[_0x5c3b90(0x386)]['DeleteRangeMoveLeftCommandId']:{_0x4f88dd=_0x3e73c9['handleDeleteRangeMoveLeft'](_0x3ed78d,_0x29ae7c);break;}case _0x3e73c9['EffectRefRangId']['DeleteRangeMoveUpCommandId']:{_0x4f88dd=_0x3e73c9['handleDeleteRangeMoveUp'](_0x3ed78d,_0x29ae7c);break;}case _0x3e73c9[_0x5c3b90(0x386)][_0x5c3b90(0x374)]:{_0x4f88dd=_0x3e73c9[_0x5c3b90(0x301)](_0x3ed78d,_0x29ae7c);break;}case _0x3e73c9['EffectRefRangId'][_0x5c3b90(0x383)]:{_0x4f88dd=_0x3e73c9[_0x5c3b90(0x3fa)](_0x3ed78d,_0x29ae7c);break;}case _0x3e73c9[_0x5c3b90(0x386)][_0x5c3b90(0x2bb)]:{_0x4f88dd=_0x3e73c9[_0x5c3b90(0x403)](_0x3ed78d,_0x29ae7c);break;}case _0x3e73c9[_0x5c3b90(0x386)][_0x5c3b90(0x2d6)]:{_0x4f88dd=_0x3e73c9[_0x5c3b90(0x295)](_0x3ed78d,_0x29ae7c);break;}case _0x3e73c9['EffectRefRangId'][_0x5c3b90(0x3ff)]:{_0x4f88dd=_0x3e73c9[_0x5c3b90(0x3cd)](_0x3ed78d,_0x29ae7c);break;}case _0x3e73c9['EffectRefRangId']['RemoveColCommandId']:{_0x4f88dd=_0x3e73c9[_0x5c3b90(0x412)](_0x3ed78d,_0x29ae7c);break;}case _0x3e73c9['EffectRefRangId'][_0x5c3b90(0x3cc)]:{_0x4f88dd=_0x3e73c9['handleIRemoveRow'](_0x3ed78d,_0x29ae7c);break;}}const _0x5e8cb5=_0x3e73c9['runRefRangeMutations'](_0x4f88dd,_0x29ae7c),_0x48a605=this[_0x5c3b90(0x220)]['get'](_0x2534ea);if(_0x48a605&&_0x5e8cb5){const _0x5cb945={..._0x48a605,'range':_0x5e8cb5};this['cursorInfo']['set'](_0x2534ea,_0x5cb945),_0x380cd0(()=>{const _0x966162=_0x5c3b90,_0x136af1=this[_0x966162(0x29f)]['registerRefRange'](_0x5e8cb5,_0x410a8f=>(_0x136af1[_0x966162(0x2ec)](),_0x10d831(_0x410a8f,_0x2534ea,_0x48e6e0,_0x5e8cb5)));_0x55ecbb[_0x966162(0x44f)](_0x136af1);});}return{'redos':[],'undos':[]};};this[_0x18213d(0x220)][_0x18213d(0x28b)]((_0x5dc2db,_0x403910)=>{const _0x583c86=_0x18213d,{range:_0x3b0a8e,sheetID:_0x1d6db8}=_0x5dc2db,_0x27d25c=this['_refRangeService'][_0x583c86(0x3e1)](_0x3b0a8e,_0x4d92f3=>(_0x27d25c[_0x583c86(0x2ec)](),_0x10d831(_0x4d92f3,_0x403910,_0x1d6db8,_0x3b0a8e)));_0x55ecbb[_0x583c86(0x44f)](_0x27d25c);});};this[_0xd0af11(0x25c)](_0x4921b5[_0xd0af11(0x2ad)](this[_0xd0af11(0x343)][_0xd0af11(0x1fe)](()=>{_0x47d6c2();})));}[_0x449813(0x36b)](){const _0x483821=_0x449813;var _0x3e5eb8,_0x35c1ae;if(this[_0x483821(0x253)]=!0x0,((_0x3e5eb8=this[_0x483821(0x3a6)][_0x483821(0x27c)]())==null?void 0x0:_0x3e5eb8[_0x483821(0x2c6)]())!==this[_0x483821(0x2b3)])return;const _0x45d7c2=(_0x35c1ae=this[_0x483821(0x27f)]['get'](_0x3e73c9[_0x483821(0x409)])[_0x483821(0x231)]())==null?void 0x0:_0x35c1ae[0x0],_0x33427f=this['_univerInstanceService'][_0x483821(0x3b9)](_0x4921b5[_0x483821(0x351)]['UNIVER_SHEET'])[_0x483821(0x472)]();_0x45d7c2&&_0x33427f&&this[_0x483821(0x2f6)](_0x33427f['getSheetId'](),_0x45d7c2);}[_0x449813(0x1fa)](){const _0x56d7dc=_0x449813;this[_0x56d7dc(0x253)]=!0x1;}};_0x126db2=_0x51e84b([_0x4c6752(0x2,_0x4921b5['Inject'](_0x4921b5[_0x449813(0x24c)])),_0x4c6752(0x3,_0x4921b5[_0x449813(0x41c)](_0xac4cbd)),_0x4c6752(0x4,_0x4921b5['Inject'](_0x1c12f2[_0x449813(0x366)])),_0x4c6752(0x5,_0x4921b5[_0x449813(0x42b)]),_0x4c6752(0x6,_0x4921b5['ICommandService']),_0x4c6752(0x7,_0x4921b5[_0x449813(0x41c)](_0x3e73c9[_0x449813(0x250)]))],_0x126db2);var _0x522d5b=Object[_0x449813(0x29c)],_0x36b9fe=(_0xd2c20d,_0x40578e,_0xab4235,_0x992813)=>{const _0x283c71=_0x449813;for(var _0x18fd8e=_0x992813>0x1?void 0x0:_0x992813?_0x522d5b(_0x40578e,_0xab4235):_0x40578e,_0xe8e474=_0xd2c20d[_0x283c71(0x418)]-0x1,_0x5e4e79;_0xe8e474>=0x0;_0xe8e474--)(_0x5e4e79=_0xd2c20d[_0xe8e474])&&(_0x18fd8e=_0x5e4e79(_0x18fd8e)||_0x18fd8e);return _0x18fd8e;},_0x5e1d9c=(_0x2ce03e,_0x36b705)=>(_0x4fb23c,_0x2063e6)=>_0x36b705(_0x4fb23c,_0x2063e6,_0x2ce03e);let _0x3d739c=class extends _0x4921b5['RxDisposable']{constructor(_0x21bd91,_0x2674ec,_0x27c9c1){const _0x32f42d=_0x449813;super(),_0x8d7f57(this,_0x32f42d(0x306),new Map()),_0x8d7f57(this,_0x32f42d(0x202),new _0x66da6e[(_0x32f42d(0x3b5))]()),(this['_univerInstanceService']=_0x21bd91,this['_injector']=_0x2674ec,this[_0x32f42d(0x2c8)]=_0x27c9c1,this[_0x32f42d(0x2c7)]());}[_0x449813(0x2ec)](){const _0x2f9f7e=_0x449813;super[_0x2f9f7e(0x2ec)](),this[_0x2f9f7e(0x202)][_0x2f9f7e(0x473)](),this[_0x2f9f7e(0x306)][_0x2f9f7e(0x28b)](_0xf7c629=>_0xf7c629[_0x2f9f7e(0x2ec)]());}['getCollabCursors$'](_0x4283b9){const _0x13304c=_0x449813;return this[_0x13304c(0x306)]['has'](_0x4283b9)?this[_0x13304c(0x306)][_0x13304c(0x2dd)](_0x4283b9)[_0x13304c(0x28d)]:this[_0x13304c(0x202)][_0x13304c(0x35e)](_0x66da6e[_0x13304c(0x401)](_0x13acdb=>_0x13acdb['unitID']===_0x4283b9),_0x66da6e[_0x13304c(0x360)](_0x3587b1=>_0x3587b1['cursorInfo$']));}[_0x449813(0x2c7)](){const _0x1c5601=_0x449813;this[_0x1c5601(0x3a6)][_0x1c5601(0x422)](_0x4921b5[_0x1c5601(0x351)][_0x1c5601(0x262)])[_0x1c5601(0x35e)](_0x66da6e[_0x1c5601(0x34f)](this[_0x1c5601(0x41d)]))['subscribe'](async _0x18a289=>{const _0x4237f2=_0x1c5601,_0x45b35a=_0x18a289[_0x4237f2(0x2c6)](),_0x4ba3ea=await this[_0x4237f2(0x32a)](_0x45b35a);this[_0x4237f2(0x202)][_0x4237f2(0x2fd)](_0x4ba3ea),this[_0x4237f2(0x306)][_0x4237f2(0x2a1)](_0x45b35a,_0x4ba3ea);}),this[_0x1c5601(0x3a6)][_0x1c5601(0x422)](_0x4921b5[_0x1c5601(0x351)]['UNIVER_DOC'])['pipe'](_0x66da6e[_0x1c5601(0x34f)](this[_0x1c5601(0x41d)]))['pipe'](_0x66da6e['filter'](_0x5c265f=>!_0x5c265f[_0x1c5601(0x2c6)]()['startsWith']('__')))[_0x1c5601(0x1fe)](async _0x4d9ed0=>{const _0x51822d=_0x1c5601,_0x5993cb=_0x4d9ed0['getUnitId'](),_0x4b1e67=await this[_0x51822d(0x238)](_0x5993cb);this['_entityInit$'][_0x51822d(0x2fd)](_0x4b1e67),this['_entities'][_0x51822d(0x2a1)](_0x5993cb,_0x4b1e67);}),_0x66da6e[_0x1c5601(0x212)](this[_0x1c5601(0x3a6)]['getTypeOfUnitDisposed$'](_0x4921b5[_0x1c5601(0x351)][_0x1c5601(0x299)]),this[_0x1c5601(0x3a6)][_0x1c5601(0x3b6)](_0x4921b5['UniverInstanceType'][_0x1c5601(0x262)]))[_0x1c5601(0x35e)](_0x66da6e[_0x1c5601(0x34f)](this[_0x1c5601(0x41d)]))[_0x1c5601(0x1fe)](_0x4f8555=>{const _0x4930e0=_0x1c5601,_0x39b0af=_0x4f8555[_0x4930e0(0x2c6)](),_0xb38c83=this[_0x4930e0(0x306)]['get'](_0x39b0af);_0xb38c83&&(_0xb38c83[_0x4930e0(0x2ec)](),this[_0x4930e0(0x306)]['delete'](_0x39b0af));});}async['_startSheetCollabCursor'](_0xe1c3f7){const _0x3a0b2b=_0x449813,_0x46922e=await this['_collabSessionService'][_0x3a0b2b(0x452)](_0xe1c3f7),_0x1f72b7=this[_0x3a0b2b(0x27f)]['createInstance'](_0x126db2,_0xe1c3f7,_0x46922e);return _0x1f72b7[_0x3a0b2b(0x237)](),_0x1f72b7;}async[_0x449813(0x238)](_0x2a8f0f){const _0xed1066=_0x449813,_0x2db1b7=await this[_0xed1066(0x2c8)][_0xed1066(0x452)](_0x2a8f0f),_0x589882=this[_0xed1066(0x27f)][_0xed1066(0x20e)](_0x38bb7b,_0x2a8f0f,_0x2db1b7);return _0x589882[_0xed1066(0x237)](),_0x589882;}};_0x3d739c=_0x36b9fe([_0x5e1d9c(0x0,_0x4921b5[_0x449813(0x42b)]),_0x5e1d9c(0x1,_0x4921b5['Inject'](_0x4921b5['Injector'])),_0x5e1d9c(0x2,_0x4921b5[_0x449813(0x41c)](_0x1c12f2['CollaborationSessionService']))],_0x3d739c);const _0x58db44=0x14,_0x366c08=0xc8,_0x53dcf8=0x4,_0x11710a=0x5;function _0x5c20f1(_0x5382e5,_0x46659a){const _0x51817c=_0x449813;let {radius:_0x1ea76c,width:_0x481a1d,height:_0x2c0e26}=_0x46659a;_0x1ea76c=_0x1ea76c!=null?_0x1ea76c:0x0,_0x481a1d=_0x481a1d!=null?_0x481a1d:0x1e,_0x2c0e26=_0x2c0e26!=null?_0x2c0e26:0x1e;let _0x2fe341=0x0,_0x3c644a=0x0,_0x207bdc=0x0;_0x2fe341=_0x3c644a=_0x207bdc=Math[_0x51817c(0x456)](_0x1ea76c,_0x481a1d/0x2,_0x2c0e26/0x2),_0x5382e5[_0x51817c(0x296)](),_0x5382e5['moveTo'](_0x2fe341,0x0),_0x5382e5['lineTo'](_0x481a1d-_0x3c644a,0x0),_0x5382e5[_0x51817c(0x3d6)](_0x481a1d-_0x3c644a,_0x3c644a,_0x3c644a,Math['PI']*0x3/0x2,0x0,!0x1),_0x5382e5['lineTo'](_0x481a1d,_0x2c0e26-_0x207bdc),_0x5382e5[_0x51817c(0x3d6)](_0x481a1d-_0x207bdc,_0x2c0e26-_0x207bdc,_0x207bdc,0x0,Math['PI']/0x2,!0x1),_0x5382e5['lineTo'](0x0,_0x2c0e26),_0x5382e5[_0x51817c(0x36f)](0x0,_0x2fe341),_0x5382e5['arc'](_0x2fe341,_0x2fe341,_0x2fe341,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x5382e5[_0x51817c(0x234)](),_0x46659a[_0x51817c(0x373)]&&(_0x5382e5[_0x51817c(0x344)](),_0x5382e5['fillStyle']=_0x46659a[_0x51817c(0x373)],_0x46659a[_0x51817c(0x34e)]===_0x51817c(0x45b)?_0x5382e5[_0x51817c(0x373)](_0x51817c(0x45b)):_0x5382e5['fill'](),_0x5382e5['restore']());}class _0x5b91d6 extends _0x22d409[_0x449813(0x3ba)]{constructor(_0xc99067,_0x3d11fd){const _0x28735f=_0x449813;super(_0xc99067,_0x3d11fd),_0x8d7f57(this,_0x28735f(0x2c1)),_0x8d7f57(this,_0x28735f(0x31d)),(this[_0x28735f(0x2c1)]=_0x3d11fd==null?void 0x0:_0x3d11fd[_0x28735f(0x2c1)],this[_0x28735f(0x31d)]=_0x3d11fd==null?void 0x0:_0x3d11fd['text']);}static[_0x449813(0x437)](_0x48a53b,_0x51c4d0){const _0xd7af3=_0x449813,{text:_0xa20b44,color:_0x4275e0}=_0x51c4d0;_0x48a53b[_0xd7af3(0x344)](),_0x48a53b[_0xd7af3(0x3aa)]='bold\x2013px\x20Source\x20Han\x20Sans\x20CN';const _0x2dbd8e=_0x48a53b[_0xd7af3(0x1f7)](_0xa20b44)[_0xd7af3(0x2b0)],_0x3b9053=Math[_0xd7af3(0x456)](_0x2dbd8e+0x2*_0x53dcf8,_0x366c08);_0x5c20f1(_0x48a53b,{'height':_0x58db44,'radius':0x4,'width':_0x3b9053,'fill':_0x4275e0}),_0x48a53b['fillStyle']=_0xd7af3(0x30b);const _0x18c529=_0x53dcf8,_0x555f51=_0x58db44-_0x11710a,_0x311bb5=_0x366c08-0x2*_0x53dcf8;if(_0x2dbd8e>_0x311bb5){let _0x1b1252='',_0x422553=0x0;for(const _0x36eb99 of _0xa20b44){const _0x35f81e=_0x48a53b['measureText'](_0x36eb99)[_0xd7af3(0x2b0)];if(_0x422553+_0x35f81e<=_0x311bb5-_0x48a53b['measureText'](_0xd7af3(0x1dd))[_0xd7af3(0x2b0)])_0x1b1252+=_0x36eb99,_0x422553+=_0x35f81e;else{_0x1b1252+=_0xd7af3(0x1dd);break;}}_0x48a53b[_0xd7af3(0x459)](_0x1b1252,_0x18c529,_0x555f51);}else _0x48a53b[_0xd7af3(0x459)](_0xa20b44,_0x18c529,_0x555f51);_0x48a53b[_0xd7af3(0x44c)]();}['_draw'](_0x5277f4){_0x5b91d6['drawWith'](_0x5277f4,this);}}const _0x434321=_0x449813(0x271),_0x4e4b8d=_0x449813(0x210),_0x3a2f1f='collab-rect-range-',_0x37999e=0x6,_0x375b17=1.5,_0x4eaf7c=0x4,_0x1a852e=1.5,_0x2e445c='rgba(255,\x20255,\x20255,\x200.01)';class _0x3dc3c5{constructor(_0x17c9e5,_0x5bb7bf,_0x1c9107,_0x3f0efc){const _0x4a8040=_0x449813;_0x8d7f57(this,_0x4a8040(0x398),[]),_0x8d7f57(this,_0x4a8040(0x211),null),_0x8d7f57(this,_0x4a8040(0x1db),null),_0x8d7f57(this,_0x4a8040(0x402),null),_0x8d7f57(this,_0x4a8040(0x43b),null),_0x8d7f57(this,'_eventUnsubscribe',null),(this[_0x4a8040(0x46e)]=_0x17c9e5,this[_0x4a8040(0x229)]=_0x5bb7bf,this['_docSkeleton']=_0x1c9107,this['_document']=_0x3f0efc,this['_render']());}set['_hover'](_0x1d2de6){const _0x3610ca=_0x449813;_0x1d2de6?(this[_0x3610ca(0x402)]&&this[_0x3610ca(0x402)][_0x3610ca(0x23a)](),this[_0x3610ca(0x1db)]&&this[_0x3610ca(0x1db)][_0x3610ca(0x2d1)]()):(this[_0x3610ca(0x402)]&&this[_0x3610ca(0x402)][_0x3610ca(0x2d1)](),this[_0x3610ca(0x1db)]&&this[_0x3610ca(0x1db)][_0x3610ca(0x23a)]());}[_0x449813(0x2ec)](){const _0x565a72=_0x449813;for(const _0x4c9660 of this[_0x565a72(0x398)])_0x4c9660['dispose']();this[_0x565a72(0x1db)]&&this['_textBubble']['dispose'](),this[_0x565a72(0x402)]&&this[_0x565a72(0x402)][_0x565a72(0x2ec)](),this[_0x565a72(0x211)]&&this[_0x565a72(0x211)]['dispose'](),this[_0x565a72(0x3b2)]&&this[_0x565a72(0x3b2)]();}[_0x449813(0x1e3)](){const _0x24014d=_0x449813;var _0x1d2d77;const {_docSkeleton:_0x327d60,_document:_0x53dfe2}=this,{color:_0x40a1b8,name:_0x8ac478,ranges:_0x2903eb}=this[_0x24014d(0x46e)],_0x2ffa57=_0x53dfe2[_0x24014d(0x3e6)](),{docsLeft:_0x220d85,docsTop:_0x3a7163}=_0x2ffa57,_0x323bc=new _0x3fda77[(_0x24014d(0x44d))](_0x2ffa57,_0x327d60);for(const {startOffset:_0x59922c,endOffset:_0x3173a4,rangeType:_0x757a99,segmentId:_0x4eb75b,segmentPage:_0x2135ae,collapsed:_0x2c4846,isActive:_0x326daf}of _0x2903eb){const _0x24de25=_0x327d60[_0x24014d(0x24a)](_0x59922c,!0x0,_0x4eb75b,_0x2135ae);let _0x306e46=_0x327d60['findNodePositionByCharIndex'](_0x3173a4,!0x0,_0x4eb75b,_0x2135ae);if(_0x306e46==null&&(_0x306e46=_0x327d60[_0x24014d(0x24a)](_0x3173a4-0x1,!0x1,_0x4eb75b,_0x2135ae)),_0x326daf){const {contentBoxPointGroup:_0x4110f8}=_0x323bc['getRangePointData'](_0x306e46,_0x306e46);if(_0x4110f8[_0x24014d(0x418)]===0x0)continue;this[_0x24014d(0x1f9)](_0x40a1b8,_0x4110f8,_0x220d85,_0x3a7163,_0x8ac478),this[_0x24014d(0x3b2)]=this[_0x24014d(0x364)]();}if(_0x24de25&&_0x306e46){if(_0x757a99===_0x4921b5[_0x24014d(0x285)][_0x24014d(0x25f)]){const _0x29e0f3=new _0x3fda77[(_0x24014d(0x2ff))](_0x2ffa57,_0x327d60),{pointGroup:_0x18e0c6}=(_0x1d2d77=_0x29e0f3[_0x24014d(0x395)](_0x24de25,_0x306e46))!=null?_0x1d2d77:{};if(_0x18e0c6==null||_0x18e0c6['length']===0x0)continue;this[_0x24014d(0x31f)](_0x40a1b8,_0x18e0c6,_0x220d85,_0x3a7163);}else{if(!_0x2c4846){const {borderBoxPointGroup:_0x451f29}=_0x323bc[_0x24014d(0x395)](_0x24de25,_0x306e46);if(_0x451f29['length']===0x0)continue;this[_0x24014d(0x2be)](_0x40a1b8,_0x451f29,_0x220d85,_0x3a7163);}}}}}['_drawAnchor'](_0x448a52,_0x508466,_0x328bdf,_0x16c856,_0x3b7dee){const _0x2e0b9d=_0x449813,_0x2cd834=this['_getAnchorBounding'](_0x508466),{left:_0x5660f7,top:_0x4144cb,height:_0x2cbd13}=_0x2cd834,_0x353eb3=this[_0x2e0b9d(0x433)](),_0x52caf0=_0x1a852e/_0x353eb3,_0x355878=new _0x22d409[(_0x2e0b9d(0x275))](_0x434321+_0x4921b5[_0x2e0b9d(0x420)](_0x37999e),{'left':_0x5660f7+_0x328bdf-_0x52caf0,'top':_0x4144cb+_0x16c856,'height':_0x2cbd13,'width':_0x375b17,'fill':_0x448a52||_0x22d409[_0x2e0b9d(0x307)](_0x4921b5['COLORS'][_0x2e0b9d(0x3da)],0x0),'strokeWidth':_0x52caf0,'stroke':_0x2e445c,'evented':!0x0});this[_0x2e0b9d(0x211)]=_0x355878,this[_0x2e0b9d(0x229)][_0x2e0b9d(0x226)](_0x355878,_0x3fda77[_0x2e0b9d(0x444)]);const _0x1cfe9e=new _0x22d409[(_0x2e0b9d(0x275))](_0x434321+_0x4921b5['generateRandomId'](_0x37999e),{'left':_0x5660f7+_0x328bdf-_0x52caf0,'top':_0x4144cb+_0x16c856-_0x4eaf7c/0x2,'height':_0x4eaf7c,'width':_0x4eaf7c,'fill':_0x448a52||_0x22d409['getColor'](_0x4921b5[_0x2e0b9d(0x3ee)][_0x2e0b9d(0x3da)],0x0),'strokeWidth':0x0,'stroke':_0x448a52||_0x22d409[_0x2e0b9d(0x307)](_0x4921b5[_0x2e0b9d(0x3ee)][_0x2e0b9d(0x3da)],0x0),'evented':!0x1});this[_0x2e0b9d(0x402)]=_0x1cfe9e,this['_scene'][_0x2e0b9d(0x226)](_0x1cfe9e,_0x3fda77[_0x2e0b9d(0x444)]);const _0x291f70=new _0x5b91d6(_0x434321+_0x4921b5['generateRandomId'](_0x37999e),{'left':_0x5660f7+_0x328bdf-_0x52caf0,'top':_0x4144cb+_0x16c856-_0x58db44,'text':_0x3b7dee,'color':_0x448a52});this[_0x2e0b9d(0x1db)]=_0x291f70,this[_0x2e0b9d(0x229)][_0x2e0b9d(0x226)](_0x291f70,_0x3fda77[_0x2e0b9d(0x444)]),this['_hover']=!0x1;}[_0x449813(0x364)](){const _0x542f30=_0x449813,_0x32439c=this[_0x542f30(0x211)][_0x542f30(0x33b)][_0x542f30(0x38e)](()=>{const _0x475a98=_0x542f30;this[_0x475a98(0x263)]=!0x0;}),_0x4fece1=this['_anchor']['onPointerLeave$'][_0x542f30(0x38e)](()=>{const _0x4f441f=_0x542f30;this[_0x4f441f(0x43b)]&&clearTimeout(this[_0x4f441f(0x43b)]),this['_hideTimer']=setTimeout(()=>{const _0x1a7fd9=_0x4f441f;this[_0x1a7fd9(0x263)]=!0x1;},0x7d0);});return()=>{const _0x29f681=_0x542f30;_0x32439c[_0x29f681(0x30c)](),_0x4fece1[_0x29f681(0x30c)]();};}[_0x449813(0x2be)](_0x5bfd21,_0xdc811a,_0x595541,_0x177c85){const _0x354c9d=_0x449813,_0x363fbf=new _0x4921b5[(_0x354c9d(0x40e))](_0x5bfd21)[_0x354c9d(0x43c)](0.2)[_0x354c9d(0x3f4)](),_0x29fee0=new _0x22d409['RegularPolygon'](_0x4e4b8d+_0x4921b5[_0x354c9d(0x420)](_0x37999e),{'pointsGroup':_0xdc811a,'fill':_0x363fbf||_0x22d409[_0x354c9d(0x307)](_0x4921b5[_0x354c9d(0x3ee)][_0x354c9d(0x3da)],0.2),'left':_0x595541,'top':_0x177c85,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x354c9d(0x398)][_0x354c9d(0x2a3)](_0x29fee0),this[_0x354c9d(0x229)]['addObject'](_0x29fee0,_0x3fda77[_0x354c9d(0x444)]);}['_drawRectRange'](_0x284183,_0x5aacc1,_0x4a0b3d,_0x2416ed){const _0x460ade=_0x449813,_0x5a0c06=new _0x4921b5[(_0x460ade(0x40e))](_0x284183)[_0x460ade(0x43c)](0.2)[_0x460ade(0x3f4)](),_0xaa9480=new _0x22d409[(_0x460ade(0x468))](_0x3a2f1f+_0x4921b5['generateRandomId'](_0x37999e),{'pointsGroup':_0x5aacc1,'fill':_0x5a0c06||_0x22d409['getColor'](_0x4921b5[_0x460ade(0x3ee)][_0x460ade(0x3da)],0.2),'left':_0x4a0b3d,'top':_0x2416ed,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x460ade(0x398)]['push'](_0xaa9480),this[_0x460ade(0x229)][_0x460ade(0x226)](_0xaa9480,_0x3fda77[_0x460ade(0x444)]);}[_0x449813(0x249)](_0x42bbc5){const _0x32a54c=_0x42bbc5[0x0],_0x4acb3c=_0x32a54c[0x0],_0x1cecdd=_0x32a54c[0x2],{x:_0x2319be,y:_0x3f565f}=_0x4acb3c,{x:_0x42dda1,y:_0x39f51d}=_0x1cecdd;return{'left':_0x2319be,'top':_0x3f565f,'width':_0x42dda1-_0x2319be,'height':_0x39f51d-_0x3f565f};}[_0x449813(0x433)](){const _0xaa41f0=_0x449813,{scaleX:_0x40ae29,scaleY:_0x5d56b1}=this[_0xaa41f0(0x229)][_0xaa41f0(0x2e4)]();return Math[_0xaa41f0(0x264)](_0x40ae29,_0x5d56b1);}}var _0x439df9=Object[_0x449813(0x29c)],_0x86f17e=(_0x3692d0,_0x1ec026,_0x38ab58,_0x314f8c)=>{const _0x5aa70d=_0x449813;for(var _0xdda3fd=_0x314f8c>0x1?void 0x0:_0x314f8c?_0x439df9(_0x1ec026,_0x38ab58):_0x1ec026,_0x91e882=_0x3692d0[_0x5aa70d(0x418)]-0x1,_0x279269;_0x91e882>=0x0;_0x91e882--)(_0x279269=_0x3692d0[_0x91e882])&&(_0xdda3fd=_0x279269(_0xdda3fd)||_0xdda3fd);return _0xdda3fd;},_0x3bece7=(_0x42feed,_0x1733a8)=>(_0x45ff7e,_0x53d0f9)=>_0x1733a8(_0x45ff7e,_0x53d0f9,_0x42feed);let _0x3a30e1=class extends _0x4921b5['RxDisposable']{constructor(_0x2f1e3c,_0x2bc463,_0xd16816,_0x1042e8,_0x297a1a){const _0x165aa4=_0x449813;super(),_0x8d7f57(this,_0x165aa4(0x235),[]),_0x8d7f57(this,_0x165aa4(0x36a),[]),(this[_0x165aa4(0x39f)]=_0x2f1e3c,this[_0x165aa4(0x219)]=_0x2bc463,this[_0x165aa4(0x3fd)]=_0xd16816,this[_0x165aa4(0x2a0)]=_0x1042e8,this[_0x165aa4(0x317)]=_0x297a1a,this['_init']());}[_0x449813(0x2c7)](){const _0x39e8da=_0x449813,_0x4b9d36=this[_0x39e8da(0x39f)][_0x39e8da(0x2a2)],_0x50a326=this[_0x39e8da(0x219)];this[_0x39e8da(0x25c)](_0x66da6e[_0x39e8da(0x461)]([this[_0x39e8da(0x3fd)]['getCollabCursors$'](_0x4b9d36),this[_0x39e8da(0x317)][_0x39e8da(0x2e3)]])[_0x39e8da(0x35e)](_0x4449c2[_0x39e8da(0x33d)](([_0x2a37c4,_0x293649])=>({'skeleton':_0x50a326[_0x39e8da(0x326)](),'cursors':[..._0x2a37c4['values']()]['flatMap'](_0x316a02=>({..._0x316a02,'color':this['_themeService'][_0x39e8da(0x3d7)](_0x316a02[_0x39e8da(0x2c1)])}))})))[_0x39e8da(0x1fe)](_0x1084ca=>{const _0x336b90=_0x39e8da;if(this[_0x336b90(0x349)](),_0x1084ca){const {skeleton:_0x26edf2,cursors:_0xeb169e}=_0x1084ca;this['_updateCollabCursors'](_0x26edf2,_0xeb169e);}})),this[_0x39e8da(0x2ab)](),this[_0x39e8da(0x3d0)]();}[_0x449813(0x430)](_0x27b156,_0x4ba6de){const _0x4ed111=_0x449813,{scene:_0x2078f5,mainComponent:_0x6cd077}=this[_0x4ed111(0x39f)],_0x48e1b5=_0x4ba6de['map'](_0x364e03=>new _0x3dc3c5(_0x364e03,_0x2078f5,_0x27b156,_0x6cd077));this[_0x4ed111(0x235)]=_0x48e1b5,this['_cursors']=_0x4ba6de;}[_0x449813(0x427)](){const _0x26d565=_0x449813;this[_0x26d565(0x349)]();const {scene:_0x224889,mainComponent:_0xde560a}=this[_0x26d565(0x39f)],_0x329fff=this['_docSkeletonManagerService'][_0x26d565(0x326)](),_0x4946e5=this[_0x26d565(0x36a)][_0x26d565(0x33d)](_0x11550b=>new _0x3dc3c5(_0x11550b,_0x224889,_0x329fff,_0xde560a));this['_cursorShapes']=_0x4946e5;}['_removeCollabCursors'](){const _0x33fe85=_0x449813;this[_0x33fe85(0x235)]['forEach'](_0x47ea63=>_0x47ea63['dispose']()),this[_0x33fe85(0x235)]=[];}[_0x449813(0x3d0)](){const _0x2a78eb=_0x449813,_0x32b548=[_0x3fda77[_0x2a78eb(0x336)]['id']];this[_0x2a78eb(0x25c)](this[_0x2a78eb(0x2a0)][_0x2a78eb(0x46c)](_0x10c6e7=>{const _0x2049ed=_0x2a78eb;_0x32b548[_0x2049ed(0x3c7)](_0x10c6e7['id'])&&_0x10c6e7[_0x2049ed(0x268)][_0x2049ed(0x2a2)]===this['_context']['unitId']&&this['_refreshCollabCursors']();}));}[_0x449813(0x2ab)](){const _0x41101a=_0x449813;this['disposeWithMe'](_0x4921b5[_0x41101a(0x1f8)](this[_0x41101a(0x39f)][_0x41101a(0x38f)]['onTransformChange$'])[_0x41101a(0x35e)](_0x4449c2[_0x41101a(0x401)](_0x1cddf2=>_0x1cddf2[_0x41101a(0x426)]===_0x22d409[_0x41101a(0x330)][_0x41101a(0x475)]),_0x4449c2['throttleTime'](0x10))[_0x41101a(0x1fe)](()=>{const _0x56b971=_0x41101a;this[_0x56b971(0x427)]();}));}};_0x3a30e1=_0x86f17e([_0x3bece7(0x1,_0x4921b5[_0x449813(0x41c)](_0x4bc80d[_0x449813(0x304)])),_0x3bece7(0x2,_0x4921b5[_0x449813(0x41c)](_0x3d739c)),_0x3bece7(0x3,_0x4921b5[_0x449813(0x35a)]),_0x3bece7(0x4,_0x4921b5[_0x449813(0x41c)](_0x4921b5[_0x449813(0x25e)]))],_0x3a30e1);const _0x9a850a=0x1,_0x3d76ae=1.5;class _0x1a0019 extends _0x22d409[_0x449813(0x3ba)]{constructor(_0x156001,_0x42bb8e){const _0x3ad607=_0x449813;super(_0x156001,_0x42bb8e),_0x8d7f57(this,'_color'),_0x8d7f57(this,_0x3ad607(0x443),!0x1),_0x8d7f57(this,_0x3ad607(0x314)),_0x8d7f57(this,_0x3ad607(0x424),''),_0x8d7f57(this,_0x3ad607(0x2f2),_0x3ad607(0x2a6)),_0x8d7f57(this,'_backgroundColor'),(_0x42bb8e&&this[_0x3ad607(0x1f4)](_0x42bb8e),this[_0x3ad607(0x33b)][_0x3ad607(0x38e)](()=>this[_0x3ad607(0x1f4)]({'hovered':!0x0})),this['onPointerLeave$']['subscribeEvent'](()=>this[_0x3ad607(0x1f4)]({'hovered':!0x1})));}[_0x449813(0x1f4)](_0x1956a3){const _0x2dda37=_0x449813;var _0x22193f,_0x4a3342,_0x44bc4d,_0x3d467d,_0x4299f4,_0x3b74b0;this['_color']=(_0x22193f=_0x1956a3[_0x2dda37(0x2c1)])!=null?_0x22193f:this[_0x2dda37(0x3a5)],this[_0x2dda37(0x443)]=(_0x4a3342=_0x1956a3[_0x2dda37(0x1ed)])!=null?_0x4a3342:this[_0x2dda37(0x443)],this[_0x2dda37(0x314)]=(_0x44bc4d=_0x1956a3[_0x2dda37(0x320)])!=null?_0x44bc4d:this[_0x2dda37(0x314)],this['_name']=(_0x3d467d=_0x1956a3[_0x2dda37(0x31e)])!=null?_0x3d467d:this[_0x2dda37(0x424)],this[_0x2dda37(0x2f2)]=(_0x4299f4=_0x1956a3['labelPosition'])!=null?_0x4299f4:this[_0x2dda37(0x2f2)],this[_0x2dda37(0x30e)]=(_0x3b74b0=_0x1956a3['backgroundColor'])!=null?_0x3b74b0:this[_0x2dda37(0x30e)],this[_0x2dda37(0x387)]({'width':_0x1956a3[_0x2dda37(0x2b0)],'height':_0x1956a3['height']});}[_0x449813(0x28e)](_0x432280){const _0x2ad65f=_0x449813,{row:_0x4952db,column:_0x248945}=_0x432280;if(_0x4952db>=this[_0x2ad65f(0x314)][_0x2ad65f(0x3ae)]&&_0x4952db<=this[_0x2ad65f(0x314)][_0x2ad65f(0x45d)]&&_0x248945>=this[_0x2ad65f(0x314)][_0x2ad65f(0x35d)]&&_0x248945<=this[_0x2ad65f(0x314)][_0x2ad65f(0x2f0)]){this[_0x2ad65f(0x1f4)]({'hovered':!0x0});return;}this[_0x2ad65f(0x1f4)]({'hovered':!0x1});}[_0x449813(0x1eb)](_0x1fb35b){return!0x1;}['_draw'](_0x4bf257){const _0x3594be=_0x449813;_0x22d409[_0x3594be(0x275)][_0x3594be(0x437)](_0x4bf257,{'width':this[_0x3594be(0x2b0)],'height':this[_0x3594be(0x27a)],'strokeWidth':_0x3d76ae,'stroke':this[_0x3594be(0x3a5)],'evented':!0x1,'fill':this[_0x3594be(0x30e)]}),this[_0x3594be(0x443)]&&(_0x4bf257[_0x3594be(0x344)](),_0x4bf257[_0x3594be(0x1f1)](0x1,0x0,0x0,0x1,this[_0x3594be(0x2b0)],this[_0x3594be(0x2f2)]===_0x3594be(0x33a)?0x0:-_0x58db44),_0x5b91d6[_0x3594be(0x437)](_0x4bf257,{'text':this[_0x3594be(0x424)],'color':this['_color']}),_0x4bf257[_0x3594be(0x44c)]());}}var _0x3936fe=Object[_0x449813(0x29c)],_0x4fdae2=(_0x520bde,_0x1c15cb,_0x3be35b,_0x5bce87)=>{const _0x447b39=_0x449813;for(var _0x3dcbc8=_0x5bce87>0x1?void 0x0:_0x5bce87?_0x3936fe(_0x1c15cb,_0x3be35b):_0x1c15cb,_0x267149=_0x520bde[_0x447b39(0x418)]-0x1,_0x387fd9;_0x267149>=0x0;_0x267149--)(_0x387fd9=_0x520bde[_0x267149])&&(_0x3dcbc8=_0x387fd9(_0x3dcbc8)||_0x3dcbc8);return _0x3dcbc8;},_0x559bea=(_0x4b62f1,_0x521e0f)=>(_0x592fa7,_0x3d361a)=>_0x521e0f(_0x592fa7,_0x3d361a,_0x4b62f1);const _0x4bb736=0x1389;let _0x3bab0f=class extends _0x4921b5[_0x449813(0x442)]{constructor(_0x351e19,_0x411ebb,_0x5ad90f,_0x28e41a){const _0x183b07=_0x449813;super(),_0x8d7f57(this,'_cursors',new Set()),_0x8d7f57(this,_0x183b07(0x371),null),(this[_0x183b07(0x39f)]=_0x351e19,this['_sheetSkeletonManagerService']=_0x411ebb,this[_0x183b07(0x3fd)]=_0x5ad90f,this[_0x183b07(0x317)]=_0x28e41a,this[_0x183b07(0x2c7)]());}[_0x449813(0x2c7)](){const _0x398122=_0x449813;this[_0x398122(0x3df)]['currentSkeleton$']['pipe'](_0x4449c2[_0x398122(0x34f)](this[_0x398122(0x41d)]),_0x4449c2[_0x398122(0x360)](_0xc4d48=>{const _0x2e7452=_0x398122;if(_0xc4d48){const _0x539a47=_0xc4d48[_0x2e7452(0x3c5)];return _0x66da6e['combineLatest'](this['_collabCursorController'][_0x2e7452(0x38a)](this[_0x2e7452(0x39f)]['unitId']),this[_0x2e7452(0x317)][_0x2e7452(0x2e3)])['pipe'](_0x4449c2[_0x2e7452(0x33d)](([_0x45be4d,_0x35f7a5])=>{const _0x5ecf45=_0x2e7452,_0x33ea4d=new Map();return _0x45be4d[_0x5ecf45(0x28b)]((_0x20fa66,_0x423c2c)=>{const _0x4876ce=_0x5ecf45;if(_0x20fa66[_0x4876ce(0x40f)]===_0x539a47){const _0x30216f={..._0x20fa66};_0x30216f[_0x4876ce(0x2c1)]=this[_0x4876ce(0x317)][_0x4876ce(0x3d7)](_0x20fa66[_0x4876ce(0x2c1)]),_0x33ea4d[_0x4876ce(0x2a1)](_0x423c2c,_0x30216f);}}),{'skeleton':_0xc4d48,'cursors':_0x33ea4d};}));}return _0x66da6e['of']({'skeleton':null,'cursors':new Map()});}))['subscribe'](({skeleton:_0x1a8a64,cursors:_0x5341cf})=>{const _0x3e7830=_0x398122;this[_0x3e7830(0x349)](),_0x1a8a64&&this[_0x3e7830(0x430)](_0x1a8a64,_0x5341cf);}),this['_sheetSkeletonManagerService']['currentSkeleton$'][_0x398122(0x1fe)](_0x5e812a=>{const _0x82c06a=_0x398122;if(_0x5e812a==null)return;const {skeleton:_0x272187}=_0x5e812a,{scene:_0x1b3a78}=this['_context'];_0x1b3a78[_0x82c06a(0x450)][_0x82c06a(0x38e)](_0x4921b5[_0x82c06a(0x3ac)](_0x3d24e0=>{const _0xbba18e=_0x82c06a;var _0x2924a3,_0xc889f9;const {offsetX:_0x133fcc,offsetY:_0x40306b}=_0x3d24e0,{x:_0x1fe42c,y:_0x442b3e}=_0x1b3a78['getRelativeToViewportCoord'](_0x22d409[_0xbba18e(0x256)]['FromArray']([_0x133fcc,_0x40306b])),{scaleX:_0x1b04a2,scaleY:_0x3a33a5}=_0x1b3a78[_0xbba18e(0x2e4)](),_0x545290=_0x1b3a78[_0xbba18e(0x1f3)](_0x22d409[_0xbba18e(0x2d5)][_0xbba18e(0x23b)]),_0x221acc=_0x1b3a78[_0xbba18e(0x393)](_0x22d409[_0xbba18e(0x256)][_0xbba18e(0x2f9)]([_0x1fe42c,_0x442b3e]),_0x545290),_0x381919=_0x272187[_0xbba18e(0x32e)](_0x133fcc,_0x40306b,_0x1b04a2,_0x3a33a5,_0x221acc);((_0x2924a3=this[_0xbba18e(0x371)])==null?void 0x0:_0x2924a3[_0xbba18e(0x258)])===_0x381919[_0xbba18e(0x258)]&&((_0xc889f9=this[_0xbba18e(0x371)])==null?void 0x0:_0xc889f9[_0xbba18e(0x286)])===_0x381919[_0xbba18e(0x286)]||this['_cursors']['forEach'](_0x53409e=>{const _0x31af3c=_0xbba18e;_0x53409e[_0x31af3c(0x28e)](_0x381919);});},0x64));});}['_updateCollabCursors'](_0xb52f62,_0x29a9fc){const _0x1ee520=_0x449813;var _0x4cc0b7;const _0xe1aee1=(_0x4cc0b7=this['_sheetSkeletonManagerService'][_0x1ee520(0x34a)]())==null?void 0x0:_0x4cc0b7[_0x1ee520(0x316)];if(!_0xe1aee1)return;const _0x43c777=this[_0x1ee520(0x3e2)]();if(!_0x43c777)return;this[_0x1ee520(0x36a)][_0x1ee520(0x28b)](_0x359146=>{const _0x2c7833=_0x1ee520;_0x359146[_0x2c7833(0x2b7)]();});const {scene:_0x230460}=_0x43c777,_0x75b7b5=_0x4e0124(Array[_0x1ee520(0x3a2)](_0x29a9fc[_0x1ee520(0x1ea)]()))[_0x1ee520(0x33d)](_0x408bcd=>{const _0x391b79=_0x1ee520,{color:_0x55ce0b,range:_0x1435c1,name:_0x4e6462,selection:_0x51d279,sheetID:_0xd3119e}=_0x408bcd,{startColumn:_0x29bfd4,startRow:_0xc8d6a1,endColumn:_0x508261,endRow:_0x5d8ef6}=_0x1435c1,_0x13d02a=_0x53da58[_0x391b79(0x2e9)](_0xc8d6a1,_0x29bfd4,_0x230460,_0xe1aee1),_0x2e07c7=_0x53da58['getCoordByCell'](_0x5d8ef6,_0x508261,_0x230460,_0xe1aee1),{columnHeaderHeightAndMarginTop:_0x1a7bd4}=_0xe1aee1,{startX:_0x26ca30,startY:_0x6ca787}=_0x13d02a,{endX:_0x4d870c,endY:_0x72e0ee}=_0x2e07c7,_0x47147c=_0x4d870c-_0x26ca30,_0x5b35d4=_0x72e0ee-_0x6ca787,_0x12e61c={'labelPosition':_0x6ca787-_0x1a7bd4>=_0x58db44?_0x391b79(0x2a6):_0x391b79(0x33a),'sheetID':_0xd3119e,'range':_0x1435c1,'color':_0x55ce0b,'name':_0x4e6462,'selection':_0x51d279,'left':_0x26ca30,'top':_0x6ca787,'width':_0x47147c,'height':_0x5b35d4,'evented':!0x1,'zIndex':_0x4bb736};return new _0x1a0019(_0x4e6462,_0x12e61c);});_0x230460[_0x1ee520(0x1da)](_0x75b7b5,_0x9a850a),this[_0x1ee520(0x36a)]=new Set(_0x75b7b5);}[_0x449813(0x349)](){const _0x4d39e2=_0x449813;var _0x178dcd;(_0x178dcd=this['_cursors'])==null||_0x178dcd[_0x4d39e2(0x28b)](_0x5716c5=>_0x5716c5[_0x4d39e2(0x2ec)]());}[_0x449813(0x3e2)](){const _0x410204=_0x449813;return _0x53da58[_0x410204(0x259)](this[_0x410204(0x39f)][_0x410204(0x287)],this[_0x410204(0x39f)]);}};_0x3bab0f=_0x4fdae2([_0x559bea(0x1,_0x4921b5[_0x449813(0x41c)](_0x53da58[_0x449813(0x1f2)])),_0x559bea(0x2,_0x4921b5[_0x449813(0x41c)](_0x3d739c)),_0x559bea(0x3,_0x4921b5['Inject'](_0x4921b5[_0x449813(0x25e)]))],_0x3bab0f);function _0x4e0124(_0x2cd084){const _0x9a4b32=_0x449813,_0x1663cb=new Map();return _0x2cd084[_0x9a4b32(0x28b)](_0x5e8d54=>{const _0xf3fc0e=_0x9a4b32;if(_0x1663cb[_0xf3fc0e(0x3fc)](_0x5e8d54['selection'])){const _0x5a4199=_0x1663cb[_0xf3fc0e(0x2dd)](_0x5e8d54['selection']);_0x5a4199[_0xf3fc0e(0x31e)]+=',\x20'+_0x5e8d54[_0xf3fc0e(0x31e)];}else _0x1663cb[_0xf3fc0e(0x2a1)](_0x5e8d54[_0xf3fc0e(0x379)],_0x5e8d54);}),Array['from'](_0x1663cb['values']());}var _0x4f72cd=Object['getOwnPropertyDescriptor'],_0x4643f0=(_0x112d9a,_0x47ee27,_0x3fc607,_0x4d073a)=>{const _0x262999=_0x449813;for(var _0x1a45ff=_0x4d073a>0x1?void 0x0:_0x4d073a?_0x4f72cd(_0x47ee27,_0x3fc607):_0x47ee27,_0x506537=_0x112d9a[_0x262999(0x418)]-0x1,_0x1e99fc;_0x506537>=0x0;_0x506537--)(_0x1e99fc=_0x112d9a[_0x506537])&&(_0x1a45ff=_0x1e99fc(_0x1a45ff)||_0x1a45ff);return _0x1a45ff;},_0x37b6f9=(_0xdb7d8a,_0x4e302e)=>(_0x5d802e,_0xb3a3d6)=>_0x4e302e(_0x5d802e,_0xb3a3d6,_0xdb7d8a);let _0x803c51=class extends _0x4921b5[_0x449813(0x292)]{constructor(_0x38aad0,_0x300978,_0x332b2c,_0x3424d1,_0x501b20,_0x5de0af){const _0x2d1b4f=_0x449813;super(),this[_0x2d1b4f(0x423)]=_0x38aad0,this[_0x2d1b4f(0x3a4)]=_0x300978,this[_0x2d1b4f(0x327)]=_0x332b2c,this[_0x2d1b4f(0x3bb)]=_0x3424d1,this[_0x2d1b4f(0x23d)]=_0x501b20,this[_0x2d1b4f(0x2db)]=_0x5de0af,this[_0x2d1b4f(0x24e)](),this[_0x2d1b4f(0x404)]();}[_0x449813(0x24e)](){const _0x8ca758=_0x449813;this[_0x8ca758(0x25c)](this[_0x8ca758(0x423)][_0x8ca758(0x35b)](()=>{const _0x49bbd9=_0x8ca758;if(this[_0x49bbd9(0x3a4)][_0x49bbd9(0x45c)]['size'])return this[_0x49bbd9(0x2db)]['t'](_0x49bbd9(0x3e3));}));}[_0x449813(0x404)](){const _0x37e7c5=_0x449813;this[_0x37e7c5(0x25c)](this[_0x37e7c5(0x327)]['event$']['subscribe'](_0xbc6824=>{const _0x512678=_0x37e7c5;_0xbc6824['id']===_0x1c12f2[_0x512678(0x3a0)]['OTHER_CLIENT_EDITING']&&this[_0x512678(0x3bb)][_0x512678(0x2d1)]({'type':_0x20d8fb[_0x512678(0x2ac)]['Warning'],'content':this[_0x512678(0x2db)]['t']('collaboration.single-unit.warning')}),_0xbc6824['id']===_0x1c12f2[_0x512678(0x3a0)][_0x512678(0x3e7)]&&this[_0x512678(0x3bb)]['show']({'type':_0x20d8fb[_0x512678(0x2ac)][_0x512678(0x2b1)],'content':this[_0x512678(0x2db)]['t'](_0x512678(0x26d))}),_0xbc6824['id']===_0x1c12f2[_0x512678(0x3a0)]['PERMISSION_DENIED']&&this['_notificationService'][_0x512678(0x2d1)]({'title':this[_0x512678(0x2db)]['t'](_0x512678(0x2b9)),'content':this[_0x512678(0x2db)]['t']('permission.content'),'type':_0x512678(0x288),'duration':0x0}),_0xbc6824['id']===_0x1c12f2[_0x512678(0x3a0)][_0x512678(0x224)]&&this[_0x512678(0x3bb)]['show']({'type':_0x20d8fb[_0x512678(0x2ac)][_0x512678(0x46f)],'content':this[_0x512678(0x2db)]['t']('collaboration.closeRoom')+'('+_0xbc6824[_0x512678(0x1e8)]+')'}),_0xbc6824['id']===_0x1c12f2[_0x512678(0x3a0)][_0x512678(0x2b5)]&&this[_0x512678(0x3bb)][_0x512678(0x2d1)]({'type':_0x20d8fb[_0x512678(0x2ac)][_0x512678(0x2b1)],'content':this[_0x512678(0x2db)]['t'](_0xbc6824[_0x512678(0x1e8)]||'')}),_0xbc6824['id']===_0x1c12f2[_0x512678(0x3a0)][_0x512678(0x378)]&&this[_0x512678(0x3bb)][_0x512678(0x2d1)]({'type':_0x20d8fb[_0x512678(0x2ac)][_0x512678(0x2b1)],'content':this['_localeService']['t'](_0x512678(0x294))}),_0xbc6824['id']===_0x1c12f2[_0x512678(0x3a0)][_0x512678(0x3c0)]&&this[_0x512678(0x3bb)]['show']({'type':_0x20d8fb[_0x512678(0x2ac)][_0x512678(0x46f)],'content':this[_0x512678(0x2db)]['t']('session.connection-failed')}),_0xbc6824['id']===_0x1c12f2[_0x512678(0x3a0)]['SUBMIT_CHANGESET_TIMEOUT']&&this[_0x512678(0x3bb)]['show']({'type':_0x20d8fb[_0x512678(0x2ac)][_0x512678(0x46f)],'content':this[_0x512678(0x2db)]['t'](_0x512678(0x3e4))});}));}};_0x803c51=_0x4643f0([_0x37b6f9(0x0,_0x56a892[_0x449813(0x266)]),_0x37b6f9(0x1,_0x1c12f2[_0x449813(0x240)]),_0x37b6f9(0x2,_0x4921b5[_0x449813(0x41c)](_0x1c12f2[_0x449813(0x26a)])),_0x37b6f9(0x3,_0x56a892[_0x449813(0x3fb)]),_0x37b6f9(0x4,_0x56a892[_0x449813(0x3f1)]),_0x37b6f9(0x5,_0x4921b5[_0x449813(0x41c)](_0x4921b5[_0x449813(0x46b)]))],_0x803c51);const _0x4dbd1e=_0x449813(0x429),_0x752cfd={};var _0x8a2a4a=Object[_0x449813(0x29c)],_0x2b3944=(_0x1fdbe9,_0x17792e,_0x3fd2af,_0x559d12)=>{const _0x24c113=_0x449813;for(var _0x13b0d0=_0x559d12>0x1?void 0x0:_0x559d12?_0x8a2a4a(_0x17792e,_0x3fd2af):_0x17792e,_0x5ade60=_0x1fdbe9[_0x24c113(0x418)]-0x1,_0x324753;_0x5ade60>=0x0;_0x5ade60--)(_0x324753=_0x1fdbe9[_0x5ade60])&&(_0x13b0d0=_0x324753(_0x13b0d0)||_0x13b0d0);return _0x13b0d0;},_0x9a337f=(_0x992be2,_0x2d3384)=>(_0xb91dc7,_0xb030cd)=>_0x2d3384(_0xb91dc7,_0xb030cd,_0x992be2);let _0x4b3596=class{constructor(_0x1269b1,_0x1af6fb){const _0x218d9f=_0x449813;this[_0x218d9f(0x216)]=_0x1269b1,this[_0x218d9f(0x3af)]=_0x1af6fb;}[_0x449813(0x407)](_0x316e5b){const _0x5ccaa7=_0x449813;this[_0x5ccaa7(0x3c1)](_0x316e5b),this[_0x5ccaa7(0x369)](_0x316e5b);}[_0x449813(0x2f8)](_0x18b519){const _0x3bd6bd=_0x449813,{unitID:_0x3a4bc8}=_0x18b519,_0x4a31b9=this['_renderManagerService'][_0x3bd6bd(0x3db)](_0x3a4bc8)[_0x3bd6bd(0x27e)](_0x3fda77[_0x3bd6bd(0x26c)]),{redoCache:_0x8e9ac8}=_0x4a31b9['getUndoRedoMutationParamsCache']();if(_0x8e9ac8['length']===0x0)return _0x18b519;let _0x4dd976=_0x4921b5[_0x3bd6bd(0x25d)][_0x3bd6bd(0x201)](_0x18b519['mutations'][0x0]);for(let _0x4a0e34=0x0;_0x4a0e34<_0x8e9ac8[_0x3bd6bd(0x418)];_0x4a0e34++){const _0x16d13e={'id':'doc.mutation.rich-text-editing','params':{..._0x8e9ac8[_0x4a0e34]}},_0x4ef553=this[_0x3bd6bd(0x216)]['transformMutation'](_0x4dd976,_0x16d13e,!0x1);if(_0x1a4d3b[_0x3bd6bd(0x41a)](_0x4ef553))throw _0x4ef553[_0x3bd6bd(0x288)];_0x4dd976=_0x4ef553[_0x3bd6bd(0x23c)];}return{..._0x4921b5['Tools'][_0x3bd6bd(0x201)](_0x18b519),'mutations':[_0x4dd976]};}[_0x449813(0x3c1)](_0x590209){const _0x392730=_0x449813,{unitID:_0x3dddd1}=_0x590209,_0x12e6c1=this[_0x392730(0x3af)]['getRenderById'](_0x3dddd1)[_0x392730(0x27e)](_0x3fda77[_0x392730(0x26c)]),{undoCache:_0x1858c5,redoCache:_0x2c29d2}=_0x12e6c1['getUndoRedoMutationParamsCache']();if(_0x1858c5[_0x392730(0x418)]===0x0||_0x2c29d2[_0x392730(0x418)]===0x0)return;const _0x54b4dc=[],_0x3f6fb8=[];let _0x4eec80=_0x4921b5[_0x392730(0x25d)][_0x392730(0x201)](_0x590209[_0x392730(0x3e5)][0x0]),_0x5182c3=_0x4921b5[_0x392730(0x25d)][_0x392730(0x201)](_0x590209['mutations'][0x0]);for(let _0x1cc40d=_0x1858c5[_0x392730(0x418)]-0x1;_0x1cc40d>=0x0;_0x1cc40d--){const _0x5d6cab={'id':_0x392730(0x439),'params':{..._0x1858c5[_0x1cc40d]}},_0xcf1a43={'id':_0x392730(0x439),'params':{..._0x2c29d2[_0x1cc40d]}},_0x59d0af=this['_transformService']['transformMutation'](_0x4eec80,_0x5d6cab,!0x1),_0x385ad8=this[_0x392730(0x216)][_0x392730(0x454)](_0x5182c3,_0xcf1a43,!0x1);if(_0x1a4d3b['isTransformMutationFailure'](_0x59d0af))throw _0x59d0af[_0x392730(0x288)];if(_0x1a4d3b[_0x392730(0x41a)](_0x385ad8))throw _0x385ad8['error'];_0x54b4dc[_0x392730(0x205)](_0x59d0af['m2Prime'][_0x392730(0x268)]),_0x3f6fb8[_0x392730(0x205)](_0x385ad8[_0x392730(0x24f)][_0x392730(0x268)]),_0x4eec80=_0x59d0af[_0x392730(0x23c)],_0x5182c3=_0x385ad8[_0x392730(0x23c)];}_0x12e6c1['setUndoRedoMutationParamsCache']({'undoCache':_0x54b4dc,'redoCache':_0x3f6fb8});}[_0x449813(0x369)](_0x5787a9){const _0x550c3a=_0x449813,{unitID:_0x81a3c7}=_0x5787a9,_0x14b20d=this['_renderManagerService'][_0x550c3a(0x3db)](_0x81a3c7)[_0x550c3a(0x27e)](_0x3fda77['DocIMEInputManagerService']),_0x34d661=_0x14b20d['getActiveRange']();if(_0x34d661==null)return;const _0x408f73=[{'id':_0x550c3a(0x439),'params':{'unitId':_0x5787a9['unitID'],'actions':null,'textRanges':[_0x34d661]}}],_0x10d7fc=this[_0x550c3a(0x216)][_0x550c3a(0x348)](_0x5787a9,_0x408f73);if(!_0x1a4d3b['isTransformMutationsWithChangesetSuccess'](_0x10d7fc))throw _0x10d7fc[_0x550c3a(0x288)];const _0x387e7e=_0x10d7fc[_0x550c3a(0x24f)][0x0][_0x550c3a(0x268)][_0x550c3a(0x2ce)];Array['isArray'](_0x387e7e)&&_0x387e7e['length']&&_0x14b20d[_0x550c3a(0x332)](_0x387e7e[0x0]);}};_0x4b3596=_0x2b3944([_0x9a337f(0x0,_0x1a4d3b[_0x449813(0x310)]),_0x9a337f(0x1,_0x22d409[_0x449813(0x2e2)])],_0x4b3596);var _0x19407e=Object[_0x449813(0x29c)],_0x20bda7=(_0x5d92f1,_0x41751f,_0x196ca4,_0x47b859)=>{const _0x1ca907=_0x449813;for(var _0x3235db=_0x47b859>0x1?void 0x0:_0x47b859?_0x19407e(_0x41751f,_0x196ca4):_0x41751f,_0x5e6d98=_0x5d92f1[_0x1ca907(0x418)]-0x1,_0x31aaeb;_0x5e6d98>=0x0;_0x5e6d98--)(_0x31aaeb=_0x5d92f1[_0x5e6d98])&&(_0x3235db=_0x31aaeb(_0x3235db)||_0x3235db);return _0x3235db;},_0x275655=(_0x33324a,_0x44ea74)=>(_0x52f8c3,_0x3d6cfc)=>_0x44ea74(_0x52f8c3,_0x3d6cfc,_0x33324a);let _0x34c2df=class{constructor(_0x255990,_0x4ed34e,_0x5c9125){const _0x3a9282=_0x449813;this['_injector']=_0x255990,this['_transformService']=_0x4ed34e,this[_0x3a9282(0x313)]=_0x5c9125;}['transformStateCache'](_0x1e5d0a){this['_transformHistoryAndStateStack'](_0x1e5d0a);}[_0x449813(0x2f8)](_0x20a1c6){const _0x2c1753=_0x449813,{unitID:_0x11ca28}=_0x20a1c6,{collaboration:_0xcc1e9d}=this[_0x2c1753(0x313)][_0x2c1753(0x207)](_0x11ca28);if(_0xcc1e9d[_0x2c1753(0x418)]===0x0)return _0x20a1c6;let _0x294778=_0x4921b5[_0x2c1753(0x25d)][_0x2c1753(0x201)](_0x20a1c6['mutations'][0x0]);for(let _0x436981=0x0;_0x436981<_0xcc1e9d[_0x2c1753(0x418)];_0x436981++){const _0x3a69bf={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0xcc1e9d[_0x436981][_0x2c1753(0x2a2)],..._0xcc1e9d[_0x436981][_0x2c1753(0x3bf)]}},_0x40cd95=this[_0x2c1753(0x216)][_0x2c1753(0x454)](_0x294778,_0x3a69bf,!0x1);if(_0x1a4d3b['isTransformMutationFailure'](_0x40cd95))throw _0x40cd95[_0x2c1753(0x288)];_0x294778=_0x40cd95[_0x2c1753(0x23c)];}return{..._0x4921b5[_0x2c1753(0x25d)][_0x2c1753(0x201)](_0x20a1c6),'mutations':[_0x294778]};}['_transformHistoryAndStateStack'](_0x4a2c61){const _0x43f5ca=_0x449813,{unitID:_0x479120}=_0x4a2c61,{history:_0x1bc44e,collaboration:_0x4a2ba0}=this[_0x43f5ca(0x313)][_0x43f5ca(0x207)](_0x479120);if(_0x1bc44e[_0x43f5ca(0x418)]===0x0&&_0x4a2ba0[_0x43f5ca(0x418)]===0x0)return;const _0x1f88b2=[],_0x41f130=[];let _0x3807ac=_0x4921b5[_0x43f5ca(0x25d)][_0x43f5ca(0x201)](_0x4a2c61['mutations'][0x0]),_0x52707d=_0x4921b5[_0x43f5ca(0x25d)][_0x43f5ca(0x201)](_0x4a2c61[_0x43f5ca(0x3e5)][0x0]);for(let _0x4f78e7=_0x1bc44e[_0x43f5ca(0x418)]-0x1;_0x4f78e7>=0x0;_0x4f78e7--){const _0x316c83={'id':_0x43f5ca(0x439),'params':{'unitId':_0x1bc44e[_0x4f78e7][_0x43f5ca(0x2a2)],..._0x1bc44e[_0x4f78e7][_0x43f5ca(0x246)]}},_0x3a5dd8={'id':_0x43f5ca(0x439),'params':{'unitId':_0x1bc44e[_0x4f78e7]['unitId'],..._0x1bc44e[_0x4f78e7][_0x43f5ca(0x3bf)]}},_0x2b9652=this[_0x43f5ca(0x216)]['transformMutation'](_0x3807ac,_0x316c83,!0x1),_0x3527a3=this[_0x43f5ca(0x216)][_0x43f5ca(0x454)](_0x52707d,_0x3a5dd8,!0x1);if(_0x1a4d3b[_0x43f5ca(0x41a)](_0x2b9652))throw _0x2b9652['error'];if(_0x1a4d3b['isTransformMutationFailure'](_0x3527a3))throw _0x3527a3[_0x43f5ca(0x288)];_0x1f88b2['unshift']({..._0x1bc44e[_0x4f78e7],'undoState':_0x2b9652['m2Prime'][_0x43f5ca(0x268)],'redoState':_0x3527a3[_0x43f5ca(0x24f)][_0x43f5ca(0x268)]}),_0x3807ac=_0x2b9652[_0x43f5ca(0x23c)],_0x52707d=_0x3527a3['m1Prime'];}_0x3807ac=_0x4921b5['Tools'][_0x43f5ca(0x201)](_0x4a2c61[_0x43f5ca(0x3e5)][0x0]),_0x52707d=_0x4921b5[_0x43f5ca(0x25d)][_0x43f5ca(0x201)](_0x4a2c61[_0x43f5ca(0x3e5)][0x0]);for(let _0x5a4b49=_0x4a2ba0[_0x43f5ca(0x418)]-0x1;_0x5a4b49>=0x0;_0x5a4b49--){const _0x5cc361={'id':_0x43f5ca(0x439),'params':{'unitId':_0x4a2ba0[_0x5a4b49][_0x43f5ca(0x2a2)],..._0x4a2ba0[_0x5a4b49]['undoState']}},_0x1354b2={'id':_0x43f5ca(0x439),'params':{'unitId':_0x4a2ba0[_0x5a4b49][_0x43f5ca(0x2a2)],..._0x4a2ba0[_0x5a4b49][_0x43f5ca(0x3bf)]}},_0x3a3c1e=this[_0x43f5ca(0x216)][_0x43f5ca(0x454)](_0x3807ac,_0x5cc361,!0x1),_0x2abae3=this['_transformService'][_0x43f5ca(0x454)](_0x52707d,_0x1354b2,!0x1);if(_0x1a4d3b[_0x43f5ca(0x41a)](_0x3a3c1e))throw _0x3a3c1e[_0x43f5ca(0x288)];if(_0x1a4d3b['isTransformMutationFailure'](_0x2abae3))throw _0x2abae3[_0x43f5ca(0x288)];_0x41f130[_0x43f5ca(0x205)]({..._0x4a2ba0[_0x5a4b49],'undoState':_0x3a3c1e[_0x43f5ca(0x24f)][_0x43f5ca(0x268)],'redoState':_0x2abae3[_0x43f5ca(0x24f)][_0x43f5ca(0x268)]}),_0x3807ac=_0x3a3c1e[_0x43f5ca(0x23c)],_0x52707d=_0x2abae3[_0x43f5ca(0x23c)];}this[_0x43f5ca(0x313)][_0x43f5ca(0x2ca)](_0x479120,{'history':_0x1f88b2,'collaboration':_0x41f130});}};_0x34c2df=_0x20bda7([_0x275655(0x0,_0x4921b5[_0x449813(0x41c)](_0x4921b5[_0x449813(0x24c)])),_0x275655(0x1,_0x1a4d3b[_0x449813(0x310)]),_0x275655(0x2,_0x4921b5[_0x449813(0x41c)](_0x3fda77[_0x449813(0x300)]))],_0x34c2df);var _0x367867=Object[_0x449813(0x29c)],_0x42eb0a=(_0x5b34d8,_0x385da2,_0x4bf011,_0x3a38ff)=>{const _0x2dcb06=_0x449813;for(var _0x11a966=_0x3a38ff>0x1?void 0x0:_0x3a38ff?_0x367867(_0x385da2,_0x4bf011):_0x385da2,_0x2ba06a=_0x5b34d8[_0x2dcb06(0x418)]-0x1,_0x444e26;_0x2ba06a>=0x0;_0x2ba06a--)(_0x444e26=_0x5b34d8[_0x2ba06a])&&(_0x11a966=_0x444e26(_0x11a966)||_0x11a966);return _0x11a966;},_0x19e4c4=(_0x51256b,_0x434c39)=>(_0x2f04be,_0x57cc22)=>_0x434c39(_0x2f04be,_0x57cc22,_0x51256b);let _0x104c36=class{constructor(_0x5f080b,_0x533944){const _0x67260f=_0x449813;this['_injector']=_0x5f080b,this[_0x67260f(0x216)]=_0x533944;}[_0x449813(0x22b)](_0x3a7212){const _0x47f5e8=_0x449813;var _0x3c6510;const _0x1da1ef=this[_0x47f5e8(0x27f)][_0x47f5e8(0x2dd)](_0x4bc80d['DocSelectionManagerService']),_0x24e4c6=(_0x3c6510=_0x1da1ef[_0x47f5e8(0x3bd)]())!=null?_0x3c6510:[];if(_0x24e4c6[_0x47f5e8(0x418)]===0x0)return;const _0x57635c=_0x3a7212[_0x47f5e8(0x2b3)],_0x389ec8=[{'id':_0x47f5e8(0x439),'params':{'unitId':_0x57635c,'actions':null,'textRanges':_0x24e4c6}}],_0x223e40=this[_0x47f5e8(0x216)][_0x47f5e8(0x348)](_0x3a7212,_0x389ec8);if(!_0x1a4d3b[_0x47f5e8(0x283)](_0x223e40))throw _0x223e40['error'];const _0x1a7b54=_0x223e40[_0x47f5e8(0x24f)][0x0][_0x47f5e8(0x268)][_0x47f5e8(0x2ce)];Array[_0x47f5e8(0x1d8)](_0x1a7b54)&&_0x1a7b54['length']&&_0x1da1ef[_0x47f5e8(0x25a)](_0x1a7b54,{'unitId':_0x57635c,'subUnitId':_0x57635c},!0x1);}};_0x104c36=_0x42eb0a([_0x19e4c4(0x0,_0x4921b5['Inject'](_0x4921b5[_0x449813(0x24c)])),_0x19e4c4(0x1,_0x1a4d3b[_0x449813(0x310)])],_0x104c36);var _0x4d2ba6=Object[_0x449813(0x29c)],_0x5ea8be=(_0xb042fb,_0x48ae05,_0xaae952,_0x46e32c)=>{for(var _0x390e75=_0x46e32c>0x1?void 0x0:_0x46e32c?_0x4d2ba6(_0x48ae05,_0xaae952):_0x48ae05,_0x4a4bcc=_0xb042fb['length']-0x1,_0x4f7776;_0x4a4bcc>=0x0;_0x4a4bcc--)(_0x4f7776=_0xb042fb[_0x4a4bcc])&&(_0x390e75=_0x4f7776(_0x390e75)||_0x390e75);return _0x390e75;},_0x3b0622=(_0x4fe63a,_0x16278a)=>(_0x1bd25f,_0x141469)=>_0x16278a(_0x1bd25f,_0x141469,_0x4fe63a);let _0x2f73bf=class extends _0x4921b5[_0x449813(0x292)]{constructor(_0x5621de,_0x51171e,_0x4b4085,_0x19d0d0,_0x2ee2ea,_0x213568,_0x77c25d,_0x233518){const _0x3cb707=_0x449813;super(),_0x8d7f57(this,_0x3cb707(0x215),new _0x66da6e[(_0x3cb707(0x2ae))](_0x1c12f2[_0x3cb707(0x375)]['NOT_COLLAB'])),(this[_0x3cb707(0x313)]=_0x5621de,this[_0x3cb707(0x44b)]=_0x51171e,this[_0x3cb707(0x416)]=_0x4b4085,this['_docTransformStateCacheService']=_0x19d0d0,this['_docTransformSelectionsService']=_0x2ee2ea,this[_0x3cb707(0x425)]=_0x213568,this[_0x3cb707(0x3bb)]=_0x77c25d,this[_0x3cb707(0x2db)]=_0x233518,this[_0x3cb707(0x2e6)]());}['_initEntityListener'](){const _0x90a3ea=_0x449813;this['disposeWithMe'](this[_0x90a3ea(0x44b)][_0x90a3ea(0x434)][_0x90a3ea(0x1fe)](_0x5c4a72=>{const _0x3fbc08=_0x90a3ea,_0x11aba5=this[_0x3fbc08(0x313)]['docStateChange$'][_0x3fbc08(0x1fe)](_0x43b3d1=>{const _0x567c46=_0x3fbc08;if(_0x43b3d1==null)return;const {unitId:_0x4033d8,redoState:_0x1e3c7d,commandId:_0x142e64}=_0x43b3d1;if(_0x4033d8!==_0x5c4a72['unitID'])return;const _0x3dc534={'id':_0x142e64,'type':_0x4921b5[_0x567c46(0x39a)][_0x567c46(0x33e)],'params':{'unitId':_0x4033d8,'actions':_0x1e3c7d[_0x567c46(0x2e0)],'textRanges':null}};_0x5c4a72[_0x567c46(0x3de)](_0x3dc534);});if(_0x5c4a72[_0x3fbc08(0x25c)](_0x11aba5),_0x5c4a72 instanceof _0x1c12f2[_0x3fbc08(0x352)]){const _0x2a795c={'onTransformIME':_0x2d0d7f=>this[_0x3fbc08(0x416)][_0x3fbc08(0x407)](_0x2d0d7f),'onTransformState':_0x3e9bd5=>this['_docTransformStateCacheService'][_0x3fbc08(0x1f5)](_0x3e9bd5),'onTransformSelections':_0x4b18ba=>this[_0x3fbc08(0x419)][_0x3fbc08(0x22b)](_0x4b18ba),'onSyncEditingCollabCursor':_0x120e66=>this[_0x3fbc08(0x425)][_0x3fbc08(0x2d3)](_0x120e66),'onTransformRemoteChangesetByIMECache':_0x259ece=>this[_0x3fbc08(0x416)]['transformRemoteChangeset'](_0x259ece),'onTransformRemoteChangesetByStateCache':_0x39e212=>this[_0x3fbc08(0x322)][_0x3fbc08(0x2f8)](_0x39e212)};_0x5c4a72['addHandlerCallback'](_0x2a795c);}}));}};_0x2f73bf=_0x5ea8be([_0x3b0622(0x0,_0x4921b5[_0x449813(0x41c)](_0x3fda77[_0x449813(0x300)])),_0x3b0622(0x1,_0x4921b5[_0x449813(0x41c)](_0x1c12f2[_0x449813(0x21a)])),_0x3b0622(0x2,_0x4921b5[_0x449813(0x41c)](_0x4b3596)),_0x3b0622(0x3,_0x4921b5['Inject'](_0x34c2df)),_0x3b0622(0x4,_0x4921b5[_0x449813(0x41c)](_0x104c36)),_0x3b0622(0x5,_0x4921b5['Inject'](_0x2162e3)),_0x3b0622(0x6,_0x56a892[_0x449813(0x3fb)]),_0x3b0622(0x7,_0x4921b5[_0x449813(0x41c)](_0x4921b5[_0x449813(0x46b)]))],_0x2f73bf);var _0xf8c48c=Object[_0x449813(0x29c)],_0x1b0344=(_0x1b357a,_0x787dd5,_0x261a48,_0x3cb5cf)=>{for(var _0x15258e=_0x3cb5cf>0x1?void 0x0:_0x3cb5cf?_0xf8c48c(_0x787dd5,_0x261a48):_0x787dd5,_0x18f007=_0x1b357a['length']-0x1,_0x4da289;_0x18f007>=0x0;_0x18f007--)(_0x4da289=_0x1b357a[_0x18f007])&&(_0x15258e=_0x4da289(_0x15258e)||_0x15258e);return _0x15258e;},_0x226d09=(_0x28b4da,_0x48663b)=>(_0x2a7c28,_0x230dbc)=>_0x48663b(_0x2a7c28,_0x230dbc,_0x28b4da);let _0xe558cc=class extends _0x4921b5['Disposable']{constructor(_0x273495,_0xb5d3a1,_0x4f111e){const _0x5f1f85=_0x449813;super(),_0x8d7f57(this,_0x5f1f85(0x39d),new Map()),_0x8d7f57(this,_0x5f1f85(0x30f),new Map()),_0x8d7f57(this,_0x5f1f85(0x347),!0x1),(this[_0x5f1f85(0x2e5)]=_0x273495,this[_0x5f1f85(0x1f0)]=_0xb5d3a1,this[_0x5f1f85(0x2fa)]=_0x4f111e);}['disableLocalCache'](){const _0xaf6d0a=_0x449813;this[_0xaf6d0a(0x347)]=!0x0;}[_0x449813(0x308)](){const _0x54e4aa=_0x449813;this[_0x54e4aa(0x347)]=!0x1;}get[_0x449813(0x45c)](){const _0x46755d=_0x449813;return this[_0x46755d(0x30f)];}[_0x449813(0x2ec)](){const _0x5ed37f=_0x449813;this['exhaustSavingTask']()['then'](()=>super[_0x5ed37f(0x2ec)]());}async[_0x449813(0x25b)](_0xc13a14){const _0x49f3d0=_0x449813;return this[_0x49f3d0(0x347)]?null:this['_localStorageService']['getItem'](_0x1c12f2[_0x49f3d0(0x391)](_0xc13a14));}async[_0x449813(0x3c6)](_0x3af88f,_0x3f847a){const _0x3cb8d0=_0x449813;return!!this[_0x3cb8d0(0x1f0)][_0x3cb8d0(0x2b2)](_0x3af88f,_0x3f847a);}[_0x449813(0x1fb)](_0x15ba16,_0x48b2f9,_0x4e9860,_0x4f90b3){const _0x179314=_0x449813,_0x1a729e=this['_revisionService'][_0x179314(0x363)](_0x15ba16);this['_cachedData'][_0x179314(0x2a1)](_0x15ba16,{'unitID':_0x15ba16,'type':_0x48b2f9,'awaitingChangeset':_0x4e9860,'mutations':_0x4f90b3,'rev':_0x1a729e}),this[_0x179314(0x30f)]['has'](_0x15ba16)||this['_scheduleSaving'](_0x15ba16);}[_0x449813(0x1e4)](_0x2a6a6d){const _0x437631=_0x449813,_0x2b58c7=this[_0x437631(0x2c9)]();_0x2b58c7===0x0?this[_0x437631(0x244)](_0x2a6a6d):this[_0x437631(0x30f)][_0x437631(0x2a1)](_0x2a6a6d,setTimeout(()=>this['_saveCache'](_0x2a6a6d),_0x2b58c7));}[_0x449813(0x2c9)](){const _0x51393d=_0x449813;var _0x24a059;return(_0x24a059=this[_0x51393d(0x2e5)][_0x51393d(0x471)](_0x1c12f2['LOCAL_CACHE_INTERVAL_KEY']))!=null?_0x24a059:_0x1c12f2['LOCAL_CACHE_INTERVAL'];}[_0x449813(0x244)](_0x3b7f7e){const _0x3663fe=_0x449813,_0x40b627=this[_0x3663fe(0x30f)][_0x3663fe(0x2dd)](_0x3b7f7e);return _0x40b627!==void 0x0&&window[_0x3663fe(0x2ba)](_0x40b627),this[_0x3663fe(0x1f0)][_0x3663fe(0x2b2)](_0x1c12f2[_0x3663fe(0x391)](_0x3b7f7e),this[_0x3663fe(0x39d)]['get'](_0x3b7f7e))[_0x3663fe(0x3ef)](()=>this[_0x3663fe(0x30f)][_0x3663fe(0x474)](_0x3b7f7e));}async[_0x449813(0x358)](){const _0x12408d=_0x449813,_0x36dd1d=[];this[_0x12408d(0x30f)]['forEach']((_0x405ad4,_0x84f8e0)=>{const _0x365f6b=_0x12408d;window['clearTimeout'](_0x405ad4),_0x36dd1d[_0x365f6b(0x2a3)](this[_0x365f6b(0x244)](_0x84f8e0)['then'](()=>{const _0x2005de=_0x365f6b;this[_0x2005de(0x30f)][_0x2005de(0x474)](_0x84f8e0);}));}),await Promise[_0x12408d(0x2df)](_0x36dd1d);}};_0xe558cc=_0x1b0344([_0x226d09(0x0,_0x4921b5[_0x449813(0x2f5)]),_0x226d09(0x1,_0x4921b5[_0x449813(0x356)]),_0x226d09(0x2,_0x4921b5[_0x449813(0x41c)](_0x1a4d3b[_0x449813(0x421)]))],_0xe558cc);class _0x589d2e extends _0x4921b5[_0x449813(0x442)]{constructor(){const _0x33b963=_0x449813;super(),_0x8d7f57(this,'urlChange$'),this[_0x33b963(0x21d)]=_0x66da6e[_0x33b963(0x1e5)](window,_0x33b963(0x26e))[_0x33b963(0x35e)](_0x66da6e[_0x33b963(0x34f)](this['dispose$']),_0x66da6e[_0x33b963(0x255)](0x1),_0x66da6e[_0x33b963(0x3f3)](void 0x0));}[_0x449813(0x2c4)](_0x2fe2f8,_0x1d06ef,_0x36e547=!0x1){const _0x257b2a=_0x449813,_0x484cac=new URL(window[_0x257b2a(0x345)][_0x257b2a(0x31b)]);_0x484cac[_0x257b2a(0x3be)][_0x257b2a(0x2a1)](_0x2fe2f8,_0x1d06ef),_0x36e547?window['history'][_0x257b2a(0x21e)]('','',_0x484cac[_0x257b2a(0x36d)]()):window[_0x257b2a(0x2a8)][_0x257b2a(0x21f)]('','',_0x484cac[_0x257b2a(0x36d)]());}[_0x449813(0x2a5)](_0x1ef7c9,_0x1818e5=!0x1){const _0x7319b7=_0x449813,_0x30b5f9=new URL(window[_0x7319b7(0x345)]['href']);_0x30b5f9[_0x7319b7(0x3be)]['delete'](_0x1ef7c9),_0x1818e5?window[_0x7319b7(0x2a8)][_0x7319b7(0x21e)]('','',_0x30b5f9[_0x7319b7(0x36d)]()):window['history'][_0x7319b7(0x21f)]('','',_0x30b5f9[_0x7319b7(0x36d)]());}[_0x449813(0x372)](_0x2671eb){const _0x87f5fc=_0x449813;var _0x319d7a;return(_0x319d7a=new URL(window[_0x87f5fc(0x345)][_0x87f5fc(0x31b)])[_0x87f5fc(0x3be)][_0x87f5fc(0x2dd)](_0x2671eb))!=null?_0x319d7a:void 0x0;}}var _0x5827e7=Object[_0x449813(0x388)],_0x2c381d=Object['getOwnPropertyDescriptor'],_0x472c2c=(_0x12939d,_0x4b45d5,_0x312804)=>_0x4b45d5 in _0x12939d?_0x5827e7(_0x12939d,_0x4b45d5,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x312804}):_0x12939d[_0x4b45d5]=_0x312804,_0x2aab85=(_0x3821be,_0x4586bc,_0x25a4e1,_0x5679c5)=>{const _0x4802d0=_0x449813;for(var _0x5e222c=_0x5679c5>0x1?void 0x0:_0x5679c5?_0x2c381d(_0x4586bc,_0x25a4e1):_0x4586bc,_0x2aaec4=_0x3821be[_0x4802d0(0x418)]-0x1,_0x4c0b6d;_0x2aaec4>=0x0;_0x2aaec4--)(_0x4c0b6d=_0x3821be[_0x2aaec4])&&(_0x5e222c=_0x4c0b6d(_0x5e222c)||_0x5e222c);return _0x5e222c;},_0x93a56b=(_0xa97c59,_0x1df76e)=>(_0x3d5f68,_0x597159)=>_0x1df76e(_0x3d5f68,_0x597159,_0xa97c59),_0x97cd59=(_0x333724,_0x190bdc,_0x251749)=>_0x472c2c(_0x333724,_0x190bdc+'',_0x251749);const _0x1b69a2='UNIVER_COLLABORATION_CLIENT_WEB_PLUGIN';_0x11d7a5['UniverCollaborationClientUIPlugin']=class extends _0x4921b5[_0x449813(0x447)]{constructor(_0x1f6651=_0x752cfd,_0x22b6fa,_0x6a4f52,_0x327774){const _0x240f06=_0x449813;super(),this[_0x240f06(0x462)]=_0x1f6651,this[_0x240f06(0x3af)]=_0x22b6fa,this[_0x240f06(0x27f)]=_0x6a4f52,this[_0x240f06(0x2e5)]=_0x327774;const {..._0x379585}=_0x4921b5['merge']({},_0x752cfd,this[_0x240f06(0x462)]);this['_configService'][_0x240f06(0x278)](_0x4dbd1e,_0x379585);}[_0x449813(0x2e1)](){const _0x2432cf=_0x449813;this[_0x2432cf(0x432)](),this[_0x2432cf(0x2c2)]();}[_0x449813(0x297)](){const _0x572110=_0x449813;this[_0x572110(0x254)]();}[_0x449813(0x432)](){const _0xb883c3=_0x449813;var _0x4a7306;const _0x224280=[[_0xac4cbd],[_0x104c36],[_0x4b3596],[_0x34c2df],[_0x2162e3],[_0x475a16,{'useClass':_0x589d2e}],[_0x1d4e08[_0xb883c3(0x1de)],{'useClass':_0x1d4e08['WebSocketService']}],[_0x1c12f2[_0xb883c3(0x240)],{'useClass':_0xe558cc}],[_0x11d7a5['DesktopCollaborationStatusDisplayController']],[_0x2f73bf],[_0x803c51],[_0x3d739c],[_0x310481],[_0x11d7a5[_0xb883c3(0x408)]]];_0x4921b5['registerDependencies'](this['_injector'],_0x4921b5[_0xb883c3(0x2cd)](_0x224280,(_0x4a7306=this[_0xb883c3(0x462)])==null?void 0x0:_0x4a7306[_0xb883c3(0x346)]));}[_0x449813(0x254)](){const _0x42868d=_0x449813;this['disposeWithMe'](this['_renderManagerService'][_0x42868d(0x46a)](_0x4921b5[_0x42868d(0x351)][_0x42868d(0x299)],[_0x3a30e1])),this['disposeWithMe'](this[_0x42868d(0x3af)]['registerRenderModule'](_0x4921b5[_0x42868d(0x351)][_0x42868d(0x262)],[_0x3bab0f]));}['_initDependencies'](){const _0xdb86e2=_0x449813;_0x4921b5[_0xdb86e2(0x3d5)](this[_0xdb86e2(0x27f)],[[_0x3d739c],[_0x11d7a5[_0xdb86e2(0x2cb)]],[_0x2f73bf],[_0x803c51],[_0x11d7a5[_0xdb86e2(0x408)]]]);}},_0x97cd59(_0x11d7a5[_0x449813(0x35c)],_0x449813(0x417),_0x1b69a2),_0x11d7a5[_0x449813(0x35c)]=_0x2aab85([_0x4921b5['DependentOn'](_0x1c12f2['UniverCollaborationClientPlugin']),_0x93a56b(0x1,_0x22d409[_0x449813(0x2e2)]),_0x93a56b(0x2,_0x4921b5[_0x449813(0x41c)](_0x4921b5[_0x449813(0x24c)])),_0x93a56b(0x3,_0x4921b5['IConfigService'])],_0x11d7a5[_0x449813(0x35c)]);var _0x2a22d8=Object[_0x449813(0x29c)],_0x445dad=(_0x5a6cee,_0x1aa160,_0x1def1c,_0x3ba387)=>{for(var _0x3da75b=_0x3ba387>0x1?void 0x0:_0x3ba387?_0x2a22d8(_0x1aa160,_0x1def1c):_0x1aa160,_0x51cf11=_0x5a6cee['length']-0x1,_0x187622;_0x51cf11>=0x0;_0x51cf11--)(_0x187622=_0x5a6cee[_0x51cf11])&&(_0x3da75b=_0x187622(_0x3da75b)||_0x3da75b);return _0x3da75b;},_0x27de08=(_0xb84cca,_0x3bf2e8)=>(_0x5e505b,_0x41bb26)=>_0x3bf2e8(_0x5e505b,_0x41bb26,_0xb84cca);_0x11d7a5['BrowserCollaborationSocketService']=class extends _0x1c12f2['CollaborationSocketService']{constructor(_0x450161,_0x47cd97,_0x22d5da,_0x1c6b9a,_0x3b5733){super(_0x450161,_0x47cd97,_0x22d5da,_0x1c6b9a,_0x3b5733);}async[_0x449813(0x410)](_0x371686){const _0x3536f5=_0x449813,_0x5b758a=await this[_0x3536f5(0x331)](),_0x4f83a3=this[_0x3536f5(0x281)](_0x371686,_0x5b758a);return this[_0x3536f5(0x41b)](_0x4f83a3);}[_0x449813(0x281)](_0x479234,_0x1f0c7f){const _0x261202=_0x449813,_0x3b65cf=typeof window>'u'?new URL(_0x479234):new URL(_0x479234,window[_0x261202(0x345)][_0x261202(0x22f)]);_0x3b65cf[_0x261202(0x3be)][_0x261202(0x2a1)](_0x261202(0x2af),_0x1f0c7f);const _0x1d03ea=typeof window>'u'?new URLSearchParams():new URLSearchParams(window[_0x261202(0x345)][_0x261202(0x390)]);return _0x1d03ea[_0x261202(0x2dd)](_0x261202(0x26f))&&_0x3b65cf[_0x261202(0x3be)][_0x261202(0x2a1)](_0x261202(0x26f),_0x1d03ea[_0x261202(0x2dd)](_0x261202(0x26f))),_0x3b65cf[_0x261202(0x36d)]();}async['_getSessionTicket'](){const _0x19570c=_0x449813;var _0x6d7e8e,_0x5f5a8b,_0x5d0f44;const _0x443da5=this[_0x19570c(0x2e5)][_0x19570c(0x471)](_0x1c12f2['COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY']),_0xc275e4=(_0x6d7e8e=_0x443da5==null?void 0x0:_0x443da5['wsSessionTicketUrl'])!=null?_0x6d7e8e:_0x1c12f2[_0x19570c(0x44e)];return(_0x5d0f44=(_0x5f5a8b=(await this[_0x19570c(0x2fb)][_0x19570c(0x2dd)](_0xc275e4,{'headers':{'Content-Type':'application/json'}}))['body'])==null?void 0x0:_0x5f5a8b[_0x19570c(0x441)])!=null?_0x5d0f44:'';}},_0x11d7a5[_0x449813(0x208)]=_0x445dad([_0x27de08(0x0,_0x4921b5[_0x449813(0x41c)](_0x4921b5['Injector'])),_0x27de08(0x1,_0x4921b5[_0x449813(0x41c)](_0x1d4e08['HTTPService'])),_0x27de08(0x2,_0x4921b5[_0x449813(0x2f5)]),_0x27de08(0x3,_0x4921b5[_0x449813(0x2ee)]),_0x27de08(0x4,_0x1a4d3b[_0x449813(0x465)])],_0x11d7a5[_0x449813(0x208)]);var _0xde315c=(_0xb75d82=>(_0xb75d82[_0xb75d82[_0x449813(0x248)]=0x0]='UNDEFINED',_0xb75d82[_0xb75d82['OK']=0x1]='OK',_0xb75d82[_0xb75d82[_0x449813(0x2c0)]=0x2]='INTERNAL_ERROR',_0xb75d82[_0xb75d82[_0x449813(0x3eb)]=0x3]='PERMISSION_DENIED',_0xb75d82[_0xb75d82['NOT_FOUND']=0x4]='NOT_FOUND',_0xb75d82[_0xb75d82['UNAUTHENTICATED']=0x5]=_0x449813(0x2a9),_0xb75d82[_0xb75d82[_0x449813(0x362)]=0x6]=_0x449813(0x362),_0xb75d82[_0xb75d82['INVALID_ARGUMENT']=0x7]=_0x449813(0x32f),_0xb75d82[_0xb75d82[_0x449813(0x342)]=0x8]='TOO_MANY_REQUESTS',_0xb75d82[_0xb75d82['COMPLETION_FINISHED']=0x9]=_0x449813(0x318),_0xb75d82[_0xb75d82[_0x449813(0x269)]=0xa]=_0x449813(0x269),_0xb75d82[_0xb75d82[_0x449813(0x1ef)]=0xb]=_0x449813(0x1ef),_0xb75d82[_0xb75d82[_0x449813(0x3f5)]=0xc]=_0x449813(0x3f5),_0xb75d82[_0xb75d82[_0x449813(0x392)]=0xd]=_0x449813(0x392),_0xb75d82[_0xb75d82['EMAIL_VERIFY_CODE_NOT_FOUND_OR_EXPIRED']=0xe]=_0x449813(0x2eb),_0xb75d82[_0xb75d82['CHANGESET_REVISION_CONFILICT']=0x1389]=_0x449813(0x464),_0xb75d82[_0xb75d82[_0x449813(0x2a7)]=0x1771]='SNAPSHOT_INVALID_SNAPSHOT',_0xb75d82[_0xb75d82[_0x449813(0x2c5)]=0x1772]=_0x449813(0x2c5),_0xb75d82[_0xb75d82[_0x449813(0x39e)]=0x1773]='ENSURE_SNAPSHOT_EXECUTION',_0xb75d82[_0xb75d82[_0x449813(0x1df)]=0x1b59]=_0x449813(0x1df),_0xb75d82[_0xb75d82[_0x449813(0x365)]=0x1b5a]=_0x449813(0x365),_0xb75d82[_0xb75d82[_0x449813(0x252)]=0x1b5b]=_0x449813(0x252),_0xb75d82[_0xb75d82[_0x449813(0x2f3)]=0x1b5c]=_0x449813(0x2f3),_0xb75d82[_0xb75d82[_0x449813(0x2bf)]=0x1b5d]=_0x449813(0x2bf),_0xb75d82[_0xb75d82['CONNECTOR_DATA_TOO_LARGE']=0x1f41]='CONNECTOR_DATA_TOO_LARGE',_0xb75d82[_0xb75d82['LICENSE_MAX_UNITS_EXCEEDED']=0x2329]=_0x449813(0x446),_0xb75d82[_0xb75d82[_0x449813(0x45e)]=0x232a]=_0x449813(0x45e),_0xb75d82[_0xb75d82['LICENSE_IMPORT_SIZE_EXCEEDED']=0x232b]=_0x449813(0x260),_0xb75d82[_0xb75d82[_0x449813(0x27d)]=0x232c]=_0x449813(0x27d),_0xb75d82[_0xb75d82[_0x449813(0x20b)]=0x232d]=_0x449813(0x20b),_0xb75d82[_0xb75d82[_0x449813(0x21c)]=0x2711]=_0x449813(0x21c),_0xb75d82[_0xb75d82[_0x449813(0x209)]=0x2712]='YUUMI_URL_COL_OUT_OF_RANGE',_0xb75d82[_0xb75d82['YUUMI_RATE_OVER_LIMIT']=0x2713]=_0x449813(0x273),_0xb75d82[_0xb75d82[_0x449813(0x3d8)]=0x2714]='YUUMI_SUBSCRIPTION_NOT_FOUND',_0xb75d82[_0xb75d82[_0x449813(0x3b4)]=0x271a]=_0x449813(0x3b4),_0xb75d82[_0xb75d82[_0x449813(0x3c8)]=0x271b]=_0x449813(0x3c8),_0xb75d82[_0xb75d82[_0x449813(0x3c2)]=0x271c]=_0x449813(0x3c2),_0xb75d82[_0xb75d82[_0x449813(0x3a3)]=0x271d]='YUUMI_ALL_TABLES_IS_INVALID',_0xb75d82[_0xb75d82[_0x449813(0x414)]=0x271e]=_0x449813(0x414),_0xb75d82[_0xb75d82[_0x449813(0x42d)]=0x271f]=_0x449813(0x42d),_0xb75d82[_0xb75d82[_0x449813(0x350)]=0x2720]='YUUMI_CONNECTOR_URL_NOT_FOUND',_0xb75d82[_0xb75d82[_0x449813(0x241)]=0x2af9]=_0x449813(0x241),_0xb75d82[_0xb75d82[_0x449813(0x3c4)]=0x2ee1]=_0x449813(0x3c4),_0xb75d82[_0xb75d82[_0x449813(0x3e0)]=0x2ee2]=_0x449813(0x3e0),_0xb75d82[_0xb75d82[_0x449813(0x2cf)]=0x2ee3]=_0x449813(0x2cf),_0xb75d82[_0xb75d82[_0x449813(0x20c)]=0x2ee4]=_0x449813(0x20c),_0xb75d82[_0xb75d82[_0x449813(0x323)]=0x2ee5]=_0x449813(0x323),_0xb75d82[_0xb75d82[_0x449813(0x43a)]=0x32c9]=_0x449813(0x43a),_0xb75d82[_0xb75d82[_0x449813(0x30a)]=0x32ca]=_0x449813(0x30a),_0xb75d82[_0xb75d82[_0x449813(0x2ed)]=0x32cb]=_0x449813(0x2ed),_0xb75d82[_0xb75d82[_0x449813(0x204)]=-0x1]=_0x449813(0x204),_0xb75d82))(_0xde315c||{}),_0x5de5b0=Object[_0x449813(0x29c)],_0x1834d9=(_0x303ccf,_0x167d05,_0x1706c4,_0x3e35f7)=>{const _0x4a9eda=_0x449813;for(var _0x3330c3=_0x3e35f7>0x1?void 0x0:_0x3e35f7?_0x5de5b0(_0x167d05,_0x1706c4):_0x167d05,_0x398bc4=_0x303ccf[_0x4a9eda(0x418)]-0x1,_0xedc880;_0x398bc4>=0x0;_0x398bc4--)(_0xedc880=_0x303ccf[_0x398bc4])&&(_0x3330c3=_0xedc880(_0x3330c3)||_0x3330c3);return _0x3330c3;},_0x24d00d=(_0x2423ee,_0xec2bb6)=>(_0x342169,_0x1bc94c)=>_0xec2bb6(_0x342169,_0x1bc94c,_0x2423ee);_0x11d7a5[_0x449813(0x38c)]=class extends _0x4921b5[_0x449813(0x292)]{constructor(_0x3df10f,_0x3ce29e,_0x389592){const _0x221dd5=_0x449813;super(),this[_0x221dd5(0x413)]=_0x3df10f,this[_0x221dd5(0x2fb)]=_0x3ce29e,this[_0x221dd5(0x2e5)]=_0x389592;}async['runOnServer'](_0x3eaa4f,_0x2745bf,_0xc9c0ca,..._0x5771e3){const _0x49a2da=_0x449813;var _0x5d57fe,_0x941a18,_0x197f38,_0x5a4de5;const _0x5c5c31=this['_instanceService'][_0x49a2da(0x27c)]();if(!_0x5c5c31)throw new Error('[RemoteUniscriptService]:\x20no\x20focused\x20unit');const _0x58ded0=((_0x5d57fe=this[_0x49a2da(0x2e5)][_0x49a2da(0x471)](_0x1c12f2['REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY']))!=null?_0x5d57fe:_0x1c12f2[_0x49a2da(0x1f6)])+'/'+_0x3eaa4f+'/run/'+_0x2745bf,_0x10b113=new URL(window[_0x49a2da(0x345)][_0x49a2da(0x31b)]),_0x5b6f06={'scriptId':_0x3eaa4f,'runId':(_0x941a18=_0x10b113[_0x49a2da(0x3be)][_0x49a2da(0x2dd)](_0x49a2da(0x26f)))!=null?_0x941a18:'','function':_0x2745bf,'unitId':_0x5c5c31[_0x49a2da(0x2c6)](),'argsOfFunction':JSON[_0x49a2da(0x206)](_0x5771e3),'invokeId':(_0x197f38=_0xc9c0ca['invokeId'])!=null?_0x197f38:'','executionId':(_0x5a4de5=_0xc9c0ca[_0x49a2da(0x39c)])!=null?_0x5a4de5:''};try{const _0x15887c=await this[_0x49a2da(0x2fb)][_0x49a2da(0x272)](_0x58ded0,{'body':_0x5b6f06});return _0x15887c[_0x49a2da(0x435)][_0x49a2da(0x288)]&&_0x15887c[_0x49a2da(0x435)][_0x49a2da(0x288)][_0x49a2da(0x203)]!==_0xde315c['OK']?_0x49a2da(0x35f):_0x15887c[_0x49a2da(0x435)][_0x49a2da(0x236)];}catch{return _0x49a2da(0x35f);}}},_0x11d7a5['RemoteUniscriptService']=_0x1834d9([_0x24d00d(0x0,_0x4921b5[_0x449813(0x42b)]),_0x24d00d(0x1,_0x4921b5[_0x449813(0x41c)](_0x1d4e08['HTTPService'])),_0x24d00d(0x2,_0x4921b5[_0x449813(0x2f5)])],_0x11d7a5[_0x449813(0x38c)]);const _0x8b6028=0x7530,_0x45f572=_0x449813(0x3b0);class _0x4ad09d extends _0x4921b5['Disposable']{constructor(){const _0x59c1fb=_0x449813;super(),_0x8d7f57(this,'_id',_0x4921b5[_0x59c1fb(0x420)]()),_0x8d7f57(this,_0x59c1fb(0x470),new Set()),_0x8d7f57(this,_0x59c1fb(0x333),new Map()),_0x8d7f57(this,'_heartbeatTimer',null),_0x8d7f57(this,_0x59c1fb(0x243),new Map()),_0x8d7f57(this,_0x59c1fb(0x328),new Map()),this[_0x59c1fb(0x2c7)]();}[_0x449813(0x2ec)](){const _0x1a5f9e=_0x449813;super['dispose'](),this[_0x1a5f9e(0x243)][_0x1a5f9e(0x28b)]((_0x826794,_0x4f0b67)=>this['_removeClearOtherTimer'](_0x4f0b67)),this[_0x1a5f9e(0x2e7)]&&window[_0x1a5f9e(0x476)](this['_heartbeatTimer']);}['getUnitStatus$'](_0x1d7210){const _0x122bed=_0x449813;return this[_0x122bed(0x1fc)](_0x1d7210)[_0x122bed(0x35e)](_0x66da6e[_0x122bed(0x2f1)]());}['editingUnit'](_0x5e4eff){const _0x1ef5c9=_0x449813;this[_0x1ef5c9(0x470)][_0x1ef5c9(0x397)]===0x0&&this[_0x1ef5c9(0x22d)](),this[_0x1ef5c9(0x470)][_0x1ef5c9(0x44f)](_0x5e4eff),this[_0x1ef5c9(0x221)]({'type':0x0,'memberID':this[_0x1ef5c9(0x22e)],'unitIDs':[_0x5e4eff],'isForwarded':!0x1});}['disposeUnit'](_0x424438){const _0x11f150=_0x449813;this[_0x11f150(0x470)][_0x11f150(0x474)](_0x424438),this['_selfUnitIDs'][_0x11f150(0x397)]===0x0&&this[_0x11f150(0x2e7)]&&window['clearInterval'](this[_0x11f150(0x2e7)]);}[_0x449813(0x2c7)](){const _0x37fbfc=_0x449813;this['disposeWithMe'](_0x4921b5[_0x37fbfc(0x2ad)](_0x66da6e[_0x37fbfc(0x1e5)](window,'storage')['subscribe'](_0x29e944=>{const _0x2fe05d=_0x37fbfc;if(_0x29e944[_0x2fe05d(0x337)]!==_0x45f572||!_0x29e944[_0x2fe05d(0x291)])return;const _0x232d32=JSON[_0x2fe05d(0x239)](_0x29e944['newValue']);this[_0x2fe05d(0x3bc)](_0x232d32);}))),window[_0x37fbfc(0x23e)](_0x37fbfc(0x445),()=>this['_send']({'type':0x1,'memberID':this[_0x37fbfc(0x22e)],'unitIDs':Array['from'](this[_0x37fbfc(0x470)])}));}[_0x449813(0x3bc)](_0x5c75b4){const _0x307868=_0x449813;switch(_0x5c75b4[_0x307868(0x426)]){case 0x0:this[_0x307868(0x3d1)](_0x5c75b4);break;case 0x1:this[_0x307868(0x32b)](_0x5c75b4);break;case 0x2:this[_0x307868(0x23f)](_0x5c75b4);break;}}[_0x449813(0x3d1)](_0x42ce17){const _0x1bfa4b=_0x449813,{unitIDs:_0x1b69b8,memberID:_0x2dc394,isForwarded:_0x2c3885}=_0x42ce17;_0x1b69b8['forEach'](_0x4c971f=>{const _0x1055c=_0x4bb6;if(!_0x2c3885&&this[_0x1055c(0x333)][_0x1055c(0x3fc)](_0x4c971f)&&this['_ensureSubject'](_0x4c971f)[_0x1055c(0x2fd)](_0x1c12f2[_0x1055c(0x453)][_0x1055c(0x329)]),!this[_0x1055c(0x333)]['has'](_0x4c971f)||!this[_0x1055c(0x333)]['get'](_0x4c971f)['has'](_0x2dc394)){const _0x7d78d5=this[_0x1055c(0x333)][_0x1055c(0x2dd)](_0x4c971f)||new Set();_0x7d78d5['add'](_0x2dc394),this['_unitOnClients']['set'](_0x4c971f,_0x7d78d5),this['_scheduleClearOtherTimer'](_0x2dc394);}}),_0x2c3885||this[_0x1bfa4b(0x221)]({'type':0x0,'memberID':this[_0x1bfa4b(0x22e)],'unitIDs':[...this[_0x1bfa4b(0x470)]],'isForwarded':!0x0});}[_0x449813(0x2d8)](_0x4f2867){const _0x4c9746=_0x449813;this[_0x4c9746(0x380)](_0x4f2867);const _0x262bbf=window[_0x4c9746(0x41e)](()=>{const _0x44b82a=_0x4c9746;this['_unitOnClients'][_0x44b82a(0x28b)](_0x2a7ae5=>{const _0x4fcd32=_0x44b82a;_0x2a7ae5[_0x4fcd32(0x474)](_0x4f2867);});},_0x8b6028*0x2);this['_clearOtherTimers'][_0x4c9746(0x2a1)](_0x4f2867,_0x262bbf);}[_0x449813(0x380)](_0x3e4e14){const _0x49c64b=_0x449813;if(this['_clearOtherTimers']['has'](_0x3e4e14)){const _0x108856=this[_0x49c64b(0x243)]['get'](_0x3e4e14);_0x108856&&window[_0x49c64b(0x2ba)](_0x108856),this['_clearOtherTimers']['set'](_0x3e4e14,null);}}[_0x449813(0x32b)](_0x1041ce){const _0x48a93e=_0x449813,{memberID:_0x33dedc,unitIDs:_0x47bcee}=_0x1041ce;_0x47bcee[_0x48a93e(0x28b)](_0x411006=>{const _0x3ee50f=_0x48a93e;var _0x31f731;const _0x2657d0=this[_0x3ee50f(0x333)][_0x3ee50f(0x2dd)](_0x411006);_0x2657d0&&(_0x2657d0[_0x3ee50f(0x474)](_0x33dedc),(_0x31f731=this[_0x3ee50f(0x1fc)](_0x411006))==null||_0x31f731['next'](_0x2657d0[_0x3ee50f(0x397)]===0x0?_0x1c12f2[_0x3ee50f(0x453)][_0x3ee50f(0x2b6)]:_0x1c12f2[_0x3ee50f(0x453)][_0x3ee50f(0x329)]));}),this['_removeClearOtherTimer'](_0x33dedc);}[_0x449813(0x23f)](_0x5d6ec8){this['_scheduleClearOtherTimer'](_0x5d6ec8['memberID']);}[_0x449813(0x221)](_0x1c1652){const _0x358202=_0x449813;localStorage[_0x358202(0x2b2)](_0x45f572,JSON['stringify'](_0x1c1652));}[_0x449813(0x22d)](){this['_heartbeatTimer']=window['setInterval'](()=>{const _0x7b8fe9=_0x4bb6;this[_0x7b8fe9(0x221)]({'type':0x2,'memberID':this['_id']});},_0x8b6028);}[_0x449813(0x1fc)](_0xc3efb7){const _0x236e48=_0x449813;return this[_0x236e48(0x328)][_0x236e48(0x3fc)](_0xc3efb7)||this['_unitStatus'][_0x236e48(0x2a1)](_0xc3efb7,new _0x66da6e['BehaviorSubject'](_0x1c12f2[_0x236e48(0x453)][_0x236e48(0x2b6)])),this[_0x236e48(0x328)][_0x236e48(0x2dd)](_0xc3efb7);}}_0x11d7a5[_0x449813(0x245)]=_0x475a16,_0x11d7a5['SheetCollabCursorShape']=_0x1a0019,_0x11d7a5['WebBrowserSingleActiveUnitService']=_0x4ad09d,_0x11d7a5['WebURLService']=_0x589d2e,Object['defineProperty'](_0x11d7a5,Symbol[_0x449813(0x3f8)],{'value':_0x449813(0x463)});}));function _0x4bb6(_0x52253a,_0x1a013c){const _0x27fad7=_0x27fa();return _0x4bb6=function(_0x4bb649,_0x3d3254){_0x4bb649=_0x4bb649-0x1d8;let _0xcffcc0=_0x27fad7[_0x4bb649];return _0xcffcc0;},_0x4bb6(_0x52253a,_0x1a013c);}function _0x27fa(){const _0x3cfac6=['show','_imageIoService','syncEditingCollabCursor','SetTextSelectionsOperation','SHEET_VIEWPORT_KEY','InsertRowCommandId','current','_scheduleClearOtherTimer','jsx','UniverProCollaborationClient','_localeService','getUniverSheetInstance','get','some','all','actions','onStarting','IRenderManagerService','currentTheme$','getAncestorScale','_configService','_initEntityListener','_heartbeatTimer','forwardRef','getCoordByCell','_setupSubUnitSync','EMAIL_VERIFY_CODE_NOT_FOUND_OR_EXPIRED','dispose','EMAIL_HAS_BEEN_BOUND','ILogService','SYNCED','endColumn','distinctUntilChanged','_labelPosition','APPLY_PERMISSION_DENIED','_uiPartsService','IConfigService','_updateLocalCursor','red.300','transformRemoteChangeset','FromArray','_revisionService','_httpService','IUIPartsService','next','748rIKzHG','NodePositionConvertToRectRange','DocStateChangeManagerService','handleInsertCol','UniverEngineFormula','UniverDesign','DocSkeletonManagerService','replace','_entities','getColor','enableLocalCache','colorChannel1','MOBILE_HAS_BEEN_BOUND','#FFF','unsubscribe','whenReady','_backgroundColor','_saveTaskMap','ITransformService','_initStatusComponent','_session','_docStateChangeManagerService','_range','clsx','skeleton','_themeService','COMPLETION_FINISHED','subUnitId','yellow.400','href','round','text','name','_drawRectRange','range','univerjs-icon\x20univerjs-icon-','_docTransformStateCacheService','INVITE_CODE_ALREADY_BOUND','@univerjs/docs','0\x200\x2017\x2016','getSkeleton','_collaborationUIEventService','_unitStatus','OTHER_CLIENTS_EDITING','_startSheetCollabCursor','_handleLeaveEvent','DataLoaderService','USERS_LEAVE','getCellPositionByOffset','INVALID_ARGUMENT','TRANSFORM_CHANGE_OBSERVABLE_TYPE','_getSessionTicket','setActiveRange','_unitOnClients','Optional','_syncEditingCollabCursorService','SetDocZoomRatioOperation','key','RichTextEditingMutation','executeCommand','bottom','onPointerEnter$','reconnect','map','MUTATION','find','debug','_getMergeRange','TOO_MANY_REQUESTS','_cursorInfo$','save','location','override','_disabled','transformMutationsWithChangeset','_removeCollabCursors','getCurrent','useObservable','event$','on-line-icon','fillRule','takeUntil','YUUMI_CONNECTOR_URL_NOT_FOUND','UniverInstanceType','DocCollaborationEntity','11078796ODSnNy','path','loadUnit','ILocalStorageService','[CollaborationDataLoaderController]','exhaustSavingTask','_colorIndex','ICommandService','registerBeforeClose','UniverCollaborationClientUIPlugin','startColumn','pipe','Failed','switchMap','prototype','ALREADY_EXISTS','getCurrentRevOfUnit','_handleHover','APPLY_NON_SEQUENTIAL_REVISION','MemberService','univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','getMergeData','_transformPreviousActiveRange','_cursors','_toggleOnline','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','toString','xlink:href','lineTo','roomMembers$','_lastPointer','getParam','fill','InsertColCommandId','CollaborationStatus','UniverProCollaborationClientUi','_assignedColors','SOCKET_FAILED_RETRY','selection','asObservable','random','idSuffix','assign','exports','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','_removeClearOtherTimer','OFFLINE','function','InsertRangeMoveDownCommandId','UniverDocs','indexOf','EffectRefRangId','transformByState','defineProperty','sessionStatus$','getCollabCursors$','call','RemoteUniscriptService','UniverUi','subscribeEvent','engine','search','getLocalCacheKey','EMAIL_VERIFY_CODE_MISMATCH','getVpScrollXYInfoByPosToVp','defIds','getRangePointData','object','size','_shapes','http://www.w3.org/2000/svg','CommandType','collabStatus.conflict','executionId','_cachedData','ENSURE_SNAPSHOT_EXECUTION','_context','CollaborationUIEventId','isActive','from','YUUMI_ALL_TABLES_IS_INVALID','_localCacheService','_color','_univerInstanceService','_docClipboardService','translate(.97)','none','font','deserializeRangeWithSheet','debounce','AWAITING_WITH_PENDING','startRow','_renderManagerService','ACTIVE_UNIT_EVENT_CHANNEL','ranges','_eventUnsubscribe','1em','YUUMI_NO_CUBOID_FOR_QUESTION','Subject','getTypeOfUnitDisposed$','CollaborationEvent','_onRefRangeChange','getCurrentUnitForType','Shape','_messageService','_handleEvent','getDocRanges','searchParams','redoState','SOCKET_FAILED','_transformUndoRedoStack','YUUMI_TABLE_NOT_FOUND_IN_UNIT','@univerjs/engine-render','INVITE_CODE_HAS_BEEN_UES','sheetId','saveOfflineData','includes','YUUMI_ASYNCIO_CANCELLED','green.600','_updateSubUnitFromURLParams','use','RemoveRowCommandId','handleMoveRange','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','off-line-icon','_initCommandExecutedListener','_handleJoinEvent','react','IRemoteInstanceService','send','touchDependencies','arc','getColorFromTheme','YUUMI_SUBSCRIPTION_NOT_FOUND','white','black','getRenderById','eventID','_colorAssignService','onLocalMutation','_sheetSkeletonManagerService','INVALID_INVITE_CODE','registerRefRange','_getSheetObject','collaboration-client.offline-data-not-saved','session.collaboration-timeout','mutations','getOffsetConfig','CLOSE_ROOM','@univerjs-pro/collaboration-client','off-line-icon_clip0_910_343','div','PERMISSION_DENIED','0\x200\x2016\x2016','useDependency','COLORS','then','SessionStatus','INotificationService','icon','mapTo','toRgbString','MOBILE_VERIFY_CODE_NOT_FOUND_OR_EXPIRED','addClipboardHook','_logService','toStringTag','_urlService','handleInsertRangeMoveDown','IMessageService','has','_collabCursorController','children','MoveRangeCommandId','trim','filter','_anchorDot','handleInsertRangeMoveRight','_initEvent','source','_roomMembers$','transformIMECache','CollaborationDataLoaderController','SheetsSelectionsService','split','AWAITING','UniverProCollaboration','Unknown\x20user','ColorKit','sheetID','createSocket','defs','handleIRemoveCol','_instanceService','YUUMI_PROMPT_MAX_TOKENS_EXCEEDED','string','_docTransformIMECacheService','pluginName','length','_docTransformSelectionsService','isTransformMutationFailure','_doCreateSocket','Inject','dispose$','setTimeout','1017JTYMxK','generateRandomId','RevisionService','getTypeOfUnitAdded$','_beforeCloseService','_name','_docSyncEditingCollabCursorService','type','_refreshCollabCursors','91857OHzMwJ','collaboration-client-ui.config','UniverSheets','IUniverInstanceService','jsxs','YUUMI_AI_RUN_FAILED','6lVQXRb','contains','_updateCollabCursors','connectInjector','_registerDependencies','_getScale','entityInit$','body','collabStatus.notCollab','drawWith','selections','doc.mutation.rich-text-editing','WECHAT_HAS_BEEN_BOUND','_hideTimer','setAlpha','M0\x200H16V16H0z','@univerjs/core','_dataLoaderService','_collabCursorState$','ticket','RxDisposable','_hovered','TEXT_RANGE_LAYER_INDEX','unload','LICENSE_MAX_UNITS_EXCEEDED','Plugin','univer-mr-2\x20univer-flex\x20univer-text-xl','@univerjs/docs-ui','debounceTime','_collaborationController','restore','NodePositionConvertToCursor','DEFAULT_WS_SESSION_TICKET_URL','add','onPointerMove$','105016kapljQ','requireSession','UnitStatus','transformMutation','concat','min','on-line-icon_clip0_910_349','useRef','fillText','getSheetId','evenodd','saveTaskMap','endRow','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','url(#$1','combineLatest','_config','Module','CHANGESET_REVISION_CONFILICT','ISnapshotServerService','@univerjs/sheets-ui','url(#off-line-icon_clip0_910_343)','RegularPolygon','blue.400','registerRenderModule','LocaleService','onCommandExecuted','UPDATE_CURSOR','_cursor','Error','_selfUnitIDs','getConfig','getActiveSheet','complete','delete','resize','clearInterval','8688939ptPjtz','collab-client.tooltip.reconnect','serializeRangeWithSheet','isArray','symbol','addObjects','_textBubble','BuiltInUIPart','...','ISocketService','APPLY_REJECT','SetWorksheetActivateCommand','UniverDocsUi','createIdentifier','_render','_scheduleSaving','fromEvent','collabStatus.offline','className','data','univer-flex\x20univer-items-center','values','triggerDblclick','getMemberID','hovered','UniverRpc','MOBILE_VERIFY_CODE_MISMATCH','_localStorageService','transform','SheetSkeletonManagerService','getViewport','setShapeProps','transformStateCache','DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT','measureText','fromEventSubject','_drawAnchor','_toggleOffline','updateOfflineData','_ensureSubject','2600kHUfeJ','subscribe','IDocClipboardService','attrs','deepClone','_entityInit$','code','UNRECOGNIZED','unshift','stringify','getStateCache','BrowserCollaborationSocketService','YUUMI_URL_COL_OUT_OF_RANGE','displayName','LICENSE_DISTRO_REJECTED','USER_NOT_INVITED_CODE','getMember','createInstance','assignAColorForMemberID','collab-text-range-','_anchor','merge','tag','UniverSheetsUi','_status$','_transformService','829dffBCl','hasOwnProperty','_docSkeletonManagerService','CollaborationController','roomMembers','YUUMI_UNABLE_LOAD_URL','urlChange$','replaceState','pushState','cursorInfo','_send','substring','useCallback','CONFLICT','@univerjs/ui','addObject','activeSheet$','rxjs','_scene','apply','transformSelections','mask','_scheduleHeartbeat','_id','origin','currentColor','getCurrentSelections','100xaOKiS','subunit','closePath','_cursorShapes','result','init','_startDocCollabCursor','parse','hide','VIEW_MAIN','m1Prime','_notificationService','addEventListener','_handleHeartbeatEvent','ILocalCacheService','PY_RUNTIME_SCRIPT_ERROR','@univerjs/drawing','_clearOtherTimers','_saveCache','IURLService','undoState','imageSourceType','UNDEFINED','_getAnchorBounding','findNodePositionByCharIndex','getOwnPropertySymbols','Injector','_updateURLWithCurrentState','_setupBeforeClosingHandler','m2Prime','RefRangeService','focused$','APPLY_REVISION_CONFILICT','_online','_registerRenderDependencies','shareReplay','Vector2','_onCursorDelete','column','getSheetObject','replaceDocRanges','loadOfflineData','disposeWithMe','Tools','ThemeService','RECT','LICENSE_IMPORT_SIZE_EXCEEDED','UniverNetwork','UNIVER_SHEET','_hover','max','getCollabEntity$','IBeforeCloseService','76538bglnXy','params','LOGIN_FAILED','CollaborationUIEventService','jiqing.500','DocIMEInputManagerService','collaboration.closeRoom','popstate','runId','PENDING','collab-text-anchor-','post','YUUMI_RATE_OVER_LIMIT','isEditing','Rect','collabCursorState$','_onCursorUpdate','setConfig','clipPath','height','TEXT','getFocusedUnit','LICENSE_EXPORT_SIZE_EXCEEDED','with','_injector','status$','_createSocketURL','svg','isTransformMutationsWithChangesetSuccess','UniverDrawing','DOC_RANGE_TYPE','row','unit','error','createElement','collabStatus.fetchMiss','forEach','ONLINE','cursorInfo$','onMouseMove','Workbook','DocSelectionManagerService','newValue','Disposable','_memberService','session.will-retry','handleInsertRow','beginPath','onRendered','@univerjs/network','UNIVER_DOC','NOT_COLLAB','getUnhiddenWorksheets','getOwnPropertyDescriptor','856855LJEHiz','OffLineIcon','_refRangeService','_commandService','set','unitId','push','IImageIoService','removeParam','top','SNAPSHOT_INVALID_SNAPSHOT','history','UNAUTHENTICATED','uni.network.url-service','_initResize','MessageType','toDisposable','BehaviorSubject','sessionTicket','width','Warning','setItem','unitID','getValue','JOIN_ROOM_FAILED','NO_OTHER_CLIENTS_EDITING','makeDirty','purple.300','permission.title','clearTimeout','InsertRangeMoveRightCommandId','@univerjs/design','getSheetBySheetId','_drawTextRange','APPLY_DUPLICATED','INTERNAL_ERROR','color','_initDependencies','collabStatus.syncing','setParam','SNAPSHOT_HAS_BEEN_REMOVED','getUnitId','_init','_collabSessionService','_getSaveTimeout','setStateCache','DesktopCollaborationStatusDisplayController','React','mergeOverrideWithDependencies','textRanges','INVITE_CODE_REQUIRED','entries'];_0x27fa=function(){return _0x3cfac6;};return _0x27fa();}
|
|
1
|
+
function _0x2a3e(_0x23fb8f,_0x21d2b3){const _0x41d674=_0x41d6();return _0x2a3e=function(_0x2a3ea5,_0x142473){_0x2a3ea5=_0x2a3ea5-0x114;let _0x52acb3=_0x41d674[_0x2a3ea5];return _0x52acb3;},_0x2a3e(_0x23fb8f,_0x21d2b3);}function _0x41d6(){const _0x491d51=['getDocRanges','SNAPSHOT_HAS_BEEN_REMOVED','subUnitId','collaboration-client.offline-data-not-saved','resize','_configService','indexOf','_shapes','_ensureSubject','addEventListener','url(#$1','IBeforeCloseService','flatMap','getLocalCacheKey','IConfigService','loadUnit','TRANSFORM_CHANGE_OBSERVABLE_TYPE','_initStatusListener','isTransformMutationFailure','m2Prime','WECHAT_HAS_BEEN_BOUND','@univerjs/ui','EMAIL_VERIFY_CODE_NOT_FOUND_OR_EXPIRED','_onRefRangeChange','permission.content','OTHER_CLIENTS_EDITING','_range','UNIVER_DOC','getMergeData','IDocClipboardService','closePath','Unknown\x20user','location','shareReplay','takeUntil','entries','_localCacheService','entityInit$','IUniverInstanceService','_handleHover','exhaustSavingTask','onPointerLeave$','getMemberID','_context','_updateSubUnitFromURLParams','getCurrentUnitForType','_cursor','collabCursorState$','pushState','onRendered','assignAColorForMemberID','Shape','off-line-icon_clip0_910_343','...','pluginName','split','newValue','next','BuiltInUIPart','unit','InsertColCommandId','clearTimeout','_transformPreviousActiveRange','INVITE_CODE_REQUIRED','distinctUntilChanged','CommandType','_onCursorUpdate','urlChange$','61767FKLZUl','26433CbmnKh','_labelPosition','current','Failed','getUnitId','searchParams','registerRefRange','green.600','useObservable','_initEvent','editingUnit','APPLY_DUPLICATED','Vector2','m1Prime','_commandService','hide','loadOfflineData','call','_injector','push','_backgroundColor','SetDocZoomRatioOperation','SNAPSHOT_INVALID_SNAPSHOT','_draw','subscribe','getValue','UniverCore','_saveCache','YUUMI_PROMPT_MAX_TOKENS_EXCEEDED','undoState','activeSheet$','_registerDependencies','COMPLETION_FINISHED','_localStorageService','UNRECOGNIZED','onPointerEnter$','getConfig','map','parse','_unitStatus','setConfig','RECT','INVALID_ARGUMENT','_drawAnchor','symbol','_setupSubUnitSync','_onCursorDelete','blue.400','makeDirty','prototype','UniverNetwork','UniverSheetsUi','_revisionService','_doCreateSocket','apply','EffectRefRangId','UPDATE_CURSOR','4552709ZDISzx','setStateCache','sessionStatus$','getOwnPropertyDescriptor','3101960PEFNRX','selection','CollaborationSessionService','collabStatus.fetchMiss','11CHxZFh','_status$','NodePositionConvertToRectRange','_collabCursorController','filter','displayName','FromArray','getSkeleton','_httpService','MOBILE_HAS_BEEN_BOUND','getItem','href','1em','setInterval','ISocketService','getColorFromTheme','_cursors','replace','_startSheetCollabCursor','addHandlerCallback','color','OTHER_CLIENT_EDITING','_cursorInfo$','_drawRectRange','PERMISSION_DENIED','collab-text-anchor-','endColumn','CollaborationUIEventId','MoveRangeCommandId','collabStatus.syncing','xlink:href','triggerDblclick','on-line-icon_clip0_910_349','div','SheetCollabCursorShape','_getSaveTimeout','pipe','WebSocketService','IImageIoService','@univerjs/engine-render','getParam','getCellPositionByOffset','UNIVER_COLLABORATION_CLIENT_WEB_PLUGIN','_updateLocalCursor','_univerInstanceService','session.will-retry','collabStatus.notCollab','_beforeCloseService','svg','_hideTimer','_instanceService','YUUMI_ALL_TABLES_IS_INVALID','onLocalMutation','body','_selfUnitIDs','isTransformMutationsWithChangesetSuccess','enableLocalCache','mutations','_initStatusComponent','_colorAssignService','fill','1526736tlKOvn','REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY','onCommandExecuted','_handleLeaveEvent','measureText','LICENSE_DISTRO_REJECTED','MemberService','values','ColorKit','_id','_sheetSkeletonManagerService','has','UniverDrawing','whenReady','APPLY_REVISION_CONFILICT','eventID','delete','_registerRenderDependencies','_notificationService','DEFAULT_WS_SESSION_TICKET_URL','saveOfflineData','findNodePositionByCharIndex','getCollabCursors$','startColumn','propertyIsEnumerable','Inject','UniverProCollaborationClient','round','getUndoRedoMutationParamsCache','invokeId','registerBeforeClose','rgba(255,\x20255,\x20255,\x200.01)','handleIRemoveCol','IURLService','createSocket','LOGIN_FAILED','colorChannel1','ThemeService','Rectangle','YUUMI_UNABLE_LOAD_URL','DisposableCollection','ALREADY_EXISTS','OnLineIcon','LICENSE_EXPORT_SIZE_EXCEEDED','MOBILE_VERIFY_CODE_MISMATCH','transform','JOIN_ROOM_FAILED','height','getSheetId','code','collab-rect-range-','getMember','dispose$','setAlpha','generateRandomId','_docTransformIMECacheService','transformStateCache','_collabCursorState$','Disposable','onPointerMove$','UniverSheets','Optional','_renderManagerService','save','PENDING','imageSourceType','_entities','font','_anchorDot','disposeUnit','handleIRemoveRow','fillText','Tools','runOnServer','memberID','react/jsx-runtime','CONFLICT','DOC_RANGE_TYPE','purple.300','getUnhiddenWorksheets','DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT','LOCAL_CACHE_INTERVAL_KEY','_anchor','_online','UniverCollaborationClientUIPlugin','getStateCache','UniverProCollaboration','SessionStatus','red.300','5WvRNiu','getOwnPropertySymbols','setUndoRedoMutationParamsCache','/run/','_scheduleHeartbeat','TOO_MANY_REQUESTS','LICENSE_IMPORT_SIZE_EXCEEDED','_hover','disableLocalCache','univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','_unitOnClients','collabStatus.synced','APPLY_PERMISSION_DENIED','APPLY_NON_SEQUENTIAL_REVISION','_document','SYNCED','INotificationService','arc','_imageIoService','CollaborationSocketService','NOT_FOUND','unload','IMessageService','@univerjs-pro/collaboration','UniverDesign','LICENSE_MAX_UNITS_EXCEEDED','roomMembers$','CONNECTOR_DATA_TOO_LARGE','_session','DesktopCollaborationStatusDisplayController','transformByState','DocIMEInputManagerService','DocSelectionManagerService','drawWith','_memberService','BehaviorSubject','_startDocCollabCursor','_roomMembers$','@univerjs/sheets','set','_config','roomMembers','_toggleOnline','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','_drawTextRange','Warning','_toggleOffline','forwardRef','USERS_LEAVE','className','_docSyncEditingCollabCursorService','post','cursorInfo$','@univerjs/core','InsertRangeMoveRightCommandId','_docSkeletonManagerService','getViewport','_getAnchorBounding','status$','8cstyrW','cursorInfo','moveTo','_dataLoaderService','add','UniverDocsUi','subunit','white','_eventUnsubscribe','serializeRangeWithSheet','ENSURE_SNAPSHOT_EXECUTION','result','_clearOtherTimers','clipPath','DocCollaborationEntity','_initDependencies','getFocusedUnit','_lastPointer','_transformHistoryAndStateStack','isEditing','yellow.400','UNAUTHENTICATED','UniverRpc','combineLatest','_docTransformStateCacheService','YUUMI_AI_RUN_FAILED','CHANGESET_REVISION_CONFILICT','contains','fromEventSubject','transformMutationsWithChangeset','_docTransformSelectionsService','_init','CollaborationStatus','SheetsSelectionsService','getActiveRange','useCallback','currentColor','SetTextSelectionsOperation','startsWith','MUTATION','Injector','DocStateChangeManagerService','_docClipboardService','_scheduleClearOtherTimer','univer-mr-2\x20univer-flex\x20univer-text-xl','Error','asObservable','operators','unitID','http://www.w3.org/2000/svg','_initEntityListener','length','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','_getScale','getRenderById','toStringTag','defIds','_disabled','@univerjs-pro/collaboration-client','BrowserCollaborationSocketService','path','redoState','syncEditingCollabCursor','getSheetObject','transformSelections','transformMutation','InsertRangeMoveDownCommandId','InsertRowCommandId','_syncEditingCollabCursorService','_handleEvent','children','runId','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','trim','setParam','replaceDocRanges','getSheetBySheetId','defineProperty','key','extend','_collabSessionService','_send','jsx','switchMap','evenodd','defs','_refreshCollabCursors','_scene','handleMoveRange','deepClone','black','from','setShapeProps','min','type','Rect','connectInjector','_textBubble','NO_OTHER_CLIENTS_EDITING','_color','WebBrowserSingleActiveUnitService','YUUMI_URL_COL_OUT_OF_RANGE','UniverUi','handleDeleteRangeMoveUp','init','focused$','addObject','_getMergeRange','all','univerjs-icon\x20univerjs-icon-','fromEvent','collabStatus.conflict','range','_hovered','unshift','_docSkeleton','UniverCollaborationClientPlugin','[CollaborationDataLoaderController]','COLORS','random','getCurrent','_render','sessionTicket','useDependency','collab-client.tooltip.reconnect','_removeClearOtherTimer','permission.title','debounceTime','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','size','ITransformService','SHEET_VIEWPORT_KEY','UNIVER_SHEET','setItem','ticket','YUUMI_TABLE_NOT_FOUND_IN_UNIT','startRow','row','_colorIndex','disposeWithMe','_urlService','DependentOn','text','INTERNAL_ERROR','getCoordByCell','UNDEFINED','saveTaskMap','UnitStatus','touchDependencies','DeleteRangeMoveLeftCommandId','_getSessionTicket','ONLINE','idSuffix','function','IUIPartsService','column','bottom','CollaborationDataLoaderController','removeParam','univer-flex\x20univer-items-center','2098284aRtVVw','#FFF','getColor','_uiPartsService','session.collaboration-timeout','top','Tooltip','UniverEngineFormula','656YqJQJb','UniverDocs','_refRangeService','unsubscribe','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','0\x200\x2017\x2016','includes','createIdentifier','handleDeleteRangeMoveLeft','23362KwJUoP','complete','show','_name','substring','EMAIL_VERIFY_CODE_MISMATCH','toDisposable','assign','_removeCollabCursors','icon','executionId','replaceState','ILocalStorageService','ILocalCacheService','some','TEXT_RANGE_LAYER_INDEX','registerRenderModule','throttleTime','registerDependencies','textRanges','@univerjs/docs-ui','_messageService','sheetID','INVITE_CODE_ALREADY_BOUND','_handleJoinEvent','SheetSkeletonManagerService','tag','clearInterval','history','_initCommandExecutedListener','_handleHeartbeatEvent','find','_saveTaskMap','_updateURLWithCurrentState','UniverEngineRender','_setupBeforeClosingHandler','PY_RUNTIME_SCRIPT_ERROR','with','rxjs','@univerjs/rpc','@univerjs/design','concat','isActive','_scheduleSaving','jiqing.500','UniverInstanceType','NOT_COLLAB','docStateChange$','params','error','lineTo','send','react','_logService','toString','registerComponent','YUUMI_NO_CUBOID_FOR_QUESTION','addClipboardHook','string','event$','ISnapshotServerService','currentSkeleton$','backgroundColor','none','getAncestorScale','debounce','getTypeOfUnitAdded$','UniverProCollaborationClientUi','_themeService','FETCH_MISS','_getSheetObject','createElement','isArray','YUUMI_RATE_OVER_LIMIT','getRangePointData','M0\x200H16V16H0z','popstate','deserializeRangeWithSheet','LOCAL_CACHE_INTERVAL','merge','MessageType','selections','subscribeEvent','YUUMI_CONNECTOR_URL_NOT_FOUND','unitId','_transformService','forEach','requireSession','restore','HTTPService','VIEW_MAIN','_docStateChangeManagerService','ranges','React','currentTheme$','_heartbeatTimer','RichTextEditingMutation','beginPath','get','hovered','collaboration.closeRoom','addObjects','doc.mutation.rich-text-editing','_transformUndoRedoStack','ACTIVE_UNIT_EVENT_CHANNEL','INVITE_CODE_HAS_BEEN_UES','handleInsertRow','LocaleService','_updateCollabCursors','_localeService','_assignedColors','RemoteUniscriptService','setTimeout','_collaborationController','SetWorksheetActivateCommand','collab-text-range-','data','name','MOBILE_VERIFY_CODE_NOT_FOUND_OR_EXPIRED','IRenderManagerService','wsSessionTicketUrl','setActiveRange','RxDisposable','@univerjs/docs','SOCKET_FAILED_RETRY','updateOfflineData','_cursorShapes','ICommandService','@univerjs/network','_cachedData','executeCommand','origin','CollaborationEvent','getCurrentRevOfUnit','dispose','TEXT','stringify','transformRemoteChangeset','fillStyle','APPLY_REJECT','EMAIL_HAS_BEEN_BOUND','RemoveColCommandId','CollaborationController','attrs','mask','runRefRangeMutations','width','createInstance','34FJCJYn','then','YUUMI_ASYNCIO_CANCELLED','OFFLINE','translate(.97)','INVALID_INVITE_CODE','Module','_entityInit$','endRow','handleInsertRangeMoveRight'];_0x41d6=function(){return _0x491d51;};return _0x41d6();}(function(_0x3c69a1,_0x5852c1){const _0x470c21=_0x2a3e,_0x42be29=_0x3c69a1();while(!![]){try{const _0x41b144=parseInt(_0x470c21(0x30c))/0x1*(parseInt(_0x470c21(0x278))/0x2)+-parseInt(_0x470c21(0x35b))/0x3*(parseInt(_0x470c21(0x1c7))/0x4)+-parseInt(_0x470c21(0x18c))/0x5*(parseInt(_0x470c21(0x133))/0x6)+parseInt(_0x470c21(0x394))/0x7+-parseInt(_0x470c21(0x26f))/0x8*(parseInt(_0x470c21(0x35a))/0x9)+parseInt(_0x470c21(0x398))/0xa+parseInt(_0x470c21(0x39c))/0xb*(-parseInt(_0x470c21(0x267))/0xc);if(_0x41b144===_0x5852c1)break;else _0x42be29['push'](_0x42be29['shift']());}catch(_0x33cc03){_0x42be29['push'](_0x42be29['shift']());}}}(_0x41d6,0x54f84),function(_0x2f74cc,_0x4cec56){const _0x3762fe=_0x2a3e;typeof exports=='object'&&typeof module<'u'?_0x4cec56(exports,require('react/jsx-runtime'),require('@univerjs-pro/collaboration-client'),require('@univerjs/core'),require('@univerjs/ui'),require('rxjs'),require('@univerjs/design'),require('react'),require('@univerjs/rpc'),require('@univerjs/sheets'),require('@univerjs/engine-render'),require('@univerjs/network'),require('@univerjs/docs-ui'),require('@univerjs/drawing'),require('@univerjs-pro/collaboration'),require('@univerjs/docs'),require('@univerjs/engine-formula'),require('rxjs/operators'),require('@univerjs/sheets-ui')):typeof define=='function'&&define['amd']?define(['exports',_0x3762fe(0x17e),_0x3762fe(0x201),_0x3762fe(0x1c1),_0x3762fe(0x32b),_0x3762fe(0x29e),_0x3762fe(0x2a0),_0x3762fe(0x2ac),_0x3762fe(0x29f),_0x3762fe(0x1b2),_0x3762fe(0x11d),_0x3762fe(0x2f8),_0x3762fe(0x28c),'@univerjs/drawing',_0x3762fe(0x1a3),_0x3762fe(0x2f3),'@univerjs/engine-formula','rxjs/operators','@univerjs/sheets-ui'],_0x4cec56):(_0x2f74cc=typeof globalThis<'u'?globalThis:_0x2f74cc||self,_0x4cec56(_0x2f74cc[_0x3762fe(0x2bb)]={},_0x2f74cc[_0x3762fe(0x2d5)],_0x2f74cc[_0x3762fe(0x14d)],_0x2f74cc[_0x3762fe(0x375)],_0x2f74cc[_0x3762fe(0x22d)],_0x2f74cc['rxjs'],_0x2f74cc[_0x3762fe(0x1a4)],_0x2f74cc[_0x3762fe(0x2d5)],_0x2f74cc[_0x3762fe(0x1dd)],_0x2f74cc[_0x3762fe(0x16f)],_0x2f74cc[_0x3762fe(0x29a)],_0x2f74cc[_0x3762fe(0x38d)],_0x2f74cc[_0x3762fe(0x1cc)],_0x2f74cc[_0x3762fe(0x13f)],_0x2f74cc[_0x3762fe(0x189)],_0x2f74cc[_0x3762fe(0x270)],_0x2f74cc[_0x3762fe(0x26e)],_0x2f74cc[_0x3762fe(0x29e)][_0x3762fe(0x1f6)],_0x2f74cc[_0x3762fe(0x38e)]));}(this,function(_0x2fd8ae,_0xfc1913,_0x33f364,_0x2b709b,_0x24d176,_0x3052c2,_0x238d53,_0x429c21,_0x2d0390,_0x52298f,_0x45a576,_0x3092c3,_0x5e00f9,_0xe88a8c,_0x13c520,_0x136824,_0x4c94b6,_0x2698e1,_0x3bd105){'use strict';const _0x360c99=_0x2a3e;var _0x58e69a=Object['defineProperty'],_0xc0a38b=(_0x147b47,_0x56a3f5,_0x5c4989)=>_0x56a3f5 in _0x147b47?_0x58e69a(_0x147b47,_0x56a3f5,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x5c4989}):_0x147b47[_0x56a3f5]=_0x5c4989,_0x2197b9=(_0x2d52e8,_0x274a5b,_0x11829a)=>_0xc0a38b(_0x2d52e8,typeof _0x274a5b!=_0x360c99(0x387)?_0x274a5b+'':_0x274a5b,_0x11829a),_0x177906=function(){const _0x387bce=_0x360c99;return _0x177906=Object[_0x387bce(0x27f)]||function(_0x595f6d){const _0x3c8434=_0x387bce;for(var _0x431724,_0xa0161f=0x1,_0x2c0f19=arguments['length'];_0xa0161f<_0x2c0f19;_0xa0161f++){_0x431724=arguments[_0xa0161f];for(var _0x2ddd5d in _0x431724)Object[_0x3c8434(0x38c)]['hasOwnProperty'][_0x3c8434(0x36c)](_0x431724,_0x2ddd5d)&&(_0x595f6d[_0x2ddd5d]=_0x431724[_0x2ddd5d]);}return _0x595f6d;},_0x177906[_0x387bce(0x391)](this,arguments);},_0x5f2abf=function(_0x5b3e87,_0xe4a8b){const _0x7dcb32=_0x360c99;var _0x4dee9b={};for(var _0x35153a in _0x5b3e87)Object[_0x7dcb32(0x38c)]['hasOwnProperty']['call'](_0x5b3e87,_0x35153a)&&_0xe4a8b[_0x7dcb32(0x31c)](_0x35153a)<0x0&&(_0x4dee9b[_0x35153a]=_0x5b3e87[_0x35153a]);if(_0x5b3e87!=null&&typeof Object[_0x7dcb32(0x18d)]==_0x7dcb32(0x260)){for(var _0x1a67ca=0x0,_0x35153a=Object[_0x7dcb32(0x18d)](_0x5b3e87);_0x1a67ca<_0x35153a[_0x7dcb32(0x1fa)];_0x1a67ca++)_0xe4a8b[_0x7dcb32(0x31c)](_0x35153a[_0x1a67ca])<0x0&&Object[_0x7dcb32(0x38c)][_0x7dcb32(0x14b)][_0x7dcb32(0x36c)](_0x5b3e87,_0x35153a[_0x1a67ca])&&(_0x4dee9b[_0x35153a[_0x1a67ca]]=_0x5b3e87[_0x35153a[_0x1a67ca]]);}return _0x4dee9b;},_0xd8baad=_0x429c21['forwardRef'](function(_0x421d73,_0x5e542b){const _0x5b427f=_0x360c99;var _0xc952c8=_0x421d73['icon'],_0x447890=_0x421d73['id'],_0x364e21=_0x421d73[_0x5b427f(0x1bd)],_0x17b057=_0x421d73[_0x5b427f(0x216)],_0x55d8dd=_0x5f2abf(_0x421d73,[_0x5b427f(0x281),'id',_0x5b427f(0x1bd),_0x5b427f(0x216)]),_0x42ef4b=_0x5b427f(0x234)[_0x5b427f(0x2a1)](_0x447890,'\x20')['concat'](_0x364e21||'')[_0x5b427f(0x210)](),_0x3a8532=_0x429c21['useRef']('_'[_0x5b427f(0x2a1)](_0x4e09ba()));return _0x100c97(_0xc952c8,''[_0x5b427f(0x2a1)](_0x447890),{'defIds':_0xc952c8[_0x5b427f(0x1ff)],'idSuffix':_0x3a8532[_0x5b427f(0x35d)]},_0x177906({'ref':_0x5e542b,'className':_0x42ef4b},_0x55d8dd),_0x17b057);});function _0x100c97(_0x2617ab,_0x3f3b7a,_0x3d8ebd,_0xcc857,_0x1592c4){const _0x57885e=_0x360c99;return _0x429c21['createElement'](_0x2617ab[_0x57885e(0x292)],_0x177906(_0x177906({'key':_0x3f3b7a},_0x42e6d3(_0x2617ab,_0x3d8ebd,_0x1592c4)),_0xcc857),(_0x5d3b45(_0x2617ab,_0x3d8ebd)[_0x57885e(0x20d)]||[])['map'](function(_0xfd0184,_0x5b9c64){const _0x21e31f=_0x57885e;return _0x100c97(_0xfd0184,''[_0x21e31f(0x2a1)](_0x3f3b7a,'-')[_0x21e31f(0x2a1)](_0x2617ab[_0x21e31f(0x292)],'-')[_0x21e31f(0x2a1)](_0x5b9c64),_0x3d8ebd,void 0x0,_0x1592c4);}));}function _0x42e6d3(_0x110268,_0x5796d4,_0x4eda1c){const _0x2ec5fd=_0x360c99;var _0x3aefe1=_0x177906({},_0x110268[_0x2ec5fd(0x307)]);_0x4eda1c!=null&&_0x4eda1c[_0x2ec5fd(0x157)]&&_0x3aefe1[_0x2ec5fd(0x132)]===_0x2ec5fd(0x157)&&(_0x3aefe1[_0x2ec5fd(0x132)]=_0x4eda1c[_0x2ec5fd(0x157)]),_0x110268[_0x2ec5fd(0x292)]===_0x2ec5fd(0x308)&&_0x3aefe1['id']&&(_0x3aefe1['id']=_0x3aefe1['id']+_0x5796d4[_0x2ec5fd(0x25f)]),Object[_0x2ec5fd(0x339)](_0x3aefe1)['forEach'](function(_0x338370){const _0x41ecd3=_0x2ec5fd;var _0x2a7cfb=_0x338370[0x0],_0x21e868=_0x338370[0x1];_0x2a7cfb===_0x41ecd3(0x308)&&typeof _0x21e868=='string'&&(_0x3aefe1[_0x2a7cfb]=_0x21e868[_0x41ecd3(0x3ad)](/url\(#(.*)\)/,_0x41ecd3(0x320)[_0x41ecd3(0x2a1)](_0x5796d4['idSuffix'],')')));});var _0x1488ae=_0x5796d4[_0x2ec5fd(0x1ff)];return!_0x1488ae||_0x1488ae[_0x2ec5fd(0x1fa)]===0x0||(_0x110268[_0x2ec5fd(0x292)]==='use'&&_0x3aefe1['xlink:href']&&(_0x3aefe1[_0x2ec5fd(0x114)]=_0x3aefe1[_0x2ec5fd(0x114)]+_0x5796d4[_0x2ec5fd(0x25f)]),Object['entries'](_0x3aefe1)['forEach'](function(_0xad10f5){const _0x2ecec8=_0x2ec5fd;var _0x5020d4=_0xad10f5[0x0],_0x54db65=_0xad10f5[0x1];typeof _0x54db65==_0x2ecec8(0x2b2)&&(_0x3aefe1[_0x5020d4]=_0x54db65[_0x2ecec8(0x3ad)](/url\(#(.*)\)/,_0x2ecec8(0x320)['concat'](_0x5796d4[_0x2ecec8(0x25f)],')')));})),_0x3aefe1;}function _0x5d3b45(_0x51bd0a,_0x31a3e8){const _0x1f2934=_0x360c99;var _0x39e899,_0x5114eb=_0x31a3e8[_0x1f2934(0x1ff)];return!_0x5114eb||_0x5114eb['length']===0x0?_0x51bd0a:_0x51bd0a[_0x1f2934(0x292)]==='defs'&&(!((_0x39e899=_0x51bd0a[_0x1f2934(0x20d)])===null||_0x39e899===void 0x0)&&_0x39e899[_0x1f2934(0x1fa)])?_0x177906(_0x177906({},_0x51bd0a),{'children':_0x51bd0a[_0x1f2934(0x20d)][_0x1f2934(0x380)](function(_0x1cd947){const _0x649235=_0x1f2934;return typeof _0x1cd947['attrs']['id']==_0x649235(0x2b2)&&_0x5114eb&&_0x5114eb[_0x649235(0x275)](_0x1cd947[_0x649235(0x307)]['id'])?_0x177906(_0x177906({},_0x1cd947),{'attrs':_0x177906(_0x177906({},_0x1cd947['attrs']),{'id':_0x1cd947['attrs']['id']+_0x31a3e8[_0x649235(0x25f)]})}):_0x1cd947;})}):_0x51bd0a;}function _0x4e09ba(){const _0x5075eb=_0x360c99;return Math[_0x5075eb(0x23e)]()[_0x5075eb(0x2ae)](0x24)[_0x5075eb(0x27c)](0x2,0x8);}_0xd8baad[_0x360c99(0x3a1)]='UniverIcon';var _0x3f4d17={'tag':_0x360c99(0x126),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0x360c99(0x2b7),'viewBox':'0\x200\x2016\x2016','width':_0x360c99(0x3a8),'height':'1em'},'children':[{'tag':'g','attrs':{'clipPath':'url(#off-line-icon_clip0_910_343)'},'children':[{'tag':'path','attrs':{'stroke':_0x360c99(0x1eb),'d':'M3.61971\x2011.6499C2.40304\x2011.6499\x200.699707\x2011.1024\x200.699707\x208.9124C0.699707\x206.3574\x203.25471\x205.8099\x203.98471\x205.8099C4.34971\x204.5324\x205.07971\x202.5249\x207.99971\x202.5249C10.5547\x202.5249\x2011.6497\x203.9849\x2012.0147\x205.2624C12.0147\x205.2624\x2015.2997\x205.6274\x2015.2997\x208.7299C15.2997\x2010.9199\x2013.8397\x2011.6499\x2012.3797\x2011.6499M9.82471\x209.82466L6.17471\x2013.4747M6.17471\x209.82466L9.82471\x2013.4747','strokeLinecap':_0x360c99(0x14e),'strokeLinejoin':'round','strokeWidth':1.2}}]},{'tag':'defs','attrs':{},'children':[{'tag':'clipPath','attrs':{'id':_0x360c99(0x34a)},'children':[{'tag':_0x360c99(0x203),'attrs':{'fill':_0x360c99(0x1ce),'d':_0x360c99(0x2c3)}}]}]}],'defIds':[_0x360c99(0x34a)]},_0x251d33=_0x429c21[_0x360c99(0x1bb)](function(_0x5eac2e,_0x49d0a9){const _0x51f221=_0x360c99;return _0x429c21[_0x51f221(0x2bf)](_0xd8baad,Object[_0x51f221(0x27f)]({},_0x5eac2e,{'id':'off-line-icon','ref':_0x49d0a9,'icon':_0x3f4d17}));});_0x251d33[_0x360c99(0x3a1)]='OffLineIcon';var _0x545994={'tag':_0x360c99(0x126),'attrs':{'xmlns':_0x360c99(0x1f8),'fill':_0x360c99(0x2b7),'viewBox':_0x360c99(0x274),'width':_0x360c99(0x3a8),'height':_0x360c99(0x3a8)},'children':[{'tag':'g','attrs':{'clipPath':'url(#on-line-icon_clip0_910_349)'},'children':[{'tag':_0x360c99(0x203),'attrs':{'stroke':_0x360c99(0x1eb),'d':_0x360c99(0x273),'strokeLinecap':_0x360c99(0x14e),'strokeLinejoin':_0x360c99(0x14e),'strokeWidth':1.2}}]},{'tag':_0x360c99(0x21c),'attrs':{},'children':[{'tag':_0x360c99(0x1d4),'attrs':{'id':_0x360c99(0x116)},'children':[{'tag':_0x360c99(0x203),'attrs':{'fill':_0x360c99(0x1ce),'d':'M0\x200H16V16H0z','transform':_0x360c99(0x310)}}]}]}],'defIds':[_0x360c99(0x116)]},_0x582e7a=_0x429c21['forwardRef'](function(_0xba816d,_0x24dd79){const _0x4c19c8=_0x360c99;return _0x429c21['createElement'](_0xd8baad,Object[_0x4c19c8(0x27f)]({},_0xba816d,{'id':'on-line-icon','ref':_0x24dd79,'icon':_0x545994}));});_0x582e7a[_0x360c99(0x3a1)]=_0x360c99(0x15d);function _0x4af773(_0x6dd662){const _0x378d5e=_0x360c99;switch(_0x6dd662){case _0x33f364[_0x378d5e(0x1e7)][_0x378d5e(0x30f)]:return'collabStatus.offline';case _0x33f364[_0x378d5e(0x1e7)][_0x378d5e(0x17f)]:return _0x378d5e(0x236);case _0x33f364['CollaborationStatus'][_0x378d5e(0x2bd)]:return _0x378d5e(0x39b);case _0x33f364[_0x378d5e(0x1e7)]['NOT_COLLAB']:return _0x378d5e(0x124);case _0x33f364[_0x378d5e(0x1e7)]['AWAITING']:case _0x33f364[_0x378d5e(0x1e7)]['AWAITING_WITH_PENDING']:return _0x378d5e(0x3b9);case _0x33f364[_0x378d5e(0x1e7)][_0x378d5e(0x19b)]:case _0x33f364[_0x378d5e(0x1e7)][_0x378d5e(0x173)]:return _0x378d5e(0x197);}}function _0x404f63(_0x28bbb2){const _0x2e298f=_0x360c99,{status$:_0x5c9c9a}=_0x28bbb2,_0x22fcde=_0x24d176[_0x2e298f(0x363)](_0x5c9c9a,_0x33f364['CollaborationStatus']['NOT_COLLAB']),_0x1b6be5=_0x24d176[_0x2e298f(0x242)](_0x2b709b[_0x2e298f(0x2e3)]),_0x1e1957=_0x24d176[_0x2e298f(0x242)](_0x33f364['CollaborationSessionService']),_0x55983f=_0x22fcde!==_0x33f364[_0x2e298f(0x1e7)][_0x2e298f(0x30f)],_0x331cd2=_0x1b6be5['t'](_0x4af773(_0x22fcde)),_0x3ff8f6=_0x55983f?_0xfc1913['jsx'](_0x582e7a,{}):_0xfc1913[_0x2e298f(0x219)](_0x251d33,{}),_0x1833aa=_0x429c21[_0x2e298f(0x1ea)](()=>{_0x55983f||_0x1e1957['reconnect']();},[_0x55983f,_0x1e1957]);function _0x5ec271(){const _0x4314ba=_0x2e298f;return _0xfc1913['jsxs'](_0x4314ba(0x117),{'className':_0x4314ba(0x266),'onClick':_0x1833aa,'children':[_0xfc1913['jsx'](_0x4314ba(0x117),{'className':_0x238d53['clsx'](_0x4314ba(0x1f3),{'univer-text-green-500':_0x55983f,'univer-text-red-500':!_0x55983f}),'children':_0x3ff8f6}),_0xfc1913[_0x4314ba(0x219)](_0x4314ba(0x117),{'className':_0x4314ba(0x195),'children':_0x331cd2})]});}return _0x55983f?_0x5ec271():_0xfc1913[_0x2e298f(0x219)](_0x238d53[_0x2e298f(0x26d)],{'title':_0x1b6be5['t'](_0x2e298f(0x243)),'children':_0x5ec271()});}var _0x3c40c5=Object[_0x360c99(0x397)],_0x59b143=(_0x1fc627,_0x5a6a73,_0x32a137,_0x588e9a)=>{const _0x2a6639=_0x360c99;for(var _0x32bb87=_0x588e9a>0x1?void 0x0:_0x588e9a?_0x3c40c5(_0x5a6a73,_0x32a137):_0x5a6a73,_0x290505=_0x1fc627[_0x2a6639(0x1fa)]-0x1,_0x52524e;_0x290505>=0x0;_0x290505--)(_0x52524e=_0x1fc627[_0x290505])&&(_0x32bb87=_0x52524e(_0x32bb87)||_0x32bb87);return _0x32bb87;},_0x440704=(_0xdd385,_0x401ded)=>(_0x12652d,_0x24d97e)=>_0x401ded(_0x12652d,_0x24d97e,_0xdd385);_0x2fd8ae['DesktopCollaborationStatusDisplayController']=class extends _0x2b709b[_0x360c99(0x16d)]{constructor(_0x522564,_0x58efa4,_0x4059bc,_0x4fa4f8){const _0x509eef=_0x360c99;super(),_0x2197b9(this,_0x509eef(0x39d),new _0x3052c2['BehaviorSubject'](_0x33f364[_0x509eef(0x1e7)]['NOT_COLLAB'])),(this[_0x509eef(0x122)]=_0x522564,this[_0x509eef(0x36d)]=_0x58efa4,this[_0x509eef(0x2e9)]=_0x4059bc,this[_0x509eef(0x26a)]=_0x4fa4f8,this[_0x509eef(0x130)](),this['_initStatusListener']());}[_0x360c99(0x327)](){const _0xc43733=_0x360c99;this[_0xc43733(0x252)](this[_0xc43733(0x122)][_0xc43733(0x230)][_0xc43733(0x11a)](_0x3052c2[_0xc43733(0x21a)](()=>{const _0xa96059=_0xc43733,_0x55e1e1=this[_0xa96059(0x122)][_0xa96059(0x1d7)]();return _0x55e1e1?this['_collaborationController']['getCollabEntity$'](_0x55e1e1[_0xa96059(0x35f)]()):_0x3052c2['of'](null);}),_0x3052c2[_0xc43733(0x21a)](_0x171ab9=>_0x171ab9?_0x171ab9[_0xc43733(0x1c6)]:_0x3052c2['of'](_0x33f364[_0xc43733(0x1e7)][_0xc43733(0x2a6)])))[_0xc43733(0x373)](_0x2fded5=>{const _0x3248e0=_0xc43733;this['_status$'][_0x3248e0(0x34f)](_0x2fded5);}));}[_0x360c99(0x130)](){const _0x570aeb=_0x360c99;this[_0x570aeb(0x252)](this[_0x570aeb(0x26a)][_0x570aeb(0x2af)](_0x24d176[_0x570aeb(0x350)]['HEADER_MENU'],()=>_0x24d176[_0x570aeb(0x227)](_0x590eb5({'status$':this[_0x570aeb(0x39d)][_0x570aeb(0x1f5)]()}),this[_0x570aeb(0x36d)])));}},_0x2fd8ae['DesktopCollaborationStatusDisplayController']=_0x59b143([_0x440704(0x0,_0x2b709b[_0x360c99(0x33c)]),_0x440704(0x1,_0x2b709b[_0x360c99(0x14c)](_0x2b709b[_0x360c99(0x1ef)])),_0x440704(0x2,_0x2b709b['Inject'](_0x33f364[_0x360c99(0x306)])),_0x440704(0x3,_0x24d176[_0x360c99(0x261)])],_0x2fd8ae[_0x360c99(0x1a9)]);function _0x590eb5(_0x61a457){const {status$:_0x2b8692}=_0x61a457;return function(){const _0x26e6ad=_0x2a3e;return _0xfc1913[_0x26e6ad(0x219)](_0x404f63,{'status$':_0x2b8692});};}const _0x52e083=_0x2b709b[_0x360c99(0x276)]('uni.network.url-service');var _0x226ff4=Object[_0x360c99(0x397)],_0x9388a2=(_0x215e1e,_0x1be34f,_0x3251fd,_0x3cd6d7)=>{for(var _0x8687e4=_0x3cd6d7>0x1?void 0x0:_0x3cd6d7?_0x226ff4(_0x1be34f,_0x3251fd):_0x1be34f,_0x310c03=_0x215e1e['length']-0x1,_0x3420da;_0x310c03>=0x0;_0x310c03--)(_0x3420da=_0x215e1e[_0x310c03])&&(_0x8687e4=_0x3420da(_0x8687e4)||_0x8687e4);return _0x8687e4;},_0x24d5ad=(_0x3d1b87,_0x116840)=>(_0x582d92,_0x9f724)=>_0x116840(_0x582d92,_0x9f724,_0x3d1b87);_0x2fd8ae[_0x360c99(0x264)]=class extends _0x2b709b[_0x360c99(0x2f2)]{constructor(_0x15d758,_0x327ffe,_0x15eb89,_0x48d71a,_0x1a7b13){const _0x2b7977=_0x360c99;super(),this[_0x2b7977(0x253)]=_0x15d758,this[_0x2b7977(0x2ad)]=_0x327ffe,this[_0x2b7977(0x369)]=_0x15eb89,this[_0x2b7977(0x1ca)]=_0x48d71a,_0x1a7b13?_0x1a7b13==null||_0x1a7b13[_0x2b7977(0x140)]()[_0x2b7977(0x30d)](()=>this[_0x2b7977(0x1e6)]()):(this[_0x2b7977(0x2ad)]['debug']('[CollaborationDataLoaderController]','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.'),this['_init']());}async[_0x360c99(0x1e6)](){const _0x559cb7=_0x360c99,_0x575f4a=this[_0x559cb7(0x253)][_0x559cb7(0x11e)](_0x559cb7(0x351)),_0x5f1175=this[_0x559cb7(0x253)][_0x559cb7(0x11e)](_0x559cb7(0x225)),_0x119468=this[_0x559cb7(0x253)][_0x559cb7(0x11e)](_0x559cb7(0x1cd));if(!_0x575f4a||!_0x5f1175){this[_0x559cb7(0x2ad)]['debug'](_0x559cb7(0x23c),_0x559cb7(0x1fb));return;}const _0x549cf3=await this[_0x559cb7(0x1ca)][_0x559cb7(0x325)](_0x575f4a,Number(_0x5f1175),_0x119468);_0x549cf3&&_0x549cf3 instanceof _0x2b709b['Workbook']&&this[_0x559cb7(0x388)](_0x549cf3);}async[_0x360c99(0x388)](_0x4f0b3c){const _0x51e69f=_0x360c99;await this[_0x51e69f(0x342)](_0x4f0b3c),_0x4f0b3c[_0x51e69f(0x379)][_0x51e69f(0x11a)](_0x3052c2[_0x51e69f(0x338)](this[_0x51e69f(0x167)]))[_0x51e69f(0x373)](_0x1b1f8c=>{const _0x5e9bbf=_0x51e69f;_0x1b1f8c&&this[_0x5e9bbf(0x299)](_0x1b1f8c);}),this[_0x51e69f(0x253)]['urlChange$'][_0x51e69f(0x11a)](_0x3052c2[_0x51e69f(0x338)](this[_0x51e69f(0x167)]))[_0x51e69f(0x373)](()=>this[_0x51e69f(0x342)](_0x4f0b3c));}['_updateURLWithCurrentState'](_0x4172a6,_0x4c7ded=!0x1){const _0x4f10a0=_0x360c99,_0x1218d6=this['_urlService'][_0x4f10a0(0x11e)](_0x4f10a0(0x1cd));_0x4172a6[_0x4f10a0(0x163)]()!==_0x1218d6&&this[_0x4f10a0(0x253)][_0x4f10a0(0x211)](_0x4f10a0(0x1cd),_0x4172a6[_0x4f10a0(0x163)](),_0x4c7ded);}async[_0x360c99(0x342)](_0x5bb2c4){const _0x415c3f=_0x360c99;var _0x5cb361;const _0x798a8d=this['_urlService']['getParam'](_0x415c3f(0x1cd));if(!_0x798a8d||!_0x5bb2c4[_0x415c3f(0x213)](_0x798a8d)){const _0x40b487=_0x5bb2c4[_0x415c3f(0x182)]()[0x0],_0x561c96=_0x5bb2c4[_0x415c3f(0x213)](_0x40b487);if(!_0x561c96)return;this[_0x415c3f(0x299)](_0x561c96,!0x0),await this['_commandService'][_0x415c3f(0x2fa)](_0x52298f[_0x415c3f(0x2ea)]['id'],{'unitId':_0x5bb2c4[_0x415c3f(0x35f)](),'subUnitId':_0x40b487});return;}((_0x5cb361=_0x5bb2c4['getActiveSheet']())==null?void 0x0:_0x5cb361[_0x415c3f(0x163)]())!==_0x798a8d&&await this[_0x415c3f(0x369)]['executeCommand'](_0x52298f[_0x415c3f(0x2ea)]['id'],{'unitId':_0x5bb2c4[_0x415c3f(0x35f)](),'subUnitId':_0x798a8d});}},_0x2fd8ae[_0x360c99(0x264)]=_0x9388a2([_0x24d5ad(0x0,_0x52e083),_0x24d5ad(0x1,_0x2b709b['ILogService']),_0x24d5ad(0x2,_0x2b709b[_0x360c99(0x2f7)]),_0x24d5ad(0x3,_0x2b709b[_0x360c99(0x14c)](_0x33f364['DataLoaderService'])),_0x24d5ad(0x4,_0x2b709b[_0x360c99(0x170)](_0x2d0390['IRemoteInstanceService']))],_0x2fd8ae[_0x360c99(0x264)]);var _0x3aca32=Object[_0x360c99(0x397)],_0x51a5fb=(_0x59b0ca,_0x917fc,_0x328c4b,_0x143310)=>{for(var _0x35b805=_0x143310>0x1?void 0x0:_0x143310?_0x3aca32(_0x917fc,_0x328c4b):_0x917fc,_0x23f5ff=_0x59b0ca['length']-0x1,_0x59a28e;_0x23f5ff>=0x0;_0x23f5ff--)(_0x59a28e=_0x59b0ca[_0x23f5ff])&&(_0x35b805=_0x59a28e(_0x35b805)||_0x35b805);return _0x35b805;},_0x1b70a7=(_0x4c7d6f,_0x21d881)=>(_0x29f739,_0x1ec9c3)=>_0x21d881(_0x29f739,_0x1ec9c3,_0x4c7d6f);let _0xe9be34=class extends _0x2b709b['RxDisposable']{constructor(_0x44b56a,_0x27ade7){const _0x3a34d4=_0x360c99;super(),this[_0x3a34d4(0x1f1)]=_0x44b56a,this[_0x3a34d4(0x19e)]=_0x27ade7,this[_0x3a34d4(0x1e6)]();}[_0x360c99(0x1e6)](){const _0x323f58=_0x360c99,_0x5e0ab1=this;this[_0x323f58(0x252)](this[_0x323f58(0x1f1)][_0x323f58(0x2b1)]({'onBeforePasteImage':async _0x2511a6=>{const _0x253da8=_0x323f58,_0x1a11da=await _0x5e0ab1[_0x253da8(0x19e)]['saveImage'](_0x2511a6);return _0x1a11da?{'source':_0x1a11da['source'],'imageSourceType':_0x1a11da[_0x253da8(0x174)]}:null;}}));}};_0xe9be34=_0x51a5fb([_0x1b70a7(0x0,_0x5e00f9[_0x360c99(0x333)]),_0x1b70a7(0x1,_0xe88a8c[_0x360c99(0x11c)])],_0xe9be34);const _0x4b65fb=[_0x360c99(0x181),_0x360c99(0x2a4),_0x360c99(0x362),_0x360c99(0x18b),_0x360c99(0x38a),_0x360c99(0x1db)];class _0xe4ed4e extends _0x2b709b[_0x360c99(0x16d)]{constructor(){const _0x546ec5=_0x360c99;super(...arguments),_0x2197b9(this,_0x546ec5(0x2e6),new Map()),_0x2197b9(this,_0x546ec5(0x251),0x0);}[_0x360c99(0x348)](_0x355827){const _0x3b3335=_0x360c99;if(this[_0x3b3335(0x2e6)]['has'](_0x355827))return this[_0x3b3335(0x2e6)][_0x3b3335(0x2da)](_0x355827);const _0x30f28a=_0x4b65fb[this['_colorIndex']];return this['_colorIndex']=(this[_0x3b3335(0x251)]+0x1)%_0x4b65fb[_0x3b3335(0x1fa)],this[_0x3b3335(0x2e6)][_0x3b3335(0x1b3)](_0x355827,_0x30f28a),_0x30f28a;}}function _0x5b0648(_0x531ff8){const _0x261f08=_0x360c99;let _0x37f418='';for(const _0x2f8682 of _0x531ff8){const {startOffset:_0x507c64,endOffset:_0x4311f7,isActive:_0xc414b7,rangeType:_0x314600,segmentId:_0x3ddac1,segmentPage:_0x17f25e}=_0x2f8682;_0x37f418[_0x261f08(0x1fa)]&&(_0x37f418+=','),_0x37f418+=_0x507c64+':'+_0x4311f7+':'+(_0xc414b7?'1':'0')+':'+_0x314600+':'+_0x3ddac1+':'+_0x17f25e;}return _0x37f418;}function _0x24f4e8(_0xbf5726){const _0xbef2a1=_0x360c99,_0x44d871=_0xbf5726['split'](','),_0x233b3f=[];for(const _0x18038f of _0x44d871){const [_0x3e953e,_0x1d778f,_0x2ae558,_0x546541,_0x11183e,_0x340462]=_0x18038f[_0xbef2a1(0x34d)](':');_0x233b3f[_0xbef2a1(0x36e)]({'startOffset':Number(_0x3e953e),'endOffset':Number(_0x1d778f),'collapsed':_0x3e953e===_0x1d778f,'isActive':_0x2ae558==='1','rangeType':_0x546541===_0x2b709b[_0xbef2a1(0x180)][_0xbef2a1(0x2ff)]?_0x2b709b['DOC_RANGE_TYPE'][_0xbef2a1(0x2ff)]:_0x2b709b['DOC_RANGE_TYPE'][_0xbef2a1(0x384)],'segmentId':typeof _0x11183e==_0xbef2a1(0x2b2)?String(_0x11183e):'','segmentPage':Number(_0x340462!=null?_0x340462:-0x1)});}return _0x233b3f[_0xbef2a1(0x286)](_0x16bb77=>_0x16bb77[_0xbef2a1(0x2a2)])||(_0x233b3f[0x0][_0xbef2a1(0x2a2)]=!0x0),_0x233b3f;}class _0x314824 extends _0x2b709b[_0x360c99(0x2f2)]{constructor(){const _0x16473b=_0x360c99;super(...arguments),_0x2197b9(this,_0x16473b(0x16c),new _0x3052c2[(_0x16473b(0x1af))](null)),_0x2197b9(this,_0x16473b(0x345),this['_collabCursorState$']['asObservable']());}['syncEditingCollabCursor'](_0x281aea){const _0x3fead3=_0x360c99,{unitID:_0x5366fb,memberID:_0x503df2,textRanges:_0x46d09c}=_0x281aea,_0x3fd1bf=_0x5b0648(_0x46d09c);if(_0x3fd1bf==='')return;const _0xa93a72={'unitID':_0x5366fb,'memberID':_0x503df2,'selection':_0x3fd1bf};this['_collabCursorState$'][_0x3fead3(0x34f)](_0xa93a72);}}var _0x4b0105=Object[_0x360c99(0x397)],_0x1f0dc8=(_0xee9547,_0x223743,_0x38beed,_0x70d857)=>{for(var _0x131904=_0x70d857>0x1?void 0x0:_0x70d857?_0x4b0105(_0x223743,_0x38beed):_0x223743,_0x25e2a1=_0xee9547['length']-0x1,_0x322cfb;_0x25e2a1>=0x0;_0x25e2a1--)(_0x322cfb=_0xee9547[_0x25e2a1])&&(_0x131904=_0x322cfb(_0x131904)||_0x131904);return _0x131904;},_0x34e023=(_0x5c0006,_0x206eee)=>(_0x837e2b,_0x739045)=>_0x206eee(_0x837e2b,_0x739045,_0x5c0006);const _0x53be8a=0x12c,_0xbfb85c=0x64;let _0x3f8cee=class extends _0x2b709b[_0x360c99(0x2f2)]{constructor(_0x56858e,_0x3e03e8,_0x5e741a,_0x50b23c,_0x37c45c,_0x5d5ec7,_0x41ed98,_0x5cca68,_0x42a2d0){const _0x2745ee=_0x360c99;super(),_0x2197b9(this,_0x2745ee(0x186),!0x1),_0x2197b9(this,_0x2745ee(0x1e6),!0x1),_0x2197b9(this,_0x2745ee(0x3b2),new _0x3052c2[(_0x2745ee(0x1af))](new Map())),_0x2197b9(this,_0x2745ee(0x1c0),this[_0x2745ee(0x3b2)][_0x2745ee(0x1f5)]()),_0x2197b9(this,_0x2745ee(0x1b1),new _0x3052c2[(_0x2745ee(0x1af))]([])),_0x2197b9(this,_0x2745ee(0x1a6),this[_0x2745ee(0x1b1)][_0x2745ee(0x11a)](_0x3052c2[_0x2745ee(0x246)](_0x53be8a))),_0x2197b9(this,_0x2745ee(0x121),_0x2b709b['debounce'](_0x11fb4a=>{const _0xc646ac=_0x2745ee,_0x17502a={'eventID':_0x13c520[_0xc646ac(0x2fc)]['UPDATE_CURSOR'],'data':{'unitID':this[_0xc646ac(0x1f7)],'memberID':this[_0xc646ac(0x1a8)][_0xc646ac(0x340)](),'selection':_0x5b0648(_0x11fb4a)}};this[_0xc646ac(0x1a8)][_0xc646ac(0x2ab)](_0x17502a,this['unitID']);},_0xbfb85c)),(this[_0x2745ee(0x1f7)]=_0x56858e,this[_0x2745ee(0x1a8)]=_0x3e03e8,this[_0x2745ee(0x36d)]=_0x5e741a,this['_colorAssignService']=_0x50b23c,this[_0x2745ee(0x1ae)]=_0x37c45c,this[_0x2745ee(0x20b)]=_0x5d5ec7,this['_transformService']=_0x41ed98,this[_0x2745ee(0x122)]=_0x5cca68,this['_commandService']=_0x42a2d0);}get[_0x360c99(0x1c8)](){const _0x385983=_0x360c99;return this[_0x385983(0x3b2)][_0x385983(0x374)]();}get[_0x360c99(0x1b5)](){const _0x5e7afa=_0x360c99;return this[_0x5e7afa(0x1b1)]['getValue']();}[_0x360c99(0x2fe)](){const _0x4b254c=_0x360c99;super[_0x4b254c(0x2fe)](),this[_0x4b254c(0x3b2)][_0x4b254c(0x34f)](new Map()),this[_0x4b254c(0x3b2)]['complete'](),this[_0x4b254c(0x1b1)][_0x4b254c(0x34f)]([]),this[_0x4b254c(0x1b1)][_0x4b254c(0x279)]();}[_0x360c99(0x22f)](){const _0x9c9870=_0x360c99;this[_0x9c9870(0x1e6)]||(this['_init']=!0x0,this['_session'][_0x9c9870(0x396)][_0x9c9870(0x11a)](_0x3052c2['takeUntil'](this[_0x9c9870(0x167)]))[_0x9c9870(0x373)](_0x267b12=>{const _0x57e849=_0x9c9870;_0x267b12===_0x33f364[_0x57e849(0x18a)]['ONLINE']?this[_0x57e849(0x1b6)]():this['_toggleOffline']();}),this[_0x9c9870(0x1a8)]['event$'][_0x9c9870(0x11a)](_0x3052c2[_0x9c9870(0x338)](this[_0x9c9870(0x167)]))[_0x9c9870(0x373)](_0x4570bb=>{const _0x31a50b=_0x9c9870,_0x1ec7b0=_0x4570bb[_0x31a50b(0x142)];_0x1ec7b0===_0x13c520[_0x31a50b(0x2fc)]['UPDATE_CURSOR']&&this[_0x31a50b(0x358)](_0x4570bb),_0x1ec7b0===_0x13c520['CollaborationEvent'][_0x31a50b(0x1bc)]&&this[_0x31a50b(0x389)](_0x4570bb);}),this[_0x9c9870(0x252)](this[_0x9c9870(0x369)]['onCommandExecuted'](_0x4b3a87=>{const _0x42c82d=_0x9c9870,_0x243113=_0x4b3a87[_0x42c82d(0x2a8)];_0x243113!=null&&this[_0x42c82d(0x186)]&&_0x4b3a87['id']===_0x136824[_0x42c82d(0x1ec)]['id']&&_0x243113['unitId']===this[_0x42c82d(0x1f7)]&&_0x243113[_0x42c82d(0x1da)]===!0x1&&_0x243113['ranges'][_0x42c82d(0x1fa)]>0x0&&this[_0x42c82d(0x121)](_0x243113['ranges']);})),this[_0x9c9870(0x20b)][_0x9c9870(0x345)][_0x9c9870(0x11a)](_0x3052c2[_0x9c9870(0x338)](this[_0x9c9870(0x167)]))[_0x9c9870(0x373)](_0x54f269=>{const _0x57169d=_0x9c9870;if((_0x54f269==null?void 0x0:_0x54f269[_0x57169d(0x1f7)])!==this['unitID'])return;const _0x1c7fe8={'eventID':_0x13c520[_0x57169d(0x2fc)][_0x57169d(0x393)],'data':_0x54f269};this[_0x57169d(0x358)](_0x1c7fe8);}),this[_0x9c9870(0x252)](this[_0x9c9870(0x369)][_0x9c9870(0x135)](_0x34a9fd=>{const _0x48d7c9=_0x9c9870;if(_0x34a9fd[_0x48d7c9(0x2a8)]==null)return;const _0x7f8303=_0x34a9fd['params'];if(_0x34a9fd['id']!==_0x136824[_0x48d7c9(0x2d8)]['id']||_0x7f8303[_0x48d7c9(0x2cc)]!==this['unitID'])return;const _0x1253f5={'id':_0x48d7c9(0x2de),'params':_0x7f8303},_0xeb9779=this[_0x48d7c9(0x1c8)];for(const [_0x472098,_0x566f69]of _0xeb9779){const _0x7f39d3={'id':'doc.mutation.rich-text-editing','params':{'unitId':this['unitID'],'actions':null,'textRanges':_0x566f69[_0x48d7c9(0x2d4)]}},_0x2a6f5b=this['_transformService'][_0x48d7c9(0x208)](_0x1253f5,_0x7f39d3,!0x1);if(_0x13c520['isTransformMutationFailure'](_0x2a6f5b))throw _0x2a6f5b[_0x48d7c9(0x2a9)];_0xeb9779[_0x48d7c9(0x1b3)](_0x472098,{..._0x566f69,'ranges':_0x2a6f5b['m2Prime'][_0x48d7c9(0x2a8)][_0x48d7c9(0x28b)]});}queueMicrotask(()=>{const _0x4abe44=_0x48d7c9;this['_cursorInfo$'][_0x4abe44(0x34f)](_0xeb9779);});})));}[_0x360c99(0x358)](_0x488679){const _0x20a1f6=_0x360c99;var _0x4addde,_0x40e660;const {memberID:_0x3050e0,selection:_0x119842}=_0x488679[_0x20a1f6(0x2ec)],_0x63f6c9=_0x24f4e8(_0x119842),_0x520cf6=(_0x40e660=(_0x4addde=this[_0x20a1f6(0x1ae)][_0x20a1f6(0x166)](this['unitID'],_0x3050e0))==null?void 0x0:_0x4addde['name'])!=null?_0x40e660:_0x20a1f6(0x335),_0x3b4e97={'color':this[_0x20a1f6(0x131)][_0x20a1f6(0x348)](_0x3050e0),'name':_0x520cf6,'ranges':_0x63f6c9},_0x737c05=this[_0x20a1f6(0x1c8)];_0x737c05[_0x20a1f6(0x1b3)](_0x3050e0,_0x3b4e97),this['_cursorInfo$'][_0x20a1f6(0x34f)](_0x737c05);}[_0x360c99(0x389)](_0x92be0b){const _0x5d2f76=_0x360c99,{memberID:_0x590c0b}=_0x92be0b[_0x5d2f76(0x2ec)],_0xf40e0c=this[_0x5d2f76(0x1c8)];_0xf40e0c[_0x5d2f76(0x143)](_0x590c0b),this[_0x5d2f76(0x3b2)][_0x5d2f76(0x34f)](_0xf40e0c);}[_0x360c99(0x1b6)](){const _0x5535aa=_0x360c99;var _0x3f0ca3;if(this[_0x5535aa(0x186)]=!0x0,((_0x3f0ca3=this['_univerInstanceService'][_0x5535aa(0x1d7)]())==null?void 0x0:_0x3f0ca3[_0x5535aa(0x35f)]())!==this[_0x5535aa(0x1f7)])return;const _0x1e01b3=this[_0x5535aa(0x36d)][_0x5535aa(0x2da)](_0x136824[_0x5535aa(0x1ac)])[_0x5535aa(0x316)]();Array[_0x5535aa(0x2c0)](_0x1e01b3)&&_0x1e01b3[_0x5535aa(0x1fa)]>0x0&&this[_0x5535aa(0x121)](_0x1e01b3);}[_0x360c99(0x1ba)](){const _0x97905c=_0x360c99;this[_0x97905c(0x186)]=!0x1;}};_0x3f8cee=_0x1f0dc8([_0x34e023(0x2,_0x2b709b[_0x360c99(0x14c)](_0x2b709b[_0x360c99(0x1ef)])),_0x34e023(0x3,_0x2b709b[_0x360c99(0x14c)](_0xe4ed4e)),_0x34e023(0x4,_0x2b709b[_0x360c99(0x14c)](_0x33f364[_0x360c99(0x139)])),_0x34e023(0x5,_0x2b709b[_0x360c99(0x14c)](_0x314824)),_0x34e023(0x6,_0x13c520[_0x360c99(0x249)]),_0x34e023(0x7,_0x2b709b[_0x360c99(0x33c)]),_0x34e023(0x8,_0x2b709b['ICommandService'])],_0x3f8cee);var _0x2b7695=Object[_0x360c99(0x397)],_0x2dd8eb=(_0x2dfeaf,_0x424a5c,_0x4c0f8a,_0x35be0c)=>{const _0x4f0a22=_0x360c99;for(var _0xfeafbe=_0x35be0c>0x1?void 0x0:_0x35be0c?_0x2b7695(_0x424a5c,_0x4c0f8a):_0x424a5c,_0x322357=_0x2dfeaf[_0x4f0a22(0x1fa)]-0x1,_0x6f829d;_0x322357>=0x0;_0x322357--)(_0x6f829d=_0x2dfeaf[_0x322357])&&(_0xfeafbe=_0x6f829d(_0xfeafbe)||_0xfeafbe);return _0xfeafbe;},_0x538134=(_0x151eb3,_0x38099c)=>(_0x5dd2b9,_0x1e1fb3)=>_0x38099c(_0x5dd2b9,_0x1e1fb3,_0x151eb3);const _0x139d86=0x12c,_0x2daf18=0x64,_0x4bc158=()=>{let _0x2fa8e4=[],_0x54e6af=!0x1;return _0x25bb47=>{_0x2fa8e4['push'](_0x25bb47),_0x54e6af||(_0x54e6af=!0x0,setTimeout(()=>{const _0x21211b=_0x2a3e;_0x2fa8e4[_0x21211b(0x2ce)](_0x1bca0d=>_0x1bca0d()),_0x2fa8e4=[],_0x54e6af=!0x1;}));};};let _0x1f0937=class extends _0x2b709b[_0x360c99(0x2f2)]{constructor(_0x39629d,_0x4e50ef,_0x46cf85,_0x5c25f0,_0x6a4662,_0x493f8c,_0x179cb2,_0x55a4c3){const _0x53947c=_0x360c99;super(),_0x2197b9(this,_0x53947c(0x186),!0x1),_0x2197b9(this,_0x53947c(0x1e6),!0x1),_0x2197b9(this,_0x53947c(0x3b2),new _0x3052c2[(_0x53947c(0x1af))](new Map())),_0x2197b9(this,_0x53947c(0x1c0),this[_0x53947c(0x3b2)]['asObservable']()),_0x2197b9(this,'_roomMembers$',new _0x3052c2['BehaviorSubject']([])),_0x2197b9(this,_0x53947c(0x1a6),this[_0x53947c(0x1b1)][_0x53947c(0x11a)](_0x3052c2[_0x53947c(0x246)](_0x139d86))),_0x2197b9(this,_0x53947c(0x121),_0x2b709b[_0x53947c(0x2b9)]((_0x572796,_0x39aa6d)=>{const _0x5d7dd6=_0x53947c,_0x1a6b0f={'eventID':_0x13c520[_0x5d7dd6(0x2fc)][_0x5d7dd6(0x393)],'data':{'unitID':this['unitID'],'memberID':this[_0x5d7dd6(0x1a8)][_0x5d7dd6(0x340)](),'selection':_0x4c94b6[_0x5d7dd6(0x1d0)](_0x572796,_0x39aa6d['range'])}};this[_0x5d7dd6(0x1a8)][_0x5d7dd6(0x2ab)](_0x1a6b0f,this[_0x5d7dd6(0x1f7)]);},_0x2daf18)),(this[_0x53947c(0x1f7)]=_0x39629d,this[_0x53947c(0x1a8)]=_0x4e50ef,this[_0x53947c(0x36d)]=_0x46cf85,this[_0x53947c(0x131)]=_0x5c25f0,this[_0x53947c(0x1ae)]=_0x6a4662,this[_0x53947c(0x122)]=_0x493f8c,this['_commandService']=_0x179cb2,this['_refRangeService']=_0x55a4c3);}get[_0x360c99(0x1c8)](){const _0x16cd8f=_0x360c99;return this[_0x16cd8f(0x3b2)][_0x16cd8f(0x374)]();}get[_0x360c99(0x1b5)](){return this['_roomMembers$']['getValue']();}['dispose'](){const _0x71302c=_0x360c99;super['dispose'](),this['_cursorInfo$'][_0x71302c(0x34f)](new Map()),this['_cursorInfo$'][_0x71302c(0x279)](),this[_0x71302c(0x1b1)][_0x71302c(0x34f)]([]),this[_0x71302c(0x1b1)]['complete']();}[_0x360c99(0x22f)](){const _0x218970=_0x360c99;this['_init']||(this[_0x218970(0x1e6)]=!0x0,this[_0x218970(0x1a8)]['sessionStatus$'][_0x218970(0x11a)](_0x3052c2[_0x218970(0x338)](this[_0x218970(0x167)]))['subscribe'](_0x4394d1=>{const _0x3e1f84=_0x218970;_0x4394d1===_0x33f364[_0x3e1f84(0x18a)][_0x3e1f84(0x25e)]?this[_0x3e1f84(0x1b6)]():this[_0x3e1f84(0x1ba)]();}),this[_0x218970(0x1a8)]['event$'][_0x218970(0x11a)](_0x3052c2[_0x218970(0x338)](this['dispose$']))['subscribe'](_0x1b73a1=>{const _0x1b1654=_0x218970,_0x31ade8=_0x1b73a1[_0x1b1654(0x142)];_0x31ade8===_0x13c520[_0x1b1654(0x2fc)][_0x1b1654(0x393)]&&this[_0x1b1654(0x358)](_0x1b73a1),_0x31ade8===_0x13c520[_0x1b1654(0x2fc)][_0x1b1654(0x1bc)]&&this[_0x1b1654(0x389)](_0x1b73a1);}),this[_0x218970(0x32d)](),this[_0x218970(0x252)](this[_0x218970(0x369)]['onCommandExecuted'](_0x226cb1=>{const _0x5e84be=_0x218970;if(this[_0x5e84be(0x186)]&&_0x226cb1['id']===_0x52298f['SetSelectionsOperation']['id']&&_0x226cb1[_0x5e84be(0x2a8)]['unitId']===this[_0x5e84be(0x1f7)]){const _0x79aa24=_0x226cb1[_0x5e84be(0x2a8)];this['_updateLocalCursor'](_0x79aa24[_0x5e84be(0x318)],_0x79aa24[_0x5e84be(0x2c9)][0x0]);}})));}['_onCursorUpdate'](_0x2aefd9){const _0x421982=_0x360c99;var _0x48c763,_0x44dc99;const {memberID:_0x2af0bd,selection:_0xa8683e}=_0x2aefd9[_0x421982(0x2ec)],{sheetName:_0x1fcdf5,range:_0x2c174c}=_0x4c94b6[_0x421982(0x2c5)](_0xa8683e),_0x51a621={'name':(_0x44dc99=(_0x48c763=this[_0x421982(0x1ae)][_0x421982(0x166)](this[_0x421982(0x1f7)],_0x2af0bd))==null?void 0x0:_0x48c763['name'])!=null?_0x44dc99:'Unknown\x20user','range':this[_0x421982(0x232)](_0x1fcdf5,_0x2c174c),'sheetID':_0x1fcdf5,'color':this['_colorAssignService'][_0x421982(0x348)](_0x2af0bd),'selection':_0xa8683e},_0xf9575d=this['cursorInfo'];_0xf9575d[_0x421982(0x1b3)](_0x2af0bd,_0x51a621),this[_0x421982(0x3b2)][_0x421982(0x34f)](_0xf9575d);}[_0x360c99(0x389)](_0x498497){const _0x227e36=_0x360c99,{memberID:_0x3cf714}=_0x498497[_0x227e36(0x2ec)],_0x2a619b=this['cursorInfo'];_0x2a619b['delete'](_0x3cf714),this[_0x227e36(0x3b2)]['next'](_0x2a619b);}[_0x360c99(0x232)](_0x1b9b12,_0x4b6fe9){const _0x40c89f=_0x360c99;var _0x2e7ab1,_0x263878;const _0x21e84f=(_0x263878=(_0x2e7ab1=this[_0x40c89f(0x122)]['getUniverSheetInstance'](this[_0x40c89f(0x1f7)]))==null?void 0x0:_0x2e7ab1['getSheetBySheetId'](_0x1b9b12))==null?void 0x0:_0x263878[_0x40c89f(0x332)]();return(_0x21e84f==null?void 0x0:_0x21e84f[_0x40c89f(0x297)](_0x1cd4ff=>_0x2b709b[_0x40c89f(0x159)][_0x40c89f(0x1e2)](_0x1cd4ff,_0x4b6fe9)))||_0x4b6fe9;}[_0x360c99(0x32d)](){const _0x38eb99=_0x360c99,_0x4e3738=new _0x2b709b[(_0x38eb99(0x15b))](),_0x509da8=_0x4bc158(),_0x6ae952=()=>{const _0x475d49=_0x38eb99;_0x4e3738[_0x475d49(0x2fe)]();const _0x528976=(_0x4cf4f3,_0xa40c5f,_0x433241,_0x5ddbdc)=>{const _0x385951=_0x475d49;let _0x430d0f=[];switch(_0x4cf4f3['id']){case _0x52298f[_0x385951(0x392)][_0x385951(0x25c)]:{_0x430d0f=_0x52298f[_0x385951(0x277)](_0x4cf4f3,_0x5ddbdc);break;}case _0x52298f[_0x385951(0x392)]['DeleteRangeMoveUpCommandId']:{_0x430d0f=_0x52298f[_0x385951(0x22e)](_0x4cf4f3,_0x5ddbdc);break;}case _0x52298f[_0x385951(0x392)][_0x385951(0x352)]:{_0x430d0f=_0x52298f['handleInsertCol'](_0x4cf4f3,_0x5ddbdc);break;}case _0x52298f[_0x385951(0x392)][_0x385951(0x209)]:{_0x430d0f=_0x52298f['handleInsertRangeMoveDown'](_0x4cf4f3,_0x5ddbdc);break;}case _0x52298f[_0x385951(0x392)][_0x385951(0x1c2)]:{_0x430d0f=_0x52298f[_0x385951(0x315)](_0x4cf4f3,_0x5ddbdc);break;}case _0x52298f[_0x385951(0x392)][_0x385951(0x20a)]:{_0x430d0f=_0x52298f[_0x385951(0x2e2)](_0x4cf4f3,_0x5ddbdc);break;}case _0x52298f['EffectRefRangId'][_0x385951(0x3b8)]:{_0x430d0f=_0x52298f[_0x385951(0x21f)](_0x4cf4f3,_0x5ddbdc);break;}case _0x52298f[_0x385951(0x392)][_0x385951(0x305)]:{_0x430d0f=_0x52298f[_0x385951(0x153)](_0x4cf4f3,_0x5ddbdc);break;}case _0x52298f['EffectRefRangId']['RemoveRowCommandId']:{_0x430d0f=_0x52298f[_0x385951(0x179)](_0x4cf4f3,_0x5ddbdc);break;}}const _0x1ea462=_0x52298f[_0x385951(0x309)](_0x430d0f,_0x5ddbdc),_0x1577cf=this['cursorInfo'][_0x385951(0x2da)](_0xa40c5f);if(_0x1577cf&&_0x1ea462){const _0x28cefc={..._0x1577cf,'range':_0x1ea462};this[_0x385951(0x1c8)][_0x385951(0x1b3)](_0xa40c5f,_0x28cefc),_0x509da8(()=>{const _0xbdb00f=_0x385951,_0x59a1be=this['_refRangeService'][_0xbdb00f(0x361)](_0x1ea462,_0x72b53a=>(_0x59a1be[_0xbdb00f(0x2fe)](),_0x528976(_0x72b53a,_0xa40c5f,_0x433241,_0x1ea462)));_0x4e3738[_0xbdb00f(0x1cb)](_0x59a1be);});}return{'redos':[],'undos':[]};};this[_0x475d49(0x1c8)][_0x475d49(0x2ce)]((_0x154f41,_0x65a859)=>{const _0x4612a7=_0x475d49,{range:_0x5e1d4a,sheetID:_0x557e49}=_0x154f41,_0xd41817=this[_0x4612a7(0x271)][_0x4612a7(0x361)](_0x5e1d4a,_0x24af01=>(_0xd41817['dispose'](),_0x528976(_0x24af01,_0x65a859,_0x557e49,_0x5e1d4a)));_0x4e3738['add'](_0xd41817);});};this[_0x38eb99(0x252)](_0x2b709b[_0x38eb99(0x27e)](this[_0x38eb99(0x3b2)][_0x38eb99(0x373)](()=>{_0x6ae952();})));}['_toggleOnline'](){const _0x3a7b21=_0x360c99;var _0x37fbb1,_0x2981c8;if(this[_0x3a7b21(0x186)]=!0x0,((_0x37fbb1=this[_0x3a7b21(0x122)]['getFocusedUnit']())==null?void 0x0:_0x37fbb1[_0x3a7b21(0x35f)]())!==this['unitID'])return;const _0x675175=(_0x2981c8=this[_0x3a7b21(0x36d)]['get'](_0x52298f[_0x3a7b21(0x1e8)])['getCurrentSelections']())==null?void 0x0:_0x2981c8[0x0],_0x1fc7b1=this[_0x3a7b21(0x122)][_0x3a7b21(0x343)](_0x2b709b[_0x3a7b21(0x2a5)]['UNIVER_SHEET'])['getActiveSheet']();_0x675175&&_0x1fc7b1&&this[_0x3a7b21(0x121)](_0x1fc7b1[_0x3a7b21(0x163)](),_0x675175);}[_0x360c99(0x1ba)](){const _0x1efd23=_0x360c99;this[_0x1efd23(0x186)]=!0x1;}};_0x1f0937=_0x2dd8eb([_0x538134(0x2,_0x2b709b[_0x360c99(0x14c)](_0x2b709b[_0x360c99(0x1ef)])),_0x538134(0x3,_0x2b709b[_0x360c99(0x14c)](_0xe4ed4e)),_0x538134(0x4,_0x2b709b[_0x360c99(0x14c)](_0x33f364[_0x360c99(0x139)])),_0x538134(0x5,_0x2b709b[_0x360c99(0x33c)]),_0x538134(0x6,_0x2b709b[_0x360c99(0x2f7)]),_0x538134(0x7,_0x2b709b[_0x360c99(0x14c)](_0x52298f['RefRangeService']))],_0x1f0937);var _0x4af34c=Object[_0x360c99(0x397)],_0x1c48e1=(_0xf9ad60,_0xad18c,_0x5271a0,_0x2c8db8)=>{const _0x33c696=_0x360c99;for(var _0x440d97=_0x2c8db8>0x1?void 0x0:_0x2c8db8?_0x4af34c(_0xad18c,_0x5271a0):_0xad18c,_0x35738a=_0xf9ad60[_0x33c696(0x1fa)]-0x1,_0x206e44;_0x35738a>=0x0;_0x35738a--)(_0x206e44=_0xf9ad60[_0x35738a])&&(_0x440d97=_0x206e44(_0x440d97)||_0x440d97);return _0x440d97;},_0x1b0a8a=(_0x21fa0f,_0x5ec38c)=>(_0xbb0283,_0x3e360c)=>_0x5ec38c(_0xbb0283,_0x3e360c,_0x21fa0f);let _0x29df5e=class extends _0x2b709b['RxDisposable']{constructor(_0x201612,_0x1cd059,_0x149d2c){const _0x2d87b3=_0x360c99;super(),_0x2197b9(this,_0x2d87b3(0x175),new Map()),_0x2197b9(this,_0x2d87b3(0x313),new _0x3052c2['Subject']()),(this[_0x2d87b3(0x122)]=_0x201612,this[_0x2d87b3(0x36d)]=_0x1cd059,this['_collabSessionService']=_0x149d2c,this[_0x2d87b3(0x1e6)]());}['dispose'](){const _0x1c3b65=_0x360c99;super[_0x1c3b65(0x2fe)](),this['_entityInit$'][_0x1c3b65(0x279)](),this['_entities'][_0x1c3b65(0x2ce)](_0x27cd8a=>_0x27cd8a[_0x1c3b65(0x2fe)]());}['getCollabCursors$'](_0x411ad5){const _0x31426f=_0x360c99;return this[_0x31426f(0x175)][_0x31426f(0x13e)](_0x411ad5)?this['_entities'][_0x31426f(0x2da)](_0x411ad5)[_0x31426f(0x1c0)]:this[_0x31426f(0x313)][_0x31426f(0x11a)](_0x3052c2['filter'](_0x37d98e=>_0x37d98e[_0x31426f(0x1f7)]===_0x411ad5),_0x3052c2[_0x31426f(0x21a)](_0x3b336d=>_0x3b336d[_0x31426f(0x1c0)]));}[_0x360c99(0x1e6)](){const _0x46715d=_0x360c99;this[_0x46715d(0x122)][_0x46715d(0x2ba)](_0x2b709b[_0x46715d(0x2a5)][_0x46715d(0x24b)])[_0x46715d(0x11a)](_0x3052c2[_0x46715d(0x338)](this['dispose$']))[_0x46715d(0x373)](async _0x217f76=>{const _0x13ec4b=_0x46715d,_0x4eb40a=_0x217f76['getUnitId'](),_0x55c4e2=await this[_0x13ec4b(0x3ae)](_0x4eb40a);this[_0x13ec4b(0x313)][_0x13ec4b(0x34f)](_0x55c4e2),this['_entities'][_0x13ec4b(0x1b3)](_0x4eb40a,_0x55c4e2);}),this[_0x46715d(0x122)][_0x46715d(0x2ba)](_0x2b709b['UniverInstanceType'][_0x46715d(0x331)])['pipe'](_0x3052c2[_0x46715d(0x338)](this[_0x46715d(0x167)]))[_0x46715d(0x11a)](_0x3052c2[_0x46715d(0x3a0)](_0x4ece4f=>!_0x4ece4f[_0x46715d(0x35f)]()[_0x46715d(0x1ed)]('__')))[_0x46715d(0x373)](async _0x3a3d24=>{const _0x3eecfe=_0x46715d,_0x2e0405=_0x3a3d24[_0x3eecfe(0x35f)](),_0x51a71c=await this[_0x3eecfe(0x1b0)](_0x2e0405);this[_0x3eecfe(0x313)][_0x3eecfe(0x34f)](_0x51a71c),this[_0x3eecfe(0x175)][_0x3eecfe(0x1b3)](_0x2e0405,_0x51a71c);}),_0x3052c2[_0x46715d(0x2c7)](this[_0x46715d(0x122)]['getTypeOfUnitDisposed$'](_0x2b709b['UniverInstanceType']['UNIVER_DOC']),this[_0x46715d(0x122)]['getTypeOfUnitDisposed$'](_0x2b709b['UniverInstanceType'][_0x46715d(0x24b)]))[_0x46715d(0x11a)](_0x3052c2[_0x46715d(0x338)](this['dispose$']))['subscribe'](_0x2e1b2d=>{const _0x341e6e=_0x46715d,_0x4cd932=_0x2e1b2d[_0x341e6e(0x35f)](),_0x437165=this['_entities'][_0x341e6e(0x2da)](_0x4cd932);_0x437165&&(_0x437165[_0x341e6e(0x2fe)](),this[_0x341e6e(0x175)][_0x341e6e(0x143)](_0x4cd932));});}async['_startSheetCollabCursor'](_0x14d174){const _0x3ba845=_0x360c99,_0x4236ba=await this[_0x3ba845(0x217)][_0x3ba845(0x2cf)](_0x14d174),_0x23afb0=this[_0x3ba845(0x36d)][_0x3ba845(0x30b)](_0x1f0937,_0x14d174,_0x4236ba);return _0x23afb0['init'](),_0x23afb0;}async[_0x360c99(0x1b0)](_0x5319ab){const _0x285529=_0x360c99,_0x2d29af=await this[_0x285529(0x217)][_0x285529(0x2cf)](_0x5319ab),_0x36eadd=this['_injector']['createInstance'](_0x3f8cee,_0x5319ab,_0x2d29af);return _0x36eadd['init'](),_0x36eadd;}};_0x29df5e=_0x1c48e1([_0x1b0a8a(0x0,_0x2b709b[_0x360c99(0x33c)]),_0x1b0a8a(0x1,_0x2b709b[_0x360c99(0x14c)](_0x2b709b['Injector'])),_0x1b0a8a(0x2,_0x2b709b['Inject'](_0x33f364[_0x360c99(0x39a)]))],_0x29df5e);const _0x4469c1=0x14,_0x24f6c6=0xc8,_0x2ad6b9=0x4,_0xd2fe1e=0x5;function _0xacbd05(_0x478b65,_0x118d4d){const _0x1e4bed=_0x360c99;let {radius:_0x5f0937,width:_0x3d513c,height:_0x4e30ad}=_0x118d4d;_0x5f0937=_0x5f0937!=null?_0x5f0937:0x0,_0x3d513c=_0x3d513c!=null?_0x3d513c:0x1e,_0x4e30ad=_0x4e30ad!=null?_0x4e30ad:0x1e;let _0x10b256=0x0,_0x55ab2d=0x0,_0xf21bdc=0x0;_0x10b256=_0x55ab2d=_0xf21bdc=Math[_0x1e4bed(0x224)](_0x5f0937,_0x3d513c/0x2,_0x4e30ad/0x2),_0x478b65[_0x1e4bed(0x2d9)](),_0x478b65[_0x1e4bed(0x1c9)](_0x10b256,0x0),_0x478b65[_0x1e4bed(0x2aa)](_0x3d513c-_0x55ab2d,0x0),_0x478b65[_0x1e4bed(0x19d)](_0x3d513c-_0x55ab2d,_0x55ab2d,_0x55ab2d,Math['PI']*0x3/0x2,0x0,!0x1),_0x478b65[_0x1e4bed(0x2aa)](_0x3d513c,_0x4e30ad-_0xf21bdc),_0x478b65['arc'](_0x3d513c-_0xf21bdc,_0x4e30ad-_0xf21bdc,_0xf21bdc,0x0,Math['PI']/0x2,!0x1),_0x478b65[_0x1e4bed(0x2aa)](0x0,_0x4e30ad),_0x478b65[_0x1e4bed(0x2aa)](0x0,_0x10b256),_0x478b65[_0x1e4bed(0x19d)](_0x10b256,_0x10b256,_0x10b256,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x478b65[_0x1e4bed(0x334)](),_0x118d4d[_0x1e4bed(0x132)]&&(_0x478b65[_0x1e4bed(0x172)](),_0x478b65[_0x1e4bed(0x302)]=_0x118d4d[_0x1e4bed(0x132)],_0x118d4d['fillRule']==='evenodd'?_0x478b65['fill'](_0x1e4bed(0x21b)):_0x478b65['fill'](),_0x478b65[_0x1e4bed(0x2d0)]());}class _0x568687 extends _0x45a576[_0x360c99(0x349)]{constructor(_0xac1e43,_0x3dbcec){const _0x4df42d=_0x360c99;super(_0xac1e43,_0x3dbcec),_0x2197b9(this,_0x4df42d(0x3b0)),_0x2197b9(this,_0x4df42d(0x255)),(this[_0x4df42d(0x3b0)]=_0x3dbcec==null?void 0x0:_0x3dbcec['color'],this[_0x4df42d(0x255)]=_0x3dbcec==null?void 0x0:_0x3dbcec['text']);}static['drawWith'](_0x53f620,_0x3cb716){const _0x4c9a45=_0x360c99,{text:_0x57b2c3,color:_0x5396c9}=_0x3cb716;_0x53f620[_0x4c9a45(0x172)](),_0x53f620[_0x4c9a45(0x176)]=_0x4c9a45(0x1b7);const _0x2668c5=_0x53f620[_0x4c9a45(0x137)](_0x57b2c3)[_0x4c9a45(0x30a)],_0x3da77f=Math[_0x4c9a45(0x224)](_0x2668c5+0x2*_0x2ad6b9,_0x24f6c6);_0xacbd05(_0x53f620,{'height':_0x4469c1,'radius':0x4,'width':_0x3da77f,'fill':_0x5396c9}),_0x53f620[_0x4c9a45(0x302)]=_0x4c9a45(0x268);const _0x5a9183=_0x2ad6b9,_0xf14004=_0x4469c1-_0xd2fe1e,_0x11c866=_0x24f6c6-0x2*_0x2ad6b9;if(_0x2668c5>_0x11c866){let _0x7e55fd='',_0x114427=0x0;for(const _0x113e81 of _0x57b2c3){const _0x375480=_0x53f620['measureText'](_0x113e81)[_0x4c9a45(0x30a)];if(_0x114427+_0x375480<=_0x11c866-_0x53f620[_0x4c9a45(0x137)](_0x4c9a45(0x34b))[_0x4c9a45(0x30a)])_0x7e55fd+=_0x113e81,_0x114427+=_0x375480;else{_0x7e55fd+=_0x4c9a45(0x34b);break;}}_0x53f620['fillText'](_0x7e55fd,_0x5a9183,_0xf14004);}else _0x53f620[_0x4c9a45(0x17a)](_0x57b2c3,_0x5a9183,_0xf14004);_0x53f620['restore']();}[_0x360c99(0x372)](_0x5eaba7){const _0xaa004d=_0x360c99;_0x568687[_0xaa004d(0x1ad)](_0x5eaba7,this);}}const _0x241436=_0x360c99(0x3b5),_0x585b5f=_0x360c99(0x2eb),_0x11b0dc=_0x360c99(0x165),_0x25808=0x6,_0x400016=1.5,_0x1a9687=0x4,_0x17748a=1.5,_0x230e44=_0x360c99(0x152);class _0x3beb1d{constructor(_0x25aa15,_0x2d1263,_0x5ee6db,_0xc2cbcb){const _0x365dad=_0x360c99;_0x2197b9(this,_0x365dad(0x31d),[]),_0x2197b9(this,'_anchor',null),_0x2197b9(this,_0x365dad(0x228),null),_0x2197b9(this,_0x365dad(0x177),null),_0x2197b9(this,_0x365dad(0x127),null),_0x2197b9(this,_0x365dad(0x1cf),null),(this[_0x365dad(0x344)]=_0x25aa15,this['_scene']=_0x2d1263,this[_0x365dad(0x23a)]=_0x5ee6db,this[_0x365dad(0x19a)]=_0xc2cbcb,this[_0x365dad(0x240)]());}set[_0x360c99(0x193)](_0x32bbc7){const _0x344fbd=_0x360c99;_0x32bbc7?(this[_0x344fbd(0x177)]&&this[_0x344fbd(0x177)][_0x344fbd(0x36a)](),this[_0x344fbd(0x228)]&&this[_0x344fbd(0x228)]['show']()):(this[_0x344fbd(0x177)]&&this[_0x344fbd(0x177)]['show'](),this[_0x344fbd(0x228)]&&this[_0x344fbd(0x228)][_0x344fbd(0x36a)]());}[_0x360c99(0x2fe)](){const _0x4cf0a0=_0x360c99;for(const _0x16d9bb of this[_0x4cf0a0(0x31d)])_0x16d9bb[_0x4cf0a0(0x2fe)]();this['_textBubble']&&this['_textBubble'][_0x4cf0a0(0x2fe)](),this[_0x4cf0a0(0x177)]&&this[_0x4cf0a0(0x177)][_0x4cf0a0(0x2fe)](),this[_0x4cf0a0(0x185)]&&this[_0x4cf0a0(0x185)][_0x4cf0a0(0x2fe)](),this['_eventUnsubscribe']&&this['_eventUnsubscribe']();}[_0x360c99(0x240)](){const _0x1109ae=_0x360c99;var _0x3ad15a;const {_docSkeleton:_0xaf6cd2,_document:_0x1a7e5f}=this,{color:_0x38fd89,name:_0x457c6a,ranges:_0x1ad233}=this[_0x1109ae(0x344)],_0x2854f1=_0x1a7e5f['getOffsetConfig'](),{docsLeft:_0x24e3c6,docsTop:_0x525e6f}=_0x2854f1,_0x582fb1=new _0x5e00f9['NodePositionConvertToCursor'](_0x2854f1,_0xaf6cd2);for(const {startOffset:_0x78284f,endOffset:_0x4220c1,rangeType:_0x2c5850,segmentId:_0x8f900,segmentPage:_0x64bbcd,collapsed:_0x19b3d3,isActive:_0x30d4eb}of _0x1ad233){const _0x25a541=_0xaf6cd2[_0x1109ae(0x148)](_0x78284f,!0x0,_0x8f900,_0x64bbcd);let _0xe6bea6=_0xaf6cd2[_0x1109ae(0x148)](_0x4220c1,!0x0,_0x8f900,_0x64bbcd);if(_0xe6bea6==null&&(_0xe6bea6=_0xaf6cd2[_0x1109ae(0x148)](_0x4220c1-0x1,!0x1,_0x8f900,_0x64bbcd)),_0x30d4eb){const {contentBoxPointGroup:_0x1f51c7}=_0x582fb1[_0x1109ae(0x2c2)](_0xe6bea6,_0xe6bea6);if(_0x1f51c7[_0x1109ae(0x1fa)]===0x0)continue;this[_0x1109ae(0x386)](_0x38fd89,_0x1f51c7,_0x24e3c6,_0x525e6f,_0x457c6a),this[_0x1109ae(0x1cf)]=this[_0x1109ae(0x33d)]();}if(_0x25a541&&_0xe6bea6){if(_0x2c5850===_0x2b709b[_0x1109ae(0x180)][_0x1109ae(0x384)]){const _0x328acd=new _0x5e00f9[(_0x1109ae(0x39e))](_0x2854f1,_0xaf6cd2),{pointGroup:_0x41b388}=(_0x3ad15a=_0x328acd[_0x1109ae(0x2c2)](_0x25a541,_0xe6bea6))!=null?_0x3ad15a:{};if(_0x41b388==null||_0x41b388[_0x1109ae(0x1fa)]===0x0)continue;this[_0x1109ae(0x3b3)](_0x38fd89,_0x41b388,_0x24e3c6,_0x525e6f);}else{if(!_0x19b3d3){const {borderBoxPointGroup:_0x1d1275}=_0x582fb1[_0x1109ae(0x2c2)](_0x25a541,_0xe6bea6);if(_0x1d1275[_0x1109ae(0x1fa)]===0x0)continue;this['_drawTextRange'](_0x38fd89,_0x1d1275,_0x24e3c6,_0x525e6f);}}}}}[_0x360c99(0x386)](_0x5803f4,_0x1487e9,_0x27d8f5,_0x25bd88,_0x3069ec){const _0x15d714=_0x360c99,_0x4c465f=this[_0x15d714(0x1c5)](_0x1487e9),{left:_0x5558cf,top:_0x5986c8,height:_0x2bcf15}=_0x4c465f,_0x4bd7f6=this[_0x15d714(0x1fc)](),_0x350622=_0x17748a/_0x4bd7f6,_0x2a9fc8=new _0x45a576[(_0x15d714(0x226))](_0x241436+_0x2b709b[_0x15d714(0x169)](_0x25808),{'left':_0x5558cf+_0x27d8f5-_0x350622,'top':_0x5986c8+_0x25bd88,'height':_0x2bcf15,'width':_0x400016,'fill':_0x5803f4||_0x45a576['getColor'](_0x2b709b[_0x15d714(0x23d)][_0x15d714(0x221)],0x0),'strokeWidth':_0x350622,'stroke':_0x230e44,'evented':!0x0});this[_0x15d714(0x185)]=_0x2a9fc8,this[_0x15d714(0x21e)][_0x15d714(0x231)](_0x2a9fc8,_0x5e00f9[_0x15d714(0x287)]);const _0x3feb08=new _0x45a576[(_0x15d714(0x226))](_0x241436+_0x2b709b[_0x15d714(0x169)](_0x25808),{'left':_0x5558cf+_0x27d8f5-_0x350622,'top':_0x5986c8+_0x25bd88-_0x1a9687/0x2,'height':_0x1a9687,'width':_0x1a9687,'fill':_0x5803f4||_0x45a576[_0x15d714(0x269)](_0x2b709b[_0x15d714(0x23d)][_0x15d714(0x221)],0x0),'strokeWidth':0x0,'stroke':_0x5803f4||_0x45a576[_0x15d714(0x269)](_0x2b709b[_0x15d714(0x23d)]['black'],0x0),'evented':!0x1});this[_0x15d714(0x177)]=_0x3feb08,this[_0x15d714(0x21e)][_0x15d714(0x231)](_0x3feb08,_0x5e00f9['TEXT_RANGE_LAYER_INDEX']);const _0x17821f=new _0x568687(_0x241436+_0x2b709b[_0x15d714(0x169)](_0x25808),{'left':_0x5558cf+_0x27d8f5-_0x350622,'top':_0x5986c8+_0x25bd88-_0x4469c1,'text':_0x3069ec,'color':_0x5803f4});this[_0x15d714(0x228)]=_0x17821f,this[_0x15d714(0x21e)][_0x15d714(0x231)](_0x17821f,_0x5e00f9['TEXT_RANGE_LAYER_INDEX']),this[_0x15d714(0x193)]=!0x1;}['_handleHover'](){const _0x54507c=_0x360c99,_0x181b6a=this['_anchor'][_0x54507c(0x37e)][_0x54507c(0x2ca)](()=>{const _0x3651a5=_0x54507c;this[_0x3651a5(0x193)]=!0x0;}),_0x57e157=this[_0x54507c(0x185)][_0x54507c(0x33f)][_0x54507c(0x2ca)](()=>{const _0x22e579=_0x54507c;this[_0x22e579(0x127)]&&clearTimeout(this[_0x22e579(0x127)]),this[_0x22e579(0x127)]=setTimeout(()=>{this['_hover']=!0x1;},0x7d0);});return()=>{const _0x3550b5=_0x54507c;_0x181b6a[_0x3550b5(0x272)](),_0x57e157['unsubscribe']();};}[_0x360c99(0x1b8)](_0x12ecd9,_0x4b5674,_0x16f10d,_0x4f717a){const _0x4903ac=_0x360c99,_0x145235=new _0x2b709b[(_0x4903ac(0x13b))](_0x12ecd9)['setAlpha'](0.2)['toRgbString'](),_0x17a57f=new _0x45a576['RegularPolygon'](_0x585b5f+_0x2b709b['generateRandomId'](_0x25808),{'pointsGroup':_0x4b5674,'fill':_0x145235||_0x45a576[_0x4903ac(0x269)](_0x2b709b['COLORS'][_0x4903ac(0x221)],0.2),'left':_0x16f10d,'top':_0x4f717a,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x4903ac(0x31d)][_0x4903ac(0x36e)](_0x17a57f),this[_0x4903ac(0x21e)][_0x4903ac(0x231)](_0x17a57f,_0x5e00f9['TEXT_RANGE_LAYER_INDEX']);}[_0x360c99(0x3b3)](_0x4b3767,_0x22199f,_0x4e2799,_0x5e0123){const _0x32cfc3=_0x360c99,_0x46a0dc=new _0x2b709b[(_0x32cfc3(0x13b))](_0x4b3767)[_0x32cfc3(0x168)](0.2)['toRgbString'](),_0x5befa3=new _0x45a576['RegularPolygon'](_0x11b0dc+_0x2b709b['generateRandomId'](_0x25808),{'pointsGroup':_0x22199f,'fill':_0x46a0dc||_0x45a576[_0x32cfc3(0x269)](_0x2b709b[_0x32cfc3(0x23d)][_0x32cfc3(0x221)],0.2),'left':_0x4e2799,'top':_0x5e0123,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x32cfc3(0x31d)][_0x32cfc3(0x36e)](_0x5befa3),this[_0x32cfc3(0x21e)]['addObject'](_0x5befa3,_0x5e00f9[_0x32cfc3(0x287)]);}[_0x360c99(0x1c5)](_0x3268c9){const _0x553af6=_0x3268c9[0x0],_0x11ce4c=_0x553af6[0x0],_0x553bd2=_0x553af6[0x2],{x:_0x346e4a,y:_0x441dd1}=_0x11ce4c,{x:_0x2cc57a,y:_0x4298f1}=_0x553bd2;return{'left':_0x346e4a,'top':_0x441dd1,'width':_0x2cc57a-_0x346e4a,'height':_0x4298f1-_0x441dd1};}['_getScale'](){const _0x17db0f=_0x360c99,{scaleX:_0x291789,scaleY:_0x1f00c8}=this[_0x17db0f(0x21e)][_0x17db0f(0x2b8)]();return Math['max'](_0x291789,_0x1f00c8);}}var _0x1fa192=Object[_0x360c99(0x397)],_0x5b55cd=(_0x5d64ca,_0x3800ac,_0x1e7584,_0xec46ae)=>{const _0x287fe8=_0x360c99;for(var _0x3eb35f=_0xec46ae>0x1?void 0x0:_0xec46ae?_0x1fa192(_0x3800ac,_0x1e7584):_0x3800ac,_0xaf7754=_0x5d64ca[_0x287fe8(0x1fa)]-0x1,_0x20a17b;_0xaf7754>=0x0;_0xaf7754--)(_0x20a17b=_0x5d64ca[_0xaf7754])&&(_0x3eb35f=_0x20a17b(_0x3eb35f)||_0x3eb35f);return _0x3eb35f;},_0x873145=(_0x21de43,_0x3a3225)=>(_0x23cc3d,_0x1e8c39)=>_0x3a3225(_0x23cc3d,_0x1e8c39,_0x21de43);let _0x4f058a=class extends _0x2b709b[_0x360c99(0x2f2)]{constructor(_0x4659d7,_0x44d15f,_0x106f9d,_0x401eb8,_0x5bb6d2){const _0x30e5e9=_0x360c99;super(),_0x2197b9(this,'_cursorShapes',[]),_0x2197b9(this,_0x30e5e9(0x3ac),[]),(this[_0x30e5e9(0x341)]=_0x4659d7,this[_0x30e5e9(0x1c3)]=_0x44d15f,this[_0x30e5e9(0x39f)]=_0x106f9d,this['_commandService']=_0x401eb8,this[_0x30e5e9(0x2bc)]=_0x5bb6d2,this[_0x30e5e9(0x1e6)]());}[_0x360c99(0x1e6)](){const _0xb815a0=_0x360c99,_0x23ae71=this['_context'][_0xb815a0(0x2cc)],_0x2ac6f1=this[_0xb815a0(0x1c3)];this[_0xb815a0(0x252)](_0x3052c2[_0xb815a0(0x1de)]([this[_0xb815a0(0x39f)][_0xb815a0(0x149)](_0x23ae71),this[_0xb815a0(0x2bc)][_0xb815a0(0x2d6)]])['pipe'](_0x2698e1['map'](([_0x4d9670,_0x37601d])=>({'skeleton':_0x2ac6f1[_0xb815a0(0x3a3)](),'cursors':[..._0x4d9670[_0xb815a0(0x13a)]()][_0xb815a0(0x322)](_0x726da=>({..._0x726da,'color':this[_0xb815a0(0x2bc)]['getColorFromTheme'](_0x726da[_0xb815a0(0x3b0)])}))})))[_0xb815a0(0x373)](_0xc17bc2=>{const _0x1caff0=_0xb815a0;if(this[_0x1caff0(0x280)](),_0xc17bc2){const {skeleton:_0x1fb9f7,cursors:_0x3e09c2}=_0xc17bc2;this[_0x1caff0(0x2e4)](_0x1fb9f7,_0x3e09c2);}})),this['_initResize'](),this['_initCommandExecutedListener']();}[_0x360c99(0x2e4)](_0x388672,_0xf41523){const _0x7079af=_0x360c99,{scene:_0x54358e,mainComponent:_0x28baa7}=this['_context'],_0x575d12=_0xf41523['map'](_0x3352c4=>new _0x3beb1d(_0x3352c4,_0x54358e,_0x388672,_0x28baa7));this[_0x7079af(0x2f6)]=_0x575d12,this[_0x7079af(0x3ac)]=_0xf41523;}[_0x360c99(0x21d)](){const _0x18ab6a=_0x360c99;this[_0x18ab6a(0x280)]();const {scene:_0x580537,mainComponent:_0x35c901}=this[_0x18ab6a(0x341)],_0x1193c6=this[_0x18ab6a(0x1c3)][_0x18ab6a(0x3a3)](),_0x37130a=this[_0x18ab6a(0x3ac)][_0x18ab6a(0x380)](_0x325742=>new _0x3beb1d(_0x325742,_0x580537,_0x1193c6,_0x35c901));this['_cursorShapes']=_0x37130a;}[_0x360c99(0x280)](){const _0x1d1409=_0x360c99;this['_cursorShapes'][_0x1d1409(0x2ce)](_0x1f17cb=>_0x1f17cb['dispose']()),this[_0x1d1409(0x2f6)]=[];}[_0x360c99(0x295)](){const _0x52fea7=_0x360c99,_0x2bcf8f=[_0x5e00f9[_0x52fea7(0x370)]['id']];this['disposeWithMe'](this[_0x52fea7(0x369)][_0x52fea7(0x135)](_0xe5089c=>{const _0x4281d6=_0x52fea7;_0x2bcf8f[_0x4281d6(0x275)](_0xe5089c['id'])&&_0xe5089c['params'][_0x4281d6(0x2cc)]===this['_context'][_0x4281d6(0x2cc)]&&this['_refreshCollabCursors']();}));}['_initResize'](){const _0x2a45cd=_0x360c99;this[_0x2a45cd(0x252)](_0x2b709b[_0x2a45cd(0x1e3)](this['_context']['engine']['onTransformChange$'])[_0x2a45cd(0x11a)](_0x2698e1['filter'](_0x5d65e4=>_0x5d65e4['type']===_0x45a576[_0x2a45cd(0x326)][_0x2a45cd(0x31a)]),_0x2698e1[_0x2a45cd(0x289)](0x10))[_0x2a45cd(0x373)](()=>{const _0x25723d=_0x2a45cd;this[_0x25723d(0x21d)]();}));}};_0x4f058a=_0x5b55cd([_0x873145(0x1,_0x2b709b[_0x360c99(0x14c)](_0x136824['DocSkeletonManagerService'])),_0x873145(0x2,_0x2b709b[_0x360c99(0x14c)](_0x29df5e)),_0x873145(0x3,_0x2b709b[_0x360c99(0x2f7)]),_0x873145(0x4,_0x2b709b[_0x360c99(0x14c)](_0x2b709b[_0x360c99(0x158)]))],_0x4f058a);const _0x461bd1=0x1,_0x3c4366=1.5;class _0x34aaa3 extends _0x45a576['Shape']{constructor(_0x1b0d35,_0x43fa26){const _0x79fd04=_0x360c99;super(_0x1b0d35,_0x43fa26),_0x2197b9(this,_0x79fd04(0x22a)),_0x2197b9(this,_0x79fd04(0x238),!0x1),_0x2197b9(this,_0x79fd04(0x330)),_0x2197b9(this,'_name',''),_0x2197b9(this,'_labelPosition',_0x79fd04(0x26c)),_0x2197b9(this,'_backgroundColor'),(_0x43fa26&&this['setShapeProps'](_0x43fa26),this[_0x79fd04(0x37e)][_0x79fd04(0x2ca)](()=>this['setShapeProps']({'hovered':!0x0})),this['onPointerLeave$'][_0x79fd04(0x2ca)](()=>this[_0x79fd04(0x223)]({'hovered':!0x1})));}['setShapeProps'](_0x43eea8){const _0x531403=_0x360c99;var _0x246652,_0x163b29,_0x482349,_0x34f7c6,_0x469ad3,_0x2eb560;this[_0x531403(0x22a)]=(_0x246652=_0x43eea8[_0x531403(0x3b0)])!=null?_0x246652:this[_0x531403(0x22a)],this[_0x531403(0x238)]=(_0x163b29=_0x43eea8[_0x531403(0x2db)])!=null?_0x163b29:this[_0x531403(0x238)],this[_0x531403(0x330)]=(_0x482349=_0x43eea8[_0x531403(0x237)])!=null?_0x482349:this[_0x531403(0x330)],this[_0x531403(0x27b)]=(_0x34f7c6=_0x43eea8[_0x531403(0x2ed)])!=null?_0x34f7c6:this[_0x531403(0x27b)],this[_0x531403(0x35c)]=(_0x469ad3=_0x43eea8['labelPosition'])!=null?_0x469ad3:this[_0x531403(0x35c)],this['_backgroundColor']=(_0x2eb560=_0x43eea8[_0x531403(0x2b6)])!=null?_0x2eb560:this[_0x531403(0x36f)],this[_0x531403(0x1aa)]({'width':_0x43eea8[_0x531403(0x30a)],'height':_0x43eea8['height']});}['onMouseMove'](_0x34696b){const _0x1d0108=_0x360c99,{row:_0x237eff,column:_0x343b19}=_0x34696b;if(_0x237eff>=this['_range'][_0x1d0108(0x24f)]&&_0x237eff<=this[_0x1d0108(0x330)][_0x1d0108(0x314)]&&_0x343b19>=this[_0x1d0108(0x330)][_0x1d0108(0x14a)]&&_0x343b19<=this[_0x1d0108(0x330)][_0x1d0108(0x3b6)]){this[_0x1d0108(0x223)]({'hovered':!0x0});return;}this[_0x1d0108(0x223)]({'hovered':!0x1});}[_0x360c99(0x115)](_0x2e4268){return!0x1;}[_0x360c99(0x372)](_0x24e177){const _0x338fda=_0x360c99;_0x45a576['Rect'][_0x338fda(0x1ad)](_0x24e177,{'width':this[_0x338fda(0x30a)],'height':this[_0x338fda(0x162)],'strokeWidth':_0x3c4366,'stroke':this[_0x338fda(0x22a)],'evented':!0x1,'fill':this[_0x338fda(0x36f)]}),this[_0x338fda(0x238)]&&(_0x24e177[_0x338fda(0x172)](),_0x24e177[_0x338fda(0x160)](0x1,0x0,0x0,0x1,this[_0x338fda(0x30a)],this[_0x338fda(0x35c)]==='bottom'?0x0:-_0x4469c1),_0x568687[_0x338fda(0x1ad)](_0x24e177,{'text':this[_0x338fda(0x27b)],'color':this['_color']}),_0x24e177['restore']());}}var _0x56fae1=Object[_0x360c99(0x397)],_0x3d2cbb=(_0xaf18ce,_0x56d330,_0x3df714,_0x9327a3)=>{const _0x5a152c=_0x360c99;for(var _0x79f3b2=_0x9327a3>0x1?void 0x0:_0x9327a3?_0x56fae1(_0x56d330,_0x3df714):_0x56d330,_0x512ff5=_0xaf18ce[_0x5a152c(0x1fa)]-0x1,_0x18fb9a;_0x512ff5>=0x0;_0x512ff5--)(_0x18fb9a=_0xaf18ce[_0x512ff5])&&(_0x79f3b2=_0x18fb9a(_0x79f3b2)||_0x79f3b2);return _0x79f3b2;},_0x223292=(_0x59c8fb,_0x388c2a)=>(_0x2867d3,_0x1b4d0)=>_0x388c2a(_0x2867d3,_0x1b4d0,_0x59c8fb);const _0x42a70a=0x1389;let _0x2d56c6=class extends _0x2b709b['RxDisposable']{constructor(_0x28f191,_0xfa7f93,_0x353511,_0x195386){const _0x33584e=_0x360c99;super(),_0x2197b9(this,'_cursors',new Set()),_0x2197b9(this,_0x33584e(0x1d8),null),(this[_0x33584e(0x341)]=_0x28f191,this[_0x33584e(0x13d)]=_0xfa7f93,this['_collabCursorController']=_0x353511,this[_0x33584e(0x2bc)]=_0x195386,this[_0x33584e(0x1e6)]());}['_init'](){const _0x5b14ce=_0x360c99;this[_0x5b14ce(0x13d)][_0x5b14ce(0x2b5)]['pipe'](_0x2698e1['takeUntil'](this[_0x5b14ce(0x167)]),_0x2698e1[_0x5b14ce(0x21a)](_0x1a07ee=>{const _0x3e956f=_0x5b14ce;if(_0x1a07ee){const _0x1541d9=_0x1a07ee['sheetId'];return _0x3052c2[_0x3e956f(0x1de)](this[_0x3e956f(0x39f)][_0x3e956f(0x149)](this[_0x3e956f(0x341)]['unitId']),this[_0x3e956f(0x2bc)][_0x3e956f(0x2d6)])[_0x3e956f(0x11a)](_0x2698e1[_0x3e956f(0x380)](([_0x687101,_0x1bee54])=>{const _0x1691c5=new Map();return _0x687101['forEach']((_0x17729f,_0x13ce01)=>{const _0x5b81eb=_0x2a3e;if(_0x17729f[_0x5b81eb(0x28e)]===_0x1541d9){const _0x541641={..._0x17729f};_0x541641[_0x5b81eb(0x3b0)]=this[_0x5b81eb(0x2bc)][_0x5b81eb(0x3ab)](_0x17729f[_0x5b81eb(0x3b0)]),_0x1691c5[_0x5b81eb(0x1b3)](_0x13ce01,_0x541641);}}),{'skeleton':_0x1a07ee,'cursors':_0x1691c5};}));}return _0x3052c2['of']({'skeleton':null,'cursors':new Map()});}))[_0x5b14ce(0x373)](({skeleton:_0x571bc6,cursors:_0x2c3bb5})=>{const _0x4dd214=_0x5b14ce;this[_0x4dd214(0x280)](),_0x571bc6&&this[_0x4dd214(0x2e4)](_0x571bc6,_0x2c3bb5);}),this[_0x5b14ce(0x13d)][_0x5b14ce(0x2b5)][_0x5b14ce(0x373)](_0x372abe=>{const _0x59b699=_0x5b14ce;if(_0x372abe==null)return;const {skeleton:_0x4d5771}=_0x372abe,{scene:_0x2be16a}=this[_0x59b699(0x341)];_0x2be16a[_0x59b699(0x16e)][_0x59b699(0x2ca)](_0x2b709b['debounce'](_0xf3ba98=>{const _0x2e0750=_0x59b699;var _0x4d2719,_0x167340;const {offsetX:_0x565438,offsetY:_0x5e60e4}=_0xf3ba98,{x:_0x2dbd9c,y:_0x1bef81}=_0x2be16a['getRelativeToViewportCoord'](_0x45a576[_0x2e0750(0x367)][_0x2e0750(0x3a2)]([_0x565438,_0x5e60e4])),{scaleX:_0x43d954,scaleY:_0x115041}=_0x2be16a[_0x2e0750(0x2b8)](),_0x1f5fc5=_0x2be16a[_0x2e0750(0x1c4)](_0x45a576[_0x2e0750(0x24a)][_0x2e0750(0x2d2)]),_0x55908e=_0x2be16a['getVpScrollXYInfoByPosToVp'](_0x45a576[_0x2e0750(0x367)][_0x2e0750(0x3a2)]([_0x2dbd9c,_0x1bef81]),_0x1f5fc5),_0x39df02=_0x4d5771[_0x2e0750(0x11f)](_0x565438,_0x5e60e4,_0x43d954,_0x115041,_0x55908e);((_0x4d2719=this[_0x2e0750(0x1d8)])==null?void 0x0:_0x4d2719[_0x2e0750(0x262)])===_0x39df02[_0x2e0750(0x262)]&&((_0x167340=this[_0x2e0750(0x1d8)])==null?void 0x0:_0x167340[_0x2e0750(0x250)])===_0x39df02[_0x2e0750(0x250)]||this[_0x2e0750(0x3ac)][_0x2e0750(0x2ce)](_0x4cadff=>{_0x4cadff['onMouseMove'](_0x39df02);});},0x64));});}[_0x360c99(0x2e4)](_0xbde488,_0x5bf412){const _0x5012ff=_0x360c99;var _0x3831fd;const _0x4494a6=(_0x3831fd=this[_0x5012ff(0x13d)][_0x5012ff(0x23f)]())==null?void 0x0:_0x3831fd['skeleton'];if(!_0x4494a6)return;const _0x2e7fbd=this[_0x5012ff(0x2be)]();if(!_0x2e7fbd)return;this[_0x5012ff(0x3ac)][_0x5012ff(0x2ce)](_0x32c831=>{const _0x76a71d=_0x5012ff;_0x32c831[_0x76a71d(0x38b)]();});const {scene:_0x13232b}=_0x2e7fbd,_0x5e8412=_0x3d257f(Array[_0x5012ff(0x222)](_0x5bf412['values']()))[_0x5012ff(0x380)](_0x43578b=>{const _0x177d75=_0x5012ff,{color:_0x32e1d9,range:_0x3295e1,name:_0x5c9c4f,selection:_0x59d432,sheetID:_0x498cfd}=_0x43578b,{startColumn:_0x3ec03c,startRow:_0x3e8720,endColumn:_0x227e40,endRow:_0x1f353b}=_0x3295e1,_0x46a5f8=_0x3bd105[_0x177d75(0x257)](_0x3e8720,_0x3ec03c,_0x13232b,_0x4494a6),_0x1e4968=_0x3bd105[_0x177d75(0x257)](_0x1f353b,_0x227e40,_0x13232b,_0x4494a6),{columnHeaderHeightAndMarginTop:_0x4e075d}=_0x4494a6,{startX:_0x58e13b,startY:_0x16d900}=_0x46a5f8,{endX:_0x1654a8,endY:_0x433657}=_0x1e4968,_0x4e62c8=_0x1654a8-_0x58e13b,_0x135f33=_0x433657-_0x16d900,_0x1b922c={'labelPosition':_0x16d900-_0x4e075d>=_0x4469c1?_0x177d75(0x26c):_0x177d75(0x263),'sheetID':_0x498cfd,'range':_0x3295e1,'color':_0x32e1d9,'name':_0x5c9c4f,'selection':_0x59d432,'left':_0x58e13b,'top':_0x16d900,'width':_0x4e62c8,'height':_0x135f33,'evented':!0x1,'zIndex':_0x42a70a};return new _0x34aaa3(_0x5c9c4f,_0x1b922c);});_0x13232b[_0x5012ff(0x2dd)](_0x5e8412,_0x461bd1),this['_cursors']=new Set(_0x5e8412);}['_removeCollabCursors'](){const _0x21937a=_0x360c99;var _0x46a6c3;(_0x46a6c3=this[_0x21937a(0x3ac)])==null||_0x46a6c3[_0x21937a(0x2ce)](_0x1f0c26=>_0x1f0c26[_0x21937a(0x2fe)]());}[_0x360c99(0x2be)](){const _0x4aa374=_0x360c99;return _0x3bd105[_0x4aa374(0x206)](this[_0x4aa374(0x341)][_0x4aa374(0x351)],this[_0x4aa374(0x341)]);}};_0x2d56c6=_0x3d2cbb([_0x223292(0x1,_0x2b709b[_0x360c99(0x14c)](_0x3bd105[_0x360c99(0x291)])),_0x223292(0x2,_0x2b709b[_0x360c99(0x14c)](_0x29df5e)),_0x223292(0x3,_0x2b709b[_0x360c99(0x14c)](_0x2b709b['ThemeService']))],_0x2d56c6);function _0x3d257f(_0x518c3b){const _0x2c611e=_0x360c99,_0x3844b4=new Map();return _0x518c3b['forEach'](_0xe98517=>{const _0x42ec7c=_0x2a3e;if(_0x3844b4[_0x42ec7c(0x13e)](_0xe98517[_0x42ec7c(0x399)])){const _0x4a6c9f=_0x3844b4[_0x42ec7c(0x2da)](_0xe98517[_0x42ec7c(0x399)]);_0x4a6c9f[_0x42ec7c(0x2ed)]+=',\x20'+_0xe98517[_0x42ec7c(0x2ed)];}else _0x3844b4[_0x42ec7c(0x1b3)](_0xe98517[_0x42ec7c(0x399)],_0xe98517);}),Array['from'](_0x3844b4[_0x2c611e(0x13a)]());}var _0x484d8a=Object[_0x360c99(0x397)],_0x22f0fc=(_0x2c64fb,_0x4e9d43,_0x33bc6d,_0x2d2277)=>{for(var _0x21a8ba=_0x2d2277>0x1?void 0x0:_0x2d2277?_0x484d8a(_0x4e9d43,_0x33bc6d):_0x4e9d43,_0x3262e7=_0x2c64fb['length']-0x1,_0x2cf08a;_0x3262e7>=0x0;_0x3262e7--)(_0x2cf08a=_0x2c64fb[_0x3262e7])&&(_0x21a8ba=_0x2cf08a(_0x21a8ba)||_0x21a8ba);return _0x21a8ba;},_0xa7a49a=(_0x6a753,_0x3fa759)=>(_0x4e2964,_0x245d70)=>_0x3fa759(_0x4e2964,_0x245d70,_0x6a753);let _0x329f6a=class extends _0x2b709b[_0x360c99(0x16d)]{constructor(_0x291de7,_0x16f00c,_0xbf866c,_0x2c016c,_0x2a56bc,_0x27e85c){const _0x434022=_0x360c99;super(),this[_0x434022(0x125)]=_0x291de7,this['_localCacheService']=_0x16f00c,this['_collaborationUIEventService']=_0xbf866c,this[_0x434022(0x28d)]=_0x2c016c,this[_0x434022(0x145)]=_0x2a56bc,this[_0x434022(0x2e5)]=_0x27e85c,this[_0x434022(0x29b)](),this[_0x434022(0x364)]();}[_0x360c99(0x29b)](){const _0x47eb1f=_0x360c99;this[_0x47eb1f(0x252)](this[_0x47eb1f(0x125)][_0x47eb1f(0x151)](()=>{const _0xda212a=_0x47eb1f;if(this[_0xda212a(0x33a)]['saveTaskMap'][_0xda212a(0x248)])return this[_0xda212a(0x2e5)]['t'](_0xda212a(0x319));}));}[_0x360c99(0x364)](){const _0x373090=_0x360c99;this['disposeWithMe'](this['_collaborationUIEventService'][_0x373090(0x2b3)]['subscribe'](_0x85c9ae=>{const _0x30e2da=_0x373090;_0x85c9ae['id']===_0x33f364['CollaborationUIEventId'][_0x30e2da(0x3b1)]&&this[_0x30e2da(0x28d)]['show']({'type':_0x238d53[_0x30e2da(0x2c8)][_0x30e2da(0x1b9)],'content':this['_localeService']['t']('collaboration.single-unit.warning')}),_0x85c9ae['id']===_0x33f364['CollaborationUIEventId']['CLOSE_ROOM']&&this[_0x30e2da(0x28d)][_0x30e2da(0x27a)]({'type':_0x238d53[_0x30e2da(0x2c8)][_0x30e2da(0x1b9)],'content':this[_0x30e2da(0x2e5)]['t'](_0x30e2da(0x2dc))}),_0x85c9ae['id']===_0x33f364[_0x30e2da(0x3b7)][_0x30e2da(0x3b4)]&&this['_notificationService'][_0x30e2da(0x27a)]({'title':this[_0x30e2da(0x2e5)]['t'](_0x30e2da(0x245)),'content':this['_localeService']['t'](_0x30e2da(0x32e)),'type':'error','duration':0x0}),_0x85c9ae['id']===_0x33f364[_0x30e2da(0x3b7)][_0x30e2da(0x17f)]&&this['_messageService'][_0x30e2da(0x27a)]({'type':_0x238d53[_0x30e2da(0x2c8)]['Error'],'content':this[_0x30e2da(0x2e5)]['t']('collaboration.closeRoom')+'('+_0x85c9ae['data']+')'}),_0x85c9ae['id']===_0x33f364[_0x30e2da(0x3b7)][_0x30e2da(0x161)]&&this[_0x30e2da(0x28d)][_0x30e2da(0x27a)]({'type':_0x238d53['MessageType'][_0x30e2da(0x1b9)],'content':this[_0x30e2da(0x2e5)]['t'](_0x85c9ae['data']||'')}),_0x85c9ae['id']===_0x33f364[_0x30e2da(0x3b7)][_0x30e2da(0x2f4)]&&this[_0x30e2da(0x28d)][_0x30e2da(0x27a)]({'type':_0x238d53[_0x30e2da(0x2c8)]['Warning'],'content':this[_0x30e2da(0x2e5)]['t'](_0x30e2da(0x123))}),_0x85c9ae['id']===_0x33f364[_0x30e2da(0x3b7)]['SOCKET_FAILED']&&this[_0x30e2da(0x28d)]['show']({'type':_0x238d53[_0x30e2da(0x2c8)][_0x30e2da(0x1f4)],'content':this['_localeService']['t']('session.connection-failed')}),_0x85c9ae['id']===_0x33f364[_0x30e2da(0x3b7)]['SUBMIT_CHANGESET_TIMEOUT']&&this[_0x30e2da(0x28d)]['show']({'type':_0x238d53[_0x30e2da(0x2c8)]['Error'],'content':this[_0x30e2da(0x2e5)]['t'](_0x30e2da(0x26b))});}));}};_0x329f6a=_0x22f0fc([_0xa7a49a(0x0,_0x24d176[_0x360c99(0x321)]),_0xa7a49a(0x1,_0x33f364['ILocalCacheService']),_0xa7a49a(0x2,_0x2b709b[_0x360c99(0x14c)](_0x33f364['CollaborationUIEventService'])),_0xa7a49a(0x3,_0x24d176[_0x360c99(0x1a2)]),_0xa7a49a(0x4,_0x24d176[_0x360c99(0x19c)]),_0xa7a49a(0x5,_0x2b709b[_0x360c99(0x14c)](_0x2b709b[_0x360c99(0x2e3)]))],_0x329f6a);const _0x1823a5='collaboration-client-ui.config',_0xa0e94={};var _0x29fc8d=Object[_0x360c99(0x397)],_0x13792e=(_0x379901,_0x5a614b,_0x3e7273,_0x1ea6a6)=>{const _0x540022=_0x360c99;for(var _0x1cf5f9=_0x1ea6a6>0x1?void 0x0:_0x1ea6a6?_0x29fc8d(_0x5a614b,_0x3e7273):_0x5a614b,_0x2417fc=_0x379901[_0x540022(0x1fa)]-0x1,_0x576259;_0x2417fc>=0x0;_0x2417fc--)(_0x576259=_0x379901[_0x2417fc])&&(_0x1cf5f9=_0x576259(_0x1cf5f9)||_0x1cf5f9);return _0x1cf5f9;},_0x5394cd=(_0x17004c,_0x2aa365)=>(_0x220322,_0x214f67)=>_0x2aa365(_0x220322,_0x214f67,_0x17004c);let _0x23f606=class{constructor(_0x449d4b,_0x94cfa0){const _0x234ac8=_0x360c99;this[_0x234ac8(0x2cd)]=_0x449d4b,this[_0x234ac8(0x171)]=_0x94cfa0;}['transformIMECache'](_0x698dd5){const _0x528ade=_0x360c99;this[_0x528ade(0x2df)](_0x698dd5),this['_transformPreviousActiveRange'](_0x698dd5);}[_0x360c99(0x301)](_0x345cba){const _0x10fb25=_0x360c99,{unitID:_0x3f4cb2}=_0x345cba,_0xd34273=this[_0x10fb25(0x171)]['getRenderById'](_0x3f4cb2)[_0x10fb25(0x29d)](_0x5e00f9[_0x10fb25(0x1ab)]),{redoCache:_0x2628ad}=_0xd34273['getUndoRedoMutationParamsCache']();if(_0x2628ad['length']===0x0)return _0x345cba;let _0x24ebb9=_0x2b709b[_0x10fb25(0x17b)][_0x10fb25(0x220)](_0x345cba[_0x10fb25(0x12f)][0x0]);for(let _0x24b5b9=0x0;_0x24b5b9<_0x2628ad[_0x10fb25(0x1fa)];_0x24b5b9++){const _0x2d40de={'id':'doc.mutation.rich-text-editing','params':{..._0x2628ad[_0x24b5b9]}},_0x2917f0=this[_0x10fb25(0x2cd)][_0x10fb25(0x208)](_0x24ebb9,_0x2d40de,!0x1);if(_0x13c520[_0x10fb25(0x328)](_0x2917f0))throw _0x2917f0[_0x10fb25(0x2a9)];_0x24ebb9=_0x2917f0['m1Prime'];}return{..._0x2b709b['Tools'][_0x10fb25(0x220)](_0x345cba),'mutations':[_0x24ebb9]};}[_0x360c99(0x2df)](_0x4d6108){const _0x115ed2=_0x360c99,{unitID:_0x3b60d6}=_0x4d6108,_0x365bb2=this[_0x115ed2(0x171)][_0x115ed2(0x1fd)](_0x3b60d6)[_0x115ed2(0x29d)](_0x5e00f9[_0x115ed2(0x1ab)]),{undoCache:_0x5b0552,redoCache:_0x316c16}=_0x365bb2[_0x115ed2(0x14f)]();if(_0x5b0552[_0x115ed2(0x1fa)]===0x0||_0x316c16[_0x115ed2(0x1fa)]===0x0)return;const _0x1022ce=[],_0x4298de=[];let _0xa3c121=_0x2b709b['Tools'][_0x115ed2(0x220)](_0x4d6108[_0x115ed2(0x12f)][0x0]),_0x3d171c=_0x2b709b[_0x115ed2(0x17b)][_0x115ed2(0x220)](_0x4d6108[_0x115ed2(0x12f)][0x0]);for(let _0x4369fa=_0x5b0552['length']-0x1;_0x4369fa>=0x0;_0x4369fa--){const _0x1e87b8={'id':'doc.mutation.rich-text-editing','params':{..._0x5b0552[_0x4369fa]}},_0xfcc7e={'id':_0x115ed2(0x2de),'params':{..._0x316c16[_0x4369fa]}},_0x118bb8=this[_0x115ed2(0x2cd)]['transformMutation'](_0xa3c121,_0x1e87b8,!0x1),_0x411f7f=this[_0x115ed2(0x2cd)][_0x115ed2(0x208)](_0x3d171c,_0xfcc7e,!0x1);if(_0x13c520['isTransformMutationFailure'](_0x118bb8))throw _0x118bb8[_0x115ed2(0x2a9)];if(_0x13c520[_0x115ed2(0x328)](_0x411f7f))throw _0x411f7f[_0x115ed2(0x2a9)];_0x1022ce[_0x115ed2(0x239)](_0x118bb8['m2Prime'][_0x115ed2(0x2a8)]),_0x4298de[_0x115ed2(0x239)](_0x411f7f[_0x115ed2(0x329)][_0x115ed2(0x2a8)]),_0xa3c121=_0x118bb8[_0x115ed2(0x368)],_0x3d171c=_0x411f7f[_0x115ed2(0x368)];}_0x365bb2[_0x115ed2(0x18e)]({'undoCache':_0x1022ce,'redoCache':_0x4298de});}[_0x360c99(0x354)](_0x3aa278){const _0x2166b7=_0x360c99,{unitID:_0x277c50}=_0x3aa278,_0x42e7e9=this[_0x2166b7(0x171)]['getRenderById'](_0x277c50)[_0x2166b7(0x29d)](_0x5e00f9[_0x2166b7(0x1ab)]),_0x3ad05a=_0x42e7e9[_0x2166b7(0x1e9)]();if(_0x3ad05a==null)return;const _0x25e5dc=[{'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x3aa278['unitID'],'actions':null,'textRanges':[_0x3ad05a]}}],_0x3059ec=this[_0x2166b7(0x2cd)][_0x2166b7(0x1e4)](_0x3aa278,_0x25e5dc);if(!_0x13c520[_0x2166b7(0x12d)](_0x3059ec))throw _0x3059ec[_0x2166b7(0x2a9)];const _0xeb809d=_0x3059ec[_0x2166b7(0x329)][0x0][_0x2166b7(0x2a8)][_0x2166b7(0x28b)];Array['isArray'](_0xeb809d)&&_0xeb809d[_0x2166b7(0x1fa)]&&_0x42e7e9[_0x2166b7(0x2f1)](_0xeb809d[0x0]);}};_0x23f606=_0x13792e([_0x5394cd(0x0,_0x13c520[_0x360c99(0x249)]),_0x5394cd(0x1,_0x45a576[_0x360c99(0x2ef)])],_0x23f606);var _0xbe5847=Object[_0x360c99(0x397)],_0x31110b=(_0x339738,_0x5e1ba4,_0x31519b,_0x45ff3c)=>{const _0x287d06=_0x360c99;for(var _0x1a12be=_0x45ff3c>0x1?void 0x0:_0x45ff3c?_0xbe5847(_0x5e1ba4,_0x31519b):_0x5e1ba4,_0x227c3e=_0x339738[_0x287d06(0x1fa)]-0x1,_0x175eca;_0x227c3e>=0x0;_0x227c3e--)(_0x175eca=_0x339738[_0x227c3e])&&(_0x1a12be=_0x175eca(_0x1a12be)||_0x1a12be);return _0x1a12be;},_0x626e10=(_0x29a056,_0x5543ae)=>(_0x372994,_0x205572)=>_0x5543ae(_0x372994,_0x205572,_0x29a056);let _0x18c4d9=class{constructor(_0x356ea2,_0x413812,_0x23337d){const _0x3bcfc1=_0x360c99;this[_0x3bcfc1(0x36d)]=_0x356ea2,this['_transformService']=_0x413812,this['_docStateChangeManagerService']=_0x23337d;}['transformStateCache'](_0x52ccd9){const _0x39602b=_0x360c99;this[_0x39602b(0x1d9)](_0x52ccd9);}[_0x360c99(0x301)](_0x9ebbfc){const _0x3d0f98=_0x360c99,{unitID:_0x246c03}=_0x9ebbfc,{collaboration:_0x304f4a}=this['_docStateChangeManagerService'][_0x3d0f98(0x188)](_0x246c03);if(_0x304f4a[_0x3d0f98(0x1fa)]===0x0)return _0x9ebbfc;let _0x3e624d=_0x2b709b[_0x3d0f98(0x17b)][_0x3d0f98(0x220)](_0x9ebbfc['mutations'][0x0]);for(let _0x5862a8=0x0;_0x5862a8<_0x304f4a[_0x3d0f98(0x1fa)];_0x5862a8++){const _0x2dc01f={'id':_0x3d0f98(0x2de),'params':{'unitId':_0x304f4a[_0x5862a8]['unitId'],..._0x304f4a[_0x5862a8][_0x3d0f98(0x204)]}},_0x20de2e=this[_0x3d0f98(0x2cd)]['transformMutation'](_0x3e624d,_0x2dc01f,!0x1);if(_0x13c520[_0x3d0f98(0x328)](_0x20de2e))throw _0x20de2e[_0x3d0f98(0x2a9)];_0x3e624d=_0x20de2e[_0x3d0f98(0x368)];}return{..._0x2b709b[_0x3d0f98(0x17b)]['deepClone'](_0x9ebbfc),'mutations':[_0x3e624d]};}[_0x360c99(0x1d9)](_0x362a0c){const _0x75aa81=_0x360c99,{unitID:_0x5e19ac}=_0x362a0c,{history:_0x37ca8f,collaboration:_0x5d97af}=this[_0x75aa81(0x2d3)][_0x75aa81(0x188)](_0x5e19ac);if(_0x37ca8f[_0x75aa81(0x1fa)]===0x0&&_0x5d97af['length']===0x0)return;const _0x5a430a=[],_0x285639=[];let _0x1a6c86=_0x2b709b['Tools'][_0x75aa81(0x220)](_0x362a0c['mutations'][0x0]),_0x4057df=_0x2b709b['Tools']['deepClone'](_0x362a0c[_0x75aa81(0x12f)][0x0]);for(let _0x51c2bb=_0x37ca8f[_0x75aa81(0x1fa)]-0x1;_0x51c2bb>=0x0;_0x51c2bb--){const _0x1aa721={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x37ca8f[_0x51c2bb][_0x75aa81(0x2cc)],..._0x37ca8f[_0x51c2bb]['undoState']}},_0x3a00a3={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x37ca8f[_0x51c2bb][_0x75aa81(0x2cc)],..._0x37ca8f[_0x51c2bb]['redoState']}},_0x1352b0=this[_0x75aa81(0x2cd)][_0x75aa81(0x208)](_0x1a6c86,_0x1aa721,!0x1),_0x18311e=this['_transformService'][_0x75aa81(0x208)](_0x4057df,_0x3a00a3,!0x1);if(_0x13c520['isTransformMutationFailure'](_0x1352b0))throw _0x1352b0[_0x75aa81(0x2a9)];if(_0x13c520['isTransformMutationFailure'](_0x18311e))throw _0x18311e[_0x75aa81(0x2a9)];_0x5a430a[_0x75aa81(0x239)]({..._0x37ca8f[_0x51c2bb],'undoState':_0x1352b0['m2Prime']['params'],'redoState':_0x18311e[_0x75aa81(0x329)][_0x75aa81(0x2a8)]}),_0x1a6c86=_0x1352b0[_0x75aa81(0x368)],_0x4057df=_0x18311e[_0x75aa81(0x368)];}_0x1a6c86=_0x2b709b[_0x75aa81(0x17b)][_0x75aa81(0x220)](_0x362a0c[_0x75aa81(0x12f)][0x0]),_0x4057df=_0x2b709b[_0x75aa81(0x17b)][_0x75aa81(0x220)](_0x362a0c[_0x75aa81(0x12f)][0x0]);for(let _0x4ed414=_0x5d97af['length']-0x1;_0x4ed414>=0x0;_0x4ed414--){const _0x441fe0={'id':_0x75aa81(0x2de),'params':{'unitId':_0x5d97af[_0x4ed414][_0x75aa81(0x2cc)],..._0x5d97af[_0x4ed414][_0x75aa81(0x378)]}},_0x4e1b28={'id':_0x75aa81(0x2de),'params':{'unitId':_0x5d97af[_0x4ed414][_0x75aa81(0x2cc)],..._0x5d97af[_0x4ed414][_0x75aa81(0x204)]}},_0x36f43d=this[_0x75aa81(0x2cd)][_0x75aa81(0x208)](_0x1a6c86,_0x441fe0,!0x1),_0x55bd4f=this[_0x75aa81(0x2cd)][_0x75aa81(0x208)](_0x4057df,_0x4e1b28,!0x1);if(_0x13c520[_0x75aa81(0x328)](_0x36f43d))throw _0x36f43d[_0x75aa81(0x2a9)];if(_0x13c520[_0x75aa81(0x328)](_0x55bd4f))throw _0x55bd4f['error'];_0x285639[_0x75aa81(0x239)]({..._0x5d97af[_0x4ed414],'undoState':_0x36f43d[_0x75aa81(0x329)][_0x75aa81(0x2a8)],'redoState':_0x55bd4f['m2Prime']['params']}),_0x1a6c86=_0x36f43d[_0x75aa81(0x368)],_0x4057df=_0x55bd4f['m1Prime'];}this['_docStateChangeManagerService'][_0x75aa81(0x395)](_0x5e19ac,{'history':_0x5a430a,'collaboration':_0x285639});}};_0x18c4d9=_0x31110b([_0x626e10(0x0,_0x2b709b[_0x360c99(0x14c)](_0x2b709b[_0x360c99(0x1ef)])),_0x626e10(0x1,_0x13c520[_0x360c99(0x249)]),_0x626e10(0x2,_0x2b709b[_0x360c99(0x14c)](_0x5e00f9[_0x360c99(0x1f0)]))],_0x18c4d9);var _0x5c5f39=Object[_0x360c99(0x397)],_0x321e62=(_0x32d28b,_0x4aa576,_0x16cf65,_0x2531ca)=>{const _0x4fb930=_0x360c99;for(var _0x367693=_0x2531ca>0x1?void 0x0:_0x2531ca?_0x5c5f39(_0x4aa576,_0x16cf65):_0x4aa576,_0x18a000=_0x32d28b[_0x4fb930(0x1fa)]-0x1,_0x87854f;_0x18a000>=0x0;_0x18a000--)(_0x87854f=_0x32d28b[_0x18a000])&&(_0x367693=_0x87854f(_0x367693)||_0x367693);return _0x367693;},_0x36436d=(_0x35d8c0,_0x943e46)=>(_0x348241,_0x25238f)=>_0x943e46(_0x348241,_0x25238f,_0x35d8c0);let _0x227b61=class{constructor(_0x623037,_0xeb5533){const _0x2f0e0b=_0x360c99;this[_0x2f0e0b(0x36d)]=_0x623037,this[_0x2f0e0b(0x2cd)]=_0xeb5533;}['transformSelections'](_0xdd80b9){const _0x454904=_0x360c99;var _0xd58d99;const _0x2d32b6=this[_0x454904(0x36d)][_0x454904(0x2da)](_0x136824['DocSelectionManagerService']),_0x1dd62f=(_0xd58d99=_0x2d32b6[_0x454904(0x316)]())!=null?_0xd58d99:[];if(_0x1dd62f['length']===0x0)return;const _0x1e62d8=_0xdd80b9[_0x454904(0x1f7)],_0x23f254=[{'id':_0x454904(0x2de),'params':{'unitId':_0x1e62d8,'actions':null,'textRanges':_0x1dd62f}}],_0x375b30=this['_transformService'][_0x454904(0x1e4)](_0xdd80b9,_0x23f254);if(!_0x13c520['isTransformMutationsWithChangesetSuccess'](_0x375b30))throw _0x375b30[_0x454904(0x2a9)];const _0xc8743b=_0x375b30[_0x454904(0x329)][0x0][_0x454904(0x2a8)][_0x454904(0x28b)];Array[_0x454904(0x2c0)](_0xc8743b)&&_0xc8743b[_0x454904(0x1fa)]&&_0x2d32b6[_0x454904(0x212)](_0xc8743b,{'unitId':_0x1e62d8,'subUnitId':_0x1e62d8},!0x1);}};_0x227b61=_0x321e62([_0x36436d(0x0,_0x2b709b[_0x360c99(0x14c)](_0x2b709b[_0x360c99(0x1ef)])),_0x36436d(0x1,_0x13c520[_0x360c99(0x249)])],_0x227b61);var _0x310906=Object[_0x360c99(0x397)],_0x31e9d7=(_0x36e7a9,_0x246322,_0x5b86f0,_0x1df03e)=>{for(var _0x1fff92=_0x1df03e>0x1?void 0x0:_0x1df03e?_0x310906(_0x246322,_0x5b86f0):_0x246322,_0x4d03b9=_0x36e7a9['length']-0x1,_0x481a3c;_0x4d03b9>=0x0;_0x4d03b9--)(_0x481a3c=_0x36e7a9[_0x4d03b9])&&(_0x1fff92=_0x481a3c(_0x1fff92)||_0x1fff92);return _0x1fff92;},_0x21f869=(_0x5c3847,_0x41a069)=>(_0x25ad56,_0x5348fe)=>_0x41a069(_0x25ad56,_0x5348fe,_0x5c3847);let _0x4b66e1=class extends _0x2b709b[_0x360c99(0x16d)]{constructor(_0x138708,_0x1634f,_0x5e06e5,_0x5936f3,_0x5486bf,_0x92f030,_0x4bb19d,_0x5f2513){const _0x5b4905=_0x360c99;super(),_0x2197b9(this,_0x5b4905(0x39d),new _0x3052c2[(_0x5b4905(0x1af))](_0x33f364[_0x5b4905(0x1e7)][_0x5b4905(0x2a6)])),(this[_0x5b4905(0x2d3)]=_0x138708,this['_collaborationController']=_0x1634f,this[_0x5b4905(0x16a)]=_0x5e06e5,this[_0x5b4905(0x1df)]=_0x5936f3,this[_0x5b4905(0x1e5)]=_0x5486bf,this[_0x5b4905(0x1be)]=_0x92f030,this[_0x5b4905(0x28d)]=_0x4bb19d,this[_0x5b4905(0x2e5)]=_0x5f2513,this[_0x5b4905(0x1f9)]());}[_0x360c99(0x1f9)](){const _0x56a118=_0x360c99;this['disposeWithMe'](this[_0x56a118(0x2e9)][_0x56a118(0x33b)]['subscribe'](_0xdeb76e=>{const _0x38e76a=_0x56a118,_0x5aab5d=this[_0x38e76a(0x2d3)][_0x38e76a(0x2a7)][_0x38e76a(0x373)](_0x46427d=>{const _0x298479=_0x38e76a;if(_0x46427d==null)return;const {unitId:_0x26a372,redoState:_0x3b205c,commandId:_0x5061a5}=_0x46427d;if(_0x26a372!==_0xdeb76e[_0x298479(0x1f7)])return;const _0x2ef414={'id':_0x5061a5,'type':_0x2b709b[_0x298479(0x357)][_0x298479(0x1ee)],'params':{'unitId':_0x26a372,'actions':_0x3b205c['actions'],'textRanges':null}};_0xdeb76e[_0x298479(0x12a)](_0x2ef414);});if(_0xdeb76e[_0x38e76a(0x252)](_0x5aab5d),_0xdeb76e instanceof _0x33f364[_0x38e76a(0x1d5)]){const _0xbd547c={'onTransformIME':_0x588850=>this[_0x38e76a(0x16a)]['transformIMECache'](_0x588850),'onTransformState':_0x25bb06=>this[_0x38e76a(0x1df)][_0x38e76a(0x16b)](_0x25bb06),'onTransformSelections':_0x47dbc9=>this[_0x38e76a(0x1e5)][_0x38e76a(0x207)](_0x47dbc9),'onSyncEditingCollabCursor':_0xb30d9c=>this[_0x38e76a(0x1be)][_0x38e76a(0x205)](_0xb30d9c),'onTransformRemoteChangesetByIMECache':_0x4a685d=>this[_0x38e76a(0x16a)]['transformRemoteChangeset'](_0x4a685d),'onTransformRemoteChangesetByStateCache':_0x1c7628=>this[_0x38e76a(0x1df)][_0x38e76a(0x301)](_0x1c7628)};_0xdeb76e[_0x38e76a(0x3af)](_0xbd547c);}}));}};_0x4b66e1=_0x31e9d7([_0x21f869(0x0,_0x2b709b[_0x360c99(0x14c)](_0x5e00f9[_0x360c99(0x1f0)])),_0x21f869(0x1,_0x2b709b[_0x360c99(0x14c)](_0x33f364[_0x360c99(0x306)])),_0x21f869(0x2,_0x2b709b[_0x360c99(0x14c)](_0x23f606)),_0x21f869(0x3,_0x2b709b[_0x360c99(0x14c)](_0x18c4d9)),_0x21f869(0x4,_0x2b709b[_0x360c99(0x14c)](_0x227b61)),_0x21f869(0x5,_0x2b709b['Inject'](_0x314824)),_0x21f869(0x6,_0x24d176[_0x360c99(0x1a2)]),_0x21f869(0x7,_0x2b709b[_0x360c99(0x14c)](_0x2b709b['LocaleService']))],_0x4b66e1);var _0x54c5c1=Object[_0x360c99(0x397)],_0x47f40b=(_0x26e281,_0x321390,_0x5d4c7d,_0x1d342b)=>{const _0x33de2c=_0x360c99;for(var _0x101c96=_0x1d342b>0x1?void 0x0:_0x1d342b?_0x54c5c1(_0x321390,_0x5d4c7d):_0x321390,_0x4c7fff=_0x26e281[_0x33de2c(0x1fa)]-0x1,_0x4113dd;_0x4c7fff>=0x0;_0x4c7fff--)(_0x4113dd=_0x26e281[_0x4c7fff])&&(_0x101c96=_0x4113dd(_0x101c96)||_0x101c96);return _0x101c96;},_0x475cca=(_0x2a6072,_0xde7d62)=>(_0x5c0aed,_0x45f43f)=>_0xde7d62(_0x5c0aed,_0x45f43f,_0x2a6072);let _0x19ee49=class extends _0x2b709b[_0x360c99(0x16d)]{constructor(_0x161092,_0xc3bbb9,_0x146687){const _0x1ccf1b=_0x360c99;super(),_0x2197b9(this,_0x1ccf1b(0x2f9),new Map()),_0x2197b9(this,_0x1ccf1b(0x298),new Map()),_0x2197b9(this,'_disabled',!0x1),(this[_0x1ccf1b(0x31b)]=_0x161092,this[_0x1ccf1b(0x37c)]=_0xc3bbb9,this['_revisionService']=_0x146687);}[_0x360c99(0x194)](){const _0x5d3cde=_0x360c99;this[_0x5d3cde(0x200)]=!0x0;}[_0x360c99(0x12e)](){const _0x3bad5e=_0x360c99;this[_0x3bad5e(0x200)]=!0x1;}get[_0x360c99(0x259)](){const _0x3d2b6d=_0x360c99;return this[_0x3d2b6d(0x298)];}[_0x360c99(0x2fe)](){const _0x5ea35c=_0x360c99;this[_0x5ea35c(0x33e)]()[_0x5ea35c(0x30d)](()=>super[_0x5ea35c(0x2fe)]());}async[_0x360c99(0x36b)](_0x137747){const _0xe12e=_0x360c99;return this[_0xe12e(0x200)]?null:this[_0xe12e(0x37c)][_0xe12e(0x3a6)](_0x33f364['getLocalCacheKey'](_0x137747));}async[_0x360c99(0x147)](_0x359f4b,_0x2c777e){return!!this['_localStorageService']['setItem'](_0x359f4b,_0x2c777e);}[_0x360c99(0x2f5)](_0x55724c,_0x2d05d2,_0x2db989,_0x3ec2a2){const _0x58d6b8=_0x360c99,_0x419913=this[_0x58d6b8(0x38f)][_0x58d6b8(0x2fd)](_0x55724c);this[_0x58d6b8(0x2f9)][_0x58d6b8(0x1b3)](_0x55724c,{'unitID':_0x55724c,'type':_0x2d05d2,'awaitingChangeset':_0x2db989,'mutations':_0x3ec2a2,'rev':_0x419913}),this[_0x58d6b8(0x298)][_0x58d6b8(0x13e)](_0x55724c)||this['_scheduleSaving'](_0x55724c);}[_0x360c99(0x2a3)](_0x5da7d0){const _0x1f1263=_0x360c99,_0x450d31=this['_getSaveTimeout']();_0x450d31===0x0?this['_saveCache'](_0x5da7d0):this[_0x1f1263(0x298)][_0x1f1263(0x1b3)](_0x5da7d0,setTimeout(()=>this[_0x1f1263(0x376)](_0x5da7d0),_0x450d31));}[_0x360c99(0x119)](){const _0x20f94e=_0x360c99;var _0x14386c;return(_0x14386c=this[_0x20f94e(0x31b)]['getConfig'](_0x33f364[_0x20f94e(0x184)]))!=null?_0x14386c:_0x33f364[_0x20f94e(0x2c6)];}[_0x360c99(0x376)](_0x2a3a32){const _0x335a50=_0x360c99,_0x91c9d0=this['_saveTaskMap'][_0x335a50(0x2da)](_0x2a3a32);return _0x91c9d0!==void 0x0&&window['clearTimeout'](_0x91c9d0),this[_0x335a50(0x37c)]['setItem'](_0x33f364[_0x335a50(0x323)](_0x2a3a32),this[_0x335a50(0x2f9)]['get'](_0x2a3a32))[_0x335a50(0x30d)](()=>this[_0x335a50(0x298)]['delete'](_0x2a3a32));}async[_0x360c99(0x33e)](){const _0x4cbe81=_0x360c99,_0x3a2668=[];this[_0x4cbe81(0x298)][_0x4cbe81(0x2ce)]((_0x286266,_0x28bb47)=>{const _0x228485=_0x4cbe81;window['clearTimeout'](_0x286266),_0x3a2668[_0x228485(0x36e)](this['_saveCache'](_0x28bb47)['then'](()=>{const _0x1cc396=_0x228485;this[_0x1cc396(0x298)][_0x1cc396(0x143)](_0x28bb47);}));}),await Promise[_0x4cbe81(0x233)](_0x3a2668);}};_0x19ee49=_0x47f40b([_0x475cca(0x0,_0x2b709b['IConfigService']),_0x475cca(0x1,_0x2b709b[_0x360c99(0x284)]),_0x475cca(0x2,_0x2b709b[_0x360c99(0x14c)](_0x13c520['RevisionService']))],_0x19ee49);class _0x561609 extends _0x2b709b[_0x360c99(0x2f2)]{constructor(){const _0x2214ea=_0x360c99;super(),_0x2197b9(this,_0x2214ea(0x359)),this[_0x2214ea(0x359)]=_0x3052c2[_0x2214ea(0x235)](window,_0x2214ea(0x2c4))[_0x2214ea(0x11a)](_0x3052c2['takeUntil'](this[_0x2214ea(0x167)]),_0x3052c2[_0x2214ea(0x337)](0x1),_0x3052c2['mapTo'](void 0x0));}[_0x360c99(0x211)](_0x1d05ff,_0x4a7732,_0x18ee5d=!0x1){const _0x4df89d=_0x360c99,_0x282db1=new URL(window[_0x4df89d(0x336)][_0x4df89d(0x3a7)]);_0x282db1[_0x4df89d(0x360)]['set'](_0x1d05ff,_0x4a7732),_0x18ee5d?window['history'][_0x4df89d(0x283)]('','',_0x282db1['toString']()):window[_0x4df89d(0x294)][_0x4df89d(0x346)]('','',_0x282db1['toString']());}[_0x360c99(0x265)](_0x15509a,_0x3d5964=!0x1){const _0x585507=_0x360c99,_0x4025ec=new URL(window[_0x585507(0x336)]['href']);_0x4025ec[_0x585507(0x360)]['delete'](_0x15509a),_0x3d5964?window[_0x585507(0x294)]['replaceState']('','',_0x4025ec[_0x585507(0x2ae)]()):window['history']['pushState']('','',_0x4025ec[_0x585507(0x2ae)]());}[_0x360c99(0x11e)](_0x234bdf){const _0x31c3fa=_0x360c99;var _0x2189c7;return(_0x2189c7=new URL(window[_0x31c3fa(0x336)][_0x31c3fa(0x3a7)])[_0x31c3fa(0x360)][_0x31c3fa(0x2da)](_0x234bdf))!=null?_0x2189c7:void 0x0;}}var _0x90164e=Object[_0x360c99(0x214)],_0x300722=Object['getOwnPropertyDescriptor'],_0xfdc988=(_0x2673e8,_0x41a1f4,_0x3d98c4)=>_0x41a1f4 in _0x2673e8?_0x90164e(_0x2673e8,_0x41a1f4,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x3d98c4}):_0x2673e8[_0x41a1f4]=_0x3d98c4,_0x14dc58=(_0x415e4a,_0x326a51,_0x238dc8,_0x234430)=>{const _0x5affaf=_0x360c99;for(var _0x4dd5e7=_0x234430>0x1?void 0x0:_0x234430?_0x300722(_0x326a51,_0x238dc8):_0x326a51,_0x336d81=_0x415e4a[_0x5affaf(0x1fa)]-0x1,_0x19a24e;_0x336d81>=0x0;_0x336d81--)(_0x19a24e=_0x415e4a[_0x336d81])&&(_0x4dd5e7=_0x19a24e(_0x4dd5e7)||_0x4dd5e7);return _0x4dd5e7;},_0x3d70f1=(_0x106f92,_0xe642e4)=>(_0x490bc4,_0x47b493)=>_0xe642e4(_0x490bc4,_0x47b493,_0x106f92),_0x56e1bb=(_0xf0faba,_0x3e9fae,_0x3e9412)=>_0xfdc988(_0xf0faba,_0x3e9fae+'',_0x3e9412);const _0x4621c3=_0x360c99(0x120);_0x2fd8ae[_0x360c99(0x187)]=class extends _0x2b709b['Plugin']{constructor(_0x1bcc98=_0xa0e94,_0x53eca4,_0x1c165b,_0x208f45){const _0x4a6649=_0x360c99;super(),this[_0x4a6649(0x1b4)]=_0x1bcc98,this['_renderManagerService']=_0x53eca4,this[_0x4a6649(0x36d)]=_0x1c165b,this['_configService']=_0x208f45;const {..._0x1af4bf}=_0x2b709b[_0x4a6649(0x2c7)]({},_0xa0e94,this[_0x4a6649(0x1b4)]);this['_configService'][_0x4a6649(0x383)](_0x1823a5,_0x1af4bf);}['onStarting'](){const _0x337257=_0x360c99;this[_0x337257(0x37a)](),this[_0x337257(0x1d6)]();}[_0x360c99(0x347)](){const _0x937a60=_0x360c99;this[_0x937a60(0x144)]();}[_0x360c99(0x37a)](){const _0x144833=_0x360c99;var _0x565754;const _0x28be79=[[_0xe4ed4e],[_0x227b61],[_0x23f606],[_0x18c4d9],[_0x314824],[_0x52e083,{'useClass':_0x561609}],[_0x3092c3[_0x144833(0x3aa)],{'useClass':_0x3092c3[_0x144833(0x11b)]}],[_0x33f364[_0x144833(0x285)],{'useClass':_0x19ee49}],[_0x2fd8ae[_0x144833(0x1a9)]],[_0x4b66e1],[_0x329f6a],[_0x29df5e],[_0xe9be34],[_0x2fd8ae[_0x144833(0x264)]]];_0x2b709b[_0x144833(0x28a)](this[_0x144833(0x36d)],_0x2b709b['mergeOverrideWithDependencies'](_0x28be79,(_0x565754=this[_0x144833(0x1b4)])==null?void 0x0:_0x565754['override']));}[_0x360c99(0x144)](){const _0x3d7bf0=_0x360c99;this[_0x3d7bf0(0x252)](this['_renderManagerService'][_0x3d7bf0(0x288)](_0x2b709b[_0x3d7bf0(0x2a5)][_0x3d7bf0(0x331)],[_0x4f058a])),this['disposeWithMe'](this[_0x3d7bf0(0x171)]['registerRenderModule'](_0x2b709b[_0x3d7bf0(0x2a5)][_0x3d7bf0(0x24b)],[_0x2d56c6]));}['_initDependencies'](){const _0x3a344f=_0x360c99;_0x2b709b[_0x3a344f(0x25b)](this[_0x3a344f(0x36d)],[[_0x29df5e],[_0x2fd8ae[_0x3a344f(0x1a9)]],[_0x4b66e1],[_0x329f6a],[_0x2fd8ae[_0x3a344f(0x264)]]]);}},_0x56e1bb(_0x2fd8ae[_0x360c99(0x187)],_0x360c99(0x34c),_0x4621c3),_0x2fd8ae[_0x360c99(0x187)]=_0x14dc58([_0x2b709b[_0x360c99(0x254)](_0x33f364[_0x360c99(0x23b)]),_0x3d70f1(0x1,_0x45a576[_0x360c99(0x2ef)]),_0x3d70f1(0x2,_0x2b709b[_0x360c99(0x14c)](_0x2b709b[_0x360c99(0x1ef)])),_0x3d70f1(0x3,_0x2b709b[_0x360c99(0x324)])],_0x2fd8ae['UniverCollaborationClientUIPlugin']);var _0x2874b6=Object[_0x360c99(0x397)],_0x179e49=(_0x3f1fc4,_0x5859d6,_0x4f9540,_0x33a89a)=>{const _0x31f4ac=_0x360c99;for(var _0x1fd314=_0x33a89a>0x1?void 0x0:_0x33a89a?_0x2874b6(_0x5859d6,_0x4f9540):_0x5859d6,_0x393ee4=_0x3f1fc4[_0x31f4ac(0x1fa)]-0x1,_0x3108eb;_0x393ee4>=0x0;_0x393ee4--)(_0x3108eb=_0x3f1fc4[_0x393ee4])&&(_0x1fd314=_0x3108eb(_0x1fd314)||_0x1fd314);return _0x1fd314;},_0x35f562=(_0x4c5c58,_0xe55aaa)=>(_0x481a1d,_0x46477f)=>_0xe55aaa(_0x481a1d,_0x46477f,_0x4c5c58);_0x2fd8ae[_0x360c99(0x202)]=class extends _0x33f364[_0x360c99(0x19f)]{constructor(_0x2815e9,_0x27c343,_0x24193a,_0x260738,_0x3155a2){super(_0x2815e9,_0x27c343,_0x24193a,_0x260738,_0x3155a2);}async[_0x360c99(0x155)](_0x22afc2){const _0xc0d3e=_0x360c99,_0x51de8e=await this['_getSessionTicket'](),_0x5d19d1=this['_createSocketURL'](_0x22afc2,_0x51de8e);return this[_0xc0d3e(0x390)](_0x5d19d1);}['_createSocketURL'](_0x38e617,_0xa8a8ef){const _0xcc9cae=_0x360c99,_0xe70904=typeof window>'u'?new URL(_0x38e617):new URL(_0x38e617,window[_0xcc9cae(0x336)][_0xcc9cae(0x2fb)]);_0xe70904[_0xcc9cae(0x360)][_0xcc9cae(0x1b3)](_0xcc9cae(0x241),_0xa8a8ef);const _0x1346fe=typeof window>'u'?new URLSearchParams():new URLSearchParams(window[_0xcc9cae(0x336)]['search']);return _0x1346fe['get'](_0xcc9cae(0x20e))&&_0xe70904[_0xcc9cae(0x360)][_0xcc9cae(0x1b3)]('runId',_0x1346fe['get']('runId')),_0xe70904[_0xcc9cae(0x2ae)]();}async[_0x360c99(0x25d)](){const _0x4283f8=_0x360c99;var _0x17c2eb,_0x4e71e5,_0x3dc6b8;const _0xfc9b2b=this[_0x4283f8(0x31b)][_0x4283f8(0x37f)](_0x33f364[_0x4283f8(0x20f)]),_0x4ca407=(_0x17c2eb=_0xfc9b2b==null?void 0x0:_0xfc9b2b[_0x4283f8(0x2f0)])!=null?_0x17c2eb:_0x33f364[_0x4283f8(0x146)];return(_0x3dc6b8=(_0x4e71e5=(await this[_0x4283f8(0x3a4)][_0x4283f8(0x2da)](_0x4ca407,{'headers':{'Content-Type':'application/json'}}))[_0x4283f8(0x12b)])==null?void 0x0:_0x4e71e5[_0x4283f8(0x24d)])!=null?_0x3dc6b8:'';}},_0x2fd8ae[_0x360c99(0x202)]=_0x179e49([_0x35f562(0x0,_0x2b709b['Inject'](_0x2b709b[_0x360c99(0x1ef)])),_0x35f562(0x1,_0x2b709b['Inject'](_0x3092c3['HTTPService'])),_0x35f562(0x2,_0x2b709b[_0x360c99(0x324)]),_0x35f562(0x3,_0x2b709b['ILogService']),_0x35f562(0x4,_0x13c520[_0x360c99(0x2b4)])],_0x2fd8ae['BrowserCollaborationSocketService']);var _0x356f7a=(_0x1e12b3=>(_0x1e12b3[_0x1e12b3['UNDEFINED']=0x0]=_0x360c99(0x258),_0x1e12b3[_0x1e12b3['OK']=0x1]='OK',_0x1e12b3[_0x1e12b3[_0x360c99(0x256)]=0x2]=_0x360c99(0x256),_0x1e12b3[_0x1e12b3[_0x360c99(0x3b4)]=0x3]=_0x360c99(0x3b4),_0x1e12b3[_0x1e12b3[_0x360c99(0x1a0)]=0x4]=_0x360c99(0x1a0),_0x1e12b3[_0x1e12b3[_0x360c99(0x1dc)]=0x5]=_0x360c99(0x1dc),_0x1e12b3[_0x1e12b3['ALREADY_EXISTS']=0x6]=_0x360c99(0x15c),_0x1e12b3[_0x1e12b3[_0x360c99(0x385)]=0x7]=_0x360c99(0x385),_0x1e12b3[_0x1e12b3[_0x360c99(0x191)]=0x8]=_0x360c99(0x191),_0x1e12b3[_0x1e12b3[_0x360c99(0x37b)]=0x9]='COMPLETION_FINISHED',_0x1e12b3[_0x1e12b3['LOGIN_FAILED']=0xa]=_0x360c99(0x156),_0x1e12b3[_0x1e12b3[_0x360c99(0x15f)]=0xb]=_0x360c99(0x15f),_0x1e12b3[_0x1e12b3['MOBILE_VERIFY_CODE_NOT_FOUND_OR_EXPIRED']=0xc]=_0x360c99(0x2ee),_0x1e12b3[_0x1e12b3[_0x360c99(0x27d)]=0xd]=_0x360c99(0x27d),_0x1e12b3[_0x1e12b3[_0x360c99(0x32c)]=0xe]=_0x360c99(0x32c),_0x1e12b3[_0x1e12b3[_0x360c99(0x1e1)]=0x1389]=_0x360c99(0x1e1),_0x1e12b3[_0x1e12b3[_0x360c99(0x371)]=0x1771]=_0x360c99(0x371),_0x1e12b3[_0x1e12b3[_0x360c99(0x317)]=0x1772]='SNAPSHOT_HAS_BEEN_REMOVED',_0x1e12b3[_0x1e12b3[_0x360c99(0x1d1)]=0x1773]=_0x360c99(0x1d1),_0x1e12b3[_0x1e12b3[_0x360c99(0x303)]=0x1b59]=_0x360c99(0x303),_0x1e12b3[_0x1e12b3[_0x360c99(0x199)]=0x1b5a]=_0x360c99(0x199),_0x1e12b3[_0x1e12b3[_0x360c99(0x141)]=0x1b5b]='APPLY_REVISION_CONFILICT',_0x1e12b3[_0x1e12b3[_0x360c99(0x198)]=0x1b5c]=_0x360c99(0x198),_0x1e12b3[_0x1e12b3['APPLY_DUPLICATED']=0x1b5d]=_0x360c99(0x366),_0x1e12b3[_0x1e12b3[_0x360c99(0x1a7)]=0x1f41]=_0x360c99(0x1a7),_0x1e12b3[_0x1e12b3[_0x360c99(0x1a5)]=0x2329]=_0x360c99(0x1a5),_0x1e12b3[_0x1e12b3[_0x360c99(0x247)]=0x232a]='LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED',_0x1e12b3[_0x1e12b3[_0x360c99(0x192)]=0x232b]='LICENSE_IMPORT_SIZE_EXCEEDED',_0x1e12b3[_0x1e12b3['LICENSE_EXPORT_SIZE_EXCEEDED']=0x232c]=_0x360c99(0x15e),_0x1e12b3[_0x1e12b3['LICENSE_DISTRO_REJECTED']=0x232d]=_0x360c99(0x138),_0x1e12b3[_0x1e12b3['YUUMI_UNABLE_LOAD_URL']=0x2711]=_0x360c99(0x15a),_0x1e12b3[_0x1e12b3['YUUMI_URL_COL_OUT_OF_RANGE']=0x2712]=_0x360c99(0x22c),_0x1e12b3[_0x1e12b3['YUUMI_RATE_OVER_LIMIT']=0x2713]=_0x360c99(0x2c1),_0x1e12b3[_0x1e12b3['YUUMI_SUBSCRIPTION_NOT_FOUND']=0x2714]='YUUMI_SUBSCRIPTION_NOT_FOUND',_0x1e12b3[_0x1e12b3['YUUMI_NO_CUBOID_FOR_QUESTION']=0x271a]=_0x360c99(0x2b0),_0x1e12b3[_0x1e12b3[_0x360c99(0x30e)]=0x271b]='YUUMI_ASYNCIO_CANCELLED',_0x1e12b3[_0x1e12b3[_0x360c99(0x24e)]=0x271c]='YUUMI_TABLE_NOT_FOUND_IN_UNIT',_0x1e12b3[_0x1e12b3['YUUMI_ALL_TABLES_IS_INVALID']=0x271d]=_0x360c99(0x129),_0x1e12b3[_0x1e12b3[_0x360c99(0x377)]=0x271e]='YUUMI_PROMPT_MAX_TOKENS_EXCEEDED',_0x1e12b3[_0x1e12b3[_0x360c99(0x1e0)]=0x271f]='YUUMI_AI_RUN_FAILED',_0x1e12b3[_0x1e12b3[_0x360c99(0x2cb)]=0x2720]=_0x360c99(0x2cb),_0x1e12b3[_0x1e12b3[_0x360c99(0x29c)]=0x2af9]='PY_RUNTIME_SCRIPT_ERROR',_0x1e12b3[_0x1e12b3[_0x360c99(0x2e1)]=0x2ee1]='INVITE_CODE_HAS_BEEN_UES',_0x1e12b3[_0x1e12b3[_0x360c99(0x311)]=0x2ee2]='INVALID_INVITE_CODE',_0x1e12b3[_0x1e12b3[_0x360c99(0x355)]=0x2ee3]='INVITE_CODE_REQUIRED',_0x1e12b3[_0x1e12b3['USER_NOT_INVITED_CODE']=0x2ee4]='USER_NOT_INVITED_CODE',_0x1e12b3[_0x1e12b3[_0x360c99(0x28f)]=0x2ee5]=_0x360c99(0x28f),_0x1e12b3[_0x1e12b3[_0x360c99(0x32a)]=0x32c9]=_0x360c99(0x32a),_0x1e12b3[_0x1e12b3[_0x360c99(0x3a5)]=0x32ca]=_0x360c99(0x3a5),_0x1e12b3[_0x1e12b3[_0x360c99(0x304)]=0x32cb]=_0x360c99(0x304),_0x1e12b3[_0x1e12b3[_0x360c99(0x37d)]=-0x1]='UNRECOGNIZED',_0x1e12b3))(_0x356f7a||{}),_0x31a0f2=Object[_0x360c99(0x397)],_0x225033=(_0x39ded1,_0x189af4,_0x2352fe,_0x411dc3)=>{const _0x4965e6=_0x360c99;for(var _0x599f09=_0x411dc3>0x1?void 0x0:_0x411dc3?_0x31a0f2(_0x189af4,_0x2352fe):_0x189af4,_0x45fb23=_0x39ded1[_0x4965e6(0x1fa)]-0x1,_0x3a02e0;_0x45fb23>=0x0;_0x45fb23--)(_0x3a02e0=_0x39ded1[_0x45fb23])&&(_0x599f09=_0x3a02e0(_0x599f09)||_0x599f09);return _0x599f09;},_0x1e8f91=(_0x559086,_0x2b4d38)=>(_0x2ce880,_0x528cb4)=>_0x2b4d38(_0x2ce880,_0x528cb4,_0x559086);_0x2fd8ae['RemoteUniscriptService']=class extends _0x2b709b[_0x360c99(0x16d)]{constructor(_0x263ea5,_0x4a2ebb,_0x33d66e){const _0x1105fe=_0x360c99;super(),this['_instanceService']=_0x263ea5,this[_0x1105fe(0x3a4)]=_0x4a2ebb,this[_0x1105fe(0x31b)]=_0x33d66e;}async[_0x360c99(0x17c)](_0x23a4c0,_0x170a53,_0x14c8ed,..._0x574677){const _0x4d848c=_0x360c99;var _0x177ca3,_0x169e5e,_0x171910,_0x457044;const _0x551f84=this[_0x4d848c(0x128)][_0x4d848c(0x1d7)]();if(!_0x551f84)throw new Error('[RemoteUniscriptService]:\x20no\x20focused\x20unit');const _0x1d8850=((_0x177ca3=this[_0x4d848c(0x31b)][_0x4d848c(0x37f)](_0x33f364[_0x4d848c(0x134)]))!=null?_0x177ca3:_0x33f364[_0x4d848c(0x183)])+'/'+_0x23a4c0+_0x4d848c(0x18f)+_0x170a53,_0x826c90=new URL(window[_0x4d848c(0x336)]['href']),_0x45322c={'scriptId':_0x23a4c0,'runId':(_0x169e5e=_0x826c90['searchParams'][_0x4d848c(0x2da)](_0x4d848c(0x20e)))!=null?_0x169e5e:'','function':_0x170a53,'unitId':_0x551f84[_0x4d848c(0x35f)](),'argsOfFunction':JSON[_0x4d848c(0x300)](_0x574677),'invokeId':(_0x171910=_0x14c8ed[_0x4d848c(0x150)])!=null?_0x171910:'','executionId':(_0x457044=_0x14c8ed[_0x4d848c(0x282)])!=null?_0x457044:''};try{const _0x40893d=await this[_0x4d848c(0x3a4)][_0x4d848c(0x1bf)](_0x1d8850,{'body':_0x45322c});return _0x40893d[_0x4d848c(0x12b)][_0x4d848c(0x2a9)]&&_0x40893d[_0x4d848c(0x12b)]['error'][_0x4d848c(0x164)]!==_0x356f7a['OK']?_0x4d848c(0x35e):_0x40893d['body'][_0x4d848c(0x1d2)];}catch{return _0x4d848c(0x35e);}}},_0x2fd8ae[_0x360c99(0x2e7)]=_0x225033([_0x1e8f91(0x0,_0x2b709b['IUniverInstanceService']),_0x1e8f91(0x1,_0x2b709b['Inject'](_0x3092c3[_0x360c99(0x2d1)])),_0x1e8f91(0x2,_0x2b709b['IConfigService'])],_0x2fd8ae[_0x360c99(0x2e7)]);const _0x3b03e0=0x7530,_0x2904b4=_0x360c99(0x2e0);class _0x8f298 extends _0x2b709b[_0x360c99(0x16d)]{constructor(){const _0x3f7678=_0x360c99;super(),_0x2197b9(this,'_id',_0x2b709b['generateRandomId']()),_0x2197b9(this,_0x3f7678(0x12c),new Set()),_0x2197b9(this,_0x3f7678(0x196),new Map()),_0x2197b9(this,_0x3f7678(0x2d7),null),_0x2197b9(this,_0x3f7678(0x1d3),new Map()),_0x2197b9(this,_0x3f7678(0x382),new Map()),this[_0x3f7678(0x1e6)]();}[_0x360c99(0x2fe)](){const _0x38393a=_0x360c99;super[_0x38393a(0x2fe)](),this[_0x38393a(0x1d3)][_0x38393a(0x2ce)]((_0x557435,_0x434f49)=>this[_0x38393a(0x244)](_0x434f49)),this[_0x38393a(0x2d7)]&&window['clearInterval'](this[_0x38393a(0x2d7)]);}['getUnitStatus$'](_0x2ca4ff){const _0x20fbbe=_0x360c99;return this[_0x20fbbe(0x31e)](_0x2ca4ff)[_0x20fbbe(0x11a)](_0x3052c2[_0x20fbbe(0x356)]());}[_0x360c99(0x365)](_0x50345c){const _0x1e2ce4=_0x360c99;this[_0x1e2ce4(0x12c)][_0x1e2ce4(0x248)]===0x0&&this[_0x1e2ce4(0x190)](),this['_selfUnitIDs'][_0x1e2ce4(0x1cb)](_0x50345c),this['_send']({'type':0x0,'memberID':this[_0x1e2ce4(0x13c)],'unitIDs':[_0x50345c],'isForwarded':!0x1});}[_0x360c99(0x178)](_0x187dbb){const _0xfc4635=_0x360c99;this[_0xfc4635(0x12c)][_0xfc4635(0x143)](_0x187dbb),this[_0xfc4635(0x12c)][_0xfc4635(0x248)]===0x0&&this['_heartbeatTimer']&&window[_0xfc4635(0x293)](this[_0xfc4635(0x2d7)]);}[_0x360c99(0x1e6)](){const _0xa30703=_0x360c99;this[_0xa30703(0x252)](_0x2b709b[_0xa30703(0x27e)](_0x3052c2['fromEvent'](window,'storage')[_0xa30703(0x373)](_0x297fab=>{const _0x24b528=_0xa30703;if(_0x297fab[_0x24b528(0x215)]!==_0x2904b4||!_0x297fab[_0x24b528(0x34e)])return;const _0x20f80a=JSON[_0x24b528(0x381)](_0x297fab['newValue']);this[_0x24b528(0x20c)](_0x20f80a);}))),window[_0xa30703(0x31f)](_0xa30703(0x1a1),()=>this['_send']({'type':0x1,'memberID':this['_id'],'unitIDs':Array[_0xa30703(0x222)](this[_0xa30703(0x12c)])}));}[_0x360c99(0x20c)](_0x3ced48){const _0x394821=_0x360c99;switch(_0x3ced48[_0x394821(0x225)]){case 0x0:this[_0x394821(0x290)](_0x3ced48);break;case 0x1:this[_0x394821(0x136)](_0x3ced48);break;case 0x2:this['_handleHeartbeatEvent'](_0x3ced48);break;}}[_0x360c99(0x290)](_0x11fcfe){const _0x4d1ddf=_0x360c99,{unitIDs:_0x289ae3,memberID:_0x3d9dfa,isForwarded:_0x1a7b31}=_0x11fcfe;_0x289ae3['forEach'](_0x4cee6d=>{const _0x3c49b3=_0x2a3e;if(!_0x1a7b31&&this[_0x3c49b3(0x196)][_0x3c49b3(0x13e)](_0x4cee6d)&&this[_0x3c49b3(0x31e)](_0x4cee6d)[_0x3c49b3(0x34f)](_0x33f364[_0x3c49b3(0x25a)][_0x3c49b3(0x32f)]),!this['_unitOnClients'][_0x3c49b3(0x13e)](_0x4cee6d)||!this['_unitOnClients'][_0x3c49b3(0x2da)](_0x4cee6d)[_0x3c49b3(0x13e)](_0x3d9dfa)){const _0x46e5f0=this[_0x3c49b3(0x196)][_0x3c49b3(0x2da)](_0x4cee6d)||new Set();_0x46e5f0['add'](_0x3d9dfa),this['_unitOnClients'][_0x3c49b3(0x1b3)](_0x4cee6d,_0x46e5f0),this['_scheduleClearOtherTimer'](_0x3d9dfa);}}),_0x1a7b31||this[_0x4d1ddf(0x218)]({'type':0x0,'memberID':this[_0x4d1ddf(0x13c)],'unitIDs':[...this['_selfUnitIDs']],'isForwarded':!0x0});}[_0x360c99(0x1f2)](_0x1d72a4){const _0x18920c=_0x360c99;this[_0x18920c(0x244)](_0x1d72a4);const _0x238065=window[_0x18920c(0x2e8)](()=>{this['_unitOnClients']['forEach'](_0x23c8b4=>{const _0x5b8e8f=_0x2a3e;_0x23c8b4[_0x5b8e8f(0x143)](_0x1d72a4);});},_0x3b03e0*0x2);this[_0x18920c(0x1d3)]['set'](_0x1d72a4,_0x238065);}['_removeClearOtherTimer'](_0x116b24){const _0x5aeea0=_0x360c99;if(this[_0x5aeea0(0x1d3)]['has'](_0x116b24)){const _0x4bc196=this[_0x5aeea0(0x1d3)][_0x5aeea0(0x2da)](_0x116b24);_0x4bc196&&window[_0x5aeea0(0x353)](_0x4bc196),this[_0x5aeea0(0x1d3)][_0x5aeea0(0x1b3)](_0x116b24,null);}}['_handleLeaveEvent'](_0x528a65){const {memberID:_0x115e59,unitIDs:_0x53e5bc}=_0x528a65;_0x53e5bc['forEach'](_0x9d8547=>{const _0x179ab5=_0x2a3e;var _0x508951;const _0x36bc4a=this[_0x179ab5(0x196)][_0x179ab5(0x2da)](_0x9d8547);_0x36bc4a&&(_0x36bc4a[_0x179ab5(0x143)](_0x115e59),(_0x508951=this['_ensureSubject'](_0x9d8547))==null||_0x508951['next'](_0x36bc4a[_0x179ab5(0x248)]===0x0?_0x33f364[_0x179ab5(0x25a)][_0x179ab5(0x229)]:_0x33f364['UnitStatus']['OTHER_CLIENTS_EDITING']));}),this['_removeClearOtherTimer'](_0x115e59);}[_0x360c99(0x296)](_0x2053c3){const _0x25fc12=_0x360c99;this[_0x25fc12(0x1f2)](_0x2053c3[_0x25fc12(0x17d)]);}['_send'](_0x531449){const _0xd30a92=_0x360c99;localStorage[_0xd30a92(0x24c)](_0x2904b4,JSON[_0xd30a92(0x300)](_0x531449));}[_0x360c99(0x190)](){const _0x38a41a=_0x360c99;this[_0x38a41a(0x2d7)]=window[_0x38a41a(0x3a9)](()=>{const _0xba6cbf=_0x38a41a;this[_0xba6cbf(0x218)]({'type':0x2,'memberID':this[_0xba6cbf(0x13c)]});},_0x3b03e0);}['_ensureSubject'](_0xb6a940){const _0x35e68b=_0x360c99;return this[_0x35e68b(0x382)][_0x35e68b(0x13e)](_0xb6a940)||this[_0x35e68b(0x382)][_0x35e68b(0x1b3)](_0xb6a940,new _0x3052c2[(_0x35e68b(0x1af))](_0x33f364['UnitStatus'][_0x35e68b(0x229)])),this['_unitStatus']['get'](_0xb6a940);}}_0x2fd8ae[_0x360c99(0x154)]=_0x52e083,_0x2fd8ae[_0x360c99(0x118)]=_0x34aaa3,_0x2fd8ae[_0x360c99(0x22b)]=_0x8f298,_0x2fd8ae['WebURLService']=_0x561609,Object[_0x360c99(0x214)](_0x2fd8ae,Symbol[_0x360c99(0x1fe)],{'value':_0x360c99(0x312)});}));
|