@univerjs-pro/collaboration-client-ui 0.10.3-experimental.20250812-b4b6f1a → 0.10.3-nightly.202508121228

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.
Files changed (49) hide show
  1. package/lib/cjs/facade.js +1 -1
  2. package/lib/cjs/index.js +1 -1
  3. package/lib/cjs/locale/ca-ES.js +1 -1
  4. package/lib/cjs/locale/en-US.js +1 -1
  5. package/lib/cjs/locale/es-ES.js +1 -1
  6. package/lib/cjs/locale/fa-IR.js +1 -1
  7. package/lib/cjs/locale/fr-FR.js +1 -1
  8. package/lib/cjs/locale/ko-KR.js +1 -1
  9. package/lib/cjs/locale/ru-RU.js +1 -1
  10. package/lib/cjs/locale/vi-VN.js +1 -1
  11. package/lib/cjs/locale/zh-CN.js +1 -1
  12. package/lib/cjs/locale/zh-TW.js +1 -1
  13. package/lib/es/facade.js +1 -1
  14. package/lib/es/index.js +1 -1
  15. package/lib/es/locale/ca-ES.js +1 -1
  16. package/lib/es/locale/en-US.js +1 -1
  17. package/lib/es/locale/es-ES.js +1 -1
  18. package/lib/es/locale/fa-IR.js +1 -1
  19. package/lib/es/locale/fr-FR.js +1 -1
  20. package/lib/es/locale/ko-KR.js +1 -1
  21. package/lib/es/locale/ru-RU.js +1 -1
  22. package/lib/es/locale/vi-VN.js +1 -1
  23. package/lib/es/locale/zh-CN.js +1 -1
  24. package/lib/es/locale/zh-TW.js +1 -1
  25. package/lib/facade.js +1 -1
  26. package/lib/index.js +1 -1
  27. package/lib/locale/ca-ES.js +1 -1
  28. package/lib/locale/en-US.js +1 -1
  29. package/lib/locale/es-ES.js +1 -1
  30. package/lib/locale/fa-IR.js +1 -1
  31. package/lib/locale/fr-FR.js +1 -1
  32. package/lib/locale/ko-KR.js +1 -1
  33. package/lib/locale/ru-RU.js +1 -1
  34. package/lib/locale/vi-VN.js +1 -1
  35. package/lib/locale/zh-CN.js +1 -1
  36. package/lib/locale/zh-TW.js +1 -1
  37. package/lib/umd/facade.js +1 -1
  38. package/lib/umd/index.js +1 -1
  39. package/lib/umd/locale/ca-ES.js +1 -1
  40. package/lib/umd/locale/en-US.js +1 -1
  41. package/lib/umd/locale/es-ES.js +1 -1
  42. package/lib/umd/locale/fa-IR.js +1 -1
  43. package/lib/umd/locale/fr-FR.js +1 -1
  44. package/lib/umd/locale/ko-KR.js +1 -1
  45. package/lib/umd/locale/ru-RU.js +1 -1
  46. package/lib/umd/locale/vi-VN.js +1 -1
  47. package/lib/umd/locale/zh-CN.js +1 -1
  48. package/lib/umd/locale/zh-TW.js +1 -1
  49. package/package.json +15 -15
package/lib/cjs/facade.js CHANGED
@@ -1 +1 @@
1
- 'use strict';function _0x2ff3(){const _0x455feb=['RemoteUniscriptService','3309048jfTcaY','110922ChfnNp','FUniver','extend','runOnServer','4dKbLWU','2481795kNKXKW','9CZXQUR','1591990NHTUYv','619226HFKFky','1440984TJEqvp','_injector','1493403Rtxwgs','72zIJNsA'];_0x2ff3=function(){return _0x455feb;};return _0x2ff3();}const _0x29197f=_0x1cb9;(function(_0x224308,_0x566d98){const _0x4376c7=_0x1cb9,_0x36a2dd=_0x224308();while(!![]){try{const _0x2c3229=parseInt(_0x4376c7(0x16a))/0x1+-parseInt(_0x4376c7(0x15c))/0x2+-parseInt(_0x4376c7(0x15e))/0x3*(parseInt(_0x4376c7(0x166))/0x4)+parseInt(_0x4376c7(0x167))/0x5+parseInt(_0x4376c7(0x161))/0x6+-parseInt(_0x4376c7(0x162))/0x7*(-parseInt(_0x4376c7(0x15f))/0x8)+-parseInt(_0x4376c7(0x168))/0x9*(parseInt(_0x4376c7(0x169))/0xa);if(_0x2c3229===_0x566d98)break;else _0x36a2dd['push'](_0x36a2dd['shift']());}catch(_0x351409){_0x36a2dd['push'](_0x36a2dd['shift']());}}}(_0x2ff3,0x69857));function _0x1cb9(_0x3733b1,_0x437095){const _0x2ff387=_0x2ff3();return _0x1cb9=function(_0x1cb93a,_0x33978b){_0x1cb93a=_0x1cb93a-0x15c;let _0x2db559=_0x2ff387[_0x1cb93a];return _0x2db559;},_0x1cb9(_0x3733b1,_0x437095);}const t=require('@univerjs-pro/collaboration-client-ui'),e=require('@univerjs/core/facade');class c extends e['FUniver']{[_0x29197f(0x165)](_0x19a3c7,_0x4248c7,..._0x369309){const _0x1a62a0=_0x29197f;return this[_0x1a62a0(0x15d)]['get'](t[_0x1a62a0(0x160)])[_0x1a62a0(0x165)](_0x19a3c7,_0x4248c7,{},..._0x369309);}}e[_0x29197f(0x163)][_0x29197f(0x164)](c);
1
+ 'use strict';function _0x2b2b(){const _0x1fbbad=['387516lCiqUa','1632FHOask','_injector','367616hdftqX','runOnServer','405513qixMdR','14AeNBbx','199BIsTrb','9714wzZNor','567815tLbJCv','FUniver','1172136lVGlKF'];_0x2b2b=function(){return _0x1fbbad;};return _0x2b2b();}function _0x3341(_0x26b9e6,_0x36c28b){const _0x2b2beb=_0x2b2b();return _0x3341=function(_0x334164,_0x288218){_0x334164=_0x334164-0x1d3;let _0x37f1f5=_0x2b2beb[_0x334164];return _0x37f1f5;},_0x3341(_0x26b9e6,_0x36c28b);}const _0x425a05=_0x3341;(function(_0x1505d4,_0x64cacb){const _0x397367=_0x3341,_0x2c5277=_0x1505d4();while(!![]){try{const _0x1f3a80=-parseInt(_0x397367(0x1dc))/0x1*(parseInt(_0x397367(0x1d6))/0x2)+parseInt(_0x397367(0x1dd))/0x3+parseInt(_0x397367(0x1d5))/0x4+parseInt(_0x397367(0x1de))/0x5+parseInt(_0x397367(0x1d4))/0x6+-parseInt(_0x397367(0x1db))/0x7*(parseInt(_0x397367(0x1d8))/0x8)+-parseInt(_0x397367(0x1da))/0x9;if(_0x1f3a80===_0x64cacb)break;else _0x2c5277['push'](_0x2c5277['shift']());}catch(_0x5c8379){_0x2c5277['push'](_0x2c5277['shift']());}}}(_0x2b2b,0x1ac7b));const t=require('@univerjs-pro/collaboration-client-ui'),e=require('@univerjs/core/facade');class c extends e['FUniver']{[_0x425a05(0x1d9)](_0x596783,_0x15a180,..._0x12a4a3){const _0x4b91fa=_0x425a05;return this[_0x4b91fa(0x1d7)]['get'](t['RemoteUniscriptService'])['runOnServer'](_0x596783,_0x15a180,{},..._0x12a4a3);}}e[_0x425a05(0x1d3)]['extend'](c);
package/lib/cjs/index.js CHANGED
@@ -1 +1 @@
1
- 'use strict';const _0xa70a6a=_0x1cff;(function(_0x98cec7,_0xfc551c){const _0x701a5c=_0x1cff,_0x204fcb=_0x98cec7();while(!![]){try{const _0x3b7bb7=parseInt(_0x701a5c(0x2a6))/0x1*(-parseInt(_0x701a5c(0x393))/0x2)+parseInt(_0x701a5c(0x3aa))/0x3*(-parseInt(_0x701a5c(0x39b))/0x4)+parseInt(_0x701a5c(0x1bb))/0x5*(-parseInt(_0x701a5c(0x2e4))/0x6)+parseInt(_0x701a5c(0x255))/0x7*(parseInt(_0x701a5c(0x3bb))/0x8)+-parseInt(_0x701a5c(0x38a))/0x9*(parseInt(_0x701a5c(0x3b2))/0xa)+parseInt(_0x701a5c(0x229))/0xb*(parseInt(_0x701a5c(0x381))/0xc)+parseInt(_0x701a5c(0x3b8))/0xd;if(_0x3b7bb7===_0xfc551c)break;else _0x204fcb['push'](_0x204fcb['shift']());}catch(_0x4f0456){_0x204fcb['push'](_0x204fcb['shift']());}}}(_0x287c,0xb9f67));var We=Object['defineProperty'],Ve=(_0x5a20ca,_0x23b984,_0x3f8ab9)=>_0x23b984 in _0x5a20ca?We(_0x5a20ca,_0x23b984,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x3f8ab9}):_0x5a20ca[_0x23b984]=_0x3f8ab9,h=(_0x170ebf,_0x2d262a,_0x5b659d)=>Ve(_0x170ebf,typeof _0x2d262a!=_0xa70a6a(0x327)?_0x2d262a+'':_0x2d262a,_0x5b659d);Object['defineProperty'](exports,Symbol[_0xa70a6a(0x22b)],{'value':_0xa70a6a(0x26a)});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 _0x41d7b0=_0xa70a6a;return b=Object['assign']||function(_0x163a00){const _0x3fffce=_0x1cff;for(var _0x3ae217,_0x3aa58d=0x1,_0x207e50=arguments[_0x3fffce(0x154)];_0x3aa58d<_0x207e50;_0x3aa58d++){_0x3ae217=arguments[_0x3aa58d];for(var _0x24b100 in _0x3ae217)Object['prototype'][_0x3fffce(0x396)]['call'](_0x3ae217,_0x24b100)&&(_0x163a00[_0x24b100]=_0x3ae217[_0x24b100]);}return _0x163a00;},b[_0x41d7b0(0x1aa)](this,arguments);},Ke=function(_0x1c96db,_0xba18da){const _0x31e4fe=_0xa70a6a;var _0x5a23bd={};for(var _0x2facb6 in _0x1c96db)Object[_0x31e4fe(0x18a)][_0x31e4fe(0x396)]['call'](_0x1c96db,_0x2facb6)&&_0xba18da[_0x31e4fe(0x308)](_0x2facb6)<0x0&&(_0x5a23bd[_0x2facb6]=_0x1c96db[_0x2facb6]);if(_0x1c96db!=null&&typeof Object[_0x31e4fe(0x263)]==_0x31e4fe(0x1c5)){for(var _0x34742c=0x0,_0x2facb6=Object[_0x31e4fe(0x263)](_0x1c96db);_0x34742c<_0x2facb6['length'];_0x34742c++)_0xba18da[_0x31e4fe(0x308)](_0x2facb6[_0x34742c])<0x0&&Object[_0x31e4fe(0x18a)][_0x31e4fe(0x23a)][_0x31e4fe(0x27d)](_0x1c96db,_0x2facb6[_0x34742c])&&(_0x5a23bd[_0x2facb6[_0x34742c]]=_0x1c96db[_0x2facb6[_0x34742c]]);}return _0x5a23bd;},ge=M['forwardRef'](function(_0x134623,_0x4747e5){const _0x3bef61=_0xa70a6a;var _0x548c59=_0x134623[_0x3bef61(0x201)],_0x3ab801=_0x134623['id'],_0x19d9a8=_0x134623[_0x3bef61(0x2a9)],_0x13979b=_0x134623['extend'],_0x4184a3=Ke(_0x134623,['icon','id',_0x3bef61(0x2a9),_0x3bef61(0x299)]),_0x1b8a69='univerjs-icon\x20univerjs-icon-'[_0x3bef61(0x277)](_0x3ab801,'\x20')[_0x3bef61(0x277)](_0x19d9a8||'')[_0x3bef61(0x334)](),_0x303e2e=M[_0x3bef61(0x2b1)]('_'[_0x3bef61(0x277)](Je()));return Pe(_0x548c59,''[_0x3bef61(0x277)](_0x3ab801),{'defIds':_0x548c59[_0x3bef61(0x1e2)],'idSuffix':_0x303e2e[_0x3bef61(0x3a4)]},b({'ref':_0x4747e5,'className':_0x1b8a69},_0x4184a3),_0x13979b);});function Pe(_0x20e925,_0x2892eb,_0x134240,_0x270d42,_0x4ccda4){const _0x1eb7ce=_0xa70a6a;return M[_0x1eb7ce(0x36a)](_0x20e925['tag'],b(b({'key':_0x2892eb},qe(_0x20e925,_0x134240,_0x4ccda4)),_0x270d42),(ze(_0x20e925,_0x134240)[_0x1eb7ce(0x3c1)]||[])[_0x1eb7ce(0x186)](function(_0x40d261,_0x3834ee){const _0x1a9dcf=_0x1eb7ce;return Pe(_0x40d261,''[_0x1a9dcf(0x277)](_0x2892eb,'-')[_0x1a9dcf(0x277)](_0x20e925[_0x1a9dcf(0x2f5)],'-')['concat'](_0x3834ee),_0x134240,void 0x0,_0x4ccda4);}));}function qe(_0x14d4d2,_0x1764c3,_0x4529a7){const _0x57034d=_0xa70a6a;var _0x117003=b({},_0x14d4d2[_0x57034d(0x19d)]);_0x4529a7!=null&&_0x4529a7[_0x57034d(0x17f)]&&_0x117003[_0x57034d(0x25b)]==='colorChannel1'&&(_0x117003['fill']=_0x4529a7[_0x57034d(0x17f)]),_0x14d4d2[_0x57034d(0x2f5)]===_0x57034d(0x1a6)&&_0x117003['id']&&(_0x117003['id']=_0x117003['id']+_0x1764c3[_0x57034d(0x331)]),Object[_0x57034d(0x2c7)](_0x117003)[_0x57034d(0x1d1)](function(_0x10eb5f){const _0x1a1417=_0x57034d;var _0xe4b3d9=_0x10eb5f[0x0],_0x88179d=_0x10eb5f[0x1];_0xe4b3d9===_0x1a1417(0x1a6)&&typeof _0x88179d==_0x1a1417(0x2de)&&(_0x117003[_0xe4b3d9]=_0x88179d[_0x1a1417(0x370)](/url\(#(.*)\)/,_0x1a1417(0x2bd)['concat'](_0x1764c3[_0x1a1417(0x331)],')')));});var _0x825c67=_0x1764c3[_0x57034d(0x1e2)];return!_0x825c67||_0x825c67['length']===0x0||(_0x14d4d2[_0x57034d(0x2f5)]==='use'&&_0x117003['xlink:href']&&(_0x117003[_0x57034d(0x24a)]=_0x117003[_0x57034d(0x24a)]+_0x1764c3[_0x57034d(0x331)]),Object[_0x57034d(0x2c7)](_0x117003)[_0x57034d(0x1d1)](function(_0x4aee9c){const _0x242739=_0x57034d;var _0x486b5c=_0x4aee9c[0x0],_0xae0f41=_0x4aee9c[0x1];typeof _0xae0f41==_0x242739(0x2de)&&(_0x117003[_0x486b5c]=_0xae0f41[_0x242739(0x370)](/url\(#(.*)\)/,_0x242739(0x2bd)[_0x242739(0x277)](_0x1764c3[_0x242739(0x331)],')')));})),_0x117003;}function ze(_0x58288a,_0x326e19){const _0x3bdd3a=_0xa70a6a;var _0x2b333f,_0x94e5aa=_0x326e19[_0x3bdd3a(0x1e2)];return!_0x94e5aa||_0x94e5aa[_0x3bdd3a(0x154)]===0x0?_0x58288a:_0x58288a[_0x3bdd3a(0x2f5)]==='defs'&&(!((_0x2b333f=_0x58288a[_0x3bdd3a(0x3c1)])===null||_0x2b333f===void 0x0)&&_0x2b333f[_0x3bdd3a(0x154)])?b(b({},_0x58288a),{'children':_0x58288a[_0x3bdd3a(0x3c1)][_0x3bdd3a(0x186)](function(_0x2dd2cf){const _0x4b13f6=_0x3bdd3a;return typeof _0x2dd2cf[_0x4b13f6(0x19d)]['id']==_0x4b13f6(0x2de)&&_0x94e5aa&&_0x94e5aa[_0x4b13f6(0x321)](_0x2dd2cf[_0x4b13f6(0x19d)]['id'])?b(b({},_0x2dd2cf),{'attrs':b(b({},_0x2dd2cf['attrs']),{'id':_0x2dd2cf[_0x4b13f6(0x19d)]['id']+_0x326e19[_0x4b13f6(0x331)]})}):_0x2dd2cf;})}):_0x58288a;}function Je(){const _0x47378f=_0xa70a6a;return Math[_0x47378f(0x250)]()['toString'](0x24)[_0x47378f(0x26b)](0x2,0x8);}ge[_0xa70a6a(0x3b0)]=_0xa70a6a(0x17d);var Ze={'tag':_0xa70a6a(0x2f1),'attrs':{'xmlns':_0xa70a6a(0x1a8),'fill':_0xa70a6a(0x2f9),'viewBox':'0\x200\x2016\x2016','width':_0xa70a6a(0x2b7),'height':_0xa70a6a(0x2b7)},'children':[{'tag':'g','attrs':{'clipPath':'url(#off-line-icon_clip0_910_343)'},'children':[{'tag':_0xa70a6a(0x36c),'attrs':{'stroke':_0xa70a6a(0x150),'d':_0xa70a6a(0x362),'strokeLinecap':_0xa70a6a(0x390),'strokeLinejoin':_0xa70a6a(0x390),'strokeWidth':1.2}}]},{'tag':_0xa70a6a(0x241),'attrs':{},'children':[{'tag':_0xa70a6a(0x2f6),'attrs':{'id':_0xa70a6a(0x175)},'children':[{'tag':_0xa70a6a(0x36c),'attrs':{'fill':_0xa70a6a(0x360),'d':'M0\x200H16V16H0z'}}]}]}],'defIds':['off-line-icon_clip0_910_343']},we=M[_0xa70a6a(0x180)](function(_0x39b07b,_0x51565d){const _0x1b1754=_0xa70a6a;return M['createElement'](ge,Object[_0x1b1754(0x3ad)]({},_0x39b07b,{'id':_0x1b1754(0x1f5),'ref':_0x51565d,'icon':Ze}));});we[_0xa70a6a(0x3b0)]=_0xa70a6a(0x2cd);var Qe={'tag':_0xa70a6a(0x2f1),'attrs':{'xmlns':_0xa70a6a(0x1a8),'fill':_0xa70a6a(0x2f9),'viewBox':_0xa70a6a(0x2c6),'width':_0xa70a6a(0x2b7),'height':_0xa70a6a(0x2b7)},'children':[{'tag':'g','attrs':{'clipPath':_0xa70a6a(0x386)},'children':[{'tag':_0xa70a6a(0x36c),'attrs':{'stroke':_0xa70a6a(0x150),'d':'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','strokeLinecap':_0xa70a6a(0x390),'strokeLinejoin':'round','strokeWidth':1.2}}]},{'tag':_0xa70a6a(0x241),'attrs':{},'children':[{'tag':_0xa70a6a(0x2f6),'attrs':{'id':_0xa70a6a(0x275)},'children':[{'tag':_0xa70a6a(0x36c),'attrs':{'fill':_0xa70a6a(0x360),'d':_0xa70a6a(0x266),'transform':_0xa70a6a(0x1ca)}}]}]}],'defIds':[_0xa70a6a(0x275)]},Ae=M[_0xa70a6a(0x180)](function(_0xa0a2c8,_0x28874b){const _0xb27a65=_0xa70a6a;return M['createElement'](ge,Object[_0xb27a65(0x3ad)]({},_0xa0a2c8,{'id':_0xb27a65(0x1a1),'ref':_0x28874b,'icon':Qe}));});Ae[_0xa70a6a(0x3b0)]=_0xa70a6a(0x39c);function et(_0x3e4d6f){const _0x527e33=_0xa70a6a;switch(_0x3e4d6f){case u['CollaborationStatus']['OFFLINE']:return _0x527e33(0x2fc);case u['CollaborationStatus']['CONFLICT']:return _0x527e33(0x2a8);case u[_0x527e33(0x29c)]['FETCH_MISS']:return _0x527e33(0x2f7);case u['CollaborationStatus']['NOT_COLLAB']:return _0x527e33(0x2b8);case u[_0x527e33(0x29c)]['AWAITING']:case u[_0x527e33(0x29c)]['AWAITING_WITH_PENDING']:return'collabStatus.syncing';case u[_0x527e33(0x29c)][_0x527e33(0x343)]:case u[_0x527e33(0x29c)]['PENDING']:return'collabStatus.synced';}}function tt(_0x152345){const _0x2a4c32=_0xa70a6a,{status$:_0x566576}=_0x152345,_0x586ca7=O[_0x2a4c32(0x1fd)](_0x566576,u[_0x2a4c32(0x29c)]['NOT_COLLAB']),_0x2548ba=O[_0x2a4c32(0x36b)](a[_0x2a4c32(0x173)]),_0x10183f=O[_0x2a4c32(0x36b)](u[_0x2a4c32(0x2c2)]),_0x470c78=_0x586ca7!==u['CollaborationStatus'][_0x2a4c32(0x19a)],_0x52bee9=_0x2548ba['t'](et(_0x586ca7)),_0x55da6e=_0x470c78?P[_0x2a4c32(0x254)](Ae,{}):P[_0x2a4c32(0x254)](we,{}),_0x5510ab=M[_0x2a4c32(0x1da)](()=>{const _0x3a4bb4=_0x2a4c32;_0x470c78||_0x10183f[_0x3a4bb4(0x1b7)]();},[_0x470c78,_0x10183f]);function _0x1a6dd9(){const _0x181b3d=_0x2a4c32;return P['jsxs'](_0x181b3d(0x16d),{'className':_0x181b3d(0x170),'onClick':_0x5510ab,'children':[P[_0x181b3d(0x254)](_0x181b3d(0x16d),{'className':D[_0x181b3d(0x29b)]('univer-mr-2\x20univer-flex\x20univer-text-xl',{'univer-text-green-500':_0x470c78,'univer-text-red-500':!_0x470c78}),'children':_0x55da6e}),P['jsx'](_0x181b3d(0x16d),{'className':_0x181b3d(0x15f),'children':_0x52bee9})]});}return _0x470c78?_0x1a6dd9():P[_0x2a4c32(0x254)](D[_0x2a4c32(0x31b)],{'title':_0x2548ba['t']('collab-client.tooltip.reconnect'),'children':_0x1a6dd9()});}var st=Object['getOwnPropertyDescriptor'],it=(_0xea65ba,_0x751730,_0xe81de7,_0x3946bb)=>{const _0x88a2c6=_0xa70a6a;for(var _0x2b8f8c=_0x3946bb>0x1?void 0x0:_0x3946bb?st(_0x751730,_0xe81de7):_0x751730,_0x2a3135=_0xea65ba[_0x88a2c6(0x154)]-0x1,_0x53abb3;_0x2a3135>=0x0;_0x2a3135--)(_0x53abb3=_0xea65ba[_0x2a3135])&&(_0x2b8f8c=_0x53abb3(_0x2b8f8c)||_0x2b8f8c);return _0x2b8f8c;},V=(_0x418eff,_0xc776ec)=>(_0x21e745,_0x3a52a1)=>_0xc776ec(_0x21e745,_0x3a52a1,_0x418eff);exports[_0xa70a6a(0x33e)]=class extends a['Disposable']{constructor(_0x140ea4,_0x199af7,_0x2e8446,_0x2f4ac7){const _0x55d3d2=_0xa70a6a;super(),h(this,_0x55d3d2(0x33b),new d['BehaviorSubject'](u['CollaborationStatus'][_0x55d3d2(0x1e0)])),(this['_univerInstanceService']=_0x140ea4,this[_0x55d3d2(0x1d9)]=_0x199af7,this[_0x55d3d2(0x152)]=_0x2e8446,this['_uiPartsService']=_0x2f4ac7,this[_0x55d3d2(0x27f)](),this[_0x55d3d2(0x3af)]());}[_0xa70a6a(0x3af)](){const _0x494146=_0xa70a6a;this[_0x494146(0x39d)](this['_univerInstanceService'][_0x494146(0x302)][_0x494146(0x28e)](d['switchMap'](()=>{const _0x1ca147=_0x494146,_0x5bae47=this['_univerInstanceService']['getFocusedUnit']();return _0x5bae47?this['_collaborationController'][_0x1ca147(0x31c)](_0x5bae47['getUnitId']()):d['of'](null);}),d[_0x494146(0x20c)](_0x58fe60=>_0x58fe60?_0x58fe60['status$']:d['of'](u[_0x494146(0x29c)]['NOT_COLLAB'])))[_0x494146(0x236)](_0x317ea0=>{const _0x1c0742=_0x494146;this[_0x1c0742(0x33b)][_0x1c0742(0x1b3)](_0x317ea0);}));}[_0xa70a6a(0x27f)](){const _0x3dab96=_0xa70a6a;this['disposeWithMe'](this[_0x3dab96(0x3cd)][_0x3dab96(0x18f)](O[_0x3dab96(0x300)][_0x3dab96(0x234)],()=>O['connectInjector'](nt({'status$':this[_0x3dab96(0x33b)][_0x3dab96(0x17b)]()}),this[_0x3dab96(0x1d9)])));}},exports[_0xa70a6a(0x33e)]=it([V(0x0,a[_0xa70a6a(0x313)]),V(0x1,a['Inject'](a[_0xa70a6a(0x262)])),V(0x2,a['Inject'](u['CollaborationController'])),V(0x3,O['IUIPartsService'])],exports[_0xa70a6a(0x33e)]);function nt(_0x491719){const {status$:_0x5eb63d}=_0x491719;return function(){const _0x3e2bdb=_0x1cff;return P[_0x3e2bdb(0x254)](tt,{'status$':_0x5eb63d});};}const me=a[_0xa70a6a(0x202)](_0xa70a6a(0x301));var rt=Object[_0xa70a6a(0x33d)],ot=(_0x4fc59c,_0x4c7ff1,_0x3e13cd,_0x4c3c45)=>{const _0x2ee242=_0xa70a6a;for(var _0x411719=_0x4c3c45>0x1?void 0x0:_0x4c3c45?rt(_0x4c7ff1,_0x3e13cd):_0x4c7ff1,_0x43c21f=_0x4fc59c[_0x2ee242(0x154)]-0x1,_0x59ec58;_0x43c21f>=0x0;_0x43c21f--)(_0x59ec58=_0x4fc59c[_0x43c21f])&&(_0x411719=_0x59ec58(_0x411719)||_0x411719);return _0x411719;},k=(_0x2f0c23,_0x34c251)=>(_0x4a6948,_0x4d0dea)=>_0x34c251(_0x4a6948,_0x4d0dea,_0x2f0c23);exports[_0xa70a6a(0x2c4)]=class extends a[_0xa70a6a(0x306)]{constructor(_0x503eae,_0x193526,_0x44e6ed,_0x4c988a,_0xdd4e8f){const _0x304454=_0xa70a6a;super(),this[_0x304454(0x15b)]=_0x503eae,this[_0x304454(0x1cc)]=_0x193526,this['_commandService']=_0x44e6ed,this[_0x304454(0x2ae)]=_0x4c988a,_0xdd4e8f?_0xdd4e8f==null||_0xdd4e8f[_0x304454(0x38b)]()['then'](()=>this[_0x304454(0x373)]()):(this[_0x304454(0x1cc)][_0x304454(0x281)](_0x304454(0x357),_0x304454(0x267)),this[_0x304454(0x373)]());}async['_init'](){const _0x552cd7=_0xa70a6a,_0x55d167=this[_0x552cd7(0x15b)]['getParam']('unit'),_0x1b0dd5=this[_0x552cd7(0x15b)][_0x552cd7(0x1cd)]('type'),_0x27baa0=this['_urlService']['getParam'](_0x552cd7(0x3ce));if(!_0x55d167||!_0x1b0dd5){this['_logService'][_0x552cd7(0x281)](_0x552cd7(0x357),'No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.');return;}const _0x1a2119=await this['_dataLoaderService'][_0x552cd7(0x19c)](_0x55d167,Number(_0x1b0dd5),_0x27baa0);_0x1a2119&&_0x1a2119 instanceof a[_0x552cd7(0x1ec)]&&this['_setupSubUnitSync'](_0x1a2119);}async[_0xa70a6a(0x310)](_0x7519e0){const _0x4bb145=_0xa70a6a;await this[_0x4bb145(0x24f)](_0x7519e0),_0x7519e0[_0x4bb145(0x307)][_0x4bb145(0x28e)](d[_0x4bb145(0x22d)](this[_0x4bb145(0x2ef)]))[_0x4bb145(0x236)](_0x3449bb=>{const _0x1c9949=_0x4bb145;_0x3449bb&&this[_0x1c9949(0x39f)](_0x3449bb);}),this['_urlService'][_0x4bb145(0x161)][_0x4bb145(0x28e)](d[_0x4bb145(0x22d)](this[_0x4bb145(0x2ef)]))['subscribe'](()=>this[_0x4bb145(0x24f)](_0x7519e0));}[_0xa70a6a(0x39f)](_0x5ef451,_0x3d466e=!0x1){const _0x596309=_0xa70a6a,_0x27e591=this[_0x596309(0x15b)]['getParam'](_0x596309(0x3ce));_0x5ef451[_0x596309(0x260)]()!==_0x27e591&&this['_urlService'][_0x596309(0x336)](_0x596309(0x3ce),_0x5ef451[_0x596309(0x260)](),_0x3d466e);}async[_0xa70a6a(0x24f)](_0x42478e){const _0xa796d4=_0xa70a6a;var _0x52e4b8;const _0x254828=this[_0xa796d4(0x15b)][_0xa796d4(0x1cd)](_0xa796d4(0x3ce));if(!_0x254828||!_0x42478e[_0xa796d4(0x167)](_0x254828)){const _0xab1d2f=_0x42478e['getUnhiddenWorksheets']()[0x0],_0x3d19a0=_0x42478e[_0xa796d4(0x167)](_0xab1d2f);if(!_0x3d19a0)return;this[_0xa796d4(0x39f)](_0x3d19a0,!0x0),await this[_0xa796d4(0x324)][_0xa796d4(0x38d)](g['SetWorksheetActivateCommand']['id'],{'unitId':_0x42478e['getUnitId'](),'subUnitId':_0xab1d2f});return;}((_0x52e4b8=_0x42478e[_0xa796d4(0x2e8)]())==null?void 0x0:_0x52e4b8[_0xa796d4(0x260)]())!==_0x254828&&await this[_0xa796d4(0x324)]['executeCommand'](g[_0xa796d4(0x2a7)]['id'],{'unitId':_0x42478e[_0xa796d4(0x217)](),'subUnitId':_0x254828});}},exports[_0xa70a6a(0x2c4)]=ot([k(0x0,me),k(0x1,a['ILogService']),k(0x2,a[_0xa70a6a(0x1fe)]),k(0x3,a[_0xa70a6a(0x312)](u[_0xa70a6a(0x2fa)])),k(0x4,a[_0xa70a6a(0x1f1)](Xe['IRemoteInstanceService']))],exports[_0xa70a6a(0x2c4)]);var at=Object[_0xa70a6a(0x33d)],ct=(_0xf420e,_0x2c1405,_0x25e361,_0x23c03e)=>{const _0x4c19d5=_0xa70a6a;for(var _0x4a6939=_0x23c03e>0x1?void 0x0:_0x23c03e?at(_0x2c1405,_0x25e361):_0x2c1405,_0x2458d6=_0xf420e[_0x4c19d5(0x154)]-0x1,_0x408b3b;_0x2458d6>=0x0;_0x2458d6--)(_0x408b3b=_0xf420e[_0x2458d6])&&(_0x4a6939=_0x408b3b(_0x4a6939)||_0x4a6939);return _0x4a6939;},be=(_0x3889b5,_0x4c0946)=>(_0x1c6b92,_0x2a59a9)=>_0x4c0946(_0x1c6b92,_0x2a59a9,_0x3889b5);let ue=class extends a[_0xa70a6a(0x306)]{constructor(_0x3af390,_0x79276e){const _0x4aef66=_0xa70a6a;super(),this[_0x4aef66(0x17c)]=_0x3af390,this[_0x4aef66(0x32a)]=_0x79276e,this[_0x4aef66(0x373)]();}[_0xa70a6a(0x373)](){const _0x21ede5=_0xa70a6a,_0x30ca07=this;this[_0x21ede5(0x39d)](this[_0x21ede5(0x17c)]['addClipboardHook']({'onBeforePasteImage':async _0x6a4fc6=>{const _0x16618f=_0x21ede5,_0x139245=await _0x30ca07[_0x16618f(0x32a)][_0x16618f(0x32d)](_0x6a4fc6);return _0x139245?{'source':_0x139245[_0x16618f(0x2ca)],'imageSourceType':_0x139245['imageSourceType']}:null;}}));}};ue=ct([be(0x0,E[_0xa70a6a(0x273)]),be(0x1,Ge[_0xa70a6a(0x223)])],ue);const Oe=[_0xa70a6a(0x2db),_0xa70a6a(0x3b1),_0xa70a6a(0x3d2),_0xa70a6a(0x2da),_0xa70a6a(0x3b4),'yellow.400'];class Ce extends a[_0xa70a6a(0x270)]{constructor(){const _0x539761=_0xa70a6a;super(...arguments),h(this,'_assignedColors',new Map()),h(this,_0x539761(0x1fc),0x0);}[_0xa70a6a(0x2fd)](_0x5ba74c){const _0x420cf8=_0xa70a6a;if(this[_0x420cf8(0x295)][_0x420cf8(0x2b6)](_0x5ba74c))return this[_0x420cf8(0x295)][_0x420cf8(0x258)](_0x5ba74c);const _0x3ecc5c=Oe[this[_0x420cf8(0x1fc)]];return this[_0x420cf8(0x1fc)]=(this[_0x420cf8(0x1fc)]+0x1)%Oe['length'],this[_0x420cf8(0x295)][_0x420cf8(0x2d9)](_0x5ba74c,_0x3ecc5c),_0x3ecc5c;}}function ye(_0x184bbf){const _0x4095e1=_0xa70a6a;let _0x1690c6='';for(const _0x31e63d of _0x184bbf){const {startOffset:_0x25604d,endOffset:_0x4a8c54,isActive:_0x4ab8aa,rangeType:_0x5b43bb,segmentId:_0x3b748a,segmentPage:_0x154903}=_0x31e63d;_0x1690c6[_0x4095e1(0x154)]&&(_0x1690c6+=','),_0x1690c6+=_0x25604d+':'+_0x4a8c54+':'+(_0x4ab8aa?'1':'0')+':'+_0x5b43bb+':'+_0x3b748a+':'+_0x154903;}return _0x1690c6;}function lt(_0x285504){const _0x283cc0=_0xa70a6a,_0x496099=_0x285504[_0x283cc0(0x1c4)](','),_0x138b60=[];for(const _0x7e4444 of _0x496099){const [_0x3584f8,_0x1258e4,_0x3de92f,_0xc7eab0,_0x4ed454,_0xc4a535]=_0x7e4444['split'](':');_0x138b60[_0x283cc0(0x392)]({'startOffset':Number(_0x3584f8),'endOffset':Number(_0x1258e4),'collapsed':_0x3584f8===_0x1258e4,'isActive':_0x3de92f==='1','rangeType':_0xc7eab0===a[_0x283cc0(0x2b2)][_0x283cc0(0x191)]?a['DOC_RANGE_TYPE'][_0x283cc0(0x191)]:a[_0x283cc0(0x2b2)][_0x283cc0(0x372)],'segmentId':typeof _0x4ed454==_0x283cc0(0x2de)?String(_0x4ed454):'','segmentPage':Number(_0xc4a535!=null?_0xc4a535:-0x1)});}return _0x138b60[_0x283cc0(0x368)](_0x4ebad1=>_0x4ebad1['isActive'])||(_0x138b60[0x0][_0x283cc0(0x196)]=!0x0),_0x138b60;}class pe extends a[_0xa70a6a(0x306)]{constructor(){const _0x1da93e=_0xa70a6a;super(...arguments),h(this,_0x1da93e(0x2e7),new d[(_0x1da93e(0x239))](null)),h(this,_0x1da93e(0x1a7),this[_0x1da93e(0x2e7)]['asObservable']());}[_0xa70a6a(0x18b)](_0x2f8cc7){const _0x4dfb74=_0xa70a6a,{unitID:_0x1de51,memberID:_0x36cd41,textRanges:_0x325f55}=_0x2f8cc7,_0x4b1470=ye(_0x325f55);if(_0x4b1470==='')return;const _0x2f7ff0={'unitID':_0x1de51,'memberID':_0x36cd41,'selection':_0x4b1470};this[_0x4dfb74(0x2e7)][_0x4dfb74(0x1b3)](_0x2f7ff0);}}var _t=Object[_0xa70a6a(0x33d)],ht=(_0x5621ca,_0x464acc,_0xa1c61c,_0x8ce27b)=>{const _0x4e5589=_0xa70a6a;for(var _0x21c26a=_0x8ce27b>0x1?void 0x0:_0x8ce27b?_t(_0x464acc,_0xa1c61c):_0x464acc,_0x29208c=_0x5621ca[_0x4e5589(0x154)]-0x1,_0x4b8e1a;_0x29208c>=0x0;_0x29208c--)(_0x4b8e1a=_0x5621ca[_0x29208c])&&(_0x21c26a=_0x4b8e1a(_0x21c26a)||_0x21c26a);return _0x21c26a;},L=(_0x48ab2c,_0x2900b5)=>(_0x465372,_0x58355e)=>_0x2900b5(_0x465372,_0x58355e,_0x48ab2c);const ut=0x12c,dt=0x64;let de=class extends a[_0xa70a6a(0x306)]{constructor(_0x590a7d,_0xc6cd2c,_0xd81f2d,_0x20082e,_0x157a47,_0xdc0087,_0x16cbdb,_0x27deb8,_0x548175){const _0x1eacab=_0xa70a6a;super(),h(this,_0x1eacab(0x2d2),!0x1),h(this,'_init',!0x1),h(this,'_cursorInfo$',new d['BehaviorSubject'](new Map())),h(this,'cursorInfo$',this['_cursorInfo$'][_0x1eacab(0x17b)]()),h(this,_0x1eacab(0x25a),new d[(_0x1eacab(0x239))]([])),h(this,_0x1eacab(0x387),this[_0x1eacab(0x25a)][_0x1eacab(0x28e)](d[_0x1eacab(0x274)](ut))),h(this,_0x1eacab(0x23e),a['debounce'](_0x497d57=>{const _0x2179ca=_0x1eacab,_0x4b88c6={'eventID':m[_0x2179ca(0x346)][_0x2179ca(0x194)],'data':{'unitID':this['unitID'],'memberID':this[_0x2179ca(0x163)][_0x2179ca(0x20a)](),'selection':ye(_0x497d57)}};this[_0x2179ca(0x163)]['send'](_0x4b88c6,this[_0x2179ca(0x3d1)]);},dt)),(this[_0x1eacab(0x3d1)]=_0x590a7d,this[_0x1eacab(0x163)]=_0xc6cd2c,this[_0x1eacab(0x1d9)]=_0xd81f2d,this['_colorAssignService']=_0x20082e,this[_0x1eacab(0x1dc)]=_0x157a47,this[_0x1eacab(0x38c)]=_0xdc0087,this[_0x1eacab(0x374)]=_0x16cbdb,this[_0x1eacab(0x3a3)]=_0x27deb8,this[_0x1eacab(0x324)]=_0x548175);}get[_0xa70a6a(0x382)](){const _0x5cd4aa=_0xa70a6a;return this[_0x5cd4aa(0x279)][_0x5cd4aa(0x272)]();}get[_0xa70a6a(0x330)](){const _0x43fa3a=_0xa70a6a;return this[_0x43fa3a(0x25a)]['getValue']();}[_0xa70a6a(0x37e)](){const _0x4bfe44=_0xa70a6a;super[_0x4bfe44(0x37e)](),this[_0x4bfe44(0x279)]['next'](new Map()),this[_0x4bfe44(0x279)]['complete'](),this[_0x4bfe44(0x25a)]['next']([]),this[_0x4bfe44(0x25a)]['complete']();}['init'](){const _0x2a8838=_0xa70a6a;this[_0x2a8838(0x373)]||(this[_0x2a8838(0x373)]=!0x0,this[_0x2a8838(0x163)][_0x2a8838(0x176)][_0x2a8838(0x28e)](d[_0x2a8838(0x22d)](this[_0x2a8838(0x2ef)]))['subscribe'](_0x5d874e=>{const _0x16ffd1=_0x2a8838;_0x5d874e===u[_0x16ffd1(0x290)][_0x16ffd1(0x3d0)]?this[_0x16ffd1(0x1df)]():this[_0x16ffd1(0x256)]();}),this[_0x2a8838(0x163)][_0x2a8838(0x169)][_0x2a8838(0x28e)](d[_0x2a8838(0x22d)](this['dispose$']))[_0x2a8838(0x236)](_0x224215=>{const _0x3e2998=_0x2a8838,_0x1ac681=_0x224215[_0x3e2998(0x298)];_0x1ac681===m[_0x3e2998(0x346)][_0x3e2998(0x194)]&&this[_0x3e2998(0x1f6)](_0x224215),_0x1ac681===m[_0x3e2998(0x346)][_0x3e2998(0x22a)]&&this[_0x3e2998(0x215)](_0x224215);}),this['disposeWithMe'](this['_commandService']['onCommandExecuted'](_0x5dc448=>{const _0x50320c=_0x2a8838,_0x42d6f9=_0x5dc448['params'];_0x42d6f9!=null&&this['_online']&&_0x5dc448['id']===Y[_0x50320c(0x2d8)]['id']&&_0x42d6f9[_0x50320c(0x16c)]===this[_0x50320c(0x3d1)]&&_0x42d6f9[_0x50320c(0x3a6)]===!0x1&&_0x42d6f9[_0x50320c(0x2d1)][_0x50320c(0x154)]>0x0&&this[_0x50320c(0x23e)](_0x42d6f9[_0x50320c(0x2d1)]);})),this[_0x2a8838(0x38c)]['collabCursorState$']['pipe'](d[_0x2a8838(0x22d)](this[_0x2a8838(0x2ef)]))['subscribe'](_0x2e839c=>{const _0xe77f12=_0x2a8838;if((_0x2e839c==null?void 0x0:_0x2e839c[_0xe77f12(0x3d1)])!==this['unitID'])return;const _0x1db1fd={'eventID':m['CollaborationEvent'][_0xe77f12(0x194)],'data':_0x2e839c};this['_onCursorUpdate'](_0x1db1fd);}),this[_0x2a8838(0x39d)](this['_commandService'][_0x2a8838(0x1a0)](_0x3a57d7=>{const _0x408e39=_0x2a8838;if(_0x3a57d7['params']==null)return;const _0x4a05fc=_0x3a57d7[_0x408e39(0x1f3)];if(_0x3a57d7['id']!==Y[_0x408e39(0x2e5)]['id']||_0x4a05fc['unitId']!==this[_0x408e39(0x3d1)])return;const _0x33f06c={'id':_0x408e39(0x2ad),'params':_0x4a05fc},_0x3907e1=this[_0x408e39(0x382)];for(const [_0x18cedd,_0x497047]of _0x3907e1){const _0x591e2c={'id':_0x408e39(0x2ad),'params':{'unitId':this[_0x408e39(0x3d1)],'actions':null,'textRanges':_0x497047['ranges']}},_0x34f882=this['_transformService']['transformMutation'](_0x33f06c,_0x591e2c,!0x1);if(m[_0x408e39(0x238)](_0x34f882))throw _0x34f882[_0x408e39(0x1c9)];_0x3907e1[_0x408e39(0x2d9)](_0x18cedd,{..._0x497047,'ranges':_0x34f882['m2Prime']['params'][_0x408e39(0x2df)]});}queueMicrotask(()=>{const _0x5a433a=_0x408e39;this['_cursorInfo$'][_0x5a433a(0x1b3)](_0x3907e1);});})));}['_onCursorUpdate'](_0x2baf25){const _0x3d991c=_0xa70a6a;var _0x3c05b3,_0x339ddb;const {memberID:_0x53fdf0,selection:_0x352fda}=_0x2baf25['data'],_0x33dd81=lt(_0x352fda),_0x3bd9c2=(_0x339ddb=(_0x3c05b3=this[_0x3d991c(0x1dc)][_0x3d991c(0x323)](this[_0x3d991c(0x3d1)],_0x53fdf0))==null?void 0x0:_0x3c05b3['name'])!=null?_0x339ddb:_0x3d991c(0x25d),_0x5d5fb5={'color':this[_0x3d991c(0x2f4)][_0x3d991c(0x2fd)](_0x53fdf0),'name':_0x3bd9c2,'ranges':_0x33dd81},_0x537e37=this[_0x3d991c(0x382)];_0x537e37['set'](_0x53fdf0,_0x5d5fb5),this['_cursorInfo$'][_0x3d991c(0x1b3)](_0x537e37);}[_0xa70a6a(0x215)](_0x547bed){const _0x21fdb2=_0xa70a6a,{memberID:_0xd92201}=_0x547bed[_0x21fdb2(0x1de)],_0x33f8be=this[_0x21fdb2(0x382)];_0x33f8be[_0x21fdb2(0x15d)](_0xd92201),this[_0x21fdb2(0x279)][_0x21fdb2(0x1b3)](_0x33f8be);}[_0xa70a6a(0x1df)](){const _0x2df38f=_0xa70a6a;var _0x4bb267;if(this[_0x2df38f(0x2d2)]=!0x0,((_0x4bb267=this['_univerInstanceService'][_0x2df38f(0x269)]())==null?void 0x0:_0x4bb267[_0x2df38f(0x217)]())!==this['unitID'])return;const _0x20110d=this[_0x2df38f(0x1d9)][_0x2df38f(0x258)](Y[_0x2df38f(0x3c3)])[_0x2df38f(0x1ac)]();Array[_0x2df38f(0x1d5)](_0x20110d)&&_0x20110d[_0x2df38f(0x154)]>0x0&&this[_0x2df38f(0x23e)](_0x20110d);}['_toggleOffline'](){this['_online']=!0x1;}};de=ht([L(0x2,a['Inject'](a[_0xa70a6a(0x262)])),L(0x3,a['Inject'](Ce)),L(0x4,a['Inject'](u[_0xa70a6a(0x27b)])),L(0x5,a['Inject'](pe)),L(0x6,m[_0xa70a6a(0x1ae)]),L(0x7,a[_0xa70a6a(0x313)]),L(0x8,a[_0xa70a6a(0x1fe)])],de);var St=Object[_0xa70a6a(0x33d)],ft=(_0x5267ca,_0x519935,_0x24633a,_0x3c990b)=>{const _0x555e7a=_0xa70a6a;for(var _0x1206d6=_0x3c990b>0x1?void 0x0:_0x3c990b?St(_0x519935,_0x24633a):_0x519935,_0x3bf515=_0x5267ca[_0x555e7a(0x154)]-0x1,_0x1bb77c;_0x3bf515>=0x0;_0x3bf515--)(_0x1bb77c=_0x5267ca[_0x3bf515])&&(_0x1206d6=_0x1bb77c(_0x1206d6)||_0x1206d6);return _0x1206d6;},A=(_0x21f175,_0x32c055)=>(_0x45f920,_0x27bfe1)=>_0x32c055(_0x45f920,_0x27bfe1,_0x21f175);const It=0x12c,vt=0x64,gt=()=>{let _0x508a27=[],_0x2c8e42=!0x1;return _0xb51a10=>{const _0x1a86ea=_0x1cff;_0x508a27[_0x1a86ea(0x392)](_0xb51a10),_0x2c8e42||(_0x2c8e42=!0x0,setTimeout(()=>{_0x508a27['forEach'](_0x18183f=>_0x18183f()),_0x508a27=[],_0x2c8e42=!0x1;}));};};let Se=class extends a['RxDisposable']{constructor(_0x1086de,_0xaeca52,_0x37ffb7,_0x33ef00,_0x51b0c4,_0x1d85a9,_0x45180f,_0x421d94){const _0x7724a1=_0xa70a6a;super(),h(this,_0x7724a1(0x2d2),!0x1),h(this,_0x7724a1(0x373),!0x1),h(this,_0x7724a1(0x279),new d[(_0x7724a1(0x239))](new Map())),h(this,_0x7724a1(0x214),this[_0x7724a1(0x279)][_0x7724a1(0x17b)]()),h(this,_0x7724a1(0x25a),new d[(_0x7724a1(0x239))]([])),h(this,_0x7724a1(0x387),this[_0x7724a1(0x25a)]['pipe'](d[_0x7724a1(0x274)](It))),h(this,_0x7724a1(0x23e),a[_0x7724a1(0x2af)]((_0xea2e82,_0x26618e)=>{const _0xc4dfca=_0x7724a1,_0x2abd1a={'eventID':m['CollaborationEvent'][_0xc4dfca(0x194)],'data':{'unitID':this[_0xc4dfca(0x3d1)],'memberID':this[_0xc4dfca(0x163)][_0xc4dfca(0x20a)](),'selection':Ee[_0xc4dfca(0x35c)](_0xea2e82,_0x26618e[_0xc4dfca(0x364)])}};this[_0xc4dfca(0x163)][_0xc4dfca(0x1e3)](_0x2abd1a,this[_0xc4dfca(0x3d1)]);},vt)),(this[_0x7724a1(0x3d1)]=_0x1086de,this[_0x7724a1(0x163)]=_0xaeca52,this[_0x7724a1(0x1d9)]=_0x37ffb7,this[_0x7724a1(0x2f4)]=_0x33ef00,this[_0x7724a1(0x1dc)]=_0x51b0c4,this['_univerInstanceService']=_0x1d85a9,this[_0x7724a1(0x324)]=_0x45180f,this['_refRangeService']=_0x421d94);}get[_0xa70a6a(0x382)](){const _0x17e930=_0xa70a6a;return this['_cursorInfo$'][_0x17e930(0x272)]();}get[_0xa70a6a(0x330)](){const _0x2da454=_0xa70a6a;return this[_0x2da454(0x25a)][_0x2da454(0x272)]();}['dispose'](){const _0x55171d=_0xa70a6a;super['dispose'](),this[_0x55171d(0x279)][_0x55171d(0x1b3)](new Map()),this[_0x55171d(0x279)][_0x55171d(0x278)](),this[_0x55171d(0x25a)][_0x55171d(0x1b3)]([]),this[_0x55171d(0x25a)]['complete']();}['init'](){const _0x370de5=_0xa70a6a;this[_0x370de5(0x373)]||(this[_0x370de5(0x373)]=!0x0,this[_0x370de5(0x163)][_0x370de5(0x176)][_0x370de5(0x28e)](d[_0x370de5(0x22d)](this[_0x370de5(0x2ef)]))[_0x370de5(0x236)](_0x31f1ea=>{const _0x23b15c=_0x370de5;_0x31f1ea===u[_0x23b15c(0x290)][_0x23b15c(0x3d0)]?this[_0x23b15c(0x1df)]():this[_0x23b15c(0x256)]();}),this[_0x370de5(0x163)][_0x370de5(0x169)][_0x370de5(0x28e)](d[_0x370de5(0x22d)](this[_0x370de5(0x2ef)]))['subscribe'](_0x4bf093=>{const _0x817a4c=_0x370de5,_0x10a566=_0x4bf093[_0x817a4c(0x298)];_0x10a566===m[_0x817a4c(0x346)][_0x817a4c(0x194)]&&this[_0x817a4c(0x1f6)](_0x4bf093),_0x10a566===m[_0x817a4c(0x346)][_0x817a4c(0x22a)]&&this[_0x817a4c(0x215)](_0x4bf093);}),this[_0x370de5(0x1d2)](),this['disposeWithMe'](this[_0x370de5(0x324)][_0x370de5(0x1a0)](_0x3c6baf=>{const _0x47a3f6=_0x370de5;if(this['_online']&&_0x3c6baf['id']===g[_0x47a3f6(0x1e8)]['id']&&_0x3c6baf['params'][_0x47a3f6(0x16c)]===this['unitID']){const _0x259f20=_0x3c6baf['params'];this[_0x47a3f6(0x23e)](_0x259f20[_0x47a3f6(0x25c)],_0x259f20[_0x47a3f6(0x1a2)][0x0]);}})));}['_onCursorUpdate'](_0x387efb){const _0xdd2bc6=_0xa70a6a;var _0x5cbcd3,_0xe120e1;const {memberID:_0x4f3e8a,selection:_0x88bc81}=_0x387efb[_0xdd2bc6(0x1de)],{sheetName:_0x338b43,range:_0x1c9749}=Ee['deserializeRangeWithSheet'](_0x88bc81),_0x4e858d={'name':(_0xe120e1=(_0x5cbcd3=this[_0xdd2bc6(0x1dc)][_0xdd2bc6(0x323)](this['unitID'],_0x4f3e8a))==null?void 0x0:_0x5cbcd3[_0xdd2bc6(0x30f)])!=null?_0xe120e1:_0xdd2bc6(0x25d),'range':this[_0xdd2bc6(0x395)](_0x338b43,_0x1c9749),'sheetID':_0x338b43,'color':this['_colorAssignService'][_0xdd2bc6(0x2fd)](_0x4f3e8a),'selection':_0x88bc81},_0x51a9a8=this[_0xdd2bc6(0x382)];_0x51a9a8['set'](_0x4f3e8a,_0x4e858d),this[_0xdd2bc6(0x279)][_0xdd2bc6(0x1b3)](_0x51a9a8);}[_0xa70a6a(0x215)](_0x317e4c){const _0x13b1de=_0xa70a6a,{memberID:_0x497d74}=_0x317e4c[_0x13b1de(0x1de)],_0x28aefc=this[_0x13b1de(0x382)];_0x28aefc[_0x13b1de(0x15d)](_0x497d74),this[_0x13b1de(0x279)][_0x13b1de(0x1b3)](_0x28aefc);}['_getMergeRange'](_0x2427ce,_0x155e0c){const _0x3f5ed8=_0xa70a6a;var _0x4d8b2c,_0x41369a;const _0x1e7273=(_0x41369a=(_0x4d8b2c=this[_0x3f5ed8(0x3a3)][_0x3f5ed8(0x242)](this['unitID']))==null?void 0x0:_0x4d8b2c[_0x3f5ed8(0x167)](_0x2427ce))==null?void 0x0:_0x41369a['getMergeData']();return(_0x1e7273==null?void 0x0:_0x1e7273['find'](_0x2ddc16=>a[_0x3f5ed8(0x245)][_0x3f5ed8(0x1c7)](_0x2ddc16,_0x155e0c)))||_0x155e0c;}['_onRefRangeChange'](){const _0x58dcaf=_0xa70a6a,_0x3b6ec6=new a['DisposableCollection'](),_0x37cbf8=gt(),_0x356f03=()=>{const _0x23fd83=_0x1cff;_0x3b6ec6[_0x23fd83(0x37e)]();const _0x2a73bf=(_0x43dd9a,_0xdfc545,_0x185bb6,_0x4a09cf)=>{const _0x1206c2=_0x23fd83;let _0x24d2d9=[];switch(_0x43dd9a['id']){case g[_0x1206c2(0x2a2)]['DeleteRangeMoveLeftCommandId']:{_0x24d2d9=g['handleDeleteRangeMoveLeft'](_0x43dd9a,_0x4a09cf);break;}case g['EffectRefRangId'][_0x1206c2(0x288)]:{_0x24d2d9=g[_0x1206c2(0x1f7)](_0x43dd9a,_0x4a09cf);break;}case g[_0x1206c2(0x2a2)][_0x1206c2(0x1e1)]:{_0x24d2d9=g[_0x1206c2(0x1ef)](_0x43dd9a,_0x4a09cf);break;}case g['EffectRefRangId'][_0x1206c2(0x340)]:{_0x24d2d9=g[_0x1206c2(0x211)](_0x43dd9a,_0x4a09cf);break;}case g[_0x1206c2(0x2a2)][_0x1206c2(0x26e)]:{_0x24d2d9=g['handleInsertRangeMoveRight'](_0x43dd9a,_0x4a09cf);break;}case g['EffectRefRangId'][_0x1206c2(0x178)]:{_0x24d2d9=g[_0x1206c2(0x34c)](_0x43dd9a,_0x4a09cf);break;}case g[_0x1206c2(0x2a2)][_0x1206c2(0x375)]:{_0x24d2d9=g['handleMoveRange'](_0x43dd9a,_0x4a09cf);break;}case g[_0x1206c2(0x2a2)][_0x1206c2(0x1f8)]:{_0x24d2d9=g[_0x1206c2(0x1b5)](_0x43dd9a,_0x4a09cf);break;}case g[_0x1206c2(0x2a2)][_0x1206c2(0x3a2)]:{_0x24d2d9=g[_0x1206c2(0x353)](_0x43dd9a,_0x4a09cf);break;}}const _0x478bca=g[_0x1206c2(0x2a1)](_0x24d2d9,_0x4a09cf),_0x421553=this[_0x1206c2(0x382)][_0x1206c2(0x258)](_0xdfc545);if(_0x421553&&_0x478bca){const _0x18f0d8={..._0x421553,'range':_0x478bca};this[_0x1206c2(0x382)][_0x1206c2(0x2d9)](_0xdfc545,_0x18f0d8),_0x37cbf8(()=>{const _0x467161=_0x1206c2,_0x3243e9=this['_refRangeService'][_0x467161(0x35d)](_0x478bca,_0x1562ce=>(_0x3243e9[_0x467161(0x37e)](),_0x2a73bf(_0x1562ce,_0xdfc545,_0x185bb6,_0x478bca)));_0x3b6ec6[_0x467161(0x228)](_0x3243e9);});}return{'redos':[],'undos':[]};};this[_0x23fd83(0x382)][_0x23fd83(0x1d1)]((_0x749d83,_0x33e8b4)=>{const _0x4ca579=_0x23fd83,{range:_0x206007,sheetID:_0x219c4f}=_0x749d83,_0x3d28d2=this[_0x4ca579(0x304)]['registerRefRange'](_0x206007,_0x29d914=>(_0x3d28d2[_0x4ca579(0x37e)](),_0x2a73bf(_0x29d914,_0x33e8b4,_0x219c4f,_0x206007)));_0x3b6ec6[_0x4ca579(0x228)](_0x3d28d2);});};this[_0x58dcaf(0x39d)](a[_0x58dcaf(0x16a)](this[_0x58dcaf(0x279)][_0x58dcaf(0x236)](()=>{_0x356f03();})));}[_0xa70a6a(0x1df)](){const _0x21887e=_0xa70a6a;var _0x5ea992,_0x44e3bd;if(this['_online']=!0x0,((_0x5ea992=this[_0x21887e(0x3a3)]['getFocusedUnit']())==null?void 0x0:_0x5ea992['getUnitId']())!==this[_0x21887e(0x3d1)])return;const _0x5d56e7=(_0x44e3bd=this['_injector'][_0x21887e(0x258)](g['SheetsSelectionsService'])['getCurrentSelections']())==null?void 0x0:_0x44e3bd[0x0],_0x570e84=this[_0x21887e(0x3a3)][_0x21887e(0x333)](a[_0x21887e(0x3be)][_0x21887e(0x1c8)])[_0x21887e(0x2e8)]();_0x5d56e7&&_0x570e84&&this['_updateLocalCursor'](_0x570e84[_0x21887e(0x260)](),_0x5d56e7);}[_0xa70a6a(0x256)](){const _0x49fa89=_0xa70a6a;this[_0x49fa89(0x2d2)]=!0x1;}};Se=ft([A(0x2,a['Inject'](a[_0xa70a6a(0x262)])),A(0x3,a[_0xa70a6a(0x312)](Ce)),A(0x4,a['Inject'](u[_0xa70a6a(0x27b)])),A(0x5,a['IUniverInstanceService']),A(0x6,a[_0xa70a6a(0x1fe)]),A(0x7,a[_0xa70a6a(0x312)](g[_0xa70a6a(0x3ca)]))],Se);var mt=Object[_0xa70a6a(0x33d)],Ct=(_0x430bd4,_0x34bc46,_0x270803,_0x4bc6ef)=>{const _0x356908=_0xa70a6a;for(var _0x1a4c27=_0x4bc6ef>0x1?void 0x0:_0x4bc6ef?mt(_0x34bc46,_0x270803):_0x34bc46,_0x36e173=_0x430bd4[_0x356908(0x154)]-0x1,_0x27998a;_0x36e173>=0x0;_0x36e173--)(_0x27998a=_0x430bd4[_0x36e173])&&(_0x1a4c27=_0x27998a(_0x1a4c27)||_0x1a4c27);return _0x1a4c27;},ie=(_0x204893,_0x19508e)=>(_0x4b40d7,_0x307967)=>_0x19508e(_0x4b40d7,_0x307967,_0x204893);let x=class extends a['RxDisposable']{constructor(_0x1c902c,_0x3bb015,_0x4a47d){const _0xeeb8c=_0xa70a6a;super(),h(this,_0xeeb8c(0x1e6),new Map()),h(this,_0xeeb8c(0x35f),new d['Subject']()),(this[_0xeeb8c(0x3a3)]=_0x1c902c,this['_injector']=_0x3bb015,this['_collabSessionService']=_0x4a47d,this['_init']());}['dispose'](){const _0x27f787=_0xa70a6a;super[_0x27f787(0x37e)](),this[_0x27f787(0x35f)][_0x27f787(0x278)](),this[_0x27f787(0x1e6)][_0x27f787(0x1d1)](_0xb903e2=>_0xb903e2[_0x27f787(0x37e)]());}['getCollabCursors$'](_0x144001){const _0x4b8c46=_0xa70a6a;return this[_0x4b8c46(0x1e6)]['has'](_0x144001)?this[_0x4b8c46(0x1e6)][_0x4b8c46(0x258)](_0x144001)['cursorInfo$']:this['_entityInit$'][_0x4b8c46(0x28e)](d[_0x4b8c46(0x37a)](_0x1140fa=>_0x1140fa[_0x4b8c46(0x3d1)]===_0x144001),d['switchMap'](_0xb6a28d=>_0xb6a28d[_0x4b8c46(0x214)]));}[_0xa70a6a(0x373)](){const _0x305890=_0xa70a6a;this['_univerInstanceService'][_0x305890(0x287)](a[_0x305890(0x3be)][_0x305890(0x1c8)])[_0x305890(0x28e)](d[_0x305890(0x22d)](this['dispose$']))[_0x305890(0x236)](async _0x5d8c7f=>{const _0xdcefaa=_0x305890,_0x25962c=_0x5d8c7f[_0xdcefaa(0x217)](),_0x10b76f=await this[_0xdcefaa(0x30e)](_0x25962c);this['_entityInit$'][_0xdcefaa(0x1b3)](_0x10b76f),this['_entities']['set'](_0x25962c,_0x10b76f);}),this['_univerInstanceService'][_0x305890(0x287)](a[_0x305890(0x3be)][_0x305890(0x316)])[_0x305890(0x28e)](d['takeUntil'](this[_0x305890(0x2ef)]))['pipe'](d[_0x305890(0x37a)](_0x10a4f1=>!_0x10a4f1[_0x305890(0x217)]()[_0x305890(0x2f8)]('__')))[_0x305890(0x236)](async _0x276fa7=>{const _0x5be132=_0x305890,_0x2397f9=_0x276fa7['getUnitId'](),_0x4a2f59=await this[_0x5be132(0x32c)](_0x2397f9);this['_entityInit$']['next'](_0x4a2f59),this[_0x5be132(0x1e6)][_0x5be132(0x2d9)](_0x2397f9,_0x4a2f59);}),d[_0x305890(0x1ee)](this[_0x305890(0x3a3)]['getTypeOfUnitDisposed$'](a[_0x305890(0x3be)]['UNIVER_DOC']),this['_univerInstanceService'][_0x305890(0x351)](a[_0x305890(0x3be)]['UNIVER_SHEET']))[_0x305890(0x28e)](d[_0x305890(0x22d)](this[_0x305890(0x2ef)]))[_0x305890(0x236)](_0x448a5f=>{const _0xd91b14=_0x305890,_0x531bb3=_0x448a5f[_0xd91b14(0x217)](),_0x3a5b58=this[_0xd91b14(0x1e6)]['get'](_0x531bb3);_0x3a5b58&&(_0x3a5b58[_0xd91b14(0x37e)](),this[_0xd91b14(0x1e6)][_0xd91b14(0x15d)](_0x531bb3));});}async[_0xa70a6a(0x30e)](_0x1ea3af){const _0x54834b=_0xa70a6a,_0x4fd2c9=await this[_0x54834b(0x24d)]['requireSession'](_0x1ea3af),_0x51203a=this[_0x54834b(0x1d9)][_0x54834b(0x192)](Se,_0x1ea3af,_0x4fd2c9);return _0x51203a[_0x54834b(0x318)](),_0x51203a;}async[_0xa70a6a(0x32c)](_0x507481){const _0x604346=_0xa70a6a,_0x1c5e4a=await this[_0x604346(0x24d)][_0x604346(0x1db)](_0x507481),_0x59849a=this[_0x604346(0x1d9)][_0x604346(0x192)](de,_0x507481,_0x1c5e4a);return _0x59849a[_0x604346(0x318)](),_0x59849a;}};x=Ct([ie(0x0,a[_0xa70a6a(0x313)]),ie(0x1,a['Inject'](a[_0xa70a6a(0x262)])),ie(0x2,a['Inject'](u[_0xa70a6a(0x2c2)]))],x);const W=0x14,Te=0xc8,ne=0x4,pt=0x5;function _0x287c(){const _0x5b9b53=['ThemeService','labelPosition','_hovered','_eventUnsubscribe','key','ENSURE_SNAPSHOT_EXECUTION','_setupBeforeClosingHandler','type','toRgbString','IImageIoService','wsSessionTicketUrl','_configService','_messageService','_scheduleSaving','add','44TjiMxw','USERS_LEAVE','toStringTag','distinctUntilChanged','takeUntil','IURLService','ColorKit','_id','entityInit$','_shapes','_cursor','HEADER_MENU','addObject','subscribe','size','isTransformMutationFailure','BehaviorSubject','propertyIsEnumerable','_anchor','Error','_docStateChangeManagerService','_updateLocalCursor','_docTransformIMECacheService','popstate','defs','getUniverSheetInstance','setConfig','height','Rectangle','UNRECOGNIZED','setUndoRedoMutationParamsCache','WebBrowserSingleActiveUnitService','session.collaboration-timeout','xlink:href','loadOfflineData','beginPath','_collabSessionService','TEXT_RANGE_LAYER_INDEX','_updateSubUnitFromURLParams','random','onStarting','MUTATION','DocIMEInputManagerService','jsx','3493byTxyd','_toggleOffline','resize','get','bottom','_roomMembers$','fill','subUnitId','Unknown\x20user','disposeUnit','sheetId','getSheetId','transform','Injector','getOwnPropertySymbols','_removeCollabCursors','backgroundColor','M0\x200H16V16H0z','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','EMAIL_HAS_BEEN_BOUND','getFocusedUnit','Module','substring','_instanceService','permission.title','InsertRangeMoveRightCommandId','INVITE_CODE_HAS_BEEN_UES','Disposable','_createSocketURL','getValue','IDocClipboardService','debounceTime','on-line-icon_clip0_910_349','getColor','concat','complete','_cursorInfo$','MessageType','MemberService','USER_NOT_INVITED_CODE','call','DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT','_initStatusComponent','code','debug','RevisionService','removeParam','ISnapshotServerService','PY_RUNTIME_SCRIPT_ERROR','_getSessionTicket','getTypeOfUnitAdded$','DeleteRangeMoveUpCommandId','fillText','_collaborationUIEventService','restore','COMPLETION_FINISHED','updateOfflineData','pipe','font','SessionStatus','_getAnchorBounding','_unitOnClients','_name','setItem','_assignedColors','_docTransformStateCacheService','LICENSE_EXPORT_SIZE_EXCEEDED','eventID','extend','permission.content','clsx','CollaborationStatus','MOBILE_VERIFY_CODE_MISMATCH','_handleJoinEvent','redoState','YUUMI_PROMPT_MAX_TOKENS_EXCEEDED','runRefRangeMutations','EffectRefRangId','_getSaveTimeout','toString','SNAPSHOT_HAS_BEEN_REMOVED','12635iXHPGq','SetWorksheetActivateCommand','collabStatus.conflict','className','RegularPolygon','IRenderManagerService','origin','doc.mutation.rich-text-editing','_dataLoaderService','debounce','getSheetObject','useRef','DOC_RANGE_TYPE','_handleHeartbeatEvent','ILocalCacheService','getCoordByCell','has','1em','collabStatus.notCollab','replaceState','clearTimeout','LICENSE_IMPORT_SIZE_EXCEEDED','mutations','url(#$1','mergeOverrideWithDependencies','setShapeProps','_textBubble','max','CollaborationSessionService','Warning','CollaborationDataLoaderController','_handleEvent','0\x200\x2017\x2016','entries','memberID','from','source','collaboration.closeRoom','DEFAULT_WS_SESSION_TICKET_URL','OffLineIcon','IBeforeCloseService','INVALID_ARGUMENT','Plugin','ranges','_online','all','INotificationService','SheetSkeletonManagerService','getCurrentRevOfUnit','_cursorShapes','SetTextSelectionsOperation','set','red.300','purple.300','APPLY_NON_SEQUENTIAL_REVISION','WebURLService','string','textRanges','APPLY_REJECT','mapTo','_initEntityListener','measureText','47046NcCVMm','RichTextEditingMutation','UNDEFINED','_collabCursorState$','getActiveSheet','#FFF','searchParams','_scheduleHeartbeat','disableLocalCache','_beforeCloseService','pushState','dispose$','TOO_MANY_REQUESTS','svg','DocCollaborationEntity','_heartbeatTimer','_colorAssignService','tag','clipPath','collabStatus.fetchMiss','startsWith','none','DataLoaderService','_docTransformSelectionsService','collabStatus.offline','assignAColorForMemberID','registerBeforeClose','application/json','BuiltInUIPart','uni.network.url-service','focused$','endRow','_refRangeService','session.connection-failed','RxDisposable','activeSheet$','indexOf','collab-text-anchor-','_refreshCollabCursors','SOCKET_FAILED_RETRY','href','_revisionService','_startSheetCollabCursor','name','_setupSubUnitSync','getUndoRedoMutationParamsCache','Inject','IUniverInstanceService','APPLY_REVISION_CONFILICT','getRelativeToViewportCoord','UNIVER_DOC','_notificationService','init','with','show','Tooltip','getCollabEntity$','selection','undoState','Tools','_scheduleClearOtherTimer','includes','CollaborationUIEventService','getMember','_commandService','getLocalCacheKey','evenodd','symbol','onMouseMove','location','_imageIoService','CHANGESET_REVISION_CONFILICT','_startDocCollabCursor','saveImage','ACTIVE_UNIT_EVENT_CHANNEL','saveTaskMap','roomMembers','idSuffix','_themeService','getCurrentUnitForType','trim','session.will-retry','setParam','LICENSE_MAX_UNITS_EXCEEDED','unshift','getSkeleton','UNIVER_COLLABORATION_CLIENT_WEB_PLUGIN','_status$','IConfigService','getOwnPropertyDescriptor','DesktopCollaborationStatusDisplayController','m2Prime','InsertRangeMoveDownCommandId','getViewport','getConfig','SYNCED','result','_doCreateSocket','CollaborationEvent','_registerRenderDependencies','Failed','RemoteUniscriptService','_localeService','_config','handleInsertRow','isTransformMutationsWithChangesetSuccess','onTransformChange$','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','CollaborationSocketService','getTypeOfUnitDisposed$','save','handleIRemoveRow','LICENSE_DISTRO_REJECTED','exhaustSavingTask','hovered','[CollaborationDataLoaderController]','startRow','values','LOCAL_CACHE_INTERVAL','_drawAnchor','serializeRangeWithSheet','registerRefRange','stringify','_entityInit$','white','UniverCollaborationClientUIPlugin','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','_saveTaskMap','range','clearInterval','ticket','addObjects','some','PERMISSION_DENIED','createElement','useDependency','path','_drawRectRange','setInterval','_registerDependencies','replace','width','RECT','_init','_transformService','MoveRangeCommandId','DocSkeletonManagerService','replaceDocRanges','top','_labelPosition','filter','_backgroundColor','unload','_transformHistoryAndStateStack','dispose','TRANSFORM_CHANGE_OBSERVABLE_TYPE','EMAIL_VERIFY_CODE_NOT_FOUND_OR_EXPIRED','3138708ktOWtU','cursorInfo','editingUnit','_drawTextRange','getStateCache','url(#on-line-icon_clip0_910_349)','roomMembers$','WECHAT_HAS_BEEN_BOUND','touchDependencies','99krZCsJ','whenReady','_syncEditingCollabCursorService','executeCommand','_httpService','closePath','round','APPLY_PERMISSION_DENIED','push','2tQyWpt','_collabCursorController','_getMergeRange','hasOwnProperty','onPointerLeave$','YUUMI_NO_CUBOID_FOR_QUESTION','_draw','getRenderById','106660oRmGXI','OnLineIcon','disposeWithMe','generateRandomId','_updateURLWithCurrentState','_initResize','REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY','RemoveRowCommandId','_univerInstanceService','current','CommandType','isEditing','color','_anchorDot','unsubscribe','39igZOxF','UniverCollaborationClientPlugin','MOBILE_VERIFY_CODE_NOT_FOUND_OR_EXPIRED','assign','_scene','_initStatusListener','displayName','jiqing.500','498310LJWpfH','[RemoteUniscriptService]:\x20no\x20focused\x20unit','blue.400','skeleton','Rect','_getSheetObject','7102940AVFgjz','WebSocketService','_sheetSkeletonManagerService','6632SiXaGF','BrowserCollaborationSocketService','override','UniverInstanceType','newValue','text','children','lineTo','DocSelectionManagerService','transformMutationsWithChangeset','getActiveRange','VIEW_MAIN','_docSkeleton','_initDependencies','_hover','RefRangeService','registerRenderModule','throttleTime','_uiPartsService','subunit','NO_OTHER_CLIENTS_EDITING','ONLINE','unitID','green.600','APPLY_DUPLICATED','UNAUTHENTICATED','currentColor','getAncestorScale','_collaborationController','MOBILE_HAS_BEEN_BOUND','length','_getScale','rgba(255,\x20255,\x20255,\x200.01)','NodePositionConvertToRectRange','_context','pluginName','_initCommandExecutedListener','_urlService','deepClone','delete','executionId','univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','INVITE_CODE_ALREADY_BOUND','urlChange$','EMAIL_VERIFY_CODE_MISMATCH','_session','_docSkeletonManagerService','FromArray','engine','getSheetBySheetId','row','event$','toDisposable','runId','unitId','div','_hideTimer','CollaborationController','univer-flex\x20univer-items-center','setAlpha','_cachedData','LocaleService','transformIMECache','off-line-icon_clip0_910_343','sessionStatus$','combineLatest','InsertRowCommandId','YUUMI_CONNECTOR_URL_NOT_FOUND','arc','asObservable','_docClipboardService','UniverIcon','makeDirty','colorChannel1','forwardRef','_handleLeaveEvent','onRendered','setTimeout','YUUMI_ALL_TABLES_IS_INVALID','getVpScrollXYInfoByPosToVp','map','_unitStatus','transformSelections','column','prototype','syncEditingCollabCursor','findNodePositionByCharIndex','drawWith','enableLocalCache','registerComponent','setStateCache','TEXT','createInstance','_range','UPDATE_CURSOR','_disabled','isActive','_initEvent','HTTPService','body','OFFLINE','NOT_FOUND','loadUnit','attrs','_selfUnitIDs','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','onCommandExecuted','on-line-icon','selections','DocStateChangeManagerService','LOGIN_FAILED','ISocketService','mask','collabCursorState$','http://www.w3.org/2000/svg','_handleHover','apply','sessionTicket','getDocRanges','history','ITransformService','startColumn','black','_transformPreviousActiveRange','INVITE_CODE_REQUIRED','next','sheetID','handleIRemoveCol','unit','reconnect','flatMap','_cursors','defineProperty','215qGsMDz','m1Prime','OTHER_CLIENTS_EDITING','setActiveRange','min','transformRemoteChangeset','SOCKET_FAILED','CollaborationUIEventId','runOnServer','split','function','...','contains','UNIVER_SHEET','error','translate(.97)','shareReplay','_logService','getParam','_send','_localStorageService','transformStateCache','forEach','_onRefRangeChange','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','then','isArray','_docSyncEditingCollabCursorService','Vector2','getCollabCursors$','_injector','useCallback','requireSession','_memberService','YUUMI_URL_COL_OUT_OF_RANGE','data','_toggleOnline','NOT_COLLAB','InsertColCommandId','defIds','send','fromEvent','CONNECTOR_DATA_TOO_LARGE','_entities','Shape','SetSelectionsOperation','fromEventSubject','_color','triggerDblclick','Workbook','transformMutation','merge','handleInsertCol','_lastPointer','Optional','SetDocZoomRatioOperation','params','COLORS','off-line-icon','_onCursorUpdate','handleDeleteRangeMoveUp','RemoveColCommandId','UnitStatus','fillStyle','YUUMI_TABLE_NOT_FOUND_IN_UNIT','_colorIndex','useObservable','ICommandService','_localCacheService','onPointerEnter$','icon','createIdentifier','hide','getRangePointData','parse','YUUMI_ASYNCIO_CANCELLED','getUnitStatus$','INTERNAL_ERROR','_updateCollabCursors','getMemberID','_renderManagerService','switchMap','YUUMI_RATE_OVER_LIMIT','_removeClearOtherTimer','INVALID_INVITE_CODE','_ensureSubject','handleInsertRangeMoveDown','SNAPSHOT_INVALID_SNAPSHOT','YUUMI_SUBSCRIPTION_NOT_FOUND','cursorInfo$','_onCursorDelete','_clearOtherTimers','getUnitId','collab-rect-range-','subscribeEvent'];_0x287c=function(){return _0x5b9b53;};return _0x287c();}function Et(_0x189786,_0x560366){const _0x57e4ba=_0xa70a6a;let {radius:_0x225001,width:_0x519686,height:_0x145bbf}=_0x560366;_0x225001=_0x225001!=null?_0x225001:0x0,_0x519686=_0x519686!=null?_0x519686:0x1e,_0x145bbf=_0x145bbf!=null?_0x145bbf:0x1e;let _0x4a4f47=0x0,_0x429fbc=0x0,_0x1d3b1c=0x0;_0x4a4f47=_0x429fbc=_0x1d3b1c=Math['min'](_0x225001,_0x519686/0x2,_0x145bbf/0x2),_0x189786[_0x57e4ba(0x24c)](),_0x189786['moveTo'](_0x4a4f47,0x0),_0x189786['lineTo'](_0x519686-_0x429fbc,0x0),_0x189786[_0x57e4ba(0x17a)](_0x519686-_0x429fbc,_0x429fbc,_0x429fbc,Math['PI']*0x3/0x2,0x0,!0x1),_0x189786[_0x57e4ba(0x3c2)](_0x519686,_0x145bbf-_0x1d3b1c),_0x189786[_0x57e4ba(0x17a)](_0x519686-_0x1d3b1c,_0x145bbf-_0x1d3b1c,_0x1d3b1c,0x0,Math['PI']/0x2,!0x1),_0x189786['lineTo'](0x0,_0x145bbf),_0x189786['lineTo'](0x0,_0x4a4f47),_0x189786[_0x57e4ba(0x17a)](_0x4a4f47,_0x4a4f47,_0x4a4f47,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x189786[_0x57e4ba(0x38f)](),_0x560366[_0x57e4ba(0x25b)]&&(_0x189786['save'](),_0x189786[_0x57e4ba(0x1fa)]=_0x560366[_0x57e4ba(0x25b)],_0x560366['fillRule']===_0x57e4ba(0x326)?_0x189786[_0x57e4ba(0x25b)](_0x57e4ba(0x326)):_0x189786[_0x57e4ba(0x25b)](),_0x189786[_0x57e4ba(0x28b)]());}class ee extends p['Shape']{constructor(_0x4a369b,_0x40611a){const _0x640905=_0xa70a6a;super(_0x4a369b,_0x40611a),h(this,_0x640905(0x3a7)),h(this,_0x640905(0x3c0)),(this[_0x640905(0x3a7)]=_0x40611a==null?void 0x0:_0x40611a[_0x640905(0x3a7)],this[_0x640905(0x3c0)]=_0x40611a==null?void 0x0:_0x40611a[_0x640905(0x3c0)]);}static[_0xa70a6a(0x18d)](_0x52a3e2,_0x23050f){const _0x4fb090=_0xa70a6a,{text:_0x3102e3,color:_0x5af324}=_0x23050f;_0x52a3e2[_0x4fb090(0x352)](),_0x52a3e2[_0x4fb090(0x28f)]=_0x4fb090(0x34f);const _0x5e14ff=_0x52a3e2[_0x4fb090(0x2e3)](_0x3102e3)['width'],_0x11f75d=Math[_0x4fb090(0x1bf)](_0x5e14ff+0x2*ne,Te);Et(_0x52a3e2,{'height':W,'radius':0x4,'width':_0x11f75d,'fill':_0x5af324}),_0x52a3e2['fillStyle']=_0x4fb090(0x2e9);const _0x1faeff=ne,_0x30fa09=W-pt,_0x14c9e0=Te-0x2*ne;if(_0x5e14ff>_0x14c9e0){let _0x4a2e4a='',_0x1798ba=0x0;for(const _0x25e905 of _0x3102e3){const _0x1d862b=_0x52a3e2['measureText'](_0x25e905)[_0x4fb090(0x371)];if(_0x1798ba+_0x1d862b<=_0x14c9e0-_0x52a3e2[_0x4fb090(0x2e3)]('...')['width'])_0x4a2e4a+=_0x25e905,_0x1798ba+=_0x1d862b;else{_0x4a2e4a+=_0x4fb090(0x1c6);break;}}_0x52a3e2[_0x4fb090(0x289)](_0x4a2e4a,_0x1faeff,_0x30fa09);}else _0x52a3e2[_0x4fb090(0x289)](_0x3102e3,_0x1faeff,_0x30fa09);_0x52a3e2[_0x4fb090(0x28b)]();}[_0xa70a6a(0x399)](_0x1884ea){const _0x2b65f0=_0xa70a6a;ee[_0x2b65f0(0x18d)](_0x1884ea,this);}}const re=_0xa70a6a(0x309),bt='collab-text-range-',Ot=_0xa70a6a(0x218),F=0x6,Tt=1.5,oe=0x4,Rt=1.5,Dt=_0xa70a6a(0x156);class Re{constructor(_0x238db3,_0x7985af,_0x5b767b,_0x38a49c){const _0x383ca9=_0xa70a6a;h(this,_0x383ca9(0x232),[]),h(this,_0x383ca9(0x23b),null),h(this,_0x383ca9(0x2c0),null),h(this,_0x383ca9(0x3a8),null),h(this,'_hideTimer',null),h(this,_0x383ca9(0x21d),null),(this[_0x383ca9(0x233)]=_0x238db3,this['_scene']=_0x7985af,this[_0x383ca9(0x3c7)]=_0x5b767b,this['_document']=_0x38a49c,this['_render']());}set[_0xa70a6a(0x3c9)](_0x5f0bbd){const _0x55f9b8=_0xa70a6a;_0x5f0bbd?(this[_0x55f9b8(0x3a8)]&&this[_0x55f9b8(0x3a8)][_0x55f9b8(0x203)](),this[_0x55f9b8(0x2c0)]&&this[_0x55f9b8(0x2c0)][_0x55f9b8(0x31a)]()):(this[_0x55f9b8(0x3a8)]&&this[_0x55f9b8(0x3a8)]['show'](),this[_0x55f9b8(0x2c0)]&&this[_0x55f9b8(0x2c0)]['hide']());}[_0xa70a6a(0x37e)](){const _0x1a5693=_0xa70a6a;for(const _0x407da8 of this[_0x1a5693(0x232)])_0x407da8[_0x1a5693(0x37e)]();this[_0x1a5693(0x2c0)]&&this[_0x1a5693(0x2c0)]['dispose'](),this['_anchorDot']&&this['_anchorDot']['dispose'](),this['_anchor']&&this[_0x1a5693(0x23b)][_0x1a5693(0x37e)](),this[_0x1a5693(0x21d)]&&this[_0x1a5693(0x21d)]();}['_render'](){const _0x10844f=_0xa70a6a;var _0x9ec2b0;const {_docSkeleton:_0x4f07b3,_document:_0x873662}=this,{color:_0x5e96ef,name:_0x421660,ranges:_0x485f51}=this[_0x10844f(0x233)],_0x7e3b5=_0x873662['getOffsetConfig'](),{docsLeft:_0x3c74c0,docsTop:_0x1f3b1d}=_0x7e3b5,_0x471524=new E['NodePositionConvertToCursor'](_0x7e3b5,_0x4f07b3);for(const {startOffset:_0x377988,endOffset:_0x5f5bf7,rangeType:_0x2cacfc,segmentId:_0x236f82,segmentPage:_0x3dbbf4,collapsed:_0x2a89a4,isActive:_0x5339d2}of _0x485f51){const _0x164fda=_0x4f07b3['findNodePositionByCharIndex'](_0x377988,!0x0,_0x236f82,_0x3dbbf4);let _0x3928e8=_0x4f07b3[_0x10844f(0x18c)](_0x5f5bf7,!0x0,_0x236f82,_0x3dbbf4);if(_0x3928e8==null&&(_0x3928e8=_0x4f07b3[_0x10844f(0x18c)](_0x5f5bf7-0x1,!0x1,_0x236f82,_0x3dbbf4)),_0x5339d2){const {contentBoxPointGroup:_0xb64990}=_0x471524[_0x10844f(0x204)](_0x3928e8,_0x3928e8);if(_0xb64990[_0x10844f(0x154)]===0x0)continue;this['_drawAnchor'](_0x5e96ef,_0xb64990,_0x3c74c0,_0x1f3b1d,_0x421660),this[_0x10844f(0x21d)]=this[_0x10844f(0x1a9)]();}if(_0x164fda&&_0x3928e8){if(_0x2cacfc===a[_0x10844f(0x2b2)][_0x10844f(0x372)]){const _0xd4f632=new E[(_0x10844f(0x157))](_0x7e3b5,_0x4f07b3),{pointGroup:_0x1cf160}=(_0x9ec2b0=_0xd4f632[_0x10844f(0x204)](_0x164fda,_0x3928e8))!=null?_0x9ec2b0:{};if(_0x1cf160==null||_0x1cf160[_0x10844f(0x154)]===0x0)continue;this[_0x10844f(0x36d)](_0x5e96ef,_0x1cf160,_0x3c74c0,_0x1f3b1d);}else{if(!_0x2a89a4){const {borderBoxPointGroup:_0x38ace8}=_0x471524['getRangePointData'](_0x164fda,_0x3928e8);if(_0x38ace8['length']===0x0)continue;this[_0x10844f(0x384)](_0x5e96ef,_0x38ace8,_0x3c74c0,_0x1f3b1d);}}}}}[_0xa70a6a(0x35b)](_0x12c3c0,_0x3c2a72,_0x935394,_0x380b64,_0x4206bd){const _0x5e9191=_0xa70a6a,_0x265f0b=this[_0x5e9191(0x291)](_0x3c2a72),{left:_0x2ff0c5,top:_0x4c68be,height:_0x32aa85}=_0x265f0b,_0x3ca5de=this[_0x5e9191(0x155)](),_0x2cf38a=Rt/_0x3ca5de,_0x111d2e=new p[(_0x5e9191(0x3b6))](re+a[_0x5e9191(0x39e)](F),{'left':_0x2ff0c5+_0x935394-_0x2cf38a,'top':_0x4c68be+_0x380b64,'height':_0x32aa85,'width':Tt,'fill':_0x12c3c0||p[_0x5e9191(0x276)](a['COLORS'][_0x5e9191(0x1b0)],0x0),'strokeWidth':_0x2cf38a,'stroke':Dt,'evented':!0x0});this[_0x5e9191(0x23b)]=_0x111d2e,this[_0x5e9191(0x3ae)][_0x5e9191(0x235)](_0x111d2e,E[_0x5e9191(0x24e)]);const _0x9bfe88=new p[(_0x5e9191(0x3b6))](re+a[_0x5e9191(0x39e)](F),{'left':_0x2ff0c5+_0x935394-_0x2cf38a,'top':_0x4c68be+_0x380b64-oe/0x2,'height':oe,'width':oe,'fill':_0x12c3c0||p['getColor'](a[_0x5e9191(0x1f4)][_0x5e9191(0x1b0)],0x0),'strokeWidth':0x0,'stroke':_0x12c3c0||p['getColor'](a[_0x5e9191(0x1f4)][_0x5e9191(0x1b0)],0x0),'evented':!0x1});this[_0x5e9191(0x3a8)]=_0x9bfe88,this[_0x5e9191(0x3ae)][_0x5e9191(0x235)](_0x9bfe88,E['TEXT_RANGE_LAYER_INDEX']);const _0x3e3ad6=new ee(re+a['generateRandomId'](F),{'left':_0x2ff0c5+_0x935394-_0x2cf38a,'top':_0x4c68be+_0x380b64-W,'text':_0x4206bd,'color':_0x12c3c0});this[_0x5e9191(0x2c0)]=_0x3e3ad6,this[_0x5e9191(0x3ae)][_0x5e9191(0x235)](_0x3e3ad6,E['TEXT_RANGE_LAYER_INDEX']),this[_0x5e9191(0x3c9)]=!0x1;}['_handleHover'](){const _0x5dd50e=_0xa70a6a,_0x5f2d0f=this[_0x5dd50e(0x23b)][_0x5dd50e(0x200)]['subscribeEvent'](()=>{this['_hover']=!0x0;}),_0x5ccac4=this[_0x5dd50e(0x23b)][_0x5dd50e(0x397)]['subscribeEvent'](()=>{const _0x2655f0=_0x5dd50e;this[_0x2655f0(0x16e)]&&clearTimeout(this[_0x2655f0(0x16e)]),this[_0x2655f0(0x16e)]=setTimeout(()=>{this['_hover']=!0x1;},0x7d0);});return()=>{const _0x4450b0=_0x5dd50e;_0x5f2d0f[_0x4450b0(0x3a9)](),_0x5ccac4['unsubscribe']();};}[_0xa70a6a(0x384)](_0x42ab36,_0x492a01,_0x5038fb,_0x2944c2){const _0x11fe99=_0xa70a6a,_0x2ace60=new a[(_0x11fe99(0x22f))](_0x42ab36)[_0x11fe99(0x171)](0.2)['toRgbString'](),_0x29cd65=new p[(_0x11fe99(0x2aa))](bt+a[_0x11fe99(0x39e)](F),{'pointsGroup':_0x492a01,'fill':_0x2ace60||p[_0x11fe99(0x276)](a[_0x11fe99(0x1f4)][_0x11fe99(0x1b0)],0.2),'left':_0x5038fb,'top':_0x2944c2,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x11fe99(0x232)][_0x11fe99(0x392)](_0x29cd65),this['_scene'][_0x11fe99(0x235)](_0x29cd65,E[_0x11fe99(0x24e)]);}[_0xa70a6a(0x36d)](_0xe9114c,_0x271610,_0x5bd409,_0xab8fe6){const _0x25bfbd=_0xa70a6a,_0x51df9c=new a[(_0x25bfbd(0x22f))](_0xe9114c)[_0x25bfbd(0x171)](0.2)[_0x25bfbd(0x222)](),_0x4b3db3=new p[(_0x25bfbd(0x2aa))](Ot+a['generateRandomId'](F),{'pointsGroup':_0x271610,'fill':_0x51df9c||p[_0x25bfbd(0x276)](a['COLORS'][_0x25bfbd(0x1b0)],0.2),'left':_0x5bd409,'top':_0xab8fe6,'evented':!0x1,'debounceParentDirty':!0x1});this['_shapes'][_0x25bfbd(0x392)](_0x4b3db3),this[_0x25bfbd(0x3ae)][_0x25bfbd(0x235)](_0x4b3db3,E[_0x25bfbd(0x24e)]);}[_0xa70a6a(0x291)](_0x5b410c){const _0x1d2b6c=_0x5b410c[0x0],_0x409e05=_0x1d2b6c[0x0],_0x56ae98=_0x1d2b6c[0x2],{x:_0x5e51f2,y:_0x2e7734}=_0x409e05,{x:_0x5794f1,y:_0x1c6fee}=_0x56ae98;return{'left':_0x5e51f2,'top':_0x2e7734,'width':_0x5794f1-_0x5e51f2,'height':_0x1c6fee-_0x2e7734};}[_0xa70a6a(0x155)](){const _0xcec85=_0xa70a6a,{scaleX:_0x33bfa8,scaleY:_0x4434d4}=this['_scene']['getAncestorScale']();return Math[_0xcec85(0x2c1)](_0x33bfa8,_0x4434d4);}}var Ut=Object[_0xa70a6a(0x33d)],Nt=(_0x2dd33c,_0x46749c,_0x5f153c,_0x23011a)=>{const _0x971064=_0xa70a6a;for(var _0x3a803b=_0x23011a>0x1?void 0x0:_0x23011a?Ut(_0x46749c,_0x5f153c):_0x46749c,_0x27eecf=_0x2dd33c[_0x971064(0x154)]-0x1,_0x4a8da8;_0x27eecf>=0x0;_0x27eecf--)(_0x4a8da8=_0x2dd33c[_0x27eecf])&&(_0x3a803b=_0x4a8da8(_0x3a803b)||_0x3a803b);return _0x3a803b;},X=(_0x2f7ea7,_0x14b073)=>(_0x7b29e9,_0x1d4e85)=>_0x14b073(_0x7b29e9,_0x1d4e85,_0x2f7ea7);let fe=class extends a[_0xa70a6a(0x306)]{constructor(_0x1bbf8a,_0x23ecfb,_0x3010ba,_0x43e2b6,_0x9221a9){const _0x1c51a0=_0xa70a6a;super(),h(this,_0x1c51a0(0x2d7),[]),h(this,_0x1c51a0(0x1b9),[]),(this[_0x1c51a0(0x158)]=_0x1bbf8a,this['_docSkeletonManagerService']=_0x23ecfb,this[_0x1c51a0(0x394)]=_0x3010ba,this[_0x1c51a0(0x324)]=_0x43e2b6,this[_0x1c51a0(0x332)]=_0x9221a9,this[_0x1c51a0(0x373)]());}[_0xa70a6a(0x373)](){const _0x4cc8f2=_0xa70a6a,_0x49d322=this[_0x4cc8f2(0x158)][_0x4cc8f2(0x16c)],_0x5e0999=this[_0x4cc8f2(0x164)];this[_0x4cc8f2(0x39d)](d[_0x4cc8f2(0x177)]([this[_0x4cc8f2(0x394)][_0x4cc8f2(0x1d8)](_0x49d322),this[_0x4cc8f2(0x332)]['currentTheme$']])['pipe']($[_0x4cc8f2(0x186)](([_0x27fb18,_0xac15b1])=>({'skeleton':_0x5e0999[_0x4cc8f2(0x339)](),'cursors':[..._0x27fb18['values']()][_0x4cc8f2(0x1b8)](_0x2fb58a=>({..._0x2fb58a,'color':this[_0x4cc8f2(0x332)]['getColorFromTheme'](_0x2fb58a[_0x4cc8f2(0x3a7)])}))})))['subscribe'](_0x16ba62=>{const _0x2a64a9=_0x4cc8f2;if(this[_0x2a64a9(0x264)](),_0x16ba62){const {skeleton:_0x2523f7,cursors:_0x1598d4}=_0x16ba62;this[_0x2a64a9(0x209)](_0x2523f7,_0x1598d4);}})),this[_0x4cc8f2(0x3a0)](),this[_0x4cc8f2(0x15a)]();}[_0xa70a6a(0x209)](_0x33f414,_0x19f810){const _0x1d3bbd=_0xa70a6a,{scene:_0x31b1ea,mainComponent:_0x13f83c}=this[_0x1d3bbd(0x158)],_0x5db86a=_0x19f810['map'](_0x2f6fa0=>new Re(_0x2f6fa0,_0x31b1ea,_0x33f414,_0x13f83c));this[_0x1d3bbd(0x2d7)]=_0x5db86a,this[_0x1d3bbd(0x1b9)]=_0x19f810;}[_0xa70a6a(0x30a)](){const _0x14b383=_0xa70a6a;this[_0x14b383(0x264)]();const {scene:_0x2ffd15,mainComponent:_0x8dfd94}=this[_0x14b383(0x158)],_0x4f4f71=this[_0x14b383(0x164)]['getSkeleton'](),_0x15403e=this[_0x14b383(0x1b9)][_0x14b383(0x186)](_0x1b1f26=>new Re(_0x1b1f26,_0x2ffd15,_0x4f4f71,_0x8dfd94));this['_cursorShapes']=_0x15403e;}['_removeCollabCursors'](){const _0x379e9b=_0xa70a6a;this['_cursorShapes']['forEach'](_0x22d52c=>_0x22d52c[_0x379e9b(0x37e)]()),this['_cursorShapes']=[];}[_0xa70a6a(0x15a)](){const _0x345d9c=_0xa70a6a,_0x36cf85=[E[_0x345d9c(0x1f2)]['id']];this[_0x345d9c(0x39d)](this[_0x345d9c(0x324)][_0x345d9c(0x1a0)](_0x1fa85c=>{const _0x5921b1=_0x345d9c;_0x36cf85[_0x5921b1(0x321)](_0x1fa85c['id'])&&_0x1fa85c['params'][_0x5921b1(0x16c)]===this[_0x5921b1(0x158)][_0x5921b1(0x16c)]&&this['_refreshCollabCursors']();}));}[_0xa70a6a(0x3a0)](){const _0x3a6b7d=_0xa70a6a;this[_0x3a6b7d(0x39d)](a[_0x3a6b7d(0x1e9)](this['_context'][_0x3a6b7d(0x166)][_0x3a6b7d(0x34e)])[_0x3a6b7d(0x28e)]($[_0x3a6b7d(0x37a)](_0x2d1d25=>_0x2d1d25[_0x3a6b7d(0x221)]===p[_0x3a6b7d(0x37f)][_0x3a6b7d(0x257)]),$[_0x3a6b7d(0x3cc)](0x10))[_0x3a6b7d(0x236)](()=>{this['_refreshCollabCursors']();}));}};fe=Nt([X(0x1,a[_0xa70a6a(0x312)](Y[_0xa70a6a(0x376)])),X(0x2,a['Inject'](x)),X(0x3,a[_0xa70a6a(0x1fe)]),X(0x4,a[_0xa70a6a(0x312)](a[_0xa70a6a(0x21a)]))],fe);const Mt=0x1,Lt=1.5;class $e extends p[_0xa70a6a(0x1e7)]{constructor(_0x4c47a6,_0x5ddf96){const _0x45771d=_0xa70a6a;super(_0x4c47a6,_0x5ddf96),h(this,_0x45771d(0x1ea)),h(this,_0x45771d(0x21c),!0x1),h(this,'_range'),h(this,_0x45771d(0x293),''),h(this,_0x45771d(0x379),_0x45771d(0x378)),h(this,_0x45771d(0x37b)),(_0x5ddf96&&this[_0x45771d(0x2bf)](_0x5ddf96),this[_0x45771d(0x200)][_0x45771d(0x219)](()=>this[_0x45771d(0x2bf)]({'hovered':!0x0})),this[_0x45771d(0x397)]['subscribeEvent'](()=>this[_0x45771d(0x2bf)]({'hovered':!0x1})));}['setShapeProps'](_0x56f9a5){const _0x45f121=_0xa70a6a;var _0x3dcd6b,_0x2a5290,_0x369d3f,_0x3f5285,_0x2ac5b4,_0x257302;this[_0x45f121(0x1ea)]=(_0x3dcd6b=_0x56f9a5[_0x45f121(0x3a7)])!=null?_0x3dcd6b:this['_color'],this[_0x45f121(0x21c)]=(_0x2a5290=_0x56f9a5[_0x45f121(0x356)])!=null?_0x2a5290:this[_0x45f121(0x21c)],this['_range']=(_0x369d3f=_0x56f9a5[_0x45f121(0x364)])!=null?_0x369d3f:this[_0x45f121(0x193)],this[_0x45f121(0x293)]=(_0x3f5285=_0x56f9a5[_0x45f121(0x30f)])!=null?_0x3f5285:this['_name'],this[_0x45f121(0x379)]=(_0x2ac5b4=_0x56f9a5[_0x45f121(0x21b)])!=null?_0x2ac5b4:this[_0x45f121(0x379)],this[_0x45f121(0x37b)]=(_0x257302=_0x56f9a5[_0x45f121(0x265)])!=null?_0x257302:this[_0x45f121(0x37b)],this['transformByState']({'width':_0x56f9a5[_0x45f121(0x371)],'height':_0x56f9a5[_0x45f121(0x244)]});}['onMouseMove'](_0x2efed0){const _0x291ac8=_0xa70a6a,{row:_0x397ef1,column:_0x359e3c}=_0x2efed0;if(_0x397ef1>=this[_0x291ac8(0x193)][_0x291ac8(0x358)]&&_0x397ef1<=this[_0x291ac8(0x193)][_0x291ac8(0x303)]&&_0x359e3c>=this[_0x291ac8(0x193)][_0x291ac8(0x1af)]&&_0x359e3c<=this['_range']['endColumn']){this[_0x291ac8(0x2bf)]({'hovered':!0x0});return;}this[_0x291ac8(0x2bf)]({'hovered':!0x1});}[_0xa70a6a(0x1eb)](_0xe030eb){return!0x1;}[_0xa70a6a(0x399)](_0x846d30){const _0x201465=_0xa70a6a;p[_0x201465(0x3b6)][_0x201465(0x18d)](_0x846d30,{'width':this[_0x201465(0x371)],'height':this[_0x201465(0x244)],'strokeWidth':Lt,'stroke':this[_0x201465(0x1ea)],'evented':!0x1,'fill':this[_0x201465(0x37b)]}),this['_hovered']&&(_0x846d30['save'](),_0x846d30[_0x201465(0x261)](0x1,0x0,0x0,0x1,this['width'],this[_0x201465(0x379)]===_0x201465(0x259)?0x0:-W),ee['drawWith'](_0x846d30,{'text':this[_0x201465(0x293)],'color':this[_0x201465(0x1ea)]}),_0x846d30[_0x201465(0x28b)]());}}var Pt=Object[_0xa70a6a(0x33d)],wt=(_0x56b77c,_0x383521,_0x29fe6e,_0xc539c8)=>{for(var _0x39d7e5=_0xc539c8>0x1?void 0x0:_0xc539c8?Pt(_0x383521,_0x29fe6e):_0x383521,_0x2c5d59=_0x56b77c['length']-0x1,_0x57150d;_0x2c5d59>=0x0;_0x2c5d59--)(_0x57150d=_0x56b77c[_0x2c5d59])&&(_0x39d7e5=_0x57150d(_0x39d7e5)||_0x39d7e5);return _0x39d7e5;},ae=(_0x323b03,_0x38de22)=>(_0x4a511f,_0x190d03)=>_0x38de22(_0x4a511f,_0x190d03,_0x323b03);const At=0x1389;let Ie=class extends a['RxDisposable']{constructor(_0x4f231e,_0xf7c0f4,_0x486a68,_0x5799fc){const _0x3f54ea=_0xa70a6a;super(),h(this,_0x3f54ea(0x1b9),new Set()),h(this,_0x3f54ea(0x1f0),null),(this[_0x3f54ea(0x158)]=_0x4f231e,this[_0x3f54ea(0x3ba)]=_0xf7c0f4,this[_0x3f54ea(0x394)]=_0x486a68,this[_0x3f54ea(0x332)]=_0x5799fc,this[_0x3f54ea(0x373)]());}[_0xa70a6a(0x373)](){const _0x30d159=_0xa70a6a;this[_0x30d159(0x3ba)]['currentSkeleton$'][_0x30d159(0x28e)]($[_0x30d159(0x22d)](this[_0x30d159(0x2ef)]),$[_0x30d159(0x20c)](_0x2d4f79=>{const _0xd97547=_0x30d159;if(_0x2d4f79){const _0xa60205=_0x2d4f79[_0xd97547(0x25f)];return d['combineLatest'](this['_collabCursorController'][_0xd97547(0x1d8)](this['_context'][_0xd97547(0x16c)]),this[_0xd97547(0x332)]['currentTheme$'])['pipe']($[_0xd97547(0x186)](([_0x3c980c,_0x562087])=>{const _0xf5ddee=_0xd97547,_0x133c83=new Map();return _0x3c980c[_0xf5ddee(0x1d1)]((_0x2d4620,_0x438e1d)=>{const _0x2e5678=_0xf5ddee;if(_0x2d4620[_0x2e5678(0x1b4)]===_0xa60205){const _0x529bf2={..._0x2d4620};_0x529bf2[_0x2e5678(0x3a7)]=this[_0x2e5678(0x332)]['getColorFromTheme'](_0x2d4620[_0x2e5678(0x3a7)]),_0x133c83[_0x2e5678(0x2d9)](_0x438e1d,_0x529bf2);}}),{'skeleton':_0x2d4f79,'cursors':_0x133c83};}));}return d['of']({'skeleton':null,'cursors':new Map()});}))[_0x30d159(0x236)](({skeleton:_0x14f7c9,cursors:_0x338a94})=>{const _0x64f2fc=_0x30d159;this[_0x64f2fc(0x264)](),_0x14f7c9&&this[_0x64f2fc(0x209)](_0x14f7c9,_0x338a94);}),this[_0x30d159(0x3ba)]['currentSkeleton$'][_0x30d159(0x236)](_0x4596a6=>{const _0x56a3e4=_0x30d159;if(_0x4596a6==null)return;const {skeleton:_0x442202}=_0x4596a6,{scene:_0x4c3137}=this[_0x56a3e4(0x158)];_0x4c3137['onPointerMove$'][_0x56a3e4(0x219)](a[_0x56a3e4(0x2af)](_0xe18bbe=>{const _0x34b6ed=_0x56a3e4;var _0x5f4858,_0x4727d8;const {offsetX:_0x552dfd,offsetY:_0x15991f}=_0xe18bbe,{x:_0x397352,y:_0x659536}=_0x4c3137[_0x34b6ed(0x315)](p[_0x34b6ed(0x1d7)][_0x34b6ed(0x165)]([_0x552dfd,_0x15991f])),{scaleX:_0x45a652,scaleY:_0x33751e}=_0x4c3137[_0x34b6ed(0x151)](),_0x588c6a=_0x4c3137[_0x34b6ed(0x341)](p['SHEET_VIEWPORT_KEY'][_0x34b6ed(0x3c6)]),_0x442d8d=_0x4c3137[_0x34b6ed(0x185)](p['Vector2']['FromArray']([_0x397352,_0x659536]),_0x588c6a),_0x26cd8a=_0x442202['getCellPositionByOffset'](_0x552dfd,_0x15991f,_0x45a652,_0x33751e,_0x442d8d);((_0x5f4858=this[_0x34b6ed(0x1f0)])==null?void 0x0:_0x5f4858[_0x34b6ed(0x189)])===_0x26cd8a[_0x34b6ed(0x189)]&&((_0x4727d8=this[_0x34b6ed(0x1f0)])==null?void 0x0:_0x4727d8[_0x34b6ed(0x168)])===_0x26cd8a[_0x34b6ed(0x168)]||this[_0x34b6ed(0x1b9)][_0x34b6ed(0x1d1)](_0xf8d8e6=>{const _0xfa8a3b=_0x34b6ed;_0xf8d8e6[_0xfa8a3b(0x328)](_0x26cd8a);});},0x64));});}['_updateCollabCursors'](_0x3a9b46,_0x3f234a){const _0x460185=_0xa70a6a;var _0x3d9e44;const _0x26b509=(_0x3d9e44=this['_sheetSkeletonManagerService']['getCurrent']())==null?void 0x0:_0x3d9e44[_0x460185(0x3b5)];if(!_0x26b509)return;const _0x216b93=this['_getSheetObject']();if(!_0x216b93)return;this[_0x460185(0x1b9)]['forEach'](_0x5352a9=>{const _0x197dca=_0x460185;_0x5352a9[_0x197dca(0x17e)]();});const {scene:_0x34968d}=_0x216b93,_0x1a7a30=yt(Array[_0x460185(0x2c9)](_0x3f234a[_0x460185(0x359)]()))['map'](_0x1dcc9a=>{const _0x50b995=_0x460185,{color:_0x3f0930,range:_0x31befc,name:_0x45516d,selection:_0x28b080,sheetID:_0x1a5a77}=_0x1dcc9a,{startColumn:_0x190f34,startRow:_0x466ab7,endColumn:_0x443958,endRow:_0x5cf37a}=_0x31befc,_0x133502=G['getCoordByCell'](_0x466ab7,_0x190f34,_0x34968d,_0x26b509),_0x144d43=G[_0x50b995(0x2b5)](_0x5cf37a,_0x443958,_0x34968d,_0x26b509),{columnHeaderHeightAndMarginTop:_0x44fde5}=_0x26b509,{startX:_0x180c16,startY:_0x738b33}=_0x133502,{endX:_0x45589c,endY:_0x4f25b4}=_0x144d43,_0x2087b4=_0x45589c-_0x180c16,_0x2cded0=_0x4f25b4-_0x738b33,_0x5c236c={'labelPosition':_0x738b33-_0x44fde5>=W?'top':'bottom','sheetID':_0x1a5a77,'range':_0x31befc,'color':_0x3f0930,'name':_0x45516d,'selection':_0x28b080,'left':_0x180c16,'top':_0x738b33,'width':_0x2087b4,'height':_0x2cded0,'evented':!0x1,'zIndex':At};return new $e(_0x45516d,_0x5c236c);});_0x34968d[_0x460185(0x367)](_0x1a7a30,Mt),this[_0x460185(0x1b9)]=new Set(_0x1a7a30);}['_removeCollabCursors'](){const _0x49f32d=_0xa70a6a;var _0x30e9dd;(_0x30e9dd=this[_0x49f32d(0x1b9)])==null||_0x30e9dd[_0x49f32d(0x1d1)](_0x3d0254=>_0x3d0254[_0x49f32d(0x37e)]());}[_0xa70a6a(0x3b7)](){const _0x4f6796=_0xa70a6a;return G[_0x4f6796(0x2b0)](this[_0x4f6796(0x158)][_0x4f6796(0x1b6)],this[_0x4f6796(0x158)]);}};Ie=wt([ae(0x1,a['Inject'](G[_0xa70a6a(0x2d5)])),ae(0x2,a['Inject'](x)),ae(0x3,a[_0xa70a6a(0x312)](a[_0xa70a6a(0x21a)]))],Ie);function yt(_0x1e61ff){const _0x253b9f=_0xa70a6a,_0x5cda1b=new Map();return _0x1e61ff[_0x253b9f(0x1d1)](_0x358714=>{const _0x50ed3f=_0x253b9f;if(_0x5cda1b['has'](_0x358714[_0x50ed3f(0x31d)])){const _0x220961=_0x5cda1b['get'](_0x358714['selection']);_0x220961[_0x50ed3f(0x30f)]+=',\x20'+_0x358714[_0x50ed3f(0x30f)];}else _0x5cda1b[_0x50ed3f(0x2d9)](_0x358714[_0x50ed3f(0x31d)],_0x358714);}),Array[_0x253b9f(0x2c9)](_0x5cda1b[_0x253b9f(0x359)]());}var $t=Object[_0xa70a6a(0x33d)],xt=(_0x2c51e8,_0x3daff8,_0x17b3be,_0x4ef3f1)=>{const _0x10bd18=_0xa70a6a;for(var _0x2eeca0=_0x4ef3f1>0x1?void 0x0:_0x4ef3f1?$t(_0x3daff8,_0x17b3be):_0x3daff8,_0x4953b9=_0x2c51e8[_0x10bd18(0x154)]-0x1,_0x23ad95;_0x4953b9>=0x0;_0x4953b9--)(_0x23ad95=_0x2c51e8[_0x4953b9])&&(_0x2eeca0=_0x23ad95(_0x2eeca0)||_0x2eeca0);return _0x2eeca0;},y=(_0x1c7af5,_0x102c1f)=>(_0x1c138a,_0x271065)=>_0x102c1f(_0x1c138a,_0x271065,_0x1c7af5);let q=class extends a[_0xa70a6a(0x270)]{constructor(_0x15c812,_0xd0031d,_0x18b70b,_0x2c2650,_0x150e3d,_0x4ea12c){const _0x2a9cb2=_0xa70a6a;super(),this[_0x2a9cb2(0x2ed)]=_0x15c812,this['_localCacheService']=_0xd0031d,this[_0x2a9cb2(0x28a)]=_0x18b70b,this[_0x2a9cb2(0x226)]=_0x2c2650,this[_0x2a9cb2(0x317)]=_0x150e3d,this['_localeService']=_0x4ea12c,this[_0x2a9cb2(0x220)](),this[_0x2a9cb2(0x197)]();}[_0xa70a6a(0x220)](){const _0x371e5b=_0xa70a6a;this['disposeWithMe'](this[_0x371e5b(0x2ed)][_0x371e5b(0x2fe)](()=>{const _0x46d2c8=_0x371e5b;if(this[_0x46d2c8(0x1ff)][_0x46d2c8(0x32f)][_0x46d2c8(0x237)])return this['_localeService']['t']('collaboration-client.offline-data-not-saved');}));}[_0xa70a6a(0x197)](){const _0x1917d9=_0xa70a6a;this[_0x1917d9(0x39d)](this[_0x1917d9(0x28a)][_0x1917d9(0x169)][_0x1917d9(0x236)](_0x398508=>{const _0x4175b3=_0x1917d9;_0x398508['id']===u[_0x4175b3(0x1c2)]['OTHER_CLIENT_EDITING']&&this['_messageService']['show']({'type':D['MessageType']['Warning'],'content':this[_0x4175b3(0x34a)]['t']('collaboration.single-unit.warning')}),_0x398508['id']===u[_0x4175b3(0x1c2)]['CLOSE_ROOM']&&this[_0x4175b3(0x226)][_0x4175b3(0x31a)]({'type':D['MessageType'][_0x4175b3(0x2c3)],'content':this[_0x4175b3(0x34a)]['t']('collaboration.closeRoom')}),_0x398508['id']===u[_0x4175b3(0x1c2)][_0x4175b3(0x369)]&&this['_notificationService'][_0x4175b3(0x31a)]({'title':this[_0x4175b3(0x34a)]['t'](_0x4175b3(0x26d)),'content':this[_0x4175b3(0x34a)]['t'](_0x4175b3(0x29a)),'type':_0x4175b3(0x1c9),'duration':0x0}),_0x398508['id']===u[_0x4175b3(0x1c2)]['CONFLICT']&&this[_0x4175b3(0x226)][_0x4175b3(0x31a)]({'type':D[_0x4175b3(0x27a)]['Error'],'content':this[_0x4175b3(0x34a)]['t'](_0x4175b3(0x2cb))+'('+_0x398508[_0x4175b3(0x1de)]+')'}),_0x398508['id']===u[_0x4175b3(0x1c2)]['JOIN_ROOM_FAILED']&&this['_messageService'][_0x4175b3(0x31a)]({'type':D[_0x4175b3(0x27a)][_0x4175b3(0x2c3)],'content':this['_localeService']['t'](_0x398508['data']||'')}),_0x398508['id']===u[_0x4175b3(0x1c2)][_0x4175b3(0x30b)]&&this[_0x4175b3(0x226)][_0x4175b3(0x31a)]({'type':D['MessageType']['Warning'],'content':this['_localeService']['t'](_0x4175b3(0x335))}),_0x398508['id']===u[_0x4175b3(0x1c2)][_0x4175b3(0x1c1)]&&this[_0x4175b3(0x226)][_0x4175b3(0x31a)]({'type':D['MessageType'][_0x4175b3(0x23c)],'content':this['_localeService']['t'](_0x4175b3(0x305))}),_0x398508['id']===u[_0x4175b3(0x1c2)]['SUBMIT_CHANGESET_TIMEOUT']&&this[_0x4175b3(0x226)]['show']({'type':D['MessageType']['Error'],'content':this['_localeService']['t'](_0x4175b3(0x249))});}));}};q=xt([y(0x0,O[_0xa70a6a(0x2ce)]),y(0x1,u[_0xa70a6a(0x2b4)]),y(0x2,a['Inject'](u[_0xa70a6a(0x322)])),y(0x3,O['IMessageService']),y(0x4,O[_0xa70a6a(0x2d4)]),y(0x5,a[_0xa70a6a(0x312)](a[_0xa70a6a(0x173)]))],q);const Bt='collaboration-client-ui.config',De={};var jt=Object[_0xa70a6a(0x33d)],kt=(_0x3ce9cb,_0x5b718a,_0x2fc69f,_0x1f244)=>{const _0x19c106=_0xa70a6a;for(var _0x5f4e45=_0x1f244>0x1?void 0x0:_0x1f244?jt(_0x5b718a,_0x2fc69f):_0x5b718a,_0x5287f0=_0x3ce9cb[_0x19c106(0x154)]-0x1,_0xdaac3c;_0x5287f0>=0x0;_0x5287f0--)(_0xdaac3c=_0x3ce9cb[_0x5287f0])&&(_0x5f4e45=_0xdaac3c(_0x5f4e45)||_0x5f4e45);return _0x5f4e45;},Ue=(_0x77fd64,_0x26dbf9)=>(_0x2a5abe,_0x116deb)=>_0x26dbf9(_0x2a5abe,_0x116deb,_0x77fd64);let z=class{constructor(_0x1334d0,_0x55648d){const _0x2fdb32=_0xa70a6a;this[_0x2fdb32(0x374)]=_0x1334d0,this['_renderManagerService']=_0x55648d;}[_0xa70a6a(0x174)](_0x474911){this['_transformUndoRedoStack'](_0x474911),this['_transformPreviousActiveRange'](_0x474911);}['transformRemoteChangeset'](_0x5e03de){const _0x1b90dd=_0xa70a6a,{unitID:_0x1b32fd}=_0x5e03de,_0x295459=this['_renderManagerService']['getRenderById'](_0x1b32fd)[_0x1b90dd(0x319)](E['DocIMEInputManagerService']),{redoCache:_0x39cea0}=_0x295459[_0x1b90dd(0x311)]();if(_0x39cea0[_0x1b90dd(0x154)]===0x0)return _0x5e03de;let _0x2ffb7d=a[_0x1b90dd(0x31f)][_0x1b90dd(0x15c)](_0x5e03de['mutations'][0x0]);for(let _0x2a5a30=0x0;_0x2a5a30<_0x39cea0[_0x1b90dd(0x154)];_0x2a5a30++){const _0x17842d={'id':_0x1b90dd(0x2ad),'params':{..._0x39cea0[_0x2a5a30]}},_0x58e5f7=this['_transformService'][_0x1b90dd(0x1ed)](_0x2ffb7d,_0x17842d,!0x1);if(m[_0x1b90dd(0x238)](_0x58e5f7))throw _0x58e5f7[_0x1b90dd(0x1c9)];_0x2ffb7d=_0x58e5f7[_0x1b90dd(0x1bc)];}return{...a['Tools'][_0x1b90dd(0x15c)](_0x5e03de),'mutations':[_0x2ffb7d]};}['_transformUndoRedoStack'](_0x402c59){const _0x391eaf=_0xa70a6a,{unitID:_0x2e2a3b}=_0x402c59,_0x2d2dfc=this[_0x391eaf(0x20b)][_0x391eaf(0x39a)](_0x2e2a3b)[_0x391eaf(0x319)](E['DocIMEInputManagerService']),{undoCache:_0x1e227a,redoCache:_0x5f55f5}=_0x2d2dfc['getUndoRedoMutationParamsCache']();if(_0x1e227a[_0x391eaf(0x154)]===0x0||_0x5f55f5[_0x391eaf(0x154)]===0x0)return;const _0x83078d=[],_0xfccc46=[];let _0x31c1cf=a['Tools']['deepClone'](_0x402c59[_0x391eaf(0x2bc)][0x0]),_0x95c63f=a[_0x391eaf(0x31f)]['deepClone'](_0x402c59['mutations'][0x0]);for(let _0x34c203=_0x1e227a[_0x391eaf(0x154)]-0x1;_0x34c203>=0x0;_0x34c203--){const _0x1ed8c9={'id':_0x391eaf(0x2ad),'params':{..._0x1e227a[_0x34c203]}},_0x30a647={'id':_0x391eaf(0x2ad),'params':{..._0x5f55f5[_0x34c203]}},_0x2a7041=this[_0x391eaf(0x374)][_0x391eaf(0x1ed)](_0x31c1cf,_0x1ed8c9,!0x1),_0x39739e=this[_0x391eaf(0x374)][_0x391eaf(0x1ed)](_0x95c63f,_0x30a647,!0x1);if(m[_0x391eaf(0x238)](_0x2a7041))throw _0x2a7041['error'];if(m['isTransformMutationFailure'](_0x39739e))throw _0x39739e[_0x391eaf(0x1c9)];_0x83078d['unshift'](_0x2a7041[_0x391eaf(0x33f)][_0x391eaf(0x1f3)]),_0xfccc46[_0x391eaf(0x338)](_0x39739e[_0x391eaf(0x33f)][_0x391eaf(0x1f3)]),_0x31c1cf=_0x2a7041[_0x391eaf(0x1bc)],_0x95c63f=_0x39739e[_0x391eaf(0x1bc)];}_0x2d2dfc[_0x391eaf(0x247)]({'undoCache':_0x83078d,'redoCache':_0xfccc46});}[_0xa70a6a(0x1b1)](_0x2470ba){const _0x427ad2=_0xa70a6a,{unitID:_0x364fb5}=_0x2470ba,_0x3b0e67=this['_renderManagerService']['getRenderById'](_0x364fb5)[_0x427ad2(0x319)](E[_0x427ad2(0x253)]),_0xa063f5=_0x3b0e67[_0x427ad2(0x3c5)]();if(_0xa063f5==null)return;const _0x32574d=[{'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x2470ba[_0x427ad2(0x3d1)],'actions':null,'textRanges':[_0xa063f5]}}],_0x54ac6b=this[_0x427ad2(0x374)][_0x427ad2(0x3c4)](_0x2470ba,_0x32574d);if(!m[_0x427ad2(0x34d)](_0x54ac6b))throw _0x54ac6b[_0x427ad2(0x1c9)];const _0x28b676=_0x54ac6b[_0x427ad2(0x33f)][0x0][_0x427ad2(0x1f3)][_0x427ad2(0x2df)];Array[_0x427ad2(0x1d5)](_0x28b676)&&_0x28b676['length']&&_0x3b0e67[_0x427ad2(0x1be)](_0x28b676[0x0]);}};z=kt([Ue(0x0,m['ITransformService']),Ue(0x1,p[_0xa70a6a(0x2ab)])],z);var Ft=Object['getOwnPropertyDescriptor'],Ht=(_0x399cc3,_0x1e7c9b,_0x341e9f,_0x2582da)=>{const _0x431ad4=_0xa70a6a;for(var _0x13b149=_0x2582da>0x1?void 0x0:_0x2582da?Ft(_0x1e7c9b,_0x341e9f):_0x1e7c9b,_0x5d31d3=_0x399cc3[_0x431ad4(0x154)]-0x1,_0x3d79ed;_0x5d31d3>=0x0;_0x5d31d3--)(_0x3d79ed=_0x399cc3[_0x5d31d3])&&(_0x13b149=_0x3d79ed(_0x13b149)||_0x13b149);return _0x13b149;},ce=(_0x173da5,_0x4d778c)=>(_0x4d1775,_0x1daa54)=>_0x4d778c(_0x4d1775,_0x1daa54,_0x173da5);let J=class{constructor(_0x1a6c6f,_0x459393,_0x54da54){const _0x5d2660=_0xa70a6a;this['_injector']=_0x1a6c6f,this[_0x5d2660(0x374)]=_0x459393,this['_docStateChangeManagerService']=_0x54da54;}[_0xa70a6a(0x1d0)](_0x215333){const _0x237685=_0xa70a6a;this[_0x237685(0x37d)](_0x215333);}['transformRemoteChangeset'](_0xc5651b){const _0x692926=_0xa70a6a,{unitID:_0x4adc31}=_0xc5651b,{collaboration:_0xf403b0}=this[_0x692926(0x23d)][_0x692926(0x385)](_0x4adc31);if(_0xf403b0[_0x692926(0x154)]===0x0)return _0xc5651b;let _0x30817a=a[_0x692926(0x31f)][_0x692926(0x15c)](_0xc5651b[_0x692926(0x2bc)][0x0]);for(let _0x5e638b=0x0;_0x5e638b<_0xf403b0[_0x692926(0x154)];_0x5e638b++){const _0x256016={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0xf403b0[_0x5e638b][_0x692926(0x16c)],..._0xf403b0[_0x5e638b][_0x692926(0x29f)]}},_0x5af13e=this['_transformService'][_0x692926(0x1ed)](_0x30817a,_0x256016,!0x1);if(m[_0x692926(0x238)](_0x5af13e))throw _0x5af13e['error'];_0x30817a=_0x5af13e[_0x692926(0x1bc)];}return{...a['Tools'][_0x692926(0x15c)](_0xc5651b),'mutations':[_0x30817a]};}[_0xa70a6a(0x37d)](_0x1e61e2){const _0x46deef=_0xa70a6a,{unitID:_0x219898}=_0x1e61e2,{history:_0x486700,collaboration:_0x54ea7c}=this[_0x46deef(0x23d)][_0x46deef(0x385)](_0x219898);if(_0x486700[_0x46deef(0x154)]===0x0&&_0x54ea7c[_0x46deef(0x154)]===0x0)return;const _0x140b6f=[],_0x2b8b6c=[];let _0xb19775=a[_0x46deef(0x31f)]['deepClone'](_0x1e61e2[_0x46deef(0x2bc)][0x0]),_0x463c88=a['Tools'][_0x46deef(0x15c)](_0x1e61e2[_0x46deef(0x2bc)][0x0]);for(let _0x363ed2=_0x486700[_0x46deef(0x154)]-0x1;_0x363ed2>=0x0;_0x363ed2--){const _0x44c0f2={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x486700[_0x363ed2][_0x46deef(0x16c)],..._0x486700[_0x363ed2][_0x46deef(0x31e)]}},_0x32f888={'id':_0x46deef(0x2ad),'params':{'unitId':_0x486700[_0x363ed2][_0x46deef(0x16c)],..._0x486700[_0x363ed2][_0x46deef(0x29f)]}},_0x399b01=this['_transformService'][_0x46deef(0x1ed)](_0xb19775,_0x44c0f2,!0x1),_0x1395b0=this['_transformService']['transformMutation'](_0x463c88,_0x32f888,!0x1);if(m[_0x46deef(0x238)](_0x399b01))throw _0x399b01[_0x46deef(0x1c9)];if(m[_0x46deef(0x238)](_0x1395b0))throw _0x1395b0[_0x46deef(0x1c9)];_0x140b6f[_0x46deef(0x338)]({..._0x486700[_0x363ed2],'undoState':_0x399b01['m2Prime']['params'],'redoState':_0x1395b0[_0x46deef(0x33f)][_0x46deef(0x1f3)]}),_0xb19775=_0x399b01[_0x46deef(0x1bc)],_0x463c88=_0x1395b0[_0x46deef(0x1bc)];}_0xb19775=a[_0x46deef(0x31f)]['deepClone'](_0x1e61e2[_0x46deef(0x2bc)][0x0]),_0x463c88=a[_0x46deef(0x31f)][_0x46deef(0x15c)](_0x1e61e2[_0x46deef(0x2bc)][0x0]);for(let _0x4f53bf=_0x54ea7c[_0x46deef(0x154)]-0x1;_0x4f53bf>=0x0;_0x4f53bf--){const _0x554b30={'id':_0x46deef(0x2ad),'params':{'unitId':_0x54ea7c[_0x4f53bf][_0x46deef(0x16c)],..._0x54ea7c[_0x4f53bf][_0x46deef(0x31e)]}},_0x2c051a={'id':_0x46deef(0x2ad),'params':{'unitId':_0x54ea7c[_0x4f53bf]['unitId'],..._0x54ea7c[_0x4f53bf]['redoState']}},_0x4fc462=this[_0x46deef(0x374)][_0x46deef(0x1ed)](_0xb19775,_0x554b30,!0x1),_0x5ca698=this[_0x46deef(0x374)][_0x46deef(0x1ed)](_0x463c88,_0x2c051a,!0x1);if(m['isTransformMutationFailure'](_0x4fc462))throw _0x4fc462[_0x46deef(0x1c9)];if(m[_0x46deef(0x238)](_0x5ca698))throw _0x5ca698['error'];_0x2b8b6c[_0x46deef(0x338)]({..._0x54ea7c[_0x4f53bf],'undoState':_0x4fc462[_0x46deef(0x33f)]['params'],'redoState':_0x5ca698[_0x46deef(0x33f)][_0x46deef(0x1f3)]}),_0xb19775=_0x4fc462[_0x46deef(0x1bc)],_0x463c88=_0x5ca698[_0x46deef(0x1bc)];}this[_0x46deef(0x23d)][_0x46deef(0x190)](_0x219898,{'history':_0x140b6f,'collaboration':_0x2b8b6c});}};J=Ht([ce(0x0,a[_0xa70a6a(0x312)](a[_0xa70a6a(0x262)])),ce(0x1,m[_0xa70a6a(0x1ae)]),ce(0x2,a['Inject'](E[_0xa70a6a(0x1a3)]))],J);var Yt=Object['getOwnPropertyDescriptor'],Wt=(_0x35a077,_0x8c3565,_0x271091,_0x57a82d)=>{const _0xbc4e4e=_0xa70a6a;for(var _0x51a215=_0x57a82d>0x1?void 0x0:_0x57a82d?Yt(_0x8c3565,_0x271091):_0x8c3565,_0xe75627=_0x35a077[_0xbc4e4e(0x154)]-0x1,_0x3f7539;_0xe75627>=0x0;_0xe75627--)(_0x3f7539=_0x35a077[_0xe75627])&&(_0x51a215=_0x3f7539(_0x51a215)||_0x51a215);return _0x51a215;},Ne=(_0x357712,_0x567fa2)=>(_0x5a9d82,_0x57f6aa)=>_0x567fa2(_0x5a9d82,_0x57f6aa,_0x357712);let Z=class{constructor(_0x50f4e6,_0x3a7bc){const _0x523bf1=_0xa70a6a;this[_0x523bf1(0x1d9)]=_0x50f4e6,this['_transformService']=_0x3a7bc;}[_0xa70a6a(0x188)](_0x41f613){const _0x19fb90=_0xa70a6a;var _0x94266a;const _0x159f5d=this['_injector'][_0x19fb90(0x258)](Y['DocSelectionManagerService']),_0x54f690=(_0x94266a=_0x159f5d['getDocRanges']())!=null?_0x94266a:[];if(_0x54f690[_0x19fb90(0x154)]===0x0)return;const _0x577ca3=_0x41f613['unitID'],_0x4b692e=[{'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x577ca3,'actions':null,'textRanges':_0x54f690}}],_0x30f441=this[_0x19fb90(0x374)][_0x19fb90(0x3c4)](_0x41f613,_0x4b692e);if(!m[_0x19fb90(0x34d)](_0x30f441))throw _0x30f441[_0x19fb90(0x1c9)];const _0x371ed2=_0x30f441[_0x19fb90(0x33f)][0x0][_0x19fb90(0x1f3)][_0x19fb90(0x2df)];Array[_0x19fb90(0x1d5)](_0x371ed2)&&_0x371ed2[_0x19fb90(0x154)]&&_0x159f5d[_0x19fb90(0x377)](_0x371ed2,{'unitId':_0x577ca3,'subUnitId':_0x577ca3},!0x1);}};Z=Wt([Ne(0x0,a[_0xa70a6a(0x312)](a['Injector'])),Ne(0x1,m[_0xa70a6a(0x1ae)])],Z);var Vt=Object[_0xa70a6a(0x33d)],Xt=(_0x280c36,_0x411f62,_0x377325,_0x46ec53)=>{const _0x2dc656=_0xa70a6a;for(var _0x554298=_0x46ec53>0x1?void 0x0:_0x46ec53?Vt(_0x411f62,_0x377325):_0x411f62,_0x568443=_0x280c36[_0x2dc656(0x154)]-0x1,_0x253134;_0x568443>=0x0;_0x568443--)(_0x253134=_0x280c36[_0x568443])&&(_0x554298=_0x253134(_0x554298)||_0x554298);return _0x554298;},N=(_0x5b116f,_0x325c93)=>(_0x43a952,_0x2f974d)=>_0x325c93(_0x43a952,_0x2f974d,_0x5b116f);let Q=class extends a[_0xa70a6a(0x270)]{constructor(_0x1fc17f,_0x62c3e2,_0x266d08,_0x54186c,_0x6a6d85,_0x32b2e3,_0x429d1e,_0x299584){const _0x2f75f2=_0xa70a6a;super(),h(this,_0x2f75f2(0x33b),new d['BehaviorSubject'](u['CollaborationStatus'][_0x2f75f2(0x1e0)])),(this[_0x2f75f2(0x23d)]=_0x1fc17f,this[_0x2f75f2(0x152)]=_0x62c3e2,this[_0x2f75f2(0x23f)]=_0x266d08,this[_0x2f75f2(0x296)]=_0x54186c,this[_0x2f75f2(0x2fb)]=_0x6a6d85,this[_0x2f75f2(0x1d6)]=_0x32b2e3,this['_messageService']=_0x429d1e,this[_0x2f75f2(0x34a)]=_0x299584,this[_0x2f75f2(0x2e2)]());}['_initEntityListener'](){const _0x1e0aca=_0xa70a6a;this[_0x1e0aca(0x39d)](this[_0x1e0aca(0x152)][_0x1e0aca(0x231)][_0x1e0aca(0x236)](_0x4d0283=>{const _0x2f072f=_0x1e0aca,_0xdc2452=this[_0x2f072f(0x23d)]['docStateChange$'][_0x2f072f(0x236)](_0x3a4573=>{const _0x348f03=_0x2f072f;if(_0x3a4573==null)return;const {unitId:_0x2c380b,redoState:_0x5ec4a1,commandId:_0x1b5354}=_0x3a4573;if(_0x2c380b!==_0x4d0283[_0x348f03(0x3d1)])return;const _0x4c263b={'id':_0x1b5354,'type':a[_0x348f03(0x3a5)][_0x348f03(0x252)],'params':{'unitId':_0x2c380b,'actions':_0x5ec4a1['actions'],'textRanges':null}};_0x4d0283['onLocalMutation'](_0x4c263b);});if(_0x4d0283[_0x2f072f(0x39d)](_0xdc2452),_0x4d0283 instanceof u[_0x2f072f(0x2f2)]){const _0x5585b0={'onTransformIME':_0x417bad=>this['_docTransformIMECacheService'][_0x2f072f(0x174)](_0x417bad),'onTransformState':_0x34b4cf=>this[_0x2f072f(0x296)][_0x2f072f(0x1d0)](_0x34b4cf),'onTransformSelections':_0x2ac6f5=>this[_0x2f072f(0x2fb)]['transformSelections'](_0x2ac6f5),'onSyncEditingCollabCursor':_0x27d935=>this[_0x2f072f(0x1d6)][_0x2f072f(0x18b)](_0x27d935),'onTransformRemoteChangesetByIMECache':_0x5527e9=>this[_0x2f072f(0x23f)][_0x2f072f(0x1c0)](_0x5527e9),'onTransformRemoteChangesetByStateCache':_0x31fde4=>this[_0x2f072f(0x296)][_0x2f072f(0x1c0)](_0x31fde4)};_0x4d0283['addHandlerCallback'](_0x5585b0);}}));}};Q=Xt([N(0x0,a[_0xa70a6a(0x312)](E[_0xa70a6a(0x1a3)])),N(0x1,a[_0xa70a6a(0x312)](u[_0xa70a6a(0x16f)])),N(0x2,a['Inject'](z)),N(0x3,a[_0xa70a6a(0x312)](J)),N(0x4,a['Inject'](Z)),N(0x5,a[_0xa70a6a(0x312)](pe)),N(0x6,O['IMessageService']),N(0x7,a[_0xa70a6a(0x312)](a[_0xa70a6a(0x173)]))],Q);var Gt=Object[_0xa70a6a(0x33d)],Kt=(_0x50e73c,_0xd23119,_0x4a8fb8,_0x17d44f)=>{for(var _0xcaf8c9=_0x17d44f>0x1?void 0x0:_0x17d44f?Gt(_0xd23119,_0x4a8fb8):_0xd23119,_0x2c5620=_0x50e73c['length']-0x1,_0x53ced2;_0x2c5620>=0x0;_0x2c5620--)(_0x53ced2=_0x50e73c[_0x2c5620])&&(_0xcaf8c9=_0x53ced2(_0xcaf8c9)||_0xcaf8c9);return _0xcaf8c9;},le=(_0x2c25f1,_0x5cfeab)=>(_0x1a5cc3,_0x4d6460)=>_0x5cfeab(_0x1a5cc3,_0x4d6460,_0x2c25f1);let ve=class extends a[_0xa70a6a(0x270)]{constructor(_0x5efafb,_0x106903,_0x412285){const _0x1bc910=_0xa70a6a;super(),h(this,_0x1bc910(0x172),new Map()),h(this,_0x1bc910(0x363),new Map()),h(this,_0x1bc910(0x195),!0x1),(this[_0x1bc910(0x225)]=_0x5efafb,this['_localStorageService']=_0x106903,this[_0x1bc910(0x30d)]=_0x412285);}[_0xa70a6a(0x2ec)](){this['_disabled']=!0x0;}[_0xa70a6a(0x18e)](){const _0x1b68a5=_0xa70a6a;this[_0x1b68a5(0x195)]=!0x1;}get[_0xa70a6a(0x32f)](){const _0x3ee3ba=_0xa70a6a;return this[_0x3ee3ba(0x363)];}[_0xa70a6a(0x37e)](){const _0xcd1651=_0xa70a6a;this['exhaustSavingTask']()[_0xcd1651(0x1d4)](()=>super[_0xcd1651(0x37e)]());}async[_0xa70a6a(0x24b)](_0x1f0cd0){const _0x5a9949=_0xa70a6a;return this[_0x5a9949(0x195)]?null:this[_0x5a9949(0x1cf)]['getItem'](u[_0x5a9949(0x325)](_0x1f0cd0));}async['saveOfflineData'](_0x37981b,_0x11f37d){const _0x128622=_0xa70a6a;return!!this['_localStorageService'][_0x128622(0x294)](_0x37981b,_0x11f37d);}[_0xa70a6a(0x28d)](_0x106784,_0x5d95c5,_0x459af5,_0x40bd8c){const _0x214ac4=_0xa70a6a,_0xad7788=this[_0x214ac4(0x30d)][_0x214ac4(0x2d6)](_0x106784);this[_0x214ac4(0x172)][_0x214ac4(0x2d9)](_0x106784,{'unitID':_0x106784,'type':_0x5d95c5,'awaitingChangeset':_0x459af5,'mutations':_0x40bd8c,'rev':_0xad7788}),this[_0x214ac4(0x363)][_0x214ac4(0x2b6)](_0x106784)||this[_0x214ac4(0x227)](_0x106784);}[_0xa70a6a(0x227)](_0x310a6c){const _0x457f32=_0xa70a6a,_0x2c756a=this[_0x457f32(0x2a3)]();_0x2c756a===0x0?this['_saveCache'](_0x310a6c):this[_0x457f32(0x363)]['set'](_0x310a6c,setTimeout(()=>this['_saveCache'](_0x310a6c),_0x2c756a));}[_0xa70a6a(0x2a3)](){const _0xd50a7f=_0xa70a6a;var _0x34e822;return(_0x34e822=this[_0xd50a7f(0x225)][_0xd50a7f(0x342)](u['LOCAL_CACHE_INTERVAL_KEY']))!=null?_0x34e822:u[_0xd50a7f(0x35a)];}['_saveCache'](_0x58c6f5){const _0x4b11f1=_0xa70a6a,_0x1c4c0c=this[_0x4b11f1(0x363)][_0x4b11f1(0x258)](_0x58c6f5);return _0x1c4c0c!==void 0x0&&window['clearTimeout'](_0x1c4c0c),this[_0x4b11f1(0x1cf)][_0x4b11f1(0x294)](u[_0x4b11f1(0x325)](_0x58c6f5),this[_0x4b11f1(0x172)]['get'](_0x58c6f5))['then'](()=>this['_saveTaskMap'][_0x4b11f1(0x15d)](_0x58c6f5));}async[_0xa70a6a(0x355)](){const _0x514df8=_0xa70a6a,_0x8251ea=[];this[_0x514df8(0x363)]['forEach']((_0x5df08f,_0x1d81f3)=>{const _0x282047=_0x514df8;window['clearTimeout'](_0x5df08f),_0x8251ea['push'](this['_saveCache'](_0x1d81f3)[_0x282047(0x1d4)](()=>{const _0x3f5d17=_0x282047;this[_0x3f5d17(0x363)][_0x3f5d17(0x15d)](_0x1d81f3);}));}),await Promise[_0x514df8(0x2d3)](_0x8251ea);}};ve=Kt([le(0x0,a[_0xa70a6a(0x33c)]),le(0x1,a['ILocalStorageService']),le(0x2,a[_0xa70a6a(0x312)](m[_0xa70a6a(0x282)]))],ve);class xe extends a[_0xa70a6a(0x306)]{constructor(){const _0x3f8e77=_0xa70a6a;super(),h(this,_0x3f8e77(0x161)),this[_0x3f8e77(0x161)]=d[_0x3f8e77(0x1e4)](window,_0x3f8e77(0x240))[_0x3f8e77(0x28e)](d['takeUntil'](this[_0x3f8e77(0x2ef)]),d[_0x3f8e77(0x1cb)](0x1),d[_0x3f8e77(0x2e1)](void 0x0));}[_0xa70a6a(0x336)](_0x5e625d,_0x3e42c8,_0x1eea14=!0x1){const _0x1ff310=_0xa70a6a,_0x2bff34=new URL(window[_0x1ff310(0x329)][_0x1ff310(0x30c)]);_0x2bff34[_0x1ff310(0x2ea)][_0x1ff310(0x2d9)](_0x5e625d,_0x3e42c8),_0x1eea14?window[_0x1ff310(0x1ad)][_0x1ff310(0x2b9)]('','',_0x2bff34['toString']()):window[_0x1ff310(0x1ad)][_0x1ff310(0x2ee)]('','',_0x2bff34[_0x1ff310(0x2a4)]());}[_0xa70a6a(0x283)](_0x463700,_0x32266c=!0x1){const _0x3f34de=_0xa70a6a,_0x136e28=new URL(window[_0x3f34de(0x329)][_0x3f34de(0x30c)]);_0x136e28[_0x3f34de(0x2ea)][_0x3f34de(0x15d)](_0x463700),_0x32266c?window[_0x3f34de(0x1ad)][_0x3f34de(0x2b9)]('','',_0x136e28[_0x3f34de(0x2a4)]()):window[_0x3f34de(0x1ad)][_0x3f34de(0x2ee)]('','',_0x136e28[_0x3f34de(0x2a4)]());}[_0xa70a6a(0x1cd)](_0x4912ca){const _0x166f57=_0xa70a6a;var _0x1cdf56;return(_0x1cdf56=new URL(window[_0x166f57(0x329)][_0x166f57(0x30c)])[_0x166f57(0x2ea)][_0x166f57(0x258)](_0x4912ca))!=null?_0x1cdf56:void 0x0;}}var qt=Object[_0xa70a6a(0x1ba)],zt=Object['getOwnPropertyDescriptor'],Jt=(_0x2158e1,_0x2688ce,_0x40b671)=>_0x2688ce in _0x2158e1?qt(_0x2158e1,_0x2688ce,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x40b671}):_0x2158e1[_0x2688ce]=_0x40b671,Zt=(_0x25121f,_0x324248,_0x23cb88,_0x56722b)=>{const _0x53fdad=_0xa70a6a;for(var _0x909db6=_0x56722b>0x1?void 0x0:_0x56722b?zt(_0x324248,_0x23cb88):_0x324248,_0x1b10d1=_0x25121f[_0x53fdad(0x154)]-0x1,_0x1f4fee;_0x1b10d1>=0x0;_0x1b10d1--)(_0x1f4fee=_0x25121f[_0x1b10d1])&&(_0x909db6=_0x1f4fee(_0x909db6)||_0x909db6);return _0x909db6;},_e=(_0x133822,_0x442d76)=>(_0x4bc063,_0x1e579d)=>_0x442d76(_0x4bc063,_0x1e579d,_0x133822),Qt=(_0x3da56a,_0x3de909,_0x1dc790)=>Jt(_0x3da56a,_0x3de909+'',_0x1dc790);const es=_0xa70a6a(0x33a);exports['UniverCollaborationClientUIPlugin']=class extends a[_0xa70a6a(0x2d0)]{constructor(_0x5714dd=De,_0x18721d,_0x58e017,_0x539dad){const _0x2f015c=_0xa70a6a;super(),this[_0x2f015c(0x34b)]=_0x5714dd,this[_0x2f015c(0x20b)]=_0x18721d,this['_injector']=_0x58e017,this[_0x2f015c(0x225)]=_0x539dad;const {..._0x63fbda}=a[_0x2f015c(0x1ee)]({},De,this[_0x2f015c(0x34b)]);this[_0x2f015c(0x225)][_0x2f015c(0x243)](Bt,_0x63fbda);}[_0xa70a6a(0x251)](){const _0x26a540=_0xa70a6a;this[_0x26a540(0x36f)](),this['_initDependencies']();}[_0xa70a6a(0x182)](){const _0x5d3d35=_0xa70a6a;this[_0x5d3d35(0x347)]();}[_0xa70a6a(0x36f)](){const _0x463c16=_0xa70a6a;var _0x5ed2b7;const _0x3a203a=[[Ce],[Z],[z],[J],[pe],[me,{'useClass':xe}],[K[_0x463c16(0x1a5)],{'useClass':K[_0x463c16(0x3b9)]}],[u[_0x463c16(0x2b4)],{'useClass':ve}],[exports['DesktopCollaborationStatusDisplayController']],[Q],[q],[x],[ue],[exports[_0x463c16(0x2c4)]]];a['registerDependencies'](this[_0x463c16(0x1d9)],a[_0x463c16(0x2be)](_0x3a203a,(_0x5ed2b7=this[_0x463c16(0x34b)])==null?void 0x0:_0x5ed2b7[_0x463c16(0x3bd)]));}[_0xa70a6a(0x347)](){const _0x2ee86a=_0xa70a6a;this[_0x2ee86a(0x39d)](this[_0x2ee86a(0x20b)][_0x2ee86a(0x3cb)](a[_0x2ee86a(0x3be)][_0x2ee86a(0x316)],[fe])),this[_0x2ee86a(0x39d)](this[_0x2ee86a(0x20b)][_0x2ee86a(0x3cb)](a[_0x2ee86a(0x3be)][_0x2ee86a(0x1c8)],[Ie]));}[_0xa70a6a(0x3c8)](){const _0x823372=_0xa70a6a;a[_0x823372(0x389)](this['_injector'],[[x],[exports[_0x823372(0x33e)]],[Q],[q],[exports[_0x823372(0x2c4)]]]);}},Qt(exports[_0xa70a6a(0x361)],_0xa70a6a(0x159),es),exports['UniverCollaborationClientUIPlugin']=Zt([a['DependentOn'](u[_0xa70a6a(0x3ab)]),_e(0x1,p[_0xa70a6a(0x2ab)]),_e(0x2,a[_0xa70a6a(0x312)](a['Injector'])),_e(0x3,a['IConfigService'])],exports[_0xa70a6a(0x361)]);var ts=Object[_0xa70a6a(0x33d)],ss=(_0x50a0cb,_0x3ba6f3,_0xfd370b,_0xfbf16b)=>{const _0x5368a5=_0xa70a6a;for(var _0x578a87=_0xfbf16b>0x1?void 0x0:_0xfbf16b?ts(_0x3ba6f3,_0xfd370b):_0x3ba6f3,_0x41e012=_0x50a0cb[_0x5368a5(0x154)]-0x1,_0x2cc275;_0x41e012>=0x0;_0x41e012--)(_0x2cc275=_0x50a0cb[_0x41e012])&&(_0x578a87=_0x2cc275(_0x578a87)||_0x578a87);return _0x578a87;},H=(_0x1a6d37,_0x4fa0ff)=>(_0x1229e5,_0x36d0ae)=>_0x4fa0ff(_0x1229e5,_0x36d0ae,_0x1a6d37);exports[_0xa70a6a(0x3bc)]=class extends u[_0xa70a6a(0x350)]{constructor(_0x4caa13,_0x510c42,_0x1756a1,_0x582ced,_0x20264e){super(_0x4caa13,_0x510c42,_0x1756a1,_0x582ced,_0x20264e);}async['createSocket'](_0x19fbcb){const _0x2fe4a1=_0xa70a6a,_0x157933=await this[_0x2fe4a1(0x286)](),_0x39dfe8=this[_0x2fe4a1(0x271)](_0x19fbcb,_0x157933);return this[_0x2fe4a1(0x345)](_0x39dfe8);}[_0xa70a6a(0x271)](_0x4a4eb1,_0xddb15b){const _0xf2dbf5=_0xa70a6a,_0x241c12=typeof window>'u'?new URL(_0x4a4eb1):new URL(_0x4a4eb1,window[_0xf2dbf5(0x329)][_0xf2dbf5(0x2ac)]);_0x241c12['searchParams'][_0xf2dbf5(0x2d9)](_0xf2dbf5(0x1ab),_0xddb15b);const _0x271819=typeof window>'u'?new URLSearchParams():new URLSearchParams(window[_0xf2dbf5(0x329)]['search']);return _0x271819[_0xf2dbf5(0x258)]('runId')&&_0x241c12[_0xf2dbf5(0x2ea)][_0xf2dbf5(0x2d9)](_0xf2dbf5(0x16b),_0x271819[_0xf2dbf5(0x258)]('runId')),_0x241c12['toString']();}async[_0xa70a6a(0x286)](){const _0x301ad8=_0xa70a6a;var _0x4efcb2,_0x38d47e,_0xc9fd7b;const _0x4db8fc=this[_0x301ad8(0x225)]['getConfig'](u[_0x301ad8(0x1d3)]),_0x1f301c=(_0x4efcb2=_0x4db8fc==null?void 0x0:_0x4db8fc[_0x301ad8(0x224)])!=null?_0x4efcb2:u[_0x301ad8(0x2cc)];return(_0xc9fd7b=(_0x38d47e=(await this[_0x301ad8(0x38e)][_0x301ad8(0x258)](_0x1f301c,{'headers':{'Content-Type':_0x301ad8(0x2ff)}}))[_0x301ad8(0x199)])==null?void 0x0:_0x38d47e[_0x301ad8(0x366)])!=null?_0xc9fd7b:'';}},exports['BrowserCollaborationSocketService']=ss([H(0x0,a[_0xa70a6a(0x312)](a[_0xa70a6a(0x262)])),H(0x1,a[_0xa70a6a(0x312)](K[_0xa70a6a(0x198)])),H(0x2,a[_0xa70a6a(0x33c)]),H(0x3,a['ILogService']),H(0x4,m[_0xa70a6a(0x284)])],exports[_0xa70a6a(0x3bc)]);function _0x1cff(_0x4a10af,_0x31fb0f){const _0x287c00=_0x287c();return _0x1cff=function(_0x1cff58,_0x184e55){_0x1cff58=_0x1cff58-0x14e;let _0x51493c=_0x287c00[_0x1cff58];return _0x51493c;},_0x1cff(_0x4a10af,_0x31fb0f);}var Be=(_0xb53ac1=>(_0xb53ac1[_0xb53ac1[_0xa70a6a(0x2e6)]=0x0]='UNDEFINED',_0xb53ac1[_0xb53ac1['OK']=0x1]='OK',_0xb53ac1[_0xb53ac1[_0xa70a6a(0x208)]=0x2]='INTERNAL_ERROR',_0xb53ac1[_0xb53ac1[_0xa70a6a(0x369)]=0x3]=_0xa70a6a(0x369),_0xb53ac1[_0xb53ac1[_0xa70a6a(0x19b)]=0x4]=_0xa70a6a(0x19b),_0xb53ac1[_0xb53ac1[_0xa70a6a(0x14f)]=0x5]=_0xa70a6a(0x14f),_0xb53ac1[_0xb53ac1['ALREADY_EXISTS']=0x6]='ALREADY_EXISTS',_0xb53ac1[_0xb53ac1[_0xa70a6a(0x2cf)]=0x7]='INVALID_ARGUMENT',_0xb53ac1[_0xb53ac1[_0xa70a6a(0x2f0)]=0x8]='TOO_MANY_REQUESTS',_0xb53ac1[_0xb53ac1[_0xa70a6a(0x28c)]=0x9]=_0xa70a6a(0x28c),_0xb53ac1[_0xb53ac1[_0xa70a6a(0x1a4)]=0xa]=_0xa70a6a(0x1a4),_0xb53ac1[_0xb53ac1[_0xa70a6a(0x29d)]=0xb]=_0xa70a6a(0x29d),_0xb53ac1[_0xb53ac1[_0xa70a6a(0x3ac)]=0xc]=_0xa70a6a(0x3ac),_0xb53ac1[_0xb53ac1[_0xa70a6a(0x162)]=0xd]='EMAIL_VERIFY_CODE_MISMATCH',_0xb53ac1[_0xb53ac1[_0xa70a6a(0x380)]=0xe]='EMAIL_VERIFY_CODE_NOT_FOUND_OR_EXPIRED',_0xb53ac1[_0xb53ac1['CHANGESET_REVISION_CONFILICT']=0x1389]=_0xa70a6a(0x32b),_0xb53ac1[_0xb53ac1[_0xa70a6a(0x212)]=0x1771]=_0xa70a6a(0x212),_0xb53ac1[_0xb53ac1['SNAPSHOT_HAS_BEEN_REMOVED']=0x1772]=_0xa70a6a(0x2a5),_0xb53ac1[_0xb53ac1[_0xa70a6a(0x21f)]=0x1773]=_0xa70a6a(0x21f),_0xb53ac1[_0xb53ac1[_0xa70a6a(0x2e0)]=0x1b59]=_0xa70a6a(0x2e0),_0xb53ac1[_0xb53ac1[_0xa70a6a(0x2dc)]=0x1b5a]=_0xa70a6a(0x2dc),_0xb53ac1[_0xb53ac1[_0xa70a6a(0x314)]=0x1b5b]=_0xa70a6a(0x314),_0xb53ac1[_0xb53ac1[_0xa70a6a(0x391)]=0x1b5c]=_0xa70a6a(0x391),_0xb53ac1[_0xb53ac1[_0xa70a6a(0x14e)]=0x1b5d]=_0xa70a6a(0x14e),_0xb53ac1[_0xb53ac1[_0xa70a6a(0x1e5)]=0x1f41]=_0xa70a6a(0x1e5),_0xb53ac1[_0xb53ac1[_0xa70a6a(0x337)]=0x2329]=_0xa70a6a(0x337),_0xb53ac1[_0xb53ac1[_0xa70a6a(0x19f)]=0x232a]='LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED',_0xb53ac1[_0xb53ac1[_0xa70a6a(0x2bb)]=0x232b]='LICENSE_IMPORT_SIZE_EXCEEDED',_0xb53ac1[_0xb53ac1[_0xa70a6a(0x297)]=0x232c]=_0xa70a6a(0x297),_0xb53ac1[_0xb53ac1[_0xa70a6a(0x354)]=0x232d]=_0xa70a6a(0x354),_0xb53ac1[_0xb53ac1['YUUMI_UNABLE_LOAD_URL']=0x2711]='YUUMI_UNABLE_LOAD_URL',_0xb53ac1[_0xb53ac1[_0xa70a6a(0x1dd)]=0x2712]='YUUMI_URL_COL_OUT_OF_RANGE',_0xb53ac1[_0xb53ac1[_0xa70a6a(0x20d)]=0x2713]='YUUMI_RATE_OVER_LIMIT',_0xb53ac1[_0xb53ac1[_0xa70a6a(0x213)]=0x2714]=_0xa70a6a(0x213),_0xb53ac1[_0xb53ac1[_0xa70a6a(0x398)]=0x271a]=_0xa70a6a(0x398),_0xb53ac1[_0xb53ac1[_0xa70a6a(0x206)]=0x271b]=_0xa70a6a(0x206),_0xb53ac1[_0xb53ac1[_0xa70a6a(0x1fb)]=0x271c]=_0xa70a6a(0x1fb),_0xb53ac1[_0xb53ac1[_0xa70a6a(0x184)]=0x271d]=_0xa70a6a(0x184),_0xb53ac1[_0xb53ac1[_0xa70a6a(0x2a0)]=0x271e]=_0xa70a6a(0x2a0),_0xb53ac1[_0xb53ac1['YUUMI_AI_RUN_FAILED']=0x271f]='YUUMI_AI_RUN_FAILED',_0xb53ac1[_0xb53ac1[_0xa70a6a(0x179)]=0x2720]=_0xa70a6a(0x179),_0xb53ac1[_0xb53ac1[_0xa70a6a(0x285)]=0x2af9]=_0xa70a6a(0x285),_0xb53ac1[_0xb53ac1[_0xa70a6a(0x26f)]=0x2ee1]=_0xa70a6a(0x26f),_0xb53ac1[_0xb53ac1[_0xa70a6a(0x20f)]=0x2ee2]=_0xa70a6a(0x20f),_0xb53ac1[_0xb53ac1['INVITE_CODE_REQUIRED']=0x2ee3]=_0xa70a6a(0x1b2),_0xb53ac1[_0xb53ac1['USER_NOT_INVITED_CODE']=0x2ee4]=_0xa70a6a(0x27c),_0xb53ac1[_0xb53ac1[_0xa70a6a(0x160)]=0x2ee5]=_0xa70a6a(0x160),_0xb53ac1[_0xb53ac1[_0xa70a6a(0x388)]=0x32c9]=_0xa70a6a(0x388),_0xb53ac1[_0xb53ac1[_0xa70a6a(0x153)]=0x32ca]=_0xa70a6a(0x153),_0xb53ac1[_0xb53ac1[_0xa70a6a(0x268)]=0x32cb]=_0xa70a6a(0x268),_0xb53ac1[_0xb53ac1[_0xa70a6a(0x246)]=-0x1]=_0xa70a6a(0x246),_0xb53ac1))(Be||{}),is=Object[_0xa70a6a(0x33d)],ns=(_0x15bfbf,_0x355e17,_0x226a86,_0x9ee58f)=>{const _0x3fe877=_0xa70a6a;for(var _0x52d6c5=_0x9ee58f>0x1?void 0x0:_0x9ee58f?is(_0x355e17,_0x226a86):_0x355e17,_0x245586=_0x15bfbf[_0x3fe877(0x154)]-0x1,_0x41ca7d;_0x245586>=0x0;_0x245586--)(_0x41ca7d=_0x15bfbf[_0x245586])&&(_0x52d6c5=_0x41ca7d(_0x52d6c5)||_0x52d6c5);return _0x52d6c5;},he=(_0xef1d68,_0x19b1cc)=>(_0x2e7c3a,_0x4bd849)=>_0x19b1cc(_0x2e7c3a,_0x4bd849,_0xef1d68);exports[_0xa70a6a(0x349)]=class extends a[_0xa70a6a(0x270)]{constructor(_0x23ec8e,_0x4816fd,_0x1ff73f){const _0x2261ec=_0xa70a6a;super(),this[_0x2261ec(0x26c)]=_0x23ec8e,this[_0x2261ec(0x38e)]=_0x4816fd,this['_configService']=_0x1ff73f;}async[_0xa70a6a(0x1c3)](_0x508e9c,_0x155be7,_0x27968e,..._0x39cd56){const _0x28b532=_0xa70a6a;var _0x3d549d,_0x57bbc1,_0x197ae5,_0x574266;const _0x2528a3=this[_0x28b532(0x26c)][_0x28b532(0x269)]();if(!_0x2528a3)throw new Error(_0x28b532(0x3b3));const _0x5f3248=((_0x3d549d=this[_0x28b532(0x225)][_0x28b532(0x342)](u[_0x28b532(0x3a1)]))!=null?_0x3d549d:u[_0x28b532(0x27e)])+'/'+_0x508e9c+'/run/'+_0x155be7,_0x5b94be=new URL(window[_0x28b532(0x329)][_0x28b532(0x30c)]),_0x47c1ef={'scriptId':_0x508e9c,'runId':(_0x57bbc1=_0x5b94be[_0x28b532(0x2ea)][_0x28b532(0x258)](_0x28b532(0x16b)))!=null?_0x57bbc1:'','function':_0x155be7,'unitId':_0x2528a3[_0x28b532(0x217)](),'argsOfFunction':JSON[_0x28b532(0x35e)](_0x39cd56),'invokeId':(_0x197ae5=_0x27968e['invokeId'])!=null?_0x197ae5:'','executionId':(_0x574266=_0x27968e[_0x28b532(0x15e)])!=null?_0x574266:''};try{const _0x342f5b=await this[_0x28b532(0x38e)]['post'](_0x5f3248,{'body':_0x47c1ef});return _0x342f5b['body'][_0x28b532(0x1c9)]&&_0x342f5b[_0x28b532(0x199)]['error'][_0x28b532(0x280)]!==Be['OK']?_0x28b532(0x348):_0x342f5b['body'][_0x28b532(0x344)];}catch{return _0x28b532(0x348);}}},exports[_0xa70a6a(0x349)]=ns([he(0x0,a[_0xa70a6a(0x313)]),he(0x1,a[_0xa70a6a(0x312)](K['HTTPService'])),he(0x2,a[_0xa70a6a(0x33c)])],exports[_0xa70a6a(0x349)]);const Me=0x7530,Le=_0xa70a6a(0x32e);class rs extends a[_0xa70a6a(0x270)]{constructor(){const _0x4b5287=_0xa70a6a;super(),h(this,_0x4b5287(0x230),a[_0x4b5287(0x39e)]()),h(this,_0x4b5287(0x19e),new Set()),h(this,_0x4b5287(0x292),new Map()),h(this,_0x4b5287(0x2f3),null),h(this,'_clearOtherTimers',new Map()),h(this,_0x4b5287(0x187),new Map()),this[_0x4b5287(0x373)]();}[_0xa70a6a(0x37e)](){const _0x10ee73=_0xa70a6a;super[_0x10ee73(0x37e)](),this['_clearOtherTimers'][_0x10ee73(0x1d1)]((_0x1c1ada,_0x4311a4)=>this['_removeClearOtherTimer'](_0x4311a4)),this[_0x10ee73(0x2f3)]&&window[_0x10ee73(0x365)](this[_0x10ee73(0x2f3)]);}[_0xa70a6a(0x207)](_0x45f430){const _0xd0d754=_0xa70a6a;return this[_0xd0d754(0x210)](_0x45f430)[_0xd0d754(0x28e)](d[_0xd0d754(0x22c)]());}[_0xa70a6a(0x383)](_0x358016){const _0xd14f85=_0xa70a6a;this[_0xd14f85(0x19e)][_0xd14f85(0x237)]===0x0&&this[_0xd14f85(0x2eb)](),this[_0xd14f85(0x19e)][_0xd14f85(0x228)](_0x358016),this[_0xd14f85(0x1ce)]({'type':0x0,'memberID':this[_0xd14f85(0x230)],'unitIDs':[_0x358016],'isForwarded':!0x1});}[_0xa70a6a(0x25e)](_0x549fb8){const _0x225ef4=_0xa70a6a;this['_selfUnitIDs'][_0x225ef4(0x15d)](_0x549fb8),this[_0x225ef4(0x19e)][_0x225ef4(0x237)]===0x0&&this[_0x225ef4(0x2f3)]&&window[_0x225ef4(0x365)](this[_0x225ef4(0x2f3)]);}[_0xa70a6a(0x373)](){const _0x19fde4=_0xa70a6a;this[_0x19fde4(0x39d)](a[_0x19fde4(0x16a)](d['fromEvent'](window,'storage')[_0x19fde4(0x236)](_0x379652=>{const _0x2a3ca0=_0x19fde4;if(_0x379652[_0x2a3ca0(0x21e)]!==Le||!_0x379652[_0x2a3ca0(0x3bf)])return;const _0xf83177=JSON[_0x2a3ca0(0x205)](_0x379652[_0x2a3ca0(0x3bf)]);this[_0x2a3ca0(0x2c5)](_0xf83177);}))),window['addEventListener'](_0x19fde4(0x37c),()=>this[_0x19fde4(0x1ce)]({'type':0x1,'memberID':this['_id'],'unitIDs':Array[_0x19fde4(0x2c9)](this[_0x19fde4(0x19e)])}));}[_0xa70a6a(0x2c5)](_0x6635ce){const _0x1ec3ce=_0xa70a6a;switch(_0x6635ce[_0x1ec3ce(0x221)]){case 0x0:this[_0x1ec3ce(0x29e)](_0x6635ce);break;case 0x1:this[_0x1ec3ce(0x181)](_0x6635ce);break;case 0x2:this[_0x1ec3ce(0x2b3)](_0x6635ce);break;}}[_0xa70a6a(0x29e)](_0x53b62a){const _0x1efb88=_0xa70a6a,{unitIDs:_0x14163b,memberID:_0x4113a9,isForwarded:_0x540f8b}=_0x53b62a;_0x14163b[_0x1efb88(0x1d1)](_0x59bd2a=>{const _0x214856=_0x1efb88;if(!_0x540f8b&&this[_0x214856(0x292)][_0x214856(0x2b6)](_0x59bd2a)&&this[_0x214856(0x210)](_0x59bd2a)['next'](u[_0x214856(0x1f9)][_0x214856(0x1bd)]),!this[_0x214856(0x292)]['has'](_0x59bd2a)||!this[_0x214856(0x292)][_0x214856(0x258)](_0x59bd2a)[_0x214856(0x2b6)](_0x4113a9)){const _0x4373d9=this[_0x214856(0x292)]['get'](_0x59bd2a)||new Set();_0x4373d9['add'](_0x4113a9),this[_0x214856(0x292)]['set'](_0x59bd2a,_0x4373d9),this['_scheduleClearOtherTimer'](_0x4113a9);}}),_0x540f8b||this['_send']({'type':0x0,'memberID':this[_0x1efb88(0x230)],'unitIDs':[...this[_0x1efb88(0x19e)]],'isForwarded':!0x0});}[_0xa70a6a(0x320)](_0x1817ef){const _0x4be804=_0xa70a6a;this[_0x4be804(0x20e)](_0x1817ef);const _0x4b59e1=window[_0x4be804(0x183)](()=>{const _0x12985d=_0x4be804;this['_unitOnClients'][_0x12985d(0x1d1)](_0x40a25b=>{const _0x35e585=_0x12985d;_0x40a25b[_0x35e585(0x15d)](_0x1817ef);});},Me*0x2);this[_0x4be804(0x216)][_0x4be804(0x2d9)](_0x1817ef,_0x4b59e1);}[_0xa70a6a(0x20e)](_0x38ed00){const _0xde182a=_0xa70a6a;if(this[_0xde182a(0x216)]['has'](_0x38ed00)){const _0x579696=this[_0xde182a(0x216)][_0xde182a(0x258)](_0x38ed00);_0x579696&&window[_0xde182a(0x2ba)](_0x579696),this[_0xde182a(0x216)][_0xde182a(0x2d9)](_0x38ed00,null);}}['_handleLeaveEvent'](_0xa65036){const _0x5c95ab=_0xa70a6a,{memberID:_0x56fa50,unitIDs:_0x5f3158}=_0xa65036;_0x5f3158[_0x5c95ab(0x1d1)](_0x41a5b8=>{const _0xff7271=_0x5c95ab;var _0x345227;const _0x499fa1=this[_0xff7271(0x292)][_0xff7271(0x258)](_0x41a5b8);_0x499fa1&&(_0x499fa1[_0xff7271(0x15d)](_0x56fa50),(_0x345227=this[_0xff7271(0x210)](_0x41a5b8))==null||_0x345227[_0xff7271(0x1b3)](_0x499fa1[_0xff7271(0x237)]===0x0?u[_0xff7271(0x1f9)][_0xff7271(0x3cf)]:u['UnitStatus'][_0xff7271(0x1bd)]));}),this[_0x5c95ab(0x20e)](_0x56fa50);}[_0xa70a6a(0x2b3)](_0x3e0599){const _0x12eff1=_0xa70a6a;this['_scheduleClearOtherTimer'](_0x3e0599[_0x12eff1(0x2c8)]);}[_0xa70a6a(0x1ce)](_0x44d1e6){const _0x9f977e=_0xa70a6a;localStorage[_0x9f977e(0x294)](Le,JSON['stringify'](_0x44d1e6));}['_scheduleHeartbeat'](){const _0x1a6dc3=_0xa70a6a;this[_0x1a6dc3(0x2f3)]=window[_0x1a6dc3(0x36e)](()=>{const _0x4248dc=_0x1a6dc3;this['_send']({'type':0x2,'memberID':this[_0x4248dc(0x230)]});},Me);}[_0xa70a6a(0x210)](_0x354116){const _0x197211=_0xa70a6a;return this[_0x197211(0x187)][_0x197211(0x2b6)](_0x354116)||this[_0x197211(0x187)][_0x197211(0x2d9)](_0x354116,new d[(_0x197211(0x239))](u[_0x197211(0x1f9)][_0x197211(0x3cf)])),this[_0x197211(0x187)][_0x197211(0x258)](_0x354116);}}exports[_0xa70a6a(0x22e)]=me,exports['SheetCollabCursorShape']=$e,exports[_0xa70a6a(0x248)]=rs,exports[_0xa70a6a(0x2dd)]=xe;
1
+ 'use strict';const _0x3ac433=_0x2522;(function(_0x2c4e32,_0x131244){const _0x134ab9=_0x2522,_0x499572=_0x2c4e32();while(!![]){try{const _0xe01efd=-parseInt(_0x134ab9(0x1fc))/0x1+parseInt(_0x134ab9(0x380))/0x2*(parseInt(_0x134ab9(0x1ec))/0x3)+-parseInt(_0x134ab9(0x194))/0x4*(parseInt(_0x134ab9(0x2e0))/0x5)+-parseInt(_0x134ab9(0x3a0))/0x6*(-parseInt(_0x134ab9(0x140))/0x7)+-parseInt(_0x134ab9(0x278))/0x8*(parseInt(_0x134ab9(0x211))/0x9)+parseInt(_0x134ab9(0x1be))/0xa*(parseInt(_0x134ab9(0x349))/0xb)+parseInt(_0x134ab9(0x36c))/0xc*(parseInt(_0x134ab9(0x280))/0xd);if(_0xe01efd===_0x131244)break;else _0x499572['push'](_0x499572['shift']());}catch(_0x3d940c){_0x499572['push'](_0x499572['shift']());}}}(_0x5e3c,0xb7bfa));var We=Object[_0x3ac433(0x20a)],Ve=(_0x56e300,_0x254128,_0x416cb4)=>_0x254128 in _0x56e300?We(_0x56e300,_0x254128,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x416cb4}):_0x56e300[_0x254128]=_0x416cb4,h=(_0x32d82f,_0x45190e,_0x24d36d)=>Ve(_0x32d82f,typeof _0x45190e!=_0x3ac433(0x2fa)?_0x45190e+'':_0x45190e,_0x24d36d);Object['defineProperty'](exports,Symbol[_0x3ac433(0x228)],{'value':_0x3ac433(0x310)});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 _0x1ba247=_0x3ac433;return b=Object[_0x1ba247(0x343)]||function(_0x1a69a6){const _0x29e3e8=_0x1ba247;for(var _0x5d7381,_0x150354=0x1,_0x566ed0=arguments['length'];_0x150354<_0x566ed0;_0x150354++){_0x5d7381=arguments[_0x150354];for(var _0x524d47 in _0x5d7381)Object[_0x29e3e8(0x36a)][_0x29e3e8(0x290)]['call'](_0x5d7381,_0x524d47)&&(_0x1a69a6[_0x524d47]=_0x5d7381[_0x524d47]);}return _0x1a69a6;},b['apply'](this,arguments);},Ke=function(_0x49d90e,_0x12b1e0){const _0x2d607c=_0x3ac433;var _0x312f96={};for(var _0x4dd3b7 in _0x49d90e)Object[_0x2d607c(0x36a)]['hasOwnProperty'][_0x2d607c(0x374)](_0x49d90e,_0x4dd3b7)&&_0x12b1e0['indexOf'](_0x4dd3b7)<0x0&&(_0x312f96[_0x4dd3b7]=_0x49d90e[_0x4dd3b7]);if(_0x49d90e!=null&&typeof Object['getOwnPropertySymbols']=='function'){for(var _0x40e85e=0x0,_0x4dd3b7=Object['getOwnPropertySymbols'](_0x49d90e);_0x40e85e<_0x4dd3b7[_0x2d607c(0x26c)];_0x40e85e++)_0x12b1e0[_0x2d607c(0x153)](_0x4dd3b7[_0x40e85e])<0x0&&Object['prototype'][_0x2d607c(0x322)][_0x2d607c(0x374)](_0x49d90e,_0x4dd3b7[_0x40e85e])&&(_0x312f96[_0x4dd3b7[_0x40e85e]]=_0x49d90e[_0x4dd3b7[_0x40e85e]]);}return _0x312f96;},ge=M[_0x3ac433(0x387)](function(_0x286c62,_0x37ecf3){const _0x357908=_0x3ac433;var _0x3e0c4e=_0x286c62['icon'],_0x29399a=_0x286c62['id'],_0xa64cec=_0x286c62[_0x357908(0x2b8)],_0x5e3251=_0x286c62[_0x357908(0x2c3)],_0x13b023=Ke(_0x286c62,[_0x357908(0x1d3),'id',_0x357908(0x2b8),'extend']),_0x34cfaa=_0x357908(0x201)[_0x357908(0x2a2)](_0x29399a,'\x20')[_0x357908(0x2a2)](_0xa64cec||'')[_0x357908(0x36b)](),_0x5f49b8=M[_0x357908(0x1b6)]('_'[_0x357908(0x2a2)](Je()));return Pe(_0x3e0c4e,''[_0x357908(0x2a2)](_0x29399a),{'defIds':_0x3e0c4e[_0x357908(0x2bc)],'idSuffix':_0x5f49b8['current']},b({'ref':_0x37ecf3,'className':_0x34cfaa},_0x13b023),_0x5e3251);});function Pe(_0x188b3,_0x33d327,_0x462d4f,_0x38bd7a,_0x4f1375){const _0x4ea0aa=_0x3ac433;return M['createElement'](_0x188b3['tag'],b(b({'key':_0x33d327},qe(_0x188b3,_0x462d4f,_0x4f1375)),_0x38bd7a),(ze(_0x188b3,_0x462d4f)[_0x4ea0aa(0x35f)]||[])[_0x4ea0aa(0x173)](function(_0x27192a,_0x1277d0){const _0x4428f2=_0x4ea0aa;return Pe(_0x27192a,''[_0x4428f2(0x2a2)](_0x33d327,'-')[_0x4428f2(0x2a2)](_0x188b3[_0x4428f2(0x269)],'-')['concat'](_0x1277d0),_0x462d4f,void 0x0,_0x4f1375);}));}function qe(_0x31c72c,_0x110b65,_0x2021a6){const _0xaf0610=_0x3ac433;var _0x1d6910=b({},_0x31c72c[_0xaf0610(0x1f8)]);_0x2021a6!=null&&_0x2021a6[_0xaf0610(0x15b)]&&_0x1d6910[_0xaf0610(0x17a)]===_0xaf0610(0x15b)&&(_0x1d6910[_0xaf0610(0x17a)]=_0x2021a6[_0xaf0610(0x15b)]),_0x31c72c[_0xaf0610(0x269)]==='mask'&&_0x1d6910['id']&&(_0x1d6910['id']=_0x1d6910['id']+_0x110b65[_0xaf0610(0x30d)]),Object['entries'](_0x1d6910)[_0xaf0610(0x2fd)](function(_0x16c0c3){const _0x955968=_0xaf0610;var _0x5cdb1c=_0x16c0c3[0x0],_0x30a978=_0x16c0c3[0x1];_0x5cdb1c==='mask'&&typeof _0x30a978==_0x955968(0x18e)&&(_0x1d6910[_0x5cdb1c]=_0x30a978[_0x955968(0x160)](/url\(#(.*)\)/,'url(#$1'[_0x955968(0x2a2)](_0x110b65[_0x955968(0x30d)],')')));});var _0x292f90=_0x110b65[_0xaf0610(0x2bc)];return!_0x292f90||_0x292f90['length']===0x0||(_0x31c72c[_0xaf0610(0x269)]===_0xaf0610(0x25c)&&_0x1d6910[_0xaf0610(0x2db)]&&(_0x1d6910[_0xaf0610(0x2db)]=_0x1d6910[_0xaf0610(0x2db)]+_0x110b65['idSuffix']),Object[_0xaf0610(0x36e)](_0x1d6910)[_0xaf0610(0x2fd)](function(_0x3a9dde){const _0x5ec57e=_0xaf0610;var _0x5cd437=_0x3a9dde[0x0],_0x3a53e5=_0x3a9dde[0x1];typeof _0x3a53e5==_0x5ec57e(0x18e)&&(_0x1d6910[_0x5cd437]=_0x3a53e5[_0x5ec57e(0x160)](/url\(#(.*)\)/,'url(#$1'[_0x5ec57e(0x2a2)](_0x110b65['idSuffix'],')')));})),_0x1d6910;}function ze(_0xc04ff9,_0x372b5d){const _0x4b9684=_0x3ac433;var _0x31012b,_0x377405=_0x372b5d[_0x4b9684(0x2bc)];return!_0x377405||_0x377405['length']===0x0?_0xc04ff9:_0xc04ff9[_0x4b9684(0x269)]===_0x4b9684(0x137)&&(!((_0x31012b=_0xc04ff9['children'])===null||_0x31012b===void 0x0)&&_0x31012b[_0x4b9684(0x26c)])?b(b({},_0xc04ff9),{'children':_0xc04ff9[_0x4b9684(0x35f)][_0x4b9684(0x173)](function(_0x1fa1ea){const _0x2f6087=_0x4b9684;return typeof _0x1fa1ea['attrs']['id']==_0x2f6087(0x18e)&&_0x377405&&_0x377405[_0x2f6087(0x1ab)](_0x1fa1ea[_0x2f6087(0x1f8)]['id'])?b(b({},_0x1fa1ea),{'attrs':b(b({},_0x1fa1ea[_0x2f6087(0x1f8)]),{'id':_0x1fa1ea[_0x2f6087(0x1f8)]['id']+_0x372b5d[_0x2f6087(0x30d)]})}):_0x1fa1ea;})}):_0xc04ff9;}function Je(){const _0x5e302c=_0x3ac433;return Math[_0x5e302c(0x223)]()[_0x5e302c(0x24f)](0x24)[_0x5e302c(0x1cf)](0x2,0x8);}ge[_0x3ac433(0x19f)]='UniverIcon';var Ze={'tag':_0x3ac433(0x288),'attrs':{'xmlns':_0x3ac433(0x3a1),'fill':_0x3ac433(0x316),'viewBox':_0x3ac433(0x1ca),'width':'1em','height':_0x3ac433(0x2c6)},'children':[{'tag':'g','attrs':{'clipPath':_0x3ac433(0x2dd)},'children':[{'tag':_0x3ac433(0x1cd),'attrs':{'stroke':_0x3ac433(0x1c7),'d':_0x3ac433(0x1d4),'strokeLinecap':'round','strokeLinejoin':'round','strokeWidth':1.2}}]},{'tag':'defs','attrs':{},'children':[{'tag':_0x3ac433(0x1cb),'attrs':{'id':_0x3ac433(0x379)},'children':[{'tag':_0x3ac433(0x1cd),'attrs':{'fill':_0x3ac433(0x200),'d':_0x3ac433(0x254)}}]}]}],'defIds':[_0x3ac433(0x379)]},we=M[_0x3ac433(0x387)](function(_0x3c801e,_0xed8685){const _0x50e252=_0x3ac433;return M['createElement'](ge,Object[_0x50e252(0x343)]({},_0x3c801e,{'id':_0x50e252(0x22a),'ref':_0xed8685,'icon':Ze}));});we[_0x3ac433(0x19f)]=_0x3ac433(0x1ff);var Qe={'tag':'svg','attrs':{'xmlns':_0x3ac433(0x3a1),'fill':_0x3ac433(0x316),'viewBox':'0\x200\x2017\x2016','width':'1em','height':_0x3ac433(0x2c6)},'children':[{'tag':'g','attrs':{'clipPath':_0x3ac433(0x165)},'children':[{'tag':_0x3ac433(0x1cd),'attrs':{'stroke':_0x3ac433(0x1c7),'d':_0x3ac433(0x27b),'strokeLinecap':_0x3ac433(0x37e),'strokeLinejoin':_0x3ac433(0x37e),'strokeWidth':1.2}}]},{'tag':_0x3ac433(0x137),'attrs':{},'children':[{'tag':'clipPath','attrs':{'id':_0x3ac433(0x282)},'children':[{'tag':_0x3ac433(0x1cd),'attrs':{'fill':_0x3ac433(0x200),'d':_0x3ac433(0x254),'transform':_0x3ac433(0x16e)}}]}]}],'defIds':['on-line-icon_clip0_910_349']},Ae=M[_0x3ac433(0x387)](function(_0x53660e,_0x4f0bd3){const _0x1c6994=_0x3ac433;return M[_0x1c6994(0x260)](ge,Object[_0x1c6994(0x343)]({},_0x53660e,{'id':_0x1c6994(0x1a1),'ref':_0x4f0bd3,'icon':Qe}));});Ae[_0x3ac433(0x19f)]=_0x3ac433(0x296);function et(_0x21a4d5){const _0x4e78ef=_0x3ac433;switch(_0x21a4d5){case u['CollaborationStatus'][_0x4e78ef(0x2b2)]:return _0x4e78ef(0x2da);case u[_0x4e78ef(0x241)][_0x4e78ef(0x1ce)]:return _0x4e78ef(0x2c8);case u[_0x4e78ef(0x241)]['FETCH_MISS']:return'collabStatus.fetchMiss';case u[_0x4e78ef(0x241)]['NOT_COLLAB']:return'collabStatus.notCollab';case u[_0x4e78ef(0x241)]['AWAITING']:case u[_0x4e78ef(0x241)][_0x4e78ef(0x219)]:return'collabStatus.syncing';case u['CollaborationStatus'][_0x4e78ef(0x312)]:case u[_0x4e78ef(0x241)][_0x4e78ef(0x205)]:return _0x4e78ef(0x1e1);}}function tt(_0x567fe9){const _0x3b9804=_0x3ac433,{status$:_0x44ef8b}=_0x567fe9,_0x10f788=O[_0x3b9804(0x19d)](_0x44ef8b,u[_0x3b9804(0x241)]['NOT_COLLAB']),_0x176918=O[_0x3b9804(0x391)](a['LocaleService']),_0x15c882=O['useDependency'](u[_0x3b9804(0x2e9)]),_0x2f7812=_0x10f788!==u[_0x3b9804(0x241)][_0x3b9804(0x2b2)],_0x293fa7=_0x176918['t'](et(_0x10f788)),_0x160435=_0x2f7812?P['jsx'](Ae,{}):P[_0x3b9804(0x1ad)](we,{}),_0x426dea=M['useCallback'](()=>{const _0x36755e=_0x3b9804;_0x2f7812||_0x15c882[_0x36755e(0x26d)]();},[_0x2f7812,_0x15c882]);function _0x2f69d7(){const _0x223caf=_0x3b9804;return P[_0x223caf(0x234)](_0x223caf(0x249),{'className':'univer-flex\x20univer-items-center','onClick':_0x426dea,'children':[P[_0x223caf(0x1ad)](_0x223caf(0x249),{'className':D['clsx'](_0x223caf(0x183),{'univer-text-green-500':_0x2f7812,'univer-text-red-500':!_0x2f7812}),'children':_0x160435}),P['jsx'](_0x223caf(0x249),{'className':_0x223caf(0x1fe),'children':_0x293fa7})]});}return _0x2f7812?_0x2f69d7():P['jsx'](D[_0x3b9804(0x2b6)],{'title':_0x176918['t'](_0x3b9804(0x237)),'children':_0x2f69d7()});}var st=Object[_0x3ac433(0x295)],it=(_0x1faafb,_0x2cbe44,_0x38fd3d,_0x3cfde1)=>{const _0x332a38=_0x3ac433;for(var _0x40a881=_0x3cfde1>0x1?void 0x0:_0x3cfde1?st(_0x2cbe44,_0x38fd3d):_0x2cbe44,_0x1eb6fa=_0x1faafb[_0x332a38(0x26c)]-0x1,_0x5e4a1e;_0x1eb6fa>=0x0;_0x1eb6fa--)(_0x5e4a1e=_0x1faafb[_0x1eb6fa])&&(_0x40a881=_0x5e4a1e(_0x40a881)||_0x40a881);return _0x40a881;},V=(_0x3c554c,_0xe06f5e)=>(_0x26c6b6,_0x345cce)=>_0xe06f5e(_0x26c6b6,_0x345cce,_0x3c554c);exports[_0x3ac433(0x146)]=class extends a[_0x3ac433(0x18f)]{constructor(_0x246eaa,_0x58e8ef,_0xb5f57e,_0x59c63f){const _0x428dd7=_0x3ac433;super(),h(this,_0x428dd7(0x23d),new d['BehaviorSubject'](u[_0x428dd7(0x241)]['NOT_COLLAB'])),(this['_univerInstanceService']=_0x246eaa,this[_0x428dd7(0x168)]=_0x58e8ef,this['_collaborationController']=_0xb5f57e,this[_0x428dd7(0x1f5)]=_0x59c63f,this[_0x428dd7(0x1f4)](),this[_0x428dd7(0x210)]());}[_0x3ac433(0x210)](){const _0x4cff6f=_0x3ac433;this[_0x4cff6f(0x33a)](this['_univerInstanceService'][_0x4cff6f(0x15c)][_0x4cff6f(0x2f3)](d[_0x4cff6f(0x2e1)](()=>{const _0x490174=_0x4cff6f,_0xc1c046=this[_0x490174(0x217)]['getFocusedUnit']();return _0xc1c046?this['_collaborationController'][_0x490174(0x324)](_0xc1c046[_0x490174(0x161)]()):d['of'](null);}),d['switchMap'](_0x302630=>_0x302630?_0x302630[_0x4cff6f(0x2f6)]:d['of'](u[_0x4cff6f(0x241)][_0x4cff6f(0x3a8)])))[_0x4cff6f(0x319)](_0x35df48=>{const _0x235697=_0x4cff6f;this[_0x235697(0x23d)][_0x235697(0x2e4)](_0x35df48);}));}[_0x3ac433(0x1f4)](){const _0x2f742d=_0x3ac433;this[_0x2f742d(0x33a)](this[_0x2f742d(0x1f5)]['registerComponent'](O['BuiltInUIPart'][_0x2f742d(0x348)],()=>O['connectInjector'](nt({'status$':this[_0x2f742d(0x23d)][_0x2f742d(0x369)]()}),this[_0x2f742d(0x168)])));}},exports[_0x3ac433(0x146)]=it([V(0x0,a[_0x3ac433(0x39e)]),V(0x1,a[_0x3ac433(0x22e)](a[_0x3ac433(0x143)])),V(0x2,a[_0x3ac433(0x22e)](u[_0x3ac433(0x16b)])),V(0x3,O['IUIPartsService'])],exports['DesktopCollaborationStatusDisplayController']);function nt(_0x56bd5f){const {status$:_0x3deef1}=_0x56bd5f;return function(){const _0x11defb=_0x2522;return P[_0x11defb(0x1ad)](tt,{'status$':_0x3deef1});};}const me=a[_0x3ac433(0x198)](_0x3ac433(0x337));var rt=Object[_0x3ac433(0x295)],ot=(_0x18936c,_0x171c1f,_0x529d1e,_0x14d610)=>{for(var _0x3f3987=_0x14d610>0x1?void 0x0:_0x14d610?rt(_0x171c1f,_0x529d1e):_0x171c1f,_0x229214=_0x18936c['length']-0x1,_0x44c102;_0x229214>=0x0;_0x229214--)(_0x44c102=_0x18936c[_0x229214])&&(_0x3f3987=_0x44c102(_0x3f3987)||_0x3f3987);return _0x3f3987;},k=(_0x29cd68,_0x3fbe97)=>(_0x5158c4,_0xdadf4f)=>_0x3fbe97(_0x5158c4,_0xdadf4f,_0x29cd68);exports[_0x3ac433(0x308)]=class extends a[_0x3ac433(0x364)]{constructor(_0x5dad6f,_0x40916e,_0x556ff1,_0x2595f7,_0x1337d2){const _0x5258fc=_0x3ac433;super(),this[_0x5258fc(0x214)]=_0x5dad6f,this[_0x5258fc(0x1ef)]=_0x40916e,this[_0x5258fc(0x33e)]=_0x556ff1,this[_0x5258fc(0x35b)]=_0x2595f7,_0x1337d2?_0x1337d2==null||_0x1337d2[_0x5258fc(0x32c)]()[_0x5258fc(0x23e)](()=>this[_0x5258fc(0x2cd)]()):(this['_logService'][_0x5258fc(0x19a)](_0x5258fc(0x267),_0x5258fc(0x272)),this[_0x5258fc(0x2cd)]());}async[_0x3ac433(0x2cd)](){const _0x4da982=_0x3ac433,_0x296915=this[_0x4da982(0x214)][_0x4da982(0x397)](_0x4da982(0x2e5)),_0x1e19d0=this[_0x4da982(0x214)]['getParam']('type'),_0x466fb5=this[_0x4da982(0x214)][_0x4da982(0x397)](_0x4da982(0x24e));if(!_0x296915||!_0x1e19d0){this[_0x4da982(0x1ef)][_0x4da982(0x19a)]('[CollaborationDataLoaderController]',_0x4da982(0x15e));return;}const _0x414175=await this[_0x4da982(0x35b)][_0x4da982(0x19e)](_0x296915,Number(_0x1e19d0),_0x466fb5);_0x414175&&_0x414175 instanceof a[_0x4da982(0x2f5)]&&this[_0x4da982(0x358)](_0x414175);}async['_setupSubUnitSync'](_0x5cf41d){const _0x4b935c=_0x3ac433;await this['_updateSubUnitFromURLParams'](_0x5cf41d),_0x5cf41d[_0x4b935c(0x2a5)][_0x4b935c(0x2f3)](d[_0x4b935c(0x2c0)](this['dispose$']))[_0x4b935c(0x319)](_0x5d58ab=>{const _0x4ecdfd=_0x4b935c;_0x5d58ab&&this[_0x4ecdfd(0x2e6)](_0x5d58ab);}),this[_0x4b935c(0x214)][_0x4b935c(0x1bb)][_0x4b935c(0x2f3)](d[_0x4b935c(0x2c0)](this[_0x4b935c(0x1f2)]))['subscribe'](()=>this[_0x4b935c(0x399)](_0x5cf41d));}['_updateURLWithCurrentState'](_0x1bc2db,_0x34ed5e=!0x1){const _0x3c08ea=_0x3ac433,_0x5a091d=this[_0x3c08ea(0x214)][_0x3c08ea(0x397)]('subunit');_0x1bc2db[_0x3c08ea(0x292)]()!==_0x5a091d&&this[_0x3c08ea(0x214)][_0x3c08ea(0x1c1)](_0x3c08ea(0x24e),_0x1bc2db[_0x3c08ea(0x292)](),_0x34ed5e);}async['_updateSubUnitFromURLParams'](_0x226824){const _0x209182=_0x3ac433;var _0x530c08;const _0x19eee7=this[_0x209182(0x214)][_0x209182(0x397)](_0x209182(0x24e));if(!_0x19eee7||!_0x226824['getSheetBySheetId'](_0x19eee7)){const _0x3bcaef=_0x226824[_0x209182(0x2c1)]()[0x0],_0x5e4cc8=_0x226824[_0x209182(0x176)](_0x3bcaef);if(!_0x5e4cc8)return;this[_0x209182(0x2e6)](_0x5e4cc8,!0x0),await this['_commandService'][_0x209182(0x27d)](g[_0x209182(0x315)]['id'],{'unitId':_0x226824[_0x209182(0x161)](),'subUnitId':_0x3bcaef});return;}((_0x530c08=_0x226824[_0x209182(0x2e8)]())==null?void 0x0:_0x530c08['getSheetId']())!==_0x19eee7&&await this['_commandService'][_0x209182(0x27d)](g[_0x209182(0x315)]['id'],{'unitId':_0x226824[_0x209182(0x161)](),'subUnitId':_0x19eee7});}},exports[_0x3ac433(0x308)]=ot([k(0x0,me),k(0x1,a['ILogService']),k(0x2,a[_0x3ac433(0x287)]),k(0x3,a['Inject'](u[_0x3ac433(0x2aa)])),k(0x4,a[_0x3ac433(0x156)](Xe[_0x3ac433(0x1f7)]))],exports[_0x3ac433(0x308)]);var at=Object[_0x3ac433(0x295)],ct=(_0x8a1747,_0x1e5abe,_0x52a364,_0x45c930)=>{const _0x739650=_0x3ac433;for(var _0x16dd0a=_0x45c930>0x1?void 0x0:_0x45c930?at(_0x1e5abe,_0x52a364):_0x1e5abe,_0x190743=_0x8a1747[_0x739650(0x26c)]-0x1,_0x1d408e;_0x190743>=0x0;_0x190743--)(_0x1d408e=_0x8a1747[_0x190743])&&(_0x16dd0a=_0x1d408e(_0x16dd0a)||_0x16dd0a);return _0x16dd0a;},be=(_0x139250,_0x9414dd)=>(_0x31cad5,_0x36c2c0)=>_0x9414dd(_0x31cad5,_0x36c2c0,_0x139250);let ue=class extends a[_0x3ac433(0x364)]{constructor(_0x1a9b97,_0x32f36f){const _0x47975d=_0x3ac433;super(),this[_0x47975d(0x1fa)]=_0x1a9b97,this[_0x47975d(0x38d)]=_0x32f36f,this[_0x47975d(0x2cd)]();}[_0x3ac433(0x2cd)](){const _0x4d7fd0=_0x3ac433,_0x5405ca=this;this[_0x4d7fd0(0x33a)](this[_0x4d7fd0(0x1fa)][_0x4d7fd0(0x298)]({'onBeforePasteImage':async _0x5f0381=>{const _0x42a7d4=_0x4d7fd0,_0x572b6d=await _0x5405ca[_0x42a7d4(0x38d)]['saveImage'](_0x5f0381);return _0x572b6d?{'source':_0x572b6d[_0x42a7d4(0x286)],'imageSourceType':_0x572b6d[_0x42a7d4(0x1c6)]}:null;}}));}};ue=ct([be(0x0,E['IDocClipboardService']),be(0x1,Ge[_0x3ac433(0x273)])],ue);const Oe=[_0x3ac433(0x27f),_0x3ac433(0x15f),_0x3ac433(0x33d),'red.300',_0x3ac433(0x2c7),_0x3ac433(0x305)];class Ce extends a['Disposable']{constructor(){const _0x27aa42=_0x3ac433;super(...arguments),h(this,_0x27aa42(0x342),new Map()),h(this,'_colorIndex',0x0);}['assignAColorForMemberID'](_0x4b886d){const _0x3265ce=_0x3ac433;if(this[_0x3265ce(0x342)][_0x3265ce(0x13a)](_0x4b886d))return this[_0x3265ce(0x342)][_0x3265ce(0x32e)](_0x4b886d);const _0x877a94=Oe[this[_0x3265ce(0x1d8)]];return this['_colorIndex']=(this[_0x3265ce(0x1d8)]+0x1)%Oe[_0x3265ce(0x26c)],this['_assignedColors'][_0x3265ce(0x242)](_0x4b886d,_0x877a94),_0x877a94;}}function ye(_0x544756){const _0x1ca467=_0x3ac433;let _0x2c6b66='';for(const _0x229d98 of _0x544756){const {startOffset:_0x37c5ae,endOffset:_0x39a85e,isActive:_0x25a412,rangeType:_0xe71825,segmentId:_0x2ed233,segmentPage:_0x1c51da}=_0x229d98;_0x2c6b66[_0x1ca467(0x26c)]&&(_0x2c6b66+=','),_0x2c6b66+=_0x37c5ae+':'+_0x39a85e+':'+(_0x25a412?'1':'0')+':'+_0xe71825+':'+_0x2ed233+':'+_0x1c51da;}return _0x2c6b66;}function lt(_0x3bcf64){const _0xade23c=_0x3ac433,_0x3bb51d=_0x3bcf64[_0xade23c(0x25b)](','),_0x184991=[];for(const _0x3250cf of _0x3bb51d){const [_0x2fd132,_0x26c087,_0x4698de,_0x7e19e1,_0x408b59,_0x31821f]=_0x3250cf[_0xade23c(0x25b)](':');_0x184991['push']({'startOffset':Number(_0x2fd132),'endOffset':Number(_0x26c087),'collapsed':_0x2fd132===_0x26c087,'isActive':_0x4698de==='1','rangeType':_0x7e19e1===a['DOC_RANGE_TYPE'][_0xade23c(0x257)]?a['DOC_RANGE_TYPE'][_0xade23c(0x257)]:a['DOC_RANGE_TYPE'][_0xade23c(0x301)],'segmentId':typeof _0x408b59==_0xade23c(0x18e)?String(_0x408b59):'','segmentPage':Number(_0x31821f!=null?_0x31821f:-0x1)});}return _0x184991[_0xade23c(0x14f)](_0x48215a=>_0x48215a[_0xade23c(0x361)])||(_0x184991[0x0]['isActive']=!0x0),_0x184991;}class pe extends a[_0x3ac433(0x364)]{constructor(){const _0x57684e=_0x3ac433;super(...arguments),h(this,_0x57684e(0x306),new d['BehaviorSubject'](null)),h(this,_0x57684e(0x2e2),this[_0x57684e(0x306)][_0x57684e(0x369)]());}['syncEditingCollabCursor'](_0x266b44){const _0x14a6a2=_0x3ac433,{unitID:_0x270012,memberID:_0x3fa995,textRanges:_0x179c8e}=_0x266b44,_0x3eb8c1=ye(_0x179c8e);if(_0x3eb8c1==='')return;const _0x4c98cb={'unitID':_0x270012,'memberID':_0x3fa995,'selection':_0x3eb8c1};this[_0x14a6a2(0x306)][_0x14a6a2(0x2e4)](_0x4c98cb);}}var _t=Object[_0x3ac433(0x295)],ht=(_0x34b019,_0x356b65,_0x4c97c4,_0xb62703)=>{const _0x56a19d=_0x3ac433;for(var _0x1607bb=_0xb62703>0x1?void 0x0:_0xb62703?_t(_0x356b65,_0x4c97c4):_0x356b65,_0x30c2bb=_0x34b019[_0x56a19d(0x26c)]-0x1,_0x7a9936;_0x30c2bb>=0x0;_0x30c2bb--)(_0x7a9936=_0x34b019[_0x30c2bb])&&(_0x1607bb=_0x7a9936(_0x1607bb)||_0x1607bb);return _0x1607bb;},L=(_0x507576,_0x151b1f)=>(_0x35d17e,_0x312c53)=>_0x151b1f(_0x35d17e,_0x312c53,_0x507576);const ut=0x12c,dt=0x64;let de=class extends a[_0x3ac433(0x364)]{constructor(_0x37ef99,_0x216480,_0x6fae56,_0x171ce8,_0x30bfaf,_0x156dce,_0x5b6a48,_0x236789,_0x3d482d){const _0x2921af=_0x3ac433;super(),h(this,_0x2921af(0x17f),!0x1),h(this,_0x2921af(0x2cd),!0x1),h(this,_0x2921af(0x21a),new d['BehaviorSubject'](new Map())),h(this,_0x2921af(0x1b4),this[_0x2921af(0x21a)][_0x2921af(0x369)]()),h(this,_0x2921af(0x1eb),new d[(_0x2921af(0x330))]([])),h(this,'roomMembers$',this['_roomMembers$'][_0x2921af(0x2f3)](d['debounceTime'](ut))),h(this,_0x2921af(0x154),a[_0x2921af(0x31c)](_0x51a9a8=>{const _0x1cf5b8=_0x2921af,_0x345a9d={'eventID':m['CollaborationEvent'][_0x1cf5b8(0x31f)],'data':{'unitID':this['unitID'],'memberID':this[_0x1cf5b8(0x32f)][_0x1cf5b8(0x34c)](),'selection':ye(_0x51a9a8)}};this[_0x1cf5b8(0x32f)]['send'](_0x345a9d,this[_0x1cf5b8(0x2d7)]);},dt)),(this[_0x2921af(0x2d7)]=_0x37ef99,this[_0x2921af(0x32f)]=_0x216480,this[_0x2921af(0x168)]=_0x6fae56,this[_0x2921af(0x32a)]=_0x171ce8,this['_memberService']=_0x30bfaf,this[_0x2921af(0x28b)]=_0x156dce,this[_0x2921af(0x2ac)]=_0x5b6a48,this[_0x2921af(0x217)]=_0x236789,this['_commandService']=_0x3d482d);}get[_0x3ac433(0x354)](){const _0x5ab436=_0x3ac433;return this[_0x5ab436(0x21a)]['getValue']();}get['roomMembers'](){const _0x189fe0=_0x3ac433;return this['_roomMembers$'][_0x189fe0(0x23c)]();}[_0x3ac433(0x150)](){const _0x1714c9=_0x3ac433;super[_0x1714c9(0x150)](),this[_0x1714c9(0x21a)]['next'](new Map()),this[_0x1714c9(0x21a)][_0x1714c9(0x338)](),this[_0x1714c9(0x1eb)][_0x1714c9(0x2e4)]([]),this['_roomMembers$'][_0x1714c9(0x338)]();}[_0x3ac433(0x174)](){const _0x1191f7=_0x3ac433;this[_0x1191f7(0x2cd)]||(this[_0x1191f7(0x2cd)]=!0x0,this[_0x1191f7(0x32f)][_0x1191f7(0x309)][_0x1191f7(0x2f3)](d[_0x1191f7(0x2c0)](this[_0x1191f7(0x1f2)]))[_0x1191f7(0x319)](_0x272b63=>{const _0xfcdd24=_0x1191f7;_0x272b63===u['SessionStatus'][_0xfcdd24(0x195)]?this[_0xfcdd24(0x37b)]():this[_0xfcdd24(0x31d)]();}),this[_0x1191f7(0x32f)][_0x1191f7(0x253)][_0x1191f7(0x2f3)](d[_0x1191f7(0x2c0)](this[_0x1191f7(0x1f2)]))[_0x1191f7(0x319)](_0x2e86f0=>{const _0x23bf86=_0x1191f7,_0x4439ed=_0x2e86f0['eventID'];_0x4439ed===m[_0x23bf86(0x15d)][_0x23bf86(0x31f)]&&this[_0x23bf86(0x2d9)](_0x2e86f0),_0x4439ed===m['CollaborationEvent'][_0x23bf86(0x1a0)]&&this['_onCursorDelete'](_0x2e86f0);}),this['disposeWithMe'](this[_0x1191f7(0x33e)]['onCommandExecuted'](_0x1dc378=>{const _0x4da19e=_0x1191f7,_0x5c9f38=_0x1dc378['params'];_0x5c9f38!=null&&this['_online']&&_0x1dc378['id']===Y[_0x4da19e(0x334)]['id']&&_0x5c9f38[_0x4da19e(0x1f9)]===this[_0x4da19e(0x2d7)]&&_0x5c9f38[_0x4da19e(0x1a8)]===!0x1&&_0x5c9f38['ranges'][_0x4da19e(0x26c)]>0x0&&this['_updateLocalCursor'](_0x5c9f38[_0x4da19e(0x307)]);})),this[_0x1191f7(0x28b)][_0x1191f7(0x2e2)]['pipe'](d['takeUntil'](this[_0x1191f7(0x1f2)]))['subscribe'](_0x5ef862=>{const _0x1bf305=_0x1191f7;if((_0x5ef862==null?void 0x0:_0x5ef862[_0x1bf305(0x2d7)])!==this['unitID'])return;const _0x548724={'eventID':m[_0x1bf305(0x15d)][_0x1bf305(0x31f)],'data':_0x5ef862};this[_0x1bf305(0x2d9)](_0x548724);}),this['disposeWithMe'](this['_commandService']['onCommandExecuted'](_0x238987=>{const _0x5606ab=_0x1191f7;if(_0x238987['params']==null)return;const _0x32a1f3=_0x238987[_0x5606ab(0x247)];if(_0x238987['id']!==Y[_0x5606ab(0x2a0)]['id']||_0x32a1f3[_0x5606ab(0x1f9)]!==this[_0x5606ab(0x2d7)])return;const _0x46c7b9={'id':'doc.mutation.rich-text-editing','params':_0x32a1f3},_0x441eec=this[_0x5606ab(0x354)];for(const [_0x40af65,_0x545c9d]of _0x441eec){const _0x1b10fe={'id':_0x5606ab(0x16f),'params':{'unitId':this[_0x5606ab(0x2d7)],'actions':null,'textRanges':_0x545c9d[_0x5606ab(0x307)]}},_0x470f26=this[_0x5606ab(0x2ac)][_0x5606ab(0x204)](_0x46c7b9,_0x1b10fe,!0x1);if(m['isTransformMutationFailure'](_0x470f26))throw _0x470f26['error'];_0x441eec[_0x5606ab(0x242)](_0x40af65,{..._0x545c9d,'ranges':_0x470f26[_0x5606ab(0x1e7)][_0x5606ab(0x247)][_0x5606ab(0x353)]});}queueMicrotask(()=>{const _0x2a9e2c=_0x5606ab;this[_0x2a9e2c(0x21a)][_0x2a9e2c(0x2e4)](_0x441eec);});})));}['_onCursorUpdate'](_0x29c08f){const _0x1e978d=_0x3ac433;var _0x3ba362,_0xf68d44;const {memberID:_0x468635,selection:_0x263b06}=_0x29c08f[_0x1e978d(0x182)],_0x46b7d3=lt(_0x263b06),_0x28566c=(_0xf68d44=(_0x3ba362=this[_0x1e978d(0x177)][_0x1e978d(0x2de)](this[_0x1e978d(0x2d7)],_0x468635))==null?void 0x0:_0x3ba362[_0x1e978d(0x2ce)])!=null?_0xf68d44:_0x1e978d(0x1c9),_0x2f9b2f={'color':this[_0x1e978d(0x32a)][_0x1e978d(0x326)](_0x468635),'name':_0x28566c,'ranges':_0x46b7d3},_0x44db2b=this[_0x1e978d(0x354)];_0x44db2b[_0x1e978d(0x242)](_0x468635,_0x2f9b2f),this['_cursorInfo$'][_0x1e978d(0x2e4)](_0x44db2b);}[_0x3ac433(0x1d2)](_0x5ea0cd){const _0x3b2fd0=_0x3ac433,{memberID:_0x244da7}=_0x5ea0cd[_0x3b2fd0(0x182)],_0x39b933=this[_0x3b2fd0(0x354)];_0x39b933[_0x3b2fd0(0x27e)](_0x244da7),this['_cursorInfo$'][_0x3b2fd0(0x2e4)](_0x39b933);}['_toggleOnline'](){const _0x3521d5=_0x3ac433;var _0x514ab2;if(this[_0x3521d5(0x17f)]=!0x0,((_0x514ab2=this[_0x3521d5(0x217)][_0x3521d5(0x373)]())==null?void 0x0:_0x514ab2['getUnitId']())!==this['unitID'])return;const _0x3c6f3e=this[_0x3521d5(0x168)][_0x3521d5(0x32e)](Y['DocSelectionManagerService'])['getDocRanges']();Array[_0x3521d5(0x20e)](_0x3c6f3e)&&_0x3c6f3e[_0x3521d5(0x26c)]>0x0&&this['_updateLocalCursor'](_0x3c6f3e);}[_0x3ac433(0x31d)](){const _0x5e3093=_0x3ac433;this[_0x5e3093(0x17f)]=!0x1;}};function _0x5e3c(){const _0x367f33=['MOBILE_HAS_BEEN_BOUND','_disabled','symbol','CHANGESET_REVISION_CONFILICT','values','forEach','VIEW_MAIN','Vector2','PERMISSION_DENIED','RECT','transformRemoteChangeset','hovered','_lastPointer','yellow.400','_collabCursorState$','ranges','CollaborationDataLoaderController','sessionStatus$','resize','transformStateCache','IConfigService','idSuffix','findNodePositionByCharIndex','isTransformMutationFailure','Module','_collaborationController','SYNCED','INVALID_INVITE_CODE','syncEditingCollabCursor','SetWorksheetActivateCommand','none','parse','_transformPreviousActiveRange','subscribe','MOBILE_VERIFY_CODE_MISMATCH','SHEET_VIEWPORT_KEY','debounce','_toggleOffline','startColumn','UPDATE_CURSOR','triggerDblclick','SetDocZoomRatioOperation','propertyIsEnumerable','_themeService','getCollabEntity$','WECHAT_HAS_BEEN_BOUND','assignAColorForMemberID','getCurrent','distinctUntilChanged','ACTIVE_UNIT_EVENT_CHANNEL','_colorAssignService','CollaborationUIEventService','whenReady','column','get','_session','BehaviorSubject','DEFAULT_WS_SESSION_TICKET_URL','_initEvent','_updateCollabCursors','SetTextSelectionsOperation','unload','_saveCache','uni.network.url-service','complete','search','disposeWithMe','Rect','enableLocalCache','green.600','_commandService','onPointerEnter$','_handleHover','_docTransformIMECacheService','_assignedColors','assign','Shape','fillStyle','text','_cursor','HEADER_MENU','7865QWddPE','_notificationService','saveTaskMap','getMemberID','_unitOnClients','_color','onMouseMove','_onRefRangeChange','send','getItem','textRanges','cursorInfo','handleInsertRangeMoveRight','_httpService','PY_RUNTIME_SCRIPT_ERROR','_setupSubUnitSync','INVITE_CODE_REQUIRED','registerRefRange','_dataLoaderService','InsertColCommandId','_anchorDot','_localCacheService','children','addEventListener','isActive','onStarting','_hideTimer','RxDisposable','_shapes','getRelativeToViewportCoord','touchDependencies','_drawAnchor','asObservable','prototype','trim','12HhSsok','getUniverSheetInstance','entries','_handleLeaveEvent','lineTo','ENSURE_SNAPSHOT_EXECUTION','location','getFocusedUnit','call','_removeClearOtherTimer','Warning','m1Prime','_initDependencies','off-line-icon_clip0_910_343','_docSkeletonManagerService','_toggleOnline','_removeCollabCursors','history','round','...','119566FBNKMy','_clearOtherTimers','fillRule','throttleTime','UniverCollaborationClientUIPlugin','_collabCursorController','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','forwardRef','_docSyncEditingCollabCursorService','from','YUUMI_AI_RUN_FAILED','YUUMI_NO_CUBOID_FOR_QUESTION','getTypeOfUnitAdded$','_imageIoService','clearInterval','pushState','_initEntityListener','useDependency','YUUMI_UNABLE_LOAD_URL','collaboration.single-unit.warning','endRow','_backgroundColor','mutations','getParam','subscribeEvent','_updateSubUnitFromURLParams','setShapeProps','currentTheme$','_cursorShapes','show','IUniverInstanceService','origin','116814kAcujz','http://www.w3.org/2000/svg','fromEventSubject','add','LocaleService','_setupBeforeClosingHandler','roomMembers','getCollabCursors$','NOT_COLLAB','all','getOffsetConfig','defs','filter','_ensureSubject','has','SetSelectionsOperation','top','collab-text-range-','APPLY_DUPLICATED','editingUnit','364kqcsiQ','Tools','mergeOverrideWithDependencies','Injector','ILocalStorageService','UniverCollaborationClientPlugin','DesktopCollaborationStatusDisplayController','updateOfflineData','Failed','UniverInstanceType','DocIMEInputManagerService','body','_draw','registerBeforeClose','post','some','dispose','_refreshCollabCursors','width','indexOf','_updateLocalCursor','application/json','Optional','getConfig','InsertRowCommandId','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','runId','colorChannel1','focused$','CollaborationEvent','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','jiqing.500','replace','getUnitId','LICENSE_MAX_UNITS_EXCEEDED','sheetId','_renderManagerService','url(#on-line-icon_clip0_910_349)','endColumn','getRangePointData','_injector','DocStateChangeManagerService','newValue','CollaborationController','FromArray','startRow','translate(.97)','doc.mutation.rich-text-editing','YUUMI_URL_COL_OUT_OF_RANGE','evenodd','labelPosition','map','init','ALREADY_EXISTS','getSheetBySheetId','_memberService','actions','ILocalCacheService','fill','YUUMI_ALL_TABLES_IS_INVALID','MOBILE_VERIFY_CODE_NOT_FOUND_OR_EXPIRED','INTERNAL_ERROR','_configService','_online','row','_scheduleSaving','data','univer-mr-2\x20univer-flex\x20univer-text-xl','YUUMI_TABLE_NOT_FOUND_IN_UNIT','_docSkeleton','MemberService','collaboration-client.offline-data-not-saved','_range','disableLocalCache','_textBubble','NodePositionConvertToRectRange','transformIMECache','LOCAL_CACHE_INTERVAL_KEY','string','Disposable','_saveTaskMap','pluginName','_cursors','APPLY_PERMISSION_DENIED','8VAGWhT','ONLINE','toRgbString','_initCommandExecutedListener','createIdentifier','EMAIL_VERIFY_CODE_NOT_FOUND_OR_EXPIRED','debug','EMAIL_HAS_BEEN_BOUND','_collabSessionService','useObservable','loadUnit','displayName','USERS_LEAVE','on-line-icon','_docTransformSelectionsService','LICENSE_IMPORT_SIZE_EXCEEDED','getLocalCacheKey','Subject','YUUMI_SUBSCRIPTION_NOT_FOUND','collab-text-anchor-','isEditing','entityInit$','DependentOn','includes','Plugin','jsx','getRenderById','INVITE_CODE_HAS_BEEN_UES','_labelPosition','setAlpha','_handleHeartbeatEvent','NO_OTHER_CLIENTS_EDITING','cursorInfo$','_entityInit$','useRef','UnitStatus','ITransformService','_scheduleHeartbeat','_heartbeatTimer','urlChange$','TOO_MANY_REQUESTS','href','9540ULUwMQ','SNAPSHOT_INVALID_SNAPSHOT','measureText','setParam','restore','_registerRenderDependencies','getCurrentUnitForType','makeDirty','imageSourceType','currentColor','APPLY_NON_SEQUENTIAL_REVISION','Unknown\x20user','0\x200\x2016\x2016','clipPath','_getSessionTicket','path','CONFLICT','substring','key','isTransformMutationsWithChangesetSuccess','_onCursorDelete','icon','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','RemoteUniscriptService','COLORS','ThemeService','_colorIndex','height','_hovered','popstate','max','_selfUnitIDs','onPointerMove$','getTypeOfUnitDisposed$','undoState','collabStatus.synced','SOCKET_FAILED_RETRY','_handleEvent','permission.title','_getAnchorBounding','UNIVER_DOC','m2Prime','ColorKit','min','setConfig','_roomMembers$','33qTuZxU','currentSkeleton$','getCoordByCell','_logService','requireSession','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','dispose$','handleDeleteRangeMoveLeft','_initStatusComponent','_uiPartsService','_hover','IRemoteInstanceService','attrs','unitId','_docClipboardService','arc','62537KsmokK','handleInsertRow','univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','OffLineIcon','white','univerjs-icon\x20univerjs-icon-','COMPLETION_FINISHED','_scene','transformMutation','PENDING','_unitStatus','save','addObjects','eventID','defineProperty','ILogService','UNIVER_COLLABORATION_CLIENT_WEB_PLUGIN','WebSocketService','isArray','_docTransformStateCacheService','_initStatusListener','25227zOtoCv','RegularPolygon','getSheetObject','_urlService','LOGIN_FAILED','_config','_univerInstanceService','getMergeData','AWAITING_WITH_PENDING','_cursorInfo$','LICENSE_DISTRO_REJECTED','UNRECOGNIZED','_revisionService','SheetsSelectionsService','_registerDependencies','createInstance','onPointerLeave$','_entities','random','UNIVER_SHEET','getDocRanges','bottom','size','toStringTag','INotificationService','off-line-icon','fromEvent','selection','HTTPService','Inject','setActiveRange','debounceTime','RemoveColCommandId','_id','handleIRemoveCol','jsxs','_cachedData','_name','collab-client.tooltip.reconnect','_sheetSkeletonManagerService','push','OTHER_CLIENT_EDITING','SNAPSHOT_HAS_BEEN_REMOVED','getValue','_status$','then','getStateCache','_startDocCollabCursor','CollaborationStatus','set','getCellPositionByOffset','_anchor','BrowserCollaborationSocketService','REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY','params','IURLService','div','transformMutationsWithChangeset','transformSelections','black','loadOfflineData','subunit','toString','clearTimeout','_createSocketURL','EffectRefRangId','event$','M0\x200H16V16H0z','SheetSkeletonManagerService','combineLatest','TEXT','saveOfflineData','setTimeout','_localStorageService','split','use','RevisionService','collaboration.closeRoom','addObject','createElement','generateRandomId','_getSheetObject','_render','YUUMI_RATE_OVER_LIMIT','CONNECTOR_DATA_TOO_LARGE','TEXT_RANGE_LAYER_INDEX','[CollaborationDataLoaderController]','fillText','tag','JOIN_ROOM_FAILED','_getSaveTimeout','length','reconnect','sessionTicket','executionId','_doCreateSocket','handleMoveRange','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','IImageIoService','InsertRangeMoveRightCommandId','_messageService','exhaustSavingTask','DeleteRangeMoveLeftCommandId','3112uvCZeu','handleIRemoveRow','stringify','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','contains','executeCommand','delete','purple.300','12607309epQFWz','session.collaboration-timeout','on-line-icon_clip0_910_349','MUTATION','MoveRangeCommandId','permission.content','source','ICommandService','svg','unshift','RefRangeService','_syncEditingCollabCursorService','DOC_RANGE_TYPE','_transformHistoryAndStateStack','collab-rect-range-','_localeService','hasOwnProperty','_getScale','getSheetId','SUBMIT_CHANGESET_TIMEOUT','removeParam','getOwnPropertyDescriptor','OnLineIcon','color','addClipboardHook','MessageType','font','APPLY_REVISION_CONFILICT','UNAUTHENTICATED','_collaborationUIEventService','IRenderManagerService','hide','RichTextEditingMutation','registerRenderModule','concat','searchParams','CollaborationSocketService','activeSheet$','with','CollaborationUIEventId','INVALID_ARGUMENT','_context','DataLoaderService','_eventUnsubscribe','_transformService','setItem','redoState','EMAIL_VERIFY_CODE_MISMATCH','YUUMI_ASYNCIO_CANCELLED','_handleJoinEvent','OFFLINE','[RemoteUniscriptService]:\x20no\x20focused\x20unit','UNDEFINED','INVITE_CODE_ALREADY_BOUND','Tooltip','getColor','className','_drawTextRange','DocSelectionManagerService','docStateChange$','defIds','shareReplay','_docStateChangeManagerService','/run/','takeUntil','getUnhiddenWorksheets','_transformUndoRedoStack','extend','createSocket','merge','1em','blue.400','collabStatus.conflict','setStateCache','range','IBeforeCloseService','drawWith','_init','name','handleInsertCol','_scheduleClearOtherTimer','IMessageService','_send','error','unsubscribe','rgba(255,\x20255,\x20255,\x200.01)','WebBrowserSingleActiveUnitService','unitID','Error','_onCursorUpdate','collabStatus.offline','xlink:href','replaceState','url(#off-line-icon_clip0_910_343)','getMember','APPLY_REJECT','3540915HjtUWq','switchMap','collabCursorState$','onCommandExecuted','next','unit','_updateURLWithCurrentState','getAncestorScale','getActiveSheet','CollaborationSessionService','_getMergeRange','SessionStatus','YUUMI_CONNECTOR_URL_NOT_FOUND','_initResize','deepClone','OTHER_CLIENTS_EDITING','moveTo','LICENSE_EXPORT_SIZE_EXCEEDED','_beforeCloseService','pipe','type','Workbook','status$','USER_NOT_INVITED_CODE'];_0x5e3c=function(){return _0x367f33;};return _0x5e3c();}de=ht([L(0x2,a[_0x3ac433(0x22e)](a['Injector'])),L(0x3,a[_0x3ac433(0x22e)](Ce)),L(0x4,a['Inject'](u['MemberService'])),L(0x5,a[_0x3ac433(0x22e)](pe)),L(0x6,m['ITransformService']),L(0x7,a[_0x3ac433(0x39e)]),L(0x8,a[_0x3ac433(0x287)])],de);var St=Object[_0x3ac433(0x295)],ft=(_0xac3e48,_0x5ccc6e,_0x3127c5,_0xb14ce8)=>{const _0x174440=_0x3ac433;for(var _0x158be7=_0xb14ce8>0x1?void 0x0:_0xb14ce8?St(_0x5ccc6e,_0x3127c5):_0x5ccc6e,_0x16a02a=_0xac3e48[_0x174440(0x26c)]-0x1,_0x3131fc;_0x16a02a>=0x0;_0x16a02a--)(_0x3131fc=_0xac3e48[_0x16a02a])&&(_0x158be7=_0x3131fc(_0x158be7)||_0x158be7);return _0x158be7;},A=(_0x2bb7a5,_0x4f9003)=>(_0x3d3085,_0x227e03)=>_0x4f9003(_0x3d3085,_0x227e03,_0x2bb7a5);const It=0x12c,vt=0x64,gt=()=>{let _0x5e8602=[],_0x735799=!0x1;return _0x40a2f8=>{const _0x23332e=_0x2522;_0x5e8602[_0x23332e(0x239)](_0x40a2f8),_0x735799||(_0x735799=!0x0,setTimeout(()=>{const _0x2994fd=_0x23332e;_0x5e8602[_0x2994fd(0x2fd)](_0xb6c544=>_0xb6c544()),_0x5e8602=[],_0x735799=!0x1;}));};};let Se=class extends a[_0x3ac433(0x364)]{constructor(_0x383bc8,_0x56d445,_0x42df8f,_0x340e6e,_0x5df828,_0x40ffc9,_0x378fe8,_0x26016a){const _0x30501a=_0x3ac433;super(),h(this,_0x30501a(0x17f),!0x1),h(this,_0x30501a(0x2cd),!0x1),h(this,_0x30501a(0x21a),new d[(_0x30501a(0x330))](new Map())),h(this,'cursorInfo$',this[_0x30501a(0x21a)]['asObservable']()),h(this,'_roomMembers$',new d[(_0x30501a(0x330))]([])),h(this,'roomMembers$',this[_0x30501a(0x1eb)][_0x30501a(0x2f3)](d[_0x30501a(0x230)](It))),h(this,_0x30501a(0x154),a[_0x30501a(0x31c)]((_0x9d237c,_0x5a210)=>{const _0xdf6fda=_0x30501a,_0x471eeb={'eventID':m[_0xdf6fda(0x15d)][_0xdf6fda(0x31f)],'data':{'unitID':this[_0xdf6fda(0x2d7)],'memberID':this[_0xdf6fda(0x32f)][_0xdf6fda(0x34c)](),'selection':Ee['serializeRangeWithSheet'](_0x9d237c,_0x5a210[_0xdf6fda(0x2ca)])}};this['_session'][_0xdf6fda(0x351)](_0x471eeb,this[_0xdf6fda(0x2d7)]);},vt)),(this[_0x30501a(0x2d7)]=_0x383bc8,this[_0x30501a(0x32f)]=_0x56d445,this['_injector']=_0x42df8f,this['_colorAssignService']=_0x340e6e,this[_0x30501a(0x177)]=_0x5df828,this['_univerInstanceService']=_0x40ffc9,this['_commandService']=_0x378fe8,this['_refRangeService']=_0x26016a);}get[_0x3ac433(0x354)](){const _0x35e468=_0x3ac433;return this[_0x35e468(0x21a)]['getValue']();}get[_0x3ac433(0x3a6)](){const _0x4cbe75=_0x3ac433;return this[_0x4cbe75(0x1eb)][_0x4cbe75(0x23c)]();}['dispose'](){const _0x5e87d8=_0x3ac433;super[_0x5e87d8(0x150)](),this[_0x5e87d8(0x21a)]['next'](new Map()),this[_0x5e87d8(0x21a)][_0x5e87d8(0x338)](),this[_0x5e87d8(0x1eb)][_0x5e87d8(0x2e4)]([]),this['_roomMembers$']['complete']();}[_0x3ac433(0x174)](){const _0x39a8bd=_0x3ac433;this[_0x39a8bd(0x2cd)]||(this[_0x39a8bd(0x2cd)]=!0x0,this[_0x39a8bd(0x32f)]['sessionStatus$'][_0x39a8bd(0x2f3)](d[_0x39a8bd(0x2c0)](this['dispose$']))[_0x39a8bd(0x319)](_0x17006e=>{const _0x3f54c5=_0x39a8bd;_0x17006e===u[_0x3f54c5(0x2eb)][_0x3f54c5(0x195)]?this[_0x3f54c5(0x37b)]():this[_0x3f54c5(0x31d)]();}),this[_0x39a8bd(0x32f)][_0x39a8bd(0x253)][_0x39a8bd(0x2f3)](d['takeUntil'](this['dispose$']))[_0x39a8bd(0x319)](_0x1bde4f=>{const _0x412055=_0x39a8bd,_0x38c7ab=_0x1bde4f[_0x412055(0x209)];_0x38c7ab===m[_0x412055(0x15d)][_0x412055(0x31f)]&&this[_0x412055(0x2d9)](_0x1bde4f),_0x38c7ab===m[_0x412055(0x15d)]['USERS_LEAVE']&&this[_0x412055(0x1d2)](_0x1bde4f);}),this['_onRefRangeChange'](),this[_0x39a8bd(0x33a)](this[_0x39a8bd(0x33e)][_0x39a8bd(0x2e3)](_0x1f4e58=>{const _0x4dbdf0=_0x39a8bd;if(this[_0x4dbdf0(0x17f)]&&_0x1f4e58['id']===g[_0x4dbdf0(0x13b)]['id']&&_0x1f4e58[_0x4dbdf0(0x247)]['unitId']===this[_0x4dbdf0(0x2d7)]){const _0x20d819=_0x1f4e58['params'];this[_0x4dbdf0(0x154)](_0x20d819['subUnitId'],_0x20d819['selections'][0x0]);}})));}[_0x3ac433(0x2d9)](_0x36a126){const _0x2e7150=_0x3ac433;var _0x2d2f47,_0x399dcd;const {memberID:_0x3433d9,selection:_0x27cdee}=_0x36a126[_0x2e7150(0x182)],{sheetName:_0x46cfe2,range:_0x5e9924}=Ee['deserializeRangeWithSheet'](_0x27cdee),_0x393725={'name':(_0x399dcd=(_0x2d2f47=this['_memberService']['getMember'](this['unitID'],_0x3433d9))==null?void 0x0:_0x2d2f47[_0x2e7150(0x2ce)])!=null?_0x399dcd:_0x2e7150(0x1c9),'range':this[_0x2e7150(0x2ea)](_0x46cfe2,_0x5e9924),'sheetID':_0x46cfe2,'color':this['_colorAssignService']['assignAColorForMemberID'](_0x3433d9),'selection':_0x27cdee},_0x30dbd5=this[_0x2e7150(0x354)];_0x30dbd5[_0x2e7150(0x242)](_0x3433d9,_0x393725),this[_0x2e7150(0x21a)]['next'](_0x30dbd5);}['_onCursorDelete'](_0x34961d){const _0x4200d5=_0x3ac433,{memberID:_0x3ef7bd}=_0x34961d[_0x4200d5(0x182)],_0x973666=this[_0x4200d5(0x354)];_0x973666[_0x4200d5(0x27e)](_0x3ef7bd),this['_cursorInfo$'][_0x4200d5(0x2e4)](_0x973666);}[_0x3ac433(0x2ea)](_0x271d20,_0x10ce17){const _0x15e445=_0x3ac433;var _0x4af640,_0x92cf69;const _0x2ac6e6=(_0x92cf69=(_0x4af640=this[_0x15e445(0x217)][_0x15e445(0x36d)](this[_0x15e445(0x2d7)]))==null?void 0x0:_0x4af640['getSheetBySheetId'](_0x271d20))==null?void 0x0:_0x92cf69[_0x15e445(0x218)]();return(_0x2ac6e6==null?void 0x0:_0x2ac6e6['find'](_0x227b52=>a['Rectangle'][_0x15e445(0x27c)](_0x227b52,_0x10ce17)))||_0x10ce17;}[_0x3ac433(0x350)](){const _0x4a7499=_0x3ac433,_0x54f56c=new a['DisposableCollection'](),_0x45d3cc=gt(),_0x5ea33e=()=>{const _0x3c10e0=_0x2522;_0x54f56c[_0x3c10e0(0x150)]();const _0x3fd4f4=(_0x3ce353,_0x5cac57,_0x5a0c37,_0x319822)=>{const _0x3364b6=_0x3c10e0;let _0x20febd=[];switch(_0x3ce353['id']){case g[_0x3364b6(0x252)][_0x3364b6(0x277)]:{_0x20febd=g[_0x3364b6(0x1f3)](_0x3ce353,_0x319822);break;}case g[_0x3364b6(0x252)]['DeleteRangeMoveUpCommandId']:{_0x20febd=g['handleDeleteRangeMoveUp'](_0x3ce353,_0x319822);break;}case g[_0x3364b6(0x252)][_0x3364b6(0x35c)]:{_0x20febd=g[_0x3364b6(0x2cf)](_0x3ce353,_0x319822);break;}case g[_0x3364b6(0x252)]['InsertRangeMoveDownCommandId']:{_0x20febd=g['handleInsertRangeMoveDown'](_0x3ce353,_0x319822);break;}case g[_0x3364b6(0x252)][_0x3364b6(0x274)]:{_0x20febd=g[_0x3364b6(0x355)](_0x3ce353,_0x319822);break;}case g[_0x3364b6(0x252)][_0x3364b6(0x158)]:{_0x20febd=g[_0x3364b6(0x1fd)](_0x3ce353,_0x319822);break;}case g[_0x3364b6(0x252)][_0x3364b6(0x284)]:{_0x20febd=g[_0x3364b6(0x271)](_0x3ce353,_0x319822);break;}case g['EffectRefRangId'][_0x3364b6(0x231)]:{_0x20febd=g[_0x3364b6(0x233)](_0x3ce353,_0x319822);break;}case g[_0x3364b6(0x252)]['RemoveRowCommandId']:{_0x20febd=g[_0x3364b6(0x279)](_0x3ce353,_0x319822);break;}}const _0x4e8e74=g['runRefRangeMutations'](_0x20febd,_0x319822),_0x463f03=this['cursorInfo']['get'](_0x5cac57);if(_0x463f03&&_0x4e8e74){const _0xfcb5c8={..._0x463f03,'range':_0x4e8e74};this[_0x3364b6(0x354)][_0x3364b6(0x242)](_0x5cac57,_0xfcb5c8),_0x45d3cc(()=>{const _0x58e69c=_0x3364b6,_0x231236=this['_refRangeService'][_0x58e69c(0x35a)](_0x4e8e74,_0x3828cd=>(_0x231236[_0x58e69c(0x150)](),_0x3fd4f4(_0x3828cd,_0x5cac57,_0x5a0c37,_0x4e8e74)));_0x54f56c['add'](_0x231236);});}return{'redos':[],'undos':[]};};this[_0x3c10e0(0x354)][_0x3c10e0(0x2fd)]((_0x41dbe8,_0x16cb52)=>{const _0x9aa560=_0x3c10e0,{range:_0x4b64ed,sheetID:_0x1eb066}=_0x41dbe8,_0x521fb2=this['_refRangeService']['registerRefRange'](_0x4b64ed,_0x59103d=>(_0x521fb2[_0x9aa560(0x150)](),_0x3fd4f4(_0x59103d,_0x16cb52,_0x1eb066,_0x4b64ed)));_0x54f56c['add'](_0x521fb2);});};this['disposeWithMe'](a['toDisposable'](this[_0x4a7499(0x21a)][_0x4a7499(0x319)](()=>{_0x5ea33e();})));}['_toggleOnline'](){const _0x31d5e8=_0x3ac433;var _0xfc924,_0x1b6e71;if(this[_0x31d5e8(0x17f)]=!0x0,((_0xfc924=this['_univerInstanceService']['getFocusedUnit']())==null?void 0x0:_0xfc924[_0x31d5e8(0x161)]())!==this['unitID'])return;const _0x321a3f=(_0x1b6e71=this[_0x31d5e8(0x168)]['get'](g[_0x31d5e8(0x21e)])['getCurrentSelections']())==null?void 0x0:_0x1b6e71[0x0],_0x21645e=this['_univerInstanceService'][_0x31d5e8(0x1c4)](a[_0x31d5e8(0x149)]['UNIVER_SHEET'])[_0x31d5e8(0x2e8)]();_0x321a3f&&_0x21645e&&this['_updateLocalCursor'](_0x21645e[_0x31d5e8(0x292)](),_0x321a3f);}['_toggleOffline'](){this['_online']=!0x1;}};Se=ft([A(0x2,a[_0x3ac433(0x22e)](a['Injector'])),A(0x3,a[_0x3ac433(0x22e)](Ce)),A(0x4,a[_0x3ac433(0x22e)](u[_0x3ac433(0x186)])),A(0x5,a['IUniverInstanceService']),A(0x6,a[_0x3ac433(0x287)]),A(0x7,a[_0x3ac433(0x22e)](g[_0x3ac433(0x28a)]))],Se);var mt=Object[_0x3ac433(0x295)],Ct=(_0x4695ec,_0x87db5c,_0x41a2e3,_0x262373)=>{for(var _0x306498=_0x262373>0x1?void 0x0:_0x262373?mt(_0x87db5c,_0x41a2e3):_0x87db5c,_0x3a4878=_0x4695ec['length']-0x1,_0x489023;_0x3a4878>=0x0;_0x3a4878--)(_0x489023=_0x4695ec[_0x3a4878])&&(_0x306498=_0x489023(_0x306498)||_0x306498);return _0x306498;},ie=(_0x1c2a1a,_0x41b119)=>(_0x2727ac,_0x601110)=>_0x41b119(_0x2727ac,_0x601110,_0x1c2a1a);let x=class extends a[_0x3ac433(0x364)]{constructor(_0xfdae28,_0x45e86b,_0x1e00c2){const _0x2b689d=_0x3ac433;super(),h(this,_0x2b689d(0x222),new Map()),h(this,_0x2b689d(0x1b5),new d[(_0x2b689d(0x1a5))]()),(this['_univerInstanceService']=_0xfdae28,this[_0x2b689d(0x168)]=_0x45e86b,this[_0x2b689d(0x19c)]=_0x1e00c2,this[_0x2b689d(0x2cd)]());}[_0x3ac433(0x150)](){const _0x142ef2=_0x3ac433;super[_0x142ef2(0x150)](),this[_0x142ef2(0x1b5)][_0x142ef2(0x338)](),this[_0x142ef2(0x222)][_0x142ef2(0x2fd)](_0x2f4e5c=>_0x2f4e5c[_0x142ef2(0x150)]());}['getCollabCursors$'](_0x216e73){const _0x319a31=_0x3ac433;return this['_entities'][_0x319a31(0x13a)](_0x216e73)?this['_entities'][_0x319a31(0x32e)](_0x216e73)['cursorInfo$']:this[_0x319a31(0x1b5)]['pipe'](d[_0x319a31(0x138)](_0x2be9a0=>_0x2be9a0[_0x319a31(0x2d7)]===_0x216e73),d[_0x319a31(0x2e1)](_0x552683=>_0x552683['cursorInfo$']));}[_0x3ac433(0x2cd)](){const _0x2cb494=_0x3ac433;this[_0x2cb494(0x217)][_0x2cb494(0x38c)](a['UniverInstanceType'][_0x2cb494(0x224)])['pipe'](d[_0x2cb494(0x2c0)](this[_0x2cb494(0x1f2)]))[_0x2cb494(0x319)](async _0x44caf3=>{const _0x4991bc=_0x2cb494,_0x4b362f=_0x44caf3[_0x4991bc(0x161)](),_0x152a57=await this['_startSheetCollabCursor'](_0x4b362f);this['_entityInit$'][_0x4991bc(0x2e4)](_0x152a57),this[_0x4991bc(0x222)][_0x4991bc(0x242)](_0x4b362f,_0x152a57);}),this[_0x2cb494(0x217)][_0x2cb494(0x38c)](a[_0x2cb494(0x149)][_0x2cb494(0x1e6)])[_0x2cb494(0x2f3)](d['takeUntil'](this[_0x2cb494(0x1f2)]))['pipe'](d['filter'](_0x5b7fd8=>!_0x5b7fd8[_0x2cb494(0x161)]()['startsWith']('__')))[_0x2cb494(0x319)](async _0x100805=>{const _0x1be567=_0x2cb494,_0x3b4e5e=_0x100805[_0x1be567(0x161)](),_0x23ca3b=await this[_0x1be567(0x240)](_0x3b4e5e);this[_0x1be567(0x1b5)][_0x1be567(0x2e4)](_0x23ca3b),this[_0x1be567(0x222)][_0x1be567(0x242)](_0x3b4e5e,_0x23ca3b);}),d[_0x2cb494(0x2c5)](this[_0x2cb494(0x217)][_0x2cb494(0x1df)](a[_0x2cb494(0x149)][_0x2cb494(0x1e6)]),this['_univerInstanceService'][_0x2cb494(0x1df)](a[_0x2cb494(0x149)][_0x2cb494(0x224)]))['pipe'](d[_0x2cb494(0x2c0)](this['dispose$']))[_0x2cb494(0x319)](_0x529af7=>{const _0x3325d1=_0x2cb494,_0x118160=_0x529af7[_0x3325d1(0x161)](),_0x22b889=this[_0x3325d1(0x222)]['get'](_0x118160);_0x22b889&&(_0x22b889[_0x3325d1(0x150)](),this['_entities'][_0x3325d1(0x27e)](_0x118160));});}async['_startSheetCollabCursor'](_0x185d50){const _0x4f7ed5=_0x3ac433,_0x4fa860=await this[_0x4f7ed5(0x19c)][_0x4f7ed5(0x1f0)](_0x185d50),_0x280a52=this[_0x4f7ed5(0x168)][_0x4f7ed5(0x220)](Se,_0x185d50,_0x4fa860);return _0x280a52[_0x4f7ed5(0x174)](),_0x280a52;}async[_0x3ac433(0x240)](_0x4d193d){const _0x4a92e5=_0x3ac433,_0xbb6bee=await this[_0x4a92e5(0x19c)][_0x4a92e5(0x1f0)](_0x4d193d),_0x5df7cc=this['_injector']['createInstance'](de,_0x4d193d,_0xbb6bee);return _0x5df7cc[_0x4a92e5(0x174)](),_0x5df7cc;}};x=Ct([ie(0x0,a[_0x3ac433(0x39e)]),ie(0x1,a['Inject'](a['Injector'])),ie(0x2,a[_0x3ac433(0x22e)](u['CollaborationSessionService']))],x);const W=0x14,Te=0xc8,ne=0x4,pt=0x5;function Et(_0x2e9021,_0x4a1c63){const _0x57edb1=_0x3ac433;let {radius:_0x4329f8,width:_0x4c946a,height:_0x52934f}=_0x4a1c63;_0x4329f8=_0x4329f8!=null?_0x4329f8:0x0,_0x4c946a=_0x4c946a!=null?_0x4c946a:0x1e,_0x52934f=_0x52934f!=null?_0x52934f:0x1e;let _0x2c52a6=0x0,_0x5eb843=0x0,_0x1311e7=0x0;_0x2c52a6=_0x5eb843=_0x1311e7=Math[_0x57edb1(0x1e9)](_0x4329f8,_0x4c946a/0x2,_0x52934f/0x2),_0x2e9021['beginPath'](),_0x2e9021[_0x57edb1(0x2f0)](_0x2c52a6,0x0),_0x2e9021[_0x57edb1(0x370)](_0x4c946a-_0x5eb843,0x0),_0x2e9021[_0x57edb1(0x1fb)](_0x4c946a-_0x5eb843,_0x5eb843,_0x5eb843,Math['PI']*0x3/0x2,0x0,!0x1),_0x2e9021['lineTo'](_0x4c946a,_0x52934f-_0x1311e7),_0x2e9021[_0x57edb1(0x1fb)](_0x4c946a-_0x1311e7,_0x52934f-_0x1311e7,_0x1311e7,0x0,Math['PI']/0x2,!0x1),_0x2e9021['lineTo'](0x0,_0x52934f),_0x2e9021['lineTo'](0x0,_0x2c52a6),_0x2e9021['arc'](_0x2c52a6,_0x2c52a6,_0x2c52a6,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x2e9021['closePath'](),_0x4a1c63[_0x57edb1(0x17a)]&&(_0x2e9021[_0x57edb1(0x207)](),_0x2e9021[_0x57edb1(0x345)]=_0x4a1c63[_0x57edb1(0x17a)],_0x4a1c63[_0x57edb1(0x382)]===_0x57edb1(0x171)?_0x2e9021['fill'](_0x57edb1(0x171)):_0x2e9021[_0x57edb1(0x17a)](),_0x2e9021[_0x57edb1(0x1c2)]());}class ee extends p['Shape']{constructor(_0x3bc059,_0x142648){const _0x1c4195=_0x3ac433;super(_0x3bc059,_0x142648),h(this,'color'),h(this,_0x1c4195(0x346)),(this[_0x1c4195(0x297)]=_0x142648==null?void 0x0:_0x142648[_0x1c4195(0x297)],this['text']=_0x142648==null?void 0x0:_0x142648['text']);}static[_0x3ac433(0x2cc)](_0x258edd,_0x4e1ef7){const _0x2cdffd=_0x3ac433,{text:_0x4932d7,color:_0x3f6741}=_0x4e1ef7;_0x258edd[_0x2cdffd(0x207)](),_0x258edd[_0x2cdffd(0x29a)]=_0x2cdffd(0x1f1);const _0x33bc49=_0x258edd[_0x2cdffd(0x1c0)](_0x4932d7)[_0x2cdffd(0x152)],_0xdf2bc3=Math[_0x2cdffd(0x1e9)](_0x33bc49+0x2*ne,Te);Et(_0x258edd,{'height':W,'radius':0x4,'width':_0xdf2bc3,'fill':_0x3f6741}),_0x258edd[_0x2cdffd(0x345)]='#FFF';const _0x419952=ne,_0x279f47=W-pt,_0x46f08a=Te-0x2*ne;if(_0x33bc49>_0x46f08a){let _0x356c8e='',_0x3414d5=0x0;for(const _0x2202d5 of _0x4932d7){const _0xfe55fd=_0x258edd['measureText'](_0x2202d5)['width'];if(_0x3414d5+_0xfe55fd<=_0x46f08a-_0x258edd[_0x2cdffd(0x1c0)](_0x2cdffd(0x37f))[_0x2cdffd(0x152)])_0x356c8e+=_0x2202d5,_0x3414d5+=_0xfe55fd;else{_0x356c8e+='...';break;}}_0x258edd['fillText'](_0x356c8e,_0x419952,_0x279f47);}else _0x258edd[_0x2cdffd(0x268)](_0x4932d7,_0x419952,_0x279f47);_0x258edd['restore']();}[_0x3ac433(0x14c)](_0x31c92d){const _0x4c8dee=_0x3ac433;ee[_0x4c8dee(0x2cc)](_0x31c92d,this);}}const re=_0x3ac433(0x1a7),bt=_0x3ac433(0x13d),Ot=_0x3ac433(0x28e),F=0x6,Tt=1.5,oe=0x4,Rt=1.5,Dt=_0x3ac433(0x2d5);class Re{constructor(_0x40ba3a,_0x25faef,_0x161a58,_0x2829a8){const _0x15aae4=_0x3ac433;h(this,_0x15aae4(0x365),[]),h(this,'_anchor',null),h(this,_0x15aae4(0x18a),null),h(this,_0x15aae4(0x35d),null),h(this,_0x15aae4(0x363),null),h(this,_0x15aae4(0x2ab),null),(this['_cursor']=_0x40ba3a,this[_0x15aae4(0x203)]=_0x25faef,this[_0x15aae4(0x185)]=_0x161a58,this['_document']=_0x2829a8,this[_0x15aae4(0x263)]());}set[_0x3ac433(0x1f6)](_0x4407db){const _0x5916bc=_0x3ac433;_0x4407db?(this[_0x5916bc(0x35d)]&&this['_anchorDot'][_0x5916bc(0x29f)](),this[_0x5916bc(0x18a)]&&this[_0x5916bc(0x18a)][_0x5916bc(0x39d)]()):(this[_0x5916bc(0x35d)]&&this[_0x5916bc(0x35d)][_0x5916bc(0x39d)](),this['_textBubble']&&this['_textBubble'][_0x5916bc(0x29f)]());}[_0x3ac433(0x150)](){const _0x5debe0=_0x3ac433;for(const _0x674953 of this[_0x5debe0(0x365)])_0x674953[_0x5debe0(0x150)]();this[_0x5debe0(0x18a)]&&this[_0x5debe0(0x18a)][_0x5debe0(0x150)](),this[_0x5debe0(0x35d)]&&this[_0x5debe0(0x35d)][_0x5debe0(0x150)](),this[_0x5debe0(0x244)]&&this['_anchor']['dispose'](),this[_0x5debe0(0x2ab)]&&this[_0x5debe0(0x2ab)]();}[_0x3ac433(0x263)](){const _0x29fe01=_0x3ac433;var _0x897a53;const {_docSkeleton:_0x5150cf,_document:_0x1bb71a}=this,{color:_0x525e8e,name:_0x10c68e,ranges:_0x43d460}=this[_0x29fe01(0x347)],_0x136602=_0x1bb71a[_0x29fe01(0x3aa)](),{docsLeft:_0x2115f4,docsTop:_0x3182ac}=_0x136602,_0x528943=new E['NodePositionConvertToCursor'](_0x136602,_0x5150cf);for(const {startOffset:_0x52f429,endOffset:_0x588eb0,rangeType:_0x37cbfa,segmentId:_0x2655ec,segmentPage:_0x1d789c,collapsed:_0x500d74,isActive:_0x33d777}of _0x43d460){const _0x53e463=_0x5150cf[_0x29fe01(0x30e)](_0x52f429,!0x0,_0x2655ec,_0x1d789c);let _0x45b122=_0x5150cf['findNodePositionByCharIndex'](_0x588eb0,!0x0,_0x2655ec,_0x1d789c);if(_0x45b122==null&&(_0x45b122=_0x5150cf[_0x29fe01(0x30e)](_0x588eb0-0x1,!0x1,_0x2655ec,_0x1d789c)),_0x33d777){const {contentBoxPointGroup:_0x248a4e}=_0x528943[_0x29fe01(0x167)](_0x45b122,_0x45b122);if(_0x248a4e[_0x29fe01(0x26c)]===0x0)continue;this[_0x29fe01(0x368)](_0x525e8e,_0x248a4e,_0x2115f4,_0x3182ac,_0x10c68e),this[_0x29fe01(0x2ab)]=this[_0x29fe01(0x340)]();}if(_0x53e463&&_0x45b122){if(_0x37cbfa===a[_0x29fe01(0x28c)][_0x29fe01(0x301)]){const _0x11f018=new E[(_0x29fe01(0x18b))](_0x136602,_0x5150cf),{pointGroup:_0x5927c3}=(_0x897a53=_0x11f018[_0x29fe01(0x167)](_0x53e463,_0x45b122))!=null?_0x897a53:{};if(_0x5927c3==null||_0x5927c3['length']===0x0)continue;this['_drawRectRange'](_0x525e8e,_0x5927c3,_0x2115f4,_0x3182ac);}else{if(!_0x500d74){const {borderBoxPointGroup:_0x359be0}=_0x528943[_0x29fe01(0x167)](_0x53e463,_0x45b122);if(_0x359be0[_0x29fe01(0x26c)]===0x0)continue;this['_drawTextRange'](_0x525e8e,_0x359be0,_0x2115f4,_0x3182ac);}}}}}[_0x3ac433(0x368)](_0x329c6d,_0x493803,_0x567fa8,_0x2aeb9e,_0x3f449c){const _0x513ea9=_0x3ac433,_0x318f0f=this[_0x513ea9(0x1e5)](_0x493803),{left:_0x5f3d4c,top:_0x2b1fe4,height:_0x1e129b}=_0x318f0f,_0x47e9cf=this[_0x513ea9(0x291)](),_0x1899d5=Rt/_0x47e9cf,_0x5ada9d=new p[(_0x513ea9(0x33b))](re+a[_0x513ea9(0x261)](F),{'left':_0x5f3d4c+_0x567fa8-_0x1899d5,'top':_0x2b1fe4+_0x2aeb9e,'height':_0x1e129b,'width':Tt,'fill':_0x329c6d||p[_0x513ea9(0x2b7)](a[_0x513ea9(0x1d6)]['black'],0x0),'strokeWidth':_0x1899d5,'stroke':Dt,'evented':!0x0});this[_0x513ea9(0x244)]=_0x5ada9d,this[_0x513ea9(0x203)][_0x513ea9(0x25f)](_0x5ada9d,E[_0x513ea9(0x266)]);const _0x51b93e=new p['Rect'](re+a[_0x513ea9(0x261)](F),{'left':_0x5f3d4c+_0x567fa8-_0x1899d5,'top':_0x2b1fe4+_0x2aeb9e-oe/0x2,'height':oe,'width':oe,'fill':_0x329c6d||p[_0x513ea9(0x2b7)](a[_0x513ea9(0x1d6)][_0x513ea9(0x24c)],0x0),'strokeWidth':0x0,'stroke':_0x329c6d||p['getColor'](a[_0x513ea9(0x1d6)][_0x513ea9(0x24c)],0x0),'evented':!0x1});this[_0x513ea9(0x35d)]=_0x51b93e,this[_0x513ea9(0x203)]['addObject'](_0x51b93e,E[_0x513ea9(0x266)]);const _0x469b5a=new ee(re+a[_0x513ea9(0x261)](F),{'left':_0x5f3d4c+_0x567fa8-_0x1899d5,'top':_0x2b1fe4+_0x2aeb9e-W,'text':_0x3f449c,'color':_0x329c6d});this[_0x513ea9(0x18a)]=_0x469b5a,this[_0x513ea9(0x203)][_0x513ea9(0x25f)](_0x469b5a,E[_0x513ea9(0x266)]),this['_hover']=!0x1;}[_0x3ac433(0x340)](){const _0x54ef5e=_0x3ac433,_0x344d1d=this[_0x54ef5e(0x244)][_0x54ef5e(0x33f)][_0x54ef5e(0x398)](()=>{const _0x24067f=_0x54ef5e;this[_0x24067f(0x1f6)]=!0x0;}),_0x12a7ee=this[_0x54ef5e(0x244)][_0x54ef5e(0x221)][_0x54ef5e(0x398)](()=>{const _0x3d5927=_0x54ef5e;this[_0x3d5927(0x363)]&&clearTimeout(this['_hideTimer']),this[_0x3d5927(0x363)]=setTimeout(()=>{const _0x87c654=_0x3d5927;this[_0x87c654(0x1f6)]=!0x1;},0x7d0);});return()=>{const _0x33ab27=_0x54ef5e;_0x344d1d[_0x33ab27(0x2d4)](),_0x12a7ee[_0x33ab27(0x2d4)]();};}[_0x3ac433(0x2b9)](_0x3f4ca7,_0x11b191,_0x2112f5,_0x31bb60){const _0x25fc07=_0x3ac433,_0x58e62e=new a[(_0x25fc07(0x1e8))](_0x3f4ca7)[_0x25fc07(0x1b1)](0.2)[_0x25fc07(0x196)](),_0x2d4793=new p[(_0x25fc07(0x212))](bt+a[_0x25fc07(0x261)](F),{'pointsGroup':_0x11b191,'fill':_0x58e62e||p[_0x25fc07(0x2b7)](a[_0x25fc07(0x1d6)][_0x25fc07(0x24c)],0.2),'left':_0x2112f5,'top':_0x31bb60,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x25fc07(0x365)][_0x25fc07(0x239)](_0x2d4793),this[_0x25fc07(0x203)]['addObject'](_0x2d4793,E['TEXT_RANGE_LAYER_INDEX']);}['_drawRectRange'](_0x1ce626,_0x416cb5,_0x47a7fa,_0x1dd33a){const _0x4b9f2f=_0x3ac433,_0x38c43d=new a['ColorKit'](_0x1ce626)[_0x4b9f2f(0x1b1)](0.2)[_0x4b9f2f(0x196)](),_0x568469=new p['RegularPolygon'](Ot+a[_0x4b9f2f(0x261)](F),{'pointsGroup':_0x416cb5,'fill':_0x38c43d||p['getColor'](a[_0x4b9f2f(0x1d6)][_0x4b9f2f(0x24c)],0.2),'left':_0x47a7fa,'top':_0x1dd33a,'evented':!0x1,'debounceParentDirty':!0x1});this['_shapes'][_0x4b9f2f(0x239)](_0x568469),this[_0x4b9f2f(0x203)]['addObject'](_0x568469,E[_0x4b9f2f(0x266)]);}[_0x3ac433(0x1e5)](_0x3ac98a){const _0x367f24=_0x3ac98a[0x0],_0x437f1e=_0x367f24[0x0],_0x4f5bc3=_0x367f24[0x2],{x:_0x339336,y:_0x2984d7}=_0x437f1e,{x:_0x19c64b,y:_0x1acc86}=_0x4f5bc3;return{'left':_0x339336,'top':_0x2984d7,'width':_0x19c64b-_0x339336,'height':_0x1acc86-_0x2984d7};}[_0x3ac433(0x291)](){const _0x1c4566=_0x3ac433,{scaleX:_0x2d4820,scaleY:_0x409d1c}=this[_0x1c4566(0x203)]['getAncestorScale']();return Math[_0x1c4566(0x1dc)](_0x2d4820,_0x409d1c);}}var Ut=Object[_0x3ac433(0x295)],Nt=(_0x239ded,_0x59f228,_0xdb376c,_0x578724)=>{const _0x3c24b6=_0x3ac433;for(var _0xc891c=_0x578724>0x1?void 0x0:_0x578724?Ut(_0x59f228,_0xdb376c):_0x59f228,_0x5dbfe1=_0x239ded[_0x3c24b6(0x26c)]-0x1,_0x18608d;_0x5dbfe1>=0x0;_0x5dbfe1--)(_0x18608d=_0x239ded[_0x5dbfe1])&&(_0xc891c=_0x18608d(_0xc891c)||_0xc891c);return _0xc891c;},X=(_0x1dbee6,_0x586b6f)=>(_0x2bc59d,_0x18db61)=>_0x586b6f(_0x2bc59d,_0x18db61,_0x1dbee6);let fe=class extends a['RxDisposable']{constructor(_0x207008,_0x375d02,_0x1918b6,_0x1684ba,_0x5c7fa0){const _0x1c5576=_0x3ac433;super(),h(this,'_cursorShapes',[]),h(this,'_cursors',[]),(this[_0x1c5576(0x2a9)]=_0x207008,this['_docSkeletonManagerService']=_0x375d02,this[_0x1c5576(0x385)]=_0x1918b6,this[_0x1c5576(0x33e)]=_0x1684ba,this[_0x1c5576(0x323)]=_0x5c7fa0,this[_0x1c5576(0x2cd)]());}[_0x3ac433(0x2cd)](){const _0x478675=_0x3ac433,_0x2365ef=this['_context'][_0x478675(0x1f9)],_0x256892=this[_0x478675(0x37a)];this[_0x478675(0x33a)](d[_0x478675(0x256)]([this[_0x478675(0x385)][_0x478675(0x3a7)](_0x2365ef),this[_0x478675(0x323)][_0x478675(0x39b)]])[_0x478675(0x2f3)]($[_0x478675(0x173)](([_0x2649e8,_0x132b0d])=>({'skeleton':_0x256892['getSkeleton'](),'cursors':[..._0x2649e8[_0x478675(0x2fc)]()]['flatMap'](_0x23d54a=>({..._0x23d54a,'color':this[_0x478675(0x323)]['getColorFromTheme'](_0x23d54a[_0x478675(0x297)])}))})))[_0x478675(0x319)](_0x269f2f=>{const _0x3bb83d=_0x478675;if(this[_0x3bb83d(0x37c)](),_0x269f2f){const {skeleton:_0x4f8070,cursors:_0x15cea4}=_0x269f2f;this[_0x3bb83d(0x333)](_0x4f8070,_0x15cea4);}})),this[_0x478675(0x2ed)](),this[_0x478675(0x197)]();}[_0x3ac433(0x333)](_0x2a201b,_0x2f0b2d){const _0x4dacd7=_0x3ac433,{scene:_0x531e3f,mainComponent:_0xf40c1f}=this['_context'],_0x50a99e=_0x2f0b2d['map'](_0x49ac58=>new Re(_0x49ac58,_0x531e3f,_0x2a201b,_0xf40c1f));this[_0x4dacd7(0x39c)]=_0x50a99e,this[_0x4dacd7(0x192)]=_0x2f0b2d;}['_refreshCollabCursors'](){const _0x2f2dba=_0x3ac433;this[_0x2f2dba(0x37c)]();const {scene:_0x31caf4,mainComponent:_0x45fd56}=this[_0x2f2dba(0x2a9)],_0x1b12e4=this[_0x2f2dba(0x37a)]['getSkeleton'](),_0x24d2cb=this[_0x2f2dba(0x192)][_0x2f2dba(0x173)](_0x4ab871=>new Re(_0x4ab871,_0x31caf4,_0x1b12e4,_0x45fd56));this['_cursorShapes']=_0x24d2cb;}[_0x3ac433(0x37c)](){const _0x409820=_0x3ac433;this[_0x409820(0x39c)][_0x409820(0x2fd)](_0x2c7f20=>_0x2c7f20['dispose']()),this['_cursorShapes']=[];}[_0x3ac433(0x197)](){const _0x3f827d=_0x3ac433,_0x548374=[E[_0x3f827d(0x321)]['id']];this['disposeWithMe'](this[_0x3f827d(0x33e)]['onCommandExecuted'](_0x1c46fe=>{const _0x2b8c62=_0x3f827d;_0x548374[_0x2b8c62(0x1ab)](_0x1c46fe['id'])&&_0x1c46fe[_0x2b8c62(0x247)][_0x2b8c62(0x1f9)]===this[_0x2b8c62(0x2a9)]['unitId']&&this[_0x2b8c62(0x151)]();}));}[_0x3ac433(0x2ed)](){const _0x149580=_0x3ac433;this['disposeWithMe'](a[_0x149580(0x3a2)](this[_0x149580(0x2a9)]['engine']['onTransformChange$'])['pipe']($['filter'](_0x3a1aef=>_0x3a1aef[_0x149580(0x2f4)]===p['TRANSFORM_CHANGE_OBSERVABLE_TYPE'][_0x149580(0x30a)]),$[_0x149580(0x383)](0x10))['subscribe'](()=>{this['_refreshCollabCursors']();}));}};fe=Nt([X(0x1,a[_0x3ac433(0x22e)](Y['DocSkeletonManagerService'])),X(0x2,a[_0x3ac433(0x22e)](x)),X(0x3,a[_0x3ac433(0x287)]),X(0x4,a[_0x3ac433(0x22e)](a[_0x3ac433(0x1d7)]))],fe);const Mt=0x1,Lt=1.5;class $e extends p[_0x3ac433(0x344)]{constructor(_0x31f0f5,_0x255d15){const _0x58df5c=_0x3ac433;super(_0x31f0f5,_0x255d15),h(this,_0x58df5c(0x34e)),h(this,'_hovered',!0x1),h(this,_0x58df5c(0x188)),h(this,'_name',''),h(this,_0x58df5c(0x1b0),_0x58df5c(0x13c)),h(this,_0x58df5c(0x395)),(_0x255d15&&this[_0x58df5c(0x39a)](_0x255d15),this[_0x58df5c(0x33f)][_0x58df5c(0x398)](()=>this[_0x58df5c(0x39a)]({'hovered':!0x0})),this[_0x58df5c(0x221)][_0x58df5c(0x398)](()=>this[_0x58df5c(0x39a)]({'hovered':!0x1})));}[_0x3ac433(0x39a)](_0x309674){const _0xc59a8a=_0x3ac433;var _0x300fee,_0x375ce3,_0x306ae8,_0x528422,_0x262c09,_0xdba69d;this[_0xc59a8a(0x34e)]=(_0x300fee=_0x309674['color'])!=null?_0x300fee:this[_0xc59a8a(0x34e)],this[_0xc59a8a(0x1da)]=(_0x375ce3=_0x309674[_0xc59a8a(0x303)])!=null?_0x375ce3:this[_0xc59a8a(0x1da)],this[_0xc59a8a(0x188)]=(_0x306ae8=_0x309674['range'])!=null?_0x306ae8:this[_0xc59a8a(0x188)],this[_0xc59a8a(0x236)]=(_0x528422=_0x309674[_0xc59a8a(0x2ce)])!=null?_0x528422:this[_0xc59a8a(0x236)],this[_0xc59a8a(0x1b0)]=(_0x262c09=_0x309674[_0xc59a8a(0x172)])!=null?_0x262c09:this[_0xc59a8a(0x1b0)],this[_0xc59a8a(0x395)]=(_0xdba69d=_0x309674['backgroundColor'])!=null?_0xdba69d:this[_0xc59a8a(0x395)],this['transformByState']({'width':_0x309674[_0xc59a8a(0x152)],'height':_0x309674[_0xc59a8a(0x1d9)]});}['onMouseMove'](_0x49f4f0){const _0x4c290b=_0x3ac433,{row:_0x531f13,column:_0x2b1b96}=_0x49f4f0;if(_0x531f13>=this[_0x4c290b(0x188)][_0x4c290b(0x16d)]&&_0x531f13<=this[_0x4c290b(0x188)][_0x4c290b(0x394)]&&_0x2b1b96>=this[_0x4c290b(0x188)][_0x4c290b(0x31e)]&&_0x2b1b96<=this['_range'][_0x4c290b(0x166)]){this[_0x4c290b(0x39a)]({'hovered':!0x0});return;}this[_0x4c290b(0x39a)]({'hovered':!0x1});}[_0x3ac433(0x320)](_0xe5fcc0){return!0x1;}[_0x3ac433(0x14c)](_0x2d18f5){const _0x29e206=_0x3ac433;p['Rect'][_0x29e206(0x2cc)](_0x2d18f5,{'width':this[_0x29e206(0x152)],'height':this[_0x29e206(0x1d9)],'strokeWidth':Lt,'stroke':this[_0x29e206(0x34e)],'evented':!0x1,'fill':this[_0x29e206(0x395)]}),this[_0x29e206(0x1da)]&&(_0x2d18f5[_0x29e206(0x207)](),_0x2d18f5['transform'](0x1,0x0,0x0,0x1,this[_0x29e206(0x152)],this[_0x29e206(0x1b0)]===_0x29e206(0x226)?0x0:-W),ee[_0x29e206(0x2cc)](_0x2d18f5,{'text':this[_0x29e206(0x236)],'color':this[_0x29e206(0x34e)]}),_0x2d18f5[_0x29e206(0x1c2)]());}}var Pt=Object[_0x3ac433(0x295)],wt=(_0x5bd1f3,_0x9e7c91,_0x2de78f,_0xd00b77)=>{const _0x2a5784=_0x3ac433;for(var _0x356136=_0xd00b77>0x1?void 0x0:_0xd00b77?Pt(_0x9e7c91,_0x2de78f):_0x9e7c91,_0x3f2698=_0x5bd1f3[_0x2a5784(0x26c)]-0x1,_0x579ccd;_0x3f2698>=0x0;_0x3f2698--)(_0x579ccd=_0x5bd1f3[_0x3f2698])&&(_0x356136=_0x579ccd(_0x356136)||_0x356136);return _0x356136;},ae=(_0x18594a,_0x2bcf72)=>(_0x283edd,_0x46a9f1)=>_0x2bcf72(_0x283edd,_0x46a9f1,_0x18594a);const At=0x1389;let Ie=class extends a['RxDisposable']{constructor(_0x4e6efd,_0x2262cb,_0x55acba,_0xfe73d){const _0x5794f9=_0x3ac433;super(),h(this,_0x5794f9(0x192),new Set()),h(this,_0x5794f9(0x304),null),(this[_0x5794f9(0x2a9)]=_0x4e6efd,this['_sheetSkeletonManagerService']=_0x2262cb,this['_collabCursorController']=_0x55acba,this[_0x5794f9(0x323)]=_0xfe73d,this['_init']());}[_0x3ac433(0x2cd)](){const _0x2eb340=_0x3ac433;this[_0x2eb340(0x238)][_0x2eb340(0x1ed)][_0x2eb340(0x2f3)]($[_0x2eb340(0x2c0)](this[_0x2eb340(0x1f2)]),$[_0x2eb340(0x2e1)](_0x3d2e17=>{const _0x152949=_0x2eb340;if(_0x3d2e17){const _0x33560f=_0x3d2e17[_0x152949(0x163)];return d[_0x152949(0x256)](this[_0x152949(0x385)]['getCollabCursors$'](this[_0x152949(0x2a9)]['unitId']),this[_0x152949(0x323)]['currentTheme$'])[_0x152949(0x2f3)]($['map'](([_0x56ae3a,_0x4db7a5])=>{const _0x52d408=_0x152949,_0x547535=new Map();return _0x56ae3a[_0x52d408(0x2fd)]((_0x114745,_0x660b17)=>{const _0x2db2dc=_0x52d408;if(_0x114745['sheetID']===_0x33560f){const _0x5bf93a={..._0x114745};_0x5bf93a['color']=this[_0x2db2dc(0x323)]['getColorFromTheme'](_0x114745[_0x2db2dc(0x297)]),_0x547535[_0x2db2dc(0x242)](_0x660b17,_0x5bf93a);}}),{'skeleton':_0x3d2e17,'cursors':_0x547535};}));}return d['of']({'skeleton':null,'cursors':new Map()});}))[_0x2eb340(0x319)](({skeleton:_0x3af4a8,cursors:_0x906913})=>{const _0x4d1a94=_0x2eb340;this[_0x4d1a94(0x37c)](),_0x3af4a8&&this[_0x4d1a94(0x333)](_0x3af4a8,_0x906913);}),this[_0x2eb340(0x238)]['currentSkeleton$']['subscribe'](_0x37b6c1=>{const _0x26c04f=_0x2eb340;if(_0x37b6c1==null)return;const {skeleton:_0x5e0231}=_0x37b6c1,{scene:_0x126b3c}=this[_0x26c04f(0x2a9)];_0x126b3c[_0x26c04f(0x1de)][_0x26c04f(0x398)](a['debounce'](_0x84576d=>{const _0x4da698=_0x26c04f;var _0x29a747,_0x272b7a;const {offsetX:_0x5afdd6,offsetY:_0x3223ad}=_0x84576d,{x:_0x2f401c,y:_0x508229}=_0x126b3c[_0x4da698(0x366)](p[_0x4da698(0x2ff)]['FromArray']([_0x5afdd6,_0x3223ad])),{scaleX:_0x5b9f1b,scaleY:_0x214db7}=_0x126b3c[_0x4da698(0x2e7)](),_0x3e6b78=_0x126b3c['getViewport'](p[_0x4da698(0x31b)][_0x4da698(0x2fe)]),_0x3fbbe3=_0x126b3c['getVpScrollXYInfoByPosToVp'](p[_0x4da698(0x2ff)][_0x4da698(0x16c)]([_0x2f401c,_0x508229]),_0x3e6b78),_0x84c1b8=_0x5e0231[_0x4da698(0x243)](_0x5afdd6,_0x3223ad,_0x5b9f1b,_0x214db7,_0x3fbbe3);((_0x29a747=this[_0x4da698(0x304)])==null?void 0x0:_0x29a747[_0x4da698(0x32d)])===_0x84c1b8[_0x4da698(0x32d)]&&((_0x272b7a=this[_0x4da698(0x304)])==null?void 0x0:_0x272b7a['row'])===_0x84c1b8[_0x4da698(0x180)]||this[_0x4da698(0x192)][_0x4da698(0x2fd)](_0x38713c=>{const _0x57d5a3=_0x4da698;_0x38713c[_0x57d5a3(0x34f)](_0x84c1b8);});},0x64));});}[_0x3ac433(0x333)](_0x15ed67,_0x501949){const _0x4697c6=_0x3ac433;var _0x58dda9;const _0x5eca99=(_0x58dda9=this[_0x4697c6(0x238)][_0x4697c6(0x327)]())==null?void 0x0:_0x58dda9['skeleton'];if(!_0x5eca99)return;const _0x54b8a0=this[_0x4697c6(0x262)]();if(!_0x54b8a0)return;this[_0x4697c6(0x192)][_0x4697c6(0x2fd)](_0x49071b=>{const _0x143ec1=_0x4697c6;_0x49071b[_0x143ec1(0x1c5)]();});const {scene:_0x562f61}=_0x54b8a0,_0xfaf6d7=yt(Array[_0x4697c6(0x389)](_0x501949[_0x4697c6(0x2fc)]()))[_0x4697c6(0x173)](_0x3b8dcc=>{const _0xbde4ac=_0x4697c6,{color:_0x234ce5,range:_0x354cb7,name:_0x3066ad,selection:_0x3dff27,sheetID:_0x4aa1e2}=_0x3b8dcc,{startColumn:_0x288d93,startRow:_0x14d2c2,endColumn:_0x267bde,endRow:_0x2f74f4}=_0x354cb7,_0x1f6a86=G[_0xbde4ac(0x1ee)](_0x14d2c2,_0x288d93,_0x562f61,_0x5eca99),_0x4a763b=G['getCoordByCell'](_0x2f74f4,_0x267bde,_0x562f61,_0x5eca99),{columnHeaderHeightAndMarginTop:_0x5a2932}=_0x5eca99,{startX:_0x9846fa,startY:_0x1fc370}=_0x1f6a86,{endX:_0x5b642d,endY:_0x59cff5}=_0x4a763b,_0xe1aa63=_0x5b642d-_0x9846fa,_0x220d35=_0x59cff5-_0x1fc370,_0x4913fd={'labelPosition':_0x1fc370-_0x5a2932>=W?'top':_0xbde4ac(0x226),'sheetID':_0x4aa1e2,'range':_0x354cb7,'color':_0x234ce5,'name':_0x3066ad,'selection':_0x3dff27,'left':_0x9846fa,'top':_0x1fc370,'width':_0xe1aa63,'height':_0x220d35,'evented':!0x1,'zIndex':At};return new $e(_0x3066ad,_0x4913fd);});_0x562f61[_0x4697c6(0x208)](_0xfaf6d7,Mt),this[_0x4697c6(0x192)]=new Set(_0xfaf6d7);}[_0x3ac433(0x37c)](){const _0x20ce69=_0x3ac433;var _0x575cbc;(_0x575cbc=this[_0x20ce69(0x192)])==null||_0x575cbc[_0x20ce69(0x2fd)](_0x3ba48f=>_0x3ba48f[_0x20ce69(0x150)]());}[_0x3ac433(0x262)](){const _0x384621=_0x3ac433;return G[_0x384621(0x213)](this[_0x384621(0x2a9)][_0x384621(0x2e5)],this[_0x384621(0x2a9)]);}};Ie=wt([ae(0x1,a[_0x3ac433(0x22e)](G[_0x3ac433(0x255)])),ae(0x2,a[_0x3ac433(0x22e)](x)),ae(0x3,a[_0x3ac433(0x22e)](a['ThemeService']))],Ie);function yt(_0x52e0e1){const _0x2f63b0=_0x3ac433,_0x58357d=new Map();return _0x52e0e1['forEach'](_0x43929c=>{const _0x2e316a=_0x2522;if(_0x58357d[_0x2e316a(0x13a)](_0x43929c['selection'])){const _0x1941a4=_0x58357d[_0x2e316a(0x32e)](_0x43929c[_0x2e316a(0x22c)]);_0x1941a4[_0x2e316a(0x2ce)]+=',\x20'+_0x43929c[_0x2e316a(0x2ce)];}else _0x58357d[_0x2e316a(0x242)](_0x43929c[_0x2e316a(0x22c)],_0x43929c);}),Array[_0x2f63b0(0x389)](_0x58357d[_0x2f63b0(0x2fc)]());}var $t=Object[_0x3ac433(0x295)],xt=(_0x28a2f0,_0x367497,_0x1a9f4b,_0x34f4a4)=>{const _0x5250f3=_0x3ac433;for(var _0x2e3d9c=_0x34f4a4>0x1?void 0x0:_0x34f4a4?$t(_0x367497,_0x1a9f4b):_0x367497,_0x9ca350=_0x28a2f0[_0x5250f3(0x26c)]-0x1,_0x532826;_0x9ca350>=0x0;_0x9ca350--)(_0x532826=_0x28a2f0[_0x9ca350])&&(_0x2e3d9c=_0x532826(_0x2e3d9c)||_0x2e3d9c);return _0x2e3d9c;},y=(_0x2d358c,_0x4cdcb6)=>(_0x181ea4,_0x257d97)=>_0x4cdcb6(_0x181ea4,_0x257d97,_0x2d358c);let q=class extends a[_0x3ac433(0x18f)]{constructor(_0x22ec79,_0x47da94,_0x56ec9b,_0x2a4156,_0x28129b,_0x2403c4){const _0x35676a=_0x3ac433;super(),this['_beforeCloseService']=_0x22ec79,this[_0x35676a(0x35e)]=_0x47da94,this[_0x35676a(0x29d)]=_0x56ec9b,this[_0x35676a(0x275)]=_0x2a4156,this[_0x35676a(0x34a)]=_0x28129b,this[_0x35676a(0x28f)]=_0x2403c4,this['_setupBeforeClosingHandler'](),this[_0x35676a(0x332)]();}[_0x3ac433(0x3a5)](){const _0x455774=_0x3ac433;this['disposeWithMe'](this[_0x455774(0x2f2)][_0x455774(0x14d)](()=>{const _0x589520=_0x455774;if(this[_0x589520(0x35e)][_0x589520(0x34b)][_0x589520(0x227)])return this['_localeService']['t'](_0x589520(0x187));}));}[_0x3ac433(0x332)](){const _0x5cba6f=_0x3ac433;this[_0x5cba6f(0x33a)](this[_0x5cba6f(0x29d)][_0x5cba6f(0x253)][_0x5cba6f(0x319)](_0x1dd99c=>{const _0x5bf9dd=_0x5cba6f;_0x1dd99c['id']===u[_0x5bf9dd(0x2a7)][_0x5bf9dd(0x23a)]&&this[_0x5bf9dd(0x275)][_0x5bf9dd(0x39d)]({'type':D[_0x5bf9dd(0x299)]['Warning'],'content':this['_localeService']['t'](_0x5bf9dd(0x393))}),_0x1dd99c['id']===u[_0x5bf9dd(0x2a7)]['CLOSE_ROOM']&&this[_0x5bf9dd(0x275)][_0x5bf9dd(0x39d)]({'type':D['MessageType']['Warning'],'content':this[_0x5bf9dd(0x28f)]['t'](_0x5bf9dd(0x25e))}),_0x1dd99c['id']===u[_0x5bf9dd(0x2a7)][_0x5bf9dd(0x300)]&&this[_0x5bf9dd(0x34a)]['show']({'title':this['_localeService']['t'](_0x5bf9dd(0x1e4)),'content':this[_0x5bf9dd(0x28f)]['t'](_0x5bf9dd(0x285)),'type':_0x5bf9dd(0x2d3),'duration':0x0}),_0x1dd99c['id']===u[_0x5bf9dd(0x2a7)][_0x5bf9dd(0x1ce)]&&this[_0x5bf9dd(0x275)][_0x5bf9dd(0x39d)]({'type':D[_0x5bf9dd(0x299)][_0x5bf9dd(0x2d8)],'content':this[_0x5bf9dd(0x28f)]['t'](_0x5bf9dd(0x25e))+'('+_0x1dd99c['data']+')'}),_0x1dd99c['id']===u[_0x5bf9dd(0x2a7)][_0x5bf9dd(0x26a)]&&this[_0x5bf9dd(0x275)][_0x5bf9dd(0x39d)]({'type':D['MessageType']['Warning'],'content':this[_0x5bf9dd(0x28f)]['t'](_0x1dd99c[_0x5bf9dd(0x182)]||'')}),_0x1dd99c['id']===u[_0x5bf9dd(0x2a7)][_0x5bf9dd(0x1e2)]&&this[_0x5bf9dd(0x275)]['show']({'type':D[_0x5bf9dd(0x299)][_0x5bf9dd(0x376)],'content':this[_0x5bf9dd(0x28f)]['t']('session.will-retry')}),_0x1dd99c['id']===u[_0x5bf9dd(0x2a7)]['SOCKET_FAILED']&&this[_0x5bf9dd(0x275)][_0x5bf9dd(0x39d)]({'type':D[_0x5bf9dd(0x299)]['Error'],'content':this[_0x5bf9dd(0x28f)]['t']('session.connection-failed')}),_0x1dd99c['id']===u[_0x5bf9dd(0x2a7)][_0x5bf9dd(0x293)]&&this[_0x5bf9dd(0x275)][_0x5bf9dd(0x39d)]({'type':D[_0x5bf9dd(0x299)][_0x5bf9dd(0x2d8)],'content':this[_0x5bf9dd(0x28f)]['t'](_0x5bf9dd(0x281))});}));}};q=xt([y(0x0,O[_0x3ac433(0x2cb)]),y(0x1,u['ILocalCacheService']),y(0x2,a['Inject'](u[_0x3ac433(0x32b)])),y(0x3,O[_0x3ac433(0x2d1)]),y(0x4,O[_0x3ac433(0x229)]),y(0x5,a['Inject'](a[_0x3ac433(0x3a4)]))],q);const Bt='collaboration-client-ui.config',De={};var jt=Object[_0x3ac433(0x295)],kt=(_0x2d53fc,_0x2f3e39,_0x4ff7eb,_0x4a94cf)=>{const _0x20eb58=_0x3ac433;for(var _0x3a0fbf=_0x4a94cf>0x1?void 0x0:_0x4a94cf?jt(_0x2f3e39,_0x4ff7eb):_0x2f3e39,_0x3706af=_0x2d53fc[_0x20eb58(0x26c)]-0x1,_0x4e1f6e;_0x3706af>=0x0;_0x3706af--)(_0x4e1f6e=_0x2d53fc[_0x3706af])&&(_0x3a0fbf=_0x4e1f6e(_0x3a0fbf)||_0x3a0fbf);return _0x3a0fbf;},Ue=(_0x37fd39,_0x261e60)=>(_0x29fa17,_0x4f39d7)=>_0x261e60(_0x29fa17,_0x4f39d7,_0x37fd39);let z=class{constructor(_0x57aa2b,_0x22352d){const _0x48dc8d=_0x3ac433;this[_0x48dc8d(0x2ac)]=_0x57aa2b,this['_renderManagerService']=_0x22352d;}['transformIMECache'](_0x13c6dd){const _0x233db6=_0x3ac433;this[_0x233db6(0x2c2)](_0x13c6dd),this[_0x233db6(0x318)](_0x13c6dd);}['transformRemoteChangeset'](_0x2849cc){const _0x111333=_0x3ac433,{unitID:_0x34b0c0}=_0x2849cc,_0x985629=this[_0x111333(0x164)][_0x111333(0x1ae)](_0x34b0c0)['with'](E[_0x111333(0x14a)]),{redoCache:_0x8b1d85}=_0x985629['getUndoRedoMutationParamsCache']();if(_0x8b1d85[_0x111333(0x26c)]===0x0)return _0x2849cc;let _0x1c3f72=a['Tools']['deepClone'](_0x2849cc[_0x111333(0x396)][0x0]);for(let _0x367dce=0x0;_0x367dce<_0x8b1d85['length'];_0x367dce++){const _0x384e46={'id':_0x111333(0x16f),'params':{..._0x8b1d85[_0x367dce]}},_0x41b387=this[_0x111333(0x2ac)]['transformMutation'](_0x1c3f72,_0x384e46,!0x1);if(m['isTransformMutationFailure'](_0x41b387))throw _0x41b387[_0x111333(0x2d3)];_0x1c3f72=_0x41b387[_0x111333(0x377)];}return{...a['Tools'][_0x111333(0x2ee)](_0x2849cc),'mutations':[_0x1c3f72]};}['_transformUndoRedoStack'](_0x5d5916){const _0x3f653e=_0x3ac433,{unitID:_0x5bd38c}=_0x5d5916,_0x633e24=this['_renderManagerService'][_0x3f653e(0x1ae)](_0x5bd38c)[_0x3f653e(0x2a6)](E[_0x3f653e(0x14a)]),{undoCache:_0x554684,redoCache:_0x27eca6}=_0x633e24['getUndoRedoMutationParamsCache']();if(_0x554684[_0x3f653e(0x26c)]===0x0||_0x27eca6['length']===0x0)return;const _0x10b7de=[],_0x3a13d0=[];let _0x2ad960=a[_0x3f653e(0x141)][_0x3f653e(0x2ee)](_0x5d5916[_0x3f653e(0x396)][0x0]),_0x132c53=a[_0x3f653e(0x141)][_0x3f653e(0x2ee)](_0x5d5916[_0x3f653e(0x396)][0x0]);for(let _0x3b77eb=_0x554684[_0x3f653e(0x26c)]-0x1;_0x3b77eb>=0x0;_0x3b77eb--){const _0x37d633={'id':_0x3f653e(0x16f),'params':{..._0x554684[_0x3b77eb]}},_0x2414c8={'id':'doc.mutation.rich-text-editing','params':{..._0x27eca6[_0x3b77eb]}},_0x22d095=this[_0x3f653e(0x2ac)][_0x3f653e(0x204)](_0x2ad960,_0x37d633,!0x1),_0xe2c192=this[_0x3f653e(0x2ac)][_0x3f653e(0x204)](_0x132c53,_0x2414c8,!0x1);if(m['isTransformMutationFailure'](_0x22d095))throw _0x22d095[_0x3f653e(0x2d3)];if(m[_0x3f653e(0x30f)](_0xe2c192))throw _0xe2c192[_0x3f653e(0x2d3)];_0x10b7de[_0x3f653e(0x289)](_0x22d095[_0x3f653e(0x1e7)]['params']),_0x3a13d0[_0x3f653e(0x289)](_0xe2c192[_0x3f653e(0x1e7)][_0x3f653e(0x247)]),_0x2ad960=_0x22d095[_0x3f653e(0x377)],_0x132c53=_0xe2c192[_0x3f653e(0x377)];}_0x633e24['setUndoRedoMutationParamsCache']({'undoCache':_0x10b7de,'redoCache':_0x3a13d0});}[_0x3ac433(0x318)](_0x3f01af){const _0x1850e7=_0x3ac433,{unitID:_0x4c3b2f}=_0x3f01af,_0x436f59=this[_0x1850e7(0x164)][_0x1850e7(0x1ae)](_0x4c3b2f)[_0x1850e7(0x2a6)](E[_0x1850e7(0x14a)]),_0x585684=_0x436f59['getActiveRange']();if(_0x585684==null)return;const _0xdb84f=[{'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x3f01af['unitID'],'actions':null,'textRanges':[_0x585684]}}],_0x5b3096=this['_transformService'][_0x1850e7(0x24a)](_0x3f01af,_0xdb84f);if(!m[_0x1850e7(0x1d1)](_0x5b3096))throw _0x5b3096[_0x1850e7(0x2d3)];const _0x4795de=_0x5b3096[_0x1850e7(0x1e7)][0x0][_0x1850e7(0x247)][_0x1850e7(0x353)];Array[_0x1850e7(0x20e)](_0x4795de)&&_0x4795de[_0x1850e7(0x26c)]&&_0x436f59[_0x1850e7(0x22f)](_0x4795de[0x0]);}};z=kt([Ue(0x0,m[_0x3ac433(0x1b8)]),Ue(0x1,p[_0x3ac433(0x29e)])],z);var Ft=Object[_0x3ac433(0x295)],Ht=(_0xf027ac,_0x5b3d2f,_0x51a5ce,_0x171a1a)=>{const _0x3547e5=_0x3ac433;for(var _0x508a0d=_0x171a1a>0x1?void 0x0:_0x171a1a?Ft(_0x5b3d2f,_0x51a5ce):_0x5b3d2f,_0x1e049f=_0xf027ac[_0x3547e5(0x26c)]-0x1,_0x2edf1d;_0x1e049f>=0x0;_0x1e049f--)(_0x2edf1d=_0xf027ac[_0x1e049f])&&(_0x508a0d=_0x2edf1d(_0x508a0d)||_0x508a0d);return _0x508a0d;},ce=(_0x181605,_0x3fc31f)=>(_0x3a785e,_0x224e3b)=>_0x3fc31f(_0x3a785e,_0x224e3b,_0x181605);let J=class{constructor(_0x33302b,_0x148519,_0x556342){const _0x3f8ad0=_0x3ac433;this[_0x3f8ad0(0x168)]=_0x33302b,this['_transformService']=_0x148519,this[_0x3f8ad0(0x2be)]=_0x556342;}[_0x3ac433(0x30b)](_0x2c55c4){const _0x1d1217=_0x3ac433;this[_0x1d1217(0x28d)](_0x2c55c4);}['transformRemoteChangeset'](_0x5d7f53){const _0x2cc057=_0x3ac433,{unitID:_0x45d407}=_0x5d7f53,{collaboration:_0x34e4d6}=this[_0x2cc057(0x2be)][_0x2cc057(0x23f)](_0x45d407);if(_0x34e4d6[_0x2cc057(0x26c)]===0x0)return _0x5d7f53;let _0xa50c48=a[_0x2cc057(0x141)][_0x2cc057(0x2ee)](_0x5d7f53[_0x2cc057(0x396)][0x0]);for(let _0x1fd653=0x0;_0x1fd653<_0x34e4d6[_0x2cc057(0x26c)];_0x1fd653++){const _0x16192c={'id':_0x2cc057(0x16f),'params':{'unitId':_0x34e4d6[_0x1fd653][_0x2cc057(0x1f9)],..._0x34e4d6[_0x1fd653][_0x2cc057(0x2ae)]}},_0xe61378=this[_0x2cc057(0x2ac)][_0x2cc057(0x204)](_0xa50c48,_0x16192c,!0x1);if(m[_0x2cc057(0x30f)](_0xe61378))throw _0xe61378[_0x2cc057(0x2d3)];_0xa50c48=_0xe61378[_0x2cc057(0x377)];}return{...a[_0x2cc057(0x141)][_0x2cc057(0x2ee)](_0x5d7f53),'mutations':[_0xa50c48]};}[_0x3ac433(0x28d)](_0x2f99f5){const _0x237bf8=_0x3ac433,{unitID:_0x2f8b54}=_0x2f99f5,{history:_0x2dc7db,collaboration:_0x1473d3}=this[_0x237bf8(0x2be)]['getStateCache'](_0x2f8b54);if(_0x2dc7db[_0x237bf8(0x26c)]===0x0&&_0x1473d3['length']===0x0)return;const _0x214903=[],_0x309819=[];let _0x25f6e8=a[_0x237bf8(0x141)][_0x237bf8(0x2ee)](_0x2f99f5[_0x237bf8(0x396)][0x0]),_0x371caa=a[_0x237bf8(0x141)][_0x237bf8(0x2ee)](_0x2f99f5['mutations'][0x0]);for(let _0x69ee54=_0x2dc7db['length']-0x1;_0x69ee54>=0x0;_0x69ee54--){const _0x2c9735={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x2dc7db[_0x69ee54][_0x237bf8(0x1f9)],..._0x2dc7db[_0x69ee54][_0x237bf8(0x1e0)]}},_0x15339a={'id':_0x237bf8(0x16f),'params':{'unitId':_0x2dc7db[_0x69ee54]['unitId'],..._0x2dc7db[_0x69ee54][_0x237bf8(0x2ae)]}},_0x36fd47=this['_transformService']['transformMutation'](_0x25f6e8,_0x2c9735,!0x1),_0x1fea37=this['_transformService'][_0x237bf8(0x204)](_0x371caa,_0x15339a,!0x1);if(m[_0x237bf8(0x30f)](_0x36fd47))throw _0x36fd47['error'];if(m[_0x237bf8(0x30f)](_0x1fea37))throw _0x1fea37['error'];_0x214903[_0x237bf8(0x289)]({..._0x2dc7db[_0x69ee54],'undoState':_0x36fd47[_0x237bf8(0x1e7)][_0x237bf8(0x247)],'redoState':_0x1fea37[_0x237bf8(0x1e7)]['params']}),_0x25f6e8=_0x36fd47[_0x237bf8(0x377)],_0x371caa=_0x1fea37[_0x237bf8(0x377)];}_0x25f6e8=a['Tools'][_0x237bf8(0x2ee)](_0x2f99f5[_0x237bf8(0x396)][0x0]),_0x371caa=a[_0x237bf8(0x141)][_0x237bf8(0x2ee)](_0x2f99f5['mutations'][0x0]);for(let _0x2ecb4e=_0x1473d3[_0x237bf8(0x26c)]-0x1;_0x2ecb4e>=0x0;_0x2ecb4e--){const _0x3bfac5={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x1473d3[_0x2ecb4e][_0x237bf8(0x1f9)],..._0x1473d3[_0x2ecb4e][_0x237bf8(0x1e0)]}},_0x2d8a16={'id':_0x237bf8(0x16f),'params':{'unitId':_0x1473d3[_0x2ecb4e][_0x237bf8(0x1f9)],..._0x1473d3[_0x2ecb4e][_0x237bf8(0x2ae)]}},_0x2df589=this[_0x237bf8(0x2ac)][_0x237bf8(0x204)](_0x25f6e8,_0x3bfac5,!0x1),_0x4117db=this[_0x237bf8(0x2ac)][_0x237bf8(0x204)](_0x371caa,_0x2d8a16,!0x1);if(m[_0x237bf8(0x30f)](_0x2df589))throw _0x2df589[_0x237bf8(0x2d3)];if(m[_0x237bf8(0x30f)](_0x4117db))throw _0x4117db[_0x237bf8(0x2d3)];_0x309819['unshift']({..._0x1473d3[_0x2ecb4e],'undoState':_0x2df589[_0x237bf8(0x1e7)]['params'],'redoState':_0x4117db[_0x237bf8(0x1e7)][_0x237bf8(0x247)]}),_0x25f6e8=_0x2df589['m1Prime'],_0x371caa=_0x4117db['m1Prime'];}this['_docStateChangeManagerService'][_0x237bf8(0x2c9)](_0x2f8b54,{'history':_0x214903,'collaboration':_0x309819});}};J=Ht([ce(0x0,a[_0x3ac433(0x22e)](a[_0x3ac433(0x143)])),ce(0x1,m[_0x3ac433(0x1b8)]),ce(0x2,a[_0x3ac433(0x22e)](E[_0x3ac433(0x169)]))],J);var Yt=Object['getOwnPropertyDescriptor'],Wt=(_0x4f1c12,_0x7ef35,_0x37a98b,_0x575df2)=>{const _0x227f5f=_0x3ac433;for(var _0x525622=_0x575df2>0x1?void 0x0:_0x575df2?Yt(_0x7ef35,_0x37a98b):_0x7ef35,_0x31605c=_0x4f1c12[_0x227f5f(0x26c)]-0x1,_0x28ecd4;_0x31605c>=0x0;_0x31605c--)(_0x28ecd4=_0x4f1c12[_0x31605c])&&(_0x525622=_0x28ecd4(_0x525622)||_0x525622);return _0x525622;},Ne=(_0x1dd29d,_0x1279ce)=>(_0x3e9bb0,_0x2e7feb)=>_0x1279ce(_0x3e9bb0,_0x2e7feb,_0x1dd29d);let Z=class{constructor(_0x54e79e,_0x15a848){const _0x3d5d7a=_0x3ac433;this[_0x3d5d7a(0x168)]=_0x54e79e,this['_transformService']=_0x15a848;}[_0x3ac433(0x24b)](_0xff0c6f){const _0x258094=_0x3ac433;var _0x226542;const _0x485e73=this[_0x258094(0x168)][_0x258094(0x32e)](Y[_0x258094(0x2ba)]),_0x90bc6e=(_0x226542=_0x485e73[_0x258094(0x225)]())!=null?_0x226542:[];if(_0x90bc6e[_0x258094(0x26c)]===0x0)return;const _0x484151=_0xff0c6f[_0x258094(0x2d7)],_0x184da9=[{'id':_0x258094(0x16f),'params':{'unitId':_0x484151,'actions':null,'textRanges':_0x90bc6e}}],_0x387a77=this['_transformService'][_0x258094(0x24a)](_0xff0c6f,_0x184da9);if(!m['isTransformMutationsWithChangesetSuccess'](_0x387a77))throw _0x387a77[_0x258094(0x2d3)];const _0x4c8747=_0x387a77['m2Prime'][0x0][_0x258094(0x247)]['textRanges'];Array[_0x258094(0x20e)](_0x4c8747)&&_0x4c8747[_0x258094(0x26c)]&&_0x485e73['replaceDocRanges'](_0x4c8747,{'unitId':_0x484151,'subUnitId':_0x484151},!0x1);}};Z=Wt([Ne(0x0,a['Inject'](a[_0x3ac433(0x143)])),Ne(0x1,m['ITransformService'])],Z);var Vt=Object[_0x3ac433(0x295)],Xt=(_0x4a22e1,_0xab5cd0,_0x46b661,_0x37e191)=>{for(var _0x5206ed=_0x37e191>0x1?void 0x0:_0x37e191?Vt(_0xab5cd0,_0x46b661):_0xab5cd0,_0x437a36=_0x4a22e1['length']-0x1,_0x55bd5c;_0x437a36>=0x0;_0x437a36--)(_0x55bd5c=_0x4a22e1[_0x437a36])&&(_0x5206ed=_0x55bd5c(_0x5206ed)||_0x5206ed);return _0x5206ed;},N=(_0x262852,_0xe07895)=>(_0x1faa5f,_0x3768c3)=>_0xe07895(_0x1faa5f,_0x3768c3,_0x262852);let Q=class extends a[_0x3ac433(0x18f)]{constructor(_0x2e44d0,_0x48fd99,_0x19ab06,_0x15f623,_0x2b5d52,_0x1db515,_0x5c6ac8,_0x21585e){const _0xd6aa05=_0x3ac433;super(),h(this,'_status$',new d['BehaviorSubject'](u[_0xd6aa05(0x241)][_0xd6aa05(0x3a8)])),(this[_0xd6aa05(0x2be)]=_0x2e44d0,this[_0xd6aa05(0x311)]=_0x48fd99,this[_0xd6aa05(0x341)]=_0x19ab06,this[_0xd6aa05(0x20f)]=_0x15f623,this[_0xd6aa05(0x1a2)]=_0x2b5d52,this[_0xd6aa05(0x388)]=_0x1db515,this['_messageService']=_0x5c6ac8,this[_0xd6aa05(0x28f)]=_0x21585e,this['_initEntityListener']());}[_0x3ac433(0x390)](){const _0x1ca7ba=_0x3ac433;this[_0x1ca7ba(0x33a)](this[_0x1ca7ba(0x311)][_0x1ca7ba(0x1a9)][_0x1ca7ba(0x319)](_0x73f228=>{const _0x3cf1d3=_0x1ca7ba,_0x163446=this['_docStateChangeManagerService'][_0x3cf1d3(0x2bb)]['subscribe'](_0x543983=>{const _0x532090=_0x3cf1d3;if(_0x543983==null)return;const {unitId:_0x3f84ac,redoState:_0x30ed4d,commandId:_0x236fb4}=_0x543983;if(_0x3f84ac!==_0x73f228[_0x532090(0x2d7)])return;const _0x149785={'id':_0x236fb4,'type':a['CommandType'][_0x532090(0x283)],'params':{'unitId':_0x3f84ac,'actions':_0x30ed4d[_0x532090(0x178)],'textRanges':null}};_0x73f228['onLocalMutation'](_0x149785);});if(_0x73f228[_0x3cf1d3(0x33a)](_0x163446),_0x73f228 instanceof u['DocCollaborationEntity']){const _0x378a64={'onTransformIME':_0x2600eb=>this['_docTransformIMECacheService'][_0x3cf1d3(0x18c)](_0x2600eb),'onTransformState':_0x18d256=>this[_0x3cf1d3(0x20f)][_0x3cf1d3(0x30b)](_0x18d256),'onTransformSelections':_0x99c01b=>this[_0x3cf1d3(0x1a2)][_0x3cf1d3(0x24b)](_0x99c01b),'onSyncEditingCollabCursor':_0x5765ef=>this['_docSyncEditingCollabCursorService'][_0x3cf1d3(0x314)](_0x5765ef),'onTransformRemoteChangesetByIMECache':_0x58844c=>this[_0x3cf1d3(0x341)][_0x3cf1d3(0x302)](_0x58844c),'onTransformRemoteChangesetByStateCache':_0x98279c=>this[_0x3cf1d3(0x20f)][_0x3cf1d3(0x302)](_0x98279c)};_0x73f228['addHandlerCallback'](_0x378a64);}}));}};Q=Xt([N(0x0,a[_0x3ac433(0x22e)](E['DocStateChangeManagerService'])),N(0x1,a['Inject'](u[_0x3ac433(0x16b)])),N(0x2,a[_0x3ac433(0x22e)](z)),N(0x3,a[_0x3ac433(0x22e)](J)),N(0x4,a[_0x3ac433(0x22e)](Z)),N(0x5,a[_0x3ac433(0x22e)](pe)),N(0x6,O[_0x3ac433(0x2d1)]),N(0x7,a[_0x3ac433(0x22e)](a[_0x3ac433(0x3a4)]))],Q);var Gt=Object[_0x3ac433(0x295)],Kt=(_0x5a2e2b,_0xd6bd21,_0x4d4f95,_0x2762dc)=>{const _0x362586=_0x3ac433;for(var _0x568e5c=_0x2762dc>0x1?void 0x0:_0x2762dc?Gt(_0xd6bd21,_0x4d4f95):_0xd6bd21,_0x40c845=_0x5a2e2b[_0x362586(0x26c)]-0x1,_0x35f821;_0x40c845>=0x0;_0x40c845--)(_0x35f821=_0x5a2e2b[_0x40c845])&&(_0x568e5c=_0x35f821(_0x568e5c)||_0x568e5c);return _0x568e5c;},le=(_0xfe5af5,_0x5803d1)=>(_0x425fc4,_0x5b644e)=>_0x5803d1(_0x425fc4,_0x5b644e,_0xfe5af5);let ve=class extends a[_0x3ac433(0x18f)]{constructor(_0x2dcb89,_0x3745c6,_0x4cfb5){const _0x4ed4d0=_0x3ac433;super(),h(this,_0x4ed4d0(0x235),new Map()),h(this,'_saveTaskMap',new Map()),h(this,_0x4ed4d0(0x2f9),!0x1),(this[_0x4ed4d0(0x17e)]=_0x2dcb89,this[_0x4ed4d0(0x25a)]=_0x3745c6,this[_0x4ed4d0(0x21d)]=_0x4cfb5);}[_0x3ac433(0x189)](){const _0x31a5bc=_0x3ac433;this[_0x31a5bc(0x2f9)]=!0x0;}[_0x3ac433(0x33c)](){const _0x5a561e=_0x3ac433;this[_0x5a561e(0x2f9)]=!0x1;}get['saveTaskMap'](){const _0x46e878=_0x3ac433;return this[_0x46e878(0x190)];}[_0x3ac433(0x150)](){const _0x2a558b=_0x3ac433;this[_0x2a558b(0x276)]()[_0x2a558b(0x23e)](()=>super[_0x2a558b(0x150)]());}async[_0x3ac433(0x24d)](_0x2c45ab){const _0x5490d0=_0x3ac433;return this[_0x5490d0(0x2f9)]?null:this[_0x5490d0(0x25a)][_0x5490d0(0x352)](u[_0x5490d0(0x1a4)](_0x2c45ab));}async[_0x3ac433(0x258)](_0x4aed59,_0x497822){const _0x1e596b=_0x3ac433;return!!this[_0x1e596b(0x25a)][_0x1e596b(0x2ad)](_0x4aed59,_0x497822);}[_0x3ac433(0x147)](_0x3a819b,_0x1f386e,_0x228414,_0x4d854f){const _0x1c9d63=_0x3ac433,_0xdbd178=this['_revisionService']['getCurrentRevOfUnit'](_0x3a819b);this['_cachedData'][_0x1c9d63(0x242)](_0x3a819b,{'unitID':_0x3a819b,'type':_0x1f386e,'awaitingChangeset':_0x228414,'mutations':_0x4d854f,'rev':_0xdbd178}),this[_0x1c9d63(0x190)][_0x1c9d63(0x13a)](_0x3a819b)||this[_0x1c9d63(0x181)](_0x3a819b);}[_0x3ac433(0x181)](_0x5beb9c){const _0x99c688=_0x3ac433,_0x2bf818=this[_0x99c688(0x26b)]();_0x2bf818===0x0?this[_0x99c688(0x336)](_0x5beb9c):this[_0x99c688(0x190)][_0x99c688(0x242)](_0x5beb9c,setTimeout(()=>this[_0x99c688(0x336)](_0x5beb9c),_0x2bf818));}[_0x3ac433(0x26b)](){const _0x1ca638=_0x3ac433;var _0x2e2b0d;return(_0x2e2b0d=this[_0x1ca638(0x17e)][_0x1ca638(0x157)](u[_0x1ca638(0x18d)]))!=null?_0x2e2b0d:u['LOCAL_CACHE_INTERVAL'];}[_0x3ac433(0x336)](_0x2f1ccb){const _0x3a4ee8=_0x3ac433,_0x3fa1b6=this[_0x3a4ee8(0x190)][_0x3a4ee8(0x32e)](_0x2f1ccb);return _0x3fa1b6!==void 0x0&&window['clearTimeout'](_0x3fa1b6),this[_0x3a4ee8(0x25a)][_0x3a4ee8(0x2ad)](u[_0x3a4ee8(0x1a4)](_0x2f1ccb),this[_0x3a4ee8(0x235)][_0x3a4ee8(0x32e)](_0x2f1ccb))[_0x3a4ee8(0x23e)](()=>this[_0x3a4ee8(0x190)][_0x3a4ee8(0x27e)](_0x2f1ccb));}async[_0x3ac433(0x276)](){const _0x41f131=_0x3ac433,_0x40a9c2=[];this[_0x41f131(0x190)][_0x41f131(0x2fd)]((_0x456435,_0x412c19)=>{const _0x22f86b=_0x41f131;window[_0x22f86b(0x250)](_0x456435),_0x40a9c2['push'](this[_0x22f86b(0x336)](_0x412c19)[_0x22f86b(0x23e)](()=>{const _0x4382e2=_0x22f86b;this[_0x4382e2(0x190)][_0x4382e2(0x27e)](_0x412c19);}));}),await Promise[_0x41f131(0x3a9)](_0x40a9c2);}};ve=Kt([le(0x0,a[_0x3ac433(0x30c)]),le(0x1,a[_0x3ac433(0x144)]),le(0x2,a[_0x3ac433(0x22e)](m[_0x3ac433(0x25d)]))],ve);class xe extends a['RxDisposable']{constructor(){const _0x29d7e7=_0x3ac433;super(),h(this,_0x29d7e7(0x1bb)),this[_0x29d7e7(0x1bb)]=d[_0x29d7e7(0x22b)](window,_0x29d7e7(0x1db))[_0x29d7e7(0x2f3)](d[_0x29d7e7(0x2c0)](this[_0x29d7e7(0x1f2)]),d[_0x29d7e7(0x2bd)](0x1),d['mapTo'](void 0x0));}[_0x3ac433(0x1c1)](_0x51e36b,_0xaf4fee,_0xa36d79=!0x1){const _0x3a267f=_0x3ac433,_0x4d5270=new URL(window['location'][_0x3a267f(0x1bd)]);_0x4d5270[_0x3a267f(0x2a3)][_0x3a267f(0x242)](_0x51e36b,_0xaf4fee),_0xa36d79?window[_0x3a267f(0x37d)][_0x3a267f(0x2dc)]('','',_0x4d5270[_0x3a267f(0x24f)]()):window['history'][_0x3a267f(0x38f)]('','',_0x4d5270[_0x3a267f(0x24f)]());}[_0x3ac433(0x294)](_0x29866f,_0x2fc845=!0x1){const _0x357ac2=_0x3ac433,_0x529b71=new URL(window[_0x357ac2(0x372)][_0x357ac2(0x1bd)]);_0x529b71[_0x357ac2(0x2a3)][_0x357ac2(0x27e)](_0x29866f),_0x2fc845?window[_0x357ac2(0x37d)][_0x357ac2(0x2dc)]('','',_0x529b71['toString']()):window['history'][_0x357ac2(0x38f)]('','',_0x529b71[_0x357ac2(0x24f)]());}[_0x3ac433(0x397)](_0xc6a9d){const _0x47d630=_0x3ac433;var _0x3b0ec6;return(_0x3b0ec6=new URL(window[_0x47d630(0x372)][_0x47d630(0x1bd)])['searchParams'][_0x47d630(0x32e)](_0xc6a9d))!=null?_0x3b0ec6:void 0x0;}}var qt=Object['defineProperty'],zt=Object['getOwnPropertyDescriptor'],Jt=(_0x2c0bf5,_0x3de140,_0x4c1aff)=>_0x3de140 in _0x2c0bf5?qt(_0x2c0bf5,_0x3de140,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x4c1aff}):_0x2c0bf5[_0x3de140]=_0x4c1aff,Zt=(_0x239245,_0x35fd61,_0xfc4be7,_0x31394f)=>{for(var _0x326b94=_0x31394f>0x1?void 0x0:_0x31394f?zt(_0x35fd61,_0xfc4be7):_0x35fd61,_0x32af03=_0x239245['length']-0x1,_0xaf7d28;_0x32af03>=0x0;_0x32af03--)(_0xaf7d28=_0x239245[_0x32af03])&&(_0x326b94=_0xaf7d28(_0x326b94)||_0x326b94);return _0x326b94;},_e=(_0x3708fa,_0x1aaea7)=>(_0x54ed7f,_0xb41bff)=>_0x1aaea7(_0x54ed7f,_0xb41bff,_0x3708fa),Qt=(_0x396dcd,_0x26115d,_0xed919c)=>Jt(_0x396dcd,_0x26115d+'',_0xed919c);const es=_0x3ac433(0x20c);exports[_0x3ac433(0x384)]=class extends a[_0x3ac433(0x1ac)]{constructor(_0x413ba7=De,_0x42c60d,_0x41cff2,_0x194a0d){const _0x112a73=_0x3ac433;super(),this['_config']=_0x413ba7,this[_0x112a73(0x164)]=_0x42c60d,this['_injector']=_0x41cff2,this['_configService']=_0x194a0d;const {..._0x29aace}=a['merge']({},De,this[_0x112a73(0x216)]);this[_0x112a73(0x17e)][_0x112a73(0x1ea)](Bt,_0x29aace);}[_0x3ac433(0x362)](){const _0x2bc0c9=_0x3ac433;this[_0x2bc0c9(0x21f)](),this[_0x2bc0c9(0x378)]();}['onRendered'](){const _0x2b1ee4=_0x3ac433;this[_0x2b1ee4(0x1c3)]();}[_0x3ac433(0x21f)](){const _0x36f756=_0x3ac433;var _0x65f303;const _0x134915=[[Ce],[Z],[z],[J],[pe],[me,{'useClass':xe}],[K['ISocketService'],{'useClass':K[_0x36f756(0x20d)]}],[u[_0x36f756(0x179)],{'useClass':ve}],[exports[_0x36f756(0x146)]],[Q],[q],[x],[ue],[exports['CollaborationDataLoaderController']]];a['registerDependencies'](this[_0x36f756(0x168)],a[_0x36f756(0x142)](_0x134915,(_0x65f303=this['_config'])==null?void 0x0:_0x65f303['override']));}[_0x3ac433(0x1c3)](){const _0x44f543=_0x3ac433;this[_0x44f543(0x33a)](this[_0x44f543(0x164)]['registerRenderModule'](a[_0x44f543(0x149)]['UNIVER_DOC'],[fe])),this[_0x44f543(0x33a)](this[_0x44f543(0x164)][_0x44f543(0x2a1)](a[_0x44f543(0x149)]['UNIVER_SHEET'],[Ie]));}[_0x3ac433(0x378)](){const _0x52185d=_0x3ac433;a[_0x52185d(0x367)](this[_0x52185d(0x168)],[[x],[exports[_0x52185d(0x146)]],[Q],[q],[exports[_0x52185d(0x308)]]]);}},Qt(exports[_0x3ac433(0x384)],_0x3ac433(0x191),es),exports[_0x3ac433(0x384)]=Zt([a[_0x3ac433(0x1aa)](u[_0x3ac433(0x145)]),_e(0x1,p[_0x3ac433(0x29e)]),_e(0x2,a[_0x3ac433(0x22e)](a[_0x3ac433(0x143)])),_e(0x3,a[_0x3ac433(0x30c)])],exports[_0x3ac433(0x384)]);var ts=Object[_0x3ac433(0x295)],ss=(_0x40734e,_0x229664,_0x46dc8b,_0x5b8e8b)=>{const _0xc7e069=_0x3ac433;for(var _0x417944=_0x5b8e8b>0x1?void 0x0:_0x5b8e8b?ts(_0x229664,_0x46dc8b):_0x229664,_0x26872f=_0x40734e[_0xc7e069(0x26c)]-0x1,_0x265053;_0x26872f>=0x0;_0x26872f--)(_0x265053=_0x40734e[_0x26872f])&&(_0x417944=_0x265053(_0x417944)||_0x417944);return _0x417944;},H=(_0x2f1abd,_0x4f125c)=>(_0x269bab,_0x4586be)=>_0x4f125c(_0x269bab,_0x4586be,_0x2f1abd);exports[_0x3ac433(0x245)]=class extends u[_0x3ac433(0x2a4)]{constructor(_0x20b07f,_0x26b2b1,_0x364c47,_0x294428,_0x5193da){super(_0x20b07f,_0x26b2b1,_0x364c47,_0x294428,_0x5193da);}async[_0x3ac433(0x2c4)](_0x22f84d){const _0x556ba9=_0x3ac433,_0x350b98=await this['_getSessionTicket'](),_0x56202c=this[_0x556ba9(0x251)](_0x22f84d,_0x350b98);return this[_0x556ba9(0x270)](_0x56202c);}[_0x3ac433(0x251)](_0x5cf029,_0x220006){const _0x34d11d=_0x3ac433,_0x5e4be8=typeof window>'u'?new URL(_0x5cf029):new URL(_0x5cf029,window['location'][_0x34d11d(0x39f)]);_0x5e4be8['searchParams']['set'](_0x34d11d(0x26e),_0x220006);const _0x137bee=typeof window>'u'?new URLSearchParams():new URLSearchParams(window[_0x34d11d(0x372)][_0x34d11d(0x339)]);return _0x137bee[_0x34d11d(0x32e)](_0x34d11d(0x15a))&&_0x5e4be8[_0x34d11d(0x2a3)][_0x34d11d(0x242)](_0x34d11d(0x15a),_0x137bee[_0x34d11d(0x32e)]('runId')),_0x5e4be8[_0x34d11d(0x24f)]();}async[_0x3ac433(0x1cc)](){const _0x9bb652=_0x3ac433;var _0x871d96,_0x527e7b,_0x5eac8b;const _0x2d37ee=this[_0x9bb652(0x17e)][_0x9bb652(0x157)](u[_0x9bb652(0x159)]),_0x5bbb32=(_0x871d96=_0x2d37ee==null?void 0x0:_0x2d37ee['wsSessionTicketUrl'])!=null?_0x871d96:u[_0x9bb652(0x331)];return(_0x5eac8b=(_0x527e7b=(await this[_0x9bb652(0x356)][_0x9bb652(0x32e)](_0x5bbb32,{'headers':{'Content-Type':_0x9bb652(0x155)}}))['body'])==null?void 0x0:_0x527e7b['ticket'])!=null?_0x5eac8b:'';}},exports[_0x3ac433(0x245)]=ss([H(0x0,a[_0x3ac433(0x22e)](a[_0x3ac433(0x143)])),H(0x1,a['Inject'](K[_0x3ac433(0x22d)])),H(0x2,a[_0x3ac433(0x30c)]),H(0x3,a[_0x3ac433(0x20b)]),H(0x4,m['ISnapshotServerService'])],exports['BrowserCollaborationSocketService']);var Be=(_0x307663=>(_0x307663[_0x307663[_0x3ac433(0x2b4)]=0x0]=_0x3ac433(0x2b4),_0x307663[_0x307663['OK']=0x1]='OK',_0x307663[_0x307663['INTERNAL_ERROR']=0x2]=_0x3ac433(0x17d),_0x307663[_0x307663[_0x3ac433(0x300)]=0x3]=_0x3ac433(0x300),_0x307663[_0x307663['NOT_FOUND']=0x4]='NOT_FOUND',_0x307663[_0x307663[_0x3ac433(0x29c)]=0x5]=_0x3ac433(0x29c),_0x307663[_0x307663['ALREADY_EXISTS']=0x6]=_0x3ac433(0x175),_0x307663[_0x307663[_0x3ac433(0x2a8)]=0x7]=_0x3ac433(0x2a8),_0x307663[_0x307663[_0x3ac433(0x1bc)]=0x8]='TOO_MANY_REQUESTS',_0x307663[_0x307663[_0x3ac433(0x202)]=0x9]='COMPLETION_FINISHED',_0x307663[_0x307663[_0x3ac433(0x215)]=0xa]=_0x3ac433(0x215),_0x307663[_0x307663[_0x3ac433(0x31a)]=0xb]=_0x3ac433(0x31a),_0x307663[_0x307663[_0x3ac433(0x17c)]=0xc]=_0x3ac433(0x17c),_0x307663[_0x307663[_0x3ac433(0x2af)]=0xd]=_0x3ac433(0x2af),_0x307663[_0x307663[_0x3ac433(0x199)]=0xe]=_0x3ac433(0x199),_0x307663[_0x307663[_0x3ac433(0x2fb)]=0x1389]=_0x3ac433(0x2fb),_0x307663[_0x307663['SNAPSHOT_INVALID_SNAPSHOT']=0x1771]=_0x3ac433(0x1bf),_0x307663[_0x307663[_0x3ac433(0x23b)]=0x1772]=_0x3ac433(0x23b),_0x307663[_0x307663['ENSURE_SNAPSHOT_EXECUTION']=0x1773]=_0x3ac433(0x371),_0x307663[_0x307663[_0x3ac433(0x2df)]=0x1b59]=_0x3ac433(0x2df),_0x307663[_0x307663[_0x3ac433(0x1c8)]=0x1b5a]=_0x3ac433(0x1c8),_0x307663[_0x307663[_0x3ac433(0x29b)]=0x1b5b]=_0x3ac433(0x29b),_0x307663[_0x307663['APPLY_PERMISSION_DENIED']=0x1b5c]=_0x3ac433(0x193),_0x307663[_0x307663[_0x3ac433(0x13e)]=0x1b5d]=_0x3ac433(0x13e),_0x307663[_0x307663['CONNECTOR_DATA_TOO_LARGE']=0x1f41]=_0x3ac433(0x265),_0x307663[_0x307663[_0x3ac433(0x162)]=0x2329]='LICENSE_MAX_UNITS_EXCEEDED',_0x307663[_0x307663[_0x3ac433(0x386)]=0x232a]='LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED',_0x307663[_0x307663[_0x3ac433(0x1a3)]=0x232b]=_0x3ac433(0x1a3),_0x307663[_0x307663[_0x3ac433(0x2f1)]=0x232c]=_0x3ac433(0x2f1),_0x307663[_0x307663['LICENSE_DISTRO_REJECTED']=0x232d]=_0x3ac433(0x21b),_0x307663[_0x307663[_0x3ac433(0x392)]=0x2711]=_0x3ac433(0x392),_0x307663[_0x307663[_0x3ac433(0x170)]=0x2712]=_0x3ac433(0x170),_0x307663[_0x307663[_0x3ac433(0x264)]=0x2713]='YUUMI_RATE_OVER_LIMIT',_0x307663[_0x307663[_0x3ac433(0x1a6)]=0x2714]=_0x3ac433(0x1a6),_0x307663[_0x307663[_0x3ac433(0x38b)]=0x271a]=_0x3ac433(0x38b),_0x307663[_0x307663[_0x3ac433(0x2b0)]=0x271b]=_0x3ac433(0x2b0),_0x307663[_0x307663['YUUMI_TABLE_NOT_FOUND_IN_UNIT']=0x271c]=_0x3ac433(0x184),_0x307663[_0x307663[_0x3ac433(0x17b)]=0x271d]=_0x3ac433(0x17b),_0x307663[_0x307663['YUUMI_PROMPT_MAX_TOKENS_EXCEEDED']=0x271e]='YUUMI_PROMPT_MAX_TOKENS_EXCEEDED',_0x307663[_0x307663['YUUMI_AI_RUN_FAILED']=0x271f]=_0x3ac433(0x38a),_0x307663[_0x307663[_0x3ac433(0x2ec)]=0x2720]=_0x3ac433(0x2ec),_0x307663[_0x307663[_0x3ac433(0x357)]=0x2af9]=_0x3ac433(0x357),_0x307663[_0x307663[_0x3ac433(0x1af)]=0x2ee1]='INVITE_CODE_HAS_BEEN_UES',_0x307663[_0x307663['INVALID_INVITE_CODE']=0x2ee2]=_0x3ac433(0x313),_0x307663[_0x307663[_0x3ac433(0x359)]=0x2ee3]=_0x3ac433(0x359),_0x307663[_0x307663[_0x3ac433(0x2f7)]=0x2ee4]='USER_NOT_INVITED_CODE',_0x307663[_0x307663[_0x3ac433(0x2b5)]=0x2ee5]=_0x3ac433(0x2b5),_0x307663[_0x307663[_0x3ac433(0x325)]=0x32c9]='WECHAT_HAS_BEEN_BOUND',_0x307663[_0x307663[_0x3ac433(0x2f8)]=0x32ca]=_0x3ac433(0x2f8),_0x307663[_0x307663[_0x3ac433(0x19b)]=0x32cb]=_0x3ac433(0x19b),_0x307663[_0x307663[_0x3ac433(0x21c)]=-0x1]=_0x3ac433(0x21c),_0x307663))(Be||{}),is=Object[_0x3ac433(0x295)],ns=(_0xae1ba0,_0x12f1b4,_0x124369,_0x47bcaa)=>{for(var _0x4ff68d=_0x47bcaa>0x1?void 0x0:_0x47bcaa?is(_0x12f1b4,_0x124369):_0x12f1b4,_0x1d00dc=_0xae1ba0['length']-0x1,_0x229f9f;_0x1d00dc>=0x0;_0x1d00dc--)(_0x229f9f=_0xae1ba0[_0x1d00dc])&&(_0x4ff68d=_0x229f9f(_0x4ff68d)||_0x4ff68d);return _0x4ff68d;},he=(_0x1b1da5,_0x55859f)=>(_0x17dc43,_0x469199)=>_0x55859f(_0x17dc43,_0x469199,_0x1b1da5);exports['RemoteUniscriptService']=class extends a[_0x3ac433(0x18f)]{constructor(_0x2d4b8c,_0x429be7,_0x1c1af2){const _0x1b8702=_0x3ac433;super(),this['_instanceService']=_0x2d4b8c,this[_0x1b8702(0x356)]=_0x429be7,this['_configService']=_0x1c1af2;}async['runOnServer'](_0x4a4d21,_0x593763,_0xb553cc,..._0x1592fa){const _0x467f74=_0x3ac433;var _0x357f59,_0x28b26d,_0x10cee9,_0x5328f6;const _0x3755fa=this['_instanceService'][_0x467f74(0x373)]();if(!_0x3755fa)throw new Error(_0x467f74(0x2b3));const _0x2262a4=((_0x357f59=this['_configService'][_0x467f74(0x157)](u[_0x467f74(0x246)]))!=null?_0x357f59:u['DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT'])+'/'+_0x4a4d21+_0x467f74(0x2bf)+_0x593763,_0x35cd0c=new URL(window[_0x467f74(0x372)][_0x467f74(0x1bd)]),_0x43e833={'scriptId':_0x4a4d21,'runId':(_0x28b26d=_0x35cd0c[_0x467f74(0x2a3)][_0x467f74(0x32e)](_0x467f74(0x15a)))!=null?_0x28b26d:'','function':_0x593763,'unitId':_0x3755fa[_0x467f74(0x161)](),'argsOfFunction':JSON[_0x467f74(0x27a)](_0x1592fa),'invokeId':(_0x10cee9=_0xb553cc['invokeId'])!=null?_0x10cee9:'','executionId':(_0x5328f6=_0xb553cc[_0x467f74(0x26f)])!=null?_0x5328f6:''};try{const _0x139f2f=await this['_httpService'][_0x467f74(0x14e)](_0x2262a4,{'body':_0x43e833});return _0x139f2f['body']['error']&&_0x139f2f[_0x467f74(0x14b)][_0x467f74(0x2d3)]['code']!==Be['OK']?_0x467f74(0x148):_0x139f2f['body']['result'];}catch{return _0x467f74(0x148);}}},exports[_0x3ac433(0x1d5)]=ns([he(0x0,a[_0x3ac433(0x39e)]),he(0x1,a['Inject'](K['HTTPService'])),he(0x2,a[_0x3ac433(0x30c)])],exports[_0x3ac433(0x1d5)]);const Me=0x7530,Le=_0x3ac433(0x329);function _0x2522(_0x21cf38,_0x53141b){const _0x5e3cac=_0x5e3c();return _0x2522=function(_0x25222b,_0x5daf94){_0x25222b=_0x25222b-0x137;let _0x2c82a9=_0x5e3cac[_0x25222b];return _0x2c82a9;},_0x2522(_0x21cf38,_0x53141b);}class rs extends a[_0x3ac433(0x18f)]{constructor(){const _0x3a7a2d=_0x3ac433;super(),h(this,_0x3a7a2d(0x232),a['generateRandomId']()),h(this,_0x3a7a2d(0x1dd),new Set()),h(this,_0x3a7a2d(0x34d),new Map()),h(this,_0x3a7a2d(0x1ba),null),h(this,_0x3a7a2d(0x381),new Map()),h(this,_0x3a7a2d(0x206),new Map()),this[_0x3a7a2d(0x2cd)]();}['dispose'](){const _0x26a70b=_0x3ac433;super[_0x26a70b(0x150)](),this[_0x26a70b(0x381)][_0x26a70b(0x2fd)]((_0xdab2ee,_0x57b288)=>this[_0x26a70b(0x375)](_0x57b288)),this['_heartbeatTimer']&&window[_0x26a70b(0x38e)](this['_heartbeatTimer']);}['getUnitStatus$'](_0x436739){const _0x5cbae7=_0x3ac433;return this['_ensureSubject'](_0x436739)['pipe'](d[_0x5cbae7(0x328)]());}[_0x3ac433(0x13f)](_0x102f80){const _0x5d9150=_0x3ac433;this[_0x5d9150(0x1dd)][_0x5d9150(0x227)]===0x0&&this[_0x5d9150(0x1b9)](),this[_0x5d9150(0x1dd)][_0x5d9150(0x3a3)](_0x102f80),this[_0x5d9150(0x2d2)]({'type':0x0,'memberID':this['_id'],'unitIDs':[_0x102f80],'isForwarded':!0x1});}['disposeUnit'](_0x54cee7){const _0x577bae=_0x3ac433;this[_0x577bae(0x1dd)][_0x577bae(0x27e)](_0x54cee7),this[_0x577bae(0x1dd)][_0x577bae(0x227)]===0x0&&this[_0x577bae(0x1ba)]&&window['clearInterval'](this[_0x577bae(0x1ba)]);}[_0x3ac433(0x2cd)](){const _0x4e8fa3=_0x3ac433;this[_0x4e8fa3(0x33a)](a['toDisposable'](d[_0x4e8fa3(0x22b)](window,'storage')[_0x4e8fa3(0x319)](_0x1274c5=>{const _0x195eee=_0x4e8fa3;if(_0x1274c5[_0x195eee(0x1d0)]!==Le||!_0x1274c5['newValue'])return;const _0x4bf2cc=JSON[_0x195eee(0x317)](_0x1274c5[_0x195eee(0x16a)]);this[_0x195eee(0x1e3)](_0x4bf2cc);}))),window[_0x4e8fa3(0x360)](_0x4e8fa3(0x335),()=>this[_0x4e8fa3(0x2d2)]({'type':0x1,'memberID':this[_0x4e8fa3(0x232)],'unitIDs':Array[_0x4e8fa3(0x389)](this[_0x4e8fa3(0x1dd)])}));}[_0x3ac433(0x1e3)](_0x2e7951){const _0x34d26e=_0x3ac433;switch(_0x2e7951[_0x34d26e(0x2f4)]){case 0x0:this[_0x34d26e(0x2b1)](_0x2e7951);break;case 0x1:this['_handleLeaveEvent'](_0x2e7951);break;case 0x2:this[_0x34d26e(0x1b2)](_0x2e7951);break;}}[_0x3ac433(0x2b1)](_0x355acf){const _0x35e7e1=_0x3ac433,{unitIDs:_0x4da9a4,memberID:_0x3717f5,isForwarded:_0x317ec1}=_0x355acf;_0x4da9a4[_0x35e7e1(0x2fd)](_0x55f9ec=>{const _0x4a2dde=_0x35e7e1;if(!_0x317ec1&&this[_0x4a2dde(0x34d)]['has'](_0x55f9ec)&&this[_0x4a2dde(0x139)](_0x55f9ec)['next'](u[_0x4a2dde(0x1b7)]['OTHER_CLIENTS_EDITING']),!this[_0x4a2dde(0x34d)]['has'](_0x55f9ec)||!this['_unitOnClients'][_0x4a2dde(0x32e)](_0x55f9ec)[_0x4a2dde(0x13a)](_0x3717f5)){const _0x169ed9=this[_0x4a2dde(0x34d)][_0x4a2dde(0x32e)](_0x55f9ec)||new Set();_0x169ed9[_0x4a2dde(0x3a3)](_0x3717f5),this[_0x4a2dde(0x34d)]['set'](_0x55f9ec,_0x169ed9),this['_scheduleClearOtherTimer'](_0x3717f5);}}),_0x317ec1||this[_0x35e7e1(0x2d2)]({'type':0x0,'memberID':this[_0x35e7e1(0x232)],'unitIDs':[...this[_0x35e7e1(0x1dd)]],'isForwarded':!0x0});}[_0x3ac433(0x2d0)](_0xb7e452){const _0x4fa3c1=_0x3ac433;this['_removeClearOtherTimer'](_0xb7e452);const _0x54f1a4=window[_0x4fa3c1(0x259)](()=>{const _0x2536e4=_0x4fa3c1;this['_unitOnClients'][_0x2536e4(0x2fd)](_0x32b4d0=>{const _0x3b0aad=_0x2536e4;_0x32b4d0[_0x3b0aad(0x27e)](_0xb7e452);});},Me*0x2);this[_0x4fa3c1(0x381)][_0x4fa3c1(0x242)](_0xb7e452,_0x54f1a4);}[_0x3ac433(0x375)](_0x5dd5d1){const _0x291e11=_0x3ac433;if(this['_clearOtherTimers']['has'](_0x5dd5d1)){const _0x26c503=this['_clearOtherTimers'][_0x291e11(0x32e)](_0x5dd5d1);_0x26c503&&window[_0x291e11(0x250)](_0x26c503),this[_0x291e11(0x381)][_0x291e11(0x242)](_0x5dd5d1,null);}}[_0x3ac433(0x36f)](_0x56c70a){const _0x3dccc4=_0x3ac433,{memberID:_0x3abfd1,unitIDs:_0x96181e}=_0x56c70a;_0x96181e[_0x3dccc4(0x2fd)](_0x5014d1=>{const _0x273527=_0x3dccc4;var _0x3e9b2b;const _0x184695=this[_0x273527(0x34d)][_0x273527(0x32e)](_0x5014d1);_0x184695&&(_0x184695[_0x273527(0x27e)](_0x3abfd1),(_0x3e9b2b=this['_ensureSubject'](_0x5014d1))==null||_0x3e9b2b['next'](_0x184695[_0x273527(0x227)]===0x0?u[_0x273527(0x1b7)][_0x273527(0x1b3)]:u['UnitStatus'][_0x273527(0x2ef)]));}),this[_0x3dccc4(0x375)](_0x3abfd1);}['_handleHeartbeatEvent'](_0x375495){const _0x16b103=_0x3ac433;this[_0x16b103(0x2d0)](_0x375495['memberID']);}['_send'](_0x5144bd){const _0x5cc8b8=_0x3ac433;localStorage['setItem'](Le,JSON[_0x5cc8b8(0x27a)](_0x5144bd));}[_0x3ac433(0x1b9)](){this['_heartbeatTimer']=window['setInterval'](()=>{const _0x191249=_0x2522;this[_0x191249(0x2d2)]({'type':0x2,'memberID':this[_0x191249(0x232)]});},Me);}[_0x3ac433(0x139)](_0x283cff){const _0x40b864=_0x3ac433;return this[_0x40b864(0x206)]['has'](_0x283cff)||this[_0x40b864(0x206)][_0x40b864(0x242)](_0x283cff,new d[(_0x40b864(0x330))](u[_0x40b864(0x1b7)]['NO_OTHER_CLIENTS_EDITING'])),this['_unitStatus'][_0x40b864(0x32e)](_0x283cff);}}exports[_0x3ac433(0x248)]=me,exports['SheetCollabCursorShape']=$e,exports[_0x3ac433(0x2d6)]=rs,exports['WebURLService']=xe;