@univerjs-pro/collaboration-client-ui 0.10.9 → 0.10.10-experimental.20251016-33b0941
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/cjs/facade.js +1 -1
- package/lib/cjs/index.js +1 -1
- package/lib/cjs/locale/ca-ES.js +1 -1
- package/lib/cjs/locale/en-US.js +1 -1
- package/lib/cjs/locale/es-ES.js +1 -1
- package/lib/cjs/locale/fa-IR.js +1 -1
- package/lib/cjs/locale/fr-FR.js +1 -1
- package/lib/cjs/locale/ko-KR.js +1 -1
- package/lib/cjs/locale/ru-RU.js +1 -1
- package/lib/cjs/locale/vi-VN.js +1 -1
- package/lib/cjs/locale/zh-CN.js +1 -1
- package/lib/cjs/locale/zh-TW.js +1 -1
- package/lib/es/facade.js +1 -1
- package/lib/es/index.js +1 -1
- package/lib/es/locale/ca-ES.js +1 -1
- package/lib/es/locale/en-US.js +1 -1
- package/lib/es/locale/es-ES.js +1 -1
- package/lib/es/locale/fa-IR.js +1 -1
- package/lib/es/locale/fr-FR.js +1 -1
- package/lib/es/locale/ko-KR.js +1 -1
- package/lib/es/locale/ru-RU.js +1 -1
- package/lib/es/locale/vi-VN.js +1 -1
- package/lib/es/locale/zh-CN.js +1 -1
- package/lib/es/locale/zh-TW.js +1 -1
- package/lib/facade.js +1 -1
- package/lib/index.js +1 -1
- package/lib/locale/ca-ES.js +1 -1
- package/lib/locale/en-US.js +1 -1
- package/lib/locale/es-ES.js +1 -1
- package/lib/locale/fa-IR.js +1 -1
- package/lib/locale/fr-FR.js +1 -1
- package/lib/locale/ko-KR.js +1 -1
- package/lib/locale/ru-RU.js +1 -1
- package/lib/locale/vi-VN.js +1 -1
- package/lib/locale/zh-CN.js +1 -1
- package/lib/locale/zh-TW.js +1 -1
- package/lib/types/locale/en-US.d.ts +7 -0
- package/lib/types/services/formula-calculation-guard/formula-calculation-guard.service.d.ts +38 -0
- package/lib/types/services/formula-calculation-guard/util.d.ts +11 -0
- package/lib/umd/facade.js +1 -1
- package/lib/umd/index.js +1 -1
- package/lib/umd/locale/ca-ES.js +1 -1
- package/lib/umd/locale/en-US.js +1 -1
- package/lib/umd/locale/es-ES.js +1 -1
- package/lib/umd/locale/fa-IR.js +1 -1
- package/lib/umd/locale/fr-FR.js +1 -1
- package/lib/umd/locale/ko-KR.js +1 -1
- package/lib/umd/locale/ru-RU.js +1 -1
- package/lib/umd/locale/vi-VN.js +1 -1
- package/lib/umd/locale/zh-CN.js +1 -1
- package/lib/umd/locale/zh-TW.js +1 -1
- package/package.json +19 -19
package/lib/cjs/facade.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';
|
|
1
|
+
'use strict';const _0x4dbba9=_0x5599;(function(_0x57fbdd,_0x21a159){const _0x10f764=_0x5599,_0x3b8195=_0x57fbdd();while(!![]){try{const _0x5436a8=-parseInt(_0x10f764(0xcf))/0x1*(-parseInt(_0x10f764(0xc7))/0x2)+parseInt(_0x10f764(0xc9))/0x3+-parseInt(_0x10f764(0xcb))/0x4+parseInt(_0x10f764(0xc5))/0x5*(-parseInt(_0x10f764(0xd2))/0x6)+parseInt(_0x10f764(0xcd))/0x7*(-parseInt(_0x10f764(0xc8))/0x8)+-parseInt(_0x10f764(0xc2))/0x9+-parseInt(_0x10f764(0xc4))/0xa*(-parseInt(_0x10f764(0xce))/0xb);if(_0x5436a8===_0x21a159)break;else _0x3b8195['push'](_0x3b8195['shift']());}catch(_0x354368){_0x3b8195['push'](_0x3b8195['shift']());}}}(_0x39a1,0xbc914));function _0x5599(_0x48011c,_0x5495bb){const _0x39a1f0=_0x39a1();return _0x5599=function(_0x559901,_0x4db789){_0x559901=_0x559901-0xc2;let _0x5630ae=_0x39a1f0[_0x559901];return _0x5630ae;},_0x5599(_0x48011c,_0x5495bb);}const t=require('@univerjs-pro/collaboration-client-ui'),e=require('@univerjs/core/facade');class c extends e[_0x4dbba9(0xd1)]{[_0x4dbba9(0xd0)](_0x3415b5,_0x3ff748,..._0x2d9b35){const _0x4549ef=_0x4dbba9;return this[_0x4549ef(0xcc)][_0x4549ef(0xc6)](t[_0x4549ef(0xca)])['runOnServer'](_0x3415b5,_0x3ff748,{},..._0x2d9b35);}}function _0x39a1(){const _0x5596f7=['534eMGuSt','9724230CXBEPP','extend','118850JtMeBB','47395OHrQhg','get','4lGIRFV','11608elXkTQ','2926233ZQeIDU','RemoteUniscriptService','4037020wkEZkK','_injector','637dOyBiX','1562TzwZpT','587344NZgMEJ','runOnServer','FUniver'];_0x39a1=function(){return _0x5596f7;};return _0x39a1();}e['FUniver'][_0x4dbba9(0xc3)](c);
|
package/lib/cjs/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const _0x49cc92=_0x381d;(function(_0x39b408,_0x270ac8){const _0x3f7b06=_0x381d,_0x2e51a5=_0x39b408();while(!![]){try{const _0x397d7f=parseInt(_0x3f7b06(0x34e))/0x1*(-parseInt(_0x3f7b06(0x2a3))/0x2)+parseInt(_0x3f7b06(0x377))/0x3+-parseInt(_0x3f7b06(0x332))/0x4*(-parseInt(_0x3f7b06(0x2df))/0x5)+-parseInt(_0x3f7b06(0x3bf))/0x6*(parseInt(_0x3f7b06(0x28b))/0x7)+-parseInt(_0x3f7b06(0x1e4))/0x8+-parseInt(_0x3f7b06(0x3d3))/0x9*(-parseInt(_0x3f7b06(0x186))/0xa)+-parseInt(_0x3f7b06(0x286))/0xb;if(_0x397d7f===_0x270ac8)break;else _0x2e51a5['push'](_0x2e51a5['shift']());}catch(_0x1a1e41){_0x2e51a5['push'](_0x2e51a5['shift']());}}}(_0x1db5,0xe722b));var We=Object['defineProperty'],Ve=(_0x1a7e88,_0x1ee4e2,_0x2f7806)=>_0x1ee4e2 in _0x1a7e88?We(_0x1a7e88,_0x1ee4e2,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x2f7806}):_0x1a7e88[_0x1ee4e2]=_0x2f7806,h=(_0x96af20,_0x132187,_0x46a813)=>Ve(_0x96af20,typeof _0x132187!='symbol'?_0x132187+'':_0x132187,_0x46a813);Object['defineProperty'](exports,Symbol['toStringTag'],{'value':_0x49cc92(0x2bf)});const P=require('react/jsx-runtime'),u=require('@univerjs-pro/collaboration-client'),a=require('@univerjs/core'),O=require('@univerjs/ui'),d=require('rxjs'),D=require('@univerjs/design'),M=require('react'),Xe=require('@univerjs/rpc'),g=require('@univerjs/sheets'),p=require('@univerjs/engine-render'),K=require('@univerjs/network'),E=require('@univerjs/docs-ui'),Ge=require('@univerjs/drawing'),m=require('@univerjs-pro/collaboration'),Y=require('@univerjs/docs'),Ee=require('@univerjs/engine-formula'),$=require('rxjs/operators'),G=require('@univerjs/sheets-ui');var b=function(){const _0x33bb27=_0x49cc92;return b=Object[_0x33bb27(0x1ef)]||function(_0x4a7769){const _0x340107=_0x33bb27;for(var _0x19cdc4,_0x31a0fa=0x1,_0x352a9e=arguments[_0x340107(0x2d5)];_0x31a0fa<_0x352a9e;_0x31a0fa++){_0x19cdc4=arguments[_0x31a0fa];for(var _0x128a74 in _0x19cdc4)Object[_0x340107(0x177)]['hasOwnProperty']['call'](_0x19cdc4,_0x128a74)&&(_0x4a7769[_0x128a74]=_0x19cdc4[_0x128a74]);}return _0x4a7769;},b['apply'](this,arguments);},Ke=function(_0x6031f,_0x230c65){const _0x17896e=_0x49cc92;var _0x368954={};for(var _0x4073f1 in _0x6031f)Object[_0x17896e(0x177)]['hasOwnProperty'][_0x17896e(0x232)](_0x6031f,_0x4073f1)&&_0x230c65[_0x17896e(0x15b)](_0x4073f1)<0x0&&(_0x368954[_0x4073f1]=_0x6031f[_0x4073f1]);if(_0x6031f!=null&&typeof Object[_0x17896e(0x327)]==_0x17896e(0x39c)){for(var _0x4d0d1e=0x0,_0x4073f1=Object[_0x17896e(0x327)](_0x6031f);_0x4d0d1e<_0x4073f1[_0x17896e(0x2d5)];_0x4d0d1e++)_0x230c65['indexOf'](_0x4073f1[_0x4d0d1e])<0x0&&Object[_0x17896e(0x177)][_0x17896e(0x225)][_0x17896e(0x232)](_0x6031f,_0x4073f1[_0x4d0d1e])&&(_0x368954[_0x4073f1[_0x4d0d1e]]=_0x6031f[_0x4073f1[_0x4d0d1e]]);}return _0x368954;},ge=M[_0x49cc92(0x338)](function(_0x288081,_0x55cdbb){const _0x4892a1=_0x49cc92;var _0x379ec1=_0x288081[_0x4892a1(0x1d9)],_0x43249a=_0x288081['id'],_0x10a565=_0x288081['className'],_0x5e5b2a=_0x288081['extend'],_0x2106ed=Ke(_0x288081,[_0x4892a1(0x1d9),'id',_0x4892a1(0x228),_0x4892a1(0x37a)]),_0x29536d=_0x4892a1(0x342)[_0x4892a1(0x381)](_0x43249a,'\x20')[_0x4892a1(0x381)](_0x10a565||'')[_0x4892a1(0x39a)](),_0x12f8cb=M[_0x4892a1(0x36b)]('_'[_0x4892a1(0x381)](Je()));return Pe(_0x379ec1,''[_0x4892a1(0x381)](_0x43249a),{'defIds':_0x379ec1[_0x4892a1(0x268)],'idSuffix':_0x12f8cb['current']},b({'ref':_0x55cdbb,'className':_0x29536d},_0x2106ed),_0x5e5b2a);});function Pe(_0x3bd3b0,_0x5aafbe,_0x53b875,_0x2651c6,_0x3f7cae){const _0x299d78=_0x49cc92;return M[_0x299d78(0x267)](_0x3bd3b0[_0x299d78(0x1cc)],b(b({'key':_0x5aafbe},qe(_0x3bd3b0,_0x53b875,_0x3f7cae)),_0x2651c6),(ze(_0x3bd3b0,_0x53b875)[_0x299d78(0x241)]||[])['map'](function(_0x956b05,_0x1914e2){const _0x3e3024=_0x299d78;return Pe(_0x956b05,''[_0x3e3024(0x381)](_0x5aafbe,'-')[_0x3e3024(0x381)](_0x3bd3b0[_0x3e3024(0x1cc)],'-')[_0x3e3024(0x381)](_0x1914e2),_0x53b875,void 0x0,_0x3f7cae);}));}function qe(_0x221f47,_0x2a97bd,_0x5f0868){const _0x36ff73=_0x49cc92;var _0x3afc2a=b({},_0x221f47[_0x36ff73(0x25c)]);_0x5f0868!=null&&_0x5f0868[_0x36ff73(0x155)]&&_0x3afc2a['fill']===_0x36ff73(0x155)&&(_0x3afc2a[_0x36ff73(0x2cf)]=_0x5f0868['colorChannel1']),_0x221f47[_0x36ff73(0x1cc)]==='mask'&&_0x3afc2a['id']&&(_0x3afc2a['id']=_0x3afc2a['id']+_0x2a97bd['idSuffix']),Object['entries'](_0x3afc2a)[_0x36ff73(0x392)](function(_0x568211){const _0x1a94a6=_0x36ff73;var _0x44dbd4=_0x568211[0x0],_0x4d7b5e=_0x568211[0x1];_0x44dbd4===_0x1a94a6(0x283)&&typeof _0x4d7b5e==_0x1a94a6(0x39e)&&(_0x3afc2a[_0x44dbd4]=_0x4d7b5e['replace'](/url\(#(.*)\)/,_0x1a94a6(0x352)['concat'](_0x2a97bd[_0x1a94a6(0x38a)],')')));});var _0x494fdf=_0x2a97bd[_0x36ff73(0x268)];return!_0x494fdf||_0x494fdf[_0x36ff73(0x2d5)]===0x0||(_0x221f47[_0x36ff73(0x1cc)]===_0x36ff73(0x244)&&_0x3afc2a['xlink:href']&&(_0x3afc2a[_0x36ff73(0x1e7)]=_0x3afc2a[_0x36ff73(0x1e7)]+_0x2a97bd['idSuffix']),Object[_0x36ff73(0x173)](_0x3afc2a)[_0x36ff73(0x392)](function(_0x32ceb3){const _0x41f0f3=_0x36ff73;var _0x4bc00d=_0x32ceb3[0x0],_0x2745dc=_0x32ceb3[0x1];typeof _0x2745dc==_0x41f0f3(0x39e)&&(_0x3afc2a[_0x4bc00d]=_0x2745dc[_0x41f0f3(0x38f)](/url\(#(.*)\)/,_0x41f0f3(0x352)['concat'](_0x2a97bd[_0x41f0f3(0x38a)],')')));})),_0x3afc2a;}function ze(_0x311410,_0x228568){const _0x249a3d=_0x49cc92;var _0x5c6951,_0x17e47e=_0x228568[_0x249a3d(0x268)];return!_0x17e47e||_0x17e47e[_0x249a3d(0x2d5)]===0x0?_0x311410:_0x311410['tag']===_0x249a3d(0x16f)&&(!((_0x5c6951=_0x311410[_0x249a3d(0x241)])===null||_0x5c6951===void 0x0)&&_0x5c6951[_0x249a3d(0x2d5)])?b(b({},_0x311410),{'children':_0x311410['children']['map'](function(_0x303bc0){const _0x4c9444=_0x249a3d;return typeof _0x303bc0[_0x4c9444(0x25c)]['id']=='string'&&_0x17e47e&&_0x17e47e[_0x4c9444(0x337)](_0x303bc0[_0x4c9444(0x25c)]['id'])?b(b({},_0x303bc0),{'attrs':b(b({},_0x303bc0[_0x4c9444(0x25c)]),{'id':_0x303bc0['attrs']['id']+_0x228568['idSuffix']})}):_0x303bc0;})}):_0x311410;}function Je(){const _0x396a3f=_0x49cc92;return Math[_0x396a3f(0x1ae)]()[_0x396a3f(0x207)](0x24)[_0x396a3f(0x3ab)](0x2,0x8);}ge[_0x49cc92(0x257)]=_0x49cc92(0x194);var Ze={'tag':_0x49cc92(0x349),'attrs':{'xmlns':_0x49cc92(0x1ab),'fill':_0x49cc92(0x3a9),'viewBox':_0x49cc92(0x30a),'width':_0x49cc92(0x2a4),'height':'1em'},'children':[{'tag':'g','attrs':{'clipPath':'url(#off-line-icon_clip0_910_343)'},'children':[{'tag':_0x49cc92(0x1db),'attrs':{'stroke':'currentColor','d':_0x49cc92(0x36a),'strokeLinecap':_0x49cc92(0x1e0),'strokeLinejoin':_0x49cc92(0x1e0),'strokeWidth':1.2}}]},{'tag':_0x49cc92(0x16f),'attrs':{},'children':[{'tag':_0x49cc92(0x37b),'attrs':{'id':_0x49cc92(0x3d5)},'children':[{'tag':_0x49cc92(0x1db),'attrs':{'fill':_0x49cc92(0x193),'d':_0x49cc92(0x1ba)}}]}]}],'defIds':[_0x49cc92(0x3d5)]},we=M[_0x49cc92(0x338)](function(_0x458a75,_0x269e2c){const _0x3810e5=_0x49cc92;return M[_0x3810e5(0x267)](ge,Object[_0x3810e5(0x1ef)]({},_0x458a75,{'id':'off-line-icon','ref':_0x269e2c,'icon':Ze}));});we[_0x49cc92(0x257)]=_0x49cc92(0x32a);var Qe={'tag':_0x49cc92(0x349),'attrs':{'xmlns':_0x49cc92(0x1ab),'fill':_0x49cc92(0x3a9),'viewBox':'0\x200\x2017\x2016','width':_0x49cc92(0x2a4),'height':_0x49cc92(0x2a4)},'children':[{'tag':'g','attrs':{'clipPath':'url(#on-line-icon_clip0_910_349)'},'children':[{'tag':_0x49cc92(0x1db),'attrs':{'stroke':_0x49cc92(0x1c4),'d':_0x49cc92(0x368),'strokeLinecap':_0x49cc92(0x1e0),'strokeLinejoin':'round','strokeWidth':1.2}}]},{'tag':_0x49cc92(0x16f),'attrs':{},'children':[{'tag':_0x49cc92(0x37b),'attrs':{'id':_0x49cc92(0x15c)},'children':[{'tag':_0x49cc92(0x1db),'attrs':{'fill':_0x49cc92(0x193),'d':_0x49cc92(0x1ba),'transform':_0x49cc92(0x2e3)}}]}]}],'defIds':['on-line-icon_clip0_910_349']},Ae=M[_0x49cc92(0x338)](function(_0x395b6f,_0x1f37ac){return M['createElement'](ge,Object['assign']({},_0x395b6f,{'id':'on-line-icon','ref':_0x1f37ac,'icon':Qe}));});Ae['displayName']='OnLineIcon';function et(_0x130dfd){const _0x4b16d7=_0x49cc92;switch(_0x130dfd){case u[_0x4b16d7(0x1a7)]['OFFLINE']:return _0x4b16d7(0x2be);case u[_0x4b16d7(0x1a7)][_0x4b16d7(0x2bb)]:return _0x4b16d7(0x260);case u[_0x4b16d7(0x1a7)][_0x4b16d7(0x1ed)]:return _0x4b16d7(0x38b);case u[_0x4b16d7(0x1a7)][_0x4b16d7(0x21a)]:return'collabStatus.notCollab';case u[_0x4b16d7(0x1a7)][_0x4b16d7(0x3a4)]:case u[_0x4b16d7(0x1a7)]['AWAITING_WITH_PENDING']:return _0x4b16d7(0x2a2);case u[_0x4b16d7(0x1a7)][_0x4b16d7(0x20f)]:case u[_0x4b16d7(0x1a7)][_0x4b16d7(0x2fc)]:return _0x4b16d7(0x1b6);}}function tt(_0x35a187){const _0x40df7e=_0x49cc92,{status$:_0x554425}=_0x35a187,_0x27984c=O[_0x40df7e(0x3d1)](_0x554425,u[_0x40df7e(0x1a7)]['NOT_COLLAB']),_0x1b7007=O[_0x40df7e(0x2cd)](a[_0x40df7e(0x304)]),_0xfffc69=O[_0x40df7e(0x2cd)](u[_0x40df7e(0x371)]),_0x4cf6f6=_0x27984c!==u['CollaborationStatus'][_0x40df7e(0x266)],_0xb8b56a=_0x1b7007['t'](et(_0x27984c)),_0x2934a2=_0x4cf6f6?P[_0x40df7e(0x307)](Ae,{}):P[_0x40df7e(0x307)](we,{}),_0x35f0e0=M['useCallback'](()=>{const _0x5c90a5=_0x40df7e;_0x4cf6f6||_0xfffc69[_0x5c90a5(0x28c)]();},[_0x4cf6f6,_0xfffc69]);function _0x4e5f91(){const _0x5ba6de=_0x40df7e;return P[_0x5ba6de(0x312)](_0x5ba6de(0x2e9),{'className':_0x5ba6de(0x33c),'onClick':_0x35f0e0,'children':[P['jsx'](_0x5ba6de(0x2e9),{'className':D[_0x5ba6de(0x3b2)](_0x5ba6de(0x247),{'univer-text-green-500':_0x4cf6f6,'univer-text-red-500':!_0x4cf6f6}),'children':_0x2934a2}),P[_0x5ba6de(0x307)](_0x5ba6de(0x2e9),{'className':_0x5ba6de(0x314),'children':_0xb8b56a})]});}return _0x4cf6f6?_0x4e5f91():P[_0x40df7e(0x307)](D['Tooltip'],{'title':_0x1b7007['t'](_0x40df7e(0x1c9)),'children':_0x4e5f91()});}var st=Object[_0x49cc92(0x1af)],it=(_0x24cee5,_0x2ca7f7,_0x731979,_0x30720c)=>{const _0x543264=_0x49cc92;for(var _0x4d9be4=_0x30720c>0x1?void 0x0:_0x30720c?st(_0x2ca7f7,_0x731979):_0x2ca7f7,_0xe4a0a3=_0x24cee5[_0x543264(0x2d5)]-0x1,_0x3a7b58;_0xe4a0a3>=0x0;_0xe4a0a3--)(_0x3a7b58=_0x24cee5[_0xe4a0a3])&&(_0x4d9be4=_0x3a7b58(_0x4d9be4)||_0x4d9be4);return _0x4d9be4;},V=(_0x4b2fda,_0xc38c5d)=>(_0xff041c,_0x1cda0d)=>_0xc38c5d(_0xff041c,_0x1cda0d,_0x4b2fda);exports['DesktopCollaborationStatusDisplayController']=class extends a['Disposable']{constructor(_0x30330d,_0x4c6195,_0x52c8b1,_0x1dc492){const _0x2e1704=_0x49cc92;super(),h(this,_0x2e1704(0x218),new d[(_0x2e1704(0x220))](u[_0x2e1704(0x1a7)]['NOT_COLLAB'])),(this[_0x2e1704(0x150)]=_0x30330d,this[_0x2e1704(0x176)]=_0x4c6195,this['_collaborationController']=_0x52c8b1,this['_uiPartsService']=_0x1dc492,this['_initStatusComponent'](),this[_0x2e1704(0x280)]());}[_0x49cc92(0x280)](){const _0x59c610=_0x49cc92;this['disposeWithMe'](this[_0x59c610(0x150)]['focused$'][_0x59c610(0x19c)](d[_0x59c610(0x211)](()=>{const _0x416ec4=_0x59c610,_0x484131=this['_univerInstanceService'][_0x416ec4(0x21b)]();return _0x484131?this[_0x416ec4(0x1ce)]['getCollabEntity$'](_0x484131[_0x416ec4(0x273)]()):d['of'](null);}),d[_0x59c610(0x211)](_0x4538e5=>_0x4538e5?_0x4538e5[_0x59c610(0x188)]:d['of'](u['CollaborationStatus']['NOT_COLLAB'])))[_0x59c610(0x282)](_0x5b8b27=>{const _0x575468=_0x59c610;this['_status$'][_0x575468(0x2f4)](_0x5b8b27);}));}[_0x49cc92(0x1f9)](){const _0x1d02b3=_0x49cc92;this[_0x1d02b3(0x28e)](this[_0x1d02b3(0x1c0)]['registerComponent'](O[_0x1d02b3(0x2d7)][_0x1d02b3(0x1a6)],()=>O[_0x1d02b3(0x18d)](nt({'status$':this[_0x1d02b3(0x218)][_0x1d02b3(0x293)]()}),this[_0x1d02b3(0x176)])));}},exports[_0x49cc92(0x1df)]=it([V(0x0,a[_0x49cc92(0x30f)]),V(0x1,a[_0x49cc92(0x26b)](a['Injector'])),V(0x2,a[_0x49cc92(0x26b)](u['CollaborationController'])),V(0x3,O[_0x49cc92(0x387)])],exports[_0x49cc92(0x1df)]);function nt(_0x3f5046){const {status$:_0x370f93}=_0x3f5046;return function(){return P['jsx'](tt,{'status$':_0x370f93});};}const me=a['createIdentifier'](_0x49cc92(0x3c7));var rt=Object[_0x49cc92(0x1af)],ot=(_0x5644fc,_0x5708d6,_0x531342,_0x17d5a9)=>{const _0x263dea=_0x49cc92;for(var _0x6d9048=_0x17d5a9>0x1?void 0x0:_0x17d5a9?rt(_0x5708d6,_0x531342):_0x5708d6,_0x2d5022=_0x5644fc[_0x263dea(0x2d5)]-0x1,_0x56a44f;_0x2d5022>=0x0;_0x2d5022--)(_0x56a44f=_0x5644fc[_0x2d5022])&&(_0x6d9048=_0x56a44f(_0x6d9048)||_0x6d9048);return _0x6d9048;},k=(_0xeff76b,_0x519072)=>(_0x19c792,_0x2bc266)=>_0x519072(_0x19c792,_0x2bc266,_0xeff76b);exports[_0x49cc92(0x23d)]=class extends a[_0x49cc92(0x3b8)]{constructor(_0x512673,_0x540862,_0x252a9e,_0x2e9b0d,_0x2716a9){const _0x5ee5e4=_0x49cc92;super(),this[_0x5ee5e4(0x243)]=_0x512673,this[_0x5ee5e4(0x1d4)]=_0x540862,this[_0x5ee5e4(0x3d6)]=_0x252a9e,this[_0x5ee5e4(0x2e5)]=_0x2e9b0d,_0x2716a9?_0x2716a9==null||_0x2716a9[_0x5ee5e4(0x298)]()['then'](()=>this[_0x5ee5e4(0x2ef)]()):(this[_0x5ee5e4(0x1d4)][_0x5ee5e4(0x395)](_0x5ee5e4(0x2ed),'No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.'),this[_0x5ee5e4(0x2ef)]());}async[_0x49cc92(0x2ef)](){const _0x8d731a=_0x49cc92,_0xed64a0=this['_urlService'][_0x8d731a(0x350)](_0x8d731a(0x2c1)),_0x2f4d2b=this[_0x8d731a(0x243)][_0x8d731a(0x350)]('type'),_0x531b0a=this[_0x8d731a(0x243)][_0x8d731a(0x350)](_0x8d731a(0x318));if(!_0xed64a0||!_0x2f4d2b){this[_0x8d731a(0x1d4)]['debug'](_0x8d731a(0x2ed),_0x8d731a(0x1ee));return;}const _0x3550ba=await this['_dataLoaderService']['loadUnit'](_0xed64a0,Number(_0x2f4d2b),_0x531b0a);_0x3550ba&&_0x3550ba instanceof a[_0x8d731a(0x272)]&&this[_0x8d731a(0x2b6)](_0x3550ba);}async[_0x49cc92(0x2b6)](_0x4d9a0b){const _0x2a0604=_0x49cc92;await this[_0x2a0604(0x2fd)](_0x4d9a0b),_0x4d9a0b['activeSheet$'][_0x2a0604(0x19c)](d[_0x2a0604(0x344)](this[_0x2a0604(0x23a)]))[_0x2a0604(0x282)](_0x35f840=>{_0x35f840&&this['_updateURLWithCurrentState'](_0x35f840);}),this[_0x2a0604(0x243)][_0x2a0604(0x229)][_0x2a0604(0x19c)](d['takeUntil'](this['dispose$']))[_0x2a0604(0x282)](()=>this[_0x2a0604(0x2fd)](_0x4d9a0b));}['_updateURLWithCurrentState'](_0x372c10,_0x8a65cc=!0x1){const _0x36c68a=_0x49cc92,_0x340a72=this[_0x36c68a(0x243)]['getParam'](_0x36c68a(0x318));_0x372c10[_0x36c68a(0x34f)]()!==_0x340a72&&this['_urlService'][_0x36c68a(0x2af)](_0x36c68a(0x318),_0x372c10[_0x36c68a(0x34f)](),_0x8a65cc);}async[_0x49cc92(0x2fd)](_0x4b8fc9){const _0x3b4942=_0x49cc92;var _0x51fd90;const _0x471fa6=this[_0x3b4942(0x243)][_0x3b4942(0x350)](_0x3b4942(0x318));if(!_0x471fa6||!_0x4b8fc9[_0x3b4942(0x1e2)](_0x471fa6)){const _0x258537=_0x4b8fc9['getUnhiddenWorksheets']()[0x0],_0x3e6073=_0x4b8fc9['getSheetBySheetId'](_0x258537);if(!_0x3e6073)return;this[_0x3b4942(0x357)](_0x3e6073,!0x0),await this[_0x3b4942(0x3d6)][_0x3b4942(0x23f)](g[_0x3b4942(0x3c6)]['id'],{'unitId':_0x4b8fc9[_0x3b4942(0x273)](),'subUnitId':_0x258537});return;}((_0x51fd90=_0x4b8fc9[_0x3b4942(0x24f)]())==null?void 0x0:_0x51fd90[_0x3b4942(0x34f)]())!==_0x471fa6&&await this[_0x3b4942(0x3d6)][_0x3b4942(0x23f)](g[_0x3b4942(0x3c6)]['id'],{'unitId':_0x4b8fc9[_0x3b4942(0x273)](),'subUnitId':_0x471fa6});}},exports[_0x49cc92(0x23d)]=ot([k(0x0,me),k(0x1,a[_0x49cc92(0x1e9)]),k(0x2,a[_0x49cc92(0x35c)]),k(0x3,a['Inject'](u['DataLoaderService'])),k(0x4,a[_0x49cc92(0x35f)](Xe[_0x49cc92(0x317)]))],exports['CollaborationDataLoaderController']);var at=Object[_0x49cc92(0x1af)],ct=(_0x4e0c4b,_0x39a3fc,_0x511ed1,_0x4425fc)=>{const _0x4b0442=_0x49cc92;for(var _0x5dd60c=_0x4425fc>0x1?void 0x0:_0x4425fc?at(_0x39a3fc,_0x511ed1):_0x39a3fc,_0x2b80ff=_0x4e0c4b[_0x4b0442(0x2d5)]-0x1,_0x494643;_0x2b80ff>=0x0;_0x2b80ff--)(_0x494643=_0x4e0c4b[_0x2b80ff])&&(_0x5dd60c=_0x494643(_0x5dd60c)||_0x5dd60c);return _0x5dd60c;},be=(_0x95551b,_0x44713c)=>(_0x45f4cc,_0x525ac2)=>_0x44713c(_0x45f4cc,_0x525ac2,_0x95551b);let ue=class extends a['RxDisposable']{constructor(_0x33ac9a,_0x3c388e){const _0x3f6628=_0x49cc92;super(),this[_0x3f6628(0x306)]=_0x33ac9a,this['_imageIoService']=_0x3c388e,this[_0x3f6628(0x2ef)]();}[_0x49cc92(0x2ef)](){const _0x379e40=_0x49cc92,_0x337413=this;this[_0x379e40(0x28e)](this['_docClipboardService'][_0x379e40(0x383)]({'onBeforePasteImage':async _0x129bc1=>{const _0x299fcb=_0x379e40,_0x45373e=await _0x337413[_0x299fcb(0x202)]['saveImage'](_0x129bc1);return _0x45373e?{'source':_0x45373e[_0x299fcb(0x353)],'imageSourceType':_0x45373e['imageSourceType']}:null;}}));}};ue=ct([be(0x0,E[_0x49cc92(0x3c8)]),be(0x1,Ge[_0x49cc92(0x159)])],ue);function _0x1db5(){const _0x2cc392=['getAncestorScale','CONFLICT','handleInsertRangeMoveRight','m1Prime','collabStatus.offline','Module','RefRangeService','unit','filter','IURLService','_httpService','_colorAssignService','_updateLocalCursor','_cursors','history','CollaborationEvent','WECHAT_HAS_BEEN_BOUND','selection','unitID','useDependency','InsertRangeMoveDownCommandId','fill','ThemeService','getConfig','black','APPLY_REVISION_CONFILICT','newValue','length','setShapeProps','BuiltInUIPart','triggerDblclick','RemoveRowCommandId','addObjects','Rect','SOCKET_FAILED','TEXT','Unknown\x20user','20yrzAjT','red.300','REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY','UNRECOGNIZED','translate(.97)','stringify','_dataLoaderService','getCurrentUnitForType','ranges','session.collaboration-timeout','div','loadOfflineData','unitId','backgroundColor','[CollaborationDataLoaderController]','EffectRefRangId','_init','INTERNAL_ERROR','LICENSE_MAX_UNITS_EXCEEDED','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','pushState','next','getMember','font','onPointerLeave$','size','Error','registerBeforeClose','_registerRenderDependencies','PENDING','_updateSubUnitFromURLParams','_localeService','ILocalStorageService','color','name','collaboration.closeRoom','post','LocaleService','RemoveColCommandId','_docClipboardService','jsx','enableLocalCache','setItem','0\x200\x2016\x2016','flatMap','Warning','_collaborationUIEventService','getStateCache','IUniverInstanceService','UnitStatus','runRefRangeMutations','jsxs','max','univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','sessionStatus$','_getAnchorBounding','IRemoteInstanceService','subunit','_hover','_configService','_clearOtherTimers','unload','resize','_draw','_refRangeService','setAlpha','with','min','measureText','handleInsertRow','_toggleOnline','throttleTime','getOwnPropertySymbols','TEXT_RANGE_LAYER_INDEX','_color','OffLineIcon','moveTo','add','_instanceService','isTransformMutationFailure','saveOfflineData','_getMergeRange','_transformPreviousActiveRange','585584ZgGVGB','_scheduleClearOtherTimer','_transformService','IBeforeCloseService','getTypeOfUnitDisposed$','includes','forwardRef','getLocalCacheKey','type','INVITE_CODE_HAS_BEEN_UES','univer-flex\x20univer-items-center','_context','mutations','_docSkeleton','generateRandomId','Injector','univerjs-icon\x20univerjs-icon-','text','takeUntil','_getSessionTicket','getRelativeToViewportCoord','SHEET_VIEWPORT_KEY','ACTIVE_UNIT_EVENT_CHANNEL','svg','_send','MemberService','BrowserCollaborationSocketService','COLORS','872887PpSEyi','getSheetId','getParam','location','url(#$1','source','getUndoRedoMutationParamsCache','column','_transformUndoRedoStack','_updateURLWithCurrentState','_shapes','#FFF','_scheduleSaving','init','ICommandService','Rectangle','handleInsertCol','Optional','getColorFromTheme','_initResize','MOBILE_VERIFY_CODE_MISMATCH','onRendered','createSocket','transformMutation','YUUMI_URL_COL_OUT_OF_RANGE','row','M4.5865\x2011.6499C3.36983\x2011.6499\x201.6665\x2011.1024\x201.6665\x208.9124C1.6665\x206.3574\x204.2215\x205.8099\x204.9515\x205.8099C5.3165\x204.5324\x206.0465\x202.5249\x208.9665\x202.5249C11.5215\x202.5249\x2012.6165\x203.9849\x2012.9815\x205.2624C12.9815\x205.2624\x2016.2665\x205.6274\x2016.2665\x208.7299C16.2665\x2010.9199\x2014.8065\x2011.6499\x2013.3465\x2011.6499M6.7767\x2011.6497L8.9667\x2013.4747L11.8867\x209.82466','DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT','M3.61971\x2011.6499C2.40304\x2011.6499\x200.699707\x2011.1024\x200.699707\x208.9124C0.699707\x206.3574\x203.25471\x205.8099\x203.98471\x205.8099C4.34971\x204.5324\x205.07971\x202.5249\x207.99971\x202.5249C10.5547\x202.5249\x2011.6497\x203.9849\x2012.0147\x205.2624C12.0147\x205.2624\x2015.2997\x205.6274\x2015.2997\x208.7299C15.2997\x2010.9199\x2013.8397\x2011.6499\x2012.3797\x2011.6499M9.82471\x209.82466L6.17471\x2013.4747M6.17471\x209.82466L9.82471\x2013.4747','useRef','_saveTaskMap','drawWith','_startSheetCollabCursor','_registerDependencies','m2Prime','CollaborationSessionService','href','send','_entityInit$','yellow.400','CollaborationController','5547207JCYAib','InsertRowCommandId','OTHER_CLIENT_EDITING','extend','clipPath','_onCursorDelete','session.connection-failed','YUUMI_AI_RUN_FAILED','_getSaveTimeout','YUUMI_UNABLE_LOAD_URL','concat','FromArray','addClipboardHook','width','_beforeCloseService','_colorIndex','IUIPartsService','cursorInfo','onLocalMutation','idSuffix','collabStatus.fetchMiss','INVALID_ARGUMENT','push','combineLatest','replace','_localStorageService','WebSocketService','forEach','startRow','UniverInstanceType','debug','_entities','_session','_setupBeforeClosingHandler','code','trim','transformIMECache','function','unshift','string','getCurrent','_disabled','getSkeleton','OTHER_CLIENTS_EDITING','_themeService','AWAITING','UNIVER_DOC','MessageType','makeDirty','_messageService','none','collaboration-client.offline-data-not-saved','substring','APPLY_PERMISSION_DENIED','getCurrentRevOfUnit','endColumn','_document','wsSessionTicketUrl','delete','clsx','permission.content','runOnServer','cursorInfo$','Tools','getVpScrollXYInfoByPosToVp','RxDisposable','getUniverSheetInstance','_scene','onTransformChange$','dispose','evenodd','WebBrowserSingleActiveUnitService','43836bhRvCE','_updateCollabCursors','then','UPDATE_CURSOR','subUnitId','search','DocIMEInputManagerService','SetWorksheetActivateCommand','uni.network.url-service','IDocClipboardService','endRow','map','registerRefRange','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','RemoteUniscriptService','RichTextEditingMutation','IRenderManagerService','ALREADY_EXISTS','useObservable','bottom','16461sUPqFs','save','off-line-icon_clip0_910_343','_commandService','updateOfflineData','event$','_univerInstanceService','ITransformService','values','collaboration-client-ui.config','getUnitStatus$','colorChannel1','find','_handleJoinEvent','transformByState','IImageIoService','_anchor','indexOf','on-line-icon_clip0_910_349','disableLocalCache','_getSheetObject','ILocalCacheService','eventID','ISocketService','transformSelections','rgba(255,\x20255,\x20255,\x200.01)','_docStateChangeManagerService','isArray','HTTPService','jiqing.500','getDocRanges','IConfigService','getCoordByCell','RECT','deepClone','pluginName','_eventUnsubscribe','defs','collabCursorState$','_startDocCollabCursor','LICENSE_IMPORT_SIZE_EXCEEDED','entries','redoState','_textBubble','_injector','prototype','getCurrentSelections','startColumn','SessionStatus','_selfUnitIDs','engine','startsWith','Disposable','Plugin','APPLY_DUPLICATED','collab-rect-range-','USER_NOT_INVITED_CODE','SheetCollabCursorShape','from','_hovered','3290getOPL','_syncEditingCollabCursorService','status$','_initCommandExecutedListener','INVITE_CODE_ALREADY_BOUND','disposeUnit','getMergeData','connectInjector','_memberService','_docSyncEditingCollabCursorService','collab-text-range-','DocCollaborationEntity','_getScale','white','UniverIcon','ENSURE_SNAPSHOT_EXECUTION','handleIRemoveCol','lineTo','toRgbString','serializeRangeWithSheet','has','shareReplay','pipe','override','INVALID_INVITE_CODE','YUUMI_PROMPT_MAX_TOKENS_EXCEEDED','YUUMI_NO_CUBOID_FOR_QUESTION','YUUMI_CONNECTOR_URL_NOT_FOUND','SetSelectionsOperation','Vector2','ticket','_labelPosition','HEADER_MENU','CollaborationStatus','EMAIL_VERIFY_CODE_NOT_FOUND_OR_EXPIRED','debounceTime','show','http://www.w3.org/2000/svg','body','_initDependencies','random','getOwnPropertyDescriptor','hide','fillText','_removeCollabCursors','undoState','_renderManagerService','touchDependencies','collabStatus.synced','transformStateCache','_unitOnClients','registerRenderModule','M0\x200H16V16H0z','some','handleDeleteRangeMoveLeft','getOffsetConfig','getColor','getCollabCursors$','_uiPartsService','_online','all','saveTaskMap','currentColor','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','ONLINE','currentSkeleton$','NO_OTHER_CLIENTS_EDITING','collab-client.tooltip.reconnect','_toggleOffline','getActiveRange','tag','params','_collaborationController','_drawAnchor','_onRefRangeChange','range','_heartbeatTimer','_unitStatus','_logService','addObject','unsubscribe','UniverCollaborationClientUIPlugin','UNAUTHENTICATED','icon','removeParam','path','_notificationService','NodePositionConvertToRectRange','...','DesktopCollaborationStatusDisplayController','round','YUUMI_ASYNCIO_CANCELLED','getSheetBySheetId','RegularPolygon','591376GjlftT','runId','_docTransformStateCacheService','xlink:href','addEventListener','ILogService','registerDependencies','/run/','_saveCache','FETCH_MISS','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','assign','CollaborationSocketService','_handleHeartbeatEvent','memberID','getRangePointData','_handleLeaveEvent','_cursorInfo$','Subject','setUndoRedoMutationParamsCache','transformMutationsWithChangeset','_initStatusComponent','ColorKit','NodePositionConvertToCursor','EMAIL_VERIFY_CODE_MISMATCH','setStateCache','EMAIL_HAS_BEEN_BOUND','currentTheme$','CollaborationUIEventService','_removeClearOtherTimer','_imageIoService','LOGIN_FAILED','subscribeEvent','error','YUUMI_TABLE_NOT_FOUND_IN_UNIT','toString','parse','closePath','_sheetSkeletonManagerService','_config','merge','_docTransformSelectionsService','setInterval','SYNCED','SNAPSHOT_INVALID_SNAPSHOT','switchMap','LICENSE_EXPORT_SIZE_EXCEEDED','DOC_RANGE_TYPE','APPLY_NON_SEQUENTIAL_REVISION','getTypeOfUnitAdded$','handleInsertRangeMoveDown','collaboration.single-unit.warning','_status$','_roomMembers$','NOT_COLLAB','getFocusedUnit','SUBMIT_CHANGESET_TIMEOUT','deserializeRangeWithSheet','_refreshCollabCursors','getValue','BehaviorSubject','_cursor','MUTATION','JOIN_ROOM_FAILED','_handleEvent','propertyIsEnumerable','getItem','mergeOverrideWithDependencies','className','urlChange$','LICENSE_DISTRO_REJECTED','Shape','green.600','_hideTimer','exhaustSavingTask','getMemberID','YUUMI_SUBSCRIPTION_NOT_FOUND','arc','call','setTimeout','_ensureSubject','_range','complete','doc.mutation.rich-text-editing','onPointerEnter$','YUUMI_ALL_TABLES_IS_INVALID','dispose$','get','UNIVER_SHEET','CollaborationDataLoaderController','handleDeleteRangeMoveUp','executeCommand','DocStateChangeManagerService','children','_handleHover','_urlService','use','USERS_LEAVE','LOCAL_CACHE_INTERVAL_KEY','univer-mr-2\x20univer-flex\x20univer-text-xl','_backgroundColor','_docTransformIMECacheService','_collabSessionService','_onCursorUpdate','debounce','findNodePositionByCharIndex','storage','getActiveSheet','_createSocketURL','assignAColorForMemberID','_cachedData','INVITE_CODE_REQUIRED','_assignedColors','transformRemoteChangeset','blue.400','displayName','_revisionService','UNIVER_COLLABORATION_CLIENT_WEB_PLUGIN','_collabCursorController','_lastPointer','attrs','TOO_MANY_REQUESTS','replaceState','SheetSkeletonManagerService','collabStatus.conflict','isTransformMutationsWithChangesetSuccess','NOT_FOUND','transform','YUUMI_RATE_OVER_LIMIT','sheetId','OFFLINE','createElement','defIds','requireSession','_id','Inject','textRanges','MoveRangeCommandId','labelPosition','isActive','fillStyle','PY_RUNTIME_SCRIPT_ERROR','Workbook','getUnitId','hovered','_localCacheService','onCommandExecuted','_scheduleHeartbeat','_drawRectRange','_cursorShapes','Failed','INotificationService','_collabCursorState$','restore','invokeId','searchParams','_initStatusListener','TRANSFORM_CHANGE_OBSERVABLE_TYPE','subscribe','mask','editingUnit','COMPLETION_FINISHED','11446270xeYSSy','sheetID','origin','[RemoteUniscriptService]:\x20no\x20focused\x20unit','split','98lHhulS','reconnect','UNDEFINED','disposeWithMe','clearTimeout','_render','CHANGESET_REVISION_CONFILICT','_docSkeletonManagerService','asObservable','APPLY_REJECT','_anchorDot','InsertRangeMoveRightCommandId','roomMembers$','whenReady','createInstance','syncEditingCollabCursor','getRenderById','selections','toDisposable','CONNECTOR_DATA_TOO_LARGE','IMessageService','set','onMouseMove','collabStatus.syncing','2xClBYS','1em','_initEntityListener','PERMISSION_DENIED','MOBILE_HAS_BEEN_BOUND','RevisionService','CollaborationUIEventId','VIEW_MAIN','_drawTextRange','clearInterval','data','sessionTicket','setParam','fromEvent','_name','_initEvent','actions','height','executionId','_setupSubUnitSync','_transformHistoryAndStateStack','setConfig','DocSkeletonManagerService'];_0x1db5=function(){return _0x2cc392;};return _0x1db5();}const Oe=['purple.300',_0x49cc92(0x167),_0x49cc92(0x22c),_0x49cc92(0x2e0),_0x49cc92(0x256),_0x49cc92(0x375)];class Ce extends a[_0x49cc92(0x17e)]{constructor(){const _0x5500ab=_0x49cc92;super(...arguments),h(this,_0x5500ab(0x254),new Map()),h(this,_0x5500ab(0x386),0x0);}[_0x49cc92(0x251)](_0x155895){const _0x1c874c=_0x49cc92;if(this[_0x1c874c(0x254)][_0x1c874c(0x19a)](_0x155895))return this['_assignedColors'][_0x1c874c(0x23b)](_0x155895);const _0x22a09e=Oe[this[_0x1c874c(0x386)]];return this[_0x1c874c(0x386)]=(this[_0x1c874c(0x386)]+0x1)%Oe[_0x1c874c(0x2d5)],this[_0x1c874c(0x254)][_0x1c874c(0x2a0)](_0x155895,_0x22a09e),_0x22a09e;}}function ye(_0x23f58e){const _0x59c088=_0x49cc92;let _0x7f921='';for(const _0x2b0473 of _0x23f58e){const {startOffset:_0x4e8f85,endOffset:_0x9f8e0d,isActive:_0x4c0e15,rangeType:_0x2fdcde,segmentId:_0x4a78f9,segmentPage:_0x1bdc45}=_0x2b0473;_0x7f921[_0x59c088(0x2d5)]&&(_0x7f921+=','),_0x7f921+=_0x4e8f85+':'+_0x9f8e0d+':'+(_0x4c0e15?'1':'0')+':'+_0x2fdcde+':'+_0x4a78f9+':'+_0x1bdc45;}return _0x7f921;}function lt(_0x6f938a){const _0x366b93=_0x49cc92,_0xeb1890=_0x6f938a[_0x366b93(0x28a)](','),_0xca67fb=[];for(const _0x585a1e of _0xeb1890){const [_0x34b891,_0xdebf92,_0x1a9b03,_0x4cfc70,_0x3bd596,_0x14b593]=_0x585a1e[_0x366b93(0x28a)](':');_0xca67fb[_0x366b93(0x38d)]({'startOffset':Number(_0x34b891),'endOffset':Number(_0xdebf92),'collapsed':_0x34b891===_0xdebf92,'isActive':_0x1a9b03==='1','rangeType':_0x4cfc70===a['DOC_RANGE_TYPE']['TEXT']?a[_0x366b93(0x213)][_0x366b93(0x2dd)]:a[_0x366b93(0x213)][_0x366b93(0x16b)],'segmentId':typeof _0x3bd596==_0x366b93(0x39e)?String(_0x3bd596):'','segmentPage':Number(_0x14b593!=null?_0x14b593:-0x1)});}return _0xca67fb[_0x366b93(0x1bb)](_0x7cebc0=>_0x7cebc0['isActive'])||(_0xca67fb[0x0][_0x366b93(0x26f)]=!0x0),_0xca67fb;}class pe extends a[_0x49cc92(0x3b8)]{constructor(){const _0x1ba157=_0x49cc92;super(...arguments),h(this,_0x1ba157(0x27c),new d[(_0x1ba157(0x220))](null)),h(this,_0x1ba157(0x170),this[_0x1ba157(0x27c)]['asObservable']());}[_0x49cc92(0x29a)](_0x6821c1){const {unitID:_0x497f22,memberID:_0x552711,textRanges:_0x45d4eb}=_0x6821c1,_0x2692c3=ye(_0x45d4eb);if(_0x2692c3==='')return;const _0x107416={'unitID':_0x497f22,'memberID':_0x552711,'selection':_0x2692c3};this['_collabCursorState$']['next'](_0x107416);}}var _t=Object['getOwnPropertyDescriptor'],ht=(_0x1fc607,_0x598e9e,_0x213919,_0x58f824)=>{const _0x559b26=_0x49cc92;for(var _0x5ef416=_0x58f824>0x1?void 0x0:_0x58f824?_t(_0x598e9e,_0x213919):_0x598e9e,_0xd80f76=_0x1fc607[_0x559b26(0x2d5)]-0x1,_0x60abca;_0xd80f76>=0x0;_0xd80f76--)(_0x60abca=_0x1fc607[_0xd80f76])&&(_0x5ef416=_0x60abca(_0x5ef416)||_0x5ef416);return _0x5ef416;},L=(_0x33e22d,_0x17b073)=>(_0x3625b3,_0x5742c2)=>_0x17b073(_0x3625b3,_0x5742c2,_0x33e22d);const ut=0x12c,dt=0x64;let de=class extends a[_0x49cc92(0x3b8)]{constructor(_0x420226,_0x36d85b,_0x160db9,_0x42580c,_0x3c99fa,_0x279efc,_0xc1a91b,_0x17ff7a,_0x337efb){const _0xfe3986=_0x49cc92;super(),h(this,_0xfe3986(0x1c1),!0x1),h(this,_0xfe3986(0x2ef),!0x1),h(this,'_cursorInfo$',new d['BehaviorSubject'](new Map())),h(this,'cursorInfo$',this[_0xfe3986(0x1f5)][_0xfe3986(0x293)]()),h(this,_0xfe3986(0x219),new d[(_0xfe3986(0x220))]([])),h(this,'roomMembers$',this['_roomMembers$']['pipe'](d[_0xfe3986(0x1a9)](ut))),h(this,_0xfe3986(0x2c6),a[_0xfe3986(0x24c)](_0x53d4cd=>{const _0xf2fbae=_0xfe3986,_0x2a66c9={'eventID':m[_0xf2fbae(0x2c9)][_0xf2fbae(0x3c2)],'data':{'unitID':this[_0xf2fbae(0x2cc)],'memberID':this[_0xf2fbae(0x397)][_0xf2fbae(0x22f)](),'selection':ye(_0x53d4cd)}};this['_session'][_0xf2fbae(0x373)](_0x2a66c9,this['unitID']);},dt)),(this[_0xfe3986(0x2cc)]=_0x420226,this[_0xfe3986(0x397)]=_0x36d85b,this[_0xfe3986(0x176)]=_0x160db9,this[_0xfe3986(0x2c5)]=_0x42580c,this[_0xfe3986(0x18e)]=_0x3c99fa,this[_0xfe3986(0x187)]=_0x279efc,this['_transformService']=_0xc1a91b,this[_0xfe3986(0x150)]=_0x17ff7a,this['_commandService']=_0x337efb);}get[_0x49cc92(0x388)](){const _0x528a12=_0x49cc92;return this[_0x528a12(0x1f5)][_0x528a12(0x21f)]();}get['roomMembers'](){const _0x23ebbd=_0x49cc92;return this[_0x23ebbd(0x219)][_0x23ebbd(0x21f)]();}[_0x49cc92(0x3bc)](){const _0x3a5ff7=_0x49cc92;super[_0x3a5ff7(0x3bc)](),this[_0x3a5ff7(0x1f5)][_0x3a5ff7(0x2f4)](new Map()),this[_0x3a5ff7(0x1f5)]['complete'](),this[_0x3a5ff7(0x219)][_0x3a5ff7(0x2f4)]([]),this['_roomMembers$'][_0x3a5ff7(0x236)]();}[_0x49cc92(0x35b)](){const _0x5f3538=_0x49cc92;this[_0x5f3538(0x2ef)]||(this[_0x5f3538(0x2ef)]=!0x0,this['_session'][_0x5f3538(0x315)]['pipe'](d[_0x5f3538(0x344)](this[_0x5f3538(0x23a)]))[_0x5f3538(0x282)](_0x80c23a=>{const _0x3f6cc4=_0x5f3538;_0x80c23a===u[_0x3f6cc4(0x17a)][_0x3f6cc4(0x1c6)]?this[_0x3f6cc4(0x325)]():this[_0x3f6cc4(0x1ca)]();}),this['_session'][_0x5f3538(0x14f)][_0x5f3538(0x19c)](d['takeUntil'](this['dispose$']))[_0x5f3538(0x282)](_0x4e7185=>{const _0x444800=_0x5f3538,_0x2c83d7=_0x4e7185['eventID'];_0x2c83d7===m[_0x444800(0x2c9)][_0x444800(0x3c2)]&&this[_0x444800(0x24b)](_0x4e7185),_0x2c83d7===m[_0x444800(0x2c9)][_0x444800(0x245)]&&this['_onCursorDelete'](_0x4e7185);}),this[_0x5f3538(0x28e)](this[_0x5f3538(0x3d6)][_0x5f3538(0x276)](_0xa34a8d=>{const _0x32fdc9=_0x5f3538,_0x32e1bf=_0xa34a8d[_0x32fdc9(0x1cd)];_0x32e1bf!=null&&this[_0x32fdc9(0x1c1)]&&_0xa34a8d['id']===Y['SetTextSelectionsOperation']['id']&&_0x32e1bf['unitId']===this[_0x32fdc9(0x2cc)]&&_0x32e1bf['isEditing']===!0x1&&_0x32e1bf[_0x32fdc9(0x2e7)][_0x32fdc9(0x2d5)]>0x0&&this[_0x32fdc9(0x2c6)](_0x32e1bf[_0x32fdc9(0x2e7)]);})),this[_0x5f3538(0x187)][_0x5f3538(0x170)]['pipe'](d[_0x5f3538(0x344)](this[_0x5f3538(0x23a)]))[_0x5f3538(0x282)](_0x7e2e1b=>{const _0x8e2028=_0x5f3538;if((_0x7e2e1b==null?void 0x0:_0x7e2e1b[_0x8e2028(0x2cc)])!==this['unitID'])return;const _0xbf4360={'eventID':m[_0x8e2028(0x2c9)][_0x8e2028(0x3c2)],'data':_0x7e2e1b};this[_0x8e2028(0x24b)](_0xbf4360);}),this['disposeWithMe'](this[_0x5f3538(0x3d6)][_0x5f3538(0x276)](_0x156d65=>{const _0x21fc0d=_0x5f3538;if(_0x156d65[_0x21fc0d(0x1cd)]==null)return;const _0x450f0c=_0x156d65[_0x21fc0d(0x1cd)];if(_0x156d65['id']!==Y[_0x21fc0d(0x3ce)]['id']||_0x450f0c[_0x21fc0d(0x2eb)]!==this[_0x21fc0d(0x2cc)])return;const _0x21d959={'id':'doc.mutation.rich-text-editing','params':_0x450f0c},_0xf2b317=this['cursorInfo'];for(const [_0x36b53c,_0xf6d7ca]of _0xf2b317){const _0x1d4399={'id':'doc.mutation.rich-text-editing','params':{'unitId':this[_0x21fc0d(0x2cc)],'actions':null,'textRanges':_0xf6d7ca[_0x21fc0d(0x2e7)]}},_0x427437=this['_transformService'][_0x21fc0d(0x365)](_0x21d959,_0x1d4399,!0x1);if(m['isTransformMutationFailure'](_0x427437))throw _0x427437[_0x21fc0d(0x205)];_0xf2b317[_0x21fc0d(0x2a0)](_0x36b53c,{..._0xf6d7ca,'ranges':_0x427437[_0x21fc0d(0x370)][_0x21fc0d(0x1cd)]['textRanges']});}queueMicrotask(()=>{const _0x188786=_0x21fc0d;this[_0x188786(0x1f5)][_0x188786(0x2f4)](_0xf2b317);});})));}[_0x49cc92(0x24b)](_0x155068){const _0xc8d98b=_0x49cc92;var _0x1500c0,_0x36e3e7;const {memberID:_0x5ec133,selection:_0xc53c02}=_0x155068[_0xc8d98b(0x2ad)],_0x294b0c=lt(_0xc53c02),_0x2173ad=(_0x36e3e7=(_0x1500c0=this[_0xc8d98b(0x18e)]['getMember'](this['unitID'],_0x5ec133))==null?void 0x0:_0x1500c0['name'])!=null?_0x36e3e7:_0xc8d98b(0x2de),_0x42de95={'color':this[_0xc8d98b(0x2c5)][_0xc8d98b(0x251)](_0x5ec133),'name':_0x2173ad,'ranges':_0x294b0c},_0x2fdd8a=this['cursorInfo'];_0x2fdd8a[_0xc8d98b(0x2a0)](_0x5ec133,_0x42de95),this['_cursorInfo$']['next'](_0x2fdd8a);}[_0x49cc92(0x37c)](_0x56c521){const _0x2dfd73=_0x49cc92,{memberID:_0x215b21}=_0x56c521[_0x2dfd73(0x2ad)],_0x1ce2cc=this[_0x2dfd73(0x388)];_0x1ce2cc[_0x2dfd73(0x3b1)](_0x215b21),this['_cursorInfo$']['next'](_0x1ce2cc);}[_0x49cc92(0x325)](){const _0x3cf724=_0x49cc92;var _0x136784;if(this['_online']=!0x0,((_0x136784=this[_0x3cf724(0x150)][_0x3cf724(0x21b)]())==null?void 0x0:_0x136784[_0x3cf724(0x273)]())!==this['unitID'])return;const _0x459891=this['_injector']['get'](Y['DocSelectionManagerService'])[_0x3cf724(0x168)]();Array[_0x3cf724(0x165)](_0x459891)&&_0x459891['length']>0x0&&this[_0x3cf724(0x2c6)](_0x459891);}[_0x49cc92(0x1ca)](){const _0x5a47ae=_0x49cc92;this[_0x5a47ae(0x1c1)]=!0x1;}};de=ht([L(0x2,a[_0x49cc92(0x26b)](a[_0x49cc92(0x341)])),L(0x3,a[_0x49cc92(0x26b)](Ce)),L(0x4,a[_0x49cc92(0x26b)](u['MemberService'])),L(0x5,a['Inject'](pe)),L(0x6,m[_0x49cc92(0x151)]),L(0x7,a['IUniverInstanceService']),L(0x8,a[_0x49cc92(0x35c)])],de);var St=Object[_0x49cc92(0x1af)],ft=(_0x3f0bfc,_0x409b59,_0x489d98,_0x182cf7)=>{const _0x4e4bde=_0x49cc92;for(var _0x39323a=_0x182cf7>0x1?void 0x0:_0x182cf7?St(_0x409b59,_0x489d98):_0x409b59,_0xa0857c=_0x3f0bfc[_0x4e4bde(0x2d5)]-0x1,_0x2447a2;_0xa0857c>=0x0;_0xa0857c--)(_0x2447a2=_0x3f0bfc[_0xa0857c])&&(_0x39323a=_0x2447a2(_0x39323a)||_0x39323a);return _0x39323a;},A=(_0x3a4f91,_0x464aa2)=>(_0x7b20c5,_0x2ce629)=>_0x464aa2(_0x7b20c5,_0x2ce629,_0x3a4f91);const It=0x12c,vt=0x64,gt=()=>{let _0x51ae56=[],_0x247b80=!0x1;return _0x1e4724=>{const _0x3dc122=_0x381d;_0x51ae56[_0x3dc122(0x38d)](_0x1e4724),_0x247b80||(_0x247b80=!0x0,setTimeout(()=>{_0x51ae56['forEach'](_0x58fb40=>_0x58fb40()),_0x51ae56=[],_0x247b80=!0x1;}));};};let Se=class extends a[_0x49cc92(0x3b8)]{constructor(_0x8d05ba,_0x35b617,_0x30e05c,_0x4773c5,_0x21d8cb,_0x21b51d,_0x5eb99c,_0x178589){const _0x3c16d3=_0x49cc92;super(),h(this,'_online',!0x1),h(this,'_init',!0x1),h(this,_0x3c16d3(0x1f5),new d[(_0x3c16d3(0x220))](new Map())),h(this,'cursorInfo$',this[_0x3c16d3(0x1f5)][_0x3c16d3(0x293)]()),h(this,_0x3c16d3(0x219),new d[(_0x3c16d3(0x220))]([])),h(this,_0x3c16d3(0x297),this[_0x3c16d3(0x219)][_0x3c16d3(0x19c)](d['debounceTime'](It))),h(this,_0x3c16d3(0x2c6),a[_0x3c16d3(0x24c)]((_0x3c9f35,_0x50d52a)=>{const _0x2fc016=_0x3c16d3,_0x262c07={'eventID':m[_0x2fc016(0x2c9)]['UPDATE_CURSOR'],'data':{'unitID':this[_0x2fc016(0x2cc)],'memberID':this[_0x2fc016(0x397)][_0x2fc016(0x22f)](),'selection':Ee[_0x2fc016(0x199)](_0x3c9f35,_0x50d52a[_0x2fc016(0x1d1)])}};this['_session']['send'](_0x262c07,this['unitID']);},vt)),(this['unitID']=_0x8d05ba,this[_0x3c16d3(0x397)]=_0x35b617,this[_0x3c16d3(0x176)]=_0x30e05c,this[_0x3c16d3(0x2c5)]=_0x4773c5,this['_memberService']=_0x21d8cb,this[_0x3c16d3(0x150)]=_0x21b51d,this['_commandService']=_0x5eb99c,this[_0x3c16d3(0x31f)]=_0x178589);}get[_0x49cc92(0x388)](){const _0x198ca9=_0x49cc92;return this[_0x198ca9(0x1f5)][_0x198ca9(0x21f)]();}get['roomMembers'](){const _0x204362=_0x49cc92;return this[_0x204362(0x219)][_0x204362(0x21f)]();}[_0x49cc92(0x3bc)](){const _0x2c1242=_0x49cc92;super['dispose'](),this['_cursorInfo$']['next'](new Map()),this['_cursorInfo$'][_0x2c1242(0x236)](),this['_roomMembers$'][_0x2c1242(0x2f4)]([]),this[_0x2c1242(0x219)][_0x2c1242(0x236)]();}['init'](){const _0x26f6e1=_0x49cc92;this['_init']||(this['_init']=!0x0,this[_0x26f6e1(0x397)]['sessionStatus$'][_0x26f6e1(0x19c)](d[_0x26f6e1(0x344)](this['dispose$']))['subscribe'](_0x5b8847=>{const _0x379998=_0x26f6e1;_0x5b8847===u[_0x379998(0x17a)][_0x379998(0x1c6)]?this['_toggleOnline']():this[_0x379998(0x1ca)]();}),this['_session'][_0x26f6e1(0x14f)][_0x26f6e1(0x19c)](d['takeUntil'](this[_0x26f6e1(0x23a)]))[_0x26f6e1(0x282)](_0x125f34=>{const _0x5d5985=_0x26f6e1,_0x535dd9=_0x125f34[_0x5d5985(0x160)];_0x535dd9===m[_0x5d5985(0x2c9)][_0x5d5985(0x3c2)]&&this['_onCursorUpdate'](_0x125f34),_0x535dd9===m['CollaborationEvent'][_0x5d5985(0x245)]&&this['_onCursorDelete'](_0x125f34);}),this[_0x26f6e1(0x1d0)](),this[_0x26f6e1(0x28e)](this[_0x26f6e1(0x3d6)][_0x26f6e1(0x276)](_0x3e0ea6=>{const _0x177a8e=_0x26f6e1;if(this[_0x177a8e(0x1c1)]&&_0x3e0ea6['id']===g[_0x177a8e(0x1a2)]['id']&&_0x3e0ea6[_0x177a8e(0x1cd)][_0x177a8e(0x2eb)]===this['unitID']){const _0x38dc72=_0x3e0ea6['params'];this[_0x177a8e(0x2c6)](_0x38dc72[_0x177a8e(0x3c3)],_0x38dc72[_0x177a8e(0x29c)][0x0]);}})));}[_0x49cc92(0x24b)](_0x37e87e){const _0x5be87d=_0x49cc92;var _0x4f5b4f,_0x1cd07b;const {memberID:_0x2624f0,selection:_0xa94499}=_0x37e87e[_0x5be87d(0x2ad)],{sheetName:_0x2c9ed7,range:_0x26d4b2}=Ee[_0x5be87d(0x21d)](_0xa94499),_0x5dea1a={'name':(_0x1cd07b=(_0x4f5b4f=this['_memberService'][_0x5be87d(0x2f5)](this[_0x5be87d(0x2cc)],_0x2624f0))==null?void 0x0:_0x4f5b4f[_0x5be87d(0x301)])!=null?_0x1cd07b:_0x5be87d(0x2de),'range':this['_getMergeRange'](_0x2c9ed7,_0x26d4b2),'sheetID':_0x2c9ed7,'color':this[_0x5be87d(0x2c5)][_0x5be87d(0x251)](_0x2624f0),'selection':_0xa94499},_0x11b418=this['cursorInfo'];_0x11b418['set'](_0x2624f0,_0x5dea1a),this[_0x5be87d(0x1f5)]['next'](_0x11b418);}[_0x49cc92(0x37c)](_0x35b46c){const _0x1ed752=_0x49cc92,{memberID:_0xea446}=_0x35b46c[_0x1ed752(0x2ad)],_0x34008c=this[_0x1ed752(0x388)];_0x34008c['delete'](_0xea446),this[_0x1ed752(0x1f5)][_0x1ed752(0x2f4)](_0x34008c);}[_0x49cc92(0x330)](_0xe0d5cc,_0x29366a){const _0x4e4425=_0x49cc92;var _0x1ec887,_0x2bf532;const _0x45ee9d=(_0x2bf532=(_0x1ec887=this['_univerInstanceService'][_0x4e4425(0x3b9)](this[_0x4e4425(0x2cc)]))==null?void 0x0:_0x1ec887['getSheetBySheetId'](_0xe0d5cc))==null?void 0x0:_0x2bf532[_0x4e4425(0x18c)]();return(_0x45ee9d==null?void 0x0:_0x45ee9d[_0x4e4425(0x156)](_0x20b157=>a[_0x4e4425(0x35d)]['contains'](_0x20b157,_0x29366a)))||_0x29366a;}[_0x49cc92(0x1d0)](){const _0x523e55=_0x49cc92,_0x109de1=new a['DisposableCollection'](),_0x2024e2=gt(),_0xdfd6b=()=>{const _0x279cdc=_0x381d;_0x109de1[_0x279cdc(0x3bc)]();const _0x2eb314=(_0x52caeb,_0x54a552,_0x355b16,_0x4de235)=>{const _0x1e771a=_0x279cdc;let _0x10075a=[];switch(_0x52caeb['id']){case g[_0x1e771a(0x2ee)]['DeleteRangeMoveLeftCommandId']:{_0x10075a=g[_0x1e771a(0x1bc)](_0x52caeb,_0x4de235);break;}case g[_0x1e771a(0x2ee)]['DeleteRangeMoveUpCommandId']:{_0x10075a=g[_0x1e771a(0x23e)](_0x52caeb,_0x4de235);break;}case g[_0x1e771a(0x2ee)]['InsertColCommandId']:{_0x10075a=g[_0x1e771a(0x35e)](_0x52caeb,_0x4de235);break;}case g['EffectRefRangId'][_0x1e771a(0x2ce)]:{_0x10075a=g[_0x1e771a(0x216)](_0x52caeb,_0x4de235);break;}case g[_0x1e771a(0x2ee)][_0x1e771a(0x296)]:{_0x10075a=g[_0x1e771a(0x2bc)](_0x52caeb,_0x4de235);break;}case g[_0x1e771a(0x2ee)][_0x1e771a(0x378)]:{_0x10075a=g[_0x1e771a(0x324)](_0x52caeb,_0x4de235);break;}case g[_0x1e771a(0x2ee)][_0x1e771a(0x26d)]:{_0x10075a=g['handleMoveRange'](_0x52caeb,_0x4de235);break;}case g[_0x1e771a(0x2ee)][_0x1e771a(0x305)]:{_0x10075a=g[_0x1e771a(0x196)](_0x52caeb,_0x4de235);break;}case g[_0x1e771a(0x2ee)][_0x1e771a(0x2d9)]:{_0x10075a=g['handleIRemoveRow'](_0x52caeb,_0x4de235);break;}}const _0x484aab=g[_0x1e771a(0x311)](_0x10075a,_0x4de235),_0x55a6c8=this[_0x1e771a(0x388)][_0x1e771a(0x23b)](_0x54a552);if(_0x55a6c8&&_0x484aab){const _0x4a998d={..._0x55a6c8,'range':_0x484aab};this[_0x1e771a(0x388)]['set'](_0x54a552,_0x4a998d),_0x2024e2(()=>{const _0x4a310f=_0x1e771a,_0x39dda9=this[_0x4a310f(0x31f)][_0x4a310f(0x3cb)](_0x484aab,_0x732ed6=>(_0x39dda9[_0x4a310f(0x3bc)](),_0x2eb314(_0x732ed6,_0x54a552,_0x355b16,_0x484aab)));_0x109de1[_0x4a310f(0x32c)](_0x39dda9);});}return{'redos':[],'undos':[]};};this[_0x279cdc(0x388)][_0x279cdc(0x392)]((_0x5428dc,_0x4bb37a)=>{const _0x2fc5cd=_0x279cdc,{range:_0x3ec054,sheetID:_0x4334ed}=_0x5428dc,_0x26ee82=this[_0x2fc5cd(0x31f)]['registerRefRange'](_0x3ec054,_0x121895=>(_0x26ee82[_0x2fc5cd(0x3bc)](),_0x2eb314(_0x121895,_0x4bb37a,_0x4334ed,_0x3ec054)));_0x109de1['add'](_0x26ee82);});};this['disposeWithMe'](a[_0x523e55(0x29d)](this[_0x523e55(0x1f5)]['subscribe'](()=>{_0xdfd6b();})));}[_0x49cc92(0x325)](){const _0xbc9aba=_0x49cc92;var _0xdc09db,_0x2ba606;if(this[_0xbc9aba(0x1c1)]=!0x0,((_0xdc09db=this[_0xbc9aba(0x150)]['getFocusedUnit']())==null?void 0x0:_0xdc09db[_0xbc9aba(0x273)]())!==this['unitID'])return;const _0x339359=(_0x2ba606=this['_injector'][_0xbc9aba(0x23b)](g['SheetsSelectionsService'])[_0xbc9aba(0x178)]())==null?void 0x0:_0x2ba606[0x0],_0x530851=this['_univerInstanceService'][_0xbc9aba(0x2e6)](a[_0xbc9aba(0x394)][_0xbc9aba(0x23c)])[_0xbc9aba(0x24f)]();_0x339359&&_0x530851&&this['_updateLocalCursor'](_0x530851['getSheetId'](),_0x339359);}['_toggleOffline'](){this['_online']=!0x1;}};Se=ft([A(0x2,a['Inject'](a[_0x49cc92(0x341)])),A(0x3,a[_0x49cc92(0x26b)](Ce)),A(0x4,a[_0x49cc92(0x26b)](u[_0x49cc92(0x34b)])),A(0x5,a[_0x49cc92(0x30f)]),A(0x6,a[_0x49cc92(0x35c)]),A(0x7,a[_0x49cc92(0x26b)](g[_0x49cc92(0x2c0)]))],Se);var mt=Object[_0x49cc92(0x1af)],Ct=(_0xc95504,_0x29babd,_0x52d347,_0x2ba15e)=>{const _0x2e1d90=_0x49cc92;for(var _0x14ec34=_0x2ba15e>0x1?void 0x0:_0x2ba15e?mt(_0x29babd,_0x52d347):_0x29babd,_0x4f4644=_0xc95504[_0x2e1d90(0x2d5)]-0x1,_0x20fda6;_0x4f4644>=0x0;_0x4f4644--)(_0x20fda6=_0xc95504[_0x4f4644])&&(_0x14ec34=_0x20fda6(_0x14ec34)||_0x14ec34);return _0x14ec34;},ie=(_0x55fa14,_0x265973)=>(_0x25c635,_0x4a6b7c)=>_0x265973(_0x25c635,_0x4a6b7c,_0x55fa14);let x=class extends a['RxDisposable']{constructor(_0x38772f,_0x502bdb,_0x3d8803){const _0x49084d=_0x49cc92;super(),h(this,_0x49084d(0x396),new Map()),h(this,_0x49084d(0x374),new d[(_0x49084d(0x1f6))]()),(this[_0x49084d(0x150)]=_0x38772f,this[_0x49084d(0x176)]=_0x502bdb,this[_0x49084d(0x24a)]=_0x3d8803,this[_0x49084d(0x2ef)]());}['dispose'](){const _0x24e208=_0x49cc92;super[_0x24e208(0x3bc)](),this[_0x24e208(0x374)][_0x24e208(0x236)](),this[_0x24e208(0x396)][_0x24e208(0x392)](_0x148c29=>_0x148c29['dispose']());}[_0x49cc92(0x1bf)](_0x1817e0){const _0x49e471=_0x49cc92;return this[_0x49e471(0x396)][_0x49e471(0x19a)](_0x1817e0)?this[_0x49e471(0x396)]['get'](_0x1817e0)[_0x49e471(0x3b5)]:this['_entityInit$'][_0x49e471(0x19c)](d[_0x49e471(0x2c2)](_0x4670da=>_0x4670da[_0x49e471(0x2cc)]===_0x1817e0),d[_0x49e471(0x211)](_0x4816e8=>_0x4816e8['cursorInfo$']));}[_0x49cc92(0x2ef)](){const _0x563a02=_0x49cc92;this[_0x563a02(0x150)][_0x563a02(0x215)](a['UniverInstanceType'][_0x563a02(0x23c)])[_0x563a02(0x19c)](d[_0x563a02(0x344)](this[_0x563a02(0x23a)]))[_0x563a02(0x282)](async _0x15db05=>{const _0x4d024e=_0x563a02,_0x5e1935=_0x15db05['getUnitId'](),_0x53e1f0=await this[_0x4d024e(0x36e)](_0x5e1935);this[_0x4d024e(0x374)][_0x4d024e(0x2f4)](_0x53e1f0),this['_entities'][_0x4d024e(0x2a0)](_0x5e1935,_0x53e1f0);}),this[_0x563a02(0x150)][_0x563a02(0x215)](a[_0x563a02(0x394)][_0x563a02(0x3a5)])[_0x563a02(0x19c)](d[_0x563a02(0x344)](this[_0x563a02(0x23a)]))[_0x563a02(0x19c)](d[_0x563a02(0x2c2)](_0xcd8809=>!_0xcd8809[_0x563a02(0x273)]()[_0x563a02(0x17d)]('__')))[_0x563a02(0x282)](async _0x405150=>{const _0x27aeae=_0x563a02,_0x24aad1=_0x405150['getUnitId'](),_0x34fd2e=await this[_0x27aeae(0x171)](_0x24aad1);this[_0x27aeae(0x374)][_0x27aeae(0x2f4)](_0x34fd2e),this[_0x27aeae(0x396)][_0x27aeae(0x2a0)](_0x24aad1,_0x34fd2e);}),d[_0x563a02(0x20c)](this[_0x563a02(0x150)][_0x563a02(0x336)](a[_0x563a02(0x394)]['UNIVER_DOC']),this[_0x563a02(0x150)][_0x563a02(0x336)](a[_0x563a02(0x394)]['UNIVER_SHEET']))[_0x563a02(0x19c)](d[_0x563a02(0x344)](this[_0x563a02(0x23a)]))[_0x563a02(0x282)](_0x1e3bee=>{const _0x336b45=_0x563a02,_0x215581=_0x1e3bee[_0x336b45(0x273)](),_0x272d7c=this[_0x336b45(0x396)][_0x336b45(0x23b)](_0x215581);_0x272d7c&&(_0x272d7c[_0x336b45(0x3bc)](),this['_entities'][_0x336b45(0x3b1)](_0x215581));});}async[_0x49cc92(0x36e)](_0x5eb17f){const _0x791e73=_0x49cc92,_0xdee19=await this['_collabSessionService']['requireSession'](_0x5eb17f),_0x2dd87b=this[_0x791e73(0x176)]['createInstance'](Se,_0x5eb17f,_0xdee19);return _0x2dd87b[_0x791e73(0x35b)](),_0x2dd87b;}async['_startDocCollabCursor'](_0xeac1ff){const _0x278205=_0x49cc92,_0x131024=await this['_collabSessionService'][_0x278205(0x269)](_0xeac1ff),_0x1e1dae=this[_0x278205(0x176)][_0x278205(0x299)](de,_0xeac1ff,_0x131024);return _0x1e1dae[_0x278205(0x35b)](),_0x1e1dae;}};x=Ct([ie(0x0,a[_0x49cc92(0x30f)]),ie(0x1,a[_0x49cc92(0x26b)](a[_0x49cc92(0x341)])),ie(0x2,a[_0x49cc92(0x26b)](u[_0x49cc92(0x371)]))],x);const W=0x14,Te=0xc8,ne=0x4,pt=0x5;function Et(_0x356312,_0x1a9dd5){const _0xbbd57c=_0x49cc92;let {radius:_0xacd221,width:_0x19d798,height:_0x494bf8}=_0x1a9dd5;_0xacd221=_0xacd221!=null?_0xacd221:0x0,_0x19d798=_0x19d798!=null?_0x19d798:0x1e,_0x494bf8=_0x494bf8!=null?_0x494bf8:0x1e;let _0xb11ca4=0x0,_0x227fdf=0x0,_0x42fa06=0x0;_0xb11ca4=_0x227fdf=_0x42fa06=Math[_0xbbd57c(0x322)](_0xacd221,_0x19d798/0x2,_0x494bf8/0x2),_0x356312['beginPath'](),_0x356312[_0xbbd57c(0x32b)](_0xb11ca4,0x0),_0x356312[_0xbbd57c(0x197)](_0x19d798-_0x227fdf,0x0),_0x356312[_0xbbd57c(0x231)](_0x19d798-_0x227fdf,_0x227fdf,_0x227fdf,Math['PI']*0x3/0x2,0x0,!0x1),_0x356312[_0xbbd57c(0x197)](_0x19d798,_0x494bf8-_0x42fa06),_0x356312[_0xbbd57c(0x231)](_0x19d798-_0x42fa06,_0x494bf8-_0x42fa06,_0x42fa06,0x0,Math['PI']/0x2,!0x1),_0x356312[_0xbbd57c(0x197)](0x0,_0x494bf8),_0x356312[_0xbbd57c(0x197)](0x0,_0xb11ca4),_0x356312[_0xbbd57c(0x231)](_0xb11ca4,_0xb11ca4,_0xb11ca4,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x356312[_0xbbd57c(0x209)](),_0x1a9dd5[_0xbbd57c(0x2cf)]&&(_0x356312[_0xbbd57c(0x3d4)](),_0x356312[_0xbbd57c(0x270)]=_0x1a9dd5[_0xbbd57c(0x2cf)],_0x1a9dd5['fillRule']===_0xbbd57c(0x3bd)?_0x356312['fill'](_0xbbd57c(0x3bd)):_0x356312[_0xbbd57c(0x2cf)](),_0x356312['restore']());}class ee extends p[_0x49cc92(0x22b)]{constructor(_0x1ad0b7,_0xc57607){const _0x5d8a61=_0x49cc92;super(_0x1ad0b7,_0xc57607),h(this,_0x5d8a61(0x300)),h(this,_0x5d8a61(0x343)),(this['color']=_0xc57607==null?void 0x0:_0xc57607[_0x5d8a61(0x300)],this['text']=_0xc57607==null?void 0x0:_0xc57607['text']);}static[_0x49cc92(0x36d)](_0x505bcf,_0x39189a){const _0x396e56=_0x49cc92,{text:_0x564670,color:_0x3f68e5}=_0x39189a;_0x505bcf[_0x396e56(0x3d4)](),_0x505bcf[_0x396e56(0x2f6)]=_0x396e56(0x3cc);const _0x45c17a=_0x505bcf[_0x396e56(0x323)](_0x564670)['width'],_0x47f82a=Math['min'](_0x45c17a+0x2*ne,Te);Et(_0x505bcf,{'height':W,'radius':0x4,'width':_0x47f82a,'fill':_0x3f68e5}),_0x505bcf['fillStyle']=_0x396e56(0x359);const _0x2c67e7=ne,_0x497f5d=W-pt,_0xd29342=Te-0x2*ne;if(_0x45c17a>_0xd29342){let _0x59204b='',_0xbb8222=0x0;for(const _0x559593 of _0x564670){const _0x1eabad=_0x505bcf[_0x396e56(0x323)](_0x559593)[_0x396e56(0x384)];if(_0xbb8222+_0x1eabad<=_0xd29342-_0x505bcf[_0x396e56(0x323)](_0x396e56(0x1de))[_0x396e56(0x384)])_0x59204b+=_0x559593,_0xbb8222+=_0x1eabad;else{_0x59204b+='...';break;}}_0x505bcf['fillText'](_0x59204b,_0x2c67e7,_0x497f5d);}else _0x505bcf[_0x396e56(0x1b1)](_0x564670,_0x2c67e7,_0x497f5d);_0x505bcf[_0x396e56(0x27d)]();}[_0x49cc92(0x31e)](_0x32f22){ee['drawWith'](_0x32f22,this);}}const re='collab-text-anchor-',bt=_0x49cc92(0x190),Ot=_0x49cc92(0x181),F=0x6,Tt=1.5,oe=0x4,Rt=1.5,Dt=_0x49cc92(0x163);class Re{constructor(_0x22ffaa,_0x3155dd,_0x4996d5,_0x14f2dc){const _0x131c44=_0x49cc92;h(this,_0x131c44(0x358),[]),h(this,_0x131c44(0x15a),null),h(this,_0x131c44(0x175),null),h(this,_0x131c44(0x295),null),h(this,_0x131c44(0x22d),null),h(this,_0x131c44(0x16e),null),(this[_0x131c44(0x221)]=_0x22ffaa,this[_0x131c44(0x3ba)]=_0x3155dd,this[_0x131c44(0x33f)]=_0x4996d5,this[_0x131c44(0x3af)]=_0x14f2dc,this[_0x131c44(0x290)]());}set[_0x49cc92(0x319)](_0x4f969e){const _0x5b767f=_0x49cc92;_0x4f969e?(this[_0x5b767f(0x295)]&&this['_anchorDot']['hide'](),this[_0x5b767f(0x175)]&&this[_0x5b767f(0x175)]['show']()):(this[_0x5b767f(0x295)]&&this[_0x5b767f(0x295)][_0x5b767f(0x1aa)](),this[_0x5b767f(0x175)]&&this[_0x5b767f(0x175)][_0x5b767f(0x1b0)]());}[_0x49cc92(0x3bc)](){const _0x4144d4=_0x49cc92;for(const _0x1e0c9e of this[_0x4144d4(0x358)])_0x1e0c9e['dispose']();this['_textBubble']&&this[_0x4144d4(0x175)][_0x4144d4(0x3bc)](),this[_0x4144d4(0x295)]&&this['_anchorDot'][_0x4144d4(0x3bc)](),this[_0x4144d4(0x15a)]&&this['_anchor'][_0x4144d4(0x3bc)](),this[_0x4144d4(0x16e)]&&this['_eventUnsubscribe']();}[_0x49cc92(0x290)](){const _0x21e5aa=_0x49cc92;var _0x243940;const {_docSkeleton:_0x13759a,_document:_0x2d95c5}=this,{color:_0x5be5c9,name:_0x12cbd3,ranges:_0x93c675}=this[_0x21e5aa(0x221)],_0x3dc975=_0x2d95c5[_0x21e5aa(0x1bd)](),{docsLeft:_0x277d64,docsTop:_0x1d8283}=_0x3dc975,_0x2892a0=new E[(_0x21e5aa(0x1fb))](_0x3dc975,_0x13759a);for(const {startOffset:_0xfd8ce2,endOffset:_0x38d094,rangeType:_0x1c7ab3,segmentId:_0x114d4a,segmentPage:_0x20ad2e,collapsed:_0x4ba8f9,isActive:_0x5cb969}of _0x93c675){const _0x1a26bb=_0x13759a[_0x21e5aa(0x24d)](_0xfd8ce2,!0x0,_0x114d4a,_0x20ad2e);let _0x149ae7=_0x13759a[_0x21e5aa(0x24d)](_0x38d094,!0x0,_0x114d4a,_0x20ad2e);if(_0x149ae7==null&&(_0x149ae7=_0x13759a[_0x21e5aa(0x24d)](_0x38d094-0x1,!0x1,_0x114d4a,_0x20ad2e)),_0x5cb969){const {contentBoxPointGroup:_0x198905}=_0x2892a0['getRangePointData'](_0x149ae7,_0x149ae7);if(_0x198905['length']===0x0)continue;this['_drawAnchor'](_0x5be5c9,_0x198905,_0x277d64,_0x1d8283,_0x12cbd3),this[_0x21e5aa(0x16e)]=this[_0x21e5aa(0x242)]();}if(_0x1a26bb&&_0x149ae7){if(_0x1c7ab3===a[_0x21e5aa(0x213)][_0x21e5aa(0x16b)]){const _0x3a89d8=new E[(_0x21e5aa(0x1dd))](_0x3dc975,_0x13759a),{pointGroup:_0x3afed5}=(_0x243940=_0x3a89d8[_0x21e5aa(0x1f3)](_0x1a26bb,_0x149ae7))!=null?_0x243940:{};if(_0x3afed5==null||_0x3afed5['length']===0x0)continue;this[_0x21e5aa(0x278)](_0x5be5c9,_0x3afed5,_0x277d64,_0x1d8283);}else{if(!_0x4ba8f9){const {borderBoxPointGroup:_0x20da63}=_0x2892a0[_0x21e5aa(0x1f3)](_0x1a26bb,_0x149ae7);if(_0x20da63[_0x21e5aa(0x2d5)]===0x0)continue;this['_drawTextRange'](_0x5be5c9,_0x20da63,_0x277d64,_0x1d8283);}}}}}[_0x49cc92(0x1cf)](_0x24829c,_0x2d358b,_0x1e18ad,_0x479f53,_0x10b71e){const _0x40be1f=_0x49cc92,_0x488a88=this['_getAnchorBounding'](_0x2d358b),{left:_0x4e1a2b,top:_0x243135,height:_0x5973a1}=_0x488a88,_0x404d4a=this[_0x40be1f(0x192)](),_0x1ca77b=Rt/_0x404d4a,_0xe1d3d2=new p[(_0x40be1f(0x2db))](re+a[_0x40be1f(0x340)](F),{'left':_0x4e1a2b+_0x1e18ad-_0x1ca77b,'top':_0x243135+_0x479f53,'height':_0x5973a1,'width':Tt,'fill':_0x24829c||p[_0x40be1f(0x1be)](a[_0x40be1f(0x34d)][_0x40be1f(0x2d2)],0x0),'strokeWidth':_0x1ca77b,'stroke':Dt,'evented':!0x0});this[_0x40be1f(0x15a)]=_0xe1d3d2,this[_0x40be1f(0x3ba)][_0x40be1f(0x1d5)](_0xe1d3d2,E[_0x40be1f(0x328)]);const _0x1ce7ea=new p[(_0x40be1f(0x2db))](re+a['generateRandomId'](F),{'left':_0x4e1a2b+_0x1e18ad-_0x1ca77b,'top':_0x243135+_0x479f53-oe/0x2,'height':oe,'width':oe,'fill':_0x24829c||p['getColor'](a[_0x40be1f(0x34d)]['black'],0x0),'strokeWidth':0x0,'stroke':_0x24829c||p[_0x40be1f(0x1be)](a[_0x40be1f(0x34d)]['black'],0x0),'evented':!0x1});this[_0x40be1f(0x295)]=_0x1ce7ea,this[_0x40be1f(0x3ba)][_0x40be1f(0x1d5)](_0x1ce7ea,E[_0x40be1f(0x328)]);const _0x533f96=new ee(re+a['generateRandomId'](F),{'left':_0x4e1a2b+_0x1e18ad-_0x1ca77b,'top':_0x243135+_0x479f53-W,'text':_0x10b71e,'color':_0x24829c});this[_0x40be1f(0x175)]=_0x533f96,this['_scene'][_0x40be1f(0x1d5)](_0x533f96,E[_0x40be1f(0x328)]),this[_0x40be1f(0x319)]=!0x1;}[_0x49cc92(0x242)](){const _0x46c948=_0x49cc92,_0x27c648=this[_0x46c948(0x15a)]['onPointerEnter$']['subscribeEvent'](()=>{const _0x265d51=_0x46c948;this[_0x265d51(0x319)]=!0x0;}),_0xbc2594=this[_0x46c948(0x15a)][_0x46c948(0x2f7)][_0x46c948(0x204)](()=>{const _0x4bafac=_0x46c948;this[_0x4bafac(0x22d)]&&clearTimeout(this['_hideTimer']),this['_hideTimer']=setTimeout(()=>{const _0xf74715=_0x4bafac;this[_0xf74715(0x319)]=!0x1;},0x7d0);});return()=>{const _0x3c34f8=_0x46c948;_0x27c648[_0x3c34f8(0x1d6)](),_0xbc2594['unsubscribe']();};}[_0x49cc92(0x2ab)](_0xf42bc0,_0x46c5b6,_0x2c3781,_0x2462b8){const _0x291b59=_0x49cc92,_0x4f5d70=new a[(_0x291b59(0x1fa))](_0xf42bc0)[_0x291b59(0x320)](0.2)[_0x291b59(0x198)](),_0x233b15=new p[(_0x291b59(0x1e3))](bt+a[_0x291b59(0x340)](F),{'pointsGroup':_0x46c5b6,'fill':_0x4f5d70||p['getColor'](a[_0x291b59(0x34d)][_0x291b59(0x2d2)],0.2),'left':_0x2c3781,'top':_0x2462b8,'evented':!0x1,'debounceParentDirty':!0x1});this['_shapes'][_0x291b59(0x38d)](_0x233b15),this[_0x291b59(0x3ba)][_0x291b59(0x1d5)](_0x233b15,E[_0x291b59(0x328)]);}[_0x49cc92(0x278)](_0x481cbe,_0xc88e09,_0x4240da,_0x4e1af7){const _0x3387ee=_0x49cc92,_0x56f55d=new a[(_0x3387ee(0x1fa))](_0x481cbe)[_0x3387ee(0x320)](0.2)[_0x3387ee(0x198)](),_0x1cc193=new p['RegularPolygon'](Ot+a['generateRandomId'](F),{'pointsGroup':_0xc88e09,'fill':_0x56f55d||p[_0x3387ee(0x1be)](a[_0x3387ee(0x34d)][_0x3387ee(0x2d2)],0.2),'left':_0x4240da,'top':_0x4e1af7,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x3387ee(0x358)][_0x3387ee(0x38d)](_0x1cc193),this[_0x3387ee(0x3ba)]['addObject'](_0x1cc193,E[_0x3387ee(0x328)]);}[_0x49cc92(0x316)](_0xd825d7){const _0x52869f=_0xd825d7[0x0],_0x9ea7c1=_0x52869f[0x0],_0x25cedb=_0x52869f[0x2],{x:_0x4e9d56,y:_0x486763}=_0x9ea7c1,{x:_0x9f098c,y:_0x369f88}=_0x25cedb;return{'left':_0x4e9d56,'top':_0x486763,'width':_0x9f098c-_0x4e9d56,'height':_0x369f88-_0x486763};}['_getScale'](){const _0xe56eed=_0x49cc92,{scaleX:_0x5939cc,scaleY:_0x2f11c0}=this[_0xe56eed(0x3ba)][_0xe56eed(0x2ba)]();return Math[_0xe56eed(0x313)](_0x5939cc,_0x2f11c0);}}var Ut=Object[_0x49cc92(0x1af)],Nt=(_0x2a7c12,_0x4398ac,_0x3d0cfd,_0x19f63b)=>{const _0x404f72=_0x49cc92;for(var _0x1ca328=_0x19f63b>0x1?void 0x0:_0x19f63b?Ut(_0x4398ac,_0x3d0cfd):_0x4398ac,_0x2ec96f=_0x2a7c12[_0x404f72(0x2d5)]-0x1,_0x2e0890;_0x2ec96f>=0x0;_0x2ec96f--)(_0x2e0890=_0x2a7c12[_0x2ec96f])&&(_0x1ca328=_0x2e0890(_0x1ca328)||_0x1ca328);return _0x1ca328;},X=(_0x3ab283,_0xc3c3c6)=>(_0x496bad,_0x4b060a)=>_0xc3c3c6(_0x496bad,_0x4b060a,_0x3ab283);let fe=class extends a[_0x49cc92(0x3b8)]{constructor(_0x2da898,_0x4d40b5,_0x4934f8,_0x46b191,_0x2a1eb0){const _0x1b9c63=_0x49cc92;super(),h(this,_0x1b9c63(0x279),[]),h(this,_0x1b9c63(0x2c7),[]),(this[_0x1b9c63(0x33d)]=_0x2da898,this[_0x1b9c63(0x292)]=_0x4d40b5,this[_0x1b9c63(0x25a)]=_0x4934f8,this['_commandService']=_0x46b191,this[_0x1b9c63(0x3a3)]=_0x2a1eb0,this[_0x1b9c63(0x2ef)]());}[_0x49cc92(0x2ef)](){const _0x21d396=_0x49cc92,_0x42a4d0=this['_context'][_0x21d396(0x2eb)],_0x2808c5=this['_docSkeletonManagerService'];this[_0x21d396(0x28e)](d[_0x21d396(0x38e)]([this[_0x21d396(0x25a)][_0x21d396(0x1bf)](_0x42a4d0),this[_0x21d396(0x3a3)]['currentTheme$']])['pipe']($['map'](([_0x1c46ba,_0x19b38c])=>({'skeleton':_0x2808c5[_0x21d396(0x3a1)](),'cursors':[..._0x1c46ba['values']()][_0x21d396(0x30b)](_0x4a8ba1=>({..._0x4a8ba1,'color':this[_0x21d396(0x3a3)][_0x21d396(0x360)](_0x4a8ba1[_0x21d396(0x300)])}))})))[_0x21d396(0x282)](_0x1ae92b=>{const _0x112ca1=_0x21d396;if(this['_removeCollabCursors'](),_0x1ae92b){const {skeleton:_0x14ada8,cursors:_0x41d75d}=_0x1ae92b;this[_0x112ca1(0x3c0)](_0x14ada8,_0x41d75d);}})),this[_0x21d396(0x361)](),this[_0x21d396(0x189)]();}[_0x49cc92(0x3c0)](_0x53a296,_0x267d2c){const _0x44dbb6=_0x49cc92,{scene:_0x481a66,mainComponent:_0x9c152c}=this[_0x44dbb6(0x33d)],_0x55c521=_0x267d2c[_0x44dbb6(0x3ca)](_0x59de15=>new Re(_0x59de15,_0x481a66,_0x53a296,_0x9c152c));this[_0x44dbb6(0x279)]=_0x55c521,this[_0x44dbb6(0x2c7)]=_0x267d2c;}[_0x49cc92(0x21e)](){const _0x18ffd0=_0x49cc92;this[_0x18ffd0(0x1b2)]();const {scene:_0x5d0f02,mainComponent:_0x3cd17a}=this[_0x18ffd0(0x33d)],_0x4ef0bb=this[_0x18ffd0(0x292)]['getSkeleton'](),_0x8e82c0=this['_cursors'][_0x18ffd0(0x3ca)](_0x549db0=>new Re(_0x549db0,_0x5d0f02,_0x4ef0bb,_0x3cd17a));this[_0x18ffd0(0x279)]=_0x8e82c0;}[_0x49cc92(0x1b2)](){const _0x4d7a6a=_0x49cc92;this[_0x4d7a6a(0x279)]['forEach'](_0x55ac89=>_0x55ac89['dispose']()),this['_cursorShapes']=[];}['_initCommandExecutedListener'](){const _0x171a63=_0x49cc92,_0x3766cd=[E['SetDocZoomRatioOperation']['id']];this[_0x171a63(0x28e)](this[_0x171a63(0x3d6)][_0x171a63(0x276)](_0x76e757=>{const _0x2f8c3d=_0x171a63;_0x3766cd[_0x2f8c3d(0x337)](_0x76e757['id'])&&_0x76e757[_0x2f8c3d(0x1cd)]['unitId']===this[_0x2f8c3d(0x33d)][_0x2f8c3d(0x2eb)]&&this[_0x2f8c3d(0x21e)]();}));}[_0x49cc92(0x361)](){const _0x26a734=_0x49cc92;this[_0x26a734(0x28e)](a['fromEventSubject'](this[_0x26a734(0x33d)][_0x26a734(0x17c)][_0x26a734(0x3bb)])[_0x26a734(0x19c)]($[_0x26a734(0x2c2)](_0x42165e=>_0x42165e[_0x26a734(0x33a)]===p[_0x26a734(0x281)][_0x26a734(0x31d)]),$[_0x26a734(0x326)](0x10))['subscribe'](()=>{const _0x2af07a=_0x26a734;this[_0x2af07a(0x21e)]();}));}};fe=Nt([X(0x1,a['Inject'](Y[_0x49cc92(0x2b9)])),X(0x2,a[_0x49cc92(0x26b)](x)),X(0x3,a[_0x49cc92(0x35c)]),X(0x4,a['Inject'](a[_0x49cc92(0x2d0)]))],fe);const Mt=0x1,Lt=1.5;class $e extends p['Shape']{constructor(_0x4c49ef,_0x427e2a){const _0x46b6cf=_0x49cc92;super(_0x4c49ef,_0x427e2a),h(this,_0x46b6cf(0x329)),h(this,'_hovered',!0x1),h(this,_0x46b6cf(0x235)),h(this,_0x46b6cf(0x2b1),''),h(this,'_labelPosition','top'),h(this,_0x46b6cf(0x248)),(_0x427e2a&&this['setShapeProps'](_0x427e2a),this[_0x46b6cf(0x238)][_0x46b6cf(0x204)](()=>this[_0x46b6cf(0x2d6)]({'hovered':!0x0})),this[_0x46b6cf(0x2f7)][_0x46b6cf(0x204)](()=>this[_0x46b6cf(0x2d6)]({'hovered':!0x1})));}['setShapeProps'](_0x1b0fdd){const _0x52dd45=_0x49cc92;var _0xeb6aa2,_0x27d87b,_0x5aef45,_0x56559c,_0x345eff,_0x2dc059;this[_0x52dd45(0x329)]=(_0xeb6aa2=_0x1b0fdd['color'])!=null?_0xeb6aa2:this[_0x52dd45(0x329)],this['_hovered']=(_0x27d87b=_0x1b0fdd[_0x52dd45(0x274)])!=null?_0x27d87b:this[_0x52dd45(0x185)],this['_range']=(_0x5aef45=_0x1b0fdd[_0x52dd45(0x1d1)])!=null?_0x5aef45:this[_0x52dd45(0x235)],this[_0x52dd45(0x2b1)]=(_0x56559c=_0x1b0fdd['name'])!=null?_0x56559c:this['_name'],this[_0x52dd45(0x1a5)]=(_0x345eff=_0x1b0fdd[_0x52dd45(0x26e)])!=null?_0x345eff:this[_0x52dd45(0x1a5)],this[_0x52dd45(0x248)]=(_0x2dc059=_0x1b0fdd[_0x52dd45(0x2ec)])!=null?_0x2dc059:this[_0x52dd45(0x248)],this[_0x52dd45(0x158)]({'width':_0x1b0fdd['width'],'height':_0x1b0fdd[_0x52dd45(0x2b4)]});}['onMouseMove'](_0x46ee9){const _0x2142ed=_0x49cc92,{row:_0x4f63c9,column:_0x43ec07}=_0x46ee9;if(_0x4f63c9>=this[_0x2142ed(0x235)][_0x2142ed(0x393)]&&_0x4f63c9<=this['_range'][_0x2142ed(0x3c9)]&&_0x43ec07>=this[_0x2142ed(0x235)][_0x2142ed(0x179)]&&_0x43ec07<=this[_0x2142ed(0x235)][_0x2142ed(0x3ae)]){this['setShapeProps']({'hovered':!0x0});return;}this[_0x2142ed(0x2d6)]({'hovered':!0x1});}[_0x49cc92(0x2d8)](_0x6648b6){return!0x1;}['_draw'](_0x58d113){const _0x12cc02=_0x49cc92;p['Rect'][_0x12cc02(0x36d)](_0x58d113,{'width':this[_0x12cc02(0x384)],'height':this['height'],'strokeWidth':Lt,'stroke':this[_0x12cc02(0x329)],'evented':!0x1,'fill':this[_0x12cc02(0x248)]}),this[_0x12cc02(0x185)]&&(_0x58d113['save'](),_0x58d113[_0x12cc02(0x263)](0x1,0x0,0x0,0x1,this[_0x12cc02(0x384)],this[_0x12cc02(0x1a5)]===_0x12cc02(0x3d2)?0x0:-W),ee[_0x12cc02(0x36d)](_0x58d113,{'text':this[_0x12cc02(0x2b1)],'color':this[_0x12cc02(0x329)]}),_0x58d113[_0x12cc02(0x27d)]());}}var Pt=Object[_0x49cc92(0x1af)],wt=(_0x27d0f6,_0x4d3ccb,_0x32e91a,_0x25bc69)=>{const _0x55ec05=_0x49cc92;for(var _0x4ca326=_0x25bc69>0x1?void 0x0:_0x25bc69?Pt(_0x4d3ccb,_0x32e91a):_0x4d3ccb,_0x43b367=_0x27d0f6[_0x55ec05(0x2d5)]-0x1,_0x2c9f02;_0x43b367>=0x0;_0x43b367--)(_0x2c9f02=_0x27d0f6[_0x43b367])&&(_0x4ca326=_0x2c9f02(_0x4ca326)||_0x4ca326);return _0x4ca326;},ae=(_0x174865,_0x5cdaf7)=>(_0x284916,_0x3780bb)=>_0x5cdaf7(_0x284916,_0x3780bb,_0x174865);const At=0x1389;let Ie=class extends a[_0x49cc92(0x3b8)]{constructor(_0x371dff,_0x537f4d,_0x80146c,_0x190f73){const _0x479856=_0x49cc92;super(),h(this,'_cursors',new Set()),h(this,_0x479856(0x25b),null),(this['_context']=_0x371dff,this[_0x479856(0x20a)]=_0x537f4d,this[_0x479856(0x25a)]=_0x80146c,this[_0x479856(0x3a3)]=_0x190f73,this[_0x479856(0x2ef)]());}[_0x49cc92(0x2ef)](){const _0x506d12=_0x49cc92;this['_sheetSkeletonManagerService'][_0x506d12(0x1c7)]['pipe']($[_0x506d12(0x344)](this[_0x506d12(0x23a)]),$[_0x506d12(0x211)](_0x2cd2f8=>{const _0x2352cd=_0x506d12;if(_0x2cd2f8){const _0x420817=_0x2cd2f8[_0x2352cd(0x265)];return d[_0x2352cd(0x38e)](this[_0x2352cd(0x25a)][_0x2352cd(0x1bf)](this[_0x2352cd(0x33d)][_0x2352cd(0x2eb)]),this[_0x2352cd(0x3a3)][_0x2352cd(0x1ff)])[_0x2352cd(0x19c)]($[_0x2352cd(0x3ca)](([_0x543377,_0x58636a])=>{const _0x13bfc7=_0x2352cd,_0x5d9501=new Map();return _0x543377[_0x13bfc7(0x392)]((_0x5ab712,_0x339c8b)=>{const _0x20151a=_0x13bfc7;if(_0x5ab712[_0x20151a(0x287)]===_0x420817){const _0x116fff={..._0x5ab712};_0x116fff[_0x20151a(0x300)]=this[_0x20151a(0x3a3)][_0x20151a(0x360)](_0x5ab712[_0x20151a(0x300)]),_0x5d9501[_0x20151a(0x2a0)](_0x339c8b,_0x116fff);}}),{'skeleton':_0x2cd2f8,'cursors':_0x5d9501};}));}return d['of']({'skeleton':null,'cursors':new Map()});}))[_0x506d12(0x282)](({skeleton:_0xd1d794,cursors:_0x3dd2f7})=>{const _0x4a4c98=_0x506d12;this[_0x4a4c98(0x1b2)](),_0xd1d794&&this[_0x4a4c98(0x3c0)](_0xd1d794,_0x3dd2f7);}),this[_0x506d12(0x20a)][_0x506d12(0x1c7)][_0x506d12(0x282)](_0x5f3971=>{const _0x1b7e9d=_0x506d12;if(_0x5f3971==null)return;const {skeleton:_0x36ed57}=_0x5f3971,{scene:_0x4dc2fc}=this[_0x1b7e9d(0x33d)];_0x4dc2fc['onPointerMove$']['subscribeEvent'](a[_0x1b7e9d(0x24c)](_0x20e68d=>{const _0x3af250=_0x1b7e9d;var _0x4f93d5,_0x5371fb;const {offsetX:_0x1c1c74,offsetY:_0x21348d}=_0x20e68d,{x:_0x14cf91,y:_0x35e756}=_0x4dc2fc[_0x3af250(0x346)](p[_0x3af250(0x1a3)]['FromArray']([_0x1c1c74,_0x21348d])),{scaleX:_0x3177bf,scaleY:_0x14706a}=_0x4dc2fc['getAncestorScale'](),_0xdbcb1b=_0x4dc2fc['getViewport'](p[_0x3af250(0x347)][_0x3af250(0x2aa)]),_0x154af5=_0x4dc2fc[_0x3af250(0x3b7)](p[_0x3af250(0x1a3)][_0x3af250(0x382)]([_0x14cf91,_0x35e756]),_0xdbcb1b),_0x244bf7=_0x36ed57['getCellPositionByOffset'](_0x1c1c74,_0x21348d,_0x3177bf,_0x14706a,_0x154af5);((_0x4f93d5=this[_0x3af250(0x25b)])==null?void 0x0:_0x4f93d5[_0x3af250(0x355)])===_0x244bf7['column']&&((_0x5371fb=this[_0x3af250(0x25b)])==null?void 0x0:_0x5371fb[_0x3af250(0x367)])===_0x244bf7[_0x3af250(0x367)]||this[_0x3af250(0x2c7)][_0x3af250(0x392)](_0x4ef4df=>{const _0x29dc6a=_0x3af250;_0x4ef4df[_0x29dc6a(0x2a1)](_0x244bf7);});},0x64));});}[_0x49cc92(0x3c0)](_0x54e11f,_0x9a3980){const _0x28b44a=_0x49cc92;var _0x24f6a5;const _0x594a03=(_0x24f6a5=this[_0x28b44a(0x20a)][_0x28b44a(0x39f)]())==null?void 0x0:_0x24f6a5['skeleton'];if(!_0x594a03)return;const _0x3438d6=this['_getSheetObject']();if(!_0x3438d6)return;this['_cursors'][_0x28b44a(0x392)](_0x581f1a=>{const _0x336cb7=_0x28b44a;_0x581f1a[_0x336cb7(0x3a7)]();});const {scene:_0x588b4e}=_0x3438d6,_0x4fbfb4=yt(Array[_0x28b44a(0x184)](_0x9a3980[_0x28b44a(0x152)]()))[_0x28b44a(0x3ca)](_0x5881ab=>{const _0x563db8=_0x28b44a,{color:_0xb14181,range:_0x38109c,name:_0x37774a,selection:_0x12c163,sheetID:_0x57ec78}=_0x5881ab,{startColumn:_0x223a6e,startRow:_0x171dab,endColumn:_0x274fcc,endRow:_0x2d851b}=_0x38109c,_0x50b971=G[_0x563db8(0x16a)](_0x171dab,_0x223a6e,_0x588b4e,_0x594a03),_0x3c7fa3=G['getCoordByCell'](_0x2d851b,_0x274fcc,_0x588b4e,_0x594a03),{columnHeaderHeightAndMarginTop:_0x46c4f0}=_0x594a03,{startX:_0xe684f1,startY:_0x533c13}=_0x50b971,{endX:_0x1340c1,endY:_0x1dd661}=_0x3c7fa3,_0x56d759=_0x1340c1-_0xe684f1,_0x423b12=_0x1dd661-_0x533c13,_0x56c481={'labelPosition':_0x533c13-_0x46c4f0>=W?'top':_0x563db8(0x3d2),'sheetID':_0x57ec78,'range':_0x38109c,'color':_0xb14181,'name':_0x37774a,'selection':_0x12c163,'left':_0xe684f1,'top':_0x533c13,'width':_0x56d759,'height':_0x423b12,'evented':!0x1,'zIndex':At};return new $e(_0x37774a,_0x56c481);});_0x588b4e[_0x28b44a(0x2da)](_0x4fbfb4,Mt),this['_cursors']=new Set(_0x4fbfb4);}[_0x49cc92(0x1b2)](){const _0x39a160=_0x49cc92;var _0x5bbec0;(_0x5bbec0=this[_0x39a160(0x2c7)])==null||_0x5bbec0['forEach'](_0x500cd7=>_0x500cd7[_0x39a160(0x3bc)]());}[_0x49cc92(0x15e)](){const _0x4f5838=_0x49cc92;return G['getSheetObject'](this[_0x4f5838(0x33d)][_0x4f5838(0x2c1)],this[_0x4f5838(0x33d)]);}};Ie=wt([ae(0x1,a[_0x49cc92(0x26b)](G[_0x49cc92(0x25f)])),ae(0x2,a['Inject'](x)),ae(0x3,a[_0x49cc92(0x26b)](a[_0x49cc92(0x2d0)]))],Ie);function yt(_0x2e4bb4){const _0x31db9f=_0x49cc92,_0x3174df=new Map();return _0x2e4bb4[_0x31db9f(0x392)](_0x54e2ea=>{const _0x5bd5a1=_0x31db9f;if(_0x3174df[_0x5bd5a1(0x19a)](_0x54e2ea['selection'])){const _0x1b86a5=_0x3174df[_0x5bd5a1(0x23b)](_0x54e2ea[_0x5bd5a1(0x2cb)]);_0x1b86a5[_0x5bd5a1(0x301)]+=',\x20'+_0x54e2ea[_0x5bd5a1(0x301)];}else _0x3174df[_0x5bd5a1(0x2a0)](_0x54e2ea[_0x5bd5a1(0x2cb)],_0x54e2ea);}),Array['from'](_0x3174df[_0x31db9f(0x152)]());}var $t=Object['getOwnPropertyDescriptor'],xt=(_0x488af6,_0x15438d,_0x3922e4,_0x71155f)=>{const _0x15917a=_0x49cc92;for(var _0x856a5d=_0x71155f>0x1?void 0x0:_0x71155f?$t(_0x15438d,_0x3922e4):_0x15438d,_0x1249e0=_0x488af6[_0x15917a(0x2d5)]-0x1,_0x22ac6f;_0x1249e0>=0x0;_0x1249e0--)(_0x22ac6f=_0x488af6[_0x1249e0])&&(_0x856a5d=_0x22ac6f(_0x856a5d)||_0x856a5d);return _0x856a5d;},y=(_0x2837ec,_0x5e8ec8)=>(_0x711820,_0x100d2a)=>_0x5e8ec8(_0x711820,_0x100d2a,_0x2837ec);let q=class extends a['Disposable']{constructor(_0x35a354,_0x5d5e8d,_0x41cacd,_0x40d244,_0x7f7957,_0x2ae860){const _0x420e9e=_0x49cc92;super(),this['_beforeCloseService']=_0x35a354,this[_0x420e9e(0x275)]=_0x5d5e8d,this[_0x420e9e(0x30d)]=_0x41cacd,this[_0x420e9e(0x3a8)]=_0x40d244,this[_0x420e9e(0x1dc)]=_0x7f7957,this[_0x420e9e(0x2fe)]=_0x2ae860,this['_setupBeforeClosingHandler'](),this[_0x420e9e(0x2b2)]();}[_0x49cc92(0x398)](){const _0x32a2ac=_0x49cc92;this[_0x32a2ac(0x28e)](this[_0x32a2ac(0x385)][_0x32a2ac(0x2fa)](()=>{const _0x5e8784=_0x32a2ac;if(this['_localCacheService'][_0x5e8784(0x1c3)][_0x5e8784(0x2f8)])return this[_0x5e8784(0x2fe)]['t'](_0x5e8784(0x3aa));}));}[_0x49cc92(0x2b2)](){const _0x21b105=_0x49cc92;this['disposeWithMe'](this['_collaborationUIEventService'][_0x21b105(0x14f)]['subscribe'](_0x2707ef=>{const _0x59cb71=_0x21b105;_0x2707ef['id']===u['CollaborationUIEventId'][_0x59cb71(0x379)]&&this[_0x59cb71(0x3a8)]['show']({'type':D[_0x59cb71(0x3a6)]['Warning'],'content':this[_0x59cb71(0x2fe)]['t'](_0x59cb71(0x217))}),_0x2707ef['id']===u[_0x59cb71(0x2a9)]['CLOSE_ROOM']&&this[_0x59cb71(0x3a8)][_0x59cb71(0x1aa)]({'type':D[_0x59cb71(0x3a6)]['Warning'],'content':this[_0x59cb71(0x2fe)]['t'](_0x59cb71(0x302))}),_0x2707ef['id']===u['CollaborationUIEventId'][_0x59cb71(0x2a6)]&&this['_notificationService'][_0x59cb71(0x1aa)]({'title':this['_localeService']['t']('permission.title'),'content':this['_localeService']['t'](_0x59cb71(0x3b3)),'type':_0x59cb71(0x205),'duration':0x0}),_0x2707ef['id']===u[_0x59cb71(0x2a9)]['CONFLICT']&&this[_0x59cb71(0x3a8)][_0x59cb71(0x1aa)]({'type':D[_0x59cb71(0x3a6)][_0x59cb71(0x2f9)],'content':this[_0x59cb71(0x2fe)]['t'](_0x59cb71(0x302))+'('+_0x2707ef[_0x59cb71(0x2ad)]+')'}),_0x2707ef['id']===u[_0x59cb71(0x2a9)][_0x59cb71(0x223)]&&this[_0x59cb71(0x3a8)][_0x59cb71(0x1aa)]({'type':D[_0x59cb71(0x3a6)]['Warning'],'content':this[_0x59cb71(0x2fe)]['t'](_0x2707ef['data']||'')}),_0x2707ef['id']===u['CollaborationUIEventId']['SOCKET_FAILED_RETRY']&&this[_0x59cb71(0x3a8)][_0x59cb71(0x1aa)]({'type':D[_0x59cb71(0x3a6)][_0x59cb71(0x30c)],'content':this[_0x59cb71(0x2fe)]['t']('session.will-retry')}),_0x2707ef['id']===u[_0x59cb71(0x2a9)][_0x59cb71(0x2dc)]&&this[_0x59cb71(0x3a8)][_0x59cb71(0x1aa)]({'type':D[_0x59cb71(0x3a6)][_0x59cb71(0x2f9)],'content':this[_0x59cb71(0x2fe)]['t'](_0x59cb71(0x37d))}),_0x2707ef['id']===u[_0x59cb71(0x2a9)][_0x59cb71(0x21c)]&&this[_0x59cb71(0x3a8)][_0x59cb71(0x1aa)]({'type':D[_0x59cb71(0x3a6)][_0x59cb71(0x2f9)],'content':this[_0x59cb71(0x2fe)]['t'](_0x59cb71(0x2e8))});}));}};function _0x381d(_0x4c7356,_0x1903c2){const _0x1db502=_0x1db5();return _0x381d=function(_0x381d82,_0x3df247){_0x381d82=_0x381d82-0x14e;let _0x129e73=_0x1db502[_0x381d82];return _0x129e73;},_0x381d(_0x4c7356,_0x1903c2);}q=xt([y(0x0,O[_0x49cc92(0x335)]),y(0x1,u[_0x49cc92(0x15f)]),y(0x2,a[_0x49cc92(0x26b)](u[_0x49cc92(0x200)])),y(0x3,O[_0x49cc92(0x29f)]),y(0x4,O[_0x49cc92(0x27b)]),y(0x5,a['Inject'](a['LocaleService']))],q);const Bt=_0x49cc92(0x153),De={};var jt=Object['getOwnPropertyDescriptor'],kt=(_0x200907,_0xbd536e,_0x52e00c,_0x1ca0a9)=>{const _0x42acda=_0x49cc92;for(var _0x70472e=_0x1ca0a9>0x1?void 0x0:_0x1ca0a9?jt(_0xbd536e,_0x52e00c):_0xbd536e,_0x2174d5=_0x200907[_0x42acda(0x2d5)]-0x1,_0x5e1dbe;_0x2174d5>=0x0;_0x2174d5--)(_0x5e1dbe=_0x200907[_0x2174d5])&&(_0x70472e=_0x5e1dbe(_0x70472e)||_0x70472e);return _0x70472e;},Ue=(_0x196b15,_0x278178)=>(_0x2a836c,_0x54a1d6)=>_0x278178(_0x2a836c,_0x54a1d6,_0x196b15);let z=class{constructor(_0x19ff15,_0x310d84){const _0x34b459=_0x49cc92;this[_0x34b459(0x334)]=_0x19ff15,this[_0x34b459(0x1b4)]=_0x310d84;}[_0x49cc92(0x39b)](_0x166033){const _0x5b5f59=_0x49cc92;this[_0x5b5f59(0x356)](_0x166033),this[_0x5b5f59(0x331)](_0x166033);}['transformRemoteChangeset'](_0x12c63c){const _0x39fb46=_0x49cc92,{unitID:_0x3536d9}=_0x12c63c,_0x14e6be=this[_0x39fb46(0x1b4)][_0x39fb46(0x29b)](_0x3536d9)[_0x39fb46(0x321)](E[_0x39fb46(0x3c5)]),{redoCache:_0x3bbc21}=_0x14e6be[_0x39fb46(0x354)]();if(_0x3bbc21['length']===0x0)return _0x12c63c;let _0x580348=a[_0x39fb46(0x3b6)][_0x39fb46(0x16c)](_0x12c63c[_0x39fb46(0x33e)][0x0]);for(let _0x197606=0x0;_0x197606<_0x3bbc21[_0x39fb46(0x2d5)];_0x197606++){const _0x21c788={'id':_0x39fb46(0x237),'params':{..._0x3bbc21[_0x197606]}},_0x4dbc30=this[_0x39fb46(0x334)]['transformMutation'](_0x580348,_0x21c788,!0x1);if(m[_0x39fb46(0x32e)](_0x4dbc30))throw _0x4dbc30[_0x39fb46(0x205)];_0x580348=_0x4dbc30['m1Prime'];}return{...a[_0x39fb46(0x3b6)]['deepClone'](_0x12c63c),'mutations':[_0x580348]};}[_0x49cc92(0x356)](_0x426923){const _0x28ce9c=_0x49cc92,{unitID:_0x16a4f2}=_0x426923,_0x3f35d1=this[_0x28ce9c(0x1b4)]['getRenderById'](_0x16a4f2)[_0x28ce9c(0x321)](E[_0x28ce9c(0x3c5)]),{undoCache:_0x233352,redoCache:_0x495d50}=_0x3f35d1[_0x28ce9c(0x354)]();if(_0x233352[_0x28ce9c(0x2d5)]===0x0||_0x495d50['length']===0x0)return;const _0x2438a6=[],_0x4606f1=[];let _0x9c624a=a['Tools'][_0x28ce9c(0x16c)](_0x426923['mutations'][0x0]),_0x37544d=a[_0x28ce9c(0x3b6)][_0x28ce9c(0x16c)](_0x426923[_0x28ce9c(0x33e)][0x0]);for(let _0x12d902=_0x233352['length']-0x1;_0x12d902>=0x0;_0x12d902--){const _0x457974={'id':_0x28ce9c(0x237),'params':{..._0x233352[_0x12d902]}},_0x24333f={'id':'doc.mutation.rich-text-editing','params':{..._0x495d50[_0x12d902]}},_0x1db743=this['_transformService'][_0x28ce9c(0x365)](_0x9c624a,_0x457974,!0x1),_0x57a2dd=this[_0x28ce9c(0x334)]['transformMutation'](_0x37544d,_0x24333f,!0x1);if(m['isTransformMutationFailure'](_0x1db743))throw _0x1db743[_0x28ce9c(0x205)];if(m[_0x28ce9c(0x32e)](_0x57a2dd))throw _0x57a2dd['error'];_0x2438a6['unshift'](_0x1db743[_0x28ce9c(0x370)]['params']),_0x4606f1[_0x28ce9c(0x39d)](_0x57a2dd[_0x28ce9c(0x370)][_0x28ce9c(0x1cd)]),_0x9c624a=_0x1db743[_0x28ce9c(0x2bd)],_0x37544d=_0x57a2dd[_0x28ce9c(0x2bd)];}_0x3f35d1[_0x28ce9c(0x1f7)]({'undoCache':_0x2438a6,'redoCache':_0x4606f1});}[_0x49cc92(0x331)](_0x42b525){const _0x5c4703=_0x49cc92,{unitID:_0x2a9b46}=_0x42b525,_0x331a7d=this[_0x5c4703(0x1b4)][_0x5c4703(0x29b)](_0x2a9b46)['with'](E[_0x5c4703(0x3c5)]),_0x6f2ab1=_0x331a7d[_0x5c4703(0x1cb)]();if(_0x6f2ab1==null)return;const _0x765d6d=[{'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x42b525[_0x5c4703(0x2cc)],'actions':null,'textRanges':[_0x6f2ab1]}}],_0x6e45a1=this[_0x5c4703(0x334)][_0x5c4703(0x1f8)](_0x42b525,_0x765d6d);if(!m[_0x5c4703(0x261)](_0x6e45a1))throw _0x6e45a1['error'];const _0x9b4a9c=_0x6e45a1[_0x5c4703(0x370)][0x0][_0x5c4703(0x1cd)][_0x5c4703(0x26c)];Array[_0x5c4703(0x165)](_0x9b4a9c)&&_0x9b4a9c['length']&&_0x331a7d['setActiveRange'](_0x9b4a9c[0x0]);}};z=kt([Ue(0x0,m[_0x49cc92(0x151)]),Ue(0x1,p['IRenderManagerService'])],z);var Ft=Object[_0x49cc92(0x1af)],Ht=(_0x369538,_0x14aada,_0x3808e0,_0x106515)=>{const _0x9480db=_0x49cc92;for(var _0x3b615d=_0x106515>0x1?void 0x0:_0x106515?Ft(_0x14aada,_0x3808e0):_0x14aada,_0x2e2bc3=_0x369538[_0x9480db(0x2d5)]-0x1,_0x554f54;_0x2e2bc3>=0x0;_0x2e2bc3--)(_0x554f54=_0x369538[_0x2e2bc3])&&(_0x3b615d=_0x554f54(_0x3b615d)||_0x3b615d);return _0x3b615d;},ce=(_0xb8ce96,_0x37e452)=>(_0xfb8fb6,_0x58c7f7)=>_0x37e452(_0xfb8fb6,_0x58c7f7,_0xb8ce96);let J=class{constructor(_0x30e8ab,_0x3803a8,_0x52347e){const _0x41905d=_0x49cc92;this[_0x41905d(0x176)]=_0x30e8ab,this[_0x41905d(0x334)]=_0x3803a8,this['_docStateChangeManagerService']=_0x52347e;}[_0x49cc92(0x1b7)](_0x4ea198){this['_transformHistoryAndStateStack'](_0x4ea198);}[_0x49cc92(0x255)](_0x14fb21){const _0x1292b5=_0x49cc92,{unitID:_0x414495}=_0x14fb21,{collaboration:_0x38ca4b}=this[_0x1292b5(0x164)][_0x1292b5(0x30e)](_0x414495);if(_0x38ca4b[_0x1292b5(0x2d5)]===0x0)return _0x14fb21;let _0x438b13=a[_0x1292b5(0x3b6)][_0x1292b5(0x16c)](_0x14fb21[_0x1292b5(0x33e)][0x0]);for(let _0x3e1295=0x0;_0x3e1295<_0x38ca4b[_0x1292b5(0x2d5)];_0x3e1295++){const _0x5954c9={'id':_0x1292b5(0x237),'params':{'unitId':_0x38ca4b[_0x3e1295][_0x1292b5(0x2eb)],..._0x38ca4b[_0x3e1295][_0x1292b5(0x174)]}},_0x3a2cc5=this[_0x1292b5(0x334)]['transformMutation'](_0x438b13,_0x5954c9,!0x1);if(m[_0x1292b5(0x32e)](_0x3a2cc5))throw _0x3a2cc5['error'];_0x438b13=_0x3a2cc5[_0x1292b5(0x2bd)];}return{...a[_0x1292b5(0x3b6)][_0x1292b5(0x16c)](_0x14fb21),'mutations':[_0x438b13]};}[_0x49cc92(0x2b7)](_0x417bdb){const _0x4da699=_0x49cc92,{unitID:_0x5e01bd}=_0x417bdb,{history:_0x2d9781,collaboration:_0x16cc3c}=this[_0x4da699(0x164)][_0x4da699(0x30e)](_0x5e01bd);if(_0x2d9781[_0x4da699(0x2d5)]===0x0&&_0x16cc3c[_0x4da699(0x2d5)]===0x0)return;const _0x662289=[],_0x4a05f2=[];let _0x3b5168=a['Tools'][_0x4da699(0x16c)](_0x417bdb[_0x4da699(0x33e)][0x0]),_0x508cb7=a[_0x4da699(0x3b6)][_0x4da699(0x16c)](_0x417bdb['mutations'][0x0]);for(let _0x2ee3e3=_0x2d9781['length']-0x1;_0x2ee3e3>=0x0;_0x2ee3e3--){const _0x2a0355={'id':_0x4da699(0x237),'params':{'unitId':_0x2d9781[_0x2ee3e3]['unitId'],..._0x2d9781[_0x2ee3e3]['undoState']}},_0x223033={'id':_0x4da699(0x237),'params':{'unitId':_0x2d9781[_0x2ee3e3][_0x4da699(0x2eb)],..._0x2d9781[_0x2ee3e3]['redoState']}},_0x15d2b3=this[_0x4da699(0x334)][_0x4da699(0x365)](_0x3b5168,_0x2a0355,!0x1),_0x419ec0=this[_0x4da699(0x334)]['transformMutation'](_0x508cb7,_0x223033,!0x1);if(m[_0x4da699(0x32e)](_0x15d2b3))throw _0x15d2b3[_0x4da699(0x205)];if(m[_0x4da699(0x32e)](_0x419ec0))throw _0x419ec0[_0x4da699(0x205)];_0x662289[_0x4da699(0x39d)]({..._0x2d9781[_0x2ee3e3],'undoState':_0x15d2b3[_0x4da699(0x370)][_0x4da699(0x1cd)],'redoState':_0x419ec0['m2Prime'][_0x4da699(0x1cd)]}),_0x3b5168=_0x15d2b3[_0x4da699(0x2bd)],_0x508cb7=_0x419ec0['m1Prime'];}_0x3b5168=a[_0x4da699(0x3b6)]['deepClone'](_0x417bdb[_0x4da699(0x33e)][0x0]),_0x508cb7=a[_0x4da699(0x3b6)]['deepClone'](_0x417bdb[_0x4da699(0x33e)][0x0]);for(let _0x18e7d8=_0x16cc3c['length']-0x1;_0x18e7d8>=0x0;_0x18e7d8--){const _0x441484={'id':_0x4da699(0x237),'params':{'unitId':_0x16cc3c[_0x18e7d8]['unitId'],..._0x16cc3c[_0x18e7d8][_0x4da699(0x1b3)]}},_0x256dd3={'id':_0x4da699(0x237),'params':{'unitId':_0x16cc3c[_0x18e7d8][_0x4da699(0x2eb)],..._0x16cc3c[_0x18e7d8][_0x4da699(0x174)]}},_0x4db436=this[_0x4da699(0x334)]['transformMutation'](_0x3b5168,_0x441484,!0x1),_0x1a112b=this[_0x4da699(0x334)][_0x4da699(0x365)](_0x508cb7,_0x256dd3,!0x1);if(m[_0x4da699(0x32e)](_0x4db436))throw _0x4db436[_0x4da699(0x205)];if(m[_0x4da699(0x32e)](_0x1a112b))throw _0x1a112b[_0x4da699(0x205)];_0x4a05f2['unshift']({..._0x16cc3c[_0x18e7d8],'undoState':_0x4db436[_0x4da699(0x370)][_0x4da699(0x1cd)],'redoState':_0x1a112b['m2Prime'][_0x4da699(0x1cd)]}),_0x3b5168=_0x4db436[_0x4da699(0x2bd)],_0x508cb7=_0x1a112b[_0x4da699(0x2bd)];}this[_0x4da699(0x164)][_0x4da699(0x1fd)](_0x5e01bd,{'history':_0x662289,'collaboration':_0x4a05f2});}};J=Ht([ce(0x0,a[_0x49cc92(0x26b)](a[_0x49cc92(0x341)])),ce(0x1,m[_0x49cc92(0x151)]),ce(0x2,a[_0x49cc92(0x26b)](E[_0x49cc92(0x240)]))],J);var Yt=Object['getOwnPropertyDescriptor'],Wt=(_0x365ce5,_0x480277,_0x17adb1,_0x2b7d66)=>{for(var _0x448d7c=_0x2b7d66>0x1?void 0x0:_0x2b7d66?Yt(_0x480277,_0x17adb1):_0x480277,_0x463047=_0x365ce5['length']-0x1,_0x255144;_0x463047>=0x0;_0x463047--)(_0x255144=_0x365ce5[_0x463047])&&(_0x448d7c=_0x255144(_0x448d7c)||_0x448d7c);return _0x448d7c;},Ne=(_0xfbf082,_0x31c1ff)=>(_0x14ace3,_0x193b32)=>_0x31c1ff(_0x14ace3,_0x193b32,_0xfbf082);let Z=class{constructor(_0x5f034c,_0x228760){const _0x4b7e0e=_0x49cc92;this[_0x4b7e0e(0x176)]=_0x5f034c,this[_0x4b7e0e(0x334)]=_0x228760;}[_0x49cc92(0x162)](_0x58a640){const _0xed24e9=_0x49cc92;var _0x17915f;const _0x219bef=this['_injector'][_0xed24e9(0x23b)](Y['DocSelectionManagerService']),_0x11a99e=(_0x17915f=_0x219bef['getDocRanges']())!=null?_0x17915f:[];if(_0x11a99e[_0xed24e9(0x2d5)]===0x0)return;const _0x23853d=_0x58a640[_0xed24e9(0x2cc)],_0x40f761=[{'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x23853d,'actions':null,'textRanges':_0x11a99e}}],_0x243834=this[_0xed24e9(0x334)]['transformMutationsWithChangeset'](_0x58a640,_0x40f761);if(!m[_0xed24e9(0x261)](_0x243834))throw _0x243834[_0xed24e9(0x205)];const _0x1fc371=_0x243834[_0xed24e9(0x370)][0x0][_0xed24e9(0x1cd)][_0xed24e9(0x26c)];Array[_0xed24e9(0x165)](_0x1fc371)&&_0x1fc371[_0xed24e9(0x2d5)]&&_0x219bef['replaceDocRanges'](_0x1fc371,{'unitId':_0x23853d,'subUnitId':_0x23853d},!0x1);}};Z=Wt([Ne(0x0,a[_0x49cc92(0x26b)](a[_0x49cc92(0x341)])),Ne(0x1,m['ITransformService'])],Z);var Vt=Object[_0x49cc92(0x1af)],Xt=(_0x305028,_0x2c11d9,_0x170ac8,_0x334be9)=>{const _0x5f29b8=_0x49cc92;for(var _0xfd9ec3=_0x334be9>0x1?void 0x0:_0x334be9?Vt(_0x2c11d9,_0x170ac8):_0x2c11d9,_0xa77889=_0x305028[_0x5f29b8(0x2d5)]-0x1,_0x3c774d;_0xa77889>=0x0;_0xa77889--)(_0x3c774d=_0x305028[_0xa77889])&&(_0xfd9ec3=_0x3c774d(_0xfd9ec3)||_0xfd9ec3);return _0xfd9ec3;},N=(_0x328881,_0x2fb097)=>(_0x39f32c,_0x42a696)=>_0x2fb097(_0x39f32c,_0x42a696,_0x328881);let Q=class extends a['Disposable']{constructor(_0xcf713a,_0x53d249,_0x4e62ee,_0x50a070,_0x2eb49e,_0x205c41,_0x2fbd00,_0x1a658b){const _0x5a3298=_0x49cc92;super(),h(this,_0x5a3298(0x218),new d[(_0x5a3298(0x220))](u[_0x5a3298(0x1a7)][_0x5a3298(0x21a)])),(this[_0x5a3298(0x164)]=_0xcf713a,this[_0x5a3298(0x1ce)]=_0x53d249,this[_0x5a3298(0x249)]=_0x4e62ee,this[_0x5a3298(0x1e6)]=_0x50a070,this[_0x5a3298(0x20d)]=_0x2eb49e,this[_0x5a3298(0x18f)]=_0x205c41,this[_0x5a3298(0x3a8)]=_0x2fbd00,this[_0x5a3298(0x2fe)]=_0x1a658b,this[_0x5a3298(0x2a5)]());}[_0x49cc92(0x2a5)](){const _0x20445a=_0x49cc92;this[_0x20445a(0x28e)](this[_0x20445a(0x1ce)]['entityInit$'][_0x20445a(0x282)](_0x1ba6fa=>{const _0xa503cc=_0x20445a,_0x2b5500=this[_0xa503cc(0x164)]['docStateChange$'][_0xa503cc(0x282)](_0x1b4e8e=>{const _0x30803c=_0xa503cc;if(_0x1b4e8e==null)return;const {unitId:_0x1517f8,redoState:_0x7af830,commandId:_0x142185}=_0x1b4e8e;if(_0x1517f8!==_0x1ba6fa[_0x30803c(0x2cc)])return;const _0xa545a7={'id':_0x142185,'type':a['CommandType'][_0x30803c(0x222)],'params':{'unitId':_0x1517f8,'actions':_0x7af830[_0x30803c(0x2b3)],'textRanges':null}};_0x1ba6fa[_0x30803c(0x389)](_0xa545a7);});if(_0x1ba6fa['disposeWithMe'](_0x2b5500),_0x1ba6fa instanceof u[_0xa503cc(0x191)]){const _0x7df650={'onTransformIME':_0x335c26=>this[_0xa503cc(0x249)]['transformIMECache'](_0x335c26),'onTransformState':_0x16cfc9=>this[_0xa503cc(0x1e6)][_0xa503cc(0x1b7)](_0x16cfc9),'onTransformSelections':_0x22cc3b=>this[_0xa503cc(0x20d)][_0xa503cc(0x162)](_0x22cc3b),'onSyncEditingCollabCursor':_0x5f2bb9=>this[_0xa503cc(0x18f)][_0xa503cc(0x29a)](_0x5f2bb9),'onTransformRemoteChangesetByIMECache':_0x384311=>this['_docTransformIMECacheService'][_0xa503cc(0x255)](_0x384311),'onTransformRemoteChangesetByStateCache':_0x2b4d16=>this[_0xa503cc(0x1e6)][_0xa503cc(0x255)](_0x2b4d16)};_0x1ba6fa['addHandlerCallback'](_0x7df650);}}));}};Q=Xt([N(0x0,a[_0x49cc92(0x26b)](E[_0x49cc92(0x240)])),N(0x1,a['Inject'](u[_0x49cc92(0x376)])),N(0x2,a['Inject'](z)),N(0x3,a[_0x49cc92(0x26b)](J)),N(0x4,a[_0x49cc92(0x26b)](Z)),N(0x5,a[_0x49cc92(0x26b)](pe)),N(0x6,O['IMessageService']),N(0x7,a[_0x49cc92(0x26b)](a[_0x49cc92(0x304)]))],Q);var Gt=Object[_0x49cc92(0x1af)],Kt=(_0xb13e69,_0x55f647,_0x121672,_0x1b11c7)=>{const _0x316227=_0x49cc92;for(var _0x55c101=_0x1b11c7>0x1?void 0x0:_0x1b11c7?Gt(_0x55f647,_0x121672):_0x55f647,_0x40af3b=_0xb13e69[_0x316227(0x2d5)]-0x1,_0x3df610;_0x40af3b>=0x0;_0x40af3b--)(_0x3df610=_0xb13e69[_0x40af3b])&&(_0x55c101=_0x3df610(_0x55c101)||_0x55c101);return _0x55c101;},le=(_0x4f625f,_0x8f67be)=>(_0x37f8b6,_0x1bab1d)=>_0x8f67be(_0x37f8b6,_0x1bab1d,_0x4f625f);let ve=class extends a['Disposable']{constructor(_0x5cacf0,_0x2ec2a6,_0x5662ce){const _0x407192=_0x49cc92;super(),h(this,_0x407192(0x252),new Map()),h(this,'_saveTaskMap',new Map()),h(this,_0x407192(0x3a0),!0x1),(this[_0x407192(0x31a)]=_0x5cacf0,this[_0x407192(0x390)]=_0x2ec2a6,this[_0x407192(0x258)]=_0x5662ce);}[_0x49cc92(0x15d)](){const _0xd1e126=_0x49cc92;this[_0xd1e126(0x3a0)]=!0x0;}[_0x49cc92(0x308)](){const _0xf644fd=_0x49cc92;this[_0xf644fd(0x3a0)]=!0x1;}get[_0x49cc92(0x1c3)](){const _0x1ce178=_0x49cc92;return this[_0x1ce178(0x36c)];}[_0x49cc92(0x3bc)](){const _0x39d8d7=_0x49cc92;this['exhaustSavingTask']()[_0x39d8d7(0x3c1)](()=>super['dispose']());}async[_0x49cc92(0x2ea)](_0x325ca6){const _0x10dade=_0x49cc92;return this[_0x10dade(0x3a0)]?null:this[_0x10dade(0x390)][_0x10dade(0x226)](u[_0x10dade(0x339)](_0x325ca6));}async[_0x49cc92(0x32f)](_0x162cc9,_0x3dd420){const _0x422c3c=_0x49cc92;return!!this[_0x422c3c(0x390)]['setItem'](_0x162cc9,_0x3dd420);}[_0x49cc92(0x14e)](_0x3c623b,_0x373fab,_0x3fb9d0,_0x29e017){const _0x12e8f7=_0x49cc92,_0x326771=this['_revisionService'][_0x12e8f7(0x3ad)](_0x3c623b);this['_cachedData']['set'](_0x3c623b,{'unitID':_0x3c623b,'type':_0x373fab,'awaitingChangeset':_0x3fb9d0,'mutations':_0x29e017,'rev':_0x326771}),this['_saveTaskMap'][_0x12e8f7(0x19a)](_0x3c623b)||this[_0x12e8f7(0x35a)](_0x3c623b);}[_0x49cc92(0x35a)](_0x23e88d){const _0x51177c=_0x49cc92,_0x3bf906=this[_0x51177c(0x37f)]();_0x3bf906===0x0?this[_0x51177c(0x1ec)](_0x23e88d):this[_0x51177c(0x36c)][_0x51177c(0x2a0)](_0x23e88d,setTimeout(()=>this[_0x51177c(0x1ec)](_0x23e88d),_0x3bf906));}[_0x49cc92(0x37f)](){const _0x2922e8=_0x49cc92;var _0x1c52ba;return(_0x1c52ba=this[_0x2922e8(0x31a)][_0x2922e8(0x2d1)](u[_0x2922e8(0x246)]))!=null?_0x1c52ba:u['LOCAL_CACHE_INTERVAL'];}[_0x49cc92(0x1ec)](_0x489d65){const _0x4f7cfb=_0x49cc92,_0x4d5fde=this['_saveTaskMap'][_0x4f7cfb(0x23b)](_0x489d65);return _0x4d5fde!==void 0x0&&window[_0x4f7cfb(0x28f)](_0x4d5fde),this['_localStorageService'][_0x4f7cfb(0x309)](u[_0x4f7cfb(0x339)](_0x489d65),this[_0x4f7cfb(0x252)][_0x4f7cfb(0x23b)](_0x489d65))[_0x4f7cfb(0x3c1)](()=>this[_0x4f7cfb(0x36c)]['delete'](_0x489d65));}async[_0x49cc92(0x22e)](){const _0x25ac6f=_0x49cc92,_0xd32d3=[];this[_0x25ac6f(0x36c)][_0x25ac6f(0x392)]((_0x5920d6,_0x7640ab)=>{const _0x24c799=_0x25ac6f;window['clearTimeout'](_0x5920d6),_0xd32d3[_0x24c799(0x38d)](this[_0x24c799(0x1ec)](_0x7640ab)[_0x24c799(0x3c1)](()=>{const _0x306585=_0x24c799;this[_0x306585(0x36c)]['delete'](_0x7640ab);}));}),await Promise[_0x25ac6f(0x1c2)](_0xd32d3);}};ve=Kt([le(0x0,a['IConfigService']),le(0x1,a[_0x49cc92(0x2ff)]),le(0x2,a[_0x49cc92(0x26b)](m[_0x49cc92(0x2a8)]))],ve);class xe extends a[_0x49cc92(0x3b8)]{constructor(){const _0x207e91=_0x49cc92;super(),h(this,_0x207e91(0x229)),this[_0x207e91(0x229)]=d[_0x207e91(0x2b0)](window,'popstate')[_0x207e91(0x19c)](d[_0x207e91(0x344)](this[_0x207e91(0x23a)]),d[_0x207e91(0x19b)](0x1),d['mapTo'](void 0x0));}[_0x49cc92(0x2af)](_0x2f1f9c,_0x23af79,_0x101300=!0x1){const _0x5b6e86=_0x49cc92,_0x2213be=new URL(window[_0x5b6e86(0x351)][_0x5b6e86(0x372)]);_0x2213be[_0x5b6e86(0x27f)][_0x5b6e86(0x2a0)](_0x2f1f9c,_0x23af79),_0x101300?window[_0x5b6e86(0x2c8)][_0x5b6e86(0x25e)]('','',_0x2213be[_0x5b6e86(0x207)]()):window[_0x5b6e86(0x2c8)][_0x5b6e86(0x2f3)]('','',_0x2213be[_0x5b6e86(0x207)]());}[_0x49cc92(0x1da)](_0x553ca9,_0x438acb=!0x1){const _0x562d87=_0x49cc92,_0x4c0b7=new URL(window[_0x562d87(0x351)][_0x562d87(0x372)]);_0x4c0b7[_0x562d87(0x27f)]['delete'](_0x553ca9),_0x438acb?window[_0x562d87(0x2c8)][_0x562d87(0x25e)]('','',_0x4c0b7[_0x562d87(0x207)]()):window[_0x562d87(0x2c8)][_0x562d87(0x2f3)]('','',_0x4c0b7[_0x562d87(0x207)]());}[_0x49cc92(0x350)](_0x2ed0ad){const _0x447fcb=_0x49cc92;var _0x349754;return(_0x349754=new URL(window[_0x447fcb(0x351)][_0x447fcb(0x372)])[_0x447fcb(0x27f)][_0x447fcb(0x23b)](_0x2ed0ad))!=null?_0x349754:void 0x0;}}var qt=Object['defineProperty'],zt=Object[_0x49cc92(0x1af)],Jt=(_0x4ea625,_0x4c8e3f,_0x14acca)=>_0x4c8e3f in _0x4ea625?qt(_0x4ea625,_0x4c8e3f,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x14acca}):_0x4ea625[_0x4c8e3f]=_0x14acca,Zt=(_0x3c4cb1,_0x3a4ede,_0x1fcae9,_0x77b24)=>{const _0x493191=_0x49cc92;for(var _0xd3f4eb=_0x77b24>0x1?void 0x0:_0x77b24?zt(_0x3a4ede,_0x1fcae9):_0x3a4ede,_0x363e56=_0x3c4cb1[_0x493191(0x2d5)]-0x1,_0x1caa5e;_0x363e56>=0x0;_0x363e56--)(_0x1caa5e=_0x3c4cb1[_0x363e56])&&(_0xd3f4eb=_0x1caa5e(_0xd3f4eb)||_0xd3f4eb);return _0xd3f4eb;},_e=(_0x1d861d,_0xbae205)=>(_0x222243,_0x5d6521)=>_0xbae205(_0x222243,_0x5d6521,_0x1d861d),Qt=(_0x5860a,_0x5cddfd,_0xeca1bb)=>Jt(_0x5860a,_0x5cddfd+'',_0xeca1bb);const es=_0x49cc92(0x259);exports[_0x49cc92(0x1d7)]=class extends a[_0x49cc92(0x17f)]{constructor(_0x402e33=De,_0x5ba7ee,_0x13bc30,_0x2eb6e3){const _0x15275d=_0x49cc92;super(),this[_0x15275d(0x20b)]=_0x402e33,this['_renderManagerService']=_0x5ba7ee,this[_0x15275d(0x176)]=_0x13bc30,this[_0x15275d(0x31a)]=_0x2eb6e3;const {..._0x1f948d}=a['merge']({},De,this[_0x15275d(0x20b)]);this[_0x15275d(0x31a)][_0x15275d(0x2b8)](Bt,_0x1f948d);}['onStarting'](){const _0x512a04=_0x49cc92;this['_registerDependencies'](),this[_0x512a04(0x1ad)]();}[_0x49cc92(0x363)](){const _0x56e098=_0x49cc92;this[_0x56e098(0x2fb)]();}[_0x49cc92(0x36f)](){const _0x2bd042=_0x49cc92;var _0x104ee0;const _0x3fbb99=[[Ce],[Z],[z],[J],[pe],[me,{'useClass':xe}],[K[_0x2bd042(0x161)],{'useClass':K[_0x2bd042(0x391)]}],[u[_0x2bd042(0x15f)],{'useClass':ve}],[exports[_0x2bd042(0x1df)]],[Q],[q],[x],[ue],[exports[_0x2bd042(0x23d)]]];a[_0x2bd042(0x1ea)](this['_injector'],a[_0x2bd042(0x227)](_0x3fbb99,(_0x104ee0=this['_config'])==null?void 0x0:_0x104ee0[_0x2bd042(0x19d)]));}['_registerRenderDependencies'](){const _0x2a0af8=_0x49cc92;this['disposeWithMe'](this['_renderManagerService'][_0x2a0af8(0x1b9)](a[_0x2a0af8(0x394)]['UNIVER_DOC'],[fe])),this[_0x2a0af8(0x28e)](this['_renderManagerService']['registerRenderModule'](a[_0x2a0af8(0x394)][_0x2a0af8(0x23c)],[Ie]));}[_0x49cc92(0x1ad)](){const _0x403e9=_0x49cc92;a[_0x403e9(0x1b5)](this[_0x403e9(0x176)],[[x],[exports[_0x403e9(0x1df)]],[Q],[q],[exports[_0x403e9(0x23d)]]]);}},Qt(exports[_0x49cc92(0x1d7)],_0x49cc92(0x16d),es),exports['UniverCollaborationClientUIPlugin']=Zt([a['DependentOn'](u['UniverCollaborationClientPlugin']),_e(0x1,p[_0x49cc92(0x3cf)]),_e(0x2,a[_0x49cc92(0x26b)](a['Injector'])),_e(0x3,a['IConfigService'])],exports['UniverCollaborationClientUIPlugin']);var ts=Object[_0x49cc92(0x1af)],ss=(_0x597261,_0x5ed51a,_0x3ef870,_0xb2ded5)=>{const _0x156543=_0x49cc92;for(var _0x4ced4e=_0xb2ded5>0x1?void 0x0:_0xb2ded5?ts(_0x5ed51a,_0x3ef870):_0x5ed51a,_0x31e4ef=_0x597261[_0x156543(0x2d5)]-0x1,_0x19e059;_0x31e4ef>=0x0;_0x31e4ef--)(_0x19e059=_0x597261[_0x31e4ef])&&(_0x4ced4e=_0x19e059(_0x4ced4e)||_0x4ced4e);return _0x4ced4e;},H=(_0x4db990,_0x28f0b4)=>(_0x48d545,_0x21cd65)=>_0x28f0b4(_0x48d545,_0x21cd65,_0x4db990);exports[_0x49cc92(0x34c)]=class extends u[_0x49cc92(0x1f0)]{constructor(_0x2c8637,_0x4a42ef,_0x24bc3a,_0x5989b7,_0x1e7aab){super(_0x2c8637,_0x4a42ef,_0x24bc3a,_0x5989b7,_0x1e7aab);}async[_0x49cc92(0x364)](_0x41ec58){const _0x2d2114=_0x49cc92,_0x96b033=await this[_0x2d2114(0x345)](),_0x42088d=this[_0x2d2114(0x250)](_0x41ec58,_0x96b033);return this['_doCreateSocket'](_0x42088d);}[_0x49cc92(0x250)](_0xdf9523,_0x436a5b){const _0x3a14eb=_0x49cc92,_0x33e15=typeof window>'u'?new URL(_0xdf9523):new URL(_0xdf9523,window['location'][_0x3a14eb(0x288)]);_0x33e15[_0x3a14eb(0x27f)][_0x3a14eb(0x2a0)](_0x3a14eb(0x2ae),_0x436a5b);const _0x39633f=typeof window>'u'?new URLSearchParams():new URLSearchParams(window[_0x3a14eb(0x351)][_0x3a14eb(0x3c4)]);return _0x39633f[_0x3a14eb(0x23b)](_0x3a14eb(0x1e5))&&_0x33e15['searchParams']['set']('runId',_0x39633f['get']('runId')),_0x33e15['toString']();}async[_0x49cc92(0x345)](){const _0x1e89f9=_0x49cc92;var _0x1da334,_0x5416e5,_0x367d4e;const _0x432ba3=this['_configService'][_0x1e89f9(0x2d1)](u[_0x1e89f9(0x2f2)]),_0x32c638=(_0x1da334=_0x432ba3==null?void 0x0:_0x432ba3[_0x1e89f9(0x3b0)])!=null?_0x1da334:u['DEFAULT_WS_SESSION_TICKET_URL'];return(_0x367d4e=(_0x5416e5=(await this['_httpService'][_0x1e89f9(0x23b)](_0x32c638,{'headers':{'Content-Type':'application/json'}}))[_0x1e89f9(0x1ac)])==null?void 0x0:_0x5416e5[_0x1e89f9(0x1a4)])!=null?_0x367d4e:'';}},exports[_0x49cc92(0x34c)]=ss([H(0x0,a[_0x49cc92(0x26b)](a[_0x49cc92(0x341)])),H(0x1,a['Inject'](K[_0x49cc92(0x166)])),H(0x2,a['IConfigService']),H(0x3,a['ILogService']),H(0x4,m['ISnapshotServerService'])],exports['BrowserCollaborationSocketService']);var Be=(_0x3cf20c=>(_0x3cf20c[_0x3cf20c[_0x49cc92(0x28d)]=0x0]='UNDEFINED',_0x3cf20c[_0x3cf20c['OK']=0x1]='OK',_0x3cf20c[_0x3cf20c[_0x49cc92(0x2f0)]=0x2]=_0x49cc92(0x2f0),_0x3cf20c[_0x3cf20c['PERMISSION_DENIED']=0x3]=_0x49cc92(0x2a6),_0x3cf20c[_0x3cf20c['NOT_FOUND']=0x4]=_0x49cc92(0x262),_0x3cf20c[_0x3cf20c[_0x49cc92(0x1d8)]=0x5]='UNAUTHENTICATED',_0x3cf20c[_0x3cf20c[_0x49cc92(0x3d0)]=0x6]=_0x49cc92(0x3d0),_0x3cf20c[_0x3cf20c[_0x49cc92(0x38c)]=0x7]=_0x49cc92(0x38c),_0x3cf20c[_0x3cf20c[_0x49cc92(0x25d)]=0x8]=_0x49cc92(0x25d),_0x3cf20c[_0x3cf20c[_0x49cc92(0x285)]=0x9]=_0x49cc92(0x285),_0x3cf20c[_0x3cf20c[_0x49cc92(0x203)]=0xa]=_0x49cc92(0x203),_0x3cf20c[_0x3cf20c[_0x49cc92(0x362)]=0xb]=_0x49cc92(0x362),_0x3cf20c[_0x3cf20c['MOBILE_VERIFY_CODE_NOT_FOUND_OR_EXPIRED']=0xc]='MOBILE_VERIFY_CODE_NOT_FOUND_OR_EXPIRED',_0x3cf20c[_0x3cf20c[_0x49cc92(0x1fc)]=0xd]=_0x49cc92(0x1fc),_0x3cf20c[_0x3cf20c[_0x49cc92(0x1a8)]=0xe]=_0x49cc92(0x1a8),_0x3cf20c[_0x3cf20c[_0x49cc92(0x291)]=0x1389]=_0x49cc92(0x291),_0x3cf20c[_0x3cf20c[_0x49cc92(0x210)]=0x1771]=_0x49cc92(0x210),_0x3cf20c[_0x3cf20c['SNAPSHOT_HAS_BEEN_REMOVED']=0x1772]='SNAPSHOT_HAS_BEEN_REMOVED',_0x3cf20c[_0x3cf20c['ENSURE_SNAPSHOT_EXECUTION']=0x1773]=_0x49cc92(0x195),_0x3cf20c[_0x3cf20c[_0x49cc92(0x294)]=0x1b59]=_0x49cc92(0x294),_0x3cf20c[_0x3cf20c['APPLY_NON_SEQUENTIAL_REVISION']=0x1b5a]=_0x49cc92(0x214),_0x3cf20c[_0x3cf20c[_0x49cc92(0x2d3)]=0x1b5b]=_0x49cc92(0x2d3),_0x3cf20c[_0x3cf20c['APPLY_PERMISSION_DENIED']=0x1b5c]=_0x49cc92(0x3ac),_0x3cf20c[_0x3cf20c[_0x49cc92(0x180)]=0x1b5d]=_0x49cc92(0x180),_0x3cf20c[_0x3cf20c[_0x49cc92(0x29e)]=0x1f41]=_0x49cc92(0x29e),_0x3cf20c[_0x3cf20c[_0x49cc92(0x2f1)]=0x2329]='LICENSE_MAX_UNITS_EXCEEDED',_0x3cf20c[_0x3cf20c[_0x49cc92(0x1c5)]=0x232a]=_0x49cc92(0x1c5),_0x3cf20c[_0x3cf20c[_0x49cc92(0x172)]=0x232b]=_0x49cc92(0x172),_0x3cf20c[_0x3cf20c[_0x49cc92(0x212)]=0x232c]=_0x49cc92(0x212),_0x3cf20c[_0x3cf20c[_0x49cc92(0x22a)]=0x232d]=_0x49cc92(0x22a),_0x3cf20c[_0x3cf20c[_0x49cc92(0x380)]=0x2711]=_0x49cc92(0x380),_0x3cf20c[_0x3cf20c['YUUMI_URL_COL_OUT_OF_RANGE']=0x2712]=_0x49cc92(0x366),_0x3cf20c[_0x3cf20c[_0x49cc92(0x264)]=0x2713]='YUUMI_RATE_OVER_LIMIT',_0x3cf20c[_0x3cf20c[_0x49cc92(0x230)]=0x2714]=_0x49cc92(0x230),_0x3cf20c[_0x3cf20c[_0x49cc92(0x1a0)]=0x271a]='YUUMI_NO_CUBOID_FOR_QUESTION',_0x3cf20c[_0x3cf20c['YUUMI_ASYNCIO_CANCELLED']=0x271b]=_0x49cc92(0x1e1),_0x3cf20c[_0x3cf20c[_0x49cc92(0x206)]=0x271c]=_0x49cc92(0x206),_0x3cf20c[_0x3cf20c[_0x49cc92(0x239)]=0x271d]=_0x49cc92(0x239),_0x3cf20c[_0x3cf20c[_0x49cc92(0x19f)]=0x271e]='YUUMI_PROMPT_MAX_TOKENS_EXCEEDED',_0x3cf20c[_0x3cf20c['YUUMI_AI_RUN_FAILED']=0x271f]=_0x49cc92(0x37e),_0x3cf20c[_0x3cf20c[_0x49cc92(0x1a1)]=0x2720]=_0x49cc92(0x1a1),_0x3cf20c[_0x3cf20c[_0x49cc92(0x271)]=0x2af9]='PY_RUNTIME_SCRIPT_ERROR',_0x3cf20c[_0x3cf20c[_0x49cc92(0x33b)]=0x2ee1]='INVITE_CODE_HAS_BEEN_UES',_0x3cf20c[_0x3cf20c[_0x49cc92(0x19e)]=0x2ee2]=_0x49cc92(0x19e),_0x3cf20c[_0x3cf20c['INVITE_CODE_REQUIRED']=0x2ee3]=_0x49cc92(0x253),_0x3cf20c[_0x3cf20c[_0x49cc92(0x182)]=0x2ee4]=_0x49cc92(0x182),_0x3cf20c[_0x3cf20c[_0x49cc92(0x18a)]=0x2ee5]=_0x49cc92(0x18a),_0x3cf20c[_0x3cf20c[_0x49cc92(0x2ca)]=0x32c9]=_0x49cc92(0x2ca),_0x3cf20c[_0x3cf20c[_0x49cc92(0x2a7)]=0x32ca]='MOBILE_HAS_BEEN_BOUND',_0x3cf20c[_0x3cf20c[_0x49cc92(0x1fe)]=0x32cb]=_0x49cc92(0x1fe),_0x3cf20c[_0x3cf20c['UNRECOGNIZED']=-0x1]=_0x49cc92(0x2e2),_0x3cf20c))(Be||{}),is=Object[_0x49cc92(0x1af)],ns=(_0x5d4d40,_0x43363d,_0x2824d1,_0xebfc43)=>{const _0x3ff604=_0x49cc92;for(var _0x111750=_0xebfc43>0x1?void 0x0:_0xebfc43?is(_0x43363d,_0x2824d1):_0x43363d,_0xc1683a=_0x5d4d40[_0x3ff604(0x2d5)]-0x1,_0x22de9b;_0xc1683a>=0x0;_0xc1683a--)(_0x22de9b=_0x5d4d40[_0xc1683a])&&(_0x111750=_0x22de9b(_0x111750)||_0x111750);return _0x111750;},he=(_0x2d2256,_0x4e900f)=>(_0xb263c4,_0x3b4fd3)=>_0x4e900f(_0xb263c4,_0x3b4fd3,_0x2d2256);exports[_0x49cc92(0x3cd)]=class extends a[_0x49cc92(0x17e)]{constructor(_0x51cdce,_0x5be598,_0x21f6bc){const _0x335e15=_0x49cc92;super(),this[_0x335e15(0x32d)]=_0x51cdce,this[_0x335e15(0x2c4)]=_0x5be598,this[_0x335e15(0x31a)]=_0x21f6bc;}async[_0x49cc92(0x3b4)](_0x375d98,_0x23222b,_0x155025,..._0x363ddb){const _0x302b10=_0x49cc92;var _0x5035e0,_0x4fb161,_0x1442e1,_0xea44d;const _0x34f0b3=this[_0x302b10(0x32d)][_0x302b10(0x21b)]();if(!_0x34f0b3)throw new Error(_0x302b10(0x289));const _0x33f00e=((_0x5035e0=this[_0x302b10(0x31a)]['getConfig'](u[_0x302b10(0x2e1)]))!=null?_0x5035e0:u[_0x302b10(0x369)])+'/'+_0x375d98+_0x302b10(0x1eb)+_0x23222b,_0x27525b=new URL(window[_0x302b10(0x351)][_0x302b10(0x372)]),_0x103b24={'scriptId':_0x375d98,'runId':(_0x4fb161=_0x27525b['searchParams'][_0x302b10(0x23b)](_0x302b10(0x1e5)))!=null?_0x4fb161:'','function':_0x23222b,'unitId':_0x34f0b3[_0x302b10(0x273)](),'argsOfFunction':JSON['stringify'](_0x363ddb),'invokeId':(_0x1442e1=_0x155025[_0x302b10(0x27e)])!=null?_0x1442e1:'','executionId':(_0xea44d=_0x155025[_0x302b10(0x2b5)])!=null?_0xea44d:''};try{const _0x43177b=await this[_0x302b10(0x2c4)][_0x302b10(0x303)](_0x33f00e,{'body':_0x103b24});return _0x43177b[_0x302b10(0x1ac)]['error']&&_0x43177b[_0x302b10(0x1ac)][_0x302b10(0x205)][_0x302b10(0x399)]!==Be['OK']?_0x302b10(0x27a):_0x43177b['body']['result'];}catch{return _0x302b10(0x27a);}}},exports[_0x49cc92(0x3cd)]=ns([he(0x0,a[_0x49cc92(0x30f)]),he(0x1,a[_0x49cc92(0x26b)](K[_0x49cc92(0x166)])),he(0x2,a[_0x49cc92(0x169)])],exports[_0x49cc92(0x3cd)]);const Me=0x7530,Le=_0x49cc92(0x348);class rs extends a['Disposable']{constructor(){const _0x151b8b=_0x49cc92;super(),h(this,_0x151b8b(0x26a),a['generateRandomId']()),h(this,_0x151b8b(0x17b),new Set()),h(this,_0x151b8b(0x1b8),new Map()),h(this,'_heartbeatTimer',null),h(this,'_clearOtherTimers',new Map()),h(this,_0x151b8b(0x1d3),new Map()),this['_init']();}[_0x49cc92(0x3bc)](){const _0x3134d3=_0x49cc92;super['dispose'](),this[_0x3134d3(0x31b)][_0x3134d3(0x392)]((_0x305ddd,_0x23c72e)=>this[_0x3134d3(0x201)](_0x23c72e)),this[_0x3134d3(0x1d2)]&&window[_0x3134d3(0x2ac)](this[_0x3134d3(0x1d2)]);}[_0x49cc92(0x154)](_0x2a9bda){const _0x3c71a4=_0x49cc92;return this[_0x3c71a4(0x234)](_0x2a9bda)[_0x3c71a4(0x19c)](d['distinctUntilChanged']());}[_0x49cc92(0x284)](_0x415963){const _0x15ba3b=_0x49cc92;this[_0x15ba3b(0x17b)][_0x15ba3b(0x2f8)]===0x0&&this[_0x15ba3b(0x277)](),this[_0x15ba3b(0x17b)]['add'](_0x415963),this[_0x15ba3b(0x34a)]({'type':0x0,'memberID':this[_0x15ba3b(0x26a)],'unitIDs':[_0x415963],'isForwarded':!0x1});}[_0x49cc92(0x18b)](_0x5d0f24){const _0x8d50f9=_0x49cc92;this['_selfUnitIDs'][_0x8d50f9(0x3b1)](_0x5d0f24),this[_0x8d50f9(0x17b)]['size']===0x0&&this[_0x8d50f9(0x1d2)]&&window[_0x8d50f9(0x2ac)](this[_0x8d50f9(0x1d2)]);}[_0x49cc92(0x2ef)](){const _0x517de4=_0x49cc92;this['disposeWithMe'](a[_0x517de4(0x29d)](d[_0x517de4(0x2b0)](window,_0x517de4(0x24e))[_0x517de4(0x282)](_0x34bbc6=>{const _0x299678=_0x517de4;if(_0x34bbc6['key']!==Le||!_0x34bbc6['newValue'])return;const _0x484dcb=JSON[_0x299678(0x208)](_0x34bbc6[_0x299678(0x2d4)]);this['_handleEvent'](_0x484dcb);}))),window[_0x517de4(0x1e8)](_0x517de4(0x31c),()=>this[_0x517de4(0x34a)]({'type':0x1,'memberID':this[_0x517de4(0x26a)],'unitIDs':Array[_0x517de4(0x184)](this['_selfUnitIDs'])}));}[_0x49cc92(0x224)](_0x5af2b4){const _0x1b7dc4=_0x49cc92;switch(_0x5af2b4[_0x1b7dc4(0x33a)]){case 0x0:this[_0x1b7dc4(0x157)](_0x5af2b4);break;case 0x1:this[_0x1b7dc4(0x1f4)](_0x5af2b4);break;case 0x2:this[_0x1b7dc4(0x1f1)](_0x5af2b4);break;}}[_0x49cc92(0x157)](_0x4fd785){const _0xccb755=_0x49cc92,{unitIDs:_0x2380cb,memberID:_0x1dea26,isForwarded:_0x3c0055}=_0x4fd785;_0x2380cb[_0xccb755(0x392)](_0x469abf=>{const _0x3db037=_0xccb755;if(!_0x3c0055&&this['_unitOnClients']['has'](_0x469abf)&&this[_0x3db037(0x234)](_0x469abf)[_0x3db037(0x2f4)](u[_0x3db037(0x310)][_0x3db037(0x3a2)]),!this[_0x3db037(0x1b8)][_0x3db037(0x19a)](_0x469abf)||!this['_unitOnClients'][_0x3db037(0x23b)](_0x469abf)[_0x3db037(0x19a)](_0x1dea26)){const _0x203e63=this['_unitOnClients'][_0x3db037(0x23b)](_0x469abf)||new Set();_0x203e63['add'](_0x1dea26),this[_0x3db037(0x1b8)][_0x3db037(0x2a0)](_0x469abf,_0x203e63),this['_scheduleClearOtherTimer'](_0x1dea26);}}),_0x3c0055||this[_0xccb755(0x34a)]({'type':0x0,'memberID':this[_0xccb755(0x26a)],'unitIDs':[...this['_selfUnitIDs']],'isForwarded':!0x0});}[_0x49cc92(0x333)](_0x4dcde2){const _0x2bd91f=_0x49cc92;this['_removeClearOtherTimer'](_0x4dcde2);const _0x47802d=window[_0x2bd91f(0x233)](()=>{const _0x264464=_0x2bd91f;this[_0x264464(0x1b8)][_0x264464(0x392)](_0x79ab3=>{const _0x3debd4=_0x264464;_0x79ab3[_0x3debd4(0x3b1)](_0x4dcde2);});},Me*0x2);this[_0x2bd91f(0x31b)][_0x2bd91f(0x2a0)](_0x4dcde2,_0x47802d);}['_removeClearOtherTimer'](_0x155f7b){const _0x421d99=_0x49cc92;if(this[_0x421d99(0x31b)][_0x421d99(0x19a)](_0x155f7b)){const _0x419439=this['_clearOtherTimers'][_0x421d99(0x23b)](_0x155f7b);_0x419439&&window[_0x421d99(0x28f)](_0x419439),this[_0x421d99(0x31b)][_0x421d99(0x2a0)](_0x155f7b,null);}}['_handleLeaveEvent'](_0x41de90){const _0x18a849=_0x49cc92,{memberID:_0x2ea72e,unitIDs:_0x55f790}=_0x41de90;_0x55f790[_0x18a849(0x392)](_0x42327b=>{const _0x1e8375=_0x18a849;var _0x20b9ef;const _0x35ca03=this[_0x1e8375(0x1b8)][_0x1e8375(0x23b)](_0x42327b);_0x35ca03&&(_0x35ca03['delete'](_0x2ea72e),(_0x20b9ef=this[_0x1e8375(0x234)](_0x42327b))==null||_0x20b9ef[_0x1e8375(0x2f4)](_0x35ca03[_0x1e8375(0x2f8)]===0x0?u[_0x1e8375(0x310)][_0x1e8375(0x1c8)]:u[_0x1e8375(0x310)][_0x1e8375(0x3a2)]));}),this[_0x18a849(0x201)](_0x2ea72e);}[_0x49cc92(0x1f1)](_0x497c67){const _0x18e0f7=_0x49cc92;this[_0x18e0f7(0x333)](_0x497c67[_0x18e0f7(0x1f2)]);}[_0x49cc92(0x34a)](_0x1cb095){const _0x46a735=_0x49cc92;localStorage[_0x46a735(0x309)](Le,JSON[_0x46a735(0x2e4)](_0x1cb095));}[_0x49cc92(0x277)](){const _0x1c9c77=_0x49cc92;this[_0x1c9c77(0x1d2)]=window[_0x1c9c77(0x20e)](()=>{const _0x347643=_0x1c9c77;this['_send']({'type':0x2,'memberID':this[_0x347643(0x26a)]});},Me);}['_ensureSubject'](_0x7002f6){const _0x164882=_0x49cc92;return this['_unitStatus'][_0x164882(0x19a)](_0x7002f6)||this[_0x164882(0x1d3)]['set'](_0x7002f6,new d[(_0x164882(0x220))](u[_0x164882(0x310)][_0x164882(0x1c8)])),this['_unitStatus'][_0x164882(0x23b)](_0x7002f6);}}exports[_0x49cc92(0x2c3)]=me,exports[_0x49cc92(0x183)]=$e,exports[_0x49cc92(0x3be)]=rs,exports['WebURLService']=xe;
|
|
1
|
+
'use strict';function _0x369e(_0x27abb2,_0x298b98){const _0x4d50ea=_0x4d50();return _0x369e=function(_0x369e63,_0x14d7ee){_0x369e63=_0x369e63-0xb7;let _0x189f0d=_0x4d50ea[_0x369e63];return _0x189f0d;},_0x369e(_0x27abb2,_0x298b98);}const _0x87bfbc=_0x369e;(function(_0x1724c7,_0x24194e){const _0x230c1b=_0x369e,_0x2f1cb7=_0x1724c7();while(!![]){try{const _0x8248fc=parseInt(_0x230c1b(0x241))/0x1*(-parseInt(_0x230c1b(0x150))/0x2)+parseInt(_0x230c1b(0x165))/0x3+parseInt(_0x230c1b(0x134))/0x4*(parseInt(_0x230c1b(0x10b))/0x5)+parseInt(_0x230c1b(0x20e))/0x6+parseInt(_0x230c1b(0x2a5))/0x7+-parseInt(_0x230c1b(0x21f))/0x8*(parseInt(_0x230c1b(0x1b0))/0x9)+parseInt(_0x230c1b(0x1d3))/0xa*(-parseInt(_0x230c1b(0x359))/0xb);if(_0x8248fc===_0x24194e)break;else _0x2f1cb7['push'](_0x2f1cb7['shift']());}catch(_0x2609be){_0x2f1cb7['push'](_0x2f1cb7['shift']());}}}(_0x4d50,0x1d121));var Ge=Object[_0x87bfbc(0x174)],Xe=(_0x3240b5,_0x1ae318,_0x334d0e)=>_0x1ae318 in _0x3240b5?Ge(_0x3240b5,_0x1ae318,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x334d0e}):_0x3240b5[_0x1ae318]=_0x334d0e,_=(_0x32005f,_0x288b54,_0x1209c6)=>Xe(_0x32005f,typeof _0x288b54!=_0x87bfbc(0x33e)?_0x288b54+'':_0x288b54,_0x1209c6);Object['defineProperty'](exports,Symbol[_0x87bfbc(0x2e8)],{'value':_0x87bfbc(0x312)});const P=require('react/jsx-runtime'),u=require('@univerjs-pro/collaboration-client'),a=require('@univerjs/core'),R=require('@univerjs/ui'),I=require('rxjs'),T=require('@univerjs/design'),L=require('react'),Ke=require('@univerjs/rpc'),v=require('@univerjs/sheets'),C=require('@univerjs/engine-render'),X=require('@univerjs/network'),p=require('@univerjs/docs-ui'),qe=require('@univerjs/drawing'),g=require('@univerjs-pro/collaboration'),V=require('@univerjs/docs'),B=require('@univerjs/engine-formula'),$=require('rxjs/operators'),J=require('@univerjs/sheets-ui');var O=function(){const _0x288753=_0x87bfbc;return O=Object['assign']||function(_0x13d597){const _0x3e1c48=_0x369e;for(var _0x453233,_0x4ab4d0=0x1,_0x253e83=arguments['length'];_0x4ab4d0<_0x253e83;_0x4ab4d0++){_0x453233=arguments[_0x4ab4d0];for(var _0x1888c6 in _0x453233)Object['prototype'][_0x3e1c48(0xf6)][_0x3e1c48(0x129)](_0x453233,_0x1888c6)&&(_0x13d597[_0x1888c6]=_0x453233[_0x1888c6]);}return _0x13d597;},O[_0x288753(0x285)](this,arguments);},ze=function(_0x4ecbec,_0x3a5e18){const _0xf6fb4=_0x87bfbc;var _0x25ab9c={};for(var _0x7c43df in _0x4ecbec)Object[_0xf6fb4(0x192)][_0xf6fb4(0xf6)]['call'](_0x4ecbec,_0x7c43df)&&_0x3a5e18['indexOf'](_0x7c43df)<0x0&&(_0x25ab9c[_0x7c43df]=_0x4ecbec[_0x7c43df]);if(_0x4ecbec!=null&&typeof Object[_0xf6fb4(0x1f0)]==_0xf6fb4(0xfb)){for(var _0x1cd1af=0x0,_0x7c43df=Object[_0xf6fb4(0x1f0)](_0x4ecbec);_0x1cd1af<_0x7c43df[_0xf6fb4(0x2cb)];_0x1cd1af++)_0x3a5e18[_0xf6fb4(0x1be)](_0x7c43df[_0x1cd1af])<0x0&&Object[_0xf6fb4(0x192)][_0xf6fb4(0x1a0)][_0xf6fb4(0x129)](_0x4ecbec,_0x7c43df[_0x1cd1af])&&(_0x25ab9c[_0x7c43df[_0x1cd1af]]=_0x4ecbec[_0x7c43df[_0x1cd1af]]);}return _0x25ab9c;},pe=L[_0x87bfbc(0x2af)](function(_0x4ee50f,_0x2fc133){const _0x28c935=_0x87bfbc;var _0x1aee44=_0x4ee50f[_0x28c935(0x263)],_0x35b735=_0x4ee50f['id'],_0x510b54=_0x4ee50f[_0x28c935(0x2aa)],_0xa3906d=_0x4ee50f[_0x28c935(0x16c)],_0x316260=ze(_0x4ee50f,['icon','id',_0x28c935(0x2aa),_0x28c935(0x16c)]),_0x5103e6=_0x28c935(0x15e)[_0x28c935(0x29e)](_0x35b735,'\x20')[_0x28c935(0x29e)](_0x510b54||'')[_0x28c935(0x256)](),_0x184202=L[_0x28c935(0x155)]('_'[_0x28c935(0x29e)](Qe()));return ye(_0x1aee44,''['concat'](_0x35b735),{'defIds':_0x1aee44[_0x28c935(0x20b)],'idSuffix':_0x184202[_0x28c935(0x2e2)]},O({'ref':_0x2fc133,'className':_0x5103e6},_0x316260),_0xa3906d);});function ye(_0x4dd5d2,_0x1dcadd,_0x5cfc00,_0x9021f0,_0x4cea8c){const _0x215a41=_0x87bfbc;return L['createElement'](_0x4dd5d2[_0x215a41(0x303)],O(O({'key':_0x1dcadd},Je(_0x4dd5d2,_0x5cfc00,_0x4cea8c)),_0x9021f0),(Ze(_0x4dd5d2,_0x5cfc00)['children']||[])[_0x215a41(0x32c)](function(_0x16c8cc,_0xcabfd6){const _0x157529=_0x215a41;return ye(_0x16c8cc,''[_0x157529(0x29e)](_0x1dcadd,'-')['concat'](_0x4dd5d2[_0x157529(0x303)],'-')[_0x157529(0x29e)](_0xcabfd6),_0x5cfc00,void 0x0,_0x4cea8c);}));}function _0x4d50(){const _0x2cf580=['OTHER_CLIENTS_EDITING','USER_NOT_FOUND','_initStatusListener','runId','saveTaskMap','pluginName','_selfUnitIDs','SNAPSHOT_INVALID_SNAPSHOT','DataLoaderService','Rect','getTypeOfUnitAdded$','SessionStatus','some','_initCommandExecutedListener','FETCH_MISS','evenodd','_colorIndex','_initStatusComponent','Inject','beginPath','IUniverInstanceService','_docClipboardService','getOwnPropertySymbols','HEADER_MENU','black','RemoveColCommandId','USER_IS_ANONYMOUS','_refreshCollabCursors','/universer-api/license/formula/limit/start','PERMISSION_DENIED','_getSessionTicket','_labelPosition','_registerDependencies','div','UNAUTHENTICATED','_setFormulaLimitStatus','_online','totalFormulasToCalculate','MoveRangeCommandId','createIdentifier','APPLY_NON_SEQUENTIAL_REVISION','data','now','isActive','session.connection-failed','transformStateCache','transformSelections','Plugin','YUUMI_CONNECTOR_URL_NOT_FOUND','defIds','defs','CollaborationSessionService','1135254cEKeUh','formula.calculation.unable','createElement','setTimeout','contains','href','split','_configService','_messageService','restore','clearTimeout','url(#off-line-icon_clip0_910_343)','Loading','ILocalCacheService','_handleHover','_onCursorDelete','_docTransformIMECacheService','933512YjEHTZ','_removeClearOtherTimer','RxDisposable','INotificationService','_initCommandInterceptor','stage','size','startsWith','CURRENT_STATUS_CANNOT_OPERATE','onRendered','_onCursorUpdate','getColor','M4.5865\x2011.6499C3.36983\x2011.6499\x201.6665\x2011.1024\x201.6665\x208.9124C1.6665\x206.3574\x204.2215\x205.8099\x204.9515\x205.8099C5.3165\x204.5324\x206.0465\x202.5249\x208.9665\x202.5249C11.5215\x202.5249\x2012.6165\x203.9849\x2012.9815\x205.2624C12.9815\x205.2624\x2016.2665\x205.6274\x2016.2665\x208.7299C16.2665\x2010.9199\x2014.8065\x2011.6499\x2013.3465\x2011.6499M6.7767\x2011.6497L8.9667\x2013.4747L11.8867\x209.82466','asObservable','_setupSubUnitSync','YUUMI_URL_COL_OUT_OF_RANGE','YUUMI_PROMPT_MAX_TOKENS_EXCEEDED','NOT_COLLAB','onStarting','IURLService','handleInsertRow','_clearOtherTimers','OffLineIcon','post','SetSelectionsOperation','NodePositionConvertToCursor','search','_unitStatus','_toggleOffline','REDEMPTION_USER_NOT_ELIGIBLE','_assignedColors','_drawRectRange','transform','moveTo','1lnmEUM','subUnitId','urlChange$','WebBrowserSingleActiveUnitService','fillText','shareReplay','addEventListener','fromEventSubject','m2Prime','collabStatus.fetchMiss','colorChannel1','sessionStatus$','YUUMI_SUBSCRIPTION_NOT_FOUND','REDEMPTION_INVALID_CODE','_range','LOGIN_TOKEN_PROCESSING_FAILED','getCollabEntity$','_dataLoaderService','SUCCESS','Error','RemoveRowCommandId','trim','_handleJoinEvent','_checkCalculationAvailable','MemberService','EMAIL_VERIFY_CODE_NOT_FOUND_OR_EXPIRED','IConfigService','LICENSE_MAX_UNITS_EXCEEDED','loadUnit','INVITE_CODE_REQUIRED','onLocalMutation','includes','memberID','_saveCache','icon','_draw','_urlService','Warning','_status$','ColorKit','pipe','SetDocZoomRatioOperation','fromEvent','from','onPointerLeave$','mask','getCollabCursors$','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','DependentOn','_injector','getVpScrollXYInfoByPosToVp','_cursorInfo$','RemoteUniscriptService','startColumn','unitId','getformulaLimitStatusUrl','Unknown\x20user','SNAPSHOT_HAS_BEEN_REMOVED','sheetId','isFormulaString','_httpService','newValue','RichTextEditingMutation','selection','sheetID','collabStatus.synced','round','startRow','apply','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','createInstance','_registerRenderDependencies','endColumn','switchMap','attrs','stageInfo','getActiveSheet','SetFormulaCalculationNotificationMutation','ThemeService','DocStateChangeManagerService','[CollaborationDataLoaderController]','deserializeRangeWithSheet','setParam','BrowserCollaborationSocketService','getUnit','_config','DesktopCollaborationStatusDisplayController','onMouseMove','_getSaveTimeout','getCellPositionByOffset','collaboration.closeRoom','_scene','location','concat','ENTITLE_NEED_BILLING_ADDRESS','CanceledError','Success','OFFLINE','SetWorksheetActivateCommand','_unitOnClients','1001434kEgQbV','APPLY_DUPLICATED','ENTITLE_CHAT_LIMIT_EXCEED','_scheduleHeartbeat','filter','className','findNodePositionByCharIndex','collaboration-client-ui.config','_init','next','forwardRef','FormulaExecutedStateType','_name','START_CALCULATION','takeUntil','getConfig','COLORS','IImageIoService','_pollingInterval','/run/','xlink:href','getOwnPropertyDescriptor','children','save','then','UNIVER_SHEET','on-line-icon','_initResize','SOCKET_FAILED_RETRY','with','_univerInstanceService','whenReady','REDEMPTION_USER_REDEEM_TIMES_EXCEED','debug','_colorAssignService','CollaborationController','...','_transformUndoRedoStack','length','_shapes','univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','_collabCursorController','registerRefRange','code','_clearPolling','displayName','UNIVER_DOC','CollaborationEvent','activeSheet$','subunit','replace','stringify','Injector','OTHER_CLIENT_EDITING','OnLineIcon','unit','UnitStatus','getLocalCacheKey','PENDING','invokeId','onTransformChange$','current','useDependency','storage','NodePositionConvertToRectRange','LOGIN_FAILED','onPointerMove$','toStringTag','getDocRanges','collabStatus.notCollab','_updateLocalCursor','parseInt','ILocalStorageService','getColorFromTheme','JOIN_ROOM_FAILED','bottom','_localCacheService','entries','_entityInit$','YUUMI_TABLE_NOT_FOUND_IN_UNIT','MOBILE_VERIFY_CODE_MISMATCH','string','fillStyle','updateOfflineData','transformRemoteChangeset','_collaborationController','getUnitStatus$','IRenderManagerService','_uiPartsService','mutations','sessionTicket','has','fill','_removeCollabCursors','tag','ENTITLE_UPDOWN_GRADE_NOT_SUPPORT','getFocusedUnit','CollaborationDataLoaderController','getMergeData','ILogService','_updateSubUnitFromURLParams','textRanges','rgba(255,\x20255,\x20255,\x200.01)','_notificationService','toDisposable','handleInsertCol','collabStatus.conflict','AUTHORIZE_CODE_ILLEGAL','set','Module','_collabSessionService','distinctUntilChanged','DocCollaborationEntity','runRefRangeMutations','_updateURLWithCurrentState','ENTITLE_DUP_SUBSCRIPTION','_transformHistoryAndStateStack','InsertColCommandId','LOCAL_CACHE_INTERVAL_KEY','unload','_instanceService','source','getAncestorScale','INVITE_CODE_HAS_BEEN_UES','mergeOverrideWithDependencies','LocaleService','Disposable','Optional','_renderManagerService','m1Prime','/universer-api/license/formula/limit/done','_hover','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','PAYMENT_CHANNEL_NOT_SUPPORT','unshift','map','CollaborationSocketService','_themeService','_hovered','getSheetId','collabStatus.offline','beforeCommandExecuted','_scheduleSaving','LICENSE_EXPORT_SIZE_EXCEEDED','editingUnit','ERROR_AGAIN','_getAnchorBounding','doc.mutation.rich-text-editing','APPLY_REJECT','getRelativeToViewportCoord','assign','_memberService','delete','symbol','collabCursorState$','yellow.400','_disabled','white','1em','complete','BuiltInUIPart','IRemoteInstanceService','idSuffix','_getMergeRange','session.collaboration-timeout','_hideTimer','_anchor','DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT','_initEntityListener','disposeUnit','MOBILE_HAS_BEEN_BOUND','_getFormulaLimitStatus','DocSelectionManagerService','origin','_revisionService','getMember','EffectRefRangId','registerBeforeClose','TOO_MANY_REQUESTS','session.will-retry','175076gKeXUo','ranges','M3.61971\x2011.6499C2.40304\x2011.6499\x200.699707\x2011.1024\x200.699707\x208.9124C0.699707\x206.3574\x203.25471\x205.8099\x203.98471\x205.8099C4.34971\x204.5324\x205.07971\x202.5249\x207.99971\x202.5249C10.5547\x202.5249\x2011.6497\x203.9849\x2012.0147\x205.2624C12.0147\x205.2624\x2015.2997\x205.6274\x2015.2997\x208.7299C15.2997\x2010.9199\x2013.8397\x2011.6499\x2012.3797\x2011.6499M9.82471\x209.82466L6.17471\x2013.4747M6.17471\x209.82466L9.82471\x2013.4747','LOCAL_CACHE_INTERVAL','syncEditingCollabCursor','skeleton','YUUMI_NO_CUBOID_FOR_QUESTION','getValue','_maxFormulaLimit','REDEMPTION_CODE_FULLY_REDEEMED','error','hide','_anchorDot','TRANSFORM_CHANGE_OBSERVABLE_TYPE','InsertRangeMoveDownCommandId','_document','_updateCollabCursors','backgroundColor','getUniverSheetInstance','saveImage','min','Workbook','_doCreateSocket','isArray','selections','collabStatus.syncing','searchParams','url(#$1','_getSheetObject','getCoordByCell','_color','CollaborationUIEventService','YUUMI_RATE_OVER_LIMIT','getUnhiddenWorksheets','INVALID_INVITE_CODE','_startDocCollabCursor','getViewport','_startSheetCollabCursor','getRenderById','isFormulaId','ICommandService','font','setItem','_cursorShapes','combineLatest','event$','collab-client.tooltip.reconnect','type','lineTo','createSocket','_session','setShapeProps','NOT_FOUND','_refRangeService','getSkeleton','debounce','loadOfflineData','roomMembers','add','PY_RUNTIME_SCRIPT_ERROR','off-line-icon_clip0_910_343','transformMutationsWithChangeset','ticket','_checkAndWaitForCalculationPermission','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','CollaborationUIEventId','requireSession','_roomMembers$','Failed','unsubscribe','UNDEFINED','_showGuardMessage','none','REDEMPTION_CODE_NOT_STARTED','subscribeEvent','row','unitID','jsx','getSheetObject','blue.400','INTERNAL_ERROR','handleIRemoveCol','path','USERS_LEAVE','InsertRowCommandId','dirtyRanges','jiqing.500','hasOwnProperty','CONFLICT','replaceDocRanges','_initEvent','undoState','function','LICENSE_DISTRO_REJECTED','transformByState','UniverCollaborationClientUIPlugin','SOCKET_FAILED','cursorInfo','getCurrentRevOfUnit','init','_handleLeaveEvent','_collaborationUIEventService','cursorInfo$','_heartbeatTimer','redoState','_taskIds','override','setConfig','6060XRcJWo','_eventUnsubscribe','_textBubble','clipPath','triggerDblclick','width','handleMoveRange','_drawAnchor','formula.calculation.waiting','handleIRemoveRow','isTransformMutationsWithChangesetSuccess','throttleTime','USER_NOT_INVITED_CODE','IUIPartsService','univer-mr-2\x20univer-flex\x20univer-text-xl','WebURLService','_cursors','pushState','getParam','body','AWAITING_WITH_PENDING','addObject','_transformService','generateRandomId','_handleHeartbeatEvent','on-line-icon_clip0_910_349','name','color','UniverCollaborationClientPlugin','collaboration-client.offline-data-not-saved','call','all','params','fillRule','TEXT_RANGE_LAYER_INDEX','REDEMPTION_CODE_HAS_BEEN_CREATED','debounceTime','serializeRangeWithSheet','_docSkeletonManagerService','range','_initDependencies','28AENpBy','TEXT','DEFAULT_WS_SESSION_TICKET_URL','disposeWithMe','CollaborationStatus','saveOfflineData','_docSyncEditingCollabCursorService','_ensureSubject','DisposableCollection','show','CHANGESET_REVISION_CONFILICT','_scheduleClearOtherTimer','_applyCommand','values','HTTPService','drawWith','endRow','http://www.w3.org/2000/svg','red.300','Shape','0\x200\x2016\x2016','_cursor','_docStateChangeManagerService','_beforeCloseService','get','touchDependencies','setInterval','?taskId=','384398BZfhAG','_imageIoService','column','registerDependencies','RefRangeService','useRef','_docTransformStateCacheService','_send','url(#on-line-icon_clip0_910_349)','DocSkeletonManagerService','_transformPreviousActiveRange','arc','_releaseCalculationLimit','currentTheme$','univerjs-icon\x20univerjs-icon-','toString','forEach','_localStorageService','deepClone','BehaviorSubject','NO_OTHER_CLIENTS_EDITING','707181AEFyyM','onCommandExecuted','executionId','_backgroundColor','SetTextSelectionsOperation','APPLY_REVISION_CONFILICT','DeleteRangeMoveLeftCommandId','extend','YUUMI_AI_RUN_FAILED','DOC_RANGE_TYPE','RECT','IMessageService','ALREADY_EXISTS','YUUMI_ALL_TABLES_IS_INVALID','getRangePointData','defineProperty','_lastPointer','_hasFormulaInDirtyRanges','LICENSE_IMPORT_SIZE_EXCEEDED','_collabCursorState$','limitInfo','currentColor','setAlpha','onPointerEnter$','focused$','_sheetSkeletonManagerService','MessageType','clsx','_id','IDocClipboardService','ENTITLE_CAN_NOT_BUY_LOWER_OTP','getCurrentUnitForType','getMemberID','executeCommand','_context','merge','UniverInstanceType','currentUsage','_commandService','_handleEvent','permission.title','DocIMEInputManagerService','subscribe','IBeforeCloseService','_currentUsage','prototype','_logService','APPLY_PERMISSION_DENIED','dispose','ISocketService','handleDeleteRangeMoveLeft','_createSocketURL','RegularPolygon','MOBILE_VERIFY_CODE_NOT_FOUND_OR_EXPIRED','UPDATE_CURSOR','Rectangle','disableLocalCache','random','REDEMPTION_CODE_INACTIVE','propertyIsEnumerable','runOnServer','roomMembers$','registerComponent','WECHAT_HAS_BEEN_BOUND','height','FormulaExecuteStageType','Vector2','InsertRangeMoveRightCommandId','getSheetBySheetId','mapTo','ITransformService','COMPLETION_FINISHED','Tooltip','_saveTaskMap','eventID','18sUqNVH','getUnitId','exhaustSavingTask','assignAColorForMemberID','SheetSkeletonManagerService','M0\x200H16V16H0z','transformMutation','isEditing','push','ENSURE_SNAPSHOT_EXECUTION','_drawTextRange','wsSessionTicketUrl','transformIMECache','translate(.97)','indexOf','ISnapshotServerService','getTypeOfUnitDisposed$','Tools','WebSocketService','top','isTransformMutationFailure','shift','dispose$','SYNCED','ENTITLE_REPORT_LIMIT_EXCEED','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','_toggleOnline','_localeService','/universer-api/license/formula/limit/status','YUUMI_UNABLE_LOAD_URL','EMAIL_HAS_BEEN_BOUND','setStateCache','SUBMIT_CHANGESET_TIMEOUT','result','key','20bARnLG','enableLocalCache','_syncEditingCollabCursorService','INVITE_CODE_ALREADY_BOUND','CONNECTOR_DATA_TOO_LARGE','_entities','substring'];_0x4d50=function(){return _0x2cf580;};return _0x4d50();}function Je(_0x2a0711,_0x3ec738,_0x4e5a6d){const _0x30f523=_0x87bfbc;var _0x2bc8a3=O({},_0x2a0711['attrs']);_0x4e5a6d!=null&&_0x4e5a6d[_0x30f523(0x24b)]&&_0x2bc8a3[_0x30f523(0x301)]===_0x30f523(0x24b)&&(_0x2bc8a3[_0x30f523(0x301)]=_0x4e5a6d[_0x30f523(0x24b)]),_0x2a0711[_0x30f523(0x303)]===_0x30f523(0x26e)&&_0x2bc8a3['id']&&(_0x2bc8a3['id']=_0x2bc8a3['id']+_0x3ec738['idSuffix']),Object[_0x30f523(0x2f2)](_0x2bc8a3)[_0x30f523(0x160)](function(_0x350e2c){const _0x4107dc=_0x30f523;var _0x29a967=_0x350e2c[0x0],_0x1be23c=_0x350e2c[0x1];_0x29a967===_0x4107dc(0x26e)&&typeof _0x1be23c==_0x4107dc(0x2f6)&&(_0x2bc8a3[_0x29a967]=_0x1be23c[_0x4107dc(0x2d7)](/url\(#(.*)\)/,'url(#$1'['concat'](_0x3ec738['idSuffix'],')')));});var _0x13fe62=_0x3ec738[_0x30f523(0x20b)];return!_0x13fe62||_0x13fe62[_0x30f523(0x2cb)]===0x0||(_0x2a0711[_0x30f523(0x303)]==='use'&&_0x2bc8a3[_0x30f523(0x2b9)]&&(_0x2bc8a3['xlink:href']=_0x2bc8a3[_0x30f523(0x2b9)]+_0x3ec738[_0x30f523(0x347)]),Object['entries'](_0x2bc8a3)[_0x30f523(0x160)](function(_0x55a707){const _0x267534=_0x30f523;var _0x27c7a0=_0x55a707[0x0],_0x2e92c4=_0x55a707[0x1];typeof _0x2e92c4==_0x267534(0x2f6)&&(_0x2bc8a3[_0x27c7a0]=_0x2e92c4[_0x267534(0x2d7)](/url\(#(.*)\)/,_0x267534(0xba)[_0x267534(0x29e)](_0x3ec738[_0x267534(0x347)],')')));})),_0x2bc8a3;}function Ze(_0x1143b7,_0x40123d){const _0xf25d88=_0x87bfbc;var _0x53c447,_0x557c99=_0x40123d[_0xf25d88(0x20b)];return!_0x557c99||_0x557c99[_0xf25d88(0x2cb)]===0x0?_0x1143b7:_0x1143b7[_0xf25d88(0x303)]===_0xf25d88(0x20c)&&(!((_0x53c447=_0x1143b7['children'])===null||_0x53c447===void 0x0)&&_0x53c447[_0xf25d88(0x2cb)])?O(O({},_0x1143b7),{'children':_0x1143b7[_0xf25d88(0x2bb)][_0xf25d88(0x32c)](function(_0x5eb40e){const _0x3c977a=_0xf25d88;return typeof _0x5eb40e[_0x3c977a(0x28b)]['id']==_0x3c977a(0x2f6)&&_0x557c99&&_0x557c99[_0x3c977a(0x260)](_0x5eb40e['attrs']['id'])?O(O({},_0x5eb40e),{'attrs':O(O({},_0x5eb40e[_0x3c977a(0x28b)]),{'id':_0x5eb40e[_0x3c977a(0x28b)]['id']+_0x40123d[_0x3c977a(0x347)]})}):_0x5eb40e;})}):_0x1143b7;}function Qe(){const _0x25dd0c=_0x87bfbc;return Math[_0x25dd0c(0x19e)]()[_0x25dd0c(0x15f)](0x24)[_0x25dd0c(0x1d9)](0x2,0x8);}pe[_0x87bfbc(0x2d2)]='UniverIcon';var et={'tag':'svg','attrs':{'xmlns':_0x87bfbc(0x145),'fill':_0x87bfbc(0xe7),'viewBox':_0x87bfbc(0x148),'width':_0x87bfbc(0x343),'height':_0x87bfbc(0x343)},'children':[{'tag':'g','attrs':{'clipPath':_0x87bfbc(0x219)},'children':[{'tag':_0x87bfbc(0xf1),'attrs':{'stroke':_0x87bfbc(0x17a),'d':_0x87bfbc(0x35b),'strokeLinecap':_0x87bfbc(0x283),'strokeLinejoin':'round','strokeWidth':1.2}}]},{'tag':_0x87bfbc(0x20c),'attrs':{},'children':[{'tag':'clipPath','attrs':{'id':_0x87bfbc(0xdb)},'children':[{'tag':_0x87bfbc(0xf1),'attrs':{'fill':_0x87bfbc(0x342),'d':_0x87bfbc(0x1b5)}}]}]}],'defIds':['off-line-icon_clip0_910_343']},xe=L[_0x87bfbc(0x2af)](function(_0xe4c8,_0x571d76){const _0xe74199=_0x87bfbc;return L[_0xe74199(0x210)](pe,Object[_0xe74199(0x33b)]({},_0xe4c8,{'id':'off-line-icon','ref':_0x571d76,'icon':et}));});xe['displayName']=_0x87bfbc(0x235);var tt={'tag':'svg','attrs':{'xmlns':_0x87bfbc(0x145),'fill':'none','viewBox':'0\x200\x2017\x2016','width':_0x87bfbc(0x343),'height':'1em'},'children':[{'tag':'g','attrs':{'clipPath':_0x87bfbc(0x158)},'children':[{'tag':_0x87bfbc(0xf1),'attrs':{'stroke':_0x87bfbc(0x17a),'d':_0x87bfbc(0x22b),'strokeLinecap':_0x87bfbc(0x283),'strokeLinejoin':_0x87bfbc(0x283),'strokeWidth':1.2}}]},{'tag':_0x87bfbc(0x20c),'attrs':{},'children':[{'tag':_0x87bfbc(0x10e),'attrs':{'id':'on-line-icon_clip0_910_349'},'children':[{'tag':_0x87bfbc(0xf1),'attrs':{'fill':_0x87bfbc(0x342),'d':'M0\x200H16V16H0z','transform':_0x87bfbc(0x1bd)}}]}]}],'defIds':[_0x87bfbc(0x124)]},$e=L['forwardRef'](function(_0x5c28de,_0x45eea3){const _0x328259=_0x87bfbc;return L['createElement'](pe,Object[_0x328259(0x33b)]({},_0x5c28de,{'id':_0x328259(0x2bf),'ref':_0x45eea3,'icon':tt}));});$e[_0x87bfbc(0x2d2)]=_0x87bfbc(0x2db);function st(_0x4570a2){const _0x24d9e2=_0x87bfbc;switch(_0x4570a2){case u[_0x24d9e2(0x138)][_0x24d9e2(0x2a2)]:return _0x24d9e2(0x331);case u[_0x24d9e2(0x138)][_0x24d9e2(0xf7)]:return _0x24d9e2(0x30f);case u[_0x24d9e2(0x138)][_0x24d9e2(0x1e8)]:return _0x24d9e2(0x24a);case u['CollaborationStatus']['NOT_COLLAB']:return _0x24d9e2(0x2ea);case u['CollaborationStatus']['AWAITING']:case u[_0x24d9e2(0x138)][_0x24d9e2(0x11f)]:return _0x24d9e2(0xb8);case u[_0x24d9e2(0x138)][_0x24d9e2(0x1c7)]:case u[_0x24d9e2(0x138)][_0x24d9e2(0x2df)]:return _0x24d9e2(0x282);}}function it(_0x7995ac){const _0x29cbee=_0x87bfbc,{status$:_0x47665b}=_0x7995ac,_0x3a5c11=R['useObservable'](_0x47665b,u['CollaborationStatus']['NOT_COLLAB']),_0x1cd4d9=R[_0x29cbee(0x2e3)](a[_0x29cbee(0x322)]),_0x474e99=R[_0x29cbee(0x2e3)](u[_0x29cbee(0x20d)]),_0x2eeec1=_0x3a5c11!==u['CollaborationStatus']['OFFLINE'],_0x5e4ef1=_0x1cd4d9['t'](st(_0x3a5c11)),_0x1b9c90=_0x2eeec1?P[_0x29cbee(0xec)]($e,{}):P[_0x29cbee(0xec)](xe,{}),_0xcef25e=L['useCallback'](()=>{_0x2eeec1||_0x474e99['reconnect']();},[_0x2eeec1,_0x474e99]);function _0x48fb96(){const _0x75bd=_0x29cbee;return P['jsxs']('div',{'className':'univer-flex\x20univer-items-center','onClick':_0xcef25e,'children':[P[_0x75bd(0xec)](_0x75bd(0x1fb),{'className':T[_0x75bd(0x180)](_0x75bd(0x119),{'univer-text-green-500':_0x2eeec1,'univer-text-red-500':!_0x2eeec1}),'children':_0x1b9c90}),P[_0x75bd(0xec)](_0x75bd(0x1fb),{'className':_0x75bd(0x2cd),'children':_0x5e4ef1})]});}return _0x2eeec1?_0x48fb96():P['jsx'](T[_0x29cbee(0x1ad)],{'title':_0x1cd4d9['t'](_0x29cbee(0xcd)),'children':_0x48fb96()});}var nt=Object[_0x87bfbc(0x2ba)],rt=(_0x1cbcd1,_0x53318b,_0x1809d8,_0x3fce67)=>{for(var _0x3679f7=_0x3fce67>0x1?void 0x0:_0x3fce67?nt(_0x53318b,_0x1809d8):_0x53318b,_0xf1e4a4=_0x1cbcd1['length']-0x1,_0x455c3f;_0xf1e4a4>=0x0;_0xf1e4a4--)(_0x455c3f=_0x1cbcd1[_0xf1e4a4])&&(_0x3679f7=_0x455c3f(_0x3679f7)||_0x3679f7);return _0x3679f7;},q=(_0x2fc781,_0xf73627)=>(_0x4d74c4,_0x2850b1)=>_0xf73627(_0x4d74c4,_0x2850b1,_0x2fc781);exports[_0x87bfbc(0x297)]=class extends a[_0x87bfbc(0x323)]{constructor(_0x3c8841,_0x30bcb0,_0x3d559d,_0x11f5c2){const _0x68b481=_0x87bfbc;super(),_(this,_0x68b481(0x267),new I[(_0x68b481(0x163))](u[_0x68b481(0x138)][_0x68b481(0x230)])),(this[_0x68b481(0x2c3)]=_0x3c8841,this['_injector']=_0x30bcb0,this[_0x68b481(0x2fa)]=_0x3d559d,this['_uiPartsService']=_0x11f5c2,this['_initStatusComponent'](),this[_0x68b481(0x1dc)]());}[_0x87bfbc(0x1dc)](){const _0xdac975=_0x87bfbc;this[_0xdac975(0x137)](this['_univerInstanceService'][_0xdac975(0x17d)]['pipe'](I[_0xdac975(0x28a)](()=>{const _0x2327a2=_0xdac975,_0xefee70=this[_0x2327a2(0x2c3)][_0x2327a2(0x305)]();return _0xefee70?this[_0x2327a2(0x2fa)][_0x2327a2(0x251)](_0xefee70[_0x2327a2(0x1b1)]()):I['of'](null);}),I[_0xdac975(0x28a)](_0x310631=>_0x310631?_0x310631['status$']:I['of'](u[_0xdac975(0x138)][_0xdac975(0x230)])))[_0xdac975(0x18f)](_0x4ee9ff=>{const _0x5ee8c9=_0xdac975;this[_0x5ee8c9(0x267)][_0x5ee8c9(0x2ae)](_0x4ee9ff);}));}[_0x87bfbc(0x1eb)](){const _0x2eb6a3=_0x87bfbc;this['disposeWithMe'](this[_0x2eb6a3(0x2fd)][_0x2eb6a3(0x1a3)](R[_0x2eb6a3(0x345)][_0x2eb6a3(0x1f1)],()=>R['connectInjector'](ot({'status$':this[_0x2eb6a3(0x267)][_0x2eb6a3(0x22c)]()}),this[_0x2eb6a3(0x272)])));}},exports[_0x87bfbc(0x297)]=rt([q(0x0,a[_0x87bfbc(0x1ee)]),q(0x1,a[_0x87bfbc(0x1ec)](a[_0x87bfbc(0x2d9)])),q(0x2,a[_0x87bfbc(0x1ec)](u['CollaborationController'])),q(0x3,R[_0x87bfbc(0x118)])],exports[_0x87bfbc(0x297)]);function ot(_0x58cf68){const {status$:_0x43a282}=_0x58cf68;return function(){return P['jsx'](it,{'status$':_0x43a282});};}const Te=a[_0x87bfbc(0x201)]('uni.network.url-service');var at=Object[_0x87bfbc(0x2ba)],ct=(_0x5c01d7,_0x188f39,_0x27aed7,_0x11132b)=>{for(var _0x2786bb=_0x11132b>0x1?void 0x0:_0x11132b?at(_0x188f39,_0x27aed7):_0x188f39,_0x3d9e1b=_0x5c01d7['length']-0x1,_0x1a38cd;_0x3d9e1b>=0x0;_0x3d9e1b--)(_0x1a38cd=_0x5c01d7[_0x3d9e1b])&&(_0x2786bb=_0x1a38cd(_0x2786bb)||_0x2786bb);return _0x2786bb;},Y=(_0x17cfdc,_0x1b462a)=>(_0x4164f4,_0x3bffa2)=>_0x1b462a(_0x4164f4,_0x3bffa2,_0x17cfdc);exports['CollaborationDataLoaderController']=class extends a[_0x87bfbc(0x221)]{constructor(_0x179693,_0xb15c61,_0x26d777,_0x2e4709,_0x1afcdd){const _0x6f92e5=_0x87bfbc;super(),this[_0x6f92e5(0x265)]=_0x179693,this[_0x6f92e5(0x193)]=_0xb15c61,this[_0x6f92e5(0x18b)]=_0x26d777,this[_0x6f92e5(0x252)]=_0x2e4709,_0x1afcdd?_0x1afcdd==null||_0x1afcdd[_0x6f92e5(0x2c4)]()[_0x6f92e5(0x2bd)](()=>this['_init']()):(this['_logService'][_0x6f92e5(0x2c6)](_0x6f92e5(0x291),_0x6f92e5(0x329)),this[_0x6f92e5(0x2ad)]());}async[_0x87bfbc(0x2ad)](){const _0x110db5=_0x87bfbc,_0x22409b=this[_0x110db5(0x265)][_0x110db5(0x11d)](_0x110db5(0x2dc)),_0x44fffe=this[_0x110db5(0x265)][_0x110db5(0x11d)]('type'),_0x8821c5=this['_urlService']['getParam'](_0x110db5(0x2d6));if(!_0x22409b||!_0x44fffe){this[_0x110db5(0x193)][_0x110db5(0x2c6)](_0x110db5(0x291),_0x110db5(0xdf));return;}const _0x85b091=await this['_dataLoaderService'][_0x110db5(0x25d)](_0x22409b,Number(_0x44fffe),_0x8821c5);_0x85b091&&_0x85b091 instanceof a[_0x110db5(0x36e)]&&this['_setupSubUnitSync'](_0x85b091);}async[_0x87bfbc(0x22d)](_0x23f3bf){const _0x38a1cc=_0x87bfbc;await this[_0x38a1cc(0x309)](_0x23f3bf),_0x23f3bf[_0x38a1cc(0x2d5)][_0x38a1cc(0x269)](I[_0x38a1cc(0x2b3)](this[_0x38a1cc(0x1c6)]))[_0x38a1cc(0x18f)](_0x1866d1=>{_0x1866d1&&this['_updateURLWithCurrentState'](_0x1866d1);}),this[_0x38a1cc(0x265)][_0x38a1cc(0x243)][_0x38a1cc(0x269)](I[_0x38a1cc(0x2b3)](this[_0x38a1cc(0x1c6)]))['subscribe'](()=>this['_updateSubUnitFromURLParams'](_0x23f3bf));}[_0x87bfbc(0x317)](_0x509089,_0x3130c2=!0x1){const _0x44cd36=_0x87bfbc,_0x5a5cc0=this[_0x44cd36(0x265)][_0x44cd36(0x11d)]('subunit');_0x509089[_0x44cd36(0x330)]()!==_0x5a5cc0&&this[_0x44cd36(0x265)][_0x44cd36(0x293)]('subunit',_0x509089['getSheetId'](),_0x3130c2);}async[_0x87bfbc(0x309)](_0x39f61c){const _0xd9520d=_0x87bfbc;var _0x372982;const _0x33b8a2=this[_0xd9520d(0x265)][_0xd9520d(0x11d)](_0xd9520d(0x2d6));if(!_0x33b8a2||!_0x39f61c['getSheetBySheetId'](_0x33b8a2)){const _0x5e94f1=_0x39f61c[_0xd9520d(0xc0)]()[0x0],_0x318007=_0x39f61c[_0xd9520d(0x1a9)](_0x5e94f1);if(!_0x318007)return;this['_updateURLWithCurrentState'](_0x318007,!0x0),await this[_0xd9520d(0x18b)][_0xd9520d(0x186)](v[_0xd9520d(0x2a3)]['id'],{'unitId':_0x39f61c[_0xd9520d(0x1b1)](),'subUnitId':_0x5e94f1});return;}((_0x372982=_0x39f61c['getActiveSheet']())==null?void 0x0:_0x372982['getSheetId']())!==_0x33b8a2&&await this[_0xd9520d(0x18b)][_0xd9520d(0x186)](v[_0xd9520d(0x2a3)]['id'],{'unitId':_0x39f61c[_0xd9520d(0x1b1)](),'subUnitId':_0x33b8a2});}},exports[_0x87bfbc(0x306)]=ct([Y(0x0,Te),Y(0x1,a[_0x87bfbc(0x308)]),Y(0x2,a[_0x87bfbc(0xc7)]),Y(0x3,a[_0x87bfbc(0x1ec)](u[_0x87bfbc(0x1e2)])),Y(0x4,a[_0x87bfbc(0x324)](Ke[_0x87bfbc(0x346)]))],exports[_0x87bfbc(0x306)]);var lt=Object['getOwnPropertyDescriptor'],_t=(_0x5a8020,_0x237f9e,_0x48c92e,_0x3fe8d2)=>{const _0x2ef4fc=_0x87bfbc;for(var _0x53994d=_0x3fe8d2>0x1?void 0x0:_0x3fe8d2?lt(_0x237f9e,_0x48c92e):_0x237f9e,_0x5e1171=_0x5a8020[_0x2ef4fc(0x2cb)]-0x1,_0x57b681;_0x5e1171>=0x0;_0x5e1171--)(_0x57b681=_0x5a8020[_0x5e1171])&&(_0x53994d=_0x57b681(_0x53994d)||_0x53994d);return _0x53994d;},be=(_0x430b87,_0x168da1)=>(_0x48ff5b,_0x587a34)=>_0x168da1(_0x48ff5b,_0x587a34,_0x430b87);let fe=class extends a['RxDisposable']{constructor(_0x368f23,_0x38ffdb){const _0x530da7=_0x87bfbc;super(),this[_0x530da7(0x1ef)]=_0x368f23,this[_0x530da7(0x151)]=_0x38ffdb,this['_init']();}['_init'](){const _0x16068c=_0x87bfbc,_0x37d0e2=this;this['disposeWithMe'](this[_0x16068c(0x1ef)]['addClipboardHook']({'onBeforePasteImage':async _0x28fbe8=>{const _0x411f3e=_0x16068c,_0x32dab2=await _0x37d0e2[_0x411f3e(0x151)][_0x411f3e(0x36c)](_0x28fbe8);return _0x32dab2?{'source':_0x32dab2[_0x411f3e(0x31e)],'imageSourceType':_0x32dab2['imageSourceType']}:null;}}));}};fe=_t([be(0x0,p[_0x87bfbc(0x182)]),be(0x1,qe[_0x87bfbc(0x2b6)])],fe);const De=['purple.300',_0x87bfbc(0xf5),'green.600',_0x87bfbc(0x146),_0x87bfbc(0xee),_0x87bfbc(0x340)];class Oe extends a[_0x87bfbc(0x323)]{constructor(){const _0x19fdec=_0x87bfbc;super(...arguments),_(this,_0x19fdec(0x23d),new Map()),_(this,'_colorIndex',0x0);}[_0x87bfbc(0x1b3)](_0x3dc6e8){const _0x3574d2=_0x87bfbc;if(this[_0x3574d2(0x23d)][_0x3574d2(0x300)](_0x3dc6e8))return this[_0x3574d2(0x23d)][_0x3574d2(0x14c)](_0x3dc6e8);const _0x4fa847=De[this[_0x3574d2(0x1ea)]];return this[_0x3574d2(0x1ea)]=(this['_colorIndex']+0x1)%De[_0x3574d2(0x2cb)],this['_assignedColors'][_0x3574d2(0x311)](_0x3dc6e8,_0x4fa847),_0x4fa847;}}function Be(_0x3cad5b){const _0x441fa9=_0x87bfbc;let _0x25cc16='';for(const _0x3244d2 of _0x3cad5b){const {startOffset:_0x555a54,endOffset:_0xeab24f,isActive:_0x302bf2,rangeType:_0x147748,segmentId:_0x29b9cf,segmentPage:_0x3860c3}=_0x3244d2;_0x25cc16[_0x441fa9(0x2cb)]&&(_0x25cc16+=','),_0x25cc16+=_0x555a54+':'+_0xeab24f+':'+(_0x302bf2?'1':'0')+':'+_0x147748+':'+_0x29b9cf+':'+_0x3860c3;}return _0x25cc16;}function ht(_0x261018){const _0x66fbc6=_0x87bfbc,_0x53cd1a=_0x261018[_0x66fbc6(0x214)](','),_0x37ae23=[];for(const _0x46fb4d of _0x53cd1a){const [_0x1e9f31,_0x1c9dbb,_0x4ee7dc,_0x114900,_0x3f1873,_0x92572a]=_0x46fb4d[_0x66fbc6(0x214)](':');_0x37ae23['push']({'startOffset':Number(_0x1e9f31),'endOffset':Number(_0x1c9dbb),'collapsed':_0x1e9f31===_0x1c9dbb,'isActive':_0x4ee7dc==='1','rangeType':_0x114900===a[_0x66fbc6(0x16e)]['TEXT']?a[_0x66fbc6(0x16e)][_0x66fbc6(0x135)]:a[_0x66fbc6(0x16e)][_0x66fbc6(0x16f)],'segmentId':typeof _0x3f1873=='string'?String(_0x3f1873):'','segmentPage':Number(_0x92572a!=null?_0x92572a:-0x1)});}return _0x37ae23[_0x66fbc6(0x1e6)](_0x3ef790=>_0x3ef790['isActive'])||(_0x37ae23[0x0][_0x66fbc6(0x205)]=!0x0),_0x37ae23;}class Re extends a[_0x87bfbc(0x221)]{constructor(){const _0x5aa365=_0x87bfbc;super(...arguments),_(this,_0x5aa365(0x178),new I['BehaviorSubject'](null)),_(this,_0x5aa365(0x33f),this['_collabCursorState$']['asObservable']());}[_0x87bfbc(0x35d)](_0x45c053){const _0x28f606=_0x87bfbc,{unitID:_0x42df66,memberID:_0x3315d4,textRanges:_0x527ad1}=_0x45c053,_0x956bc4=Be(_0x527ad1);if(_0x956bc4==='')return;const _0x196c4e={'unitID':_0x42df66,'memberID':_0x3315d4,'selection':_0x956bc4};this[_0x28f606(0x178)][_0x28f606(0x2ae)](_0x196c4e);}}var ut=Object['getOwnPropertyDescriptor'],It=(_0x3ca9a6,_0xe52844,_0x4531e0,_0x230ee3)=>{const _0x52ccd3=_0x87bfbc;for(var _0x5d1a1c=_0x230ee3>0x1?void 0x0:_0x230ee3?ut(_0xe52844,_0x4531e0):_0xe52844,_0x1903e2=_0x3ca9a6[_0x52ccd3(0x2cb)]-0x1,_0x4ce322;_0x1903e2>=0x0;_0x1903e2--)(_0x4ce322=_0x3ca9a6[_0x1903e2])&&(_0x5d1a1c=_0x4ce322(_0x5d1a1c)||_0x5d1a1c);return _0x5d1a1c;},M=(_0x423e7f,_0x3992d9)=>(_0x463d17,_0x3b5a20)=>_0x3992d9(_0x463d17,_0x3b5a20,_0x423e7f);const dt=0x12c,St=0x64;let me=class extends a[_0x87bfbc(0x221)]{constructor(_0x2a1637,_0x46c507,_0x50f044,_0xdeb4bb,_0x2da5b3,_0x45df2c,_0x44a6ea,_0x24f9ae,_0x2261ff){const _0x1a9c82=_0x87bfbc;super(),_(this,'_online',!0x1),_(this,_0x1a9c82(0x2ad),!0x1),_(this,'_cursorInfo$',new I[(_0x1a9c82(0x163))](new Map())),_(this,'cursorInfo$',this[_0x1a9c82(0x274)]['asObservable']()),_(this,_0x1a9c82(0xe2),new I[(_0x1a9c82(0x163))]([])),_(this,'roomMembers$',this[_0x1a9c82(0xe2)][_0x1a9c82(0x269)](I[_0x1a9c82(0x12f)](dt))),_(this,_0x1a9c82(0x2eb),a[_0x1a9c82(0xd6)](_0x49c7cb=>{const _0x50d054=_0x1a9c82,_0x22a520={'eventID':g[_0x50d054(0x2d4)][_0x50d054(0x19b)],'data':{'unitID':this[_0x50d054(0xeb)],'memberID':this['_session'][_0x50d054(0x185)](),'selection':Be(_0x49c7cb)}};this['_session']['send'](_0x22a520,this[_0x50d054(0xeb)]);},St)),(this[_0x1a9c82(0xeb)]=_0x2a1637,this[_0x1a9c82(0xd1)]=_0x46c507,this['_injector']=_0x50f044,this['_colorAssignService']=_0xdeb4bb,this[_0x1a9c82(0x33c)]=_0x2da5b3,this['_syncEditingCollabCursorService']=_0x45df2c,this[_0x1a9c82(0x121)]=_0x44a6ea,this[_0x1a9c82(0x2c3)]=_0x24f9ae,this[_0x1a9c82(0x18b)]=_0x2261ff);}get[_0x87bfbc(0x100)](){const _0xde674b=_0x87bfbc;return this[_0xde674b(0x274)][_0xde674b(0x360)]();}get[_0x87bfbc(0xd8)](){const _0x1847a6=_0x87bfbc;return this[_0x1847a6(0xe2)][_0x1847a6(0x360)]();}[_0x87bfbc(0x195)](){const _0x5a1998=_0x87bfbc;super[_0x5a1998(0x195)](),this['_cursorInfo$'][_0x5a1998(0x2ae)](new Map()),this[_0x5a1998(0x274)][_0x5a1998(0x344)](),this['_roomMembers$'][_0x5a1998(0x2ae)]([]),this[_0x5a1998(0xe2)][_0x5a1998(0x344)]();}[_0x87bfbc(0x102)](){const _0x34b659=_0x87bfbc;this[_0x34b659(0x2ad)]||(this[_0x34b659(0x2ad)]=!0x0,this['_session'][_0x34b659(0x24c)]['pipe'](I[_0x34b659(0x2b3)](this[_0x34b659(0x1c6)]))[_0x34b659(0x18f)](_0x5f4868=>{const _0x335f91=_0x34b659;_0x5f4868===u[_0x335f91(0x1e5)]['ONLINE']?this[_0x335f91(0x1ca)]():this[_0x335f91(0x23b)]();}),this['_session'][_0x34b659(0xcc)]['pipe'](I[_0x34b659(0x2b3)](this[_0x34b659(0x1c6)]))[_0x34b659(0x18f)](_0x59764c=>{const _0x46ecb3=_0x34b659,_0x325701=_0x59764c[_0x46ecb3(0x1af)];_0x325701===g[_0x46ecb3(0x2d4)][_0x46ecb3(0x19b)]&&this[_0x46ecb3(0x229)](_0x59764c),_0x325701===g[_0x46ecb3(0x2d4)][_0x46ecb3(0xf2)]&&this[_0x46ecb3(0x21d)](_0x59764c);}),this[_0x34b659(0x137)](this['_commandService'][_0x34b659(0x166)](_0x2cbbc3=>{const _0x503ae0=_0x34b659,_0x567cf6=_0x2cbbc3[_0x503ae0(0x12b)];_0x567cf6!=null&&this[_0x503ae0(0x1fe)]&&_0x2cbbc3['id']===V[_0x503ae0(0x169)]['id']&&_0x567cf6[_0x503ae0(0x277)]===this[_0x503ae0(0xeb)]&&_0x567cf6[_0x503ae0(0x1b7)]===!0x1&&_0x567cf6['ranges'][_0x503ae0(0x2cb)]>0x0&&this['_updateLocalCursor'](_0x567cf6[_0x503ae0(0x35a)]);})),this[_0x34b659(0x1d5)][_0x34b659(0x33f)][_0x34b659(0x269)](I[_0x34b659(0x2b3)](this['dispose$']))[_0x34b659(0x18f)](_0x5b9a3d=>{const _0x245b66=_0x34b659;if((_0x5b9a3d==null?void 0x0:_0x5b9a3d[_0x245b66(0xeb)])!==this['unitID'])return;const _0x235435={'eventID':g[_0x245b66(0x2d4)][_0x245b66(0x19b)],'data':_0x5b9a3d};this['_onCursorUpdate'](_0x235435);}),this[_0x34b659(0x137)](this['_commandService'][_0x34b659(0x166)](_0xd7f64=>{const _0xdf5d64=_0x34b659;if(_0xd7f64[_0xdf5d64(0x12b)]==null)return;const _0x5cd247=_0xd7f64[_0xdf5d64(0x12b)];if(_0xd7f64['id']!==V[_0xdf5d64(0x27f)]['id']||_0x5cd247['unitId']!==this[_0xdf5d64(0xeb)])return;const _0x5220e4={'id':_0xdf5d64(0x338),'params':_0x5cd247},_0x57c3d9=this['cursorInfo'];for(const [_0x5b5de5,_0x49a494]of _0x57c3d9){const _0x5cdaf9={'id':_0xdf5d64(0x338),'params':{'unitId':this[_0xdf5d64(0xeb)],'actions':null,'textRanges':_0x49a494[_0xdf5d64(0x35a)]}},_0x1e2b29=this[_0xdf5d64(0x121)]['transformMutation'](_0x5220e4,_0x5cdaf9,!0x1);if(g['isTransformMutationFailure'](_0x1e2b29))throw _0x1e2b29[_0xdf5d64(0x363)];_0x57c3d9['set'](_0x5b5de5,{..._0x49a494,'ranges':_0x1e2b29[_0xdf5d64(0x249)]['params'][_0xdf5d64(0x30a)]});}queueMicrotask(()=>{const _0x5302e1=_0xdf5d64;this[_0x5302e1(0x274)][_0x5302e1(0x2ae)](_0x57c3d9);});})));}[_0x87bfbc(0x229)](_0xaba97f){const _0x4ed350=_0x87bfbc;var _0x40ee79,_0x323dcf;const {memberID:_0x42d12d,selection:_0x2039cc}=_0xaba97f[_0x4ed350(0x203)],_0x3d840e=ht(_0x2039cc),_0x30fb3d=(_0x323dcf=(_0x40ee79=this[_0x4ed350(0x33c)][_0x4ed350(0x354)](this[_0x4ed350(0xeb)],_0x42d12d))==null?void 0x0:_0x40ee79[_0x4ed350(0x125)])!=null?_0x323dcf:_0x4ed350(0x279),_0x2870fb={'color':this[_0x4ed350(0x2c7)][_0x4ed350(0x1b3)](_0x42d12d),'name':_0x30fb3d,'ranges':_0x3d840e},_0x3261f7=this['cursorInfo'];_0x3261f7[_0x4ed350(0x311)](_0x42d12d,_0x2870fb),this[_0x4ed350(0x274)][_0x4ed350(0x2ae)](_0x3261f7);}[_0x87bfbc(0x21d)](_0x3df3f6){const _0x39ba44=_0x87bfbc,{memberID:_0x51855f}=_0x3df3f6['data'],_0x401578=this[_0x39ba44(0x100)];_0x401578[_0x39ba44(0x33d)](_0x51855f),this[_0x39ba44(0x274)][_0x39ba44(0x2ae)](_0x401578);}[_0x87bfbc(0x1ca)](){const _0xa1c69c=_0x87bfbc;var _0x52fcf3;if(this[_0xa1c69c(0x1fe)]=!0x0,((_0x52fcf3=this[_0xa1c69c(0x2c3)][_0xa1c69c(0x305)]())==null?void 0x0:_0x52fcf3[_0xa1c69c(0x1b1)]())!==this[_0xa1c69c(0xeb)])return;const _0x3ab3f8=this[_0xa1c69c(0x272)][_0xa1c69c(0x14c)](V['DocSelectionManagerService'])[_0xa1c69c(0x2e9)]();Array['isArray'](_0x3ab3f8)&&_0x3ab3f8[_0xa1c69c(0x2cb)]>0x0&&this[_0xa1c69c(0x2eb)](_0x3ab3f8);}[_0x87bfbc(0x23b)](){const _0xd41f6d=_0x87bfbc;this[_0xd41f6d(0x1fe)]=!0x1;}};me=It([M(0x2,a[_0x87bfbc(0x1ec)](a[_0x87bfbc(0x2d9)])),M(0x3,a[_0x87bfbc(0x1ec)](Oe)),M(0x4,a['Inject'](u[_0x87bfbc(0x259)])),M(0x5,a['Inject'](Re)),M(0x6,g['ITransformService']),M(0x7,a['IUniverInstanceService']),M(0x8,a['ICommandService'])],me);var ft=Object['getOwnPropertyDescriptor'],mt=(_0x4c72ce,_0x1266f9,_0x1205ac,_0x2dfd36)=>{const _0x22e2a3=_0x87bfbc;for(var _0x1c6311=_0x2dfd36>0x1?void 0x0:_0x2dfd36?ft(_0x1266f9,_0x1205ac):_0x1266f9,_0x3a6993=_0x4c72ce[_0x22e2a3(0x2cb)]-0x1,_0x9d6481;_0x3a6993>=0x0;_0x3a6993--)(_0x9d6481=_0x4c72ce[_0x3a6993])&&(_0x1c6311=_0x9d6481(_0x1c6311)||_0x1c6311);return _0x1c6311;},y=(_0x5117f9,_0x485fc6)=>(_0x24e193,_0x4e59db)=>_0x485fc6(_0x24e193,_0x4e59db,_0x5117f9);const vt=0x12c,gt=0x64,Et=()=>{let _0x9856ff=[],_0x777e85=!0x1;return _0x52b0aa=>{_0x9856ff['push'](_0x52b0aa),_0x777e85||(_0x777e85=!0x0,setTimeout(()=>{_0x9856ff['forEach'](_0x67429e=>_0x67429e()),_0x9856ff=[],_0x777e85=!0x1;}));};};let ve=class extends a[_0x87bfbc(0x221)]{constructor(_0x55c8f5,_0x35855b,_0x32d942,_0x5c306f,_0x1c30f2,_0x1b736c,_0x36fe2c,_0x6ad8ff){const _0x690ba0=_0x87bfbc;super(),_(this,_0x690ba0(0x1fe),!0x1),_(this,'_init',!0x1),_(this,'_cursorInfo$',new I['BehaviorSubject'](new Map())),_(this,_0x690ba0(0x105),this[_0x690ba0(0x274)][_0x690ba0(0x22c)]()),_(this,_0x690ba0(0xe2),new I[(_0x690ba0(0x163))]([])),_(this,_0x690ba0(0x1a2),this[_0x690ba0(0xe2)][_0x690ba0(0x269)](I[_0x690ba0(0x12f)](vt))),_(this,_0x690ba0(0x2eb),a[_0x690ba0(0xd6)]((_0x3ea68f,_0x3567dd)=>{const _0x456704=_0x690ba0,_0x374917={'eventID':g[_0x456704(0x2d4)]['UPDATE_CURSOR'],'data':{'unitID':this[_0x456704(0xeb)],'memberID':this[_0x456704(0xd1)][_0x456704(0x185)](),'selection':B[_0x456704(0x130)](_0x3ea68f,_0x3567dd[_0x456704(0x132)])}};this[_0x456704(0xd1)]['send'](_0x374917,this['unitID']);},gt)),(this['unitID']=_0x55c8f5,this[_0x690ba0(0xd1)]=_0x35855b,this[_0x690ba0(0x272)]=_0x32d942,this[_0x690ba0(0x2c7)]=_0x5c306f,this[_0x690ba0(0x33c)]=_0x1c30f2,this[_0x690ba0(0x2c3)]=_0x1b736c,this[_0x690ba0(0x18b)]=_0x36fe2c,this[_0x690ba0(0xd4)]=_0x6ad8ff);}get['cursorInfo'](){const _0x5858fa=_0x87bfbc;return this[_0x5858fa(0x274)][_0x5858fa(0x360)]();}get['roomMembers'](){const _0x39ed60=_0x87bfbc;return this[_0x39ed60(0xe2)][_0x39ed60(0x360)]();}[_0x87bfbc(0x195)](){const _0xda5a42=_0x87bfbc;super[_0xda5a42(0x195)](),this[_0xda5a42(0x274)][_0xda5a42(0x2ae)](new Map()),this[_0xda5a42(0x274)][_0xda5a42(0x344)](),this[_0xda5a42(0xe2)]['next']([]),this[_0xda5a42(0xe2)][_0xda5a42(0x344)]();}[_0x87bfbc(0x102)](){const _0x59c02b=_0x87bfbc;this[_0x59c02b(0x2ad)]||(this[_0x59c02b(0x2ad)]=!0x0,this[_0x59c02b(0xd1)][_0x59c02b(0x24c)][_0x59c02b(0x269)](I[_0x59c02b(0x2b3)](this[_0x59c02b(0x1c6)]))['subscribe'](_0x4af548=>{const _0x1ada23=_0x59c02b;_0x4af548===u[_0x1ada23(0x1e5)]['ONLINE']?this['_toggleOnline']():this[_0x1ada23(0x23b)]();}),this[_0x59c02b(0xd1)][_0x59c02b(0xcc)][_0x59c02b(0x269)](I[_0x59c02b(0x2b3)](this[_0x59c02b(0x1c6)]))[_0x59c02b(0x18f)](_0x58069b=>{const _0x2c2db3=_0x59c02b,_0x4e9d36=_0x58069b[_0x2c2db3(0x1af)];_0x4e9d36===g[_0x2c2db3(0x2d4)][_0x2c2db3(0x19b)]&&this[_0x2c2db3(0x229)](_0x58069b),_0x4e9d36===g['CollaborationEvent']['USERS_LEAVE']&&this[_0x2c2db3(0x21d)](_0x58069b);}),this['_onRefRangeChange'](),this['disposeWithMe'](this[_0x59c02b(0x18b)]['onCommandExecuted'](_0x16f586=>{const _0x502773=_0x59c02b;if(this[_0x502773(0x1fe)]&&_0x16f586['id']===v[_0x502773(0x237)]['id']&&_0x16f586[_0x502773(0x12b)][_0x502773(0x277)]===this[_0x502773(0xeb)]){const _0x1b8ec3=_0x16f586[_0x502773(0x12b)];this[_0x502773(0x2eb)](_0x1b8ec3[_0x502773(0x242)],_0x1b8ec3[_0x502773(0xb7)][0x0]);}})));}[_0x87bfbc(0x229)](_0x498eaa){const _0x5a34c8=_0x87bfbc;var _0x33f616,_0x34e67f;const {memberID:_0x39fa78,selection:_0x8614cd}=_0x498eaa['data'],{sheetName:_0x4add22,range:_0x4b9802}=B[_0x5a34c8(0x292)](_0x8614cd),_0xd93c88={'name':(_0x34e67f=(_0x33f616=this[_0x5a34c8(0x33c)]['getMember'](this[_0x5a34c8(0xeb)],_0x39fa78))==null?void 0x0:_0x33f616['name'])!=null?_0x34e67f:'Unknown\x20user','range':this['_getMergeRange'](_0x4add22,_0x4b9802),'sheetID':_0x4add22,'color':this[_0x5a34c8(0x2c7)]['assignAColorForMemberID'](_0x39fa78),'selection':_0x8614cd},_0x429e42=this['cursorInfo'];_0x429e42[_0x5a34c8(0x311)](_0x39fa78,_0xd93c88),this[_0x5a34c8(0x274)][_0x5a34c8(0x2ae)](_0x429e42);}['_onCursorDelete'](_0xc781ee){const _0x50f08a=_0x87bfbc,{memberID:_0x247a64}=_0xc781ee[_0x50f08a(0x203)],_0x5a6586=this[_0x50f08a(0x100)];_0x5a6586[_0x50f08a(0x33d)](_0x247a64),this[_0x50f08a(0x274)][_0x50f08a(0x2ae)](_0x5a6586);}[_0x87bfbc(0x348)](_0x42093c,_0x161467){const _0x4e0351=_0x87bfbc;var _0xf23f2a,_0x47827e;const _0x4815dc=(_0x47827e=(_0xf23f2a=this['_univerInstanceService'][_0x4e0351(0x36b)](this[_0x4e0351(0xeb)]))==null?void 0x0:_0xf23f2a[_0x4e0351(0x1a9)](_0x42093c))==null?void 0x0:_0x47827e[_0x4e0351(0x307)]();return(_0x4815dc==null?void 0x0:_0x4815dc['find'](_0x318897=>a[_0x4e0351(0x19c)][_0x4e0351(0x212)](_0x318897,_0x161467)))||_0x161467;}['_onRefRangeChange'](){const _0x7d35bd=_0x87bfbc,_0x3a1371=new a[(_0x7d35bd(0x13c))](),_0x2bd322=Et(),_0x57b795=()=>{const _0x47dc7f=_0x7d35bd;_0x3a1371[_0x47dc7f(0x195)]();const _0x768bd9=(_0xdc81ad,_0x137b81,_0x452908,_0x5cf51a)=>{const _0x51335d=_0x47dc7f;let _0x1a894a=[];switch(_0xdc81ad['id']){case v['EffectRefRangId'][_0x51335d(0x16b)]:{_0x1a894a=v[_0x51335d(0x197)](_0xdc81ad,_0x5cf51a);break;}case v['EffectRefRangId']['DeleteRangeMoveUpCommandId']:{_0x1a894a=v['handleDeleteRangeMoveUp'](_0xdc81ad,_0x5cf51a);break;}case v[_0x51335d(0x355)][_0x51335d(0x31a)]:{_0x1a894a=v[_0x51335d(0x30e)](_0xdc81ad,_0x5cf51a);break;}case v[_0x51335d(0x355)][_0x51335d(0x367)]:{_0x1a894a=v['handleInsertRangeMoveDown'](_0xdc81ad,_0x5cf51a);break;}case v[_0x51335d(0x355)][_0x51335d(0x1a8)]:{_0x1a894a=v['handleInsertRangeMoveRight'](_0xdc81ad,_0x5cf51a);break;}case v[_0x51335d(0x355)][_0x51335d(0xf3)]:{_0x1a894a=v[_0x51335d(0x233)](_0xdc81ad,_0x5cf51a);break;}case v['EffectRefRangId'][_0x51335d(0x200)]:{_0x1a894a=v[_0x51335d(0x111)](_0xdc81ad,_0x5cf51a);break;}case v[_0x51335d(0x355)][_0x51335d(0x1f3)]:{_0x1a894a=v[_0x51335d(0xf0)](_0xdc81ad,_0x5cf51a);break;}case v[_0x51335d(0x355)][_0x51335d(0x255)]:{_0x1a894a=v[_0x51335d(0x114)](_0xdc81ad,_0x5cf51a);break;}}const _0x1d1167=v[_0x51335d(0x316)](_0x1a894a,_0x5cf51a),_0x401b82=this[_0x51335d(0x100)][_0x51335d(0x14c)](_0x137b81);if(_0x401b82&&_0x1d1167){const _0x11d262={..._0x401b82,'range':_0x1d1167};this[_0x51335d(0x100)][_0x51335d(0x311)](_0x137b81,_0x11d262),_0x2bd322(()=>{const _0x53ab57=_0x51335d,_0x1909df=this[_0x53ab57(0xd4)]['registerRefRange'](_0x1d1167,_0x1efc75=>(_0x1909df[_0x53ab57(0x195)](),_0x768bd9(_0x1efc75,_0x137b81,_0x452908,_0x1d1167)));_0x3a1371[_0x53ab57(0xd9)](_0x1909df);});}return{'redos':[],'undos':[]};};this['cursorInfo'][_0x47dc7f(0x160)]((_0x1d9ab3,_0x49a6ce)=>{const _0x56e2dc=_0x47dc7f,{range:_0x4925a8,sheetID:_0x50b0c8}=_0x1d9ab3,_0x4e7733=this['_refRangeService'][_0x56e2dc(0x2cf)](_0x4925a8,_0x528098=>(_0x4e7733[_0x56e2dc(0x195)](),_0x768bd9(_0x528098,_0x49a6ce,_0x50b0c8,_0x4925a8)));_0x3a1371[_0x56e2dc(0xd9)](_0x4e7733);});};this[_0x7d35bd(0x137)](a[_0x7d35bd(0x30d)](this[_0x7d35bd(0x274)][_0x7d35bd(0x18f)](()=>{_0x57b795();})));}['_toggleOnline'](){const _0x112c78=_0x87bfbc;var _0x3fc460,_0x3c4185;if(this['_online']=!0x0,((_0x3fc460=this[_0x112c78(0x2c3)][_0x112c78(0x305)]())==null?void 0x0:_0x3fc460[_0x112c78(0x1b1)]())!==this[_0x112c78(0xeb)])return;const _0x296c19=(_0x3c4185=this['_injector'][_0x112c78(0x14c)](v['SheetsSelectionsService'])['getCurrentSelections']())==null?void 0x0:_0x3c4185[0x0],_0xc5d09e=this[_0x112c78(0x2c3)][_0x112c78(0x184)](a[_0x112c78(0x189)]['UNIVER_SHEET'])[_0x112c78(0x28d)]();_0x296c19&&_0xc5d09e&&this[_0x112c78(0x2eb)](_0xc5d09e['getSheetId'](),_0x296c19);}[_0x87bfbc(0x23b)](){const _0x50b3af=_0x87bfbc;this[_0x50b3af(0x1fe)]=!0x1;}};ve=mt([y(0x2,a[_0x87bfbc(0x1ec)](a[_0x87bfbc(0x2d9)])),y(0x3,a[_0x87bfbc(0x1ec)](Oe)),y(0x4,a[_0x87bfbc(0x1ec)](u[_0x87bfbc(0x259)])),y(0x5,a[_0x87bfbc(0x1ee)]),y(0x6,a[_0x87bfbc(0xc7)]),y(0x7,a[_0x87bfbc(0x1ec)](v[_0x87bfbc(0x154)]))],ve);var Ct=Object['getOwnPropertyDescriptor'],pt=(_0x2a05dc,_0x54fd26,_0x51c5e6,_0x376802)=>{for(var _0x92a6c2=_0x376802>0x1?void 0x0:_0x376802?Ct(_0x54fd26,_0x51c5e6):_0x54fd26,_0x43ea14=_0x2a05dc['length']-0x1,_0x14e26c;_0x43ea14>=0x0;_0x43ea14--)(_0x14e26c=_0x2a05dc[_0x43ea14])&&(_0x92a6c2=_0x14e26c(_0x92a6c2)||_0x92a6c2);return _0x92a6c2;},ae=(_0x25d333,_0x4d0eae)=>(_0x145810,_0x5403eb)=>_0x4d0eae(_0x145810,_0x5403eb,_0x25d333);let F=class extends a[_0x87bfbc(0x221)]{constructor(_0x5fe652,_0x513df9,_0xf680a9){const _0x545e15=_0x87bfbc;super(),_(this,_0x545e15(0x1d8),new Map()),_(this,_0x545e15(0x2f3),new I['Subject']()),(this[_0x545e15(0x2c3)]=_0x5fe652,this[_0x545e15(0x272)]=_0x513df9,this[_0x545e15(0x313)]=_0xf680a9,this[_0x545e15(0x2ad)]());}[_0x87bfbc(0x195)](){const _0x3e2ec4=_0x87bfbc;super['dispose'](),this[_0x3e2ec4(0x2f3)][_0x3e2ec4(0x344)](),this[_0x3e2ec4(0x1d8)][_0x3e2ec4(0x160)](_0x361b8e=>_0x361b8e['dispose']());}[_0x87bfbc(0x26f)](_0x155eb1){const _0x5dff03=_0x87bfbc;return this[_0x5dff03(0x1d8)]['has'](_0x155eb1)?this[_0x5dff03(0x1d8)]['get'](_0x155eb1)[_0x5dff03(0x105)]:this[_0x5dff03(0x2f3)]['pipe'](I[_0x5dff03(0x2a9)](_0x4b6b33=>_0x4b6b33[_0x5dff03(0xeb)]===_0x155eb1),I[_0x5dff03(0x28a)](_0x634f26=>_0x634f26['cursorInfo$']));}[_0x87bfbc(0x2ad)](){const _0x15bbcf=_0x87bfbc;this['_univerInstanceService'][_0x15bbcf(0x1e4)](a[_0x15bbcf(0x189)][_0x15bbcf(0x2be)])[_0x15bbcf(0x269)](I[_0x15bbcf(0x2b3)](this[_0x15bbcf(0x1c6)]))['subscribe'](async _0x49a16b=>{const _0x4617a5=_0x15bbcf,_0x2090ad=_0x49a16b['getUnitId'](),_0x3a808b=await this['_startSheetCollabCursor'](_0x2090ad);this[_0x4617a5(0x2f3)]['next'](_0x3a808b),this[_0x4617a5(0x1d8)][_0x4617a5(0x311)](_0x2090ad,_0x3a808b);}),this['_univerInstanceService'][_0x15bbcf(0x1e4)](a[_0x15bbcf(0x189)][_0x15bbcf(0x2d3)])['pipe'](I[_0x15bbcf(0x2b3)](this['dispose$']))[_0x15bbcf(0x269)](I[_0x15bbcf(0x2a9)](_0x2d3790=>!_0x2d3790[_0x15bbcf(0x1b1)]()[_0x15bbcf(0x226)]('__')))[_0x15bbcf(0x18f)](async _0x17ffb6=>{const _0x1eea47=_0x15bbcf,_0x3a840b=_0x17ffb6[_0x1eea47(0x1b1)](),_0x3697b2=await this[_0x1eea47(0xc2)](_0x3a840b);this[_0x1eea47(0x2f3)]['next'](_0x3697b2),this[_0x1eea47(0x1d8)][_0x1eea47(0x311)](_0x3a840b,_0x3697b2);}),I[_0x15bbcf(0x188)](this[_0x15bbcf(0x2c3)][_0x15bbcf(0x1c0)](a['UniverInstanceType'][_0x15bbcf(0x2d3)]),this[_0x15bbcf(0x2c3)][_0x15bbcf(0x1c0)](a[_0x15bbcf(0x189)][_0x15bbcf(0x2be)]))[_0x15bbcf(0x269)](I[_0x15bbcf(0x2b3)](this['dispose$']))[_0x15bbcf(0x18f)](_0x15651e=>{const _0x5e12c7=_0x15bbcf,_0x310673=_0x15651e[_0x5e12c7(0x1b1)](),_0x4c2d67=this[_0x5e12c7(0x1d8)]['get'](_0x310673);_0x4c2d67&&(_0x4c2d67[_0x5e12c7(0x195)](),this[_0x5e12c7(0x1d8)][_0x5e12c7(0x33d)](_0x310673));});}async[_0x87bfbc(0xc4)](_0x509626){const _0x66a05d=_0x87bfbc,_0x53e68d=await this[_0x66a05d(0x313)][_0x66a05d(0xe1)](_0x509626),_0x4c4dae=this[_0x66a05d(0x272)][_0x66a05d(0x287)](ve,_0x509626,_0x53e68d);return _0x4c4dae[_0x66a05d(0x102)](),_0x4c4dae;}async['_startDocCollabCursor'](_0x6d6684){const _0x2eef21=_0x87bfbc,_0xe4292=await this['_collabSessionService'][_0x2eef21(0xe1)](_0x6d6684),_0x258e4c=this[_0x2eef21(0x272)][_0x2eef21(0x287)](me,_0x6d6684,_0xe4292);return _0x258e4c[_0x2eef21(0x102)](),_0x258e4c;}};F=pt([ae(0x0,a[_0x87bfbc(0x1ee)]),ae(0x1,a[_0x87bfbc(0x1ec)](a['Injector'])),ae(0x2,a[_0x87bfbc(0x1ec)](u[_0x87bfbc(0x20d)]))],F);const K=0x14,Ne=0xc8,ce=0x4,Tt=0x5;function Ot(_0x437bb3,_0x7b7b8f){const _0x36663=_0x87bfbc;let {radius:_0x47c340,width:_0x13909d,height:_0x28e0d1}=_0x7b7b8f;_0x47c340=_0x47c340!=null?_0x47c340:0x0,_0x13909d=_0x13909d!=null?_0x13909d:0x1e,_0x28e0d1=_0x28e0d1!=null?_0x28e0d1:0x1e;let _0xfbeeac=0x0,_0xac8c1=0x0,_0x2e7171=0x0;_0xfbeeac=_0xac8c1=_0x2e7171=Math[_0x36663(0x36d)](_0x47c340,_0x13909d/0x2,_0x28e0d1/0x2),_0x437bb3[_0x36663(0x1ed)](),_0x437bb3[_0x36663(0x240)](_0xfbeeac,0x0),_0x437bb3[_0x36663(0xcf)](_0x13909d-_0xac8c1,0x0),_0x437bb3['arc'](_0x13909d-_0xac8c1,_0xac8c1,_0xac8c1,Math['PI']*0x3/0x2,0x0,!0x1),_0x437bb3['lineTo'](_0x13909d,_0x28e0d1-_0x2e7171),_0x437bb3['arc'](_0x13909d-_0x2e7171,_0x28e0d1-_0x2e7171,_0x2e7171,0x0,Math['PI']/0x2,!0x1),_0x437bb3['lineTo'](0x0,_0x28e0d1),_0x437bb3[_0x36663(0xcf)](0x0,_0xfbeeac),_0x437bb3[_0x36663(0x15b)](_0xfbeeac,_0xfbeeac,_0xfbeeac,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x437bb3['closePath'](),_0x7b7b8f[_0x36663(0x301)]&&(_0x437bb3[_0x36663(0x2bc)](),_0x437bb3[_0x36663(0x2f7)]=_0x7b7b8f[_0x36663(0x301)],_0x7b7b8f[_0x36663(0x12c)]===_0x36663(0x1e9)?_0x437bb3[_0x36663(0x301)](_0x36663(0x1e9)):_0x437bb3['fill'](),_0x437bb3[_0x36663(0x217)]());}class ne extends C[_0x87bfbc(0x147)]{constructor(_0x586314,_0x43a17b){const _0x441f06=_0x87bfbc;super(_0x586314,_0x43a17b),_(this,'color'),_(this,'text'),(this[_0x441f06(0x126)]=_0x43a17b==null?void 0x0:_0x43a17b[_0x441f06(0x126)],this['text']=_0x43a17b==null?void 0x0:_0x43a17b['text']);}static[_0x87bfbc(0x143)](_0x156522,_0x3f3ed3){const _0x2ae7df=_0x87bfbc,{text:_0x18f979,color:_0x497262}=_0x3f3ed3;_0x156522[_0x2ae7df(0x2bc)](),_0x156522[_0x2ae7df(0xc8)]=_0x2ae7df(0x270);const _0x291df7=_0x156522['measureText'](_0x18f979)[_0x2ae7df(0x110)],_0x2eb9bc=Math[_0x2ae7df(0x36d)](_0x291df7+0x2*ce,Ne);Ot(_0x156522,{'height':K,'radius':0x4,'width':_0x2eb9bc,'fill':_0x497262}),_0x156522['fillStyle']='#FFF';const _0x1a7798=ce,_0x4c2d73=K-Tt,_0x40f91b=Ne-0x2*ce;if(_0x291df7>_0x40f91b){let _0x191df6='',_0x597967=0x0;for(const _0x57f87d of _0x18f979){const _0x3d9a1f=_0x156522['measureText'](_0x57f87d)[_0x2ae7df(0x110)];if(_0x597967+_0x3d9a1f<=_0x40f91b-_0x156522['measureText'](_0x2ae7df(0x2c9))[_0x2ae7df(0x110)])_0x191df6+=_0x57f87d,_0x597967+=_0x3d9a1f;else{_0x191df6+=_0x2ae7df(0x2c9);break;}}_0x156522[_0x2ae7df(0x245)](_0x191df6,_0x1a7798,_0x4c2d73);}else _0x156522[_0x2ae7df(0x245)](_0x18f979,_0x1a7798,_0x4c2d73);_0x156522[_0x2ae7df(0x217)]();}[_0x87bfbc(0x264)](_0x56369d){const _0x3a9a42=_0x87bfbc;ne[_0x3a9a42(0x143)](_0x56369d,this);}}const le='collab-text-anchor-',Rt='collab-text-range-',bt='collab-rect-range-',H=0x6,Dt=1.5,_e=0x4,Nt=1.5,Ut=_0x87bfbc(0x30b);class Ue{constructor(_0x32ab74,_0x5cdc20,_0x2c68fa,_0x49c4b2){const _0x510350=_0x87bfbc;_(this,_0x510350(0x2cc),[]),_(this,'_anchor',null),_(this,'_textBubble',null),_(this,_0x510350(0x365),null),_(this,_0x510350(0x34a),null),_(this,'_eventUnsubscribe',null),(this[_0x510350(0x149)]=_0x32ab74,this[_0x510350(0x29c)]=_0x5cdc20,this['_docSkeleton']=_0x2c68fa,this[_0x510350(0x368)]=_0x49c4b2,this['_render']());}set['_hover'](_0x4220c1){const _0x2e59cd=_0x87bfbc;_0x4220c1?(this[_0x2e59cd(0x365)]&&this[_0x2e59cd(0x365)][_0x2e59cd(0x364)](),this[_0x2e59cd(0x10d)]&&this[_0x2e59cd(0x10d)][_0x2e59cd(0x13d)]()):(this[_0x2e59cd(0x365)]&&this[_0x2e59cd(0x365)][_0x2e59cd(0x13d)](),this[_0x2e59cd(0x10d)]&&this[_0x2e59cd(0x10d)][_0x2e59cd(0x364)]());}[_0x87bfbc(0x195)](){const _0x1586fe=_0x87bfbc;for(const _0x5a9d8d of this['_shapes'])_0x5a9d8d[_0x1586fe(0x195)]();this[_0x1586fe(0x10d)]&&this['_textBubble']['dispose'](),this[_0x1586fe(0x365)]&&this[_0x1586fe(0x365)][_0x1586fe(0x195)](),this[_0x1586fe(0x34b)]&&this['_anchor']['dispose'](),this[_0x1586fe(0x10c)]&&this[_0x1586fe(0x10c)]();}['_render'](){const _0xc50a58=_0x87bfbc;var _0x4114dc;const {_docSkeleton:_0x2651e9,_document:_0x2eecfe}=this,{color:_0x52a9de,name:_0x26c0b7,ranges:_0x56a723}=this[_0xc50a58(0x149)],_0xd80e16=_0x2eecfe['getOffsetConfig'](),{docsLeft:_0x32b019,docsTop:_0x5361df}=_0xd80e16,_0x5d971f=new p[(_0xc50a58(0x238))](_0xd80e16,_0x2651e9);for(const {startOffset:_0x457ce5,endOffset:_0x32b0cf,rangeType:_0x5cb30b,segmentId:_0x4cba7f,segmentPage:_0x449460,collapsed:_0x2fb1ec,isActive:_0x5f5622}of _0x56a723){const _0x5e22d0=_0x2651e9['findNodePositionByCharIndex'](_0x457ce5,!0x0,_0x4cba7f,_0x449460);let _0x524d8c=_0x2651e9['findNodePositionByCharIndex'](_0x32b0cf,!0x0,_0x4cba7f,_0x449460);if(_0x524d8c==null&&(_0x524d8c=_0x2651e9[_0xc50a58(0x2ab)](_0x32b0cf-0x1,!0x1,_0x4cba7f,_0x449460)),_0x5f5622){const {contentBoxPointGroup:_0x2acf6c}=_0x5d971f['getRangePointData'](_0x524d8c,_0x524d8c);if(_0x2acf6c['length']===0x0)continue;this[_0xc50a58(0x112)](_0x52a9de,_0x2acf6c,_0x32b019,_0x5361df,_0x26c0b7),this[_0xc50a58(0x10c)]=this[_0xc50a58(0x21c)]();}if(_0x5e22d0&&_0x524d8c){if(_0x5cb30b===a[_0xc50a58(0x16e)][_0xc50a58(0x16f)]){const _0x59fdcb=new p[(_0xc50a58(0x2e5))](_0xd80e16,_0x2651e9),{pointGroup:_0x373b64}=(_0x4114dc=_0x59fdcb['getRangePointData'](_0x5e22d0,_0x524d8c))!=null?_0x4114dc:{};if(_0x373b64==null||_0x373b64[_0xc50a58(0x2cb)]===0x0)continue;this[_0xc50a58(0x23e)](_0x52a9de,_0x373b64,_0x32b019,_0x5361df);}else{if(!_0x2fb1ec){const {borderBoxPointGroup:_0x1d97b3}=_0x5d971f[_0xc50a58(0x173)](_0x5e22d0,_0x524d8c);if(_0x1d97b3[_0xc50a58(0x2cb)]===0x0)continue;this[_0xc50a58(0x1ba)](_0x52a9de,_0x1d97b3,_0x32b019,_0x5361df);}}}}}[_0x87bfbc(0x112)](_0x4d6eaf,_0x5991a3,_0x1e1d3c,_0x514dcf,_0x2eb25f){const _0x5508a6=_0x87bfbc,_0x39fb82=this[_0x5508a6(0x337)](_0x5991a3),{left:_0x4782d7,top:_0x2c38ed,height:_0x58eeef}=_0x39fb82,_0x2670d8=this['_getScale'](),_0x8718e5=Nt/_0x2670d8,_0x45e8e3=new C[(_0x5508a6(0x1e3))](le+a[_0x5508a6(0x122)](H),{'left':_0x4782d7+_0x1e1d3c-_0x8718e5,'top':_0x2c38ed+_0x514dcf,'height':_0x58eeef,'width':Dt,'fill':_0x4d6eaf||C[_0x5508a6(0x22a)](a[_0x5508a6(0x2b5)]['black'],0x0),'strokeWidth':_0x8718e5,'stroke':Ut,'evented':!0x0});this[_0x5508a6(0x34b)]=_0x45e8e3,this[_0x5508a6(0x29c)][_0x5508a6(0x120)](_0x45e8e3,p[_0x5508a6(0x12d)]);const _0x10d718=new C[(_0x5508a6(0x1e3))](le+a['generateRandomId'](H),{'left':_0x4782d7+_0x1e1d3c-_0x8718e5,'top':_0x2c38ed+_0x514dcf-_e/0x2,'height':_e,'width':_e,'fill':_0x4d6eaf||C[_0x5508a6(0x22a)](a['COLORS'][_0x5508a6(0x1f2)],0x0),'strokeWidth':0x0,'stroke':_0x4d6eaf||C[_0x5508a6(0x22a)](a['COLORS'][_0x5508a6(0x1f2)],0x0),'evented':!0x1});this[_0x5508a6(0x365)]=_0x10d718,this[_0x5508a6(0x29c)][_0x5508a6(0x120)](_0x10d718,p['TEXT_RANGE_LAYER_INDEX']);const _0x1526f0=new ne(le+a['generateRandomId'](H),{'left':_0x4782d7+_0x1e1d3c-_0x8718e5,'top':_0x2c38ed+_0x514dcf-K,'text':_0x2eb25f,'color':_0x4d6eaf});this[_0x5508a6(0x10d)]=_0x1526f0,this['_scene'][_0x5508a6(0x120)](_0x1526f0,p[_0x5508a6(0x12d)]),this['_hover']=!0x1;}[_0x87bfbc(0x21c)](){const _0x32f71c=_0x87bfbc,_0x43a48e=this[_0x32f71c(0x34b)][_0x32f71c(0x17c)][_0x32f71c(0xe9)](()=>{const _0x2f075f=_0x32f71c;this[_0x2f075f(0x328)]=!0x0;}),_0x2512aa=this[_0x32f71c(0x34b)][_0x32f71c(0x26d)][_0x32f71c(0xe9)](()=>{const _0x3ec4b3=_0x32f71c;this['_hideTimer']&&clearTimeout(this[_0x3ec4b3(0x34a)]),this[_0x3ec4b3(0x34a)]=setTimeout(()=>{const _0x5e6e57=_0x3ec4b3;this[_0x5e6e57(0x328)]=!0x1;},0x7d0);});return()=>{const _0xf3f4a3=_0x32f71c;_0x43a48e[_0xf3f4a3(0xe4)](),_0x2512aa[_0xf3f4a3(0xe4)]();};}[_0x87bfbc(0x1ba)](_0x92991,_0x572983,_0x11999b,_0x4de783){const _0x3657e7=_0x87bfbc,_0x3f0917=new a[(_0x3657e7(0x268))](_0x92991)[_0x3657e7(0x17b)](0.2)['toRgbString'](),_0x68af48=new C[(_0x3657e7(0x199))](Rt+a[_0x3657e7(0x122)](H),{'pointsGroup':_0x572983,'fill':_0x3f0917||C['getColor'](a[_0x3657e7(0x2b5)][_0x3657e7(0x1f2)],0.2),'left':_0x11999b,'top':_0x4de783,'evented':!0x1,'debounceParentDirty':!0x1});this['_shapes'][_0x3657e7(0x1b8)](_0x68af48),this[_0x3657e7(0x29c)][_0x3657e7(0x120)](_0x68af48,p[_0x3657e7(0x12d)]);}[_0x87bfbc(0x23e)](_0x542b31,_0x133fd1,_0x299c8f,_0x34d018){const _0x2d4c96=_0x87bfbc,_0x4e23f1=new a['ColorKit'](_0x542b31)['setAlpha'](0.2)['toRgbString'](),_0x3c5a47=new C['RegularPolygon'](bt+a[_0x2d4c96(0x122)](H),{'pointsGroup':_0x133fd1,'fill':_0x4e23f1||C[_0x2d4c96(0x22a)](a['COLORS'][_0x2d4c96(0x1f2)],0.2),'left':_0x299c8f,'top':_0x34d018,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x2d4c96(0x2cc)][_0x2d4c96(0x1b8)](_0x3c5a47),this[_0x2d4c96(0x29c)][_0x2d4c96(0x120)](_0x3c5a47,p[_0x2d4c96(0x12d)]);}[_0x87bfbc(0x337)](_0x164b05){const _0x5a72ba=_0x164b05[0x0],_0x351f66=_0x5a72ba[0x0],_0x1f9ac=_0x5a72ba[0x2],{x:_0x4f5a5c,y:_0x4d87f8}=_0x351f66,{x:_0x5bf987,y:_0x354242}=_0x1f9ac;return{'left':_0x4f5a5c,'top':_0x4d87f8,'width':_0x5bf987-_0x4f5a5c,'height':_0x354242-_0x4d87f8};}['_getScale'](){const _0x1d1a4a=_0x87bfbc,{scaleX:_0x336ba0,scaleY:_0x5162a4}=this[_0x1d1a4a(0x29c)][_0x1d1a4a(0x31f)]();return Math['max'](_0x336ba0,_0x5162a4);}}var Lt=Object[_0x87bfbc(0x2ba)],Mt=(_0x51c9d,_0x440cbe,_0x197b75,_0xccb235)=>{const _0x4b22b3=_0x87bfbc;for(var _0x449e49=_0xccb235>0x1?void 0x0:_0xccb235?Lt(_0x440cbe,_0x197b75):_0x440cbe,_0x577acc=_0x51c9d[_0x4b22b3(0x2cb)]-0x1,_0x3a79b3;_0x577acc>=0x0;_0x577acc--)(_0x3a79b3=_0x51c9d[_0x577acc])&&(_0x449e49=_0x3a79b3(_0x449e49)||_0x449e49);return _0x449e49;},z=(_0x223b71,_0x5ca406)=>(_0x4f9805,_0x273eae)=>_0x5ca406(_0x4f9805,_0x273eae,_0x223b71);let ge=class extends a['RxDisposable']{constructor(_0x19231d,_0x267328,_0x43dcb2,_0x19a257,_0x399106){const _0x5e4b57=_0x87bfbc;super(),_(this,_0x5e4b57(0xca),[]),_(this,_0x5e4b57(0x11b),[]),(this[_0x5e4b57(0x187)]=_0x19231d,this[_0x5e4b57(0x131)]=_0x267328,this['_collabCursorController']=_0x43dcb2,this[_0x5e4b57(0x18b)]=_0x19a257,this['_themeService']=_0x399106,this[_0x5e4b57(0x2ad)]());}[_0x87bfbc(0x2ad)](){const _0x1a1403=_0x87bfbc,_0x5e790c=this[_0x1a1403(0x187)]['unitId'],_0x483594=this[_0x1a1403(0x131)];this[_0x1a1403(0x137)](I[_0x1a1403(0xcb)]([this['_collabCursorController'][_0x1a1403(0x26f)](_0x5e790c),this[_0x1a1403(0x32e)]['currentTheme$']])[_0x1a1403(0x269)]($[_0x1a1403(0x32c)](([_0x409ab5,_0x13f959])=>({'skeleton':_0x483594[_0x1a1403(0xd5)](),'cursors':[..._0x409ab5[_0x1a1403(0x141)]()]['flatMap'](_0x5284a4=>({..._0x5284a4,'color':this[_0x1a1403(0x32e)][_0x1a1403(0x2ee)](_0x5284a4[_0x1a1403(0x126)])}))})))[_0x1a1403(0x18f)](_0x374b16=>{const _0x2ab118=_0x1a1403;if(this[_0x2ab118(0x302)](),_0x374b16){const {skeleton:_0x15bf26,cursors:_0x56617f}=_0x374b16;this[_0x2ab118(0x369)](_0x15bf26,_0x56617f);}})),this[_0x1a1403(0x2c0)](),this[_0x1a1403(0x1e7)]();}[_0x87bfbc(0x369)](_0x2b7eae,_0x5c7317){const _0x31fcba=_0x87bfbc,{scene:_0x366b56,mainComponent:_0x8f0e81}=this[_0x31fcba(0x187)],_0x47e6d6=_0x5c7317[_0x31fcba(0x32c)](_0x28453b=>new Ue(_0x28453b,_0x366b56,_0x2b7eae,_0x8f0e81));this[_0x31fcba(0xca)]=_0x47e6d6,this[_0x31fcba(0x11b)]=_0x5c7317;}[_0x87bfbc(0x1f5)](){const _0x1f9d0a=_0x87bfbc;this[_0x1f9d0a(0x302)]();const {scene:_0x21420e,mainComponent:_0x49146b}=this['_context'],_0x1615cf=this['_docSkeletonManagerService'][_0x1f9d0a(0xd5)](),_0x4896a1=this['_cursors'][_0x1f9d0a(0x32c)](_0x239fd9=>new Ue(_0x239fd9,_0x21420e,_0x1615cf,_0x49146b));this[_0x1f9d0a(0xca)]=_0x4896a1;}[_0x87bfbc(0x302)](){const _0xb51d8b=_0x87bfbc;this[_0xb51d8b(0xca)][_0xb51d8b(0x160)](_0x528d8f=>_0x528d8f[_0xb51d8b(0x195)]()),this[_0xb51d8b(0xca)]=[];}[_0x87bfbc(0x1e7)](){const _0x3c7140=_0x87bfbc,_0x3c20f7=[p[_0x3c7140(0x26a)]['id']];this[_0x3c7140(0x137)](this[_0x3c7140(0x18b)][_0x3c7140(0x166)](_0x1b6254=>{const _0x1bbbd7=_0x3c7140;_0x3c20f7['includes'](_0x1b6254['id'])&&_0x1b6254[_0x1bbbd7(0x12b)][_0x1bbbd7(0x277)]===this['_context'][_0x1bbbd7(0x277)]&&this[_0x1bbbd7(0x1f5)]();}));}['_initResize'](){const _0xa868c3=_0x87bfbc;this[_0xa868c3(0x137)](a[_0xa868c3(0x248)](this['_context']['engine'][_0xa868c3(0x2e1)])[_0xa868c3(0x269)]($[_0xa868c3(0x2a9)](_0x134b0c=>_0x134b0c[_0xa868c3(0xce)]===C[_0xa868c3(0x366)]['resize']),$[_0xa868c3(0x116)](0x10))[_0xa868c3(0x18f)](()=>{this['_refreshCollabCursors']();}));}};ge=Mt([z(0x1,a[_0x87bfbc(0x1ec)](V[_0x87bfbc(0x159)])),z(0x2,a['Inject'](F)),z(0x3,a[_0x87bfbc(0xc7)]),z(0x4,a[_0x87bfbc(0x1ec)](a[_0x87bfbc(0x28f)]))],ge);const At=0x1,Pt=1.5;class Fe extends C['Shape']{constructor(_0x3ab4e7,_0x175dfa){const _0x5bf72a=_0x87bfbc;super(_0x3ab4e7,_0x175dfa),_(this,'_color'),_(this,'_hovered',!0x1),_(this,_0x5bf72a(0x24f)),_(this,_0x5bf72a(0x2b1),''),_(this,_0x5bf72a(0x1f9),_0x5bf72a(0x1c3)),_(this,_0x5bf72a(0x168)),(_0x175dfa&&this[_0x5bf72a(0xd2)](_0x175dfa),this['onPointerEnter$'][_0x5bf72a(0xe9)](()=>this[_0x5bf72a(0xd2)]({'hovered':!0x0})),this['onPointerLeave$']['subscribeEvent'](()=>this[_0x5bf72a(0xd2)]({'hovered':!0x1})));}[_0x87bfbc(0xd2)](_0x6b37a4){const _0x1438bc=_0x87bfbc;var _0x3b90c9,_0x3b0c15,_0x507e9e,_0x45d29e,_0x2f3eb7,_0x3293d3;this[_0x1438bc(0xbd)]=(_0x3b90c9=_0x6b37a4[_0x1438bc(0x126)])!=null?_0x3b90c9:this[_0x1438bc(0xbd)],this[_0x1438bc(0x32f)]=(_0x3b0c15=_0x6b37a4['hovered'])!=null?_0x3b0c15:this[_0x1438bc(0x32f)],this['_range']=(_0x507e9e=_0x6b37a4[_0x1438bc(0x132)])!=null?_0x507e9e:this[_0x1438bc(0x24f)],this['_name']=(_0x45d29e=_0x6b37a4[_0x1438bc(0x125)])!=null?_0x45d29e:this[_0x1438bc(0x2b1)],this[_0x1438bc(0x1f9)]=(_0x2f3eb7=_0x6b37a4['labelPosition'])!=null?_0x2f3eb7:this[_0x1438bc(0x1f9)],this[_0x1438bc(0x168)]=(_0x3293d3=_0x6b37a4[_0x1438bc(0x36a)])!=null?_0x3293d3:this[_0x1438bc(0x168)],this[_0x1438bc(0xfd)]({'width':_0x6b37a4[_0x1438bc(0x110)],'height':_0x6b37a4[_0x1438bc(0x1a5)]});}[_0x87bfbc(0x298)](_0x4e4cc6){const _0x21fc5e=_0x87bfbc,{row:_0x210a29,column:_0x3f06d0}=_0x4e4cc6;if(_0x210a29>=this[_0x21fc5e(0x24f)][_0x21fc5e(0x284)]&&_0x210a29<=this[_0x21fc5e(0x24f)][_0x21fc5e(0x144)]&&_0x3f06d0>=this[_0x21fc5e(0x24f)]['startColumn']&&_0x3f06d0<=this[_0x21fc5e(0x24f)][_0x21fc5e(0x289)]){this['setShapeProps']({'hovered':!0x0});return;}this[_0x21fc5e(0xd2)]({'hovered':!0x1});}[_0x87bfbc(0x10f)](_0x27db65){return!0x1;}['_draw'](_0x31a1a7){const _0x219f9b=_0x87bfbc;C[_0x219f9b(0x1e3)][_0x219f9b(0x143)](_0x31a1a7,{'width':this['width'],'height':this[_0x219f9b(0x1a5)],'strokeWidth':Pt,'stroke':this[_0x219f9b(0xbd)],'evented':!0x1,'fill':this[_0x219f9b(0x168)]}),this['_hovered']&&(_0x31a1a7[_0x219f9b(0x2bc)](),_0x31a1a7[_0x219f9b(0x23f)](0x1,0x0,0x0,0x1,this['width'],this[_0x219f9b(0x1f9)]===_0x219f9b(0x2f0)?0x0:-K),ne[_0x219f9b(0x143)](_0x31a1a7,{'text':this[_0x219f9b(0x2b1)],'color':this['_color']}),_0x31a1a7[_0x219f9b(0x217)]());}}var wt=Object[_0x87bfbc(0x2ba)],yt=(_0x4403d8,_0x5377b1,_0x473c76,_0x30d276)=>{const _0x38b96d=_0x87bfbc;for(var _0x1f826e=_0x30d276>0x1?void 0x0:_0x30d276?wt(_0x5377b1,_0x473c76):_0x5377b1,_0xdbb95e=_0x4403d8[_0x38b96d(0x2cb)]-0x1,_0x1f1e88;_0xdbb95e>=0x0;_0xdbb95e--)(_0x1f1e88=_0x4403d8[_0xdbb95e])&&(_0x1f826e=_0x1f1e88(_0x1f826e)||_0x1f826e);return _0x1f826e;},he=(_0x2b42a9,_0x5ab657)=>(_0x563c7e,_0x4ca668)=>_0x5ab657(_0x563c7e,_0x4ca668,_0x2b42a9);const xt=0x1389;let Ee=class extends a['RxDisposable']{constructor(_0x1e199b,_0x1734ae,_0x5812e7,_0x2d1422){const _0x1549ea=_0x87bfbc;super(),_(this,'_cursors',new Set()),_(this,_0x1549ea(0x175),null),(this['_context']=_0x1e199b,this[_0x1549ea(0x17e)]=_0x1734ae,this[_0x1549ea(0x2ce)]=_0x5812e7,this[_0x1549ea(0x32e)]=_0x2d1422,this[_0x1549ea(0x2ad)]());}[_0x87bfbc(0x2ad)](){const _0x42711b=_0x87bfbc;this[_0x42711b(0x17e)]['currentSkeleton$']['pipe']($['takeUntil'](this['dispose$']),$['switchMap'](_0x56d7da=>{const _0x38049f=_0x42711b;if(_0x56d7da){const _0x46754a=_0x56d7da[_0x38049f(0x27b)];return I[_0x38049f(0xcb)](this['_collabCursorController'][_0x38049f(0x26f)](this[_0x38049f(0x187)][_0x38049f(0x277)]),this[_0x38049f(0x32e)][_0x38049f(0x15d)])[_0x38049f(0x269)]($[_0x38049f(0x32c)](([_0x374ed5,_0x422a07])=>{const _0xa8a5f6=_0x38049f,_0x4d8513=new Map();return _0x374ed5[_0xa8a5f6(0x160)]((_0x1db915,_0x5eec60)=>{const _0x3fb4e4=_0xa8a5f6;if(_0x1db915[_0x3fb4e4(0x281)]===_0x46754a){const _0x103029={..._0x1db915};_0x103029[_0x3fb4e4(0x126)]=this['_themeService'][_0x3fb4e4(0x2ee)](_0x1db915[_0x3fb4e4(0x126)]),_0x4d8513[_0x3fb4e4(0x311)](_0x5eec60,_0x103029);}}),{'skeleton':_0x56d7da,'cursors':_0x4d8513};}));}return I['of']({'skeleton':null,'cursors':new Map()});}))[_0x42711b(0x18f)](({skeleton:_0x1b2296,cursors:_0x6d91fe})=>{const _0x2ccf6c=_0x42711b;this[_0x2ccf6c(0x302)](),_0x1b2296&&this[_0x2ccf6c(0x369)](_0x1b2296,_0x6d91fe);}),this[_0x42711b(0x17e)]['currentSkeleton$'][_0x42711b(0x18f)](_0x43aad7=>{const _0x3caae6=_0x42711b;if(_0x43aad7==null)return;const {skeleton:_0x594dea}=_0x43aad7,{scene:_0x2a60ae}=this['_context'];_0x2a60ae[_0x3caae6(0x2e7)]['subscribeEvent'](a[_0x3caae6(0xd6)](_0x174d9e=>{const _0x529c3a=_0x3caae6;var _0x4e494b,_0x24da5f;const {offsetX:_0x3ad5f9,offsetY:_0x5e01ad}=_0x174d9e,{x:_0x2347f8,y:_0x2dad4d}=_0x2a60ae[_0x529c3a(0x33a)](C[_0x529c3a(0x1a7)]['FromArray']([_0x3ad5f9,_0x5e01ad])),{scaleX:_0x48e42e,scaleY:_0x1764f6}=_0x2a60ae[_0x529c3a(0x31f)](),_0x24bf41=_0x2a60ae[_0x529c3a(0xc3)](C['SHEET_VIEWPORT_KEY']['VIEW_MAIN']),_0x3f27e8=_0x2a60ae[_0x529c3a(0x273)](C['Vector2']['FromArray']([_0x2347f8,_0x2dad4d]),_0x24bf41),_0x242d61=_0x594dea[_0x529c3a(0x29a)](_0x3ad5f9,_0x5e01ad,_0x48e42e,_0x1764f6,_0x3f27e8);((_0x4e494b=this[_0x529c3a(0x175)])==null?void 0x0:_0x4e494b[_0x529c3a(0x152)])===_0x242d61[_0x529c3a(0x152)]&&((_0x24da5f=this[_0x529c3a(0x175)])==null?void 0x0:_0x24da5f[_0x529c3a(0xea)])===_0x242d61['row']||this[_0x529c3a(0x11b)][_0x529c3a(0x160)](_0x42bc8d=>{const _0x1aca77=_0x529c3a;_0x42bc8d[_0x1aca77(0x298)](_0x242d61);});},0x64));});}[_0x87bfbc(0x369)](_0x1797e9,_0x32e552){const _0xc929bd=_0x87bfbc;var _0x4b2016;const _0x5cc02c=(_0x4b2016=this['_sheetSkeletonManagerService']['getCurrent']())==null?void 0x0:_0x4b2016[_0xc929bd(0x35e)];if(!_0x5cc02c)return;const _0x314115=this[_0xc929bd(0xbb)]();if(!_0x314115)return;this[_0xc929bd(0x11b)]['forEach'](_0x441d2c=>{_0x441d2c['makeDirty']();});const {scene:_0x216256}=_0x314115,_0x597e93=$t(Array['from'](_0x32e552[_0xc929bd(0x141)]()))[_0xc929bd(0x32c)](_0xc65cb7=>{const _0x4e7574=_0xc929bd,{color:_0x57a05c,range:_0x5a2562,name:_0x185c8e,selection:_0x215a17,sheetID:_0x4513ac}=_0xc65cb7,{startColumn:_0x319180,startRow:_0xc25ac0,endColumn:_0x1497c8,endRow:_0x392438}=_0x5a2562,_0x107d8=J['getCoordByCell'](_0xc25ac0,_0x319180,_0x216256,_0x5cc02c),_0x2acd57=J[_0x4e7574(0xbc)](_0x392438,_0x1497c8,_0x216256,_0x5cc02c),{columnHeaderHeightAndMarginTop:_0x5aac75}=_0x5cc02c,{startX:_0x1684ba,startY:_0x270355}=_0x107d8,{endX:_0x1c4de1,endY:_0x472d7c}=_0x2acd57,_0x54b8be=_0x1c4de1-_0x1684ba,_0x27ea05=_0x472d7c-_0x270355,_0x20e5d2={'labelPosition':_0x270355-_0x5aac75>=K?_0x4e7574(0x1c3):_0x4e7574(0x2f0),'sheetID':_0x4513ac,'range':_0x5a2562,'color':_0x57a05c,'name':_0x185c8e,'selection':_0x215a17,'left':_0x1684ba,'top':_0x270355,'width':_0x54b8be,'height':_0x27ea05,'evented':!0x1,'zIndex':xt};return new Fe(_0x185c8e,_0x20e5d2);});_0x216256['addObjects'](_0x597e93,At),this['_cursors']=new Set(_0x597e93);}[_0x87bfbc(0x302)](){const _0xb826ce=_0x87bfbc;var _0x2efa0e;(_0x2efa0e=this[_0xb826ce(0x11b)])==null||_0x2efa0e[_0xb826ce(0x160)](_0x142930=>_0x142930['dispose']());}[_0x87bfbc(0xbb)](){const _0x1ad1c3=_0x87bfbc;return J[_0x1ad1c3(0xed)](this[_0x1ad1c3(0x187)]['unit'],this[_0x1ad1c3(0x187)]);}};Ee=yt([he(0x1,a['Inject'](J[_0x87bfbc(0x1b4)])),he(0x2,a[_0x87bfbc(0x1ec)](F)),he(0x3,a['Inject'](a[_0x87bfbc(0x28f)]))],Ee);function $t(_0x4c1361){const _0x458590=_0x87bfbc,_0x483ce7=new Map();return _0x4c1361['forEach'](_0x367a72=>{const _0x625958=_0x369e;if(_0x483ce7[_0x625958(0x300)](_0x367a72[_0x625958(0x280)])){const _0x311b02=_0x483ce7['get'](_0x367a72[_0x625958(0x280)]);_0x311b02[_0x625958(0x125)]+=',\x20'+_0x367a72[_0x625958(0x125)];}else _0x483ce7[_0x625958(0x311)](_0x367a72[_0x625958(0x280)],_0x367a72);}),Array[_0x458590(0x26c)](_0x483ce7[_0x458590(0x141)]());}var Bt=Object['getOwnPropertyDescriptor'],Ft=(_0x276fd2,_0x3c52a1,_0x8ae428,_0x27589d)=>{const _0x1058ed=_0x87bfbc;for(var _0x14c235=_0x27589d>0x1?void 0x0:_0x27589d?Bt(_0x3c52a1,_0x8ae428):_0x3c52a1,_0x3ab91f=_0x276fd2[_0x1058ed(0x2cb)]-0x1,_0x295f65;_0x3ab91f>=0x0;_0x3ab91f--)(_0x295f65=_0x276fd2[_0x3ab91f])&&(_0x14c235=_0x295f65(_0x14c235)||_0x14c235);return _0x14c235;},x=(_0x5e8f9a,_0x189b16)=>(_0x534e0d,_0x4f8051)=>_0x189b16(_0x534e0d,_0x4f8051,_0x5e8f9a);let Z=class extends a['Disposable']{constructor(_0xc09f3,_0x462f6f,_0xcd0f4d,_0x5232e5,_0x91c477,_0x596102){const _0x36352e=_0x87bfbc;super(),this[_0x36352e(0x14b)]=_0xc09f3,this[_0x36352e(0x2f1)]=_0x462f6f,this[_0x36352e(0x104)]=_0xcd0f4d,this[_0x36352e(0x216)]=_0x5232e5,this[_0x36352e(0x30c)]=_0x91c477,this['_localeService']=_0x596102,this['_setupBeforeClosingHandler'](),this[_0x36352e(0xf9)]();}['_setupBeforeClosingHandler'](){const _0xd42fae=_0x87bfbc;this['disposeWithMe'](this[_0xd42fae(0x14b)][_0xd42fae(0x356)](()=>{const _0x171442=_0xd42fae;if(this[_0x171442(0x2f1)][_0x171442(0x1de)]['size'])return this[_0x171442(0x1cb)]['t'](_0x171442(0x128));}));}[_0x87bfbc(0xf9)](){const _0x504ac5=_0x87bfbc;this['disposeWithMe'](this[_0x504ac5(0x104)]['event$'][_0x504ac5(0x18f)](_0x55b06f=>{const _0x19ab90=_0x504ac5;_0x55b06f['id']===u[_0x19ab90(0xe0)][_0x19ab90(0x2da)]&&this[_0x19ab90(0x216)][_0x19ab90(0x13d)]({'type':T[_0x19ab90(0x17f)][_0x19ab90(0x266)],'content':this[_0x19ab90(0x1cb)]['t']('collaboration.single-unit.warning')}),_0x55b06f['id']===u[_0x19ab90(0xe0)]['CLOSE_ROOM']&&this[_0x19ab90(0x216)]['show']({'type':T[_0x19ab90(0x17f)][_0x19ab90(0x266)],'content':this[_0x19ab90(0x1cb)]['t'](_0x19ab90(0x29b))}),_0x55b06f['id']===u[_0x19ab90(0xe0)][_0x19ab90(0x1f7)]&&this[_0x19ab90(0x30c)][_0x19ab90(0x13d)]({'title':this[_0x19ab90(0x1cb)]['t'](_0x19ab90(0x18d)),'content':this[_0x19ab90(0x1cb)]['t']('permission.content'),'type':_0x19ab90(0x363),'duration':0x0}),_0x55b06f['id']===u[_0x19ab90(0xe0)][_0x19ab90(0xf7)]&&this[_0x19ab90(0x216)][_0x19ab90(0x13d)]({'type':T[_0x19ab90(0x17f)]['Error'],'content':this[_0x19ab90(0x1cb)]['t'](_0x19ab90(0x29b))+'('+_0x55b06f['data']+')'}),_0x55b06f['id']===u['CollaborationUIEventId'][_0x19ab90(0x2ef)]&&this['_messageService'][_0x19ab90(0x13d)]({'type':T['MessageType'][_0x19ab90(0x266)],'content':this[_0x19ab90(0x1cb)]['t'](_0x55b06f[_0x19ab90(0x203)]||'')}),_0x55b06f['id']===u[_0x19ab90(0xe0)][_0x19ab90(0x2c1)]&&this[_0x19ab90(0x216)]['show']({'type':T[_0x19ab90(0x17f)]['Warning'],'content':this[_0x19ab90(0x1cb)]['t'](_0x19ab90(0x358))}),_0x55b06f['id']===u[_0x19ab90(0xe0)][_0x19ab90(0xff)]&&this[_0x19ab90(0x216)][_0x19ab90(0x13d)]({'type':T[_0x19ab90(0x17f)][_0x19ab90(0x254)],'content':this[_0x19ab90(0x1cb)]['t'](_0x19ab90(0x206))}),_0x55b06f['id']===u['CollaborationUIEventId'][_0x19ab90(0x1d0)]&&this['_messageService'][_0x19ab90(0x13d)]({'type':T[_0x19ab90(0x17f)][_0x19ab90(0x254)],'content':this[_0x19ab90(0x1cb)]['t'](_0x19ab90(0x349))});}));}};Z=Ft([x(0x0,R[_0x87bfbc(0x190)]),x(0x1,u[_0x87bfbc(0x21b)]),x(0x2,a[_0x87bfbc(0x1ec)](u[_0x87bfbc(0xbe)])),x(0x3,R[_0x87bfbc(0x170)]),x(0x4,R[_0x87bfbc(0x222)]),x(0x5,a['Inject'](a['LocaleService']))],Z);const kt=_0x87bfbc(0x2ac),Le={};var jt=Object[_0x87bfbc(0x2ba)],Yt=(_0x2bd556,_0x2d8200,_0x2a6337,_0x1faded)=>{for(var _0x38054b=_0x1faded>0x1?void 0x0:_0x1faded?jt(_0x2d8200,_0x2a6337):_0x2d8200,_0x514f13=_0x2bd556['length']-0x1,_0x19584b;_0x514f13>=0x0;_0x514f13--)(_0x19584b=_0x2bd556[_0x514f13])&&(_0x38054b=_0x19584b(_0x38054b)||_0x38054b);return _0x38054b;},Me=(_0x4e0c1f,_0x71e96b)=>(_0x105f57,_0x1d369d)=>_0x71e96b(_0x105f57,_0x1d369d,_0x4e0c1f);let Q=class{constructor(_0x4837d8,_0x1a8c30){const _0x5b8dc7=_0x87bfbc;this[_0x5b8dc7(0x121)]=_0x4837d8,this[_0x5b8dc7(0x325)]=_0x1a8c30;}['transformIMECache'](_0x583078){const _0x20c0a9=_0x87bfbc;this[_0x20c0a9(0x2ca)](_0x583078),this[_0x20c0a9(0x15a)](_0x583078);}[_0x87bfbc(0x2f9)](_0x2fa1ec){const _0x557933=_0x87bfbc,{unitID:_0x546590}=_0x2fa1ec,_0x2a0a60=this[_0x557933(0x325)][_0x557933(0xc5)](_0x546590)[_0x557933(0x2c2)](p['DocIMEInputManagerService']),{redoCache:_0x1d1fd1}=_0x2a0a60['getUndoRedoMutationParamsCache']();if(_0x1d1fd1[_0x557933(0x2cb)]===0x0)return _0x2fa1ec;let _0x1bd934=a[_0x557933(0x1c1)]['deepClone'](_0x2fa1ec[_0x557933(0x2fe)][0x0]);for(let _0x157013=0x0;_0x157013<_0x1d1fd1[_0x557933(0x2cb)];_0x157013++){const _0x491f00={'id':_0x557933(0x338),'params':{..._0x1d1fd1[_0x157013]}},_0x4c13ec=this['_transformService'][_0x557933(0x1b6)](_0x1bd934,_0x491f00,!0x1);if(g[_0x557933(0x1c4)](_0x4c13ec))throw _0x4c13ec['error'];_0x1bd934=_0x4c13ec[_0x557933(0x326)];}return{...a[_0x557933(0x1c1)][_0x557933(0x162)](_0x2fa1ec),'mutations':[_0x1bd934]};}[_0x87bfbc(0x2ca)](_0x229940){const _0x52832a=_0x87bfbc,{unitID:_0x4a5e38}=_0x229940,_0x460507=this[_0x52832a(0x325)][_0x52832a(0xc5)](_0x4a5e38)[_0x52832a(0x2c2)](p[_0x52832a(0x18e)]),{undoCache:_0x428b66,redoCache:_0x228f23}=_0x460507['getUndoRedoMutationParamsCache']();if(_0x428b66[_0x52832a(0x2cb)]===0x0||_0x228f23[_0x52832a(0x2cb)]===0x0)return;const _0x3dae37=[],_0x480f10=[];let _0xa6dc47=a['Tools'][_0x52832a(0x162)](_0x229940['mutations'][0x0]),_0x396e79=a[_0x52832a(0x1c1)][_0x52832a(0x162)](_0x229940[_0x52832a(0x2fe)][0x0]);for(let _0x188fdd=_0x428b66[_0x52832a(0x2cb)]-0x1;_0x188fdd>=0x0;_0x188fdd--){const _0x1c4836={'id':_0x52832a(0x338),'params':{..._0x428b66[_0x188fdd]}},_0x37336f={'id':'doc.mutation.rich-text-editing','params':{..._0x228f23[_0x188fdd]}},_0x2ac2e4=this['_transformService'][_0x52832a(0x1b6)](_0xa6dc47,_0x1c4836,!0x1),_0x117520=this[_0x52832a(0x121)][_0x52832a(0x1b6)](_0x396e79,_0x37336f,!0x1);if(g[_0x52832a(0x1c4)](_0x2ac2e4))throw _0x2ac2e4['error'];if(g[_0x52832a(0x1c4)](_0x117520))throw _0x117520[_0x52832a(0x363)];_0x3dae37[_0x52832a(0x32b)](_0x2ac2e4[_0x52832a(0x249)][_0x52832a(0x12b)]),_0x480f10[_0x52832a(0x32b)](_0x117520['m2Prime'][_0x52832a(0x12b)]),_0xa6dc47=_0x2ac2e4[_0x52832a(0x326)],_0x396e79=_0x117520[_0x52832a(0x326)];}_0x460507['setUndoRedoMutationParamsCache']({'undoCache':_0x3dae37,'redoCache':_0x480f10});}[_0x87bfbc(0x15a)](_0x3553d4){const _0x4b1f18=_0x87bfbc,{unitID:_0x34f69a}=_0x3553d4,_0x31d07f=this['_renderManagerService'][_0x4b1f18(0xc5)](_0x34f69a)[_0x4b1f18(0x2c2)](p[_0x4b1f18(0x18e)]),_0x321087=_0x31d07f['getActiveRange']();if(_0x321087==null)return;const _0x11e41c=[{'id':_0x4b1f18(0x338),'params':{'unitId':_0x3553d4['unitID'],'actions':null,'textRanges':[_0x321087]}}],_0x364410=this[_0x4b1f18(0x121)][_0x4b1f18(0xdc)](_0x3553d4,_0x11e41c);if(!g[_0x4b1f18(0x115)](_0x364410))throw _0x364410[_0x4b1f18(0x363)];const _0x523bdb=_0x364410[_0x4b1f18(0x249)][0x0][_0x4b1f18(0x12b)][_0x4b1f18(0x30a)];Array['isArray'](_0x523bdb)&&_0x523bdb[_0x4b1f18(0x2cb)]&&_0x31d07f['setActiveRange'](_0x523bdb[0x0]);}};Q=Yt([Me(0x0,g[_0x87bfbc(0x1ab)]),Me(0x1,C[_0x87bfbc(0x2fc)])],Q);var Ht=Object[_0x87bfbc(0x2ba)],Wt=(_0x2ce1c1,_0x2db5b3,_0x367535,_0xed8dd6)=>{const _0x54bbb7=_0x87bfbc;for(var _0x1d912c=_0xed8dd6>0x1?void 0x0:_0xed8dd6?Ht(_0x2db5b3,_0x367535):_0x2db5b3,_0x239e1c=_0x2ce1c1[_0x54bbb7(0x2cb)]-0x1,_0x319d6b;_0x239e1c>=0x0;_0x239e1c--)(_0x319d6b=_0x2ce1c1[_0x239e1c])&&(_0x1d912c=_0x319d6b(_0x1d912c)||_0x1d912c);return _0x1d912c;},ue=(_0x962955,_0x466453)=>(_0x2fe4d2,_0x156869)=>_0x466453(_0x2fe4d2,_0x156869,_0x962955);let ee=class{constructor(_0x2639eb,_0x6fb5fa,_0x53604d){const _0x52fd74=_0x87bfbc;this[_0x52fd74(0x272)]=_0x2639eb,this['_transformService']=_0x6fb5fa,this[_0x52fd74(0x14a)]=_0x53604d;}[_0x87bfbc(0x207)](_0x586af4){this['_transformHistoryAndStateStack'](_0x586af4);}[_0x87bfbc(0x2f9)](_0x389421){const _0x19df22=_0x87bfbc,{unitID:_0xddd98d}=_0x389421,{collaboration:_0x4f7af2}=this[_0x19df22(0x14a)]['getStateCache'](_0xddd98d);if(_0x4f7af2[_0x19df22(0x2cb)]===0x0)return _0x389421;let _0x3460d8=a['Tools'][_0x19df22(0x162)](_0x389421[_0x19df22(0x2fe)][0x0]);for(let _0x3925e2=0x0;_0x3925e2<_0x4f7af2[_0x19df22(0x2cb)];_0x3925e2++){const _0x443c5a={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x4f7af2[_0x3925e2][_0x19df22(0x277)],..._0x4f7af2[_0x3925e2][_0x19df22(0x107)]}},_0x4489ee=this[_0x19df22(0x121)][_0x19df22(0x1b6)](_0x3460d8,_0x443c5a,!0x1);if(g['isTransformMutationFailure'](_0x4489ee))throw _0x4489ee[_0x19df22(0x363)];_0x3460d8=_0x4489ee['m1Prime'];}return{...a[_0x19df22(0x1c1)][_0x19df22(0x162)](_0x389421),'mutations':[_0x3460d8]};}[_0x87bfbc(0x319)](_0x21c01b){const _0x377566=_0x87bfbc,{unitID:_0x10cff5}=_0x21c01b,{history:_0x65ba79,collaboration:_0x3e7e44}=this[_0x377566(0x14a)]['getStateCache'](_0x10cff5);if(_0x65ba79[_0x377566(0x2cb)]===0x0&&_0x3e7e44[_0x377566(0x2cb)]===0x0)return;const _0x138da9=[],_0x295ad8=[];let _0x5991e2=a['Tools']['deepClone'](_0x21c01b[_0x377566(0x2fe)][0x0]),_0x1f668a=a['Tools'][_0x377566(0x162)](_0x21c01b[_0x377566(0x2fe)][0x0]);for(let _0x6b3e96=_0x65ba79[_0x377566(0x2cb)]-0x1;_0x6b3e96>=0x0;_0x6b3e96--){const _0x84c8f={'id':_0x377566(0x338),'params':{'unitId':_0x65ba79[_0x6b3e96][_0x377566(0x277)],..._0x65ba79[_0x6b3e96][_0x377566(0xfa)]}},_0x7107b7={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x65ba79[_0x6b3e96][_0x377566(0x277)],..._0x65ba79[_0x6b3e96]['redoState']}},_0x4b3935=this[_0x377566(0x121)][_0x377566(0x1b6)](_0x5991e2,_0x84c8f,!0x1),_0x205eca=this[_0x377566(0x121)][_0x377566(0x1b6)](_0x1f668a,_0x7107b7,!0x1);if(g[_0x377566(0x1c4)](_0x4b3935))throw _0x4b3935[_0x377566(0x363)];if(g[_0x377566(0x1c4)](_0x205eca))throw _0x205eca['error'];_0x138da9[_0x377566(0x32b)]({..._0x65ba79[_0x6b3e96],'undoState':_0x4b3935[_0x377566(0x249)][_0x377566(0x12b)],'redoState':_0x205eca['m2Prime']['params']}),_0x5991e2=_0x4b3935[_0x377566(0x326)],_0x1f668a=_0x205eca[_0x377566(0x326)];}_0x5991e2=a[_0x377566(0x1c1)][_0x377566(0x162)](_0x21c01b[_0x377566(0x2fe)][0x0]),_0x1f668a=a[_0x377566(0x1c1)]['deepClone'](_0x21c01b[_0x377566(0x2fe)][0x0]);for(let _0x24714c=_0x3e7e44[_0x377566(0x2cb)]-0x1;_0x24714c>=0x0;_0x24714c--){const _0x2bf7c5={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x3e7e44[_0x24714c]['unitId'],..._0x3e7e44[_0x24714c][_0x377566(0xfa)]}},_0x3531e8={'id':_0x377566(0x338),'params':{'unitId':_0x3e7e44[_0x24714c][_0x377566(0x277)],..._0x3e7e44[_0x24714c][_0x377566(0x107)]}},_0x1a43f6=this[_0x377566(0x121)][_0x377566(0x1b6)](_0x5991e2,_0x2bf7c5,!0x1),_0xfa5000=this['_transformService']['transformMutation'](_0x1f668a,_0x3531e8,!0x1);if(g[_0x377566(0x1c4)](_0x1a43f6))throw _0x1a43f6[_0x377566(0x363)];if(g[_0x377566(0x1c4)](_0xfa5000))throw _0xfa5000[_0x377566(0x363)];_0x295ad8[_0x377566(0x32b)]({..._0x3e7e44[_0x24714c],'undoState':_0x1a43f6[_0x377566(0x249)][_0x377566(0x12b)],'redoState':_0xfa5000['m2Prime'][_0x377566(0x12b)]}),_0x5991e2=_0x1a43f6[_0x377566(0x326)],_0x1f668a=_0xfa5000[_0x377566(0x326)];}this[_0x377566(0x14a)][_0x377566(0x1cf)](_0x10cff5,{'history':_0x138da9,'collaboration':_0x295ad8});}};ee=Wt([ue(0x0,a[_0x87bfbc(0x1ec)](a[_0x87bfbc(0x2d9)])),ue(0x1,g['ITransformService']),ue(0x2,a[_0x87bfbc(0x1ec)](p['DocStateChangeManagerService']))],ee);var Vt=Object['getOwnPropertyDescriptor'],Gt=(_0x4cac48,_0x4a31cb,_0x41f67b,_0x5669f8)=>{const _0x4aff58=_0x87bfbc;for(var _0x56613c=_0x5669f8>0x1?void 0x0:_0x5669f8?Vt(_0x4a31cb,_0x41f67b):_0x4a31cb,_0x1c3ead=_0x4cac48[_0x4aff58(0x2cb)]-0x1,_0x452bf1;_0x1c3ead>=0x0;_0x1c3ead--)(_0x452bf1=_0x4cac48[_0x1c3ead])&&(_0x56613c=_0x452bf1(_0x56613c)||_0x56613c);return _0x56613c;},Ae=(_0x8ad888,_0x5a0a36)=>(_0x732180,_0x26b80d)=>_0x5a0a36(_0x732180,_0x26b80d,_0x8ad888);let te=class{constructor(_0x20a1f9,_0x102c1e){this['_injector']=_0x20a1f9,this['_transformService']=_0x102c1e;}[_0x87bfbc(0x208)](_0x38c53c){const _0x542d54=_0x87bfbc;var _0x3e7ae6;const _0x164eab=this['_injector'][_0x542d54(0x14c)](V[_0x542d54(0x351)]),_0x31e8ae=(_0x3e7ae6=_0x164eab[_0x542d54(0x2e9)]())!=null?_0x3e7ae6:[];if(_0x31e8ae[_0x542d54(0x2cb)]===0x0)return;const _0x18adcf=_0x38c53c[_0x542d54(0xeb)],_0x3e45dd=[{'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x18adcf,'actions':null,'textRanges':_0x31e8ae}}],_0x35efd0=this['_transformService'][_0x542d54(0xdc)](_0x38c53c,_0x3e45dd);if(!g[_0x542d54(0x115)](_0x35efd0))throw _0x35efd0[_0x542d54(0x363)];const _0x196dc5=_0x35efd0['m2Prime'][0x0][_0x542d54(0x12b)][_0x542d54(0x30a)];Array[_0x542d54(0x370)](_0x196dc5)&&_0x196dc5[_0x542d54(0x2cb)]&&_0x164eab[_0x542d54(0xf8)](_0x196dc5,{'unitId':_0x18adcf,'subUnitId':_0x18adcf},!0x1);}};te=Gt([Ae(0x0,a[_0x87bfbc(0x1ec)](a[_0x87bfbc(0x2d9)])),Ae(0x1,g['ITransformService'])],te);var Xt=Object[_0x87bfbc(0x2ba)],Kt=(_0x8a9fd6,_0x5208cf,_0x395a2a,_0x1a2523)=>{const _0x3c7fd8=_0x87bfbc;for(var _0x32673d=_0x1a2523>0x1?void 0x0:_0x1a2523?Xt(_0x5208cf,_0x395a2a):_0x5208cf,_0x222ed7=_0x8a9fd6[_0x3c7fd8(0x2cb)]-0x1,_0xaf54d6;_0x222ed7>=0x0;_0x222ed7--)(_0xaf54d6=_0x8a9fd6[_0x222ed7])&&(_0x32673d=_0xaf54d6(_0x32673d)||_0x32673d);return _0x32673d;},U=(_0xf1956c,_0x3f7871)=>(_0x567485,_0x3e396c)=>_0x3f7871(_0x567485,_0x3e396c,_0xf1956c);let se=class extends a['Disposable']{constructor(_0x3d83f3,_0x13f564,_0x19d4ff,_0xc0970e,_0x3203a4,_0x1e4715,_0x47327d,_0x5d458c){const _0x468c72=_0x87bfbc;super(),_(this,_0x468c72(0x267),new I[(_0x468c72(0x163))](u[_0x468c72(0x138)][_0x468c72(0x230)])),(this[_0x468c72(0x14a)]=_0x3d83f3,this[_0x468c72(0x2fa)]=_0x13f564,this[_0x468c72(0x21e)]=_0x19d4ff,this[_0x468c72(0x156)]=_0xc0970e,this['_docTransformSelectionsService']=_0x3203a4,this[_0x468c72(0x13a)]=_0x1e4715,this[_0x468c72(0x216)]=_0x47327d,this[_0x468c72(0x1cb)]=_0x5d458c,this[_0x468c72(0x34d)]());}[_0x87bfbc(0x34d)](){const _0x47ad06=_0x87bfbc;this['disposeWithMe'](this['_collaborationController']['entityInit$'][_0x47ad06(0x18f)](_0x4e2a87=>{const _0x42a17a=_0x47ad06,_0x27a717=this[_0x42a17a(0x14a)]['docStateChange$'][_0x42a17a(0x18f)](_0x4bb8e9=>{const _0x35dba7=_0x42a17a;if(_0x4bb8e9==null)return;const {unitId:_0x336ad2,redoState:_0x230d9c,commandId:_0x373d37}=_0x4bb8e9;if(_0x336ad2!==_0x4e2a87[_0x35dba7(0xeb)])return;const _0x3859ed={'id':_0x373d37,'type':a['CommandType']['MUTATION'],'params':{'unitId':_0x336ad2,'actions':_0x230d9c['actions'],'textRanges':null}};_0x4e2a87[_0x35dba7(0x25f)](_0x3859ed);});if(_0x4e2a87[_0x42a17a(0x137)](_0x27a717),_0x4e2a87 instanceof u[_0x42a17a(0x315)]){const _0x1c2095={'onTransformIME':_0x3cad38=>this[_0x42a17a(0x21e)][_0x42a17a(0x1bc)](_0x3cad38),'onTransformState':_0x122853=>this['_docTransformStateCacheService'][_0x42a17a(0x207)](_0x122853),'onTransformSelections':_0x1e8e1f=>this['_docTransformSelectionsService'][_0x42a17a(0x208)](_0x1e8e1f),'onSyncEditingCollabCursor':_0x26702a=>this[_0x42a17a(0x13a)][_0x42a17a(0x35d)](_0x26702a),'onTransformRemoteChangesetByIMECache':_0x3582aa=>this[_0x42a17a(0x21e)][_0x42a17a(0x2f9)](_0x3582aa),'onTransformRemoteChangesetByStateCache':_0x52b1cf=>this[_0x42a17a(0x156)][_0x42a17a(0x2f9)](_0x52b1cf)};_0x4e2a87['addHandlerCallback'](_0x1c2095);}}));}};se=Kt([U(0x0,a[_0x87bfbc(0x1ec)](p[_0x87bfbc(0x290)])),U(0x1,a[_0x87bfbc(0x1ec)](u[_0x87bfbc(0x2c8)])),U(0x2,a[_0x87bfbc(0x1ec)](Q)),U(0x3,a['Inject'](ee)),U(0x4,a[_0x87bfbc(0x1ec)](te)),U(0x5,a[_0x87bfbc(0x1ec)](Re)),U(0x6,R['IMessageService']),U(0x7,a[_0x87bfbc(0x1ec)](a['LocaleService']))],se);var G=(_0x10a86b=>(_0x10a86b[_0x10a86b[_0x87bfbc(0xe5)]=0x0]=_0x87bfbc(0xe5),_0x10a86b[_0x10a86b['OK']=0x1]='OK',_0x10a86b[_0x10a86b['INTERNAL_ERROR']=0x2]=_0x87bfbc(0xef),_0x10a86b[_0x10a86b['PERMISSION_DENIED']=0x3]=_0x87bfbc(0x1f7),_0x10a86b[_0x10a86b[_0x87bfbc(0xd3)]=0x4]=_0x87bfbc(0xd3),_0x10a86b[_0x10a86b[_0x87bfbc(0x1fc)]=0x5]=_0x87bfbc(0x1fc),_0x10a86b[_0x10a86b[_0x87bfbc(0x171)]=0x6]=_0x87bfbc(0x171),_0x10a86b[_0x10a86b['INVALID_ARGUMENT']=0x7]='INVALID_ARGUMENT',_0x10a86b[_0x10a86b[_0x87bfbc(0x357)]=0x8]='TOO_MANY_REQUESTS',_0x10a86b[_0x10a86b['COMPLETION_FINISHED']=0x9]=_0x87bfbc(0x1ac),_0x10a86b[_0x10a86b[_0x87bfbc(0x2e6)]=0xa]='LOGIN_FAILED',_0x10a86b[_0x10a86b[_0x87bfbc(0x2f5)]=0xb]=_0x87bfbc(0x2f5),_0x10a86b[_0x10a86b['MOBILE_VERIFY_CODE_NOT_FOUND_OR_EXPIRED']=0xc]=_0x87bfbc(0x19a),_0x10a86b[_0x10a86b['EMAIL_VERIFY_CODE_MISMATCH']=0xd]='EMAIL_VERIFY_CODE_MISMATCH',_0x10a86b[_0x10a86b[_0x87bfbc(0x25a)]=0xe]=_0x87bfbc(0x25a),_0x10a86b[_0x10a86b[_0x87bfbc(0x310)]=0xf]=_0x87bfbc(0x310),_0x10a86b[_0x10a86b['LOGIN_TOKEN_PROCESSING_FAILED']=0x10]=_0x87bfbc(0x250),_0x10a86b[_0x10a86b[_0x87bfbc(0x227)]=0x64]=_0x87bfbc(0x227),_0x10a86b[_0x10a86b[_0x87bfbc(0x336)]=0x65]=_0x87bfbc(0x336),_0x10a86b[_0x10a86b[_0x87bfbc(0x1db)]=0xc9]=_0x87bfbc(0x1db),_0x10a86b[_0x10a86b[_0x87bfbc(0x1f4)]=0xca]=_0x87bfbc(0x1f4),_0x10a86b[_0x10a86b[_0x87bfbc(0x13e)]=0x1389]=_0x87bfbc(0x13e),_0x10a86b[_0x10a86b['SNAPSHOT_INVALID_SNAPSHOT']=0x1771]=_0x87bfbc(0x1e1),_0x10a86b[_0x10a86b[_0x87bfbc(0x27a)]=0x1772]='SNAPSHOT_HAS_BEEN_REMOVED',_0x10a86b[_0x10a86b[_0x87bfbc(0x1b9)]=0x1773]=_0x87bfbc(0x1b9),_0x10a86b[_0x10a86b[_0x87bfbc(0x339)]=0x1b59]=_0x87bfbc(0x339),_0x10a86b[_0x10a86b[_0x87bfbc(0x202)]=0x1b5a]='APPLY_NON_SEQUENTIAL_REVISION',_0x10a86b[_0x10a86b[_0x87bfbc(0x16a)]=0x1b5b]=_0x87bfbc(0x16a),_0x10a86b[_0x10a86b[_0x87bfbc(0x194)]=0x1b5c]=_0x87bfbc(0x194),_0x10a86b[_0x10a86b[_0x87bfbc(0x2a6)]=0x1b5d]='APPLY_DUPLICATED',_0x10a86b[_0x10a86b[_0x87bfbc(0x1d7)]=0x1f41]=_0x87bfbc(0x1d7),_0x10a86b[_0x10a86b[_0x87bfbc(0x25c)]=0x2329]='LICENSE_MAX_UNITS_EXCEEDED',_0x10a86b[_0x10a86b[_0x87bfbc(0x286)]=0x232a]=_0x87bfbc(0x286),_0x10a86b[_0x10a86b[_0x87bfbc(0x177)]=0x232b]='LICENSE_IMPORT_SIZE_EXCEEDED',_0x10a86b[_0x10a86b[_0x87bfbc(0x334)]=0x232c]='LICENSE_EXPORT_SIZE_EXCEEDED',_0x10a86b[_0x10a86b[_0x87bfbc(0xfc)]=0x232d]='LICENSE_DISTRO_REJECTED',_0x10a86b[_0x10a86b[_0x87bfbc(0x1cd)]=0x2711]=_0x87bfbc(0x1cd),_0x10a86b[_0x10a86b[_0x87bfbc(0x22e)]=0x2712]=_0x87bfbc(0x22e),_0x10a86b[_0x10a86b[_0x87bfbc(0xbf)]=0x2713]=_0x87bfbc(0xbf),_0x10a86b[_0x10a86b[_0x87bfbc(0x24d)]=0x2714]=_0x87bfbc(0x24d),_0x10a86b[_0x10a86b[_0x87bfbc(0x35f)]=0x271a]='YUUMI_NO_CUBOID_FOR_QUESTION',_0x10a86b[_0x10a86b['YUUMI_ASYNCIO_CANCELLED']=0x271b]='YUUMI_ASYNCIO_CANCELLED',_0x10a86b[_0x10a86b[_0x87bfbc(0x2f4)]=0x271c]=_0x87bfbc(0x2f4),_0x10a86b[_0x10a86b[_0x87bfbc(0x172)]=0x271d]=_0x87bfbc(0x172),_0x10a86b[_0x10a86b[_0x87bfbc(0x22f)]=0x271e]=_0x87bfbc(0x22f),_0x10a86b[_0x10a86b[_0x87bfbc(0x16d)]=0x271f]=_0x87bfbc(0x16d),_0x10a86b[_0x10a86b[_0x87bfbc(0x20a)]=0x2720]=_0x87bfbc(0x20a),_0x10a86b[_0x10a86b[_0x87bfbc(0xda)]=0x2af9]='PY_RUNTIME_SCRIPT_ERROR',_0x10a86b[_0x10a86b['INVITE_CODE_HAS_BEEN_UES']=0x2ee1]=_0x87bfbc(0x320),_0x10a86b[_0x10a86b[_0x87bfbc(0xc1)]=0x2ee2]='INVALID_INVITE_CODE',_0x10a86b[_0x10a86b[_0x87bfbc(0x25e)]=0x2ee3]=_0x87bfbc(0x25e),_0x10a86b[_0x10a86b[_0x87bfbc(0x117)]=0x2ee4]='USER_NOT_INVITED_CODE',_0x10a86b[_0x10a86b[_0x87bfbc(0x1d6)]=0x2ee5]=_0x87bfbc(0x1d6),_0x10a86b[_0x10a86b[_0x87bfbc(0x1a4)]=0x32c9]=_0x87bfbc(0x1a4),_0x10a86b[_0x10a86b[_0x87bfbc(0x34f)]=0x32ca]='MOBILE_HAS_BEEN_BOUND',_0x10a86b[_0x10a86b['EMAIL_HAS_BEEN_BOUND']=0x32cb]=_0x87bfbc(0x1ce),_0x10a86b[_0x10a86b[_0x87bfbc(0x183)]=0x36b1]=_0x87bfbc(0x183),_0x10a86b[_0x10a86b[_0x87bfbc(0x304)]=0x36b2]=_0x87bfbc(0x304),_0x10a86b[_0x10a86b[_0x87bfbc(0x318)]=0x36b3]='ENTITLE_DUP_SUBSCRIPTION',_0x10a86b[_0x10a86b['PAYMENT_CHANNEL_NOT_SUPPORT']=0x36b4]=_0x87bfbc(0x32a),_0x10a86b[_0x10a86b[_0x87bfbc(0x2a7)]=0x3715]=_0x87bfbc(0x2a7),_0x10a86b[_0x10a86b['ENTITLE_REPORT_LIMIT_EXCEED']=0x3716]=_0x87bfbc(0x1c8),_0x10a86b[_0x10a86b[_0x87bfbc(0x29f)]=0x37dd]=_0x87bfbc(0x29f),_0x10a86b[_0x10a86b[_0x87bfbc(0x24e)]=0x3a99]=_0x87bfbc(0x24e),_0x10a86b[_0x10a86b[_0x87bfbc(0x19f)]=0x3a9a]=_0x87bfbc(0x19f),_0x10a86b[_0x10a86b[_0x87bfbc(0x362)]=0x3a9b]=_0x87bfbc(0x362),_0x10a86b[_0x10a86b[_0x87bfbc(0xe8)]=0x3a9c]='REDEMPTION_CODE_NOT_STARTED',_0x10a86b[_0x10a86b['REDEMPTION_USER_NOT_ELIGIBLE']=0x3a9d]=_0x87bfbc(0x23c),_0x10a86b[_0x10a86b[_0x87bfbc(0x2c5)]=0x3a9e]=_0x87bfbc(0x2c5),_0x10a86b[_0x10a86b['REDEMPTION_CODE_HAS_BEEN_CREATED']=0x3a9f]=_0x87bfbc(0x12e),_0x10a86b[_0x10a86b['UNRECOGNIZED']=-0x1]='UNRECOGNIZED',_0x10a86b))(G||{});function qt(_0x285e19){const _0x137897=_0x87bfbc;var _0x58e59e,_0x5d29bc;const _0xac79ff=(_0x58e59e=_0x285e19[_0x137897(0x28c)])==null?void 0x0:_0x58e59e[_0x137897(0x224)],_0x17032c=((_0x5d29bc=_0x285e19['stageInfo'])==null?void 0x0:_0x5d29bc[_0x137897(0x1ff)])||0x0;return _0xac79ff===B[_0x137897(0x1a6)][_0x137897(0x2b2)]&&_0x17032c>0x0;}function zt(_0x81c309){const _0x570e62=_0x87bfbc;return _0x81c309['functionsExecutedState']===B[_0x570e62(0x2b0)][_0x570e62(0x253)];}var Jt=Object[_0x87bfbc(0x2ba)],Zt=(_0x59afa5,_0x32c508,_0x3813d5,_0x31dcff)=>{const _0xdf7e28=_0x87bfbc;for(var _0x4acf56=_0x31dcff>0x1?void 0x0:_0x31dcff?Jt(_0x32c508,_0x3813d5):_0x32c508,_0x3f1bca=_0x59afa5[_0xdf7e28(0x2cb)]-0x1,_0x4ab3ae;_0x3f1bca>=0x0;_0x3f1bca--)(_0x4ab3ae=_0x59afa5[_0x3f1bca])&&(_0x4acf56=_0x4ab3ae(_0x4acf56)||_0x4acf56);return _0x4acf56;},A=(_0x72b4d,_0x41a59d)=>(_0x2b80b9,_0x18345c)=>_0x41a59d(_0x2b80b9,_0x18345c,_0x72b4d);const Qt=_0x87bfbc(0x1cc),es=_0x87bfbc(0x1f6),ts=_0x87bfbc(0x327);let ie=class extends a['Disposable']{constructor(_0x3e3627,_0x3a5dea,_0x359e7b,_0x554553,_0x3fcb53,_0x587f62,_0x1d5de8){const _0x436f81=_0x87bfbc;super(),_(this,_0x436f81(0x2b7),null),_(this,'_maxFormulaLimit',0x0),_(this,_0x436f81(0x191),0x0),_(this,_0x436f81(0x108),[]),_(this,'_lastResponseTimestamp',0x0),(this[_0x436f81(0x216)]=_0x3e3627,this[_0x436f81(0x18b)]=_0x3a5dea,this['_configService']=_0x359e7b,this[_0x436f81(0x27d)]=_0x554553,this[_0x436f81(0x2c3)]=_0x3fcb53,this[_0x436f81(0x193)]=_0x587f62,this[_0x436f81(0x1cb)]=_0x1d5de8,this[_0x436f81(0x223)]());}['_initCommandInterceptor'](){const _0x470df1=_0x87bfbc;this['disposeWithMe'](this[_0x470df1(0x18b)][_0x470df1(0x332)]((_0x5297da,_0x5d0351)=>{const _0x42332f=_0x470df1;if(_0x5297da['id']!==B['SetFormulaCalculationStartMutation']['id'])return;const _0x123804=_0x5297da['params'];if(!this[_0x42332f(0x176)](_0x123804[_0x42332f(0xf4)]))return;if(!this[_0x42332f(0x258)]())throw this['_checkAndWaitForCalculationPermission'](_0x5297da,_0x5d0351),this[_0x42332f(0xe6)](),new a[(_0x42332f(0x2a0))]();})),this[_0x470df1(0x137)](this[_0x470df1(0x18b)]['onCommandExecuted']((_0x1486a0,_0x176ecc)=>{const _0x2f526e=_0x470df1;if(_0x1486a0['id']!==B[_0x2f526e(0x28e)]['id'])return;const _0x44e3b7=_0x1486a0[_0x2f526e(0x12b)];if(qt(_0x44e3b7)){const _0x1d9887=a[_0x2f526e(0x122)]();this[_0x2f526e(0x108)]['push'](_0x1d9887),this['_startCalculationLimit'](_0x1d9887);}else{if(zt(_0x44e3b7)&&this[_0x2f526e(0x108)][_0x2f526e(0x2cb)]>0x0){const _0x34a2d6=this['_taskIds'][_0x2f526e(0x1c5)]();this[_0x2f526e(0x15c)](_0x34a2d6);}}}));}[_0x87bfbc(0x195)](){const _0x141167=_0x87bfbc;super['dispose'](),this[_0x141167(0x2d1)](),this[_0x141167(0x108)]=[],this[_0x141167(0x191)]=0x0,this['_maxFormulaLimit']=0x0,this['_lastResponseTimestamp']=0x0;}async[_0x87bfbc(0xde)](_0x150dd7,_0xe0bc3){const _0xbf9f51=_0x87bfbc;for(let _0x587991=0x0;_0x587991<0x1e;_0x587991++)try{if(await this['_getFormulaLimitStatus'](),this[_0xbf9f51(0x258)]()){this[_0xbf9f51(0x140)](_0x150dd7,_0xe0bc3),this[_0xbf9f51(0x216)][_0xbf9f51(0x13d)]({'content':this[_0xbf9f51(0x1cb)]['t']('formula.calculation.started'),'type':T[_0xbf9f51(0x17f)][_0xbf9f51(0x2a1)]});return;}await new Promise(_0x4249df=>{const _0x388ed8=_0xbf9f51;this[_0x388ed8(0x2b7)]=window[_0x388ed8(0x211)](_0x4249df,0x3e8);});}catch(_0x19f1c4){this[_0xbf9f51(0x193)][_0xbf9f51(0x363)](_0x19f1c4);}this['_messageService'][_0xbf9f51(0x13d)]({'content':this[_0xbf9f51(0x1cb)]['t'](_0xbf9f51(0x20f)),'type':T['MessageType']['Error']});}['_applyCommand'](_0x3ad77a,_0x3a632e){const _0x487869=_0x87bfbc;try{this[_0x487869(0x18b)][_0x487869(0x186)](_0x3ad77a['id'],_0x3ad77a[_0x487869(0x12b)],_0x3a632e);}catch(_0x10f39d){this[_0x487869(0x193)][_0x487869(0x363)](_0x10f39d);}}[_0x87bfbc(0x1fd)](_0x47181b,_0x48fc19){const _0x69c749=_0x87bfbc;_0x48fc19<this['_lastResponseTimestamp']||(this['_lastResponseTimestamp']=_0x48fc19,this[_0x69c749(0x361)]=Number[_0x69c749(0x2ec)](_0x47181b['maxFormulaLimit']),this[_0x69c749(0x191)]=Number[_0x69c749(0x2ec)](_0x47181b[_0x69c749(0x18a)]));}async['_startCalculationLimit'](_0x1d947b){const _0x396e66=_0x87bfbc;var _0x442e41,_0x4214e3;const _0xd87c80=Date[_0x396e66(0x204)]();try{const _0x1a3995=((_0x442e41=this[_0x396e66(0x215)][_0x396e66(0x2b4)](u[_0x396e66(0x1c9)]))==null?void 0x0:_0x442e41['startFormulaLimitUrl'])||es,_0x373617=(await this['_httpService'][_0x396e66(0x236)](_0x1a3995,{'body':JSON[_0x396e66(0x2d8)]({'taskId':_0x1d947b})}))[_0x396e66(0x11e)];if(((_0x4214e3=_0x373617['error'])==null?void 0x0:_0x4214e3[_0x396e66(0x2d0)])!==G['OK'])return;this[_0x396e66(0x1fd)](_0x373617[_0x396e66(0x179)],_0xd87c80);}catch(_0x5cc50d){this[_0x396e66(0x193)][_0x396e66(0x363)](_0x5cc50d);}}async[_0x87bfbc(0x350)](_0x5ecce3){const _0x15bd69=_0x87bfbc;var _0x41feba,_0x4113b5;const _0x2bf310=Date[_0x15bd69(0x204)]();try{const _0x4476b6=((_0x41feba=this[_0x15bd69(0x215)][_0x15bd69(0x2b4)](u[_0x15bd69(0x1c9)]))==null?void 0x0:_0x41feba[_0x15bd69(0x278)])||Qt,_0x49c35a=_0x5ecce3?_0x4476b6+_0x15bd69(0x14f)+encodeURIComponent(_0x5ecce3):_0x4476b6,_0x1e5af2=(await this[_0x15bd69(0x27d)][_0x15bd69(0x14c)](_0x49c35a))[_0x15bd69(0x11e)];if(((_0x4113b5=_0x1e5af2[_0x15bd69(0x363)])==null?void 0x0:_0x4113b5[_0x15bd69(0x2d0)])!==G['OK'])return;this[_0x15bd69(0x1fd)](_0x1e5af2[_0x15bd69(0x179)],_0x2bf310);}catch(_0x400914){this[_0x15bd69(0x193)]['error'](_0x400914);}}async['_releaseCalculationLimit'](_0x159ef1){const _0x44bb62=_0x87bfbc;var _0x281315,_0xa855e3;const _0x21b974=Date[_0x44bb62(0x204)]();try{const _0x5d80bf=((_0x281315=this[_0x44bb62(0x215)]['getConfig'](u[_0x44bb62(0x1c9)]))==null?void 0x0:_0x281315['releaseFormulaLimitUrl'])||ts,_0x204c09=(await this['_httpService'][_0x44bb62(0x236)](_0x5d80bf,{'body':JSON[_0x44bb62(0x2d8)]({'taskId':_0x159ef1})}))[_0x44bb62(0x11e)];if(((_0xa855e3=_0x204c09[_0x44bb62(0x363)])==null?void 0x0:_0xa855e3[_0x44bb62(0x2d0)])!==G['OK'])return;this[_0x44bb62(0x1fd)](_0x204c09[_0x44bb62(0x179)],_0x21b974);}catch(_0xe1aa2f){this['_logService'][_0x44bb62(0x363)](_0xe1aa2f);}}[_0x87bfbc(0x258)](){const _0x48e6a3=_0x87bfbc;return this[_0x48e6a3(0x361)]===0x0?!0x0:this['_maxFormulaLimit']-this[_0x48e6a3(0x191)]>0x0;}[_0x87bfbc(0x2d1)](){const _0x7e43c=_0x87bfbc;this[_0x7e43c(0x2b7)]&&(clearTimeout(this[_0x7e43c(0x2b7)]),this[_0x7e43c(0x2b7)]=null);}[_0x87bfbc(0xe6)](){const _0x10336f=_0x87bfbc;this['_messageService']['show']({'content':this[_0x10336f(0x1cb)]['t'](_0x10336f(0x113)),'type':T['MessageType'][_0x10336f(0x21a)]});}[_0x87bfbc(0x176)](_0x50fe42){const _0x46c28c=_0x87bfbc;for(const _0x201fae of _0x50fe42){const {unitId:_0x3bab2a,sheetId:_0x22f390,range:_0x4cb5de}=_0x201fae,_0x569aca=this['_univerInstanceService'][_0x46c28c(0x295)](_0x3bab2a);if(!_0x569aca)continue;const _0x165ff6=_0x569aca[_0x46c28c(0x1a9)](_0x22f390);if(!_0x165ff6)continue;const _0x4f2dbe=_0x165ff6['getCellMatrix']();for(let _0x940b9b=_0x4cb5de['startRow'];_0x940b9b<=_0x4cb5de[_0x46c28c(0x144)];_0x940b9b++)for(let _0x3c3aa0=_0x4cb5de[_0x46c28c(0x276)];_0x3c3aa0<=_0x4cb5de['endColumn'];_0x3c3aa0++){const _0x521528=_0x4f2dbe[_0x46c28c(0x360)](_0x940b9b,_0x3c3aa0);if(_0x521528&&(a[_0x46c28c(0x27c)](_0x521528['f'])||a[_0x46c28c(0xc6)](_0x521528['si'])))return!0x0;}}return!0x1;}};ie=Zt([A(0x0,a[_0x87bfbc(0x1ec)](R[_0x87bfbc(0x170)])),A(0x1,a[_0x87bfbc(0xc7)]),A(0x2,a[_0x87bfbc(0x25b)]),A(0x3,a[_0x87bfbc(0x1ec)](X[_0x87bfbc(0x142)])),A(0x4,a[_0x87bfbc(0x1ee)]),A(0x5,a[_0x87bfbc(0x308)]),A(0x6,a[_0x87bfbc(0x1ec)](a[_0x87bfbc(0x322)]))],ie);var ss=Object[_0x87bfbc(0x2ba)],is=(_0x3c46d5,_0x480ec4,_0x68cd7c,_0x29ab94)=>{const _0x3729d3=_0x87bfbc;for(var _0x20e304=_0x29ab94>0x1?void 0x0:_0x29ab94?ss(_0x480ec4,_0x68cd7c):_0x480ec4,_0x3b1bc4=_0x3c46d5[_0x3729d3(0x2cb)]-0x1,_0x52d47f;_0x3b1bc4>=0x0;_0x3b1bc4--)(_0x52d47f=_0x3c46d5[_0x3b1bc4])&&(_0x20e304=_0x52d47f(_0x20e304)||_0x20e304);return _0x20e304;},Ie=(_0x108833,_0x205ee3)=>(_0x3b1424,_0x297ed5)=>_0x205ee3(_0x3b1424,_0x297ed5,_0x108833);let Ce=class extends a[_0x87bfbc(0x323)]{constructor(_0x36cf21,_0x2a2dee,_0x48d49f){const _0x45eccb=_0x87bfbc;super(),_(this,'_cachedData',new Map()),_(this,_0x45eccb(0x1ae),new Map()),_(this,_0x45eccb(0x341),!0x1),(this[_0x45eccb(0x215)]=_0x36cf21,this[_0x45eccb(0x161)]=_0x2a2dee,this[_0x45eccb(0x353)]=_0x48d49f);}[_0x87bfbc(0x19d)](){const _0x16c3a6=_0x87bfbc;this[_0x16c3a6(0x341)]=!0x0;}[_0x87bfbc(0x1d4)](){this['_disabled']=!0x1;}get['saveTaskMap'](){const _0x3e0616=_0x87bfbc;return this[_0x3e0616(0x1ae)];}['dispose'](){const _0x101d41=_0x87bfbc;this['exhaustSavingTask']()['then'](()=>super[_0x101d41(0x195)]());}async[_0x87bfbc(0xd7)](_0x513409){const _0x2eb912=_0x87bfbc;return this[_0x2eb912(0x341)]?null:this['_localStorageService']['getItem'](u[_0x2eb912(0x2de)](_0x513409));}async[_0x87bfbc(0x139)](_0x5b53f3,_0x20d668){const _0x4b99c5=_0x87bfbc;return!!this[_0x4b99c5(0x161)]['setItem'](_0x5b53f3,_0x20d668);}[_0x87bfbc(0x2f8)](_0x120cf8,_0x5bc308,_0x3674ab,_0x3f3517){const _0x200e37=_0x87bfbc,_0x1c4073=this[_0x200e37(0x353)][_0x200e37(0x101)](_0x120cf8);this['_cachedData']['set'](_0x120cf8,{'unitID':_0x120cf8,'type':_0x5bc308,'awaitingChangeset':_0x3674ab,'mutations':_0x3f3517,'rev':_0x1c4073}),this['_saveTaskMap'][_0x200e37(0x300)](_0x120cf8)||this[_0x200e37(0x333)](_0x120cf8);}[_0x87bfbc(0x333)](_0x4d35f3){const _0x51350c=_0x87bfbc,_0x1a6832=this[_0x51350c(0x299)]();_0x1a6832===0x0?this['_saveCache'](_0x4d35f3):this['_saveTaskMap'][_0x51350c(0x311)](_0x4d35f3,setTimeout(()=>this[_0x51350c(0x262)](_0x4d35f3),_0x1a6832));}[_0x87bfbc(0x299)](){const _0x54bb80=_0x87bfbc;var _0x4ae4d7;return(_0x4ae4d7=this['_configService']['getConfig'](u[_0x54bb80(0x31b)]))!=null?_0x4ae4d7:u[_0x54bb80(0x35c)];}[_0x87bfbc(0x262)](_0x4ea630){const _0x34d05e=_0x87bfbc,_0x355960=this[_0x34d05e(0x1ae)][_0x34d05e(0x14c)](_0x4ea630);return _0x355960!==void 0x0&&window[_0x34d05e(0x218)](_0x355960),this[_0x34d05e(0x161)]['setItem'](u[_0x34d05e(0x2de)](_0x4ea630),this['_cachedData'][_0x34d05e(0x14c)](_0x4ea630))[_0x34d05e(0x2bd)](()=>this[_0x34d05e(0x1ae)][_0x34d05e(0x33d)](_0x4ea630));}async[_0x87bfbc(0x1b2)](){const _0x4e2ffe=_0x87bfbc,_0x1ceeca=[];this['_saveTaskMap'][_0x4e2ffe(0x160)]((_0x1e7133,_0x372cc9)=>{const _0x5b911c=_0x4e2ffe;window[_0x5b911c(0x218)](_0x1e7133),_0x1ceeca[_0x5b911c(0x1b8)](this[_0x5b911c(0x262)](_0x372cc9)[_0x5b911c(0x2bd)](()=>{const _0x3e32bf=_0x5b911c;this['_saveTaskMap'][_0x3e32bf(0x33d)](_0x372cc9);}));}),await Promise[_0x4e2ffe(0x12a)](_0x1ceeca);}};Ce=is([Ie(0x0,a[_0x87bfbc(0x25b)]),Ie(0x1,a[_0x87bfbc(0x2ed)]),Ie(0x2,a[_0x87bfbc(0x1ec)](g['RevisionService']))],Ce);class ke extends a[_0x87bfbc(0x221)]{constructor(){const _0x544471=_0x87bfbc;super(),_(this,_0x544471(0x243)),this['urlChange$']=I[_0x544471(0x26b)](window,'popstate')[_0x544471(0x269)](I[_0x544471(0x2b3)](this['dispose$']),I[_0x544471(0x246)](0x1),I[_0x544471(0x1aa)](void 0x0));}[_0x87bfbc(0x293)](_0x364201,_0x49c133,_0x1cb62e=!0x1){const _0x46a4a6=_0x87bfbc,_0x8611cf=new URL(window[_0x46a4a6(0x29d)][_0x46a4a6(0x213)]);_0x8611cf[_0x46a4a6(0xb9)]['set'](_0x364201,_0x49c133),_0x1cb62e?window['history']['replaceState']('','',_0x8611cf[_0x46a4a6(0x15f)]()):window['history'][_0x46a4a6(0x11c)]('','',_0x8611cf[_0x46a4a6(0x15f)]());}['removeParam'](_0x41181f,_0x13a023=!0x1){const _0x1cb756=_0x87bfbc,_0x50637e=new URL(window[_0x1cb756(0x29d)]['href']);_0x50637e[_0x1cb756(0xb9)][_0x1cb756(0x33d)](_0x41181f),_0x13a023?window['history']['replaceState']('','',_0x50637e[_0x1cb756(0x15f)]()):window['history'][_0x1cb756(0x11c)]('','',_0x50637e[_0x1cb756(0x15f)]());}['getParam'](_0x589ba8){const _0x1caca7=_0x87bfbc;var _0x14da43;return(_0x14da43=new URL(window[_0x1caca7(0x29d)][_0x1caca7(0x213)])[_0x1caca7(0xb9)][_0x1caca7(0x14c)](_0x589ba8))!=null?_0x14da43:void 0x0;}}var ns=Object[_0x87bfbc(0x174)],rs=Object[_0x87bfbc(0x2ba)],os=(_0x1e6239,_0x3dad0f,_0x3756fd)=>_0x3dad0f in _0x1e6239?ns(_0x1e6239,_0x3dad0f,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x3756fd}):_0x1e6239[_0x3dad0f]=_0x3756fd,as=(_0x453d22,_0x5e5687,_0x56673f,_0xebef95)=>{const _0x2b2939=_0x87bfbc;for(var _0x325977=_0xebef95>0x1?void 0x0:_0xebef95?rs(_0x5e5687,_0x56673f):_0x5e5687,_0x33dc8e=_0x453d22[_0x2b2939(0x2cb)]-0x1,_0x3d0e90;_0x33dc8e>=0x0;_0x33dc8e--)(_0x3d0e90=_0x453d22[_0x33dc8e])&&(_0x325977=_0x3d0e90(_0x325977)||_0x325977);return _0x325977;},de=(_0x4a9c6e,_0x213161)=>(_0x3a3284,_0x2a70d7)=>_0x213161(_0x3a3284,_0x2a70d7,_0x4a9c6e),cs=(_0x238e22,_0x5e41b2,_0x47b316)=>os(_0x238e22,_0x5e41b2+'',_0x47b316);const ls='UNIVER_COLLABORATION_CLIENT_WEB_PLUGIN';exports['UniverCollaborationClientUIPlugin']=class extends a[_0x87bfbc(0x209)]{constructor(_0x10bc27=Le,_0x57fe89,_0xd9830d,_0x19303a){const _0x3f5560=_0x87bfbc;super(),this[_0x3f5560(0x296)]=_0x10bc27,this[_0x3f5560(0x325)]=_0x57fe89,this[_0x3f5560(0x272)]=_0xd9830d,this[_0x3f5560(0x215)]=_0x19303a;const {..._0x5cf45d}=a[_0x3f5560(0x188)]({},Le,this[_0x3f5560(0x296)]);this[_0x3f5560(0x215)][_0x3f5560(0x10a)](kt,_0x5cf45d);}[_0x87bfbc(0x231)](){const _0x4bcdd9=_0x87bfbc;this[_0x4bcdd9(0x1fa)](),this[_0x4bcdd9(0x133)]();}[_0x87bfbc(0x228)](){const _0x3ea2ad=_0x87bfbc;this[_0x3ea2ad(0x288)]();}[_0x87bfbc(0x1fa)](){const _0x42104f=_0x87bfbc;var _0x4b2b45;const _0xcf88e=[[Oe],[ie],[te],[Q],[ee],[Re],[Te,{'useClass':ke}],[X[_0x42104f(0x196)],{'useClass':X[_0x42104f(0x1c2)]}],[u[_0x42104f(0x21b)],{'useClass':Ce}],[exports[_0x42104f(0x297)]],[se],[Z],[F],[fe],[exports[_0x42104f(0x306)]]];a[_0x42104f(0x153)](this['_injector'],a[_0x42104f(0x321)](_0xcf88e,(_0x4b2b45=this[_0x42104f(0x296)])==null?void 0x0:_0x4b2b45[_0x42104f(0x109)]));}[_0x87bfbc(0x288)](){const _0x15aaa5=_0x87bfbc;this[_0x15aaa5(0x137)](this['_renderManagerService']['registerRenderModule'](a['UniverInstanceType'][_0x15aaa5(0x2d3)],[ge])),this[_0x15aaa5(0x137)](this['_renderManagerService']['registerRenderModule'](a[_0x15aaa5(0x189)][_0x15aaa5(0x2be)],[Ee]));}['_initDependencies'](){const _0x505849=_0x87bfbc;a[_0x505849(0x14d)](this[_0x505849(0x272)],[[F],[exports[_0x505849(0x297)]],[se],[Z],[exports['CollaborationDataLoaderController']],[ie]]);}},cs(exports[_0x87bfbc(0xfe)],_0x87bfbc(0x1df),ls),exports['UniverCollaborationClientUIPlugin']=as([a[_0x87bfbc(0x271)](u[_0x87bfbc(0x127)]),de(0x1,C['IRenderManagerService']),de(0x2,a['Inject'](a[_0x87bfbc(0x2d9)])),de(0x3,a[_0x87bfbc(0x25b)])],exports[_0x87bfbc(0xfe)]);var _s=Object[_0x87bfbc(0x2ba)],hs=(_0x4da0f7,_0x320a49,_0xbb3a62,_0xe5c719)=>{const _0x48503c=_0x87bfbc;for(var _0x59e4f5=_0xe5c719>0x1?void 0x0:_0xe5c719?_s(_0x320a49,_0xbb3a62):_0x320a49,_0x2cae43=_0x4da0f7[_0x48503c(0x2cb)]-0x1,_0x437ef5;_0x2cae43>=0x0;_0x2cae43--)(_0x437ef5=_0x4da0f7[_0x2cae43])&&(_0x59e4f5=_0x437ef5(_0x59e4f5)||_0x59e4f5);return _0x59e4f5;},W=(_0x1597a1,_0x159c39)=>(_0x462ab6,_0x382329)=>_0x159c39(_0x462ab6,_0x382329,_0x1597a1);exports[_0x87bfbc(0x294)]=class extends u[_0x87bfbc(0x32d)]{constructor(_0x742280,_0x5afde5,_0x3ba129,_0x359980,_0x532ab5){super(_0x742280,_0x5afde5,_0x3ba129,_0x359980,_0x532ab5);}async[_0x87bfbc(0xd0)](_0x3f892a){const _0xff0ab=_0x87bfbc,_0x52f7a2=await this['_getSessionTicket'](),_0x49a65d=this[_0xff0ab(0x198)](_0x3f892a,_0x52f7a2);return this[_0xff0ab(0x36f)](_0x49a65d);}['_createSocketURL'](_0x44177d,_0x379ae3){const _0x5dd044=_0x87bfbc,_0x33887d=typeof window>'u'?new URL(_0x44177d):new URL(_0x44177d,window[_0x5dd044(0x29d)][_0x5dd044(0x352)]);_0x33887d[_0x5dd044(0xb9)][_0x5dd044(0x311)](_0x5dd044(0x2ff),_0x379ae3);const _0x5d3aa3=typeof window>'u'?new URLSearchParams():new URLSearchParams(window[_0x5dd044(0x29d)][_0x5dd044(0x239)]);return _0x5d3aa3[_0x5dd044(0x14c)](_0x5dd044(0x1dd))&&_0x33887d[_0x5dd044(0xb9)][_0x5dd044(0x311)](_0x5dd044(0x1dd),_0x5d3aa3['get'](_0x5dd044(0x1dd))),_0x33887d[_0x5dd044(0x15f)]();}async[_0x87bfbc(0x1f8)](){const _0xfa3b73=_0x87bfbc;var _0x170c03,_0x1e9fcb,_0x2c6cae;const _0x4e95ec=this['_configService'][_0xfa3b73(0x2b4)](u[_0xfa3b73(0x1c9)]),_0x3ef82f=(_0x170c03=_0x4e95ec==null?void 0x0:_0x4e95ec[_0xfa3b73(0x1bb)])!=null?_0x170c03:u[_0xfa3b73(0x136)];return(_0x2c6cae=(_0x1e9fcb=(await this['_httpService'][_0xfa3b73(0x14c)](_0x3ef82f,{'headers':{'Content-Type':'application/json'}}))[_0xfa3b73(0x11e)])==null?void 0x0:_0x1e9fcb[_0xfa3b73(0xdd)])!=null?_0x2c6cae:'';}},exports[_0x87bfbc(0x294)]=hs([W(0x0,a[_0x87bfbc(0x1ec)](a[_0x87bfbc(0x2d9)])),W(0x1,a[_0x87bfbc(0x1ec)](X['HTTPService'])),W(0x2,a[_0x87bfbc(0x25b)]),W(0x3,a['ILogService']),W(0x4,g[_0x87bfbc(0x1bf)])],exports['BrowserCollaborationSocketService']);var us=Object[_0x87bfbc(0x2ba)],Is=(_0x6c11c2,_0x38a587,_0x4175c0,_0x4eef3f)=>{const _0x549743=_0x87bfbc;for(var _0x46b9d8=_0x4eef3f>0x1?void 0x0:_0x4eef3f?us(_0x38a587,_0x4175c0):_0x38a587,_0x237fe5=_0x6c11c2[_0x549743(0x2cb)]-0x1,_0xac015a;_0x237fe5>=0x0;_0x237fe5--)(_0xac015a=_0x6c11c2[_0x237fe5])&&(_0x46b9d8=_0xac015a(_0x46b9d8)||_0x46b9d8);return _0x46b9d8;},Se=(_0x40abdb,_0x26039b)=>(_0x1e3968,_0x2a33f2)=>_0x26039b(_0x1e3968,_0x2a33f2,_0x40abdb);exports[_0x87bfbc(0x275)]=class extends a[_0x87bfbc(0x323)]{constructor(_0x4226f9,_0x8f6fbf,_0x3ec6ef){const _0x115069=_0x87bfbc;super(),this[_0x115069(0x31d)]=_0x4226f9,this['_httpService']=_0x8f6fbf,this[_0x115069(0x215)]=_0x3ec6ef;}async[_0x87bfbc(0x1a1)](_0x492665,_0x24de4e,_0x295acf,..._0x4e41a0){const _0x144b58=_0x87bfbc;var _0x508531,_0x42f9a0,_0x3a92b9,_0x37b783;const _0x5b2fbe=this[_0x144b58(0x31d)]['getFocusedUnit']();if(!_0x5b2fbe)throw new Error('[RemoteUniscriptService]:\x20no\x20focused\x20unit');const _0x3b7cc0=((_0x508531=this[_0x144b58(0x215)]['getConfig'](u['REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY']))!=null?_0x508531:u[_0x144b58(0x34c)])+'/'+_0x492665+_0x144b58(0x2b8)+_0x24de4e,_0x1f420e=new URL(window[_0x144b58(0x29d)]['href']),_0x52ad6d={'scriptId':_0x492665,'runId':(_0x42f9a0=_0x1f420e[_0x144b58(0xb9)]['get'](_0x144b58(0x1dd)))!=null?_0x42f9a0:'','function':_0x24de4e,'unitId':_0x5b2fbe[_0x144b58(0x1b1)](),'argsOfFunction':JSON[_0x144b58(0x2d8)](_0x4e41a0),'invokeId':(_0x3a92b9=_0x295acf[_0x144b58(0x2e0)])!=null?_0x3a92b9:'','executionId':(_0x37b783=_0x295acf[_0x144b58(0x167)])!=null?_0x37b783:''};try{const _0x2a0817=await this[_0x144b58(0x27d)]['post'](_0x3b7cc0,{'body':_0x52ad6d});return _0x2a0817[_0x144b58(0x11e)]['error']&&_0x2a0817[_0x144b58(0x11e)][_0x144b58(0x363)][_0x144b58(0x2d0)]!==G['OK']?_0x144b58(0xe3):_0x2a0817[_0x144b58(0x11e)][_0x144b58(0x1d1)];}catch{return _0x144b58(0xe3);}}},exports[_0x87bfbc(0x275)]=Is([Se(0x0,a[_0x87bfbc(0x1ee)]),Se(0x1,a[_0x87bfbc(0x1ec)](X['HTTPService'])),Se(0x2,a['IConfigService'])],exports[_0x87bfbc(0x275)]);const Pe=0x7530,we='ACTIVE_UNIT_EVENT_CHANNEL';class ds extends a[_0x87bfbc(0x323)]{constructor(){const _0x168d32=_0x87bfbc;super(),_(this,'_id',a[_0x168d32(0x122)]()),_(this,_0x168d32(0x1e0),new Set()),_(this,'_unitOnClients',new Map()),_(this,_0x168d32(0x106),null),_(this,_0x168d32(0x234),new Map()),_(this,'_unitStatus',new Map()),this['_init']();}['dispose'](){const _0x14cf57=_0x87bfbc;super[_0x14cf57(0x195)](),this['_clearOtherTimers']['forEach']((_0x267a41,_0x18cf19)=>this[_0x14cf57(0x220)](_0x18cf19)),this['_heartbeatTimer']&&window['clearInterval'](this[_0x14cf57(0x106)]);}[_0x87bfbc(0x2fb)](_0x54e29d){const _0x40c063=_0x87bfbc;return this[_0x40c063(0x13b)](_0x54e29d)[_0x40c063(0x269)](I[_0x40c063(0x314)]());}[_0x87bfbc(0x335)](_0x45086f){const _0x33b76d=_0x87bfbc;this['_selfUnitIDs'][_0x33b76d(0x225)]===0x0&&this[_0x33b76d(0x2a8)](),this['_selfUnitIDs']['add'](_0x45086f),this['_send']({'type':0x0,'memberID':this[_0x33b76d(0x181)],'unitIDs':[_0x45086f],'isForwarded':!0x1});}[_0x87bfbc(0x34e)](_0x5eef46){const _0x1ebf80=_0x87bfbc;this[_0x1ebf80(0x1e0)]['delete'](_0x5eef46),this['_selfUnitIDs'][_0x1ebf80(0x225)]===0x0&&this['_heartbeatTimer']&&window['clearInterval'](this[_0x1ebf80(0x106)]);}['_init'](){const _0x5c6c63=_0x87bfbc;this[_0x5c6c63(0x137)](a[_0x5c6c63(0x30d)](I[_0x5c6c63(0x26b)](window,_0x5c6c63(0x2e4))[_0x5c6c63(0x18f)](_0x373d59=>{const _0x51435e=_0x5c6c63;if(_0x373d59[_0x51435e(0x1d2)]!==we||!_0x373d59['newValue'])return;const _0x191e2d=JSON['parse'](_0x373d59[_0x51435e(0x27e)]);this['_handleEvent'](_0x191e2d);}))),window[_0x5c6c63(0x247)](_0x5c6c63(0x31c),()=>this[_0x5c6c63(0x157)]({'type':0x1,'memberID':this[_0x5c6c63(0x181)],'unitIDs':Array[_0x5c6c63(0x26c)](this[_0x5c6c63(0x1e0)])}));}[_0x87bfbc(0x18c)](_0x10212f){const _0xc09ad3=_0x87bfbc;switch(_0x10212f[_0xc09ad3(0xce)]){case 0x0:this[_0xc09ad3(0x257)](_0x10212f);break;case 0x1:this[_0xc09ad3(0x103)](_0x10212f);break;case 0x2:this[_0xc09ad3(0x123)](_0x10212f);break;}}[_0x87bfbc(0x257)](_0x1378f0){const _0x3f4471=_0x87bfbc,{unitIDs:_0x4e1024,memberID:_0xd9242c,isForwarded:_0x161893}=_0x1378f0;_0x4e1024['forEach'](_0x4a3559=>{const _0x44201b=_0x369e;if(!_0x161893&&this[_0x44201b(0x2a4)][_0x44201b(0x300)](_0x4a3559)&&this['_ensureSubject'](_0x4a3559)[_0x44201b(0x2ae)](u[_0x44201b(0x2dd)][_0x44201b(0x1da)]),!this[_0x44201b(0x2a4)]['has'](_0x4a3559)||!this[_0x44201b(0x2a4)][_0x44201b(0x14c)](_0x4a3559)[_0x44201b(0x300)](_0xd9242c)){const _0x31b065=this['_unitOnClients'][_0x44201b(0x14c)](_0x4a3559)||new Set();_0x31b065[_0x44201b(0xd9)](_0xd9242c),this[_0x44201b(0x2a4)]['set'](_0x4a3559,_0x31b065),this[_0x44201b(0x13f)](_0xd9242c);}}),_0x161893||this['_send']({'type':0x0,'memberID':this['_id'],'unitIDs':[...this[_0x3f4471(0x1e0)]],'isForwarded':!0x0});}[_0x87bfbc(0x13f)](_0x422e9a){const _0x15a6df=_0x87bfbc;this[_0x15a6df(0x220)](_0x422e9a);const _0x42b1ea=window[_0x15a6df(0x211)](()=>{const _0x143eb9=_0x15a6df;this['_unitOnClients'][_0x143eb9(0x160)](_0x5c2cf9=>{const _0xcaf5cb=_0x143eb9;_0x5c2cf9[_0xcaf5cb(0x33d)](_0x422e9a);});},Pe*0x2);this[_0x15a6df(0x234)][_0x15a6df(0x311)](_0x422e9a,_0x42b1ea);}['_removeClearOtherTimer'](_0x584bff){const _0x3062fb=_0x87bfbc;if(this[_0x3062fb(0x234)][_0x3062fb(0x300)](_0x584bff)){const _0x2cd133=this[_0x3062fb(0x234)][_0x3062fb(0x14c)](_0x584bff);_0x2cd133&&window[_0x3062fb(0x218)](_0x2cd133),this[_0x3062fb(0x234)][_0x3062fb(0x311)](_0x584bff,null);}}[_0x87bfbc(0x103)](_0x5918e1){const _0x56e19f=_0x87bfbc,{memberID:_0x547f1d,unitIDs:_0x105b09}=_0x5918e1;_0x105b09[_0x56e19f(0x160)](_0x356284=>{const _0x2c4bd9=_0x56e19f;var _0x3aab3c;const _0x14d4b3=this[_0x2c4bd9(0x2a4)][_0x2c4bd9(0x14c)](_0x356284);_0x14d4b3&&(_0x14d4b3['delete'](_0x547f1d),(_0x3aab3c=this[_0x2c4bd9(0x13b)](_0x356284))==null||_0x3aab3c['next'](_0x14d4b3[_0x2c4bd9(0x225)]===0x0?u[_0x2c4bd9(0x2dd)][_0x2c4bd9(0x164)]:u['UnitStatus']['OTHER_CLIENTS_EDITING']));}),this[_0x56e19f(0x220)](_0x547f1d);}[_0x87bfbc(0x123)](_0x2e079f){const _0x1b9426=_0x87bfbc;this[_0x1b9426(0x13f)](_0x2e079f[_0x1b9426(0x261)]);}[_0x87bfbc(0x157)](_0x3f6750){const _0x235fba=_0x87bfbc;localStorage[_0x235fba(0xc9)](we,JSON['stringify'](_0x3f6750));}[_0x87bfbc(0x2a8)](){const _0x602e92=_0x87bfbc;this[_0x602e92(0x106)]=window[_0x602e92(0x14e)](()=>{const _0x46fd40=_0x602e92;this['_send']({'type':0x2,'memberID':this[_0x46fd40(0x181)]});},Pe);}['_ensureSubject'](_0x550cc6){const _0x553f48=_0x87bfbc;return this[_0x553f48(0x23a)][_0x553f48(0x300)](_0x550cc6)||this[_0x553f48(0x23a)][_0x553f48(0x311)](_0x550cc6,new I[(_0x553f48(0x163))](u[_0x553f48(0x2dd)][_0x553f48(0x164)])),this[_0x553f48(0x23a)]['get'](_0x550cc6);}}exports[_0x87bfbc(0x232)]=Te,exports['SheetCollabCursorShape']=Fe,exports[_0x87bfbc(0x244)]=ds,exports[_0x87bfbc(0x11a)]=ke;
|