@univerjs-pro/collaboration-client-ui 0.6.10-nightly.202504101607 → 0.6.10-nightly.202504111607

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 CHANGED
@@ -1 +1 @@
1
- 'use strict';const _0xa1a668=_0x19f1;function _0x19f1(_0x218a46,_0x335dab){const _0xd319ff=_0xd319();return _0x19f1=function(_0x19f142,_0x212de5){_0x19f142=_0x19f142-0x94;let _0x23ddb5=_0xd319ff[_0x19f142];return _0x23ddb5;},_0x19f1(_0x218a46,_0x335dab);}(function(_0x299917,_0x19e321){const _0x5e6a51=_0x19f1,_0x4cfeaa=_0x299917();while(!![]){try{const _0x2746b0=-parseInt(_0x5e6a51(0x9e))/0x1+-parseInt(_0x5e6a51(0x96))/0x2+parseInt(_0x5e6a51(0x94))/0x3*(parseInt(_0x5e6a51(0x99))/0x4)+-parseInt(_0x5e6a51(0x9f))/0x5+-parseInt(_0x5e6a51(0x9d))/0x6+parseInt(_0x5e6a51(0x9a))/0x7+parseInt(_0x5e6a51(0x95))/0x8;if(_0x2746b0===_0x19e321)break;else _0x4cfeaa['push'](_0x4cfeaa['shift']());}catch(_0x1979d7){_0x4cfeaa['push'](_0x4cfeaa['shift']());}}}(_0xd319,0x363e2));function _0xd319(){const _0x12544e=['50664zyrTqJ','228722MnVmQW','runOnServer','@univerjs/core/facade','1709640COdsED','2991499JzRELA','get','extend','1297956HFDTbJ','240804mBJGnO','337155haNjvy','FUniver','RemoteUniscriptService','_injector','3WUEStb'];_0xd319=function(){return _0x12544e;};return _0xd319();}const t=require('@univerjs-pro/collaboration-client-ui'),e=require(_0xa1a668(0x98));class c extends e[_0xa1a668(0xa0)]{[_0xa1a668(0x97)](_0x53d555,_0x21db54,..._0x539542){const _0x58ee27=_0xa1a668;return this[_0x58ee27(0xa2)][_0x58ee27(0x9b)](t[_0x58ee27(0xa1)])['runOnServer'](_0x53d555,_0x21db54,{},..._0x539542);}}e['FUniver'][_0xa1a668(0x9c)](c);
1
+ 'use strict';const _0x59c71a=_0x5434;(function(_0x277c7c,_0x38f0b8){const _0x2f0c18=_0x5434,_0x23ade8=_0x277c7c();while(!![]){try{const _0xe84199=-parseInt(_0x2f0c18(0xdf))/0x1*(parseInt(_0x2f0c18(0xe3))/0x2)+parseInt(_0x2f0c18(0xdb))/0x3+parseInt(_0x2f0c18(0xd7))/0x4+parseInt(_0x2f0c18(0xd5))/0x5*(-parseInt(_0x2f0c18(0xe0))/0x6)+-parseInt(_0x2f0c18(0xe6))/0x7*(-parseInt(_0x2f0c18(0xe2))/0x8)+-parseInt(_0x2f0c18(0xd8))/0x9+parseInt(_0x2f0c18(0xe1))/0xa*(parseInt(_0x2f0c18(0xe4))/0xb);if(_0xe84199===_0x38f0b8)break;else _0x23ade8['push'](_0x23ade8['shift']());}catch(_0x3ecf4b){_0x23ade8['push'](_0x23ade8['shift']());}}}(_0x5cf8,0x85d2c));function _0x5434(_0x523c0d,_0xabbd3){const _0x5cf8ef=_0x5cf8();return _0x5434=function(_0x54349a,_0x533d0f){_0x54349a=_0x54349a-0xd5;let _0x492121=_0x5cf8ef[_0x54349a];return _0x492121;},_0x5434(_0x523c0d,_0xabbd3);}const t=require(_0x59c71a(0xd9)),e=require(_0x59c71a(0xda));function _0x5cf8(){const _0x4c235f=['81024BNyTVF','get','runOnServer','extend','63471MKoJnT','102eNOSew','1730KBgbmB','32YRwGgy','10RzUVPj','128975nKskcX','FUniver','333725kSVjEW','110030tfYsns','_injector','211116MzOLhF','9533835iTBdLt','@univerjs-pro/collaboration-client-ui','@univerjs/core/facade'];_0x5cf8=function(){return _0x4c235f;};return _0x5cf8();}class c extends e[_0x59c71a(0xe5)]{[_0x59c71a(0xdd)](_0x1ff60d,_0x463455,..._0x5170da){const _0x279ccb=_0x59c71a;return this[_0x279ccb(0xd6)][_0x279ccb(0xdc)](t['RemoteUniscriptService'])['runOnServer'](_0x1ff60d,_0x463455,{},..._0x5170da);}}e[_0x59c71a(0xe5)][_0x59c71a(0xde)](c);
package/lib/cjs/index.js CHANGED
@@ -1 +1 @@
1
- 'use strict';const _0x1eb738=_0x1aec;(function(_0x2d9a35,_0x3a4478){const _0x526193=_0x1aec,_0x2995ae=_0x2d9a35();while(!![]){try{const _0x4525b8=-parseInt(_0x526193(0x400))/0x1+-parseInt(_0x526193(0x2d6))/0x2*(-parseInt(_0x526193(0x370))/0x3)+-parseInt(_0x526193(0x2f9))/0x4+parseInt(_0x526193(0x17d))/0x5+parseInt(_0x526193(0x28d))/0x6*(-parseInt(_0x526193(0x342))/0x7)+-parseInt(_0x526193(0x32e))/0x8*(-parseInt(_0x526193(0x3ba))/0x9)+-parseInt(_0x526193(0x3f3))/0xa*(-parseInt(_0x526193(0x317))/0xb);if(_0x4525b8===_0x3a4478)break;else _0x2995ae['push'](_0x2995ae['shift']());}catch(_0x5928bf){_0x2995ae['push'](_0x2995ae['shift']());}}}(_0xd287,0xcf555));var Xe=Object[_0x1eb738(0x294)],Ge=(_0x10e723,_0x1ef335,_0x4e6862)=>_0x1ef335 in _0x10e723?Xe(_0x10e723,_0x1ef335,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x4e6862}):_0x10e723[_0x1ef335]=_0x4e6862,_=(_0x1e5e1b,_0x2d8a8d,_0x196748)=>Ge(_0x1e5e1b,typeof _0x2d8a8d!='symbol'?_0x2d8a8d+'':_0x2d8a8d,_0x196748);Object[_0x1eb738(0x294)](exports,Symbol[_0x1eb738(0x389)],{'value':_0x1eb738(0x328)});const u=require(_0x1eb738(0x375)),a=require(_0x1eb738(0x37f)),p=require(_0x1eb738(0x257)),q=require('@univerjs/network'),b=require('@univerjs/docs-ui'),qe=require(_0x1eb738(0x343)),d=require(_0x1eb738(0x249)),Y=require(_0x1eb738(0x2eb)),m=require(_0x1eb738(0x367)),Te=require(_0x1eb738(0x30c)),g=require('@univerjs/sheets'),$=require(_0x1eb738(0x38c)),G=require(_0x1eb738(0x239)),L=require('react/jsx-runtime'),R=require(_0x1eb738(0x3d6)),T=require('@univerjs/design'),M=require(_0x1eb738(0x197)),Ke=require(_0x1eb738(0x1fd));var ze=Object[_0x1eb738(0x233)],Je=(_0x109668,_0xa47dfe,_0x19baa9,_0x1cfc3d)=>{for(var _0xd187a=_0x1cfc3d>0x1?void 0x0:_0x1cfc3d?ze(_0xa47dfe,_0x19baa9):_0xa47dfe,_0x32c8cb=_0x109668['length']-0x1,_0x3afe35;_0x32c8cb>=0x0;_0x32c8cb--)(_0x3afe35=_0x109668[_0x32c8cb])&&(_0xd187a=_0x3afe35(_0xd187a)||_0xd187a);return _0xd187a;},Re=(_0x85c68e,_0x4b9ef6)=>(_0x148b25,_0x3a9f7c)=>_0x4b9ef6(_0x148b25,_0x3a9f7c,_0x85c68e);let fe=class extends a[_0x1eb738(0x273)]{constructor(_0x4e7cff,_0x5c4d53){const _0x592252=_0x1eb738;super(),this[_0x592252(0x2e1)]=_0x4e7cff,this[_0x592252(0x3c9)]=_0x5c4d53,this[_0x592252(0x39a)]();}[_0x1eb738(0x39a)](){const _0x4d1207=_0x1eb738,_0x3750aa=this;this[_0x4d1207(0x277)](this[_0x4d1207(0x2e1)]['addClipboardHook']({'onBeforePasteImage':async _0x2d6fc4=>{const _0x300ecc=_0x4d1207,_0x5ac3d7=await _0x3750aa[_0x300ecc(0x3c9)]['saveImage'](_0x2d6fc4);return _0x5ac3d7?{'source':_0x5ac3d7[_0x300ecc(0x1d4)],'imageSourceType':_0x5ac3d7[_0x300ecc(0x315)]}:null;}}));}};fe=Je([Re(0x0,b['IDocClipboardService']),Re(0x1,qe[_0x1eb738(0x19f)])],fe);const Oe=['purple300','jiqing500',_0x1eb738(0x390),'red300',_0x1eb738(0x287),_0x1eb738(0x21b)];class Ce extends a['Disposable']{constructor(){const _0x1c98d7=_0x1eb738;super(...arguments),_(this,_0x1c98d7(0x346),new Map()),_(this,_0x1c98d7(0x36f),0x0);}[_0x1eb738(0x26f)](_0xde2b41){const _0x29c3b7=_0x1eb738;if(this[_0x29c3b7(0x346)][_0x29c3b7(0x293)](_0xde2b41))return this[_0x29c3b7(0x346)][_0x29c3b7(0x18d)](_0xde2b41);const _0xb49475=Oe[this[_0x29c3b7(0x36f)]];return this[_0x29c3b7(0x36f)]=(this[_0x29c3b7(0x36f)]+0x1)%Oe[_0x29c3b7(0x1d9)],this[_0x29c3b7(0x346)]['set'](_0xde2b41,_0xb49475),_0xb49475;}}function we(_0x1d48d3){const _0x49a6a7=_0x1eb738;let _0x59edf5='';for(const _0x4898ab of _0x1d48d3){const {startOffset:_0x3069bb,endOffset:_0x1abd2c,isActive:_0x2b2ea5,rangeType:_0x1b76a1,segmentId:_0x4c9489,segmentPage:_0x1ac7c5}=_0x4898ab;_0x59edf5[_0x49a6a7(0x1d9)]&&(_0x59edf5+=','),_0x59edf5+=_0x3069bb+':'+_0x1abd2c+':'+(_0x2b2ea5?'1':'0')+':'+_0x1b76a1+':'+_0x4c9489+':'+_0x1ac7c5;}return _0x59edf5;}function Ze(_0x22a501){const _0xec1f96=_0x1eb738,_0x507737=_0x22a501[_0xec1f96(0x1ad)](','),_0x4451a3=[];for(const _0x5c0504 of _0x507737){const [_0x347921,_0x56f09c,_0x5b2722,_0xbaedf4,_0x215d84,_0x252de8]=_0x5c0504[_0xec1f96(0x1ad)](':');_0x4451a3['push']({'startOffset':Number(_0x347921),'endOffset':Number(_0x56f09c),'collapsed':_0x347921===_0x56f09c,'isActive':_0x5b2722==='1','rangeType':_0xbaedf4===a[_0xec1f96(0x2b3)]['TEXT']?a[_0xec1f96(0x2b3)][_0xec1f96(0x199)]:a[_0xec1f96(0x2b3)][_0xec1f96(0x271)],'segmentId':typeof _0x215d84==_0xec1f96(0x33d)?String(_0x215d84):'','segmentPage':Number(_0x252de8!=null?_0x252de8:-0x1)});}return _0x4451a3[_0xec1f96(0x247)](_0x42230a=>_0x42230a[_0xec1f96(0x34b)])||(_0x4451a3[0x0][_0xec1f96(0x34b)]=!0x0),_0x4451a3;}class pe extends a[_0x1eb738(0x273)]{constructor(){const _0x617d2c=_0x1eb738;super(...arguments),_(this,_0x617d2c(0x202),new d[(_0x617d2c(0x292))](null)),_(this,_0x617d2c(0x2ec),this[_0x617d2c(0x202)]['asObservable']());}['syncEditingCollabCursor'](_0x5c62e7){const _0x5d549e=_0x1eb738,{unitID:_0x1bd3e8,memberID:_0x248682,textRanges:_0x2508a9}=_0x5c62e7,_0x3aa023=we(_0x2508a9);if(_0x3aa023==='')return;const _0x51a09a={'unitID':_0x1bd3e8,'memberID':_0x248682,'selection':_0x3aa023};this[_0x5d549e(0x202)][_0x5d549e(0x1f6)](_0x51a09a);}}var Qe=Object[_0x1eb738(0x233)],et=(_0x54f616,_0x126ebe,_0x2ddcfc,_0x2d17e2)=>{const _0x28ed12=_0x1eb738;for(var _0x4f554a=_0x2d17e2>0x1?void 0x0:_0x2d17e2?Qe(_0x126ebe,_0x2ddcfc):_0x126ebe,_0x4cdab8=_0x54f616[_0x28ed12(0x1d9)]-0x1,_0x14b71f;_0x4cdab8>=0x0;_0x4cdab8--)(_0x14b71f=_0x54f616[_0x4cdab8])&&(_0x4f554a=_0x14b71f(_0x4f554a)||_0x4f554a);return _0x4f554a;},P=(_0x192bef,_0x48c611)=>(_0x1ae05d,_0x438a7e)=>_0x48c611(_0x1ae05d,_0x438a7e,_0x192bef);const tt=0x12c,st=0x64;let Se=class extends a[_0x1eb738(0x273)]{constructor(_0x2a3b3b,_0xf1c9d2,_0x351abf,_0x440ba0,_0x1fedec,_0x319cfe,_0x1ee970,_0x3607a0,_0x1f6db7){const _0x34366d=_0x1eb738;super(),_(this,_0x34366d(0x1ab),!0x1),_(this,_0x34366d(0x39a),!0x1),_(this,'_cursorInfo$',new d[(_0x34366d(0x292))](new Map())),_(this,_0x34366d(0x248),this[_0x34366d(0x2de)][_0x34366d(0x205)]()),_(this,_0x34366d(0x3ab),new d[(_0x34366d(0x292))]([])),_(this,_0x34366d(0x3b5),this['_roomMembers$'][_0x34366d(0x21a)](d['debounceTime'](tt))),_(this,'_updateLocalCursor',a[_0x34366d(0x393)](_0x5ccd7f=>{const _0x455399=_0x34366d,_0x27958c={'eventID':m[_0x455399(0x37d)]['UPDATE_CURSOR'],'data':{'unitID':this[_0x455399(0x222)],'memberID':this[_0x455399(0x1eb)][_0x455399(0x1e6)](),'selection':we(_0x5ccd7f)}};this[_0x455399(0x1eb)][_0x455399(0x33b)](_0x27958c,this[_0x455399(0x222)]);},st)),(this[_0x34366d(0x222)]=_0x2a3b3b,this[_0x34366d(0x1eb)]=_0xf1c9d2,this[_0x34366d(0x3c4)]=_0x351abf,this[_0x34366d(0x25b)]=_0x440ba0,this['_memberService']=_0x1fedec,this[_0x34366d(0x3d1)]=_0x319cfe,this[_0x34366d(0x33c)]=_0x1ee970,this[_0x34366d(0x204)]=_0x3607a0,this[_0x34366d(0x18b)]=_0x1f6db7);}get['cursorInfo'](){const _0x1915b4=_0x1eb738;return this[_0x1915b4(0x2de)]['getValue']();}get[_0x1eb738(0x368)](){const _0x16b845=_0x1eb738;return this[_0x16b845(0x3ab)][_0x16b845(0x25e)]();}[_0x1eb738(0x392)](){const _0x1cba08=_0x1eb738;super[_0x1cba08(0x392)](),this[_0x1cba08(0x2de)]['next'](new Map()),this[_0x1cba08(0x2de)]['complete'](),this[_0x1cba08(0x3ab)][_0x1cba08(0x1f6)]([]),this['_roomMembers$']['complete']();}[_0x1eb738(0x3b7)](){const _0x48c024=_0x1eb738;this[_0x48c024(0x39a)]||(this[_0x48c024(0x39a)]=!0x0,this[_0x48c024(0x1eb)][_0x48c024(0x3dc)]['pipe'](d[_0x48c024(0x35d)](this[_0x48c024(0x376)]))[_0x48c024(0x3aa)](_0x36ee51=>{const _0x15f564=_0x48c024;_0x36ee51===u[_0x15f564(0x3f4)][_0x15f564(0x386)]?this['_toggleOnline']():this['_toggleOffline']();}),this[_0x48c024(0x1eb)][_0x48c024(0x304)][_0x48c024(0x21a)](d['takeUntil'](this[_0x48c024(0x376)]))[_0x48c024(0x3aa)](_0x5f4932=>{const _0x48c4b8=_0x48c024,_0x3f5eba=_0x5f4932[_0x48c4b8(0x2a8)];_0x3f5eba===m['CollaborationEvent']['UPDATE_CURSOR']&&this['_onCursorUpdate'](_0x5f4932),_0x3f5eba===m[_0x48c4b8(0x37d)][_0x48c4b8(0x3f6)]&&this[_0x48c4b8(0x1cf)](_0x5f4932);}),this[_0x48c024(0x277)](this['_commandService'][_0x48c024(0x181)](_0x274e83=>{const _0x3e67dd=_0x48c024,_0xf58eaf=_0x274e83['params'];_0xf58eaf!=null&&this[_0x3e67dd(0x1ab)]&&_0x274e83['id']===Y[_0x3e67dd(0x2c4)]['id']&&_0xf58eaf['unitId']===this[_0x3e67dd(0x222)]&&_0xf58eaf[_0x3e67dd(0x254)]===!0x1&&_0xf58eaf[_0x3e67dd(0x374)]['length']>0x0&&this[_0x3e67dd(0x238)](_0xf58eaf['ranges']);})),this['_syncEditingCollabCursorService'][_0x48c024(0x2ec)][_0x48c024(0x21a)](d[_0x48c024(0x35d)](this['dispose$']))[_0x48c024(0x3aa)](_0x21f372=>{const _0x35f3b7=_0x48c024;if((_0x21f372==null?void 0x0:_0x21f372['unitID'])!==this['unitID'])return;const _0x204a9f={'eventID':m[_0x35f3b7(0x37d)][_0x35f3b7(0x369)],'data':_0x21f372};this[_0x35f3b7(0x1d2)](_0x204a9f);}),this['disposeWithMe'](this[_0x48c024(0x18b)]['onCommandExecuted'](_0x2b7853=>{const _0x2d527a=_0x48c024;if(_0x2b7853['params']==null)return;const _0x55985e=_0x2b7853[_0x2d527a(0x371)];if(_0x2b7853['id']!==Y['RichTextEditingMutation']['id']||_0x55985e['unitId']!==this[_0x2d527a(0x222)])return;const _0x5b5f3f={'id':'doc.mutation.rich-text-editing','params':_0x55985e},_0x47f5bd=this[_0x2d527a(0x3c6)];for(const [_0x125dc8,_0x4ae11a]of _0x47f5bd){const _0x55499e={'id':_0x2d527a(0x2f3),'params':{'unitId':this[_0x2d527a(0x222)],'actions':null,'textRanges':_0x4ae11a[_0x2d527a(0x374)]}},_0xd391ab=this[_0x2d527a(0x33c)]['transformMutation'](_0x5b5f3f,_0x55499e,!0x1);if(m['isTransformMutationFailure'](_0xd391ab))throw _0xd391ab['error'];_0x47f5bd[_0x2d527a(0x2a5)](_0x125dc8,{..._0x4ae11a,'ranges':_0xd391ab['m2Prime'][_0x2d527a(0x371)][_0x2d527a(0x2be)]});}queueMicrotask(()=>{const _0x46bdf8=_0x2d527a;this[_0x46bdf8(0x2de)]['next'](_0x47f5bd);});})));}[_0x1eb738(0x1d2)](_0x1b9304){const _0x2bea0c=_0x1eb738;var _0x31f42f,_0x15443a;const {memberID:_0x76c7c,selection:_0x28d4c4}=_0x1b9304['data'],_0x1e8af4=Ze(_0x28d4c4),_0x4d193b=(_0x15443a=(_0x31f42f=this[_0x2bea0c(0x2df)][_0x2bea0c(0x2f5)](this[_0x2bea0c(0x222)],_0x76c7c))==null?void 0x0:_0x31f42f[_0x2bea0c(0x2cc)])!=null?_0x15443a:_0x2bea0c(0x3ee),_0x226503={'color':this[_0x2bea0c(0x25b)]['assignAColorForMemberID'](_0x76c7c),'name':_0x4d193b,'ranges':_0x1e8af4},_0x4a4706=this[_0x2bea0c(0x3c6)];_0x4a4706['set'](_0x76c7c,_0x226503),this[_0x2bea0c(0x2de)][_0x2bea0c(0x1f6)](_0x4a4706);}['_onCursorDelete'](_0x5554d6){const _0x42bc9a=_0x1eb738,{memberID:_0x1b3d45}=_0x5554d6[_0x42bc9a(0x397)],_0x2249bd=this['cursorInfo'];_0x2249bd[_0x42bc9a(0x322)](_0x1b3d45),this[_0x42bc9a(0x2de)][_0x42bc9a(0x1f6)](_0x2249bd);}[_0x1eb738(0x1ee)](){const _0x4617bf=_0x1eb738;var _0x210b5d;if(this[_0x4617bf(0x1ab)]=!0x0,((_0x210b5d=this[_0x4617bf(0x204)]['getFocusedUnit']())==null?void 0x0:_0x210b5d[_0x4617bf(0x2b2)]())!==this[_0x4617bf(0x222)])return;const _0x2316f7=this[_0x4617bf(0x3c4)][_0x4617bf(0x18d)](Y[_0x4617bf(0x1b7)])[_0x4617bf(0x2ca)]();Array[_0x4617bf(0x1b5)](_0x2316f7)&&_0x2316f7['length']>0x0&&this[_0x4617bf(0x238)](_0x2316f7);}['_toggleOffline'](){const _0x46700a=_0x1eb738;this[_0x46700a(0x1ab)]=!0x1;}};Se=et([P(0x2,a[_0x1eb738(0x1e3)](a[_0x1eb738(0x2b4)])),P(0x3,a['Inject'](Ce)),P(0x4,a[_0x1eb738(0x1e3)](u[_0x1eb738(0x26a)])),P(0x5,a[_0x1eb738(0x1e3)](pe)),P(0x6,m['ITransformService']),P(0x7,a[_0x1eb738(0x224)]),P(0x8,a[_0x1eb738(0x1fb)])],Se);var nt=Object[_0x1eb738(0x233)],it=(_0x520580,_0x199302,_0x352f93,_0x35644f)=>{for(var _0x510752=_0x35644f>0x1?void 0x0:_0x35644f?nt(_0x199302,_0x352f93):_0x199302,_0x1d31f2=_0x520580['length']-0x1,_0x23b47c;_0x1d31f2>=0x0;_0x1d31f2--)(_0x23b47c=_0x520580[_0x1d31f2])&&(_0x510752=_0x23b47c(_0x510752)||_0x510752);return _0x510752;},A=(_0x2af807,_0x112e0b)=>(_0x1b899e,_0x5bb971)=>_0x112e0b(_0x1b899e,_0x5bb971,_0x2af807);const rt=0x12c,ot=0x64,at=()=>{let _0xc05850=[],_0x4db3d9=!0x1;return _0x26e5ea=>{const _0x2e8f5b=_0x1aec;_0xc05850[_0x2e8f5b(0x316)](_0x26e5ea),_0x4db3d9||(_0x4db3d9=!0x0,setTimeout(()=>{const _0x483a14=_0x2e8f5b;_0xc05850[_0x483a14(0x341)](_0x288ae1=>_0x288ae1()),_0xc05850=[],_0x4db3d9=!0x1;}));};};let Ie=class extends a[_0x1eb738(0x273)]{constructor(_0xd7425,_0x5be2ed,_0x5ce333,_0x244e6b,_0x3b9df4,_0x177edc,_0x19fe84,_0xe48250){const _0x40e31d=_0x1eb738;super(),_(this,'_online',!0x1),_(this,_0x40e31d(0x39a),!0x1),_(this,'_cursorInfo$',new d[(_0x40e31d(0x292))](new Map())),_(this,_0x40e31d(0x248),this['_cursorInfo$'][_0x40e31d(0x205)]()),_(this,_0x40e31d(0x3ab),new d[(_0x40e31d(0x292))]([])),_(this,_0x40e31d(0x3b5),this[_0x40e31d(0x3ab)][_0x40e31d(0x21a)](d[_0x40e31d(0x180)](rt))),_(this,'_updateLocalCursor',a[_0x40e31d(0x393)]((_0x2cb47d,_0x26374b)=>{const _0x524457=_0x40e31d,_0x1e0f27={'eventID':m['CollaborationEvent'][_0x524457(0x369)],'data':{'unitID':this[_0x524457(0x222)],'memberID':this[_0x524457(0x1eb)][_0x524457(0x1e6)](),'selection':Te[_0x524457(0x297)](_0x2cb47d,_0x26374b[_0x524457(0x395)])}};this[_0x524457(0x1eb)]['send'](_0x1e0f27,this[_0x524457(0x222)]);},ot)),(this[_0x40e31d(0x222)]=_0xd7425,this[_0x40e31d(0x1eb)]=_0x5be2ed,this[_0x40e31d(0x3c4)]=_0x5ce333,this[_0x40e31d(0x25b)]=_0x244e6b,this[_0x40e31d(0x2df)]=_0x3b9df4,this['_univerInstanceService']=_0x177edc,this['_commandService']=_0x19fe84,this[_0x40e31d(0x388)]=_0xe48250);}get[_0x1eb738(0x3c6)](){const _0x428a18=_0x1eb738;return this[_0x428a18(0x2de)][_0x428a18(0x25e)]();}get[_0x1eb738(0x368)](){const _0x9b04fb=_0x1eb738;return this[_0x9b04fb(0x3ab)]['getValue']();}[_0x1eb738(0x392)](){const _0x30316d=_0x1eb738;super[_0x30316d(0x392)](),this['_cursorInfo$'][_0x30316d(0x1f6)](new Map()),this[_0x30316d(0x2de)]['complete'](),this[_0x30316d(0x3ab)][_0x30316d(0x1f6)]([]),this[_0x30316d(0x3ab)][_0x30316d(0x2d9)]();}['init'](){const _0x300d57=_0x1eb738;this[_0x300d57(0x39a)]||(this[_0x300d57(0x39a)]=!0x0,this[_0x300d57(0x1eb)]['sessionStatus$'][_0x300d57(0x21a)](d['takeUntil'](this[_0x300d57(0x376)]))['subscribe'](_0x46cd94=>{const _0x5da7a3=_0x300d57;_0x46cd94===u[_0x5da7a3(0x3f4)]['ONLINE']?this[_0x5da7a3(0x1ee)]():this[_0x5da7a3(0x3f8)]();}),this[_0x300d57(0x1eb)]['event$']['pipe'](d[_0x300d57(0x35d)](this['dispose$']))['subscribe'](_0x2aae50=>{const _0x59a396=_0x300d57,_0x32eac1=_0x2aae50[_0x59a396(0x2a8)];_0x32eac1===m['CollaborationEvent'][_0x59a396(0x369)]&&this['_onCursorUpdate'](_0x2aae50),_0x32eac1===m[_0x59a396(0x37d)][_0x59a396(0x3f6)]&&this[_0x59a396(0x1cf)](_0x2aae50);}),this[_0x300d57(0x2a1)](),this[_0x300d57(0x277)](this[_0x300d57(0x18b)]['onCommandExecuted'](_0x3c8143=>{const _0x425a68=_0x300d57;if(this['_online']&&_0x3c8143['id']===g[_0x425a68(0x244)]['id']&&_0x3c8143[_0x425a68(0x371)][_0x425a68(0x3d5)]===this[_0x425a68(0x222)]){const _0x2d934c=_0x3c8143[_0x425a68(0x371)];this[_0x425a68(0x238)](_0x2d934c[_0x425a68(0x188)],_0x2d934c[_0x425a68(0x3b2)][0x0]);}})));}[_0x1eb738(0x1d2)](_0xc2f323){const _0x2f5fe5=_0x1eb738;var _0x1e0b03,_0x544073;const {memberID:_0x34795d,selection:_0x40e1a2}=_0xc2f323[_0x2f5fe5(0x397)],{sheetName:_0x12aa48,range:_0x22504a}=Te[_0x2f5fe5(0x28b)](_0x40e1a2),_0x31599e={'name':(_0x544073=(_0x1e0b03=this[_0x2f5fe5(0x2df)][_0x2f5fe5(0x2f5)](this[_0x2f5fe5(0x222)],_0x34795d))==null?void 0x0:_0x1e0b03[_0x2f5fe5(0x2cc)])!=null?_0x544073:_0x2f5fe5(0x3ee),'range':this['_getMergeRange'](_0x12aa48,_0x22504a),'sheetID':_0x12aa48,'color':this[_0x2f5fe5(0x25b)][_0x2f5fe5(0x26f)](_0x34795d),'selection':_0x40e1a2},_0x12cf1f=this[_0x2f5fe5(0x3c6)];_0x12cf1f[_0x2f5fe5(0x2a5)](_0x34795d,_0x31599e),this[_0x2f5fe5(0x2de)][_0x2f5fe5(0x1f6)](_0x12cf1f);}[_0x1eb738(0x1cf)](_0xbbb535){const _0x1b5d87=_0x1eb738,{memberID:_0x3380b5}=_0xbbb535[_0x1b5d87(0x397)],_0x5594b2=this['cursorInfo'];_0x5594b2[_0x1b5d87(0x322)](_0x3380b5),this[_0x1b5d87(0x2de)][_0x1b5d87(0x1f6)](_0x5594b2);}[_0x1eb738(0x22e)](_0x1e5dc1,_0x4b825a){const _0x41e0d3=_0x1eb738;var _0x29a7af,_0x2d5521;const _0x57e9a6=(_0x2d5521=(_0x29a7af=this[_0x41e0d3(0x204)][_0x41e0d3(0x235)](this['unitID']))==null?void 0x0:_0x29a7af['getSheetBySheetId'](_0x1e5dc1))==null?void 0x0:_0x2d5521[_0x41e0d3(0x1e8)]();return(_0x57e9a6==null?void 0x0:_0x57e9a6[_0x41e0d3(0x335)](_0x499abc=>a[_0x41e0d3(0x2a2)]['contains'](_0x499abc,_0x4b825a)))||_0x4b825a;}[_0x1eb738(0x2a1)](){const _0x366e38=_0x1eb738,_0x440e7b=new a[(_0x366e38(0x213))](),_0x3f8c34=at(),_0x485adf=()=>{const _0x226069=_0x366e38;_0x440e7b[_0x226069(0x392)]();const _0x1fb34f=(_0x4170d2,_0x335890,_0x4ebd00,_0x5bcc92)=>{const _0x4b88b9=_0x226069;let _0x327e1f=[];switch(_0x4170d2['id']){case g['EffectRefRangId'][_0x4b88b9(0x1c2)]:{_0x327e1f=g[_0x4b88b9(0x318)](_0x4170d2,_0x5bcc92);break;}case g['EffectRefRangId'][_0x4b88b9(0x2b9)]:{_0x327e1f=g[_0x4b88b9(0x1dd)](_0x4170d2,_0x5bcc92);break;}case g[_0x4b88b9(0x299)]['InsertColCommandId']:{_0x327e1f=g[_0x4b88b9(0x28a)](_0x4170d2,_0x5bcc92);break;}case g[_0x4b88b9(0x299)][_0x4b88b9(0x324)]:{_0x327e1f=g[_0x4b88b9(0x2a3)](_0x4170d2,_0x5bcc92);break;}case g[_0x4b88b9(0x299)][_0x4b88b9(0x3ec)]:{_0x327e1f=g[_0x4b88b9(0x3f5)](_0x4170d2,_0x5bcc92);break;}case g['EffectRefRangId'][_0x4b88b9(0x359)]:{_0x327e1f=g[_0x4b88b9(0x241)](_0x4170d2,_0x5bcc92);break;}case g[_0x4b88b9(0x299)][_0x4b88b9(0x3ca)]:{_0x327e1f=g[_0x4b88b9(0x357)](_0x4170d2,_0x5bcc92);break;}case g[_0x4b88b9(0x299)][_0x4b88b9(0x3e7)]:{_0x327e1f=g[_0x4b88b9(0x350)](_0x4170d2,_0x5bcc92);break;}case g[_0x4b88b9(0x299)][_0x4b88b9(0x1f3)]:{_0x327e1f=g[_0x4b88b9(0x26b)](_0x4170d2,_0x5bcc92);break;}}const _0xe2f7ce=g[_0x4b88b9(0x2e7)](_0x327e1f,_0x5bcc92),_0x193922=this[_0x4b88b9(0x3c6)][_0x4b88b9(0x18d)](_0x335890);if(_0x193922&&_0xe2f7ce){const _0x3b0c27={..._0x193922,'range':_0xe2f7ce};this[_0x4b88b9(0x3c6)]['set'](_0x335890,_0x3b0c27),_0x3f8c34(()=>{const _0x149bc8=_0x4b88b9,_0x9eeac6=this[_0x149bc8(0x388)][_0x149bc8(0x2bb)](_0xe2f7ce,_0x4f9fd0=>(_0x9eeac6['dispose'](),_0x1fb34f(_0x4f9fd0,_0x335890,_0x4ebd00,_0xe2f7ce)));_0x440e7b[_0x149bc8(0x279)](_0x9eeac6);});}return{'redos':[],'undos':[]};};this[_0x226069(0x3c6)][_0x226069(0x341)]((_0x538f62,_0xfdb9b9)=>{const _0x14d7c6=_0x226069,{range:_0x42b780,sheetID:_0x56ae8c}=_0x538f62,_0x244708=this[_0x14d7c6(0x388)][_0x14d7c6(0x2bb)](_0x42b780,_0x133be2=>(_0x244708[_0x14d7c6(0x392)](),_0x1fb34f(_0x133be2,_0xfdb9b9,_0x56ae8c,_0x42b780)));_0x440e7b[_0x14d7c6(0x279)](_0x244708);});};this[_0x366e38(0x277)](a[_0x366e38(0x253)](this[_0x366e38(0x2de)][_0x366e38(0x3aa)](()=>{_0x485adf();})));}['_toggleOnline'](){const _0x570165=_0x1eb738;var _0x39f6a7,_0x373dfa;if(this[_0x570165(0x1ab)]=!0x0,((_0x39f6a7=this[_0x570165(0x204)][_0x570165(0x225)]())==null?void 0x0:_0x39f6a7[_0x570165(0x2b2)]())!==this[_0x570165(0x222)])return;const _0x446a55=(_0x373dfa=this[_0x570165(0x3c4)][_0x570165(0x18d)](g['SheetsSelectionsService'])['getCurrentSelections']())==null?void 0x0:_0x373dfa[0x0],_0x189d9a=this[_0x570165(0x204)][_0x570165(0x1bc)](a[_0x570165(0x276)][_0x570165(0x2d0)])[_0x570165(0x228)]();_0x446a55&&_0x189d9a&&this['_updateLocalCursor'](_0x189d9a['getSheetId'](),_0x446a55);}[_0x1eb738(0x3f8)](){const _0x1026c6=_0x1eb738;this[_0x1026c6(0x1ab)]=!0x1;}};Ie=it([A(0x2,a[_0x1eb738(0x1e3)](a[_0x1eb738(0x2b4)])),A(0x3,a['Inject'](Ce)),A(0x4,a[_0x1eb738(0x1e3)](u['MemberService'])),A(0x5,a['IUniverInstanceService']),A(0x6,a[_0x1eb738(0x1fb)]),A(0x7,a[_0x1eb738(0x1e3)](g[_0x1eb738(0x34f)]))],Ie);var ct=Object['getOwnPropertyDescriptor'],lt=(_0x5b54db,_0x5ac3de,_0x47570c,_0x31b695)=>{const _0x5a9750=_0x1eb738;for(var _0xe790bb=_0x31b695>0x1?void 0x0:_0x31b695?ct(_0x5ac3de,_0x47570c):_0x5ac3de,_0x309881=_0x5b54db[_0x5a9750(0x1d9)]-0x1,_0x7ee481;_0x309881>=0x0;_0x309881--)(_0x7ee481=_0x5b54db[_0x309881])&&(_0xe790bb=_0x7ee481(_0xe790bb)||_0xe790bb);return _0xe790bb;},ie=(_0x225043,_0x5269f4)=>(_0x1cbade,_0x292c1e)=>_0x5269f4(_0x1cbade,_0x292c1e,_0x225043);let x=class extends a[_0x1eb738(0x273)]{constructor(_0x248bad,_0x45db31,_0x53047f){const _0x5436ac=_0x1eb738;super(),_(this,_0x5436ac(0x2a4),new Map()),_(this,_0x5436ac(0x17f),new d[(_0x5436ac(0x189))]()),(this[_0x5436ac(0x204)]=_0x248bad,this[_0x5436ac(0x3c4)]=_0x45db31,this['_collabSessionService']=_0x53047f,this[_0x5436ac(0x39a)]());}['dispose'](){const _0x5e8457=_0x1eb738;super['dispose'](),this[_0x5e8457(0x17f)]['complete'](),this[_0x5e8457(0x2a4)][_0x5e8457(0x341)](_0x36f27a=>_0x36f27a[_0x5e8457(0x392)]());}['getCollabCursors$'](_0x5ed653){const _0x2811e0=_0x1eb738;return this[_0x2811e0(0x2a4)][_0x2811e0(0x293)](_0x5ed653)?this[_0x2811e0(0x2a4)][_0x2811e0(0x18d)](_0x5ed653)['cursorInfo$']:this[_0x2811e0(0x17f)][_0x2811e0(0x21a)](d[_0x2811e0(0x183)](_0x20559a=>_0x20559a[_0x2811e0(0x222)]===_0x5ed653),d[_0x2811e0(0x3d7)](_0x5b0782=>_0x5b0782['cursorInfo$']));}[_0x1eb738(0x39a)](){const _0x4db550=_0x1eb738;this[_0x4db550(0x204)][_0x4db550(0x3ad)](a[_0x4db550(0x276)]['UNIVER_SHEET'])[_0x4db550(0x21a)](d[_0x4db550(0x35d)](this[_0x4db550(0x376)]))[_0x4db550(0x3aa)](async _0x5ead1f=>{const _0x275f8d=_0x4db550,_0x3706fc=_0x5ead1f[_0x275f8d(0x2b2)](),_0x34f6e8=await this[_0x275f8d(0x196)](_0x3706fc);this['_entityInit$'][_0x275f8d(0x1f6)](_0x34f6e8),this['_entities'][_0x275f8d(0x2a5)](_0x3706fc,_0x34f6e8);}),this[_0x4db550(0x204)][_0x4db550(0x3ad)](a['UniverInstanceType'][_0x4db550(0x20b)])[_0x4db550(0x21a)](d[_0x4db550(0x35d)](this[_0x4db550(0x376)]))[_0x4db550(0x21a)](d[_0x4db550(0x183)](_0x3502fa=>!_0x3502fa[_0x4db550(0x2b2)]()[_0x4db550(0x3c0)]('__')))['subscribe'](async _0x1ceaf3=>{const _0x1ddfe6=_0x4db550,_0x15dfa2=_0x1ceaf3['getUnitId'](),_0x5de149=await this[_0x1ddfe6(0x226)](_0x15dfa2);this[_0x1ddfe6(0x17f)][_0x1ddfe6(0x1f6)](_0x5de149),this[_0x1ddfe6(0x2a4)][_0x1ddfe6(0x2a5)](_0x15dfa2,_0x5de149);}),d[_0x4db550(0x1f9)](this['_univerInstanceService'][_0x4db550(0x2bd)](a[_0x4db550(0x276)][_0x4db550(0x20b)]),this['_univerInstanceService']['getTypeOfUnitDisposed$'](a['UniverInstanceType'][_0x4db550(0x2d0)]))[_0x4db550(0x21a)](d[_0x4db550(0x35d)](this[_0x4db550(0x376)]))[_0x4db550(0x3aa)](_0x243ccd=>{const _0x2f6fc9=_0x4db550,_0x5582ed=_0x243ccd['getUnitId'](),_0x4d9ea8=this[_0x2f6fc9(0x2a4)][_0x2f6fc9(0x18d)](_0x5582ed);_0x4d9ea8&&(_0x4d9ea8[_0x2f6fc9(0x392)](),this[_0x2f6fc9(0x2a4)][_0x2f6fc9(0x322)](_0x5582ed));});}async['_startSheetCollabCursor'](_0x59482e){const _0xba9c6=_0x1eb738,_0x28a3a8=await this['_collabSessionService']['requireSession'](_0x59482e),_0x118cd6=this[_0xba9c6(0x3c4)][_0xba9c6(0x1b3)](Ie,_0x59482e,_0x28a3a8);return _0x118cd6[_0xba9c6(0x3b7)](),_0x118cd6;}async['_startDocCollabCursor'](_0x8ee1fd){const _0x1683f9=_0x1eb738,_0x4f8931=await this[_0x1683f9(0x381)]['requireSession'](_0x8ee1fd),_0x573875=this[_0x1683f9(0x3c4)][_0x1683f9(0x1b3)](Se,_0x8ee1fd,_0x4f8931);return _0x573875[_0x1683f9(0x3b7)](),_0x573875;}};x=lt([ie(0x0,a[_0x1eb738(0x224)]),ie(0x1,a['Inject'](a['Injector'])),ie(0x2,a[_0x1eb738(0x1e3)](u[_0x1eb738(0x1ce)]))],x);const K=0x14,De=0xc8,re=0x4,_t=0x5;function ht(_0xcd1da,_0x204828){const _0x206568=_0x1eb738;let {radius:_0x2aa189,width:_0x2cef7c,height:_0x10590a}=_0x204828;_0x2aa189=_0x2aa189!=null?_0x2aa189:0x0,_0x2cef7c=_0x2cef7c!=null?_0x2cef7c:0x1e,_0x10590a=_0x10590a!=null?_0x10590a:0x1e;let _0x57b891=0x0,_0x44b587=0x0,_0x342afd=0x0;_0x57b891=_0x44b587=_0x342afd=Math[_0x206568(0x32f)](_0x2aa189,_0x2cef7c/0x2,_0x10590a/0x2),_0xcd1da[_0x206568(0x1ed)](),_0xcd1da['moveTo'](_0x57b891,0x0),_0xcd1da[_0x206568(0x39c)](_0x2cef7c-_0x44b587,0x0),_0xcd1da[_0x206568(0x3e9)](_0x2cef7c-_0x44b587,_0x44b587,_0x44b587,Math['PI']*0x3/0x2,0x0,!0x1),_0xcd1da[_0x206568(0x39c)](_0x2cef7c,_0x10590a-_0x342afd),_0xcd1da[_0x206568(0x3e9)](_0x2cef7c-_0x342afd,_0x10590a-_0x342afd,_0x342afd,0x0,Math['PI']/0x2,!0x1),_0xcd1da[_0x206568(0x39c)](0x0,_0x10590a),_0xcd1da[_0x206568(0x39c)](0x0,_0x57b891),_0xcd1da[_0x206568(0x3e9)](_0x57b891,_0x57b891,_0x57b891,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0xcd1da['closePath'](),_0x204828[_0x206568(0x288)]&&(_0xcd1da[_0x206568(0x22b)](),_0xcd1da[_0x206568(0x23d)]=_0x204828[_0x206568(0x288)],_0x204828[_0x206568(0x1a0)]===_0x206568(0x39e)?_0xcd1da['fill'](_0x206568(0x39e)):_0xcd1da[_0x206568(0x288)](),_0xcd1da[_0x206568(0x3bd)]());}class te extends p[_0x1eb738(0x2c1)]{constructor(_0x404225,_0x25d2e2){const _0x5493ce=_0x1eb738;super(_0x404225,_0x25d2e2),_(this,_0x5493ce(0x3f1)),_(this,_0x5493ce(0x351)),(this[_0x5493ce(0x3f1)]=_0x25d2e2==null?void 0x0:_0x25d2e2[_0x5493ce(0x3f1)],this['text']=_0x25d2e2==null?void 0x0:_0x25d2e2[_0x5493ce(0x351)]);}static[_0x1eb738(0x31b)](_0x1f198b,_0x181b78){const _0x2b5633=_0x1eb738,{text:_0x48a94d,color:_0x3c3597}=_0x181b78;_0x1f198b[_0x2b5633(0x22b)](),_0x1f198b[_0x2b5633(0x31c)]=_0x2b5633(0x356);const _0x3a3506=_0x1f198b[_0x2b5633(0x34c)](_0x48a94d)['width'],_0x44eee5=Math[_0x2b5633(0x32f)](_0x3a3506+0x2*re,De);ht(_0x1f198b,{'height':K,'radius':0x4,'width':_0x44eee5,'fill':_0x3c3597}),_0x1f198b[_0x2b5633(0x23d)]=_0x2b5633(0x2bc);const _0x1a05b4=re,_0x4b14c3=K-_t,_0x1d715e=De-0x2*re;if(_0x3a3506>_0x1d715e){let _0x37bcf1='',_0x353613=0x0;for(const _0x26b897 of _0x48a94d){const _0x358eae=_0x1f198b['measureText'](_0x26b897)['width'];if(_0x353613+_0x358eae<=_0x1d715e-_0x1f198b[_0x2b5633(0x34c)](_0x2b5633(0x2f6))[_0x2b5633(0x3d2)])_0x37bcf1+=_0x26b897,_0x353613+=_0x358eae;else{_0x37bcf1+=_0x2b5633(0x2f6);break;}}_0x1f198b[_0x2b5633(0x403)](_0x37bcf1,_0x1a05b4,_0x4b14c3);}else _0x1f198b[_0x2b5633(0x403)](_0x48a94d,_0x1a05b4,_0x4b14c3);_0x1f198b[_0x2b5633(0x3bd)]();}[_0x1eb738(0x2a7)](_0x2ee0ed){const _0x437b87=_0x1eb738;te[_0x437b87(0x31b)](_0x2ee0ed,this);}}const oe=_0x1eb738(0x274),ut=_0x1eb738(0x29e),dt='collab-rect-range-',k=0x6,ft=1.5,ae=0x4,St=1.5,It=_0x1eb738(0x223);class Ue{constructor(_0x4efac8,_0x16c78c,_0x18099d,_0xf497af){const _0x507eb6=_0x1eb738;_(this,_0x507eb6(0x354),[]),_(this,_0x507eb6(0x2aa),null),_(this,_0x507eb6(0x20d),null),_(this,_0x507eb6(0x2a9),null),_(this,_0x507eb6(0x1e9),null),_(this,_0x507eb6(0x22d),null),(this[_0x507eb6(0x28f)]=_0x4efac8,this['_scene']=_0x16c78c,this['_docSkeleton']=_0x18099d,this[_0x507eb6(0x401)]=_0xf497af,this[_0x507eb6(0x1cb)]());}set[_0x1eb738(0x38a)](_0x3d7d7c){const _0x206747=_0x1eb738;_0x3d7d7c?(this[_0x206747(0x2a9)]&&this[_0x206747(0x2a9)]['hide'](),this[_0x206747(0x20d)]&&this[_0x206747(0x20d)]['show']()):(this[_0x206747(0x2a9)]&&this[_0x206747(0x2a9)][_0x206747(0x1cc)](),this[_0x206747(0x20d)]&&this[_0x206747(0x20d)]['hide']());}[_0x1eb738(0x392)](){const _0x308309=_0x1eb738;for(const _0x1a55cf of this[_0x308309(0x354)])_0x1a55cf['dispose']();this['_textBubble']&&this[_0x308309(0x20d)][_0x308309(0x392)](),this[_0x308309(0x2a9)]&&this['_anchorDot'][_0x308309(0x392)](),this[_0x308309(0x2aa)]&&this['_anchor'][_0x308309(0x392)](),this[_0x308309(0x22d)]&&this[_0x308309(0x22d)]();}[_0x1eb738(0x1cb)](){const _0x1e0e96=_0x1eb738;var _0x1681df;const {_docSkeleton:_0x25107b,_document:_0x129408}=this,{color:_0x5a0388,name:_0x594f90,ranges:_0x19ecfb}=this[_0x1e0e96(0x28f)],_0xac5e82=_0x129408[_0x1e0e96(0x3b6)](),{docsLeft:_0x37b4af,docsTop:_0x33b9d4}=_0xac5e82,_0x393f37=new b[(_0x1e0e96(0x3a0))](_0xac5e82,_0x25107b);for(const {startOffset:_0x931b20,endOffset:_0xb2bf95,rangeType:_0x452dda,segmentId:_0x413c5b,segmentPage:_0x4de86f,collapsed:_0x4af16c,isActive:_0x4405a9}of _0x19ecfb){const _0x5d3e82=_0x25107b[_0x1e0e96(0x325)](_0x931b20,!0x0,_0x413c5b,_0x4de86f);let _0x168e4e=_0x25107b[_0x1e0e96(0x325)](_0xb2bf95,!0x0,_0x413c5b,_0x4de86f);if(_0x168e4e==null&&(_0x168e4e=_0x25107b[_0x1e0e96(0x325)](_0xb2bf95-0x1,!0x1,_0x413c5b,_0x4de86f)),_0x4405a9){const {contentBoxPointGroup:_0x8f8b3a}=_0x393f37[_0x1e0e96(0x377)](_0x168e4e,_0x168e4e);if(_0x8f8b3a['length']===0x0)continue;this['_drawAnchor'](_0x5a0388,_0x8f8b3a,_0x37b4af,_0x33b9d4,_0x594f90),this[_0x1e0e96(0x22d)]=this[_0x1e0e96(0x36a)]();}if(_0x5d3e82&&_0x168e4e){if(_0x452dda===a[_0x1e0e96(0x2b3)][_0x1e0e96(0x271)]){const _0x435d81=new b[(_0x1e0e96(0x35b))](_0xac5e82,_0x25107b),{pointGroup:_0x39cd4b}=(_0x1681df=_0x435d81[_0x1e0e96(0x377)](_0x5d3e82,_0x168e4e))!=null?_0x1681df:{};if(_0x39cd4b==null||_0x39cd4b['length']===0x0)continue;this['_drawRectRange'](_0x5a0388,_0x39cd4b,_0x37b4af,_0x33b9d4);}else{if(!_0x4af16c){const {borderBoxPointGroup:_0xe7dc03}=_0x393f37[_0x1e0e96(0x377)](_0x5d3e82,_0x168e4e);if(_0xe7dc03[_0x1e0e96(0x1d9)]===0x0)continue;this['_drawTextRange'](_0x5a0388,_0xe7dc03,_0x37b4af,_0x33b9d4);}}}}}[_0x1eb738(0x20e)](_0x146b06,_0x56c07c,_0x39c9b2,_0x54d85b,_0x35c7e5){const _0x599a2d=_0x1eb738,_0x52227a=this[_0x599a2d(0x340)](_0x56c07c),{left:_0x417272,top:_0x233bd6,height:_0x26893c}=_0x52227a,_0x122ad7=this[_0x599a2d(0x2e6)](),_0x323fb0=St/_0x122ad7,_0x404dc4=new p[(_0x599a2d(0x29f))](oe+a[_0x599a2d(0x2c5)]['generateRandomId'](k),{'left':_0x417272+_0x39c9b2-_0x323fb0,'top':_0x233bd6+_0x54d85b,'height':_0x26893c,'width':ft,'fill':_0x146b06||p['getColor'](a['COLORS'][_0x599a2d(0x407)],0x0),'strokeWidth':_0x323fb0,'stroke':It,'evented':!0x0});this[_0x599a2d(0x2aa)]=_0x404dc4,this[_0x599a2d(0x348)]['addObject'](_0x404dc4,b[_0x599a2d(0x3b4)]);const _0x5ba9a6=new p[(_0x599a2d(0x29f))](oe+a['Tools'][_0x599a2d(0x263)](k),{'left':_0x417272+_0x39c9b2-_0x323fb0,'top':_0x233bd6+_0x54d85b-ae/0x2,'height':ae,'width':ae,'fill':_0x146b06||p['getColor'](a[_0x599a2d(0x1d0)][_0x599a2d(0x407)],0x0),'strokeWidth':0x0,'stroke':_0x146b06||p[_0x599a2d(0x33f)](a[_0x599a2d(0x1d0)]['black'],0x0),'evented':!0x1});this[_0x599a2d(0x2a9)]=_0x5ba9a6,this[_0x599a2d(0x348)]['addObject'](_0x5ba9a6,b[_0x599a2d(0x3b4)]);const _0x46bb29=new te(oe+a[_0x599a2d(0x2c5)][_0x599a2d(0x263)](k),{'left':_0x417272+_0x39c9b2-_0x323fb0,'top':_0x233bd6+_0x54d85b-K,'text':_0x35c7e5,'color':_0x146b06});this[_0x599a2d(0x20d)]=_0x46bb29,this['_scene']['addObject'](_0x46bb29,b[_0x599a2d(0x3b4)]),this[_0x599a2d(0x38a)]=!0x1;}[_0x1eb738(0x36a)](){const _0x422b56=_0x1eb738,_0x155d18=this[_0x422b56(0x2aa)][_0x422b56(0x36e)][_0x422b56(0x3ed)](()=>{const _0x95359=_0x422b56;this[_0x95359(0x38a)]=!0x0;}),_0x1e02eb=this['_anchor'][_0x422b56(0x258)][_0x422b56(0x3ed)](()=>{const _0x3c8a76=_0x422b56;this[_0x3c8a76(0x1e9)]&&clearTimeout(this[_0x3c8a76(0x1e9)]),this[_0x3c8a76(0x1e9)]=setTimeout(()=>{const _0x5ef9c8=_0x3c8a76;this[_0x5ef9c8(0x38a)]=!0x1;},0x7d0);});return()=>{const _0x4b0f93=_0x422b56;_0x155d18[_0x4b0f93(0x336)](),_0x1e02eb[_0x4b0f93(0x336)]();};}[_0x1eb738(0x29d)](_0x57944a,_0x7f25cf,_0x53dc5d,_0x49abd1){const _0x1e5262=_0x1eb738,_0x5e6410=new a[(_0x1e5262(0x307))](_0x57944a)['setAlpha'](0.2)[_0x1e5262(0x282)](),_0x557084=new p[(_0x1e5262(0x334))](ut+a['Tools'][_0x1e5262(0x263)](k),{'pointsGroup':_0x7f25cf,'fill':_0x5e6410||p[_0x1e5262(0x33f)](a[_0x1e5262(0x1d0)][_0x1e5262(0x407)],0.2),'left':_0x53dc5d,'top':_0x49abd1,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x1e5262(0x354)]['push'](_0x557084),this[_0x1e5262(0x348)][_0x1e5262(0x232)](_0x557084,b['TEXT_RANGE_LAYER_INDEX']);}[_0x1eb738(0x39f)](_0x4ae49c,_0x1c1dbc,_0x4fb870,_0x5ad348){const _0x2d5fa2=_0x1eb738,_0x3bde08=new a[(_0x2d5fa2(0x307))](_0x4ae49c)[_0x2d5fa2(0x2d4)](0.2)[_0x2d5fa2(0x282)](),_0x4f196b=new p['RegularPolygon'](dt+a[_0x2d5fa2(0x2c5)][_0x2d5fa2(0x263)](k),{'pointsGroup':_0x1c1dbc,'fill':_0x3bde08||p[_0x2d5fa2(0x33f)](a['COLORS'][_0x2d5fa2(0x407)],0.2),'left':_0x4fb870,'top':_0x5ad348,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x2d5fa2(0x354)][_0x2d5fa2(0x316)](_0x4f196b),this[_0x2d5fa2(0x348)]['addObject'](_0x4f196b,b[_0x2d5fa2(0x3b4)]);}['_getAnchorBounding'](_0x4d6bf8){const _0x5846ee=_0x4d6bf8[0x0],_0x2a9ffc=_0x5846ee[0x0],_0x402e45=_0x5846ee[0x2],{x:_0x356b12,y:_0x5d1ff}=_0x2a9ffc,{x:_0xa17586,y:_0x371be9}=_0x402e45;return{'left':_0x356b12,'top':_0x5d1ff,'width':_0xa17586-_0x356b12,'height':_0x371be9-_0x5d1ff};}[_0x1eb738(0x2e6)](){const _0x3e0c94=_0x1eb738,{scaleX:_0x3ebc8b,scaleY:_0xec286c}=this[_0x3e0c94(0x348)][_0x3e0c94(0x1a8)]();return Math[_0x3e0c94(0x1ea)](_0x3ebc8b,_0xec286c);}}var vt=Object[_0x1eb738(0x233)],gt=(_0x345e73,_0xfede76,_0x572486,_0xf57845)=>{const _0x22eda9=_0x1eb738;for(var _0x10a5dd=_0xf57845>0x1?void 0x0:_0xf57845?vt(_0xfede76,_0x572486):_0xfede76,_0x267875=_0x345e73[_0x22eda9(0x1d9)]-0x1,_0x3fa9ff;_0x267875>=0x0;_0x267875--)(_0x3fa9ff=_0x345e73[_0x267875])&&(_0x10a5dd=_0x3fa9ff(_0x10a5dd)||_0x10a5dd);return _0x10a5dd;},V=(_0x7faf3,_0x58b41b)=>(_0xff9a53,_0x508ea5)=>_0x58b41b(_0xff9a53,_0x508ea5,_0x7faf3);let ve=class extends a[_0x1eb738(0x273)]{constructor(_0x2e6d01,_0x3cce91,_0x2e7bd4,_0x78080e,_0x8ba309){const _0x879bb7=_0x1eb738;super(),_(this,_0x879bb7(0x3b1),[]),_(this,'_cursors',[]),(this['_context']=_0x2e6d01,this[_0x879bb7(0x275)]=_0x3cce91,this[_0x879bb7(0x1cd)]=_0x2e7bd4,this[_0x879bb7(0x18b)]=_0x78080e,this[_0x879bb7(0x207)]=_0x8ba309,this[_0x879bb7(0x39a)]());}['_init'](){const _0x12ef75=_0x1eb738,_0x4542f2=this[_0x12ef75(0x234)][_0x12ef75(0x3d5)],_0x130f38=this['_docSkeletonManagerService'];this[_0x12ef75(0x277)](d[_0x12ef75(0x2f8)]([this['_collabCursorController'][_0x12ef75(0x236)](_0x4542f2),this['_themeService'][_0x12ef75(0x278)]])[_0x12ef75(0x21a)]($[_0x12ef75(0x281)](([_0x562d33,_0x157999])=>({'skeleton':_0x130f38[_0x12ef75(0x3b3)](),'cursors':[..._0x562d33['values']()][_0x12ef75(0x2cd)](_0x302a5d=>({..._0x302a5d,'color':_0x157999[_0x302a5d[_0x12ef75(0x3f1)]]}))})))[_0x12ef75(0x3aa)](_0x3004ae=>{const _0x3debc6=_0x12ef75;if(this[_0x3debc6(0x269)](),_0x3004ae){const {skeleton:_0x5b41da,cursors:_0x2901f4}=_0x3004ae;this[_0x3debc6(0x391)](_0x5b41da,_0x2901f4);}})),this[_0x12ef75(0x209)](),this['_initCommandExecutedListener']();}[_0x1eb738(0x391)](_0x20ff10,_0x273d64){const _0x2e809b=_0x1eb738,{scene:_0x1d9455,mainComponent:_0x340e47}=this[_0x2e809b(0x234)],_0x55a4e0=_0x273d64[_0x2e809b(0x281)](_0x573914=>new Ue(_0x573914,_0x1d9455,_0x20ff10,_0x340e47));this[_0x2e809b(0x3b1)]=_0x55a4e0,this[_0x2e809b(0x246)]=_0x273d64;}[_0x1eb738(0x2dd)](){const _0x1d6e9e=_0x1eb738;this['_removeCollabCursors']();const {scene:_0x11635d,mainComponent:_0x3d03f4}=this[_0x1d6e9e(0x234)],_0xd0a308=this['_docSkeletonManagerService']['getSkeleton'](),_0x27f7fc=this[_0x1d6e9e(0x246)]['map'](_0x59bc45=>new Ue(_0x59bc45,_0x11635d,_0xd0a308,_0x3d03f4));this['_cursorShapes']=_0x27f7fc;}[_0x1eb738(0x269)](){const _0x559cf6=_0x1eb738;this[_0x559cf6(0x3b1)]['forEach'](_0x3acb68=>_0x3acb68['dispose']()),this[_0x559cf6(0x3b1)]=[];}[_0x1eb738(0x323)](){const _0x3452f6=_0x1eb738,_0x3e0311=[b[_0x3452f6(0x303)]['id']];this['disposeWithMe'](this[_0x3452f6(0x18b)][_0x3452f6(0x181)](_0x5064e9=>{const _0x53a94b=_0x3452f6;_0x3e0311['includes'](_0x5064e9['id'])&&_0x5064e9[_0x53a94b(0x371)]['unitId']===this[_0x53a94b(0x234)][_0x53a94b(0x3d5)]&&this['_refreshCollabCursors']();}));}[_0x1eb738(0x209)](){const _0xbc2773=_0x1eb738;this['disposeWithMe'](a[_0xbc2773(0x1a9)](this[_0xbc2773(0x234)]['engine'][_0xbc2773(0x25a)])['pipe']($[_0xbc2773(0x183)](_0x3485ad=>_0x3485ad[_0xbc2773(0x3be)]===p[_0xbc2773(0x243)][_0xbc2773(0x327)]),$[_0xbc2773(0x3e0)](0x10))[_0xbc2773(0x3aa)](()=>{const _0x454eea=_0xbc2773;this[_0x454eea(0x2dd)]();}));}};ve=gt([V(0x1,a[_0x1eb738(0x1e3)](Y['DocSkeletonManagerService'])),V(0x2,a[_0x1eb738(0x1e3)](x)),V(0x3,a[_0x1eb738(0x1fb)]),V(0x4,a[_0x1eb738(0x1e3)](a['ThemeService']))],ve);const mt=0x1,Ct=1.5;class Ae extends p[_0x1eb738(0x2c1)]{constructor(_0x115d6b,_0x1bfab3){const _0x2cabfe=_0x1eb738;super(_0x115d6b,_0x1bfab3),_(this,_0x2cabfe(0x2ee)),_(this,_0x2cabfe(0x1d1),!0x1),_(this,'_range'),_(this,'_name',''),_(this,'_labelPosition',_0x2cabfe(0x36b)),_(this,_0x2cabfe(0x17c)),(_0x1bfab3&&this['setShapeProps'](_0x1bfab3),this[_0x2cabfe(0x36e)][_0x2cabfe(0x3ed)](()=>this[_0x2cabfe(0x26e)]({'hovered':!0x0})),this[_0x2cabfe(0x258)]['subscribeEvent'](()=>this['setShapeProps']({'hovered':!0x1})));}[_0x1eb738(0x26e)](_0x22172f){const _0x7f997f=_0x1eb738;var _0x1ef52b,_0x3df203,_0xdf8d3b,_0x27e68c,_0x99a918,_0x3f944e;this[_0x7f997f(0x2ee)]=(_0x1ef52b=_0x22172f[_0x7f997f(0x3f1)])!=null?_0x1ef52b:this[_0x7f997f(0x2ee)],this['_hovered']=(_0x3df203=_0x22172f[_0x7f997f(0x2fc)])!=null?_0x3df203:this[_0x7f997f(0x1d1)],this[_0x7f997f(0x402)]=(_0xdf8d3b=_0x22172f['range'])!=null?_0xdf8d3b:this['_range'],this[_0x7f997f(0x34d)]=(_0x27e68c=_0x22172f[_0x7f997f(0x2cc)])!=null?_0x27e68c:this['_name'],this[_0x7f997f(0x27f)]=(_0x99a918=_0x22172f[_0x7f997f(0x1e1)])!=null?_0x99a918:this[_0x7f997f(0x27f)],this[_0x7f997f(0x17c)]=(_0x3f944e=_0x22172f[_0x7f997f(0x186)])!=null?_0x3f944e:this['_backgroundColor'],this['transformByState']({'width':_0x22172f[_0x7f997f(0x3d2)],'height':_0x22172f[_0x7f997f(0x283)]});}['onMouseMove'](_0x1ac52d){const _0x16c42a=_0x1eb738,{row:_0x1ce3c2,column:_0x32fe29}=_0x1ac52d;if(_0x1ce3c2>=this[_0x16c42a(0x402)][_0x16c42a(0x33e)]&&_0x1ce3c2<=this['_range'][_0x16c42a(0x262)]&&_0x32fe29>=this[_0x16c42a(0x402)][_0x16c42a(0x3ff)]&&_0x32fe29<=this[_0x16c42a(0x402)][_0x16c42a(0x309)]){this[_0x16c42a(0x26e)]({'hovered':!0x0});return;}this[_0x16c42a(0x26e)]({'hovered':!0x1});}[_0x1eb738(0x409)](_0x326f8f){return!0x1;}[_0x1eb738(0x2a7)](_0x3bdcda){const _0x2a7edf=_0x1eb738;p[_0x2a7edf(0x29f)][_0x2a7edf(0x31b)](_0x3bdcda,{'width':this[_0x2a7edf(0x3d2)],'height':this[_0x2a7edf(0x283)],'strokeWidth':Ct,'stroke':this[_0x2a7edf(0x2ee)],'evented':!0x1,'fill':this[_0x2a7edf(0x17c)]}),this[_0x2a7edf(0x1d1)]&&(_0x3bdcda[_0x2a7edf(0x22b)](),_0x3bdcda[_0x2a7edf(0x31e)](0x1,0x0,0x0,0x1,this[_0x2a7edf(0x3d2)],this[_0x2a7edf(0x27f)]===_0x2a7edf(0x1df)?0x0:-0x14),te[_0x2a7edf(0x31b)](_0x3bdcda,{'text':this[_0x2a7edf(0x34d)],'color':this[_0x2a7edf(0x2ee)]}),_0x3bdcda[_0x2a7edf(0x3bd)]());}}var pt=Object['getOwnPropertyDescriptor'],bt=(_0x3c9263,_0x17d65f,_0x231384,_0x577d30)=>{const _0x4175f9=_0x1eb738;for(var _0x222e81=_0x577d30>0x1?void 0x0:_0x577d30?pt(_0x17d65f,_0x231384):_0x17d65f,_0x80db1a=_0x3c9263[_0x4175f9(0x1d9)]-0x1,_0x4cb64a;_0x80db1a>=0x0;_0x80db1a--)(_0x4cb64a=_0x3c9263[_0x80db1a])&&(_0x222e81=_0x4cb64a(_0x222e81)||_0x222e81);return _0x222e81;},ce=(_0x5bcd1e,_0x30d1ce)=>(_0x33ed0a,_0x5c446e)=>_0x30d1ce(_0x33ed0a,_0x5c446e,_0x5bcd1e);const Et=0x1389;let ge=class extends a[_0x1eb738(0x273)]{constructor(_0x382279,_0x15455a,_0x266785,_0x496c3a){const _0x1b02fc=_0x1eb738;super(),_(this,_0x1b02fc(0x246),new Set()),_(this,_0x1b02fc(0x30d),null),(this['_context']=_0x382279,this[_0x1b02fc(0x355)]=_0x15455a,this[_0x1b02fc(0x1cd)]=_0x266785,this[_0x1b02fc(0x207)]=_0x496c3a,this[_0x1b02fc(0x39a)]());}[_0x1eb738(0x39a)](){const _0x49f42b=_0x1eb738;this['_sheetSkeletonManagerService'][_0x49f42b(0x2d3)][_0x49f42b(0x21a)]($[_0x49f42b(0x35d)](this[_0x49f42b(0x376)]),$[_0x49f42b(0x3d7)](_0x3c2bd7=>{const _0x309ec1=_0x49f42b;if(_0x3c2bd7){const _0x3580f2=_0x3c2bd7['sheetId'];return d['combineLatest'](this[_0x309ec1(0x1cd)]['getCollabCursors$'](this['_context'][_0x309ec1(0x3d5)]),this[_0x309ec1(0x207)][_0x309ec1(0x278)])[_0x309ec1(0x21a)]($[_0x309ec1(0x281)](([_0x39de55,_0x31f81a])=>{const _0x2d10b4=_0x309ec1,_0x57f4d2=new Map();return _0x39de55[_0x2d10b4(0x341)]((_0x453c05,_0x19d0c7)=>{const _0x29c3b=_0x2d10b4;if(_0x453c05[_0x29c3b(0x19a)]===_0x3580f2){const _0x8c19d1={..._0x453c05};_0x8c19d1[_0x29c3b(0x3f1)]=_0x31f81a[_0x453c05[_0x29c3b(0x3f1)]],_0x57f4d2[_0x29c3b(0x2a5)](_0x19d0c7,_0x8c19d1);}}),{'skeleton':_0x3c2bd7,'cursors':_0x57f4d2};}));}return d['of']({'skeleton':null,'cursors':new Map()});}))[_0x49f42b(0x3aa)](({skeleton:_0x600b2e,cursors:_0x29d1ab})=>{const _0x5d506c=_0x49f42b;this[_0x5d506c(0x269)](),_0x600b2e&&this[_0x5d506c(0x391)](_0x600b2e,_0x29d1ab);}),this['_sheetSkeletonManagerService']['currentSkeleton$'][_0x49f42b(0x3aa)](_0x7d23fb=>{const _0x58107b=_0x49f42b;if(_0x7d23fb==null)return;const {skeleton:_0x66c705}=_0x7d23fb,{scene:_0x3755ae}=this['_context'];_0x3755ae[_0x58107b(0x227)]['subscribeEvent'](a['debounce'](_0x70c306=>{const _0x59c8f3=_0x58107b;var _0x110a0d,_0x3f1f92;const {offsetX:_0x4aa312,offsetY:_0x3cfa2e}=_0x70c306,{x:_0x5b7654,y:_0x1987a3}=_0x3755ae[_0x59c8f3(0x300)](p['Vector2'][_0x59c8f3(0x1e5)]([_0x4aa312,_0x3cfa2e])),{scaleX:_0x51437b,scaleY:_0x19cd95}=_0x3755ae[_0x59c8f3(0x1a8)](),_0x6accbf=_0x3755ae[_0x59c8f3(0x2e0)](p['SHEET_VIEWPORT_KEY'][_0x59c8f3(0x28e)]),_0x603732=_0x3755ae[_0x59c8f3(0x1b2)](p['Vector2'][_0x59c8f3(0x1e5)]([_0x5b7654,_0x1987a3]),_0x6accbf),_0x104f80=_0x66c705[_0x59c8f3(0x3d0)](_0x4aa312,_0x3cfa2e,_0x51437b,_0x19cd95,_0x603732);((_0x110a0d=this[_0x59c8f3(0x30d)])==null?void 0x0:_0x110a0d[_0x59c8f3(0x366)])===_0x104f80['column']&&((_0x3f1f92=this['_lastPointer'])==null?void 0x0:_0x3f1f92[_0x59c8f3(0x260)])===_0x104f80[_0x59c8f3(0x260)]||this[_0x59c8f3(0x246)]['forEach'](_0x177f49=>{const _0x45ebd2=_0x59c8f3;_0x177f49[_0x45ebd2(0x1f7)](_0x104f80);});},0x64));});}[_0x1eb738(0x391)](_0x231dba,_0x22fba0){const _0x52554f=_0x1eb738;var _0x3b0db8;const _0xeeed56=(_0x3b0db8=this[_0x52554f(0x355)]['getCurrent']())==null?void 0x0:_0x3b0db8['skeleton'];if(!_0xeeed56)return;const _0x5952fc=this[_0x52554f(0x365)]();if(!_0x5952fc)return;this['_cursors'][_0x52554f(0x341)](_0x3b4293=>{_0x3b4293['makeDirty']();});const {scene:_0x944a7a}=_0x5952fc,_0x45dafc=Tt(Array[_0x52554f(0x314)](_0x22fba0[_0x52554f(0x2f0)]()))[_0x52554f(0x281)](_0x58053b=>{const _0x442b40=_0x52554f,{color:_0x1083c1,range:_0x271e7d,name:_0x1de85a,selection:_0xb2d7f7,sheetID:_0x462446}=_0x58053b,{startColumn:_0x33d360,startRow:_0x46cabe,endColumn:_0x80caab,endRow:_0x3a7e45}=_0x271e7d,_0xc2e495=G[_0x442b40(0x1a1)](_0x46cabe,_0x33d360,_0x944a7a,_0xeeed56),_0x169915=G['getCoordByCell'](_0x3a7e45,_0x80caab,_0x944a7a,_0xeeed56),{columnHeaderHeightAndMarginTop:_0x583e76}=_0xeeed56,{startX:_0x35c878,startY:_0x7507}=_0xc2e495,{endX:_0x308331,endY:_0x5b2f72}=_0x169915,_0x3d5108=_0x308331-_0x35c878,_0x5ed6a0=_0x5b2f72-_0x7507,_0x5cc8a4={'labelPosition':_0x7507-_0x583e76>=K?'top':_0x442b40(0x1df),'sheetID':_0x462446,'range':_0x271e7d,'color':_0x1083c1,'name':_0x1de85a,'selection':_0xb2d7f7,'left':_0x35c878,'top':_0x7507,'width':_0x3d5108,'height':_0x5ed6a0,'evented':!0x1,'zIndex':Et};return new Ae(_0x1de85a,_0x5cc8a4);});_0x944a7a[_0x52554f(0x2db)](_0x45dafc,mt),this[_0x52554f(0x246)]=new Set(_0x45dafc);}['_removeCollabCursors'](){const _0xd829d4=_0x1eb738;var _0x341900;(_0x341900=this['_cursors'])==null||_0x341900[_0xd829d4(0x341)](_0x9610f6=>_0x9610f6[_0xd829d4(0x392)]());}[_0x1eb738(0x365)](){const _0x1b1ea2=_0x1eb738;return G[_0x1b1ea2(0x29a)](this[_0x1b1ea2(0x234)][_0x1b1ea2(0x384)],this[_0x1b1ea2(0x234)]);}};ge=bt([ce(0x1,a['Inject'](G[_0x1eb738(0x2b1)])),ce(0x2,a[_0x1eb738(0x1e3)](x)),ce(0x3,a[_0x1eb738(0x1e3)](a[_0x1eb738(0x24d)]))],ge);function Tt(_0x556c55){const _0x5dc602=_0x1eb738,_0x5e5590=new Map();return _0x556c55[_0x5dc602(0x341)](_0x14f48b=>{const _0x548815=_0x5dc602;if(_0x5e5590['has'](_0x14f48b[_0x548815(0x23b)])){const _0x2724a1=_0x5e5590['get'](_0x14f48b[_0x548815(0x23b)]);_0x2724a1[_0x548815(0x2cc)]+=',\x20'+_0x14f48b[_0x548815(0x2cc)];}else _0x5e5590[_0x548815(0x2a5)](_0x14f48b[_0x548815(0x23b)],_0x14f48b);}),Array[_0x5dc602(0x314)](_0x5e5590[_0x5dc602(0x2f0)]());}var E=function(){const _0x562a9c=_0x1eb738;return E=Object[_0x562a9c(0x1af)]||function(_0x15f19b){const _0x597590=_0x562a9c;for(var _0x52d958,_0x25090c=0x1,_0x1b6417=arguments[_0x597590(0x1d9)];_0x25090c<_0x1b6417;_0x25090c++){_0x52d958=arguments[_0x25090c];for(var _0x58178a in _0x52d958)Object[_0x597590(0x23c)][_0x597590(0x22a)]['call'](_0x52d958,_0x58178a)&&(_0x15f19b[_0x58178a]=_0x52d958[_0x58178a]);}return _0x15f19b;},E[_0x562a9c(0x37c)](this,arguments);},Rt=function(_0x4bb238,_0x4876d5){const _0x26beae=_0x1eb738;var _0x1e7a9a={};for(var _0xb3db3 in _0x4bb238)Object['prototype']['hasOwnProperty']['call'](_0x4bb238,_0xb3db3)&&_0x4876d5[_0x26beae(0x32d)](_0xb3db3)<0x0&&(_0x1e7a9a[_0xb3db3]=_0x4bb238[_0xb3db3]);if(_0x4bb238!=null&&typeof Object[_0x26beae(0x194)]==_0x26beae(0x37b)){for(var _0x5cff08=0x0,_0xb3db3=Object[_0x26beae(0x194)](_0x4bb238);_0x5cff08<_0xb3db3[_0x26beae(0x1d9)];_0x5cff08++)_0x4876d5[_0x26beae(0x32d)](_0xb3db3[_0x5cff08])<0x0&&Object[_0x26beae(0x23c)][_0x26beae(0x18f)][_0x26beae(0x3ae)](_0x4bb238,_0xb3db3[_0x5cff08])&&(_0x1e7a9a[_0xb3db3[_0x5cff08]]=_0x4bb238[_0xb3db3[_0x5cff08]]);}return _0x1e7a9a;},be=M[_0x1eb738(0x38d)](function(_0x76459c,_0x26c305){const _0x4c3265=_0x1eb738;var _0x1fda8b=_0x76459c[_0x4c3265(0x406)],_0x1de9e1=_0x76459c['id'],_0xadbbb6=_0x76459c['className'],_0x145ba5=_0x76459c['extend'],_0x528aad=Rt(_0x76459c,['icon','id',_0x4c3265(0x1db),_0x4c3265(0x1f0)]),_0x521cc7='univerjs-icon\x20univerjs-icon-'['concat'](_0x1de9e1,'\x20')[_0x4c3265(0x3ac)](_0xadbbb6||'')[_0x4c3265(0x33a)](),_0x318c15=M[_0x4c3265(0x2fe)]('_'[_0x4c3265(0x3ac)](Ut()));return ye(_0x1fda8b,''['concat'](_0x1de9e1),{'defIds':_0x1fda8b['defIds'],'idSuffix':_0x318c15['current']},E({'ref':_0x26c305,'className':_0x521cc7},_0x528aad),_0x145ba5);});function ye(_0x18a084,_0x40a843,_0x3bdd4f,_0x38745f,_0x2d6f02){const _0x419198=_0x1eb738;return M['createElement'](_0x18a084[_0x419198(0x280)],E(E({'key':_0x40a843},Ot(_0x18a084,_0x3bdd4f,_0x2d6f02)),_0x38745f),(Dt(_0x18a084,_0x3bdd4f)[_0x419198(0x362)]||[])['map'](function(_0x110d6d,_0x440357){const _0x116d9f=_0x419198;return ye(_0x110d6d,''[_0x116d9f(0x3ac)](_0x40a843,'-')[_0x116d9f(0x3ac)](_0x18a084['tag'],'-')[_0x116d9f(0x3ac)](_0x440357),_0x3bdd4f,void 0x0,_0x2d6f02);}));}function Ot(_0x5f3a9e,_0x5f55d6,_0x3d99d7){const _0x42134f=_0x1eb738;var _0x3be610=E({},_0x5f3a9e[_0x42134f(0x2ae)]);_0x3d99d7!=null&&_0x3d99d7[_0x42134f(0x1d7)]&&_0x3be610['fill']===_0x42134f(0x1d7)&&(_0x3be610[_0x42134f(0x288)]=_0x3d99d7[_0x42134f(0x1d7)]),_0x5f3a9e['tag']===_0x42134f(0x2d7)&&_0x3be610['id']&&(_0x3be610['id']=_0x3be610['id']+_0x5f55d6[_0x42134f(0x3e2)]),Object[_0x42134f(0x184)](_0x3be610)['forEach'](function(_0x29081a){const _0x2798d0=_0x42134f;var _0x3fe449=_0x29081a[0x0],_0x9e0646=_0x29081a[0x1];_0x3fe449==='mask'&&typeof _0x9e0646==_0x2798d0(0x33d)&&(_0x3be610[_0x3fe449]=_0x9e0646[_0x2798d0(0x17a)](/url\(#(.*)\)/,_0x2798d0(0x40b)[_0x2798d0(0x3ac)](_0x5f55d6[_0x2798d0(0x3e2)],')')));});var _0x3171df=_0x5f55d6['defIds'];return!_0x3171df||_0x3171df['length']===0x0||(_0x5f3a9e[_0x42134f(0x280)]==='use'&&_0x3be610[_0x42134f(0x30a)]&&(_0x3be610[_0x42134f(0x30a)]=_0x3be610['xlink:href']+_0x5f55d6[_0x42134f(0x3e2)]),Object['entries'](_0x3be610)['forEach'](function(_0x261f4b){const _0x2a5b76=_0x42134f;var _0x319212=_0x261f4b[0x0],_0x3309ba=_0x261f4b[0x1];typeof _0x3309ba==_0x2a5b76(0x33d)&&(_0x3be610[_0x319212]=_0x3309ba[_0x2a5b76(0x17a)](/url\(#(.*)\)/,_0x2a5b76(0x40b)['concat'](_0x5f55d6[_0x2a5b76(0x3e2)],')')));})),_0x3be610;}function Dt(_0x4d8620,_0xff81ac){const _0x139677=_0x1eb738;var _0xf463ee,_0x569ae7=_0xff81ac[_0x139677(0x1e4)];return!_0x569ae7||_0x569ae7[_0x139677(0x1d9)]===0x0?_0x4d8620:_0x4d8620['tag']===_0x139677(0x358)&&(!((_0xf463ee=_0x4d8620[_0x139677(0x362)])===null||_0xf463ee===void 0x0)&&_0xf463ee['length'])?E(E({},_0x4d8620),{'children':_0x4d8620[_0x139677(0x362)][_0x139677(0x281)](function(_0xd1d7ff){const _0x3a8b7e=_0x139677;return typeof _0xd1d7ff['attrs']['id']==_0x3a8b7e(0x33d)&&_0x569ae7&&_0x569ae7['indexOf'](_0xd1d7ff[_0x3a8b7e(0x2ae)]['id'])>-0x1?E(E({},_0xd1d7ff),{'attrs':E(E({},_0xd1d7ff[_0x3a8b7e(0x2ae)]),{'id':_0xd1d7ff[_0x3a8b7e(0x2ae)]['id']+_0xff81ac[_0x3a8b7e(0x3e2)]})}):_0xd1d7ff;})}):_0x4d8620;}function Ut(){const _0x4f5db0=_0x1eb738;return Math[_0x4f5db0(0x344)]()[_0x4f5db0(0x3ce)](0x24)[_0x4f5db0(0x2d5)](0x2,0x8);}be[_0x1eb738(0x201)]=_0x1eb738(0x215);var Nt={'tag':_0x1eb738(0x36c),'attrs':{'fill':_0x1eb738(0x3eb),'viewBox':_0x1eb738(0x2a0),'width':_0x1eb738(0x20c),'height':_0x1eb738(0x20c)},'children':[{'tag':'g','attrs':{'clipPath':'url(#off-line-single_clip0_910_343)'},'children':[{'tag':_0x1eb738(0x3a4),'attrs':{'stroke':'currentColor','d':_0x1eb738(0x1a2),'strokeLinecap':_0x1eb738(0x1c1),'strokeLinejoin':_0x1eb738(0x1c1),'strokeWidth':1.2}}]},{'tag':'defs','attrs':{},'children':[{'tag':_0x1eb738(0x3f9),'attrs':{'id':'off-line-single_clip0_910_343'},'children':[{'tag':_0x1eb738(0x3a4),'attrs':{'fill':_0x1eb738(0x1d5),'d':'M0\x200H16V16H0z'}}]}]}],'defIds':[_0x1eb738(0x23e)]},$e=M['forwardRef'](function(_0x3d88e0,_0xcd7c42){const _0x30d72b=_0x1eb738;return M[_0x30d72b(0x2ad)](be,Object[_0x30d72b(0x1af)]({},_0x3d88e0,{'id':_0x30d72b(0x265),'ref':_0xcd7c42,'icon':Nt}));});$e['displayName']=_0x1eb738(0x19d);var Mt={'tag':'svg','attrs':{'fill':_0x1eb738(0x3eb),'viewBox':_0x1eb738(0x191),'width':'1em','height':_0x1eb738(0x20c)},'children':[{'tag':'g','attrs':{'clipPath':_0x1eb738(0x353)},'children':[{'tag':'path','attrs':{'stroke':_0x1eb738(0x200),'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':_0x1eb738(0x1c1),'strokeLinejoin':_0x1eb738(0x1c1),'strokeWidth':1.2}}]},{'tag':_0x1eb738(0x358),'attrs':{},'children':[{'tag':_0x1eb738(0x3f9),'attrs':{'id':'on-line-single_clip0_910_349'},'children':[{'tag':_0x1eb738(0x3a4),'attrs':{'fill':_0x1eb738(0x1d5),'d':_0x1eb738(0x1ec),'transform':_0x1eb738(0x380)}}]}]}],'defIds':[_0x1eb738(0x193)]},xe=M[_0x1eb738(0x38d)](function(_0x4af318,_0x15c732){const _0x28497a=_0x1eb738;return M[_0x28497a(0x2ad)](be,Object[_0x28497a(0x1af)]({},_0x4af318,{'id':'on-line-single','ref':_0x15c732,'icon':Mt}));});xe[_0x1eb738(0x201)]=_0x1eb738(0x3f7);const Pt=_0x1eb738(0x3fb),Lt=_0x1eb738(0x3a8),wt=_0x1eb738(0x24a),At='univer-online',yt=_0x1eb738(0x2c0),H={'onlineStatusIcon':Pt,'onlineStatusTitle':Lt,'onlineStatus':wt,'online':At,'offline':yt};function $t(_0xf31b6e){const _0x5678e0=_0x1eb738;switch(_0xf31b6e){case u[_0x5678e0(0x2b7)][_0x5678e0(0x352)]:return'collabStatus.offline';case u[_0x5678e0(0x2b7)][_0x5678e0(0x396)]:return'collabStatus.conflict';case u[_0x5678e0(0x2b7)][_0x5678e0(0x203)]:return _0x5678e0(0x25f);case u['CollaborationStatus'][_0x5678e0(0x2b8)]:return _0x5678e0(0x198);case u[_0x5678e0(0x2b7)][_0x5678e0(0x311)]:case u[_0x5678e0(0x2b7)][_0x5678e0(0x1c6)]:return _0x5678e0(0x2f4);case u['CollaborationStatus'][_0x5678e0(0x319)]:case u['CollaborationStatus'][_0x5678e0(0x272)]:return'collabStatus.synced';}}function je(_0x1f88fb){const _0x1cac94=_0x1eb738,{status$:_0x11a092}=_0x1f88fb,_0x1d683a=R[_0x1cac94(0x240)](_0x11a092,u['CollaborationStatus'][_0x1cac94(0x2b8)]),_0x37adfe=R['useDependency'](a[_0x1cac94(0x3e1)]),_0x2db47f=R[_0x1cac94(0x3af)](u[_0x1cac94(0x1ce)]),_0x3fbf32=_0x1d683a!==u['CollaborationStatus']['OFFLINE'],_0x37de86=_0x37adfe['t']($t(_0x1d683a)),_0x3aa28a=T['clsx'](H[_0x1cac94(0x245)],{[H['online']]:_0x3fbf32,[H['offline']]:!_0x3fbf32}),_0x47fe1b=_0x3fbf32?L[_0x1cac94(0x26c)](xe,{}):L[_0x1cac94(0x26c)]($e,{}),_0x361adb=M[_0x1cac94(0x3d9)](()=>{const _0x349d39=_0x1cac94;_0x3fbf32||_0x2db47f[_0x349d39(0x22f)]();},[_0x3fbf32,_0x2db47f]);function _0x526d9d(){const _0x45eed7=_0x1cac94;return L[_0x45eed7(0x1c3)](_0x45eed7(0x2ac),{'className':T[_0x45eed7(0x3e5)](_0x3aa28a,_0x45eed7(0x329)),'onClick':_0x361adb,'children':[L[_0x45eed7(0x26c)]('div',{'className':H[_0x45eed7(0x2f1)],'children':_0x47fe1b}),L[_0x45eed7(0x26c)](_0x45eed7(0x2ac),{'className':H['onlineStatusTitle'],'children':_0x37de86})]});}return _0x3fbf32?_0x526d9d():L[_0x1cac94(0x26c)](T[_0x1cac94(0x1bf)],{'title':_0x37adfe['t']('collab-client.tooltip.reconnect'),'children':_0x526d9d()});}var xt=Object[_0x1eb738(0x233)],jt=(_0x415a92,_0x1a1c29,_0xcde2d0,_0x48b8ea)=>{for(var _0x32d61d=_0x48b8ea>0x1?void 0x0:_0x48b8ea?xt(_0x1a1c29,_0xcde2d0):_0x1a1c29,_0x2af1bf=_0x415a92['length']-0x1,_0x1d6fd4;_0x2af1bf>=0x0;_0x2af1bf--)(_0x1d6fd4=_0x415a92[_0x2af1bf])&&(_0x32d61d=_0x1d6fd4(_0x32d61d)||_0x32d61d);return _0x32d61d;},X=(_0x1d5bce,_0x394a07)=>(_0x376a68,_0x5f8240)=>_0x394a07(_0x376a68,_0x5f8240,_0x1d5bce);exports[_0x1eb738(0x398)]=class extends a[_0x1eb738(0x1be)]{constructor(_0x59b564,_0x5d95af,_0x25a4b0,_0xc11dbb){const _0x5eca56=_0x1eb738;super(),_(this,'_status$',new d[(_0x5eca56(0x292))](u[_0x5eca56(0x2b7)][_0x5eca56(0x2b8)])),(this[_0x5eca56(0x204)]=_0x59b564,this[_0x5eca56(0x3c4)]=_0x5d95af,this[_0x5eca56(0x219)]=_0x25a4b0,this[_0x5eca56(0x30b)]=_0xc11dbb,this[_0x5eca56(0x1a6)](),this['_initStatusListener']());}['_initStatusListener'](){const _0x440c8b=_0x1eb738;this[_0x440c8b(0x277)](this['_univerInstanceService'][_0x440c8b(0x38b)][_0x440c8b(0x21a)](d[_0x440c8b(0x3d7)](()=>{const _0x163d20=_0x440c8b,_0x4a3382=this['_univerInstanceService'][_0x163d20(0x225)]();return _0x4a3382?this[_0x163d20(0x219)]['getCollabEntity$'](_0x4a3382[_0x163d20(0x2b2)]()):d['of'](null);}),d['switchMap'](_0x4b7fdb=>_0x4b7fdb?_0x4b7fdb['status$']:d['of'](u[_0x440c8b(0x2b7)][_0x440c8b(0x2b8)])))[_0x440c8b(0x3aa)](_0x17d38f=>{const _0x1f35ae=_0x440c8b;this[_0x1f35ae(0x1b9)][_0x1f35ae(0x1f6)](_0x17d38f);}));}[_0x1eb738(0x1a6)](){const _0x167a60=_0x1eb738;this[_0x167a60(0x277)](this[_0x167a60(0x30b)][_0x167a60(0x27a)](R[_0x167a60(0x3b0)][_0x167a60(0x38f)],()=>R[_0x167a60(0x3a9)](Bt({'status$':this[_0x167a60(0x1b9)][_0x167a60(0x205)]()}),this[_0x167a60(0x3c4)])));}},exports[_0x1eb738(0x398)]=jt([X(0x0,a[_0x1eb738(0x224)]),X(0x1,a[_0x1eb738(0x1e3)](a[_0x1eb738(0x2b4)])),X(0x2,a[_0x1eb738(0x1e3)](u[_0x1eb738(0x32a)])),X(0x3,R[_0x1eb738(0x2e5)])],exports[_0x1eb738(0x398)]);function Bt(_0x574c79){const {status$:_0x13749a}=_0x574c79;return function(){const _0x2d75fc=_0x1aec;return L[_0x2d75fc(0x26c)](je,{'status$':_0x13749a});};}var kt=Object['getOwnPropertyDescriptor'],Ht=(_0x3977b3,_0x29a29e,_0x34a666,_0x511b9e)=>{const _0x4b6923=_0x1eb738;for(var _0x562f16=_0x511b9e>0x1?void 0x0:_0x511b9e?kt(_0x29a29e,_0x34a666):_0x29a29e,_0x3e773b=_0x3977b3[_0x4b6923(0x1d9)]-0x1,_0x5798c7;_0x3e773b>=0x0;_0x3e773b--)(_0x5798c7=_0x3977b3[_0x3e773b])&&(_0x562f16=_0x5798c7(_0x562f16)||_0x562f16);return _0x562f16;},y=(_0x5bd24c,_0x53e562)=>(_0x2b2272,_0x5575cd)=>_0x53e562(_0x2b2272,_0x5575cd,_0x5bd24c);let z=class extends a[_0x1eb738(0x1be)]{constructor(_0x45fda4,_0x52387a,_0x5e4c90,_0x1b64a2,_0x3d81c0,_0x45766d){const _0x204eff=_0x1eb738;super(),this[_0x204eff(0x363)]=_0x45fda4,this[_0x204eff(0x2e9)]=_0x52387a,this[_0x204eff(0x267)]=_0x5e4c90,this[_0x204eff(0x30e)]=_0x1b64a2,this[_0x204eff(0x408)]=_0x3d81c0,this[_0x204eff(0x2e3)]=_0x45766d,this[_0x204eff(0x18c)](),this[_0x204eff(0x1f4)]();}['_setupBeforeClosingHandler'](){const _0x12cb3b=_0x1eb738;this['disposeWithMe'](this[_0x12cb3b(0x363)][_0x12cb3b(0x1f8)](()=>{const _0x436a30=_0x12cb3b;if(this[_0x436a30(0x2e9)][_0x436a30(0x290)][_0x436a30(0x3e3)])return this['_localeService']['t']('collaboration-client.offline-data-not-saved');}));}[_0x1eb738(0x1f4)](){const _0x49c1c2=_0x1eb738;this[_0x49c1c2(0x277)](this['_collaborationUIEventService'][_0x49c1c2(0x304)][_0x49c1c2(0x3aa)](_0x63dec5=>{const _0x3c6e21=_0x49c1c2;_0x63dec5['id']===u['CollaborationUIEventId'][_0x3c6e21(0x3a1)]&&this[_0x3c6e21(0x30e)][_0x3c6e21(0x1cc)]({'type':T[_0x3c6e21(0x3a5)][_0x3c6e21(0x19c)],'content':this[_0x3c6e21(0x2e3)]['t']('collaboration.single-unit.warning')}),_0x63dec5['id']===u[_0x3c6e21(0x2ba)][_0x3c6e21(0x1f1)]&&this[_0x3c6e21(0x30e)][_0x3c6e21(0x1cc)]({'type':T[_0x3c6e21(0x3a5)][_0x3c6e21(0x19c)],'content':this[_0x3c6e21(0x2e3)]['t'](_0x3c6e21(0x3bc))}),_0x63dec5['id']===u['CollaborationUIEventId']['PERMISSION_DENIED']&&this['_notificationService']['show']({'title':this[_0x3c6e21(0x2e3)]['t'](_0x3c6e21(0x3de)),'content':this[_0x3c6e21(0x2e3)]['t'](_0x3c6e21(0x349)),'type':_0x3c6e21(0x373),'duration':0x0}),_0x63dec5['id']===u[_0x3c6e21(0x2ba)][_0x3c6e21(0x396)]&&this[_0x3c6e21(0x30e)][_0x3c6e21(0x1cc)]({'type':T[_0x3c6e21(0x3a5)]['Error'],'content':this[_0x3c6e21(0x2e3)]['t']('collaboration.closeRoom')+'('+_0x63dec5[_0x3c6e21(0x397)]+')'}),_0x63dec5['id']===u[_0x3c6e21(0x2ba)][_0x3c6e21(0x3d8)]&&this['_messageService'][_0x3c6e21(0x1cc)]({'type':T[_0x3c6e21(0x3a5)][_0x3c6e21(0x19c)],'content':this[_0x3c6e21(0x2e3)]['t'](_0x63dec5[_0x3c6e21(0x397)]||'')}),_0x63dec5['id']===u[_0x3c6e21(0x2ba)][_0x3c6e21(0x2b5)]&&this['_messageService'][_0x3c6e21(0x1cc)]({'type':T[_0x3c6e21(0x3a5)]['Warning'],'content':this['_localeService']['t'](_0x3c6e21(0x2f2))}),_0x63dec5['id']===u[_0x3c6e21(0x2ba)][_0x3c6e21(0x39d)]&&this[_0x3c6e21(0x30e)][_0x3c6e21(0x1cc)]({'type':T[_0x3c6e21(0x3a5)][_0x3c6e21(0x231)],'content':this[_0x3c6e21(0x2e3)]['t'](_0x3c6e21(0x208))}),_0x63dec5['id']===u[_0x3c6e21(0x2ba)][_0x3c6e21(0x2ff)]&&this[_0x3c6e21(0x30e)]['show']({'type':T['MessageType'][_0x3c6e21(0x231)],'content':this[_0x3c6e21(0x2e3)]['t']('session.collaboration-timeout')});}));}};z=Ht([y(0x0,R[_0x1eb738(0x242)]),y(0x1,u['ILocalCacheService']),y(0x2,a[_0x1eb738(0x1e3)](u[_0x1eb738(0x264)])),y(0x3,R[_0x1eb738(0x330)]),y(0x4,R['INotificationService']),y(0x5,a[_0x1eb738(0x1e3)](a['LocaleService']))],z);const Wt=_0x1eb738(0x1c8),Ne={},Ee=a[_0x1eb738(0x1fe)](_0x1eb738(0x364));var Ft=Object[_0x1eb738(0x233)],Yt=(_0x168224,_0x43850,_0x221677,_0x11f5ab)=>{const _0x57c9d2=_0x1eb738;for(var _0x4e38cb=_0x11f5ab>0x1?void 0x0:_0x11f5ab?Ft(_0x43850,_0x221677):_0x43850,_0x354c5f=_0x168224[_0x57c9d2(0x1d9)]-0x1,_0x274a8e;_0x354c5f>=0x0;_0x354c5f--)(_0x274a8e=_0x168224[_0x354c5f])&&(_0x4e38cb=_0x274a8e(_0x4e38cb)||_0x4e38cb);return _0x4e38cb;},W=(_0x501685,_0x433751)=>(_0xc7f73b,_0x5e4a6c)=>_0x433751(_0xc7f73b,_0x5e4a6c,_0x501685);exports[_0x1eb738(0x210)]=class extends a[_0x1eb738(0x273)]{constructor(_0x1c5ed5,_0x44bff9,_0x40aca5,_0x5b23b3,_0x5b700a){const _0xe12739=_0x1eb738;super(),this[_0xe12739(0x218)]=_0x1c5ed5,this[_0xe12739(0x337)]=_0x44bff9,this['_commandService']=_0x40aca5,this[_0xe12739(0x36d)]=_0x5b23b3,_0x5b700a?_0x5b700a==null||_0x5b700a[_0xe12739(0x2af)]()[_0xe12739(0x2ed)](()=>this[_0xe12739(0x39a)]()):(this[_0xe12739(0x337)][_0xe12739(0x339)]('[CollaborationDataLoaderController]',_0xe12739(0x31a)),this[_0xe12739(0x39a)]());}async[_0x1eb738(0x39a)](){const _0x49cd59=_0x1eb738,_0x7052c7=this[_0x49cd59(0x218)][_0x49cd59(0x313)](_0x49cd59(0x384)),_0x54ae6b=this[_0x49cd59(0x218)][_0x49cd59(0x313)](_0x49cd59(0x3be)),_0x163c6c=this[_0x49cd59(0x218)]['getParam'](_0x49cd59(0x35a));if(!_0x7052c7||!_0x54ae6b){this[_0x49cd59(0x337)][_0x49cd59(0x339)](_0x49cd59(0x21e),_0x49cd59(0x1c4));return;}const _0x1e9051=await this[_0x49cd59(0x36d)]['loadUnit'](_0x7052c7,Number(_0x54ae6b),_0x163c6c);_0x1e9051&&_0x1e9051 instanceof a['Workbook']&&this[_0x49cd59(0x24b)](_0x1e9051);}async[_0x1eb738(0x24b)](_0x576293){const _0x584ff1=_0x1eb738;await this[_0x584ff1(0x1b0)](_0x576293),_0x576293[_0x584ff1(0x220)][_0x584ff1(0x21a)](d['takeUntil'](this[_0x584ff1(0x376)]))[_0x584ff1(0x3aa)](_0x140035=>{const _0x4dfd84=_0x584ff1;_0x140035&&this[_0x4dfd84(0x1d6)](_0x140035);}),this[_0x584ff1(0x218)]['urlChange$'][_0x584ff1(0x21a)](d[_0x584ff1(0x35d)](this[_0x584ff1(0x376)]))[_0x584ff1(0x3aa)](()=>this[_0x584ff1(0x1b0)](_0x576293));}[_0x1eb738(0x1d6)](_0x3971fd,_0x32ed4b=!0x1){const _0x31c6ba=_0x1eb738,_0x2e1106=this[_0x31c6ba(0x218)]['getParam'](_0x31c6ba(0x35a));_0x3971fd['getSheetId']()!==_0x2e1106&&this[_0x31c6ba(0x218)][_0x31c6ba(0x3e4)]('subunit',_0x3971fd[_0x31c6ba(0x399)](),_0x32ed4b);}async[_0x1eb738(0x1b0)](_0x298ff8){const _0x4ef2ca=_0x1eb738;var _0x28e704;const _0x126b8a=this[_0x4ef2ca(0x218)]['getParam'](_0x4ef2ca(0x35a));if(!_0x126b8a||!_0x298ff8[_0x4ef2ca(0x38e)](_0x126b8a)){const _0x59a1bb=_0x298ff8[_0x4ef2ca(0x216)]()[0x0],_0x15de6a=_0x298ff8[_0x4ef2ca(0x38e)](_0x59a1bb);if(!_0x15de6a)return;this[_0x4ef2ca(0x1d6)](_0x15de6a,!0x0),await this[_0x4ef2ca(0x18b)][_0x4ef2ca(0x230)](g['SetWorksheetActivateCommand']['id'],{'unitId':_0x298ff8['getUnitId'](),'subUnitId':_0x59a1bb});return;}((_0x28e704=_0x298ff8[_0x4ef2ca(0x228)]())==null?void 0x0:_0x28e704[_0x4ef2ca(0x399)]())!==_0x126b8a&&await this[_0x4ef2ca(0x18b)]['executeCommand'](g[_0x4ef2ca(0x21c)]['id'],{'unitId':_0x298ff8['getUnitId'](),'subUnitId':_0x126b8a});}},exports[_0x1eb738(0x210)]=Yt([W(0x0,Ee),W(0x1,a['ILogService']),W(0x2,a[_0x1eb738(0x1fb)]),W(0x3,a[_0x1eb738(0x1e3)](u[_0x1eb738(0x3f2)])),W(0x4,a[_0x1eb738(0x1e7)](Ke[_0x1eb738(0x1b4)]))],exports[_0x1eb738(0x210)]);var Vt=Object[_0x1eb738(0x233)],Xt=(_0x2725f9,_0x2e0b16,_0x1e7028,_0x13f63a)=>{const _0x3f48e9=_0x1eb738;for(var _0x33bf17=_0x13f63a>0x1?void 0x0:_0x13f63a?Vt(_0x2e0b16,_0x1e7028):_0x2e0b16,_0x5d727f=_0x2725f9[_0x3f48e9(0x1d9)]-0x1,_0x3fbaf4;_0x5d727f>=0x0;_0x5d727f--)(_0x3fbaf4=_0x2725f9[_0x5d727f])&&(_0x33bf17=_0x3fbaf4(_0x33bf17)||_0x33bf17);return _0x33bf17;},le=(_0x2bcd30,_0x5c27a4)=>(_0x14809a,_0x55f0a3)=>_0x5c27a4(_0x14809a,_0x55f0a3,_0x2bcd30);let J=class{constructor(_0x46f9e3,_0x5f3de3,_0x1fae74){const _0x3abcab=_0x1eb738;this[_0x3abcab(0x3c4)]=_0x46f9e3,this['_transformService']=_0x5f3de3,this[_0x3abcab(0x383)]=_0x1fae74;}[_0x1eb738(0x1ac)](_0x2a2833){const _0x5b96c2=_0x1eb738;this[_0x5b96c2(0x1d8)](_0x2a2833),this[_0x5b96c2(0x360)](_0x2a2833);}[_0x1eb738(0x3b8)](_0x4b69b7){const _0x380b12=_0x1eb738,{unitID:_0x1f70e2}=_0x4b69b7,_0x330ba2=this['_renderManagerService']['getRenderById'](_0x1f70e2)[_0x380b12(0x2ab)](b['DocIMEInputManagerService']),{redoCache:_0x251e66}=_0x330ba2[_0x380b12(0x3f0)]();if(_0x251e66['length']===0x0)return _0x4b69b7;let _0x596b6d=a['Tools'][_0x380b12(0x1fa)](_0x4b69b7['mutations'][0x0]);for(let _0x553b85=0x0;_0x553b85<_0x251e66['length'];_0x553b85++){const _0x10a4cd={'id':_0x380b12(0x2f3),'params':{..._0x251e66[_0x553b85]}},_0x4af59d=this[_0x380b12(0x33c)][_0x380b12(0x192)](_0x596b6d,_0x10a4cd,!0x1);if(m[_0x380b12(0x18a)](_0x4af59d))throw _0x4af59d[_0x380b12(0x373)];_0x596b6d=_0x4af59d[_0x380b12(0x3c3)];}return{...a['Tools'][_0x380b12(0x1fa)](_0x4b69b7),'mutations':[_0x596b6d]};}[_0x1eb738(0x1d8)](_0x135905){const _0x2ae823=_0x1eb738,{unitID:_0x419012}=_0x135905,_0x539d50=this[_0x2ae823(0x383)][_0x2ae823(0x19e)](_0x419012)[_0x2ae823(0x2ab)](b['DocIMEInputManagerService']),{undoCache:_0x2c5bf0,redoCache:_0xe1a6df}=_0x539d50[_0x2ae823(0x3f0)]();if(_0x2c5bf0[_0x2ae823(0x1d9)]===0x0||_0xe1a6df['length']===0x0)return;const _0x357c38=[],_0x41b041=[];let _0x2e171b=a[_0x2ae823(0x2c5)][_0x2ae823(0x1fa)](_0x135905[_0x2ae823(0x25d)][0x0]),_0x1a36c9=a[_0x2ae823(0x2c5)]['deepClone'](_0x135905[_0x2ae823(0x25d)][0x0]);for(let _0x3ee594=_0x2c5bf0[_0x2ae823(0x1d9)]-0x1;_0x3ee594>=0x0;_0x3ee594--){const _0x26118f={'id':_0x2ae823(0x2f3),'params':{..._0x2c5bf0[_0x3ee594]}},_0x16940d={'id':'doc.mutation.rich-text-editing','params':{..._0xe1a6df[_0x3ee594]}},_0x5b7470=this['_transformService']['transformMutation'](_0x2e171b,_0x26118f,!0x1),_0xbc3f27=this[_0x2ae823(0x33c)][_0x2ae823(0x192)](_0x1a36c9,_0x16940d,!0x1);if(m[_0x2ae823(0x18a)](_0x5b7470))throw _0x5b7470[_0x2ae823(0x373)];if(m[_0x2ae823(0x18a)](_0xbc3f27))throw _0xbc3f27[_0x2ae823(0x373)];_0x357c38[_0x2ae823(0x34e)](_0x5b7470[_0x2ae823(0x23f)][_0x2ae823(0x371)]),_0x41b041[_0x2ae823(0x34e)](_0xbc3f27[_0x2ae823(0x23f)][_0x2ae823(0x371)]),_0x2e171b=_0x5b7470[_0x2ae823(0x3c3)],_0x1a36c9=_0xbc3f27['m1Prime'];}_0x539d50[_0x2ae823(0x3c1)]({'undoCache':_0x357c38,'redoCache':_0x41b041});}[_0x1eb738(0x360)](_0x333952){const _0x8e00a7=_0x1eb738,{unitID:_0x33afed}=_0x333952,_0x40624e=this[_0x8e00a7(0x383)]['getRenderById'](_0x33afed)['with'](b[_0x8e00a7(0x385)]),_0x16a458=_0x40624e[_0x8e00a7(0x289)]();if(_0x16a458==null)return;const _0x17858c=[{'id':_0x8e00a7(0x2f3),'params':{'unitId':_0x333952[_0x8e00a7(0x222)],'actions':null,'textRanges':[_0x16a458]}}],_0x2b8327=this['_transformService'][_0x8e00a7(0x229)](_0x333952,_0x17858c);if(!m[_0x8e00a7(0x21f)](_0x2b8327))throw _0x2b8327[_0x8e00a7(0x373)];const _0x4b8d62=_0x2b8327['m2Prime'][0x0][_0x8e00a7(0x371)]['textRanges'];Array[_0x8e00a7(0x1b5)](_0x4b8d62)&&_0x4b8d62[_0x8e00a7(0x1d9)]&&_0x40624e['setActiveRange'](_0x4b8d62[0x0]);}};J=Xt([le(0x0,a[_0x1eb738(0x1e3)](a[_0x1eb738(0x2b4)])),le(0x1,m[_0x1eb738(0x2c8)]),le(0x2,p[_0x1eb738(0x17e)])],J);function _0xd287(){const _0x4e92af=['indexOf','5859408aBcDcO','min','IMessageService','_scheduleSaving','SNAPSHOT_HAS_BEEN_REMOVED','fromEvent','RegularPolygon','find','unsubscribe','_logService','Failed','debug','trim','send','_transformService','string','startRow','getColor','_getAnchorBounding','forEach','93331xLMzVe','@univerjs/drawing','random','override','_assignedColors','_id','_scene','permission.content','_unitStatus','isActive','measureText','_name','unshift','RefRangeService','handleIRemoveCol','text','OFFLINE','url(#on-line-single_clip0_910_349)','_shapes','_sheetSkeletonManagerService','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','handleMoveRange','defs','InsertRowCommandId','subunit','NodePositionConvertToRectRange','saveOfflineData','takeUntil','NO_OTHER_CLIENTS_EDITING','ILogService','_transformPreviousActiveRange','pluginName','children','_beforeCloseService','uni.network.url-service','_getSheetObject','column','@univerjs-pro/collaboration','roomMembers','UPDATE_CURSOR','_handleHover','top','svg','_dataLoaderService','onPointerEnter$','_colorIndex','28671YxPqoq','params','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','error','ranges','@univerjs-pro/collaboration-client','dispose$','getRangePointData','_httpService','_unitOnClients','HTTPService','function','apply','CollaborationEvent','runId','@univerjs/core','translate(.97)','_collabSessionService','ILocalCacheService','_renderManagerService','unit','DocIMEInputManagerService','ONLINE','newValue','_refRangeService','toStringTag','_hover','focused$','rxjs/operators','forwardRef','getSheetBySheetId','HEADER_MENU','verdancy600','_updateCollabCursors','dispose','debounce','INVITE_CODE_HAS_BEEN_UES','range','CONFLICT','data','DesktopCollaborationStatusDisplayController','getSheetId','_init','_getSaveTimeout','lineTo','SOCKET_FAILED','evenodd','_drawRectRange','NodePositionConvertToCursor','OTHER_CLIENT_EDITING','[RemoteUniscriptService]:\x20no\x20focused\x20unit','setItem','path','MessageType','TOO_MANY_REQUESTS','clearInterval','univer-online-status-title','connectInjector','subscribe','_roomMembers$','concat','getTypeOfUnitAdded$','call','useDependency','BuiltInUIPart','_cursorShapes','selections','getSkeleton','TEXT_RANGE_LAYER_INDEX','roomMembers$','getOffsetConfig','init','transformRemoteChangeset','LICENSE_MAX_UNITS_EXCEEDED','9NiWrGN','removeParam','collaboration.closeRoom','restore','type','_handleEvent','startsWith','setUndoRedoMutationParamsCache','CollaborationSocketService','m1Prime','_injector','WebSocketService','cursorInfo','_doCreateSocket','_instanceService','_imageIoService','MoveRangeCommandId','UniverCollaborationClientPlugin','OTHER_CLIENTS_EDITING','_cachedData','toString','getLocalCacheKey','getCellPositionByOffset','_syncEditingCollabCursorService','width','setTimeout','_clearOtherTimers','unitId','@univerjs/ui','switchMap','JOIN_ROOM_FAILED','useCallback','UNAUTHENTICATED','disposeUnit','sessionStatus$','entityInit$','permission.title','wsSessionTicketUrl','throttleTime','LocaleService','idSuffix','size','setParam','clsx','getCurrentRevOfUnit','RemoveColCommandId','_configService','arc','syncEditingCollabCursor','none','InsertRangeMoveRightCommandId','subscribeEvent','Unknown\x20user','unload','getUndoRedoMutationParamsCache','color','DataLoaderService','130yydSPW','SessionStatus','handleInsertRangeMoveRight','USERS_LEAVE','OnLineSingle','_toggleOffline','clipPath','ENSURE_SNAPSHOT_EXECUTION','univer-online-status-icon','APPLY_PERMISSION_DENIED','searchParams','invokeId','startColumn','1143158VpqNqP','_document','_range','fillText','_transformHistoryAndStateStack','ISnapshotServerService','icon','black','_notificationService','triggerDblclick','UNIVER_COLLABORATION_CLIENT_WEB_PLUGIN','url(#$1','replace','_initEntityListener','_backgroundColor','179360wGOLUz','IRenderManagerService','_entityInit$','debounceTime','onCommandExecuted','docStateChange$','filter','entries','_docTransformSelectionsService','backgroundColor','MUTATION','subUnitId','Subject','isTransformMutationFailure','_commandService','_setupBeforeClosingHandler','get','popstate','propertyIsEnumerable','BrowserCollaborationSocketService','0\x200\x2017\x2016','transformMutation','on-line-single_clip0_910_349','getOwnPropertySymbols','_docTransformIMECacheService','_startSheetCollabCursor','react','collabStatus.notCollab','TEXT','sheetID','post','Warning','OffLineSingle','getRenderById','IImageIoService','fillRule','getCoordByCell','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','editingUnit','UniverCollaborationClientUIPlugin','UNDEFINED','_initStatusComponent','setInterval','getAncestorScale','fromEventSubject','transformStateCache','_online','transformIMECache','split','result','assign','_updateSubUnitFromURLParams','_getSessionTicket','getVpScrollXYInfoByPosToVp','createInstance','IRemoteInstanceService','isArray','history','DocSelectionManagerService','_initDependencies','_status$','YUUMI_UNABLE_LOAD_URL','DocCollaborationEntity','getCurrentUnitForType','getConfig','Disposable','Tooltip','runOnServer','round','DeleteRangeMoveLeftCommandId','jsxs','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','YUUMI_URL_COL_OUT_OF_RANGE','AWAITING_WITH_PENDING','IConfigService','collaboration-client-ui.config','executionId','CONNECTOR_DATA_TOO_LARGE','_render','show','_collabCursorController','CollaborationSessionService','_onCursorDelete','COLORS','_hovered','_onCursorUpdate','setStateCache','source','#fff','_updateURLWithCurrentState','colorChannel1','_transformUndoRedoStack','length','_handleLeaveEvent','className','USER_NOT_INVITED_CODE','handleDeleteRangeMoveUp','_registerRenderDependencies','bottom','_ensureSubject','labelPosition','_handleHeartbeatEvent','Inject','defIds','FromArray','getMemberID','Optional','getMergeData','_hideTimer','max','_session','M0\x200H16V16H0z','beginPath','_toggleOnline','REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY','extend','CLOSE_ROOM','YUUMI_RATE_OVER_LIMIT','RemoveRowCommandId','_initEvent','memberID','next','onMouseMove','registerBeforeClose','merge','deepClone','ICommandService','ACTIVE_UNIT_EVENT_CHANNEL','@univerjs/rpc','createIdentifier','_saveTaskMap','currentColor','displayName','_collabCursorState$','FETCH_MISS','_univerInstanceService','asObservable','getItem','_themeService','session.connection-failed','_initResize','INVALID_INVITE_CODE','UNIVER_DOC','1em','_textBubble','_drawAnchor','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','CollaborationDataLoaderController','exhaustSavingTask','Plugin','DisposableCollection','_registerDependencies','UniverIcon','getUnhiddenWorksheets','disableLocalCache','_urlService','_collaborationController','pipe','gold400','SetWorksheetActivateCommand','CommandType','[CollaborationDataLoaderController]','isTransformMutationsWithChangesetSuccess','activeSheet$','ALREADY_EXISTS','unitID','rgba(255,\x20255,\x20255,\x200.01)','IUniverInstanceService','getFocusedUnit','_startDocCollabCursor','onPointerMove$','getActiveSheet','transformMutationsWithChangeset','hasOwnProperty','save','search','_eventUnsubscribe','_getMergeRange','reconnect','executeCommand','Error','addObject','getOwnPropertyDescriptor','_context','getUniverSheetInstance','getCollabCursors$','INVALID_ARGUMENT','_updateLocalCursor','@univerjs/sheets-ui','PERMISSION_DENIED','selection','prototype','fillStyle','off-line-single_clip0_910_343','m2Prime','useObservable','handleInsertRow','IBeforeCloseService','TRANSFORM_CHANGE_OBSERVABLE_TYPE','SetSelectionsOperation','onlineStatus','_cursors','some','cursorInfo$','rxjs','univer-online-status','_setupSubUnitSync','_config','ThemeService','parse','LOCAL_CACHE_INTERVAL_KEY','/run/','IURLService','getStateCache','toDisposable','isEditing','onLocalMutation','getUnitStatus$','@univerjs/engine-render','onPointerLeave$','INTERNAL_ERROR','onTransformChange$','_colorAssignService','distinctUntilChanged','mutations','getValue','collabStatus.fetchMiss','row','clearTimeout','endRow','generateRandomId','CollaborationUIEventService','off-line-single','_docStateChangeManagerService','_collaborationUIEventService','undoState','_removeCollabCursors','MemberService','handleIRemoveRow','jsx','_localStorageService','setShapeProps','assignAColorForMemberID','_docTransformStateCacheService','RECT','PENDING','RxDisposable','collab-text-anchor-','_docSkeletonManagerService','UniverInstanceType','disposeWithMe','currentTheme$','add','registerComponent','APPLY_NON_SEQUENTIAL_REVISION','DEFAULT_WS_SESSION_TICKET_URL','href','location','_labelPosition','tag','map','toRgbString','height','APPLY_REJECT','_scheduleHeartbeat','CollaborationStatusDisplay','blue400','fill','getActiveRange','handleInsertCol','deserializeRangeWithSheet','redoState','678TuLLbT','VIEW_MAIN','_cursor','saveTaskMap','transformSelections','BehaviorSubject','has','defineProperty','COMPLETION_FINISHED','EMAIL_HAS_BEEN_BOUND','serializeRangeWithSheet','_createSocketURL','EffectRefRangId','getSheetObject','actions','_selfUnitIDs','_drawTextRange','collab-text-range-','Rect','0\x200\x2016\x2016','_onRefRangeChange','Rectangle','handleInsertRangeMoveDown','_entities','set','_saveCache','_draw','eventID','_anchorDot','_anchor','with','div','createElement','attrs','whenReady','key','SheetSkeletonManagerService','getUnitId','DOC_RANGE_TYPE','Injector','SOCKET_FAILED_RETRY','_revisionService','CollaborationStatus','NOT_COLLAB','DeleteRangeMoveUpCommandId','CollaborationUIEventId','registerRefRange','#FFF','getTypeOfUnitDisposed$','textRanges','storage','univer-offline','Shape','application/json','WECHAT_HAS_BEEN_BOUND','SetTextSelectionsOperation','Tools','loadOfflineData','_heartbeatTimer','ITransformService','_send','getDocRanges','_scheduleClearOtherTimer','name','flatMap','RemoteUniscriptService','pushState','UNIVER_SHEET','_removeClearOtherTimer','onStarting','currentSkeleton$','setAlpha','substring','68rwmuEe','mask','addHandlerCallback','complete','SheetCollabCursorShape','addObjects','UNRECOGNIZED','_refreshCollabCursors','_cursorInfo$','_memberService','getViewport','_docClipboardService','registerRenderModule','_localeService','APPLY_DUPLICATED','IUIPartsService','_getScale','runRefRangeMutations','SNAPSHOT_INVALID_SNAPSHOT','_localCacheService','PY_RUNTIME_SCRIPT_ERROR','@univerjs/docs','collabCursorState$','then','_color','YUUMI_SUBSCRIPTION_NOT_FOUND','values','onlineStatusIcon','session.will-retry','doc.mutation.rich-text-editing','collabStatus.syncing','getMember','...','replaceState','combineLatest','3743916ehwrKS','LOCAL_CACHE_INTERVAL','_docSyncEditingCollabCursorService','hovered','urlChange$','useRef','SUBMIT_CHANGESET_TIMEOUT','getRelativeToViewportCoord','body','ticket','SetDocZoomRatioOperation','event$','mapTo','INVITE_CODE_ALREADY_BOUND','ColorKit','DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT','endColumn','xlink:href','_uiPartsService','@univerjs/engine-formula','_lastPointer','_messageService','replaceDocRanges','MOBILE_HAS_BEEN_BOUND','AWAITING','CHANGESET_REVISION_CONFILICT','getParam','from','imageSourceType','push','2827649lcUOWu','handleDeleteRangeMoveLeft','SYNCED','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','drawWith','font','APPLY_REVISION_CONFILICT','transform','_disabled','LOGIN_FAILED','NOT_FOUND','delete','_initCommandExecutedListener','InsertRangeMoveDownCommandId','findNodePositionByCharIndex','stringify','resize','Module','univer-flex\x20univer-items-center','CollaborationController','UnitStatus','DocStateChangeManagerService'];_0xd287=function(){return _0x4e92af;};return _0xd287();}var Gt=Object['getOwnPropertyDescriptor'],qt=(_0x290c5a,_0x3c81e9,_0x3f6c95,_0x1d49db)=>{for(var _0x191d52=_0x1d49db>0x1?void 0x0:_0x1d49db?Gt(_0x3c81e9,_0x3f6c95):_0x3c81e9,_0x2d6a5a=_0x290c5a['length']-0x1,_0x32f15d;_0x2d6a5a>=0x0;_0x2d6a5a--)(_0x32f15d=_0x290c5a[_0x2d6a5a])&&(_0x191d52=_0x32f15d(_0x191d52)||_0x191d52);return _0x191d52;},_e=(_0x5ee8df,_0x42e320)=>(_0x54090a,_0x41a62e)=>_0x42e320(_0x54090a,_0x41a62e,_0x5ee8df);let Z=class{constructor(_0x38ec8b,_0x1cdae7,_0x4a1859){const _0x2a5ec5=_0x1eb738;this[_0x2a5ec5(0x3c4)]=_0x38ec8b,this['_transformService']=_0x1cdae7,this[_0x2a5ec5(0x266)]=_0x4a1859;}[_0x1eb738(0x1aa)](_0x57f7a2){this['_transformHistoryAndStateStack'](_0x57f7a2);}[_0x1eb738(0x3b8)](_0x39def3){const _0x30ff1a=_0x1eb738,{unitID:_0x51f456}=_0x39def3,{collaboration:_0x21b556}=this[_0x30ff1a(0x266)][_0x30ff1a(0x252)](_0x51f456);if(_0x21b556[_0x30ff1a(0x1d9)]===0x0)return _0x39def3;let _0x3ebd1e=a[_0x30ff1a(0x2c5)][_0x30ff1a(0x1fa)](_0x39def3[_0x30ff1a(0x25d)][0x0]);for(let _0x190bfc=0x0;_0x190bfc<_0x21b556['length'];_0x190bfc++){const _0x19b987={'id':_0x30ff1a(0x2f3),'params':{'unitId':_0x21b556[_0x190bfc][_0x30ff1a(0x3d5)],..._0x21b556[_0x190bfc][_0x30ff1a(0x28c)]}},_0x1fc80f=this[_0x30ff1a(0x33c)][_0x30ff1a(0x192)](_0x3ebd1e,_0x19b987,!0x1);if(m['isTransformMutationFailure'](_0x1fc80f))throw _0x1fc80f[_0x30ff1a(0x373)];_0x3ebd1e=_0x1fc80f[_0x30ff1a(0x3c3)];}return{...a[_0x30ff1a(0x2c5)][_0x30ff1a(0x1fa)](_0x39def3),'mutations':[_0x3ebd1e]};}[_0x1eb738(0x404)](_0x46f274){const _0x343d75=_0x1eb738,{unitID:_0x4352a1}=_0x46f274,{history:_0x290b3a,collaboration:_0x5a0d31}=this['_docStateChangeManagerService'][_0x343d75(0x252)](_0x4352a1);if(_0x290b3a['length']===0x0&&_0x5a0d31[_0x343d75(0x1d9)]===0x0)return;const _0x33eff9=[],_0x47d98c=[];let _0x166b26=a[_0x343d75(0x2c5)]['deepClone'](_0x46f274[_0x343d75(0x25d)][0x0]),_0x1b3444=a['Tools'][_0x343d75(0x1fa)](_0x46f274[_0x343d75(0x25d)][0x0]);for(let _0xc369e6=_0x290b3a[_0x343d75(0x1d9)]-0x1;_0xc369e6>=0x0;_0xc369e6--){const _0x5a8f57={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x290b3a[_0xc369e6][_0x343d75(0x3d5)],..._0x290b3a[_0xc369e6][_0x343d75(0x268)]}},_0x295ecf={'id':_0x343d75(0x2f3),'params':{'unitId':_0x290b3a[_0xc369e6][_0x343d75(0x3d5)],..._0x290b3a[_0xc369e6][_0x343d75(0x28c)]}},_0x1ff50c=this['_transformService']['transformMutation'](_0x166b26,_0x5a8f57,!0x1),_0x2c71c4=this[_0x343d75(0x33c)][_0x343d75(0x192)](_0x1b3444,_0x295ecf,!0x1);if(m[_0x343d75(0x18a)](_0x1ff50c))throw _0x1ff50c[_0x343d75(0x373)];if(m[_0x343d75(0x18a)](_0x2c71c4))throw _0x2c71c4[_0x343d75(0x373)];_0x33eff9[_0x343d75(0x34e)]({..._0x290b3a[_0xc369e6],'undoState':_0x1ff50c[_0x343d75(0x23f)][_0x343d75(0x371)],'redoState':_0x2c71c4[_0x343d75(0x23f)][_0x343d75(0x371)]}),_0x166b26=_0x1ff50c[_0x343d75(0x3c3)],_0x1b3444=_0x2c71c4[_0x343d75(0x3c3)];}_0x166b26=a[_0x343d75(0x2c5)]['deepClone'](_0x46f274[_0x343d75(0x25d)][0x0]),_0x1b3444=a[_0x343d75(0x2c5)]['deepClone'](_0x46f274[_0x343d75(0x25d)][0x0]);for(let _0x272233=_0x5a0d31['length']-0x1;_0x272233>=0x0;_0x272233--){const _0x4a573c={'id':_0x343d75(0x2f3),'params':{'unitId':_0x5a0d31[_0x272233]['unitId'],..._0x5a0d31[_0x272233][_0x343d75(0x268)]}},_0x15d450={'id':_0x343d75(0x2f3),'params':{'unitId':_0x5a0d31[_0x272233][_0x343d75(0x3d5)],..._0x5a0d31[_0x272233]['redoState']}},_0x3f29bc=this[_0x343d75(0x33c)][_0x343d75(0x192)](_0x166b26,_0x4a573c,!0x1),_0x44c5e6=this['_transformService']['transformMutation'](_0x1b3444,_0x15d450,!0x1);if(m['isTransformMutationFailure'](_0x3f29bc))throw _0x3f29bc[_0x343d75(0x373)];if(m[_0x343d75(0x18a)](_0x44c5e6))throw _0x44c5e6['error'];_0x47d98c[_0x343d75(0x34e)]({..._0x5a0d31[_0x272233],'undoState':_0x3f29bc[_0x343d75(0x23f)]['params'],'redoState':_0x44c5e6[_0x343d75(0x23f)][_0x343d75(0x371)]}),_0x166b26=_0x3f29bc[_0x343d75(0x3c3)],_0x1b3444=_0x44c5e6[_0x343d75(0x3c3)];}this[_0x343d75(0x266)][_0x343d75(0x1d3)](_0x4352a1,{'history':_0x33eff9,'collaboration':_0x47d98c});}};Z=qt([_e(0x0,a['Inject'](a[_0x1eb738(0x2b4)])),_e(0x1,m['ITransformService']),_e(0x2,a[_0x1eb738(0x1e3)](b[_0x1eb738(0x32c)]))],Z);var Kt=Object['getOwnPropertyDescriptor'],zt=(_0x5d1c6e,_0x1a898d,_0x31623c,_0x1ec84f)=>{const _0xae66f7=_0x1eb738;for(var _0xd2d521=_0x1ec84f>0x1?void 0x0:_0x1ec84f?Kt(_0x1a898d,_0x31623c):_0x1a898d,_0x293072=_0x5d1c6e[_0xae66f7(0x1d9)]-0x1,_0x17c20a;_0x293072>=0x0;_0x293072--)(_0x17c20a=_0x5d1c6e[_0x293072])&&(_0xd2d521=_0x17c20a(_0xd2d521)||_0xd2d521);return _0xd2d521;},Me=(_0x48089a,_0x373b01)=>(_0x567eb9,_0x58f4d9)=>_0x373b01(_0x567eb9,_0x58f4d9,_0x48089a);let Q=class{constructor(_0x1e7b44,_0x25879b){const _0x41bf78=_0x1eb738;this[_0x41bf78(0x3c4)]=_0x1e7b44,this[_0x41bf78(0x33c)]=_0x25879b;}[_0x1eb738(0x291)](_0x5b65d3){const _0x4a4ee5=_0x1eb738;var _0x51430b;const _0x56f1a7=this['_injector'][_0x4a4ee5(0x18d)](Y['DocSelectionManagerService']),_0x2e95d0=(_0x51430b=_0x56f1a7['getDocRanges']())!=null?_0x51430b:[];if(_0x2e95d0[_0x4a4ee5(0x1d9)]===0x0)return;const _0x2ee084=_0x5b65d3['unitID'],_0x5be15e=[{'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x2ee084,'actions':null,'textRanges':_0x2e95d0}}],_0x2df4a6=this[_0x4a4ee5(0x33c)][_0x4a4ee5(0x229)](_0x5b65d3,_0x5be15e);if(!m['isTransformMutationsWithChangesetSuccess'](_0x2df4a6))throw _0x2df4a6[_0x4a4ee5(0x373)];const _0x59ec6e=_0x2df4a6[_0x4a4ee5(0x23f)][0x0][_0x4a4ee5(0x371)]['textRanges'];Array[_0x4a4ee5(0x1b5)](_0x59ec6e)&&_0x59ec6e['length']&&_0x56f1a7[_0x4a4ee5(0x30f)](_0x59ec6e,{'unitId':_0x2ee084,'subUnitId':_0x2ee084},!0x1);}};Q=zt([Me(0x0,a['Inject'](a[_0x1eb738(0x2b4)])),Me(0x1,m[_0x1eb738(0x2c8)])],Q);var Jt=Object['getOwnPropertyDescriptor'],Zt=(_0x4e1bbe,_0x254781,_0x16091b,_0x5c2945)=>{const _0x134a7f=_0x1eb738;for(var _0x556e39=_0x5c2945>0x1?void 0x0:_0x5c2945?Jt(_0x254781,_0x16091b):_0x254781,_0x4e1c6d=_0x4e1bbe[_0x134a7f(0x1d9)]-0x1,_0x59bd25;_0x4e1c6d>=0x0;_0x4e1c6d--)(_0x59bd25=_0x4e1bbe[_0x4e1c6d])&&(_0x556e39=_0x59bd25(_0x556e39)||_0x556e39);return _0x556e39;},N=(_0x2eb012,_0x4b0946)=>(_0x3dfbba,_0x35e9a6)=>_0x4b0946(_0x3dfbba,_0x35e9a6,_0x2eb012);let ee=class extends a['Disposable']{constructor(_0x19aeb8,_0x163f64,_0x2f409a,_0x90ebca,_0x59abd8,_0x4ba7d5,_0x415b3d,_0x235036){const _0x40dc48=_0x1eb738;super(),_(this,_0x40dc48(0x1b9),new d[(_0x40dc48(0x292))](u[_0x40dc48(0x2b7)][_0x40dc48(0x2b8)])),(this['_docStateChangeManagerService']=_0x19aeb8,this[_0x40dc48(0x219)]=_0x163f64,this['_docTransformIMECacheService']=_0x2f409a,this[_0x40dc48(0x270)]=_0x90ebca,this[_0x40dc48(0x185)]=_0x59abd8,this[_0x40dc48(0x2fb)]=_0x4ba7d5,this[_0x40dc48(0x30e)]=_0x415b3d,this[_0x40dc48(0x2e3)]=_0x235036,this[_0x40dc48(0x17b)]());}[_0x1eb738(0x17b)](){const _0x552d28=_0x1eb738;this[_0x552d28(0x277)](this[_0x552d28(0x219)][_0x552d28(0x3dd)][_0x552d28(0x3aa)](_0x3ba94e=>{const _0x590fc8=_0x552d28,_0x1f253f=this[_0x590fc8(0x266)][_0x590fc8(0x182)][_0x590fc8(0x3aa)](_0x3ba798=>{const _0x59e693=_0x590fc8;if(_0x3ba798==null)return;const {unitId:_0x2588f4,redoState:_0x1c0b85,commandId:_0x29a7e7}=_0x3ba798;if(_0x2588f4!==_0x3ba94e[_0x59e693(0x222)])return;const _0x2d3c27={'id':_0x29a7e7,'type':a[_0x59e693(0x21d)][_0x59e693(0x187)],'params':{'unitId':_0x2588f4,'actions':_0x1c0b85[_0x59e693(0x29b)],'textRanges':null}};_0x3ba94e[_0x59e693(0x255)](_0x2d3c27);});if(_0x3ba94e[_0x590fc8(0x277)](_0x1f253f),_0x3ba94e instanceof u[_0x590fc8(0x1bb)]){const _0x5a4705={'onTransformIME':_0x1aa71f=>this[_0x590fc8(0x195)][_0x590fc8(0x1ac)](_0x1aa71f),'onTransformState':_0x473ba3=>this[_0x590fc8(0x270)]['transformStateCache'](_0x473ba3),'onTransformSelections':_0x3fa62a=>this[_0x590fc8(0x185)]['transformSelections'](_0x3fa62a),'onSyncEditingCollabCursor':_0x3868c6=>this[_0x590fc8(0x2fb)][_0x590fc8(0x3ea)](_0x3868c6),'onTransformRemoteChangesetByIMECache':_0x821179=>this[_0x590fc8(0x195)][_0x590fc8(0x3b8)](_0x821179),'onTransformRemoteChangesetByStateCache':_0x107441=>this[_0x590fc8(0x270)]['transformRemoteChangeset'](_0x107441)};_0x3ba94e[_0x590fc8(0x2d8)](_0x5a4705);}}));}};ee=Zt([N(0x0,a['Inject'](b['DocStateChangeManagerService'])),N(0x1,a[_0x1eb738(0x1e3)](u[_0x1eb738(0x32a)])),N(0x2,a[_0x1eb738(0x1e3)](J)),N(0x3,a[_0x1eb738(0x1e3)](Z)),N(0x4,a[_0x1eb738(0x1e3)](Q)),N(0x5,a[_0x1eb738(0x1e3)](pe)),N(0x6,R[_0x1eb738(0x330)]),N(0x7,a[_0x1eb738(0x1e3)](a[_0x1eb738(0x3e1)]))],ee);var Qt=Object[_0x1eb738(0x233)],es=(_0x184f03,_0xa1787d,_0x5a1f6d,_0x2a846d)=>{const _0xfac44c=_0x1eb738;for(var _0x7528cb=_0x2a846d>0x1?void 0x0:_0x2a846d?Qt(_0xa1787d,_0x5a1f6d):_0xa1787d,_0x5a1fe3=_0x184f03[_0xfac44c(0x1d9)]-0x1,_0x5cb75c;_0x5a1fe3>=0x0;_0x5a1fe3--)(_0x5cb75c=_0x184f03[_0x5a1fe3])&&(_0x7528cb=_0x5cb75c(_0x7528cb)||_0x7528cb);return _0x7528cb;},he=(_0x3f4895,_0x5122d4)=>(_0x10e143,_0x2622f0)=>_0x5122d4(_0x10e143,_0x2622f0,_0x3f4895);let me=class extends a[_0x1eb738(0x1be)]{constructor(_0x4060ab,_0x1f5510,_0x504223){const _0x54d7c9=_0x1eb738;super(),_(this,_0x54d7c9(0x3cd),new Map()),_(this,_0x54d7c9(0x1ff),new Map()),_(this,'_disabled',!0x1),(this[_0x54d7c9(0x3e8)]=_0x4060ab,this['_localStorageService']=_0x1f5510,this[_0x54d7c9(0x2b6)]=_0x504223);}[_0x1eb738(0x217)](){const _0x56f582=_0x1eb738;this[_0x56f582(0x31f)]=!0x0;}['enableLocalCache'](){const _0x5bab91=_0x1eb738;this[_0x5bab91(0x31f)]=!0x1;}get[_0x1eb738(0x290)](){return this['_saveTaskMap'];}[_0x1eb738(0x392)](){const _0xbf6c3b=_0x1eb738;this[_0xbf6c3b(0x211)]()['then'](()=>super[_0xbf6c3b(0x392)]());}async[_0x1eb738(0x2c6)](_0x3bb7cc){const _0xfbc6d4=_0x1eb738;return this[_0xfbc6d4(0x31f)]?null:this[_0xfbc6d4(0x26d)][_0xfbc6d4(0x206)](u[_0xfbc6d4(0x3cf)](_0x3bb7cc));}async[_0x1eb738(0x35c)](_0x32d234,_0x1b4498){const _0x588ce8=_0x1eb738;return!!this['_localStorageService'][_0x588ce8(0x3a3)](_0x32d234,_0x1b4498);}['updateOfflineData'](_0x3fc1de,_0x45d221,_0x257f7b,_0x492ebf){const _0x3f26a9=_0x1eb738,_0x22c82f=this[_0x3f26a9(0x2b6)][_0x3f26a9(0x3e6)](_0x3fc1de);this[_0x3f26a9(0x3cd)]['set'](_0x3fc1de,{'unitID':_0x3fc1de,'type':_0x45d221,'awaitingChangeset':_0x257f7b,'mutations':_0x492ebf,'rev':_0x22c82f}),this[_0x3f26a9(0x1ff)][_0x3f26a9(0x293)](_0x3fc1de)||this[_0x3f26a9(0x331)](_0x3fc1de);}[_0x1eb738(0x331)](_0x1dfd0c){const _0x5c3120=_0x1eb738,_0xe264d3=this[_0x5c3120(0x39b)]();_0xe264d3===0x0?this[_0x5c3120(0x2a6)](_0x1dfd0c):this[_0x5c3120(0x1ff)][_0x5c3120(0x2a5)](_0x1dfd0c,setTimeout(()=>this['_saveCache'](_0x1dfd0c),_0xe264d3));}[_0x1eb738(0x39b)](){const _0x5b33c3=_0x1eb738;var _0x377773;return(_0x377773=this[_0x5b33c3(0x3e8)][_0x5b33c3(0x1bd)](u[_0x5b33c3(0x24f)]))!=null?_0x377773:u[_0x5b33c3(0x2fa)];}[_0x1eb738(0x2a6)](_0x3ce946){const _0x13effe=_0x1eb738,_0x456b4d=this[_0x13effe(0x1ff)][_0x13effe(0x18d)](_0x3ce946);return _0x456b4d!==void 0x0&&window[_0x13effe(0x261)](_0x456b4d),this[_0x13effe(0x26d)][_0x13effe(0x3a3)](u[_0x13effe(0x3cf)](_0x3ce946),this[_0x13effe(0x3cd)][_0x13effe(0x18d)](_0x3ce946))['then'](()=>this['_saveTaskMap'][_0x13effe(0x322)](_0x3ce946));}async['exhaustSavingTask'](){const _0x3e0a7a=_0x1eb738,_0x5cb209=[];this[_0x3e0a7a(0x1ff)][_0x3e0a7a(0x341)]((_0x4b1328,_0x435e39)=>{const _0xb61f8f=_0x3e0a7a;window[_0xb61f8f(0x261)](_0x4b1328),_0x5cb209['push'](this['_saveCache'](_0x435e39)[_0xb61f8f(0x2ed)](()=>{const _0x190ec3=_0xb61f8f;this[_0x190ec3(0x1ff)][_0x190ec3(0x322)](_0x435e39);}));}),await Promise['all'](_0x5cb209);}};me=es([he(0x0,a[_0x1eb738(0x1c7)]),he(0x1,a['ILocalStorageService']),he(0x2,a[_0x1eb738(0x1e3)](m['RevisionService']))],me);function _0x1aec(_0x23ec95,_0x19027d){const _0xd287e=_0xd287();return _0x1aec=function(_0x1aec20,_0x25f506){_0x1aec20=_0x1aec20-0x17a;let _0x3c109c=_0xd287e[_0x1aec20];return _0x3c109c;},_0x1aec(_0x23ec95,_0x19027d);}class Be extends a[_0x1eb738(0x273)]{constructor(){const _0x31bcf0=_0x1eb738;super(),_(this,_0x31bcf0(0x2fd)),this[_0x31bcf0(0x2fd)]=d[_0x31bcf0(0x333)](window,_0x31bcf0(0x18e))[_0x31bcf0(0x21a)](d['takeUntil'](this['dispose$']),d['shareReplay'](0x1),d[_0x31bcf0(0x305)](void 0x0));}[_0x1eb738(0x3e4)](_0x328605,_0x3c454f,_0x492860=!0x1){const _0x40c403=_0x1eb738,_0x1fcb62=new URL(window[_0x40c403(0x27e)][_0x40c403(0x27d)]);_0x1fcb62[_0x40c403(0x3fd)][_0x40c403(0x2a5)](_0x328605,_0x3c454f),_0x492860?window['history'][_0x40c403(0x2f7)]('','',_0x1fcb62[_0x40c403(0x3ce)]()):window[_0x40c403(0x1b6)][_0x40c403(0x2cf)]('','',_0x1fcb62[_0x40c403(0x3ce)]());}[_0x1eb738(0x3bb)](_0x2cc019,_0x599461=!0x1){const _0x133346=_0x1eb738,_0x373b2c=new URL(window[_0x133346(0x27e)]['href']);_0x373b2c[_0x133346(0x3fd)][_0x133346(0x322)](_0x2cc019),_0x599461?window[_0x133346(0x1b6)][_0x133346(0x2f7)]('','',_0x373b2c[_0x133346(0x3ce)]()):window['history'][_0x133346(0x2cf)]('','',_0x373b2c[_0x133346(0x3ce)]());}[_0x1eb738(0x313)](_0x3f1704){const _0x2fc20c=_0x1eb738;var _0x2b2827;return(_0x2b2827=new URL(window['location']['href'])[_0x2fc20c(0x3fd)][_0x2fc20c(0x18d)](_0x3f1704))!=null?_0x2b2827:void 0x0;}}var ts=Object[_0x1eb738(0x294)],ss=Object[_0x1eb738(0x233)],ns=(_0x50b865,_0x3ea3d1,_0x42487c)=>_0x3ea3d1 in _0x50b865?ts(_0x50b865,_0x3ea3d1,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x42487c}):_0x50b865[_0x3ea3d1]=_0x42487c,is=(_0x3f1694,_0x8bbcc1,_0x5416f6,_0x57e2bf)=>{for(var _0x3eacea=_0x57e2bf>0x1?void 0x0:_0x57e2bf?ss(_0x8bbcc1,_0x5416f6):_0x8bbcc1,_0x265d07=_0x3f1694['length']-0x1,_0x3427d6;_0x265d07>=0x0;_0x265d07--)(_0x3427d6=_0x3f1694[_0x265d07])&&(_0x3eacea=_0x3427d6(_0x3eacea)||_0x3eacea);return _0x3eacea;},ue=(_0x1cb037,_0x26d805)=>(_0x32038b,_0x8aa60e)=>_0x26d805(_0x32038b,_0x8aa60e,_0x1cb037),rs=(_0x248f96,_0x597342,_0x121c76)=>ns(_0x248f96,_0x597342+'',_0x121c76);const os=_0x1eb738(0x40a);exports[_0x1eb738(0x1a4)]=class extends a[_0x1eb738(0x212)]{constructor(_0x6ab086=Ne,_0xb86f5c,_0x158785,_0x107838){const _0x2d1969=_0x1eb738;super(),this[_0x2d1969(0x24c)]=_0x6ab086,this[_0x2d1969(0x383)]=_0xb86f5c,this[_0x2d1969(0x3c4)]=_0x158785,this['_configService']=_0x107838;const {..._0x55892b}=a[_0x2d1969(0x1f9)]({},Ne,this[_0x2d1969(0x24c)]);this[_0x2d1969(0x3e8)]['setConfig'](Wt,_0x55892b);}[_0x1eb738(0x2d2)](){const _0x23a97a=_0x1eb738;this[_0x23a97a(0x214)](),this[_0x23a97a(0x1b8)]();}['onRendered'](){const _0x1a1595=_0x1eb738;this[_0x1a1595(0x1de)]();}['_registerDependencies'](){const _0x562a12=_0x1eb738;var _0x934314;const _0x166cd6=[[Ce],[Q],[J],[Z],[pe],[Ee,{'useClass':Be}],[q['ISocketService'],{'useClass':q[_0x562a12(0x3c5)]}],[u[_0x562a12(0x382)],{'useClass':me}],[exports['DesktopCollaborationStatusDisplayController']],[ee],[z],[x],[fe],[exports[_0x562a12(0x210)]]];a['registerDependencies'](this[_0x562a12(0x3c4)],a['mergeOverrideWithDependencies'](_0x166cd6,(_0x934314=this['_config'])==null?void 0x0:_0x934314[_0x562a12(0x345)]));}[_0x1eb738(0x1de)](){const _0xe8e0c7=_0x1eb738;this['disposeWithMe'](this[_0xe8e0c7(0x383)][_0xe8e0c7(0x2e2)](a[_0xe8e0c7(0x276)][_0xe8e0c7(0x20b)],[ve])),this[_0xe8e0c7(0x277)](this[_0xe8e0c7(0x383)][_0xe8e0c7(0x2e2)](a[_0xe8e0c7(0x276)][_0xe8e0c7(0x2d0)],[ge]));}['_initDependencies'](){const _0x30b0d0=_0x1eb738;a['touchDependencies'](this[_0x30b0d0(0x3c4)],[[x],[exports[_0x30b0d0(0x398)]],[ee],[z],[exports[_0x30b0d0(0x210)]]]);}},rs(exports[_0x1eb738(0x1a4)],_0x1eb738(0x361),os),exports[_0x1eb738(0x1a4)]=is([a['DependentOn'](u[_0x1eb738(0x3cb)]),ue(0x1,p[_0x1eb738(0x17e)]),ue(0x2,a[_0x1eb738(0x1e3)](a[_0x1eb738(0x2b4)])),ue(0x3,a[_0x1eb738(0x1c7)])],exports[_0x1eb738(0x1a4)]);var as=Object['getOwnPropertyDescriptor'],cs=(_0x59013f,_0x34b110,_0x3cec99,_0x407fb1)=>{const _0x55ba99=_0x1eb738;for(var _0x36eecb=_0x407fb1>0x1?void 0x0:_0x407fb1?as(_0x34b110,_0x3cec99):_0x34b110,_0xb6a429=_0x59013f[_0x55ba99(0x1d9)]-0x1,_0x1ca2f8;_0xb6a429>=0x0;_0xb6a429--)(_0x1ca2f8=_0x59013f[_0xb6a429])&&(_0x36eecb=_0x1ca2f8(_0x36eecb)||_0x36eecb);return _0x36eecb;},F=(_0x398d1d,_0x3eb74c)=>(_0x4c20fa,_0x52df7c)=>_0x3eb74c(_0x4c20fa,_0x52df7c,_0x398d1d);exports[_0x1eb738(0x190)]=class extends u[_0x1eb738(0x3c2)]{constructor(_0x530be8,_0x20e688,_0x371363,_0x102682,_0x4d0c41){super(_0x530be8,_0x20e688,_0x371363,_0x102682,_0x4d0c41);}async['createSocket'](_0x4c7435){const _0x187c66=_0x1eb738,_0x141133=await this[_0x187c66(0x1b1)](),_0x3c968d=this[_0x187c66(0x298)](_0x4c7435,_0x141133);return this[_0x187c66(0x3c7)](_0x3c968d);}[_0x1eb738(0x298)](_0x2c41b5,_0x56e7a0){const _0xc0a6ad=_0x1eb738,_0x2ecc1b=typeof window>'u'?new URL(_0x2c41b5):new URL(_0x2c41b5,window[_0xc0a6ad(0x27e)]['origin']);_0x2ecc1b[_0xc0a6ad(0x3fd)][_0xc0a6ad(0x2a5)]('sessionTicket',_0x56e7a0);const _0x13b57f=typeof window>'u'?new URLSearchParams():new URLSearchParams(window[_0xc0a6ad(0x27e)][_0xc0a6ad(0x22c)]);return _0x13b57f['get'](_0xc0a6ad(0x37e))&&_0x2ecc1b[_0xc0a6ad(0x3fd)][_0xc0a6ad(0x2a5)](_0xc0a6ad(0x37e),_0x13b57f['get'](_0xc0a6ad(0x37e))),_0x2ecc1b['toString']();}async[_0x1eb738(0x1b1)](){const _0x65289c=_0x1eb738;var _0x12ab62,_0x48a69b,_0x3ac684;const _0x5e9553=this['_configService'][_0x65289c(0x1bd)](u[_0x65289c(0x20f)]),_0x4bfbfc=(_0x12ab62=_0x5e9553==null?void 0x0:_0x5e9553[_0x65289c(0x3df)])!=null?_0x12ab62:u[_0x65289c(0x27c)];return(_0x3ac684=(_0x48a69b=(await this[_0x65289c(0x378)]['get'](_0x4bfbfc,{'headers':{'Content-Type':_0x65289c(0x2c2)}}))[_0x65289c(0x301)])==null?void 0x0:_0x48a69b[_0x65289c(0x302)])!=null?_0x3ac684:'';}},exports[_0x1eb738(0x190)]=cs([F(0x0,a[_0x1eb738(0x1e3)](a[_0x1eb738(0x2b4)])),F(0x1,a[_0x1eb738(0x1e3)](q[_0x1eb738(0x37a)])),F(0x2,a['IConfigService']),F(0x3,a[_0x1eb738(0x35f)]),F(0x4,m[_0x1eb738(0x405)])],exports['BrowserCollaborationSocketService']);const Pe=0x7530,Le=_0x1eb738(0x1fc);class ls extends a[_0x1eb738(0x1be)]{constructor(){const _0x14d2cd=_0x1eb738;super(),_(this,_0x14d2cd(0x347),a[_0x14d2cd(0x263)]()),_(this,_0x14d2cd(0x29c),new Set()),_(this,'_unitOnClients',new Map()),_(this,_0x14d2cd(0x2c7),null),_(this,'_clearOtherTimers',new Map()),_(this,'_unitStatus',new Map()),this['_init']();}[_0x1eb738(0x392)](){const _0x52d90d=_0x1eb738;super['dispose'](),this['_clearOtherTimers'][_0x52d90d(0x341)]((_0x29b7d8,_0x3147e3)=>this[_0x52d90d(0x2d1)](_0x3147e3)),this[_0x52d90d(0x2c7)]&&window[_0x52d90d(0x3a7)](this[_0x52d90d(0x2c7)]);}[_0x1eb738(0x256)](_0x39d16d){const _0x3bcfde=_0x1eb738;return this['_ensureSubject'](_0x39d16d)[_0x3bcfde(0x21a)](d[_0x3bcfde(0x25c)]());}[_0x1eb738(0x1a3)](_0x179e61){const _0xaeb5ad=_0x1eb738;this[_0xaeb5ad(0x29c)][_0xaeb5ad(0x3e3)]===0x0&&this[_0xaeb5ad(0x285)](),this[_0xaeb5ad(0x29c)][_0xaeb5ad(0x279)](_0x179e61),this[_0xaeb5ad(0x2c9)]({'type':0x0,'memberID':this[_0xaeb5ad(0x347)],'unitIDs':[_0x179e61],'isForwarded':!0x1});}[_0x1eb738(0x3db)](_0x33cd03){const _0x2a253f=_0x1eb738;this[_0x2a253f(0x29c)][_0x2a253f(0x322)](_0x33cd03),this[_0x2a253f(0x29c)][_0x2a253f(0x3e3)]===0x0&&this[_0x2a253f(0x2c7)]&&window['clearInterval'](this[_0x2a253f(0x2c7)]);}[_0x1eb738(0x39a)](){const _0x24a31d=_0x1eb738;this[_0x24a31d(0x277)](a[_0x24a31d(0x253)](d[_0x24a31d(0x333)](window,_0x24a31d(0x2bf))['subscribe'](_0x5a40aa=>{const _0x5a0977=_0x24a31d;if(_0x5a40aa[_0x5a0977(0x2b0)]!==Le||!_0x5a40aa[_0x5a0977(0x387)])return;const _0x238994=JSON[_0x5a0977(0x24e)](_0x5a40aa[_0x5a0977(0x387)]);this[_0x5a0977(0x3bf)](_0x238994);}))),window['addEventListener'](_0x24a31d(0x3ef),()=>this[_0x24a31d(0x2c9)]({'type':0x1,'memberID':this['_id'],'unitIDs':Array[_0x24a31d(0x314)](this['_selfUnitIDs'])}));}[_0x1eb738(0x3bf)](_0x37cce5){const _0x1f78e9=_0x1eb738;switch(_0x37cce5[_0x1f78e9(0x3be)]){case 0x0:this['_handleJoinEvent'](_0x37cce5);break;case 0x1:this[_0x1f78e9(0x1da)](_0x37cce5);break;case 0x2:this[_0x1f78e9(0x1e2)](_0x37cce5);break;}}['_handleJoinEvent'](_0xd5d540){const _0x3581fd=_0x1eb738,{unitIDs:_0x41addf,memberID:_0x3c955c,isForwarded:_0x37d938}=_0xd5d540;_0x41addf[_0x3581fd(0x341)](_0x4f6adb=>{const _0x45a136=_0x3581fd;if(!_0x37d938&&this['_unitOnClients'][_0x45a136(0x293)](_0x4f6adb)&&this[_0x45a136(0x1e0)](_0x4f6adb)[_0x45a136(0x1f6)](u[_0x45a136(0x32b)][_0x45a136(0x3cc)]),!this[_0x45a136(0x379)][_0x45a136(0x293)](_0x4f6adb)||!this[_0x45a136(0x379)]['get'](_0x4f6adb)['has'](_0x3c955c)){const _0xd99be2=this[_0x45a136(0x379)][_0x45a136(0x18d)](_0x4f6adb)||new Set();_0xd99be2['add'](_0x3c955c),this[_0x45a136(0x379)][_0x45a136(0x2a5)](_0x4f6adb,_0xd99be2),this[_0x45a136(0x2cb)](_0x3c955c);}}),_0x37d938||this['_send']({'type':0x0,'memberID':this[_0x3581fd(0x347)],'unitIDs':[...this[_0x3581fd(0x29c)]],'isForwarded':!0x0});}[_0x1eb738(0x2cb)](_0x250ad6){const _0x2959f2=_0x1eb738;this[_0x2959f2(0x2d1)](_0x250ad6);const _0x5b42c5=window[_0x2959f2(0x3d3)](()=>{const _0x1c7ce5=_0x2959f2;this[_0x1c7ce5(0x379)][_0x1c7ce5(0x341)](_0x34b6b2=>{const _0x59d104=_0x1c7ce5;_0x34b6b2[_0x59d104(0x322)](_0x250ad6);});},Pe*0x2);this[_0x2959f2(0x3d4)][_0x2959f2(0x2a5)](_0x250ad6,_0x5b42c5);}[_0x1eb738(0x2d1)](_0xd6cd55){const _0x250994=_0x1eb738;if(this['_clearOtherTimers'][_0x250994(0x293)](_0xd6cd55)){const _0x48c2e4=this[_0x250994(0x3d4)][_0x250994(0x18d)](_0xd6cd55);_0x48c2e4&&window[_0x250994(0x261)](_0x48c2e4),this[_0x250994(0x3d4)][_0x250994(0x2a5)](_0xd6cd55,null);}}['_handleLeaveEvent'](_0x4880dd){const _0x5a1e96=_0x1eb738,{memberID:_0x51b4c5,unitIDs:_0x37c50a}=_0x4880dd;_0x37c50a['forEach'](_0x431054=>{const _0x1b8990=_0x1aec;var _0x51e3ed;const _0x13a95e=this[_0x1b8990(0x379)][_0x1b8990(0x18d)](_0x431054);_0x13a95e&&(_0x13a95e['delete'](_0x51b4c5),(_0x51e3ed=this[_0x1b8990(0x1e0)](_0x431054))==null||_0x51e3ed[_0x1b8990(0x1f6)](_0x13a95e['size']===0x0?u[_0x1b8990(0x32b)][_0x1b8990(0x35e)]:u['UnitStatus'][_0x1b8990(0x3cc)]));}),this[_0x5a1e96(0x2d1)](_0x51b4c5);}[_0x1eb738(0x1e2)](_0x1759d3){const _0x4f7ece=_0x1eb738;this[_0x4f7ece(0x2cb)](_0x1759d3[_0x4f7ece(0x1f5)]);}[_0x1eb738(0x2c9)](_0xa6e08){localStorage['setItem'](Le,JSON['stringify'](_0xa6e08));}[_0x1eb738(0x285)](){const _0x3628fd=_0x1eb738;this[_0x3628fd(0x2c7)]=window[_0x3628fd(0x1a7)](()=>{const _0x73c3cd=_0x3628fd;this[_0x73c3cd(0x2c9)]({'type':0x2,'memberID':this[_0x73c3cd(0x347)]});},Pe);}['_ensureSubject'](_0x1e1ff4){const _0xb3ae56=_0x1eb738;return this[_0xb3ae56(0x34a)]['has'](_0x1e1ff4)||this[_0xb3ae56(0x34a)]['set'](_0x1e1ff4,new d[(_0xb3ae56(0x292))](u['UnitStatus'][_0xb3ae56(0x35e)])),this[_0xb3ae56(0x34a)][_0xb3ae56(0x18d)](_0x1e1ff4);}}var ke=(_0x3c613c=>(_0x3c613c[_0x3c613c[_0x1eb738(0x1a5)]=0x0]='UNDEFINED',_0x3c613c[_0x3c613c['OK']=0x1]='OK',_0x3c613c[_0x3c613c['INTERNAL_ERROR']=0x2]=_0x1eb738(0x259),_0x3c613c[_0x3c613c[_0x1eb738(0x23a)]=0x3]='PERMISSION_DENIED',_0x3c613c[_0x3c613c[_0x1eb738(0x321)]=0x4]=_0x1eb738(0x321),_0x3c613c[_0x3c613c['UNAUTHENTICATED']=0x5]=_0x1eb738(0x3da),_0x3c613c[_0x3c613c[_0x1eb738(0x221)]=0x6]=_0x1eb738(0x221),_0x3c613c[_0x3c613c[_0x1eb738(0x237)]=0x7]=_0x1eb738(0x237),_0x3c613c[_0x3c613c[_0x1eb738(0x3a6)]=0x8]=_0x1eb738(0x3a6),_0x3c613c[_0x3c613c[_0x1eb738(0x295)]=0x9]=_0x1eb738(0x295),_0x3c613c[_0x3c613c[_0x1eb738(0x320)]=0xa]=_0x1eb738(0x320),_0x3c613c[_0x3c613c[_0x1eb738(0x312)]=0x1389]=_0x1eb738(0x312),_0x3c613c[_0x3c613c[_0x1eb738(0x2e8)]=0x1771]=_0x1eb738(0x2e8),_0x3c613c[_0x3c613c[_0x1eb738(0x332)]=0x1772]=_0x1eb738(0x332),_0x3c613c[_0x3c613c[_0x1eb738(0x3fa)]=0x1773]=_0x1eb738(0x3fa),_0x3c613c[_0x3c613c[_0x1eb738(0x284)]=0x1b59]=_0x1eb738(0x284),_0x3c613c[_0x3c613c[_0x1eb738(0x27b)]=0x1b5a]=_0x1eb738(0x27b),_0x3c613c[_0x3c613c[_0x1eb738(0x31d)]=0x1b5b]='APPLY_REVISION_CONFILICT',_0x3c613c[_0x3c613c[_0x1eb738(0x3fc)]=0x1b5c]=_0x1eb738(0x3fc),_0x3c613c[_0x3c613c[_0x1eb738(0x2e4)]=0x1b5d]=_0x1eb738(0x2e4),_0x3c613c[_0x3c613c[_0x1eb738(0x1ca)]=0x1f41]='CONNECTOR_DATA_TOO_LARGE',_0x3c613c[_0x3c613c[_0x1eb738(0x3b9)]=0x2329]=_0x1eb738(0x3b9),_0x3c613c[_0x3c613c['LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED']=0x232a]=_0x1eb738(0x372),_0x3c613c[_0x3c613c['LICENSE_IMPORT_SIZE_EXCEEDED']=0x232b]='LICENSE_IMPORT_SIZE_EXCEEDED',_0x3c613c[_0x3c613c['LICENSE_EXPORT_SIZE_EXCEEDED']=0x232c]='LICENSE_EXPORT_SIZE_EXCEEDED',_0x3c613c[_0x3c613c['LICENSE_DISTRO_REJECTED']=0x232d]='LICENSE_DISTRO_REJECTED',_0x3c613c[_0x3c613c['YUUMI_UNABLE_LOAD_URL']=0x2711]=_0x1eb738(0x1ba),_0x3c613c[_0x3c613c[_0x1eb738(0x1c5)]=0x2712]='YUUMI_URL_COL_OUT_OF_RANGE',_0x3c613c[_0x3c613c[_0x1eb738(0x1f2)]=0x2713]='YUUMI_RATE_OVER_LIMIT',_0x3c613c[_0x3c613c[_0x1eb738(0x2ef)]=0x2714]=_0x1eb738(0x2ef),_0x3c613c[_0x3c613c['PY_RUNTIME_SCRIPT_ERROR']=0x2af9]=_0x1eb738(0x2ea),_0x3c613c[_0x3c613c[_0x1eb738(0x394)]=0x2ee1]=_0x1eb738(0x394),_0x3c613c[_0x3c613c[_0x1eb738(0x20a)]=0x2ee2]=_0x1eb738(0x20a),_0x3c613c[_0x3c613c['INVITE_CODE_REQUIRED']=0x2ee3]='INVITE_CODE_REQUIRED',_0x3c613c[_0x3c613c[_0x1eb738(0x1dc)]=0x2ee4]=_0x1eb738(0x1dc),_0x3c613c[_0x3c613c[_0x1eb738(0x306)]=0x2ee5]=_0x1eb738(0x306),_0x3c613c[_0x3c613c['WECHAT_HAS_BEEN_BOUND']=0x32c9]=_0x1eb738(0x2c3),_0x3c613c[_0x3c613c['MOBILE_HAS_BEEN_BOUND']=0x32ca]=_0x1eb738(0x310),_0x3c613c[_0x3c613c[_0x1eb738(0x296)]=0x32cb]=_0x1eb738(0x296),_0x3c613c[_0x3c613c['UNRECOGNIZED']=-0x1]=_0x1eb738(0x2dc),_0x3c613c))(ke||{}),_s=Object['getOwnPropertyDescriptor'],hs=(_0x25204c,_0x5c18e4,_0x158d57,_0x1c7bbb)=>{for(var _0x3c27d0=_0x1c7bbb>0x1?void 0x0:_0x1c7bbb?_s(_0x5c18e4,_0x158d57):_0x5c18e4,_0x230f69=_0x25204c['length']-0x1,_0x4eb863;_0x230f69>=0x0;_0x230f69--)(_0x4eb863=_0x25204c[_0x230f69])&&(_0x3c27d0=_0x4eb863(_0x3c27d0)||_0x3c27d0);return _0x3c27d0;},de=(_0x3fb5e5,_0x2f1a57)=>(_0x3ee03d,_0x498577)=>_0x2f1a57(_0x3ee03d,_0x498577,_0x3fb5e5);exports['RemoteUniscriptService']=class extends a[_0x1eb738(0x1be)]{constructor(_0x2b9e70,_0x202376,_0x15db90){const _0x16aaa8=_0x1eb738;super(),this[_0x16aaa8(0x3c8)]=_0x2b9e70,this[_0x16aaa8(0x378)]=_0x202376,this[_0x16aaa8(0x3e8)]=_0x15db90;}async[_0x1eb738(0x1c0)](_0x2ebdc6,_0xdff92a,_0x194d70,..._0x2c3dfe){const _0x41225a=_0x1eb738;var _0x15c5bd,_0x59d182,_0x2e7e94,_0x9c48af;const _0x49bf2c=this[_0x41225a(0x3c8)][_0x41225a(0x225)]();if(!_0x49bf2c)throw new Error(_0x41225a(0x3a2));const _0x598f5a=((_0x15c5bd=this[_0x41225a(0x3e8)][_0x41225a(0x1bd)](u[_0x41225a(0x1ef)]))!=null?_0x15c5bd:u[_0x41225a(0x308)])+'/'+_0x2ebdc6+_0x41225a(0x250)+_0xdff92a,_0xf56aed=new URL(window[_0x41225a(0x27e)]['href']),_0xff2084={'scriptId':_0x2ebdc6,'runId':(_0x59d182=_0xf56aed[_0x41225a(0x3fd)][_0x41225a(0x18d)](_0x41225a(0x37e)))!=null?_0x59d182:'','function':_0xdff92a,'unitId':_0x49bf2c[_0x41225a(0x2b2)](),'argsOfFunction':JSON[_0x41225a(0x326)](_0x2c3dfe),'invokeId':(_0x2e7e94=_0x194d70[_0x41225a(0x3fe)])!=null?_0x2e7e94:'','executionId':(_0x9c48af=_0x194d70[_0x41225a(0x1c9)])!=null?_0x9c48af:''};try{const _0x1f0f78=await this[_0x41225a(0x378)][_0x41225a(0x19b)](_0x598f5a,{'body':_0xff2084});return _0x1f0f78[_0x41225a(0x301)][_0x41225a(0x373)]&&_0x1f0f78['body'][_0x41225a(0x373)]['code']!==ke['OK']?_0x41225a(0x338):_0x1f0f78[_0x41225a(0x301)][_0x41225a(0x1ae)];}catch{return _0x41225a(0x338);}}},exports[_0x1eb738(0x2ce)]=hs([de(0x0,a['IUniverInstanceService']),de(0x1,a[_0x1eb738(0x1e3)](q[_0x1eb738(0x37a)])),de(0x2,a[_0x1eb738(0x1c7)])],exports[_0x1eb738(0x2ce)]),exports[_0x1eb738(0x286)]=je,exports[_0x1eb738(0x251)]=Ee,exports[_0x1eb738(0x2da)]=Ae,exports['WebBrowserSingleActiveUnitService']=ls,exports['WebURLService']=Be;
1
+ 'use strict';const _0x28af75=_0x4bb0;(function(_0x41a811,_0x591981){const _0x52a93a=_0x4bb0,_0x35fe21=_0x41a811();while(!![]){try{const _0x548b20=-parseInt(_0x52a93a(0x1ae))/0x1+parseInt(_0x52a93a(0x1f1))/0x2*(parseInt(_0x52a93a(0x124))/0x3)+-parseInt(_0x52a93a(0x15c))/0x4+-parseInt(_0x52a93a(0x19b))/0x5*(parseInt(_0x52a93a(0x29c))/0x6)+-parseInt(_0x52a93a(0x2bf))/0x7+-parseInt(_0x52a93a(0x106))/0x8+parseInt(_0x52a93a(0x2b5))/0x9*(parseInt(_0x52a93a(0x309))/0xa);if(_0x548b20===_0x591981)break;else _0x35fe21['push'](_0x35fe21['shift']());}catch(_0x4b9b40){_0x35fe21['push'](_0x35fe21['shift']());}}}(_0x48a7,0x42002));var Xe=Object[_0x28af75(0x159)],Ge=(_0x60a8eb,_0x133aac,_0x5d9adc)=>_0x133aac in _0x60a8eb?Xe(_0x60a8eb,_0x133aac,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x5d9adc}):_0x60a8eb[_0x133aac]=_0x5d9adc,_=(_0x37a173,_0x485e1b,_0x26bd81)=>Ge(_0x37a173,typeof _0x485e1b!='symbol'?_0x485e1b+'':_0x485e1b,_0x26bd81);Object['defineProperty'](exports,Symbol['toStringTag'],{'value':'Module'});const u=require(_0x28af75(0x292)),a=require('@univerjs/core'),p=require('@univerjs/engine-render'),q=require(_0x28af75(0x31a)),b=require(_0x28af75(0x205)),qe=require('@univerjs/drawing'),d=require(_0x28af75(0x1d7)),Y=require(_0x28af75(0x191)),m=require(_0x28af75(0x263)),Te=require('@univerjs/engine-formula'),g=require(_0x28af75(0xd1)),$=require(_0x28af75(0xeb)),G=require(_0x28af75(0x2de)),L=require('react/jsx-runtime'),R=require(_0x28af75(0x2ec)),T=require(_0x28af75(0x34a)),M=require(_0x28af75(0x2ca)),Ke=require(_0x28af75(0x18f));var ze=Object[_0x28af75(0x30c)],Je=(_0x3771d8,_0x2a9252,_0x91bf6a,_0x4fa9ea)=>{const _0x4b9262=_0x28af75;for(var _0x16b858=_0x4fa9ea>0x1?void 0x0:_0x4fa9ea?ze(_0x2a9252,_0x91bf6a):_0x2a9252,_0x13f702=_0x3771d8[_0x4b9262(0x1af)]-0x1,_0x31dea5;_0x13f702>=0x0;_0x13f702--)(_0x31dea5=_0x3771d8[_0x13f702])&&(_0x16b858=_0x31dea5(_0x16b858)||_0x16b858);return _0x16b858;},Re=(_0x653061,_0x4f111e)=>(_0x3eb3e0,_0x4a5a19)=>_0x4f111e(_0x3eb3e0,_0x4a5a19,_0x653061);let fe=class extends a[_0x28af75(0x1de)]{constructor(_0x5210eb,_0x2a4cd4){const _0x25ec1d=_0x28af75;super(),this[_0x25ec1d(0x177)]=_0x5210eb,this[_0x25ec1d(0x219)]=_0x2a4cd4,this[_0x25ec1d(0x166)]();}[_0x28af75(0x166)](){const _0x3352c6=_0x28af75,_0x111837=this;this[_0x3352c6(0x253)](this[_0x3352c6(0x177)][_0x3352c6(0x1ad)]({'onBeforePasteImage':async _0x432bbb=>{const _0x2c7c79=_0x3352c6,_0x3a73a0=await _0x111837[_0x2c7c79(0x219)][_0x2c7c79(0x1fd)](_0x432bbb);return _0x3a73a0?{'source':_0x3a73a0[_0x2c7c79(0xee)],'imageSourceType':_0x3a73a0['imageSourceType']}:null;}}));}};fe=Je([Re(0x0,b[_0x28af75(0x107)]),Re(0x1,qe['IImageIoService'])],fe);const Oe=[_0x28af75(0x2fc),_0x28af75(0x25b),_0x28af75(0x128),_0x28af75(0x1e2),_0x28af75(0x2ce),_0x28af75(0xf0)];class Ce extends a[_0x28af75(0x242)]{constructor(){const _0x497671=_0x28af75;super(...arguments),_(this,_0x497671(0x206),new Map()),_(this,_0x497671(0x15d),0x0);}[_0x28af75(0x283)](_0x526a70){const _0xf88571=_0x28af75;if(this[_0xf88571(0x206)][_0xf88571(0x1d6)](_0x526a70))return this['_assignedColors'][_0xf88571(0x340)](_0x526a70);const _0x703de7=Oe[this[_0xf88571(0x15d)]];return this[_0xf88571(0x15d)]=(this[_0xf88571(0x15d)]+0x1)%Oe['length'],this[_0xf88571(0x206)]['set'](_0x526a70,_0x703de7),_0x703de7;}}function we(_0x41bce8){const _0x2debeb=_0x28af75;let _0x28b99d='';for(const _0x51e5bd of _0x41bce8){const {startOffset:_0x1f3d8d,endOffset:_0x21d0fb,isActive:_0xcf64fa,rangeType:_0x26c1d5,segmentId:_0x10adcb,segmentPage:_0x476684}=_0x51e5bd;_0x28b99d[_0x2debeb(0x1af)]&&(_0x28b99d+=','),_0x28b99d+=_0x1f3d8d+':'+_0x21d0fb+':'+(_0xcf64fa?'1':'0')+':'+_0x26c1d5+':'+_0x10adcb+':'+_0x476684;}return _0x28b99d;}function Ze(_0x1c713a){const _0x25d508=_0x28af75,_0x346e6b=_0x1c713a[_0x25d508(0x1fa)](','),_0x30918c=[];for(const _0x568a57 of _0x346e6b){const [_0xf4381d,_0x34035a,_0x3d3530,_0x4ead4d,_0x284db8,_0x194d8a]=_0x568a57[_0x25d508(0x1fa)](':');_0x30918c[_0x25d508(0x230)]({'startOffset':Number(_0xf4381d),'endOffset':Number(_0x34035a),'collapsed':_0xf4381d===_0x34035a,'isActive':_0x3d3530==='1','rangeType':_0x4ead4d===a['DOC_RANGE_TYPE'][_0x25d508(0x160)]?a[_0x25d508(0x216)][_0x25d508(0x160)]:a['DOC_RANGE_TYPE']['RECT'],'segmentId':typeof _0x284db8==_0x25d508(0x12e)?String(_0x284db8):'','segmentPage':Number(_0x194d8a!=null?_0x194d8a:-0x1)});}return _0x30918c[_0x25d508(0x1e5)](_0x5dfbdc=>_0x5dfbdc['isActive'])||(_0x30918c[0x0][_0x25d508(0xd7)]=!0x0),_0x30918c;}class pe extends a['RxDisposable']{constructor(){const _0x4ba2f6=_0x28af75;super(...arguments),_(this,'_collabCursorState$',new d[(_0x4ba2f6(0x19f))](null)),_(this,_0x4ba2f6(0x254),this[_0x4ba2f6(0x126)][_0x4ba2f6(0x324)]());}[_0x28af75(0x2f4)](_0x402a50){const _0x48e94b=_0x28af75,{unitID:_0x188891,memberID:_0x1a8cad,textRanges:_0x4bc01a}=_0x402a50,_0x4c9024=we(_0x4bc01a);if(_0x4c9024==='')return;const _0x509c90={'unitID':_0x188891,'memberID':_0x1a8cad,'selection':_0x4c9024};this[_0x48e94b(0x126)][_0x48e94b(0x14d)](_0x509c90);}}var Qe=Object['getOwnPropertyDescriptor'],et=(_0x22137d,_0x5bd576,_0x1ae0cb,_0x2592b4)=>{const _0x30b963=_0x28af75;for(var _0x4c5446=_0x2592b4>0x1?void 0x0:_0x2592b4?Qe(_0x5bd576,_0x1ae0cb):_0x5bd576,_0x1481d2=_0x22137d[_0x30b963(0x1af)]-0x1,_0x29db3a;_0x1481d2>=0x0;_0x1481d2--)(_0x29db3a=_0x22137d[_0x1481d2])&&(_0x4c5446=_0x29db3a(_0x4c5446)||_0x4c5446);return _0x4c5446;},P=(_0x4b1643,_0x349165)=>(_0x341c1b,_0x356c4e)=>_0x349165(_0x341c1b,_0x356c4e,_0x4b1643);const tt=0x12c,st=0x64;let Se=class extends a['RxDisposable']{constructor(_0x1b0a62,_0x3f6b98,_0x385040,_0x4fa429,_0x279511,_0x373c87,_0x2aedb0,_0x586013,_0x433797){const _0x5637bc=_0x28af75;super(),_(this,_0x5637bc(0x1c7),!0x1),_(this,_0x5637bc(0x166),!0x1),_(this,_0x5637bc(0x20d),new d[(_0x5637bc(0x19f))](new Map())),_(this,_0x5637bc(0x1a2),this[_0x5637bc(0x20d)]['asObservable']()),_(this,'_roomMembers$',new d[(_0x5637bc(0x19f))]([])),_(this,_0x5637bc(0x27e),this['_roomMembers$'][_0x5637bc(0x214)](d[_0x5637bc(0x1cf)](tt))),_(this,_0x5637bc(0x17a),a[_0x5637bc(0x28f)](_0x4a4cda=>{const _0x1ed976=_0x5637bc,_0x322da={'eventID':m[_0x1ed976(0x1ca)]['UPDATE_CURSOR'],'data':{'unitID':this[_0x1ed976(0x24c)],'memberID':this[_0x1ed976(0x259)][_0x1ed976(0x322)](),'selection':we(_0x4a4cda)}};this[_0x1ed976(0x259)][_0x1ed976(0x27b)](_0x322da,this[_0x1ed976(0x24c)]);},st)),(this['unitID']=_0x1b0a62,this[_0x5637bc(0x259)]=_0x3f6b98,this['_injector']=_0x385040,this[_0x5637bc(0x298)]=_0x4fa429,this[_0x5637bc(0x1b8)]=_0x279511,this[_0x5637bc(0x342)]=_0x373c87,this[_0x5637bc(0xfa)]=_0x2aedb0,this[_0x5637bc(0x337)]=_0x586013,this[_0x5637bc(0x1d8)]=_0x433797);}get[_0x28af75(0x228)](){return this['_cursorInfo$']['getValue']();}get[_0x28af75(0x227)](){const _0x1ffdee=_0x28af75;return this[_0x1ffdee(0xf3)][_0x1ffdee(0x2e9)]();}['dispose'](){const _0x375f9b=_0x28af75;super[_0x375f9b(0x11a)](),this[_0x375f9b(0x20d)]['next'](new Map()),this[_0x375f9b(0x20d)][_0x375f9b(0x18b)](),this[_0x375f9b(0xf3)][_0x375f9b(0x14d)]([]),this[_0x375f9b(0xf3)][_0x375f9b(0x18b)]();}[_0x28af75(0x121)](){const _0x449770=_0x28af75;this[_0x449770(0x166)]||(this[_0x449770(0x166)]=!0x0,this[_0x449770(0x259)]['sessionStatus$'][_0x449770(0x214)](d['takeUntil'](this[_0x449770(0x2b0)]))[_0x449770(0x328)](_0x315815=>{const _0x14d088=_0x449770;_0x315815===u[_0x14d088(0x2d6)][_0x14d088(0x25f)]?this['_toggleOnline']():this[_0x14d088(0x15b)]();}),this[_0x449770(0x259)]['event$'][_0x449770(0x214)](d[_0x449770(0xf5)](this[_0x449770(0x2b0)]))[_0x449770(0x328)](_0x146c07=>{const _0x45479d=_0x449770,_0x1b883c=_0x146c07['eventID'];_0x1b883c===m['CollaborationEvent'][_0x45479d(0x2cb)]&&this[_0x45479d(0x2e0)](_0x146c07),_0x1b883c===m['CollaborationEvent'][_0x45479d(0x170)]&&this[_0x45479d(0x16a)](_0x146c07);}),this[_0x449770(0x253)](this['_commandService']['onCommandExecuted'](_0x1c40b9=>{const _0xed4224=_0x449770,_0x832efb=_0x1c40b9['params'];_0x832efb!=null&&this['_online']&&_0x1c40b9['id']===Y['SetTextSelectionsOperation']['id']&&_0x832efb[_0xed4224(0xdf)]===this[_0xed4224(0x24c)]&&_0x832efb[_0xed4224(0x138)]===!0x1&&_0x832efb[_0xed4224(0x16f)][_0xed4224(0x1af)]>0x0&&this[_0xed4224(0x17a)](_0x832efb[_0xed4224(0x16f)]);})),this[_0x449770(0x342)][_0x449770(0x254)][_0x449770(0x214)](d[_0x449770(0xf5)](this[_0x449770(0x2b0)]))[_0x449770(0x328)](_0x5156cd=>{const _0x4696af=_0x449770;if((_0x5156cd==null?void 0x0:_0x5156cd[_0x4696af(0x24c)])!==this[_0x4696af(0x24c)])return;const _0x17f4fa={'eventID':m[_0x4696af(0x1ca)][_0x4696af(0x2cb)],'data':_0x5156cd};this[_0x4696af(0x2e0)](_0x17f4fa);}),this[_0x449770(0x253)](this[_0x449770(0x1d8)]['onCommandExecuted'](_0x404075=>{const _0x382b66=_0x449770;if(_0x404075[_0x382b66(0x15e)]==null)return;const _0x529899=_0x404075[_0x382b66(0x15e)];if(_0x404075['id']!==Y[_0x382b66(0x202)]['id']||_0x529899['unitId']!==this['unitID'])return;const _0x3fab21={'id':_0x382b66(0x1a9),'params':_0x529899},_0x110ed0=this[_0x382b66(0x228)];for(const [_0x59cfb0,_0x40ec33]of _0x110ed0){const _0x2aeee8={'id':_0x382b66(0x1a9),'params':{'unitId':this[_0x382b66(0x24c)],'actions':null,'textRanges':_0x40ec33[_0x382b66(0x16f)]}},_0x5d6e0f=this['_transformService'][_0x382b66(0x319)](_0x3fab21,_0x2aeee8,!0x1);if(m[_0x382b66(0x270)](_0x5d6e0f))throw _0x5d6e0f['error'];_0x110ed0[_0x382b66(0x25e)](_0x59cfb0,{..._0x40ec33,'ranges':_0x5d6e0f[_0x382b66(0x1d4)][_0x382b66(0x15e)][_0x382b66(0x11b)]});}queueMicrotask(()=>{const _0x4d16f1=_0x382b66;this[_0x4d16f1(0x20d)][_0x4d16f1(0x14d)](_0x110ed0);});})));}[_0x28af75(0x2e0)](_0x34c145){const _0x40b424=_0x28af75;var _0x3920f5,_0x1a23d8;const {memberID:_0x3fee1c,selection:_0x36eaac}=_0x34c145[_0x40b424(0x1b0)],_0x5a810e=Ze(_0x36eaac),_0x3e8ef1=(_0x1a23d8=(_0x3920f5=this[_0x40b424(0x1b8)][_0x40b424(0x256)](this[_0x40b424(0x24c)],_0x3fee1c))==null?void 0x0:_0x3920f5['name'])!=null?_0x1a23d8:_0x40b424(0x10f),_0x252f67={'color':this[_0x40b424(0x298)]['assignAColorForMemberID'](_0x3fee1c),'name':_0x3e8ef1,'ranges':_0x5a810e},_0x4e57bb=this[_0x40b424(0x228)];_0x4e57bb['set'](_0x3fee1c,_0x252f67),this[_0x40b424(0x20d)][_0x40b424(0x14d)](_0x4e57bb);}['_onCursorDelete'](_0x2a8769){const _0x4ee993=_0x28af75,{memberID:_0x447f63}=_0x2a8769[_0x4ee993(0x1b0)],_0x5b7b23=this[_0x4ee993(0x228)];_0x5b7b23[_0x4ee993(0x2e4)](_0x447f63),this[_0x4ee993(0x20d)][_0x4ee993(0x14d)](_0x5b7b23);}[_0x28af75(0x156)](){const _0x27c42b=_0x28af75;var _0x416462;if(this[_0x27c42b(0x1c7)]=!0x0,((_0x416462=this['_univerInstanceService'][_0x27c42b(0x178)]())==null?void 0x0:_0x416462['getUnitId']())!==this[_0x27c42b(0x24c)])return;const _0x4ab5c9=this[_0x27c42b(0x147)]['get'](Y[_0x27c42b(0x244)])['getDocRanges']();Array[_0x27c42b(0x150)](_0x4ab5c9)&&_0x4ab5c9[_0x27c42b(0x1af)]>0x0&&this[_0x27c42b(0x17a)](_0x4ab5c9);}['_toggleOffline'](){const _0x14c338=_0x28af75;this[_0x14c338(0x1c7)]=!0x1;}};function _0x4bb0(_0x48eba6,_0x2eff01){const _0x48a73e=_0x48a7();return _0x4bb0=function(_0x4bb0d9,_0x18204a){_0x4bb0d9=_0x4bb0d9-0xcd;let _0x4caef5=_0x48a73e[_0x4bb0d9];return _0x4caef5;},_0x4bb0(_0x48eba6,_0x2eff01);}Se=et([P(0x2,a[_0x28af75(0x345)](a['Injector'])),P(0x3,a[_0x28af75(0x345)](Ce)),P(0x4,a['Inject'](u[_0x28af75(0x2bb)])),P(0x5,a[_0x28af75(0x345)](pe)),P(0x6,m[_0x28af75(0xe5)]),P(0x7,a['IUniverInstanceService']),P(0x8,a['ICommandService'])],Se);var nt=Object[_0x28af75(0x30c)],it=(_0x15203b,_0xc8179,_0x46e1ce,_0x51e881)=>{const _0x858142=_0x28af75;for(var _0x2c18cc=_0x51e881>0x1?void 0x0:_0x51e881?nt(_0xc8179,_0x46e1ce):_0xc8179,_0x4eb9da=_0x15203b[_0x858142(0x1af)]-0x1,_0x13df2e;_0x4eb9da>=0x0;_0x4eb9da--)(_0x13df2e=_0x15203b[_0x4eb9da])&&(_0x2c18cc=_0x13df2e(_0x2c18cc)||_0x2c18cc);return _0x2c18cc;},A=(_0x77d29b,_0xf976d5)=>(_0x4758e6,_0x531be5)=>_0xf976d5(_0x4758e6,_0x531be5,_0x77d29b);const rt=0x12c,ot=0x64,at=()=>{let _0x11b565=[],_0x152a71=!0x1;return _0x468c05=>{_0x11b565['push'](_0x468c05),_0x152a71||(_0x152a71=!0x0,setTimeout(()=>{const _0x5b1f35=_0x4bb0;_0x11b565[_0x5b1f35(0x2cc)](_0x457270=>_0x457270()),_0x11b565=[],_0x152a71=!0x1;}));};};let Ie=class extends a[_0x28af75(0x1de)]{constructor(_0x30107d,_0x118cac,_0x25b2cf,_0x49d41f,_0x385d5d,_0xe5ff01,_0x4d3fb7,_0x2f3034){const _0x2ba3a5=_0x28af75;super(),_(this,_0x2ba3a5(0x1c7),!0x1),_(this,_0x2ba3a5(0x166),!0x1),_(this,_0x2ba3a5(0x20d),new d['BehaviorSubject'](new Map())),_(this,_0x2ba3a5(0x1a2),this['_cursorInfo$'][_0x2ba3a5(0x324)]()),_(this,'_roomMembers$',new d[(_0x2ba3a5(0x19f))]([])),_(this,_0x2ba3a5(0x27e),this['_roomMembers$'][_0x2ba3a5(0x214)](d[_0x2ba3a5(0x1cf)](rt))),_(this,_0x2ba3a5(0x17a),a[_0x2ba3a5(0x28f)]((_0x65617c,_0x2cbf8d)=>{const _0x1c2d49=_0x2ba3a5,_0x5bbbeb={'eventID':m[_0x1c2d49(0x1ca)][_0x1c2d49(0x2cb)],'data':{'unitID':this[_0x1c2d49(0x24c)],'memberID':this[_0x1c2d49(0x259)]['getMemberID'](),'selection':Te[_0x1c2d49(0x13f)](_0x65617c,_0x2cbf8d[_0x1c2d49(0x21d)])}};this[_0x1c2d49(0x259)][_0x1c2d49(0x27b)](_0x5bbbeb,this['unitID']);},ot)),(this['unitID']=_0x30107d,this[_0x2ba3a5(0x259)]=_0x118cac,this[_0x2ba3a5(0x147)]=_0x25b2cf,this[_0x2ba3a5(0x298)]=_0x49d41f,this[_0x2ba3a5(0x1b8)]=_0x385d5d,this['_univerInstanceService']=_0xe5ff01,this[_0x2ba3a5(0x1d8)]=_0x4d3fb7,this['_refRangeService']=_0x2f3034);}get['cursorInfo'](){const _0x582c2c=_0x28af75;return this['_cursorInfo$'][_0x582c2c(0x2e9)]();}get[_0x28af75(0x227)](){const _0x403f1a=_0x28af75;return this[_0x403f1a(0xf3)][_0x403f1a(0x2e9)]();}[_0x28af75(0x11a)](){const _0x296c32=_0x28af75;super[_0x296c32(0x11a)](),this[_0x296c32(0x20d)][_0x296c32(0x14d)](new Map()),this[_0x296c32(0x20d)][_0x296c32(0x18b)](),this['_roomMembers$']['next']([]),this[_0x296c32(0xf3)]['complete']();}[_0x28af75(0x121)](){const _0xbce2c8=_0x28af75;this['_init']||(this[_0xbce2c8(0x166)]=!0x0,this[_0xbce2c8(0x259)]['sessionStatus$'][_0xbce2c8(0x214)](d[_0xbce2c8(0xf5)](this[_0xbce2c8(0x2b0)]))[_0xbce2c8(0x328)](_0x3ee7bf=>{const _0x310761=_0xbce2c8;_0x3ee7bf===u[_0x310761(0x2d6)][_0x310761(0x25f)]?this[_0x310761(0x156)]():this['_toggleOffline']();}),this[_0xbce2c8(0x259)]['event$']['pipe'](d[_0xbce2c8(0xf5)](this[_0xbce2c8(0x2b0)]))[_0xbce2c8(0x328)](_0x5c5f0f=>{const _0x303fd3=_0xbce2c8,_0x5059c7=_0x5c5f0f[_0x303fd3(0x102)];_0x5059c7===m[_0x303fd3(0x1ca)]['UPDATE_CURSOR']&&this[_0x303fd3(0x2e0)](_0x5c5f0f),_0x5059c7===m['CollaborationEvent'][_0x303fd3(0x170)]&&this[_0x303fd3(0x16a)](_0x5c5f0f);}),this[_0xbce2c8(0x338)](),this[_0xbce2c8(0x253)](this['_commandService'][_0xbce2c8(0x25d)](_0x2a964d=>{const _0x39acb4=_0xbce2c8;if(this[_0x39acb4(0x1c7)]&&_0x2a964d['id']===g[_0x39acb4(0x2d7)]['id']&&_0x2a964d[_0x39acb4(0x15e)]['unitId']===this['unitID']){const _0xd80bf1=_0x2a964d[_0x39acb4(0x15e)];this[_0x39acb4(0x17a)](_0xd80bf1[_0x39acb4(0x281)],_0xd80bf1[_0x39acb4(0x267)][0x0]);}})));}[_0x28af75(0x2e0)](_0x2b73ff){const _0x2cb47a=_0x28af75;var _0x520847,_0x12bd01;const {memberID:_0x275b69,selection:_0x2b3d15}=_0x2b73ff['data'],{sheetName:_0x7402f8,range:_0x313826}=Te[_0x2cb47a(0x287)](_0x2b3d15),_0x5d849f={'name':(_0x12bd01=(_0x520847=this[_0x2cb47a(0x1b8)][_0x2cb47a(0x256)](this[_0x2cb47a(0x24c)],_0x275b69))==null?void 0x0:_0x520847[_0x2cb47a(0x2f2)])!=null?_0x12bd01:_0x2cb47a(0x10f),'range':this[_0x2cb47a(0x13c)](_0x7402f8,_0x313826),'sheetID':_0x7402f8,'color':this[_0x2cb47a(0x298)][_0x2cb47a(0x283)](_0x275b69),'selection':_0x2b3d15},_0x59678d=this[_0x2cb47a(0x228)];_0x59678d['set'](_0x275b69,_0x5d849f),this['_cursorInfo$'][_0x2cb47a(0x14d)](_0x59678d);}[_0x28af75(0x16a)](_0x264db4){const _0x28a3e4=_0x28af75,{memberID:_0x27fe97}=_0x264db4[_0x28a3e4(0x1b0)],_0x141f61=this['cursorInfo'];_0x141f61[_0x28a3e4(0x2e4)](_0x27fe97),this['_cursorInfo$']['next'](_0x141f61);}['_getMergeRange'](_0x103719,_0x4c8708){const _0x54b23a=_0x28af75;var _0x38807a,_0x130ac2;const _0x3c2db0=(_0x130ac2=(_0x38807a=this['_univerInstanceService'][_0x54b23a(0xf2)](this[_0x54b23a(0x24c)]))==null?void 0x0:_0x38807a[_0x54b23a(0xf7)](_0x103719))==null?void 0x0:_0x130ac2[_0x54b23a(0x114)]();return(_0x3c2db0==null?void 0x0:_0x3c2db0[_0x54b23a(0x2be)](_0x502f59=>a[_0x54b23a(0x1eb)][_0x54b23a(0x111)](_0x502f59,_0x4c8708)))||_0x4c8708;}[_0x28af75(0x338)](){const _0x41e944=_0x28af75,_0x4e45d0=new a[(_0x41e944(0x115))](),_0x595dca=at(),_0x360ca2=()=>{const _0x2621d9=_0x41e944;_0x4e45d0[_0x2621d9(0x11a)]();const _0x276cd5=(_0xd900e9,_0x4dcf9c,_0x2d2db6,_0x3e67b1)=>{const _0xd57b9d=_0x2621d9;let _0x2e2704=[];switch(_0xd900e9['id']){case g['EffectRefRangId'][_0xd57b9d(0x1a5)]:{_0x2e2704=g[_0xd57b9d(0x307)](_0xd900e9,_0x3e67b1);break;}case g[_0xd57b9d(0x2f3)][_0xd57b9d(0x1c1)]:{_0x2e2704=g['handleDeleteRangeMoveUp'](_0xd900e9,_0x3e67b1);break;}case g['EffectRefRangId'][_0xd57b9d(0x2e5)]:{_0x2e2704=g[_0xd57b9d(0x294)](_0xd900e9,_0x3e67b1);break;}case g['EffectRefRangId']['InsertRangeMoveDownCommandId']:{_0x2e2704=g[_0xd57b9d(0x2b3)](_0xd900e9,_0x3e67b1);break;}case g['EffectRefRangId']['InsertRangeMoveRightCommandId']:{_0x2e2704=g[_0xd57b9d(0x255)](_0xd900e9,_0x3e67b1);break;}case g[_0xd57b9d(0x2f3)]['InsertRowCommandId']:{_0x2e2704=g[_0xd57b9d(0x1f5)](_0xd900e9,_0x3e67b1);break;}case g[_0xd57b9d(0x2f3)][_0xd57b9d(0x23d)]:{_0x2e2704=g[_0xd57b9d(0x2ee)](_0xd900e9,_0x3e67b1);break;}case g[_0xd57b9d(0x2f3)][_0xd57b9d(0x10d)]:{_0x2e2704=g[_0xd57b9d(0x2e3)](_0xd900e9,_0x3e67b1);break;}case g[_0xd57b9d(0x2f3)]['RemoveRowCommandId']:{_0x2e2704=g['handleIRemoveRow'](_0xd900e9,_0x3e67b1);break;}}const _0x9f34fc=g[_0xd57b9d(0x1da)](_0x2e2704,_0x3e67b1),_0x342d6e=this['cursorInfo'][_0xd57b9d(0x340)](_0x4dcf9c);if(_0x342d6e&&_0x9f34fc){const _0x5a7cd7={..._0x342d6e,'range':_0x9f34fc};this[_0xd57b9d(0x228)][_0xd57b9d(0x25e)](_0x4dcf9c,_0x5a7cd7),_0x595dca(()=>{const _0x4be4b7=_0xd57b9d,_0x57dd55=this[_0x4be4b7(0x168)][_0x4be4b7(0x144)](_0x9f34fc,_0x119978=>(_0x57dd55[_0x4be4b7(0x11a)](),_0x276cd5(_0x119978,_0x4dcf9c,_0x2d2db6,_0x9f34fc)));_0x4e45d0[_0x4be4b7(0x243)](_0x57dd55);});}return{'redos':[],'undos':[]};};this['cursorInfo']['forEach']((_0x21f63c,_0x2e6cb8)=>{const _0x200328=_0x2621d9,{range:_0x5982c6,sheetID:_0x4ce1ef}=_0x21f63c,_0x172e60=this['_refRangeService'][_0x200328(0x144)](_0x5982c6,_0x4b1619=>(_0x172e60[_0x200328(0x11a)](),_0x276cd5(_0x4b1619,_0x2e6cb8,_0x4ce1ef,_0x5982c6)));_0x4e45d0[_0x200328(0x243)](_0x172e60);});};this[_0x41e944(0x253)](a[_0x41e944(0x330)](this[_0x41e944(0x20d)][_0x41e944(0x328)](()=>{_0x360ca2();})));}[_0x28af75(0x156)](){const _0x8f7a0c=_0x28af75;var _0x3e5ac8,_0xf42e30;if(this[_0x8f7a0c(0x1c7)]=!0x0,((_0x3e5ac8=this[_0x8f7a0c(0x337)][_0x8f7a0c(0x178)]())==null?void 0x0:_0x3e5ac8['getUnitId']())!==this[_0x8f7a0c(0x24c)])return;const _0x55c178=(_0xf42e30=this[_0x8f7a0c(0x147)][_0x8f7a0c(0x340)](g['SheetsSelectionsService'])[_0x8f7a0c(0x316)]())==null?void 0x0:_0xf42e30[0x0],_0x14a0d8=this['_univerInstanceService']['getCurrentUnitForType'](a[_0x8f7a0c(0x2fe)][_0x8f7a0c(0x180)])[_0x8f7a0c(0x137)]();_0x55c178&&_0x14a0d8&&this['_updateLocalCursor'](_0x14a0d8[_0x8f7a0c(0x320)](),_0x55c178);}[_0x28af75(0x15b)](){const _0x2c94f9=_0x28af75;this[_0x2c94f9(0x1c7)]=!0x1;}};Ie=it([A(0x2,a['Inject'](a[_0x28af75(0x184)])),A(0x3,a['Inject'](Ce)),A(0x4,a[_0x28af75(0x345)](u[_0x28af75(0x2bb)])),A(0x5,a['IUniverInstanceService']),A(0x6,a[_0x28af75(0xe7)]),A(0x7,a[_0x28af75(0x345)](g['RefRangeService']))],Ie);var ct=Object[_0x28af75(0x30c)],lt=(_0x5b832e,_0x675aea,_0x46b28b,_0x5f4b48)=>{for(var _0x47047f=_0x5f4b48>0x1?void 0x0:_0x5f4b48?ct(_0x675aea,_0x46b28b):_0x675aea,_0x30d0ca=_0x5b832e['length']-0x1,_0x5978bf;_0x30d0ca>=0x0;_0x30d0ca--)(_0x5978bf=_0x5b832e[_0x30d0ca])&&(_0x47047f=_0x5978bf(_0x47047f)||_0x47047f);return _0x47047f;},ie=(_0x3682be,_0x24447c)=>(_0x55ecd7,_0x3991b8)=>_0x24447c(_0x55ecd7,_0x3991b8,_0x3682be);let x=class extends a['RxDisposable']{constructor(_0x1ffb54,_0x18352a,_0x55b8a2){const _0x465675=_0x28af75;super(),_(this,'_entities',new Map()),_(this,_0x465675(0x163),new d[(_0x465675(0x279))]()),(this[_0x465675(0x337)]=_0x1ffb54,this[_0x465675(0x147)]=_0x18352a,this[_0x465675(0x1d2)]=_0x55b8a2,this[_0x465675(0x166)]());}['dispose'](){const _0x11aeed=_0x28af75;super['dispose'](),this[_0x11aeed(0x163)][_0x11aeed(0x18b)](),this[_0x11aeed(0x296)][_0x11aeed(0x2cc)](_0x695bf8=>_0x695bf8[_0x11aeed(0x11a)]());}[_0x28af75(0x264)](_0x4a6cd9){const _0xd15c9a=_0x28af75;return this['_entities'][_0xd15c9a(0x1d6)](_0x4a6cd9)?this['_entities']['get'](_0x4a6cd9)[_0xd15c9a(0x1a2)]:this[_0xd15c9a(0x163)]['pipe'](d['filter'](_0x159b18=>_0x159b18[_0xd15c9a(0x24c)]===_0x4a6cd9),d[_0xd15c9a(0x301)](_0xf46458=>_0xf46458[_0xd15c9a(0x1a2)]));}[_0x28af75(0x166)](){const _0x244dc3=_0x28af75;this['_univerInstanceService'][_0x244dc3(0x261)](a[_0x244dc3(0x2fe)][_0x244dc3(0x180)])[_0x244dc3(0x214)](d['takeUntil'](this[_0x244dc3(0x2b0)]))[_0x244dc3(0x328)](async _0x488bce=>{const _0x3d5a94=_0x244dc3,_0x25b838=_0x488bce[_0x3d5a94(0x2f1)](),_0x5c5a5a=await this[_0x3d5a94(0x33e)](_0x25b838);this[_0x3d5a94(0x163)][_0x3d5a94(0x14d)](_0x5c5a5a),this[_0x3d5a94(0x296)]['set'](_0x25b838,_0x5c5a5a);}),this[_0x244dc3(0x337)][_0x244dc3(0x261)](a[_0x244dc3(0x2fe)][_0x244dc3(0x348)])[_0x244dc3(0x214)](d['takeUntil'](this[_0x244dc3(0x2b0)]))[_0x244dc3(0x214)](d['filter'](_0x8c21c1=>!_0x8c21c1[_0x244dc3(0x2f1)]()['startsWith']('__')))[_0x244dc3(0x328)](async _0x2f550a=>{const _0x229a3a=_0x244dc3,_0x48b947=_0x2f550a['getUnitId'](),_0x338b5f=await this['_startDocCollabCursor'](_0x48b947);this[_0x229a3a(0x163)][_0x229a3a(0x14d)](_0x338b5f),this['_entities'][_0x229a3a(0x25e)](_0x48b947,_0x338b5f);}),d['merge'](this[_0x244dc3(0x337)]['getTypeOfUnitDisposed$'](a[_0x244dc3(0x2fe)][_0x244dc3(0x348)]),this[_0x244dc3(0x337)][_0x244dc3(0x2e7)](a[_0x244dc3(0x2fe)][_0x244dc3(0x180)]))['pipe'](d[_0x244dc3(0xf5)](this[_0x244dc3(0x2b0)]))['subscribe'](_0xc88c22=>{const _0x2f3de0=_0x244dc3,_0x2a6d9e=_0xc88c22[_0x2f3de0(0x2f1)](),_0x5caa0f=this[_0x2f3de0(0x296)][_0x2f3de0(0x340)](_0x2a6d9e);_0x5caa0f&&(_0x5caa0f[_0x2f3de0(0x11a)](),this[_0x2f3de0(0x296)][_0x2f3de0(0x2e4)](_0x2a6d9e));});}async[_0x28af75(0x33e)](_0x5e17e4){const _0x396329=_0x28af75,_0x91fab9=await this[_0x396329(0x1d2)][_0x396329(0x2df)](_0x5e17e4),_0x4bb78d=this[_0x396329(0x147)]['createInstance'](Ie,_0x5e17e4,_0x91fab9);return _0x4bb78d['init'](),_0x4bb78d;}async['_startDocCollabCursor'](_0x3cf896){const _0x5464a2=_0x28af75,_0x22dd91=await this[_0x5464a2(0x1d2)]['requireSession'](_0x3cf896),_0x3925fc=this[_0x5464a2(0x147)]['createInstance'](Se,_0x3cf896,_0x22dd91);return _0x3925fc[_0x5464a2(0x121)](),_0x3925fc;}};x=lt([ie(0x0,a[_0x28af75(0x2ed)]),ie(0x1,a[_0x28af75(0x345)](a['Injector'])),ie(0x2,a[_0x28af75(0x345)](u[_0x28af75(0x1a3)]))],x);const K=0x14,De=0xc8,re=0x4,_t=0x5;function ht(_0x13697d,_0x1552cb){const _0xadba91=_0x28af75;let {radius:_0x5169a1,width:_0xa2593b,height:_0x1abedf}=_0x1552cb;_0x5169a1=_0x5169a1!=null?_0x5169a1:0x0,_0xa2593b=_0xa2593b!=null?_0xa2593b:0x1e,_0x1abedf=_0x1abedf!=null?_0x1abedf:0x1e;let _0x2880e0=0x0,_0x6bab9c=0x0,_0x256bf6=0x0;_0x2880e0=_0x6bab9c=_0x256bf6=Math[_0xadba91(0xe9)](_0x5169a1,_0xa2593b/0x2,_0x1abedf/0x2),_0x13697d['beginPath'](),_0x13697d[_0xadba91(0x32f)](_0x2880e0,0x0),_0x13697d[_0xadba91(0x318)](_0xa2593b-_0x6bab9c,0x0),_0x13697d['arc'](_0xa2593b-_0x6bab9c,_0x6bab9c,_0x6bab9c,Math['PI']*0x3/0x2,0x0,!0x1),_0x13697d[_0xadba91(0x318)](_0xa2593b,_0x1abedf-_0x256bf6),_0x13697d[_0xadba91(0x30b)](_0xa2593b-_0x256bf6,_0x1abedf-_0x256bf6,_0x256bf6,0x0,Math['PI']/0x2,!0x1),_0x13697d[_0xadba91(0x318)](0x0,_0x1abedf),_0x13697d[_0xadba91(0x318)](0x0,_0x2880e0),_0x13697d['arc'](_0x2880e0,_0x2880e0,_0x2880e0,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x13697d['closePath'](),_0x1552cb[_0xadba91(0x1db)]&&(_0x13697d[_0xadba91(0x211)](),_0x13697d[_0xadba91(0xf9)]=_0x1552cb[_0xadba91(0x1db)],_0x1552cb[_0xadba91(0x240)]==='evenodd'?_0x13697d['fill'](_0xadba91(0x265)):_0x13697d['fill'](),_0x13697d[_0xadba91(0x317)]());}class te extends p[_0x28af75(0x113)]{constructor(_0x9a46eb,_0x26b43a){const _0x3ba997=_0x28af75;super(_0x9a46eb,_0x26b43a),_(this,_0x3ba997(0x19a)),_(this,_0x3ba997(0x26d)),(this[_0x3ba997(0x19a)]=_0x26b43a==null?void 0x0:_0x26b43a[_0x3ba997(0x19a)],this[_0x3ba997(0x26d)]=_0x26b43a==null?void 0x0:_0x26b43a[_0x3ba997(0x26d)]);}static[_0x28af75(0x1e9)](_0x19dbf3,_0x23c57b){const _0xa9a819=_0x28af75,{text:_0x1a7585,color:_0x1991b0}=_0x23c57b;_0x19dbf3[_0xa9a819(0x211)](),_0x19dbf3[_0xa9a819(0x325)]=_0xa9a819(0x23a);const _0x37d222=_0x19dbf3[_0xa9a819(0x204)](_0x1a7585)[_0xa9a819(0x1b9)],_0x5740c4=Math[_0xa9a819(0xe9)](_0x37d222+0x2*re,De);ht(_0x19dbf3,{'height':K,'radius':0x4,'width':_0x5740c4,'fill':_0x1991b0}),_0x19dbf3[_0xa9a819(0xf9)]=_0xa9a819(0x220);const _0x2d34a4=re,_0x4da846=K-_t,_0x41cd16=De-0x2*re;if(_0x37d222>_0x41cd16){let _0x709310='',_0x5ca35b=0x0;for(const _0x152a59 of _0x1a7585){const _0x463276=_0x19dbf3['measureText'](_0x152a59)[_0xa9a819(0x1b9)];if(_0x5ca35b+_0x463276<=_0x41cd16-_0x19dbf3[_0xa9a819(0x204)](_0xa9a819(0x2d5))[_0xa9a819(0x1b9)])_0x709310+=_0x152a59,_0x5ca35b+=_0x463276;else{_0x709310+=_0xa9a819(0x2d5);break;}}_0x19dbf3[_0xa9a819(0x207)](_0x709310,_0x2d34a4,_0x4da846);}else _0x19dbf3[_0xa9a819(0x207)](_0x1a7585,_0x2d34a4,_0x4da846);_0x19dbf3[_0xa9a819(0x317)]();}[_0x28af75(0x258)](_0x50684e){const _0x281a21=_0x28af75;te[_0x281a21(0x1e9)](_0x50684e,this);}}const oe=_0x28af75(0xe6),ut=_0x28af75(0x272),dt=_0x28af75(0x288),k=0x6,ft=1.5,ae=0x4,St=1.5,It=_0x28af75(0x277);class Ue{constructor(_0x264cd1,_0x4af3cd,_0x8f5bb3,_0x90063e){const _0x4dc645=_0x28af75;_(this,_0x4dc645(0x2c7),[]),_(this,'_anchor',null),_(this,'_textBubble',null),_(this,_0x4dc645(0x1f6),null),_(this,'_hideTimer',null),_(this,'_eventUnsubscribe',null),(this[_0x4dc645(0x34c)]=_0x264cd1,this[_0x4dc645(0x1c8)]=_0x4af3cd,this[_0x4dc645(0x17e)]=_0x8f5bb3,this['_document']=_0x90063e,this['_render']());}set[_0x28af75(0x132)](_0x393f1f){const _0x7d7d58=_0x28af75;_0x393f1f?(this[_0x7d7d58(0x1f6)]&&this['_anchorDot'][_0x7d7d58(0xda)](),this['_textBubble']&&this['_textBubble']['show']()):(this[_0x7d7d58(0x1f6)]&&this[_0x7d7d58(0x1f6)][_0x7d7d58(0x2ea)](),this[_0x7d7d58(0x119)]&&this[_0x7d7d58(0x119)][_0x7d7d58(0xda)]());}[_0x28af75(0x11a)](){const _0x24aaee=_0x28af75;for(const _0x5adba6 of this['_shapes'])_0x5adba6[_0x24aaee(0x11a)]();this['_textBubble']&&this[_0x24aaee(0x119)][_0x24aaee(0x11a)](),this['_anchorDot']&&this[_0x24aaee(0x1f6)][_0x24aaee(0x11a)](),this[_0x24aaee(0x26e)]&&this[_0x24aaee(0x26e)][_0x24aaee(0x11a)](),this[_0x24aaee(0x238)]&&this['_eventUnsubscribe']();}[_0x28af75(0x2db)](){const _0x51d622=_0x28af75;var _0x16e7dc;const {_docSkeleton:_0x22e99d,_document:_0x3b7a74}=this,{color:_0x299509,name:_0x4c7924,ranges:_0x10db16}=this[_0x51d622(0x34c)],_0x4de9e1=_0x3b7a74[_0x51d622(0x2f8)](),{docsLeft:_0x115de5,docsTop:_0x29a2bf}=_0x4de9e1,_0x5d36ef=new b[(_0x51d622(0x22d))](_0x4de9e1,_0x22e99d);for(const {startOffset:_0x268be2,endOffset:_0x1efd50,rangeType:_0x374aa7,segmentId:_0x38165e,segmentPage:_0x11993a,collapsed:_0x182785,isActive:_0x4466d4}of _0x10db16){const _0x31ee53=_0x22e99d[_0x51d622(0x1f3)](_0x268be2,!0x0,_0x38165e,_0x11993a);let _0x1fdb74=_0x22e99d['findNodePositionByCharIndex'](_0x1efd50,!0x0,_0x38165e,_0x11993a);if(_0x1fdb74==null&&(_0x1fdb74=_0x22e99d[_0x51d622(0x1f3)](_0x1efd50-0x1,!0x1,_0x38165e,_0x11993a)),_0x4466d4){const {contentBoxPointGroup:_0x22e600}=_0x5d36ef[_0x51d622(0xde)](_0x1fdb74,_0x1fdb74);if(_0x22e600[_0x51d622(0x1af)]===0x0)continue;this[_0x51d622(0x18d)](_0x299509,_0x22e600,_0x115de5,_0x29a2bf,_0x4c7924),this[_0x51d622(0x238)]=this['_handleHover']();}if(_0x31ee53&&_0x1fdb74){if(_0x374aa7===a[_0x51d622(0x216)][_0x51d622(0x32c)]){const _0x2bc532=new b['NodePositionConvertToRectRange'](_0x4de9e1,_0x22e99d),{pointGroup:_0x13553e}=(_0x16e7dc=_0x2bc532[_0x51d622(0xde)](_0x31ee53,_0x1fdb74))!=null?_0x16e7dc:{};if(_0x13553e==null||_0x13553e['length']===0x0)continue;this['_drawRectRange'](_0x299509,_0x13553e,_0x115de5,_0x29a2bf);}else{if(!_0x182785){const {borderBoxPointGroup:_0x4a1a47}=_0x5d36ef[_0x51d622(0xde)](_0x31ee53,_0x1fdb74);if(_0x4a1a47['length']===0x0)continue;this[_0x51d622(0x19c)](_0x299509,_0x4a1a47,_0x115de5,_0x29a2bf);}}}}}[_0x28af75(0x18d)](_0x3fc1fb,_0x4e5055,_0x4bb5f1,_0x420e9a,_0x431a21){const _0xb9f2bd=_0x28af75,_0x407be9=this[_0xb9f2bd(0x273)](_0x4e5055),{left:_0x45299f,top:_0x45442b,height:_0x601d89}=_0x407be9,_0x3d862e=this[_0xb9f2bd(0x1bf)](),_0x1019c0=St/_0x3d862e,_0x27ebe5=new p[(_0xb9f2bd(0x304))](oe+a[_0xb9f2bd(0x215)][_0xb9f2bd(0x181)](k),{'left':_0x45299f+_0x4bb5f1-_0x1019c0,'top':_0x45442b+_0x420e9a,'height':_0x601d89,'width':ft,'fill':_0x3fc1fb||p[_0xb9f2bd(0x28c)](a[_0xb9f2bd(0x300)][_0xb9f2bd(0xe1)],0x0),'strokeWidth':_0x1019c0,'stroke':It,'evented':!0x0});this['_anchor']=_0x27ebe5,this[_0xb9f2bd(0x1c8)][_0xb9f2bd(0x16e)](_0x27ebe5,b[_0xb9f2bd(0x22f)]);const _0x230c4c=new p[(_0xb9f2bd(0x304))](oe+a[_0xb9f2bd(0x215)]['generateRandomId'](k),{'left':_0x45299f+_0x4bb5f1-_0x1019c0,'top':_0x45442b+_0x420e9a-ae/0x2,'height':ae,'width':ae,'fill':_0x3fc1fb||p[_0xb9f2bd(0x28c)](a[_0xb9f2bd(0x300)][_0xb9f2bd(0xe1)],0x0),'strokeWidth':0x0,'stroke':_0x3fc1fb||p[_0xb9f2bd(0x28c)](a[_0xb9f2bd(0x300)][_0xb9f2bd(0xe1)],0x0),'evented':!0x1});this[_0xb9f2bd(0x1f6)]=_0x230c4c,this[_0xb9f2bd(0x1c8)][_0xb9f2bd(0x16e)](_0x230c4c,b[_0xb9f2bd(0x22f)]);const _0x5bfa0b=new te(oe+a[_0xb9f2bd(0x215)][_0xb9f2bd(0x181)](k),{'left':_0x45299f+_0x4bb5f1-_0x1019c0,'top':_0x45442b+_0x420e9a-K,'text':_0x431a21,'color':_0x3fc1fb});this['_textBubble']=_0x5bfa0b,this[_0xb9f2bd(0x1c8)][_0xb9f2bd(0x16e)](_0x5bfa0b,b[_0xb9f2bd(0x22f)]),this[_0xb9f2bd(0x132)]=!0x1;}[_0x28af75(0x201)](){const _0xc184e3=_0x28af75,_0x4a3967=this[_0xc184e3(0x26e)][_0xc184e3(0x14e)][_0xc184e3(0x199)](()=>{const _0x432664=_0xc184e3;this[_0x432664(0x132)]=!0x0;}),_0x5e1380=this['_anchor'][_0xc184e3(0x1dc)][_0xc184e3(0x199)](()=>{const _0x197da0=_0xc184e3;this[_0x197da0(0x33f)]&&clearTimeout(this['_hideTimer']),this[_0x197da0(0x33f)]=setTimeout(()=>{const _0x3de307=_0x197da0;this[_0x3de307(0x132)]=!0x1;},0x7d0);});return()=>{const _0x2432c1=_0xc184e3;_0x4a3967[_0x2432c1(0x32e)](),_0x5e1380[_0x2432c1(0x32e)]();};}[_0x28af75(0x19c)](_0x48335d,_0x75c6f2,_0x6b9d92,_0x3e9b2e){const _0x38802b=_0x28af75,_0x57aa24=new a[(_0x38802b(0x30d))](_0x48335d)[_0x38802b(0x16d)](0.2)[_0x38802b(0x1e3)](),_0xb2d9f=new p['RegularPolygon'](ut+a[_0x38802b(0x215)][_0x38802b(0x181)](k),{'pointsGroup':_0x75c6f2,'fill':_0x57aa24||p[_0x38802b(0x28c)](a['COLORS'][_0x38802b(0xe1)],0.2),'left':_0x6b9d92,'top':_0x3e9b2e,'evented':!0x1,'debounceParentDirty':!0x1});this['_shapes'][_0x38802b(0x230)](_0xb2d9f),this[_0x38802b(0x1c8)][_0x38802b(0x16e)](_0xb2d9f,b['TEXT_RANGE_LAYER_INDEX']);}[_0x28af75(0x2c0)](_0x14ea9b,_0xe6a748,_0x498598,_0x26f7b4){const _0x3f1d2e=_0x28af75,_0x576dab=new a['ColorKit'](_0x14ea9b)[_0x3f1d2e(0x16d)](0.2)['toRgbString'](),_0x521639=new p[(_0x3f1d2e(0x2ef))](dt+a['Tools'][_0x3f1d2e(0x181)](k),{'pointsGroup':_0xe6a748,'fill':_0x576dab||p['getColor'](a[_0x3f1d2e(0x300)][_0x3f1d2e(0xe1)],0.2),'left':_0x498598,'top':_0x26f7b4,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x3f1d2e(0x2c7)][_0x3f1d2e(0x230)](_0x521639),this[_0x3f1d2e(0x1c8)][_0x3f1d2e(0x16e)](_0x521639,b[_0x3f1d2e(0x22f)]);}['_getAnchorBounding'](_0x4c377e){const _0x2280fb=_0x4c377e[0x0],_0x844625=_0x2280fb[0x0],_0x46d50d=_0x2280fb[0x2],{x:_0x44799d,y:_0xb9963c}=_0x844625,{x:_0x16cec9,y:_0x4d6860}=_0x46d50d;return{'left':_0x44799d,'top':_0xb9963c,'width':_0x16cec9-_0x44799d,'height':_0x4d6860-_0xb9963c};}['_getScale'](){const _0x302ecb=_0x28af75,{scaleX:_0xd5ef1d,scaleY:_0x539fb4}=this[_0x302ecb(0x1c8)][_0x302ecb(0x12d)]();return Math['max'](_0xd5ef1d,_0x539fb4);}}var vt=Object[_0x28af75(0x30c)],gt=(_0xe86df8,_0x5bbadd,_0x50166d,_0x2874b3)=>{const _0x55e0a6=_0x28af75;for(var _0x3d1f6b=_0x2874b3>0x1?void 0x0:_0x2874b3?vt(_0x5bbadd,_0x50166d):_0x5bbadd,_0x184a07=_0xe86df8[_0x55e0a6(0x1af)]-0x1,_0x38f315;_0x184a07>=0x0;_0x184a07--)(_0x38f315=_0xe86df8[_0x184a07])&&(_0x3d1f6b=_0x38f315(_0x3d1f6b)||_0x3d1f6b);return _0x3d1f6b;},V=(_0x5a921f,_0x19f07a)=>(_0x302364,_0x46c90d)=>_0x19f07a(_0x302364,_0x46c90d,_0x5a921f);let ve=class extends a[_0x28af75(0x1de)]{constructor(_0x412ce7,_0x1fc8f0,_0x12862d,_0x471058,_0x20f849){const _0x13d98a=_0x28af75;super(),_(this,_0x13d98a(0x17b),[]),_(this,_0x13d98a(0x1bb),[]),(this[_0x13d98a(0x1ab)]=_0x412ce7,this['_docSkeletonManagerService']=_0x1fc8f0,this['_collabCursorController']=_0x12862d,this[_0x13d98a(0x1d8)]=_0x471058,this[_0x13d98a(0x231)]=_0x20f849,this[_0x13d98a(0x166)]());}[_0x28af75(0x166)](){const _0x56a775=_0x28af75,_0x8a5042=this[_0x56a775(0x1ab)][_0x56a775(0xdf)],_0x4c9a50=this['_docSkeletonManagerService'];this[_0x56a775(0x253)](d[_0x56a775(0x26b)]([this[_0x56a775(0x153)]['getCollabCursors$'](_0x8a5042),this[_0x56a775(0x231)][_0x56a775(0x14b)]])['pipe']($[_0x56a775(0x233)](([_0x499920,_0x17e067])=>({'skeleton':_0x4c9a50[_0x56a775(0x2a4)](),'cursors':[..._0x499920[_0x56a775(0xcf)]()]['flatMap'](_0x38ce30=>({..._0x38ce30,'color':_0x17e067[_0x38ce30[_0x56a775(0x19a)]]}))})))[_0x56a775(0x328)](_0x4fe97b=>{const _0x9a90b2=_0x56a775;if(this[_0x9a90b2(0x2dc)](),_0x4fe97b){const {skeleton:_0x20cf1a,cursors:_0x4e665a}=_0x4fe97b;this[_0x9a90b2(0x1b7)](_0x20cf1a,_0x4e665a);}})),this['_initResize'](),this[_0x56a775(0x1e6)]();}['_updateCollabCursors'](_0x38ff8e,_0x28b068){const _0x300439=_0x28af75,{scene:_0x4c9258,mainComponent:_0x4143a6}=this[_0x300439(0x1ab)],_0x52e59c=_0x28b068[_0x300439(0x233)](_0x423b65=>new Ue(_0x423b65,_0x4c9258,_0x38ff8e,_0x4143a6));this[_0x300439(0x17b)]=_0x52e59c,this['_cursors']=_0x28b068;}['_refreshCollabCursors'](){const _0x1c2d33=_0x28af75;this['_removeCollabCursors']();const {scene:_0x32eae1,mainComponent:_0x18c6f2}=this[_0x1c2d33(0x1ab)],_0xb0ee01=this['_docSkeletonManagerService'][_0x1c2d33(0x2a4)](),_0xf8938e=this[_0x1c2d33(0x1bb)][_0x1c2d33(0x233)](_0x1f5c9c=>new Ue(_0x1f5c9c,_0x32eae1,_0xb0ee01,_0x18c6f2));this[_0x1c2d33(0x17b)]=_0xf8938e;}['_removeCollabCursors'](){const _0x4937dc=_0x28af75;this[_0x4937dc(0x17b)][_0x4937dc(0x2cc)](_0x1415dc=>_0x1415dc[_0x4937dc(0x11a)]()),this[_0x4937dc(0x17b)]=[];}[_0x28af75(0x1e6)](){const _0x448f08=_0x28af75,_0x3524b9=[b['SetDocZoomRatioOperation']['id']];this[_0x448f08(0x253)](this['_commandService'][_0x448f08(0x25d)](_0x175bc4=>{const _0x46f830=_0x448f08;_0x3524b9[_0x46f830(0x1c3)](_0x175bc4['id'])&&_0x175bc4[_0x46f830(0x15e)][_0x46f830(0xdf)]===this[_0x46f830(0x1ab)][_0x46f830(0xdf)]&&this[_0x46f830(0x13b)]();}));}[_0x28af75(0x28b)](){const _0x4604ce=_0x28af75;this[_0x4604ce(0x253)](a[_0x4604ce(0x1ba)](this['_context'][_0x4604ce(0x19d)]['onTransformChange$'])[_0x4604ce(0x214)]($[_0x4604ce(0xdc)](_0x161f16=>_0x161f16['type']===p[_0x4604ce(0x344)][_0x4604ce(0x1c2)]),$['throttleTime'](0x10))[_0x4604ce(0x328)](()=>{this['_refreshCollabCursors']();}));}};ve=gt([V(0x1,a[_0x28af75(0x345)](Y[_0x28af75(0x1b3)])),V(0x2,a[_0x28af75(0x345)](x)),V(0x3,a['ICommandService']),V(0x4,a['Inject'](a[_0x28af75(0x31e)]))],ve);const mt=0x1,Ct=1.5;class Ae extends p[_0x28af75(0x113)]{constructor(_0x546bbb,_0x524778){const _0x20e3df=_0x28af75;super(_0x546bbb,_0x524778),_(this,_0x20e3df(0x2f9)),_(this,_0x20e3df(0x21c),!0x1),_(this,_0x20e3df(0x1ef)),_(this,'_name',''),_(this,_0x20e3df(0x266),'top'),_(this,'_backgroundColor'),(_0x524778&&this[_0x20e3df(0x1ea)](_0x524778),this[_0x20e3df(0x14e)][_0x20e3df(0x199)](()=>this[_0x20e3df(0x1ea)]({'hovered':!0x0})),this[_0x20e3df(0x1dc)]['subscribeEvent'](()=>this[_0x20e3df(0x1ea)]({'hovered':!0x1})));}[_0x28af75(0x1ea)](_0x131c00){const _0x5c91bb=_0x28af75;var _0x14779b,_0x2aa890,_0x1bafd5,_0x4d9231,_0x2be4fc,_0x3a731c;this[_0x5c91bb(0x2f9)]=(_0x14779b=_0x131c00[_0x5c91bb(0x19a)])!=null?_0x14779b:this[_0x5c91bb(0x2f9)],this[_0x5c91bb(0x21c)]=(_0x2aa890=_0x131c00['hovered'])!=null?_0x2aa890:this[_0x5c91bb(0x21c)],this[_0x5c91bb(0x1ef)]=(_0x1bafd5=_0x131c00[_0x5c91bb(0x21d)])!=null?_0x1bafd5:this['_range'],this[_0x5c91bb(0x104)]=(_0x4d9231=_0x131c00['name'])!=null?_0x4d9231:this[_0x5c91bb(0x104)],this[_0x5c91bb(0x266)]=(_0x2be4fc=_0x131c00[_0x5c91bb(0x32d)])!=null?_0x2be4fc:this[_0x5c91bb(0x266)],this['_backgroundColor']=(_0x3a731c=_0x131c00[_0x5c91bb(0x100)])!=null?_0x3a731c:this['_backgroundColor'],this['transformByState']({'width':_0x131c00['width'],'height':_0x131c00[_0x5c91bb(0x1d1)]});}[_0x28af75(0x315)](_0x7a3e37){const _0x502deb=_0x28af75,{row:_0x3b85da,column:_0x5457a4}=_0x7a3e37;if(_0x3b85da>=this[_0x502deb(0x1ef)][_0x502deb(0x2ad)]&&_0x3b85da<=this[_0x502deb(0x1ef)]['endRow']&&_0x5457a4>=this['_range'][_0x502deb(0x2ab)]&&_0x5457a4<=this[_0x502deb(0x1ef)][_0x502deb(0x2fb)]){this[_0x502deb(0x1ea)]({'hovered':!0x0});return;}this[_0x502deb(0x1ea)]({'hovered':!0x1});}['triggerDblclick'](_0x2d1290){return!0x1;}[_0x28af75(0x258)](_0x919432){const _0x2e3526=_0x28af75;p[_0x2e3526(0x304)]['drawWith'](_0x919432,{'width':this[_0x2e3526(0x1b9)],'height':this['height'],'strokeWidth':Ct,'stroke':this['_color'],'evented':!0x1,'fill':this[_0x2e3526(0x1cc)]}),this[_0x2e3526(0x21c)]&&(_0x919432['save'](),_0x919432['transform'](0x1,0x0,0x0,0x1,this['width'],this[_0x2e3526(0x266)]===_0x2e3526(0xd5)?0x0:-0x14),te[_0x2e3526(0x1e9)](_0x919432,{'text':this[_0x2e3526(0x104)],'color':this['_color']}),_0x919432[_0x2e3526(0x317)]());}}var pt=Object['getOwnPropertyDescriptor'],bt=(_0x24b113,_0x17c563,_0x19e988,_0x138f81)=>{const _0x306c8b=_0x28af75;for(var _0x33eb53=_0x138f81>0x1?void 0x0:_0x138f81?pt(_0x17c563,_0x19e988):_0x17c563,_0x153743=_0x24b113[_0x306c8b(0x1af)]-0x1,_0x1f3cf5;_0x153743>=0x0;_0x153743--)(_0x1f3cf5=_0x24b113[_0x153743])&&(_0x33eb53=_0x1f3cf5(_0x33eb53)||_0x33eb53);return _0x33eb53;},ce=(_0x21be82,_0x190d12)=>(_0x48d852,_0x17de96)=>_0x190d12(_0x48d852,_0x17de96,_0x21be82);const Et=0x1389;let ge=class extends a['RxDisposable']{constructor(_0x18c27e,_0x5f29a3,_0x294d73,_0x50c2a7){const _0xb73e97=_0x28af75;super(),_(this,'_cursors',new Set()),_(this,_0xb73e97(0x13e),null),(this['_context']=_0x18c27e,this[_0xb73e97(0x189)]=_0x5f29a3,this[_0xb73e97(0x153)]=_0x294d73,this[_0xb73e97(0x231)]=_0x50c2a7,this['_init']());}['_init'](){const _0x24f925=_0x28af75;this['_sheetSkeletonManagerService'][_0x24f925(0x1d0)][_0x24f925(0x214)]($[_0x24f925(0xf5)](this['dispose$']),$[_0x24f925(0x301)](_0x36a778=>{const _0xb283ac=_0x24f925;if(_0x36a778){const _0x1635ce=_0x36a778[_0xb283ac(0x105)];return d['combineLatest'](this[_0xb283ac(0x153)][_0xb283ac(0x264)](this[_0xb283ac(0x1ab)][_0xb283ac(0xdf)]),this[_0xb283ac(0x231)]['currentTheme$'])[_0xb283ac(0x214)]($[_0xb283ac(0x233)](([_0x2c8158,_0x170a3a])=>{const _0x3d902a=_0xb283ac,_0xfaa55=new Map();return _0x2c8158[_0x3d902a(0x2cc)]((_0x2dc089,_0x4e48e7)=>{const _0x5ab219=_0x3d902a;if(_0x2dc089['sheetID']===_0x1635ce){const _0x5b5055={..._0x2dc089};_0x5b5055['color']=_0x170a3a[_0x2dc089[_0x5ab219(0x19a)]],_0xfaa55['set'](_0x4e48e7,_0x5b5055);}}),{'skeleton':_0x36a778,'cursors':_0xfaa55};}));}return d['of']({'skeleton':null,'cursors':new Map()});}))[_0x24f925(0x328)](({skeleton:_0x1952a1,cursors:_0x33a8c7})=>{const _0x23caed=_0x24f925;this[_0x23caed(0x2dc)](),_0x1952a1&&this[_0x23caed(0x1b7)](_0x1952a1,_0x33a8c7);}),this[_0x24f925(0x189)]['currentSkeleton$'][_0x24f925(0x328)](_0x3eaa67=>{const _0x62f45e=_0x24f925;if(_0x3eaa67==null)return;const {skeleton:_0x239704}=_0x3eaa67,{scene:_0x43dd23}=this[_0x62f45e(0x1ab)];_0x43dd23['onPointerMove$'][_0x62f45e(0x199)](a[_0x62f45e(0x28f)](_0x15088b=>{const _0x191cc6=_0x62f45e;var _0x30989d,_0x392225;const {offsetX:_0x4ca1b4,offsetY:_0xe71ee7}=_0x15088b,{x:_0x439b8d,y:_0x1a632a}=_0x43dd23[_0x191cc6(0x195)](p[_0x191cc6(0x2ac)][_0x191cc6(0x2d9)]([_0x4ca1b4,_0xe71ee7])),{scaleX:_0x2781af,scaleY:_0x4a5f27}=_0x43dd23[_0x191cc6(0x12d)](),_0x4e9f3e=_0x43dd23[_0x191cc6(0x182)](p[_0x191cc6(0x20b)][_0x191cc6(0x335)]),_0x11e9b5=_0x43dd23[_0x191cc6(0x2cf)](p['Vector2']['FromArray']([_0x439b8d,_0x1a632a]),_0x4e9f3e),_0x5822bc=_0x239704[_0x191cc6(0x31f)](_0x4ca1b4,_0xe71ee7,_0x2781af,_0x4a5f27,_0x11e9b5);((_0x30989d=this[_0x191cc6(0x13e)])==null?void 0x0:_0x30989d['column'])===_0x5822bc[_0x191cc6(0x135)]&&((_0x392225=this[_0x191cc6(0x13e)])==null?void 0x0:_0x392225['row'])===_0x5822bc[_0x191cc6(0x1b1)]||this['_cursors'][_0x191cc6(0x2cc)](_0x2185e6=>{_0x2185e6['onMouseMove'](_0x5822bc);});},0x64));});}[_0x28af75(0x1b7)](_0x441ab3,_0x43f1a1){const _0x2218e6=_0x28af75;var _0x26ac6c;const _0x4c0ceb=(_0x26ac6c=this[_0x2218e6(0x189)][_0x2218e6(0x27a)]())==null?void 0x0:_0x26ac6c[_0x2218e6(0xfc)];if(!_0x4c0ceb)return;const _0x576c6c=this[_0x2218e6(0x299)]();if(!_0x576c6c)return;this['_cursors'][_0x2218e6(0x2cc)](_0x179af3=>{const _0x48cb10=_0x2218e6;_0x179af3[_0x48cb10(0x1ec)]();});const {scene:_0x13f631}=_0x576c6c,_0x1cb80f=Tt(Array['from'](_0x43f1a1[_0x2218e6(0xcf)]()))[_0x2218e6(0x233)](_0x1a3ed9=>{const _0x27b1e4=_0x2218e6,{color:_0x34132e,range:_0x2e67fe,name:_0x46262c,selection:_0x2945df,sheetID:_0x45e096}=_0x1a3ed9,{startColumn:_0x7b221,startRow:_0x1297ab,endColumn:_0x34582c,endRow:_0x7eec5b}=_0x2e67fe,_0x4eea10=G[_0x27b1e4(0x193)](_0x1297ab,_0x7b221,_0x13f631,_0x4c0ceb),_0x4461ae=G[_0x27b1e4(0x193)](_0x7eec5b,_0x34582c,_0x13f631,_0x4c0ceb),{columnHeaderHeightAndMarginTop:_0x5c1752}=_0x4c0ceb,{startX:_0x499cb0,startY:_0x452aae}=_0x4eea10,{endX:_0x250bf7,endY:_0xc242c1}=_0x4461ae,_0x5ad8a4=_0x250bf7-_0x499cb0,_0x4d413c=_0xc242c1-_0x452aae,_0x5a6526={'labelPosition':_0x452aae-_0x5c1752>=K?_0x27b1e4(0xe2):'bottom','sheetID':_0x45e096,'range':_0x2e67fe,'color':_0x34132e,'name':_0x46262c,'selection':_0x2945df,'left':_0x499cb0,'top':_0x452aae,'width':_0x5ad8a4,'height':_0x4d413c,'evented':!0x1,'zIndex':Et};return new Ae(_0x46262c,_0x5a6526);});_0x13f631['addObjects'](_0x1cb80f,mt),this[_0x2218e6(0x1bb)]=new Set(_0x1cb80f);}[_0x28af75(0x2dc)](){const _0x41f1e8=_0x28af75;var _0x459f9c;(_0x459f9c=this[_0x41f1e8(0x1bb)])==null||_0x459f9c[_0x41f1e8(0x2cc)](_0x187c92=>_0x187c92[_0x41f1e8(0x11a)]());}[_0x28af75(0x299)](){const _0x8ed002=_0x28af75;return G['getSheetObject'](this[_0x8ed002(0x1ab)][_0x8ed002(0x136)],this[_0x8ed002(0x1ab)]);}};ge=bt([ce(0x1,a[_0x28af75(0x345)](G[_0x28af75(0x2d0)])),ce(0x2,a[_0x28af75(0x345)](x)),ce(0x3,a[_0x28af75(0x345)](a[_0x28af75(0x31e)]))],ge);function Tt(_0x200aef){const _0x5a1a86=_0x28af75,_0x20baba=new Map();return _0x200aef[_0x5a1a86(0x2cc)](_0x4ab53f=>{const _0x3d9ab7=_0x5a1a86;if(_0x20baba[_0x3d9ab7(0x1d6)](_0x4ab53f[_0x3d9ab7(0x327)])){const _0x7ffdb4=_0x20baba['get'](_0x4ab53f[_0x3d9ab7(0x327)]);_0x7ffdb4[_0x3d9ab7(0x2f2)]+=',\x20'+_0x4ab53f[_0x3d9ab7(0x2f2)];}else _0x20baba['set'](_0x4ab53f['selection'],_0x4ab53f);}),Array[_0x5a1a86(0x172)](_0x20baba[_0x5a1a86(0xcf)]());}var E=function(){const _0x59b66b=_0x28af75;return E=Object[_0x59b66b(0x174)]||function(_0x3f061a){const _0x2509d5=_0x59b66b;for(var _0x4d6b0c,_0x27f638=0x1,_0x1123d1=arguments['length'];_0x27f638<_0x1123d1;_0x27f638++){_0x4d6b0c=arguments[_0x27f638];for(var _0x5021b2 in _0x4d6b0c)Object[_0x2509d5(0x141)][_0x2509d5(0x2c2)][_0x2509d5(0x17d)](_0x4d6b0c,_0x5021b2)&&(_0x3f061a[_0x5021b2]=_0x4d6b0c[_0x5021b2]);}return _0x3f061a;},E[_0x59b66b(0x312)](this,arguments);},Rt=function(_0x3dd5e5,_0x5b308d){const _0x54fead=_0x28af75;var _0x37a2c2={};for(var _0x2e3454 in _0x3dd5e5)Object[_0x54fead(0x141)][_0x54fead(0x2c2)][_0x54fead(0x17d)](_0x3dd5e5,_0x2e3454)&&_0x5b308d[_0x54fead(0x1ce)](_0x2e3454)<0x0&&(_0x37a2c2[_0x2e3454]=_0x3dd5e5[_0x2e3454]);if(_0x3dd5e5!=null&&typeof Object[_0x54fead(0x305)]==_0x54fead(0x118)){for(var _0x21b2a2=0x0,_0x2e3454=Object[_0x54fead(0x305)](_0x3dd5e5);_0x21b2a2<_0x2e3454['length'];_0x21b2a2++)_0x5b308d[_0x54fead(0x1ce)](_0x2e3454[_0x21b2a2])<0x0&&Object[_0x54fead(0x141)][_0x54fead(0x122)][_0x54fead(0x17d)](_0x3dd5e5,_0x2e3454[_0x21b2a2])&&(_0x37a2c2[_0x2e3454[_0x21b2a2]]=_0x3dd5e5[_0x2e3454[_0x21b2a2]]);}return _0x37a2c2;},be=M['forwardRef'](function(_0x4eba26,_0x1e6fd9){const _0x178c76=_0x28af75;var _0x3be889=_0x4eba26[_0x178c76(0x167)],_0x5896d1=_0x4eba26['id'],_0x4cf6ba=_0x4eba26[_0x178c76(0x173)],_0xe829a5=_0x4eba26[_0x178c76(0xd0)],_0x3c01ef=Rt(_0x4eba26,['icon','id','className',_0x178c76(0xd0)]),_0x14c31a='univerjs-icon\x20univerjs-icon-'[_0x178c76(0x164)](_0x5896d1,'\x20')[_0x178c76(0x164)](_0x4cf6ba||'')[_0x178c76(0x26a)](),_0x2f24ea=M[_0x178c76(0xd4)]('_'[_0x178c76(0x164)](Ut()));return ye(_0x3be889,''[_0x178c76(0x164)](_0x5896d1),{'defIds':_0x3be889[_0x178c76(0x23b)],'idSuffix':_0x2f24ea[_0x178c76(0x310)]},E({'ref':_0x1e6fd9,'className':_0x14c31a},_0x3c01ef),_0xe829a5);});function ye(_0x5115c0,_0x2b96ef,_0x238ca3,_0xb65ba2,_0x3bc708){const _0x57382f=_0x28af75;return M['createElement'](_0x5115c0['tag'],E(E({'key':_0x2b96ef},Ot(_0x5115c0,_0x238ca3,_0x3bc708)),_0xb65ba2),(Dt(_0x5115c0,_0x238ca3)[_0x57382f(0x186)]||[])[_0x57382f(0x233)](function(_0x22c24d,_0x36c7a7){const _0x36807a=_0x57382f;return ye(_0x22c24d,''[_0x36807a(0x164)](_0x2b96ef,'-')['concat'](_0x5115c0[_0x36807a(0x33a)],'-')[_0x36807a(0x164)](_0x36c7a7),_0x238ca3,void 0x0,_0x3bc708);}));}function Ot(_0x202cad,_0x5d7313,_0x453ba3){const _0x407db0=_0x28af75;var _0xdc4338=E({},_0x202cad['attrs']);_0x453ba3!=null&&_0x453ba3['colorChannel1']&&_0xdc4338[_0x407db0(0x1db)]===_0x407db0(0x1ff)&&(_0xdc4338[_0x407db0(0x1db)]=_0x453ba3[_0x407db0(0x1ff)]),_0x202cad[_0x407db0(0x33a)]===_0x407db0(0x290)&&_0xdc4338['id']&&(_0xdc4338['id']=_0xdc4338['id']+_0x5d7313[_0x407db0(0x130)]),Object['entries'](_0xdc4338)[_0x407db0(0x2cc)](function(_0x1abc59){const _0x59d36b=_0x407db0;var _0x335bd8=_0x1abc59[0x0],_0x73a691=_0x1abc59[0x1];_0x335bd8===_0x59d36b(0x290)&&typeof _0x73a691=='string'&&(_0xdc4338[_0x335bd8]=_0x73a691['replace'](/url\(#(.*)\)/,_0x59d36b(0x250)[_0x59d36b(0x164)](_0x5d7313[_0x59d36b(0x130)],')')));});var _0x112cd1=_0x5d7313[_0x407db0(0x23b)];return!_0x112cd1||_0x112cd1['length']===0x0||(_0x202cad[_0x407db0(0x33a)]===_0x407db0(0x1c6)&&_0xdc4338[_0x407db0(0x2cd)]&&(_0xdc4338[_0x407db0(0x2cd)]=_0xdc4338['xlink:href']+_0x5d7313[_0x407db0(0x130)]),Object['entries'](_0xdc4338)[_0x407db0(0x2cc)](function(_0x3b14d4){const _0x4f718f=_0x407db0;var _0x4f849a=_0x3b14d4[0x0],_0x443391=_0x3b14d4[0x1];typeof _0x443391=='string'&&(_0xdc4338[_0x4f849a]=_0x443391[_0x4f718f(0x10b)](/url\(#(.*)\)/,_0x4f718f(0x250)[_0x4f718f(0x164)](_0x5d7313[_0x4f718f(0x130)],')')));})),_0xdc4338;}function Dt(_0x557c7d,_0x4a33a0){const _0x4a10b2=_0x28af75;var _0x469f73,_0x582f99=_0x4a33a0[_0x4a10b2(0x23b)];return!_0x582f99||_0x582f99[_0x4a10b2(0x1af)]===0x0?_0x557c7d:_0x557c7d[_0x4a10b2(0x33a)]==='defs'&&(!((_0x469f73=_0x557c7d[_0x4a10b2(0x186)])===null||_0x469f73===void 0x0)&&_0x469f73[_0x4a10b2(0x1af)])?E(E({},_0x557c7d),{'children':_0x557c7d[_0x4a10b2(0x186)]['map'](function(_0x293f30){const _0x53f946=_0x4a10b2;return typeof _0x293f30[_0x53f946(0xe3)]['id']=='string'&&_0x582f99&&_0x582f99[_0x53f946(0x1ce)](_0x293f30['attrs']['id'])>-0x1?E(E({},_0x293f30),{'attrs':E(E({},_0x293f30[_0x53f946(0xe3)]),{'id':_0x293f30[_0x53f946(0xe3)]['id']+_0x4a33a0[_0x53f946(0x130)]})}):_0x293f30;})}):_0x557c7d;}function Ut(){const _0x449886=_0x28af75;return Math['random']()[_0x449886(0x10c)](0x24)['substring'](0x2,0x8);}be['displayName']='UniverIcon';var Nt={'tag':_0x28af75(0x343),'attrs':{'fill':_0x28af75(0x26f),'viewBox':_0x28af75(0xe4),'width':'1em','height':_0x28af75(0xf1)},'children':[{'tag':'g','attrs':{'clipPath':'url(#off-line-single_clip0_910_343)'},'children':[{'tag':'path','attrs':{'stroke':_0x28af75(0xed),'d':_0x28af75(0x2e8),'strokeLinecap':_0x28af75(0x1c0),'strokeLinejoin':_0x28af75(0x1c0),'strokeWidth':1.2}}]},{'tag':'defs','attrs':{},'children':[{'tag':_0x28af75(0x1ac),'attrs':{'id':_0x28af75(0x257)},'children':[{'tag':_0x28af75(0x34b),'attrs':{'fill':_0x28af75(0x1fc),'d':_0x28af75(0xdd)}}]}]}],'defIds':['off-line-single_clip0_910_343']},$e=M[_0x28af75(0x187)](function(_0x3610fa,_0x21486c){const _0x4e80b0=_0x28af75;return M[_0x4e80b0(0x1cb)](be,Object['assign']({},_0x3610fa,{'id':_0x4e80b0(0xfb),'ref':_0x21486c,'icon':Nt}));});$e['displayName']=_0x28af75(0x2eb);var Mt={'tag':_0x28af75(0x343),'attrs':{'fill':'none','viewBox':_0x28af75(0x2a6),'width':_0x28af75(0xf1),'height':'1em'},'children':[{'tag':'g','attrs':{'clipPath':_0x28af75(0x28d)},'children':[{'tag':'path','attrs':{'stroke':_0x28af75(0xed),'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':_0x28af75(0x1c0),'strokeLinejoin':_0x28af75(0x1c0),'strokeWidth':1.2}}]},{'tag':_0x28af75(0x148),'attrs':{},'children':[{'tag':_0x28af75(0x1ac),'attrs':{'id':'on-line-single_clip0_910_349'},'children':[{'tag':'path','attrs':{'fill':_0x28af75(0x1fc),'d':_0x28af75(0xdd),'transform':_0x28af75(0x1a1)}}]}]}],'defIds':[_0x28af75(0xf4)]},xe=M[_0x28af75(0x187)](function(_0x31c518,_0x36f326){const _0x5113f4=_0x28af75;return M['createElement'](be,Object['assign']({},_0x31c518,{'id':_0x5113f4(0x229),'ref':_0x36f326,'icon':Mt}));});xe['displayName']=_0x28af75(0x108);const Pt=_0x28af75(0x241),Lt='univer-online-status-title',wt=_0x28af75(0x1e1),At=_0x28af75(0x234),yt=_0x28af75(0x2d2),H={'onlineStatusIcon':Pt,'onlineStatusTitle':Lt,'onlineStatus':wt,'online':At,'offline':yt};function $t(_0x42375d){const _0x4baa28=_0x28af75;switch(_0x42375d){case u[_0x4baa28(0x2f5)][_0x4baa28(0x314)]:return _0x4baa28(0x117);case u[_0x4baa28(0x2f5)][_0x4baa28(0x18e)]:return _0x4baa28(0x1e0);case u[_0x4baa28(0x2f5)][_0x4baa28(0x280)]:return _0x4baa28(0x341);case u[_0x4baa28(0x2f5)][_0x4baa28(0xd3)]:return _0x4baa28(0x1b6);case u[_0x4baa28(0x2f5)][_0x4baa28(0x198)]:case u[_0x4baa28(0x2f5)][_0x4baa28(0x1c5)]:return'collabStatus.syncing';case u[_0x4baa28(0x2f5)][_0x4baa28(0x149)]:case u[_0x4baa28(0x2f5)][_0x4baa28(0x11f)]:return'collabStatus.synced';}}function je(_0x21bbc8){const _0x501552=_0x28af75,{status$:_0x10b358}=_0x21bbc8,_0x50afc1=R['useObservable'](_0x10b358,u[_0x501552(0x2f5)][_0x501552(0xd3)]),_0x4490fb=R[_0x501552(0x29b)](a['LocaleService']),_0x30c90e=R[_0x501552(0x29b)](u[_0x501552(0x1a3)]),_0x382847=_0x50afc1!==u[_0x501552(0x2f5)]['OFFLINE'],_0x4fbb49=_0x4490fb['t']($t(_0x50afc1)),_0x26a118=T[_0x501552(0x1a8)](H['onlineStatus'],{[H['online']]:_0x382847,[H[_0x501552(0x2a8)]]:!_0x382847}),_0x330402=_0x382847?L['jsx'](xe,{}):L[_0x501552(0x158)]($e,{}),_0x7acb16=M[_0x501552(0x2bc)](()=>{const _0x55be4f=_0x501552;_0x382847||_0x30c90e[_0x55be4f(0x2c5)]();},[_0x382847,_0x30c90e]);function _0x2dbd33(){const _0xf6de7b=_0x501552;return L[_0xf6de7b(0x11c)](_0xf6de7b(0x2fa),{'className':T[_0xf6de7b(0x1a8)](_0x26a118,_0xf6de7b(0x289)),'onClick':_0x7acb16,'children':[L[_0xf6de7b(0x158)](_0xf6de7b(0x2fa),{'className':H[_0xf6de7b(0xf8)],'children':_0x330402}),L[_0xf6de7b(0x158)](_0xf6de7b(0x2fa),{'className':H['onlineStatusTitle'],'children':_0x4fbb49})]});}return _0x382847?_0x2dbd33():L[_0x501552(0x158)](T[_0x501552(0x21e)],{'title':_0x4490fb['t']('collab-client.tooltip.reconnect'),'children':_0x2dbd33()});}var xt=Object[_0x28af75(0x30c)],jt=(_0x478f73,_0x170b38,_0x101b95,_0xc46f5a)=>{const _0x1de02d=_0x28af75;for(var _0x41fcd2=_0xc46f5a>0x1?void 0x0:_0xc46f5a?xt(_0x170b38,_0x101b95):_0x170b38,_0x7dbc31=_0x478f73[_0x1de02d(0x1af)]-0x1,_0x45076a;_0x7dbc31>=0x0;_0x7dbc31--)(_0x45076a=_0x478f73[_0x7dbc31])&&(_0x41fcd2=_0x45076a(_0x41fcd2)||_0x41fcd2);return _0x41fcd2;},X=(_0x18fbbd,_0x4e87a7)=>(_0x53cf07,_0x48fcdf)=>_0x4e87a7(_0x53cf07,_0x48fcdf,_0x18fbbd);exports['DesktopCollaborationStatusDisplayController']=class extends a[_0x28af75(0x242)]{constructor(_0x45fce6,_0x361b6c,_0x50e87c,_0x27b746){const _0x31d204=_0x28af75;super(),_(this,'_status$',new d['BehaviorSubject'](u['CollaborationStatus'][_0x31d204(0xd3)])),(this[_0x31d204(0x337)]=_0x45fce6,this['_injector']=_0x361b6c,this[_0x31d204(0x1ed)]=_0x50e87c,this[_0x31d204(0x224)]=_0x27b746,this['_initStatusComponent'](),this[_0x31d204(0x311)]());}[_0x28af75(0x311)](){const _0x323556=_0x28af75;this[_0x323556(0x253)](this[_0x323556(0x337)][_0x323556(0x21f)]['pipe'](d['switchMap'](()=>{const _0x12f40e=_0x323556,_0x5b276b=this[_0x12f40e(0x337)][_0x12f40e(0x178)]();return _0x5b276b?this[_0x12f40e(0x1ed)]['getCollabEntity$'](_0x5b276b['getUnitId']()):d['of'](null);}),d[_0x323556(0x301)](_0x30ecd4=>_0x30ecd4?_0x30ecd4[_0x323556(0x1f4)]:d['of'](u['CollaborationStatus'][_0x323556(0xd3)])))['subscribe'](_0x29a6d0=>{const _0x4ce83a=_0x323556;this[_0x4ce83a(0x2af)][_0x4ce83a(0x14d)](_0x29a6d0);}));}[_0x28af75(0x142)](){const _0x4be6ba=_0x28af75;this['disposeWithMe'](this[_0x4be6ba(0x224)]['registerComponent'](R[_0x4be6ba(0x334)]['HEADER_MENU'],()=>R[_0x4be6ba(0x20f)](Bt({'status$':this[_0x4be6ba(0x2af)][_0x4be6ba(0x324)]()}),this['_injector'])));}},exports['DesktopCollaborationStatusDisplayController']=jt([X(0x0,a[_0x28af75(0x2ed)]),X(0x1,a[_0x28af75(0x345)](a[_0x28af75(0x184)])),X(0x2,a[_0x28af75(0x345)](u[_0x28af75(0x27d)])),X(0x3,R[_0x28af75(0xe8)])],exports[_0x28af75(0x101)]);function Bt(_0x3b5d8f){const {status$:_0x56536f}=_0x3b5d8f;return function(){const _0x3a466f=_0x4bb0;return L[_0x3a466f(0x158)](je,{'status$':_0x56536f});};}var kt=Object[_0x28af75(0x30c)],Ht=(_0x4aadea,_0x384c63,_0x371c3e,_0x2499cd)=>{const _0x1812cb=_0x28af75;for(var _0x3cf59b=_0x2499cd>0x1?void 0x0:_0x2499cd?kt(_0x384c63,_0x371c3e):_0x384c63,_0x2d1524=_0x4aadea[_0x1812cb(0x1af)]-0x1,_0x28694f;_0x2d1524>=0x0;_0x2d1524--)(_0x28694f=_0x4aadea[_0x2d1524])&&(_0x3cf59b=_0x28694f(_0x3cf59b)||_0x3cf59b);return _0x3cf59b;},y=(_0x5aa888,_0x14d6df)=>(_0x485364,_0x528839)=>_0x14d6df(_0x485364,_0x528839,_0x5aa888);let z=class extends a[_0x28af75(0x242)]{constructor(_0x33fae7,_0x401eb2,_0x4613d8,_0x553a99,_0x3ac089,_0x2a51c5){const _0x3059a5=_0x28af75;super(),this[_0x3059a5(0xd8)]=_0x33fae7,this['_localCacheService']=_0x401eb2,this[_0x3059a5(0x11e)]=_0x4613d8,this[_0x3059a5(0x23e)]=_0x553a99,this[_0x3059a5(0x2a1)]=_0x3ac089,this[_0x3059a5(0x146)]=_0x2a51c5,this[_0x3059a5(0x29f)](),this[_0x3059a5(0x175)]();}[_0x28af75(0x29f)](){const _0x3aa5ee=_0x28af75;this['disposeWithMe'](this[_0x3aa5ee(0xd8)][_0x3aa5ee(0x225)](()=>{const _0x282e98=_0x3aa5ee;if(this['_localCacheService'][_0x282e98(0x110)][_0x282e98(0x2b7)])return this[_0x282e98(0x146)]['t'](_0x282e98(0x127));}));}['_initEvent'](){const _0x491c06=_0x28af75;this[_0x491c06(0x253)](this[_0x491c06(0x11e)][_0x491c06(0x269)][_0x491c06(0x328)](_0x2e8acc=>{const _0x26848e=_0x491c06;_0x2e8acc['id']===u[_0x26848e(0x26c)][_0x26848e(0x251)]&&this[_0x26848e(0x23e)][_0x26848e(0x2ea)]({'type':T[_0x26848e(0x306)][_0x26848e(0x2a5)],'content':this[_0x26848e(0x146)]['t'](_0x26848e(0x2d3))}),_0x2e8acc['id']===u[_0x26848e(0x26c)][_0x26848e(0x297)]&&this[_0x26848e(0x23e)][_0x26848e(0x2ea)]({'type':T[_0x26848e(0x306)][_0x26848e(0x2a5)],'content':this[_0x26848e(0x146)]['t'](_0x26848e(0x2a3))}),_0x2e8acc['id']===u[_0x26848e(0x26c)][_0x26848e(0x1f9)]&&this[_0x26848e(0x2a1)]['show']({'title':this[_0x26848e(0x146)]['t'](_0x26848e(0x131)),'content':this[_0x26848e(0x146)]['t'](_0x26848e(0x13a)),'type':_0x26848e(0x24a),'duration':0x0}),_0x2e8acc['id']===u[_0x26848e(0x26c)][_0x26848e(0x18e)]&&this[_0x26848e(0x23e)][_0x26848e(0x2ea)]({'type':T[_0x26848e(0x306)][_0x26848e(0x245)],'content':this[_0x26848e(0x146)]['t'](_0x26848e(0x2a3))+'('+_0x2e8acc[_0x26848e(0x1b0)]+')'}),_0x2e8acc['id']===u[_0x26848e(0x26c)][_0x26848e(0x333)]&&this['_messageService'][_0x26848e(0x2ea)]({'type':T['MessageType'][_0x26848e(0x2a5)],'content':this[_0x26848e(0x146)]['t'](_0x2e8acc[_0x26848e(0x1b0)]||'')}),_0x2e8acc['id']===u[_0x26848e(0x26c)][_0x26848e(0x152)]&&this['_messageService']['show']({'type':T[_0x26848e(0x306)][_0x26848e(0x2a5)],'content':this[_0x26848e(0x146)]['t'](_0x26848e(0x155))}),_0x2e8acc['id']===u['CollaborationUIEventId'][_0x26848e(0x2aa)]&&this[_0x26848e(0x23e)][_0x26848e(0x2ea)]({'type':T['MessageType'][_0x26848e(0x245)],'content':this[_0x26848e(0x146)]['t'](_0x26848e(0x192))}),_0x2e8acc['id']===u['CollaborationUIEventId']['SUBMIT_CHANGESET_TIMEOUT']&&this['_messageService']['show']({'type':T[_0x26848e(0x306)][_0x26848e(0x245)],'content':this[_0x26848e(0x146)]['t'](_0x26848e(0xdb))});}));}};z=Ht([y(0x0,R['IBeforeCloseService']),y(0x1,u['ILocalCacheService']),y(0x2,a[_0x28af75(0x345)](u['CollaborationUIEventService'])),y(0x3,R[_0x28af75(0x218)]),y(0x4,R[_0x28af75(0x278)]),y(0x5,a[_0x28af75(0x345)](a[_0x28af75(0x30e)]))],z);const Wt=_0x28af75(0x157),Ne={},Ee=a[_0x28af75(0xd9)](_0x28af75(0x2fd));var Ft=Object[_0x28af75(0x30c)],Yt=(_0x827459,_0x4b2926,_0x20ccb3,_0x3c8cb7)=>{const _0x54894a=_0x28af75;for(var _0xd2cd7d=_0x3c8cb7>0x1?void 0x0:_0x3c8cb7?Ft(_0x4b2926,_0x20ccb3):_0x4b2926,_0x5e0ec5=_0x827459[_0x54894a(0x1af)]-0x1,_0xd7b722;_0x5e0ec5>=0x0;_0x5e0ec5--)(_0xd7b722=_0x827459[_0x5e0ec5])&&(_0xd2cd7d=_0xd7b722(_0xd2cd7d)||_0xd2cd7d);return _0xd2cd7d;},W=(_0x30c493,_0xa815e7)=>(_0x4c9c8f,_0x1fbac1)=>_0xa815e7(_0x4c9c8f,_0x1fbac1,_0x30c493);exports[_0x28af75(0x246)]=class extends a['RxDisposable']{constructor(_0xcd42b1,_0x4915b3,_0x42e8fd,_0x48382a,_0x34608d){const _0x4600c3=_0x28af75;super(),this[_0x4600c3(0x14c)]=_0xcd42b1,this[_0x4600c3(0x176)]=_0x4915b3,this[_0x4600c3(0x1d8)]=_0x42e8fd,this[_0x4600c3(0x1bc)]=_0x48382a,_0x34608d?_0x34608d==null||_0x34608d[_0x4600c3(0x21b)]()[_0x4600c3(0x2d4)](()=>this['_init']()):(this[_0x4600c3(0x176)][_0x4600c3(0x1b5)]('[CollaborationDataLoaderController]','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.'),this[_0x4600c3(0x166)]());}async['_init'](){const _0x3e742a=_0x28af75,_0x3150bc=this['_urlService']['getParam'](_0x3e742a(0x136)),_0x518b4a=this[_0x3e742a(0x14c)]['getParam'](_0x3e742a(0x275)),_0x3efb53=this['_urlService']['getParam'](_0x3e742a(0x1f8));if(!_0x3150bc||!_0x518b4a){this[_0x3e742a(0x176)]['debug'](_0x3e742a(0x1df),_0x3e742a(0x24e));return;}const _0x4379be=await this[_0x3e742a(0x1bc)][_0x3e742a(0x2ba)](_0x3150bc,Number(_0x518b4a),_0x3efb53);_0x4379be&&_0x4379be instanceof a[_0x3e742a(0x13d)]&&this[_0x3e742a(0x293)](_0x4379be);}async[_0x28af75(0x293)](_0x9ad85e){const _0x3355c1=_0x28af75;await this[_0x3355c1(0x116)](_0x9ad85e),_0x9ad85e[_0x3355c1(0x32a)][_0x3355c1(0x214)](d[_0x3355c1(0xf5)](this['dispose$']))[_0x3355c1(0x328)](_0x1ae293=>{const _0x555bda=_0x3355c1;_0x1ae293&&this[_0x555bda(0x2b8)](_0x1ae293);}),this[_0x3355c1(0x14c)]['urlChange$'][_0x3355c1(0x214)](d[_0x3355c1(0xf5)](this[_0x3355c1(0x2b0)]))[_0x3355c1(0x328)](()=>this[_0x3355c1(0x116)](_0x9ad85e));}[_0x28af75(0x2b8)](_0x41b4d6,_0x4e4fd1=!0x1){const _0x3ce41f=_0x28af75,_0x40f922=this[_0x3ce41f(0x14c)][_0x3ce41f(0x179)](_0x3ce41f(0x1f8));_0x41b4d6[_0x3ce41f(0x320)]()!==_0x40f922&&this['_urlService'][_0x3ce41f(0x24d)](_0x3ce41f(0x1f8),_0x41b4d6['getSheetId'](),_0x4e4fd1);}async[_0x28af75(0x116)](_0x513b98){const _0x527718=_0x28af75;var _0x466d7f;const _0x2bf18f=this[_0x527718(0x14c)][_0x527718(0x179)](_0x527718(0x1f8));if(!_0x2bf18f||!_0x513b98['getSheetBySheetId'](_0x2bf18f)){const _0x303d0c=_0x513b98[_0x527718(0x14f)]()[0x0],_0x37d33a=_0x513b98['getSheetBySheetId'](_0x303d0c);if(!_0x37d33a)return;this['_updateURLWithCurrentState'](_0x37d33a,!0x0),await this['_commandService'][_0x527718(0x313)](g[_0x527718(0x24f)]['id'],{'unitId':_0x513b98[_0x527718(0x2f1)](),'subUnitId':_0x303d0c});return;}((_0x466d7f=_0x513b98['getActiveSheet']())==null?void 0x0:_0x466d7f[_0x527718(0x320)]())!==_0x2bf18f&&await this[_0x527718(0x1d8)][_0x527718(0x313)](g[_0x527718(0x24f)]['id'],{'unitId':_0x513b98[_0x527718(0x2f1)](),'subUnitId':_0x2bf18f});}},exports[_0x28af75(0x246)]=Yt([W(0x0,Ee),W(0x1,a[_0x28af75(0xef)]),W(0x2,a['ICommandService']),W(0x3,a[_0x28af75(0x345)](u[_0x28af75(0x185)])),W(0x4,a[_0x28af75(0xf6)](Ke['IRemoteInstanceService']))],exports[_0x28af75(0x246)]);var Vt=Object['getOwnPropertyDescriptor'],Xt=(_0x38863b,_0x26894d,_0xbb932a,_0x173533)=>{const _0x4353bb=_0x28af75;for(var _0x19249e=_0x173533>0x1?void 0x0:_0x173533?Vt(_0x26894d,_0xbb932a):_0x26894d,_0x381494=_0x38863b[_0x4353bb(0x1af)]-0x1,_0xb45e2e;_0x381494>=0x0;_0x381494--)(_0xb45e2e=_0x38863b[_0x381494])&&(_0x19249e=_0xb45e2e(_0x19249e)||_0x19249e);return _0x19249e;},le=(_0x1d8b50,_0x2b0d4c)=>(_0xe0024d,_0x20d37e)=>_0x2b0d4c(_0xe0024d,_0x20d37e,_0x1d8b50);function _0x48a7(){const _0x12fd48=['runOnServer','_status$','dispose$','DocIMEInputManagerService','MUTATION','handleInsertRangeMoveDown','ALREADY_EXISTS','3293919JnOAcT','m1Prime','size','_updateURLWithCurrentState','setConfig','loadUnit','MemberService','useCallback','onLocalMutation','find','2214331EhUHZi','_drawRectRange','HTTPService','hasOwnProperty','result','IURLService','reconnect','actions','_shapes','CHANGESET_REVISION_CONFILICT','pluginName','react','UPDATE_CURSOR','forEach','xlink:href','blue400','getVpScrollXYInfoByPosToVp','SheetSkeletonManagerService','_saveTaskMap','univer-offline','collaboration.single-unit.warning','then','...','SessionStatus','SetSelectionsOperation','OTHER_CLIENTS_EDITING','FromArray','Failed','_render','_removeCollabCursors','_removeClearOtherTimer','@univerjs/sheets-ui','requireSession','_onCursorUpdate','SheetCollabCursorShape','getRenderById','handleIRemoveCol','delete','InsertColCommandId','addHandlerCallback','getTypeOfUnitDisposed$','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','getValue','show','OffLineSingle','@univerjs/ui','IUniverInstanceService','handleMoveRange','RegularPolygon','LICENSE_EXPORT_SIZE_EXCEEDED','getUnitId','name','EffectRefRangId','syncEditingCollabCursor','CollaborationStatus','_transformHistoryAndStateStack','ILocalCacheService','getOffsetConfig','_color','div','endColumn','purple300','uni.network.url-service','UniverInstanceType','WebURLService','COLORS','switchMap','DocStateChangeManagerService','_unitOnClients','Rect','getOwnPropertySymbols','MessageType','handleDeleteRangeMoveLeft','transformRemoteChangeset','30tRsbMt','ACTIVE_UNIT_EVENT_CHANNEL','arc','getOwnPropertyDescriptor','ColorKit','LocaleService','INVALID_ARGUMENT','current','_initStatusListener','apply','executeCommand','OFFLINE','onMouseMove','getCurrentSelections','restore','lineTo','transformMutation','@univerjs/network','_localStorageService','sessionTicket','_initEntityListener','ThemeService','getCellPositionByOffset','getSheetId','onRendered','getMemberID','_docSyncEditingCollabCursorService','asObservable','font','UNRECOGNIZED','selection','subscribe','_saveCache','activeSheet$','[RemoteUniscriptService]:\x20no\x20focused\x20unit','RECT','labelPosition','unsubscribe','moveTo','toDisposable','EMAIL_HAS_BEEN_BOUND','_renderManagerService','JOIN_ROOM_FAILED','BuiltInUIPart','VIEW_MAIN','undoState','_univerInstanceService','_onRefRangeChange','_scheduleSaving','tag','unshift','all','CollaborationStatusDisplay','_startSheetCollabCursor','_hideTimer','get','collabStatus.fetchMiss','_syncEditingCollabCursorService','svg','TRANSFORM_CHANGE_OBSERVABLE_TYPE','Inject','replaceDocRanges','APPLY_REVISION_CONFILICT','UNIVER_DOC','getActiveRange','@univerjs/design','path','_cursor','WebSocketService','INVITE_CODE_HAS_BEEN_UES','values','extend','@univerjs/sheets','_send','NOT_COLLAB','useRef','bottom','fromEvent','isActive','_beforeCloseService','createIdentifier','hide','session.collaboration-timeout','filter','M0\x200H16V16H0z','getRangePointData','unitId','_scheduleHeartbeat','black','top','attrs','0\x200\x2016\x2016','ITransformService','collab-text-anchor-','ICommandService','IUIPartsService','min','with','rxjs/operators','YUUMI_SUBSCRIPTION_NOT_FOUND','currentColor','source','ILogService','gold400','1em','getUniverSheetInstance','_roomMembers$','on-line-single_clip0_910_349','takeUntil','Optional','getSheetBySheetId','onlineStatusIcon','fillStyle','_transformService','off-line-single','skeleton','LICENSE_IMPORT_SIZE_EXCEEDED','APPLY_REJECT','removeParam','backgroundColor','DesktopCollaborationStatusDisplayController','eventID','isTransformMutationsWithChangesetSuccess','_name','sheetId','1886656QITHbq','IDocClipboardService','OnLineSingle','_getSaveTimeout','_docTransformIMECacheService','replace','toString','RemoveColCommandId','getItem','Unknown\x20user','saveTaskMap','contains','UnitStatus','Shape','getMergeData','DisposableCollection','_updateSubUnitFromURLParams','collabStatus.offline','function','_textBubble','dispose','textRanges','jsxs','APPLY_DUPLICATED','_collaborationUIEventService','PENDING','_config','init','propertyIsEnumerable','BrowserCollaborationSocketService','3zeXJjw','_handleEvent','_collabCursorState$','collaboration-client.offline-data-not-saved','verdancy600','_configService','USER_NOT_INVITED_CODE','TOO_MANY_REQUESTS','transformSelections','getAncestorScale','string','Plugin','idSuffix','permission.title','_hover','updateOfflineData','executionId','column','unit','getActiveSheet','isEditing','_heartbeatTimer','permission.content','_refreshCollabCursors','_getMergeRange','Workbook','_lastPointer','serializeRangeWithSheet','editingUnit','prototype','_initStatusComponent','_registerRenderDependencies','registerRefRange','NOT_FOUND','_localeService','_injector','defs','SYNCED','YUUMI_RATE_OVER_LIMIT','currentTheme$','_urlService','next','onPointerEnter$','getUnhiddenWorksheets','isArray','_docTransformSelectionsService','SOCKET_FAILED_RETRY','_collabCursorController','getLocalCacheKey','session.will-retry','_toggleOnline','collaboration-client-ui.config','jsx','defineProperty','redoState','_toggleOffline','1956528CFtPRi','_colorIndex','params','_docStateChangeManagerService','TEXT','merge','application/json','_entityInit$','concat','APPLY_NON_SEQUENTIAL_REVISION','_init','icon','_refRangeService','_scheduleClearOtherTimer','_onCursorDelete','setItem','RemoteUniscriptService','setAlpha','addObject','ranges','USERS_LEAVE','newValue','from','className','assign','_initEvent','_logService','_docClipboardService','getFocusedUnit','getParam','_updateLocalCursor','_cursorShapes','IRenderManagerService','call','_docSkeleton','location','UNIVER_SHEET','generateRandomId','getViewport','INVITE_CODE_REQUIRED','Injector','DataLoaderService','children','forwardRef','createSocket','_sheetSkeletonManagerService','_docTransformStateCacheService','complete','CONNECTOR_DATA_TOO_LARGE','_drawAnchor','CONFLICT','@univerjs/rpc','ENSURE_SNAPSHOT_EXECUTION','@univerjs/docs','session.connection-failed','getCoordByCell','_selfUnitIDs','getRelativeToViewportCoord','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','_unitStatus','AWAITING','subscribeEvent','color','710SXORsn','_drawTextRange','engine','parse','BehaviorSubject','getUndoRedoMutationParamsCache','translate(.97)','cursorInfo$','CollaborationSessionService','post','DeleteRangeMoveLeftCommandId','transformMutationsWithChangeset','DependentOn','clsx','doc.mutation.rich-text-editing','origin','_context','clipPath','addClipboardHook','82746PBCAKd','length','data','row','LOGIN_FAILED','DocSkeletonManagerService','YUUMI_URL_COL_OUT_OF_RANGE','debug','collabStatus.notCollab','_updateCollabCursors','_memberService','width','fromEventSubject','_cursors','_dataLoaderService','_transformPreviousActiveRange','DEFAULT_WS_SESSION_TICKET_URL','_getScale','round','DeleteRangeMoveUpCommandId','resize','includes','clearInterval','AWAITING_WITH_PENDING','use','_online','_scene','wsSessionTicketUrl','CollaborationEvent','createElement','_backgroundColor','UNAUTHENTICATED','indexOf','debounceTime','currentSkeleton$','height','_collabSessionService','setActiveRange','m2Prime','history','has','rxjs','_commandService','_instanceService','runRefRangeMutations','fill','onPointerLeave$','loadOfflineData','RxDisposable','[CollaborationDataLoaderController]','collabStatus.conflict','univer-online-status','red300','toRgbString','_cachedData','some','_initCommandExecutedListener','addEventListener','UniverCollaborationClientUIPlugin','drawWith','setShapeProps','Rectangle','makeDirty','_collaborationController','replaceState','_range','PY_RUNTIME_SCRIPT_ERROR','637404qFkByA','SNAPSHOT_INVALID_SNAPSHOT','findNodePositionByCharIndex','status$','handleInsertRow','_anchorDot','getStateCache','subunit','PERMISSION_DENIED','split','_registerDependencies','#fff','saveImage','key','colorChannel1','shareReplay','_handleHover','RichTextEditingMutation','exhaustSavingTask','measureText','@univerjs/docs-ui','_assignedColors','fillText','mutations','_ensureSubject','_disabled','SHEET_VIEWPORT_KEY','MOBILE_HAS_BEEN_BOUND','_cursorInfo$','body','connectInjector','deepClone','save','unload','override','pipe','Tools','DOC_RANGE_TYPE','getDocRanges','IMessageService','_imageIoService','_initDependencies','whenReady','_hovered','range','Tooltip','focused$','#FFF','stringify','UNDEFINED','getConfig','_uiPartsService','registerBeforeClose','ILocalStorageService','roomMembers','cursorInfo','on-line-single','distinctUntilChanged','COMPLETION_FINISHED','_clearOtherTimers','NodePositionConvertToCursor','REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY','TEXT_RANGE_LAYER_INDEX','push','_themeService','INVITE_CODE_ALREADY_BOUND','map','univer-online','INVALID_INVITE_CODE','ticket','IConfigService','_eventUnsubscribe','SNAPSHOT_HAS_BEEN_REMOVED','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','defIds','DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT','MoveRangeCommandId','_messageService','setTimeout','fillRule','univer-online-status-icon','Disposable','add','DocSelectionManagerService','Error','CollaborationDataLoaderController','APPLY_PERMISSION_DENIED','_doCreateSocket','_id','error','href','unitID','setParam','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','SetWorksheetActivateCommand','url(#$1','OTHER_CLIENT_EDITING','INTERNAL_ERROR','disposeWithMe','collabCursorState$','handleInsertRangeMoveRight','getMember','off-line-single_clip0_910_343','_draw','_session','_handleJoinEvent','jiqing500','setStateCache','onCommandExecuted','set','ONLINE','setUndoRedoMutationParamsCache','getTypeOfUnitAdded$','/run/','@univerjs-pro/collaboration','getCollabCursors$','evenodd','_labelPosition','selections','registerRenderModule','event$','trim','combineLatest','CollaborationUIEventId','text','_anchor','none','isTransformMutationFailure','clearTimeout','collab-text-range-','_getAnchorBounding','transformStateCache','type','_getSessionTicket','rgba(255,\x20255,\x20255,\x200.01)','INotificationService','Subject','getCurrent','send','runId','CollaborationController','roomMembers$','registerDependencies','FETCH_MISS','subUnitId','pushState','assignAColorForMemberID','WECHAT_HAS_BEEN_BOUND','YUUMI_UNABLE_LOAD_URL','mergeOverrideWithDependencies','deserializeRangeWithSheet','collab-rect-range-','univer-flex\x20univer-items-center','searchParams','_initResize','getColor','url(#on-line-single_clip0_910_349)','DocCollaborationEntity','debounce','mask','_httpService','@univerjs-pro/collaboration-client','_setupSubUnitSync','handleInsertCol','LOCAL_CACHE_INTERVAL','_entities','CLOSE_ROOM','_colorAssignService','_getSheetObject','_handleLeaveEvent','useDependency','942HQsbQs','transformIMECache','LICENSE_MAX_UNITS_EXCEEDED','_setupBeforeClosingHandler','LICENSE_DISTRO_REJECTED','_notificationService','_handleHeartbeatEvent','collaboration.closeRoom','getSkeleton','Warning','0\x200\x2017\x2016','_createSocketURL','offline','NO_OTHER_CLIENTS_EDITING','SOCKET_FAILED','startColumn','Vector2','startRow'];_0x48a7=function(){return _0x12fd48;};return _0x48a7();}let J=class{constructor(_0xa3ba23,_0x48eaf0,_0x55ca04){const _0x46e49a=_0x28af75;this[_0x46e49a(0x147)]=_0xa3ba23,this['_transformService']=_0x48eaf0,this[_0x46e49a(0x332)]=_0x55ca04;}[_0x28af75(0x29d)](_0x4af133){const _0x146dcd=_0x28af75;this['_transformUndoRedoStack'](_0x4af133),this[_0x146dcd(0x1bd)](_0x4af133);}[_0x28af75(0x308)](_0x1c200a){const _0x12e176=_0x28af75,{unitID:_0x5ae8e4}=_0x1c200a,_0x191703=this[_0x12e176(0x332)][_0x12e176(0x2e2)](_0x5ae8e4)[_0x12e176(0xea)](b[_0x12e176(0x2b1)]),{redoCache:_0x17a614}=_0x191703[_0x12e176(0x1a0)]();if(_0x17a614[_0x12e176(0x1af)]===0x0)return _0x1c200a;let _0x5b7d18=a['Tools'][_0x12e176(0x210)](_0x1c200a[_0x12e176(0x208)][0x0]);for(let _0x1036f6=0x0;_0x1036f6<_0x17a614[_0x12e176(0x1af)];_0x1036f6++){const _0x5afffc={'id':_0x12e176(0x1a9),'params':{..._0x17a614[_0x1036f6]}},_0x1467f8=this[_0x12e176(0xfa)][_0x12e176(0x319)](_0x5b7d18,_0x5afffc,!0x1);if(m['isTransformMutationFailure'](_0x1467f8))throw _0x1467f8[_0x12e176(0x24a)];_0x5b7d18=_0x1467f8[_0x12e176(0x2b6)];}return{...a['Tools'][_0x12e176(0x210)](_0x1c200a),'mutations':[_0x5b7d18]};}['_transformUndoRedoStack'](_0xc4ebc9){const _0x3a0a44=_0x28af75,{unitID:_0x228ee9}=_0xc4ebc9,_0x1329ab=this[_0x3a0a44(0x332)]['getRenderById'](_0x228ee9)['with'](b['DocIMEInputManagerService']),{undoCache:_0xf79ffa,redoCache:_0x16bf38}=_0x1329ab['getUndoRedoMutationParamsCache']();if(_0xf79ffa[_0x3a0a44(0x1af)]===0x0||_0x16bf38['length']===0x0)return;const _0xe495f9=[],_0x2d5cee=[];let _0x368a44=a[_0x3a0a44(0x215)][_0x3a0a44(0x210)](_0xc4ebc9['mutations'][0x0]),_0x11d1a1=a[_0x3a0a44(0x215)][_0x3a0a44(0x210)](_0xc4ebc9[_0x3a0a44(0x208)][0x0]);for(let _0x12d8b2=_0xf79ffa[_0x3a0a44(0x1af)]-0x1;_0x12d8b2>=0x0;_0x12d8b2--){const _0x77ccff={'id':'doc.mutation.rich-text-editing','params':{..._0xf79ffa[_0x12d8b2]}},_0x3a52f4={'id':_0x3a0a44(0x1a9),'params':{..._0x16bf38[_0x12d8b2]}},_0x24ef29=this[_0x3a0a44(0xfa)][_0x3a0a44(0x319)](_0x368a44,_0x77ccff,!0x1),_0x3c4833=this[_0x3a0a44(0xfa)][_0x3a0a44(0x319)](_0x11d1a1,_0x3a52f4,!0x1);if(m[_0x3a0a44(0x270)](_0x24ef29))throw _0x24ef29[_0x3a0a44(0x24a)];if(m[_0x3a0a44(0x270)](_0x3c4833))throw _0x3c4833['error'];_0xe495f9[_0x3a0a44(0x33b)](_0x24ef29['m2Prime']['params']),_0x2d5cee[_0x3a0a44(0x33b)](_0x3c4833['m2Prime'][_0x3a0a44(0x15e)]),_0x368a44=_0x24ef29[_0x3a0a44(0x2b6)],_0x11d1a1=_0x3c4833['m1Prime'];}_0x1329ab[_0x3a0a44(0x260)]({'undoCache':_0xe495f9,'redoCache':_0x2d5cee});}[_0x28af75(0x1bd)](_0x362a68){const _0x4264b6=_0x28af75,{unitID:_0x224fc9}=_0x362a68,_0x541f6a=this[_0x4264b6(0x332)][_0x4264b6(0x2e2)](_0x224fc9)['with'](b[_0x4264b6(0x2b1)]),_0x426dc4=_0x541f6a[_0x4264b6(0x349)]();if(_0x426dc4==null)return;const _0x11485a=[{'id':_0x4264b6(0x1a9),'params':{'unitId':_0x362a68['unitID'],'actions':null,'textRanges':[_0x426dc4]}}],_0x5aa20b=this['_transformService'][_0x4264b6(0x1a6)](_0x362a68,_0x11485a);if(!m['isTransformMutationsWithChangesetSuccess'](_0x5aa20b))throw _0x5aa20b[_0x4264b6(0x24a)];const _0x121c46=_0x5aa20b[_0x4264b6(0x1d4)][0x0]['params'][_0x4264b6(0x11b)];Array[_0x4264b6(0x150)](_0x121c46)&&_0x121c46[_0x4264b6(0x1af)]&&_0x541f6a[_0x4264b6(0x1d3)](_0x121c46[0x0]);}};J=Xt([le(0x0,a[_0x28af75(0x345)](a['Injector'])),le(0x1,m[_0x28af75(0xe5)]),le(0x2,p[_0x28af75(0x17c)])],J);var Gt=Object['getOwnPropertyDescriptor'],qt=(_0x4b1e1d,_0x440d6b,_0x1c332a,_0x1dc906)=>{for(var _0x1366ab=_0x1dc906>0x1?void 0x0:_0x1dc906?Gt(_0x440d6b,_0x1c332a):_0x440d6b,_0x44d172=_0x4b1e1d['length']-0x1,_0x13efec;_0x44d172>=0x0;_0x44d172--)(_0x13efec=_0x4b1e1d[_0x44d172])&&(_0x1366ab=_0x13efec(_0x1366ab)||_0x1366ab);return _0x1366ab;},_e=(_0x5b2403,_0x5389d2)=>(_0x274350,_0x324a20)=>_0x5389d2(_0x274350,_0x324a20,_0x5b2403);let Z=class{constructor(_0x4c6a31,_0x4a2971,_0x26fb35){const _0x576614=_0x28af75;this[_0x576614(0x147)]=_0x4c6a31,this[_0x576614(0xfa)]=_0x4a2971,this['_docStateChangeManagerService']=_0x26fb35;}[_0x28af75(0x274)](_0x339490){this['_transformHistoryAndStateStack'](_0x339490);}[_0x28af75(0x308)](_0x3a75e7){const _0x45db48=_0x28af75,{unitID:_0x4c0514}=_0x3a75e7,{collaboration:_0x1d9f04}=this[_0x45db48(0x15f)][_0x45db48(0x1f7)](_0x4c0514);if(_0x1d9f04['length']===0x0)return _0x3a75e7;let _0xe8924e=a[_0x45db48(0x215)][_0x45db48(0x210)](_0x3a75e7[_0x45db48(0x208)][0x0]);for(let _0x38cf15=0x0;_0x38cf15<_0x1d9f04[_0x45db48(0x1af)];_0x38cf15++){const _0x45025e={'id':_0x45db48(0x1a9),'params':{'unitId':_0x1d9f04[_0x38cf15][_0x45db48(0xdf)],..._0x1d9f04[_0x38cf15]['redoState']}},_0x1d0710=this['_transformService'][_0x45db48(0x319)](_0xe8924e,_0x45025e,!0x1);if(m[_0x45db48(0x270)](_0x1d0710))throw _0x1d0710[_0x45db48(0x24a)];_0xe8924e=_0x1d0710[_0x45db48(0x2b6)];}return{...a[_0x45db48(0x215)][_0x45db48(0x210)](_0x3a75e7),'mutations':[_0xe8924e]};}[_0x28af75(0x2f6)](_0x183539){const _0x4a5d37=_0x28af75,{unitID:_0x4b3cd9}=_0x183539,{history:_0x2ab9b4,collaboration:_0x3b2609}=this[_0x4a5d37(0x15f)][_0x4a5d37(0x1f7)](_0x4b3cd9);if(_0x2ab9b4[_0x4a5d37(0x1af)]===0x0&&_0x3b2609[_0x4a5d37(0x1af)]===0x0)return;const _0x176a1f=[],_0x128c3c=[];let _0x2266ba=a['Tools']['deepClone'](_0x183539[_0x4a5d37(0x208)][0x0]),_0x10245=a[_0x4a5d37(0x215)][_0x4a5d37(0x210)](_0x183539[_0x4a5d37(0x208)][0x0]);for(let _0x4dd6d5=_0x2ab9b4['length']-0x1;_0x4dd6d5>=0x0;_0x4dd6d5--){const _0x4ff42e={'id':_0x4a5d37(0x1a9),'params':{'unitId':_0x2ab9b4[_0x4dd6d5]['unitId'],..._0x2ab9b4[_0x4dd6d5][_0x4a5d37(0x336)]}},_0x1ba763={'id':_0x4a5d37(0x1a9),'params':{'unitId':_0x2ab9b4[_0x4dd6d5][_0x4a5d37(0xdf)],..._0x2ab9b4[_0x4dd6d5][_0x4a5d37(0x15a)]}},_0x2afda7=this[_0x4a5d37(0xfa)]['transformMutation'](_0x2266ba,_0x4ff42e,!0x1),_0x32997b=this['_transformService'][_0x4a5d37(0x319)](_0x10245,_0x1ba763,!0x1);if(m[_0x4a5d37(0x270)](_0x2afda7))throw _0x2afda7['error'];if(m['isTransformMutationFailure'](_0x32997b))throw _0x32997b['error'];_0x176a1f[_0x4a5d37(0x33b)]({..._0x2ab9b4[_0x4dd6d5],'undoState':_0x2afda7[_0x4a5d37(0x1d4)][_0x4a5d37(0x15e)],'redoState':_0x32997b[_0x4a5d37(0x1d4)][_0x4a5d37(0x15e)]}),_0x2266ba=_0x2afda7[_0x4a5d37(0x2b6)],_0x10245=_0x32997b[_0x4a5d37(0x2b6)];}_0x2266ba=a[_0x4a5d37(0x215)][_0x4a5d37(0x210)](_0x183539['mutations'][0x0]),_0x10245=a[_0x4a5d37(0x215)][_0x4a5d37(0x210)](_0x183539[_0x4a5d37(0x208)][0x0]);for(let _0x47c9f5=_0x3b2609[_0x4a5d37(0x1af)]-0x1;_0x47c9f5>=0x0;_0x47c9f5--){const _0x305b22={'id':_0x4a5d37(0x1a9),'params':{'unitId':_0x3b2609[_0x47c9f5][_0x4a5d37(0xdf)],..._0x3b2609[_0x47c9f5][_0x4a5d37(0x336)]}},_0x5bcf54={'id':_0x4a5d37(0x1a9),'params':{'unitId':_0x3b2609[_0x47c9f5][_0x4a5d37(0xdf)],..._0x3b2609[_0x47c9f5][_0x4a5d37(0x15a)]}},_0x2f8e6=this['_transformService']['transformMutation'](_0x2266ba,_0x305b22,!0x1),_0x594b74=this['_transformService'][_0x4a5d37(0x319)](_0x10245,_0x5bcf54,!0x1);if(m[_0x4a5d37(0x270)](_0x2f8e6))throw _0x2f8e6[_0x4a5d37(0x24a)];if(m[_0x4a5d37(0x270)](_0x594b74))throw _0x594b74[_0x4a5d37(0x24a)];_0x128c3c[_0x4a5d37(0x33b)]({..._0x3b2609[_0x47c9f5],'undoState':_0x2f8e6[_0x4a5d37(0x1d4)][_0x4a5d37(0x15e)],'redoState':_0x594b74[_0x4a5d37(0x1d4)][_0x4a5d37(0x15e)]}),_0x2266ba=_0x2f8e6[_0x4a5d37(0x2b6)],_0x10245=_0x594b74[_0x4a5d37(0x2b6)];}this[_0x4a5d37(0x15f)][_0x4a5d37(0x25c)](_0x4b3cd9,{'history':_0x176a1f,'collaboration':_0x128c3c});}};Z=qt([_e(0x0,a[_0x28af75(0x345)](a[_0x28af75(0x184)])),_e(0x1,m[_0x28af75(0xe5)]),_e(0x2,a[_0x28af75(0x345)](b[_0x28af75(0x302)]))],Z);var Kt=Object[_0x28af75(0x30c)],zt=(_0x5c0f58,_0x2eae3e,_0x182b71,_0x1b29fc)=>{const _0x5d9866=_0x28af75;for(var _0xf36d11=_0x1b29fc>0x1?void 0x0:_0x1b29fc?Kt(_0x2eae3e,_0x182b71):_0x2eae3e,_0x51738f=_0x5c0f58[_0x5d9866(0x1af)]-0x1,_0x442987;_0x51738f>=0x0;_0x51738f--)(_0x442987=_0x5c0f58[_0x51738f])&&(_0xf36d11=_0x442987(_0xf36d11)||_0xf36d11);return _0xf36d11;},Me=(_0x3beed1,_0x397004)=>(_0xa265f1,_0x5d444e)=>_0x397004(_0xa265f1,_0x5d444e,_0x3beed1);let Q=class{constructor(_0x403928,_0x117523){const _0x107d72=_0x28af75;this[_0x107d72(0x147)]=_0x403928,this[_0x107d72(0xfa)]=_0x117523;}[_0x28af75(0x12c)](_0x16785e){const _0x289918=_0x28af75;var _0x879e24;const _0x2dee7b=this[_0x289918(0x147)][_0x289918(0x340)](Y['DocSelectionManagerService']),_0x14c2a5=(_0x879e24=_0x2dee7b[_0x289918(0x217)]())!=null?_0x879e24:[];if(_0x14c2a5[_0x289918(0x1af)]===0x0)return;const _0x4a21ca=_0x16785e[_0x289918(0x24c)],_0x40d398=[{'id':_0x289918(0x1a9),'params':{'unitId':_0x4a21ca,'actions':null,'textRanges':_0x14c2a5}}],_0x178d90=this[_0x289918(0xfa)][_0x289918(0x1a6)](_0x16785e,_0x40d398);if(!m[_0x289918(0x103)](_0x178d90))throw _0x178d90['error'];const _0x4cf02a=_0x178d90[_0x289918(0x1d4)][0x0][_0x289918(0x15e)][_0x289918(0x11b)];Array[_0x289918(0x150)](_0x4cf02a)&&_0x4cf02a[_0x289918(0x1af)]&&_0x2dee7b[_0x289918(0x346)](_0x4cf02a,{'unitId':_0x4a21ca,'subUnitId':_0x4a21ca},!0x1);}};Q=zt([Me(0x0,a[_0x28af75(0x345)](a[_0x28af75(0x184)])),Me(0x1,m[_0x28af75(0xe5)])],Q);var Jt=Object[_0x28af75(0x30c)],Zt=(_0x179935,_0x4694a8,_0x541faf,_0x5edace)=>{for(var _0x3fb56a=_0x5edace>0x1?void 0x0:_0x5edace?Jt(_0x4694a8,_0x541faf):_0x4694a8,_0x4c6aa5=_0x179935['length']-0x1,_0x4d6fea;_0x4c6aa5>=0x0;_0x4c6aa5--)(_0x4d6fea=_0x179935[_0x4c6aa5])&&(_0x3fb56a=_0x4d6fea(_0x3fb56a)||_0x3fb56a);return _0x3fb56a;},N=(_0x1a4856,_0x10e4e5)=>(_0xce956,_0x4b5273)=>_0x10e4e5(_0xce956,_0x4b5273,_0x1a4856);let ee=class extends a['Disposable']{constructor(_0x54332f,_0x351285,_0x1bf789,_0x3828fb,_0x5880f5,_0x8b8b06,_0x17bcdb,_0x268946){const _0x281a80=_0x28af75;super(),_(this,_0x281a80(0x2af),new d[(_0x281a80(0x19f))](u[_0x281a80(0x2f5)][_0x281a80(0xd3)])),(this[_0x281a80(0x15f)]=_0x54332f,this[_0x281a80(0x1ed)]=_0x351285,this['_docTransformIMECacheService']=_0x1bf789,this[_0x281a80(0x18a)]=_0x3828fb,this[_0x281a80(0x151)]=_0x5880f5,this['_docSyncEditingCollabCursorService']=_0x8b8b06,this['_messageService']=_0x17bcdb,this[_0x281a80(0x146)]=_0x268946,this[_0x281a80(0x31d)]());}[_0x28af75(0x31d)](){const _0x491c93=_0x28af75;this[_0x491c93(0x253)](this[_0x491c93(0x1ed)]['entityInit$']['subscribe'](_0x3724f9=>{const _0x30050f=_0x491c93,_0x3c52ee=this[_0x30050f(0x15f)]['docStateChange$'][_0x30050f(0x328)](_0x576022=>{const _0x5aa362=_0x30050f;if(_0x576022==null)return;const {unitId:_0x118e98,redoState:_0x14579b,commandId:_0x271126}=_0x576022;if(_0x118e98!==_0x3724f9[_0x5aa362(0x24c)])return;const _0x29d271={'id':_0x271126,'type':a['CommandType'][_0x5aa362(0x2b2)],'params':{'unitId':_0x118e98,'actions':_0x14579b[_0x5aa362(0x2c6)],'textRanges':null}};_0x3724f9[_0x5aa362(0x2bd)](_0x29d271);});if(_0x3724f9[_0x30050f(0x253)](_0x3c52ee),_0x3724f9 instanceof u[_0x30050f(0x28e)]){const _0x3b36d7={'onTransformIME':_0x7155b=>this[_0x30050f(0x10a)][_0x30050f(0x29d)](_0x7155b),'onTransformState':_0x50ac87=>this[_0x30050f(0x18a)][_0x30050f(0x274)](_0x50ac87),'onTransformSelections':_0x52804d=>this[_0x30050f(0x151)][_0x30050f(0x12c)](_0x52804d),'onSyncEditingCollabCursor':_0x4548f6=>this[_0x30050f(0x323)][_0x30050f(0x2f4)](_0x4548f6),'onTransformRemoteChangesetByIMECache':_0x36ed80=>this[_0x30050f(0x10a)][_0x30050f(0x308)](_0x36ed80),'onTransformRemoteChangesetByStateCache':_0x14b285=>this[_0x30050f(0x18a)][_0x30050f(0x308)](_0x14b285)};_0x3724f9[_0x30050f(0x2e6)](_0x3b36d7);}}));}};ee=Zt([N(0x0,a['Inject'](b[_0x28af75(0x302)])),N(0x1,a[_0x28af75(0x345)](u[_0x28af75(0x27d)])),N(0x2,a[_0x28af75(0x345)](J)),N(0x3,a[_0x28af75(0x345)](Z)),N(0x4,a[_0x28af75(0x345)](Q)),N(0x5,a[_0x28af75(0x345)](pe)),N(0x6,R[_0x28af75(0x218)]),N(0x7,a[_0x28af75(0x345)](a['LocaleService']))],ee);var Qt=Object[_0x28af75(0x30c)],es=(_0x54fbf8,_0x310732,_0x5205b8,_0x260c7b)=>{const _0x5b71de=_0x28af75;for(var _0x36f3d6=_0x260c7b>0x1?void 0x0:_0x260c7b?Qt(_0x310732,_0x5205b8):_0x310732,_0x149897=_0x54fbf8[_0x5b71de(0x1af)]-0x1,_0x1aba6e;_0x149897>=0x0;_0x149897--)(_0x1aba6e=_0x54fbf8[_0x149897])&&(_0x36f3d6=_0x1aba6e(_0x36f3d6)||_0x36f3d6);return _0x36f3d6;},he=(_0x1c777,_0x164b3e)=>(_0xf0a664,_0x45296f)=>_0x164b3e(_0xf0a664,_0x45296f,_0x1c777);let me=class extends a[_0x28af75(0x242)]{constructor(_0x12f098,_0x529ef2,_0x3d15fc){const _0x37189c=_0x28af75;super(),_(this,'_cachedData',new Map()),_(this,_0x37189c(0x2d1),new Map()),_(this,_0x37189c(0x20a),!0x1),(this[_0x37189c(0x129)]=_0x12f098,this['_localStorageService']=_0x529ef2,this['_revisionService']=_0x3d15fc);}['disableLocalCache'](){this['_disabled']=!0x0;}['enableLocalCache'](){const _0x55083b=_0x28af75;this[_0x55083b(0x20a)]=!0x1;}get[_0x28af75(0x110)](){const _0x5d1157=_0x28af75;return this[_0x5d1157(0x2d1)];}[_0x28af75(0x11a)](){const _0x27dddd=_0x28af75;this[_0x27dddd(0x203)]()[_0x27dddd(0x2d4)](()=>super[_0x27dddd(0x11a)]());}async[_0x28af75(0x1dd)](_0x147e81){const _0x4526dc=_0x28af75;return this[_0x4526dc(0x20a)]?null:this['_localStorageService'][_0x4526dc(0x10e)](u[_0x4526dc(0x154)](_0x147e81));}async['saveOfflineData'](_0x516e62,_0x2c3456){const _0x2b11f5=_0x28af75;return!!this[_0x2b11f5(0x31b)]['setItem'](_0x516e62,_0x2c3456);}[_0x28af75(0x133)](_0x505c92,_0x2078ea,_0x409436,_0x283f0e){const _0x34a22a=_0x28af75,_0x5f101d=this['_revisionService']['getCurrentRevOfUnit'](_0x505c92);this[_0x34a22a(0x1e4)][_0x34a22a(0x25e)](_0x505c92,{'unitID':_0x505c92,'type':_0x2078ea,'awaitingChangeset':_0x409436,'mutations':_0x283f0e,'rev':_0x5f101d}),this[_0x34a22a(0x2d1)][_0x34a22a(0x1d6)](_0x505c92)||this[_0x34a22a(0x339)](_0x505c92);}[_0x28af75(0x339)](_0x6ffd67){const _0x3aba2d=_0x28af75,_0x515e5f=this[_0x3aba2d(0x109)]();_0x515e5f===0x0?this[_0x3aba2d(0x329)](_0x6ffd67):this[_0x3aba2d(0x2d1)][_0x3aba2d(0x25e)](_0x6ffd67,setTimeout(()=>this[_0x3aba2d(0x329)](_0x6ffd67),_0x515e5f));}[_0x28af75(0x109)](){const _0xc9517=_0x28af75;var _0x565468;return(_0x565468=this[_0xc9517(0x129)][_0xc9517(0x223)](u['LOCAL_CACHE_INTERVAL_KEY']))!=null?_0x565468:u[_0xc9517(0x295)];}[_0x28af75(0x329)](_0x56ad2d){const _0x24a197=_0x28af75,_0x4ba086=this[_0x24a197(0x2d1)]['get'](_0x56ad2d);return _0x4ba086!==void 0x0&&window[_0x24a197(0x271)](_0x4ba086),this[_0x24a197(0x31b)][_0x24a197(0x16b)](u[_0x24a197(0x154)](_0x56ad2d),this[_0x24a197(0x1e4)][_0x24a197(0x340)](_0x56ad2d))[_0x24a197(0x2d4)](()=>this[_0x24a197(0x2d1)][_0x24a197(0x2e4)](_0x56ad2d));}async[_0x28af75(0x203)](){const _0x17b1cd=_0x28af75,_0x57c6d7=[];this['_saveTaskMap'][_0x17b1cd(0x2cc)]((_0x4fd038,_0x53f852)=>{const _0x5e0b26=_0x17b1cd;window['clearTimeout'](_0x4fd038),_0x57c6d7['push'](this[_0x5e0b26(0x329)](_0x53f852)[_0x5e0b26(0x2d4)](()=>{const _0xf6273a=_0x5e0b26;this[_0xf6273a(0x2d1)][_0xf6273a(0x2e4)](_0x53f852);}));}),await Promise[_0x17b1cd(0x33c)](_0x57c6d7);}};me=es([he(0x0,a[_0x28af75(0x237)]),he(0x1,a[_0x28af75(0x226)]),he(0x2,a['Inject'](m['RevisionService']))],me);class Be extends a[_0x28af75(0x1de)]{constructor(){const _0x1fb2ff=_0x28af75;super(),_(this,'urlChange$'),this['urlChange$']=d[_0x1fb2ff(0xd6)](window,'popstate')[_0x1fb2ff(0x214)](d[_0x1fb2ff(0xf5)](this[_0x1fb2ff(0x2b0)]),d[_0x1fb2ff(0x200)](0x1),d['mapTo'](void 0x0));}[_0x28af75(0x24d)](_0xf4aa5b,_0x241396,_0x292afc=!0x1){const _0xb49a53=_0x28af75,_0x16ef73=new URL(window[_0xb49a53(0x17f)][_0xb49a53(0x24b)]);_0x16ef73[_0xb49a53(0x28a)][_0xb49a53(0x25e)](_0xf4aa5b,_0x241396),_0x292afc?window[_0xb49a53(0x1d5)][_0xb49a53(0x1ee)]('','',_0x16ef73[_0xb49a53(0x10c)]()):window[_0xb49a53(0x1d5)][_0xb49a53(0x282)]('','',_0x16ef73[_0xb49a53(0x10c)]());}[_0x28af75(0xff)](_0x1c9567,_0x5c016f=!0x1){const _0x5c964f=_0x28af75,_0x324097=new URL(window[_0x5c964f(0x17f)][_0x5c964f(0x24b)]);_0x324097['searchParams'][_0x5c964f(0x2e4)](_0x1c9567),_0x5c016f?window[_0x5c964f(0x1d5)][_0x5c964f(0x1ee)]('','',_0x324097[_0x5c964f(0x10c)]()):window[_0x5c964f(0x1d5)][_0x5c964f(0x282)]('','',_0x324097[_0x5c964f(0x10c)]());}[_0x28af75(0x179)](_0x1fa076){const _0x3f19f0=_0x28af75;var _0x49d104;return(_0x49d104=new URL(window[_0x3f19f0(0x17f)][_0x3f19f0(0x24b)])[_0x3f19f0(0x28a)]['get'](_0x1fa076))!=null?_0x49d104:void 0x0;}}var ts=Object[_0x28af75(0x159)],ss=Object[_0x28af75(0x30c)],ns=(_0x5030b8,_0xab7c55,_0x3bc719)=>_0xab7c55 in _0x5030b8?ts(_0x5030b8,_0xab7c55,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x3bc719}):_0x5030b8[_0xab7c55]=_0x3bc719,is=(_0x4805a1,_0x30010e,_0x340ec6,_0x1cc946)=>{const _0x1f8d63=_0x28af75;for(var _0x1072a7=_0x1cc946>0x1?void 0x0:_0x1cc946?ss(_0x30010e,_0x340ec6):_0x30010e,_0x1efe5b=_0x4805a1[_0x1f8d63(0x1af)]-0x1,_0x1f2406;_0x1efe5b>=0x0;_0x1efe5b--)(_0x1f2406=_0x4805a1[_0x1efe5b])&&(_0x1072a7=_0x1f2406(_0x1072a7)||_0x1072a7);return _0x1072a7;},ue=(_0x3ccd51,_0x3135ec)=>(_0x4b2eae,_0x230c42)=>_0x3135ec(_0x4b2eae,_0x230c42,_0x3ccd51),rs=(_0x393053,_0x3d6474,_0x445c87)=>ns(_0x393053,_0x3d6474+'',_0x445c87);const os='UNIVER_COLLABORATION_CLIENT_WEB_PLUGIN';exports[_0x28af75(0x1e8)]=class extends a[_0x28af75(0x12f)]{constructor(_0x39699e=Ne,_0x658e3a,_0x5c1eac,_0x44ef4d){const _0x4423e7=_0x28af75;super(),this[_0x4423e7(0x120)]=_0x39699e,this[_0x4423e7(0x332)]=_0x658e3a,this[_0x4423e7(0x147)]=_0x5c1eac,this[_0x4423e7(0x129)]=_0x44ef4d;const {..._0x52aa4b}=a[_0x4423e7(0x161)]({},Ne,this[_0x4423e7(0x120)]);this[_0x4423e7(0x129)][_0x4423e7(0x2b9)](Wt,_0x52aa4b);}['onStarting'](){const _0x11c761=_0x28af75;this[_0x11c761(0x1fb)](),this[_0x11c761(0x21a)]();}[_0x28af75(0x321)](){const _0x4840d6=_0x28af75;this[_0x4840d6(0x143)]();}[_0x28af75(0x1fb)](){const _0x3a5de0=_0x28af75;var _0x253661;const _0x2d1904=[[Ce],[Q],[J],[Z],[pe],[Ee,{'useClass':Be}],[q['ISocketService'],{'useClass':q[_0x3a5de0(0xcd)]}],[u[_0x3a5de0(0x2f7)],{'useClass':me}],[exports[_0x3a5de0(0x101)]],[ee],[z],[x],[fe],[exports[_0x3a5de0(0x246)]]];a[_0x3a5de0(0x27f)](this[_0x3a5de0(0x147)],a[_0x3a5de0(0x286)](_0x2d1904,(_0x253661=this['_config'])==null?void 0x0:_0x253661[_0x3a5de0(0x213)]));}[_0x28af75(0x143)](){const _0x22890a=_0x28af75;this[_0x22890a(0x253)](this[_0x22890a(0x332)]['registerRenderModule'](a[_0x22890a(0x2fe)][_0x22890a(0x348)],[ve])),this[_0x22890a(0x253)](this[_0x22890a(0x332)][_0x22890a(0x268)](a[_0x22890a(0x2fe)][_0x22890a(0x180)],[ge]));}[_0x28af75(0x21a)](){const _0x29a42d=_0x28af75;a['touchDependencies'](this[_0x29a42d(0x147)],[[x],[exports['DesktopCollaborationStatusDisplayController']],[ee],[z],[exports[_0x29a42d(0x246)]]]);}},rs(exports['UniverCollaborationClientUIPlugin'],_0x28af75(0x2c9),os),exports[_0x28af75(0x1e8)]=is([a[_0x28af75(0x1a7)](u['UniverCollaborationClientPlugin']),ue(0x1,p[_0x28af75(0x17c)]),ue(0x2,a[_0x28af75(0x345)](a[_0x28af75(0x184)])),ue(0x3,a[_0x28af75(0x237)])],exports[_0x28af75(0x1e8)]);var as=Object[_0x28af75(0x30c)],cs=(_0x297e6c,_0x19639e,_0x15f1fd,_0x435291)=>{const _0x1f08aa=_0x28af75;for(var _0x54036d=_0x435291>0x1?void 0x0:_0x435291?as(_0x19639e,_0x15f1fd):_0x19639e,_0x575153=_0x297e6c[_0x1f08aa(0x1af)]-0x1,_0x475563;_0x575153>=0x0;_0x575153--)(_0x475563=_0x297e6c[_0x575153])&&(_0x54036d=_0x475563(_0x54036d)||_0x54036d);return _0x54036d;},F=(_0x501496,_0x23f125)=>(_0x37118d,_0x525cdf)=>_0x23f125(_0x37118d,_0x525cdf,_0x501496);exports[_0x28af75(0x123)]=class extends u['CollaborationSocketService']{constructor(_0xc413e5,_0x10e7a1,_0x211cf2,_0x4b7d83,_0x576fbd){super(_0xc413e5,_0x10e7a1,_0x211cf2,_0x4b7d83,_0x576fbd);}async[_0x28af75(0x188)](_0x265f53){const _0x364c62=_0x28af75,_0x207a7c=await this['_getSessionTicket'](),_0x101501=this[_0x364c62(0x2a7)](_0x265f53,_0x207a7c);return this[_0x364c62(0x248)](_0x101501);}['_createSocketURL'](_0x363b2e,_0x32b86f){const _0x1ee960=_0x28af75,_0x4fe38b=typeof window>'u'?new URL(_0x363b2e):new URL(_0x363b2e,window['location'][_0x1ee960(0x1aa)]);_0x4fe38b[_0x1ee960(0x28a)][_0x1ee960(0x25e)](_0x1ee960(0x31c),_0x32b86f);const _0x581579=typeof window>'u'?new URLSearchParams():new URLSearchParams(window[_0x1ee960(0x17f)]['search']);return _0x581579[_0x1ee960(0x340)]('runId')&&_0x4fe38b[_0x1ee960(0x28a)]['set'](_0x1ee960(0x27c),_0x581579['get'](_0x1ee960(0x27c))),_0x4fe38b[_0x1ee960(0x10c)]();}async[_0x28af75(0x276)](){const _0x2491e3=_0x28af75;var _0x380fb4,_0x40ccb2,_0xf14596;const _0x22aee6=this[_0x2491e3(0x129)]['getConfig'](u[_0x2491e3(0x196)]),_0x113dc7=(_0x380fb4=_0x22aee6==null?void 0x0:_0x22aee6[_0x2491e3(0x1c9)])!=null?_0x380fb4:u[_0x2491e3(0x1be)];return(_0xf14596=(_0x40ccb2=(await this[_0x2491e3(0x291)][_0x2491e3(0x340)](_0x113dc7,{'headers':{'Content-Type':_0x2491e3(0x162)}}))[_0x2491e3(0x20e)])==null?void 0x0:_0x40ccb2[_0x2491e3(0x236)])!=null?_0xf14596:'';}},exports[_0x28af75(0x123)]=cs([F(0x0,a[_0x28af75(0x345)](a[_0x28af75(0x184)])),F(0x1,a[_0x28af75(0x345)](q[_0x28af75(0x2c1)])),F(0x2,a[_0x28af75(0x237)]),F(0x3,a[_0x28af75(0xef)]),F(0x4,m['ISnapshotServerService'])],exports['BrowserCollaborationSocketService']);const Pe=0x7530,Le=_0x28af75(0x30a);class ls extends a['Disposable']{constructor(){const _0x34cc90=_0x28af75;super(),_(this,_0x34cc90(0x249),a[_0x34cc90(0x181)]()),_(this,_0x34cc90(0x194),new Set()),_(this,_0x34cc90(0x303),new Map()),_(this,_0x34cc90(0x139),null),_(this,'_clearOtherTimers',new Map()),_(this,_0x34cc90(0x197),new Map()),this['_init']();}[_0x28af75(0x11a)](){const _0x2b502f=_0x28af75;super['dispose'](),this[_0x2b502f(0x22c)][_0x2b502f(0x2cc)]((_0x14b251,_0x2e1818)=>this[_0x2b502f(0x2dd)](_0x2e1818)),this[_0x2b502f(0x139)]&&window['clearInterval'](this['_heartbeatTimer']);}['getUnitStatus$'](_0x5d465c){const _0x38fac9=_0x28af75;return this['_ensureSubject'](_0x5d465c)['pipe'](d[_0x38fac9(0x22a)]());}[_0x28af75(0x140)](_0x37cc23){const _0x1b18ac=_0x28af75;this[_0x1b18ac(0x194)][_0x1b18ac(0x2b7)]===0x0&&this[_0x1b18ac(0xe0)](),this[_0x1b18ac(0x194)][_0x1b18ac(0x243)](_0x37cc23),this[_0x1b18ac(0xd2)]({'type':0x0,'memberID':this['_id'],'unitIDs':[_0x37cc23],'isForwarded':!0x1});}['disposeUnit'](_0x55a3e4){const _0x3f0cb0=_0x28af75;this[_0x3f0cb0(0x194)]['delete'](_0x55a3e4),this[_0x3f0cb0(0x194)][_0x3f0cb0(0x2b7)]===0x0&&this['_heartbeatTimer']&&window[_0x3f0cb0(0x1c4)](this[_0x3f0cb0(0x139)]);}['_init'](){const _0x23d700=_0x28af75;this['disposeWithMe'](a['toDisposable'](d['fromEvent'](window,'storage')['subscribe'](_0x5e56c3=>{const _0x3c8ac1=_0x4bb0;if(_0x5e56c3[_0x3c8ac1(0x1fe)]!==Le||!_0x5e56c3[_0x3c8ac1(0x171)])return;const _0x3e244a=JSON[_0x3c8ac1(0x19e)](_0x5e56c3[_0x3c8ac1(0x171)]);this[_0x3c8ac1(0x125)](_0x3e244a);}))),window[_0x23d700(0x1e7)](_0x23d700(0x212),()=>this[_0x23d700(0xd2)]({'type':0x1,'memberID':this[_0x23d700(0x249)],'unitIDs':Array[_0x23d700(0x172)](this[_0x23d700(0x194)])}));}[_0x28af75(0x125)](_0xeb9e59){const _0x281d2c=_0x28af75;switch(_0xeb9e59['type']){case 0x0:this[_0x281d2c(0x25a)](_0xeb9e59);break;case 0x1:this[_0x281d2c(0x29a)](_0xeb9e59);break;case 0x2:this['_handleHeartbeatEvent'](_0xeb9e59);break;}}[_0x28af75(0x25a)](_0x42f4ca){const _0x423ffe=_0x28af75,{unitIDs:_0x343ecd,memberID:_0x1a8f2c,isForwarded:_0x1d74c4}=_0x42f4ca;_0x343ecd[_0x423ffe(0x2cc)](_0x14afae=>{const _0x4be757=_0x423ffe;if(!_0x1d74c4&&this[_0x4be757(0x303)]['has'](_0x14afae)&&this[_0x4be757(0x209)](_0x14afae)[_0x4be757(0x14d)](u['UnitStatus'][_0x4be757(0x2d8)]),!this['_unitOnClients'][_0x4be757(0x1d6)](_0x14afae)||!this['_unitOnClients'][_0x4be757(0x340)](_0x14afae)[_0x4be757(0x1d6)](_0x1a8f2c)){const _0x18bdf8=this[_0x4be757(0x303)][_0x4be757(0x340)](_0x14afae)||new Set();_0x18bdf8[_0x4be757(0x243)](_0x1a8f2c),this[_0x4be757(0x303)][_0x4be757(0x25e)](_0x14afae,_0x18bdf8),this['_scheduleClearOtherTimer'](_0x1a8f2c);}}),_0x1d74c4||this[_0x423ffe(0xd2)]({'type':0x0,'memberID':this[_0x423ffe(0x249)],'unitIDs':[...this[_0x423ffe(0x194)]],'isForwarded':!0x0});}['_scheduleClearOtherTimer'](_0x290cf4){const _0x2a15f5=_0x28af75;this[_0x2a15f5(0x2dd)](_0x290cf4);const _0x106a7a=window[_0x2a15f5(0x23f)](()=>{const _0x296ceb=_0x2a15f5;this['_unitOnClients'][_0x296ceb(0x2cc)](_0x1a63d4=>{_0x1a63d4['delete'](_0x290cf4);});},Pe*0x2);this[_0x2a15f5(0x22c)][_0x2a15f5(0x25e)](_0x290cf4,_0x106a7a);}[_0x28af75(0x2dd)](_0x527f33){const _0x3d30c4=_0x28af75;if(this['_clearOtherTimers'][_0x3d30c4(0x1d6)](_0x527f33)){const _0x2402a5=this[_0x3d30c4(0x22c)][_0x3d30c4(0x340)](_0x527f33);_0x2402a5&&window[_0x3d30c4(0x271)](_0x2402a5),this[_0x3d30c4(0x22c)][_0x3d30c4(0x25e)](_0x527f33,null);}}['_handleLeaveEvent'](_0x2d0361){const _0x23689d=_0x28af75,{memberID:_0x40054b,unitIDs:_0x7f6712}=_0x2d0361;_0x7f6712[_0x23689d(0x2cc)](_0x4ceebe=>{const _0x3e2e7e=_0x23689d;var _0x2c0efb;const _0x441b39=this[_0x3e2e7e(0x303)][_0x3e2e7e(0x340)](_0x4ceebe);_0x441b39&&(_0x441b39['delete'](_0x40054b),(_0x2c0efb=this['_ensureSubject'](_0x4ceebe))==null||_0x2c0efb[_0x3e2e7e(0x14d)](_0x441b39[_0x3e2e7e(0x2b7)]===0x0?u[_0x3e2e7e(0x112)][_0x3e2e7e(0x2a9)]:u[_0x3e2e7e(0x112)][_0x3e2e7e(0x2d8)]));}),this[_0x23689d(0x2dd)](_0x40054b);}[_0x28af75(0x2a2)](_0x2b96e5){const _0x5d67d6=_0x28af75;this[_0x5d67d6(0x169)](_0x2b96e5['memberID']);}[_0x28af75(0xd2)](_0xa81ed3){const _0x224977=_0x28af75;localStorage['setItem'](Le,JSON[_0x224977(0x221)](_0xa81ed3));}[_0x28af75(0xe0)](){const _0x28c266=_0x28af75;this[_0x28c266(0x139)]=window['setInterval'](()=>{const _0x273350=_0x28c266;this[_0x273350(0xd2)]({'type':0x2,'memberID':this['_id']});},Pe);}[_0x28af75(0x209)](_0x484851){const _0x48c21c=_0x28af75;return this[_0x48c21c(0x197)]['has'](_0x484851)||this['_unitStatus'][_0x48c21c(0x25e)](_0x484851,new d['BehaviorSubject'](u[_0x48c21c(0x112)]['NO_OTHER_CLIENTS_EDITING'])),this[_0x48c21c(0x197)][_0x48c21c(0x340)](_0x484851);}}var ke=(_0xd338c=>(_0xd338c[_0xd338c['UNDEFINED']=0x0]=_0x28af75(0x222),_0xd338c[_0xd338c['OK']=0x1]='OK',_0xd338c[_0xd338c[_0x28af75(0x252)]=0x2]=_0x28af75(0x252),_0xd338c[_0xd338c[_0x28af75(0x1f9)]=0x3]=_0x28af75(0x1f9),_0xd338c[_0xd338c[_0x28af75(0x145)]=0x4]='NOT_FOUND',_0xd338c[_0xd338c[_0x28af75(0x1cd)]=0x5]=_0x28af75(0x1cd),_0xd338c[_0xd338c[_0x28af75(0x2b4)]=0x6]=_0x28af75(0x2b4),_0xd338c[_0xd338c[_0x28af75(0x30f)]=0x7]='INVALID_ARGUMENT',_0xd338c[_0xd338c[_0x28af75(0x12b)]=0x8]=_0x28af75(0x12b),_0xd338c[_0xd338c[_0x28af75(0x22b)]=0x9]=_0x28af75(0x22b),_0xd338c[_0xd338c[_0x28af75(0x1b2)]=0xa]='LOGIN_FAILED',_0xd338c[_0xd338c[_0x28af75(0x2c8)]=0x1389]=_0x28af75(0x2c8),_0xd338c[_0xd338c[_0x28af75(0x1f2)]=0x1771]=_0x28af75(0x1f2),_0xd338c[_0xd338c[_0x28af75(0x239)]=0x1772]='SNAPSHOT_HAS_BEEN_REMOVED',_0xd338c[_0xd338c['ENSURE_SNAPSHOT_EXECUTION']=0x1773]=_0x28af75(0x190),_0xd338c[_0xd338c[_0x28af75(0xfe)]=0x1b59]=_0x28af75(0xfe),_0xd338c[_0xd338c[_0x28af75(0x165)]=0x1b5a]=_0x28af75(0x165),_0xd338c[_0xd338c[_0x28af75(0x347)]=0x1b5b]=_0x28af75(0x347),_0xd338c[_0xd338c[_0x28af75(0x247)]=0x1b5c]=_0x28af75(0x247),_0xd338c[_0xd338c[_0x28af75(0x11d)]=0x1b5d]=_0x28af75(0x11d),_0xd338c[_0xd338c[_0x28af75(0x18c)]=0x1f41]='CONNECTOR_DATA_TOO_LARGE',_0xd338c[_0xd338c[_0x28af75(0x29e)]=0x2329]='LICENSE_MAX_UNITS_EXCEEDED',_0xd338c[_0xd338c['LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED']=0x232a]='LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED',_0xd338c[_0xd338c['LICENSE_IMPORT_SIZE_EXCEEDED']=0x232b]=_0x28af75(0xfd),_0xd338c[_0xd338c['LICENSE_EXPORT_SIZE_EXCEEDED']=0x232c]=_0x28af75(0x2f0),_0xd338c[_0xd338c[_0x28af75(0x2a0)]=0x232d]=_0x28af75(0x2a0),_0xd338c[_0xd338c[_0x28af75(0x285)]=0x2711]=_0x28af75(0x285),_0xd338c[_0xd338c['YUUMI_URL_COL_OUT_OF_RANGE']=0x2712]=_0x28af75(0x1b4),_0xd338c[_0xd338c['YUUMI_RATE_OVER_LIMIT']=0x2713]=_0x28af75(0x14a),_0xd338c[_0xd338c['YUUMI_SUBSCRIPTION_NOT_FOUND']=0x2714]=_0x28af75(0xec),_0xd338c[_0xd338c[_0x28af75(0x1f0)]=0x2af9]='PY_RUNTIME_SCRIPT_ERROR',_0xd338c[_0xd338c[_0x28af75(0xce)]=0x2ee1]=_0x28af75(0xce),_0xd338c[_0xd338c[_0x28af75(0x235)]=0x2ee2]=_0x28af75(0x235),_0xd338c[_0xd338c[_0x28af75(0x183)]=0x2ee3]=_0x28af75(0x183),_0xd338c[_0xd338c['USER_NOT_INVITED_CODE']=0x2ee4]=_0x28af75(0x12a),_0xd338c[_0xd338c[_0x28af75(0x232)]=0x2ee5]=_0x28af75(0x232),_0xd338c[_0xd338c[_0x28af75(0x284)]=0x32c9]='WECHAT_HAS_BEEN_BOUND',_0xd338c[_0xd338c[_0x28af75(0x20c)]=0x32ca]=_0x28af75(0x20c),_0xd338c[_0xd338c[_0x28af75(0x331)]=0x32cb]=_0x28af75(0x331),_0xd338c[_0xd338c[_0x28af75(0x326)]=-0x1]='UNRECOGNIZED',_0xd338c))(ke||{}),_s=Object[_0x28af75(0x30c)],hs=(_0x1b1e79,_0x57cd84,_0x385a95,_0x2ec47d)=>{const _0x440e8e=_0x28af75;for(var _0x38bac2=_0x2ec47d>0x1?void 0x0:_0x2ec47d?_s(_0x57cd84,_0x385a95):_0x57cd84,_0x34b2d8=_0x1b1e79[_0x440e8e(0x1af)]-0x1,_0x104834;_0x34b2d8>=0x0;_0x34b2d8--)(_0x104834=_0x1b1e79[_0x34b2d8])&&(_0x38bac2=_0x104834(_0x38bac2)||_0x38bac2);return _0x38bac2;},de=(_0x159538,_0x4bdf66)=>(_0x36ea58,_0xcda45d)=>_0x4bdf66(_0x36ea58,_0xcda45d,_0x159538);exports[_0x28af75(0x16c)]=class extends a[_0x28af75(0x242)]{constructor(_0x8c83fd,_0x130f1f,_0x2119f4){const _0x5e1fea=_0x28af75;super(),this['_instanceService']=_0x8c83fd,this[_0x5e1fea(0x291)]=_0x130f1f,this[_0x5e1fea(0x129)]=_0x2119f4;}async[_0x28af75(0x2ae)](_0x48f52b,_0x3d2d1b,_0x50b352,..._0x559652){const _0x281b5e=_0x28af75;var _0x49ac3d,_0x1a1b0c,_0x5eec72,_0x10cb0b;const _0x4f8059=this[_0x281b5e(0x1d9)]['getFocusedUnit']();if(!_0x4f8059)throw new Error(_0x281b5e(0x32b));const _0x4d4d97=((_0x49ac3d=this[_0x281b5e(0x129)][_0x281b5e(0x223)](u[_0x281b5e(0x22e)]))!=null?_0x49ac3d:u[_0x281b5e(0x23c)])+'/'+_0x48f52b+_0x281b5e(0x262)+_0x3d2d1b,_0x3d71b8=new URL(window['location'][_0x281b5e(0x24b)]),_0x2f4da8={'scriptId':_0x48f52b,'runId':(_0x1a1b0c=_0x3d71b8[_0x281b5e(0x28a)]['get'](_0x281b5e(0x27c)))!=null?_0x1a1b0c:'','function':_0x3d2d1b,'unitId':_0x4f8059[_0x281b5e(0x2f1)](),'argsOfFunction':JSON[_0x281b5e(0x221)](_0x559652),'invokeId':(_0x5eec72=_0x50b352['invokeId'])!=null?_0x5eec72:'','executionId':(_0x10cb0b=_0x50b352[_0x281b5e(0x134)])!=null?_0x10cb0b:''};try{const _0x353356=await this[_0x281b5e(0x291)][_0x281b5e(0x1a4)](_0x4d4d97,{'body':_0x2f4da8});return _0x353356['body'][_0x281b5e(0x24a)]&&_0x353356[_0x281b5e(0x20e)]['error']['code']!==ke['OK']?_0x281b5e(0x2da):_0x353356[_0x281b5e(0x20e)][_0x281b5e(0x2c3)];}catch{return'Failed';}}},exports['RemoteUniscriptService']=hs([de(0x0,a[_0x28af75(0x2ed)]),de(0x1,a['Inject'](q[_0x28af75(0x2c1)])),de(0x2,a['IConfigService'])],exports['RemoteUniscriptService']),exports[_0x28af75(0x33d)]=je,exports[_0x28af75(0x2c4)]=Ee,exports[_0x28af75(0x2e1)]=Ae,exports['WebBrowserSingleActiveUnitService']=ls,exports[_0x28af75(0x2ff)]=Be;
@@ -1 +1 @@
1
- 'use strict';const _0x30ef37=_0x5914;(function(_0x2158c3,_0x58c234){const _0x172112=_0x5914,_0x23ecc6=_0x2158c3();while(!![]){try{const _0x1f76ef=parseInt(_0x172112(0xa3))/0x1+parseInt(_0x172112(0xa0))/0x2+parseInt(_0x172112(0xa4))/0x3*(parseInt(_0x172112(0xad))/0x4)+parseInt(_0x172112(0x9c))/0x5+-parseInt(_0x172112(0x9a))/0x6+parseInt(_0x172112(0xac))/0x7+-parseInt(_0x172112(0xa9))/0x8*(parseInt(_0x172112(0xa5))/0x9);if(_0x1f76ef===_0x58c234)break;else _0x23ecc6['push'](_0x23ecc6['shift']());}catch(_0x459b63){_0x23ecc6['push'](_0x23ecc6['shift']());}}}(_0x40f2,0xc49df));function _0x5914(_0x2c4ede,_0x4d9688){const _0x40f2e6=_0x40f2();return _0x5914=function(_0x591413,_0x18b06f){_0x591413=_0x591413-0x99;let _0x12dd30=_0x40f2e6[_0x591413];return _0x12dd30;},_0x5914(_0x2c4ede,_0x4d9688);}const e={'collab-client':{'tooltip':{'reconnect':_0x30ef37(0x9d)}},'collabStatus':{'fetchMiss':_0x30ef37(0xa7),'conflict':_0x30ef37(0xae),'notCollab':_0x30ef37(0xa1),'synced':_0x30ef37(0xb1),'syncing':_0x30ef37(0x9e),'offline':'Offline,\x20edits\x20would\x20be\x20save\x20on\x20local'},'session':{'connection-failed':_0x30ef37(0xa6),'will-retry':_0x30ef37(0xaf),'room-full':'Collaboration\x20room\x20is\x20full.\x20You\x20edits\x20would\x20be\x20saved\x20locally.','collaboration-timeout':_0x30ef37(0xa2)},'conflict':{'title':_0x30ef37(0xab),'content':_0x30ef37(0xb2)},'permission':{'title':_0x30ef37(0xa8),'content':_0x30ef37(0xb0)},'collaboration':{'single-unit':{'warning':_0x30ef37(0x9f)},'closeRoom':_0x30ef37(0xaa)},'auth':{'needGotoLoginAlert':_0x30ef37(0x99)}};module[_0x30ef37(0x9b)]=e;function _0x40f2(){const _0x49e122=['Local\x20file','The\x20server\x20is\x20not\x20responding\x20to\x20your\x20collaboration\x20request.\x20Your\x20edits\x20would\x20be\x20saved\x20locally.','1579948ioABey','3WrriAw','17082qPxDvi','Connection\x20failed,\x20please\x20check\x20your\x20network.','Syncing\x20server\x20data...','Authentication\x20Error','9784JUQyCe','Editing\x20privileges\x20were\x20revoked\x20because\x20the\x20collaborative\x20room\x20was\x20closed.','Collaboration\x20Conflict','3677625zTwzCD','1021352ezPrqO','Edit\x20conflicts','Connection\x20failed,\x20we\x20retry\x20in\x20a\x20while.','Your\x20actions\x20are\x20conflicting\x20with\x20the\x20server\x27s\x20permissions.\x20Please\x20save\x20your\x20local\x20edits\x20elsewhere\x20as\x20they\x20will\x20be\x20discarded\x20after\x20refreshing\x20the\x20page.','Synced','There\x20is\x20a\x20conflict\x20between\x20your\x20local\x20copy\x20and\x20the\x20copy\x20on\x20the\x20server.\x20Please\x20save\x20your\x20local\x20edits,\x20because\x20they\x20will\x20be\x20lost\x20when\x20you\x20reload\x20the\x20page.','Your\x20login\x20has\x20expired,\x20click\x20OK\x20to\x20re-login,\x20click\x20Cancel\x20to\x20save\x20your\x20local\x20edits.','5126934avucYl','exports','1988815wPiObD','Click\x20to\x20Reconnect','Syncing...','You\x20opened\x20the\x20same\x20file\x20in\x20another\x20tab.\x20In\x20case\x20of\x20data\x20missing,\x20you\x20cannot\x20edit\x20on\x20this\x20tab.','2445324TNWZKB'];_0x40f2=function(){return _0x49e122;};return _0x40f2();}
1
+ 'use strict';const _0x2297ee=_0xdfee;(function(_0x2bddf8,_0x4fae55){const _0x40bff7=_0xdfee,_0x411e6e=_0x2bddf8();while(!![]){try{const _0x42aa4e=-parseInt(_0x40bff7(0xfa))/0x1*(-parseInt(_0x40bff7(0xe3))/0x2)+parseInt(_0x40bff7(0xf0))/0x3*(-parseInt(_0x40bff7(0xf2))/0x4)+-parseInt(_0x40bff7(0xe4))/0x5*(parseInt(_0x40bff7(0xe7))/0x6)+parseInt(_0x40bff7(0xfc))/0x7+parseInt(_0x40bff7(0xee))/0x8*(parseInt(_0x40bff7(0xf1))/0x9)+-parseInt(_0x40bff7(0xfb))/0xa+parseInt(_0x40bff7(0xef))/0xb*(parseInt(_0x40bff7(0xec))/0xc);if(_0x42aa4e===_0x4fae55)break;else _0x411e6e['push'](_0x411e6e['shift']());}catch(_0xae7691){_0x411e6e['push'](_0x411e6e['shift']());}}}(_0x465e,0xed929));function _0xdfee(_0xed2722,_0x325155){const _0x465e31=_0x465e();return _0xdfee=function(_0xdfeed4,_0x35462c){_0xdfeed4=_0xdfeed4-0xe2;let _0x29009a=_0x465e31[_0xdfeed4];return _0x29009a;},_0xdfee(_0xed2722,_0x325155);}const e={'collab-client':{'tooltip':{'reconnect':_0x2297ee(0xf6)}},'collabStatus':{'fetchMiss':_0x2297ee(0xe6),'conflict':_0x2297ee(0xed),'notCollab':_0x2297ee(0xf3),'synced':_0x2297ee(0xe2),'syncing':'Syncing...','offline':_0x2297ee(0xf8)},'session':{'connection-failed':'Connection\x20failed,\x20please\x20check\x20your\x20network.','will-retry':_0x2297ee(0xe9),'room-full':_0x2297ee(0xeb),'collaboration-timeout':_0x2297ee(0xea)},'conflict':{'title':_0x2297ee(0xf7),'content':_0x2297ee(0xf4)},'permission':{'title':'Authentication\x20Error','content':'Your\x20actions\x20are\x20conflicting\x20with\x20the\x20server\x27s\x20permissions.\x20Please\x20save\x20your\x20local\x20edits\x20elsewhere\x20as\x20they\x20will\x20be\x20discarded\x20after\x20refreshing\x20the\x20page.'},'collaboration':{'single-unit':{'warning':_0x2297ee(0xe5)},'closeRoom':_0x2297ee(0xf5)},'auth':{'needGotoLoginAlert':_0x2297ee(0xf9)}};module[_0x2297ee(0xe8)]=e;function _0x465e(){const _0x3f5b1d=['Syncing\x20server\x20data...','6SPYbWx','exports','Connection\x20failed,\x20we\x20retry\x20in\x20a\x20while.','The\x20server\x20is\x20not\x20responding\x20to\x20your\x20collaboration\x20request.\x20Your\x20edits\x20would\x20be\x20saved\x20locally.','Collaboration\x20room\x20is\x20full.\x20You\x20edits\x20would\x20be\x20saved\x20locally.','8190372KbrTXm','Edit\x20conflicts','64wZuCbY','22VgNOqb','4759329XrCruX','492642RDBwaZ','4pReRKR','Local\x20file','There\x20is\x20a\x20conflict\x20between\x20your\x20local\x20copy\x20and\x20the\x20copy\x20on\x20the\x20server.\x20Please\x20save\x20your\x20local\x20edits,\x20because\x20they\x20will\x20be\x20lost\x20when\x20you\x20reload\x20the\x20page.','Editing\x20privileges\x20were\x20revoked\x20because\x20the\x20collaborative\x20room\x20was\x20closed.','Click\x20to\x20Reconnect','Collaboration\x20Conflict','Offline,\x20edits\x20would\x20be\x20save\x20on\x20local','Your\x20login\x20has\x20expired,\x20click\x20OK\x20to\x20re-login,\x20click\x20Cancel\x20to\x20save\x20your\x20local\x20edits.','5GLiPKt','17676560qwITNI','7508900eBOatv','Synced','650126cjClej','868925jZTrPt','You\x20opened\x20the\x20same\x20file\x20in\x20another\x20tab.\x20In\x20case\x20of\x20data\x20missing,\x20you\x20cannot\x20edit\x20on\x20this\x20tab.'];_0x465e=function(){return _0x3f5b1d;};return _0x465e();}