@univerjs-pro/collaboration-client-ui 0.25.0 → 1.0.0-alpha.0
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/ar-SA.js +1 -1
- package/lib/cjs/locale/ca-ES.js +1 -1
- package/lib/cjs/locale/de-DE.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/id-ID.js +1 -1
- package/lib/cjs/locale/it-IT.js +1 -1
- package/lib/cjs/locale/ja-JP.js +1 -1
- package/lib/cjs/locale/ko-KR.js +1 -1
- package/lib/cjs/locale/pl-PL.js +1 -1
- package/lib/cjs/locale/pt-BR.js +1 -1
- package/lib/cjs/locale/ru-RU.js +1 -1
- package/lib/cjs/locale/sk-SK.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-HK.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/ar-SA.js +1 -1
- package/lib/es/locale/ca-ES.js +1 -1
- package/lib/es/locale/de-DE.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/id-ID.js +1 -1
- package/lib/es/locale/it-IT.js +1 -1
- package/lib/es/locale/ja-JP.js +1 -1
- package/lib/es/locale/ko-KR.js +1 -1
- package/lib/es/locale/pl-PL.js +1 -1
- package/lib/es/locale/pt-BR.js +1 -1
- package/lib/es/locale/ru-RU.js +1 -1
- package/lib/es/locale/sk-SK.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-HK.js +1 -1
- package/lib/es/locale/zh-TW.js +1 -1
- package/lib/facade.js +1 -1
- package/lib/index.css +6 -6
- package/lib/index.js +1 -1
- package/lib/locale/ar-SA.js +1 -1
- package/lib/locale/ca-ES.js +1 -1
- package/lib/locale/de-DE.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/id-ID.js +1 -1
- package/lib/locale/it-IT.js +1 -1
- package/lib/locale/ja-JP.js +1 -1
- package/lib/locale/ko-KR.js +1 -1
- package/lib/locale/pl-PL.js +1 -1
- package/lib/locale/pt-BR.js +1 -1
- package/lib/locale/ru-RU.js +1 -1
- package/lib/locale/sk-SK.js +1 -1
- package/lib/locale/vi-VN.js +1 -1
- package/lib/locale/zh-CN.js +1 -1
- package/lib/locale/zh-HK.js +1 -1
- package/lib/locale/zh-TW.js +1 -1
- package/lib/types/{controllers/config.schema.d.ts → config/config.d.ts} +8 -0
- package/lib/types/controllers/collab-cursor/collab-cursor.controller.d.ts +3 -2
- package/lib/types/controllers/collab-cursor/slide-collab-cursor-entity.d.ts +34 -0
- package/lib/types/controllers/collab-cursor/slide-collab-cursor-render.controller.d.ts +21 -0
- package/lib/types/controllers/entity-ui/collaboration-entity-ui.controller.d.ts +1 -3
- package/lib/types/index.d.ts +3 -2
- package/lib/types/locale/types.d.ts +3 -0
- package/lib/types/models/cursor.d.ts +23 -0
- package/lib/types/plugin.d.ts +1 -1
- package/lib/types/services/local-cache/web-local-cache.service.d.ts +1 -0
- package/lib/types/services/state-cache-transform/doc-transform-state-cache.service.d.ts +1 -1
- package/lib/types/views/components/CollabStatus.d.ts +1 -1
- package/lib/types/views/shapes/slide-collab-cursor.shape.d.ts +15 -0
- package/lib/umd/facade.js +1 -1
- package/lib/umd/index.js +1 -1
- package/lib/umd/locale/ar-SA.js +1 -1
- package/lib/umd/locale/ca-ES.js +1 -1
- package/lib/umd/locale/de-DE.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/id-ID.js +1 -1
- package/lib/umd/locale/it-IT.js +1 -1
- package/lib/umd/locale/ja-JP.js +1 -1
- package/lib/umd/locale/ko-KR.js +1 -1
- package/lib/umd/locale/pl-PL.js +1 -1
- package/lib/umd/locale/pt-BR.js +1 -1
- package/lib/umd/locale/ru-RU.js +1 -1
- package/lib/umd/locale/sk-SK.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-HK.js +1 -1
- package/lib/umd/locale/zh-TW.js +1 -1
- package/package.json +23 -21
package/lib/cjs/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0xbf25c6=_0x2506;(function(_0x54e248,_0x3cfcdf){const _0x20b966=_0x2506,_0x656935=_0x54e248();while(!![]){try{const _0x26837b=parseInt(_0x20b966(0x1c0))/0x1*(parseInt(_0x20b966(0x1b7))/0x2)+parseInt(_0x20b966(0x150))/0x3+parseInt(_0x20b966(0x28e))/0x4+-parseInt(_0x20b966(0x212))/0x5+-parseInt(_0x20b966(0x36d))/0x6*(parseInt(_0x20b966(0x28f))/0x7)+-parseInt(_0x20b966(0x1e4))/0x8+-parseInt(_0x20b966(0xd8))/0x9*(parseInt(_0x20b966(0x134))/0xa);if(_0x26837b===_0x3cfcdf)break;else _0x656935['push'](_0x656935['shift']());}catch(_0x22a39){_0x656935['push'](_0x656935['shift']());}}}(_0x35dd,0x2bd8a),Object['defineProperty'](exports,Symbol['toStringTag'],{'value':_0xbf25c6(0x1bd)}));let e=require('@univerjs-pro/collaboration-client'),t=require('@univerjs/core'),n=require('@univerjs/ui'),r=require('rxjs'),i=require('rxjs/operators'),a=require('@univerjs/design'),o=require('@univerjs/icons'),s=require('react'),c=require('react/jsx-runtime'),l=require('@univerjs/rpc'),u=require('@univerjs/sheets'),d=require('@univerjs/engine-render'),f=require('@univerjs/network'),p=require('@univerjs/docs-ui'),m=require('@univerjs/drawing'),h=require('@univerjs-pro/collaboration'),g=require('@univerjs/docs'),_=require('@univerjs/engine-formula'),v=require('@univerjs/sheets-ui'),y=require('@univerjs/protocol');function b(_0x3507c4){const _0x5bfe23=_0xbf25c6;switch(_0x3507c4){case e[_0x5bfe23(0x117)][_0x5bfe23(0x1d4)]:return{'icon':(0x0,c['jsx'])(o[_0x5bfe23(0x2f2)],{}),'colorClass':'univer-text-red-500','i18nKey':'collaboration-client-ui.collabStatus.offline','tooltipKey':_0x5bfe23(0x10a),'clickable':!0x0,'indicator':_0x5bfe23(0x29d)};case e[_0x5bfe23(0x117)][_0x5bfe23(0x279)]:return{'icon':(0x0,c[_0x5bfe23(0x143)])(o[_0x5bfe23(0x2f2)],{}),'colorClass':_0x5bfe23(0x263),'i18nKey':_0x5bfe23(0x335),'clickable':!0x1,'indicator':_0x5bfe23(0x29d)};case e[_0x5bfe23(0x117)][_0x5bfe23(0x163)]:return{'icon':(0x0,c['jsx'])(o['LoadingMultiIcon'],{}),'colorClass':_0x5bfe23(0x20c),'i18nKey':_0x5bfe23(0x25e),'clickable':!0x1,'indicator':'spin'};case e['CollaborationStatus'][_0x5bfe23(0x368)]:return{'icon':(0x0,c[_0x5bfe23(0x143)])(o['OnLineIcon'],{}),'colorClass':_0x5bfe23(0x1bb),'i18nKey':_0x5bfe23(0x29a),'clickable':!0x1,'indicator':_0x5bfe23(0x29d)};case e[_0x5bfe23(0x117)][_0x5bfe23(0xff)]:case e[_0x5bfe23(0x117)]['AWAITING_WITH_PENDING']:return{'icon':(0x0,c[_0x5bfe23(0x143)])(o['LoadingMultiIcon'],{}),'colorClass':_0x5bfe23(0x20c),'i18nKey':_0x5bfe23(0x27c),'clickable':!0x1,'indicator':_0x5bfe23(0x15d)};case e[_0x5bfe23(0x117)][_0x5bfe23(0x160)]:return{'icon':(0x0,c['jsx'])(o[_0x5bfe23(0x24a)],{}),'colorClass':_0x5bfe23(0x20c),'i18nKey':_0x5bfe23(0x27c),'clickable':!0x1,'indicator':_0x5bfe23(0x15d)};case e[_0x5bfe23(0x117)][_0x5bfe23(0x19f)]:return{'icon':(0x0,c['jsx'])(o['OnLineIcon'],{}),'colorClass':_0x5bfe23(0x14c),'i18nKey':'collaboration-client-ui.collabStatus.synced','clickable':!0x1,'indicator':_0x5bfe23(0x29d)};}}function x(_0xef3450){const _0x3a2f8e=_0xbf25c6;let {status$:_0x5c8e13}=_0xef3450,_0x4947e2=(0x0,n[_0x3a2f8e(0x28c)])(_0x5c8e13,e['CollaborationStatus'][_0x3a2f8e(0x368)]),_0x1c1d42=(0x0,n[_0x3a2f8e(0xdc)])(t[_0x3a2f8e(0x334)]),_0x423549=(0x0,n[_0x3a2f8e(0xdc)])(e['CollaborationSessionService']),_0x1de2d2=(0x0,s[_0x3a2f8e(0x35b)])(()=>b(_0x4947e2),[_0x4947e2]),_0x44c916=_0x4947e2!==e['CollaborationStatus'][_0x3a2f8e(0x1d4)],_0x58e00a=_0x1c1d42['t'](_0x1de2d2[_0x3a2f8e(0x233)]),_0x25813f=_0x1de2d2[_0x3a2f8e(0x29b)]?_0x1c1d42['t'](_0x1de2d2[_0x3a2f8e(0x29b)]):_0x58e00a,_0x3c515b=(0x0,s[_0x3a2f8e(0x26f)])(()=>{const _0x163040=_0x3a2f8e;_0x44c916||_0x423549[_0x163040(0xe0)]();},[_0x44c916,_0x423549]),_0x4b6f4a=(0x0,s[_0x3a2f8e(0x26f)])(_0x254300=>{const _0x13b916=_0x3a2f8e;!_0x44c916&&(_0x254300['key']===_0x13b916(0x1c9)||_0x254300[_0x13b916(0x2fa)]==='\x20')&&(_0x254300[_0x13b916(0x360)](),_0x423549[_0x13b916(0xe0)]());},[_0x44c916,_0x423549]),_0xf08096=(0x0,c['jsx'])(_0x3a2f8e(0x116),{'className':(0x0,a['clsx'])('univer-flex\x20univer-items-center\x20univer-justify-center',_0x3a2f8e(0x234),_0x1de2d2[_0x3a2f8e(0x2db)],{'univer-animate-spin':_0x1de2d2[_0x3a2f8e(0x18a)]===_0x3a2f8e(0x15d),'univer-animate-pulse':_0x1de2d2[_0x3a2f8e(0x18a)]===_0x3a2f8e(0x155)}),'aria-hidden':'true','children':_0x1de2d2[_0x3a2f8e(0x21f)]}),_0x191c39=(0x0,c[_0x3a2f8e(0x143)])(_0x3a2f8e(0x116),{'className':(0x0,a['clsx'])(_0x3a2f8e(0x207),_0x3a2f8e(0x24c),_0x3a2f8e(0x2cb),'focus:univer-outline-none\x20focus:univer-ring-2\x20focus:univer-ring-primary-500\x20focus:univer-ring-offset-2',_0x3a2f8e(0x125),{'univer-cursor-pointer\x20hover:univer-bg-gray-100\x20dark:hover:univer-bg-gray-700':_0x1de2d2[_0x3a2f8e(0x194)],'univer-cursor-default':!_0x1de2d2[_0x3a2f8e(0x194)]}),'children':_0xf08096});return _0x1de2d2[_0x3a2f8e(0x194)]?(0x0,c[_0x3a2f8e(0x143)])(a[_0x3a2f8e(0x338)],{'title':_0x25813f,'placement':_0x3a2f8e(0x118),'children':(0x0,c[_0x3a2f8e(0x143)])(_0x3a2f8e(0x2e9),{'type':_0x3a2f8e(0x2e9),'onClick':_0x3c515b,'onKeyDown':_0x4b6f4a,'className':(0x0,a[_0x3a2f8e(0x1fc)])(_0x3a2f8e(0x361),'univer-border-none\x20univer-bg-transparent',_0x3a2f8e(0x2d3),_0x3a2f8e(0x2d7)),'aria-label':_0x58e00a+'\x20-\x20'+_0x25813f,'role':_0x3a2f8e(0x1d6),'aria-live':_0x3a2f8e(0x300),'aria-atomic':_0x3a2f8e(0x322),'children':_0x191c39})}):(0x0,c[_0x3a2f8e(0x143)])(a[_0x3a2f8e(0x338)],{'title':_0x25813f,'placement':_0x3a2f8e(0x118),'children':(0x0,c[_0x3a2f8e(0x143)])(_0x3a2f8e(0x319),{'className':(0x0,a[_0x3a2f8e(0x1fc)])(_0x3a2f8e(0x361),'univer-border-none\x20univer-bg-transparent',_0x3a2f8e(0x2d3)),'aria-label':_0x58e00a,'role':_0x3a2f8e(0x1d6),'aria-live':'polite','aria-atomic':_0x3a2f8e(0x322),'children':_0x191c39})});}function S(_0xea93d0){'@babel/helpers - typeof';const _0x52508d=_0xbf25c6;return S=typeof Symbol==_0x52508d(0x306)&&typeof Symbol[_0x52508d(0x19a)]==_0x52508d(0x1ed)?function(_0x425297){return typeof _0x425297;}:function(_0x57f663){const _0x4dae33=_0x52508d;return _0x57f663&&typeof Symbol==_0x4dae33(0x306)&&_0x57f663[_0x4dae33(0x190)]===Symbol&&_0x57f663!==Symbol[_0x4dae33(0x254)]?'symbol':typeof _0x57f663;},S(_0xea93d0);}function ee(_0x246f26,_0x5f2275){const _0x5af5e9=_0xbf25c6;if(S(_0x246f26)!='object'||!_0x246f26)return _0x246f26;var _0x3541da=_0x246f26[Symbol[_0x5af5e9(0x108)]];if(_0x3541da!==void 0x0){var _0x288e99=_0x3541da[_0x5af5e9(0x1aa)](_0x246f26,_0x5f2275||'default');if(S(_0x288e99)!='object')return _0x288e99;throw TypeError(_0x5af5e9(0xdf));}return(_0x5f2275===_0x5af5e9(0x343)?String:Number)(_0x246f26);}function te(_0x89839f){const _0x5510a2=_0xbf25c6;var _0x43f742=ee(_0x89839f,_0x5510a2(0x343));return S(_0x43f742)==_0x5510a2(0x1ed)?_0x43f742:_0x43f742+'';}function C(_0x117c48,_0x2d288a,_0x27b987){const _0x3d61d4=_0xbf25c6;return(_0x2d288a=te(_0x2d288a))in _0x117c48?Object[_0x3d61d4(0x35a)](_0x117c48,_0x2d288a,{'value':_0x27b987,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x117c48[_0x2d288a]=_0x27b987,_0x117c48;}function w(_0x1fdd0c,_0x45b294){return function(_0x5668b5,_0x2a0095){_0x45b294(_0x5668b5,_0x2a0095,_0x1fdd0c);};}function T(_0x6ad23c,_0x210bdb,_0x13686e,_0x1b0355){const _0x16c8ae=_0xbf25c6;var _0x2ca8d5=arguments['length'],_0x4a11e4=_0x2ca8d5<0x3?_0x210bdb:_0x1b0355===null?_0x1b0355=Object[_0x16c8ae(0x106)](_0x210bdb,_0x13686e):_0x1b0355,_0x1ce9ea;if(typeof Reflect==_0x16c8ae(0x36f)&&typeof Reflect[_0x16c8ae(0x269)]==_0x16c8ae(0x306))_0x4a11e4=Reflect[_0x16c8ae(0x269)](_0x6ad23c,_0x210bdb,_0x13686e,_0x1b0355);else{for(var _0x59b729=_0x6ad23c[_0x16c8ae(0x217)]-0x1;_0x59b729>=0x0;_0x59b729--)(_0x1ce9ea=_0x6ad23c[_0x59b729])&&(_0x4a11e4=(_0x2ca8d5<0x3?_0x1ce9ea(_0x4a11e4):_0x2ca8d5>0x3?_0x1ce9ea(_0x210bdb,_0x13686e,_0x4a11e4):_0x1ce9ea(_0x210bdb,_0x13686e))||_0x4a11e4);}return _0x2ca8d5>0x3&&_0x4a11e4&&Object[_0x16c8ae(0x35a)](_0x210bdb,_0x13686e,_0x4a11e4),_0x4a11e4;}let E=class extends t[_0xbf25c6(0x229)]{constructor(_0x4662a8,_0x1d3290,_0x2b8c67,_0x4052f4){const _0x134d15=_0xbf25c6;super(),this['_univerInstanceService']=_0x4662a8,this['_injector']=_0x1d3290,this[_0x134d15(0x169)]=_0x2b8c67,this[_0x134d15(0xd5)]=_0x4052f4,C(this,_0x134d15(0x255),new r[(_0x134d15(0x2da))](e[_0x134d15(0x117)][_0x134d15(0x368)])),this[_0x134d15(0xdb)](),this[_0x134d15(0x2ae)]();}[_0xbf25c6(0x2ae)](){const _0x5403ea=_0xbf25c6;this[_0x5403ea(0x154)]((0x0,r['merge'])(this[_0x5403ea(0x355)][_0x5403ea(0x35c)],this['_univerInstanceService'][_0x5403ea(0x33a)](t[_0x5403ea(0xd6)][_0x5403ea(0x375)]),this[_0x5403ea(0x355)]['getCurrentTypeOfUnit$'](t[_0x5403ea(0xd6)][_0x5403ea(0x18d)]))['pipe']((0x0,i[_0x5403ea(0x2b3)])(()=>ne(this['_univerInstanceService'])),(0x0,i[_0x5403ea(0x184)])(),(0x0,r['switchMap'])(_0x324319=>_0x324319?this['_collaborationController']['getCollabEntity$'](_0x324319):(0x0,r['of'])(null)),(0x0,r['switchMap'])(_0x2e4ede=>_0x2e4ede?_0x2e4ede[_0x5403ea(0x264)]:(0x0,r['of'])(e[_0x5403ea(0x117)][_0x5403ea(0x368)])))[_0x5403ea(0x230)](_0x546a00=>{const _0x4721a6=_0x5403ea;this['_status$'][_0x4721a6(0x1e2)](_0x546a00);}));}[_0xbf25c6(0xdb)](){const _0x26ad1b=_0xbf25c6;this[_0x26ad1b(0x154)](this[_0x26ad1b(0xd5)][_0x26ad1b(0x374)](n['BuiltInUIPart'][_0x26ad1b(0x2ea)],()=>(0x0,n[_0x26ad1b(0xeb)])(re({'status$':this[_0x26ad1b(0x255)][_0x26ad1b(0x175)]()}),this['_injector'])));}};E=T([w(0x0,t[_0xbf25c6(0x1d8)]),w(0x1,(0x0,t[_0xbf25c6(0x142)])(t[_0xbf25c6(0x1f5)])),w(0x2,(0x0,t[_0xbf25c6(0x142)])(e[_0xbf25c6(0x2b1)])),w(0x3,n[_0xbf25c6(0x13f)])],E);function ne(_0xb3afde){const _0x3b66e2=_0xbf25c6;let _0x129f76=_0xb3afde[_0x3b66e2(0x12b)](),_0x2e8030=_0x129f76==null?void 0x0:_0x129f76[_0x3b66e2(0x191)]();if(_0x2e8030&&!(0x0,t[_0x3b66e2(0x378)])(_0x2e8030))return _0x2e8030;let _0x241521=_0xb3afde[_0x3b66e2(0x247)](t[_0x3b66e2(0xd6)][_0x3b66e2(0x375)]),_0x298440=_0x241521==null?void 0x0:_0x241521[_0x3b66e2(0x191)]();if(_0x298440&&!(0x0,t[_0x3b66e2(0x378)])(_0x298440))return _0x298440;let _0x187bf5=_0xb3afde[_0x3b66e2(0x247)](t['UniverInstanceType'][_0x3b66e2(0x18d)]);if(_0x187bf5)return _0x187bf5[_0x3b66e2(0x191)]();let _0x4c9729=_0xb3afde[_0x3b66e2(0x29f)](t[_0x3b66e2(0xd6)][_0x3b66e2(0x375)])[_0x3b66e2(0x1de)](_0x26142b=>!(0x0,t[_0x3b66e2(0x378)])(_0x26142b['getUnitId']()));return _0x4c9729?_0x4c9729[_0x3b66e2(0x191)]():null;}function re(_0x520bcb){let {status$:_0x411b8f}=_0x520bcb;return function(){const _0x55512b=_0x2506;return(0x0,c[_0x55512b(0x143)])(x,{'status$':_0x411b8f});};}const D=(0x0,t['createIdentifier'])(_0xbf25c6(0x216));let O=class extends t['RxDisposable']{constructor(_0x10667e,_0x3b4623,_0x3213c6,_0x5cb07b,_0x11f775){const _0x779f9a=_0xbf25c6;super(),this['_urlService']=_0x10667e,this['_logService']=_0x3b4623,this[_0x779f9a(0x2fb)]=_0x3213c6,this[_0x779f9a(0x291)]=_0x5cb07b,_0x11f775?_0x11f775==null||_0x11f775[_0x779f9a(0x21d)]()[_0x779f9a(0x198)](()=>this[_0x779f9a(0x2b2)]()):(this[_0x779f9a(0x177)][_0x779f9a(0x102)](_0x779f9a(0x295),'No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.'),this[_0x779f9a(0x2b2)]());}async[_0xbf25c6(0x2b2)](){const _0x45a7cd=_0xbf25c6;let _0x341c60=this[_0x45a7cd(0x367)][_0x45a7cd(0x26a)](_0x45a7cd(0x2bc)),_0x2f6bdc=this[_0x45a7cd(0x367)][_0x45a7cd(0x26a)]('type'),_0x3e2456=this[_0x45a7cd(0x367)][_0x45a7cd(0x26a)](_0x45a7cd(0x219));if(!_0x341c60||!_0x2f6bdc){this[_0x45a7cd(0x177)][_0x45a7cd(0x102)](_0x45a7cd(0x295),'No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.');return;}let _0x1db315=await this[_0x45a7cd(0x291)][_0x45a7cd(0x37c)](_0x341c60,Number(_0x2f6bdc),_0x3e2456);_0x1db315&&_0x1db315 instanceof t[_0x45a7cd(0x25f)]&&this[_0x45a7cd(0x323)](_0x1db315);}async[_0xbf25c6(0x323)](_0x494bd8){const _0x130d98=_0xbf25c6;await this[_0x130d98(0x158)](_0x494bd8),_0x494bd8['activeSheet$']['pipe']((0x0,r[_0x130d98(0x1a8)])(this['dispose$']))[_0x130d98(0x230)](_0x1956e8=>{const _0x2bd3b0=_0x130d98;_0x1956e8&&this[_0x2bd3b0(0x1ca)](_0x1956e8);}),this[_0x130d98(0x367)][_0x130d98(0x341)]['pipe']((0x0,r['takeUntil'])(this[_0x130d98(0x187)]))['subscribe'](()=>this['_updateSubUnitFromURLParams'](_0x494bd8));}[_0xbf25c6(0x1ca)](_0x236dd2,_0x46de0c=!0x1){const _0x37c0c4=_0xbf25c6;let _0xbc66df=this[_0x37c0c4(0x367)]['getParam'](_0x37c0c4(0x219));_0x236dd2[_0x37c0c4(0x129)]()!==_0xbc66df&&this['_urlService'][_0x37c0c4(0x133)](_0x37c0c4(0x219),_0x236dd2[_0x37c0c4(0x129)](),_0x46de0c);}async[_0xbf25c6(0x158)](_0x8488aa){const _0x387c58=_0xbf25c6;var _0xdb9fcf;let _0x5055f5=this[_0x387c58(0x367)][_0x387c58(0x26a)](_0x387c58(0x219));if(!_0x5055f5||!_0x8488aa[_0x387c58(0x284)](_0x5055f5)){let _0x24d0c2=_0x8488aa['getUnhiddenWorksheets']()[0x0],_0xd3b1ac=_0x8488aa[_0x387c58(0x284)](_0x24d0c2);if(!_0xd3b1ac)return;this[_0x387c58(0x1ca)](_0xd3b1ac,!0x0),await this[_0x387c58(0x2fb)][_0x387c58(0x25c)](u['SetWorksheetActivateCommand']['id'],{'unitId':_0x8488aa['getUnitId'](),'subUnitId':_0x24d0c2});return;}((_0xdb9fcf=_0x8488aa['getActiveSheet']())==null?void 0x0:_0xdb9fcf['getSheetId']())!==_0x5055f5&&await this[_0x387c58(0x2fb)][_0x387c58(0x25c)](u[_0x387c58(0x2b4)]['id'],{'unitId':_0x8488aa[_0x387c58(0x191)](),'subUnitId':_0x5055f5});}};O=T([w(0x0,D),w(0x1,t['ILogService']),w(0x2,t[_0xbf25c6(0x245)]),w(0x3,(0x0,t[_0xbf25c6(0x142)])(e[_0xbf25c6(0x1a1)])),w(0x4,(0x0,t[_0xbf25c6(0x2f4)])(l[_0xbf25c6(0x30f)]))],O);var ie=_0xbf25c6(0x195),ae=_0xbf25c6(0x174);let k=class extends t[_0xbf25c6(0x266)]{constructor(_0x2e757c,_0x319002){const _0x16515c=_0xbf25c6;super(),this[_0x16515c(0x145)]=_0x2e757c,this[_0x16515c(0x34d)]=_0x319002,this[_0x16515c(0x2b2)]();}[_0xbf25c6(0x2b2)](){const _0x5121d4=_0xbf25c6;let _0x3e9c57=this;this['disposeWithMe'](this['_docClipboardService'][_0x5121d4(0x10c)]({'onBeforePasteImage':async _0x5d8173=>{const _0x55f692=_0x5121d4;let _0x441a0e=await _0x3e9c57[_0x55f692(0x34d)][_0x55f692(0x32b)](_0x5d8173);return _0x441a0e?{'source':_0x441a0e[_0x55f692(0xf7)],'imageSourceType':_0x441a0e[_0x55f692(0x253)]}:null;}}));}};k=T([w(0x0,p[_0xbf25c6(0x222)]),w(0x1,m['IImageIoService'])],k);const A=[_0xbf25c6(0x21c),'jiqing.500',_0xbf25c6(0x100),_0xbf25c6(0x2fd),_0xbf25c6(0x321),_0xbf25c6(0x2cf)];var j=class extends t['Disposable']{constructor(..._0x2cac1a){const _0x39dfed=_0xbf25c6;super(..._0x2cac1a),C(this,'_assignedColors',new Map()),C(this,_0x39dfed(0x27b),0x0);}[_0xbf25c6(0x33f)](_0x1a19ed){const _0xe25441=_0xbf25c6;if(this[_0xe25441(0x364)][_0xe25441(0x17f)](_0x1a19ed))return this['_assignedColors'][_0xe25441(0x277)](_0x1a19ed);let _0x2ad5b1=A[this[_0xe25441(0x27b)]];return this[_0xe25441(0x27b)]=(this[_0xe25441(0x27b)]+0x1)%A[_0xe25441(0x217)],this['_assignedColors']['set'](_0x1a19ed,_0x2ad5b1),_0x2ad5b1;}};function M(_0x148349){let _0x13cec='';for(let _0x90018f of _0x148349){let {startOffset:_0x1e1957,endOffset:_0x5af00c,isActive:_0x22ce96,rangeType:_0x4b8752,segmentId:_0x59ec0d,segmentPage:_0x104b0f}=_0x90018f;_0x13cec['length']&&(_0x13cec+=','),_0x13cec+=_0x1e1957+':'+_0x5af00c+':'+(_0x22ce96?'1':'0')+':'+_0x4b8752+':'+_0x59ec0d+':'+_0x104b0f;}return _0x13cec;}function oe(_0x11e643){const _0x399a44=_0xbf25c6;let _0x221c09=_0x11e643['split'](','),_0x453c10=[];for(let _0x1f02de of _0x221c09){let [_0x4842fd,_0x3dc13a,_0x217ff0,_0xf3b061,_0x53cba1,_0x29cb51]=_0x1f02de[_0x399a44(0x2ad)](':');_0x453c10['push']({'startOffset':Number(_0x4842fd),'endOffset':Number(_0x3dc13a),'collapsed':_0x4842fd===_0x3dc13a,'isActive':_0x217ff0==='1','rangeType':_0xf3b061===t[_0x399a44(0x157)][_0x399a44(0xf5)]?t[_0x399a44(0x157)]['TEXT']:t[_0x399a44(0x157)][_0x399a44(0x377)],'segmentId':typeof _0x53cba1==_0x399a44(0x343)?String(_0x53cba1):'','segmentPage':Number(_0x29cb51==null?-0x1:_0x29cb51)});}return _0x453c10[_0x399a44(0x370)](_0x37e877=>_0x37e877[_0x399a44(0x235)])||(_0x453c10[0x0][_0x399a44(0x235)]=!0x0),_0x453c10;}function _0x2506(_0x4a01ff,_0x49b0c8){_0x4a01ff=_0x4a01ff-0xd2;const _0x35dd1d=_0x35dd();let _0x250663=_0x35dd1d[_0x4a01ff];return _0x250663;}var N=class extends t[_0xbf25c6(0x266)]{constructor(..._0x329d33){const _0x321ac0=_0xbf25c6;super(..._0x329d33),C(this,_0x321ac0(0x1dd),new r[(_0x321ac0(0x2da))](null)),C(this,_0x321ac0(0x2ba),this[_0x321ac0(0x1dd)]['asObservable']());}[_0xbf25c6(0x2c0)](_0x408bb0){const _0x3827e2=_0xbf25c6;let {unitID:_0x741450,memberID:_0x1e70b9,textRanges:_0x1d6d55}=_0x408bb0,_0x27f546=M(_0x1d6d55);if(_0x27f546==='')return;let _0x299052={'unitID':_0x741450,'memberID':_0x1e70b9,'selection':_0x27f546};this[_0x3827e2(0x1dd)][_0x3827e2(0x1e2)](_0x299052);}};let P=class extends t[_0xbf25c6(0x266)]{get['cursorInfo'](){return this['_cursorInfo$']['getValue']();}get[_0xbf25c6(0x19d)](){const _0x3a9c87=_0xbf25c6;return this[_0x3a9c87(0xef)]['getValue']();}constructor(_0x30b442,_0x597a5c,_0x230dde,_0x7688cc,_0x3b228d,_0x9f748b,_0x1a99a1,_0x4129ca,_0x435db3){const _0x4f7361=_0xbf25c6;super(),this[_0x4f7361(0x132)]=_0x30b442,this[_0x4f7361(0x196)]=_0x597a5c,this[_0x4f7361(0x231)]=_0x230dde,this['_colorAssignService']=_0x7688cc,this[_0x4f7361(0x165)]=_0x3b228d,this[_0x4f7361(0x15a)]=_0x9f748b,this[_0x4f7361(0x1ad)]=_0x1a99a1,this['_univerInstanceService']=_0x4129ca,this['_commandService']=_0x435db3,C(this,'_online',!0x1),C(this,_0x4f7361(0x2b2),!0x1),C(this,_0x4f7361(0x2d2),new r[(_0x4f7361(0x2da))](new Map())),C(this,_0x4f7361(0x11c),this[_0x4f7361(0x2d2)][_0x4f7361(0x175)]()),C(this,_0x4f7361(0xef),new r[(_0x4f7361(0x2da))]([])),C(this,_0x4f7361(0x114),this[_0x4f7361(0xef)][_0x4f7361(0x33d)]((0x0,r['debounceTime'])(0x12c))),C(this,_0x4f7361(0x202),(0x0,t[_0x4f7361(0xe8)])(_0x80b93f=>{const _0x5d5564=_0x4f7361;let _0x3769ce={'eventID':h['CollaborationEvent'][_0x5d5564(0x225)],'data':{'unitID':this[_0x5d5564(0x132)],'memberID':this[_0x5d5564(0x196)][_0x5d5564(0x112)](),'selection':M(_0x80b93f)}};this['_session']['send'](_0x3769ce,this[_0x5d5564(0x132)]);},0x64));}[_0xbf25c6(0x130)](){const _0x2f3f1e=_0xbf25c6;super[_0x2f3f1e(0x130)](),this[_0x2f3f1e(0x2d2)]['next'](new Map()),this['_cursorInfo$'][_0x2f3f1e(0x11b)](),this[_0x2f3f1e(0xef)][_0x2f3f1e(0x1e2)]([]),this[_0x2f3f1e(0xef)]['complete']();}[_0xbf25c6(0x173)](){const _0x516be9=_0xbf25c6;this[_0x516be9(0x2b2)]||(this[_0x516be9(0x2b2)]=!0x0,this[_0x516be9(0x196)][_0x516be9(0x110)][_0x516be9(0x33d)]((0x0,r[_0x516be9(0x1a8)])(this[_0x516be9(0x187)]))[_0x516be9(0x230)](_0xe1982a=>{const _0x475ecf=_0x516be9;_0xe1982a===e['SessionStatus'][_0x475ecf(0x2af)]?this[_0x475ecf(0x37a)]():this[_0x475ecf(0x21b)]();}),this[_0x516be9(0x196)][_0x516be9(0x10d)][_0x516be9(0x33d)]((0x0,r[_0x516be9(0x1a8)])(this['dispose$']))[_0x516be9(0x230)](_0x74cc15=>{const _0xba0a8c=_0x516be9;let _0x284676=_0x74cc15[_0xba0a8c(0x246)];_0x284676===h['CollaborationEvent']['UPDATE_CURSOR']&&this['_onCursorUpdate'](_0x74cc15),_0x284676===h[_0xba0a8c(0x1e9)][_0xba0a8c(0xe5)]&&this['_onCursorDelete'](_0x74cc15);}),this['disposeWithMe'](this[_0x516be9(0x2fb)][_0x516be9(0x2ed)](_0x38b717=>{const _0x440aee=_0x516be9;let _0x2b06c4=_0x38b717[_0x440aee(0x159)];_0x2b06c4!=null&&this['_online']&&_0x38b717['id']===g[_0x440aee(0x164)]['id']&&_0x2b06c4[_0x440aee(0x1e3)]===this['unitID']&&_0x2b06c4[_0x440aee(0x251)]===!0x1&&_0x2b06c4['ranges'][_0x440aee(0x217)]>0x0&&this['_updateLocalCursor'](_0x2b06c4[_0x440aee(0x185)]);})),this['_syncEditingCollabCursorService']['collabCursorState$'][_0x516be9(0x33d)]((0x0,r[_0x516be9(0x1a8)])(this[_0x516be9(0x187)]))[_0x516be9(0x230)](_0x5d785c=>{const _0x380c6e=_0x516be9;if((_0x5d785c==null?void 0x0:_0x5d785c[_0x380c6e(0x132)])!==this[_0x380c6e(0x132)])return;let _0x1daf94={'eventID':h[_0x380c6e(0x1e9)][_0x380c6e(0x225)],'data':_0x5d785c};this['_onCursorUpdate'](_0x1daf94);}),this[_0x516be9(0x154)](this[_0x516be9(0x2fb)][_0x516be9(0x2ed)](_0x27fcb5=>{const _0xa682b9=_0x516be9;if(_0x27fcb5[_0xa682b9(0x159)]==null)return;let _0x346053=_0x27fcb5[_0xa682b9(0x159)];if(_0x27fcb5['id']!==g[_0xa682b9(0x2cc)]['id']||_0x346053[_0xa682b9(0x1e3)]!==this[_0xa682b9(0x132)])return;let _0x1da36e={'id':_0xa682b9(0xe7),'params':_0x346053},_0x2c0a0a=this[_0xa682b9(0x22b)];for(let [_0x4883cf,_0x36c367]of _0x2c0a0a){let _0x38458c={'id':_0xa682b9(0xe7),'params':{'unitId':this[_0xa682b9(0x132)],'actions':null,'textRanges':_0x36c367[_0xa682b9(0x185)]}},_0x4dbda9=this['_transformService'][_0xa682b9(0x1fe)](_0x1da36e,_0x38458c,!0x1);if((0x0,h[_0xa682b9(0x22c)])(_0x4dbda9))throw _0x4dbda9['error'];_0x2c0a0a['set'](_0x4883cf,{..._0x36c367,'ranges':_0x4dbda9[_0xa682b9(0x272)][_0xa682b9(0x159)]['textRanges']});}queueMicrotask(()=>{const _0x1d8f49=_0xa682b9;this[_0x1d8f49(0x2d2)][_0x1d8f49(0x1e2)](_0x2c0a0a);});})));}['_onCursorUpdate'](_0xcabe72){const _0x4881d4=_0xbf25c6;var _0x14c6a0,_0x3c5159;let {memberID:_0x278b1c,selection:_0x37238b}=_0xcabe72[_0x4881d4(0x350)],_0x8b7f79=oe(_0x37238b),_0x1f4f20=(_0x14c6a0=(_0x3c5159=this['_memberService']['getMember'](this[_0x4881d4(0x132)],_0x278b1c))==null?void 0x0:_0x3c5159[_0x4881d4(0x2f1)])==null?_0x4881d4(0x2ac):_0x14c6a0,_0x72c134={'color':this['_colorAssignService']['assignAColorForMemberID'](_0x278b1c),'name':_0x1f4f20,'ranges':_0x8b7f79},_0x2020bd=this[_0x4881d4(0x22b)];_0x2020bd[_0x4881d4(0x1fb)](_0x278b1c,_0x72c134),this['_cursorInfo$'][_0x4881d4(0x1e2)](_0x2020bd);}['_onCursorDelete'](_0x2018e6){const _0x3720ca=_0xbf25c6;let {memberID:_0x1c8365}=_0x2018e6[_0x3720ca(0x350)],_0x4c283b=this[_0x3720ca(0x22b)];_0x4c283b[_0x3720ca(0x151)](_0x1c8365),this[_0x3720ca(0x2d2)][_0x3720ca(0x1e2)](_0x4c283b);}[_0xbf25c6(0x37a)](){const _0x132e5b=_0xbf25c6;var _0x40d190;if(this['_online']=!0x0,((_0x40d190=this[_0x132e5b(0x355)][_0x132e5b(0x12b)]())==null?void 0x0:_0x40d190[_0x132e5b(0x191)]())!==this[_0x132e5b(0x132)])return;let _0x6c2b2d=this[_0x132e5b(0x231)][_0x132e5b(0x277)](g[_0x132e5b(0x34b)])[_0x132e5b(0x34f)]();Array['isArray'](_0x6c2b2d)&&_0x6c2b2d[_0x132e5b(0x217)]>0x0&&this[_0x132e5b(0x202)](_0x6c2b2d);}[_0xbf25c6(0x21b)](){const _0x426eec=_0xbf25c6;this[_0x426eec(0x29e)]=!0x1;}};P=T([w(0x2,(0x0,t['Inject'])(t[_0xbf25c6(0x1f5)])),w(0x3,(0x0,t['Inject'])(j)),w(0x4,(0x0,t['Inject'])(e[_0xbf25c6(0xe1)])),w(0x5,(0x0,t[_0xbf25c6(0x142)])(N)),w(0x6,h[_0xbf25c6(0xd2)]),w(0x7,t['IUniverInstanceService']),w(0x8,t['ICommandService'])],P);const se=()=>{let _0x35716e=[],_0x568fb8=!0x1;return _0x3019c7=>{const _0x5666f6=_0x2506;_0x35716e[_0x5666f6(0x1b3)](_0x3019c7),_0x568fb8||(_0x568fb8=!0x0,setTimeout(()=>{const _0x2455f7=_0x5666f6;_0x35716e[_0x2455f7(0x1a7)](_0x1dbdb7=>_0x1dbdb7()),_0x35716e=[],_0x568fb8=!0x1;}));};};let F=class extends t['RxDisposable']{get[_0xbf25c6(0x22b)](){const _0x1d5992=_0xbf25c6;return this[_0x1d5992(0x2d2)][_0x1d5992(0x197)]();}get[_0xbf25c6(0x19d)](){const _0x206aa7=_0xbf25c6;return this[_0x206aa7(0xef)][_0x206aa7(0x197)]();}constructor(_0x35d3a3,_0x58e58,_0x241364,_0x493892,_0x4ea9c5,_0xe21636,_0x49e07b,_0x257bd3){const _0x511b7f=_0xbf25c6;super(),this[_0x511b7f(0x132)]=_0x35d3a3,this[_0x511b7f(0x196)]=_0x58e58,this[_0x511b7f(0x231)]=_0x241364,this[_0x511b7f(0x23d)]=_0x493892,this[_0x511b7f(0x165)]=_0x4ea9c5,this['_univerInstanceService']=_0xe21636,this[_0x511b7f(0x2fb)]=_0x49e07b,this[_0x511b7f(0x33c)]=_0x257bd3,C(this,_0x511b7f(0x29e),!0x1),C(this,_0x511b7f(0x2b2),!0x1),C(this,'_cursorInfo$',new r[(_0x511b7f(0x2da))](new Map())),C(this,_0x511b7f(0x11c),this['_cursorInfo$'][_0x511b7f(0x175)]()),C(this,_0x511b7f(0xef),new r[(_0x511b7f(0x2da))]([])),C(this,_0x511b7f(0x114),this[_0x511b7f(0xef)][_0x511b7f(0x33d)]((0x0,r[_0x511b7f(0x2fe)])(0x12c))),C(this,_0x511b7f(0x202),(0x0,t[_0x511b7f(0xe8)])((_0x4c5b3b,_0x404bc8)=>{const _0xea48bc=_0x511b7f;let _0x4c2734={'eventID':h[_0xea48bc(0x1e9)]['UPDATE_CURSOR'],'data':{'unitID':this['unitID'],'memberID':this[_0xea48bc(0x196)][_0xea48bc(0x112)](),'selection':(0x0,_['serializeRangeWithSheet'])(_0x4c5b3b,_0x404bc8['range'])}};this[_0xea48bc(0x196)][_0xea48bc(0x183)](_0x4c2734,this[_0xea48bc(0x132)]);},0x64));}['dispose'](){const _0x4d6b7c=_0xbf25c6;super['dispose'](),this[_0x4d6b7c(0x2d2)][_0x4d6b7c(0x1e2)](new Map()),this[_0x4d6b7c(0x2d2)][_0x4d6b7c(0x11b)](),this[_0x4d6b7c(0xef)][_0x4d6b7c(0x1e2)]([]),this['_roomMembers$'][_0x4d6b7c(0x11b)]();}[_0xbf25c6(0x173)](){const _0x336106=_0xbf25c6;this[_0x336106(0x2b2)]||(this['_init']=!0x0,this[_0x336106(0x196)][_0x336106(0x110)][_0x336106(0x33d)]((0x0,r[_0x336106(0x1a8)])(this[_0x336106(0x187)]))[_0x336106(0x230)](_0x34797c=>{const _0x5064ea=_0x336106;_0x34797c===e['SessionStatus'][_0x5064ea(0x2af)]?this[_0x5064ea(0x37a)]():this[_0x5064ea(0x21b)]();}),this[_0x336106(0x196)][_0x336106(0x10d)][_0x336106(0x33d)]((0x0,r[_0x336106(0x1a8)])(this[_0x336106(0x187)]))[_0x336106(0x230)](_0x282f81=>{const _0x945ddc=_0x336106;let _0x20a5a0=_0x282f81[_0x945ddc(0x246)];_0x20a5a0===h[_0x945ddc(0x1e9)][_0x945ddc(0x225)]&&this[_0x945ddc(0x2c1)](_0x282f81),_0x20a5a0===h[_0x945ddc(0x1e9)][_0x945ddc(0xe5)]&&this[_0x945ddc(0x11a)](_0x282f81);}),this[_0x336106(0x2de)](),this[_0x336106(0x154)](this[_0x336106(0x2fb)][_0x336106(0x2ed)](_0x34fe2e=>{const _0x570a15=_0x336106;if(this[_0x570a15(0x29e)]&&_0x34fe2e['id']===u[_0x570a15(0x309)]['id']&&_0x34fe2e['params'][_0x570a15(0x1e3)]===this[_0x570a15(0x132)]){let _0x19010a=_0x34fe2e[_0x570a15(0x159)];this[_0x570a15(0x202)](_0x19010a[_0x570a15(0x340)],_0x19010a[_0x570a15(0x1a3)][0x0]);}})));}[_0xbf25c6(0x2c1)](_0x1d6bfd){const _0x582721=_0xbf25c6;var _0x278262,_0xd24678;let {memberID:_0x9f15e8,selection:_0x3b8f20}=_0x1d6bfd[_0x582721(0x350)],{sheetName:_0x44b7a1,range:_0x3aacb0}=(0x0,_[_0x582721(0x1df)])(_0x3b8f20),_0x29bbaf={'name':(_0x278262=(_0xd24678=this[_0x582721(0x165)]['getMember'](this['unitID'],_0x9f15e8))==null?void 0x0:_0xd24678[_0x582721(0x2f1)])==null?'Unknown\x20user':_0x278262,'range':this[_0x582721(0x182)](_0x44b7a1,_0x3aacb0),'sheetID':_0x44b7a1,'color':this['_colorAssignService'][_0x582721(0x33f)](_0x9f15e8),'selection':_0x3b8f20},_0x54a129=this['cursorInfo'];_0x54a129[_0x582721(0x1fb)](_0x9f15e8,_0x29bbaf),this['_cursorInfo$'][_0x582721(0x1e2)](_0x54a129);}[_0xbf25c6(0x11a)](_0x32f08b){const _0x53782e=_0xbf25c6;let {memberID:_0x45bee8}=_0x32f08b['data'],_0x4a02f9=this[_0x53782e(0x22b)];_0x4a02f9[_0x53782e(0x151)](_0x45bee8),this[_0x53782e(0x2d2)]['next'](_0x4a02f9);}['_getMergeRange'](_0x2d1771,_0x40ccf0){const _0x2cb1e3=_0xbf25c6;var _0x1b2174;let _0x21a03e=(_0x1b2174=this['_univerInstanceService'][_0x2cb1e3(0x1e8)](this[_0x2cb1e3(0x132)]))==null||(_0x1b2174=_0x1b2174[_0x2cb1e3(0x284)](_0x2d1771))==null?void 0x0:_0x1b2174['getMergeData']();return(_0x21a03e==null?void 0x0:_0x21a03e[_0x2cb1e3(0x1de)](_0x1f9f99=>t[_0x2cb1e3(0x241)][_0x2cb1e3(0x1f2)](_0x1f9f99,_0x40ccf0)))||_0x40ccf0;}[_0xbf25c6(0x2de)](){const _0x56fb7c=_0xbf25c6;let _0xa6fd83=new t['DisposableCollection'](),_0x37ca38=se(),_0x136893=()=>{const _0x5c78d9=_0x2506;_0xa6fd83[_0x5c78d9(0x130)]();let _0x340f4d=(_0x417812,_0x140976,_0x247c93,_0x55e29c)=>{const _0x1bf567=_0x5c78d9;let _0x6e6eeb=[];switch(_0x417812['id']){case u[_0x1bf567(0x16d)][_0x1bf567(0x294)]:_0x6e6eeb=(0x0,u[_0x1bf567(0x363)])(_0x417812,_0x55e29c);break;case u[_0x1bf567(0x16d)]['DeleteRangeMoveUpCommandId']:_0x6e6eeb=(0x0,u[_0x1bf567(0xf6)])(_0x417812,_0x55e29c);break;case u[_0x1bf567(0x16d)]['InsertColCommandId']:_0x6e6eeb=(0x0,u['handleInsertCol'])(_0x417812,_0x55e29c);break;case u[_0x1bf567(0x16d)][_0x1bf567(0xee)]:_0x6e6eeb=(0x0,u[_0x1bf567(0x265)])(_0x417812,_0x55e29c);break;case u[_0x1bf567(0x16d)]['InsertRangeMoveRightCommandId']:_0x6e6eeb=(0x0,u['handleInsertRangeMoveRight'])(_0x417812,_0x55e29c);break;case u[_0x1bf567(0x16d)][_0x1bf567(0x292)]:_0x6e6eeb=(0x0,u[_0x1bf567(0x270)])(_0x417812,_0x55e29c);break;case u[_0x1bf567(0x16d)]['MoveRangeCommandId']:_0x6e6eeb=(0x0,u['handleMoveRange'])(_0x417812,_0x55e29c);break;case u[_0x1bf567(0x16d)]['RemoveColCommandId']:_0x6e6eeb=(0x0,u['handleIRemoveCol'])(_0x417812,_0x55e29c);break;case u['EffectRefRangId'][_0x1bf567(0x283)]:_0x6e6eeb=(0x0,u[_0x1bf567(0xf9)])(_0x417812,_0x55e29c);break;}let _0x401ff6=(0x0,u[_0x1bf567(0x122)])(_0x6e6eeb,_0x55e29c),_0x1c39d4=this[_0x1bf567(0x22b)][_0x1bf567(0x277)](_0x140976);if(_0x1c39d4&&_0x401ff6){let _0x5ce53f={..._0x1c39d4,'range':_0x401ff6};this[_0x1bf567(0x22b)][_0x1bf567(0x1fb)](_0x140976,_0x5ce53f),_0x37ca38(()=>{const _0x56af83=_0x1bf567;let _0x326566=this[_0x56af83(0x33c)][_0x56af83(0x312)](_0x401ff6,_0x1deedd=>(_0x326566[_0x56af83(0x130)](),_0x340f4d(_0x1deedd,_0x140976,_0x247c93,_0x401ff6)));_0xa6fd83[_0x56af83(0x1ab)](_0x326566);});}return{'redos':[],'undos':[]};};this[_0x5c78d9(0x22b)][_0x5c78d9(0x1a7)]((_0x20913a,_0x44a26b)=>{const _0x233c36=_0x5c78d9;let {range:_0x2a3f26,sheetID:_0x36f973}=_0x20913a,_0x49360a=this[_0x233c36(0x33c)][_0x233c36(0x312)](_0x2a3f26,_0xea1841=>(_0x49360a['dispose'](),_0x340f4d(_0xea1841,_0x44a26b,_0x36f973,_0x2a3f26)));_0xa6fd83[_0x233c36(0x1ab)](_0x49360a);});};this[_0x56fb7c(0x154)]((0x0,t[_0x56fb7c(0x2f0)])(this[_0x56fb7c(0x2d2)][_0x56fb7c(0x230)](()=>{_0x136893();})));}[_0xbf25c6(0x37a)](){const _0x9e65f7=_0xbf25c6;var _0x1d2dcb,_0x42355e;if(this[_0x9e65f7(0x29e)]=!0x0,((_0x1d2dcb=this[_0x9e65f7(0x355)][_0x9e65f7(0x12b)]())==null?void 0x0:_0x1d2dcb[_0x9e65f7(0x191)]())!==this[_0x9e65f7(0x132)])return;let _0x299993=(_0x42355e=this[_0x9e65f7(0x231)][_0x9e65f7(0x277)](u[_0x9e65f7(0x298)])['getCurrentSelections']())==null?void 0x0:_0x42355e[0x0],_0x1f8cf8=this['_univerInstanceService'][_0x9e65f7(0x247)](t['UniverInstanceType'][_0x9e65f7(0x18d)])[_0x9e65f7(0x2c6)]();_0x299993&&_0x1f8cf8&&this['_updateLocalCursor'](_0x1f8cf8['getSheetId'](),_0x299993);}[_0xbf25c6(0x21b)](){this['_online']=!0x1;}};F=T([w(0x2,(0x0,t['Inject'])(t[_0xbf25c6(0x1f5)])),w(0x3,(0x0,t[_0xbf25c6(0x142)])(j)),w(0x4,(0x0,t[_0xbf25c6(0x142)])(e[_0xbf25c6(0xe1)])),w(0x5,t['IUniverInstanceService']),w(0x6,t['ICommandService']),w(0x7,(0x0,t[_0xbf25c6(0x142)])(u[_0xbf25c6(0x139)]))],F);let I=class extends t[_0xbf25c6(0x266)]{constructor(_0x5154f9,_0x30e25d,_0x59f95c){const _0x3b4b98=_0xbf25c6;super(),this['_univerInstanceService']=_0x5154f9,this[_0x3b4b98(0x231)]=_0x30e25d,this['_collabSessionService']=_0x59f95c,C(this,_0x3b4b98(0x2b5),new Map()),C(this,_0x3b4b98(0xf4),new r[(_0x3b4b98(0x339))]()),this[_0x3b4b98(0x2b2)]();}[_0xbf25c6(0x130)](){const _0x37e2db=_0xbf25c6;super[_0x37e2db(0x130)](),this[_0x37e2db(0xf4)]['complete'](),this[_0x37e2db(0x2b5)][_0x37e2db(0x1a7)](_0x574281=>_0x574281[_0x37e2db(0x130)]());}[_0xbf25c6(0x18c)](_0x12d16f){const _0x47edfb=_0xbf25c6;return this['_entities'][_0x47edfb(0x17f)](_0x12d16f)?this['_entities'][_0x47edfb(0x277)](_0x12d16f)[_0x47edfb(0x11c)]:this[_0x47edfb(0xf4)][_0x47edfb(0x33d)]((0x0,r[_0x47edfb(0xd7)])(_0x49b93c=>_0x49b93c[_0x47edfb(0x132)]===_0x12d16f),(0x0,r[_0x47edfb(0x258)])(_0x27ded0=>_0x27ded0['cursorInfo$']));}[_0xbf25c6(0x2b2)](){const _0x22f546=_0xbf25c6;this[_0x22f546(0x355)]['getTypeOfUnitAdded$'](t[_0x22f546(0xd6)][_0x22f546(0x18d)])[_0x22f546(0x33d)]((0x0,r[_0x22f546(0x1a8)])(this['dispose$']))[_0x22f546(0x230)](async _0x497741=>{const _0x5a9db0=_0x22f546;let _0x497c47=_0x497741[_0x5a9db0(0x2bc)][_0x5a9db0(0x191)](),_0x572bde=await this[_0x5a9db0(0x31b)](_0x497c47);this[_0x5a9db0(0xf4)][_0x5a9db0(0x1e2)](_0x572bde),this[_0x5a9db0(0x2b5)]['set'](_0x497c47,_0x572bde);}),this['_univerInstanceService'][_0x22f546(0x171)](t[_0x22f546(0xd6)]['UNIVER_DOC'])['pipe']((0x0,r[_0x22f546(0x1a8)])(this[_0x22f546(0x187)]))[_0x22f546(0x33d)]((0x0,r[_0x22f546(0xd7)])(_0x7cc93a=>!_0x7cc93a['unit'][_0x22f546(0x191)]()[_0x22f546(0x20f)]('__')))['subscribe'](async _0x1f1dc5=>{const _0x56f8eb=_0x22f546;let {unit:_0x4b18f3}=_0x1f1dc5,_0x456f99=_0x4b18f3[_0x56f8eb(0x191)](),_0x4c746f=await this[_0x56f8eb(0x124)](_0x456f99);this[_0x56f8eb(0xf4)][_0x56f8eb(0x1e2)](_0x4c746f),this[_0x56f8eb(0x2b5)]['set'](_0x456f99,_0x4c746f);}),(0x0,r[_0x22f546(0x32c)])(this[_0x22f546(0x355)][_0x22f546(0x223)](t[_0x22f546(0xd6)][_0x22f546(0x375)]),this[_0x22f546(0x355)]['getTypeOfUnitDisposed$'](t[_0x22f546(0xd6)][_0x22f546(0x18d)]))['pipe']((0x0,r[_0x22f546(0x1a8)])(this[_0x22f546(0x187)]))[_0x22f546(0x230)](_0x55923b=>{const _0x5df6a6=_0x22f546;let _0x415878=_0x55923b['getUnitId'](),_0x4f0988=this[_0x5df6a6(0x2b5)]['get'](_0x415878);_0x4f0988&&(_0x4f0988[_0x5df6a6(0x130)](),this[_0x5df6a6(0x2b5)]['delete'](_0x415878));});}async[_0xbf25c6(0x31b)](_0x262860){const _0x3cb504=_0xbf25c6;let _0xa3bb2=await this[_0x3cb504(0x14d)]['requireSession'](_0x262860),_0x3c1260=this['_injector'][_0x3cb504(0x275)](F,_0x262860,_0xa3bb2);return _0x3c1260[_0x3cb504(0x173)](),_0x3c1260;}async[_0xbf25c6(0x124)](_0x2ac9da){const _0x16d002=_0xbf25c6;let _0x3fa843=await this[_0x16d002(0x14d)][_0x16d002(0x342)](_0x2ac9da),_0x34efc0=this['_injector'][_0x16d002(0x275)](P,_0x2ac9da,_0x3fa843);return _0x34efc0[_0x16d002(0x173)](),_0x34efc0;}};I=T([w(0x0,t[_0xbf25c6(0x1d8)]),w(0x1,(0x0,t[_0xbf25c6(0x142)])(t[_0xbf25c6(0x1f5)])),w(0x2,(0x0,t['Inject'])(e['CollaborationSessionService']))],I);function ce(_0xf23a0f,_0xfa0c48){const _0x301cad=_0xbf25c6;var _0x193f2a,_0x42b6a1,_0x5c6b7f;let {radius:_0x808a33,width:_0x55d83d,height:_0x3e9557}=_0xfa0c48;_0x808a33=(_0x193f2a=_0x808a33)==null?0x0:_0x193f2a,_0x55d83d=(_0x42b6a1=_0x55d83d)==null?0x1e:_0x42b6a1,_0x3e9557=(_0x5c6b7f=_0x3e9557)==null?0x1e:_0x5c6b7f;let _0x399d5f=0x0,_0x5b9683=0x0,_0x167554=0x0;_0x399d5f=_0x5b9683=_0x167554=Math['min'](_0x808a33,_0x55d83d/0x2,_0x3e9557/0x2),_0xf23a0f[_0x301cad(0x179)](),_0xf23a0f['moveTo'](_0x399d5f,0x0),_0xf23a0f[_0x301cad(0x1cb)](_0x55d83d-_0x5b9683,0x0),_0xf23a0f[_0x301cad(0x282)](_0x55d83d-_0x5b9683,_0x5b9683,_0x5b9683,Math['PI']*0x3/0x2,0x0,!0x1),_0xf23a0f[_0x301cad(0x1cb)](_0x55d83d,_0x3e9557-_0x167554),_0xf23a0f[_0x301cad(0x282)](_0x55d83d-_0x167554,_0x3e9557-_0x167554,_0x167554,0x0,Math['PI']/0x2,!0x1),_0xf23a0f['lineTo'](0x0,_0x3e9557),_0xf23a0f[_0x301cad(0x1cb)](0x0,_0x399d5f),_0xf23a0f[_0x301cad(0x282)](_0x399d5f,_0x399d5f,_0x399d5f,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0xf23a0f[_0x301cad(0x11e)](),_0xfa0c48[_0x301cad(0x11f)]&&(_0xf23a0f[_0x301cad(0x366)](),_0xf23a0f['fillStyle']=_0xfa0c48[_0x301cad(0x11f)],_0xfa0c48[_0x301cad(0x28d)]===_0x301cad(0x1f3)?_0xf23a0f[_0x301cad(0x11f)](_0x301cad(0x1f3)):_0xf23a0f['fill'](),_0xf23a0f[_0x301cad(0x193)]());}var le=class e extends d[_0xbf25c6(0x2d8)]{constructor(_0xcea263,_0x5ceb56){const _0x3bde76=_0xbf25c6;super(_0xcea263,_0x5ceb56),C(this,'color',void 0x0),C(this,_0x3bde76(0x2f8),void 0x0),this['color']=_0x5ceb56==null?void 0x0:_0x5ceb56[_0x3bde76(0x24f)],this[_0x3bde76(0x2f8)]=_0x5ceb56==null?void 0x0:_0x5ceb56['text'];}static[_0xbf25c6(0x2dc)](_0x2a1d79,_0x2dad17){const _0x458659=_0xbf25c6;let {text:_0x14f97d,color:_0x375638}=_0x2dad17;_0x2a1d79[_0x458659(0x366)](),_0x2a1d79['font']='bold\x2013px\x20Source\x20Han\x20Sans\x20CN';let _0x393981=_0x2a1d79['measureText'](_0x14f97d)[_0x458659(0x1b6)];if(ce(_0x2a1d79,{'height':0x14,'radius':0x4,'width':Math[_0x458659(0x1d9)](_0x393981+0x8,0xc8),'fill':_0x375638,'evented':!0x1}),_0x2a1d79['fillStyle']=_0x458659(0x221),_0x393981>0xc0){let _0x4822eb='',_0x3e8f4b=0x0;for(let _0x408870 of _0x14f97d){let _0x27525f=_0x2a1d79[_0x458659(0x354)](_0x408870)[_0x458659(0x1b6)];if(_0x3e8f4b+_0x27525f<=0xc0-_0x2a1d79['measureText'](_0x458659(0x115))['width'])_0x4822eb+=_0x408870,_0x3e8f4b+=_0x27525f;else{_0x4822eb+=_0x458659(0x115);break;}}_0x2a1d79[_0x458659(0x14e)](_0x4822eb,0x4,0xf);}else _0x2a1d79[_0x458659(0x14e)](_0x14f97d,0x4,0xf);_0x2a1d79[_0x458659(0x193)]();}[_0xbf25c6(0x30c)](_0x4f98d2){const _0x1f8f73=_0xbf25c6;e[_0x1f8f73(0x2dc)](_0x4f98d2,this);}};const L=_0xbf25c6(0x332);var ue=class{constructor(_0x2b2617,_0x4b6f68,_0x544221,_0x2e1174){const _0x454ae8=_0xbf25c6;this[_0x454ae8(0x373)]=_0x2b2617,this['_scene']=_0x4b6f68,this[_0x454ae8(0x346)]=_0x544221,this[_0x454ae8(0x16a)]=_0x2e1174,C(this,'_shapes',[]),C(this,'_anchor',null),C(this,_0x454ae8(0xd9),null),C(this,_0x454ae8(0xf0),null),C(this,_0x454ae8(0x267),null),C(this,_0x454ae8(0x2c4),null),this['_render']();}set[_0xbf25c6(0x303)](_0x4fd62c){const _0x328886=_0xbf25c6;_0x4fd62c?(this[_0x328886(0xf0)]&&this['_anchorDot'][_0x328886(0x290)](),this['_textBubble']&&this[_0x328886(0xd9)][_0x328886(0x31c)]()):(this['_anchorDot']&&this[_0x328886(0xf0)][_0x328886(0x31c)](),this[_0x328886(0xd9)]&&this[_0x328886(0xd9)][_0x328886(0x290)]());}[_0xbf25c6(0x130)](){const _0x1782ac=_0xbf25c6;for(let _0x5e12e8 of this[_0x1782ac(0x146)])_0x5e12e8['dispose']();this['_textBubble']&&this[_0x1782ac(0xd9)][_0x1782ac(0x130)](),this['_anchorDot']&&this[_0x1782ac(0xf0)][_0x1782ac(0x130)](),this[_0x1782ac(0x200)]&&this[_0x1782ac(0x200)][_0x1782ac(0x130)](),this[_0x1782ac(0x2c4)]&&this[_0x1782ac(0x2c4)]();}[_0xbf25c6(0x24e)](){const _0x182550=_0xbf25c6;let {_docSkeleton:_0x4db983,_document:_0x4dd758}=this,{color:_0x4feb84,name:_0x3e1d60,ranges:_0x5f0215}=this['_cursor'],_0x5a5cee=_0x4dd758[_0x182550(0x1f0)](),{docsLeft:_0x10a9e8,docsTop:_0x3141b5}=_0x5a5cee,_0x58bbe7=new p[(_0x182550(0x1cc))](_0x5a5cee,_0x4db983);for(let {startOffset:_0x327d1b,endOffset:_0x4bb998,rangeType:_0x46f076,segmentId:_0x529ae8,segmentPage:_0x4d757d,collapsed:_0x5d14a5,isActive:_0x4e46c3}of _0x5f0215){let _0x48e347=_0x4db983[_0x182550(0x1b8)](_0x327d1b,!0x0,_0x529ae8,_0x4d757d),_0x58e9ed=_0x4db983[_0x182550(0x1b8)](_0x4bb998,!0x0,_0x529ae8,_0x4d757d);if(_0x58e9ed==null&&(_0x58e9ed=_0x4db983[_0x182550(0x1b8)](_0x4bb998-0x1,!0x1,_0x529ae8,_0x4d757d)),_0x4e46c3){let {contentBoxPointGroup:_0x58921d}=_0x58bbe7[_0x182550(0x17d)](_0x58e9ed,_0x58e9ed);if(_0x58921d[_0x182550(0x217)]===0x0)continue;this[_0x182550(0x156)](_0x4feb84,_0x58921d,_0x10a9e8,_0x3141b5,_0x3e1d60),this[_0x182550(0x2c4)]=this['_handleHover']();}if(_0x48e347&&_0x58e9ed){if(_0x46f076===t['DOC_RANGE_TYPE']['RECT']){var _0x4ec0cc;let {pointGroup:_0x4e3b54}=(_0x4ec0cc=new p[(_0x182550(0x273))](_0x5a5cee,_0x4db983)[_0x182550(0x17d)](_0x48e347,_0x58e9ed))==null?{}:_0x4ec0cc;if(_0x4e3b54==null||_0x4e3b54[_0x182550(0x217)]===0x0)continue;this['_drawRectRange'](_0x4feb84,_0x4e3b54,_0x10a9e8,_0x3141b5);}else{if(!_0x5d14a5){let {borderBoxPointGroup:_0x579feb}=_0x58bbe7[_0x182550(0x17d)](_0x48e347,_0x58e9ed);if(_0x579feb[_0x182550(0x217)]===0x0)continue;this[_0x182550(0x351)](_0x4feb84,_0x579feb,_0x10a9e8,_0x3141b5);}}}}}[_0xbf25c6(0x156)](_0x3e3139,_0x283714,_0x31271b,_0x212a65,_0x43d30f){const _0x3898b5=_0xbf25c6;let {left:_0x107db6,top:_0x2f9528,height:_0x2571d3}=this['_getAnchorBounding'](_0x283714),_0x184dd9=1.5/this[_0x3898b5(0x274)](),_0x2e010d=new d['Rect'](L+(0x0,t[_0x3898b5(0x1ef)])(0x6),{'left':_0x107db6+_0x31271b-_0x184dd9,'top':_0x2f9528+_0x212a65,'height':_0x2571d3,'width':1.5,'fill':_0x3e3139||(0x0,d[_0x3898b5(0x250)])(t[_0x3898b5(0x224)]['black'],0x0),'strokeWidth':_0x184dd9,'stroke':'rgba(255,\x20255,\x20255,\x200.01)','evented':!0x0});this['_anchor']=_0x2e010d,this['_scene'][_0x3898b5(0x288)](_0x2e010d,p[_0x3898b5(0x336)]);let _0x2d0709=new d[(_0x3898b5(0x1c4))](L+(0x0,t[_0x3898b5(0x1ef)])(0x6),{'left':_0x107db6+_0x31271b-_0x184dd9,'top':_0x2f9528+_0x212a65-0x4/0x2,'height':0x4,'width':0x4,'fill':_0x3e3139||(0x0,d[_0x3898b5(0x250)])(t['COLORS']['black'],0x0),'strokeWidth':0x0,'stroke':_0x3e3139||(0x0,d[_0x3898b5(0x250)])(t[_0x3898b5(0x224)][_0x3898b5(0x1c7)],0x0),'evented':!0x1});this[_0x3898b5(0xf0)]=_0x2d0709,this[_0x3898b5(0x349)][_0x3898b5(0x288)](_0x2d0709,p[_0x3898b5(0x336)]);let _0x498042=new le(L+(0x0,t['generateRandomId'])(0x6),{'left':_0x107db6+_0x31271b-_0x184dd9,'top':_0x2f9528+_0x212a65-0x14,'text':_0x43d30f,'color':_0x3e3139});this[_0x3898b5(0xd9)]=_0x498042,this[_0x3898b5(0x349)]['addObject'](_0x498042,p[_0x3898b5(0x336)]),this['_hover']=!0x1;}[_0xbf25c6(0x149)](){const _0x1119e5=_0xbf25c6;let _0xfdaf40=this[_0x1119e5(0x200)][_0x1119e5(0x356)][_0x1119e5(0xf1)](()=>{this['_hover']=!0x0;}),_0x2e561e=this[_0x1119e5(0x200)][_0x1119e5(0x135)][_0x1119e5(0xf1)](()=>{const _0x2769c0=_0x1119e5;this[_0x2769c0(0x267)]&&clearTimeout(this[_0x2769c0(0x267)]),this[_0x2769c0(0x267)]=setTimeout(()=>{const _0x44d188=_0x2769c0;this[_0x44d188(0x303)]=!0x1;},0x7d0);});return()=>{const _0x39fa44=_0x1119e5;_0xfdaf40[_0x39fa44(0x1f6)](),_0x2e561e[_0x39fa44(0x1f6)]();};}[_0xbf25c6(0x351)](_0x1f560c,_0x1723e4,_0x5e4dd3,_0x23e581){const _0xb38840=_0xbf25c6;let _0x23cf15=0.2,_0x4d1734=new t[(_0xb38840(0x141))](_0x1f560c)[_0xb38840(0x17e)](_0x23cf15)['toRgbString'](),_0x3f67bb=new d[(_0xb38840(0x369))](_0xb38840(0x13d)+(0x0,t['generateRandomId'])(0x6),{'pointsGroup':_0x1723e4,'fill':_0x4d1734||(0x0,d['getColor'])(t[_0xb38840(0x224)][_0xb38840(0x1c7)],_0x23cf15),'left':_0x5e4dd3,'top':_0x23e581,'evented':!0x1,'debounceParentDirty':!0x1});this[_0xb38840(0x146)][_0xb38840(0x1b3)](_0x3f67bb),this['_scene'][_0xb38840(0x288)](_0x3f67bb,p[_0xb38840(0x336)]);}[_0xbf25c6(0x2ab)](_0x5695bd,_0x41eb3b,_0x6de7ee,_0xb76989){const _0x199823=_0xbf25c6;let _0x115f7c=0.2,_0x2cff6b=new t[(_0x199823(0x141))](_0x5695bd)[_0x199823(0x17e)](_0x115f7c)[_0x199823(0x1cd)](),_0x43106c=new d['RegularPolygon'](_0x199823(0x12e)+(0x0,t[_0x199823(0x1ef)])(0x6),{'pointsGroup':_0x41eb3b,'fill':_0x2cff6b||(0x0,d['getColor'])(t['COLORS'][_0x199823(0x1c7)],_0x115f7c),'left':_0x6de7ee,'top':_0xb76989,'evented':!0x1,'debounceParentDirty':!0x1});this['_shapes'][_0x199823(0x1b3)](_0x43106c),this[_0x199823(0x349)][_0x199823(0x288)](_0x43106c,p[_0x199823(0x336)]);}['_getAnchorBounding'](_0x432683){let _0x3571f9=_0x432683[0x0],_0x28aebe=_0x3571f9[0x0],_0x4a4777=_0x3571f9[0x2],{x:_0x13caaa,y:_0xa38f64}=_0x28aebe,{x:_0x4c4326,y:_0x4305c5}=_0x4a4777;return{'left':_0x13caaa,'top':_0xa38f64,'width':_0x4c4326-_0x13caaa,'height':_0x4305c5-_0xa38f64};}[_0xbf25c6(0x274)](){const _0x553328=_0xbf25c6;let {scaleX:_0x2948b9,scaleY:_0x23998}=this[_0x553328(0x349)][_0x553328(0x23c)]();return Math[_0x553328(0x1f7)](_0x2948b9,_0x23998);}};let R=class extends t[_0xbf25c6(0x266)]{constructor(_0x32e144,_0xd537ba,_0x3968b1,_0x10fd1b,_0xb0dde8){const _0x416cae=_0xbf25c6;super(),this[_0x416cae(0x15e)]=_0x32e144,this[_0x416cae(0x20a)]=_0xd537ba,this[_0x416cae(0x376)]=_0x3968b1,this['_commandService']=_0x10fd1b,this[_0x416cae(0x236)]=_0xb0dde8,C(this,_0x416cae(0x27a),[]),C(this,_0x416cae(0x214),[]),this['_init']();}['_init'](){const _0xa684ea=_0xbf25c6;let _0x3abdb5=this[_0xa684ea(0x15e)][_0xa684ea(0x1e3)],_0x2d219e=this[_0xa684ea(0x20a)];this[_0xa684ea(0x154)]((0x0,r[_0xa684ea(0x2c8)])([this[_0xa684ea(0x376)][_0xa684ea(0x18c)](_0x3abdb5),this[_0xa684ea(0x236)][_0xa684ea(0xe4)]])[_0xa684ea(0x33d)]((0x0,i[_0xa684ea(0x2b3)])(([_0x4ef9d8,_0x1b12bd])=>({'skeleton':_0x2d219e[_0xa684ea(0x1eb)](),'cursors':[..._0x4ef9d8[_0xa684ea(0x1a0)]()][_0xa684ea(0x2e7)](_0x38fc79=>({..._0x38fc79,'color':this['_themeService'][_0xa684ea(0x111)](_0x38fc79[_0xa684ea(0x24f)])}))})))[_0xa684ea(0x230)](_0x3236d1=>{const _0x1901c4=_0xa684ea;if(this['_removeCollabCursors'](),_0x3236d1){let {skeleton:_0x408eb0,cursors:_0x351a71}=_0x3236d1;this[_0x1901c4(0x104)](_0x408eb0,_0x351a71);}})),this[_0xa684ea(0x1c5)](),this[_0xa684ea(0x345)]();}[_0xbf25c6(0x104)](_0x2b1d96,_0x11b352){const _0x3ef480=_0xbf25c6;let {scene:_0x59f0ab,mainComponent:_0x5eb8b3}=this[_0x3ef480(0x15e)],_0x135bbd=_0x11b352[_0x3ef480(0x2b3)](_0x430465=>new ue(_0x430465,_0x59f0ab,_0x2b1d96,_0x5eb8b3));this[_0x3ef480(0x27a)]=_0x135bbd,this[_0x3ef480(0x214)]=_0x11b352;}[_0xbf25c6(0x1dc)](){const _0x5967c7=_0xbf25c6;this[_0x5967c7(0x1a4)]();let {scene:_0x55847c,mainComponent:_0x256025}=this[_0x5967c7(0x15e)],_0x1565f=this[_0x5967c7(0x20a)][_0x5967c7(0x1eb)](),_0x1a1a5a=this['_cursors'][_0x5967c7(0x2b3)](_0x22d678=>new ue(_0x22d678,_0x55847c,_0x1565f,_0x256025));this[_0x5967c7(0x27a)]=_0x1a1a5a;}[_0xbf25c6(0x1a4)](){const _0x3ec549=_0xbf25c6;this[_0x3ec549(0x27a)][_0x3ec549(0x1a7)](_0x232b67=>_0x232b67[_0x3ec549(0x130)]()),this[_0x3ec549(0x27a)]=[];}[_0xbf25c6(0x345)](){const _0x2d711f=_0xbf25c6;let _0x2f9917=[p[_0x2d711f(0x293)]['id']];this['disposeWithMe'](this[_0x2d711f(0x2fb)][_0x2d711f(0x2ed)](_0xe94e88=>{const _0x5ed735=_0x2d711f;_0x2f9917[_0x5ed735(0x30d)](_0xe94e88['id'])&&_0xe94e88[_0x5ed735(0x159)]['unitId']===this[_0x5ed735(0x15e)][_0x5ed735(0x1e3)]&&this[_0x5ed735(0x1dc)]();}));}[_0xbf25c6(0x1c5)](){const _0x1e9d0c=_0xbf25c6;this[_0x1e9d0c(0x154)]((0x0,t[_0x1e9d0c(0x358)])(this[_0x1e9d0c(0x15e)]['engine'][_0x1e9d0c(0x326)])[_0x1e9d0c(0x33d)]((0x0,i['filter'])(_0x55bb16=>_0x55bb16[_0x1e9d0c(0x1ae)]===d['TRANSFORM_CHANGE_OBSERVABLE_TYPE'][_0x1e9d0c(0x188)]),(0x0,i['throttleTime'])(0x10))[_0x1e9d0c(0x230)](()=>{const _0x514036=_0x1e9d0c;this[_0x514036(0x1dc)]();}));}};R=T([w(0x1,(0x0,t['Inject'])(g['DocSkeletonManagerService'])),w(0x2,(0x0,t[_0xbf25c6(0x142)])(I)),w(0x3,t[_0xbf25c6(0x245)]),w(0x4,(0x0,t[_0xbf25c6(0x142)])(t[_0xbf25c6(0xfc)]))],R);var z=class extends d['Shape']{constructor(_0x3d041c,_0x3936a3){const _0x2658a7=_0xbf25c6;if(super(_0x3d041c,_0x3936a3),C(this,_0x2658a7(0x13b),void 0x0),C(this,'_hovered',!0x1),C(this,'_range',void 0x0),C(this,_0x2658a7(0x19b),''),C(this,'_labelPosition','top'),C(this,_0x2658a7(0x2e3),void 0x0),C(this,_0x2658a7(0x17b),void 0x0),C(this,_0x2658a7(0x152),void 0x0),C(this,_0x2658a7(0x24b),0x4),C(this,'_blinkTimer',void 0x0),C(this,_0x2658a7(0x2c9),void 0x0),C(this,_0x2658a7(0x2e6),!0x0),C(this,_0x2658a7(0x1ec),0x0),_0x3936a3){var _0xa8f903;if(this[_0x2658a7(0x31a)](_0x3936a3),_0x3936a3[_0x2658a7(0x299)]&&((_0xa8f903=_0x3936a3['highlightSecond'])==null?this['_highlightSecond']:_0xa8f903)){var _0x5828e4;this['_startBlinking']((_0x5828e4=_0x3936a3[_0x2658a7(0x365)])==null?this[_0x2658a7(0x24b)]:_0x5828e4);}}this['onPointerEnter$'][_0x2658a7(0xf1)](()=>this['setShapeProps']({'hovered':!0x0})),this[_0x2658a7(0x135)][_0x2658a7(0xf1)](()=>this[_0x2658a7(0x31a)]({'hovered':!0x1}));}[_0xbf25c6(0x144)](_0x2ab9f5){this['_offsetY']=_0x2ab9f5;}[_0xbf25c6(0x31a)](_0x5cff87){const _0x14b738=_0xbf25c6;var _0x3d069a,_0x103e1b,_0x1a758c,_0x37ed37,_0x3656e7,_0x23c169,_0x14f941;this[_0x14b738(0x13b)]=(_0x3d069a=_0x5cff87[_0x14b738(0x24f)])==null?this[_0x14b738(0x13b)]:_0x3d069a,this[_0x14b738(0x35d)]=(_0x103e1b=_0x5cff87[_0x14b738(0x1bf)])==null?this['_hovered']:_0x103e1b,this[_0x14b738(0x2b0)]=(_0x1a758c=_0x5cff87['range'])==null?this['_range']:_0x1a758c,this['_name']=(_0x37ed37=_0x5cff87[_0x14b738(0x2f1)])==null?this[_0x14b738(0x19b)]:_0x37ed37,this[_0x14b738(0x2a6)]=(_0x3656e7=_0x5cff87[_0x14b738(0x1be)])==null?this[_0x14b738(0x2a6)]:_0x3656e7,this[_0x14b738(0x2e3)]=(_0x23c169=_0x5cff87[_0x14b738(0x311)])==null?this['_backgroundColor']:_0x23c169,this['_showText']=(_0x14f941=_0x5cff87['showText'])==null?this[_0x14b738(0x17b)]:_0x14f941,_0x5cff87['highlightSecond']!==void 0x0&&(this[_0x14b738(0x24b)]=_0x5cff87[_0x14b738(0x365)]),_0x5cff87[_0x14b738(0x299)]!==void 0x0&&(this[_0x14b738(0x152)]=_0x5cff87[_0x14b738(0x299)]),_0x5cff87[_0x14b738(0x161)]!==void 0x0&&(this['_offsetY']=_0x5cff87['offsetY']),this['transformByState']({'width':_0x5cff87[_0x14b738(0x1b6)],'height':_0x5cff87['height']});}[_0xbf25c6(0x2e4)](_0x103a7e){const _0x12b521=_0xbf25c6;let {row:_0x100712,column:_0x45ff2f}=_0x103a7e;if(_0x100712>=this['_range'][_0x12b521(0x35e)]&&_0x100712<=this[_0x12b521(0x2b0)][_0x12b521(0xfa)]&&_0x45ff2f>=this['_range'][_0x12b521(0x1f9)]&&_0x45ff2f<=this[_0x12b521(0x2b0)][_0x12b521(0x310)]){this[_0x12b521(0x31a)]({'hovered':!0x0});return;}this[_0x12b521(0x31a)]({'hovered':!0x1});}[_0xbf25c6(0x1c3)](_0x5551af){const _0x1ba2aa=_0xbf25c6;this['_stopBlinking'](),this[_0x1ba2aa(0x2e6)]=!0x0,this[_0x1ba2aa(0x2c9)]=window[_0x1ba2aa(0xe6)](()=>{const _0x2b1adf=_0x1ba2aa;this[_0x2b1adf(0x2e6)]=!this[_0x2b1adf(0x2e6)],this['makeDirty'](!0x0);},0x1f4),this['_blinkTimer']=window[_0x1ba2aa(0x18f)](()=>{const _0x363b5d=_0x1ba2aa;this[_0x363b5d(0x313)](),this[_0x363b5d(0x2e6)]=!0x0,this[_0x363b5d(0x315)](!0x0);},_0x5551af*0x3e8);}[_0xbf25c6(0x313)](){const _0x19998c=_0xbf25c6;this['_blinkIntervalTimer']&&(window[_0x19998c(0x257)](this[_0x19998c(0x2c9)]),this['_blinkIntervalTimer']=void 0x0),this['_blinkTimer']&&(window[_0x19998c(0x36a)](this[_0x19998c(0x2c2)]),this['_blinkTimer']=void 0x0);}[_0xbf25c6(0x140)](_0x33ad25){return!0x1;}[_0xbf25c6(0x130)](){const _0x31af15=_0xbf25c6;this[_0x31af15(0x313)](),super[_0x31af15(0x130)]();}['_draw'](_0x581bdc){const _0x171a3f=_0xbf25c6;let _0x21867a=this[_0x171a3f(0x13b)],_0x3f205f=this[_0x171a3f(0x2e3)];if(this[_0x171a3f(0x152)]&&!this[_0x171a3f(0x2e6)]&&(_0x21867a=this[_0x171a3f(0x249)](this[_0x171a3f(0x13b)]),_0x3f205f=this[_0x171a3f(0x2e3)]?this['_getLighterColor'](this[_0x171a3f(0x2e3)]):void 0x0),d[_0x171a3f(0x1c4)]['drawWith'](_0x581bdc,{'width':this[_0x171a3f(0x1b6)],'height':this[_0x171a3f(0x2fc)],'strokeWidth':this[_0x171a3f(0x2ec)]||1.5,'stroke':_0x21867a,'evented':!0x1,'fill':_0x3f205f}),this[_0x171a3f(0x35d)]||this['_showText']){var _0x3f6e6a;_0x581bdc[_0x171a3f(0x366)](),_0x581bdc[_0x171a3f(0x2a5)](0x1,0x0,0x0,0x1,this[_0x171a3f(0x1b6)],(this[_0x171a3f(0x2a6)]===_0x171a3f(0x118)?0x0:-0x14)+((_0x3f6e6a=this[_0x171a3f(0x1ec)])==null?0x0:_0x3f6e6a)),le[_0x171a3f(0x2dc)](_0x581bdc,{'text':this[_0x171a3f(0x19b)],'color':_0x21867a}),_0x581bdc[_0x171a3f(0x193)]();}}[_0xbf25c6(0x249)](_0x5e5f4a){const _0x1e20e4=_0xbf25c6;return _0x5e5f4a[_0x1e20e4(0x20f)]('#')?'rgba('+Number[_0x1e20e4(0x103)](_0x5e5f4a['slice'](0x1,0x3),0x10)+',\x20'+Number[_0x1e20e4(0x103)](_0x5e5f4a['slice'](0x3,0x5),0x10)+',\x20'+Number['parseInt'](_0x5e5f4a['slice'](0x5,0x7),0x10)+_0x1e20e4(0xf8):_0x5e5f4a[_0x1e20e4(0x20f)](_0x1e20e4(0x271))?_0x5e5f4a['replace'](/[\d.]+\)$/g,_0x1e20e4(0x362)):_0x5e5f4a['startsWith'](_0x1e20e4(0x2e5))?_0x5e5f4a[_0x1e20e4(0x278)](_0x1e20e4(0x2e5),_0x1e20e4(0x271))[_0x1e20e4(0x278)](')',',\x200.2)'):_0x5e5f4a;}};let B=class extends t[_0xbf25c6(0x266)]{constructor(_0x5d4552,_0x53b810,_0x37318a,_0x1ae0c6){const _0x58cb6e=_0xbf25c6;super(),this['_context']=_0x5d4552,this['_sheetSkeletonManagerService']=_0x53b810,this[_0x58cb6e(0x376)]=_0x37318a,this[_0x58cb6e(0x236)]=_0x1ae0c6,C(this,_0x58cb6e(0x214),new Set()),C(this,'_lastPointer',null),C(this,_0x58cb6e(0x166),null),this['_init']();}['_init'](){const _0x2ed5d4=_0xbf25c6;this[_0x2ed5d4(0x2f3)][_0x2ed5d4(0x2a7)]['pipe']((0x0,i[_0x2ed5d4(0x1a8)])(this[_0x2ed5d4(0x187)]),(0x0,i[_0x2ed5d4(0x258)])(_0x37b1bb=>{const _0x7b980e=_0x2ed5d4;if(_0x37b1bb){let _0x1fa0ad=_0x37b1bb[_0x7b980e(0x1e0)];return(0x0,r['combineLatest'])(this[_0x7b980e(0x376)][_0x7b980e(0x18c)](this[_0x7b980e(0x15e)][_0x7b980e(0x1e3)]),this['_themeService'][_0x7b980e(0xe4)])[_0x7b980e(0x33d)]((0x0,i[_0x7b980e(0x2b3)])(([_0x1b7e3c,_0x9c6ee8])=>{let _0x1e3ebd=new Map();return _0x1b7e3c['forEach']((_0x324671,_0x1cb62e)=>{const _0x3fbf13=_0x2506;if(_0x324671[_0x3fbf13(0x268)]===_0x1fa0ad){let _0x5f37c1={..._0x324671};_0x5f37c1['color']=this['_themeService'][_0x3fbf13(0x111)](_0x324671[_0x3fbf13(0x24f)]),_0x1e3ebd[_0x3fbf13(0x1fb)](_0x1cb62e,_0x5f37c1);}}),{'skeleton':_0x37b1bb,'cursors':_0x1e3ebd};}));}return(0x0,r['of'])({'skeleton':null,'cursors':new Map()});}))[_0x2ed5d4(0x230)](({skeleton:_0x2aea28,cursors:_0x31f51a})=>{const _0x5a67a2=_0x2ed5d4;this[_0x5a67a2(0x1a4)](),_0x2aea28&&this[_0x5a67a2(0x104)](_0x2aea28,_0x31f51a);}),this['disposeWithMe'](this[_0x2ed5d4(0x2f3)][_0x2ed5d4(0x2a7)]['pipe']((0x0,i['takeUntil'])(this[_0x2ed5d4(0x187)]))[_0x2ed5d4(0x230)](_0x1f4cae=>{const _0x43c3c3=_0x2ed5d4;var _0x17ba40;if(_0x1f4cae==null)return;(_0x17ba40=this[_0x43c3c3(0x166)])==null||_0x17ba40['unsubscribe'](),this['_pointerMoveDisposable']=null;let {skeleton:_0x8a9422}=_0x1f4cae,{scene:_0x27ed9d}=this[_0x43c3c3(0x15e)];this['_pointerMoveDisposable']=_0x27ed9d[_0x43c3c3(0x2d1)][_0x43c3c3(0xf1)]((0x0,t['debounce'])(_0x2d2223=>{const _0xbb24c8=_0x43c3c3;var _0x198004,_0x5d1cdd;let {offsetX:_0x2fb4dc,offsetY:_0x33e028}=_0x2d2223,{x:_0x2ccb22,y:_0x5aee12}=_0x27ed9d[_0xbb24c8(0x2b7)](d[_0xbb24c8(0x262)]['FromArray']([_0x2fb4dc,_0x33e028])),{scaleX:_0x2ea853,scaleY:_0x1a8e3e}=_0x27ed9d[_0xbb24c8(0x23c)](),_0x2e4f14=_0x27ed9d[_0xbb24c8(0x101)](d['SHEET_VIEWPORT_KEY']['VIEW_MAIN']),_0x58803a=_0x27ed9d[_0xbb24c8(0x1ff)](d['Vector2'][_0xbb24c8(0x27e)]([_0x2ccb22,_0x5aee12]),_0x2e4f14),_0x3eaa8b=_0x8a9422[_0xbb24c8(0x113)](_0x2fb4dc,_0x33e028,_0x2ea853,_0x1a8e3e,_0x58803a);((_0x198004=this[_0xbb24c8(0x317)])==null?void 0x0:_0x198004[_0xbb24c8(0x30e)])===_0x3eaa8b['column']&&((_0x5d1cdd=this['_lastPointer'])==null?void 0x0:_0x5d1cdd['row'])===_0x3eaa8b[_0xbb24c8(0x1b9)]||this[_0xbb24c8(0x214)][_0xbb24c8(0x1a7)](_0xb0f52d=>{const _0x3faca5=_0xbb24c8;_0xb0f52d[_0x3faca5(0x2e4)](_0x3eaa8b);});},0x64));})),this[_0x2ed5d4(0x154)]((0x0,t[_0x2ed5d4(0x2f0)])(()=>{var _0x1874f9;(_0x1874f9=this['_pointerMoveDisposable'])==null||_0x1874f9['unsubscribe'](),this['_pointerMoveDisposable']=null;}));}['_updateCollabCursors'](_0x685879,_0x316428){const _0x4d67d6=_0xbf25c6;let _0x5e1f2e=this['_sheetSkeletonManagerService'][_0x4d67d6(0x22d)]();if(!_0x5e1f2e)return;let _0x19f291=this[_0x4d67d6(0x1a6)]();if(!_0x19f291)return;this[_0x4d67d6(0x214)]['forEach'](_0x5ef0d2=>{_0x5ef0d2['makeDirty']();});let {scene:_0xff9591}=_0x19f291,_0x2a03dd=de(Array[_0x4d67d6(0x240)](_0x316428[_0x4d67d6(0x1a0)]()))[_0x4d67d6(0x2b3)](_0x50483b=>{const _0x152787=_0x4d67d6;let {color:_0x27b497,range:_0x3e2b47,name:_0x33ae8f,selection:_0x451274,sheetID:_0x1f21b4}=_0x50483b,{startColumn:_0x29d265,startRow:_0x6aa454,endColumn:_0x13199b,endRow:_0x2afac9}=_0x3e2b47,_0x4c814f=(0x0,v['getCoordByCell'])(_0x6aa454,_0x29d265,_0xff9591,_0x5e1f2e),_0x1b99b9=(0x0,v['getCoordByCell'])(_0x2afac9,_0x13199b,_0xff9591,_0x5e1f2e),{columnHeaderHeightAndMarginTop:_0xc52d96}=_0x5e1f2e,{startX:_0x15acb6,startY:_0x291770}=_0x4c814f,{endX:_0x47f64b,endY:_0xffe47}=_0x1b99b9,_0x53812e=_0x47f64b-_0x15acb6,_0x4e41d7=_0xffe47-_0x291770;return new z(_0x33ae8f,{'labelPosition':_0x291770-_0xc52d96>=0x14?_0x152787(0x353):'bottom','sheetID':_0x1f21b4,'range':_0x3e2b47,'color':_0x27b497,'name':_0x33ae8f,'selection':_0x451274,'left':_0x15acb6,'top':_0x291770,'width':_0x53812e,'height':_0x4e41d7,'evented':!0x1,'zIndex':0x1389});});_0xff9591[_0x4d67d6(0x26e)](_0x2a03dd,0x1),this[_0x4d67d6(0x214)]=new Set(_0x2a03dd);}[_0xbf25c6(0x1a4)](){const _0x3835a9=_0xbf25c6;var _0x14ee43;(_0x14ee43=this[_0x3835a9(0x214)])==null||_0x14ee43[_0x3835a9(0x1a7)](_0x5d9d12=>_0x5d9d12['dispose']());}[_0xbf25c6(0x1a6)](){const _0x319140=_0xbf25c6;return(0x0,v[_0x319140(0x209)])(this[_0x319140(0x15e)][_0x319140(0x2bc)],this['_context']);}};B=T([w(0x1,(0x0,t[_0xbf25c6(0x142)])(v[_0xbf25c6(0x318)])),w(0x2,(0x0,t[_0xbf25c6(0x142)])(I)),w(0x3,(0x0,t[_0xbf25c6(0x142)])(t['ThemeService']))],B);function de(_0x50f714){const _0x4dbf64=_0xbf25c6;let _0x47389f=new Map();return _0x50f714['forEach'](_0x57cb3d=>{const _0xb5781c=_0x2506;if(_0x47389f[_0xb5781c(0x17f)](_0x57cb3d[_0xb5781c(0x2a1)])){let _0x3fe330=_0x47389f[_0xb5781c(0x277)](_0x57cb3d[_0xb5781c(0x2a1)]);_0x3fe330[_0xb5781c(0x2f1)]+=',\x20'+_0x57cb3d['name'];}else _0x47389f['set'](_0x57cb3d[_0xb5781c(0x2a1)],_0x57cb3d);}),Array[_0x4dbf64(0x240)](_0x47389f[_0x4dbf64(0x1a0)]());}let V=class extends t['Disposable']{constructor(_0x555eea,_0x3c4b29,_0x29470b,_0x58ca8a,_0x3e3ead,_0x30a5a9){const _0x290b65=_0xbf25c6;super(),this[_0x290b65(0x32a)]=_0x555eea,this['_localCacheService']=_0x3c4b29,this[_0x290b65(0xe2)]=_0x29470b,this['_messageService']=_0x58ca8a,this[_0x290b65(0x16f)]=_0x3e3ead,this[_0x290b65(0x1b0)]=_0x30a5a9,this[_0x290b65(0x119)](),this['_initEvent']();}['_setupBeforeClosingHandler'](){const _0x55643c=_0xbf25c6;this[_0x55643c(0x154)](this[_0x55643c(0x32a)]['registerBeforeClose'](()=>{const _0x3890e9=_0x55643c;if(this[_0x3890e9(0x1d1)][_0x3890e9(0x34a)][_0x3890e9(0x162)])return this[_0x3890e9(0x1b0)]['t']('collaboration-client-ui.collaboration.offline-data-not-saved');}));}[_0xbf25c6(0x105)](){this['disposeWithMe'](this['_collaborationUIEventService']['event$']['subscribe'](_0x555dc3=>{const _0x5470eb=_0x2506;_0x555dc3['id']===e[_0x5470eb(0x2a3)][_0x5470eb(0x1d7)]&&this[_0x5470eb(0x15f)]['show']({'type':a[_0x5470eb(0x1a9)]['Warning'],'content':this[_0x5470eb(0x1b0)]['t'](_0x5470eb(0x137))}),_0x555dc3['id']===e[_0x5470eb(0x2a3)][_0x5470eb(0x22f)]&&this[_0x5470eb(0x15f)][_0x5470eb(0x31c)]({'type':a[_0x5470eb(0x1a9)][_0x5470eb(0x32f)],'content':this[_0x5470eb(0x1b0)]['t']('collaboration-client-ui.collaboration.closeRoom')}),_0x555dc3['id']===e[_0x5470eb(0x2a3)][_0x5470eb(0x32d)]&&this['_notificationService']['show']({'title':this[_0x5470eb(0x1b0)]['t'](_0x5470eb(0x27f)),'content':this[_0x5470eb(0x1b0)]['t'](_0x5470eb(0x206)),'type':_0x5470eb(0x2d5),'duration':0x0}),_0x555dc3['id']===e[_0x5470eb(0x2a3)][_0x5470eb(0x279)]&&this[_0x5470eb(0x15f)][_0x5470eb(0x31c)]({'type':a[_0x5470eb(0x1a9)][_0x5470eb(0x1db)],'content':this['_localeService']['t'](_0x5470eb(0x37b))+'('+_0x555dc3[_0x5470eb(0x350)]+')'}),_0x555dc3['id']===e[_0x5470eb(0x2a3)][_0x5470eb(0x333)]&&this['_messageService'][_0x5470eb(0x31c)]({'type':a[_0x5470eb(0x1a9)]['Warning'],'content':this[_0x5470eb(0x1b0)]['t'](_0x555dc3['data']||'')}),_0x555dc3['id']===e[_0x5470eb(0x2a3)]['SOCKET_FAILED_RETRY']&&this[_0x5470eb(0x15f)][_0x5470eb(0x31c)]({'type':a[_0x5470eb(0x1a9)][_0x5470eb(0x32f)],'content':this[_0x5470eb(0x1b0)]['t']('collaboration-client-ui.session.will-retry')}),_0x555dc3['id']===e[_0x5470eb(0x2a3)][_0x5470eb(0x330)]&&this[_0x5470eb(0x15f)][_0x5470eb(0x31c)]({'type':a[_0x5470eb(0x1a9)][_0x5470eb(0x1db)],'content':this[_0x5470eb(0x1b0)]['t'](_0x5470eb(0x280))}),_0x555dc3['id']===e[_0x5470eb(0x2a3)]['SUBMIT_CHANGESET_TIMEOUT']&&this[_0x5470eb(0x15f)][_0x5470eb(0x31c)]({'type':a[_0x5470eb(0x1a9)][_0x5470eb(0x1db)],'content':this[_0x5470eb(0x1b0)]['t'](_0x5470eb(0x2a8))});}));}};V=T([w(0x0,n[_0xbf25c6(0x1af)]),w(0x1,e[_0xbf25c6(0x33e)]),w(0x2,(0x0,t[_0xbf25c6(0x142)])(e['CollaborationUIEventService'])),w(0x3,n['IMessageService']),w(0x4,n[_0xbf25c6(0x203)]),w(0x5,(0x0,t[_0xbf25c6(0x142)])(t[_0xbf25c6(0x334)]))],V);const H={};let U=class{constructor(_0x1ab5b8,_0x5ca840){const _0x250b8c=_0xbf25c6;this[_0x250b8c(0x1ad)]=_0x1ab5b8,this[_0x250b8c(0x12a)]=_0x5ca840;}[_0xbf25c6(0x359)](_0x4820a1){const _0x4ef7cd=_0xbf25c6;this['_transformUndoRedoStack'](_0x4820a1),this[_0x4ef7cd(0x148)](_0x4820a1);}[_0xbf25c6(0x2a4)](_0x54ffbb){const _0x541466=_0xbf25c6;let {unitID:_0x58248c}=_0x54ffbb,{redoCache:_0x3bc9d9}=this[_0x541466(0x12a)]['getRenderById'](_0x58248c)[_0x541466(0x31e)](p[_0x541466(0x1fa)])[_0x541466(0x2b9)]();if(_0x3bc9d9[_0x541466(0x217)]===0x0)return _0x54ffbb;let _0x53383c=t[_0x541466(0x1b5)][_0x541466(0x347)](_0x54ffbb['mutations'][0x0]);for(let _0x46ae67=0x0;_0x46ae67<_0x3bc9d9[_0x541466(0x217)];_0x46ae67++){let _0x10f8a3={'id':_0x541466(0xe7),'params':{..._0x3bc9d9[_0x46ae67]}},_0x1a4d74=this[_0x541466(0x1ad)]['transformMutation'](_0x53383c,_0x10f8a3,!0x1);if((0x0,h[_0x541466(0x22c)])(_0x1a4d74))throw _0x1a4d74[_0x541466(0x2d5)];_0x53383c=_0x1a4d74[_0x541466(0x189)];}return{...t['Tools'][_0x541466(0x347)](_0x54ffbb),'mutations':[_0x53383c]};}[_0xbf25c6(0x1a2)](_0xe497d5){const _0x414656=_0xbf25c6;let {unitID:_0x3185cd}=_0xe497d5,_0x3661fc=this[_0x414656(0x12a)][_0x414656(0x304)](_0x3185cd)[_0x414656(0x31e)](p[_0x414656(0x1fa)]),{undoCache:_0x11cf74,redoCache:_0xe8f8fc}=_0x3661fc['getUndoRedoMutationParamsCache']();if(_0x11cf74[_0x414656(0x217)]===0x0||_0xe8f8fc[_0x414656(0x217)]===0x0)return;let _0x4cbc36=[],_0x4db468=[],_0x61f4dc=t[_0x414656(0x1b5)][_0x414656(0x347)](_0xe497d5[_0x414656(0x2e8)][0x0]),_0x869b32=t[_0x414656(0x1b5)][_0x414656(0x347)](_0xe497d5[_0x414656(0x2e8)][0x0]);for(let _0xc0524e=_0x11cf74[_0x414656(0x217)]-0x1;_0xc0524e>=0x0;_0xc0524e--){let _0x5e6518={'id':'doc.mutation.rich-text-editing','params':{..._0x11cf74[_0xc0524e]}},_0x522f8f={'id':_0x414656(0xe7),'params':{..._0xe8f8fc[_0xc0524e]}},_0x1dde7c=this[_0x414656(0x1ad)][_0x414656(0x1fe)](_0x61f4dc,_0x5e6518,!0x1),_0x356b18=this[_0x414656(0x1ad)][_0x414656(0x1fe)](_0x869b32,_0x522f8f,!0x1);if((0x0,h[_0x414656(0x22c)])(_0x1dde7c))throw _0x1dde7c[_0x414656(0x2d5)];if((0x0,h[_0x414656(0x22c)])(_0x356b18))throw _0x356b18[_0x414656(0x2d5)];_0x4cbc36[_0x414656(0x2a2)](_0x1dde7c[_0x414656(0x272)][_0x414656(0x159)]),_0x4db468[_0x414656(0x2a2)](_0x356b18[_0x414656(0x272)][_0x414656(0x159)]),_0x61f4dc=_0x1dde7c[_0x414656(0x189)],_0x869b32=_0x356b18[_0x414656(0x189)];}_0x3661fc[_0x414656(0x243)]({'undoCache':_0x4cbc36,'redoCache':_0x4db468});}[_0xbf25c6(0x148)](_0x57bdfc){const _0xd6238=_0xbf25c6;let {unitID:_0x44455a}=_0x57bdfc,_0xdf0ca=this[_0xd6238(0x12a)][_0xd6238(0x304)](_0x44455a)[_0xd6238(0x31e)](p[_0xd6238(0x1fa)]),_0x3a2288=_0xdf0ca[_0xd6238(0x109)]();if(_0x3a2288==null)return;let _0x440525=[{'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x57bdfc[_0xd6238(0x132)],'actions':null,'textRanges':[_0x3a2288]}}],_0x1c8ccd=this[_0xd6238(0x1ad)][_0xd6238(0x324)](_0x57bdfc,_0x440525);if(!(0x0,h['isTransformMutationsWithChangesetSuccess'])(_0x1c8ccd))throw _0x1c8ccd[_0xd6238(0x2d5)];let _0x2f9835=_0x1c8ccd[_0xd6238(0x272)][0x0][_0xd6238(0x159)][_0xd6238(0xf2)];Array[_0xd6238(0x2c5)](_0x2f9835)&&_0x2f9835[_0xd6238(0x217)]&&_0xdf0ca['setActiveRange'](_0x2f9835[0x0]);}};U=T([w(0x0,h[_0xbf25c6(0xd2)]),w(0x1,d['IRenderManagerService'])],U);let W=class{constructor(_0x494da5,_0x7cf39d,_0x580672){const _0x24116f=_0xbf25c6;this[_0x24116f(0x231)]=_0x494da5,this[_0x24116f(0x1ad)]=_0x7cf39d,this[_0x24116f(0x327)]=_0x580672;}[_0xbf25c6(0x2d6)](_0x24020e){const _0x246268=_0xbf25c6;this[_0x246268(0x1d3)](_0x24020e);}['transformRemoteChangeset'](_0x231d15){const _0xc77b7=_0xbf25c6;let {unitID:_0x160a5b}=_0x231d15,{collaboration:_0x146f48}=this['_docStateChangeManagerService'][_0xc77b7(0x13a)](_0x160a5b);if(_0x146f48[_0xc77b7(0x217)]===0x0)return _0x231d15;let _0x3e8f97=t[_0xc77b7(0x1b5)][_0xc77b7(0x347)](_0x231d15['mutations'][0x0]);for(let _0x4619de=0x0;_0x4619de<_0x146f48[_0xc77b7(0x217)];_0x4619de++){let _0x2fec5c={'id':_0xc77b7(0xe7),'params':{'unitId':_0x146f48[_0x4619de]['unitId'],..._0x146f48[_0x4619de][_0xc77b7(0x314)]}},_0x30795e=this[_0xc77b7(0x1ad)][_0xc77b7(0x1fe)](_0x3e8f97,_0x2fec5c,!0x1);if((0x0,h[_0xc77b7(0x22c)])(_0x30795e))throw _0x30795e[_0xc77b7(0x2d5)];_0x3e8f97=_0x30795e[_0xc77b7(0x189)];}return{...t[_0xc77b7(0x1b5)][_0xc77b7(0x347)](_0x231d15),'mutations':[_0x3e8f97]};}['_transformHistoryAndStateStack'](_0x2c95d5){const _0xbd4d15=_0xbf25c6;let {unitID:_0x882c38}=_0x2c95d5,{history:_0x15a226,collaboration:_0x33c84c}=this[_0xbd4d15(0x327)][_0xbd4d15(0x13a)](_0x882c38);if(_0x15a226[_0xbd4d15(0x217)]===0x0&&_0x33c84c['length']===0x0)return;let _0x51c2bf=[],_0x4434f4=[],_0x213b47=t['Tools'][_0xbd4d15(0x347)](_0x2c95d5[_0xbd4d15(0x2e8)][0x0]),_0x46fe22=t[_0xbd4d15(0x1b5)][_0xbd4d15(0x347)](_0x2c95d5['mutations'][0x0]);for(let _0x2a0194=_0x15a226[_0xbd4d15(0x217)]-0x1;_0x2a0194>=0x0;_0x2a0194--){let _0x120a8c={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x15a226[_0x2a0194][_0xbd4d15(0x1e3)],..._0x15a226[_0x2a0194][_0xbd4d15(0x2f9)]}},_0x511a49={'id':_0xbd4d15(0xe7),'params':{'unitId':_0x15a226[_0x2a0194][_0xbd4d15(0x1e3)],..._0x15a226[_0x2a0194]['redoState']}},_0x22eef1=this[_0xbd4d15(0x1ad)]['transformMutation'](_0x213b47,_0x120a8c,!0x1),_0x11615f=this[_0xbd4d15(0x1ad)][_0xbd4d15(0x1fe)](_0x46fe22,_0x511a49,!0x1);if((0x0,h['isTransformMutationFailure'])(_0x22eef1))throw _0x22eef1['error'];if((0x0,h['isTransformMutationFailure'])(_0x11615f))throw _0x11615f[_0xbd4d15(0x2d5)];_0x51c2bf[_0xbd4d15(0x2a2)]({..._0x15a226[_0x2a0194],'undoState':_0x22eef1[_0xbd4d15(0x272)][_0xbd4d15(0x159)],'redoState':_0x11615f[_0xbd4d15(0x272)][_0xbd4d15(0x159)]}),_0x213b47=_0x22eef1[_0xbd4d15(0x189)],_0x46fe22=_0x11615f['m1Prime'];}_0x213b47=t[_0xbd4d15(0x1b5)][_0xbd4d15(0x347)](_0x2c95d5['mutations'][0x0]),_0x46fe22=t[_0xbd4d15(0x1b5)][_0xbd4d15(0x347)](_0x2c95d5[_0xbd4d15(0x2e8)][0x0]);for(let _0x27aafa=_0x33c84c['length']-0x1;_0x27aafa>=0x0;_0x27aafa--){let _0xf83ed6={'id':_0xbd4d15(0xe7),'params':{'unitId':_0x33c84c[_0x27aafa][_0xbd4d15(0x1e3)],..._0x33c84c[_0x27aafa][_0xbd4d15(0x2f9)]}},_0x2bf928={'id':_0xbd4d15(0xe7),'params':{'unitId':_0x33c84c[_0x27aafa][_0xbd4d15(0x1e3)],..._0x33c84c[_0x27aafa][_0xbd4d15(0x314)]}},_0x52c8a7=this[_0xbd4d15(0x1ad)]['transformMutation'](_0x213b47,_0xf83ed6,!0x1),_0x43efe6=this[_0xbd4d15(0x1ad)][_0xbd4d15(0x1fe)](_0x46fe22,_0x2bf928,!0x1);if((0x0,h['isTransformMutationFailure'])(_0x52c8a7))throw _0x52c8a7[_0xbd4d15(0x2d5)];if((0x0,h['isTransformMutationFailure'])(_0x43efe6))throw _0x43efe6[_0xbd4d15(0x2d5)];_0x4434f4[_0xbd4d15(0x2a2)]({..._0x33c84c[_0x27aafa],'undoState':_0x52c8a7[_0xbd4d15(0x272)][_0xbd4d15(0x159)],'redoState':_0x43efe6[_0xbd4d15(0x272)][_0xbd4d15(0x159)]}),_0x213b47=_0x52c8a7[_0xbd4d15(0x189)],_0x46fe22=_0x43efe6[_0xbd4d15(0x189)];}this[_0xbd4d15(0x327)][_0xbd4d15(0x1cf)](_0x882c38,{'history':_0x51c2bf,'collaboration':_0x4434f4});}};W=T([w(0x0,(0x0,t[_0xbf25c6(0x142)])(t[_0xbf25c6(0x1f5)])),w(0x1,h[_0xbf25c6(0xd2)]),w(0x2,(0x0,t['Inject'])(p[_0xbf25c6(0x2bf)]))],W);let G=class{constructor(_0xafe37e,_0x54a3b9){const _0x16d2ff=_0xbf25c6;this[_0x16d2ff(0x231)]=_0xafe37e,this[_0x16d2ff(0x1ad)]=_0x54a3b9;}['transformSelections'](_0x4ff200){const _0x19d51d=_0xbf25c6;var _0x455b6e;let _0x9ba296=this['_injector']['get'](g[_0x19d51d(0x34b)]),_0x55d777=(_0x455b6e=_0x9ba296[_0x19d51d(0x34f)]())==null?[]:_0x455b6e;if(_0x55d777['length']===0x0)return;let _0x44220c=_0x4ff200[_0x19d51d(0x132)],_0x913a1f=[{'id':_0x19d51d(0xe7),'params':{'unitId':_0x44220c,'actions':null,'textRanges':_0x55d777}}],_0x2a50d7=this[_0x19d51d(0x1ad)]['transformMutationsWithChangeset'](_0x4ff200,_0x913a1f);if(!(0x0,h[_0x19d51d(0x1da)])(_0x2a50d7))throw _0x2a50d7[_0x19d51d(0x2d5)];let _0x3e5d28=_0x2a50d7['m2Prime'][0x0][_0x19d51d(0x159)][_0x19d51d(0xf2)];Array[_0x19d51d(0x2c5)](_0x3e5d28)&&_0x3e5d28[_0x19d51d(0x217)]&&_0x9ba296[_0x19d51d(0x11d)](_0x3e5d28,{'unitId':_0x44220c,'subUnitId':_0x44220c},!0x1);}};G=T([w(0x0,(0x0,t[_0xbf25c6(0x142)])(t[_0xbf25c6(0x1f5)])),w(0x1,h[_0xbf25c6(0xd2)])],G);let K=class extends t[_0xbf25c6(0x229)]{constructor(_0x103d01,_0x1c0efe,_0x2c0c7e,_0x5cfa6d,_0x43ea80,_0x2f4cd2,_0x548d62,_0x5ce631){const _0x6db45=_0xbf25c6;super(),this[_0x6db45(0x327)]=_0x103d01,this[_0x6db45(0x169)]=_0x1c0efe,this[_0x6db45(0xda)]=_0x2c0c7e,this[_0x6db45(0x107)]=_0x5cfa6d,this[_0x6db45(0xe3)]=_0x43ea80,this[_0x6db45(0x2ee)]=_0x2f4cd2,this[_0x6db45(0x15f)]=_0x548d62,this[_0x6db45(0x1b0)]=_0x5ce631,C(this,'_status$',new r['BehaviorSubject'](e['CollaborationStatus']['NOT_COLLAB'])),this['_initEntityListener']();}[_0xbf25c6(0x180)](){const _0x43b89c=_0xbf25c6;this['disposeWithMe'](this[_0x43b89c(0x169)][_0x43b89c(0x1ea)][_0x43b89c(0x230)](_0x5b69d9=>{const _0x42759f=_0x43b89c;let _0x4712d1=this[_0x42759f(0x327)][_0x42759f(0x252)][_0x42759f(0x230)](_0x5deb0d=>{const _0x4ead50=_0x42759f;if(_0x5deb0d==null)return;let {unitId:_0x5f510c,redoState:_0x4a1a72,commandId:_0x485505}=_0x5deb0d;if(_0x5f510c!==_0x5b69d9[_0x4ead50(0x132)])return;let _0x5c4d02={'id':_0x485505,'type':t[_0x4ead50(0x36c)][_0x4ead50(0x296)],'params':{'unitId':_0x5f510c,'actions':_0x4a1a72[_0x4ead50(0x126)],'textRanges':null}};_0x5b69d9[_0x4ead50(0x19e)](_0x5c4d02);});_0x5b69d9['disposeWithMe'](_0x4712d1),_0x5b69d9 instanceof e[_0x42759f(0x2f5)]&&_0x5b69d9[_0x42759f(0x26b)]({'onTransformIME':_0x2a9ddc=>this[_0x42759f(0xda)][_0x42759f(0x359)](_0x2a9ddc),'onTransformState':_0x38951e=>this[_0x42759f(0x107)][_0x42759f(0x2d6)](_0x38951e),'onTransformSelections':_0x1c654b=>this['_docTransformSelectionsService'][_0x42759f(0x20b)](_0x1c654b),'onSyncEditingCollabCursor':_0x1ee4eb=>this[_0x42759f(0x2ee)][_0x42759f(0x2c0)](_0x1ee4eb),'onTransformRemoteChangesetByIMECache':_0x19e9da=>this['_docTransformIMECacheService'][_0x42759f(0x2a4)](_0x19e9da),'onTransformRemoteChangesetByStateCache':_0x263342=>this[_0x42759f(0x107)]['transformRemoteChangeset'](_0x263342)});}));}};K=T([w(0x0,(0x0,t['Inject'])(p['DocStateChangeManagerService'])),w(0x1,(0x0,t['Inject'])(e['CollaborationController'])),w(0x2,(0x0,t[_0xbf25c6(0x142)])(U)),w(0x3,(0x0,t[_0xbf25c6(0x142)])(W)),w(0x4,(0x0,t[_0xbf25c6(0x142)])(G)),w(0x5,(0x0,t[_0xbf25c6(0x142)])(N)),w(0x6,n[_0xbf25c6(0x21a)]),w(0x7,(0x0,t[_0xbf25c6(0x142)])(t[_0xbf25c6(0x334)]))],K);let q=class extends t[_0xbf25c6(0x229)]{constructor(_0x67f322,_0x464b73,_0x2cf257,_0xdf8df7){const _0x1d5488=_0xbf25c6;super(),this[_0x1d5488(0x231)]=_0x67f322,this[_0x1d5488(0xfd)]=_0x464b73,this[_0x1d5488(0x177)]=_0x2cf257,this[_0x1d5488(0x24d)]=_0xdf8df7,C(this,_0x1d5488(0x1c2),void 0x0),this[_0x1d5488(0x2b2)]();}['_init'](){const _0x5c87f5=_0xbf25c6;this['_initWindowErrorListener'](),this[_0x5c87f5(0xed)](),this[_0x5c87f5(0x2ce)](),this[_0x5c87f5(0x16b)]();}[_0xbf25c6(0x16b)](){const _0x2528bc=_0xbf25c6;this[_0x2528bc(0x154)](this[_0x2528bc(0x24d)][_0x2528bc(0x128)][_0x2528bc(0x230)](_0x17b44f=>{const _0x1d80f6=_0x2528bc;this[_0x1d80f6(0x1c2)]=_0x17b44f==null?void 0x0:_0x17b44f['memberID'];}));}[_0xbf25c6(0x228)](){const _0x503a32=_0xbf25c6;let _0x5d698a=_0x148475=>{const _0x343cb8=_0x2506;var _0x254bec;this[_0x343cb8(0x123)]('error',_0x343cb8(0x2c7)+_0x148475[_0x343cb8(0x10e)]+_0x343cb8(0xfb)+_0x148475[_0x343cb8(0x1ee)]+':'+_0x148475[_0x343cb8(0x260)]+':'+_0x148475[_0x343cb8(0x16e)]+'\x0a'+(((_0x254bec=_0x148475[_0x343cb8(0x2d5)])==null?void 0x0:_0x254bec[_0x343cb8(0xf3)])||''));};window[_0x503a32(0x2eb)](_0x503a32(0x2d5),_0x5d698a),this[_0x503a32(0x154)](()=>{const _0x1813bf=_0x503a32;window[_0x1813bf(0x18b)](_0x1813bf(0x2d5),_0x5d698a);});}['_initUnhandledRejectionListener'](){const _0x49206c=_0xbf25c6;let _0x57adf5=_0x5b5825=>{const _0x5a7882=_0x2506;this['_uploadLog'](_0x5a7882(0x2d5),_0x5a7882(0x1c6)+_0x5b5825[_0x5a7882(0x2a0)]);};window[_0x49206c(0x2eb)](_0x49206c(0x2bd),_0x57adf5),this[_0x49206c(0x154)](()=>{const _0x3953db=_0x49206c;window[_0x3953db(0x18b)](_0x3953db(0x2bd),_0x57adf5);});}[_0xbf25c6(0x2ce)](){const _0x5ebf53=_0xbf25c6;let _0x482f5e=this[_0x5ebf53(0x177)][_0x5ebf53(0x2d5)][_0x5ebf53(0x239)](this[_0x5ebf53(0x177)]);this[_0x5ebf53(0x177)]['error']=(..._0x2e1f35)=>{const _0x4ba533=_0x5ebf53;let _0x7aee6d=_0x2e1f35[_0x4ba533(0x2b3)](_0x215d80=>_0x215d80 instanceof Error?_0x215d80[_0x4ba533(0x10e)]+'\x0a'+_0x215d80['stack']:String(_0x215d80))['join']('\x20');this['_uploadLog'](_0x4ba533(0x2d5),_0x4ba533(0x22a)+_0x7aee6d),_0x482f5e(..._0x2e1f35);},this[_0x5ebf53(0x154)](()=>{const _0x5626af=_0x5ebf53;this[_0x5626af(0x177)][_0x5626af(0x2d5)]=_0x482f5e;});}[_0xbf25c6(0x123)](_0x404afe,_0x2ee9ee){const _0x3d056a=_0xbf25c6;try{let _0x10d047={'userId':this[_0x3d056a(0x1c2)],'logLabel':_0x404afe,'content':_0x2ee9ee};this[_0x3d056a(0xfd)][_0x3d056a(0x1d5)]('/universer-api/frontend/logs',{'body':_0x10d047})[_0x3d056a(0x307)](()=>{});}catch{}}};function _0x35dd(){const _0x56ddc5=['getRenderById','_disabled','function','catch','searchParams','SetSelectionsOperation','_maxFormulaLimit','HTTPService','_draw','includes','column','IRemoteInstanceService','endColumn','backgroundColor','registerRefRange','_stopBlinking','redoState','makeDirty','_ensureSubject','_lastPointer','SheetSkeletonManagerService','div','setShapeProps','_startSheetCollabCursor','show','_saveCache','with','_handleLeaveEvent','_initDependencies','blue.400','true','_setupSubUnitSync','transformMutationsWithChangeset','/universer-api/license/formula/limit/start','onTransformChange$','_docStateChangeManagerService','SetFormulaCalculationNotificationMutation','FormulaExecuteStageType','_beforeCloseService','saveImage','merge','PERMISSION_DENIED','packageName','Warning','SOCKET_FAILED','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','collab-text-anchor-','JOIN_ROOM_FAILED','LocaleService','collaboration-client-ui.collabStatus.conflict','TEXT_RANGE_LAYER_INDEX','_removeClearOtherTimer','Tooltip','Subject','getCurrentTypeOfUnit$','newValue','_refRangeService','pipe','ILocalCacheService','assignAColorForMemberID','subUnitId','urlChange$','requireSession','string','body','_initCommandExecutedListener','_docSkeleton','deepClone','_registerRenderDependencies','_scene','saveTaskMap','DocSelectionManagerService','wsSessionTicketUrl','_imageIoService','ticket','getDocRanges','data','_drawTextRange','onRendered','top','measureText','_univerInstanceService','onPointerEnter$','_unitOnClients','fromEventSubject','transformIMECache','defineProperty','useMemo','focused$','_hovered','startRow','RevisionService','preventDefault','univer-inline-flex\x20univer-items-center\x20univer-justify-center','0.2)','handleDeleteRangeMoveLeft','_assignedColors','highlightSecond','save','_urlService','NOT_COLLAB','RegularPolygon','clearTimeout','unload','CommandType','66iMkGTT','UniverCollaborationClientPlugin','object','some','loadOfflineData','replaceState','_cursor','registerComponent','UNIVER_DOC','_collabCursorController','RECT','isInternalEditorID','_selfUnitIDs','_toggleOnline','collaboration-client-ui.collaboration.closeRoom','loadUnit','ITransformService','collaboration-client-ui.config','LOCAL_CACHE_INTERVAL','_uiPartsService','UniverInstanceType','filter','16695SDGLlS','_textBubble','_docTransformIMECacheService','_initStatusComponent','useDependency','parse','getLocalCacheKey','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','reconnect','MemberService','_collaborationUIEventService','_docTransformSelectionsService','currentTheme$','USERS_LEAVE','setInterval','doc.mutation.rich-text-editing','debounce','WebURLService','removeParam','connectInjector','code','_initUnhandledRejectionListener','InsertRangeMoveDownCommandId','_roomMembers$','_anchorDot','subscribeEvent','textRanges','stack','_entityInit$','TEXT','handleDeleteRangeMoveUp','source',',\x200.2)','handleIRemoveRow','endRow','\x20at\x20','ThemeService','_httpService','Success','AWAITING','green.600','getViewport','debug','parseInt','_updateCollabCursors','_initEvent','getOwnPropertyDescriptor','_docTransformStateCacheService','toPrimitive','getActiveRange','collaboration-client-ui.collabClient.tooltip.reconnect','shareReplay','addClipboardHook','event$','message','_clearPolling','sessionStatus$','getColorFromTheme','getMemberID','getCellPositionByOffset','roomMembers$','...','span','CollaborationStatus','bottom','_setupBeforeClosingHandler','_onCursorDelete','complete','cursorInfo$','replaceDocRanges','closePath','fill','/universer-api/license/formula/limit/status','updateOfflineData','runRefRangeMutations','_uploadLog','_startDocCollabCursor','dark:focus:univer-ring-offset-gray-800','actions','all','socket$','getSheetId','_renderManagerService','getFocusedUnit','_applyCommand','onStarting','collab-rect-range-','ILogService','dispose','setConfig','unitID','setParam','880uEzUeB','onPointerLeave$','totalFormulasToCalculate','collaboration-client-ui.collaboration.single-unit.warning','[RemoteUniscriptService]:\x20no\x20focused\x20unit','RefRangeService','getStateCache','_color','currentUsage','collab-text-range-','_localStorageService','IUIPartsService','triggerDblclick','ColorKit','Inject','jsx','setOffsetY','_docClipboardService','_shapes','toString','_transformPreviousActiveRange','_handleHover','_setFormulaLimitStatus','runId','univer-text-green-500','_collabSessionService','fillText','collaboration-client-ui.formula.calculation.started','624237QbFovF','delete','_highlight','getConfig','disposeWithMe','pulse','_drawAnchor','DOC_RANGE_TYPE','_updateSubUnitFromURLParams','params','_syncEditingCollabCursorService','_clearOtherTimers','disposeUnit','spin','_context','_messageService','PENDING','offsetY','size','FETCH_MISS','SetTextSelectionsOperation','_memberService','_pointerMoveDisposable','UNIVER_COLLABORATION_CLIENT_WEB_PLUGIN','stageInfo','_collaborationController','_document','_initUserListener','search','EffectRefRangId','colno','_notificationService','_taskIds','getTypeOfUnitAdded$','ILocalStorageService','init','0.25.0','asObservable','_startCalculationLimit','_logService','disableLocalCache','beginPath','getFormulaLimitStatusUrl','_showText','collaboration-client-ui.formula.calculation.waiting','getRangePointData','setAlpha','has','_initEntityListener','_config','_getMergeRange','send','distinctUntilChanged','ranges','maxFormulaLimit','dispose$','resize','m1Prime','indicator','removeEventListener','getCollabCursors$','UNIVER_SHEET','getUnit','setTimeout','constructor','getUnitId','_cachedData','restore','clickable','@univerjs-pro/collaboration-client-ui','_session','getValue','then','popstate','iterator','_name','_createSocketURL','roomMembers','onLocalMutation','SYNCED','values','DataLoaderService','_transformUndoRedoStack','selections','_removeCollabCursors','getCellMatrix','_getSheetObject','forEach','takeUntil','MessageType','call','add','_configService','_transformService','type','IBeforeCloseService','_localeService','/run/','storage','push','UnitStatus','Tools','width','2gNPENV','findNodePositionByCharIndex','row','_lastResponseTimestamp','univer-text-gray-400','_id','Module','labelPosition','hovered','206051fzGJYj','OTHER_CLIENTS_EDITING','_memberID','_startBlinking','Rect','_initResize','[Unhandled\x20Rejection]:\x20','black','CanceledError','Enter','_updateURLWithCurrentState','lineTo','NodePositionConvertToCursor','toRgbString','WebSocketService','setStateCache','DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT','_localCacheService','beforeCommandExecuted','_transformHistoryAndStateStack','OFFLINE','post','status','OTHER_CLIENT_EDITING','IUniverInstanceService','min','isTransformMutationsWithChangesetSuccess','Error','_refreshCollabCursors','_collabCursorState$','find','deserializeRangeWithSheet','sheetId','IConfigService','next','unitId','2275008FxbovB','ACTIVE_UNIT_EVENT_CHANNEL','releaseFormulaLimitUrl','_instanceService','getUniverSheetInstance','CollaborationEvent','entityInit$','getSkeleton','_offsetY','symbol','filename','generateRandomId','getOffsetConfig','_revisionService','contains','evenodd','SheetCollabCursorShape','Injector','unsubscribe','max','exhaustSavingTask','startColumn','DocIMEInputManagerService','set','clsx','IRenderManagerService','transformMutation','getVpScrollXYInfoByPosToVp','_anchor','REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY','_updateLocalCursor','INotificationService','_saveTaskMap','UniverCollaborationClientUIPlugin','collaboration-client-ui.permission.content','univer-flex\x20univer-items-center\x20univer-justify-center','ISnapshotServerService','getSheetObject','_docSkeletonManagerService','transformSelections','univer-text-blue-500','_checkAndWaitForCalculationPermission','executionId','startsWith','WebBrowserSingleActiveUnitService','dirtyRanges','333550bVrptd','_getSessionTicket','_cursors','registerDependencies','uni.network.url-service','length','_handleHeartbeatEvent','subunit','IMessageService','_toggleOffline','purple.300','whenReady','_checkCalculationAvailable','icon','CollaborationSessionService','#FFF','IDocClipboardService','getTypeOfUnitDisposed$','COLORS','UPDATE_CURSOR','_handleJoinEvent','enableLocalCache','_initWindowErrorListener','Disposable','[LogService\x20Error]:\x20','cursorInfo','isTransformMutationFailure','getCurrentSkeleton','override','CLOSE_ROOM','subscribe','_injector','isFormulaString','i18nKey','univer-text-xl\x20univer-transition-colors\x20univer-duration-200','isActive','_themeService','enableFrontendLog','limitInfo','bind','pushState','fromEvent','getAncestorScale','_colorAssignService','origin','stringify','from','Rectangle','_registerDependencies','setUndoRedoMutationParamsCache','_initCommandInterceptor','ICommandService','eventID','getCurrentUnitOfType','FormulaExecutedStateType','_getLighterColor','LoadingMultiIcon','_highlightSecond','univer-h-8\x20univer-w-8\x20univer-rounded-lg','_collaborationSessionService','_render','color','getColor','isEditing','docStateChange$','imageSourceType','prototype','_status$','application/json','clearInterval','switchMap','Loading','getUnitStatus$','_send','executeCommand','NO_OTHER_CLIENTS_EDITING','collaboration-client-ui.collabStatus.fetchMiss','Workbook','lineno','history','Vector2','univer-text-orange-500','status$','handleInsertRangeMoveDown','RxDisposable','_hideTimer','sheetID','decorate','getParam','addHandlerCallback','_releaseCalculationLimit','now','addObjects','useCallback','handleInsertRow','rgba','m2Prime','NodePositionConvertToRectRange','_getScale','createInstance','_scheduleHeartbeat','get','replace','CONFLICT','_cursorShapes','_colorIndex','collaboration-client-ui.collabStatus.syncing','isFormulaId','FromArray','collaboration-client-ui.permission.title','collaboration-client-ui.session.connection-failed','_hasFormulaInDirtyRanges','arc','RemoveRowCommandId','getSheetBySheetId','_showGuardMessage','ErrorCode','mergeOverrideWithDependencies','addObject','START_CALCULATION','_unitStatus','mapTo','useObservable','fillRule','1193388DpAAdQ','11809plXHFN','hide','_dataLoaderService','InsertRowCommandId','SetDocZoomRatioOperation','DeleteRangeMoveLeftCommandId','[CollaborationDataLoaderController]','MUTATION','version','SheetsSelectionsService','highlight','collaboration-client-ui.collabStatus.notCollab','tooltipKey','stage','static','_online','getAllUnitsForType','reason','selection','unshift','CollaborationUIEventId','transformRemoteChangeset','transform','_labelPosition','currentSkeleton$','collaboration-client-ui.session.collaboration-timeout','startFormulaLimitUrl','SUCCESS','_drawRectRange','Unknown\x20user','split','_initStatusListener','ONLINE','_range','CollaborationController','_init','map','SetWorksheetActivateCommand','_entities','_scheduleSaving','getRelativeToViewportCoord','_currentUsage','getUndoRedoMutationParamsCache','collabCursorState$','setItem','unit','unhandledrejection','CollaborationSocketService','DocStateChangeManagerService','syncEditingCollabCursor','_onCursorUpdate','_blinkTimer','_doCreateSocket','_eventUnsubscribe','isArray','getActiveSheet','[Window\x20Error]:\x20','combineLatest','_blinkIntervalTimer','saveOfflineData','univer-transition-all\x20univer-duration-200','RichTextEditingMutation','touchDependencies','_monkeyPatchLogService','yellow.400','result','onPointerMove$','_cursorInfo$','univer-m-0\x20univer-p-0','href','error','transformStateCache','univer-appearance-none','Shape','Plugin','BehaviorSubject','colorClass','drawWith','Failed','_onRefRangeChange','_handleEvent','location','CollaborationDataLoaderController','_heartbeatTimer','_backgroundColor','onMouseMove','rgb','_isBlinkVisible','flatMap','mutations','button','HEADER_MENU','addEventListener','strokeWidth','onCommandExecuted','_docSyncEditingCollabCursorService','_getSaveTimeout','toDisposable','name','OffLineIcon','_sheetSkeletonManagerService','Optional','DocCollaborationEntity','_scheduleClearOtherTimer','BrowserCollaborationSocketService','text','undoState','key','_commandService','height','red.300','debounceTime','_getFormulaLimitStatus','polite','_pollingInterval','RemoteUniscriptService','_hover'];_0x35dd=function(){return _0x56ddc5;};return _0x35dd();}q=T([w(0x0,(0x0,t[_0xbf25c6(0x142)])(t['Injector'])),w(0x1,(0x0,t[_0xbf25c6(0x142)])(f['HTTPService'])),w(0x2,t[_0xbf25c6(0x12f)]),w(0x3,(0x0,t[_0xbf25c6(0x142)])(e[_0xbf25c6(0x220)]))],q);function fe(_0x50d4e4){const _0xcec512=_0xbf25c6;var _0x108f4a,_0x475bee;let _0x308077=(_0x108f4a=_0x50d4e4[_0xcec512(0x168)])==null?void 0x0:_0x108f4a[_0xcec512(0x29c)],_0x1fa13c=((_0x475bee=_0x50d4e4[_0xcec512(0x168)])==null?void 0x0:_0x475bee[_0xcec512(0x136)])||0x0;return _0x308077===_[_0xcec512(0x329)][_0xcec512(0x289)]&&_0x1fa13c>0x0;}function pe(_0x46b230){const _0x2716ee=_0xbf25c6;return _0x46b230['functionsExecutedState']===_[_0x2716ee(0x248)][_0x2716ee(0x2aa)];}let J=class extends t['Disposable']{constructor(_0x535af3,_0x3c0c28,_0x2bfc8b,_0xdd8382,_0x1007ac,_0x266dea,_0x4e5eb6){const _0x1a86cb=_0xbf25c6;super(),this[_0x1a86cb(0x15f)]=_0x535af3,this[_0x1a86cb(0x2fb)]=_0x3c0c28,this['_configService']=_0x2bfc8b,this[_0x1a86cb(0xfd)]=_0xdd8382,this[_0x1a86cb(0x355)]=_0x1007ac,this['_logService']=_0x266dea,this[_0x1a86cb(0x1b0)]=_0x4e5eb6,C(this,'_pollingInterval',null),C(this,_0x1a86cb(0x30a),0x0),C(this,'_currentUsage',0x0),C(this,_0x1a86cb(0x170),[]),C(this,_0x1a86cb(0x1ba),0x0),this[_0x1a86cb(0x244)]();}[_0xbf25c6(0x244)](){const _0xd85bf2=_0xbf25c6;this[_0xd85bf2(0x154)](this['_commandService'][_0xd85bf2(0x1d2)]((_0x1cd49c,_0x37c0dd)=>{const _0x8f6235=_0xd85bf2;var _0x42bae9;if(_0x1cd49c['id']!==_['SetFormulaCalculationStartMutation']['id'])return;let _0x22da15=_0x1cd49c['params'];if(this['_hasFormulaInDirtyRanges']((_0x42bae9=_0x22da15[_0x8f6235(0x211)])==null?[]:_0x42bae9)&&!this[_0x8f6235(0x21e)]())throw this[_0x8f6235(0x20d)](_0x1cd49c,_0x37c0dd),this[_0x8f6235(0x285)](),new t[(_0x8f6235(0x1c8))]();})),this[_0xd85bf2(0x154)](this[_0xd85bf2(0x2fb)][_0xd85bf2(0x2ed)]((_0x31ed96,_0x5c3b64)=>{const _0x5af32e=_0xd85bf2;if(_0x31ed96['id']!==_[_0x5af32e(0x328)]['id'])return;let _0x3856e9=_0x31ed96['params'];if(fe(_0x3856e9)){let _0x3cf7f9=(0x0,t[_0x5af32e(0x1ef)])();this[_0x5af32e(0x170)]['push'](_0x3cf7f9),this[_0x5af32e(0x176)](_0x3cf7f9);}else{if(pe(_0x3856e9)&&this[_0x5af32e(0x170)][_0x5af32e(0x217)]>0x0){let _0x557795=this[_0x5af32e(0x170)]['shift']();this['_releaseCalculationLimit'](_0x557795);}}}));}[_0xbf25c6(0x130)](){const _0x47cf22=_0xbf25c6;super[_0x47cf22(0x130)](),this[_0x47cf22(0x10f)](),this['_taskIds']=[],this['_currentUsage']=0x0,this[_0x47cf22(0x30a)]=0x0,this[_0x47cf22(0x1ba)]=0x0;}async[_0xbf25c6(0x20d)](_0x5b92fd,_0xb030bc){const _0x35e3d9=_0xbf25c6;for(let _0x14f2d5=0x0;_0x14f2d5<0x1e;_0x14f2d5++)try{if(await this[_0x35e3d9(0x2ff)](),this[_0x35e3d9(0x21e)]()){this[_0x35e3d9(0x12c)](_0x5b92fd,_0xb030bc),this[_0x35e3d9(0x15f)][_0x35e3d9(0x31c)]({'content':this['_localeService']['t'](_0x35e3d9(0x14f)),'type':a[_0x35e3d9(0x1a9)][_0x35e3d9(0xfe)]});return;}await new Promise(_0x5406d2=>{const _0x1d01ad=_0x35e3d9;this[_0x1d01ad(0x301)]=window[_0x1d01ad(0x18f)](_0x5406d2,0x3e8);});}catch(_0x1ffa69){this['_logService'][_0x35e3d9(0x2d5)](_0x1ffa69);}this[_0x35e3d9(0x15f)][_0x35e3d9(0x31c)]({'content':this['_localeService']['t']('collaboration-client-ui.formula.calculation.unable'),'type':a[_0x35e3d9(0x1a9)][_0x35e3d9(0x1db)]});}[_0xbf25c6(0x12c)](_0x3ea6c3,_0x414655){const _0x59bcbc=_0xbf25c6;try{this[_0x59bcbc(0x2fb)][_0x59bcbc(0x25c)](_0x3ea6c3['id'],_0x3ea6c3[_0x59bcbc(0x159)],_0x414655);}catch(_0x216a41){this[_0x59bcbc(0x177)][_0x59bcbc(0x2d5)](_0x216a41);}}[_0xbf25c6(0x14a)](_0x142fb9,_0x441706){const _0x202b8b=_0xbf25c6;_0x441706<this[_0x202b8b(0x1ba)]||(this[_0x202b8b(0x1ba)]=_0x441706,this['_maxFormulaLimit']=Number['parseInt'](_0x142fb9[_0x202b8b(0x186)]),this[_0x202b8b(0x2b8)]=Number['parseInt'](_0x142fb9[_0x202b8b(0x13c)]));}async[_0xbf25c6(0x176)](_0x4da6a0){const _0x7be27e=_0xbf25c6;let _0x580654=Date[_0x7be27e(0x26d)]();try{var _0xb9abc1,_0x5515f4;let _0x873280=((_0xb9abc1=this['_configService'][_0x7be27e(0x153)](e[_0x7be27e(0x331)]))==null?void 0x0:_0xb9abc1[_0x7be27e(0x2a9)])||_0x7be27e(0x325),_0x35e7c3=(await this['_httpService']['post'](_0x873280,{'body':JSON[_0x7be27e(0x23f)]({'taskId':_0x4da6a0})}))[_0x7be27e(0x344)];if(((_0x5515f4=_0x35e7c3[_0x7be27e(0x2d5)])==null?void 0x0:_0x5515f4[_0x7be27e(0xec)])!==y[_0x7be27e(0x286)]['OK'])return;this[_0x7be27e(0x14a)](_0x35e7c3[_0x7be27e(0x238)],_0x580654);}catch(_0x524a2f){this[_0x7be27e(0x177)][_0x7be27e(0x2d5)](_0x524a2f);}}async[_0xbf25c6(0x2ff)](_0x342cb9){const _0x25a24a=_0xbf25c6;let _0x535ef8=Date[_0x25a24a(0x26d)]();try{var _0xdc8ee0,_0x217e39;let _0x32fadd=((_0xdc8ee0=this[_0x25a24a(0x1ac)]['getConfig'](e[_0x25a24a(0x331)]))==null?void 0x0:_0xdc8ee0[_0x25a24a(0x17a)])||_0x25a24a(0x120),_0x3e0963=_0x342cb9?_0x32fadd+'?taskId='+encodeURIComponent(_0x342cb9):_0x32fadd,_0x1543ac=(await this[_0x25a24a(0xfd)][_0x25a24a(0x277)](_0x3e0963))[_0x25a24a(0x344)];if(((_0x217e39=_0x1543ac[_0x25a24a(0x2d5)])==null?void 0x0:_0x217e39[_0x25a24a(0xec)])!==y[_0x25a24a(0x286)]['OK'])return;this['_setFormulaLimitStatus'](_0x1543ac[_0x25a24a(0x238)],_0x535ef8);}catch(_0x27cd10){this[_0x25a24a(0x177)]['error'](_0x27cd10);}}async[_0xbf25c6(0x26c)](_0x124662){const _0x253545=_0xbf25c6;let _0x552901=Date['now']();try{var _0x28b920,_0x1de1fb;let _0x5d3a89=((_0x28b920=this[_0x253545(0x1ac)][_0x253545(0x153)](e[_0x253545(0x331)]))==null?void 0x0:_0x28b920[_0x253545(0x1e6)])||'/universer-api/license/formula/limit/done',_0x2942a5=(await this[_0x253545(0xfd)]['post'](_0x5d3a89,{'body':JSON[_0x253545(0x23f)]({'taskId':_0x124662})}))['body'];if(((_0x1de1fb=_0x2942a5[_0x253545(0x2d5)])==null?void 0x0:_0x1de1fb[_0x253545(0xec)])!==y[_0x253545(0x286)]['OK'])return;this[_0x253545(0x14a)](_0x2942a5['limitInfo'],_0x552901);}catch(_0x2cf919){this[_0x253545(0x177)][_0x253545(0x2d5)](_0x2cf919);}}[_0xbf25c6(0x21e)](){const _0x283b79=_0xbf25c6;return this[_0x283b79(0x30a)]===0x0?!0x0:this['_maxFormulaLimit']-this[_0x283b79(0x2b8)]>0x0;}['_clearPolling'](){const _0x28a112=_0xbf25c6;this[_0x28a112(0x301)]&&(clearTimeout(this[_0x28a112(0x301)]),this[_0x28a112(0x301)]=null);}['_showGuardMessage'](){const _0x5c8cc6=_0xbf25c6;this[_0x5c8cc6(0x15f)][_0x5c8cc6(0x31c)]({'content':this[_0x5c8cc6(0x1b0)]['t'](_0x5c8cc6(0x17c)),'type':a['MessageType'][_0x5c8cc6(0x259)]});}[_0xbf25c6(0x281)](_0x27c47b){const _0x66416c=_0xbf25c6;for(let _0x1e141f of _0x27c47b){let {unitId:_0x106ad7,sheetId:_0x429a08,range:_0x509895}=_0x1e141f,_0x2a1bba=this['_univerInstanceService'][_0x66416c(0x18e)](_0x106ad7);if(!_0x2a1bba)continue;let _0x4edc61=_0x2a1bba[_0x66416c(0x284)](_0x429a08);if(!_0x4edc61)continue;let _0x8c0854=_0x4edc61[_0x66416c(0x1a5)]();for(let _0x3ed06d=_0x509895[_0x66416c(0x35e)];_0x3ed06d<=_0x509895[_0x66416c(0xfa)];_0x3ed06d++)for(let _0x1951cc=_0x509895[_0x66416c(0x1f9)];_0x1951cc<=_0x509895['endColumn'];_0x1951cc++){let _0x4f6d8c=_0x8c0854[_0x66416c(0x197)](_0x3ed06d,_0x1951cc);if(_0x4f6d8c&&((0x0,t[_0x66416c(0x232)])(_0x4f6d8c['f'])||(0x0,t[_0x66416c(0x27d)])(_0x4f6d8c['si'])))return!0x0;}}return!0x1;}};J=T([w(0x0,(0x0,t[_0xbf25c6(0x142)])(n[_0xbf25c6(0x21a)])),w(0x1,t[_0xbf25c6(0x245)]),w(0x2,t[_0xbf25c6(0x1e1)]),w(0x3,(0x0,t[_0xbf25c6(0x142)])(f[_0xbf25c6(0x30b)])),w(0x4,t['IUniverInstanceService']),w(0x5,t[_0xbf25c6(0x12f)]),w(0x6,(0x0,t[_0xbf25c6(0x142)])(t['LocaleService']))],J);let Y=class extends t['Disposable']{constructor(_0x16dddc,_0x57285e,_0x2e133d){const _0x1f91ea=_0xbf25c6;super(),this[_0x1f91ea(0x1ac)]=_0x16dddc,this['_localStorageService']=_0x57285e,this[_0x1f91ea(0x1f1)]=_0x2e133d,C(this,_0x1f91ea(0x192),new Map()),C(this,'_saveTaskMap',new Map()),C(this,'_disabled',!0x1);}[_0xbf25c6(0x178)](){this['_disabled']=!0x0;}[_0xbf25c6(0x227)](){const _0x496542=_0xbf25c6;this[_0x496542(0x305)]=!0x1;}get[_0xbf25c6(0x34a)](){const _0x5368b3=_0xbf25c6;return this[_0x5368b3(0x204)];}[_0xbf25c6(0x130)](){const _0x1de605=_0xbf25c6;this['exhaustSavingTask']()[_0x1de605(0x198)](()=>super[_0x1de605(0x130)]());}async[_0xbf25c6(0x371)](_0x1f7adc){const _0x40302d=_0xbf25c6;return this['_disabled']?null:this['_localStorageService']['getItem']((0x0,e[_0x40302d(0xde)])(_0x1f7adc));}async[_0xbf25c6(0x2ca)](_0x342d2a,_0x5abf83){const _0x49d55b=_0xbf25c6;return!!this['_localStorageService'][_0x49d55b(0x2bb)](_0x342d2a,_0x5abf83);}[_0xbf25c6(0x121)](_0x3cb7d1,_0x5b5c5e,_0x5e2b4f,_0x4a3538){const _0x3a3d57=_0xbf25c6;let _0xa79e66=this[_0x3a3d57(0x1f1)]['getCurrentRevOfUnit'](_0x3cb7d1);this[_0x3a3d57(0x192)]['set'](_0x3cb7d1,{'unitID':_0x3cb7d1,'type':_0x5b5c5e,'awaitingChangeset':_0x5e2b4f,'mutations':_0x4a3538,'rev':_0xa79e66}),this[_0x3a3d57(0x204)][_0x3a3d57(0x17f)](_0x3cb7d1)||this[_0x3a3d57(0x2b6)](_0x3cb7d1);}[_0xbf25c6(0x2b6)](_0x24fa7b){const _0x4f8ebd=_0xbf25c6;let _0x208e08=this[_0x4f8ebd(0x2ef)]();_0x208e08===0x0?this['_saveCache'](_0x24fa7b):this[_0x4f8ebd(0x204)][_0x4f8ebd(0x1fb)](_0x24fa7b,setTimeout(()=>this[_0x4f8ebd(0x31d)](_0x24fa7b),_0x208e08));}['_getSaveTimeout'](){const _0x246641=_0xbf25c6;var _0x23cb43;return(_0x23cb43=this['_configService']['getConfig'](e['LOCAL_CACHE_INTERVAL_KEY']))==null?e[_0x246641(0xd4)]:_0x23cb43;}[_0xbf25c6(0x31d)](_0x1ca945){const _0x485e1d=_0xbf25c6;let _0x379a70=this[_0x485e1d(0x204)][_0x485e1d(0x277)](_0x1ca945);return _0x379a70!==void 0x0&&window[_0x485e1d(0x36a)](_0x379a70),this[_0x485e1d(0x13e)][_0x485e1d(0x2bb)]((0x0,e[_0x485e1d(0xde)])(_0x1ca945),this[_0x485e1d(0x192)]['get'](_0x1ca945))[_0x485e1d(0x198)](()=>this['_saveTaskMap'][_0x485e1d(0x151)](_0x1ca945));}async[_0xbf25c6(0x1f8)](){const _0x48c8da=_0xbf25c6;let _0x16632e=[];this[_0x48c8da(0x204)][_0x48c8da(0x1a7)]((_0xfb39e3,_0x2e85c1)=>{const _0x187202=_0x48c8da;window[_0x187202(0x36a)](_0xfb39e3),_0x16632e[_0x187202(0x1b3)](this[_0x187202(0x31d)](_0x2e85c1)[_0x187202(0x198)](()=>{const _0x8ce965=_0x187202;this[_0x8ce965(0x204)]['delete'](_0x2e85c1);}));}),await Promise[_0x48c8da(0x127)](_0x16632e);}};Y=T([w(0x0,t[_0xbf25c6(0x1e1)]),w(0x1,t[_0xbf25c6(0x172)]),w(0x2,(0x0,t['Inject'])(h[_0xbf25c6(0x35f)]))],Y);var X=class extends t[_0xbf25c6(0x266)]{constructor(){const _0x5d99c9=_0xbf25c6;super(),C(this,_0x5d99c9(0x341),void 0x0),this[_0x5d99c9(0x341)]=(0x0,r[_0x5d99c9(0x23b)])(window,_0x5d99c9(0x199))[_0x5d99c9(0x33d)]((0x0,r[_0x5d99c9(0x1a8)])(this['dispose$']),(0x0,r[_0x5d99c9(0x10b)])({'bufferSize':0x1,'refCount':!0x0}),(0x0,r[_0x5d99c9(0x28b)])(void 0x0));}[_0xbf25c6(0x133)](_0x596d3f,_0x15a09a,_0x19033f=!0x1){const _0x3fe0c8=_0xbf25c6;let _0x3b003b=new URL(window[_0x3fe0c8(0x2e0)][_0x3fe0c8(0x2d4)]);_0x3b003b[_0x3fe0c8(0x308)][_0x3fe0c8(0x1fb)](_0x596d3f,_0x15a09a),_0x19033f?window[_0x3fe0c8(0x261)][_0x3fe0c8(0x372)]('','',_0x3b003b[_0x3fe0c8(0x147)]()):window[_0x3fe0c8(0x261)][_0x3fe0c8(0x23a)]('','',_0x3b003b[_0x3fe0c8(0x147)]());}[_0xbf25c6(0xea)](_0x30d96e,_0x16fbd0=!0x1){const _0xa9e500=_0xbf25c6;let _0x6084f9=new URL(window['location']['href']);_0x6084f9[_0xa9e500(0x308)]['delete'](_0x30d96e),_0x16fbd0?window[_0xa9e500(0x261)][_0xa9e500(0x372)]('','',_0x6084f9[_0xa9e500(0x147)]()):window['history'][_0xa9e500(0x23a)]('','',_0x6084f9[_0xa9e500(0x147)]());}[_0xbf25c6(0x26a)](_0x21f713){const _0x4b155e=_0xbf25c6;var _0x2f53d7;return(_0x2f53d7=new URL(window[_0x4b155e(0x2e0)][_0x4b155e(0x2d4)])['searchParams']['get'](_0x21f713))==null?void 0x0:_0x2f53d7;}};let Z=class extends t[_0xbf25c6(0x2d9)]{constructor(_0x3ab8f0=H,_0x1d2f96,_0x75e9c,_0x30beb5){const _0x21c602=_0xbf25c6;super(),this['_config']=_0x3ab8f0,this[_0x21c602(0x12a)]=_0x1d2f96,this[_0x21c602(0x231)]=_0x75e9c,this['_configService']=_0x30beb5;let {..._0x236cc5}=(0x0,t[_0x21c602(0x32c)])({},H,this[_0x21c602(0x181)]);this[_0x21c602(0x1ac)][_0x21c602(0x131)](_0x21c602(0xd3),_0x236cc5);}[_0xbf25c6(0x12d)](){const _0xe7dcb4=_0xbf25c6;this[_0xe7dcb4(0x242)](),this[_0xe7dcb4(0x320)]();}[_0xbf25c6(0x352)](){const _0x5c9a0c=_0xbf25c6;this[_0x5c9a0c(0x348)]();}[_0xbf25c6(0x242)](){const _0x2a31e6=_0xbf25c6;var _0x52b77e;let _0x883254=[[j],[J],[G],[U],[W],[N],[D,{'useClass':X}],[f['ISocketService'],{'useClass':f[_0x2a31e6(0x1ce)]}],[e[_0x2a31e6(0x33e)],{'useClass':Y}],[E],[K],[V],[I],[k],[O]];this[_0x2a31e6(0x181)]['enableFrontendLog']&&_0x883254[_0x2a31e6(0x1b3)]([q]),(0x0,t[_0x2a31e6(0x215)])(this['_injector'],(0x0,t[_0x2a31e6(0x287)])(_0x883254,(_0x52b77e=this[_0x2a31e6(0x181)])==null?void 0x0:_0x52b77e[_0x2a31e6(0x22e)]));}[_0xbf25c6(0x348)](){const _0x34d00a=_0xbf25c6;this['disposeWithMe'](this[_0x34d00a(0x12a)]['registerRenderModule'](t[_0x34d00a(0xd6)][_0x34d00a(0x375)],[R])),this[_0x34d00a(0x154)](this[_0x34d00a(0x12a)]['registerRenderModule'](t[_0x34d00a(0xd6)][_0x34d00a(0x18d)],[B]));}[_0xbf25c6(0x320)](){const _0x564e40=_0xbf25c6;(0x0,t[_0x564e40(0x2cd)])(this['_injector'],[[I],[E],[K],[V],[O],[J],[k]]),this[_0x564e40(0x181)][_0x564e40(0x237)]&&(0x0,t[_0x564e40(0x2cd)])(this[_0x564e40(0x231)],[[q]]);}};C(Z,'pluginName',_0xbf25c6(0x167)),C(Z,_0xbf25c6(0x32e),ie),C(Z,_0xbf25c6(0x297),ae),Z=T([(0x0,t['DependentOn'])(e[_0xbf25c6(0x36e)]),w(0x1,d[_0xbf25c6(0x1fd)]),w(0x2,(0x0,t['Inject'])(t[_0xbf25c6(0x1f5)])),w(0x3,t[_0xbf25c6(0x1e1)])],Z);let Q=class extends e[_0xbf25c6(0x2be)]{constructor(_0x132321,_0x110ce4,_0x5ea9ea,_0x5b69b6,_0x3c7fcd){super(_0x132321,_0x110ce4,_0x5ea9ea,_0x5b69b6,_0x3c7fcd);}async['createSocket'](_0x52e688){const _0x4088df=_0xbf25c6;let _0x5e7b2f=await this[_0x4088df(0x213)](),_0x36fc0d=this[_0x4088df(0x19c)](_0x52e688,_0x5e7b2f);return this[_0x4088df(0x2c3)](_0x36fc0d);}[_0xbf25c6(0x19c)](_0x555a53,_0x44f8cb){const _0x5b7ec0=_0xbf25c6;let _0x34c2cd=typeof window>'u'?new URL(_0x555a53):new URL(_0x555a53,window[_0x5b7ec0(0x2e0)][_0x5b7ec0(0x23e)]);_0x34c2cd['searchParams'][_0x5b7ec0(0x1fb)]('sessionTicket',_0x44f8cb);let _0x379861=typeof window>'u'?new URLSearchParams():new URLSearchParams(window['location'][_0x5b7ec0(0x16c)]);return _0x379861[_0x5b7ec0(0x277)](_0x5b7ec0(0x14b))&&_0x34c2cd['searchParams'][_0x5b7ec0(0x1fb)](_0x5b7ec0(0x14b),_0x379861[_0x5b7ec0(0x277)](_0x5b7ec0(0x14b))),_0x34c2cd[_0x5b7ec0(0x147)]();}async[_0xbf25c6(0x213)](){const _0x3372d3=_0xbf25c6;var _0x44117f,_0x2b336c,_0x15b27e;let _0x482989=this[_0x3372d3(0x1ac)]['getConfig'](e[_0x3372d3(0x331)]),_0x239f85=(_0x44117f=_0x482989==null?void 0x0:_0x482989[_0x3372d3(0x34c)])==null?e['DEFAULT_WS_SESSION_TICKET_URL']:_0x44117f;return(_0x2b336c=(_0x15b27e=(await this[_0x3372d3(0xfd)][_0x3372d3(0x277)](_0x239f85,{'headers':{'Content-Type':_0x3372d3(0x256)}}))[_0x3372d3(0x344)])==null?void 0x0:_0x15b27e[_0x3372d3(0x34e)])==null?'':_0x2b336c;}};Q=T([w(0x0,(0x0,t[_0xbf25c6(0x142)])(t['Injector'])),w(0x1,(0x0,t['Inject'])(f[_0xbf25c6(0x30b)])),w(0x2,t[_0xbf25c6(0x1e1)]),w(0x3,t[_0xbf25c6(0x12f)]),w(0x4,h[_0xbf25c6(0x208)])],Q);let $=class extends t[_0xbf25c6(0x229)]{constructor(_0x29cd3b,_0x32b69b,_0x19fc4d){const _0x43c779=_0xbf25c6;super(),this[_0x43c779(0x1e7)]=_0x29cd3b,this[_0x43c779(0xfd)]=_0x32b69b,this[_0x43c779(0x1ac)]=_0x19fc4d;}async['runOnServer'](_0x1fca1f,_0x3e1c9b,_0x5ecafb,..._0x570bba){const _0x483a6c=_0xbf25c6;var _0xda936f,_0x41417a,_0xf2f388,_0x300903;let _0x1d6c80=this[_0x483a6c(0x1e7)]['getFocusedUnit']();if(!_0x1d6c80)throw Error(_0x483a6c(0x138));let _0x27dff5=((_0xda936f=this[_0x483a6c(0x1ac)][_0x483a6c(0x153)](e[_0x483a6c(0x201)]))==null?e[_0x483a6c(0x1d0)]:_0xda936f)+'/'+_0x1fca1f+_0x483a6c(0x1b1)+_0x3e1c9b,_0x309f6b={'scriptId':_0x1fca1f,'runId':(_0x41417a=new URL(window[_0x483a6c(0x2e0)][_0x483a6c(0x2d4)])['searchParams'][_0x483a6c(0x277)](_0x483a6c(0x14b)))==null?'':_0x41417a,'function':_0x3e1c9b,'unitId':_0x1d6c80[_0x483a6c(0x191)](),'argsOfFunction':JSON[_0x483a6c(0x23f)](_0x570bba),'invokeId':(_0xf2f388=_0x5ecafb['invokeId'])==null?'':_0xf2f388,'executionId':(_0x300903=_0x5ecafb[_0x483a6c(0x20e)])==null?'':_0x300903};try{let _0x5a5a28=await this[_0x483a6c(0xfd)][_0x483a6c(0x1d5)](_0x27dff5,{'body':_0x309f6b});return _0x5a5a28[_0x483a6c(0x344)][_0x483a6c(0x2d5)]&&_0x5a5a28[_0x483a6c(0x344)][_0x483a6c(0x2d5)][_0x483a6c(0xec)]!==y[_0x483a6c(0x286)]['OK']?_0x483a6c(0x2dd):_0x5a5a28[_0x483a6c(0x344)][_0x483a6c(0x2d0)];}catch{return _0x483a6c(0x2dd);}}};$=T([w(0x0,t[_0xbf25c6(0x1d8)]),w(0x1,(0x0,t['Inject'])(f['HTTPService'])),w(0x2,t[_0xbf25c6(0x1e1)])],$);const me=0x7530,he=_0xbf25c6(0x1e5);var ge=class extends t['Disposable']{constructor(){const _0x116dde=_0xbf25c6;super(),C(this,'_id',(0x0,t['generateRandomId'])()),C(this,'_selfUnitIDs',new Set()),C(this,'_unitOnClients',new Map()),C(this,_0x116dde(0x2e2),null),C(this,'_clearOtherTimers',new Map()),C(this,_0x116dde(0x28a),new Map()),this[_0x116dde(0x2b2)]();}[_0xbf25c6(0x130)](){const _0x1e9ddf=_0xbf25c6;super['dispose'](),this[_0x1e9ddf(0x15b)][_0x1e9ddf(0x1a7)]((_0x7718df,_0x4a2c30)=>this[_0x1e9ddf(0x337)](_0x4a2c30)),this[_0x1e9ddf(0x2e2)]&&window[_0x1e9ddf(0x257)](this[_0x1e9ddf(0x2e2)]);}[_0xbf25c6(0x25a)](_0x33bd91){const _0x45fd87=_0xbf25c6;return this[_0x45fd87(0x316)](_0x33bd91)[_0x45fd87(0x33d)]((0x0,r[_0x45fd87(0x184)])());}['editingUnit'](_0x5b8952){const _0x49f49d=_0xbf25c6;this['_selfUnitIDs'][_0x49f49d(0x162)]===0x0&&this[_0x49f49d(0x276)](),this[_0x49f49d(0x379)][_0x49f49d(0x1ab)](_0x5b8952),this['_send']({'type':0x0,'memberID':this[_0x49f49d(0x1bc)],'unitIDs':[_0x5b8952],'isForwarded':!0x1});}[_0xbf25c6(0x15c)](_0x5a1b70){const _0x262aae=_0xbf25c6;this['_selfUnitIDs'][_0x262aae(0x151)](_0x5a1b70),this[_0x262aae(0x379)]['size']===0x0&&this[_0x262aae(0x2e2)]&&window[_0x262aae(0x257)](this[_0x262aae(0x2e2)]);}[_0xbf25c6(0x2b2)](){const _0x318689=_0xbf25c6;this[_0x318689(0x154)]((0x0,t[_0x318689(0x2f0)])((0x0,r['fromEvent'])(window,_0x318689(0x1b2))[_0x318689(0x230)](_0x4276e8=>{const _0xea288e=_0x318689;if(_0x4276e8[_0xea288e(0x2fa)]!==he||!_0x4276e8[_0xea288e(0x33b)])return;let _0x460aa1=JSON[_0xea288e(0xdd)](_0x4276e8[_0xea288e(0x33b)]);this['_handleEvent'](_0x460aa1);}))),window[_0x318689(0x2eb)](_0x318689(0x36b),()=>this[_0x318689(0x25b)]({'type':0x1,'memberID':this[_0x318689(0x1bc)],'unitIDs':Array[_0x318689(0x240)](this['_selfUnitIDs'])}));}[_0xbf25c6(0x2df)](_0x4cb941){const _0x54c8d5=_0xbf25c6;switch(_0x4cb941[_0x54c8d5(0x1ae)]){case 0x0:this[_0x54c8d5(0x226)](_0x4cb941);break;case 0x1:this[_0x54c8d5(0x31f)](_0x4cb941);break;case 0x2:this['_handleHeartbeatEvent'](_0x4cb941);break;}}[_0xbf25c6(0x226)](_0x12eaea){const _0x5abf58=_0xbf25c6;let {unitIDs:_0x508be8,memberID:_0x27d5a9,isForwarded:_0xa65191}=_0x12eaea;_0x508be8[_0x5abf58(0x1a7)](_0x45e92f=>{const _0x2c19e1=_0x5abf58;if(!_0xa65191&&this[_0x2c19e1(0x357)][_0x2c19e1(0x17f)](_0x45e92f)&&this['_ensureSubject'](_0x45e92f)['next'](e[_0x2c19e1(0x1b4)][_0x2c19e1(0x1c1)]),!this['_unitOnClients']['has'](_0x45e92f)||!this[_0x2c19e1(0x357)][_0x2c19e1(0x277)](_0x45e92f)[_0x2c19e1(0x17f)](_0x27d5a9)){let _0x64b5d=this[_0x2c19e1(0x357)][_0x2c19e1(0x277)](_0x45e92f)||new Set();_0x64b5d[_0x2c19e1(0x1ab)](_0x27d5a9),this['_unitOnClients'][_0x2c19e1(0x1fb)](_0x45e92f,_0x64b5d),this[_0x2c19e1(0x2f6)](_0x27d5a9);}}),_0xa65191||this['_send']({'type':0x0,'memberID':this['_id'],'unitIDs':[...this[_0x5abf58(0x379)]],'isForwarded':!0x0});}[_0xbf25c6(0x2f6)](_0x56d64f){const _0x4787d0=_0xbf25c6;this[_0x4787d0(0x337)](_0x56d64f);let _0x1d5bd5=window[_0x4787d0(0x18f)](()=>{const _0x3fb0c6=_0x4787d0;this[_0x3fb0c6(0x357)][_0x3fb0c6(0x1a7)](_0x4e374d=>{const _0x21f335=_0x3fb0c6;_0x4e374d[_0x21f335(0x151)](_0x56d64f);});},me*0x2);this['_clearOtherTimers'][_0x4787d0(0x1fb)](_0x56d64f,_0x1d5bd5);}[_0xbf25c6(0x337)](_0x4513f5){const _0x4c07ac=_0xbf25c6;if(this[_0x4c07ac(0x15b)]['has'](_0x4513f5)){let _0x312b88=this[_0x4c07ac(0x15b)][_0x4c07ac(0x277)](_0x4513f5);_0x312b88&&window[_0x4c07ac(0x36a)](_0x312b88),this[_0x4c07ac(0x15b)][_0x4c07ac(0x1fb)](_0x4513f5,null);}}[_0xbf25c6(0x31f)](_0x239921){const _0x4df2b6=_0xbf25c6;let {memberID:_0x102c36,unitIDs:_0x45937d}=_0x239921;_0x45937d[_0x4df2b6(0x1a7)](_0x561e20=>{const _0x505654=_0x4df2b6;var _0x4b22d0;let _0x3ff008=this['_unitOnClients'][_0x505654(0x277)](_0x561e20);_0x3ff008&&(_0x3ff008[_0x505654(0x151)](_0x102c36),(_0x4b22d0=this['_ensureSubject'](_0x561e20))==null||_0x4b22d0[_0x505654(0x1e2)](_0x3ff008[_0x505654(0x162)]===0x0?e[_0x505654(0x1b4)]['NO_OTHER_CLIENTS_EDITING']:e[_0x505654(0x1b4)][_0x505654(0x1c1)]));}),this[_0x4df2b6(0x337)](_0x102c36);}[_0xbf25c6(0x218)](_0x45f6fa){const _0x1321a0=_0xbf25c6;this[_0x1321a0(0x2f6)](_0x45f6fa['memberID']);}[_0xbf25c6(0x25b)](_0x57c68b){const _0x13e395=_0xbf25c6;localStorage[_0x13e395(0x2bb)](he,JSON[_0x13e395(0x23f)](_0x57c68b));}['_scheduleHeartbeat'](){const _0x19543b=_0xbf25c6;this[_0x19543b(0x2e2)]=window[_0x19543b(0xe6)](()=>{const _0x158d58=_0x19543b;this[_0x158d58(0x25b)]({'type':0x2,'memberID':this[_0x158d58(0x1bc)]});},me);}[_0xbf25c6(0x316)](_0x55f710){const _0x44c825=_0xbf25c6;return this[_0x44c825(0x28a)]['has'](_0x55f710)||this[_0x44c825(0x28a)]['set'](_0x55f710,new r[(_0x44c825(0x2da))](e[_0x44c825(0x1b4)][_0x44c825(0x25d)])),this[_0x44c825(0x28a)]['get'](_0x55f710);}};Object['defineProperty'](exports,_0xbf25c6(0x2f7),{'enumerable':!0x0,'get':function(){return Q;}}),Object[_0xbf25c6(0x35a)](exports,_0xbf25c6(0x2e1),{'enumerable':!0x0,'get':function(){return O;}}),Object[_0xbf25c6(0x35a)](exports,'DesktopCollaborationStatusDisplayController',{'enumerable':!0x0,'get':function(){return E;}}),exports['IURLService']=D,Object[_0xbf25c6(0x35a)](exports,_0xbf25c6(0x302),{'enumerable':!0x0,'get':function(){return $;}}),exports[_0xbf25c6(0x1f4)]=z,Object[_0xbf25c6(0x35a)](exports,_0xbf25c6(0x205),{'enumerable':!0x0,'get':function(){return Z;}}),exports[_0xbf25c6(0x210)]=ge,exports[_0xbf25c6(0xe9)]=X;
|
|
1
|
+
const _0x36642d=_0x1d7e;(function(_0x4e4ccf,_0x356a9b){const _0x385d2c=_0x1d7e,_0x19a395=_0x4e4ccf();while(!![]){try{const _0x4d3d40=parseInt(_0x385d2c(0x351))/0x1+-parseInt(_0x385d2c(0x233))/0x2+-parseInt(_0x385d2c(0x353))/0x3*(parseInt(_0x385d2c(0x278))/0x4)+parseInt(_0x385d2c(0x2b0))/0x5+-parseInt(_0x385d2c(0x94))/0x6*(parseInt(_0x385d2c(0x1c9))/0x7)+-parseInt(_0x385d2c(0x304))/0x8+-parseInt(_0x385d2c(0x155))/0x9*(-parseInt(_0x385d2c(0x217))/0xa);if(_0x4d3d40===_0x356a9b)break;else _0x19a395['push'](_0x19a395['shift']());}catch(_0x54ffea){_0x19a395['push'](_0x19a395['shift']());}}}(_0x5261,0x4f7f2),Object['defineProperty'](exports,Symbol[_0x36642d(0x218)],{'value':_0x36642d(0x1d0)}));let e=require('@univerjs-pro/collaboration-client'),t=require('@univerjs/core'),n=require('@univerjs/ui'),r=require('rxjs'),i=require('rxjs/operators'),a=require('@univerjs/design'),o=require('@univerjs/icons'),s=require('react'),c=require('react/jsx-runtime'),l=require('@univerjs/rpc'),u=require('@univerjs/sheets'),d=require('@univerjs/engine-render'),f=require('@univerjs/network'),p=require('@univerjs/docs-ui'),m=require('@univerjs/drawing'),h=require('@univerjs-pro/collaboration'),g=require('@univerjs/docs'),_=require('@univerjs/engine-formula'),v=require('@univerjs-pro/slides-ui'),y=require('@univerjs/sheets-ui'),b=require('@univerjs/protocol');function ee(_0xe016ae){const _0x4f0c0f=_0x36642d;switch(_0xe016ae){case e['CollaborationStatus'][_0x4f0c0f(0x2c9)]:return{'icon':(0x0,c[_0x4f0c0f(0xf4)])(o[_0x4f0c0f(0xb8)],{}),'colorClass':_0x4f0c0f(0x1b0),'i18nKey':_0x4f0c0f(0xf2),'tooltipKey':'collaboration-client-ui.collabClient.tooltip.reconnect','clickable':!0x0,'indicator':_0x4f0c0f(0x22b)};case e[_0x4f0c0f(0x1a1)][_0x4f0c0f(0x1d4)]:return{'icon':(0x0,c[_0x4f0c0f(0xf4)])(o[_0x4f0c0f(0xb8)],{}),'colorClass':_0x4f0c0f(0x32a),'i18nKey':'collaboration-client-ui.collabStatus.conflict','clickable':!0x1,'indicator':_0x4f0c0f(0x22b)};case e['CollaborationStatus'][_0x4f0c0f(0x207)]:return{'icon':(0x0,c['jsx'])(o[_0x4f0c0f(0x95)],{}),'colorClass':_0x4f0c0f(0x23f),'i18nKey':_0x4f0c0f(0x125),'clickable':!0x1,'indicator':_0x4f0c0f(0x28d)};case e['CollaborationStatus'][_0x4f0c0f(0x322)]:return{'icon':(0x0,c[_0x4f0c0f(0xf4)])(o['OnLineIcon'],{}),'colorClass':_0x4f0c0f(0x235),'i18nKey':'collaboration-client-ui.collabStatus.notCollab','clickable':!0x1,'indicator':_0x4f0c0f(0x22b)};case e[_0x4f0c0f(0x1a1)][_0x4f0c0f(0x1a8)]:case e['CollaborationStatus'][_0x4f0c0f(0xbb)]:return{'icon':(0x0,c['jsx'])(o[_0x4f0c0f(0x95)],{}),'colorClass':'univer-text-blue-500','i18nKey':_0x4f0c0f(0x91),'clickable':!0x1,'indicator':_0x4f0c0f(0x28d)};case e[_0x4f0c0f(0x1a1)][_0x4f0c0f(0x1f4)]:return{'icon':(0x0,c[_0x4f0c0f(0xf4)])(o[_0x4f0c0f(0x95)],{}),'colorClass':_0x4f0c0f(0x23f),'i18nKey':_0x4f0c0f(0x91),'clickable':!0x1,'indicator':_0x4f0c0f(0x28d)};case e[_0x4f0c0f(0x1a1)][_0x4f0c0f(0x258)]:return{'icon':(0x0,c[_0x4f0c0f(0xf4)])(o[_0x4f0c0f(0xc9)],{}),'colorClass':'univer-text-green-500','i18nKey':_0x4f0c0f(0xc3),'clickable':!0x1,'indicator':_0x4f0c0f(0x22b)};}}function te(_0x30bef1){const _0x229b39=_0x36642d;let {status$:_0x57b626}=_0x30bef1,_0x10cd16=(0x0,n[_0x229b39(0x11d)])(_0x57b626,e[_0x229b39(0x1a1)][_0x229b39(0x322)]),_0x4590ff=(0x0,n[_0x229b39(0x323)])(t['LocaleService']),_0x56c2cd=(0x0,n['useDependency'])(e['CollaborationSessionService']),_0x5add4d=(0x0,s[_0x229b39(0xb7)])(()=>ee(_0x10cd16),[_0x10cd16]),_0x128fed=_0x10cd16!==e['CollaborationStatus'][_0x229b39(0x2c9)],_0x115a1c=_0x4590ff['t'](_0x5add4d[_0x229b39(0x26f)]),_0x3b0b50=_0x5add4d[_0x229b39(0x2c6)]?_0x4590ff['t'](_0x5add4d['tooltipKey']):_0x115a1c,_0x3e7ed7=(0x0,s[_0x229b39(0x16c)])(()=>{const _0x144645=_0x229b39;_0x128fed||_0x56c2cd[_0x144645(0x254)]();},[_0x128fed,_0x56c2cd]),_0x237c91=(0x0,s[_0x229b39(0x16c)])(_0x5b7c27=>{const _0x3efbbf=_0x229b39;!_0x128fed&&(_0x5b7c27[_0x3efbbf(0xa3)]==='Enter'||_0x5b7c27[_0x3efbbf(0xa3)]==='\x20')&&(_0x5b7c27[_0x3efbbf(0xe2)](),_0x56c2cd[_0x3efbbf(0x254)]());},[_0x128fed,_0x56c2cd]),_0x3ee56f=(0x0,c[_0x229b39(0xf4)])(_0x229b39(0x2a1),{'className':(0x0,a[_0x229b39(0x2ac)])(_0x229b39(0x144),_0x229b39(0x33f),_0x5add4d['colorClass'],{'univer-animate-spin':_0x5add4d['indicator']===_0x229b39(0x28d),'univer-animate-pulse':_0x5add4d[_0x229b39(0x2bc)]===_0x229b39(0x9e)}),'aria-hidden':'true','children':_0x5add4d[_0x229b39(0x9c)]}),_0x165b08=(0x0,c['jsx'])(_0x229b39(0x2a1),{'className':(0x0,a[_0x229b39(0x2ac)])(_0x229b39(0x144),_0x229b39(0x1d7),_0x229b39(0x227),'focus:univer-outline-none\x20focus:univer-ring-2\x20focus:univer-ring-primary-500\x20focus:univer-ring-offset-2','dark:focus:!univer-ring-offset-gray-800',{'univer-cursor-pointer\x20hover:univer-bg-gray-100\x20dark:hover:!univer-bg-gray-700':_0x5add4d[_0x229b39(0x288)],'univer-cursor-default':!_0x5add4d[_0x229b39(0x288)]}),'children':_0x3ee56f});return _0x5add4d[_0x229b39(0x288)]?(0x0,c['jsx'])(a['Tooltip'],{'title':_0x3b0b50,'placement':_0x229b39(0x148),'children':(0x0,c[_0x229b39(0xf4)])('button',{'type':_0x229b39(0xd8),'onClick':_0x3e7ed7,'onKeyDown':_0x237c91,'className':(0x0,a[_0x229b39(0x2ac)])(_0x229b39(0x1e0),_0x229b39(0x341),_0x229b39(0x210),_0x229b39(0xe5)),'aria-label':_0x115a1c+'\x20-\x20'+_0x3b0b50,'role':'status','aria-live':_0x229b39(0x259),'aria-atomic':'true','children':_0x165b08})}):(0x0,c[_0x229b39(0xf4)])(a[_0x229b39(0x334)],{'title':_0x3b0b50,'placement':_0x229b39(0x148),'children':(0x0,c[_0x229b39(0xf4)])(_0x229b39(0x11e),{'className':(0x0,a[_0x229b39(0x2ac)])(_0x229b39(0x1e0),_0x229b39(0x341),_0x229b39(0x210)),'aria-label':_0x115a1c,'role':_0x229b39(0x213),'aria-live':_0x229b39(0x259),'aria-atomic':_0x229b39(0x202),'children':_0x165b08})});}function x(_0x230083){'@babel/helpers - typeof';const _0x2cd3f1=_0x36642d;return x=typeof Symbol==_0x2cd3f1(0x296)&&typeof Symbol[_0x2cd3f1(0x199)]==_0x2cd3f1(0x1f7)?function(_0x5f27aa){return typeof _0x5f27aa;}:function(_0x2d0a33){const _0x166050=_0x2cd3f1;return _0x2d0a33&&typeof Symbol==_0x166050(0x296)&&_0x2d0a33[_0x166050(0x118)]===Symbol&&_0x2d0a33!==Symbol[_0x166050(0x17e)]?'symbol':typeof _0x2d0a33;},x(_0x230083);}function _0x1d7e(_0x5117ae,_0x5af484){_0x5117ae=_0x5117ae-0x8b;const _0x526197=_0x5261();let _0x1d7e47=_0x526197[_0x5117ae];return _0x1d7e47;}function ne(_0x23f13a,_0xaf9c72){const _0x34f6a1=_0x36642d;if(x(_0x23f13a)!=_0x34f6a1(0x18d)||!_0x23f13a)return _0x23f13a;var _0x41efb7=_0x23f13a[Symbol[_0x34f6a1(0x19b)]];if(_0x41efb7!==void 0x0){var _0x153bf6=_0x41efb7[_0x34f6a1(0x109)](_0x23f13a,_0xaf9c72||'default');if(x(_0x153bf6)!='object')return _0x153bf6;throw TypeError(_0x34f6a1(0x236));}return(_0xaf9c72===_0x34f6a1(0x267)?String:Number)(_0x23f13a);}function re(_0x3cfa59){const _0x1cfa9c=_0x36642d;var _0xbff07a=ne(_0x3cfa59,_0x1cfa9c(0x267));return x(_0xbff07a)==_0x1cfa9c(0x1f7)?_0xbff07a:_0xbff07a+'';}function S(_0x523238,_0x4a8513,_0xf3da81){const _0x18b517=_0x36642d;return(_0x4a8513=re(_0x4a8513))in _0x523238?Object[_0x18b517(0x147)](_0x523238,_0x4a8513,{'value':_0xf3da81,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x523238[_0x4a8513]=_0xf3da81,_0x523238;}function C(_0xcfe66a,_0xc40a85){return function(_0x3fa039,_0x568b82){_0xc40a85(_0x3fa039,_0x568b82,_0xcfe66a);};}function w(_0x2e514e,_0x5ee562,_0x466c04,_0x45dbe6){const _0x4bca4b=_0x36642d;var _0x9e9ce=arguments[_0x4bca4b(0xad)],_0x73dad8=_0x9e9ce<0x3?_0x5ee562:_0x45dbe6===null?_0x45dbe6=Object[_0x4bca4b(0x90)](_0x5ee562,_0x466c04):_0x45dbe6,_0x3e582a;if(typeof Reflect==_0x4bca4b(0x18d)&&typeof Reflect[_0x4bca4b(0x32f)]=='function')_0x73dad8=Reflect[_0x4bca4b(0x32f)](_0x2e514e,_0x5ee562,_0x466c04,_0x45dbe6);else{for(var _0x48d9db=_0x2e514e[_0x4bca4b(0xad)]-0x1;_0x48d9db>=0x0;_0x48d9db--)(_0x3e582a=_0x2e514e[_0x48d9db])&&(_0x73dad8=(_0x9e9ce<0x3?_0x3e582a(_0x73dad8):_0x9e9ce>0x3?_0x3e582a(_0x5ee562,_0x466c04,_0x73dad8):_0x3e582a(_0x5ee562,_0x466c04))||_0x73dad8);}return _0x9e9ce>0x3&&_0x73dad8&&Object[_0x4bca4b(0x147)](_0x5ee562,_0x466c04,_0x73dad8),_0x73dad8;}let T=class extends t[_0x36642d(0x1ad)]{constructor(_0x4c4c97,_0x44198c,_0x4c881b,_0x46550d){const _0x269d6a=_0x36642d;super(),this[_0x269d6a(0x1b6)]=_0x4c4c97,this[_0x269d6a(0x193)]=_0x44198c,this[_0x269d6a(0x220)]=_0x4c881b,this[_0x269d6a(0x339)]=_0x46550d,S(this,_0x269d6a(0x116),new r[(_0x269d6a(0x2b7))](e[_0x269d6a(0x1a1)][_0x269d6a(0x322)])),this[_0x269d6a(0x347)](),this[_0x269d6a(0x1cd)]();}[_0x36642d(0x1cd)](){const _0x11759e=_0x36642d;this[_0x11759e(0x291)]((0x0,r[_0x11759e(0x1cc)])(this[_0x11759e(0x1b6)][_0x11759e(0x21d)],this[_0x11759e(0x1b6)][_0x11759e(0x2e3)](t['UniverInstanceType'][_0x11759e(0x13c)]),this[_0x11759e(0x1b6)][_0x11759e(0x2e3)](t[_0x11759e(0x12a)][_0x11759e(0x2c3)]))[_0x11759e(0x160)]((0x0,i[_0x11759e(0x102)])(()=>ie(this[_0x11759e(0x1b6)])),(0x0,i[_0x11759e(0x2c2)])(),(0x0,r[_0x11759e(0x246)])(_0x129d61=>_0x129d61?this[_0x11759e(0x220)][_0x11759e(0x22c)](_0x129d61):(0x0,r['of'])(null)),(0x0,r[_0x11759e(0x246)])(_0x3fcb46=>_0x3fcb46?_0x3fcb46[_0x11759e(0x1ed)]:(0x0,r['of'])(e[_0x11759e(0x1a1)][_0x11759e(0x322)])))['subscribe'](_0x4e0583=>{this['_status$']['next'](_0x4e0583);}));}[_0x36642d(0x347)](){const _0x2ec72f=_0x36642d;this['disposeWithMe'](this[_0x2ec72f(0x339)][_0x2ec72f(0x266)](n[_0x2ec72f(0x2e5)][_0x2ec72f(0x15a)],()=>(0x0,n[_0x2ec72f(0x230)])(ae({'status$':this['_status$'][_0x2ec72f(0x1d3)]()}),this[_0x2ec72f(0x193)])));}};T=w([C(0x0,t[_0x36642d(0x1c6)]),C(0x1,(0x0,t[_0x36642d(0x26a)])(t[_0x36642d(0x140)])),C(0x2,(0x0,t[_0x36642d(0x26a)])(e[_0x36642d(0x1d5)])),C(0x3,n[_0x36642d(0x12c)])],T);function ie(_0x54c349){const _0x391d23=_0x36642d;let _0x4edb8d=_0x54c349[_0x391d23(0x2f7)](),_0x3c23aa=_0x4edb8d==null?void 0x0:_0x4edb8d[_0x391d23(0x269)]();if(_0x3c23aa&&!(0x0,t[_0x391d23(0x168)])(_0x3c23aa))return _0x3c23aa;let _0xdcb6b3=_0x54c349['getCurrentUnitOfType'](t[_0x391d23(0x12a)][_0x391d23(0x13c)]),_0x4db721=_0xdcb6b3==null?void 0x0:_0xdcb6b3[_0x391d23(0x269)]();if(_0x4db721&&!(0x0,t[_0x391d23(0x168)])(_0x4db721))return _0x4db721;let _0x4aba73=_0x54c349[_0x391d23(0x314)](t[_0x391d23(0x12a)][_0x391d23(0x2c3)]);if(_0x4aba73)return _0x4aba73[_0x391d23(0x269)]();let _0x1d39e5=_0x54c349[_0x391d23(0x1f3)](t[_0x391d23(0x12a)][_0x391d23(0x13c)])[_0x391d23(0x2df)](_0x207e87=>!(0x0,t['isInternalEditorID'])(_0x207e87['getUnitId']()));return _0x1d39e5?_0x1d39e5[_0x391d23(0x269)]():null;}function ae(_0xe70e8c){let {status$:_0x5add80}=_0xe70e8c;return function(){const _0x4b5a64=_0x1d7e;return(0x0,c[_0x4b5a64(0xf4)])(te,{'status$':_0x5add80});};}const E=(0x0,t[_0x36642d(0x18c)])(_0x36642d(0x158));let D=class extends t['RxDisposable']{constructor(_0x2edbf7,_0x1ef217,_0x58c52e,_0x53e590,_0x13216c){const _0x209437=_0x36642d;super(),this['_urlService']=_0x2edbf7,this['_logService']=_0x1ef217,this[_0x209437(0x34c)]=_0x58c52e,this['_dataLoaderService']=_0x53e590,_0x13216c?_0x13216c==null||_0x13216c['whenReady']()[_0x209437(0x243)](()=>this['_init']()):(this['_logService']['debug'](_0x209437(0x1d9),_0x209437(0x1da)),this[_0x209437(0x295)]());}async['_init'](){const _0x51a89d=_0x36642d;let _0x86fbde=this[_0x51a89d(0x138)][_0x51a89d(0x104)](_0x51a89d(0x2ba)),_0x2db94f=this[_0x51a89d(0x138)]['getParam']('type'),_0x2204e5=this[_0x51a89d(0x138)][_0x51a89d(0x104)]('subunit');if(!_0x86fbde||!_0x2db94f){this[_0x51a89d(0x30e)][_0x51a89d(0x26e)](_0x51a89d(0x1d9),_0x51a89d(0x1fe));return;}let _0x2a1ad5=await this[_0x51a89d(0x16e)][_0x51a89d(0x175)](_0x86fbde,Number(_0x2db94f),_0x2204e5);_0x2a1ad5&&_0x2a1ad5 instanceof t['Workbook']&&this[_0x51a89d(0x2ab)](_0x2a1ad5);}async[_0x36642d(0x2ab)](_0x42f4a9){const _0x5af1be=_0x36642d;await this[_0x5af1be(0x2ff)](_0x42f4a9),_0x42f4a9['activeSheet$'][_0x5af1be(0x160)]((0x0,r[_0x5af1be(0x2b1)])(this[_0x5af1be(0x17f)]))[_0x5af1be(0x238)](_0x33bae2=>{const _0x369cea=_0x5af1be;_0x33bae2&&this[_0x369cea(0x205)](_0x33bae2);}),this[_0x5af1be(0x138)][_0x5af1be(0xd0)][_0x5af1be(0x160)]((0x0,r[_0x5af1be(0x2b1)])(this[_0x5af1be(0x17f)]))['subscribe'](()=>this[_0x5af1be(0x2ff)](_0x42f4a9));}[_0x36642d(0x205)](_0x5d8627,_0x221e5f=!0x1){const _0xc5d807=_0x36642d;let _0x2fa490=this[_0xc5d807(0x138)][_0xc5d807(0x104)](_0xc5d807(0x28c));_0x5d8627['getSheetId']()!==_0x2fa490&&this['_urlService'][_0xc5d807(0x1f1)](_0xc5d807(0x28c),_0x5d8627[_0xc5d807(0x19f)](),_0x221e5f);}async[_0x36642d(0x2ff)](_0x587980){const _0x30f9ba=_0x36642d;var _0x19570f;let _0x239b2f=this[_0x30f9ba(0x138)][_0x30f9ba(0x104)](_0x30f9ba(0x28c));if(!_0x239b2f||!_0x587980[_0x30f9ba(0x1e4)](_0x239b2f)){let _0xb8547e=_0x587980[_0x30f9ba(0x34f)]()[0x0],_0x5f4999=_0x587980[_0x30f9ba(0x1e4)](_0xb8547e);if(!_0x5f4999)return;this[_0x30f9ba(0x205)](_0x5f4999,!0x0),await this[_0x30f9ba(0x34c)][_0x30f9ba(0x221)](u[_0x30f9ba(0x15d)]['id'],{'unitId':_0x587980['getUnitId'](),'subUnitId':_0xb8547e});return;}((_0x19570f=_0x587980[_0x30f9ba(0x142)]())==null?void 0x0:_0x19570f['getSheetId']())!==_0x239b2f&&await this[_0x30f9ba(0x34c)][_0x30f9ba(0x221)](u[_0x30f9ba(0x15d)]['id'],{'unitId':_0x587980[_0x30f9ba(0x269)](),'subUnitId':_0x239b2f});}};D=w([C(0x0,E),C(0x1,t[_0x36642d(0x32b)]),C(0x2,t[_0x36642d(0x333)]),C(0x3,(0x0,t[_0x36642d(0x26a)])(e[_0x36642d(0x2ed)])),C(0x4,(0x0,t[_0x36642d(0x1fc)])(l['IRemoteInstanceService']))],D);var oe=_0x36642d(0x157),se=_0x36642d(0xeb);const ce={};let O=class extends t[_0x36642d(0xe6)]{constructor(_0x31a605,_0x21a06c){const _0x1a978e=_0x36642d;super(),this[_0x1a978e(0x92)]=_0x31a605,this[_0x1a978e(0x105)]=_0x21a06c,this['_init']();}[_0x36642d(0x295)](){const _0x9bd86b=_0x36642d;let _0x2f58bb=this;this[_0x9bd86b(0x291)](this[_0x9bd86b(0x92)][_0x9bd86b(0x2eb)]({'onBeforePasteImage':async _0x51f61c=>{const _0x2701aa=_0x9bd86b;let _0x4fbb1d=await _0x2f58bb[_0x2701aa(0x105)]['saveImage'](_0x51f61c);return _0x4fbb1d?{'source':_0x4fbb1d[_0x2701aa(0x2d0)],'imageSourceType':_0x4fbb1d['imageSourceType']}:null;}}));}};O=w([C(0x0,p[_0x36642d(0x20a)]),C(0x1,m[_0x36642d(0x1ef)])],O);const le=['purple.300','jiqing.500',_0x36642d(0x2fe),'red.300',_0x36642d(0x1a6),_0x36642d(0x13e)];var k=class extends t[_0x36642d(0x1ad)]{constructor(..._0x52361e){super(..._0x52361e),S(this,'_assignedColors',new Map()),S(this,'_colorIndex',0x0);}[_0x36642d(0xf1)](_0x5b9555){const _0x1ee0e3=_0x36642d;if(this[_0x1ee0e3(0x185)][_0x1ee0e3(0x302)](_0x5b9555))return this[_0x1ee0e3(0x185)][_0x1ee0e3(0x1e6)](_0x5b9555);let _0x30fc2b=le[this['_colorIndex']];return this['_colorIndex']=(this[_0x1ee0e3(0xe7)]+0x1)%le['length'],this[_0x1ee0e3(0x185)][_0x1ee0e3(0x352)](_0x5b9555,_0x30fc2b),_0x30fc2b;}};function ue(_0x46d7b7){let _0x1892de='';for(let _0x345e2e of _0x46d7b7){let {startOffset:_0x2985a2,endOffset:_0x5f3530,isActive:_0x5d19ee,rangeType:_0x3b5558,segmentId:_0x4d0bde,segmentPage:_0xe4934}=_0x345e2e;_0x1892de['length']&&(_0x1892de+=','),_0x1892de+=_0x2985a2+':'+_0x5f3530+':'+(_0x5d19ee?'1':'0')+':'+_0x3b5558+':'+_0x4d0bde+':'+_0xe4934;}return _0x1892de;}function de(_0x332ab0){const _0x2c0554=_0x36642d;let _0x54284c=_0x332ab0[_0x2c0554(0xbd)](','),_0x30dc01=[];for(let _0x293a36 of _0x54284c){let [_0x21ea12,_0x389ca3,_0x101225,_0x3c6751,_0x4e0f78,_0x4bd65e]=_0x293a36[_0x2c0554(0xbd)](':');_0x30dc01[_0x2c0554(0x348)]({'startOffset':Number(_0x21ea12),'endOffset':Number(_0x389ca3),'collapsed':_0x21ea12===_0x389ca3,'isActive':_0x101225==='1','rangeType':_0x3c6751===t[_0x2c0554(0x299)]['TEXT']?t[_0x2c0554(0x299)][_0x2c0554(0x2d7)]:t[_0x2c0554(0x299)][_0x2c0554(0x2dc)],'segmentId':typeof _0x4e0f78=='string'?String(_0x4e0f78):'','segmentPage':Number(_0x4bd65e==null?-0x1:_0x4bd65e)});}return _0x30dc01[_0x2c0554(0x270)](_0xdc14b6=>_0xdc14b6[_0x2c0554(0x13f)])||(_0x30dc01[0x0][_0x2c0554(0x13f)]=!0x0),_0x30dc01;}var A=class extends t[_0x36642d(0xe6)]{constructor(..._0x3dd06b){const _0x1a26ca=_0x36642d;super(..._0x3dd06b),S(this,'_collabCursorState$',new r[(_0x1a26ca(0x2b7))](null)),S(this,_0x1a26ca(0x163),this['_collabCursorState$'][_0x1a26ca(0x1d3)]());}[_0x36642d(0x10f)](_0x12848d){const _0xf52cf=_0x36642d;let {unitID:_0x520025,memberID:_0x3e3d95,textRanges:_0x350227}=_0x12848d,_0x2b0c2f=ue(_0x350227);if(_0x2b0c2f==='')return;let _0xf2bb4c={'unitID':_0x520025,'memberID':_0x3e3d95,'selection':_0x2b0c2f};this['_collabCursorState$'][_0xf52cf(0x1a0)](_0xf2bb4c);}};let j=class extends t[_0x36642d(0xe6)]{get[_0x36642d(0x23b)](){const _0x21a7ba=_0x36642d;return this[_0x21a7ba(0x237)][_0x21a7ba(0xc8)]();}get[_0x36642d(0x139)](){return this['_roomMembers$']['getValue']();}constructor(_0xa17a81,_0x41d32c,_0x4c4b2d,_0x18e842,_0x2b5618,_0x16c200,_0x9c9ab0,_0x355eeb,_0x2bd3e1){const _0x484b42=_0x36642d;super(),this[_0x484b42(0xe0)]=_0xa17a81,this[_0x484b42(0x307)]=_0x41d32c,this[_0x484b42(0x193)]=_0x4c4b2d,this['_colorAssignService']=_0x18e842,this[_0x484b42(0x1c4)]=_0x2b5618,this[_0x484b42(0x1dc)]=_0x16c200,this[_0x484b42(0x119)]=_0x9c9ab0,this[_0x484b42(0x1b6)]=_0x355eeb,this[_0x484b42(0x34c)]=_0x2bd3e1,S(this,'_online',!0x1),S(this,'_init',!0x1),S(this,_0x484b42(0x237),new r[(_0x484b42(0x2b7))](new Map())),S(this,_0x484b42(0x329),this[_0x484b42(0x237)][_0x484b42(0x1d3)]()),S(this,_0x484b42(0x1b9),new r[(_0x484b42(0x2b7))]([])),S(this,_0x484b42(0x10d),this[_0x484b42(0x1b9)]['pipe']((0x0,r[_0x484b42(0x115)])(0x12c))),S(this,_0x484b42(0x1ec),(0x0,t[_0x484b42(0x135)])(_0x3b3c20=>{const _0x2aab05=_0x484b42;let _0x343a96={'eventID':h[_0x2aab05(0x2cc)][_0x2aab05(0x198)],'data':{'unitID':this['unitID'],'memberID':this[_0x2aab05(0x307)][_0x2aab05(0x219)](),'selection':ue(_0x3b3c20)}};this[_0x2aab05(0x307)][_0x2aab05(0x131)](_0x343a96,this[_0x2aab05(0xe0)]);},0x64));}['dispose'](){const _0xbbac21=_0x36642d;super[_0xbbac21(0x190)](),this[_0xbbac21(0x237)][_0xbbac21(0x1a0)](new Map()),this['_cursorInfo$']['complete'](),this['_roomMembers$'][_0xbbac21(0x1a0)]([]),this[_0xbbac21(0x1b9)][_0xbbac21(0x263)]();}[_0x36642d(0xbf)](){const _0xccbecf=_0x36642d;this[_0xccbecf(0x295)]||(this[_0xccbecf(0x295)]=!0x0,this[_0xccbecf(0x307)][_0xccbecf(0xd7)][_0xccbecf(0x160)]((0x0,r['takeUntil'])(this[_0xccbecf(0x17f)]))[_0xccbecf(0x238)](_0x34f653=>{const _0x55c3b1=_0xccbecf;_0x34f653===e[_0x55c3b1(0x206)][_0x55c3b1(0x306)]?this['_toggleOnline']():this[_0x55c3b1(0xf8)]();}),this[_0xccbecf(0x307)][_0xccbecf(0x20b)][_0xccbecf(0x160)]((0x0,r[_0xccbecf(0x2b1)])(this[_0xccbecf(0x17f)]))['subscribe'](_0x1e5863=>{const _0x1fa7ed=_0xccbecf;let _0x34e7cd=_0x1e5863[_0x1fa7ed(0x14a)];_0x34e7cd===h[_0x1fa7ed(0x2cc)][_0x1fa7ed(0x198)]&&this[_0x1fa7ed(0x149)](_0x1e5863),_0x34e7cd===h[_0x1fa7ed(0x2cc)][_0x1fa7ed(0x176)]&&this[_0x1fa7ed(0x26c)](_0x1e5863);}),this['disposeWithMe'](this['_commandService'][_0xccbecf(0x184)](_0x37f876=>{const _0x1293bf=_0xccbecf;let _0x31c645=_0x37f876[_0x1293bf(0x305)];_0x31c645!=null&&this[_0x1293bf(0x93)]&&_0x37f876['id']===g[_0x1293bf(0x145)]['id']&&_0x31c645[_0x1293bf(0x12f)]===this[_0x1293bf(0xe0)]&&_0x31c645['isEditing']===!0x1&&_0x31c645[_0x1293bf(0x19c)][_0x1293bf(0xad)]>0x0&&this[_0x1293bf(0x1ec)](_0x31c645['ranges']);})),this['_syncEditingCollabCursorService']['collabCursorState$'][_0xccbecf(0x160)]((0x0,r[_0xccbecf(0x2b1)])(this[_0xccbecf(0x17f)]))[_0xccbecf(0x238)](_0x73f44=>{const _0x2aa43f=_0xccbecf;if((_0x73f44==null?void 0x0:_0x73f44[_0x2aa43f(0xe0)])!==this[_0x2aa43f(0xe0)])return;let _0x2bcfb5={'eventID':h['CollaborationEvent'][_0x2aa43f(0x198)],'data':_0x73f44};this[_0x2aa43f(0x149)](_0x2bcfb5);}),this[_0xccbecf(0x291)](this[_0xccbecf(0x34c)][_0xccbecf(0x184)](_0x5e1250=>{const _0x29d0aa=_0xccbecf;if(_0x5e1250['params']==null)return;let _0x55aa44=_0x5e1250['params'];if(_0x5e1250['id']!==g[_0x29d0aa(0xf9)]['id']||_0x55aa44[_0x29d0aa(0x12f)]!==this['unitID'])return;let _0x52ff38={'id':_0x29d0aa(0x2c4),'params':_0x55aa44},_0x271e2b=this[_0x29d0aa(0x23b)];for(let [_0x143c73,_0x3a3f3a]of _0x271e2b){let _0x17266e={'id':'doc.mutation.rich-text-editing','params':{'unitId':this[_0x29d0aa(0xe0)],'actions':null,'textRanges':_0x3a3f3a[_0x29d0aa(0x19c)]}},_0xa5747b=this['_transformService'][_0x29d0aa(0x1d1)](_0x52ff38,_0x17266e,!0x1);if((0x0,h[_0x29d0aa(0x188)])(_0xa5747b))throw _0xa5747b[_0x29d0aa(0x22d)];_0x271e2b['set'](_0x143c73,{..._0x3a3f3a,'ranges':_0xa5747b[_0x29d0aa(0x290)][_0x29d0aa(0x305)][_0x29d0aa(0x15e)]});}queueMicrotask(()=>{const _0x106864=_0x29d0aa;this[_0x106864(0x237)][_0x106864(0x1a0)](_0x271e2b);});})));}[_0x36642d(0x149)](_0x3dd7df){const _0x180153=_0x36642d;var _0x22a0c5,_0x1c0840;let {memberID:_0x8500bb,selection:_0x5d0c90}=_0x3dd7df[_0x180153(0x12e)],_0x498e12=de(_0x5d0c90),_0x928866=(_0x22a0c5=(_0x1c0840=this[_0x180153(0x1c4)][_0x180153(0x2b9)](this[_0x180153(0xe0)],_0x8500bb))==null?void 0x0:_0x1c0840['name'])==null?_0x180153(0x1e9):_0x22a0c5,_0x48320d={'color':this['_colorAssignService']['assignAColorForMemberID'](_0x8500bb),'name':_0x928866,'ranges':_0x498e12},_0x148ed8=this[_0x180153(0x23b)];_0x148ed8[_0x180153(0x352)](_0x8500bb,_0x48320d),this[_0x180153(0x237)][_0x180153(0x1a0)](_0x148ed8);}['_onCursorDelete'](_0x19a105){const _0x8f9b1f=_0x36642d;let {memberID:_0x5440c}=_0x19a105[_0x8f9b1f(0x12e)],_0x44e897=this[_0x8f9b1f(0x23b)];_0x44e897['delete'](_0x5440c),this['_cursorInfo$']['next'](_0x44e897);}[_0x36642d(0x112)](){const _0x41d7b3=_0x36642d;var _0x17998b;if(this[_0x41d7b3(0x93)]=!0x0,((_0x17998b=this[_0x41d7b3(0x1b6)]['getFocusedUnit']())==null?void 0x0:_0x17998b[_0x41d7b3(0x269)]())!==this['unitID'])return;let _0x3be75a=this[_0x41d7b3(0x193)][_0x41d7b3(0x1e6)](g['DocSelectionManagerService'])[_0x41d7b3(0x253)]();Array['isArray'](_0x3be75a)&&_0x3be75a[_0x41d7b3(0xad)]>0x0&&this['_updateLocalCursor'](_0x3be75a);}[_0x36642d(0xf8)](){const _0x52aa2f=_0x36642d;this[_0x52aa2f(0x93)]=!0x1;}};j=w([C(0x2,(0x0,t[_0x36642d(0x26a)])(t[_0x36642d(0x140)])),C(0x3,(0x0,t[_0x36642d(0x26a)])(k)),C(0x4,(0x0,t['Inject'])(e[_0x36642d(0x2d3)])),C(0x5,(0x0,t['Inject'])(A)),C(0x6,h[_0x36642d(0x29d)]),C(0x7,t['IUniverInstanceService']),C(0x8,t[_0x36642d(0x333)])],j);const fe=()=>{let _0x3c7b7e=[],_0x48961e=!0x1;return _0x587dd8=>{const _0x35e29b=_0x1d7e;_0x3c7b7e[_0x35e29b(0x348)](_0x587dd8),_0x48961e||(_0x48961e=!0x0,setTimeout(()=>{const _0x11a7d6=_0x35e29b;_0x3c7b7e[_0x11a7d6(0x1cf)](_0x389090=>_0x389090()),_0x3c7b7e=[],_0x48961e=!0x1;}));};};let M=class extends t[_0x36642d(0xe6)]{get[_0x36642d(0x23b)](){const _0x2bf90f=_0x36642d;return this[_0x2bf90f(0x237)][_0x2bf90f(0xc8)]();}get[_0x36642d(0x139)](){const _0x115e13=_0x36642d;return this[_0x115e13(0x1b9)][_0x115e13(0xc8)]();}constructor(_0x2cfc56,_0xbb2238,_0x542119,_0x3d1401,_0x3b4efc,_0x5caf95,_0x2937c1,_0xa8f80c){const _0x2cbe52=_0x36642d;super(),this[_0x2cbe52(0xe0)]=_0x2cfc56,this[_0x2cbe52(0x307)]=_0xbb2238,this[_0x2cbe52(0x193)]=_0x542119,this[_0x2cbe52(0x1eb)]=_0x3d1401,this['_memberService']=_0x3b4efc,this[_0x2cbe52(0x1b6)]=_0x5caf95,this[_0x2cbe52(0x34c)]=_0x2937c1,this['_refRangeService']=_0xa8f80c,S(this,_0x2cbe52(0x93),!0x1),S(this,_0x2cbe52(0x295),!0x1),S(this,_0x2cbe52(0x237),new r[(_0x2cbe52(0x2b7))](new Map())),S(this,'cursorInfo$',this[_0x2cbe52(0x237)]['asObservable']()),S(this,'_roomMembers$',new r['BehaviorSubject']([])),S(this,_0x2cbe52(0x10d),this[_0x2cbe52(0x1b9)][_0x2cbe52(0x160)]((0x0,r[_0x2cbe52(0x115)])(0x12c))),S(this,'_updateLocalCursor',(0x0,t[_0x2cbe52(0x135)])((_0x248f3f,_0x1ba21b)=>{const _0x47b349=_0x2cbe52;let _0x50d05e={'eventID':h[_0x47b349(0x2cc)][_0x47b349(0x198)],'data':{'unitID':this[_0x47b349(0xe0)],'memberID':this['_session'][_0x47b349(0x219)](),'selection':(0x0,_[_0x47b349(0x215)])(_0x248f3f,_0x1ba21b[_0x47b349(0x1ff)])}};this[_0x47b349(0x307)]['send'](_0x50d05e,this[_0x47b349(0xe0)]);},0x64));}[_0x36642d(0x190)](){const _0x425cbd=_0x36642d;super['dispose'](),this[_0x425cbd(0x237)][_0x425cbd(0x1a0)](new Map()),this[_0x425cbd(0x237)][_0x425cbd(0x263)](),this['_roomMembers$'][_0x425cbd(0x1a0)]([]),this[_0x425cbd(0x1b9)][_0x425cbd(0x263)]();}[_0x36642d(0xbf)](){const _0x28ce1b=_0x36642d;this['_init']||(this[_0x28ce1b(0x295)]=!0x0,this[_0x28ce1b(0x307)][_0x28ce1b(0xd7)][_0x28ce1b(0x160)]((0x0,r[_0x28ce1b(0x2b1)])(this[_0x28ce1b(0x17f)]))[_0x28ce1b(0x238)](_0x7803a6=>{const _0x47007a=_0x28ce1b;_0x7803a6===e[_0x47007a(0x206)][_0x47007a(0x306)]?this[_0x47007a(0x112)]():this[_0x47007a(0xf8)]();}),this['_session'][_0x28ce1b(0x20b)][_0x28ce1b(0x160)]((0x0,r[_0x28ce1b(0x2b1)])(this['dispose$']))[_0x28ce1b(0x238)](_0xa843fe=>{const _0x1d8cf7=_0x28ce1b;let _0xed896e=_0xa843fe[_0x1d8cf7(0x14a)];_0xed896e===h['CollaborationEvent'][_0x1d8cf7(0x198)]&&this[_0x1d8cf7(0x149)](_0xa843fe),_0xed896e===h[_0x1d8cf7(0x2cc)][_0x1d8cf7(0x176)]&&this['_onCursorDelete'](_0xa843fe);}),this[_0x28ce1b(0x272)](),this['disposeWithMe'](this['_commandService'][_0x28ce1b(0x184)](_0x333393=>{const _0x1b5346=_0x28ce1b;if(this[_0x1b5346(0x93)]&&_0x333393['id']===u[_0x1b5346(0xb4)]['id']&&_0x333393[_0x1b5346(0x305)]['unitId']===this[_0x1b5346(0xe0)]){let _0x2bab26=_0x333393[_0x1b5346(0x305)];this[_0x1b5346(0x1ec)](_0x2bab26['subUnitId'],_0x2bab26['selections'][0x0]);}})));}[_0x36642d(0x149)](_0x301365){const _0x2b07ba=_0x36642d;var _0x22d413,_0x454665;let {memberID:_0xeaa635,selection:_0x2fd9e1}=_0x301365[_0x2b07ba(0x12e)],{sheetName:_0x275cb7,range:_0x34c0a1}=(0x0,_[_0x2b07ba(0xd3)])(_0x2fd9e1),_0xd255e9={'name':(_0x22d413=(_0x454665=this[_0x2b07ba(0x1c4)][_0x2b07ba(0x2b9)](this[_0x2b07ba(0xe0)],_0xeaa635))==null?void 0x0:_0x454665[_0x2b07ba(0xb3)])==null?_0x2b07ba(0x1e9):_0x22d413,'range':this[_0x2b07ba(0x1e5)](_0x275cb7,_0x34c0a1),'sheetID':_0x275cb7,'color':this['_colorAssignService']['assignAColorForMemberID'](_0xeaa635),'selection':_0x2fd9e1},_0xcd5456=this['cursorInfo'];_0xcd5456[_0x2b07ba(0x352)](_0xeaa635,_0xd255e9),this[_0x2b07ba(0x237)][_0x2b07ba(0x1a0)](_0xcd5456);}['_onCursorDelete'](_0x2ceb2a){const _0x3c9f81=_0x36642d;let {memberID:_0x2095e6}=_0x2ceb2a['data'],_0x26a176=this[_0x3c9f81(0x23b)];_0x26a176[_0x3c9f81(0x1bc)](_0x2095e6),this[_0x3c9f81(0x237)]['next'](_0x26a176);}['_getMergeRange'](_0x5ca1a0,_0x251c8f){const _0x2b33a8=_0x36642d;var _0x49297d;let _0x1631fd=(_0x49297d=this[_0x2b33a8(0x1b6)][_0x2b33a8(0x271)](this[_0x2b33a8(0xe0)]))==null||(_0x49297d=_0x49297d[_0x2b33a8(0x1e4)](_0x5ca1a0))==null?void 0x0:_0x49297d[_0x2b33a8(0x166)]();return(_0x1631fd==null?void 0x0:_0x1631fd['find'](_0xf21b7f=>t['Rectangle'][_0x2b33a8(0x2ea)](_0xf21b7f,_0x251c8f)))||_0x251c8f;}[_0x36642d(0x272)](){const _0x37d834=_0x36642d;let _0x5004a9=new t['DisposableCollection'](),_0x133597=fe(),_0x41e431=()=>{_0x5004a9['dispose']();let _0x5016fb=(_0x565c69,_0x1139e3,_0x1fe54a,_0x5f1c64)=>{const _0x48e005=_0x1d7e;let _0x25d73e=[];switch(_0x565c69['id']){case u[_0x48e005(0x15c)]['DeleteRangeMoveLeftCommandId']:_0x25d73e=(0x0,u[_0x48e005(0x11a)])(_0x565c69,_0x5f1c64);break;case u[_0x48e005(0x15c)][_0x48e005(0x21c)]:_0x25d73e=(0x0,u[_0x48e005(0x250)])(_0x565c69,_0x5f1c64);break;case u[_0x48e005(0x15c)][_0x48e005(0x1fb)]:_0x25d73e=(0x0,u[_0x48e005(0x2bf)])(_0x565c69,_0x5f1c64);break;case u[_0x48e005(0x15c)]['InsertRangeMoveDownCommandId']:_0x25d73e=(0x0,u[_0x48e005(0x196)])(_0x565c69,_0x5f1c64);break;case u[_0x48e005(0x15c)][_0x48e005(0x2ef)]:_0x25d73e=(0x0,u[_0x48e005(0x23d)])(_0x565c69,_0x5f1c64);break;case u['EffectRefRangId'][_0x48e005(0xe4)]:_0x25d73e=(0x0,u[_0x48e005(0x169)])(_0x565c69,_0x5f1c64);break;case u[_0x48e005(0x15c)][_0x48e005(0x1b7)]:_0x25d73e=(0x0,u[_0x48e005(0x126)])(_0x565c69,_0x5f1c64);break;case u[_0x48e005(0x15c)][_0x48e005(0x8d)]:_0x25d73e=(0x0,u[_0x48e005(0x20e)])(_0x565c69,_0x5f1c64);break;case u[_0x48e005(0x15c)][_0x48e005(0xa0)]:_0x25d73e=(0x0,u[_0x48e005(0x2a0)])(_0x565c69,_0x5f1c64);break;}let _0x750b20=(0x0,u[_0x48e005(0x336)])(_0x25d73e,_0x5f1c64),_0x5f5ce2=this['cursorInfo'][_0x48e005(0x1e6)](_0x1139e3);if(_0x5f5ce2&&_0x750b20){let _0x4b8568={..._0x5f5ce2,'range':_0x750b20};this['cursorInfo'][_0x48e005(0x352)](_0x1139e3,_0x4b8568),_0x133597(()=>{const _0x45eaf9=_0x48e005;let _0x55f209=this[_0x45eaf9(0x248)]['registerRefRange'](_0x750b20,_0x27419b=>(_0x55f209[_0x45eaf9(0x190)](),_0x5016fb(_0x27419b,_0x1139e3,_0x1fe54a,_0x750b20)));_0x5004a9[_0x45eaf9(0x244)](_0x55f209);});}return{'redos':[],'undos':[]};};this['cursorInfo']['forEach']((_0x2e0bf8,_0x1a4b0d)=>{const _0x45be4b=_0x1d7e;let {range:_0x3b8aec,sheetID:_0x18a881}=_0x2e0bf8,_0x30b533=this[_0x45be4b(0x248)]['registerRefRange'](_0x3b8aec,_0x3fe625=>(_0x30b533[_0x45be4b(0x190)](),_0x5016fb(_0x3fe625,_0x1a4b0d,_0x18a881,_0x3b8aec)));_0x5004a9[_0x45be4b(0x244)](_0x30b533);});};this[_0x37d834(0x291)]((0x0,t['toDisposable'])(this['_cursorInfo$'][_0x37d834(0x238)](()=>{_0x41e431();})));}['_toggleOnline'](){const _0x3bfac4=_0x36642d;var _0x55cdc6,_0x5864c0;if(this['_online']=!0x0,((_0x55cdc6=this[_0x3bfac4(0x1b6)][_0x3bfac4(0x2f7)]())==null?void 0x0:_0x55cdc6['getUnitId']())!==this['unitID'])return;let _0xeb67c7=(_0x5864c0=this['_injector']['get'](u['SheetsSelectionsService'])[_0x3bfac4(0x16f)]())==null?void 0x0:_0x5864c0[0x0],_0x1835da=this[_0x3bfac4(0x1b6)][_0x3bfac4(0x314)](t['UniverInstanceType'][_0x3bfac4(0x2c3)])['getActiveSheet']();_0xeb67c7&&_0x1835da&&this['_updateLocalCursor'](_0x1835da['getSheetId'](),_0xeb67c7);}[_0x36642d(0xf8)](){const _0x3ffee0=_0x36642d;this[_0x3ffee0(0x93)]=!0x1;}};M=w([C(0x2,(0x0,t[_0x36642d(0x26a)])(t[_0x36642d(0x140)])),C(0x3,(0x0,t[_0x36642d(0x26a)])(k)),C(0x4,(0x0,t[_0x36642d(0x26a)])(e['MemberService'])),C(0x5,t[_0x36642d(0x1c6)]),C(0x6,t[_0x36642d(0x333)]),C(0x7,(0x0,t[_0x36642d(0x26a)])(u['RefRangeService']))],M);function pe(_0x21e47e){const _0x5eda75=_0x36642d;let _0x58c3b3;try{_0x58c3b3=JSON[_0x5eda75(0x2e7)](_0x21e47e);}catch{return null;}if(typeof _0x58c3b3!=_0x5eda75(0x18d)||!_0x58c3b3)return null;let _0x5aadd0=_0x58c3b3;if(_0x5aadd0[_0x5eda75(0x283)]!==_0x5eda75(0xba)||typeof _0x5aadd0['unitId']!=_0x5eda75(0x267)||typeof _0x5aadd0['subUnitId']!=_0x5eda75(0x267))return null;let _0x2e7fea=Array[_0x5eda75(0x2e2)](_0x5aadd0[_0x5eda75(0x275)])?_0x5aadd0[_0x5eda75(0x275)][_0x5eda75(0x8c)](_0x301eba=>typeof _0x301eba==_0x5eda75(0x267)):[],_0x10aa3c=typeof _0x5aadd0[_0x5eda75(0x209)]=='string'?_0x5aadd0[_0x5eda75(0x209)]:null;return{'kind':'slide-element-selection','unitId':_0x5aadd0[_0x5eda75(0x12f)],'subUnitId':_0x5aadd0['subUnitId'],'selectedIds':_0x2e7fea,'focusedId':_0x10aa3c};}let N=class extends t[_0x36642d(0xe6)]{get['cursorInfo'](){const _0x2c40ac=_0x36642d;return this[_0x2c40ac(0x237)][_0x2c40ac(0xc8)]();}get[_0x36642d(0x139)](){const _0x577cd6=_0x36642d;return this[_0x577cd6(0x1b9)][_0x577cd6(0xc8)]();}constructor(_0x355719,_0x9d1147,_0x35febd,_0x4be4eb,_0x19b1cc){const _0xb09074=_0x36642d;super(),this[_0xb09074(0xe0)]=_0x355719,this[_0xb09074(0x307)]=_0x9d1147,this[_0xb09074(0x1eb)]=_0x35febd,this['_memberService']=_0x4be4eb,this[_0xb09074(0x2aa)]=_0x19b1cc,S(this,_0xb09074(0x93),!0x1),S(this,_0xb09074(0x295),!0x1),S(this,_0xb09074(0x237),new r[(_0xb09074(0x2b7))](new Map())),S(this,_0xb09074(0x329),this[_0xb09074(0x237)][_0xb09074(0x1d3)]()),S(this,_0xb09074(0x1b9),new r[(_0xb09074(0x2b7))]([])),S(this,'roomMembers$',this[_0xb09074(0x1b9)]['pipe']((0x0,r['debounceTime'])(0x12c))),S(this,'_updateLocalCursor',(0x0,t[_0xb09074(0x135)])(_0x2ae442=>{const _0xc46c10=_0xb09074;let _0xd828e3=_0x2ae442['context'];if(!_0xd828e3||_0xd828e3[_0xc46c10(0x12f)]!==this[_0xc46c10(0xe0)])return;let _0x323e9d={'kind':_0xc46c10(0xba),'unitId':_0xd828e3[_0xc46c10(0x12f)],'subUnitId':_0xd828e3[_0xc46c10(0x25c)],'selectedIds':_0x2ae442[_0xc46c10(0x275)][_0xc46c10(0x8c)](_0x4d5c46=>typeof _0x4d5c46==_0xc46c10(0x267)),'focusedId':_0x2ae442['focusedId']},_0xf1178e={'eventID':h['CollaborationEvent'][_0xc46c10(0x198)],'data':{'unitID':this[_0xc46c10(0xe0)],'memberID':this[_0xc46c10(0x307)][_0xc46c10(0x219)](),'selection':JSON[_0xc46c10(0x25b)](_0x323e9d)}};this[_0xc46c10(0x307)]['send'](_0xf1178e,this[_0xc46c10(0xe0)]);},0x64));}[_0x36642d(0x190)](){const _0x554bc8=_0x36642d;super[_0x554bc8(0x190)](),this[_0x554bc8(0x237)][_0x554bc8(0x1a0)](new Map()),this[_0x554bc8(0x237)][_0x554bc8(0x263)](),this[_0x554bc8(0x1b9)][_0x554bc8(0x1a0)]([]),this[_0x554bc8(0x1b9)][_0x554bc8(0x263)]();}['init'](){const _0x4a5b53=_0x36642d;this[_0x4a5b53(0x295)]||(this[_0x4a5b53(0x295)]=!0x0,this[_0x4a5b53(0x307)][_0x4a5b53(0xd7)][_0x4a5b53(0x160)]((0x0,r['takeUntil'])(this[_0x4a5b53(0x17f)]))[_0x4a5b53(0x238)](_0x29a99d=>{const _0x4bbed5=_0x4a5b53;_0x29a99d===e[_0x4bbed5(0x206)][_0x4bbed5(0x306)]?this[_0x4bbed5(0x112)]():this['_toggleOffline']();}),this[_0x4a5b53(0x307)][_0x4a5b53(0x20b)][_0x4a5b53(0x160)]((0x0,r[_0x4a5b53(0x2b1)])(this[_0x4a5b53(0x17f)]))[_0x4a5b53(0x238)](_0x13b74d=>{const _0x4bcd3f=_0x4a5b53;let _0x49b096=_0x13b74d[_0x4bcd3f(0x14a)];_0x49b096===h[_0x4bcd3f(0x2cc)]['UPDATE_CURSOR']&&this[_0x4bcd3f(0x149)](_0x13b74d),_0x49b096===h[_0x4bcd3f(0x2cc)]['USERS_LEAVE']&&this[_0x4bcd3f(0x26c)](_0x13b74d);}),this[_0x4a5b53(0x2aa)][_0x4a5b53(0x1a9)][_0x4a5b53(0x160)]((0x0,r[_0x4a5b53(0x2b1)])(this[_0x4a5b53(0x17f)]))[_0x4a5b53(0x238)](_0x324290=>{const _0x4fa083=_0x4a5b53;this[_0x4fa083(0x93)]&&this[_0x4fa083(0x1ec)](_0x324290);}));}['_onCursorUpdate'](_0x45fd4b){const _0x1c66bc=_0x36642d;var _0x532798,_0xf76817,_0x4d9d41,_0x182070;let {memberID:_0x2e8cf8,selection:_0x12441c}=_0x45fd4b[_0x1c66bc(0x12e)];if(_0x2e8cf8===((_0x532798=(_0xf76817=this[_0x1c66bc(0x307)])['getMemberID'])==null?void 0x0:_0x532798[_0x1c66bc(0x109)](_0xf76817)))return;let _0x5a9e3a=pe(_0x12441c);if(!_0x5a9e3a||_0x5a9e3a[_0x1c66bc(0x12f)]!==this['unitID'])return;let _0x22e391=(_0x4d9d41=(_0x182070=this[_0x1c66bc(0x1c4)][_0x1c66bc(0x2b9)](this[_0x1c66bc(0xe0)],_0x2e8cf8))==null?void 0x0:_0x182070[_0x1c66bc(0xb3)])==null?_0x1c66bc(0x1e9):_0x4d9d41,_0x576f91={'color':this[_0x1c66bc(0x1eb)]['assignAColorForMemberID'](_0x2e8cf8),'name':_0x22e391,'unitId':_0x5a9e3a[_0x1c66bc(0x12f)],'subUnitId':_0x5a9e3a[_0x1c66bc(0x25c)],'selectedIds':_0x5a9e3a[_0x1c66bc(0x275)],'focusedId':_0x5a9e3a[_0x1c66bc(0x209)],'selection':_0x12441c},_0x43d8c4=new Map(this[_0x1c66bc(0x23b)]);_0x43d8c4[_0x1c66bc(0x352)](_0x2e8cf8,_0x576f91),this[_0x1c66bc(0x237)][_0x1c66bc(0x1a0)](_0x43d8c4);}[_0x36642d(0x26c)](_0x3c9006){const _0x3dac3b=_0x36642d;let {memberID:_0x4ca8d0}=_0x3c9006[_0x3dac3b(0x12e)],_0x51d8a2=new Map(this['cursorInfo']);_0x51d8a2[_0x3dac3b(0x1bc)](_0x4ca8d0),this[_0x3dac3b(0x237)][_0x3dac3b(0x1a0)](_0x51d8a2);}['_toggleOnline'](){const _0x24b53c=_0x36642d;this[_0x24b53c(0x93)]=!0x0,this[_0x24b53c(0x1ec)](this[_0x24b53c(0x2aa)][_0x24b53c(0x308)]());}[_0x36642d(0xf8)](){const _0x2a4c9b=_0x36642d;this[_0x2a4c9b(0x93)]=!0x1;}};N=w([C(0x2,(0x0,t[_0x36642d(0x26a)])(k)),C(0x3,(0x0,t[_0x36642d(0x26a)])(e[_0x36642d(0x2d3)])),C(0x4,(0x0,t[_0x36642d(0x26a)])(v[_0x36642d(0x273)]))],N);let P=class extends t[_0x36642d(0xe6)]{constructor(_0x15993b,_0x3ced2b,_0x9d7911){const _0x2aa4d5=_0x36642d;super(),this[_0x2aa4d5(0x1b6)]=_0x15993b,this[_0x2aa4d5(0x193)]=_0x3ced2b,this['_collabSessionService']=_0x9d7911,S(this,_0x2aa4d5(0xc0),new Map()),S(this,_0x2aa4d5(0x8f),new r[(_0x2aa4d5(0x1af))]()),this[_0x2aa4d5(0x295)]();}[_0x36642d(0x190)](){const _0x206bf0=_0x36642d;super['dispose'](),this[_0x206bf0(0x8f)][_0x206bf0(0x263)](),this['_entities'][_0x206bf0(0x1cf)](_0x1177c8=>_0x1177c8[_0x206bf0(0x190)]());}['getCollabCursors$'](_0x278f09){const _0x4067ee=_0x36642d;return this[_0x4067ee(0xc0)][_0x4067ee(0x302)](_0x278f09)?this['_entities'][_0x4067ee(0x1e6)](_0x278f09)[_0x4067ee(0x329)]:this['_entityInit$']['pipe']((0x0,r['filter'])(_0x580e88=>_0x580e88[_0x4067ee(0xe0)]===_0x278f09),(0x0,r[_0x4067ee(0x246)])(_0x9bbc50=>_0x9bbc50[_0x4067ee(0x329)]));}[_0x36642d(0x295)](){const _0x1aa2ec=_0x36642d;this[_0x1aa2ec(0x1b6)][_0x1aa2ec(0x297)](t[_0x1aa2ec(0x12a)]['UNIVER_SHEET'])['pipe']((0x0,r[_0x1aa2ec(0x2b1)])(this[_0x1aa2ec(0x17f)]))['subscribe'](async _0x229852=>{const _0x7f0453=_0x1aa2ec;let _0x593ea7=_0x229852[_0x7f0453(0x2ba)][_0x7f0453(0x269)](),_0x5354b8=await this[_0x7f0453(0xe9)](_0x593ea7);this[_0x7f0453(0x8f)]['next'](_0x5354b8),this['_entities']['set'](_0x593ea7,_0x5354b8);}),this[_0x1aa2ec(0x1b6)][_0x1aa2ec(0x297)](t['UniverInstanceType'][_0x1aa2ec(0x13c)])[_0x1aa2ec(0x160)]((0x0,r[_0x1aa2ec(0x2b1)])(this[_0x1aa2ec(0x17f)]))[_0x1aa2ec(0x160)]((0x0,r['filter'])(_0x35f245=>!_0x35f245[_0x1aa2ec(0x2ba)][_0x1aa2ec(0x269)]()[_0x1aa2ec(0x2ca)]('__')))['subscribe'](async _0x32bd2d=>{const _0x49fe4c=_0x1aa2ec;let {unit:_0x46cc67}=_0x32bd2d,_0x359da2=_0x46cc67[_0x49fe4c(0x269)](),_0x1d8bc2=await this['_startDocCollabCursor'](_0x359da2);this[_0x49fe4c(0x8f)]['next'](_0x1d8bc2),this['_entities'][_0x49fe4c(0x352)](_0x359da2,_0x1d8bc2);}),this['_univerInstanceService'][_0x1aa2ec(0x297)](t['UniverInstanceType'][_0x1aa2ec(0x249)])[_0x1aa2ec(0x160)]((0x0,r['takeUntil'])(this[_0x1aa2ec(0x17f)]))[_0x1aa2ec(0x238)](async _0x303609=>{const _0x4647a3=_0x1aa2ec;let _0x48d7ec=_0x303609[_0x4647a3(0x2ba)]['getUnitId'](),_0xa98b00=await this[_0x4647a3(0x27d)](_0x48d7ec);this['_entityInit$']['next'](_0xa98b00),this[_0x4647a3(0xc0)][_0x4647a3(0x352)](_0x48d7ec,_0xa98b00);}),(0x0,r[_0x1aa2ec(0x1cc)])(this['_univerInstanceService'][_0x1aa2ec(0x113)](t[_0x1aa2ec(0x12a)][_0x1aa2ec(0x13c)]),this['_univerInstanceService'][_0x1aa2ec(0x113)](t[_0x1aa2ec(0x12a)][_0x1aa2ec(0x2c3)]),this[_0x1aa2ec(0x1b6)][_0x1aa2ec(0x113)](t[_0x1aa2ec(0x12a)][_0x1aa2ec(0x249)]))[_0x1aa2ec(0x160)]((0x0,r[_0x1aa2ec(0x2b1)])(this['dispose$']))[_0x1aa2ec(0x238)](_0x2e5ced=>{const _0x131af1=_0x1aa2ec;let _0x26606c=_0x2e5ced['getUnitId'](),_0x4e3cbc=this[_0x131af1(0xc0)][_0x131af1(0x1e6)](_0x26606c);_0x4e3cbc&&(_0x4e3cbc[_0x131af1(0x190)](),this[_0x131af1(0xc0)][_0x131af1(0x1bc)](_0x26606c));});}async[_0x36642d(0xe9)](_0x1658b2){const _0x31cbc9=_0x36642d;let _0x489ab3=await this[_0x31cbc9(0x2e1)][_0x31cbc9(0x292)](_0x1658b2),_0x20ec37=this[_0x31cbc9(0x193)][_0x31cbc9(0x14e)](M,_0x1658b2,_0x489ab3);return _0x20ec37[_0x31cbc9(0xbf)](),_0x20ec37;}async[_0x36642d(0x2de)](_0x5aba80){const _0x45a4cc=_0x36642d;let _0x2469be=await this[_0x45a4cc(0x2e1)][_0x45a4cc(0x292)](_0x5aba80),_0x17f5bb=this['_injector']['createInstance'](j,_0x5aba80,_0x2469be);return _0x17f5bb['init'](),_0x17f5bb;}async['_startSlideCollabCursor'](_0x125c6f){const _0x2ae183=_0x36642d;let _0x2e52cc=await this[_0x2ae183(0x2e1)][_0x2ae183(0x292)](_0x125c6f),_0x229aa8=this[_0x2ae183(0x193)]['createInstance'](N,_0x125c6f,_0x2e52cc);return _0x229aa8[_0x2ae183(0xbf)](),_0x229aa8;}};P=w([C(0x0,t[_0x36642d(0x1c6)]),C(0x1,(0x0,t[_0x36642d(0x26a)])(t['Injector'])),C(0x2,(0x0,t[_0x36642d(0x26a)])(e[_0x36642d(0x110)]))],P);function me(_0xd22f0b,_0x44cc2e){const _0x34b6d4=_0x36642d;var _0x70ef9f,_0x117196,_0x491867;let {radius:_0x5444f4,width:_0x2c1844,height:_0x17d038}=_0x44cc2e;_0x5444f4=(_0x70ef9f=_0x5444f4)==null?0x0:_0x70ef9f,_0x2c1844=(_0x117196=_0x2c1844)==null?0x1e:_0x117196,_0x17d038=(_0x491867=_0x17d038)==null?0x1e:_0x491867;let _0x416539=0x0,_0x45aaa9=0x0,_0x5133dc=0x0;_0x416539=_0x45aaa9=_0x5133dc=Math[_0x34b6d4(0x21b)](_0x5444f4,_0x2c1844/0x2,_0x17d038/0x2),_0xd22f0b[_0x34b6d4(0x1df)](),_0xd22f0b[_0x34b6d4(0xfb)](_0x416539,0x0),_0xd22f0b[_0x34b6d4(0x1d6)](_0x2c1844-_0x45aaa9,0x0),_0xd22f0b[_0x34b6d4(0x17c)](_0x2c1844-_0x45aaa9,_0x45aaa9,_0x45aaa9,Math['PI']*0x3/0x2,0x0,!0x1),_0xd22f0b['lineTo'](_0x2c1844,_0x17d038-_0x5133dc),_0xd22f0b['arc'](_0x2c1844-_0x5133dc,_0x17d038-_0x5133dc,_0x5133dc,0x0,Math['PI']/0x2,!0x1),_0xd22f0b[_0x34b6d4(0x1d6)](0x0,_0x17d038),_0xd22f0b[_0x34b6d4(0x1d6)](0x0,_0x416539),_0xd22f0b[_0x34b6d4(0x17c)](_0x416539,_0x416539,_0x416539,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0xd22f0b[_0x34b6d4(0x231)](),_0x44cc2e[_0x34b6d4(0x186)]&&(_0xd22f0b[_0x34b6d4(0xaf)](),_0xd22f0b[_0x34b6d4(0x2ad)]=_0x44cc2e[_0x34b6d4(0x186)],_0x44cc2e[_0x34b6d4(0x2d2)]===_0x34b6d4(0x17d)?_0xd22f0b[_0x34b6d4(0x186)]('evenodd'):_0xd22f0b[_0x34b6d4(0x186)](),_0xd22f0b[_0x34b6d4(0x34a)]());}var F=class e extends d[_0x36642d(0x300)]{constructor(_0x63a23e,_0x1c158f){const _0x130095=_0x36642d;super(_0x63a23e,_0x1c158f),S(this,_0x130095(0x13a),void 0x0),S(this,_0x130095(0x1c8),void 0x0),this[_0x130095(0x13a)]=_0x1c158f==null?void 0x0:_0x1c158f[_0x130095(0x13a)],this[_0x130095(0x1c8)]=_0x1c158f==null?void 0x0:_0x1c158f[_0x130095(0x1c8)];}static[_0x36642d(0x2f5)](_0x55c483,_0x577529){const _0x27d5ea=_0x36642d;let {text:_0x35f329,color:_0x1f45da}=_0x577529;_0x55c483[_0x27d5ea(0xaf)](),_0x55c483[_0x27d5ea(0x2fd)]='bold\x2013px\x20Source\x20Han\x20Sans\x20CN';let _0x3e8151=_0x55c483['measureText'](_0x35f329)[_0x27d5ea(0x29c)];if(me(_0x55c483,{'height':0x14,'radius':0x4,'width':Math[_0x27d5ea(0x21b)](_0x3e8151+0x8,0xc8),'fill':_0x1f45da,'evented':!0x1}),_0x55c483[_0x27d5ea(0x2ad)]=_0x27d5ea(0xa4),_0x3e8151>0xc0){let _0x43faff='',_0xaa0b45=0x0;for(let _0x10d9e1 of _0x35f329){let _0x36cfeb=_0x55c483[_0x27d5ea(0x1c0)](_0x10d9e1)['width'];if(_0xaa0b45+_0x36cfeb<=0xc0-_0x55c483[_0x27d5ea(0x1c0)](_0x27d5ea(0x9f))['width'])_0x43faff+=_0x10d9e1,_0xaa0b45+=_0x36cfeb;else{_0x43faff+='...';break;}}_0x55c483[_0x27d5ea(0x15f)](_0x43faff,0x4,0xf);}else _0x55c483[_0x27d5ea(0x15f)](_0x35f329,0x4,0xf);_0x55c483[_0x27d5ea(0x34a)]();}['_draw'](_0x10e436){const _0x51a230=_0x36642d;e[_0x51a230(0x2f5)](_0x10e436,this);}};const I=_0x36642d(0x97);var L=class{constructor(_0x11175e,_0x587af9,_0x5d6fd3,_0x4b0f46){const _0x44dc56=_0x36642d;this[_0x44dc56(0x13b)]=_0x11175e,this['_scene']=_0x587af9,this[_0x44dc56(0x20d)]=_0x5d6fd3,this[_0x44dc56(0x2f4)]=_0x4b0f46,S(this,_0x44dc56(0x309),[]),S(this,'_anchor',null),S(this,_0x44dc56(0x201),null),S(this,_0x44dc56(0x128),null),S(this,'_hideTimer',null),S(this,_0x44dc56(0x279),null),this[_0x44dc56(0x2c7)]();}set[_0x36642d(0x172)](_0x3f289f){const _0xf9ea91=_0x36642d;_0x3f289f?(this[_0xf9ea91(0x128)]&&this['_anchorDot'][_0xf9ea91(0x31e)](),this[_0xf9ea91(0x201)]&&this[_0xf9ea91(0x201)][_0xf9ea91(0x31d)]()):(this['_anchorDot']&&this[_0xf9ea91(0x128)][_0xf9ea91(0x31d)](),this[_0xf9ea91(0x201)]&&this[_0xf9ea91(0x201)][_0xf9ea91(0x31e)]());}[_0x36642d(0x190)](){const _0x48503a=_0x36642d;for(let _0xd89577 of this[_0x48503a(0x309)])_0xd89577['dispose']();this[_0x48503a(0x201)]&&this['_textBubble'][_0x48503a(0x190)](),this[_0x48503a(0x128)]&&this['_anchorDot'][_0x48503a(0x190)](),this[_0x48503a(0x1f9)]&&this[_0x48503a(0x1f9)][_0x48503a(0x190)](),this['_eventUnsubscribe']&&this[_0x48503a(0x279)]();}[_0x36642d(0x2c7)](){const _0x56a66f=_0x36642d;let {_docSkeleton:_0x7275f0,_document:_0x30e59a}=this,{color:_0x40bbc9,name:_0x290548,ranges:_0x167b69}=this[_0x56a66f(0x13b)],_0x365e61=_0x30e59a[_0x56a66f(0x274)](),{docsLeft:_0x36733c,docsTop:_0x371325}=_0x365e61,_0x3a5e7c=new p[(_0x56a66f(0xa8))](_0x365e61,_0x7275f0);for(let {startOffset:_0x34fc25,endOffset:_0x7a54e6,rangeType:_0x210031,segmentId:_0x2ea43c,segmentPage:_0x1dd501,collapsed:_0x2af8f,isActive:_0x4293cf}of _0x167b69){let _0x2a6708=_0x7275f0['findNodePositionByCharIndex'](_0x34fc25,!0x0,_0x2ea43c,_0x1dd501),_0x3526d5=_0x7275f0[_0x56a66f(0xa5)](_0x7a54e6,!0x0,_0x2ea43c,_0x1dd501);if(_0x3526d5==null&&(_0x3526d5=_0x7275f0[_0x56a66f(0xa5)](_0x7a54e6-0x1,!0x1,_0x2ea43c,_0x1dd501)),_0x4293cf){let {contentBoxPointGroup:_0x4a6d6c}=_0x3a5e7c[_0x56a66f(0x331)](_0x3526d5,_0x3526d5);if(_0x4a6d6c[_0x56a66f(0xad)]===0x0)continue;this['_drawAnchor'](_0x40bbc9,_0x4a6d6c,_0x36733c,_0x371325,_0x290548),this[_0x56a66f(0x279)]=this[_0x56a66f(0x1ce)]();}if(_0x2a6708&&_0x3526d5){if(_0x210031===t['DOC_RANGE_TYPE'][_0x56a66f(0x2dc)]){var _0x5b434c;let {pointGroup:_0x5c9eaf}=(_0x5b434c=new p[(_0x56a66f(0x133))](_0x365e61,_0x7275f0)['getRangePointData'](_0x2a6708,_0x3526d5))==null?{}:_0x5b434c;if(_0x5c9eaf==null||_0x5c9eaf['length']===0x0)continue;this[_0x56a66f(0x26b)](_0x40bbc9,_0x5c9eaf,_0x36733c,_0x371325);}else{if(!_0x2af8f){let {borderBoxPointGroup:_0x1b82d6}=_0x3a5e7c['getRangePointData'](_0x2a6708,_0x3526d5);if(_0x1b82d6[_0x56a66f(0xad)]===0x0)continue;this[_0x56a66f(0xc4)](_0x40bbc9,_0x1b82d6,_0x36733c,_0x371325);}}}}}[_0x36642d(0x159)](_0x4bd56e,_0x3de599,_0x2111f2,_0x59b963,_0x4ce8ce){const _0xc068fd=_0x36642d;let {left:_0x21392a,top:_0x21e170,height:_0x41f63c}=this[_0xc068fd(0x14b)](_0x3de599),_0x5cdaab=1.5/this[_0xc068fd(0x129)](),_0x54dd8b=new d['Rect'](I+(0x0,t[_0xc068fd(0x27c)])(0x6),{'left':_0x21392a+_0x2111f2-_0x5cdaab,'top':_0x21e170+_0x59b963,'height':_0x41f63c,'width':1.5,'fill':_0x4bd56e||(0x0,d['getColor'])(t[_0xc068fd(0x311)][_0xc068fd(0x24d)],0x0),'strokeWidth':_0x5cdaab,'stroke':_0xc068fd(0x14f),'evented':!0x0});this[_0xc068fd(0x1f9)]=_0x54dd8b,this[_0xc068fd(0x211)][_0xc068fd(0x346)](_0x54dd8b,p['TEXT_RANGE_LAYER_INDEX']);let _0x2d5776=new d[(_0xc068fd(0x24c))](I+(0x0,t[_0xc068fd(0x27c)])(0x6),{'left':_0x21392a+_0x2111f2-_0x5cdaab,'top':_0x21e170+_0x59b963-0x4/0x2,'height':0x4,'width':0x4,'fill':_0x4bd56e||(0x0,d[_0xc068fd(0x2bd)])(t[_0xc068fd(0x311)][_0xc068fd(0x24d)],0x0),'strokeWidth':0x0,'stroke':_0x4bd56e||(0x0,d[_0xc068fd(0x2bd)])(t[_0xc068fd(0x311)][_0xc068fd(0x24d)],0x0),'evented':!0x1});this['_anchorDot']=_0x2d5776,this[_0xc068fd(0x211)][_0xc068fd(0x346)](_0x2d5776,p[_0xc068fd(0x2be)]);let _0x376cf1=new F(I+(0x0,t['generateRandomId'])(0x6),{'left':_0x21392a+_0x2111f2-_0x5cdaab,'top':_0x21e170+_0x59b963-0x14,'text':_0x4ce8ce,'color':_0x4bd56e});this['_textBubble']=_0x376cf1,this[_0xc068fd(0x211)][_0xc068fd(0x346)](_0x376cf1,p[_0xc068fd(0x2be)]),this[_0xc068fd(0x172)]=!0x1;}[_0x36642d(0x1ce)](){const _0x4f703c=_0x36642d;let _0x5aa5d5=this[_0x4f703c(0x1f9)][_0x4f703c(0x33c)]['subscribeEvent'](()=>{const _0x3894da=_0x4f703c;this[_0x3894da(0x172)]=!0x0;}),_0x3abc06=this[_0x4f703c(0x1f9)][_0x4f703c(0x241)][_0x4f703c(0x2e0)](()=>{const _0xdc7c3f=_0x4f703c;this[_0xdc7c3f(0x1fa)]&&clearTimeout(this[_0xdc7c3f(0x1fa)]),this[_0xdc7c3f(0x1fa)]=setTimeout(()=>{const _0xa98797=_0xdc7c3f;this[_0xa98797(0x172)]=!0x1;},0x7d0);});return()=>{const _0xd70c79=_0x4f703c;_0x5aa5d5[_0xd70c79(0xa1)](),_0x3abc06['unsubscribe']();};}[_0x36642d(0xc4)](_0x1cd4c3,_0x89f4c6,_0x34f86d,_0x53d8e9){const _0xda8a2e=_0x36642d;let _0x2c7f43=0.2,_0x43cdb8=new t['ColorKit'](_0x1cd4c3)[_0xda8a2e(0x2b2)](_0x2c7f43)[_0xda8a2e(0x313)](),_0x187b60=new d[(_0xda8a2e(0x167))](_0xda8a2e(0x1b4)+(0x0,t['generateRandomId'])(0x6),{'pointsGroup':_0x89f4c6,'fill':_0x43cdb8||(0x0,d['getColor'])(t[_0xda8a2e(0x311)]['black'],_0x2c7f43),'left':_0x34f86d,'top':_0x53d8e9,'evented':!0x1,'debounceParentDirty':!0x1});this['_shapes']['push'](_0x187b60),this[_0xda8a2e(0x211)][_0xda8a2e(0x346)](_0x187b60,p[_0xda8a2e(0x2be)]);}[_0x36642d(0x26b)](_0x2f266d,_0x2f8a42,_0x4a8214,_0x5dcd5d){const _0x5b9e2b=_0x36642d;let _0x547b4e=0.2,_0x10d677=new t[(_0x5b9e2b(0x1f2))](_0x2f266d)['setAlpha'](_0x547b4e)[_0x5b9e2b(0x313)](),_0x33d943=new d['RegularPolygon']('collab-rect-range-'+(0x0,t[_0x5b9e2b(0x27c)])(0x6),{'pointsGroup':_0x2f8a42,'fill':_0x10d677||(0x0,d[_0x5b9e2b(0x2bd)])(t[_0x5b9e2b(0x311)][_0x5b9e2b(0x24d)],_0x547b4e),'left':_0x4a8214,'top':_0x5dcd5d,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x5b9e2b(0x309)][_0x5b9e2b(0x348)](_0x33d943),this[_0x5b9e2b(0x211)][_0x5b9e2b(0x346)](_0x33d943,p['TEXT_RANGE_LAYER_INDEX']);}['_getAnchorBounding'](_0x175b99){let _0x192c42=_0x175b99[0x0],_0x43bd4a=_0x192c42[0x0],_0x3e491d=_0x192c42[0x2],{x:_0x1b98b6,y:_0x2e8fbd}=_0x43bd4a,{x:_0x3747d6,y:_0x5179bc}=_0x3e491d;return{'left':_0x1b98b6,'top':_0x2e8fbd,'width':_0x3747d6-_0x1b98b6,'height':_0x5179bc-_0x2e8fbd};}[_0x36642d(0x129)](){const _0x4719bb=_0x36642d;let {scaleX:_0x5c1db5,scaleY:_0x171d5d}=this[_0x4719bb(0x211)]['getAncestorScale']();return Math[_0x4719bb(0x330)](_0x5c1db5,_0x171d5d);}};let R=class extends t['RxDisposable']{constructor(_0x1f1c0e,_0x460b59,_0x699aef,_0x1ceefd,_0x665fe5){const _0x2b260d=_0x36642d;super(),this[_0x2b260d(0x170)]=_0x1f1c0e,this['_docSkeletonManagerService']=_0x460b59,this[_0x2b260d(0x289)]=_0x699aef,this[_0x2b260d(0x34c)]=_0x1ceefd,this['_themeService']=_0x665fe5,S(this,'_cursorShapes',[]),S(this,_0x2b260d(0xb6),[]),this[_0x2b260d(0x295)]();}[_0x36642d(0x295)](){const _0x462eb7=_0x36642d;let _0x505aa4=this[_0x462eb7(0x170)][_0x462eb7(0x12f)],_0x19673f=this['_docSkeletonManagerService'];this[_0x462eb7(0x291)]((0x0,r[_0x462eb7(0xd9)])([this[_0x462eb7(0x289)][_0x462eb7(0x1ab)](_0x505aa4),this[_0x462eb7(0xf0)][_0x462eb7(0x1b1)]])[_0x462eb7(0x160)]((0x0,i['map'])(([_0x556723,_0x2667cb])=>({'skeleton':_0x19673f[_0x462eb7(0x19a)](),'cursors':[..._0x556723[_0x462eb7(0x182)]()][_0x462eb7(0x34b)](_0x4949ae=>({..._0x4949ae,'color':this['_themeService'][_0x462eb7(0x203)](_0x4949ae[_0x462eb7(0x13a)])}))})))['subscribe'](_0x23c0bd=>{const _0x189864=_0x462eb7;if(this[_0x189864(0x33d)](),_0x23c0bd){let {skeleton:_0x3d549b,cursors:_0x2eb8dc}=_0x23c0bd;this['_updateCollabCursors'](_0x3d549b,_0x2eb8dc);}})),this[_0x462eb7(0x10a)](),this[_0x462eb7(0x216)]();}[_0x36642d(0x282)](_0x397f12,_0x2c2def){let {scene:_0x292176,mainComponent:_0x334ad9}=this['_context'],_0x9ee147=_0x2c2def['map'](_0x53fd8c=>new L(_0x53fd8c,_0x292176,_0x397f12,_0x334ad9));this['_cursorShapes']=_0x9ee147,this['_cursors']=_0x2c2def;}[_0x36642d(0x30b)](){const _0x45c14d=_0x36642d;this[_0x45c14d(0x33d)]();let {scene:_0x14bf36,mainComponent:_0x509912}=this[_0x45c14d(0x170)],_0x2117e2=this[_0x45c14d(0x345)][_0x45c14d(0x19a)](),_0x16f01d=this[_0x45c14d(0xb6)][_0x45c14d(0x102)](_0x1e379d=>new L(_0x1e379d,_0x14bf36,_0x2117e2,_0x509912));this['_cursorShapes']=_0x16f01d;}[_0x36642d(0x33d)](){const _0x3f7051=_0x36642d;this[_0x3f7051(0xfe)][_0x3f7051(0x1cf)](_0x2f9721=>_0x2f9721['dispose']()),this[_0x3f7051(0xfe)]=[];}[_0x36642d(0x216)](){const _0x5c4ff3=_0x36642d;let _0x14648c=[p[_0x5c4ff3(0xcb)]['id']];this[_0x5c4ff3(0x291)](this[_0x5c4ff3(0x34c)][_0x5c4ff3(0x184)](_0x8b5440=>{const _0xcf8917=_0x5c4ff3;_0x14648c[_0xcf8917(0x25e)](_0x8b5440['id'])&&_0x8b5440[_0xcf8917(0x305)][_0xcf8917(0x12f)]===this[_0xcf8917(0x170)][_0xcf8917(0x12f)]&&this[_0xcf8917(0x30b)]();}));}[_0x36642d(0x10a)](){const _0x2a9f17=_0x36642d;this[_0x2a9f17(0x291)]((0x0,t[_0x2a9f17(0x293)])(this[_0x2a9f17(0x170)][_0x2a9f17(0x20c)][_0x2a9f17(0xc1)])['pipe']((0x0,i[_0x2a9f17(0x8c)])(_0x24f978=>_0x24f978[_0x2a9f17(0x2f2)]===d[_0x2a9f17(0x1bb)]['resize']),(0x0,i[_0x2a9f17(0x2c8)])(0x10))[_0x2a9f17(0x238)](()=>{this['_refreshCollabCursors']();}));}};R=w([C(0x1,(0x0,t['Inject'])(g[_0x36642d(0x137)])),C(0x2,(0x0,t[_0x36642d(0x26a)])(P)),C(0x3,t[_0x36642d(0x333)]),C(0x4,(0x0,t['Inject'])(t[_0x36642d(0xda)]))],R);var z=class extends d[_0x36642d(0x300)]{constructor(_0x519123,_0x5458f2){const _0x258f42=_0x36642d;if(super(_0x519123,_0x5458f2),S(this,'_color',void 0x0),S(this,_0x258f42(0xdd),!0x1),S(this,_0x258f42(0x8e),void 0x0),S(this,_0x258f42(0x107),''),S(this,_0x258f42(0xcc),_0x258f42(0x179)),S(this,_0x258f42(0x325),void 0x0),S(this,_0x258f42(0x32c),void 0x0),S(this,_0x258f42(0x16b),void 0x0),S(this,_0x258f42(0x344),0x4),S(this,_0x258f42(0x191),void 0x0),S(this,_0x258f42(0x2d5),void 0x0),S(this,_0x258f42(0x161),!0x0),S(this,'_offsetY',0x0),_0x5458f2){var _0x279dd2;if(this['setShapeProps'](_0x5458f2),_0x5458f2['highlight']&&((_0x279dd2=_0x5458f2[_0x258f42(0x99)])==null?this[_0x258f42(0x344)]:_0x279dd2)){var _0xff4173;this[_0x258f42(0x1ba)]((_0xff4173=_0x5458f2['highlightSecond'])==null?this[_0x258f42(0x344)]:_0xff4173);}}this['onPointerEnter$']['subscribeEvent'](()=>this[_0x258f42(0xdf)]({'hovered':!0x0})),this[_0x258f42(0x241)][_0x258f42(0x2e0)](()=>this[_0x258f42(0xdf)]({'hovered':!0x1}));}['setOffsetY'](_0xfa5bb6){this['_offsetY']=_0xfa5bb6;}[_0x36642d(0xdf)](_0x4ccacf){const _0x137870=_0x36642d;var _0x9bc35c,_0x2f2a6c,_0x46ac5d,_0x29bd5d,_0x80703c,_0x33ae94,_0x2c4388;this[_0x137870(0x255)]=(_0x9bc35c=_0x4ccacf['color'])==null?this[_0x137870(0x255)]:_0x9bc35c,this[_0x137870(0xdd)]=(_0x2f2a6c=_0x4ccacf[_0x137870(0x2a7)])==null?this['_hovered']:_0x2f2a6c,this['_range']=(_0x46ac5d=_0x4ccacf[_0x137870(0x1ff)])==null?this[_0x137870(0x8e)]:_0x46ac5d,this[_0x137870(0x107)]=(_0x29bd5d=_0x4ccacf['name'])==null?this[_0x137870(0x107)]:_0x29bd5d,this[_0x137870(0xcc)]=(_0x80703c=_0x4ccacf['labelPosition'])==null?this[_0x137870(0xcc)]:_0x80703c,this[_0x137870(0x325)]=(_0x33ae94=_0x4ccacf[_0x137870(0xb2)])==null?this[_0x137870(0x325)]:_0x33ae94,this[_0x137870(0x32c)]=(_0x2c4388=_0x4ccacf[_0x137870(0x130)])==null?this[_0x137870(0x32c)]:_0x2c4388,_0x4ccacf[_0x137870(0x99)]!==void 0x0&&(this[_0x137870(0x344)]=_0x4ccacf[_0x137870(0x99)]),_0x4ccacf[_0x137870(0x21e)]!==void 0x0&&(this[_0x137870(0x16b)]=_0x4ccacf[_0x137870(0x21e)]),_0x4ccacf[_0x137870(0x2a5)]!==void 0x0&&(this[_0x137870(0x34e)]=_0x4ccacf[_0x137870(0x2a5)]),this['transformByState']({'width':_0x4ccacf[_0x137870(0x29c)],'height':_0x4ccacf[_0x137870(0x96)]});}[_0x36642d(0x315)](_0x3b206f){const _0x68d63b=_0x36642d;let {row:_0x3e6604,column:_0x1d6c41}=_0x3b206f;if(_0x3e6604>=this['_range']['startRow']&&_0x3e6604<=this['_range'][_0x68d63b(0x183)]&&_0x1d6c41>=this[_0x68d63b(0x8e)][_0x68d63b(0x268)]&&_0x1d6c41<=this['_range'][_0x68d63b(0x349)]){this['setShapeProps']({'hovered':!0x0});return;}this[_0x68d63b(0xdf)]({'hovered':!0x1});}[_0x36642d(0x1ba)](_0x49da13){const _0x16bf91=_0x36642d;this[_0x16bf91(0x11f)](),this[_0x16bf91(0x161)]=!0x0,this[_0x16bf91(0x2d5)]=window[_0x16bf91(0x29b)](()=>{const _0x53c3f4=_0x16bf91;this['_isBlinkVisible']=!this[_0x53c3f4(0x161)],this['makeDirty'](!0x0);},0x1f4),this[_0x16bf91(0x191)]=window[_0x16bf91(0x30a)](()=>{const _0xadda57=_0x16bf91;this[_0xadda57(0x11f)](),this[_0xadda57(0x161)]=!0x0,this['makeDirty'](!0x0);},_0x49da13*0x3e8);}[_0x36642d(0x11f)](){const _0x2ceb7a=_0x36642d;this[_0x2ceb7a(0x2d5)]&&(window[_0x2ceb7a(0x33b)](this[_0x2ceb7a(0x2d5)]),this['_blinkIntervalTimer']=void 0x0),this[_0x2ceb7a(0x191)]&&(window[_0x2ceb7a(0x30c)](this['_blinkTimer']),this[_0x2ceb7a(0x191)]=void 0x0);}[_0x36642d(0x103)](_0x26cf28){return!0x1;}[_0x36642d(0x190)](){const _0x2466a5=_0x36642d;this[_0x2466a5(0x11f)](),super[_0x2466a5(0x190)]();}[_0x36642d(0x173)](_0x12dd2d){const _0x4e5607=_0x36642d;let _0x103d0c=this[_0x4e5607(0x255)],_0xb1b3b6=this[_0x4e5607(0x325)];if(this[_0x4e5607(0x16b)]&&!this[_0x4e5607(0x161)]&&(_0x103d0c=this[_0x4e5607(0x1dd)](this[_0x4e5607(0x255)]),_0xb1b3b6=this['_backgroundColor']?this[_0x4e5607(0x1dd)](this['_backgroundColor']):void 0x0),d[_0x4e5607(0x24c)][_0x4e5607(0x2f5)](_0x12dd2d,{'width':this[_0x4e5607(0x29c)],'height':this[_0x4e5607(0x96)],'strokeWidth':this[_0x4e5607(0x29e)]||1.5,'stroke':_0x103d0c,'evented':!0x1,'fill':_0xb1b3b6}),this['_hovered']||this[_0x4e5607(0x32c)]){var _0x59d2d4;_0x12dd2d[_0x4e5607(0xaf)](),_0x12dd2d[_0x4e5607(0x154)](0x1,0x0,0x0,0x1,this[_0x4e5607(0x29c)],(this[_0x4e5607(0xcc)]==='bottom'?0x0:-0x14)+((_0x59d2d4=this[_0x4e5607(0x34e)])==null?0x0:_0x59d2d4)),F[_0x4e5607(0x2f5)](_0x12dd2d,{'text':this[_0x4e5607(0x107)],'color':_0x103d0c}),_0x12dd2d[_0x4e5607(0x34a)]();}}['_getLighterColor'](_0x2355b8){const _0x4925a9=_0x36642d;return _0x2355b8[_0x4925a9(0x2ca)]('#')?_0x4925a9(0xde)+Number[_0x4925a9(0x1c7)](_0x2355b8[_0x4925a9(0x28a)](0x1,0x3),0x10)+',\x20'+Number[_0x4925a9(0x1c7)](_0x2355b8[_0x4925a9(0x28a)](0x3,0x5),0x10)+',\x20'+Number[_0x4925a9(0x1c7)](_0x2355b8[_0x4925a9(0x28a)](0x5,0x7),0x10)+_0x4925a9(0x152):_0x2355b8[_0x4925a9(0x2ca)]('rgba')?_0x2355b8[_0x4925a9(0x2ae)](/[\d.]+\)$/g,'0.2)'):_0x2355b8[_0x4925a9(0x2ca)](_0x4925a9(0xb0))?_0x2355b8[_0x4925a9(0x2ae)](_0x4925a9(0xb0),'rgba')[_0x4925a9(0x2ae)](')',_0x4925a9(0x152)):_0x2355b8;}};let B=class extends t['RxDisposable']{constructor(_0x9bd94f,_0xadf0bb,_0x32e59e,_0x4c7087){const _0x293b7f=_0x36642d;super(),this[_0x293b7f(0x170)]=_0x9bd94f,this['_sheetSkeletonManagerService']=_0xadf0bb,this[_0x293b7f(0x289)]=_0x32e59e,this[_0x293b7f(0xf0)]=_0x4c7087,S(this,'_cursors',new Set()),S(this,'_lastPointer',null),S(this,_0x293b7f(0x1bd),null),this[_0x293b7f(0x295)]();}[_0x36642d(0x295)](){const _0x96636b=_0x36642d;this['_sheetSkeletonManagerService'][_0x96636b(0x31f)]['pipe']((0x0,i[_0x96636b(0x2b1)])(this[_0x96636b(0x17f)]),(0x0,i[_0x96636b(0x246)])(_0x47f764=>{const _0x5a5e46=_0x96636b;if(_0x47f764){let _0x3077e4=_0x47f764[_0x5a5e46(0x120)];return(0x0,r[_0x5a5e46(0xd9)])(this['_collabCursorController'][_0x5a5e46(0x1ab)](this[_0x5a5e46(0x170)][_0x5a5e46(0x12f)]),this[_0x5a5e46(0xf0)][_0x5a5e46(0x1b1)])[_0x5a5e46(0x160)]((0x0,i[_0x5a5e46(0x102)])(([_0x154a46,_0x446468])=>{const _0x157d56=_0x5a5e46;let _0x99598c=new Map();return _0x154a46[_0x157d56(0x1cf)]((_0x20832f,_0x4d8e34)=>{const _0x42adcc=_0x157d56;if(_0x20832f[_0x42adcc(0x30d)]===_0x3077e4){let _0x4ed980={..._0x20832f};_0x4ed980[_0x42adcc(0x13a)]=this[_0x42adcc(0xf0)][_0x42adcc(0x203)](_0x20832f[_0x42adcc(0x13a)]),_0x99598c['set'](_0x4d8e34,_0x4ed980);}}),{'skeleton':_0x47f764,'cursors':_0x99598c};}));}return(0x0,r['of'])({'skeleton':null,'cursors':new Map()});}))[_0x96636b(0x238)](({skeleton:_0x2f38e2,cursors:_0x50961b})=>{const _0x18dda5=_0x96636b;this[_0x18dda5(0x33d)](),_0x2f38e2&&this[_0x18dda5(0x282)](_0x2f38e2,_0x50961b);}),this['disposeWithMe'](this[_0x96636b(0x2c1)]['currentSkeleton$'][_0x96636b(0x160)]((0x0,i[_0x96636b(0x2b1)])(this[_0x96636b(0x17f)]))['subscribe'](_0x3e18dc=>{const _0x38fa50=_0x96636b;var _0x2cde7d;if(_0x3e18dc==null)return;(_0x2cde7d=this[_0x38fa50(0x1bd)])==null||_0x2cde7d[_0x38fa50(0xa1)](),this[_0x38fa50(0x1bd)]=null;let {skeleton:_0x3dc956}=_0x3e18dc,{scene:_0x431702}=this[_0x38fa50(0x170)];this['_pointerMoveDisposable']=_0x431702[_0x38fa50(0x10e)][_0x38fa50(0x2e0)]((0x0,t[_0x38fa50(0x135)])(_0x1a2889=>{const _0x22490d=_0x38fa50;var _0x12cb72,_0x76aef4;let {offsetX:_0xb4b09c,offsetY:_0x168756}=_0x1a2889,{x:_0x3ba124,y:_0x43aa4e}=_0x431702['getRelativeToViewportCoord'](d['Vector2'][_0x22490d(0x21a)]([_0xb4b09c,_0x168756])),{scaleX:_0x13459e,scaleY:_0xf5e79}=_0x431702['getAncestorScale'](),_0x2792f5=_0x431702['getViewport'](d[_0x22490d(0x124)][_0x22490d(0x29a)]),_0x3c04ec=_0x431702[_0x22490d(0xdb)](d[_0x22490d(0x136)][_0x22490d(0x21a)]([_0x3ba124,_0x43aa4e]),_0x2792f5),_0x5e9657=_0x3dc956['getCellPositionByOffset'](_0xb4b09c,_0x168756,_0x13459e,_0xf5e79,_0x3c04ec);((_0x12cb72=this[_0x22490d(0x2f6)])==null?void 0x0:_0x12cb72[_0x22490d(0x18e)])===_0x5e9657[_0x22490d(0x18e)]&&((_0x76aef4=this[_0x22490d(0x2f6)])==null?void 0x0:_0x76aef4[_0x22490d(0x24b)])===_0x5e9657[_0x22490d(0x24b)]||this[_0x22490d(0xb6)][_0x22490d(0x1cf)](_0x38f674=>{const _0x1993e8=_0x22490d;_0x38f674[_0x1993e8(0x315)](_0x5e9657);});},0x64));})),this[_0x96636b(0x291)]((0x0,t['toDisposable'])(()=>{const _0x303e80=_0x96636b;var _0x1333a1;(_0x1333a1=this[_0x303e80(0x1bd)])==null||_0x1333a1[_0x303e80(0xa1)](),this[_0x303e80(0x1bd)]=null;}));}[_0x36642d(0x282)](_0x5b088d,_0xa04487){const _0x5009cb=_0x36642d;let _0x424cc1=this[_0x5009cb(0x2c1)]['getCurrentSkeleton']();if(!_0x424cc1)return;let _0x3dbe57=this[_0x5009cb(0xaa)]();if(!_0x3dbe57)return;this[_0x5009cb(0xb6)][_0x5009cb(0x1cf)](_0x3318b8=>{const _0x2187ea=_0x5009cb;_0x3318b8[_0x2187ea(0x2fc)]();});let {scene:_0x176574}=_0x3dbe57,_0x5a6eda=he(Array['from'](_0xa04487[_0x5009cb(0x182)]()))[_0x5009cb(0x102)](_0x4948a0=>{const _0x224b0c=_0x5009cb;let {color:_0x1d7161,range:_0x337e65,name:_0x359cbf,selection:_0x39ef66,sheetID:_0x6b3433}=_0x4948a0,{startColumn:_0x217d55,startRow:_0x2c52fd,endColumn:_0x8a239b,endRow:_0x52b0fe}=_0x337e65,_0x9b4bcd=(0x0,y['getCoordByCell'])(_0x2c52fd,_0x217d55,_0x176574,_0x424cc1),_0x4060ca=(0x0,y[_0x224b0c(0x1de)])(_0x52b0fe,_0x8a239b,_0x176574,_0x424cc1),{columnHeaderHeightAndMarginTop:_0x31912f}=_0x424cc1,{startX:_0xfd3301,startY:_0xe44ecf}=_0x9b4bcd,{endX:_0x24c4e7,endY:_0x7c2799}=_0x4060ca,_0x5a20b4=_0x24c4e7-_0xfd3301,_0x331f40=_0x7c2799-_0xe44ecf;return new z(_0x359cbf,{'labelPosition':_0xe44ecf-_0x31912f>=0x14?_0x224b0c(0x179):'bottom','sheetID':_0x6b3433,'range':_0x337e65,'color':_0x1d7161,'name':_0x359cbf,'selection':_0x39ef66,'left':_0xfd3301,'top':_0xe44ecf,'width':_0x5a20b4,'height':_0x331f40,'evented':!0x1,'zIndex':0x1389});});_0x176574['addObjects'](_0x5a6eda,0x1),this[_0x5009cb(0xb6)]=new Set(_0x5a6eda);}[_0x36642d(0x33d)](){const _0x3b8778=_0x36642d;var _0x10e8c2;(_0x10e8c2=this[_0x3b8778(0xb6)])==null||_0x10e8c2[_0x3b8778(0x1cf)](_0x9e886b=>_0x9e886b[_0x3b8778(0x190)]());}[_0x36642d(0xaa)](){const _0x55e21a=_0x36642d;return(0x0,y[_0x55e21a(0x2cb)])(this[_0x55e21a(0x170)][_0x55e21a(0x2ba)],this['_context']);}};B=w([C(0x1,(0x0,t['Inject'])(y['SheetSkeletonManagerService'])),C(0x2,(0x0,t['Inject'])(P)),C(0x3,(0x0,t[_0x36642d(0x26a)])(t[_0x36642d(0xda)]))],B);function he(_0x3dab72){const _0xcc864a=_0x36642d;let _0x586fd5=new Map();return _0x3dab72[_0xcc864a(0x1cf)](_0x237b1a=>{const _0x422646=_0xcc864a;if(_0x586fd5[_0x422646(0x302)](_0x237b1a[_0x422646(0x2b5)])){let _0x2750a9=_0x586fd5[_0x422646(0x1e6)](_0x237b1a[_0x422646(0x2b5)]);_0x2750a9['name']+=',\x20'+_0x237b1a[_0x422646(0xb3)];}else _0x586fd5[_0x422646(0x352)](_0x237b1a[_0x422646(0x2b5)],_0x237b1a);}),Array[_0xcc864a(0x31c)](_0x586fd5[_0xcc864a(0x182)]());}const ge=0x138a;var _e=class extends d[_0x36642d(0x300)]{constructor(_0x24a6fa,_0x5949c1){const _0x2f41d9=_0x36642d;super(_0x24a6fa,{..._0x5949c1,'evented':!0x1}),S(this,_0x2f41d9(0x255),_0x2f41d9(0x2cd)),S(this,_0x2f41d9(0x107),''),S(this,_0x2f41d9(0x32c),!0x0),_0x5949c1&&this['setShapeProps'](_0x5949c1);}['setShapeProps'](_0x47a9e2){const _0x41cc94=_0x36642d;var _0x360dd5,_0x5a3b16,_0x529fce,_0xcdc121,_0x1c8d97,_0x19c273,_0x3b6b1b,_0x369306;this[_0x41cc94(0x255)]=(_0x360dd5=_0x47a9e2[_0x41cc94(0x13a)])==null?this[_0x41cc94(0x255)]:_0x360dd5,this[_0x41cc94(0x107)]=(_0x5a3b16=_0x47a9e2['name'])==null?this[_0x41cc94(0x107)]:_0x5a3b16,this[_0x41cc94(0x32c)]=(_0x529fce=_0x47a9e2[_0x41cc94(0x130)])==null?this['_showText']:_0x529fce,this['evented']=!0x1,this[_0x41cc94(0x24f)]({'left':(_0xcdc121=_0x47a9e2[_0x41cc94(0x30f)])==null?this[_0x41cc94(0x30f)]:_0xcdc121,'top':(_0x1c8d97=_0x47a9e2[_0x41cc94(0x179)])==null?this[_0x41cc94(0x179)]:_0x1c8d97,'width':(_0x19c273=_0x47a9e2[_0x41cc94(0x29c)])==null?this[_0x41cc94(0x29c)]:_0x19c273,'height':(_0x3b6b1b=_0x47a9e2[_0x41cc94(0x96)])==null?this[_0x41cc94(0x96)]:_0x3b6b1b,'angle':(_0x369306=_0x47a9e2[_0x41cc94(0x2e4)])==null?this['angle']:_0x369306});}[_0x36642d(0x173)](_0x16ebb3){const _0x565fa4=_0x36642d;_0x16ebb3[_0x565fa4(0xaf)](),_0x16ebb3[_0x565fa4(0x204)]=this[_0x565fa4(0x255)],_0x16ebb3['lineWidth']=this[_0x565fa4(0x29e)]||1.5,_0x16ebb3['setLineDash']([0x6,0x4]),_0x16ebb3[_0x565fa4(0x2dd)](0x0,0x0,this[_0x565fa4(0x29c)],this['height']),_0x16ebb3['restore'](),this['_showText']&&(_0x16ebb3[_0x565fa4(0xaf)](),_0x16ebb3['transform'](0x1,0x0,0x0,0x1,this[_0x565fa4(0x29c)],-0x14),F[_0x565fa4(0x2f5)](_0x16ebb3,{'text':this[_0x565fa4(0x107)],'color':this[_0x565fa4(0x255)]}),_0x16ebb3[_0x565fa4(0x34a)]());}};let V=class extends t[_0x36642d(0xe6)]{constructor(_0x124117,_0x2c1956,_0xb97b90){const _0x5df504=_0x36642d;super(),this['_context']=_0x124117,this['_collabCursorController']=_0x2c1956,this[_0x5df504(0xf0)]=_0xb97b90,S(this,_0x5df504(0xb6),new Set()),S(this,_0x5df504(0x342),!0x1),S(this,'_isApplyingOverlays',!0x1),S(this,_0x5df504(0x1b2),new Map()),this['_init']();}[_0x36642d(0x190)](){const _0x2b09f7=_0x36642d;this[_0x2b09f7(0x33d)](),super[_0x2b09f7(0x190)]();}['_init'](){const _0x13ef58=_0x36642d;let _0x1970a0=this[_0x13ef58(0x170)][_0x13ef58(0x2ba)]['pageManager'][_0x13ef58(0x31a)],_0x3729b3=this['_collabCursorController'][_0x13ef58(0x1ab)](this['_context'][_0x13ef58(0x12f)]);this['disposeWithMe']((0x0,t[_0x13ef58(0x114)])((0x0,r[_0x13ef58(0xd9)])([_0x3729b3,_0x1970a0,this[_0x13ef58(0xf0)][_0x13ef58(0x1b1)]])['pipe']((0x0,r[_0x13ef58(0x2b1)])(this['dispose$']))[_0x13ef58(0x238)](([_0x2cc910,_0x2a44d5])=>{const _0x369b6c=_0x13ef58;let _0x32ea87=new Map();_0x2cc910['forEach']((_0x307fc1,_0x339ac0)=>{const _0x58ac47=_0x1d7e;_0x307fc1['subUnitId']===_0x2a44d5&&_0x32ea87[_0x58ac47(0x352)](_0x339ac0,{..._0x307fc1,'color':this[_0x58ac47(0xf0)][_0x58ac47(0x203)](_0x307fc1['color'])});}),this[_0x369b6c(0x1b2)]=_0x32ea87,this[_0x369b6c(0x10c)]();})));let _0x27426f=this[_0x13ef58(0x170)][_0x13ef58(0x22a)];this[_0x13ef58(0x291)]((0x0,t[_0x13ef58(0x114)])(_0x27426f['addObject$'][_0x13ef58(0x160)]((0x0,r[_0x13ef58(0x2b1)])(this[_0x13ef58(0x17f)]))[_0x13ef58(0x238)](()=>{const _0x24888a=_0x13ef58;this['_isApplyingOverlays']||this[_0x24888a(0x10c)]();})));}[_0x36642d(0x10c)](){const _0x396d14=_0x36642d;this[_0x396d14(0x342)]||(this[_0x396d14(0x342)]=!0x0,Promise['resolve']()[_0x396d14(0x243)](()=>{const _0x2b8f94=_0x396d14;this[_0x2b8f94(0x342)]=!0x1,this[_0x2b8f94(0x2c7)]();}));}['_render'](){const _0x5e1ccd=_0x36642d;var _0x13877e;this[_0x5e1ccd(0x33d)]();let _0x5f2ee6=(_0x13877e=this[_0x5e1ccd(0x170)][_0x5e1ccd(0x2ba)]['pageManager'][_0x5e1ccd(0x294)]())==null?void 0x0:_0x13877e[_0x5e1ccd(0x2c0)]();if(!_0x5f2ee6)return;let _0x37ceb3=[];if(this['_latestCursors']['forEach']((_0x2a9fe6,_0x763371)=>{const _0x5c6f0f=_0x5e1ccd;_0x2a9fe6['subUnitId']===_0x5f2ee6&&_0x2a9fe6[_0x5c6f0f(0x275)][_0x5c6f0f(0x1cf)](_0x355be4=>{const _0x59d926=_0x5c6f0f;let _0x386db1=(0x0,v[_0x59d926(0x2a9)])(_0x2a9fe6['unitId'],_0x2a9fe6['subUnitId'],_0x355be4),_0x59810b=this[_0x59d926(0x19d)](_0x386db1);if(!_0x59810b)return;let _0x731a28=this[_0x59d926(0x326)](_0x59810b);_0x37ceb3['push'](new _e(_0x59d926(0x301)+_0x763371+'-'+_0x355be4,{..._0x2a9fe6,'left':_0x731a28[_0x59d926(0x30f)],'top':_0x731a28['top'],'width':_0x731a28[_0x59d926(0x29c)],'height':_0x731a28['height'],'angle':_0x59810b[_0x59d926(0x2e4)],'evented':!0x1,'zIndex':ge}));});}),_0x37ceb3[_0x5e1ccd(0xad)]===0x0){this[_0x5e1ccd(0x170)][_0x5e1ccd(0x22a)][_0x5e1ccd(0x2fc)](!0x0);return;}this[_0x5e1ccd(0x298)]=!0x0,this[_0x5e1ccd(0x170)]['scene'][_0x5e1ccd(0x2fa)](_0x37ceb3,ge),this['_isApplyingOverlays']=!0x1,this['_cursors']=new Set(_0x37ceb3),this[_0x5e1ccd(0x170)][_0x5e1ccd(0x22a)]['makeDirty'](!0x0);}[_0x36642d(0x33d)](){const _0x29c0e0=_0x36642d;let _0x124280=Array[_0x29c0e0(0x31c)](this[_0x29c0e0(0xb6)]);if(_0x124280['length']===0x0)return;let _0x35e6bf=this['_context'][_0x29c0e0(0x22a)];'removeObjects'in _0x35e6bf&&typeof _0x35e6bf['removeObjects']==_0x29c0e0(0x296)?_0x35e6bf['removeObjects'](_0x124280):_0x124280[_0x29c0e0(0x1cf)](_0x5b0d09=>{const _0x139524=_0x29c0e0;_0x139524(0x25a)in _0x35e6bf&&typeof _0x35e6bf['removeObject']==_0x139524(0x296)?_0x35e6bf[_0x139524(0x25a)](_0x5b0d09):_0x5b0d09[_0x139524(0x190)]();}),this[_0x29c0e0(0xb6)][_0x29c0e0(0x180)](),_0x35e6bf[_0x29c0e0(0x2fc)](!0x0);}[_0x36642d(0x19d)](_0x5b302e){const _0x21cb03=_0x36642d;var _0x2601c7,_0x39116b,_0x596c4f;let _0x18c5bc=this[_0x21cb03(0x170)][_0x21cb03(0x22a)];return(_0x2601c7=(_0x39116b=(_0x596c4f=_0x18c5bc[_0x21cb03(0xab)])==null?void 0x0:_0x596c4f[_0x21cb03(0x109)](_0x18c5bc,_0x5b302e))==null?_0x18c5bc['getObject'](_0x5b302e):_0x39116b)==null?null:_0x2601c7;}[_0x36642d(0x326)](_0x491299){const _0x4cbfa1=_0x36642d;var _0xca308f,_0x3cf43c;let _0x34b396=_0x491299;return(_0xca308f=(_0x3cf43c=_0x34b396[_0x4cbfa1(0x8b)])==null?void 0x0:_0x3cf43c['call'](_0x34b396))==null?{'left':_0x491299[_0x4cbfa1(0x30f)],'top':_0x491299[_0x4cbfa1(0x179)],'width':_0x491299['width'],'height':_0x491299[_0x4cbfa1(0x96)]}:_0xca308f;}};V=w([C(0x1,(0x0,t[_0x36642d(0x26a)])(P)),C(0x2,(0x0,t[_0x36642d(0x26a)])(t[_0x36642d(0xda)]))],V);let H=class extends t[_0x36642d(0x1ad)]{constructor(_0x35a43b,_0x105d61,_0x380b3a,_0x1c1abf,_0x5c0568,_0x3f6ff3){const _0x50e6a1=_0x36642d;super(),this['_beforeCloseService']=_0x35a43b,this[_0x50e6a1(0xac)]=_0x105d61,this['_collaborationUIEventService']=_0x380b3a,this[_0x50e6a1(0xb1)]=_0x1c1abf,this[_0x50e6a1(0xa6)]=_0x5c0568,this[_0x50e6a1(0x23c)]=_0x3f6ff3,this[_0x50e6a1(0x174)](),this['_initEvent']();}[_0x36642d(0x174)](){const _0x2c3a6d=_0x36642d;this[_0x2c3a6d(0x291)](this[_0x2c3a6d(0x2b3)][_0x2c3a6d(0x127)](()=>{const _0x5451eb=_0x2c3a6d;if(this['_localCacheService']['saveTaskMap']['size'])return this[_0x5451eb(0x23c)]['t']('collaboration-client-ui.collaboration.offline-data-not-saved');}));}['_initEvent'](){const _0x38ed83=_0x36642d;this[_0x38ed83(0x291)](this['_collaborationUIEventService'][_0x38ed83(0x20b)]['subscribe'](_0x23cad1=>{const _0x1030bf=_0x38ed83;_0x23cad1['id']===e[_0x1030bf(0x256)][_0x1030bf(0x276)]&&this[_0x1030bf(0xb1)][_0x1030bf(0x31d)]({'type':a['MessageType']['Warning'],'content':this['_localeService']['t'](_0x1030bf(0x284))}),_0x23cad1['id']===e[_0x1030bf(0x256)]['CLOSE_ROOM']&&this['_messageService'][_0x1030bf(0x31d)]({'type':a['MessageType'][_0x1030bf(0x195)],'content':this[_0x1030bf(0x23c)]['t'](_0x1030bf(0x171))}),_0x23cad1['id']===e[_0x1030bf(0x256)][_0x1030bf(0x117)]&&this[_0x1030bf(0xa6)][_0x1030bf(0x31d)]({'title':this['_localeService']['t']('collaboration-client-ui.permission.title'),'content':this[_0x1030bf(0x23c)]['t'](_0x1030bf(0x177)),'type':_0x1030bf(0x22d),'duration':0x0}),_0x23cad1['id']===e[_0x1030bf(0x256)]['CONFLICT']&&this[_0x1030bf(0xa6)][_0x1030bf(0x31d)]({'title':this[_0x1030bf(0x23c)]['t']('collaboration-client-ui.conflict.title'),'content':this['_localeService']['t']('collaboration-client-ui.conflict.content'),'type':_0x1030bf(0x22d),'duration':0x0}),_0x23cad1['id']===e[_0x1030bf(0x256)]['JOIN_ROOM_FAILED']&&this[_0x1030bf(0xb1)][_0x1030bf(0x31d)]({'type':a[_0x1030bf(0x156)][_0x1030bf(0x195)],'content':this[_0x1030bf(0x23c)]['t'](_0x23cad1[_0x1030bf(0x12e)]||'')}),_0x23cad1['id']===e[_0x1030bf(0x256)][_0x1030bf(0x1b5)]&&this['_messageService'][_0x1030bf(0x31d)]({'type':a[_0x1030bf(0x156)][_0x1030bf(0x195)],'content':this[_0x1030bf(0x23c)]['t'](_0x1030bf(0x165))}),_0x23cad1['id']===e[_0x1030bf(0x256)][_0x1030bf(0x122)]&&this[_0x1030bf(0xb1)][_0x1030bf(0x31d)]({'type':a['MessageType'][_0x1030bf(0x242)],'content':this['_localeService']['t']('collaboration-client-ui.session.connection-failed')}),_0x23cad1['id']===e[_0x1030bf(0x256)]['SUBMIT_CHANGESET_TIMEOUT']&&this['_messageService']['show']({'type':a['MessageType'][_0x1030bf(0x242)],'content':this['_localeService']['t'](_0x1030bf(0x2d1))});}));}};H=w([C(0x0,n[_0x36642d(0x1ae)]),C(0x1,e['ILocalCacheService']),C(0x2,(0x0,t[_0x36642d(0x26a)])(e[_0x36642d(0xc6)])),C(0x3,n[_0x36642d(0x1a2)]),C(0x4,n[_0x36642d(0x1e3)]),C(0x5,(0x0,t[_0x36642d(0x26a)])(t[_0x36642d(0xfc)]))],H);let U=class{constructor(_0x370341,_0x166f2b){const _0x5766ba=_0x36642d;this[_0x5766ba(0x119)]=_0x370341,this[_0x5766ba(0x277)]=_0x166f2b;}[_0x36642d(0x32d)](_0x4ea185){const _0x4f5be9=_0x36642d;this['_transformUndoRedoStack'](_0x4ea185),this[_0x4f5be9(0x338)](_0x4ea185);}['transformRemoteChangeset'](_0x420b50){const _0x37a580=_0x36642d;let {unitID:_0x451ab5}=_0x420b50,{redoCache:_0x22598e}=this[_0x37a580(0x277)][_0x37a580(0x1ea)](_0x451ab5)['with'](p[_0x37a580(0x260)])['getUndoRedoMutationParamsCache']();if(_0x22598e[_0x37a580(0xad)]===0x0)return _0x420b50;let _0x36de73=t[_0x37a580(0x225)][_0x37a580(0x2f9)](_0x420b50[_0x37a580(0x181)][0x0]);for(let _0x1dc6d6=0x0;_0x1dc6d6<_0x22598e[_0x37a580(0xad)];_0x1dc6d6++){let _0x487241={'id':_0x37a580(0x2c4),'params':{..._0x22598e[_0x1dc6d6]}},_0x431dfa=this[_0x37a580(0x119)][_0x37a580(0x1d1)](_0x36de73,_0x487241,!0x1);if((0x0,h[_0x37a580(0x188)])(_0x431dfa))throw _0x431dfa['error'];_0x36de73=_0x431dfa['m1Prime'];}return{...t[_0x37a580(0x225)]['deepClone'](_0x420b50),'mutations':[_0x36de73]};}[_0x36642d(0xfa)](_0x5f1b91){const _0x59c93c=_0x36642d;let {unitID:_0x150ac1}=_0x5f1b91,_0x204713=this[_0x59c93c(0x277)][_0x59c93c(0x1ea)](_0x150ac1)[_0x59c93c(0x1db)](p[_0x59c93c(0x260)]),{undoCache:_0x5743ff,redoCache:_0x489dd2}=_0x204713[_0x59c93c(0x11b)]();if(_0x5743ff[_0x59c93c(0xad)]===0x0||_0x489dd2[_0x59c93c(0xad)]===0x0)return;let _0x4a51f1=[],_0x23cbb9=[],_0x28a663=t[_0x59c93c(0x225)]['deepClone'](_0x5f1b91[_0x59c93c(0x181)][0x0]),_0x2c4387=t[_0x59c93c(0x225)][_0x59c93c(0x2f9)](_0x5f1b91[_0x59c93c(0x181)][0x0]);for(let _0x54cb2f=_0x5743ff['length']-0x1;_0x54cb2f>=0x0;_0x54cb2f--){let _0x53db71={'id':_0x59c93c(0x2c4),'params':{..._0x5743ff[_0x54cb2f]}},_0x5a2a85={'id':_0x59c93c(0x2c4),'params':{..._0x489dd2[_0x54cb2f]}},_0x3e5233=this[_0x59c93c(0x119)][_0x59c93c(0x1d1)](_0x28a663,_0x53db71,!0x1),_0x5d19fb=this[_0x59c93c(0x119)][_0x59c93c(0x1d1)](_0x2c4387,_0x5a2a85,!0x1);if((0x0,h[_0x59c93c(0x188)])(_0x3e5233))throw _0x3e5233[_0x59c93c(0x22d)];if((0x0,h['isTransformMutationFailure'])(_0x5d19fb))throw _0x5d19fb['error'];_0x4a51f1[_0x59c93c(0x2bb)](_0x3e5233['m2Prime'][_0x59c93c(0x305)]),_0x23cbb9[_0x59c93c(0x2bb)](_0x5d19fb[_0x59c93c(0x290)][_0x59c93c(0x305)]),_0x28a663=_0x3e5233[_0x59c93c(0x2b6)],_0x2c4387=_0x5d19fb[_0x59c93c(0x2b6)];}_0x204713[_0x59c93c(0x146)]({'undoCache':_0x4a51f1,'redoCache':_0x23cbb9});}[_0x36642d(0x338)](_0xbb8d73){const _0x2493fa=_0x36642d;let {unitID:_0x4da8b3}=_0xbb8d73,_0x335c5e=this[_0x2493fa(0x277)][_0x2493fa(0x1ea)](_0x4da8b3)[_0x2493fa(0x1db)](p[_0x2493fa(0x260)]),_0x2ab47c=_0x335c5e['getActiveRange']();if(_0x2ab47c==null)return;let _0x285f19=[{'id':_0x2493fa(0x2c4),'params':{'unitId':_0xbb8d73['unitID'],'actions':null,'textRanges':[_0x2ab47c]}}],_0x5d24b9=this[_0x2493fa(0x119)][_0x2493fa(0x23e)](_0xbb8d73,_0x285f19);if(!(0x0,h[_0x2493fa(0x214)])(_0x5d24b9))throw _0x5d24b9[_0x2493fa(0x22d)];let _0x5a2711=_0x5d24b9[_0x2493fa(0x290)][0x0][_0x2493fa(0x305)][_0x2493fa(0x15e)];Array[_0x2493fa(0x2e2)](_0x5a2711)&&_0x5a2711[_0x2493fa(0xad)]&&_0x335c5e['setActiveRange'](_0x5a2711[0x0]);}};U=w([C(0x0,h['ITransformService']),C(0x1,d[_0x36642d(0x2a6)])],U);let W=class{constructor(_0x5a2e12,_0xa23365,_0x3a2f89){const _0x3f4ff1=_0x36642d;this['_injector']=_0x5a2e12,this[_0x3f4ff1(0x119)]=_0xa23365,this[_0x3f4ff1(0x2f0)]=_0x3a2f89;}[_0x36642d(0x321)](_0x350321){const _0x5175d2=_0x36642d;this[_0x5175d2(0xed)](_0x350321);}[_0x36642d(0xc7)](_0x5e4d09){const _0x58ce47=_0x36642d;let {unitID:_0x50840f}=_0x5e4d09,{collaboration:_0x529455}=this['_docStateChangeManagerService']['getStateCache'](_0x50840f);if(_0x529455['length']===0x0)return _0x5e4d09;let _0x218888=t[_0x58ce47(0x225)][_0x58ce47(0x2f9)](_0x5e4d09[_0x58ce47(0x181)][0x0]);for(let _0x53af58=0x0;_0x53af58<_0x529455[_0x58ce47(0xad)];_0x53af58++){let _0x1180b6={'id':_0x58ce47(0x2c4),'params':{'unitId':_0x529455[_0x53af58]['unitId'],..._0x529455[_0x53af58][_0x58ce47(0x319)]}},_0x5e8e8e=this[_0x58ce47(0x119)][_0x58ce47(0x1d1)](_0x218888,_0x1180b6,!0x1);if((0x0,h[_0x58ce47(0x188)])(_0x5e8e8e))throw _0x5e8e8e['error'];_0x218888=_0x5e8e8e['m1Prime'];}return{...t[_0x58ce47(0x225)][_0x58ce47(0x2f9)](_0x5e4d09),'mutations':[_0x218888]};}[_0x36642d(0xed)](_0xae9a40){const _0x39a5c8=_0x36642d;let {unitID:_0x9bc02c}=_0xae9a40,{history:_0x3005f8,collaboration:_0x25bfd6}=this[_0x39a5c8(0x2f0)][_0x39a5c8(0x1f8)](_0x9bc02c);if(_0x3005f8[_0x39a5c8(0xad)]===0x0&&_0x25bfd6[_0x39a5c8(0xad)]===0x0)return;let _0xd887bc=[],_0x3b4c30=[],_0xe5f1ec=t[_0x39a5c8(0x225)][_0x39a5c8(0x2f9)](_0xae9a40['mutations'][0x0]),_0x4163a8=t[_0x39a5c8(0x225)][_0x39a5c8(0x2f9)](_0xae9a40['mutations'][0x0]);for(let _0x2a4768=_0x3005f8['length']-0x1;_0x2a4768>=0x0;_0x2a4768--){let _0x2133cd={'id':_0x39a5c8(0x2c4),'params':{'unitId':_0x3005f8[_0x2a4768][_0x39a5c8(0x12f)],..._0x3005f8[_0x2a4768][_0x39a5c8(0x251)]}},_0x5a15f6={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x3005f8[_0x2a4768]['unitId'],..._0x3005f8[_0x2a4768][_0x39a5c8(0x319)]}},_0x400e8f=this[_0x39a5c8(0x119)][_0x39a5c8(0x1d1)](_0xe5f1ec,_0x2133cd,!0x1),_0x53b8e0=this[_0x39a5c8(0x119)][_0x39a5c8(0x1d1)](_0x4163a8,_0x5a15f6,!0x1);if((0x0,h[_0x39a5c8(0x188)])(_0x400e8f))throw _0x400e8f[_0x39a5c8(0x22d)];if((0x0,h['isTransformMutationFailure'])(_0x53b8e0))throw _0x53b8e0['error'];_0xd887bc[_0x39a5c8(0x2bb)]({..._0x3005f8[_0x2a4768],'undoState':_0x400e8f[_0x39a5c8(0x290)]['params'],'redoState':_0x53b8e0[_0x39a5c8(0x290)]['params']}),_0xe5f1ec=_0x400e8f['m1Prime'],_0x4163a8=_0x53b8e0['m1Prime'];}_0xe5f1ec=t[_0x39a5c8(0x225)][_0x39a5c8(0x2f9)](_0xae9a40[_0x39a5c8(0x181)][0x0]),_0x4163a8=t[_0x39a5c8(0x225)][_0x39a5c8(0x2f9)](_0xae9a40[_0x39a5c8(0x181)][0x0]);for(let _0xc848c0=_0x25bfd6[_0x39a5c8(0xad)]-0x1;_0xc848c0>=0x0;_0xc848c0--){let _0x4ac2ac={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x25bfd6[_0xc848c0][_0x39a5c8(0x12f)],..._0x25bfd6[_0xc848c0][_0x39a5c8(0x251)]}},_0x104e0e={'id':_0x39a5c8(0x2c4),'params':{'unitId':_0x25bfd6[_0xc848c0][_0x39a5c8(0x12f)],..._0x25bfd6[_0xc848c0][_0x39a5c8(0x319)]}},_0x12a17c=this['_transformService'][_0x39a5c8(0x1d1)](_0xe5f1ec,_0x4ac2ac,!0x1),_0x574f0e=this[_0x39a5c8(0x119)]['transformMutation'](_0x4163a8,_0x104e0e,!0x1);if((0x0,h['isTransformMutationFailure'])(_0x12a17c))throw _0x12a17c['error'];if((0x0,h[_0x39a5c8(0x188)])(_0x574f0e))throw _0x574f0e[_0x39a5c8(0x22d)];_0x3b4c30[_0x39a5c8(0x2bb)]({..._0x25bfd6[_0xc848c0],'undoState':_0x12a17c[_0x39a5c8(0x290)][_0x39a5c8(0x305)],'redoState':_0x574f0e[_0x39a5c8(0x290)][_0x39a5c8(0x305)]}),_0xe5f1ec=_0x12a17c['m1Prime'],_0x4163a8=_0x574f0e[_0x39a5c8(0x2b6)];}this[_0x39a5c8(0x2f0)][_0x39a5c8(0x1cb)](_0x9bc02c,{'history':_0xd887bc,'collaboration':_0x3b4c30});}};W=w([C(0x0,(0x0,t[_0x36642d(0x26a)])(t['Injector'])),C(0x1,h[_0x36642d(0x29d)]),C(0x2,(0x0,t[_0x36642d(0x26a)])(g[_0x36642d(0xd4)]))],W);let G=class{constructor(_0x30f920,_0x28e1a7){const _0x58f981=_0x36642d;this['_injector']=_0x30f920,this[_0x58f981(0x119)]=_0x28e1a7;}['transformSelections'](_0x1b5e9a){const _0x1eeb60=_0x36642d;var _0xbd72b3;let _0x5eb374=this[_0x1eeb60(0x193)][_0x1eeb60(0x1e6)](g[_0x1eeb60(0xb5)]),_0x3d0049=(_0xbd72b3=_0x5eb374[_0x1eeb60(0x253)]())==null?[]:_0xbd72b3;if(_0x3d0049['length']===0x0)return;let _0x2f4d6c=_0x1b5e9a['unitID'],_0x1e991c=[{'id':_0x1eeb60(0x2c4),'params':{'unitId':_0x2f4d6c,'actions':null,'textRanges':_0x3d0049}}],_0x55adb5=this[_0x1eeb60(0x119)]['transformMutationsWithChangeset'](_0x1b5e9a,_0x1e991c);if(!(0x0,h[_0x1eeb60(0x214)])(_0x55adb5))throw _0x55adb5[_0x1eeb60(0x22d)];let _0x3c021b=_0x55adb5[_0x1eeb60(0x290)][0x0][_0x1eeb60(0x305)][_0x1eeb60(0x15e)];Array[_0x1eeb60(0x2e2)](_0x3c021b)&&_0x3c021b[_0x1eeb60(0xad)]&&_0x5eb374['replaceDocRanges'](_0x3c021b,{'unitId':_0x2f4d6c,'subUnitId':_0x2f4d6c},!0x1);}};G=w([C(0x0,(0x0,t[_0x36642d(0x26a)])(t[_0x36642d(0x140)])),C(0x1,h[_0x36642d(0x29d)])],G);let K=class extends t[_0x36642d(0x1ad)]{constructor(_0x27b3ba,_0x19c31c,_0x53b290,_0xfd87d2,_0x471751,_0x10eb8b,_0x3dfcea){const _0x4bf560=_0x36642d;super(),this[_0x4bf560(0x220)]=_0x27b3ba,this[_0x4bf560(0x1e7)]=_0x19c31c,this[_0x4bf560(0x28b)]=_0x53b290,this[_0x4bf560(0x27a)]=_0xfd87d2,this[_0x4bf560(0x18f)]=_0x471751,this['_messageService']=_0x10eb8b,this[_0x4bf560(0x23c)]=_0x3dfcea,S(this,'_status$',new r[(_0x4bf560(0x2b7))](e['CollaborationStatus']['NOT_COLLAB'])),this[_0x4bf560(0x27b)]();}['_initEntityListener'](){const _0x347b19=_0x36642d;this['disposeWithMe'](this[_0x347b19(0x220)][_0x347b19(0x324)]['subscribe'](_0x25f2ec=>{const _0x393b6b=_0x347b19;_0x25f2ec instanceof e[_0x393b6b(0x2af)]&&_0x25f2ec[_0x393b6b(0xa9)]({'onTransformIME':_0x23bb9f=>this['_docTransformIMECacheService'][_0x393b6b(0x32d)](_0x23bb9f),'onTransformState':_0x2828a8=>this[_0x393b6b(0x28b)][_0x393b6b(0x321)](_0x2828a8),'onTransformSelections':_0x55cd56=>this[_0x393b6b(0x27a)]['transformSelections'](_0x55cd56),'onSyncEditingCollabCursor':_0xe9a60c=>this[_0x393b6b(0x18f)][_0x393b6b(0x10f)](_0xe9a60c),'onTransformRemoteChangesetByIMECache':_0x5d8a00=>this['_docTransformIMECacheService'][_0x393b6b(0xc7)](_0x5d8a00),'onTransformRemoteChangesetByStateCache':_0x4863d0=>this[_0x393b6b(0x28b)][_0x393b6b(0xc7)](_0x4863d0)});}));}};function _0x5261(){const _0x152913=['replace','DocCollaborationEntity','1618740XVnmjQ','takeUntil','setAlpha','_beforeCloseService','_ensureSubject','selection','m1Prime','BehaviorSubject','/universer-api/license/formula/limit/done','getMember','unit','unshift','indicator','getColor','TEXT_RANGE_LAYER_INDEX','handleInsertCol','getId','_sheetSkeletonManagerService','distinctUntilChanged','UNIVER_SHEET','doc.mutation.rich-text-editing','_scheduleHeartbeat','tooltipKey','_render','throttleTime','OFFLINE','startsWith','getSheetObject','CollaborationEvent','#4f46e5','_scheduleSaving','backupOfflineData','source','collaboration-client-ui.session.collaboration-timeout','fillRule','MemberService','_handleEvent','_blinkIntervalTimer','Loading','TEXT','_pollingInterval','SUCCESS','_createSocketURL','size','RECT','strokeRect','_startDocCollabCursor','find','subscribeEvent','_collabSessionService','isArray','getCurrentTypeOfUnit$','angle','BuiltInUIPart','_initDependencies','parse','search','collaboration-client-ui.formula.calculation.started','contains','addClipboardHook','releaseFormulaLimitUrl','DataLoaderService','newValue','InsertRangeMoveRightCommandId','_docStateChangeManagerService','IConfigService','type','runId','_document','drawWith','_lastPointer','getFocusedUnit','_handleJoinEvent','deepClone','addObjects','_checkAndWaitForCalculationPermission','makeDirty','font','green.600','_updateSubUnitFromURLParams','Shape','slide-collab-cursor-','has','_checkCalculationAvailable','9664cNOJmi','params','ONLINE','_session','getSnapshot','_shapes','setTimeout','_refreshCollabCursors','clearTimeout','sheetID','_logService','left','_showGuardMessage','COLORS','all','toRgbString','getCurrentUnitOfType','onMouseMove','storage','FormulaExecuteStageType','touchDependencies','redoState','activeSlideId$','getConfig','from','show','hide','currentSkeleton$','_getSessionTicket','transformStateCache','NOT_COLLAB','useDependency','entityInit$','_backgroundColor','_getObjectBounds','_getSaveTimeout','reason','cursorInfo$','univer-text-orange-500','ILogService','_showText','transformIMECache','_cachedData','decorate','max','getRangePointData','_initCommandInterceptor','ICommandService','Tooltip','collaboration-client-ui.formula.calculation.unable','runRefRangeMutations','DEFAULT_WS_SESSION_TICKET_URL','_transformPreviousActiveRange','_uiPartsService','functionsExecutedState','clearInterval','onPointerEnter$','_removeCollabCursors','_disabled','univer-text-xl\x20univer-transition-colors\x20univer-duration-200','_selfUnitIDs','univer-border-none\x20univer-bg-transparent','_renderScheduled','addEventListener','_highlightSecond','_docSkeletonManagerService','addObject','_initStatusComponent','push','endColumn','restore','flatMap','_commandService','_uploadLog','_offsetY','getUnhiddenWorksheets','_currentUsage','584796gHFLYD','set','12RnnUEP','getRealBound','filter','RemoveColCommandId','_range','_entityInit$','getOwnPropertyDescriptor','collaboration-client-ui.collabStatus.syncing','_docClipboardService','_online','6bqeaVQ','LoadingMultiIcon','height','collab-text-anchor-','currentUsage','highlightSecond','startRow','CanceledError','icon','getLocalCacheKey','pulse','...','RemoveRowCommandId','unsubscribe','Plugin','key','#FFF','findNodePositionByCharIndex','_notificationService','toISOString','NodePositionConvertToCursor','addHandlerCallback','_getSheetObject','getObjectIncludeInGroup','_localCacheService','length','body','save','rgb','_messageService','backgroundColor','name','SetSelectionsOperation','DocSelectionManagerService','_cursors','useMemo','OffLineIcon','code','slide-element-selection','AWAITING_WITH_PENDING','unload','split','beforeCommandExecuted','init','_entities','onTransformChange$','_setFormulaLimitStatus','collaboration-client-ui.collabStatus.synced','_drawTextRange','removeEventListener','CollaborationUIEventService','transformRemoteChangeset','getValue','OnLineIcon','UniverCollaborationClientPlugin','SetDocZoomRatioOperation','_labelPosition','toString','getUnitStatus$','_taskIds','urlChange$','[RemoteUniscriptService]:\x20no\x20focused\x20unit','OTHER_CLIENTS_EDITING','deserializeRangeWithSheet','DocStateChangeManagerService','enableDocumentCollaborationUI','LOCAL_CACHE_INTERVAL','sessionStatus$','button','combineLatest','ThemeService','getVpScrollXYInfoByPosToVp','_removeClearOtherTimer','_hovered','rgba(','setShapeProps','unitID','collaboration-client-ui.formula.calculation.waiting','preventDefault','_send','InsertRowCommandId','univer-appearance-none','RxDisposable','_colorIndex','ACTIVE_UNIT_EVENT_CHANNEL','_startSheetCollabCursor','_releaseCalculationLimit','1.0.0-alpha.0','UniverCollaborationClientUIPlugin','_transformHistoryAndStateStack','FormulaExecutedStateType','wsSessionTicketUrl','_themeService','assignAColorForMemberID','collaboration-client-ui.collabStatus.offline','executionId','jsx','_revisionService','setConfig','/universer-api/frontend/logs','_toggleOffline','RichTextEditingMutation','_transformUndoRedoStack','moveTo','LocaleService','mapTo','_cursorShapes','_registerDependencies','SheetCollabCursorShape','fromEvent','map','triggerDblclick','getParam','_imageIoService','startFormulaLimitUrl','_name','/run/','call','_initResize','unhandledrejection','_scheduleRender','roomMembers$','onPointerMove$','syncEditingCollabCursor','CollaborationSessionService','RevisionService','_toggleOnline','getTypeOfUnitDisposed$','toDisposable','debounceTime','_status$','PERMISSION_DENIED','constructor','_transformService','handleDeleteRangeMoveLeft','getUndoRedoMutationParamsCache','socket$','useObservable','div','_stopBlinking','sheetId','now','SOCKET_FAILED','_hasFormulaInDirtyRanges','SHEET_VIEWPORT_KEY','collaboration-client-ui.collabStatus.fetchMiss','handleMoveRange','registerBeforeClose','_anchorDot','_getScale','UniverInstanceType','SetFormulaCalculationNotificationMutation','IUIPartsService','_id','data','unitId','showText','send','invokeId','NodePositionConvertToRectRange','catch','debounce','Vector2','DocSkeletonManagerService','_urlService','roomMembers','color','_cursor','UNIVER_DOC','ErrorCode','yellow.400','isActive','Injector','version','getActiveSheet','Failed','univer-flex\x20univer-items-center\x20univer-justify-center','SetTextSelectionsOperation','setUndoRedoMutationParamsCache','defineProperty','bottom','_onCursorUpdate','eventID','_getAnchorBounding','UnitStatus','_saveTaskMap','createInstance','rgba(255,\x20255,\x20255,\x200.01)','_getFormulaLimitStatus','memberID',',\x200.2)','stack','transform','801QXRHGX','MessageType','@univerjs-pro/collaboration-client-ui','uni.network.url-service','_drawAnchor','HEADER_MENU','dirtyRanges','EffectRefRangId','SetWorksheetActivateCommand','textRanges','fillText','pipe','_isBlinkVisible','stageInfo','collabCursorState$','DesktopCollaborationStatusDisplayController','collaboration-client-ui.session.will-retry','getMergeData','RegularPolygon','isInternalEditorID','handleInsertRow','DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT','_highlight','useCallback','colno','_dataLoaderService','getCurrentSelections','_context','collaboration-client-ui.collaboration.closeRoom','_hover','_draw','_setupBeforeClosingHandler','loadUnit','USERS_LEAVE','collaboration-client-ui.permission.content','IURLService','top','bind','isFormulaString','arc','evenodd','prototype','dispose$','clear','mutations','values','endRow','onCommandExecuted','_assignedColors','fill','WebSocketService','isTransformMutationFailure','?taskId=','_handleHeartbeatEvent','_maxFormulaLimit','createIdentifier','object','column','_docSyncEditingCollabCursorService','dispose','_blinkTimer','saveOfflineData','_injector','ticket','Warning','handleInsertRangeMoveDown','limitInfo','UPDATE_CURSOR','iterator','getSkeleton','toPrimitive','ranges','_getSceneObjectByKey','onRendered','getSheetId','next','CollaborationStatus','IMessageService','_instanceService','_clearPolling','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','blue.400','_initWindowErrorListener','AWAITING','state$','_initUserListener','getCollabCursors$','_saveCache','Disposable','IBeforeCloseService','Subject','univer-text-red-500','currentTheme$','_latestCursors','WebBrowserSingleActiveUnitService','collab-text-range-','SOCKET_FAILED_RETRY','_univerInstanceService','MoveRangeCommandId','location','_roomMembers$','_startBlinking','TRANSFORM_CHANGE_OBSERVABLE_TYPE','delete','_pointerMoveDisposable','[Unhandled\x20Rejection]:\x20','pluginName','measureText','_configService','CollaborationDataLoaderController','_applyCommand','_memberService','CollaborationSocketService','IUniverInstanceService','parseInt','text','2747759OzzTyN','_config','setStateCache','merge','_initStatusListener','_handleHover','forEach','Module','transformMutation','_httpService','asObservable','CONFLICT','CollaborationController','lineTo','univer-h-8\x20univer-w-8\x20univer-rounded-lg','_handleLeaveEvent','[CollaborationDataLoaderController]','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','with','_syncEditingCollabCursorService','_getLighterColor','getCoordByCell','beginPath','univer-inline-flex\x20univer-items-center\x20univer-justify-center','_collaborationSessionService','exhaustSavingTask','INotificationService','getSheetBySheetId','_getMergeRange','get','_docTransformIMECacheService','searchParams','Unknown\x20user','getRenderById','_colorAssignService','_updateLocalCursor','status$','[Window\x20Error]:\x20','IImageIoService','history','setParam','ColorKit','getAllUnitsForType','PENDING','origin','_heartbeatTimer','symbol','getStateCache','_anchor','_hideTimer','InsertColCommandId','Optional','override','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','range','REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY','_textBubble','true','getColorFromTheme','strokeStyle','_updateURLWithCurrentState','SessionStatus','FETCH_MISS','sessionTicket','focusedId','IDocClipboardService','event$','engine','_docSkeleton','handleIRemoveCol','registerDependencies','univer-m-0\x20univer-p-0','_scene','enableLocalCache','status','isTransformMutationsWithChangesetSuccess','serializeRangeWithSheet','_initCommandExecutedListener','65400imtivd','toStringTag','getMemberID','FromArray','min','DeleteRangeMoveUpCommandId','focused$','highlight','packageName','_collaborationController','executeCommand','totalFormulasToCalculate','mergeOverrideWithDependencies','START_CALCULATION','Tools','popstate','univer-transition-all\x20univer-duration-200','_registerRenderDependencies','replaceState','scene','static','getCollabEntity$','error','href','getCurrentRevOfUnit','connectInjector','closePath',':backup:','934338GUJDMK','_memberID','univer-text-gray-400','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','_cursorInfo$','subscribe','post','updateOfflineData','cursorInfo','_localeService','handleInsertRangeMoveRight','transformMutationsWithChangeset','univer-text-blue-500','_doCreateSocket','onPointerLeave$','Error','then','add','_initUnhandledRejectionListener','switchMap','DependentOn','_refRangeService','UNIVER_SLIDE','UNIVER_COLLABORATION_CLIENT_WEB_PLUGIN','row','Rect','black','join','transformByState','handleDeleteRangeMoveUp','undoState','getItem','getDocRanges','reconnect','_color','CollaborationUIEventId','getCellMatrix','SYNCED','polite','removeObject','stringify','subUnitId','_clearOtherTimers','includes','_monkeyPatchLogService','DocIMEInputManagerService','setItem','_scheduleClearOtherTimer','complete','_localStorageService','HTTPService','registerComponent','string','startColumn','getUnitId','Inject','_drawRectRange','_onCursorDelete','application/json','debug','i18nKey','some','getUniverSheetInstance','_onRefRangeChange','ISlideDrawingStateService','getOffsetConfig','selectedIds','OTHER_CLIENT_EDITING','_renderManagerService','304072yfKrBo','_eventUnsubscribe','_docTransformSelectionsService','_initEntityListener','generateRandomId','_startSlideCollabCursor','Success','registerRenderModule','onStarting','_unitStatus','_updateCollabCursors','kind','collaboration-client-ui.collaboration.single-unit.warning','_lastResponseTimestamp','removeParam','shift','clickable','_collabCursorController','slice','_docTransformStateCacheService','subunit','spin','_startCalculationLimit','maxFormulaLimit','m2Prime','disposeWithMe','requireSession','fromEventSubject','getActiveSlide','_init','function','getTypeOfUnitAdded$','_isApplyingOverlays','DOC_RANGE_TYPE','VIEW_MAIN','setInterval','width','ITransformService','strokeWidth','_unitOnClients','handleIRemoveRow','span','enableFrontendLog','stage','lineno','offsetY','IRenderManagerService','hovered','SetFormulaCalculationStartMutation','buildDrawingOKey','_slideDrawingStateService','_setupSubUnitSync','clsx','fillStyle'];_0x5261=function(){return _0x152913;};return _0x5261();}K=w([C(0x0,(0x0,t['Inject'])(e[_0x36642d(0x1d5)])),C(0x1,(0x0,t[_0x36642d(0x26a)])(U)),C(0x2,(0x0,t[_0x36642d(0x26a)])(W)),C(0x3,(0x0,t['Inject'])(G)),C(0x4,(0x0,t[_0x36642d(0x26a)])(A)),C(0x5,n[_0x36642d(0x1a2)]),C(0x6,(0x0,t['Inject'])(t[_0x36642d(0xfc)]))],K);let q=class extends t[_0x36642d(0x1ad)]{constructor(_0x48491b,_0x2653c9,_0x53565e,_0xf04830){const _0x5bca26=_0x36642d;super(),this['_injector']=_0x48491b,this[_0x5bca26(0x1d2)]=_0x2653c9,this['_logService']=_0x53565e,this[_0x5bca26(0x1e1)]=_0xf04830,S(this,_0x5bca26(0x234),void 0x0),this[_0x5bca26(0x295)]();}[_0x36642d(0x295)](){const _0x3864ac=_0x36642d;this['_initWindowErrorListener'](),this['_initUnhandledRejectionListener'](),this[_0x3864ac(0x25f)](),this['_initUserListener']();}[_0x36642d(0x1aa)](){const _0x119058=_0x36642d;this[_0x119058(0x291)](this[_0x119058(0x1e1)][_0x119058(0x11c)]['subscribe'](_0x4121ae=>{const _0x114f72=_0x119058;this[_0x114f72(0x234)]=_0x4121ae==null?void 0x0:_0x4121ae[_0x114f72(0x151)];}));}[_0x36642d(0x1a7)](){const _0x1b1e56=_0x36642d;let _0x3dfc93=_0x56a169=>{const _0x85687a=_0x1d7e;var _0x1749c8;this[_0x85687a(0x34d)](_0x85687a(0x22d),_0x85687a(0x1ee)+_0x56a169['message']+'\x20at\x20'+_0x56a169['filename']+':'+_0x56a169[_0x85687a(0x2a4)]+':'+_0x56a169[_0x85687a(0x16d)]+'\x0a'+(((_0x1749c8=_0x56a169[_0x85687a(0x22d)])==null?void 0x0:_0x1749c8[_0x85687a(0x153)])||''));};window[_0x1b1e56(0x343)](_0x1b1e56(0x22d),_0x3dfc93),this[_0x1b1e56(0x291)](()=>{const _0xee78c3=_0x1b1e56;window[_0xee78c3(0xc5)](_0xee78c3(0x22d),_0x3dfc93);});}[_0x36642d(0x245)](){const _0x55e45d=_0x36642d;let _0x1ff736=_0x57ff35=>{const _0x518810=_0x1d7e;this[_0x518810(0x34d)]('error',_0x518810(0x1be)+_0x57ff35[_0x518810(0x328)]);};window['addEventListener'](_0x55e45d(0x10b),_0x1ff736),this[_0x55e45d(0x291)](()=>{const _0x59b583=_0x55e45d;window[_0x59b583(0xc5)](_0x59b583(0x10b),_0x1ff736);});}[_0x36642d(0x25f)](){const _0x497fcb=_0x36642d;let _0x21f2d9=this[_0x497fcb(0x30e)]['error'][_0x497fcb(0x17a)](this[_0x497fcb(0x30e)]);this[_0x497fcb(0x30e)][_0x497fcb(0x22d)]=(..._0x3a7c81)=>{const _0x240a37=_0x497fcb;let _0x4a7795=_0x3a7c81[_0x240a37(0x102)](_0x5e5c15=>_0x5e5c15 instanceof Error?_0x5e5c15['message']+'\x0a'+_0x5e5c15['stack']:String(_0x5e5c15))[_0x240a37(0x24e)]('\x20');this[_0x240a37(0x34d)](_0x240a37(0x22d),'[LogService\x20Error]:\x20'+_0x4a7795),_0x21f2d9(..._0x3a7c81);},this[_0x497fcb(0x291)](()=>{const _0x1c5bc9=_0x497fcb;this[_0x1c5bc9(0x30e)][_0x1c5bc9(0x22d)]=_0x21f2d9;});}['_uploadLog'](_0x413a70,_0x29461b){const _0x64e86d=_0x36642d;try{let _0x4d4118={'userId':this[_0x64e86d(0x234)],'logLabel':_0x413a70,'content':_0x29461b};this[_0x64e86d(0x1d2)][_0x64e86d(0x239)](_0x64e86d(0xf7),{'body':_0x4d4118})[_0x64e86d(0x134)](()=>{});}catch{}}};q=w([C(0x0,(0x0,t[_0x36642d(0x26a)])(t[_0x36642d(0x140)])),C(0x1,(0x0,t[_0x36642d(0x26a)])(f[_0x36642d(0x265)])),C(0x2,t['ILogService']),C(0x3,(0x0,t[_0x36642d(0x26a)])(e[_0x36642d(0x110)]))],q);function ve(_0x35f2a2){const _0x54f10c=_0x36642d;var _0x1f183a,_0xc477c5;let _0x344150=(_0x1f183a=_0x35f2a2[_0x54f10c(0x162)])==null?void 0x0:_0x1f183a[_0x54f10c(0x2a3)],_0x3c141b=((_0xc477c5=_0x35f2a2[_0x54f10c(0x162)])==null?void 0x0:_0xc477c5[_0x54f10c(0x222)])||0x0;return _0x344150===_[_0x54f10c(0x317)][_0x54f10c(0x224)]&&_0x3c141b>0x0;}function ye(_0x222b77){const _0x14a128=_0x36642d;return _0x222b77[_0x14a128(0x33a)]===_[_0x14a128(0xee)][_0x14a128(0x2d9)];}let J=class extends t[_0x36642d(0x1ad)]{constructor(_0x3ede6f,_0x2b697a,_0x2021e9,_0xbbf600,_0xf5bab5,_0xd98204,_0x257c33){const _0x5dd01d=_0x36642d;super(),this[_0x5dd01d(0xb1)]=_0x3ede6f,this['_commandService']=_0x2b697a,this[_0x5dd01d(0x1c1)]=_0x2021e9,this[_0x5dd01d(0x1d2)]=_0xbbf600,this[_0x5dd01d(0x1b6)]=_0xf5bab5,this[_0x5dd01d(0x30e)]=_0xd98204,this['_localeService']=_0x257c33,S(this,_0x5dd01d(0x2d8),null),S(this,_0x5dd01d(0x18b),0x0),S(this,_0x5dd01d(0x350),0x0),S(this,_0x5dd01d(0xcf),[]),S(this,_0x5dd01d(0x285),0x0),this['_initCommandInterceptor']();}[_0x36642d(0x332)](){const _0x5f16b7=_0x36642d;this[_0x5f16b7(0x291)](this[_0x5f16b7(0x34c)][_0x5f16b7(0xbe)]((_0x493f63,_0x30aaa3)=>{const _0x11ab24=_0x5f16b7;var _0x136687;if(_0x493f63['id']!==_[_0x11ab24(0x2a8)]['id'])return;let _0x17994a=_0x493f63[_0x11ab24(0x305)];if(this[_0x11ab24(0x123)]((_0x136687=_0x17994a[_0x11ab24(0x15b)])==null?[]:_0x136687)&&!this[_0x11ab24(0x303)]())throw this[_0x11ab24(0x2fb)](_0x493f63,_0x30aaa3),this['_showGuardMessage'](),new t[(_0x11ab24(0x9b))]();})),this['disposeWithMe'](this['_commandService'][_0x5f16b7(0x184)]((_0x2f16db,_0xd0bf84)=>{const _0x47ea86=_0x5f16b7;if(_0x2f16db['id']!==_[_0x47ea86(0x12b)]['id'])return;let _0x43bdbb=_0x2f16db[_0x47ea86(0x305)];if(ve(_0x43bdbb)){let _0x365b77=(0x0,t[_0x47ea86(0x27c)])();this[_0x47ea86(0xcf)][_0x47ea86(0x348)](_0x365b77),this[_0x47ea86(0x28e)](_0x365b77);}else{if(ye(_0x43bdbb)&&this[_0x47ea86(0xcf)][_0x47ea86(0xad)]>0x0){let _0x591d4c=this['_taskIds'][_0x47ea86(0x287)]();this[_0x47ea86(0xea)](_0x591d4c);}}}));}['dispose'](){const _0x1013d9=_0x36642d;super['dispose'](),this[_0x1013d9(0x1a4)](),this['_taskIds']=[],this[_0x1013d9(0x350)]=0x0,this[_0x1013d9(0x18b)]=0x0,this[_0x1013d9(0x285)]=0x0;}async[_0x36642d(0x2fb)](_0x5e93af,_0x3bfc12){const _0x75b80b=_0x36642d;for(let _0x4e2a92=0x0;_0x4e2a92<0x1e;_0x4e2a92++)try{if(await this[_0x75b80b(0x150)](),this['_checkCalculationAvailable']()){this[_0x75b80b(0x1c3)](_0x5e93af,_0x3bfc12),this[_0x75b80b(0xb1)][_0x75b80b(0x31d)]({'content':this[_0x75b80b(0x23c)]['t'](_0x75b80b(0x2e9)),'type':a[_0x75b80b(0x156)][_0x75b80b(0x27e)]});return;}await new Promise(_0x1c9b5b=>{const _0x5268e8=_0x75b80b;this[_0x5268e8(0x2d8)]=window['setTimeout'](_0x1c9b5b,0x3e8);});}catch(_0x12c43a){this[_0x75b80b(0x30e)][_0x75b80b(0x22d)](_0x12c43a);}this[_0x75b80b(0xb1)][_0x75b80b(0x31d)]({'content':this['_localeService']['t'](_0x75b80b(0x335)),'type':a[_0x75b80b(0x156)][_0x75b80b(0x242)]});}['_applyCommand'](_0x520847,_0x438345){const _0x401c1e=_0x36642d;try{this[_0x401c1e(0x34c)]['executeCommand'](_0x520847['id'],_0x520847[_0x401c1e(0x305)],_0x438345);}catch(_0x1d168c){this['_logService'][_0x401c1e(0x22d)](_0x1d168c);}}[_0x36642d(0xc2)](_0x42bcf4,_0x334eb0){const _0x3d8e71=_0x36642d;_0x334eb0<this['_lastResponseTimestamp']||(this[_0x3d8e71(0x285)]=_0x334eb0,this['_maxFormulaLimit']=Number[_0x3d8e71(0x1c7)](_0x42bcf4[_0x3d8e71(0x28f)]),this[_0x3d8e71(0x350)]=Number[_0x3d8e71(0x1c7)](_0x42bcf4[_0x3d8e71(0x98)]));}async[_0x36642d(0x28e)](_0x75cb4e){const _0x513ee6=_0x36642d;let _0x104c85=Date[_0x513ee6(0x121)]();try{var _0x33e8f9,_0x563991;let _0xbfd933=((_0x33e8f9=this[_0x513ee6(0x1c1)][_0x513ee6(0x31b)](e[_0x513ee6(0x1a5)]))==null?void 0x0:_0x33e8f9[_0x513ee6(0x106)])||'/universer-api/license/formula/limit/start',_0x331bae=(await this[_0x513ee6(0x1d2)][_0x513ee6(0x239)](_0xbfd933,{'body':JSON[_0x513ee6(0x25b)]({'taskId':_0x75cb4e})}))[_0x513ee6(0xae)];if(((_0x563991=_0x331bae['error'])==null?void 0x0:_0x563991[_0x513ee6(0xb9)])!==b[_0x513ee6(0x13d)]['OK'])return;this[_0x513ee6(0xc2)](_0x331bae[_0x513ee6(0x197)],_0x104c85);}catch(_0x5426b1){this[_0x513ee6(0x30e)][_0x513ee6(0x22d)](_0x5426b1);}}async[_0x36642d(0x150)](_0x1f1175){const _0x17cf60=_0x36642d;let _0xb984a2=Date[_0x17cf60(0x121)]();try{var _0x1f0c77,_0x6cefea;let _0x1137f4=((_0x1f0c77=this[_0x17cf60(0x1c1)]['getConfig'](e[_0x17cf60(0x1a5)]))==null?void 0x0:_0x1f0c77['getFormulaLimitStatusUrl'])||'/universer-api/license/formula/limit/status',_0x1ad1d0=_0x1f1175?_0x1137f4+_0x17cf60(0x189)+encodeURIComponent(_0x1f1175):_0x1137f4,_0xa920e6=(await this[_0x17cf60(0x1d2)][_0x17cf60(0x1e6)](_0x1ad1d0))['body'];if(((_0x6cefea=_0xa920e6[_0x17cf60(0x22d)])==null?void 0x0:_0x6cefea['code'])!==b[_0x17cf60(0x13d)]['OK'])return;this['_setFormulaLimitStatus'](_0xa920e6[_0x17cf60(0x197)],_0xb984a2);}catch(_0x446b92){this['_logService'][_0x17cf60(0x22d)](_0x446b92);}}async[_0x36642d(0xea)](_0x18bac8){const _0x249219=_0x36642d;let _0x39a296=Date['now']();try{var _0x17d3a0,_0x2c3dea;let _0x3f823c=((_0x17d3a0=this[_0x249219(0x1c1)][_0x249219(0x31b)](e[_0x249219(0x1a5)]))==null?void 0x0:_0x17d3a0[_0x249219(0x2ec)])||_0x249219(0x2b8),_0x1e310e=(await this[_0x249219(0x1d2)][_0x249219(0x239)](_0x3f823c,{'body':JSON[_0x249219(0x25b)]({'taskId':_0x18bac8})}))[_0x249219(0xae)];if(((_0x2c3dea=_0x1e310e[_0x249219(0x22d)])==null?void 0x0:_0x2c3dea[_0x249219(0xb9)])!==b[_0x249219(0x13d)]['OK'])return;this['_setFormulaLimitStatus'](_0x1e310e['limitInfo'],_0x39a296);}catch(_0x59fdc3){this[_0x249219(0x30e)][_0x249219(0x22d)](_0x59fdc3);}}[_0x36642d(0x303)](){const _0x44414c=_0x36642d;return this[_0x44414c(0x18b)]===0x0?!0x0:this[_0x44414c(0x18b)]-this[_0x44414c(0x350)]>0x0;}[_0x36642d(0x1a4)](){const _0x5307bd=_0x36642d;this[_0x5307bd(0x2d8)]&&(clearTimeout(this[_0x5307bd(0x2d8)]),this[_0x5307bd(0x2d8)]=null);}[_0x36642d(0x310)](){const _0x520d43=_0x36642d;this[_0x520d43(0xb1)]['show']({'content':this[_0x520d43(0x23c)]['t'](_0x520d43(0xe1)),'type':a[_0x520d43(0x156)][_0x520d43(0x2d6)]});}['_hasFormulaInDirtyRanges'](_0xb48e89){const _0xd3e726=_0x36642d;for(let _0x4acfa2 of _0xb48e89){let {unitId:_0x2146c4,sheetId:_0x5d69aa,range:_0x53ee0f}=_0x4acfa2,_0x5ebe20=this[_0xd3e726(0x1b6)]['getUnit'](_0x2146c4);if(!_0x5ebe20)continue;let _0x1fd959=_0x5ebe20[_0xd3e726(0x1e4)](_0x5d69aa);if(!_0x1fd959)continue;let _0x2315e0=_0x1fd959[_0xd3e726(0x257)]();for(let _0x5d9f05=_0x53ee0f[_0xd3e726(0x9a)];_0x5d9f05<=_0x53ee0f['endRow'];_0x5d9f05++)for(let _0x1cd2ad=_0x53ee0f[_0xd3e726(0x268)];_0x1cd2ad<=_0x53ee0f[_0xd3e726(0x349)];_0x1cd2ad++){let _0x483d25=_0x2315e0['getValue'](_0x5d9f05,_0x1cd2ad);if(_0x483d25&&((0x0,t[_0xd3e726(0x17b)])(_0x483d25['f'])||(0x0,t['isFormulaId'])(_0x483d25['si'])))return!0x0;}}return!0x1;}};J=w([C(0x0,(0x0,t['Inject'])(n[_0x36642d(0x1a2)])),C(0x1,t[_0x36642d(0x333)]),C(0x2,t[_0x36642d(0x2f1)]),C(0x3,(0x0,t[_0x36642d(0x26a)])(f['HTTPService'])),C(0x4,t['IUniverInstanceService']),C(0x5,t['ILogService']),C(0x6,(0x0,t[_0x36642d(0x26a)])(t['LocaleService']))],J);let Y=class extends t[_0x36642d(0x1ad)]{constructor(_0x9ee670,_0x5183a3,_0x43c529){const _0x273bec=_0x36642d;super(),this['_configService']=_0x9ee670,this[_0x273bec(0x264)]=_0x5183a3,this[_0x273bec(0xf5)]=_0x43c529,S(this,_0x273bec(0x32e),new Map()),S(this,'_saveTaskMap',new Map()),S(this,_0x273bec(0x33e),!0x1);}['disableLocalCache'](){this['_disabled']=!0x0;}[_0x36642d(0x212)](){this['_disabled']=!0x1;}get['saveTaskMap'](){const _0x4429d5=_0x36642d;return this[_0x4429d5(0x14d)];}[_0x36642d(0x190)](){const _0x41f6cb=_0x36642d;this['exhaustSavingTask']()['then'](()=>super[_0x41f6cb(0x190)]());}async['loadOfflineData'](_0xd4d8ca){const _0x23df86=_0x36642d;return this[_0x23df86(0x33e)]?null:this[_0x23df86(0x264)][_0x23df86(0x252)]((0x0,e[_0x23df86(0x9d)])(_0xd4d8ca));}async[_0x36642d(0x192)](_0x23b46b,_0x3550bf){const _0x13fd1=_0x36642d;return!!this[_0x13fd1(0x264)]['setItem']((0x0,e[_0x13fd1(0x9d)])(_0x23b46b),_0x3550bf);}async[_0x36642d(0x2cf)](_0x3c7dbd,_0x2cd220){const _0x2077d7=_0x36642d;var _0x5def0c;let _0x58d023=(_0x5def0c=this[_0x2077d7(0x32e)]['get'](_0x3c7dbd))==null?await this[_0x2077d7(0x264)]['getItem']((0x0,e[_0x2077d7(0x9d)])(_0x3c7dbd)):_0x5def0c;if(!_0x58d023)return;let _0x4e37fb=Date[_0x2077d7(0x121)](),_0x27c2bb=new Date(_0x4e37fb)[_0x2077d7(0xa7)]();await this[_0x2077d7(0x264)][_0x2077d7(0x261)]((0x0,e[_0x2077d7(0x9d)])(_0x3c7dbd)+_0x2077d7(0x232)+_0x4e37fb,{'reason':_0x2cd220,'createdAt':_0x27c2bb,'data':_0x58d023});}[_0x36642d(0x23a)](_0x5f056c,_0x22b132,_0xd07df5,_0x2be674){const _0x2150f3=_0x36642d;let _0x5cca53=this['_revisionService'][_0x2150f3(0x22f)](_0x5f056c);this[_0x2150f3(0x32e)][_0x2150f3(0x352)](_0x5f056c,{'unitID':_0x5f056c,'type':_0x22b132,'awaitingChangeset':_0xd07df5,'mutations':_0x2be674,'rev':_0x5cca53}),this[_0x2150f3(0x14d)][_0x2150f3(0x302)](_0x5f056c)||this[_0x2150f3(0x2ce)](_0x5f056c);}[_0x36642d(0x2ce)](_0x4f4eca){const _0x52b1f8=_0x36642d;let _0x4c6651=this[_0x52b1f8(0x327)]();_0x4c6651===0x0?this[_0x52b1f8(0x1ac)](_0x4f4eca):this[_0x52b1f8(0x14d)][_0x52b1f8(0x352)](_0x4f4eca,setTimeout(()=>this[_0x52b1f8(0x1ac)](_0x4f4eca),_0x4c6651));}[_0x36642d(0x327)](){const _0x545d00=_0x36642d;var _0x3d4b2d;return(_0x3d4b2d=this['_configService'][_0x545d00(0x31b)](e['LOCAL_CACHE_INTERVAL_KEY']))==null?e[_0x545d00(0xd6)]:_0x3d4b2d;}['_saveCache'](_0x31a3af){const _0x18241c=_0x36642d;let _0x301063=this[_0x18241c(0x14d)][_0x18241c(0x1e6)](_0x31a3af);return _0x301063!==void 0x0&&window[_0x18241c(0x30c)](_0x301063),this['_localStorageService'][_0x18241c(0x261)]((0x0,e[_0x18241c(0x9d)])(_0x31a3af),this['_cachedData'][_0x18241c(0x1e6)](_0x31a3af))[_0x18241c(0x243)](()=>this[_0x18241c(0x14d)]['delete'](_0x31a3af));}async[_0x36642d(0x1e2)](){const _0x107922=_0x36642d;let _0x21fc25=[];this[_0x107922(0x14d)][_0x107922(0x1cf)]((_0x1c3c06,_0x56e036)=>{const _0x504803=_0x107922;window[_0x504803(0x30c)](_0x1c3c06),_0x21fc25['push'](this[_0x504803(0x1ac)](_0x56e036)['then'](()=>{const _0x2e489d=_0x504803;this[_0x2e489d(0x14d)][_0x2e489d(0x1bc)](_0x56e036);}));}),await Promise[_0x107922(0x312)](_0x21fc25);}};Y=w([C(0x0,t[_0x36642d(0x2f1)]),C(0x1,t['ILocalStorageService']),C(0x2,(0x0,t[_0x36642d(0x26a)])(h[_0x36642d(0x111)]))],Y);var X=class extends t['RxDisposable']{constructor(){const _0x138627=_0x36642d;super(),S(this,_0x138627(0xd0),void 0x0),this[_0x138627(0xd0)]=(0x0,r[_0x138627(0x101)])(window,_0x138627(0x226))[_0x138627(0x160)]((0x0,r[_0x138627(0x2b1)])(this[_0x138627(0x17f)]),(0x0,r['shareReplay'])({'bufferSize':0x1,'refCount':!0x0}),(0x0,r[_0x138627(0xfd)])(void 0x0));}[_0x36642d(0x1f1)](_0x2c7cd6,_0x262d80,_0xb16dff=!0x1){const _0x5108be=_0x36642d;let _0x4db5ee=new URL(window[_0x5108be(0x1b8)]['href']);_0x4db5ee[_0x5108be(0x1e8)][_0x5108be(0x352)](_0x2c7cd6,_0x262d80),_0xb16dff?window[_0x5108be(0x1f0)][_0x5108be(0x229)]('','',_0x4db5ee[_0x5108be(0xcd)]()):window['history']['pushState']('','',_0x4db5ee[_0x5108be(0xcd)]());}[_0x36642d(0x286)](_0x1fbc3a,_0x257f8c=!0x1){const _0x277db4=_0x36642d;let _0x46acac=new URL(window[_0x277db4(0x1b8)][_0x277db4(0x22e)]);_0x46acac[_0x277db4(0x1e8)][_0x277db4(0x1bc)](_0x1fbc3a),_0x257f8c?window[_0x277db4(0x1f0)]['replaceState']('','',_0x46acac[_0x277db4(0xcd)]()):window[_0x277db4(0x1f0)]['pushState']('','',_0x46acac['toString']());}['getParam'](_0x14346f){const _0x457fba=_0x36642d;var _0x10bc7a;return(_0x10bc7a=new URL(window[_0x457fba(0x1b8)]['href'])[_0x457fba(0x1e8)]['get'](_0x14346f))==null?void 0x0:_0x10bc7a;}};let Z=class extends t[_0x36642d(0xa2)]{constructor(_0xa47304=ce,_0x461d39,_0x3e62a5,_0x253b5a){const _0x64c597=_0x36642d;super(),this[_0x64c597(0x1ca)]=_0xa47304,this[_0x64c597(0x277)]=_0x461d39,this[_0x64c597(0x193)]=_0x3e62a5,this[_0x64c597(0x1c1)]=_0x253b5a;let {..._0x3b4438}=(0x0,t[_0x64c597(0x1cc)])({},ce,this[_0x64c597(0x1ca)]);this['_configService'][_0x64c597(0xf6)]('collaboration-client-ui.config',_0x3b4438);}[_0x36642d(0x280)](){const _0x20f8ea=_0x36642d;this['_registerDependencies'](),this[_0x20f8ea(0x2e6)]();}[_0x36642d(0x19e)](){this['_registerRenderDependencies']();}[_0x36642d(0xff)](){const _0x5adb2c=_0x36642d;var _0x3d932d;let _0x59c798=[[k],[J],[E,{'useClass':X}],[f['ISocketService'],{'useClass':f[_0x5adb2c(0x187)]}],[e['ILocalCacheService'],{'useClass':Y}],[T],[H],[P],[D]];this['_config'][_0x5adb2c(0xd5)]!==!0x1&&_0x59c798[_0x5adb2c(0x348)]([G],[U],[W],[A],[K],[O]),this['_config'][_0x5adb2c(0x2a2)]&&_0x59c798[_0x5adb2c(0x348)]([q]),(0x0,t[_0x5adb2c(0x20f)])(this['_injector'],(0x0,t[_0x5adb2c(0x223)])(_0x59c798,(_0x3d932d=this['_config'])==null?void 0x0:_0x3d932d[_0x5adb2c(0x1fd)]));}[_0x36642d(0x228)](){const _0x1b03d5=_0x36642d;this[_0x1b03d5(0x1ca)]['enableDocumentCollaborationUI']!==!0x1&&this[_0x1b03d5(0x291)](this['_renderManagerService'][_0x1b03d5(0x27f)](t[_0x1b03d5(0x12a)][_0x1b03d5(0x13c)],[R])),this[_0x1b03d5(0x291)](this['_renderManagerService'][_0x1b03d5(0x27f)](t['UniverInstanceType']['UNIVER_SHEET'],[B])),this[_0x1b03d5(0x291)](this[_0x1b03d5(0x277)]['registerRenderModule'](t[_0x1b03d5(0x12a)][_0x1b03d5(0x249)],[V]));}[_0x36642d(0x2e6)](){const _0x45afea=_0x36642d;(0x0,t[_0x45afea(0x318)])(this[_0x45afea(0x193)],[[P],[T],[H],[D],[J]]),this[_0x45afea(0x1ca)][_0x45afea(0xd5)]!==!0x1&&(0x0,t[_0x45afea(0x318)])(this[_0x45afea(0x193)],[[K],[O]]),this[_0x45afea(0x1ca)][_0x45afea(0x2a2)]&&(0x0,t[_0x45afea(0x318)])(this[_0x45afea(0x193)],[[q]]);}};S(Z,_0x36642d(0x1bf),_0x36642d(0x24a)),S(Z,_0x36642d(0x21f),oe),S(Z,_0x36642d(0x141),se),Z=w([(0x0,t[_0x36642d(0x247)])(e[_0x36642d(0xca)]),C(0x1,d['IRenderManagerService']),C(0x2,(0x0,t[_0x36642d(0x26a)])(t['Injector'])),C(0x3,t[_0x36642d(0x2f1)])],Z);let Q=class extends e[_0x36642d(0x1c5)]{constructor(_0x434443,_0x3b6276,_0x3e007b,_0x316336,_0x488865){super(_0x434443,_0x3b6276,_0x3e007b,_0x316336,_0x488865);}async['createSocket'](_0x2f615f){const _0xede3c9=_0x36642d;let _0x529a65=await this[_0xede3c9(0x320)](),_0x451532=this[_0xede3c9(0x2da)](_0x2f615f,_0x529a65);return this[_0xede3c9(0x240)](_0x451532);}['_createSocketURL'](_0x5448b,_0x424892){const _0x2060ff=_0x36642d;let _0x28818b=typeof window>'u'?new URL(_0x5448b):new URL(_0x5448b,window['location'][_0x2060ff(0x1f5)]);_0x28818b[_0x2060ff(0x1e8)][_0x2060ff(0x352)](_0x2060ff(0x208),_0x424892);let _0x2f1406=typeof window>'u'?new URLSearchParams():new URLSearchParams(window['location'][_0x2060ff(0x2e8)]);return _0x2f1406['get'](_0x2060ff(0x2f3))&&_0x28818b['searchParams']['set'](_0x2060ff(0x2f3),_0x2f1406[_0x2060ff(0x1e6)](_0x2060ff(0x2f3))),_0x28818b[_0x2060ff(0xcd)]();}async[_0x36642d(0x320)](){const _0x1fabc3=_0x36642d;var _0xb2b097,_0x522252,_0x273c84;let _0x431e5c=this['_configService']['getConfig'](e[_0x1fabc3(0x1a5)]),_0x30149e=(_0xb2b097=_0x431e5c==null?void 0x0:_0x431e5c[_0x1fabc3(0xef)])==null?e[_0x1fabc3(0x337)]:_0xb2b097;return(_0x522252=(_0x273c84=(await this[_0x1fabc3(0x1d2)]['get'](_0x30149e,{'headers':{'Content-Type':_0x1fabc3(0x26d)}}))[_0x1fabc3(0xae)])==null?void 0x0:_0x273c84[_0x1fabc3(0x194)])==null?'':_0x522252;}};Q=w([C(0x0,(0x0,t[_0x36642d(0x26a)])(t[_0x36642d(0x140)])),C(0x1,(0x0,t['Inject'])(f['HTTPService'])),C(0x2,t[_0x36642d(0x2f1)]),C(0x3,t[_0x36642d(0x32b)]),C(0x4,h['ISnapshotServerService'])],Q);let $=class extends t[_0x36642d(0x1ad)]{constructor(_0x3e0232,_0x404745,_0x319b59){const _0x3362c6=_0x36642d;super(),this[_0x3362c6(0x1a3)]=_0x3e0232,this[_0x3362c6(0x1d2)]=_0x404745,this[_0x3362c6(0x1c1)]=_0x319b59;}async['runOnServer'](_0x3ed3db,_0x3e9f27,_0x5c5712,..._0x5aeb7e){const _0x4bdb2e=_0x36642d;var _0x3ac807,_0x3aa899,_0x9b00fc,_0x161603;let _0x52f55c=this[_0x4bdb2e(0x1a3)][_0x4bdb2e(0x2f7)]();if(!_0x52f55c)throw Error(_0x4bdb2e(0xd1));let _0xbf52ef=((_0x3ac807=this[_0x4bdb2e(0x1c1)][_0x4bdb2e(0x31b)](e[_0x4bdb2e(0x200)]))==null?e[_0x4bdb2e(0x16a)]:_0x3ac807)+'/'+_0x3ed3db+_0x4bdb2e(0x108)+_0x3e9f27,_0x295f0d={'scriptId':_0x3ed3db,'runId':(_0x3aa899=new URL(window['location'][_0x4bdb2e(0x22e)])[_0x4bdb2e(0x1e8)][_0x4bdb2e(0x1e6)]('runId'))==null?'':_0x3aa899,'function':_0x3e9f27,'unitId':_0x52f55c[_0x4bdb2e(0x269)](),'argsOfFunction':JSON[_0x4bdb2e(0x25b)](_0x5aeb7e),'invokeId':(_0x9b00fc=_0x5c5712[_0x4bdb2e(0x132)])==null?'':_0x9b00fc,'executionId':(_0x161603=_0x5c5712[_0x4bdb2e(0xf3)])==null?'':_0x161603};try{let _0x2f422a=await this[_0x4bdb2e(0x1d2)][_0x4bdb2e(0x239)](_0xbf52ef,{'body':_0x295f0d});return _0x2f422a[_0x4bdb2e(0xae)][_0x4bdb2e(0x22d)]&&_0x2f422a[_0x4bdb2e(0xae)][_0x4bdb2e(0x22d)][_0x4bdb2e(0xb9)]!==b['ErrorCode']['OK']?_0x4bdb2e(0x143):_0x2f422a[_0x4bdb2e(0xae)]['result'];}catch{return _0x4bdb2e(0x143);}}};$=w([C(0x0,t[_0x36642d(0x1c6)]),C(0x1,(0x0,t[_0x36642d(0x26a)])(f[_0x36642d(0x265)])),C(0x2,t['IConfigService'])],$);const be=0x7530,xe=_0x36642d(0xe8);var Se=class extends t[_0x36642d(0x1ad)]{constructor(){const _0x11a546=_0x36642d;super(),S(this,'_id',(0x0,t[_0x11a546(0x27c)])()),S(this,_0x11a546(0x340),new Set()),S(this,_0x11a546(0x29f),new Map()),S(this,'_heartbeatTimer',null),S(this,'_clearOtherTimers',new Map()),S(this,_0x11a546(0x281),new Map()),this[_0x11a546(0x295)]();}['dispose'](){const _0x235e0a=_0x36642d;super[_0x235e0a(0x190)](),this['_clearOtherTimers'][_0x235e0a(0x1cf)]((_0x448aa2,_0x2381bd)=>this[_0x235e0a(0xdc)](_0x2381bd)),this['_heartbeatTimer']&&window[_0x235e0a(0x33b)](this[_0x235e0a(0x1f6)]);}[_0x36642d(0xce)](_0x36524f){const _0x26d62a=_0x36642d;return this[_0x26d62a(0x2b4)](_0x36524f)[_0x26d62a(0x160)]((0x0,r[_0x26d62a(0x2c2)])());}['editingUnit'](_0x3320bd){const _0x5f0a31=_0x36642d;this[_0x5f0a31(0x340)][_0x5f0a31(0x2db)]===0x0&&this[_0x5f0a31(0x2c5)](),this[_0x5f0a31(0x340)]['add'](_0x3320bd),this[_0x5f0a31(0xe3)]({'type':0x0,'memberID':this[_0x5f0a31(0x12d)],'unitIDs':[_0x3320bd],'isForwarded':!0x1});}['disposeUnit'](_0x52764f){const _0x31edf2=_0x36642d;this[_0x31edf2(0x340)][_0x31edf2(0x1bc)](_0x52764f),this[_0x31edf2(0x340)][_0x31edf2(0x2db)]===0x0&&this['_heartbeatTimer']&&window['clearInterval'](this['_heartbeatTimer']);}['_init'](){const _0x551ab0=_0x36642d;this[_0x551ab0(0x291)]((0x0,t[_0x551ab0(0x114)])((0x0,r[_0x551ab0(0x101)])(window,_0x551ab0(0x316))[_0x551ab0(0x238)](_0x5e8bc3=>{const _0x52bb9a=_0x551ab0;if(_0x5e8bc3[_0x52bb9a(0xa3)]!==xe||!_0x5e8bc3[_0x52bb9a(0x2ee)])return;let _0x4eeb29=JSON[_0x52bb9a(0x2e7)](_0x5e8bc3['newValue']);this[_0x52bb9a(0x2d4)](_0x4eeb29);}))),window[_0x551ab0(0x343)](_0x551ab0(0xbc),()=>this['_send']({'type':0x1,'memberID':this[_0x551ab0(0x12d)],'unitIDs':Array[_0x551ab0(0x31c)](this['_selfUnitIDs'])}));}[_0x36642d(0x2d4)](_0x19280f){const _0x5eb5a8=_0x36642d;switch(_0x19280f[_0x5eb5a8(0x2f2)]){case 0x0:this[_0x5eb5a8(0x2f8)](_0x19280f);break;case 0x1:this[_0x5eb5a8(0x1d8)](_0x19280f);break;case 0x2:this[_0x5eb5a8(0x18a)](_0x19280f);break;}}[_0x36642d(0x2f8)](_0x4bc9c4){const _0x318c8f=_0x36642d;let {unitIDs:_0x227400,memberID:_0x2ad48f,isForwarded:_0x191257}=_0x4bc9c4;_0x227400[_0x318c8f(0x1cf)](_0x32c9d8=>{const _0x557805=_0x318c8f;if(!_0x191257&&this[_0x557805(0x29f)]['has'](_0x32c9d8)&&this['_ensureSubject'](_0x32c9d8)[_0x557805(0x1a0)](e['UnitStatus'][_0x557805(0xd2)]),!this[_0x557805(0x29f)][_0x557805(0x302)](_0x32c9d8)||!this[_0x557805(0x29f)][_0x557805(0x1e6)](_0x32c9d8)['has'](_0x2ad48f)){let _0x378d56=this[_0x557805(0x29f)][_0x557805(0x1e6)](_0x32c9d8)||new Set();_0x378d56[_0x557805(0x244)](_0x2ad48f),this[_0x557805(0x29f)]['set'](_0x32c9d8,_0x378d56),this[_0x557805(0x262)](_0x2ad48f);}}),_0x191257||this[_0x318c8f(0xe3)]({'type':0x0,'memberID':this[_0x318c8f(0x12d)],'unitIDs':[...this[_0x318c8f(0x340)]],'isForwarded':!0x0});}[_0x36642d(0x262)](_0x1709b9){const _0xab9686=_0x36642d;this[_0xab9686(0xdc)](_0x1709b9);let _0x45d98e=window['setTimeout'](()=>{const _0x1b86d0=_0xab9686;this[_0x1b86d0(0x29f)][_0x1b86d0(0x1cf)](_0x42b480=>{const _0x401903=_0x1b86d0;_0x42b480[_0x401903(0x1bc)](_0x1709b9);});},be*0x2);this[_0xab9686(0x25d)][_0xab9686(0x352)](_0x1709b9,_0x45d98e);}[_0x36642d(0xdc)](_0x38f3a8){const _0x83758e=_0x36642d;if(this[_0x83758e(0x25d)][_0x83758e(0x302)](_0x38f3a8)){let _0x9a6c00=this[_0x83758e(0x25d)]['get'](_0x38f3a8);_0x9a6c00&&window[_0x83758e(0x30c)](_0x9a6c00),this[_0x83758e(0x25d)]['set'](_0x38f3a8,null);}}['_handleLeaveEvent'](_0x2ec4ea){const _0xcc0809=_0x36642d;let {memberID:_0x35d198,unitIDs:_0x4b703f}=_0x2ec4ea;_0x4b703f[_0xcc0809(0x1cf)](_0x327e83=>{const _0x248043=_0xcc0809;var _0x11784f;let _0x59de21=this[_0x248043(0x29f)][_0x248043(0x1e6)](_0x327e83);_0x59de21&&(_0x59de21[_0x248043(0x1bc)](_0x35d198),(_0x11784f=this[_0x248043(0x2b4)](_0x327e83))==null||_0x11784f[_0x248043(0x1a0)](_0x59de21[_0x248043(0x2db)]===0x0?e[_0x248043(0x14c)]['NO_OTHER_CLIENTS_EDITING']:e['UnitStatus'][_0x248043(0xd2)]));}),this[_0xcc0809(0xdc)](_0x35d198);}[_0x36642d(0x18a)](_0x22288e){const _0x5dc270=_0x36642d;this[_0x5dc270(0x262)](_0x22288e[_0x5dc270(0x151)]);}[_0x36642d(0xe3)](_0x71303b){const _0x471d54=_0x36642d;localStorage[_0x471d54(0x261)](xe,JSON['stringify'](_0x71303b));}[_0x36642d(0x2c5)](){const _0x5d8f39=_0x36642d;this[_0x5d8f39(0x1f6)]=window[_0x5d8f39(0x29b)](()=>{const _0x2bd231=_0x5d8f39;this['_send']({'type':0x2,'memberID':this[_0x2bd231(0x12d)]});},be);}[_0x36642d(0x2b4)](_0x22e88e){const _0x3d4518=_0x36642d;return this['_unitStatus'][_0x3d4518(0x302)](_0x22e88e)||this[_0x3d4518(0x281)][_0x3d4518(0x352)](_0x22e88e,new r[(_0x3d4518(0x2b7))](e[_0x3d4518(0x14c)]['NO_OTHER_CLIENTS_EDITING'])),this[_0x3d4518(0x281)]['get'](_0x22e88e);}};Object[_0x36642d(0x147)](exports,'BrowserCollaborationSocketService',{'enumerable':!0x0,'get':function(){return Q;}}),Object[_0x36642d(0x147)](exports,_0x36642d(0x1c2),{'enumerable':!0x0,'get':function(){return D;}}),Object['defineProperty'](exports,_0x36642d(0x164),{'enumerable':!0x0,'get':function(){return T;}}),exports[_0x36642d(0x178)]=E,Object['defineProperty'](exports,'RemoteUniscriptService',{'enumerable':!0x0,'get':function(){return $;}}),exports[_0x36642d(0x100)]=z,Object[_0x36642d(0x147)](exports,_0x36642d(0xec),{'enumerable':!0x0,'get':function(){return Z;}}),exports[_0x36642d(0x1b3)]=Se,exports['WebURLService']=X;
|