@univerjs-pro/collaboration-client-ui 0.6.7 → 0.6.8
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 -0
- package/lib/index.js +1 -0
- package/lib/locale/en-US.js +1 -0
- package/lib/locale/fa-IR.js +1 -0
- package/lib/locale/fr-FR.js +1 -0
- package/lib/locale/ru-RU.js +1 -0
- package/lib/locale/vi-VN.js +1 -0
- package/lib/locale/zh-CN.js +1 -0
- package/lib/locale/zh-TW.js +1 -0
- 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 +18 -18
package/lib/cjs/facade.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';function _0x81c2(){const _0x3d2170=['2XlRrJZ','8701180zCpXId','1584575SABytc','@univerjs/core/facade','18qHLNwW','FUniver','3016951wxsKHw','8XoEgzw','17708RJQizA','39177699byqhQK','393TGWHoc','_injector','get','extend','runOnServer','10431621uZbqKt','651271pXNYQT','RemoteUniscriptService'];_0x81c2=function(){return _0x3d2170;};return _0x81c2();}const _0x55f055=_0x51a2;function _0x51a2(_0x1c7fc7,_0x25dd18){const _0x81c2a9=_0x81c2();return _0x51a2=function(_0x51a2be,_0x49ff84){_0x51a2be=_0x51a2be-0x106;let _0x54bf14=_0x81c2a9[_0x51a2be];return _0x54bf14;},_0x51a2(_0x1c7fc7,_0x25dd18);}(function(_0x31f286,_0x14ab41){const _0x407147=_0x51a2,_0x14b9f8=_0x31f286();while(!![]){try{const _0x825544=parseInt(_0x407147(0x113))/0x1*(parseInt(_0x407147(0x115))/0x2)+-parseInt(_0x407147(0x10d))/0x3*(-parseInt(_0x407147(0x10b))/0x4)+-parseInt(_0x407147(0x117))/0x5+parseInt(_0x407147(0x107))/0x6*(parseInt(_0x407147(0x109))/0x7)+-parseInt(_0x407147(0x10a))/0x8*(-parseInt(_0x407147(0x112))/0x9)+parseInt(_0x407147(0x116))/0xa+-parseInt(_0x407147(0x10c))/0xb;if(_0x825544===_0x14ab41)break;else _0x14b9f8['push'](_0x14b9f8['shift']());}catch(_0x1d0cca){_0x14b9f8['push'](_0x14b9f8['shift']());}}}(_0x81c2,0xa4c22));const t=require('@univerjs-pro/collaboration-client-ui'),e=require(_0x55f055(0x106));class c extends e[_0x55f055(0x108)]{[_0x55f055(0x111)](_0x29d1fa,_0x48a663,..._0x4d8896){const _0x24e7f6=_0x55f055;return this[_0x24e7f6(0x10e)][_0x24e7f6(0x10f)](t[_0x24e7f6(0x114)])[_0x24e7f6(0x111)](_0x29d1fa,_0x48a663,{},..._0x4d8896);}}e[_0x55f055(0x108)][_0x55f055(0x110)](c);
|
package/lib/cjs/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const _0x1cc422=_0x1c04;(function(_0x34aeb9,_0x129c59){const _0xd1a31f=_0x1c04,_0x42cd5c=_0x34aeb9();while(!![]){try{const _0x3267ab=parseInt(_0xd1a31f(0x16d))/0x1*(-parseInt(_0xd1a31f(0xec))/0x2)+parseInt(_0xd1a31f(0x146))/0x3+-parseInt(_0xd1a31f(0x200))/0x4*(parseInt(_0xd1a31f(0x233))/0x5)+-parseInt(_0xd1a31f(0x20f))/0x6+-parseInt(_0xd1a31f(0x11b))/0x7+-parseInt(_0xd1a31f(0x377))/0x8*(-parseInt(_0xd1a31f(0x115))/0x9)+parseInt(_0xd1a31f(0x17d))/0xa;if(_0x3267ab===_0x129c59)break;else _0x42cd5c['push'](_0x42cd5c['shift']());}catch(_0x2a749){_0x42cd5c['push'](_0x42cd5c['shift']());}}}(_0x2eb0,0xe810a));var Xe=Object[_0x1cc422(0x2da)],Ge=(_0x4961fd,_0x3ff728,_0xd59f7f)=>_0x3ff728 in _0x4961fd?Xe(_0x4961fd,_0x3ff728,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0xd59f7f}):_0x4961fd[_0x3ff728]=_0xd59f7f,h=(_0x4ab2c4,_0x30cd02,_0x282f91)=>Ge(_0x4ab2c4,typeof _0x30cd02!=_0x1cc422(0x33b)?_0x30cd02+'':_0x30cd02,_0x282f91);Object[_0x1cc422(0x2da)](exports,Symbol[_0x1cc422(0x316)],{'value':_0x1cc422(0x225)});const u=require(_0x1cc422(0x24b)),a=require(_0x1cc422(0x2b7)),p=require('@univerjs/engine-render'),q=require(_0x1cc422(0x307)),b=require(_0x1cc422(0x2cd)),qe=require(_0x1cc422(0x17c)),d=require(_0x1cc422(0x2b9)),Y=require(_0x1cc422(0x22c)),m=require('@univerjs-pro/collaboration'),Te=require(_0x1cc422(0x14a)),g=require(_0x1cc422(0x29d)),$=require(_0x1cc422(0x2bc)),G=require(_0x1cc422(0x245)),w=require('react/jsx-runtime'),R=require(_0x1cc422(0x246)),T=require(_0x1cc422(0x331)),M=require(_0x1cc422(0x30b)),Ke=require('@univerjs/rpc');var ze=Object[_0x1cc422(0x1fc)],Je=(_0x1ca011,_0x31a186,_0x5aac07,_0x251859)=>{const _0x5e2872=_0x1cc422;for(var _0x3c15f8=_0x251859>0x1?void 0x0:_0x251859?ze(_0x31a186,_0x5aac07):_0x31a186,_0x4c6191=_0x1ca011[_0x5e2872(0x357)]-0x1,_0x4d8444;_0x4c6191>=0x0;_0x4c6191--)(_0x4d8444=_0x1ca011[_0x4c6191])&&(_0x3c15f8=_0x4d8444(_0x3c15f8)||_0x3c15f8);return _0x3c15f8;},Re=(_0x58690e,_0x4fb91b)=>(_0x2c6e0a,_0x261b24)=>_0x4fb91b(_0x2c6e0a,_0x261b24,_0x58690e);let fe=class extends a[_0x1cc422(0x2c3)]{constructor(_0x2c85da,_0x331d5e){const _0x26b435=_0x1cc422;super(),this[_0x26b435(0x222)]=_0x2c85da,this[_0x26b435(0x32c)]=_0x331d5e,this[_0x26b435(0x28c)]();}[_0x1cc422(0x28c)](){const _0x3b8eb1=_0x1cc422,_0x204a1b=this;this['disposeWithMe'](this[_0x3b8eb1(0x222)][_0x3b8eb1(0x324)]({'onBeforePasteImage':async _0x190484=>{const _0x52aa6d=_0x3b8eb1,_0x430434=await _0x204a1b['_imageIoService'][_0x52aa6d(0x290)](_0x190484);return _0x430434?{'source':_0x430434['source'],'imageSourceType':_0x430434[_0x52aa6d(0x17a)]}:null;}}));}};fe=Je([Re(0x0,b['IDocClipboardService']),Re(0x1,qe[_0x1cc422(0x21e)])],fe);const Oe=[_0x1cc422(0x110),_0x1cc422(0x1d1),_0x1cc422(0x1e2),_0x1cc422(0x1e6),'blue400',_0x1cc422(0x361)];class Ce extends a[_0x1cc422(0x34e)]{constructor(){const _0x50079c=_0x1cc422;super(...arguments),h(this,'_assignedColors',new Map()),h(this,_0x50079c(0x220),0x0);}[_0x1cc422(0x354)](_0x18977f){const _0x53e745=_0x1cc422;if(this[_0x53e745(0x265)][_0x53e745(0x139)](_0x18977f))return this[_0x53e745(0x265)][_0x53e745(0x12a)](_0x18977f);const _0x413120=Oe[this['_colorIndex']];return this['_colorIndex']=(this[_0x53e745(0x220)]+0x1)%Oe['length'],this[_0x53e745(0x265)][_0x53e745(0x2ab)](_0x18977f,_0x413120),_0x413120;}}function Le(_0x5a28b5){let _0x296f9d='';for(const _0x5407ca of _0x5a28b5){const {startOffset:_0x3a756a,endOffset:_0x1678cb,isActive:_0x387246,rangeType:_0x43777a,segmentId:_0x1b3cbd,segmentPage:_0x368207}=_0x5407ca;_0x296f9d['length']&&(_0x296f9d+=','),_0x296f9d+=_0x3a756a+':'+_0x1678cb+':'+(_0x387246?'1':'0')+':'+_0x43777a+':'+_0x1b3cbd+':'+_0x368207;}return _0x296f9d;}function Ze(_0x1f7c53){const _0x51589d=_0x1cc422,_0xb2625=_0x1f7c53['split'](','),_0x2b11b7=[];for(const _0x101cc2 of _0xb2625){const [_0x349d78,_0x13c0c2,_0x7ac9,_0x45096d,_0x34eb70,_0x15545f]=_0x101cc2['split'](':');_0x2b11b7[_0x51589d(0x2ff)]({'startOffset':Number(_0x349d78),'endOffset':Number(_0x13c0c2),'collapsed':_0x349d78===_0x13c0c2,'isActive':_0x7ac9==='1','rangeType':_0x45096d===a[_0x51589d(0x223)][_0x51589d(0x2af)]?a[_0x51589d(0x223)][_0x51589d(0x2af)]:a[_0x51589d(0x223)][_0x51589d(0x28d)],'segmentId':typeof _0x34eb70==_0x51589d(0x28a)?String(_0x34eb70):'','segmentPage':Number(_0x15545f!=null?_0x15545f:-0x1)});}return _0x2b11b7[_0x51589d(0x165)](_0xb5e58b=>_0xb5e58b[_0x51589d(0x1df)])||(_0x2b11b7[0x0][_0x51589d(0x1df)]=!0x0),_0x2b11b7;}class pe extends a[_0x1cc422(0x2c3)]{constructor(){const _0x49e435=_0x1cc422;super(...arguments),h(this,_0x49e435(0x2a0),new d['BehaviorSubject'](null)),h(this,'collabCursorState$',this[_0x49e435(0x2a0)][_0x49e435(0x132)]());}[_0x1cc422(0x267)](_0x225254){const _0x29f619=_0x1cc422,{unitID:_0x74817b,memberID:_0x59a66e,textRanges:_0x1f27b5}=_0x225254,_0x282d89=Le(_0x1f27b5);if(_0x282d89==='')return;const _0xbeb4bf={'unitID':_0x74817b,'memberID':_0x59a66e,'selection':_0x282d89};this[_0x29f619(0x2a0)][_0x29f619(0x364)](_0xbeb4bf);}}var Qe=Object['getOwnPropertyDescriptor'],et=(_0xb6fc3e,_0x5079e9,_0x10d91d,_0x1e378d)=>{for(var _0x11a1e2=_0x1e378d>0x1?void 0x0:_0x1e378d?Qe(_0x5079e9,_0x10d91d):_0x5079e9,_0x130a2b=_0xb6fc3e['length']-0x1,_0xb9d267;_0x130a2b>=0x0;_0x130a2b--)(_0xb9d267=_0xb6fc3e[_0x130a2b])&&(_0x11a1e2=_0xb9d267(_0x11a1e2)||_0x11a1e2);return _0x11a1e2;},P=(_0x5da1c4,_0x23d8cb)=>(_0x3a7ae1,_0x2a611a)=>_0x23d8cb(_0x3a7ae1,_0x2a611a,_0x5da1c4);const tt=0x12c,st=0x64;let Se=class extends a[_0x1cc422(0x2c3)]{constructor(_0x220fd5,_0x12c079,_0x3c9b8f,_0x51ff23,_0x30d9b7,_0x13b61f,_0x264378,_0x54e3ef,_0x30c2ff){const _0x1b05a5=_0x1cc422;super(),h(this,_0x1b05a5(0x18e),!0x1),h(this,_0x1b05a5(0x28c),!0x1),h(this,_0x1b05a5(0x2f3),new d['BehaviorSubject'](new Map())),h(this,_0x1b05a5(0x292),this[_0x1b05a5(0x2f3)][_0x1b05a5(0x132)]()),h(this,'_roomMembers$',new d[(_0x1b05a5(0xf0))]([])),h(this,_0x1b05a5(0x372),this['_roomMembers$'][_0x1b05a5(0x1f0)](d['debounceTime'](tt))),h(this,'_updateLocalCursor',a[_0x1b05a5(0x2de)](_0x419932=>{const _0x150500=_0x1b05a5,_0x406892={'eventID':m['CollaborationEvent'][_0x150500(0x2fc)],'data':{'unitID':this[_0x150500(0x215)],'memberID':this[_0x150500(0x206)][_0x150500(0x1d5)](),'selection':Le(_0x419932)}};this['_session'][_0x150500(0x2f6)](_0x406892,this[_0x150500(0x215)]);},st)),(this[_0x1b05a5(0x215)]=_0x220fd5,this[_0x1b05a5(0x206)]=_0x12c079,this[_0x1b05a5(0x154)]=_0x3c9b8f,this['_colorAssignService']=_0x51ff23,this[_0x1b05a5(0x312)]=_0x30d9b7,this[_0x1b05a5(0x31e)]=_0x13b61f,this[_0x1b05a5(0x2f0)]=_0x264378,this[_0x1b05a5(0x10e)]=_0x54e3ef,this[_0x1b05a5(0x113)]=_0x30c2ff);}get['cursorInfo'](){const _0x47768c=_0x1cc422;return this[_0x47768c(0x2f3)][_0x47768c(0x2e9)]();}get['roomMembers'](){const _0x4070cf=_0x1cc422;return this[_0x4070cf(0x29c)]['getValue']();}[_0x1cc422(0x119)](){const _0x4b6566=_0x1cc422;super[_0x4b6566(0x119)](),this[_0x4b6566(0x2f3)][_0x4b6566(0x364)](new Map()),this[_0x4b6566(0x2f3)][_0x4b6566(0x342)](),this[_0x4b6566(0x29c)][_0x4b6566(0x364)]([]),this[_0x4b6566(0x29c)][_0x4b6566(0x342)]();}['init'](){const _0xde3c49=_0x1cc422;this[_0xde3c49(0x28c)]||(this[_0xde3c49(0x28c)]=!0x0,this[_0xde3c49(0x206)][_0xde3c49(0x353)][_0xde3c49(0x1f0)](d[_0xde3c49(0xf8)](this[_0xde3c49(0x129)]))['subscribe'](_0x5236af=>{const _0xa87d3d=_0xde3c49;_0x5236af===u[_0xa87d3d(0x11a)][_0xa87d3d(0x272)]?this[_0xa87d3d(0x179)]():this[_0xa87d3d(0x15f)]();}),this[_0xde3c49(0x206)]['event$']['pipe'](d[_0xde3c49(0xf8)](this[_0xde3c49(0x129)]))[_0xde3c49(0x24c)](_0x16a135=>{const _0x4d9bc3=_0xde3c49,_0x97c50=_0x16a135[_0x4d9bc3(0x1d2)];_0x97c50===m[_0x4d9bc3(0x359)]['UPDATE_CURSOR']&&this[_0x4d9bc3(0x23c)](_0x16a135),_0x97c50===m['CollaborationEvent'][_0x4d9bc3(0x14e)]&&this[_0x4d9bc3(0x12f)](_0x16a135);}),this['disposeWithMe'](this[_0xde3c49(0x113)][_0xde3c49(0x350)](_0x132f6a=>{const _0x13188e=_0xde3c49,_0x1a87aa=_0x132f6a[_0x13188e(0x133)];_0x1a87aa!=null&&this[_0x13188e(0x18e)]&&_0x132f6a['id']===Y['SetTextSelectionsOperation']['id']&&_0x1a87aa[_0x13188e(0x243)]===this[_0x13188e(0x215)]&&_0x1a87aa[_0x13188e(0x12c)]===!0x1&&_0x1a87aa[_0x13188e(0x248)]['length']>0x0&&this[_0x13188e(0x141)](_0x1a87aa['ranges']);})),this[_0xde3c49(0x31e)][_0xde3c49(0x2c9)][_0xde3c49(0x1f0)](d['takeUntil'](this['dispose$']))[_0xde3c49(0x24c)](_0x113223=>{const _0x27272d=_0xde3c49;if((_0x113223==null?void 0x0:_0x113223[_0x27272d(0x215)])!==this[_0x27272d(0x215)])return;const _0x4abb10={'eventID':m[_0x27272d(0x359)][_0x27272d(0x2fc)],'data':_0x113223};this[_0x27272d(0x23c)](_0x4abb10);}),this[_0xde3c49(0x149)](this[_0xde3c49(0x113)][_0xde3c49(0x350)](_0x3dd6a4=>{const _0x53c68f=_0xde3c49;if(_0x3dd6a4[_0x53c68f(0x133)]==null)return;const _0x28b2e9=_0x3dd6a4[_0x53c68f(0x133)];if(_0x3dd6a4['id']!==Y['RichTextEditingMutation']['id']||_0x28b2e9['unitId']!==this[_0x53c68f(0x215)])return;const _0x13fed8={'id':'doc.mutation.rich-text-editing','params':_0x28b2e9},_0x4ddd5b=this[_0x53c68f(0x29a)];for(const [_0x17107f,_0x374b83]of _0x4ddd5b){const _0x2b4c7b={'id':_0x53c68f(0x32b),'params':{'unitId':this['unitID'],'actions':null,'textRanges':_0x374b83[_0x53c68f(0x248)]}},_0x219881=this['_transformService'][_0x53c68f(0x124)](_0x13fed8,_0x2b4c7b,!0x1);if(m[_0x53c68f(0x1f8)](_0x219881))throw _0x219881[_0x53c68f(0x1c0)];_0x4ddd5b['set'](_0x17107f,{..._0x374b83,'ranges':_0x219881[_0x53c68f(0x343)][_0x53c68f(0x133)][_0x53c68f(0x194)]});}queueMicrotask(()=>{const _0x5f4ca6=_0x53c68f;this[_0x5f4ca6(0x2f3)]['next'](_0x4ddd5b);});})));}[_0x1cc422(0x23c)](_0x4b49f0){const _0x2d6c1b=_0x1cc422;var _0xad6878,_0x58b8c5;const {memberID:_0x54432e,selection:_0x45849c}=_0x4b49f0[_0x2d6c1b(0x2cb)],_0x22f6ec=Ze(_0x45849c),_0x16eaa1=(_0x58b8c5=(_0xad6878=this[_0x2d6c1b(0x312)]['getMember'](this['unitID'],_0x54432e))==null?void 0x0:_0xad6878[_0x2d6c1b(0x1fb)])!=null?_0x58b8c5:_0x2d6c1b(0x338),_0xeb39fc={'color':this[_0x2d6c1b(0x27e)]['assignAColorForMemberID'](_0x54432e),'name':_0x16eaa1,'ranges':_0x22f6ec},_0x39f49e=this[_0x2d6c1b(0x29a)];_0x39f49e[_0x2d6c1b(0x2ab)](_0x54432e,_0xeb39fc),this[_0x2d6c1b(0x2f3)][_0x2d6c1b(0x364)](_0x39f49e);}[_0x1cc422(0x12f)](_0x4a5dfe){const _0x484fc1=_0x1cc422,{memberID:_0x44ba30}=_0x4a5dfe['data'],_0x1ae75a=this['cursorInfo'];_0x1ae75a['delete'](_0x44ba30),this[_0x484fc1(0x2f3)]['next'](_0x1ae75a);}[_0x1cc422(0x179)](){const _0x34e52a=_0x1cc422;var _0x55e5c0;if(this[_0x34e52a(0x18e)]=!0x0,((_0x55e5c0=this['_univerInstanceService']['getFocusedUnit']())==null?void 0x0:_0x55e5c0[_0x34e52a(0x111)]())!==this[_0x34e52a(0x215)])return;const _0x4970bb=this[_0x34e52a(0x154)][_0x34e52a(0x12a)](Y['DocSelectionManagerService'])[_0x34e52a(0x136)]();Array[_0x34e52a(0x2fb)](_0x4970bb)&&_0x4970bb['length']>0x0&&this[_0x34e52a(0x141)](_0x4970bb);}[_0x1cc422(0x15f)](){this['_online']=!0x1;}};Se=et([P(0x2,a['Inject'](a['Injector'])),P(0x3,a[_0x1cc422(0x1f4)](Ce)),P(0x4,a[_0x1cc422(0x1f4)](u[_0x1cc422(0x2a7)])),P(0x5,a[_0x1cc422(0x1f4)](pe)),P(0x6,m['ITransformService']),P(0x7,a[_0x1cc422(0x195)]),P(0x8,a['ICommandService'])],Se);var nt=Object[_0x1cc422(0x1fc)],it=(_0x26a30d,_0x4cefc2,_0x2c882b,_0x61be99)=>{for(var _0x376344=_0x61be99>0x1?void 0x0:_0x61be99?nt(_0x4cefc2,_0x2c882b):_0x4cefc2,_0x5bb59b=_0x26a30d['length']-0x1,_0x5b2019;_0x5bb59b>=0x0;_0x5bb59b--)(_0x5b2019=_0x26a30d[_0x5bb59b])&&(_0x376344=_0x5b2019(_0x376344)||_0x376344);return _0x376344;},A=(_0x13c028,_0x18e4c3)=>(_0x264cf7,_0x151a70)=>_0x18e4c3(_0x264cf7,_0x151a70,_0x13c028);const rt=0x12c,ot=0x64,at=()=>{let _0x399fde=[],_0x505019=!0x1;return _0x596a5b=>{const _0x59d9ba=_0x1c04;_0x399fde[_0x59d9ba(0x2ff)](_0x596a5b),_0x505019||(_0x505019=!0x0,setTimeout(()=>{const _0x1c6c43=_0x59d9ba;_0x399fde[_0x1c6c43(0x298)](_0x3fe130=>_0x3fe130()),_0x399fde=[],_0x505019=!0x1;}));};};let Ie=class extends a[_0x1cc422(0x2c3)]{constructor(_0x512261,_0x42ad14,_0x3944af,_0x38cac5,_0x5546fa,_0x3631c0,_0xd9fc9c,_0x45e7a4){const _0xb193b1=_0x1cc422;super(),h(this,_0xb193b1(0x18e),!0x1),h(this,_0xb193b1(0x28c),!0x1),h(this,_0xb193b1(0x2f3),new d[(_0xb193b1(0xf0))](new Map())),h(this,_0xb193b1(0x292),this['_cursorInfo$'][_0xb193b1(0x132)]()),h(this,_0xb193b1(0x29c),new d[(_0xb193b1(0xf0))]([])),h(this,_0xb193b1(0x372),this[_0xb193b1(0x29c)][_0xb193b1(0x1f0)](d['debounceTime'](rt))),h(this,'_updateLocalCursor',a[_0xb193b1(0x2de)]((_0x599448,_0x1443d4)=>{const _0xbd7cda=_0xb193b1,_0x9410e3={'eventID':m[_0xbd7cda(0x359)][_0xbd7cda(0x2fc)],'data':{'unitID':this[_0xbd7cda(0x215)],'memberID':this['_session'][_0xbd7cda(0x1d5)](),'selection':Te[_0xbd7cda(0x306)](_0x599448,_0x1443d4[_0xbd7cda(0x186)])}};this[_0xbd7cda(0x206)]['send'](_0x9410e3,this[_0xbd7cda(0x215)]);},ot)),(this[_0xb193b1(0x215)]=_0x512261,this['_session']=_0x42ad14,this[_0xb193b1(0x154)]=_0x3944af,this[_0xb193b1(0x27e)]=_0x38cac5,this[_0xb193b1(0x312)]=_0x5546fa,this['_univerInstanceService']=_0x3631c0,this[_0xb193b1(0x113)]=_0xd9fc9c,this[_0xb193b1(0x1fd)]=_0x45e7a4);}get[_0x1cc422(0x29a)](){const _0x296588=_0x1cc422;return this[_0x296588(0x2f3)][_0x296588(0x2e9)]();}get[_0x1cc422(0x2e5)](){const _0x3b8cb0=_0x1cc422;return this[_0x3b8cb0(0x29c)][_0x3b8cb0(0x2e9)]();}['dispose'](){const _0x4d77f5=_0x1cc422;super[_0x4d77f5(0x119)](),this[_0x4d77f5(0x2f3)][_0x4d77f5(0x364)](new Map()),this[_0x4d77f5(0x2f3)][_0x4d77f5(0x342)](),this[_0x4d77f5(0x29c)]['next']([]),this[_0x4d77f5(0x29c)]['complete']();}['init'](){const _0x3e01b8=_0x1cc422;this[_0x3e01b8(0x28c)]||(this[_0x3e01b8(0x28c)]=!0x0,this[_0x3e01b8(0x206)][_0x3e01b8(0x353)][_0x3e01b8(0x1f0)](d[_0x3e01b8(0xf8)](this[_0x3e01b8(0x129)]))[_0x3e01b8(0x24c)](_0x91111b=>{const _0x3fabf2=_0x3e01b8;_0x91111b===u[_0x3fabf2(0x11a)]['ONLINE']?this[_0x3fabf2(0x179)]():this['_toggleOffline']();}),this[_0x3e01b8(0x206)][_0x3e01b8(0x198)][_0x3e01b8(0x1f0)](d['takeUntil'](this['dispose$']))[_0x3e01b8(0x24c)](_0x5495f1=>{const _0xc7db17=_0x3e01b8,_0x551342=_0x5495f1['eventID'];_0x551342===m[_0xc7db17(0x359)][_0xc7db17(0x2fc)]&&this[_0xc7db17(0x23c)](_0x5495f1),_0x551342===m[_0xc7db17(0x359)]['USERS_LEAVE']&&this[_0xc7db17(0x12f)](_0x5495f1);}),this[_0x3e01b8(0x23a)](),this[_0x3e01b8(0x149)](this[_0x3e01b8(0x113)][_0x3e01b8(0x350)](_0x18231c=>{const _0x17985e=_0x3e01b8;if(this[_0x17985e(0x18e)]&&_0x18231c['id']===g[_0x17985e(0x271)]['id']&&_0x18231c[_0x17985e(0x133)][_0x17985e(0x243)]===this[_0x17985e(0x215)]){const _0xdd6440=_0x18231c[_0x17985e(0x133)];this[_0x17985e(0x141)](_0xdd6440[_0x17985e(0x315)],_0xdd6440[_0x17985e(0x329)][0x0]);}})));}[_0x1cc422(0x23c)](_0x2d461a){const _0x4e7b35=_0x1cc422;var _0x1116fe,_0x3c06c1;const {memberID:_0x5338e7,selection:_0x401fab}=_0x2d461a[_0x4e7b35(0x2cb)],{sheetName:_0xaf0fb,range:_0x37a753}=Te[_0x4e7b35(0x15e)](_0x401fab),_0x1bcbfe={'name':(_0x3c06c1=(_0x1116fe=this[_0x4e7b35(0x312)][_0x4e7b35(0x114)](this[_0x4e7b35(0x215)],_0x5338e7))==null?void 0x0:_0x1116fe[_0x4e7b35(0x1fb)])!=null?_0x3c06c1:_0x4e7b35(0x338),'range':this[_0x4e7b35(0x1cd)](_0xaf0fb,_0x37a753),'sheetID':_0xaf0fb,'color':this['_colorAssignService']['assignAColorForMemberID'](_0x5338e7),'selection':_0x401fab},_0x4ce111=this[_0x4e7b35(0x29a)];_0x4ce111[_0x4e7b35(0x2ab)](_0x5338e7,_0x1bcbfe),this['_cursorInfo$'][_0x4e7b35(0x364)](_0x4ce111);}[_0x1cc422(0x12f)](_0x5d8287){const _0x18523f=_0x1cc422,{memberID:_0x392568}=_0x5d8287['data'],_0x5c1a4e=this['cursorInfo'];_0x5c1a4e[_0x18523f(0x23e)](_0x392568),this['_cursorInfo$']['next'](_0x5c1a4e);}[_0x1cc422(0x1cd)](_0x262d7d,_0xaa0755){const _0x4266df=_0x1cc422;var _0x56585b,_0x1e659a;const _0x4f1d58=(_0x1e659a=(_0x56585b=this[_0x4266df(0x10e)]['getUniverSheetInstance'](this[_0x4266df(0x215)]))==null?void 0x0:_0x56585b[_0x4266df(0x24f)](_0x262d7d))==null?void 0x0:_0x1e659a[_0x4266df(0x317)]();return(_0x4f1d58==null?void 0x0:_0x4f1d58[_0x4266df(0x323)](_0x190b6d=>a[_0x4266df(0x31b)]['contains'](_0x190b6d,_0xaa0755)))||_0xaa0755;}['_onRefRangeChange'](){const _0x9375b0=_0x1cc422,_0x9a413f=new a['DisposableCollection'](),_0x3088ef=at(),_0x3736a4=()=>{const _0x2e30cd=_0x1c04;_0x9a413f[_0x2e30cd(0x119)]();const _0x39566b=(_0x3a6dca,_0x2699cf,_0x1e9055,_0x3f7352)=>{const _0x462e0e=_0x2e30cd;let _0x169bdb=[];switch(_0x3a6dca['id']){case g[_0x462e0e(0x21d)][_0x462e0e(0x335)]:{_0x169bdb=g[_0x462e0e(0x229)](_0x3a6dca,_0x3f7352);break;}case g[_0x462e0e(0x21d)]['DeleteRangeMoveUpCommandId']:{_0x169bdb=g['handleDeleteRangeMoveUp'](_0x3a6dca,_0x3f7352);break;}case g[_0x462e0e(0x21d)][_0x462e0e(0x117)]:{_0x169bdb=g[_0x462e0e(0x21c)](_0x3a6dca,_0x3f7352);break;}case g[_0x462e0e(0x21d)][_0x462e0e(0x2a6)]:{_0x169bdb=g['handleInsertRangeMoveDown'](_0x3a6dca,_0x3f7352);break;}case g[_0x462e0e(0x21d)][_0x462e0e(0x128)]:{_0x169bdb=g[_0x462e0e(0x360)](_0x3a6dca,_0x3f7352);break;}case g[_0x462e0e(0x21d)][_0x462e0e(0x1fe)]:{_0x169bdb=g[_0x462e0e(0x20a)](_0x3a6dca,_0x3f7352);break;}case g[_0x462e0e(0x21d)]['MoveRangeCommandId']:{_0x169bdb=g[_0x462e0e(0x29f)](_0x3a6dca,_0x3f7352);break;}case g[_0x462e0e(0x21d)][_0x462e0e(0x1da)]:{_0x169bdb=g[_0x462e0e(0x219)](_0x3a6dca,_0x3f7352);break;}case g[_0x462e0e(0x21d)][_0x462e0e(0x363)]:{_0x169bdb=g[_0x462e0e(0x1ba)](_0x3a6dca,_0x3f7352);break;}}const _0x7efd7=g[_0x462e0e(0x378)](_0x169bdb,_0x3f7352),_0x497f26=this[_0x462e0e(0x29a)][_0x462e0e(0x12a)](_0x2699cf);if(_0x497f26&&_0x7efd7){const _0x36fda7={..._0x497f26,'range':_0x7efd7};this[_0x462e0e(0x29a)][_0x462e0e(0x2ab)](_0x2699cf,_0x36fda7),_0x3088ef(()=>{const _0x22f5d9=_0x462e0e,_0x843e03=this[_0x22f5d9(0x1fd)][_0x22f5d9(0x36b)](_0x7efd7,_0x41f875=>(_0x843e03['dispose'](),_0x39566b(_0x41f875,_0x2699cf,_0x1e9055,_0x7efd7)));_0x9a413f[_0x22f5d9(0x1af)](_0x843e03);});}return{'redos':[],'undos':[]};};this[_0x2e30cd(0x29a)][_0x2e30cd(0x298)]((_0x21d916,_0x51da0c)=>{const _0x4d7af1=_0x2e30cd,{range:_0x1b2de4,sheetID:_0x4bd9ce}=_0x21d916,_0x26c113=this[_0x4d7af1(0x1fd)]['registerRefRange'](_0x1b2de4,_0x3b6735=>(_0x26c113[_0x4d7af1(0x119)](),_0x39566b(_0x3b6735,_0x51da0c,_0x4bd9ce,_0x1b2de4)));_0x9a413f[_0x4d7af1(0x1af)](_0x26c113);});};this[_0x9375b0(0x149)](a['toDisposable'](this[_0x9375b0(0x2f3)][_0x9375b0(0x24c)](()=>{_0x3736a4();})));}[_0x1cc422(0x179)](){const _0x7a3fd5=_0x1cc422;var _0x108871,_0x1a2c5e;if(this[_0x7a3fd5(0x18e)]=!0x0,((_0x108871=this[_0x7a3fd5(0x10e)][_0x7a3fd5(0x308)]())==null?void 0x0:_0x108871[_0x7a3fd5(0x111)]())!==this[_0x7a3fd5(0x215)])return;const _0x30928d=(_0x1a2c5e=this[_0x7a3fd5(0x154)][_0x7a3fd5(0x12a)](g[_0x7a3fd5(0x319)])[_0x7a3fd5(0x320)]())==null?void 0x0:_0x1a2c5e[0x0],_0x34875c=this['_univerInstanceService'][_0x7a3fd5(0x15c)](a[_0x7a3fd5(0x340)][_0x7a3fd5(0xfc)])['getActiveSheet']();_0x30928d&&_0x34875c&&this[_0x7a3fd5(0x141)](_0x34875c[_0x7a3fd5(0x2ec)](),_0x30928d);}[_0x1cc422(0x15f)](){this['_online']=!0x1;}};Ie=it([A(0x2,a[_0x1cc422(0x1f4)](a[_0x1cc422(0x125)])),A(0x3,a[_0x1cc422(0x1f4)](Ce)),A(0x4,a[_0x1cc422(0x1f4)](u[_0x1cc422(0x2a7)])),A(0x5,a[_0x1cc422(0x195)]),A(0x6,a['ICommandService']),A(0x7,a['Inject'](g[_0x1cc422(0x162)]))],Ie);var ct=Object[_0x1cc422(0x1fc)],lt=(_0x13f4bf,_0x13e1c6,_0x5aba1d,_0x4ecef4)=>{const _0x233d63=_0x1cc422;for(var _0x382f2d=_0x4ecef4>0x1?void 0x0:_0x4ecef4?ct(_0x13e1c6,_0x5aba1d):_0x13e1c6,_0x562d0a=_0x13f4bf[_0x233d63(0x357)]-0x1,_0x1c6d54;_0x562d0a>=0x0;_0x562d0a--)(_0x1c6d54=_0x13f4bf[_0x562d0a])&&(_0x382f2d=_0x1c6d54(_0x382f2d)||_0x382f2d);return _0x382f2d;},ie=(_0x773fa6,_0x643115)=>(_0x14cc05,_0x2f315c)=>_0x643115(_0x14cc05,_0x2f315c,_0x773fa6);let x=class extends a[_0x1cc422(0x2c3)]{constructor(_0x375f1d,_0x430180,_0x196f5c){const _0x10b11a=_0x1cc422;super(),h(this,_0x10b11a(0x2b5),new Map()),h(this,_0x10b11a(0x371),new d[(_0x10b11a(0x16f))]()),(this['_univerInstanceService']=_0x375f1d,this['_injector']=_0x430180,this['_collabSessionService']=_0x196f5c,this['_init']());}[_0x1cc422(0x119)](){const _0x1e716d=_0x1cc422;super[_0x1e716d(0x119)](),this[_0x1e716d(0x371)][_0x1e716d(0x342)](),this[_0x1e716d(0x2b5)][_0x1e716d(0x298)](_0x64fb77=>_0x64fb77[_0x1e716d(0x119)]());}[_0x1cc422(0x104)](_0x36c599){const _0x3d056a=_0x1cc422;return this[_0x3d056a(0x2b5)][_0x3d056a(0x139)](_0x36c599)?this[_0x3d056a(0x2b5)]['get'](_0x36c599)[_0x3d056a(0x292)]:this[_0x3d056a(0x371)][_0x3d056a(0x1f0)](d['filter'](_0x1cf7ba=>_0x1cf7ba[_0x3d056a(0x215)]===_0x36c599),d[_0x3d056a(0x217)](_0x18afc0=>_0x18afc0[_0x3d056a(0x292)]));}[_0x1cc422(0x28c)](){const _0x149e89=_0x1cc422;this[_0x149e89(0x10e)][_0x149e89(0x2d0)](a[_0x149e89(0x340)][_0x149e89(0xfc)])[_0x149e89(0x1f0)](d['takeUntil'](this[_0x149e89(0x129)]))[_0x149e89(0x24c)](async _0x3515b9=>{const _0x1ebcc8=_0x149e89,_0x3b05fb=_0x3515b9['getUnitId'](),_0x36076f=await this[_0x1ebcc8(0x1e0)](_0x3b05fb);this[_0x1ebcc8(0x371)][_0x1ebcc8(0x364)](_0x36076f),this[_0x1ebcc8(0x2b5)]['set'](_0x3b05fb,_0x36076f);}),this[_0x149e89(0x10e)][_0x149e89(0x2d0)](a[_0x149e89(0x340)][_0x149e89(0x193)])[_0x149e89(0x1f0)](d[_0x149e89(0xf8)](this[_0x149e89(0x129)]))['pipe'](d['filter'](_0xcdd11=>!_0xcdd11[_0x149e89(0x111)]()[_0x149e89(0x351)]('__')))[_0x149e89(0x24c)](async _0x4a561e=>{const _0x5f05ac=_0x149e89,_0x599563=_0x4a561e[_0x5f05ac(0x111)](),_0x3b456f=await this[_0x5f05ac(0x2c5)](_0x599563);this[_0x5f05ac(0x371)]['next'](_0x3b456f),this['_entities']['set'](_0x599563,_0x3b456f);}),d[_0x149e89(0x10f)](this[_0x149e89(0x10e)][_0x149e89(0x251)](a['UniverInstanceType'][_0x149e89(0x193)]),this[_0x149e89(0x10e)][_0x149e89(0x251)](a[_0x149e89(0x340)][_0x149e89(0xfc)]))['pipe'](d[_0x149e89(0xf8)](this['dispose$']))[_0x149e89(0x24c)](_0x12c1aa=>{const _0x22f067=_0x149e89,_0xaa074a=_0x12c1aa[_0x22f067(0x111)](),_0x5185be=this['_entities'][_0x22f067(0x12a)](_0xaa074a);_0x5185be&&(_0x5185be['dispose'](),this[_0x22f067(0x2b5)][_0x22f067(0x23e)](_0xaa074a));});}async[_0x1cc422(0x1e0)](_0x335d84){const _0x20949e=_0x1cc422,_0x5f4aba=await this[_0x20949e(0x1ae)][_0x20949e(0x144)](_0x335d84),_0x33b72c=this[_0x20949e(0x154)]['createInstance'](Ie,_0x335d84,_0x5f4aba);return _0x33b72c['init'](),_0x33b72c;}async['_startDocCollabCursor'](_0x46da35){const _0x69dc47=_0x1cc422,_0xf7a6ac=await this['_collabSessionService'][_0x69dc47(0x144)](_0x46da35),_0x12b47f=this['_injector'][_0x69dc47(0x214)](Se,_0x46da35,_0xf7a6ac);return _0x12b47f['init'](),_0x12b47f;}};x=lt([ie(0x0,a['IUniverInstanceService']),ie(0x1,a[_0x1cc422(0x1f4)](a['Injector'])),ie(0x2,a[_0x1cc422(0x1f4)](u[_0x1cc422(0x208)]))],x);const K=0x14,De=0xc8,re=0x4,ht=0x5;function _t(_0x2f415e,_0x39c6ce){const _0x4212a2=_0x1cc422;let {radius:_0x31ab0d,width:_0x8cb01e,height:_0x16c703}=_0x39c6ce;_0x31ab0d=_0x31ab0d!=null?_0x31ab0d:0x0,_0x8cb01e=_0x8cb01e!=null?_0x8cb01e:0x1e,_0x16c703=_0x16c703!=null?_0x16c703:0x1e;let _0x5abef2=0x0,_0x13ee54=0x0,_0x4df1b6=0x0;_0x5abef2=_0x13ee54=_0x4df1b6=Math[_0x4212a2(0x237)](_0x31ab0d,_0x8cb01e/0x2,_0x16c703/0x2),_0x2f415e[_0x4212a2(0x337)](),_0x2f415e[_0x4212a2(0x22a)](_0x5abef2,0x0),_0x2f415e[_0x4212a2(0x234)](_0x8cb01e-_0x13ee54,0x0),_0x2f415e['arc'](_0x8cb01e-_0x13ee54,_0x13ee54,_0x13ee54,Math['PI']*0x3/0x2,0x0,!0x1),_0x2f415e['lineTo'](_0x8cb01e,_0x16c703-_0x4df1b6),_0x2f415e['arc'](_0x8cb01e-_0x4df1b6,_0x16c703-_0x4df1b6,_0x4df1b6,0x0,Math['PI']/0x2,!0x1),_0x2f415e['lineTo'](0x0,_0x16c703),_0x2f415e['lineTo'](0x0,_0x5abef2),_0x2f415e['arc'](_0x5abef2,_0x5abef2,_0x5abef2,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x2f415e[_0x4212a2(0x1b0)](),_0x39c6ce[_0x4212a2(0x12e)]&&(_0x2f415e[_0x4212a2(0x31d)](),_0x2f415e[_0x4212a2(0x36c)]=_0x39c6ce[_0x4212a2(0x12e)],_0x39c6ce[_0x4212a2(0xea)]===_0x4212a2(0x263)?_0x2f415e[_0x4212a2(0x12e)](_0x4212a2(0x263)):_0x2f415e[_0x4212a2(0x12e)](),_0x2f415e[_0x4212a2(0x23f)]());}class te extends p['Shape']{constructor(_0x92d8dd,_0x55f420){const _0x52971f=_0x1cc422;super(_0x92d8dd,_0x55f420),h(this,_0x52971f(0x120)),h(this,'text'),(this['color']=_0x55f420==null?void 0x0:_0x55f420[_0x52971f(0x120)],this[_0x52971f(0x210)]=_0x55f420==null?void 0x0:_0x55f420[_0x52971f(0x210)]);}static[_0x1cc422(0x2ca)](_0x4a1a56,_0x2fb973){const _0x1d7915=_0x1cc422,{text:_0x17061e,color:_0x4913f7}=_0x2fb973;_0x4a1a56[_0x1d7915(0x31d)](),_0x4a1a56[_0x1d7915(0x16c)]=_0x1d7915(0x1b5);const _0x202614=_0x4a1a56[_0x1d7915(0x2d3)](_0x17061e)[_0x1d7915(0x282)],_0x5690cd=Math['min'](_0x202614+0x2*re,De);_t(_0x4a1a56,{'height':K,'radius':0x4,'width':_0x5690cd,'fill':_0x4913f7}),_0x4a1a56[_0x1d7915(0x36c)]=_0x1d7915(0x218);const _0x5a6181=re,_0x1f83f8=K-ht,_0xd01ff6=De-0x2*re;if(_0x202614>_0xd01ff6){let _0x4a0577='',_0x36caf2=0x0;for(const _0x558072 of _0x17061e){const _0x209533=_0x4a1a56[_0x1d7915(0x2d3)](_0x558072)[_0x1d7915(0x282)];if(_0x36caf2+_0x209533<=_0xd01ff6-_0x4a1a56[_0x1d7915(0x2d3)](_0x1d7915(0x2c6))['width'])_0x4a0577+=_0x558072,_0x36caf2+=_0x209533;else{_0x4a0577+=_0x1d7915(0x2c6);break;}}_0x4a1a56['fillText'](_0x4a0577,_0x5a6181,_0x1f83f8);}else _0x4a1a56[_0x1d7915(0x205)](_0x17061e,_0x5a6181,_0x1f83f8);_0x4a1a56['restore']();}[_0x1cc422(0x311)](_0x15be4f){const _0x2f2f5c=_0x1cc422;te[_0x2f2f5c(0x2ca)](_0x15be4f,this);}}const oe=_0x1cc422(0x24e),ut='collab-text-range-',dt=_0x1cc422(0x15a),B=0x6,ft=1.5,ae=0x4,St=1.5,It=_0x1cc422(0x293);class Ue{constructor(_0x38a97b,_0x42af97,_0x5f3091,_0x175d73){const _0x2e2613=_0x1cc422;h(this,_0x2e2613(0x22b),[]),h(this,_0x2e2613(0x1d4),null),h(this,_0x2e2613(0x281),null),h(this,_0x2e2613(0x169),null),h(this,_0x2e2613(0x157),null),h(this,'_eventUnsubscribe',null),(this[_0x2e2613(0x348)]=_0x38a97b,this[_0x2e2613(0x286)]=_0x42af97,this[_0x2e2613(0x1c1)]=_0x5f3091,this[_0x2e2613(0x1bb)]=_0x175d73,this[_0x2e2613(0x1dd)]());}set[_0x1cc422(0x283)](_0x9a0462){const _0x412de2=_0x1cc422;_0x9a0462?(this[_0x412de2(0x169)]&&this['_anchorDot'][_0x412de2(0x2c8)](),this[_0x412de2(0x281)]&&this[_0x412de2(0x281)]['show']()):(this[_0x412de2(0x169)]&&this[_0x412de2(0x169)][_0x412de2(0x30a)](),this[_0x412de2(0x281)]&&this[_0x412de2(0x281)][_0x412de2(0x2c8)]());}[_0x1cc422(0x119)](){const _0x242831=_0x1cc422;for(const _0x3d4b67 of this['_shapes'])_0x3d4b67[_0x242831(0x119)]();this[_0x242831(0x281)]&&this[_0x242831(0x281)][_0x242831(0x119)](),this[_0x242831(0x169)]&&this[_0x242831(0x169)]['dispose'](),this[_0x242831(0x1d4)]&&this[_0x242831(0x1d4)][_0x242831(0x119)](),this[_0x242831(0x102)]&&this[_0x242831(0x102)]();}[_0x1cc422(0x1dd)](){const _0x5520a8=_0x1cc422;var _0x5d7c6a;const {_docSkeleton:_0x45bdb6,_document:_0x234a0d}=this,{color:_0x36fbad,name:_0x28e63e,ranges:_0x5491ba}=this['_cursor'],_0x39de0f=_0x234a0d[_0x5520a8(0x35c)](),{docsLeft:_0x4f65ef,docsTop:_0x587508}=_0x39de0f,_0x24a893=new b[(_0x5520a8(0x142))](_0x39de0f,_0x45bdb6);for(const {startOffset:_0x101f96,endOffset:_0x3f400a,rangeType:_0x3fb9a6,segmentId:_0x227b96,segmentPage:_0x1b2b87,collapsed:_0x3a4799,isActive:_0x34801d}of _0x5491ba){const _0x1f176a=_0x45bdb6[_0x5520a8(0x346)](_0x101f96,!0x0,_0x227b96,_0x1b2b87);let _0x156106=_0x45bdb6[_0x5520a8(0x346)](_0x3f400a,!0x0,_0x227b96,_0x1b2b87);if(_0x156106==null&&(_0x156106=_0x45bdb6[_0x5520a8(0x346)](_0x3f400a-0x1,!0x1,_0x227b96,_0x1b2b87)),_0x34801d){const {contentBoxPointGroup:_0x1434ed}=_0x24a893['getRangePointData'](_0x156106,_0x156106);if(_0x1434ed[_0x5520a8(0x357)]===0x0)continue;this[_0x5520a8(0x345)](_0x36fbad,_0x1434ed,_0x4f65ef,_0x587508,_0x28e63e),this[_0x5520a8(0x102)]=this['_handleHover']();}if(_0x1f176a&&_0x156106){if(_0x3fb9a6===a[_0x5520a8(0x223)]['RECT']){const _0xe61b92=new b['NodePositionConvertToRectRange'](_0x39de0f,_0x45bdb6),{pointGroup:_0x17bb8c}=(_0x5d7c6a=_0xe61b92[_0x5520a8(0x10d)](_0x1f176a,_0x156106))!=null?_0x5d7c6a:{};if(_0x17bb8c==null||_0x17bb8c[_0x5520a8(0x357)]===0x0)continue;this[_0x5520a8(0x1d8)](_0x36fbad,_0x17bb8c,_0x4f65ef,_0x587508);}else{if(!_0x3a4799){const {borderBoxPointGroup:_0x35441c}=_0x24a893[_0x5520a8(0x10d)](_0x1f176a,_0x156106);if(_0x35441c[_0x5520a8(0x357)]===0x0)continue;this[_0x5520a8(0x28b)](_0x36fbad,_0x35441c,_0x4f65ef,_0x587508);}}}}}[_0x1cc422(0x345)](_0x37bb4e,_0x3fd03f,_0x29e169,_0x40ce2f,_0x24baf4){const _0x492bcf=_0x1cc422,_0x16dadb=this['_getAnchorBounding'](_0x3fd03f),{left:_0x293ae6,top:_0x8ae54a,height:_0x46b5f5}=_0x16dadb,_0x189898=this['_getScale'](),_0x33e7ce=St/_0x189898,_0x22318c=new p[(_0x492bcf(0x368))](oe+a[_0x492bcf(0x299)][_0x492bcf(0x26b)](B),{'left':_0x293ae6+_0x29e169-_0x33e7ce,'top':_0x8ae54a+_0x40ce2f,'height':_0x46b5f5,'width':ft,'fill':_0x37bb4e||p[_0x492bcf(0x239)](a[_0x492bcf(0x2a2)][_0x492bcf(0x19e)],0x0),'strokeWidth':_0x33e7ce,'stroke':It,'evented':!0x0});this['_anchor']=_0x22318c,this[_0x492bcf(0x286)][_0x492bcf(0x1aa)](_0x22318c,b[_0x492bcf(0x1ca)]);const _0x135b46=new p[(_0x492bcf(0x368))](oe+a['Tools'][_0x492bcf(0x26b)](B),{'left':_0x293ae6+_0x29e169-_0x33e7ce,'top':_0x8ae54a+_0x40ce2f-ae/0x2,'height':ae,'width':ae,'fill':_0x37bb4e||p[_0x492bcf(0x239)](a[_0x492bcf(0x2a2)][_0x492bcf(0x19e)],0x0),'strokeWidth':0x0,'stroke':_0x37bb4e||p[_0x492bcf(0x239)](a[_0x492bcf(0x2a2)][_0x492bcf(0x19e)],0x0),'evented':!0x1});this[_0x492bcf(0x169)]=_0x135b46,this[_0x492bcf(0x286)][_0x492bcf(0x1aa)](_0x135b46,b['TEXT_RANGE_LAYER_INDEX']);const _0x36c52b=new te(oe+a[_0x492bcf(0x299)]['generateRandomId'](B),{'left':_0x293ae6+_0x29e169-_0x33e7ce,'top':_0x8ae54a+_0x40ce2f-K,'text':_0x24baf4,'color':_0x37bb4e});this[_0x492bcf(0x281)]=_0x36c52b,this[_0x492bcf(0x286)]['addObject'](_0x36c52b,b[_0x492bcf(0x1ca)]),this[_0x492bcf(0x283)]=!0x1;}[_0x1cc422(0x314)](){const _0x3bbfd1=_0x1cc422,_0x45c185=this[_0x3bbfd1(0x1d4)][_0x3bbfd1(0x358)][_0x3bbfd1(0x11c)](()=>{const _0x32c1f1=_0x3bbfd1;this[_0x32c1f1(0x283)]=!0x0;}),_0xfd3f7d=this[_0x3bbfd1(0x1d4)][_0x3bbfd1(0x203)]['subscribeEvent'](()=>{const _0x41940c=_0x3bbfd1;this[_0x41940c(0x157)]&&clearTimeout(this[_0x41940c(0x157)]),this[_0x41940c(0x157)]=setTimeout(()=>{this['_hover']=!0x1;},0x7d0);});return()=>{const _0x284112=_0x3bbfd1;_0x45c185[_0x284112(0x130)](),_0xfd3f7d['unsubscribe']();};}[_0x1cc422(0x28b)](_0x250fbe,_0x1f2de5,_0x50af30,_0x44599e){const _0x384076=_0x1cc422,_0x117240=new a[(_0x384076(0x2f9))](_0x250fbe)['setAlpha'](0.2)[_0x384076(0xf5)](),_0x2609fb=new p[(_0x384076(0x2e1))](ut+a[_0x384076(0x299)][_0x384076(0x26b)](B),{'pointsGroup':_0x1f2de5,'fill':_0x117240||p[_0x384076(0x239)](a[_0x384076(0x2a2)][_0x384076(0x19e)],0.2),'left':_0x50af30,'top':_0x44599e,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x384076(0x22b)]['push'](_0x2609fb),this['_scene'][_0x384076(0x1aa)](_0x2609fb,b[_0x384076(0x1ca)]);}[_0x1cc422(0x1d8)](_0xf3854d,_0x5b2581,_0x1a169e,_0x14abee){const _0x5263f2=_0x1cc422,_0x3c3361=new a[(_0x5263f2(0x2f9))](_0xf3854d)[_0x5263f2(0x22d)](0.2)[_0x5263f2(0xf5)](),_0x57cdb2=new p['RegularPolygon'](dt+a['Tools'][_0x5263f2(0x26b)](B),{'pointsGroup':_0x5b2581,'fill':_0x3c3361||p[_0x5263f2(0x239)](a['COLORS'][_0x5263f2(0x19e)],0.2),'left':_0x1a169e,'top':_0x14abee,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x5263f2(0x22b)][_0x5263f2(0x2ff)](_0x57cdb2),this['_scene'][_0x5263f2(0x1aa)](_0x57cdb2,b['TEXT_RANGE_LAYER_INDEX']);}[_0x1cc422(0xf6)](_0xf2d30e){const _0x8a0748=_0xf2d30e[0x0],_0x3fef4e=_0x8a0748[0x0],_0x4e8f00=_0x8a0748[0x2],{x:_0x4afd4f,y:_0x2d246f}=_0x3fef4e,{x:_0x2c6863,y:_0x27fe79}=_0x4e8f00;return{'left':_0x4afd4f,'top':_0x2d246f,'width':_0x2c6863-_0x4afd4f,'height':_0x27fe79-_0x2d246f};}[_0x1cc422(0x17f)](){const _0x126ba0=_0x1cc422,{scaleX:_0x130240,scaleY:_0x859e62}=this['_scene'][_0x126ba0(0x1ed)]();return Math[_0x126ba0(0x1e5)](_0x130240,_0x859e62);}}var vt=Object[_0x1cc422(0x1fc)],gt=(_0x3f6c1e,_0x1d2952,_0x14effd,_0x5eeadc)=>{const _0x1af037=_0x1cc422;for(var _0x1c2a18=_0x5eeadc>0x1?void 0x0:_0x5eeadc?vt(_0x1d2952,_0x14effd):_0x1d2952,_0x546088=_0x3f6c1e[_0x1af037(0x357)]-0x1,_0x52003e;_0x546088>=0x0;_0x546088--)(_0x52003e=_0x3f6c1e[_0x546088])&&(_0x1c2a18=_0x52003e(_0x1c2a18)||_0x1c2a18);return _0x1c2a18;},V=(_0x210ed9,_0x171411)=>(_0x27853d,_0x30f966)=>_0x171411(_0x27853d,_0x30f966,_0x210ed9);let ve=class extends a['RxDisposable']{constructor(_0x48baca,_0x9ed6ef,_0x5c0c9c,_0x1bba8c,_0x3d7723){const _0x1cbd86=_0x1cc422;super(),h(this,'_cursorShapes',[]),h(this,_0x1cbd86(0x33e),[]),(this[_0x1cbd86(0x1d9)]=_0x48baca,this[_0x1cbd86(0x313)]=_0x9ed6ef,this[_0x1cbd86(0x297)]=_0x5c0c9c,this[_0x1cbd86(0x113)]=_0x1bba8c,this[_0x1cbd86(0x236)]=_0x3d7723,this[_0x1cbd86(0x28c)]());}[_0x1cc422(0x28c)](){const _0x4c1e5d=_0x1cc422,_0x262bc8=this['_context'][_0x4c1e5d(0x243)],_0x480ba8=this['_docSkeletonManagerService'];this[_0x4c1e5d(0x149)](d[_0x4c1e5d(0x1d7)]([this[_0x4c1e5d(0x297)][_0x4c1e5d(0x104)](_0x262bc8),this[_0x4c1e5d(0x236)][_0x4c1e5d(0x1eb)]])['pipe']($[_0x4c1e5d(0x2ba)](([_0x47d4fb,_0x20b8e3])=>({'skeleton':_0x480ba8[_0x4c1e5d(0x159)](),'cursors':[..._0x47d4fb[_0x4c1e5d(0x2bd)]()][_0x4c1e5d(0x2b3)](_0x22bf45=>({..._0x22bf45,'color':_0x20b8e3[_0x22bf45[_0x4c1e5d(0x120)]]}))})))[_0x4c1e5d(0x24c)](_0x1f9fb6=>{const _0x169e36=_0x4c1e5d;if(this[_0x169e36(0x309)](),_0x1f9fb6){const {skeleton:_0x341339,cursors:_0xef252f}=_0x1f9fb6;this[_0x169e36(0x2d4)](_0x341339,_0xef252f);}})),this['_initResize'](),this[_0x4c1e5d(0xee)]();}[_0x1cc422(0x2d4)](_0x489887,_0x41ad0e){const _0xf4b016=_0x1cc422,{scene:_0x2f7285,mainComponent:_0x33a932}=this[_0xf4b016(0x1d9)],_0x26e8ce=_0x41ad0e[_0xf4b016(0x2ba)](_0x25eadf=>new Ue(_0x25eadf,_0x2f7285,_0x489887,_0x33a932));this[_0xf4b016(0x118)]=_0x26e8ce,this[_0xf4b016(0x33e)]=_0x41ad0e;}[_0x1cc422(0x1c8)](){const _0x5119e3=_0x1cc422;this[_0x5119e3(0x309)]();const {scene:_0x58d7c8,mainComponent:_0xff8231}=this[_0x5119e3(0x1d9)],_0x5e02b0=this['_docSkeletonManagerService'][_0x5119e3(0x159)](),_0x368ae7=this['_cursors'][_0x5119e3(0x2ba)](_0x316976=>new Ue(_0x316976,_0x58d7c8,_0x5e02b0,_0xff8231));this[_0x5119e3(0x118)]=_0x368ae7;}[_0x1cc422(0x309)](){this['_cursorShapes']['forEach'](_0x5cf8bb=>_0x5cf8bb['dispose']()),this['_cursorShapes']=[];}['_initCommandExecutedListener'](){const _0x43b530=_0x1cc422,_0x153ef9=[b['SetDocZoomRatioOperation']['id']];this['disposeWithMe'](this['_commandService'][_0x43b530(0x350)](_0x51e6a5=>{const _0x39f4d1=_0x43b530;_0x153ef9['includes'](_0x51e6a5['id'])&&_0x51e6a5[_0x39f4d1(0x133)]['unitId']===this[_0x39f4d1(0x1d9)][_0x39f4d1(0x243)]&&this[_0x39f4d1(0x1c8)]();}));}['_initResize'](){const _0x1e4dec=_0x1cc422;this[_0x1e4dec(0x149)](a[_0x1e4dec(0x30e)](this[_0x1e4dec(0x1d9)][_0x1e4dec(0x14c)][_0x1e4dec(0x34f)])[_0x1e4dec(0x1f0)]($[_0x1e4dec(0x365)](_0x1076b9=>_0x1076b9['type']===p[_0x1e4dec(0x249)][_0x1e4dec(0xf1)]),$[_0x1e4dec(0x33a)](0x10))[_0x1e4dec(0x24c)](()=>{const _0x5a8faf=_0x1e4dec;this[_0x5a8faf(0x1c8)]();}));}};ve=gt([V(0x1,a[_0x1cc422(0x1f4)](Y[_0x1cc422(0x14b)])),V(0x2,a[_0x1cc422(0x1f4)](x)),V(0x3,a['ICommandService']),V(0x4,a['Inject'](a['ThemeService']))],ve);const mt=0x1,Ct=1.5;class Ae extends p[_0x1cc422(0x27a)]{constructor(_0x4adbdb,_0x2cfcd9){const _0x5566f5=_0x1cc422;super(_0x4adbdb,_0x2cfcd9),h(this,_0x5566f5(0x1a6)),h(this,'_hovered',!0x1),h(this,_0x5566f5(0x326)),h(this,_0x5566f5(0x296),''),h(this,_0x5566f5(0x1ac),_0x5566f5(0x13c)),h(this,_0x5566f5(0x150)),(_0x2cfcd9&&this['setShapeProps'](_0x2cfcd9),this['onPointerEnter$'][_0x5566f5(0x11c)](()=>this[_0x5566f5(0x112)]({'hovered':!0x0})),this[_0x5566f5(0x203)][_0x5566f5(0x11c)](()=>this[_0x5566f5(0x112)]({'hovered':!0x1})));}[_0x1cc422(0x112)](_0x1310bb){const _0x510267=_0x1cc422;var _0x6d7aa9,_0x1bd7fe,_0x3c011a,_0x41aa23,_0x1ab401,_0x16efc9;this['_color']=(_0x6d7aa9=_0x1310bb[_0x510267(0x120)])!=null?_0x6d7aa9:this[_0x510267(0x1a6)],this[_0x510267(0x107)]=(_0x1bd7fe=_0x1310bb[_0x510267(0x334)])!=null?_0x1bd7fe:this[_0x510267(0x107)],this['_range']=(_0x3c011a=_0x1310bb[_0x510267(0x186)])!=null?_0x3c011a:this[_0x510267(0x326)],this[_0x510267(0x296)]=(_0x41aa23=_0x1310bb[_0x510267(0x1fb)])!=null?_0x41aa23:this[_0x510267(0x296)],this[_0x510267(0x1ac)]=(_0x1ab401=_0x1310bb[_0x510267(0x16e)])!=null?_0x1ab401:this['_labelPosition'],this['_backgroundColor']=(_0x16efc9=_0x1310bb[_0x510267(0x185)])!=null?_0x16efc9:this[_0x510267(0x150)],this[_0x510267(0x2c0)]({'width':_0x1310bb[_0x510267(0x282)],'height':_0x1310bb['height']});}[_0x1cc422(0x1f7)](_0x37d174){const _0xdcdba8=_0x1cc422,{row:_0x590656,column:_0x1e7449}=_0x37d174;if(_0x590656>=this['_range'][_0xdcdba8(0x100)]&&_0x590656<=this[_0xdcdba8(0x326)][_0xdcdba8(0x262)]&&_0x1e7449>=this[_0xdcdba8(0x326)]['startColumn']&&_0x1e7449<=this['_range'][_0xdcdba8(0x1a7)]){this['setShapeProps']({'hovered':!0x0});return;}this[_0xdcdba8(0x112)]({'hovered':!0x1});}[_0x1cc422(0x2dc)](_0x21f12f){return!0x1;}['_draw'](_0x17c8fc){const _0x4469ef=_0x1cc422;p[_0x4469ef(0x368)]['drawWith'](_0x17c8fc,{'width':this[_0x4469ef(0x282)],'height':this['height'],'strokeWidth':Ct,'stroke':this['_color'],'evented':!0x1,'fill':this[_0x4469ef(0x150)]}),this['_hovered']&&(_0x17c8fc[_0x4469ef(0x31d)](),_0x17c8fc[_0x4469ef(0x275)](0x1,0x0,0x0,0x1,this[_0x4469ef(0x282)],this[_0x4469ef(0x1ac)]==='bottom'?0x0:-0x14),te['drawWith'](_0x17c8fc,{'text':this[_0x4469ef(0x296)],'color':this[_0x4469ef(0x1a6)]}),_0x17c8fc[_0x4469ef(0x23f)]());}}var pt=Object[_0x1cc422(0x1fc)],bt=(_0x3bf16d,_0x1c862f,_0x3ac838,_0x2bdc26)=>{const _0x4a68cf=_0x1cc422;for(var _0xc69bf6=_0x2bdc26>0x1?void 0x0:_0x2bdc26?pt(_0x1c862f,_0x3ac838):_0x1c862f,_0x5c326c=_0x3bf16d[_0x4a68cf(0x357)]-0x1,_0x5d8c52;_0x5c326c>=0x0;_0x5c326c--)(_0x5d8c52=_0x3bf16d[_0x5c326c])&&(_0xc69bf6=_0x5d8c52(_0xc69bf6)||_0xc69bf6);return _0xc69bf6;},ce=(_0x1ca099,_0x1bb4ad)=>(_0x34557b,_0x14f33e)=>_0x1bb4ad(_0x34557b,_0x14f33e,_0x1ca099);const Et=0x1389;let ge=class extends a[_0x1cc422(0x2c3)]{constructor(_0x4656f5,_0x1ae05c,_0x43d963,_0x4c986e){const _0x295a5c=_0x1cc422;super(),h(this,_0x295a5c(0x33e),new Set()),h(this,_0x295a5c(0x35a),null),(this['_context']=_0x4656f5,this[_0x295a5c(0x301)]=_0x1ae05c,this[_0x295a5c(0x297)]=_0x43d963,this['_themeService']=_0x4c986e,this[_0x295a5c(0x28c)]());}[_0x1cc422(0x28c)](){const _0x939550=_0x1cc422;this[_0x939550(0x301)]['currentSkeleton$'][_0x939550(0x1f0)]($[_0x939550(0xf8)](this[_0x939550(0x129)]),$['switchMap'](_0x384b1c=>{const _0x4f4ec1=_0x939550;if(_0x384b1c){const _0x37ec8e=_0x384b1c[_0x4f4ec1(0x2b8)];return d['combineLatest'](this[_0x4f4ec1(0x297)]['getCollabCursors$'](this['_context'][_0x4f4ec1(0x243)]),this[_0x4f4ec1(0x236)][_0x4f4ec1(0x1eb)])['pipe']($[_0x4f4ec1(0x2ba)](([_0x4f72fd,_0x2579d0])=>{const _0xea0d5=_0x4f4ec1,_0x2583a6=new Map();return _0x4f72fd[_0xea0d5(0x298)]((_0x2ef260,_0x380ab6)=>{const _0x487007=_0xea0d5;if(_0x2ef260[_0x487007(0xfa)]===_0x37ec8e){const _0x2e9853={..._0x2ef260};_0x2e9853['color']=_0x2579d0[_0x2ef260['color']],_0x2583a6['set'](_0x380ab6,_0x2e9853);}}),{'skeleton':_0x384b1c,'cursors':_0x2583a6};}));}return d['of']({'skeleton':null,'cursors':new Map()});}))['subscribe'](({skeleton:_0x1273ef,cursors:_0x6fd41d})=>{const _0x12d9e1=_0x939550;this[_0x12d9e1(0x309)](),_0x1273ef&&this['_updateCollabCursors'](_0x1273ef,_0x6fd41d);}),this[_0x939550(0x301)][_0x939550(0x108)][_0x939550(0x24c)](_0x9cb05f=>{const _0x403385=_0x939550;if(_0x9cb05f==null)return;const {skeleton:_0x26a442}=_0x9cb05f,{scene:_0x1f98ca}=this['_context'];_0x1f98ca[_0x403385(0x269)][_0x403385(0x11c)](a[_0x403385(0x2de)](_0x20bd26=>{const _0x3d2f0e=_0x403385;var _0x537bba,_0x182956;const {offsetX:_0x1dac2e,offsetY:_0x346c4d}=_0x20bd26,{x:_0x807f99,y:_0x33d5a1}=_0x1f98ca['getRelativeToViewportCoord'](p[_0x3d2f0e(0x181)]['FromArray']([_0x1dac2e,_0x346c4d])),{scaleX:_0x521b2c,scaleY:_0x2ee754}=_0x1f98ca[_0x3d2f0e(0x1ed)](),_0x3f2163=_0x1f98ca[_0x3d2f0e(0x122)](p[_0x3d2f0e(0x373)][_0x3d2f0e(0x1b9)]),_0x29ae97=_0x1f98ca[_0x3d2f0e(0x30c)](p['Vector2'][_0x3d2f0e(0x30f)]([_0x807f99,_0x33d5a1]),_0x3f2163),_0xa134f4=_0x26a442[_0x3d2f0e(0x126)](_0x1dac2e,_0x346c4d,_0x521b2c,_0x2ee754,_0x29ae97);((_0x537bba=this[_0x3d2f0e(0x35a)])==null?void 0x0:_0x537bba[_0x3d2f0e(0x28f)])===_0xa134f4['column']&&((_0x182956=this['_lastPointer'])==null?void 0x0:_0x182956['row'])===_0xa134f4['row']||this[_0x3d2f0e(0x33e)]['forEach'](_0x3ce5cc=>{const _0x1c2bde=_0x3d2f0e;_0x3ce5cc[_0x1c2bde(0x1f7)](_0xa134f4);});},0x64));});}[_0x1cc422(0x2d4)](_0x3468ef,_0x323cc7){const _0x40d1bc=_0x1cc422;var _0x106369;const _0x17062e=(_0x106369=this[_0x40d1bc(0x301)][_0x40d1bc(0x1cb)]())==null?void 0x0:_0x106369[_0x40d1bc(0x156)];if(!_0x17062e)return;const _0xf11fc7=this[_0x40d1bc(0x189)]();if(!_0xf11fc7)return;this[_0x40d1bc(0x33e)][_0x40d1bc(0x298)](_0x38d3fd=>{const _0x1eb059=_0x40d1bc;_0x38d3fd[_0x1eb059(0x244)]();});const {scene:_0xd47ce0}=_0xf11fc7,_0x5988ea=Tt(Array[_0x40d1bc(0xfd)](_0x323cc7[_0x40d1bc(0x2bd)]()))[_0x40d1bc(0x2ba)](_0x5a0d5a=>{const _0x234b52=_0x40d1bc,{color:_0x3cced8,range:_0x3cc91d,name:_0x58a1de,selection:_0xf9fcc1,sheetID:_0x1e774c}=_0x5a0d5a,{startColumn:_0x491095,startRow:_0x234ebc,endColumn:_0x17994f,endRow:_0x1c4530}=_0x3cc91d,_0x5cbedc=G[_0x234b52(0x192)](_0x234ebc,_0x491095,_0xd47ce0,_0x17062e),_0x201368=G[_0x234b52(0x192)](_0x1c4530,_0x17994f,_0xd47ce0,_0x17062e),{columnHeaderHeightAndMarginTop:_0x26976f}=_0x17062e,{startX:_0x33a094,startY:_0x1a067d}=_0x5cbedc,{endX:_0x23293b,endY:_0x143f37}=_0x201368,_0x4b2bbf=_0x23293b-_0x33a094,_0x5d54d3=_0x143f37-_0x1a067d,_0x2a44e8={'labelPosition':_0x1a067d-_0x26976f>=K?_0x234b52(0x13c):_0x234b52(0x14d),'sheetID':_0x1e774c,'range':_0x3cc91d,'color':_0x3cced8,'name':_0x58a1de,'selection':_0xf9fcc1,'left':_0x33a094,'top':_0x1a067d,'width':_0x4b2bbf,'height':_0x5d54d3,'evented':!0x1,'zIndex':Et};return new Ae(_0x58a1de,_0x2a44e8);});_0xd47ce0[_0x40d1bc(0x1a0)](_0x5988ea,mt),this['_cursors']=new Set(_0x5988ea);}[_0x1cc422(0x309)](){const _0xcad5d7=_0x1cc422;var _0x298f9f;(_0x298f9f=this[_0xcad5d7(0x33e)])==null||_0x298f9f[_0xcad5d7(0x298)](_0x2462e4=>_0x2462e4[_0xcad5d7(0x119)]());}[_0x1cc422(0x189)](){const _0x19726a=_0x1cc422;return G['getSheetObject'](this[_0x19726a(0x1d9)]['unit'],this['_context']);}};ge=bt([ce(0x1,a[_0x1cc422(0x1f4)](G['SheetSkeletonManagerService'])),ce(0x2,a[_0x1cc422(0x1f4)](x)),ce(0x3,a[_0x1cc422(0x1f4)](a[_0x1cc422(0x167)]))],ge);function Tt(_0x5a85c7){const _0x38f849=_0x1cc422,_0x2b3d1e=new Map();return _0x5a85c7['forEach'](_0x37ea24=>{const _0x55806b=_0x1c04;if(_0x2b3d1e['has'](_0x37ea24['selection'])){const _0x43dbe4=_0x2b3d1e[_0x55806b(0x12a)](_0x37ea24['selection']);_0x43dbe4[_0x55806b(0x1fb)]+=',\x20'+_0x37ea24[_0x55806b(0x1fb)];}else _0x2b3d1e[_0x55806b(0x2ab)](_0x37ea24[_0x55806b(0x36d)],_0x37ea24);}),Array[_0x38f849(0xfd)](_0x2b3d1e[_0x38f849(0x2bd)]());}var E=function(){const _0x2dee9d=_0x1cc422;return E=Object[_0x2dee9d(0x1ef)]||function(_0x498530){const _0x5ce842=_0x2dee9d;for(var _0x2a2920,_0x2f56f5=0x1,_0x51abf3=arguments['length'];_0x2f56f5<_0x51abf3;_0x2f56f5++){_0x2a2920=arguments[_0x2f56f5];for(var _0x4e36bc in _0x2a2920)Object[_0x5ce842(0x2f7)][_0x5ce842(0x180)][_0x5ce842(0x26c)](_0x2a2920,_0x4e36bc)&&(_0x498530[_0x4e36bc]=_0x2a2920[_0x4e36bc]);}return _0x498530;},E[_0x2dee9d(0x2a4)](this,arguments);},Rt=function(_0x551b58,_0x559428){const _0x288b0e=_0x1cc422;var _0x2815e5={};for(var _0x3f8e12 in _0x551b58)Object['prototype'][_0x288b0e(0x180)][_0x288b0e(0x26c)](_0x551b58,_0x3f8e12)&&_0x559428['indexOf'](_0x3f8e12)<0x0&&(_0x2815e5[_0x3f8e12]=_0x551b58[_0x3f8e12]);if(_0x551b58!=null&&typeof Object[_0x288b0e(0x1ee)]==_0x288b0e(0x2c2)){for(var _0x22520d=0x0,_0x3f8e12=Object[_0x288b0e(0x1ee)](_0x551b58);_0x22520d<_0x3f8e12[_0x288b0e(0x357)];_0x22520d++)_0x559428[_0x288b0e(0x123)](_0x3f8e12[_0x22520d])<0x0&&Object[_0x288b0e(0x2f7)][_0x288b0e(0x330)][_0x288b0e(0x26c)](_0x551b58,_0x3f8e12[_0x22520d])&&(_0x2815e5[_0x3f8e12[_0x22520d]]=_0x551b58[_0x3f8e12[_0x22520d]]);}return _0x2815e5;},be=M['forwardRef'](function(_0x19db2b,_0x463f79){const _0x111817=_0x1cc422;var _0x37f69d=_0x19db2b[_0x111817(0x137)],_0x3de06d=_0x19db2b['id'],_0x4e6bc9=_0x19db2b[_0x111817(0x1cf)],_0x4f1c8=_0x19db2b['extend'],_0xeb7f12=Rt(_0x19db2b,['icon','id',_0x111817(0x1cf),_0x111817(0x278)]),_0x2b4e1c=_0x111817(0x140)[_0x111817(0x33f)](_0x3de06d,'\x20')[_0x111817(0x33f)](_0x4e6bc9||'')[_0x111817(0x32f)](),_0x14c90e=M[_0x111817(0x116)]('_'[_0x111817(0x33f)](Ut()));return ye(_0x37f69d,''[_0x111817(0x33f)](_0x3de06d),{'defIds':_0x37f69d[_0x111817(0x257)],'idSuffix':_0x14c90e[_0x111817(0x258)]},E({'ref':_0x463f79,'className':_0x2b4e1c},_0xeb7f12),_0x4f1c8);});function ye(_0x22be1c,_0x524812,_0x14a93b,_0x504c6a,_0x237e88){const _0x442913=_0x1cc422;return M[_0x442913(0x1db)](_0x22be1c[_0x442913(0x336)],E(E({'key':_0x524812},Ot(_0x22be1c,_0x14a93b,_0x237e88)),_0x504c6a),(Dt(_0x22be1c,_0x14a93b)[_0x442913(0x11d)]||[])[_0x442913(0x2ba)](function(_0x213230,_0x355dff){const _0x51db9a=_0x442913;return ye(_0x213230,''[_0x51db9a(0x33f)](_0x524812,'-')[_0x51db9a(0x33f)](_0x22be1c[_0x51db9a(0x336)],'-')[_0x51db9a(0x33f)](_0x355dff),_0x14a93b,void 0x0,_0x237e88);}));}function Ot(_0x7762bf,_0x15b8fc,_0x13bb66){const _0x411c6b=_0x1cc422;var _0x26f205=E({},_0x7762bf['attrs']);_0x13bb66!=null&&_0x13bb66[_0x411c6b(0x2df)]&&_0x26f205[_0x411c6b(0x12e)]===_0x411c6b(0x2df)&&(_0x26f205[_0x411c6b(0x12e)]=_0x13bb66['colorChannel1']),_0x7762bf[_0x411c6b(0x336)]==='mask'&&_0x26f205['id']&&(_0x26f205['id']=_0x26f205['id']+_0x15b8fc['idSuffix']),Object[_0x411c6b(0x276)](_0x26f205)[_0x411c6b(0x298)](function(_0x422d06){const _0xe147e8=_0x411c6b;var _0x2ef3f1=_0x422d06[0x0],_0x5046ca=_0x422d06[0x1];_0x2ef3f1===_0xe147e8(0x2fd)&&typeof _0x5046ca==_0xe147e8(0x28a)&&(_0x26f205[_0x2ef3f1]=_0x5046ca['replace'](/url\(#(.*)\)/,'url(#$1'[_0xe147e8(0x33f)](_0x15b8fc[_0xe147e8(0x109)],')')));});var _0x461cad=_0x15b8fc[_0x411c6b(0x257)];return!_0x461cad||_0x461cad['length']===0x0||(_0x7762bf[_0x411c6b(0x336)]===_0x411c6b(0x216)&&_0x26f205[_0x411c6b(0x2bb)]&&(_0x26f205[_0x411c6b(0x2bb)]=_0x26f205[_0x411c6b(0x2bb)]+_0x15b8fc[_0x411c6b(0x109)]),Object[_0x411c6b(0x276)](_0x26f205)['forEach'](function(_0x47669d){const _0xe2d105=_0x411c6b;var _0x297740=_0x47669d[0x0],_0x13c119=_0x47669d[0x1];typeof _0x13c119=='string'&&(_0x26f205[_0x297740]=_0x13c119[_0xe2d105(0x2e4)](/url\(#(.*)\)/,_0xe2d105(0x145)[_0xe2d105(0x33f)](_0x15b8fc[_0xe2d105(0x109)],')')));})),_0x26f205;}function Dt(_0x40bc48,_0xeb5808){const _0x4408ec=_0x1cc422;var _0x488c5a,_0x4f610c=_0xeb5808[_0x4408ec(0x257)];return!_0x4f610c||_0x4f610c[_0x4408ec(0x357)]===0x0?_0x40bc48:_0x40bc48[_0x4408ec(0x336)]===_0x4408ec(0x20c)&&(!((_0x488c5a=_0x40bc48[_0x4408ec(0x11d)])===null||_0x488c5a===void 0x0)&&_0x488c5a[_0x4408ec(0x357)])?E(E({},_0x40bc48),{'children':_0x40bc48[_0x4408ec(0x11d)][_0x4408ec(0x2ba)](function(_0x2a8c2a){const _0x1882f9=_0x4408ec;return typeof _0x2a8c2a[_0x1882f9(0xf9)]['id']=='string'&&_0x4f610c&&_0x4f610c[_0x1882f9(0x123)](_0x2a8c2a['attrs']['id'])>-0x1?E(E({},_0x2a8c2a),{'attrs':E(E({},_0x2a8c2a['attrs']),{'id':_0x2a8c2a[_0x1882f9(0xf9)]['id']+_0xeb5808['idSuffix']})}):_0x2a8c2a;})}):_0x40bc48;}function Ut(){const _0x12e49b=_0x1cc422;return Math[_0x12e49b(0x172)]()[_0x12e49b(0x362)](0x24)[_0x12e49b(0x176)](0x2,0x8);}be[_0x1cc422(0x153)]=_0x1cc422(0xed);var Nt={'tag':'svg','attrs':{'fill':_0x1cc422(0x26d),'viewBox':_0x1cc422(0x333),'width':_0x1cc422(0x26f),'height':_0x1cc422(0x26f)},'children':[{'tag':'g','attrs':{'clipPath':_0x1cc422(0x1b2)},'children':[{'tag':_0x1cc422(0x294),'attrs':{'stroke':_0x1cc422(0x35b),'d':_0x1cc422(0x2eb),'strokeLinecap':'round','strokeLinejoin':_0x1cc422(0x1e9),'strokeWidth':1.2}}]},{'tag':'defs','attrs':{},'children':[{'tag':_0x1cc422(0x284),'attrs':{'id':'off-line-single_clip0_910_343'},'children':[{'tag':_0x1cc422(0x294),'attrs':{'fill':_0x1cc422(0x1cc),'d':_0x1cc422(0x250)}}]}]}],'defIds':[_0x1cc422(0x173)]},$e=M[_0x1cc422(0x158)](function(_0x1294a9,_0x385cb1){const _0x11ecaf=_0x1cc422;return M[_0x11ecaf(0x1db)](be,Object['assign']({},_0x1294a9,{'id':_0x11ecaf(0x332),'ref':_0x385cb1,'icon':Nt}));});function _0x1c04(_0xf911c5,_0x56788c){const _0x2eb0a1=_0x2eb0();return _0x1c04=function(_0x1c0422,_0x3a2545){_0x1c0422=_0x1c0422-0xea;let _0x4c085e=_0x2eb0a1[_0x1c0422];return _0x4c085e;},_0x1c04(_0xf911c5,_0x56788c);}$e[_0x1cc422(0x153)]=_0x1cc422(0x19b);var Mt={'tag':_0x1cc422(0x209),'attrs':{'fill':'none','viewBox':'0\x200\x2017\x2016','width':_0x1cc422(0x26f),'height':_0x1cc422(0x26f)},'children':[{'tag':'g','attrs':{'clipPath':_0x1cc422(0x1a5)},'children':[{'tag':_0x1cc422(0x294),'attrs':{'stroke':_0x1cc422(0x35b),'d':_0x1cc422(0xeb),'strokeLinecap':_0x1cc422(0x1e9),'strokeLinejoin':_0x1cc422(0x1e9),'strokeWidth':1.2}}]},{'tag':_0x1cc422(0x20c),'attrs':{},'children':[{'tag':_0x1cc422(0x284),'attrs':{'id':_0x1cc422(0x235)},'children':[{'tag':'path','attrs':{'fill':_0x1cc422(0x1cc),'d':_0x1cc422(0x250),'transform':_0x1cc422(0x310)}}]}]}],'defIds':[_0x1cc422(0x235)]},xe=M[_0x1cc422(0x158)](function(_0x31e53e,_0x55d96a){const _0x4b91e5=_0x1cc422;return M[_0x4b91e5(0x1db)](be,Object[_0x4b91e5(0x1ef)]({},_0x31e53e,{'id':_0x4b91e5(0x376),'ref':_0x55d96a,'icon':Mt}));});xe[_0x1cc422(0x153)]=_0x1cc422(0x289);const Pt=_0x1cc422(0x352),wt=_0x1cc422(0x106),Lt=_0x1cc422(0x212),At=_0x1cc422(0x32e),yt=_0x1cc422(0x17e),H={'onlineStatusIcon':Pt,'onlineStatusTitle':wt,'onlineStatus':Lt,'online':At,'offline':yt};function $t(_0x3a24a1){const _0x366d58=_0x1cc422;switch(_0x3a24a1){case u[_0x366d58(0x25c)][_0x366d58(0x2e7)]:return _0x366d58(0x2cf);case u[_0x366d58(0x25c)][_0x366d58(0x1ea)]:return _0x366d58(0x32a);case u[_0x366d58(0x25c)]['FETCH_MISS']:return'collabStatus.fetchMiss';case u['CollaborationStatus'][_0x366d58(0x355)]:return _0x366d58(0x27b);case u[_0x366d58(0x25c)][_0x366d58(0x103)]:case u['CollaborationStatus']['AWAITING_WITH_PENDING']:return'collabStatus.syncing';case u[_0x366d58(0x25c)][_0x366d58(0x27c)]:case u[_0x366d58(0x25c)][_0x366d58(0x1c7)]:return _0x366d58(0x260);}}function _0x2eb0(){const _0x9c032=['subscribe','CollaborationStatusDisplay','collab-text-anchor-','getSheetBySheetId','M0\x200H16V16H0z','getTypeOfUnitDisposed$','disposeUnit','with','NO_OTHER_CLIENTS_EDITING','getUndoRedoMutationParamsCache','mergeOverrideWithDependencies','defIds','current','CollaborationUIEventId','_beforeCloseService','collaboration-client-ui.config','CollaborationStatus','IConfigService','updateOfflineData','DesktopCollaborationStatusDisplayController','collabStatus.synced','_saveTaskMap','endRow','evenodd','SUBMIT_CHANGESET_TIMEOUT','_assignedColors','_getSessionTicket','syncEditingCollabCursor','setConfig','onPointerMove$','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','generateRandomId','call','none','CollaborationUIEventService','1em','UNRECOGNIZED','SetSelectionsOperation','ONLINE','_instanceService','_collaborationUIEventService','transform','entries','offline','extend','SOCKET_FAILED_RETRY','Shape','collabStatus.notCollab','SYNCED','_cachedData','_colorAssignService','ISocketService','_configService','_textBubble','width','_hover','clipPath','JOIN_ROOM_FAILED','_scene','deepClone','HEADER_MENU','OnLineSingle','string','_drawTextRange','_init','RECT','div','column','saveImage','fromEvent','cursorInfo$','rgba(255,\x20255,\x20255,\x200.01)','path','_unitOnClients','_name','_collabCursorController','forEach','Tools','cursorInfo','_saveCache','_roomMembers$','@univerjs/sheets','addEventListener','handleMoveRange','_collabCursorState$','_renderManagerService','COLORS','CHANGESET_REVISION_CONFILICT','apply','DocSelectionManagerService','InsertRangeMoveDownCommandId','MemberService','_scheduleSaving','transformMutationsWithChangeset','all','set','clearInterval','location','transformRemoteChangeset','TEXT','getStateCache','m1Prime','_removeClearOtherTimer','flatMap','BrowserCollaborationSocketService','_entities','LOCAL_CACHE_INTERVAL_KEY','@univerjs/core','sheetId','rxjs','map','xlink:href','rxjs/operators','values','YUUMI_RATE_OVER_LIMIT','loadOfflineData','transformByState','registerRenderModule','function','RxDisposable','unshift','_startDocCollabCursor','...','exhaustSavingTask','hide','collabCursorState$','drawWith','data','getCurrentRevOfUnit','@univerjs/docs-ui','INVITE_CODE_REQUIRED','collabStatus.offline','getTypeOfUnitAdded$','SetWorksheetActivateCommand','onlineStatusIcon','measureText','_updateCollabCursors','setUndoRedoMutationParamsCache','href','onStarting','transformSelections','permission.title','defineProperty','getItem','triggerDblclick','registerBeforeClose','debounce','colorChannel1','wsSessionTicketUrl','RegularPolygon','replaceDocRanges','saveTaskMap','replace','roomMembers','_notificationService','OFFLINE','_registerDependencies','getValue','connectInjector','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','getSheetId','reconnect','redoState','_heartbeatTimer','_transformService','_setupSubUnitSync','_transformPreviousActiveRange','_cursorInfo$','_initStatusListener','OTHER_CLIENT_EDITING','send','prototype','ticket','ColorKit','IRenderManagerService','isArray','UPDATE_CURSOR','mask','origin','push','RevisionService','_sheetSkeletonManagerService','_initEntityListener','Error','_dataLoaderService','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','serializeRangeWithSheet','@univerjs/network','getFocusedUnit','_removeCollabCursors','show','react','getVpScrollXYInfoByPosToVp','UNAUTHENTICATED','fromEventSubject','FromArray','translate(.97)','_draw','_memberService','_docSkeletonManagerService','_handleHover','subUnitId','toStringTag','getMergeData','actions','SheetsSelectionsService','DocStateChangeManagerService','Rectangle','LICENSE_IMPORT_SIZE_EXCEEDED','save','_syncEditingCollabCursorService','OTHER_CLIENTS_EDITING','getCurrentSelections','_docStateChangeManagerService','INTERNAL_ERROR','find','addClipboardHook','shareReplay','_range','DependentOn','loadUnit','selections','collabStatus.conflict','doc.mutation.rich-text-editing','_imageIoService','ACTIVE_UNIT_EVENT_CHANNEL','univer-online','trim','propertyIsEnumerable','@univerjs/design','off-line-single','0\x200\x2016\x2016','hovered','DeleteRangeMoveLeftCommandId','tag','beginPath','Unknown\x20user','getUnitStatus$','throttleTime','symbol','INVITE_CODE_HAS_BEEN_UES','_messageService','_cursors','concat','UniverInstanceType','jsx','complete','m2Prime','REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY','_drawAnchor','findNodePositionByCharIndex','NOT_FOUND','_cursor','parse','registerComponent','body','_initDependencies','useObservable','Disposable','onTransformChange$','onCommandExecuted','startsWith','univer-online-status-icon','sessionStatus$','assignAColorForMemberID','NOT_COLLAB','/run/','length','onPointerEnter$','CollaborationEvent','_lastPointer','currentColor','getOffsetConfig','getRenderById','transformStateCache','debug','handleInsertRangeMoveRight','gold400','toString','RemoveRowCommandId','next','filter','entityInit$','LICENSE_EXPORT_SIZE_EXCEEDED','Rect','_handleLeaveEvent','UniverCollaborationClientUIPlugin','registerRefRange','fillStyle','selection','_selfUnitIDs','_initStatusComponent','WebBrowserSingleActiveUnitService','_entityInit$','roomMembers$','SHEET_VIEWPORT_KEY','createIdentifier','permission.content','on-line-single','4424JFYIGH','runRefRangeMutations','fillRule','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','2KUwNEc','UniverIcon','_initCommandExecutedListener','getCollabEntity$','BehaviorSubject','resize','Warning','_disabled','invokeId','toRgbString','_getAnchorBounding','runId','takeUntil','attrs','sheetID','LICENSE_DISTRO_REJECTED','UNIVER_SHEET','from','toDisposable','pushState','startRow','post','_eventUnsubscribe','AWAITING','getCollabCursors$','_docTransformSelectionsService','univer-online-status-title','_hovered','currentSkeleton$','idSuffix','saveOfflineData','INVALID_INVITE_CODE','_updateSubUnitFromURLParams','getRangePointData','_univerInstanceService','merge','purple300','getUnitId','setShapeProps','_commandService','getMember','28989yeFZcf','useRef','InsertColCommandId','_cursorShapes','dispose','SessionStatus','4230198XChtMB','subscribeEvent','children','Optional','YUUMI_SUBSCRIPTION_NOT_FOUND','color','SNAPSHOT_INVALID_SNAPSHOT','getViewport','indexOf','transformMutation','Injector','getCellPositionByOffset','undoState','InsertRangeMoveRightCommandId','dispose$','get','ITransformService','isEditing','_ensureSubject','fill','_onCursorDelete','unsubscribe','transformIMECache','asObservable','params','sessionTicket','CONNECTOR_DATA_TOO_LARGE','getDocRanges','icon','YUUMI_URL_COL_OUT_OF_RANGE','has','_getSaveTimeout','TOO_MANY_REQUESTS','top','USER_NOT_INVITED_CODE','SNAPSHOT_HAS_BEEN_REMOVED','_logService','univerjs-icon\x20univerjs-icon-','_updateLocalCursor','NodePositionConvertToCursor','INVITE_CODE_ALREADY_BOUND','requireSession','url(#$1','3192012czhnaB','_unitStatus','_initEvent','disposeWithMe','@univerjs/engine-formula','DocSkeletonManagerService','engine','bottom','USERS_LEAVE','onRendered','_backgroundColor','setItem','MUTATION','displayName','_injector','collaboration.single-unit.warning','skeleton','_hideTimer','forwardRef','getSkeleton','collab-rect-range-','clearTimeout','getCurrentUnitForType','ENSURE_SNAPSHOT_EXECUTION','deserializeRangeWithSheet','_toggleOffline','_revisionService','mapTo','RefRangeService','_id','subunit','some','_httpService','ThemeService','CollaborationDataLoaderController','_anchorDot','APPLY_DUPLICATED','_handleEvent','font','1345238InkLSJ','labelPosition','Subject','useDependency','getParam','random','off-line-single_clip0_910_343','session.will-retry','_scheduleClearOtherTimer','substring','_setupBeforeClosingHandler','onlineStatusTitle','_toggleOnline','imageSourceType','LocaleService','@univerjs/drawing','15301650hEAjSK','univer-offline','_getScale','hasOwnProperty','Vector2','clsx','DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT','replaceState','backgroundColor','range','size','code','_getSheetObject','popstate','_collaborationController','unit','LICENSE_MAX_UNITS_EXCEEDED','_online','_urlService','INotificationService','ILogService','getCoordByCell','UNIVER_DOC','textRanges','IUniverInstanceService','_doCreateSocket','UnitStatus','event$','removeParam','_createSocketURL','OffLineSingle','DEFAULT_WS_SESSION_TICKET_URL','whenReady','black','override','addObjects','isTransformMutationsWithChangesetSuccess','enableLocalCache','getConfig','_updateURLWithCurrentState','url(#on-line-single_clip0_910_349)','_color','endColumn','_localeService','IRemoteInstanceService','addObject','mutations','_labelPosition','HTTPService','_collabSessionService','add','closePath','APPLY_NON_SEQUENTIAL_REVISION','url(#off-line-single_clip0_910_343)','_clearOtherTimers','searchParams','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','memberID','_localCacheService','executeCommand','VIEW_MAIN','handleIRemoveRow','_document','editingUnit','DocIMEInputManagerService','COMPLETION_FINISHED','[CollaborationDataLoaderController]','error','_docSkeleton','_docTransformIMECacheService','UNIVER_COLLABORATION_CLIENT_WEB_PLUGIN','ICommandService','stringify','onLocalMutation','PENDING','_refreshCollabCursors','Plugin','TEXT_RANGE_LAYER_INDEX','getCurrent','#fff','_getMergeRange','disableLocalCache','className','ALREADY_EXISTS','jiqing500','eventID','LOCAL_CACHE_INTERVAL','_anchor','getMemberID','history','combineLatest','_drawRectRange','_context','RemoveColCommandId','createElement','useCallback','_render','setParam','isActive','_startSheetCollabCursor','YUUMI_UNABLE_LOAD_URL','verdancy600','CollaborationSocketService','PERMISSION_DENIED','max','red300','INVALID_ARGUMENT','DocCollaborationEntity','round','CONFLICT','currentTheme$','type','getAncestorScale','getOwnPropertySymbols','assign','pipe','UNDEFINED','_localStorageService','_uiPartsService','Inject','unload','ISnapshotServerService','onMouseMove','isTransformMutationFailure','LOGIN_FAILED','setActiveRange','name','getOwnPropertyDescriptor','_refRangeService','InsertRowCommandId','RemoteUniscriptService','516196DpXJHo','setTimeout','getActiveRange','onPointerLeave$','PY_RUNTIME_SCRIPT_ERROR','fillText','_session','focused$','CollaborationSessionService','svg','handleInsertRow','[RemoteUniscriptService]:\x20no\x20focused\x20unit','defs','_docSyncEditingCollabCursorService','_docTransformStateCacheService','8077458KbLxVt','text','Failed','univer-online-status','_registerRenderDependencies','createInstance','unitID','use','switchMap','#FFF','handleIRemoveCol','collab-client.tooltip.reconnect','MessageType','handleInsertCol','EffectRefRangId','IImageIoService','APPLY_PERMISSION_DENIED','_colorIndex','urlChange$','_docClipboardService','DOC_RANGE_TYPE','online','Module','collaboration.closeRoom','APPLY_REVISION_CONFILICT','Tooltip','handleDeleteRangeMoveLeft','moveTo','_shapes','@univerjs/docs','setAlpha','_transformUndoRedoStack','_scheduleHeartbeat','collaboration-client.offline-data-not-saved','_send','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','5IVDFff','lineTo','on-line-single_clip0_910_349','_themeService','min','_transformHistoryAndStateStack','getColor','_onRefRangeChange','_config','_onCursorUpdate','Workbook','delete','restore','then','WebSocketService','_status$','unitId','makeDirty','@univerjs/sheets-ui','@univerjs/ui','UniverCollaborationClientPlugin','ranges','TRANSFORM_CHANGE_OBSERVABLE_TYPE','CollaborationController','@univerjs-pro/collaboration-client'];_0x2eb0=function(){return _0x9c032;};return _0x2eb0();}function je(_0x2fc866){const _0x2faa0e=_0x1cc422,{status$:_0x405e61}=_0x2fc866,_0x596d63=R[_0x2faa0e(0x34d)](_0x405e61,u['CollaborationStatus'][_0x2faa0e(0x355)]),_0x3559aa=R[_0x2faa0e(0x170)](a[_0x2faa0e(0x17b)]),_0x34cb93=R['useDependency'](u[_0x2faa0e(0x208)]),_0x1e8332=_0x596d63!==u[_0x2faa0e(0x25c)][_0x2faa0e(0x2e7)],_0x390773=_0x3559aa['t']($t(_0x596d63)),_0x26a82f=T[_0x2faa0e(0x182)](H['onlineStatus'],{[H[_0x2faa0e(0x224)]]:_0x1e8332,[H[_0x2faa0e(0x277)]]:!_0x1e8332}),_0x18e8bc=_0x1e8332?w[_0x2faa0e(0x341)](xe,{}):w[_0x2faa0e(0x341)]($e,{}),_0x3e9039=M[_0x2faa0e(0x1dc)](()=>{const _0x443e58=_0x2faa0e;_0x1e8332||_0x34cb93[_0x443e58(0x2ed)]();},[_0x1e8332,_0x34cb93]);function _0x14a5d3(){const _0x235cb9=_0x2faa0e;return w['jsxs']('div',{'className':T['clsx'](_0x26a82f,'univer-flex\x20univer-items-center'),'onClick':_0x3e9039,'children':[w[_0x235cb9(0x341)](_0x235cb9(0x28e),{'className':H[_0x235cb9(0x2d2)],'children':_0x18e8bc}),w['jsx'](_0x235cb9(0x28e),{'className':H[_0x235cb9(0x178)],'children':_0x390773})]});}return _0x1e8332?_0x14a5d3():w[_0x2faa0e(0x341)](T[_0x2faa0e(0x228)],{'title':_0x3559aa['t'](_0x2faa0e(0x21a)),'children':_0x14a5d3()});}var xt=Object[_0x1cc422(0x1fc)],jt=(_0x57f8cf,_0x260027,_0x3f7bf0,_0x3b65c9)=>{const _0x263426=_0x1cc422;for(var _0x127ebb=_0x3b65c9>0x1?void 0x0:_0x3b65c9?xt(_0x260027,_0x3f7bf0):_0x260027,_0x3020f7=_0x57f8cf[_0x263426(0x357)]-0x1,_0x254b8b;_0x3020f7>=0x0;_0x3020f7--)(_0x254b8b=_0x57f8cf[_0x3020f7])&&(_0x127ebb=_0x254b8b(_0x127ebb)||_0x127ebb);return _0x127ebb;},X=(_0x24c2c1,_0x4bfc25)=>(_0x487077,_0x1d9edc)=>_0x4bfc25(_0x487077,_0x1d9edc,_0x24c2c1);exports['DesktopCollaborationStatusDisplayController']=class extends a['Disposable']{constructor(_0x3839b6,_0x430f85,_0x3385eb,_0xffe012){const _0x4c6664=_0x1cc422;super(),h(this,_0x4c6664(0x242),new d['BehaviorSubject'](u[_0x4c6664(0x25c)][_0x4c6664(0x355)])),(this[_0x4c6664(0x10e)]=_0x3839b6,this['_injector']=_0x430f85,this['_collaborationController']=_0x3385eb,this[_0x4c6664(0x1f3)]=_0xffe012,this[_0x4c6664(0x36f)](),this[_0x4c6664(0x2f4)]());}[_0x1cc422(0x2f4)](){const _0x514897=_0x1cc422;this['disposeWithMe'](this[_0x514897(0x10e)][_0x514897(0x207)][_0x514897(0x1f0)](d['switchMap'](()=>{const _0x3b4d7d=_0x514897,_0x2fd873=this[_0x3b4d7d(0x10e)][_0x3b4d7d(0x308)]();return _0x2fd873?this[_0x3b4d7d(0x18b)][_0x3b4d7d(0xef)](_0x2fd873[_0x3b4d7d(0x111)]()):d['of'](null);}),d['switchMap'](_0x322fe2=>_0x322fe2?_0x322fe2['status$']:d['of'](u[_0x514897(0x25c)][_0x514897(0x355)])))[_0x514897(0x24c)](_0x237337=>{const _0x1c0123=_0x514897;this[_0x1c0123(0x242)]['next'](_0x237337);}));}[_0x1cc422(0x36f)](){const _0x12a6ee=_0x1cc422;this[_0x12a6ee(0x149)](this[_0x12a6ee(0x1f3)][_0x12a6ee(0x34a)](R['BuiltInUIPart'][_0x12a6ee(0x288)],()=>R[_0x12a6ee(0x2ea)](kt({'status$':this[_0x12a6ee(0x242)][_0x12a6ee(0x132)]()}),this[_0x12a6ee(0x154)])));}},exports[_0x1cc422(0x25f)]=jt([X(0x0,a[_0x1cc422(0x195)]),X(0x1,a[_0x1cc422(0x1f4)](a[_0x1cc422(0x125)])),X(0x2,a[_0x1cc422(0x1f4)](u[_0x1cc422(0x24a)])),X(0x3,R['IUIPartsService'])],exports[_0x1cc422(0x25f)]);function kt(_0x44440a){const {status$:_0x5c9f98}=_0x44440a;return function(){const _0x3d243f=_0x1c04;return w[_0x3d243f(0x341)](je,{'status$':_0x5c9f98});};}var Bt=Object[_0x1cc422(0x1fc)],Ht=(_0x1da175,_0x3962f3,_0x408cfc,_0x4930b9)=>{for(var _0x1ec17f=_0x4930b9>0x1?void 0x0:_0x4930b9?Bt(_0x3962f3,_0x408cfc):_0x3962f3,_0x352d95=_0x1da175['length']-0x1,_0xcc4c01;_0x352d95>=0x0;_0x352d95--)(_0xcc4c01=_0x1da175[_0x352d95])&&(_0x1ec17f=_0xcc4c01(_0x1ec17f)||_0x1ec17f);return _0x1ec17f;},y=(_0x38ad43,_0x409bcc)=>(_0x4541e0,_0x1a9e4b)=>_0x409bcc(_0x4541e0,_0x1a9e4b,_0x38ad43);let z=class extends a[_0x1cc422(0x34e)]{constructor(_0x5899ca,_0x433cc5,_0x252456,_0x2ec98e,_0x19067a,_0x40e595){const _0x25d52c=_0x1cc422;super(),this[_0x25d52c(0x25a)]=_0x5899ca,this[_0x25d52c(0x1b7)]=_0x433cc5,this['_collaborationUIEventService']=_0x252456,this[_0x25d52c(0x33d)]=_0x2ec98e,this['_notificationService']=_0x19067a,this[_0x25d52c(0x1a8)]=_0x40e595,this[_0x25d52c(0x177)](),this[_0x25d52c(0x148)]();}[_0x1cc422(0x177)](){const _0x345d47=_0x1cc422;this[_0x345d47(0x149)](this[_0x345d47(0x25a)][_0x345d47(0x2dd)](()=>{const _0x5b242f=_0x345d47;if(this['_localCacheService'][_0x5b242f(0x2e3)][_0x5b242f(0x187)])return this[_0x5b242f(0x1a8)]['t'](_0x5b242f(0x230));}));}['_initEvent'](){const _0x112e55=_0x1cc422;this[_0x112e55(0x149)](this[_0x112e55(0x274)][_0x112e55(0x198)][_0x112e55(0x24c)](_0x1af92f=>{const _0x20c601=_0x112e55;_0x1af92f['id']===u[_0x20c601(0x259)][_0x20c601(0x2f5)]&&this['_messageService'][_0x20c601(0x30a)]({'type':T[_0x20c601(0x21b)][_0x20c601(0xf2)],'content':this[_0x20c601(0x1a8)]['t'](_0x20c601(0x155))}),_0x1af92f['id']===u[_0x20c601(0x259)]['CLOSE_ROOM']&&this[_0x20c601(0x33d)][_0x20c601(0x30a)]({'type':T[_0x20c601(0x21b)][_0x20c601(0xf2)],'content':this[_0x20c601(0x1a8)]['t']('collaboration.closeRoom')}),_0x1af92f['id']===u[_0x20c601(0x259)][_0x20c601(0x1e4)]&&this[_0x20c601(0x2e6)][_0x20c601(0x30a)]({'title':this['_localeService']['t'](_0x20c601(0x2d9)),'content':this[_0x20c601(0x1a8)]['t'](_0x20c601(0x375)),'type':_0x20c601(0x1c0),'duration':0x0}),_0x1af92f['id']===u['CollaborationUIEventId'][_0x20c601(0x1ea)]&&this[_0x20c601(0x33d)]['show']({'type':T[_0x20c601(0x21b)][_0x20c601(0x303)],'content':this[_0x20c601(0x1a8)]['t'](_0x20c601(0x226))+'('+_0x1af92f[_0x20c601(0x2cb)]+')'}),_0x1af92f['id']===u['CollaborationUIEventId'][_0x20c601(0x285)]&&this[_0x20c601(0x33d)][_0x20c601(0x30a)]({'type':T[_0x20c601(0x21b)]['Warning'],'content':this[_0x20c601(0x1a8)]['t'](_0x1af92f[_0x20c601(0x2cb)]||'')}),_0x1af92f['id']===u[_0x20c601(0x259)][_0x20c601(0x279)]&&this[_0x20c601(0x33d)][_0x20c601(0x30a)]({'type':T[_0x20c601(0x21b)]['Warning'],'content':this[_0x20c601(0x1a8)]['t'](_0x20c601(0x174))}),_0x1af92f['id']===u['CollaborationUIEventId']['SOCKET_FAILED']&&this['_messageService'][_0x20c601(0x30a)]({'type':T[_0x20c601(0x21b)][_0x20c601(0x303)],'content':this[_0x20c601(0x1a8)]['t']('session.connection-failed')}),_0x1af92f['id']===u['CollaborationUIEventId'][_0x20c601(0x264)]&&this[_0x20c601(0x33d)][_0x20c601(0x30a)]({'type':T[_0x20c601(0x21b)][_0x20c601(0x303)],'content':this['_localeService']['t']('session.collaboration-timeout')});}));}};z=Ht([y(0x0,R['IBeforeCloseService']),y(0x1,u['ILocalCacheService']),y(0x2,a['Inject'](u[_0x1cc422(0x26e)])),y(0x3,R['IMessageService']),y(0x4,R[_0x1cc422(0x190)]),y(0x5,a[_0x1cc422(0x1f4)](a['LocaleService']))],z);const Ft=_0x1cc422(0x25b),Ne={},Ee=a[_0x1cc422(0x374)]('uni.network.url-service');var Wt=Object['getOwnPropertyDescriptor'],Yt=(_0x3767cc,_0x23b2f5,_0x284ac7,_0x106e8f)=>{const _0x114dcc=_0x1cc422;for(var _0x57bc73=_0x106e8f>0x1?void 0x0:_0x106e8f?Wt(_0x23b2f5,_0x284ac7):_0x23b2f5,_0x2ecfc7=_0x3767cc[_0x114dcc(0x357)]-0x1,_0x4559e9;_0x2ecfc7>=0x0;_0x2ecfc7--)(_0x4559e9=_0x3767cc[_0x2ecfc7])&&(_0x57bc73=_0x4559e9(_0x57bc73)||_0x57bc73);return _0x57bc73;},F=(_0x452a08,_0x4d714b)=>(_0x6e89d7,_0x5c32ff)=>_0x4d714b(_0x6e89d7,_0x5c32ff,_0x452a08);exports[_0x1cc422(0x168)]=class extends a['RxDisposable']{constructor(_0x4ebb38,_0x4c2011,_0x792519,_0x1d4bf9,_0x38ea0d){const _0x20d6fb=_0x1cc422;super(),this[_0x20d6fb(0x18f)]=_0x4ebb38,this[_0x20d6fb(0x13f)]=_0x4c2011,this[_0x20d6fb(0x113)]=_0x792519,this[_0x20d6fb(0x304)]=_0x1d4bf9,_0x38ea0d?_0x38ea0d==null||_0x38ea0d[_0x20d6fb(0x19d)]()[_0x20d6fb(0x240)](()=>this[_0x20d6fb(0x28c)]()):(this[_0x20d6fb(0x13f)][_0x20d6fb(0x35f)](_0x20d6fb(0x1bf),_0x20d6fb(0x232)),this[_0x20d6fb(0x28c)]());}async[_0x1cc422(0x28c)](){const _0xae1dd5=_0x1cc422,_0xd7faf4=this[_0xae1dd5(0x18f)][_0xae1dd5(0x171)](_0xae1dd5(0x18c)),_0x5f1ff8=this[_0xae1dd5(0x18f)][_0xae1dd5(0x171)](_0xae1dd5(0x1ec)),_0x526303=this[_0xae1dd5(0x18f)][_0xae1dd5(0x171)](_0xae1dd5(0x164));if(!_0xd7faf4||!_0x5f1ff8){this[_0xae1dd5(0x13f)][_0xae1dd5(0x35f)](_0xae1dd5(0x1bf),'No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.');return;}const _0x37a5d4=await this[_0xae1dd5(0x304)][_0xae1dd5(0x328)](_0xd7faf4,Number(_0x5f1ff8),_0x526303);_0x37a5d4&&_0x37a5d4 instanceof a[_0xae1dd5(0x23d)]&&this[_0xae1dd5(0x2f1)](_0x37a5d4);}async['_setupSubUnitSync'](_0x2314f5){const _0x2bdfbd=_0x1cc422;await this[_0x2bdfbd(0x10c)](_0x2314f5),_0x2314f5['activeSheet$'][_0x2bdfbd(0x1f0)](d['takeUntil'](this[_0x2bdfbd(0x129)]))[_0x2bdfbd(0x24c)](_0x18286a=>{const _0x37a1fb=_0x2bdfbd;_0x18286a&&this[_0x37a1fb(0x1a4)](_0x18286a);}),this[_0x2bdfbd(0x18f)][_0x2bdfbd(0x221)][_0x2bdfbd(0x1f0)](d[_0x2bdfbd(0xf8)](this[_0x2bdfbd(0x129)]))['subscribe'](()=>this[_0x2bdfbd(0x10c)](_0x2314f5));}[_0x1cc422(0x1a4)](_0x4ffe85,_0x5e1926=!0x1){const _0x3d2037=_0x1cc422,_0x3da421=this['_urlService']['getParam'](_0x3d2037(0x164));_0x4ffe85[_0x3d2037(0x2ec)]()!==_0x3da421&&this[_0x3d2037(0x18f)][_0x3d2037(0x1de)](_0x3d2037(0x164),_0x4ffe85[_0x3d2037(0x2ec)](),_0x5e1926);}async[_0x1cc422(0x10c)](_0x1320ed){const _0x434aad=_0x1cc422;var _0x4240e9;const _0x56b434=this[_0x434aad(0x18f)][_0x434aad(0x171)](_0x434aad(0x164));if(!_0x56b434||!_0x1320ed[_0x434aad(0x24f)](_0x56b434)){const _0x7c528c=_0x1320ed['getUnhiddenWorksheets']()[0x0],_0x46b6df=_0x1320ed[_0x434aad(0x24f)](_0x7c528c);if(!_0x46b6df)return;this['_updateURLWithCurrentState'](_0x46b6df,!0x0),await this[_0x434aad(0x113)][_0x434aad(0x1b8)](g[_0x434aad(0x2d1)]['id'],{'unitId':_0x1320ed[_0x434aad(0x111)](),'subUnitId':_0x7c528c});return;}((_0x4240e9=_0x1320ed['getActiveSheet']())==null?void 0x0:_0x4240e9[_0x434aad(0x2ec)]())!==_0x56b434&&await this[_0x434aad(0x113)][_0x434aad(0x1b8)](g[_0x434aad(0x2d1)]['id'],{'unitId':_0x1320ed[_0x434aad(0x111)](),'subUnitId':_0x56b434});}},exports[_0x1cc422(0x168)]=Yt([F(0x0,Ee),F(0x1,a[_0x1cc422(0x191)]),F(0x2,a[_0x1cc422(0x1c4)]),F(0x3,a[_0x1cc422(0x1f4)](u['DataLoaderService'])),F(0x4,a[_0x1cc422(0x11e)](Ke[_0x1cc422(0x1a9)]))],exports[_0x1cc422(0x168)]);var Vt=Object[_0x1cc422(0x1fc)],Xt=(_0x5f213b,_0x1e28e0,_0x17bab8,_0x331952)=>{const _0x356f18=_0x1cc422;for(var _0x48a7da=_0x331952>0x1?void 0x0:_0x331952?Vt(_0x1e28e0,_0x17bab8):_0x1e28e0,_0x16dfd1=_0x5f213b[_0x356f18(0x357)]-0x1,_0x32f60d;_0x16dfd1>=0x0;_0x16dfd1--)(_0x32f60d=_0x5f213b[_0x16dfd1])&&(_0x48a7da=_0x32f60d(_0x48a7da)||_0x48a7da);return _0x48a7da;},le=(_0x2262da,_0x480588)=>(_0x5125f1,_0x30fced)=>_0x480588(_0x5125f1,_0x30fced,_0x2262da);let J=class{constructor(_0x3926eb,_0x12751d,_0x86f809){const _0x3278b3=_0x1cc422;this[_0x3278b3(0x154)]=_0x3926eb,this['_transformService']=_0x12751d,this[_0x3278b3(0x2a1)]=_0x86f809;}[_0x1cc422(0x131)](_0x4b76f3){const _0x50994c=_0x1cc422;this[_0x50994c(0x22e)](_0x4b76f3),this[_0x50994c(0x2f2)](_0x4b76f3);}[_0x1cc422(0x2ae)](_0x414a5c){const _0x144e8c=_0x1cc422,{unitID:_0xf9170b}=_0x414a5c,_0x33fc78=this['_renderManagerService'][_0x144e8c(0x35d)](_0xf9170b)[_0x144e8c(0x253)](b[_0x144e8c(0x1bd)]),{redoCache:_0x3765c6}=_0x33fc78[_0x144e8c(0x255)]();if(_0x3765c6[_0x144e8c(0x357)]===0x0)return _0x414a5c;let _0x407b0d=a['Tools'][_0x144e8c(0x287)](_0x414a5c['mutations'][0x0]);for(let _0x4b4059=0x0;_0x4b4059<_0x3765c6[_0x144e8c(0x357)];_0x4b4059++){const _0x2d8236={'id':_0x144e8c(0x32b),'params':{..._0x3765c6[_0x4b4059]}},_0x5eb4b9=this['_transformService']['transformMutation'](_0x407b0d,_0x2d8236,!0x1);if(m[_0x144e8c(0x1f8)](_0x5eb4b9))throw _0x5eb4b9[_0x144e8c(0x1c0)];_0x407b0d=_0x5eb4b9[_0x144e8c(0x2b1)];}return{...a[_0x144e8c(0x299)][_0x144e8c(0x287)](_0x414a5c),'mutations':[_0x407b0d]};}[_0x1cc422(0x22e)](_0x48e595){const _0x2b3f8b=_0x1cc422,{unitID:_0x412f5f}=_0x48e595,_0x406a20=this[_0x2b3f8b(0x2a1)][_0x2b3f8b(0x35d)](_0x412f5f)[_0x2b3f8b(0x253)](b[_0x2b3f8b(0x1bd)]),{undoCache:_0x4d8c59,redoCache:_0x4d7caf}=_0x406a20[_0x2b3f8b(0x255)]();if(_0x4d8c59[_0x2b3f8b(0x357)]===0x0||_0x4d7caf[_0x2b3f8b(0x357)]===0x0)return;const _0x400da4=[],_0x19f71f=[];let _0x5ec1bc=a[_0x2b3f8b(0x299)][_0x2b3f8b(0x287)](_0x48e595[_0x2b3f8b(0x1ab)][0x0]),_0x399480=a[_0x2b3f8b(0x299)][_0x2b3f8b(0x287)](_0x48e595[_0x2b3f8b(0x1ab)][0x0]);for(let _0x369544=_0x4d8c59['length']-0x1;_0x369544>=0x0;_0x369544--){const _0x2c0343={'id':_0x2b3f8b(0x32b),'params':{..._0x4d8c59[_0x369544]}},_0x216a67={'id':_0x2b3f8b(0x32b),'params':{..._0x4d7caf[_0x369544]}},_0x3de154=this['_transformService'][_0x2b3f8b(0x124)](_0x5ec1bc,_0x2c0343,!0x1),_0x58edcd=this['_transformService']['transformMutation'](_0x399480,_0x216a67,!0x1);if(m[_0x2b3f8b(0x1f8)](_0x3de154))throw _0x3de154[_0x2b3f8b(0x1c0)];if(m[_0x2b3f8b(0x1f8)](_0x58edcd))throw _0x58edcd[_0x2b3f8b(0x1c0)];_0x400da4[_0x2b3f8b(0x2c4)](_0x3de154[_0x2b3f8b(0x343)][_0x2b3f8b(0x133)]),_0x19f71f['unshift'](_0x58edcd[_0x2b3f8b(0x343)]['params']),_0x5ec1bc=_0x3de154[_0x2b3f8b(0x2b1)],_0x399480=_0x58edcd['m1Prime'];}_0x406a20[_0x2b3f8b(0x2d5)]({'undoCache':_0x400da4,'redoCache':_0x19f71f});}[_0x1cc422(0x2f2)](_0x18f911){const _0x5a6b3b=_0x1cc422,{unitID:_0x3ce2e3}=_0x18f911,_0x30fa58=this[_0x5a6b3b(0x2a1)][_0x5a6b3b(0x35d)](_0x3ce2e3)[_0x5a6b3b(0x253)](b[_0x5a6b3b(0x1bd)]),_0x351891=_0x30fa58[_0x5a6b3b(0x202)]();if(_0x351891==null)return;const _0x490dfd=[{'id':_0x5a6b3b(0x32b),'params':{'unitId':_0x18f911[_0x5a6b3b(0x215)],'actions':null,'textRanges':[_0x351891]}}],_0x4933d4=this[_0x5a6b3b(0x2f0)][_0x5a6b3b(0x2a9)](_0x18f911,_0x490dfd);if(!m[_0x5a6b3b(0x1a1)](_0x4933d4))throw _0x4933d4[_0x5a6b3b(0x1c0)];const _0x1ba44d=_0x4933d4[_0x5a6b3b(0x343)][0x0]['params'][_0x5a6b3b(0x194)];Array[_0x5a6b3b(0x2fb)](_0x1ba44d)&&_0x1ba44d[_0x5a6b3b(0x357)]&&_0x30fa58[_0x5a6b3b(0x1fa)](_0x1ba44d[0x0]);}};J=Xt([le(0x0,a[_0x1cc422(0x1f4)](a['Injector'])),le(0x1,m[_0x1cc422(0x12b)]),le(0x2,p[_0x1cc422(0x2fa)])],J);var Gt=Object['getOwnPropertyDescriptor'],qt=(_0x2fc5f9,_0x19ffb,_0x5fc439,_0x4585de)=>{for(var _0x3656db=_0x4585de>0x1?void 0x0:_0x4585de?Gt(_0x19ffb,_0x5fc439):_0x19ffb,_0x58b2e7=_0x2fc5f9['length']-0x1,_0x52d36c;_0x58b2e7>=0x0;_0x58b2e7--)(_0x52d36c=_0x2fc5f9[_0x58b2e7])&&(_0x3656db=_0x52d36c(_0x3656db)||_0x3656db);return _0x3656db;},he=(_0x3c1ead,_0x4fa3fc)=>(_0x444a05,_0x4fa1ff)=>_0x4fa3fc(_0x444a05,_0x4fa1ff,_0x3c1ead);let Z=class{constructor(_0x15d898,_0x3f077a,_0x25d969){const _0x2df5c9=_0x1cc422;this[_0x2df5c9(0x154)]=_0x15d898,this[_0x2df5c9(0x2f0)]=_0x3f077a,this[_0x2df5c9(0x321)]=_0x25d969;}[_0x1cc422(0x35e)](_0x1931b0){const _0x2481aa=_0x1cc422;this[_0x2481aa(0x238)](_0x1931b0);}['transformRemoteChangeset'](_0x1be17b){const _0x29a6d7=_0x1cc422,{unitID:_0x463777}=_0x1be17b,{collaboration:_0x306655}=this[_0x29a6d7(0x321)][_0x29a6d7(0x2b0)](_0x463777);if(_0x306655[_0x29a6d7(0x357)]===0x0)return _0x1be17b;let _0x519f9d=a[_0x29a6d7(0x299)][_0x29a6d7(0x287)](_0x1be17b['mutations'][0x0]);for(let _0xe95bb6=0x0;_0xe95bb6<_0x306655['length'];_0xe95bb6++){const _0x58cc75={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x306655[_0xe95bb6][_0x29a6d7(0x243)],..._0x306655[_0xe95bb6]['redoState']}},_0x1f9b33=this[_0x29a6d7(0x2f0)]['transformMutation'](_0x519f9d,_0x58cc75,!0x1);if(m[_0x29a6d7(0x1f8)](_0x1f9b33))throw _0x1f9b33['error'];_0x519f9d=_0x1f9b33['m1Prime'];}return{...a[_0x29a6d7(0x299)][_0x29a6d7(0x287)](_0x1be17b),'mutations':[_0x519f9d]};}[_0x1cc422(0x238)](_0x1b10ac){const _0xc60b0b=_0x1cc422,{unitID:_0x5703f0}=_0x1b10ac,{history:_0x54b8a6,collaboration:_0x49c531}=this[_0xc60b0b(0x321)][_0xc60b0b(0x2b0)](_0x5703f0);if(_0x54b8a6[_0xc60b0b(0x357)]===0x0&&_0x49c531['length']===0x0)return;const _0x3acbcd=[],_0x105414=[];let _0x16a92=a[_0xc60b0b(0x299)][_0xc60b0b(0x287)](_0x1b10ac['mutations'][0x0]),_0x221614=a['Tools'][_0xc60b0b(0x287)](_0x1b10ac['mutations'][0x0]);for(let _0x384828=_0x54b8a6[_0xc60b0b(0x357)]-0x1;_0x384828>=0x0;_0x384828--){const _0x9528cd={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x54b8a6[_0x384828][_0xc60b0b(0x243)],..._0x54b8a6[_0x384828][_0xc60b0b(0x127)]}},_0x774158={'id':_0xc60b0b(0x32b),'params':{'unitId':_0x54b8a6[_0x384828][_0xc60b0b(0x243)],..._0x54b8a6[_0x384828]['redoState']}},_0x45eff5=this[_0xc60b0b(0x2f0)][_0xc60b0b(0x124)](_0x16a92,_0x9528cd,!0x1),_0x18ff61=this[_0xc60b0b(0x2f0)][_0xc60b0b(0x124)](_0x221614,_0x774158,!0x1);if(m['isTransformMutationFailure'](_0x45eff5))throw _0x45eff5[_0xc60b0b(0x1c0)];if(m['isTransformMutationFailure'](_0x18ff61))throw _0x18ff61['error'];_0x3acbcd[_0xc60b0b(0x2c4)]({..._0x54b8a6[_0x384828],'undoState':_0x45eff5[_0xc60b0b(0x343)][_0xc60b0b(0x133)],'redoState':_0x18ff61['m2Prime'][_0xc60b0b(0x133)]}),_0x16a92=_0x45eff5[_0xc60b0b(0x2b1)],_0x221614=_0x18ff61[_0xc60b0b(0x2b1)];}_0x16a92=a[_0xc60b0b(0x299)]['deepClone'](_0x1b10ac[_0xc60b0b(0x1ab)][0x0]),_0x221614=a[_0xc60b0b(0x299)]['deepClone'](_0x1b10ac[_0xc60b0b(0x1ab)][0x0]);for(let _0x1a1b83=_0x49c531['length']-0x1;_0x1a1b83>=0x0;_0x1a1b83--){const _0x4f0d88={'id':_0xc60b0b(0x32b),'params':{'unitId':_0x49c531[_0x1a1b83][_0xc60b0b(0x243)],..._0x49c531[_0x1a1b83][_0xc60b0b(0x127)]}},_0xe3574a={'id':_0xc60b0b(0x32b),'params':{'unitId':_0x49c531[_0x1a1b83]['unitId'],..._0x49c531[_0x1a1b83][_0xc60b0b(0x2ee)]}},_0x14da24=this[_0xc60b0b(0x2f0)]['transformMutation'](_0x16a92,_0x4f0d88,!0x1),_0x45407b=this[_0xc60b0b(0x2f0)][_0xc60b0b(0x124)](_0x221614,_0xe3574a,!0x1);if(m[_0xc60b0b(0x1f8)](_0x14da24))throw _0x14da24['error'];if(m[_0xc60b0b(0x1f8)](_0x45407b))throw _0x45407b['error'];_0x105414[_0xc60b0b(0x2c4)]({..._0x49c531[_0x1a1b83],'undoState':_0x14da24[_0xc60b0b(0x343)]['params'],'redoState':_0x45407b[_0xc60b0b(0x343)][_0xc60b0b(0x133)]}),_0x16a92=_0x14da24[_0xc60b0b(0x2b1)],_0x221614=_0x45407b['m1Prime'];}this['_docStateChangeManagerService']['setStateCache'](_0x5703f0,{'history':_0x3acbcd,'collaboration':_0x105414});}};Z=qt([he(0x0,a[_0x1cc422(0x1f4)](a[_0x1cc422(0x125)])),he(0x1,m[_0x1cc422(0x12b)]),he(0x2,a[_0x1cc422(0x1f4)](b[_0x1cc422(0x31a)]))],Z);var Kt=Object[_0x1cc422(0x1fc)],zt=(_0x40423a,_0x324126,_0x3e8b5b,_0x3798cc)=>{const _0x3f976d=_0x1cc422;for(var _0x1fe51c=_0x3798cc>0x1?void 0x0:_0x3798cc?Kt(_0x324126,_0x3e8b5b):_0x324126,_0x4fd738=_0x40423a[_0x3f976d(0x357)]-0x1,_0x57a0b8;_0x4fd738>=0x0;_0x4fd738--)(_0x57a0b8=_0x40423a[_0x4fd738])&&(_0x1fe51c=_0x57a0b8(_0x1fe51c)||_0x1fe51c);return _0x1fe51c;},Me=(_0x30be56,_0xfc0d5c)=>(_0x2cc41b,_0x48681b)=>_0xfc0d5c(_0x2cc41b,_0x48681b,_0x30be56);let Q=class{constructor(_0x57943f,_0x36614b){const _0x5564eb=_0x1cc422;this[_0x5564eb(0x154)]=_0x57943f,this['_transformService']=_0x36614b;}[_0x1cc422(0x2d8)](_0x3a9c1a){const _0x2de946=_0x1cc422;var _0x2abdf7;const _0x13803b=this['_injector'][_0x2de946(0x12a)](Y[_0x2de946(0x2a5)]),_0x597f4d=(_0x2abdf7=_0x13803b[_0x2de946(0x136)]())!=null?_0x2abdf7:[];if(_0x597f4d[_0x2de946(0x357)]===0x0)return;const _0x2891be=_0x3a9c1a['unitID'],_0x462e4f=[{'id':_0x2de946(0x32b),'params':{'unitId':_0x2891be,'actions':null,'textRanges':_0x597f4d}}],_0x2e81fb=this[_0x2de946(0x2f0)][_0x2de946(0x2a9)](_0x3a9c1a,_0x462e4f);if(!m[_0x2de946(0x1a1)](_0x2e81fb))throw _0x2e81fb[_0x2de946(0x1c0)];const _0xd87eef=_0x2e81fb[_0x2de946(0x343)][0x0]['params'][_0x2de946(0x194)];Array[_0x2de946(0x2fb)](_0xd87eef)&&_0xd87eef['length']&&_0x13803b[_0x2de946(0x2e2)](_0xd87eef,{'unitId':_0x2891be,'subUnitId':_0x2891be},!0x1);}};Q=zt([Me(0x0,a[_0x1cc422(0x1f4)](a['Injector'])),Me(0x1,m[_0x1cc422(0x12b)])],Q);var Jt=Object[_0x1cc422(0x1fc)],Zt=(_0x5c771c,_0x4d3cfb,_0x9f5cd4,_0x2a78ec)=>{for(var _0xbda011=_0x2a78ec>0x1?void 0x0:_0x2a78ec?Jt(_0x4d3cfb,_0x9f5cd4):_0x4d3cfb,_0x1dfe28=_0x5c771c['length']-0x1,_0x1b8cf5;_0x1dfe28>=0x0;_0x1dfe28--)(_0x1b8cf5=_0x5c771c[_0x1dfe28])&&(_0xbda011=_0x1b8cf5(_0xbda011)||_0xbda011);return _0xbda011;},N=(_0x1441c3,_0x4dcc5f)=>(_0x19a442,_0x4af443)=>_0x4dcc5f(_0x19a442,_0x4af443,_0x1441c3);let ee=class extends a['Disposable']{constructor(_0x87e8d8,_0x41b979,_0x39fe8e,_0x34b7a0,_0x5aeeb6,_0x27e460,_0x1342fe,_0x5cce22){const _0x3f29c8=_0x1cc422;super(),h(this,'_status$',new d[(_0x3f29c8(0xf0))](u[_0x3f29c8(0x25c)][_0x3f29c8(0x355)])),(this[_0x3f29c8(0x321)]=_0x87e8d8,this[_0x3f29c8(0x18b)]=_0x41b979,this[_0x3f29c8(0x1c2)]=_0x39fe8e,this[_0x3f29c8(0x20e)]=_0x34b7a0,this[_0x3f29c8(0x105)]=_0x5aeeb6,this[_0x3f29c8(0x20d)]=_0x27e460,this[_0x3f29c8(0x33d)]=_0x1342fe,this[_0x3f29c8(0x1a8)]=_0x5cce22,this['_initEntityListener']());}[_0x1cc422(0x302)](){const _0x22b903=_0x1cc422;this[_0x22b903(0x149)](this[_0x22b903(0x18b)][_0x22b903(0x366)][_0x22b903(0x24c)](_0x4366e6=>{const _0x2ef849=_0x22b903,_0x5b3670=this['_docStateChangeManagerService']['docStateChange$'][_0x2ef849(0x24c)](_0x5cbe4a=>{const _0x23f0c9=_0x2ef849;if(_0x5cbe4a==null)return;const {unitId:_0x239b63,redoState:_0x6577cb,commandId:_0x22706a}=_0x5cbe4a;if(_0x239b63!==_0x4366e6['unitID'])return;const _0x241ac6={'id':_0x22706a,'type':a['CommandType'][_0x23f0c9(0x152)],'params':{'unitId':_0x239b63,'actions':_0x6577cb[_0x23f0c9(0x318)],'textRanges':null}};_0x4366e6[_0x23f0c9(0x1c6)](_0x241ac6);});if(_0x4366e6['disposeWithMe'](_0x5b3670),_0x4366e6 instanceof u[_0x2ef849(0x1e8)]){const _0x4777af={'onTransformIME':_0x29ce67=>this[_0x2ef849(0x1c2)]['transformIMECache'](_0x29ce67),'onTransformState':_0x565f56=>this[_0x2ef849(0x20e)]['transformStateCache'](_0x565f56),'onTransformSelections':_0x355411=>this['_docTransformSelectionsService'][_0x2ef849(0x2d8)](_0x355411),'onSyncEditingCollabCursor':_0x5449a1=>this[_0x2ef849(0x20d)][_0x2ef849(0x267)](_0x5449a1),'onTransformRemoteChangesetByIMECache':_0x25a2db=>this[_0x2ef849(0x1c2)][_0x2ef849(0x2ae)](_0x25a2db),'onTransformRemoteChangesetByStateCache':_0xb00df6=>this[_0x2ef849(0x20e)]['transformRemoteChangeset'](_0xb00df6)};_0x4366e6['addHandlerCallback'](_0x4777af);}}));}};ee=Zt([N(0x0,a[_0x1cc422(0x1f4)](b[_0x1cc422(0x31a)])),N(0x1,a[_0x1cc422(0x1f4)](u[_0x1cc422(0x24a)])),N(0x2,a[_0x1cc422(0x1f4)](J)),N(0x3,a[_0x1cc422(0x1f4)](Z)),N(0x4,a[_0x1cc422(0x1f4)](Q)),N(0x5,a[_0x1cc422(0x1f4)](pe)),N(0x6,R['IMessageService']),N(0x7,a['Inject'](a['LocaleService']))],ee);var Qt=Object['getOwnPropertyDescriptor'],es=(_0x19deec,_0x2d2910,_0x5e581a,_0x551ced)=>{const _0x4b1ef9=_0x1cc422;for(var _0x180e48=_0x551ced>0x1?void 0x0:_0x551ced?Qt(_0x2d2910,_0x5e581a):_0x2d2910,_0x35a3fb=_0x19deec[_0x4b1ef9(0x357)]-0x1,_0x1769a3;_0x35a3fb>=0x0;_0x35a3fb--)(_0x1769a3=_0x19deec[_0x35a3fb])&&(_0x180e48=_0x1769a3(_0x180e48)||_0x180e48);return _0x180e48;},_e=(_0x1ac87d,_0x504087)=>(_0x367301,_0x590c72)=>_0x504087(_0x367301,_0x590c72,_0x1ac87d);let me=class extends a[_0x1cc422(0x34e)]{constructor(_0x49f7e1,_0x54f20a,_0x4a4728){const _0x504046=_0x1cc422;super(),h(this,'_cachedData',new Map()),h(this,'_saveTaskMap',new Map()),h(this,_0x504046(0xf3),!0x1),(this[_0x504046(0x280)]=_0x49f7e1,this[_0x504046(0x1f2)]=_0x54f20a,this[_0x504046(0x160)]=_0x4a4728);}[_0x1cc422(0x1ce)](){const _0x2730dd=_0x1cc422;this[_0x2730dd(0xf3)]=!0x0;}[_0x1cc422(0x1a2)](){const _0x38f825=_0x1cc422;this[_0x38f825(0xf3)]=!0x1;}get[_0x1cc422(0x2e3)](){const _0x4a4e7c=_0x1cc422;return this[_0x4a4e7c(0x261)];}[_0x1cc422(0x119)](){const _0x3e03f0=_0x1cc422;this[_0x3e03f0(0x2c7)]()[_0x3e03f0(0x240)](()=>super[_0x3e03f0(0x119)]());}async[_0x1cc422(0x2bf)](_0x2a2eec){const _0x35bc33=_0x1cc422;return this['_disabled']?null:this[_0x35bc33(0x1f2)][_0x35bc33(0x2db)](u['getLocalCacheKey'](_0x2a2eec));}async[_0x1cc422(0x10a)](_0x22e995,_0xc96ef9){const _0x32b6c4=_0x1cc422;return!!this['_localStorageService'][_0x32b6c4(0x151)](_0x22e995,_0xc96ef9);}[_0x1cc422(0x25e)](_0x1d9aba,_0x28c8f8,_0x3ca48b,_0x33e3d2){const _0x59a5cb=_0x1cc422,_0x28176c=this['_revisionService'][_0x59a5cb(0x2cc)](_0x1d9aba);this[_0x59a5cb(0x27d)][_0x59a5cb(0x2ab)](_0x1d9aba,{'unitID':_0x1d9aba,'type':_0x28c8f8,'awaitingChangeset':_0x3ca48b,'mutations':_0x33e3d2,'rev':_0x28176c}),this[_0x59a5cb(0x261)]['has'](_0x1d9aba)||this['_scheduleSaving'](_0x1d9aba);}[_0x1cc422(0x2a8)](_0x522b08){const _0x4374d9=_0x1cc422,_0x16d272=this[_0x4374d9(0x13a)]();_0x16d272===0x0?this[_0x4374d9(0x29b)](_0x522b08):this['_saveTaskMap'][_0x4374d9(0x2ab)](_0x522b08,setTimeout(()=>this['_saveCache'](_0x522b08),_0x16d272));}[_0x1cc422(0x13a)](){const _0x35e979=_0x1cc422;var _0x2cf898;return(_0x2cf898=this['_configService'][_0x35e979(0x1a3)](u[_0x35e979(0x2b6)]))!=null?_0x2cf898:u[_0x35e979(0x1d3)];}[_0x1cc422(0x29b)](_0xa6052f){const _0xaab40b=_0x1cc422,_0x92af5f=this[_0xaab40b(0x261)][_0xaab40b(0x12a)](_0xa6052f);return _0x92af5f!==void 0x0&&window[_0xaab40b(0x15b)](_0x92af5f),this[_0xaab40b(0x1f2)][_0xaab40b(0x151)](u['getLocalCacheKey'](_0xa6052f),this[_0xaab40b(0x27d)]['get'](_0xa6052f))[_0xaab40b(0x240)](()=>this[_0xaab40b(0x261)][_0xaab40b(0x23e)](_0xa6052f));}async[_0x1cc422(0x2c7)](){const _0x2380b7=_0x1cc422,_0x567cfd=[];this[_0x2380b7(0x261)]['forEach']((_0x48b708,_0x5d0b52)=>{const _0x3892c6=_0x2380b7;window[_0x3892c6(0x15b)](_0x48b708),_0x567cfd['push'](this[_0x3892c6(0x29b)](_0x5d0b52)[_0x3892c6(0x240)](()=>{const _0x12668b=_0x3892c6;this[_0x12668b(0x261)][_0x12668b(0x23e)](_0x5d0b52);}));}),await Promise[_0x2380b7(0x2aa)](_0x567cfd);}};me=es([_e(0x0,a['IConfigService']),_e(0x1,a['ILocalStorageService']),_e(0x2,a[_0x1cc422(0x1f4)](m[_0x1cc422(0x300)]))],me);class ke extends a['RxDisposable']{constructor(){const _0x22a04e=_0x1cc422;super(),h(this,_0x22a04e(0x221)),this['urlChange$']=d[_0x22a04e(0x291)](window,_0x22a04e(0x18a))[_0x22a04e(0x1f0)](d[_0x22a04e(0xf8)](this[_0x22a04e(0x129)]),d[_0x22a04e(0x325)](0x1),d[_0x22a04e(0x161)](void 0x0));}[_0x1cc422(0x1de)](_0x1f0d21,_0x4f208a,_0x3f4d81=!0x1){const _0x4e6763=_0x1cc422,_0x3aa3cd=new URL(window[_0x4e6763(0x2ad)][_0x4e6763(0x2d6)]);_0x3aa3cd[_0x4e6763(0x1b4)]['set'](_0x1f0d21,_0x4f208a),_0x3f4d81?window['history']['replaceState']('','',_0x3aa3cd['toString']()):window[_0x4e6763(0x1d6)][_0x4e6763(0xff)]('','',_0x3aa3cd[_0x4e6763(0x362)]());}[_0x1cc422(0x199)](_0x4679cf,_0x4b2121=!0x1){const _0x5da0f3=_0x1cc422,_0x15e64f=new URL(window[_0x5da0f3(0x2ad)][_0x5da0f3(0x2d6)]);_0x15e64f[_0x5da0f3(0x1b4)][_0x5da0f3(0x23e)](_0x4679cf),_0x4b2121?window[_0x5da0f3(0x1d6)][_0x5da0f3(0x184)]('','',_0x15e64f[_0x5da0f3(0x362)]()):window[_0x5da0f3(0x1d6)][_0x5da0f3(0xff)]('','',_0x15e64f[_0x5da0f3(0x362)]());}[_0x1cc422(0x171)](_0x2914b3){const _0x2e15eb=_0x1cc422;var _0x379ed8;return(_0x379ed8=new URL(window[_0x2e15eb(0x2ad)][_0x2e15eb(0x2d6)])[_0x2e15eb(0x1b4)][_0x2e15eb(0x12a)](_0x2914b3))!=null?_0x379ed8:void 0x0;}}var ts=Object[_0x1cc422(0x2da)],ss=Object[_0x1cc422(0x1fc)],ns=(_0x207f98,_0x55c98f,_0x12664a)=>_0x55c98f in _0x207f98?ts(_0x207f98,_0x55c98f,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x12664a}):_0x207f98[_0x55c98f]=_0x12664a,is=(_0x4f2308,_0x4d86e2,_0x247d24,_0x16e7a6)=>{const _0x58c148=_0x1cc422;for(var _0x24e516=_0x16e7a6>0x1?void 0x0:_0x16e7a6?ss(_0x4d86e2,_0x247d24):_0x4d86e2,_0x3d6fcc=_0x4f2308[_0x58c148(0x357)]-0x1,_0x3cb9b8;_0x3d6fcc>=0x0;_0x3d6fcc--)(_0x3cb9b8=_0x4f2308[_0x3d6fcc])&&(_0x24e516=_0x3cb9b8(_0x24e516)||_0x24e516);return _0x24e516;},ue=(_0x511a24,_0x47b15b)=>(_0xbb3208,_0x286b9f)=>_0x47b15b(_0xbb3208,_0x286b9f,_0x511a24),rs=(_0x34435b,_0x42489c,_0x505e0c)=>ns(_0x34435b,_0x42489c+'',_0x505e0c);const os=_0x1cc422(0x1c3);exports['UniverCollaborationClientUIPlugin']=class extends a[_0x1cc422(0x1c9)]{constructor(_0x312b3b=Ne,_0x686535,_0x316966,_0x1c92c0){const _0x1c2507=_0x1cc422;super(),this[_0x1c2507(0x23b)]=_0x312b3b,this['_renderManagerService']=_0x686535,this[_0x1c2507(0x154)]=_0x316966,this[_0x1c2507(0x280)]=_0x1c92c0;const {..._0x5eb6d8}=a[_0x1c2507(0x10f)]({},Ne,this['_config']);this['_configService'][_0x1c2507(0x268)](Ft,_0x5eb6d8);}[_0x1cc422(0x2d7)](){const _0x37ae10=_0x1cc422;this['_registerDependencies'](),this[_0x37ae10(0x34c)]();}[_0x1cc422(0x14f)](){const _0x47f20f=_0x1cc422;this[_0x47f20f(0x213)]();}[_0x1cc422(0x2e8)](){const _0x35bb18=_0x1cc422;var _0x29b5e6;const _0x33a531=[[Ce],[Q],[J],[Z],[pe],[Ee,{'useClass':ke}],[q[_0x35bb18(0x27f)],{'useClass':q[_0x35bb18(0x241)]}],[u['ILocalCacheService'],{'useClass':me}],[exports[_0x35bb18(0x25f)]],[ee],[z],[x],[fe],[exports[_0x35bb18(0x168)]]];a['registerDependencies'](this[_0x35bb18(0x154)],a[_0x35bb18(0x256)](_0x33a531,(_0x29b5e6=this[_0x35bb18(0x23b)])==null?void 0x0:_0x29b5e6[_0x35bb18(0x19f)]));}[_0x1cc422(0x213)](){const _0xd718dd=_0x1cc422;this['disposeWithMe'](this[_0xd718dd(0x2a1)]['registerRenderModule'](a[_0xd718dd(0x340)][_0xd718dd(0x193)],[ve])),this[_0xd718dd(0x149)](this[_0xd718dd(0x2a1)][_0xd718dd(0x2c1)](a[_0xd718dd(0x340)][_0xd718dd(0xfc)],[ge]));}[_0x1cc422(0x34c)](){const _0x2751bb=_0x1cc422;a['touchDependencies'](this['_injector'],[[x],[exports['DesktopCollaborationStatusDisplayController']],[ee],[z],[exports[_0x2751bb(0x168)]]]);}},rs(exports[_0x1cc422(0x36a)],'pluginName',os),exports[_0x1cc422(0x36a)]=is([a[_0x1cc422(0x327)](u[_0x1cc422(0x247)]),ue(0x1,p[_0x1cc422(0x2fa)]),ue(0x2,a[_0x1cc422(0x1f4)](a[_0x1cc422(0x125)])),ue(0x3,a[_0x1cc422(0x25d)])],exports['UniverCollaborationClientUIPlugin']);var as=Object[_0x1cc422(0x1fc)],cs=(_0x1007b4,_0x47ece6,_0x5d7075,_0x430586)=>{const _0x322ea2=_0x1cc422;for(var _0x324d69=_0x430586>0x1?void 0x0:_0x430586?as(_0x47ece6,_0x5d7075):_0x47ece6,_0x527145=_0x1007b4[_0x322ea2(0x357)]-0x1,_0x3e6b91;_0x527145>=0x0;_0x527145--)(_0x3e6b91=_0x1007b4[_0x527145])&&(_0x324d69=_0x3e6b91(_0x324d69)||_0x324d69);return _0x324d69;},W=(_0x5a2e15,_0x2bfa2f)=>(_0x682426,_0x1071bc)=>_0x2bfa2f(_0x682426,_0x1071bc,_0x5a2e15);exports[_0x1cc422(0x2b4)]=class extends u[_0x1cc422(0x1e3)]{constructor(_0x47ef71,_0x374825,_0xade049,_0x25f8de,_0x23f394){super(_0x47ef71,_0x374825,_0xade049,_0x25f8de,_0x23f394);}async['createSocket'](_0x57fce7){const _0x1ecf1c=_0x1cc422,_0x17c8f0=await this[_0x1ecf1c(0x266)](),_0x428f3a=this[_0x1ecf1c(0x19a)](_0x57fce7,_0x17c8f0);return this[_0x1ecf1c(0x196)](_0x428f3a);}[_0x1cc422(0x19a)](_0x45065f,_0x47a34e){const _0x22117f=_0x1cc422,_0x22797f=typeof window>'u'?new URL(_0x45065f):new URL(_0x45065f,window[_0x22117f(0x2ad)][_0x22117f(0x2fe)]);_0x22797f[_0x22117f(0x1b4)][_0x22117f(0x2ab)](_0x22117f(0x134),_0x47a34e);const _0x49b09e=typeof window>'u'?new URLSearchParams():new URLSearchParams(window[_0x22117f(0x2ad)]['search']);return _0x49b09e[_0x22117f(0x12a)](_0x22117f(0xf7))&&_0x22797f[_0x22117f(0x1b4)][_0x22117f(0x2ab)](_0x22117f(0xf7),_0x49b09e[_0x22117f(0x12a)](_0x22117f(0xf7))),_0x22797f[_0x22117f(0x362)]();}async[_0x1cc422(0x266)](){const _0x502983=_0x1cc422;var _0x2886a8,_0x283b13,_0x4bd1ae;const _0x123f10=this[_0x502983(0x280)][_0x502983(0x1a3)](u[_0x502983(0x305)]),_0x3ddb7b=(_0x2886a8=_0x123f10==null?void 0x0:_0x123f10[_0x502983(0x2e0)])!=null?_0x2886a8:u[_0x502983(0x19c)];return(_0x4bd1ae=(_0x283b13=(await this[_0x502983(0x166)][_0x502983(0x12a)](_0x3ddb7b,{'headers':{'Content-Type':'application/json'}}))[_0x502983(0x34b)])==null?void 0x0:_0x283b13[_0x502983(0x2f8)])!=null?_0x4bd1ae:'';}},exports[_0x1cc422(0x2b4)]=cs([W(0x0,a[_0x1cc422(0x1f4)](a[_0x1cc422(0x125)])),W(0x1,a[_0x1cc422(0x1f4)](q[_0x1cc422(0x1ad)])),W(0x2,a[_0x1cc422(0x25d)]),W(0x3,a[_0x1cc422(0x191)]),W(0x4,m[_0x1cc422(0x1f6)])],exports['BrowserCollaborationSocketService']);const Pe=0x7530,we=_0x1cc422(0x32d);class ls extends a[_0x1cc422(0x34e)]{constructor(){const _0x5671fb=_0x1cc422;super(),h(this,_0x5671fb(0x163),a[_0x5671fb(0x26b)]()),h(this,_0x5671fb(0x36e),new Set()),h(this,'_unitOnClients',new Map()),h(this,_0x5671fb(0x2ef),null),h(this,_0x5671fb(0x1b3),new Map()),h(this,_0x5671fb(0x147),new Map()),this[_0x5671fb(0x28c)]();}[_0x1cc422(0x119)](){const _0x3baf39=_0x1cc422;super[_0x3baf39(0x119)](),this[_0x3baf39(0x1b3)]['forEach']((_0x5f165a,_0x254081)=>this['_removeClearOtherTimer'](_0x254081)),this['_heartbeatTimer']&&window[_0x3baf39(0x2ac)](this[_0x3baf39(0x2ef)]);}[_0x1cc422(0x339)](_0x2a1daf){const _0x349946=_0x1cc422;return this[_0x349946(0x12d)](_0x2a1daf)[_0x349946(0x1f0)](d['distinctUntilChanged']());}[_0x1cc422(0x1bc)](_0x5523ff){const _0x4485c7=_0x1cc422;this[_0x4485c7(0x36e)][_0x4485c7(0x187)]===0x0&&this['_scheduleHeartbeat'](),this[_0x4485c7(0x36e)][_0x4485c7(0x1af)](_0x5523ff),this['_send']({'type':0x0,'memberID':this[_0x4485c7(0x163)],'unitIDs':[_0x5523ff],'isForwarded':!0x1});}[_0x1cc422(0x252)](_0x5bde7e){const _0x593739=_0x1cc422;this[_0x593739(0x36e)][_0x593739(0x23e)](_0x5bde7e),this[_0x593739(0x36e)][_0x593739(0x187)]===0x0&&this[_0x593739(0x2ef)]&&window[_0x593739(0x2ac)](this[_0x593739(0x2ef)]);}[_0x1cc422(0x28c)](){const _0x593d04=_0x1cc422;this[_0x593d04(0x149)](a[_0x593d04(0xfe)](d[_0x593d04(0x291)](window,'storage')['subscribe'](_0x1a8d65=>{const _0x7a2a40=_0x593d04;if(_0x1a8d65['key']!==we||!_0x1a8d65['newValue'])return;const _0x4b480f=JSON[_0x7a2a40(0x349)](_0x1a8d65['newValue']);this[_0x7a2a40(0x16b)](_0x4b480f);}))),window[_0x593d04(0x29e)](_0x593d04(0x1f5),()=>this[_0x593d04(0x231)]({'type':0x1,'memberID':this[_0x593d04(0x163)],'unitIDs':Array[_0x593d04(0xfd)](this['_selfUnitIDs'])}));}[_0x1cc422(0x16b)](_0x48fe85){switch(_0x48fe85['type']){case 0x0:this['_handleJoinEvent'](_0x48fe85);break;case 0x1:this['_handleLeaveEvent'](_0x48fe85);break;case 0x2:this['_handleHeartbeatEvent'](_0x48fe85);break;}}['_handleJoinEvent'](_0xfb854d){const _0x492ff1=_0x1cc422,{unitIDs:_0x219caf,memberID:_0x1c69c3,isForwarded:_0xcc4ef7}=_0xfb854d;_0x219caf['forEach'](_0x5ec41a=>{const _0x34a246=_0x1c04;if(!_0xcc4ef7&&this[_0x34a246(0x295)][_0x34a246(0x139)](_0x5ec41a)&&this['_ensureSubject'](_0x5ec41a)['next'](u[_0x34a246(0x197)][_0x34a246(0x31f)]),!this[_0x34a246(0x295)][_0x34a246(0x139)](_0x5ec41a)||!this[_0x34a246(0x295)][_0x34a246(0x12a)](_0x5ec41a)[_0x34a246(0x139)](_0x1c69c3)){const _0x461684=this[_0x34a246(0x295)]['get'](_0x5ec41a)||new Set();_0x461684[_0x34a246(0x1af)](_0x1c69c3),this[_0x34a246(0x295)][_0x34a246(0x2ab)](_0x5ec41a,_0x461684),this[_0x34a246(0x175)](_0x1c69c3);}}),_0xcc4ef7||this[_0x492ff1(0x231)]({'type':0x0,'memberID':this[_0x492ff1(0x163)],'unitIDs':[...this[_0x492ff1(0x36e)]],'isForwarded':!0x0});}[_0x1cc422(0x175)](_0x4f3e9e){const _0x22376f=_0x1cc422;this[_0x22376f(0x2b2)](_0x4f3e9e);const _0xe92f64=window[_0x22376f(0x201)](()=>{const _0x5a50ed=_0x22376f;this[_0x5a50ed(0x295)]['forEach'](_0x7b0a25=>{const _0xe1893f=_0x5a50ed;_0x7b0a25[_0xe1893f(0x23e)](_0x4f3e9e);});},Pe*0x2);this[_0x22376f(0x1b3)][_0x22376f(0x2ab)](_0x4f3e9e,_0xe92f64);}[_0x1cc422(0x2b2)](_0xef4f45){const _0x4509d3=_0x1cc422;if(this[_0x4509d3(0x1b3)][_0x4509d3(0x139)](_0xef4f45)){const _0x263bef=this[_0x4509d3(0x1b3)]['get'](_0xef4f45);_0x263bef&&window['clearTimeout'](_0x263bef),this['_clearOtherTimers'][_0x4509d3(0x2ab)](_0xef4f45,null);}}[_0x1cc422(0x369)](_0x45f09c){const _0x246499=_0x1cc422,{memberID:_0x280cdc,unitIDs:_0x2b81d1}=_0x45f09c;_0x2b81d1[_0x246499(0x298)](_0x21e69e=>{const _0x22ccd3=_0x246499;var _0x402890;const _0x518102=this[_0x22ccd3(0x295)][_0x22ccd3(0x12a)](_0x21e69e);_0x518102&&(_0x518102[_0x22ccd3(0x23e)](_0x280cdc),(_0x402890=this[_0x22ccd3(0x12d)](_0x21e69e))==null||_0x402890['next'](_0x518102[_0x22ccd3(0x187)]===0x0?u[_0x22ccd3(0x197)][_0x22ccd3(0x254)]:u[_0x22ccd3(0x197)][_0x22ccd3(0x31f)]));}),this[_0x246499(0x2b2)](_0x280cdc);}['_handleHeartbeatEvent'](_0x51efa8){const _0x2d3ef1=_0x1cc422;this['_scheduleClearOtherTimer'](_0x51efa8[_0x2d3ef1(0x1b6)]);}[_0x1cc422(0x231)](_0x3d1b38){const _0x2d1543=_0x1cc422;localStorage[_0x2d1543(0x151)](we,JSON[_0x2d1543(0x1c5)](_0x3d1b38));}[_0x1cc422(0x22f)](){const _0xaf010=_0x1cc422;this[_0xaf010(0x2ef)]=window['setInterval'](()=>{const _0x31a23f=_0xaf010;this['_send']({'type':0x2,'memberID':this[_0x31a23f(0x163)]});},Pe);}[_0x1cc422(0x12d)](_0x12ea15){const _0x41ef9e=_0x1cc422;return this[_0x41ef9e(0x147)][_0x41ef9e(0x139)](_0x12ea15)||this[_0x41ef9e(0x147)][_0x41ef9e(0x2ab)](_0x12ea15,new d['BehaviorSubject'](u[_0x41ef9e(0x197)][_0x41ef9e(0x254)])),this[_0x41ef9e(0x147)][_0x41ef9e(0x12a)](_0x12ea15);}}var Be=(_0x4b88ab=>(_0x4b88ab[_0x4b88ab[_0x1cc422(0x1f1)]=0x0]=_0x1cc422(0x1f1),_0x4b88ab[_0x4b88ab['OK']=0x1]='OK',_0x4b88ab[_0x4b88ab['INTERNAL_ERROR']=0x2]=_0x1cc422(0x322),_0x4b88ab[_0x4b88ab['PERMISSION_DENIED']=0x3]='PERMISSION_DENIED',_0x4b88ab[_0x4b88ab['NOT_FOUND']=0x4]=_0x1cc422(0x347),_0x4b88ab[_0x4b88ab[_0x1cc422(0x30d)]=0x5]=_0x1cc422(0x30d),_0x4b88ab[_0x4b88ab['ALREADY_EXISTS']=0x6]=_0x1cc422(0x1d0),_0x4b88ab[_0x4b88ab[_0x1cc422(0x1e7)]=0x7]=_0x1cc422(0x1e7),_0x4b88ab[_0x4b88ab[_0x1cc422(0x13b)]=0x8]=_0x1cc422(0x13b),_0x4b88ab[_0x4b88ab['COMPLETION_FINISHED']=0x9]=_0x1cc422(0x1be),_0x4b88ab[_0x4b88ab['LOGIN_FAILED']=0xa]=_0x1cc422(0x1f9),_0x4b88ab[_0x4b88ab[_0x1cc422(0x2a3)]=0x1389]=_0x1cc422(0x2a3),_0x4b88ab[_0x4b88ab[_0x1cc422(0x121)]=0x1771]=_0x1cc422(0x121),_0x4b88ab[_0x4b88ab['SNAPSHOT_HAS_BEEN_REMOVED']=0x1772]=_0x1cc422(0x13e),_0x4b88ab[_0x4b88ab[_0x1cc422(0x15d)]=0x1773]=_0x1cc422(0x15d),_0x4b88ab[_0x4b88ab['APPLY_REJECT']=0x1b59]='APPLY_REJECT',_0x4b88ab[_0x4b88ab['APPLY_NON_SEQUENTIAL_REVISION']=0x1b5a]=_0x1cc422(0x1b1),_0x4b88ab[_0x4b88ab[_0x1cc422(0x227)]=0x1b5b]=_0x1cc422(0x227),_0x4b88ab[_0x4b88ab[_0x1cc422(0x21f)]=0x1b5c]='APPLY_PERMISSION_DENIED',_0x4b88ab[_0x4b88ab[_0x1cc422(0x16a)]=0x1b5d]='APPLY_DUPLICATED',_0x4b88ab[_0x4b88ab[_0x1cc422(0x135)]=0x1f41]=_0x1cc422(0x135),_0x4b88ab[_0x4b88ab[_0x1cc422(0x18d)]=0x2329]=_0x1cc422(0x18d),_0x4b88ab[_0x4b88ab[_0x1cc422(0x26a)]=0x232a]=_0x1cc422(0x26a),_0x4b88ab[_0x4b88ab[_0x1cc422(0x31c)]=0x232b]='LICENSE_IMPORT_SIZE_EXCEEDED',_0x4b88ab[_0x4b88ab['LICENSE_EXPORT_SIZE_EXCEEDED']=0x232c]=_0x1cc422(0x367),_0x4b88ab[_0x4b88ab['LICENSE_DISTRO_REJECTED']=0x232d]=_0x1cc422(0xfb),_0x4b88ab[_0x4b88ab[_0x1cc422(0x1e1)]=0x2711]='YUUMI_UNABLE_LOAD_URL',_0x4b88ab[_0x4b88ab['YUUMI_URL_COL_OUT_OF_RANGE']=0x2712]=_0x1cc422(0x138),_0x4b88ab[_0x4b88ab[_0x1cc422(0x2be)]=0x2713]='YUUMI_RATE_OVER_LIMIT',_0x4b88ab[_0x4b88ab[_0x1cc422(0x11f)]=0x2714]='YUUMI_SUBSCRIPTION_NOT_FOUND',_0x4b88ab[_0x4b88ab['PY_RUNTIME_SCRIPT_ERROR']=0x2af9]=_0x1cc422(0x204),_0x4b88ab[_0x4b88ab['INVITE_CODE_HAS_BEEN_UES']=0x2ee1]=_0x1cc422(0x33c),_0x4b88ab[_0x4b88ab[_0x1cc422(0x10b)]=0x2ee2]=_0x1cc422(0x10b),_0x4b88ab[_0x4b88ab[_0x1cc422(0x2ce)]=0x2ee3]=_0x1cc422(0x2ce),_0x4b88ab[_0x4b88ab[_0x1cc422(0x13d)]=0x2ee4]=_0x1cc422(0x13d),_0x4b88ab[_0x4b88ab[_0x1cc422(0x143)]=0x2ee5]='INVITE_CODE_ALREADY_BOUND',_0x4b88ab[_0x4b88ab[_0x1cc422(0x270)]=-0x1]=_0x1cc422(0x270),_0x4b88ab))(Be||{}),hs=Object[_0x1cc422(0x1fc)],_s=(_0xacda9b,_0x282d4a,_0x1cd0fa,_0x200f7e)=>{const _0x349002=_0x1cc422;for(var _0x1fea65=_0x200f7e>0x1?void 0x0:_0x200f7e?hs(_0x282d4a,_0x1cd0fa):_0x282d4a,_0x3f28d3=_0xacda9b[_0x349002(0x357)]-0x1,_0x34c5f4;_0x3f28d3>=0x0;_0x3f28d3--)(_0x34c5f4=_0xacda9b[_0x3f28d3])&&(_0x1fea65=_0x34c5f4(_0x1fea65)||_0x1fea65);return _0x1fea65;},de=(_0x1b9f9f,_0x2b5805)=>(_0x5b906b,_0x427ff3)=>_0x2b5805(_0x5b906b,_0x427ff3,_0x1b9f9f);exports[_0x1cc422(0x1ff)]=class extends a[_0x1cc422(0x34e)]{constructor(_0x3500ef,_0x42ca8b,_0x56383b){const _0x5460b0=_0x1cc422;super(),this[_0x5460b0(0x273)]=_0x3500ef,this[_0x5460b0(0x166)]=_0x42ca8b,this['_configService']=_0x56383b;}async['runOnServer'](_0x2cb343,_0x344c60,_0x5eeb19,..._0x28d2cf){const _0x493de8=_0x1cc422;var _0x23aa95,_0x1c6de2,_0x339f5b,_0x414c6f;const _0x358185=this['_instanceService']['getFocusedUnit']();if(!_0x358185)throw new Error(_0x493de8(0x20b));const _0x42270e=((_0x23aa95=this[_0x493de8(0x280)]['getConfig'](u[_0x493de8(0x344)]))!=null?_0x23aa95:u[_0x493de8(0x183)])+'/'+_0x2cb343+_0x493de8(0x356)+_0x344c60,_0x9241ba=new URL(window[_0x493de8(0x2ad)]['href']),_0x48fa4f={'scriptId':_0x2cb343,'runId':(_0x1c6de2=_0x9241ba[_0x493de8(0x1b4)][_0x493de8(0x12a)]('runId'))!=null?_0x1c6de2:'','function':_0x344c60,'unitId':_0x358185['getUnitId'](),'argsOfFunction':JSON['stringify'](_0x28d2cf),'invokeId':(_0x339f5b=_0x5eeb19[_0x493de8(0xf4)])!=null?_0x339f5b:'','executionId':(_0x414c6f=_0x5eeb19['executionId'])!=null?_0x414c6f:''};try{const _0x3bee85=await this[_0x493de8(0x166)][_0x493de8(0x101)](_0x42270e,{'body':_0x48fa4f});return _0x3bee85[_0x493de8(0x34b)]['error']&&_0x3bee85[_0x493de8(0x34b)][_0x493de8(0x1c0)][_0x493de8(0x188)]!==Be['OK']?_0x493de8(0x211):_0x3bee85[_0x493de8(0x34b)]['result'];}catch{return'Failed';}}},exports[_0x1cc422(0x1ff)]=_s([de(0x0,a[_0x1cc422(0x195)]),de(0x1,a['Inject'](q['HTTPService'])),de(0x2,a[_0x1cc422(0x25d)])],exports['RemoteUniscriptService']),exports[_0x1cc422(0x24d)]=je,exports['IURLService']=Ee,exports['SheetCollabCursorShape']=Ae,exports[_0x1cc422(0x370)]=ls,exports['WebURLService']=ke;
|
|
1
|
+
'use strict';const _0x1ff7a2=_0x5501;(function(_0x1d45ec,_0x4590e4){const _0x892c87=_0x5501,_0x329530=_0x1d45ec();while(!![]){try{const _0x1e7ee4=-parseInt(_0x892c87(0x151))/0x1*(-parseInt(_0x892c87(0x249))/0x2)+-parseInt(_0x892c87(0x132))/0x3+parseInt(_0x892c87(0x20e))/0x4+parseInt(_0x892c87(0x1df))/0x5+-parseInt(_0x892c87(0x257))/0x6+parseInt(_0x892c87(0x2c6))/0x7*(parseInt(_0x892c87(0x2cb))/0x8)+parseInt(_0x892c87(0x2eb))/0x9*(parseInt(_0x892c87(0x256))/0xa);if(_0x1e7ee4===_0x4590e4)break;else _0x329530['push'](_0x329530['shift']());}catch(_0x35bf9b){_0x329530['push'](_0x329530['shift']());}}}(_0x4042,0x241e4));var Xe=Object[_0x1ff7a2(0x350)],Ge=(_0x433058,_0x4afbb5,_0x21d602)=>_0x4afbb5 in _0x433058?Xe(_0x433058,_0x4afbb5,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x21d602}):_0x433058[_0x4afbb5]=_0x21d602,h=(_0x558ec1,_0x662ca5,_0x2faaf8)=>Ge(_0x558ec1,typeof _0x662ca5!=_0x1ff7a2(0x11b)?_0x662ca5+'':_0x662ca5,_0x2faaf8);Object['defineProperty'](exports,Symbol[_0x1ff7a2(0x2ec)],{'value':_0x1ff7a2(0x229)});const u=require(_0x1ff7a2(0xef)),a=require(_0x1ff7a2(0x1ab)),p=require(_0x1ff7a2(0x25e)),q=require(_0x1ff7a2(0x2f1)),b=require(_0x1ff7a2(0x1e1)),qe=require(_0x1ff7a2(0x22f)),d=require(_0x1ff7a2(0x26c)),Y=require(_0x1ff7a2(0x315)),m=require(_0x1ff7a2(0x278)),Te=require(_0x1ff7a2(0xfa)),g=require('@univerjs/sheets'),$=require(_0x1ff7a2(0x205)),G=require(_0x1ff7a2(0x19d)),w=require('react/jsx-runtime'),R=require(_0x1ff7a2(0x310)),T=require('@univerjs/design'),M=require(_0x1ff7a2(0x22a)),Ke=require('@univerjs/rpc');var ze=Object[_0x1ff7a2(0x167)],Je=(_0x3a40d3,_0x2451c8,_0x588680,_0x8f4304)=>{for(var _0x4dcdd6=_0x8f4304>0x1?void 0x0:_0x8f4304?ze(_0x2451c8,_0x588680):_0x2451c8,_0xaf8e94=_0x3a40d3['length']-0x1,_0x4cf2fb;_0xaf8e94>=0x0;_0xaf8e94--)(_0x4cf2fb=_0x3a40d3[_0xaf8e94])&&(_0x4dcdd6=_0x4cf2fb(_0x4dcdd6)||_0x4dcdd6);return _0x4dcdd6;},Re=(_0x542698,_0x6b2e4c)=>(_0x422d16,_0x56e8db)=>_0x6b2e4c(_0x422d16,_0x56e8db,_0x542698);let fe=class extends a[_0x1ff7a2(0x2c5)]{constructor(_0x4c6d3d,_0x20f5d9){const _0x3ff7d3=_0x1ff7a2;super(),this[_0x3ff7d3(0x313)]=_0x4c6d3d,this['_imageIoService']=_0x20f5d9,this['_init']();}['_init'](){const _0x1e2ab0=_0x1ff7a2,_0x207d03=this;this[_0x1e2ab0(0x2ce)](this[_0x1e2ab0(0x313)][_0x1e2ab0(0x28b)]({'onBeforePasteImage':async _0x147cd9=>{const _0x3dc6b6=_0x1e2ab0,_0x592923=await _0x207d03[_0x3dc6b6(0x353)][_0x3dc6b6(0x239)](_0x147cd9);return _0x592923?{'source':_0x592923[_0x3dc6b6(0x1d5)],'imageSourceType':_0x592923[_0x3dc6b6(0x355)]}:null;}}));}};fe=Je([Re(0x0,b[_0x1ff7a2(0x19e)]),Re(0x1,qe[_0x1ff7a2(0x135)])],fe);const Oe=[_0x1ff7a2(0x143),_0x1ff7a2(0x282),_0x1ff7a2(0x161),_0x1ff7a2(0x1c0),'blue400','gold400'];class Ce extends a[_0x1ff7a2(0x299)]{constructor(){const _0x28c4a3=_0x1ff7a2;super(...arguments),h(this,_0x28c4a3(0x100),new Map()),h(this,_0x28c4a3(0x1a3),0x0);}[_0x1ff7a2(0x34d)](_0x316b50){const _0x3d8112=_0x1ff7a2;if(this[_0x3d8112(0x100)][_0x3d8112(0x21d)](_0x316b50))return this['_assignedColors'][_0x3d8112(0x2fc)](_0x316b50);const _0xeba8be=Oe[this['_colorIndex']];return this[_0x3d8112(0x1a3)]=(this[_0x3d8112(0x1a3)]+0x1)%Oe[_0x3d8112(0x2a5)],this[_0x3d8112(0x100)][_0x3d8112(0x1ef)](_0x316b50,_0xeba8be),_0xeba8be;}}function Le(_0x5651ef){let _0x45c6b2='';for(const _0x56aac7 of _0x5651ef){const {startOffset:_0x15359f,endOffset:_0x181179,isActive:_0x5e9b27,rangeType:_0x143fd8,segmentId:_0x1483cf,segmentPage:_0x279f3b}=_0x56aac7;_0x45c6b2['length']&&(_0x45c6b2+=','),_0x45c6b2+=_0x15359f+':'+_0x181179+':'+(_0x5e9b27?'1':'0')+':'+_0x143fd8+':'+_0x1483cf+':'+_0x279f3b;}return _0x45c6b2;}function Ze(_0x272196){const _0x137711=_0x1ff7a2,_0xccfc6d=_0x272196['split'](','),_0x17884d=[];for(const _0x5c7b35 of _0xccfc6d){const [_0x1b4524,_0x1e2931,_0x176571,_0x30091d,_0x372acd,_0x28dbea]=_0x5c7b35[_0x137711(0x1cc)](':');_0x17884d[_0x137711(0x2ab)]({'startOffset':Number(_0x1b4524),'endOffset':Number(_0x1e2931),'collapsed':_0x1b4524===_0x1e2931,'isActive':_0x176571==='1','rangeType':_0x30091d===a['DOC_RANGE_TYPE'][_0x137711(0x25d)]?a[_0x137711(0x326)][_0x137711(0x25d)]:a[_0x137711(0x326)][_0x137711(0x2af)],'segmentId':typeof _0x372acd==_0x137711(0x184)?String(_0x372acd):'','segmentPage':Number(_0x28dbea!=null?_0x28dbea:-0x1)});}return _0x17884d['some'](_0x2ea842=>_0x2ea842['isActive'])||(_0x17884d[0x0][_0x137711(0x22e)]=!0x0),_0x17884d;}function _0x4042(){const _0x40e8a8=['_startDocCollabCursor','add','_clearOtherTimers','lineTo','wsSessionTicketUrl','@univerjs-pro/collaboration','getOffsetConfig','onPointerEnter$','SOCKET_FAILED_RETRY','_session','_handleHover','column','off-line-single_clip0_910_343','PERMISSION_DENIED','collaboration-client.offline-data-not-saved','jiqing500','hide','_entityInit$','fill','extend','Unknown\x20user','M0\x200H16V16H0z','onlineStatusIcon','_cursorShapes','addClipboardHook','_createSocketURL','univer-offline','delete','doc.mutation.rich-text-editing','handleDeleteRangeMoveUp','getSheetId','getCoordByCell','subunit','isTransformMutationFailure','body','random','SHEET_VIEWPORT_KEY','_draw','Disposable','SetWorksheetActivateCommand','ColorKit','replace','unshift','fillText','complete','LICENSE_DISTRO_REJECTED','Tooltip','pipe','send','getCurrent','length','_collabSessionService','replaceState','collabStatus.conflict','colorChannel1','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','push','SNAPSHOT_INVALID_SNAPSHOT','history','values','RECT','_cursor','post','_getSessionTicket','mask','subscribeEvent','_dataLoaderService','_beforeCloseService','_handleHeartbeatEvent','filter','onRendered','selection','getFocusedUnit','reconnect','#fff','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','_context','newValue','bottom','PY_RUNTIME_SCRIPT_ERROR','_setupBeforeClosingHandler','RegularPolygon','RxDisposable','156422LLAWxi','YUUMI_URL_COL_OUT_OF_RANGE','onTransformChange$','clearTimeout','...','24TvytdY','_transformHistoryAndStateStack','isTransformMutationsWithChangesetSuccess','disposeWithMe','trim','combineLatest','setStateCache','BuiltInUIPart','OTHER_CLIENTS_EDITING','DEFAULT_WS_SESSION_TICKET_URL','DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT','APPLY_NON_SEQUENTIAL_REVISION','actions','_backgroundColor','measureText','entityInit$','IRemoteInstanceService','univer-flex\x20univer-items-center','type','eventID','getActiveSheet','UNIVER_SHEET','clearInterval','[CollaborationDataLoaderController]','searchParams','shareReplay','_renderManagerService','getSheetBySheetId','loadOfflineData','top','mapTo','_startSheetCollabCursor','226053vVTDjs','toStringTag','Rectangle','OnLineSingle','ICommandService','BehaviorSubject','@univerjs/network','SNAPSHOT_HAS_BEEN_REMOVED','asObservable','_toggleOffline','_commandService','data','defs','INTERNAL_ERROR','_unitOnClients','_textBubble','Error','get','Shape','requireSession','CollaborationUIEventId','row','transform','permission.content','sessionTicket','includes','currentTheme$','_notificationService','setConfig','getCurrentUnitForType','call','textRanges','_anchorDot','_hover','_labelPosition','ThemeService','_collaborationController','@univerjs/ui','_getMergeRange','size','_docClipboardService','Rect','@univerjs/docs','useRef','getLocalCacheKey','_send','COMPLETION_FINISHED','OFFLINE','svg','HEADER_MENU','_render','div','getMergeData','YUUMI_UNABLE_LOAD_URL','NO_OTHER_CLIENTS_EDITING','distinctUntilChanged','subUnitId','FromArray','createInstance','DOC_RANGE_TYPE','UPDATE_CURSOR','_hovered','ISocketService','jsxs','toString','CLOSE_ROOM','attrs','TEXT_RANGE_LAYER_INDEX','url(#$1','unit','deepClone','Subject','use','m1Prime','on-line-single','SetTextSelectionsOperation','_collaborationUIEventService','_docTransformIMECacheService','getOwnPropertySymbols','INVITE_CODE_HAS_BEEN_UES','error','permission.title','Tools','_updateURLWithCurrentState','toDisposable','getRelativeToViewportCoord','_uiPartsService','ITransformService','COLORS','_onCursorUpdate','_docSkeleton','MessageType','getSkeleton','undoState','_id','_name','jsx','addEventListener','assignAColorForMemberID','popstate','focused$','defineProperty','current','ONLINE','_imageIoService','UNAUTHENTICATED','imageSourceType','sheetID','INotificationService','getStateCache','_heartbeatTimer','_hideTimer','memberID','_init','evenodd','save','_httpService','APPLY_DUPLICATED','0\x200\x2017\x2016','USER_NOT_INVITED_CODE','uni.network.url-service','dispose$','SOCKET_FAILED','_color','1em','SYNCED','executeCommand','className','transformMutationsWithChangeset','_saveCache','beginPath','NOT_COLLAB','SetSelectionsOperation','SetDocZoomRatioOperation','_initCommandExecutedListener','propertyIsEnumerable','findNodePositionByCharIndex','roomMembers','saveOfflineData','switchMap','@univerjs-pro/collaboration-client','takeUntil','RemoteUniscriptService','getValue','INVITE_CODE_REQUIRED','_removeClearOtherTimer','HTTPService','session.will-retry','deserializeRangeWithSheet','DisposableCollection','_configService','@univerjs/engine-formula','_cursors','unload','startRow','updateOfflineData','RichTextEditingMutation','_assignedColors','collab-text-anchor-','_docTransformStateCacheService','_univerInstanceService','_revisionService','registerDependencies','substring','SUBMIT_CHANGESET_TIMEOUT','_handleEvent','_syncEditingCollabCursorService','transformStateCache','cursorInfo$','idSuffix','FETCH_MISS','function','show','collab-rect-range-','Injector','setUndoRedoMutationParamsCache','ALREADY_EXISTS','CollaborationSocketService','getUniverSheetInstance','IMessageService','addHandlerCallback','onCommandExecuted','_messageService','InsertRangeMoveRightCommandId','symbol','DocSkeletonManagerService','runRefRangeMutations','univer-online','find','Plugin','getUnitId','LICENSE_IMPORT_SIZE_EXCEEDED','univer-online-status-title','subscribe','onlineStatusTitle','USERS_LEAVE','syncEditingCollabCursor','getMemberID','UNIVER_COLLABORATION_CLIENT_WEB_PLUGIN','useCallback','_unitStatus','LocaleService','_roomMembers$','setShapeProps','_colorAssignService','collaboration-client-ui.config','_doCreateSocket','262716AuuZfo','CollaborationStatusDisplay','flatMap','IImageIoService','Vector2','IBeforeCloseService','transformRemoteChangeset','disposeUnit','_removeCollabCursors','_disabled','RemoveRowCommandId','hovered','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','removeParam','DocCollaborationEntity','UniverIcon','IRenderManagerService','purple300','Failed','ticket','exhaustSavingTask','CollaborationEvent','univer-online-status','getTypeOfUnitAdded$','DependentOn','unsubscribe','addObject','onMouseMove','transformSelections','debounce','NOT_FOUND','1UDMTkx','triggerDblclick','offline','_range','_scheduleHeartbeat','_scene','LICENSE_EXPORT_SIZE_EXCEEDED','getUnitStatus$','path','UniverInstanceType','_instanceService','loadUnit','ILocalCacheService','children','unitID','_registerRenderDependencies','verdancy600','key','_localCacheService','_document','_injector','getConfig','getOwnPropertyDescriptor','DeleteRangeMoveLeftCommandId','_drawAnchor','getRangePointData','_config','createElement','APPLY_REVISION_CONFILICT','status$','setInterval','debug','APPLY_REJECT','with','setTimeout','min','getViewport','xlink:href','APPLY_PERMISSION_DENIED','_transformService','_scheduleSaving','_drawTextRange','DesktopCollaborationStatusDisplayController','_urlService','application/json','_getAnchorBounding','touchDependencies','round','whenReady','UnitStatus','disableLocalCache','string','labelPosition','_online','_initDependencies','UniverCollaborationClientUIPlugin','DocIMEInputManagerService','CHANGESET_REVISION_CONFILICT','setParam','event$','_selfUnitIDs','collabCursorState$','isArray','IConfigService','collabStatus.offline','from','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','invokeId','registerRefRange','restore','_shapes','_localeService','SessionStatus','_entities','registerBeforeClose','WebBrowserSingleActiveUnitService','@univerjs/sheets-ui','IDocClipboardService','_getScale','_eventUnsubscribe','getRenderById','getItem','_colorIndex','_logService','startColumn','unitId','urlChange$','dispose','getMember','RefRangeService','@univerjs/core','registerRenderModule','setAlpha','_anchor','next','BrowserCollaborationSocketService','univerjs-icon\x20univerjs-icon-','getActiveRange','height','entries','transformMutation','_initEvent','_updateCollabCursors','tag','_onCursorDelete','clipPath','UNIVER_DOC','_themeService','getCollabEntity$','code','InsertColCommandId','red300','location','getCollabCursors$','sessionStatus$','translate(.97)','executionId','_registerDependencies','INVALID_ARGUMENT','getAncestorScale','handleInsertRangeMoveRight','black','RevisionService','split','resize','_drawRectRange','LICENSE_MAX_UNITS_EXCEEDED','engine','indexOf','UNDEFINED','collabStatus.synced','_initStatusComponent','source','CollaborationDataLoaderController','defIds','_getSheetObject','color','_docSyncEditingCollabCursorService','_cachedData','_initResize','handleIRemoveRow','none','119195AMjKsc','getUnhiddenWorksheets','@univerjs/docs-ui','_memberService','ILogService','CollaborationSessionService','endRow','handleInsertRow','init','displayName','arc','forEach','debounceTime','mutations','SheetCollabCursorShape','fillStyle','set','redoState','generateRandomId','width','_cursorInfo$','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','_docStateChangeManagerService','useDependency','_transformPreviousActiveRange','EffectRefRangId','contains','Inject','then','NodePositionConvertToRectRange','_docTransformSelectionsService','fromEventSubject','ranges','_refRangeService','_docSkeletonManagerService','Optional','_ensureSubject','prototype','rxjs/operators','parse','apply','skeleton','_updateSubUnitFromURLParams','_handleJoinEvent','handleInsertRangeMoveDown','getVpScrollXYInfoByPosToVp','CONNECTOR_DATA_TOO_LARGE','1047656szAPlv','currentColor','text','pushState','_initStatusListener','DataLoaderService','_refreshCollabCursors','createSocket','_handleLeaveEvent','collab-client.tooltip.reconnect','DocStateChangeManagerService','cursorInfo','onlineStatus','TOO_MANY_REQUESTS','href','has','#FFF','IUniverInstanceService','[RemoteUniscriptService]:\x20no\x20focused\x20unit','_scheduleClearOtherTimer','concat','map','activeSheet$','YUUMI_RATE_OVER_LIMIT','_localStorageService','setItem','_setupSubUnitSync','Module','react','getColor','CollaborationStatus','merge','isActive','@univerjs/drawing','name','url(#on-line-single_clip0_910_349)','m2Prime','/run/','AWAITING','ENSURE_SNAPSHOT_EXECUTION','params','_collabCursorState$','DeleteRangeMoveUpCommandId','saveImage','currentSkeleton$','forwardRef','getParam','_initEntityListener','connectInjector','collaboration.closeRoom','mergeOverrideWithDependencies','Workbook','_toggleOnline','makeDirty','drawWith','runId','handleIRemoveCol','range','closePath','22172heZWnB','getTypeOfUnitDisposed$','_sheetSkeletonManagerService','0\x200\x2016\x2016','LOGIN_FAILED','on-line-single_clip0_910_349','transformIMECache','WebSocketService','NodePositionConvertToCursor','pluginName','override','_saveTaskMap','JOIN_ROOM_FAILED','30haHaza','1222296odNjsb','INVITE_CODE_ALREADY_BOUND','CONFLICT','saveTaskMap','YUUMI_SUBSCRIPTION_NOT_FOUND','_collabCursorController','TEXT','@univerjs/engine-render','MemberService','collabStatus.syncing','_lastPointer','icon','OTHER_CLIENT_EDITING','session.collaboration-timeout','_updateLocalCursor','CollaborationController','all','Warning','roomMembers$','_status$','off-line-single','rxjs','getCellPositionByOffset','_getSaveTimeout','DocSelectionManagerService','TRANSFORM_CHANGE_OBSERVABLE_TYPE','ISnapshotServerService','editingUnit'];_0x4042=function(){return _0x40e8a8;};return _0x4042();}class pe extends a[_0x1ff7a2(0x2c5)]{constructor(){const _0x1834d8=_0x1ff7a2;super(...arguments),h(this,_0x1834d8(0x237),new d[(_0x1834d8(0x2f0))](null)),h(this,_0x1834d8(0x18e),this['_collabCursorState$'][_0x1834d8(0x2f3)]());}[_0x1ff7a2(0x127)](_0x3299c0){const _0x22b3f6=_0x1ff7a2,{unitID:_0x17e57f,memberID:_0x45f443,textRanges:_0x385477}=_0x3299c0,_0x106d97=Le(_0x385477);if(_0x106d97==='')return;const _0x5ec25f={'unitID':_0x17e57f,'memberID':_0x45f443,'selection':_0x106d97};this['_collabCursorState$'][_0x22b3f6(0x1af)](_0x5ec25f);}}var Qe=Object[_0x1ff7a2(0x167)],et=(_0x167616,_0x511d8c,_0x502cc9,_0x5608bc)=>{for(var _0x3a1f29=_0x5608bc>0x1?void 0x0:_0x5608bc?Qe(_0x511d8c,_0x502cc9):_0x511d8c,_0x1839b7=_0x167616['length']-0x1,_0xd7ee43;_0x1839b7>=0x0;_0x1839b7--)(_0xd7ee43=_0x167616[_0x1839b7])&&(_0x3a1f29=_0xd7ee43(_0x3a1f29)||_0x3a1f29);return _0x3a1f29;},P=(_0x3f668a,_0x2d9814)=>(_0x4a5dc7,_0x2bc497)=>_0x2d9814(_0x4a5dc7,_0x2bc497,_0x3f668a);const tt=0x12c,st=0x64;let Se=class extends a[_0x1ff7a2(0x2c5)]{constructor(_0x41a8b0,_0x527c93,_0x16e9f4,_0x5057f3,_0xd0c4d7,_0x2bcd32,_0x2bbe59,_0x1badae,_0x43f29f){const _0x4bd3fa=_0x1ff7a2;super(),h(this,_0x4bd3fa(0x186),!0x1),h(this,_0x4bd3fa(0xd4),!0x1),h(this,_0x4bd3fa(0x1f3),new d['BehaviorSubject'](new Map())),h(this,'cursorInfo$',this[_0x4bd3fa(0x1f3)][_0x4bd3fa(0x2f3)]()),h(this,'_roomMembers$',new d[(_0x4bd3fa(0x2f0))]([])),h(this,_0x4bd3fa(0x269),this['_roomMembers$'][_0x4bd3fa(0x2a2)](d[_0x4bd3fa(0x1eb)](tt))),h(this,_0x4bd3fa(0x265),a['debounce'](_0x2a9b79=>{const _0x450317=_0x4bd3fa,_0x1d1ea9={'eventID':m[_0x450317(0x147)][_0x450317(0x327)],'data':{'unitID':this[_0x450317(0x15f)],'memberID':this[_0x450317(0x27c)][_0x450317(0x128)](),'selection':Le(_0x2a9b79)}};this[_0x450317(0x27c)][_0x450317(0x2a3)](_0x1d1ea9,this[_0x450317(0x15f)]);},st)),(this['unitID']=_0x41a8b0,this['_session']=_0x527c93,this[_0x4bd3fa(0x165)]=_0x16e9f4,this[_0x4bd3fa(0x12f)]=_0x5057f3,this[_0x4bd3fa(0x1e2)]=_0xd0c4d7,this[_0x4bd3fa(0x109)]=_0x2bcd32,this[_0x4bd3fa(0x178)]=_0x2bbe59,this[_0x4bd3fa(0x103)]=_0x1badae,this[_0x4bd3fa(0x2f5)]=_0x43f29f);}get[_0x1ff7a2(0x219)](){const _0x70740a=_0x1ff7a2;return this['_cursorInfo$'][_0x70740a(0xf2)]();}get[_0x1ff7a2(0xec)](){const _0x353599=_0x1ff7a2;return this[_0x353599(0x12d)][_0x353599(0xf2)]();}['dispose'](){const _0x3bcf53=_0x1ff7a2;super[_0x3bcf53(0x1a8)](),this[_0x3bcf53(0x1f3)][_0x3bcf53(0x1af)](new Map()),this['_cursorInfo$'][_0x3bcf53(0x29f)](),this[_0x3bcf53(0x12d)][_0x3bcf53(0x1af)]([]),this['_roomMembers$'][_0x3bcf53(0x29f)]();}[_0x1ff7a2(0x1e7)](){const _0x30625a=_0x1ff7a2;this[_0x30625a(0xd4)]||(this[_0x30625a(0xd4)]=!0x0,this['_session'][_0x30625a(0x1c3)][_0x30625a(0x2a2)](d[_0x30625a(0xf0)](this[_0x30625a(0xdc)]))[_0x30625a(0x124)](_0x3b2280=>{const _0x2737f1=_0x30625a;_0x3b2280===u[_0x2737f1(0x199)][_0x2737f1(0x352)]?this[_0x2737f1(0x242)]():this[_0x2737f1(0x2f4)]();}),this[_0x30625a(0x27c)][_0x30625a(0x18c)][_0x30625a(0x2a2)](d[_0x30625a(0xf0)](this[_0x30625a(0xdc)]))[_0x30625a(0x124)](_0x580948=>{const _0x538700=_0x30625a,_0x328084=_0x580948['eventID'];_0x328084===m[_0x538700(0x147)][_0x538700(0x327)]&&this[_0x538700(0x344)](_0x580948),_0x328084===m[_0x538700(0x147)][_0x538700(0x126)]&&this[_0x538700(0x1b9)](_0x580948);}),this[_0x30625a(0x2ce)](this[_0x30625a(0x2f5)]['onCommandExecuted'](_0x555946=>{const _0x410db8=_0x30625a,_0x1dd1d7=_0x555946['params'];_0x1dd1d7!=null&&this[_0x410db8(0x186)]&&_0x555946['id']===Y[_0x410db8(0x336)]['id']&&_0x1dd1d7['unitId']===this['unitID']&&_0x1dd1d7['isEditing']===!0x1&&_0x1dd1d7[_0x410db8(0x1ff)][_0x410db8(0x2a5)]>0x0&&this[_0x410db8(0x265)](_0x1dd1d7[_0x410db8(0x1ff)]);})),this[_0x30625a(0x109)][_0x30625a(0x18e)][_0x30625a(0x2a2)](d[_0x30625a(0xf0)](this[_0x30625a(0xdc)]))[_0x30625a(0x124)](_0x56d3ed=>{const _0x56007b=_0x30625a;if((_0x56d3ed==null?void 0x0:_0x56d3ed[_0x56007b(0x15f)])!==this[_0x56007b(0x15f)])return;const _0x1ee02f={'eventID':m[_0x56007b(0x147)]['UPDATE_CURSOR'],'data':_0x56d3ed};this[_0x56007b(0x344)](_0x1ee02f);}),this['disposeWithMe'](this[_0x30625a(0x2f5)][_0x30625a(0x118)](_0x335a9a=>{const _0x4b3381=_0x30625a;if(_0x335a9a[_0x4b3381(0x236)]==null)return;const _0x359538=_0x335a9a['params'];if(_0x335a9a['id']!==Y[_0x4b3381(0xff)]['id']||_0x359538[_0x4b3381(0x1a6)]!==this[_0x4b3381(0x15f)])return;const _0x52f67e={'id':_0x4b3381(0x28f),'params':_0x359538},_0x3ae3e6=this[_0x4b3381(0x219)];for(const [_0x4c3de3,_0x136f28]of _0x3ae3e6){const _0x4e48d9={'id':_0x4b3381(0x28f),'params':{'unitId':this[_0x4b3381(0x15f)],'actions':null,'textRanges':_0x136f28[_0x4b3381(0x1ff)]}},_0xd3721b=this[_0x4b3381(0x178)][_0x4b3381(0x1b5)](_0x52f67e,_0x4e48d9,!0x1);if(m['isTransformMutationFailure'](_0xd3721b))throw _0xd3721b[_0x4b3381(0x33b)];_0x3ae3e6[_0x4b3381(0x1ef)](_0x4c3de3,{..._0x136f28,'ranges':_0xd3721b[_0x4b3381(0x232)][_0x4b3381(0x236)][_0x4b3381(0x30a)]});}queueMicrotask(()=>{this['_cursorInfo$']['next'](_0x3ae3e6);});})));}[_0x1ff7a2(0x344)](_0x5b2c56){const _0x507e3c=_0x1ff7a2;var _0x1d6e67,_0x4ad616;const {memberID:_0x34abcf,selection:_0x5b9651}=_0x5b2c56['data'],_0x134119=Ze(_0x5b9651),_0x5424dd=(_0x4ad616=(_0x1d6e67=this[_0x507e3c(0x1e2)][_0x507e3c(0x1a9)](this[_0x507e3c(0x15f)],_0x34abcf))==null?void 0x0:_0x1d6e67['name'])!=null?_0x4ad616:_0x507e3c(0x287),_0x593ced={'color':this[_0x507e3c(0x12f)][_0x507e3c(0x34d)](_0x34abcf),'name':_0x5424dd,'ranges':_0x134119},_0x3e8d84=this[_0x507e3c(0x219)];_0x3e8d84[_0x507e3c(0x1ef)](_0x34abcf,_0x593ced),this[_0x507e3c(0x1f3)][_0x507e3c(0x1af)](_0x3e8d84);}[_0x1ff7a2(0x1b9)](_0x241fd3){const _0x90c767=_0x1ff7a2,{memberID:_0x3df69e}=_0x241fd3[_0x90c767(0x2f6)],_0x367ec0=this[_0x90c767(0x219)];_0x367ec0[_0x90c767(0x28e)](_0x3df69e),this['_cursorInfo$'][_0x90c767(0x1af)](_0x367ec0);}[_0x1ff7a2(0x242)](){const _0x381a3d=_0x1ff7a2;var _0xee1f3d;if(this[_0x381a3d(0x186)]=!0x0,((_0xee1f3d=this[_0x381a3d(0x103)][_0x381a3d(0x2bb)]())==null?void 0x0:_0xee1f3d[_0x381a3d(0x121)]())!==this['unitID'])return;const _0x224174=this[_0x381a3d(0x165)][_0x381a3d(0x2fc)](Y[_0x381a3d(0x26f)])['getDocRanges']();Array['isArray'](_0x224174)&&_0x224174[_0x381a3d(0x2a5)]>0x0&&this['_updateLocalCursor'](_0x224174);}[_0x1ff7a2(0x2f4)](){const _0x5446f7=_0x1ff7a2;this[_0x5446f7(0x186)]=!0x1;}};Se=et([P(0x2,a[_0x1ff7a2(0x1fa)](a[_0x1ff7a2(0x111)])),P(0x3,a['Inject'](Ce)),P(0x4,a['Inject'](u[_0x1ff7a2(0x25f)])),P(0x5,a['Inject'](pe)),P(0x6,m['ITransformService']),P(0x7,a[_0x1ff7a2(0x21f)]),P(0x8,a['ICommandService'])],Se);var nt=Object[_0x1ff7a2(0x167)],it=(_0x12db39,_0x26668b,_0x3d21a4,_0x4a6b4c)=>{const _0x19e85b=_0x1ff7a2;for(var _0x124211=_0x4a6b4c>0x1?void 0x0:_0x4a6b4c?nt(_0x26668b,_0x3d21a4):_0x26668b,_0x5d2c0d=_0x12db39[_0x19e85b(0x2a5)]-0x1,_0x196ce1;_0x5d2c0d>=0x0;_0x5d2c0d--)(_0x196ce1=_0x12db39[_0x5d2c0d])&&(_0x124211=_0x196ce1(_0x124211)||_0x124211);return _0x124211;},A=(_0x43bcec,_0x413acd)=>(_0x31a9f7,_0x3d99e0)=>_0x413acd(_0x31a9f7,_0x3d99e0,_0x43bcec);const rt=0x12c,ot=0x64,at=()=>{let _0x3a3272=[],_0x21c7fe=!0x1;return _0xfba85c=>{const _0x4206a2=_0x5501;_0x3a3272[_0x4206a2(0x2ab)](_0xfba85c),_0x21c7fe||(_0x21c7fe=!0x0,setTimeout(()=>{const _0x5af168=_0x4206a2;_0x3a3272[_0x5af168(0x1ea)](_0x343fcd=>_0x343fcd()),_0x3a3272=[],_0x21c7fe=!0x1;}));};};let Ie=class extends a[_0x1ff7a2(0x2c5)]{constructor(_0x341f9c,_0x3f76e7,_0x1bf27d,_0xb5d38,_0x351d7b,_0x5d8b08,_0x1488b4,_0x2b611b){const _0x1a58dc=_0x1ff7a2;super(),h(this,'_online',!0x1),h(this,_0x1a58dc(0xd4),!0x1),h(this,_0x1a58dc(0x1f3),new d[(_0x1a58dc(0x2f0))](new Map())),h(this,'cursorInfo$',this[_0x1a58dc(0x1f3)][_0x1a58dc(0x2f3)]()),h(this,_0x1a58dc(0x12d),new d[(_0x1a58dc(0x2f0))]([])),h(this,_0x1a58dc(0x269),this[_0x1a58dc(0x12d)][_0x1a58dc(0x2a2)](d[_0x1a58dc(0x1eb)](rt))),h(this,'_updateLocalCursor',a[_0x1a58dc(0x14f)]((_0x137399,_0x2b427e)=>{const _0x2e0859=_0x1a58dc,_0x42276e={'eventID':m[_0x2e0859(0x147)][_0x2e0859(0x327)],'data':{'unitID':this[_0x2e0859(0x15f)],'memberID':this[_0x2e0859(0x27c)]['getMemberID'](),'selection':Te['serializeRangeWithSheet'](_0x137399,_0x2b427e['range'])}};this[_0x2e0859(0x27c)][_0x2e0859(0x2a3)](_0x42276e,this[_0x2e0859(0x15f)]);},ot)),(this[_0x1a58dc(0x15f)]=_0x341f9c,this[_0x1a58dc(0x27c)]=_0x3f76e7,this[_0x1a58dc(0x165)]=_0x1bf27d,this[_0x1a58dc(0x12f)]=_0xb5d38,this['_memberService']=_0x351d7b,this['_univerInstanceService']=_0x5d8b08,this[_0x1a58dc(0x2f5)]=_0x1488b4,this[_0x1a58dc(0x200)]=_0x2b611b);}get[_0x1ff7a2(0x219)](){const _0x2dc44e=_0x1ff7a2;return this[_0x2dc44e(0x1f3)][_0x2dc44e(0xf2)]();}get[_0x1ff7a2(0xec)](){const _0x38d924=_0x1ff7a2;return this[_0x38d924(0x12d)][_0x38d924(0xf2)]();}[_0x1ff7a2(0x1a8)](){const _0x47770d=_0x1ff7a2;super[_0x47770d(0x1a8)](),this[_0x47770d(0x1f3)][_0x47770d(0x1af)](new Map()),this[_0x47770d(0x1f3)][_0x47770d(0x29f)](),this[_0x47770d(0x12d)][_0x47770d(0x1af)]([]),this[_0x47770d(0x12d)][_0x47770d(0x29f)]();}[_0x1ff7a2(0x1e7)](){const _0x47ae0b=_0x1ff7a2;this['_init']||(this[_0x47ae0b(0xd4)]=!0x0,this['_session'][_0x47ae0b(0x1c3)][_0x47ae0b(0x2a2)](d[_0x47ae0b(0xf0)](this[_0x47ae0b(0xdc)]))['subscribe'](_0x3934e6=>{const _0x186ef2=_0x47ae0b;_0x3934e6===u['SessionStatus'][_0x186ef2(0x352)]?this[_0x186ef2(0x242)]():this[_0x186ef2(0x2f4)]();}),this['_session'][_0x47ae0b(0x18c)][_0x47ae0b(0x2a2)](d[_0x47ae0b(0xf0)](this[_0x47ae0b(0xdc)]))['subscribe'](_0x3af29b=>{const _0x2ff5a7=_0x47ae0b,_0x4c2cab=_0x3af29b[_0x2ff5a7(0x2de)];_0x4c2cab===m[_0x2ff5a7(0x147)]['UPDATE_CURSOR']&&this['_onCursorUpdate'](_0x3af29b),_0x4c2cab===m[_0x2ff5a7(0x147)]['USERS_LEAVE']&&this['_onCursorDelete'](_0x3af29b);}),this['_onRefRangeChange'](),this[_0x47ae0b(0x2ce)](this['_commandService'][_0x47ae0b(0x118)](_0x220249=>{const _0x3f21dc=_0x47ae0b;if(this[_0x3f21dc(0x186)]&&_0x220249['id']===g[_0x3f21dc(0xe7)]['id']&&_0x220249['params'][_0x3f21dc(0x1a6)]===this[_0x3f21dc(0x15f)]){const _0x1b554c=_0x220249[_0x3f21dc(0x236)];this['_updateLocalCursor'](_0x1b554c[_0x3f21dc(0x323)],_0x1b554c['selections'][0x0]);}})));}[_0x1ff7a2(0x344)](_0x43285a){const _0xbe09fe=_0x1ff7a2;var _0x189a66,_0x4b9ad7;const {memberID:_0x2f468d,selection:_0x2b4031}=_0x43285a[_0xbe09fe(0x2f6)],{sheetName:_0x3d764c,range:_0x5726c0}=Te[_0xbe09fe(0xf7)](_0x2b4031),_0x3067c7={'name':(_0x4b9ad7=(_0x189a66=this[_0xbe09fe(0x1e2)][_0xbe09fe(0x1a9)](this['unitID'],_0x2f468d))==null?void 0x0:_0x189a66[_0xbe09fe(0x230)])!=null?_0x4b9ad7:'Unknown\x20user','range':this['_getMergeRange'](_0x3d764c,_0x5726c0),'sheetID':_0x3d764c,'color':this['_colorAssignService'][_0xbe09fe(0x34d)](_0x2f468d),'selection':_0x2b4031},_0x3e1cc9=this[_0xbe09fe(0x219)];_0x3e1cc9[_0xbe09fe(0x1ef)](_0x2f468d,_0x3067c7),this[_0xbe09fe(0x1f3)][_0xbe09fe(0x1af)](_0x3e1cc9);}[_0x1ff7a2(0x1b9)](_0x56f06c){const _0xfea03d=_0x1ff7a2,{memberID:_0x32ad9f}=_0x56f06c['data'],_0x77fd22=this['cursorInfo'];_0x77fd22[_0xfea03d(0x28e)](_0x32ad9f),this[_0xfea03d(0x1f3)][_0xfea03d(0x1af)](_0x77fd22);}[_0x1ff7a2(0x311)](_0x13ae9a,_0xed61e9){const _0x484457=_0x1ff7a2;var _0x56cc27,_0xaa3462;const _0x1b15bd=(_0xaa3462=(_0x56cc27=this[_0x484457(0x103)][_0x484457(0x115)](this[_0x484457(0x15f)]))==null?void 0x0:_0x56cc27[_0x484457(0x2e6)](_0x13ae9a))==null?void 0x0:_0xaa3462[_0x484457(0x31f)]();return(_0x1b15bd==null?void 0x0:_0x1b15bd[_0x484457(0x11f)](_0x5a9159=>a[_0x484457(0x2ed)][_0x484457(0x1f9)](_0x5a9159,_0xed61e9)))||_0xed61e9;}['_onRefRangeChange'](){const _0x111acf=_0x1ff7a2,_0x3960ca=new a[(_0x111acf(0xf8))](),_0x17f0aa=at(),_0x34f67f=()=>{const _0x5ec111=_0x111acf;_0x3960ca[_0x5ec111(0x1a8)]();const _0x2b5a64=(_0x17c234,_0x3e6d85,_0x111990,_0x10ae7)=>{const _0x15a7e7=_0x5ec111;let _0x47863c=[];switch(_0x17c234['id']){case g[_0x15a7e7(0x1f8)][_0x15a7e7(0x168)]:{_0x47863c=g['handleDeleteRangeMoveLeft'](_0x17c234,_0x10ae7);break;}case g[_0x15a7e7(0x1f8)][_0x15a7e7(0x238)]:{_0x47863c=g[_0x15a7e7(0x290)](_0x17c234,_0x10ae7);break;}case g[_0x15a7e7(0x1f8)][_0x15a7e7(0x1bf)]:{_0x47863c=g['handleInsertCol'](_0x17c234,_0x10ae7);break;}case g[_0x15a7e7(0x1f8)]['InsertRangeMoveDownCommandId']:{_0x47863c=g[_0x15a7e7(0x20b)](_0x17c234,_0x10ae7);break;}case g[_0x15a7e7(0x1f8)][_0x15a7e7(0x11a)]:{_0x47863c=g[_0x15a7e7(0x1c9)](_0x17c234,_0x10ae7);break;}case g[_0x15a7e7(0x1f8)]['InsertRowCommandId']:{_0x47863c=g[_0x15a7e7(0x1e6)](_0x17c234,_0x10ae7);break;}case g[_0x15a7e7(0x1f8)]['MoveRangeCommandId']:{_0x47863c=g['handleMoveRange'](_0x17c234,_0x10ae7);break;}case g[_0x15a7e7(0x1f8)]['RemoveColCommandId']:{_0x47863c=g[_0x15a7e7(0x246)](_0x17c234,_0x10ae7);break;}case g[_0x15a7e7(0x1f8)][_0x15a7e7(0x13c)]:{_0x47863c=g[_0x15a7e7(0x1dd)](_0x17c234,_0x10ae7);break;}}const _0x1db3ad=g[_0x15a7e7(0x11d)](_0x47863c,_0x10ae7),_0x3a2d4b=this[_0x15a7e7(0x219)][_0x15a7e7(0x2fc)](_0x3e6d85);if(_0x3a2d4b&&_0x1db3ad){const _0x3da641={..._0x3a2d4b,'range':_0x1db3ad};this[_0x15a7e7(0x219)][_0x15a7e7(0x1ef)](_0x3e6d85,_0x3da641),_0x17f0aa(()=>{const _0xe57f20=_0x15a7e7,_0x5a081d=this[_0xe57f20(0x200)]['registerRefRange'](_0x1db3ad,_0x38522d=>(_0x5a081d[_0xe57f20(0x1a8)](),_0x2b5a64(_0x38522d,_0x3e6d85,_0x111990,_0x1db3ad)));_0x3960ca[_0xe57f20(0x274)](_0x5a081d);});}return{'redos':[],'undos':[]};};this[_0x5ec111(0x219)]['forEach']((_0x43517e,_0x1e7da0)=>{const _0x41aa84=_0x5ec111,{range:_0x36a8f2,sheetID:_0x1547ad}=_0x43517e,_0x29fd5a=this[_0x41aa84(0x200)][_0x41aa84(0x195)](_0x36a8f2,_0x4c0f68=>(_0x29fd5a['dispose'](),_0x2b5a64(_0x4c0f68,_0x1e7da0,_0x1547ad,_0x36a8f2)));_0x3960ca[_0x41aa84(0x274)](_0x29fd5a);});};this['disposeWithMe'](a[_0x111acf(0x33f)](this['_cursorInfo$'][_0x111acf(0x124)](()=>{_0x34f67f();})));}[_0x1ff7a2(0x242)](){const _0x3e2d08=_0x1ff7a2;var _0x47e508,_0x4a0d78;if(this[_0x3e2d08(0x186)]=!0x0,((_0x47e508=this['_univerInstanceService']['getFocusedUnit']())==null?void 0x0:_0x47e508[_0x3e2d08(0x121)]())!==this[_0x3e2d08(0x15f)])return;const _0x236fd5=(_0x4a0d78=this['_injector'][_0x3e2d08(0x2fc)](g['SheetsSelectionsService'])['getCurrentSelections']())==null?void 0x0:_0x4a0d78[0x0],_0x211959=this['_univerInstanceService'][_0x3e2d08(0x308)](a['UniverInstanceType']['UNIVER_SHEET'])[_0x3e2d08(0x2df)]();_0x236fd5&&_0x211959&&this[_0x3e2d08(0x265)](_0x211959[_0x3e2d08(0x291)](),_0x236fd5);}['_toggleOffline'](){const _0x5c3b21=_0x1ff7a2;this[_0x5c3b21(0x186)]=!0x1;}};Ie=it([A(0x2,a['Inject'](a['Injector'])),A(0x3,a[_0x1ff7a2(0x1fa)](Ce)),A(0x4,a[_0x1ff7a2(0x1fa)](u[_0x1ff7a2(0x25f)])),A(0x5,a[_0x1ff7a2(0x21f)]),A(0x6,a[_0x1ff7a2(0x2ef)]),A(0x7,a['Inject'](g[_0x1ff7a2(0x1aa)]))],Ie);var ct=Object[_0x1ff7a2(0x167)],lt=(_0x12b474,_0x3ebcc6,_0x1a54f1,_0x3d7097)=>{const _0x581e73=_0x1ff7a2;for(var _0x11c443=_0x3d7097>0x1?void 0x0:_0x3d7097?ct(_0x3ebcc6,_0x1a54f1):_0x3ebcc6,_0x5261e9=_0x12b474[_0x581e73(0x2a5)]-0x1,_0x10e268;_0x5261e9>=0x0;_0x5261e9--)(_0x10e268=_0x12b474[_0x5261e9])&&(_0x11c443=_0x10e268(_0x11c443)||_0x11c443);return _0x11c443;},ie=(_0x3f8211,_0x1bf429)=>(_0x3f6f4c,_0x505f7b)=>_0x1bf429(_0x3f6f4c,_0x505f7b,_0x3f8211);let x=class extends a[_0x1ff7a2(0x2c5)]{constructor(_0x19f300,_0x58a9c0,_0x28e04f){const _0x102133=_0x1ff7a2;super(),h(this,_0x102133(0x19a),new Map()),h(this,_0x102133(0x284),new d[(_0x102133(0x332))]()),(this[_0x102133(0x103)]=_0x19f300,this[_0x102133(0x165)]=_0x58a9c0,this[_0x102133(0x2a6)]=_0x28e04f,this[_0x102133(0xd4)]());}[_0x1ff7a2(0x1a8)](){const _0xad4faf=_0x1ff7a2;super[_0xad4faf(0x1a8)](),this[_0xad4faf(0x284)]['complete'](),this[_0xad4faf(0x19a)][_0xad4faf(0x1ea)](_0xaa65c6=>_0xaa65c6[_0xad4faf(0x1a8)]());}['getCollabCursors$'](_0x5ce031){const _0x1a72ba=_0x1ff7a2;return this[_0x1a72ba(0x19a)][_0x1a72ba(0x21d)](_0x5ce031)?this['_entities']['get'](_0x5ce031)[_0x1a72ba(0x10b)]:this['_entityInit$'][_0x1a72ba(0x2a2)](d[_0x1a72ba(0x2b8)](_0x5b2168=>_0x5b2168[_0x1a72ba(0x15f)]===_0x5ce031),d[_0x1a72ba(0xee)](_0x1f60d8=>_0x1f60d8[_0x1a72ba(0x10b)]));}[_0x1ff7a2(0xd4)](){const _0x7c1ec2=_0x1ff7a2;this[_0x7c1ec2(0x103)][_0x7c1ec2(0x149)](a[_0x7c1ec2(0x15a)]['UNIVER_SHEET'])['pipe'](d[_0x7c1ec2(0xf0)](this[_0x7c1ec2(0xdc)]))[_0x7c1ec2(0x124)](async _0x8c4618=>{const _0x40b6ad=_0x7c1ec2,_0x163e27=_0x8c4618['getUnitId'](),_0x38788a=await this[_0x40b6ad(0x2ea)](_0x163e27);this[_0x40b6ad(0x284)][_0x40b6ad(0x1af)](_0x38788a),this['_entities'][_0x40b6ad(0x1ef)](_0x163e27,_0x38788a);}),this[_0x7c1ec2(0x103)][_0x7c1ec2(0x149)](a[_0x7c1ec2(0x15a)][_0x7c1ec2(0x1bb)])[_0x7c1ec2(0x2a2)](d[_0x7c1ec2(0xf0)](this[_0x7c1ec2(0xdc)]))[_0x7c1ec2(0x2a2)](d['filter'](_0x34ad49=>!_0x34ad49[_0x7c1ec2(0x121)]()['startsWith']('__')))[_0x7c1ec2(0x124)](async _0x20f278=>{const _0x3a6d46=_0x7c1ec2,_0x1d6181=_0x20f278['getUnitId'](),_0x1bc101=await this[_0x3a6d46(0x273)](_0x1d6181);this[_0x3a6d46(0x284)]['next'](_0x1bc101),this[_0x3a6d46(0x19a)]['set'](_0x1d6181,_0x1bc101);}),d[_0x7c1ec2(0x22d)](this[_0x7c1ec2(0x103)][_0x7c1ec2(0x24a)](a['UniverInstanceType'][_0x7c1ec2(0x1bb)]),this[_0x7c1ec2(0x103)][_0x7c1ec2(0x24a)](a['UniverInstanceType'][_0x7c1ec2(0x2e0)]))[_0x7c1ec2(0x2a2)](d[_0x7c1ec2(0xf0)](this[_0x7c1ec2(0xdc)]))[_0x7c1ec2(0x124)](_0x591018=>{const _0x47be6a=_0x7c1ec2,_0x5d9f9d=_0x591018['getUnitId'](),_0x411a7b=this[_0x47be6a(0x19a)]['get'](_0x5d9f9d);_0x411a7b&&(_0x411a7b[_0x47be6a(0x1a8)](),this[_0x47be6a(0x19a)][_0x47be6a(0x28e)](_0x5d9f9d));});}async[_0x1ff7a2(0x2ea)](_0x10a7da){const _0x2b92d2=_0x1ff7a2,_0x153e76=await this[_0x2b92d2(0x2a6)][_0x2b92d2(0x2fe)](_0x10a7da),_0x42bd84=this[_0x2b92d2(0x165)][_0x2b92d2(0x325)](Ie,_0x10a7da,_0x153e76);return _0x42bd84[_0x2b92d2(0x1e7)](),_0x42bd84;}async[_0x1ff7a2(0x273)](_0x653ab6){const _0x10223e=_0x1ff7a2,_0x4f85bc=await this[_0x10223e(0x2a6)][_0x10223e(0x2fe)](_0x653ab6),_0x12ecb0=this[_0x10223e(0x165)]['createInstance'](Se,_0x653ab6,_0x4f85bc);return _0x12ecb0[_0x10223e(0x1e7)](),_0x12ecb0;}};x=lt([ie(0x0,a['IUniverInstanceService']),ie(0x1,a['Inject'](a[_0x1ff7a2(0x111)])),ie(0x2,a[_0x1ff7a2(0x1fa)](u[_0x1ff7a2(0x1e4)]))],x);const K=0x14,De=0xc8,re=0x4,ht=0x5;function _t(_0x5bb1ca,_0x1a0372){const _0x50398e=_0x1ff7a2;let {radius:_0x1ed725,width:_0x3d4e13,height:_0x33e2b2}=_0x1a0372;_0x1ed725=_0x1ed725!=null?_0x1ed725:0x0,_0x3d4e13=_0x3d4e13!=null?_0x3d4e13:0x1e,_0x33e2b2=_0x33e2b2!=null?_0x33e2b2:0x1e;let _0x10606c=0x0,_0x361a17=0x0,_0x37f6ba=0x0;_0x10606c=_0x361a17=_0x37f6ba=Math[_0x50398e(0x174)](_0x1ed725,_0x3d4e13/0x2,_0x33e2b2/0x2),_0x5bb1ca[_0x50398e(0xe5)](),_0x5bb1ca['moveTo'](_0x10606c,0x0),_0x5bb1ca[_0x50398e(0x276)](_0x3d4e13-_0x361a17,0x0),_0x5bb1ca[_0x50398e(0x1e9)](_0x3d4e13-_0x361a17,_0x361a17,_0x361a17,Math['PI']*0x3/0x2,0x0,!0x1),_0x5bb1ca[_0x50398e(0x276)](_0x3d4e13,_0x33e2b2-_0x37f6ba),_0x5bb1ca[_0x50398e(0x1e9)](_0x3d4e13-_0x37f6ba,_0x33e2b2-_0x37f6ba,_0x37f6ba,0x0,Math['PI']/0x2,!0x1),_0x5bb1ca[_0x50398e(0x276)](0x0,_0x33e2b2),_0x5bb1ca['lineTo'](0x0,_0x10606c),_0x5bb1ca['arc'](_0x10606c,_0x10606c,_0x10606c,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x5bb1ca[_0x50398e(0x248)](),_0x1a0372[_0x50398e(0x285)]&&(_0x5bb1ca[_0x50398e(0xd6)](),_0x5bb1ca['fillStyle']=_0x1a0372[_0x50398e(0x285)],_0x1a0372['fillRule']===_0x50398e(0xd5)?_0x5bb1ca[_0x50398e(0x285)](_0x50398e(0xd5)):_0x5bb1ca['fill'](),_0x5bb1ca[_0x50398e(0x196)]());}class te extends p[_0x1ff7a2(0x2fd)]{constructor(_0x5c9f67,_0x3aa85b){const _0x1784a3=_0x1ff7a2;super(_0x5c9f67,_0x3aa85b),h(this,'color'),h(this,'text'),(this[_0x1784a3(0x1d9)]=_0x3aa85b==null?void 0x0:_0x3aa85b[_0x1784a3(0x1d9)],this[_0x1784a3(0x210)]=_0x3aa85b==null?void 0x0:_0x3aa85b[_0x1784a3(0x210)]);}static[_0x1ff7a2(0x244)](_0x42dfc0,_0x350c22){const _0x2af6a0=_0x1ff7a2,{text:_0xaff91a,color:_0x323f23}=_0x350c22;_0x42dfc0[_0x2af6a0(0xd6)](),_0x42dfc0['font']='bold\x2013px\x20Source\x20Han\x20Sans\x20CN';const _0x656324=_0x42dfc0[_0x2af6a0(0x2d9)](_0xaff91a)[_0x2af6a0(0x1f2)],_0x28eb50=Math[_0x2af6a0(0x174)](_0x656324+0x2*re,De);_t(_0x42dfc0,{'height':K,'radius':0x4,'width':_0x28eb50,'fill':_0x323f23}),_0x42dfc0[_0x2af6a0(0x1ee)]=_0x2af6a0(0x21e);const _0x4f7fa8=re,_0x4ed733=K-ht,_0x5a0f85=De-0x2*re;if(_0x656324>_0x5a0f85){let _0x10882b='',_0x51c274=0x0;for(const _0x3e4026 of _0xaff91a){const _0x350162=_0x42dfc0[_0x2af6a0(0x2d9)](_0x3e4026)['width'];if(_0x51c274+_0x350162<=_0x5a0f85-_0x42dfc0[_0x2af6a0(0x2d9)](_0x2af6a0(0x2ca))[_0x2af6a0(0x1f2)])_0x10882b+=_0x3e4026,_0x51c274+=_0x350162;else{_0x10882b+=_0x2af6a0(0x2ca);break;}}_0x42dfc0[_0x2af6a0(0x29e)](_0x10882b,_0x4f7fa8,_0x4ed733);}else _0x42dfc0[_0x2af6a0(0x29e)](_0xaff91a,_0x4f7fa8,_0x4ed733);_0x42dfc0['restore']();}[_0x1ff7a2(0x298)](_0x4de573){const _0x49d2c5=_0x1ff7a2;te[_0x49d2c5(0x244)](_0x4de573,this);}}const oe=_0x1ff7a2(0x101),ut='collab-text-range-',dt=_0x1ff7a2(0x110),B=0x6,ft=1.5,ae=0x4,St=1.5,It='rgba(255,\x20255,\x20255,\x200.01)';class Ue{constructor(_0x5c3bef,_0x2d9959,_0x1605b8,_0x444bd5){const _0x16b416=_0x1ff7a2;h(this,_0x16b416(0x197),[]),h(this,_0x16b416(0x1ae),null),h(this,_0x16b416(0x2fa),null),h(this,_0x16b416(0x30b),null),h(this,_0x16b416(0xd2),null),h(this,_0x16b416(0x1a0),null),(this['_cursor']=_0x5c3bef,this['_scene']=_0x2d9959,this[_0x16b416(0x345)]=_0x1605b8,this[_0x16b416(0x164)]=_0x444bd5,this[_0x16b416(0x31d)]());}set[_0x1ff7a2(0x30c)](_0x1dc441){const _0x3dd576=_0x1ff7a2;_0x1dc441?(this['_anchorDot']&&this['_anchorDot']['hide'](),this[_0x3dd576(0x2fa)]&&this[_0x3dd576(0x2fa)]['show']()):(this[_0x3dd576(0x30b)]&&this[_0x3dd576(0x30b)][_0x3dd576(0x10f)](),this[_0x3dd576(0x2fa)]&&this[_0x3dd576(0x2fa)][_0x3dd576(0x283)]());}[_0x1ff7a2(0x1a8)](){const _0xc5197c=_0x1ff7a2;for(const _0x12d83f of this[_0xc5197c(0x197)])_0x12d83f[_0xc5197c(0x1a8)]();this[_0xc5197c(0x2fa)]&&this[_0xc5197c(0x2fa)][_0xc5197c(0x1a8)](),this[_0xc5197c(0x30b)]&&this[_0xc5197c(0x30b)][_0xc5197c(0x1a8)](),this[_0xc5197c(0x1ae)]&&this[_0xc5197c(0x1ae)][_0xc5197c(0x1a8)](),this[_0xc5197c(0x1a0)]&&this[_0xc5197c(0x1a0)]();}[_0x1ff7a2(0x31d)](){const _0x1f356a=_0x1ff7a2;var _0x51b03d;const {_docSkeleton:_0x400e6e,_document:_0x23df8a}=this,{color:_0x54c553,name:_0x2fb572,ranges:_0x21cd34}=this[_0x1f356a(0x2b0)],_0x5340ae=_0x23df8a[_0x1f356a(0x279)](),{docsLeft:_0x4ad913,docsTop:_0x47cce0}=_0x5340ae,_0x11564f=new b[(_0x1f356a(0x251))](_0x5340ae,_0x400e6e);for(const {startOffset:_0x571792,endOffset:_0x58d467,rangeType:_0x2dd63a,segmentId:_0x5b41cd,segmentPage:_0x37dea3,collapsed:_0x5a4a70,isActive:_0x3e7eee}of _0x21cd34){const _0x5c44ee=_0x400e6e[_0x1f356a(0xeb)](_0x571792,!0x0,_0x5b41cd,_0x37dea3);let _0x4d5a9e=_0x400e6e['findNodePositionByCharIndex'](_0x58d467,!0x0,_0x5b41cd,_0x37dea3);if(_0x4d5a9e==null&&(_0x4d5a9e=_0x400e6e[_0x1f356a(0xeb)](_0x58d467-0x1,!0x1,_0x5b41cd,_0x37dea3)),_0x3e7eee){const {contentBoxPointGroup:_0x353026}=_0x11564f['getRangePointData'](_0x4d5a9e,_0x4d5a9e);if(_0x353026[_0x1f356a(0x2a5)]===0x0)continue;this['_drawAnchor'](_0x54c553,_0x353026,_0x4ad913,_0x47cce0,_0x2fb572),this['_eventUnsubscribe']=this[_0x1f356a(0x27d)]();}if(_0x5c44ee&&_0x4d5a9e){if(_0x2dd63a===a[_0x1f356a(0x326)][_0x1f356a(0x2af)]){const _0x2e2b0c=new b[(_0x1f356a(0x1fc))](_0x5340ae,_0x400e6e),{pointGroup:_0x1a378c}=(_0x51b03d=_0x2e2b0c['getRangePointData'](_0x5c44ee,_0x4d5a9e))!=null?_0x51b03d:{};if(_0x1a378c==null||_0x1a378c[_0x1f356a(0x2a5)]===0x0)continue;this[_0x1f356a(0x1ce)](_0x54c553,_0x1a378c,_0x4ad913,_0x47cce0);}else{if(!_0x5a4a70){const {borderBoxPointGroup:_0x248bef}=_0x11564f[_0x1f356a(0x16a)](_0x5c44ee,_0x4d5a9e);if(_0x248bef[_0x1f356a(0x2a5)]===0x0)continue;this[_0x1f356a(0x17a)](_0x54c553,_0x248bef,_0x4ad913,_0x47cce0);}}}}}[_0x1ff7a2(0x169)](_0x544514,_0xc70b3e,_0x58f207,_0x5b5268,_0x53d1ed){const _0x4d7303=_0x1ff7a2,_0x182926=this[_0x4d7303(0x17e)](_0xc70b3e),{left:_0x22b7c9,top:_0x303ef2,height:_0x15f8be}=_0x182926,_0x1f1e0c=this[_0x4d7303(0x19f)](),_0x5bd383=St/_0x1f1e0c,_0x2f3f0f=new p[(_0x4d7303(0x314))](oe+a['Tools']['generateRandomId'](B),{'left':_0x22b7c9+_0x58f207-_0x5bd383,'top':_0x303ef2+_0x5b5268,'height':_0x15f8be,'width':ft,'fill':_0x544514||p[_0x4d7303(0x22b)](a[_0x4d7303(0x343)][_0x4d7303(0x1ca)],0x0),'strokeWidth':_0x5bd383,'stroke':It,'evented':!0x0});this[_0x4d7303(0x1ae)]=_0x2f3f0f,this[_0x4d7303(0x156)][_0x4d7303(0x14c)](_0x2f3f0f,b[_0x4d7303(0x32e)]);const _0x5dc15c=new p[(_0x4d7303(0x314))](oe+a['Tools'][_0x4d7303(0x1f1)](B),{'left':_0x22b7c9+_0x58f207-_0x5bd383,'top':_0x303ef2+_0x5b5268-ae/0x2,'height':ae,'width':ae,'fill':_0x544514||p[_0x4d7303(0x22b)](a[_0x4d7303(0x343)][_0x4d7303(0x1ca)],0x0),'strokeWidth':0x0,'stroke':_0x544514||p[_0x4d7303(0x22b)](a[_0x4d7303(0x343)]['black'],0x0),'evented':!0x1});this['_anchorDot']=_0x5dc15c,this[_0x4d7303(0x156)][_0x4d7303(0x14c)](_0x5dc15c,b[_0x4d7303(0x32e)]);const _0x19c48b=new te(oe+a[_0x4d7303(0x33d)][_0x4d7303(0x1f1)](B),{'left':_0x22b7c9+_0x58f207-_0x5bd383,'top':_0x303ef2+_0x5b5268-K,'text':_0x53d1ed,'color':_0x544514});this[_0x4d7303(0x2fa)]=_0x19c48b,this[_0x4d7303(0x156)][_0x4d7303(0x14c)](_0x19c48b,b[_0x4d7303(0x32e)]),this[_0x4d7303(0x30c)]=!0x1;}[_0x1ff7a2(0x27d)](){const _0xc1bf5c=_0x1ff7a2,_0x1c1147=this['_anchor'][_0xc1bf5c(0x27a)][_0xc1bf5c(0x2b4)](()=>{const _0xa93c63=_0xc1bf5c;this[_0xa93c63(0x30c)]=!0x0;}),_0x3bb189=this[_0xc1bf5c(0x1ae)]['onPointerLeave$']['subscribeEvent'](()=>{const _0x326cde=_0xc1bf5c;this['_hideTimer']&&clearTimeout(this['_hideTimer']),this[_0x326cde(0xd2)]=setTimeout(()=>{const _0x4f5b2b=_0x326cde;this[_0x4f5b2b(0x30c)]=!0x1;},0x7d0);});return()=>{const _0x2d9158=_0xc1bf5c;_0x1c1147['unsubscribe'](),_0x3bb189[_0x2d9158(0x14b)]();};}[_0x1ff7a2(0x17a)](_0x284e50,_0x7ae0ff,_0x315d22,_0x3b7dd8){const _0x3b05d4=_0x1ff7a2,_0xddb65d=new a[(_0x3b05d4(0x29b))](_0x284e50)['setAlpha'](0.2)['toRgbString'](),_0x8a3567=new p[(_0x3b05d4(0x2c4))](ut+a['Tools'][_0x3b05d4(0x1f1)](B),{'pointsGroup':_0x7ae0ff,'fill':_0xddb65d||p['getColor'](a[_0x3b05d4(0x343)][_0x3b05d4(0x1ca)],0.2),'left':_0x315d22,'top':_0x3b7dd8,'evented':!0x1,'debounceParentDirty':!0x1});this['_shapes']['push'](_0x8a3567),this[_0x3b05d4(0x156)]['addObject'](_0x8a3567,b[_0x3b05d4(0x32e)]);}['_drawRectRange'](_0xd5e912,_0x35e93f,_0x18b88c,_0x201bd2){const _0x580bb3=_0x1ff7a2,_0x2ce285=new a[(_0x580bb3(0x29b))](_0xd5e912)[_0x580bb3(0x1ad)](0.2)['toRgbString'](),_0x58d763=new p[(_0x580bb3(0x2c4))](dt+a['Tools'][_0x580bb3(0x1f1)](B),{'pointsGroup':_0x35e93f,'fill':_0x2ce285||p[_0x580bb3(0x22b)](a['COLORS'][_0x580bb3(0x1ca)],0.2),'left':_0x18b88c,'top':_0x201bd2,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x580bb3(0x197)]['push'](_0x58d763),this[_0x580bb3(0x156)][_0x580bb3(0x14c)](_0x58d763,b[_0x580bb3(0x32e)]);}['_getAnchorBounding'](_0x962b43){const _0x599c1a=_0x962b43[0x0],_0xe4eb2f=_0x599c1a[0x0],_0xa4cf41=_0x599c1a[0x2],{x:_0x2e1064,y:_0x273ec7}=_0xe4eb2f,{x:_0x5dbd3e,y:_0x45599d}=_0xa4cf41;return{'left':_0x2e1064,'top':_0x273ec7,'width':_0x5dbd3e-_0x2e1064,'height':_0x45599d-_0x273ec7};}[_0x1ff7a2(0x19f)](){const _0x1a8cfa=_0x1ff7a2,{scaleX:_0xe91a3b,scaleY:_0x30ab17}=this[_0x1a8cfa(0x156)][_0x1a8cfa(0x1c8)]();return Math['max'](_0xe91a3b,_0x30ab17);}}var vt=Object[_0x1ff7a2(0x167)],gt=(_0xb3564,_0x1bcaf4,_0x380c74,_0x48d2a8)=>{const _0x3a42ff=_0x1ff7a2;for(var _0x5f221a=_0x48d2a8>0x1?void 0x0:_0x48d2a8?vt(_0x1bcaf4,_0x380c74):_0x1bcaf4,_0x4b27ef=_0xb3564[_0x3a42ff(0x2a5)]-0x1,_0x19c30a;_0x4b27ef>=0x0;_0x4b27ef--)(_0x19c30a=_0xb3564[_0x4b27ef])&&(_0x5f221a=_0x19c30a(_0x5f221a)||_0x5f221a);return _0x5f221a;},V=(_0x2da321,_0x2f27e4)=>(_0x2ff275,_0xf056b7)=>_0x2f27e4(_0x2ff275,_0xf056b7,_0x2da321);let ve=class extends a[_0x1ff7a2(0x2c5)]{constructor(_0x333baa,_0x586790,_0x2b4bf5,_0xe0263a,_0xec8e1a){const _0x2bbafa=_0x1ff7a2;super(),h(this,_0x2bbafa(0x28a),[]),h(this,_0x2bbafa(0xfb),[]),(this[_0x2bbafa(0x2bf)]=_0x333baa,this['_docSkeletonManagerService']=_0x586790,this[_0x2bbafa(0x25c)]=_0x2b4bf5,this[_0x2bbafa(0x2f5)]=_0xe0263a,this[_0x2bbafa(0x1bc)]=_0xec8e1a,this[_0x2bbafa(0xd4)]());}[_0x1ff7a2(0xd4)](){const _0x29b0b8=_0x1ff7a2,_0x23d155=this[_0x29b0b8(0x2bf)][_0x29b0b8(0x1a6)],_0x1e3305=this[_0x29b0b8(0x201)];this[_0x29b0b8(0x2ce)](d[_0x29b0b8(0x2d0)]([this[_0x29b0b8(0x25c)][_0x29b0b8(0x1c2)](_0x23d155),this['_themeService']['currentTheme$']])[_0x29b0b8(0x2a2)]($[_0x29b0b8(0x223)](([_0x4076f2,_0x4ca175])=>({'skeleton':_0x1e3305['getSkeleton'](),'cursors':[..._0x4076f2[_0x29b0b8(0x2ae)]()][_0x29b0b8(0x134)](_0x2a9789=>({..._0x2a9789,'color':_0x4ca175[_0x2a9789[_0x29b0b8(0x1d9)]]}))})))[_0x29b0b8(0x124)](_0x1e0239=>{if(this['_removeCollabCursors'](),_0x1e0239){const {skeleton:_0x5d49a5,cursors:_0x22804d}=_0x1e0239;this['_updateCollabCursors'](_0x5d49a5,_0x22804d);}})),this[_0x29b0b8(0x1dc)](),this['_initCommandExecutedListener']();}[_0x1ff7a2(0x1b7)](_0x1b9fcc,_0x257576){const _0x1b6ff3=_0x1ff7a2,{scene:_0x11fcb1,mainComponent:_0x2c111a}=this[_0x1b6ff3(0x2bf)],_0x1350ec=_0x257576[_0x1b6ff3(0x223)](_0x188257=>new Ue(_0x188257,_0x11fcb1,_0x1b9fcc,_0x2c111a));this['_cursorShapes']=_0x1350ec,this[_0x1b6ff3(0xfb)]=_0x257576;}[_0x1ff7a2(0x214)](){const _0xde4a19=_0x1ff7a2;this[_0xde4a19(0x13a)]();const {scene:_0x1e8a3f,mainComponent:_0x18d8b9}=this[_0xde4a19(0x2bf)],_0x3a738b=this[_0xde4a19(0x201)][_0xde4a19(0x347)](),_0x8bcb5a=this[_0xde4a19(0xfb)][_0xde4a19(0x223)](_0x4c1713=>new Ue(_0x4c1713,_0x1e8a3f,_0x3a738b,_0x18d8b9));this[_0xde4a19(0x28a)]=_0x8bcb5a;}[_0x1ff7a2(0x13a)](){const _0x44d1b1=_0x1ff7a2;this[_0x44d1b1(0x28a)]['forEach'](_0x8f3025=>_0x8f3025[_0x44d1b1(0x1a8)]()),this[_0x44d1b1(0x28a)]=[];}[_0x1ff7a2(0xe9)](){const _0x5283a7=_0x1ff7a2,_0x1d8658=[b[_0x5283a7(0xe8)]['id']];this[_0x5283a7(0x2ce)](this['_commandService'][_0x5283a7(0x118)](_0x167f9e=>{const _0x4b8f51=_0x5283a7;_0x1d8658[_0x4b8f51(0x304)](_0x167f9e['id'])&&_0x167f9e[_0x4b8f51(0x236)][_0x4b8f51(0x1a6)]===this['_context']['unitId']&&this['_refreshCollabCursors']();}));}[_0x1ff7a2(0x1dc)](){const _0x15e08c=_0x1ff7a2;this['disposeWithMe'](a[_0x15e08c(0x1fe)](this[_0x15e08c(0x2bf)][_0x15e08c(0x1d0)][_0x15e08c(0x2c8)])[_0x15e08c(0x2a2)]($['filter'](_0x577b54=>_0x577b54[_0x15e08c(0x2dd)]===p[_0x15e08c(0x270)][_0x15e08c(0x1cd)]),$['throttleTime'](0x10))['subscribe'](()=>{this['_refreshCollabCursors']();}));}};ve=gt([V(0x1,a[_0x1ff7a2(0x1fa)](Y[_0x1ff7a2(0x11c)])),V(0x2,a[_0x1ff7a2(0x1fa)](x)),V(0x3,a[_0x1ff7a2(0x2ef)]),V(0x4,a[_0x1ff7a2(0x1fa)](a[_0x1ff7a2(0x30e)]))],ve);const mt=0x1,Ct=1.5;class Ae extends p[_0x1ff7a2(0x2fd)]{constructor(_0x50c85a,_0x22d056){const _0x5666e1=_0x1ff7a2;super(_0x50c85a,_0x22d056),h(this,_0x5666e1(0xde)),h(this,_0x5666e1(0x328),!0x1),h(this,_0x5666e1(0x154)),h(this,_0x5666e1(0x34a),''),h(this,_0x5666e1(0x30d),_0x5666e1(0x2e8)),h(this,'_backgroundColor'),(_0x22d056&&this['setShapeProps'](_0x22d056),this[_0x5666e1(0x27a)][_0x5666e1(0x2b4)](()=>this[_0x5666e1(0x12e)]({'hovered':!0x0})),this['onPointerLeave$'][_0x5666e1(0x2b4)](()=>this['setShapeProps']({'hovered':!0x1})));}[_0x1ff7a2(0x12e)](_0xd5182d){const _0x8541a=_0x1ff7a2;var _0x1d9f10,_0x1e8ec5,_0x1f3054,_0x3bf40c,_0x28fba6,_0x147a8d;this[_0x8541a(0xde)]=(_0x1d9f10=_0xd5182d[_0x8541a(0x1d9)])!=null?_0x1d9f10:this[_0x8541a(0xde)],this[_0x8541a(0x328)]=(_0x1e8ec5=_0xd5182d[_0x8541a(0x13d)])!=null?_0x1e8ec5:this[_0x8541a(0x328)],this[_0x8541a(0x154)]=(_0x1f3054=_0xd5182d[_0x8541a(0x247)])!=null?_0x1f3054:this[_0x8541a(0x154)],this['_name']=(_0x3bf40c=_0xd5182d[_0x8541a(0x230)])!=null?_0x3bf40c:this[_0x8541a(0x34a)],this[_0x8541a(0x30d)]=(_0x28fba6=_0xd5182d[_0x8541a(0x185)])!=null?_0x28fba6:this[_0x8541a(0x30d)],this[_0x8541a(0x2d8)]=(_0x147a8d=_0xd5182d['backgroundColor'])!=null?_0x147a8d:this['_backgroundColor'],this['transformByState']({'width':_0xd5182d[_0x8541a(0x1f2)],'height':_0xd5182d[_0x8541a(0x1b3)]});}['onMouseMove'](_0x574f2d){const _0x4bc8e5=_0x1ff7a2,{row:_0xad232a,column:_0x3cb4a2}=_0x574f2d;if(_0xad232a>=this[_0x4bc8e5(0x154)][_0x4bc8e5(0xfd)]&&_0xad232a<=this['_range'][_0x4bc8e5(0x1e5)]&&_0x3cb4a2>=this[_0x4bc8e5(0x154)][_0x4bc8e5(0x1a5)]&&_0x3cb4a2<=this[_0x4bc8e5(0x154)]['endColumn']){this[_0x4bc8e5(0x12e)]({'hovered':!0x0});return;}this[_0x4bc8e5(0x12e)]({'hovered':!0x1});}[_0x1ff7a2(0x152)](_0x1e27cf){return!0x1;}[_0x1ff7a2(0x298)](_0x459719){const _0x5db75d=_0x1ff7a2;p[_0x5db75d(0x314)][_0x5db75d(0x244)](_0x459719,{'width':this['width'],'height':this[_0x5db75d(0x1b3)],'strokeWidth':Ct,'stroke':this[_0x5db75d(0xde)],'evented':!0x1,'fill':this[_0x5db75d(0x2d8)]}),this[_0x5db75d(0x328)]&&(_0x459719[_0x5db75d(0xd6)](),_0x459719[_0x5db75d(0x301)](0x1,0x0,0x0,0x1,this[_0x5db75d(0x1f2)],this['_labelPosition']===_0x5db75d(0x2c1)?0x0:-0x14),te['drawWith'](_0x459719,{'text':this[_0x5db75d(0x34a)],'color':this[_0x5db75d(0xde)]}),_0x459719[_0x5db75d(0x196)]());}}var pt=Object[_0x1ff7a2(0x167)],bt=(_0x368ac4,_0x3b2407,_0x3b2c8a,_0x2991f3)=>{const _0xdd4b22=_0x1ff7a2;for(var _0x54c93b=_0x2991f3>0x1?void 0x0:_0x2991f3?pt(_0x3b2407,_0x3b2c8a):_0x3b2407,_0x5c1223=_0x368ac4[_0xdd4b22(0x2a5)]-0x1,_0x82d270;_0x5c1223>=0x0;_0x5c1223--)(_0x82d270=_0x368ac4[_0x5c1223])&&(_0x54c93b=_0x82d270(_0x54c93b)||_0x54c93b);return _0x54c93b;},ce=(_0x4ca741,_0x36b551)=>(_0x2bb841,_0x374ae3)=>_0x36b551(_0x2bb841,_0x374ae3,_0x4ca741);const Et=0x1389;let ge=class extends a['RxDisposable']{constructor(_0x387d64,_0x3d39e3,_0x3b6ce4,_0x152722){const _0x3d1ab8=_0x1ff7a2;super(),h(this,_0x3d1ab8(0xfb),new Set()),h(this,_0x3d1ab8(0x261),null),(this[_0x3d1ab8(0x2bf)]=_0x387d64,this['_sheetSkeletonManagerService']=_0x3d39e3,this['_collabCursorController']=_0x3b6ce4,this['_themeService']=_0x152722,this['_init']());}[_0x1ff7a2(0xd4)](){const _0x3fbb92=_0x1ff7a2;this[_0x3fbb92(0x24b)][_0x3fbb92(0x23a)]['pipe']($['takeUntil'](this[_0x3fbb92(0xdc)]),$[_0x3fbb92(0xee)](_0x48dc16=>{const _0x31f606=_0x3fbb92;if(_0x48dc16){const _0x2b73bc=_0x48dc16['sheetId'];return d[_0x31f606(0x2d0)](this['_collabCursorController'][_0x31f606(0x1c2)](this['_context'][_0x31f606(0x1a6)]),this[_0x31f606(0x1bc)][_0x31f606(0x305)])[_0x31f606(0x2a2)]($['map'](([_0x4e9f35,_0x29e491])=>{const _0x275f78=_0x31f606,_0x217269=new Map();return _0x4e9f35[_0x275f78(0x1ea)]((_0x51dbc6,_0x5f46ec)=>{const _0x21d8a6=_0x275f78;if(_0x51dbc6[_0x21d8a6(0x356)]===_0x2b73bc){const _0x2cfb98={..._0x51dbc6};_0x2cfb98[_0x21d8a6(0x1d9)]=_0x29e491[_0x51dbc6[_0x21d8a6(0x1d9)]],_0x217269[_0x21d8a6(0x1ef)](_0x5f46ec,_0x2cfb98);}}),{'skeleton':_0x48dc16,'cursors':_0x217269};}));}return d['of']({'skeleton':null,'cursors':new Map()});}))[_0x3fbb92(0x124)](({skeleton:_0x5871e1,cursors:_0x2f6185})=>{const _0x1f48a9=_0x3fbb92;this[_0x1f48a9(0x13a)](),_0x5871e1&&this['_updateCollabCursors'](_0x5871e1,_0x2f6185);}),this[_0x3fbb92(0x24b)]['currentSkeleton$'][_0x3fbb92(0x124)](_0x39a726=>{const _0x3f658c=_0x3fbb92;if(_0x39a726==null)return;const {skeleton:_0x4c0c2d}=_0x39a726,{scene:_0x45078b}=this[_0x3f658c(0x2bf)];_0x45078b['onPointerMove$'][_0x3f658c(0x2b4)](a[_0x3f658c(0x14f)](_0x49781a=>{const _0x123d95=_0x3f658c;var _0x38034f,_0x315d16;const {offsetX:_0x3e7f31,offsetY:_0x4637d2}=_0x49781a,{x:_0x47ddfe,y:_0x3dd61c}=_0x45078b[_0x123d95(0x340)](p[_0x123d95(0x136)][_0x123d95(0x324)]([_0x3e7f31,_0x4637d2])),{scaleX:_0x30a9c5,scaleY:_0x4ad366}=_0x45078b[_0x123d95(0x1c8)](),_0x4d7542=_0x45078b[_0x123d95(0x175)](p[_0x123d95(0x297)]['VIEW_MAIN']),_0x501338=_0x45078b[_0x123d95(0x20c)](p[_0x123d95(0x136)][_0x123d95(0x324)]([_0x47ddfe,_0x3dd61c]),_0x4d7542),_0x5ddd82=_0x4c0c2d[_0x123d95(0x26d)](_0x3e7f31,_0x4637d2,_0x30a9c5,_0x4ad366,_0x501338);((_0x38034f=this[_0x123d95(0x261)])==null?void 0x0:_0x38034f['column'])===_0x5ddd82[_0x123d95(0x27e)]&&((_0x315d16=this[_0x123d95(0x261)])==null?void 0x0:_0x315d16[_0x123d95(0x300)])===_0x5ddd82[_0x123d95(0x300)]||this[_0x123d95(0xfb)]['forEach'](_0x236ce3=>{const _0x29456f=_0x123d95;_0x236ce3[_0x29456f(0x14d)](_0x5ddd82);});},0x64));});}['_updateCollabCursors'](_0x85ecad,_0x598989){const _0x58530f=_0x1ff7a2;var _0x8b3f76;const _0x1b23ce=(_0x8b3f76=this[_0x58530f(0x24b)][_0x58530f(0x2a4)]())==null?void 0x0:_0x8b3f76[_0x58530f(0x208)];if(!_0x1b23ce)return;const _0x463754=this['_getSheetObject']();if(!_0x463754)return;this['_cursors']['forEach'](_0x277f32=>{const _0x941816=_0x58530f;_0x277f32[_0x941816(0x243)]();});const {scene:_0x44b673}=_0x463754,_0x3a8ee5=Tt(Array[_0x58530f(0x192)](_0x598989[_0x58530f(0x2ae)]()))[_0x58530f(0x223)](_0x2c420e=>{const _0x53210f=_0x58530f,{color:_0x4afaf2,range:_0x3a5519,name:_0x1a9556,selection:_0x493cb0,sheetID:_0x30d33b}=_0x2c420e,{startColumn:_0x52adb7,startRow:_0x38c2aa,endColumn:_0x165b56,endRow:_0x345e14}=_0x3a5519,_0xabb2c1=G[_0x53210f(0x292)](_0x38c2aa,_0x52adb7,_0x44b673,_0x1b23ce),_0x190278=G[_0x53210f(0x292)](_0x345e14,_0x165b56,_0x44b673,_0x1b23ce),{columnHeaderHeightAndMarginTop:_0x56d2cb}=_0x1b23ce,{startX:_0x5a3e58,startY:_0x25df57}=_0xabb2c1,{endX:_0x21a2b0,endY:_0x12367c}=_0x190278,_0xba406c=_0x21a2b0-_0x5a3e58,_0x52d947=_0x12367c-_0x25df57,_0x100f78={'labelPosition':_0x25df57-_0x56d2cb>=K?_0x53210f(0x2e8):_0x53210f(0x2c1),'sheetID':_0x30d33b,'range':_0x3a5519,'color':_0x4afaf2,'name':_0x1a9556,'selection':_0x493cb0,'left':_0x5a3e58,'top':_0x25df57,'width':_0xba406c,'height':_0x52d947,'evented':!0x1,'zIndex':Et};return new Ae(_0x1a9556,_0x100f78);});_0x44b673['addObjects'](_0x3a8ee5,mt),this['_cursors']=new Set(_0x3a8ee5);}[_0x1ff7a2(0x13a)](){const _0x44bb2b=_0x1ff7a2;var _0x4ed07f;(_0x4ed07f=this[_0x44bb2b(0xfb)])==null||_0x4ed07f[_0x44bb2b(0x1ea)](_0x5864bc=>_0x5864bc[_0x44bb2b(0x1a8)]());}[_0x1ff7a2(0x1d8)](){const _0x13aca5=_0x1ff7a2;return G['getSheetObject'](this[_0x13aca5(0x2bf)][_0x13aca5(0x330)],this['_context']);}};ge=bt([ce(0x1,a[_0x1ff7a2(0x1fa)](G['SheetSkeletonManagerService'])),ce(0x2,a['Inject'](x)),ce(0x3,a[_0x1ff7a2(0x1fa)](a['ThemeService']))],ge);function Tt(_0x583f92){const _0x57ea0b=_0x1ff7a2,_0xa9c9b7=new Map();return _0x583f92[_0x57ea0b(0x1ea)](_0x4f09f4=>{const _0x5c6c93=_0x57ea0b;if(_0xa9c9b7[_0x5c6c93(0x21d)](_0x4f09f4[_0x5c6c93(0x2ba)])){const _0x4494d=_0xa9c9b7[_0x5c6c93(0x2fc)](_0x4f09f4[_0x5c6c93(0x2ba)]);_0x4494d[_0x5c6c93(0x230)]+=',\x20'+_0x4f09f4[_0x5c6c93(0x230)];}else _0xa9c9b7[_0x5c6c93(0x1ef)](_0x4f09f4[_0x5c6c93(0x2ba)],_0x4f09f4);}),Array[_0x57ea0b(0x192)](_0xa9c9b7[_0x57ea0b(0x2ae)]());}var E=function(){const _0x15da14=_0x1ff7a2;return E=Object['assign']||function(_0x43142f){const _0x261e68=_0x5501;for(var _0xed0bc7,_0x336c59=0x1,_0x1def63=arguments[_0x261e68(0x2a5)];_0x336c59<_0x1def63;_0x336c59++){_0xed0bc7=arguments[_0x336c59];for(var _0x4c7631 in _0xed0bc7)Object['prototype']['hasOwnProperty'][_0x261e68(0x309)](_0xed0bc7,_0x4c7631)&&(_0x43142f[_0x4c7631]=_0xed0bc7[_0x4c7631]);}return _0x43142f;},E[_0x15da14(0x207)](this,arguments);},Rt=function(_0x2fb48a,_0x4e087c){const _0x5aab3c=_0x1ff7a2;var _0x16be54={};for(var _0xee8cb in _0x2fb48a)Object[_0x5aab3c(0x204)]['hasOwnProperty'][_0x5aab3c(0x309)](_0x2fb48a,_0xee8cb)&&_0x4e087c[_0x5aab3c(0x1d1)](_0xee8cb)<0x0&&(_0x16be54[_0xee8cb]=_0x2fb48a[_0xee8cb]);if(_0x2fb48a!=null&&typeof Object[_0x5aab3c(0x339)]==_0x5aab3c(0x10e)){for(var _0x2c2980=0x0,_0xee8cb=Object[_0x5aab3c(0x339)](_0x2fb48a);_0x2c2980<_0xee8cb[_0x5aab3c(0x2a5)];_0x2c2980++)_0x4e087c[_0x5aab3c(0x1d1)](_0xee8cb[_0x2c2980])<0x0&&Object[_0x5aab3c(0x204)][_0x5aab3c(0xea)][_0x5aab3c(0x309)](_0x2fb48a,_0xee8cb[_0x2c2980])&&(_0x16be54[_0xee8cb[_0x2c2980]]=_0x2fb48a[_0xee8cb[_0x2c2980]]);}return _0x16be54;},be=M['forwardRef'](function(_0x1b0adf,_0x51e989){const _0x128310=_0x1ff7a2;var _0x14b229=_0x1b0adf[_0x128310(0x262)],_0x1d0240=_0x1b0adf['id'],_0xd336d4=_0x1b0adf[_0x128310(0xe2)],_0x8ed810=_0x1b0adf[_0x128310(0x286)],_0x5e1387=Rt(_0x1b0adf,[_0x128310(0x262),'id',_0x128310(0xe2),'extend']),_0x1e403a=_0x128310(0x1b1)['concat'](_0x1d0240,'\x20')[_0x128310(0x222)](_0xd336d4||'')[_0x128310(0x2cf)](),_0x5f96a6=M[_0x128310(0x316)]('_'[_0x128310(0x222)](Ut()));return ye(_0x14b229,''[_0x128310(0x222)](_0x1d0240),{'defIds':_0x14b229[_0x128310(0x1d7)],'idSuffix':_0x5f96a6[_0x128310(0x351)]},E({'ref':_0x51e989,'className':_0x1e403a},_0x5e1387),_0x8ed810);});function ye(_0x5cf4b5,_0x30fea2,_0x51107c,_0x2f173e,_0x39e066){const _0x91adb8=_0x1ff7a2;return M[_0x91adb8(0x16c)](_0x5cf4b5[_0x91adb8(0x1b8)],E(E({'key':_0x30fea2},Ot(_0x5cf4b5,_0x51107c,_0x39e066)),_0x2f173e),(Dt(_0x5cf4b5,_0x51107c)[_0x91adb8(0x15e)]||[])[_0x91adb8(0x223)](function(_0x1fbf2b,_0x2cccd8){const _0x114f6c=_0x91adb8;return ye(_0x1fbf2b,''[_0x114f6c(0x222)](_0x30fea2,'-')[_0x114f6c(0x222)](_0x5cf4b5[_0x114f6c(0x1b8)],'-')[_0x114f6c(0x222)](_0x2cccd8),_0x51107c,void 0x0,_0x39e066);}));}function Ot(_0x2b15da,_0xcecfe5,_0xdc54be){const _0x2cccac=_0x1ff7a2;var _0x2259c5=E({},_0x2b15da[_0x2cccac(0x32d)]);_0xdc54be!=null&&_0xdc54be[_0x2cccac(0x2a9)]&&_0x2259c5[_0x2cccac(0x285)]===_0x2cccac(0x2a9)&&(_0x2259c5['fill']=_0xdc54be[_0x2cccac(0x2a9)]),_0x2b15da[_0x2cccac(0x1b8)]===_0x2cccac(0x2b3)&&_0x2259c5['id']&&(_0x2259c5['id']=_0x2259c5['id']+_0xcecfe5[_0x2cccac(0x10c)]),Object[_0x2cccac(0x1b4)](_0x2259c5)[_0x2cccac(0x1ea)](function(_0x3b8178){const _0x4fcb54=_0x2cccac;var _0x268a45=_0x3b8178[0x0],_0xd807fc=_0x3b8178[0x1];_0x268a45===_0x4fcb54(0x2b3)&&typeof _0xd807fc==_0x4fcb54(0x184)&&(_0x2259c5[_0x268a45]=_0xd807fc[_0x4fcb54(0x29c)](/url\(#(.*)\)/,_0x4fcb54(0x32f)['concat'](_0xcecfe5[_0x4fcb54(0x10c)],')')));});var _0x9f8614=_0xcecfe5[_0x2cccac(0x1d7)];return!_0x9f8614||_0x9f8614[_0x2cccac(0x2a5)]===0x0||(_0x2b15da['tag']===_0x2cccac(0x333)&&_0x2259c5[_0x2cccac(0x176)]&&(_0x2259c5[_0x2cccac(0x176)]=_0x2259c5[_0x2cccac(0x176)]+_0xcecfe5[_0x2cccac(0x10c)]),Object[_0x2cccac(0x1b4)](_0x2259c5)[_0x2cccac(0x1ea)](function(_0x44ec14){const _0x6da337=_0x2cccac;var _0x16259e=_0x44ec14[0x0],_0x15269d=_0x44ec14[0x1];typeof _0x15269d==_0x6da337(0x184)&&(_0x2259c5[_0x16259e]=_0x15269d[_0x6da337(0x29c)](/url\(#(.*)\)/,'url(#$1'[_0x6da337(0x222)](_0xcecfe5[_0x6da337(0x10c)],')')));})),_0x2259c5;}function Dt(_0x35980e,_0x584044){const _0x267319=_0x1ff7a2;var _0x22ee6b,_0x50fa9b=_0x584044[_0x267319(0x1d7)];return!_0x50fa9b||_0x50fa9b[_0x267319(0x2a5)]===0x0?_0x35980e:_0x35980e[_0x267319(0x1b8)]===_0x267319(0x2f7)&&(!((_0x22ee6b=_0x35980e[_0x267319(0x15e)])===null||_0x22ee6b===void 0x0)&&_0x22ee6b[_0x267319(0x2a5)])?E(E({},_0x35980e),{'children':_0x35980e[_0x267319(0x15e)][_0x267319(0x223)](function(_0x1da1ba){const _0x1dd8ac=_0x267319;return typeof _0x1da1ba['attrs']['id']=='string'&&_0x50fa9b&&_0x50fa9b['indexOf'](_0x1da1ba[_0x1dd8ac(0x32d)]['id'])>-0x1?E(E({},_0x1da1ba),{'attrs':E(E({},_0x1da1ba[_0x1dd8ac(0x32d)]),{'id':_0x1da1ba['attrs']['id']+_0x584044[_0x1dd8ac(0x10c)]})}):_0x1da1ba;})}):_0x35980e;}function Ut(){const _0x2cfcdc=_0x1ff7a2;return Math[_0x2cfcdc(0x296)]()[_0x2cfcdc(0x32b)](0x24)[_0x2cfcdc(0x106)](0x2,0x8);}be['displayName']=_0x1ff7a2(0x141);var Nt={'tag':_0x1ff7a2(0x31b),'attrs':{'fill':'none','viewBox':_0x1ff7a2(0x24c),'width':_0x1ff7a2(0xdf),'height':_0x1ff7a2(0xdf)},'children':[{'tag':'g','attrs':{'clipPath':'url(#off-line-single_clip0_910_343)'},'children':[{'tag':_0x1ff7a2(0x159),'attrs':{'stroke':_0x1ff7a2(0x20f),'d':_0x1ff7a2(0x2aa),'strokeLinecap':_0x1ff7a2(0x180),'strokeLinejoin':'round','strokeWidth':1.2}}]},{'tag':_0x1ff7a2(0x2f7),'attrs':{},'children':[{'tag':_0x1ff7a2(0x1ba),'attrs':{'id':_0x1ff7a2(0x27f)},'children':[{'tag':_0x1ff7a2(0x159),'attrs':{'fill':_0x1ff7a2(0x2bd),'d':_0x1ff7a2(0x288)}}]}]}],'defIds':['off-line-single_clip0_910_343']},$e=M[_0x1ff7a2(0x23b)](function(_0x11b199,_0x56aa4f){const _0x364013=_0x1ff7a2;return M[_0x364013(0x16c)](be,Object['assign']({},_0x11b199,{'id':_0x364013(0x26b),'ref':_0x56aa4f,'icon':Nt}));});$e['displayName']='OffLineSingle';var Mt={'tag':_0x1ff7a2(0x31b),'attrs':{'fill':_0x1ff7a2(0x1de),'viewBox':_0x1ff7a2(0xd9),'width':_0x1ff7a2(0xdf),'height':_0x1ff7a2(0xdf)},'children':[{'tag':'g','attrs':{'clipPath':_0x1ff7a2(0x231)},'children':[{'tag':_0x1ff7a2(0x159),'attrs':{'stroke':_0x1ff7a2(0x20f),'d':'M4.5865\x2011.6499C3.36983\x2011.6499\x201.6665\x2011.1024\x201.6665\x208.9124C1.6665\x206.3574\x204.2215\x205.8099\x204.9515\x205.8099C5.3165\x204.5324\x206.0465\x202.5249\x208.9665\x202.5249C11.5215\x202.5249\x2012.6165\x203.9849\x2012.9815\x205.2624C12.9815\x205.2624\x2016.2665\x205.6274\x2016.2665\x208.7299C16.2665\x2010.9199\x2014.8065\x2011.6499\x2013.3465\x2011.6499M6.7767\x2011.6497L8.9667\x2013.4747L11.8867\x209.82466','strokeLinecap':_0x1ff7a2(0x180),'strokeLinejoin':_0x1ff7a2(0x180),'strokeWidth':1.2}}]},{'tag':_0x1ff7a2(0x2f7),'attrs':{},'children':[{'tag':_0x1ff7a2(0x1ba),'attrs':{'id':_0x1ff7a2(0x24e)},'children':[{'tag':_0x1ff7a2(0x159),'attrs':{'fill':'#fff','d':_0x1ff7a2(0x288),'transform':_0x1ff7a2(0x1c4)}}]}]}],'defIds':[_0x1ff7a2(0x24e)]},xe=M[_0x1ff7a2(0x23b)](function(_0x596717,_0x1ade50){const _0x45ba4c=_0x1ff7a2;return M[_0x45ba4c(0x16c)](be,Object['assign']({},_0x596717,{'id':_0x45ba4c(0x335),'ref':_0x1ade50,'icon':Mt}));});xe[_0x1ff7a2(0x1e8)]=_0x1ff7a2(0x2ee);const Pt='univer-online-status-icon',wt=_0x1ff7a2(0x123),Lt=_0x1ff7a2(0x148),At=_0x1ff7a2(0x11e),yt=_0x1ff7a2(0x28d),H={'onlineStatusIcon':Pt,'onlineStatusTitle':wt,'onlineStatus':Lt,'online':At,'offline':yt};function $t(_0x5d0705){const _0x444930=_0x1ff7a2;switch(_0x5d0705){case u[_0x444930(0x22c)][_0x444930(0x31a)]:return _0x444930(0x191);case u[_0x444930(0x22c)]['CONFLICT']:return _0x444930(0x2a8);case u[_0x444930(0x22c)][_0x444930(0x10d)]:return'collabStatus.fetchMiss';case u[_0x444930(0x22c)]['NOT_COLLAB']:return'collabStatus.notCollab';case u[_0x444930(0x22c)][_0x444930(0x234)]:case u[_0x444930(0x22c)]['AWAITING_WITH_PENDING']:return _0x444930(0x260);case u[_0x444930(0x22c)][_0x444930(0xe0)]:case u[_0x444930(0x22c)]['PENDING']:return _0x444930(0x1d3);}}function je(_0x2e53ea){const _0x36d93c=_0x1ff7a2,{status$:_0xebf696}=_0x2e53ea,_0x405d05=R['useObservable'](_0xebf696,u[_0x36d93c(0x22c)][_0x36d93c(0xe6)]),_0x578b38=R[_0x36d93c(0x1f6)](a[_0x36d93c(0x12c)]),_0x568889=R[_0x36d93c(0x1f6)](u['CollaborationSessionService']),_0x4bd014=_0x405d05!==u[_0x36d93c(0x22c)][_0x36d93c(0x31a)],_0x54f278=_0x578b38['t']($t(_0x405d05)),_0x21da04=T['clsx'](H[_0x36d93c(0x21a)],{[H['online']]:_0x4bd014,[H[_0x36d93c(0x153)]]:!_0x4bd014}),_0x3f842a=_0x4bd014?w[_0x36d93c(0x34b)](xe,{}):w[_0x36d93c(0x34b)]($e,{}),_0x5c4162=M[_0x36d93c(0x12a)](()=>{const _0x449118=_0x36d93c;_0x4bd014||_0x568889[_0x449118(0x2bc)]();},[_0x4bd014,_0x568889]);function _0x1a5312(){const _0x251c3b=_0x36d93c;return w[_0x251c3b(0x32a)]('div',{'className':T['clsx'](_0x21da04,_0x251c3b(0x2dc)),'onClick':_0x5c4162,'children':[w['jsx'](_0x251c3b(0x31e),{'className':H[_0x251c3b(0x289)],'children':_0x3f842a}),w[_0x251c3b(0x34b)]('div',{'className':H[_0x251c3b(0x125)],'children':_0x54f278})]});}return _0x4bd014?_0x1a5312():w[_0x36d93c(0x34b)](T[_0x36d93c(0x2a1)],{'title':_0x578b38['t'](_0x36d93c(0x217)),'children':_0x1a5312()});}var xt=Object[_0x1ff7a2(0x167)],jt=(_0xbfdea1,_0x239ba0,_0x2dd857,_0x987af9)=>{const _0x2ae5ca=_0x1ff7a2;for(var _0x1150db=_0x987af9>0x1?void 0x0:_0x987af9?xt(_0x239ba0,_0x2dd857):_0x239ba0,_0x258e0e=_0xbfdea1[_0x2ae5ca(0x2a5)]-0x1,_0x53526d;_0x258e0e>=0x0;_0x258e0e--)(_0x53526d=_0xbfdea1[_0x258e0e])&&(_0x1150db=_0x53526d(_0x1150db)||_0x1150db);return _0x1150db;},X=(_0xd72f64,_0x123a14)=>(_0x3a39e3,_0x16a948)=>_0x123a14(_0x3a39e3,_0x16a948,_0xd72f64);exports['DesktopCollaborationStatusDisplayController']=class extends a['Disposable']{constructor(_0x149f3c,_0x4f5f75,_0x39b87c,_0x110537){const _0x912d16=_0x1ff7a2;super(),h(this,'_status$',new d[(_0x912d16(0x2f0))](u[_0x912d16(0x22c)][_0x912d16(0xe6)])),(this[_0x912d16(0x103)]=_0x149f3c,this[_0x912d16(0x165)]=_0x4f5f75,this[_0x912d16(0x30f)]=_0x39b87c,this[_0x912d16(0x341)]=_0x110537,this[_0x912d16(0x1d4)](),this[_0x912d16(0x212)]());}[_0x1ff7a2(0x212)](){const _0x23d330=_0x1ff7a2;this[_0x23d330(0x2ce)](this[_0x23d330(0x103)][_0x23d330(0x34f)]['pipe'](d[_0x23d330(0xee)](()=>{const _0x26e1d4=_0x23d330,_0x3b82ad=this[_0x26e1d4(0x103)]['getFocusedUnit']();return _0x3b82ad?this[_0x26e1d4(0x30f)][_0x26e1d4(0x1bd)](_0x3b82ad[_0x26e1d4(0x121)]()):d['of'](null);}),d[_0x23d330(0xee)](_0x5a1ab3=>_0x5a1ab3?_0x5a1ab3[_0x23d330(0x16e)]:d['of'](u['CollaborationStatus'][_0x23d330(0xe6)])))[_0x23d330(0x124)](_0x42ccd8=>{const _0x7cde6f=_0x23d330;this['_status$'][_0x7cde6f(0x1af)](_0x42ccd8);}));}[_0x1ff7a2(0x1d4)](){const _0x3928e9=_0x1ff7a2;this[_0x3928e9(0x2ce)](this[_0x3928e9(0x341)]['registerComponent'](R[_0x3928e9(0x2d2)][_0x3928e9(0x31c)],()=>R[_0x3928e9(0x23e)](kt({'status$':this[_0x3928e9(0x26a)][_0x3928e9(0x2f3)]()}),this[_0x3928e9(0x165)])));}},exports['DesktopCollaborationStatusDisplayController']=jt([X(0x0,a[_0x1ff7a2(0x21f)]),X(0x1,a[_0x1ff7a2(0x1fa)](a[_0x1ff7a2(0x111)])),X(0x2,a[_0x1ff7a2(0x1fa)](u[_0x1ff7a2(0x266)])),X(0x3,R['IUIPartsService'])],exports[_0x1ff7a2(0x17b)]);function kt(_0x4764a8){const {status$:_0x19f4d5}=_0x4764a8;return function(){return w['jsx'](je,{'status$':_0x19f4d5});};}var Bt=Object[_0x1ff7a2(0x167)],Ht=(_0x2bb7c4,_0x1717b3,_0x334375,_0x1e5679)=>{for(var _0x465945=_0x1e5679>0x1?void 0x0:_0x1e5679?Bt(_0x1717b3,_0x334375):_0x1717b3,_0x35e35d=_0x2bb7c4['length']-0x1,_0x306f0c;_0x35e35d>=0x0;_0x35e35d--)(_0x306f0c=_0x2bb7c4[_0x35e35d])&&(_0x465945=_0x306f0c(_0x465945)||_0x465945);return _0x465945;},y=(_0x36002a,_0x3d38f1)=>(_0x354508,_0x2b50eb)=>_0x3d38f1(_0x354508,_0x2b50eb,_0x36002a);let z=class extends a[_0x1ff7a2(0x299)]{constructor(_0x17d987,_0x42afbe,_0x5fe850,_0x56a8aa,_0x229a9c,_0x26fc48){const _0x2c7851=_0x1ff7a2;super(),this['_beforeCloseService']=_0x17d987,this['_localCacheService']=_0x42afbe,this[_0x2c7851(0x337)]=_0x5fe850,this[_0x2c7851(0x119)]=_0x56a8aa,this[_0x2c7851(0x306)]=_0x229a9c,this[_0x2c7851(0x198)]=_0x26fc48,this[_0x2c7851(0x2c3)](),this[_0x2c7851(0x1b6)]();}['_setupBeforeClosingHandler'](){const _0x3b36c3=_0x1ff7a2;this['disposeWithMe'](this[_0x3b36c3(0x2b6)][_0x3b36c3(0x19b)](()=>{const _0x33d9ed=_0x3b36c3;if(this[_0x33d9ed(0x163)][_0x33d9ed(0x25a)][_0x33d9ed(0x312)])return this[_0x33d9ed(0x198)]['t'](_0x33d9ed(0x281));}));}[_0x1ff7a2(0x1b6)](){const _0x246f58=_0x1ff7a2;this[_0x246f58(0x2ce)](this[_0x246f58(0x337)][_0x246f58(0x18c)][_0x246f58(0x124)](_0x40bd7f=>{const _0x353a92=_0x246f58;_0x40bd7f['id']===u[_0x353a92(0x2ff)][_0x353a92(0x263)]&&this[_0x353a92(0x119)][_0x353a92(0x10f)]({'type':T['MessageType'][_0x353a92(0x268)],'content':this[_0x353a92(0x198)]['t']('collaboration.single-unit.warning')}),_0x40bd7f['id']===u['CollaborationUIEventId'][_0x353a92(0x32c)]&&this[_0x353a92(0x119)][_0x353a92(0x10f)]({'type':T[_0x353a92(0x346)][_0x353a92(0x268)],'content':this[_0x353a92(0x198)]['t'](_0x353a92(0x23f))}),_0x40bd7f['id']===u[_0x353a92(0x2ff)]['PERMISSION_DENIED']&&this[_0x353a92(0x306)][_0x353a92(0x10f)]({'title':this[_0x353a92(0x198)]['t'](_0x353a92(0x33c)),'content':this['_localeService']['t'](_0x353a92(0x302)),'type':'error','duration':0x0}),_0x40bd7f['id']===u[_0x353a92(0x2ff)][_0x353a92(0x259)]&&this[_0x353a92(0x119)][_0x353a92(0x10f)]({'type':T[_0x353a92(0x346)][_0x353a92(0x2fb)],'content':this[_0x353a92(0x198)]['t']('collaboration.closeRoom')+'('+_0x40bd7f[_0x353a92(0x2f6)]+')'}),_0x40bd7f['id']===u[_0x353a92(0x2ff)][_0x353a92(0x255)]&&this[_0x353a92(0x119)][_0x353a92(0x10f)]({'type':T['MessageType'][_0x353a92(0x268)],'content':this[_0x353a92(0x198)]['t'](_0x40bd7f[_0x353a92(0x2f6)]||'')}),_0x40bd7f['id']===u[_0x353a92(0x2ff)][_0x353a92(0x27b)]&&this['_messageService']['show']({'type':T[_0x353a92(0x346)][_0x353a92(0x268)],'content':this[_0x353a92(0x198)]['t'](_0x353a92(0xf6))}),_0x40bd7f['id']===u[_0x353a92(0x2ff)][_0x353a92(0xdd)]&&this['_messageService']['show']({'type':T[_0x353a92(0x346)][_0x353a92(0x2fb)],'content':this[_0x353a92(0x198)]['t']('session.connection-failed')}),_0x40bd7f['id']===u[_0x353a92(0x2ff)][_0x353a92(0x107)]&&this[_0x353a92(0x119)]['show']({'type':T[_0x353a92(0x346)][_0x353a92(0x2fb)],'content':this[_0x353a92(0x198)]['t'](_0x353a92(0x264))});}));}};z=Ht([y(0x0,R[_0x1ff7a2(0x137)]),y(0x1,u[_0x1ff7a2(0x15d)]),y(0x2,a[_0x1ff7a2(0x1fa)](u['CollaborationUIEventService'])),y(0x3,R[_0x1ff7a2(0x116)]),y(0x4,R[_0x1ff7a2(0x357)]),y(0x5,a['Inject'](a[_0x1ff7a2(0x12c)]))],z);const Ft=_0x1ff7a2(0x130),Ne={},Ee=a['createIdentifier'](_0x1ff7a2(0xdb));var Wt=Object[_0x1ff7a2(0x167)],Yt=(_0x16ffbc,_0x13320e,_0x4e103e,_0x24865d)=>{const _0x5e85fb=_0x1ff7a2;for(var _0x25899b=_0x24865d>0x1?void 0x0:_0x24865d?Wt(_0x13320e,_0x4e103e):_0x13320e,_0x18977d=_0x16ffbc[_0x5e85fb(0x2a5)]-0x1,_0x4c3497;_0x18977d>=0x0;_0x18977d--)(_0x4c3497=_0x16ffbc[_0x18977d])&&(_0x25899b=_0x4c3497(_0x25899b)||_0x25899b);return _0x25899b;},F=(_0x38b1e2,_0x15d70f)=>(_0x522681,_0x324a80)=>_0x15d70f(_0x522681,_0x324a80,_0x38b1e2);exports[_0x1ff7a2(0x1d6)]=class extends a[_0x1ff7a2(0x2c5)]{constructor(_0x2963f2,_0x131cb0,_0x2c690b,_0x3bde90,_0x2b8e25){const _0x2a4e80=_0x1ff7a2;super(),this[_0x2a4e80(0x17c)]=_0x2963f2,this[_0x2a4e80(0x1a4)]=_0x131cb0,this['_commandService']=_0x2c690b,this[_0x2a4e80(0x2b5)]=_0x3bde90,_0x2b8e25?_0x2b8e25==null||_0x2b8e25[_0x2a4e80(0x181)]()['then'](()=>this[_0x2a4e80(0xd4)]()):(this[_0x2a4e80(0x1a4)][_0x2a4e80(0x170)](_0x2a4e80(0x2e2),_0x2a4e80(0x13e)),this[_0x2a4e80(0xd4)]());}async[_0x1ff7a2(0xd4)](){const _0x3317c3=_0x1ff7a2,_0x20b090=this[_0x3317c3(0x17c)]['getParam'](_0x3317c3(0x330)),_0x68cb3b=this[_0x3317c3(0x17c)][_0x3317c3(0x23c)]('type'),_0xacd877=this[_0x3317c3(0x17c)]['getParam'](_0x3317c3(0x293));if(!_0x20b090||!_0x68cb3b){this[_0x3317c3(0x1a4)][_0x3317c3(0x170)](_0x3317c3(0x2e2),_0x3317c3(0x2be));return;}const _0x21359f=await this[_0x3317c3(0x2b5)][_0x3317c3(0x15c)](_0x20b090,Number(_0x68cb3b),_0xacd877);_0x21359f&&_0x21359f instanceof a[_0x3317c3(0x241)]&&this[_0x3317c3(0x228)](_0x21359f);}async[_0x1ff7a2(0x228)](_0x217108){const _0x49aba5=_0x1ff7a2;await this[_0x49aba5(0x209)](_0x217108),_0x217108[_0x49aba5(0x224)][_0x49aba5(0x2a2)](d['takeUntil'](this[_0x49aba5(0xdc)]))[_0x49aba5(0x124)](_0x4db90c=>{const _0x2211ad=_0x49aba5;_0x4db90c&&this[_0x2211ad(0x33e)](_0x4db90c);}),this['_urlService']['urlChange$'][_0x49aba5(0x2a2)](d[_0x49aba5(0xf0)](this[_0x49aba5(0xdc)]))[_0x49aba5(0x124)](()=>this[_0x49aba5(0x209)](_0x217108));}[_0x1ff7a2(0x33e)](_0x34c63c,_0x466295=!0x1){const _0x4668d4=_0x1ff7a2,_0xeb5e77=this['_urlService']['getParam']('subunit');_0x34c63c['getSheetId']()!==_0xeb5e77&&this['_urlService'][_0x4668d4(0x18b)](_0x4668d4(0x293),_0x34c63c[_0x4668d4(0x291)](),_0x466295);}async['_updateSubUnitFromURLParams'](_0x4b6d4b){const _0x5d45a2=_0x1ff7a2;var _0x5c659e;const _0x5b5c38=this[_0x5d45a2(0x17c)][_0x5d45a2(0x23c)](_0x5d45a2(0x293));if(!_0x5b5c38||!_0x4b6d4b[_0x5d45a2(0x2e6)](_0x5b5c38)){const _0x19ba2b=_0x4b6d4b[_0x5d45a2(0x1e0)]()[0x0],_0x3317cc=_0x4b6d4b[_0x5d45a2(0x2e6)](_0x19ba2b);if(!_0x3317cc)return;this[_0x5d45a2(0x33e)](_0x3317cc,!0x0),await this[_0x5d45a2(0x2f5)][_0x5d45a2(0xe1)](g[_0x5d45a2(0x29a)]['id'],{'unitId':_0x4b6d4b[_0x5d45a2(0x121)](),'subUnitId':_0x19ba2b});return;}((_0x5c659e=_0x4b6d4b[_0x5d45a2(0x2df)]())==null?void 0x0:_0x5c659e[_0x5d45a2(0x291)]())!==_0x5b5c38&&await this[_0x5d45a2(0x2f5)][_0x5d45a2(0xe1)](g[_0x5d45a2(0x29a)]['id'],{'unitId':_0x4b6d4b[_0x5d45a2(0x121)](),'subUnitId':_0x5b5c38});}},exports[_0x1ff7a2(0x1d6)]=Yt([F(0x0,Ee),F(0x1,a[_0x1ff7a2(0x1e3)]),F(0x2,a[_0x1ff7a2(0x2ef)]),F(0x3,a[_0x1ff7a2(0x1fa)](u[_0x1ff7a2(0x213)])),F(0x4,a[_0x1ff7a2(0x202)](Ke[_0x1ff7a2(0x2db)]))],exports[_0x1ff7a2(0x1d6)]);var Vt=Object[_0x1ff7a2(0x167)],Xt=(_0x31b717,_0x31e79c,_0x14743c,_0x511227)=>{for(var _0x1e0799=_0x511227>0x1?void 0x0:_0x511227?Vt(_0x31e79c,_0x14743c):_0x31e79c,_0x28a5bf=_0x31b717['length']-0x1,_0x10cc90;_0x28a5bf>=0x0;_0x28a5bf--)(_0x10cc90=_0x31b717[_0x28a5bf])&&(_0x1e0799=_0x10cc90(_0x1e0799)||_0x1e0799);return _0x1e0799;},le=(_0x49d9a5,_0x2ed8d4)=>(_0x118577,_0x34b676)=>_0x2ed8d4(_0x118577,_0x34b676,_0x49d9a5);let J=class{constructor(_0x3c6299,_0x280c3e,_0x2c2ded){const _0x1d4598=_0x1ff7a2;this[_0x1d4598(0x165)]=_0x3c6299,this[_0x1d4598(0x178)]=_0x280c3e,this[_0x1d4598(0x2e5)]=_0x2c2ded;}['transformIMECache'](_0x478103){this['_transformUndoRedoStack'](_0x478103),this['_transformPreviousActiveRange'](_0x478103);}[_0x1ff7a2(0x138)](_0x278c32){const _0x3627fb=_0x1ff7a2,{unitID:_0x372907}=_0x278c32,_0x3647af=this[_0x3627fb(0x2e5)][_0x3627fb(0x1a1)](_0x372907)['with'](b['DocIMEInputManagerService']),{redoCache:_0x278a54}=_0x3647af['getUndoRedoMutationParamsCache']();if(_0x278a54[_0x3627fb(0x2a5)]===0x0)return _0x278c32;let _0x496cc8=a['Tools']['deepClone'](_0x278c32[_0x3627fb(0x1ec)][0x0]);for(let _0x29e7f5=0x0;_0x29e7f5<_0x278a54[_0x3627fb(0x2a5)];_0x29e7f5++){const _0x4df9b7={'id':_0x3627fb(0x28f),'params':{..._0x278a54[_0x29e7f5]}},_0x545186=this[_0x3627fb(0x178)][_0x3627fb(0x1b5)](_0x496cc8,_0x4df9b7,!0x1);if(m['isTransformMutationFailure'](_0x545186))throw _0x545186['error'];_0x496cc8=_0x545186[_0x3627fb(0x334)];}return{...a['Tools'][_0x3627fb(0x331)](_0x278c32),'mutations':[_0x496cc8]};}['_transformUndoRedoStack'](_0x332e1f){const _0x5c5389=_0x1ff7a2,{unitID:_0x1787c4}=_0x332e1f,_0x5607d1=this[_0x5c5389(0x2e5)]['getRenderById'](_0x1787c4)[_0x5c5389(0x172)](b['DocIMEInputManagerService']),{undoCache:_0x11b0e3,redoCache:_0x27f91d}=_0x5607d1['getUndoRedoMutationParamsCache']();if(_0x11b0e3[_0x5c5389(0x2a5)]===0x0||_0x27f91d[_0x5c5389(0x2a5)]===0x0)return;const _0x3a9a65=[],_0x5cf943=[];let _0x1e4aaa=a['Tools'][_0x5c5389(0x331)](_0x332e1f[_0x5c5389(0x1ec)][0x0]),_0x190613=a['Tools'][_0x5c5389(0x331)](_0x332e1f[_0x5c5389(0x1ec)][0x0]);for(let _0x2135ba=_0x11b0e3[_0x5c5389(0x2a5)]-0x1;_0x2135ba>=0x0;_0x2135ba--){const _0x2094f6={'id':_0x5c5389(0x28f),'params':{..._0x11b0e3[_0x2135ba]}},_0x39703b={'id':_0x5c5389(0x28f),'params':{..._0x27f91d[_0x2135ba]}},_0x42d8e6=this[_0x5c5389(0x178)][_0x5c5389(0x1b5)](_0x1e4aaa,_0x2094f6,!0x1),_0x3ac7c8=this['_transformService'][_0x5c5389(0x1b5)](_0x190613,_0x39703b,!0x1);if(m[_0x5c5389(0x294)](_0x42d8e6))throw _0x42d8e6[_0x5c5389(0x33b)];if(m[_0x5c5389(0x294)](_0x3ac7c8))throw _0x3ac7c8['error'];_0x3a9a65[_0x5c5389(0x29d)](_0x42d8e6[_0x5c5389(0x232)][_0x5c5389(0x236)]),_0x5cf943[_0x5c5389(0x29d)](_0x3ac7c8[_0x5c5389(0x232)]['params']),_0x1e4aaa=_0x42d8e6[_0x5c5389(0x334)],_0x190613=_0x3ac7c8['m1Prime'];}_0x5607d1[_0x5c5389(0x112)]({'undoCache':_0x3a9a65,'redoCache':_0x5cf943});}[_0x1ff7a2(0x1f7)](_0x39fa12){const _0x32f108=_0x1ff7a2,{unitID:_0x397a5b}=_0x39fa12,_0x41f048=this[_0x32f108(0x2e5)][_0x32f108(0x1a1)](_0x397a5b)['with'](b[_0x32f108(0x189)]),_0x34708a=_0x41f048[_0x32f108(0x1b2)]();if(_0x34708a==null)return;const _0x280123=[{'id':_0x32f108(0x28f),'params':{'unitId':_0x39fa12['unitID'],'actions':null,'textRanges':[_0x34708a]}}],_0x4c30e7=this[_0x32f108(0x178)]['transformMutationsWithChangeset'](_0x39fa12,_0x280123);if(!m[_0x32f108(0x2cd)](_0x4c30e7))throw _0x4c30e7[_0x32f108(0x33b)];const _0x396e7f=_0x4c30e7['m2Prime'][0x0]['params'][_0x32f108(0x30a)];Array[_0x32f108(0x18f)](_0x396e7f)&&_0x396e7f[_0x32f108(0x2a5)]&&_0x41f048['setActiveRange'](_0x396e7f[0x0]);}};J=Xt([le(0x0,a[_0x1ff7a2(0x1fa)](a[_0x1ff7a2(0x111)])),le(0x1,m[_0x1ff7a2(0x342)]),le(0x2,p['IRenderManagerService'])],J);var Gt=Object[_0x1ff7a2(0x167)],qt=(_0x376474,_0x1256cb,_0x4d9b60,_0x148e4a)=>{const _0x260f91=_0x1ff7a2;for(var _0x590992=_0x148e4a>0x1?void 0x0:_0x148e4a?Gt(_0x1256cb,_0x4d9b60):_0x1256cb,_0x350922=_0x376474[_0x260f91(0x2a5)]-0x1,_0x59c6a6;_0x350922>=0x0;_0x350922--)(_0x59c6a6=_0x376474[_0x350922])&&(_0x590992=_0x59c6a6(_0x590992)||_0x590992);return _0x590992;},he=(_0x1becef,_0x3021a2)=>(_0x59dc6a,_0x3a3c5b)=>_0x3021a2(_0x59dc6a,_0x3a3c5b,_0x1becef);let Z=class{constructor(_0x33db20,_0x45a2b7,_0x567bfa){const _0x9f79cb=_0x1ff7a2;this[_0x9f79cb(0x165)]=_0x33db20,this[_0x9f79cb(0x178)]=_0x45a2b7,this['_docStateChangeManagerService']=_0x567bfa;}[_0x1ff7a2(0x10a)](_0xa3f1b2){const _0x7909c9=_0x1ff7a2;this[_0x7909c9(0x2cc)](_0xa3f1b2);}[_0x1ff7a2(0x138)](_0x501114){const _0x3f104d=_0x1ff7a2,{unitID:_0x1f7b0c}=_0x501114,{collaboration:_0x36da29}=this['_docStateChangeManagerService'][_0x3f104d(0xd0)](_0x1f7b0c);if(_0x36da29[_0x3f104d(0x2a5)]===0x0)return _0x501114;let _0x27a8ae=a['Tools']['deepClone'](_0x501114[_0x3f104d(0x1ec)][0x0]);for(let _0x142ef4=0x0;_0x142ef4<_0x36da29['length'];_0x142ef4++){const _0x1329e1={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x36da29[_0x142ef4][_0x3f104d(0x1a6)],..._0x36da29[_0x142ef4][_0x3f104d(0x1f0)]}},_0x305f4b=this[_0x3f104d(0x178)][_0x3f104d(0x1b5)](_0x27a8ae,_0x1329e1,!0x1);if(m[_0x3f104d(0x294)](_0x305f4b))throw _0x305f4b['error'];_0x27a8ae=_0x305f4b['m1Prime'];}return{...a['Tools'][_0x3f104d(0x331)](_0x501114),'mutations':[_0x27a8ae]};}[_0x1ff7a2(0x2cc)](_0x537235){const _0x4908eb=_0x1ff7a2,{unitID:_0x1dd3cd}=_0x537235,{history:_0x2d34f5,collaboration:_0x57181b}=this['_docStateChangeManagerService']['getStateCache'](_0x1dd3cd);if(_0x2d34f5['length']===0x0&&_0x57181b['length']===0x0)return;const _0x3e96c1=[],_0x513007=[];let _0x10e786=a['Tools'][_0x4908eb(0x331)](_0x537235['mutations'][0x0]),_0x53c009=a[_0x4908eb(0x33d)][_0x4908eb(0x331)](_0x537235[_0x4908eb(0x1ec)][0x0]);for(let _0x398d8e=_0x2d34f5[_0x4908eb(0x2a5)]-0x1;_0x398d8e>=0x0;_0x398d8e--){const _0x56c531={'id':_0x4908eb(0x28f),'params':{'unitId':_0x2d34f5[_0x398d8e]['unitId'],..._0x2d34f5[_0x398d8e][_0x4908eb(0x348)]}},_0x354b0e={'id':_0x4908eb(0x28f),'params':{'unitId':_0x2d34f5[_0x398d8e][_0x4908eb(0x1a6)],..._0x2d34f5[_0x398d8e][_0x4908eb(0x1f0)]}},_0x54bdf7=this['_transformService'][_0x4908eb(0x1b5)](_0x10e786,_0x56c531,!0x1),_0x41960e=this[_0x4908eb(0x178)]['transformMutation'](_0x53c009,_0x354b0e,!0x1);if(m[_0x4908eb(0x294)](_0x54bdf7))throw _0x54bdf7[_0x4908eb(0x33b)];if(m[_0x4908eb(0x294)](_0x41960e))throw _0x41960e[_0x4908eb(0x33b)];_0x3e96c1[_0x4908eb(0x29d)]({..._0x2d34f5[_0x398d8e],'undoState':_0x54bdf7[_0x4908eb(0x232)]['params'],'redoState':_0x41960e[_0x4908eb(0x232)]['params']}),_0x10e786=_0x54bdf7[_0x4908eb(0x334)],_0x53c009=_0x41960e[_0x4908eb(0x334)];}_0x10e786=a[_0x4908eb(0x33d)][_0x4908eb(0x331)](_0x537235[_0x4908eb(0x1ec)][0x0]),_0x53c009=a[_0x4908eb(0x33d)]['deepClone'](_0x537235[_0x4908eb(0x1ec)][0x0]);for(let _0x1876c9=_0x57181b[_0x4908eb(0x2a5)]-0x1;_0x1876c9>=0x0;_0x1876c9--){const _0x28658c={'id':_0x4908eb(0x28f),'params':{'unitId':_0x57181b[_0x1876c9][_0x4908eb(0x1a6)],..._0x57181b[_0x1876c9][_0x4908eb(0x348)]}},_0x5b7c52={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x57181b[_0x1876c9][_0x4908eb(0x1a6)],..._0x57181b[_0x1876c9]['redoState']}},_0x2c97c8=this['_transformService'][_0x4908eb(0x1b5)](_0x10e786,_0x28658c,!0x1),_0x50a13e=this[_0x4908eb(0x178)]['transformMutation'](_0x53c009,_0x5b7c52,!0x1);if(m[_0x4908eb(0x294)](_0x2c97c8))throw _0x2c97c8['error'];if(m['isTransformMutationFailure'](_0x50a13e))throw _0x50a13e['error'];_0x513007[_0x4908eb(0x29d)]({..._0x57181b[_0x1876c9],'undoState':_0x2c97c8[_0x4908eb(0x232)][_0x4908eb(0x236)],'redoState':_0x50a13e[_0x4908eb(0x232)][_0x4908eb(0x236)]}),_0x10e786=_0x2c97c8[_0x4908eb(0x334)],_0x53c009=_0x50a13e[_0x4908eb(0x334)];}this[_0x4908eb(0x1f5)][_0x4908eb(0x2d1)](_0x1dd3cd,{'history':_0x3e96c1,'collaboration':_0x513007});}};Z=qt([he(0x0,a[_0x1ff7a2(0x1fa)](a['Injector'])),he(0x1,m[_0x1ff7a2(0x342)]),he(0x2,a[_0x1ff7a2(0x1fa)](b[_0x1ff7a2(0x218)]))],Z);var Kt=Object[_0x1ff7a2(0x167)],zt=(_0x1b05f6,_0x1ad1f0,_0x5aa029,_0x346417)=>{const _0x45bde4=_0x1ff7a2;for(var _0x2ff1c9=_0x346417>0x1?void 0x0:_0x346417?Kt(_0x1ad1f0,_0x5aa029):_0x1ad1f0,_0x46b8a3=_0x1b05f6[_0x45bde4(0x2a5)]-0x1,_0x285aa6;_0x46b8a3>=0x0;_0x46b8a3--)(_0x285aa6=_0x1b05f6[_0x46b8a3])&&(_0x2ff1c9=_0x285aa6(_0x2ff1c9)||_0x2ff1c9);return _0x2ff1c9;},Me=(_0xbbf100,_0x59af0b)=>(_0x1ba158,_0x222ccd)=>_0x59af0b(_0x1ba158,_0x222ccd,_0xbbf100);let Q=class{constructor(_0x1b7abf,_0x4f6976){const _0x309f6e=_0x1ff7a2;this[_0x309f6e(0x165)]=_0x1b7abf,this[_0x309f6e(0x178)]=_0x4f6976;}['transformSelections'](_0x1283a3){const _0x1c4713=_0x1ff7a2;var _0x2fee4c;const _0x3a582a=this[_0x1c4713(0x165)]['get'](Y['DocSelectionManagerService']),_0x38719e=(_0x2fee4c=_0x3a582a['getDocRanges']())!=null?_0x2fee4c:[];if(_0x38719e['length']===0x0)return;const _0x352d12=_0x1283a3[_0x1c4713(0x15f)],_0x23f448=[{'id':_0x1c4713(0x28f),'params':{'unitId':_0x352d12,'actions':null,'textRanges':_0x38719e}}],_0x32b9f0=this[_0x1c4713(0x178)][_0x1c4713(0xe3)](_0x1283a3,_0x23f448);if(!m[_0x1c4713(0x2cd)](_0x32b9f0))throw _0x32b9f0[_0x1c4713(0x33b)];const _0xf9699b=_0x32b9f0[_0x1c4713(0x232)][0x0][_0x1c4713(0x236)]['textRanges'];Array[_0x1c4713(0x18f)](_0xf9699b)&&_0xf9699b[_0x1c4713(0x2a5)]&&_0x3a582a['replaceDocRanges'](_0xf9699b,{'unitId':_0x352d12,'subUnitId':_0x352d12},!0x1);}};Q=zt([Me(0x0,a['Inject'](a['Injector'])),Me(0x1,m[_0x1ff7a2(0x342)])],Q);var Jt=Object[_0x1ff7a2(0x167)],Zt=(_0x19c9ce,_0x264649,_0x2919f7,_0x4686c3)=>{const _0x41722e=_0x1ff7a2;for(var _0x4f0793=_0x4686c3>0x1?void 0x0:_0x4686c3?Jt(_0x264649,_0x2919f7):_0x264649,_0x477464=_0x19c9ce[_0x41722e(0x2a5)]-0x1,_0x41b8ce;_0x477464>=0x0;_0x477464--)(_0x41b8ce=_0x19c9ce[_0x477464])&&(_0x4f0793=_0x41b8ce(_0x4f0793)||_0x4f0793);return _0x4f0793;},N=(_0x35abbc,_0x2e3d27)=>(_0x355df1,_0x4701fa)=>_0x2e3d27(_0x355df1,_0x4701fa,_0x35abbc);let ee=class extends a['Disposable']{constructor(_0x1355a1,_0x29511b,_0x5e5298,_0x27f3fe,_0x487f03,_0x52c049,_0x6df59d,_0x160d81){const _0x13bad4=_0x1ff7a2;super(),h(this,_0x13bad4(0x26a),new d[(_0x13bad4(0x2f0))](u[_0x13bad4(0x22c)][_0x13bad4(0xe6)])),(this[_0x13bad4(0x1f5)]=_0x1355a1,this[_0x13bad4(0x30f)]=_0x29511b,this[_0x13bad4(0x338)]=_0x5e5298,this[_0x13bad4(0x102)]=_0x27f3fe,this[_0x13bad4(0x1fd)]=_0x487f03,this[_0x13bad4(0x1da)]=_0x52c049,this[_0x13bad4(0x119)]=_0x6df59d,this['_localeService']=_0x160d81,this[_0x13bad4(0x23d)]());}[_0x1ff7a2(0x23d)](){const _0x646f19=_0x1ff7a2;this['disposeWithMe'](this[_0x646f19(0x30f)][_0x646f19(0x2da)][_0x646f19(0x124)](_0xa29d40=>{const _0xc6454c=_0x646f19,_0x290ea0=this[_0xc6454c(0x1f5)]['docStateChange$'][_0xc6454c(0x124)](_0x58a828=>{const _0x30813b=_0xc6454c;if(_0x58a828==null)return;const {unitId:_0x562de7,redoState:_0x33e707,commandId:_0xb2f1d6}=_0x58a828;if(_0x562de7!==_0xa29d40[_0x30813b(0x15f)])return;const _0x329997={'id':_0xb2f1d6,'type':a['CommandType']['MUTATION'],'params':{'unitId':_0x562de7,'actions':_0x33e707[_0x30813b(0x2d7)],'textRanges':null}};_0xa29d40['onLocalMutation'](_0x329997);});if(_0xa29d40[_0xc6454c(0x2ce)](_0x290ea0),_0xa29d40 instanceof u[_0xc6454c(0x140)]){const _0x526119={'onTransformIME':_0x1bb291=>this['_docTransformIMECacheService'][_0xc6454c(0x24f)](_0x1bb291),'onTransformState':_0x2f671c=>this[_0xc6454c(0x102)]['transformStateCache'](_0x2f671c),'onTransformSelections':_0x5e2961=>this[_0xc6454c(0x1fd)][_0xc6454c(0x14e)](_0x5e2961),'onSyncEditingCollabCursor':_0x35c2e1=>this['_docSyncEditingCollabCursorService']['syncEditingCollabCursor'](_0x35c2e1),'onTransformRemoteChangesetByIMECache':_0x4ad309=>this[_0xc6454c(0x338)][_0xc6454c(0x138)](_0x4ad309),'onTransformRemoteChangesetByStateCache':_0x4d97b8=>this['_docTransformStateCacheService'][_0xc6454c(0x138)](_0x4d97b8)};_0xa29d40[_0xc6454c(0x117)](_0x526119);}}));}};ee=Zt([N(0x0,a[_0x1ff7a2(0x1fa)](b[_0x1ff7a2(0x218)])),N(0x1,a['Inject'](u['CollaborationController'])),N(0x2,a[_0x1ff7a2(0x1fa)](J)),N(0x3,a[_0x1ff7a2(0x1fa)](Z)),N(0x4,a['Inject'](Q)),N(0x5,a[_0x1ff7a2(0x1fa)](pe)),N(0x6,R[_0x1ff7a2(0x116)]),N(0x7,a[_0x1ff7a2(0x1fa)](a[_0x1ff7a2(0x12c)]))],ee);var Qt=Object[_0x1ff7a2(0x167)],es=(_0x17fb0b,_0x1bc732,_0x213c95,_0x33bab9)=>{const _0x386a47=_0x1ff7a2;for(var _0x2bb12c=_0x33bab9>0x1?void 0x0:_0x33bab9?Qt(_0x1bc732,_0x213c95):_0x1bc732,_0x4ccf15=_0x17fb0b[_0x386a47(0x2a5)]-0x1,_0x5d6c20;_0x4ccf15>=0x0;_0x4ccf15--)(_0x5d6c20=_0x17fb0b[_0x4ccf15])&&(_0x2bb12c=_0x5d6c20(_0x2bb12c)||_0x2bb12c);return _0x2bb12c;},_e=(_0x2894de,_0xb06e65)=>(_0x55b971,_0x4f84f9)=>_0xb06e65(_0x55b971,_0x4f84f9,_0x2894de);let me=class extends a['Disposable']{constructor(_0x224e36,_0x3f3cd6,_0x5369a4){const _0x1e228b=_0x1ff7a2;super(),h(this,_0x1e228b(0x1db),new Map()),h(this,_0x1e228b(0x254),new Map()),h(this,_0x1e228b(0x13b),!0x1),(this[_0x1e228b(0xf9)]=_0x224e36,this['_localStorageService']=_0x3f3cd6,this['_revisionService']=_0x5369a4);}[_0x1ff7a2(0x183)](){const _0x4d0696=_0x1ff7a2;this[_0x4d0696(0x13b)]=!0x0;}['enableLocalCache'](){const _0x29a2e5=_0x1ff7a2;this[_0x29a2e5(0x13b)]=!0x1;}get[_0x1ff7a2(0x25a)](){return this['_saveTaskMap'];}[_0x1ff7a2(0x1a8)](){const _0x1aa7d1=_0x1ff7a2;this['exhaustSavingTask']()['then'](()=>super[_0x1aa7d1(0x1a8)]());}async[_0x1ff7a2(0x2e7)](_0x55f338){const _0x536310=_0x1ff7a2;return this[_0x536310(0x13b)]?null:this[_0x536310(0x226)][_0x536310(0x1a2)](u[_0x536310(0x317)](_0x55f338));}async[_0x1ff7a2(0xed)](_0x2a9410,_0x1b3fdf){const _0x1880f3=_0x1ff7a2;return!!this[_0x1880f3(0x226)]['setItem'](_0x2a9410,_0x1b3fdf);}[_0x1ff7a2(0xfe)](_0x437733,_0x1b9e93,_0x3f4715,_0x4891b1){const _0x4bf7d4=_0x1ff7a2,_0x58cb06=this[_0x4bf7d4(0x104)]['getCurrentRevOfUnit'](_0x437733);this['_cachedData'][_0x4bf7d4(0x1ef)](_0x437733,{'unitID':_0x437733,'type':_0x1b9e93,'awaitingChangeset':_0x3f4715,'mutations':_0x4891b1,'rev':_0x58cb06}),this[_0x4bf7d4(0x254)][_0x4bf7d4(0x21d)](_0x437733)||this[_0x4bf7d4(0x179)](_0x437733);}['_scheduleSaving'](_0x382c9b){const _0x1f6c6f=_0x1ff7a2,_0x38393f=this[_0x1f6c6f(0x26e)]();_0x38393f===0x0?this[_0x1f6c6f(0xe4)](_0x382c9b):this['_saveTaskMap']['set'](_0x382c9b,setTimeout(()=>this[_0x1f6c6f(0xe4)](_0x382c9b),_0x38393f));}[_0x1ff7a2(0x26e)](){const _0x10b059=_0x1ff7a2;var _0x1ff007;return(_0x1ff007=this[_0x10b059(0xf9)][_0x10b059(0x166)](u['LOCAL_CACHE_INTERVAL_KEY']))!=null?_0x1ff007:u['LOCAL_CACHE_INTERVAL'];}[_0x1ff7a2(0xe4)](_0x491398){const _0x3be0dd=_0x1ff7a2,_0x5d9e9e=this[_0x3be0dd(0x254)]['get'](_0x491398);return _0x5d9e9e!==void 0x0&&window['clearTimeout'](_0x5d9e9e),this['_localStorageService']['setItem'](u[_0x3be0dd(0x317)](_0x491398),this[_0x3be0dd(0x1db)]['get'](_0x491398))['then'](()=>this[_0x3be0dd(0x254)][_0x3be0dd(0x28e)](_0x491398));}async[_0x1ff7a2(0x146)](){const _0xedf0c=_0x1ff7a2,_0x487404=[];this[_0xedf0c(0x254)][_0xedf0c(0x1ea)]((_0x4ecda7,_0x58f0c1)=>{const _0x5aee6e=_0xedf0c;window['clearTimeout'](_0x4ecda7),_0x487404['push'](this[_0x5aee6e(0xe4)](_0x58f0c1)[_0x5aee6e(0x1fb)](()=>{const _0x4dc733=_0x5aee6e;this[_0x4dc733(0x254)][_0x4dc733(0x28e)](_0x58f0c1);}));}),await Promise[_0xedf0c(0x267)](_0x487404);}};me=es([_e(0x0,a[_0x1ff7a2(0x190)]),_e(0x1,a['ILocalStorageService']),_e(0x2,a[_0x1ff7a2(0x1fa)](m[_0x1ff7a2(0x1cb)]))],me);class ke extends a[_0x1ff7a2(0x2c5)]{constructor(){const _0x146ecb=_0x1ff7a2;super(),h(this,_0x146ecb(0x1a7)),this[_0x146ecb(0x1a7)]=d['fromEvent'](window,_0x146ecb(0x34e))[_0x146ecb(0x2a2)](d[_0x146ecb(0xf0)](this[_0x146ecb(0xdc)]),d[_0x146ecb(0x2e4)](0x1),d[_0x146ecb(0x2e9)](void 0x0));}['setParam'](_0x5c1d73,_0xe3a863,_0x285ecf=!0x1){const _0x2c38df=_0x1ff7a2,_0x5ef62f=new URL(window[_0x2c38df(0x1c1)]['href']);_0x5ef62f[_0x2c38df(0x2e3)]['set'](_0x5c1d73,_0xe3a863),_0x285ecf?window[_0x2c38df(0x2ad)][_0x2c38df(0x2a7)]('','',_0x5ef62f[_0x2c38df(0x32b)]()):window[_0x2c38df(0x2ad)]['pushState']('','',_0x5ef62f[_0x2c38df(0x32b)]());}[_0x1ff7a2(0x13f)](_0x23d108,_0x5bb5ce=!0x1){const _0x57d087=_0x1ff7a2,_0x344de8=new URL(window['location'][_0x57d087(0x21c)]);_0x344de8['searchParams'][_0x57d087(0x28e)](_0x23d108),_0x5bb5ce?window[_0x57d087(0x2ad)][_0x57d087(0x2a7)]('','',_0x344de8['toString']()):window[_0x57d087(0x2ad)][_0x57d087(0x211)]('','',_0x344de8[_0x57d087(0x32b)]());}[_0x1ff7a2(0x23c)](_0x2f211b){const _0x359eee=_0x1ff7a2;var _0x3feab8;return(_0x3feab8=new URL(window[_0x359eee(0x1c1)][_0x359eee(0x21c)])[_0x359eee(0x2e3)]['get'](_0x2f211b))!=null?_0x3feab8:void 0x0;}}var ts=Object[_0x1ff7a2(0x350)],ss=Object['getOwnPropertyDescriptor'],ns=(_0xfb63da,_0x5d80b8,_0x2516b6)=>_0x5d80b8 in _0xfb63da?ts(_0xfb63da,_0x5d80b8,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x2516b6}):_0xfb63da[_0x5d80b8]=_0x2516b6,is=(_0x509392,_0x242ad3,_0x357c1d,_0x3fe0f2)=>{for(var _0x218cdd=_0x3fe0f2>0x1?void 0x0:_0x3fe0f2?ss(_0x242ad3,_0x357c1d):_0x242ad3,_0x44b8e8=_0x509392['length']-0x1,_0x2e68ce;_0x44b8e8>=0x0;_0x44b8e8--)(_0x2e68ce=_0x509392[_0x44b8e8])&&(_0x218cdd=_0x2e68ce(_0x218cdd)||_0x218cdd);return _0x218cdd;},ue=(_0x7d880d,_0x4d5ec5)=>(_0x46483b,_0x443032)=>_0x4d5ec5(_0x46483b,_0x443032,_0x7d880d),rs=(_0x44673a,_0x413869,_0xf9f573)=>ns(_0x44673a,_0x413869+'',_0xf9f573);function _0x5501(_0x15c0e7,_0x25e9b1){const _0x404255=_0x4042();return _0x5501=function(_0x55017e,_0x1b60f7){_0x55017e=_0x55017e-0xd0;let _0x3647b4=_0x404255[_0x55017e];return _0x3647b4;},_0x5501(_0x15c0e7,_0x25e9b1);}const os=_0x1ff7a2(0x129);exports[_0x1ff7a2(0x188)]=class extends a[_0x1ff7a2(0x120)]{constructor(_0xd982ad=Ne,_0x4e43cd,_0x17159f,_0x551da6){const _0x5ad445=_0x1ff7a2;super(),this[_0x5ad445(0x16b)]=_0xd982ad,this['_renderManagerService']=_0x4e43cd,this[_0x5ad445(0x165)]=_0x17159f,this['_configService']=_0x551da6;const {..._0x22a818}=a[_0x5ad445(0x22d)]({},Ne,this[_0x5ad445(0x16b)]);this['_configService'][_0x5ad445(0x307)](Ft,_0x22a818);}['onStarting'](){const _0x97d06a=_0x1ff7a2;this[_0x97d06a(0x1c6)](),this['_initDependencies']();}[_0x1ff7a2(0x2b9)](){this['_registerRenderDependencies']();}[_0x1ff7a2(0x1c6)](){const _0x4186ba=_0x1ff7a2;var _0x2bda14;const _0x3fc0cd=[[Ce],[Q],[J],[Z],[pe],[Ee,{'useClass':ke}],[q[_0x4186ba(0x329)],{'useClass':q[_0x4186ba(0x250)]}],[u[_0x4186ba(0x15d)],{'useClass':me}],[exports[_0x4186ba(0x17b)]],[ee],[z],[x],[fe],[exports['CollaborationDataLoaderController']]];a[_0x4186ba(0x105)](this['_injector'],a[_0x4186ba(0x240)](_0x3fc0cd,(_0x2bda14=this[_0x4186ba(0x16b)])==null?void 0x0:_0x2bda14[_0x4186ba(0x253)]));}[_0x1ff7a2(0x160)](){const _0x3461e8=_0x1ff7a2;this[_0x3461e8(0x2ce)](this[_0x3461e8(0x2e5)][_0x3461e8(0x1ac)](a['UniverInstanceType']['UNIVER_DOC'],[ve])),this['disposeWithMe'](this[_0x3461e8(0x2e5)][_0x3461e8(0x1ac)](a[_0x3461e8(0x15a)][_0x3461e8(0x2e0)],[ge]));}[_0x1ff7a2(0x187)](){const _0x789488=_0x1ff7a2;a[_0x789488(0x17f)](this[_0x789488(0x165)],[[x],[exports[_0x789488(0x17b)]],[ee],[z],[exports[_0x789488(0x1d6)]]]);}},rs(exports['UniverCollaborationClientUIPlugin'],_0x1ff7a2(0x252),os),exports['UniverCollaborationClientUIPlugin']=is([a[_0x1ff7a2(0x14a)](u['UniverCollaborationClientPlugin']),ue(0x1,p[_0x1ff7a2(0x142)]),ue(0x2,a[_0x1ff7a2(0x1fa)](a['Injector'])),ue(0x3,a[_0x1ff7a2(0x190)])],exports[_0x1ff7a2(0x188)]);var as=Object[_0x1ff7a2(0x167)],cs=(_0x50375,_0x56ec04,_0x280b0c,_0x389648)=>{const _0x3a3eff=_0x1ff7a2;for(var _0x5c0b2b=_0x389648>0x1?void 0x0:_0x389648?as(_0x56ec04,_0x280b0c):_0x56ec04,_0x295c6b=_0x50375[_0x3a3eff(0x2a5)]-0x1,_0x4f99fa;_0x295c6b>=0x0;_0x295c6b--)(_0x4f99fa=_0x50375[_0x295c6b])&&(_0x5c0b2b=_0x4f99fa(_0x5c0b2b)||_0x5c0b2b);return _0x5c0b2b;},W=(_0x4fb2bf,_0x38e0b2)=>(_0x1c40a4,_0x3fcd5d)=>_0x38e0b2(_0x1c40a4,_0x3fcd5d,_0x4fb2bf);exports[_0x1ff7a2(0x1b0)]=class extends u[_0x1ff7a2(0x114)]{constructor(_0x2e1741,_0x5d3f67,_0x114cd1,_0x3c82c1,_0x253b95){super(_0x2e1741,_0x5d3f67,_0x114cd1,_0x3c82c1,_0x253b95);}async[_0x1ff7a2(0x215)](_0x4ffcb2){const _0xa21cd3=_0x1ff7a2,_0x46b91f=await this[_0xa21cd3(0x2b2)](),_0x238850=this[_0xa21cd3(0x28c)](_0x4ffcb2,_0x46b91f);return this[_0xa21cd3(0x131)](_0x238850);}[_0x1ff7a2(0x28c)](_0x33763d,_0x5c629d){const _0x3cb039=_0x1ff7a2,_0x245cd8=typeof window>'u'?new URL(_0x33763d):new URL(_0x33763d,window['location']['origin']);_0x245cd8[_0x3cb039(0x2e3)][_0x3cb039(0x1ef)](_0x3cb039(0x303),_0x5c629d);const _0x420df0=typeof window>'u'?new URLSearchParams():new URLSearchParams(window['location']['search']);return _0x420df0[_0x3cb039(0x2fc)](_0x3cb039(0x245))&&_0x245cd8[_0x3cb039(0x2e3)][_0x3cb039(0x1ef)](_0x3cb039(0x245),_0x420df0[_0x3cb039(0x2fc)]('runId')),_0x245cd8[_0x3cb039(0x32b)]();}async['_getSessionTicket'](){const _0x5b28a7=_0x1ff7a2;var _0x55729a,_0x16759f,_0x14a51b;const _0x3a5439=this[_0x5b28a7(0xf9)][_0x5b28a7(0x166)](u[_0x5b28a7(0x193)]),_0x39c479=(_0x55729a=_0x3a5439==null?void 0x0:_0x3a5439[_0x5b28a7(0x277)])!=null?_0x55729a:u[_0x5b28a7(0x2d4)];return(_0x14a51b=(_0x16759f=(await this['_httpService'][_0x5b28a7(0x2fc)](_0x39c479,{'headers':{'Content-Type':_0x5b28a7(0x17d)}}))['body'])==null?void 0x0:_0x16759f[_0x5b28a7(0x145)])!=null?_0x14a51b:'';}},exports[_0x1ff7a2(0x1b0)]=cs([W(0x0,a[_0x1ff7a2(0x1fa)](a[_0x1ff7a2(0x111)])),W(0x1,a['Inject'](q[_0x1ff7a2(0xf5)])),W(0x2,a['IConfigService']),W(0x3,a[_0x1ff7a2(0x1e3)]),W(0x4,m[_0x1ff7a2(0x271)])],exports[_0x1ff7a2(0x1b0)]);const Pe=0x7530,we='ACTIVE_UNIT_EVENT_CHANNEL';class ls extends a['Disposable']{constructor(){const _0x42498e=_0x1ff7a2;super(),h(this,'_id',a[_0x42498e(0x1f1)]()),h(this,_0x42498e(0x18d),new Set()),h(this,_0x42498e(0x2f9),new Map()),h(this,_0x42498e(0xd1),null),h(this,_0x42498e(0x275),new Map()),h(this,_0x42498e(0x12b),new Map()),this[_0x42498e(0xd4)]();}[_0x1ff7a2(0x1a8)](){const _0x651516=_0x1ff7a2;super[_0x651516(0x1a8)](),this[_0x651516(0x275)]['forEach']((_0x54f0db,_0x303c55)=>this[_0x651516(0xf4)](_0x303c55)),this[_0x651516(0xd1)]&&window[_0x651516(0x2e1)](this['_heartbeatTimer']);}[_0x1ff7a2(0x158)](_0x464adf){const _0x53801f=_0x1ff7a2;return this[_0x53801f(0x203)](_0x464adf)['pipe'](d[_0x53801f(0x322)]());}[_0x1ff7a2(0x272)](_0x60832f){const _0x46941d=_0x1ff7a2;this[_0x46941d(0x18d)][_0x46941d(0x312)]===0x0&&this['_scheduleHeartbeat'](),this[_0x46941d(0x18d)]['add'](_0x60832f),this[_0x46941d(0x318)]({'type':0x0,'memberID':this[_0x46941d(0x349)],'unitIDs':[_0x60832f],'isForwarded':!0x1});}[_0x1ff7a2(0x139)](_0x2a3b6e){const _0x4b024e=_0x1ff7a2;this[_0x4b024e(0x18d)][_0x4b024e(0x28e)](_0x2a3b6e),this[_0x4b024e(0x18d)]['size']===0x0&&this[_0x4b024e(0xd1)]&&window['clearInterval'](this[_0x4b024e(0xd1)]);}[_0x1ff7a2(0xd4)](){const _0x576ab6=_0x1ff7a2;this[_0x576ab6(0x2ce)](a[_0x576ab6(0x33f)](d['fromEvent'](window,'storage')[_0x576ab6(0x124)](_0x589223=>{const _0x235ea6=_0x576ab6;if(_0x589223[_0x235ea6(0x162)]!==we||!_0x589223[_0x235ea6(0x2c0)])return;const _0x591b14=JSON[_0x235ea6(0x206)](_0x589223[_0x235ea6(0x2c0)]);this[_0x235ea6(0x108)](_0x591b14);}))),window[_0x576ab6(0x34c)](_0x576ab6(0xfc),()=>this[_0x576ab6(0x318)]({'type':0x1,'memberID':this[_0x576ab6(0x349)],'unitIDs':Array[_0x576ab6(0x192)](this[_0x576ab6(0x18d)])}));}[_0x1ff7a2(0x108)](_0x2767df){const _0x17bb8b=_0x1ff7a2;switch(_0x2767df['type']){case 0x0:this[_0x17bb8b(0x20a)](_0x2767df);break;case 0x1:this[_0x17bb8b(0x216)](_0x2767df);break;case 0x2:this[_0x17bb8b(0x2b7)](_0x2767df);break;}}['_handleJoinEvent'](_0x5ec2a2){const _0x541a10=_0x1ff7a2,{unitIDs:_0x5445b5,memberID:_0x45e1c9,isForwarded:_0x4057d6}=_0x5ec2a2;_0x5445b5[_0x541a10(0x1ea)](_0x4e6be5=>{const _0x49d22a=_0x541a10;if(!_0x4057d6&&this['_unitOnClients'][_0x49d22a(0x21d)](_0x4e6be5)&&this[_0x49d22a(0x203)](_0x4e6be5)[_0x49d22a(0x1af)](u['UnitStatus'][_0x49d22a(0x2d3)]),!this['_unitOnClients'][_0x49d22a(0x21d)](_0x4e6be5)||!this[_0x49d22a(0x2f9)]['get'](_0x4e6be5)[_0x49d22a(0x21d)](_0x45e1c9)){const _0x553cb=this['_unitOnClients'][_0x49d22a(0x2fc)](_0x4e6be5)||new Set();_0x553cb[_0x49d22a(0x274)](_0x45e1c9),this[_0x49d22a(0x2f9)][_0x49d22a(0x1ef)](_0x4e6be5,_0x553cb),this[_0x49d22a(0x221)](_0x45e1c9);}}),_0x4057d6||this[_0x541a10(0x318)]({'type':0x0,'memberID':this[_0x541a10(0x349)],'unitIDs':[...this['_selfUnitIDs']],'isForwarded':!0x0});}[_0x1ff7a2(0x221)](_0x43ccdb){const _0x1ff09d=_0x1ff7a2;this[_0x1ff09d(0xf4)](_0x43ccdb);const _0x41d786=window[_0x1ff09d(0x173)](()=>{const _0x591c0c=_0x1ff09d;this['_unitOnClients'][_0x591c0c(0x1ea)](_0x296533=>{_0x296533['delete'](_0x43ccdb);});},Pe*0x2);this[_0x1ff09d(0x275)][_0x1ff09d(0x1ef)](_0x43ccdb,_0x41d786);}['_removeClearOtherTimer'](_0x1516a0){const _0x1802b2=_0x1ff7a2;if(this[_0x1802b2(0x275)][_0x1802b2(0x21d)](_0x1516a0)){const _0x25f38a=this[_0x1802b2(0x275)][_0x1802b2(0x2fc)](_0x1516a0);_0x25f38a&&window[_0x1802b2(0x2c9)](_0x25f38a),this[_0x1802b2(0x275)][_0x1802b2(0x1ef)](_0x1516a0,null);}}[_0x1ff7a2(0x216)](_0x4a6512){const _0x235e91=_0x1ff7a2,{memberID:_0x408bd3,unitIDs:_0xf1510a}=_0x4a6512;_0xf1510a[_0x235e91(0x1ea)](_0x579ea3=>{const _0x33105f=_0x235e91;var _0x32171b;const _0x13d3ce=this[_0x33105f(0x2f9)][_0x33105f(0x2fc)](_0x579ea3);_0x13d3ce&&(_0x13d3ce[_0x33105f(0x28e)](_0x408bd3),(_0x32171b=this[_0x33105f(0x203)](_0x579ea3))==null||_0x32171b['next'](_0x13d3ce[_0x33105f(0x312)]===0x0?u['UnitStatus'][_0x33105f(0x321)]:u[_0x33105f(0x182)]['OTHER_CLIENTS_EDITING']));}),this[_0x235e91(0xf4)](_0x408bd3);}[_0x1ff7a2(0x2b7)](_0x3bde08){const _0x1adad0=_0x1ff7a2;this['_scheduleClearOtherTimer'](_0x3bde08[_0x1adad0(0xd3)]);}[_0x1ff7a2(0x318)](_0x344ad0){const _0x258ec2=_0x1ff7a2;localStorage[_0x258ec2(0x227)](we,JSON['stringify'](_0x344ad0));}[_0x1ff7a2(0x155)](){const _0x4cf24a=_0x1ff7a2;this[_0x4cf24a(0xd1)]=window[_0x4cf24a(0x16f)](()=>{const _0x19b9cb=_0x4cf24a;this[_0x19b9cb(0x318)]({'type':0x2,'memberID':this['_id']});},Pe);}[_0x1ff7a2(0x203)](_0x148f97){const _0x4347e8=_0x1ff7a2;return this['_unitStatus'][_0x4347e8(0x21d)](_0x148f97)||this[_0x4347e8(0x12b)][_0x4347e8(0x1ef)](_0x148f97,new d[(_0x4347e8(0x2f0))](u[_0x4347e8(0x182)]['NO_OTHER_CLIENTS_EDITING'])),this[_0x4347e8(0x12b)][_0x4347e8(0x2fc)](_0x148f97);}}var Be=(_0x2d2752=>(_0x2d2752[_0x2d2752[_0x1ff7a2(0x1d2)]=0x0]='UNDEFINED',_0x2d2752[_0x2d2752['OK']=0x1]='OK',_0x2d2752[_0x2d2752[_0x1ff7a2(0x2f8)]=0x2]=_0x1ff7a2(0x2f8),_0x2d2752[_0x2d2752[_0x1ff7a2(0x280)]=0x3]=_0x1ff7a2(0x280),_0x2d2752[_0x2d2752[_0x1ff7a2(0x150)]=0x4]=_0x1ff7a2(0x150),_0x2d2752[_0x2d2752['UNAUTHENTICATED']=0x5]=_0x1ff7a2(0x354),_0x2d2752[_0x2d2752['ALREADY_EXISTS']=0x6]=_0x1ff7a2(0x113),_0x2d2752[_0x2d2752[_0x1ff7a2(0x1c7)]=0x7]=_0x1ff7a2(0x1c7),_0x2d2752[_0x2d2752[_0x1ff7a2(0x21b)]=0x8]=_0x1ff7a2(0x21b),_0x2d2752[_0x2d2752[_0x1ff7a2(0x319)]=0x9]=_0x1ff7a2(0x319),_0x2d2752[_0x2d2752[_0x1ff7a2(0x24d)]=0xa]='LOGIN_FAILED',_0x2d2752[_0x2d2752[_0x1ff7a2(0x18a)]=0x1389]='CHANGESET_REVISION_CONFILICT',_0x2d2752[_0x2d2752[_0x1ff7a2(0x2ac)]=0x1771]=_0x1ff7a2(0x2ac),_0x2d2752[_0x2d2752[_0x1ff7a2(0x2f2)]=0x1772]=_0x1ff7a2(0x2f2),_0x2d2752[_0x2d2752[_0x1ff7a2(0x235)]=0x1773]='ENSURE_SNAPSHOT_EXECUTION',_0x2d2752[_0x2d2752[_0x1ff7a2(0x171)]=0x1b59]=_0x1ff7a2(0x171),_0x2d2752[_0x2d2752['APPLY_NON_SEQUENTIAL_REVISION']=0x1b5a]=_0x1ff7a2(0x2d6),_0x2d2752[_0x2d2752[_0x1ff7a2(0x16d)]=0x1b5b]=_0x1ff7a2(0x16d),_0x2d2752[_0x2d2752[_0x1ff7a2(0x177)]=0x1b5c]=_0x1ff7a2(0x177),_0x2d2752[_0x2d2752[_0x1ff7a2(0xd8)]=0x1b5d]=_0x1ff7a2(0xd8),_0x2d2752[_0x2d2752[_0x1ff7a2(0x20d)]=0x1f41]=_0x1ff7a2(0x20d),_0x2d2752[_0x2d2752[_0x1ff7a2(0x1cf)]=0x2329]='LICENSE_MAX_UNITS_EXCEEDED',_0x2d2752[_0x2d2752[_0x1ff7a2(0x1f4)]=0x232a]=_0x1ff7a2(0x1f4),_0x2d2752[_0x2d2752[_0x1ff7a2(0x122)]=0x232b]=_0x1ff7a2(0x122),_0x2d2752[_0x2d2752[_0x1ff7a2(0x157)]=0x232c]=_0x1ff7a2(0x157),_0x2d2752[_0x2d2752[_0x1ff7a2(0x2a0)]=0x232d]=_0x1ff7a2(0x2a0),_0x2d2752[_0x2d2752[_0x1ff7a2(0x320)]=0x2711]=_0x1ff7a2(0x320),_0x2d2752[_0x2d2752[_0x1ff7a2(0x2c7)]=0x2712]=_0x1ff7a2(0x2c7),_0x2d2752[_0x2d2752[_0x1ff7a2(0x225)]=0x2713]='YUUMI_RATE_OVER_LIMIT',_0x2d2752[_0x2d2752[_0x1ff7a2(0x25b)]=0x2714]=_0x1ff7a2(0x25b),_0x2d2752[_0x2d2752[_0x1ff7a2(0x2c2)]=0x2af9]=_0x1ff7a2(0x2c2),_0x2d2752[_0x2d2752['INVITE_CODE_HAS_BEEN_UES']=0x2ee1]=_0x1ff7a2(0x33a),_0x2d2752[_0x2d2752['INVALID_INVITE_CODE']=0x2ee2]='INVALID_INVITE_CODE',_0x2d2752[_0x2d2752[_0x1ff7a2(0xf3)]=0x2ee3]=_0x1ff7a2(0xf3),_0x2d2752[_0x2d2752[_0x1ff7a2(0xda)]=0x2ee4]='USER_NOT_INVITED_CODE',_0x2d2752[_0x2d2752[_0x1ff7a2(0x258)]=0x2ee5]=_0x1ff7a2(0x258),_0x2d2752[_0x2d2752['UNRECOGNIZED']=-0x1]='UNRECOGNIZED',_0x2d2752))(Be||{}),hs=Object[_0x1ff7a2(0x167)],_s=(_0x10c667,_0x1219b9,_0xc21d18,_0x1d113e)=>{for(var _0x1cf741=_0x1d113e>0x1?void 0x0:_0x1d113e?hs(_0x1219b9,_0xc21d18):_0x1219b9,_0x319428=_0x10c667['length']-0x1,_0x231be5;_0x319428>=0x0;_0x319428--)(_0x231be5=_0x10c667[_0x319428])&&(_0x1cf741=_0x231be5(_0x1cf741)||_0x1cf741);return _0x1cf741;},de=(_0x895a63,_0x2a1ab2)=>(_0x1909d4,_0x4e6fcb)=>_0x2a1ab2(_0x1909d4,_0x4e6fcb,_0x895a63);exports[_0x1ff7a2(0xf1)]=class extends a['Disposable']{constructor(_0x2b9b6f,_0x136b8f,_0x33de99){const _0x2ef0c8=_0x1ff7a2;super(),this[_0x2ef0c8(0x15b)]=_0x2b9b6f,this[_0x2ef0c8(0xd7)]=_0x136b8f,this[_0x2ef0c8(0xf9)]=_0x33de99;}async['runOnServer'](_0x1cba70,_0x3a47d6,_0x5c8158,..._0x477ee5){const _0x1f04de=_0x1ff7a2;var _0x537f3b,_0x35ce0d,_0x4ab434,_0x5afb42;const _0x1f9605=this[_0x1f04de(0x15b)][_0x1f04de(0x2bb)]();if(!_0x1f9605)throw new Error(_0x1f04de(0x220));const _0x3bd01f=((_0x537f3b=this[_0x1f04de(0xf9)][_0x1f04de(0x166)](u['REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY']))!=null?_0x537f3b:u[_0x1f04de(0x2d5)])+'/'+_0x1cba70+_0x1f04de(0x233)+_0x3a47d6,_0x4d66ee=new URL(window['location'][_0x1f04de(0x21c)]),_0x596f17={'scriptId':_0x1cba70,'runId':(_0x35ce0d=_0x4d66ee[_0x1f04de(0x2e3)][_0x1f04de(0x2fc)](_0x1f04de(0x245)))!=null?_0x35ce0d:'','function':_0x3a47d6,'unitId':_0x1f9605[_0x1f04de(0x121)](),'argsOfFunction':JSON['stringify'](_0x477ee5),'invokeId':(_0x4ab434=_0x5c8158[_0x1f04de(0x194)])!=null?_0x4ab434:'','executionId':(_0x5afb42=_0x5c8158[_0x1f04de(0x1c5)])!=null?_0x5afb42:''};try{const _0x192510=await this[_0x1f04de(0xd7)][_0x1f04de(0x2b1)](_0x3bd01f,{'body':_0x596f17});return _0x192510[_0x1f04de(0x295)]['error']&&_0x192510[_0x1f04de(0x295)]['error'][_0x1f04de(0x1be)]!==Be['OK']?_0x1f04de(0x144):_0x192510[_0x1f04de(0x295)]['result'];}catch{return _0x1f04de(0x144);}}},exports['RemoteUniscriptService']=_s([de(0x0,a[_0x1ff7a2(0x21f)]),de(0x1,a[_0x1ff7a2(0x1fa)](q['HTTPService'])),de(0x2,a[_0x1ff7a2(0x190)])],exports[_0x1ff7a2(0xf1)]),exports[_0x1ff7a2(0x133)]=je,exports['IURLService']=Ee,exports[_0x1ff7a2(0x1ed)]=Ae,exports[_0x1ff7a2(0x19c)]=ls,exports['WebURLService']=ke;
|
package/lib/cjs/locale/en-US.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';
|
|
1
|
+
'use strict';const _0x3764c9=_0x3dd8;(function(_0x4fe91c,_0x138fc8){const _0x171f85=_0x3dd8,_0xb071da=_0x4fe91c();while(!![]){try{const _0x116fc8=parseInt(_0x171f85(0x1a8))/0x1*(-parseInt(_0x171f85(0x198))/0x2)+parseInt(_0x171f85(0x1ac))/0x3+-parseInt(_0x171f85(0x19a))/0x4*(-parseInt(_0x171f85(0x1a0))/0x5)+-parseInt(_0x171f85(0x1ab))/0x6+-parseInt(_0x171f85(0x19b))/0x7+parseInt(_0x171f85(0x1a4))/0x8+parseInt(_0x171f85(0x1a2))/0x9;if(_0x116fc8===_0x138fc8)break;else _0xb071da['push'](_0xb071da['shift']());}catch(_0x2e5347){_0xb071da['push'](_0xb071da['shift']());}}}(_0x1942,0xe6a1f));function _0x1942(){const _0x53c982=['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.','2615708PZktIE','12043626IMTJcv','Syncing\x20server\x20data...','Collaboration\x20room\x20is\x20full.\x20You\x20edits\x20would\x20be\x20saved\x20locally.','The\x20server\x20is\x20not\x20responding\x20to\x20your\x20collaboration\x20request.\x20Your\x20edits\x20would\x20be\x20saved\x20locally.','Edit\x20conflicts','10OvKNWN','Authentication\x20Error','25204473uphobL','exports','12106392FpJHLD','Offline,\x20edits\x20would\x20be\x20save\x20on\x20local','Click\x20to\x20Reconnect','You\x20opened\x20the\x20same\x20file\x20in\x20another\x20tab.\x20In\x20case\x20of\x20data\x20missing,\x20you\x20cannot\x20edit\x20on\x20this\x20tab.','1823661mNLiCt','Collaboration\x20Conflict','Your\x20login\x20has\x20expired,\x20click\x20OK\x20to\x20re-login,\x20click\x20Cancel\x20to\x20save\x20your\x20local\x20edits.','7056366ImMJlQ','129783TWUwep','Syncing...','Editing\x20privileges\x20were\x20revoked\x20because\x20the\x20collaborative\x20room\x20was\x20closed.','Synced','2KeJtyd'];_0x1942=function(){return _0x53c982;};return _0x1942();}function _0x3dd8(_0x2e9869,_0x56a1b1){const _0x194258=_0x1942();return _0x3dd8=function(_0x3dd8e5,_0x3e1184){_0x3dd8e5=_0x3dd8e5-0x198;let _0x5b428a=_0x194258[_0x3dd8e5];return _0x5b428a;},_0x3dd8(_0x2e9869,_0x56a1b1);}const e={'collab-client':{'tooltip':{'reconnect':_0x3764c9(0x1a6)}},'collabStatus':{'fetchMiss':_0x3764c9(0x19c),'conflict':_0x3764c9(0x19f),'notCollab':'Local\x20file','synced':_0x3764c9(0x1af),'syncing':_0x3764c9(0x1ad),'offline':_0x3764c9(0x1a5)},'session':{'connection-failed':'Connection\x20failed,\x20please\x20check\x20your\x20network.','will-retry':'Connection\x20failed,\x20we\x20retry\x20in\x20a\x20while.','room-full':_0x3764c9(0x19d),'collaboration-timeout':_0x3764c9(0x19e)},'conflict':{'title':_0x3764c9(0x1a9),'content':_0x3764c9(0x199)},'permission':{'title':_0x3764c9(0x1a1),'content':'Your\x20actions\x20are\x20conflicting\x20with\x20the\x20server\x27s\x20permissions.\x20Please\x20save\x20your\x20local\x20edits\x20elsewhere\x20as\x20they\x20will\x20be\x20discarded\x20after\x20refreshing\x20the\x20page.'},'collaboration':{'single-unit':{'warning':_0x3764c9(0x1a7)},'closeRoom':_0x3764c9(0x1ae)},'auth':{'needGotoLoginAlert':_0x3764c9(0x1aa)}};module[_0x3764c9(0x1a3)]=e;
|