@univerjs-pro/collaboration-client-ui 0.7.0-nightly.202505171606 → 0.7.0-nightly.202505181606
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/cjs/facade.js +1 -1
- package/lib/cjs/index.js +1 -1
- package/lib/cjs/locale/en-US.js +1 -1
- package/lib/cjs/locale/fa-IR.js +1 -1
- package/lib/cjs/locale/fr-FR.js +1 -1
- package/lib/cjs/locale/ru-RU.js +1 -1
- package/lib/cjs/locale/vi-VN.js +1 -1
- package/lib/cjs/locale/zh-CN.js +1 -1
- package/lib/cjs/locale/zh-TW.js +1 -1
- package/lib/es/facade.js +1 -1
- package/lib/es/index.js +1 -1
- package/lib/es/locale/en-US.js +1 -1
- package/lib/es/locale/fa-IR.js +1 -1
- package/lib/es/locale/fr-FR.js +1 -1
- package/lib/es/locale/ru-RU.js +1 -1
- package/lib/es/locale/vi-VN.js +1 -1
- package/lib/es/locale/zh-CN.js +1 -1
- package/lib/es/locale/zh-TW.js +1 -1
- package/lib/facade.js +1 -1
- package/lib/index.js +1 -1
- package/lib/locale/en-US.js +1 -1
- package/lib/locale/fa-IR.js +1 -1
- package/lib/locale/fr-FR.js +1 -1
- package/lib/locale/ru-RU.js +1 -1
- package/lib/locale/vi-VN.js +1 -1
- package/lib/locale/zh-CN.js +1 -1
- package/lib/locale/zh-TW.js +1 -1
- package/lib/umd/facade.js +1 -1
- package/lib/umd/index.js +1 -1
- package/lib/umd/locale/en-US.js +1 -1
- package/lib/umd/locale/fa-IR.js +1 -1
- package/lib/umd/locale/fr-FR.js +1 -1
- package/lib/umd/locale/ru-RU.js +1 -1
- package/lib/umd/locale/vi-VN.js +1 -1
- package/lib/umd/locale/zh-CN.js +1 -1
- package/lib/umd/locale/zh-TW.js +1 -1
- package/package.json +15 -15
package/lib/cjs/facade.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const _0x3a09be=_0x4592;(function(_0x69aa21,_0x4a2700){const _0x546a6a=_0x4592,_0x56d7b2=_0x69aa21();while(!![]){try{const _0x4c6547=-parseInt(_0x546a6a(0x183))/0x1*(parseInt(_0x546a6a(0x185))/0x2)+parseInt(_0x546a6a(0x17a))/0x3+-parseInt(_0x546a6a(0x17c))/0x4*(parseInt(_0x546a6a(0x180))/0x5)+-parseInt(_0x546a6a(0x179))/0x6*(-parseInt(_0x546a6a(0x17b))/0x7)+-parseInt(_0x546a6a(0x187))/0x8*(-parseInt(_0x546a6a(0x176))/0x9)+-parseInt(_0x546a6a(0x182))/0xa+-parseInt(_0x546a6a(0x184))/0xb*(-parseInt(_0x546a6a(0x178))/0xc);if(_0x4c6547===_0x4a2700)break;else _0x56d7b2['push'](_0x56d7b2['shift']());}catch(_0x28cdc7){_0x56d7b2['push'](_0x56d7b2['shift']());}}}(_0x4767,0x6a228));function _0x4767(){const _0x194ca8=['6387128TaiKYD','1501302BViUJN','runOnServer','752WPcLjc','26541DjmrJi','_injector','12cKZTYv','78pVrLvy','1285749qdVCqO','357637QfPevf','2421460qVKdHF','FUniver','@univerjs/core/facade','extend','5nbxyXE','@univerjs-pro/collaboration-client-ui','1598760NzxPGn','1jRGMcj'];_0x4767=function(){return _0x194ca8;};return _0x4767();}const t=require(_0x3a09be(0x181)),e=require(_0x3a09be(0x17e));class c extends e[_0x3a09be(0x17d)]{[_0x3a09be(0x186)](_0x594891,_0x3f4607,..._0x1369d0){const _0x5b2d0b=_0x3a09be;return this[_0x5b2d0b(0x177)]['get'](t['RemoteUniscriptService'])[_0x5b2d0b(0x186)](_0x594891,_0x3f4607,{},..._0x1369d0);}}function _0x4592(_0x42be41,_0x46ad16){const _0x476739=_0x4767();return _0x4592=function(_0x45923c,_0x171bcd){_0x45923c=_0x45923c-0x176;let _0x561199=_0x476739[_0x45923c];return _0x561199;},_0x4592(_0x42be41,_0x46ad16);}e['FUniver'][_0x3a09be(0x17f)](c);
|
package/lib/cjs/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const _0x5adf7c=_0x1625;(function(_0x5152bb,_0x115a2a){const _0x1f0658=_0x1625,_0x2330fc=_0x5152bb();while(!![]){try{const _0x3d4d25=parseInt(_0x1f0658(0x223))/0x1+parseInt(_0x1f0658(0x264))/0x2*(parseInt(_0x1f0658(0x2a5))/0x3)+parseInt(_0x1f0658(0x2dd))/0x4+parseInt(_0x1f0658(0x357))/0x5*(parseInt(_0x1f0658(0x270))/0x6)+parseInt(_0x1f0658(0x2ad))/0x7*(parseInt(_0x1f0658(0x3f0))/0x8)+-parseInt(_0x1f0658(0x353))/0x9*(parseInt(_0x1f0658(0x3b4))/0xa)+-parseInt(_0x1f0658(0x28d))/0xb;if(_0x3d4d25===_0x115a2a)break;else _0x2330fc['push'](_0x2330fc['shift']());}catch(_0x3914d8){_0x2330fc['push'](_0x2330fc['shift']());}}}(_0x3491,0x964ce));var Ve=Object[_0x5adf7c(0x2a2)],Xe=(_0x103a19,_0x219e7b,_0x4c027c)=>_0x219e7b in _0x103a19?Ve(_0x103a19,_0x219e7b,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x4c027c}):_0x103a19[_0x219e7b]=_0x4c027c,h=(_0xbd2066,_0x397ecb,_0x32c45c)=>Xe(_0xbd2066,typeof _0x397ecb!=_0x5adf7c(0x1e7)?_0x397ecb+'':_0x397ecb,_0x32c45c);Object['defineProperty'](exports,Symbol[_0x5adf7c(0x33d)],{'value':_0x5adf7c(0x2ab)});const u=require(_0x5adf7c(0x35d)),a=require(_0x5adf7c(0x387)),p=require('@univerjs/engine-render'),G=require(_0x5adf7c(0x1de)),b=require(_0x5adf7c(0x25e)),Ge=require(_0x5adf7c(0x1d3)),d=require(_0x5adf7c(0x37b)),Y=require(_0x5adf7c(0x301)),m=require('@univerjs-pro/collaboration'),Ee=require('@univerjs/engine-formula'),g=require(_0x5adf7c(0x27e)),$=require('rxjs/operators'),X=require(_0x5adf7c(0x332)),P=require(_0x5adf7c(0x1eb)),T=require('@univerjs/ui'),D=require(_0x5adf7c(0x33e)),M=require('react'),Ke=require('@univerjs/rpc');var qe=Object[_0x5adf7c(0x401)],ze=(_0x2fd805,_0x497e2d,_0x2b58cc,_0x4596ba)=>{for(var _0x41cbb6=_0x4596ba>0x1?void 0x0:_0x4596ba?qe(_0x497e2d,_0x2b58cc):_0x497e2d,_0x2709dc=_0x2fd805['length']-0x1,_0x502ce0;_0x2709dc>=0x0;_0x2709dc--)(_0x502ce0=_0x2fd805[_0x2709dc])&&(_0x41cbb6=_0x502ce0(_0x41cbb6)||_0x41cbb6);return _0x41cbb6;},Te=(_0x49c356,_0x2a035b)=>(_0x4f5522,_0x35363d)=>_0x2a035b(_0x4f5522,_0x35363d,_0x49c356);let de=class extends a[_0x5adf7c(0x434)]{constructor(_0x49215e,_0x418384){const _0x2d793e=_0x5adf7c;super(),this['_docClipboardService']=_0x49215e,this[_0x2d793e(0x2be)]=_0x418384,this[_0x2d793e(0x36f)]();}[_0x5adf7c(0x36f)](){const _0x538d0c=_0x5adf7c,_0x268dd2=this;this[_0x538d0c(0x238)](this[_0x538d0c(0x241)][_0x538d0c(0x377)]({'onBeforePasteImage':async _0x59f2de=>{const _0x2c6b72=_0x538d0c,_0x1374f3=await _0x268dd2['_imageIoService'][_0x2c6b72(0x200)](_0x59f2de);return _0x1374f3?{'source':_0x1374f3['source'],'imageSourceType':_0x1374f3[_0x2c6b72(0x3f8)]}:null;}}));}};de=ze([Te(0x0,b[_0x5adf7c(0x1e8)]),Te(0x1,Ge[_0x5adf7c(0x276)])],de);const Oe=['purple.300',_0x5adf7c(0x36c),'green.600',_0x5adf7c(0x225),_0x5adf7c(0x35c),_0x5adf7c(0x43c)];class me extends a['Disposable']{constructor(){const _0x8a9d6c=_0x5adf7c;super(...arguments),h(this,_0x8a9d6c(0x2fe),new Map()),h(this,_0x8a9d6c(0x33c),0x0);}[_0x5adf7c(0x3f3)](_0x5f17cd){const _0x125bcd=_0x5adf7c;if(this['_assignedColors'][_0x125bcd(0x2fd)](_0x5f17cd))return this[_0x125bcd(0x2fe)][_0x125bcd(0x229)](_0x5f17cd);const _0x34d12e=Oe[this[_0x125bcd(0x33c)]];return this[_0x125bcd(0x33c)]=(this[_0x125bcd(0x33c)]+0x1)%Oe[_0x125bcd(0x410)],this[_0x125bcd(0x2fe)][_0x125bcd(0x34d)](_0x5f17cd,_0x34d12e),_0x34d12e;}}function Pe(_0x2796a5){const _0x57a087=_0x5adf7c;let _0x470a05='';for(const _0x53efd9 of _0x2796a5){const {startOffset:_0x2cabd4,endOffset:_0x446161,isActive:_0x477172,rangeType:_0x314048,segmentId:_0x460aa8,segmentPage:_0x46437a}=_0x53efd9;_0x470a05[_0x57a087(0x410)]&&(_0x470a05+=','),_0x470a05+=_0x2cabd4+':'+_0x446161+':'+(_0x477172?'1':'0')+':'+_0x314048+':'+_0x460aa8+':'+_0x46437a;}return _0x470a05;}function Je(_0x424789){const _0x443fbe=_0x5adf7c,_0x22039d=_0x424789['split'](','),_0x221950=[];for(const _0x1f63ff of _0x22039d){const [_0x583769,_0x5d69ed,_0x429e4a,_0x41254f,_0x54a24d,_0x4eb46f]=_0x1f63ff[_0x443fbe(0x40d)](':');_0x221950[_0x443fbe(0x23d)]({'startOffset':Number(_0x583769),'endOffset':Number(_0x5d69ed),'collapsed':_0x583769===_0x5d69ed,'isActive':_0x429e4a==='1','rangeType':_0x41254f===a[_0x443fbe(0x21f)][_0x443fbe(0x2d7)]?a[_0x443fbe(0x21f)][_0x443fbe(0x2d7)]:a['DOC_RANGE_TYPE'][_0x443fbe(0x395)],'segmentId':typeof _0x54a24d==_0x443fbe(0x246)?String(_0x54a24d):'','segmentPage':Number(_0x4eb46f!=null?_0x4eb46f:-0x1)});}return _0x221950[_0x443fbe(0x3f5)](_0x35c0d3=>_0x35c0d3['isActive'])||(_0x221950[0x0][_0x443fbe(0x1c2)]=!0x0),_0x221950;}class Ce extends a[_0x5adf7c(0x434)]{constructor(){const _0x271e6e=_0x5adf7c;super(...arguments),h(this,_0x271e6e(0x40a),new d[(_0x271e6e(0x1d8))](null)),h(this,_0x271e6e(0x3b9),this[_0x271e6e(0x40a)][_0x271e6e(0x3c5)]());}[_0x5adf7c(0x268)](_0xa5ff04){const _0x49fab1=_0x5adf7c,{unitID:_0x386a41,memberID:_0x3dfdf9,textRanges:_0x3451fb}=_0xa5ff04,_0x9b1cbc=Pe(_0x3451fb);if(_0x9b1cbc==='')return;const _0x25fc73={'unitID':_0x386a41,'memberID':_0x3dfdf9,'selection':_0x9b1cbc};this[_0x49fab1(0x40a)][_0x49fab1(0x2e3)](_0x25fc73);}}var Ze=Object[_0x5adf7c(0x401)],Qe=(_0x47ea98,_0x538163,_0x1d37d3,_0x11e38d)=>{const _0xa40e1d=_0x5adf7c;for(var _0x3137ea=_0x11e38d>0x1?void 0x0:_0x11e38d?Ze(_0x538163,_0x1d37d3):_0x538163,_0x4195dd=_0x47ea98[_0xa40e1d(0x410)]-0x1,_0x594661;_0x4195dd>=0x0;_0x4195dd--)(_0x594661=_0x47ea98[_0x4195dd])&&(_0x3137ea=_0x594661(_0x3137ea)||_0x3137ea);return _0x3137ea;},L=(_0x2c20c7,_0x20933f)=>(_0xfd6b9e,_0x47ad09)=>_0x20933f(_0xfd6b9e,_0x47ad09,_0x2c20c7);const et=0x12c,tt=0x64;let fe=class extends a[_0x5adf7c(0x434)]{constructor(_0x26eb7b,_0x3aeeac,_0x222211,_0x2449a1,_0x45770b,_0x1a00cb,_0x31d513,_0x2acb99,_0x34a3b3){const _0x97be9c=_0x5adf7c;super(),h(this,'_online',!0x1),h(this,'_init',!0x1),h(this,'_cursorInfo$',new d[(_0x97be9c(0x1d8))](new Map())),h(this,_0x97be9c(0x3e6),this[_0x97be9c(0x293)][_0x97be9c(0x3c5)]()),h(this,_0x97be9c(0x21d),new d['BehaviorSubject']([])),h(this,_0x97be9c(0x359),this[_0x97be9c(0x21d)][_0x97be9c(0x2c4)](d[_0x97be9c(0x1cb)](et))),h(this,_0x97be9c(0x3dc),a[_0x97be9c(0x375)](_0x5c7547=>{const _0x5d30e2=_0x97be9c,_0x42c9f7={'eventID':m[_0x5d30e2(0x396)][_0x5d30e2(0x210)],'data':{'unitID':this['unitID'],'memberID':this[_0x5d30e2(0x3c1)]['getMemberID'](),'selection':Pe(_0x5c7547)}};this[_0x5d30e2(0x3c1)]['send'](_0x42c9f7,this[_0x5d30e2(0x2c0)]);},tt)),(this[_0x97be9c(0x2c0)]=_0x26eb7b,this[_0x97be9c(0x3c1)]=_0x3aeeac,this[_0x97be9c(0x2f4)]=_0x222211,this[_0x97be9c(0x390)]=_0x2449a1,this[_0x97be9c(0x38c)]=_0x45770b,this[_0x97be9c(0x233)]=_0x1a00cb,this[_0x97be9c(0x2f9)]=_0x31d513,this[_0x97be9c(0x2d9)]=_0x2acb99,this['_commandService']=_0x34a3b3);}get[_0x5adf7c(0x3db)](){const _0x4237fa=_0x5adf7c;return this[_0x4237fa(0x293)]['getValue']();}get[_0x5adf7c(0x256)](){const _0x182db9=_0x5adf7c;return this[_0x182db9(0x21d)][_0x182db9(0x38b)]();}[_0x5adf7c(0x320)](){const _0x206ac5=_0x5adf7c;super[_0x206ac5(0x320)](),this[_0x206ac5(0x293)][_0x206ac5(0x2e3)](new Map()),this[_0x206ac5(0x293)][_0x206ac5(0x3ec)](),this['_roomMembers$'][_0x206ac5(0x2e3)]([]),this[_0x206ac5(0x21d)][_0x206ac5(0x3ec)]();}['init'](){const _0x23a282=_0x5adf7c;this[_0x23a282(0x36f)]||(this['_init']=!0x0,this['_session'][_0x23a282(0x1be)]['pipe'](d[_0x23a282(0x310)](this[_0x23a282(0x311)]))[_0x23a282(0x2e0)](_0x4708d6=>{_0x4708d6===u['SessionStatus']['ONLINE']?this['_toggleOnline']():this['_toggleOffline']();}),this[_0x23a282(0x3c1)][_0x23a282(0x1fa)][_0x23a282(0x2c4)](d['takeUntil'](this[_0x23a282(0x311)]))[_0x23a282(0x2e0)](_0x1d0295=>{const _0x1d125b=_0x23a282,_0x29f301=_0x1d0295['eventID'];_0x29f301===m['CollaborationEvent']['UPDATE_CURSOR']&&this[_0x1d125b(0x230)](_0x1d0295),_0x29f301===m['CollaborationEvent'][_0x1d125b(0x1b8)]&&this[_0x1d125b(0x1e4)](_0x1d0295);}),this['disposeWithMe'](this['_commandService'][_0x23a282(0x24d)](_0x392fec=>{const _0x2d67d5=_0x23a282,_0x30f72d=_0x392fec[_0x2d67d5(0x2f5)];_0x30f72d!=null&&this[_0x2d67d5(0x240)]&&_0x392fec['id']===Y[_0x2d67d5(0x2cc)]['id']&&_0x30f72d['unitId']===this[_0x2d67d5(0x2c0)]&&_0x30f72d[_0x2d67d5(0x3c0)]===!0x1&&_0x30f72d[_0x2d67d5(0x2fb)][_0x2d67d5(0x410)]>0x0&&this[_0x2d67d5(0x3dc)](_0x30f72d['ranges']);})),this[_0x23a282(0x233)]['collabCursorState$'][_0x23a282(0x2c4)](d[_0x23a282(0x310)](this[_0x23a282(0x311)]))[_0x23a282(0x2e0)](_0x54e273=>{const _0x800116=_0x23a282;if((_0x54e273==null?void 0x0:_0x54e273['unitID'])!==this['unitID'])return;const _0xca0ad3={'eventID':m[_0x800116(0x396)][_0x800116(0x210)],'data':_0x54e273};this[_0x800116(0x230)](_0xca0ad3);}),this['disposeWithMe'](this[_0x23a282(0x2c3)][_0x23a282(0x24d)](_0x40f265=>{const _0x200de6=_0x23a282;if(_0x40f265[_0x200de6(0x2f5)]==null)return;const _0x3373f1=_0x40f265[_0x200de6(0x2f5)];if(_0x40f265['id']!==Y['RichTextEditingMutation']['id']||_0x3373f1[_0x200de6(0x1b3)]!==this[_0x200de6(0x2c0)])return;const _0x398603={'id':_0x200de6(0x251),'params':_0x3373f1},_0x324b6a=this[_0x200de6(0x3db)];for(const [_0x3daa1a,_0x1fe74d]of _0x324b6a){const _0x280e7d={'id':_0x200de6(0x251),'params':{'unitId':this[_0x200de6(0x2c0)],'actions':null,'textRanges':_0x1fe74d[_0x200de6(0x2fb)]}},_0x4082b7=this[_0x200de6(0x2f9)][_0x200de6(0x1f0)](_0x398603,_0x280e7d,!0x1);if(m[_0x200de6(0x305)](_0x4082b7))throw _0x4082b7[_0x200de6(0x2a6)];_0x324b6a[_0x200de6(0x34d)](_0x3daa1a,{..._0x1fe74d,'ranges':_0x4082b7[_0x200de6(0x3d5)][_0x200de6(0x2f5)][_0x200de6(0x261)]});}queueMicrotask(()=>{const _0x21d956=_0x200de6;this[_0x21d956(0x293)]['next'](_0x324b6a);});})));}['_onCursorUpdate'](_0x172b4f){const _0x55307d=_0x5adf7c;var _0x5eb3d6,_0x2ae5f7;const {memberID:_0x638e3a,selection:_0x5cea03}=_0x172b4f['data'],_0x390db8=Je(_0x5cea03),_0x5e622d=(_0x2ae5f7=(_0x5eb3d6=this[_0x55307d(0x38c)][_0x55307d(0x2d3)](this[_0x55307d(0x2c0)],_0x638e3a))==null?void 0x0:_0x5eb3d6['name'])!=null?_0x2ae5f7:_0x55307d(0x35b),_0x5d67e7={'color':this[_0x55307d(0x390)]['assignAColorForMemberID'](_0x638e3a),'name':_0x5e622d,'ranges':_0x390db8},_0x207d66=this[_0x55307d(0x3db)];_0x207d66[_0x55307d(0x34d)](_0x638e3a,_0x5d67e7),this['_cursorInfo$'][_0x55307d(0x2e3)](_0x207d66);}[_0x5adf7c(0x1e4)](_0x5e08f7){const _0x18d9b2=_0x5adf7c,{memberID:_0x373f98}=_0x5e08f7[_0x18d9b2(0x260)],_0x2a964a=this[_0x18d9b2(0x3db)];_0x2a964a['delete'](_0x373f98),this[_0x18d9b2(0x293)][_0x18d9b2(0x2e3)](_0x2a964a);}[_0x5adf7c(0x24c)](){const _0xa7c70f=_0x5adf7c;var _0x2b1f2b;if(this['_online']=!0x0,((_0x2b1f2b=this['_univerInstanceService'][_0xa7c70f(0x26d)]())==null?void 0x0:_0x2b1f2b[_0xa7c70f(0x3fa)]())!==this[_0xa7c70f(0x2c0)])return;const _0x57405f=this[_0xa7c70f(0x2f4)][_0xa7c70f(0x229)](Y[_0xa7c70f(0x38f)])[_0xa7c70f(0x3d6)]();Array[_0xa7c70f(0x206)](_0x57405f)&&_0x57405f['length']>0x0&&this[_0xa7c70f(0x3dc)](_0x57405f);}[_0x5adf7c(0x2b1)](){this['_online']=!0x1;}};fe=Qe([L(0x2,a[_0x5adf7c(0x43b)](a[_0x5adf7c(0x31e)])),L(0x3,a[_0x5adf7c(0x43b)](me)),L(0x4,a['Inject'](u[_0x5adf7c(0x29c)])),L(0x5,a['Inject'](Ce)),L(0x6,m[_0x5adf7c(0x269)]),L(0x7,a['IUniverInstanceService']),L(0x8,a[_0x5adf7c(0x322)])],fe);var st=Object[_0x5adf7c(0x401)],it=(_0x4a7ab2,_0x44db6c,_0x1517c4,_0x5186ec)=>{const _0x10831f=_0x5adf7c;for(var _0x1669e4=_0x5186ec>0x1?void 0x0:_0x5186ec?st(_0x44db6c,_0x1517c4):_0x44db6c,_0x338d90=_0x4a7ab2[_0x10831f(0x410)]-0x1,_0x4a1678;_0x338d90>=0x0;_0x338d90--)(_0x4a1678=_0x4a7ab2[_0x338d90])&&(_0x1669e4=_0x4a1678(_0x1669e4)||_0x1669e4);return _0x1669e4;},w=(_0x3357e2,_0x4e8996)=>(_0x80c419,_0xe2a1cf)=>_0x4e8996(_0x80c419,_0xe2a1cf,_0x3357e2);const nt=0x12c,rt=0x64,ot=()=>{let _0x167a8a=[],_0x137733=!0x1;return _0xa2d1c2=>{_0x167a8a['push'](_0xa2d1c2),_0x137733||(_0x137733=!0x0,setTimeout(()=>{const _0x42deaa=_0x1625;_0x167a8a[_0x42deaa(0x1fb)](_0x183d45=>_0x183d45()),_0x167a8a=[],_0x137733=!0x1;}));};};let Se=class extends a[_0x5adf7c(0x434)]{constructor(_0x5462ce,_0x5e4188,_0x16e366,_0x460ad3,_0x457a4c,_0x42ed7d,_0x1c0dd9,_0x2eda7d){const _0x49b5c9=_0x5adf7c;super(),h(this,_0x49b5c9(0x240),!0x1),h(this,'_init',!0x1),h(this,_0x49b5c9(0x293),new d[(_0x49b5c9(0x1d8))](new Map())),h(this,_0x49b5c9(0x3e6),this[_0x49b5c9(0x293)]['asObservable']()),h(this,_0x49b5c9(0x21d),new d[(_0x49b5c9(0x1d8))]([])),h(this,'roomMembers$',this[_0x49b5c9(0x21d)][_0x49b5c9(0x2c4)](d[_0x49b5c9(0x1cb)](nt))),h(this,_0x49b5c9(0x3dc),a['debounce']((_0x17d0b1,_0x3ee43c)=>{const _0xe61fc=_0x49b5c9,_0x3da84b={'eventID':m[_0xe61fc(0x396)][_0xe61fc(0x210)],'data':{'unitID':this[_0xe61fc(0x2c0)],'memberID':this[_0xe61fc(0x3c1)][_0xe61fc(0x32d)](),'selection':Ee['serializeRangeWithSheet'](_0x17d0b1,_0x3ee43c[_0xe61fc(0x2ec)])}};this[_0xe61fc(0x3c1)]['send'](_0x3da84b,this[_0xe61fc(0x2c0)]);},rt)),(this[_0x49b5c9(0x2c0)]=_0x5462ce,this['_session']=_0x5e4188,this[_0x49b5c9(0x2f4)]=_0x16e366,this[_0x49b5c9(0x390)]=_0x460ad3,this[_0x49b5c9(0x38c)]=_0x457a4c,this[_0x49b5c9(0x2d9)]=_0x42ed7d,this[_0x49b5c9(0x2c3)]=_0x1c0dd9,this[_0x49b5c9(0x428)]=_0x2eda7d);}get[_0x5adf7c(0x3db)](){const _0x48e69e=_0x5adf7c;return this[_0x48e69e(0x293)][_0x48e69e(0x38b)]();}get['roomMembers'](){const _0x57bd14=_0x5adf7c;return this[_0x57bd14(0x21d)][_0x57bd14(0x38b)]();}['dispose'](){const _0x4faea7=_0x5adf7c;super[_0x4faea7(0x320)](),this[_0x4faea7(0x293)][_0x4faea7(0x2e3)](new Map()),this[_0x4faea7(0x293)]['complete'](),this['_roomMembers$']['next']([]),this[_0x4faea7(0x21d)]['complete']();}[_0x5adf7c(0x25c)](){const _0x402588=_0x5adf7c;this['_init']||(this[_0x402588(0x36f)]=!0x0,this[_0x402588(0x3c1)][_0x402588(0x1be)][_0x402588(0x2c4)](d[_0x402588(0x310)](this[_0x402588(0x311)]))[_0x402588(0x2e0)](_0x2435ca=>{const _0x272608=_0x402588;_0x2435ca===u[_0x272608(0x400)][_0x272608(0x24a)]?this[_0x272608(0x24c)]():this['_toggleOffline']();}),this[_0x402588(0x3c1)][_0x402588(0x1fa)]['pipe'](d[_0x402588(0x310)](this[_0x402588(0x311)]))[_0x402588(0x2e0)](_0xc3344e=>{const _0x550767=_0x402588,_0xce0a31=_0xc3344e[_0x550767(0x1f2)];_0xce0a31===m['CollaborationEvent'][_0x550767(0x210)]&&this['_onCursorUpdate'](_0xc3344e),_0xce0a31===m[_0x550767(0x396)]['USERS_LEAVE']&&this['_onCursorDelete'](_0xc3344e);}),this['_onRefRangeChange'](),this['disposeWithMe'](this['_commandService'][_0x402588(0x24d)](_0x1137bd=>{const _0x6f6818=_0x402588;if(this['_online']&&_0x1137bd['id']===g[_0x6f6818(0x3ee)]['id']&&_0x1137bd['params'][_0x6f6818(0x1b3)]===this[_0x6f6818(0x2c0)]){const _0x95769=_0x1137bd[_0x6f6818(0x2f5)];this[_0x6f6818(0x3dc)](_0x95769[_0x6f6818(0x3cf)],_0x95769['selections'][0x0]);}})));}['_onCursorUpdate'](_0x1a3813){const _0x160633=_0x5adf7c;var _0x4e0d2e,_0x3fa782;const {memberID:_0x4f1ec7,selection:_0x1815ec}=_0x1a3813[_0x160633(0x260)],{sheetName:_0x280bac,range:_0x58c670}=Ee[_0x160633(0x2b4)](_0x1815ec),_0x3555e1={'name':(_0x3fa782=(_0x4e0d2e=this[_0x160633(0x38c)][_0x160633(0x2d3)](this[_0x160633(0x2c0)],_0x4f1ec7))==null?void 0x0:_0x4e0d2e[_0x160633(0x425)])!=null?_0x3fa782:_0x160633(0x35b),'range':this[_0x160633(0x3a2)](_0x280bac,_0x58c670),'sheetID':_0x280bac,'color':this[_0x160633(0x390)]['assignAColorForMemberID'](_0x4f1ec7),'selection':_0x1815ec},_0x123430=this[_0x160633(0x3db)];_0x123430[_0x160633(0x34d)](_0x4f1ec7,_0x3555e1),this[_0x160633(0x293)][_0x160633(0x2e3)](_0x123430);}[_0x5adf7c(0x1e4)](_0x4db045){const _0x3a5312=_0x5adf7c,{memberID:_0x2a8a1b}=_0x4db045[_0x3a5312(0x260)],_0x153c0e=this['cursorInfo'];_0x153c0e['delete'](_0x2a8a1b),this[_0x3a5312(0x293)][_0x3a5312(0x2e3)](_0x153c0e);}['_getMergeRange'](_0x107e8d,_0x4c2880){const _0x5168ad=_0x5adf7c;var _0x25bad2,_0x10df27;const _0xaf4370=(_0x10df27=(_0x25bad2=this[_0x5168ad(0x2d9)]['getUniverSheetInstance'](this[_0x5168ad(0x2c0)]))==null?void 0x0:_0x25bad2[_0x5168ad(0x1bc)](_0x107e8d))==null?void 0x0:_0x10df27[_0x5168ad(0x1ff)]();return(_0xaf4370==null?void 0x0:_0xaf4370['find'](_0x7ce4dd=>a[_0x5168ad(0x214)]['contains'](_0x7ce4dd,_0x4c2880)))||_0x4c2880;}['_onRefRangeChange'](){const _0x4d06f6=_0x5adf7c,_0x513f64=new a[(_0x4d06f6(0x2c2))](),_0x50891f=ot(),_0x29f3b3=()=>{const _0x25e66a=_0x4d06f6;_0x513f64[_0x25e66a(0x320)]();const _0xab33d7=(_0x2bee7c,_0x19223b,_0x17a825,_0x114f69)=>{const _0x55dcfa=_0x25e66a;let _0x4911b4=[];switch(_0x2bee7c['id']){case g[_0x55dcfa(0x32e)][_0x55dcfa(0x42e)]:{_0x4911b4=g[_0x55dcfa(0x358)](_0x2bee7c,_0x114f69);break;}case g[_0x55dcfa(0x32e)]['DeleteRangeMoveUpCommandId']:{_0x4911b4=g[_0x55dcfa(0x22b)](_0x2bee7c,_0x114f69);break;}case g[_0x55dcfa(0x32e)][_0x55dcfa(0x285)]:{_0x4911b4=g[_0x55dcfa(0x211)](_0x2bee7c,_0x114f69);break;}case g[_0x55dcfa(0x32e)][_0x55dcfa(0x1c6)]:{_0x4911b4=g[_0x55dcfa(0x2e1)](_0x2bee7c,_0x114f69);break;}case g[_0x55dcfa(0x32e)][_0x55dcfa(0x1d4)]:{_0x4911b4=g['handleInsertRangeMoveRight'](_0x2bee7c,_0x114f69);break;}case g[_0x55dcfa(0x32e)]['InsertRowCommandId']:{_0x4911b4=g[_0x55dcfa(0x25d)](_0x2bee7c,_0x114f69);break;}case g[_0x55dcfa(0x32e)][_0x55dcfa(0x3b6)]:{_0x4911b4=g['handleMoveRange'](_0x2bee7c,_0x114f69);break;}case g[_0x55dcfa(0x32e)][_0x55dcfa(0x389)]:{_0x4911b4=g[_0x55dcfa(0x2f3)](_0x2bee7c,_0x114f69);break;}case g[_0x55dcfa(0x32e)][_0x55dcfa(0x30b)]:{_0x4911b4=g[_0x55dcfa(0x213)](_0x2bee7c,_0x114f69);break;}}const _0x46eee5=g[_0x55dcfa(0x235)](_0x4911b4,_0x114f69),_0x43acd4=this['cursorInfo']['get'](_0x19223b);if(_0x43acd4&&_0x46eee5){const _0x32abd7={..._0x43acd4,'range':_0x46eee5};this['cursorInfo'][_0x55dcfa(0x34d)](_0x19223b,_0x32abd7),_0x50891f(()=>{const _0x441624=_0x55dcfa,_0x4fea83=this[_0x441624(0x428)][_0x441624(0x1dd)](_0x46eee5,_0x2c93a2=>(_0x4fea83[_0x441624(0x320)](),_0xab33d7(_0x2c93a2,_0x19223b,_0x17a825,_0x46eee5)));_0x513f64[_0x441624(0x370)](_0x4fea83);});}return{'redos':[],'undos':[]};};this['cursorInfo']['forEach']((_0x232462,_0x5947b2)=>{const _0x2db9f5=_0x25e66a,{range:_0x1b25c3,sheetID:_0x5311c2}=_0x232462,_0xbf118=this[_0x2db9f5(0x428)][_0x2db9f5(0x1dd)](_0x1b25c3,_0x53a6f1=>(_0xbf118[_0x2db9f5(0x320)](),_0xab33d7(_0x53a6f1,_0x5947b2,_0x5311c2,_0x1b25c3)));_0x513f64[_0x2db9f5(0x370)](_0xbf118);});};this[_0x4d06f6(0x238)](a[_0x4d06f6(0x2da)](this[_0x4d06f6(0x293)][_0x4d06f6(0x2e0)](()=>{_0x29f3b3();})));}[_0x5adf7c(0x24c)](){const _0x4b9315=_0x5adf7c;var _0xfe632d,_0x31e80d;if(this[_0x4b9315(0x240)]=!0x0,((_0xfe632d=this[_0x4b9315(0x2d9)][_0x4b9315(0x26d)]())==null?void 0x0:_0xfe632d[_0x4b9315(0x3fa)]())!==this[_0x4b9315(0x2c0)])return;const _0x389064=(_0x31e80d=this[_0x4b9315(0x2f4)][_0x4b9315(0x229)](g['SheetsSelectionsService'])['getCurrentSelections']())==null?void 0x0:_0x31e80d[0x0],_0x558d33=this[_0x4b9315(0x2d9)][_0x4b9315(0x228)](a[_0x4b9315(0x2de)][_0x4b9315(0x274)])[_0x4b9315(0x365)]();_0x389064&&_0x558d33&&this[_0x4b9315(0x3dc)](_0x558d33[_0x4b9315(0x28e)](),_0x389064);}[_0x5adf7c(0x2b1)](){const _0xb471c4=_0x5adf7c;this[_0xb471c4(0x240)]=!0x1;}};Se=it([w(0x2,a['Inject'](a[_0x5adf7c(0x31e)])),w(0x3,a[_0x5adf7c(0x43b)](me)),w(0x4,a[_0x5adf7c(0x43b)](u[_0x5adf7c(0x29c)])),w(0x5,a[_0x5adf7c(0x283)]),w(0x6,a[_0x5adf7c(0x322)]),w(0x7,a[_0x5adf7c(0x43b)](g['RefRangeService']))],Se);var at=Object['getOwnPropertyDescriptor'],ct=(_0x293929,_0x3b44a7,_0x286c56,_0x82cf69)=>{for(var _0x5dba0b=_0x82cf69>0x1?void 0x0:_0x82cf69?at(_0x3b44a7,_0x286c56):_0x3b44a7,_0x2a818a=_0x293929['length']-0x1,_0x29c29d;_0x2a818a>=0x0;_0x2a818a--)(_0x29c29d=_0x293929[_0x2a818a])&&(_0x5dba0b=_0x29c29d(_0x5dba0b)||_0x5dba0b);return _0x5dba0b;},ie=(_0x4e0613,_0x228979)=>(_0x3a3dd8,_0x1a6c86)=>_0x228979(_0x3a3dd8,_0x1a6c86,_0x4e0613);function _0x1625(_0x35d182,_0x20a603){const _0x349178=_0x3491();return _0x1625=function(_0x162561,_0x197653){_0x162561=_0x162561-0x1ae;let _0x3d049f=_0x349178[_0x162561];return _0x3d049f;},_0x1625(_0x35d182,_0x20a603);}let x=class extends a[_0x5adf7c(0x434)]{constructor(_0x124e43,_0x2f2fda,_0x4454fd){const _0x470886=_0x5adf7c;super(),h(this,_0x470886(0x313),new Map()),h(this,'_entityInit$',new d[(_0x470886(0x3c6))]()),(this[_0x470886(0x2d9)]=_0x124e43,this[_0x470886(0x2f4)]=_0x2f2fda,this[_0x470886(0x42b)]=_0x4454fd,this[_0x470886(0x36f)]());}['dispose'](){const _0x2813ae=_0x5adf7c;super[_0x2813ae(0x320)](),this['_entityInit$'][_0x2813ae(0x3ec)](),this[_0x2813ae(0x313)][_0x2813ae(0x1fb)](_0x155ead=>_0x155ead[_0x2813ae(0x320)]());}[_0x5adf7c(0x2bc)](_0x3e9039){const _0x1b3c8e=_0x5adf7c;return this[_0x1b3c8e(0x313)][_0x1b3c8e(0x2fd)](_0x3e9039)?this[_0x1b3c8e(0x313)][_0x1b3c8e(0x229)](_0x3e9039)[_0x1b3c8e(0x3e6)]:this[_0x1b3c8e(0x3a8)]['pipe'](d['filter'](_0x237f2c=>_0x237f2c['unitID']===_0x3e9039),d['switchMap'](_0x7b5ac7=>_0x7b5ac7[_0x1b3c8e(0x3e6)]));}[_0x5adf7c(0x36f)](){const _0x27b47f=_0x5adf7c;this[_0x27b47f(0x2d9)]['getTypeOfUnitAdded$'](a['UniverInstanceType']['UNIVER_SHEET'])['pipe'](d[_0x27b47f(0x310)](this[_0x27b47f(0x311)]))[_0x27b47f(0x2e0)](async _0x5dbdf7=>{const _0x15a0a4=_0x27b47f,_0x2702e8=_0x5dbdf7['getUnitId'](),_0x39d271=await this[_0x15a0a4(0x403)](_0x2702e8);this[_0x15a0a4(0x3a8)]['next'](_0x39d271),this[_0x15a0a4(0x313)][_0x15a0a4(0x34d)](_0x2702e8,_0x39d271);}),this[_0x27b47f(0x2d9)][_0x27b47f(0x392)](a[_0x27b47f(0x2de)][_0x27b47f(0x413)])[_0x27b47f(0x2c4)](d['takeUntil'](this[_0x27b47f(0x311)]))[_0x27b47f(0x2c4)](d[_0x27b47f(0x345)](_0x47c655=>!_0x47c655['getUnitId']()['startsWith']('__')))['subscribe'](async _0x396b6d=>{const _0x13ef5d=_0x27b47f,_0x5c02e1=_0x396b6d['getUnitId'](),_0x52b953=await this[_0x13ef5d(0x329)](_0x5c02e1);this['_entityInit$']['next'](_0x52b953),this[_0x13ef5d(0x313)]['set'](_0x5c02e1,_0x52b953);}),d[_0x27b47f(0x289)](this[_0x27b47f(0x2d9)][_0x27b47f(0x1b6)](a[_0x27b47f(0x2de)][_0x27b47f(0x413)]),this[_0x27b47f(0x2d9)][_0x27b47f(0x1b6)](a['UniverInstanceType'][_0x27b47f(0x274)]))[_0x27b47f(0x2c4)](d[_0x27b47f(0x310)](this['dispose$']))['subscribe'](_0x30e81c=>{const _0xb88442=_0x27b47f,_0x587de4=_0x30e81c[_0xb88442(0x3fa)](),_0x51ec19=this[_0xb88442(0x313)][_0xb88442(0x229)](_0x587de4);_0x51ec19&&(_0x51ec19[_0xb88442(0x320)](),this[_0xb88442(0x313)][_0xb88442(0x26e)](_0x587de4));});}async['_startSheetCollabCursor'](_0x3fd27c){const _0x1ddc62=_0x5adf7c,_0x56e370=await this['_collabSessionService'][_0x1ddc62(0x323)](_0x3fd27c),_0x294049=this[_0x1ddc62(0x2f4)][_0x1ddc62(0x255)](Se,_0x3fd27c,_0x56e370);return _0x294049['init'](),_0x294049;}async[_0x5adf7c(0x329)](_0x34e1fa){const _0x5869fb=_0x5adf7c,_0x43d3d9=await this['_collabSessionService'][_0x5869fb(0x323)](_0x34e1fa),_0x5d7611=this[_0x5869fb(0x2f4)][_0x5869fb(0x255)](fe,_0x34e1fa,_0x43d3d9);return _0x5d7611['init'](),_0x5d7611;}};x=ct([ie(0x0,a[_0x5adf7c(0x283)]),ie(0x1,a[_0x5adf7c(0x43b)](a[_0x5adf7c(0x31e)])),ie(0x2,a['Inject'](u['CollaborationSessionService']))],x);const K=0x14,Re=0xc8,ne=0x4,lt=0x5;function _t(_0x3fe77e,_0xe58053){const _0x4ec033=_0x5adf7c;let {radius:_0xeb567,width:_0x155e42,height:_0xcb0ee6}=_0xe58053;_0xeb567=_0xeb567!=null?_0xeb567:0x0,_0x155e42=_0x155e42!=null?_0x155e42:0x1e,_0xcb0ee6=_0xcb0ee6!=null?_0xcb0ee6:0x1e;let _0x14bac5=0x0,_0x52febb=0x0,_0x3bca4f=0x0;_0x14bac5=_0x52febb=_0x3bca4f=Math[_0x4ec033(0x2df)](_0xeb567,_0x155e42/0x2,_0xcb0ee6/0x2),_0x3fe77e[_0x4ec033(0x3b0)](),_0x3fe77e['moveTo'](_0x14bac5,0x0),_0x3fe77e[_0x4ec033(0x3d9)](_0x155e42-_0x52febb,0x0),_0x3fe77e[_0x4ec033(0x278)](_0x155e42-_0x52febb,_0x52febb,_0x52febb,Math['PI']*0x3/0x2,0x0,!0x1),_0x3fe77e[_0x4ec033(0x3d9)](_0x155e42,_0xcb0ee6-_0x3bca4f),_0x3fe77e[_0x4ec033(0x278)](_0x155e42-_0x3bca4f,_0xcb0ee6-_0x3bca4f,_0x3bca4f,0x0,Math['PI']/0x2,!0x1),_0x3fe77e[_0x4ec033(0x3d9)](0x0,_0xcb0ee6),_0x3fe77e['lineTo'](0x0,_0x14bac5),_0x3fe77e[_0x4ec033(0x278)](_0x14bac5,_0x14bac5,_0x14bac5,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x3fe77e[_0x4ec033(0x3e0)](),_0xe58053[_0x4ec033(0x316)]&&(_0x3fe77e['save'](),_0x3fe77e[_0x4ec033(0x43a)]=_0xe58053[_0x4ec033(0x316)],_0xe58053['fillRule']===_0x4ec033(0x252)?_0x3fe77e[_0x4ec033(0x316)](_0x4ec033(0x252)):_0x3fe77e[_0x4ec033(0x316)](),_0x3fe77e['restore']());}class ee extends p[_0x5adf7c(0x2eb)]{constructor(_0x115cd5,_0x5cde7d){const _0x52001a=_0x5adf7c;super(_0x115cd5,_0x5cde7d),h(this,_0x52001a(0x36e)),h(this,_0x52001a(0x1ce)),(this[_0x52001a(0x36e)]=_0x5cde7d==null?void 0x0:_0x5cde7d[_0x52001a(0x36e)],this[_0x52001a(0x1ce)]=_0x5cde7d==null?void 0x0:_0x5cde7d[_0x52001a(0x1ce)]);}static['drawWith'](_0x2c0963,_0x260e81){const _0x1690fd=_0x5adf7c,{text:_0x227ef1,color:_0x2c6dd2}=_0x260e81;_0x2c0963[_0x1690fd(0x279)](),_0x2c0963[_0x1690fd(0x339)]=_0x1690fd(0x20d);const _0x172636=_0x2c0963[_0x1690fd(0x27c)](_0x227ef1)[_0x1690fd(0x363)],_0x1cb436=Math['min'](_0x172636+0x2*ne,Re);_t(_0x2c0963,{'height':K,'radius':0x4,'width':_0x1cb436,'fill':_0x2c6dd2}),_0x2c0963['fillStyle']=_0x1690fd(0x2e6);const _0x541cf2=ne,_0x4e7505=K-lt,_0x2c0d3d=Re-0x2*ne;if(_0x172636>_0x2c0d3d){let _0x459681='',_0x3557dd=0x0;for(const _0x4b6ee9 of _0x227ef1){const _0xeb43e8=_0x2c0963[_0x1690fd(0x27c)](_0x4b6ee9)[_0x1690fd(0x363)];if(_0x3557dd+_0xeb43e8<=_0x2c0d3d-_0x2c0963[_0x1690fd(0x27c)](_0x1690fd(0x232))['width'])_0x459681+=_0x4b6ee9,_0x3557dd+=_0xeb43e8;else{_0x459681+='...';break;}}_0x2c0963[_0x1690fd(0x42a)](_0x459681,_0x541cf2,_0x4e7505);}else _0x2c0963[_0x1690fd(0x42a)](_0x227ef1,_0x541cf2,_0x4e7505);_0x2c0963['restore']();}[_0x5adf7c(0x379)](_0x28eb39){const _0x14a825=_0x5adf7c;ee[_0x14a825(0x295)](_0x28eb39,this);}}const re=_0x5adf7c(0x32b),ht=_0x5adf7c(0x402),ut=_0x5adf7c(0x1ba),k=0x6,dt=1.5,oe=0x4,ft=1.5,St=_0x5adf7c(0x342);class De{constructor(_0x896c5c,_0x5ba323,_0x2ae39d,_0x32389b){const _0x44590c=_0x5adf7c;h(this,_0x44590c(0x215),[]),h(this,_0x44590c(0x27f),null),h(this,_0x44590c(0x409),null),h(this,_0x44590c(0x3fd),null),h(this,_0x44590c(0x3e3),null),h(this,_0x44590c(0x21a),null),(this[_0x44590c(0x2c9)]=_0x896c5c,this[_0x44590c(0x227)]=_0x5ba323,this['_docSkeleton']=_0x2ae39d,this['_document']=_0x32389b,this['_render']());}set[_0x5adf7c(0x307)](_0x2871ba){const _0x309e2d=_0x5adf7c;_0x2871ba?(this[_0x309e2d(0x3fd)]&&this[_0x309e2d(0x3fd)][_0x309e2d(0x1b1)](),this[_0x309e2d(0x409)]&&this[_0x309e2d(0x409)][_0x309e2d(0x3cb)]()):(this[_0x309e2d(0x3fd)]&&this['_anchorDot']['show'](),this[_0x309e2d(0x409)]&&this[_0x309e2d(0x409)]['hide']());}[_0x5adf7c(0x320)](){const _0x442157=_0x5adf7c;for(const _0xcf046d of this[_0x442157(0x215)])_0xcf046d[_0x442157(0x320)]();this[_0x442157(0x409)]&&this[_0x442157(0x409)]['dispose'](),this[_0x442157(0x3fd)]&&this[_0x442157(0x3fd)][_0x442157(0x320)](),this[_0x442157(0x27f)]&&this[_0x442157(0x27f)]['dispose'](),this['_eventUnsubscribe']&&this['_eventUnsubscribe']();}['_render'](){const _0x1a87b9=_0x5adf7c;var _0x135ada;const {_docSkeleton:_0x4c3067,_document:_0x345ae0}=this,{color:_0x28443c,name:_0x5def42,ranges:_0x393c4b}=this[_0x1a87b9(0x2c9)],_0x18e43e=_0x345ae0[_0x1a87b9(0x416)](),{docsLeft:_0x279003,docsTop:_0x24bead}=_0x18e43e,_0x54131f=new b[(_0x1a87b9(0x1ca))](_0x18e43e,_0x4c3067);for(const {startOffset:_0x1509aa,endOffset:_0x5e9efb,rangeType:_0x4f151a,segmentId:_0x5724d9,segmentPage:_0x5cc931,collapsed:_0x3b1028,isActive:_0x5a8051}of _0x393c4b){const _0x43c84a=_0x4c3067[_0x1a87b9(0x20e)](_0x1509aa,!0x0,_0x5724d9,_0x5cc931);let _0x5714cf=_0x4c3067[_0x1a87b9(0x20e)](_0x5e9efb,!0x0,_0x5724d9,_0x5cc931);if(_0x5714cf==null&&(_0x5714cf=_0x4c3067[_0x1a87b9(0x20e)](_0x5e9efb-0x1,!0x1,_0x5724d9,_0x5cc931)),_0x5a8051){const {contentBoxPointGroup:_0x48b452}=_0x54131f[_0x1a87b9(0x324)](_0x5714cf,_0x5714cf);if(_0x48b452['length']===0x0)continue;this[_0x1a87b9(0x3df)](_0x28443c,_0x48b452,_0x279003,_0x24bead,_0x5def42),this[_0x1a87b9(0x21a)]=this[_0x1a87b9(0x3ab)]();}if(_0x43c84a&&_0x5714cf){if(_0x4f151a===a[_0x1a87b9(0x21f)]['RECT']){const _0x275ca0=new b[(_0x1a87b9(0x3fc))](_0x18e43e,_0x4c3067),{pointGroup:_0x96b45e}=(_0x135ada=_0x275ca0[_0x1a87b9(0x324)](_0x43c84a,_0x5714cf))!=null?_0x135ada:{};if(_0x96b45e==null||_0x96b45e['length']===0x0)continue;this[_0x1a87b9(0x1ee)](_0x28443c,_0x96b45e,_0x279003,_0x24bead);}else{if(!_0x3b1028){const {borderBoxPointGroup:_0x12a188}=_0x54131f['getRangePointData'](_0x43c84a,_0x5714cf);if(_0x12a188['length']===0x0)continue;this[_0x1a87b9(0x2b3)](_0x28443c,_0x12a188,_0x279003,_0x24bead);}}}}}['_drawAnchor'](_0xaa7339,_0x301e2a,_0x1cbc7f,_0x3b274a,_0x1df4c3){const _0xf959c0=_0x5adf7c,_0x58e8c0=this[_0xf959c0(0x41e)](_0x301e2a),{left:_0x2a039d,top:_0x3d383a,height:_0x507b37}=_0x58e8c0,_0x54528d=this[_0xf959c0(0x3b7)](),_0x20091e=ft/_0x54528d,_0x3c36b2=new p['Rect'](re+a[_0xf959c0(0x331)][_0xf959c0(0x287)](k),{'left':_0x2a039d+_0x1cbc7f-_0x20091e,'top':_0x3d383a+_0x3b274a,'height':_0x507b37,'width':dt,'fill':_0xaa7339||p[_0xf959c0(0x1c8)](a[_0xf959c0(0x3a9)][_0xf959c0(0x3f2)],0x0),'strokeWidth':_0x20091e,'stroke':St,'evented':!0x0});this['_anchor']=_0x3c36b2,this['_scene'][_0xf959c0(0x26a)](_0x3c36b2,b[_0xf959c0(0x290)]);const _0x576667=new p[(_0xf959c0(0x303))](re+a['Tools'][_0xf959c0(0x287)](k),{'left':_0x2a039d+_0x1cbc7f-_0x20091e,'top':_0x3d383a+_0x3b274a-oe/0x2,'height':oe,'width':oe,'fill':_0xaa7339||p['getColor'](a[_0xf959c0(0x3a9)]['black'],0x0),'strokeWidth':0x0,'stroke':_0xaa7339||p[_0xf959c0(0x1c8)](a[_0xf959c0(0x3a9)]['black'],0x0),'evented':!0x1});this[_0xf959c0(0x3fd)]=_0x576667,this['_scene'][_0xf959c0(0x26a)](_0x576667,b[_0xf959c0(0x290)]);const _0x55c7f6=new ee(re+a[_0xf959c0(0x331)]['generateRandomId'](k),{'left':_0x2a039d+_0x1cbc7f-_0x20091e,'top':_0x3d383a+_0x3b274a-K,'text':_0x1df4c3,'color':_0xaa7339});this[_0xf959c0(0x409)]=_0x55c7f6,this[_0xf959c0(0x227)][_0xf959c0(0x26a)](_0x55c7f6,b['TEXT_RANGE_LAYER_INDEX']),this[_0xf959c0(0x307)]=!0x1;}['_handleHover'](){const _0x38a3c3=_0x5adf7c,_0x3936b6=this['_anchor'][_0x38a3c3(0x1f4)][_0x38a3c3(0x2e8)](()=>{const _0x52b736=_0x38a3c3;this[_0x52b736(0x307)]=!0x0;}),_0x2730f9=this[_0x38a3c3(0x27f)][_0x38a3c3(0x418)]['subscribeEvent'](()=>{const _0x413848=_0x38a3c3;this['_hideTimer']&&clearTimeout(this[_0x413848(0x3e3)]),this[_0x413848(0x3e3)]=setTimeout(()=>{const _0x316be0=_0x413848;this[_0x316be0(0x307)]=!0x1;},0x7d0);});return()=>{const _0x26427d=_0x38a3c3;_0x3936b6[_0x26427d(0x3a7)](),_0x2730f9[_0x26427d(0x3a7)]();};}['_drawTextRange'](_0x272319,_0x319e1c,_0x5c6fac,_0x211ef1){const _0x1edae2=_0x5adf7c,_0x4b5c52=new a[(_0x1edae2(0x422))](_0x272319)[_0x1edae2(0x34e)](0.2)['toRgbString'](),_0x2ee3d5=new p[(_0x1edae2(0x399))](ht+a[_0x1edae2(0x331)][_0x1edae2(0x287)](k),{'pointsGroup':_0x319e1c,'fill':_0x4b5c52||p[_0x1edae2(0x1c8)](a['COLORS'][_0x1edae2(0x3f2)],0.2),'left':_0x5c6fac,'top':_0x211ef1,'evented':!0x1,'debounceParentDirty':!0x1});this['_shapes'][_0x1edae2(0x23d)](_0x2ee3d5),this['_scene'][_0x1edae2(0x26a)](_0x2ee3d5,b[_0x1edae2(0x290)]);}[_0x5adf7c(0x1ee)](_0x4068e1,_0x1df181,_0xa1e348,_0x35e4de){const _0x11d55b=_0x5adf7c,_0x5e8447=new a[(_0x11d55b(0x422))](_0x4068e1)[_0x11d55b(0x34e)](0.2)[_0x11d55b(0x351)](),_0x4efbd1=new p[(_0x11d55b(0x399))](ut+a[_0x11d55b(0x331)]['generateRandomId'](k),{'pointsGroup':_0x1df181,'fill':_0x5e8447||p['getColor'](a['COLORS'][_0x11d55b(0x3f2)],0.2),'left':_0xa1e348,'top':_0x35e4de,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x11d55b(0x215)][_0x11d55b(0x23d)](_0x4efbd1),this[_0x11d55b(0x227)][_0x11d55b(0x26a)](_0x4efbd1,b[_0x11d55b(0x290)]);}['_getAnchorBounding'](_0x10d5d2){const _0x45c3e7=_0x10d5d2[0x0],_0x48ae8e=_0x45c3e7[0x0],_0x38f517=_0x45c3e7[0x2],{x:_0xf4ae4,y:_0x50b82f}=_0x48ae8e,{x:_0x32059c,y:_0x344047}=_0x38f517;return{'left':_0xf4ae4,'top':_0x50b82f,'width':_0x32059c-_0xf4ae4,'height':_0x344047-_0x50b82f};}[_0x5adf7c(0x3b7)](){const _0x582696=_0x5adf7c,{scaleX:_0x4d2c0e,scaleY:_0x523e2b}=this[_0x582696(0x227)]['getAncestorScale']();return Math[_0x582696(0x216)](_0x4d2c0e,_0x523e2b);}}var It=Object[_0x5adf7c(0x401)],vt=(_0x7f5da4,_0xf5c8ca,_0x4f7211,_0x4138db)=>{const _0xe376fa=_0x5adf7c;for(var _0x21a1c0=_0x4138db>0x1?void 0x0:_0x4138db?It(_0xf5c8ca,_0x4f7211):_0xf5c8ca,_0x57d7fa=_0x7f5da4[_0xe376fa(0x410)]-0x1,_0x543354;_0x57d7fa>=0x0;_0x57d7fa--)(_0x543354=_0x7f5da4[_0x57d7fa])&&(_0x21a1c0=_0x543354(_0x21a1c0)||_0x21a1c0);return _0x21a1c0;},W=(_0x2fa83b,_0xe71a35)=>(_0x5b8dba,_0x4a4b49)=>_0xe71a35(_0x5b8dba,_0x4a4b49,_0x2fa83b);let Ie=class extends a[_0x5adf7c(0x434)]{constructor(_0x2827fd,_0x33028f,_0x113b74,_0x4709a2,_0x2dab2d){const _0x2aaca4=_0x5adf7c;super(),h(this,_0x2aaca4(0x1cd),[]),h(this,_0x2aaca4(0x1f1),[]),(this[_0x2aaca4(0x2c7)]=_0x2827fd,this[_0x2aaca4(0x23b)]=_0x33028f,this['_collabCursorController']=_0x113b74,this['_commandService']=_0x4709a2,this[_0x2aaca4(0x3f9)]=_0x2dab2d,this['_init']());}[_0x5adf7c(0x36f)](){const _0x222ae2=_0x5adf7c,_0x3e8fd8=this['_context'][_0x222ae2(0x1b3)],_0x1dceaf=this['_docSkeletonManagerService'];this[_0x222ae2(0x238)](d[_0x222ae2(0x294)]([this[_0x222ae2(0x338)]['getCollabCursors$'](_0x3e8fd8),this[_0x222ae2(0x3f9)][_0x222ae2(0x42f)]])[_0x222ae2(0x2c4)]($[_0x222ae2(0x1c7)](([_0x2433c0,_0x8fb48b])=>({'skeleton':_0x1dceaf['getSkeleton'](),'cursors':[..._0x2433c0[_0x222ae2(0x31c)]()][_0x222ae2(0x437)](_0x4667cd=>({..._0x4667cd,'color':this[_0x222ae2(0x3f9)][_0x222ae2(0x2f6)](_0x4667cd[_0x222ae2(0x36e)])}))})))[_0x222ae2(0x2e0)](_0x3866d8=>{const _0x1992d7=_0x222ae2;if(this[_0x1992d7(0x41a)](),_0x3866d8){const {skeleton:_0x504286,cursors:_0x4f4396}=_0x3866d8;this[_0x1992d7(0x366)](_0x504286,_0x4f4396);}})),this[_0x222ae2(0x296)](),this['_initCommandExecutedListener']();}['_updateCollabCursors'](_0x303aad,_0x4aa909){const _0xde621e=_0x5adf7c,{scene:_0x18b844,mainComponent:_0x8b0b0a}=this[_0xde621e(0x2c7)],_0x42ce02=_0x4aa909[_0xde621e(0x1c7)](_0x1fdf5e=>new De(_0x1fdf5e,_0x18b844,_0x303aad,_0x8b0b0a));this['_cursorShapes']=_0x42ce02,this[_0xde621e(0x1f1)]=_0x4aa909;}[_0x5adf7c(0x309)](){const _0x2c39a7=_0x5adf7c;this[_0x2c39a7(0x41a)]();const {scene:_0x42d811,mainComponent:_0x45c25c}=this[_0x2c39a7(0x2c7)],_0xce2f62=this['_docSkeletonManagerService'][_0x2c39a7(0x1ef)](),_0x5577d1=this['_cursors'][_0x2c39a7(0x1c7)](_0x2b1238=>new De(_0x2b1238,_0x42d811,_0xce2f62,_0x45c25c));this[_0x2c39a7(0x1cd)]=_0x5577d1;}[_0x5adf7c(0x41a)](){const _0x4e2724=_0x5adf7c;this[_0x4e2724(0x1cd)][_0x4e2724(0x1fb)](_0x29febf=>_0x29febf[_0x4e2724(0x320)]()),this['_cursorShapes']=[];}[_0x5adf7c(0x3eb)](){const _0x25b940=_0x5adf7c,_0x18af28=[b[_0x25b940(0x21c)]['id']];this[_0x25b940(0x238)](this['_commandService'][_0x25b940(0x24d)](_0x1a031a=>{const _0x5658b7=_0x25b940;_0x18af28[_0x5658b7(0x2e2)](_0x1a031a['id'])&&_0x1a031a[_0x5658b7(0x2f5)][_0x5658b7(0x1b3)]===this[_0x5658b7(0x2c7)]['unitId']&&this[_0x5658b7(0x309)]();}));}[_0x5adf7c(0x296)](){const _0x5428e5=_0x5adf7c;this[_0x5428e5(0x238)](a[_0x5428e5(0x412)](this[_0x5428e5(0x2c7)][_0x5428e5(0x317)]['onTransformChange$'])[_0x5428e5(0x2c4)]($[_0x5428e5(0x345)](_0x3f92e6=>_0x3f92e6[_0x5428e5(0x3e8)]===p['TRANSFORM_CHANGE_OBSERVABLE_TYPE'][_0x5428e5(0x1f8)]),$[_0x5428e5(0x39a)](0x10))['subscribe'](()=>{const _0xa9d464=_0x5428e5;this[_0xa9d464(0x309)]();}));}};Ie=vt([W(0x1,a['Inject'](Y[_0x5adf7c(0x3bf)])),W(0x2,a['Inject'](x)),W(0x3,a[_0x5adf7c(0x322)]),W(0x4,a[_0x5adf7c(0x43b)](a[_0x5adf7c(0x32a)]))],Ie);const gt=0x1,mt=1.5;class Ae extends p[_0x5adf7c(0x2eb)]{constructor(_0x59eb2b,_0x2b0127){const _0x254266=_0x5adf7c;super(_0x59eb2b,_0x2b0127),h(this,_0x254266(0x218)),h(this,_0x254266(0x328),!0x1),h(this,'_range'),h(this,_0x254266(0x1f7),''),h(this,_0x254266(0x24e),_0x254266(0x2c6)),h(this,_0x254266(0x350)),(_0x2b0127&&this['setShapeProps'](_0x2b0127),this[_0x254266(0x1f4)][_0x254266(0x2e8)](()=>this['setShapeProps']({'hovered':!0x0})),this['onPointerLeave$']['subscribeEvent'](()=>this[_0x254266(0x315)]({'hovered':!0x1})));}['setShapeProps'](_0x5734fa){const _0x55421b=_0x5adf7c;var _0x393716,_0x306958,_0x546d46,_0x14e134,_0x415234,_0x32195f;this[_0x55421b(0x218)]=(_0x393716=_0x5734fa[_0x55421b(0x36e)])!=null?_0x393716:this[_0x55421b(0x218)],this[_0x55421b(0x328)]=(_0x306958=_0x5734fa[_0x55421b(0x37d)])!=null?_0x306958:this[_0x55421b(0x328)],this[_0x55421b(0x263)]=(_0x546d46=_0x5734fa[_0x55421b(0x2ec)])!=null?_0x546d46:this[_0x55421b(0x263)],this['_name']=(_0x14e134=_0x5734fa[_0x55421b(0x425)])!=null?_0x14e134:this[_0x55421b(0x1f7)],this[_0x55421b(0x24e)]=(_0x415234=_0x5734fa[_0x55421b(0x21b)])!=null?_0x415234:this[_0x55421b(0x24e)],this[_0x55421b(0x350)]=(_0x32195f=_0x5734fa[_0x55421b(0x3bc)])!=null?_0x32195f:this[_0x55421b(0x350)],this[_0x55421b(0x2d2)]({'width':_0x5734fa[_0x55421b(0x363)],'height':_0x5734fa[_0x55421b(0x277)]});}[_0x5adf7c(0x41d)](_0x59f181){const _0x552ed9=_0x5adf7c,{row:_0xb51f8a,column:_0x1f246d}=_0x59f181;if(_0xb51f8a>=this['_range'][_0x552ed9(0x244)]&&_0xb51f8a<=this[_0x552ed9(0x263)]['endRow']&&_0x1f246d>=this['_range'][_0x552ed9(0x33b)]&&_0x1f246d<=this[_0x552ed9(0x263)][_0x552ed9(0x415)]){this['setShapeProps']({'hovered':!0x0});return;}this[_0x552ed9(0x315)]({'hovered':!0x1});}[_0x5adf7c(0x266)](_0x1c3e55){return!0x1;}['_draw'](_0x26129a){const _0x361488=_0x5adf7c;p[_0x361488(0x303)][_0x361488(0x295)](_0x26129a,{'width':this[_0x361488(0x363)],'height':this['height'],'strokeWidth':mt,'stroke':this[_0x361488(0x218)],'evented':!0x1,'fill':this[_0x361488(0x350)]}),this[_0x361488(0x328)]&&(_0x26129a['save'](),_0x26129a[_0x361488(0x3bd)](0x1,0x0,0x0,0x1,this['width'],this['_labelPosition']==='bottom'?0x0:-0x14),ee[_0x361488(0x295)](_0x26129a,{'text':this[_0x361488(0x1f7)],'color':this[_0x361488(0x218)]}),_0x26129a[_0x361488(0x1e5)]());}}var Ct=Object[_0x5adf7c(0x401)],pt=(_0x284265,_0x42022f,_0xf06fd1,_0x12e7e7)=>{const _0xe48443=_0x5adf7c;for(var _0x26790a=_0x12e7e7>0x1?void 0x0:_0x12e7e7?Ct(_0x42022f,_0xf06fd1):_0x42022f,_0x57fce0=_0x284265[_0xe48443(0x410)]-0x1,_0x2d2dd7;_0x57fce0>=0x0;_0x57fce0--)(_0x2d2dd7=_0x284265[_0x57fce0])&&(_0x26790a=_0x2d2dd7(_0x26790a)||_0x26790a);return _0x26790a;},ae=(_0x1bada7,_0x9a1796)=>(_0x575c0c,_0xc55db6)=>_0x9a1796(_0x575c0c,_0xc55db6,_0x1bada7);const bt=0x1389;let ve=class extends a['RxDisposable']{constructor(_0x541881,_0x4c1b16,_0x4777d4,_0x33e55c){const _0x5ded3d=_0x5adf7c;super(),h(this,'_cursors',new Set()),h(this,_0x5ded3d(0x411),null),(this[_0x5ded3d(0x2c7)]=_0x541881,this['_sheetSkeletonManagerService']=_0x4c1b16,this[_0x5ded3d(0x338)]=_0x4777d4,this['_themeService']=_0x33e55c,this[_0x5ded3d(0x36f)]());}[_0x5adf7c(0x36f)](){const _0x29b79b=_0x5adf7c;this[_0x29b79b(0x23f)][_0x29b79b(0x39e)][_0x29b79b(0x2c4)]($[_0x29b79b(0x310)](this[_0x29b79b(0x311)]),$['switchMap'](_0x2f0528=>{const _0x550b4f=_0x29b79b;if(_0x2f0528){const _0x4ef563=_0x2f0528[_0x550b4f(0x337)];return d[_0x550b4f(0x294)](this['_collabCursorController']['getCollabCursors$'](this['_context'][_0x550b4f(0x1b3)]),this[_0x550b4f(0x3f9)][_0x550b4f(0x42f)])[_0x550b4f(0x2c4)]($[_0x550b4f(0x1c7)](([_0x1f3b30,_0x591b19])=>{const _0x528437=_0x550b4f,_0x5b950e=new Map();return _0x1f3b30[_0x528437(0x1fb)]((_0xeda27b,_0x5bd690)=>{const _0x1e56c4=_0x528437;if(_0xeda27b[_0x1e56c4(0x29d)]===_0x4ef563){const _0x51c9c6={..._0xeda27b};_0x51c9c6[_0x1e56c4(0x36e)]=this[_0x1e56c4(0x3f9)][_0x1e56c4(0x2f6)](_0xeda27b[_0x1e56c4(0x36e)]),_0x5b950e['set'](_0x5bd690,_0x51c9c6);}}),{'skeleton':_0x2f0528,'cursors':_0x5b950e};}));}return d['of']({'skeleton':null,'cursors':new Map()});}))['subscribe'](({skeleton:_0x521e1c,cursors:_0x230135})=>{const _0x5a593e=_0x29b79b;this['_removeCollabCursors'](),_0x521e1c&&this[_0x5a593e(0x366)](_0x521e1c,_0x230135);}),this[_0x29b79b(0x23f)][_0x29b79b(0x39e)]['subscribe'](_0x270bd2=>{const _0x5deebc=_0x29b79b;if(_0x270bd2==null)return;const {skeleton:_0x5df800}=_0x270bd2,{scene:_0x367d43}=this[_0x5deebc(0x2c7)];_0x367d43[_0x5deebc(0x1b7)][_0x5deebc(0x2e8)](a[_0x5deebc(0x375)](_0x1f5c33=>{const _0x24b0c7=_0x5deebc;var _0x1255dc,_0x412d1d;const {offsetX:_0x386386,offsetY:_0x407d86}=_0x1f5c33,{x:_0x10d130,y:_0x3e8156}=_0x367d43[_0x24b0c7(0x2d1)](p[_0x24b0c7(0x257)][_0x24b0c7(0x378)]([_0x386386,_0x407d86])),{scaleX:_0x53c78f,scaleY:_0xbf30fe}=_0x367d43[_0x24b0c7(0x3f7)](),_0x30d47d=_0x367d43[_0x24b0c7(0x291)](p[_0x24b0c7(0x1fd)][_0x24b0c7(0x2ff)]),_0x42f99c=_0x367d43[_0x24b0c7(0x3f4)](p[_0x24b0c7(0x257)][_0x24b0c7(0x378)]([_0x10d130,_0x3e8156]),_0x30d47d),_0x59fd16=_0x5df800['getCellPositionByOffset'](_0x386386,_0x407d86,_0x53c78f,_0xbf30fe,_0x42f99c);((_0x1255dc=this[_0x24b0c7(0x411)])==null?void 0x0:_0x1255dc[_0x24b0c7(0x3d1)])===_0x59fd16[_0x24b0c7(0x3d1)]&&((_0x412d1d=this[_0x24b0c7(0x411)])==null?void 0x0:_0x412d1d[_0x24b0c7(0x40e)])===_0x59fd16[_0x24b0c7(0x40e)]||this['_cursors'][_0x24b0c7(0x1fb)](_0x24447c=>{const _0x1842da=_0x24b0c7;_0x24447c[_0x1842da(0x41d)](_0x59fd16);});},0x64));});}['_updateCollabCursors'](_0x1dabdd,_0x40e5bc){const _0x1ed83c=_0x5adf7c;var _0x309947;const _0x40e210=(_0x309947=this[_0x1ed83c(0x23f)][_0x1ed83c(0x224)]())==null?void 0x0:_0x309947[_0x1ed83c(0x391)];if(!_0x40e210)return;const _0x19f582=this['_getSheetObject']();if(!_0x19f582)return;this['_cursors'][_0x1ed83c(0x1fb)](_0xfa4b08=>{const _0x46cd86=_0x1ed83c;_0xfa4b08[_0x46cd86(0x427)]();});const {scene:_0x2d8584}=_0x19f582,_0x28f148=Et(Array['from'](_0x40e5bc['values']()))['map'](_0x399d86=>{const _0x2e1ecb=_0x1ed83c,{color:_0x3ff8cd,range:_0x298998,name:_0x380110,selection:_0x5e4e70,sheetID:_0x2080ef}=_0x399d86,{startColumn:_0x5ef0b6,startRow:_0x5da03d,endColumn:_0x20852b,endRow:_0x1da0ec}=_0x298998,_0x2a7592=X['getCoordByCell'](_0x5da03d,_0x5ef0b6,_0x2d8584,_0x40e210),_0x303efb=X[_0x2e1ecb(0x1d2)](_0x1da0ec,_0x20852b,_0x2d8584,_0x40e210),{columnHeaderHeightAndMarginTop:_0x3cf2c8}=_0x40e210,{startX:_0x1afb49,startY:_0x401f32}=_0x2a7592,{endX:_0x302392,endY:_0x11d78e}=_0x303efb,_0x2aa7ef=_0x302392-_0x1afb49,_0x5bc1aa=_0x11d78e-_0x401f32,_0x312438={'labelPosition':_0x401f32-_0x3cf2c8>=K?_0x2e1ecb(0x2c6):_0x2e1ecb(0x385),'sheetID':_0x2080ef,'range':_0x298998,'color':_0x3ff8cd,'name':_0x380110,'selection':_0x5e4e70,'left':_0x1afb49,'top':_0x401f32,'width':_0x2aa7ef,'height':_0x5bc1aa,'evented':!0x1,'zIndex':bt};return new Ae(_0x380110,_0x312438);});_0x2d8584[_0x1ed83c(0x1d7)](_0x28f148,gt),this['_cursors']=new Set(_0x28f148);}[_0x5adf7c(0x41a)](){const _0x13c923=_0x5adf7c;var _0x9563cc;(_0x9563cc=this['_cursors'])==null||_0x9563cc[_0x13c923(0x1fb)](_0x5234ec=>_0x5234ec['dispose']());}[_0x5adf7c(0x3c8)](){const _0x388b83=_0x5adf7c;return X[_0x388b83(0x360)](this[_0x388b83(0x2c7)][_0x388b83(0x21e)],this[_0x388b83(0x2c7)]);}};ve=pt([ae(0x1,a[_0x5adf7c(0x43b)](X['SheetSkeletonManagerService'])),ae(0x2,a['Inject'](x)),ae(0x3,a[_0x5adf7c(0x43b)](a['ThemeService']))],ve);function Et(_0x5046a2){const _0x317203=_0x5adf7c,_0x50308c=new Map();return _0x5046a2[_0x317203(0x1fb)](_0x1183ee=>{const _0x1692e2=_0x317203;if(_0x50308c['has'](_0x1183ee[_0x1692e2(0x356)])){const _0x3deebf=_0x50308c[_0x1692e2(0x229)](_0x1183ee[_0x1692e2(0x356)]);_0x3deebf[_0x1692e2(0x425)]+=',\x20'+_0x1183ee[_0x1692e2(0x425)];}else _0x50308c['set'](_0x1183ee['selection'],_0x1183ee);}),Array['from'](_0x50308c[_0x317203(0x31c)]());}var E=function(){const _0x5b3805=_0x5adf7c;return E=Object[_0x5b3805(0x23e)]||function(_0xfca511){const _0x24cf50=_0x5b3805;for(var _0x2d6aea,_0x4724a7=0x1,_0xa2f19a=arguments['length'];_0x4724a7<_0xa2f19a;_0x4724a7++){_0x2d6aea=arguments[_0x4724a7];for(var _0x1d313e in _0x2d6aea)Object[_0x24cf50(0x33a)][_0x24cf50(0x30e)][_0x24cf50(0x205)](_0x2d6aea,_0x1d313e)&&(_0xfca511[_0x1d313e]=_0x2d6aea[_0x1d313e]);}return _0xfca511;},E[_0x5b3805(0x1d9)](this,arguments);},Tt=function(_0x5a0e20,_0x188d2e){const _0x4be5da=_0x5adf7c;var _0x51fb99={};for(var _0x4c777b in _0x5a0e20)Object[_0x4be5da(0x33a)][_0x4be5da(0x30e)]['call'](_0x5a0e20,_0x4c777b)&&_0x188d2e[_0x4be5da(0x1e2)](_0x4c777b)<0x0&&(_0x51fb99[_0x4c777b]=_0x5a0e20[_0x4c777b]);if(_0x5a0e20!=null&&typeof Object[_0x4be5da(0x29f)]==_0x4be5da(0x25b)){for(var _0x3684c6=0x0,_0x4c777b=Object['getOwnPropertySymbols'](_0x5a0e20);_0x3684c6<_0x4c777b[_0x4be5da(0x410)];_0x3684c6++)_0x188d2e[_0x4be5da(0x1e2)](_0x4c777b[_0x3684c6])<0x0&&Object[_0x4be5da(0x33a)]['propertyIsEnumerable'][_0x4be5da(0x205)](_0x5a0e20,_0x4c777b[_0x3684c6])&&(_0x51fb99[_0x4c777b[_0x3684c6]]=_0x5a0e20[_0x4c777b[_0x3684c6]]);}return _0x51fb99;},pe=M[_0x5adf7c(0x3d0)](function(_0x3b031a,_0x5d346e){const _0x23c83c=_0x5adf7c;var _0x2542de=_0x3b031a['icon'],_0xd704cd=_0x3b031a['id'],_0x4d7bdf=_0x3b031a[_0x23c83c(0x286)],_0x2318a3=_0x3b031a['extend'],_0x2a810e=Tt(_0x3b031a,[_0x23c83c(0x203),'id','className',_0x23c83c(0x2b9)]),_0x14549b=_0x23c83c(0x2a0)['concat'](_0xd704cd,'\x20')[_0x23c83c(0x38a)](_0x4d7bdf||'')['trim'](),_0x1b133c=M[_0x23c83c(0x2d8)]('_'[_0x23c83c(0x38a)](Dt()));return we(_0x2542de,''[_0x23c83c(0x38a)](_0xd704cd),{'defIds':_0x2542de[_0x23c83c(0x327)],'idSuffix':_0x1b133c[_0x23c83c(0x1b5)]},E({'ref':_0x5d346e,'className':_0x14549b},_0x2a810e),_0x2318a3);});function we(_0x497781,_0x166687,_0x436c32,_0x48a709,_0x3f93d1){const _0x31fc7f=_0x5adf7c;return M[_0x31fc7f(0x1e6)](_0x497781[_0x31fc7f(0x2a8)],E(E({'key':_0x166687},Ot(_0x497781,_0x436c32,_0x3f93d1)),_0x48a709),(Rt(_0x497781,_0x436c32)['children']||[])['map'](function(_0xfe160a,_0x456bf9){const _0x12ca92=_0x31fc7f;return we(_0xfe160a,''[_0x12ca92(0x38a)](_0x166687,'-')['concat'](_0x497781['tag'],'-')[_0x12ca92(0x38a)](_0x456bf9),_0x436c32,void 0x0,_0x3f93d1);}));}function Ot(_0x530155,_0xbe91c4,_0x490d34){const _0x218ac1=_0x5adf7c;var _0x5595fc=E({},_0x530155[_0x218ac1(0x209)]);_0x490d34!=null&&_0x490d34[_0x218ac1(0x40c)]&&_0x5595fc[_0x218ac1(0x316)]===_0x218ac1(0x40c)&&(_0x5595fc[_0x218ac1(0x316)]=_0x490d34['colorChannel1']),_0x530155['tag']==='mask'&&_0x5595fc['id']&&(_0x5595fc['id']=_0x5595fc['id']+_0xbe91c4['idSuffix']),Object[_0x218ac1(0x222)](_0x5595fc)[_0x218ac1(0x1fb)](function(_0x48c4ec){const _0x79ca99=_0x218ac1;var _0x5c9a07=_0x48c4ec[0x0],_0x4e93aa=_0x48c4ec[0x1];_0x5c9a07===_0x79ca99(0x1ed)&&typeof _0x4e93aa==_0x79ca99(0x246)&&(_0x5595fc[_0x5c9a07]=_0x4e93aa[_0x79ca99(0x2cb)](/url\(#(.*)\)/,_0x79ca99(0x367)[_0x79ca99(0x38a)](_0xbe91c4['idSuffix'],')')));});var _0x540e75=_0xbe91c4[_0x218ac1(0x327)];return!_0x540e75||_0x540e75[_0x218ac1(0x410)]===0x0||(_0x530155[_0x218ac1(0x2a8)]==='use'&&_0x5595fc[_0x218ac1(0x23c)]&&(_0x5595fc['xlink:href']=_0x5595fc['xlink:href']+_0xbe91c4[_0x218ac1(0x26b)]),Object[_0x218ac1(0x222)](_0x5595fc)[_0x218ac1(0x1fb)](function(_0x18d951){const _0x44c289=_0x218ac1;var _0x2661fe=_0x18d951[0x0],_0x21574a=_0x18d951[0x1];typeof _0x21574a=='string'&&(_0x5595fc[_0x2661fe]=_0x21574a[_0x44c289(0x2cb)](/url\(#(.*)\)/,_0x44c289(0x367)[_0x44c289(0x38a)](_0xbe91c4[_0x44c289(0x26b)],')')));})),_0x5595fc;}function Rt(_0xdbda54,_0x5d9b11){const _0x1e8864=_0x5adf7c;var _0x3926a5,_0x28e440=_0x5d9b11[_0x1e8864(0x327)];return!_0x28e440||_0x28e440[_0x1e8864(0x410)]===0x0?_0xdbda54:_0xdbda54['tag']===_0x1e8864(0x2e5)&&(!((_0x3926a5=_0xdbda54[_0x1e8864(0x280)])===null||_0x3926a5===void 0x0)&&_0x3926a5[_0x1e8864(0x410)])?E(E({},_0xdbda54),{'children':_0xdbda54['children']['map'](function(_0x99c524){const _0x8fe999=_0x1e8864;return typeof _0x99c524[_0x8fe999(0x209)]['id']==_0x8fe999(0x246)&&_0x28e440&&_0x28e440[_0x8fe999(0x1e2)](_0x99c524['attrs']['id'])>-0x1?E(E({},_0x99c524),{'attrs':E(E({},_0x99c524[_0x8fe999(0x209)]),{'id':_0x99c524[_0x8fe999(0x209)]['id']+_0x5d9b11[_0x8fe999(0x26b)]})}):_0x99c524;})}):_0xdbda54;}function Dt(){const _0x205369=_0x5adf7c;return Math['random']()[_0x205369(0x1df)](0x24)[_0x205369(0x373)](0x2,0x8);}pe[_0x5adf7c(0x237)]=_0x5adf7c(0x2ac);var Ut={'tag':_0x5adf7c(0x29b),'attrs':{'fill':'none','viewBox':_0x5adf7c(0x1b0),'width':_0x5adf7c(0x431),'height':_0x5adf7c(0x431)},'children':[{'tag':'g','attrs':{'clipPath':_0x5adf7c(0x1e9)},'children':[{'tag':'path','attrs':{'stroke':'currentColor','d':_0x5adf7c(0x421),'strokeLinecap':_0x5adf7c(0x1db),'strokeLinejoin':'round','strokeWidth':1.2}}]},{'tag':_0x5adf7c(0x2e5),'attrs':{},'children':[{'tag':_0x5adf7c(0x292),'attrs':{'id':_0x5adf7c(0x1d0)},'children':[{'tag':_0x5adf7c(0x27d),'attrs':{'fill':_0x5adf7c(0x3cd),'d':_0x5adf7c(0x22f)}}]}]}],'defIds':[_0x5adf7c(0x1d0)]},ye=M['forwardRef'](function(_0xd3dfa8,_0x15692d){const _0x2a25d5=_0x5adf7c;return M[_0x2a25d5(0x1e6)](pe,Object[_0x2a25d5(0x23e)]({},_0xd3dfa8,{'id':_0x2a25d5(0x394),'ref':_0x15692d,'icon':Ut}));});ye[_0x5adf7c(0x237)]=_0x5adf7c(0x20c);function _0x3491(){const _0x191b03=['LOCAL_CACHE_INTERVAL','OTHER_CLIENTS_EDITING','_getMergeRange','_saveTaskMap','on-line-single_clip0_910_349','_localeService','CommandType','unsubscribe','_entityInit$','COLORS','BuiltInUIPart','_handleHover','collabStatus.fetchMiss','collaboration-client-ui.config','enableLocalCache','collabStatus.offline','beginPath','INVALID_ARGUMENT','ALREADY_EXISTS','Disposable','50gHsipV','_transformUndoRedoStack','MoveRangeCommandId','_getScale','_instanceService','collabCursorState$','invokeId','_scheduleClearOtherTimer','backgroundColor','transform','_send','DocSkeletonManagerService','isEditing','_session','INotificationService','CollaborationDataLoaderController','div','asObservable','Subject','currentColor','_getSheetObject','subunit','_setupSubUnitSync','show','collabStatus.conflict','#fff','ISnapshotServerService','subUnitId','forwardRef','column','_dataLoaderService','_updateURLWithCurrentState','CHANGESET_REVISION_CONFILICT','m2Prime','getDocRanges','Tooltip','addEventListener','lineTo','getCurrentRevOfUnit','cursorInfo','_updateLocalCursor','YUUMI_URL_COL_OUT_OF_RANGE','MessageType','_drawAnchor','closePath','_selfUnitIDs','key','_hideTimer','_initEvent','shareReplay','cursorInfo$','_beforeCloseService','type','Error','setItem','_initCommandExecutedListener','complete','updateOfflineData','SetSelectionsOperation','onRendered','8eQvJwD','CONNECTOR_DATA_TOO_LARGE','black','assignAColorForMemberID','getVpScrollXYInfoByPosToVp','some','runId','getAncestorScale','imageSourceType','_themeService','getUnitId','saveOfflineData','NodePositionConvertToRectRange','_anchorDot','FETCH_MISS','_ensureSubject','SessionStatus','getOwnPropertyDescriptor','collab-text-range-','_startSheetCollabCursor','REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY','getUndoRedoMutationParamsCache','_handleEvent','IRenderManagerService','session.connection-failed','_textBubble','_collabCursorState$','connectInjector','colorChannel1','split','row','INVITE_CODE_REQUIRED','length','_lastPointer','fromEventSubject','UNIVER_DOC','_handleLeaveEvent','endColumn','getOffsetConfig','parse','onPointerLeave$','CollaborationController','_removeCollabCursors','YUUMI_PROMPT_MAX_TOKENS_EXCEEDED','_scheduleHeartbeat','onMouseMove','_getAnchorBounding','DesktopCollaborationStatusDisplayController','OnLineSingle','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','ColorKit','transformMutationsWithChangeset','YUUMI_ALL_TABLES_IS_INVALID','name','permission.content','makeDirty','_refRangeService','SheetCollabCursorShape','fillText','_collabSessionService','getItem','mergeOverrideWithDependencies','DeleteRangeMoveLeftCommandId','currentTheme$','executionId','1em','/run/','_cachedData','RxDisposable','pushState','_clearOtherTimers','flatMap','_status$','size','fillStyle','Inject','yellow.400','permission.title','loadUnit','0\x200\x2016\x2016','hide','distinctUntilChanged','unitId','NOT_COLLAB','current','getTypeOfUnitDisposed$','onPointerMove$','USERS_LEAVE','UNRECOGNIZED','collab-rect-range-','Workbook','getSheetBySheetId','createSocket','sessionStatus$','disposeUnit','mutations','LOCAL_CACHE_INTERVAL_KEY','isActive','_initEntityListener','_logService','BrowserCollaborationSocketService','InsertRangeMoveDownCommandId','map','getColor','DependentOn','NodePositionConvertToCursor','debounceTime','editingUnit','_cursorShapes','text','_saveCache','off-line-single_clip0_910_343','YUUMI_AI_RUN_FAILED','getCoordByCell','@univerjs/drawing','InsertRangeMoveRightCommandId','all','unshift','addObjects','BehaviorSubject','apply','m1Prime','round','getConfig','registerRefRange','@univerjs/network','toString','setConfig','IURLService','indexOf','getRenderById','_onCursorDelete','restore','createElement','symbol','IDocClipboardService','url(#off-line-single_clip0_910_343)','CONFLICT','react/jsx-runtime','executeCommand','mask','_drawRectRange','getSkeleton','transformMutation','_cursors','eventID','ACTIVE_UNIT_EVENT_CHANNEL','onPointerEnter$','_getSessionTicket','_docTransformStateCacheService','_name','resize','OFFLINE','event$','forEach','_handleHeartbeatEvent','SHEET_VIEWPORT_KEY','translate(.97)','getMergeData','saveImage','transformSelections','_removeClearOtherTimer','icon','IMessageService','call','isArray','clearInterval','replaceDocRanges','attrs','deepClone','transformStateCache','OffLineSingle','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','findNodePositionByCharIndex','collabStatus.notCollab','UPDATE_CURSOR','handleInsertCol','_localCacheService','handleIRemoveRow','Rectangle','_shapes','max','ticket','_color','DocStateChangeManagerService','_eventUnsubscribe','labelPosition','SetDocZoomRatioOperation','_roomMembers$','unit','DOC_RANGE_TYPE','getLocalCacheKey','urlChange$','entries','372102EkZqGY','getCurrent','red.300','ILogService','_scene','getCurrentUnitForType','get','setParam','handleDeleteRangeMoveUp','result','registerRenderModule','_initStatusListener','M0\x200H16V16H0z','_onCursorUpdate','IUIPartsService','...','_syncEditingCollabCursorService','getStateCache','runRefRangeMutations','UNDEFINED','displayName','disposeWithMe','YUUMI_SUBSCRIPTION_NOT_FOUND','onLocalMutation','_docSkeletonManagerService','xlink:href','push','assign','_sheetSkeletonManagerService','_online','_docClipboardService','application/json','wsSessionTicketUrl','startRow','body','string','MUTATION','SYNCED','getParam','ONLINE','_httpService','_toggleOnline','onCommandExecuted','_labelPosition','SUBMIT_CHANGESET_TIMEOUT','useCallback','doc.mutation.rich-text-editing','evenodd','_scheduleSaving','SetWorksheetActivateCommand','createInstance','roomMembers','Vector2','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','loadOfflineData','isTransformMutationsWithChangesetSuccess','function','init','handleInsertRow','@univerjs/docs-ui','_disabled','data','textRanges','PY_RUNTIME_SCRIPT_ERROR','_range','30554WiykMG','Failed','triggerDblclick','unload','syncEditingCollabCursor','ITransformService','addObject','idSuffix','transformIMECache','getFocusedUnit','delete','touchDependencies','498YvYzwj','_docStateChangeManagerService','_revisionService','actions','UNIVER_SHEET','CollaborationSessionService','IImageIoService','height','arc','save','useDependency','jsx','measureText','path','@univerjs/sheets','_anchor','children','_registerDependencies','CollaborationStatusDisplay','IUniverInstanceService','Warning','InsertColCommandId','className','generateRandomId','undoState','merge','setTimeout','ENSURE_SNAPSHOT_EXECUTION','origin','13239754lynkkx','getSheetId','YUUMI_NO_CUBOID_FOR_QUESTION','TEXT_RANGE_LAYER_INDEX','getViewport','clipPath','_cursorInfo$','combineLatest','drawWith','_initResize','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','stringify','_initStatusComponent','PENDING','svg','MemberService','sheetID','useObservable','getOwnPropertySymbols','univerjs-icon\x20univerjs-icon-','ISocketService','defineProperty','RevisionService','whenReady','93dvSpBP','error','_transformPreviousActiveRange','tag','univer-flex\x20univer-items-center','getCollabEntity$','Module','UniverIcon','4890991nrOLKq','popstate','LICENSE_EXPORT_SIZE_EXCEEDED','PERMISSION_DENIED','_toggleOffline','HEADER_MENU','_drawTextRange','deserializeRangeWithSheet','_updateSubUnitFromURLParams','APPLY_PERMISSION_DENIED','Plugin','_heartbeatTimer','extend','_setupBeforeClosingHandler','UniverCollaborationClientUIPlugin','getCollabCursors$','onStarting','_imageIoService','setUndoRedoMutationParamsCache','unitID','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','DisposableCollection','_commandService','pipe','reconnect','top','_context','AWAITING_WITH_PENDING','_cursor','collabStatus.syncing','replace','SetTextSelectionsOperation','LICENSE_DISTRO_REJECTED','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','_renderManagerService','session.collaboration-timeout','getRelativeToViewportCoord','transformByState','getMember','collabStatus.synced','memberID','docStateChange$','TEXT','useRef','_univerInstanceService','toDisposable','CollaborationStatus','_initDependencies','2328368XpCLch','UniverInstanceType','min','subscribe','handleInsertRangeMoveDown','includes','next','DocIMEInputManagerService','defs','#FFF','YUUMI_RATE_OVER_LIMIT','subscribeEvent','SNAPSHOT_HAS_BEEN_REMOVED','href','Shape','range','RemoteUniscriptService','_config','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','_docTransformSelectionsService','TOO_MANY_REQUESTS','location','handleIRemoveCol','_injector','params','getColorFromTheme','USER_NOT_INVITED_CODE','exhaustSavingTask','_transformService','_transformHistoryAndStateStack','ranges','collaboration.closeRoom','has','_assignedColors','VIEW_MAIN','_collaborationUIEventService','@univerjs/docs','createIdentifier','Rect','UNAUTHENTICATED','isTransformMutationFailure','YUUMI_UNABLE_LOAD_URL','_hover','history','_refreshCollabCursors','_urlService','RemoveRowCommandId','_docSyncEditingCollabCursorService','registerBeforeClose','hasOwnProperty','YUUMI_ASYNCIO_CANCELLED','takeUntil','dispose$','[CollaborationDataLoaderController]','_entities','url(#on-line-single_clip0_910_349)','setShapeProps','fill','engine','fromEvent','getUnhiddenWorksheets','then','HTTPService','values','setInterval','Injector','_localStorageService','dispose','YUUMI_TABLE_NOT_FOUND_IN_UNIT','ICommandService','requireSession','getRangePointData','redoState','LICENSE_IMPORT_SIZE_EXCEEDED','defIds','_hovered','_startDocCollabCursor','ThemeService','collab-text-anchor-','_docTransformIMECacheService','getMemberID','EffectRefRangId','_doCreateSocket','INVITE_CODE_ALREADY_BOUND','Tools','@univerjs/sheets-ui','JOIN_ROOM_FAILED','session.will-retry','WECHAT_HAS_BEEN_BOUND','_registerRenderDependencies','sheetId','_collabCursorController','font','prototype','startColumn','_colorIndex','toStringTag','@univerjs/design','_notificationService','LICENSE_MAX_UNITS_EXCEEDED','univer-flex\x20univer-mr-2\x20univer-text-xl','rgba(255,\x20255,\x20255,\x200.01)','removeParam','IRemoteInstanceService','filter','addHandlerCallback','IConfigService','_messageService','INVITE_CODE_HAS_BEEN_UES','univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','_configService','LocaleService','set','setAlpha','_id','_backgroundColor','toRgbString','transformRemoteChangeset','559773NIxdlY','_uiPartsService','NO_OTHER_CLIENTS_EDITING','selection','225ejNoAX','handleDeleteRangeMoveLeft','roomMembers$','APPLY_DUPLICATED','Unknown\x20user','blue.400','@univerjs-pro/collaboration-client','UnitStatus','INVALID_INVITE_CODE','getSheetObject','APPLY_NON_SEQUENTIAL_REVISION','with','width','none','getActiveSheet','_updateCollabCursors','url(#$1','_unitOnClients','_collaborationController','SOCKET_FAILED','CollaborationUIEventId','jiqing.500','INTERNAL_ERROR','color','_init','add','MOBILE_HAS_BEEN_BOUND','clearTimeout','substring','setActiveRange','debounce','collab-client.tooltip.reconnect','addClipboardHook','FromArray','_draw','searchParams','rxjs','jsxs','hovered','newValue','APPLY_REVISION_CONFILICT','SNAPSHOT_INVALID_SNAPSHOT','activeSheet$','_unitStatus','SOCKET_FAILED_RETRY','on-line-single','bottom','LOGIN_FAILED','@univerjs/core','APPLY_REJECT','RemoveColCommandId','concat','getValue','_memberService','NOT_FOUND','uni.network.url-service','DocSelectionManagerService','_colorAssignService','skeleton','getTypeOfUnitAdded$','debug','off-line-single','RECT','CollaborationEvent','saveTaskMap','switchMap','RegularPolygon','throttleTime','ILocalCacheService','clsx','COMPLETION_FINISHED','currentSkeleton$','OTHER_CLIENT_EDITING'];_0x3491=function(){return _0x191b03;};return _0x3491();}var Nt={'tag':_0x5adf7c(0x29b),'attrs':{'fill':_0x5adf7c(0x364),'viewBox':'0\x200\x2017\x2016','width':_0x5adf7c(0x431),'height':_0x5adf7c(0x431)},'children':[{'tag':'g','attrs':{'clipPath':_0x5adf7c(0x314)},'children':[{'tag':_0x5adf7c(0x27d),'attrs':{'stroke':_0x5adf7c(0x3c7),'d':_0x5adf7c(0x2ce),'strokeLinecap':'round','strokeLinejoin':'round','strokeWidth':1.2}}]},{'tag':_0x5adf7c(0x2e5),'attrs':{},'children':[{'tag':_0x5adf7c(0x292),'attrs':{'id':_0x5adf7c(0x3a4)},'children':[{'tag':'path','attrs':{'fill':_0x5adf7c(0x3cd),'d':_0x5adf7c(0x22f),'transform':_0x5adf7c(0x1fe)}}]}]}],'defIds':['on-line-single_clip0_910_349']},$e=M[_0x5adf7c(0x3d0)](function(_0x53071e,_0x1759c8){const _0x153d27=_0x5adf7c;return M[_0x153d27(0x1e6)](pe,Object[_0x153d27(0x23e)]({},_0x53071e,{'id':_0x153d27(0x384),'ref':_0x1759c8,'icon':Nt}));});$e['displayName']=_0x5adf7c(0x420);function Mt(_0x25e084){const _0x3a4417=_0x5adf7c;switch(_0x25e084){case u[_0x3a4417(0x2db)]['OFFLINE']:return _0x3a4417(0x3af);case u[_0x3a4417(0x2db)][_0x3a4417(0x1ea)]:return _0x3a4417(0x3cc);case u[_0x3a4417(0x2db)][_0x3a4417(0x3fe)]:return _0x3a4417(0x3ac);case u['CollaborationStatus'][_0x3a4417(0x1b4)]:return _0x3a4417(0x20f);case u[_0x3a4417(0x2db)]['AWAITING']:case u[_0x3a4417(0x2db)][_0x3a4417(0x2c8)]:return _0x3a4417(0x2ca);case u['CollaborationStatus'][_0x3a4417(0x248)]:case u[_0x3a4417(0x2db)][_0x3a4417(0x29a)]:return _0x3a4417(0x2d4);}}function xe(_0x259096){const _0x39c6b8=_0x5adf7c,{status$:_0x33abce}=_0x259096,_0x78d94c=T[_0x39c6b8(0x29e)](_0x33abce,u['CollaborationStatus'][_0x39c6b8(0x1b4)]),_0x2d93a8=T['useDependency'](a[_0x39c6b8(0x34c)]),_0x3cb842=T[_0x39c6b8(0x27a)](u[_0x39c6b8(0x275)]),_0x36f2e0=_0x78d94c!==u[_0x39c6b8(0x2db)][_0x39c6b8(0x1f9)],_0x1a25be=_0x2d93a8['t'](Mt(_0x78d94c)),_0x3f8538=_0x36f2e0?P[_0x39c6b8(0x27b)]($e,{}):P[_0x39c6b8(0x27b)](ye,{}),_0x168823=M[_0x39c6b8(0x250)](()=>{const _0x575d5e=_0x39c6b8;_0x36f2e0||_0x3cb842[_0x575d5e(0x2c5)]();},[_0x36f2e0,_0x3cb842]);function _0x311b27(){const _0x53a10d=_0x39c6b8;return P[_0x53a10d(0x37c)](_0x53a10d(0x3c4),{'className':_0x53a10d(0x2a9),'onClick':_0x168823,'children':[P[_0x53a10d(0x27b)](_0x53a10d(0x3c4),{'className':D[_0x53a10d(0x39c)](_0x53a10d(0x341),{'univer-text-green-500':_0x36f2e0,'univer-text-red-500':!_0x36f2e0}),'children':_0x3f8538}),P['jsx'](_0x53a10d(0x3c4),{'className':_0x53a10d(0x34a),'children':_0x1a25be})]});}return _0x36f2e0?_0x311b27():P[_0x39c6b8(0x27b)](D[_0x39c6b8(0x3d7)],{'title':_0x2d93a8['t'](_0x39c6b8(0x376)),'children':_0x311b27()});}var Lt=Object['getOwnPropertyDescriptor'],Pt=(_0x63d6c2,_0x53d537,_0x8f71d5,_0x296cba)=>{const _0x2e4942=_0x5adf7c;for(var _0x53722b=_0x296cba>0x1?void 0x0:_0x296cba?Lt(_0x53d537,_0x8f71d5):_0x53d537,_0x458c38=_0x63d6c2[_0x2e4942(0x410)]-0x1,_0x26b43f;_0x458c38>=0x0;_0x458c38--)(_0x26b43f=_0x63d6c2[_0x458c38])&&(_0x53722b=_0x26b43f(_0x53722b)||_0x53722b);return _0x53722b;},V=(_0x417192,_0x2268f3)=>(_0x536de0,_0x57dd91)=>_0x2268f3(_0x536de0,_0x57dd91,_0x417192);exports['DesktopCollaborationStatusDisplayController']=class extends a['Disposable']{constructor(_0x5d868e,_0x2cf84a,_0x5593a9,_0x951137){const _0x165ea3=_0x5adf7c;super(),h(this,_0x165ea3(0x438),new d[(_0x165ea3(0x1d8))](u[_0x165ea3(0x2db)][_0x165ea3(0x1b4)])),(this[_0x165ea3(0x2d9)]=_0x5d868e,this['_injector']=_0x2cf84a,this[_0x165ea3(0x369)]=_0x5593a9,this[_0x165ea3(0x354)]=_0x951137,this['_initStatusComponent'](),this[_0x165ea3(0x22e)]());}[_0x5adf7c(0x22e)](){const _0x55e44a=_0x5adf7c;this[_0x55e44a(0x238)](this[_0x55e44a(0x2d9)]['focused$'][_0x55e44a(0x2c4)](d[_0x55e44a(0x398)](()=>{const _0x3c9808=_0x55e44a,_0x56886b=this[_0x3c9808(0x2d9)][_0x3c9808(0x26d)]();return _0x56886b?this['_collaborationController'][_0x3c9808(0x2aa)](_0x56886b[_0x3c9808(0x3fa)]()):d['of'](null);}),d[_0x55e44a(0x398)](_0x185289=>_0x185289?_0x185289['status$']:d['of'](u[_0x55e44a(0x2db)]['NOT_COLLAB'])))[_0x55e44a(0x2e0)](_0xef3a70=>{const _0x5f5136=_0x55e44a;this[_0x5f5136(0x438)][_0x5f5136(0x2e3)](_0xef3a70);}));}[_0x5adf7c(0x299)](){const _0x2d8114=_0x5adf7c;this[_0x2d8114(0x238)](this[_0x2d8114(0x354)]['registerComponent'](T[_0x2d8114(0x3aa)][_0x2d8114(0x2b2)],()=>T[_0x2d8114(0x40b)](At({'status$':this[_0x2d8114(0x438)][_0x2d8114(0x3c5)]()}),this[_0x2d8114(0x2f4)])));}},exports['DesktopCollaborationStatusDisplayController']=Pt([V(0x0,a['IUniverInstanceService']),V(0x1,a[_0x5adf7c(0x43b)](a[_0x5adf7c(0x31e)])),V(0x2,a[_0x5adf7c(0x43b)](u[_0x5adf7c(0x419)])),V(0x3,T[_0x5adf7c(0x231)])],exports[_0x5adf7c(0x41f)]);function At(_0x4d6bac){const {status$:_0x241059}=_0x4d6bac;return function(){return P['jsx'](xe,{'status$':_0x241059});};}var wt=Object[_0x5adf7c(0x401)],yt=(_0x5c19fd,_0xa9ff9c,_0x186d4c,_0x54975e)=>{const _0x2614e1=_0x5adf7c;for(var _0x410dd9=_0x54975e>0x1?void 0x0:_0x54975e?wt(_0xa9ff9c,_0x186d4c):_0xa9ff9c,_0xb464a9=_0x5c19fd[_0x2614e1(0x410)]-0x1,_0x5e8b92;_0xb464a9>=0x0;_0xb464a9--)(_0x5e8b92=_0x5c19fd[_0xb464a9])&&(_0x410dd9=_0x5e8b92(_0x410dd9)||_0x410dd9);return _0x410dd9;},y=(_0x51729e,_0x3eb787)=>(_0x534cc5,_0xc064b4)=>_0x3eb787(_0x534cc5,_0xc064b4,_0x51729e);let q=class extends a[_0x5adf7c(0x3b3)]{constructor(_0x2dd0fd,_0x3ec4fe,_0xd8d38e,_0x28cad5,_0x31b04e,_0x23e156){const _0x14439c=_0x5adf7c;super(),this[_0x14439c(0x3e7)]=_0x2dd0fd,this[_0x14439c(0x212)]=_0x3ec4fe,this[_0x14439c(0x300)]=_0xd8d38e,this[_0x14439c(0x348)]=_0x28cad5,this[_0x14439c(0x33f)]=_0x31b04e,this[_0x14439c(0x3a5)]=_0x23e156,this[_0x14439c(0x2ba)](),this[_0x14439c(0x3e4)]();}[_0x5adf7c(0x2ba)](){const _0x15b66d=_0x5adf7c;this[_0x15b66d(0x238)](this[_0x15b66d(0x3e7)][_0x15b66d(0x30d)](()=>{const _0x765e1d=_0x15b66d;if(this[_0x765e1d(0x212)][_0x765e1d(0x397)][_0x765e1d(0x439)])return this[_0x765e1d(0x3a5)]['t']('collaboration-client.offline-data-not-saved');}));}[_0x5adf7c(0x3e4)](){const _0x48d503=_0x5adf7c;this[_0x48d503(0x238)](this[_0x48d503(0x300)]['event$'][_0x48d503(0x2e0)](_0x497e55=>{const _0xccd261=_0x48d503;_0x497e55['id']===u[_0xccd261(0x36b)][_0xccd261(0x39f)]&&this[_0xccd261(0x348)][_0xccd261(0x3cb)]({'type':D[_0xccd261(0x3de)]['Warning'],'content':this[_0xccd261(0x3a5)]['t']('collaboration.single-unit.warning')}),_0x497e55['id']===u[_0xccd261(0x36b)]['CLOSE_ROOM']&&this[_0xccd261(0x348)][_0xccd261(0x3cb)]({'type':D['MessageType'][_0xccd261(0x284)],'content':this[_0xccd261(0x3a5)]['t'](_0xccd261(0x2fc))}),_0x497e55['id']===u[_0xccd261(0x36b)][_0xccd261(0x2b0)]&&this[_0xccd261(0x33f)][_0xccd261(0x3cb)]({'title':this[_0xccd261(0x3a5)]['t'](_0xccd261(0x1ae)),'content':this[_0xccd261(0x3a5)]['t'](_0xccd261(0x426)),'type':'error','duration':0x0}),_0x497e55['id']===u[_0xccd261(0x36b)]['CONFLICT']&&this[_0xccd261(0x348)][_0xccd261(0x3cb)]({'type':D[_0xccd261(0x3de)][_0xccd261(0x3e9)],'content':this[_0xccd261(0x3a5)]['t']('collaboration.closeRoom')+'('+_0x497e55['data']+')'}),_0x497e55['id']===u[_0xccd261(0x36b)][_0xccd261(0x333)]&&this['_messageService'][_0xccd261(0x3cb)]({'type':D['MessageType'][_0xccd261(0x284)],'content':this['_localeService']['t'](_0x497e55[_0xccd261(0x260)]||'')}),_0x497e55['id']===u[_0xccd261(0x36b)][_0xccd261(0x383)]&&this[_0xccd261(0x348)][_0xccd261(0x3cb)]({'type':D['MessageType']['Warning'],'content':this[_0xccd261(0x3a5)]['t'](_0xccd261(0x334))}),_0x497e55['id']===u['CollaborationUIEventId'][_0xccd261(0x36a)]&&this['_messageService'][_0xccd261(0x3cb)]({'type':D['MessageType'][_0xccd261(0x3e9)],'content':this[_0xccd261(0x3a5)]['t'](_0xccd261(0x408))}),_0x497e55['id']===u[_0xccd261(0x36b)][_0xccd261(0x24f)]&&this['_messageService']['show']({'type':D[_0xccd261(0x3de)]['Error'],'content':this['_localeService']['t'](_0xccd261(0x2d0))});}));}};q=yt([y(0x0,T['IBeforeCloseService']),y(0x1,u[_0x5adf7c(0x39b)]),y(0x2,a['Inject'](u['CollaborationUIEventService'])),y(0x3,T['IMessageService']),y(0x4,T[_0x5adf7c(0x3c2)]),y(0x5,a[_0x5adf7c(0x43b)](a['LocaleService']))],q);const $t=_0x5adf7c(0x3ad),Ue={},be=a[_0x5adf7c(0x302)](_0x5adf7c(0x38e));var xt=Object[_0x5adf7c(0x401)],jt=(_0x1153f1,_0x1312e9,_0x5cd26b,_0x7e141e)=>{const _0x5431b4=_0x5adf7c;for(var _0x33e6f0=_0x7e141e>0x1?void 0x0:_0x7e141e?xt(_0x1312e9,_0x5cd26b):_0x1312e9,_0x8713e0=_0x1153f1[_0x5431b4(0x410)]-0x1,_0x475e0b;_0x8713e0>=0x0;_0x8713e0--)(_0x475e0b=_0x1153f1[_0x8713e0])&&(_0x33e6f0=_0x475e0b(_0x33e6f0)||_0x33e6f0);return _0x33e6f0;},H=(_0x459c8c,_0x53aa59)=>(_0x40b3d5,_0x545d44)=>_0x53aa59(_0x40b3d5,_0x545d44,_0x459c8c);exports[_0x5adf7c(0x3c3)]=class extends a[_0x5adf7c(0x434)]{constructor(_0x2ba72c,_0x15bd82,_0x216c1e,_0x489650,_0x57f67a){const _0x49093a=_0x5adf7c;super(),this[_0x49093a(0x30a)]=_0x2ba72c,this[_0x49093a(0x1c4)]=_0x15bd82,this[_0x49093a(0x2c3)]=_0x216c1e,this[_0x49093a(0x3d2)]=_0x489650,_0x57f67a?_0x57f67a==null||_0x57f67a[_0x49093a(0x2a4)]()[_0x49093a(0x31a)](()=>this[_0x49093a(0x36f)]()):(this['_logService'][_0x49093a(0x393)](_0x49093a(0x312),_0x49093a(0x2ef)),this[_0x49093a(0x36f)]());}async[_0x5adf7c(0x36f)](){const _0x3b121c=_0x5adf7c,_0x2a93ab=this['_urlService'][_0x3b121c(0x249)](_0x3b121c(0x21e)),_0x3d7851=this[_0x3b121c(0x30a)][_0x3b121c(0x249)]('type'),_0x5be15e=this[_0x3b121c(0x30a)][_0x3b121c(0x249)]('subunit');if(!_0x2a93ab||!_0x3d7851){this[_0x3b121c(0x1c4)]['debug'](_0x3b121c(0x312),_0x3b121c(0x297));return;}const _0x42ac2b=await this[_0x3b121c(0x3d2)][_0x3b121c(0x1af)](_0x2a93ab,Number(_0x3d7851),_0x5be15e);_0x42ac2b&&_0x42ac2b instanceof a[_0x3b121c(0x1bb)]&&this[_0x3b121c(0x3ca)](_0x42ac2b);}async[_0x5adf7c(0x3ca)](_0x42a6c6){const _0x5e50f1=_0x5adf7c;await this[_0x5e50f1(0x2b5)](_0x42a6c6),_0x42a6c6[_0x5e50f1(0x381)][_0x5e50f1(0x2c4)](d[_0x5e50f1(0x310)](this[_0x5e50f1(0x311)]))['subscribe'](_0x280f4c=>{_0x280f4c&&this['_updateURLWithCurrentState'](_0x280f4c);}),this[_0x5e50f1(0x30a)][_0x5e50f1(0x221)][_0x5e50f1(0x2c4)](d['takeUntil'](this[_0x5e50f1(0x311)]))[_0x5e50f1(0x2e0)](()=>this[_0x5e50f1(0x2b5)](_0x42a6c6));}[_0x5adf7c(0x3d3)](_0x1b2bb2,_0x434c00=!0x1){const _0x75d0fe=_0x5adf7c,_0x49fad0=this['_urlService'][_0x75d0fe(0x249)](_0x75d0fe(0x3c9));_0x1b2bb2['getSheetId']()!==_0x49fad0&&this[_0x75d0fe(0x30a)][_0x75d0fe(0x22a)]('subunit',_0x1b2bb2[_0x75d0fe(0x28e)](),_0x434c00);}async[_0x5adf7c(0x2b5)](_0x1255cc){const _0xaf007a=_0x5adf7c;var _0xfbf182;const _0xdb8e4=this[_0xaf007a(0x30a)][_0xaf007a(0x249)]('subunit');if(!_0xdb8e4||!_0x1255cc['getSheetBySheetId'](_0xdb8e4)){const _0x456ed3=_0x1255cc[_0xaf007a(0x319)]()[0x0],_0x1e9ef1=_0x1255cc['getSheetBySheetId'](_0x456ed3);if(!_0x1e9ef1)return;this[_0xaf007a(0x3d3)](_0x1e9ef1,!0x0),await this[_0xaf007a(0x2c3)]['executeCommand'](g[_0xaf007a(0x254)]['id'],{'unitId':_0x1255cc[_0xaf007a(0x3fa)](),'subUnitId':_0x456ed3});return;}((_0xfbf182=_0x1255cc[_0xaf007a(0x365)]())==null?void 0x0:_0xfbf182[_0xaf007a(0x28e)]())!==_0xdb8e4&&await this[_0xaf007a(0x2c3)][_0xaf007a(0x1ec)](g[_0xaf007a(0x254)]['id'],{'unitId':_0x1255cc[_0xaf007a(0x3fa)](),'subUnitId':_0xdb8e4});}},exports['CollaborationDataLoaderController']=jt([H(0x0,be),H(0x1,a[_0x5adf7c(0x226)]),H(0x2,a[_0x5adf7c(0x322)]),H(0x3,a[_0x5adf7c(0x43b)](u['DataLoaderService'])),H(0x4,a['Optional'](Ke[_0x5adf7c(0x344)]))],exports[_0x5adf7c(0x3c3)]);var Bt=Object[_0x5adf7c(0x401)],kt=(_0x5afa2b,_0x2d5f21,_0x1c3a94,_0x2fe3e7)=>{const _0xe581b3=_0x5adf7c;for(var _0x33bece=_0x2fe3e7>0x1?void 0x0:_0x2fe3e7?Bt(_0x2d5f21,_0x1c3a94):_0x2d5f21,_0x157142=_0x5afa2b[_0xe581b3(0x410)]-0x1,_0x139625;_0x157142>=0x0;_0x157142--)(_0x139625=_0x5afa2b[_0x157142])&&(_0x33bece=_0x139625(_0x33bece)||_0x33bece);return _0x33bece;},ce=(_0x3931d4,_0x59f070)=>(_0x5461b2,_0x466b0f)=>_0x59f070(_0x5461b2,_0x466b0f,_0x3931d4);let z=class{constructor(_0x51e170,_0xedd9f8,_0x3931f3){const _0x2c8dc0=_0x5adf7c;this['_injector']=_0x51e170,this[_0x2c8dc0(0x2f9)]=_0xedd9f8,this['_renderManagerService']=_0x3931f3;}[_0x5adf7c(0x26c)](_0x326f82){const _0x509632=_0x5adf7c;this['_transformUndoRedoStack'](_0x326f82),this[_0x509632(0x2a7)](_0x326f82);}['transformRemoteChangeset'](_0x5df05e){const _0x696847=_0x5adf7c,{unitID:_0x259c88}=_0x5df05e,_0x278428=this[_0x696847(0x2cf)][_0x696847(0x1e3)](_0x259c88)[_0x696847(0x362)](b[_0x696847(0x2e4)]),{redoCache:_0x169961}=_0x278428[_0x696847(0x405)]();if(_0x169961[_0x696847(0x410)]===0x0)return _0x5df05e;let _0x252a4c=a[_0x696847(0x331)][_0x696847(0x20a)](_0x5df05e[_0x696847(0x1c0)][0x0]);for(let _0x3d1dd5=0x0;_0x3d1dd5<_0x169961[_0x696847(0x410)];_0x3d1dd5++){const _0x486224={'id':_0x696847(0x251),'params':{..._0x169961[_0x3d1dd5]}},_0x5c14f7=this[_0x696847(0x2f9)][_0x696847(0x1f0)](_0x252a4c,_0x486224,!0x1);if(m[_0x696847(0x305)](_0x5c14f7))throw _0x5c14f7['error'];_0x252a4c=_0x5c14f7[_0x696847(0x1da)];}return{...a[_0x696847(0x331)][_0x696847(0x20a)](_0x5df05e),'mutations':[_0x252a4c]};}[_0x5adf7c(0x3b5)](_0x4d5c90){const _0x4683bb=_0x5adf7c,{unitID:_0x36f0df}=_0x4d5c90,_0x4bbb17=this[_0x4683bb(0x2cf)]['getRenderById'](_0x36f0df)[_0x4683bb(0x362)](b[_0x4683bb(0x2e4)]),{undoCache:_0x4fae1b,redoCache:_0x1d4682}=_0x4bbb17[_0x4683bb(0x405)]();if(_0x4fae1b[_0x4683bb(0x410)]===0x0||_0x1d4682['length']===0x0)return;const _0x24ab18=[],_0x5e892e=[];let _0x4b6e0f=a['Tools'][_0x4683bb(0x20a)](_0x4d5c90[_0x4683bb(0x1c0)][0x0]),_0x186c62=a['Tools'][_0x4683bb(0x20a)](_0x4d5c90[_0x4683bb(0x1c0)][0x0]);for(let _0x30feac=_0x4fae1b['length']-0x1;_0x30feac>=0x0;_0x30feac--){const _0x4e845c={'id':_0x4683bb(0x251),'params':{..._0x4fae1b[_0x30feac]}},_0x172bc7={'id':_0x4683bb(0x251),'params':{..._0x1d4682[_0x30feac]}},_0x25e892=this[_0x4683bb(0x2f9)][_0x4683bb(0x1f0)](_0x4b6e0f,_0x4e845c,!0x1),_0x39ee8f=this[_0x4683bb(0x2f9)][_0x4683bb(0x1f0)](_0x186c62,_0x172bc7,!0x1);if(m[_0x4683bb(0x305)](_0x25e892))throw _0x25e892[_0x4683bb(0x2a6)];if(m[_0x4683bb(0x305)](_0x39ee8f))throw _0x39ee8f[_0x4683bb(0x2a6)];_0x24ab18['unshift'](_0x25e892[_0x4683bb(0x3d5)][_0x4683bb(0x2f5)]),_0x5e892e[_0x4683bb(0x1d6)](_0x39ee8f[_0x4683bb(0x3d5)]['params']),_0x4b6e0f=_0x25e892[_0x4683bb(0x1da)],_0x186c62=_0x39ee8f[_0x4683bb(0x1da)];}_0x4bbb17[_0x4683bb(0x2bf)]({'undoCache':_0x24ab18,'redoCache':_0x5e892e});}[_0x5adf7c(0x2a7)](_0x370a7c){const _0x32ee57=_0x5adf7c,{unitID:_0xf64433}=_0x370a7c,_0x1a5f51=this['_renderManagerService'][_0x32ee57(0x1e3)](_0xf64433)[_0x32ee57(0x362)](b[_0x32ee57(0x2e4)]),_0x5ba98c=_0x1a5f51['getActiveRange']();if(_0x5ba98c==null)return;const _0x29586c=[{'id':_0x32ee57(0x251),'params':{'unitId':_0x370a7c[_0x32ee57(0x2c0)],'actions':null,'textRanges':[_0x5ba98c]}}],_0x41e691=this[_0x32ee57(0x2f9)][_0x32ee57(0x423)](_0x370a7c,_0x29586c);if(!m[_0x32ee57(0x25a)](_0x41e691))throw _0x41e691[_0x32ee57(0x2a6)];const _0xa88d99=_0x41e691['m2Prime'][0x0][_0x32ee57(0x2f5)][_0x32ee57(0x261)];Array[_0x32ee57(0x206)](_0xa88d99)&&_0xa88d99[_0x32ee57(0x410)]&&_0x1a5f51[_0x32ee57(0x374)](_0xa88d99[0x0]);}};z=kt([ce(0x0,a[_0x5adf7c(0x43b)](a['Injector'])),ce(0x1,m['ITransformService']),ce(0x2,p[_0x5adf7c(0x407)])],z);var Ht=Object['getOwnPropertyDescriptor'],Ft=(_0x152ec9,_0x43f25b,_0x68535f,_0x18e850)=>{const _0x49685e=_0x5adf7c;for(var _0x418e6b=_0x18e850>0x1?void 0x0:_0x18e850?Ht(_0x43f25b,_0x68535f):_0x43f25b,_0x3578b4=_0x152ec9[_0x49685e(0x410)]-0x1,_0x35b443;_0x3578b4>=0x0;_0x3578b4--)(_0x35b443=_0x152ec9[_0x3578b4])&&(_0x418e6b=_0x35b443(_0x418e6b)||_0x418e6b);return _0x418e6b;},le=(_0x3a0d08,_0x29434c)=>(_0x5e18e7,_0x2c6990)=>_0x29434c(_0x5e18e7,_0x2c6990,_0x3a0d08);let J=class{constructor(_0xac98db,_0x640cb1,_0x11c689){const _0x56d733=_0x5adf7c;this['_injector']=_0xac98db,this[_0x56d733(0x2f9)]=_0x640cb1,this[_0x56d733(0x271)]=_0x11c689;}[_0x5adf7c(0x20b)](_0x43b4cd){const _0x54bca0=_0x5adf7c;this[_0x54bca0(0x2fa)](_0x43b4cd);}['transformRemoteChangeset'](_0x5760cd){const _0x1349f2=_0x5adf7c,{unitID:_0x54333c}=_0x5760cd,{collaboration:_0xf6db53}=this['_docStateChangeManagerService'][_0x1349f2(0x234)](_0x54333c);if(_0xf6db53[_0x1349f2(0x410)]===0x0)return _0x5760cd;let _0x48e025=a['Tools'][_0x1349f2(0x20a)](_0x5760cd[_0x1349f2(0x1c0)][0x0]);for(let _0x2ee4f1=0x0;_0x2ee4f1<_0xf6db53[_0x1349f2(0x410)];_0x2ee4f1++){const _0x4d9aa7={'id':_0x1349f2(0x251),'params':{'unitId':_0xf6db53[_0x2ee4f1][_0x1349f2(0x1b3)],..._0xf6db53[_0x2ee4f1][_0x1349f2(0x325)]}},_0x6b48a7=this['_transformService']['transformMutation'](_0x48e025,_0x4d9aa7,!0x1);if(m['isTransformMutationFailure'](_0x6b48a7))throw _0x6b48a7[_0x1349f2(0x2a6)];_0x48e025=_0x6b48a7[_0x1349f2(0x1da)];}return{...a[_0x1349f2(0x331)]['deepClone'](_0x5760cd),'mutations':[_0x48e025]};}[_0x5adf7c(0x2fa)](_0x672c7){const _0x1750a2=_0x5adf7c,{unitID:_0x39da4c}=_0x672c7,{history:_0x5b862e,collaboration:_0x4d1c0b}=this[_0x1750a2(0x271)][_0x1750a2(0x234)](_0x39da4c);if(_0x5b862e[_0x1750a2(0x410)]===0x0&&_0x4d1c0b[_0x1750a2(0x410)]===0x0)return;const _0x36a2f7=[],_0x467c9f=[];let _0x31c992=a[_0x1750a2(0x331)][_0x1750a2(0x20a)](_0x672c7[_0x1750a2(0x1c0)][0x0]),_0x1a16ee=a[_0x1750a2(0x331)]['deepClone'](_0x672c7[_0x1750a2(0x1c0)][0x0]);for(let _0x16fa1d=_0x5b862e[_0x1750a2(0x410)]-0x1;_0x16fa1d>=0x0;_0x16fa1d--){const _0x290bfb={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x5b862e[_0x16fa1d][_0x1750a2(0x1b3)],..._0x5b862e[_0x16fa1d][_0x1750a2(0x288)]}},_0x41c49c={'id':_0x1750a2(0x251),'params':{'unitId':_0x5b862e[_0x16fa1d][_0x1750a2(0x1b3)],..._0x5b862e[_0x16fa1d][_0x1750a2(0x325)]}},_0x10d66c=this['_transformService']['transformMutation'](_0x31c992,_0x290bfb,!0x1),_0x29c722=this[_0x1750a2(0x2f9)][_0x1750a2(0x1f0)](_0x1a16ee,_0x41c49c,!0x1);if(m[_0x1750a2(0x305)](_0x10d66c))throw _0x10d66c[_0x1750a2(0x2a6)];if(m['isTransformMutationFailure'](_0x29c722))throw _0x29c722[_0x1750a2(0x2a6)];_0x36a2f7['unshift']({..._0x5b862e[_0x16fa1d],'undoState':_0x10d66c[_0x1750a2(0x3d5)][_0x1750a2(0x2f5)],'redoState':_0x29c722[_0x1750a2(0x3d5)][_0x1750a2(0x2f5)]}),_0x31c992=_0x10d66c[_0x1750a2(0x1da)],_0x1a16ee=_0x29c722['m1Prime'];}_0x31c992=a['Tools'][_0x1750a2(0x20a)](_0x672c7[_0x1750a2(0x1c0)][0x0]),_0x1a16ee=a[_0x1750a2(0x331)][_0x1750a2(0x20a)](_0x672c7['mutations'][0x0]);for(let _0x44bdac=_0x4d1c0b[_0x1750a2(0x410)]-0x1;_0x44bdac>=0x0;_0x44bdac--){const _0x54c9d3={'id':_0x1750a2(0x251),'params':{'unitId':_0x4d1c0b[_0x44bdac][_0x1750a2(0x1b3)],..._0x4d1c0b[_0x44bdac][_0x1750a2(0x288)]}},_0xba01d4={'id':_0x1750a2(0x251),'params':{'unitId':_0x4d1c0b[_0x44bdac]['unitId'],..._0x4d1c0b[_0x44bdac][_0x1750a2(0x325)]}},_0x66c553=this[_0x1750a2(0x2f9)][_0x1750a2(0x1f0)](_0x31c992,_0x54c9d3,!0x1),_0x486dc3=this[_0x1750a2(0x2f9)][_0x1750a2(0x1f0)](_0x1a16ee,_0xba01d4,!0x1);if(m[_0x1750a2(0x305)](_0x66c553))throw _0x66c553['error'];if(m[_0x1750a2(0x305)](_0x486dc3))throw _0x486dc3[_0x1750a2(0x2a6)];_0x467c9f['unshift']({..._0x4d1c0b[_0x44bdac],'undoState':_0x66c553['m2Prime'][_0x1750a2(0x2f5)],'redoState':_0x486dc3[_0x1750a2(0x3d5)][_0x1750a2(0x2f5)]}),_0x31c992=_0x66c553[_0x1750a2(0x1da)],_0x1a16ee=_0x486dc3[_0x1750a2(0x1da)];}this['_docStateChangeManagerService']['setStateCache'](_0x39da4c,{'history':_0x36a2f7,'collaboration':_0x467c9f});}};J=Ft([le(0x0,a[_0x5adf7c(0x43b)](a['Injector'])),le(0x1,m[_0x5adf7c(0x269)]),le(0x2,a[_0x5adf7c(0x43b)](b[_0x5adf7c(0x219)]))],J);var Yt=Object[_0x5adf7c(0x401)],Wt=(_0xf904a0,_0x4d8a31,_0x5bcdad,_0x6d0467)=>{for(var _0x4d3fd7=_0x6d0467>0x1?void 0x0:_0x6d0467?Yt(_0x4d8a31,_0x5bcdad):_0x4d8a31,_0x3dad2c=_0xf904a0['length']-0x1,_0x532ff3;_0x3dad2c>=0x0;_0x3dad2c--)(_0x532ff3=_0xf904a0[_0x3dad2c])&&(_0x4d3fd7=_0x532ff3(_0x4d3fd7)||_0x4d3fd7);return _0x4d3fd7;},Ne=(_0xa21f3c,_0x152311)=>(_0x471181,_0x23bd1f)=>_0x152311(_0x471181,_0x23bd1f,_0xa21f3c);let Z=class{constructor(_0x4bec33,_0x37b1de){this['_injector']=_0x4bec33,this['_transformService']=_0x37b1de;}['transformSelections'](_0x593551){const _0x5af553=_0x5adf7c;var _0x4aa1c8;const _0x53e572=this[_0x5af553(0x2f4)][_0x5af553(0x229)](Y[_0x5af553(0x38f)]),_0xb2ac30=(_0x4aa1c8=_0x53e572[_0x5af553(0x3d6)]())!=null?_0x4aa1c8:[];if(_0xb2ac30[_0x5af553(0x410)]===0x0)return;const _0x54c05e=_0x593551[_0x5af553(0x2c0)],_0x3e5cfb=[{'id':_0x5af553(0x251),'params':{'unitId':_0x54c05e,'actions':null,'textRanges':_0xb2ac30}}],_0x1a2440=this[_0x5af553(0x2f9)]['transformMutationsWithChangeset'](_0x593551,_0x3e5cfb);if(!m[_0x5af553(0x25a)](_0x1a2440))throw _0x1a2440['error'];const _0x3931f9=_0x1a2440[_0x5af553(0x3d5)][0x0]['params'][_0x5af553(0x261)];Array['isArray'](_0x3931f9)&&_0x3931f9[_0x5af553(0x410)]&&_0x53e572[_0x5af553(0x208)](_0x3931f9,{'unitId':_0x54c05e,'subUnitId':_0x54c05e},!0x1);}};Z=Wt([Ne(0x0,a['Inject'](a[_0x5adf7c(0x31e)])),Ne(0x1,m[_0x5adf7c(0x269)])],Z);var Vt=Object[_0x5adf7c(0x401)],Xt=(_0x2e746e,_0x3a3593,_0x443e5f,_0x21c3f3)=>{for(var _0x4dd0de=_0x21c3f3>0x1?void 0x0:_0x21c3f3?Vt(_0x3a3593,_0x443e5f):_0x3a3593,_0x2923e0=_0x2e746e['length']-0x1,_0x3ec9fc;_0x2923e0>=0x0;_0x2923e0--)(_0x3ec9fc=_0x2e746e[_0x2923e0])&&(_0x4dd0de=_0x3ec9fc(_0x4dd0de)||_0x4dd0de);return _0x4dd0de;},N=(_0x370f4f,_0x4dcb5e)=>(_0x480802,_0x3e1147)=>_0x4dcb5e(_0x480802,_0x3e1147,_0x370f4f);let Q=class extends a[_0x5adf7c(0x3b3)]{constructor(_0x3a8d8f,_0x3c23af,_0x394abe,_0x51c8bc,_0xb8bcc3,_0x19c41d,_0x324d4e,_0x44ca20){const _0xd57021=_0x5adf7c;super(),h(this,'_status$',new d['BehaviorSubject'](u[_0xd57021(0x2db)][_0xd57021(0x1b4)])),(this[_0xd57021(0x271)]=_0x3a8d8f,this['_collaborationController']=_0x3c23af,this[_0xd57021(0x32c)]=_0x394abe,this[_0xd57021(0x1f6)]=_0x51c8bc,this[_0xd57021(0x2f0)]=_0xb8bcc3,this['_docSyncEditingCollabCursorService']=_0x19c41d,this[_0xd57021(0x348)]=_0x324d4e,this['_localeService']=_0x44ca20,this[_0xd57021(0x1c3)]());}[_0x5adf7c(0x1c3)](){const _0x57f347=_0x5adf7c;this['disposeWithMe'](this[_0x57f347(0x369)]['entityInit$']['subscribe'](_0x25b09f=>{const _0x108850=_0x57f347,_0x29eb4a=this['_docStateChangeManagerService'][_0x108850(0x2d6)]['subscribe'](_0x581309=>{const _0x31391c=_0x108850;if(_0x581309==null)return;const {unitId:_0xa51934,redoState:_0x331b78,commandId:_0x26c3a0}=_0x581309;if(_0xa51934!==_0x25b09f[_0x31391c(0x2c0)])return;const _0x7fbadc={'id':_0x26c3a0,'type':a[_0x31391c(0x3a6)][_0x31391c(0x247)],'params':{'unitId':_0xa51934,'actions':_0x331b78[_0x31391c(0x273)],'textRanges':null}};_0x25b09f[_0x31391c(0x23a)](_0x7fbadc);});if(_0x25b09f[_0x108850(0x238)](_0x29eb4a),_0x25b09f instanceof u['DocCollaborationEntity']){const _0x35a196={'onTransformIME':_0x488a4b=>this[_0x108850(0x32c)][_0x108850(0x26c)](_0x488a4b),'onTransformState':_0xe2aeb3=>this['_docTransformStateCacheService'][_0x108850(0x20b)](_0xe2aeb3),'onTransformSelections':_0x13906c=>this['_docTransformSelectionsService'][_0x108850(0x201)](_0x13906c),'onSyncEditingCollabCursor':_0x27bd8f=>this[_0x108850(0x30c)][_0x108850(0x268)](_0x27bd8f),'onTransformRemoteChangesetByIMECache':_0x50b0fc=>this[_0x108850(0x32c)][_0x108850(0x352)](_0x50b0fc),'onTransformRemoteChangesetByStateCache':_0x1a5869=>this[_0x108850(0x1f6)]['transformRemoteChangeset'](_0x1a5869)};_0x25b09f[_0x108850(0x346)](_0x35a196);}}));}};Q=Xt([N(0x0,a[_0x5adf7c(0x43b)](b[_0x5adf7c(0x219)])),N(0x1,a[_0x5adf7c(0x43b)](u[_0x5adf7c(0x419)])),N(0x2,a[_0x5adf7c(0x43b)](z)),N(0x3,a[_0x5adf7c(0x43b)](J)),N(0x4,a[_0x5adf7c(0x43b)](Z)),N(0x5,a[_0x5adf7c(0x43b)](Ce)),N(0x6,T[_0x5adf7c(0x204)]),N(0x7,a[_0x5adf7c(0x43b)](a['LocaleService']))],Q);var Gt=Object[_0x5adf7c(0x401)],Kt=(_0x55acb9,_0xca1712,_0x921453,_0x13eb5d)=>{const _0x4d414c=_0x5adf7c;for(var _0xbb5fec=_0x13eb5d>0x1?void 0x0:_0x13eb5d?Gt(_0xca1712,_0x921453):_0xca1712,_0x5b05c5=_0x55acb9[_0x4d414c(0x410)]-0x1,_0x4f9f44;_0x5b05c5>=0x0;_0x5b05c5--)(_0x4f9f44=_0x55acb9[_0x5b05c5])&&(_0xbb5fec=_0x4f9f44(_0xbb5fec)||_0xbb5fec);return _0xbb5fec;},_e=(_0x2d73ab,_0x212c74)=>(_0x47c233,_0x3384e9)=>_0x212c74(_0x47c233,_0x3384e9,_0x2d73ab);let ge=class extends a[_0x5adf7c(0x3b3)]{constructor(_0x2894e0,_0x778a41,_0xab8564){const _0x21cc41=_0x5adf7c;super(),h(this,_0x21cc41(0x433),new Map()),h(this,_0x21cc41(0x3a3),new Map()),h(this,'_disabled',!0x1),(this[_0x21cc41(0x34b)]=_0x2894e0,this[_0x21cc41(0x31f)]=_0x778a41,this[_0x21cc41(0x272)]=_0xab8564);}['disableLocalCache'](){const _0x554295=_0x5adf7c;this[_0x554295(0x25f)]=!0x0;}[_0x5adf7c(0x3ae)](){const _0x256ed0=_0x5adf7c;this[_0x256ed0(0x25f)]=!0x1;}get[_0x5adf7c(0x397)](){const _0x38461e=_0x5adf7c;return this[_0x38461e(0x3a3)];}[_0x5adf7c(0x320)](){const _0x19378f=_0x5adf7c;this[_0x19378f(0x2f8)]()[_0x19378f(0x31a)](()=>super[_0x19378f(0x320)]());}async[_0x5adf7c(0x259)](_0x19700d){const _0x523271=_0x5adf7c;return this['_disabled']?null:this[_0x523271(0x31f)][_0x523271(0x42c)](u[_0x523271(0x220)](_0x19700d));}async[_0x5adf7c(0x3fb)](_0x1f9834,_0x25e758){const _0x4a4d68=_0x5adf7c;return!!this['_localStorageService'][_0x4a4d68(0x3ea)](_0x1f9834,_0x25e758);}[_0x5adf7c(0x3ed)](_0x42003b,_0x918771,_0x386a6b,_0x3768e3){const _0x5db9c5=_0x5adf7c,_0x355d04=this[_0x5db9c5(0x272)][_0x5db9c5(0x3da)](_0x42003b);this[_0x5db9c5(0x433)]['set'](_0x42003b,{'unitID':_0x42003b,'type':_0x918771,'awaitingChangeset':_0x386a6b,'mutations':_0x3768e3,'rev':_0x355d04}),this[_0x5db9c5(0x3a3)]['has'](_0x42003b)||this[_0x5db9c5(0x253)](_0x42003b);}[_0x5adf7c(0x253)](_0x184ec9){const _0x41e41c=_0x5adf7c,_0xed264c=this['_getSaveTimeout']();_0xed264c===0x0?this['_saveCache'](_0x184ec9):this['_saveTaskMap'][_0x41e41c(0x34d)](_0x184ec9,setTimeout(()=>this[_0x41e41c(0x1cf)](_0x184ec9),_0xed264c));}['_getSaveTimeout'](){const _0x476497=_0x5adf7c;var _0x3ae4f6;return(_0x3ae4f6=this[_0x476497(0x34b)][_0x476497(0x1dc)](u[_0x476497(0x1c1)]))!=null?_0x3ae4f6:u[_0x476497(0x3a0)];}[_0x5adf7c(0x1cf)](_0x3c441f){const _0x41a6c5=_0x5adf7c,_0x3f10d0=this[_0x41a6c5(0x3a3)][_0x41a6c5(0x229)](_0x3c441f);return _0x3f10d0!==void 0x0&&window[_0x41a6c5(0x372)](_0x3f10d0),this['_localStorageService'][_0x41a6c5(0x3ea)](u[_0x41a6c5(0x220)](_0x3c441f),this[_0x41a6c5(0x433)]['get'](_0x3c441f))[_0x41a6c5(0x31a)](()=>this[_0x41a6c5(0x3a3)][_0x41a6c5(0x26e)](_0x3c441f));}async[_0x5adf7c(0x2f8)](){const _0x2869cd=_0x5adf7c,_0x253f67=[];this[_0x2869cd(0x3a3)]['forEach']((_0x16f8e3,_0x5d82cd)=>{const _0x2dbf32=_0x2869cd;window[_0x2dbf32(0x372)](_0x16f8e3),_0x253f67[_0x2dbf32(0x23d)](this[_0x2dbf32(0x1cf)](_0x5d82cd)['then'](()=>{const _0x41f8f5=_0x2dbf32;this[_0x41f8f5(0x3a3)]['delete'](_0x5d82cd);}));}),await Promise[_0x2869cd(0x1d5)](_0x253f67);}};ge=Kt([_e(0x0,a['IConfigService']),_e(0x1,a['ILocalStorageService']),_e(0x2,a[_0x5adf7c(0x43b)](m[_0x5adf7c(0x2a3)]))],ge);class je extends a['RxDisposable']{constructor(){const _0x160f9e=_0x5adf7c;super(),h(this,_0x160f9e(0x221)),this['urlChange$']=d[_0x160f9e(0x318)](window,_0x160f9e(0x2ae))[_0x160f9e(0x2c4)](d[_0x160f9e(0x310)](this[_0x160f9e(0x311)]),d[_0x160f9e(0x3e5)](0x1),d['mapTo'](void 0x0));}[_0x5adf7c(0x22a)](_0x3aee61,_0x1d302d,_0x14d0a1=!0x1){const _0x89db96=_0x5adf7c,_0x4a49a5=new URL(window[_0x89db96(0x2f2)]['href']);_0x4a49a5[_0x89db96(0x37a)]['set'](_0x3aee61,_0x1d302d),_0x14d0a1?window[_0x89db96(0x308)]['replaceState']('','',_0x4a49a5['toString']()):window[_0x89db96(0x308)][_0x89db96(0x435)]('','',_0x4a49a5[_0x89db96(0x1df)]());}[_0x5adf7c(0x343)](_0x8ddbde,_0x46c960=!0x1){const _0x3ab6ca=_0x5adf7c,_0x1c801d=new URL(window[_0x3ab6ca(0x2f2)][_0x3ab6ca(0x2ea)]);_0x1c801d[_0x3ab6ca(0x37a)]['delete'](_0x8ddbde),_0x46c960?window[_0x3ab6ca(0x308)]['replaceState']('','',_0x1c801d[_0x3ab6ca(0x1df)]()):window['history'][_0x3ab6ca(0x435)]('','',_0x1c801d[_0x3ab6ca(0x1df)]());}[_0x5adf7c(0x249)](_0x190247){const _0x1a81c7=_0x5adf7c;var _0x5ad4ba;return(_0x5ad4ba=new URL(window[_0x1a81c7(0x2f2)]['href'])[_0x1a81c7(0x37a)]['get'](_0x190247))!=null?_0x5ad4ba:void 0x0;}}var qt=Object[_0x5adf7c(0x2a2)],zt=Object[_0x5adf7c(0x401)],Jt=(_0x3152b0,_0x19c22c,_0x7a2953)=>_0x19c22c in _0x3152b0?qt(_0x3152b0,_0x19c22c,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x7a2953}):_0x3152b0[_0x19c22c]=_0x7a2953,Zt=(_0x14e00c,_0x3a1883,_0x50b4e3,_0xae89da)=>{for(var _0x5c1fe5=_0xae89da>0x1?void 0x0:_0xae89da?zt(_0x3a1883,_0x50b4e3):_0x3a1883,_0x4dacfc=_0x14e00c['length']-0x1,_0x355e17;_0x4dacfc>=0x0;_0x4dacfc--)(_0x355e17=_0x14e00c[_0x4dacfc])&&(_0x5c1fe5=_0x355e17(_0x5c1fe5)||_0x5c1fe5);return _0x5c1fe5;},he=(_0x4dd8bd,_0x469d93)=>(_0x8df243,_0xf7e66b)=>_0x469d93(_0x8df243,_0xf7e66b,_0x4dd8bd),Qt=(_0x493ad1,_0x406ea7,_0x1652bc)=>Jt(_0x493ad1,_0x406ea7+'',_0x1652bc);const es='UNIVER_COLLABORATION_CLIENT_WEB_PLUGIN';exports['UniverCollaborationClientUIPlugin']=class extends a[_0x5adf7c(0x2b7)]{constructor(_0x164067=Ue,_0x3cff75,_0x2478d7,_0x2c8d41){const _0x2ade8f=_0x5adf7c;super(),this[_0x2ade8f(0x2ee)]=_0x164067,this['_renderManagerService']=_0x3cff75,this[_0x2ade8f(0x2f4)]=_0x2478d7,this[_0x2ade8f(0x34b)]=_0x2c8d41;const {..._0x21d986}=a[_0x2ade8f(0x289)]({},Ue,this[_0x2ade8f(0x2ee)]);this[_0x2ade8f(0x34b)][_0x2ade8f(0x1e0)]($t,_0x21d986);}[_0x5adf7c(0x2bd)](){const _0x594a0f=_0x5adf7c;this[_0x594a0f(0x281)](),this[_0x594a0f(0x2dc)]();}[_0x5adf7c(0x3ef)](){const _0x421c58=_0x5adf7c;this[_0x421c58(0x336)]();}[_0x5adf7c(0x281)](){const _0x3befbb=_0x5adf7c;var _0x2fcebe;const _0x5694f9=[[me],[Z],[z],[J],[Ce],[be,{'useClass':je}],[G[_0x3befbb(0x2a1)],{'useClass':G['WebSocketService']}],[u['ILocalCacheService'],{'useClass':ge}],[exports[_0x3befbb(0x41f)]],[Q],[q],[x],[de],[exports[_0x3befbb(0x3c3)]]];a['registerDependencies'](this['_injector'],a[_0x3befbb(0x42d)](_0x5694f9,(_0x2fcebe=this[_0x3befbb(0x2ee)])==null?void 0x0:_0x2fcebe['override']));}['_registerRenderDependencies'](){const _0x1493df=_0x5adf7c;this['disposeWithMe'](this[_0x1493df(0x2cf)]['registerRenderModule'](a[_0x1493df(0x2de)][_0x1493df(0x413)],[Ie])),this[_0x1493df(0x238)](this[_0x1493df(0x2cf)][_0x1493df(0x22d)](a[_0x1493df(0x2de)]['UNIVER_SHEET'],[ve]));}[_0x5adf7c(0x2dc)](){const _0x5a8833=_0x5adf7c;a[_0x5a8833(0x26f)](this['_injector'],[[x],[exports[_0x5a8833(0x41f)]],[Q],[q],[exports[_0x5a8833(0x3c3)]]]);}},Qt(exports[_0x5adf7c(0x2bb)],'pluginName',es),exports['UniverCollaborationClientUIPlugin']=Zt([a[_0x5adf7c(0x1c9)](u['UniverCollaborationClientPlugin']),he(0x1,p[_0x5adf7c(0x407)]),he(0x2,a['Inject'](a[_0x5adf7c(0x31e)])),he(0x3,a[_0x5adf7c(0x347)])],exports[_0x5adf7c(0x2bb)]);var ts=Object[_0x5adf7c(0x401)],ss=(_0xbac0b3,_0x306427,_0x43e163,_0x13da4d)=>{for(var _0x9aa8ab=_0x13da4d>0x1?void 0x0:_0x13da4d?ts(_0x306427,_0x43e163):_0x306427,_0x5f5e33=_0xbac0b3['length']-0x1,_0x253265;_0x5f5e33>=0x0;_0x5f5e33--)(_0x253265=_0xbac0b3[_0x5f5e33])&&(_0x9aa8ab=_0x253265(_0x9aa8ab)||_0x9aa8ab);return _0x9aa8ab;},F=(_0x5e4efb,_0x4e41f6)=>(_0x2bfda2,_0x48380d)=>_0x4e41f6(_0x2bfda2,_0x48380d,_0x5e4efb);exports[_0x5adf7c(0x1c5)]=class extends u['CollaborationSocketService']{constructor(_0x233a5f,_0x661c4c,_0x2dbe13,_0x1ddaa4,_0x475627){super(_0x233a5f,_0x661c4c,_0x2dbe13,_0x1ddaa4,_0x475627);}async[_0x5adf7c(0x1bd)](_0x3f3077){const _0x657922=_0x5adf7c,_0x3a7f49=await this[_0x657922(0x1f5)](),_0xb7b62e=this['_createSocketURL'](_0x3f3077,_0x3a7f49);return this[_0x657922(0x32f)](_0xb7b62e);}['_createSocketURL'](_0x42bf90,_0x3735d9){const _0x467b76=_0x5adf7c,_0x106b77=typeof window>'u'?new URL(_0x42bf90):new URL(_0x42bf90,window[_0x467b76(0x2f2)][_0x467b76(0x28c)]);_0x106b77[_0x467b76(0x37a)][_0x467b76(0x34d)]('sessionTicket',_0x3735d9);const _0x394066=typeof window>'u'?new URLSearchParams():new URLSearchParams(window[_0x467b76(0x2f2)]['search']);return _0x394066[_0x467b76(0x229)]('runId')&&_0x106b77['searchParams'][_0x467b76(0x34d)](_0x467b76(0x3f6),_0x394066[_0x467b76(0x229)](_0x467b76(0x3f6))),_0x106b77['toString']();}async[_0x5adf7c(0x1f5)](){const _0x56f544=_0x5adf7c;var _0x14eaa1,_0x951882,_0x5bb0e4;const _0x4540d9=this[_0x56f544(0x34b)][_0x56f544(0x1dc)](u[_0x56f544(0x258)]),_0xaf4feb=(_0x14eaa1=_0x4540d9==null?void 0x0:_0x4540d9[_0x56f544(0x243)])!=null?_0x14eaa1:u['DEFAULT_WS_SESSION_TICKET_URL'];return(_0x5bb0e4=(_0x951882=(await this[_0x56f544(0x24b)]['get'](_0xaf4feb,{'headers':{'Content-Type':_0x56f544(0x242)}}))[_0x56f544(0x245)])==null?void 0x0:_0x951882[_0x56f544(0x217)])!=null?_0x5bb0e4:'';}},exports[_0x5adf7c(0x1c5)]=ss([F(0x0,a['Inject'](a['Injector'])),F(0x1,a['Inject'](G[_0x5adf7c(0x31b)])),F(0x2,a['IConfigService']),F(0x3,a[_0x5adf7c(0x226)]),F(0x4,m[_0x5adf7c(0x3ce)])],exports['BrowserCollaborationSocketService']);const Me=0x7530,Le=_0x5adf7c(0x1f3);class is extends a['Disposable']{constructor(){const _0x52f76a=_0x5adf7c;super(),h(this,_0x52f76a(0x34f),a[_0x52f76a(0x287)]()),h(this,'_selfUnitIDs',new Set()),h(this,'_unitOnClients',new Map()),h(this,_0x52f76a(0x2b8),null),h(this,_0x52f76a(0x436),new Map()),h(this,_0x52f76a(0x382),new Map()),this['_init']();}['dispose'](){const _0x2de204=_0x5adf7c;super[_0x2de204(0x320)](),this[_0x2de204(0x436)]['forEach']((_0x566905,_0xbe5e81)=>this[_0x2de204(0x202)](_0xbe5e81)),this[_0x2de204(0x2b8)]&&window[_0x2de204(0x207)](this[_0x2de204(0x2b8)]);}['getUnitStatus$'](_0x23b210){const _0x37c497=_0x5adf7c;return this[_0x37c497(0x3ff)](_0x23b210)[_0x37c497(0x2c4)](d[_0x37c497(0x1b2)]());}[_0x5adf7c(0x1cc)](_0x560aaf){const _0x1f4728=_0x5adf7c;this[_0x1f4728(0x3e1)][_0x1f4728(0x439)]===0x0&&this[_0x1f4728(0x41c)](),this['_selfUnitIDs']['add'](_0x560aaf),this[_0x1f4728(0x3be)]({'type':0x0,'memberID':this[_0x1f4728(0x34f)],'unitIDs':[_0x560aaf],'isForwarded':!0x1});}[_0x5adf7c(0x1bf)](_0x1939b1){const _0x1b061d=_0x5adf7c;this[_0x1b061d(0x3e1)][_0x1b061d(0x26e)](_0x1939b1),this[_0x1b061d(0x3e1)]['size']===0x0&&this[_0x1b061d(0x2b8)]&&window['clearInterval'](this[_0x1b061d(0x2b8)]);}['_init'](){const _0x5d6767=_0x5adf7c;this[_0x5d6767(0x238)](a[_0x5d6767(0x2da)](d[_0x5d6767(0x318)](window,'storage')['subscribe'](_0xe5ed85=>{const _0x4227a5=_0x5d6767;if(_0xe5ed85[_0x4227a5(0x3e2)]!==Le||!_0xe5ed85[_0x4227a5(0x37e)])return;const _0xa93d5b=JSON[_0x4227a5(0x417)](_0xe5ed85[_0x4227a5(0x37e)]);this['_handleEvent'](_0xa93d5b);}))),window[_0x5d6767(0x3d8)](_0x5d6767(0x267),()=>this[_0x5d6767(0x3be)]({'type':0x1,'memberID':this[_0x5d6767(0x34f)],'unitIDs':Array['from'](this[_0x5d6767(0x3e1)])}));}[_0x5adf7c(0x406)](_0x903be8){const _0x249b88=_0x5adf7c;switch(_0x903be8['type']){case 0x0:this['_handleJoinEvent'](_0x903be8);break;case 0x1:this[_0x249b88(0x414)](_0x903be8);break;case 0x2:this['_handleHeartbeatEvent'](_0x903be8);break;}}['_handleJoinEvent'](_0x4cb2a8){const _0x2151f7=_0x5adf7c,{unitIDs:_0x1d7f37,memberID:_0x208c0e,isForwarded:_0x1bf238}=_0x4cb2a8;_0x1d7f37['forEach'](_0x42b735=>{const _0x2672c3=_0x1625;if(!_0x1bf238&&this[_0x2672c3(0x368)][_0x2672c3(0x2fd)](_0x42b735)&&this[_0x2672c3(0x3ff)](_0x42b735)[_0x2672c3(0x2e3)](u[_0x2672c3(0x35e)][_0x2672c3(0x3a1)]),!this[_0x2672c3(0x368)][_0x2672c3(0x2fd)](_0x42b735)||!this[_0x2672c3(0x368)][_0x2672c3(0x229)](_0x42b735)['has'](_0x208c0e)){const _0x3375ad=this[_0x2672c3(0x368)][_0x2672c3(0x229)](_0x42b735)||new Set();_0x3375ad['add'](_0x208c0e),this[_0x2672c3(0x368)][_0x2672c3(0x34d)](_0x42b735,_0x3375ad),this[_0x2672c3(0x3bb)](_0x208c0e);}}),_0x1bf238||this['_send']({'type':0x0,'memberID':this[_0x2151f7(0x34f)],'unitIDs':[...this['_selfUnitIDs']],'isForwarded':!0x0});}['_scheduleClearOtherTimer'](_0x2844ee){const _0x59bfab=_0x5adf7c;this['_removeClearOtherTimer'](_0x2844ee);const _0x5e06db=window[_0x59bfab(0x28a)](()=>{const _0x4dd571=_0x59bfab;this[_0x4dd571(0x368)][_0x4dd571(0x1fb)](_0x57d31b=>{const _0x1a9a41=_0x4dd571;_0x57d31b[_0x1a9a41(0x26e)](_0x2844ee);});},Me*0x2);this[_0x59bfab(0x436)][_0x59bfab(0x34d)](_0x2844ee,_0x5e06db);}[_0x5adf7c(0x202)](_0x4eeb2e){const _0x38ef3a=_0x5adf7c;if(this[_0x38ef3a(0x436)][_0x38ef3a(0x2fd)](_0x4eeb2e)){const _0x4a84c3=this[_0x38ef3a(0x436)][_0x38ef3a(0x229)](_0x4eeb2e);_0x4a84c3&&window[_0x38ef3a(0x372)](_0x4a84c3),this[_0x38ef3a(0x436)][_0x38ef3a(0x34d)](_0x4eeb2e,null);}}['_handleLeaveEvent'](_0x427d99){const {memberID:_0x5ba38f,unitIDs:_0x530e01}=_0x427d99;_0x530e01['forEach'](_0x444c0b=>{const _0x2f8940=_0x1625;var _0x405917;const _0x2c3434=this['_unitOnClients'][_0x2f8940(0x229)](_0x444c0b);_0x2c3434&&(_0x2c3434[_0x2f8940(0x26e)](_0x5ba38f),(_0x405917=this[_0x2f8940(0x3ff)](_0x444c0b))==null||_0x405917[_0x2f8940(0x2e3)](_0x2c3434['size']===0x0?u[_0x2f8940(0x35e)]['NO_OTHER_CLIENTS_EDITING']:u[_0x2f8940(0x35e)][_0x2f8940(0x3a1)]));}),this['_removeClearOtherTimer'](_0x5ba38f);}[_0x5adf7c(0x1fc)](_0x3e4cbe){const _0x89ba94=_0x5adf7c;this['_scheduleClearOtherTimer'](_0x3e4cbe[_0x89ba94(0x2d5)]);}['_send'](_0x2c0529){const _0xa45b72=_0x5adf7c;localStorage['setItem'](Le,JSON[_0xa45b72(0x298)](_0x2c0529));}['_scheduleHeartbeat'](){const _0x3c87b1=_0x5adf7c;this[_0x3c87b1(0x2b8)]=window[_0x3c87b1(0x31d)](()=>{const _0x442fc2=_0x3c87b1;this['_send']({'type':0x2,'memberID':this[_0x442fc2(0x34f)]});},Me);}['_ensureSubject'](_0x38da9e){const _0x49a2bd=_0x5adf7c;return this[_0x49a2bd(0x382)]['has'](_0x38da9e)||this[_0x49a2bd(0x382)]['set'](_0x38da9e,new d[(_0x49a2bd(0x1d8))](u[_0x49a2bd(0x35e)][_0x49a2bd(0x355)])),this[_0x49a2bd(0x382)][_0x49a2bd(0x229)](_0x38da9e);}}var Be=(_0x56cb00=>(_0x56cb00[_0x56cb00[_0x5adf7c(0x236)]=0x0]=_0x5adf7c(0x236),_0x56cb00[_0x56cb00['OK']=0x1]='OK',_0x56cb00[_0x56cb00[_0x5adf7c(0x36d)]=0x2]=_0x5adf7c(0x36d),_0x56cb00[_0x56cb00[_0x5adf7c(0x2b0)]=0x3]=_0x5adf7c(0x2b0),_0x56cb00[_0x56cb00[_0x5adf7c(0x38d)]=0x4]=_0x5adf7c(0x38d),_0x56cb00[_0x56cb00['UNAUTHENTICATED']=0x5]=_0x5adf7c(0x304),_0x56cb00[_0x56cb00[_0x5adf7c(0x3b2)]=0x6]='ALREADY_EXISTS',_0x56cb00[_0x56cb00[_0x5adf7c(0x3b1)]=0x7]=_0x5adf7c(0x3b1),_0x56cb00[_0x56cb00[_0x5adf7c(0x2f1)]=0x8]=_0x5adf7c(0x2f1),_0x56cb00[_0x56cb00['COMPLETION_FINISHED']=0x9]=_0x5adf7c(0x39d),_0x56cb00[_0x56cb00['LOGIN_FAILED']=0xa]=_0x5adf7c(0x386),_0x56cb00[_0x56cb00[_0x5adf7c(0x3d4)]=0x1389]='CHANGESET_REVISION_CONFILICT',_0x56cb00[_0x56cb00[_0x5adf7c(0x380)]=0x1771]=_0x5adf7c(0x380),_0x56cb00[_0x56cb00[_0x5adf7c(0x2e9)]=0x1772]=_0x5adf7c(0x2e9),_0x56cb00[_0x56cb00['ENSURE_SNAPSHOT_EXECUTION']=0x1773]=_0x5adf7c(0x28b),_0x56cb00[_0x56cb00[_0x5adf7c(0x388)]=0x1b59]=_0x5adf7c(0x388),_0x56cb00[_0x56cb00[_0x5adf7c(0x361)]=0x1b5a]=_0x5adf7c(0x361),_0x56cb00[_0x56cb00[_0x5adf7c(0x37f)]=0x1b5b]=_0x5adf7c(0x37f),_0x56cb00[_0x56cb00[_0x5adf7c(0x2b6)]=0x1b5c]=_0x5adf7c(0x2b6),_0x56cb00[_0x56cb00[_0x5adf7c(0x35a)]=0x1b5d]='APPLY_DUPLICATED',_0x56cb00[_0x56cb00[_0x5adf7c(0x3f1)]=0x1f41]='CONNECTOR_DATA_TOO_LARGE',_0x56cb00[_0x56cb00[_0x5adf7c(0x340)]=0x2329]=_0x5adf7c(0x340),_0x56cb00[_0x56cb00[_0x5adf7c(0x2c1)]=0x232a]=_0x5adf7c(0x2c1),_0x56cb00[_0x56cb00[_0x5adf7c(0x326)]=0x232b]=_0x5adf7c(0x326),_0x56cb00[_0x56cb00[_0x5adf7c(0x2af)]=0x232c]=_0x5adf7c(0x2af),_0x56cb00[_0x56cb00[_0x5adf7c(0x2cd)]=0x232d]=_0x5adf7c(0x2cd),_0x56cb00[_0x56cb00[_0x5adf7c(0x306)]=0x2711]='YUUMI_UNABLE_LOAD_URL',_0x56cb00[_0x56cb00[_0x5adf7c(0x3dd)]=0x2712]=_0x5adf7c(0x3dd),_0x56cb00[_0x56cb00[_0x5adf7c(0x2e7)]=0x2713]=_0x5adf7c(0x2e7),_0x56cb00[_0x56cb00[_0x5adf7c(0x239)]=0x2714]=_0x5adf7c(0x239),_0x56cb00[_0x56cb00[_0x5adf7c(0x28f)]=0x271a]=_0x5adf7c(0x28f),_0x56cb00[_0x56cb00[_0x5adf7c(0x30f)]=0x271b]=_0x5adf7c(0x30f),_0x56cb00[_0x56cb00[_0x5adf7c(0x321)]=0x271c]=_0x5adf7c(0x321),_0x56cb00[_0x56cb00[_0x5adf7c(0x424)]=0x271d]=_0x5adf7c(0x424),_0x56cb00[_0x56cb00[_0x5adf7c(0x41b)]=0x271e]='YUUMI_PROMPT_MAX_TOKENS_EXCEEDED',_0x56cb00[_0x56cb00[_0x5adf7c(0x1d1)]=0x271f]='YUUMI_AI_RUN_FAILED',_0x56cb00[_0x56cb00[_0x5adf7c(0x262)]=0x2af9]=_0x5adf7c(0x262),_0x56cb00[_0x56cb00[_0x5adf7c(0x349)]=0x2ee1]=_0x5adf7c(0x349),_0x56cb00[_0x56cb00[_0x5adf7c(0x35f)]=0x2ee2]=_0x5adf7c(0x35f),_0x56cb00[_0x56cb00[_0x5adf7c(0x40f)]=0x2ee3]='INVITE_CODE_REQUIRED',_0x56cb00[_0x56cb00['USER_NOT_INVITED_CODE']=0x2ee4]=_0x5adf7c(0x2f7),_0x56cb00[_0x56cb00[_0x5adf7c(0x330)]=0x2ee5]=_0x5adf7c(0x330),_0x56cb00[_0x56cb00[_0x5adf7c(0x335)]=0x32c9]='WECHAT_HAS_BEEN_BOUND',_0x56cb00[_0x56cb00[_0x5adf7c(0x371)]=0x32ca]=_0x5adf7c(0x371),_0x56cb00[_0x56cb00['EMAIL_HAS_BEEN_BOUND']=0x32cb]='EMAIL_HAS_BEEN_BOUND',_0x56cb00[_0x56cb00[_0x5adf7c(0x1b9)]=-0x1]=_0x5adf7c(0x1b9),_0x56cb00))(Be||{}),ns=Object['getOwnPropertyDescriptor'],rs=(_0x5b3ed7,_0xf5508d,_0x26f74e,_0x2d6ed9)=>{const _0x5b0ca9=_0x5adf7c;for(var _0x2b492c=_0x2d6ed9>0x1?void 0x0:_0x2d6ed9?ns(_0xf5508d,_0x26f74e):_0xf5508d,_0x509991=_0x5b3ed7[_0x5b0ca9(0x410)]-0x1,_0x450d75;_0x509991>=0x0;_0x509991--)(_0x450d75=_0x5b3ed7[_0x509991])&&(_0x2b492c=_0x450d75(_0x2b492c)||_0x2b492c);return _0x2b492c;},ue=(_0xee6c0a,_0x49ff83)=>(_0x4112e6,_0x183a61)=>_0x49ff83(_0x4112e6,_0x183a61,_0xee6c0a);exports['RemoteUniscriptService']=class extends a[_0x5adf7c(0x3b3)]{constructor(_0x2bc95,_0x32c5bb,_0x508cb8){const _0x2d5265=_0x5adf7c;super(),this[_0x2d5265(0x3b8)]=_0x2bc95,this[_0x2d5265(0x24b)]=_0x32c5bb,this['_configService']=_0x508cb8;}async['runOnServer'](_0x557d4a,_0x2f5cf5,_0x3af441,..._0x20547a){const _0x171489=_0x5adf7c;var _0x2140f3,_0x3239c1,_0x3e60df,_0x4e8338;const _0x24efca=this[_0x171489(0x3b8)][_0x171489(0x26d)]();if(!_0x24efca)throw new Error('[RemoteUniscriptService]:\x20no\x20focused\x20unit');const _0x20eeaf=((_0x2140f3=this[_0x171489(0x34b)][_0x171489(0x1dc)](u[_0x171489(0x404)]))!=null?_0x2140f3:u['DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT'])+'/'+_0x557d4a+_0x171489(0x432)+_0x2f5cf5,_0x508831=new URL(window['location'][_0x171489(0x2ea)]),_0x8ec2d5={'scriptId':_0x557d4a,'runId':(_0x3239c1=_0x508831[_0x171489(0x37a)][_0x171489(0x229)](_0x171489(0x3f6)))!=null?_0x3239c1:'','function':_0x2f5cf5,'unitId':_0x24efca[_0x171489(0x3fa)](),'argsOfFunction':JSON['stringify'](_0x20547a),'invokeId':(_0x3e60df=_0x3af441[_0x171489(0x3ba)])!=null?_0x3e60df:'','executionId':(_0x4e8338=_0x3af441[_0x171489(0x430)])!=null?_0x4e8338:''};try{const _0x4ec72a=await this[_0x171489(0x24b)]['post'](_0x20eeaf,{'body':_0x8ec2d5});return _0x4ec72a[_0x171489(0x245)][_0x171489(0x2a6)]&&_0x4ec72a[_0x171489(0x245)][_0x171489(0x2a6)]['code']!==Be['OK']?_0x171489(0x265):_0x4ec72a['body'][_0x171489(0x22c)];}catch{return'Failed';}}},exports[_0x5adf7c(0x2ed)]=rs([ue(0x0,a['IUniverInstanceService']),ue(0x1,a['Inject'](G[_0x5adf7c(0x31b)])),ue(0x2,a[_0x5adf7c(0x347)])],exports['RemoteUniscriptService']),exports[_0x5adf7c(0x282)]=xe,exports[_0x5adf7c(0x1e1)]=be,exports[_0x5adf7c(0x429)]=Ae,exports['WebBrowserSingleActiveUnitService']=is,exports['WebURLService']=je;
|
|
1
|
+
'use strict';const _0x48e5bc=_0x3f84;(function(_0x29c6d3,_0x4615f8){const _0x543848=_0x3f84,_0x377736=_0x29c6d3();while(!![]){try{const _0x58663b=parseInt(_0x543848(0x2d8))/0x1*(parseInt(_0x543848(0x1b4))/0x2)+parseInt(_0x543848(0x23d))/0x3+-parseInt(_0x543848(0x237))/0x4+parseInt(_0x543848(0x2b7))/0x5*(parseInt(_0x543848(0x1ce))/0x6)+parseInt(_0x543848(0x1b3))/0x7*(-parseInt(_0x543848(0xaa))/0x8)+-parseInt(_0x543848(0xf2))/0x9+-parseInt(_0x543848(0x133))/0xa*(parseInt(_0x543848(0x2d7))/0xb);if(_0x58663b===_0x4615f8)break;else _0x377736['push'](_0x377736['shift']());}catch(_0xa938f8){_0x377736['push'](_0x377736['shift']());}}}(_0x2824,0xc07c2));var Ve=Object[_0x48e5bc(0x228)],Xe=(_0x37a102,_0x45760c,_0x2c1ef0)=>_0x45760c in _0x37a102?Ve(_0x37a102,_0x45760c,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x2c1ef0}):_0x37a102[_0x45760c]=_0x2c1ef0,h=(_0x4766e7,_0x40cb46,_0x58c53e)=>Xe(_0x4766e7,typeof _0x40cb46!=_0x48e5bc(0xa6)?_0x40cb46+'':_0x40cb46,_0x58c53e);Object[_0x48e5bc(0x228)](exports,Symbol[_0x48e5bc(0x2e0)],{'value':'Module'});const u=require(_0x48e5bc(0x221)),a=require('@univerjs/core'),p=require(_0x48e5bc(0xb7)),G=require(_0x48e5bc(0x205)),b=require(_0x48e5bc(0xe2)),Ge=require('@univerjs/drawing'),d=require(_0x48e5bc(0x295)),Y=require('@univerjs/docs'),m=require('@univerjs-pro/collaboration'),Ee=require(_0x48e5bc(0xbe)),g=require(_0x48e5bc(0x22f)),$=require(_0x48e5bc(0xff)),X=require(_0x48e5bc(0x1d8)),P=require(_0x48e5bc(0x17a)),T=require(_0x48e5bc(0x2bd)),D=require(_0x48e5bc(0x90)),M=require('react'),Ke=require(_0x48e5bc(0x271));var qe=Object['getOwnPropertyDescriptor'],ze=(_0x8542ee,_0x11d122,_0x441167,_0x284ea3)=>{for(var _0x3b41a8=_0x284ea3>0x1?void 0x0:_0x284ea3?qe(_0x11d122,_0x441167):_0x11d122,_0x2d5c86=_0x8542ee['length']-0x1,_0x304c43;_0x2d5c86>=0x0;_0x2d5c86--)(_0x304c43=_0x8542ee[_0x2d5c86])&&(_0x3b41a8=_0x304c43(_0x3b41a8)||_0x3b41a8);return _0x3b41a8;},Te=(_0x3d33b6,_0x36cfe6)=>(_0x11cc94,_0x12b0f0)=>_0x36cfe6(_0x11cc94,_0x12b0f0,_0x3d33b6);let de=class extends a[_0x48e5bc(0x9d)]{constructor(_0x5982af,_0x3ec4b9){const _0x9e63cd=_0x48e5bc;super(),this[_0x9e63cd(0x17c)]=_0x5982af,this[_0x9e63cd(0x258)]=_0x3ec4b9,this[_0x9e63cd(0x1c8)]();}[_0x48e5bc(0x1c8)](){const _0x1be47b=_0x48e5bc,_0x2a1a3f=this;this['disposeWithMe'](this[_0x1be47b(0x17c)]['addClipboardHook']({'onBeforePasteImage':async _0x3893f7=>{const _0x4a7d9d=_0x1be47b,_0x2d7428=await _0x2a1a3f[_0x4a7d9d(0x258)][_0x4a7d9d(0xca)](_0x3893f7);return _0x2d7428?{'source':_0x2d7428['source'],'imageSourceType':_0x2d7428[_0x4a7d9d(0x2ab)]}:null;}}));}};de=ze([Te(0x0,b[_0x48e5bc(0x239)]),Te(0x1,Ge['IImageIoService'])],de);const Oe=[_0x48e5bc(0x1cc),_0x48e5bc(0x20f),_0x48e5bc(0x2cb),_0x48e5bc(0x125),'blue.400',_0x48e5bc(0x10e)];class me extends a['Disposable']{constructor(){super(...arguments),h(this,'_assignedColors',new Map()),h(this,'_colorIndex',0x0);}[_0x48e5bc(0xb0)](_0x5a78e6){const _0x17b378=_0x48e5bc;if(this['_assignedColors'][_0x17b378(0x197)](_0x5a78e6))return this[_0x17b378(0x1a8)][_0x17b378(0x20c)](_0x5a78e6);const _0x5d8748=Oe[this[_0x17b378(0xc9)]];return this['_colorIndex']=(this[_0x17b378(0xc9)]+0x1)%Oe['length'],this[_0x17b378(0x1a8)][_0x17b378(0x28a)](_0x5a78e6,_0x5d8748),_0x5d8748;}}function Pe(_0x52fc8c){const _0x16e4c4=_0x48e5bc;let _0x3c7bf9='';for(const _0x119dd9 of _0x52fc8c){const {startOffset:_0x1df73d,endOffset:_0x3f854e,isActive:_0xe6b29,rangeType:_0x2a9fdc,segmentId:_0x14f34a,segmentPage:_0x1cc078}=_0x119dd9;_0x3c7bf9[_0x16e4c4(0x2c5)]&&(_0x3c7bf9+=','),_0x3c7bf9+=_0x1df73d+':'+_0x3f854e+':'+(_0xe6b29?'1':'0')+':'+_0x2a9fdc+':'+_0x14f34a+':'+_0x1cc078;}return _0x3c7bf9;}function Je(_0x497d35){const _0x5e6cf7=_0x48e5bc,_0x9461f3=_0x497d35[_0x5e6cf7(0x2fb)](','),_0x50c548=[];for(const _0x2db39e of _0x9461f3){const [_0x463a96,_0x535737,_0x677f8d,_0x24a6cd,_0xb74e8,_0x1b23d2]=_0x2db39e['split'](':');_0x50c548[_0x5e6cf7(0x232)]({'startOffset':Number(_0x463a96),'endOffset':Number(_0x535737),'collapsed':_0x463a96===_0x535737,'isActive':_0x677f8d==='1','rangeType':_0x24a6cd===a['DOC_RANGE_TYPE'][_0x5e6cf7(0x1d2)]?a['DOC_RANGE_TYPE']['TEXT']:a[_0x5e6cf7(0x1f2)][_0x5e6cf7(0x218)],'segmentId':typeof _0xb74e8=='string'?String(_0xb74e8):'','segmentPage':Number(_0x1b23d2!=null?_0x1b23d2:-0x1)});}return _0x50c548[_0x5e6cf7(0x254)](_0x1accd5=>_0x1accd5[_0x5e6cf7(0x2ca)])||(_0x50c548[0x0][_0x5e6cf7(0x2ca)]=!0x0),_0x50c548;}class Ce extends a[_0x48e5bc(0x9d)]{constructor(){const _0xf0d2a4=_0x48e5bc;super(...arguments),h(this,_0xf0d2a4(0xdf),new d[(_0xf0d2a4(0x16d))](null)),h(this,'collabCursorState$',this[_0xf0d2a4(0xdf)][_0xf0d2a4(0x2b9)]());}[_0x48e5bc(0x26b)](_0x5be014){const _0x1b9a5b=_0x48e5bc,{unitID:_0x484582,memberID:_0x1de7e9,textRanges:_0x3166d7}=_0x5be014,_0x5bfdb9=Pe(_0x3166d7);if(_0x5bfdb9==='')return;const _0x4afbda={'unitID':_0x484582,'memberID':_0x1de7e9,'selection':_0x5bfdb9};this['_collabCursorState$'][_0x1b9a5b(0xbb)](_0x4afbda);}}var Ze=Object[_0x48e5bc(0x275)],Qe=(_0x97676c,_0x4d8921,_0x3156d8,_0x35a769)=>{const _0x3daf70=_0x48e5bc;for(var _0x36b6ef=_0x35a769>0x1?void 0x0:_0x35a769?Ze(_0x4d8921,_0x3156d8):_0x4d8921,_0x999ce4=_0x97676c[_0x3daf70(0x2c5)]-0x1,_0x50be2b;_0x999ce4>=0x0;_0x999ce4--)(_0x50be2b=_0x97676c[_0x999ce4])&&(_0x36b6ef=_0x50be2b(_0x36b6ef)||_0x36b6ef);return _0x36b6ef;},L=(_0x4a3157,_0x3d9326)=>(_0xe315c0,_0x579916)=>_0x3d9326(_0xe315c0,_0x579916,_0x4a3157);const et=0x12c,tt=0x64;let fe=class extends a['RxDisposable']{constructor(_0x492d92,_0x38ecde,_0x38a6ca,_0x51f487,_0x5bab13,_0x40868c,_0x1bb87f,_0x58b651,_0x3b8ef7){const _0x32c6f6=_0x48e5bc;super(),h(this,_0x32c6f6(0x264),!0x1),h(this,_0x32c6f6(0x1c8),!0x1),h(this,_0x32c6f6(0x88),new d['BehaviorSubject'](new Map())),h(this,_0x32c6f6(0x2d6),this[_0x32c6f6(0x88)][_0x32c6f6(0x2b9)]()),h(this,_0x32c6f6(0x2f1),new d[(_0x32c6f6(0x16d))]([])),h(this,_0x32c6f6(0x8a),this[_0x32c6f6(0x2f1)]['pipe'](d[_0x32c6f6(0x14b)](et))),h(this,'_updateLocalCursor',a[_0x32c6f6(0xaf)](_0x30f7af=>{const _0x2ed1c0=_0x32c6f6,_0x4603bc={'eventID':m[_0x2ed1c0(0xf1)]['UPDATE_CURSOR'],'data':{'unitID':this[_0x2ed1c0(0x2e5)],'memberID':this[_0x2ed1c0(0x22a)][_0x2ed1c0(0x26a)](),'selection':Pe(_0x30f7af)}};this[_0x2ed1c0(0x22a)][_0x2ed1c0(0x181)](_0x4603bc,this[_0x2ed1c0(0x2e5)]);},tt)),(this[_0x32c6f6(0x2e5)]=_0x492d92,this[_0x32c6f6(0x22a)]=_0x38ecde,this[_0x32c6f6(0x126)]=_0x38a6ca,this['_colorAssignService']=_0x51f487,this[_0x32c6f6(0x11a)]=_0x5bab13,this['_syncEditingCollabCursorService']=_0x40868c,this['_transformService']=_0x1bb87f,this[_0x32c6f6(0x109)]=_0x58b651,this[_0x32c6f6(0x174)]=_0x3b8ef7);}get[_0x48e5bc(0x138)](){const _0x20b1f7=_0x48e5bc;return this[_0x20b1f7(0x88)][_0x20b1f7(0x2af)]();}get['roomMembers'](){return this['_roomMembers$']['getValue']();}[_0x48e5bc(0x233)](){const _0x39f0ac=_0x48e5bc;super[_0x39f0ac(0x233)](),this[_0x39f0ac(0x88)]['next'](new Map()),this[_0x39f0ac(0x88)]['complete'](),this[_0x39f0ac(0x2f1)][_0x39f0ac(0xbb)]([]),this[_0x39f0ac(0x2f1)][_0x39f0ac(0x14d)]();}[_0x48e5bc(0x2aa)](){const _0x4d7e20=_0x48e5bc;this[_0x4d7e20(0x1c8)]||(this['_init']=!0x0,this[_0x4d7e20(0x22a)][_0x4d7e20(0x2f2)][_0x4d7e20(0x29b)](d['takeUntil'](this[_0x4d7e20(0xcc)]))[_0x4d7e20(0x2fe)](_0xd315b7=>{const _0x22b56c=_0x4d7e20;_0xd315b7===u['SessionStatus']['ONLINE']?this[_0x22b56c(0xb3)]():this[_0x22b56c(0x25e)]();}),this[_0x4d7e20(0x22a)]['event$'][_0x4d7e20(0x29b)](d['takeUntil'](this[_0x4d7e20(0xcc)]))[_0x4d7e20(0x2fe)](_0x40f5d4=>{const _0x915012=_0x4d7e20,_0x39db35=_0x40f5d4[_0x915012(0xa3)];_0x39db35===m[_0x915012(0xf1)][_0x915012(0x2ad)]&&this['_onCursorUpdate'](_0x40f5d4),_0x39db35===m[_0x915012(0xf1)][_0x915012(0x28e)]&&this[_0x915012(0xe0)](_0x40f5d4);}),this['disposeWithMe'](this[_0x4d7e20(0x174)][_0x4d7e20(0x2a0)](_0x30d101=>{const _0x4c7b67=_0x4d7e20,_0x3fcdb2=_0x30d101['params'];_0x3fcdb2!=null&&this[_0x4c7b67(0x264)]&&_0x30d101['id']===Y['SetTextSelectionsOperation']['id']&&_0x3fcdb2[_0x4c7b67(0x1ea)]===this[_0x4c7b67(0x2e5)]&&_0x3fcdb2[_0x4c7b67(0x249)]===!0x1&&_0x3fcdb2[_0x4c7b67(0x2ed)][_0x4c7b67(0x2c5)]>0x0&&this[_0x4c7b67(0x2f8)](_0x3fcdb2[_0x4c7b67(0x2ed)]);})),this[_0x4d7e20(0x13e)][_0x4d7e20(0x10d)][_0x4d7e20(0x29b)](d['takeUntil'](this[_0x4d7e20(0xcc)]))[_0x4d7e20(0x2fe)](_0x275f36=>{const _0xe6f386=_0x4d7e20;if((_0x275f36==null?void 0x0:_0x275f36['unitID'])!==this[_0xe6f386(0x2e5)])return;const _0x27b378={'eventID':m[_0xe6f386(0xf1)]['UPDATE_CURSOR'],'data':_0x275f36};this['_onCursorUpdate'](_0x27b378);}),this[_0x4d7e20(0x173)](this[_0x4d7e20(0x174)]['onCommandExecuted'](_0x583f8c=>{const _0xbe6e92=_0x4d7e20;if(_0x583f8c['params']==null)return;const _0x40c0bf=_0x583f8c[_0xbe6e92(0x26e)];if(_0x583f8c['id']!==Y[_0xbe6e92(0x196)]['id']||_0x40c0bf[_0xbe6e92(0x1ea)]!==this[_0xbe6e92(0x2e5)])return;const _0x2a8199={'id':_0xbe6e92(0x236),'params':_0x40c0bf},_0x5ca91d=this[_0xbe6e92(0x138)];for(const [_0x3c5c4d,_0x51c0b0]of _0x5ca91d){const _0x3775c2={'id':_0xbe6e92(0x236),'params':{'unitId':this[_0xbe6e92(0x2e5)],'actions':null,'textRanges':_0x51c0b0[_0xbe6e92(0x2ed)]}},_0x53edc7=this[_0xbe6e92(0x201)][_0xbe6e92(0x195)](_0x2a8199,_0x3775c2,!0x1);if(m['isTransformMutationFailure'](_0x53edc7))throw _0x53edc7[_0xbe6e92(0x272)];_0x5ca91d[_0xbe6e92(0x28a)](_0x3c5c4d,{..._0x51c0b0,'ranges':_0x53edc7[_0xbe6e92(0x277)][_0xbe6e92(0x26e)][_0xbe6e92(0x1cd)]});}queueMicrotask(()=>{const _0x4318a5=_0xbe6e92;this[_0x4318a5(0x88)][_0x4318a5(0xbb)](_0x5ca91d);});})));}[_0x48e5bc(0x11b)](_0x4a97e9){const _0x21fa9a=_0x48e5bc;var _0x1166d2,_0xcdcf1c;const {memberID:_0x1cbfe9,selection:_0xeced80}=_0x4a97e9[_0x21fa9a(0x10f)],_0x39675=Je(_0xeced80),_0x42eb82=(_0xcdcf1c=(_0x1166d2=this[_0x21fa9a(0x11a)][_0x21fa9a(0x28f)](this[_0x21fa9a(0x2e5)],_0x1cbfe9))==null?void 0x0:_0x1166d2['name'])!=null?_0xcdcf1c:_0x21fa9a(0x2c9),_0x587f80={'color':this[_0x21fa9a(0x1f4)][_0x21fa9a(0xb0)](_0x1cbfe9),'name':_0x42eb82,'ranges':_0x39675},_0x52c4be=this[_0x21fa9a(0x138)];_0x52c4be['set'](_0x1cbfe9,_0x587f80),this[_0x21fa9a(0x88)][_0x21fa9a(0xbb)](_0x52c4be);}[_0x48e5bc(0xe0)](_0xf2ae2f){const _0x283f7e=_0x48e5bc,{memberID:_0x56402f}=_0xf2ae2f['data'],_0x1a5a80=this['cursorInfo'];_0x1a5a80['delete'](_0x56402f),this['_cursorInfo$'][_0x283f7e(0xbb)](_0x1a5a80);}['_toggleOnline'](){const _0x220b57=_0x48e5bc;var _0x1de631;if(this[_0x220b57(0x264)]=!0x0,((_0x1de631=this[_0x220b57(0x109)][_0x220b57(0x2a3)]())==null?void 0x0:_0x1de631['getUnitId']())!==this['unitID'])return;const _0x143c52=this[_0x220b57(0x126)][_0x220b57(0x20c)](Y[_0x220b57(0xec)])[_0x220b57(0xdc)]();Array[_0x220b57(0x1b9)](_0x143c52)&&_0x143c52['length']>0x0&&this[_0x220b57(0x2f8)](_0x143c52);}[_0x48e5bc(0x25e)](){const _0xd7e8bd=_0x48e5bc;this[_0xd7e8bd(0x264)]=!0x1;}};fe=Qe([L(0x2,a[_0x48e5bc(0x28c)](a[_0x48e5bc(0x102)])),L(0x3,a[_0x48e5bc(0x28c)](me)),L(0x4,a['Inject'](u['MemberService'])),L(0x5,a[_0x48e5bc(0x28c)](Ce)),L(0x6,m[_0x48e5bc(0x129)]),L(0x7,a[_0x48e5bc(0x9f)]),L(0x8,a[_0x48e5bc(0x110)])],fe);var st=Object['getOwnPropertyDescriptor'],it=(_0x34d3fe,_0x3e11fa,_0x59c8fb,_0x1a1330)=>{const _0x2b23d6=_0x48e5bc;for(var _0x4846f0=_0x1a1330>0x1?void 0x0:_0x1a1330?st(_0x3e11fa,_0x59c8fb):_0x3e11fa,_0x3b0f55=_0x34d3fe[_0x2b23d6(0x2c5)]-0x1,_0x76a3f0;_0x3b0f55>=0x0;_0x3b0f55--)(_0x76a3f0=_0x34d3fe[_0x3b0f55])&&(_0x4846f0=_0x76a3f0(_0x4846f0)||_0x4846f0);return _0x4846f0;},w=(_0x3d9632,_0x3ac892)=>(_0x264183,_0x3c2b42)=>_0x3ac892(_0x264183,_0x3c2b42,_0x3d9632);const nt=0x12c,rt=0x64,ot=()=>{let _0x716ced=[],_0x20a8ff=!0x1;return _0x2212d9=>{const _0x3be988=_0x3f84;_0x716ced[_0x3be988(0x232)](_0x2212d9),_0x20a8ff||(_0x20a8ff=!0x0,setTimeout(()=>{_0x716ced['forEach'](_0x1dbf4f=>_0x1dbf4f()),_0x716ced=[],_0x20a8ff=!0x1;}));};};let Se=class extends a[_0x48e5bc(0x9d)]{constructor(_0x349563,_0x42ea35,_0x4f64ed,_0xaa3c1f,_0x4bada1,_0xd19eb1,_0x2027c6,_0x1e60c1){const _0x484dc4=_0x48e5bc;super(),h(this,'_online',!0x1),h(this,'_init',!0x1),h(this,_0x484dc4(0x88),new d[(_0x484dc4(0x16d))](new Map())),h(this,_0x484dc4(0x2d6),this['_cursorInfo$'][_0x484dc4(0x2b9)]()),h(this,_0x484dc4(0x2f1),new d[(_0x484dc4(0x16d))]([])),h(this,'roomMembers$',this[_0x484dc4(0x2f1)]['pipe'](d['debounceTime'](nt))),h(this,_0x484dc4(0x2f8),a[_0x484dc4(0xaf)]((_0x571f26,_0x486c6b)=>{const _0xa6cd36=_0x484dc4,_0x1464ed={'eventID':m[_0xa6cd36(0xf1)][_0xa6cd36(0x2ad)],'data':{'unitID':this[_0xa6cd36(0x2e5)],'memberID':this['_session'][_0xa6cd36(0x26a)](),'selection':Ee[_0xa6cd36(0xd8)](_0x571f26,_0x486c6b['range'])}};this[_0xa6cd36(0x22a)][_0xa6cd36(0x181)](_0x1464ed,this[_0xa6cd36(0x2e5)]);},rt)),(this['unitID']=_0x349563,this[_0x484dc4(0x22a)]=_0x42ea35,this['_injector']=_0x4f64ed,this[_0x484dc4(0x1f4)]=_0xaa3c1f,this[_0x484dc4(0x11a)]=_0x4bada1,this[_0x484dc4(0x109)]=_0xd19eb1,this[_0x484dc4(0x174)]=_0x2027c6,this[_0x484dc4(0x10c)]=_0x1e60c1);}get['cursorInfo'](){const _0x3486b6=_0x48e5bc;return this[_0x3486b6(0x88)][_0x3486b6(0x2af)]();}get['roomMembers'](){const _0x4aa6aa=_0x48e5bc;return this['_roomMembers$'][_0x4aa6aa(0x2af)]();}[_0x48e5bc(0x233)](){const _0x8a3247=_0x48e5bc;super['dispose'](),this[_0x8a3247(0x88)][_0x8a3247(0xbb)](new Map()),this[_0x8a3247(0x88)][_0x8a3247(0x14d)](),this[_0x8a3247(0x2f1)][_0x8a3247(0xbb)]([]),this[_0x8a3247(0x2f1)][_0x8a3247(0x14d)]();}[_0x48e5bc(0x2aa)](){const _0x48c87d=_0x48e5bc;this[_0x48c87d(0x1c8)]||(this[_0x48c87d(0x1c8)]=!0x0,this[_0x48c87d(0x22a)][_0x48c87d(0x2f2)]['pipe'](d[_0x48c87d(0xdd)](this[_0x48c87d(0xcc)]))[_0x48c87d(0x2fe)](_0x4a976d=>{const _0xf18e4d=_0x48c87d;_0x4a976d===u[_0xf18e4d(0x18b)][_0xf18e4d(0x17e)]?this[_0xf18e4d(0xb3)]():this[_0xf18e4d(0x25e)]();}),this[_0x48c87d(0x22a)][_0x48c87d(0xd2)]['pipe'](d['takeUntil'](this['dispose$']))[_0x48c87d(0x2fe)](_0x23e54c=>{const _0x8ca1de=_0x48c87d,_0x3774ea=_0x23e54c[_0x8ca1de(0xa3)];_0x3774ea===m[_0x8ca1de(0xf1)][_0x8ca1de(0x2ad)]&&this['_onCursorUpdate'](_0x23e54c),_0x3774ea===m[_0x8ca1de(0xf1)][_0x8ca1de(0x28e)]&&this[_0x8ca1de(0xe0)](_0x23e54c);}),this[_0x48c87d(0xd6)](),this[_0x48c87d(0x173)](this[_0x48c87d(0x174)]['onCommandExecuted'](_0x5f0f9d=>{const _0x3196f9=_0x48c87d;if(this['_online']&&_0x5f0f9d['id']===g[_0x3196f9(0x219)]['id']&&_0x5f0f9d[_0x3196f9(0x26e)][_0x3196f9(0x1ea)]===this[_0x3196f9(0x2e5)]){const _0xfbeb5b=_0x5f0f9d[_0x3196f9(0x26e)];this[_0x3196f9(0x2f8)](_0xfbeb5b[_0x3196f9(0x1fd)],_0xfbeb5b[_0x3196f9(0x209)][0x0]);}})));}[_0x48e5bc(0x11b)](_0x2fb241){const _0xca5b21=_0x48e5bc;var _0x56c993,_0x2ed5e5;const {memberID:_0x1f45b6,selection:_0x525564}=_0x2fb241[_0xca5b21(0x10f)],{sheetName:_0x249960,range:_0x288617}=Ee[_0xca5b21(0x2bf)](_0x525564),_0x389f2d={'name':(_0x2ed5e5=(_0x56c993=this['_memberService']['getMember'](this[_0xca5b21(0x2e5)],_0x1f45b6))==null?void 0x0:_0x56c993[_0xca5b21(0x1be)])!=null?_0x2ed5e5:'Unknown\x20user','range':this[_0xca5b21(0x171)](_0x249960,_0x288617),'sheetID':_0x249960,'color':this[_0xca5b21(0x1f4)][_0xca5b21(0xb0)](_0x1f45b6),'selection':_0x525564},_0x434d73=this[_0xca5b21(0x138)];_0x434d73[_0xca5b21(0x28a)](_0x1f45b6,_0x389f2d),this[_0xca5b21(0x88)][_0xca5b21(0xbb)](_0x434d73);}['_onCursorDelete'](_0x5e648b){const _0x57c9ed=_0x48e5bc,{memberID:_0x22d0fa}=_0x5e648b['data'],_0x51cb52=this[_0x57c9ed(0x138)];_0x51cb52['delete'](_0x22d0fa),this[_0x57c9ed(0x88)][_0x57c9ed(0xbb)](_0x51cb52);}['_getMergeRange'](_0x47513d,_0x3a4983){const _0x7358fa=_0x48e5bc;var _0x180989,_0x493dda;const _0x419e33=(_0x493dda=(_0x180989=this[_0x7358fa(0x109)][_0x7358fa(0x227)](this[_0x7358fa(0x2e5)]))==null?void 0x0:_0x180989[_0x7358fa(0x1f8)](_0x47513d))==null?void 0x0:_0x493dda['getMergeData']();return(_0x419e33==null?void 0x0:_0x419e33[_0x7358fa(0x81)](_0x58d8b2=>a[_0x7358fa(0x139)]['contains'](_0x58d8b2,_0x3a4983)))||_0x3a4983;}[_0x48e5bc(0xd6)](){const _0x4574f2=_0x48e5bc,_0x3249d8=new a[(_0x4574f2(0x2e9))](),_0x3228cf=ot(),_0xcdba7e=()=>{const _0x2a48cc=_0x4574f2;_0x3249d8['dispose']();const _0x53df8f=(_0x1e2404,_0x5a8b0c,_0x46e992,_0x82ea2d)=>{const _0x490467=_0x3f84;let _0x5ab064=[];switch(_0x1e2404['id']){case g[_0x490467(0x24d)]['DeleteRangeMoveLeftCommandId']:{_0x5ab064=g['handleDeleteRangeMoveLeft'](_0x1e2404,_0x82ea2d);break;}case g[_0x490467(0x24d)][_0x490467(0x1a4)]:{_0x5ab064=g['handleDeleteRangeMoveUp'](_0x1e2404,_0x82ea2d);break;}case g[_0x490467(0x24d)][_0x490467(0x1b7)]:{_0x5ab064=g[_0x490467(0x98)](_0x1e2404,_0x82ea2d);break;}case g[_0x490467(0x24d)][_0x490467(0x204)]:{_0x5ab064=g[_0x490467(0x157)](_0x1e2404,_0x82ea2d);break;}case g[_0x490467(0x24d)][_0x490467(0x1c7)]:{_0x5ab064=g[_0x490467(0x213)](_0x1e2404,_0x82ea2d);break;}case g['EffectRefRangId'][_0x490467(0x14a)]:{_0x5ab064=g['handleInsertRow'](_0x1e2404,_0x82ea2d);break;}case g[_0x490467(0x24d)][_0x490467(0x215)]:{_0x5ab064=g['handleMoveRange'](_0x1e2404,_0x82ea2d);break;}case g[_0x490467(0x24d)]['RemoveColCommandId']:{_0x5ab064=g[_0x490467(0x112)](_0x1e2404,_0x82ea2d);break;}case g[_0x490467(0x24d)][_0x490467(0x12d)]:{_0x5ab064=g[_0x490467(0x1cf)](_0x1e2404,_0x82ea2d);break;}}const _0x435d04=g[_0x490467(0x2b5)](_0x5ab064,_0x82ea2d),_0x1052b6=this['cursorInfo'][_0x490467(0x20c)](_0x5a8b0c);if(_0x1052b6&&_0x435d04){const _0x13f627={..._0x1052b6,'range':_0x435d04};this[_0x490467(0x138)][_0x490467(0x28a)](_0x5a8b0c,_0x13f627),_0x3228cf(()=>{const _0x428dca=_0x490467,_0x41dbfc=this[_0x428dca(0x10c)][_0x428dca(0x1e3)](_0x435d04,_0x4e2c98=>(_0x41dbfc[_0x428dca(0x233)](),_0x53df8f(_0x4e2c98,_0x5a8b0c,_0x46e992,_0x435d04)));_0x3249d8[_0x428dca(0x151)](_0x41dbfc);});}return{'redos':[],'undos':[]};};this[_0x2a48cc(0x138)]['forEach']((_0x2dcf4c,_0x1f840d)=>{const _0x5d5729=_0x2a48cc,{range:_0x8a0671,sheetID:_0x54ec93}=_0x2dcf4c,_0x3c972d=this['_refRangeService'][_0x5d5729(0x1e3)](_0x8a0671,_0x29e204=>(_0x3c972d[_0x5d5729(0x233)](),_0x53df8f(_0x29e204,_0x1f840d,_0x54ec93,_0x8a0671)));_0x3249d8['add'](_0x3c972d);});};this['disposeWithMe'](a[_0x4574f2(0x26d)](this[_0x4574f2(0x88)]['subscribe'](()=>{_0xcdba7e();})));}[_0x48e5bc(0xb3)](){const _0x410673=_0x48e5bc;var _0x2f4ac3,_0x558cdd;if(this[_0x410673(0x264)]=!0x0,((_0x2f4ac3=this[_0x410673(0x109)][_0x410673(0x2a3)]())==null?void 0x0:_0x2f4ac3[_0x410673(0x280)]())!==this[_0x410673(0x2e5)])return;const _0x18747b=(_0x558cdd=this['_injector'][_0x410673(0x20c)](g['SheetsSelectionsService'])['getCurrentSelections']())==null?void 0x0:_0x558cdd[0x0],_0x4abda8=this[_0x410673(0x109)][_0x410673(0x1e0)](a[_0x410673(0x80)]['UNIVER_SHEET'])[_0x410673(0x92)]();_0x18747b&&_0x4abda8&&this[_0x410673(0x2f8)](_0x4abda8['getSheetId'](),_0x18747b);}[_0x48e5bc(0x25e)](){const _0xc89c83=_0x48e5bc;this[_0xc89c83(0x264)]=!0x1;}};Se=it([w(0x2,a[_0x48e5bc(0x28c)](a[_0x48e5bc(0x102)])),w(0x3,a[_0x48e5bc(0x28c)](me)),w(0x4,a[_0x48e5bc(0x28c)](u[_0x48e5bc(0x252)])),w(0x5,a[_0x48e5bc(0x9f)]),w(0x6,a[_0x48e5bc(0x110)]),w(0x7,a[_0x48e5bc(0x28c)](g[_0x48e5bc(0x15d)]))],Se);var at=Object[_0x48e5bc(0x275)],ct=(_0x58c30f,_0x585066,_0x3dc7c6,_0x25e610)=>{const _0x21b7d7=_0x48e5bc;for(var _0x123271=_0x25e610>0x1?void 0x0:_0x25e610?at(_0x585066,_0x3dc7c6):_0x585066,_0x389e75=_0x58c30f[_0x21b7d7(0x2c5)]-0x1,_0x3b5a85;_0x389e75>=0x0;_0x389e75--)(_0x3b5a85=_0x58c30f[_0x389e75])&&(_0x123271=_0x3b5a85(_0x123271)||_0x123271);return _0x123271;},ie=(_0x12001b,_0x58e2cf)=>(_0x4ad198,_0x266a32)=>_0x58e2cf(_0x4ad198,_0x266a32,_0x12001b);let x=class extends a['RxDisposable']{constructor(_0x3fc26c,_0x3484b2,_0xba5ff3){const _0x3633f8=_0x48e5bc;super(),h(this,_0x3633f8(0x94),new Map()),h(this,'_entityInit$',new d['Subject']()),(this[_0x3633f8(0x109)]=_0x3fc26c,this[_0x3633f8(0x126)]=_0x3484b2,this['_collabSessionService']=_0xba5ff3,this[_0x3633f8(0x1c8)]());}[_0x48e5bc(0x233)](){const _0x45fe48=_0x48e5bc;super['dispose'](),this['_entityInit$'][_0x45fe48(0x14d)](),this[_0x45fe48(0x94)][_0x45fe48(0x299)](_0x6cc1a0=>_0x6cc1a0[_0x45fe48(0x233)]());}[_0x48e5bc(0x291)](_0x2cb190){const _0x522a0b=_0x48e5bc;return this[_0x522a0b(0x94)][_0x522a0b(0x197)](_0x2cb190)?this[_0x522a0b(0x94)][_0x522a0b(0x20c)](_0x2cb190)[_0x522a0b(0x2d6)]:this[_0x522a0b(0xc2)][_0x522a0b(0x29b)](d[_0x522a0b(0x2e1)](_0x14ffa3=>_0x14ffa3[_0x522a0b(0x2e5)]===_0x2cb190),d['switchMap'](_0x531d48=>_0x531d48[_0x522a0b(0x2d6)]));}[_0x48e5bc(0x1c8)](){const _0x1ed0c2=_0x48e5bc;this[_0x1ed0c2(0x109)][_0x1ed0c2(0x2dd)](a[_0x1ed0c2(0x80)][_0x1ed0c2(0x1f3)])[_0x1ed0c2(0x29b)](d['takeUntil'](this[_0x1ed0c2(0xcc)]))[_0x1ed0c2(0x2fe)](async _0x11a113=>{const _0x2ae54f=_0x1ed0c2,_0xc3d8b9=_0x11a113['getUnitId'](),_0x1159f1=await this[_0x2ae54f(0x27c)](_0xc3d8b9);this[_0x2ae54f(0xc2)][_0x2ae54f(0xbb)](_0x1159f1),this['_entities']['set'](_0xc3d8b9,_0x1159f1);}),this[_0x1ed0c2(0x109)][_0x1ed0c2(0x2dd)](a[_0x1ed0c2(0x80)][_0x1ed0c2(0x143)])[_0x1ed0c2(0x29b)](d[_0x1ed0c2(0xdd)](this[_0x1ed0c2(0xcc)]))[_0x1ed0c2(0x29b)](d[_0x1ed0c2(0x2e1)](_0x2c42a5=>!_0x2c42a5[_0x1ed0c2(0x280)]()[_0x1ed0c2(0x1ba)]('__')))[_0x1ed0c2(0x2fe)](async _0x484df8=>{const _0x83428c=_0x1ed0c2,_0x1a1eab=_0x484df8['getUnitId'](),_0x1b0b1c=await this[_0x83428c(0xf4)](_0x1a1eab);this[_0x83428c(0xc2)][_0x83428c(0xbb)](_0x1b0b1c),this['_entities']['set'](_0x1a1eab,_0x1b0b1c);}),d[_0x1ed0c2(0x116)](this[_0x1ed0c2(0x109)][_0x1ed0c2(0x293)](a[_0x1ed0c2(0x80)]['UNIVER_DOC']),this[_0x1ed0c2(0x109)][_0x1ed0c2(0x293)](a[_0x1ed0c2(0x80)][_0x1ed0c2(0x1f3)]))[_0x1ed0c2(0x29b)](d[_0x1ed0c2(0xdd)](this[_0x1ed0c2(0xcc)]))[_0x1ed0c2(0x2fe)](_0x594ba6=>{const _0x567965=_0x1ed0c2,_0x4254bf=_0x594ba6[_0x567965(0x280)](),_0x15fb7e=this['_entities'][_0x567965(0x20c)](_0x4254bf);_0x15fb7e&&(_0x15fb7e[_0x567965(0x233)](),this['_entities'][_0x567965(0x250)](_0x4254bf));});}async[_0x48e5bc(0x27c)](_0x57f4fe){const _0x3915bb=_0x48e5bc,_0x425884=await this[_0x3915bb(0x100)][_0x3915bb(0x2f5)](_0x57f4fe),_0x4a3222=this['_injector'][_0x3915bb(0x29f)](Se,_0x57f4fe,_0x425884);return _0x4a3222[_0x3915bb(0x2aa)](),_0x4a3222;}async[_0x48e5bc(0xf4)](_0x280d02){const _0x5a0aa6=_0x48e5bc,_0x2a997a=await this[_0x5a0aa6(0x100)]['requireSession'](_0x280d02),_0x550192=this['_injector']['createInstance'](fe,_0x280d02,_0x2a997a);return _0x550192[_0x5a0aa6(0x2aa)](),_0x550192;}};x=ct([ie(0x0,a['IUniverInstanceService']),ie(0x1,a[_0x48e5bc(0x28c)](a[_0x48e5bc(0x102)])),ie(0x2,a[_0x48e5bc(0x28c)](u[_0x48e5bc(0x29d)]))],x);const K=0x14,Re=0xc8,ne=0x4,lt=0x5;function _t(_0x3e644e,_0x8cd665){const _0x53a29c=_0x48e5bc;let {radius:_0x35a78e,width:_0x5e879d,height:_0x4514a3}=_0x8cd665;_0x35a78e=_0x35a78e!=null?_0x35a78e:0x0,_0x5e879d=_0x5e879d!=null?_0x5e879d:0x1e,_0x4514a3=_0x4514a3!=null?_0x4514a3:0x1e;let _0x51d1d3=0x0,_0x24b69c=0x0,_0x18e2c7=0x0;_0x51d1d3=_0x24b69c=_0x18e2c7=Math[_0x53a29c(0x202)](_0x35a78e,_0x5e879d/0x2,_0x4514a3/0x2),_0x3e644e['beginPath'](),_0x3e644e[_0x53a29c(0x8b)](_0x51d1d3,0x0),_0x3e644e['lineTo'](_0x5e879d-_0x24b69c,0x0),_0x3e644e[_0x53a29c(0x180)](_0x5e879d-_0x24b69c,_0x24b69c,_0x24b69c,Math['PI']*0x3/0x2,0x0,!0x1),_0x3e644e[_0x53a29c(0x1f0)](_0x5e879d,_0x4514a3-_0x18e2c7),_0x3e644e['arc'](_0x5e879d-_0x18e2c7,_0x4514a3-_0x18e2c7,_0x18e2c7,0x0,Math['PI']/0x2,!0x1),_0x3e644e['lineTo'](0x0,_0x4514a3),_0x3e644e['lineTo'](0x0,_0x51d1d3),_0x3e644e[_0x53a29c(0x180)](_0x51d1d3,_0x51d1d3,_0x51d1d3,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x3e644e[_0x53a29c(0x211)](),_0x8cd665[_0x53a29c(0x21c)]&&(_0x3e644e[_0x53a29c(0x17b)](),_0x3e644e[_0x53a29c(0x19f)]=_0x8cd665[_0x53a29c(0x21c)],_0x8cd665['fillRule']==='evenodd'?_0x3e644e[_0x53a29c(0x21c)](_0x53a29c(0x111)):_0x3e644e[_0x53a29c(0x21c)](),_0x3e644e['restore']());}class ee extends p[_0x48e5bc(0x135)]{constructor(_0xedc38c,_0x2a1de6){const _0x42671e=_0x48e5bc;super(_0xedc38c,_0x2a1de6),h(this,_0x42671e(0xc1)),h(this,'text'),(this[_0x42671e(0xc1)]=_0x2a1de6==null?void 0x0:_0x2a1de6[_0x42671e(0xc1)],this[_0x42671e(0x24b)]=_0x2a1de6==null?void 0x0:_0x2a1de6[_0x42671e(0x24b)]);}static[_0x48e5bc(0xbf)](_0x1c1b37,_0x3d3eb0){const _0x1265d2=_0x48e5bc,{text:_0xfcf2aa,color:_0x24abbc}=_0x3d3eb0;_0x1c1b37[_0x1265d2(0x17b)](),_0x1c1b37[_0x1265d2(0x260)]='bold\x2013px\x20Source\x20Han\x20Sans\x20CN';const _0x568567=_0x1c1b37[_0x1265d2(0x2a9)](_0xfcf2aa)[_0x1265d2(0xb9)],_0x2d5ad2=Math[_0x1265d2(0x202)](_0x568567+0x2*ne,Re);_t(_0x1c1b37,{'height':K,'radius':0x4,'width':_0x2d5ad2,'fill':_0x24abbc}),_0x1c1b37[_0x1265d2(0x19f)]=_0x1265d2(0x167);const _0x2a5f53=ne,_0x5ae32e=K-lt,_0x3dad0a=Re-0x2*ne;if(_0x568567>_0x3dad0a){let _0x2a2298='',_0x279158=0x0;for(const _0x5b5752 of _0xfcf2aa){const _0x21f496=_0x1c1b37[_0x1265d2(0x2a9)](_0x5b5752)[_0x1265d2(0xb9)];if(_0x279158+_0x21f496<=_0x3dad0a-_0x1c1b37[_0x1265d2(0x2a9)]('...')[_0x1265d2(0xb9)])_0x2a2298+=_0x5b5752,_0x279158+=_0x21f496;else{_0x2a2298+=_0x1265d2(0x281);break;}}_0x1c1b37['fillText'](_0x2a2298,_0x2a5f53,_0x5ae32e);}else _0x1c1b37[_0x1265d2(0x11c)](_0xfcf2aa,_0x2a5f53,_0x5ae32e);_0x1c1b37[_0x1265d2(0xa0)]();}[_0x48e5bc(0x2ff)](_0x102d83){const _0x303883=_0x48e5bc;ee[_0x303883(0xbf)](_0x102d83,this);}}const re=_0x48e5bc(0x2a7),ht=_0x48e5bc(0xce),ut='collab-rect-range-',k=0x6,dt=1.5,oe=0x4,ft=1.5,St=_0x48e5bc(0x148);class De{constructor(_0x2cfe85,_0x35a55a,_0x51d4f9,_0x295500){const _0x4d2f4d=_0x48e5bc;h(this,'_shapes',[]),h(this,'_anchor',null),h(this,'_textBubble',null),h(this,'_anchorDot',null),h(this,_0x4d2f4d(0x15f),null),h(this,_0x4d2f4d(0x1a1),null),(this[_0x4d2f4d(0x2e8)]=_0x2cfe85,this[_0x4d2f4d(0x1bb)]=_0x35a55a,this[_0x4d2f4d(0xe1)]=_0x51d4f9,this[_0x4d2f4d(0xe5)]=_0x295500,this['_render']());}set[_0x48e5bc(0x25a)](_0x14dbc7){const _0x56b6a9=_0x48e5bc;_0x14dbc7?(this[_0x56b6a9(0x1a7)]&&this['_anchorDot'][_0x56b6a9(0x2d3)](),this[_0x56b6a9(0xdb)]&&this[_0x56b6a9(0xdb)][_0x56b6a9(0x15c)]()):(this[_0x56b6a9(0x1a7)]&&this[_0x56b6a9(0x1a7)][_0x56b6a9(0x15c)](),this[_0x56b6a9(0xdb)]&&this[_0x56b6a9(0xdb)]['hide']());}[_0x48e5bc(0x233)](){const _0x3dd69f=_0x48e5bc;for(const _0x4494c7 of this[_0x3dd69f(0x1b5)])_0x4494c7[_0x3dd69f(0x233)]();this[_0x3dd69f(0xdb)]&&this[_0x3dd69f(0xdb)]['dispose'](),this[_0x3dd69f(0x1a7)]&&this[_0x3dd69f(0x1a7)][_0x3dd69f(0x233)](),this[_0x3dd69f(0x1aa)]&&this[_0x3dd69f(0x1aa)][_0x3dd69f(0x233)](),this['_eventUnsubscribe']&&this[_0x3dd69f(0x1a1)]();}[_0x48e5bc(0x142)](){const _0x116c14=_0x48e5bc;var _0x246eaf;const {_docSkeleton:_0x2c065c,_document:_0x1799a3}=this,{color:_0x580eae,name:_0x231975,ranges:_0x3e8bcf}=this['_cursor'],_0x31c1b6=_0x1799a3['getOffsetConfig'](),{docsLeft:_0x1443e5,docsTop:_0x52951e}=_0x31c1b6,_0x2eff5e=new b[(_0x116c14(0x21e))](_0x31c1b6,_0x2c065c);for(const {startOffset:_0xa357c3,endOffset:_0x512251,rangeType:_0x21537e,segmentId:_0x108261,segmentPage:_0x4b7545,collapsed:_0x454a1d,isActive:_0x22751e}of _0x3e8bcf){const _0x2c82c4=_0x2c065c['findNodePositionByCharIndex'](_0xa357c3,!0x0,_0x108261,_0x4b7545);let _0x1abd67=_0x2c065c[_0x116c14(0x8f)](_0x512251,!0x0,_0x108261,_0x4b7545);if(_0x1abd67==null&&(_0x1abd67=_0x2c065c[_0x116c14(0x8f)](_0x512251-0x1,!0x1,_0x108261,_0x4b7545)),_0x22751e){const {contentBoxPointGroup:_0xa5510f}=_0x2eff5e['getRangePointData'](_0x1abd67,_0x1abd67);if(_0xa5510f[_0x116c14(0x2c5)]===0x0)continue;this['_drawAnchor'](_0x580eae,_0xa5510f,_0x1443e5,_0x52951e,_0x231975),this[_0x116c14(0x1a1)]=this[_0x116c14(0x15a)]();}if(_0x2c82c4&&_0x1abd67){if(_0x21537e===a[_0x116c14(0x1f2)][_0x116c14(0x218)]){const _0x262146=new b[(_0x116c14(0x1a2))](_0x31c1b6,_0x2c065c),{pointGroup:_0x25fed0}=(_0x246eaf=_0x262146[_0x116c14(0x7e)](_0x2c82c4,_0x1abd67))!=null?_0x246eaf:{};if(_0x25fed0==null||_0x25fed0[_0x116c14(0x2c5)]===0x0)continue;this[_0x116c14(0x9b)](_0x580eae,_0x25fed0,_0x1443e5,_0x52951e);}else{if(!_0x454a1d){const {borderBoxPointGroup:_0x15f6a6}=_0x2eff5e[_0x116c14(0x7e)](_0x2c82c4,_0x1abd67);if(_0x15f6a6[_0x116c14(0x2c5)]===0x0)continue;this[_0x116c14(0x19c)](_0x580eae,_0x15f6a6,_0x1443e5,_0x52951e);}}}}}['_drawAnchor'](_0x461a8c,_0x228b74,_0x1ebad6,_0x11b6a0,_0x3d8294){const _0xbccfb1=_0x48e5bc,_0xe40292=this['_getAnchorBounding'](_0x228b74),{left:_0x9a6ee4,top:_0x2ecb69,height:_0x4b5504}=_0xe40292,_0x3083c0=this['_getScale'](),_0x4f04f5=ft/_0x3083c0,_0x4e4692=new p[(_0xbccfb1(0x294))](re+a['Tools'][_0xbccfb1(0x288)](k),{'left':_0x9a6ee4+_0x1ebad6-_0x4f04f5,'top':_0x2ecb69+_0x11b6a0,'height':_0x4b5504,'width':dt,'fill':_0x461a8c||p[_0xbccfb1(0x13a)](a[_0xbccfb1(0x23f)]['black'],0x0),'strokeWidth':_0x4f04f5,'stroke':St,'evented':!0x0});this['_anchor']=_0x4e4692,this[_0xbccfb1(0x1bb)][_0xbccfb1(0x159)](_0x4e4692,b['TEXT_RANGE_LAYER_INDEX']);const _0x52d29e=new p[(_0xbccfb1(0x294))](re+a[_0xbccfb1(0x2ce)][_0xbccfb1(0x288)](k),{'left':_0x9a6ee4+_0x1ebad6-_0x4f04f5,'top':_0x2ecb69+_0x11b6a0-oe/0x2,'height':oe,'width':oe,'fill':_0x461a8c||p[_0xbccfb1(0x13a)](a['COLORS'][_0xbccfb1(0x1d3)],0x0),'strokeWidth':0x0,'stroke':_0x461a8c||p['getColor'](a['COLORS']['black'],0x0),'evented':!0x1});this[_0xbccfb1(0x1a7)]=_0x52d29e,this['_scene'][_0xbccfb1(0x159)](_0x52d29e,b[_0xbccfb1(0x2c1)]);const _0x50d29f=new ee(re+a[_0xbccfb1(0x2ce)][_0xbccfb1(0x288)](k),{'left':_0x9a6ee4+_0x1ebad6-_0x4f04f5,'top':_0x2ecb69+_0x11b6a0-K,'text':_0x3d8294,'color':_0x461a8c});this['_textBubble']=_0x50d29f,this[_0xbccfb1(0x1bb)]['addObject'](_0x50d29f,b[_0xbccfb1(0x2c1)]),this['_hover']=!0x1;}['_handleHover'](){const _0x419eaf=_0x48e5bc,_0xaf9af7=this['_anchor'][_0x419eaf(0x1f1)][_0x419eaf(0x240)](()=>{this['_hover']=!0x0;}),_0x4b6c4f=this[_0x419eaf(0x1aa)][_0x419eaf(0xa4)][_0x419eaf(0x240)](()=>{const _0x3d1260=_0x419eaf;this[_0x3d1260(0x15f)]&&clearTimeout(this[_0x3d1260(0x15f)]),this[_0x3d1260(0x15f)]=setTimeout(()=>{this['_hover']=!0x1;},0x7d0);});return()=>{const _0x31e286=_0x419eaf;_0xaf9af7[_0x31e286(0x20a)](),_0x4b6c4f[_0x31e286(0x20a)]();};}[_0x48e5bc(0x19c)](_0x7d58a7,_0x21463b,_0x1199d5,_0x2c6289){const _0x5d564c=_0x48e5bc,_0x271937=new a[(_0x5d564c(0x2f0))](_0x7d58a7)[_0x5d564c(0x23c)](0.2)[_0x5d564c(0x16b)](),_0x261f3b=new p[(_0x5d564c(0xf6))](ht+a['Tools'][_0x5d564c(0x288)](k),{'pointsGroup':_0x21463b,'fill':_0x271937||p[_0x5d564c(0x13a)](a[_0x5d564c(0x23f)]['black'],0.2),'left':_0x1199d5,'top':_0x2c6289,'evented':!0x1,'debounceParentDirty':!0x1});this['_shapes'][_0x5d564c(0x232)](_0x261f3b),this[_0x5d564c(0x1bb)][_0x5d564c(0x159)](_0x261f3b,b[_0x5d564c(0x2c1)]);}[_0x48e5bc(0x9b)](_0x48931f,_0x32d829,_0x397885,_0x28e5be){const _0x16c4b6=_0x48e5bc,_0x5d4994=new a[(_0x16c4b6(0x2f0))](_0x48931f)[_0x16c4b6(0x23c)](0.2)[_0x16c4b6(0x16b)](),_0x9b9d32=new p[(_0x16c4b6(0xf6))](ut+a[_0x16c4b6(0x2ce)][_0x16c4b6(0x288)](k),{'pointsGroup':_0x32d829,'fill':_0x5d4994||p[_0x16c4b6(0x13a)](a['COLORS'][_0x16c4b6(0x1d3)],0.2),'left':_0x397885,'top':_0x28e5be,'evented':!0x1,'debounceParentDirty':!0x1});this['_shapes'][_0x16c4b6(0x232)](_0x9b9d32),this[_0x16c4b6(0x1bb)][_0x16c4b6(0x159)](_0x9b9d32,b['TEXT_RANGE_LAYER_INDEX']);}[_0x48e5bc(0x2c6)](_0x28eaeb){const _0x4603e5=_0x28eaeb[0x0],_0x50e118=_0x4603e5[0x0],_0x132d2e=_0x4603e5[0x2],{x:_0x16b37b,y:_0x1c029b}=_0x50e118,{x:_0xe982b4,y:_0x4b98f5}=_0x132d2e;return{'left':_0x16b37b,'top':_0x1c029b,'width':_0xe982b4-_0x16b37b,'height':_0x4b98f5-_0x1c029b};}[_0x48e5bc(0x20b)](){const _0x130591=_0x48e5bc,{scaleX:_0x513747,scaleY:_0x1d34bb}=this[_0x130591(0x1bb)][_0x130591(0x1d6)]();return Math[_0x130591(0x300)](_0x513747,_0x1d34bb);}}var It=Object[_0x48e5bc(0x275)],vt=(_0x254398,_0x34e32a,_0x4b0cc6,_0x1ee0c8)=>{const _0x445984=_0x48e5bc;for(var _0x1f69df=_0x1ee0c8>0x1?void 0x0:_0x1ee0c8?It(_0x34e32a,_0x4b0cc6):_0x34e32a,_0x5ad079=_0x254398[_0x445984(0x2c5)]-0x1,_0x534ab6;_0x5ad079>=0x0;_0x5ad079--)(_0x534ab6=_0x254398[_0x5ad079])&&(_0x1f69df=_0x534ab6(_0x1f69df)||_0x1f69df);return _0x1f69df;},W=(_0x1913f3,_0xa95018)=>(_0x18baaa,_0x583809)=>_0xa95018(_0x18baaa,_0x583809,_0x1913f3);let Ie=class extends a[_0x48e5bc(0x9d)]{constructor(_0x3ba28f,_0x2b3218,_0x163f21,_0x4d7f84,_0xfb4f88){const _0x524014=_0x48e5bc;super(),h(this,_0x524014(0x107),[]),h(this,_0x524014(0xa5),[]),(this[_0x524014(0xc7)]=_0x3ba28f,this[_0x524014(0x82)]=_0x2b3218,this[_0x524014(0x1bc)]=_0x163f21,this[_0x524014(0x174)]=_0x4d7f84,this['_themeService']=_0xfb4f88,this['_init']());}[_0x48e5bc(0x1c8)](){const _0xd7c3ec=_0x48e5bc,_0x175de0=this['_context'][_0xd7c3ec(0x1ea)],_0x28f158=this[_0xd7c3ec(0x82)];this[_0xd7c3ec(0x173)](d[_0xd7c3ec(0x224)]([this[_0xd7c3ec(0x1bc)][_0xd7c3ec(0x291)](_0x175de0),this[_0xd7c3ec(0x130)][_0xd7c3ec(0x2b6)]])[_0xd7c3ec(0x29b)]($[_0xd7c3ec(0x241)](([_0x25fa91,_0x51c2ec])=>({'skeleton':_0x28f158[_0xd7c3ec(0x2bb)](),'cursors':[..._0x25fa91[_0xd7c3ec(0x269)]()][_0xd7c3ec(0x2e7)](_0x5d0b9b=>({..._0x5d0b9b,'color':this[_0xd7c3ec(0x130)][_0xd7c3ec(0x27b)](_0x5d0b9b['color'])}))})))[_0xd7c3ec(0x2fe)](_0xeef339=>{const _0xbd0ee2=_0xd7c3ec;if(this['_removeCollabCursors'](),_0xeef339){const {skeleton:_0x51ffae,cursors:_0x4600f7}=_0xeef339;this[_0xbd0ee2(0x274)](_0x51ffae,_0x4600f7);}})),this[_0xd7c3ec(0x225)](),this['_initCommandExecutedListener']();}['_updateCollabCursors'](_0x5adbab,_0x45f95a){const _0x3e6bbb=_0x48e5bc,{scene:_0x3b6df5,mainComponent:_0x5ebd9d}=this[_0x3e6bbb(0xc7)],_0x510478=_0x45f95a['map'](_0x29e99e=>new De(_0x29e99e,_0x3b6df5,_0x5adbab,_0x5ebd9d));this[_0x3e6bbb(0x107)]=_0x510478,this[_0x3e6bbb(0xa5)]=_0x45f95a;}[_0x48e5bc(0x27d)](){const _0xfafb51=_0x48e5bc;this['_removeCollabCursors']();const {scene:_0x58b872,mainComponent:_0x3fff95}=this[_0xfafb51(0xc7)],_0x537d4e=this[_0xfafb51(0x82)][_0xfafb51(0x2bb)](),_0x36f6bc=this[_0xfafb51(0xa5)][_0xfafb51(0x241)](_0x3c5e00=>new De(_0x3c5e00,_0x58b872,_0x537d4e,_0x3fff95));this[_0xfafb51(0x107)]=_0x36f6bc;}[_0x48e5bc(0x2a2)](){const _0xa33357=_0x48e5bc;this[_0xa33357(0x107)]['forEach'](_0x5b2d7e=>_0x5b2d7e[_0xa33357(0x233)]()),this[_0xa33357(0x107)]=[];}[_0x48e5bc(0x194)](){const _0x1a4041=_0x48e5bc,_0x5a733e=[b[_0x1a4041(0x14c)]['id']];this[_0x1a4041(0x173)](this[_0x1a4041(0x174)][_0x1a4041(0x2a0)](_0x469e62=>{const _0x55fade=_0x1a4041;_0x5a733e['includes'](_0x469e62['id'])&&_0x469e62[_0x55fade(0x26e)][_0x55fade(0x1ea)]===this[_0x55fade(0xc7)][_0x55fade(0x1ea)]&&this['_refreshCollabCursors']();}));}[_0x48e5bc(0x225)](){const _0x119640=_0x48e5bc;this[_0x119640(0x173)](a['fromEventSubject'](this[_0x119640(0xc7)][_0x119640(0x1bd)][_0x119640(0xcb)])[_0x119640(0x29b)]($[_0x119640(0x2e1)](_0x5f1bd5=>_0x5f1bd5['type']===p[_0x119640(0x158)][_0x119640(0x28b)]),$[_0x119640(0x25d)](0x10))[_0x119640(0x2fe)](()=>{const _0x1142bc=_0x119640;this[_0x1142bc(0x27d)]();}));}};Ie=vt([W(0x1,a[_0x48e5bc(0x28c)](Y['DocSkeletonManagerService'])),W(0x2,a[_0x48e5bc(0x28c)](x)),W(0x3,a[_0x48e5bc(0x110)]),W(0x4,a[_0x48e5bc(0x28c)](a[_0x48e5bc(0xd5)]))],Ie);const gt=0x1,mt=1.5;class Ae extends p[_0x48e5bc(0x135)]{constructor(_0x4c31d5,_0x3cd478){const _0x51f599=_0x48e5bc;super(_0x4c31d5,_0x3cd478),h(this,_0x51f599(0x1fc)),h(this,_0x51f599(0x24f),!0x1),h(this,_0x51f599(0x242)),h(this,'_name',''),h(this,_0x51f599(0x10a),'top'),h(this,_0x51f599(0x16a)),(_0x3cd478&&this[_0x51f599(0x253)](_0x3cd478),this[_0x51f599(0x1f1)]['subscribeEvent'](()=>this[_0x51f599(0x253)]({'hovered':!0x0})),this['onPointerLeave$']['subscribeEvent'](()=>this['setShapeProps']({'hovered':!0x1})));}['setShapeProps'](_0xb0e773){const _0x387348=_0x48e5bc;var _0x4e6eea,_0x13a31a,_0x55a86f,_0x38cb0c,_0x1310a3,_0x11b36d;this[_0x387348(0x1fc)]=(_0x4e6eea=_0xb0e773['color'])!=null?_0x4e6eea:this[_0x387348(0x1fc)],this[_0x387348(0x24f)]=(_0x13a31a=_0xb0e773[_0x387348(0x2eb)])!=null?_0x13a31a:this['_hovered'],this[_0x387348(0x242)]=(_0x55a86f=_0xb0e773[_0x387348(0x11f)])!=null?_0x55a86f:this[_0x387348(0x242)],this['_name']=(_0x38cb0c=_0xb0e773[_0x387348(0x1be)])!=null?_0x38cb0c:this[_0x387348(0x12c)],this[_0x387348(0x10a)]=(_0x1310a3=_0xb0e773['labelPosition'])!=null?_0x1310a3:this['_labelPosition'],this[_0x387348(0x16a)]=(_0x11b36d=_0xb0e773[_0x387348(0x251)])!=null?_0x11b36d:this['_backgroundColor'],this[_0x387348(0x2b0)]({'width':_0xb0e773[_0x387348(0xb9)],'height':_0xb0e773['height']});}[_0x48e5bc(0xd9)](_0x131492){const _0x484c85=_0x48e5bc,{row:_0x42861f,column:_0x5dbac8}=_0x131492;if(_0x42861f>=this[_0x484c85(0x242)]['startRow']&&_0x42861f<=this[_0x484c85(0x242)][_0x484c85(0x1f5)]&&_0x5dbac8>=this[_0x484c85(0x242)]['startColumn']&&_0x5dbac8<=this[_0x484c85(0x242)]['endColumn']){this['setShapeProps']({'hovered':!0x0});return;}this[_0x484c85(0x253)]({'hovered':!0x1});}[_0x48e5bc(0x154)](_0x486786){return!0x1;}[_0x48e5bc(0x2ff)](_0x4ff001){const _0x474fc4=_0x48e5bc;p[_0x474fc4(0x294)]['drawWith'](_0x4ff001,{'width':this[_0x474fc4(0xb9)],'height':this[_0x474fc4(0x83)],'strokeWidth':mt,'stroke':this[_0x474fc4(0x1fc)],'evented':!0x1,'fill':this['_backgroundColor']}),this[_0x474fc4(0x24f)]&&(_0x4ff001['save'](),_0x4ff001[_0x474fc4(0x2d5)](0x1,0x0,0x0,0x1,this[_0x474fc4(0xb9)],this['_labelPosition']==='bottom'?0x0:-0x14),ee['drawWith'](_0x4ff001,{'text':this[_0x474fc4(0x12c)],'color':this['_color']}),_0x4ff001['restore']());}}var Ct=Object[_0x48e5bc(0x275)],pt=(_0x13a11f,_0x3bcac5,_0x2c4412,_0x8908a6)=>{const _0x2aeed2=_0x48e5bc;for(var _0x3d704e=_0x8908a6>0x1?void 0x0:_0x8908a6?Ct(_0x3bcac5,_0x2c4412):_0x3bcac5,_0x241477=_0x13a11f[_0x2aeed2(0x2c5)]-0x1,_0x4b6ad6;_0x241477>=0x0;_0x241477--)(_0x4b6ad6=_0x13a11f[_0x241477])&&(_0x3d704e=_0x4b6ad6(_0x3d704e)||_0x3d704e);return _0x3d704e;},ae=(_0x3e34f3,_0x335148)=>(_0x33de17,_0x41b241)=>_0x335148(_0x33de17,_0x41b241,_0x3e34f3);const bt=0x1389;let ve=class extends a[_0x48e5bc(0x9d)]{constructor(_0x459706,_0x35b742,_0x5812d6,_0x5e9f58){const _0x205915=_0x48e5bc;super(),h(this,'_cursors',new Set()),h(this,_0x205915(0xbd),null),(this[_0x205915(0xc7)]=_0x459706,this[_0x205915(0x160)]=_0x35b742,this[_0x205915(0x1bc)]=_0x5812d6,this[_0x205915(0x130)]=_0x5e9f58,this[_0x205915(0x1c8)]());}[_0x48e5bc(0x1c8)](){const _0x5e7151=_0x48e5bc;this[_0x5e7151(0x160)][_0x5e7151(0x140)][_0x5e7151(0x29b)]($[_0x5e7151(0xdd)](this[_0x5e7151(0xcc)]),$['switchMap'](_0xaca03d=>{const _0x198cf8=_0x5e7151;if(_0xaca03d){const _0xcc824b=_0xaca03d[_0x198cf8(0xae)];return d[_0x198cf8(0x224)](this[_0x198cf8(0x1bc)]['getCollabCursors$'](this[_0x198cf8(0xc7)][_0x198cf8(0x1ea)]),this[_0x198cf8(0x130)][_0x198cf8(0x2b6)])[_0x198cf8(0x29b)]($[_0x198cf8(0x241)](([_0x4d5be1,_0x234465])=>{const _0x418549=_0x198cf8,_0x40cbc7=new Map();return _0x4d5be1[_0x418549(0x299)]((_0x356db8,_0x2b554b)=>{const _0x391199=_0x418549;if(_0x356db8[_0x391199(0xee)]===_0xcc824b){const _0x5eb048={..._0x356db8};_0x5eb048[_0x391199(0xc1)]=this['_themeService']['getColorFromTheme'](_0x356db8[_0x391199(0xc1)]),_0x40cbc7['set'](_0x2b554b,_0x5eb048);}}),{'skeleton':_0xaca03d,'cursors':_0x40cbc7};}));}return d['of']({'skeleton':null,'cursors':new Map()});}))['subscribe'](({skeleton:_0xc61872,cursors:_0x4dc7a5})=>{const _0x3e6be3=_0x5e7151;this[_0x3e6be3(0x2a2)](),_0xc61872&&this[_0x3e6be3(0x274)](_0xc61872,_0x4dc7a5);}),this['_sheetSkeletonManagerService'][_0x5e7151(0x140)]['subscribe'](_0x4adaab=>{const _0x4f60cb=_0x5e7151;if(_0x4adaab==null)return;const {skeleton:_0x3ef0d0}=_0x4adaab,{scene:_0xb61973}=this[_0x4f60cb(0xc7)];_0xb61973[_0x4f60cb(0x23b)][_0x4f60cb(0x240)](a[_0x4f60cb(0xaf)](_0x36a831=>{const _0x23bed7=_0x4f60cb;var _0x21bb90,_0x4eb389;const {offsetX:_0x30ce50,offsetY:_0x3763b7}=_0x36a831,{x:_0x584d06,y:_0x47eaec}=_0xb61973[_0x23bed7(0x146)](p[_0x23bed7(0x15b)][_0x23bed7(0xfb)]([_0x30ce50,_0x3763b7])),{scaleX:_0x573d8b,scaleY:_0x136f06}=_0xb61973[_0x23bed7(0x1d6)](),_0x20ab37=_0xb61973['getViewport'](p[_0x23bed7(0x292)]['VIEW_MAIN']),_0x7d8698=_0xb61973[_0x23bed7(0x162)](p['Vector2'][_0x23bed7(0xfb)]([_0x584d06,_0x47eaec]),_0x20ab37),_0xe7f164=_0x3ef0d0[_0x23bed7(0x120)](_0x30ce50,_0x3763b7,_0x573d8b,_0x136f06,_0x7d8698);((_0x21bb90=this['_lastPointer'])==null?void 0x0:_0x21bb90[_0x23bed7(0xe6)])===_0xe7f164[_0x23bed7(0xe6)]&&((_0x4eb389=this[_0x23bed7(0xbd)])==null?void 0x0:_0x4eb389['row'])===_0xe7f164[_0x23bed7(0x2ba)]||this['_cursors']['forEach'](_0x2cd5c0=>{const _0x404fce=_0x23bed7;_0x2cd5c0[_0x404fce(0xd9)](_0xe7f164);});},0x64));});}[_0x48e5bc(0x274)](_0x23dac3,_0x34db18){const _0x5c738b=_0x48e5bc;var _0x5c32a2;const _0x15e0a9=(_0x5c32a2=this[_0x5c738b(0x160)]['getCurrent']())==null?void 0x0:_0x5c32a2[_0x5c738b(0x200)];if(!_0x15e0a9)return;const _0x3023cb=this[_0x5c738b(0x189)]();if(!_0x3023cb)return;this[_0x5c738b(0xa5)][_0x5c738b(0x299)](_0x5825a3=>{_0x5825a3['makeDirty']();});const {scene:_0x15e90b}=_0x3023cb,_0x250d3c=Et(Array[_0x5c738b(0x15e)](_0x34db18[_0x5c738b(0x269)]()))[_0x5c738b(0x241)](_0x1305ed=>{const _0x75a683=_0x5c738b,{color:_0x54e893,range:_0x52a5c4,name:_0x2a2002,selection:_0x14800d,sheetID:_0xa358f2}=_0x1305ed,{startColumn:_0x139613,startRow:_0x47ac38,endColumn:_0xbed0cf,endRow:_0xf4b4a5}=_0x52a5c4,_0x1d2d06=X[_0x75a683(0x1ca)](_0x47ac38,_0x139613,_0x15e90b,_0x15e0a9),_0x106348=X[_0x75a683(0x1ca)](_0xf4b4a5,_0xbed0cf,_0x15e90b,_0x15e0a9),{columnHeaderHeightAndMarginTop:_0x169f64}=_0x15e0a9,{startX:_0x36cd91,startY:_0x10005a}=_0x1d2d06,{endX:_0x6c2580,endY:_0x4361ab}=_0x106348,_0x3fddfa=_0x6c2580-_0x36cd91,_0x3547d9=_0x4361ab-_0x10005a,_0x59dc53={'labelPosition':_0x10005a-_0x169f64>=K?_0x75a683(0x13f):'bottom','sheetID':_0xa358f2,'range':_0x52a5c4,'color':_0x54e893,'name':_0x2a2002,'selection':_0x14800d,'left':_0x36cd91,'top':_0x10005a,'width':_0x3fddfa,'height':_0x3547d9,'evented':!0x1,'zIndex':bt};return new Ae(_0x2a2002,_0x59dc53);});_0x15e90b[_0x5c738b(0x1e4)](_0x250d3c,gt),this[_0x5c738b(0xa5)]=new Set(_0x250d3c);}[_0x48e5bc(0x2a2)](){const _0x3b08e8=_0x48e5bc;var _0xb4f20a;(_0xb4f20a=this[_0x3b08e8(0xa5)])==null||_0xb4f20a['forEach'](_0x413874=>_0x413874[_0x3b08e8(0x233)]());}[_0x48e5bc(0x189)](){const _0x2c5cc5=_0x48e5bc;return X[_0x2c5cc5(0x262)](this[_0x2c5cc5(0xc7)]['unit'],this[_0x2c5cc5(0xc7)]);}};ve=pt([ae(0x1,a[_0x48e5bc(0x28c)](X[_0x48e5bc(0x1ff)])),ae(0x2,a['Inject'](x)),ae(0x3,a[_0x48e5bc(0x28c)](a[_0x48e5bc(0xd5)]))],ve);function Et(_0x546f32){const _0x1c7fe1=_0x48e5bc,_0x272327=new Map();return _0x546f32[_0x1c7fe1(0x299)](_0x2c25a1=>{const _0x188f03=_0x1c7fe1;if(_0x272327['has'](_0x2c25a1[_0x188f03(0x108)])){const _0x31645d=_0x272327[_0x188f03(0x20c)](_0x2c25a1[_0x188f03(0x108)]);_0x31645d[_0x188f03(0x1be)]+=',\x20'+_0x2c25a1['name'];}else _0x272327[_0x188f03(0x28a)](_0x2c25a1['selection'],_0x2c25a1);}),Array[_0x1c7fe1(0x15e)](_0x272327[_0x1c7fe1(0x269)]());}var E=function(){const _0x784b14=_0x48e5bc;return E=Object[_0x784b14(0x2c8)]||function(_0x22a618){const _0x4cb4fa=_0x784b14;for(var _0x816be3,_0x48203b=0x1,_0x4b7317=arguments[_0x4cb4fa(0x2c5)];_0x48203b<_0x4b7317;_0x48203b++){_0x816be3=arguments[_0x48203b];for(var _0x55558d in _0x816be3)Object[_0x4cb4fa(0x89)][_0x4cb4fa(0xe9)][_0x4cb4fa(0x1bf)](_0x816be3,_0x55558d)&&(_0x22a618[_0x55558d]=_0x816be3[_0x55558d]);}return _0x22a618;},E[_0x784b14(0x214)](this,arguments);},Tt=function(_0x5b0708,_0x37962d){const _0x307cde=_0x48e5bc;var _0x4f640e={};for(var _0x384c02 in _0x5b0708)Object[_0x307cde(0x89)]['hasOwnProperty'][_0x307cde(0x1bf)](_0x5b0708,_0x384c02)&&_0x37962d['indexOf'](_0x384c02)<0x0&&(_0x4f640e[_0x384c02]=_0x5b0708[_0x384c02]);if(_0x5b0708!=null&&typeof Object[_0x307cde(0x29e)]==_0x307cde(0x302)){for(var _0x3b901d=0x0,_0x384c02=Object[_0x307cde(0x29e)](_0x5b0708);_0x3b901d<_0x384c02[_0x307cde(0x2c5)];_0x3b901d++)_0x37962d[_0x307cde(0x2dc)](_0x384c02[_0x3b901d])<0x0&&Object['prototype'][_0x307cde(0x261)][_0x307cde(0x1bf)](_0x5b0708,_0x384c02[_0x3b901d])&&(_0x4f640e[_0x384c02[_0x3b901d]]=_0x5b0708[_0x384c02[_0x3b901d]]);}return _0x4f640e;},pe=M[_0x48e5bc(0x2ec)](function(_0x28e721,_0x505202){const _0x237eb0=_0x48e5bc;var _0xee6b9f=_0x28e721[_0x237eb0(0x19a)],_0x3a3e4a=_0x28e721['id'],_0xe8a2c9=_0x28e721['className'],_0x7af434=_0x28e721[_0x237eb0(0x2ee)],_0x4d284a=Tt(_0x28e721,[_0x237eb0(0x19a),'id','className',_0x237eb0(0x2ee)]),_0x46db6a=_0x237eb0(0x2c0)[_0x237eb0(0x22b)](_0x3a3e4a,'\x20')['concat'](_0xe8a2c9||'')[_0x237eb0(0x9c)](),_0x1438fd=M['useRef']('_'[_0x237eb0(0x22b)](Dt()));return we(_0xee6b9f,''[_0x237eb0(0x22b)](_0x3a3e4a),{'defIds':_0xee6b9f[_0x237eb0(0x2a4)],'idSuffix':_0x1438fd[_0x237eb0(0x91)]},E({'ref':_0x505202,'className':_0x46db6a},_0x4d284a),_0x7af434);});function we(_0x190669,_0x56bb5e,_0x351ec3,_0x1eab1e,_0x13d6eb){const _0x1dd896=_0x48e5bc;return M[_0x1dd896(0x1c1)](_0x190669[_0x1dd896(0x12b)],E(E({'key':_0x56bb5e},Ot(_0x190669,_0x351ec3,_0x13d6eb)),_0x1eab1e),(Rt(_0x190669,_0x351ec3)['children']||[])[_0x1dd896(0x241)](function(_0x23fe9b,_0x491a8f){const _0x5555aa=_0x1dd896;return we(_0x23fe9b,''[_0x5555aa(0x22b)](_0x56bb5e,'-')[_0x5555aa(0x22b)](_0x190669[_0x5555aa(0x12b)],'-')['concat'](_0x491a8f),_0x351ec3,void 0x0,_0x13d6eb);}));}function Ot(_0x237419,_0x1cbd62,_0x573f4d){const _0x5947d7=_0x48e5bc;var _0x2b6de7=E({},_0x237419[_0x5947d7(0x1c5)]);_0x573f4d!=null&&_0x573f4d[_0x5947d7(0x2d1)]&&_0x2b6de7[_0x5947d7(0x21c)]==='colorChannel1'&&(_0x2b6de7[_0x5947d7(0x21c)]=_0x573f4d[_0x5947d7(0x2d1)]),_0x237419[_0x5947d7(0x12b)]===_0x5947d7(0x14e)&&_0x2b6de7['id']&&(_0x2b6de7['id']=_0x2b6de7['id']+_0x1cbd62[_0x5947d7(0x1dc)]),Object['entries'](_0x2b6de7)[_0x5947d7(0x299)](function(_0x1a4d4a){const _0x5b81f2=_0x5947d7;var _0x16a182=_0x1a4d4a[0x0],_0x3d3e5b=_0x1a4d4a[0x1];_0x16a182===_0x5b81f2(0x14e)&&typeof _0x3d3e5b==_0x5b81f2(0x20e)&&(_0x2b6de7[_0x16a182]=_0x3d3e5b[_0x5b81f2(0x22e)](/url\(#(.*)\)/,_0x5b81f2(0x2da)[_0x5b81f2(0x22b)](_0x1cbd62['idSuffix'],')')));});var _0x57e4c4=_0x1cbd62[_0x5947d7(0x2a4)];return!_0x57e4c4||_0x57e4c4['length']===0x0||(_0x237419['tag']===_0x5947d7(0x21a)&&_0x2b6de7[_0x5947d7(0x287)]&&(_0x2b6de7[_0x5947d7(0x287)]=_0x2b6de7[_0x5947d7(0x287)]+_0x1cbd62[_0x5947d7(0x1dc)]),Object[_0x5947d7(0x1f9)](_0x2b6de7)[_0x5947d7(0x299)](function(_0x59aeb6){const _0x59d350=_0x5947d7;var _0x4fefdd=_0x59aeb6[0x0],_0xe78c43=_0x59aeb6[0x1];typeof _0xe78c43==_0x59d350(0x20e)&&(_0x2b6de7[_0x4fefdd]=_0xe78c43[_0x59d350(0x22e)](/url\(#(.*)\)/,_0x59d350(0x2da)[_0x59d350(0x22b)](_0x1cbd62[_0x59d350(0x1dc)],')')));})),_0x2b6de7;}function Rt(_0x133e9f,_0x4a9534){const _0x3c4c1a=_0x48e5bc;var _0x2add4d,_0xfd4d06=_0x4a9534[_0x3c4c1a(0x2a4)];return!_0xfd4d06||_0xfd4d06[_0x3c4c1a(0x2c5)]===0x0?_0x133e9f:_0x133e9f[_0x3c4c1a(0x12b)]===_0x3c4c1a(0x1a6)&&(!((_0x2add4d=_0x133e9f[_0x3c4c1a(0xb6)])===null||_0x2add4d===void 0x0)&&_0x2add4d['length'])?E(E({},_0x133e9f),{'children':_0x133e9f[_0x3c4c1a(0xb6)]['map'](function(_0x57761e){const _0x125d67=_0x3c4c1a;return typeof _0x57761e['attrs']['id']==_0x125d67(0x20e)&&_0xfd4d06&&_0xfd4d06[_0x125d67(0x2dc)](_0x57761e['attrs']['id'])>-0x1?E(E({},_0x57761e),{'attrs':E(E({},_0x57761e['attrs']),{'id':_0x57761e[_0x125d67(0x1c5)]['id']+_0x4a9534[_0x125d67(0x1dc)]})}):_0x57761e;})}):_0x133e9f;}function Dt(){const _0xfdba75=_0x48e5bc;return Math['random']()[_0xfdba75(0x220)](0x24)[_0xfdba75(0x23e)](0x2,0x8);}pe['displayName']=_0x48e5bc(0x16e);var Ut={'tag':'svg','attrs':{'fill':_0x48e5bc(0x24e),'viewBox':_0x48e5bc(0x2bc),'width':'1em','height':'1em'},'children':[{'tag':'g','attrs':{'clipPath':_0x48e5bc(0x27e)},'children':[{'tag':_0x48e5bc(0x1d9),'attrs':{'stroke':_0x48e5bc(0xf5),'d':_0x48e5bc(0x169),'strokeLinecap':_0x48e5bc(0x1af),'strokeLinejoin':_0x48e5bc(0x1af),'strokeWidth':1.2}}]},{'tag':_0x48e5bc(0x1a6),'attrs':{},'children':[{'tag':_0x48e5bc(0x247),'attrs':{'id':_0x48e5bc(0xc8)},'children':[{'tag':_0x48e5bc(0x1d9),'attrs':{'fill':_0x48e5bc(0x222),'d':_0x48e5bc(0x9e)}}]}]}],'defIds':['off-line-single_clip0_910_343']},ye=M[_0x48e5bc(0x2ec)](function(_0x582e49,_0x4652d8){const _0x39f440=_0x48e5bc;return M['createElement'](pe,Object[_0x39f440(0x2c8)]({},_0x582e49,{'id':_0x39f440(0x29c),'ref':_0x4652d8,'icon':Ut}));});ye[_0x48e5bc(0x13d)]='OffLineSingle';var Nt={'tag':'svg','attrs':{'fill':'none','viewBox':_0x48e5bc(0x18f),'width':_0x48e5bc(0x18c),'height':_0x48e5bc(0x18c)},'children':[{'tag':'g','attrs':{'clipPath':_0x48e5bc(0x2e6)},'children':[{'tag':_0x48e5bc(0x1d9),'attrs':{'stroke':_0x48e5bc(0xf5),'d':_0x48e5bc(0x1d0),'strokeLinecap':_0x48e5bc(0x1af),'strokeLinejoin':_0x48e5bc(0x1af),'strokeWidth':1.2}}]},{'tag':_0x48e5bc(0x1a6),'attrs':{},'children':[{'tag':_0x48e5bc(0x247),'attrs':{'id':'on-line-single_clip0_910_349'},'children':[{'tag':_0x48e5bc(0x1d9),'attrs':{'fill':'#fff','d':'M0\x200H16V16H0z','transform':_0x48e5bc(0xf8)}}]}]}],'defIds':[_0x48e5bc(0x238)]},$e=M[_0x48e5bc(0x2ec)](function(_0x53c3b4,_0x40eda3){const _0x2bdce1=_0x48e5bc;return M['createElement'](pe,Object[_0x2bdce1(0x2c8)]({},_0x53c3b4,{'id':'on-line-single','ref':_0x40eda3,'icon':Nt}));});$e['displayName']=_0x48e5bc(0x284);function Mt(_0x3abd90){const _0x29fff6=_0x48e5bc;switch(_0x3abd90){case u[_0x29fff6(0x11e)][_0x29fff6(0x2e2)]:return _0x29fff6(0x178);case u[_0x29fff6(0x11e)][_0x29fff6(0x97)]:return _0x29fff6(0x244);case u[_0x29fff6(0x11e)][_0x29fff6(0x22c)]:return _0x29fff6(0xf0);case u['CollaborationStatus'][_0x29fff6(0xba)]:return _0x29fff6(0x266);case u[_0x29fff6(0x11e)][_0x29fff6(0x26f)]:case u[_0x29fff6(0x11e)][_0x29fff6(0x203)]:return _0x29fff6(0xd7);case u[_0x29fff6(0x11e)]['SYNCED']:case u[_0x29fff6(0x11e)][_0x29fff6(0x16f)]:return _0x29fff6(0x286);}}function _0x3f84(_0x51654c,_0x573577){const _0x28245e=_0x2824();return _0x3f84=function(_0x3f84e3,_0x390464){_0x3f84e3=_0x3f84e3-0x7e;let _0x150efe=_0x28245e[_0x3f84e3];return _0x150efe;},_0x3f84(_0x51654c,_0x573577);}function xe(_0x157d5e){const _0x48c718=_0x48e5bc,{status$:_0x42a4dd}=_0x157d5e,_0x50b1fc=T[_0x48c718(0x103)](_0x42a4dd,u['CollaborationStatus'][_0x48c718(0xba)]),_0x15112e=T[_0x48c718(0x1ec)](a[_0x48c718(0x223)]),_0x5a9736=T['useDependency'](u[_0x48c718(0x29d)]),_0x56c46c=_0x50b1fc!==u['CollaborationStatus'][_0x48c718(0x2e2)],_0x55657e=_0x15112e['t'](Mt(_0x50b1fc)),_0x10db65=_0x56c46c?P[_0x48c718(0x156)]($e,{}):P[_0x48c718(0x156)](ye,{}),_0x2e9487=M['useCallback'](()=>{const _0x584729=_0x48c718;_0x56c46c||_0x5a9736[_0x584729(0x2a5)]();},[_0x56c46c,_0x5a9736]);function _0x485f15(){const _0x3a1248=_0x48c718;return P[_0x3a1248(0x186)](_0x3a1248(0xe8),{'className':_0x3a1248(0x1fe),'onClick':_0x2e9487,'children':[P[_0x3a1248(0x156)](_0x3a1248(0xe8),{'className':D[_0x3a1248(0x20d)](_0x3a1248(0x1b8),{'univer-text-green-500':_0x56c46c,'univer-text-red-500':!_0x56c46c}),'children':_0x10db65}),P['jsx']('div',{'className':_0x3a1248(0x25c),'children':_0x55657e})]});}return _0x56c46c?_0x485f15():P['jsx'](D[_0x48c718(0x18d)],{'title':_0x15112e['t'](_0x48c718(0x2ac)),'children':_0x485f15()});}var Lt=Object[_0x48e5bc(0x275)],Pt=(_0x4fce49,_0x718af1,_0x300310,_0x340cbd)=>{const _0x3a5662=_0x48e5bc;for(var _0x3d20de=_0x340cbd>0x1?void 0x0:_0x340cbd?Lt(_0x718af1,_0x300310):_0x718af1,_0x17644b=_0x4fce49[_0x3a5662(0x2c5)]-0x1,_0x297437;_0x17644b>=0x0;_0x17644b--)(_0x297437=_0x4fce49[_0x17644b])&&(_0x3d20de=_0x297437(_0x3d20de)||_0x3d20de);return _0x3d20de;},V=(_0x4af0a8,_0xb8da88)=>(_0x431a6f,_0x518e48)=>_0xb8da88(_0x431a6f,_0x518e48,_0x4af0a8);exports[_0x48e5bc(0x1c6)]=class extends a[_0x48e5bc(0xac)]{constructor(_0x45bbf2,_0x167717,_0x4465ec,_0x18e873){const _0x4c4021=_0x48e5bc;super(),h(this,_0x4c4021(0x179),new d['BehaviorSubject'](u[_0x4c4021(0x11e)][_0x4c4021(0xba)])),(this['_univerInstanceService']=_0x45bbf2,this[_0x4c4021(0x126)]=_0x167717,this[_0x4c4021(0x118)]=_0x4465ec,this['_uiPartsService']=_0x18e873,this[_0x4c4021(0x86)](),this[_0x4c4021(0x2df)]());}['_initStatusListener'](){const _0xc2bc07=_0x48e5bc;this[_0xc2bc07(0x173)](this['_univerInstanceService'][_0xc2bc07(0x1e9)][_0xc2bc07(0x29b)](d['switchMap'](()=>{const _0x243002=_0xc2bc07,_0x2542be=this[_0x243002(0x109)][_0x243002(0x2a3)]();return _0x2542be?this[_0x243002(0x118)]['getCollabEntity$'](_0x2542be['getUnitId']()):d['of'](null);}),d['switchMap'](_0x10c3f6=>_0x10c3f6?_0x10c3f6[_0xc2bc07(0x141)]:d['of'](u[_0xc2bc07(0x11e)][_0xc2bc07(0xba)])))[_0xc2bc07(0x2fe)](_0x5c898c=>{const _0x2b3add=_0xc2bc07;this[_0x2b3add(0x179)]['next'](_0x5c898c);}));}[_0x48e5bc(0x86)](){const _0x3b74a1=_0x48e5bc;this['disposeWithMe'](this['_uiPartsService'][_0x3b74a1(0x298)](T[_0x3b74a1(0xbc)][_0x3b74a1(0x279)],()=>T['connectInjector'](At({'status$':this[_0x3b74a1(0x179)][_0x3b74a1(0x2b9)]()}),this[_0x3b74a1(0x126)])));}},exports[_0x48e5bc(0x1c6)]=Pt([V(0x0,a['IUniverInstanceService']),V(0x1,a[_0x48e5bc(0x28c)](a['Injector'])),V(0x2,a[_0x48e5bc(0x28c)](u[_0x48e5bc(0x2fd)])),V(0x3,T['IUIPartsService'])],exports[_0x48e5bc(0x1c6)]);function At(_0x5e1a82){const {status$:_0x5d9b0b}=_0x5e1a82;return function(){return P['jsx'](xe,{'status$':_0x5d9b0b});};}var wt=Object['getOwnPropertyDescriptor'],yt=(_0x46c6bd,_0x1af446,_0x7999c5,_0xadc5cc)=>{for(var _0x33684e=_0xadc5cc>0x1?void 0x0:_0xadc5cc?wt(_0x1af446,_0x7999c5):_0x1af446,_0x241bc3=_0x46c6bd['length']-0x1,_0x3a4be6;_0x241bc3>=0x0;_0x241bc3--)(_0x3a4be6=_0x46c6bd[_0x241bc3])&&(_0x33684e=_0x3a4be6(_0x33684e)||_0x33684e);return _0x33684e;},y=(_0x496c55,_0x5a43d3)=>(_0x50f35b,_0x17a48c)=>_0x5a43d3(_0x50f35b,_0x17a48c,_0x496c55);let q=class extends a['Disposable']{constructor(_0x4da281,_0x1c067a,_0x3c8a27,_0x58f1db,_0x30bc75,_0x1f675c){const _0x5bb333=_0x48e5bc;super(),this[_0x5bb333(0x246)]=_0x4da281,this[_0x5bb333(0x2ef)]=_0x1c067a,this[_0x5bb333(0x187)]=_0x3c8a27,this[_0x5bb333(0x208)]=_0x58f1db,this['_notificationService']=_0x30bc75,this[_0x5bb333(0x256)]=_0x1f675c,this[_0x5bb333(0x2c3)](),this[_0x5bb333(0xf3)]();}[_0x48e5bc(0x2c3)](){const _0x579df8=_0x48e5bc;this[_0x579df8(0x173)](this[_0x579df8(0x246)]['registerBeforeClose'](()=>{const _0x3fa611=_0x579df8;if(this['_localCacheService'][_0x3fa611(0xfd)][_0x3fa611(0x267)])return this[_0x3fa611(0x256)]['t'](_0x3fa611(0x265));}));}[_0x48e5bc(0xf3)](){const _0x503685=_0x48e5bc;this[_0x503685(0x173)](this[_0x503685(0x187)][_0x503685(0xd2)][_0x503685(0x2fe)](_0x10a9ea=>{const _0xc8c578=_0x503685;_0x10a9ea['id']===u[_0xc8c578(0x18e)]['OTHER_CLIENT_EDITING']&&this[_0xc8c578(0x208)][_0xc8c578(0x15c)]({'type':D[_0xc8c578(0x2c7)][_0xc8c578(0x1f7)],'content':this['_localeService']['t']('collaboration.single-unit.warning')}),_0x10a9ea['id']===u[_0xc8c578(0x18e)][_0xc8c578(0x21d)]&&this[_0xc8c578(0x208)][_0xc8c578(0x15c)]({'type':D[_0xc8c578(0x2c7)]['Warning'],'content':this[_0xc8c578(0x256)]['t'](_0xc8c578(0xb2))}),_0x10a9ea['id']===u[_0xc8c578(0x18e)][_0xc8c578(0x226)]&&this['_notificationService'][_0xc8c578(0x15c)]({'title':this[_0xc8c578(0x256)]['t'](_0xc8c578(0x10b)),'content':this[_0xc8c578(0x256)]['t'](_0xc8c578(0x7f)),'type':_0xc8c578(0x272),'duration':0x0}),_0x10a9ea['id']===u[_0xc8c578(0x18e)][_0xc8c578(0x97)]&&this[_0xc8c578(0x208)][_0xc8c578(0x15c)]({'type':D[_0xc8c578(0x2c7)][_0xc8c578(0xcd)],'content':this['_localeService']['t'](_0xc8c578(0xb2))+'('+_0x10a9ea[_0xc8c578(0x10f)]+')'}),_0x10a9ea['id']===u['CollaborationUIEventId']['JOIN_ROOM_FAILED']&&this[_0xc8c578(0x208)]['show']({'type':D[_0xc8c578(0x2c7)][_0xc8c578(0x1f7)],'content':this['_localeService']['t'](_0x10a9ea['data']||'')}),_0x10a9ea['id']===u[_0xc8c578(0x18e)][_0xc8c578(0xa8)]&&this[_0xc8c578(0x208)][_0xc8c578(0x15c)]({'type':D[_0xc8c578(0x2c7)][_0xc8c578(0x1f7)],'content':this['_localeService']['t'](_0xc8c578(0x172))}),_0x10a9ea['id']===u['CollaborationUIEventId'][_0xc8c578(0x164)]&&this[_0xc8c578(0x208)][_0xc8c578(0x15c)]({'type':D[_0xc8c578(0x2c7)]['Error'],'content':this['_localeService']['t'](_0xc8c578(0x2b1))}),_0x10a9ea['id']===u[_0xc8c578(0x18e)][_0xc8c578(0x207)]&&this[_0xc8c578(0x208)]['show']({'type':D[_0xc8c578(0x2c7)][_0xc8c578(0xcd)],'content':this[_0xc8c578(0x256)]['t'](_0xc8c578(0x268))});}));}};function _0x2824(){const _0x283e60=['SNAPSHOT_INVALID_SNAPSHOT','_drawTextRange','body','UniverCollaborationClientPlugin','fillStyle','invokeId','_eventUnsubscribe','NodePositionConvertToRectRange','_docStateChangeManagerService','DeleteRangeMoveUpCommandId','override','defs','_anchorDot','_assignedColors','deepClone','_anchor','runId','getSheetId','_unitOnClients','REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY','round','EMAIL_HAS_BEEN_BOUND','_removeClearOtherTimer','post','98zerMGd','2989266oEriRd','_shapes','APPLY_REJECT','InsertColCommandId','univer-flex\x20univer-mr-2\x20univer-text-xl','isArray','startsWith','_scene','_collabCursorController','engine','name','call','LICENSE_EXPORT_SIZE_EXCEEDED','createElement','_cachedData','_transformUndoRedoStack','subunit','attrs','DesktopCollaborationStatusDisplayController','InsertRangeMoveRightCommandId','_init','parse','getCoordByCell','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','purple.300','textRanges','1130412LvHjhj','handleIRemoveRow','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','transformRemoteChangeset','TEXT','black','_logService','result','getAncestorScale','_saveTaskMap','@univerjs/sheets-ui','path','entityInit$','APPLY_DUPLICATED','idSuffix','YUUMI_ALL_TABLES_IS_INVALID','LOCAL_CACHE_INTERVAL','registerRenderModule','getCurrentUnitForType','LICENSE_DISTRO_REJECTED','OTHER_CLIENTS_EDITING','registerRefRange','addObjects','setActiveRange','ENSURE_SNAPSHOT_EXECUTION','UnitStatus','INVITE_CODE_HAS_BEEN_UES','focused$','unitId','_dataLoaderService','useDependency','IConfigService','type','_ensureSubject','lineTo','onPointerEnter$','DOC_RANGE_TYPE','UNIVER_SHEET','_colorAssignService','endRow','NOT_FOUND','Warning','getSheetBySheetId','entries','mergeOverrideWithDependencies','UNAUTHENTICATED','_color','subUnitId','univer-flex\x20univer-items-center','SheetSkeletonManagerService','skeleton','_transformService','min','AWAITING_WITH_PENDING','InsertRangeMoveDownCommandId','@univerjs/network','registerDependencies','SUBMIT_CHANGESET_TIMEOUT','_messageService','selections','unsubscribe','_getScale','get','clsx','string','jiqing.500','IBeforeCloseService','closePath','YUUMI_SUBSCRIPTION_NOT_FOUND','handleInsertRangeMoveRight','apply','MoveRangeCommandId','fromEvent','HTTPService','RECT','SetSelectionsOperation','use','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','fill','CLOSE_ROOM','NodePositionConvertToCursor','_localStorageService','toString','@univerjs-pro/collaboration-client','#fff','LocaleService','combineLatest','_initResize','PERMISSION_DENIED','getUniverSheetInstance','defineProperty','popstate','_session','concat','FETCH_MISS','setConfig','replace','@univerjs/sheets','loadUnit','DocCollaborationEntity','push','dispose','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','_disabled','doc.mutation.rich-text-editing','3950152aebfnS','on-line-single_clip0_910_349','IDocClipboardService','UniverCollaborationClientUIPlugin','onPointerMove$','setAlpha','3810639HKGBMW','substring','COLORS','subscribeEvent','map','_range','_docTransformIMECacheService','collabStatus.conflict','TOO_MANY_REQUESTS','_beforeCloseService','clipPath','_configService','isEditing','_urlService','text','debug','EffectRefRangId','none','_hovered','delete','backgroundColor','MemberService','setShapeProps','some','activeSheet$','_localeService','[CollaborationDataLoaderController]','_imageIoService','CollaborationDataLoaderController','_hover','_selfUnitIDs','univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','throttleTime','_toggleOffline','ISocketService','font','propertyIsEnumerable','getSheetObject','/run/','_online','collaboration-client.offline-data-not-saved','collabStatus.notCollab','size','session.collaboration-timeout','values','getMemberID','syncEditingCollabCursor','COMPLETION_FINISHED','toDisposable','params','AWAITING','setInterval','@univerjs/rpc','error','DocStateChangeManagerService','_updateCollabCursors','getOwnPropertyDescriptor','RevisionService','m2Prime','replaceState','HEADER_MENU','PY_RUNTIME_SCRIPT_ERROR','getColorFromTheme','_startSheetCollabCursor','_refreshCollabCursors','url(#off-line-single_clip0_910_343)','_createSocketURL','getUnitId','...','YUUMI_URL_COL_OUT_OF_RANGE','INVALID_ARGUMENT','OnLineSingle','_id','collabStatus.synced','xlink:href','generateRandomId','Plugin','set','resize','Inject','location','USERS_LEAVE','getMember','_clearOtherTimers','getCollabCursors$','SHEET_VIEWPORT_KEY','getTypeOfUnitDisposed$','Rect','rxjs','DocIMEInputManagerService','urlChange$','registerComponent','forEach','loadOfflineData','pipe','off-line-single','CollaborationSessionService','getOwnPropertySymbols','createInstance','onCommandExecuted','CollaborationUIEventService','_removeCollabCursors','getFocusedUnit','defIds','reconnect','WebURLService','collab-text-anchor-','IURLService','measureText','init','imageSourceType','collab-client.tooltip.reconnect','UPDATE_CURSOR','then','getValue','transformByState','session.connection-failed','SNAPSHOT_HAS_BEEN_REMOVED','mutations','_renderManagerService','runRefRangeMutations','currentTheme$','15FKsfIE','transformIMECache','asObservable','row','getSkeleton','0\x200\x2016\x2016','@univerjs/ui','RemoteUniscriptService','deserializeRangeWithSheet','univerjs-icon\x20univerjs-icon-','TEXT_RANGE_LAYER_INDEX','getConfig','_setupBeforeClosingHandler','INVITE_CODE_REQUIRED','length','_getAnchorBounding','MessageType','assign','Unknown\x20user','isActive','green.600','Workbook','_send','Tools','getUnitStatus$','Optional','colorChannel1','APPLY_PERMISSION_DENIED','hide','UNDEFINED','transform','cursorInfo$','99FDPYiq','1nyByKi','_registerDependencies','url(#$1','_docSyncEditingCollabCursorService','indexOf','getTypeOfUnitAdded$','m1Prime','_initStatusListener','toStringTag','filter','OFFLINE','[RemoteUniscriptService]:\x20no\x20focused\x20unit','_unitStatus','unitID','url(#on-line-single_clip0_910_349)','flatMap','_cursor','DisposableCollection','ILocalCacheService','hovered','forwardRef','ranges','extend','_localCacheService','ColorKit','_roomMembers$','sessionStatus$','_initEntityListener','YUUMI_UNABLE_LOAD_URL','requireSession','searchParams','_transformHistoryAndStateStack','_updateLocalCursor','shareReplay','getActiveRange','split','onRendered','CollaborationController','subscribe','_draw','max','getUndoRedoMutationParamsCache','function','getRangePointData','permission.content','UniverInstanceType','find','_docSkeletonManagerService','height','SetWorksheetActivateCommand','createIdentifier','_initStatusComponent','enableLocalCache','_cursorInfo$','prototype','roomMembers$','moveTo','sessionTicket','WebSocketService','ticket','findNodePositionByCharIndex','@univerjs/design','current','getActiveSheet','WECHAT_HAS_BEEN_BOUND','_entities','ACTIVE_UNIT_EVENT_CHANNEL','_updateSubUnitFromURLParams','CONFLICT','handleInsertCol','unit','_getSaveTimeout','_drawRectRange','trim','RxDisposable','M0\x200H16V16H0z','IUniverInstanceService','restore','YUUMI_AI_RUN_FAILED','YUUMI_NO_CUBOID_FOR_QUESTION','eventID','onPointerLeave$','_cursors','symbol','UNRECOGNIZED','SOCKET_FAILED_RETRY','ISnapshotServerService','34016IIFjJm','exhaustSavingTask','Disposable','CollaborationSocketService','sheetId','debounce','assignAColorForMemberID','MOBILE_HAS_BEEN_BOUND','collaboration.closeRoom','_toggleOnline','WebBrowserSingleActiveUnitService','_registerRenderDependencies','children','@univerjs/engine-render','code','width','NOT_COLLAB','next','BuiltInUIPart','_lastPointer','@univerjs/engine-formula','drawWith','_scheduleSaving','color','_entityInit$','executeCommand','getItem','DataLoaderService','history','_context','off-line-single_clip0_910_343','_colorIndex','saveImage','onTransformChange$','dispose$','Error','collab-text-range-','_httpService','stringify','clearInterval','event$','with','setParam','ThemeService','_onRefRangeChange','collabStatus.syncing','serializeRangeWithSheet','onMouseMove','LOGIN_FAILED','_textBubble','getDocRanges','takeUntil','isTransformMutationsWithChangesetSuccess','_collabCursorState$','_onCursorDelete','_docSkeleton','@univerjs/docs-ui','removeParam','DEFAULT_WS_SESSION_TICKET_URL','_document','column','transformSelections','div','hasOwnProperty','undoState','YUUMI_PROMPT_MAX_TOKENS_EXCEEDED','DocSelectionManagerService','ILogService','sheetID','_handleHeartbeatEvent','collabStatus.fetchMiss','CollaborationEvent','6290307wAkbjo','_initEvent','_startDocCollabCursor','currentColor','RegularPolygon','_heartbeatTimer','translate(.97)','uni.network.url-service','MUTATION','FromArray','SheetCollabCursorShape','saveTaskMap','mapTo','rxjs/operators','_collabSessionService','getParam','Injector','useObservable','_updateURLWithCurrentState','_initDependencies','runOnServer','_cursorShapes','selection','_univerInstanceService','_labelPosition','permission.title','_refRangeService','collabCursorState$','yellow.400','data','ICommandService','evenodd','handleIRemoveCol','unload','getLocalCacheKey','getRenderById','merge','IRenderManagerService','_collaborationController','transformStateCache','_memberService','_onCursorUpdate','fillText','_handleJoinEvent','CollaborationStatus','range','getCellPositionByOffset','getStateCache','_setupSubUnitSync','CollaborationStatusDisplay','pushState','red.300','_injector','whenReady','LOCAL_CACHE_INTERVAL_KEY','ITransformService','YUUMI_TABLE_NOT_FOUND_IN_UNIT','tag','_name','RemoveRowCommandId','APPLY_NON_SEQUENTIAL_REVISION','search','_themeService','USER_NOT_INVITED_CODE','newValue','884050YrFnJj','setTimeout','Shape','_getSessionTicket','LICENSE_MAX_UNITS_EXCEEDED','cursorInfo','Rectangle','getColor','INTERNAL_ERROR','clearTimeout','displayName','_syncEditingCollabCursorService','top','currentSkeleton$','status$','_render','UNIVER_DOC','YUUMI_ASYNCIO_CANCELLED','NO_OTHER_CLIENTS_EDITING','getRelativeToViewportCoord','unshift','rgba(255,\x20255,\x20255,\x200.01)','updateOfflineData','InsertRowCommandId','debounceTime','SetDocZoomRatioOperation','complete','mask','UNIVER_COLLABORATION_CLIENT_WEB_PLUGIN','_saveCache','add','setUndoRedoMutationParamsCache','CHANGESET_REVISION_CONFILICT','triggerDblclick','_docTransformStateCacheService','jsx','handleInsertRangeMoveDown','TRANSFORM_CHANGE_OBSERVABLE_TYPE','addObject','_handleHover','Vector2','show','RefRangeService','from','_hideTimer','_sheetSkeletonManagerService','YUUMI_RATE_OVER_LIMIT','getVpScrollXYInfoByPosToVp','_docTransformSelectionsService','SOCKET_FAILED','pluginName','_handleEvent','#FFF','_transformPreviousActiveRange','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','_backgroundColor','toRgbString','ALREADY_EXISTS','BehaviorSubject','UniverIcon','PENDING','addHandlerCallback','_getMergeRange','session.will-retry','disposeWithMe','_commandService','BrowserCollaborationSocketService','_instanceService','_scheduleClearOtherTimer','collabStatus.offline','_status$','react/jsx-runtime','save','_docClipboardService','LICENSE_IMPORT_SIZE_EXCEEDED','ONLINE','isTransformMutationFailure','arc','send','APPLY_REVISION_CONFILICT','_config','key','Failed','jsxs','_collaborationUIEventService','href','_getSheetObject','_scheduleHeartbeat','SessionStatus','1em','Tooltip','CollaborationUIEventId','0\x200\x2017\x2016','_doCreateSocket','setItem','DependentOn','INVALID_INVITE_CODE','_initCommandExecutedListener','transformMutation','RichTextEditingMutation','has','disposeUnit','_handleLeaveEvent','icon'];_0x2824=function(){return _0x283e60;};return _0x2824();}q=yt([y(0x0,T[_0x48e5bc(0x210)]),y(0x1,u[_0x48e5bc(0x2ea)]),y(0x2,a['Inject'](u[_0x48e5bc(0x2a1)])),y(0x3,T['IMessageService']),y(0x4,T['INotificationService']),y(0x5,a[_0x48e5bc(0x28c)](a[_0x48e5bc(0x223)]))],q);const $t='collaboration-client-ui.config',Ue={},be=a[_0x48e5bc(0x85)](_0x48e5bc(0xf9));var xt=Object[_0x48e5bc(0x275)],jt=(_0x2c3c3f,_0x36b22d,_0x18a75c,_0x50c2f0)=>{const _0x33e8a5=_0x48e5bc;for(var _0x16081f=_0x50c2f0>0x1?void 0x0:_0x50c2f0?xt(_0x36b22d,_0x18a75c):_0x36b22d,_0x55480e=_0x2c3c3f[_0x33e8a5(0x2c5)]-0x1,_0x930ef1;_0x55480e>=0x0;_0x55480e--)(_0x930ef1=_0x2c3c3f[_0x55480e])&&(_0x16081f=_0x930ef1(_0x16081f)||_0x16081f);return _0x16081f;},H=(_0x3cb7f8,_0xab1288)=>(_0x4214fb,_0x55ddf0)=>_0xab1288(_0x4214fb,_0x55ddf0,_0x3cb7f8);exports[_0x48e5bc(0x259)]=class extends a[_0x48e5bc(0x9d)]{constructor(_0x55e712,_0x5e602a,_0x275714,_0x2dbb0b,_0x237678){const _0x31cdd4=_0x48e5bc;super(),this[_0x31cdd4(0x24a)]=_0x55e712,this[_0x31cdd4(0x1d4)]=_0x5e602a,this[_0x31cdd4(0x174)]=_0x275714,this['_dataLoaderService']=_0x2dbb0b,_0x237678?_0x237678==null||_0x237678[_0x31cdd4(0x127)]()['then'](()=>this[_0x31cdd4(0x1c8)]()):(this[_0x31cdd4(0x1d4)][_0x31cdd4(0x24c)](_0x31cdd4(0x257),_0x31cdd4(0x234)),this[_0x31cdd4(0x1c8)]());}async[_0x48e5bc(0x1c8)](){const _0x259058=_0x48e5bc,_0x1f7fb3=this[_0x259058(0x24a)][_0x259058(0x101)](_0x259058(0x99)),_0x3f6216=this['_urlService']['getParam'](_0x259058(0x1ee)),_0x135a38=this[_0x259058(0x24a)][_0x259058(0x101)]('subunit');if(!_0x1f7fb3||!_0x3f6216){this[_0x259058(0x1d4)][_0x259058(0x24c)]('[CollaborationDataLoaderController]','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.');return;}const _0x45230f=await this[_0x259058(0x1eb)][_0x259058(0x230)](_0x1f7fb3,Number(_0x3f6216),_0x135a38);_0x45230f&&_0x45230f instanceof a[_0x259058(0x2cc)]&&this['_setupSubUnitSync'](_0x45230f);}async[_0x48e5bc(0x122)](_0x472e18){const _0x5eb7a2=_0x48e5bc;await this[_0x5eb7a2(0x96)](_0x472e18),_0x472e18[_0x5eb7a2(0x255)][_0x5eb7a2(0x29b)](d['takeUntil'](this['dispose$']))[_0x5eb7a2(0x2fe)](_0xcf537e=>{_0xcf537e&&this['_updateURLWithCurrentState'](_0xcf537e);}),this['_urlService'][_0x5eb7a2(0x297)][_0x5eb7a2(0x29b)](d[_0x5eb7a2(0xdd)](this[_0x5eb7a2(0xcc)]))[_0x5eb7a2(0x2fe)](()=>this[_0x5eb7a2(0x96)](_0x472e18));}[_0x48e5bc(0x104)](_0x26c317,_0x18ef31=!0x1){const _0x1d42de=_0x48e5bc,_0x29096d=this[_0x1d42de(0x24a)][_0x1d42de(0x101)](_0x1d42de(0x1c4));_0x26c317['getSheetId']()!==_0x29096d&&this[_0x1d42de(0x24a)][_0x1d42de(0xd4)](_0x1d42de(0x1c4),_0x26c317[_0x1d42de(0x1ac)](),_0x18ef31);}async[_0x48e5bc(0x96)](_0x175ffd){const _0x3f4005=_0x48e5bc;var _0x15f9e0;const _0x266f5d=this[_0x3f4005(0x24a)][_0x3f4005(0x101)](_0x3f4005(0x1c4));if(!_0x266f5d||!_0x175ffd['getSheetBySheetId'](_0x266f5d)){const _0x36fedb=_0x175ffd['getUnhiddenWorksheets']()[0x0],_0x419239=_0x175ffd[_0x3f4005(0x1f8)](_0x36fedb);if(!_0x419239)return;this[_0x3f4005(0x104)](_0x419239,!0x0),await this[_0x3f4005(0x174)][_0x3f4005(0xc3)](g[_0x3f4005(0x84)]['id'],{'unitId':_0x175ffd[_0x3f4005(0x280)](),'subUnitId':_0x36fedb});return;}((_0x15f9e0=_0x175ffd[_0x3f4005(0x92)]())==null?void 0x0:_0x15f9e0['getSheetId']())!==_0x266f5d&&await this['_commandService'][_0x3f4005(0xc3)](g[_0x3f4005(0x84)]['id'],{'unitId':_0x175ffd[_0x3f4005(0x280)](),'subUnitId':_0x266f5d});}},exports['CollaborationDataLoaderController']=jt([H(0x0,be),H(0x1,a[_0x48e5bc(0xed)]),H(0x2,a[_0x48e5bc(0x110)]),H(0x3,a[_0x48e5bc(0x28c)](u[_0x48e5bc(0xc5)])),H(0x4,a[_0x48e5bc(0x2d0)](Ke['IRemoteInstanceService']))],exports[_0x48e5bc(0x259)]);var Bt=Object[_0x48e5bc(0x275)],kt=(_0x49f80e,_0x46c9e1,_0x144d3b,_0x551be9)=>{for(var _0x21df55=_0x551be9>0x1?void 0x0:_0x551be9?Bt(_0x46c9e1,_0x144d3b):_0x46c9e1,_0x7f460d=_0x49f80e['length']-0x1,_0x545904;_0x7f460d>=0x0;_0x7f460d--)(_0x545904=_0x49f80e[_0x7f460d])&&(_0x21df55=_0x545904(_0x21df55)||_0x21df55);return _0x21df55;},ce=(_0x58958b,_0x4e5775)=>(_0x1c73d1,_0x5ea788)=>_0x4e5775(_0x1c73d1,_0x5ea788,_0x58958b);let z=class{constructor(_0x47d379,_0x561d0a,_0x32f2a0){const _0x297270=_0x48e5bc;this[_0x297270(0x126)]=_0x47d379,this[_0x297270(0x201)]=_0x561d0a,this[_0x297270(0x2b4)]=_0x32f2a0;}[_0x48e5bc(0x2b8)](_0x36d8c1){const _0x55d30e=_0x48e5bc;this['_transformUndoRedoStack'](_0x36d8c1),this[_0x55d30e(0x168)](_0x36d8c1);}[_0x48e5bc(0x1d1)](_0x2c2390){const _0xdc243c=_0x48e5bc,{unitID:_0x4616b3}=_0x2c2390,_0x2b937c=this[_0xdc243c(0x2b4)]['getRenderById'](_0x4616b3)[_0xdc243c(0xd3)](b[_0xdc243c(0x296)]),{redoCache:_0x2d9a07}=_0x2b937c[_0xdc243c(0x301)]();if(_0x2d9a07[_0xdc243c(0x2c5)]===0x0)return _0x2c2390;let _0x3a7368=a[_0xdc243c(0x2ce)][_0xdc243c(0x1a9)](_0x2c2390[_0xdc243c(0x2b3)][0x0]);for(let _0x34847a=0x0;_0x34847a<_0x2d9a07[_0xdc243c(0x2c5)];_0x34847a++){const _0xa34a84={'id':_0xdc243c(0x236),'params':{..._0x2d9a07[_0x34847a]}},_0x6f34c2=this['_transformService'][_0xdc243c(0x195)](_0x3a7368,_0xa34a84,!0x1);if(m[_0xdc243c(0x17f)](_0x6f34c2))throw _0x6f34c2['error'];_0x3a7368=_0x6f34c2[_0xdc243c(0x2de)];}return{...a[_0xdc243c(0x2ce)][_0xdc243c(0x1a9)](_0x2c2390),'mutations':[_0x3a7368]};}[_0x48e5bc(0x1c3)](_0x1824b6){const _0x48e3eb=_0x48e5bc,{unitID:_0x13993b}=_0x1824b6,_0x4c2d43=this[_0x48e3eb(0x2b4)][_0x48e3eb(0x115)](_0x13993b)[_0x48e3eb(0xd3)](b[_0x48e3eb(0x296)]),{undoCache:_0x5ee7b4,redoCache:_0x577696}=_0x4c2d43[_0x48e3eb(0x301)]();if(_0x5ee7b4[_0x48e3eb(0x2c5)]===0x0||_0x577696['length']===0x0)return;const _0x4cf00f=[],_0x1c494a=[];let _0xe63b8e=a[_0x48e3eb(0x2ce)][_0x48e3eb(0x1a9)](_0x1824b6['mutations'][0x0]),_0x3406b4=a[_0x48e3eb(0x2ce)]['deepClone'](_0x1824b6[_0x48e3eb(0x2b3)][0x0]);for(let _0x16254a=_0x5ee7b4['length']-0x1;_0x16254a>=0x0;_0x16254a--){const _0x2ea0ff={'id':_0x48e3eb(0x236),'params':{..._0x5ee7b4[_0x16254a]}},_0x516011={'id':_0x48e3eb(0x236),'params':{..._0x577696[_0x16254a]}},_0x36dabe=this['_transformService'][_0x48e3eb(0x195)](_0xe63b8e,_0x2ea0ff,!0x1),_0x5686d6=this[_0x48e3eb(0x201)][_0x48e3eb(0x195)](_0x3406b4,_0x516011,!0x1);if(m[_0x48e3eb(0x17f)](_0x36dabe))throw _0x36dabe[_0x48e3eb(0x272)];if(m[_0x48e3eb(0x17f)](_0x5686d6))throw _0x5686d6[_0x48e3eb(0x272)];_0x4cf00f[_0x48e3eb(0x147)](_0x36dabe[_0x48e3eb(0x277)]['params']),_0x1c494a[_0x48e3eb(0x147)](_0x5686d6['m2Prime'][_0x48e3eb(0x26e)]),_0xe63b8e=_0x36dabe[_0x48e3eb(0x2de)],_0x3406b4=_0x5686d6[_0x48e3eb(0x2de)];}_0x4c2d43[_0x48e3eb(0x152)]({'undoCache':_0x4cf00f,'redoCache':_0x1c494a});}[_0x48e5bc(0x168)](_0x17b876){const _0x49ff0f=_0x48e5bc,{unitID:_0x2b90a8}=_0x17b876,_0x3d9726=this['_renderManagerService']['getRenderById'](_0x2b90a8)[_0x49ff0f(0xd3)](b[_0x49ff0f(0x296)]),_0x1ab483=_0x3d9726[_0x49ff0f(0x2fa)]();if(_0x1ab483==null)return;const _0x719554=[{'id':_0x49ff0f(0x236),'params':{'unitId':_0x17b876['unitID'],'actions':null,'textRanges':[_0x1ab483]}}],_0x227243=this['_transformService']['transformMutationsWithChangeset'](_0x17b876,_0x719554);if(!m[_0x49ff0f(0xde)](_0x227243))throw _0x227243['error'];const _0x231c68=_0x227243['m2Prime'][0x0][_0x49ff0f(0x26e)]['textRanges'];Array[_0x49ff0f(0x1b9)](_0x231c68)&&_0x231c68['length']&&_0x3d9726[_0x49ff0f(0x1e5)](_0x231c68[0x0]);}};z=kt([ce(0x0,a[_0x48e5bc(0x28c)](a[_0x48e5bc(0x102)])),ce(0x1,m[_0x48e5bc(0x129)]),ce(0x2,p[_0x48e5bc(0x117)])],z);var Ht=Object['getOwnPropertyDescriptor'],Ft=(_0xad09df,_0x8e87c5,_0x1535e4,_0x326c6b)=>{for(var _0x19b567=_0x326c6b>0x1?void 0x0:_0x326c6b?Ht(_0x8e87c5,_0x1535e4):_0x8e87c5,_0x1f1f28=_0xad09df['length']-0x1,_0x24d854;_0x1f1f28>=0x0;_0x1f1f28--)(_0x24d854=_0xad09df[_0x1f1f28])&&(_0x19b567=_0x24d854(_0x19b567)||_0x19b567);return _0x19b567;},le=(_0x16b1a1,_0x5b9ff8)=>(_0x24fec4,_0x4a4446)=>_0x5b9ff8(_0x24fec4,_0x4a4446,_0x16b1a1);let J=class{constructor(_0x4e1ff1,_0x4009cf,_0x31d66d){const _0xfa81cf=_0x48e5bc;this[_0xfa81cf(0x126)]=_0x4e1ff1,this['_transformService']=_0x4009cf,this[_0xfa81cf(0x1a3)]=_0x31d66d;}[_0x48e5bc(0x119)](_0x4dc118){const _0x4c4538=_0x48e5bc;this[_0x4c4538(0x2f7)](_0x4dc118);}[_0x48e5bc(0x1d1)](_0x4ec304){const _0x6aae36=_0x48e5bc,{unitID:_0x4af69b}=_0x4ec304,{collaboration:_0x2c5ea9}=this[_0x6aae36(0x1a3)][_0x6aae36(0x121)](_0x4af69b);if(_0x2c5ea9[_0x6aae36(0x2c5)]===0x0)return _0x4ec304;let _0x10c922=a['Tools'][_0x6aae36(0x1a9)](_0x4ec304[_0x6aae36(0x2b3)][0x0]);for(let _0x420b79=0x0;_0x420b79<_0x2c5ea9[_0x6aae36(0x2c5)];_0x420b79++){const _0x288e32={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x2c5ea9[_0x420b79]['unitId'],..._0x2c5ea9[_0x420b79]['redoState']}},_0xceef18=this[_0x6aae36(0x201)][_0x6aae36(0x195)](_0x10c922,_0x288e32,!0x1);if(m[_0x6aae36(0x17f)](_0xceef18))throw _0xceef18['error'];_0x10c922=_0xceef18['m1Prime'];}return{...a[_0x6aae36(0x2ce)][_0x6aae36(0x1a9)](_0x4ec304),'mutations':[_0x10c922]};}[_0x48e5bc(0x2f7)](_0x2c8a2b){const _0x5ea615=_0x48e5bc,{unitID:_0x563b1e}=_0x2c8a2b,{history:_0x2b0591,collaboration:_0x2b0f11}=this[_0x5ea615(0x1a3)][_0x5ea615(0x121)](_0x563b1e);if(_0x2b0591['length']===0x0&&_0x2b0f11[_0x5ea615(0x2c5)]===0x0)return;const _0x1b10af=[],_0x219969=[];let _0x1e69a0=a['Tools'][_0x5ea615(0x1a9)](_0x2c8a2b[_0x5ea615(0x2b3)][0x0]),_0x5ac24a=a['Tools'][_0x5ea615(0x1a9)](_0x2c8a2b['mutations'][0x0]);for(let _0x453c2c=_0x2b0591[_0x5ea615(0x2c5)]-0x1;_0x453c2c>=0x0;_0x453c2c--){const _0x2b8c9a={'id':_0x5ea615(0x236),'params':{'unitId':_0x2b0591[_0x453c2c][_0x5ea615(0x1ea)],..._0x2b0591[_0x453c2c][_0x5ea615(0xea)]}},_0x56bd95={'id':_0x5ea615(0x236),'params':{'unitId':_0x2b0591[_0x453c2c][_0x5ea615(0x1ea)],..._0x2b0591[_0x453c2c]['redoState']}},_0x4bb0ce=this[_0x5ea615(0x201)][_0x5ea615(0x195)](_0x1e69a0,_0x2b8c9a,!0x1),_0x68f1a0=this['_transformService'][_0x5ea615(0x195)](_0x5ac24a,_0x56bd95,!0x1);if(m[_0x5ea615(0x17f)](_0x4bb0ce))throw _0x4bb0ce[_0x5ea615(0x272)];if(m[_0x5ea615(0x17f)](_0x68f1a0))throw _0x68f1a0[_0x5ea615(0x272)];_0x1b10af[_0x5ea615(0x147)]({..._0x2b0591[_0x453c2c],'undoState':_0x4bb0ce[_0x5ea615(0x277)][_0x5ea615(0x26e)],'redoState':_0x68f1a0[_0x5ea615(0x277)][_0x5ea615(0x26e)]}),_0x1e69a0=_0x4bb0ce[_0x5ea615(0x2de)],_0x5ac24a=_0x68f1a0[_0x5ea615(0x2de)];}_0x1e69a0=a[_0x5ea615(0x2ce)][_0x5ea615(0x1a9)](_0x2c8a2b[_0x5ea615(0x2b3)][0x0]),_0x5ac24a=a['Tools'][_0x5ea615(0x1a9)](_0x2c8a2b['mutations'][0x0]);for(let _0x2ed73a=_0x2b0f11[_0x5ea615(0x2c5)]-0x1;_0x2ed73a>=0x0;_0x2ed73a--){const _0x2b9e0a={'id':_0x5ea615(0x236),'params':{'unitId':_0x2b0f11[_0x2ed73a]['unitId'],..._0x2b0f11[_0x2ed73a][_0x5ea615(0xea)]}},_0x394365={'id':_0x5ea615(0x236),'params':{'unitId':_0x2b0f11[_0x2ed73a][_0x5ea615(0x1ea)],..._0x2b0f11[_0x2ed73a]['redoState']}},_0x4c318d=this[_0x5ea615(0x201)]['transformMutation'](_0x1e69a0,_0x2b9e0a,!0x1),_0x503152=this[_0x5ea615(0x201)]['transformMutation'](_0x5ac24a,_0x394365,!0x1);if(m[_0x5ea615(0x17f)](_0x4c318d))throw _0x4c318d['error'];if(m[_0x5ea615(0x17f)](_0x503152))throw _0x503152['error'];_0x219969[_0x5ea615(0x147)]({..._0x2b0f11[_0x2ed73a],'undoState':_0x4c318d[_0x5ea615(0x277)][_0x5ea615(0x26e)],'redoState':_0x503152[_0x5ea615(0x277)]['params']}),_0x1e69a0=_0x4c318d[_0x5ea615(0x2de)],_0x5ac24a=_0x503152[_0x5ea615(0x2de)];}this['_docStateChangeManagerService']['setStateCache'](_0x563b1e,{'history':_0x1b10af,'collaboration':_0x219969});}};J=Ft([le(0x0,a['Inject'](a['Injector'])),le(0x1,m[_0x48e5bc(0x129)]),le(0x2,a[_0x48e5bc(0x28c)](b[_0x48e5bc(0x273)]))],J);var Yt=Object['getOwnPropertyDescriptor'],Wt=(_0xc6f4f2,_0x827186,_0xb2657e,_0x9debd0)=>{const _0x31f601=_0x48e5bc;for(var _0x59e84e=_0x9debd0>0x1?void 0x0:_0x9debd0?Yt(_0x827186,_0xb2657e):_0x827186,_0x58b9de=_0xc6f4f2[_0x31f601(0x2c5)]-0x1,_0x12132f;_0x58b9de>=0x0;_0x58b9de--)(_0x12132f=_0xc6f4f2[_0x58b9de])&&(_0x59e84e=_0x12132f(_0x59e84e)||_0x59e84e);return _0x59e84e;},Ne=(_0x32dea2,_0x103980)=>(_0x1c59a5,_0x5631d1)=>_0x103980(_0x1c59a5,_0x5631d1,_0x32dea2);let Z=class{constructor(_0x7b7d30,_0x3ea59c){const _0x29e4cb=_0x48e5bc;this[_0x29e4cb(0x126)]=_0x7b7d30,this['_transformService']=_0x3ea59c;}[_0x48e5bc(0xe7)](_0x25d13d){const _0x4aed2b=_0x48e5bc;var _0x239e51;const _0x56bd2b=this[_0x4aed2b(0x126)][_0x4aed2b(0x20c)](Y['DocSelectionManagerService']),_0x3a5426=(_0x239e51=_0x56bd2b[_0x4aed2b(0xdc)]())!=null?_0x239e51:[];if(_0x3a5426[_0x4aed2b(0x2c5)]===0x0)return;const _0x3b08bb=_0x25d13d[_0x4aed2b(0x2e5)],_0x210f9e=[{'id':_0x4aed2b(0x236),'params':{'unitId':_0x3b08bb,'actions':null,'textRanges':_0x3a5426}}],_0x3f1e4c=this['_transformService']['transformMutationsWithChangeset'](_0x25d13d,_0x210f9e);if(!m[_0x4aed2b(0xde)](_0x3f1e4c))throw _0x3f1e4c[_0x4aed2b(0x272)];const _0x34f02c=_0x3f1e4c[_0x4aed2b(0x277)][0x0][_0x4aed2b(0x26e)]['textRanges'];Array[_0x4aed2b(0x1b9)](_0x34f02c)&&_0x34f02c[_0x4aed2b(0x2c5)]&&_0x56bd2b['replaceDocRanges'](_0x34f02c,{'unitId':_0x3b08bb,'subUnitId':_0x3b08bb},!0x1);}};Z=Wt([Ne(0x0,a[_0x48e5bc(0x28c)](a['Injector'])),Ne(0x1,m['ITransformService'])],Z);var Vt=Object[_0x48e5bc(0x275)],Xt=(_0x4a7408,_0x326f5a,_0x51f675,_0x25a8ca)=>{for(var _0x59fe3d=_0x25a8ca>0x1?void 0x0:_0x25a8ca?Vt(_0x326f5a,_0x51f675):_0x326f5a,_0x3fe1e8=_0x4a7408['length']-0x1,_0x5cb419;_0x3fe1e8>=0x0;_0x3fe1e8--)(_0x5cb419=_0x4a7408[_0x3fe1e8])&&(_0x59fe3d=_0x5cb419(_0x59fe3d)||_0x59fe3d);return _0x59fe3d;},N=(_0x5b06c0,_0x299208)=>(_0x5b4312,_0x7b577f)=>_0x299208(_0x5b4312,_0x7b577f,_0x5b06c0);let Q=class extends a[_0x48e5bc(0xac)]{constructor(_0x57095a,_0x12f51b,_0x2a6ea6,_0x43f68f,_0x525403,_0xc8e780,_0x31ee57,_0x2c18eb){const _0x3cb2b8=_0x48e5bc;super(),h(this,_0x3cb2b8(0x179),new d[(_0x3cb2b8(0x16d))](u['CollaborationStatus'][_0x3cb2b8(0xba)])),(this[_0x3cb2b8(0x1a3)]=_0x57095a,this[_0x3cb2b8(0x118)]=_0x12f51b,this[_0x3cb2b8(0x243)]=_0x2a6ea6,this[_0x3cb2b8(0x155)]=_0x43f68f,this[_0x3cb2b8(0x163)]=_0x525403,this[_0x3cb2b8(0x2db)]=_0xc8e780,this[_0x3cb2b8(0x208)]=_0x31ee57,this[_0x3cb2b8(0x256)]=_0x2c18eb,this[_0x3cb2b8(0x2f3)]());}['_initEntityListener'](){const _0x27ba1d=_0x48e5bc;this[_0x27ba1d(0x173)](this['_collaborationController'][_0x27ba1d(0x1da)][_0x27ba1d(0x2fe)](_0x1dc532=>{const _0x333767=_0x27ba1d,_0x235412=this[_0x333767(0x1a3)]['docStateChange$'][_0x333767(0x2fe)](_0x516214=>{const _0x55ff1c=_0x333767;if(_0x516214==null)return;const {unitId:_0x4a94b0,redoState:_0x2c9c37,commandId:_0x3cab48}=_0x516214;if(_0x4a94b0!==_0x1dc532[_0x55ff1c(0x2e5)])return;const _0x59452f={'id':_0x3cab48,'type':a['CommandType'][_0x55ff1c(0xfa)],'params':{'unitId':_0x4a94b0,'actions':_0x2c9c37['actions'],'textRanges':null}};_0x1dc532['onLocalMutation'](_0x59452f);});if(_0x1dc532[_0x333767(0x173)](_0x235412),_0x1dc532 instanceof u[_0x333767(0x231)]){const _0x235ff2={'onTransformIME':_0x5d2539=>this[_0x333767(0x243)][_0x333767(0x2b8)](_0x5d2539),'onTransformState':_0x3479bf=>this[_0x333767(0x155)][_0x333767(0x119)](_0x3479bf),'onTransformSelections':_0x54ea47=>this['_docTransformSelectionsService']['transformSelections'](_0x54ea47),'onSyncEditingCollabCursor':_0x24df37=>this['_docSyncEditingCollabCursorService'][_0x333767(0x26b)](_0x24df37),'onTransformRemoteChangesetByIMECache':_0x17e8d4=>this[_0x333767(0x243)][_0x333767(0x1d1)](_0x17e8d4),'onTransformRemoteChangesetByStateCache':_0x572ae3=>this[_0x333767(0x155)][_0x333767(0x1d1)](_0x572ae3)};_0x1dc532[_0x333767(0x170)](_0x235ff2);}}));}};Q=Xt([N(0x0,a[_0x48e5bc(0x28c)](b[_0x48e5bc(0x273)])),N(0x1,a['Inject'](u[_0x48e5bc(0x2fd)])),N(0x2,a['Inject'](z)),N(0x3,a[_0x48e5bc(0x28c)](J)),N(0x4,a[_0x48e5bc(0x28c)](Z)),N(0x5,a[_0x48e5bc(0x28c)](Ce)),N(0x6,T['IMessageService']),N(0x7,a[_0x48e5bc(0x28c)](a['LocaleService']))],Q);var Gt=Object[_0x48e5bc(0x275)],Kt=(_0x5de873,_0x2069ca,_0x1103c5,_0x21e7f4)=>{const _0x5a59a3=_0x48e5bc;for(var _0x34890a=_0x21e7f4>0x1?void 0x0:_0x21e7f4?Gt(_0x2069ca,_0x1103c5):_0x2069ca,_0xaebe88=_0x5de873[_0x5a59a3(0x2c5)]-0x1,_0x4e5526;_0xaebe88>=0x0;_0xaebe88--)(_0x4e5526=_0x5de873[_0xaebe88])&&(_0x34890a=_0x4e5526(_0x34890a)||_0x34890a);return _0x34890a;},_e=(_0x44cc6d,_0x3ae63c)=>(_0x2e6b9a,_0x4b83e6)=>_0x3ae63c(_0x2e6b9a,_0x4b83e6,_0x44cc6d);let ge=class extends a[_0x48e5bc(0xac)]{constructor(_0x4533ed,_0x5750ec,_0x59698e){const _0x1b84d4=_0x48e5bc;super(),h(this,_0x1b84d4(0x1c2),new Map()),h(this,_0x1b84d4(0x1d7),new Map()),h(this,_0x1b84d4(0x235),!0x1),(this[_0x1b84d4(0x248)]=_0x4533ed,this[_0x1b84d4(0x21f)]=_0x5750ec,this['_revisionService']=_0x59698e);}['disableLocalCache'](){const _0x222eed=_0x48e5bc;this[_0x222eed(0x235)]=!0x0;}[_0x48e5bc(0x87)](){const _0x1f0fd7=_0x48e5bc;this[_0x1f0fd7(0x235)]=!0x1;}get[_0x48e5bc(0xfd)](){const _0x2e53fe=_0x48e5bc;return this[_0x2e53fe(0x1d7)];}['dispose'](){const _0x40b95e=_0x48e5bc;this[_0x40b95e(0xab)]()[_0x40b95e(0x2ae)](()=>super['dispose']());}async[_0x48e5bc(0x29a)](_0xcd4f9f){const _0x13eae5=_0x48e5bc;return this[_0x13eae5(0x235)]?null:this['_localStorageService'][_0x13eae5(0xc4)](u[_0x13eae5(0x114)](_0xcd4f9f));}async['saveOfflineData'](_0x110e62,_0x410858){return!!this['_localStorageService']['setItem'](_0x110e62,_0x410858);}[_0x48e5bc(0x149)](_0x455f42,_0x1944e2,_0x3e4bd4,_0x477f3f){const _0x4069e0=_0x48e5bc,_0x3ffcca=this['_revisionService']['getCurrentRevOfUnit'](_0x455f42);this[_0x4069e0(0x1c2)][_0x4069e0(0x28a)](_0x455f42,{'unitID':_0x455f42,'type':_0x1944e2,'awaitingChangeset':_0x3e4bd4,'mutations':_0x477f3f,'rev':_0x3ffcca}),this[_0x4069e0(0x1d7)][_0x4069e0(0x197)](_0x455f42)||this[_0x4069e0(0xc0)](_0x455f42);}[_0x48e5bc(0xc0)](_0x58276f){const _0x488503=_0x48e5bc,_0x5112e9=this[_0x488503(0x9a)]();_0x5112e9===0x0?this['_saveCache'](_0x58276f):this[_0x488503(0x1d7)][_0x488503(0x28a)](_0x58276f,setTimeout(()=>this['_saveCache'](_0x58276f),_0x5112e9));}[_0x48e5bc(0x9a)](){const _0x2dd672=_0x48e5bc;var _0x37978d;return(_0x37978d=this['_configService'][_0x2dd672(0x2c2)](u[_0x2dd672(0x128)]))!=null?_0x37978d:u[_0x2dd672(0x1de)];}[_0x48e5bc(0x150)](_0x388bc0){const _0x43ccae=_0x48e5bc,_0x4ec458=this[_0x43ccae(0x1d7)]['get'](_0x388bc0);return _0x4ec458!==void 0x0&&window[_0x43ccae(0x13c)](_0x4ec458),this[_0x43ccae(0x21f)][_0x43ccae(0x191)](u[_0x43ccae(0x114)](_0x388bc0),this['_cachedData'][_0x43ccae(0x20c)](_0x388bc0))[_0x43ccae(0x2ae)](()=>this[_0x43ccae(0x1d7)][_0x43ccae(0x250)](_0x388bc0));}async[_0x48e5bc(0xab)](){const _0x5ab942=_0x48e5bc,_0x27a81f=[];this[_0x5ab942(0x1d7)][_0x5ab942(0x299)]((_0x5a0409,_0x2d1791)=>{const _0x32471d=_0x5ab942;window[_0x32471d(0x13c)](_0x5a0409),_0x27a81f[_0x32471d(0x232)](this[_0x32471d(0x150)](_0x2d1791)['then'](()=>{const _0x176571=_0x32471d;this[_0x176571(0x1d7)][_0x176571(0x250)](_0x2d1791);}));}),await Promise['all'](_0x27a81f);}};ge=Kt([_e(0x0,a[_0x48e5bc(0x1ed)]),_e(0x1,a['ILocalStorageService']),_e(0x2,a[_0x48e5bc(0x28c)](m[_0x48e5bc(0x276)]))],ge);class je extends a['RxDisposable']{constructor(){const _0x270ea0=_0x48e5bc;super(),h(this,_0x270ea0(0x297)),this[_0x270ea0(0x297)]=d[_0x270ea0(0x216)](window,_0x270ea0(0x229))[_0x270ea0(0x29b)](d['takeUntil'](this['dispose$']),d[_0x270ea0(0x2f9)](0x1),d[_0x270ea0(0xfe)](void 0x0));}['setParam'](_0x2bf703,_0x50e338,_0x568364=!0x1){const _0x425ef5=_0x48e5bc,_0x27f38e=new URL(window[_0x425ef5(0x28d)]['href']);_0x27f38e[_0x425ef5(0x2f6)][_0x425ef5(0x28a)](_0x2bf703,_0x50e338),_0x568364?window[_0x425ef5(0xc6)][_0x425ef5(0x278)]('','',_0x27f38e['toString']()):window[_0x425ef5(0xc6)][_0x425ef5(0x124)]('','',_0x27f38e[_0x425ef5(0x220)]());}[_0x48e5bc(0xe3)](_0x91dae9,_0x141157=!0x1){const _0x2e46fe=_0x48e5bc,_0x178a46=new URL(window[_0x2e46fe(0x28d)][_0x2e46fe(0x188)]);_0x178a46[_0x2e46fe(0x2f6)]['delete'](_0x91dae9),_0x141157?window[_0x2e46fe(0xc6)][_0x2e46fe(0x278)]('','',_0x178a46[_0x2e46fe(0x220)]()):window[_0x2e46fe(0xc6)][_0x2e46fe(0x124)]('','',_0x178a46[_0x2e46fe(0x220)]());}['getParam'](_0xeb2ccf){const _0x52ae80=_0x48e5bc;var _0x19427f;return(_0x19427f=new URL(window[_0x52ae80(0x28d)][_0x52ae80(0x188)])[_0x52ae80(0x2f6)][_0x52ae80(0x20c)](_0xeb2ccf))!=null?_0x19427f:void 0x0;}}var qt=Object[_0x48e5bc(0x228)],zt=Object[_0x48e5bc(0x275)],Jt=(_0x114e39,_0x2923c5,_0x2d8d18)=>_0x2923c5 in _0x114e39?qt(_0x114e39,_0x2923c5,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x2d8d18}):_0x114e39[_0x2923c5]=_0x2d8d18,Zt=(_0x3ec750,_0x599279,_0x3a2000,_0x4d6425)=>{const _0x594e23=_0x48e5bc;for(var _0x148711=_0x4d6425>0x1?void 0x0:_0x4d6425?zt(_0x599279,_0x3a2000):_0x599279,_0x1fe801=_0x3ec750[_0x594e23(0x2c5)]-0x1,_0x1e7e95;_0x1fe801>=0x0;_0x1fe801--)(_0x1e7e95=_0x3ec750[_0x1fe801])&&(_0x148711=_0x1e7e95(_0x148711)||_0x148711);return _0x148711;},he=(_0xa4ae80,_0x44fc07)=>(_0xa5edc,_0x23fa6a)=>_0x44fc07(_0xa5edc,_0x23fa6a,_0xa4ae80),Qt=(_0x3a8977,_0x906031,_0x4cdc1f)=>Jt(_0x3a8977,_0x906031+'',_0x4cdc1f);const es=_0x48e5bc(0x14f);exports[_0x48e5bc(0x23a)]=class extends a[_0x48e5bc(0x289)]{constructor(_0x1afdd8=Ue,_0x4fbabf,_0x19f91d,_0x18693f){const _0x42fcf3=_0x48e5bc;super(),this[_0x42fcf3(0x183)]=_0x1afdd8,this[_0x42fcf3(0x2b4)]=_0x4fbabf,this['_injector']=_0x19f91d,this[_0x42fcf3(0x248)]=_0x18693f;const {..._0x1b202a}=a['merge']({},Ue,this[_0x42fcf3(0x183)]);this[_0x42fcf3(0x248)][_0x42fcf3(0x22d)]($t,_0x1b202a);}['onStarting'](){const _0x68b788=_0x48e5bc;this[_0x68b788(0x2d9)](),this[_0x68b788(0x105)]();}[_0x48e5bc(0x2fc)](){this['_registerRenderDependencies']();}['_registerDependencies'](){const _0x4ab756=_0x48e5bc;var _0x195dfe;const _0x11bd0b=[[me],[Z],[z],[J],[Ce],[be,{'useClass':je}],[G[_0x4ab756(0x25f)],{'useClass':G[_0x4ab756(0x8d)]}],[u[_0x4ab756(0x2ea)],{'useClass':ge}],[exports[_0x4ab756(0x1c6)]],[Q],[q],[x],[de],[exports[_0x4ab756(0x259)]]];a[_0x4ab756(0x206)](this[_0x4ab756(0x126)],a[_0x4ab756(0x1fa)](_0x11bd0b,(_0x195dfe=this[_0x4ab756(0x183)])==null?void 0x0:_0x195dfe[_0x4ab756(0x1a5)]));}[_0x48e5bc(0xb5)](){const _0x191c17=_0x48e5bc;this[_0x191c17(0x173)](this['_renderManagerService'][_0x191c17(0x1df)](a[_0x191c17(0x80)][_0x191c17(0x143)],[Ie])),this[_0x191c17(0x173)](this[_0x191c17(0x2b4)]['registerRenderModule'](a[_0x191c17(0x80)][_0x191c17(0x1f3)],[ve]));}[_0x48e5bc(0x105)](){const _0xb4337c=_0x48e5bc;a['touchDependencies'](this[_0xb4337c(0x126)],[[x],[exports[_0xb4337c(0x1c6)]],[Q],[q],[exports['CollaborationDataLoaderController']]]);}},Qt(exports[_0x48e5bc(0x23a)],_0x48e5bc(0x165),es),exports[_0x48e5bc(0x23a)]=Zt([a[_0x48e5bc(0x192)](u[_0x48e5bc(0x19e)]),he(0x1,p['IRenderManagerService']),he(0x2,a[_0x48e5bc(0x28c)](a[_0x48e5bc(0x102)])),he(0x3,a['IConfigService'])],exports[_0x48e5bc(0x23a)]);var ts=Object['getOwnPropertyDescriptor'],ss=(_0x28dc0f,_0x17bf90,_0x1b18f7,_0x228d69)=>{const _0x20c185=_0x48e5bc;for(var _0x4b11a2=_0x228d69>0x1?void 0x0:_0x228d69?ts(_0x17bf90,_0x1b18f7):_0x17bf90,_0x230c98=_0x28dc0f[_0x20c185(0x2c5)]-0x1,_0x554f2a;_0x230c98>=0x0;_0x230c98--)(_0x554f2a=_0x28dc0f[_0x230c98])&&(_0x4b11a2=_0x554f2a(_0x4b11a2)||_0x4b11a2);return _0x4b11a2;},F=(_0x18fde8,_0x296c65)=>(_0xa32b76,_0x4cfd82)=>_0x296c65(_0xa32b76,_0x4cfd82,_0x18fde8);exports[_0x48e5bc(0x175)]=class extends u[_0x48e5bc(0xad)]{constructor(_0xb516f4,_0x53ec64,_0x47e846,_0x5c34b2,_0x548ed0){super(_0xb516f4,_0x53ec64,_0x47e846,_0x5c34b2,_0x548ed0);}async['createSocket'](_0x585464){const _0x4cd59e=_0x48e5bc,_0x435cdd=await this[_0x4cd59e(0x136)](),_0x3fc6cc=this[_0x4cd59e(0x27f)](_0x585464,_0x435cdd);return this[_0x4cd59e(0x190)](_0x3fc6cc);}[_0x48e5bc(0x27f)](_0xed4d16,_0x11da4a){const _0x4fe289=_0x48e5bc,_0x5281c3=typeof window>'u'?new URL(_0xed4d16):new URL(_0xed4d16,window[_0x4fe289(0x28d)]['origin']);_0x5281c3[_0x4fe289(0x2f6)][_0x4fe289(0x28a)](_0x4fe289(0x8c),_0x11da4a);const _0xec52e1=typeof window>'u'?new URLSearchParams():new URLSearchParams(window[_0x4fe289(0x28d)][_0x4fe289(0x12f)]);return _0xec52e1['get'](_0x4fe289(0x1ab))&&_0x5281c3[_0x4fe289(0x2f6)][_0x4fe289(0x28a)](_0x4fe289(0x1ab),_0xec52e1[_0x4fe289(0x20c)](_0x4fe289(0x1ab))),_0x5281c3[_0x4fe289(0x220)]();}async[_0x48e5bc(0x136)](){const _0x19b1b5=_0x48e5bc;var _0x86835d,_0x3a2f7b,_0xd0cb5f;const _0x1634a2=this[_0x19b1b5(0x248)][_0x19b1b5(0x2c2)](u[_0x19b1b5(0x1cb)]),_0x2dae1b=(_0x86835d=_0x1634a2==null?void 0x0:_0x1634a2['wsSessionTicketUrl'])!=null?_0x86835d:u[_0x19b1b5(0xe4)];return(_0xd0cb5f=(_0x3a2f7b=(await this[_0x19b1b5(0xcf)]['get'](_0x2dae1b,{'headers':{'Content-Type':'application/json'}}))['body'])==null?void 0x0:_0x3a2f7b[_0x19b1b5(0x8e)])!=null?_0xd0cb5f:'';}},exports[_0x48e5bc(0x175)]=ss([F(0x0,a['Inject'](a['Injector'])),F(0x1,a[_0x48e5bc(0x28c)](G[_0x48e5bc(0x217)])),F(0x2,a[_0x48e5bc(0x1ed)]),F(0x3,a['ILogService']),F(0x4,m[_0x48e5bc(0xa9)])],exports[_0x48e5bc(0x175)]);const Me=0x7530,Le=_0x48e5bc(0x95);class is extends a[_0x48e5bc(0xac)]{constructor(){const _0x39574f=_0x48e5bc;super(),h(this,_0x39574f(0x285),a[_0x39574f(0x288)]()),h(this,_0x39574f(0x25b),new Set()),h(this,_0x39574f(0x1ad),new Map()),h(this,_0x39574f(0xf7),null),h(this,_0x39574f(0x290),new Map()),h(this,_0x39574f(0x2e4),new Map()),this[_0x39574f(0x1c8)]();}[_0x48e5bc(0x233)](){const _0x4d6cff=_0x48e5bc;super['dispose'](),this[_0x4d6cff(0x290)][_0x4d6cff(0x299)]((_0x298b42,_0x1c0e52)=>this[_0x4d6cff(0x1b1)](_0x1c0e52)),this[_0x4d6cff(0xf7)]&&window[_0x4d6cff(0xd1)](this['_heartbeatTimer']);}[_0x48e5bc(0x2cf)](_0x3a5f8e){const _0x25f510=_0x48e5bc;return this[_0x25f510(0x1ef)](_0x3a5f8e)[_0x25f510(0x29b)](d['distinctUntilChanged']());}['editingUnit'](_0x182d55){const _0xa67db6=_0x48e5bc;this[_0xa67db6(0x25b)]['size']===0x0&&this['_scheduleHeartbeat'](),this[_0xa67db6(0x25b)][_0xa67db6(0x151)](_0x182d55),this[_0xa67db6(0x2cd)]({'type':0x0,'memberID':this['_id'],'unitIDs':[_0x182d55],'isForwarded':!0x1});}[_0x48e5bc(0x198)](_0x57adb0){const _0x18510d=_0x48e5bc;this[_0x18510d(0x25b)][_0x18510d(0x250)](_0x57adb0),this[_0x18510d(0x25b)][_0x18510d(0x267)]===0x0&&this[_0x18510d(0xf7)]&&window[_0x18510d(0xd1)](this[_0x18510d(0xf7)]);}[_0x48e5bc(0x1c8)](){const _0x2b1cbb=_0x48e5bc;this[_0x2b1cbb(0x173)](a[_0x2b1cbb(0x26d)](d[_0x2b1cbb(0x216)](window,'storage')[_0x2b1cbb(0x2fe)](_0x4f100b=>{const _0x4e371c=_0x2b1cbb;if(_0x4f100b[_0x4e371c(0x184)]!==Le||!_0x4f100b[_0x4e371c(0x132)])return;const _0x338443=JSON[_0x4e371c(0x1c9)](_0x4f100b['newValue']);this[_0x4e371c(0x166)](_0x338443);}))),window['addEventListener'](_0x2b1cbb(0x113),()=>this[_0x2b1cbb(0x2cd)]({'type':0x1,'memberID':this[_0x2b1cbb(0x285)],'unitIDs':Array[_0x2b1cbb(0x15e)](this[_0x2b1cbb(0x25b)])}));}[_0x48e5bc(0x166)](_0x3006f2){const _0x48bbb9=_0x48e5bc;switch(_0x3006f2[_0x48bbb9(0x1ee)]){case 0x0:this[_0x48bbb9(0x11d)](_0x3006f2);break;case 0x1:this[_0x48bbb9(0x199)](_0x3006f2);break;case 0x2:this[_0x48bbb9(0xef)](_0x3006f2);break;}}[_0x48e5bc(0x11d)](_0x11d6b3){const _0x29b6c8=_0x48e5bc,{unitIDs:_0x36f70a,memberID:_0x2b7b9a,isForwarded:_0x2a176e}=_0x11d6b3;_0x36f70a['forEach'](_0x69c165=>{const _0x3ed1ba=_0x3f84;if(!_0x2a176e&&this[_0x3ed1ba(0x1ad)][_0x3ed1ba(0x197)](_0x69c165)&&this[_0x3ed1ba(0x1ef)](_0x69c165)[_0x3ed1ba(0xbb)](u[_0x3ed1ba(0x1e7)][_0x3ed1ba(0x1e2)]),!this[_0x3ed1ba(0x1ad)]['has'](_0x69c165)||!this['_unitOnClients'][_0x3ed1ba(0x20c)](_0x69c165)['has'](_0x2b7b9a)){const _0x1b55b1=this[_0x3ed1ba(0x1ad)][_0x3ed1ba(0x20c)](_0x69c165)||new Set();_0x1b55b1[_0x3ed1ba(0x151)](_0x2b7b9a),this[_0x3ed1ba(0x1ad)][_0x3ed1ba(0x28a)](_0x69c165,_0x1b55b1),this['_scheduleClearOtherTimer'](_0x2b7b9a);}}),_0x2a176e||this['_send']({'type':0x0,'memberID':this[_0x29b6c8(0x285)],'unitIDs':[...this[_0x29b6c8(0x25b)]],'isForwarded':!0x0});}[_0x48e5bc(0x177)](_0x3d1247){const _0x3c16a5=_0x48e5bc;this[_0x3c16a5(0x1b1)](_0x3d1247);const _0x9b8279=window[_0x3c16a5(0x134)](()=>{const _0x5b1ff4=_0x3c16a5;this[_0x5b1ff4(0x1ad)][_0x5b1ff4(0x299)](_0x287d3d=>{_0x287d3d['delete'](_0x3d1247);});},Me*0x2);this[_0x3c16a5(0x290)][_0x3c16a5(0x28a)](_0x3d1247,_0x9b8279);}['_removeClearOtherTimer'](_0x54f63e){const _0x134b80=_0x48e5bc;if(this[_0x134b80(0x290)]['has'](_0x54f63e)){const _0x14efeb=this['_clearOtherTimers']['get'](_0x54f63e);_0x14efeb&&window[_0x134b80(0x13c)](_0x14efeb),this[_0x134b80(0x290)][_0x134b80(0x28a)](_0x54f63e,null);}}[_0x48e5bc(0x199)](_0x2996c8){const _0x4baa25=_0x48e5bc,{memberID:_0x1c4d54,unitIDs:_0x3c84df}=_0x2996c8;_0x3c84df[_0x4baa25(0x299)](_0x448d89=>{const _0x2779fa=_0x4baa25;var _0x3bae33;const _0x12c92f=this[_0x2779fa(0x1ad)][_0x2779fa(0x20c)](_0x448d89);_0x12c92f&&(_0x12c92f[_0x2779fa(0x250)](_0x1c4d54),(_0x3bae33=this['_ensureSubject'](_0x448d89))==null||_0x3bae33[_0x2779fa(0xbb)](_0x12c92f[_0x2779fa(0x267)]===0x0?u[_0x2779fa(0x1e7)][_0x2779fa(0x145)]:u[_0x2779fa(0x1e7)]['OTHER_CLIENTS_EDITING']));}),this[_0x4baa25(0x1b1)](_0x1c4d54);}['_handleHeartbeatEvent'](_0x17f82d){const _0x5df6e1=_0x48e5bc;this[_0x5df6e1(0x177)](_0x17f82d['memberID']);}[_0x48e5bc(0x2cd)](_0x218991){const _0x1a1cba=_0x48e5bc;localStorage[_0x1a1cba(0x191)](Le,JSON[_0x1a1cba(0xd0)](_0x218991));}[_0x48e5bc(0x18a)](){const _0x2fa0e3=_0x48e5bc;this[_0x2fa0e3(0xf7)]=window[_0x2fa0e3(0x270)](()=>{const _0x21ac10=_0x2fa0e3;this[_0x21ac10(0x2cd)]({'type':0x2,'memberID':this[_0x21ac10(0x285)]});},Me);}[_0x48e5bc(0x1ef)](_0x5e4e5d){const _0x142d23=_0x48e5bc;return this[_0x142d23(0x2e4)][_0x142d23(0x197)](_0x5e4e5d)||this[_0x142d23(0x2e4)][_0x142d23(0x28a)](_0x5e4e5d,new d['BehaviorSubject'](u['UnitStatus'][_0x142d23(0x145)])),this['_unitStatus'][_0x142d23(0x20c)](_0x5e4e5d);}}var Be=(_0x5761c7=>(_0x5761c7[_0x5761c7[_0x48e5bc(0x2d4)]=0x0]=_0x48e5bc(0x2d4),_0x5761c7[_0x5761c7['OK']=0x1]='OK',_0x5761c7[_0x5761c7[_0x48e5bc(0x13b)]=0x2]=_0x48e5bc(0x13b),_0x5761c7[_0x5761c7[_0x48e5bc(0x226)]=0x3]=_0x48e5bc(0x226),_0x5761c7[_0x5761c7[_0x48e5bc(0x1f6)]=0x4]=_0x48e5bc(0x1f6),_0x5761c7[_0x5761c7[_0x48e5bc(0x1fb)]=0x5]=_0x48e5bc(0x1fb),_0x5761c7[_0x5761c7['ALREADY_EXISTS']=0x6]=_0x48e5bc(0x16c),_0x5761c7[_0x5761c7[_0x48e5bc(0x283)]=0x7]=_0x48e5bc(0x283),_0x5761c7[_0x5761c7[_0x48e5bc(0x245)]=0x8]=_0x48e5bc(0x245),_0x5761c7[_0x5761c7[_0x48e5bc(0x26c)]=0x9]=_0x48e5bc(0x26c),_0x5761c7[_0x5761c7[_0x48e5bc(0xda)]=0xa]=_0x48e5bc(0xda),_0x5761c7[_0x5761c7[_0x48e5bc(0x153)]=0x1389]=_0x48e5bc(0x153),_0x5761c7[_0x5761c7[_0x48e5bc(0x19b)]=0x1771]='SNAPSHOT_INVALID_SNAPSHOT',_0x5761c7[_0x5761c7['SNAPSHOT_HAS_BEEN_REMOVED']=0x1772]=_0x48e5bc(0x2b2),_0x5761c7[_0x5761c7[_0x48e5bc(0x1e6)]=0x1773]=_0x48e5bc(0x1e6),_0x5761c7[_0x5761c7[_0x48e5bc(0x1b6)]=0x1b59]=_0x48e5bc(0x1b6),_0x5761c7[_0x5761c7[_0x48e5bc(0x12e)]=0x1b5a]='APPLY_NON_SEQUENTIAL_REVISION',_0x5761c7[_0x5761c7[_0x48e5bc(0x182)]=0x1b5b]=_0x48e5bc(0x182),_0x5761c7[_0x5761c7['APPLY_PERMISSION_DENIED']=0x1b5c]=_0x48e5bc(0x2d2),_0x5761c7[_0x5761c7[_0x48e5bc(0x1db)]=0x1b5d]='APPLY_DUPLICATED',_0x5761c7[_0x5761c7['CONNECTOR_DATA_TOO_LARGE']=0x1f41]='CONNECTOR_DATA_TOO_LARGE',_0x5761c7[_0x5761c7[_0x48e5bc(0x137)]=0x2329]=_0x48e5bc(0x137),_0x5761c7[_0x5761c7[_0x48e5bc(0x21b)]=0x232a]=_0x48e5bc(0x21b),_0x5761c7[_0x5761c7[_0x48e5bc(0x17d)]=0x232b]=_0x48e5bc(0x17d),_0x5761c7[_0x5761c7[_0x48e5bc(0x1c0)]=0x232c]='LICENSE_EXPORT_SIZE_EXCEEDED',_0x5761c7[_0x5761c7[_0x48e5bc(0x1e1)]=0x232d]=_0x48e5bc(0x1e1),_0x5761c7[_0x5761c7[_0x48e5bc(0x2f4)]=0x2711]='YUUMI_UNABLE_LOAD_URL',_0x5761c7[_0x5761c7['YUUMI_URL_COL_OUT_OF_RANGE']=0x2712]=_0x48e5bc(0x282),_0x5761c7[_0x5761c7[_0x48e5bc(0x161)]=0x2713]=_0x48e5bc(0x161),_0x5761c7[_0x5761c7[_0x48e5bc(0x212)]=0x2714]=_0x48e5bc(0x212),_0x5761c7[_0x5761c7[_0x48e5bc(0xa2)]=0x271a]=_0x48e5bc(0xa2),_0x5761c7[_0x5761c7[_0x48e5bc(0x144)]=0x271b]=_0x48e5bc(0x144),_0x5761c7[_0x5761c7[_0x48e5bc(0x12a)]=0x271c]=_0x48e5bc(0x12a),_0x5761c7[_0x5761c7[_0x48e5bc(0x1dd)]=0x271d]=_0x48e5bc(0x1dd),_0x5761c7[_0x5761c7[_0x48e5bc(0xeb)]=0x271e]=_0x48e5bc(0xeb),_0x5761c7[_0x5761c7[_0x48e5bc(0xa1)]=0x271f]=_0x48e5bc(0xa1),_0x5761c7[_0x5761c7[_0x48e5bc(0x27a)]=0x2af9]=_0x48e5bc(0x27a),_0x5761c7[_0x5761c7[_0x48e5bc(0x1e8)]=0x2ee1]=_0x48e5bc(0x1e8),_0x5761c7[_0x5761c7[_0x48e5bc(0x193)]=0x2ee2]=_0x48e5bc(0x193),_0x5761c7[_0x5761c7[_0x48e5bc(0x2c4)]=0x2ee3]=_0x48e5bc(0x2c4),_0x5761c7[_0x5761c7[_0x48e5bc(0x131)]=0x2ee4]='USER_NOT_INVITED_CODE',_0x5761c7[_0x5761c7['INVITE_CODE_ALREADY_BOUND']=0x2ee5]='INVITE_CODE_ALREADY_BOUND',_0x5761c7[_0x5761c7[_0x48e5bc(0x93)]=0x32c9]=_0x48e5bc(0x93),_0x5761c7[_0x5761c7[_0x48e5bc(0xb1)]=0x32ca]=_0x48e5bc(0xb1),_0x5761c7[_0x5761c7['EMAIL_HAS_BEEN_BOUND']=0x32cb]=_0x48e5bc(0x1b0),_0x5761c7[_0x5761c7['UNRECOGNIZED']=-0x1]=_0x48e5bc(0xa7),_0x5761c7))(Be||{}),ns=Object[_0x48e5bc(0x275)],rs=(_0x3775df,_0x35f078,_0x50fee2,_0x1b081b)=>{const _0x5d1a3f=_0x48e5bc;for(var _0x4d1811=_0x1b081b>0x1?void 0x0:_0x1b081b?ns(_0x35f078,_0x50fee2):_0x35f078,_0x345e51=_0x3775df[_0x5d1a3f(0x2c5)]-0x1,_0x1a5ace;_0x345e51>=0x0;_0x345e51--)(_0x1a5ace=_0x3775df[_0x345e51])&&(_0x4d1811=_0x1a5ace(_0x4d1811)||_0x4d1811);return _0x4d1811;},ue=(_0xa4171d,_0xc01865)=>(_0x4bbb10,_0x4450b4)=>_0xc01865(_0x4bbb10,_0x4450b4,_0xa4171d);exports[_0x48e5bc(0x2be)]=class extends a[_0x48e5bc(0xac)]{constructor(_0x5ddab0,_0x20720e,_0x48a4e5){const _0x1a5d6d=_0x48e5bc;super(),this[_0x1a5d6d(0x176)]=_0x5ddab0,this['_httpService']=_0x20720e,this[_0x1a5d6d(0x248)]=_0x48a4e5;}async[_0x48e5bc(0x106)](_0x2e2802,_0x5fd678,_0x2094ec,..._0x20d457){const _0x36152a=_0x48e5bc;var _0x346088,_0x54df14,_0x309745,_0x45d034;const _0x5b3f5d=this[_0x36152a(0x176)]['getFocusedUnit']();if(!_0x5b3f5d)throw new Error(_0x36152a(0x2e3));const _0x3320c6=((_0x346088=this[_0x36152a(0x248)][_0x36152a(0x2c2)](u[_0x36152a(0x1ae)]))!=null?_0x346088:u['DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT'])+'/'+_0x2e2802+_0x36152a(0x263)+_0x5fd678,_0x4f38d5=new URL(window[_0x36152a(0x28d)][_0x36152a(0x188)]),_0x255c82={'scriptId':_0x2e2802,'runId':(_0x54df14=_0x4f38d5[_0x36152a(0x2f6)][_0x36152a(0x20c)](_0x36152a(0x1ab)))!=null?_0x54df14:'','function':_0x5fd678,'unitId':_0x5b3f5d[_0x36152a(0x280)](),'argsOfFunction':JSON[_0x36152a(0xd0)](_0x20d457),'invokeId':(_0x309745=_0x2094ec[_0x36152a(0x1a0)])!=null?_0x309745:'','executionId':(_0x45d034=_0x2094ec['executionId'])!=null?_0x45d034:''};try{const _0x1611d1=await this['_httpService'][_0x36152a(0x1b2)](_0x3320c6,{'body':_0x255c82});return _0x1611d1[_0x36152a(0x19d)][_0x36152a(0x272)]&&_0x1611d1[_0x36152a(0x19d)][_0x36152a(0x272)][_0x36152a(0xb8)]!==Be['OK']?'Failed':_0x1611d1['body'][_0x36152a(0x1d5)];}catch{return _0x36152a(0x185);}}},exports[_0x48e5bc(0x2be)]=rs([ue(0x0,a[_0x48e5bc(0x9f)]),ue(0x1,a[_0x48e5bc(0x28c)](G[_0x48e5bc(0x217)])),ue(0x2,a[_0x48e5bc(0x1ed)])],exports['RemoteUniscriptService']),exports[_0x48e5bc(0x123)]=xe,exports[_0x48e5bc(0x2a8)]=be,exports[_0x48e5bc(0xfc)]=Ae,exports[_0x48e5bc(0xb4)]=is,exports[_0x48e5bc(0x2a6)]=je;
|
package/lib/cjs/locale/en-US.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';
|
|
1
|
+
'use strict';const _0x43fa69=_0x90ba;(function(_0x12ec1c,_0x4dcd5e){const _0x2effc5=_0x90ba,_0xf3c08d=_0x12ec1c();while(!![]){try{const _0x31aba9=parseInt(_0x2effc5(0xaf))/0x1*(parseInt(_0x2effc5(0xb5))/0x2)+-parseInt(_0x2effc5(0xbb))/0x3*(-parseInt(_0x2effc5(0xad))/0x4)+parseInt(_0x2effc5(0xb4))/0x5*(parseInt(_0x2effc5(0xc1))/0x6)+parseInt(_0x2effc5(0xb9))/0x7+-parseInt(_0x2effc5(0xbe))/0x8+parseInt(_0x2effc5(0xc5))/0x9+parseInt(_0x2effc5(0xb7))/0xa*(-parseInt(_0x2effc5(0xc3))/0xb);if(_0x31aba9===_0x4dcd5e)break;else _0xf3c08d['push'](_0xf3c08d['shift']());}catch(_0x4dd7ea){_0xf3c08d['push'](_0xf3c08d['shift']());}}}(_0x16f8,0x8a418));function _0x90ba(_0x3c9d43,_0x4764f3){const _0x16f809=_0x16f8();return _0x90ba=function(_0x90ba7d,_0x42a01f){_0x90ba7d=_0x90ba7d-0xad;let _0x3d3626=_0x16f809[_0x90ba7d];return _0x3d3626;},_0x90ba(_0x3c9d43,_0x4764f3);}const e={'collab-client':{'tooltip':{'reconnect':_0x43fa69(0xc0)}},'collabStatus':{'fetchMiss':'Syncing\x20server\x20data...','conflict':_0x43fa69(0xc2),'notCollab':'Local\x20file','synced':'Synced','syncing':_0x43fa69(0xae),'offline':'Offline,\x20edits\x20would\x20be\x20save\x20on\x20local'},'session':{'connection-failed':_0x43fa69(0xbf),'will-retry':_0x43fa69(0xb8),'room-full':_0x43fa69(0xbd),'collaboration-timeout':_0x43fa69(0xb2)},'conflict':{'title':_0x43fa69(0xb0),'content':_0x43fa69(0xbc)},'permission':{'title':_0x43fa69(0xc4),'content':_0x43fa69(0xba)},'collaboration':{'single-unit':{'warning':_0x43fa69(0xb3)},'closeRoom':_0x43fa69(0xb6)},'auth':{'needGotoLoginAlert':'Your\x20login\x20has\x20expired,\x20click\x20OK\x20to\x20re-login,\x20click\x20Cancel\x20to\x20save\x20your\x20local\x20edits.'}};function _0x16f8(){const _0x5d652c=['19554JpnrAY','Edit\x20conflicts','11COuEXE','Authentication\x20Error','44253AHbXZn','76RfMUfm','Syncing...','769237SPUiHb','Collaboration\x20Conflict','exports','The\x20server\x20is\x20not\x20responding\x20to\x20your\x20collaboration\x20request.\x20Your\x20edits\x20would\x20be\x20saved\x20locally.','You\x20opened\x20the\x20same\x20file\x20in\x20another\x20tab.\x20In\x20case\x20of\x20data\x20missing,\x20you\x20cannot\x20edit\x20on\x20this\x20tab.','1205NFlLcG','2BSUALw','Editing\x20privileges\x20were\x20revoked\x20because\x20the\x20collaborative\x20room\x20was\x20closed.','5433050itAYHh','Connection\x20failed,\x20we\x20retry\x20in\x20a\x20while.','1483363QDuRBy','Your\x20actions\x20are\x20conflicting\x20with\x20the\x20server\x27s\x20permissions.\x20Please\x20save\x20your\x20local\x20edits\x20elsewhere\x20as\x20they\x20will\x20be\x20discarded\x20after\x20refreshing\x20the\x20page.','45195AzShFo','There\x20is\x20a\x20conflict\x20between\x20your\x20local\x20copy\x20and\x20the\x20copy\x20on\x20the\x20server.\x20Please\x20save\x20your\x20local\x20edits,\x20because\x20they\x20will\x20be\x20lost\x20when\x20you\x20reload\x20the\x20page.','Collaboration\x20room\x20is\x20full.\x20You\x20edits\x20would\x20be\x20saved\x20locally.','7584928eRVZDT','Connection\x20failed,\x20please\x20check\x20your\x20network.','Click\x20to\x20Reconnect'];_0x16f8=function(){return _0x5d652c;};return _0x16f8();}module[_0x43fa69(0xb1)]=e;
|