@univerjs-pro/collaboration-client-ui 0.10.2 → 0.10.3-experimental.20250812-b4b6f1a
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/cjs/facade.js +1 -1
- package/lib/cjs/index.js +1 -1
- package/lib/cjs/locale/ca-ES.js +1 -1
- package/lib/cjs/locale/en-US.js +1 -1
- package/lib/cjs/locale/es-ES.js +1 -1
- package/lib/cjs/locale/fa-IR.js +1 -1
- package/lib/cjs/locale/fr-FR.js +1 -1
- package/lib/cjs/locale/ko-KR.js +1 -1
- package/lib/cjs/locale/ru-RU.js +1 -1
- package/lib/cjs/locale/vi-VN.js +1 -1
- package/lib/cjs/locale/zh-CN.js +1 -1
- package/lib/cjs/locale/zh-TW.js +1 -1
- package/lib/es/facade.js +1 -1
- package/lib/es/index.js +1 -1
- package/lib/es/locale/ca-ES.js +1 -1
- package/lib/es/locale/en-US.js +1 -1
- package/lib/es/locale/es-ES.js +1 -1
- package/lib/es/locale/fa-IR.js +1 -1
- package/lib/es/locale/fr-FR.js +1 -1
- package/lib/es/locale/ko-KR.js +1 -1
- package/lib/es/locale/ru-RU.js +1 -1
- package/lib/es/locale/vi-VN.js +1 -1
- package/lib/es/locale/zh-CN.js +1 -1
- package/lib/es/locale/zh-TW.js +1 -1
- package/lib/facade.js +1 -1
- package/lib/index.js +1 -1
- package/lib/locale/ca-ES.js +1 -1
- package/lib/locale/en-US.js +1 -1
- package/lib/locale/es-ES.js +1 -1
- package/lib/locale/fa-IR.js +1 -1
- package/lib/locale/fr-FR.js +1 -1
- package/lib/locale/ko-KR.js +1 -1
- package/lib/locale/ru-RU.js +1 -1
- package/lib/locale/vi-VN.js +1 -1
- package/lib/locale/zh-CN.js +1 -1
- package/lib/locale/zh-TW.js +1 -1
- package/lib/types/index.d.ts +5 -5
- package/lib/umd/facade.js +1 -1
- package/lib/umd/index.js +1 -1
- package/lib/umd/locale/ca-ES.js +1 -1
- package/lib/umd/locale/en-US.js +1 -1
- package/lib/umd/locale/es-ES.js +1 -1
- package/lib/umd/locale/fa-IR.js +1 -1
- package/lib/umd/locale/fr-FR.js +1 -1
- package/lib/umd/locale/ko-KR.js +1 -1
- package/lib/umd/locale/ru-RU.js +1 -1
- package/lib/umd/locale/vi-VN.js +1 -1
- package/lib/umd/locale/zh-CN.js +1 -1
- package/lib/umd/locale/zh-TW.js +1 -1
- package/package.json +16 -16
package/lib/cjs/facade.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';function _0x2ff3(){const _0x455feb=['RemoteUniscriptService','3309048jfTcaY','110922ChfnNp','FUniver','extend','runOnServer','4dKbLWU','2481795kNKXKW','9CZXQUR','1591990NHTUYv','619226HFKFky','1440984TJEqvp','_injector','1493403Rtxwgs','72zIJNsA'];_0x2ff3=function(){return _0x455feb;};return _0x2ff3();}const _0x29197f=_0x1cb9;(function(_0x224308,_0x566d98){const _0x4376c7=_0x1cb9,_0x36a2dd=_0x224308();while(!![]){try{const _0x2c3229=parseInt(_0x4376c7(0x16a))/0x1+-parseInt(_0x4376c7(0x15c))/0x2+-parseInt(_0x4376c7(0x15e))/0x3*(parseInt(_0x4376c7(0x166))/0x4)+parseInt(_0x4376c7(0x167))/0x5+parseInt(_0x4376c7(0x161))/0x6+-parseInt(_0x4376c7(0x162))/0x7*(-parseInt(_0x4376c7(0x15f))/0x8)+-parseInt(_0x4376c7(0x168))/0x9*(parseInt(_0x4376c7(0x169))/0xa);if(_0x2c3229===_0x566d98)break;else _0x36a2dd['push'](_0x36a2dd['shift']());}catch(_0x351409){_0x36a2dd['push'](_0x36a2dd['shift']());}}}(_0x2ff3,0x69857));function _0x1cb9(_0x3733b1,_0x437095){const _0x2ff387=_0x2ff3();return _0x1cb9=function(_0x1cb93a,_0x33978b){_0x1cb93a=_0x1cb93a-0x15c;let _0x2db559=_0x2ff387[_0x1cb93a];return _0x2db559;},_0x1cb9(_0x3733b1,_0x437095);}const t=require('@univerjs-pro/collaboration-client-ui'),e=require('@univerjs/core/facade');class c extends e['FUniver']{[_0x29197f(0x165)](_0x19a3c7,_0x4248c7,..._0x369309){const _0x1a62a0=_0x29197f;return this[_0x1a62a0(0x15d)]['get'](t[_0x1a62a0(0x160)])[_0x1a62a0(0x165)](_0x19a3c7,_0x4248c7,{},..._0x369309);}}e[_0x29197f(0x163)][_0x29197f(0x164)](c);
|
package/lib/cjs/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const _0x598bd7=_0x1844;(function(_0x29c838,_0x343080){const _0x185982=_0x1844,_0x1e3c92=_0x29c838();while(!![]){try{const _0x1f1834=-parseInt(_0x185982(0x2b2))/0x1*(parseInt(_0x185982(0x2cf))/0x2)+-parseInt(_0x185982(0x1c9))/0x3*(parseInt(_0x185982(0x385))/0x4)+-parseInt(_0x185982(0x36d))/0x5*(-parseInt(_0x185982(0x36a))/0x6)+-parseInt(_0x185982(0x2d6))/0x7+-parseInt(_0x185982(0x3c1))/0x8*(parseInt(_0x185982(0x3ea))/0x9)+parseInt(_0x185982(0x1d7))/0xa*(parseInt(_0x185982(0x421))/0xb)+parseInt(_0x185982(0x3e4))/0xc;if(_0x1f1834===_0x343080)break;else _0x1e3c92['push'](_0x1e3c92['shift']());}catch(_0x2e184c){_0x1e3c92['push'](_0x1e3c92['shift']());}}}(_0x4be8,0xb66e6));var We=Object[_0x598bd7(0x2d2)],Ve=(_0x11f27d,_0x370c7f,_0x59eebb)=>_0x370c7f in _0x11f27d?We(_0x11f27d,_0x370c7f,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x59eebb}):_0x11f27d[_0x370c7f]=_0x59eebb,h=(_0x17e83b,_0x13bfbf,_0x16974b)=>Ve(_0x17e83b,typeof _0x13bfbf!=_0x598bd7(0x314)?_0x13bfbf+'':_0x13bfbf,_0x16974b);Object['defineProperty'](exports,Symbol['toStringTag'],{'value':_0x598bd7(0x30e)});const u=require('@univerjs-pro/collaboration-client'),a=require('@univerjs/core'),p=require('@univerjs/engine-render'),K=require('@univerjs/network'),E=require('@univerjs/docs-ui'),Xe=require('@univerjs/drawing'),d=require('rxjs'),m=require('@univerjs-pro/collaboration'),Y=require('@univerjs/docs'),Ee=require('@univerjs/engine-formula'),g=require('@univerjs/sheets'),$=require('rxjs/operators'),G=require('@univerjs/sheets-ui'),P=require('react/jsx-runtime'),O=require('@univerjs/ui'),D=require('@univerjs/design'),M=require('react'),Ge=require('@univerjs/rpc');var Ke=Object['getOwnPropertyDescriptor'],qe=(_0x462363,_0x5a6c3b,_0xb1ae9c,_0xda2e52)=>{const _0x46579c=_0x598bd7;for(var _0x3bb2e4=_0xda2e52>0x1?void 0x0:_0xda2e52?Ke(_0x5a6c3b,_0xb1ae9c):_0x5a6c3b,_0x2fbc8a=_0x462363[_0x46579c(0x2a5)]-0x1,_0x4ac1ff;_0x2fbc8a>=0x0;_0x2fbc8a--)(_0x4ac1ff=_0x462363[_0x2fbc8a])&&(_0x3bb2e4=_0x4ac1ff(_0x3bb2e4)||_0x3bb2e4);return _0x3bb2e4;},be=(_0x30683e,_0x181aa3)=>(_0x1b6481,_0xa3c91b)=>_0x181aa3(_0x1b6481,_0xa3c91b,_0x30683e);let ue=class extends a[_0x598bd7(0x35b)]{constructor(_0x4175bc,_0x2de208){const _0x39a803=_0x598bd7;super(),this['_docClipboardService']=_0x4175bc,this[_0x39a803(0x261)]=_0x2de208,this[_0x39a803(0x2e3)]();}[_0x598bd7(0x2e3)](){const _0x24aa69=_0x598bd7,_0x424ef7=this;this[_0x24aa69(0x25e)](this['_docClipboardService'][_0x24aa69(0x34d)]({'onBeforePasteImage':async _0x33d2f3=>{const _0x159387=_0x24aa69,_0x51ad56=await _0x424ef7[_0x159387(0x261)][_0x159387(0x29f)](_0x33d2f3);return _0x51ad56?{'source':_0x51ad56['source'],'imageSourceType':_0x51ad56[_0x159387(0x3c0)]}:null;}}));}};ue=qe([be(0x0,E[_0x598bd7(0x2b0)]),be(0x1,Xe[_0x598bd7(0x2a0)])],ue);const Oe=[_0x598bd7(0x1f5),_0x598bd7(0x334),_0x598bd7(0x372),_0x598bd7(0x407),_0x598bd7(0x25c),_0x598bd7(0x347)];class ge extends a[_0x598bd7(0x3ef)]{constructor(){const _0x1e0666=_0x598bd7;super(...arguments),h(this,'_assignedColors',new Map()),h(this,_0x1e0666(0x40b),0x0);}[_0x598bd7(0x1dd)](_0x30c1c4){const _0x35946e=_0x598bd7;if(this[_0x35946e(0x1ed)]['has'](_0x30c1c4))return this[_0x35946e(0x1ed)][_0x35946e(0x402)](_0x30c1c4);const _0x3356da=Oe[this[_0x35946e(0x40b)]];return this['_colorIndex']=(this['_colorIndex']+0x1)%Oe['length'],this[_0x35946e(0x1ed)][_0x35946e(0x2fa)](_0x30c1c4,_0x3356da),_0x3356da;}}function Pe(_0x4497bd){let _0x3b475a='';for(const _0x25f17f of _0x4497bd){const {startOffset:_0x536225,endOffset:_0x50f1e1,isActive:_0x555265,rangeType:_0x59ce4c,segmentId:_0x1d459d,segmentPage:_0x5cd880}=_0x25f17f;_0x3b475a['length']&&(_0x3b475a+=','),_0x3b475a+=_0x536225+':'+_0x50f1e1+':'+(_0x555265?'1':'0')+':'+_0x59ce4c+':'+_0x1d459d+':'+_0x5cd880;}return _0x3b475a;}function ze(_0x36c356){const _0x4735a6=_0x598bd7,_0x318995=_0x36c356[_0x4735a6(0x377)](','),_0x3c7d2c=[];for(const _0x2cb5f4 of _0x318995){const [_0x1c1998,_0x1650a7,_0x427039,_0x3960af,_0x2dd5d4,_0xfc786f]=_0x2cb5f4[_0x4735a6(0x377)](':');_0x3c7d2c['push']({'startOffset':Number(_0x1c1998),'endOffset':Number(_0x1650a7),'collapsed':_0x1c1998===_0x1650a7,'isActive':_0x427039==='1','rangeType':_0x3960af===a[_0x4735a6(0x38d)][_0x4735a6(0x224)]?a[_0x4735a6(0x38d)]['TEXT']:a[_0x4735a6(0x38d)][_0x4735a6(0x21c)],'segmentId':typeof _0x2dd5d4=='string'?String(_0x2dd5d4):'','segmentPage':Number(_0xfc786f!=null?_0xfc786f:-0x1)});}return _0x3c7d2c[_0x4735a6(0x331)](_0x40a6ec=>_0x40a6ec[_0x4735a6(0x3bb)])||(_0x3c7d2c[0x0][_0x4735a6(0x3bb)]=!0x0),_0x3c7d2c;}function _0x1844(_0x3bbb1b,_0x128117){const _0x4be8ba=_0x4be8();return _0x1844=function(_0x1844a5,_0x264ecd){_0x1844a5=_0x1844a5-0x1ad;let _0x5e596d=_0x4be8ba[_0x1844a5];return _0x5e596d;},_0x1844(_0x3bbb1b,_0x128117);}class me extends a[_0x598bd7(0x35b)]{constructor(){const _0x5d59a4=_0x598bd7;super(...arguments),h(this,_0x5d59a4(0x2d1),new d[(_0x5d59a4(0x2ee))](null)),h(this,_0x5d59a4(0x299),this[_0x5d59a4(0x2d1)]['asObservable']());}[_0x598bd7(0x313)](_0x383664){const _0x21bba5=_0x598bd7,{unitID:_0x57054a,memberID:_0x3bde9e,textRanges:_0x5f0b5a}=_0x383664,_0x212a26=Pe(_0x5f0b5a);if(_0x212a26==='')return;const _0x21568c={'unitID':_0x57054a,'memberID':_0x3bde9e,'selection':_0x212a26};this['_collabCursorState$'][_0x21bba5(0x2bd)](_0x21568c);}}var Je=Object[_0x598bd7(0x2e2)],Ze=(_0x2b26de,_0xb551d5,_0x19966d,_0x4e30bf)=>{const _0x12640f=_0x598bd7;for(var _0x3e421f=_0x4e30bf>0x1?void 0x0:_0x4e30bf?Je(_0xb551d5,_0x19966d):_0xb551d5,_0x561981=_0x2b26de[_0x12640f(0x2a5)]-0x1,_0x704867;_0x561981>=0x0;_0x561981--)(_0x704867=_0x2b26de[_0x561981])&&(_0x3e421f=_0x704867(_0x3e421f)||_0x3e421f);return _0x3e421f;},L=(_0x281de7,_0x33aaa9)=>(_0x179e05,_0x2359fb)=>_0x33aaa9(_0x179e05,_0x2359fb,_0x281de7);const Qe=0x12c,et=0x64;let de=class extends a['RxDisposable']{constructor(_0x441209,_0x264e21,_0x51d082,_0x23f100,_0xdc5352,_0x3ed72d,_0x4d6305,_0x536bb0,_0x5b7ad5){const _0xe47b29=_0x598bd7;super(),h(this,_0xe47b29(0x336),!0x1),h(this,'_init',!0x1),h(this,_0xe47b29(0x398),new d[(_0xe47b29(0x2ee))](new Map())),h(this,'cursorInfo$',this[_0xe47b29(0x398)][_0xe47b29(0x1cb)]()),h(this,_0xe47b29(0x1c2),new d[(_0xe47b29(0x2ee))]([])),h(this,_0xe47b29(0x265),this['_roomMembers$'][_0xe47b29(0x429)](d[_0xe47b29(0x20b)](Qe))),h(this,_0xe47b29(0x218),a[_0xe47b29(0x40f)](_0x136fe5=>{const _0xf467d7=_0xe47b29,_0x4d1c79={'eventID':m['CollaborationEvent']['UPDATE_CURSOR'],'data':{'unitID':this['unitID'],'memberID':this['_session'][_0xf467d7(0x3d7)](),'selection':Pe(_0x136fe5)}};this[_0xf467d7(0x3c5)][_0xf467d7(0x1f4)](_0x4d1c79,this['unitID']);},et)),(this['unitID']=_0x441209,this['_session']=_0x264e21,this[_0xe47b29(0x32b)]=_0x51d082,this[_0xe47b29(0x1d4)]=_0x23f100,this['_memberService']=_0xdc5352,this[_0xe47b29(0x24a)]=_0x3ed72d,this[_0xe47b29(0x412)]=_0x4d6305,this[_0xe47b29(0x2a2)]=_0x536bb0,this['_commandService']=_0x5b7ad5);}get[_0x598bd7(0x20c)](){const _0x4ab560=_0x598bd7;return this[_0x4ab560(0x398)]['getValue']();}get['roomMembers'](){const _0x29d54b=_0x598bd7;return this[_0x29d54b(0x1c2)][_0x29d54b(0x251)]();}[_0x598bd7(0x35a)](){const _0x3d5833=_0x598bd7;super['dispose'](),this[_0x3d5833(0x398)][_0x3d5833(0x2bd)](new Map()),this[_0x3d5833(0x398)][_0x3d5833(0x232)](),this[_0x3d5833(0x1c2)]['next']([]),this[_0x3d5833(0x1c2)]['complete']();}[_0x598bd7(0x2f9)](){const _0x472a91=_0x598bd7;this[_0x472a91(0x2e3)]||(this[_0x472a91(0x2e3)]=!0x0,this[_0x472a91(0x3c5)][_0x472a91(0x33b)][_0x472a91(0x429)](d[_0x472a91(0x2c6)](this['dispose$']))[_0x472a91(0x37c)](_0x5caad7=>{const _0x3e43b0=_0x472a91;_0x5caad7===u[_0x3e43b0(0x2ae)][_0x3e43b0(0x240)]?this[_0x3e43b0(0x416)]():this[_0x3e43b0(0x262)]();}),this[_0x472a91(0x3c5)][_0x472a91(0x24c)]['pipe'](d[_0x472a91(0x2c6)](this[_0x472a91(0x39c)]))[_0x472a91(0x37c)](_0x39192b=>{const _0x3dec20=_0x472a91,_0x440217=_0x39192b[_0x3dec20(0x295)];_0x440217===m[_0x3dec20(0x290)][_0x3dec20(0x30b)]&&this['_onCursorUpdate'](_0x39192b),_0x440217===m[_0x3dec20(0x290)]['USERS_LEAVE']&&this[_0x3dec20(0x380)](_0x39192b);}),this['disposeWithMe'](this['_commandService'][_0x472a91(0x33d)](_0xd81240=>{const _0x1d7d01=_0x472a91,_0x176370=_0xd81240['params'];_0x176370!=null&&this[_0x1d7d01(0x336)]&&_0xd81240['id']===Y[_0x1d7d01(0x3ee)]['id']&&_0x176370[_0x1d7d01(0x325)]===this[_0x1d7d01(0x270)]&&_0x176370[_0x1d7d01(0x427)]===!0x1&&_0x176370[_0x1d7d01(0x298)][_0x1d7d01(0x2a5)]>0x0&&this[_0x1d7d01(0x218)](_0x176370[_0x1d7d01(0x298)]);})),this['_syncEditingCollabCursorService'][_0x472a91(0x299)][_0x472a91(0x429)](d[_0x472a91(0x2c6)](this['dispose$']))[_0x472a91(0x37c)](_0x47941c=>{const _0x1776cd=_0x472a91;if((_0x47941c==null?void 0x0:_0x47941c['unitID'])!==this[_0x1776cd(0x270)])return;const _0x114b1a={'eventID':m[_0x1776cd(0x290)][_0x1776cd(0x30b)],'data':_0x47941c};this[_0x1776cd(0x22a)](_0x114b1a);}),this[_0x472a91(0x25e)](this[_0x472a91(0x3d0)][_0x472a91(0x33d)](_0x265696=>{const _0x375287=_0x472a91;if(_0x265696['params']==null)return;const _0x5e06ae=_0x265696['params'];if(_0x265696['id']!==Y[_0x375287(0x32a)]['id']||_0x5e06ae[_0x375287(0x325)]!==this[_0x375287(0x270)])return;const _0x3c8e29={'id':_0x375287(0x1c0),'params':_0x5e06ae},_0x123659=this[_0x375287(0x20c)];for(const [_0x4f0634,_0x27596c]of _0x123659){const _0x4f59b1={'id':_0x375287(0x1c0),'params':{'unitId':this[_0x375287(0x270)],'actions':null,'textRanges':_0x27596c[_0x375287(0x298)]}},_0x47a678=this[_0x375287(0x412)]['transformMutation'](_0x3c8e29,_0x4f59b1,!0x1);if(m[_0x375287(0x1ec)](_0x47a678))throw _0x47a678[_0x375287(0x1f9)];_0x123659[_0x375287(0x2fa)](_0x4f0634,{..._0x27596c,'ranges':_0x47a678['m2Prime'][_0x375287(0x2e0)]['textRanges']});}queueMicrotask(()=>{const _0xb633c6=_0x375287;this[_0xb633c6(0x398)][_0xb633c6(0x2bd)](_0x123659);});})));}[_0x598bd7(0x22a)](_0x24e464){const _0x21082f=_0x598bd7;var _0x9b60c1,_0x2ed676;const {memberID:_0x5ebcd7,selection:_0x504de4}=_0x24e464['data'],_0x34778c=ze(_0x504de4),_0x590745=(_0x2ed676=(_0x9b60c1=this[_0x21082f(0x28b)][_0x21082f(0x1be)](this['unitID'],_0x5ebcd7))==null?void 0x0:_0x9b60c1[_0x21082f(0x258)])!=null?_0x2ed676:_0x21082f(0x302),_0x3be6a1={'color':this[_0x21082f(0x1d4)][_0x21082f(0x1dd)](_0x5ebcd7),'name':_0x590745,'ranges':_0x34778c},_0x2098c6=this[_0x21082f(0x20c)];_0x2098c6[_0x21082f(0x2fa)](_0x5ebcd7,_0x3be6a1),this[_0x21082f(0x398)]['next'](_0x2098c6);}['_onCursorDelete'](_0x127f0f){const _0x2864a4=_0x598bd7,{memberID:_0x5042bf}=_0x127f0f[_0x2864a4(0x33c)],_0x443e66=this[_0x2864a4(0x20c)];_0x443e66['delete'](_0x5042bf),this[_0x2864a4(0x398)][_0x2864a4(0x2bd)](_0x443e66);}[_0x598bd7(0x416)](){const _0x2efec2=_0x598bd7;var _0x4f51c1;if(this[_0x2efec2(0x336)]=!0x0,((_0x4f51c1=this[_0x2efec2(0x2a2)][_0x2efec2(0x35f)]())==null?void 0x0:_0x4f51c1['getUnitId']())!==this[_0x2efec2(0x270)])return;const _0x3dae02=this[_0x2efec2(0x32b)][_0x2efec2(0x402)](Y[_0x2efec2(0x393)])['getDocRanges']();Array[_0x2efec2(0x1d9)](_0x3dae02)&&_0x3dae02[_0x2efec2(0x2a5)]>0x0&&this[_0x2efec2(0x218)](_0x3dae02);}[_0x598bd7(0x262)](){const _0x34af1f=_0x598bd7;this[_0x34af1f(0x336)]=!0x1;}};de=Ze([L(0x2,a['Inject'](a[_0x598bd7(0x3cd)])),L(0x3,a['Inject'](ge)),L(0x4,a[_0x598bd7(0x2b5)](u[_0x598bd7(0x3be)])),L(0x5,a[_0x598bd7(0x2b5)](me)),L(0x6,m[_0x598bd7(0x272)]),L(0x7,a[_0x598bd7(0x306)]),L(0x8,a[_0x598bd7(0x370)])],de);var tt=Object['getOwnPropertyDescriptor'],st=(_0x5e4dcd,_0x9e2081,_0x4e01ef,_0x5ec1e3)=>{const _0x3ca8be=_0x598bd7;for(var _0x1529c4=_0x5ec1e3>0x1?void 0x0:_0x5ec1e3?tt(_0x9e2081,_0x4e01ef):_0x9e2081,_0x42e818=_0x5e4dcd[_0x3ca8be(0x2a5)]-0x1,_0x384673;_0x42e818>=0x0;_0x42e818--)(_0x384673=_0x5e4dcd[_0x42e818])&&(_0x1529c4=_0x384673(_0x1529c4)||_0x1529c4);return _0x1529c4;},A=(_0x3ab6ee,_0x1653aa)=>(_0x131d27,_0x4a816f)=>_0x1653aa(_0x131d27,_0x4a816f,_0x3ab6ee);const it=0x12c,nt=0x64,rt=()=>{let _0x4a3419=[],_0xe0e5fa=!0x1;return _0x3b6bc3=>{const _0x1a44db=_0x1844;_0x4a3419[_0x1a44db(0x2de)](_0x3b6bc3),_0xe0e5fa||(_0xe0e5fa=!0x0,setTimeout(()=>{const _0x412c92=_0x1a44db;_0x4a3419[_0x412c92(0x401)](_0x4854b3=>_0x4854b3()),_0x4a3419=[],_0xe0e5fa=!0x1;}));};};let Se=class extends a[_0x598bd7(0x35b)]{constructor(_0x3d9bae,_0x23db40,_0x483a6a,_0x36c75d,_0x538e87,_0x1a39ca,_0x16df28,_0x179863){const _0x1ae138=_0x598bd7;super(),h(this,'_online',!0x1),h(this,_0x1ae138(0x2e3),!0x1),h(this,_0x1ae138(0x398),new d[(_0x1ae138(0x2ee))](new Map())),h(this,_0x1ae138(0x281),this['_cursorInfo$'][_0x1ae138(0x1cb)]()),h(this,_0x1ae138(0x1c2),new d[(_0x1ae138(0x2ee))]([])),h(this,_0x1ae138(0x265),this[_0x1ae138(0x1c2)][_0x1ae138(0x429)](d[_0x1ae138(0x20b)](it))),h(this,'_updateLocalCursor',a[_0x1ae138(0x40f)]((_0x31b3f6,_0x340091)=>{const _0x6c0e18=_0x1ae138,_0xf7dcff={'eventID':m[_0x6c0e18(0x290)][_0x6c0e18(0x30b)],'data':{'unitID':this[_0x6c0e18(0x270)],'memberID':this[_0x6c0e18(0x3c5)][_0x6c0e18(0x3d7)](),'selection':Ee[_0x6c0e18(0x367)](_0x31b3f6,_0x340091['range'])}};this[_0x6c0e18(0x3c5)][_0x6c0e18(0x1f4)](_0xf7dcff,this[_0x6c0e18(0x270)]);},nt)),(this[_0x1ae138(0x270)]=_0x3d9bae,this[_0x1ae138(0x3c5)]=_0x23db40,this[_0x1ae138(0x32b)]=_0x483a6a,this['_colorAssignService']=_0x36c75d,this['_memberService']=_0x538e87,this[_0x1ae138(0x2a2)]=_0x1a39ca,this[_0x1ae138(0x3d0)]=_0x16df28,this[_0x1ae138(0x311)]=_0x179863);}get[_0x598bd7(0x20c)](){const _0x621a91=_0x598bd7;return this[_0x621a91(0x398)]['getValue']();}get['roomMembers'](){const _0x3e33e2=_0x598bd7;return this[_0x3e33e2(0x1c2)]['getValue']();}[_0x598bd7(0x35a)](){const _0x3b6a64=_0x598bd7;super['dispose'](),this[_0x3b6a64(0x398)][_0x3b6a64(0x2bd)](new Map()),this['_cursorInfo$'][_0x3b6a64(0x232)](),this[_0x3b6a64(0x1c2)][_0x3b6a64(0x2bd)]([]),this[_0x3b6a64(0x1c2)][_0x3b6a64(0x232)]();}[_0x598bd7(0x2f9)](){const _0x304fc8=_0x598bd7;this[_0x304fc8(0x2e3)]||(this[_0x304fc8(0x2e3)]=!0x0,this[_0x304fc8(0x3c5)][_0x304fc8(0x33b)][_0x304fc8(0x429)](d[_0x304fc8(0x2c6)](this[_0x304fc8(0x39c)]))[_0x304fc8(0x37c)](_0x45e0e7=>{const _0x2277fd=_0x304fc8;_0x45e0e7===u[_0x2277fd(0x2ae)][_0x2277fd(0x240)]?this[_0x2277fd(0x416)]():this[_0x2277fd(0x262)]();}),this[_0x304fc8(0x3c5)][_0x304fc8(0x24c)]['pipe'](d[_0x304fc8(0x2c6)](this[_0x304fc8(0x39c)]))[_0x304fc8(0x37c)](_0x746fa5=>{const _0x5bc192=_0x304fc8,_0x473410=_0x746fa5[_0x5bc192(0x295)];_0x473410===m[_0x5bc192(0x290)][_0x5bc192(0x30b)]&&this[_0x5bc192(0x22a)](_0x746fa5),_0x473410===m[_0x5bc192(0x290)][_0x5bc192(0x25d)]&&this[_0x5bc192(0x380)](_0x746fa5);}),this['_onRefRangeChange'](),this[_0x304fc8(0x25e)](this['_commandService'][_0x304fc8(0x33d)](_0x3d2187=>{const _0x151f65=_0x304fc8;if(this[_0x151f65(0x336)]&&_0x3d2187['id']===g[_0x151f65(0x247)]['id']&&_0x3d2187[_0x151f65(0x2e0)]['unitId']===this[_0x151f65(0x270)]){const _0x3d71d8=_0x3d2187[_0x151f65(0x2e0)];this['_updateLocalCursor'](_0x3d71d8[_0x151f65(0x29d)],_0x3d71d8[_0x151f65(0x1b1)][0x0]);}})));}['_onCursorUpdate'](_0x175e3d){const _0x2189af=_0x598bd7;var _0x5e4341,_0x22a42a;const {memberID:_0x4d0723,selection:_0x265515}=_0x175e3d[_0x2189af(0x33c)],{sheetName:_0x146cc8,range:_0xde72c5}=Ee[_0x2189af(0x3a3)](_0x265515),_0x58dcf6={'name':(_0x22a42a=(_0x5e4341=this[_0x2189af(0x28b)][_0x2189af(0x1be)](this[_0x2189af(0x270)],_0x4d0723))==null?void 0x0:_0x5e4341[_0x2189af(0x258)])!=null?_0x22a42a:'Unknown\x20user','range':this[_0x2189af(0x23d)](_0x146cc8,_0xde72c5),'sheetID':_0x146cc8,'color':this['_colorAssignService'][_0x2189af(0x1dd)](_0x4d0723),'selection':_0x265515},_0x1be616=this[_0x2189af(0x20c)];_0x1be616[_0x2189af(0x2fa)](_0x4d0723,_0x58dcf6),this[_0x2189af(0x398)][_0x2189af(0x2bd)](_0x1be616);}[_0x598bd7(0x380)](_0xe5d59c){const _0x11e33f=_0x598bd7,{memberID:_0x81344f}=_0xe5d59c[_0x11e33f(0x33c)],_0x2a069b=this[_0x11e33f(0x20c)];_0x2a069b['delete'](_0x81344f),this['_cursorInfo$']['next'](_0x2a069b);}[_0x598bd7(0x23d)](_0x4f28f5,_0x5e79da){const _0x490134=_0x598bd7;var _0x483aaf,_0x449e3b;const _0x5917df=(_0x449e3b=(_0x483aaf=this[_0x490134(0x2a2)]['getUniverSheetInstance'](this['unitID']))==null?void 0x0:_0x483aaf[_0x490134(0x1d2)](_0x4f28f5))==null?void 0x0:_0x449e3b[_0x490134(0x23c)]();return(_0x5917df==null?void 0x0:_0x5917df[_0x490134(0x428)](_0x55fa6e=>a['Rectangle']['contains'](_0x55fa6e,_0x5e79da)))||_0x5e79da;}[_0x598bd7(0x209)](){const _0x5055af=_0x598bd7,_0x39c68b=new a['DisposableCollection'](),_0x56bcbd=rt(),_0x48019b=()=>{const _0x555359=_0x1844;_0x39c68b[_0x555359(0x35a)]();const _0x14704e=(_0x166a4f,_0x16c36d,_0x4ec213,_0x1847b5)=>{const _0x3db767=_0x555359;let _0xcf839b=[];switch(_0x166a4f['id']){case g['EffectRefRangId']['DeleteRangeMoveLeftCommandId']:{_0xcf839b=g[_0x3db767(0x1b0)](_0x166a4f,_0x1847b5);break;}case g[_0x3db767(0x264)][_0x3db767(0x3f3)]:{_0xcf839b=g[_0x3db767(0x1fd)](_0x166a4f,_0x1847b5);break;}case g[_0x3db767(0x264)][_0x3db767(0x32f)]:{_0xcf839b=g[_0x3db767(0x329)](_0x166a4f,_0x1847b5);break;}case g[_0x3db767(0x264)][_0x3db767(0x3d8)]:{_0xcf839b=g['handleInsertRangeMoveDown'](_0x166a4f,_0x1847b5);break;}case g['EffectRefRangId']['InsertRangeMoveRightCommandId']:{_0xcf839b=g['handleInsertRangeMoveRight'](_0x166a4f,_0x1847b5);break;}case g['EffectRefRangId']['InsertRowCommandId']:{_0xcf839b=g['handleInsertRow'](_0x166a4f,_0x1847b5);break;}case g[_0x3db767(0x264)][_0x3db767(0x422)]:{_0xcf839b=g[_0x3db767(0x394)](_0x166a4f,_0x1847b5);break;}case g['EffectRefRangId'][_0x3db767(0x287)]:{_0xcf839b=g[_0x3db767(0x273)](_0x166a4f,_0x1847b5);break;}case g[_0x3db767(0x264)][_0x3db767(0x283)]:{_0xcf839b=g[_0x3db767(0x217)](_0x166a4f,_0x1847b5);break;}}const _0xce6a08=g['runRefRangeMutations'](_0xcf839b,_0x1847b5),_0x54f313=this[_0x3db767(0x20c)][_0x3db767(0x402)](_0x16c36d);if(_0x54f313&&_0xce6a08){const _0xd4b713={..._0x54f313,'range':_0xce6a08};this[_0x3db767(0x20c)]['set'](_0x16c36d,_0xd4b713),_0x56bcbd(()=>{const _0x4c7b34=_0x3db767,_0x3082cc=this[_0x4c7b34(0x311)]['registerRefRange'](_0xce6a08,_0x3e821e=>(_0x3082cc[_0x4c7b34(0x35a)](),_0x14704e(_0x3e821e,_0x16c36d,_0x4ec213,_0xce6a08)));_0x39c68b['add'](_0x3082cc);});}return{'redos':[],'undos':[]};};this[_0x555359(0x20c)][_0x555359(0x401)]((_0x3d239c,_0x4f0fc5)=>{const _0x4ce92c=_0x555359,{range:_0x29f487,sheetID:_0x47be29}=_0x3d239c,_0x428bf9=this[_0x4ce92c(0x311)][_0x4ce92c(0x27a)](_0x29f487,_0x1e5e22=>(_0x428bf9[_0x4ce92c(0x35a)](),_0x14704e(_0x1e5e22,_0x4f0fc5,_0x47be29,_0x29f487)));_0x39c68b[_0x4ce92c(0x305)](_0x428bf9);});};this['disposeWithMe'](a[_0x5055af(0x364)](this[_0x5055af(0x398)][_0x5055af(0x37c)](()=>{_0x48019b();})));}['_toggleOnline'](){const _0x3fd644=_0x598bd7;var _0x4c7471,_0x30a732;if(this[_0x3fd644(0x336)]=!0x0,((_0x4c7471=this[_0x3fd644(0x2a2)][_0x3fd644(0x35f)]())==null?void 0x0:_0x4c7471[_0x3fd644(0x320)]())!==this[_0x3fd644(0x270)])return;const _0x3143b5=(_0x30a732=this[_0x3fd644(0x32b)]['get'](g[_0x3fd644(0x1e1)])[_0x3fd644(0x3bf)]())==null?void 0x0:_0x30a732[0x0],_0x17872a=this[_0x3fd644(0x2a2)][_0x3fd644(0x387)](a[_0x3fd644(0x30f)][_0x3fd644(0x27f)])[_0x3fd644(0x269)]();_0x3143b5&&_0x17872a&&this['_updateLocalCursor'](_0x17872a['getSheetId'](),_0x3143b5);}[_0x598bd7(0x262)](){const _0x28d984=_0x598bd7;this[_0x28d984(0x336)]=!0x1;}};Se=st([A(0x2,a['Inject'](a[_0x598bd7(0x3cd)])),A(0x3,a[_0x598bd7(0x2b5)](ge)),A(0x4,a[_0x598bd7(0x2b5)](u[_0x598bd7(0x3be)])),A(0x5,a[_0x598bd7(0x306)]),A(0x6,a[_0x598bd7(0x370)]),A(0x7,a[_0x598bd7(0x2b5)](g[_0x598bd7(0x349)]))],Se);function _0x4be8(){const _0x55feda=['Unknown\x20user','_scheduleClearOtherTimer','_ensureSubject','add','IUniverInstanceService','drawWith','unsubscribe','CollaborationStatus','YUUMI_RATE_OVER_LIMIT','UPDATE_CURSOR','fillRule','ENSURE_SNAPSHOT_EXECUTION','Module','UniverInstanceType','_initResize','_refRangeService','NO_OTHER_CLIENTS_EDITING','syncEditingCollabCursor','symbol','color','Error','resize','YUUMI_ALL_TABLES_IS_INVALID','OnLineIcon','with','_handleHeartbeatEvent','SNAPSHOT_INVALID_SNAPSHOT','transformIMECache','_saveCache','setAlpha','getUnitId','href','undoState','on-line-icon','svg','unitId','_registerDependencies','Optional','_getSessionTicket','handleInsertCol','RichTextEditingMutation','_injector','post','registerBeforeClose','transform','InsertColCommandId','whenReady','some','off-line-icon_clip0_910_343','_urlService','jiqing.500','useDependency','_online','_initEvent','INVITE_CODE_HAS_BEEN_UES','pushState','session.collaboration-timeout','sessionStatus$','data','onCommandExecuted','_labelPosition','_transformPreviousActiveRange','_handleEvent','attrs','WECHAT_HAS_BEEN_BOUND','none','merge','WebURLService','USER_NOT_INVITED_CODE','yellow.400','DocStateChangeManagerService','RefRangeService','getCurrent','touchDependencies','_scene','addClipboardHook','Rect','assign','LocaleService','addObject','ILocalCacheService','YUUMI_TABLE_NOT_FOUND_IN_UNIT','hovered','transformByState','_scheduleHeartbeat','APPLY_REVISION_CONFILICT','RemoteUniscriptService','getSkeleton','dispose','RxDisposable','body','forwardRef','getCellPositionByOffset','getFocusedUnit','_range','MessageType','getUnitStatus$','Tooltip','toDisposable','transformStateCache','Vector2','serializeRangeWithSheet','CollaborationSocketService','LICENSE_EXPORT_SIZE_EXCEEDED','147966MYLwfB','IURLService','top','285fROqwl','replaceDocRanges','editingUnit','ICommandService','http://www.w3.org/2000/svg','green.600','HTTPService','_logService','Subject','_notificationService','split','LICENSE_IMPORT_SIZE_EXCEEDED','_unitOnClients','stringify','_unitStatus','subscribe','_instanceService','_uiPartsService','_docSkeleton','_onCursorDelete','CONFLICT','history','_removeClearOtherTimer','_docTransformStateCacheService','28erflnh','call','getCurrentUnitForType','onRendered','createInstance','UNIVER_DOC','from','getRelativeToViewportCoord','DOC_RANGE_TYPE','setItem','INotificationService','_document','CollaborationController','getOwnPropertySymbols','DocSelectionManagerService','handleMoveRange','generateRandomId','getRangePointData','_shapes','_cursorInfo$','_render','permission.content','CLOSE_ROOM','dispose$','searchParams','_cursor','NodePositionConvertToRectRange','use','getCoordByCell','memberID','deserializeRangeWithSheet','JOIN_ROOM_FAILED','debug','_backgroundColor','moveTo','currentColor','values','collabStatus.fetchMiss','hide','transformRemoteChangeset','EMAIL_HAS_BEEN_BOUND','DEFAULT_WS_SESSION_TICKET_URL','unshift','all','requireSession','_heartbeatTimer','ColorKit','jsx','search','concat','M0\x200H16V16H0z','skeleton','ThemeService','COLORS','isActive','_handleJoinEvent','url(#on-line-icon_clip0_910_349)','MemberService','getCurrentSelections','imageSourceType','96wWRDmn','width','collab-client.tooltip.reconnect','APPLY_DUPLICATED','_session','_lastPointer','mutations','DesktopCollaborationStatusDisplayController','endRow','_collabSessionService','collabStatus.notCollab','textRanges','Injector','fillStyle','_entities','_commandService','TRANSFORM_CHANGE_OBSERVABLE_TYPE','translate(.97)','bottom','getActiveRange','arc','entityInit$','getMemberID','InsertRangeMoveDownCommandId','SHEET_VIEWPORT_KEY','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','collab-text-range-','OffLineIcon','transformSelections','off-line-icon','m2Prime','exhaustSavingTask','_initEntityListener','WebBrowserSingleActiveUnitService','_refreshCollabCursors','7578744rPKrmb','getSheetObject','...','registerComponent','activeSheet$','disposeUnit','118017uWawhh','updateOfflineData','_id','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','SetTextSelectionsOperation','Disposable','INVITE_CODE_ALREADY_BOUND','xlink:href','connectInjector','DeleteRangeMoveUpCommandId','univerjs-icon\x20univerjs-icon-','_transformUndoRedoStack','black','univer-mr-2\x20univer-flex\x20univer-text-xl','_updateURLWithCurrentState','getSheetId','current','INVALID_INVITE_CODE','PY_RUNTIME_SCRIPT_ERROR','TEXT_RANGE_LAYER_INDEX','getCollabCursors$','getConfig','_cursors','forEach','get','YUUMI_UNABLE_LOAD_URL','YUUMI_ASYNCIO_CANCELLED','LOCAL_CACHE_INTERVAL','url(#$1','red.300','evenodd','size','_setupBeforeClosingHandler','_colorIndex','urlChange$','min','createSocket','debounce','_disabled','ALREADY_EXISTS','_transformService','DocIMEInputManagerService','propertyIsEnumerable','_drawAnchor','_toggleOnline','setActiveRange','_handleHover','enableLocalCache','/run/','ACTIVE_UNIT_EVENT_CHANNEL','UnitStatus','CollaborationSessionService','createIdentifier','getUnhiddenWorksheets','_httpService','18381pPsCmD','MoveRangeCommandId','flatMap','univer-flex\x20univer-items-center','findNodePositionByCharIndex','SNAPSHOT_HAS_BEEN_REMOVED','isEditing','find','pipe','_renderManagerService','_clearOtherTimers','_status$','IRenderManagerService','status$','_updateCollabCursors','popstate','_initStatusComponent','_draw','replaceState','toString','rgba(255,\x20255,\x20255,\x200.01)','handleDeleteRangeMoveLeft','selections','AWAITING','distinctUntilChanged','addEventListener','indexOf','m1Prime','[RemoteUniscriptService]:\x20no\x20focused\x20unit','tag','removeParam','getVpScrollXYInfoByPosToVp','DataLoaderService','UNRECOGNIZED','EMAIL_VERIFY_CODE_NOT_FOUND_OR_EXPIRED','getMember','_docStateChangeManagerService','doc.mutation.rich-text-editing','YUUMI_SUBSCRIPTION_NOT_FOUND','_roomMembers$','startRow','triggerDblclick','DocCollaborationEntity','show','SYNCED','loadOfflineData','50829wYdOWK','UNAUTHENTICATED','asObservable','_hover','_localCacheService','fillText','getColor','mergeOverrideWithDependencies','restore','getSheetBySheetId','_collaborationUIEventService','_colorAssignService','prototype','OTHER_CLIENTS_EDITING','4150itlAgT','useObservable','isArray','INTERNAL_ERROR','NodePositionConvertToCursor','origin','assignAColorForMemberID','_startSheetCollabCursor','getLocalCacheKey','_getSheetObject','SheetsSelectionsService','setShapeProps','fromEvent','session.connection-failed','BrowserCollaborationSocketService','getColorFromTheme','type','YUUMI_NO_CUBOID_FOR_QUESTION','_createSocketURL','_docTransformSelectionsService','UniverCollaborationClientPlugin','isTransformMutationFailure','_assignedColors','height','transformMutationsWithChangeset','Failed','unit','_messageService','map','send','purple.300','parse','RegularPolygon','newValue','error','sessionTicket','_localStorageService','_sheetSkeletonManagerService','handleDeleteRangeMoveUp','save','fill','currentTheme$','getUndoRedoMutationParamsCache','getTypeOfUnitAdded$','shareReplay','children','setStateCache','_send','_transformHistoryAndStateStack','location','_onRefRangeChange','combineLatest','debounceTime','cursorInfo','OFFLINE','path','div','IUIPartsService','YUUMI_AI_RUN_FAILED','NOT_FOUND','_getAnchorBounding','disableLocalCache','_docSkeletonManagerService','pluginName','handleIRemoveRow','_updateLocalCursor','makeDirty','_revisionService','_saveTaskMap','RECT','_config','getParam','AWAITING_WITH_PENDING','IConfigService','session.will-retry','FETCH_MISS','_beforeCloseService','TEXT','DocSkeletonManagerService','1em','CollaborationUIEventId','getDocRanges','extend','_onCursorUpdate','endColumn','CollaborationDataLoaderController','_docSyncEditingCollabCursorService','subunit','_anchor','toRgbString','closePath','complete','_initDependencies','setConfig','_configService','ILocalStorageService','_setupSubUnitSync','FromArray','isTransformMutationsWithChangesetSuccess','LOCAL_CACHE_INTERVAL_KEY','CHANGESET_REVISION_CONFILICT','getMergeData','_getMergeRange','APPLY_NON_SEQUENTIAL_REVISION','PENDING','ONLINE','entries','LICENSE_MAX_UNITS_EXCEEDED','useRef','collaboration.closeRoom','_startDocCollabCursor','idSuffix','SetSelectionsOperation','_themeService','#FFF','_syncEditingCollabCursorService','onPointerEnter$','event$','has','SheetSkeletonManagerService','_collabCursorController','_textBubble','getValue','INVITE_CODE_REQUIRED','ILogService','round','selection','collab-text-anchor-','fromEventSubject','name','_initStatusListener','PERMISSION_DENIED','permission.title','blue.400','USERS_LEAVE','disposeWithMe','_hovered','UniverCollaborationClientUIPlugin','_imageIoService','_toggleOffline','DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT','EffectRefRangId','roomMembers$','DependentOn','_color','defIds','getActiveSheet','font','_registerRenderDependencies','_initCommandExecutedListener','_docTransformIMECacheService','engine','throttleTime','unitID','APPLY_PERMISSION_DENIED','ITransformService','handleIRemoveCol','Warning','registerRenderModule','runOnServer','runId','clipPath','_drawTextRange','registerRefRange','collabStatus.syncing','INVALID_ARGUMENT','saveTaskMap','_cursorShapes','UNIVER_SHEET','onMouseMove','cursorInfo$','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','RemoveRowCommandId','displayName','_getSaveTimeout','white','RemoveColCommandId','deepClone','YUUMI_CONNECTOR_URL_NOT_FOUND','function','_memberService','Tools','_removeCollabCursors','MOBILE_VERIFY_CODE_NOT_FOUND_OR_EXPIRED','max','CollaborationEvent','CONNECTOR_DATA_TOO_LARGE','text','string','getItem','eventID','getAncestorScale','addObjects','ranges','collabCursorState$','_getScale','_scheduleSaving','_collaborationController','subUnitId','column','saveImage','IImageIoService','MOBILE_VERIFY_CODE_MISMATCH','_univerInstanceService','VIEW_MAIN','LICENSE_DISTRO_REJECTED','length','IMessageService','getTypeOfUnitDisposed$','lineTo','startsWith','LOGIN_FAILED','collab-rect-range-','_selfUnitIDs','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','SessionStatus','mask','IDocClipboardService','ISnapshotServerService','366427yWDXHz','mapTo','YUUMI_PROMPT_MAX_TOKENS_EXCEEDED','Inject','getRenderById','TOO_MANY_REQUESTS','transformMutation','apply','result','measureText','switchMap','next','onPointerMove$','COMPLETION_FINISHED','_handleLeaveEvent','EMAIL_VERIFY_CODE_MISMATCH','onStarting','subscribeEvent','IRemoteInstanceService','filter','takeUntil','uni.network.url-service','currentSkeleton$','_drawRectRange','0\x200\x2017\x2016','WebSocketService','_eventUnsubscribe','_anchorDot','createElement','2cOKYvI','getStateCache','_collabCursorState$','defineProperty','ISocketService','APPLY_REJECT','CommandType','9387574twGIei','YUUMI_URL_COL_OUT_OF_RANGE','collabStatus.conflict','executeCommand','clearInterval','_hideTimer','_dataLoaderService','beginPath','push','useCallback','params','includes','getOwnPropertyDescriptor','_init','_entityInit$','override','className','_localeService','_updateSubUnitFromURLParams','_cachedData','NOT_COLLAB','setParam','startColumn','getOffsetConfig','BehaviorSubject','colorChannel1','clearTimeout','then','substring','_doCreateSocket','wsSessionTicketUrl','defs','SetDocZoomRatioOperation','redoState','delete','init','set','_name','onPointerLeave$','_context','icon','MOBILE_HAS_BEEN_BOUND','focused$','IBeforeCloseService'];_0x4be8=function(){return _0x55feda;};return _0x4be8();}var ot=Object[_0x598bd7(0x2e2)],at=(_0x388c1a,_0x23b940,_0x2d1ebe,_0x49ab21)=>{const _0x107671=_0x598bd7;for(var _0x417bba=_0x49ab21>0x1?void 0x0:_0x49ab21?ot(_0x23b940,_0x2d1ebe):_0x23b940,_0x47377f=_0x388c1a[_0x107671(0x2a5)]-0x1,_0x18d03e;_0x47377f>=0x0;_0x47377f--)(_0x18d03e=_0x388c1a[_0x47377f])&&(_0x417bba=_0x18d03e(_0x417bba)||_0x417bba);return _0x417bba;},ie=(_0x1e372e,_0x5bd815)=>(_0x2d33fd,_0x1b5ad6)=>_0x5bd815(_0x2d33fd,_0x1b5ad6,_0x1e372e);let x=class extends a[_0x598bd7(0x35b)]{constructor(_0x1a32d8,_0x25f07d,_0x3b6448){const _0x14e0f4=_0x598bd7;super(),h(this,_0x14e0f4(0x3cf),new Map()),h(this,_0x14e0f4(0x2e4),new d[(_0x14e0f4(0x375))]()),(this[_0x14e0f4(0x2a2)]=_0x1a32d8,this[_0x14e0f4(0x32b)]=_0x25f07d,this[_0x14e0f4(0x3ca)]=_0x3b6448,this[_0x14e0f4(0x2e3)]());}[_0x598bd7(0x35a)](){const _0x407ab6=_0x598bd7;super[_0x407ab6(0x35a)](),this[_0x407ab6(0x2e4)]['complete'](),this[_0x407ab6(0x3cf)][_0x407ab6(0x401)](_0x4d2642=>_0x4d2642['dispose']());}[_0x598bd7(0x3fe)](_0x517260){const _0xac97fb=_0x598bd7;return this[_0xac97fb(0x3cf)][_0xac97fb(0x24d)](_0x517260)?this['_entities'][_0xac97fb(0x402)](_0x517260)[_0xac97fb(0x281)]:this['_entityInit$'][_0xac97fb(0x429)](d[_0xac97fb(0x2c5)](_0x1ed1db=>_0x1ed1db[_0xac97fb(0x270)]===_0x517260),d[_0xac97fb(0x2bc)](_0x5cb5fb=>_0x5cb5fb[_0xac97fb(0x281)]));}[_0x598bd7(0x2e3)](){const _0x4451d0=_0x598bd7;this[_0x4451d0(0x2a2)]['getTypeOfUnitAdded$'](a['UniverInstanceType'][_0x4451d0(0x27f)])[_0x4451d0(0x429)](d['takeUntil'](this[_0x4451d0(0x39c)]))['subscribe'](async _0x3e17c8=>{const _0x5a72da=_0x4451d0,_0x312d06=_0x3e17c8['getUnitId'](),_0x462a10=await this['_startSheetCollabCursor'](_0x312d06);this['_entityInit$'][_0x5a72da(0x2bd)](_0x462a10),this[_0x5a72da(0x3cf)][_0x5a72da(0x2fa)](_0x312d06,_0x462a10);}),this['_univerInstanceService'][_0x4451d0(0x202)](a[_0x4451d0(0x30f)][_0x4451d0(0x38a)])['pipe'](d[_0x4451d0(0x2c6)](this['dispose$']))['pipe'](d['filter'](_0x4e866d=>!_0x4e866d['getUnitId']()[_0x4451d0(0x2a9)]('__')))['subscribe'](async _0x7f2eec=>{const _0x2e71d5=_0x4451d0,_0x48e8f4=_0x7f2eec[_0x2e71d5(0x320)](),_0x4b6bf1=await this['_startDocCollabCursor'](_0x48e8f4);this['_entityInit$'][_0x2e71d5(0x2bd)](_0x4b6bf1),this[_0x2e71d5(0x3cf)]['set'](_0x48e8f4,_0x4b6bf1);}),d[_0x4451d0(0x344)](this[_0x4451d0(0x2a2)][_0x4451d0(0x2a7)](a[_0x4451d0(0x30f)][_0x4451d0(0x38a)]),this[_0x4451d0(0x2a2)]['getTypeOfUnitDisposed$'](a[_0x4451d0(0x30f)][_0x4451d0(0x27f)]))['pipe'](d[_0x4451d0(0x2c6)](this[_0x4451d0(0x39c)]))['subscribe'](_0x354eab=>{const _0x1dc60d=_0x4451d0,_0x52ba3b=_0x354eab['getUnitId'](),_0x9b13fd=this[_0x1dc60d(0x3cf)][_0x1dc60d(0x402)](_0x52ba3b);_0x9b13fd&&(_0x9b13fd[_0x1dc60d(0x35a)](),this[_0x1dc60d(0x3cf)][_0x1dc60d(0x2f8)](_0x52ba3b));});}async[_0x598bd7(0x1de)](_0x10eca0){const _0x268eae=_0x598bd7,_0x40c15a=await this[_0x268eae(0x3ca)][_0x268eae(0x3b1)](_0x10eca0),_0x2e07b1=this[_0x268eae(0x32b)][_0x268eae(0x389)](Se,_0x10eca0,_0x40c15a);return _0x2e07b1[_0x268eae(0x2f9)](),_0x2e07b1;}async[_0x598bd7(0x245)](_0x59c31d){const _0x28c2a5=_0x598bd7,_0x23437f=await this[_0x28c2a5(0x3ca)][_0x28c2a5(0x3b1)](_0x59c31d),_0x385aea=this['_injector'][_0x28c2a5(0x389)](de,_0x59c31d,_0x23437f);return _0x385aea[_0x28c2a5(0x2f9)](),_0x385aea;}};x=at([ie(0x0,a['IUniverInstanceService']),ie(0x1,a[_0x598bd7(0x2b5)](a[_0x598bd7(0x3cd)])),ie(0x2,a[_0x598bd7(0x2b5)](u[_0x598bd7(0x41d)]))],x);const W=0x14,Te=0xc8,ne=0x4,ct=0x5;function lt(_0x72e5ad,_0x24b676){const _0x423729=_0x598bd7;let {radius:_0x2a4916,width:_0x2a1e71,height:_0x5bc9d8}=_0x24b676;_0x2a4916=_0x2a4916!=null?_0x2a4916:0x0,_0x2a1e71=_0x2a1e71!=null?_0x2a1e71:0x1e,_0x5bc9d8=_0x5bc9d8!=null?_0x5bc9d8:0x1e;let _0x1d0a23=0x0,_0x304e28=0x0,_0x373453=0x0;_0x1d0a23=_0x304e28=_0x373453=Math[_0x423729(0x40d)](_0x2a4916,_0x2a1e71/0x2,_0x5bc9d8/0x2),_0x72e5ad[_0x423729(0x2dd)](),_0x72e5ad[_0x423729(0x3a7)](_0x1d0a23,0x0),_0x72e5ad[_0x423729(0x2a8)](_0x2a1e71-_0x304e28,0x0),_0x72e5ad[_0x423729(0x3d5)](_0x2a1e71-_0x304e28,_0x304e28,_0x304e28,Math['PI']*0x3/0x2,0x0,!0x1),_0x72e5ad[_0x423729(0x2a8)](_0x2a1e71,_0x5bc9d8-_0x373453),_0x72e5ad['arc'](_0x2a1e71-_0x373453,_0x5bc9d8-_0x373453,_0x373453,0x0,Math['PI']/0x2,!0x1),_0x72e5ad['lineTo'](0x0,_0x5bc9d8),_0x72e5ad[_0x423729(0x2a8)](0x0,_0x1d0a23),_0x72e5ad['arc'](_0x1d0a23,_0x1d0a23,_0x1d0a23,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x72e5ad[_0x423729(0x231)](),_0x24b676['fill']&&(_0x72e5ad[_0x423729(0x1fe)](),_0x72e5ad[_0x423729(0x3ce)]=_0x24b676[_0x423729(0x1ff)],_0x24b676[_0x423729(0x30c)]===_0x423729(0x408)?_0x72e5ad[_0x423729(0x1ff)]('evenodd'):_0x72e5ad[_0x423729(0x1ff)](),_0x72e5ad[_0x423729(0x1d1)]());}class ee extends p['Shape']{constructor(_0x10f965,_0x1d4f17){const _0x3322e9=_0x598bd7;super(_0x10f965,_0x1d4f17),h(this,_0x3322e9(0x315)),h(this,'text'),(this[_0x3322e9(0x315)]=_0x1d4f17==null?void 0x0:_0x1d4f17['color'],this[_0x3322e9(0x292)]=_0x1d4f17==null?void 0x0:_0x1d4f17[_0x3322e9(0x292)]);}static[_0x598bd7(0x307)](_0x27d2c9,_0x2e0f77){const _0x2b9691=_0x598bd7,{text:_0x95eb99,color:_0x2f09f9}=_0x2e0f77;_0x27d2c9[_0x2b9691(0x1fe)](),_0x27d2c9[_0x2b9691(0x26a)]=_0x2b9691(0x282);const _0x23709b=_0x27d2c9[_0x2b9691(0x2bb)](_0x95eb99)[_0x2b9691(0x3c2)],_0x517447=Math[_0x2b9691(0x40d)](_0x23709b+0x2*ne,Te);lt(_0x27d2c9,{'height':W,'radius':0x4,'width':_0x517447,'fill':_0x2f09f9}),_0x27d2c9[_0x2b9691(0x3ce)]=_0x2b9691(0x249);const _0x365da9=ne,_0x310dcb=W-ct,_0x2cc83f=Te-0x2*ne;if(_0x23709b>_0x2cc83f){let _0x1de117='',_0x30d609=0x0;for(const _0x129783 of _0x95eb99){const _0x293ec6=_0x27d2c9[_0x2b9691(0x2bb)](_0x129783)[_0x2b9691(0x3c2)];if(_0x30d609+_0x293ec6<=_0x2cc83f-_0x27d2c9[_0x2b9691(0x2bb)]('...')['width'])_0x1de117+=_0x129783,_0x30d609+=_0x293ec6;else{_0x1de117+=_0x2b9691(0x3e6);break;}}_0x27d2c9[_0x2b9691(0x1ce)](_0x1de117,_0x365da9,_0x310dcb);}else _0x27d2c9[_0x2b9691(0x1ce)](_0x95eb99,_0x365da9,_0x310dcb);_0x27d2c9[_0x2b9691(0x1d1)]();}[_0x598bd7(0x432)](_0xcfc31){const _0x3b7f71=_0x598bd7;ee[_0x3b7f71(0x307)](_0xcfc31,this);}}const re=_0x598bd7(0x256),_t=_0x598bd7(0x3db),ht=_0x598bd7(0x2ab),k=0x6,ut=1.5,oe=0x4,dt=1.5,St=_0x598bd7(0x1af);class Re{constructor(_0x1b904c,_0xcc3251,_0x2e9dc2,_0x5457b0){const _0x2d3e05=_0x598bd7;h(this,_0x2d3e05(0x397),[]),h(this,_0x2d3e05(0x22f),null),h(this,_0x2d3e05(0x250),null),h(this,_0x2d3e05(0x2cd),null),h(this,'_hideTimer',null),h(this,_0x2d3e05(0x2cc),null),(this[_0x2d3e05(0x39e)]=_0x1b904c,this[_0x2d3e05(0x34c)]=_0xcc3251,this[_0x2d3e05(0x37f)]=_0x2e9dc2,this[_0x2d3e05(0x390)]=_0x5457b0,this[_0x2d3e05(0x399)]());}set[_0x598bd7(0x1cc)](_0x9a353a){const _0x7cae28=_0x598bd7;_0x9a353a?(this['_anchorDot']&&this[_0x7cae28(0x2cd)][_0x7cae28(0x3ab)](),this[_0x7cae28(0x250)]&&this[_0x7cae28(0x250)][_0x7cae28(0x1c6)]()):(this[_0x7cae28(0x2cd)]&&this[_0x7cae28(0x2cd)][_0x7cae28(0x1c6)](),this[_0x7cae28(0x250)]&&this[_0x7cae28(0x250)][_0x7cae28(0x3ab)]());}['dispose'](){const _0x532e89=_0x598bd7;for(const _0x379451 of this['_shapes'])_0x379451[_0x532e89(0x35a)]();this[_0x532e89(0x250)]&&this[_0x532e89(0x250)][_0x532e89(0x35a)](),this[_0x532e89(0x2cd)]&&this['_anchorDot'][_0x532e89(0x35a)](),this[_0x532e89(0x22f)]&&this[_0x532e89(0x22f)]['dispose'](),this['_eventUnsubscribe']&&this[_0x532e89(0x2cc)]();}['_render'](){const _0x578d8b=_0x598bd7;var _0x1c0433;const {_docSkeleton:_0x469931,_document:_0x5a7074}=this,{color:_0x4a328a,name:_0x31ccea,ranges:_0x2778f4}=this[_0x578d8b(0x39e)],_0x31faa9=_0x5a7074[_0x578d8b(0x2ed)](),{docsLeft:_0x254a13,docsTop:_0x28e0ee}=_0x31faa9,_0x670ddc=new E[(_0x578d8b(0x1db))](_0x31faa9,_0x469931);for(const {startOffset:_0x1b71bd,endOffset:_0x4c9ea6,rangeType:_0x2fdab1,segmentId:_0x1a864d,segmentPage:_0x50192d,collapsed:_0x2f4f42,isActive:_0x49ee4a}of _0x2778f4){const _0x1bd4f9=_0x469931[_0x578d8b(0x425)](_0x1b71bd,!0x0,_0x1a864d,_0x50192d);let _0x34251a=_0x469931[_0x578d8b(0x425)](_0x4c9ea6,!0x0,_0x1a864d,_0x50192d);if(_0x34251a==null&&(_0x34251a=_0x469931[_0x578d8b(0x425)](_0x4c9ea6-0x1,!0x1,_0x1a864d,_0x50192d)),_0x49ee4a){const {contentBoxPointGroup:_0x1007c1}=_0x670ddc['getRangePointData'](_0x34251a,_0x34251a);if(_0x1007c1[_0x578d8b(0x2a5)]===0x0)continue;this['_drawAnchor'](_0x4a328a,_0x1007c1,_0x254a13,_0x28e0ee,_0x31ccea),this[_0x578d8b(0x2cc)]=this[_0x578d8b(0x418)]();}if(_0x1bd4f9&&_0x34251a){if(_0x2fdab1===a[_0x578d8b(0x38d)][_0x578d8b(0x21c)]){const _0x21ae0f=new E[(_0x578d8b(0x39f))](_0x31faa9,_0x469931),{pointGroup:_0x3942a8}=(_0x1c0433=_0x21ae0f[_0x578d8b(0x396)](_0x1bd4f9,_0x34251a))!=null?_0x1c0433:{};if(_0x3942a8==null||_0x3942a8['length']===0x0)continue;this['_drawRectRange'](_0x4a328a,_0x3942a8,_0x254a13,_0x28e0ee);}else{if(!_0x2f4f42){const {borderBoxPointGroup:_0x4ff461}=_0x670ddc[_0x578d8b(0x396)](_0x1bd4f9,_0x34251a);if(_0x4ff461[_0x578d8b(0x2a5)]===0x0)continue;this['_drawTextRange'](_0x4a328a,_0x4ff461,_0x254a13,_0x28e0ee);}}}}}[_0x598bd7(0x415)](_0x192755,_0x1968d3,_0x2d1051,_0x21d272,_0x2d0f04){const _0x54d154=_0x598bd7,_0x27d472=this[_0x54d154(0x213)](_0x1968d3),{left:_0x3f216e,top:_0xbbc60e,height:_0x5c13fa}=_0x27d472,_0x369505=this['_getScale'](),_0x1be6d7=dt/_0x369505,_0x31e0ea=new p['Rect'](re+a[_0x54d154(0x395)](k),{'left':_0x3f216e+_0x2d1051-_0x1be6d7,'top':_0xbbc60e+_0x21d272,'height':_0x5c13fa,'width':ut,'fill':_0x192755||p['getColor'](a[_0x54d154(0x3ba)][_0x54d154(0x3f6)],0x0),'strokeWidth':_0x1be6d7,'stroke':St,'evented':!0x0});this[_0x54d154(0x22f)]=_0x31e0ea,this[_0x54d154(0x34c)][_0x54d154(0x351)](_0x31e0ea,E[_0x54d154(0x3fd)]);const _0x2c3d2e=new p['Rect'](re+a[_0x54d154(0x395)](k),{'left':_0x3f216e+_0x2d1051-_0x1be6d7,'top':_0xbbc60e+_0x21d272-oe/0x2,'height':oe,'width':oe,'fill':_0x192755||p[_0x54d154(0x1cf)](a[_0x54d154(0x3ba)]['black'],0x0),'strokeWidth':0x0,'stroke':_0x192755||p[_0x54d154(0x1cf)](a[_0x54d154(0x3ba)]['black'],0x0),'evented':!0x1});this[_0x54d154(0x2cd)]=_0x2c3d2e,this[_0x54d154(0x34c)]['addObject'](_0x2c3d2e,E[_0x54d154(0x3fd)]);const _0x5f19f4=new ee(re+a['generateRandomId'](k),{'left':_0x3f216e+_0x2d1051-_0x1be6d7,'top':_0xbbc60e+_0x21d272-W,'text':_0x2d0f04,'color':_0x192755});this[_0x54d154(0x250)]=_0x5f19f4,this[_0x54d154(0x34c)][_0x54d154(0x351)](_0x5f19f4,E['TEXT_RANGE_LAYER_INDEX']),this[_0x54d154(0x1cc)]=!0x1;}[_0x598bd7(0x418)](){const _0x130c64=_0x598bd7,_0x28f604=this[_0x130c64(0x22f)]['onPointerEnter$']['subscribeEvent'](()=>{const _0x3670ba=_0x130c64;this[_0x3670ba(0x1cc)]=!0x0;}),_0x356462=this[_0x130c64(0x22f)][_0x130c64(0x2fc)][_0x130c64(0x2c3)](()=>{const _0x26a086=_0x130c64;this[_0x26a086(0x2db)]&&clearTimeout(this['_hideTimer']),this[_0x26a086(0x2db)]=setTimeout(()=>{const _0x480ce5=_0x26a086;this[_0x480ce5(0x1cc)]=!0x1;},0x7d0);});return()=>{const _0x4c1997=_0x130c64;_0x28f604[_0x4c1997(0x308)](),_0x356462[_0x4c1997(0x308)]();};}[_0x598bd7(0x279)](_0x997c87,_0x10f759,_0x48ead0,_0x1809b8){const _0x13e9ff=_0x598bd7,_0x4a06c8=new a[(_0x13e9ff(0x3b3))](_0x997c87)[_0x13e9ff(0x31f)](0.2)[_0x13e9ff(0x230)](),_0x37439e=new p[(_0x13e9ff(0x1f7))](_t+a[_0x13e9ff(0x395)](k),{'pointsGroup':_0x10f759,'fill':_0x4a06c8||p[_0x13e9ff(0x1cf)](a[_0x13e9ff(0x3ba)][_0x13e9ff(0x3f6)],0.2),'left':_0x48ead0,'top':_0x1809b8,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x13e9ff(0x397)][_0x13e9ff(0x2de)](_0x37439e),this[_0x13e9ff(0x34c)][_0x13e9ff(0x351)](_0x37439e,E[_0x13e9ff(0x3fd)]);}[_0x598bd7(0x2c9)](_0x2256cf,_0x40cfd8,_0x56f19b,_0x3956a0){const _0x260790=_0x598bd7,_0x25d1d0=new a['ColorKit'](_0x2256cf)['setAlpha'](0.2)[_0x260790(0x230)](),_0x16c7cf=new p[(_0x260790(0x1f7))](ht+a['generateRandomId'](k),{'pointsGroup':_0x40cfd8,'fill':_0x25d1d0||p['getColor'](a[_0x260790(0x3ba)]['black'],0.2),'left':_0x56f19b,'top':_0x3956a0,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x260790(0x397)]['push'](_0x16c7cf),this['_scene'][_0x260790(0x351)](_0x16c7cf,E[_0x260790(0x3fd)]);}['_getAnchorBounding'](_0x80624e){const _0x1769f0=_0x80624e[0x0],_0x400a31=_0x1769f0[0x0],_0x156ffb=_0x1769f0[0x2],{x:_0x33535c,y:_0x4417cb}=_0x400a31,{x:_0x2f46dc,y:_0x50ded6}=_0x156ffb;return{'left':_0x33535c,'top':_0x4417cb,'width':_0x2f46dc-_0x33535c,'height':_0x50ded6-_0x4417cb};}[_0x598bd7(0x29a)](){const _0x42c631=_0x598bd7,{scaleX:_0x120d79,scaleY:_0x87b953}=this[_0x42c631(0x34c)][_0x42c631(0x296)]();return Math[_0x42c631(0x28f)](_0x120d79,_0x87b953);}}var ft=Object[_0x598bd7(0x2e2)],It=(_0xb75c2d,_0xb508a9,_0x15cc9f,_0xa2c1f9)=>{const _0x11b659=_0x598bd7;for(var _0x35e41a=_0xa2c1f9>0x1?void 0x0:_0xa2c1f9?ft(_0xb508a9,_0x15cc9f):_0xb508a9,_0x13fdae=_0xb75c2d[_0x11b659(0x2a5)]-0x1,_0x55a208;_0x13fdae>=0x0;_0x13fdae--)(_0x55a208=_0xb75c2d[_0x13fdae])&&(_0x35e41a=_0x55a208(_0x35e41a)||_0x35e41a);return _0x35e41a;},V=(_0x1b3bcd,_0x59801d)=>(_0x35a4ef,_0x160125)=>_0x59801d(_0x35a4ef,_0x160125,_0x1b3bcd);let fe=class extends a[_0x598bd7(0x35b)]{constructor(_0x37cae7,_0x14e424,_0x5c15b3,_0x24b16b,_0x2bb485){const _0x126bd4=_0x598bd7;super(),h(this,_0x126bd4(0x27e),[]),h(this,'_cursors',[]),(this[_0x126bd4(0x2fd)]=_0x37cae7,this[_0x126bd4(0x215)]=_0x14e424,this[_0x126bd4(0x24f)]=_0x5c15b3,this[_0x126bd4(0x3d0)]=_0x24b16b,this[_0x126bd4(0x248)]=_0x2bb485,this[_0x126bd4(0x2e3)]());}[_0x598bd7(0x2e3)](){const _0x2e7229=_0x598bd7,_0x517469=this['_context']['unitId'],_0x4d16b7=this[_0x2e7229(0x215)];this[_0x2e7229(0x25e)](d[_0x2e7229(0x20a)]([this[_0x2e7229(0x24f)][_0x2e7229(0x3fe)](_0x517469),this['_themeService'][_0x2e7229(0x200)]])['pipe']($[_0x2e7229(0x1f3)](([_0x14e2b2,_0x2cc8c9])=>({'skeleton':_0x4d16b7[_0x2e7229(0x359)](),'cursors':[..._0x14e2b2[_0x2e7229(0x3a9)]()][_0x2e7229(0x423)](_0xeeadee=>({..._0xeeadee,'color':this['_themeService'][_0x2e7229(0x1e6)](_0xeeadee[_0x2e7229(0x315)])}))})))[_0x2e7229(0x37c)](_0x49fe43=>{const _0x527e77=_0x2e7229;if(this[_0x527e77(0x28d)](),_0x49fe43){const {skeleton:_0x525696,cursors:_0x136a68}=_0x49fe43;this[_0x527e77(0x42f)](_0x525696,_0x136a68);}})),this[_0x2e7229(0x310)](),this[_0x2e7229(0x26c)]();}[_0x598bd7(0x42f)](_0x37caba,_0x515de0){const _0x21cf7f=_0x598bd7,{scene:_0x51d79c,mainComponent:_0x10d8a4}=this[_0x21cf7f(0x2fd)],_0x4152ca=_0x515de0[_0x21cf7f(0x1f3)](_0x50657d=>new Re(_0x50657d,_0x51d79c,_0x37caba,_0x10d8a4));this[_0x21cf7f(0x27e)]=_0x4152ca,this[_0x21cf7f(0x400)]=_0x515de0;}[_0x598bd7(0x3e3)](){const _0x271db3=_0x598bd7;this[_0x271db3(0x28d)]();const {scene:_0x3f9fee,mainComponent:_0x540f74}=this[_0x271db3(0x2fd)],_0x151568=this[_0x271db3(0x215)][_0x271db3(0x359)](),_0x2489e6=this['_cursors'][_0x271db3(0x1f3)](_0x4c4159=>new Re(_0x4c4159,_0x3f9fee,_0x151568,_0x540f74));this['_cursorShapes']=_0x2489e6;}['_removeCollabCursors'](){const _0x583412=_0x598bd7;this[_0x583412(0x27e)][_0x583412(0x401)](_0x2de75c=>_0x2de75c['dispose']()),this[_0x583412(0x27e)]=[];}['_initCommandExecutedListener'](){const _0x1a0ce9=_0x598bd7,_0x5049fa=[E[_0x1a0ce9(0x2f6)]['id']];this[_0x1a0ce9(0x25e)](this[_0x1a0ce9(0x3d0)]['onCommandExecuted'](_0x4da872=>{const _0x572cb8=_0x1a0ce9;_0x5049fa[_0x572cb8(0x2e1)](_0x4da872['id'])&&_0x4da872['params'][_0x572cb8(0x325)]===this['_context']['unitId']&&this[_0x572cb8(0x3e3)]();}));}[_0x598bd7(0x310)](){const _0x3d577b=_0x598bd7;this[_0x3d577b(0x25e)](a[_0x3d577b(0x257)](this[_0x3d577b(0x2fd)][_0x3d577b(0x26e)]['onTransformChange$'])[_0x3d577b(0x429)]($[_0x3d577b(0x2c5)](_0x315c23=>_0x315c23[_0x3d577b(0x1e7)]===p[_0x3d577b(0x3d1)][_0x3d577b(0x317)]),$[_0x3d577b(0x26f)](0x10))['subscribe'](()=>{this['_refreshCollabCursors']();}));}};fe=It([V(0x1,a[_0x598bd7(0x2b5)](Y[_0x598bd7(0x225)])),V(0x2,a[_0x598bd7(0x2b5)](x)),V(0x3,a['ICommandService']),V(0x4,a[_0x598bd7(0x2b5)](a[_0x598bd7(0x3b9)]))],fe);const vt=0x1,gt=1.5;class we extends p['Shape']{constructor(_0x49b15f,_0x47c1ca){const _0x2693cd=_0x598bd7;super(_0x49b15f,_0x47c1ca),h(this,_0x2693cd(0x267)),h(this,_0x2693cd(0x25f),!0x1),h(this,_0x2693cd(0x360)),h(this,_0x2693cd(0x2fb),''),h(this,_0x2693cd(0x33e),_0x2693cd(0x36c)),h(this,_0x2693cd(0x3a6)),(_0x47c1ca&&this['setShapeProps'](_0x47c1ca),this[_0x2693cd(0x24b)]['subscribeEvent'](()=>this[_0x2693cd(0x1e2)]({'hovered':!0x0})),this[_0x2693cd(0x2fc)][_0x2693cd(0x2c3)](()=>this['setShapeProps']({'hovered':!0x1})));}[_0x598bd7(0x1e2)](_0x2d7e59){const _0x525281=_0x598bd7;var _0x434ebb,_0x3cd4ef,_0x5b5cc6,_0x3f8ef9,_0x321e13,_0xabd816;this['_color']=(_0x434ebb=_0x2d7e59['color'])!=null?_0x434ebb:this['_color'],this[_0x525281(0x25f)]=(_0x3cd4ef=_0x2d7e59[_0x525281(0x354)])!=null?_0x3cd4ef:this[_0x525281(0x25f)],this[_0x525281(0x360)]=(_0x5b5cc6=_0x2d7e59['range'])!=null?_0x5b5cc6:this['_range'],this[_0x525281(0x2fb)]=(_0x3f8ef9=_0x2d7e59[_0x525281(0x258)])!=null?_0x3f8ef9:this[_0x525281(0x2fb)],this[_0x525281(0x33e)]=(_0x321e13=_0x2d7e59['labelPosition'])!=null?_0x321e13:this[_0x525281(0x33e)],this['_backgroundColor']=(_0xabd816=_0x2d7e59['backgroundColor'])!=null?_0xabd816:this[_0x525281(0x3a6)],this[_0x525281(0x355)]({'width':_0x2d7e59['width'],'height':_0x2d7e59[_0x525281(0x1ee)]});}[_0x598bd7(0x280)](_0x5ed09f){const _0x16abd3=_0x598bd7,{row:_0x353f24,column:_0x577bf7}=_0x5ed09f;if(_0x353f24>=this['_range'][_0x16abd3(0x1c3)]&&_0x353f24<=this['_range'][_0x16abd3(0x3c9)]&&_0x577bf7>=this['_range'][_0x16abd3(0x2ec)]&&_0x577bf7<=this[_0x16abd3(0x360)][_0x16abd3(0x22b)]){this[_0x16abd3(0x1e2)]({'hovered':!0x0});return;}this[_0x16abd3(0x1e2)]({'hovered':!0x1});}[_0x598bd7(0x1c4)](_0xd3793e){return!0x1;}[_0x598bd7(0x432)](_0x5e6a1c){const _0x1e2649=_0x598bd7;p[_0x1e2649(0x34e)][_0x1e2649(0x307)](_0x5e6a1c,{'width':this['width'],'height':this[_0x1e2649(0x1ee)],'strokeWidth':gt,'stroke':this[_0x1e2649(0x267)],'evented':!0x1,'fill':this[_0x1e2649(0x3a6)]}),this[_0x1e2649(0x25f)]&&(_0x5e6a1c[_0x1e2649(0x1fe)](),_0x5e6a1c[_0x1e2649(0x32e)](0x1,0x0,0x0,0x1,this[_0x1e2649(0x3c2)],this['_labelPosition']==='bottom'?0x0:-W),ee[_0x1e2649(0x307)](_0x5e6a1c,{'text':this['_name'],'color':this[_0x1e2649(0x267)]}),_0x5e6a1c[_0x1e2649(0x1d1)]());}}var mt=Object[_0x598bd7(0x2e2)],Ct=(_0x2c4b42,_0x23cbb9,_0x4469de,_0x3b2a77)=>{const _0x5c0966=_0x598bd7;for(var _0xb9a121=_0x3b2a77>0x1?void 0x0:_0x3b2a77?mt(_0x23cbb9,_0x4469de):_0x23cbb9,_0x105600=_0x2c4b42[_0x5c0966(0x2a5)]-0x1,_0x113b0f;_0x105600>=0x0;_0x105600--)(_0x113b0f=_0x2c4b42[_0x105600])&&(_0xb9a121=_0x113b0f(_0xb9a121)||_0xb9a121);return _0xb9a121;},ae=(_0x1d9de4,_0x3c84f1)=>(_0x3328c2,_0x42861f)=>_0x3c84f1(_0x3328c2,_0x42861f,_0x1d9de4);const pt=0x1389;let Ie=class extends a[_0x598bd7(0x35b)]{constructor(_0x307d5d,_0x35cc08,_0x3a90a7,_0x52df93){const _0x1e22fb=_0x598bd7;super(),h(this,_0x1e22fb(0x400),new Set()),h(this,'_lastPointer',null),(this[_0x1e22fb(0x2fd)]=_0x307d5d,this[_0x1e22fb(0x1fc)]=_0x35cc08,this['_collabCursorController']=_0x3a90a7,this['_themeService']=_0x52df93,this['_init']());}[_0x598bd7(0x2e3)](){const _0x518a22=_0x598bd7;this[_0x518a22(0x1fc)][_0x518a22(0x2c8)][_0x518a22(0x429)]($[_0x518a22(0x2c6)](this[_0x518a22(0x39c)]),$['switchMap'](_0x16b45f=>{const _0x177874=_0x518a22;if(_0x16b45f){const _0x1f4d7c=_0x16b45f['sheetId'];return d[_0x177874(0x20a)](this[_0x177874(0x24f)][_0x177874(0x3fe)](this[_0x177874(0x2fd)]['unitId']),this[_0x177874(0x248)][_0x177874(0x200)])[_0x177874(0x429)]($['map'](([_0x11dc46,_0xbc0995])=>{const _0x58b221=_0x177874,_0x44d6bb=new Map();return _0x11dc46[_0x58b221(0x401)]((_0xaac1ae,_0x24cf5d)=>{const _0x3ab9e8=_0x58b221;if(_0xaac1ae['sheetID']===_0x1f4d7c){const _0x1b92db={..._0xaac1ae};_0x1b92db[_0x3ab9e8(0x315)]=this[_0x3ab9e8(0x248)][_0x3ab9e8(0x1e6)](_0xaac1ae[_0x3ab9e8(0x315)]),_0x44d6bb[_0x3ab9e8(0x2fa)](_0x24cf5d,_0x1b92db);}}),{'skeleton':_0x16b45f,'cursors':_0x44d6bb};}));}return d['of']({'skeleton':null,'cursors':new Map()});}))[_0x518a22(0x37c)](({skeleton:_0x3cdb9e,cursors:_0x7c5bf7})=>{const _0x50627e=_0x518a22;this[_0x50627e(0x28d)](),_0x3cdb9e&&this[_0x50627e(0x42f)](_0x3cdb9e,_0x7c5bf7);}),this[_0x518a22(0x1fc)]['currentSkeleton$'][_0x518a22(0x37c)](_0x33f874=>{const _0x1d0386=_0x518a22;if(_0x33f874==null)return;const {skeleton:_0x3ec89d}=_0x33f874,{scene:_0x8b429f}=this['_context'];_0x8b429f[_0x1d0386(0x2be)]['subscribeEvent'](a[_0x1d0386(0x40f)](_0x2a3a97=>{const _0xbfcfbc=_0x1d0386;var _0xf9af70,_0x54af5f;const {offsetX:_0x20fe65,offsetY:_0x30e2ad}=_0x2a3a97,{x:_0x255925,y:_0x215f8d}=_0x8b429f[_0xbfcfbc(0x38c)](p[_0xbfcfbc(0x366)][_0xbfcfbc(0x238)]([_0x20fe65,_0x30e2ad])),{scaleX:_0x4828fd,scaleY:_0x1c5d2a}=_0x8b429f[_0xbfcfbc(0x296)](),_0x29c832=_0x8b429f['getViewport'](p[_0xbfcfbc(0x3d9)][_0xbfcfbc(0x2a3)]),_0xe7301e=_0x8b429f[_0xbfcfbc(0x1ba)](p[_0xbfcfbc(0x366)][_0xbfcfbc(0x238)]([_0x255925,_0x215f8d]),_0x29c832),_0x47ccdb=_0x3ec89d[_0xbfcfbc(0x35e)](_0x20fe65,_0x30e2ad,_0x4828fd,_0x1c5d2a,_0xe7301e);((_0xf9af70=this[_0xbfcfbc(0x3c6)])==null?void 0x0:_0xf9af70[_0xbfcfbc(0x29e)])===_0x47ccdb[_0xbfcfbc(0x29e)]&&((_0x54af5f=this['_lastPointer'])==null?void 0x0:_0x54af5f['row'])===_0x47ccdb['row']||this[_0xbfcfbc(0x400)]['forEach'](_0x5670fa=>{const _0x1fb51c=_0xbfcfbc;_0x5670fa[_0x1fb51c(0x280)](_0x47ccdb);});},0x64));});}[_0x598bd7(0x42f)](_0x31c058,_0x39245c){const _0xdf5989=_0x598bd7;var _0x21de27;const _0x147e03=(_0x21de27=this['_sheetSkeletonManagerService'][_0xdf5989(0x34a)]())==null?void 0x0:_0x21de27[_0xdf5989(0x3b8)];if(!_0x147e03)return;const _0x45e5d9=this['_getSheetObject']();if(!_0x45e5d9)return;this['_cursors'][_0xdf5989(0x401)](_0x5d63bd=>{const _0xfe3b97=_0xdf5989;_0x5d63bd[_0xfe3b97(0x219)]();});const {scene:_0x3b7367}=_0x45e5d9,_0x435c8f=Et(Array[_0xdf5989(0x38b)](_0x39245c[_0xdf5989(0x3a9)]()))[_0xdf5989(0x1f3)](_0x47f226=>{const _0x5e4981=_0xdf5989,{color:_0x5ba474,range:_0x181b52,name:_0x3d86ac,selection:_0x331661,sheetID:_0x3054e}=_0x47f226,{startColumn:_0x4499ee,startRow:_0xbdc5ba,endColumn:_0x2d566d,endRow:_0x5f26c9}=_0x181b52,_0x52dde9=G[_0x5e4981(0x3a1)](_0xbdc5ba,_0x4499ee,_0x3b7367,_0x147e03),_0x1f48f0=G['getCoordByCell'](_0x5f26c9,_0x2d566d,_0x3b7367,_0x147e03),{columnHeaderHeightAndMarginTop:_0x3be16c}=_0x147e03,{startX:_0x262137,startY:_0x24c84c}=_0x52dde9,{endX:_0x3ba5a4,endY:_0x2eb344}=_0x1f48f0,_0x4fe62c=_0x3ba5a4-_0x262137,_0x4cbca6=_0x2eb344-_0x24c84c,_0x242b9c={'labelPosition':_0x24c84c-_0x3be16c>=W?_0x5e4981(0x36c):_0x5e4981(0x3d3),'sheetID':_0x3054e,'range':_0x181b52,'color':_0x5ba474,'name':_0x3d86ac,'selection':_0x331661,'left':_0x262137,'top':_0x24c84c,'width':_0x4fe62c,'height':_0x4cbca6,'evented':!0x1,'zIndex':pt};return new we(_0x3d86ac,_0x242b9c);});_0x3b7367[_0xdf5989(0x297)](_0x435c8f,vt),this[_0xdf5989(0x400)]=new Set(_0x435c8f);}[_0x598bd7(0x28d)](){const _0x574962=_0x598bd7;var _0x537503;(_0x537503=this[_0x574962(0x400)])==null||_0x537503[_0x574962(0x401)](_0x4f64da=>_0x4f64da[_0x574962(0x35a)]());}[_0x598bd7(0x1e0)](){const _0x52a46c=_0x598bd7;return G[_0x52a46c(0x3e5)](this['_context']['unit'],this[_0x52a46c(0x2fd)]);}};Ie=Ct([ae(0x1,a[_0x598bd7(0x2b5)](G[_0x598bd7(0x24e)])),ae(0x2,a[_0x598bd7(0x2b5)](x)),ae(0x3,a[_0x598bd7(0x2b5)](a[_0x598bd7(0x3b9)]))],Ie);function Et(_0x58abe6){const _0x1b5cdd=_0x598bd7,_0x3873c3=new Map();return _0x58abe6[_0x1b5cdd(0x401)](_0x1f0840=>{const _0x5c207c=_0x1b5cdd;if(_0x3873c3[_0x5c207c(0x24d)](_0x1f0840[_0x5c207c(0x255)])){const _0x49ac25=_0x3873c3[_0x5c207c(0x402)](_0x1f0840[_0x5c207c(0x255)]);_0x49ac25[_0x5c207c(0x258)]+=',\x20'+_0x1f0840[_0x5c207c(0x258)];}else _0x3873c3[_0x5c207c(0x2fa)](_0x1f0840[_0x5c207c(0x255)],_0x1f0840);}),Array[_0x1b5cdd(0x38b)](_0x3873c3[_0x1b5cdd(0x3a9)]());}var b=function(){const _0x36f755=_0x598bd7;return b=Object[_0x36f755(0x34f)]||function(_0x175849){const _0x288a92=_0x36f755;for(var _0x677264,_0xcef6b1=0x1,_0x52b64c=arguments[_0x288a92(0x2a5)];_0xcef6b1<_0x52b64c;_0xcef6b1++){_0x677264=arguments[_0xcef6b1];for(var _0x2af2ae in _0x677264)Object['prototype']['hasOwnProperty']['call'](_0x677264,_0x2af2ae)&&(_0x175849[_0x2af2ae]=_0x677264[_0x2af2ae]);}return _0x175849;},b[_0x36f755(0x2b9)](this,arguments);},bt=function(_0x43b7c8,_0x327c9c){const _0x238531=_0x598bd7;var _0xd5e9d7={};for(var _0x5e68d9 in _0x43b7c8)Object[_0x238531(0x1d5)]['hasOwnProperty'][_0x238531(0x386)](_0x43b7c8,_0x5e68d9)&&_0x327c9c[_0x238531(0x1b5)](_0x5e68d9)<0x0&&(_0xd5e9d7[_0x5e68d9]=_0x43b7c8[_0x5e68d9]);if(_0x43b7c8!=null&&typeof Object[_0x238531(0x392)]==_0x238531(0x28a)){for(var _0x3f76ad=0x0,_0x5e68d9=Object['getOwnPropertySymbols'](_0x43b7c8);_0x3f76ad<_0x5e68d9[_0x238531(0x2a5)];_0x3f76ad++)_0x327c9c[_0x238531(0x1b5)](_0x5e68d9[_0x3f76ad])<0x0&&Object[_0x238531(0x1d5)][_0x238531(0x414)][_0x238531(0x386)](_0x43b7c8,_0x5e68d9[_0x3f76ad])&&(_0xd5e9d7[_0x5e68d9[_0x3f76ad]]=_0x43b7c8[_0x5e68d9[_0x3f76ad]]);}return _0xd5e9d7;},Ce=M[_0x598bd7(0x35d)](function(_0x3f86a1,_0x23eac9){const _0x2a1af4=_0x598bd7;var _0x493491=_0x3f86a1[_0x2a1af4(0x2fe)],_0x325b97=_0x3f86a1['id'],_0xbfe422=_0x3f86a1[_0x2a1af4(0x2e6)],_0x459c48=_0x3f86a1[_0x2a1af4(0x229)],_0x1f53f8=bt(_0x3f86a1,[_0x2a1af4(0x2fe),'id','className','extend']),_0x5de6ca=_0x2a1af4(0x3f4)[_0x2a1af4(0x3b6)](_0x325b97,'\x20')['concat'](_0xbfe422||'')['trim'](),_0x4c8c49=M[_0x2a1af4(0x243)]('_'['concat'](Rt()));return Ae(_0x493491,''[_0x2a1af4(0x3b6)](_0x325b97),{'defIds':_0x493491[_0x2a1af4(0x268)],'idSuffix':_0x4c8c49[_0x2a1af4(0x3fa)]},b({'ref':_0x23eac9,'className':_0x5de6ca},_0x1f53f8),_0x459c48);});function Ae(_0x48d076,_0x3981bd,_0x40a2bd,_0x1b622b,_0x4987fc){const _0x4d3bb8=_0x598bd7;return M[_0x4d3bb8(0x2ce)](_0x48d076['tag'],b(b({'key':_0x3981bd},Ot(_0x48d076,_0x40a2bd,_0x4987fc)),_0x1b622b),(Tt(_0x48d076,_0x40a2bd)[_0x4d3bb8(0x204)]||[])[_0x4d3bb8(0x1f3)](function(_0x3fa8e5,_0x3b26fe){const _0x1f6e98=_0x4d3bb8;return Ae(_0x3fa8e5,''[_0x1f6e98(0x3b6)](_0x3981bd,'-')[_0x1f6e98(0x3b6)](_0x48d076[_0x1f6e98(0x1b8)],'-')[_0x1f6e98(0x3b6)](_0x3b26fe),_0x40a2bd,void 0x0,_0x4987fc);}));}function Ot(_0x1f24d7,_0x4a4828,_0x3934aa){const _0x24ca9f=_0x598bd7;var _0x4012fc=b({},_0x1f24d7['attrs']);_0x3934aa!=null&&_0x3934aa[_0x24ca9f(0x2ef)]&&_0x4012fc[_0x24ca9f(0x1ff)]===_0x24ca9f(0x2ef)&&(_0x4012fc[_0x24ca9f(0x1ff)]=_0x3934aa[_0x24ca9f(0x2ef)]),_0x1f24d7['tag']===_0x24ca9f(0x2af)&&_0x4012fc['id']&&(_0x4012fc['id']=_0x4012fc['id']+_0x4a4828[_0x24ca9f(0x246)]),Object[_0x24ca9f(0x241)](_0x4012fc)[_0x24ca9f(0x401)](function(_0x58a8e8){const _0x41d3c6=_0x24ca9f;var _0x38d2b0=_0x58a8e8[0x0],_0x74fb10=_0x58a8e8[0x1];_0x38d2b0==='mask'&&typeof _0x74fb10==_0x41d3c6(0x293)&&(_0x4012fc[_0x38d2b0]=_0x74fb10['replace'](/url\(#(.*)\)/,_0x41d3c6(0x406)['concat'](_0x4a4828[_0x41d3c6(0x246)],')')));});var _0x468495=_0x4a4828[_0x24ca9f(0x268)];return!_0x468495||_0x468495[_0x24ca9f(0x2a5)]===0x0||(_0x1f24d7['tag']===_0x24ca9f(0x3a0)&&_0x4012fc[_0x24ca9f(0x3f1)]&&(_0x4012fc[_0x24ca9f(0x3f1)]=_0x4012fc[_0x24ca9f(0x3f1)]+_0x4a4828[_0x24ca9f(0x246)]),Object[_0x24ca9f(0x241)](_0x4012fc)[_0x24ca9f(0x401)](function(_0x28b36e){const _0x96b7c1=_0x24ca9f;var _0x31547d=_0x28b36e[0x0],_0x19fef8=_0x28b36e[0x1];typeof _0x19fef8=='string'&&(_0x4012fc[_0x31547d]=_0x19fef8['replace'](/url\(#(.*)\)/,_0x96b7c1(0x406)['concat'](_0x4a4828[_0x96b7c1(0x246)],')')));})),_0x4012fc;}function Tt(_0x24b6b5,_0x150bb2){const _0xd6ff70=_0x598bd7;var _0x2f7c1b,_0x1f58f5=_0x150bb2[_0xd6ff70(0x268)];return!_0x1f58f5||_0x1f58f5[_0xd6ff70(0x2a5)]===0x0?_0x24b6b5:_0x24b6b5['tag']===_0xd6ff70(0x2f5)&&(!((_0x2f7c1b=_0x24b6b5['children'])===null||_0x2f7c1b===void 0x0)&&_0x2f7c1b[_0xd6ff70(0x2a5)])?b(b({},_0x24b6b5),{'children':_0x24b6b5[_0xd6ff70(0x204)][_0xd6ff70(0x1f3)](function(_0x2c94f3){const _0x176def=_0xd6ff70;return typeof _0x2c94f3['attrs']['id']==_0x176def(0x293)&&_0x1f58f5&&_0x1f58f5[_0x176def(0x2e1)](_0x2c94f3[_0x176def(0x341)]['id'])?b(b({},_0x2c94f3),{'attrs':b(b({},_0x2c94f3[_0x176def(0x341)]),{'id':_0x2c94f3[_0x176def(0x341)]['id']+_0x150bb2[_0x176def(0x246)]})}):_0x2c94f3;})}):_0x24b6b5;}function Rt(){const _0x46a7e9=_0x598bd7;return Math['random']()[_0x46a7e9(0x1ae)](0x24)[_0x46a7e9(0x2f2)](0x2,0x8);}Ce[_0x598bd7(0x284)]='UniverIcon';var Dt={'tag':_0x598bd7(0x324),'attrs':{'xmlns':_0x598bd7(0x371),'fill':_0x598bd7(0x343),'viewBox':'0\x200\x2016\x2016','width':_0x598bd7(0x226),'height':_0x598bd7(0x226)},'children':[{'tag':'g','attrs':{'clipPath':'url(#off-line-icon_clip0_910_343)'},'children':[{'tag':_0x598bd7(0x20e),'attrs':{'stroke':_0x598bd7(0x3a8),'d':'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','strokeLinecap':_0x598bd7(0x254),'strokeLinejoin':'round','strokeWidth':1.2}}]},{'tag':_0x598bd7(0x2f5),'attrs':{},'children':[{'tag':_0x598bd7(0x278),'attrs':{'id':_0x598bd7(0x332)},'children':[{'tag':_0x598bd7(0x20e),'attrs':{'fill':_0x598bd7(0x286),'d':_0x598bd7(0x3b7)}}]}]}],'defIds':[_0x598bd7(0x332)]},ye=M[_0x598bd7(0x35d)](function(_0x2708c3,_0x49aaed){const _0x138522=_0x598bd7;return M['createElement'](Ce,Object[_0x138522(0x34f)]({},_0x2708c3,{'id':_0x138522(0x3de),'ref':_0x49aaed,'icon':Dt}));});ye[_0x598bd7(0x284)]=_0x598bd7(0x3dc);var Ut={'tag':_0x598bd7(0x324),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0x598bd7(0x343),'viewBox':_0x598bd7(0x2ca),'width':_0x598bd7(0x226),'height':'1em'},'children':[{'tag':'g','attrs':{'clipPath':_0x598bd7(0x3bd)},'children':[{'tag':_0x598bd7(0x20e),'attrs':{'stroke':_0x598bd7(0x3a8),'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':_0x598bd7(0x254),'strokeLinejoin':_0x598bd7(0x254),'strokeWidth':1.2}}]},{'tag':_0x598bd7(0x2f5),'attrs':{},'children':[{'tag':'clipPath','attrs':{'id':'on-line-icon_clip0_910_349'},'children':[{'tag':_0x598bd7(0x20e),'attrs':{'fill':_0x598bd7(0x286),'d':_0x598bd7(0x3b7),'transform':_0x598bd7(0x3d2)}}]}]}],'defIds':['on-line-icon_clip0_910_349']},$e=M[_0x598bd7(0x35d)](function(_0x33afa4,_0x4850d2){const _0x2afc11=_0x598bd7;return M[_0x2afc11(0x2ce)](Ce,Object[_0x2afc11(0x34f)]({},_0x33afa4,{'id':_0x2afc11(0x323),'ref':_0x4850d2,'icon':Ut}));});$e[_0x598bd7(0x284)]=_0x598bd7(0x319);function Nt(_0x1c4c6e){const _0x650190=_0x598bd7;switch(_0x1c4c6e){case u['CollaborationStatus'][_0x650190(0x20d)]:return'collabStatus.offline';case u['CollaborationStatus'][_0x650190(0x381)]:return _0x650190(0x2d8);case u[_0x650190(0x309)][_0x650190(0x222)]:return _0x650190(0x3aa);case u[_0x650190(0x309)][_0x650190(0x2ea)]:return _0x650190(0x3cb);case u[_0x650190(0x309)][_0x650190(0x1b2)]:case u[_0x650190(0x309)][_0x650190(0x21f)]:return _0x650190(0x27b);case u[_0x650190(0x309)][_0x650190(0x1c7)]:case u[_0x650190(0x309)][_0x650190(0x23f)]:return'collabStatus.synced';}}function Mt(_0x116d0e){const _0x286542=_0x598bd7,{status$:_0x53c7ce}=_0x116d0e,_0x2c8dca=O[_0x286542(0x1d8)](_0x53c7ce,u[_0x286542(0x309)][_0x286542(0x2ea)]),_0x5e6454=O[_0x286542(0x335)](a[_0x286542(0x350)]),_0x96bc14=O[_0x286542(0x335)](u[_0x286542(0x41d)]),_0x14d9a6=_0x2c8dca!==u['CollaborationStatus'][_0x286542(0x20d)],_0x27e296=_0x5e6454['t'](Nt(_0x2c8dca)),_0x131aa4=_0x14d9a6?P[_0x286542(0x3b4)]($e,{}):P[_0x286542(0x3b4)](ye,{}),_0x133336=M[_0x286542(0x2df)](()=>{_0x14d9a6||_0x96bc14['reconnect']();},[_0x14d9a6,_0x96bc14]);function _0xd45bd3(){const _0x4e1bc5=_0x286542;return P['jsxs'](_0x4e1bc5(0x20f),{'className':_0x4e1bc5(0x424),'onClick':_0x133336,'children':[P[_0x4e1bc5(0x3b4)](_0x4e1bc5(0x20f),{'className':D['clsx'](_0x4e1bc5(0x3f7),{'univer-text-green-500':_0x14d9a6,'univer-text-red-500':!_0x14d9a6}),'children':_0x131aa4}),P[_0x4e1bc5(0x3b4)](_0x4e1bc5(0x20f),{'className':'univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','children':_0x27e296})]});}return _0x14d9a6?_0xd45bd3():P['jsx'](D[_0x286542(0x363)],{'title':_0x5e6454['t'](_0x286542(0x3c3)),'children':_0xd45bd3()});}var Lt=Object[_0x598bd7(0x2e2)],Pt=(_0x2025e6,_0x591f2d,_0x28e63c,_0x6bf79)=>{for(var _0x12b7f0=_0x6bf79>0x1?void 0x0:_0x6bf79?Lt(_0x591f2d,_0x28e63c):_0x591f2d,_0x140542=_0x2025e6['length']-0x1,_0x17f8df;_0x140542>=0x0;_0x140542--)(_0x17f8df=_0x2025e6[_0x140542])&&(_0x12b7f0=_0x17f8df(_0x12b7f0)||_0x12b7f0);return _0x12b7f0;},X=(_0x5e6c23,_0x1e06bc)=>(_0x774e55,_0x36c404)=>_0x1e06bc(_0x774e55,_0x36c404,_0x5e6c23);exports['DesktopCollaborationStatusDisplayController']=class extends a[_0x598bd7(0x3ef)]{constructor(_0x138a67,_0x3495cf,_0xd10f90,_0x4777d1){const _0x270f3a=_0x598bd7;super(),h(this,'_status$',new d[(_0x270f3a(0x2ee))](u['CollaborationStatus']['NOT_COLLAB'])),(this[_0x270f3a(0x2a2)]=_0x138a67,this['_injector']=_0x3495cf,this[_0x270f3a(0x29c)]=_0xd10f90,this[_0x270f3a(0x37e)]=_0x4777d1,this[_0x270f3a(0x431)](),this['_initStatusListener']());}[_0x598bd7(0x259)](){const _0x199b11=_0x598bd7;this[_0x199b11(0x25e)](this['_univerInstanceService'][_0x199b11(0x300)][_0x199b11(0x429)](d[_0x199b11(0x2bc)](()=>{const _0x53f1bc=_0x199b11,_0x2663d5=this[_0x53f1bc(0x2a2)]['getFocusedUnit']();return _0x2663d5?this[_0x53f1bc(0x29c)]['getCollabEntity$'](_0x2663d5[_0x53f1bc(0x320)]()):d['of'](null);}),d[_0x199b11(0x2bc)](_0x505a23=>_0x505a23?_0x505a23[_0x199b11(0x42e)]:d['of'](u[_0x199b11(0x309)][_0x199b11(0x2ea)])))[_0x199b11(0x37c)](_0x1602e7=>{const _0x210a07=_0x199b11;this['_status$'][_0x210a07(0x2bd)](_0x1602e7);}));}[_0x598bd7(0x431)](){const _0x15ca50=_0x598bd7;this[_0x15ca50(0x25e)](this['_uiPartsService'][_0x15ca50(0x3e7)](O['BuiltInUIPart']['HEADER_MENU'],()=>O[_0x15ca50(0x3f2)](wt({'status$':this[_0x15ca50(0x42c)][_0x15ca50(0x1cb)]()}),this['_injector'])));}},exports['DesktopCollaborationStatusDisplayController']=Pt([X(0x0,a[_0x598bd7(0x306)]),X(0x1,a[_0x598bd7(0x2b5)](a[_0x598bd7(0x3cd)])),X(0x2,a[_0x598bd7(0x2b5)](u[_0x598bd7(0x391)])),X(0x3,O[_0x598bd7(0x210)])],exports['DesktopCollaborationStatusDisplayController']);function wt(_0x2e2fe9){const {status$:_0xadc630}=_0x2e2fe9;return function(){const _0x226394=_0x1844;return P[_0x226394(0x3b4)](Mt,{'status$':_0xadc630});};}var At=Object['getOwnPropertyDescriptor'],yt=(_0x33377c,_0x19b911,_0x6ba1f0,_0x3de0cf)=>{const _0x5e5e43=_0x598bd7;for(var _0x2b52e5=_0x3de0cf>0x1?void 0x0:_0x3de0cf?At(_0x19b911,_0x6ba1f0):_0x19b911,_0xfb2b87=_0x33377c[_0x5e5e43(0x2a5)]-0x1,_0x4eba35;_0xfb2b87>=0x0;_0xfb2b87--)(_0x4eba35=_0x33377c[_0xfb2b87])&&(_0x2b52e5=_0x4eba35(_0x2b52e5)||_0x2b52e5);return _0x2b52e5;},y=(_0x5d2017,_0x2b2a23)=>(_0x4488e3,_0xbe6489)=>_0x2b2a23(_0x4488e3,_0xbe6489,_0x5d2017);let q=class extends a[_0x598bd7(0x3ef)]{constructor(_0x5d358e,_0x4b2c89,_0x539dc6,_0x5a14cd,_0x14d1fd,_0x4dcd15){const _0x2dbff4=_0x598bd7;super(),this[_0x2dbff4(0x223)]=_0x5d358e,this[_0x2dbff4(0x1cd)]=_0x4b2c89,this[_0x2dbff4(0x1d3)]=_0x539dc6,this[_0x2dbff4(0x1f2)]=_0x5a14cd,this[_0x2dbff4(0x376)]=_0x14d1fd,this[_0x2dbff4(0x2e7)]=_0x4dcd15,this[_0x2dbff4(0x40a)](),this[_0x2dbff4(0x337)]();}['_setupBeforeClosingHandler'](){const _0x315ab3=_0x598bd7;this[_0x315ab3(0x25e)](this[_0x315ab3(0x223)][_0x315ab3(0x32d)](()=>{const _0x239535=_0x315ab3;if(this['_localCacheService'][_0x239535(0x27d)]['size'])return this[_0x239535(0x2e7)]['t']('collaboration-client.offline-data-not-saved');}));}[_0x598bd7(0x337)](){this['disposeWithMe'](this['_collaborationUIEventService']['event$']['subscribe'](_0x4cd08a=>{const _0x425135=_0x1844;_0x4cd08a['id']===u[_0x425135(0x227)]['OTHER_CLIENT_EDITING']&&this['_messageService'][_0x425135(0x1c6)]({'type':D[_0x425135(0x361)][_0x425135(0x274)],'content':this['_localeService']['t']('collaboration.single-unit.warning')}),_0x4cd08a['id']===u[_0x425135(0x227)][_0x425135(0x39b)]&&this['_messageService'][_0x425135(0x1c6)]({'type':D[_0x425135(0x361)][_0x425135(0x274)],'content':this[_0x425135(0x2e7)]['t'](_0x425135(0x244))}),_0x4cd08a['id']===u['CollaborationUIEventId']['PERMISSION_DENIED']&&this[_0x425135(0x376)][_0x425135(0x1c6)]({'title':this[_0x425135(0x2e7)]['t'](_0x425135(0x25b)),'content':this[_0x425135(0x2e7)]['t'](_0x425135(0x39a)),'type':_0x425135(0x1f9),'duration':0x0}),_0x4cd08a['id']===u['CollaborationUIEventId'][_0x425135(0x381)]&&this[_0x425135(0x1f2)][_0x425135(0x1c6)]({'type':D[_0x425135(0x361)]['Error'],'content':this[_0x425135(0x2e7)]['t'](_0x425135(0x244))+'('+_0x4cd08a['data']+')'}),_0x4cd08a['id']===u[_0x425135(0x227)][_0x425135(0x3a4)]&&this[_0x425135(0x1f2)][_0x425135(0x1c6)]({'type':D['MessageType'][_0x425135(0x274)],'content':this[_0x425135(0x2e7)]['t'](_0x4cd08a[_0x425135(0x33c)]||'')}),_0x4cd08a['id']===u[_0x425135(0x227)]['SOCKET_FAILED_RETRY']&&this[_0x425135(0x1f2)][_0x425135(0x1c6)]({'type':D['MessageType'][_0x425135(0x274)],'content':this[_0x425135(0x2e7)]['t'](_0x425135(0x221))}),_0x4cd08a['id']===u[_0x425135(0x227)]['SOCKET_FAILED']&&this[_0x425135(0x1f2)]['show']({'type':D[_0x425135(0x361)][_0x425135(0x316)],'content':this['_localeService']['t'](_0x425135(0x1e4))}),_0x4cd08a['id']===u[_0x425135(0x227)]['SUBMIT_CHANGESET_TIMEOUT']&&this[_0x425135(0x1f2)][_0x425135(0x1c6)]({'type':D[_0x425135(0x361)]['Error'],'content':this[_0x425135(0x2e7)]['t'](_0x425135(0x33a))});}));}};q=yt([y(0x0,O[_0x598bd7(0x301)]),y(0x1,u[_0x598bd7(0x352)]),y(0x2,a[_0x598bd7(0x2b5)](u['CollaborationUIEventService'])),y(0x3,O[_0x598bd7(0x2a6)]),y(0x4,O[_0x598bd7(0x38f)]),y(0x5,a[_0x598bd7(0x2b5)](a['LocaleService']))],q);const $t='collaboration-client-ui.config',De={},pe=a[_0x598bd7(0x41e)](_0x598bd7(0x2c7));var xt=Object[_0x598bd7(0x2e2)],Bt=(_0x1de639,_0x216f72,_0xdfede6,_0xa50bee)=>{const _0x5449b4=_0x598bd7;for(var _0x2a4617=_0xa50bee>0x1?void 0x0:_0xa50bee?xt(_0x216f72,_0xdfede6):_0x216f72,_0x509564=_0x1de639[_0x5449b4(0x2a5)]-0x1,_0x141c64;_0x509564>=0x0;_0x509564--)(_0x141c64=_0x1de639[_0x509564])&&(_0x2a4617=_0x141c64(_0x2a4617)||_0x2a4617);return _0x2a4617;},F=(_0x4f02d0,_0x5d0045)=>(_0x266ce4,_0xac232c)=>_0x5d0045(_0x266ce4,_0xac232c,_0x4f02d0);exports[_0x598bd7(0x22c)]=class extends a[_0x598bd7(0x35b)]{constructor(_0x1a5474,_0x42a34d,_0x3f74b5,_0x449fea,_0x2bc303){const _0x332483=_0x598bd7;super(),this['_urlService']=_0x1a5474,this[_0x332483(0x374)]=_0x42a34d,this[_0x332483(0x3d0)]=_0x3f74b5,this[_0x332483(0x2dc)]=_0x449fea,_0x2bc303?_0x2bc303==null||_0x2bc303[_0x332483(0x330)]()[_0x332483(0x2f1)](()=>this[_0x332483(0x2e3)]()):(this['_logService'][_0x332483(0x3a5)]('[CollaborationDataLoaderController]',_0x332483(0x2ad)),this[_0x332483(0x2e3)]());}async['_init'](){const _0xd59a98=_0x598bd7,_0x17a69f=this[_0xd59a98(0x333)][_0xd59a98(0x21e)](_0xd59a98(0x1f1)),_0x44a26f=this[_0xd59a98(0x333)][_0xd59a98(0x21e)](_0xd59a98(0x1e7)),_0x3676c1=this[_0xd59a98(0x333)][_0xd59a98(0x21e)](_0xd59a98(0x22e));if(!_0x17a69f||!_0x44a26f){this['_logService'][_0xd59a98(0x3a5)]('[CollaborationDataLoaderController]',_0xd59a98(0x3da));return;}const _0x1eb60f=await this[_0xd59a98(0x2dc)]['loadUnit'](_0x17a69f,Number(_0x44a26f),_0x3676c1);_0x1eb60f&&_0x1eb60f instanceof a['Workbook']&&this[_0xd59a98(0x237)](_0x1eb60f);}async[_0x598bd7(0x237)](_0x4b4cee){const _0x8feb8=_0x598bd7;await this[_0x8feb8(0x2e8)](_0x4b4cee),_0x4b4cee[_0x8feb8(0x3e8)]['pipe'](d[_0x8feb8(0x2c6)](this[_0x8feb8(0x39c)]))[_0x8feb8(0x37c)](_0x3f6413=>{_0x3f6413&&this['_updateURLWithCurrentState'](_0x3f6413);}),this[_0x8feb8(0x333)]['urlChange$'][_0x8feb8(0x429)](d[_0x8feb8(0x2c6)](this['dispose$']))['subscribe'](()=>this['_updateSubUnitFromURLParams'](_0x4b4cee));}[_0x598bd7(0x3f8)](_0x51d138,_0x547f55=!0x1){const _0x52ef57=_0x598bd7,_0x58f3d1=this[_0x52ef57(0x333)][_0x52ef57(0x21e)]('subunit');_0x51d138['getSheetId']()!==_0x58f3d1&&this[_0x52ef57(0x333)][_0x52ef57(0x2eb)](_0x52ef57(0x22e),_0x51d138[_0x52ef57(0x3f9)](),_0x547f55);}async[_0x598bd7(0x2e8)](_0x1fe899){const _0x2a9707=_0x598bd7;var _0x25a942;const _0x2a92cb=this[_0x2a9707(0x333)]['getParam'](_0x2a9707(0x22e));if(!_0x2a92cb||!_0x1fe899[_0x2a9707(0x1d2)](_0x2a92cb)){const _0x5090ee=_0x1fe899[_0x2a9707(0x41f)]()[0x0],_0x11a806=_0x1fe899[_0x2a9707(0x1d2)](_0x5090ee);if(!_0x11a806)return;this[_0x2a9707(0x3f8)](_0x11a806,!0x0),await this[_0x2a9707(0x3d0)]['executeCommand'](g['SetWorksheetActivateCommand']['id'],{'unitId':_0x1fe899['getUnitId'](),'subUnitId':_0x5090ee});return;}((_0x25a942=_0x1fe899['getActiveSheet']())==null?void 0x0:_0x25a942['getSheetId']())!==_0x2a92cb&&await this['_commandService'][_0x2a9707(0x2d9)](g['SetWorksheetActivateCommand']['id'],{'unitId':_0x1fe899['getUnitId'](),'subUnitId':_0x2a92cb});}},exports[_0x598bd7(0x22c)]=Bt([F(0x0,pe),F(0x1,a['ILogService']),F(0x2,a[_0x598bd7(0x370)]),F(0x3,a[_0x598bd7(0x2b5)](u[_0x598bd7(0x1bb)])),F(0x4,a[_0x598bd7(0x327)](Ge[_0x598bd7(0x2c4)]))],exports[_0x598bd7(0x22c)]);var jt=Object[_0x598bd7(0x2e2)],kt=(_0x4f504c,_0x3d4693,_0x50bd55,_0x1e51df)=>{for(var _0x36589f=_0x1e51df>0x1?void 0x0:_0x1e51df?jt(_0x3d4693,_0x50bd55):_0x3d4693,_0x5c29cd=_0x4f504c['length']-0x1,_0x188df8;_0x5c29cd>=0x0;_0x5c29cd--)(_0x188df8=_0x4f504c[_0x5c29cd])&&(_0x36589f=_0x188df8(_0x36589f)||_0x36589f);return _0x36589f;},Ue=(_0x4b437b,_0x3f1dd0)=>(_0xb4a65,_0x2e6396)=>_0x3f1dd0(_0xb4a65,_0x2e6396,_0x4b437b);let z=class{constructor(_0x4b7a0b,_0x19e1d3){const _0x35f639=_0x598bd7;this['_transformService']=_0x4b7a0b,this[_0x35f639(0x42a)]=_0x19e1d3;}[_0x598bd7(0x31d)](_0x113ee8){const _0x42c557=_0x598bd7;this['_transformUndoRedoStack'](_0x113ee8),this[_0x42c557(0x33f)](_0x113ee8);}[_0x598bd7(0x3ac)](_0x2f97d9){const _0x54ad5f=_0x598bd7,{unitID:_0xa89343}=_0x2f97d9,_0xd48863=this[_0x54ad5f(0x42a)][_0x54ad5f(0x2b6)](_0xa89343)[_0x54ad5f(0x31a)](E[_0x54ad5f(0x413)]),{redoCache:_0x4deac0}=_0xd48863[_0x54ad5f(0x201)]();if(_0x4deac0['length']===0x0)return _0x2f97d9;let _0x5d609f=a['Tools']['deepClone'](_0x2f97d9[_0x54ad5f(0x3c7)][0x0]);for(let _0x338dfa=0x0;_0x338dfa<_0x4deac0[_0x54ad5f(0x2a5)];_0x338dfa++){const _0x550668={'id':_0x54ad5f(0x1c0),'params':{..._0x4deac0[_0x338dfa]}},_0x55581c=this[_0x54ad5f(0x412)][_0x54ad5f(0x2b8)](_0x5d609f,_0x550668,!0x1);if(m['isTransformMutationFailure'](_0x55581c))throw _0x55581c['error'];_0x5d609f=_0x55581c[_0x54ad5f(0x1b6)];}return{...a[_0x54ad5f(0x28c)][_0x54ad5f(0x288)](_0x2f97d9),'mutations':[_0x5d609f]};}[_0x598bd7(0x3f5)](_0x3f42f0){const _0x13aec5=_0x598bd7,{unitID:_0x24d204}=_0x3f42f0,_0x12497a=this['_renderManagerService'][_0x13aec5(0x2b6)](_0x24d204)[_0x13aec5(0x31a)](E[_0x13aec5(0x413)]),{undoCache:_0xd8f757,redoCache:_0x2c8c33}=_0x12497a['getUndoRedoMutationParamsCache']();if(_0xd8f757[_0x13aec5(0x2a5)]===0x0||_0x2c8c33[_0x13aec5(0x2a5)]===0x0)return;const _0xa085de=[],_0x5926c0=[];let _0x287ec3=a['Tools'][_0x13aec5(0x288)](_0x3f42f0['mutations'][0x0]),_0x48a7ff=a[_0x13aec5(0x28c)][_0x13aec5(0x288)](_0x3f42f0['mutations'][0x0]);for(let _0x152d3d=_0xd8f757[_0x13aec5(0x2a5)]-0x1;_0x152d3d>=0x0;_0x152d3d--){const _0x29fd55={'id':_0x13aec5(0x1c0),'params':{..._0xd8f757[_0x152d3d]}},_0x54b6fe={'id':_0x13aec5(0x1c0),'params':{..._0x2c8c33[_0x152d3d]}},_0x5e92e9=this['_transformService'][_0x13aec5(0x2b8)](_0x287ec3,_0x29fd55,!0x1),_0x166eed=this[_0x13aec5(0x412)]['transformMutation'](_0x48a7ff,_0x54b6fe,!0x1);if(m[_0x13aec5(0x1ec)](_0x5e92e9))throw _0x5e92e9[_0x13aec5(0x1f9)];if(m['isTransformMutationFailure'](_0x166eed))throw _0x166eed['error'];_0xa085de[_0x13aec5(0x3af)](_0x5e92e9[_0x13aec5(0x3df)]['params']),_0x5926c0[_0x13aec5(0x3af)](_0x166eed['m2Prime'][_0x13aec5(0x2e0)]),_0x287ec3=_0x5e92e9[_0x13aec5(0x1b6)],_0x48a7ff=_0x166eed[_0x13aec5(0x1b6)];}_0x12497a['setUndoRedoMutationParamsCache']({'undoCache':_0xa085de,'redoCache':_0x5926c0});}[_0x598bd7(0x33f)](_0x1b9a0b){const _0x4e5159=_0x598bd7,{unitID:_0x414d37}=_0x1b9a0b,_0x3f6b58=this['_renderManagerService'][_0x4e5159(0x2b6)](_0x414d37)['with'](E['DocIMEInputManagerService']),_0x2e19ba=_0x3f6b58[_0x4e5159(0x3d4)]();if(_0x2e19ba==null)return;const _0x16e8fd=[{'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x1b9a0b['unitID'],'actions':null,'textRanges':[_0x2e19ba]}}],_0x49e4ed=this[_0x4e5159(0x412)][_0x4e5159(0x1ef)](_0x1b9a0b,_0x16e8fd);if(!m[_0x4e5159(0x239)](_0x49e4ed))throw _0x49e4ed[_0x4e5159(0x1f9)];const _0x1015be=_0x49e4ed[_0x4e5159(0x3df)][0x0][_0x4e5159(0x2e0)][_0x4e5159(0x3cc)];Array[_0x4e5159(0x1d9)](_0x1015be)&&_0x1015be[_0x4e5159(0x2a5)]&&_0x3f6b58[_0x4e5159(0x417)](_0x1015be[0x0]);}};z=kt([Ue(0x0,m['ITransformService']),Ue(0x1,p[_0x598bd7(0x42d)])],z);var Ft=Object[_0x598bd7(0x2e2)],Ht=(_0x45b6a9,_0x1f9f6c,_0x194ebe,_0x577750)=>{for(var _0x4c0afc=_0x577750>0x1?void 0x0:_0x577750?Ft(_0x1f9f6c,_0x194ebe):_0x1f9f6c,_0x221544=_0x45b6a9['length']-0x1,_0x5de06e;_0x221544>=0x0;_0x221544--)(_0x5de06e=_0x45b6a9[_0x221544])&&(_0x4c0afc=_0x5de06e(_0x4c0afc)||_0x4c0afc);return _0x4c0afc;},ce=(_0x5e2c5d,_0x1560a8)=>(_0x32ac9c,_0x4527c9)=>_0x1560a8(_0x32ac9c,_0x4527c9,_0x5e2c5d);let J=class{constructor(_0x1790dc,_0x33655e,_0x5735a5){const _0x139ec2=_0x598bd7;this[_0x139ec2(0x32b)]=_0x1790dc,this[_0x139ec2(0x412)]=_0x33655e,this[_0x139ec2(0x1bf)]=_0x5735a5;}[_0x598bd7(0x365)](_0x21fdf7){const _0x4645a1=_0x598bd7;this[_0x4645a1(0x207)](_0x21fdf7);}[_0x598bd7(0x3ac)](_0x1c76b7){const _0x578afc=_0x598bd7,{unitID:_0x14dec0}=_0x1c76b7,{collaboration:_0x935280}=this[_0x578afc(0x1bf)]['getStateCache'](_0x14dec0);if(_0x935280[_0x578afc(0x2a5)]===0x0)return _0x1c76b7;let _0x10cba1=a[_0x578afc(0x28c)]['deepClone'](_0x1c76b7[_0x578afc(0x3c7)][0x0]);for(let _0x32ba93=0x0;_0x32ba93<_0x935280['length'];_0x32ba93++){const _0x312fe7={'id':_0x578afc(0x1c0),'params':{'unitId':_0x935280[_0x32ba93][_0x578afc(0x325)],..._0x935280[_0x32ba93][_0x578afc(0x2f7)]}},_0x1eebea=this['_transformService'][_0x578afc(0x2b8)](_0x10cba1,_0x312fe7,!0x1);if(m[_0x578afc(0x1ec)](_0x1eebea))throw _0x1eebea[_0x578afc(0x1f9)];_0x10cba1=_0x1eebea['m1Prime'];}return{...a[_0x578afc(0x28c)][_0x578afc(0x288)](_0x1c76b7),'mutations':[_0x10cba1]};}['_transformHistoryAndStateStack'](_0x477136){const _0x41b522=_0x598bd7,{unitID:_0x3f44c5}=_0x477136,{history:_0x326cc2,collaboration:_0xe76139}=this[_0x41b522(0x1bf)][_0x41b522(0x2d0)](_0x3f44c5);if(_0x326cc2['length']===0x0&&_0xe76139[_0x41b522(0x2a5)]===0x0)return;const _0x41dd14=[],_0x44fc76=[];let _0x310763=a[_0x41b522(0x28c)][_0x41b522(0x288)](_0x477136[_0x41b522(0x3c7)][0x0]),_0x385d36=a[_0x41b522(0x28c)][_0x41b522(0x288)](_0x477136['mutations'][0x0]);for(let _0x44d740=_0x326cc2[_0x41b522(0x2a5)]-0x1;_0x44d740>=0x0;_0x44d740--){const _0x5310f4={'id':_0x41b522(0x1c0),'params':{'unitId':_0x326cc2[_0x44d740][_0x41b522(0x325)],..._0x326cc2[_0x44d740]['undoState']}},_0x5d66e2={'id':_0x41b522(0x1c0),'params':{'unitId':_0x326cc2[_0x44d740][_0x41b522(0x325)],..._0x326cc2[_0x44d740][_0x41b522(0x2f7)]}},_0x4ea03d=this['_transformService'][_0x41b522(0x2b8)](_0x310763,_0x5310f4,!0x1),_0x5e1617=this['_transformService'][_0x41b522(0x2b8)](_0x385d36,_0x5d66e2,!0x1);if(m[_0x41b522(0x1ec)](_0x4ea03d))throw _0x4ea03d['error'];if(m[_0x41b522(0x1ec)](_0x5e1617))throw _0x5e1617[_0x41b522(0x1f9)];_0x41dd14[_0x41b522(0x3af)]({..._0x326cc2[_0x44d740],'undoState':_0x4ea03d[_0x41b522(0x3df)][_0x41b522(0x2e0)],'redoState':_0x5e1617['m2Prime'][_0x41b522(0x2e0)]}),_0x310763=_0x4ea03d[_0x41b522(0x1b6)],_0x385d36=_0x5e1617[_0x41b522(0x1b6)];}_0x310763=a[_0x41b522(0x28c)]['deepClone'](_0x477136[_0x41b522(0x3c7)][0x0]),_0x385d36=a[_0x41b522(0x28c)][_0x41b522(0x288)](_0x477136['mutations'][0x0]);for(let _0x41e4c3=_0xe76139[_0x41b522(0x2a5)]-0x1;_0x41e4c3>=0x0;_0x41e4c3--){const _0x474562={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0xe76139[_0x41e4c3][_0x41b522(0x325)],..._0xe76139[_0x41e4c3][_0x41b522(0x322)]}},_0x4dd757={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0xe76139[_0x41e4c3]['unitId'],..._0xe76139[_0x41e4c3][_0x41b522(0x2f7)]}},_0x424636=this[_0x41b522(0x412)]['transformMutation'](_0x310763,_0x474562,!0x1),_0x56fe42=this[_0x41b522(0x412)][_0x41b522(0x2b8)](_0x385d36,_0x4dd757,!0x1);if(m[_0x41b522(0x1ec)](_0x424636))throw _0x424636[_0x41b522(0x1f9)];if(m['isTransformMutationFailure'](_0x56fe42))throw _0x56fe42[_0x41b522(0x1f9)];_0x44fc76[_0x41b522(0x3af)]({..._0xe76139[_0x41e4c3],'undoState':_0x424636['m2Prime'][_0x41b522(0x2e0)],'redoState':_0x56fe42['m2Prime'][_0x41b522(0x2e0)]}),_0x310763=_0x424636[_0x41b522(0x1b6)],_0x385d36=_0x56fe42[_0x41b522(0x1b6)];}this[_0x41b522(0x1bf)][_0x41b522(0x205)](_0x3f44c5,{'history':_0x41dd14,'collaboration':_0x44fc76});}};J=Ht([ce(0x0,a[_0x598bd7(0x2b5)](a['Injector'])),ce(0x1,m[_0x598bd7(0x272)]),ce(0x2,a[_0x598bd7(0x2b5)](E[_0x598bd7(0x348)]))],J);var Yt=Object[_0x598bd7(0x2e2)],Wt=(_0xc787cb,_0x2a26ba,_0xbc974f,_0x41aae7)=>{const _0x166b82=_0x598bd7;for(var _0x4e7a71=_0x41aae7>0x1?void 0x0:_0x41aae7?Yt(_0x2a26ba,_0xbc974f):_0x2a26ba,_0x3ebfc7=_0xc787cb[_0x166b82(0x2a5)]-0x1,_0x4bd0c2;_0x3ebfc7>=0x0;_0x3ebfc7--)(_0x4bd0c2=_0xc787cb[_0x3ebfc7])&&(_0x4e7a71=_0x4bd0c2(_0x4e7a71)||_0x4e7a71);return _0x4e7a71;},Ne=(_0x480670,_0x219eee)=>(_0x547c6c,_0x338018)=>_0x219eee(_0x547c6c,_0x338018,_0x480670);let Z=class{constructor(_0x18eabe,_0x230fa5){const _0x2537c5=_0x598bd7;this[_0x2537c5(0x32b)]=_0x18eabe,this[_0x2537c5(0x412)]=_0x230fa5;}[_0x598bd7(0x3dd)](_0x25899f){const _0x17364c=_0x598bd7;var _0x562135;const _0x59f150=this[_0x17364c(0x32b)][_0x17364c(0x402)](Y[_0x17364c(0x393)]),_0x5b15e5=(_0x562135=_0x59f150[_0x17364c(0x228)]())!=null?_0x562135:[];if(_0x5b15e5['length']===0x0)return;const _0x6702e4=_0x25899f[_0x17364c(0x270)],_0x5db671=[{'id':_0x17364c(0x1c0),'params':{'unitId':_0x6702e4,'actions':null,'textRanges':_0x5b15e5}}],_0x5b7a67=this['_transformService'][_0x17364c(0x1ef)](_0x25899f,_0x5db671);if(!m[_0x17364c(0x239)](_0x5b7a67))throw _0x5b7a67['error'];const _0x3a31f8=_0x5b7a67[_0x17364c(0x3df)][0x0][_0x17364c(0x2e0)][_0x17364c(0x3cc)];Array[_0x17364c(0x1d9)](_0x3a31f8)&&_0x3a31f8[_0x17364c(0x2a5)]&&_0x59f150[_0x17364c(0x36e)](_0x3a31f8,{'unitId':_0x6702e4,'subUnitId':_0x6702e4},!0x1);}};Z=Wt([Ne(0x0,a[_0x598bd7(0x2b5)](a[_0x598bd7(0x3cd)])),Ne(0x1,m['ITransformService'])],Z);var Vt=Object['getOwnPropertyDescriptor'],Xt=(_0x21a97a,_0x28ee27,_0x477f7e,_0x149297)=>{const _0x1cd168=_0x598bd7;for(var _0xe196ed=_0x149297>0x1?void 0x0:_0x149297?Vt(_0x28ee27,_0x477f7e):_0x28ee27,_0x24531c=_0x21a97a[_0x1cd168(0x2a5)]-0x1,_0x3eb5ef;_0x24531c>=0x0;_0x24531c--)(_0x3eb5ef=_0x21a97a[_0x24531c])&&(_0xe196ed=_0x3eb5ef(_0xe196ed)||_0xe196ed);return _0xe196ed;},N=(_0x46c593,_0x22e001)=>(_0x482026,_0x5c48fd)=>_0x22e001(_0x482026,_0x5c48fd,_0x46c593);let Q=class extends a[_0x598bd7(0x3ef)]{constructor(_0xbf57e1,_0x173da2,_0x4f400c,_0x28e61d,_0x5a762d,_0x3fe0a2,_0x39eb06,_0x3a028e){const _0x307fa6=_0x598bd7;super(),h(this,_0x307fa6(0x42c),new d[(_0x307fa6(0x2ee))](u[_0x307fa6(0x309)][_0x307fa6(0x2ea)])),(this['_docStateChangeManagerService']=_0xbf57e1,this[_0x307fa6(0x29c)]=_0x173da2,this[_0x307fa6(0x26d)]=_0x4f400c,this[_0x307fa6(0x384)]=_0x28e61d,this[_0x307fa6(0x1ea)]=_0x5a762d,this[_0x307fa6(0x22d)]=_0x3fe0a2,this[_0x307fa6(0x1f2)]=_0x39eb06,this[_0x307fa6(0x2e7)]=_0x3a028e,this[_0x307fa6(0x3e1)]());}[_0x598bd7(0x3e1)](){const _0x922c50=_0x598bd7;this[_0x922c50(0x25e)](this[_0x922c50(0x29c)][_0x922c50(0x3d6)]['subscribe'](_0x3c16d2=>{const _0x5cc473=_0x922c50,_0x5097e2=this[_0x5cc473(0x1bf)]['docStateChange$'][_0x5cc473(0x37c)](_0xd50290=>{const _0x387971=_0x5cc473;if(_0xd50290==null)return;const {unitId:_0x53f43a,redoState:_0x18e269,commandId:_0x487ade}=_0xd50290;if(_0x53f43a!==_0x3c16d2[_0x387971(0x270)])return;const _0x2a0441={'id':_0x487ade,'type':a[_0x387971(0x2d5)]['MUTATION'],'params':{'unitId':_0x53f43a,'actions':_0x18e269['actions'],'textRanges':null}};_0x3c16d2['onLocalMutation'](_0x2a0441);});if(_0x3c16d2[_0x5cc473(0x25e)](_0x5097e2),_0x3c16d2 instanceof u[_0x5cc473(0x1c5)]){const _0x5221d8={'onTransformIME':_0x1f96ff=>this[_0x5cc473(0x26d)][_0x5cc473(0x31d)](_0x1f96ff),'onTransformState':_0x25e9dd=>this[_0x5cc473(0x384)]['transformStateCache'](_0x25e9dd),'onTransformSelections':_0x7c678b=>this[_0x5cc473(0x1ea)]['transformSelections'](_0x7c678b),'onSyncEditingCollabCursor':_0x14b628=>this[_0x5cc473(0x22d)][_0x5cc473(0x313)](_0x14b628),'onTransformRemoteChangesetByIMECache':_0x4c4fc2=>this['_docTransformIMECacheService'][_0x5cc473(0x3ac)](_0x4c4fc2),'onTransformRemoteChangesetByStateCache':_0x448636=>this[_0x5cc473(0x384)]['transformRemoteChangeset'](_0x448636)};_0x3c16d2['addHandlerCallback'](_0x5221d8);}}));}};Q=Xt([N(0x0,a[_0x598bd7(0x2b5)](E['DocStateChangeManagerService'])),N(0x1,a[_0x598bd7(0x2b5)](u[_0x598bd7(0x391)])),N(0x2,a[_0x598bd7(0x2b5)](z)),N(0x3,a[_0x598bd7(0x2b5)](J)),N(0x4,a[_0x598bd7(0x2b5)](Z)),N(0x5,a[_0x598bd7(0x2b5)](me)),N(0x6,O[_0x598bd7(0x2a6)]),N(0x7,a[_0x598bd7(0x2b5)](a['LocaleService']))],Q);var Gt=Object['getOwnPropertyDescriptor'],Kt=(_0x268ab8,_0x176c1e,_0x204c8f,_0x1850e5)=>{const _0x15093d=_0x598bd7;for(var _0x5e0d83=_0x1850e5>0x1?void 0x0:_0x1850e5?Gt(_0x176c1e,_0x204c8f):_0x176c1e,_0x5db846=_0x268ab8[_0x15093d(0x2a5)]-0x1,_0x1c40ca;_0x5db846>=0x0;_0x5db846--)(_0x1c40ca=_0x268ab8[_0x5db846])&&(_0x5e0d83=_0x1c40ca(_0x5e0d83)||_0x5e0d83);return _0x5e0d83;},le=(_0x44e231,_0x591617)=>(_0x3b971a,_0xaaf0e3)=>_0x591617(_0x3b971a,_0xaaf0e3,_0x44e231);let ve=class extends a[_0x598bd7(0x3ef)]{constructor(_0x34ba67,_0x2b5e44,_0x288ccf){const _0xe76299=_0x598bd7;super(),h(this,'_cachedData',new Map()),h(this,_0xe76299(0x21b),new Map()),h(this,'_disabled',!0x1),(this[_0xe76299(0x235)]=_0x34ba67,this[_0xe76299(0x1fb)]=_0x2b5e44,this['_revisionService']=_0x288ccf);}[_0x598bd7(0x214)](){const _0x284d03=_0x598bd7;this[_0x284d03(0x410)]=!0x0;}[_0x598bd7(0x419)](){const _0x38db79=_0x598bd7;this[_0x38db79(0x410)]=!0x1;}get['saveTaskMap'](){const _0xa402e8=_0x598bd7;return this[_0xa402e8(0x21b)];}[_0x598bd7(0x35a)](){const _0x58131f=_0x598bd7;this[_0x58131f(0x3e0)]()[_0x58131f(0x2f1)](()=>super[_0x58131f(0x35a)]());}async[_0x598bd7(0x1c8)](_0x304f03){const _0x283e12=_0x598bd7;return this[_0x283e12(0x410)]?null:this['_localStorageService'][_0x283e12(0x294)](u[_0x283e12(0x1df)](_0x304f03));}async['saveOfflineData'](_0x1c5bc1,_0xc37077){const _0x5bbf78=_0x598bd7;return!!this[_0x5bbf78(0x1fb)][_0x5bbf78(0x38e)](_0x1c5bc1,_0xc37077);}[_0x598bd7(0x3eb)](_0x15c7de,_0x112cef,_0x1b9e3f,_0x457ae3){const _0x146c6b=_0x598bd7,_0x18cc68=this[_0x146c6b(0x21a)]['getCurrentRevOfUnit'](_0x15c7de);this[_0x146c6b(0x2e9)][_0x146c6b(0x2fa)](_0x15c7de,{'unitID':_0x15c7de,'type':_0x112cef,'awaitingChangeset':_0x1b9e3f,'mutations':_0x457ae3,'rev':_0x18cc68}),this['_saveTaskMap'][_0x146c6b(0x24d)](_0x15c7de)||this[_0x146c6b(0x29b)](_0x15c7de);}[_0x598bd7(0x29b)](_0x17ee1d){const _0x38db48=_0x598bd7,_0x2bd92=this[_0x38db48(0x285)]();_0x2bd92===0x0?this[_0x38db48(0x31e)](_0x17ee1d):this[_0x38db48(0x21b)][_0x38db48(0x2fa)](_0x17ee1d,setTimeout(()=>this[_0x38db48(0x31e)](_0x17ee1d),_0x2bd92));}['_getSaveTimeout'](){const _0x54e80d=_0x598bd7;var _0x12e69a;return(_0x12e69a=this['_configService'][_0x54e80d(0x3ff)](u[_0x54e80d(0x23a)]))!=null?_0x12e69a:u[_0x54e80d(0x405)];}[_0x598bd7(0x31e)](_0x23c497){const _0x2c99e0=_0x598bd7,_0x14ba7d=this['_saveTaskMap'][_0x2c99e0(0x402)](_0x23c497);return _0x14ba7d!==void 0x0&&window['clearTimeout'](_0x14ba7d),this['_localStorageService'][_0x2c99e0(0x38e)](u['getLocalCacheKey'](_0x23c497),this['_cachedData']['get'](_0x23c497))[_0x2c99e0(0x2f1)](()=>this['_saveTaskMap'][_0x2c99e0(0x2f8)](_0x23c497));}async['exhaustSavingTask'](){const _0x182ed2=_0x598bd7,_0x5c35f5=[];this[_0x182ed2(0x21b)][_0x182ed2(0x401)]((_0x5141ae,_0x4e4b82)=>{const _0x50e291=_0x182ed2;window[_0x50e291(0x2f0)](_0x5141ae),_0x5c35f5[_0x50e291(0x2de)](this[_0x50e291(0x31e)](_0x4e4b82)[_0x50e291(0x2f1)](()=>{const _0x89420d=_0x50e291;this[_0x89420d(0x21b)]['delete'](_0x4e4b82);}));}),await Promise[_0x182ed2(0x3b0)](_0x5c35f5);}};ve=Kt([le(0x0,a['IConfigService']),le(0x1,a[_0x598bd7(0x236)]),le(0x2,a[_0x598bd7(0x2b5)](m['RevisionService']))],ve);class xe extends a['RxDisposable']{constructor(){const _0x206479=_0x598bd7;super(),h(this,'urlChange$'),this[_0x206479(0x40c)]=d[_0x206479(0x1e3)](window,_0x206479(0x430))[_0x206479(0x429)](d[_0x206479(0x2c6)](this['dispose$']),d[_0x206479(0x203)](0x1),d[_0x206479(0x2b3)](void 0x0));}[_0x598bd7(0x2eb)](_0x257c03,_0x3b2648,_0x10cda8=!0x1){const _0x212ce6=_0x598bd7,_0x4e745e=new URL(window['location'][_0x212ce6(0x321)]);_0x4e745e[_0x212ce6(0x39d)][_0x212ce6(0x2fa)](_0x257c03,_0x3b2648),_0x10cda8?window[_0x212ce6(0x382)][_0x212ce6(0x1ad)]('','',_0x4e745e[_0x212ce6(0x1ae)]()):window['history'][_0x212ce6(0x339)]('','',_0x4e745e['toString']());}[_0x598bd7(0x1b9)](_0x1221b0,_0x35f696=!0x1){const _0x2bb44b=_0x598bd7,_0xb99a28=new URL(window[_0x2bb44b(0x208)][_0x2bb44b(0x321)]);_0xb99a28[_0x2bb44b(0x39d)]['delete'](_0x1221b0),_0x35f696?window[_0x2bb44b(0x382)][_0x2bb44b(0x1ad)]('','',_0xb99a28[_0x2bb44b(0x1ae)]()):window[_0x2bb44b(0x382)][_0x2bb44b(0x339)]('','',_0xb99a28['toString']());}[_0x598bd7(0x21e)](_0x3ca353){const _0x5ce479=_0x598bd7;var _0x2983ed;return(_0x2983ed=new URL(window[_0x5ce479(0x208)]['href'])[_0x5ce479(0x39d)][_0x5ce479(0x402)](_0x3ca353))!=null?_0x2983ed:void 0x0;}}var qt=Object['defineProperty'],zt=Object[_0x598bd7(0x2e2)],Jt=(_0x108de2,_0x34e0cd,_0x272853)=>_0x34e0cd in _0x108de2?qt(_0x108de2,_0x34e0cd,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x272853}):_0x108de2[_0x34e0cd]=_0x272853,Zt=(_0x2460ae,_0x1a13a3,_0x445974,_0x495308)=>{const _0x153728=_0x598bd7;for(var _0x4140a0=_0x495308>0x1?void 0x0:_0x495308?zt(_0x1a13a3,_0x445974):_0x1a13a3,_0x14df5c=_0x2460ae[_0x153728(0x2a5)]-0x1,_0x3e95b3;_0x14df5c>=0x0;_0x14df5c--)(_0x3e95b3=_0x2460ae[_0x14df5c])&&(_0x4140a0=_0x3e95b3(_0x4140a0)||_0x4140a0);return _0x4140a0;},_e=(_0x26b83c,_0x5f0f37)=>(_0x17cfe8,_0x168077)=>_0x5f0f37(_0x17cfe8,_0x168077,_0x26b83c),Qt=(_0x5ef36f,_0x165902,_0x43decb)=>Jt(_0x5ef36f,_0x165902+'',_0x43decb);const es='UNIVER_COLLABORATION_CLIENT_WEB_PLUGIN';exports[_0x598bd7(0x260)]=class extends a['Plugin']{constructor(_0x305cff=De,_0xc98301,_0x2f71e2,_0x25ec30){const _0x5d7b5a=_0x598bd7;super(),this[_0x5d7b5a(0x21d)]=_0x305cff,this[_0x5d7b5a(0x42a)]=_0xc98301,this[_0x5d7b5a(0x32b)]=_0x2f71e2,this[_0x5d7b5a(0x235)]=_0x25ec30;const {..._0x45786c}=a[_0x5d7b5a(0x344)]({},De,this['_config']);this['_configService'][_0x5d7b5a(0x234)]($t,_0x45786c);}[_0x598bd7(0x2c2)](){const _0x4c99df=_0x598bd7;this[_0x4c99df(0x326)](),this[_0x4c99df(0x233)]();}[_0x598bd7(0x388)](){const _0x255a60=_0x598bd7;this[_0x255a60(0x26b)]();}[_0x598bd7(0x326)](){const _0x372bdd=_0x598bd7;var _0x1d44a8;const _0x8e503=[[ge],[Z],[z],[J],[me],[pe,{'useClass':xe}],[K[_0x372bdd(0x2d3)],{'useClass':K[_0x372bdd(0x2cb)]}],[u[_0x372bdd(0x352)],{'useClass':ve}],[exports[_0x372bdd(0x3c8)]],[Q],[q],[x],[ue],[exports[_0x372bdd(0x22c)]]];a['registerDependencies'](this['_injector'],a[_0x372bdd(0x1d0)](_0x8e503,(_0x1d44a8=this[_0x372bdd(0x21d)])==null?void 0x0:_0x1d44a8[_0x372bdd(0x2e5)]));}[_0x598bd7(0x26b)](){const _0x46c3cd=_0x598bd7;this['disposeWithMe'](this['_renderManagerService'][_0x46c3cd(0x275)](a[_0x46c3cd(0x30f)][_0x46c3cd(0x38a)],[fe])),this[_0x46c3cd(0x25e)](this[_0x46c3cd(0x42a)][_0x46c3cd(0x275)](a[_0x46c3cd(0x30f)]['UNIVER_SHEET'],[Ie]));}[_0x598bd7(0x233)](){const _0x287264=_0x598bd7;a[_0x287264(0x34b)](this['_injector'],[[x],[exports[_0x287264(0x3c8)]],[Q],[q],[exports['CollaborationDataLoaderController']]]);}},Qt(exports[_0x598bd7(0x260)],_0x598bd7(0x216),es),exports[_0x598bd7(0x260)]=Zt([a[_0x598bd7(0x266)](u[_0x598bd7(0x1eb)]),_e(0x1,p['IRenderManagerService']),_e(0x2,a[_0x598bd7(0x2b5)](a['Injector'])),_e(0x3,a[_0x598bd7(0x220)])],exports[_0x598bd7(0x260)]);var ts=Object[_0x598bd7(0x2e2)],ss=(_0x2e6ee9,_0x1629e2,_0x27899e,_0x37dd70)=>{const _0xc445a7=_0x598bd7;for(var _0x2a1900=_0x37dd70>0x1?void 0x0:_0x37dd70?ts(_0x1629e2,_0x27899e):_0x1629e2,_0x6f46b5=_0x2e6ee9[_0xc445a7(0x2a5)]-0x1,_0x33001c;_0x6f46b5>=0x0;_0x6f46b5--)(_0x33001c=_0x2e6ee9[_0x6f46b5])&&(_0x2a1900=_0x33001c(_0x2a1900)||_0x2a1900);return _0x2a1900;},H=(_0x5d6898,_0x348f7c)=>(_0x2e5944,_0x51d8ee)=>_0x348f7c(_0x2e5944,_0x51d8ee,_0x5d6898);exports['BrowserCollaborationSocketService']=class extends u[_0x598bd7(0x368)]{constructor(_0x47e632,_0x302f3a,_0x7d73c9,_0x447635,_0x7a7903){super(_0x47e632,_0x302f3a,_0x7d73c9,_0x447635,_0x7a7903);}async[_0x598bd7(0x40e)](_0x43a7ac){const _0x62cda2=_0x598bd7,_0x21bfc7=await this[_0x62cda2(0x328)](),_0x2ba9e1=this['_createSocketURL'](_0x43a7ac,_0x21bfc7);return this[_0x62cda2(0x2f3)](_0x2ba9e1);}[_0x598bd7(0x1e9)](_0x5215c3,_0xed6f54){const _0x9e3688=_0x598bd7,_0x55e203=typeof window>'u'?new URL(_0x5215c3):new URL(_0x5215c3,window[_0x9e3688(0x208)][_0x9e3688(0x1dc)]);_0x55e203[_0x9e3688(0x39d)][_0x9e3688(0x2fa)](_0x9e3688(0x1fa),_0xed6f54);const _0x56e618=typeof window>'u'?new URLSearchParams():new URLSearchParams(window[_0x9e3688(0x208)][_0x9e3688(0x3b5)]);return _0x56e618[_0x9e3688(0x402)](_0x9e3688(0x277))&&_0x55e203['searchParams'][_0x9e3688(0x2fa)]('runId',_0x56e618[_0x9e3688(0x402)]('runId')),_0x55e203['toString']();}async['_getSessionTicket'](){const _0x22bdd8=_0x598bd7;var _0x248e67,_0x13b3ca,_0x4c60c7;const _0x55f880=this['_configService']['getConfig'](u['COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY']),_0x102101=(_0x248e67=_0x55f880==null?void 0x0:_0x55f880[_0x22bdd8(0x2f4)])!=null?_0x248e67:u[_0x22bdd8(0x3ae)];return(_0x4c60c7=(_0x13b3ca=(await this[_0x22bdd8(0x420)][_0x22bdd8(0x402)](_0x102101,{'headers':{'Content-Type':'application/json'}}))['body'])==null?void 0x0:_0x13b3ca['ticket'])!=null?_0x4c60c7:'';}},exports[_0x598bd7(0x1e5)]=ss([H(0x0,a[_0x598bd7(0x2b5)](a['Injector'])),H(0x1,a['Inject'](K[_0x598bd7(0x373)])),H(0x2,a['IConfigService']),H(0x3,a[_0x598bd7(0x253)]),H(0x4,m[_0x598bd7(0x2b1)])],exports['BrowserCollaborationSocketService']);const Me=0x7530,Le=_0x598bd7(0x41b);class is extends a[_0x598bd7(0x3ef)]{constructor(){const _0x21f2ee=_0x598bd7;super(),h(this,'_id',a[_0x21f2ee(0x395)]()),h(this,_0x21f2ee(0x2ac),new Set()),h(this,_0x21f2ee(0x379),new Map()),h(this,_0x21f2ee(0x3b2),null),h(this,_0x21f2ee(0x42b),new Map()),h(this,_0x21f2ee(0x37b),new Map()),this[_0x21f2ee(0x2e3)]();}['dispose'](){const _0x348d21=_0x598bd7;super['dispose'](),this[_0x348d21(0x42b)][_0x348d21(0x401)]((_0x33f54a,_0x36a7cf)=>this[_0x348d21(0x383)](_0x36a7cf)),this[_0x348d21(0x3b2)]&&window['clearInterval'](this[_0x348d21(0x3b2)]);}[_0x598bd7(0x362)](_0xd41e24){const _0x3c7319=_0x598bd7;return this[_0x3c7319(0x304)](_0xd41e24)[_0x3c7319(0x429)](d[_0x3c7319(0x1b3)]());}[_0x598bd7(0x36f)](_0x57983e){const _0x1fa7e2=_0x598bd7;this[_0x1fa7e2(0x2ac)][_0x1fa7e2(0x409)]===0x0&&this['_scheduleHeartbeat'](),this[_0x1fa7e2(0x2ac)][_0x1fa7e2(0x305)](_0x57983e),this['_send']({'type':0x0,'memberID':this[_0x1fa7e2(0x3ec)],'unitIDs':[_0x57983e],'isForwarded':!0x1});}[_0x598bd7(0x3e9)](_0x9c78e8){const _0x486298=_0x598bd7;this[_0x486298(0x2ac)][_0x486298(0x2f8)](_0x9c78e8),this[_0x486298(0x2ac)]['size']===0x0&&this[_0x486298(0x3b2)]&&window[_0x486298(0x2da)](this[_0x486298(0x3b2)]);}[_0x598bd7(0x2e3)](){const _0x52ddef=_0x598bd7;this[_0x52ddef(0x25e)](a[_0x52ddef(0x364)](d[_0x52ddef(0x1e3)](window,'storage')[_0x52ddef(0x37c)](_0x5a12a2=>{const _0x392481=_0x52ddef;if(_0x5a12a2['key']!==Le||!_0x5a12a2[_0x392481(0x1f8)])return;const _0x344801=JSON[_0x392481(0x1f6)](_0x5a12a2[_0x392481(0x1f8)]);this[_0x392481(0x340)](_0x344801);}))),window[_0x52ddef(0x1b4)]('unload',()=>this[_0x52ddef(0x206)]({'type':0x1,'memberID':this[_0x52ddef(0x3ec)],'unitIDs':Array[_0x52ddef(0x38b)](this[_0x52ddef(0x2ac)])}));}[_0x598bd7(0x340)](_0x4a047a){const _0x12a4ea=_0x598bd7;switch(_0x4a047a[_0x12a4ea(0x1e7)]){case 0x0:this[_0x12a4ea(0x3bc)](_0x4a047a);break;case 0x1:this[_0x12a4ea(0x2c0)](_0x4a047a);break;case 0x2:this[_0x12a4ea(0x31b)](_0x4a047a);break;}}['_handleJoinEvent'](_0x4a7de5){const _0xee4cf3=_0x598bd7,{unitIDs:_0x28b2ec,memberID:_0x4e3178,isForwarded:_0x135634}=_0x4a7de5;_0x28b2ec['forEach'](_0x5328f8=>{const _0x430dc4=_0x1844;if(!_0x135634&&this[_0x430dc4(0x379)][_0x430dc4(0x24d)](_0x5328f8)&&this[_0x430dc4(0x304)](_0x5328f8)[_0x430dc4(0x2bd)](u[_0x430dc4(0x41c)][_0x430dc4(0x1d6)]),!this[_0x430dc4(0x379)][_0x430dc4(0x24d)](_0x5328f8)||!this[_0x430dc4(0x379)][_0x430dc4(0x402)](_0x5328f8)[_0x430dc4(0x24d)](_0x4e3178)){const _0xcde9a5=this[_0x430dc4(0x379)][_0x430dc4(0x402)](_0x5328f8)||new Set();_0xcde9a5['add'](_0x4e3178),this['_unitOnClients'][_0x430dc4(0x2fa)](_0x5328f8,_0xcde9a5),this['_scheduleClearOtherTimer'](_0x4e3178);}}),_0x135634||this[_0xee4cf3(0x206)]({'type':0x0,'memberID':this['_id'],'unitIDs':[...this[_0xee4cf3(0x2ac)]],'isForwarded':!0x0});}['_scheduleClearOtherTimer'](_0x13972e){const _0x49a98b=_0x598bd7;this[_0x49a98b(0x383)](_0x13972e);const _0xe3e2ea=window['setTimeout'](()=>{const _0x4cfa11=_0x49a98b;this[_0x4cfa11(0x379)][_0x4cfa11(0x401)](_0x229651=>{_0x229651['delete'](_0x13972e);});},Me*0x2);this[_0x49a98b(0x42b)]['set'](_0x13972e,_0xe3e2ea);}[_0x598bd7(0x383)](_0x59eb7c){const _0x1bc1ab=_0x598bd7;if(this[_0x1bc1ab(0x42b)][_0x1bc1ab(0x24d)](_0x59eb7c)){const _0x4a9322=this['_clearOtherTimers'][_0x1bc1ab(0x402)](_0x59eb7c);_0x4a9322&&window['clearTimeout'](_0x4a9322),this[_0x1bc1ab(0x42b)][_0x1bc1ab(0x2fa)](_0x59eb7c,null);}}[_0x598bd7(0x2c0)](_0x193b29){const _0x4e1e94=_0x598bd7,{memberID:_0x40180a,unitIDs:_0x32ea73}=_0x193b29;_0x32ea73[_0x4e1e94(0x401)](_0x98ba8c=>{const _0x3174f4=_0x4e1e94;var _0x3c9751;const _0x34ea7b=this[_0x3174f4(0x379)][_0x3174f4(0x402)](_0x98ba8c);_0x34ea7b&&(_0x34ea7b[_0x3174f4(0x2f8)](_0x40180a),(_0x3c9751=this[_0x3174f4(0x304)](_0x98ba8c))==null||_0x3c9751['next'](_0x34ea7b['size']===0x0?u[_0x3174f4(0x41c)][_0x3174f4(0x312)]:u[_0x3174f4(0x41c)][_0x3174f4(0x1d6)]));}),this[_0x4e1e94(0x383)](_0x40180a);}[_0x598bd7(0x31b)](_0x139e77){const _0x7fe285=_0x598bd7;this[_0x7fe285(0x303)](_0x139e77[_0x7fe285(0x3a2)]);}['_send'](_0x3b8452){const _0x43cd57=_0x598bd7;localStorage[_0x43cd57(0x38e)](Le,JSON[_0x43cd57(0x37a)](_0x3b8452));}[_0x598bd7(0x356)](){this['_heartbeatTimer']=window['setInterval'](()=>{const _0x6196e9=_0x1844;this[_0x6196e9(0x206)]({'type':0x2,'memberID':this[_0x6196e9(0x3ec)]});},Me);}['_ensureSubject'](_0x29ec24){const _0x52f819=_0x598bd7;return this[_0x52f819(0x37b)][_0x52f819(0x24d)](_0x29ec24)||this['_unitStatus'][_0x52f819(0x2fa)](_0x29ec24,new d['BehaviorSubject'](u[_0x52f819(0x41c)]['NO_OTHER_CLIENTS_EDITING'])),this[_0x52f819(0x37b)]['get'](_0x29ec24);}}var Be=(_0xef7d4c=>(_0xef7d4c[_0xef7d4c['UNDEFINED']=0x0]='UNDEFINED',_0xef7d4c[_0xef7d4c['OK']=0x1]='OK',_0xef7d4c[_0xef7d4c[_0x598bd7(0x1da)]=0x2]=_0x598bd7(0x1da),_0xef7d4c[_0xef7d4c[_0x598bd7(0x25a)]=0x3]='PERMISSION_DENIED',_0xef7d4c[_0xef7d4c[_0x598bd7(0x212)]=0x4]=_0x598bd7(0x212),_0xef7d4c[_0xef7d4c['UNAUTHENTICATED']=0x5]=_0x598bd7(0x1ca),_0xef7d4c[_0xef7d4c[_0x598bd7(0x411)]=0x6]=_0x598bd7(0x411),_0xef7d4c[_0xef7d4c[_0x598bd7(0x27c)]=0x7]='INVALID_ARGUMENT',_0xef7d4c[_0xef7d4c[_0x598bd7(0x2b7)]=0x8]=_0x598bd7(0x2b7),_0xef7d4c[_0xef7d4c[_0x598bd7(0x2bf)]=0x9]='COMPLETION_FINISHED',_0xef7d4c[_0xef7d4c[_0x598bd7(0x2aa)]=0xa]=_0x598bd7(0x2aa),_0xef7d4c[_0xef7d4c[_0x598bd7(0x2a1)]=0xb]=_0x598bd7(0x2a1),_0xef7d4c[_0xef7d4c[_0x598bd7(0x28e)]=0xc]=_0x598bd7(0x28e),_0xef7d4c[_0xef7d4c[_0x598bd7(0x2c1)]=0xd]=_0x598bd7(0x2c1),_0xef7d4c[_0xef7d4c['EMAIL_VERIFY_CODE_NOT_FOUND_OR_EXPIRED']=0xe]=_0x598bd7(0x1bd),_0xef7d4c[_0xef7d4c['CHANGESET_REVISION_CONFILICT']=0x1389]=_0x598bd7(0x23b),_0xef7d4c[_0xef7d4c[_0x598bd7(0x31c)]=0x1771]='SNAPSHOT_INVALID_SNAPSHOT',_0xef7d4c[_0xef7d4c[_0x598bd7(0x426)]=0x1772]=_0x598bd7(0x426),_0xef7d4c[_0xef7d4c['ENSURE_SNAPSHOT_EXECUTION']=0x1773]=_0x598bd7(0x30d),_0xef7d4c[_0xef7d4c['APPLY_REJECT']=0x1b59]=_0x598bd7(0x2d4),_0xef7d4c[_0xef7d4c['APPLY_NON_SEQUENTIAL_REVISION']=0x1b5a]=_0x598bd7(0x23e),_0xef7d4c[_0xef7d4c[_0x598bd7(0x357)]=0x1b5b]=_0x598bd7(0x357),_0xef7d4c[_0xef7d4c[_0x598bd7(0x271)]=0x1b5c]='APPLY_PERMISSION_DENIED',_0xef7d4c[_0xef7d4c[_0x598bd7(0x3c4)]=0x1b5d]=_0x598bd7(0x3c4),_0xef7d4c[_0xef7d4c[_0x598bd7(0x291)]=0x1f41]=_0x598bd7(0x291),_0xef7d4c[_0xef7d4c[_0x598bd7(0x242)]=0x2329]=_0x598bd7(0x242),_0xef7d4c[_0xef7d4c[_0x598bd7(0x3ed)]=0x232a]=_0x598bd7(0x3ed),_0xef7d4c[_0xef7d4c[_0x598bd7(0x378)]=0x232b]=_0x598bd7(0x378),_0xef7d4c[_0xef7d4c[_0x598bd7(0x369)]=0x232c]='LICENSE_EXPORT_SIZE_EXCEEDED',_0xef7d4c[_0xef7d4c['LICENSE_DISTRO_REJECTED']=0x232d]=_0x598bd7(0x2a4),_0xef7d4c[_0xef7d4c[_0x598bd7(0x403)]=0x2711]=_0x598bd7(0x403),_0xef7d4c[_0xef7d4c[_0x598bd7(0x2d7)]=0x2712]='YUUMI_URL_COL_OUT_OF_RANGE',_0xef7d4c[_0xef7d4c[_0x598bd7(0x30a)]=0x2713]=_0x598bd7(0x30a),_0xef7d4c[_0xef7d4c[_0x598bd7(0x1c1)]=0x2714]=_0x598bd7(0x1c1),_0xef7d4c[_0xef7d4c['YUUMI_NO_CUBOID_FOR_QUESTION']=0x271a]=_0x598bd7(0x1e8),_0xef7d4c[_0xef7d4c[_0x598bd7(0x404)]=0x271b]=_0x598bd7(0x404),_0xef7d4c[_0xef7d4c[_0x598bd7(0x353)]=0x271c]=_0x598bd7(0x353),_0xef7d4c[_0xef7d4c[_0x598bd7(0x318)]=0x271d]=_0x598bd7(0x318),_0xef7d4c[_0xef7d4c[_0x598bd7(0x2b4)]=0x271e]=_0x598bd7(0x2b4),_0xef7d4c[_0xef7d4c['YUUMI_AI_RUN_FAILED']=0x271f]=_0x598bd7(0x211),_0xef7d4c[_0xef7d4c[_0x598bd7(0x289)]=0x2720]=_0x598bd7(0x289),_0xef7d4c[_0xef7d4c[_0x598bd7(0x3fc)]=0x2af9]=_0x598bd7(0x3fc),_0xef7d4c[_0xef7d4c['INVITE_CODE_HAS_BEEN_UES']=0x2ee1]=_0x598bd7(0x338),_0xef7d4c[_0xef7d4c['INVALID_INVITE_CODE']=0x2ee2]=_0x598bd7(0x3fb),_0xef7d4c[_0xef7d4c[_0x598bd7(0x252)]=0x2ee3]='INVITE_CODE_REQUIRED',_0xef7d4c[_0xef7d4c['USER_NOT_INVITED_CODE']=0x2ee4]=_0x598bd7(0x346),_0xef7d4c[_0xef7d4c[_0x598bd7(0x3f0)]=0x2ee5]=_0x598bd7(0x3f0),_0xef7d4c[_0xef7d4c['WECHAT_HAS_BEEN_BOUND']=0x32c9]=_0x598bd7(0x342),_0xef7d4c[_0xef7d4c[_0x598bd7(0x2ff)]=0x32ca]=_0x598bd7(0x2ff),_0xef7d4c[_0xef7d4c['EMAIL_HAS_BEEN_BOUND']=0x32cb]=_0x598bd7(0x3ad),_0xef7d4c[_0xef7d4c[_0x598bd7(0x1bc)]=-0x1]='UNRECOGNIZED',_0xef7d4c))(Be||{}),ns=Object[_0x598bd7(0x2e2)],rs=(_0x38a775,_0x27fd2b,_0x57c1a5,_0x5f45b6)=>{for(var _0x121dca=_0x5f45b6>0x1?void 0x0:_0x5f45b6?ns(_0x27fd2b,_0x57c1a5):_0x27fd2b,_0x4ba411=_0x38a775['length']-0x1,_0x280c62;_0x4ba411>=0x0;_0x4ba411--)(_0x280c62=_0x38a775[_0x4ba411])&&(_0x121dca=_0x280c62(_0x121dca)||_0x121dca);return _0x121dca;},he=(_0x2036b4,_0x3add3d)=>(_0x38a36e,_0x123035)=>_0x3add3d(_0x38a36e,_0x123035,_0x2036b4);exports[_0x598bd7(0x358)]=class extends a[_0x598bd7(0x3ef)]{constructor(_0x3abd3f,_0x2bc97b,_0x33320d){const _0x52c9cc=_0x598bd7;super(),this[_0x52c9cc(0x37d)]=_0x3abd3f,this[_0x52c9cc(0x420)]=_0x2bc97b,this[_0x52c9cc(0x235)]=_0x33320d;}async[_0x598bd7(0x276)](_0xd0a24f,_0x5132c1,_0x2bf31d,..._0x2e121c){const _0x4e38c2=_0x598bd7;var _0x5bdf79,_0x167b9b,_0x9665a8,_0x481d4a;const _0x19f71e=this[_0x4e38c2(0x37d)][_0x4e38c2(0x35f)]();if(!_0x19f71e)throw new Error(_0x4e38c2(0x1b7));const _0x211531=((_0x5bdf79=this[_0x4e38c2(0x235)][_0x4e38c2(0x3ff)](u['REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY']))!=null?_0x5bdf79:u[_0x4e38c2(0x263)])+'/'+_0xd0a24f+_0x4e38c2(0x41a)+_0x5132c1,_0x314fa4=new URL(window[_0x4e38c2(0x208)][_0x4e38c2(0x321)]),_0x1b78c7={'scriptId':_0xd0a24f,'runId':(_0x167b9b=_0x314fa4['searchParams']['get'](_0x4e38c2(0x277)))!=null?_0x167b9b:'','function':_0x5132c1,'unitId':_0x19f71e[_0x4e38c2(0x320)](),'argsOfFunction':JSON['stringify'](_0x2e121c),'invokeId':(_0x9665a8=_0x2bf31d['invokeId'])!=null?_0x9665a8:'','executionId':(_0x481d4a=_0x2bf31d['executionId'])!=null?_0x481d4a:''};try{const _0x13aab3=await this['_httpService'][_0x4e38c2(0x32c)](_0x211531,{'body':_0x1b78c7});return _0x13aab3['body'][_0x4e38c2(0x1f9)]&&_0x13aab3[_0x4e38c2(0x35c)]['error']['code']!==Be['OK']?_0x4e38c2(0x1f0):_0x13aab3[_0x4e38c2(0x35c)][_0x4e38c2(0x2ba)];}catch{return'Failed';}}},exports[_0x598bd7(0x358)]=rs([he(0x0,a[_0x598bd7(0x306)]),he(0x1,a[_0x598bd7(0x2b5)](K[_0x598bd7(0x373)])),he(0x2,a[_0x598bd7(0x220)])],exports['RemoteUniscriptService']),exports[_0x598bd7(0x36b)]=pe,exports['SheetCollabCursorShape']=we,exports[_0x598bd7(0x3e2)]=is,exports[_0x598bd7(0x345)]=xe;
|
|
1
|
+
'use strict';const _0xa70a6a=_0x1cff;(function(_0x98cec7,_0xfc551c){const _0x701a5c=_0x1cff,_0x204fcb=_0x98cec7();while(!![]){try{const _0x3b7bb7=parseInt(_0x701a5c(0x2a6))/0x1*(-parseInt(_0x701a5c(0x393))/0x2)+parseInt(_0x701a5c(0x3aa))/0x3*(-parseInt(_0x701a5c(0x39b))/0x4)+parseInt(_0x701a5c(0x1bb))/0x5*(-parseInt(_0x701a5c(0x2e4))/0x6)+parseInt(_0x701a5c(0x255))/0x7*(parseInt(_0x701a5c(0x3bb))/0x8)+-parseInt(_0x701a5c(0x38a))/0x9*(parseInt(_0x701a5c(0x3b2))/0xa)+parseInt(_0x701a5c(0x229))/0xb*(parseInt(_0x701a5c(0x381))/0xc)+parseInt(_0x701a5c(0x3b8))/0xd;if(_0x3b7bb7===_0xfc551c)break;else _0x204fcb['push'](_0x204fcb['shift']());}catch(_0x4f0456){_0x204fcb['push'](_0x204fcb['shift']());}}}(_0x287c,0xb9f67));var We=Object['defineProperty'],Ve=(_0x5a20ca,_0x23b984,_0x3f8ab9)=>_0x23b984 in _0x5a20ca?We(_0x5a20ca,_0x23b984,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x3f8ab9}):_0x5a20ca[_0x23b984]=_0x3f8ab9,h=(_0x170ebf,_0x2d262a,_0x5b659d)=>Ve(_0x170ebf,typeof _0x2d262a!=_0xa70a6a(0x327)?_0x2d262a+'':_0x2d262a,_0x5b659d);Object['defineProperty'](exports,Symbol[_0xa70a6a(0x22b)],{'value':_0xa70a6a(0x26a)});const P=require('react/jsx-runtime'),u=require('@univerjs-pro/collaboration-client'),a=require('@univerjs/core'),O=require('@univerjs/ui'),d=require('rxjs'),D=require('@univerjs/design'),M=require('react'),Xe=require('@univerjs/rpc'),g=require('@univerjs/sheets'),p=require('@univerjs/engine-render'),K=require('@univerjs/network'),E=require('@univerjs/docs-ui'),Ge=require('@univerjs/drawing'),m=require('@univerjs-pro/collaboration'),Y=require('@univerjs/docs'),Ee=require('@univerjs/engine-formula'),$=require('rxjs/operators'),G=require('@univerjs/sheets-ui');var b=function(){const _0x41d7b0=_0xa70a6a;return b=Object['assign']||function(_0x163a00){const _0x3fffce=_0x1cff;for(var _0x3ae217,_0x3aa58d=0x1,_0x207e50=arguments[_0x3fffce(0x154)];_0x3aa58d<_0x207e50;_0x3aa58d++){_0x3ae217=arguments[_0x3aa58d];for(var _0x24b100 in _0x3ae217)Object['prototype'][_0x3fffce(0x396)]['call'](_0x3ae217,_0x24b100)&&(_0x163a00[_0x24b100]=_0x3ae217[_0x24b100]);}return _0x163a00;},b[_0x41d7b0(0x1aa)](this,arguments);},Ke=function(_0x1c96db,_0xba18da){const _0x31e4fe=_0xa70a6a;var _0x5a23bd={};for(var _0x2facb6 in _0x1c96db)Object[_0x31e4fe(0x18a)][_0x31e4fe(0x396)]['call'](_0x1c96db,_0x2facb6)&&_0xba18da[_0x31e4fe(0x308)](_0x2facb6)<0x0&&(_0x5a23bd[_0x2facb6]=_0x1c96db[_0x2facb6]);if(_0x1c96db!=null&&typeof Object[_0x31e4fe(0x263)]==_0x31e4fe(0x1c5)){for(var _0x34742c=0x0,_0x2facb6=Object[_0x31e4fe(0x263)](_0x1c96db);_0x34742c<_0x2facb6['length'];_0x34742c++)_0xba18da[_0x31e4fe(0x308)](_0x2facb6[_0x34742c])<0x0&&Object[_0x31e4fe(0x18a)][_0x31e4fe(0x23a)][_0x31e4fe(0x27d)](_0x1c96db,_0x2facb6[_0x34742c])&&(_0x5a23bd[_0x2facb6[_0x34742c]]=_0x1c96db[_0x2facb6[_0x34742c]]);}return _0x5a23bd;},ge=M['forwardRef'](function(_0x134623,_0x4747e5){const _0x3bef61=_0xa70a6a;var _0x548c59=_0x134623[_0x3bef61(0x201)],_0x3ab801=_0x134623['id'],_0x19d9a8=_0x134623[_0x3bef61(0x2a9)],_0x13979b=_0x134623['extend'],_0x4184a3=Ke(_0x134623,['icon','id',_0x3bef61(0x2a9),_0x3bef61(0x299)]),_0x1b8a69='univerjs-icon\x20univerjs-icon-'[_0x3bef61(0x277)](_0x3ab801,'\x20')[_0x3bef61(0x277)](_0x19d9a8||'')[_0x3bef61(0x334)](),_0x303e2e=M[_0x3bef61(0x2b1)]('_'[_0x3bef61(0x277)](Je()));return Pe(_0x548c59,''[_0x3bef61(0x277)](_0x3ab801),{'defIds':_0x548c59[_0x3bef61(0x1e2)],'idSuffix':_0x303e2e[_0x3bef61(0x3a4)]},b({'ref':_0x4747e5,'className':_0x1b8a69},_0x4184a3),_0x13979b);});function Pe(_0x20e925,_0x2892eb,_0x134240,_0x270d42,_0x4ccda4){const _0x1eb7ce=_0xa70a6a;return M[_0x1eb7ce(0x36a)](_0x20e925['tag'],b(b({'key':_0x2892eb},qe(_0x20e925,_0x134240,_0x4ccda4)),_0x270d42),(ze(_0x20e925,_0x134240)[_0x1eb7ce(0x3c1)]||[])[_0x1eb7ce(0x186)](function(_0x40d261,_0x3834ee){const _0x1a9dcf=_0x1eb7ce;return Pe(_0x40d261,''[_0x1a9dcf(0x277)](_0x2892eb,'-')[_0x1a9dcf(0x277)](_0x20e925[_0x1a9dcf(0x2f5)],'-')['concat'](_0x3834ee),_0x134240,void 0x0,_0x4ccda4);}));}function qe(_0x14d4d2,_0x1764c3,_0x4529a7){const _0x57034d=_0xa70a6a;var _0x117003=b({},_0x14d4d2[_0x57034d(0x19d)]);_0x4529a7!=null&&_0x4529a7[_0x57034d(0x17f)]&&_0x117003[_0x57034d(0x25b)]==='colorChannel1'&&(_0x117003['fill']=_0x4529a7[_0x57034d(0x17f)]),_0x14d4d2[_0x57034d(0x2f5)]===_0x57034d(0x1a6)&&_0x117003['id']&&(_0x117003['id']=_0x117003['id']+_0x1764c3[_0x57034d(0x331)]),Object[_0x57034d(0x2c7)](_0x117003)[_0x57034d(0x1d1)](function(_0x10eb5f){const _0x1a1417=_0x57034d;var _0xe4b3d9=_0x10eb5f[0x0],_0x88179d=_0x10eb5f[0x1];_0xe4b3d9===_0x1a1417(0x1a6)&&typeof _0x88179d==_0x1a1417(0x2de)&&(_0x117003[_0xe4b3d9]=_0x88179d[_0x1a1417(0x370)](/url\(#(.*)\)/,_0x1a1417(0x2bd)['concat'](_0x1764c3[_0x1a1417(0x331)],')')));});var _0x825c67=_0x1764c3[_0x57034d(0x1e2)];return!_0x825c67||_0x825c67['length']===0x0||(_0x14d4d2[_0x57034d(0x2f5)]==='use'&&_0x117003['xlink:href']&&(_0x117003[_0x57034d(0x24a)]=_0x117003[_0x57034d(0x24a)]+_0x1764c3[_0x57034d(0x331)]),Object[_0x57034d(0x2c7)](_0x117003)[_0x57034d(0x1d1)](function(_0x4aee9c){const _0x242739=_0x57034d;var _0x486b5c=_0x4aee9c[0x0],_0xae0f41=_0x4aee9c[0x1];typeof _0xae0f41==_0x242739(0x2de)&&(_0x117003[_0x486b5c]=_0xae0f41[_0x242739(0x370)](/url\(#(.*)\)/,_0x242739(0x2bd)[_0x242739(0x277)](_0x1764c3[_0x242739(0x331)],')')));})),_0x117003;}function ze(_0x58288a,_0x326e19){const _0x3bdd3a=_0xa70a6a;var _0x2b333f,_0x94e5aa=_0x326e19[_0x3bdd3a(0x1e2)];return!_0x94e5aa||_0x94e5aa[_0x3bdd3a(0x154)]===0x0?_0x58288a:_0x58288a[_0x3bdd3a(0x2f5)]==='defs'&&(!((_0x2b333f=_0x58288a[_0x3bdd3a(0x3c1)])===null||_0x2b333f===void 0x0)&&_0x2b333f[_0x3bdd3a(0x154)])?b(b({},_0x58288a),{'children':_0x58288a[_0x3bdd3a(0x3c1)][_0x3bdd3a(0x186)](function(_0x2dd2cf){const _0x4b13f6=_0x3bdd3a;return typeof _0x2dd2cf[_0x4b13f6(0x19d)]['id']==_0x4b13f6(0x2de)&&_0x94e5aa&&_0x94e5aa[_0x4b13f6(0x321)](_0x2dd2cf[_0x4b13f6(0x19d)]['id'])?b(b({},_0x2dd2cf),{'attrs':b(b({},_0x2dd2cf['attrs']),{'id':_0x2dd2cf[_0x4b13f6(0x19d)]['id']+_0x326e19[_0x4b13f6(0x331)]})}):_0x2dd2cf;})}):_0x58288a;}function Je(){const _0x47378f=_0xa70a6a;return Math[_0x47378f(0x250)]()['toString'](0x24)[_0x47378f(0x26b)](0x2,0x8);}ge[_0xa70a6a(0x3b0)]=_0xa70a6a(0x17d);var Ze={'tag':_0xa70a6a(0x2f1),'attrs':{'xmlns':_0xa70a6a(0x1a8),'fill':_0xa70a6a(0x2f9),'viewBox':'0\x200\x2016\x2016','width':_0xa70a6a(0x2b7),'height':_0xa70a6a(0x2b7)},'children':[{'tag':'g','attrs':{'clipPath':'url(#off-line-icon_clip0_910_343)'},'children':[{'tag':_0xa70a6a(0x36c),'attrs':{'stroke':_0xa70a6a(0x150),'d':_0xa70a6a(0x362),'strokeLinecap':_0xa70a6a(0x390),'strokeLinejoin':_0xa70a6a(0x390),'strokeWidth':1.2}}]},{'tag':_0xa70a6a(0x241),'attrs':{},'children':[{'tag':_0xa70a6a(0x2f6),'attrs':{'id':_0xa70a6a(0x175)},'children':[{'tag':_0xa70a6a(0x36c),'attrs':{'fill':_0xa70a6a(0x360),'d':'M0\x200H16V16H0z'}}]}]}],'defIds':['off-line-icon_clip0_910_343']},we=M[_0xa70a6a(0x180)](function(_0x39b07b,_0x51565d){const _0x1b1754=_0xa70a6a;return M['createElement'](ge,Object[_0x1b1754(0x3ad)]({},_0x39b07b,{'id':_0x1b1754(0x1f5),'ref':_0x51565d,'icon':Ze}));});we[_0xa70a6a(0x3b0)]=_0xa70a6a(0x2cd);var Qe={'tag':_0xa70a6a(0x2f1),'attrs':{'xmlns':_0xa70a6a(0x1a8),'fill':_0xa70a6a(0x2f9),'viewBox':_0xa70a6a(0x2c6),'width':_0xa70a6a(0x2b7),'height':_0xa70a6a(0x2b7)},'children':[{'tag':'g','attrs':{'clipPath':_0xa70a6a(0x386)},'children':[{'tag':_0xa70a6a(0x36c),'attrs':{'stroke':_0xa70a6a(0x150),'d':'M4.5865\x2011.6499C3.36983\x2011.6499\x201.6665\x2011.1024\x201.6665\x208.9124C1.6665\x206.3574\x204.2215\x205.8099\x204.9515\x205.8099C5.3165\x204.5324\x206.0465\x202.5249\x208.9665\x202.5249C11.5215\x202.5249\x2012.6165\x203.9849\x2012.9815\x205.2624C12.9815\x205.2624\x2016.2665\x205.6274\x2016.2665\x208.7299C16.2665\x2010.9199\x2014.8065\x2011.6499\x2013.3465\x2011.6499M6.7767\x2011.6497L8.9667\x2013.4747L11.8867\x209.82466','strokeLinecap':_0xa70a6a(0x390),'strokeLinejoin':'round','strokeWidth':1.2}}]},{'tag':_0xa70a6a(0x241),'attrs':{},'children':[{'tag':_0xa70a6a(0x2f6),'attrs':{'id':_0xa70a6a(0x275)},'children':[{'tag':_0xa70a6a(0x36c),'attrs':{'fill':_0xa70a6a(0x360),'d':_0xa70a6a(0x266),'transform':_0xa70a6a(0x1ca)}}]}]}],'defIds':[_0xa70a6a(0x275)]},Ae=M[_0xa70a6a(0x180)](function(_0xa0a2c8,_0x28874b){const _0xb27a65=_0xa70a6a;return M['createElement'](ge,Object[_0xb27a65(0x3ad)]({},_0xa0a2c8,{'id':_0xb27a65(0x1a1),'ref':_0x28874b,'icon':Qe}));});Ae[_0xa70a6a(0x3b0)]=_0xa70a6a(0x39c);function et(_0x3e4d6f){const _0x527e33=_0xa70a6a;switch(_0x3e4d6f){case u['CollaborationStatus']['OFFLINE']:return _0x527e33(0x2fc);case u['CollaborationStatus']['CONFLICT']:return _0x527e33(0x2a8);case u[_0x527e33(0x29c)]['FETCH_MISS']:return _0x527e33(0x2f7);case u['CollaborationStatus']['NOT_COLLAB']:return _0x527e33(0x2b8);case u[_0x527e33(0x29c)]['AWAITING']:case u[_0x527e33(0x29c)]['AWAITING_WITH_PENDING']:return'collabStatus.syncing';case u[_0x527e33(0x29c)][_0x527e33(0x343)]:case u[_0x527e33(0x29c)]['PENDING']:return'collabStatus.synced';}}function tt(_0x152345){const _0x2a4c32=_0xa70a6a,{status$:_0x566576}=_0x152345,_0x586ca7=O[_0x2a4c32(0x1fd)](_0x566576,u[_0x2a4c32(0x29c)]['NOT_COLLAB']),_0x2548ba=O[_0x2a4c32(0x36b)](a[_0x2a4c32(0x173)]),_0x10183f=O[_0x2a4c32(0x36b)](u[_0x2a4c32(0x2c2)]),_0x470c78=_0x586ca7!==u['CollaborationStatus'][_0x2a4c32(0x19a)],_0x52bee9=_0x2548ba['t'](et(_0x586ca7)),_0x55da6e=_0x470c78?P[_0x2a4c32(0x254)](Ae,{}):P[_0x2a4c32(0x254)](we,{}),_0x5510ab=M[_0x2a4c32(0x1da)](()=>{const _0x3a4bb4=_0x2a4c32;_0x470c78||_0x10183f[_0x3a4bb4(0x1b7)]();},[_0x470c78,_0x10183f]);function _0x1a6dd9(){const _0x181b3d=_0x2a4c32;return P['jsxs'](_0x181b3d(0x16d),{'className':_0x181b3d(0x170),'onClick':_0x5510ab,'children':[P[_0x181b3d(0x254)](_0x181b3d(0x16d),{'className':D[_0x181b3d(0x29b)]('univer-mr-2\x20univer-flex\x20univer-text-xl',{'univer-text-green-500':_0x470c78,'univer-text-red-500':!_0x470c78}),'children':_0x55da6e}),P['jsx'](_0x181b3d(0x16d),{'className':_0x181b3d(0x15f),'children':_0x52bee9})]});}return _0x470c78?_0x1a6dd9():P[_0x2a4c32(0x254)](D[_0x2a4c32(0x31b)],{'title':_0x2548ba['t']('collab-client.tooltip.reconnect'),'children':_0x1a6dd9()});}var st=Object['getOwnPropertyDescriptor'],it=(_0xea65ba,_0x751730,_0xe81de7,_0x3946bb)=>{const _0x88a2c6=_0xa70a6a;for(var _0x2b8f8c=_0x3946bb>0x1?void 0x0:_0x3946bb?st(_0x751730,_0xe81de7):_0x751730,_0x2a3135=_0xea65ba[_0x88a2c6(0x154)]-0x1,_0x53abb3;_0x2a3135>=0x0;_0x2a3135--)(_0x53abb3=_0xea65ba[_0x2a3135])&&(_0x2b8f8c=_0x53abb3(_0x2b8f8c)||_0x2b8f8c);return _0x2b8f8c;},V=(_0x418eff,_0xc776ec)=>(_0x21e745,_0x3a52a1)=>_0xc776ec(_0x21e745,_0x3a52a1,_0x418eff);exports[_0xa70a6a(0x33e)]=class extends a['Disposable']{constructor(_0x140ea4,_0x199af7,_0x2e8446,_0x2f4ac7){const _0x55d3d2=_0xa70a6a;super(),h(this,_0x55d3d2(0x33b),new d['BehaviorSubject'](u['CollaborationStatus'][_0x55d3d2(0x1e0)])),(this['_univerInstanceService']=_0x140ea4,this[_0x55d3d2(0x1d9)]=_0x199af7,this[_0x55d3d2(0x152)]=_0x2e8446,this['_uiPartsService']=_0x2f4ac7,this[_0x55d3d2(0x27f)](),this[_0x55d3d2(0x3af)]());}[_0xa70a6a(0x3af)](){const _0x494146=_0xa70a6a;this[_0x494146(0x39d)](this['_univerInstanceService'][_0x494146(0x302)][_0x494146(0x28e)](d['switchMap'](()=>{const _0x1ca147=_0x494146,_0x5bae47=this['_univerInstanceService']['getFocusedUnit']();return _0x5bae47?this['_collaborationController'][_0x1ca147(0x31c)](_0x5bae47['getUnitId']()):d['of'](null);}),d[_0x494146(0x20c)](_0x58fe60=>_0x58fe60?_0x58fe60['status$']:d['of'](u[_0x494146(0x29c)]['NOT_COLLAB'])))[_0x494146(0x236)](_0x317ea0=>{const _0x1c0742=_0x494146;this[_0x1c0742(0x33b)][_0x1c0742(0x1b3)](_0x317ea0);}));}[_0xa70a6a(0x27f)](){const _0x3dab96=_0xa70a6a;this['disposeWithMe'](this[_0x3dab96(0x3cd)][_0x3dab96(0x18f)](O[_0x3dab96(0x300)][_0x3dab96(0x234)],()=>O['connectInjector'](nt({'status$':this[_0x3dab96(0x33b)][_0x3dab96(0x17b)]()}),this[_0x3dab96(0x1d9)])));}},exports[_0xa70a6a(0x33e)]=it([V(0x0,a[_0xa70a6a(0x313)]),V(0x1,a['Inject'](a[_0xa70a6a(0x262)])),V(0x2,a['Inject'](u['CollaborationController'])),V(0x3,O['IUIPartsService'])],exports[_0xa70a6a(0x33e)]);function nt(_0x491719){const {status$:_0x5eb63d}=_0x491719;return function(){const _0x3e2bdb=_0x1cff;return P[_0x3e2bdb(0x254)](tt,{'status$':_0x5eb63d});};}const me=a[_0xa70a6a(0x202)](_0xa70a6a(0x301));var rt=Object[_0xa70a6a(0x33d)],ot=(_0x4fc59c,_0x4c7ff1,_0x3e13cd,_0x4c3c45)=>{const _0x2ee242=_0xa70a6a;for(var _0x411719=_0x4c3c45>0x1?void 0x0:_0x4c3c45?rt(_0x4c7ff1,_0x3e13cd):_0x4c7ff1,_0x43c21f=_0x4fc59c[_0x2ee242(0x154)]-0x1,_0x59ec58;_0x43c21f>=0x0;_0x43c21f--)(_0x59ec58=_0x4fc59c[_0x43c21f])&&(_0x411719=_0x59ec58(_0x411719)||_0x411719);return _0x411719;},k=(_0x2f0c23,_0x34c251)=>(_0x4a6948,_0x4d0dea)=>_0x34c251(_0x4a6948,_0x4d0dea,_0x2f0c23);exports[_0xa70a6a(0x2c4)]=class extends a[_0xa70a6a(0x306)]{constructor(_0x503eae,_0x193526,_0x44e6ed,_0x4c988a,_0xdd4e8f){const _0x304454=_0xa70a6a;super(),this[_0x304454(0x15b)]=_0x503eae,this[_0x304454(0x1cc)]=_0x193526,this['_commandService']=_0x44e6ed,this[_0x304454(0x2ae)]=_0x4c988a,_0xdd4e8f?_0xdd4e8f==null||_0xdd4e8f[_0x304454(0x38b)]()['then'](()=>this[_0x304454(0x373)]()):(this[_0x304454(0x1cc)][_0x304454(0x281)](_0x304454(0x357),_0x304454(0x267)),this[_0x304454(0x373)]());}async['_init'](){const _0x552cd7=_0xa70a6a,_0x55d167=this[_0x552cd7(0x15b)]['getParam']('unit'),_0x1b0dd5=this[_0x552cd7(0x15b)][_0x552cd7(0x1cd)]('type'),_0x27baa0=this['_urlService']['getParam'](_0x552cd7(0x3ce));if(!_0x55d167||!_0x1b0dd5){this['_logService'][_0x552cd7(0x281)](_0x552cd7(0x357),'No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.');return;}const _0x1a2119=await this['_dataLoaderService'][_0x552cd7(0x19c)](_0x55d167,Number(_0x1b0dd5),_0x27baa0);_0x1a2119&&_0x1a2119 instanceof a[_0x552cd7(0x1ec)]&&this['_setupSubUnitSync'](_0x1a2119);}async[_0xa70a6a(0x310)](_0x7519e0){const _0x4bb145=_0xa70a6a;await this[_0x4bb145(0x24f)](_0x7519e0),_0x7519e0[_0x4bb145(0x307)][_0x4bb145(0x28e)](d[_0x4bb145(0x22d)](this[_0x4bb145(0x2ef)]))[_0x4bb145(0x236)](_0x3449bb=>{const _0x1c9949=_0x4bb145;_0x3449bb&&this[_0x1c9949(0x39f)](_0x3449bb);}),this['_urlService'][_0x4bb145(0x161)][_0x4bb145(0x28e)](d[_0x4bb145(0x22d)](this[_0x4bb145(0x2ef)]))['subscribe'](()=>this[_0x4bb145(0x24f)](_0x7519e0));}[_0xa70a6a(0x39f)](_0x5ef451,_0x3d466e=!0x1){const _0x596309=_0xa70a6a,_0x27e591=this[_0x596309(0x15b)]['getParam'](_0x596309(0x3ce));_0x5ef451[_0x596309(0x260)]()!==_0x27e591&&this['_urlService'][_0x596309(0x336)](_0x596309(0x3ce),_0x5ef451[_0x596309(0x260)](),_0x3d466e);}async[_0xa70a6a(0x24f)](_0x42478e){const _0xa796d4=_0xa70a6a;var _0x52e4b8;const _0x254828=this[_0xa796d4(0x15b)][_0xa796d4(0x1cd)](_0xa796d4(0x3ce));if(!_0x254828||!_0x42478e[_0xa796d4(0x167)](_0x254828)){const _0xab1d2f=_0x42478e['getUnhiddenWorksheets']()[0x0],_0x3d19a0=_0x42478e[_0xa796d4(0x167)](_0xab1d2f);if(!_0x3d19a0)return;this[_0xa796d4(0x39f)](_0x3d19a0,!0x0),await this[_0xa796d4(0x324)][_0xa796d4(0x38d)](g['SetWorksheetActivateCommand']['id'],{'unitId':_0x42478e['getUnitId'](),'subUnitId':_0xab1d2f});return;}((_0x52e4b8=_0x42478e[_0xa796d4(0x2e8)]())==null?void 0x0:_0x52e4b8[_0xa796d4(0x260)]())!==_0x254828&&await this[_0xa796d4(0x324)]['executeCommand'](g[_0xa796d4(0x2a7)]['id'],{'unitId':_0x42478e[_0xa796d4(0x217)](),'subUnitId':_0x254828});}},exports[_0xa70a6a(0x2c4)]=ot([k(0x0,me),k(0x1,a['ILogService']),k(0x2,a[_0xa70a6a(0x1fe)]),k(0x3,a[_0xa70a6a(0x312)](u[_0xa70a6a(0x2fa)])),k(0x4,a[_0xa70a6a(0x1f1)](Xe['IRemoteInstanceService']))],exports[_0xa70a6a(0x2c4)]);var at=Object[_0xa70a6a(0x33d)],ct=(_0xf420e,_0x2c1405,_0x25e361,_0x23c03e)=>{const _0x4c19d5=_0xa70a6a;for(var _0x4a6939=_0x23c03e>0x1?void 0x0:_0x23c03e?at(_0x2c1405,_0x25e361):_0x2c1405,_0x2458d6=_0xf420e[_0x4c19d5(0x154)]-0x1,_0x408b3b;_0x2458d6>=0x0;_0x2458d6--)(_0x408b3b=_0xf420e[_0x2458d6])&&(_0x4a6939=_0x408b3b(_0x4a6939)||_0x4a6939);return _0x4a6939;},be=(_0x3889b5,_0x4c0946)=>(_0x1c6b92,_0x2a59a9)=>_0x4c0946(_0x1c6b92,_0x2a59a9,_0x3889b5);let ue=class extends a[_0xa70a6a(0x306)]{constructor(_0x3af390,_0x79276e){const _0x4aef66=_0xa70a6a;super(),this[_0x4aef66(0x17c)]=_0x3af390,this[_0x4aef66(0x32a)]=_0x79276e,this[_0x4aef66(0x373)]();}[_0xa70a6a(0x373)](){const _0x21ede5=_0xa70a6a,_0x30ca07=this;this[_0x21ede5(0x39d)](this[_0x21ede5(0x17c)]['addClipboardHook']({'onBeforePasteImage':async _0x6a4fc6=>{const _0x16618f=_0x21ede5,_0x139245=await _0x30ca07[_0x16618f(0x32a)][_0x16618f(0x32d)](_0x6a4fc6);return _0x139245?{'source':_0x139245[_0x16618f(0x2ca)],'imageSourceType':_0x139245['imageSourceType']}:null;}}));}};ue=ct([be(0x0,E[_0xa70a6a(0x273)]),be(0x1,Ge[_0xa70a6a(0x223)])],ue);const Oe=[_0xa70a6a(0x2db),_0xa70a6a(0x3b1),_0xa70a6a(0x3d2),_0xa70a6a(0x2da),_0xa70a6a(0x3b4),'yellow.400'];class Ce extends a[_0xa70a6a(0x270)]{constructor(){const _0x539761=_0xa70a6a;super(...arguments),h(this,'_assignedColors',new Map()),h(this,_0x539761(0x1fc),0x0);}[_0xa70a6a(0x2fd)](_0x5ba74c){const _0x420cf8=_0xa70a6a;if(this[_0x420cf8(0x295)][_0x420cf8(0x2b6)](_0x5ba74c))return this[_0x420cf8(0x295)][_0x420cf8(0x258)](_0x5ba74c);const _0x3ecc5c=Oe[this[_0x420cf8(0x1fc)]];return this[_0x420cf8(0x1fc)]=(this[_0x420cf8(0x1fc)]+0x1)%Oe['length'],this[_0x420cf8(0x295)][_0x420cf8(0x2d9)](_0x5ba74c,_0x3ecc5c),_0x3ecc5c;}}function ye(_0x184bbf){const _0x4095e1=_0xa70a6a;let _0x1690c6='';for(const _0x31e63d of _0x184bbf){const {startOffset:_0x25604d,endOffset:_0x4a8c54,isActive:_0x4ab8aa,rangeType:_0x5b43bb,segmentId:_0x3b748a,segmentPage:_0x154903}=_0x31e63d;_0x1690c6[_0x4095e1(0x154)]&&(_0x1690c6+=','),_0x1690c6+=_0x25604d+':'+_0x4a8c54+':'+(_0x4ab8aa?'1':'0')+':'+_0x5b43bb+':'+_0x3b748a+':'+_0x154903;}return _0x1690c6;}function lt(_0x285504){const _0x283cc0=_0xa70a6a,_0x496099=_0x285504[_0x283cc0(0x1c4)](','),_0x138b60=[];for(const _0x7e4444 of _0x496099){const [_0x3584f8,_0x1258e4,_0x3de92f,_0xc7eab0,_0x4ed454,_0xc4a535]=_0x7e4444['split'](':');_0x138b60[_0x283cc0(0x392)]({'startOffset':Number(_0x3584f8),'endOffset':Number(_0x1258e4),'collapsed':_0x3584f8===_0x1258e4,'isActive':_0x3de92f==='1','rangeType':_0xc7eab0===a[_0x283cc0(0x2b2)][_0x283cc0(0x191)]?a['DOC_RANGE_TYPE'][_0x283cc0(0x191)]:a[_0x283cc0(0x2b2)][_0x283cc0(0x372)],'segmentId':typeof _0x4ed454==_0x283cc0(0x2de)?String(_0x4ed454):'','segmentPage':Number(_0xc4a535!=null?_0xc4a535:-0x1)});}return _0x138b60[_0x283cc0(0x368)](_0x4ebad1=>_0x4ebad1['isActive'])||(_0x138b60[0x0][_0x283cc0(0x196)]=!0x0),_0x138b60;}class pe extends a[_0xa70a6a(0x306)]{constructor(){const _0x1da93e=_0xa70a6a;super(...arguments),h(this,_0x1da93e(0x2e7),new d[(_0x1da93e(0x239))](null)),h(this,_0x1da93e(0x1a7),this[_0x1da93e(0x2e7)]['asObservable']());}[_0xa70a6a(0x18b)](_0x2f8cc7){const _0x4dfb74=_0xa70a6a,{unitID:_0x1de51,memberID:_0x36cd41,textRanges:_0x325f55}=_0x2f8cc7,_0x4b1470=ye(_0x325f55);if(_0x4b1470==='')return;const _0x2f7ff0={'unitID':_0x1de51,'memberID':_0x36cd41,'selection':_0x4b1470};this[_0x4dfb74(0x2e7)][_0x4dfb74(0x1b3)](_0x2f7ff0);}}var _t=Object[_0xa70a6a(0x33d)],ht=(_0x5621ca,_0x464acc,_0xa1c61c,_0x8ce27b)=>{const _0x4e5589=_0xa70a6a;for(var _0x21c26a=_0x8ce27b>0x1?void 0x0:_0x8ce27b?_t(_0x464acc,_0xa1c61c):_0x464acc,_0x29208c=_0x5621ca[_0x4e5589(0x154)]-0x1,_0x4b8e1a;_0x29208c>=0x0;_0x29208c--)(_0x4b8e1a=_0x5621ca[_0x29208c])&&(_0x21c26a=_0x4b8e1a(_0x21c26a)||_0x21c26a);return _0x21c26a;},L=(_0x48ab2c,_0x2900b5)=>(_0x465372,_0x58355e)=>_0x2900b5(_0x465372,_0x58355e,_0x48ab2c);const ut=0x12c,dt=0x64;let de=class extends a[_0xa70a6a(0x306)]{constructor(_0x590a7d,_0xc6cd2c,_0xd81f2d,_0x20082e,_0x157a47,_0xdc0087,_0x16cbdb,_0x27deb8,_0x548175){const _0x1eacab=_0xa70a6a;super(),h(this,_0x1eacab(0x2d2),!0x1),h(this,'_init',!0x1),h(this,'_cursorInfo$',new d['BehaviorSubject'](new Map())),h(this,'cursorInfo$',this['_cursorInfo$'][_0x1eacab(0x17b)]()),h(this,_0x1eacab(0x25a),new d[(_0x1eacab(0x239))]([])),h(this,_0x1eacab(0x387),this[_0x1eacab(0x25a)][_0x1eacab(0x28e)](d[_0x1eacab(0x274)](ut))),h(this,_0x1eacab(0x23e),a['debounce'](_0x497d57=>{const _0x2179ca=_0x1eacab,_0x4b88c6={'eventID':m[_0x2179ca(0x346)][_0x2179ca(0x194)],'data':{'unitID':this['unitID'],'memberID':this[_0x2179ca(0x163)][_0x2179ca(0x20a)](),'selection':ye(_0x497d57)}};this[_0x2179ca(0x163)]['send'](_0x4b88c6,this[_0x2179ca(0x3d1)]);},dt)),(this[_0x1eacab(0x3d1)]=_0x590a7d,this[_0x1eacab(0x163)]=_0xc6cd2c,this[_0x1eacab(0x1d9)]=_0xd81f2d,this['_colorAssignService']=_0x20082e,this[_0x1eacab(0x1dc)]=_0x157a47,this[_0x1eacab(0x38c)]=_0xdc0087,this[_0x1eacab(0x374)]=_0x16cbdb,this[_0x1eacab(0x3a3)]=_0x27deb8,this[_0x1eacab(0x324)]=_0x548175);}get[_0xa70a6a(0x382)](){const _0x5cd4aa=_0xa70a6a;return this[_0x5cd4aa(0x279)][_0x5cd4aa(0x272)]();}get[_0xa70a6a(0x330)](){const _0x43fa3a=_0xa70a6a;return this[_0x43fa3a(0x25a)]['getValue']();}[_0xa70a6a(0x37e)](){const _0x4bfe44=_0xa70a6a;super[_0x4bfe44(0x37e)](),this[_0x4bfe44(0x279)]['next'](new Map()),this[_0x4bfe44(0x279)]['complete'](),this[_0x4bfe44(0x25a)]['next']([]),this[_0x4bfe44(0x25a)]['complete']();}['init'](){const _0x2a8838=_0xa70a6a;this[_0x2a8838(0x373)]||(this[_0x2a8838(0x373)]=!0x0,this[_0x2a8838(0x163)][_0x2a8838(0x176)][_0x2a8838(0x28e)](d[_0x2a8838(0x22d)](this[_0x2a8838(0x2ef)]))['subscribe'](_0x5d874e=>{const _0x16ffd1=_0x2a8838;_0x5d874e===u[_0x16ffd1(0x290)][_0x16ffd1(0x3d0)]?this[_0x16ffd1(0x1df)]():this[_0x16ffd1(0x256)]();}),this[_0x2a8838(0x163)][_0x2a8838(0x169)][_0x2a8838(0x28e)](d[_0x2a8838(0x22d)](this['dispose$']))[_0x2a8838(0x236)](_0x224215=>{const _0x3e2998=_0x2a8838,_0x1ac681=_0x224215[_0x3e2998(0x298)];_0x1ac681===m[_0x3e2998(0x346)][_0x3e2998(0x194)]&&this[_0x3e2998(0x1f6)](_0x224215),_0x1ac681===m[_0x3e2998(0x346)][_0x3e2998(0x22a)]&&this[_0x3e2998(0x215)](_0x224215);}),this['disposeWithMe'](this['_commandService']['onCommandExecuted'](_0x5dc448=>{const _0x50320c=_0x2a8838,_0x42d6f9=_0x5dc448['params'];_0x42d6f9!=null&&this['_online']&&_0x5dc448['id']===Y[_0x50320c(0x2d8)]['id']&&_0x42d6f9[_0x50320c(0x16c)]===this[_0x50320c(0x3d1)]&&_0x42d6f9[_0x50320c(0x3a6)]===!0x1&&_0x42d6f9[_0x50320c(0x2d1)][_0x50320c(0x154)]>0x0&&this[_0x50320c(0x23e)](_0x42d6f9[_0x50320c(0x2d1)]);})),this[_0x2a8838(0x38c)]['collabCursorState$']['pipe'](d[_0x2a8838(0x22d)](this[_0x2a8838(0x2ef)]))['subscribe'](_0x2e839c=>{const _0xe77f12=_0x2a8838;if((_0x2e839c==null?void 0x0:_0x2e839c[_0xe77f12(0x3d1)])!==this['unitID'])return;const _0x1db1fd={'eventID':m['CollaborationEvent'][_0xe77f12(0x194)],'data':_0x2e839c};this['_onCursorUpdate'](_0x1db1fd);}),this[_0x2a8838(0x39d)](this['_commandService'][_0x2a8838(0x1a0)](_0x3a57d7=>{const _0x408e39=_0x2a8838;if(_0x3a57d7['params']==null)return;const _0x4a05fc=_0x3a57d7[_0x408e39(0x1f3)];if(_0x3a57d7['id']!==Y[_0x408e39(0x2e5)]['id']||_0x4a05fc['unitId']!==this[_0x408e39(0x3d1)])return;const _0x33f06c={'id':_0x408e39(0x2ad),'params':_0x4a05fc},_0x3907e1=this[_0x408e39(0x382)];for(const [_0x18cedd,_0x497047]of _0x3907e1){const _0x591e2c={'id':_0x408e39(0x2ad),'params':{'unitId':this[_0x408e39(0x3d1)],'actions':null,'textRanges':_0x497047['ranges']}},_0x34f882=this['_transformService']['transformMutation'](_0x33f06c,_0x591e2c,!0x1);if(m[_0x408e39(0x238)](_0x34f882))throw _0x34f882[_0x408e39(0x1c9)];_0x3907e1[_0x408e39(0x2d9)](_0x18cedd,{..._0x497047,'ranges':_0x34f882['m2Prime']['params'][_0x408e39(0x2df)]});}queueMicrotask(()=>{const _0x5a433a=_0x408e39;this['_cursorInfo$'][_0x5a433a(0x1b3)](_0x3907e1);});})));}['_onCursorUpdate'](_0x2baf25){const _0x3d991c=_0xa70a6a;var _0x3c05b3,_0x339ddb;const {memberID:_0x53fdf0,selection:_0x352fda}=_0x2baf25['data'],_0x33dd81=lt(_0x352fda),_0x3bd9c2=(_0x339ddb=(_0x3c05b3=this[_0x3d991c(0x1dc)][_0x3d991c(0x323)](this[_0x3d991c(0x3d1)],_0x53fdf0))==null?void 0x0:_0x3c05b3['name'])!=null?_0x339ddb:_0x3d991c(0x25d),_0x5d5fb5={'color':this[_0x3d991c(0x2f4)][_0x3d991c(0x2fd)](_0x53fdf0),'name':_0x3bd9c2,'ranges':_0x33dd81},_0x537e37=this[_0x3d991c(0x382)];_0x537e37['set'](_0x53fdf0,_0x5d5fb5),this['_cursorInfo$'][_0x3d991c(0x1b3)](_0x537e37);}[_0xa70a6a(0x215)](_0x547bed){const _0x21fdb2=_0xa70a6a,{memberID:_0xd92201}=_0x547bed[_0x21fdb2(0x1de)],_0x33f8be=this[_0x21fdb2(0x382)];_0x33f8be[_0x21fdb2(0x15d)](_0xd92201),this[_0x21fdb2(0x279)][_0x21fdb2(0x1b3)](_0x33f8be);}[_0xa70a6a(0x1df)](){const _0x2df38f=_0xa70a6a;var _0x4bb267;if(this[_0x2df38f(0x2d2)]=!0x0,((_0x4bb267=this['_univerInstanceService'][_0x2df38f(0x269)]())==null?void 0x0:_0x4bb267[_0x2df38f(0x217)]())!==this['unitID'])return;const _0x20110d=this[_0x2df38f(0x1d9)][_0x2df38f(0x258)](Y[_0x2df38f(0x3c3)])[_0x2df38f(0x1ac)]();Array[_0x2df38f(0x1d5)](_0x20110d)&&_0x20110d[_0x2df38f(0x154)]>0x0&&this[_0x2df38f(0x23e)](_0x20110d);}['_toggleOffline'](){this['_online']=!0x1;}};de=ht([L(0x2,a['Inject'](a[_0xa70a6a(0x262)])),L(0x3,a['Inject'](Ce)),L(0x4,a['Inject'](u[_0xa70a6a(0x27b)])),L(0x5,a['Inject'](pe)),L(0x6,m[_0xa70a6a(0x1ae)]),L(0x7,a[_0xa70a6a(0x313)]),L(0x8,a[_0xa70a6a(0x1fe)])],de);var St=Object[_0xa70a6a(0x33d)],ft=(_0x5267ca,_0x519935,_0x24633a,_0x3c990b)=>{const _0x555e7a=_0xa70a6a;for(var _0x1206d6=_0x3c990b>0x1?void 0x0:_0x3c990b?St(_0x519935,_0x24633a):_0x519935,_0x3bf515=_0x5267ca[_0x555e7a(0x154)]-0x1,_0x1bb77c;_0x3bf515>=0x0;_0x3bf515--)(_0x1bb77c=_0x5267ca[_0x3bf515])&&(_0x1206d6=_0x1bb77c(_0x1206d6)||_0x1206d6);return _0x1206d6;},A=(_0x21f175,_0x32c055)=>(_0x45f920,_0x27bfe1)=>_0x32c055(_0x45f920,_0x27bfe1,_0x21f175);const It=0x12c,vt=0x64,gt=()=>{let _0x508a27=[],_0x2c8e42=!0x1;return _0xb51a10=>{const _0x1a86ea=_0x1cff;_0x508a27[_0x1a86ea(0x392)](_0xb51a10),_0x2c8e42||(_0x2c8e42=!0x0,setTimeout(()=>{_0x508a27['forEach'](_0x18183f=>_0x18183f()),_0x508a27=[],_0x2c8e42=!0x1;}));};};let Se=class extends a['RxDisposable']{constructor(_0x1086de,_0xaeca52,_0x37ffb7,_0x33ef00,_0x51b0c4,_0x1d85a9,_0x45180f,_0x421d94){const _0x7724a1=_0xa70a6a;super(),h(this,_0x7724a1(0x2d2),!0x1),h(this,_0x7724a1(0x373),!0x1),h(this,_0x7724a1(0x279),new d[(_0x7724a1(0x239))](new Map())),h(this,_0x7724a1(0x214),this[_0x7724a1(0x279)][_0x7724a1(0x17b)]()),h(this,_0x7724a1(0x25a),new d[(_0x7724a1(0x239))]([])),h(this,_0x7724a1(0x387),this[_0x7724a1(0x25a)]['pipe'](d[_0x7724a1(0x274)](It))),h(this,_0x7724a1(0x23e),a[_0x7724a1(0x2af)]((_0xea2e82,_0x26618e)=>{const _0xc4dfca=_0x7724a1,_0x2abd1a={'eventID':m['CollaborationEvent'][_0xc4dfca(0x194)],'data':{'unitID':this[_0xc4dfca(0x3d1)],'memberID':this[_0xc4dfca(0x163)][_0xc4dfca(0x20a)](),'selection':Ee[_0xc4dfca(0x35c)](_0xea2e82,_0x26618e[_0xc4dfca(0x364)])}};this[_0xc4dfca(0x163)][_0xc4dfca(0x1e3)](_0x2abd1a,this[_0xc4dfca(0x3d1)]);},vt)),(this[_0x7724a1(0x3d1)]=_0x1086de,this[_0x7724a1(0x163)]=_0xaeca52,this[_0x7724a1(0x1d9)]=_0x37ffb7,this[_0x7724a1(0x2f4)]=_0x33ef00,this[_0x7724a1(0x1dc)]=_0x51b0c4,this['_univerInstanceService']=_0x1d85a9,this[_0x7724a1(0x324)]=_0x45180f,this['_refRangeService']=_0x421d94);}get[_0xa70a6a(0x382)](){const _0x17e930=_0xa70a6a;return this['_cursorInfo$'][_0x17e930(0x272)]();}get[_0xa70a6a(0x330)](){const _0x2da454=_0xa70a6a;return this[_0x2da454(0x25a)][_0x2da454(0x272)]();}['dispose'](){const _0x55171d=_0xa70a6a;super['dispose'](),this[_0x55171d(0x279)][_0x55171d(0x1b3)](new Map()),this[_0x55171d(0x279)][_0x55171d(0x278)](),this[_0x55171d(0x25a)][_0x55171d(0x1b3)]([]),this[_0x55171d(0x25a)]['complete']();}['init'](){const _0x370de5=_0xa70a6a;this[_0x370de5(0x373)]||(this[_0x370de5(0x373)]=!0x0,this[_0x370de5(0x163)][_0x370de5(0x176)][_0x370de5(0x28e)](d[_0x370de5(0x22d)](this[_0x370de5(0x2ef)]))[_0x370de5(0x236)](_0x31f1ea=>{const _0x23b15c=_0x370de5;_0x31f1ea===u[_0x23b15c(0x290)][_0x23b15c(0x3d0)]?this[_0x23b15c(0x1df)]():this[_0x23b15c(0x256)]();}),this[_0x370de5(0x163)][_0x370de5(0x169)][_0x370de5(0x28e)](d[_0x370de5(0x22d)](this[_0x370de5(0x2ef)]))['subscribe'](_0x4bf093=>{const _0x817a4c=_0x370de5,_0x10a566=_0x4bf093[_0x817a4c(0x298)];_0x10a566===m[_0x817a4c(0x346)][_0x817a4c(0x194)]&&this[_0x817a4c(0x1f6)](_0x4bf093),_0x10a566===m[_0x817a4c(0x346)][_0x817a4c(0x22a)]&&this[_0x817a4c(0x215)](_0x4bf093);}),this[_0x370de5(0x1d2)](),this['disposeWithMe'](this[_0x370de5(0x324)][_0x370de5(0x1a0)](_0x3c6baf=>{const _0x47a3f6=_0x370de5;if(this['_online']&&_0x3c6baf['id']===g[_0x47a3f6(0x1e8)]['id']&&_0x3c6baf['params'][_0x47a3f6(0x16c)]===this['unitID']){const _0x259f20=_0x3c6baf['params'];this[_0x47a3f6(0x23e)](_0x259f20[_0x47a3f6(0x25c)],_0x259f20[_0x47a3f6(0x1a2)][0x0]);}})));}['_onCursorUpdate'](_0x387efb){const _0xdd2bc6=_0xa70a6a;var _0x5cbcd3,_0xe120e1;const {memberID:_0x4f3e8a,selection:_0x88bc81}=_0x387efb[_0xdd2bc6(0x1de)],{sheetName:_0x338b43,range:_0x1c9749}=Ee['deserializeRangeWithSheet'](_0x88bc81),_0x4e858d={'name':(_0xe120e1=(_0x5cbcd3=this[_0xdd2bc6(0x1dc)][_0xdd2bc6(0x323)](this['unitID'],_0x4f3e8a))==null?void 0x0:_0x5cbcd3[_0xdd2bc6(0x30f)])!=null?_0xe120e1:_0xdd2bc6(0x25d),'range':this[_0xdd2bc6(0x395)](_0x338b43,_0x1c9749),'sheetID':_0x338b43,'color':this['_colorAssignService'][_0xdd2bc6(0x2fd)](_0x4f3e8a),'selection':_0x88bc81},_0x51a9a8=this[_0xdd2bc6(0x382)];_0x51a9a8['set'](_0x4f3e8a,_0x4e858d),this[_0xdd2bc6(0x279)][_0xdd2bc6(0x1b3)](_0x51a9a8);}[_0xa70a6a(0x215)](_0x317e4c){const _0x13b1de=_0xa70a6a,{memberID:_0x497d74}=_0x317e4c[_0x13b1de(0x1de)],_0x28aefc=this[_0x13b1de(0x382)];_0x28aefc[_0x13b1de(0x15d)](_0x497d74),this[_0x13b1de(0x279)][_0x13b1de(0x1b3)](_0x28aefc);}['_getMergeRange'](_0x2427ce,_0x155e0c){const _0x3f5ed8=_0xa70a6a;var _0x4d8b2c,_0x41369a;const _0x1e7273=(_0x41369a=(_0x4d8b2c=this[_0x3f5ed8(0x3a3)][_0x3f5ed8(0x242)](this['unitID']))==null?void 0x0:_0x4d8b2c[_0x3f5ed8(0x167)](_0x2427ce))==null?void 0x0:_0x41369a['getMergeData']();return(_0x1e7273==null?void 0x0:_0x1e7273['find'](_0x2ddc16=>a[_0x3f5ed8(0x245)][_0x3f5ed8(0x1c7)](_0x2ddc16,_0x155e0c)))||_0x155e0c;}['_onRefRangeChange'](){const _0x58dcaf=_0xa70a6a,_0x3b6ec6=new a['DisposableCollection'](),_0x37cbf8=gt(),_0x356f03=()=>{const _0x23fd83=_0x1cff;_0x3b6ec6[_0x23fd83(0x37e)]();const _0x2a73bf=(_0x43dd9a,_0xdfc545,_0x185bb6,_0x4a09cf)=>{const _0x1206c2=_0x23fd83;let _0x24d2d9=[];switch(_0x43dd9a['id']){case g[_0x1206c2(0x2a2)]['DeleteRangeMoveLeftCommandId']:{_0x24d2d9=g['handleDeleteRangeMoveLeft'](_0x43dd9a,_0x4a09cf);break;}case g['EffectRefRangId'][_0x1206c2(0x288)]:{_0x24d2d9=g[_0x1206c2(0x1f7)](_0x43dd9a,_0x4a09cf);break;}case g[_0x1206c2(0x2a2)][_0x1206c2(0x1e1)]:{_0x24d2d9=g[_0x1206c2(0x1ef)](_0x43dd9a,_0x4a09cf);break;}case g['EffectRefRangId'][_0x1206c2(0x340)]:{_0x24d2d9=g[_0x1206c2(0x211)](_0x43dd9a,_0x4a09cf);break;}case g[_0x1206c2(0x2a2)][_0x1206c2(0x26e)]:{_0x24d2d9=g['handleInsertRangeMoveRight'](_0x43dd9a,_0x4a09cf);break;}case g['EffectRefRangId'][_0x1206c2(0x178)]:{_0x24d2d9=g[_0x1206c2(0x34c)](_0x43dd9a,_0x4a09cf);break;}case g[_0x1206c2(0x2a2)][_0x1206c2(0x375)]:{_0x24d2d9=g['handleMoveRange'](_0x43dd9a,_0x4a09cf);break;}case g[_0x1206c2(0x2a2)][_0x1206c2(0x1f8)]:{_0x24d2d9=g[_0x1206c2(0x1b5)](_0x43dd9a,_0x4a09cf);break;}case g[_0x1206c2(0x2a2)][_0x1206c2(0x3a2)]:{_0x24d2d9=g[_0x1206c2(0x353)](_0x43dd9a,_0x4a09cf);break;}}const _0x478bca=g[_0x1206c2(0x2a1)](_0x24d2d9,_0x4a09cf),_0x421553=this[_0x1206c2(0x382)][_0x1206c2(0x258)](_0xdfc545);if(_0x421553&&_0x478bca){const _0x18f0d8={..._0x421553,'range':_0x478bca};this[_0x1206c2(0x382)][_0x1206c2(0x2d9)](_0xdfc545,_0x18f0d8),_0x37cbf8(()=>{const _0x467161=_0x1206c2,_0x3243e9=this['_refRangeService'][_0x467161(0x35d)](_0x478bca,_0x1562ce=>(_0x3243e9[_0x467161(0x37e)](),_0x2a73bf(_0x1562ce,_0xdfc545,_0x185bb6,_0x478bca)));_0x3b6ec6[_0x467161(0x228)](_0x3243e9);});}return{'redos':[],'undos':[]};};this[_0x23fd83(0x382)][_0x23fd83(0x1d1)]((_0x749d83,_0x33e8b4)=>{const _0x4ca579=_0x23fd83,{range:_0x206007,sheetID:_0x219c4f}=_0x749d83,_0x3d28d2=this[_0x4ca579(0x304)]['registerRefRange'](_0x206007,_0x29d914=>(_0x3d28d2[_0x4ca579(0x37e)](),_0x2a73bf(_0x29d914,_0x33e8b4,_0x219c4f,_0x206007)));_0x3b6ec6[_0x4ca579(0x228)](_0x3d28d2);});};this[_0x58dcaf(0x39d)](a[_0x58dcaf(0x16a)](this[_0x58dcaf(0x279)][_0x58dcaf(0x236)](()=>{_0x356f03();})));}[_0xa70a6a(0x1df)](){const _0x21887e=_0xa70a6a;var _0x5ea992,_0x44e3bd;if(this['_online']=!0x0,((_0x5ea992=this[_0x21887e(0x3a3)]['getFocusedUnit']())==null?void 0x0:_0x5ea992['getUnitId']())!==this[_0x21887e(0x3d1)])return;const _0x5d56e7=(_0x44e3bd=this['_injector'][_0x21887e(0x258)](g['SheetsSelectionsService'])['getCurrentSelections']())==null?void 0x0:_0x44e3bd[0x0],_0x570e84=this[_0x21887e(0x3a3)][_0x21887e(0x333)](a[_0x21887e(0x3be)][_0x21887e(0x1c8)])[_0x21887e(0x2e8)]();_0x5d56e7&&_0x570e84&&this['_updateLocalCursor'](_0x570e84[_0x21887e(0x260)](),_0x5d56e7);}[_0xa70a6a(0x256)](){const _0x49fa89=_0xa70a6a;this[_0x49fa89(0x2d2)]=!0x1;}};Se=ft([A(0x2,a['Inject'](a[_0xa70a6a(0x262)])),A(0x3,a[_0xa70a6a(0x312)](Ce)),A(0x4,a['Inject'](u[_0xa70a6a(0x27b)])),A(0x5,a['IUniverInstanceService']),A(0x6,a[_0xa70a6a(0x1fe)]),A(0x7,a[_0xa70a6a(0x312)](g[_0xa70a6a(0x3ca)]))],Se);var mt=Object[_0xa70a6a(0x33d)],Ct=(_0x430bd4,_0x34bc46,_0x270803,_0x4bc6ef)=>{const _0x356908=_0xa70a6a;for(var _0x1a4c27=_0x4bc6ef>0x1?void 0x0:_0x4bc6ef?mt(_0x34bc46,_0x270803):_0x34bc46,_0x36e173=_0x430bd4[_0x356908(0x154)]-0x1,_0x27998a;_0x36e173>=0x0;_0x36e173--)(_0x27998a=_0x430bd4[_0x36e173])&&(_0x1a4c27=_0x27998a(_0x1a4c27)||_0x1a4c27);return _0x1a4c27;},ie=(_0x204893,_0x19508e)=>(_0x4b40d7,_0x307967)=>_0x19508e(_0x4b40d7,_0x307967,_0x204893);let x=class extends a['RxDisposable']{constructor(_0x1c902c,_0x3bb015,_0x4a47d){const _0xeeb8c=_0xa70a6a;super(),h(this,_0xeeb8c(0x1e6),new Map()),h(this,_0xeeb8c(0x35f),new d['Subject']()),(this[_0xeeb8c(0x3a3)]=_0x1c902c,this['_injector']=_0x3bb015,this['_collabSessionService']=_0x4a47d,this['_init']());}['dispose'](){const _0x27f787=_0xa70a6a;super[_0x27f787(0x37e)](),this[_0x27f787(0x35f)][_0x27f787(0x278)](),this[_0x27f787(0x1e6)][_0x27f787(0x1d1)](_0xb903e2=>_0xb903e2[_0x27f787(0x37e)]());}['getCollabCursors$'](_0x144001){const _0x4b8c46=_0xa70a6a;return this[_0x4b8c46(0x1e6)]['has'](_0x144001)?this[_0x4b8c46(0x1e6)][_0x4b8c46(0x258)](_0x144001)['cursorInfo$']:this['_entityInit$'][_0x4b8c46(0x28e)](d[_0x4b8c46(0x37a)](_0x1140fa=>_0x1140fa[_0x4b8c46(0x3d1)]===_0x144001),d['switchMap'](_0xb6a28d=>_0xb6a28d[_0x4b8c46(0x214)]));}[_0xa70a6a(0x373)](){const _0x305890=_0xa70a6a;this['_univerInstanceService'][_0x305890(0x287)](a[_0x305890(0x3be)][_0x305890(0x1c8)])[_0x305890(0x28e)](d[_0x305890(0x22d)](this['dispose$']))[_0x305890(0x236)](async _0x5d8c7f=>{const _0xdcefaa=_0x305890,_0x25962c=_0x5d8c7f[_0xdcefaa(0x217)](),_0x10b76f=await this[_0xdcefaa(0x30e)](_0x25962c);this['_entityInit$'][_0xdcefaa(0x1b3)](_0x10b76f),this['_entities']['set'](_0x25962c,_0x10b76f);}),this['_univerInstanceService'][_0x305890(0x287)](a[_0x305890(0x3be)][_0x305890(0x316)])[_0x305890(0x28e)](d['takeUntil'](this[_0x305890(0x2ef)]))['pipe'](d[_0x305890(0x37a)](_0x10a4f1=>!_0x10a4f1[_0x305890(0x217)]()[_0x305890(0x2f8)]('__')))[_0x305890(0x236)](async _0x276fa7=>{const _0x5be132=_0x305890,_0x2397f9=_0x276fa7['getUnitId'](),_0x4a2f59=await this[_0x5be132(0x32c)](_0x2397f9);this['_entityInit$']['next'](_0x4a2f59),this[_0x5be132(0x1e6)][_0x5be132(0x2d9)](_0x2397f9,_0x4a2f59);}),d[_0x305890(0x1ee)](this[_0x305890(0x3a3)]['getTypeOfUnitDisposed$'](a[_0x305890(0x3be)]['UNIVER_DOC']),this['_univerInstanceService'][_0x305890(0x351)](a[_0x305890(0x3be)]['UNIVER_SHEET']))[_0x305890(0x28e)](d[_0x305890(0x22d)](this[_0x305890(0x2ef)]))[_0x305890(0x236)](_0x448a5f=>{const _0xd91b14=_0x305890,_0x531bb3=_0x448a5f[_0xd91b14(0x217)](),_0x3a5b58=this[_0xd91b14(0x1e6)]['get'](_0x531bb3);_0x3a5b58&&(_0x3a5b58[_0xd91b14(0x37e)](),this[_0xd91b14(0x1e6)][_0xd91b14(0x15d)](_0x531bb3));});}async[_0xa70a6a(0x30e)](_0x1ea3af){const _0x54834b=_0xa70a6a,_0x4fd2c9=await this[_0x54834b(0x24d)]['requireSession'](_0x1ea3af),_0x51203a=this[_0x54834b(0x1d9)][_0x54834b(0x192)](Se,_0x1ea3af,_0x4fd2c9);return _0x51203a[_0x54834b(0x318)](),_0x51203a;}async[_0xa70a6a(0x32c)](_0x507481){const _0x604346=_0xa70a6a,_0x1c5e4a=await this[_0x604346(0x24d)][_0x604346(0x1db)](_0x507481),_0x59849a=this[_0x604346(0x1d9)][_0x604346(0x192)](de,_0x507481,_0x1c5e4a);return _0x59849a[_0x604346(0x318)](),_0x59849a;}};x=Ct([ie(0x0,a[_0xa70a6a(0x313)]),ie(0x1,a['Inject'](a[_0xa70a6a(0x262)])),ie(0x2,a['Inject'](u[_0xa70a6a(0x2c2)]))],x);const W=0x14,Te=0xc8,ne=0x4,pt=0x5;function _0x287c(){const _0x5b9b53=['ThemeService','labelPosition','_hovered','_eventUnsubscribe','key','ENSURE_SNAPSHOT_EXECUTION','_setupBeforeClosingHandler','type','toRgbString','IImageIoService','wsSessionTicketUrl','_configService','_messageService','_scheduleSaving','add','44TjiMxw','USERS_LEAVE','toStringTag','distinctUntilChanged','takeUntil','IURLService','ColorKit','_id','entityInit$','_shapes','_cursor','HEADER_MENU','addObject','subscribe','size','isTransformMutationFailure','BehaviorSubject','propertyIsEnumerable','_anchor','Error','_docStateChangeManagerService','_updateLocalCursor','_docTransformIMECacheService','popstate','defs','getUniverSheetInstance','setConfig','height','Rectangle','UNRECOGNIZED','setUndoRedoMutationParamsCache','WebBrowserSingleActiveUnitService','session.collaboration-timeout','xlink:href','loadOfflineData','beginPath','_collabSessionService','TEXT_RANGE_LAYER_INDEX','_updateSubUnitFromURLParams','random','onStarting','MUTATION','DocIMEInputManagerService','jsx','3493byTxyd','_toggleOffline','resize','get','bottom','_roomMembers$','fill','subUnitId','Unknown\x20user','disposeUnit','sheetId','getSheetId','transform','Injector','getOwnPropertySymbols','_removeCollabCursors','backgroundColor','M0\x200H16V16H0z','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','EMAIL_HAS_BEEN_BOUND','getFocusedUnit','Module','substring','_instanceService','permission.title','InsertRangeMoveRightCommandId','INVITE_CODE_HAS_BEEN_UES','Disposable','_createSocketURL','getValue','IDocClipboardService','debounceTime','on-line-icon_clip0_910_349','getColor','concat','complete','_cursorInfo$','MessageType','MemberService','USER_NOT_INVITED_CODE','call','DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT','_initStatusComponent','code','debug','RevisionService','removeParam','ISnapshotServerService','PY_RUNTIME_SCRIPT_ERROR','_getSessionTicket','getTypeOfUnitAdded$','DeleteRangeMoveUpCommandId','fillText','_collaborationUIEventService','restore','COMPLETION_FINISHED','updateOfflineData','pipe','font','SessionStatus','_getAnchorBounding','_unitOnClients','_name','setItem','_assignedColors','_docTransformStateCacheService','LICENSE_EXPORT_SIZE_EXCEEDED','eventID','extend','permission.content','clsx','CollaborationStatus','MOBILE_VERIFY_CODE_MISMATCH','_handleJoinEvent','redoState','YUUMI_PROMPT_MAX_TOKENS_EXCEEDED','runRefRangeMutations','EffectRefRangId','_getSaveTimeout','toString','SNAPSHOT_HAS_BEEN_REMOVED','12635iXHPGq','SetWorksheetActivateCommand','collabStatus.conflict','className','RegularPolygon','IRenderManagerService','origin','doc.mutation.rich-text-editing','_dataLoaderService','debounce','getSheetObject','useRef','DOC_RANGE_TYPE','_handleHeartbeatEvent','ILocalCacheService','getCoordByCell','has','1em','collabStatus.notCollab','replaceState','clearTimeout','LICENSE_IMPORT_SIZE_EXCEEDED','mutations','url(#$1','mergeOverrideWithDependencies','setShapeProps','_textBubble','max','CollaborationSessionService','Warning','CollaborationDataLoaderController','_handleEvent','0\x200\x2017\x2016','entries','memberID','from','source','collaboration.closeRoom','DEFAULT_WS_SESSION_TICKET_URL','OffLineIcon','IBeforeCloseService','INVALID_ARGUMENT','Plugin','ranges','_online','all','INotificationService','SheetSkeletonManagerService','getCurrentRevOfUnit','_cursorShapes','SetTextSelectionsOperation','set','red.300','purple.300','APPLY_NON_SEQUENTIAL_REVISION','WebURLService','string','textRanges','APPLY_REJECT','mapTo','_initEntityListener','measureText','47046NcCVMm','RichTextEditingMutation','UNDEFINED','_collabCursorState$','getActiveSheet','#FFF','searchParams','_scheduleHeartbeat','disableLocalCache','_beforeCloseService','pushState','dispose$','TOO_MANY_REQUESTS','svg','DocCollaborationEntity','_heartbeatTimer','_colorAssignService','tag','clipPath','collabStatus.fetchMiss','startsWith','none','DataLoaderService','_docTransformSelectionsService','collabStatus.offline','assignAColorForMemberID','registerBeforeClose','application/json','BuiltInUIPart','uni.network.url-service','focused$','endRow','_refRangeService','session.connection-failed','RxDisposable','activeSheet$','indexOf','collab-text-anchor-','_refreshCollabCursors','SOCKET_FAILED_RETRY','href','_revisionService','_startSheetCollabCursor','name','_setupSubUnitSync','getUndoRedoMutationParamsCache','Inject','IUniverInstanceService','APPLY_REVISION_CONFILICT','getRelativeToViewportCoord','UNIVER_DOC','_notificationService','init','with','show','Tooltip','getCollabEntity$','selection','undoState','Tools','_scheduleClearOtherTimer','includes','CollaborationUIEventService','getMember','_commandService','getLocalCacheKey','evenodd','symbol','onMouseMove','location','_imageIoService','CHANGESET_REVISION_CONFILICT','_startDocCollabCursor','saveImage','ACTIVE_UNIT_EVENT_CHANNEL','saveTaskMap','roomMembers','idSuffix','_themeService','getCurrentUnitForType','trim','session.will-retry','setParam','LICENSE_MAX_UNITS_EXCEEDED','unshift','getSkeleton','UNIVER_COLLABORATION_CLIENT_WEB_PLUGIN','_status$','IConfigService','getOwnPropertyDescriptor','DesktopCollaborationStatusDisplayController','m2Prime','InsertRangeMoveDownCommandId','getViewport','getConfig','SYNCED','result','_doCreateSocket','CollaborationEvent','_registerRenderDependencies','Failed','RemoteUniscriptService','_localeService','_config','handleInsertRow','isTransformMutationsWithChangesetSuccess','onTransformChange$','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','CollaborationSocketService','getTypeOfUnitDisposed$','save','handleIRemoveRow','LICENSE_DISTRO_REJECTED','exhaustSavingTask','hovered','[CollaborationDataLoaderController]','startRow','values','LOCAL_CACHE_INTERVAL','_drawAnchor','serializeRangeWithSheet','registerRefRange','stringify','_entityInit$','white','UniverCollaborationClientUIPlugin','M3.61971\x2011.6499C2.40304\x2011.6499\x200.699707\x2011.1024\x200.699707\x208.9124C0.699707\x206.3574\x203.25471\x205.8099\x203.98471\x205.8099C4.34971\x204.5324\x205.07971\x202.5249\x207.99971\x202.5249C10.5547\x202.5249\x2011.6497\x203.9849\x2012.0147\x205.2624C12.0147\x205.2624\x2015.2997\x205.6274\x2015.2997\x208.7299C15.2997\x2010.9199\x2013.8397\x2011.6499\x2012.3797\x2011.6499M9.82471\x209.82466L6.17471\x2013.4747M6.17471\x209.82466L9.82471\x2013.4747','_saveTaskMap','range','clearInterval','ticket','addObjects','some','PERMISSION_DENIED','createElement','useDependency','path','_drawRectRange','setInterval','_registerDependencies','replace','width','RECT','_init','_transformService','MoveRangeCommandId','DocSkeletonManagerService','replaceDocRanges','top','_labelPosition','filter','_backgroundColor','unload','_transformHistoryAndStateStack','dispose','TRANSFORM_CHANGE_OBSERVABLE_TYPE','EMAIL_VERIFY_CODE_NOT_FOUND_OR_EXPIRED','3138708ktOWtU','cursorInfo','editingUnit','_drawTextRange','getStateCache','url(#on-line-icon_clip0_910_349)','roomMembers$','WECHAT_HAS_BEEN_BOUND','touchDependencies','99krZCsJ','whenReady','_syncEditingCollabCursorService','executeCommand','_httpService','closePath','round','APPLY_PERMISSION_DENIED','push','2tQyWpt','_collabCursorController','_getMergeRange','hasOwnProperty','onPointerLeave$','YUUMI_NO_CUBOID_FOR_QUESTION','_draw','getRenderById','106660oRmGXI','OnLineIcon','disposeWithMe','generateRandomId','_updateURLWithCurrentState','_initResize','REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY','RemoveRowCommandId','_univerInstanceService','current','CommandType','isEditing','color','_anchorDot','unsubscribe','39igZOxF','UniverCollaborationClientPlugin','MOBILE_VERIFY_CODE_NOT_FOUND_OR_EXPIRED','assign','_scene','_initStatusListener','displayName','jiqing.500','498310LJWpfH','[RemoteUniscriptService]:\x20no\x20focused\x20unit','blue.400','skeleton','Rect','_getSheetObject','7102940AVFgjz','WebSocketService','_sheetSkeletonManagerService','6632SiXaGF','BrowserCollaborationSocketService','override','UniverInstanceType','newValue','text','children','lineTo','DocSelectionManagerService','transformMutationsWithChangeset','getActiveRange','VIEW_MAIN','_docSkeleton','_initDependencies','_hover','RefRangeService','registerRenderModule','throttleTime','_uiPartsService','subunit','NO_OTHER_CLIENTS_EDITING','ONLINE','unitID','green.600','APPLY_DUPLICATED','UNAUTHENTICATED','currentColor','getAncestorScale','_collaborationController','MOBILE_HAS_BEEN_BOUND','length','_getScale','rgba(255,\x20255,\x20255,\x200.01)','NodePositionConvertToRectRange','_context','pluginName','_initCommandExecutedListener','_urlService','deepClone','delete','executionId','univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','INVITE_CODE_ALREADY_BOUND','urlChange$','EMAIL_VERIFY_CODE_MISMATCH','_session','_docSkeletonManagerService','FromArray','engine','getSheetBySheetId','row','event$','toDisposable','runId','unitId','div','_hideTimer','CollaborationController','univer-flex\x20univer-items-center','setAlpha','_cachedData','LocaleService','transformIMECache','off-line-icon_clip0_910_343','sessionStatus$','combineLatest','InsertRowCommandId','YUUMI_CONNECTOR_URL_NOT_FOUND','arc','asObservable','_docClipboardService','UniverIcon','makeDirty','colorChannel1','forwardRef','_handleLeaveEvent','onRendered','setTimeout','YUUMI_ALL_TABLES_IS_INVALID','getVpScrollXYInfoByPosToVp','map','_unitStatus','transformSelections','column','prototype','syncEditingCollabCursor','findNodePositionByCharIndex','drawWith','enableLocalCache','registerComponent','setStateCache','TEXT','createInstance','_range','UPDATE_CURSOR','_disabled','isActive','_initEvent','HTTPService','body','OFFLINE','NOT_FOUND','loadUnit','attrs','_selfUnitIDs','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','onCommandExecuted','on-line-icon','selections','DocStateChangeManagerService','LOGIN_FAILED','ISocketService','mask','collabCursorState$','http://www.w3.org/2000/svg','_handleHover','apply','sessionTicket','getDocRanges','history','ITransformService','startColumn','black','_transformPreviousActiveRange','INVITE_CODE_REQUIRED','next','sheetID','handleIRemoveCol','unit','reconnect','flatMap','_cursors','defineProperty','215qGsMDz','m1Prime','OTHER_CLIENTS_EDITING','setActiveRange','min','transformRemoteChangeset','SOCKET_FAILED','CollaborationUIEventId','runOnServer','split','function','...','contains','UNIVER_SHEET','error','translate(.97)','shareReplay','_logService','getParam','_send','_localStorageService','transformStateCache','forEach','_onRefRangeChange','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','then','isArray','_docSyncEditingCollabCursorService','Vector2','getCollabCursors$','_injector','useCallback','requireSession','_memberService','YUUMI_URL_COL_OUT_OF_RANGE','data','_toggleOnline','NOT_COLLAB','InsertColCommandId','defIds','send','fromEvent','CONNECTOR_DATA_TOO_LARGE','_entities','Shape','SetSelectionsOperation','fromEventSubject','_color','triggerDblclick','Workbook','transformMutation','merge','handleInsertCol','_lastPointer','Optional','SetDocZoomRatioOperation','params','COLORS','off-line-icon','_onCursorUpdate','handleDeleteRangeMoveUp','RemoveColCommandId','UnitStatus','fillStyle','YUUMI_TABLE_NOT_FOUND_IN_UNIT','_colorIndex','useObservable','ICommandService','_localCacheService','onPointerEnter$','icon','createIdentifier','hide','getRangePointData','parse','YUUMI_ASYNCIO_CANCELLED','getUnitStatus$','INTERNAL_ERROR','_updateCollabCursors','getMemberID','_renderManagerService','switchMap','YUUMI_RATE_OVER_LIMIT','_removeClearOtherTimer','INVALID_INVITE_CODE','_ensureSubject','handleInsertRangeMoveDown','SNAPSHOT_INVALID_SNAPSHOT','YUUMI_SUBSCRIPTION_NOT_FOUND','cursorInfo$','_onCursorDelete','_clearOtherTimers','getUnitId','collab-rect-range-','subscribeEvent'];_0x287c=function(){return _0x5b9b53;};return _0x287c();}function Et(_0x189786,_0x560366){const _0x57e4ba=_0xa70a6a;let {radius:_0x225001,width:_0x519686,height:_0x145bbf}=_0x560366;_0x225001=_0x225001!=null?_0x225001:0x0,_0x519686=_0x519686!=null?_0x519686:0x1e,_0x145bbf=_0x145bbf!=null?_0x145bbf:0x1e;let _0x4a4f47=0x0,_0x429fbc=0x0,_0x1d3b1c=0x0;_0x4a4f47=_0x429fbc=_0x1d3b1c=Math['min'](_0x225001,_0x519686/0x2,_0x145bbf/0x2),_0x189786[_0x57e4ba(0x24c)](),_0x189786['moveTo'](_0x4a4f47,0x0),_0x189786['lineTo'](_0x519686-_0x429fbc,0x0),_0x189786[_0x57e4ba(0x17a)](_0x519686-_0x429fbc,_0x429fbc,_0x429fbc,Math['PI']*0x3/0x2,0x0,!0x1),_0x189786[_0x57e4ba(0x3c2)](_0x519686,_0x145bbf-_0x1d3b1c),_0x189786[_0x57e4ba(0x17a)](_0x519686-_0x1d3b1c,_0x145bbf-_0x1d3b1c,_0x1d3b1c,0x0,Math['PI']/0x2,!0x1),_0x189786['lineTo'](0x0,_0x145bbf),_0x189786['lineTo'](0x0,_0x4a4f47),_0x189786[_0x57e4ba(0x17a)](_0x4a4f47,_0x4a4f47,_0x4a4f47,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x189786[_0x57e4ba(0x38f)](),_0x560366[_0x57e4ba(0x25b)]&&(_0x189786['save'](),_0x189786[_0x57e4ba(0x1fa)]=_0x560366[_0x57e4ba(0x25b)],_0x560366['fillRule']===_0x57e4ba(0x326)?_0x189786[_0x57e4ba(0x25b)](_0x57e4ba(0x326)):_0x189786[_0x57e4ba(0x25b)](),_0x189786[_0x57e4ba(0x28b)]());}class ee extends p['Shape']{constructor(_0x4a369b,_0x40611a){const _0x640905=_0xa70a6a;super(_0x4a369b,_0x40611a),h(this,_0x640905(0x3a7)),h(this,_0x640905(0x3c0)),(this[_0x640905(0x3a7)]=_0x40611a==null?void 0x0:_0x40611a[_0x640905(0x3a7)],this[_0x640905(0x3c0)]=_0x40611a==null?void 0x0:_0x40611a[_0x640905(0x3c0)]);}static[_0xa70a6a(0x18d)](_0x52a3e2,_0x23050f){const _0x4fb090=_0xa70a6a,{text:_0x3102e3,color:_0x5af324}=_0x23050f;_0x52a3e2[_0x4fb090(0x352)](),_0x52a3e2[_0x4fb090(0x28f)]=_0x4fb090(0x34f);const _0x5e14ff=_0x52a3e2[_0x4fb090(0x2e3)](_0x3102e3)['width'],_0x11f75d=Math[_0x4fb090(0x1bf)](_0x5e14ff+0x2*ne,Te);Et(_0x52a3e2,{'height':W,'radius':0x4,'width':_0x11f75d,'fill':_0x5af324}),_0x52a3e2['fillStyle']=_0x4fb090(0x2e9);const _0x1faeff=ne,_0x30fa09=W-pt,_0x14c9e0=Te-0x2*ne;if(_0x5e14ff>_0x14c9e0){let _0x4a2e4a='',_0x1798ba=0x0;for(const _0x25e905 of _0x3102e3){const _0x1d862b=_0x52a3e2['measureText'](_0x25e905)[_0x4fb090(0x371)];if(_0x1798ba+_0x1d862b<=_0x14c9e0-_0x52a3e2[_0x4fb090(0x2e3)]('...')['width'])_0x4a2e4a+=_0x25e905,_0x1798ba+=_0x1d862b;else{_0x4a2e4a+=_0x4fb090(0x1c6);break;}}_0x52a3e2[_0x4fb090(0x289)](_0x4a2e4a,_0x1faeff,_0x30fa09);}else _0x52a3e2[_0x4fb090(0x289)](_0x3102e3,_0x1faeff,_0x30fa09);_0x52a3e2[_0x4fb090(0x28b)]();}[_0xa70a6a(0x399)](_0x1884ea){const _0x2b65f0=_0xa70a6a;ee[_0x2b65f0(0x18d)](_0x1884ea,this);}}const re=_0xa70a6a(0x309),bt='collab-text-range-',Ot=_0xa70a6a(0x218),F=0x6,Tt=1.5,oe=0x4,Rt=1.5,Dt=_0xa70a6a(0x156);class Re{constructor(_0x238db3,_0x7985af,_0x5b767b,_0x38a49c){const _0x383ca9=_0xa70a6a;h(this,_0x383ca9(0x232),[]),h(this,_0x383ca9(0x23b),null),h(this,_0x383ca9(0x2c0),null),h(this,_0x383ca9(0x3a8),null),h(this,'_hideTimer',null),h(this,_0x383ca9(0x21d),null),(this[_0x383ca9(0x233)]=_0x238db3,this['_scene']=_0x7985af,this[_0x383ca9(0x3c7)]=_0x5b767b,this['_document']=_0x38a49c,this['_render']());}set[_0xa70a6a(0x3c9)](_0x5f0bbd){const _0x55f9b8=_0xa70a6a;_0x5f0bbd?(this[_0x55f9b8(0x3a8)]&&this[_0x55f9b8(0x3a8)][_0x55f9b8(0x203)](),this[_0x55f9b8(0x2c0)]&&this[_0x55f9b8(0x2c0)][_0x55f9b8(0x31a)]()):(this[_0x55f9b8(0x3a8)]&&this[_0x55f9b8(0x3a8)]['show'](),this[_0x55f9b8(0x2c0)]&&this[_0x55f9b8(0x2c0)]['hide']());}[_0xa70a6a(0x37e)](){const _0x1a5693=_0xa70a6a;for(const _0x407da8 of this[_0x1a5693(0x232)])_0x407da8[_0x1a5693(0x37e)]();this[_0x1a5693(0x2c0)]&&this[_0x1a5693(0x2c0)]['dispose'](),this['_anchorDot']&&this['_anchorDot']['dispose'](),this['_anchor']&&this[_0x1a5693(0x23b)][_0x1a5693(0x37e)](),this[_0x1a5693(0x21d)]&&this[_0x1a5693(0x21d)]();}['_render'](){const _0x10844f=_0xa70a6a;var _0x9ec2b0;const {_docSkeleton:_0x4f07b3,_document:_0x873662}=this,{color:_0x5e96ef,name:_0x421660,ranges:_0x485f51}=this[_0x10844f(0x233)],_0x7e3b5=_0x873662['getOffsetConfig'](),{docsLeft:_0x3c74c0,docsTop:_0x1f3b1d}=_0x7e3b5,_0x471524=new E['NodePositionConvertToCursor'](_0x7e3b5,_0x4f07b3);for(const {startOffset:_0x377988,endOffset:_0x5f5bf7,rangeType:_0x2cacfc,segmentId:_0x236f82,segmentPage:_0x3dbbf4,collapsed:_0x2a89a4,isActive:_0x5339d2}of _0x485f51){const _0x164fda=_0x4f07b3['findNodePositionByCharIndex'](_0x377988,!0x0,_0x236f82,_0x3dbbf4);let _0x3928e8=_0x4f07b3[_0x10844f(0x18c)](_0x5f5bf7,!0x0,_0x236f82,_0x3dbbf4);if(_0x3928e8==null&&(_0x3928e8=_0x4f07b3[_0x10844f(0x18c)](_0x5f5bf7-0x1,!0x1,_0x236f82,_0x3dbbf4)),_0x5339d2){const {contentBoxPointGroup:_0xb64990}=_0x471524[_0x10844f(0x204)](_0x3928e8,_0x3928e8);if(_0xb64990[_0x10844f(0x154)]===0x0)continue;this['_drawAnchor'](_0x5e96ef,_0xb64990,_0x3c74c0,_0x1f3b1d,_0x421660),this[_0x10844f(0x21d)]=this[_0x10844f(0x1a9)]();}if(_0x164fda&&_0x3928e8){if(_0x2cacfc===a[_0x10844f(0x2b2)][_0x10844f(0x372)]){const _0xd4f632=new E[(_0x10844f(0x157))](_0x7e3b5,_0x4f07b3),{pointGroup:_0x1cf160}=(_0x9ec2b0=_0xd4f632[_0x10844f(0x204)](_0x164fda,_0x3928e8))!=null?_0x9ec2b0:{};if(_0x1cf160==null||_0x1cf160[_0x10844f(0x154)]===0x0)continue;this[_0x10844f(0x36d)](_0x5e96ef,_0x1cf160,_0x3c74c0,_0x1f3b1d);}else{if(!_0x2a89a4){const {borderBoxPointGroup:_0x38ace8}=_0x471524['getRangePointData'](_0x164fda,_0x3928e8);if(_0x38ace8['length']===0x0)continue;this[_0x10844f(0x384)](_0x5e96ef,_0x38ace8,_0x3c74c0,_0x1f3b1d);}}}}}[_0xa70a6a(0x35b)](_0x12c3c0,_0x3c2a72,_0x935394,_0x380b64,_0x4206bd){const _0x5e9191=_0xa70a6a,_0x265f0b=this[_0x5e9191(0x291)](_0x3c2a72),{left:_0x2ff0c5,top:_0x4c68be,height:_0x32aa85}=_0x265f0b,_0x3ca5de=this[_0x5e9191(0x155)](),_0x2cf38a=Rt/_0x3ca5de,_0x111d2e=new p[(_0x5e9191(0x3b6))](re+a[_0x5e9191(0x39e)](F),{'left':_0x2ff0c5+_0x935394-_0x2cf38a,'top':_0x4c68be+_0x380b64,'height':_0x32aa85,'width':Tt,'fill':_0x12c3c0||p[_0x5e9191(0x276)](a['COLORS'][_0x5e9191(0x1b0)],0x0),'strokeWidth':_0x2cf38a,'stroke':Dt,'evented':!0x0});this[_0x5e9191(0x23b)]=_0x111d2e,this[_0x5e9191(0x3ae)][_0x5e9191(0x235)](_0x111d2e,E[_0x5e9191(0x24e)]);const _0x9bfe88=new p[(_0x5e9191(0x3b6))](re+a[_0x5e9191(0x39e)](F),{'left':_0x2ff0c5+_0x935394-_0x2cf38a,'top':_0x4c68be+_0x380b64-oe/0x2,'height':oe,'width':oe,'fill':_0x12c3c0||p['getColor'](a[_0x5e9191(0x1f4)][_0x5e9191(0x1b0)],0x0),'strokeWidth':0x0,'stroke':_0x12c3c0||p['getColor'](a[_0x5e9191(0x1f4)][_0x5e9191(0x1b0)],0x0),'evented':!0x1});this[_0x5e9191(0x3a8)]=_0x9bfe88,this[_0x5e9191(0x3ae)][_0x5e9191(0x235)](_0x9bfe88,E['TEXT_RANGE_LAYER_INDEX']);const _0x3e3ad6=new ee(re+a['generateRandomId'](F),{'left':_0x2ff0c5+_0x935394-_0x2cf38a,'top':_0x4c68be+_0x380b64-W,'text':_0x4206bd,'color':_0x12c3c0});this[_0x5e9191(0x2c0)]=_0x3e3ad6,this[_0x5e9191(0x3ae)][_0x5e9191(0x235)](_0x3e3ad6,E['TEXT_RANGE_LAYER_INDEX']),this[_0x5e9191(0x3c9)]=!0x1;}['_handleHover'](){const _0x5dd50e=_0xa70a6a,_0x5f2d0f=this[_0x5dd50e(0x23b)][_0x5dd50e(0x200)]['subscribeEvent'](()=>{this['_hover']=!0x0;}),_0x5ccac4=this[_0x5dd50e(0x23b)][_0x5dd50e(0x397)]['subscribeEvent'](()=>{const _0x2655f0=_0x5dd50e;this[_0x2655f0(0x16e)]&&clearTimeout(this[_0x2655f0(0x16e)]),this[_0x2655f0(0x16e)]=setTimeout(()=>{this['_hover']=!0x1;},0x7d0);});return()=>{const _0x4450b0=_0x5dd50e;_0x5f2d0f[_0x4450b0(0x3a9)](),_0x5ccac4['unsubscribe']();};}[_0xa70a6a(0x384)](_0x42ab36,_0x492a01,_0x5038fb,_0x2944c2){const _0x11fe99=_0xa70a6a,_0x2ace60=new a[(_0x11fe99(0x22f))](_0x42ab36)[_0x11fe99(0x171)](0.2)['toRgbString'](),_0x29cd65=new p[(_0x11fe99(0x2aa))](bt+a[_0x11fe99(0x39e)](F),{'pointsGroup':_0x492a01,'fill':_0x2ace60||p[_0x11fe99(0x276)](a[_0x11fe99(0x1f4)][_0x11fe99(0x1b0)],0.2),'left':_0x5038fb,'top':_0x2944c2,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x11fe99(0x232)][_0x11fe99(0x392)](_0x29cd65),this['_scene'][_0x11fe99(0x235)](_0x29cd65,E[_0x11fe99(0x24e)]);}[_0xa70a6a(0x36d)](_0xe9114c,_0x271610,_0x5bd409,_0xab8fe6){const _0x25bfbd=_0xa70a6a,_0x51df9c=new a[(_0x25bfbd(0x22f))](_0xe9114c)[_0x25bfbd(0x171)](0.2)[_0x25bfbd(0x222)](),_0x4b3db3=new p[(_0x25bfbd(0x2aa))](Ot+a['generateRandomId'](F),{'pointsGroup':_0x271610,'fill':_0x51df9c||p[_0x25bfbd(0x276)](a['COLORS'][_0x25bfbd(0x1b0)],0.2),'left':_0x5bd409,'top':_0xab8fe6,'evented':!0x1,'debounceParentDirty':!0x1});this['_shapes'][_0x25bfbd(0x392)](_0x4b3db3),this[_0x25bfbd(0x3ae)][_0x25bfbd(0x235)](_0x4b3db3,E[_0x25bfbd(0x24e)]);}[_0xa70a6a(0x291)](_0x5b410c){const _0x1d2b6c=_0x5b410c[0x0],_0x409e05=_0x1d2b6c[0x0],_0x56ae98=_0x1d2b6c[0x2],{x:_0x5e51f2,y:_0x2e7734}=_0x409e05,{x:_0x5794f1,y:_0x1c6fee}=_0x56ae98;return{'left':_0x5e51f2,'top':_0x2e7734,'width':_0x5794f1-_0x5e51f2,'height':_0x1c6fee-_0x2e7734};}[_0xa70a6a(0x155)](){const _0xcec85=_0xa70a6a,{scaleX:_0x33bfa8,scaleY:_0x4434d4}=this['_scene']['getAncestorScale']();return Math[_0xcec85(0x2c1)](_0x33bfa8,_0x4434d4);}}var Ut=Object[_0xa70a6a(0x33d)],Nt=(_0x2dd33c,_0x46749c,_0x5f153c,_0x23011a)=>{const _0x971064=_0xa70a6a;for(var _0x3a803b=_0x23011a>0x1?void 0x0:_0x23011a?Ut(_0x46749c,_0x5f153c):_0x46749c,_0x27eecf=_0x2dd33c[_0x971064(0x154)]-0x1,_0x4a8da8;_0x27eecf>=0x0;_0x27eecf--)(_0x4a8da8=_0x2dd33c[_0x27eecf])&&(_0x3a803b=_0x4a8da8(_0x3a803b)||_0x3a803b);return _0x3a803b;},X=(_0x2f7ea7,_0x14b073)=>(_0x7b29e9,_0x1d4e85)=>_0x14b073(_0x7b29e9,_0x1d4e85,_0x2f7ea7);let fe=class extends a[_0xa70a6a(0x306)]{constructor(_0x1bbf8a,_0x23ecfb,_0x3010ba,_0x43e2b6,_0x9221a9){const _0x1c51a0=_0xa70a6a;super(),h(this,_0x1c51a0(0x2d7),[]),h(this,_0x1c51a0(0x1b9),[]),(this[_0x1c51a0(0x158)]=_0x1bbf8a,this['_docSkeletonManagerService']=_0x23ecfb,this[_0x1c51a0(0x394)]=_0x3010ba,this[_0x1c51a0(0x324)]=_0x43e2b6,this[_0x1c51a0(0x332)]=_0x9221a9,this[_0x1c51a0(0x373)]());}[_0xa70a6a(0x373)](){const _0x4cc8f2=_0xa70a6a,_0x49d322=this[_0x4cc8f2(0x158)][_0x4cc8f2(0x16c)],_0x5e0999=this[_0x4cc8f2(0x164)];this[_0x4cc8f2(0x39d)](d[_0x4cc8f2(0x177)]([this[_0x4cc8f2(0x394)][_0x4cc8f2(0x1d8)](_0x49d322),this[_0x4cc8f2(0x332)]['currentTheme$']])['pipe']($[_0x4cc8f2(0x186)](([_0x27fb18,_0xac15b1])=>({'skeleton':_0x5e0999[_0x4cc8f2(0x339)](),'cursors':[..._0x27fb18['values']()][_0x4cc8f2(0x1b8)](_0x2fb58a=>({..._0x2fb58a,'color':this[_0x4cc8f2(0x332)]['getColorFromTheme'](_0x2fb58a[_0x4cc8f2(0x3a7)])}))})))['subscribe'](_0x16ba62=>{const _0x2a64a9=_0x4cc8f2;if(this[_0x2a64a9(0x264)](),_0x16ba62){const {skeleton:_0x2523f7,cursors:_0x1598d4}=_0x16ba62;this[_0x2a64a9(0x209)](_0x2523f7,_0x1598d4);}})),this[_0x4cc8f2(0x3a0)](),this[_0x4cc8f2(0x15a)]();}[_0xa70a6a(0x209)](_0x33f414,_0x19f810){const _0x1d3bbd=_0xa70a6a,{scene:_0x31b1ea,mainComponent:_0x13f83c}=this[_0x1d3bbd(0x158)],_0x5db86a=_0x19f810['map'](_0x2f6fa0=>new Re(_0x2f6fa0,_0x31b1ea,_0x33f414,_0x13f83c));this[_0x1d3bbd(0x2d7)]=_0x5db86a,this[_0x1d3bbd(0x1b9)]=_0x19f810;}[_0xa70a6a(0x30a)](){const _0x14b383=_0xa70a6a;this[_0x14b383(0x264)]();const {scene:_0x2ffd15,mainComponent:_0x8dfd94}=this[_0x14b383(0x158)],_0x4f4f71=this[_0x14b383(0x164)]['getSkeleton'](),_0x15403e=this[_0x14b383(0x1b9)][_0x14b383(0x186)](_0x1b1f26=>new Re(_0x1b1f26,_0x2ffd15,_0x4f4f71,_0x8dfd94));this['_cursorShapes']=_0x15403e;}['_removeCollabCursors'](){const _0x379e9b=_0xa70a6a;this['_cursorShapes']['forEach'](_0x22d52c=>_0x22d52c[_0x379e9b(0x37e)]()),this['_cursorShapes']=[];}[_0xa70a6a(0x15a)](){const _0x345d9c=_0xa70a6a,_0x36cf85=[E[_0x345d9c(0x1f2)]['id']];this[_0x345d9c(0x39d)](this[_0x345d9c(0x324)][_0x345d9c(0x1a0)](_0x1fa85c=>{const _0x5921b1=_0x345d9c;_0x36cf85[_0x5921b1(0x321)](_0x1fa85c['id'])&&_0x1fa85c['params'][_0x5921b1(0x16c)]===this[_0x5921b1(0x158)][_0x5921b1(0x16c)]&&this['_refreshCollabCursors']();}));}[_0xa70a6a(0x3a0)](){const _0x3a6b7d=_0xa70a6a;this[_0x3a6b7d(0x39d)](a[_0x3a6b7d(0x1e9)](this['_context'][_0x3a6b7d(0x166)][_0x3a6b7d(0x34e)])[_0x3a6b7d(0x28e)]($[_0x3a6b7d(0x37a)](_0x2d1d25=>_0x2d1d25[_0x3a6b7d(0x221)]===p[_0x3a6b7d(0x37f)][_0x3a6b7d(0x257)]),$[_0x3a6b7d(0x3cc)](0x10))[_0x3a6b7d(0x236)](()=>{this['_refreshCollabCursors']();}));}};fe=Nt([X(0x1,a[_0xa70a6a(0x312)](Y[_0xa70a6a(0x376)])),X(0x2,a['Inject'](x)),X(0x3,a[_0xa70a6a(0x1fe)]),X(0x4,a[_0xa70a6a(0x312)](a[_0xa70a6a(0x21a)]))],fe);const Mt=0x1,Lt=1.5;class $e extends p[_0xa70a6a(0x1e7)]{constructor(_0x4c47a6,_0x5ddf96){const _0x45771d=_0xa70a6a;super(_0x4c47a6,_0x5ddf96),h(this,_0x45771d(0x1ea)),h(this,_0x45771d(0x21c),!0x1),h(this,'_range'),h(this,_0x45771d(0x293),''),h(this,_0x45771d(0x379),_0x45771d(0x378)),h(this,_0x45771d(0x37b)),(_0x5ddf96&&this[_0x45771d(0x2bf)](_0x5ddf96),this[_0x45771d(0x200)][_0x45771d(0x219)](()=>this[_0x45771d(0x2bf)]({'hovered':!0x0})),this[_0x45771d(0x397)]['subscribeEvent'](()=>this[_0x45771d(0x2bf)]({'hovered':!0x1})));}['setShapeProps'](_0x56f9a5){const _0x45f121=_0xa70a6a;var _0x3dcd6b,_0x2a5290,_0x369d3f,_0x3f5285,_0x2ac5b4,_0x257302;this[_0x45f121(0x1ea)]=(_0x3dcd6b=_0x56f9a5[_0x45f121(0x3a7)])!=null?_0x3dcd6b:this['_color'],this[_0x45f121(0x21c)]=(_0x2a5290=_0x56f9a5[_0x45f121(0x356)])!=null?_0x2a5290:this[_0x45f121(0x21c)],this['_range']=(_0x369d3f=_0x56f9a5[_0x45f121(0x364)])!=null?_0x369d3f:this[_0x45f121(0x193)],this[_0x45f121(0x293)]=(_0x3f5285=_0x56f9a5[_0x45f121(0x30f)])!=null?_0x3f5285:this['_name'],this[_0x45f121(0x379)]=(_0x2ac5b4=_0x56f9a5[_0x45f121(0x21b)])!=null?_0x2ac5b4:this[_0x45f121(0x379)],this[_0x45f121(0x37b)]=(_0x257302=_0x56f9a5[_0x45f121(0x265)])!=null?_0x257302:this[_0x45f121(0x37b)],this['transformByState']({'width':_0x56f9a5[_0x45f121(0x371)],'height':_0x56f9a5[_0x45f121(0x244)]});}['onMouseMove'](_0x2efed0){const _0x291ac8=_0xa70a6a,{row:_0x397ef1,column:_0x359e3c}=_0x2efed0;if(_0x397ef1>=this[_0x291ac8(0x193)][_0x291ac8(0x358)]&&_0x397ef1<=this[_0x291ac8(0x193)][_0x291ac8(0x303)]&&_0x359e3c>=this[_0x291ac8(0x193)][_0x291ac8(0x1af)]&&_0x359e3c<=this['_range']['endColumn']){this[_0x291ac8(0x2bf)]({'hovered':!0x0});return;}this[_0x291ac8(0x2bf)]({'hovered':!0x1});}[_0xa70a6a(0x1eb)](_0xe030eb){return!0x1;}[_0xa70a6a(0x399)](_0x846d30){const _0x201465=_0xa70a6a;p[_0x201465(0x3b6)][_0x201465(0x18d)](_0x846d30,{'width':this[_0x201465(0x371)],'height':this[_0x201465(0x244)],'strokeWidth':Lt,'stroke':this[_0x201465(0x1ea)],'evented':!0x1,'fill':this[_0x201465(0x37b)]}),this['_hovered']&&(_0x846d30['save'](),_0x846d30[_0x201465(0x261)](0x1,0x0,0x0,0x1,this['width'],this[_0x201465(0x379)]===_0x201465(0x259)?0x0:-W),ee['drawWith'](_0x846d30,{'text':this[_0x201465(0x293)],'color':this[_0x201465(0x1ea)]}),_0x846d30[_0x201465(0x28b)]());}}var Pt=Object[_0xa70a6a(0x33d)],wt=(_0x56b77c,_0x383521,_0x29fe6e,_0xc539c8)=>{for(var _0x39d7e5=_0xc539c8>0x1?void 0x0:_0xc539c8?Pt(_0x383521,_0x29fe6e):_0x383521,_0x2c5d59=_0x56b77c['length']-0x1,_0x57150d;_0x2c5d59>=0x0;_0x2c5d59--)(_0x57150d=_0x56b77c[_0x2c5d59])&&(_0x39d7e5=_0x57150d(_0x39d7e5)||_0x39d7e5);return _0x39d7e5;},ae=(_0x323b03,_0x38de22)=>(_0x4a511f,_0x190d03)=>_0x38de22(_0x4a511f,_0x190d03,_0x323b03);const At=0x1389;let Ie=class extends a['RxDisposable']{constructor(_0x4f231e,_0xf7c0f4,_0x486a68,_0x5799fc){const _0x3f54ea=_0xa70a6a;super(),h(this,_0x3f54ea(0x1b9),new Set()),h(this,_0x3f54ea(0x1f0),null),(this[_0x3f54ea(0x158)]=_0x4f231e,this[_0x3f54ea(0x3ba)]=_0xf7c0f4,this[_0x3f54ea(0x394)]=_0x486a68,this[_0x3f54ea(0x332)]=_0x5799fc,this[_0x3f54ea(0x373)]());}[_0xa70a6a(0x373)](){const _0x30d159=_0xa70a6a;this[_0x30d159(0x3ba)]['currentSkeleton$'][_0x30d159(0x28e)]($[_0x30d159(0x22d)](this[_0x30d159(0x2ef)]),$[_0x30d159(0x20c)](_0x2d4f79=>{const _0xd97547=_0x30d159;if(_0x2d4f79){const _0xa60205=_0x2d4f79[_0xd97547(0x25f)];return d['combineLatest'](this['_collabCursorController'][_0xd97547(0x1d8)](this['_context'][_0xd97547(0x16c)]),this[_0xd97547(0x332)]['currentTheme$'])['pipe']($[_0xd97547(0x186)](([_0x3c980c,_0x562087])=>{const _0xf5ddee=_0xd97547,_0x133c83=new Map();return _0x3c980c[_0xf5ddee(0x1d1)]((_0x2d4620,_0x438e1d)=>{const _0x2e5678=_0xf5ddee;if(_0x2d4620[_0x2e5678(0x1b4)]===_0xa60205){const _0x529bf2={..._0x2d4620};_0x529bf2[_0x2e5678(0x3a7)]=this[_0x2e5678(0x332)]['getColorFromTheme'](_0x2d4620[_0x2e5678(0x3a7)]),_0x133c83[_0x2e5678(0x2d9)](_0x438e1d,_0x529bf2);}}),{'skeleton':_0x2d4f79,'cursors':_0x133c83};}));}return d['of']({'skeleton':null,'cursors':new Map()});}))[_0x30d159(0x236)](({skeleton:_0x14f7c9,cursors:_0x338a94})=>{const _0x64f2fc=_0x30d159;this[_0x64f2fc(0x264)](),_0x14f7c9&&this[_0x64f2fc(0x209)](_0x14f7c9,_0x338a94);}),this[_0x30d159(0x3ba)]['currentSkeleton$'][_0x30d159(0x236)](_0x4596a6=>{const _0x56a3e4=_0x30d159;if(_0x4596a6==null)return;const {skeleton:_0x442202}=_0x4596a6,{scene:_0x4c3137}=this[_0x56a3e4(0x158)];_0x4c3137['onPointerMove$'][_0x56a3e4(0x219)](a[_0x56a3e4(0x2af)](_0xe18bbe=>{const _0x34b6ed=_0x56a3e4;var _0x5f4858,_0x4727d8;const {offsetX:_0x552dfd,offsetY:_0x15991f}=_0xe18bbe,{x:_0x397352,y:_0x659536}=_0x4c3137[_0x34b6ed(0x315)](p[_0x34b6ed(0x1d7)][_0x34b6ed(0x165)]([_0x552dfd,_0x15991f])),{scaleX:_0x45a652,scaleY:_0x33751e}=_0x4c3137[_0x34b6ed(0x151)](),_0x588c6a=_0x4c3137[_0x34b6ed(0x341)](p['SHEET_VIEWPORT_KEY'][_0x34b6ed(0x3c6)]),_0x442d8d=_0x4c3137[_0x34b6ed(0x185)](p['Vector2']['FromArray']([_0x397352,_0x659536]),_0x588c6a),_0x26cd8a=_0x442202['getCellPositionByOffset'](_0x552dfd,_0x15991f,_0x45a652,_0x33751e,_0x442d8d);((_0x5f4858=this[_0x34b6ed(0x1f0)])==null?void 0x0:_0x5f4858[_0x34b6ed(0x189)])===_0x26cd8a[_0x34b6ed(0x189)]&&((_0x4727d8=this[_0x34b6ed(0x1f0)])==null?void 0x0:_0x4727d8[_0x34b6ed(0x168)])===_0x26cd8a[_0x34b6ed(0x168)]||this[_0x34b6ed(0x1b9)][_0x34b6ed(0x1d1)](_0xf8d8e6=>{const _0xfa8a3b=_0x34b6ed;_0xf8d8e6[_0xfa8a3b(0x328)](_0x26cd8a);});},0x64));});}['_updateCollabCursors'](_0x3a9b46,_0x3f234a){const _0x460185=_0xa70a6a;var _0x3d9e44;const _0x26b509=(_0x3d9e44=this['_sheetSkeletonManagerService']['getCurrent']())==null?void 0x0:_0x3d9e44[_0x460185(0x3b5)];if(!_0x26b509)return;const _0x216b93=this['_getSheetObject']();if(!_0x216b93)return;this[_0x460185(0x1b9)]['forEach'](_0x5352a9=>{const _0x197dca=_0x460185;_0x5352a9[_0x197dca(0x17e)]();});const {scene:_0x34968d}=_0x216b93,_0x1a7a30=yt(Array[_0x460185(0x2c9)](_0x3f234a[_0x460185(0x359)]()))['map'](_0x1dcc9a=>{const _0x50b995=_0x460185,{color:_0x3f0930,range:_0x31befc,name:_0x45516d,selection:_0x28b080,sheetID:_0x1a5a77}=_0x1dcc9a,{startColumn:_0x190f34,startRow:_0x466ab7,endColumn:_0x443958,endRow:_0x5cf37a}=_0x31befc,_0x133502=G['getCoordByCell'](_0x466ab7,_0x190f34,_0x34968d,_0x26b509),_0x144d43=G[_0x50b995(0x2b5)](_0x5cf37a,_0x443958,_0x34968d,_0x26b509),{columnHeaderHeightAndMarginTop:_0x44fde5}=_0x26b509,{startX:_0x180c16,startY:_0x738b33}=_0x133502,{endX:_0x45589c,endY:_0x4f25b4}=_0x144d43,_0x2087b4=_0x45589c-_0x180c16,_0x2cded0=_0x4f25b4-_0x738b33,_0x5c236c={'labelPosition':_0x738b33-_0x44fde5>=W?'top':'bottom','sheetID':_0x1a5a77,'range':_0x31befc,'color':_0x3f0930,'name':_0x45516d,'selection':_0x28b080,'left':_0x180c16,'top':_0x738b33,'width':_0x2087b4,'height':_0x2cded0,'evented':!0x1,'zIndex':At};return new $e(_0x45516d,_0x5c236c);});_0x34968d[_0x460185(0x367)](_0x1a7a30,Mt),this[_0x460185(0x1b9)]=new Set(_0x1a7a30);}['_removeCollabCursors'](){const _0x49f32d=_0xa70a6a;var _0x30e9dd;(_0x30e9dd=this[_0x49f32d(0x1b9)])==null||_0x30e9dd[_0x49f32d(0x1d1)](_0x3d0254=>_0x3d0254[_0x49f32d(0x37e)]());}[_0xa70a6a(0x3b7)](){const _0x4f6796=_0xa70a6a;return G[_0x4f6796(0x2b0)](this[_0x4f6796(0x158)][_0x4f6796(0x1b6)],this[_0x4f6796(0x158)]);}};Ie=wt([ae(0x1,a['Inject'](G[_0xa70a6a(0x2d5)])),ae(0x2,a['Inject'](x)),ae(0x3,a[_0xa70a6a(0x312)](a[_0xa70a6a(0x21a)]))],Ie);function yt(_0x1e61ff){const _0x253b9f=_0xa70a6a,_0x5cda1b=new Map();return _0x1e61ff[_0x253b9f(0x1d1)](_0x358714=>{const _0x50ed3f=_0x253b9f;if(_0x5cda1b['has'](_0x358714[_0x50ed3f(0x31d)])){const _0x220961=_0x5cda1b['get'](_0x358714['selection']);_0x220961[_0x50ed3f(0x30f)]+=',\x20'+_0x358714[_0x50ed3f(0x30f)];}else _0x5cda1b[_0x50ed3f(0x2d9)](_0x358714[_0x50ed3f(0x31d)],_0x358714);}),Array[_0x253b9f(0x2c9)](_0x5cda1b[_0x253b9f(0x359)]());}var $t=Object[_0xa70a6a(0x33d)],xt=(_0x2c51e8,_0x3daff8,_0x17b3be,_0x4ef3f1)=>{const _0x10bd18=_0xa70a6a;for(var _0x2eeca0=_0x4ef3f1>0x1?void 0x0:_0x4ef3f1?$t(_0x3daff8,_0x17b3be):_0x3daff8,_0x4953b9=_0x2c51e8[_0x10bd18(0x154)]-0x1,_0x23ad95;_0x4953b9>=0x0;_0x4953b9--)(_0x23ad95=_0x2c51e8[_0x4953b9])&&(_0x2eeca0=_0x23ad95(_0x2eeca0)||_0x2eeca0);return _0x2eeca0;},y=(_0x1c7af5,_0x102c1f)=>(_0x1c138a,_0x271065)=>_0x102c1f(_0x1c138a,_0x271065,_0x1c7af5);let q=class extends a[_0xa70a6a(0x270)]{constructor(_0x15c812,_0xd0031d,_0x18b70b,_0x2c2650,_0x150e3d,_0x4ea12c){const _0x2a9cb2=_0xa70a6a;super(),this[_0x2a9cb2(0x2ed)]=_0x15c812,this['_localCacheService']=_0xd0031d,this[_0x2a9cb2(0x28a)]=_0x18b70b,this[_0x2a9cb2(0x226)]=_0x2c2650,this[_0x2a9cb2(0x317)]=_0x150e3d,this['_localeService']=_0x4ea12c,this[_0x2a9cb2(0x220)](),this[_0x2a9cb2(0x197)]();}[_0xa70a6a(0x220)](){const _0x371e5b=_0xa70a6a;this['disposeWithMe'](this[_0x371e5b(0x2ed)][_0x371e5b(0x2fe)](()=>{const _0x46d2c8=_0x371e5b;if(this[_0x46d2c8(0x1ff)][_0x46d2c8(0x32f)][_0x46d2c8(0x237)])return this['_localeService']['t']('collaboration-client.offline-data-not-saved');}));}[_0xa70a6a(0x197)](){const _0x1917d9=_0xa70a6a;this[_0x1917d9(0x39d)](this[_0x1917d9(0x28a)][_0x1917d9(0x169)][_0x1917d9(0x236)](_0x398508=>{const _0x4175b3=_0x1917d9;_0x398508['id']===u[_0x4175b3(0x1c2)]['OTHER_CLIENT_EDITING']&&this['_messageService']['show']({'type':D['MessageType']['Warning'],'content':this[_0x4175b3(0x34a)]['t']('collaboration.single-unit.warning')}),_0x398508['id']===u[_0x4175b3(0x1c2)]['CLOSE_ROOM']&&this[_0x4175b3(0x226)][_0x4175b3(0x31a)]({'type':D['MessageType'][_0x4175b3(0x2c3)],'content':this[_0x4175b3(0x34a)]['t']('collaboration.closeRoom')}),_0x398508['id']===u[_0x4175b3(0x1c2)][_0x4175b3(0x369)]&&this['_notificationService'][_0x4175b3(0x31a)]({'title':this[_0x4175b3(0x34a)]['t'](_0x4175b3(0x26d)),'content':this[_0x4175b3(0x34a)]['t'](_0x4175b3(0x29a)),'type':_0x4175b3(0x1c9),'duration':0x0}),_0x398508['id']===u[_0x4175b3(0x1c2)]['CONFLICT']&&this[_0x4175b3(0x226)][_0x4175b3(0x31a)]({'type':D[_0x4175b3(0x27a)]['Error'],'content':this[_0x4175b3(0x34a)]['t'](_0x4175b3(0x2cb))+'('+_0x398508[_0x4175b3(0x1de)]+')'}),_0x398508['id']===u[_0x4175b3(0x1c2)]['JOIN_ROOM_FAILED']&&this['_messageService'][_0x4175b3(0x31a)]({'type':D[_0x4175b3(0x27a)][_0x4175b3(0x2c3)],'content':this['_localeService']['t'](_0x398508['data']||'')}),_0x398508['id']===u[_0x4175b3(0x1c2)][_0x4175b3(0x30b)]&&this[_0x4175b3(0x226)][_0x4175b3(0x31a)]({'type':D['MessageType']['Warning'],'content':this['_localeService']['t'](_0x4175b3(0x335))}),_0x398508['id']===u[_0x4175b3(0x1c2)][_0x4175b3(0x1c1)]&&this[_0x4175b3(0x226)][_0x4175b3(0x31a)]({'type':D['MessageType'][_0x4175b3(0x23c)],'content':this['_localeService']['t'](_0x4175b3(0x305))}),_0x398508['id']===u[_0x4175b3(0x1c2)]['SUBMIT_CHANGESET_TIMEOUT']&&this[_0x4175b3(0x226)]['show']({'type':D['MessageType']['Error'],'content':this['_localeService']['t'](_0x4175b3(0x249))});}));}};q=xt([y(0x0,O[_0xa70a6a(0x2ce)]),y(0x1,u[_0xa70a6a(0x2b4)]),y(0x2,a['Inject'](u[_0xa70a6a(0x322)])),y(0x3,O['IMessageService']),y(0x4,O[_0xa70a6a(0x2d4)]),y(0x5,a[_0xa70a6a(0x312)](a[_0xa70a6a(0x173)]))],q);const Bt='collaboration-client-ui.config',De={};var jt=Object[_0xa70a6a(0x33d)],kt=(_0x3ce9cb,_0x5b718a,_0x2fc69f,_0x1f244)=>{const _0x19c106=_0xa70a6a;for(var _0x5f4e45=_0x1f244>0x1?void 0x0:_0x1f244?jt(_0x5b718a,_0x2fc69f):_0x5b718a,_0x5287f0=_0x3ce9cb[_0x19c106(0x154)]-0x1,_0xdaac3c;_0x5287f0>=0x0;_0x5287f0--)(_0xdaac3c=_0x3ce9cb[_0x5287f0])&&(_0x5f4e45=_0xdaac3c(_0x5f4e45)||_0x5f4e45);return _0x5f4e45;},Ue=(_0x77fd64,_0x26dbf9)=>(_0x2a5abe,_0x116deb)=>_0x26dbf9(_0x2a5abe,_0x116deb,_0x77fd64);let z=class{constructor(_0x1334d0,_0x55648d){const _0x2fdb32=_0xa70a6a;this[_0x2fdb32(0x374)]=_0x1334d0,this['_renderManagerService']=_0x55648d;}[_0xa70a6a(0x174)](_0x474911){this['_transformUndoRedoStack'](_0x474911),this['_transformPreviousActiveRange'](_0x474911);}['transformRemoteChangeset'](_0x5e03de){const _0x1b90dd=_0xa70a6a,{unitID:_0x1b32fd}=_0x5e03de,_0x295459=this['_renderManagerService']['getRenderById'](_0x1b32fd)[_0x1b90dd(0x319)](E['DocIMEInputManagerService']),{redoCache:_0x39cea0}=_0x295459[_0x1b90dd(0x311)]();if(_0x39cea0[_0x1b90dd(0x154)]===0x0)return _0x5e03de;let _0x2ffb7d=a[_0x1b90dd(0x31f)][_0x1b90dd(0x15c)](_0x5e03de['mutations'][0x0]);for(let _0x2a5a30=0x0;_0x2a5a30<_0x39cea0[_0x1b90dd(0x154)];_0x2a5a30++){const _0x17842d={'id':_0x1b90dd(0x2ad),'params':{..._0x39cea0[_0x2a5a30]}},_0x58e5f7=this['_transformService'][_0x1b90dd(0x1ed)](_0x2ffb7d,_0x17842d,!0x1);if(m[_0x1b90dd(0x238)](_0x58e5f7))throw _0x58e5f7[_0x1b90dd(0x1c9)];_0x2ffb7d=_0x58e5f7[_0x1b90dd(0x1bc)];}return{...a['Tools'][_0x1b90dd(0x15c)](_0x5e03de),'mutations':[_0x2ffb7d]};}['_transformUndoRedoStack'](_0x402c59){const _0x391eaf=_0xa70a6a,{unitID:_0x2e2a3b}=_0x402c59,_0x2d2dfc=this[_0x391eaf(0x20b)][_0x391eaf(0x39a)](_0x2e2a3b)[_0x391eaf(0x319)](E['DocIMEInputManagerService']),{undoCache:_0x1e227a,redoCache:_0x5f55f5}=_0x2d2dfc['getUndoRedoMutationParamsCache']();if(_0x1e227a[_0x391eaf(0x154)]===0x0||_0x5f55f5[_0x391eaf(0x154)]===0x0)return;const _0x83078d=[],_0xfccc46=[];let _0x31c1cf=a['Tools']['deepClone'](_0x402c59[_0x391eaf(0x2bc)][0x0]),_0x95c63f=a[_0x391eaf(0x31f)]['deepClone'](_0x402c59['mutations'][0x0]);for(let _0x34c203=_0x1e227a[_0x391eaf(0x154)]-0x1;_0x34c203>=0x0;_0x34c203--){const _0x1ed8c9={'id':_0x391eaf(0x2ad),'params':{..._0x1e227a[_0x34c203]}},_0x30a647={'id':_0x391eaf(0x2ad),'params':{..._0x5f55f5[_0x34c203]}},_0x2a7041=this[_0x391eaf(0x374)][_0x391eaf(0x1ed)](_0x31c1cf,_0x1ed8c9,!0x1),_0x39739e=this[_0x391eaf(0x374)][_0x391eaf(0x1ed)](_0x95c63f,_0x30a647,!0x1);if(m[_0x391eaf(0x238)](_0x2a7041))throw _0x2a7041['error'];if(m['isTransformMutationFailure'](_0x39739e))throw _0x39739e[_0x391eaf(0x1c9)];_0x83078d['unshift'](_0x2a7041[_0x391eaf(0x33f)][_0x391eaf(0x1f3)]),_0xfccc46[_0x391eaf(0x338)](_0x39739e[_0x391eaf(0x33f)][_0x391eaf(0x1f3)]),_0x31c1cf=_0x2a7041[_0x391eaf(0x1bc)],_0x95c63f=_0x39739e[_0x391eaf(0x1bc)];}_0x2d2dfc[_0x391eaf(0x247)]({'undoCache':_0x83078d,'redoCache':_0xfccc46});}[_0xa70a6a(0x1b1)](_0x2470ba){const _0x427ad2=_0xa70a6a,{unitID:_0x364fb5}=_0x2470ba,_0x3b0e67=this['_renderManagerService']['getRenderById'](_0x364fb5)[_0x427ad2(0x319)](E[_0x427ad2(0x253)]),_0xa063f5=_0x3b0e67[_0x427ad2(0x3c5)]();if(_0xa063f5==null)return;const _0x32574d=[{'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x2470ba[_0x427ad2(0x3d1)],'actions':null,'textRanges':[_0xa063f5]}}],_0x54ac6b=this[_0x427ad2(0x374)][_0x427ad2(0x3c4)](_0x2470ba,_0x32574d);if(!m[_0x427ad2(0x34d)](_0x54ac6b))throw _0x54ac6b[_0x427ad2(0x1c9)];const _0x28b676=_0x54ac6b[_0x427ad2(0x33f)][0x0][_0x427ad2(0x1f3)][_0x427ad2(0x2df)];Array[_0x427ad2(0x1d5)](_0x28b676)&&_0x28b676['length']&&_0x3b0e67[_0x427ad2(0x1be)](_0x28b676[0x0]);}};z=kt([Ue(0x0,m['ITransformService']),Ue(0x1,p[_0xa70a6a(0x2ab)])],z);var Ft=Object['getOwnPropertyDescriptor'],Ht=(_0x399cc3,_0x1e7c9b,_0x341e9f,_0x2582da)=>{const _0x431ad4=_0xa70a6a;for(var _0x13b149=_0x2582da>0x1?void 0x0:_0x2582da?Ft(_0x1e7c9b,_0x341e9f):_0x1e7c9b,_0x5d31d3=_0x399cc3[_0x431ad4(0x154)]-0x1,_0x3d79ed;_0x5d31d3>=0x0;_0x5d31d3--)(_0x3d79ed=_0x399cc3[_0x5d31d3])&&(_0x13b149=_0x3d79ed(_0x13b149)||_0x13b149);return _0x13b149;},ce=(_0x173da5,_0x4d778c)=>(_0x4d1775,_0x1daa54)=>_0x4d778c(_0x4d1775,_0x1daa54,_0x173da5);let J=class{constructor(_0x1a6c6f,_0x459393,_0x54da54){const _0x5d2660=_0xa70a6a;this['_injector']=_0x1a6c6f,this[_0x5d2660(0x374)]=_0x459393,this['_docStateChangeManagerService']=_0x54da54;}[_0xa70a6a(0x1d0)](_0x215333){const _0x237685=_0xa70a6a;this[_0x237685(0x37d)](_0x215333);}['transformRemoteChangeset'](_0xc5651b){const _0x692926=_0xa70a6a,{unitID:_0x4adc31}=_0xc5651b,{collaboration:_0xf403b0}=this[_0x692926(0x23d)][_0x692926(0x385)](_0x4adc31);if(_0xf403b0[_0x692926(0x154)]===0x0)return _0xc5651b;let _0x30817a=a[_0x692926(0x31f)][_0x692926(0x15c)](_0xc5651b[_0x692926(0x2bc)][0x0]);for(let _0x5e638b=0x0;_0x5e638b<_0xf403b0[_0x692926(0x154)];_0x5e638b++){const _0x256016={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0xf403b0[_0x5e638b][_0x692926(0x16c)],..._0xf403b0[_0x5e638b][_0x692926(0x29f)]}},_0x5af13e=this['_transformService'][_0x692926(0x1ed)](_0x30817a,_0x256016,!0x1);if(m[_0x692926(0x238)](_0x5af13e))throw _0x5af13e['error'];_0x30817a=_0x5af13e[_0x692926(0x1bc)];}return{...a['Tools'][_0x692926(0x15c)](_0xc5651b),'mutations':[_0x30817a]};}[_0xa70a6a(0x37d)](_0x1e61e2){const _0x46deef=_0xa70a6a,{unitID:_0x219898}=_0x1e61e2,{history:_0x486700,collaboration:_0x54ea7c}=this[_0x46deef(0x23d)][_0x46deef(0x385)](_0x219898);if(_0x486700[_0x46deef(0x154)]===0x0&&_0x54ea7c[_0x46deef(0x154)]===0x0)return;const _0x140b6f=[],_0x2b8b6c=[];let _0xb19775=a[_0x46deef(0x31f)]['deepClone'](_0x1e61e2[_0x46deef(0x2bc)][0x0]),_0x463c88=a['Tools'][_0x46deef(0x15c)](_0x1e61e2[_0x46deef(0x2bc)][0x0]);for(let _0x363ed2=_0x486700[_0x46deef(0x154)]-0x1;_0x363ed2>=0x0;_0x363ed2--){const _0x44c0f2={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x486700[_0x363ed2][_0x46deef(0x16c)],..._0x486700[_0x363ed2][_0x46deef(0x31e)]}},_0x32f888={'id':_0x46deef(0x2ad),'params':{'unitId':_0x486700[_0x363ed2][_0x46deef(0x16c)],..._0x486700[_0x363ed2][_0x46deef(0x29f)]}},_0x399b01=this['_transformService'][_0x46deef(0x1ed)](_0xb19775,_0x44c0f2,!0x1),_0x1395b0=this['_transformService']['transformMutation'](_0x463c88,_0x32f888,!0x1);if(m[_0x46deef(0x238)](_0x399b01))throw _0x399b01[_0x46deef(0x1c9)];if(m[_0x46deef(0x238)](_0x1395b0))throw _0x1395b0[_0x46deef(0x1c9)];_0x140b6f[_0x46deef(0x338)]({..._0x486700[_0x363ed2],'undoState':_0x399b01['m2Prime']['params'],'redoState':_0x1395b0[_0x46deef(0x33f)][_0x46deef(0x1f3)]}),_0xb19775=_0x399b01[_0x46deef(0x1bc)],_0x463c88=_0x1395b0[_0x46deef(0x1bc)];}_0xb19775=a[_0x46deef(0x31f)]['deepClone'](_0x1e61e2[_0x46deef(0x2bc)][0x0]),_0x463c88=a[_0x46deef(0x31f)][_0x46deef(0x15c)](_0x1e61e2[_0x46deef(0x2bc)][0x0]);for(let _0x4f53bf=_0x54ea7c[_0x46deef(0x154)]-0x1;_0x4f53bf>=0x0;_0x4f53bf--){const _0x554b30={'id':_0x46deef(0x2ad),'params':{'unitId':_0x54ea7c[_0x4f53bf][_0x46deef(0x16c)],..._0x54ea7c[_0x4f53bf][_0x46deef(0x31e)]}},_0x2c051a={'id':_0x46deef(0x2ad),'params':{'unitId':_0x54ea7c[_0x4f53bf]['unitId'],..._0x54ea7c[_0x4f53bf]['redoState']}},_0x4fc462=this[_0x46deef(0x374)][_0x46deef(0x1ed)](_0xb19775,_0x554b30,!0x1),_0x5ca698=this[_0x46deef(0x374)][_0x46deef(0x1ed)](_0x463c88,_0x2c051a,!0x1);if(m['isTransformMutationFailure'](_0x4fc462))throw _0x4fc462[_0x46deef(0x1c9)];if(m[_0x46deef(0x238)](_0x5ca698))throw _0x5ca698['error'];_0x2b8b6c[_0x46deef(0x338)]({..._0x54ea7c[_0x4f53bf],'undoState':_0x4fc462[_0x46deef(0x33f)]['params'],'redoState':_0x5ca698[_0x46deef(0x33f)][_0x46deef(0x1f3)]}),_0xb19775=_0x4fc462[_0x46deef(0x1bc)],_0x463c88=_0x5ca698[_0x46deef(0x1bc)];}this[_0x46deef(0x23d)][_0x46deef(0x190)](_0x219898,{'history':_0x140b6f,'collaboration':_0x2b8b6c});}};J=Ht([ce(0x0,a[_0xa70a6a(0x312)](a[_0xa70a6a(0x262)])),ce(0x1,m[_0xa70a6a(0x1ae)]),ce(0x2,a['Inject'](E[_0xa70a6a(0x1a3)]))],J);var Yt=Object['getOwnPropertyDescriptor'],Wt=(_0x35a077,_0x8c3565,_0x271091,_0x57a82d)=>{const _0xbc4e4e=_0xa70a6a;for(var _0x51a215=_0x57a82d>0x1?void 0x0:_0x57a82d?Yt(_0x8c3565,_0x271091):_0x8c3565,_0xe75627=_0x35a077[_0xbc4e4e(0x154)]-0x1,_0x3f7539;_0xe75627>=0x0;_0xe75627--)(_0x3f7539=_0x35a077[_0xe75627])&&(_0x51a215=_0x3f7539(_0x51a215)||_0x51a215);return _0x51a215;},Ne=(_0x357712,_0x567fa2)=>(_0x5a9d82,_0x57f6aa)=>_0x567fa2(_0x5a9d82,_0x57f6aa,_0x357712);let Z=class{constructor(_0x50f4e6,_0x3a7bc){const _0x523bf1=_0xa70a6a;this[_0x523bf1(0x1d9)]=_0x50f4e6,this['_transformService']=_0x3a7bc;}[_0xa70a6a(0x188)](_0x41f613){const _0x19fb90=_0xa70a6a;var _0x94266a;const _0x159f5d=this['_injector'][_0x19fb90(0x258)](Y['DocSelectionManagerService']),_0x54f690=(_0x94266a=_0x159f5d['getDocRanges']())!=null?_0x94266a:[];if(_0x54f690[_0x19fb90(0x154)]===0x0)return;const _0x577ca3=_0x41f613['unitID'],_0x4b692e=[{'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x577ca3,'actions':null,'textRanges':_0x54f690}}],_0x30f441=this[_0x19fb90(0x374)][_0x19fb90(0x3c4)](_0x41f613,_0x4b692e);if(!m[_0x19fb90(0x34d)](_0x30f441))throw _0x30f441[_0x19fb90(0x1c9)];const _0x371ed2=_0x30f441[_0x19fb90(0x33f)][0x0][_0x19fb90(0x1f3)][_0x19fb90(0x2df)];Array[_0x19fb90(0x1d5)](_0x371ed2)&&_0x371ed2[_0x19fb90(0x154)]&&_0x159f5d[_0x19fb90(0x377)](_0x371ed2,{'unitId':_0x577ca3,'subUnitId':_0x577ca3},!0x1);}};Z=Wt([Ne(0x0,a[_0xa70a6a(0x312)](a['Injector'])),Ne(0x1,m[_0xa70a6a(0x1ae)])],Z);var Vt=Object[_0xa70a6a(0x33d)],Xt=(_0x280c36,_0x411f62,_0x377325,_0x46ec53)=>{const _0x2dc656=_0xa70a6a;for(var _0x554298=_0x46ec53>0x1?void 0x0:_0x46ec53?Vt(_0x411f62,_0x377325):_0x411f62,_0x568443=_0x280c36[_0x2dc656(0x154)]-0x1,_0x253134;_0x568443>=0x0;_0x568443--)(_0x253134=_0x280c36[_0x568443])&&(_0x554298=_0x253134(_0x554298)||_0x554298);return _0x554298;},N=(_0x5b116f,_0x325c93)=>(_0x43a952,_0x2f974d)=>_0x325c93(_0x43a952,_0x2f974d,_0x5b116f);let Q=class extends a[_0xa70a6a(0x270)]{constructor(_0x1fc17f,_0x62c3e2,_0x266d08,_0x54186c,_0x6a6d85,_0x32b2e3,_0x429d1e,_0x299584){const _0x2f75f2=_0xa70a6a;super(),h(this,_0x2f75f2(0x33b),new d['BehaviorSubject'](u['CollaborationStatus'][_0x2f75f2(0x1e0)])),(this[_0x2f75f2(0x23d)]=_0x1fc17f,this[_0x2f75f2(0x152)]=_0x62c3e2,this[_0x2f75f2(0x23f)]=_0x266d08,this[_0x2f75f2(0x296)]=_0x54186c,this[_0x2f75f2(0x2fb)]=_0x6a6d85,this[_0x2f75f2(0x1d6)]=_0x32b2e3,this['_messageService']=_0x429d1e,this[_0x2f75f2(0x34a)]=_0x299584,this[_0x2f75f2(0x2e2)]());}['_initEntityListener'](){const _0x1e0aca=_0xa70a6a;this[_0x1e0aca(0x39d)](this[_0x1e0aca(0x152)][_0x1e0aca(0x231)][_0x1e0aca(0x236)](_0x4d0283=>{const _0x2f072f=_0x1e0aca,_0xdc2452=this[_0x2f072f(0x23d)]['docStateChange$'][_0x2f072f(0x236)](_0x3a4573=>{const _0x348f03=_0x2f072f;if(_0x3a4573==null)return;const {unitId:_0x2c380b,redoState:_0x5ec4a1,commandId:_0x1b5354}=_0x3a4573;if(_0x2c380b!==_0x4d0283[_0x348f03(0x3d1)])return;const _0x4c263b={'id':_0x1b5354,'type':a[_0x348f03(0x3a5)][_0x348f03(0x252)],'params':{'unitId':_0x2c380b,'actions':_0x5ec4a1['actions'],'textRanges':null}};_0x4d0283['onLocalMutation'](_0x4c263b);});if(_0x4d0283[_0x2f072f(0x39d)](_0xdc2452),_0x4d0283 instanceof u[_0x2f072f(0x2f2)]){const _0x5585b0={'onTransformIME':_0x417bad=>this['_docTransformIMECacheService'][_0x2f072f(0x174)](_0x417bad),'onTransformState':_0x34b4cf=>this[_0x2f072f(0x296)][_0x2f072f(0x1d0)](_0x34b4cf),'onTransformSelections':_0x2ac6f5=>this[_0x2f072f(0x2fb)]['transformSelections'](_0x2ac6f5),'onSyncEditingCollabCursor':_0x27d935=>this[_0x2f072f(0x1d6)][_0x2f072f(0x18b)](_0x27d935),'onTransformRemoteChangesetByIMECache':_0x5527e9=>this[_0x2f072f(0x23f)][_0x2f072f(0x1c0)](_0x5527e9),'onTransformRemoteChangesetByStateCache':_0x31fde4=>this[_0x2f072f(0x296)][_0x2f072f(0x1c0)](_0x31fde4)};_0x4d0283['addHandlerCallback'](_0x5585b0);}}));}};Q=Xt([N(0x0,a[_0xa70a6a(0x312)](E[_0xa70a6a(0x1a3)])),N(0x1,a[_0xa70a6a(0x312)](u[_0xa70a6a(0x16f)])),N(0x2,a['Inject'](z)),N(0x3,a[_0xa70a6a(0x312)](J)),N(0x4,a['Inject'](Z)),N(0x5,a[_0xa70a6a(0x312)](pe)),N(0x6,O['IMessageService']),N(0x7,a[_0xa70a6a(0x312)](a[_0xa70a6a(0x173)]))],Q);var Gt=Object[_0xa70a6a(0x33d)],Kt=(_0x50e73c,_0xd23119,_0x4a8fb8,_0x17d44f)=>{for(var _0xcaf8c9=_0x17d44f>0x1?void 0x0:_0x17d44f?Gt(_0xd23119,_0x4a8fb8):_0xd23119,_0x2c5620=_0x50e73c['length']-0x1,_0x53ced2;_0x2c5620>=0x0;_0x2c5620--)(_0x53ced2=_0x50e73c[_0x2c5620])&&(_0xcaf8c9=_0x53ced2(_0xcaf8c9)||_0xcaf8c9);return _0xcaf8c9;},le=(_0x2c25f1,_0x5cfeab)=>(_0x1a5cc3,_0x4d6460)=>_0x5cfeab(_0x1a5cc3,_0x4d6460,_0x2c25f1);let ve=class extends a[_0xa70a6a(0x270)]{constructor(_0x5efafb,_0x106903,_0x412285){const _0x1bc910=_0xa70a6a;super(),h(this,_0x1bc910(0x172),new Map()),h(this,_0x1bc910(0x363),new Map()),h(this,_0x1bc910(0x195),!0x1),(this[_0x1bc910(0x225)]=_0x5efafb,this['_localStorageService']=_0x106903,this[_0x1bc910(0x30d)]=_0x412285);}[_0xa70a6a(0x2ec)](){this['_disabled']=!0x0;}[_0xa70a6a(0x18e)](){const _0x1b68a5=_0xa70a6a;this[_0x1b68a5(0x195)]=!0x1;}get[_0xa70a6a(0x32f)](){const _0x3ee3ba=_0xa70a6a;return this[_0x3ee3ba(0x363)];}[_0xa70a6a(0x37e)](){const _0xcd1651=_0xa70a6a;this['exhaustSavingTask']()[_0xcd1651(0x1d4)](()=>super[_0xcd1651(0x37e)]());}async[_0xa70a6a(0x24b)](_0x1f0cd0){const _0x5a9949=_0xa70a6a;return this[_0x5a9949(0x195)]?null:this[_0x5a9949(0x1cf)]['getItem'](u[_0x5a9949(0x325)](_0x1f0cd0));}async['saveOfflineData'](_0x37981b,_0x11f37d){const _0x128622=_0xa70a6a;return!!this['_localStorageService'][_0x128622(0x294)](_0x37981b,_0x11f37d);}[_0xa70a6a(0x28d)](_0x106784,_0x5d95c5,_0x459af5,_0x40bd8c){const _0x214ac4=_0xa70a6a,_0xad7788=this[_0x214ac4(0x30d)][_0x214ac4(0x2d6)](_0x106784);this[_0x214ac4(0x172)][_0x214ac4(0x2d9)](_0x106784,{'unitID':_0x106784,'type':_0x5d95c5,'awaitingChangeset':_0x459af5,'mutations':_0x40bd8c,'rev':_0xad7788}),this[_0x214ac4(0x363)][_0x214ac4(0x2b6)](_0x106784)||this[_0x214ac4(0x227)](_0x106784);}[_0xa70a6a(0x227)](_0x310a6c){const _0x457f32=_0xa70a6a,_0x2c756a=this[_0x457f32(0x2a3)]();_0x2c756a===0x0?this['_saveCache'](_0x310a6c):this[_0x457f32(0x363)]['set'](_0x310a6c,setTimeout(()=>this['_saveCache'](_0x310a6c),_0x2c756a));}[_0xa70a6a(0x2a3)](){const _0xd50a7f=_0xa70a6a;var _0x34e822;return(_0x34e822=this[_0xd50a7f(0x225)][_0xd50a7f(0x342)](u['LOCAL_CACHE_INTERVAL_KEY']))!=null?_0x34e822:u[_0xd50a7f(0x35a)];}['_saveCache'](_0x58c6f5){const _0x4b11f1=_0xa70a6a,_0x1c4c0c=this[_0x4b11f1(0x363)][_0x4b11f1(0x258)](_0x58c6f5);return _0x1c4c0c!==void 0x0&&window['clearTimeout'](_0x1c4c0c),this[_0x4b11f1(0x1cf)][_0x4b11f1(0x294)](u[_0x4b11f1(0x325)](_0x58c6f5),this[_0x4b11f1(0x172)]['get'](_0x58c6f5))['then'](()=>this['_saveTaskMap'][_0x4b11f1(0x15d)](_0x58c6f5));}async[_0xa70a6a(0x355)](){const _0x514df8=_0xa70a6a,_0x8251ea=[];this[_0x514df8(0x363)]['forEach']((_0x5df08f,_0x1d81f3)=>{const _0x282047=_0x514df8;window['clearTimeout'](_0x5df08f),_0x8251ea['push'](this['_saveCache'](_0x1d81f3)[_0x282047(0x1d4)](()=>{const _0x3f5d17=_0x282047;this[_0x3f5d17(0x363)][_0x3f5d17(0x15d)](_0x1d81f3);}));}),await Promise[_0x514df8(0x2d3)](_0x8251ea);}};ve=Kt([le(0x0,a[_0xa70a6a(0x33c)]),le(0x1,a['ILocalStorageService']),le(0x2,a[_0xa70a6a(0x312)](m[_0xa70a6a(0x282)]))],ve);class xe extends a[_0xa70a6a(0x306)]{constructor(){const _0x3f8e77=_0xa70a6a;super(),h(this,_0x3f8e77(0x161)),this[_0x3f8e77(0x161)]=d[_0x3f8e77(0x1e4)](window,_0x3f8e77(0x240))[_0x3f8e77(0x28e)](d['takeUntil'](this[_0x3f8e77(0x2ef)]),d[_0x3f8e77(0x1cb)](0x1),d[_0x3f8e77(0x2e1)](void 0x0));}[_0xa70a6a(0x336)](_0x5e625d,_0x3e42c8,_0x1eea14=!0x1){const _0x1ff310=_0xa70a6a,_0x2bff34=new URL(window[_0x1ff310(0x329)][_0x1ff310(0x30c)]);_0x2bff34[_0x1ff310(0x2ea)][_0x1ff310(0x2d9)](_0x5e625d,_0x3e42c8),_0x1eea14?window[_0x1ff310(0x1ad)][_0x1ff310(0x2b9)]('','',_0x2bff34['toString']()):window[_0x1ff310(0x1ad)][_0x1ff310(0x2ee)]('','',_0x2bff34[_0x1ff310(0x2a4)]());}[_0xa70a6a(0x283)](_0x463700,_0x32266c=!0x1){const _0x3f34de=_0xa70a6a,_0x136e28=new URL(window[_0x3f34de(0x329)][_0x3f34de(0x30c)]);_0x136e28[_0x3f34de(0x2ea)][_0x3f34de(0x15d)](_0x463700),_0x32266c?window[_0x3f34de(0x1ad)][_0x3f34de(0x2b9)]('','',_0x136e28[_0x3f34de(0x2a4)]()):window[_0x3f34de(0x1ad)][_0x3f34de(0x2ee)]('','',_0x136e28[_0x3f34de(0x2a4)]());}[_0xa70a6a(0x1cd)](_0x4912ca){const _0x166f57=_0xa70a6a;var _0x1cdf56;return(_0x1cdf56=new URL(window[_0x166f57(0x329)][_0x166f57(0x30c)])[_0x166f57(0x2ea)][_0x166f57(0x258)](_0x4912ca))!=null?_0x1cdf56:void 0x0;}}var qt=Object[_0xa70a6a(0x1ba)],zt=Object['getOwnPropertyDescriptor'],Jt=(_0x2158e1,_0x2688ce,_0x40b671)=>_0x2688ce in _0x2158e1?qt(_0x2158e1,_0x2688ce,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x40b671}):_0x2158e1[_0x2688ce]=_0x40b671,Zt=(_0x25121f,_0x324248,_0x23cb88,_0x56722b)=>{const _0x53fdad=_0xa70a6a;for(var _0x909db6=_0x56722b>0x1?void 0x0:_0x56722b?zt(_0x324248,_0x23cb88):_0x324248,_0x1b10d1=_0x25121f[_0x53fdad(0x154)]-0x1,_0x1f4fee;_0x1b10d1>=0x0;_0x1b10d1--)(_0x1f4fee=_0x25121f[_0x1b10d1])&&(_0x909db6=_0x1f4fee(_0x909db6)||_0x909db6);return _0x909db6;},_e=(_0x133822,_0x442d76)=>(_0x4bc063,_0x1e579d)=>_0x442d76(_0x4bc063,_0x1e579d,_0x133822),Qt=(_0x3da56a,_0x3de909,_0x1dc790)=>Jt(_0x3da56a,_0x3de909+'',_0x1dc790);const es=_0xa70a6a(0x33a);exports['UniverCollaborationClientUIPlugin']=class extends a[_0xa70a6a(0x2d0)]{constructor(_0x5714dd=De,_0x18721d,_0x58e017,_0x539dad){const _0x2f015c=_0xa70a6a;super(),this[_0x2f015c(0x34b)]=_0x5714dd,this[_0x2f015c(0x20b)]=_0x18721d,this['_injector']=_0x58e017,this[_0x2f015c(0x225)]=_0x539dad;const {..._0x63fbda}=a[_0x2f015c(0x1ee)]({},De,this[_0x2f015c(0x34b)]);this[_0x2f015c(0x225)][_0x2f015c(0x243)](Bt,_0x63fbda);}[_0xa70a6a(0x251)](){const _0x26a540=_0xa70a6a;this[_0x26a540(0x36f)](),this['_initDependencies']();}[_0xa70a6a(0x182)](){const _0x5d3d35=_0xa70a6a;this[_0x5d3d35(0x347)]();}[_0xa70a6a(0x36f)](){const _0x463c16=_0xa70a6a;var _0x5ed2b7;const _0x3a203a=[[Ce],[Z],[z],[J],[pe],[me,{'useClass':xe}],[K[_0x463c16(0x1a5)],{'useClass':K[_0x463c16(0x3b9)]}],[u[_0x463c16(0x2b4)],{'useClass':ve}],[exports['DesktopCollaborationStatusDisplayController']],[Q],[q],[x],[ue],[exports[_0x463c16(0x2c4)]]];a['registerDependencies'](this[_0x463c16(0x1d9)],a[_0x463c16(0x2be)](_0x3a203a,(_0x5ed2b7=this[_0x463c16(0x34b)])==null?void 0x0:_0x5ed2b7[_0x463c16(0x3bd)]));}[_0xa70a6a(0x347)](){const _0x2ee86a=_0xa70a6a;this[_0x2ee86a(0x39d)](this[_0x2ee86a(0x20b)][_0x2ee86a(0x3cb)](a[_0x2ee86a(0x3be)][_0x2ee86a(0x316)],[fe])),this[_0x2ee86a(0x39d)](this[_0x2ee86a(0x20b)][_0x2ee86a(0x3cb)](a[_0x2ee86a(0x3be)][_0x2ee86a(0x1c8)],[Ie]));}[_0xa70a6a(0x3c8)](){const _0x823372=_0xa70a6a;a[_0x823372(0x389)](this['_injector'],[[x],[exports[_0x823372(0x33e)]],[Q],[q],[exports[_0x823372(0x2c4)]]]);}},Qt(exports[_0xa70a6a(0x361)],_0xa70a6a(0x159),es),exports['UniverCollaborationClientUIPlugin']=Zt([a['DependentOn'](u[_0xa70a6a(0x3ab)]),_e(0x1,p[_0xa70a6a(0x2ab)]),_e(0x2,a[_0xa70a6a(0x312)](a['Injector'])),_e(0x3,a['IConfigService'])],exports[_0xa70a6a(0x361)]);var ts=Object[_0xa70a6a(0x33d)],ss=(_0x50a0cb,_0x3ba6f3,_0xfd370b,_0xfbf16b)=>{const _0x5368a5=_0xa70a6a;for(var _0x578a87=_0xfbf16b>0x1?void 0x0:_0xfbf16b?ts(_0x3ba6f3,_0xfd370b):_0x3ba6f3,_0x41e012=_0x50a0cb[_0x5368a5(0x154)]-0x1,_0x2cc275;_0x41e012>=0x0;_0x41e012--)(_0x2cc275=_0x50a0cb[_0x41e012])&&(_0x578a87=_0x2cc275(_0x578a87)||_0x578a87);return _0x578a87;},H=(_0x1a6d37,_0x4fa0ff)=>(_0x1229e5,_0x36d0ae)=>_0x4fa0ff(_0x1229e5,_0x36d0ae,_0x1a6d37);exports[_0xa70a6a(0x3bc)]=class extends u[_0xa70a6a(0x350)]{constructor(_0x4caa13,_0x510c42,_0x1756a1,_0x582ced,_0x20264e){super(_0x4caa13,_0x510c42,_0x1756a1,_0x582ced,_0x20264e);}async['createSocket'](_0x19fbcb){const _0x2fe4a1=_0xa70a6a,_0x157933=await this[_0x2fe4a1(0x286)](),_0x39dfe8=this[_0x2fe4a1(0x271)](_0x19fbcb,_0x157933);return this[_0x2fe4a1(0x345)](_0x39dfe8);}[_0xa70a6a(0x271)](_0x4a4eb1,_0xddb15b){const _0xf2dbf5=_0xa70a6a,_0x241c12=typeof window>'u'?new URL(_0x4a4eb1):new URL(_0x4a4eb1,window[_0xf2dbf5(0x329)][_0xf2dbf5(0x2ac)]);_0x241c12['searchParams'][_0xf2dbf5(0x2d9)](_0xf2dbf5(0x1ab),_0xddb15b);const _0x271819=typeof window>'u'?new URLSearchParams():new URLSearchParams(window[_0xf2dbf5(0x329)]['search']);return _0x271819[_0xf2dbf5(0x258)]('runId')&&_0x241c12[_0xf2dbf5(0x2ea)][_0xf2dbf5(0x2d9)](_0xf2dbf5(0x16b),_0x271819[_0xf2dbf5(0x258)]('runId')),_0x241c12['toString']();}async[_0xa70a6a(0x286)](){const _0x301ad8=_0xa70a6a;var _0x4efcb2,_0x38d47e,_0xc9fd7b;const _0x4db8fc=this[_0x301ad8(0x225)]['getConfig'](u[_0x301ad8(0x1d3)]),_0x1f301c=(_0x4efcb2=_0x4db8fc==null?void 0x0:_0x4db8fc[_0x301ad8(0x224)])!=null?_0x4efcb2:u[_0x301ad8(0x2cc)];return(_0xc9fd7b=(_0x38d47e=(await this[_0x301ad8(0x38e)][_0x301ad8(0x258)](_0x1f301c,{'headers':{'Content-Type':_0x301ad8(0x2ff)}}))[_0x301ad8(0x199)])==null?void 0x0:_0x38d47e[_0x301ad8(0x366)])!=null?_0xc9fd7b:'';}},exports['BrowserCollaborationSocketService']=ss([H(0x0,a[_0xa70a6a(0x312)](a[_0xa70a6a(0x262)])),H(0x1,a[_0xa70a6a(0x312)](K[_0xa70a6a(0x198)])),H(0x2,a[_0xa70a6a(0x33c)]),H(0x3,a['ILogService']),H(0x4,m[_0xa70a6a(0x284)])],exports[_0xa70a6a(0x3bc)]);function _0x1cff(_0x4a10af,_0x31fb0f){const _0x287c00=_0x287c();return _0x1cff=function(_0x1cff58,_0x184e55){_0x1cff58=_0x1cff58-0x14e;let _0x51493c=_0x287c00[_0x1cff58];return _0x51493c;},_0x1cff(_0x4a10af,_0x31fb0f);}var Be=(_0xb53ac1=>(_0xb53ac1[_0xb53ac1[_0xa70a6a(0x2e6)]=0x0]='UNDEFINED',_0xb53ac1[_0xb53ac1['OK']=0x1]='OK',_0xb53ac1[_0xb53ac1[_0xa70a6a(0x208)]=0x2]='INTERNAL_ERROR',_0xb53ac1[_0xb53ac1[_0xa70a6a(0x369)]=0x3]=_0xa70a6a(0x369),_0xb53ac1[_0xb53ac1[_0xa70a6a(0x19b)]=0x4]=_0xa70a6a(0x19b),_0xb53ac1[_0xb53ac1[_0xa70a6a(0x14f)]=0x5]=_0xa70a6a(0x14f),_0xb53ac1[_0xb53ac1['ALREADY_EXISTS']=0x6]='ALREADY_EXISTS',_0xb53ac1[_0xb53ac1[_0xa70a6a(0x2cf)]=0x7]='INVALID_ARGUMENT',_0xb53ac1[_0xb53ac1[_0xa70a6a(0x2f0)]=0x8]='TOO_MANY_REQUESTS',_0xb53ac1[_0xb53ac1[_0xa70a6a(0x28c)]=0x9]=_0xa70a6a(0x28c),_0xb53ac1[_0xb53ac1[_0xa70a6a(0x1a4)]=0xa]=_0xa70a6a(0x1a4),_0xb53ac1[_0xb53ac1[_0xa70a6a(0x29d)]=0xb]=_0xa70a6a(0x29d),_0xb53ac1[_0xb53ac1[_0xa70a6a(0x3ac)]=0xc]=_0xa70a6a(0x3ac),_0xb53ac1[_0xb53ac1[_0xa70a6a(0x162)]=0xd]='EMAIL_VERIFY_CODE_MISMATCH',_0xb53ac1[_0xb53ac1[_0xa70a6a(0x380)]=0xe]='EMAIL_VERIFY_CODE_NOT_FOUND_OR_EXPIRED',_0xb53ac1[_0xb53ac1['CHANGESET_REVISION_CONFILICT']=0x1389]=_0xa70a6a(0x32b),_0xb53ac1[_0xb53ac1[_0xa70a6a(0x212)]=0x1771]=_0xa70a6a(0x212),_0xb53ac1[_0xb53ac1['SNAPSHOT_HAS_BEEN_REMOVED']=0x1772]=_0xa70a6a(0x2a5),_0xb53ac1[_0xb53ac1[_0xa70a6a(0x21f)]=0x1773]=_0xa70a6a(0x21f),_0xb53ac1[_0xb53ac1[_0xa70a6a(0x2e0)]=0x1b59]=_0xa70a6a(0x2e0),_0xb53ac1[_0xb53ac1[_0xa70a6a(0x2dc)]=0x1b5a]=_0xa70a6a(0x2dc),_0xb53ac1[_0xb53ac1[_0xa70a6a(0x314)]=0x1b5b]=_0xa70a6a(0x314),_0xb53ac1[_0xb53ac1[_0xa70a6a(0x391)]=0x1b5c]=_0xa70a6a(0x391),_0xb53ac1[_0xb53ac1[_0xa70a6a(0x14e)]=0x1b5d]=_0xa70a6a(0x14e),_0xb53ac1[_0xb53ac1[_0xa70a6a(0x1e5)]=0x1f41]=_0xa70a6a(0x1e5),_0xb53ac1[_0xb53ac1[_0xa70a6a(0x337)]=0x2329]=_0xa70a6a(0x337),_0xb53ac1[_0xb53ac1[_0xa70a6a(0x19f)]=0x232a]='LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED',_0xb53ac1[_0xb53ac1[_0xa70a6a(0x2bb)]=0x232b]='LICENSE_IMPORT_SIZE_EXCEEDED',_0xb53ac1[_0xb53ac1[_0xa70a6a(0x297)]=0x232c]=_0xa70a6a(0x297),_0xb53ac1[_0xb53ac1[_0xa70a6a(0x354)]=0x232d]=_0xa70a6a(0x354),_0xb53ac1[_0xb53ac1['YUUMI_UNABLE_LOAD_URL']=0x2711]='YUUMI_UNABLE_LOAD_URL',_0xb53ac1[_0xb53ac1[_0xa70a6a(0x1dd)]=0x2712]='YUUMI_URL_COL_OUT_OF_RANGE',_0xb53ac1[_0xb53ac1[_0xa70a6a(0x20d)]=0x2713]='YUUMI_RATE_OVER_LIMIT',_0xb53ac1[_0xb53ac1[_0xa70a6a(0x213)]=0x2714]=_0xa70a6a(0x213),_0xb53ac1[_0xb53ac1[_0xa70a6a(0x398)]=0x271a]=_0xa70a6a(0x398),_0xb53ac1[_0xb53ac1[_0xa70a6a(0x206)]=0x271b]=_0xa70a6a(0x206),_0xb53ac1[_0xb53ac1[_0xa70a6a(0x1fb)]=0x271c]=_0xa70a6a(0x1fb),_0xb53ac1[_0xb53ac1[_0xa70a6a(0x184)]=0x271d]=_0xa70a6a(0x184),_0xb53ac1[_0xb53ac1[_0xa70a6a(0x2a0)]=0x271e]=_0xa70a6a(0x2a0),_0xb53ac1[_0xb53ac1['YUUMI_AI_RUN_FAILED']=0x271f]='YUUMI_AI_RUN_FAILED',_0xb53ac1[_0xb53ac1[_0xa70a6a(0x179)]=0x2720]=_0xa70a6a(0x179),_0xb53ac1[_0xb53ac1[_0xa70a6a(0x285)]=0x2af9]=_0xa70a6a(0x285),_0xb53ac1[_0xb53ac1[_0xa70a6a(0x26f)]=0x2ee1]=_0xa70a6a(0x26f),_0xb53ac1[_0xb53ac1[_0xa70a6a(0x20f)]=0x2ee2]=_0xa70a6a(0x20f),_0xb53ac1[_0xb53ac1['INVITE_CODE_REQUIRED']=0x2ee3]=_0xa70a6a(0x1b2),_0xb53ac1[_0xb53ac1['USER_NOT_INVITED_CODE']=0x2ee4]=_0xa70a6a(0x27c),_0xb53ac1[_0xb53ac1[_0xa70a6a(0x160)]=0x2ee5]=_0xa70a6a(0x160),_0xb53ac1[_0xb53ac1[_0xa70a6a(0x388)]=0x32c9]=_0xa70a6a(0x388),_0xb53ac1[_0xb53ac1[_0xa70a6a(0x153)]=0x32ca]=_0xa70a6a(0x153),_0xb53ac1[_0xb53ac1[_0xa70a6a(0x268)]=0x32cb]=_0xa70a6a(0x268),_0xb53ac1[_0xb53ac1[_0xa70a6a(0x246)]=-0x1]=_0xa70a6a(0x246),_0xb53ac1))(Be||{}),is=Object[_0xa70a6a(0x33d)],ns=(_0x15bfbf,_0x355e17,_0x226a86,_0x9ee58f)=>{const _0x3fe877=_0xa70a6a;for(var _0x52d6c5=_0x9ee58f>0x1?void 0x0:_0x9ee58f?is(_0x355e17,_0x226a86):_0x355e17,_0x245586=_0x15bfbf[_0x3fe877(0x154)]-0x1,_0x41ca7d;_0x245586>=0x0;_0x245586--)(_0x41ca7d=_0x15bfbf[_0x245586])&&(_0x52d6c5=_0x41ca7d(_0x52d6c5)||_0x52d6c5);return _0x52d6c5;},he=(_0xef1d68,_0x19b1cc)=>(_0x2e7c3a,_0x4bd849)=>_0x19b1cc(_0x2e7c3a,_0x4bd849,_0xef1d68);exports[_0xa70a6a(0x349)]=class extends a[_0xa70a6a(0x270)]{constructor(_0x23ec8e,_0x4816fd,_0x1ff73f){const _0x2261ec=_0xa70a6a;super(),this[_0x2261ec(0x26c)]=_0x23ec8e,this[_0x2261ec(0x38e)]=_0x4816fd,this['_configService']=_0x1ff73f;}async[_0xa70a6a(0x1c3)](_0x508e9c,_0x155be7,_0x27968e,..._0x39cd56){const _0x28b532=_0xa70a6a;var _0x3d549d,_0x57bbc1,_0x197ae5,_0x574266;const _0x2528a3=this[_0x28b532(0x26c)][_0x28b532(0x269)]();if(!_0x2528a3)throw new Error(_0x28b532(0x3b3));const _0x5f3248=((_0x3d549d=this[_0x28b532(0x225)][_0x28b532(0x342)](u[_0x28b532(0x3a1)]))!=null?_0x3d549d:u[_0x28b532(0x27e)])+'/'+_0x508e9c+'/run/'+_0x155be7,_0x5b94be=new URL(window[_0x28b532(0x329)][_0x28b532(0x30c)]),_0x47c1ef={'scriptId':_0x508e9c,'runId':(_0x57bbc1=_0x5b94be[_0x28b532(0x2ea)][_0x28b532(0x258)](_0x28b532(0x16b)))!=null?_0x57bbc1:'','function':_0x155be7,'unitId':_0x2528a3[_0x28b532(0x217)](),'argsOfFunction':JSON[_0x28b532(0x35e)](_0x39cd56),'invokeId':(_0x197ae5=_0x27968e['invokeId'])!=null?_0x197ae5:'','executionId':(_0x574266=_0x27968e[_0x28b532(0x15e)])!=null?_0x574266:''};try{const _0x342f5b=await this[_0x28b532(0x38e)]['post'](_0x5f3248,{'body':_0x47c1ef});return _0x342f5b['body'][_0x28b532(0x1c9)]&&_0x342f5b[_0x28b532(0x199)]['error'][_0x28b532(0x280)]!==Be['OK']?_0x28b532(0x348):_0x342f5b['body'][_0x28b532(0x344)];}catch{return _0x28b532(0x348);}}},exports[_0xa70a6a(0x349)]=ns([he(0x0,a[_0xa70a6a(0x313)]),he(0x1,a[_0xa70a6a(0x312)](K['HTTPService'])),he(0x2,a[_0xa70a6a(0x33c)])],exports[_0xa70a6a(0x349)]);const Me=0x7530,Le=_0xa70a6a(0x32e);class rs extends a[_0xa70a6a(0x270)]{constructor(){const _0x4b5287=_0xa70a6a;super(),h(this,_0x4b5287(0x230),a[_0x4b5287(0x39e)]()),h(this,_0x4b5287(0x19e),new Set()),h(this,_0x4b5287(0x292),new Map()),h(this,_0x4b5287(0x2f3),null),h(this,'_clearOtherTimers',new Map()),h(this,_0x4b5287(0x187),new Map()),this[_0x4b5287(0x373)]();}[_0xa70a6a(0x37e)](){const _0x10ee73=_0xa70a6a;super[_0x10ee73(0x37e)](),this['_clearOtherTimers'][_0x10ee73(0x1d1)]((_0x1c1ada,_0x4311a4)=>this['_removeClearOtherTimer'](_0x4311a4)),this[_0x10ee73(0x2f3)]&&window[_0x10ee73(0x365)](this[_0x10ee73(0x2f3)]);}[_0xa70a6a(0x207)](_0x45f430){const _0xd0d754=_0xa70a6a;return this[_0xd0d754(0x210)](_0x45f430)[_0xd0d754(0x28e)](d[_0xd0d754(0x22c)]());}[_0xa70a6a(0x383)](_0x358016){const _0xd14f85=_0xa70a6a;this[_0xd14f85(0x19e)][_0xd14f85(0x237)]===0x0&&this[_0xd14f85(0x2eb)](),this[_0xd14f85(0x19e)][_0xd14f85(0x228)](_0x358016),this[_0xd14f85(0x1ce)]({'type':0x0,'memberID':this[_0xd14f85(0x230)],'unitIDs':[_0x358016],'isForwarded':!0x1});}[_0xa70a6a(0x25e)](_0x549fb8){const _0x225ef4=_0xa70a6a;this['_selfUnitIDs'][_0x225ef4(0x15d)](_0x549fb8),this[_0x225ef4(0x19e)][_0x225ef4(0x237)]===0x0&&this[_0x225ef4(0x2f3)]&&window[_0x225ef4(0x365)](this[_0x225ef4(0x2f3)]);}[_0xa70a6a(0x373)](){const _0x19fde4=_0xa70a6a;this[_0x19fde4(0x39d)](a[_0x19fde4(0x16a)](d['fromEvent'](window,'storage')[_0x19fde4(0x236)](_0x379652=>{const _0x2a3ca0=_0x19fde4;if(_0x379652[_0x2a3ca0(0x21e)]!==Le||!_0x379652[_0x2a3ca0(0x3bf)])return;const _0xf83177=JSON[_0x2a3ca0(0x205)](_0x379652[_0x2a3ca0(0x3bf)]);this[_0x2a3ca0(0x2c5)](_0xf83177);}))),window['addEventListener'](_0x19fde4(0x37c),()=>this[_0x19fde4(0x1ce)]({'type':0x1,'memberID':this['_id'],'unitIDs':Array[_0x19fde4(0x2c9)](this[_0x19fde4(0x19e)])}));}[_0xa70a6a(0x2c5)](_0x6635ce){const _0x1ec3ce=_0xa70a6a;switch(_0x6635ce[_0x1ec3ce(0x221)]){case 0x0:this[_0x1ec3ce(0x29e)](_0x6635ce);break;case 0x1:this[_0x1ec3ce(0x181)](_0x6635ce);break;case 0x2:this[_0x1ec3ce(0x2b3)](_0x6635ce);break;}}[_0xa70a6a(0x29e)](_0x53b62a){const _0x1efb88=_0xa70a6a,{unitIDs:_0x14163b,memberID:_0x4113a9,isForwarded:_0x540f8b}=_0x53b62a;_0x14163b[_0x1efb88(0x1d1)](_0x59bd2a=>{const _0x214856=_0x1efb88;if(!_0x540f8b&&this[_0x214856(0x292)][_0x214856(0x2b6)](_0x59bd2a)&&this[_0x214856(0x210)](_0x59bd2a)['next'](u[_0x214856(0x1f9)][_0x214856(0x1bd)]),!this[_0x214856(0x292)]['has'](_0x59bd2a)||!this[_0x214856(0x292)][_0x214856(0x258)](_0x59bd2a)[_0x214856(0x2b6)](_0x4113a9)){const _0x4373d9=this[_0x214856(0x292)]['get'](_0x59bd2a)||new Set();_0x4373d9['add'](_0x4113a9),this[_0x214856(0x292)]['set'](_0x59bd2a,_0x4373d9),this['_scheduleClearOtherTimer'](_0x4113a9);}}),_0x540f8b||this['_send']({'type':0x0,'memberID':this[_0x1efb88(0x230)],'unitIDs':[...this[_0x1efb88(0x19e)]],'isForwarded':!0x0});}[_0xa70a6a(0x320)](_0x1817ef){const _0x4be804=_0xa70a6a;this[_0x4be804(0x20e)](_0x1817ef);const _0x4b59e1=window[_0x4be804(0x183)](()=>{const _0x12985d=_0x4be804;this['_unitOnClients'][_0x12985d(0x1d1)](_0x40a25b=>{const _0x35e585=_0x12985d;_0x40a25b[_0x35e585(0x15d)](_0x1817ef);});},Me*0x2);this[_0x4be804(0x216)][_0x4be804(0x2d9)](_0x1817ef,_0x4b59e1);}[_0xa70a6a(0x20e)](_0x38ed00){const _0xde182a=_0xa70a6a;if(this[_0xde182a(0x216)]['has'](_0x38ed00)){const _0x579696=this[_0xde182a(0x216)][_0xde182a(0x258)](_0x38ed00);_0x579696&&window[_0xde182a(0x2ba)](_0x579696),this[_0xde182a(0x216)][_0xde182a(0x2d9)](_0x38ed00,null);}}['_handleLeaveEvent'](_0xa65036){const _0x5c95ab=_0xa70a6a,{memberID:_0x56fa50,unitIDs:_0x5f3158}=_0xa65036;_0x5f3158[_0x5c95ab(0x1d1)](_0x41a5b8=>{const _0xff7271=_0x5c95ab;var _0x345227;const _0x499fa1=this[_0xff7271(0x292)][_0xff7271(0x258)](_0x41a5b8);_0x499fa1&&(_0x499fa1[_0xff7271(0x15d)](_0x56fa50),(_0x345227=this[_0xff7271(0x210)](_0x41a5b8))==null||_0x345227[_0xff7271(0x1b3)](_0x499fa1[_0xff7271(0x237)]===0x0?u[_0xff7271(0x1f9)][_0xff7271(0x3cf)]:u['UnitStatus'][_0xff7271(0x1bd)]));}),this[_0x5c95ab(0x20e)](_0x56fa50);}[_0xa70a6a(0x2b3)](_0x3e0599){const _0x12eff1=_0xa70a6a;this['_scheduleClearOtherTimer'](_0x3e0599[_0x12eff1(0x2c8)]);}[_0xa70a6a(0x1ce)](_0x44d1e6){const _0x9f977e=_0xa70a6a;localStorage[_0x9f977e(0x294)](Le,JSON['stringify'](_0x44d1e6));}['_scheduleHeartbeat'](){const _0x1a6dc3=_0xa70a6a;this[_0x1a6dc3(0x2f3)]=window[_0x1a6dc3(0x36e)](()=>{const _0x4248dc=_0x1a6dc3;this['_send']({'type':0x2,'memberID':this[_0x4248dc(0x230)]});},Me);}[_0xa70a6a(0x210)](_0x354116){const _0x197211=_0xa70a6a;return this[_0x197211(0x187)][_0x197211(0x2b6)](_0x354116)||this[_0x197211(0x187)][_0x197211(0x2d9)](_0x354116,new d[(_0x197211(0x239))](u[_0x197211(0x1f9)][_0x197211(0x3cf)])),this[_0x197211(0x187)][_0x197211(0x258)](_0x354116);}}exports[_0xa70a6a(0x22e)]=me,exports['SheetCollabCursorShape']=$e,exports[_0xa70a6a(0x248)]=rs,exports[_0xa70a6a(0x2dd)]=xe;
|